From a97ac3d71c92db934d566df0f8a24a20e8479aa9 Mon Sep 17 00:00:00 2001 From: "copybara-service[bot]" <56741989+copybara-service[bot]@users.noreply.github.com> Date: Sun, 9 Jun 2024 20:51:09 +0000 Subject: [PATCH 01/33] feat: [vertexai] add AutomaticFunctionCallingResponder class (#10896) PiperOrigin-RevId: 638319753 Co-authored-by: Jaycee Li --- .../AutomaticFunctionCallingResponder.java | 140 ++++++++++++++++ ...AutomaticFunctionCallingResponderTest.java | 149 ++++++++++++++++++ 2 files changed, 289 insertions(+) create mode 100644 java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/AutomaticFunctionCallingResponder.java create mode 100644 java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/AutomaticFunctionCallingResponderTest.java diff --git a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/AutomaticFunctionCallingResponder.java b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/AutomaticFunctionCallingResponder.java new file mode 100644 index 000000000000..cca6b63c8c17 --- /dev/null +++ b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/AutomaticFunctionCallingResponder.java @@ -0,0 +1,140 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.vertexai.generativeai; + +import com.google.common.collect.ImmutableList; +import java.lang.reflect.Method; +import java.lang.reflect.Modifier; +import java.lang.reflect.Parameter; +import java.util.HashMap; +import java.util.Map; + +/** A responder that automatically calls functions when requested by the GenAI model. */ +public final class AutomaticFunctionCallingResponder { + private int maxFunctionCalls = 1; + private int remainingFunctionCalls; + private final Map callableFunctions = new HashMap<>(); + + /** Constructs an AutomaticFunctionCallingResponder instance. */ + public AutomaticFunctionCallingResponder() { + this.remainingFunctionCalls = this.maxFunctionCalls; + } + + /** + * Constructs an AutomaticFunctionCallingResponder instance. + * + * @param maxFunctionCalls the maximum number of function calls to make in a row + */ + public AutomaticFunctionCallingResponder(int maxFunctionCalls) { + this.maxFunctionCalls = maxFunctionCalls; + this.remainingFunctionCalls = maxFunctionCalls; + } + + /** Sets the maximum number of function calls to make in a row. */ + public void setMaxFunctionCalls(int maxFunctionCalls) { + this.maxFunctionCalls = maxFunctionCalls; + this.remainingFunctionCalls = this.maxFunctionCalls; + } + + /** Gets the maximum number of function calls to make in a row. */ + public int getMaxFunctionCalls() { + return maxFunctionCalls; + } + + /** Resets the remaining function calls to the maximum number of function calls. */ + void resetRemainingFunctionCalls() { + this.remainingFunctionCalls = this.maxFunctionCalls; + } + + /** + * Adds a callable function to the AutomaticFunctionCallingResponder. + * + *

Note:: If you don't want to manually provide parameter names, you can ignore + * `orderedParameterNames` and compile your code with the "-parameters" flag. In this case, the + * parameter names can be auto retrieved from reflection. + * + * @param functionName the name of the function + * @param callableFunction the method to call when the functionName is requested + * @param orderedParameterNames the names of the parameters in the order they are passed to the + * function + * @throws IllegalArgumentException if the functionName is already in the responder + * @throws IllegalStateException if the parameter names are not provided and cannot be retrieved + * from reflection + */ + public void addCallableFunction( + String functionName, Method callableFunction, String... orderedParameterNames) { + if (callableFunctions.containsKey(functionName)) { + throw new IllegalArgumentException("Duplicate function name: " + functionName); + } else { + callableFunctions.put( + functionName, new CallableFunction(callableFunction, orderedParameterNames)); + } + } + + /** A class that represents a function that can be called automatically. */ + static class CallableFunction { + private final Method callableFunction; + private final ImmutableList orderedParameterNames; + + /** + * Constructs a CallableFunction instance. + * + *

Note:: If you don't want to manually provide parameter names, you can ignore + * `orderedParameterNames` and compile your code with the "-parameters" flag. In this case, the + * parameter names can be auto retrieved from reflection. + * + * @param callableFunction the method to call + * @param orderedParameterNames the names of the parameters in the order they are passed to the + * function + * @throws IllegalArgumentException if the given method is not a static method or the number of + * provided parameter names doesn't match the number of parameters in the callable function + * @throws IllegalStateException if the parameter names are not provided and cannot be retrieved + * from reflection + */ + CallableFunction(Method callableFunction, String... orderedParameterNames) { + validateFunction(callableFunction); + this.callableFunction = callableFunction; + + if (orderedParameterNames.length == 0) { + ImmutableList.Builder builder = ImmutableList.builder(); + for (Parameter parameter : callableFunction.getParameters()) { + if (parameter.isNamePresent()) { + builder.add(parameter.getName()); + } else { + throw new IllegalStateException( + "Failed to retrieve the parameter name from reflection. Please compile your code" + + " with \"-parameters\" flag or use `addCallableFunction(String, Method," + + " String...)` to manually enter parameter names"); + } + } + this.orderedParameterNames = builder.build(); + } else if (orderedParameterNames.length == callableFunction.getParameters().length) { + this.orderedParameterNames = ImmutableList.copyOf(orderedParameterNames); + } else { + throw new IllegalArgumentException( + "The number of provided parameter names doesn't match the number of parameters in the" + + " callable function."); + } + } + + /** Validates that the given method is a static method. */ + private void validateFunction(Method method) { + if (!Modifier.isStatic(method.getModifiers())) { + throw new IllegalArgumentException("Function calling only supports static methods."); + } + } + } +} diff --git a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/AutomaticFunctionCallingResponderTest.java b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/AutomaticFunctionCallingResponderTest.java new file mode 100644 index 000000000000..2875575cfc29 --- /dev/null +++ b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/AutomaticFunctionCallingResponderTest.java @@ -0,0 +1,149 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vertexai.generativeai; + +import static com.google.common.truth.Truth.assertThat; +import static org.junit.Assert.assertThrows; + +import java.lang.reflect.Method; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +@RunWith(JUnit4.class) +public final class AutomaticFunctionCallingResponderTest { + private static final int MAX_FUNCTION_CALLS = 5; + private static final int DEFAULT_MAX_FUNCTION_CALLS = 1; + private static final String FUNCTION_NAME_1 = "getCurrentWeather"; + private static final String FUNCTION_NAME_2 = "getCurrentTemperature"; + private static final String PARAMETER_NAME = "location"; + + public static String getCurrentWeather(String location) { + if (location.equals("Boston")) { + return "snowing"; + } else if (location.equals("Vancouver")) { + return "raining"; + } else { + return "sunny"; + } + } + + public static int getCurrentTemperature(String location) { + if (location.equals("Boston")) { + return 32; + } else if (location.equals("Vancouver")) { + return 45; + } else { + return 75; + } + } + + public boolean nonStaticMethod() { + return true; + } + + @Test + public void testInitAutomaticFunctionCallingResponder_containsRightFields() { + AutomaticFunctionCallingResponder responder = new AutomaticFunctionCallingResponder(); + + assertThat(responder.getMaxFunctionCalls()).isEqualTo(DEFAULT_MAX_FUNCTION_CALLS); + } + + @Test + public void testInitAutomaticFunctionCallingResponderWithMaxFunctionCalls_containsRightFields() { + AutomaticFunctionCallingResponder responder = + new AutomaticFunctionCallingResponder(MAX_FUNCTION_CALLS); + + assertThat(responder.getMaxFunctionCalls()).isEqualTo(MAX_FUNCTION_CALLS); + } + + @Test + public void testSetMaxFunctionCalls_containsRightFields() { + AutomaticFunctionCallingResponder responder = new AutomaticFunctionCallingResponder(); + responder.setMaxFunctionCalls(MAX_FUNCTION_CALLS); + + assertThat(responder.getMaxFunctionCalls()).isEqualTo(MAX_FUNCTION_CALLS); + } + + @Test + public void testAddCallableFunctionWithoutOrderedParameterNames_throwsIllegalArgumentException() + throws NoSuchMethodException { + AutomaticFunctionCallingResponder responder = new AutomaticFunctionCallingResponder(); + Method callableFunction = + AutomaticFunctionCallingResponderTest.class.getMethod(FUNCTION_NAME_1, String.class); + + IllegalStateException thrown = + assertThrows( + IllegalStateException.class, + () -> responder.addCallableFunction(FUNCTION_NAME_1, callableFunction)); + assertThat(thrown) + .hasMessageThat() + .isEqualTo( + "Failed to retrieve the parameter name from reflection. Please compile your code with" + + " \"-parameters\" flag or use `addCallableFunction(String, Method, String...)`" + + " to manually enter parameter names"); + } + + @Test + public void testAddNonStaticCallableFunction_throwsIllegalArgumentException() + throws NoSuchMethodException { + AutomaticFunctionCallingResponder responder = new AutomaticFunctionCallingResponder(); + Method nonStaticMethod = + AutomaticFunctionCallingResponderTest.class.getMethod("nonStaticMethod"); + + IllegalArgumentException thrown = + assertThrows( + IllegalArgumentException.class, + () -> responder.addCallableFunction(FUNCTION_NAME_1, nonStaticMethod, PARAMETER_NAME)); + assertThat(thrown).hasMessageThat().isEqualTo("Function calling only supports static methods."); + } + + @Test + public void testAddRepeatedCallableFunction_throwsIllegalArgumentException() + throws NoSuchMethodException { + AutomaticFunctionCallingResponder responder = new AutomaticFunctionCallingResponder(); + Method callableFunction = + AutomaticFunctionCallingResponderTest.class.getMethod(FUNCTION_NAME_1, String.class); + responder.addCallableFunction(FUNCTION_NAME_1, callableFunction, PARAMETER_NAME); + + IllegalArgumentException thrown = + assertThrows( + IllegalArgumentException.class, + () -> responder.addCallableFunction(FUNCTION_NAME_1, callableFunction, PARAMETER_NAME)); + assertThat(thrown).hasMessageThat().isEqualTo("Duplicate function name: " + FUNCTION_NAME_1); + } + + @Test + public void testAddCallableFunctionWithWrongParameterNames_throwsIllegalArgumentException() + throws NoSuchMethodException { + AutomaticFunctionCallingResponder responder = new AutomaticFunctionCallingResponder(); + Method callableFunction = + AutomaticFunctionCallingResponderTest.class.getMethod(FUNCTION_NAME_1, String.class); + + IllegalArgumentException thrown = + assertThrows( + IllegalArgumentException.class, + () -> + responder.addCallableFunction( + FUNCTION_NAME_1, callableFunction, PARAMETER_NAME, "anotherParameter")); + assertThat(thrown) + .hasMessageThat() + .isEqualTo( + "The number of provided parameter names doesn't match the number of parameters in the" + + " callable function."); + } +} From 1cef84aa36609ab59aaf432cf56b5e019abe6da8 Mon Sep 17 00:00:00 2001 From: "copybara-service[bot]" <56741989+copybara-service[bot]@users.noreply.github.com> Date: Sun, 9 Jun 2024 21:13:12 +0000 Subject: [PATCH 02/33] chore: [vertexai] add auto response logic in AutomaticFunctionCallingResponder (#10897) PiperOrigin-RevId: 638361738 Co-authored-by: Jaycee Li --- .../AutomaticFunctionCallingResponder.java | 126 +++++++++++++ ...AutomaticFunctionCallingResponderTest.java | 166 +++++++++++++++++- 2 files changed, 287 insertions(+), 5 deletions(-) diff --git a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/AutomaticFunctionCallingResponder.java b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/AutomaticFunctionCallingResponder.java index cca6b63c8c17..6df904860f58 100644 --- a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/AutomaticFunctionCallingResponder.java +++ b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/AutomaticFunctionCallingResponder.java @@ -15,12 +15,22 @@ */ package com.google.cloud.vertexai.generativeai; +import static com.google.common.base.Preconditions.checkNotNull; + +import com.google.cloud.vertexai.api.Content; +import com.google.cloud.vertexai.api.FunctionCall; import com.google.common.collect.ImmutableList; +import com.google.protobuf.Struct; +import com.google.protobuf.Value; import java.lang.reflect.Method; import java.lang.reflect.Modifier; import java.lang.reflect.Parameter; +import java.util.ArrayList; +import java.util.Collections; import java.util.HashMap; +import java.util.List; import java.util.Map; +import java.util.logging.Logger; /** A responder that automatically calls functions when requested by the GenAI model. */ public final class AutomaticFunctionCallingResponder { @@ -28,6 +38,9 @@ public final class AutomaticFunctionCallingResponder { private int remainingFunctionCalls; private final Map callableFunctions = new HashMap<>(); + private static final Logger logger = + Logger.getLogger(AutomaticFunctionCallingResponder.class.getName()); + /** Constructs an AutomaticFunctionCallingResponder instance. */ public AutomaticFunctionCallingResponder() { this.remainingFunctionCalls = this.maxFunctionCalls; @@ -84,6 +97,49 @@ public void addCallableFunction( } } + /** + * Automatically calls functions requested by the model and generates a Content that contains the + * results. + * + * @param functionCalls a list of {@link com.google.cloud.vertexai.api.FunctionCall} requested by + * the model + * @return a {@link com.google.cloud.vertexai.api.Content} that contains the results of the + * function calls + * @throws IllegalStateException if the number of automatic calls exceeds the maximum number of + * function calls + * @throws IllegalArgumentException if the model has asked to call a function that was not found + * in the responder + */ + Content getContentFromFunctionCalls(List functionCalls) { + checkNotNull(functionCalls, "functionCalls cannot be null."); + + List responseParts = new ArrayList<>(); + + for (FunctionCall functionCall : functionCalls) { + if (remainingFunctionCalls <= 0) { + throw new IllegalStateException( + "Exceeded the maximum number of continuous automatic function calls (" + + maxFunctionCalls + + "). If more automatic function calls are needed, please call" + + " `setMaxFunctionCalls() to set a higher number. The last function call is:\n" + + functionCall); + } + remainingFunctionCalls -= 1; + String functionName = functionCall.getName(); + CallableFunction callableFunction = callableFunctions.get(functionName); + if (callableFunction == null) { + throw new IllegalArgumentException( + "Model has asked to call function \"" + functionName + "\" which was not found."); + } + responseParts.add( + PartMaker.fromFunctionResponse( + functionName, + Collections.singletonMap("result", callableFunction.call(functionCall.getArgs())))); + } + + return ContentMaker.fromMultiModalData(responseParts.toArray()); + } + /** A class that represents a function that can be called automatically. */ static class CallableFunction { private final Method callableFunction; @@ -130,6 +186,76 @@ static class CallableFunction { } } + /** + * Calls the callable function with the given arguments. + * + * @param args the arguments to pass to the function + * @return the result of the function call + * @throws IllegalStateException if there are errors when invoking the function + * @throws IllegalArgumentException if the args map doesn't contain all the parameters of the + * function or the value types in the args map are not supported + */ + Object call(Struct args) { + // Extract the arguments from the Struct + Map argsMap = args.getFieldsMap(); + List argsList = new ArrayList<>(); + for (int i = 0; i < orderedParameterNames.size(); i++) { + String parameterName = orderedParameterNames.get(i); + if (!argsMap.containsKey(parameterName)) { + throw new IllegalArgumentException( + "The parameter \"" + + parameterName + + "\" was not found in the arguments requested by the model. Args map: " + + argsMap); + } + Value value = argsMap.get(parameterName); + switch (value.getKindCase()) { + case NUMBER_VALUE: + // Args map only returns double values, but the function may expect other types(int, + // float). So we need to cast the value to the correct type. + Class parameterType = callableFunction.getParameters()[i].getType(); + if (parameterType.equals(int.class)) { + argsList.add((int) value.getNumberValue()); + } else if (parameterType.equals(float.class)) { + argsList.add((float) value.getNumberValue()); + } else { + argsList.add(value.getNumberValue()); + } + break; + case STRING_VALUE: + argsList.add(value.getStringValue()); + break; + case BOOL_VALUE: + argsList.add(value.getBoolValue()); + break; + case NULL_VALUE: + argsList.add(null); + break; + default: + throw new IllegalArgumentException( + "Unsupported value type " + + value.getKindCase() + + " for parameter " + + parameterName); + } + } + + // Invoke the function + logger.info( + "Automatically calling function: " + + callableFunction.getName() + + argsList.toString().replace('[', '(').replace(']', ')')); + try { + return callableFunction.invoke(null, argsList.toArray()); + } catch (Exception e) { + throw new IllegalStateException( + "Error raised when calling function \"" + + callableFunction.getName() + + "\" as requested by the model. ", + e); + } + } + /** Validates that the given method is a static method. */ private void validateFunction(Method method) { if (!Modifier.isStatic(method.getModifiers())) { diff --git a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/AutomaticFunctionCallingResponderTest.java b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/AutomaticFunctionCallingResponderTest.java index 2875575cfc29..eefd1993456d 100644 --- a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/AutomaticFunctionCallingResponderTest.java +++ b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/AutomaticFunctionCallingResponderTest.java @@ -19,7 +19,14 @@ import static com.google.common.truth.Truth.assertThat; import static org.junit.Assert.assertThrows; +import com.google.cloud.vertexai.api.Content; +import com.google.cloud.vertexai.api.FunctionCall; +import com.google.protobuf.Struct; +import com.google.protobuf.Value; import java.lang.reflect.Method; +import java.util.Arrays; +import java.util.Collections; +import java.util.List; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; @@ -30,7 +37,47 @@ public final class AutomaticFunctionCallingResponderTest { private static final int DEFAULT_MAX_FUNCTION_CALLS = 1; private static final String FUNCTION_NAME_1 = "getCurrentWeather"; private static final String FUNCTION_NAME_2 = "getCurrentTemperature"; - private static final String PARAMETER_NAME = "location"; + private static final String STRING_PARAMETER_NAME = "location"; + private static final FunctionCall FUNCTION_CALL_1 = + FunctionCall.newBuilder() + .setName(FUNCTION_NAME_1) + .setArgs( + Struct.newBuilder() + .putFields( + STRING_PARAMETER_NAME, Value.newBuilder().setStringValue("Boston").build())) + .build(); + private static final FunctionCall FUNCTION_CALL_2 = + FunctionCall.newBuilder() + .setName(FUNCTION_NAME_2) + .setArgs( + Struct.newBuilder() + .putFields( + STRING_PARAMETER_NAME, + Value.newBuilder().setStringValue("Vancouver").build())) + .build(); + private static final FunctionCall FUNCTION_CALL_WITH_FALSE_FUNCTION_NAME = + FunctionCall.newBuilder() + .setName("nonExistFunction") + .setArgs( + Struct.newBuilder() + .putFields( + STRING_PARAMETER_NAME, Value.newBuilder().setStringValue("Boston").build())) + .build(); + private static final FunctionCall FUNCTION_CALL_WITH_FALSE_PARAMETER_NAME = + FunctionCall.newBuilder() + .setName(FUNCTION_NAME_1) + .setArgs( + Struct.newBuilder() + .putFields( + "nonExistParameter", Value.newBuilder().setStringValue("Boston").build())) + .build(); + private static final FunctionCall FUNCTION_CALL_WITH_FALSE_PARAMETER_VALUE = + FunctionCall.newBuilder() + .setName(FUNCTION_NAME_1) + .setArgs( + Struct.newBuilder() + .putFields(STRING_PARAMETER_NAME, Value.newBuilder().setBoolValue(false).build())) + .build(); public static String getCurrentWeather(String location) { if (location.equals("Boston")) { @@ -108,7 +155,9 @@ public void testAddNonStaticCallableFunction_throwsIllegalArgumentException() IllegalArgumentException thrown = assertThrows( IllegalArgumentException.class, - () -> responder.addCallableFunction(FUNCTION_NAME_1, nonStaticMethod, PARAMETER_NAME)); + () -> + responder.addCallableFunction( + FUNCTION_NAME_1, nonStaticMethod, STRING_PARAMETER_NAME)); assertThat(thrown).hasMessageThat().isEqualTo("Function calling only supports static methods."); } @@ -118,12 +167,14 @@ public void testAddRepeatedCallableFunction_throwsIllegalArgumentException() AutomaticFunctionCallingResponder responder = new AutomaticFunctionCallingResponder(); Method callableFunction = AutomaticFunctionCallingResponderTest.class.getMethod(FUNCTION_NAME_1, String.class); - responder.addCallableFunction(FUNCTION_NAME_1, callableFunction, PARAMETER_NAME); + responder.addCallableFunction(FUNCTION_NAME_1, callableFunction, STRING_PARAMETER_NAME); IllegalArgumentException thrown = assertThrows( IllegalArgumentException.class, - () -> responder.addCallableFunction(FUNCTION_NAME_1, callableFunction, PARAMETER_NAME)); + () -> + responder.addCallableFunction( + FUNCTION_NAME_1, callableFunction, STRING_PARAMETER_NAME)); assertThat(thrown).hasMessageThat().isEqualTo("Duplicate function name: " + FUNCTION_NAME_1); } @@ -139,11 +190,116 @@ public void testAddCallableFunctionWithWrongParameterNames_throwsIllegalArgument IllegalArgumentException.class, () -> responder.addCallableFunction( - FUNCTION_NAME_1, callableFunction, PARAMETER_NAME, "anotherParameter")); + FUNCTION_NAME_1, callableFunction, STRING_PARAMETER_NAME, "anotherParameter")); assertThat(thrown) .hasMessageThat() .isEqualTo( "The number of provided parameter names doesn't match the number of parameters in the" + " callable function."); } + + @Test + public void testRespondToFunctionCall_returnsCorrectResponse() throws Exception { + AutomaticFunctionCallingResponder responder = new AutomaticFunctionCallingResponder(2); + Method callableFunction1 = + AutomaticFunctionCallingResponderTest.class.getMethod(FUNCTION_NAME_1, String.class); + Method callableFunction2 = + AutomaticFunctionCallingResponderTest.class.getMethod(FUNCTION_NAME_2, String.class); + responder.addCallableFunction(FUNCTION_NAME_1, callableFunction1, STRING_PARAMETER_NAME); + responder.addCallableFunction(FUNCTION_NAME_2, callableFunction2, STRING_PARAMETER_NAME); + List functionCalls = Arrays.asList(FUNCTION_CALL_1, FUNCTION_CALL_2); + + Content response = responder.getContentFromFunctionCalls(functionCalls); + + Content expectedResponse = + ContentMaker.fromMultiModalData( + PartMaker.fromFunctionResponse( + FUNCTION_NAME_1, Collections.singletonMap("result", "snowing")), + PartMaker.fromFunctionResponse( + FUNCTION_NAME_2, Collections.singletonMap("result", 45))); + + assertThat(response).isEqualTo(expectedResponse); + } + + @Test + public void testRespondToFunctionCallExceedsMaxFunctionCalls_throwsIllegalStateException() + throws Exception { + AutomaticFunctionCallingResponder responder = new AutomaticFunctionCallingResponder(); + Method callableFunction1 = + AutomaticFunctionCallingResponderTest.class.getMethod(FUNCTION_NAME_1, String.class); + Method callableFunction2 = + AutomaticFunctionCallingResponderTest.class.getMethod(FUNCTION_NAME_2, String.class); + responder.addCallableFunction(FUNCTION_NAME_1, callableFunction1, STRING_PARAMETER_NAME); + responder.addCallableFunction(FUNCTION_NAME_2, callableFunction2, STRING_PARAMETER_NAME); + List functionCalls = Arrays.asList(FUNCTION_CALL_1, FUNCTION_CALL_2); + + IllegalStateException thrown = + assertThrows( + IllegalStateException.class, + () -> responder.getContentFromFunctionCalls(functionCalls)); + assertThat(thrown) + .hasMessageThat() + .contains("Exceeded the maximum number of continuous automatic function calls"); + } + + @Test + public void testRespondToFunctionCallWithNonExistFunction_throwsIllegalArgumentException() + throws Exception { + AutomaticFunctionCallingResponder responder = new AutomaticFunctionCallingResponder(); + Method callableFunction1 = + AutomaticFunctionCallingResponderTest.class.getMethod(FUNCTION_NAME_1, String.class); + responder.addCallableFunction(FUNCTION_NAME_1, callableFunction1, STRING_PARAMETER_NAME); + List functionCalls = Arrays.asList(FUNCTION_CALL_WITH_FALSE_FUNCTION_NAME); + + IllegalArgumentException thrown = + assertThrows( + IllegalArgumentException.class, + () -> responder.getContentFromFunctionCalls(functionCalls)); + assertThat(thrown) + .hasMessageThat() + .isEqualTo("Model has asked to call function \"nonExistFunction\" which was not found."); + } + + @Test + public void testRespondToFunctionCallWithNonExistParameter_throwsIllegalArgumentException() + throws Exception { + AutomaticFunctionCallingResponder responder = new AutomaticFunctionCallingResponder(); + Method callableFunction1 = + AutomaticFunctionCallingResponderTest.class.getMethod(FUNCTION_NAME_1, String.class); + responder.addCallableFunction(FUNCTION_NAME_1, callableFunction1, STRING_PARAMETER_NAME); + List functionCalls = Arrays.asList(FUNCTION_CALL_WITH_FALSE_PARAMETER_NAME); + + IllegalArgumentException thrown = + assertThrows( + IllegalArgumentException.class, + () -> responder.getContentFromFunctionCalls(functionCalls)); + assertThat(thrown) + .hasMessageThat() + .contains( + "The parameter \"" + + STRING_PARAMETER_NAME + + "\" was not found in the arguments requested by the" + + " model."); + } + + @Test + public void testRespondToFunctionCallWithWrongParameterValue_throwsIllegalStateException() + throws Exception { + AutomaticFunctionCallingResponder responder = new AutomaticFunctionCallingResponder(); + Method callableFunction1 = + AutomaticFunctionCallingResponderTest.class.getMethod(FUNCTION_NAME_1, String.class); + responder.addCallableFunction(FUNCTION_NAME_1, callableFunction1, STRING_PARAMETER_NAME); + List functionCalls = Arrays.asList(FUNCTION_CALL_WITH_FALSE_PARAMETER_VALUE); + + IllegalStateException thrown = + assertThrows( + IllegalStateException.class, + () -> responder.getContentFromFunctionCalls(functionCalls)); + assertThat(thrown) + .hasMessageThat() + .contains( + "Error raised when calling function \"" + + FUNCTION_NAME_1 + + "\" as requested by the model. "); + } } From 782f21b5836d3b56bf58cc81026ab326e260b16c Mon Sep 17 00:00:00 2001 From: "copybara-service[bot]" <56741989+copybara-service[bot]@users.noreply.github.com> Date: Mon, 10 Jun 2024 01:43:50 +0000 Subject: [PATCH 03/33] feat: [vertexai] Update gapic to include ToolConfig (#10920) PiperOrigin-RevId: 640297768 Co-authored-by: Jaycee Li --- .../vertexai/api/PredictionServiceClient.java | 3 + .../api/stub/EndpointServiceStubSettings.java | 18 - .../api/stub/GrpcLlmUtilityServiceStub.java | 14 +- .../api/stub/GrpcPredictionServiceStub.java | 12 + .../api/stub/HttpJsonEndpointServiceStub.java | 45 + .../stub/HttpJsonLlmUtilityServiceStub.java | 71 +- .../stub/HttpJsonPredictionServiceStub.java | 4 + .../stub/LlmUtilityServiceStubSettings.java | 18 - .../stub/PredictionServiceStubSettings.java | 23 +- .../AutomaticFunctionCallingResponder.java | 266 -- .../reflect-config.json | 121 +- .../EndpointServiceClientHttpJsonTest.java | 9 + .../api/EndpointServiceClientTest.java | 7 + .../api/LlmUtilityServiceClientTest.java | 5 - .../api/PredictionServiceClientTest.java | 2 + ...AutomaticFunctionCallingResponderTest.java | 305 --- .../generativeai/GenerativeModelTest.java | 4 +- .../cloud/vertexai/api/AcceleratorType.java | 22 + .../vertexai/api/AcceleratorTypeProto.java | 15 +- .../cloud/vertexai/api/ContentProto.java | 201 +- .../google/cloud/vertexai/api/Endpoint.java | 400 ++- .../cloud/vertexai/api/EndpointOrBuilder.java | 56 +- .../cloud/vertexai/api/EndpointProto.java | 127 +- .../vertexai/api/FunctionCallingConfig.java | 1119 +++++++++ .../api/FunctionCallingConfigOrBuilder.java | 118 + .../vertexai/api/GenerateContentRequest.java | 348 ++- .../api/GenerateContentRequestOrBuilder.java | 44 + .../cloud/vertexai/api/GenerationConfig.java | 375 ++- .../api/GenerationConfigOrBuilder.java | 59 + .../vertexai/api/GoogleSearchRetrieval.java | 111 - .../api/GoogleSearchRetrievalOrBuilder.java | 18 +- .../vertexai/api/GroundingAttribution.java | 2138 ----------------- .../api/GroundingAttributionOrBuilder.java | 141 -- .../cloud/vertexai/api/GroundingMetadata.java | 554 ++--- .../api/GroundingMetadataOrBuilder.java | 44 +- .../vertexai/api/PredictionServiceProto.java | 219 +- .../api/PrivateServiceConnectConfig.java | 831 +++++++ .../PrivateServiceConnectConfigOrBuilder.java | 94 + .../vertexai/api/PscAutomatedEndpoints.java | 991 ++++++++ .../api/PscAutomatedEndpointsOrBuilder.java | 101 + .../{Segment.java => SearchEntryPoint.java} | 427 ++-- ...er.java => SearchEntryPointOrBuilder.java} | 34 +- .../vertexai/api/ServiceNetworkingProto.java | 96 + .../google/cloud/vertexai/api/ToolConfig.java | 755 ++++++ .../vertexai/api/ToolConfigOrBuilder.java | 67 + .../google/cloud/vertexai/api/ToolProto.java | 46 +- .../cloud/vertexai/v1/accelerator_type.proto | 5 +- .../google/cloud/vertexai/v1/content.proto | 68 +- .../cloud/vertexai/v1/encryption_spec.proto | 2 +- .../google/cloud/vertexai/v1/endpoint.proto | 11 +- .../cloud/vertexai/v1/endpoint_service.proto | 2 +- .../cloud/vertexai/v1/explanation.proto | 2 +- .../vertexai/v1/explanation_metadata.proto | 2 +- .../proto/google/cloud/vertexai/v1/io.proto | 2 +- .../vertexai/v1/llm_utility_service.proto | 2 +- .../cloud/vertexai/v1/machine_resources.proto | 2 +- .../google/cloud/vertexai/v1/openapi.proto | 2 +- .../google/cloud/vertexai/v1/operation.proto | 2 +- .../vertexai/v1/prediction_service.proto | 39 +- .../vertexai/v1/service_networking.proto | 52 + .../proto/google/cloud/vertexai/v1/tool.proto | 47 +- .../google/cloud/vertexai/v1/types.proto | 2 +- 62 files changed, 6531 insertions(+), 4189 deletions(-) delete mode 100644 java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/AutomaticFunctionCallingResponder.java delete mode 100644 java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/AutomaticFunctionCallingResponderTest.java create mode 100644 java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/FunctionCallingConfig.java create mode 100644 java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/FunctionCallingConfigOrBuilder.java delete mode 100644 java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GroundingAttribution.java delete mode 100644 java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GroundingAttributionOrBuilder.java create mode 100644 java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PrivateServiceConnectConfig.java create mode 100644 java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PrivateServiceConnectConfigOrBuilder.java create mode 100644 java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PscAutomatedEndpoints.java create mode 100644 java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PscAutomatedEndpointsOrBuilder.java rename java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/{Segment.java => SearchEntryPoint.java} (53%) rename java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/{SegmentOrBuilder.java => SearchEntryPointOrBuilder.java} (55%) create mode 100644 java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ServiceNetworkingProto.java create mode 100644 java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ToolConfig.java create mode 100644 java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ToolConfigOrBuilder.java create mode 100644 java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/service_networking.proto diff --git a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/PredictionServiceClient.java b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/PredictionServiceClient.java index 76a669f4892d..b8e46ee1d9fa 100644 --- a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/PredictionServiceClient.java +++ b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/PredictionServiceClient.java @@ -1410,6 +1410,7 @@ public final GenerateContentResponse generateContent(String model, List * .addAllContents(new ArrayList()) * .setSystemInstruction(Content.newBuilder().build()) * .addAllTools(new ArrayList()) + * .setToolConfig(ToolConfig.newBuilder().build()) * .addAllSafetySettings(new ArrayList()) * .setGenerationConfig(GenerationConfig.newBuilder().build()) * .build(); @@ -1443,6 +1444,7 @@ public final GenerateContentResponse generateContent(GenerateContentRequest requ * .addAllContents(new ArrayList()) * .setSystemInstruction(Content.newBuilder().build()) * .addAllTools(new ArrayList()) + * .setToolConfig(ToolConfig.newBuilder().build()) * .addAllSafetySettings(new ArrayList()) * .setGenerationConfig(GenerationConfig.newBuilder().build()) * .build(); @@ -1477,6 +1479,7 @@ public final GenerateContentResponse generateContent(GenerateContentRequest requ * .addAllContents(new ArrayList()) * .setSystemInstruction(Content.newBuilder().build()) * .addAllTools(new ArrayList()) + * .setToolConfig(ToolConfig.newBuilder().build()) * .addAllSafetySettings(new ArrayList()) * .setGenerationConfig(GenerationConfig.newBuilder().build()) * .build(); diff --git a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/EndpointServiceStubSettings.java b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/EndpointServiceStubSettings.java index 2653f8b141f4..f0c144b09d7b 100644 --- a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/EndpointServiceStubSettings.java +++ b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/EndpointServiceStubSettings.java @@ -390,15 +390,6 @@ public EndpointServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } - /** Returns the endpoint set by the user or the the service's default endpoint. */ - @Override - public String getEndpoint() { - if (super.getEndpoint() != null) { - return super.getEndpoint(); - } - return getDefaultEndpoint(); - } - /** Returns the default service name. */ @Override public String getServiceName() { @@ -998,15 +989,6 @@ public UnaryCallSettings.Builder getIamPolicySettin return testIamPermissionsSettings; } - /** Returns the endpoint set by the user or the the service's default endpoint. */ - @Override - public String getEndpoint() { - if (super.getEndpoint() != null) { - return super.getEndpoint(); - } - return getDefaultEndpoint(); - } - @Override public EndpointServiceStubSettings build() throws IOException { return new EndpointServiceStubSettings(this); diff --git a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/GrpcLlmUtilityServiceStub.java b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/GrpcLlmUtilityServiceStub.java index 21e7eef6e7df..399dc602636e 100644 --- a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/GrpcLlmUtilityServiceStub.java +++ b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/GrpcLlmUtilityServiceStub.java @@ -54,14 +54,14 @@ @Generated("by gapic-generator-java") public class GrpcLlmUtilityServiceStub extends LlmUtilityServiceStub { private static final MethodDescriptor - // TODO(b/317255628): switch back to the google.cloud.aiplatform.v1.LlmUtilityServiceClient countTokensMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.aiplatform.v1beta1.PredictionService/CountTokens") - .setRequestMarshaller(ProtoUtils.marshaller(CountTokensRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(CountTokensResponse.getDefaultInstance())) - .build(); + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1.LlmUtilityService/CountTokens") + .setRequestMarshaller(ProtoUtils.marshaller(CountTokensRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(CountTokensResponse.getDefaultInstance())) + .build(); private static final MethodDescriptor computeTokensMethodDescriptor = diff --git a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/GrpcPredictionServiceStub.java b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/GrpcPredictionServiceStub.java index 7b0843c0f1ae..ee048918e7ed 100644 --- a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/GrpcPredictionServiceStub.java +++ b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/GrpcPredictionServiceStub.java @@ -385,12 +385,24 @@ protected GrpcPredictionServiceStub( streamDirectPredictTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(streamDirectPredictMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("endpoint", String.valueOf(request.getEndpoint())); + return builder.build(); + }) .build(); GrpcCallSettings streamDirectRawPredictTransportSettings = GrpcCallSettings .newBuilder() .setMethodDescriptor(streamDirectRawPredictMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("endpoint", String.valueOf(request.getEndpoint())); + return builder.build(); + }) .build(); GrpcCallSettings streamingPredictTransportSettings = diff --git a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/HttpJsonEndpointServiceStub.java b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/HttpJsonEndpointServiceStub.java index 3984c86e3db5..73ef272ae5d1 100644 --- a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/HttpJsonEndpointServiceStub.java +++ b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/HttpJsonEndpointServiceStub.java @@ -688,6 +688,16 @@ protected HttpJsonEndpointServiceStub( "google.longrunning.Operations.CancelOperation", HttpRule.newBuilder() .setPost("/ui/{name=projects/*/locations/*/operations/*}:cancel") + .addAdditionalBindings( + HttpRule.newBuilder() + .setPost( + "/ui/{name=projects/*/locations/*/agents/*/operations/*}:cancel") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setPost( + "/ui/{name=projects/*/locations/*/apps/*/operations/*}:cancel") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setPost( @@ -1067,6 +1077,15 @@ protected HttpJsonEndpointServiceStub( "google.longrunning.Operations.DeleteOperation", HttpRule.newBuilder() .setDelete("/ui/{name=projects/*/locations/*/operations/*}") + .addAdditionalBindings( + HttpRule.newBuilder() + .setDelete( + "/ui/{name=projects/*/locations/*/agents/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setDelete("/ui/{name=projects/*/locations/*/apps/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setDelete( @@ -1476,6 +1495,14 @@ protected HttpJsonEndpointServiceStub( "google.longrunning.Operations.GetOperation", HttpRule.newBuilder() .setGet("/ui/{name=projects/*/locations/*/operations/*}") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/ui/{name=projects/*/locations/*/agents/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/ui/{name=projects/*/locations/*/apps/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet("/ui/{name=projects/*/locations/*/datasets/*/operations/*}") @@ -1892,6 +1919,14 @@ protected HttpJsonEndpointServiceStub( "google.longrunning.Operations.ListOperations", HttpRule.newBuilder() .setGet("/ui/{name=projects/*/locations/*}/operations") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/ui/{name=projects/*/locations/*/agents/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/ui/{name=projects/*/locations/*/apps/*}/operations") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet("/ui/{name=projects/*/locations/*/datasets/*}/operations") @@ -2294,6 +2329,16 @@ protected HttpJsonEndpointServiceStub( "google.longrunning.Operations.WaitOperation", HttpRule.newBuilder() .setPost("/ui/{name=projects/*/locations/*/operations/*}:wait") + .addAdditionalBindings( + HttpRule.newBuilder() + .setPost( + "/ui/{name=projects/*/locations/*/agents/*/operations/*}:wait") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setPost( + "/ui/{name=projects/*/locations/*/apps/*/operations/*}:wait") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setPost( diff --git a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/HttpJsonLlmUtilityServiceStub.java b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/HttpJsonLlmUtilityServiceStub.java index 8086891047d0..cc0c77d61174 100644 --- a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/HttpJsonLlmUtilityServiceStub.java +++ b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/HttpJsonLlmUtilityServiceStub.java @@ -63,43 +63,42 @@ public class HttpJsonLlmUtilityServiceStub extends LlmUtilityServiceStub { private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); private static final ApiMethodDescriptor - // TODO(b/317255628): switch back to the google.cloud.aiplatform.v1.LlmUtilityServiceClient countTokensMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.aiplatform.v1beta1.PredictionService/CountTokens") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{endpoint=projects/*/locations/*/endpoints/*}:countTokens", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "endpoint", request.getEndpoint()); - return fields; - }) - .setAdditionalPaths( - "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:countTokens") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearEndpoint().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(CountTokensResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.aiplatform.v1.LlmUtilityService/CountTokens") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{endpoint=projects/*/locations/*/endpoints/*}:countTokens", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "endpoint", request.getEndpoint()); + return fields; + }) + .setAdditionalPaths( + "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:countTokens") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearEndpoint().build(), false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(CountTokensResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); private static final ApiMethodDescriptor computeTokensMethodDescriptor = diff --git a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/HttpJsonPredictionServiceStub.java b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/HttpJsonPredictionServiceStub.java index 338523203985..89de31aedef8 100644 --- a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/HttpJsonPredictionServiceStub.java +++ b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/HttpJsonPredictionServiceStub.java @@ -211,6 +211,8 @@ public class HttpJsonPredictionServiceStub extends PredictionServiceStub { serializer.putPathParam(fields, "endpoint", request.getEndpoint()); return fields; }) + .setAdditionalPaths( + "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:directPredict") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -247,6 +249,8 @@ public class HttpJsonPredictionServiceStub extends PredictionServiceStub { serializer.putPathParam(fields, "endpoint", request.getEndpoint()); return fields; }) + .setAdditionalPaths( + "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:directRawPredict") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); diff --git a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/LlmUtilityServiceStubSettings.java b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/LlmUtilityServiceStubSettings.java index afc0792f076c..3b3aa6e1ede4 100644 --- a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/LlmUtilityServiceStubSettings.java +++ b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/LlmUtilityServiceStubSettings.java @@ -226,15 +226,6 @@ public LlmUtilityServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } - /** Returns the endpoint set by the user or the the service's default endpoint. */ - @Override - public String getEndpoint() { - if (super.getEndpoint() != null) { - return super.getEndpoint(); - } - return getDefaultEndpoint(); - } - /** Returns the default service name. */ @Override public String getServiceName() { @@ -540,15 +531,6 @@ public UnaryCallSettings.Builder getIamPolicySettin return testIamPermissionsSettings; } - /** Returns the endpoint set by the user or the the service's default endpoint. */ - @Override - public String getEndpoint() { - if (super.getEndpoint() != null) { - return super.getEndpoint(); - } - return getDefaultEndpoint(); - } - @Override public LlmUtilityServiceStubSettings build() throws IOException { return new LlmUtilityServiceStubSettings(this); diff --git a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/PredictionServiceStubSettings.java b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/PredictionServiceStubSettings.java index 31d4683d731f..3955805e91a6 100644 --- a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/PredictionServiceStubSettings.java +++ b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/PredictionServiceStubSettings.java @@ -125,7 +125,10 @@ public class PredictionServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/cloud-platform.read-only") + .build(); private final UnaryCallSettings predictSettings; private final UnaryCallSettings rawPredictSettings; @@ -328,15 +331,6 @@ public PredictionServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } - /** Returns the endpoint set by the user or the the service's default endpoint. */ - @Override - public String getEndpoint() { - if (super.getEndpoint() != null) { - return super.getEndpoint(); - } - return getDefaultEndpoint(); - } - /** Returns the default service name. */ @Override public String getServiceName() { @@ -806,15 +800,6 @@ public UnaryCallSettings.Builder getIamPolicySettin return testIamPermissionsSettings; } - /** Returns the endpoint set by the user or the the service's default endpoint. */ - @Override - public String getEndpoint() { - if (super.getEndpoint() != null) { - return super.getEndpoint(); - } - return getDefaultEndpoint(); - } - @Override public PredictionServiceStubSettings build() throws IOException { return new PredictionServiceStubSettings(this); diff --git a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/AutomaticFunctionCallingResponder.java b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/AutomaticFunctionCallingResponder.java deleted file mode 100644 index 6df904860f58..000000000000 --- a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/AutomaticFunctionCallingResponder.java +++ /dev/null @@ -1,266 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.vertexai.generativeai; - -import static com.google.common.base.Preconditions.checkNotNull; - -import com.google.cloud.vertexai.api.Content; -import com.google.cloud.vertexai.api.FunctionCall; -import com.google.common.collect.ImmutableList; -import com.google.protobuf.Struct; -import com.google.protobuf.Value; -import java.lang.reflect.Method; -import java.lang.reflect.Modifier; -import java.lang.reflect.Parameter; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.logging.Logger; - -/** A responder that automatically calls functions when requested by the GenAI model. */ -public final class AutomaticFunctionCallingResponder { - private int maxFunctionCalls = 1; - private int remainingFunctionCalls; - private final Map callableFunctions = new HashMap<>(); - - private static final Logger logger = - Logger.getLogger(AutomaticFunctionCallingResponder.class.getName()); - - /** Constructs an AutomaticFunctionCallingResponder instance. */ - public AutomaticFunctionCallingResponder() { - this.remainingFunctionCalls = this.maxFunctionCalls; - } - - /** - * Constructs an AutomaticFunctionCallingResponder instance. - * - * @param maxFunctionCalls the maximum number of function calls to make in a row - */ - public AutomaticFunctionCallingResponder(int maxFunctionCalls) { - this.maxFunctionCalls = maxFunctionCalls; - this.remainingFunctionCalls = maxFunctionCalls; - } - - /** Sets the maximum number of function calls to make in a row. */ - public void setMaxFunctionCalls(int maxFunctionCalls) { - this.maxFunctionCalls = maxFunctionCalls; - this.remainingFunctionCalls = this.maxFunctionCalls; - } - - /** Gets the maximum number of function calls to make in a row. */ - public int getMaxFunctionCalls() { - return maxFunctionCalls; - } - - /** Resets the remaining function calls to the maximum number of function calls. */ - void resetRemainingFunctionCalls() { - this.remainingFunctionCalls = this.maxFunctionCalls; - } - - /** - * Adds a callable function to the AutomaticFunctionCallingResponder. - * - *

Note:: If you don't want to manually provide parameter names, you can ignore - * `orderedParameterNames` and compile your code with the "-parameters" flag. In this case, the - * parameter names can be auto retrieved from reflection. - * - * @param functionName the name of the function - * @param callableFunction the method to call when the functionName is requested - * @param orderedParameterNames the names of the parameters in the order they are passed to the - * function - * @throws IllegalArgumentException if the functionName is already in the responder - * @throws IllegalStateException if the parameter names are not provided and cannot be retrieved - * from reflection - */ - public void addCallableFunction( - String functionName, Method callableFunction, String... orderedParameterNames) { - if (callableFunctions.containsKey(functionName)) { - throw new IllegalArgumentException("Duplicate function name: " + functionName); - } else { - callableFunctions.put( - functionName, new CallableFunction(callableFunction, orderedParameterNames)); - } - } - - /** - * Automatically calls functions requested by the model and generates a Content that contains the - * results. - * - * @param functionCalls a list of {@link com.google.cloud.vertexai.api.FunctionCall} requested by - * the model - * @return a {@link com.google.cloud.vertexai.api.Content} that contains the results of the - * function calls - * @throws IllegalStateException if the number of automatic calls exceeds the maximum number of - * function calls - * @throws IllegalArgumentException if the model has asked to call a function that was not found - * in the responder - */ - Content getContentFromFunctionCalls(List functionCalls) { - checkNotNull(functionCalls, "functionCalls cannot be null."); - - List responseParts = new ArrayList<>(); - - for (FunctionCall functionCall : functionCalls) { - if (remainingFunctionCalls <= 0) { - throw new IllegalStateException( - "Exceeded the maximum number of continuous automatic function calls (" - + maxFunctionCalls - + "). If more automatic function calls are needed, please call" - + " `setMaxFunctionCalls() to set a higher number. The last function call is:\n" - + functionCall); - } - remainingFunctionCalls -= 1; - String functionName = functionCall.getName(); - CallableFunction callableFunction = callableFunctions.get(functionName); - if (callableFunction == null) { - throw new IllegalArgumentException( - "Model has asked to call function \"" + functionName + "\" which was not found."); - } - responseParts.add( - PartMaker.fromFunctionResponse( - functionName, - Collections.singletonMap("result", callableFunction.call(functionCall.getArgs())))); - } - - return ContentMaker.fromMultiModalData(responseParts.toArray()); - } - - /** A class that represents a function that can be called automatically. */ - static class CallableFunction { - private final Method callableFunction; - private final ImmutableList orderedParameterNames; - - /** - * Constructs a CallableFunction instance. - * - *

Note:: If you don't want to manually provide parameter names, you can ignore - * `orderedParameterNames` and compile your code with the "-parameters" flag. In this case, the - * parameter names can be auto retrieved from reflection. - * - * @param callableFunction the method to call - * @param orderedParameterNames the names of the parameters in the order they are passed to the - * function - * @throws IllegalArgumentException if the given method is not a static method or the number of - * provided parameter names doesn't match the number of parameters in the callable function - * @throws IllegalStateException if the parameter names are not provided and cannot be retrieved - * from reflection - */ - CallableFunction(Method callableFunction, String... orderedParameterNames) { - validateFunction(callableFunction); - this.callableFunction = callableFunction; - - if (orderedParameterNames.length == 0) { - ImmutableList.Builder builder = ImmutableList.builder(); - for (Parameter parameter : callableFunction.getParameters()) { - if (parameter.isNamePresent()) { - builder.add(parameter.getName()); - } else { - throw new IllegalStateException( - "Failed to retrieve the parameter name from reflection. Please compile your code" - + " with \"-parameters\" flag or use `addCallableFunction(String, Method," - + " String...)` to manually enter parameter names"); - } - } - this.orderedParameterNames = builder.build(); - } else if (orderedParameterNames.length == callableFunction.getParameters().length) { - this.orderedParameterNames = ImmutableList.copyOf(orderedParameterNames); - } else { - throw new IllegalArgumentException( - "The number of provided parameter names doesn't match the number of parameters in the" - + " callable function."); - } - } - - /** - * Calls the callable function with the given arguments. - * - * @param args the arguments to pass to the function - * @return the result of the function call - * @throws IllegalStateException if there are errors when invoking the function - * @throws IllegalArgumentException if the args map doesn't contain all the parameters of the - * function or the value types in the args map are not supported - */ - Object call(Struct args) { - // Extract the arguments from the Struct - Map argsMap = args.getFieldsMap(); - List argsList = new ArrayList<>(); - for (int i = 0; i < orderedParameterNames.size(); i++) { - String parameterName = orderedParameterNames.get(i); - if (!argsMap.containsKey(parameterName)) { - throw new IllegalArgumentException( - "The parameter \"" - + parameterName - + "\" was not found in the arguments requested by the model. Args map: " - + argsMap); - } - Value value = argsMap.get(parameterName); - switch (value.getKindCase()) { - case NUMBER_VALUE: - // Args map only returns double values, but the function may expect other types(int, - // float). So we need to cast the value to the correct type. - Class parameterType = callableFunction.getParameters()[i].getType(); - if (parameterType.equals(int.class)) { - argsList.add((int) value.getNumberValue()); - } else if (parameterType.equals(float.class)) { - argsList.add((float) value.getNumberValue()); - } else { - argsList.add(value.getNumberValue()); - } - break; - case STRING_VALUE: - argsList.add(value.getStringValue()); - break; - case BOOL_VALUE: - argsList.add(value.getBoolValue()); - break; - case NULL_VALUE: - argsList.add(null); - break; - default: - throw new IllegalArgumentException( - "Unsupported value type " - + value.getKindCase() - + " for parameter " - + parameterName); - } - } - - // Invoke the function - logger.info( - "Automatically calling function: " - + callableFunction.getName() - + argsList.toString().replace('[', '(').replace(']', ')')); - try { - return callableFunction.invoke(null, argsList.toArray()); - } catch (Exception e) { - throw new IllegalStateException( - "Error raised when calling function \"" - + callableFunction.getName() - + "\" as requested by the model. ", - e); - } - } - - /** Validates that the given method is a static method. */ - private void validateFunction(Method method) { - if (!Modifier.isStatic(method.getModifiers())) { - throw new IllegalArgumentException("Function calling only supports static methods."); - } - } - } -} diff --git a/java-vertexai/google-cloud-vertexai/src/main/resources/META-INF/native-image/com.google.cloud.vertexai.api/reflect-config.json b/java-vertexai/google-cloud-vertexai/src/main/resources/META-INF/native-image/com.google.cloud.vertexai.api/reflect-config.json index ddf363e467ab..b930b65862ec 100644 --- a/java-vertexai/google-cloud-vertexai/src/main/resources/META-INF/native-image/com.google.cloud.vertexai.api/reflect-config.json +++ b/java-vertexai/google-cloud-vertexai/src/main/resources/META-INF/native-image/com.google.cloud.vertexai.api/reflect-config.json @@ -1610,6 +1610,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.vertexai.api.FunctionCallingConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vertexai.api.FunctionCallingConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vertexai.api.FunctionCallingConfig$Mode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.vertexai.api.FunctionDeclaration", "queryAllDeclaredConstructors": true, @@ -1835,42 +1862,6 @@ "allDeclaredClasses": true, "allPublicClasses": true }, - { - "name": "com.google.cloud.vertexai.api.GroundingAttribution", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.vertexai.api.GroundingAttribution$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.vertexai.api.GroundingAttribution$Web", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.vertexai.api.GroundingAttribution$Web$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, { "name": "com.google.cloud.vertexai.api.GroundingMetadata", "queryAllDeclaredConstructors": true, @@ -2240,6 +2231,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.vertexai.api.PrivateServiceConnectConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vertexai.api.PrivateServiceConnectConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vertexai.api.PscAutomatedEndpoints", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vertexai.api.PscAutomatedEndpoints$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.vertexai.api.RawPredictRequest", "queryAllDeclaredConstructors": true, @@ -2403,7 +2430,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vertexai.api.Segment", + "name": "com.google.cloud.vertexai.api.SearchEntryPoint", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2412,7 +2439,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vertexai.api.Segment$Builder", + "name": "com.google.cloud.vertexai.api.SearchEntryPoint$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2717,6 +2744,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.vertexai.api.ToolConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vertexai.api.ToolConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.vertexai.api.Type", "queryAllDeclaredConstructors": true, diff --git a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/api/EndpointServiceClientHttpJsonTest.java b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/api/EndpointServiceClientHttpJsonTest.java index 8ab6fcb508c7..d1417db82980 100644 --- a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/api/EndpointServiceClientHttpJsonTest.java +++ b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/api/EndpointServiceClientHttpJsonTest.java @@ -116,6 +116,7 @@ public void createEndpointTest() throws Exception { .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setNetwork("network1843485230") .setEnablePrivateServiceConnect(true) + .setPrivateServiceConnectConfig(PrivateServiceConnectConfig.newBuilder().build()) .setModelDeploymentMonitoringJob("modelDeploymentMonitoringJob-1178077657") .setPredictRequestResponseLoggingConfig( PredictRequestResponseLoggingConfig.newBuilder().build()) @@ -183,6 +184,7 @@ public void createEndpointTest2() throws Exception { .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setNetwork("network1843485230") .setEnablePrivateServiceConnect(true) + .setPrivateServiceConnectConfig(PrivateServiceConnectConfig.newBuilder().build()) .setModelDeploymentMonitoringJob("modelDeploymentMonitoringJob-1178077657") .setPredictRequestResponseLoggingConfig( PredictRequestResponseLoggingConfig.newBuilder().build()) @@ -250,6 +252,7 @@ public void createEndpointTest3() throws Exception { .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setNetwork("network1843485230") .setEnablePrivateServiceConnect(true) + .setPrivateServiceConnectConfig(PrivateServiceConnectConfig.newBuilder().build()) .setModelDeploymentMonitoringJob("modelDeploymentMonitoringJob-1178077657") .setPredictRequestResponseLoggingConfig( PredictRequestResponseLoggingConfig.newBuilder().build()) @@ -319,6 +322,7 @@ public void createEndpointTest4() throws Exception { .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setNetwork("network1843485230") .setEnablePrivateServiceConnect(true) + .setPrivateServiceConnectConfig(PrivateServiceConnectConfig.newBuilder().build()) .setModelDeploymentMonitoringJob("modelDeploymentMonitoringJob-1178077657") .setPredictRequestResponseLoggingConfig( PredictRequestResponseLoggingConfig.newBuilder().build()) @@ -388,6 +392,7 @@ public void getEndpointTest() throws Exception { .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setNetwork("network1843485230") .setEnablePrivateServiceConnect(true) + .setPrivateServiceConnectConfig(PrivateServiceConnectConfig.newBuilder().build()) .setModelDeploymentMonitoringJob("modelDeploymentMonitoringJob-1178077657") .setPredictRequestResponseLoggingConfig( PredictRequestResponseLoggingConfig.newBuilder().build()) @@ -450,6 +455,7 @@ public void getEndpointTest2() throws Exception { .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setNetwork("network1843485230") .setEnablePrivateServiceConnect(true) + .setPrivateServiceConnectConfig(PrivateServiceConnectConfig.newBuilder().build()) .setModelDeploymentMonitoringJob("modelDeploymentMonitoringJob-1178077657") .setPredictRequestResponseLoggingConfig( PredictRequestResponseLoggingConfig.newBuilder().build()) @@ -610,6 +616,7 @@ public void updateEndpointTest() throws Exception { .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setNetwork("network1843485230") .setEnablePrivateServiceConnect(true) + .setPrivateServiceConnectConfig(PrivateServiceConnectConfig.newBuilder().build()) .setModelDeploymentMonitoringJob("modelDeploymentMonitoringJob-1178077657") .setPredictRequestResponseLoggingConfig( PredictRequestResponseLoggingConfig.newBuilder().build()) @@ -632,6 +639,7 @@ public void updateEndpointTest() throws Exception { .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setNetwork("network1843485230") .setEnablePrivateServiceConnect(true) + .setPrivateServiceConnectConfig(PrivateServiceConnectConfig.newBuilder().build()) .setModelDeploymentMonitoringJob("modelDeploymentMonitoringJob-1178077657") .setPredictRequestResponseLoggingConfig( PredictRequestResponseLoggingConfig.newBuilder().build()) @@ -681,6 +689,7 @@ public void updateEndpointExceptionTest() throws Exception { .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setNetwork("network1843485230") .setEnablePrivateServiceConnect(true) + .setPrivateServiceConnectConfig(PrivateServiceConnectConfig.newBuilder().build()) .setModelDeploymentMonitoringJob("modelDeploymentMonitoringJob-1178077657") .setPredictRequestResponseLoggingConfig( PredictRequestResponseLoggingConfig.newBuilder().build()) diff --git a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/api/EndpointServiceClientTest.java b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/api/EndpointServiceClientTest.java index f8c12cf56a51..64cf33af311f 100644 --- a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/api/EndpointServiceClientTest.java +++ b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/api/EndpointServiceClientTest.java @@ -125,6 +125,7 @@ public void createEndpointTest() throws Exception { .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setNetwork("network1843485230") .setEnablePrivateServiceConnect(true) + .setPrivateServiceConnectConfig(PrivateServiceConnectConfig.newBuilder().build()) .setModelDeploymentMonitoringJob("modelDeploymentMonitoringJob-1178077657") .setPredictRequestResponseLoggingConfig( PredictRequestResponseLoggingConfig.newBuilder().build()) @@ -190,6 +191,7 @@ public void createEndpointTest2() throws Exception { .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setNetwork("network1843485230") .setEnablePrivateServiceConnect(true) + .setPrivateServiceConnectConfig(PrivateServiceConnectConfig.newBuilder().build()) .setModelDeploymentMonitoringJob("modelDeploymentMonitoringJob-1178077657") .setPredictRequestResponseLoggingConfig( PredictRequestResponseLoggingConfig.newBuilder().build()) @@ -255,6 +257,7 @@ public void createEndpointTest3() throws Exception { .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setNetwork("network1843485230") .setEnablePrivateServiceConnect(true) + .setPrivateServiceConnectConfig(PrivateServiceConnectConfig.newBuilder().build()) .setModelDeploymentMonitoringJob("modelDeploymentMonitoringJob-1178077657") .setPredictRequestResponseLoggingConfig( PredictRequestResponseLoggingConfig.newBuilder().build()) @@ -323,6 +326,7 @@ public void createEndpointTest4() throws Exception { .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setNetwork("network1843485230") .setEnablePrivateServiceConnect(true) + .setPrivateServiceConnectConfig(PrivateServiceConnectConfig.newBuilder().build()) .setModelDeploymentMonitoringJob("modelDeploymentMonitoringJob-1178077657") .setPredictRequestResponseLoggingConfig( PredictRequestResponseLoggingConfig.newBuilder().build()) @@ -391,6 +395,7 @@ public void getEndpointTest() throws Exception { .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setNetwork("network1843485230") .setEnablePrivateServiceConnect(true) + .setPrivateServiceConnectConfig(PrivateServiceConnectConfig.newBuilder().build()) .setModelDeploymentMonitoringJob("modelDeploymentMonitoringJob-1178077657") .setPredictRequestResponseLoggingConfig( PredictRequestResponseLoggingConfig.newBuilder().build()) @@ -447,6 +452,7 @@ public void getEndpointTest2() throws Exception { .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setNetwork("network1843485230") .setEnablePrivateServiceConnect(true) + .setPrivateServiceConnectConfig(PrivateServiceConnectConfig.newBuilder().build()) .setModelDeploymentMonitoringJob("modelDeploymentMonitoringJob-1178077657") .setPredictRequestResponseLoggingConfig( PredictRequestResponseLoggingConfig.newBuilder().build()) @@ -589,6 +595,7 @@ public void updateEndpointTest() throws Exception { .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setNetwork("network1843485230") .setEnablePrivateServiceConnect(true) + .setPrivateServiceConnectConfig(PrivateServiceConnectConfig.newBuilder().build()) .setModelDeploymentMonitoringJob("modelDeploymentMonitoringJob-1178077657") .setPredictRequestResponseLoggingConfig( PredictRequestResponseLoggingConfig.newBuilder().build()) diff --git a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/api/LlmUtilityServiceClientTest.java b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/api/LlmUtilityServiceClientTest.java index 2290b09c0481..7472c6ddf8ff 100644 --- a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/api/LlmUtilityServiceClientTest.java +++ b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/api/LlmUtilityServiceClientTest.java @@ -56,7 +56,6 @@ import org.junit.Assert; import org.junit.Before; import org.junit.BeforeClass; -import org.junit.Ignore; import org.junit.Test; @Generated("by gapic-generator-java") @@ -102,7 +101,6 @@ public void tearDown() throws Exception { client.close(); } - @Ignore @Test public void countTokensTest() throws Exception { CountTokensResponse expectedResponse = @@ -131,7 +129,6 @@ public void countTokensTest() throws Exception { GaxGrpcProperties.getDefaultApiClientHeaderPattern())); } - @Ignore @Test public void countTokensExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); @@ -148,7 +145,6 @@ public void countTokensExceptionTest() throws Exception { } } - @Ignore @Test public void countTokensTest2() throws Exception { CountTokensResponse expectedResponse = @@ -176,7 +172,6 @@ public void countTokensTest2() throws Exception { GaxGrpcProperties.getDefaultApiClientHeaderPattern())); } - @Ignore @Test public void countTokensExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); diff --git a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/api/PredictionServiceClientTest.java b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/api/PredictionServiceClientTest.java index 45a4e2e1ef08..b2233ec85938 100644 --- a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/api/PredictionServiceClientTest.java +++ b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/api/PredictionServiceClientTest.java @@ -930,6 +930,7 @@ public void streamGenerateContentTest() throws Exception { .addAllContents(new ArrayList()) .setSystemInstruction(Content.newBuilder().build()) .addAllTools(new ArrayList()) + .setToolConfig(ToolConfig.newBuilder().build()) .addAllSafetySettings(new ArrayList()) .setGenerationConfig(GenerationConfig.newBuilder().build()) .build(); @@ -955,6 +956,7 @@ public void streamGenerateContentExceptionTest() throws Exception { .addAllContents(new ArrayList()) .setSystemInstruction(Content.newBuilder().build()) .addAllTools(new ArrayList()) + .setToolConfig(ToolConfig.newBuilder().build()) .addAllSafetySettings(new ArrayList()) .setGenerationConfig(GenerationConfig.newBuilder().build()) .build(); diff --git a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/AutomaticFunctionCallingResponderTest.java b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/AutomaticFunctionCallingResponderTest.java deleted file mode 100644 index eefd1993456d..000000000000 --- a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/AutomaticFunctionCallingResponderTest.java +++ /dev/null @@ -1,305 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.vertexai.generativeai; - -import static com.google.common.truth.Truth.assertThat; -import static org.junit.Assert.assertThrows; - -import com.google.cloud.vertexai.api.Content; -import com.google.cloud.vertexai.api.FunctionCall; -import com.google.protobuf.Struct; -import com.google.protobuf.Value; -import java.lang.reflect.Method; -import java.util.Arrays; -import java.util.Collections; -import java.util.List; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.junit.runners.JUnit4; - -@RunWith(JUnit4.class) -public final class AutomaticFunctionCallingResponderTest { - private static final int MAX_FUNCTION_CALLS = 5; - private static final int DEFAULT_MAX_FUNCTION_CALLS = 1; - private static final String FUNCTION_NAME_1 = "getCurrentWeather"; - private static final String FUNCTION_NAME_2 = "getCurrentTemperature"; - private static final String STRING_PARAMETER_NAME = "location"; - private static final FunctionCall FUNCTION_CALL_1 = - FunctionCall.newBuilder() - .setName(FUNCTION_NAME_1) - .setArgs( - Struct.newBuilder() - .putFields( - STRING_PARAMETER_NAME, Value.newBuilder().setStringValue("Boston").build())) - .build(); - private static final FunctionCall FUNCTION_CALL_2 = - FunctionCall.newBuilder() - .setName(FUNCTION_NAME_2) - .setArgs( - Struct.newBuilder() - .putFields( - STRING_PARAMETER_NAME, - Value.newBuilder().setStringValue("Vancouver").build())) - .build(); - private static final FunctionCall FUNCTION_CALL_WITH_FALSE_FUNCTION_NAME = - FunctionCall.newBuilder() - .setName("nonExistFunction") - .setArgs( - Struct.newBuilder() - .putFields( - STRING_PARAMETER_NAME, Value.newBuilder().setStringValue("Boston").build())) - .build(); - private static final FunctionCall FUNCTION_CALL_WITH_FALSE_PARAMETER_NAME = - FunctionCall.newBuilder() - .setName(FUNCTION_NAME_1) - .setArgs( - Struct.newBuilder() - .putFields( - "nonExistParameter", Value.newBuilder().setStringValue("Boston").build())) - .build(); - private static final FunctionCall FUNCTION_CALL_WITH_FALSE_PARAMETER_VALUE = - FunctionCall.newBuilder() - .setName(FUNCTION_NAME_1) - .setArgs( - Struct.newBuilder() - .putFields(STRING_PARAMETER_NAME, Value.newBuilder().setBoolValue(false).build())) - .build(); - - public static String getCurrentWeather(String location) { - if (location.equals("Boston")) { - return "snowing"; - } else if (location.equals("Vancouver")) { - return "raining"; - } else { - return "sunny"; - } - } - - public static int getCurrentTemperature(String location) { - if (location.equals("Boston")) { - return 32; - } else if (location.equals("Vancouver")) { - return 45; - } else { - return 75; - } - } - - public boolean nonStaticMethod() { - return true; - } - - @Test - public void testInitAutomaticFunctionCallingResponder_containsRightFields() { - AutomaticFunctionCallingResponder responder = new AutomaticFunctionCallingResponder(); - - assertThat(responder.getMaxFunctionCalls()).isEqualTo(DEFAULT_MAX_FUNCTION_CALLS); - } - - @Test - public void testInitAutomaticFunctionCallingResponderWithMaxFunctionCalls_containsRightFields() { - AutomaticFunctionCallingResponder responder = - new AutomaticFunctionCallingResponder(MAX_FUNCTION_CALLS); - - assertThat(responder.getMaxFunctionCalls()).isEqualTo(MAX_FUNCTION_CALLS); - } - - @Test - public void testSetMaxFunctionCalls_containsRightFields() { - AutomaticFunctionCallingResponder responder = new AutomaticFunctionCallingResponder(); - responder.setMaxFunctionCalls(MAX_FUNCTION_CALLS); - - assertThat(responder.getMaxFunctionCalls()).isEqualTo(MAX_FUNCTION_CALLS); - } - - @Test - public void testAddCallableFunctionWithoutOrderedParameterNames_throwsIllegalArgumentException() - throws NoSuchMethodException { - AutomaticFunctionCallingResponder responder = new AutomaticFunctionCallingResponder(); - Method callableFunction = - AutomaticFunctionCallingResponderTest.class.getMethod(FUNCTION_NAME_1, String.class); - - IllegalStateException thrown = - assertThrows( - IllegalStateException.class, - () -> responder.addCallableFunction(FUNCTION_NAME_1, callableFunction)); - assertThat(thrown) - .hasMessageThat() - .isEqualTo( - "Failed to retrieve the parameter name from reflection. Please compile your code with" - + " \"-parameters\" flag or use `addCallableFunction(String, Method, String...)`" - + " to manually enter parameter names"); - } - - @Test - public void testAddNonStaticCallableFunction_throwsIllegalArgumentException() - throws NoSuchMethodException { - AutomaticFunctionCallingResponder responder = new AutomaticFunctionCallingResponder(); - Method nonStaticMethod = - AutomaticFunctionCallingResponderTest.class.getMethod("nonStaticMethod"); - - IllegalArgumentException thrown = - assertThrows( - IllegalArgumentException.class, - () -> - responder.addCallableFunction( - FUNCTION_NAME_1, nonStaticMethod, STRING_PARAMETER_NAME)); - assertThat(thrown).hasMessageThat().isEqualTo("Function calling only supports static methods."); - } - - @Test - public void testAddRepeatedCallableFunction_throwsIllegalArgumentException() - throws NoSuchMethodException { - AutomaticFunctionCallingResponder responder = new AutomaticFunctionCallingResponder(); - Method callableFunction = - AutomaticFunctionCallingResponderTest.class.getMethod(FUNCTION_NAME_1, String.class); - responder.addCallableFunction(FUNCTION_NAME_1, callableFunction, STRING_PARAMETER_NAME); - - IllegalArgumentException thrown = - assertThrows( - IllegalArgumentException.class, - () -> - responder.addCallableFunction( - FUNCTION_NAME_1, callableFunction, STRING_PARAMETER_NAME)); - assertThat(thrown).hasMessageThat().isEqualTo("Duplicate function name: " + FUNCTION_NAME_1); - } - - @Test - public void testAddCallableFunctionWithWrongParameterNames_throwsIllegalArgumentException() - throws NoSuchMethodException { - AutomaticFunctionCallingResponder responder = new AutomaticFunctionCallingResponder(); - Method callableFunction = - AutomaticFunctionCallingResponderTest.class.getMethod(FUNCTION_NAME_1, String.class); - - IllegalArgumentException thrown = - assertThrows( - IllegalArgumentException.class, - () -> - responder.addCallableFunction( - FUNCTION_NAME_1, callableFunction, STRING_PARAMETER_NAME, "anotherParameter")); - assertThat(thrown) - .hasMessageThat() - .isEqualTo( - "The number of provided parameter names doesn't match the number of parameters in the" - + " callable function."); - } - - @Test - public void testRespondToFunctionCall_returnsCorrectResponse() throws Exception { - AutomaticFunctionCallingResponder responder = new AutomaticFunctionCallingResponder(2); - Method callableFunction1 = - AutomaticFunctionCallingResponderTest.class.getMethod(FUNCTION_NAME_1, String.class); - Method callableFunction2 = - AutomaticFunctionCallingResponderTest.class.getMethod(FUNCTION_NAME_2, String.class); - responder.addCallableFunction(FUNCTION_NAME_1, callableFunction1, STRING_PARAMETER_NAME); - responder.addCallableFunction(FUNCTION_NAME_2, callableFunction2, STRING_PARAMETER_NAME); - List functionCalls = Arrays.asList(FUNCTION_CALL_1, FUNCTION_CALL_2); - - Content response = responder.getContentFromFunctionCalls(functionCalls); - - Content expectedResponse = - ContentMaker.fromMultiModalData( - PartMaker.fromFunctionResponse( - FUNCTION_NAME_1, Collections.singletonMap("result", "snowing")), - PartMaker.fromFunctionResponse( - FUNCTION_NAME_2, Collections.singletonMap("result", 45))); - - assertThat(response).isEqualTo(expectedResponse); - } - - @Test - public void testRespondToFunctionCallExceedsMaxFunctionCalls_throwsIllegalStateException() - throws Exception { - AutomaticFunctionCallingResponder responder = new AutomaticFunctionCallingResponder(); - Method callableFunction1 = - AutomaticFunctionCallingResponderTest.class.getMethod(FUNCTION_NAME_1, String.class); - Method callableFunction2 = - AutomaticFunctionCallingResponderTest.class.getMethod(FUNCTION_NAME_2, String.class); - responder.addCallableFunction(FUNCTION_NAME_1, callableFunction1, STRING_PARAMETER_NAME); - responder.addCallableFunction(FUNCTION_NAME_2, callableFunction2, STRING_PARAMETER_NAME); - List functionCalls = Arrays.asList(FUNCTION_CALL_1, FUNCTION_CALL_2); - - IllegalStateException thrown = - assertThrows( - IllegalStateException.class, - () -> responder.getContentFromFunctionCalls(functionCalls)); - assertThat(thrown) - .hasMessageThat() - .contains("Exceeded the maximum number of continuous automatic function calls"); - } - - @Test - public void testRespondToFunctionCallWithNonExistFunction_throwsIllegalArgumentException() - throws Exception { - AutomaticFunctionCallingResponder responder = new AutomaticFunctionCallingResponder(); - Method callableFunction1 = - AutomaticFunctionCallingResponderTest.class.getMethod(FUNCTION_NAME_1, String.class); - responder.addCallableFunction(FUNCTION_NAME_1, callableFunction1, STRING_PARAMETER_NAME); - List functionCalls = Arrays.asList(FUNCTION_CALL_WITH_FALSE_FUNCTION_NAME); - - IllegalArgumentException thrown = - assertThrows( - IllegalArgumentException.class, - () -> responder.getContentFromFunctionCalls(functionCalls)); - assertThat(thrown) - .hasMessageThat() - .isEqualTo("Model has asked to call function \"nonExistFunction\" which was not found."); - } - - @Test - public void testRespondToFunctionCallWithNonExistParameter_throwsIllegalArgumentException() - throws Exception { - AutomaticFunctionCallingResponder responder = new AutomaticFunctionCallingResponder(); - Method callableFunction1 = - AutomaticFunctionCallingResponderTest.class.getMethod(FUNCTION_NAME_1, String.class); - responder.addCallableFunction(FUNCTION_NAME_1, callableFunction1, STRING_PARAMETER_NAME); - List functionCalls = Arrays.asList(FUNCTION_CALL_WITH_FALSE_PARAMETER_NAME); - - IllegalArgumentException thrown = - assertThrows( - IllegalArgumentException.class, - () -> responder.getContentFromFunctionCalls(functionCalls)); - assertThat(thrown) - .hasMessageThat() - .contains( - "The parameter \"" - + STRING_PARAMETER_NAME - + "\" was not found in the arguments requested by the" - + " model."); - } - - @Test - public void testRespondToFunctionCallWithWrongParameterValue_throwsIllegalStateException() - throws Exception { - AutomaticFunctionCallingResponder responder = new AutomaticFunctionCallingResponder(); - Method callableFunction1 = - AutomaticFunctionCallingResponderTest.class.getMethod(FUNCTION_NAME_1, String.class); - responder.addCallableFunction(FUNCTION_NAME_1, callableFunction1, STRING_PARAMETER_NAME); - List functionCalls = Arrays.asList(FUNCTION_CALL_WITH_FALSE_PARAMETER_VALUE); - - IllegalStateException thrown = - assertThrows( - IllegalStateException.class, - () -> responder.getContentFromFunctionCalls(functionCalls)); - assertThat(thrown) - .hasMessageThat() - .contains( - "Error raised when calling function \"" - + FUNCTION_NAME_1 - + "\" as requested by the model. "); - } -} diff --git a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/GenerativeModelTest.java b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/GenerativeModelTest.java index 1df2354b6d96..f3f8324206ee 100644 --- a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/GenerativeModelTest.java +++ b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/GenerativeModelTest.java @@ -98,9 +98,7 @@ public final class GenerativeModelTest { .addRequired("location"))) .build(); private static final Tool GOOGLE_SEARCH_TOOL = - Tool.newBuilder() - .setGoogleSearchRetrieval(GoogleSearchRetrieval.newBuilder().setDisableAttribution(false)) - .build(); + Tool.newBuilder().setGoogleSearchRetrieval(GoogleSearchRetrieval.newBuilder()).build(); private static final Tool VERTEX_AI_SEARCH_TOOL = Tool.newBuilder() .setRetrieval( diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AcceleratorType.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AcceleratorType.java index 329860b16bab..78b9a728fbb5 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AcceleratorType.java +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AcceleratorType.java @@ -159,6 +159,16 @@ public enum AcceleratorType implements com.google.protobuf.ProtocolMessageEnum { * TPU_V4_POD = 10; */ TPU_V4_POD(10), + /** + * + * + *
+   * TPU v5.
+   * 
+ * + * TPU_V5_LITEPOD = 12; + */ + TPU_V5_LITEPOD(12), UNRECOGNIZED(-1), ; @@ -292,6 +302,16 @@ public enum AcceleratorType implements com.google.protobuf.ProtocolMessageEnum { * TPU_V4_POD = 10; */ public static final int TPU_V4_POD_VALUE = 10; + /** + * + * + *
+   * TPU v5.
+   * 
+ * + * TPU_V5_LITEPOD = 12; + */ + public static final int TPU_V5_LITEPOD_VALUE = 12; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -343,6 +363,8 @@ public static AcceleratorType forNumber(int value) { return TPU_V3; case 10: return TPU_V4_POD; + case 12: + return TPU_V5_LITEPOD; default: return null; } diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AcceleratorTypeProto.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AcceleratorTypeProto.java index 0ae0196221f2..511fe8170881 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AcceleratorTypeProto.java +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AcceleratorTypeProto.java @@ -37,7 +37,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n/google/cloud/vertexai/v1/accelerator_t" - + "ype.proto\022\030google.cloud.vertexai.v1*\233\002\n\017" + + "ype.proto\022\030google.cloud.vertexai.v1*\257\002\n\017" + "AcceleratorType\022 \n\034ACCELERATOR_TYPE_UNSP" + "ECIFIED\020\000\022\024\n\020NVIDIA_TESLA_K80\020\001\022\025\n\021NVIDI" + "A_TESLA_P100\020\002\022\025\n\021NVIDIA_TESLA_V100\020\003\022\023\n" @@ -45,12 +45,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025\n\021NVIDIA_TESLA_A100\020\010\022\024\n\020NVIDIA_A100_80" + "GB\020\t\022\r\n\tNVIDIA_L4\020\013\022\024\n\020NVIDIA_H100_80GB\020" + "\r\022\n\n\006TPU_V2\020\006\022\n\n\006TPU_V3\020\007\022\016\n\nTPU_V4_POD\020" - + "\nB\321\001\n\035com.google.cloud.vertexai.apiB\024Acc" - + "eleratorTypeProtoP\001Z>cloud.google.com/go" - + "/aiplatform/apiv1/aiplatformpb;aiplatfor" - + "mpb\252\002\032Google.Cloud.AIPlatform.V1\312\002\032Googl" - + "e\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::A" - + "IPlatform::V1b\006proto3" + + "\n\022\022\n\016TPU_V5_LITEPOD\020\014B\321\001\n\035com.google.clo" + + "ud.vertexai.apiB\024AcceleratorTypeProtoP\001Z" + + ">cloud.google.com/go/aiplatform/apiv1/ai" + + "platformpb;aiplatformpb\252\002\032Google.Cloud.A" + + "IPlatform.V1\312\002\032Google\\Cloud\\AIPlatform\\V" + + "1\352\002\035Google::Cloud::AIPlatform::V1b\006proto" + + "3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ContentProto.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ContentProto.java index 45c59fda5a97..3c0480e311bd 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ContentProto.java +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ContentProto.java @@ -72,22 +72,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_vertexai_v1_Candidate_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_vertexai_v1_Candidate_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vertexai_v1_Segment_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vertexai_v1_Segment_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vertexai_v1_GroundingAttribution_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vertexai_v1_GroundingAttribution_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vertexai_v1_GroundingAttribution_Web_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vertexai_v1_GroundingAttribution_Web_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_vertexai_v1_GroundingMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_vertexai_v1_GroundingMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vertexai_v1_SearchEntryPoint_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vertexai_v1_SearchEntryPoint_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -99,7 +91,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n&google/cloud/vertexai/v1/content.proto" + "\022\030google.cloud.vertexai.v1\032\037google/api/f" - + "ield_behavior.proto\032#google/cloud/vertex" + + "ield_behavior.proto\032&google/cloud/vertex" + + "ai/v1/openapi.proto\032#google/cloud/vertex" + "ai/v1/tool.proto\032\036google/protobuf/durati" + "on.proto\032\026google/type/date.proto\"P\n\007Cont" + "ent\022\021\n\004role\030\001 \001(\tB\003\340A\001\0222\n\005parts\030\002 \003(\0132\036." @@ -119,7 +112,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "e_uri\030\002 \001(\tB\003\340A\002\"y\n\rVideoMetadata\0224\n\014sta" + "rt_offset\030\001 \001(\0132\031.google.protobuf.Durati" + "onB\003\340A\001\0222\n\nend_offset\030\002 \001(\0132\031.google.pro" - + "tobuf.DurationB\003\340A\001\"\253\003\n\020GenerationConfig" + + "tobuf.DurationB\003\340A\001\"\204\004\n\020GenerationConfig" + "\022\035\n\013temperature\030\001 \001(\002B\003\340A\001H\000\210\001\001\022\027\n\005top_p" + "\030\002 \001(\002B\003\340A\001H\001\210\001\001\022\027\n\005top_k\030\003 \001(\002B\003\340A\001H\002\210\001" + "\001\022!\n\017candidate_count\030\004 \001(\005B\003\340A\001H\003\210\001\001\022#\n\021" @@ -127,86 +120,82 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "p_sequences\030\006 \003(\tB\003\340A\001\022\"\n\020presence_penal" + "ty\030\010 \001(\002B\003\340A\001H\005\210\001\001\022#\n\021frequency_penalty\030" + "\t \001(\002B\003\340A\001H\006\210\001\001\022\037\n\022response_mime_type\030\r " - + "\001(\tB\003\340A\001B\016\n\014_temperatureB\010\n\006_top_pB\010\n\006_t" - + "op_kB\022\n\020_candidate_countB\024\n\022_max_output_" - + "tokensB\023\n\021_presence_penaltyB\024\n\022_frequenc" - + "y_penalty\"\334\003\n\rSafetySetting\022=\n\010category\030" - + "\001 \001(\0162&.google.cloud.vertexai.v1.HarmCat" - + "egoryB\003\340A\002\022R\n\tthreshold\030\002 \001(\0162:.google.c" - + "loud.vertexai.v1.SafetySetting.HarmBlock" - + "ThresholdB\003\340A\002\022L\n\006method\030\004 \001(\01627.google." - + "cloud.vertexai.v1.SafetySetting.HarmBloc" - + "kMethodB\003\340A\001\"\224\001\n\022HarmBlockThreshold\022$\n H" - + "ARM_BLOCK_THRESHOLD_UNSPECIFIED\020\000\022\027\n\023BLO" - + "CK_LOW_AND_ABOVE\020\001\022\032\n\026BLOCK_MEDIUM_AND_A" - + "BOVE\020\002\022\023\n\017BLOCK_ONLY_HIGH\020\003\022\016\n\nBLOCK_NON" - + "E\020\004\"S\n\017HarmBlockMethod\022!\n\035HARM_BLOCK_MET" - + "HOD_UNSPECIFIED\020\000\022\014\n\010SEVERITY\020\001\022\017\n\013PROBA" - + "BILITY\020\002\"\271\004\n\014SafetyRating\022=\n\010category\030\001 " - + "\001(\0162&.google.cloud.vertexai.v1.HarmCateg" - + "oryB\003\340A\003\022P\n\013probability\030\002 \001(\01626.google.c" - + "loud.vertexai.v1.SafetyRating.HarmProbab" - + "ilityB\003\340A\003\022\036\n\021probability_score\030\005 \001(\002B\003\340" - + "A\003\022J\n\010severity\030\006 \001(\01623.google.cloud.vert" - + "exai.v1.SafetyRating.HarmSeverityB\003\340A\003\022\033" - + "\n\016severity_score\030\007 \001(\002B\003\340A\003\022\024\n\007blocked\030\003" - + " \001(\010B\003\340A\003\"b\n\017HarmProbability\022 \n\034HARM_PRO" - + "BABILITY_UNSPECIFIED\020\000\022\016\n\nNEGLIGIBLE\020\001\022\007" - + "\n\003LOW\020\002\022\n\n\006MEDIUM\020\003\022\010\n\004HIGH\020\004\"\224\001\n\014HarmSe" - + "verity\022\035\n\031HARM_SEVERITY_UNSPECIFIED\020\000\022\034\n" - + "\030HARM_SEVERITY_NEGLIGIBLE\020\001\022\025\n\021HARM_SEVE" - + "RITY_LOW\020\002\022\030\n\024HARM_SEVERITY_MEDIUM\020\003\022\026\n\022" - + "HARM_SEVERITY_HIGH\020\004\"N\n\020CitationMetadata" - + "\022:\n\tcitations\030\001 \003(\0132\".google.cloud.verte" - + "xai.v1.CitationB\003\340A\003\"\252\001\n\010Citation\022\030\n\013sta" - + "rt_index\030\001 \001(\005B\003\340A\003\022\026\n\tend_index\030\002 \001(\005B\003" - + "\340A\003\022\020\n\003uri\030\003 \001(\tB\003\340A\003\022\022\n\005title\030\004 \001(\tB\003\340A" - + "\003\022\024\n\007license\030\005 \001(\tB\003\340A\003\0220\n\020publication_d" - + "ate\030\006 \001(\0132\021.google.type.DateB\003\340A\003\"\334\004\n\tCa" - + "ndidate\022\022\n\005index\030\001 \001(\005B\003\340A\003\0227\n\007content\030\002" - + " \001(\0132!.google.cloud.vertexai.v1.ContentB" - + "\003\340A\003\022L\n\rfinish_reason\030\003 \001(\01620.google.clo" - + "ud.vertexai.v1.Candidate.FinishReasonB\003\340" - + "A\003\022C\n\016safety_ratings\030\004 \003(\0132&.google.clou" - + "d.vertexai.v1.SafetyRatingB\003\340A\003\022 \n\016finis" - + "h_message\030\005 \001(\tB\003\340A\003H\000\210\001\001\022J\n\021citation_me" - + "tadata\030\006 \001(\0132*.google.cloud.vertexai.v1." - + "CitationMetadataB\003\340A\003\022L\n\022grounding_metad" - + "ata\030\007 \001(\0132+.google.cloud.vertexai.v1.Gro" - + "undingMetadataB\003\340A\003\"\237\001\n\014FinishReason\022\035\n\031" - + "FINISH_REASON_UNSPECIFIED\020\000\022\010\n\004STOP\020\001\022\016\n" - + "\nMAX_TOKENS\020\002\022\n\n\006SAFETY\020\003\022\016\n\nRECITATION\020" - + "\004\022\t\n\005OTHER\020\005\022\r\n\tBLOCKLIST\020\006\022\026\n\022PROHIBITE" - + "D_CONTENT\020\007\022\010\n\004SPII\020\010B\021\n\017_finish_message" - + "\"T\n\007Segment\022\027\n\npart_index\030\001 \001(\005B\003\340A\003\022\030\n\013" - + "start_index\030\002 \001(\005B\003\340A\003\022\026\n\tend_index\030\003 \001(" - + "\005B\003\340A\003\"\215\002\n\024GroundingAttribution\022F\n\003web\030\003" - + " \001(\01322.google.cloud.vertexai.v1.Groundin" - + "gAttribution.WebB\003\340A\001H\000\0227\n\007segment\030\001 \001(\013" - + "2!.google.cloud.vertexai.v1.SegmentB\003\340A\003" - + "\022%\n\020confidence_score\030\002 \001(\002B\006\340A\001\340A\003H\001\210\001\001\032" - + "+\n\003Web\022\020\n\003uri\030\001 \001(\tB\003\340A\003\022\022\n\005title\030\002 \001(\tB" - + "\003\340A\003B\013\n\treferenceB\023\n\021_confidence_score\"\211" - + "\001\n\021GroundingMetadata\022\037\n\022web_search_queri" - + "es\030\001 \003(\tB\003\340A\001\022S\n\026grounding_attributions\030" - + "\002 \003(\0132..google.cloud.vertexai.v1.Groundi" - + "ngAttributionB\003\340A\001*\264\001\n\014HarmCategory\022\035\n\031H" - + "ARM_CATEGORY_UNSPECIFIED\020\000\022\035\n\031HARM_CATEG" - + "ORY_HATE_SPEECH\020\001\022#\n\037HARM_CATEGORY_DANGE" - + "ROUS_CONTENT\020\002\022\034\n\030HARM_CATEGORY_HARASSME" - + "NT\020\003\022#\n\037HARM_CATEGORY_SEXUALLY_EXPLICIT\020" - + "\004B\311\001\n\035com.google.cloud.vertexai.apiB\014Con" - + "tentProtoP\001Z>cloud.google.com/go/aiplatf" - + "orm/apiv1/aiplatformpb;aiplatformpb\252\002\032Go" - + "ogle.Cloud.AIPlatform.V1\312\002\032Google\\Cloud\\" - + "AIPlatform\\V1\352\002\035Google::Cloud::AIPlatfor" - + "m::V1b\006proto3" + + "\001(\tB\003\340A\001\022C\n\017response_schema\030\020 \001(\0132 .goog" + + "le.cloud.vertexai.v1.SchemaB\003\340A\001H\007\210\001\001B\016\n" + + "\014_temperatureB\010\n\006_top_pB\010\n\006_top_kB\022\n\020_ca" + + "ndidate_countB\024\n\022_max_output_tokensB\023\n\021_" + + "presence_penaltyB\024\n\022_frequency_penaltyB\022" + + "\n\020_response_schema\"\334\003\n\rSafetySetting\022=\n\010" + + "category\030\001 \001(\0162&.google.cloud.vertexai.v" + + "1.HarmCategoryB\003\340A\002\022R\n\tthreshold\030\002 \001(\0162:" + + ".google.cloud.vertexai.v1.SafetySetting." + + "HarmBlockThresholdB\003\340A\002\022L\n\006method\030\004 \001(\0162" + + "7.google.cloud.vertexai.v1.SafetySetting" + + ".HarmBlockMethodB\003\340A\001\"\224\001\n\022HarmBlockThres" + + "hold\022$\n HARM_BLOCK_THRESHOLD_UNSPECIFIED" + + "\020\000\022\027\n\023BLOCK_LOW_AND_ABOVE\020\001\022\032\n\026BLOCK_MED" + + "IUM_AND_ABOVE\020\002\022\023\n\017BLOCK_ONLY_HIGH\020\003\022\016\n\n" + + "BLOCK_NONE\020\004\"S\n\017HarmBlockMethod\022!\n\035HARM_" + + "BLOCK_METHOD_UNSPECIFIED\020\000\022\014\n\010SEVERITY\020\001" + + "\022\017\n\013PROBABILITY\020\002\"\271\004\n\014SafetyRating\022=\n\010ca" + + "tegory\030\001 \001(\0162&.google.cloud.vertexai.v1." + + "HarmCategoryB\003\340A\003\022P\n\013probability\030\002 \001(\01626" + + ".google.cloud.vertexai.v1.SafetyRating.H" + + "armProbabilityB\003\340A\003\022\036\n\021probability_score" + + "\030\005 \001(\002B\003\340A\003\022J\n\010severity\030\006 \001(\01623.google.c" + + "loud.vertexai.v1.SafetyRating.HarmSeveri" + + "tyB\003\340A\003\022\033\n\016severity_score\030\007 \001(\002B\003\340A\003\022\024\n\007" + + "blocked\030\003 \001(\010B\003\340A\003\"b\n\017HarmProbability\022 \n" + + "\034HARM_PROBABILITY_UNSPECIFIED\020\000\022\016\n\nNEGLI" + + "GIBLE\020\001\022\007\n\003LOW\020\002\022\n\n\006MEDIUM\020\003\022\010\n\004HIGH\020\004\"\224" + + "\001\n\014HarmSeverity\022\035\n\031HARM_SEVERITY_UNSPECI" + + "FIED\020\000\022\034\n\030HARM_SEVERITY_NEGLIGIBLE\020\001\022\025\n\021" + + "HARM_SEVERITY_LOW\020\002\022\030\n\024HARM_SEVERITY_MED" + + "IUM\020\003\022\026\n\022HARM_SEVERITY_HIGH\020\004\"N\n\020Citatio" + + "nMetadata\022:\n\tcitations\030\001 \003(\0132\".google.cl" + + "oud.vertexai.v1.CitationB\003\340A\003\"\252\001\n\010Citati" + + "on\022\030\n\013start_index\030\001 \001(\005B\003\340A\003\022\026\n\tend_inde" + + "x\030\002 \001(\005B\003\340A\003\022\020\n\003uri\030\003 \001(\tB\003\340A\003\022\022\n\005title\030" + + "\004 \001(\tB\003\340A\003\022\024\n\007license\030\005 \001(\tB\003\340A\003\0220\n\020publ" + + "ication_date\030\006 \001(\0132\021.google.type.DateB\003\340" + + "A\003\"\334\004\n\tCandidate\022\022\n\005index\030\001 \001(\005B\003\340A\003\0227\n\007" + + "content\030\002 \001(\0132!.google.cloud.vertexai.v1" + + ".ContentB\003\340A\003\022L\n\rfinish_reason\030\003 \001(\01620.g" + + "oogle.cloud.vertexai.v1.Candidate.Finish" + + "ReasonB\003\340A\003\022C\n\016safety_ratings\030\004 \003(\0132&.go" + + "ogle.cloud.vertexai.v1.SafetyRatingB\003\340A\003" + + "\022 \n\016finish_message\030\005 \001(\tB\003\340A\003H\000\210\001\001\022J\n\021ci" + + "tation_metadata\030\006 \001(\0132*.google.cloud.ver" + + "texai.v1.CitationMetadataB\003\340A\003\022L\n\022ground" + + "ing_metadata\030\007 \001(\0132+.google.cloud.vertex" + + "ai.v1.GroundingMetadataB\003\340A\003\"\237\001\n\014FinishR" + + "eason\022\035\n\031FINISH_REASON_UNSPECIFIED\020\000\022\010\n\004" + + "STOP\020\001\022\016\n\nMAX_TOKENS\020\002\022\n\n\006SAFETY\020\003\022\016\n\nRE" + + "CITATION\020\004\022\t\n\005OTHER\020\005\022\r\n\tBLOCKLIST\020\006\022\026\n\022" + + "PROHIBITED_CONTENT\020\007\022\010\n\004SPII\020\010B\021\n\017_finis" + + "h_message\"\235\001\n\021GroundingMetadata\022\037\n\022web_s" + + "earch_queries\030\001 \003(\tB\003\340A\001\022P\n\022search_entry" + + "_point\030\004 \001(\0132*.google.cloud.vertexai.v1." + + "SearchEntryPointB\003\340A\001H\000\210\001\001B\025\n\023_search_en" + + "try_point\"H\n\020SearchEntryPoint\022\035\n\020rendere" + + "d_content\030\001 \001(\tB\003\340A\001\022\025\n\010sdk_blob\030\002 \001(\014B\003" + + "\340A\001*\264\001\n\014HarmCategory\022\035\n\031HARM_CATEGORY_UN" + + "SPECIFIED\020\000\022\035\n\031HARM_CATEGORY_HATE_SPEECH" + + "\020\001\022#\n\037HARM_CATEGORY_DANGEROUS_CONTENT\020\002\022" + + "\034\n\030HARM_CATEGORY_HARASSMENT\020\003\022#\n\037HARM_CA" + + "TEGORY_SEXUALLY_EXPLICIT\020\004B\311\001\n\035com.googl" + + "e.cloud.vertexai.apiB\014ContentProtoP\001Z>cl" + + "oud.google.com/go/aiplatform/apiv1/aipla" + + "tformpb;aiplatformpb\252\002\032Google.Cloud.AIPl" + + "atform.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002" + + "\035Google::Cloud::AIPlatform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.vertexai.api.OpenApiProto.getDescriptor(), com.google.cloud.vertexai.api.ToolProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), com.google.type.DateProto.getDescriptor(), @@ -273,6 +262,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PresencePenalty", "FrequencyPenalty", "ResponseMimeType", + "ResponseSchema", }); internal_static_google_cloud_vertexai_v1_SafetySetting_descriptor = getDescriptor().getMessageTypes().get(6); @@ -320,39 +310,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CitationMetadata", "GroundingMetadata", }); - internal_static_google_cloud_vertexai_v1_Segment_descriptor = + internal_static_google_cloud_vertexai_v1_GroundingMetadata_descriptor = getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_vertexai_v1_Segment_fieldAccessorTable = + internal_static_google_cloud_vertexai_v1_GroundingMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vertexai_v1_Segment_descriptor, + internal_static_google_cloud_vertexai_v1_GroundingMetadata_descriptor, new java.lang.String[] { - "PartIndex", "StartIndex", "EndIndex", + "WebSearchQueries", "SearchEntryPoint", }); - internal_static_google_cloud_vertexai_v1_GroundingAttribution_descriptor = + internal_static_google_cloud_vertexai_v1_SearchEntryPoint_descriptor = getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_vertexai_v1_GroundingAttribution_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vertexai_v1_GroundingAttribution_descriptor, - new java.lang.String[] { - "Web", "Segment", "ConfidenceScore", "Reference", - }); - internal_static_google_cloud_vertexai_v1_GroundingAttribution_Web_descriptor = - internal_static_google_cloud_vertexai_v1_GroundingAttribution_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_vertexai_v1_GroundingAttribution_Web_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vertexai_v1_GroundingAttribution_Web_descriptor, - new java.lang.String[] { - "Uri", "Title", - }); - internal_static_google_cloud_vertexai_v1_GroundingMetadata_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_vertexai_v1_GroundingMetadata_fieldAccessorTable = + internal_static_google_cloud_vertexai_v1_SearchEntryPoint_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vertexai_v1_GroundingMetadata_descriptor, + internal_static_google_cloud_vertexai_v1_SearchEntryPoint_descriptor, new java.lang.String[] { - "WebSearchQueries", "GroundingAttributions", + "RenderedContent", "SdkBlob", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); @@ -360,6 +332,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.vertexai.api.OpenApiProto.getDescriptor(); com.google.cloud.vertexai.api.ToolProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); com.google.type.DateProto.getDescriptor(); diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Endpoint.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Endpoint.java index f26675faef09..f354f74c691a 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Endpoint.java +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Endpoint.java @@ -913,7 +913,7 @@ public com.google.protobuf.ByteString getNetworkBytes() { * bool enable_private_service_connect = 17 [deprecated = true]; * * @deprecated google.cloud.vertexai.v1.Endpoint.enable_private_service_connect is deprecated. See - * google/cloud/vertexai/v1/endpoint.proto;l=126 + * google/cloud/vertexai/v1/endpoint.proto;l=127 * @return The enablePrivateServiceConnect. */ @java.lang.Override @@ -922,6 +922,76 @@ public boolean getEnablePrivateServiceConnect() { return enablePrivateServiceConnect_; } + public static final int PRIVATE_SERVICE_CONNECT_CONFIG_FIELD_NUMBER = 21; + private com.google.cloud.vertexai.api.PrivateServiceConnectConfig privateServiceConnectConfig_; + /** + * + * + *
+   * Optional. Configuration for private service connect.
+   *
+   * [network][google.cloud.aiplatform.v1.Endpoint.network] and
+   * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
+   * are mutually exclusive.
+   * 
+ * + * + * .google.cloud.vertexai.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the privateServiceConnectConfig field is set. + */ + @java.lang.Override + public boolean hasPrivateServiceConnectConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+   * Optional. Configuration for private service connect.
+   *
+   * [network][google.cloud.aiplatform.v1.Endpoint.network] and
+   * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
+   * are mutually exclusive.
+   * 
+ * + * + * .google.cloud.vertexai.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The privateServiceConnectConfig. + */ + @java.lang.Override + public com.google.cloud.vertexai.api.PrivateServiceConnectConfig + getPrivateServiceConnectConfig() { + return privateServiceConnectConfig_ == null + ? com.google.cloud.vertexai.api.PrivateServiceConnectConfig.getDefaultInstance() + : privateServiceConnectConfig_; + } + /** + * + * + *
+   * Optional. Configuration for private service connect.
+   *
+   * [network][google.cloud.aiplatform.v1.Endpoint.network] and
+   * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
+   * are mutually exclusive.
+   * 
+ * + * + * .google.cloud.vertexai.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.vertexai.api.PrivateServiceConnectConfigOrBuilder + getPrivateServiceConnectConfigOrBuilder() { + return privateServiceConnectConfig_ == null + ? com.google.cloud.vertexai.api.PrivateServiceConnectConfig.getDefaultInstance() + : privateServiceConnectConfig_; + } + public static final int MODEL_DEPLOYMENT_MONITORING_JOB_FIELD_NUMBER = 14; @SuppressWarnings("serial") @@ -1003,7 +1073,7 @@ public com.google.protobuf.ByteString getModelDeploymentMonitoringJobBytes() { */ @java.lang.Override public boolean hasPredictRequestResponseLoggingConfig() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1095,9 +1165,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (enablePrivateServiceConnect_ != false) { output.writeBool(17, enablePrivateServiceConnect_); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(18, getPredictRequestResponseLoggingConfig()); } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(21, getPrivateServiceConnectConfig()); + } getUnknownFields().writeTo(output); } @@ -1163,11 +1236,16 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeBoolSize(17, enablePrivateServiceConnect_); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 18, getPredictRequestResponseLoggingConfig()); } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 21, getPrivateServiceConnectConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1204,6 +1282,11 @@ public boolean equals(final java.lang.Object obj) { } if (!getNetwork().equals(other.getNetwork())) return false; if (getEnablePrivateServiceConnect() != other.getEnablePrivateServiceConnect()) return false; + if (hasPrivateServiceConnectConfig() != other.hasPrivateServiceConnectConfig()) return false; + if (hasPrivateServiceConnectConfig()) { + if (!getPrivateServiceConnectConfig().equals(other.getPrivateServiceConnectConfig())) + return false; + } if (!getModelDeploymentMonitoringJob().equals(other.getModelDeploymentMonitoringJob())) return false; if (hasPredictRequestResponseLoggingConfig() != other.hasPredictRequestResponseLoggingConfig()) @@ -1259,6 +1342,10 @@ public int hashCode() { hash = (53 * hash) + getNetwork().hashCode(); hash = (37 * hash) + ENABLE_PRIVATE_SERVICE_CONNECT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnablePrivateServiceConnect()); + if (hasPrivateServiceConnectConfig()) { + hash = (37 * hash) + PRIVATE_SERVICE_CONNECT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getPrivateServiceConnectConfig().hashCode(); + } hash = (37 * hash) + MODEL_DEPLOYMENT_MONITORING_JOB_FIELD_NUMBER; hash = (53 * hash) + getModelDeploymentMonitoringJob().hashCode(); if (hasPredictRequestResponseLoggingConfig()) { @@ -1436,6 +1523,7 @@ private void maybeForceBuilderInitialization() { getCreateTimeFieldBuilder(); getUpdateTimeFieldBuilder(); getEncryptionSpecFieldBuilder(); + getPrivateServiceConnectConfigFieldBuilder(); getPredictRequestResponseLoggingConfigFieldBuilder(); } } @@ -1474,6 +1562,11 @@ public Builder clear() { } network_ = ""; enablePrivateServiceConnect_ = false; + privateServiceConnectConfig_ = null; + if (privateServiceConnectConfigBuilder_ != null) { + privateServiceConnectConfigBuilder_.dispose(); + privateServiceConnectConfigBuilder_ = null; + } modelDeploymentMonitoringJob_ = ""; predictRequestResponseLoggingConfig_ = null; if (predictRequestResponseLoggingConfigBuilder_ != null) { @@ -1570,14 +1663,21 @@ private void buildPartial0(com.google.cloud.vertexai.api.Endpoint result) { result.enablePrivateServiceConnect_ = enablePrivateServiceConnect_; } if (((from_bitField0_ & 0x00001000) != 0)) { - result.modelDeploymentMonitoringJob_ = modelDeploymentMonitoringJob_; + result.privateServiceConnectConfig_ = + privateServiceConnectConfigBuilder_ == null + ? privateServiceConnectConfig_ + : privateServiceConnectConfigBuilder_.build(); + to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00002000) != 0)) { + result.modelDeploymentMonitoringJob_ = modelDeploymentMonitoringJob_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { result.predictRequestResponseLoggingConfig_ = predictRequestResponseLoggingConfigBuilder_ == null ? predictRequestResponseLoggingConfig_ : predictRequestResponseLoggingConfigBuilder_.build(); - to_bitField0_ |= 0x00000008; + to_bitField0_ |= 0x00000010; } result.bitField0_ |= to_bitField0_; } @@ -1695,9 +1795,12 @@ public Builder mergeFrom(com.google.cloud.vertexai.api.Endpoint other) { if (other.getEnablePrivateServiceConnect() != false) { setEnablePrivateServiceConnect(other.getEnablePrivateServiceConnect()); } + if (other.hasPrivateServiceConnectConfig()) { + mergePrivateServiceConnectConfig(other.getPrivateServiceConnectConfig()); + } if (!other.getModelDeploymentMonitoringJob().isEmpty()) { modelDeploymentMonitoringJob_ = other.modelDeploymentMonitoringJob_; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); } if (other.hasPredictRequestResponseLoggingConfig()) { @@ -1817,7 +1920,7 @@ public Builder mergeFrom( case 114: { modelDeploymentMonitoringJob_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 114 case 136: @@ -1831,9 +1934,16 @@ public Builder mergeFrom( input.readMessage( getPredictRequestResponseLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case 146 + case 170: + { + input.readMessage( + getPrivateServiceConnectConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 170 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4006,7 +4116,7 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { * bool enable_private_service_connect = 17 [deprecated = true]; * * @deprecated google.cloud.vertexai.v1.Endpoint.enable_private_service_connect is deprecated. - * See google/cloud/vertexai/v1/endpoint.proto;l=126 + * See google/cloud/vertexai/v1/endpoint.proto;l=127 * @return The enablePrivateServiceConnect. */ @java.lang.Override @@ -4029,7 +4139,7 @@ public boolean getEnablePrivateServiceConnect() { * bool enable_private_service_connect = 17 [deprecated = true]; * * @deprecated google.cloud.vertexai.v1.Endpoint.enable_private_service_connect is deprecated. - * See google/cloud/vertexai/v1/endpoint.proto;l=126 + * See google/cloud/vertexai/v1/endpoint.proto;l=127 * @param value The enablePrivateServiceConnect to set. * @return This builder for chaining. */ @@ -4056,7 +4166,7 @@ public Builder setEnablePrivateServiceConnect(boolean value) { * bool enable_private_service_connect = 17 [deprecated = true]; * * @deprecated google.cloud.vertexai.v1.Endpoint.enable_private_service_connect is deprecated. - * See google/cloud/vertexai/v1/endpoint.proto;l=126 + * See google/cloud/vertexai/v1/endpoint.proto;l=127 * @return This builder for chaining. */ @java.lang.Deprecated @@ -4067,6 +4177,252 @@ public Builder clearEnablePrivateServiceConnect() { return this; } + private com.google.cloud.vertexai.api.PrivateServiceConnectConfig privateServiceConnectConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vertexai.api.PrivateServiceConnectConfig, + com.google.cloud.vertexai.api.PrivateServiceConnectConfig.Builder, + com.google.cloud.vertexai.api.PrivateServiceConnectConfigOrBuilder> + privateServiceConnectConfigBuilder_; + /** + * + * + *
+     * Optional. Configuration for private service connect.
+     *
+     * [network][google.cloud.aiplatform.v1.Endpoint.network] and
+     * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
+     * are mutually exclusive.
+     * 
+ * + * + * .google.cloud.vertexai.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the privateServiceConnectConfig field is set. + */ + public boolean hasPrivateServiceConnectConfig() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + * + * + *
+     * Optional. Configuration for private service connect.
+     *
+     * [network][google.cloud.aiplatform.v1.Endpoint.network] and
+     * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
+     * are mutually exclusive.
+     * 
+ * + * + * .google.cloud.vertexai.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The privateServiceConnectConfig. + */ + public com.google.cloud.vertexai.api.PrivateServiceConnectConfig + getPrivateServiceConnectConfig() { + if (privateServiceConnectConfigBuilder_ == null) { + return privateServiceConnectConfig_ == null + ? com.google.cloud.vertexai.api.PrivateServiceConnectConfig.getDefaultInstance() + : privateServiceConnectConfig_; + } else { + return privateServiceConnectConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Configuration for private service connect.
+     *
+     * [network][google.cloud.aiplatform.v1.Endpoint.network] and
+     * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
+     * are mutually exclusive.
+     * 
+ * + * + * .google.cloud.vertexai.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPrivateServiceConnectConfig( + com.google.cloud.vertexai.api.PrivateServiceConnectConfig value) { + if (privateServiceConnectConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + privateServiceConnectConfig_ = value; + } else { + privateServiceConnectConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Configuration for private service connect.
+     *
+     * [network][google.cloud.aiplatform.v1.Endpoint.network] and
+     * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
+     * are mutually exclusive.
+     * 
+ * + * + * .google.cloud.vertexai.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPrivateServiceConnectConfig( + com.google.cloud.vertexai.api.PrivateServiceConnectConfig.Builder builderForValue) { + if (privateServiceConnectConfigBuilder_ == null) { + privateServiceConnectConfig_ = builderForValue.build(); + } else { + privateServiceConnectConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Configuration for private service connect.
+     *
+     * [network][google.cloud.aiplatform.v1.Endpoint.network] and
+     * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
+     * are mutually exclusive.
+     * 
+ * + * + * .google.cloud.vertexai.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergePrivateServiceConnectConfig( + com.google.cloud.vertexai.api.PrivateServiceConnectConfig value) { + if (privateServiceConnectConfigBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0) + && privateServiceConnectConfig_ != null + && privateServiceConnectConfig_ + != com.google.cloud.vertexai.api.PrivateServiceConnectConfig.getDefaultInstance()) { + getPrivateServiceConnectConfigBuilder().mergeFrom(value); + } else { + privateServiceConnectConfig_ = value; + } + } else { + privateServiceConnectConfigBuilder_.mergeFrom(value); + } + if (privateServiceConnectConfig_ != null) { + bitField0_ |= 0x00001000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Configuration for private service connect.
+     *
+     * [network][google.cloud.aiplatform.v1.Endpoint.network] and
+     * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
+     * are mutually exclusive.
+     * 
+ * + * + * .google.cloud.vertexai.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPrivateServiceConnectConfig() { + bitField0_ = (bitField0_ & ~0x00001000); + privateServiceConnectConfig_ = null; + if (privateServiceConnectConfigBuilder_ != null) { + privateServiceConnectConfigBuilder_.dispose(); + privateServiceConnectConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Configuration for private service connect.
+     *
+     * [network][google.cloud.aiplatform.v1.Endpoint.network] and
+     * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
+     * are mutually exclusive.
+     * 
+ * + * + * .google.cloud.vertexai.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vertexai.api.PrivateServiceConnectConfig.Builder + getPrivateServiceConnectConfigBuilder() { + bitField0_ |= 0x00001000; + onChanged(); + return getPrivateServiceConnectConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Configuration for private service connect.
+     *
+     * [network][google.cloud.aiplatform.v1.Endpoint.network] and
+     * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
+     * are mutually exclusive.
+     * 
+ * + * + * .google.cloud.vertexai.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vertexai.api.PrivateServiceConnectConfigOrBuilder + getPrivateServiceConnectConfigOrBuilder() { + if (privateServiceConnectConfigBuilder_ != null) { + return privateServiceConnectConfigBuilder_.getMessageOrBuilder(); + } else { + return privateServiceConnectConfig_ == null + ? com.google.cloud.vertexai.api.PrivateServiceConnectConfig.getDefaultInstance() + : privateServiceConnectConfig_; + } + } + /** + * + * + *
+     * Optional. Configuration for private service connect.
+     *
+     * [network][google.cloud.aiplatform.v1.Endpoint.network] and
+     * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
+     * are mutually exclusive.
+     * 
+ * + * + * .google.cloud.vertexai.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vertexai.api.PrivateServiceConnectConfig, + com.google.cloud.vertexai.api.PrivateServiceConnectConfig.Builder, + com.google.cloud.vertexai.api.PrivateServiceConnectConfigOrBuilder> + getPrivateServiceConnectConfigFieldBuilder() { + if (privateServiceConnectConfigBuilder_ == null) { + privateServiceConnectConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vertexai.api.PrivateServiceConnectConfig, + com.google.cloud.vertexai.api.PrivateServiceConnectConfig.Builder, + com.google.cloud.vertexai.api.PrivateServiceConnectConfigOrBuilder>( + getPrivateServiceConnectConfig(), getParentForChildren(), isClean()); + privateServiceConnectConfig_ = null; + } + return privateServiceConnectConfigBuilder_; + } + private java.lang.Object modelDeploymentMonitoringJob_ = ""; /** * @@ -4147,7 +4503,7 @@ public Builder setModelDeploymentMonitoringJob(java.lang.String value) { throw new NullPointerException(); } modelDeploymentMonitoringJob_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -4170,7 +4526,7 @@ public Builder setModelDeploymentMonitoringJob(java.lang.String value) { */ public Builder clearModelDeploymentMonitoringJob() { modelDeploymentMonitoringJob_ = getDefaultInstance().getModelDeploymentMonitoringJob(); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } @@ -4198,7 +4554,7 @@ public Builder setModelDeploymentMonitoringJobBytes(com.google.protobuf.ByteStri } checkByteStringIsUtf8(value); modelDeploymentMonitoringJob_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -4224,7 +4580,7 @@ public Builder setModelDeploymentMonitoringJobBytes(com.google.protobuf.ByteStri * @return Whether the predictRequestResponseLoggingConfig field is set. */ public boolean hasPredictRequestResponseLoggingConfig() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00004000) != 0); } /** * @@ -4270,7 +4626,7 @@ public Builder setPredictRequestResponseLoggingConfig( } else { predictRequestResponseLoggingConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -4292,7 +4648,7 @@ public Builder setPredictRequestResponseLoggingConfig( } else { predictRequestResponseLoggingConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -4310,7 +4666,7 @@ public Builder setPredictRequestResponseLoggingConfig( public Builder mergePredictRequestResponseLoggingConfig( com.google.cloud.vertexai.api.PredictRequestResponseLoggingConfig value) { if (predictRequestResponseLoggingConfigBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) + if (((bitField0_ & 0x00004000) != 0) && predictRequestResponseLoggingConfig_ != null && predictRequestResponseLoggingConfig_ != com.google.cloud.vertexai.api.PredictRequestResponseLoggingConfig @@ -4323,7 +4679,7 @@ public Builder mergePredictRequestResponseLoggingConfig( predictRequestResponseLoggingConfigBuilder_.mergeFrom(value); } if (predictRequestResponseLoggingConfig_ != null) { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); } return this; @@ -4340,7 +4696,7 @@ public Builder mergePredictRequestResponseLoggingConfig( * */ public Builder clearPredictRequestResponseLoggingConfig() { - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); predictRequestResponseLoggingConfig_ = null; if (predictRequestResponseLoggingConfigBuilder_ != null) { predictRequestResponseLoggingConfigBuilder_.dispose(); @@ -4362,7 +4718,7 @@ public Builder clearPredictRequestResponseLoggingConfig() { */ public com.google.cloud.vertexai.api.PredictRequestResponseLoggingConfig.Builder getPredictRequestResponseLoggingConfigBuilder() { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return getPredictRequestResponseLoggingConfigFieldBuilder().getBuilder(); } diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/EndpointOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/EndpointOrBuilder.java index c019394a69e1..763284448406 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/EndpointOrBuilder.java +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/EndpointOrBuilder.java @@ -585,12 +585,66 @@ java.lang.String getLabelsOrDefault( * bool enable_private_service_connect = 17 [deprecated = true]; * * @deprecated google.cloud.vertexai.v1.Endpoint.enable_private_service_connect is deprecated. See - * google/cloud/vertexai/v1/endpoint.proto;l=126 + * google/cloud/vertexai/v1/endpoint.proto;l=127 * @return The enablePrivateServiceConnect. */ @java.lang.Deprecated boolean getEnablePrivateServiceConnect(); + /** + * + * + *
+   * Optional. Configuration for private service connect.
+   *
+   * [network][google.cloud.aiplatform.v1.Endpoint.network] and
+   * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
+   * are mutually exclusive.
+   * 
+ * + * + * .google.cloud.vertexai.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the privateServiceConnectConfig field is set. + */ + boolean hasPrivateServiceConnectConfig(); + /** + * + * + *
+   * Optional. Configuration for private service connect.
+   *
+   * [network][google.cloud.aiplatform.v1.Endpoint.network] and
+   * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
+   * are mutually exclusive.
+   * 
+ * + * + * .google.cloud.vertexai.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The privateServiceConnectConfig. + */ + com.google.cloud.vertexai.api.PrivateServiceConnectConfig getPrivateServiceConnectConfig(); + /** + * + * + *
+   * Optional. Configuration for private service connect.
+   *
+   * [network][google.cloud.aiplatform.v1.Endpoint.network] and
+   * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
+   * are mutually exclusive.
+   * 
+ * + * + * .google.cloud.vertexai.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.vertexai.api.PrivateServiceConnectConfigOrBuilder + getPrivateServiceConnectConfigOrBuilder(); + /** * * diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/EndpointProto.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/EndpointProto.java index 2211ed0b0920..a60107e1cef6 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/EndpointProto.java +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/EndpointProto.java @@ -68,66 +68,70 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "tion_spec.proto\032*google/cloud/vertexai/v" + "1/explanation.proto\032!google/cloud/vertex" + "ai/v1/io.proto\0320google/cloud/vertexai/v1" - + "/machine_resources.proto\032\037google/protobu" - + "f/timestamp.proto\"\270\010\n\010Endpoint\022\021\n\004name\030\001" - + " \001(\tB\003\340A\003\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022\023\n\013" - + "description\030\003 \001(\t\022E\n\017deployed_models\030\004 \003" - + "(\0132\'.google.cloud.vertexai.v1.DeployedMo" - + "delB\003\340A\003\022K\n\rtraffic_split\030\005 \003(\01324.google" - + ".cloud.vertexai.v1.Endpoint.TrafficSplit" - + "Entry\022\014\n\004etag\030\006 \001(\t\022>\n\006labels\030\007 \003(\0132..go" - + "ogle.cloud.vertexai.v1.Endpoint.LabelsEn" - + "try\0224\n\013create_time\030\010 \001(\0132\032.google.protob" - + "uf.TimestampB\003\340A\003\0224\n\013update_time\030\t \001(\0132\032" - + ".google.protobuf.TimestampB\003\340A\003\022A\n\017encry" - + "ption_spec\030\n \001(\0132(.google.cloud.vertexai" - + ".v1.EncryptionSpec\0227\n\007network\030\r \001(\tB&\340A\001" - + "\372A \n\036compute.googleapis.com/Network\022*\n\036e" - + "nable_private_service_connect\030\021 \001(\010B\002\030\001\022" - + "g\n\037model_deployment_monitoring_job\030\016 \001(\t" - + "B>\340A\003\372A8\n6aiplatform.googleapis.com/Mode" - + "lDeploymentMonitoringJob\022n\n\'predict_requ" - + "est_response_logging_config\030\022 \001(\0132=.goog" - + "le.cloud.vertexai.v1.PredictRequestRespo" - + "nseLoggingConfig\0323\n\021TrafficSplitEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\005:\0028\001\032-\n\013LabelsE" - + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\265\001\352" - + "A\261\001\n\"aiplatform.googleapis.com/Endpoint\022" - + "cloud.google.com/go" - + "/aiplatform/apiv1/aiplatformpb;aiplatfor" - + "mpb\252\002\032Google.Cloud.AIPlatform.V1\312\002\032Googl" - + "e\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::A" - + "IPlatform::V1b\006proto3" + + "/machine_resources.proto\0321google/cloud/v" + + "ertexai/v1/service_networking.proto\032\037goo" + + "gle/protobuf/timestamp.proto\"\234\t\n\010Endpoin" + + "t\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014display_name\030\002 \001" + + "(\tB\003\340A\002\022\023\n\013description\030\003 \001(\t\022E\n\017deployed" + + "_models\030\004 \003(\0132\'.google.cloud.vertexai.v1" + + ".DeployedModelB\003\340A\003\022K\n\rtraffic_split\030\005 \003" + + "(\01324.google.cloud.vertexai.v1.Endpoint.T" + + "rafficSplitEntry\022\014\n\004etag\030\006 \001(\t\022>\n\006labels" + + "\030\007 \003(\0132..google.cloud.vertexai.v1.Endpoi" + + "nt.LabelsEntry\0224\n\013create_time\030\010 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\003\340A\003\0224\n\013update_t" + + "ime\030\t \001(\0132\032.google.protobuf.TimestampB\003\340" + + "A\003\022A\n\017encryption_spec\030\n \001(\0132(.google.clo" + + "ud.vertexai.v1.EncryptionSpec\0227\n\007network" + + "\030\r \001(\tB&\340A\001\372A \n\036compute.googleapis.com/N" + + "etwork\022*\n\036enable_private_service_connect" + + "\030\021 \001(\010B\002\030\001\022b\n\036private_service_connect_co" + + "nfig\030\025 \001(\01325.google.cloud.vertexai.v1.Pr" + + "ivateServiceConnectConfigB\003\340A\001\022g\n\037model_" + + "deployment_monitoring_job\030\016 \001(\tB>\340A\003\372A8\n" + + "6aiplatform.googleapis.com/ModelDeployme" + + "ntMonitoringJob\022n\n\'predict_request_respo" + + "nse_logging_config\030\022 \001(\0132=.google.cloud." + + "vertexai.v1.PredictRequestResponseLoggin" + + "gConfig\0323\n\021TrafficSplitEntry\022\013\n\003key\030\001 \001(" + + "\t\022\r\n\005value\030\002 \001(\005:\0028\001\032-\n\013LabelsEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\265\001\352A\261\001\n\"aipl" + + "atform.googleapis.com/Endpoint\022cloud.google.com/go/aiplatfo" + + "rm/apiv1/aiplatformpb;aiplatformpb\252\002\032Goo" + + "gle.Cloud.AIPlatform.V1\312\002\032Google\\Cloud\\A" + + "IPlatform\\V1\352\002\035Google::Cloud::AIPlatform" + + "::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -139,6 +143,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.vertexai.api.ExplanationProto.getDescriptor(), com.google.cloud.vertexai.api.IoProto.getDescriptor(), com.google.cloud.vertexai.api.MachineResourcesProto.getDescriptor(), + com.google.cloud.vertexai.api.ServiceNetworkingProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_google_cloud_vertexai_v1_Endpoint_descriptor = @@ -159,6 +164,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EncryptionSpec", "Network", "EnablePrivateServiceConnect", + "PrivateServiceConnectConfig", "ModelDeploymentMonitoringJob", "PredictRequestResponseLoggingConfig", }); @@ -229,6 +235,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.vertexai.api.ExplanationProto.getDescriptor(); com.google.cloud.vertexai.api.IoProto.getDescriptor(); com.google.cloud.vertexai.api.MachineResourcesProto.getDescriptor(); + com.google.cloud.vertexai.api.ServiceNetworkingProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); } diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/FunctionCallingConfig.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/FunctionCallingConfig.java new file mode 100644 index 000000000000..6973ecc76460 --- /dev/null +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/FunctionCallingConfig.java @@ -0,0 +1,1119 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vertexai/v1/tool.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.vertexai.api; + +/** + * + * + *
+ * Function calling config.
+ * 
+ * + * Protobuf type {@code google.cloud.vertexai.v1.FunctionCallingConfig} + */ +public final class FunctionCallingConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vertexai.v1.FunctionCallingConfig) + FunctionCallingConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use FunctionCallingConfig.newBuilder() to construct. + private FunctionCallingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FunctionCallingConfig() { + mode_ = 0; + allowedFunctionNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FunctionCallingConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vertexai.api.ToolProto + .internal_static_google_cloud_vertexai_v1_FunctionCallingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vertexai.api.ToolProto + .internal_static_google_cloud_vertexai_v1_FunctionCallingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vertexai.api.FunctionCallingConfig.class, + com.google.cloud.vertexai.api.FunctionCallingConfig.Builder.class); + } + + /** + * + * + *
+   * Function calling mode.
+   * 
+ * + * Protobuf enum {@code google.cloud.vertexai.v1.FunctionCallingConfig.Mode} + */ + public enum Mode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified function calling mode. This value should not be used.
+     * 
+ * + * MODE_UNSPECIFIED = 0; + */ + MODE_UNSPECIFIED(0), + /** + * + * + *
+     * Default model behavior, model decides to predict either a function call
+     * or a natural language repspose.
+     * 
+ * + * AUTO = 1; + */ + AUTO(1), + /** + * + * + *
+     * Model is constrained to always predicting a function call only.
+     * If "allowed_function_names" are set, the predicted function call will be
+     * limited to any one of "allowed_function_names", else the predicted
+     * function call will be any one of the provided "function_declarations".
+     * 
+ * + * ANY = 2; + */ + ANY(2), + /** + * + * + *
+     * Model will not predict any function call. Model behavior is same as when
+     * not passing any function declarations.
+     * 
+ * + * NONE = 3; + */ + NONE(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified function calling mode. This value should not be used.
+     * 
+ * + * MODE_UNSPECIFIED = 0; + */ + public static final int MODE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Default model behavior, model decides to predict either a function call
+     * or a natural language repspose.
+     * 
+ * + * AUTO = 1; + */ + public static final int AUTO_VALUE = 1; + /** + * + * + *
+     * Model is constrained to always predicting a function call only.
+     * If "allowed_function_names" are set, the predicted function call will be
+     * limited to any one of "allowed_function_names", else the predicted
+     * function call will be any one of the provided "function_declarations".
+     * 
+ * + * ANY = 2; + */ + public static final int ANY_VALUE = 2; + /** + * + * + *
+     * Model will not predict any function call. Model behavior is same as when
+     * not passing any function declarations.
+     * 
+ * + * NONE = 3; + */ + public static final int NONE_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Mode valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Mode forNumber(int value) { + switch (value) { + case 0: + return MODE_UNSPECIFIED; + case 1: + return AUTO; + case 2: + return ANY; + case 3: + return NONE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Mode findValueByNumber(int number) { + return Mode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.vertexai.api.FunctionCallingConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Mode[] VALUES = values(); + + public static Mode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Mode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.vertexai.v1.FunctionCallingConfig.Mode) + } + + public static final int MODE_FIELD_NUMBER = 1; + private int mode_ = 0; + /** + * + * + *
+   * Optional. Function calling mode.
+   * 
+ * + * + * .google.cloud.vertexai.v1.FunctionCallingConfig.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override + public int getModeValue() { + return mode_; + } + /** + * + * + *
+   * Optional. Function calling mode.
+   * 
+ * + * + * .google.cloud.vertexai.v1.FunctionCallingConfig.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mode. + */ + @java.lang.Override + public com.google.cloud.vertexai.api.FunctionCallingConfig.Mode getMode() { + com.google.cloud.vertexai.api.FunctionCallingConfig.Mode result = + com.google.cloud.vertexai.api.FunctionCallingConfig.Mode.forNumber(mode_); + return result == null + ? com.google.cloud.vertexai.api.FunctionCallingConfig.Mode.UNRECOGNIZED + : result; + } + + public static final int ALLOWED_FUNCTION_NAMES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList allowedFunctionNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * Optional. Function names to call. Only set when the Mode is ANY. Function
+   * names should match [FunctionDeclaration.name]. With mode set to ANY, model
+   * will predict a function call from the set of function names provided.
+   * 
+ * + * repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the allowedFunctionNames. + */ + public com.google.protobuf.ProtocolStringList getAllowedFunctionNamesList() { + return allowedFunctionNames_; + } + /** + * + * + *
+   * Optional. Function names to call. Only set when the Mode is ANY. Function
+   * names should match [FunctionDeclaration.name]. With mode set to ANY, model
+   * will predict a function call from the set of function names provided.
+   * 
+ * + * repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of allowedFunctionNames. + */ + public int getAllowedFunctionNamesCount() { + return allowedFunctionNames_.size(); + } + /** + * + * + *
+   * Optional. Function names to call. Only set when the Mode is ANY. Function
+   * names should match [FunctionDeclaration.name]. With mode set to ANY, model
+   * will predict a function call from the set of function names provided.
+   * 
+ * + * repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The allowedFunctionNames at the given index. + */ + public java.lang.String getAllowedFunctionNames(int index) { + return allowedFunctionNames_.get(index); + } + /** + * + * + *
+   * Optional. Function names to call. Only set when the Mode is ANY. Function
+   * names should match [FunctionDeclaration.name]. With mode set to ANY, model
+   * will predict a function call from the set of function names provided.
+   * 
+ * + * repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the allowedFunctionNames at the given index. + */ + public com.google.protobuf.ByteString getAllowedFunctionNamesBytes(int index) { + return allowedFunctionNames_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (mode_ + != com.google.cloud.vertexai.api.FunctionCallingConfig.Mode.MODE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, mode_); + } + for (int i = 0; i < allowedFunctionNames_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 2, allowedFunctionNames_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (mode_ + != com.google.cloud.vertexai.api.FunctionCallingConfig.Mode.MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, mode_); + } + { + int dataSize = 0; + for (int i = 0; i < allowedFunctionNames_.size(); i++) { + dataSize += computeStringSizeNoTag(allowedFunctionNames_.getRaw(i)); + } + size += dataSize; + size += 1 * getAllowedFunctionNamesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vertexai.api.FunctionCallingConfig)) { + return super.equals(obj); + } + com.google.cloud.vertexai.api.FunctionCallingConfig other = + (com.google.cloud.vertexai.api.FunctionCallingConfig) obj; + + if (mode_ != other.mode_) return false; + if (!getAllowedFunctionNamesList().equals(other.getAllowedFunctionNamesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MODE_FIELD_NUMBER; + hash = (53 * hash) + mode_; + if (getAllowedFunctionNamesCount() > 0) { + hash = (37 * hash) + ALLOWED_FUNCTION_NAMES_FIELD_NUMBER; + hash = (53 * hash) + getAllowedFunctionNamesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vertexai.api.FunctionCallingConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vertexai.api.FunctionCallingConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vertexai.api.FunctionCallingConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vertexai.api.FunctionCallingConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vertexai.api.FunctionCallingConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vertexai.api.FunctionCallingConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vertexai.api.FunctionCallingConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vertexai.api.FunctionCallingConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vertexai.api.FunctionCallingConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vertexai.api.FunctionCallingConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vertexai.api.FunctionCallingConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vertexai.api.FunctionCallingConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.vertexai.api.FunctionCallingConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Function calling config.
+   * 
+ * + * Protobuf type {@code google.cloud.vertexai.v1.FunctionCallingConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vertexai.v1.FunctionCallingConfig) + com.google.cloud.vertexai.api.FunctionCallingConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vertexai.api.ToolProto + .internal_static_google_cloud_vertexai_v1_FunctionCallingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vertexai.api.ToolProto + .internal_static_google_cloud_vertexai_v1_FunctionCallingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vertexai.api.FunctionCallingConfig.class, + com.google.cloud.vertexai.api.FunctionCallingConfig.Builder.class); + } + + // Construct using com.google.cloud.vertexai.api.FunctionCallingConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + mode_ = 0; + allowedFunctionNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vertexai.api.ToolProto + .internal_static_google_cloud_vertexai_v1_FunctionCallingConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.vertexai.api.FunctionCallingConfig getDefaultInstanceForType() { + return com.google.cloud.vertexai.api.FunctionCallingConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vertexai.api.FunctionCallingConfig build() { + com.google.cloud.vertexai.api.FunctionCallingConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vertexai.api.FunctionCallingConfig buildPartial() { + com.google.cloud.vertexai.api.FunctionCallingConfig result = + new com.google.cloud.vertexai.api.FunctionCallingConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vertexai.api.FunctionCallingConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.mode_ = mode_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + allowedFunctionNames_.makeImmutable(); + result.allowedFunctionNames_ = allowedFunctionNames_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vertexai.api.FunctionCallingConfig) { + return mergeFrom((com.google.cloud.vertexai.api.FunctionCallingConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vertexai.api.FunctionCallingConfig other) { + if (other == com.google.cloud.vertexai.api.FunctionCallingConfig.getDefaultInstance()) + return this; + if (other.mode_ != 0) { + setModeValue(other.getModeValue()); + } + if (!other.allowedFunctionNames_.isEmpty()) { + if (allowedFunctionNames_.isEmpty()) { + allowedFunctionNames_ = other.allowedFunctionNames_; + bitField0_ |= 0x00000002; + } else { + ensureAllowedFunctionNamesIsMutable(); + allowedFunctionNames_.addAll(other.allowedFunctionNames_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + mode_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAllowedFunctionNamesIsMutable(); + allowedFunctionNames_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int mode_ = 0; + /** + * + * + *
+     * Optional. Function calling mode.
+     * 
+ * + * + * .google.cloud.vertexai.v1.FunctionCallingConfig.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override + public int getModeValue() { + return mode_; + } + /** + * + * + *
+     * Optional. Function calling mode.
+     * 
+ * + * + * .google.cloud.vertexai.v1.FunctionCallingConfig.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for mode to set. + * @return This builder for chaining. + */ + public Builder setModeValue(int value) { + mode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Function calling mode.
+     * 
+ * + * + * .google.cloud.vertexai.v1.FunctionCallingConfig.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mode. + */ + @java.lang.Override + public com.google.cloud.vertexai.api.FunctionCallingConfig.Mode getMode() { + com.google.cloud.vertexai.api.FunctionCallingConfig.Mode result = + com.google.cloud.vertexai.api.FunctionCallingConfig.Mode.forNumber(mode_); + return result == null + ? com.google.cloud.vertexai.api.FunctionCallingConfig.Mode.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional. Function calling mode.
+     * 
+ * + * + * .google.cloud.vertexai.v1.FunctionCallingConfig.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The mode to set. + * @return This builder for chaining. + */ + public Builder setMode(com.google.cloud.vertexai.api.FunctionCallingConfig.Mode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + mode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Function calling mode.
+     * 
+ * + * + * .google.cloud.vertexai.v1.FunctionCallingConfig.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearMode() { + bitField0_ = (bitField0_ & ~0x00000001); + mode_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList allowedFunctionNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAllowedFunctionNamesIsMutable() { + if (!allowedFunctionNames_.isModifiable()) { + allowedFunctionNames_ = new com.google.protobuf.LazyStringArrayList(allowedFunctionNames_); + } + bitField0_ |= 0x00000002; + } + /** + * + * + *
+     * Optional. Function names to call. Only set when the Mode is ANY. Function
+     * names should match [FunctionDeclaration.name]. With mode set to ANY, model
+     * will predict a function call from the set of function names provided.
+     * 
+ * + * repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the allowedFunctionNames. + */ + public com.google.protobuf.ProtocolStringList getAllowedFunctionNamesList() { + allowedFunctionNames_.makeImmutable(); + return allowedFunctionNames_; + } + /** + * + * + *
+     * Optional. Function names to call. Only set when the Mode is ANY. Function
+     * names should match [FunctionDeclaration.name]. With mode set to ANY, model
+     * will predict a function call from the set of function names provided.
+     * 
+ * + * repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of allowedFunctionNames. + */ + public int getAllowedFunctionNamesCount() { + return allowedFunctionNames_.size(); + } + /** + * + * + *
+     * Optional. Function names to call. Only set when the Mode is ANY. Function
+     * names should match [FunctionDeclaration.name]. With mode set to ANY, model
+     * will predict a function call from the set of function names provided.
+     * 
+ * + * repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The allowedFunctionNames at the given index. + */ + public java.lang.String getAllowedFunctionNames(int index) { + return allowedFunctionNames_.get(index); + } + /** + * + * + *
+     * Optional. Function names to call. Only set when the Mode is ANY. Function
+     * names should match [FunctionDeclaration.name]. With mode set to ANY, model
+     * will predict a function call from the set of function names provided.
+     * 
+ * + * repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the allowedFunctionNames at the given index. + */ + public com.google.protobuf.ByteString getAllowedFunctionNamesBytes(int index) { + return allowedFunctionNames_.getByteString(index); + } + /** + * + * + *
+     * Optional. Function names to call. Only set when the Mode is ANY. Function
+     * names should match [FunctionDeclaration.name]. With mode set to ANY, model
+     * will predict a function call from the set of function names provided.
+     * 
+ * + * repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The allowedFunctionNames to set. + * @return This builder for chaining. + */ + public Builder setAllowedFunctionNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedFunctionNamesIsMutable(); + allowedFunctionNames_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Function names to call. Only set when the Mode is ANY. Function
+     * names should match [FunctionDeclaration.name]. With mode set to ANY, model
+     * will predict a function call from the set of function names provided.
+     * 
+ * + * repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The allowedFunctionNames to add. + * @return This builder for chaining. + */ + public Builder addAllowedFunctionNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedFunctionNamesIsMutable(); + allowedFunctionNames_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Function names to call. Only set when the Mode is ANY. Function
+     * names should match [FunctionDeclaration.name]. With mode set to ANY, model
+     * will predict a function call from the set of function names provided.
+     * 
+ * + * repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The allowedFunctionNames to add. + * @return This builder for chaining. + */ + public Builder addAllAllowedFunctionNames(java.lang.Iterable values) { + ensureAllowedFunctionNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedFunctionNames_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Function names to call. Only set when the Mode is ANY. Function
+     * names should match [FunctionDeclaration.name]. With mode set to ANY, model
+     * will predict a function call from the set of function names provided.
+     * 
+ * + * repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAllowedFunctionNames() { + allowedFunctionNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Function names to call. Only set when the Mode is ANY. Function
+     * names should match [FunctionDeclaration.name]. With mode set to ANY, model
+     * will predict a function call from the set of function names provided.
+     * 
+ * + * repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the allowedFunctionNames to add. + * @return This builder for chaining. + */ + public Builder addAllowedFunctionNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAllowedFunctionNamesIsMutable(); + allowedFunctionNames_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vertexai.v1.FunctionCallingConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vertexai.v1.FunctionCallingConfig) + private static final com.google.cloud.vertexai.api.FunctionCallingConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vertexai.api.FunctionCallingConfig(); + } + + public static com.google.cloud.vertexai.api.FunctionCallingConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FunctionCallingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.vertexai.api.FunctionCallingConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/FunctionCallingConfigOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/FunctionCallingConfigOrBuilder.java new file mode 100644 index 000000000000..0f74873d30a8 --- /dev/null +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/FunctionCallingConfigOrBuilder.java @@ -0,0 +1,118 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vertexai/v1/tool.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.vertexai.api; + +public interface FunctionCallingConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vertexai.v1.FunctionCallingConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Function calling mode.
+   * 
+ * + * + * .google.cloud.vertexai.v1.FunctionCallingConfig.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for mode. + */ + int getModeValue(); + /** + * + * + *
+   * Optional. Function calling mode.
+   * 
+ * + * + * .google.cloud.vertexai.v1.FunctionCallingConfig.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mode. + */ + com.google.cloud.vertexai.api.FunctionCallingConfig.Mode getMode(); + + /** + * + * + *
+   * Optional. Function names to call. Only set when the Mode is ANY. Function
+   * names should match [FunctionDeclaration.name]. With mode set to ANY, model
+   * will predict a function call from the set of function names provided.
+   * 
+ * + * repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the allowedFunctionNames. + */ + java.util.List getAllowedFunctionNamesList(); + /** + * + * + *
+   * Optional. Function names to call. Only set when the Mode is ANY. Function
+   * names should match [FunctionDeclaration.name]. With mode set to ANY, model
+   * will predict a function call from the set of function names provided.
+   * 
+ * + * repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of allowedFunctionNames. + */ + int getAllowedFunctionNamesCount(); + /** + * + * + *
+   * Optional. Function names to call. Only set when the Mode is ANY. Function
+   * names should match [FunctionDeclaration.name]. With mode set to ANY, model
+   * will predict a function call from the set of function names provided.
+   * 
+ * + * repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The allowedFunctionNames at the given index. + */ + java.lang.String getAllowedFunctionNames(int index); + /** + * + * + *
+   * Optional. Function names to call. Only set when the Mode is ANY. Function
+   * names should match [FunctionDeclaration.name]. With mode set to ANY, model
+   * will predict a function call from the set of function names provided.
+   * 
+ * + * repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the allowedFunctionNames at the given index. + */ + com.google.protobuf.ByteString getAllowedFunctionNamesBytes(int index); +} diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerateContentRequest.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerateContentRequest.java index 33cf6b1bf994..514185eca21e 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerateContentRequest.java +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerateContentRequest.java @@ -391,6 +391,65 @@ public com.google.cloud.vertexai.api.ToolOrBuilder getToolsOrBuilder(int index) return tools_.get(index); } + public static final int TOOL_CONFIG_FIELD_NUMBER = 7; + private com.google.cloud.vertexai.api.ToolConfig toolConfig_; + /** + * + * + *
+   * Optional. Tool config. This config is shared for all tools provided in the
+   * request.
+   * 
+ * + * + * .google.cloud.vertexai.v1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolConfig field is set. + */ + @java.lang.Override + public boolean hasToolConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Optional. Tool config. This config is shared for all tools provided in the
+   * request.
+   * 
+ * + * + * .google.cloud.vertexai.v1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolConfig. + */ + @java.lang.Override + public com.google.cloud.vertexai.api.ToolConfig getToolConfig() { + return toolConfig_ == null + ? com.google.cloud.vertexai.api.ToolConfig.getDefaultInstance() + : toolConfig_; + } + /** + * + * + *
+   * Optional. Tool config. This config is shared for all tools provided in the
+   * request.
+   * 
+ * + * + * .google.cloud.vertexai.v1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.vertexai.api.ToolConfigOrBuilder getToolConfigOrBuilder() { + return toolConfig_ == null + ? com.google.cloud.vertexai.api.ToolConfig.getDefaultInstance() + : toolConfig_; + } + public static final int SAFETY_SETTINGS_FIELD_NUMBER = 3; @SuppressWarnings("serial") @@ -495,7 +554,7 @@ public com.google.cloud.vertexai.api.SafetySettingOrBuilder getSafetySettingsOrB */ @java.lang.Override public boolean hasGenerationConfig() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -554,7 +613,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < safetySettings_.size(); i++) { output.writeMessage(3, safetySettings_.get(i)); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(4, getGenerationConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { @@ -563,6 +622,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < tools_.size(); i++) { output.writeMessage(6, tools_.get(i)); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getToolConfig()); + } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(8, getSystemInstruction()); } @@ -581,7 +643,7 @@ public int getSerializedSize() { for (int i = 0; i < safetySettings_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, safetySettings_.get(i)); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getGenerationConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { @@ -590,6 +652,9 @@ public int getSerializedSize() { for (int i = 0; i < tools_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, tools_.get(i)); } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getToolConfig()); + } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSystemInstruction()); } @@ -616,6 +681,10 @@ public boolean equals(final java.lang.Object obj) { if (!getSystemInstruction().equals(other.getSystemInstruction())) return false; } if (!getToolsList().equals(other.getToolsList())) return false; + if (hasToolConfig() != other.hasToolConfig()) return false; + if (hasToolConfig()) { + if (!getToolConfig().equals(other.getToolConfig())) return false; + } if (!getSafetySettingsList().equals(other.getSafetySettingsList())) return false; if (hasGenerationConfig() != other.hasGenerationConfig()) return false; if (hasGenerationConfig()) { @@ -646,6 +715,10 @@ public int hashCode() { hash = (37 * hash) + TOOLS_FIELD_NUMBER; hash = (53 * hash) + getToolsList().hashCode(); } + if (hasToolConfig()) { + hash = (37 * hash) + TOOL_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getToolConfig().hashCode(); + } if (getSafetySettingsCount() > 0) { hash = (37 * hash) + SAFETY_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getSafetySettingsList().hashCode(); @@ -797,6 +870,7 @@ private void maybeForceBuilderInitialization() { getContentsFieldBuilder(); getSystemInstructionFieldBuilder(); getToolsFieldBuilder(); + getToolConfigFieldBuilder(); getSafetySettingsFieldBuilder(); getGenerationConfigFieldBuilder(); } @@ -826,13 +900,18 @@ public Builder clear() { toolsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); + toolConfig_ = null; + if (toolConfigBuilder_ != null) { + toolConfigBuilder_.dispose(); + toolConfigBuilder_ = null; + } if (safetySettingsBuilder_ == null) { safetySettings_ = java.util.Collections.emptyList(); } else { safetySettings_ = null; safetySettingsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); generationConfig_ = null; if (generationConfigBuilder_ != null) { generationConfigBuilder_.dispose(); @@ -894,9 +973,9 @@ private void buildPartialRepeatedFields( result.tools_ = toolsBuilder_.build(); } if (safetySettingsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { safetySettings_ = java.util.Collections.unmodifiableList(safetySettings_); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); } result.safetySettings_ = safetySettings_; } else { @@ -917,10 +996,14 @@ private void buildPartial0(com.google.cloud.vertexai.api.GenerateContentRequest : systemInstructionBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.toolConfig_ = toolConfigBuilder_ == null ? toolConfig_ : toolConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { result.generationConfig_ = generationConfigBuilder_ == null ? generationConfig_ : generationConfigBuilder_.build(); - to_bitField0_ |= 0x00000002; + to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @@ -1033,11 +1116,14 @@ public Builder mergeFrom(com.google.cloud.vertexai.api.GenerateContentRequest ot } } } + if (other.hasToolConfig()) { + mergeToolConfig(other.getToolConfig()); + } if (safetySettingsBuilder_ == null) { if (!other.safetySettings_.isEmpty()) { if (safetySettings_.isEmpty()) { safetySettings_ = other.safetySettings_; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); } else { ensureSafetySettingsIsMutable(); safetySettings_.addAll(other.safetySettings_); @@ -1050,7 +1136,7 @@ public Builder mergeFrom(com.google.cloud.vertexai.api.GenerateContentRequest ot safetySettingsBuilder_.dispose(); safetySettingsBuilder_ = null; safetySettings_ = other.safetySettings_; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); safetySettingsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSafetySettingsFieldBuilder() @@ -1119,7 +1205,7 @@ public Builder mergeFrom( { input.readMessage( getGenerationConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 34 case 42: @@ -1141,6 +1227,12 @@ public Builder mergeFrom( } break; } // case 50 + case 58: + { + input.readMessage(getToolConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 58 case 66: { input.readMessage( @@ -2433,14 +2525,226 @@ public java.util.List getToolsBuilde return toolsBuilder_; } + private com.google.cloud.vertexai.api.ToolConfig toolConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vertexai.api.ToolConfig, + com.google.cloud.vertexai.api.ToolConfig.Builder, + com.google.cloud.vertexai.api.ToolConfigOrBuilder> + toolConfigBuilder_; + /** + * + * + *
+     * Optional. Tool config. This config is shared for all tools provided in the
+     * request.
+     * 
+ * + * + * .google.cloud.vertexai.v1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolConfig field is set. + */ + public boolean hasToolConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+     * Optional. Tool config. This config is shared for all tools provided in the
+     * request.
+     * 
+ * + * + * .google.cloud.vertexai.v1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolConfig. + */ + public com.google.cloud.vertexai.api.ToolConfig getToolConfig() { + if (toolConfigBuilder_ == null) { + return toolConfig_ == null + ? com.google.cloud.vertexai.api.ToolConfig.getDefaultInstance() + : toolConfig_; + } else { + return toolConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Tool config. This config is shared for all tools provided in the
+     * request.
+     * 
+ * + * + * .google.cloud.vertexai.v1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolConfig(com.google.cloud.vertexai.api.ToolConfig value) { + if (toolConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toolConfig_ = value; + } else { + toolConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Tool config. This config is shared for all tools provided in the
+     * request.
+     * 
+ * + * + * .google.cloud.vertexai.v1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolConfig(com.google.cloud.vertexai.api.ToolConfig.Builder builderForValue) { + if (toolConfigBuilder_ == null) { + toolConfig_ = builderForValue.build(); + } else { + toolConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Tool config. This config is shared for all tools provided in the
+     * request.
+     * 
+ * + * + * .google.cloud.vertexai.v1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeToolConfig(com.google.cloud.vertexai.api.ToolConfig value) { + if (toolConfigBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && toolConfig_ != null + && toolConfig_ != com.google.cloud.vertexai.api.ToolConfig.getDefaultInstance()) { + getToolConfigBuilder().mergeFrom(value); + } else { + toolConfig_ = value; + } + } else { + toolConfigBuilder_.mergeFrom(value); + } + if (toolConfig_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Tool config. This config is shared for all tools provided in the
+     * request.
+     * 
+ * + * + * .google.cloud.vertexai.v1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearToolConfig() { + bitField0_ = (bitField0_ & ~0x00000010); + toolConfig_ = null; + if (toolConfigBuilder_ != null) { + toolConfigBuilder_.dispose(); + toolConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Tool config. This config is shared for all tools provided in the
+     * request.
+     * 
+ * + * + * .google.cloud.vertexai.v1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vertexai.api.ToolConfig.Builder getToolConfigBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getToolConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Tool config. This config is shared for all tools provided in the
+     * request.
+     * 
+ * + * + * .google.cloud.vertexai.v1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vertexai.api.ToolConfigOrBuilder getToolConfigOrBuilder() { + if (toolConfigBuilder_ != null) { + return toolConfigBuilder_.getMessageOrBuilder(); + } else { + return toolConfig_ == null + ? com.google.cloud.vertexai.api.ToolConfig.getDefaultInstance() + : toolConfig_; + } + } + /** + * + * + *
+     * Optional. Tool config. This config is shared for all tools provided in the
+     * request.
+     * 
+ * + * + * .google.cloud.vertexai.v1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vertexai.api.ToolConfig, + com.google.cloud.vertexai.api.ToolConfig.Builder, + com.google.cloud.vertexai.api.ToolConfigOrBuilder> + getToolConfigFieldBuilder() { + if (toolConfigBuilder_ == null) { + toolConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vertexai.api.ToolConfig, + com.google.cloud.vertexai.api.ToolConfig.Builder, + com.google.cloud.vertexai.api.ToolConfigOrBuilder>( + getToolConfig(), getParentForChildren(), isClean()); + toolConfig_ = null; + } + return toolConfigBuilder_; + } + private java.util.List safetySettings_ = java.util.Collections.emptyList(); private void ensureSafetySettingsIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { + if (!((bitField0_ & 0x00000020) != 0)) { safetySettings_ = new java.util.ArrayList(safetySettings_); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; } } @@ -2689,7 +2993,7 @@ public Builder addAllSafetySettings( public Builder clearSafetySettings() { if (safetySettingsBuilder_ == null) { safetySettings_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { safetySettingsBuilder_.clear(); @@ -2834,7 +3138,7 @@ public com.google.cloud.vertexai.api.SafetySetting.Builder addSafetySettingsBuil com.google.cloud.vertexai.api.SafetySetting.Builder, com.google.cloud.vertexai.api.SafetySettingOrBuilder>( safetySettings_, - ((bitField0_ & 0x00000010) != 0), + ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); safetySettings_ = null; @@ -2862,7 +3166,7 @@ public com.google.cloud.vertexai.api.SafetySetting.Builder addSafetySettingsBuil * @return Whether the generationConfig field is set. */ public boolean hasGenerationConfig() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -2906,7 +3210,7 @@ public Builder setGenerationConfig(com.google.cloud.vertexai.api.GenerationConfi } else { generationConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2928,7 +3232,7 @@ public Builder setGenerationConfig( } else { generationConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2945,7 +3249,7 @@ public Builder setGenerationConfig( */ public Builder mergeGenerationConfig(com.google.cloud.vertexai.api.GenerationConfig value) { if (generationConfigBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000040) != 0) && generationConfig_ != null && generationConfig_ != com.google.cloud.vertexai.api.GenerationConfig.getDefaultInstance()) { @@ -2957,7 +3261,7 @@ public Builder mergeGenerationConfig(com.google.cloud.vertexai.api.GenerationCon generationConfigBuilder_.mergeFrom(value); } if (generationConfig_ != null) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } return this; @@ -2974,7 +3278,7 @@ public Builder mergeGenerationConfig(com.google.cloud.vertexai.api.GenerationCon * */ public Builder clearGenerationConfig() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); generationConfig_ = null; if (generationConfigBuilder_ != null) { generationConfigBuilder_.dispose(); @@ -2995,7 +3299,7 @@ public Builder clearGenerationConfig() { * */ public com.google.cloud.vertexai.api.GenerationConfig.Builder getGenerationConfigBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return getGenerationConfigFieldBuilder().getBuilder(); } diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerateContentRequestOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerateContentRequestOrBuilder.java index 757a3a08e3b2..a4834cdc8088 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerateContentRequestOrBuilder.java +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerateContentRequestOrBuilder.java @@ -268,6 +268,50 @@ public interface GenerateContentRequestOrBuilder */ com.google.cloud.vertexai.api.ToolOrBuilder getToolsOrBuilder(int index); + /** + * + * + *
+   * Optional. Tool config. This config is shared for all tools provided in the
+   * request.
+   * 
+ * + * + * .google.cloud.vertexai.v1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolConfig field is set. + */ + boolean hasToolConfig(); + /** + * + * + *
+   * Optional. Tool config. This config is shared for all tools provided in the
+   * request.
+   * 
+ * + * + * .google.cloud.vertexai.v1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolConfig. + */ + com.google.cloud.vertexai.api.ToolConfig getToolConfig(); + /** + * + * + *
+   * Optional. Tool config. This config is shared for all tools provided in the
+   * request.
+   * 
+ * + * + * .google.cloud.vertexai.v1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.vertexai.api.ToolConfigOrBuilder getToolConfigOrBuilder(); + /** * * diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerationConfig.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerationConfig.java index d5a28f0046d0..5f6a4814fcab 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerationConfig.java +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerationConfig.java @@ -423,6 +423,80 @@ public com.google.protobuf.ByteString getResponseMimeTypeBytes() { } } + public static final int RESPONSE_SCHEMA_FIELD_NUMBER = 16; + private com.google.cloud.vertexai.api.Schema responseSchema_; + /** + * + * + *
+   * Optional. The `Schema` object allows the definition of input and output
+   * data types. These types can be objects, but also primitives and arrays.
+   * Represents a select subset of an [OpenAPI 3.0 schema
+   * object](https://spec.openapis.org/oas/v3.0.3#schema).
+   * If set, a compatible response_mime_type must also be set.
+   * Compatible mimetypes:
+   * `application/json`: Schema for JSON response.
+   * 
+ * + * + * optional .google.cloud.vertexai.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the responseSchema field is set. + */ + @java.lang.Override + public boolean hasResponseSchema() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
+   * Optional. The `Schema` object allows the definition of input and output
+   * data types. These types can be objects, but also primitives and arrays.
+   * Represents a select subset of an [OpenAPI 3.0 schema
+   * object](https://spec.openapis.org/oas/v3.0.3#schema).
+   * If set, a compatible response_mime_type must also be set.
+   * Compatible mimetypes:
+   * `application/json`: Schema for JSON response.
+   * 
+ * + * + * optional .google.cloud.vertexai.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The responseSchema. + */ + @java.lang.Override + public com.google.cloud.vertexai.api.Schema getResponseSchema() { + return responseSchema_ == null + ? com.google.cloud.vertexai.api.Schema.getDefaultInstance() + : responseSchema_; + } + /** + * + * + *
+   * Optional. The `Schema` object allows the definition of input and output
+   * data types. These types can be objects, but also primitives and arrays.
+   * Represents a select subset of an [OpenAPI 3.0 schema
+   * object](https://spec.openapis.org/oas/v3.0.3#schema).
+   * If set, a compatible response_mime_type must also be set.
+   * Compatible mimetypes:
+   * `application/json`: Schema for JSON response.
+   * 
+ * + * + * optional .google.cloud.vertexai.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.vertexai.api.SchemaOrBuilder getResponseSchemaOrBuilder() { + return responseSchema_ == null + ? com.google.cloud.vertexai.api.Schema.getDefaultInstance() + : responseSchema_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -464,6 +538,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(responseMimeType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, responseMimeType_); } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(16, getResponseSchema()); + } getUnknownFields().writeTo(output); } @@ -505,6 +582,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(responseMimeType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, responseMimeType_); } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getResponseSchema()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -556,6 +636,10 @@ public boolean equals(final java.lang.Object obj) { != java.lang.Float.floatToIntBits(other.getFrequencyPenalty())) return false; } if (!getResponseMimeType().equals(other.getResponseMimeType())) return false; + if (hasResponseSchema() != other.hasResponseSchema()) return false; + if (hasResponseSchema()) { + if (!getResponseSchema().equals(other.getResponseSchema())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -601,6 +685,10 @@ public int hashCode() { } hash = (37 * hash) + RESPONSE_MIME_TYPE_FIELD_NUMBER; hash = (53 * hash) + getResponseMimeType().hashCode(); + if (hasResponseSchema()) { + hash = (37 * hash) + RESPONSE_SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getResponseSchema().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -730,10 +818,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.vertexai.api.GenerationConfig.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getResponseSchemaFieldBuilder(); + } } @java.lang.Override @@ -749,6 +846,11 @@ public Builder clear() { presencePenalty_ = 0F; frequencyPenalty_ = 0F; responseMimeType_ = ""; + responseSchema_ = null; + if (responseSchemaBuilder_ != null) { + responseSchemaBuilder_.dispose(); + responseSchemaBuilder_ = null; + } return this; } @@ -821,6 +923,11 @@ private void buildPartial0(com.google.cloud.vertexai.api.GenerationConfig result if (((from_bitField0_ & 0x00000100) != 0)) { result.responseMimeType_ = responseMimeType_; } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.responseSchema_ = + responseSchemaBuilder_ == null ? responseSchema_ : responseSchemaBuilder_.build(); + to_bitField0_ |= 0x00000080; + } result.bitField0_ |= to_bitField0_; } @@ -905,6 +1012,9 @@ public Builder mergeFrom(com.google.cloud.vertexai.api.GenerationConfig other) { bitField0_ |= 0x00000100; onChanged(); } + if (other.hasResponseSchema()) { + mergeResponseSchema(other.getResponseSchema()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -986,6 +1096,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000100; break; } // case 106 + case 130: + { + input.readMessage(getResponseSchemaFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 130 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1791,6 +1907,263 @@ public Builder setResponseMimeTypeBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.vertexai.api.Schema responseSchema_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vertexai.api.Schema, + com.google.cloud.vertexai.api.Schema.Builder, + com.google.cloud.vertexai.api.SchemaOrBuilder> + responseSchemaBuilder_; + /** + * + * + *
+     * Optional. The `Schema` object allows the definition of input and output
+     * data types. These types can be objects, but also primitives and arrays.
+     * Represents a select subset of an [OpenAPI 3.0 schema
+     * object](https://spec.openapis.org/oas/v3.0.3#schema).
+     * If set, a compatible response_mime_type must also be set.
+     * Compatible mimetypes:
+     * `application/json`: Schema for JSON response.
+     * 
+ * + * + * optional .google.cloud.vertexai.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the responseSchema field is set. + */ + public boolean hasResponseSchema() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * + * + *
+     * Optional. The `Schema` object allows the definition of input and output
+     * data types. These types can be objects, but also primitives and arrays.
+     * Represents a select subset of an [OpenAPI 3.0 schema
+     * object](https://spec.openapis.org/oas/v3.0.3#schema).
+     * If set, a compatible response_mime_type must also be set.
+     * Compatible mimetypes:
+     * `application/json`: Schema for JSON response.
+     * 
+ * + * + * optional .google.cloud.vertexai.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The responseSchema. + */ + public com.google.cloud.vertexai.api.Schema getResponseSchema() { + if (responseSchemaBuilder_ == null) { + return responseSchema_ == null + ? com.google.cloud.vertexai.api.Schema.getDefaultInstance() + : responseSchema_; + } else { + return responseSchemaBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. The `Schema` object allows the definition of input and output
+     * data types. These types can be objects, but also primitives and arrays.
+     * Represents a select subset of an [OpenAPI 3.0 schema
+     * object](https://spec.openapis.org/oas/v3.0.3#schema).
+     * If set, a compatible response_mime_type must also be set.
+     * Compatible mimetypes:
+     * `application/json`: Schema for JSON response.
+     * 
+ * + * + * optional .google.cloud.vertexai.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setResponseSchema(com.google.cloud.vertexai.api.Schema value) { + if (responseSchemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + responseSchema_ = value; + } else { + responseSchemaBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The `Schema` object allows the definition of input and output
+     * data types. These types can be objects, but also primitives and arrays.
+     * Represents a select subset of an [OpenAPI 3.0 schema
+     * object](https://spec.openapis.org/oas/v3.0.3#schema).
+     * If set, a compatible response_mime_type must also be set.
+     * Compatible mimetypes:
+     * `application/json`: Schema for JSON response.
+     * 
+ * + * + * optional .google.cloud.vertexai.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setResponseSchema(com.google.cloud.vertexai.api.Schema.Builder builderForValue) { + if (responseSchemaBuilder_ == null) { + responseSchema_ = builderForValue.build(); + } else { + responseSchemaBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The `Schema` object allows the definition of input and output
+     * data types. These types can be objects, but also primitives and arrays.
+     * Represents a select subset of an [OpenAPI 3.0 schema
+     * object](https://spec.openapis.org/oas/v3.0.3#schema).
+     * If set, a compatible response_mime_type must also be set.
+     * Compatible mimetypes:
+     * `application/json`: Schema for JSON response.
+     * 
+ * + * + * optional .google.cloud.vertexai.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeResponseSchema(com.google.cloud.vertexai.api.Schema value) { + if (responseSchemaBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && responseSchema_ != null + && responseSchema_ != com.google.cloud.vertexai.api.Schema.getDefaultInstance()) { + getResponseSchemaBuilder().mergeFrom(value); + } else { + responseSchema_ = value; + } + } else { + responseSchemaBuilder_.mergeFrom(value); + } + if (responseSchema_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. The `Schema` object allows the definition of input and output
+     * data types. These types can be objects, but also primitives and arrays.
+     * Represents a select subset of an [OpenAPI 3.0 schema
+     * object](https://spec.openapis.org/oas/v3.0.3#schema).
+     * If set, a compatible response_mime_type must also be set.
+     * Compatible mimetypes:
+     * `application/json`: Schema for JSON response.
+     * 
+ * + * + * optional .google.cloud.vertexai.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearResponseSchema() { + bitField0_ = (bitField0_ & ~0x00000200); + responseSchema_ = null; + if (responseSchemaBuilder_ != null) { + responseSchemaBuilder_.dispose(); + responseSchemaBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The `Schema` object allows the definition of input and output
+     * data types. These types can be objects, but also primitives and arrays.
+     * Represents a select subset of an [OpenAPI 3.0 schema
+     * object](https://spec.openapis.org/oas/v3.0.3#schema).
+     * If set, a compatible response_mime_type must also be set.
+     * Compatible mimetypes:
+     * `application/json`: Schema for JSON response.
+     * 
+ * + * + * optional .google.cloud.vertexai.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vertexai.api.Schema.Builder getResponseSchemaBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return getResponseSchemaFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. The `Schema` object allows the definition of input and output
+     * data types. These types can be objects, but also primitives and arrays.
+     * Represents a select subset of an [OpenAPI 3.0 schema
+     * object](https://spec.openapis.org/oas/v3.0.3#schema).
+     * If set, a compatible response_mime_type must also be set.
+     * Compatible mimetypes:
+     * `application/json`: Schema for JSON response.
+     * 
+ * + * + * optional .google.cloud.vertexai.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vertexai.api.SchemaOrBuilder getResponseSchemaOrBuilder() { + if (responseSchemaBuilder_ != null) { + return responseSchemaBuilder_.getMessageOrBuilder(); + } else { + return responseSchema_ == null + ? com.google.cloud.vertexai.api.Schema.getDefaultInstance() + : responseSchema_; + } + } + /** + * + * + *
+     * Optional. The `Schema` object allows the definition of input and output
+     * data types. These types can be objects, but also primitives and arrays.
+     * Represents a select subset of an [OpenAPI 3.0 schema
+     * object](https://spec.openapis.org/oas/v3.0.3#schema).
+     * If set, a compatible response_mime_type must also be set.
+     * Compatible mimetypes:
+     * `application/json`: Schema for JSON response.
+     * 
+ * + * + * optional .google.cloud.vertexai.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vertexai.api.Schema, + com.google.cloud.vertexai.api.Schema.Builder, + com.google.cloud.vertexai.api.SchemaOrBuilder> + getResponseSchemaFieldBuilder() { + if (responseSchemaBuilder_ == null) { + responseSchemaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vertexai.api.Schema, + com.google.cloud.vertexai.api.Schema.Builder, + com.google.cloud.vertexai.api.SchemaOrBuilder>( + getResponseSchema(), getParentForChildren(), isClean()); + responseSchema_ = null; + } + return responseSchemaBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerationConfigOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerationConfigOrBuilder.java index fd77186be57b..2b9017051f25 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerationConfigOrBuilder.java +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerationConfigOrBuilder.java @@ -286,4 +286,63 @@ public interface GenerationConfigOrBuilder * @return The bytes for responseMimeType. */ com.google.protobuf.ByteString getResponseMimeTypeBytes(); + + /** + * + * + *
+   * Optional. The `Schema` object allows the definition of input and output
+   * data types. These types can be objects, but also primitives and arrays.
+   * Represents a select subset of an [OpenAPI 3.0 schema
+   * object](https://spec.openapis.org/oas/v3.0.3#schema).
+   * If set, a compatible response_mime_type must also be set.
+   * Compatible mimetypes:
+   * `application/json`: Schema for JSON response.
+   * 
+ * + * + * optional .google.cloud.vertexai.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the responseSchema field is set. + */ + boolean hasResponseSchema(); + /** + * + * + *
+   * Optional. The `Schema` object allows the definition of input and output
+   * data types. These types can be objects, but also primitives and arrays.
+   * Represents a select subset of an [OpenAPI 3.0 schema
+   * object](https://spec.openapis.org/oas/v3.0.3#schema).
+   * If set, a compatible response_mime_type must also be set.
+   * Compatible mimetypes:
+   * `application/json`: Schema for JSON response.
+   * 
+ * + * + * optional .google.cloud.vertexai.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The responseSchema. + */ + com.google.cloud.vertexai.api.Schema getResponseSchema(); + /** + * + * + *
+   * Optional. The `Schema` object allows the definition of input and output
+   * data types. These types can be objects, but also primitives and arrays.
+   * Represents a select subset of an [OpenAPI 3.0 schema
+   * object](https://spec.openapis.org/oas/v3.0.3#schema).
+   * If set, a compatible response_mime_type must also be set.
+   * Compatible mimetypes:
+   * `application/json`: Schema for JSON response.
+   * 
+ * + * + * optional .google.cloud.vertexai.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.vertexai.api.SchemaOrBuilder getResponseSchemaOrBuilder(); } diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GoogleSearchRetrieval.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GoogleSearchRetrieval.java index 78662d557505..89aeb35d2091 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GoogleSearchRetrieval.java +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GoogleSearchRetrieval.java @@ -61,26 +61,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.vertexai.api.GoogleSearchRetrieval.Builder.class); } - public static final int DISABLE_ATTRIBUTION_FIELD_NUMBER = 1; - private boolean disableAttribution_ = false; - /** - * - * - *
-   * Optional. Disable using the result from this tool in detecting grounding
-   * attribution. This does not affect how the result is given to the model for
-   * generation.
-   * 
- * - * bool disable_attribution = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The disableAttribution. - */ - @java.lang.Override - public boolean getDisableAttribution() { - return disableAttribution_; - } - private byte memoizedIsInitialized = -1; @java.lang.Override @@ -95,9 +75,6 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (disableAttribution_ != false) { - output.writeBool(1, disableAttribution_); - } getUnknownFields().writeTo(output); } @@ -107,9 +84,6 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (disableAttribution_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, disableAttribution_); - } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -126,7 +100,6 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.vertexai.api.GoogleSearchRetrieval other = (com.google.cloud.vertexai.api.GoogleSearchRetrieval) obj; - if (getDisableAttribution() != other.getDisableAttribution()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -138,8 +111,6 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DISABLE_ATTRIBUTION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableAttribution()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -278,8 +249,6 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - bitField0_ = 0; - disableAttribution_ = false; return this; } @@ -307,20 +276,10 @@ public com.google.cloud.vertexai.api.GoogleSearchRetrieval build() { public com.google.cloud.vertexai.api.GoogleSearchRetrieval buildPartial() { com.google.cloud.vertexai.api.GoogleSearchRetrieval result = new com.google.cloud.vertexai.api.GoogleSearchRetrieval(this); - if (bitField0_ != 0) { - buildPartial0(result); - } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.vertexai.api.GoogleSearchRetrieval result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.disableAttribution_ = disableAttribution_; - } - } - @java.lang.Override public Builder clone() { return super.clone(); @@ -367,9 +326,6 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.vertexai.api.GoogleSearchRetrieval other) { if (other == com.google.cloud.vertexai.api.GoogleSearchRetrieval.getDefaultInstance()) return this; - if (other.getDisableAttribution() != false) { - setDisableAttribution(other.getDisableAttribution()); - } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -396,12 +352,6 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - disableAttribution_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -419,67 +369,6 @@ public Builder mergeFrom( return this; } - private int bitField0_; - - private boolean disableAttribution_; - /** - * - * - *
-     * Optional. Disable using the result from this tool in detecting grounding
-     * attribution. This does not affect how the result is given to the model for
-     * generation.
-     * 
- * - * bool disable_attribution = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The disableAttribution. - */ - @java.lang.Override - public boolean getDisableAttribution() { - return disableAttribution_; - } - /** - * - * - *
-     * Optional. Disable using the result from this tool in detecting grounding
-     * attribution. This does not affect how the result is given to the model for
-     * generation.
-     * 
- * - * bool disable_attribution = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The disableAttribution to set. - * @return This builder for chaining. - */ - public Builder setDisableAttribution(boolean value) { - - disableAttribution_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Disable using the result from this tool in detecting grounding
-     * attribution. This does not affect how the result is given to the model for
-     * generation.
-     * 
- * - * bool disable_attribution = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearDisableAttribution() { - bitField0_ = (bitField0_ & ~0x00000001); - disableAttribution_ = false; - onChanged(); - return this; - } - @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GoogleSearchRetrievalOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GoogleSearchRetrievalOrBuilder.java index 6a5b7fcada88..fe21868a13c0 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GoogleSearchRetrievalOrBuilder.java +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GoogleSearchRetrievalOrBuilder.java @@ -22,20 +22,4 @@ public interface GoogleSearchRetrievalOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vertexai.v1.GoogleSearchRetrieval) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. Disable using the result from this tool in detecting grounding
-   * attribution. This does not affect how the result is given to the model for
-   * generation.
-   * 
- * - * bool disable_attribution = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The disableAttribution. - */ - boolean getDisableAttribution(); -} + com.google.protobuf.MessageOrBuilder {} diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GroundingAttribution.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GroundingAttribution.java deleted file mode 100644 index 093b7a8db701..000000000000 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GroundingAttribution.java +++ /dev/null @@ -1,2138 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vertexai/v1/content.proto - -// Protobuf Java Version: 3.25.3 -package com.google.cloud.vertexai.api; - -/** - * - * - *
- * Grounding attribution.
- * 
- * - * Protobuf type {@code google.cloud.vertexai.v1.GroundingAttribution} - */ -public final class GroundingAttribution extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.vertexai.v1.GroundingAttribution) - GroundingAttributionOrBuilder { - private static final long serialVersionUID = 0L; - // Use GroundingAttribution.newBuilder() to construct. - private GroundingAttribution(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GroundingAttribution() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GroundingAttribution(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vertexai.api.ContentProto - .internal_static_google_cloud_vertexai_v1_GroundingAttribution_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.vertexai.api.ContentProto - .internal_static_google_cloud_vertexai_v1_GroundingAttribution_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.vertexai.api.GroundingAttribution.class, - com.google.cloud.vertexai.api.GroundingAttribution.Builder.class); - } - - public interface WebOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vertexai.v1.GroundingAttribution.Web) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Output only. URI reference of the attribution.
-     * 
- * - * string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The uri. - */ - java.lang.String getUri(); - /** - * - * - *
-     * Output only. URI reference of the attribution.
-     * 
- * - * string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for uri. - */ - com.google.protobuf.ByteString getUriBytes(); - - /** - * - * - *
-     * Output only. Title of the attribution.
-     * 
- * - * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The title. - */ - java.lang.String getTitle(); - /** - * - * - *
-     * Output only. Title of the attribution.
-     * 
- * - * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for title. - */ - com.google.protobuf.ByteString getTitleBytes(); - } - /** - * - * - *
-   * Attribution from the web.
-   * 
- * - * Protobuf type {@code google.cloud.vertexai.v1.GroundingAttribution.Web} - */ - public static final class Web extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.vertexai.v1.GroundingAttribution.Web) - WebOrBuilder { - private static final long serialVersionUID = 0L; - // Use Web.newBuilder() to construct. - private Web(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Web() { - uri_ = ""; - title_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Web(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vertexai.api.ContentProto - .internal_static_google_cloud_vertexai_v1_GroundingAttribution_Web_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.vertexai.api.ContentProto - .internal_static_google_cloud_vertexai_v1_GroundingAttribution_Web_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.vertexai.api.GroundingAttribution.Web.class, - com.google.cloud.vertexai.api.GroundingAttribution.Web.Builder.class); - } - - public static final int URI_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object uri_ = ""; - /** - * - * - *
-     * Output only. URI reference of the attribution.
-     * 
- * - * string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The uri. - */ - @java.lang.Override - public java.lang.String getUri() { - java.lang.Object ref = uri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uri_ = s; - return s; - } - } - /** - * - * - *
-     * Output only. URI reference of the attribution.
-     * 
- * - * string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for uri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getUriBytes() { - java.lang.Object ref = uri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - uri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TITLE_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object title_ = ""; - /** - * - * - *
-     * Output only. Title of the attribution.
-     * 
- * - * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The title. - */ - @java.lang.Override - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - title_ = s; - return s; - } - } - /** - * - * - *
-     * Output only. Title of the attribution.
-     * 
- * - * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for title. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, title_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.vertexai.api.GroundingAttribution.Web)) { - return super.equals(obj); - } - com.google.cloud.vertexai.api.GroundingAttribution.Web other = - (com.google.cloud.vertexai.api.GroundingAttribution.Web) obj; - - if (!getUri().equals(other.getUri())) return false; - if (!getTitle().equals(other.getTitle())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + URI_FIELD_NUMBER; - hash = (53 * hash) + getUri().hashCode(); - hash = (37 * hash) + TITLE_FIELD_NUMBER; - hash = (53 * hash) + getTitle().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.vertexai.api.GroundingAttribution.Web parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.vertexai.api.GroundingAttribution.Web parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.vertexai.api.GroundingAttribution.Web parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.vertexai.api.GroundingAttribution.Web parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.vertexai.api.GroundingAttribution.Web parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.vertexai.api.GroundingAttribution.Web parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.vertexai.api.GroundingAttribution.Web parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.vertexai.api.GroundingAttribution.Web parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.vertexai.api.GroundingAttribution.Web parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.vertexai.api.GroundingAttribution.Web parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.vertexai.api.GroundingAttribution.Web parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.vertexai.api.GroundingAttribution.Web parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.vertexai.api.GroundingAttribution.Web prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * Attribution from the web.
-     * 
- * - * Protobuf type {@code google.cloud.vertexai.v1.GroundingAttribution.Web} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.vertexai.v1.GroundingAttribution.Web) - com.google.cloud.vertexai.api.GroundingAttribution.WebOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vertexai.api.ContentProto - .internal_static_google_cloud_vertexai_v1_GroundingAttribution_Web_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.vertexai.api.ContentProto - .internal_static_google_cloud_vertexai_v1_GroundingAttribution_Web_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.vertexai.api.GroundingAttribution.Web.class, - com.google.cloud.vertexai.api.GroundingAttribution.Web.Builder.class); - } - - // Construct using com.google.cloud.vertexai.api.GroundingAttribution.Web.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - uri_ = ""; - title_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vertexai.api.ContentProto - .internal_static_google_cloud_vertexai_v1_GroundingAttribution_Web_descriptor; - } - - @java.lang.Override - public com.google.cloud.vertexai.api.GroundingAttribution.Web getDefaultInstanceForType() { - return com.google.cloud.vertexai.api.GroundingAttribution.Web.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.vertexai.api.GroundingAttribution.Web build() { - com.google.cloud.vertexai.api.GroundingAttribution.Web result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.vertexai.api.GroundingAttribution.Web buildPartial() { - com.google.cloud.vertexai.api.GroundingAttribution.Web result = - new com.google.cloud.vertexai.api.GroundingAttribution.Web(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.vertexai.api.GroundingAttribution.Web result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.uri_ = uri_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.title_ = title_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.vertexai.api.GroundingAttribution.Web) { - return mergeFrom((com.google.cloud.vertexai.api.GroundingAttribution.Web) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.vertexai.api.GroundingAttribution.Web other) { - if (other == com.google.cloud.vertexai.api.GroundingAttribution.Web.getDefaultInstance()) - return this; - if (!other.getUri().isEmpty()) { - uri_ = other.uri_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getTitle().isEmpty()) { - title_ = other.title_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - uri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - title_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object uri_ = ""; - /** - * - * - *
-       * Output only. URI reference of the attribution.
-       * 
- * - * string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The uri. - */ - public java.lang.String getUri() { - java.lang.Object ref = uri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Output only. URI reference of the attribution.
-       * 
- * - * string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for uri. - */ - public com.google.protobuf.ByteString getUriBytes() { - java.lang.Object ref = uri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - uri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Output only. URI reference of the attribution.
-       * 
- * - * string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The uri to set. - * @return This builder for chaining. - */ - public Builder setUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - uri_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. URI reference of the attribution.
-       * 
- * - * string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearUri() { - uri_ = getDefaultInstance().getUri(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. URI reference of the attribution.
-       * 
- * - * string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for uri to set. - * @return This builder for chaining. - */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - uri_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object title_ = ""; - /** - * - * - *
-       * Output only. Title of the attribution.
-       * 
- * - * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The title. - */ - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - title_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Output only. Title of the attribution.
-       * 
- * - * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for title. - */ - public com.google.protobuf.ByteString getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Output only. Title of the attribution.
-       * 
- * - * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The title to set. - * @return This builder for chaining. - */ - public Builder setTitle(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - title_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. Title of the attribution.
-       * 
- * - * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearTitle() { - title_ = getDefaultInstance().getTitle(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. Title of the attribution.
-       * 
- * - * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for title to set. - * @return This builder for chaining. - */ - public Builder setTitleBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - title_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.vertexai.v1.GroundingAttribution.Web) - } - - // @@protoc_insertion_point(class_scope:google.cloud.vertexai.v1.GroundingAttribution.Web) - private static final com.google.cloud.vertexai.api.GroundingAttribution.Web DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.vertexai.api.GroundingAttribution.Web(); - } - - public static com.google.cloud.vertexai.api.GroundingAttribution.Web getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Web parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.vertexai.api.GroundingAttribution.Web getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int bitField0_; - private int referenceCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object reference_; - - public enum ReferenceCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - WEB(3), - REFERENCE_NOT_SET(0); - private final int value; - - private ReferenceCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ReferenceCase valueOf(int value) { - return forNumber(value); - } - - public static ReferenceCase forNumber(int value) { - switch (value) { - case 3: - return WEB; - case 0: - return REFERENCE_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public ReferenceCase getReferenceCase() { - return ReferenceCase.forNumber(referenceCase_); - } - - public static final int WEB_FIELD_NUMBER = 3; - /** - * - * - *
-   * Optional. Attribution from the web.
-   * 
- * - * - * .google.cloud.vertexai.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the web field is set. - */ - @java.lang.Override - public boolean hasWeb() { - return referenceCase_ == 3; - } - /** - * - * - *
-   * Optional. Attribution from the web.
-   * 
- * - * - * .google.cloud.vertexai.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The web. - */ - @java.lang.Override - public com.google.cloud.vertexai.api.GroundingAttribution.Web getWeb() { - if (referenceCase_ == 3) { - return (com.google.cloud.vertexai.api.GroundingAttribution.Web) reference_; - } - return com.google.cloud.vertexai.api.GroundingAttribution.Web.getDefaultInstance(); - } - /** - * - * - *
-   * Optional. Attribution from the web.
-   * 
- * - * - * .google.cloud.vertexai.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.vertexai.api.GroundingAttribution.WebOrBuilder getWebOrBuilder() { - if (referenceCase_ == 3) { - return (com.google.cloud.vertexai.api.GroundingAttribution.Web) reference_; - } - return com.google.cloud.vertexai.api.GroundingAttribution.Web.getDefaultInstance(); - } - - public static final int SEGMENT_FIELD_NUMBER = 1; - private com.google.cloud.vertexai.api.Segment segment_; - /** - * - * - *
-   * Output only. Segment of the content this attribution belongs to.
-   * 
- * - * - * .google.cloud.vertexai.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the segment field is set. - */ - @java.lang.Override - public boolean hasSegment() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Output only. Segment of the content this attribution belongs to.
-   * 
- * - * - * .google.cloud.vertexai.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The segment. - */ - @java.lang.Override - public com.google.cloud.vertexai.api.Segment getSegment() { - return segment_ == null ? com.google.cloud.vertexai.api.Segment.getDefaultInstance() : segment_; - } - /** - * - * - *
-   * Output only. Segment of the content this attribution belongs to.
-   * 
- * - * - * .google.cloud.vertexai.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.vertexai.api.SegmentOrBuilder getSegmentOrBuilder() { - return segment_ == null ? com.google.cloud.vertexai.api.Segment.getDefaultInstance() : segment_; - } - - public static final int CONFIDENCE_SCORE_FIELD_NUMBER = 2; - private float confidenceScore_ = 0F; - /** - * - * - *
-   * Optional. Output only. Confidence score of the attribution. Ranges from 0
-   * to 1. 1 is the most confident.
-   * 
- * - * - * optional float confidence_score = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the confidenceScore field is set. - */ - @java.lang.Override - public boolean hasConfidenceScore() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * Optional. Output only. Confidence score of the attribution. Ranges from 0
-   * to 1. 1 is the most confident.
-   * 
- * - * - * optional float confidence_score = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The confidenceScore. - */ - @java.lang.Override - public float getConfidenceScore() { - return confidenceScore_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getSegment()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeFloat(2, confidenceScore_); - } - if (referenceCase_ == 3) { - output.writeMessage(3, (com.google.cloud.vertexai.api.GroundingAttribution.Web) reference_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSegment()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidenceScore_); - } - if (referenceCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.vertexai.api.GroundingAttribution.Web) reference_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.vertexai.api.GroundingAttribution)) { - return super.equals(obj); - } - com.google.cloud.vertexai.api.GroundingAttribution other = - (com.google.cloud.vertexai.api.GroundingAttribution) obj; - - if (hasSegment() != other.hasSegment()) return false; - if (hasSegment()) { - if (!getSegment().equals(other.getSegment())) return false; - } - if (hasConfidenceScore() != other.hasConfidenceScore()) return false; - if (hasConfidenceScore()) { - if (java.lang.Float.floatToIntBits(getConfidenceScore()) - != java.lang.Float.floatToIntBits(other.getConfidenceScore())) return false; - } - if (!getReferenceCase().equals(other.getReferenceCase())) return false; - switch (referenceCase_) { - case 3: - if (!getWeb().equals(other.getWeb())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasSegment()) { - hash = (37 * hash) + SEGMENT_FIELD_NUMBER; - hash = (53 * hash) + getSegment().hashCode(); - } - if (hasConfidenceScore()) { - hash = (37 * hash) + CONFIDENCE_SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidenceScore()); - } - switch (referenceCase_) { - case 3: - hash = (37 * hash) + WEB_FIELD_NUMBER; - hash = (53 * hash) + getWeb().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.vertexai.api.GroundingAttribution parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.vertexai.api.GroundingAttribution parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.vertexai.api.GroundingAttribution parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.vertexai.api.GroundingAttribution parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.vertexai.api.GroundingAttribution parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.vertexai.api.GroundingAttribution parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.vertexai.api.GroundingAttribution parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.vertexai.api.GroundingAttribution parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.vertexai.api.GroundingAttribution parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.vertexai.api.GroundingAttribution parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.vertexai.api.GroundingAttribution parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.vertexai.api.GroundingAttribution parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.vertexai.api.GroundingAttribution prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Grounding attribution.
-   * 
- * - * Protobuf type {@code google.cloud.vertexai.v1.GroundingAttribution} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.vertexai.v1.GroundingAttribution) - com.google.cloud.vertexai.api.GroundingAttributionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vertexai.api.ContentProto - .internal_static_google_cloud_vertexai_v1_GroundingAttribution_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.vertexai.api.ContentProto - .internal_static_google_cloud_vertexai_v1_GroundingAttribution_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.vertexai.api.GroundingAttribution.class, - com.google.cloud.vertexai.api.GroundingAttribution.Builder.class); - } - - // Construct using com.google.cloud.vertexai.api.GroundingAttribution.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getSegmentFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (webBuilder_ != null) { - webBuilder_.clear(); - } - segment_ = null; - if (segmentBuilder_ != null) { - segmentBuilder_.dispose(); - segmentBuilder_ = null; - } - confidenceScore_ = 0F; - referenceCase_ = 0; - reference_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vertexai.api.ContentProto - .internal_static_google_cloud_vertexai_v1_GroundingAttribution_descriptor; - } - - @java.lang.Override - public com.google.cloud.vertexai.api.GroundingAttribution getDefaultInstanceForType() { - return com.google.cloud.vertexai.api.GroundingAttribution.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.vertexai.api.GroundingAttribution build() { - com.google.cloud.vertexai.api.GroundingAttribution result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.vertexai.api.GroundingAttribution buildPartial() { - com.google.cloud.vertexai.api.GroundingAttribution result = - new com.google.cloud.vertexai.api.GroundingAttribution(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.vertexai.api.GroundingAttribution result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.segment_ = segmentBuilder_ == null ? segment_ : segmentBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.confidenceScore_ = confidenceScore_; - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - private void buildPartialOneofs(com.google.cloud.vertexai.api.GroundingAttribution result) { - result.referenceCase_ = referenceCase_; - result.reference_ = this.reference_; - if (referenceCase_ == 3 && webBuilder_ != null) { - result.reference_ = webBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.vertexai.api.GroundingAttribution) { - return mergeFrom((com.google.cloud.vertexai.api.GroundingAttribution) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.vertexai.api.GroundingAttribution other) { - if (other == com.google.cloud.vertexai.api.GroundingAttribution.getDefaultInstance()) - return this; - if (other.hasSegment()) { - mergeSegment(other.getSegment()); - } - if (other.hasConfidenceScore()) { - setConfidenceScore(other.getConfidenceScore()); - } - switch (other.getReferenceCase()) { - case WEB: - { - mergeWeb(other.getWeb()); - break; - } - case REFERENCE_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getSegmentFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 10 - case 21: - { - confidenceScore_ = input.readFloat(); - bitField0_ |= 0x00000004; - break; - } // case 21 - case 26: - { - input.readMessage(getWebFieldBuilder().getBuilder(), extensionRegistry); - referenceCase_ = 3; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int referenceCase_ = 0; - private java.lang.Object reference_; - - public ReferenceCase getReferenceCase() { - return ReferenceCase.forNumber(referenceCase_); - } - - public Builder clearReference() { - referenceCase_ = 0; - reference_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vertexai.api.GroundingAttribution.Web, - com.google.cloud.vertexai.api.GroundingAttribution.Web.Builder, - com.google.cloud.vertexai.api.GroundingAttribution.WebOrBuilder> - webBuilder_; - /** - * - * - *
-     * Optional. Attribution from the web.
-     * 
- * - * - * .google.cloud.vertexai.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the web field is set. - */ - @java.lang.Override - public boolean hasWeb() { - return referenceCase_ == 3; - } - /** - * - * - *
-     * Optional. Attribution from the web.
-     * 
- * - * - * .google.cloud.vertexai.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The web. - */ - @java.lang.Override - public com.google.cloud.vertexai.api.GroundingAttribution.Web getWeb() { - if (webBuilder_ == null) { - if (referenceCase_ == 3) { - return (com.google.cloud.vertexai.api.GroundingAttribution.Web) reference_; - } - return com.google.cloud.vertexai.api.GroundingAttribution.Web.getDefaultInstance(); - } else { - if (referenceCase_ == 3) { - return webBuilder_.getMessage(); - } - return com.google.cloud.vertexai.api.GroundingAttribution.Web.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Attribution from the web.
-     * 
- * - * - * .google.cloud.vertexai.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setWeb(com.google.cloud.vertexai.api.GroundingAttribution.Web value) { - if (webBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - reference_ = value; - onChanged(); - } else { - webBuilder_.setMessage(value); - } - referenceCase_ = 3; - return this; - } - /** - * - * - *
-     * Optional. Attribution from the web.
-     * 
- * - * - * .google.cloud.vertexai.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setWeb( - com.google.cloud.vertexai.api.GroundingAttribution.Web.Builder builderForValue) { - if (webBuilder_ == null) { - reference_ = builderForValue.build(); - onChanged(); - } else { - webBuilder_.setMessage(builderForValue.build()); - } - referenceCase_ = 3; - return this; - } - /** - * - * - *
-     * Optional. Attribution from the web.
-     * 
- * - * - * .google.cloud.vertexai.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeWeb(com.google.cloud.vertexai.api.GroundingAttribution.Web value) { - if (webBuilder_ == null) { - if (referenceCase_ == 3 - && reference_ - != com.google.cloud.vertexai.api.GroundingAttribution.Web.getDefaultInstance()) { - reference_ = - com.google.cloud.vertexai.api.GroundingAttribution.Web.newBuilder( - (com.google.cloud.vertexai.api.GroundingAttribution.Web) reference_) - .mergeFrom(value) - .buildPartial(); - } else { - reference_ = value; - } - onChanged(); - } else { - if (referenceCase_ == 3) { - webBuilder_.mergeFrom(value); - } else { - webBuilder_.setMessage(value); - } - } - referenceCase_ = 3; - return this; - } - /** - * - * - *
-     * Optional. Attribution from the web.
-     * 
- * - * - * .google.cloud.vertexai.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearWeb() { - if (webBuilder_ == null) { - if (referenceCase_ == 3) { - referenceCase_ = 0; - reference_ = null; - onChanged(); - } - } else { - if (referenceCase_ == 3) { - referenceCase_ = 0; - reference_ = null; - } - webBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. Attribution from the web.
-     * 
- * - * - * .google.cloud.vertexai.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.vertexai.api.GroundingAttribution.Web.Builder getWebBuilder() { - return getWebFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Attribution from the web.
-     * 
- * - * - * .google.cloud.vertexai.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.vertexai.api.GroundingAttribution.WebOrBuilder getWebOrBuilder() { - if ((referenceCase_ == 3) && (webBuilder_ != null)) { - return webBuilder_.getMessageOrBuilder(); - } else { - if (referenceCase_ == 3) { - return (com.google.cloud.vertexai.api.GroundingAttribution.Web) reference_; - } - return com.google.cloud.vertexai.api.GroundingAttribution.Web.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Attribution from the web.
-     * 
- * - * - * .google.cloud.vertexai.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vertexai.api.GroundingAttribution.Web, - com.google.cloud.vertexai.api.GroundingAttribution.Web.Builder, - com.google.cloud.vertexai.api.GroundingAttribution.WebOrBuilder> - getWebFieldBuilder() { - if (webBuilder_ == null) { - if (!(referenceCase_ == 3)) { - reference_ = com.google.cloud.vertexai.api.GroundingAttribution.Web.getDefaultInstance(); - } - webBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vertexai.api.GroundingAttribution.Web, - com.google.cloud.vertexai.api.GroundingAttribution.Web.Builder, - com.google.cloud.vertexai.api.GroundingAttribution.WebOrBuilder>( - (com.google.cloud.vertexai.api.GroundingAttribution.Web) reference_, - getParentForChildren(), - isClean()); - reference_ = null; - } - referenceCase_ = 3; - onChanged(); - return webBuilder_; - } - - private com.google.cloud.vertexai.api.Segment segment_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vertexai.api.Segment, - com.google.cloud.vertexai.api.Segment.Builder, - com.google.cloud.vertexai.api.SegmentOrBuilder> - segmentBuilder_; - /** - * - * - *
-     * Output only. Segment of the content this attribution belongs to.
-     * 
- * - * - * .google.cloud.vertexai.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the segment field is set. - */ - public boolean hasSegment() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-     * Output only. Segment of the content this attribution belongs to.
-     * 
- * - * - * .google.cloud.vertexai.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The segment. - */ - public com.google.cloud.vertexai.api.Segment getSegment() { - if (segmentBuilder_ == null) { - return segment_ == null - ? com.google.cloud.vertexai.api.Segment.getDefaultInstance() - : segment_; - } else { - return segmentBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. Segment of the content this attribution belongs to.
-     * 
- * - * - * .google.cloud.vertexai.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setSegment(com.google.cloud.vertexai.api.Segment value) { - if (segmentBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - segment_ = value; - } else { - segmentBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Segment of the content this attribution belongs to.
-     * 
- * - * - * .google.cloud.vertexai.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setSegment(com.google.cloud.vertexai.api.Segment.Builder builderForValue) { - if (segmentBuilder_ == null) { - segment_ = builderForValue.build(); - } else { - segmentBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Segment of the content this attribution belongs to.
-     * 
- * - * - * .google.cloud.vertexai.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeSegment(com.google.cloud.vertexai.api.Segment value) { - if (segmentBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && segment_ != null - && segment_ != com.google.cloud.vertexai.api.Segment.getDefaultInstance()) { - getSegmentBuilder().mergeFrom(value); - } else { - segment_ = value; - } - } else { - segmentBuilder_.mergeFrom(value); - } - if (segment_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Output only. Segment of the content this attribution belongs to.
-     * 
- * - * - * .google.cloud.vertexai.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearSegment() { - bitField0_ = (bitField0_ & ~0x00000002); - segment_ = null; - if (segmentBuilder_ != null) { - segmentBuilder_.dispose(); - segmentBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Segment of the content this attribution belongs to.
-     * 
- * - * - * .google.cloud.vertexai.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.vertexai.api.Segment.Builder getSegmentBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getSegmentFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. Segment of the content this attribution belongs to.
-     * 
- * - * - * .google.cloud.vertexai.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.vertexai.api.SegmentOrBuilder getSegmentOrBuilder() { - if (segmentBuilder_ != null) { - return segmentBuilder_.getMessageOrBuilder(); - } else { - return segment_ == null - ? com.google.cloud.vertexai.api.Segment.getDefaultInstance() - : segment_; - } - } - /** - * - * - *
-     * Output only. Segment of the content this attribution belongs to.
-     * 
- * - * - * .google.cloud.vertexai.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vertexai.api.Segment, - com.google.cloud.vertexai.api.Segment.Builder, - com.google.cloud.vertexai.api.SegmentOrBuilder> - getSegmentFieldBuilder() { - if (segmentBuilder_ == null) { - segmentBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vertexai.api.Segment, - com.google.cloud.vertexai.api.Segment.Builder, - com.google.cloud.vertexai.api.SegmentOrBuilder>( - getSegment(), getParentForChildren(), isClean()); - segment_ = null; - } - return segmentBuilder_; - } - - private float confidenceScore_; - /** - * - * - *
-     * Optional. Output only. Confidence score of the attribution. Ranges from 0
-     * to 1. 1 is the most confident.
-     * 
- * - * - * optional float confidence_score = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the confidenceScore field is set. - */ - @java.lang.Override - public boolean hasConfidenceScore() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-     * Optional. Output only. Confidence score of the attribution. Ranges from 0
-     * to 1. 1 is the most confident.
-     * 
- * - * - * optional float confidence_score = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The confidenceScore. - */ - @java.lang.Override - public float getConfidenceScore() { - return confidenceScore_; - } - /** - * - * - *
-     * Optional. Output only. Confidence score of the attribution. Ranges from 0
-     * to 1. 1 is the most confident.
-     * 
- * - * - * optional float confidence_score = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The confidenceScore to set. - * @return This builder for chaining. - */ - public Builder setConfidenceScore(float value) { - - confidenceScore_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Output only. Confidence score of the attribution. Ranges from 0
-     * to 1. 1 is the most confident.
-     * 
- * - * - * optional float confidence_score = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearConfidenceScore() { - bitField0_ = (bitField0_ & ~0x00000004); - confidenceScore_ = 0F; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.vertexai.v1.GroundingAttribution) - } - - // @@protoc_insertion_point(class_scope:google.cloud.vertexai.v1.GroundingAttribution) - private static final com.google.cloud.vertexai.api.GroundingAttribution DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.vertexai.api.GroundingAttribution(); - } - - public static com.google.cloud.vertexai.api.GroundingAttribution getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GroundingAttribution parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.vertexai.api.GroundingAttribution getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GroundingAttributionOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GroundingAttributionOrBuilder.java deleted file mode 100644 index c085e0ba9b8a..000000000000 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GroundingAttributionOrBuilder.java +++ /dev/null @@ -1,141 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vertexai/v1/content.proto - -// Protobuf Java Version: 3.25.3 -package com.google.cloud.vertexai.api; - -public interface GroundingAttributionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vertexai.v1.GroundingAttribution) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. Attribution from the web.
-   * 
- * - * - * .google.cloud.vertexai.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the web field is set. - */ - boolean hasWeb(); - /** - * - * - *
-   * Optional. Attribution from the web.
-   * 
- * - * - * .google.cloud.vertexai.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The web. - */ - com.google.cloud.vertexai.api.GroundingAttribution.Web getWeb(); - /** - * - * - *
-   * Optional. Attribution from the web.
-   * 
- * - * - * .google.cloud.vertexai.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.vertexai.api.GroundingAttribution.WebOrBuilder getWebOrBuilder(); - - /** - * - * - *
-   * Output only. Segment of the content this attribution belongs to.
-   * 
- * - * - * .google.cloud.vertexai.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the segment field is set. - */ - boolean hasSegment(); - /** - * - * - *
-   * Output only. Segment of the content this attribution belongs to.
-   * 
- * - * - * .google.cloud.vertexai.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The segment. - */ - com.google.cloud.vertexai.api.Segment getSegment(); - /** - * - * - *
-   * Output only. Segment of the content this attribution belongs to.
-   * 
- * - * - * .google.cloud.vertexai.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.vertexai.api.SegmentOrBuilder getSegmentOrBuilder(); - - /** - * - * - *
-   * Optional. Output only. Confidence score of the attribution. Ranges from 0
-   * to 1. 1 is the most confident.
-   * 
- * - * - * optional float confidence_score = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the confidenceScore field is set. - */ - boolean hasConfidenceScore(); - /** - * - * - *
-   * Optional. Output only. Confidence score of the attribution. Ranges from 0
-   * to 1. 1 is the most confident.
-   * 
- * - * - * optional float confidence_score = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The confidenceScore. - */ - float getConfidenceScore(); - - com.google.cloud.vertexai.api.GroundingAttribution.ReferenceCase getReferenceCase(); -} diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GroundingMetadata.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GroundingMetadata.java index 72b9117d2334..fe28efb19407 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GroundingMetadata.java +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GroundingMetadata.java @@ -40,7 +40,6 @@ private GroundingMetadata(com.google.protobuf.GeneratedMessageV3.Builder buil private GroundingMetadata() { webSearchQueries_ = com.google.protobuf.LazyStringArrayList.emptyList(); - groundingAttributions_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -64,6 +63,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.vertexai.api.GroundingMetadata.Builder.class); } + private int bitField0_; public static final int WEB_SEARCH_QUERIES_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -128,87 +128,60 @@ public com.google.protobuf.ByteString getWebSearchQueriesBytes(int index) { return webSearchQueries_.getByteString(index); } - public static final int GROUNDING_ATTRIBUTIONS_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private java.util.List groundingAttributions_; + public static final int SEARCH_ENTRY_POINT_FIELD_NUMBER = 4; + private com.google.cloud.vertexai.api.SearchEntryPoint searchEntryPoint_; /** * * *
-   * Optional. List of grounding attributions.
+   * Optional. Google search entry for the following-up web searches.
    * 
* * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.cloud.vertexai.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL]; * - */ - @java.lang.Override - public java.util.List - getGroundingAttributionsList() { - return groundingAttributions_; - } - /** * - * - *
-   * Optional. List of grounding attributions.
-   * 
- * - * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * @return Whether the searchEntryPoint field is set. */ @java.lang.Override - public java.util.List - getGroundingAttributionsOrBuilderList() { - return groundingAttributions_; + public boolean hasSearchEntryPoint() { + return ((bitField0_ & 0x00000001) != 0); } /** * * *
-   * Optional. List of grounding attributions.
+   * Optional. Google search entry for the following-up web searches.
    * 
* * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.cloud.vertexai.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL]; * - */ - @java.lang.Override - public int getGroundingAttributionsCount() { - return groundingAttributions_.size(); - } - /** - * * - *
-   * Optional. List of grounding attributions.
-   * 
- * - * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * @return The searchEntryPoint. */ @java.lang.Override - public com.google.cloud.vertexai.api.GroundingAttribution getGroundingAttributions(int index) { - return groundingAttributions_.get(index); + public com.google.cloud.vertexai.api.SearchEntryPoint getSearchEntryPoint() { + return searchEntryPoint_ == null + ? com.google.cloud.vertexai.api.SearchEntryPoint.getDefaultInstance() + : searchEntryPoint_; } /** * * *
-   * Optional. List of grounding attributions.
+   * Optional. Google search entry for the following-up web searches.
    * 
* * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.cloud.vertexai.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.cloud.vertexai.api.GroundingAttributionOrBuilder - getGroundingAttributionsOrBuilder(int index) { - return groundingAttributions_.get(index); + public com.google.cloud.vertexai.api.SearchEntryPointOrBuilder getSearchEntryPointOrBuilder() { + return searchEntryPoint_ == null + ? com.google.cloud.vertexai.api.SearchEntryPoint.getDefaultInstance() + : searchEntryPoint_; } private byte memoizedIsInitialized = -1; @@ -228,8 +201,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < webSearchQueries_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, webSearchQueries_.getRaw(i)); } - for (int i = 0; i < groundingAttributions_.size(); i++) { - output.writeMessage(2, groundingAttributions_.get(i)); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getSearchEntryPoint()); } getUnknownFields().writeTo(output); } @@ -248,10 +221,8 @@ public int getSerializedSize() { size += dataSize; size += 1 * getWebSearchQueriesList().size(); } - for (int i = 0; i < groundingAttributions_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, groundingAttributions_.get(i)); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSearchEntryPoint()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -270,7 +241,10 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.vertexai.api.GroundingMetadata) obj; if (!getWebSearchQueriesList().equals(other.getWebSearchQueriesList())) return false; - if (!getGroundingAttributionsList().equals(other.getGroundingAttributionsList())) return false; + if (hasSearchEntryPoint() != other.hasSearchEntryPoint()) return false; + if (hasSearchEntryPoint()) { + if (!getSearchEntryPoint().equals(other.getSearchEntryPoint())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -286,9 +260,9 @@ public int hashCode() { hash = (37 * hash) + WEB_SEARCH_QUERIES_FIELD_NUMBER; hash = (53 * hash) + getWebSearchQueriesList().hashCode(); } - if (getGroundingAttributionsCount() > 0) { - hash = (37 * hash) + GROUNDING_ATTRIBUTIONS_FIELD_NUMBER; - hash = (53 * hash) + getGroundingAttributionsList().hashCode(); + if (hasSearchEntryPoint()) { + hash = (37 * hash) + SEARCH_ENTRY_POINT_FIELD_NUMBER; + hash = (53 * hash) + getSearchEntryPoint().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; @@ -419,10 +393,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.vertexai.api.GroundingMetadata.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSearchEntryPointFieldBuilder(); + } } @java.lang.Override @@ -430,13 +413,11 @@ public Builder clear() { super.clear(); bitField0_ = 0; webSearchQueries_ = com.google.protobuf.LazyStringArrayList.emptyList(); - if (groundingAttributionsBuilder_ == null) { - groundingAttributions_ = java.util.Collections.emptyList(); - } else { - groundingAttributions_ = null; - groundingAttributionsBuilder_.clear(); + searchEntryPoint_ = null; + if (searchEntryPointBuilder_ != null) { + searchEntryPointBuilder_.dispose(); + searchEntryPointBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -464,7 +445,6 @@ public com.google.cloud.vertexai.api.GroundingMetadata build() { public com.google.cloud.vertexai.api.GroundingMetadata buildPartial() { com.google.cloud.vertexai.api.GroundingMetadata result = new com.google.cloud.vertexai.api.GroundingMetadata(this); - buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -472,25 +452,19 @@ public com.google.cloud.vertexai.api.GroundingMetadata buildPartial() { return result; } - private void buildPartialRepeatedFields( - com.google.cloud.vertexai.api.GroundingMetadata result) { - if (groundingAttributionsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - groundingAttributions_ = java.util.Collections.unmodifiableList(groundingAttributions_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.groundingAttributions_ = groundingAttributions_; - } else { - result.groundingAttributions_ = groundingAttributionsBuilder_.build(); - } - } - private void buildPartial0(com.google.cloud.vertexai.api.GroundingMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { webSearchQueries_.makeImmutable(); result.webSearchQueries_ = webSearchQueries_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.searchEntryPoint_ = + searchEntryPointBuilder_ == null ? searchEntryPoint_ : searchEntryPointBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -549,32 +523,8 @@ public Builder mergeFrom(com.google.cloud.vertexai.api.GroundingMetadata other) } onChanged(); } - if (groundingAttributionsBuilder_ == null) { - if (!other.groundingAttributions_.isEmpty()) { - if (groundingAttributions_.isEmpty()) { - groundingAttributions_ = other.groundingAttributions_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureGroundingAttributionsIsMutable(); - groundingAttributions_.addAll(other.groundingAttributions_); - } - onChanged(); - } - } else { - if (!other.groundingAttributions_.isEmpty()) { - if (groundingAttributionsBuilder_.isEmpty()) { - groundingAttributionsBuilder_.dispose(); - groundingAttributionsBuilder_ = null; - groundingAttributions_ = other.groundingAttributions_; - bitField0_ = (bitField0_ & ~0x00000002); - groundingAttributionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getGroundingAttributionsFieldBuilder() - : null; - } else { - groundingAttributionsBuilder_.addAllMessages(other.groundingAttributions_); - } - } + if (other.hasSearchEntryPoint()) { + mergeSearchEntryPoint(other.getSearchEntryPoint()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -609,20 +559,13 @@ public Builder mergeFrom( webSearchQueries_.add(s); break; } // case 10 - case 18: + case 34: { - com.google.cloud.vertexai.api.GroundingAttribution m = - input.readMessage( - com.google.cloud.vertexai.api.GroundingAttribution.parser(), - extensionRegistry); - if (groundingAttributionsBuilder_ == null) { - ensureGroundingAttributionsIsMutable(); - groundingAttributions_.add(m); - } else { - groundingAttributionsBuilder_.addMessage(m); - } + input.readMessage( + getSearchEntryPointFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; break; - } // case 18 + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -825,260 +768,123 @@ public Builder addWebSearchQueriesBytes(com.google.protobuf.ByteString value) { return this; } - private java.util.List - groundingAttributions_ = java.util.Collections.emptyList(); - - private void ensureGroundingAttributionsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - groundingAttributions_ = - new java.util.ArrayList( - groundingAttributions_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vertexai.api.GroundingAttribution, - com.google.cloud.vertexai.api.GroundingAttribution.Builder, - com.google.cloud.vertexai.api.GroundingAttributionOrBuilder> - groundingAttributionsBuilder_; - + private com.google.cloud.vertexai.api.SearchEntryPoint searchEntryPoint_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vertexai.api.SearchEntryPoint, + com.google.cloud.vertexai.api.SearchEntryPoint.Builder, + com.google.cloud.vertexai.api.SearchEntryPointOrBuilder> + searchEntryPointBuilder_; /** * * *
-     * Optional. List of grounding attributions.
+     * Optional. Google search entry for the following-up web searches.
      * 
* * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.cloud.vertexai.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL]; * - */ - public java.util.List - getGroundingAttributionsList() { - if (groundingAttributionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(groundingAttributions_); - } else { - return groundingAttributionsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Optional. List of grounding attributions.
-     * 
* - * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * @return Whether the searchEntryPoint field is set. */ - public int getGroundingAttributionsCount() { - if (groundingAttributionsBuilder_ == null) { - return groundingAttributions_.size(); - } else { - return groundingAttributionsBuilder_.getCount(); - } + public boolean hasSearchEntryPoint() { + return ((bitField0_ & 0x00000002) != 0); } /** * * *
-     * Optional. List of grounding attributions.
+     * Optional. Google search entry for the following-up web searches.
      * 
* * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.cloud.vertexai.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL]; * - */ - public com.google.cloud.vertexai.api.GroundingAttribution getGroundingAttributions(int index) { - if (groundingAttributionsBuilder_ == null) { - return groundingAttributions_.get(index); - } else { - return groundingAttributionsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Optional. List of grounding attributions.
-     * 
- * - * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setGroundingAttributions( - int index, com.google.cloud.vertexai.api.GroundingAttribution value) { - if (groundingAttributionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGroundingAttributionsIsMutable(); - groundingAttributions_.set(index, value); - onChanged(); - } else { - groundingAttributionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Optional. List of grounding attributions.
-     * 
- * - * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setGroundingAttributions( - int index, com.google.cloud.vertexai.api.GroundingAttribution.Builder builderForValue) { - if (groundingAttributionsBuilder_ == null) { - ensureGroundingAttributionsIsMutable(); - groundingAttributions_.set(index, builderForValue.build()); - onChanged(); - } else { - groundingAttributionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** * - * - *
-     * Optional. List of grounding attributions.
-     * 
- * - * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * @return The searchEntryPoint. */ - public Builder addGroundingAttributions( - com.google.cloud.vertexai.api.GroundingAttribution value) { - if (groundingAttributionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGroundingAttributionsIsMutable(); - groundingAttributions_.add(value); - onChanged(); + public com.google.cloud.vertexai.api.SearchEntryPoint getSearchEntryPoint() { + if (searchEntryPointBuilder_ == null) { + return searchEntryPoint_ == null + ? com.google.cloud.vertexai.api.SearchEntryPoint.getDefaultInstance() + : searchEntryPoint_; } else { - groundingAttributionsBuilder_.addMessage(value); + return searchEntryPointBuilder_.getMessage(); } - return this; } /** * * *
-     * Optional. List of grounding attributions.
+     * Optional. Google search entry for the following-up web searches.
      * 
* * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.cloud.vertexai.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addGroundingAttributions( - int index, com.google.cloud.vertexai.api.GroundingAttribution value) { - if (groundingAttributionsBuilder_ == null) { + public Builder setSearchEntryPoint(com.google.cloud.vertexai.api.SearchEntryPoint value) { + if (searchEntryPointBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureGroundingAttributionsIsMutable(); - groundingAttributions_.add(index, value); - onChanged(); + searchEntryPoint_ = value; } else { - groundingAttributionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Optional. List of grounding attributions.
-     * 
- * - * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addGroundingAttributions( - com.google.cloud.vertexai.api.GroundingAttribution.Builder builderForValue) { - if (groundingAttributionsBuilder_ == null) { - ensureGroundingAttributionsIsMutable(); - groundingAttributions_.add(builderForValue.build()); - onChanged(); - } else { - groundingAttributionsBuilder_.addMessage(builderForValue.build()); + searchEntryPointBuilder_.setMessage(value); } + bitField0_ |= 0x00000002; + onChanged(); return this; } /** * * *
-     * Optional. List of grounding attributions.
+     * Optional. Google search entry for the following-up web searches.
      * 
* * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.cloud.vertexai.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addGroundingAttributions( - int index, com.google.cloud.vertexai.api.GroundingAttribution.Builder builderForValue) { - if (groundingAttributionsBuilder_ == null) { - ensureGroundingAttributionsIsMutable(); - groundingAttributions_.add(index, builderForValue.build()); - onChanged(); + public Builder setSearchEntryPoint( + com.google.cloud.vertexai.api.SearchEntryPoint.Builder builderForValue) { + if (searchEntryPointBuilder_ == null) { + searchEntryPoint_ = builderForValue.build(); } else { - groundingAttributionsBuilder_.addMessage(index, builderForValue.build()); + searchEntryPointBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00000002; + onChanged(); return this; } /** * * *
-     * Optional. List of grounding attributions.
+     * Optional. Google search entry for the following-up web searches.
      * 
* * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.cloud.vertexai.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addAllGroundingAttributions( - java.lang.Iterable values) { - if (groundingAttributionsBuilder_ == null) { - ensureGroundingAttributionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groundingAttributions_); - onChanged(); + public Builder mergeSearchEntryPoint(com.google.cloud.vertexai.api.SearchEntryPoint value) { + if (searchEntryPointBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && searchEntryPoint_ != null + && searchEntryPoint_ + != com.google.cloud.vertexai.api.SearchEntryPoint.getDefaultInstance()) { + getSearchEntryPointBuilder().mergeFrom(value); + } else { + searchEntryPoint_ = value; + } } else { - groundingAttributionsBuilder_.addAllMessages(values); + searchEntryPointBuilder_.mergeFrom(value); } - return this; - } - /** - * - * - *
-     * Optional. List of grounding attributions.
-     * 
- * - * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearGroundingAttributions() { - if (groundingAttributionsBuilder_ == null) { - groundingAttributions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + if (searchEntryPoint_ != null) { + bitField0_ |= 0x00000002; onChanged(); - } else { - groundingAttributionsBuilder_.clear(); } return this; } @@ -1086,143 +892,85 @@ public Builder clearGroundingAttributions() { * * *
-     * Optional. List of grounding attributions.
+     * Optional. Google search entry for the following-up web searches.
      * 
* * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.cloud.vertexai.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder removeGroundingAttributions(int index) { - if (groundingAttributionsBuilder_ == null) { - ensureGroundingAttributionsIsMutable(); - groundingAttributions_.remove(index); - onChanged(); - } else { - groundingAttributionsBuilder_.remove(index); + public Builder clearSearchEntryPoint() { + bitField0_ = (bitField0_ & ~0x00000002); + searchEntryPoint_ = null; + if (searchEntryPointBuilder_ != null) { + searchEntryPointBuilder_.dispose(); + searchEntryPointBuilder_ = null; } + onChanged(); return this; } /** * * *
-     * Optional. List of grounding attributions.
+     * Optional. Google search entry for the following-up web searches.
      * 
* * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.cloud.vertexai.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.vertexai.api.GroundingAttribution.Builder - getGroundingAttributionsBuilder(int index) { - return getGroundingAttributionsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Optional. List of grounding attributions.
-     * 
- * - * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.vertexai.api.GroundingAttributionOrBuilder - getGroundingAttributionsOrBuilder(int index) { - if (groundingAttributionsBuilder_ == null) { - return groundingAttributions_.get(index); - } else { - return groundingAttributionsBuilder_.getMessageOrBuilder(index); - } + public com.google.cloud.vertexai.api.SearchEntryPoint.Builder getSearchEntryPointBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getSearchEntryPointFieldBuilder().getBuilder(); } /** * * *
-     * Optional. List of grounding attributions.
+     * Optional. Google search entry for the following-up web searches.
      * 
* * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.cloud.vertexai.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public java.util.List - getGroundingAttributionsOrBuilderList() { - if (groundingAttributionsBuilder_ != null) { - return groundingAttributionsBuilder_.getMessageOrBuilderList(); + public com.google.cloud.vertexai.api.SearchEntryPointOrBuilder getSearchEntryPointOrBuilder() { + if (searchEntryPointBuilder_ != null) { + return searchEntryPointBuilder_.getMessageOrBuilder(); } else { - return java.util.Collections.unmodifiableList(groundingAttributions_); + return searchEntryPoint_ == null + ? com.google.cloud.vertexai.api.SearchEntryPoint.getDefaultInstance() + : searchEntryPoint_; } } /** * * *
-     * Optional. List of grounding attributions.
+     * Optional. Google search entry for the following-up web searches.
      * 
* * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.cloud.vertexai.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.vertexai.api.GroundingAttribution.Builder - addGroundingAttributionsBuilder() { - return getGroundingAttributionsFieldBuilder() - .addBuilder(com.google.cloud.vertexai.api.GroundingAttribution.getDefaultInstance()); - } - /** - * - * - *
-     * Optional. List of grounding attributions.
-     * 
- * - * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.vertexai.api.GroundingAttribution.Builder - addGroundingAttributionsBuilder(int index) { - return getGroundingAttributionsFieldBuilder() - .addBuilder( - index, com.google.cloud.vertexai.api.GroundingAttribution.getDefaultInstance()); - } - /** - * - * - *
-     * Optional. List of grounding attributions.
-     * 
- * - * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List - getGroundingAttributionsBuilderList() { - return getGroundingAttributionsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vertexai.api.GroundingAttribution, - com.google.cloud.vertexai.api.GroundingAttribution.Builder, - com.google.cloud.vertexai.api.GroundingAttributionOrBuilder> - getGroundingAttributionsFieldBuilder() { - if (groundingAttributionsBuilder_ == null) { - groundingAttributionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vertexai.api.GroundingAttribution, - com.google.cloud.vertexai.api.GroundingAttribution.Builder, - com.google.cloud.vertexai.api.GroundingAttributionOrBuilder>( - groundingAttributions_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - groundingAttributions_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vertexai.api.SearchEntryPoint, + com.google.cloud.vertexai.api.SearchEntryPoint.Builder, + com.google.cloud.vertexai.api.SearchEntryPointOrBuilder> + getSearchEntryPointFieldBuilder() { + if (searchEntryPointBuilder_ == null) { + searchEntryPointBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vertexai.api.SearchEntryPoint, + com.google.cloud.vertexai.api.SearchEntryPoint.Builder, + com.google.cloud.vertexai.api.SearchEntryPointOrBuilder>( + getSearchEntryPoint(), getParentForChildren(), isClean()); + searchEntryPoint_ = null; } - return groundingAttributionsBuilder_; + return searchEntryPointBuilder_; } @java.lang.Override diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GroundingMetadataOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GroundingMetadataOrBuilder.java index 5b9adc982d78..e1f581c410af 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GroundingMetadataOrBuilder.java +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GroundingMetadataOrBuilder.java @@ -79,62 +79,40 @@ public interface GroundingMetadataOrBuilder * * *
-   * Optional. List of grounding attributions.
+   * Optional. Google search entry for the following-up web searches.
    * 
* * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.cloud.vertexai.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL]; * - */ - java.util.List getGroundingAttributionsList(); - /** - * - * - *
-   * Optional. List of grounding attributions.
-   * 
* - * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * @return Whether the searchEntryPoint field is set. */ - com.google.cloud.vertexai.api.GroundingAttribution getGroundingAttributions(int index); + boolean hasSearchEntryPoint(); /** * * *
-   * Optional. List of grounding attributions.
+   * Optional. Google search entry for the following-up web searches.
    * 
* * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.cloud.vertexai.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL]; * - */ - int getGroundingAttributionsCount(); - /** - * - * - *
-   * Optional. List of grounding attributions.
-   * 
* - * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * @return The searchEntryPoint. */ - java.util.List - getGroundingAttributionsOrBuilderList(); + com.google.cloud.vertexai.api.SearchEntryPoint getSearchEntryPoint(); /** * * *
-   * Optional. List of grounding attributions.
+   * Optional. Google search entry for the following-up web searches.
    * 
* * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.cloud.vertexai.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - com.google.cloud.vertexai.api.GroundingAttributionOrBuilder getGroundingAttributionsOrBuilder( - int index); + com.google.cloud.vertexai.api.SearchEntryPointOrBuilder getSearchEntryPointOrBuilder(); } diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PredictionServiceProto.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PredictionServiceProto.java index da662d55ae58..dd04ea81c93d 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PredictionServiceProto.java +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PredictionServiceProto.java @@ -216,116 +216,132 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "otobuf.ValueB\003\340A\002\0228\n\010contents\030\004 \003(\0132!.go" + "ogle.cloud.vertexai.v1.ContentB\003\340A\002\"N\n\023C" + "ountTokensResponse\022\024\n\014total_tokens\030\001 \001(\005" - + "\022!\n\031total_billable_characters\030\002 \001(\005\"\215\003\n\026" + + "\022!\n\031total_billable_characters\030\002 \001(\005\"\315\003\n\026" + "GenerateContentRequest\022\022\n\005model\030\005 \001(\tB\003\340" + "A\002\0228\n\010contents\030\002 \003(\0132!.google.cloud.vert" + "exai.v1.ContentB\003\340A\002\022G\n\022system_instructi" + "on\030\010 \001(\0132!.google.cloud.vertexai.v1.Cont" + "entB\003\340A\001H\000\210\001\001\0222\n\005tools\030\006 \003(\0132\036.google.cl" - + "oud.vertexai.v1.ToolB\003\340A\001\022E\n\017safety_sett" - + "ings\030\003 \003(\0132\'.google.cloud.vertexai.v1.Sa" - + "fetySettingB\003\340A\001\022J\n\021generation_config\030\004 " - + "\001(\0132*.google.cloud.vertexai.v1.Generatio" - + "nConfigB\003\340A\001B\025\n\023_system_instruction\"\315\005\n\027" - + "GenerateContentResponse\022<\n\ncandidates\030\002 " - + "\003(\0132#.google.cloud.vertexai.v1.Candidate" - + "B\003\340A\003\022^\n\017prompt_feedback\030\003 \001(\0132@.google." - + "cloud.vertexai.v1.GenerateContentRespons" - + "e.PromptFeedbackB\003\340A\003\022W\n\016usage_metadata\030" - + "\004 \001(\0132?.google.cloud.vertexai.v1.Generat" - + "eContentResponse.UsageMetadata\032\322\002\n\016Promp" - + "tFeedback\022i\n\014block_reason\030\001 \001(\0162N.google" - + ".cloud.vertexai.v1.GenerateContentRespon" - + "se.PromptFeedback.BlockedReasonB\003\340A\003\022C\n\016" - + "safety_ratings\030\002 \003(\0132&.google.cloud.vert" - + "exai.v1.SafetyRatingB\003\340A\003\022!\n\024block_reaso" - + "n_message\030\003 \001(\tB\003\340A\003\"m\n\rBlockedReason\022\036\n" - + "\032BLOCKED_REASON_UNSPECIFIED\020\000\022\n\n\006SAFETY\020" - + "\001\022\t\n\005OTHER\020\002\022\r\n\tBLOCKLIST\020\003\022\026\n\022PROHIBITE" - + "D_CONTENT\020\004\032f\n\rUsageMetadata\022\032\n\022prompt_t" - + "oken_count\030\001 \001(\005\022\036\n\026candidates_token_cou" - + "nt\030\002 \001(\005\022\031\n\021total_token_count\030\003 \001(\0052\257\027\n\021" - + "PredictionService\022\220\002\n\007Predict\022(.google.c" - + "loud.vertexai.v1.PredictRequest\032).google" - + ".cloud.vertexai.v1.PredictResponse\"\257\001\332A\035" - + "endpoint,instances,parameters\202\323\344\223\002\210\001\"9/v" + + "oud.vertexai.v1.ToolB\003\340A\001\022>\n\013tool_config" + + "\030\007 \001(\0132$.google.cloud.vertexai.v1.ToolCo" + + "nfigB\003\340A\001\022E\n\017safety_settings\030\003 \003(\0132\'.goo" + + "gle.cloud.vertexai.v1.SafetySettingB\003\340A\001" + + "\022J\n\021generation_config\030\004 \001(\0132*.google.clo" + + "ud.vertexai.v1.GenerationConfigB\003\340A\001B\025\n\023" + + "_system_instruction\"\315\005\n\027GenerateContentR" + + "esponse\022<\n\ncandidates\030\002 \003(\0132#.google.clo" + + "ud.vertexai.v1.CandidateB\003\340A\003\022^\n\017prompt_" + + "feedback\030\003 \001(\0132@.google.cloud.vertexai.v" + + "1.GenerateContentResponse.PromptFeedback" + + "B\003\340A\003\022W\n\016usage_metadata\030\004 \001(\0132?.google.c" + + "loud.vertexai.v1.GenerateContentResponse" + + ".UsageMetadata\032\322\002\n\016PromptFeedback\022i\n\014blo" + + "ck_reason\030\001 \001(\0162N.google.cloud.vertexai." + + "v1.GenerateContentResponse.PromptFeedbac" + + "k.BlockedReasonB\003\340A\003\022C\n\016safety_ratings\030\002" + + " \003(\0132&.google.cloud.vertexai.v1.SafetyRa" + + "tingB\003\340A\003\022!\n\024block_reason_message\030\003 \001(\tB" + + "\003\340A\003\"m\n\rBlockedReason\022\036\n\032BLOCKED_REASON_" + + "UNSPECIFIED\020\000\022\n\n\006SAFETY\020\001\022\t\n\005OTHER\020\002\022\r\n\t" + + "BLOCKLIST\020\003\022\026\n\022PROHIBITED_CONTENT\020\004\032f\n\rU" + + "sageMetadata\022\032\n\022prompt_token_count\030\001 \001(\005" + + "\022\036\n\026candidates_token_count\030\002 \001(\005\022\031\n\021tota" + + "l_token_count\030\003 \001(\0052\346\033\n\021PredictionServic" + + "e\022\220\002\n\007Predict\022(.google.cloud.vertexai.v1" + + ".PredictRequest\032).google.cloud.vertexai." + + "v1.PredictResponse\"\257\001\332A\035endpoint,instanc" + + "es,parameters\202\323\344\223\002\210\001\"9/v1/{endpoint=proj" + + "ects/*/locations/*/endpoints/*}:predict:" + + "\001*ZH\"C/v1/{endpoint=projects/*/locations" + + "/*/publishers/*/models/*}:predict:\001*\022\374\001\n" + + "\nRawPredict\022+.google.cloud.vertexai.v1.R" + + "awPredictRequest\032\024.google.api.HttpBody\"\252" + + "\001\332A\022endpoint,http_body\202\323\344\223\002\216\001\"" - + "\"9/v1/{endpoint=projects/*/locations/*/e" - + "ndpoints/*}:explain:\001*\022\243\002\n\017GenerateConte" - + "nt\0220.google.cloud.vertexai.v1.GenerateCo" - + "ntentRequest\0321.google.cloud.vertexai.v1." - + "GenerateContentResponse\"\252\001\332A\016model,conte" - + "nts\202\323\344\223\002\222\001\">/v1/{model=projects/*/locati" - + "ons/*/endpoints/*}:generateContent:\001*ZM\"" - + "H/v1/{model=projects/*/locations/*/publi" - + "shers/*/models/*}:generateContent:\001*\022\267\002\n" - + "\025StreamGenerateContent\0220.google.cloud.ve" - + "rtexai.v1.GenerateContentRequest\0321.googl" - + "e.cloud.vertexai.v1.GenerateContentRespo" - + "nse\"\266\001\332A\016model,contents\202\323\344\223\002\236\001\"D/v1/{mod" - + "el=projects/*/locations/*/endpoints/*}:s" - + "treamGenerateContent:\001*ZS\"N/v1/{model=pr" - + "ojects/*/locations/*/publishers/*/models" - + "/*}:streamGenerateContent:\001*0\001\032M\312A\031aipla" - + "tform.googleapis.com\322A.https://www.googl" - + "eapis.com/auth/cloud-platformB\323\001\n\035com.go" - + "ogle.cloud.vertexai.apiB\026PredictionServi" - + "ceProtoP\001Z>cloud.google.com/go/aiplatfor" - + "m/apiv1/aiplatformpb;aiplatformpb\252\002\032Goog" - + "le.Cloud.AIPlatform.V1\312\002\032Google\\Cloud\\AI" - + "Platform\\V1\352\002\035Google::Cloud::AIPlatform:" - + ":V1b\006proto3" + + "*}:serverStreamingPredict:\001*ZW\"R/v1/{end" + + "point=projects/*/locations/*/publishers/" + + "*/models/*}:serverStreamingPredict:\001*0\001\022" + + "\210\001\n\023StreamingRawPredict\0224.google.cloud.v" + + "ertexai.v1.StreamingRawPredictRequest\0325." + + "google.cloud.vertexai.v1.StreamingRawPre" + + "dictResponse\"\000(\0010\001\022\326\001\n\007Explain\022(.google." + + "cloud.vertexai.v1.ExplainRequest\032).googl" + + "e.cloud.vertexai.v1.ExplainResponse\"v\332A/" + + "endpoint,instances,parameters,deployed_m" + + "odel_id\202\323\344\223\002>\"9/v1/{endpoint=projects/*/" + + "locations/*/endpoints/*}:explain:\001*\022\243\002\n\017" + + "GenerateContent\0220.google.cloud.vertexai." + + "v1.GenerateContentRequest\0321.google.cloud" + + ".vertexai.v1.GenerateContentResponse\"\252\001\332" + + "A\016model,contents\202\323\344\223\002\222\001\">/v1/{model=proj" + + "ects/*/locations/*/endpoints/*}:generate" + + "Content:\001*ZM\"H/v1/{model=projects/*/loca" + + "tions/*/publishers/*/models/*}:generateC" + + "ontent:\001*\022\267\002\n\025StreamGenerateContent\0220.go" + + "ogle.cloud.vertexai.v1.GenerateContentRe" + + "quest\0321.google.cloud.vertexai.v1.Generat" + + "eContentResponse\"\266\001\332A\016model,contents\202\323\344\223" + + "\002\236\001\"D/v1/{model=projects/*/locations/*/e" + + "ndpoints/*}:streamGenerateContent:\001*ZS\"N" + + "/v1/{model=projects/*/locations/*/publis" + + "hers/*/models/*}:streamGenerateContent:\001" + + "*0\001\032\206\001\312A\031aiplatform.googleapis.com\322Aghtt" + + "ps://www.googleapis.com/auth/cloud-platf" + + "orm,https://www.googleapis.com/auth/clou" + + "d-platform.read-onlyB\323\001\n\035com.google.clou" + + "d.vertexai.apiB\026PredictionServiceProtoP\001" + + "Z>cloud.google.com/go/aiplatform/apiv1/a" + + "iplatformpb;aiplatformpb\252\002\032Google.Cloud." + + "AIPlatform.V1\312\002\032Google\\Cloud\\AIPlatform\\" + + "V1\352\002\035Google::Cloud::AIPlatform::V1b\006prot" + + "o3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -517,6 +533,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Contents", "SystemInstruction", "Tools", + "ToolConfig", "SafetySettings", "GenerationConfig", }); diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PrivateServiceConnectConfig.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PrivateServiceConnectConfig.java new file mode 100644 index 000000000000..c0b1b5e63510 --- /dev/null +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PrivateServiceConnectConfig.java @@ -0,0 +1,831 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vertexai/v1/service_networking.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.vertexai.api; + +/** + * + * + *
+ * Represents configuration for private service connect.
+ * 
+ * + * Protobuf type {@code google.cloud.vertexai.v1.PrivateServiceConnectConfig} + */ +public final class PrivateServiceConnectConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vertexai.v1.PrivateServiceConnectConfig) + PrivateServiceConnectConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use PrivateServiceConnectConfig.newBuilder() to construct. + private PrivateServiceConnectConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PrivateServiceConnectConfig() { + projectAllowlist_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PrivateServiceConnectConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vertexai.api.ServiceNetworkingProto + .internal_static_google_cloud_vertexai_v1_PrivateServiceConnectConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vertexai.api.ServiceNetworkingProto + .internal_static_google_cloud_vertexai_v1_PrivateServiceConnectConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vertexai.api.PrivateServiceConnectConfig.class, + com.google.cloud.vertexai.api.PrivateServiceConnectConfig.Builder.class); + } + + public static final int ENABLE_PRIVATE_SERVICE_CONNECT_FIELD_NUMBER = 1; + private boolean enablePrivateServiceConnect_ = false; + /** + * + * + *
+   * Required. If true, expose the IndexEndpoint via private service connect.
+   * 
+ * + * bool enable_private_service_connect = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The enablePrivateServiceConnect. + */ + @java.lang.Override + public boolean getEnablePrivateServiceConnect() { + return enablePrivateServiceConnect_; + } + + public static final int PROJECT_ALLOWLIST_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList projectAllowlist_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * A list of Projects from which the forwarding rule will target the service
+   * attachment.
+   * 
+ * + * repeated string project_allowlist = 2; + * + * @return A list containing the projectAllowlist. + */ + public com.google.protobuf.ProtocolStringList getProjectAllowlistList() { + return projectAllowlist_; + } + /** + * + * + *
+   * A list of Projects from which the forwarding rule will target the service
+   * attachment.
+   * 
+ * + * repeated string project_allowlist = 2; + * + * @return The count of projectAllowlist. + */ + public int getProjectAllowlistCount() { + return projectAllowlist_.size(); + } + /** + * + * + *
+   * A list of Projects from which the forwarding rule will target the service
+   * attachment.
+   * 
+ * + * repeated string project_allowlist = 2; + * + * @param index The index of the element to return. + * @return The projectAllowlist at the given index. + */ + public java.lang.String getProjectAllowlist(int index) { + return projectAllowlist_.get(index); + } + /** + * + * + *
+   * A list of Projects from which the forwarding rule will target the service
+   * attachment.
+   * 
+ * + * repeated string project_allowlist = 2; + * + * @param index The index of the value to return. + * @return The bytes of the projectAllowlist at the given index. + */ + public com.google.protobuf.ByteString getProjectAllowlistBytes(int index) { + return projectAllowlist_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enablePrivateServiceConnect_ != false) { + output.writeBool(1, enablePrivateServiceConnect_); + } + for (int i = 0; i < projectAllowlist_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, projectAllowlist_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enablePrivateServiceConnect_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(1, enablePrivateServiceConnect_); + } + { + int dataSize = 0; + for (int i = 0; i < projectAllowlist_.size(); i++) { + dataSize += computeStringSizeNoTag(projectAllowlist_.getRaw(i)); + } + size += dataSize; + size += 1 * getProjectAllowlistList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vertexai.api.PrivateServiceConnectConfig)) { + return super.equals(obj); + } + com.google.cloud.vertexai.api.PrivateServiceConnectConfig other = + (com.google.cloud.vertexai.api.PrivateServiceConnectConfig) obj; + + if (getEnablePrivateServiceConnect() != other.getEnablePrivateServiceConnect()) return false; + if (!getProjectAllowlistList().equals(other.getProjectAllowlistList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLE_PRIVATE_SERVICE_CONNECT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnablePrivateServiceConnect()); + if (getProjectAllowlistCount() > 0) { + hash = (37 * hash) + PROJECT_ALLOWLIST_FIELD_NUMBER; + hash = (53 * hash) + getProjectAllowlistList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vertexai.api.PrivateServiceConnectConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vertexai.api.PrivateServiceConnectConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vertexai.api.PrivateServiceConnectConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vertexai.api.PrivateServiceConnectConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vertexai.api.PrivateServiceConnectConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vertexai.api.PrivateServiceConnectConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vertexai.api.PrivateServiceConnectConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vertexai.api.PrivateServiceConnectConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vertexai.api.PrivateServiceConnectConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vertexai.api.PrivateServiceConnectConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vertexai.api.PrivateServiceConnectConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vertexai.api.PrivateServiceConnectConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vertexai.api.PrivateServiceConnectConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Represents configuration for private service connect.
+   * 
+ * + * Protobuf type {@code google.cloud.vertexai.v1.PrivateServiceConnectConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vertexai.v1.PrivateServiceConnectConfig) + com.google.cloud.vertexai.api.PrivateServiceConnectConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vertexai.api.ServiceNetworkingProto + .internal_static_google_cloud_vertexai_v1_PrivateServiceConnectConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vertexai.api.ServiceNetworkingProto + .internal_static_google_cloud_vertexai_v1_PrivateServiceConnectConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vertexai.api.PrivateServiceConnectConfig.class, + com.google.cloud.vertexai.api.PrivateServiceConnectConfig.Builder.class); + } + + // Construct using com.google.cloud.vertexai.api.PrivateServiceConnectConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enablePrivateServiceConnect_ = false; + projectAllowlist_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vertexai.api.ServiceNetworkingProto + .internal_static_google_cloud_vertexai_v1_PrivateServiceConnectConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.vertexai.api.PrivateServiceConnectConfig getDefaultInstanceForType() { + return com.google.cloud.vertexai.api.PrivateServiceConnectConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vertexai.api.PrivateServiceConnectConfig build() { + com.google.cloud.vertexai.api.PrivateServiceConnectConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vertexai.api.PrivateServiceConnectConfig buildPartial() { + com.google.cloud.vertexai.api.PrivateServiceConnectConfig result = + new com.google.cloud.vertexai.api.PrivateServiceConnectConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vertexai.api.PrivateServiceConnectConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enablePrivateServiceConnect_ = enablePrivateServiceConnect_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + projectAllowlist_.makeImmutable(); + result.projectAllowlist_ = projectAllowlist_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vertexai.api.PrivateServiceConnectConfig) { + return mergeFrom((com.google.cloud.vertexai.api.PrivateServiceConnectConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vertexai.api.PrivateServiceConnectConfig other) { + if (other == com.google.cloud.vertexai.api.PrivateServiceConnectConfig.getDefaultInstance()) + return this; + if (other.getEnablePrivateServiceConnect() != false) { + setEnablePrivateServiceConnect(other.getEnablePrivateServiceConnect()); + } + if (!other.projectAllowlist_.isEmpty()) { + if (projectAllowlist_.isEmpty()) { + projectAllowlist_ = other.projectAllowlist_; + bitField0_ |= 0x00000002; + } else { + ensureProjectAllowlistIsMutable(); + projectAllowlist_.addAll(other.projectAllowlist_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + enablePrivateServiceConnect_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureProjectAllowlistIsMutable(); + projectAllowlist_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean enablePrivateServiceConnect_; + /** + * + * + *
+     * Required. If true, expose the IndexEndpoint via private service connect.
+     * 
+ * + * bool enable_private_service_connect = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enablePrivateServiceConnect. + */ + @java.lang.Override + public boolean getEnablePrivateServiceConnect() { + return enablePrivateServiceConnect_; + } + /** + * + * + *
+     * Required. If true, expose the IndexEndpoint via private service connect.
+     * 
+ * + * bool enable_private_service_connect = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enablePrivateServiceConnect to set. + * @return This builder for chaining. + */ + public Builder setEnablePrivateServiceConnect(boolean value) { + + enablePrivateServiceConnect_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. If true, expose the IndexEndpoint via private service connect.
+     * 
+ * + * bool enable_private_service_connect = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearEnablePrivateServiceConnect() { + bitField0_ = (bitField0_ & ~0x00000001); + enablePrivateServiceConnect_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList projectAllowlist_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureProjectAllowlistIsMutable() { + if (!projectAllowlist_.isModifiable()) { + projectAllowlist_ = new com.google.protobuf.LazyStringArrayList(projectAllowlist_); + } + bitField0_ |= 0x00000002; + } + /** + * + * + *
+     * A list of Projects from which the forwarding rule will target the service
+     * attachment.
+     * 
+ * + * repeated string project_allowlist = 2; + * + * @return A list containing the projectAllowlist. + */ + public com.google.protobuf.ProtocolStringList getProjectAllowlistList() { + projectAllowlist_.makeImmutable(); + return projectAllowlist_; + } + /** + * + * + *
+     * A list of Projects from which the forwarding rule will target the service
+     * attachment.
+     * 
+ * + * repeated string project_allowlist = 2; + * + * @return The count of projectAllowlist. + */ + public int getProjectAllowlistCount() { + return projectAllowlist_.size(); + } + /** + * + * + *
+     * A list of Projects from which the forwarding rule will target the service
+     * attachment.
+     * 
+ * + * repeated string project_allowlist = 2; + * + * @param index The index of the element to return. + * @return The projectAllowlist at the given index. + */ + public java.lang.String getProjectAllowlist(int index) { + return projectAllowlist_.get(index); + } + /** + * + * + *
+     * A list of Projects from which the forwarding rule will target the service
+     * attachment.
+     * 
+ * + * repeated string project_allowlist = 2; + * + * @param index The index of the value to return. + * @return The bytes of the projectAllowlist at the given index. + */ + public com.google.protobuf.ByteString getProjectAllowlistBytes(int index) { + return projectAllowlist_.getByteString(index); + } + /** + * + * + *
+     * A list of Projects from which the forwarding rule will target the service
+     * attachment.
+     * 
+ * + * repeated string project_allowlist = 2; + * + * @param index The index to set the value at. + * @param value The projectAllowlist to set. + * @return This builder for chaining. + */ + public Builder setProjectAllowlist(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureProjectAllowlistIsMutable(); + projectAllowlist_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A list of Projects from which the forwarding rule will target the service
+     * attachment.
+     * 
+ * + * repeated string project_allowlist = 2; + * + * @param value The projectAllowlist to add. + * @return This builder for chaining. + */ + public Builder addProjectAllowlist(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureProjectAllowlistIsMutable(); + projectAllowlist_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A list of Projects from which the forwarding rule will target the service
+     * attachment.
+     * 
+ * + * repeated string project_allowlist = 2; + * + * @param values The projectAllowlist to add. + * @return This builder for chaining. + */ + public Builder addAllProjectAllowlist(java.lang.Iterable values) { + ensureProjectAllowlistIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, projectAllowlist_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A list of Projects from which the forwarding rule will target the service
+     * attachment.
+     * 
+ * + * repeated string project_allowlist = 2; + * + * @return This builder for chaining. + */ + public Builder clearProjectAllowlist() { + projectAllowlist_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * A list of Projects from which the forwarding rule will target the service
+     * attachment.
+     * 
+ * + * repeated string project_allowlist = 2; + * + * @param value The bytes of the projectAllowlist to add. + * @return This builder for chaining. + */ + public Builder addProjectAllowlistBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureProjectAllowlistIsMutable(); + projectAllowlist_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vertexai.v1.PrivateServiceConnectConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vertexai.v1.PrivateServiceConnectConfig) + private static final com.google.cloud.vertexai.api.PrivateServiceConnectConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vertexai.api.PrivateServiceConnectConfig(); + } + + public static com.google.cloud.vertexai.api.PrivateServiceConnectConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrivateServiceConnectConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.vertexai.api.PrivateServiceConnectConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PrivateServiceConnectConfigOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PrivateServiceConnectConfigOrBuilder.java new file mode 100644 index 000000000000..a8f3f84bee0c --- /dev/null +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PrivateServiceConnectConfigOrBuilder.java @@ -0,0 +1,94 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vertexai/v1/service_networking.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.vertexai.api; + +public interface PrivateServiceConnectConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vertexai.v1.PrivateServiceConnectConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. If true, expose the IndexEndpoint via private service connect.
+   * 
+ * + * bool enable_private_service_connect = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The enablePrivateServiceConnect. + */ + boolean getEnablePrivateServiceConnect(); + + /** + * + * + *
+   * A list of Projects from which the forwarding rule will target the service
+   * attachment.
+   * 
+ * + * repeated string project_allowlist = 2; + * + * @return A list containing the projectAllowlist. + */ + java.util.List getProjectAllowlistList(); + /** + * + * + *
+   * A list of Projects from which the forwarding rule will target the service
+   * attachment.
+   * 
+ * + * repeated string project_allowlist = 2; + * + * @return The count of projectAllowlist. + */ + int getProjectAllowlistCount(); + /** + * + * + *
+   * A list of Projects from which the forwarding rule will target the service
+   * attachment.
+   * 
+ * + * repeated string project_allowlist = 2; + * + * @param index The index of the element to return. + * @return The projectAllowlist at the given index. + */ + java.lang.String getProjectAllowlist(int index); + /** + * + * + *
+   * A list of Projects from which the forwarding rule will target the service
+   * attachment.
+   * 
+ * + * repeated string project_allowlist = 2; + * + * @param index The index of the value to return. + * @return The bytes of the projectAllowlist at the given index. + */ + com.google.protobuf.ByteString getProjectAllowlistBytes(int index); +} diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PscAutomatedEndpoints.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PscAutomatedEndpoints.java new file mode 100644 index 000000000000..1209c3b492ea --- /dev/null +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PscAutomatedEndpoints.java @@ -0,0 +1,991 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vertexai/v1/service_networking.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.vertexai.api; + +/** + * + * + *
+ * PscAutomatedEndpoints defines the output of the forwarding rule
+ * automatically created by each PscAutomationConfig.
+ * 
+ * + * Protobuf type {@code google.cloud.vertexai.v1.PscAutomatedEndpoints} + */ +public final class PscAutomatedEndpoints extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vertexai.v1.PscAutomatedEndpoints) + PscAutomatedEndpointsOrBuilder { + private static final long serialVersionUID = 0L; + // Use PscAutomatedEndpoints.newBuilder() to construct. + private PscAutomatedEndpoints(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PscAutomatedEndpoints() { + projectId_ = ""; + network_ = ""; + matchAddress_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PscAutomatedEndpoints(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vertexai.api.ServiceNetworkingProto + .internal_static_google_cloud_vertexai_v1_PscAutomatedEndpoints_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vertexai.api.ServiceNetworkingProto + .internal_static_google_cloud_vertexai_v1_PscAutomatedEndpoints_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vertexai.api.PscAutomatedEndpoints.class, + com.google.cloud.vertexai.api.PscAutomatedEndpoints.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + * + * + *
+   * Corresponding project_id in pscAutomationConfigs
+   * 
+ * + * string project_id = 1; + * + * @return The projectId. + */ + @java.lang.Override + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + * + * + *
+   * Corresponding project_id in pscAutomationConfigs
+   * 
+ * + * string project_id = 1; + * + * @return The bytes for projectId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NETWORK_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object network_ = ""; + /** + * + * + *
+   * Corresponding network in pscAutomationConfigs.
+   * 
+ * + * string network = 2; + * + * @return The network. + */ + @java.lang.Override + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } + } + /** + * + * + *
+   * Corresponding network in pscAutomationConfigs.
+   * 
+ * + * string network = 2; + * + * @return The bytes for network. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MATCH_ADDRESS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object matchAddress_ = ""; + /** + * + * + *
+   * Ip Address created by the automated forwarding rule.
+   * 
+ * + * string match_address = 3; + * + * @return The matchAddress. + */ + @java.lang.Override + public java.lang.String getMatchAddress() { + java.lang.Object ref = matchAddress_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + matchAddress_ = s; + return s; + } + } + /** + * + * + *
+   * Ip Address created by the automated forwarding rule.
+   * 
+ * + * string match_address = 3; + * + * @return The bytes for matchAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMatchAddressBytes() { + java.lang.Object ref = matchAddress_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + matchAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, network_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(matchAddress_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, matchAddress_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, network_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(matchAddress_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, matchAddress_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vertexai.api.PscAutomatedEndpoints)) { + return super.equals(obj); + } + com.google.cloud.vertexai.api.PscAutomatedEndpoints other = + (com.google.cloud.vertexai.api.PscAutomatedEndpoints) obj; + + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getNetwork().equals(other.getNetwork())) return false; + if (!getMatchAddress().equals(other.getMatchAddress())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getNetwork().hashCode(); + hash = (37 * hash) + MATCH_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getMatchAddress().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vertexai.api.PscAutomatedEndpoints parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vertexai.api.PscAutomatedEndpoints parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vertexai.api.PscAutomatedEndpoints parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vertexai.api.PscAutomatedEndpoints parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vertexai.api.PscAutomatedEndpoints parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vertexai.api.PscAutomatedEndpoints parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vertexai.api.PscAutomatedEndpoints parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vertexai.api.PscAutomatedEndpoints parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vertexai.api.PscAutomatedEndpoints parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vertexai.api.PscAutomatedEndpoints parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vertexai.api.PscAutomatedEndpoints parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vertexai.api.PscAutomatedEndpoints parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.vertexai.api.PscAutomatedEndpoints prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * PscAutomatedEndpoints defines the output of the forwarding rule
+   * automatically created by each PscAutomationConfig.
+   * 
+ * + * Protobuf type {@code google.cloud.vertexai.v1.PscAutomatedEndpoints} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vertexai.v1.PscAutomatedEndpoints) + com.google.cloud.vertexai.api.PscAutomatedEndpointsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vertexai.api.ServiceNetworkingProto + .internal_static_google_cloud_vertexai_v1_PscAutomatedEndpoints_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vertexai.api.ServiceNetworkingProto + .internal_static_google_cloud_vertexai_v1_PscAutomatedEndpoints_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vertexai.api.PscAutomatedEndpoints.class, + com.google.cloud.vertexai.api.PscAutomatedEndpoints.Builder.class); + } + + // Construct using com.google.cloud.vertexai.api.PscAutomatedEndpoints.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectId_ = ""; + network_ = ""; + matchAddress_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vertexai.api.ServiceNetworkingProto + .internal_static_google_cloud_vertexai_v1_PscAutomatedEndpoints_descriptor; + } + + @java.lang.Override + public com.google.cloud.vertexai.api.PscAutomatedEndpoints getDefaultInstanceForType() { + return com.google.cloud.vertexai.api.PscAutomatedEndpoints.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vertexai.api.PscAutomatedEndpoints build() { + com.google.cloud.vertexai.api.PscAutomatedEndpoints result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vertexai.api.PscAutomatedEndpoints buildPartial() { + com.google.cloud.vertexai.api.PscAutomatedEndpoints result = + new com.google.cloud.vertexai.api.PscAutomatedEndpoints(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vertexai.api.PscAutomatedEndpoints result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.network_ = network_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.matchAddress_ = matchAddress_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vertexai.api.PscAutomatedEndpoints) { + return mergeFrom((com.google.cloud.vertexai.api.PscAutomatedEndpoints) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vertexai.api.PscAutomatedEndpoints other) { + if (other == com.google.cloud.vertexai.api.PscAutomatedEndpoints.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getNetwork().isEmpty()) { + network_ = other.network_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getMatchAddress().isEmpty()) { + matchAddress_ = other.matchAddress_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + network_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + matchAddress_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + * + * + *
+     * Corresponding project_id in pscAutomationConfigs
+     * 
+ * + * string project_id = 1; + * + * @return The projectId. + */ + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Corresponding project_id in pscAutomationConfigs
+     * 
+ * + * string project_id = 1; + * + * @return The bytes for projectId. + */ + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Corresponding project_id in pscAutomationConfigs
+     * 
+ * + * string project_id = 1; + * + * @param value The projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + projectId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Corresponding project_id in pscAutomationConfigs
+     * 
+ * + * string project_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Corresponding project_id in pscAutomationConfigs
+     * 
+ * + * string project_id = 1; + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object network_ = ""; + /** + * + * + *
+     * Corresponding network in pscAutomationConfigs.
+     * 
+ * + * string network = 2; + * + * @return The network. + */ + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Corresponding network in pscAutomationConfigs.
+     * 
+ * + * string network = 2; + * + * @return The bytes for network. + */ + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Corresponding network in pscAutomationConfigs.
+     * 
+ * + * string network = 2; + * + * @param value The network to set. + * @return This builder for chaining. + */ + public Builder setNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + network_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Corresponding network in pscAutomationConfigs.
+     * 
+ * + * string network = 2; + * + * @return This builder for chaining. + */ + public Builder clearNetwork() { + network_ = getDefaultInstance().getNetwork(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Corresponding network in pscAutomationConfigs.
+     * 
+ * + * string network = 2; + * + * @param value The bytes for network to set. + * @return This builder for chaining. + */ + public Builder setNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + network_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object matchAddress_ = ""; + /** + * + * + *
+     * Ip Address created by the automated forwarding rule.
+     * 
+ * + * string match_address = 3; + * + * @return The matchAddress. + */ + public java.lang.String getMatchAddress() { + java.lang.Object ref = matchAddress_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + matchAddress_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Ip Address created by the automated forwarding rule.
+     * 
+ * + * string match_address = 3; + * + * @return The bytes for matchAddress. + */ + public com.google.protobuf.ByteString getMatchAddressBytes() { + java.lang.Object ref = matchAddress_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + matchAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Ip Address created by the automated forwarding rule.
+     * 
+ * + * string match_address = 3; + * + * @param value The matchAddress to set. + * @return This builder for chaining. + */ + public Builder setMatchAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + matchAddress_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Ip Address created by the automated forwarding rule.
+     * 
+ * + * string match_address = 3; + * + * @return This builder for chaining. + */ + public Builder clearMatchAddress() { + matchAddress_ = getDefaultInstance().getMatchAddress(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Ip Address created by the automated forwarding rule.
+     * 
+ * + * string match_address = 3; + * + * @param value The bytes for matchAddress to set. + * @return This builder for chaining. + */ + public Builder setMatchAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + matchAddress_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vertexai.v1.PscAutomatedEndpoints) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vertexai.v1.PscAutomatedEndpoints) + private static final com.google.cloud.vertexai.api.PscAutomatedEndpoints DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vertexai.api.PscAutomatedEndpoints(); + } + + public static com.google.cloud.vertexai.api.PscAutomatedEndpoints getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PscAutomatedEndpoints parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.vertexai.api.PscAutomatedEndpoints getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PscAutomatedEndpointsOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PscAutomatedEndpointsOrBuilder.java new file mode 100644 index 000000000000..28802bfdbfc4 --- /dev/null +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PscAutomatedEndpointsOrBuilder.java @@ -0,0 +1,101 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vertexai/v1/service_networking.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.vertexai.api; + +public interface PscAutomatedEndpointsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vertexai.v1.PscAutomatedEndpoints) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Corresponding project_id in pscAutomationConfigs
+   * 
+ * + * string project_id = 1; + * + * @return The projectId. + */ + java.lang.String getProjectId(); + /** + * + * + *
+   * Corresponding project_id in pscAutomationConfigs
+   * 
+ * + * string project_id = 1; + * + * @return The bytes for projectId. + */ + com.google.protobuf.ByteString getProjectIdBytes(); + + /** + * + * + *
+   * Corresponding network in pscAutomationConfigs.
+   * 
+ * + * string network = 2; + * + * @return The network. + */ + java.lang.String getNetwork(); + /** + * + * + *
+   * Corresponding network in pscAutomationConfigs.
+   * 
+ * + * string network = 2; + * + * @return The bytes for network. + */ + com.google.protobuf.ByteString getNetworkBytes(); + + /** + * + * + *
+   * Ip Address created by the automated forwarding rule.
+   * 
+ * + * string match_address = 3; + * + * @return The matchAddress. + */ + java.lang.String getMatchAddress(); + /** + * + * + *
+   * Ip Address created by the automated forwarding rule.
+   * 
+ * + * string match_address = 3; + * + * @return The bytes for matchAddress. + */ + com.google.protobuf.ByteString getMatchAddressBytes(); +} diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Segment.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/SearchEntryPoint.java similarity index 53% rename from java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Segment.java rename to java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/SearchEntryPoint.java index d20bc1669471..a77cc90c009f 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Segment.java +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/SearchEntryPoint.java @@ -23,98 +23,117 @@ * * *
- * Segment of the content.
+ * Google search entry point.
  * 
* - * Protobuf type {@code google.cloud.vertexai.v1.Segment} + * Protobuf type {@code google.cloud.vertexai.v1.SearchEntryPoint} */ -public final class Segment extends com.google.protobuf.GeneratedMessageV3 +public final class SearchEntryPoint extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.vertexai.v1.Segment) - SegmentOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.vertexai.v1.SearchEntryPoint) + SearchEntryPointOrBuilder { private static final long serialVersionUID = 0L; - // Use Segment.newBuilder() to construct. - private Segment(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use SearchEntryPoint.newBuilder() to construct. + private SearchEntryPoint(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Segment() {} + private SearchEntryPoint() { + renderedContent_ = ""; + sdkBlob_ = com.google.protobuf.ByteString.EMPTY; + } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Segment(); + return new SearchEntryPoint(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.vertexai.api.ContentProto - .internal_static_google_cloud_vertexai_v1_Segment_descriptor; + .internal_static_google_cloud_vertexai_v1_SearchEntryPoint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.vertexai.api.ContentProto - .internal_static_google_cloud_vertexai_v1_Segment_fieldAccessorTable + .internal_static_google_cloud_vertexai_v1_SearchEntryPoint_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vertexai.api.Segment.class, - com.google.cloud.vertexai.api.Segment.Builder.class); + com.google.cloud.vertexai.api.SearchEntryPoint.class, + com.google.cloud.vertexai.api.SearchEntryPoint.Builder.class); } - public static final int PART_INDEX_FIELD_NUMBER = 1; - private int partIndex_ = 0; + public static final int RENDERED_CONTENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object renderedContent_ = ""; /** * * *
-   * Output only. The index of a Part object within its parent Content object.
+   * Optional. Web content snippet that can be embedded in a web page or an app
+   * webview.
    * 
* - * int32 part_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string rendered_content = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The partIndex. + * @return The renderedContent. */ @java.lang.Override - public int getPartIndex() { - return partIndex_; + public java.lang.String getRenderedContent() { + java.lang.Object ref = renderedContent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + renderedContent_ = s; + return s; + } } - - public static final int START_INDEX_FIELD_NUMBER = 2; - private int startIndex_ = 0; /** * * *
-   * Output only. Start index in the given Part, measured in bytes. Offset from
-   * the start of the Part, inclusive, starting at zero.
+   * Optional. Web content snippet that can be embedded in a web page or an app
+   * webview.
    * 
* - * int32 start_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string rendered_content = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The startIndex. + * @return The bytes for renderedContent. */ @java.lang.Override - public int getStartIndex() { - return startIndex_; + public com.google.protobuf.ByteString getRenderedContentBytes() { + java.lang.Object ref = renderedContent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + renderedContent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - public static final int END_INDEX_FIELD_NUMBER = 3; - private int endIndex_ = 0; + public static final int SDK_BLOB_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString sdkBlob_ = com.google.protobuf.ByteString.EMPTY; /** * * *
-   * Output only. End index in the given Part, measured in bytes. Offset from
-   * the start of the Part, exclusive, starting at zero.
+   * Optional. Base64 encoded JSON representing array of <search term, search
+   * url> tuple.
    * 
* - * int32 end_index = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * bytes sdk_blob = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The endIndex. + * @return The sdkBlob. */ @java.lang.Override - public int getEndIndex() { - return endIndex_; + public com.google.protobuf.ByteString getSdkBlob() { + return sdkBlob_; } private byte memoizedIsInitialized = -1; @@ -131,14 +150,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (partIndex_ != 0) { - output.writeInt32(1, partIndex_); - } - if (startIndex_ != 0) { - output.writeInt32(2, startIndex_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(renderedContent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, renderedContent_); } - if (endIndex_ != 0) { - output.writeInt32(3, endIndex_); + if (!sdkBlob_.isEmpty()) { + output.writeBytes(2, sdkBlob_); } getUnknownFields().writeTo(output); } @@ -149,14 +165,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (partIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, partIndex_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(renderedContent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, renderedContent_); } - if (startIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, startIndex_); - } - if (endIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, endIndex_); + if (!sdkBlob_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, sdkBlob_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -168,14 +181,14 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.cloud.vertexai.api.Segment)) { + if (!(obj instanceof com.google.cloud.vertexai.api.SearchEntryPoint)) { return super.equals(obj); } - com.google.cloud.vertexai.api.Segment other = (com.google.cloud.vertexai.api.Segment) obj; + com.google.cloud.vertexai.api.SearchEntryPoint other = + (com.google.cloud.vertexai.api.SearchEntryPoint) obj; - if (getPartIndex() != other.getPartIndex()) return false; - if (getStartIndex() != other.getStartIndex()) return false; - if (getEndIndex() != other.getEndIndex()) return false; + if (!getRenderedContent().equals(other.getRenderedContent())) return false; + if (!getSdkBlob().equals(other.getSdkBlob())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,81 +200,80 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PART_INDEX_FIELD_NUMBER; - hash = (53 * hash) + getPartIndex(); - hash = (37 * hash) + START_INDEX_FIELD_NUMBER; - hash = (53 * hash) + getStartIndex(); - hash = (37 * hash) + END_INDEX_FIELD_NUMBER; - hash = (53 * hash) + getEndIndex(); + hash = (37 * hash) + RENDERED_CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getRenderedContent().hashCode(); + hash = (37 * hash) + SDK_BLOB_FIELD_NUMBER; + hash = (53 * hash) + getSdkBlob().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vertexai.api.Segment parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vertexai.api.SearchEntryPoint parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vertexai.api.Segment parseFrom( + public static com.google.cloud.vertexai.api.SearchEntryPoint parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vertexai.api.Segment parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.vertexai.api.SearchEntryPoint parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vertexai.api.Segment parseFrom( + public static com.google.cloud.vertexai.api.SearchEntryPoint parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vertexai.api.Segment parseFrom(byte[] data) + public static com.google.cloud.vertexai.api.SearchEntryPoint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vertexai.api.Segment parseFrom( + public static com.google.cloud.vertexai.api.SearchEntryPoint parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vertexai.api.Segment parseFrom(java.io.InputStream input) + public static com.google.cloud.vertexai.api.SearchEntryPoint parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.vertexai.api.Segment parseFrom( + public static com.google.cloud.vertexai.api.SearchEntryPoint parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.vertexai.api.Segment parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { + public static com.google.cloud.vertexai.api.SearchEntryPoint parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vertexai.api.Segment parseDelimitedFrom( + public static com.google.cloud.vertexai.api.SearchEntryPoint parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.vertexai.api.Segment parseFrom( + public static com.google.cloud.vertexai.api.SearchEntryPoint parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.vertexai.api.Segment parseFrom( + public static com.google.cloud.vertexai.api.SearchEntryPoint parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -278,7 +290,7 @@ public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vertexai.api.Segment prototype) { + public static Builder newBuilder(com.google.cloud.vertexai.api.SearchEntryPoint prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -296,31 +308,31 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Segment of the content.
+   * Google search entry point.
    * 
* - * Protobuf type {@code google.cloud.vertexai.v1.Segment} + * Protobuf type {@code google.cloud.vertexai.v1.SearchEntryPoint} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.vertexai.v1.Segment) - com.google.cloud.vertexai.api.SegmentOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.vertexai.v1.SearchEntryPoint) + com.google.cloud.vertexai.api.SearchEntryPointOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.vertexai.api.ContentProto - .internal_static_google_cloud_vertexai_v1_Segment_descriptor; + .internal_static_google_cloud_vertexai_v1_SearchEntryPoint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.vertexai.api.ContentProto - .internal_static_google_cloud_vertexai_v1_Segment_fieldAccessorTable + .internal_static_google_cloud_vertexai_v1_SearchEntryPoint_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vertexai.api.Segment.class, - com.google.cloud.vertexai.api.Segment.Builder.class); + com.google.cloud.vertexai.api.SearchEntryPoint.class, + com.google.cloud.vertexai.api.SearchEntryPoint.Builder.class); } - // Construct using com.google.cloud.vertexai.api.Segment.newBuilder() + // Construct using com.google.cloud.vertexai.api.SearchEntryPoint.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @@ -331,26 +343,25 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - partIndex_ = 0; - startIndex_ = 0; - endIndex_ = 0; + renderedContent_ = ""; + sdkBlob_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.vertexai.api.ContentProto - .internal_static_google_cloud_vertexai_v1_Segment_descriptor; + .internal_static_google_cloud_vertexai_v1_SearchEntryPoint_descriptor; } @java.lang.Override - public com.google.cloud.vertexai.api.Segment getDefaultInstanceForType() { - return com.google.cloud.vertexai.api.Segment.getDefaultInstance(); + public com.google.cloud.vertexai.api.SearchEntryPoint getDefaultInstanceForType() { + return com.google.cloud.vertexai.api.SearchEntryPoint.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.vertexai.api.Segment build() { - com.google.cloud.vertexai.api.Segment result = buildPartial(); + public com.google.cloud.vertexai.api.SearchEntryPoint build() { + com.google.cloud.vertexai.api.SearchEntryPoint result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -358,9 +369,9 @@ public com.google.cloud.vertexai.api.Segment build() { } @java.lang.Override - public com.google.cloud.vertexai.api.Segment buildPartial() { - com.google.cloud.vertexai.api.Segment result = - new com.google.cloud.vertexai.api.Segment(this); + public com.google.cloud.vertexai.api.SearchEntryPoint buildPartial() { + com.google.cloud.vertexai.api.SearchEntryPoint result = + new com.google.cloud.vertexai.api.SearchEntryPoint(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -368,16 +379,13 @@ public com.google.cloud.vertexai.api.Segment buildPartial() { return result; } - private void buildPartial0(com.google.cloud.vertexai.api.Segment result) { + private void buildPartial0(com.google.cloud.vertexai.api.SearchEntryPoint result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.partIndex_ = partIndex_; + result.renderedContent_ = renderedContent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.startIndex_ = startIndex_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.endIndex_ = endIndex_; + result.sdkBlob_ = sdkBlob_; } } @@ -416,24 +424,23 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.vertexai.api.Segment) { - return mergeFrom((com.google.cloud.vertexai.api.Segment) other); + if (other instanceof com.google.cloud.vertexai.api.SearchEntryPoint) { + return mergeFrom((com.google.cloud.vertexai.api.SearchEntryPoint) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.vertexai.api.Segment other) { - if (other == com.google.cloud.vertexai.api.Segment.getDefaultInstance()) return this; - if (other.getPartIndex() != 0) { - setPartIndex(other.getPartIndex()); - } - if (other.getStartIndex() != 0) { - setStartIndex(other.getStartIndex()); + public Builder mergeFrom(com.google.cloud.vertexai.api.SearchEntryPoint other) { + if (other == com.google.cloud.vertexai.api.SearchEntryPoint.getDefaultInstance()) return this; + if (!other.getRenderedContent().isEmpty()) { + renderedContent_ = other.renderedContent_; + bitField0_ |= 0x00000001; + onChanged(); } - if (other.getEndIndex() != 0) { - setEndIndex(other.getEndIndex()); + if (other.getSdkBlob() != com.google.protobuf.ByteString.EMPTY) { + setSdkBlob(other.getSdkBlob()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -461,24 +468,18 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: + case 10: { - partIndex_ = input.readInt32(); + renderedContent_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; - } // case 8 - case 16: + } // case 10 + case 18: { - startIndex_ = input.readInt32(); + sdkBlob_ = input.readBytes(); bitField0_ |= 0x00000002; break; - } // case 16 - case 24: - { - endIndex_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 + } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -498,93 +499,90 @@ public Builder mergeFrom( private int bitField0_; - private int partIndex_; + private java.lang.Object renderedContent_ = ""; /** * * *
-     * Output only. The index of a Part object within its parent Content object.
+     * Optional. Web content snippet that can be embedded in a web page or an app
+     * webview.
      * 
* - * int32 part_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string rendered_content = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The partIndex. + * @return The renderedContent. */ - @java.lang.Override - public int getPartIndex() { - return partIndex_; + public java.lang.String getRenderedContent() { + java.lang.Object ref = renderedContent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + renderedContent_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** * * *
-     * Output only. The index of a Part object within its parent Content object.
+     * Optional. Web content snippet that can be embedded in a web page or an app
+     * webview.
      * 
* - * int32 part_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string rendered_content = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The partIndex to set. - * @return This builder for chaining. + * @return The bytes for renderedContent. */ - public Builder setPartIndex(int value) { - - partIndex_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + public com.google.protobuf.ByteString getRenderedContentBytes() { + java.lang.Object ref = renderedContent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + renderedContent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** * * *
-     * Output only. The index of a Part object within its parent Content object.
+     * Optional. Web content snippet that can be embedded in a web page or an app
+     * webview.
      * 
* - * int32 part_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string rendered_content = 1 [(.google.api.field_behavior) = OPTIONAL]; * + * @param value The renderedContent to set. * @return This builder for chaining. */ - public Builder clearPartIndex() { - bitField0_ = (bitField0_ & ~0x00000001); - partIndex_ = 0; + public Builder setRenderedContent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + renderedContent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } - - private int startIndex_; /** * * *
-     * Output only. Start index in the given Part, measured in bytes. Offset from
-     * the start of the Part, inclusive, starting at zero.
+     * Optional. Web content snippet that can be embedded in a web page or an app
+     * webview.
      * 
* - * int32 start_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The startIndex. - */ - @java.lang.Override - public int getStartIndex() { - return startIndex_; - } - /** - * - * - *
-     * Output only. Start index in the given Part, measured in bytes. Offset from
-     * the start of the Part, inclusive, starting at zero.
-     * 
+ * string rendered_content = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * int32 start_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The startIndex to set. * @return This builder for chaining. */ - public Builder setStartIndex(int value) { - - startIndex_ = value; - bitField0_ |= 0x00000002; + public Builder clearRenderedContent() { + renderedContent_ = getDefaultInstance().getRenderedContent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -592,55 +590,62 @@ public Builder setStartIndex(int value) { * * *
-     * Output only. Start index in the given Part, measured in bytes. Offset from
-     * the start of the Part, inclusive, starting at zero.
+     * Optional. Web content snippet that can be embedded in a web page or an app
+     * webview.
      * 
* - * int32 start_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string rendered_content = 1 [(.google.api.field_behavior) = OPTIONAL]; * + * @param value The bytes for renderedContent to set. * @return This builder for chaining. */ - public Builder clearStartIndex() { - bitField0_ = (bitField0_ & ~0x00000002); - startIndex_ = 0; + public Builder setRenderedContentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + renderedContent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } - private int endIndex_; + private com.google.protobuf.ByteString sdkBlob_ = com.google.protobuf.ByteString.EMPTY; /** * * *
-     * Output only. End index in the given Part, measured in bytes. Offset from
-     * the start of the Part, exclusive, starting at zero.
+     * Optional. Base64 encoded JSON representing array of <search term, search
+     * url> tuple.
      * 
* - * int32 end_index = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * bytes sdk_blob = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The endIndex. + * @return The sdkBlob. */ @java.lang.Override - public int getEndIndex() { - return endIndex_; + public com.google.protobuf.ByteString getSdkBlob() { + return sdkBlob_; } /** * * *
-     * Output only. End index in the given Part, measured in bytes. Offset from
-     * the start of the Part, exclusive, starting at zero.
+     * Optional. Base64 encoded JSON representing array of <search term, search
+     * url> tuple.
      * 
* - * int32 end_index = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * bytes sdk_blob = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The endIndex to set. + * @param value The sdkBlob to set. * @return This builder for chaining. */ - public Builder setEndIndex(int value) { - - endIndex_ = value; - bitField0_ |= 0x00000004; + public Builder setSdkBlob(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + sdkBlob_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -648,17 +653,17 @@ public Builder setEndIndex(int value) { * * *
-     * Output only. End index in the given Part, measured in bytes. Offset from
-     * the start of the Part, exclusive, starting at zero.
+     * Optional. Base64 encoded JSON representing array of <search term, search
+     * url> tuple.
      * 
* - * int32 end_index = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * bytes sdk_blob = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ - public Builder clearEndIndex() { - bitField0_ = (bitField0_ & ~0x00000004); - endIndex_ = 0; + public Builder clearSdkBlob() { + bitField0_ = (bitField0_ & ~0x00000002); + sdkBlob_ = getDefaultInstance().getSdkBlob(); onChanged(); return this; } @@ -674,24 +679,24 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vertexai.v1.Segment) + // @@protoc_insertion_point(builder_scope:google.cloud.vertexai.v1.SearchEntryPoint) } - // @@protoc_insertion_point(class_scope:google.cloud.vertexai.v1.Segment) - private static final com.google.cloud.vertexai.api.Segment DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.cloud.vertexai.v1.SearchEntryPoint) + private static final com.google.cloud.vertexai.api.SearchEntryPoint DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.vertexai.api.Segment(); + DEFAULT_INSTANCE = new com.google.cloud.vertexai.api.SearchEntryPoint(); } - public static com.google.cloud.vertexai.api.Segment getDefaultInstance() { + public static com.google.cloud.vertexai.api.SearchEntryPoint getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public Segment parsePartialFrom( + public SearchEntryPoint parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -710,17 +715,17 @@ public Segment parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.vertexai.api.Segment getDefaultInstanceForType() { + public com.google.cloud.vertexai.api.SearchEntryPoint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/SegmentOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/SearchEntryPointOrBuilder.java similarity index 55% rename from java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/SegmentOrBuilder.java rename to java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/SearchEntryPointOrBuilder.java index 173039e882f3..a152bf1239ed 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/SegmentOrBuilder.java +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/SearchEntryPointOrBuilder.java @@ -19,49 +19,49 @@ // Protobuf Java Version: 3.25.3 package com.google.cloud.vertexai.api; -public interface SegmentOrBuilder +public interface SearchEntryPointOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.vertexai.v1.Segment) + // @@protoc_insertion_point(interface_extends:google.cloud.vertexai.v1.SearchEntryPoint) com.google.protobuf.MessageOrBuilder { /** * * *
-   * Output only. The index of a Part object within its parent Content object.
+   * Optional. Web content snippet that can be embedded in a web page or an app
+   * webview.
    * 
* - * int32 part_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string rendered_content = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The partIndex. + * @return The renderedContent. */ - int getPartIndex(); - + java.lang.String getRenderedContent(); /** * * *
-   * Output only. Start index in the given Part, measured in bytes. Offset from
-   * the start of the Part, inclusive, starting at zero.
+   * Optional. Web content snippet that can be embedded in a web page or an app
+   * webview.
    * 
* - * int32 start_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string rendered_content = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The startIndex. + * @return The bytes for renderedContent. */ - int getStartIndex(); + com.google.protobuf.ByteString getRenderedContentBytes(); /** * * *
-   * Output only. End index in the given Part, measured in bytes. Offset from
-   * the start of the Part, exclusive, starting at zero.
+   * Optional. Base64 encoded JSON representing array of <search term, search
+   * url> tuple.
    * 
* - * int32 end_index = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * bytes sdk_blob = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The endIndex. + * @return The sdkBlob. */ - int getEndIndex(); + com.google.protobuf.ByteString getSdkBlob(); } diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ServiceNetworkingProto.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ServiceNetworkingProto.java new file mode 100644 index 000000000000..c9de1f304e12 --- /dev/null +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ServiceNetworkingProto.java @@ -0,0 +1,96 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vertexai/v1/service_networking.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.vertexai.api; + +public final class ServiceNetworkingProto { + private ServiceNetworkingProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vertexai_v1_PrivateServiceConnectConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vertexai_v1_PrivateServiceConnectConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vertexai_v1_PscAutomatedEndpoints_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vertexai_v1_PscAutomatedEndpoints_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n1google/cloud/vertexai/v1/service_netwo" + + "rking.proto\022\030google.cloud.vertexai.v1\032\037g" + + "oogle/api/field_behavior.proto\032\031google/a" + + "pi/resource.proto\"e\n\033PrivateServiceConne" + + "ctConfig\022+\n\036enable_private_service_conne" + + "ct\030\001 \001(\010B\003\340A\002\022\031\n\021project_allowlist\030\002 \003(\t" + + "\"S\n\025PscAutomatedEndpoints\022\022\n\nproject_id\030" + + "\001 \001(\t\022\017\n\007network\030\002 \001(\t\022\025\n\rmatch_address\030" + + "\003 \001(\tB\323\001\n\035com.google.cloud.vertexai.apiB" + + "\026ServiceNetworkingProtoP\001Z>cloud.google." + + "com/go/aiplatform/apiv1/aiplatformpb;aip" + + "latformpb\252\002\032Google.Cloud.AIPlatform.V1\312\002" + + "\032Google\\Cloud\\AIPlatform\\V1\352\002\035Google::Cl" + + "oud::AIPlatform::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_vertexai_v1_PrivateServiceConnectConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_vertexai_v1_PrivateServiceConnectConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vertexai_v1_PrivateServiceConnectConfig_descriptor, + new java.lang.String[] { + "EnablePrivateServiceConnect", "ProjectAllowlist", + }); + internal_static_google_cloud_vertexai_v1_PscAutomatedEndpoints_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_vertexai_v1_PscAutomatedEndpoints_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vertexai_v1_PscAutomatedEndpoints_descriptor, + new java.lang.String[] { + "ProjectId", "Network", "MatchAddress", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ToolConfig.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ToolConfig.java new file mode 100644 index 000000000000..644a235bd9c0 --- /dev/null +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ToolConfig.java @@ -0,0 +1,755 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vertexai/v1/tool.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.vertexai.api; + +/** + * + * + *
+ * Tool config. This config is shared for all tools provided in the request.
+ * 
+ * + * Protobuf type {@code google.cloud.vertexai.v1.ToolConfig} + */ +public final class ToolConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vertexai.v1.ToolConfig) + ToolConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ToolConfig.newBuilder() to construct. + private ToolConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ToolConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ToolConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vertexai.api.ToolProto + .internal_static_google_cloud_vertexai_v1_ToolConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vertexai.api.ToolProto + .internal_static_google_cloud_vertexai_v1_ToolConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vertexai.api.ToolConfig.class, + com.google.cloud.vertexai.api.ToolConfig.Builder.class); + } + + private int bitField0_; + public static final int FUNCTION_CALLING_CONFIG_FIELD_NUMBER = 1; + private com.google.cloud.vertexai.api.FunctionCallingConfig functionCallingConfig_; + /** + * + * + *
+   * Optional. Function calling config.
+   * 
+ * + * + * .google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the functionCallingConfig field is set. + */ + @java.lang.Override + public boolean hasFunctionCallingConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Optional. Function calling config.
+   * 
+ * + * + * .google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The functionCallingConfig. + */ + @java.lang.Override + public com.google.cloud.vertexai.api.FunctionCallingConfig getFunctionCallingConfig() { + return functionCallingConfig_ == null + ? com.google.cloud.vertexai.api.FunctionCallingConfig.getDefaultInstance() + : functionCallingConfig_; + } + /** + * + * + *
+   * Optional. Function calling config.
+   * 
+ * + * + * .google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.vertexai.api.FunctionCallingConfigOrBuilder + getFunctionCallingConfigOrBuilder() { + return functionCallingConfig_ == null + ? com.google.cloud.vertexai.api.FunctionCallingConfig.getDefaultInstance() + : functionCallingConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getFunctionCallingConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFunctionCallingConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vertexai.api.ToolConfig)) { + return super.equals(obj); + } + com.google.cloud.vertexai.api.ToolConfig other = (com.google.cloud.vertexai.api.ToolConfig) obj; + + if (hasFunctionCallingConfig() != other.hasFunctionCallingConfig()) return false; + if (hasFunctionCallingConfig()) { + if (!getFunctionCallingConfig().equals(other.getFunctionCallingConfig())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasFunctionCallingConfig()) { + hash = (37 * hash) + FUNCTION_CALLING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getFunctionCallingConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vertexai.api.ToolConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vertexai.api.ToolConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vertexai.api.ToolConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vertexai.api.ToolConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vertexai.api.ToolConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vertexai.api.ToolConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vertexai.api.ToolConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vertexai.api.ToolConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vertexai.api.ToolConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vertexai.api.ToolConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vertexai.api.ToolConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vertexai.api.ToolConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.vertexai.api.ToolConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Tool config. This config is shared for all tools provided in the request.
+   * 
+ * + * Protobuf type {@code google.cloud.vertexai.v1.ToolConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vertexai.v1.ToolConfig) + com.google.cloud.vertexai.api.ToolConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vertexai.api.ToolProto + .internal_static_google_cloud_vertexai_v1_ToolConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vertexai.api.ToolProto + .internal_static_google_cloud_vertexai_v1_ToolConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vertexai.api.ToolConfig.class, + com.google.cloud.vertexai.api.ToolConfig.Builder.class); + } + + // Construct using com.google.cloud.vertexai.api.ToolConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getFunctionCallingConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + functionCallingConfig_ = null; + if (functionCallingConfigBuilder_ != null) { + functionCallingConfigBuilder_.dispose(); + functionCallingConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vertexai.api.ToolProto + .internal_static_google_cloud_vertexai_v1_ToolConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.vertexai.api.ToolConfig getDefaultInstanceForType() { + return com.google.cloud.vertexai.api.ToolConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vertexai.api.ToolConfig build() { + com.google.cloud.vertexai.api.ToolConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vertexai.api.ToolConfig buildPartial() { + com.google.cloud.vertexai.api.ToolConfig result = + new com.google.cloud.vertexai.api.ToolConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vertexai.api.ToolConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.functionCallingConfig_ = + functionCallingConfigBuilder_ == null + ? functionCallingConfig_ + : functionCallingConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vertexai.api.ToolConfig) { + return mergeFrom((com.google.cloud.vertexai.api.ToolConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vertexai.api.ToolConfig other) { + if (other == com.google.cloud.vertexai.api.ToolConfig.getDefaultInstance()) return this; + if (other.hasFunctionCallingConfig()) { + mergeFunctionCallingConfig(other.getFunctionCallingConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getFunctionCallingConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.vertexai.api.FunctionCallingConfig functionCallingConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vertexai.api.FunctionCallingConfig, + com.google.cloud.vertexai.api.FunctionCallingConfig.Builder, + com.google.cloud.vertexai.api.FunctionCallingConfigOrBuilder> + functionCallingConfigBuilder_; + /** + * + * + *
+     * Optional. Function calling config.
+     * 
+ * + * + * .google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the functionCallingConfig field is set. + */ + public boolean hasFunctionCallingConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Optional. Function calling config.
+     * 
+ * + * + * .google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The functionCallingConfig. + */ + public com.google.cloud.vertexai.api.FunctionCallingConfig getFunctionCallingConfig() { + if (functionCallingConfigBuilder_ == null) { + return functionCallingConfig_ == null + ? com.google.cloud.vertexai.api.FunctionCallingConfig.getDefaultInstance() + : functionCallingConfig_; + } else { + return functionCallingConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Function calling config.
+     * 
+ * + * + * .google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFunctionCallingConfig( + com.google.cloud.vertexai.api.FunctionCallingConfig value) { + if (functionCallingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + functionCallingConfig_ = value; + } else { + functionCallingConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Function calling config.
+     * 
+ * + * + * .google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFunctionCallingConfig( + com.google.cloud.vertexai.api.FunctionCallingConfig.Builder builderForValue) { + if (functionCallingConfigBuilder_ == null) { + functionCallingConfig_ = builderForValue.build(); + } else { + functionCallingConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Function calling config.
+     * 
+ * + * + * .google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeFunctionCallingConfig( + com.google.cloud.vertexai.api.FunctionCallingConfig value) { + if (functionCallingConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && functionCallingConfig_ != null + && functionCallingConfig_ + != com.google.cloud.vertexai.api.FunctionCallingConfig.getDefaultInstance()) { + getFunctionCallingConfigBuilder().mergeFrom(value); + } else { + functionCallingConfig_ = value; + } + } else { + functionCallingConfigBuilder_.mergeFrom(value); + } + if (functionCallingConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Function calling config.
+     * 
+ * + * + * .google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearFunctionCallingConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + functionCallingConfig_ = null; + if (functionCallingConfigBuilder_ != null) { + functionCallingConfigBuilder_.dispose(); + functionCallingConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Function calling config.
+     * 
+ * + * + * .google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vertexai.api.FunctionCallingConfig.Builder + getFunctionCallingConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getFunctionCallingConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Function calling config.
+     * 
+ * + * + * .google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vertexai.api.FunctionCallingConfigOrBuilder + getFunctionCallingConfigOrBuilder() { + if (functionCallingConfigBuilder_ != null) { + return functionCallingConfigBuilder_.getMessageOrBuilder(); + } else { + return functionCallingConfig_ == null + ? com.google.cloud.vertexai.api.FunctionCallingConfig.getDefaultInstance() + : functionCallingConfig_; + } + } + /** + * + * + *
+     * Optional. Function calling config.
+     * 
+ * + * + * .google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vertexai.api.FunctionCallingConfig, + com.google.cloud.vertexai.api.FunctionCallingConfig.Builder, + com.google.cloud.vertexai.api.FunctionCallingConfigOrBuilder> + getFunctionCallingConfigFieldBuilder() { + if (functionCallingConfigBuilder_ == null) { + functionCallingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vertexai.api.FunctionCallingConfig, + com.google.cloud.vertexai.api.FunctionCallingConfig.Builder, + com.google.cloud.vertexai.api.FunctionCallingConfigOrBuilder>( + getFunctionCallingConfig(), getParentForChildren(), isClean()); + functionCallingConfig_ = null; + } + return functionCallingConfigBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vertexai.v1.ToolConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vertexai.v1.ToolConfig) + private static final com.google.cloud.vertexai.api.ToolConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vertexai.api.ToolConfig(); + } + + public static com.google.cloud.vertexai.api.ToolConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ToolConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.vertexai.api.ToolConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ToolConfigOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ToolConfigOrBuilder.java new file mode 100644 index 000000000000..71bf48b0f7ac --- /dev/null +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ToolConfigOrBuilder.java @@ -0,0 +1,67 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vertexai/v1/tool.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.vertexai.api; + +public interface ToolConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vertexai.v1.ToolConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Function calling config.
+   * 
+ * + * + * .google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the functionCallingConfig field is set. + */ + boolean hasFunctionCallingConfig(); + /** + * + * + *
+   * Optional. Function calling config.
+   * 
+ * + * + * .google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The functionCallingConfig. + */ + com.google.cloud.vertexai.api.FunctionCallingConfig getFunctionCallingConfig(); + /** + * + * + *
+   * Optional. Function calling config.
+   * 
+ * + * + * .google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.vertexai.api.FunctionCallingConfigOrBuilder getFunctionCallingConfigOrBuilder(); +} diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ToolProto.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ToolProto.java index 293b2d585de2..c977e34d9fe9 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ToolProto.java +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ToolProto.java @@ -56,6 +56,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_vertexai_v1_GoogleSearchRetrieval_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_vertexai_v1_GoogleSearchRetrieval_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vertexai_v1_ToolConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vertexai_v1_ToolConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vertexai_v1_FunctionCallingConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vertexai_v1_FunctionCallingConfig_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -87,14 +95,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\002 \001(\0132(.google.cloud.vertexai.v1.VertexA" + "ISearchH\000\022 \n\023disable_attribution\030\003 \001(\010B\003" + "\340A\001B\010\n\006source\"(\n\016VertexAISearch\022\026\n\tdatas" - + "tore\030\001 \001(\tB\003\340A\002\"9\n\025GoogleSearchRetrieval" - + "\022 \n\023disable_attribution\030\001 \001(\010B\003\340A\001B\306\001\n\035c" - + "om.google.cloud.vertexai.apiB\tToolProtoP" - + "\001Z>cloud.google.com/go/aiplatform/apiv1/" - + "aiplatformpb;aiplatformpb\252\002\032Google.Cloud" - + ".AIPlatform.V1\312\002\032Google\\Cloud\\AIPlatform" - + "\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006pro" - + "to3" + + "tore\030\001 \001(\tB\003\340A\002\"\027\n\025GoogleSearchRetrieval" + + "\"c\n\nToolConfig\022U\n\027function_calling_confi" + + "g\030\001 \001(\0132/.google.cloud.vertexai.v1.Funct" + + "ionCallingConfigB\003\340A\001\"\300\001\n\025FunctionCallin" + + "gConfig\022G\n\004mode\030\001 \001(\01624.google.cloud.ver" + + "texai.v1.FunctionCallingConfig.ModeB\003\340A\001" + + "\022#\n\026allowed_function_names\030\002 \003(\tB\003\340A\001\"9\n" + + "\004Mode\022\024\n\020MODE_UNSPECIFIED\020\000\022\010\n\004AUTO\020\001\022\007\n" + + "\003ANY\020\002\022\010\n\004NONE\020\003B\306\001\n\035com.google.cloud.ve" + + "rtexai.apiB\tToolProtoP\001Z>cloud.google.co" + + "m/go/aiplatform/apiv1/aiplatformpb;aipla" + + "tformpb\252\002\032Google.Cloud.AIPlatform.V1\312\002\032G" + + "oogle\\Cloud\\AIPlatform\\V1\352\002\035Google::Clou" + + "d::AIPlatform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -158,8 +172,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_vertexai_v1_GoogleSearchRetrieval_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vertexai_v1_GoogleSearchRetrieval_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_vertexai_v1_ToolConfig_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_vertexai_v1_ToolConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vertexai_v1_ToolConfig_descriptor, + new java.lang.String[] { + "FunctionCallingConfig", + }); + internal_static_google_cloud_vertexai_v1_FunctionCallingConfig_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_vertexai_v1_FunctionCallingConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vertexai_v1_FunctionCallingConfig_descriptor, new java.lang.String[] { - "DisableAttribution", + "Mode", "AllowedFunctionNames", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/accelerator_type.proto b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/accelerator_type.proto index 716d8ea6a98d..73faab61141a 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/accelerator_type.proto +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/accelerator_type.proto @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -64,4 +64,7 @@ enum AcceleratorType { // TPU v4. TPU_V4_POD = 10; + + // TPU v5. + TPU_V5_LITEPOD = 12; } diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/content.proto b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/content.proto index f7bdb7f30dd7..4e0eddd4fa46 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/content.proto +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/content.proto @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -17,6 +17,7 @@ syntax = "proto3"; package google.cloud.vertexai.v1; import "google/api/field_behavior.proto"; +import "google/cloud/vertexai/v1/openapi.proto"; import "google/cloud/vertexai/v1/tool.proto"; import "google/protobuf/duration.proto"; import "google/type/date.proto"; @@ -168,6 +169,15 @@ message GenerationConfig { // otherwise the behavior is undefined. // This is a preview feature. string response_mime_type = 13 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The `Schema` object allows the definition of input and output + // data types. These types can be objects, but also primitives and arrays. + // Represents a select subset of an [OpenAPI 3.0 schema + // object](https://spec.openapis.org/oas/v3.0.3#schema). + // If set, a compatible response_mime_type must also be set. + // Compatible mimetypes: + // `application/json`: Schema for JSON response. + optional Schema response_schema = 16 [(google.api.field_behavior) = OPTIONAL]; } // Safety settings. @@ -368,54 +378,24 @@ message Candidate { [(google.api.field_behavior) = OUTPUT_ONLY]; } -// Segment of the content. -message Segment { - // Output only. The index of a Part object within its parent Content object. - int32 part_index = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Start index in the given Part, measured in bytes. Offset from - // the start of the Part, inclusive, starting at zero. - int32 start_index = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. End index in the given Part, measured in bytes. Offset from - // the start of the Part, exclusive, starting at zero. - int32 end_index = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Grounding attribution. -message GroundingAttribution { - // Attribution from the web. - message Web { - // Output only. URI reference of the attribution. - string uri = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Title of the attribution. - string title = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - oneof reference { - // Optional. Attribution from the web. - Web web = 3 [(google.api.field_behavior) = OPTIONAL]; - } - - // Output only. Segment of the content this attribution belongs to. - Segment segment = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Optional. Output only. Confidence score of the attribution. Ranges from 0 - // to 1. 1 is the most confident. - optional float confidence_score = 2 [ - (google.api.field_behavior) = OPTIONAL, - (google.api.field_behavior) = OUTPUT_ONLY - ]; -} - // Metadata returned to client when grounding is enabled. message GroundingMetadata { // Optional. Web search queries for the following-up web search. repeated string web_search_queries = 1 [(google.api.field_behavior) = OPTIONAL]; - // Optional. List of grounding attributions. - repeated GroundingAttribution grounding_attributions = 2 + // Optional. Google search entry for the following-up web searches. + optional SearchEntryPoint search_entry_point = 4 [(google.api.field_behavior) = OPTIONAL]; } + +// Google search entry point. +message SearchEntryPoint { + // Optional. Web content snippet that can be embedded in a web page or an app + // webview. + string rendered_content = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Base64 encoded JSON representing array of tuple. + bytes sdk_blob = 2 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/encryption_spec.proto b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/encryption_spec.proto index 68dbf3b1bc6d..4df41173b2c8 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/encryption_spec.proto +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/encryption_spec.proto @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/endpoint.proto b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/endpoint.proto index e7a0597eca13..943b37396437 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/endpoint.proto +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/endpoint.proto @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,6 +22,7 @@ import "google/cloud/vertexai/v1/encryption_spec.proto"; import "google/cloud/vertexai/v1/explanation.proto"; import "google/cloud/vertexai/v1/io.proto"; import "google/cloud/vertexai/v1/machine_resources.proto"; +import "google/cloud/vertexai/v1/service_networking.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; @@ -126,6 +127,14 @@ message Endpoint { // can be set. bool enable_private_service_connect = 17 [deprecated = true]; + // Optional. Configuration for private service connect. + // + // [network][google.cloud.aiplatform.v1.Endpoint.network] and + // [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config] + // are mutually exclusive. + PrivateServiceConnectConfig private_service_connect_config = 21 + [(google.api.field_behavior) = OPTIONAL]; + // Output only. Resource name of the Model Monitoring job associated with this // Endpoint if monitoring is enabled by // [JobService.CreateModelDeploymentMonitoringJob][google.cloud.aiplatform.v1.JobService.CreateModelDeploymentMonitoringJob]. diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/endpoint_service.proto b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/endpoint_service.proto index 6894955e26f4..7a7ed47e04b2 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/endpoint_service.proto +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/endpoint_service.proto @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/explanation.proto b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/explanation.proto index 5a4cb09c1f6f..fc648393cf7a 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/explanation.proto +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/explanation.proto @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/explanation_metadata.proto b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/explanation_metadata.proto index 25a4e9004de5..b67696632dcd 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/explanation_metadata.proto +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/explanation_metadata.proto @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/io.proto b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/io.proto index 055c83a2fe35..53cd5b924981 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/io.proto +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/io.proto @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/llm_utility_service.proto b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/llm_utility_service.proto index 8fc85854fe94..12c86c0ba9e3 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/llm_utility_service.proto +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/llm_utility_service.proto @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/machine_resources.proto b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/machine_resources.proto index a410c60d9fb1..751a96a952cf 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/machine_resources.proto +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/machine_resources.proto @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/openapi.proto b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/openapi.proto index 2d2109fdd648..03be784ce8ad 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/openapi.proto +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/openapi.proto @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/operation.proto b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/operation.proto index 66683c2c9b34..ee20d6786225 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/operation.proto +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/operation.proto @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/prediction_service.proto b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/prediction_service.proto index 97bd9e856726..bdc2d2458352 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/prediction_service.proto +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/prediction_service.proto @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -39,7 +39,8 @@ option ruby_package = "Google::Cloud::AIPlatform::V1"; service PredictionService { option (google.api.default_host) = "aiplatform.googleapis.com"; option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/cloud-platform.read-only"; // Perform an online prediction. rpc Predict(PredictRequest) returns (PredictResponse) { @@ -97,6 +98,10 @@ service PredictionService { option (google.api.http) = { post: "/v1/{endpoint=projects/*/locations/*/endpoints/*}:directPredict" body: "*" + additional_bindings { + post: "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:directPredict" + body: "*" + } }; } @@ -107,18 +112,40 @@ service PredictionService { option (google.api.http) = { post: "/v1/{endpoint=projects/*/locations/*/endpoints/*}:directRawPredict" body: "*" + additional_bindings { + post: "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:directRawPredict" + body: "*" + } }; } // Perform a streaming online prediction request to a gRPC model server for // Vertex first-party products and frameworks. rpc StreamDirectPredict(stream StreamDirectPredictRequest) - returns (stream StreamDirectPredictResponse) {} + returns (stream StreamDirectPredictResponse) { + option (google.api.http) = { + post: "/v1/{endpoint=projects/*/locations/*/endpoints/*}:streamDirectPredict" + body: "*" + additional_bindings { + post: "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:streamDirectPredict" + body: "*" + } + }; + } // Perform a streaming online prediction request to a gRPC model server for // custom containers. rpc StreamDirectRawPredict(stream StreamDirectRawPredictRequest) - returns (stream StreamDirectRawPredictResponse) {} + returns (stream StreamDirectRawPredictResponse) { + option (google.api.http) = { + post: "/v1/{endpoint=projects/*/locations/*/endpoints/*}:streamDirectRawPredict" + body: "*" + additional_bindings { + post: "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:streamDirectRawPredict" + body: "*" + } + }; + } // Perform a streaming online prediction request for Vertex first-party // products and frameworks. @@ -662,6 +689,10 @@ message GenerateContentRequest { // knowledge and scope of the model. repeated Tool tools = 6 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Tool config. This config is shared for all tools provided in the + // request. + ToolConfig tool_config = 7 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Per request settings for blocking unsafe content. // Enforced on GenerateContentResponse.candidates. repeated SafetySetting safety_settings = 3 diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/service_networking.proto b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/service_networking.proto new file mode 100644 index 000000000000..0c78d568241e --- /dev/null +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/service_networking.proto @@ -0,0 +1,52 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.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. + +syntax = "proto3"; + +package google.cloud.vertexai.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Cloud.AIPlatform.V1"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; +option java_multiple_files = true; +option java_outer_classname = "ServiceNetworkingProto"; +option java_package = "com.google.cloud.vertexai.api"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; + +// Represents configuration for private service connect. +message PrivateServiceConnectConfig { + // Required. If true, expose the IndexEndpoint via private service connect. + bool enable_private_service_connect = 1 + [(google.api.field_behavior) = REQUIRED]; + + // A list of Projects from which the forwarding rule will target the service + // attachment. + repeated string project_allowlist = 2; +} + +// PscAutomatedEndpoints defines the output of the forwarding rule +// automatically created by each PscAutomationConfig. +message PscAutomatedEndpoints { + // Corresponding project_id in pscAutomationConfigs + string project_id = 1; + + // Corresponding network in pscAutomationConfigs. + string network = 2; + + // Ip Address created by the automated forwarding rule. + string match_address = 3; +} diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/tool.proto b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/tool.proto index d0e7466e981e..ebe5d40dd3e3 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/tool.proto +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/tool.proto @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -121,6 +121,7 @@ message FunctionResponse { // Defines a retrieval tool that model can call to access external knowledge. message Retrieval { + // The source of the retrieval. oneof source { // Set to use data source powered by Vertex AI Search. VertexAISearch vertex_ai_search = 2; @@ -142,9 +143,43 @@ message VertexAISearch { } // Tool to retrieve public web data for grounding, powered by Google. -message GoogleSearchRetrieval { - // Optional. Disable using the result from this tool in detecting grounding - // attribution. This does not affect how the result is given to the model for - // generation. - bool disable_attribution = 1 [(google.api.field_behavior) = OPTIONAL]; +message GoogleSearchRetrieval {} + +// Tool config. This config is shared for all tools provided in the request. +message ToolConfig { + // Optional. Function calling config. + FunctionCallingConfig function_calling_config = 1 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Function calling config. +message FunctionCallingConfig { + // Function calling mode. + enum Mode { + // Unspecified function calling mode. This value should not be used. + MODE_UNSPECIFIED = 0; + + // Default model behavior, model decides to predict either a function call + // or a natural language repspose. + AUTO = 1; + + // Model is constrained to always predicting a function call only. + // If "allowed_function_names" are set, the predicted function call will be + // limited to any one of "allowed_function_names", else the predicted + // function call will be any one of the provided "function_declarations". + ANY = 2; + + // Model will not predict any function call. Model behavior is same as when + // not passing any function declarations. + NONE = 3; + } + + // Optional. Function calling mode. + Mode mode = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Function names to call. Only set when the Mode is ANY. Function + // names should match [FunctionDeclaration.name]. With mode set to ANY, model + // will predict a function call from the set of function names provided. + repeated string allowed_function_names = 2 + [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/types.proto b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/types.proto index fc5f3b8c48df..43fa83ae78f1 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/types.proto +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/types.proto @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. From 76f0396763743cf6e2ff23300d11942d4966466c Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 10 Jun 2024 10:43:22 -0400 Subject: [PATCH 04/33] chore(main): release 1.40.0-SNAPSHOT (#10943) * chore(main): release 1.40.0-SNAPSHOT * chore(main): release 1.40.0-SNAPSHOT * chore(main): release 1.40.0-SNAPSHOT * chore(main): release 1.40.0-SNAPSHOT * chore(main): release 1.40.0-SNAPSHOT * chore(main): release 1.40.0-SNAPSHOT * chore(main): release 1.40.0-SNAPSHOT * chore(main): release 1.40.0-SNAPSHOT * chore(main): release 1.40.0-SNAPSHOT * chore(main): release 1.40.0-SNAPSHOT * chore(main): release 1.40.0-SNAPSHOT * chore(main): release 1.40.0-SNAPSHOT * chore(main): release 1.40.0-SNAPSHOT * chore(main): release 1.40.0-SNAPSHOT --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- gapic-libraries-bom/pom.xml | 358 ++-- google-cloud-jar-parent/pom.xml | 4 +- google-cloud-pom-parent/pom.xml | 2 +- .../google-cloud-accessapproval-bom/pom.xml | 10 +- .../google-cloud-accessapproval/pom.xml | 4 +- .../pom.xml | 4 +- java-accessapproval/pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 12 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-accesscontextmanager/pom.xml | 12 +- .../pom.xml | 4 +- .../pom.xml | 6 +- java-admanager/ad-manager-bom/pom.xml | 8 +- java-admanager/ad-manager/pom.xml | 4 +- java-admanager/pom.xml | 8 +- java-admanager/proto-ad-manager-v1/pom.xml | 4 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-advisorynotifications/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-aiplatform-bom/pom.xml | 14 +- .../google-cloud-aiplatform/pom.xml | 4 +- .../grpc-google-cloud-aiplatform-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-aiplatform/pom.xml | 14 +- .../proto-google-cloud-aiplatform-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 12 +- .../google-cloud-alloydb-connectors/pom.xml | 4 +- java-alloydb-connectors/pom.xml | 12 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-alloydb/google-cloud-alloydb-bom/pom.xml | 18 +- java-alloydb/google-cloud-alloydb/pom.xml | 4 +- .../grpc-google-cloud-alloydb-v1/pom.xml | 4 +- .../grpc-google-cloud-alloydb-v1alpha/pom.xml | 4 +- .../grpc-google-cloud-alloydb-v1beta/pom.xml | 4 +- java-alloydb/pom.xml | 18 +- .../proto-google-cloud-alloydb-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-alloydb-v1beta/pom.xml | 4 +- .../google-analytics-admin-bom/pom.xml | 14 +- .../google-analytics-admin/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-analytics-admin/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../google-analytics-data-bom/pom.xml | 14 +- .../google-analytics-data/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-analytics-data-v1beta/pom.xml | 4 +- java-analytics-data/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-analyticshub-bom/pom.xml | 10 +- .../google-cloud-analyticshub/pom.xml | 4 +- .../grpc-google-cloud-analyticshub-v1/pom.xml | 4 +- java-analyticshub/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-api-gateway-bom/pom.xml | 10 +- .../google-cloud-api-gateway/pom.xml | 4 +- .../grpc-google-cloud-api-gateway-v1/pom.xml | 4 +- java-api-gateway/pom.xml | 10 +- .../proto-google-cloud-api-gateway-v1/pom.xml | 4 +- .../google-cloud-apigee-connect-bom/pom.xml | 10 +- .../google-cloud-apigee-connect/pom.xml | 4 +- .../pom.xml | 4 +- java-apigee-connect/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-apigee-registry-bom/pom.xml | 10 +- .../google-cloud-apigee-registry/pom.xml | 4 +- .../pom.xml | 4 +- java-apigee-registry/pom.xml | 10 +- .../pom.xml | 4 +- java-apikeys/google-cloud-apikeys-bom/pom.xml | 10 +- java-apikeys/google-cloud-apikeys/pom.xml | 4 +- .../grpc-google-cloud-apikeys-v2/pom.xml | 4 +- java-apikeys/pom.xml | 10 +- .../proto-google-cloud-apikeys-v2/pom.xml | 4 +- .../google-cloud-appengine-admin-bom/pom.xml | 10 +- .../google-cloud-appengine-admin/pom.xml | 4 +- .../pom.xml | 4 +- java-appengine-admin/pom.xml | 10 +- .../pom.xml | 4 +- java-apphub/google-cloud-apphub-bom/pom.xml | 10 +- java-apphub/google-cloud-apphub/pom.xml | 4 +- .../grpc-google-cloud-apphub-v1/pom.xml | 4 +- java-apphub/pom.xml | 10 +- .../proto-google-cloud-apphub-v1/pom.xml | 4 +- .../google-area120-tables-bom/pom.xml | 10 +- .../google-area120-tables/pom.xml | 4 +- .../pom.xml | 4 +- java-area120-tables/pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 14 +- .../google-cloud-artifact-registry/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-artifact-registry/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-asset/google-cloud-asset-bom/pom.xml | 26 +- java-asset/google-cloud-asset/pom.xml | 4 +- java-asset/grpc-google-cloud-asset-v1/pom.xml | 4 +- .../grpc-google-cloud-asset-v1p1beta1/pom.xml | 4 +- .../grpc-google-cloud-asset-v1p2beta1/pom.xml | 4 +- .../grpc-google-cloud-asset-v1p5beta1/pom.xml | 4 +- .../grpc-google-cloud-asset-v1p7beta1/pom.xml | 4 +- java-asset/pom.xml | 34 +- .../proto-google-cloud-asset-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 14 +- .../google-cloud-assured-workloads/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-assured-workloads/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-automl/google-cloud-automl-bom/pom.xml | 14 +- java-automl/google-cloud-automl/pom.xml | 4 +- .../grpc-google-cloud-automl-v1/pom.xml | 4 +- .../grpc-google-cloud-automl-v1beta1/pom.xml | 4 +- java-automl/pom.xml | 14 +- .../proto-google-cloud-automl-v1/pom.xml | 4 +- .../proto-google-cloud-automl-v1beta1/pom.xml | 4 +- .../google-cloud-backupdr-bom/pom.xml | 10 +- java-backupdr/google-cloud-backupdr/pom.xml | 4 +- .../grpc-google-cloud-backupdr-v1/pom.xml | 4 +- java-backupdr/pom.xml | 10 +- .../proto-google-cloud-backupdr-v1/pom.xml | 4 +- .../pom.xml | 10 +- .../google-cloud-bare-metal-solution/pom.xml | 4 +- .../pom.xml | 4 +- java-bare-metal-solution/pom.xml | 10 +- .../pom.xml | 4 +- java-batch/google-cloud-batch-bom/pom.xml | 14 +- java-batch/google-cloud-batch/pom.xml | 4 +- java-batch/grpc-google-cloud-batch-v1/pom.xml | 4 +- .../grpc-google-cloud-batch-v1alpha/pom.xml | 4 +- java-batch/pom.xml | 14 +- .../proto-google-cloud-batch-v1/pom.xml | 4 +- .../proto-google-cloud-batch-v1alpha/pom.xml | 4 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-beyondcorp-appconnections/pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-beyondcorp-appconnectors/pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-beyondcorp-appgateways/pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-beyondcorp-clientgateways/pom.xml | 10 +- .../pom.xml | 4 +- java-biglake/google-cloud-biglake-bom/pom.xml | 14 +- java-biglake/google-cloud-biglake/pom.xml | 4 +- .../grpc-google-cloud-biglake-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-biglake/pom.xml | 14 +- .../proto-google-cloud-biglake-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-bigquery-data-exchange/pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 14 +- .../google-cloud-bigqueryconnection/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-bigqueryconnection/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 14 +- .../google-cloud-bigquerydatapolicy/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-bigquerydatapolicy/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../google-cloud-bigquerydatatransfer/pom.xml | 4 +- .../pom.xml | 4 +- java-bigquerydatatransfer/pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 14 +- .../google-cloud-bigquerymigration/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-bigquerymigration/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../google-cloud-bigqueryreservation/pom.xml | 4 +- .../pom.xml | 4 +- java-bigqueryreservation/pom.xml | 10 +- .../pom.xml | 4 +- java-billing/google-cloud-billing-bom/pom.xml | 10 +- java-billing/google-cloud-billing/pom.xml | 4 +- .../grpc-google-cloud-billing-v1/pom.xml | 4 +- java-billing/pom.xml | 10 +- .../proto-google-cloud-billing-v1/pom.xml | 4 +- .../google-cloud-billingbudgets-bom/pom.xml | 14 +- .../google-cloud-billingbudgets/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-billingbudgets/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 14 +- .../google-cloud-binary-authorization/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-binary-authorization/pom.xml | 16 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../google-cloud-certificate-manager/pom.xml | 4 +- .../pom.xml | 4 +- java-certificate-manager/pom.xml | 10 +- .../pom.xml | 4 +- java-channel/google-cloud-channel-bom/pom.xml | 10 +- java-channel/google-cloud-channel/pom.xml | 4 +- .../grpc-google-cloud-channel-v1/pom.xml | 4 +- java-channel/pom.xml | 10 +- .../proto-google-cloud-channel-v1/pom.xml | 4 +- java-chat/google-cloud-chat-bom/pom.xml | 10 +- java-chat/google-cloud-chat/pom.xml | 4 +- java-chat/grpc-google-cloud-chat-v1/pom.xml | 4 +- java-chat/pom.xml | 10 +- java-chat/proto-google-cloud-chat-v1/pom.xml | 4 +- .../google-cloud-build-bom/pom.xml | 14 +- java-cloudbuild/google-cloud-build/pom.xml | 4 +- .../grpc-google-cloud-build-v1/pom.xml | 4 +- .../grpc-google-cloud-build-v2/pom.xml | 4 +- java-cloudbuild/pom.xml | 14 +- .../proto-google-cloud-build-v1/pom.xml | 4 +- .../proto-google-cloud-build-v2/pom.xml | 4 +- .../pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-cloudcommerceconsumerprocurement/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 14 +- .../google-cloud-cloudcontrolspartner/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-cloudcontrolspartner/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-cloudquotas-bom/pom.xml | 10 +- .../google-cloud-cloudquotas/pom.xml | 4 +- .../grpc-google-cloud-cloudquotas-v1/pom.xml | 4 +- java-cloudquotas/pom.xml | 10 +- .../proto-google-cloud-cloudquotas-v1/pom.xml | 4 +- .../google-cloud-cloudsupport-bom/pom.xml | 10 +- .../google-cloud-cloudsupport/pom.xml | 4 +- .../grpc-google-cloud-cloudsupport-v2/pom.xml | 4 +- java-cloudsupport/pom.xml | 10 +- .../pom.xml | 4 +- java-compute/google-cloud-compute-bom/pom.xml | 8 +- java-compute/google-cloud-compute/pom.xml | 4 +- java-compute/pom.xml | 8 +- .../proto-google-cloud-compute-v1/pom.xml | 4 +- .../pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-confidentialcomputing/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-contact-center-insights/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-container-bom/pom.xml | 14 +- java-container/google-cloud-container/pom.xml | 4 +- .../grpc-google-cloud-container-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-container/pom.xml | 14 +- .../proto-google-cloud-container-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 14 +- .../google-cloud-containeranalysis/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-containeranalysis/pom.xml | 16 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-contentwarehouse-bom/pom.xml | 10 +- .../google-cloud-contentwarehouse/pom.xml | 4 +- .../pom.xml | 4 +- java-contentwarehouse/pom.xml | 12 +- .../pom.xml | 4 +- .../google-cloud-data-fusion-bom/pom.xml | 14 +- .../google-cloud-data-fusion/pom.xml | 4 +- .../grpc-google-cloud-data-fusion-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-data-fusion/pom.xml | 14 +- .../proto-google-cloud-data-fusion-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-datacatalog-bom/pom.xml | 14 +- .../google-cloud-datacatalog/pom.xml | 4 +- .../grpc-google-cloud-datacatalog-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-datacatalog/pom.xml | 14 +- .../proto-google-cloud-datacatalog-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-dataflow-bom/pom.xml | 10 +- java-dataflow/google-cloud-dataflow/pom.xml | 4 +- .../pom.xml | 4 +- java-dataflow/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-dataform-bom/pom.xml | 14 +- java-dataform/google-cloud-dataform/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-dataform/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-datalabeling-bom/pom.xml | 10 +- .../google-cloud-datalabeling/pom.xml | 4 +- .../pom.xml | 4 +- java-datalabeling/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-datalineage-bom/pom.xml | 10 +- .../google-cloud-datalineage/pom.xml | 4 +- .../grpc-google-cloud-datalineage-v1/pom.xml | 4 +- java-datalineage/pom.xml | 10 +- .../proto-google-cloud-datalineage-v1/pom.xml | 4 +- .../google-cloud-dataplex-bom/pom.xml | 10 +- java-dataplex/google-cloud-dataplex/pom.xml | 4 +- .../grpc-google-cloud-dataplex-v1/pom.xml | 4 +- java-dataplex/pom.xml | 10 +- .../proto-google-cloud-dataplex-v1/pom.xml | 4 +- .../pom.xml | 18 +- .../google-cloud-dataproc-metastore/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-dataproc-metastore/pom.xml | 18 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-dataproc-bom/pom.xml | 10 +- java-dataproc/google-cloud-dataproc/pom.xml | 4 +- .../grpc-google-cloud-dataproc-v1/pom.xml | 4 +- java-dataproc/pom.xml | 10 +- .../proto-google-cloud-dataproc-v1/pom.xml | 4 +- .../google-cloud-datastream-bom/pom.xml | 14 +- .../google-cloud-datastream/pom.xml | 4 +- .../grpc-google-cloud-datastream-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-datastream/pom.xml | 14 +- .../proto-google-cloud-datastream-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-debugger-client-bom/pom.xml | 12 +- .../google-cloud-debugger-client/pom.xml | 4 +- .../pom.xml | 4 +- java-debugger-client/pom.xml | 12 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-deploy/google-cloud-deploy-bom/pom.xml | 10 +- java-deploy/google-cloud-deploy/pom.xml | 4 +- .../grpc-google-cloud-deploy-v1/pom.xml | 4 +- java-deploy/pom.xml | 10 +- .../proto-google-cloud-deploy-v1/pom.xml | 4 +- .../google-cloud-developerconnect-bom/pom.xml | 10 +- .../google-cloud-developerconnect/pom.xml | 4 +- .../pom.xml | 4 +- java-developerconnect/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-dialogflow-cx-bom/pom.xml | 14 +- .../google-cloud-dialogflow-cx/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-dialogflow-cx/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-dialogflow-bom/pom.xml | 14 +- .../google-cloud-dialogflow/pom.xml | 4 +- .../grpc-google-cloud-dialogflow-v2/pom.xml | 4 +- .../pom.xml | 4 +- java-dialogflow/pom.xml | 14 +- .../proto-google-cloud-dialogflow-v2/pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-discoveryengine-bom/pom.xml | 18 +- .../google-cloud-discoveryengine/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-discoveryengine/pom.xml | 18 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../google-cloud-distributedcloudedge/pom.xml | 4 +- .../pom.xml | 4 +- java-distributedcloudedge/pom.xml | 10 +- .../pom.xml | 4 +- java-dlp/google-cloud-dlp-bom/pom.xml | 10 +- java-dlp/google-cloud-dlp/pom.xml | 4 +- java-dlp/grpc-google-cloud-dlp-v2/pom.xml | 4 +- java-dlp/pom.xml | 10 +- java-dlp/proto-google-cloud-dlp-v2/pom.xml | 4 +- java-dms/google-cloud-dms-bom/pom.xml | 10 +- java-dms/google-cloud-dms/pom.xml | 4 +- java-dms/grpc-google-cloud-dms-v1/pom.xml | 4 +- java-dms/pom.xml | 10 +- java-dms/proto-google-cloud-dms-v1/pom.xml | 4 +- java-dns/pom.xml | 4 +- .../google-cloud-document-ai-bom/pom.xml | 22 +- .../google-cloud-document-ai/pom.xml | 4 +- .../grpc-google-cloud-document-ai-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-document-ai/pom.xml | 22 +- .../proto-google-cloud-document-ai-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-domains/google-cloud-domains-bom/pom.xml | 18 +- java-domains/google-cloud-domains/pom.xml | 4 +- .../grpc-google-cloud-domains-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-domains-v1beta1/pom.xml | 4 +- java-domains/pom.xml | 18 +- .../proto-google-cloud-domains-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-edgenetwork-bom/pom.xml | 10 +- .../google-cloud-edgenetwork/pom.xml | 4 +- .../grpc-google-cloud-edgenetwork-v1/pom.xml | 4 +- java-edgenetwork/pom.xml | 10 +- .../proto-google-cloud-edgenetwork-v1/pom.xml | 4 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-enterpriseknowledgegraph/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-errorreporting-bom/pom.xml | 10 +- .../google-cloud-errorreporting/pom.xml | 4 +- .../pom.xml | 4 +- java-errorreporting/pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../google-cloud-essential-contacts/pom.xml | 4 +- .../pom.xml | 4 +- java-essential-contacts/pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../google-cloud-eventarc-publishing/pom.xml | 4 +- .../pom.xml | 4 +- java-eventarc-publishing/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-eventarc-bom/pom.xml | 10 +- java-eventarc/google-cloud-eventarc/pom.xml | 4 +- .../grpc-google-cloud-eventarc-v1/pom.xml | 4 +- java-eventarc/pom.xml | 10 +- .../proto-google-cloud-eventarc-v1/pom.xml | 4 +- .../google-cloud-filestore-bom/pom.xml | 14 +- java-filestore/google-cloud-filestore/pom.xml | 4 +- .../grpc-google-cloud-filestore-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-filestore/pom.xml | 14 +- .../proto-google-cloud-filestore-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-functions-bom/pom.xml | 22 +- java-functions/google-cloud-functions/pom.xml | 4 +- .../grpc-google-cloud-functions-v1/pom.xml | 4 +- .../grpc-google-cloud-functions-v2/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-functions/pom.xml | 22 +- .../proto-google-cloud-functions-v1/pom.xml | 4 +- .../proto-google-cloud-functions-v2/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-gke-backup-bom/pom.xml | 10 +- .../google-cloud-gke-backup/pom.xml | 4 +- .../grpc-google-cloud-gke-backup-v1/pom.xml | 4 +- java-gke-backup/pom.xml | 10 +- .../proto-google-cloud-gke-backup-v1/pom.xml | 4 +- .../pom.xml | 10 +- .../google-cloud-gke-connect-gateway/pom.xml | 4 +- .../pom.xml | 4 +- java-gke-connect-gateway/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-gke-multi-cloud-bom/pom.xml | 10 +- .../google-cloud-gke-multi-cloud/pom.xml | 4 +- .../pom.xml | 4 +- java-gke-multi-cloud/pom.xml | 10 +- .../pom.xml | 4 +- java-gkehub/google-cloud-gkehub-bom/pom.xml | 22 +- java-gkehub/google-cloud-gkehub/pom.xml | 4 +- .../grpc-google-cloud-gkehub-v1/pom.xml | 4 +- .../grpc-google-cloud-gkehub-v1alpha/pom.xml | 4 +- .../grpc-google-cloud-gkehub-v1beta/pom.xml | 4 +- .../grpc-google-cloud-gkehub-v1beta1/pom.xml | 4 +- java-gkehub/pom.xml | 22 +- .../proto-google-cloud-gkehub-v1/pom.xml | 4 +- .../proto-google-cloud-gkehub-v1alpha/pom.xml | 4 +- .../proto-google-cloud-gkehub-v1beta/pom.xml | 4 +- .../proto-google-cloud-gkehub-v1beta1/pom.xml | 4 +- java-grafeas/pom.xml | 4 +- .../google-cloud-gsuite-addons-bom/pom.xml | 12 +- .../google-cloud-gsuite-addons/pom.xml | 4 +- .../pom.xml | 4 +- java-gsuite-addons/pom.xml | 12 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-iam-admin/google-iam-admin-bom/pom.xml | 10 +- java-iam-admin/google-iam-admin/pom.xml | 4 +- .../grpc-google-iam-admin-v1/pom.xml | 4 +- java-iam-admin/pom.xml | 10 +- .../proto-google-iam-admin-v1/pom.xml | 4 +- java-iam/google-iam-policy-bom/pom.xml | 6 +- java-iam/google-iam-policy/pom.xml | 4 +- java-iam/pom.xml | 4 +- .../google-cloud-iamcredentials-bom/pom.xml | 10 +- .../google-cloud-iamcredentials/pom.xml | 4 +- .../pom.xml | 4 +- java-iamcredentials/pom.xml | 10 +- .../pom.xml | 4 +- java-iap/google-cloud-iap-bom/pom.xml | 10 +- java-iap/google-cloud-iap/pom.xml | 4 +- java-iap/grpc-google-cloud-iap-v1/pom.xml | 4 +- java-iap/pom.xml | 10 +- java-iap/proto-google-cloud-iap-v1/pom.xml | 4 +- java-ids/google-cloud-ids-bom/pom.xml | 10 +- java-ids/google-cloud-ids/pom.xml | 4 +- java-ids/grpc-google-cloud-ids-v1/pom.xml | 4 +- java-ids/pom.xml | 10 +- java-ids/proto-google-cloud-ids-v1/pom.xml | 4 +- .../google-cloud-infra-manager-bom/pom.xml | 10 +- .../google-cloud-infra-manager/pom.xml | 4 +- .../pom.xml | 4 +- java-infra-manager/pom.xml | 10 +- .../pom.xml | 4 +- java-iot/google-cloud-iot-bom/pom.xml | 10 +- java-iot/google-cloud-iot/pom.xml | 4 +- java-iot/grpc-google-cloud-iot-v1/pom.xml | 4 +- java-iot/pom.xml | 10 +- java-iot/proto-google-cloud-iot-v1/pom.xml | 4 +- java-kms/google-cloud-kms-bom/pom.xml | 10 +- java-kms/google-cloud-kms/pom.xml | 4 +- java-kms/grpc-google-cloud-kms-v1/pom.xml | 4 +- java-kms/pom.xml | 12 +- java-kms/proto-google-cloud-kms-v1/pom.xml | 4 +- .../google-cloud-kmsinventory-bom/pom.xml | 10 +- .../google-cloud-kmsinventory/pom.xml | 4 +- .../grpc-google-cloud-kmsinventory-v1/pom.xml | 4 +- java-kmsinventory/pom.xml | 12 +- .../pom.xml | 4 +- .../google-cloud-language-bom/pom.xml | 18 +- java-language/google-cloud-language/pom.xml | 4 +- .../grpc-google-cloud-language-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-language-v2/pom.xml | 4 +- java-language/pom.xml | 18 +- .../proto-google-cloud-language-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-language-v2/pom.xml | 4 +- .../google-cloud-life-sciences-bom/pom.xml | 10 +- .../google-cloud-life-sciences/pom.xml | 4 +- .../pom.xml | 4 +- java-life-sciences/pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../google-cloud-managed-identities/pom.xml | 4 +- .../pom.xml | 4 +- java-managed-identities/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-managedkafka-bom/pom.xml | 10 +- .../google-cloud-managedkafka/pom.xml | 4 +- .../grpc-google-cloud-managedkafka-v1/pom.xml | 4 +- java-managedkafka/pom.xml | 10 +- .../pom.xml | 4 +- .../google-maps-addressvalidation-bom/pom.xml | 10 +- .../google-maps-addressvalidation/pom.xml | 4 +- .../pom.xml | 4 +- java-maps-addressvalidation/pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../google-maps-mapsplatformdatasets/pom.xml | 4 +- .../pom.xml | 4 +- java-maps-mapsplatformdatasets/pom.xml | 10 +- .../pom.xml | 4 +- .../google-maps-places-bom/pom.xml | 10 +- java-maps-places/google-maps-places/pom.xml | 4 +- .../grpc-google-maps-places-v1/pom.xml | 4 +- java-maps-places/pom.xml | 10 +- .../proto-google-maps-places-v1/pom.xml | 4 +- .../google-maps-routeoptimization-bom/pom.xml | 10 +- .../google-maps-routeoptimization/pom.xml | 4 +- .../pom.xml | 4 +- java-maps-routeoptimization/pom.xml | 10 +- .../pom.xml | 4 +- .../google-maps-routing-bom/pom.xml | 10 +- java-maps-routing/google-maps-routing/pom.xml | 4 +- .../grpc-google-maps-routing-v2/pom.xml | 4 +- java-maps-routing/pom.xml | 10 +- .../proto-google-maps-routing-v2/pom.xml | 4 +- java-maps-solar/google-maps-solar-bom/pom.xml | 10 +- java-maps-solar/google-maps-solar/pom.xml | 4 +- .../grpc-google-maps-solar-v1/pom.xml | 4 +- java-maps-solar/pom.xml | 10 +- .../proto-google-maps-solar-v1/pom.xml | 4 +- .../google-cloud-mediatranslation-bom/pom.xml | 10 +- .../google-cloud-mediatranslation/pom.xml | 4 +- .../pom.xml | 4 +- java-mediatranslation/pom.xml | 10 +- .../pom.xml | 4 +- java-meet/google-cloud-meet-bom/pom.xml | 14 +- java-meet/google-cloud-meet/pom.xml | 4 +- java-meet/grpc-google-cloud-meet-v2/pom.xml | 4 +- .../grpc-google-cloud-meet-v2beta/pom.xml | 4 +- java-meet/pom.xml | 14 +- java-meet/proto-google-cloud-meet-v2/pom.xml | 4 +- .../proto-google-cloud-meet-v2beta/pom.xml | 4 +- .../google-cloud-memcache-bom/pom.xml | 14 +- java-memcache/google-cloud-memcache/pom.xml | 4 +- .../grpc-google-cloud-memcache-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-memcache/pom.xml | 14 +- .../proto-google-cloud-memcache-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-migrationcenter-bom/pom.xml | 10 +- .../google-cloud-migrationcenter/pom.xml | 4 +- .../pom.xml | 4 +- java-migrationcenter/pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../google-cloud-monitoring-dashboard/pom.xml | 4 +- .../pom.xml | 4 +- java-monitoring-dashboards/pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-monitoring-metricsscope/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-monitoring-bom/pom.xml | 10 +- .../google-cloud-monitoring/pom.xml | 4 +- .../grpc-google-cloud-monitoring-v3/pom.xml | 4 +- java-monitoring/pom.xml | 10 +- .../proto-google-cloud-monitoring-v3/pom.xml | 4 +- java-netapp/google-cloud-netapp-bom/pom.xml | 10 +- java-netapp/google-cloud-netapp/pom.xml | 4 +- .../grpc-google-cloud-netapp-v1/pom.xml | 4 +- java-netapp/pom.xml | 10 +- .../proto-google-cloud-netapp-v1/pom.xml | 4 +- .../pom.xml | 14 +- .../google-cloud-network-management/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-network-management/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-network-security-bom/pom.xml | 14 +- .../google-cloud-network-security/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-network-security/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 14 +- .../google-cloud-networkconnectivity/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-networkconnectivity/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-networkservices-bom/pom.xml | 10 +- .../google-cloud-networkservices/pom.xml | 4 +- .../pom.xml | 4 +- java-networkservices/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-notebooks-bom/pom.xml | 18 +- java-notebooks/google-cloud-notebooks/pom.xml | 4 +- .../grpc-google-cloud-notebooks-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-notebooks-v2/pom.xml | 4 +- java-notebooks/pom.xml | 18 +- .../proto-google-cloud-notebooks-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-notebooks-v2/pom.xml | 4 +- java-notification/pom.xml | 4 +- .../google-cloud-optimization-bom/pom.xml | 10 +- .../google-cloud-optimization/pom.xml | 4 +- .../grpc-google-cloud-optimization-v1/pom.xml | 4 +- java-optimization/pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-orchestration-airflow/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-orgpolicy-bom/pom.xml | 12 +- java-orgpolicy/google-cloud-orgpolicy/pom.xml | 4 +- .../grpc-google-cloud-orgpolicy-v2/pom.xml | 4 +- java-orgpolicy/pom.xml | 12 +- .../proto-google-cloud-orgpolicy-v1/pom.xml | 4 +- .../proto-google-cloud-orgpolicy-v2/pom.xml | 4 +- .../google-cloud-os-config-bom/pom.xml | 18 +- java-os-config/google-cloud-os-config/pom.xml | 4 +- .../grpc-google-cloud-os-config-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-os-config/pom.xml | 18 +- .../proto-google-cloud-os-config-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-os-login-bom/pom.xml | 10 +- java-os-login/google-cloud-os-login/pom.xml | 4 +- .../grpc-google-cloud-os-login-v1/pom.xml | 4 +- java-os-login/pom.xml | 10 +- .../proto-google-cloud-os-login-v1/pom.xml | 4 +- .../google-cloud-parallelstore-bom/pom.xml | 10 +- .../google-cloud-parallelstore/pom.xml | 4 +- .../pom.xml | 4 +- java-parallelstore/pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../google-cloud-phishingprotection/pom.xml | 4 +- .../pom.xml | 4 +- java-phishingprotection/pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-policy-troubleshooter/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-policysimulator-bom/pom.xml | 10 +- .../google-cloud-policysimulator/pom.xml | 4 +- .../pom.xml | 4 +- java-policysimulator/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-private-catalog-bom/pom.xml | 10 +- .../google-cloud-private-catalog/pom.xml | 4 +- .../pom.xml | 4 +- java-private-catalog/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-profiler-bom/pom.xml | 10 +- java-profiler/google-cloud-profiler/pom.xml | 4 +- .../grpc-google-cloud-profiler-v2/pom.xml | 4 +- java-profiler/pom.xml | 10 +- .../proto-google-cloud-profiler-v2/pom.xml | 4 +- .../google-cloud-publicca-bom/pom.xml | 14 +- java-publicca/google-cloud-publicca/pom.xml | 4 +- .../grpc-google-cloud-publicca-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-publicca/pom.xml | 14 +- .../proto-google-cloud-publicca-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-rapidmigrationassessment/pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 14 +- .../google-cloud-recaptchaenterprise/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-recaptchaenterprise/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../google-cloud-recommendations-ai/pom.xml | 4 +- .../pom.xml | 4 +- java-recommendations-ai/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-recommender-bom/pom.xml | 14 +- .../google-cloud-recommender/pom.xml | 4 +- .../grpc-google-cloud-recommender-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-recommender/pom.xml | 14 +- .../proto-google-cloud-recommender-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-redis-cluster-bom/pom.xml | 14 +- .../google-cloud-redis-cluster/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-redis-cluster/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-redis/google-cloud-redis-bom/pom.xml | 14 +- java-redis/google-cloud-redis/pom.xml | 4 +- java-redis/grpc-google-cloud-redis-v1/pom.xml | 4 +- .../grpc-google-cloud-redis-v1beta1/pom.xml | 4 +- java-redis/pom.xml | 14 +- .../proto-google-cloud-redis-v1/pom.xml | 4 +- .../proto-google-cloud-redis-v1beta1/pom.xml | 4 +- .../pom.xml | 10 +- .../google-cloud-resource-settings/pom.xml | 4 +- .../pom.xml | 4 +- java-resource-settings/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-resourcemanager-bom/pom.xml | 10 +- .../google-cloud-resourcemanager/pom.xml | 4 +- .../pom.xml | 4 +- java-resourcemanager/pom.xml | 10 +- .../pom.xml | 4 +- java-retail/google-cloud-retail-bom/pom.xml | 18 +- java-retail/google-cloud-retail/pom.xml | 4 +- .../grpc-google-cloud-retail-v2/pom.xml | 4 +- .../grpc-google-cloud-retail-v2alpha/pom.xml | 4 +- .../grpc-google-cloud-retail-v2beta/pom.xml | 4 +- java-retail/pom.xml | 18 +- .../proto-google-cloud-retail-v2/pom.xml | 4 +- .../proto-google-cloud-retail-v2alpha/pom.xml | 4 +- .../proto-google-cloud-retail-v2beta/pom.xml | 4 +- java-run/google-cloud-run-bom/pom.xml | 10 +- java-run/google-cloud-run/pom.xml | 4 +- java-run/grpc-google-cloud-run-v2/pom.xml | 4 +- java-run/pom.xml | 10 +- java-run/proto-google-cloud-run-v2/pom.xml | 4 +- java-samples/pom.xml | 2 +- .../google-cloud-scheduler-bom/pom.xml | 14 +- java-scheduler/google-cloud-scheduler/pom.xml | 4 +- .../grpc-google-cloud-scheduler-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-scheduler/pom.xml | 14 +- .../proto-google-cloud-scheduler-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-secretmanager-bom/pom.xml | 14 +- .../google-cloud-secretmanager/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-secretmanager/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../google-cloud-securesourcemanager/pom.xml | 4 +- .../pom.xml | 4 +- java-securesourcemanager/pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 14 +- .../google-cloud-security-private-ca/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-security-private-ca/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-securitycenter-settings/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-securitycenter-bom/pom.xml | 22 +- .../google-cloud-securitycenter/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-securitycenter/pom.xml | 22 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-securitycentermanagement/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-securityposture-bom/pom.xml | 10 +- .../google-cloud-securityposture/pom.xml | 4 +- .../pom.xml | 4 +- java-securityposture/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-service-control-bom/pom.xml | 14 +- .../google-cloud-service-control/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-service-control/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../google-cloud-service-management/pom.xml | 4 +- .../pom.xml | 4 +- java-service-management/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-service-usage-bom/pom.xml | 14 +- .../google-cloud-service-usage/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-service-usage/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-servicedirectory-bom/pom.xml | 14 +- .../google-cloud-servicedirectory/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-servicedirectory/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-servicehealth-bom/pom.xml | 10 +- .../google-cloud-servicehealth/pom.xml | 4 +- .../pom.xml | 4 +- java-servicehealth/pom.xml | 10 +- .../pom.xml | 4 +- java-shell/google-cloud-shell-bom/pom.xml | 10 +- java-shell/google-cloud-shell/pom.xml | 4 +- java-shell/grpc-google-cloud-shell-v1/pom.xml | 4 +- java-shell/pom.xml | 10 +- .../proto-google-cloud-shell-v1/pom.xml | 4 +- .../google-shopping-css-bom/pom.xml | 10 +- java-shopping-css/google-shopping-css/pom.xml | 4 +- .../grpc-google-shopping-css-v1/pom.xml | 4 +- java-shopping-css/pom.xml | 10 +- .../proto-google-shopping-css-v1/pom.xml | 4 +- .../pom.xml | 10 +- .../google-shopping-merchant-accounts/pom.xml | 4 +- .../pom.xml | 4 +- java-shopping-merchant-accounts/pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-shopping-merchant-conversions/pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-shopping-merchant-datasources/pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-shopping-merchant-inventories/pom.xml | 10 +- .../pom.xml | 4 +- .../google-shopping-merchant-lfp-bom/pom.xml | 10 +- .../google-shopping-merchant-lfp/pom.xml | 4 +- .../pom.xml | 4 +- java-shopping-merchant-lfp/pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-shopping-merchant-notifications/pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../google-shopping-merchant-products/pom.xml | 4 +- .../pom.xml | 4 +- java-shopping-merchant-products/pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-shopping-merchant-promotions/pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../google-shopping-merchant-quota/pom.xml | 4 +- .../pom.xml | 4 +- java-shopping-merchant-quota/pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../google-shopping-merchant-reports/pom.xml | 4 +- .../pom.xml | 4 +- java-shopping-merchant-reports/pom.xml | 10 +- .../pom.xml | 4 +- java-speech/google-cloud-speech-bom/pom.xml | 22 +- java-speech/google-cloud-speech/pom.xml | 4 +- .../grpc-google-cloud-speech-v1/pom.xml | 4 +- .../grpc-google-cloud-speech-v1beta1/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-speech-v2/pom.xml | 4 +- java-speech/pom.xml | 22 +- .../proto-google-cloud-speech-v1/pom.xml | 4 +- .../proto-google-cloud-speech-v1beta1/pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-speech-v2/pom.xml | 4 +- .../google-cloud-storage-transfer-bom/pom.xml | 10 +- .../google-cloud-storage-transfer/pom.xml | 4 +- .../pom.xml | 4 +- java-storage-transfer/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-storageinsights-bom/pom.xml | 10 +- .../google-cloud-storageinsights/pom.xml | 4 +- .../pom.xml | 4 +- java-storageinsights/pom.xml | 10 +- .../pom.xml | 4 +- java-talent/google-cloud-talent-bom/pom.xml | 14 +- java-talent/google-cloud-talent/pom.xml | 4 +- .../grpc-google-cloud-talent-v4/pom.xml | 4 +- .../grpc-google-cloud-talent-v4beta1/pom.xml | 4 +- java-talent/pom.xml | 16 +- .../proto-google-cloud-talent-v4/pom.xml | 4 +- .../proto-google-cloud-talent-v4beta1/pom.xml | 4 +- java-tasks/google-cloud-tasks-bom/pom.xml | 18 +- java-tasks/google-cloud-tasks/pom.xml | 4 +- java-tasks/grpc-google-cloud-tasks-v2/pom.xml | 4 +- .../grpc-google-cloud-tasks-v2beta2/pom.xml | 4 +- .../grpc-google-cloud-tasks-v2beta3/pom.xml | 4 +- java-tasks/pom.xml | 18 +- .../proto-google-cloud-tasks-v2/pom.xml | 4 +- .../proto-google-cloud-tasks-v2beta2/pom.xml | 4 +- .../proto-google-cloud-tasks-v2beta3/pom.xml | 4 +- .../google-cloud-telcoautomation-bom/pom.xml | 14 +- .../google-cloud-telcoautomation/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-telcoautomation/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-texttospeech-bom/pom.xml | 14 +- .../google-cloud-texttospeech/pom.xml | 4 +- .../grpc-google-cloud-texttospeech-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-texttospeech/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-tpu/google-cloud-tpu-bom/pom.xml | 18 +- java-tpu/google-cloud-tpu/pom.xml | 4 +- java-tpu/grpc-google-cloud-tpu-v1/pom.xml | 4 +- java-tpu/grpc-google-cloud-tpu-v2/pom.xml | 4 +- .../grpc-google-cloud-tpu-v2alpha1/pom.xml | 4 +- java-tpu/pom.xml | 18 +- java-tpu/proto-google-cloud-tpu-v1/pom.xml | 4 +- java-tpu/proto-google-cloud-tpu-v2/pom.xml | 4 +- .../proto-google-cloud-tpu-v2alpha1/pom.xml | 4 +- java-trace/google-cloud-trace-bom/pom.xml | 14 +- java-trace/google-cloud-trace/pom.xml | 4 +- java-trace/grpc-google-cloud-trace-v1/pom.xml | 4 +- java-trace/grpc-google-cloud-trace-v2/pom.xml | 4 +- java-trace/pom.xml | 14 +- .../proto-google-cloud-trace-v1/pom.xml | 4 +- .../proto-google-cloud-trace-v2/pom.xml | 4 +- .../google-cloud-translate-bom/pom.xml | 14 +- java-translate/google-cloud-translate/pom.xml | 4 +- .../grpc-google-cloud-translate-v3/pom.xml | 4 +- .../pom.xml | 4 +- java-translate/pom.xml | 14 +- .../proto-google-cloud-translate-v3/pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-vertexai-bom/pom.xml | 10 +- java-vertexai/google-cloud-vertexai/pom.xml | 4 +- .../grpc-google-cloud-vertexai-v1/pom.xml | 4 +- java-vertexai/pom.xml | 10 +- .../proto-google-cloud-vertexai-v1/pom.xml | 4 +- .../pom.xml | 26 +- .../google-cloud-video-intelligence/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-video-intelligence/pom.xml | 28 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-live-stream-bom/pom.xml | 10 +- .../google-cloud-live-stream/pom.xml | 4 +- .../grpc-google-cloud-live-stream-v1/pom.xml | 4 +- java-video-live-stream/pom.xml | 10 +- .../proto-google-cloud-live-stream-v1/pom.xml | 4 +- .../google-cloud-video-stitcher-bom/pom.xml | 10 +- .../google-cloud-video-stitcher/pom.xml | 4 +- .../pom.xml | 4 +- java-video-stitcher/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-video-transcoder-bom/pom.xml | 10 +- .../google-cloud-video-transcoder/pom.xml | 4 +- .../pom.xml | 4 +- java-video-transcoder/pom.xml | 10 +- .../pom.xml | 4 +- java-vision/google-cloud-vision-bom/pom.xml | 26 +- java-vision/google-cloud-vision/pom.xml | 4 +- .../grpc-google-cloud-vision-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-vision/pom.xml | 26 +- .../proto-google-cloud-vision-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-visionai-bom/pom.xml | 10 +- java-visionai/google-cloud-visionai/pom.xml | 4 +- .../grpc-google-cloud-visionai-v1/pom.xml | 4 +- java-visionai/pom.xml | 10 +- .../proto-google-cloud-visionai-v1/pom.xml | 4 +- .../google-cloud-vmmigration-bom/pom.xml | 10 +- .../google-cloud-vmmigration/pom.xml | 4 +- .../grpc-google-cloud-vmmigration-v1/pom.xml | 4 +- java-vmmigration/pom.xml | 10 +- .../proto-google-cloud-vmmigration-v1/pom.xml | 4 +- .../google-cloud-vmwareengine-bom/pom.xml | 10 +- .../google-cloud-vmwareengine/pom.xml | 4 +- .../grpc-google-cloud-vmwareengine-v1/pom.xml | 4 +- java-vmwareengine/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-vpcaccess-bom/pom.xml | 10 +- java-vpcaccess/google-cloud-vpcaccess/pom.xml | 4 +- .../grpc-google-cloud-vpcaccess-v1/pom.xml | 4 +- java-vpcaccess/pom.xml | 10 +- .../proto-google-cloud-vpcaccess-v1/pom.xml | 4 +- java-webrisk/google-cloud-webrisk-bom/pom.xml | 14 +- java-webrisk/google-cloud-webrisk/pom.xml | 4 +- .../grpc-google-cloud-webrisk-v1/pom.xml | 4 +- .../grpc-google-cloud-webrisk-v1beta1/pom.xml | 4 +- java-webrisk/pom.xml | 14 +- .../proto-google-cloud-webrisk-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 18 +- .../google-cloud-websecurityscanner/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-websecurityscanner/pom.xml | 18 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 14 +- .../google-cloud-workflow-executions/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-workflow-executions/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-workflows-bom/pom.xml | 14 +- java-workflows/google-cloud-workflows/pom.xml | 4 +- .../grpc-google-cloud-workflows-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-workflows/pom.xml | 14 +- .../proto-google-cloud-workflows-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-workspaceevents-bom/pom.xml | 10 +- .../google-cloud-workspaceevents/pom.xml | 4 +- .../pom.xml | 4 +- java-workspaceevents/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-workstations-bom/pom.xml | 14 +- .../google-cloud-workstations/pom.xml | 4 +- .../grpc-google-cloud-workstations-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-workstations/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- versions.txt | 1592 ++++++++--------- 1173 files changed, 4888 insertions(+), 4888 deletions(-) diff --git a/gapic-libraries-bom/pom.xml b/gapic-libraries-bom/pom.xml index aca1a771f68b..1d42d53ed4a2 100644 --- a/gapic-libraries-bom/pom.xml +++ b/gapic-libraries-bom/pom.xml @@ -4,7 +4,7 @@ com.google.cloud gapic-libraries-bom pom - 1.39.0 + 1.40.0-SNAPSHOT Google Cloud Java BOM BOM for the libraries in google-cloud-java repository. Users should not @@ -15,7 +15,7 @@ google-cloud-pom-parent com.google.cloud - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-pom-parent/pom.xml @@ -24,1235 +24,1235 @@ com.google.analytics google-analytics-admin-bom - 0.55.0 + 0.56.0-SNAPSHOT pom import com.google.analytics google-analytics-data-bom - 0.56.0 + 0.57.0-SNAPSHOT pom import com.google.area120 google-area120-tables-bom - 0.49.0 + 0.50.0-SNAPSHOT pom import com.google.cloud google-cloud-accessapproval-bom - 2.46.0 + 2.47.0-SNAPSHOT pom import com.google.cloud google-cloud-advisorynotifications-bom - 0.34.0 + 0.35.0-SNAPSHOT pom import com.google.cloud google-cloud-aiplatform-bom - 3.46.0 + 3.47.0-SNAPSHOT pom import com.google.cloud google-cloud-alloydb-bom - 0.34.0 + 0.35.0-SNAPSHOT pom import com.google.cloud google-cloud-alloydb-connectors-bom - 0.23.0 + 0.24.0-SNAPSHOT pom import com.google.cloud google-cloud-analyticshub-bom - 0.42.0 + 0.43.0-SNAPSHOT pom import com.google.cloud google-cloud-api-gateway-bom - 2.45.0 + 2.46.0-SNAPSHOT pom import com.google.cloud google-cloud-apigee-connect-bom - 2.45.0 + 2.46.0-SNAPSHOT pom import com.google.cloud google-cloud-apigee-registry-bom - 0.45.0 + 0.46.0-SNAPSHOT pom import com.google.cloud google-cloud-apikeys-bom - 0.43.0 + 0.44.0-SNAPSHOT pom import com.google.cloud google-cloud-appengine-admin-bom - 2.45.0 + 2.46.0-SNAPSHOT pom import com.google.cloud google-cloud-apphub-bom - 0.9.0 + 0.10.0-SNAPSHOT pom import com.google.cloud google-cloud-artifact-registry-bom - 1.44.0 + 1.45.0-SNAPSHOT pom import com.google.cloud google-cloud-asset-bom - 3.49.0 + 3.50.0-SNAPSHOT pom import com.google.cloud google-cloud-assured-workloads-bom - 2.45.0 + 2.46.0-SNAPSHOT pom import com.google.cloud google-cloud-automl-bom - 2.45.0 + 2.46.0-SNAPSHOT pom import com.google.cloud google-cloud-backupdr-bom - 0.4.0 + 0.5.0-SNAPSHOT pom import com.google.cloud google-cloud-bare-metal-solution-bom - 0.45.0 + 0.46.0-SNAPSHOT pom import com.google.cloud google-cloud-batch-bom - 0.45.0 + 0.46.0-SNAPSHOT pom import com.google.cloud google-cloud-beyondcorp-appconnections-bom - 0.43.0 + 0.44.0-SNAPSHOT pom import com.google.cloud google-cloud-beyondcorp-appconnectors-bom - 0.43.0 + 0.44.0-SNAPSHOT pom import com.google.cloud google-cloud-beyondcorp-appgateways-bom - 0.43.0 + 0.44.0-SNAPSHOT pom import com.google.cloud google-cloud-beyondcorp-clientconnectorservices-bom - 0.43.0 + 0.44.0-SNAPSHOT pom import com.google.cloud google-cloud-beyondcorp-clientgateways-bom - 0.43.0 + 0.44.0-SNAPSHOT pom import com.google.cloud google-cloud-biglake-bom - 0.33.0 + 0.34.0-SNAPSHOT pom import com.google.cloud google-cloud-bigquery-data-exchange-bom - 2.40.0 + 2.41.0-SNAPSHOT pom import com.google.cloud google-cloud-bigqueryconnection-bom - 2.47.0 + 2.48.0-SNAPSHOT pom import com.google.cloud google-cloud-bigquerydatapolicy-bom - 0.42.0 + 0.43.0-SNAPSHOT pom import com.google.cloud google-cloud-bigquerydatatransfer-bom - 2.45.0 + 2.46.0-SNAPSHOT pom import com.google.cloud google-cloud-bigquerymigration-bom - 0.48.0 + 0.49.0-SNAPSHOT pom import com.google.cloud google-cloud-bigqueryreservation-bom - 2.46.0 + 2.47.0-SNAPSHOT pom import com.google.cloud google-cloud-billing-bom - 2.45.0 + 2.46.0-SNAPSHOT pom import com.google.cloud google-cloud-billingbudgets-bom - 2.45.0 + 2.46.0-SNAPSHOT pom import com.google.cloud google-cloud-binary-authorization-bom - 1.44.0 + 1.45.0-SNAPSHOT pom import com.google.cloud google-cloud-build-bom - 3.47.0 + 3.48.0-SNAPSHOT pom import com.google.cloud google-cloud-certificate-manager-bom - 0.48.0 + 0.49.0-SNAPSHOT pom import com.google.cloud google-cloud-channel-bom - 3.49.0 + 3.50.0-SNAPSHOT pom import com.google.cloud google-cloud-chat-bom - 0.9.0 + 0.10.0-SNAPSHOT pom import com.google.cloud google-cloud-cloudcommerceconsumerprocurement-bom - 0.43.0 + 0.44.0-SNAPSHOT pom import com.google.cloud google-cloud-cloudcontrolspartner-bom - 0.9.0 + 0.10.0-SNAPSHOT pom import com.google.cloud google-cloud-cloudquotas-bom - 0.13.0 + 0.14.0-SNAPSHOT pom import com.google.cloud google-cloud-cloudsupport-bom - 0.29.0 + 0.30.0-SNAPSHOT pom import com.google.cloud google-cloud-compute-bom - 1.55.0 + 1.56.0-SNAPSHOT pom import com.google.cloud google-cloud-confidentialcomputing-bom - 0.31.0 + 0.32.0-SNAPSHOT pom import com.google.cloud google-cloud-contact-center-insights-bom - 2.45.0 + 2.46.0-SNAPSHOT pom import com.google.cloud google-cloud-container-bom - 2.48.0 + 2.49.0-SNAPSHOT pom import com.google.cloud google-cloud-containeranalysis-bom - 2.46.0 + 2.47.0-SNAPSHOT pom import com.google.cloud google-cloud-contentwarehouse-bom - 0.41.0 + 0.42.0-SNAPSHOT pom import com.google.cloud google-cloud-data-fusion-bom - 1.45.0 + 1.46.0-SNAPSHOT pom import com.google.cloud google-cloud-datacatalog-bom - 1.51.0 + 1.52.0-SNAPSHOT pom import com.google.cloud google-cloud-dataflow-bom - 0.49.0 + 0.50.0-SNAPSHOT pom import com.google.cloud google-cloud-dataform-bom - 0.44.0 + 0.45.0-SNAPSHOT pom import com.google.cloud google-cloud-datalabeling-bom - 0.165.0 + 0.166.0-SNAPSHOT pom import com.google.cloud google-cloud-datalineage-bom - 0.37.0 + 0.38.0-SNAPSHOT pom import com.google.cloud google-cloud-dataplex-bom - 1.43.0 + 1.44.0-SNAPSHOT pom import com.google.cloud google-cloud-dataproc-bom - 4.42.0 + 4.43.0-SNAPSHOT pom import com.google.cloud google-cloud-dataproc-metastore-bom - 2.46.0 + 2.47.0-SNAPSHOT pom import com.google.cloud google-cloud-datastream-bom - 1.44.0 + 1.45.0-SNAPSHOT pom import com.google.cloud google-cloud-debugger-client-bom - 1.45.0 + 1.46.0-SNAPSHOT pom import com.google.cloud google-cloud-deploy-bom - 1.43.0 + 1.44.0-SNAPSHOT pom import com.google.cloud google-cloud-developerconnect-bom - 0.2.0 + 0.3.0-SNAPSHOT pom import com.google.cloud google-cloud-dialogflow-bom - 4.51.0 + 4.52.0-SNAPSHOT pom import com.google.cloud google-cloud-dialogflow-cx-bom - 0.56.0 + 0.57.0-SNAPSHOT pom import com.google.cloud google-cloud-discoveryengine-bom - 0.41.0 + 0.42.0-SNAPSHOT pom import com.google.cloud google-cloud-distributedcloudedge-bom - 0.42.0 + 0.43.0-SNAPSHOT pom import com.google.cloud google-cloud-dlp-bom - 3.49.0 + 3.50.0-SNAPSHOT pom import com.google.cloud google-cloud-dms-bom - 2.44.0 + 2.45.0-SNAPSHOT pom import com.google.cloud google-cloud-dns - 2.43.0 + 2.44.0-SNAPSHOT com.google.cloud google-cloud-document-ai-bom - 2.49.0 + 2.50.0-SNAPSHOT pom import com.google.cloud google-cloud-domains-bom - 1.42.0 + 1.43.0-SNAPSHOT pom import com.google.cloud google-cloud-edgenetwork-bom - 0.13.0 + 0.14.0-SNAPSHOT pom import com.google.cloud google-cloud-enterpriseknowledgegraph-bom - 0.41.0 + 0.42.0-SNAPSHOT pom import com.google.cloud google-cloud-errorreporting-bom - 0.166.0-beta + 0.167.0-beta-SNAPSHOT pom import com.google.cloud google-cloud-essential-contacts-bom - 2.45.0 + 2.46.0-SNAPSHOT pom import com.google.cloud google-cloud-eventarc-bom - 1.45.0 + 1.46.0-SNAPSHOT pom import com.google.cloud google-cloud-eventarc-publishing-bom - 0.45.0 + 0.46.0-SNAPSHOT pom import com.google.cloud google-cloud-filestore-bom - 1.46.0 + 1.47.0-SNAPSHOT pom import com.google.cloud google-cloud-functions-bom - 2.47.0 + 2.48.0-SNAPSHOT pom import com.google.cloud google-cloud-gke-backup-bom - 0.44.0 + 0.45.0-SNAPSHOT pom import com.google.cloud google-cloud-gke-connect-gateway-bom - 0.46.0 + 0.47.0-SNAPSHOT pom import com.google.cloud google-cloud-gke-multi-cloud-bom - 0.44.0 + 0.45.0-SNAPSHOT pom import com.google.cloud google-cloud-gkehub-bom - 1.45.0 + 1.46.0-SNAPSHOT pom import com.google.cloud google-cloud-gsuite-addons-bom - 2.45.0 + 2.46.0-SNAPSHOT pom import com.google.cloud google-cloud-iamcredentials-bom - 2.45.0 + 2.46.0-SNAPSHOT pom import com.google.cloud google-cloud-iap-bom - 0.1.0 + 0.2.0-SNAPSHOT pom import com.google.cloud google-cloud-ids-bom - 1.44.0 + 1.45.0-SNAPSHOT pom import com.google.cloud google-cloud-infra-manager-bom - 0.22.0 + 0.23.0-SNAPSHOT pom import com.google.cloud google-cloud-iot-bom - 2.45.0 + 2.46.0-SNAPSHOT pom import com.google.cloud google-cloud-kms-bom - 2.48.0 + 2.49.0-SNAPSHOT pom import com.google.cloud google-cloud-kmsinventory-bom - 0.34.0 + 0.35.0-SNAPSHOT pom import com.google.cloud google-cloud-language-bom - 2.46.0 + 2.47.0-SNAPSHOT pom import com.google.cloud google-cloud-life-sciences-bom - 0.47.0 + 0.48.0-SNAPSHOT pom import com.google.cloud google-cloud-live-stream-bom - 0.47.0 + 0.48.0-SNAPSHOT pom import com.google.cloud google-cloud-managed-identities-bom - 1.43.0 + 1.44.0-SNAPSHOT pom import com.google.cloud google-cloud-managedkafka-bom - 0.1.0 + 0.2.0-SNAPSHOT pom import com.google.cloud google-cloud-mediatranslation-bom - 0.51.0 + 0.52.0-SNAPSHOT pom import com.google.cloud google-cloud-meet-bom - 0.12.0 + 0.13.0-SNAPSHOT pom import com.google.cloud google-cloud-memcache-bom - 2.45.0 + 2.46.0-SNAPSHOT pom import com.google.cloud google-cloud-migrationcenter-bom - 0.27.0 + 0.28.0-SNAPSHOT pom import com.google.cloud google-cloud-monitoring-bom - 3.46.0 + 3.47.0-SNAPSHOT pom import com.google.cloud google-cloud-monitoring-dashboard-bom - 2.47.0 + 2.48.0-SNAPSHOT pom import com.google.cloud google-cloud-monitoring-metricsscope-bom - 0.39.0 + 0.40.0-SNAPSHOT pom import com.google.cloud google-cloud-netapp-bom - 0.24.0 + 0.25.0-SNAPSHOT pom import com.google.cloud google-cloud-network-management-bom - 1.46.0 + 1.47.0-SNAPSHOT pom import com.google.cloud google-cloud-network-security-bom - 0.48.0 + 0.49.0-SNAPSHOT pom import com.google.cloud google-cloud-networkconnectivity-bom - 1.44.0 + 1.45.0-SNAPSHOT pom import com.google.cloud google-cloud-networkservices-bom - 0.1.0 + 0.2.0-SNAPSHOT pom import com.google.cloud google-cloud-notebooks-bom - 1.43.0 + 1.44.0-SNAPSHOT pom import com.google.cloud google-cloud-notification - 0.163.0-beta + 0.164.0-beta-SNAPSHOT com.google.cloud google-cloud-optimization-bom - 1.43.0 + 1.44.0-SNAPSHOT pom import com.google.cloud google-cloud-orchestration-airflow-bom - 1.45.0 + 1.46.0-SNAPSHOT pom import com.google.cloud google-cloud-orgpolicy-bom - 2.45.0 + 2.46.0-SNAPSHOT pom import com.google.cloud google-cloud-os-config-bom - 2.47.0 + 2.48.0-SNAPSHOT pom import com.google.cloud google-cloud-os-login-bom - 2.44.0 + 2.45.0-SNAPSHOT pom import com.google.cloud google-cloud-parallelstore-bom - 0.8.0 + 0.9.0-SNAPSHOT pom import com.google.cloud google-cloud-phishingprotection-bom - 0.76.0 + 0.77.0-SNAPSHOT pom import com.google.cloud google-cloud-policy-troubleshooter-bom - 1.44.0 + 1.45.0-SNAPSHOT pom import com.google.cloud google-cloud-policysimulator-bom - 0.24.0 + 0.25.0-SNAPSHOT pom import com.google.cloud google-cloud-private-catalog-bom - 0.47.0 + 0.48.0-SNAPSHOT pom import com.google.cloud google-cloud-profiler-bom - 2.45.0 + 2.46.0-SNAPSHOT pom import com.google.cloud google-cloud-publicca-bom - 0.42.0 + 0.43.0-SNAPSHOT pom import com.google.cloud google-cloud-rapidmigrationassessment-bom - 0.28.0 + 0.29.0-SNAPSHOT pom import com.google.cloud google-cloud-recaptchaenterprise-bom - 3.42.0 + 3.43.0-SNAPSHOT pom import com.google.cloud google-cloud-recommendations-ai-bom - 0.52.0 + 0.53.0-SNAPSHOT pom import com.google.cloud google-cloud-recommender-bom - 2.47.0 + 2.48.0-SNAPSHOT pom import com.google.cloud google-cloud-redis-bom - 2.48.0 + 2.49.0-SNAPSHOT pom import com.google.cloud google-cloud-redis-cluster-bom - 0.17.0 + 0.18.0-SNAPSHOT pom import com.google.cloud google-cloud-resource-settings-bom - 1.45.0 + 1.46.0-SNAPSHOT pom import com.google.cloud google-cloud-resourcemanager-bom - 1.47.0 + 1.48.0-SNAPSHOT pom import com.google.cloud google-cloud-retail-bom - 2.47.0 + 2.48.0-SNAPSHOT pom import com.google.cloud google-cloud-run-bom - 0.45.0 + 0.46.0-SNAPSHOT pom import com.google.cloud google-cloud-scheduler-bom - 2.45.0 + 2.46.0-SNAPSHOT pom import com.google.cloud google-cloud-secretmanager-bom - 2.45.0 + 2.46.0-SNAPSHOT pom import com.google.cloud google-cloud-securesourcemanager-bom - 0.15.0 + 0.16.0-SNAPSHOT pom import com.google.cloud google-cloud-security-private-ca-bom - 2.47.0 + 2.48.0-SNAPSHOT pom import com.google.cloud google-cloud-securitycenter-bom - 2.53.0 + 2.54.0-SNAPSHOT pom import com.google.cloud google-cloud-securitycenter-settings-bom - 0.48.0 + 0.49.0-SNAPSHOT pom import com.google.cloud google-cloud-securitycentermanagement-bom - 0.13.0 + 0.14.0-SNAPSHOT pom import com.google.cloud google-cloud-securityposture-bom - 0.10.0 + 0.11.0-SNAPSHOT pom import com.google.cloud google-cloud-service-control-bom - 1.45.0 + 1.46.0-SNAPSHOT pom import com.google.cloud google-cloud-service-management-bom - 3.43.0 + 3.44.0-SNAPSHOT pom import com.google.cloud google-cloud-service-usage-bom - 2.45.0 + 2.46.0-SNAPSHOT pom import com.google.cloud google-cloud-servicedirectory-bom - 2.46.0 + 2.47.0-SNAPSHOT pom import com.google.cloud google-cloud-servicehealth-bom - 0.12.0 + 0.13.0-SNAPSHOT pom import com.google.cloud google-cloud-shell-bom - 2.44.0 + 2.45.0-SNAPSHOT pom import com.google.cloud google-cloud-speech-bom - 4.40.0 + 4.41.0-SNAPSHOT pom import com.google.cloud google-cloud-storage-transfer-bom - 1.45.0 + 1.46.0-SNAPSHOT pom import com.google.cloud google-cloud-storageinsights-bom - 0.30.0 + 0.31.0-SNAPSHOT pom import com.google.cloud google-cloud-talent-bom - 2.46.0 + 2.47.0-SNAPSHOT pom import com.google.cloud google-cloud-tasks-bom - 2.45.0 + 2.46.0-SNAPSHOT pom import com.google.cloud google-cloud-telcoautomation-bom - 0.15.0 + 0.16.0-SNAPSHOT pom import com.google.cloud google-cloud-texttospeech-bom - 2.46.0 + 2.47.0-SNAPSHOT pom import com.google.cloud google-cloud-tpu-bom - 2.46.0 + 2.47.0-SNAPSHOT pom import com.google.cloud google-cloud-trace-bom - 2.45.0 + 2.46.0-SNAPSHOT pom import com.google.cloud google-cloud-translate-bom - 2.45.0 + 2.46.0-SNAPSHOT pom import com.google.cloud google-cloud-vertexai-bom - 1.5.0 + 1.6.0-SNAPSHOT pom import com.google.cloud google-cloud-video-intelligence-bom - 2.44.0 + 2.45.0-SNAPSHOT pom import com.google.cloud google-cloud-video-stitcher-bom - 0.45.0 + 0.46.0-SNAPSHOT pom import com.google.cloud google-cloud-video-transcoder-bom - 1.44.0 + 1.45.0-SNAPSHOT pom import com.google.cloud google-cloud-vision-bom - 3.43.0 + 3.44.0-SNAPSHOT pom import com.google.cloud google-cloud-visionai-bom - 0.2.0 + 0.3.0-SNAPSHOT pom import com.google.cloud google-cloud-vmmigration-bom - 1.45.0 + 1.46.0-SNAPSHOT pom import com.google.cloud google-cloud-vmwareengine-bom - 0.39.0 + 0.40.0-SNAPSHOT pom import com.google.cloud google-cloud-vpcaccess-bom - 2.46.0 + 2.47.0-SNAPSHOT pom import com.google.cloud google-cloud-webrisk-bom - 2.44.0 + 2.45.0-SNAPSHOT pom import com.google.cloud google-cloud-websecurityscanner-bom - 2.45.0 + 2.46.0-SNAPSHOT pom import com.google.cloud google-cloud-workflow-executions-bom - 2.45.0 + 2.46.0-SNAPSHOT pom import com.google.cloud google-cloud-workflows-bom - 2.45.0 + 2.46.0-SNAPSHOT pom import com.google.cloud google-cloud-workspaceevents-bom - 0.9.0 + 0.10.0-SNAPSHOT pom import com.google.cloud google-cloud-workstations-bom - 0.33.0 + 0.34.0-SNAPSHOT pom import com.google.cloud google-iam-admin-bom - 3.40.0 + 3.41.0-SNAPSHOT pom import com.google.cloud google-iam-policy-bom - 1.43.0 + 1.44.0-SNAPSHOT pom import com.google.cloud google-identity-accesscontextmanager-bom - 1.46.0 + 1.47.0-SNAPSHOT pom import io.grafeas grafeas - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/google-cloud-jar-parent/pom.xml b/google-cloud-jar-parent/pom.xml index cbc54776a3d6..478d347a95d0 100644 --- a/google-cloud-jar-parent/pom.xml +++ b/google-cloud-jar-parent/pom.xml @@ -5,7 +5,7 @@ 4.0.0 google-cloud-jar-parent com.google.cloud - 1.39.0 + 1.40.0-SNAPSHOT pom Google Cloud JAR Parent @@ -15,7 +15,7 @@ com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-pom-parent/pom.xml diff --git a/google-cloud-pom-parent/pom.xml b/google-cloud-pom-parent/pom.xml index 3856f02a7034..1f53c4b94e4e 100644 --- a/google-cloud-pom-parent/pom.xml +++ b/google-cloud-pom-parent/pom.xml @@ -5,7 +5,7 @@ 4.0.0 google-cloud-pom-parent com.google.cloud - 1.39.0 + 1.40.0-SNAPSHOT pom Google Cloud POM Parent https://github.com/googleapis/google-cloud-java diff --git a/java-accessapproval/google-cloud-accessapproval-bom/pom.xml b/java-accessapproval/google-cloud-accessapproval-bom/pom.xml index a7244caea8cc..61a4248dc793 100644 --- a/java-accessapproval/google-cloud-accessapproval-bom/pom.xml +++ b/java-accessapproval/google-cloud-accessapproval-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-accessapproval-bom - 2.46.0 + 2.47.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-accessapproval - 2.46.0 + 2.47.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-accessapproval-v1 - 2.46.0 + 2.47.0-SNAPSHOT com.google.api.grpc proto-google-cloud-accessapproval-v1 - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-accessapproval/google-cloud-accessapproval/pom.xml b/java-accessapproval/google-cloud-accessapproval/pom.xml index 2c9893829def..fee40961cbf4 100644 --- a/java-accessapproval/google-cloud-accessapproval/pom.xml +++ b/java-accessapproval/google-cloud-accessapproval/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-accessapproval - 2.46.0 + 2.47.0-SNAPSHOT jar Google Cloud Access Approval Java idiomatic client for Google Cloud accessapproval com.google.cloud google-cloud-accessapproval-parent - 2.46.0 + 2.47.0-SNAPSHOT google-cloud-accessapproval diff --git a/java-accessapproval/grpc-google-cloud-accessapproval-v1/pom.xml b/java-accessapproval/grpc-google-cloud-accessapproval-v1/pom.xml index 6f8ba4181517..9ae71fe4b67d 100644 --- a/java-accessapproval/grpc-google-cloud-accessapproval-v1/pom.xml +++ b/java-accessapproval/grpc-google-cloud-accessapproval-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-accessapproval-v1 - 2.46.0 + 2.47.0-SNAPSHOT grpc-google-cloud-accessapproval-v1 GRPC library for grpc-google-cloud-accessapproval-v1 com.google.cloud google-cloud-accessapproval-parent - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-accessapproval/pom.xml b/java-accessapproval/pom.xml index 24f2eff685a2..b41a4dbb6e8f 100644 --- a/java-accessapproval/pom.xml +++ b/java-accessapproval/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-accessapproval-parent pom - 2.46.0 + 2.47.0-SNAPSHOT Google Cloud Access Approval Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.api.grpc proto-google-cloud-accessapproval-v1 - 2.46.0 + 2.47.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-accessapproval-v1 - 2.46.0 + 2.47.0-SNAPSHOT com.google.cloud google-cloud-accessapproval - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-accessapproval/proto-google-cloud-accessapproval-v1/pom.xml b/java-accessapproval/proto-google-cloud-accessapproval-v1/pom.xml index 54e6b1650450..76ee3dbea84d 100644 --- a/java-accessapproval/proto-google-cloud-accessapproval-v1/pom.xml +++ b/java-accessapproval/proto-google-cloud-accessapproval-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-accessapproval-v1 - 2.46.0 + 2.47.0-SNAPSHOT proto-google-cloud-accessapproval-v1beta1 PROTO library for proto-google-cloud-accessapproval-v1 com.google.cloud google-cloud-accessapproval-parent - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-accesscontextmanager/google-identity-accesscontextmanager-bom/pom.xml b/java-accesscontextmanager/google-identity-accesscontextmanager-bom/pom.xml index ca4b71efca02..67120296195b 100644 --- a/java-accesscontextmanager/google-identity-accesscontextmanager-bom/pom.xml +++ b/java-accesscontextmanager/google-identity-accesscontextmanager-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-identity-accesscontextmanager-bom - 1.46.0 + 1.47.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,22 +27,22 @@ com.google.cloud google-identity-accesscontextmanager - 1.46.0 + 1.47.0-SNAPSHOT com.google.api.grpc grpc-google-identity-accesscontextmanager-v1 - 1.46.0 + 1.47.0-SNAPSHOT com.google.api.grpc proto-google-identity-accesscontextmanager-v1 - 1.46.0 + 1.47.0-SNAPSHOT com.google.api.grpc proto-google-identity-accesscontextmanager-type - 1.46.0 + 1.47.0-SNAPSHOT diff --git a/java-accesscontextmanager/google-identity-accesscontextmanager/pom.xml b/java-accesscontextmanager/google-identity-accesscontextmanager/pom.xml index 4445ecb3388d..4d8dde767f12 100644 --- a/java-accesscontextmanager/google-identity-accesscontextmanager/pom.xml +++ b/java-accesscontextmanager/google-identity-accesscontextmanager/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-identity-accesscontextmanager - 1.46.0 + 1.47.0-SNAPSHOT jar Google Identity Access Context Manager Identity Access Context Manager n/a com.google.cloud google-identity-accesscontextmanager-parent - 1.46.0 + 1.47.0-SNAPSHOT google-identity-accesscontextmanager diff --git a/java-accesscontextmanager/grpc-google-identity-accesscontextmanager-v1/pom.xml b/java-accesscontextmanager/grpc-google-identity-accesscontextmanager-v1/pom.xml index 175e1be3f046..c7717e0f8d46 100644 --- a/java-accesscontextmanager/grpc-google-identity-accesscontextmanager-v1/pom.xml +++ b/java-accesscontextmanager/grpc-google-identity-accesscontextmanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-identity-accesscontextmanager-v1 - 1.46.0 + 1.47.0-SNAPSHOT grpc-google-identity-accesscontextmanager-v1 GRPC library for google-identity-accesscontextmanager com.google.cloud google-identity-accesscontextmanager-parent - 1.46.0 + 1.47.0-SNAPSHOT diff --git a/java-accesscontextmanager/pom.xml b/java-accesscontextmanager/pom.xml index af6e272fbeed..c9b4c8c9fee4 100644 --- a/java-accesscontextmanager/pom.xml +++ b/java-accesscontextmanager/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-identity-accesscontextmanager-parent pom - 1.46.0 + 1.47.0-SNAPSHOT Google Identity Access Context Manager Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,22 +30,22 @@ com.google.api.grpc proto-google-identity-accesscontextmanager-type - 1.46.0 + 1.47.0-SNAPSHOT com.google.api.grpc proto-google-identity-accesscontextmanager-v1 - 1.46.0 + 1.47.0-SNAPSHOT com.google.api.grpc grpc-google-identity-accesscontextmanager-v1 - 1.46.0 + 1.47.0-SNAPSHOT com.google.cloud google-identity-accesscontextmanager - 1.46.0 + 1.47.0-SNAPSHOT diff --git a/java-accesscontextmanager/proto-google-identity-accesscontextmanager-type/pom.xml b/java-accesscontextmanager/proto-google-identity-accesscontextmanager-type/pom.xml index 484c85c2ce01..d7479f51bdec 100644 --- a/java-accesscontextmanager/proto-google-identity-accesscontextmanager-type/pom.xml +++ b/java-accesscontextmanager/proto-google-identity-accesscontextmanager-type/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-identity-accesscontextmanager-type - 1.46.0 + 1.47.0-SNAPSHOT proto-google-identity-accesscontextmanager-type PROTO library for proto-google-identity-accesscontextmanager-type com.google.cloud google-identity-accesscontextmanager-parent - 1.46.0 + 1.47.0-SNAPSHOT diff --git a/java-accesscontextmanager/proto-google-identity-accesscontextmanager-v1/pom.xml b/java-accesscontextmanager/proto-google-identity-accesscontextmanager-v1/pom.xml index 854362845961..b5ebf5fb91fe 100644 --- a/java-accesscontextmanager/proto-google-identity-accesscontextmanager-v1/pom.xml +++ b/java-accesscontextmanager/proto-google-identity-accesscontextmanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-identity-accesscontextmanager-v1 - 1.46.0 + 1.47.0-SNAPSHOT proto-google-identity-accesscontextmanager-v1 PROTO library for proto-google-identity-accesscontextmanager-v1 com.google.cloud google-identity-accesscontextmanager-parent - 1.46.0 + 1.47.0-SNAPSHOT @@ -37,7 +37,7 @@ com.google.api.grpc proto-google-identity-accesscontextmanager-type - 1.46.0 + 1.47.0-SNAPSHOT diff --git a/java-admanager/ad-manager-bom/pom.xml b/java-admanager/ad-manager-bom/pom.xml index ce36f64955d2..fd2ca51772ee 100644 --- a/java-admanager/ad-manager-bom/pom.xml +++ b/java-admanager/ad-manager-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.api-ads ad-manager-bom - 0.4.0 + 0.5.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -26,12 +26,12 @@ com.google.api-ads ad-manager - 0.4.0 + 0.5.0-SNAPSHOT com.google.api-ads.api.grpc proto-ad-manager-v1 - 0.4.0 + 0.5.0-SNAPSHOT diff --git a/java-admanager/ad-manager/pom.xml b/java-admanager/ad-manager/pom.xml index a47d93d17b27..90f628db45af 100644 --- a/java-admanager/ad-manager/pom.xml +++ b/java-admanager/ad-manager/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.api-ads ad-manager - 0.4.0 + 0.5.0-SNAPSHOT jar Google Google Ad Manager API Google Ad Manager API The Ad Manager API enables an app to integrate with Google Ad Manager. You can read Ad Manager data and run reports using the API. com.google.api-ads ad-manager-parent - 0.4.0 + 0.5.0-SNAPSHOT ad-manager diff --git a/java-admanager/pom.xml b/java-admanager/pom.xml index 3e96e4988e72..46d63c985b11 100644 --- a/java-admanager/pom.xml +++ b/java-admanager/pom.xml @@ -4,7 +4,7 @@ com.google.api-ads ad-manager-parent pom - 0.4.0 + 0.5.0-SNAPSHOT Google Google Ad Manager API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,12 +29,12 @@ com.google.api-ads ad-manager - 0.4.0 + 0.5.0-SNAPSHOT com.google.api-ads.api.grpc proto-ad-manager-v1 - 0.4.0 + 0.5.0-SNAPSHOT diff --git a/java-admanager/proto-ad-manager-v1/pom.xml b/java-admanager/proto-ad-manager-v1/pom.xml index e11166e7070e..0edfdbc4f1d9 100644 --- a/java-admanager/proto-ad-manager-v1/pom.xml +++ b/java-admanager/proto-ad-manager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api-ads.api.grpc proto-ad-manager-v1 - 0.4.0 + 0.5.0-SNAPSHOT proto-ad-manager-v1 Proto library for ad-manager com.google.api-ads ad-manager-parent - 0.4.0 + 0.5.0-SNAPSHOT diff --git a/java-advisorynotifications/google-cloud-advisorynotifications-bom/pom.xml b/java-advisorynotifications/google-cloud-advisorynotifications-bom/pom.xml index 05baae5b0738..8467b1f0ea23 100644 --- a/java-advisorynotifications/google-cloud-advisorynotifications-bom/pom.xml +++ b/java-advisorynotifications/google-cloud-advisorynotifications-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-advisorynotifications-bom - 0.34.0 + 0.35.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-advisorynotifications - 0.34.0 + 0.35.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-advisorynotifications-v1 - 0.34.0 + 0.35.0-SNAPSHOT com.google.api.grpc proto-google-cloud-advisorynotifications-v1 - 0.34.0 + 0.35.0-SNAPSHOT diff --git a/java-advisorynotifications/google-cloud-advisorynotifications/pom.xml b/java-advisorynotifications/google-cloud-advisorynotifications/pom.xml index 249dba543238..d31c3c4db770 100644 --- a/java-advisorynotifications/google-cloud-advisorynotifications/pom.xml +++ b/java-advisorynotifications/google-cloud-advisorynotifications/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-advisorynotifications - 0.34.0 + 0.35.0-SNAPSHOT jar Google Advisory Notifications API Advisory Notifications API An API for accessing Advisory Notifications in Google Cloud. com.google.cloud google-cloud-advisorynotifications-parent - 0.34.0 + 0.35.0-SNAPSHOT google-cloud-advisorynotifications diff --git a/java-advisorynotifications/grpc-google-cloud-advisorynotifications-v1/pom.xml b/java-advisorynotifications/grpc-google-cloud-advisorynotifications-v1/pom.xml index 5e1bef006f1e..0623c5045a77 100644 --- a/java-advisorynotifications/grpc-google-cloud-advisorynotifications-v1/pom.xml +++ b/java-advisorynotifications/grpc-google-cloud-advisorynotifications-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-advisorynotifications-v1 - 0.34.0 + 0.35.0-SNAPSHOT grpc-google-cloud-advisorynotifications-v1 GRPC library for google-cloud-advisorynotifications com.google.cloud google-cloud-advisorynotifications-parent - 0.34.0 + 0.35.0-SNAPSHOT diff --git a/java-advisorynotifications/pom.xml b/java-advisorynotifications/pom.xml index aaab8c869d11..b9bee1e0557d 100644 --- a/java-advisorynotifications/pom.xml +++ b/java-advisorynotifications/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-advisorynotifications-parent pom - 0.34.0 + 0.35.0-SNAPSHOT Google Advisory Notifications API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-advisorynotifications - 0.34.0 + 0.35.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-advisorynotifications-v1 - 0.34.0 + 0.35.0-SNAPSHOT com.google.api.grpc proto-google-cloud-advisorynotifications-v1 - 0.34.0 + 0.35.0-SNAPSHOT diff --git a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/pom.xml b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/pom.xml index f22689e31f19..4faa59d7e174 100644 --- a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/pom.xml +++ b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-advisorynotifications-v1 - 0.34.0 + 0.35.0-SNAPSHOT proto-google-cloud-advisorynotifications-v1 Proto library for google-cloud-advisorynotifications com.google.cloud google-cloud-advisorynotifications-parent - 0.34.0 + 0.35.0-SNAPSHOT diff --git a/java-aiplatform/google-cloud-aiplatform-bom/pom.xml b/java-aiplatform/google-cloud-aiplatform-bom/pom.xml index 42a66bd380f4..3c2125ed3711 100644 --- a/java-aiplatform/google-cloud-aiplatform-bom/pom.xml +++ b/java-aiplatform/google-cloud-aiplatform-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-aiplatform-bom - 3.46.0 + 3.47.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-aiplatform - 3.46.0 + 3.47.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-aiplatform-v1 - 3.46.0 + 3.47.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-aiplatform-v1beta1 - 0.62.0 + 0.63.0-SNAPSHOT com.google.api.grpc proto-google-cloud-aiplatform-v1 - 3.46.0 + 3.47.0-SNAPSHOT com.google.api.grpc proto-google-cloud-aiplatform-v1beta1 - 0.62.0 + 0.63.0-SNAPSHOT diff --git a/java-aiplatform/google-cloud-aiplatform/pom.xml b/java-aiplatform/google-cloud-aiplatform/pom.xml index 5347d6dbf8dd..c9e58e6085e8 100644 --- a/java-aiplatform/google-cloud-aiplatform/pom.xml +++ b/java-aiplatform/google-cloud-aiplatform/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-aiplatform - 3.46.0 + 3.47.0-SNAPSHOT jar Google Cloud Vertex AI Java client for Google Cloud Vertex AI services. com.google.cloud google-cloud-aiplatform-parent - 3.46.0 + 3.47.0-SNAPSHOT google-cloud-aiplatform diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/pom.xml b/java-aiplatform/grpc-google-cloud-aiplatform-v1/pom.xml index 73c3bc9e35aa..bb7b6d741866 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1/pom.xml +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-aiplatform-v1 - 3.46.0 + 3.47.0-SNAPSHOT grpc-google-cloud-aiplatform-v1 GRPC library for google-cloud-aiplatform com.google.cloud google-cloud-aiplatform-parent - 3.46.0 + 3.47.0-SNAPSHOT diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/pom.xml b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/pom.xml index fa525ad2964b..a63933fb6b87 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/pom.xml +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-aiplatform-v1beta1 - 0.62.0 + 0.63.0-SNAPSHOT grpc-google-cloud-aiplatform-v1beta1 GRPC library for google-cloud-aiplatform com.google.cloud google-cloud-aiplatform-parent - 3.46.0 + 3.47.0-SNAPSHOT diff --git a/java-aiplatform/pom.xml b/java-aiplatform/pom.xml index 148d1eaff16f..72231e0b840b 100644 --- a/java-aiplatform/pom.xml +++ b/java-aiplatform/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-aiplatform-parent pom - 3.46.0 + 3.47.0-SNAPSHOT Google Cloud Vertex AI Parent Java client for Google Cloud Vertex AI services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-aiplatform - 3.46.0 + 3.47.0-SNAPSHOT com.google.api.grpc proto-google-cloud-aiplatform-v1 - 3.46.0 + 3.47.0-SNAPSHOT com.google.api.grpc proto-google-cloud-aiplatform-v1beta1 - 0.62.0 + 0.63.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-aiplatform-v1 - 3.46.0 + 3.47.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-aiplatform-v1beta1 - 0.62.0 + 0.63.0-SNAPSHOT diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/pom.xml b/java-aiplatform/proto-google-cloud-aiplatform-v1/pom.xml index dfe13538adb7..1a70bf94050d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/pom.xml +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-aiplatform-v1 - 3.46.0 + 3.47.0-SNAPSHOT proto-google-cloud-aiplatform-v1 Proto library for google-cloud-aiplatform com.google.cloud google-cloud-aiplatform-parent - 3.46.0 + 3.47.0-SNAPSHOT diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/pom.xml b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/pom.xml index 8cc5b8ecab69..580b0d070bdc 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/pom.xml +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-aiplatform-v1beta1 - 0.62.0 + 0.63.0-SNAPSHOT proto-google-cloud-aiplatform-v1beta1 Proto library for google-cloud-aiplatform com.google.cloud google-cloud-aiplatform-parent - 3.46.0 + 3.47.0-SNAPSHOT diff --git a/java-alloydb-connectors/google-cloud-alloydb-connectors-bom/pom.xml b/java-alloydb-connectors/google-cloud-alloydb-connectors-bom/pom.xml index 7a0eefc0a073..213439be40a3 100644 --- a/java-alloydb-connectors/google-cloud-alloydb-connectors-bom/pom.xml +++ b/java-alloydb-connectors/google-cloud-alloydb-connectors-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-alloydb-connectors-bom - 0.23.0 + 0.24.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,22 +27,22 @@ com.google.cloud google-cloud-alloydb-connectors - 0.23.0 + 0.24.0-SNAPSHOT com.google.api.grpc proto-google-cloud-alloydb-connectors-v1alpha - 0.23.0 + 0.24.0-SNAPSHOT com.google.api.grpc proto-google-cloud-alloydb-connectors-v1beta - 0.23.0 + 0.24.0-SNAPSHOT com.google.api.grpc proto-google-cloud-alloydb-connectors-v1 - 0.23.0 + 0.24.0-SNAPSHOT diff --git a/java-alloydb-connectors/google-cloud-alloydb-connectors/pom.xml b/java-alloydb-connectors/google-cloud-alloydb-connectors/pom.xml index 5baad275e7f5..cde03434a70f 100644 --- a/java-alloydb-connectors/google-cloud-alloydb-connectors/pom.xml +++ b/java-alloydb-connectors/google-cloud-alloydb-connectors/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-alloydb-connectors - 0.23.0 + 0.24.0-SNAPSHOT jar Google AlloyDB connectors AlloyDB connectors AlloyDB is a fully-managed, PostgreSQL-compatible database for demanding transactional workloads. It provides enterprise-grade performance and availability while maintaining 100% compatibility with open-source PostgreSQL. com.google.cloud google-cloud-alloydb-connectors-parent - 0.23.0 + 0.24.0-SNAPSHOT google-cloud-alloydb-connectors diff --git a/java-alloydb-connectors/pom.xml b/java-alloydb-connectors/pom.xml index 09e6f3ad0d74..af6ad3e9ac78 100644 --- a/java-alloydb-connectors/pom.xml +++ b/java-alloydb-connectors/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-alloydb-connectors-parent pom - 0.23.0 + 0.24.0-SNAPSHOT Google AlloyDB connectors Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,22 +29,22 @@ com.google.cloud google-cloud-alloydb-connectors - 0.23.0 + 0.24.0-SNAPSHOT com.google.api.grpc proto-google-cloud-alloydb-connectors-v1 - 0.23.0 + 0.24.0-SNAPSHOT com.google.api.grpc proto-google-cloud-alloydb-connectors-v1beta - 0.23.0 + 0.24.0-SNAPSHOT com.google.api.grpc proto-google-cloud-alloydb-connectors-v1alpha - 0.23.0 + 0.24.0-SNAPSHOT diff --git a/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1/pom.xml b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1/pom.xml index d3745a59f88c..c4be3a3f5e14 100644 --- a/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1/pom.xml +++ b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-alloydb-connectors-v1 - 0.23.0 + 0.24.0-SNAPSHOT proto-google-cloud-alloydb-connectors-v1 Proto library for google-cloud-alloydb-connectors com.google.cloud google-cloud-alloydb-connectors-parent - 0.23.0 + 0.24.0-SNAPSHOT diff --git a/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/pom.xml b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/pom.xml index 1f400ec25e65..486e2cc5483a 100644 --- a/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/pom.xml +++ b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-alloydb-connectors-v1alpha - 0.23.0 + 0.24.0-SNAPSHOT proto-google-cloud-alloydb-connectors-v1alpha Proto library for google-cloud-alloydb-connectors com.google.cloud google-cloud-alloydb-connectors-parent - 0.23.0 + 0.24.0-SNAPSHOT diff --git a/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1beta/pom.xml b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1beta/pom.xml index 078ad8bf7864..e62c300dfa26 100644 --- a/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1beta/pom.xml +++ b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-alloydb-connectors-v1beta - 0.23.0 + 0.24.0-SNAPSHOT proto-google-cloud-alloydb-connectors-v1beta Proto library for google-cloud-alloydb-connectors com.google.cloud google-cloud-alloydb-connectors-parent - 0.23.0 + 0.24.0-SNAPSHOT diff --git a/java-alloydb/google-cloud-alloydb-bom/pom.xml b/java-alloydb/google-cloud-alloydb-bom/pom.xml index 5a8aece601ef..fc9e3a603070 100644 --- a/java-alloydb/google-cloud-alloydb-bom/pom.xml +++ b/java-alloydb/google-cloud-alloydb-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-alloydb-bom - 0.34.0 + 0.35.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,37 +27,37 @@ com.google.cloud google-cloud-alloydb - 0.34.0 + 0.35.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-alloydb-v1beta - 0.34.0 + 0.35.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-alloydb-v1 - 0.34.0 + 0.35.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-alloydb-v1alpha - 0.34.0 + 0.35.0-SNAPSHOT com.google.api.grpc proto-google-cloud-alloydb-v1 - 0.34.0 + 0.35.0-SNAPSHOT com.google.api.grpc proto-google-cloud-alloydb-v1beta - 0.34.0 + 0.35.0-SNAPSHOT com.google.api.grpc proto-google-cloud-alloydb-v1alpha - 0.34.0 + 0.35.0-SNAPSHOT diff --git a/java-alloydb/google-cloud-alloydb/pom.xml b/java-alloydb/google-cloud-alloydb/pom.xml index 305eff9cf1a0..c4bf388a47f2 100644 --- a/java-alloydb/google-cloud-alloydb/pom.xml +++ b/java-alloydb/google-cloud-alloydb/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-alloydb - 0.34.0 + 0.35.0-SNAPSHOT jar Google AlloyDB AlloyDB AlloyDB is a fully managed, PostgreSQL-compatible database service with industry-leading performance, availability, and scale. com.google.cloud google-cloud-alloydb-parent - 0.34.0 + 0.35.0-SNAPSHOT google-cloud-alloydb diff --git a/java-alloydb/grpc-google-cloud-alloydb-v1/pom.xml b/java-alloydb/grpc-google-cloud-alloydb-v1/pom.xml index 04819d86ad61..56381402e2ca 100644 --- a/java-alloydb/grpc-google-cloud-alloydb-v1/pom.xml +++ b/java-alloydb/grpc-google-cloud-alloydb-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-alloydb-v1 - 0.34.0 + 0.35.0-SNAPSHOT grpc-google-cloud-alloydb-v1 GRPC library for google-cloud-alloydb com.google.cloud google-cloud-alloydb-parent - 0.34.0 + 0.35.0-SNAPSHOT diff --git a/java-alloydb/grpc-google-cloud-alloydb-v1alpha/pom.xml b/java-alloydb/grpc-google-cloud-alloydb-v1alpha/pom.xml index 2972ede9bc5b..2ca8511ac967 100644 --- a/java-alloydb/grpc-google-cloud-alloydb-v1alpha/pom.xml +++ b/java-alloydb/grpc-google-cloud-alloydb-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-alloydb-v1alpha - 0.34.0 + 0.35.0-SNAPSHOT grpc-google-cloud-alloydb-v1alpha GRPC library for google-cloud-alloydb com.google.cloud google-cloud-alloydb-parent - 0.34.0 + 0.35.0-SNAPSHOT diff --git a/java-alloydb/grpc-google-cloud-alloydb-v1beta/pom.xml b/java-alloydb/grpc-google-cloud-alloydb-v1beta/pom.xml index 654860ff15dc..a270b321a5e6 100644 --- a/java-alloydb/grpc-google-cloud-alloydb-v1beta/pom.xml +++ b/java-alloydb/grpc-google-cloud-alloydb-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-alloydb-v1beta - 0.34.0 + 0.35.0-SNAPSHOT grpc-google-cloud-alloydb-v1beta GRPC library for google-cloud-alloydb com.google.cloud google-cloud-alloydb-parent - 0.34.0 + 0.35.0-SNAPSHOT diff --git a/java-alloydb/pom.xml b/java-alloydb/pom.xml index bdd1182ff23b..4e706b3565e6 100644 --- a/java-alloydb/pom.xml +++ b/java-alloydb/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-alloydb-parent pom - 0.34.0 + 0.35.0-SNAPSHOT Google AlloyDB Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.cloud google-cloud-alloydb - 0.34.0 + 0.35.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-alloydb-v1beta - 0.34.0 + 0.35.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-alloydb-v1 - 0.34.0 + 0.35.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-alloydb-v1alpha - 0.34.0 + 0.35.0-SNAPSHOT com.google.api.grpc proto-google-cloud-alloydb-v1 - 0.34.0 + 0.35.0-SNAPSHOT com.google.api.grpc proto-google-cloud-alloydb-v1beta - 0.34.0 + 0.35.0-SNAPSHOT com.google.api.grpc proto-google-cloud-alloydb-v1alpha - 0.34.0 + 0.35.0-SNAPSHOT diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/pom.xml b/java-alloydb/proto-google-cloud-alloydb-v1/pom.xml index 93d9bfe1a73d..b49455cc7225 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/pom.xml +++ b/java-alloydb/proto-google-cloud-alloydb-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-alloydb-v1 - 0.34.0 + 0.35.0-SNAPSHOT proto-google-cloud-alloydb-v1 Proto library for google-cloud-alloydb com.google.cloud google-cloud-alloydb-parent - 0.34.0 + 0.35.0-SNAPSHOT diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/pom.xml b/java-alloydb/proto-google-cloud-alloydb-v1alpha/pom.xml index 320b1291a08f..62cdd287c905 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1alpha/pom.xml +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-alloydb-v1alpha - 0.34.0 + 0.35.0-SNAPSHOT proto-google-cloud-alloydb-v1alpha Proto library for google-cloud-alloydb com.google.cloud google-cloud-alloydb-parent - 0.34.0 + 0.35.0-SNAPSHOT diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/pom.xml b/java-alloydb/proto-google-cloud-alloydb-v1beta/pom.xml index 968e1335c81a..54a1a85ce4d5 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/pom.xml +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-alloydb-v1beta - 0.34.0 + 0.35.0-SNAPSHOT proto-google-cloud-alloydb-v1beta Proto library for google-cloud-alloydb com.google.cloud google-cloud-alloydb-parent - 0.34.0 + 0.35.0-SNAPSHOT diff --git a/java-analytics-admin/google-analytics-admin-bom/pom.xml b/java-analytics-admin/google-analytics-admin-bom/pom.xml index 0b0ee8aeb512..8babd14698f1 100644 --- a/java-analytics-admin/google-analytics-admin-bom/pom.xml +++ b/java-analytics-admin/google-analytics-admin-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.analytics google-analytics-admin-bom - 0.55.0 + 0.56.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.analytics google-analytics-admin - 0.55.0 + 0.56.0-SNAPSHOT com.google.api.grpc grpc-google-analytics-admin-v1alpha - 0.55.0 + 0.56.0-SNAPSHOT com.google.api.grpc grpc-google-analytics-admin-v1beta - 0.55.0 + 0.56.0-SNAPSHOT com.google.api.grpc proto-google-analytics-admin-v1alpha - 0.55.0 + 0.56.0-SNAPSHOT com.google.api.grpc proto-google-analytics-admin-v1beta - 0.55.0 + 0.56.0-SNAPSHOT diff --git a/java-analytics-admin/google-analytics-admin/pom.xml b/java-analytics-admin/google-analytics-admin/pom.xml index 84ff5992a1c5..09be662c6bf2 100644 --- a/java-analytics-admin/google-analytics-admin/pom.xml +++ b/java-analytics-admin/google-analytics-admin/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.analytics google-analytics-admin - 0.55.0 + 0.56.0-SNAPSHOT jar Google Analytics Admin allows you to manage Google Analytics accounts and properties. com.google.analytics google-analytics-admin-parent - 0.55.0 + 0.56.0-SNAPSHOT google-analytics-admin diff --git a/java-analytics-admin/grpc-google-analytics-admin-v1alpha/pom.xml b/java-analytics-admin/grpc-google-analytics-admin-v1alpha/pom.xml index 6e6d78c705b0..a4874a089784 100644 --- a/java-analytics-admin/grpc-google-analytics-admin-v1alpha/pom.xml +++ b/java-analytics-admin/grpc-google-analytics-admin-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-admin-v1alpha - 0.55.0 + 0.56.0-SNAPSHOT grpc-google-analytics-admin-v1alpha GRPC library for grpc-google-analytics-admin-v1alpha com.google.analytics google-analytics-admin-parent - 0.55.0 + 0.56.0-SNAPSHOT diff --git a/java-analytics-admin/grpc-google-analytics-admin-v1beta/pom.xml b/java-analytics-admin/grpc-google-analytics-admin-v1beta/pom.xml index 3181f935f94d..4bb5d2201724 100644 --- a/java-analytics-admin/grpc-google-analytics-admin-v1beta/pom.xml +++ b/java-analytics-admin/grpc-google-analytics-admin-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-admin-v1beta - 0.55.0 + 0.56.0-SNAPSHOT grpc-google-analytics-admin-v1beta GRPC library for google-analytics-admin com.google.analytics google-analytics-admin-parent - 0.55.0 + 0.56.0-SNAPSHOT diff --git a/java-analytics-admin/pom.xml b/java-analytics-admin/pom.xml index 5f6a45ea3c02..87059ea2811e 100644 --- a/java-analytics-admin/pom.xml +++ b/java-analytics-admin/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-admin-parent pom - 0.55.0 + 0.56.0-SNAPSHOT Google Analytics Admin Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.analytics google-analytics-admin - 0.55.0 + 0.56.0-SNAPSHOT com.google.api.grpc proto-google-analytics-admin-v1beta - 0.55.0 + 0.56.0-SNAPSHOT com.google.api.grpc grpc-google-analytics-admin-v1beta - 0.55.0 + 0.56.0-SNAPSHOT com.google.api.grpc proto-google-analytics-admin-v1alpha - 0.55.0 + 0.56.0-SNAPSHOT com.google.api.grpc grpc-google-analytics-admin-v1alpha - 0.55.0 + 0.56.0-SNAPSHOT diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/pom.xml b/java-analytics-admin/proto-google-analytics-admin-v1alpha/pom.xml index 7f530236a31b..300cc9693166 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/pom.xml +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-admin-v1alpha - 0.55.0 + 0.56.0-SNAPSHOT proto-google-analytics-admin-v1alpha PROTO library for proto-google-analytics-admin-v1alpha com.google.analytics google-analytics-admin-parent - 0.55.0 + 0.56.0-SNAPSHOT diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/pom.xml b/java-analytics-admin/proto-google-analytics-admin-v1beta/pom.xml index 7ba5ccfdd10a..1e6c542786de 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/pom.xml +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-admin-v1beta - 0.55.0 + 0.56.0-SNAPSHOT proto-google-analytics-admin-v1beta Proto library for google-analytics-admin com.google.analytics google-analytics-admin-parent - 0.55.0 + 0.56.0-SNAPSHOT diff --git a/java-analytics-data/google-analytics-data-bom/pom.xml b/java-analytics-data/google-analytics-data-bom/pom.xml index 7f324165705c..f365b8ce8aa8 100644 --- a/java-analytics-data/google-analytics-data-bom/pom.xml +++ b/java-analytics-data/google-analytics-data-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.56.0 + 0.57.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.analytics google-analytics-data - 0.56.0 + 0.57.0-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1beta - 0.56.0 + 0.57.0-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.56.0 + 0.57.0-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1beta - 0.56.0 + 0.57.0-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1alpha - 0.56.0 + 0.57.0-SNAPSHOT diff --git a/java-analytics-data/google-analytics-data/pom.xml b/java-analytics-data/google-analytics-data/pom.xml index 8002698b77dc..63c568df19de 100644 --- a/java-analytics-data/google-analytics-data/pom.xml +++ b/java-analytics-data/google-analytics-data/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.analytics google-analytics-data - 0.56.0 + 0.57.0-SNAPSHOT jar Google Analytics Data provides programmatic methods to access report data in Google Analytics App+Web properties. com.google.analytics google-analytics-data-parent - 0.56.0 + 0.57.0-SNAPSHOT google-analytics-data diff --git a/java-analytics-data/grpc-google-analytics-data-v1alpha/pom.xml b/java-analytics-data/grpc-google-analytics-data-v1alpha/pom.xml index 2bfa4bafbdaa..adca18257bbc 100644 --- a/java-analytics-data/grpc-google-analytics-data-v1alpha/pom.xml +++ b/java-analytics-data/grpc-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.56.0 + 0.57.0-SNAPSHOT grpc-google-analytics-data-v1alpha GRPC library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.56.0 + 0.57.0-SNAPSHOT diff --git a/java-analytics-data/grpc-google-analytics-data-v1beta/pom.xml b/java-analytics-data/grpc-google-analytics-data-v1beta/pom.xml index ba213bc949af..79ba068ba471 100644 --- a/java-analytics-data/grpc-google-analytics-data-v1beta/pom.xml +++ b/java-analytics-data/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.56.0 + 0.57.0-SNAPSHOT grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.56.0 + 0.57.0-SNAPSHOT diff --git a/java-analytics-data/pom.xml b/java-analytics-data/pom.xml index 7ae68fad0832..253cd55c324d 100644 --- a/java-analytics-data/pom.xml +++ b/java-analytics-data/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.56.0 + 0.57.0-SNAPSHOT Google Analytics Data Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.analytics google-analytics-data - 0.56.0 + 0.57.0-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1alpha - 0.56.0 + 0.57.0-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.56.0 + 0.57.0-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1beta - 0.56.0 + 0.57.0-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1beta - 0.56.0 + 0.57.0-SNAPSHOT diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/pom.xml b/java-analytics-data/proto-google-analytics-data-v1alpha/pom.xml index f9f6c574c480..6dcaa437abaa 100644 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/pom.xml +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.56.0 + 0.57.0-SNAPSHOT proto-google-analytics-data-v1alpha Proto library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.56.0 + 0.57.0-SNAPSHOT diff --git a/java-analytics-data/proto-google-analytics-data-v1beta/pom.xml b/java-analytics-data/proto-google-analytics-data-v1beta/pom.xml index e84368bf7551..a0e934c61c0d 100644 --- a/java-analytics-data/proto-google-analytics-data-v1beta/pom.xml +++ b/java-analytics-data/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.56.0 + 0.57.0-SNAPSHOT proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.56.0 + 0.57.0-SNAPSHOT diff --git a/java-analyticshub/google-cloud-analyticshub-bom/pom.xml b/java-analyticshub/google-cloud-analyticshub-bom/pom.xml index 504263798e05..383f29efc309 100644 --- a/java-analyticshub/google-cloud-analyticshub-bom/pom.xml +++ b/java-analyticshub/google-cloud-analyticshub-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-analyticshub-bom - 0.42.0 + 0.43.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-analyticshub - 0.42.0 + 0.43.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-analyticshub-v1 - 0.42.0 + 0.43.0-SNAPSHOT com.google.api.grpc proto-google-cloud-analyticshub-v1 - 0.42.0 + 0.43.0-SNAPSHOT diff --git a/java-analyticshub/google-cloud-analyticshub/pom.xml b/java-analyticshub/google-cloud-analyticshub/pom.xml index 17f493319c03..9ee6811b30d9 100644 --- a/java-analyticshub/google-cloud-analyticshub/pom.xml +++ b/java-analyticshub/google-cloud-analyticshub/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-analyticshub - 0.42.0 + 0.43.0-SNAPSHOT jar Google Analytics Hub API Analytics Hub API TBD com.google.cloud google-cloud-analyticshub-parent - 0.42.0 + 0.43.0-SNAPSHOT google-cloud-analyticshub diff --git a/java-analyticshub/grpc-google-cloud-analyticshub-v1/pom.xml b/java-analyticshub/grpc-google-cloud-analyticshub-v1/pom.xml index 6332dfbafdd3..ffffe7029583 100644 --- a/java-analyticshub/grpc-google-cloud-analyticshub-v1/pom.xml +++ b/java-analyticshub/grpc-google-cloud-analyticshub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-analyticshub-v1 - 0.42.0 + 0.43.0-SNAPSHOT grpc-google-cloud-analyticshub-v1 GRPC library for google-cloud-analyticshub com.google.cloud google-cloud-analyticshub-parent - 0.42.0 + 0.43.0-SNAPSHOT diff --git a/java-analyticshub/pom.xml b/java-analyticshub/pom.xml index 4ba780c42ba9..1e0a376922e4 100644 --- a/java-analyticshub/pom.xml +++ b/java-analyticshub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-analyticshub-parent pom - 0.42.0 + 0.43.0-SNAPSHOT Google Analytics Hub API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-analyticshub - 0.42.0 + 0.43.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-analyticshub-v1 - 0.42.0 + 0.43.0-SNAPSHOT com.google.api.grpc proto-google-cloud-analyticshub-v1 - 0.42.0 + 0.43.0-SNAPSHOT diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/pom.xml b/java-analyticshub/proto-google-cloud-analyticshub-v1/pom.xml index f4a7ac8a7fda..f8955647e46a 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/pom.xml +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-analyticshub-v1 - 0.42.0 + 0.43.0-SNAPSHOT proto-google-cloud-analyticshub-v1 Proto library for google-cloud-analyticshub com.google.cloud google-cloud-analyticshub-parent - 0.42.0 + 0.43.0-SNAPSHOT diff --git a/java-api-gateway/google-cloud-api-gateway-bom/pom.xml b/java-api-gateway/google-cloud-api-gateway-bom/pom.xml index e472f1e47ae6..3e46a07a1090 100644 --- a/java-api-gateway/google-cloud-api-gateway-bom/pom.xml +++ b/java-api-gateway/google-cloud-api-gateway-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-api-gateway-bom - 2.45.0 + 2.46.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-api-gateway - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-api-gateway-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-api-gateway-v1 - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-api-gateway/google-cloud-api-gateway/pom.xml b/java-api-gateway/google-cloud-api-gateway/pom.xml index 22d2cea9289a..f5fbe632f382 100644 --- a/java-api-gateway/google-cloud-api-gateway/pom.xml +++ b/java-api-gateway/google-cloud-api-gateway/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-api-gateway - 2.45.0 + 2.46.0-SNAPSHOT jar Google API Gateway API Gateway enables you to provide secure access to your backend services through a well-defined REST API that is consistent across all of your services, regardless of the service implementation. Clients consume your REST APIS to implement standalone apps for a mobile device or tablet, through apps running in a browser, or through any other type of app that can make a request to an HTTP endpoint. com.google.cloud google-cloud-api-gateway-parent - 2.45.0 + 2.46.0-SNAPSHOT google-cloud-api-gateway diff --git a/java-api-gateway/grpc-google-cloud-api-gateway-v1/pom.xml b/java-api-gateway/grpc-google-cloud-api-gateway-v1/pom.xml index 675740f717a3..33ff0b52c47e 100644 --- a/java-api-gateway/grpc-google-cloud-api-gateway-v1/pom.xml +++ b/java-api-gateway/grpc-google-cloud-api-gateway-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-api-gateway-v1 - 2.45.0 + 2.46.0-SNAPSHOT grpc-google-cloud-api-gateway-v1 GRPC library for google-cloud-api-gateway com.google.cloud google-cloud-api-gateway-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-api-gateway/pom.xml b/java-api-gateway/pom.xml index 35d469ca9d86..41294d5644fa 100644 --- a/java-api-gateway/pom.xml +++ b/java-api-gateway/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-api-gateway-parent pom - 2.45.0 + 2.46.0-SNAPSHOT Google API Gateway Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-api-gateway - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-api-gateway-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-api-gateway-v1 - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-api-gateway/proto-google-cloud-api-gateway-v1/pom.xml b/java-api-gateway/proto-google-cloud-api-gateway-v1/pom.xml index 9abf42df098e..820adb4e0f7b 100644 --- a/java-api-gateway/proto-google-cloud-api-gateway-v1/pom.xml +++ b/java-api-gateway/proto-google-cloud-api-gateway-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-api-gateway-v1 - 2.45.0 + 2.46.0-SNAPSHOT proto-google-cloud-api-gateway-v1 Proto library for google-cloud-api-gateway com.google.cloud google-cloud-api-gateway-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-apigee-connect/google-cloud-apigee-connect-bom/pom.xml b/java-apigee-connect/google-cloud-apigee-connect-bom/pom.xml index e9515f3c43b2..ff2f1e16c35b 100644 --- a/java-apigee-connect/google-cloud-apigee-connect-bom/pom.xml +++ b/java-apigee-connect/google-cloud-apigee-connect-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-apigee-connect-bom - 2.45.0 + 2.46.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-apigee-connect - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-apigee-connect-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-apigee-connect-v1 - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-apigee-connect/google-cloud-apigee-connect/pom.xml b/java-apigee-connect/google-cloud-apigee-connect/pom.xml index 6d72deb8b55a..0384134c9915 100644 --- a/java-apigee-connect/google-cloud-apigee-connect/pom.xml +++ b/java-apigee-connect/google-cloud-apigee-connect/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-apigee-connect - 2.45.0 + 2.46.0-SNAPSHOT jar Google Apigee Connect Apigee Connect allows the Apigee hybrid management plane to connect securely to the MART service in the runtime plane without requiring you to expose the MART endpoint on the internet. com.google.cloud google-cloud-apigee-connect-parent - 2.45.0 + 2.46.0-SNAPSHOT google-cloud-apigee-connect diff --git a/java-apigee-connect/grpc-google-cloud-apigee-connect-v1/pom.xml b/java-apigee-connect/grpc-google-cloud-apigee-connect-v1/pom.xml index 18e5971ee019..8f5ddcfeee52 100644 --- a/java-apigee-connect/grpc-google-cloud-apigee-connect-v1/pom.xml +++ b/java-apigee-connect/grpc-google-cloud-apigee-connect-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-apigee-connect-v1 - 2.45.0 + 2.46.0-SNAPSHOT grpc-google-cloud-apigee-connect-v1 GRPC library for google-cloud-apigee-connect com.google.cloud google-cloud-apigee-connect-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-apigee-connect/pom.xml b/java-apigee-connect/pom.xml index 60883f90e29d..797e67d9c6ce 100644 --- a/java-apigee-connect/pom.xml +++ b/java-apigee-connect/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-apigee-connect-parent pom - 2.45.0 + 2.46.0-SNAPSHOT Google Apigee Connect Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-apigee-connect - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-apigee-connect-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-apigee-connect-v1 - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-apigee-connect/proto-google-cloud-apigee-connect-v1/pom.xml b/java-apigee-connect/proto-google-cloud-apigee-connect-v1/pom.xml index aae2464b1786..70a2be47725f 100644 --- a/java-apigee-connect/proto-google-cloud-apigee-connect-v1/pom.xml +++ b/java-apigee-connect/proto-google-cloud-apigee-connect-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-apigee-connect-v1 - 2.45.0 + 2.46.0-SNAPSHOT proto-google-cloud-apigee-connect-v1 Proto library for google-cloud-apigee-connect com.google.cloud google-cloud-apigee-connect-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-apigee-registry/google-cloud-apigee-registry-bom/pom.xml b/java-apigee-registry/google-cloud-apigee-registry-bom/pom.xml index 1a7bc5b81f39..924847dd9306 100644 --- a/java-apigee-registry/google-cloud-apigee-registry-bom/pom.xml +++ b/java-apigee-registry/google-cloud-apigee-registry-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-apigee-registry-bom - 0.45.0 + 0.46.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-apigee-registry - 0.45.0 + 0.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-apigee-registry-v1 - 0.45.0 + 0.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-apigee-registry-v1 - 0.45.0 + 0.46.0-SNAPSHOT diff --git a/java-apigee-registry/google-cloud-apigee-registry/pom.xml b/java-apigee-registry/google-cloud-apigee-registry/pom.xml index 754db73e1f36..8f3321a01e89 100644 --- a/java-apigee-registry/google-cloud-apigee-registry/pom.xml +++ b/java-apigee-registry/google-cloud-apigee-registry/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-apigee-registry - 0.45.0 + 0.46.0-SNAPSHOT jar Google Registry API Registry API allows teams to upload and share machine-readable descriptions of APIs that are in use and in development. com.google.cloud google-cloud-apigee-registry-parent - 0.45.0 + 0.46.0-SNAPSHOT google-cloud-apigee-registry diff --git a/java-apigee-registry/grpc-google-cloud-apigee-registry-v1/pom.xml b/java-apigee-registry/grpc-google-cloud-apigee-registry-v1/pom.xml index 557386bd73db..3c9546168ef4 100644 --- a/java-apigee-registry/grpc-google-cloud-apigee-registry-v1/pom.xml +++ b/java-apigee-registry/grpc-google-cloud-apigee-registry-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-apigee-registry-v1 - 0.45.0 + 0.46.0-SNAPSHOT grpc-google-cloud-apigee-registry-v1 GRPC library for google-cloud-apigee-registry com.google.cloud google-cloud-apigee-registry-parent - 0.45.0 + 0.46.0-SNAPSHOT diff --git a/java-apigee-registry/pom.xml b/java-apigee-registry/pom.xml index 948bcea1bf5c..2c017f4ef3d2 100644 --- a/java-apigee-registry/pom.xml +++ b/java-apigee-registry/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-apigee-registry-parent pom - 0.45.0 + 0.46.0-SNAPSHOT Google Registry API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-apigee-registry - 0.45.0 + 0.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-apigee-registry-v1 - 0.45.0 + 0.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-apigee-registry-v1 - 0.45.0 + 0.46.0-SNAPSHOT diff --git a/java-apigee-registry/proto-google-cloud-apigee-registry-v1/pom.xml b/java-apigee-registry/proto-google-cloud-apigee-registry-v1/pom.xml index 4cf771311dad..262892fa5b36 100644 --- a/java-apigee-registry/proto-google-cloud-apigee-registry-v1/pom.xml +++ b/java-apigee-registry/proto-google-cloud-apigee-registry-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-apigee-registry-v1 - 0.45.0 + 0.46.0-SNAPSHOT proto-google-cloud-apigee-registry-v1 Proto library for google-cloud-apigee-registry com.google.cloud google-cloud-apigee-registry-parent - 0.45.0 + 0.46.0-SNAPSHOT diff --git a/java-apikeys/google-cloud-apikeys-bom/pom.xml b/java-apikeys/google-cloud-apikeys-bom/pom.xml index 3033d022aa49..0b647218d0f3 100644 --- a/java-apikeys/google-cloud-apikeys-bom/pom.xml +++ b/java-apikeys/google-cloud-apikeys-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-apikeys-bom - 0.43.0 + 0.44.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-apikeys - 0.43.0 + 0.44.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-apikeys-v2 - 0.43.0 + 0.44.0-SNAPSHOT com.google.api.grpc proto-google-cloud-apikeys-v2 - 0.43.0 + 0.44.0-SNAPSHOT diff --git a/java-apikeys/google-cloud-apikeys/pom.xml b/java-apikeys/google-cloud-apikeys/pom.xml index be23a4328ec5..8a4899511ba8 100644 --- a/java-apikeys/google-cloud-apikeys/pom.xml +++ b/java-apikeys/google-cloud-apikeys/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-apikeys - 0.43.0 + 0.44.0-SNAPSHOT jar Google API Keys API API Keys API API Keys lets you create and manage your API keys for your projects. com.google.cloud google-cloud-apikeys-parent - 0.43.0 + 0.44.0-SNAPSHOT google-cloud-apikeys diff --git a/java-apikeys/grpc-google-cloud-apikeys-v2/pom.xml b/java-apikeys/grpc-google-cloud-apikeys-v2/pom.xml index 21415955cc36..6ce8af96d071 100644 --- a/java-apikeys/grpc-google-cloud-apikeys-v2/pom.xml +++ b/java-apikeys/grpc-google-cloud-apikeys-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-apikeys-v2 - 0.43.0 + 0.44.0-SNAPSHOT grpc-google-cloud-apikeys-v2 GRPC library for google-cloud-apikeys com.google.cloud google-cloud-apikeys-parent - 0.43.0 + 0.44.0-SNAPSHOT diff --git a/java-apikeys/pom.xml b/java-apikeys/pom.xml index 92ae40c7ec12..6e78cf1cfa85 100644 --- a/java-apikeys/pom.xml +++ b/java-apikeys/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-apikeys-parent pom - 0.43.0 + 0.44.0-SNAPSHOT Google API Keys API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-apikeys - 0.43.0 + 0.44.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-apikeys-v2 - 0.43.0 + 0.44.0-SNAPSHOT com.google.api.grpc proto-google-cloud-apikeys-v2 - 0.43.0 + 0.44.0-SNAPSHOT diff --git a/java-apikeys/proto-google-cloud-apikeys-v2/pom.xml b/java-apikeys/proto-google-cloud-apikeys-v2/pom.xml index 224ce047ffb9..0c07fd6c1d9e 100644 --- a/java-apikeys/proto-google-cloud-apikeys-v2/pom.xml +++ b/java-apikeys/proto-google-cloud-apikeys-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-apikeys-v2 - 0.43.0 + 0.44.0-SNAPSHOT proto-google-cloud-apikeys-v2 Proto library for google-cloud-apikeys com.google.cloud google-cloud-apikeys-parent - 0.43.0 + 0.44.0-SNAPSHOT diff --git a/java-appengine-admin/google-cloud-appengine-admin-bom/pom.xml b/java-appengine-admin/google-cloud-appengine-admin-bom/pom.xml index 43736d4da69f..93a2696eeaa9 100644 --- a/java-appengine-admin/google-cloud-appengine-admin-bom/pom.xml +++ b/java-appengine-admin/google-cloud-appengine-admin-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-appengine-admin-bom - 2.45.0 + 2.46.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-appengine-admin - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-appengine-admin-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-appengine-admin-v1 - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-appengine-admin/google-cloud-appengine-admin/pom.xml b/java-appengine-admin/google-cloud-appengine-admin/pom.xml index 7c072616483a..9b43250d2d7f 100644 --- a/java-appengine-admin/google-cloud-appengine-admin/pom.xml +++ b/java-appengine-admin/google-cloud-appengine-admin/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-appengine-admin - 2.45.0 + 2.46.0-SNAPSHOT jar Google App Engine Admin API App Engine Admin API you to manage your App Engine applications. com.google.cloud google-cloud-appengine-admin-parent - 2.45.0 + 2.46.0-SNAPSHOT google-cloud-appengine-admin diff --git a/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/pom.xml b/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/pom.xml index 43cc357d91dc..fe83f0ba75a8 100644 --- a/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/pom.xml +++ b/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-appengine-admin-v1 - 2.45.0 + 2.46.0-SNAPSHOT grpc-google-cloud-appengine-admin-v1 GRPC library for google-cloud-appengine-admin com.google.cloud google-cloud-appengine-admin-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-appengine-admin/pom.xml b/java-appengine-admin/pom.xml index f72debc70128..be098dd107ec 100644 --- a/java-appengine-admin/pom.xml +++ b/java-appengine-admin/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-appengine-admin-parent pom - 2.45.0 + 2.46.0-SNAPSHOT Google App Engine Admin API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-appengine-admin - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-appengine-admin-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-appengine-admin-v1 - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-appengine-admin/proto-google-cloud-appengine-admin-v1/pom.xml b/java-appengine-admin/proto-google-cloud-appengine-admin-v1/pom.xml index d9adebae90cf..d8a82f6c9503 100644 --- a/java-appengine-admin/proto-google-cloud-appengine-admin-v1/pom.xml +++ b/java-appengine-admin/proto-google-cloud-appengine-admin-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-appengine-admin-v1 - 2.45.0 + 2.46.0-SNAPSHOT proto-google-cloud-appengine-admin-v1 Proto library for google-cloud-appengine-admin com.google.cloud google-cloud-appengine-admin-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-apphub/google-cloud-apphub-bom/pom.xml b/java-apphub/google-cloud-apphub-bom/pom.xml index 17466223997d..84a1e1ee8b2a 100644 --- a/java-apphub/google-cloud-apphub-bom/pom.xml +++ b/java-apphub/google-cloud-apphub-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-apphub-bom - 0.9.0 + 0.10.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-apphub - 0.9.0 + 0.10.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-apphub-v1 - 0.9.0 + 0.10.0-SNAPSHOT com.google.api.grpc proto-google-cloud-apphub-v1 - 0.9.0 + 0.10.0-SNAPSHOT diff --git a/java-apphub/google-cloud-apphub/pom.xml b/java-apphub/google-cloud-apphub/pom.xml index 09279f8b1014..13df980b049d 100644 --- a/java-apphub/google-cloud-apphub/pom.xml +++ b/java-apphub/google-cloud-apphub/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-apphub - 0.9.0 + 0.10.0-SNAPSHOT jar Google App Hub API App Hub API App Hub simplifies the process of building, running, and managing applications on Google Cloud. com.google.cloud google-cloud-apphub-parent - 0.9.0 + 0.10.0-SNAPSHOT google-cloud-apphub diff --git a/java-apphub/grpc-google-cloud-apphub-v1/pom.xml b/java-apphub/grpc-google-cloud-apphub-v1/pom.xml index 5fb94ddc4df5..97494d936e14 100644 --- a/java-apphub/grpc-google-cloud-apphub-v1/pom.xml +++ b/java-apphub/grpc-google-cloud-apphub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-apphub-v1 - 0.9.0 + 0.10.0-SNAPSHOT grpc-google-cloud-apphub-v1 GRPC library for google-cloud-apphub com.google.cloud google-cloud-apphub-parent - 0.9.0 + 0.10.0-SNAPSHOT diff --git a/java-apphub/pom.xml b/java-apphub/pom.xml index ac9ea92b06ec..81097e125c97 100644 --- a/java-apphub/pom.xml +++ b/java-apphub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-apphub-parent pom - 0.9.0 + 0.10.0-SNAPSHOT Google App Hub API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-apphub - 0.9.0 + 0.10.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-apphub-v1 - 0.9.0 + 0.10.0-SNAPSHOT com.google.api.grpc proto-google-cloud-apphub-v1 - 0.9.0 + 0.10.0-SNAPSHOT diff --git a/java-apphub/proto-google-cloud-apphub-v1/pom.xml b/java-apphub/proto-google-cloud-apphub-v1/pom.xml index 74844421e834..9d4652a2bc5d 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/pom.xml +++ b/java-apphub/proto-google-cloud-apphub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-apphub-v1 - 0.9.0 + 0.10.0-SNAPSHOT proto-google-cloud-apphub-v1 Proto library for google-cloud-apphub com.google.cloud google-cloud-apphub-parent - 0.9.0 + 0.10.0-SNAPSHOT diff --git a/java-area120-tables/google-area120-tables-bom/pom.xml b/java-area120-tables/google-area120-tables-bom/pom.xml index 682de0979bb9..c1c2fe8bb754 100644 --- a/java-area120-tables/google-area120-tables-bom/pom.xml +++ b/java-area120-tables/google-area120-tables-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.area120 google-area120-tables-bom - 0.49.0 + 0.50.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.area120 google-area120-tables - 0.49.0 + 0.50.0-SNAPSHOT com.google.api.grpc grpc-google-area120-tables-v1alpha1 - 0.49.0 + 0.50.0-SNAPSHOT com.google.api.grpc proto-google-area120-tables-v1alpha1 - 0.49.0 + 0.50.0-SNAPSHOT diff --git a/java-area120-tables/google-area120-tables/pom.xml b/java-area120-tables/google-area120-tables/pom.xml index 95df61d4ee9b..55de2dc88253 100644 --- a/java-area120-tables/google-area120-tables/pom.xml +++ b/java-area120-tables/google-area120-tables/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.area120 google-area120-tables - 0.49.0 + 0.50.0-SNAPSHOT jar Google Area 120 Tables provides programmatic methods to the Area 120 Tables API. com.google.area120 google-area120-tables-parent - 0.49.0 + 0.50.0-SNAPSHOT google-area120-tables diff --git a/java-area120-tables/grpc-google-area120-tables-v1alpha1/pom.xml b/java-area120-tables/grpc-google-area120-tables-v1alpha1/pom.xml index ee31d7e6ad27..4b44bc31d27e 100644 --- a/java-area120-tables/grpc-google-area120-tables-v1alpha1/pom.xml +++ b/java-area120-tables/grpc-google-area120-tables-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-area120-tables-v1alpha1 - 0.49.0 + 0.50.0-SNAPSHOT grpc-google-area120-tables-v1alpha1 GRPC library for google-area120-tables com.google.area120 google-area120-tables-parent - 0.49.0 + 0.50.0-SNAPSHOT diff --git a/java-area120-tables/pom.xml b/java-area120-tables/pom.xml index b2658d660c37..36e3e684794b 100644 --- a/java-area120-tables/pom.xml +++ b/java-area120-tables/pom.xml @@ -4,7 +4,7 @@ com.google.area120 google-area120-tables-parent pom - 0.49.0 + 0.50.0-SNAPSHOT Google Area 120 Tables Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.area120 google-area120-tables - 0.49.0 + 0.50.0-SNAPSHOT com.google.api.grpc proto-google-area120-tables-v1alpha1 - 0.49.0 + 0.50.0-SNAPSHOT com.google.api.grpc grpc-google-area120-tables-v1alpha1 - 0.49.0 + 0.50.0-SNAPSHOT diff --git a/java-area120-tables/proto-google-area120-tables-v1alpha1/pom.xml b/java-area120-tables/proto-google-area120-tables-v1alpha1/pom.xml index 306b375b4e9e..303a7d408878 100644 --- a/java-area120-tables/proto-google-area120-tables-v1alpha1/pom.xml +++ b/java-area120-tables/proto-google-area120-tables-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-area120-tables-v1alpha1 - 0.49.0 + 0.50.0-SNAPSHOT proto-google-area120-tables-v1alpha1 Proto library for google-area120-tables com.google.area120 google-area120-tables-parent - 0.49.0 + 0.50.0-SNAPSHOT diff --git a/java-artifact-registry/google-cloud-artifact-registry-bom/pom.xml b/java-artifact-registry/google-cloud-artifact-registry-bom/pom.xml index 860c114209a9..df56ab3661a6 100644 --- a/java-artifact-registry/google-cloud-artifact-registry-bom/pom.xml +++ b/java-artifact-registry/google-cloud-artifact-registry-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-artifact-registry-bom - 1.44.0 + 1.45.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-artifact-registry - 1.44.0 + 1.45.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-artifact-registry-v1beta2 - 0.50.0 + 0.51.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-artifact-registry-v1 - 1.44.0 + 1.45.0-SNAPSHOT com.google.api.grpc proto-google-cloud-artifact-registry-v1beta2 - 0.50.0 + 0.51.0-SNAPSHOT com.google.api.grpc proto-google-cloud-artifact-registry-v1 - 1.44.0 + 1.45.0-SNAPSHOT diff --git a/java-artifact-registry/google-cloud-artifact-registry/pom.xml b/java-artifact-registry/google-cloud-artifact-registry/pom.xml index fdb6241dc877..f1593355a50e 100644 --- a/java-artifact-registry/google-cloud-artifact-registry/pom.xml +++ b/java-artifact-registry/google-cloud-artifact-registry/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-artifact-registry - 1.44.0 + 1.45.0-SNAPSHOT jar Google Artifact Registry provides a single place for your organization to manage container images and language packages (such as Maven and npm). It is fully integrated with Google Cloud's tooling and runtimes and comes with support for native artifact protocols. This makes it simple to integrate it with your CI/CD tooling to set up automated pipelines. com.google.cloud google-cloud-artifact-registry-parent - 1.44.0 + 1.45.0-SNAPSHOT google-cloud-artifact-registry diff --git a/java-artifact-registry/grpc-google-cloud-artifact-registry-v1/pom.xml b/java-artifact-registry/grpc-google-cloud-artifact-registry-v1/pom.xml index c80d1bbc43c8..7c05d094507f 100644 --- a/java-artifact-registry/grpc-google-cloud-artifact-registry-v1/pom.xml +++ b/java-artifact-registry/grpc-google-cloud-artifact-registry-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-artifact-registry-v1 - 1.44.0 + 1.45.0-SNAPSHOT grpc-google-cloud-artifact-registry-v1 GRPC library for google-cloud-artifact-registry com.google.cloud google-cloud-artifact-registry-parent - 1.44.0 + 1.45.0-SNAPSHOT diff --git a/java-artifact-registry/grpc-google-cloud-artifact-registry-v1beta2/pom.xml b/java-artifact-registry/grpc-google-cloud-artifact-registry-v1beta2/pom.xml index 69b1f64fdf76..a3508650ec1a 100644 --- a/java-artifact-registry/grpc-google-cloud-artifact-registry-v1beta2/pom.xml +++ b/java-artifact-registry/grpc-google-cloud-artifact-registry-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-artifact-registry-v1beta2 - 0.50.0 + 0.51.0-SNAPSHOT grpc-google-cloud-artifact-registry-v1beta2 GRPC library for google-cloud-artifact-registry com.google.cloud google-cloud-artifact-registry-parent - 1.44.0 + 1.45.0-SNAPSHOT diff --git a/java-artifact-registry/pom.xml b/java-artifact-registry/pom.xml index 2d828e6f6ea5..bf8fea79df57 100644 --- a/java-artifact-registry/pom.xml +++ b/java-artifact-registry/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-artifact-registry-parent pom - 1.44.0 + 1.45.0-SNAPSHOT Google Artifact Registry Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-artifact-registry - 1.44.0 + 1.45.0-SNAPSHOT com.google.api.grpc proto-google-cloud-artifact-registry-v1 - 1.44.0 + 1.45.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-artifact-registry-v1 - 1.44.0 + 1.45.0-SNAPSHOT com.google.api.grpc proto-google-cloud-artifact-registry-v1beta2 - 0.50.0 + 0.51.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-artifact-registry-v1beta2 - 0.50.0 + 0.51.0-SNAPSHOT diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/pom.xml b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/pom.xml index 7be6d0e28508..dfb52ee48341 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/pom.xml +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-artifact-registry-v1 - 1.44.0 + 1.45.0-SNAPSHOT proto-google-cloud-artifact-registry-v1 Proto library for google-cloud-artifact-registry com.google.cloud google-cloud-artifact-registry-parent - 1.44.0 + 1.45.0-SNAPSHOT diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1beta2/pom.xml b/java-artifact-registry/proto-google-cloud-artifact-registry-v1beta2/pom.xml index 4461b000e43b..bcab3d6f4f94 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1beta2/pom.xml +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-artifact-registry-v1beta2 - 0.50.0 + 0.51.0-SNAPSHOT grpc-google-cloud-artifact-registry-v1beta2 Proto library for google-cloud-artifact-registry com.google.cloud google-cloud-artifact-registry-parent - 1.44.0 + 1.45.0-SNAPSHOT diff --git a/java-asset/google-cloud-asset-bom/pom.xml b/java-asset/google-cloud-asset-bom/pom.xml index 90682906ae60..82fcf9b51432 100644 --- a/java-asset/google-cloud-asset-bom/pom.xml +++ b/java-asset/google-cloud-asset-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-asset-bom - 3.49.0 + 3.50.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -23,57 +23,57 @@ com.google.cloud google-cloud-asset - 3.49.0 + 3.50.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-asset-v1 - 3.49.0 + 3.50.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-asset-v1p1beta1 - 0.149.0 + 0.150.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-asset-v1p2beta1 - 0.149.0 + 0.150.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-asset-v1p5beta1 - 0.149.0 + 0.150.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-asset-v1p7beta1 - 3.49.0 + 3.50.0-SNAPSHOT com.google.api.grpc proto-google-cloud-asset-v1 - 3.49.0 + 3.50.0-SNAPSHOT com.google.api.grpc proto-google-cloud-asset-v1p1beta1 - 0.149.0 + 0.150.0-SNAPSHOT com.google.api.grpc proto-google-cloud-asset-v1p2beta1 - 0.149.0 + 0.150.0-SNAPSHOT com.google.api.grpc proto-google-cloud-asset-v1p5beta1 - 0.149.0 + 0.150.0-SNAPSHOT com.google.api.grpc proto-google-cloud-asset-v1p7beta1 - 3.49.0 + 3.50.0-SNAPSHOT diff --git a/java-asset/google-cloud-asset/pom.xml b/java-asset/google-cloud-asset/pom.xml index eb74b25cae58..ea2855956f48 100644 --- a/java-asset/google-cloud-asset/pom.xml +++ b/java-asset/google-cloud-asset/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-asset - 3.49.0 + 3.50.0-SNAPSHOT jar Google Cloud Asset Java idiomatic client for Google Cloud Asset com.google.cloud google-cloud-asset-parent - 3.49.0 + 3.50.0-SNAPSHOT google-cloud-asset diff --git a/java-asset/grpc-google-cloud-asset-v1/pom.xml b/java-asset/grpc-google-cloud-asset-v1/pom.xml index d952cfee7a0b..ae22f4513328 100644 --- a/java-asset/grpc-google-cloud-asset-v1/pom.xml +++ b/java-asset/grpc-google-cloud-asset-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-asset-v1 - 3.49.0 + 3.50.0-SNAPSHOT grpc-google-cloud-asset-v1 GRPC library for grpc-google-cloud-asset-v1 com.google.cloud google-cloud-asset-parent - 3.49.0 + 3.50.0-SNAPSHOT diff --git a/java-asset/grpc-google-cloud-asset-v1p1beta1/pom.xml b/java-asset/grpc-google-cloud-asset-v1p1beta1/pom.xml index ab77e730b0c5..0f15c1932db0 100644 --- a/java-asset/grpc-google-cloud-asset-v1p1beta1/pom.xml +++ b/java-asset/grpc-google-cloud-asset-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-asset-v1p1beta1 - 0.149.0 + 0.150.0-SNAPSHOT grpc-google-cloud-asset-v1p1beta1 GRPC library for grpc-google-cloud-asset-v1p1beta1 com.google.cloud google-cloud-asset-parent - 3.49.0 + 3.50.0-SNAPSHOT diff --git a/java-asset/grpc-google-cloud-asset-v1p2beta1/pom.xml b/java-asset/grpc-google-cloud-asset-v1p2beta1/pom.xml index 481f1e7539b0..ac416546f736 100644 --- a/java-asset/grpc-google-cloud-asset-v1p2beta1/pom.xml +++ b/java-asset/grpc-google-cloud-asset-v1p2beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-asset-v1p2beta1 - 0.149.0 + 0.150.0-SNAPSHOT grpc-google-cloud-asset-v1p2beta1 GRPC library for grpc-google-cloud-asset-v1p2beta1 com.google.cloud google-cloud-asset-parent - 3.49.0 + 3.50.0-SNAPSHOT diff --git a/java-asset/grpc-google-cloud-asset-v1p5beta1/pom.xml b/java-asset/grpc-google-cloud-asset-v1p5beta1/pom.xml index 9841c830254f..e0eec16abe0a 100644 --- a/java-asset/grpc-google-cloud-asset-v1p5beta1/pom.xml +++ b/java-asset/grpc-google-cloud-asset-v1p5beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-asset-v1p5beta1 - 0.149.0 + 0.150.0-SNAPSHOT grpc-google-cloud-asset-v1p5beta1 GRPC library for grpc-google-cloud-asset-v1p5beta1 com.google.cloud google-cloud-asset-parent - 3.49.0 + 3.50.0-SNAPSHOT diff --git a/java-asset/grpc-google-cloud-asset-v1p7beta1/pom.xml b/java-asset/grpc-google-cloud-asset-v1p7beta1/pom.xml index 62ad1edf6760..2dba8e73a92a 100644 --- a/java-asset/grpc-google-cloud-asset-v1p7beta1/pom.xml +++ b/java-asset/grpc-google-cloud-asset-v1p7beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-asset-v1p7beta1 - 3.49.0 + 3.50.0-SNAPSHOT grpc-google-cloud-asset-v1p7beta1 GRPC library for google-cloud-asset com.google.cloud google-cloud-asset-parent - 3.49.0 + 3.50.0-SNAPSHOT diff --git a/java-asset/pom.xml b/java-asset/pom.xml index f785c070aeb7..3541b6b35435 100644 --- a/java-asset/pom.xml +++ b/java-asset/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-asset-parent pom - 3.49.0 + 3.50.0-SNAPSHOT Google Cloud Asset Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,77 +29,77 @@ com.google.api.grpc proto-google-cloud-asset-v1 - 3.49.0 + 3.50.0-SNAPSHOT com.google.api.grpc proto-google-cloud-asset-v1p7beta1 - 3.49.0 + 3.50.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-asset-v1p7beta1 - 3.49.0 + 3.50.0-SNAPSHOT com.google.api.grpc proto-google-cloud-asset-v1p1beta1 - 0.149.0 + 0.150.0-SNAPSHOT com.google.api.grpc proto-google-cloud-asset-v1p2beta1 - 0.149.0 + 0.150.0-SNAPSHOT com.google.api.grpc proto-google-cloud-asset-v1p5beta1 - 0.149.0 + 0.150.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-asset-v1 - 3.49.0 + 3.50.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-asset-v1p1beta1 - 0.149.0 + 0.150.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-asset-v1p2beta1 - 0.149.0 + 0.150.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-asset-v1p5beta1 - 0.149.0 + 0.150.0-SNAPSHOT com.google.cloud google-cloud-asset - 3.49.0 + 3.50.0-SNAPSHOT com.google.api.grpc proto-google-cloud-orgpolicy-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc proto-google-identity-accesscontextmanager-v1 - 1.46.0 + 1.47.0-SNAPSHOT com.google.api.grpc proto-google-cloud-os-config-v1 - 2.47.0 + 2.48.0-SNAPSHOT com.google.cloud google-cloud-resourcemanager - 1.47.0 + 1.48.0-SNAPSHOT test diff --git a/java-asset/proto-google-cloud-asset-v1/pom.xml b/java-asset/proto-google-cloud-asset-v1/pom.xml index 93632f8417be..e0d7c49efa78 100644 --- a/java-asset/proto-google-cloud-asset-v1/pom.xml +++ b/java-asset/proto-google-cloud-asset-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-asset-v1 - 3.49.0 + 3.50.0-SNAPSHOT proto-google-cloud-asset-v1 PROTO library for proto-google-cloud-asset-v1 com.google.cloud google-cloud-asset-parent - 3.49.0 + 3.50.0-SNAPSHOT diff --git a/java-asset/proto-google-cloud-asset-v1p1beta1/pom.xml b/java-asset/proto-google-cloud-asset-v1p1beta1/pom.xml index 423ad92ad0fd..1b163e5a26eb 100644 --- a/java-asset/proto-google-cloud-asset-v1p1beta1/pom.xml +++ b/java-asset/proto-google-cloud-asset-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-asset-v1p1beta1 - 0.149.0 + 0.150.0-SNAPSHOT proto-google-cloud-asset-v1p1beta1 PROTO library for proto-google-cloud-asset-v1p1beta1 com.google.cloud google-cloud-asset-parent - 3.49.0 + 3.50.0-SNAPSHOT diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/pom.xml b/java-asset/proto-google-cloud-asset-v1p2beta1/pom.xml index f55fbc7f0ed9..f4625ed50e32 100644 --- a/java-asset/proto-google-cloud-asset-v1p2beta1/pom.xml +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-asset-v1p2beta1 - 0.149.0 + 0.150.0-SNAPSHOT proto-google-cloud-asset-v1p2beta1 PROTO library for proto-google-cloud-asset-v1p2beta1 com.google.cloud google-cloud-asset-parent - 3.49.0 + 3.50.0-SNAPSHOT diff --git a/java-asset/proto-google-cloud-asset-v1p5beta1/pom.xml b/java-asset/proto-google-cloud-asset-v1p5beta1/pom.xml index 93f19cadcbe7..306c4229ff84 100644 --- a/java-asset/proto-google-cloud-asset-v1p5beta1/pom.xml +++ b/java-asset/proto-google-cloud-asset-v1p5beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-asset-v1p5beta1 - 0.149.0 + 0.150.0-SNAPSHOT proto-google-cloud-asset-v1p5beta1 PROTO library for proto-google-cloud-asset-v1p4beta1 com.google.cloud google-cloud-asset-parent - 3.49.0 + 3.50.0-SNAPSHOT diff --git a/java-asset/proto-google-cloud-asset-v1p7beta1/pom.xml b/java-asset/proto-google-cloud-asset-v1p7beta1/pom.xml index 146df04643ef..08cf71fcd044 100644 --- a/java-asset/proto-google-cloud-asset-v1p7beta1/pom.xml +++ b/java-asset/proto-google-cloud-asset-v1p7beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-asset-v1p7beta1 - 3.49.0 + 3.50.0-SNAPSHOT proto-google-cloud-asset-v1p7beta1 Proto library for google-cloud-asset com.google.cloud google-cloud-asset-parent - 3.49.0 + 3.50.0-SNAPSHOT diff --git a/java-assured-workloads/google-cloud-assured-workloads-bom/pom.xml b/java-assured-workloads/google-cloud-assured-workloads-bom/pom.xml index a484b0827bf4..9bbe67649490 100644 --- a/java-assured-workloads/google-cloud-assured-workloads-bom/pom.xml +++ b/java-assured-workloads/google-cloud-assured-workloads-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-assured-workloads-bom - 2.45.0 + 2.46.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-assured-workloads - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-assured-workloads-v1beta1 - 0.57.0 + 0.58.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-assured-workloads-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-assured-workloads-v1beta1 - 0.57.0 + 0.58.0-SNAPSHOT com.google.api.grpc proto-google-cloud-assured-workloads-v1 - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-assured-workloads/google-cloud-assured-workloads/pom.xml b/java-assured-workloads/google-cloud-assured-workloads/pom.xml index 591a14b48345..77995f5cea84 100644 --- a/java-assured-workloads/google-cloud-assured-workloads/pom.xml +++ b/java-assured-workloads/google-cloud-assured-workloads/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-assured-workloads - 2.45.0 + 2.46.0-SNAPSHOT jar Google Assured Workloads for Government allows you to secure your government workloads and accelerate your path to running compliant workloads on Google Cloud with Assured Workloads for Government. com.google.cloud google-cloud-assured-workloads-parent - 2.45.0 + 2.46.0-SNAPSHOT google-cloud-assured-workloads diff --git a/java-assured-workloads/grpc-google-cloud-assured-workloads-v1/pom.xml b/java-assured-workloads/grpc-google-cloud-assured-workloads-v1/pom.xml index 0a24edbd271f..657e6fb69e16 100644 --- a/java-assured-workloads/grpc-google-cloud-assured-workloads-v1/pom.xml +++ b/java-assured-workloads/grpc-google-cloud-assured-workloads-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-assured-workloads-v1 - 2.45.0 + 2.46.0-SNAPSHOT grpc-google-cloud-assured-workloads-v1 GRPC library for google-cloud-assured-workloads com.google.cloud google-cloud-assured-workloads-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-assured-workloads/grpc-google-cloud-assured-workloads-v1beta1/pom.xml b/java-assured-workloads/grpc-google-cloud-assured-workloads-v1beta1/pom.xml index cc6c11a729a6..b483b985b698 100644 --- a/java-assured-workloads/grpc-google-cloud-assured-workloads-v1beta1/pom.xml +++ b/java-assured-workloads/grpc-google-cloud-assured-workloads-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-assured-workloads-v1beta1 - 0.57.0 + 0.58.0-SNAPSHOT grpc-google-cloud-assured-workloads-v1beta1 GRPC library for google-cloud-assured-workloads com.google.cloud google-cloud-assured-workloads-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-assured-workloads/pom.xml b/java-assured-workloads/pom.xml index a20e77036ae2..f9f36489cd5e 100644 --- a/java-assured-workloads/pom.xml +++ b/java-assured-workloads/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-assured-workloads-parent pom - 2.45.0 + 2.46.0-SNAPSHOT Google Assured Workloads for Government Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-assured-workloads - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-assured-workloads-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-assured-workloads-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-assured-workloads-v1beta1 - 0.57.0 + 0.58.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-assured-workloads-v1beta1 - 0.57.0 + 0.58.0-SNAPSHOT diff --git a/java-assured-workloads/proto-google-cloud-assured-workloads-v1/pom.xml b/java-assured-workloads/proto-google-cloud-assured-workloads-v1/pom.xml index 67ac85fe4b4d..e5ec299e702b 100644 --- a/java-assured-workloads/proto-google-cloud-assured-workloads-v1/pom.xml +++ b/java-assured-workloads/proto-google-cloud-assured-workloads-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-assured-workloads-v1 - 2.45.0 + 2.46.0-SNAPSHOT proto-google-cloud-assured-workloads-v1 Proto library for google-cloud-assured-workloads com.google.cloud google-cloud-assured-workloads-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/pom.xml b/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/pom.xml index bff27b87185d..c7041aa726a3 100644 --- a/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/pom.xml +++ b/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-assured-workloads-v1beta1 - 0.57.0 + 0.58.0-SNAPSHOT proto-google-cloud-assured-workloads-v1beta1 Proto library for google-cloud-assured-workloads com.google.cloud google-cloud-assured-workloads-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-automl/google-cloud-automl-bom/pom.xml b/java-automl/google-cloud-automl-bom/pom.xml index 7f4cce42f216..09cd687e901f 100644 --- a/java-automl/google-cloud-automl-bom/pom.xml +++ b/java-automl/google-cloud-automl-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-automl-bom - 2.45.0 + 2.46.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-automl - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-automl-v1beta1 - 0.132.0 + 0.133.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-automl-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-automl-v1beta1 - 0.132.0 + 0.133.0-SNAPSHOT com.google.api.grpc proto-google-cloud-automl-v1 - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-automl/google-cloud-automl/pom.xml b/java-automl/google-cloud-automl/pom.xml index 483e75486ce1..4c66f9c5132e 100644 --- a/java-automl/google-cloud-automl/pom.xml +++ b/java-automl/google-cloud-automl/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-automl - 2.45.0 + 2.46.0-SNAPSHOT jar Google Cloud AutoML Java idiomatic client for Google Cloud Auto ML com.google.cloud google-cloud-automl-parent - 2.45.0 + 2.46.0-SNAPSHOT google-cloud-automl diff --git a/java-automl/grpc-google-cloud-automl-v1/pom.xml b/java-automl/grpc-google-cloud-automl-v1/pom.xml index 978f18e5f429..f8297c04783c 100644 --- a/java-automl/grpc-google-cloud-automl-v1/pom.xml +++ b/java-automl/grpc-google-cloud-automl-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-automl-v1 - 2.45.0 + 2.46.0-SNAPSHOT grpc-google-cloud-automl-v1 GRPC library for grpc-google-cloud-automl-v1 com.google.cloud google-cloud-automl-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-automl/grpc-google-cloud-automl-v1beta1/pom.xml b/java-automl/grpc-google-cloud-automl-v1beta1/pom.xml index a310b25f178f..0a4f9850e849 100644 --- a/java-automl/grpc-google-cloud-automl-v1beta1/pom.xml +++ b/java-automl/grpc-google-cloud-automl-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-automl-v1beta1 - 0.132.0 + 0.133.0-SNAPSHOT grpc-google-cloud-automl-v1beta1 GRPC library for grpc-google-cloud-automl-v1beta1 com.google.cloud google-cloud-automl-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-automl/pom.xml b/java-automl/pom.xml index c0ac11f1fe63..1752cdc943f6 100644 --- a/java-automl/pom.xml +++ b/java-automl/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-automl-parent pom - 2.45.0 + 2.46.0-SNAPSHOT Google Cloud AutoML Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-automl-v1beta1 - 0.132.0 + 0.133.0-SNAPSHOT com.google.api.grpc proto-google-cloud-automl-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-automl-v1beta1 - 0.132.0 + 0.133.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-automl-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.cloud google-cloud-automl - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-automl/proto-google-cloud-automl-v1/pom.xml b/java-automl/proto-google-cloud-automl-v1/pom.xml index 84445bbb8fd5..d9a8a453465e 100644 --- a/java-automl/proto-google-cloud-automl-v1/pom.xml +++ b/java-automl/proto-google-cloud-automl-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-automl-v1 - 2.45.0 + 2.46.0-SNAPSHOT proto-google-cloud-automl-v1 PROTO library for proto-google-cloud-automl-v1 com.google.cloud google-cloud-automl-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-automl/proto-google-cloud-automl-v1beta1/pom.xml b/java-automl/proto-google-cloud-automl-v1beta1/pom.xml index 556812391e8d..aa0b02ee9346 100644 --- a/java-automl/proto-google-cloud-automl-v1beta1/pom.xml +++ b/java-automl/proto-google-cloud-automl-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-automl-v1beta1 - 0.132.0 + 0.133.0-SNAPSHOT proto-google-cloud-automl-v1beta1 PROTO library for proto-google-cloud-automl-v1beta1 com.google.cloud google-cloud-automl-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-backupdr/google-cloud-backupdr-bom/pom.xml b/java-backupdr/google-cloud-backupdr-bom/pom.xml index 2474cf648d57..9c3e69034e08 100644 --- a/java-backupdr/google-cloud-backupdr-bom/pom.xml +++ b/java-backupdr/google-cloud-backupdr-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-backupdr-bom - 0.4.0 + 0.5.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-backupdr - 0.4.0 + 0.5.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-backupdr-v1 - 0.4.0 + 0.5.0-SNAPSHOT com.google.api.grpc proto-google-cloud-backupdr-v1 - 0.4.0 + 0.5.0-SNAPSHOT diff --git a/java-backupdr/google-cloud-backupdr/pom.xml b/java-backupdr/google-cloud-backupdr/pom.xml index 66f00851dd41..9bb608c0ef7d 100644 --- a/java-backupdr/google-cloud-backupdr/pom.xml +++ b/java-backupdr/google-cloud-backupdr/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-backupdr - 0.4.0 + 0.5.0-SNAPSHOT jar Google Backup and DR Service API Backup and DR Service API Backup and DR Service is a powerful, centralized, cloud-first backup and disaster recovery solution for cloud-based and hybrid workloads. com.google.cloud google-cloud-backupdr-parent - 0.4.0 + 0.5.0-SNAPSHOT google-cloud-backupdr diff --git a/java-backupdr/grpc-google-cloud-backupdr-v1/pom.xml b/java-backupdr/grpc-google-cloud-backupdr-v1/pom.xml index 0d4648dab9a8..8fd220dc00cc 100644 --- a/java-backupdr/grpc-google-cloud-backupdr-v1/pom.xml +++ b/java-backupdr/grpc-google-cloud-backupdr-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-backupdr-v1 - 0.4.0 + 0.5.0-SNAPSHOT grpc-google-cloud-backupdr-v1 GRPC library for google-cloud-backupdr com.google.cloud google-cloud-backupdr-parent - 0.4.0 + 0.5.0-SNAPSHOT diff --git a/java-backupdr/pom.xml b/java-backupdr/pom.xml index 5e1f0329781a..863bdff3d4ad 100644 --- a/java-backupdr/pom.xml +++ b/java-backupdr/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-backupdr-parent pom - 0.4.0 + 0.5.0-SNAPSHOT Google Backup and DR Service API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-backupdr - 0.4.0 + 0.5.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-backupdr-v1 - 0.4.0 + 0.5.0-SNAPSHOT com.google.api.grpc proto-google-cloud-backupdr-v1 - 0.4.0 + 0.5.0-SNAPSHOT diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/pom.xml b/java-backupdr/proto-google-cloud-backupdr-v1/pom.xml index 65bf5cf37aeb..17cd3ea3a73f 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/pom.xml +++ b/java-backupdr/proto-google-cloud-backupdr-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-backupdr-v1 - 0.4.0 + 0.5.0-SNAPSHOT proto-google-cloud-backupdr-v1 Proto library for google-cloud-backupdr com.google.cloud google-cloud-backupdr-parent - 0.4.0 + 0.5.0-SNAPSHOT diff --git a/java-bare-metal-solution/google-cloud-bare-metal-solution-bom/pom.xml b/java-bare-metal-solution/google-cloud-bare-metal-solution-bom/pom.xml index 4491c4d06119..0d763342ad49 100644 --- a/java-bare-metal-solution/google-cloud-bare-metal-solution-bom/pom.xml +++ b/java-bare-metal-solution/google-cloud-bare-metal-solution-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-bare-metal-solution-bom - 0.45.0 + 0.46.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-bare-metal-solution - 0.45.0 + 0.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bare-metal-solution-v2 - 0.45.0 + 0.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bare-metal-solution-v2 - 0.45.0 + 0.46.0-SNAPSHOT diff --git a/java-bare-metal-solution/google-cloud-bare-metal-solution/pom.xml b/java-bare-metal-solution/google-cloud-bare-metal-solution/pom.xml index c9278ccd4fa4..98039337738b 100644 --- a/java-bare-metal-solution/google-cloud-bare-metal-solution/pom.xml +++ b/java-bare-metal-solution/google-cloud-bare-metal-solution/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-bare-metal-solution - 0.45.0 + 0.46.0-SNAPSHOT jar Google Bare Metal SOlution Bare Metal SOlution Bring your Oracle workloads to Google Cloud with Bare Metal Solution and jumpstart your cloud journey with minimal risk. com.google.cloud google-cloud-bare-metal-solution-parent - 0.45.0 + 0.46.0-SNAPSHOT google-cloud-bare-metal-solution diff --git a/java-bare-metal-solution/grpc-google-cloud-bare-metal-solution-v2/pom.xml b/java-bare-metal-solution/grpc-google-cloud-bare-metal-solution-v2/pom.xml index 88503a2a888d..02d08d99954f 100644 --- a/java-bare-metal-solution/grpc-google-cloud-bare-metal-solution-v2/pom.xml +++ b/java-bare-metal-solution/grpc-google-cloud-bare-metal-solution-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bare-metal-solution-v2 - 0.45.0 + 0.46.0-SNAPSHOT grpc-google-cloud-bare-metal-solution-v2 GRPC library for google-cloud-bare-metal-solution com.google.cloud google-cloud-bare-metal-solution-parent - 0.45.0 + 0.46.0-SNAPSHOT diff --git a/java-bare-metal-solution/pom.xml b/java-bare-metal-solution/pom.xml index 144ad5bfbb69..543e9fd73ca9 100644 --- a/java-bare-metal-solution/pom.xml +++ b/java-bare-metal-solution/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bare-metal-solution-parent pom - 0.45.0 + 0.46.0-SNAPSHOT Google Bare Metal SOlution Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-bare-metal-solution - 0.45.0 + 0.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bare-metal-solution-v2 - 0.45.0 + 0.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bare-metal-solution-v2 - 0.45.0 + 0.46.0-SNAPSHOT diff --git a/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/pom.xml b/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/pom.xml index 2351c636bae2..c472001279dc 100644 --- a/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/pom.xml +++ b/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bare-metal-solution-v2 - 0.45.0 + 0.46.0-SNAPSHOT proto-google-cloud-bare-metal-solution-v2 Proto library for google-cloud-bare-metal-solution com.google.cloud google-cloud-bare-metal-solution-parent - 0.45.0 + 0.46.0-SNAPSHOT diff --git a/java-batch/google-cloud-batch-bom/pom.xml b/java-batch/google-cloud-batch-bom/pom.xml index 93e466eb6d26..86e7ad74bf66 100644 --- a/java-batch/google-cloud-batch-bom/pom.xml +++ b/java-batch/google-cloud-batch-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-batch-bom - 0.45.0 + 0.46.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-batch - 0.45.0 + 0.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-batch-v1 - 0.45.0 + 0.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-batch-v1alpha - 0.45.0 + 0.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-batch-v1 - 0.45.0 + 0.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-batch-v1alpha - 0.45.0 + 0.46.0-SNAPSHOT diff --git a/java-batch/google-cloud-batch/pom.xml b/java-batch/google-cloud-batch/pom.xml index d41afa8625a1..f734848cf88f 100644 --- a/java-batch/google-cloud-batch/pom.xml +++ b/java-batch/google-cloud-batch/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-batch - 0.45.0 + 0.46.0-SNAPSHOT jar Google Google Cloud Batch Google Cloud Batch n/a com.google.cloud google-cloud-batch-parent - 0.45.0 + 0.46.0-SNAPSHOT google-cloud-batch diff --git a/java-batch/grpc-google-cloud-batch-v1/pom.xml b/java-batch/grpc-google-cloud-batch-v1/pom.xml index db0786ac754b..0b91141f05b3 100644 --- a/java-batch/grpc-google-cloud-batch-v1/pom.xml +++ b/java-batch/grpc-google-cloud-batch-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-batch-v1 - 0.45.0 + 0.46.0-SNAPSHOT grpc-google-cloud-batch-v1 GRPC library for google-cloud-batch com.google.cloud google-cloud-batch-parent - 0.45.0 + 0.46.0-SNAPSHOT diff --git a/java-batch/grpc-google-cloud-batch-v1alpha/pom.xml b/java-batch/grpc-google-cloud-batch-v1alpha/pom.xml index 36804a368587..d569de72a52f 100644 --- a/java-batch/grpc-google-cloud-batch-v1alpha/pom.xml +++ b/java-batch/grpc-google-cloud-batch-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-batch-v1alpha - 0.45.0 + 0.46.0-SNAPSHOT grpc-google-cloud-batch-v1alpha GRPC library for google-cloud-batch com.google.cloud google-cloud-batch-parent - 0.45.0 + 0.46.0-SNAPSHOT diff --git a/java-batch/pom.xml b/java-batch/pom.xml index eceb6a7923d4..a8358874b1c8 100644 --- a/java-batch/pom.xml +++ b/java-batch/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-batch-parent pom - 0.45.0 + 0.46.0-SNAPSHOT Google Google Cloud Batch Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-batch - 0.45.0 + 0.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-batch-v1alpha - 0.45.0 + 0.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-batch-v1alpha - 0.45.0 + 0.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-batch-v1 - 0.45.0 + 0.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-batch-v1 - 0.45.0 + 0.46.0-SNAPSHOT diff --git a/java-batch/proto-google-cloud-batch-v1/pom.xml b/java-batch/proto-google-cloud-batch-v1/pom.xml index e10b66e6ea3b..c26255abde3b 100644 --- a/java-batch/proto-google-cloud-batch-v1/pom.xml +++ b/java-batch/proto-google-cloud-batch-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-batch-v1 - 0.45.0 + 0.46.0-SNAPSHOT proto-google-cloud-batch-v1 Proto library for google-cloud-batch com.google.cloud google-cloud-batch-parent - 0.45.0 + 0.46.0-SNAPSHOT diff --git a/java-batch/proto-google-cloud-batch-v1alpha/pom.xml b/java-batch/proto-google-cloud-batch-v1alpha/pom.xml index 3b639f962a30..cbc942d6d70a 100644 --- a/java-batch/proto-google-cloud-batch-v1alpha/pom.xml +++ b/java-batch/proto-google-cloud-batch-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-batch-v1alpha - 0.45.0 + 0.46.0-SNAPSHOT proto-google-cloud-batch-v1alpha Proto library for google-cloud-batch com.google.cloud google-cloud-batch-parent - 0.45.0 + 0.46.0-SNAPSHOT diff --git a/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections-bom/pom.xml b/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections-bom/pom.xml index 38d0b39f6943..d4fc88850e3e 100644 --- a/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections-bom/pom.xml +++ b/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-appconnections-bom - 0.43.0 + 0.44.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-beyondcorp-appconnections - 0.43.0 + 0.44.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-beyondcorp-appconnections-v1 - 0.43.0 + 0.44.0-SNAPSHOT com.google.api.grpc proto-google-cloud-beyondcorp-appconnections-v1 - 0.43.0 + 0.44.0-SNAPSHOT diff --git a/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/pom.xml b/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/pom.xml index e4b6ddeadf18..6be73fc69093 100644 --- a/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/pom.xml +++ b/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-appconnections - 0.43.0 + 0.44.0-SNAPSHOT jar Google BeyondCorp AppConnections BeyondCorp AppConnections is Google's implementation of the zero trust model. It builds upon a decade of experience at Google, combined with ideas and best practices from the community. By shifting access controls from the network perimeter to individual users, BeyondCorp enables secure work from virtually any location without the need for a traditional VPN. com.google.cloud google-cloud-beyondcorp-appconnections-parent - 0.43.0 + 0.44.0-SNAPSHOT google-cloud-beyondcorp-appconnections diff --git a/java-beyondcorp-appconnections/grpc-google-cloud-beyondcorp-appconnections-v1/pom.xml b/java-beyondcorp-appconnections/grpc-google-cloud-beyondcorp-appconnections-v1/pom.xml index 25df37eaac99..9d8f6b6003fe 100644 --- a/java-beyondcorp-appconnections/grpc-google-cloud-beyondcorp-appconnections-v1/pom.xml +++ b/java-beyondcorp-appconnections/grpc-google-cloud-beyondcorp-appconnections-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-beyondcorp-appconnections-v1 - 0.43.0 + 0.44.0-SNAPSHOT grpc-google-cloud-beyondcorp-appconnections-v1 GRPC library for google-cloud-beyondcorp-appconnections com.google.cloud google-cloud-beyondcorp-appconnections-parent - 0.43.0 + 0.44.0-SNAPSHOT diff --git a/java-beyondcorp-appconnections/pom.xml b/java-beyondcorp-appconnections/pom.xml index 9297a36857c7..9bbd01ec2342 100644 --- a/java-beyondcorp-appconnections/pom.xml +++ b/java-beyondcorp-appconnections/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-beyondcorp-appconnections-parent pom - 0.43.0 + 0.44.0-SNAPSHOT Google BeyondCorp AppConnections Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-beyondcorp-appconnections - 0.43.0 + 0.44.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-beyondcorp-appconnections-v1 - 0.43.0 + 0.44.0-SNAPSHOT com.google.api.grpc proto-google-cloud-beyondcorp-appconnections-v1 - 0.43.0 + 0.44.0-SNAPSHOT diff --git a/java-beyondcorp-appconnections/proto-google-cloud-beyondcorp-appconnections-v1/pom.xml b/java-beyondcorp-appconnections/proto-google-cloud-beyondcorp-appconnections-v1/pom.xml index d803b77b2608..3dbf8b714903 100644 --- a/java-beyondcorp-appconnections/proto-google-cloud-beyondcorp-appconnections-v1/pom.xml +++ b/java-beyondcorp-appconnections/proto-google-cloud-beyondcorp-appconnections-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-beyondcorp-appconnections-v1 - 0.43.0 + 0.44.0-SNAPSHOT proto-google-cloud-beyondcorp-appconnections-v1 Proto library for google-cloud-beyondcorp-appconnections com.google.cloud google-cloud-beyondcorp-appconnections-parent - 0.43.0 + 0.44.0-SNAPSHOT diff --git a/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors-bom/pom.xml b/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors-bom/pom.xml index e4a2e451bbf4..76b6b13982fd 100644 --- a/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors-bom/pom.xml +++ b/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-appconnectors-bom - 0.43.0 + 0.44.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-beyondcorp-appconnectors - 0.43.0 + 0.44.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-beyondcorp-appconnectors-v1 - 0.43.0 + 0.44.0-SNAPSHOT com.google.api.grpc proto-google-cloud-beyondcorp-appconnectors-v1 - 0.43.0 + 0.44.0-SNAPSHOT diff --git a/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/pom.xml b/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/pom.xml index 2c6cb23a9548..ce09244b8906 100644 --- a/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/pom.xml +++ b/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-appconnectors - 0.43.0 + 0.44.0-SNAPSHOT jar Google BeyondCorp AppConnectors BeyondCorp AppConnectors provides methods to manage (create/read/update/delete) BeyondCorp AppConnectors. com.google.cloud google-cloud-beyondcorp-appconnectors-parent - 0.43.0 + 0.44.0-SNAPSHOT google-cloud-beyondcorp-appconnectors diff --git a/java-beyondcorp-appconnectors/grpc-google-cloud-beyondcorp-appconnectors-v1/pom.xml b/java-beyondcorp-appconnectors/grpc-google-cloud-beyondcorp-appconnectors-v1/pom.xml index 17037abde5c8..8c51e1791a38 100644 --- a/java-beyondcorp-appconnectors/grpc-google-cloud-beyondcorp-appconnectors-v1/pom.xml +++ b/java-beyondcorp-appconnectors/grpc-google-cloud-beyondcorp-appconnectors-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-beyondcorp-appconnectors-v1 - 0.43.0 + 0.44.0-SNAPSHOT grpc-google-cloud-beyondcorp-appconnectors-v1 GRPC library for google-cloud-beyondcorp-appconnectors com.google.cloud google-cloud-beyondcorp-appconnectors-parent - 0.43.0 + 0.44.0-SNAPSHOT diff --git a/java-beyondcorp-appconnectors/pom.xml b/java-beyondcorp-appconnectors/pom.xml index 2617a59d1134..7d2b22226590 100644 --- a/java-beyondcorp-appconnectors/pom.xml +++ b/java-beyondcorp-appconnectors/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-beyondcorp-appconnectors-parent pom - 0.43.0 + 0.44.0-SNAPSHOT Google BeyondCorp AppConnectors Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-beyondcorp-appconnectors - 0.43.0 + 0.44.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-beyondcorp-appconnectors-v1 - 0.43.0 + 0.44.0-SNAPSHOT com.google.api.grpc proto-google-cloud-beyondcorp-appconnectors-v1 - 0.43.0 + 0.44.0-SNAPSHOT diff --git a/java-beyondcorp-appconnectors/proto-google-cloud-beyondcorp-appconnectors-v1/pom.xml b/java-beyondcorp-appconnectors/proto-google-cloud-beyondcorp-appconnectors-v1/pom.xml index dddef4f07485..23f1c585190c 100644 --- a/java-beyondcorp-appconnectors/proto-google-cloud-beyondcorp-appconnectors-v1/pom.xml +++ b/java-beyondcorp-appconnectors/proto-google-cloud-beyondcorp-appconnectors-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-beyondcorp-appconnectors-v1 - 0.43.0 + 0.44.0-SNAPSHOT proto-google-cloud-beyondcorp-appconnectors-v1 Proto library for google-cloud-beyondcorp-appconnectors com.google.cloud google-cloud-beyondcorp-appconnectors-parent - 0.43.0 + 0.44.0-SNAPSHOT diff --git a/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways-bom/pom.xml b/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways-bom/pom.xml index 85077e11f21e..6f38796055e4 100644 --- a/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways-bom/pom.xml +++ b/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-appgateways-bom - 0.43.0 + 0.44.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-beyondcorp-appgateways - 0.43.0 + 0.44.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-beyondcorp-appgateways-v1 - 0.43.0 + 0.44.0-SNAPSHOT com.google.api.grpc proto-google-cloud-beyondcorp-appgateways-v1 - 0.43.0 + 0.44.0-SNAPSHOT diff --git a/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/pom.xml b/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/pom.xml index c30b34137c51..f94599412b06 100644 --- a/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/pom.xml +++ b/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-appgateways - 0.43.0 + 0.44.0-SNAPSHOT jar Google BeyondCorp AppGateways BeyondCorp AppGateways A zero trust solution that enables secure access to applications and resources, and offers integrated threat and data protection. com.google.cloud google-cloud-beyondcorp-appgateways-parent - 0.43.0 + 0.44.0-SNAPSHOT google-cloud-beyondcorp-appgateways diff --git a/java-beyondcorp-appgateways/grpc-google-cloud-beyondcorp-appgateways-v1/pom.xml b/java-beyondcorp-appgateways/grpc-google-cloud-beyondcorp-appgateways-v1/pom.xml index 245e3d5d02d2..c6bde86281ff 100644 --- a/java-beyondcorp-appgateways/grpc-google-cloud-beyondcorp-appgateways-v1/pom.xml +++ b/java-beyondcorp-appgateways/grpc-google-cloud-beyondcorp-appgateways-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-beyondcorp-appgateways-v1 - 0.43.0 + 0.44.0-SNAPSHOT grpc-google-cloud-beyondcorp-appgateways-v1 GRPC library for google-cloud-beyondcorp-appgateways com.google.cloud google-cloud-beyondcorp-appgateways-parent - 0.43.0 + 0.44.0-SNAPSHOT diff --git a/java-beyondcorp-appgateways/pom.xml b/java-beyondcorp-appgateways/pom.xml index ec599bf0a610..fd079c6f79de 100644 --- a/java-beyondcorp-appgateways/pom.xml +++ b/java-beyondcorp-appgateways/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-beyondcorp-appgateways-parent pom - 0.43.0 + 0.44.0-SNAPSHOT Google BeyondCorp AppGateways Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-beyondcorp-appgateways - 0.43.0 + 0.44.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-beyondcorp-appgateways-v1 - 0.43.0 + 0.44.0-SNAPSHOT com.google.api.grpc proto-google-cloud-beyondcorp-appgateways-v1 - 0.43.0 + 0.44.0-SNAPSHOT diff --git a/java-beyondcorp-appgateways/proto-google-cloud-beyondcorp-appgateways-v1/pom.xml b/java-beyondcorp-appgateways/proto-google-cloud-beyondcorp-appgateways-v1/pom.xml index 484a734bbf73..1cc06ac14e37 100644 --- a/java-beyondcorp-appgateways/proto-google-cloud-beyondcorp-appgateways-v1/pom.xml +++ b/java-beyondcorp-appgateways/proto-google-cloud-beyondcorp-appgateways-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-beyondcorp-appgateways-v1 - 0.43.0 + 0.44.0-SNAPSHOT proto-google-cloud-beyondcorp-appgateways-v1 Proto library for google-cloud-beyondcorp-appgateways com.google.cloud google-cloud-beyondcorp-appgateways-parent - 0.43.0 + 0.44.0-SNAPSHOT diff --git a/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices-bom/pom.xml b/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices-bom/pom.xml index 1d1ad495c6fd..b00bcb024a76 100644 --- a/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices-bom/pom.xml +++ b/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-clientconnectorservices-bom - 0.43.0 + 0.44.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-beyondcorp-clientconnectorservices - 0.43.0 + 0.44.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-beyondcorp-clientconnectorservices-v1 - 0.43.0 + 0.44.0-SNAPSHOT com.google.api.grpc proto-google-cloud-beyondcorp-clientconnectorservices-v1 - 0.43.0 + 0.44.0-SNAPSHOT diff --git a/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/pom.xml b/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/pom.xml index 75067f26899c..561557f320ec 100644 --- a/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/pom.xml +++ b/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-clientconnectorservices - 0.43.0 + 0.44.0-SNAPSHOT jar Google BeyondCorp ClientConnectorServices BeyondCorp ClientConnectorServices A zero trust solution that enables secure access to applications and resources, and offers integrated threat and data protection. com.google.cloud google-cloud-beyondcorp-clientconnectorservices-parent - 0.43.0 + 0.44.0-SNAPSHOT google-cloud-beyondcorp-clientconnectorservices diff --git a/java-beyondcorp-clientconnectorservices/grpc-google-cloud-beyondcorp-clientconnectorservices-v1/pom.xml b/java-beyondcorp-clientconnectorservices/grpc-google-cloud-beyondcorp-clientconnectorservices-v1/pom.xml index 6221e91be353..d56ff2145457 100644 --- a/java-beyondcorp-clientconnectorservices/grpc-google-cloud-beyondcorp-clientconnectorservices-v1/pom.xml +++ b/java-beyondcorp-clientconnectorservices/grpc-google-cloud-beyondcorp-clientconnectorservices-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-beyondcorp-clientconnectorservices-v1 - 0.43.0 + 0.44.0-SNAPSHOT grpc-google-cloud-beyondcorp-clientconnectorservices-v1 GRPC library for google-cloud-beyondcorp-clientconnectorservices com.google.cloud google-cloud-beyondcorp-clientconnectorservices-parent - 0.43.0 + 0.44.0-SNAPSHOT diff --git a/java-beyondcorp-clientconnectorservices/pom.xml b/java-beyondcorp-clientconnectorservices/pom.xml index 81c2eac7e011..a6ed38b93a37 100644 --- a/java-beyondcorp-clientconnectorservices/pom.xml +++ b/java-beyondcorp-clientconnectorservices/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-beyondcorp-clientconnectorservices-parent pom - 0.43.0 + 0.44.0-SNAPSHOT Google BeyondCorp ClientConnectorServices Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-beyondcorp-clientconnectorservices - 0.43.0 + 0.44.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-beyondcorp-clientconnectorservices-v1 - 0.43.0 + 0.44.0-SNAPSHOT com.google.api.grpc proto-google-cloud-beyondcorp-clientconnectorservices-v1 - 0.43.0 + 0.44.0-SNAPSHOT diff --git a/java-beyondcorp-clientconnectorservices/proto-google-cloud-beyondcorp-clientconnectorservices-v1/pom.xml b/java-beyondcorp-clientconnectorservices/proto-google-cloud-beyondcorp-clientconnectorservices-v1/pom.xml index 09b3027d451c..3032edc552de 100644 --- a/java-beyondcorp-clientconnectorservices/proto-google-cloud-beyondcorp-clientconnectorservices-v1/pom.xml +++ b/java-beyondcorp-clientconnectorservices/proto-google-cloud-beyondcorp-clientconnectorservices-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-beyondcorp-clientconnectorservices-v1 - 0.43.0 + 0.44.0-SNAPSHOT proto-google-cloud-beyondcorp-clientconnectorservices-v1 Proto library for google-cloud-beyondcorp-clientconnectorservices com.google.cloud google-cloud-beyondcorp-clientconnectorservices-parent - 0.43.0 + 0.44.0-SNAPSHOT diff --git a/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways-bom/pom.xml b/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways-bom/pom.xml index 52176f95408d..12bafbfe56fe 100644 --- a/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways-bom/pom.xml +++ b/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-clientgateways-bom - 0.43.0 + 0.44.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-beyondcorp-clientgateways - 0.43.0 + 0.44.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-beyondcorp-clientgateways-v1 - 0.43.0 + 0.44.0-SNAPSHOT com.google.api.grpc proto-google-cloud-beyondcorp-clientgateways-v1 - 0.43.0 + 0.44.0-SNAPSHOT diff --git a/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/pom.xml b/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/pom.xml index 8bf8099fabe2..f529561748be 100644 --- a/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/pom.xml +++ b/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-clientgateways - 0.43.0 + 0.44.0-SNAPSHOT jar Google BeyondCorp ClientGateways BeyondCorp ClientGateways A zero trust solution that enables secure access to applications and resources, and offers integrated threat and data protection. com.google.cloud google-cloud-beyondcorp-clientgateways-parent - 0.43.0 + 0.44.0-SNAPSHOT google-cloud-beyondcorp-clientgateways diff --git a/java-beyondcorp-clientgateways/grpc-google-cloud-beyondcorp-clientgateways-v1/pom.xml b/java-beyondcorp-clientgateways/grpc-google-cloud-beyondcorp-clientgateways-v1/pom.xml index 0cb2f5c6a23a..c19e28acbd23 100644 --- a/java-beyondcorp-clientgateways/grpc-google-cloud-beyondcorp-clientgateways-v1/pom.xml +++ b/java-beyondcorp-clientgateways/grpc-google-cloud-beyondcorp-clientgateways-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-beyondcorp-clientgateways-v1 - 0.43.0 + 0.44.0-SNAPSHOT grpc-google-cloud-beyondcorp-clientgateways-v1 GRPC library for google-cloud-beyondcorp-clientgateways com.google.cloud google-cloud-beyondcorp-clientgateways-parent - 0.43.0 + 0.44.0-SNAPSHOT diff --git a/java-beyondcorp-clientgateways/pom.xml b/java-beyondcorp-clientgateways/pom.xml index d4caf9a9ab1a..5b7d1aeb01e6 100644 --- a/java-beyondcorp-clientgateways/pom.xml +++ b/java-beyondcorp-clientgateways/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-beyondcorp-clientgateways-parent pom - 0.43.0 + 0.44.0-SNAPSHOT Google BeyondCorp ClientGateways Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-beyondcorp-clientgateways - 0.43.0 + 0.44.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-beyondcorp-clientgateways-v1 - 0.43.0 + 0.44.0-SNAPSHOT com.google.api.grpc proto-google-cloud-beyondcorp-clientgateways-v1 - 0.43.0 + 0.44.0-SNAPSHOT diff --git a/java-beyondcorp-clientgateways/proto-google-cloud-beyondcorp-clientgateways-v1/pom.xml b/java-beyondcorp-clientgateways/proto-google-cloud-beyondcorp-clientgateways-v1/pom.xml index 6583b3ff55fc..111ea3d78526 100644 --- a/java-beyondcorp-clientgateways/proto-google-cloud-beyondcorp-clientgateways-v1/pom.xml +++ b/java-beyondcorp-clientgateways/proto-google-cloud-beyondcorp-clientgateways-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-beyondcorp-clientgateways-v1 - 0.43.0 + 0.44.0-SNAPSHOT proto-google-cloud-beyondcorp-clientgateways-v1 Proto library for google-cloud-beyondcorp-clientgateways com.google.cloud google-cloud-beyondcorp-clientgateways-parent - 0.43.0 + 0.44.0-SNAPSHOT diff --git a/java-biglake/google-cloud-biglake-bom/pom.xml b/java-biglake/google-cloud-biglake-bom/pom.xml index 15f00ba2eae1..f6ac03196822 100644 --- a/java-biglake/google-cloud-biglake-bom/pom.xml +++ b/java-biglake/google-cloud-biglake-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-biglake-bom - 0.33.0 + 0.34.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-biglake - 0.33.0 + 0.34.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-biglake-v1alpha1 - 0.33.0 + 0.34.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-biglake-v1 - 0.33.0 + 0.34.0-SNAPSHOT com.google.api.grpc proto-google-cloud-biglake-v1alpha1 - 0.33.0 + 0.34.0-SNAPSHOT com.google.api.grpc proto-google-cloud-biglake-v1 - 0.33.0 + 0.34.0-SNAPSHOT diff --git a/java-biglake/google-cloud-biglake/pom.xml b/java-biglake/google-cloud-biglake/pom.xml index ca9d00f190d2..1788a439970b 100644 --- a/java-biglake/google-cloud-biglake/pom.xml +++ b/java-biglake/google-cloud-biglake/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-biglake - 0.33.0 + 0.34.0-SNAPSHOT jar Google BigLake BigLake The BigLake API provides access to BigLake Metastore, a serverless, fully managed, and highly available metastore for open-source data that can be used for querying Apache Iceberg tables in BigQuery. com.google.cloud google-cloud-biglake-parent - 0.33.0 + 0.34.0-SNAPSHOT google-cloud-biglake diff --git a/java-biglake/grpc-google-cloud-biglake-v1/pom.xml b/java-biglake/grpc-google-cloud-biglake-v1/pom.xml index 0832d90c06d6..56180350b711 100644 --- a/java-biglake/grpc-google-cloud-biglake-v1/pom.xml +++ b/java-biglake/grpc-google-cloud-biglake-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-biglake-v1 - 0.33.0 + 0.34.0-SNAPSHOT grpc-google-cloud-biglake-v1 GRPC library for google-cloud-biglake com.google.cloud google-cloud-biglake-parent - 0.33.0 + 0.34.0-SNAPSHOT diff --git a/java-biglake/grpc-google-cloud-biglake-v1alpha1/pom.xml b/java-biglake/grpc-google-cloud-biglake-v1alpha1/pom.xml index 360402891719..2057985771ea 100644 --- a/java-biglake/grpc-google-cloud-biglake-v1alpha1/pom.xml +++ b/java-biglake/grpc-google-cloud-biglake-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-biglake-v1alpha1 - 0.33.0 + 0.34.0-SNAPSHOT grpc-google-cloud-biglake-v1alpha1 GRPC library for google-cloud-biglake com.google.cloud google-cloud-biglake-parent - 0.33.0 + 0.34.0-SNAPSHOT diff --git a/java-biglake/pom.xml b/java-biglake/pom.xml index e61dc19a6f42..b453e43e9d2e 100644 --- a/java-biglake/pom.xml +++ b/java-biglake/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-biglake-parent pom - 0.33.0 + 0.34.0-SNAPSHOT Google BigLake Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-biglake - 0.33.0 + 0.34.0-SNAPSHOT com.google.api.grpc proto-google-cloud-biglake-v1 - 0.33.0 + 0.34.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-biglake-v1 - 0.33.0 + 0.34.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-biglake-v1alpha1 - 0.33.0 + 0.34.0-SNAPSHOT com.google.api.grpc proto-google-cloud-biglake-v1alpha1 - 0.33.0 + 0.34.0-SNAPSHOT diff --git a/java-biglake/proto-google-cloud-biglake-v1/pom.xml b/java-biglake/proto-google-cloud-biglake-v1/pom.xml index a870f7f36f91..fabeebb362b9 100644 --- a/java-biglake/proto-google-cloud-biglake-v1/pom.xml +++ b/java-biglake/proto-google-cloud-biglake-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-biglake-v1 - 0.33.0 + 0.34.0-SNAPSHOT proto-google-cloud-biglake-v1 Proto library for google-cloud-biglake com.google.cloud google-cloud-biglake-parent - 0.33.0 + 0.34.0-SNAPSHOT diff --git a/java-biglake/proto-google-cloud-biglake-v1alpha1/pom.xml b/java-biglake/proto-google-cloud-biglake-v1alpha1/pom.xml index 408b3bf7ea9b..cb354ed5fc3b 100644 --- a/java-biglake/proto-google-cloud-biglake-v1alpha1/pom.xml +++ b/java-biglake/proto-google-cloud-biglake-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-biglake-v1alpha1 - 0.33.0 + 0.34.0-SNAPSHOT proto-google-cloud-biglake-v1alpha1 Proto library for google-cloud-biglake com.google.cloud google-cloud-biglake-parent - 0.33.0 + 0.34.0-SNAPSHOT diff --git a/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange-bom/pom.xml b/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange-bom/pom.xml index 03c522a7bebd..8bcf4ca47d43 100644 --- a/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange-bom/pom.xml +++ b/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-bigquery-data-exchange-bom - 2.40.0 + 2.41.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-bigquery-data-exchange - 2.40.0 + 2.41.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigquery-data-exchange-v1beta1 - 2.40.0 + 2.41.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bigquery-data-exchange-v1beta1 - 2.40.0 + 2.41.0-SNAPSHOT diff --git a/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/pom.xml b/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/pom.xml index 6de2b3d0481d..f2e62f759e08 100644 --- a/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/pom.xml +++ b/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-bigquery-data-exchange - 2.40.0 + 2.41.0-SNAPSHOT jar Google Analytics Hub Analytics Hub is a data exchange that allows you to efficiently and securely exchange data assets across organizations to address challenges of data reliability and cost. com.google.cloud google-cloud-bigquery-data-exchange-parent - 2.40.0 + 2.41.0-SNAPSHOT google-cloud-bigquery-data-exchange diff --git a/java-bigquery-data-exchange/grpc-google-cloud-bigquery-data-exchange-v1beta1/pom.xml b/java-bigquery-data-exchange/grpc-google-cloud-bigquery-data-exchange-v1beta1/pom.xml index 0d61bae1163e..c0851b406bd6 100644 --- a/java-bigquery-data-exchange/grpc-google-cloud-bigquery-data-exchange-v1beta1/pom.xml +++ b/java-bigquery-data-exchange/grpc-google-cloud-bigquery-data-exchange-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigquery-data-exchange-v1beta1 - 2.40.0 + 2.41.0-SNAPSHOT grpc-google-cloud-bigquery-data-exchange-v1beta1 GRPC library for google-cloud-bigquery-data-exchange com.google.cloud google-cloud-bigquery-data-exchange-parent - 2.40.0 + 2.41.0-SNAPSHOT diff --git a/java-bigquery-data-exchange/pom.xml b/java-bigquery-data-exchange/pom.xml index ebe5b008483d..aac25d3faa6b 100644 --- a/java-bigquery-data-exchange/pom.xml +++ b/java-bigquery-data-exchange/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bigquery-data-exchange-parent pom - 2.40.0 + 2.41.0-SNAPSHOT Google Analytics Hub Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-bigquery-data-exchange - 2.40.0 + 2.41.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigquery-data-exchange-v1beta1 - 2.40.0 + 2.41.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bigquery-data-exchange-v1beta1 - 2.40.0 + 2.41.0-SNAPSHOT diff --git a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/pom.xml b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/pom.xml index e7d60a73144e..2a9e73f103be 100644 --- a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/pom.xml +++ b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigquery-data-exchange-v1beta1 - 2.40.0 + 2.41.0-SNAPSHOT proto-google-cloud-bigquery-data-exchange-v1beta1 Proto library for google-cloud-bigquery-data-exchange com.google.cloud google-cloud-bigquery-data-exchange-parent - 2.40.0 + 2.41.0-SNAPSHOT diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection-bom/pom.xml b/java-bigqueryconnection/google-cloud-bigqueryconnection-bom/pom.xml index e50891f1af6a..279278748212 100644 --- a/java-bigqueryconnection/google-cloud-bigqueryconnection-bom/pom.xml +++ b/java-bigqueryconnection/google-cloud-bigqueryconnection-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-bigqueryconnection-bom - 2.47.0 + 2.48.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-bigqueryconnection - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1 - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1beta1 - 0.55.0 + 0.56.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bigqueryconnection-v1 - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bigqueryconnection-v1beta1 - 0.55.0 + 0.56.0-SNAPSHOT diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/pom.xml b/java-bigqueryconnection/google-cloud-bigqueryconnection/pom.xml index 3c41ff65fd17..af2922a41a65 100644 --- a/java-bigqueryconnection/google-cloud-bigqueryconnection/pom.xml +++ b/java-bigqueryconnection/google-cloud-bigqueryconnection/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-bigqueryconnection - 2.47.0 + 2.48.0-SNAPSHOT jar Google Cloud BigQuery Connections is about com.google.cloud google-cloud-bigqueryconnection-parent - 2.47.0 + 2.48.0-SNAPSHOT google-cloud-bigqueryconnection diff --git a/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1/pom.xml b/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1/pom.xml index ecf90797a7f6..462bfeee471a 100644 --- a/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1/pom.xml +++ b/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1 - 2.47.0 + 2.48.0-SNAPSHOT grpc-google-cloud-bigqueryconnection-v1 GRPC library for grpc-google-cloud-bigqueryconnection-v1 com.google.cloud google-cloud-bigqueryconnection-parent - 2.47.0 + 2.48.0-SNAPSHOT diff --git a/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1beta1/pom.xml b/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1beta1/pom.xml index c4709310f20b..d9b7e868ef93 100644 --- a/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1beta1/pom.xml +++ b/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1beta1 - 0.55.0 + 0.56.0-SNAPSHOT grpc-google-cloud-bigqueryconnection-v1beta1 GRPC library for grpc-google-cloud-bigqueryconnection-v1beta1 com.google.cloud google-cloud-bigqueryconnection-parent - 2.47.0 + 2.48.0-SNAPSHOT diff --git a/java-bigqueryconnection/pom.xml b/java-bigqueryconnection/pom.xml index 1b9fa6f41392..b52526960fed 100644 --- a/java-bigqueryconnection/pom.xml +++ b/java-bigqueryconnection/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bigqueryconnection-parent pom - 2.47.0 + 2.48.0-SNAPSHOT Google Cloud BigQuery Connections Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-bigqueryconnection - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bigqueryconnection-v1 - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1 - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bigqueryconnection-v1beta1 - 0.55.0 + 0.56.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1beta1 - 0.55.0 + 0.56.0-SNAPSHOT diff --git a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/pom.xml b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/pom.xml index 6509ce6e4ef0..117b42a724ab 100644 --- a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/pom.xml +++ b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigqueryconnection-v1 - 2.47.0 + 2.48.0-SNAPSHOT proto-google-cloud-bigqueryconnection-v1 PROTO library for proto-google-cloud-bigqueryconnection-v1 com.google.cloud google-cloud-bigqueryconnection-parent - 2.47.0 + 2.48.0-SNAPSHOT diff --git a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1beta1/pom.xml b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1beta1/pom.xml index b7a65ea2429e..c1e3f67224f9 100644 --- a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1beta1/pom.xml +++ b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigqueryconnection-v1beta1 - 0.55.0 + 0.56.0-SNAPSHOT proto-google-cloud-bigqueryconnection-v1beta1 PROTO library for proto-google-cloud-bigqueryconnection-v1beta1 com.google.cloud google-cloud-bigqueryconnection-parent - 2.47.0 + 2.48.0-SNAPSHOT diff --git a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy-bom/pom.xml b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy-bom/pom.xml index c969d1712e06..cf5c0737468e 100644 --- a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy-bom/pom.xml +++ b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-bigquerydatapolicy-bom - 0.42.0 + 0.43.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-bigquerydatapolicy - 0.42.0 + 0.43.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v1beta1 - 0.42.0 + 0.43.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v1 - 0.42.0 + 0.43.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v1beta1 - 0.42.0 + 0.43.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v1 - 0.42.0 + 0.43.0-SNAPSHOT diff --git a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/pom.xml b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/pom.xml index c2a02a037238..2d0dbb1d16d4 100644 --- a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/pom.xml +++ b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-bigquerydatapolicy - 0.42.0 + 0.43.0-SNAPSHOT jar Google BigQuery DataPolicy API BigQuery DataPolicy API com.google.cloud google-cloud-bigquerydatapolicy-parent - 0.42.0 + 0.43.0-SNAPSHOT google-cloud-bigquerydatapolicy diff --git a/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1/pom.xml b/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1/pom.xml index 1d5cdcbb7b8f..97a071a6df6e 100644 --- a/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1/pom.xml +++ b/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v1 - 0.42.0 + 0.43.0-SNAPSHOT grpc-google-cloud-bigquerydatapolicy-v1 GRPC library for google-cloud-bigquerydatapolicy com.google.cloud google-cloud-bigquerydatapolicy-parent - 0.42.0 + 0.43.0-SNAPSHOT diff --git a/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1beta1/pom.xml b/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1beta1/pom.xml index e6f5ebd7b546..f9da69c30727 100644 --- a/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1beta1/pom.xml +++ b/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v1beta1 - 0.42.0 + 0.43.0-SNAPSHOT grpc-google-cloud-bigquerydatapolicy-v1beta1 GRPC library for google-cloud-bigquerydatapolicy com.google.cloud google-cloud-bigquerydatapolicy-parent - 0.42.0 + 0.43.0-SNAPSHOT diff --git a/java-bigquerydatapolicy/pom.xml b/java-bigquerydatapolicy/pom.xml index 8c706df5690a..5cff31a91c34 100644 --- a/java-bigquerydatapolicy/pom.xml +++ b/java-bigquerydatapolicy/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bigquerydatapolicy-parent pom - 0.42.0 + 0.43.0-SNAPSHOT Google BigQuery DataPolicy API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-bigquerydatapolicy - 0.42.0 + 0.43.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v1 - 0.42.0 + 0.43.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v1 - 0.42.0 + 0.43.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v1beta1 - 0.42.0 + 0.43.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v1beta1 - 0.42.0 + 0.43.0-SNAPSHOT diff --git a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1/pom.xml b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1/pom.xml index eb38ddb18156..2e9d02eadfc9 100644 --- a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1/pom.xml +++ b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v1 - 0.42.0 + 0.43.0-SNAPSHOT proto-google-cloud-bigquerydatapolicy-v1 Proto library for google-cloud-bigquerydatapolicy com.google.cloud google-cloud-bigquerydatapolicy-parent - 0.42.0 + 0.43.0-SNAPSHOT diff --git a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1beta1/pom.xml b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1beta1/pom.xml index d6d3c0b52e7c..b8d4e7bc46be 100644 --- a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1beta1/pom.xml +++ b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v1beta1 - 0.42.0 + 0.43.0-SNAPSHOT proto-google-cloud-bigquerydatapolicy-v1beta1 Proto library for google-cloud-bigquerydatapolicy com.google.cloud google-cloud-bigquerydatapolicy-parent - 0.42.0 + 0.43.0-SNAPSHOT diff --git a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer-bom/pom.xml b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer-bom/pom.xml index 97b77f5935a9..f7682c059db5 100644 --- a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer-bom/pom.xml +++ b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-bigquerydatatransfer-bom - 2.45.0 + 2.46.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-bigquerydatatransfer - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigquerydatatransfer-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bigquerydatatransfer-v1 - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/pom.xml b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/pom.xml index 5f37bb5ad1d3..ce043935551c 100644 --- a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/pom.xml +++ b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-bigquerydatatransfer - 2.45.0 + 2.46.0-SNAPSHOT jar BigQuery DataTransfer BigQuery DataTransfer com.google.cloud google-cloud-bigquerydatatransfer-parent - 2.45.0 + 2.46.0-SNAPSHOT google-cloud-bigquerydatatransfer diff --git a/java-bigquerydatatransfer/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml b/java-bigquerydatatransfer/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml index fe4e622f45f3..2acbdeb45dba 100644 --- a/java-bigquerydatatransfer/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml +++ b/java-bigquerydatatransfer/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigquerydatatransfer-v1 - 2.45.0 + 2.46.0-SNAPSHOT grpc-google-cloud-bigquerydatatransfer-v1 GRPC library for grpc-google-cloud-bigquerydatatransfer-v1 com.google.cloud google-cloud-bigquerydatatransfer-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-bigquerydatatransfer/pom.xml b/java-bigquerydatatransfer/pom.xml index 597ff79b3996..7496b3443675 100644 --- a/java-bigquerydatatransfer/pom.xml +++ b/java-bigquerydatatransfer/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bigquerydatatransfer-parent pom - 2.45.0 + 2.46.0-SNAPSHOT BigQuery DataTransfer Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.api.grpc proto-google-cloud-bigquerydatatransfer-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigquerydatatransfer-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.cloud google-cloud-bigquerydatatransfer - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/pom.xml b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/pom.xml index 12ddd2bd9420..fdfdb8a11a8b 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/pom.xml +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigquerydatatransfer-v1 - 2.45.0 + 2.46.0-SNAPSHOT proto-google-cloud-bigquerydatatransfer-v1 PROTO library for proto-google-cloud-bigquerydatatransfer-v1 com.google.cloud google-cloud-bigquerydatatransfer-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-bigquerymigration/google-cloud-bigquerymigration-bom/pom.xml b/java-bigquerymigration/google-cloud-bigquerymigration-bom/pom.xml index 53bf43ab6504..01869c3a91cb 100644 --- a/java-bigquerymigration/google-cloud-bigquerymigration-bom/pom.xml +++ b/java-bigquerymigration/google-cloud-bigquerymigration-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-bigquerymigration-bom - 0.48.0 + 0.49.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-bigquerymigration - 0.48.0 + 0.49.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigquerymigration-v2alpha - 0.48.0 + 0.49.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigquerymigration-v2 - 0.48.0 + 0.49.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bigquerymigration-v2alpha - 0.48.0 + 0.49.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bigquerymigration-v2 - 0.48.0 + 0.49.0-SNAPSHOT diff --git a/java-bigquerymigration/google-cloud-bigquerymigration/pom.xml b/java-bigquerymigration/google-cloud-bigquerymigration/pom.xml index b6826e061b78..e9e8cf9640c2 100644 --- a/java-bigquerymigration/google-cloud-bigquerymigration/pom.xml +++ b/java-bigquerymigration/google-cloud-bigquerymigration/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-bigquerymigration - 0.48.0 + 0.49.0-SNAPSHOT jar Google BigQuery Migration BigQuery Migration BigQuery Migration API com.google.cloud google-cloud-bigquerymigration-parent - 0.48.0 + 0.49.0-SNAPSHOT google-cloud-bigquerymigration diff --git a/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2/pom.xml b/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2/pom.xml index cbeb2b93c1ee..a1e586034071 100644 --- a/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2/pom.xml +++ b/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigquerymigration-v2 - 0.48.0 + 0.49.0-SNAPSHOT grpc-google-cloud-bigquerymigration-v2 GRPC library for google-cloud-bigquerymigration com.google.cloud google-cloud-bigquerymigration-parent - 0.48.0 + 0.49.0-SNAPSHOT diff --git a/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2alpha/pom.xml b/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2alpha/pom.xml index f09c97253618..86ad5de823ff 100644 --- a/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2alpha/pom.xml +++ b/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigquerymigration-v2alpha - 0.48.0 + 0.49.0-SNAPSHOT grpc-google-cloud-bigquerymigration-v2alpha GRPC library for google-cloud-bigquerymigration com.google.cloud google-cloud-bigquerymigration-parent - 0.48.0 + 0.49.0-SNAPSHOT diff --git a/java-bigquerymigration/pom.xml b/java-bigquerymigration/pom.xml index 99db6ab3928a..4fdd566f5ef6 100644 --- a/java-bigquerymigration/pom.xml +++ b/java-bigquerymigration/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bigquerymigration-parent pom - 0.48.0 + 0.49.0-SNAPSHOT Google BigQuery Migration Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-bigquerymigration - 0.48.0 + 0.49.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bigquerymigration-v2 - 0.48.0 + 0.49.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigquerymigration-v2 - 0.48.0 + 0.49.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigquerymigration-v2alpha - 0.48.0 + 0.49.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bigquerymigration-v2alpha - 0.48.0 + 0.49.0-SNAPSHOT diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/pom.xml b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/pom.xml index a1b3823288b0..827b13a61d67 100644 --- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/pom.xml +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigquerymigration-v2 - 0.48.0 + 0.49.0-SNAPSHOT proto-google-cloud-bigquerymigration-v2 Proto library for google-cloud-bigquerymigration com.google.cloud google-cloud-bigquerymigration-parent - 0.48.0 + 0.49.0-SNAPSHOT diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2alpha/pom.xml b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2alpha/pom.xml index c3f687bdf560..4f3b21f50110 100644 --- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2alpha/pom.xml +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigquerymigration-v2alpha - 0.48.0 + 0.49.0-SNAPSHOT proto-google-cloud-bigquerymigration-v2alpha Proto library for google-cloud-bigquerymigration com.google.cloud google-cloud-bigquerymigration-parent - 0.48.0 + 0.49.0-SNAPSHOT diff --git a/java-bigqueryreservation/google-cloud-bigqueryreservation-bom/pom.xml b/java-bigqueryreservation/google-cloud-bigqueryreservation-bom/pom.xml index 1bcb062f98f6..6bde53f89ecf 100644 --- a/java-bigqueryreservation/google-cloud-bigqueryreservation-bom/pom.xml +++ b/java-bigqueryreservation/google-cloud-bigqueryreservation-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-bigqueryreservation-bom - 2.46.0 + 2.47.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-bigqueryreservation - 2.46.0 + 2.47.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigqueryreservation-v1 - 2.46.0 + 2.47.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bigqueryreservation-v1 - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-bigqueryreservation/google-cloud-bigqueryreservation/pom.xml b/java-bigqueryreservation/google-cloud-bigqueryreservation/pom.xml index e7f4733794a6..278cf8d91c20 100644 --- a/java-bigqueryreservation/google-cloud-bigqueryreservation/pom.xml +++ b/java-bigqueryreservation/google-cloud-bigqueryreservation/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-bigqueryreservation - 2.46.0 + 2.47.0-SNAPSHOT jar Google Cloud BigQuery Reservations allows users to manage their flat-rate BigQuery reservations. com.google.cloud google-cloud-bigqueryreservation-parent - 2.46.0 + 2.47.0-SNAPSHOT google-cloud-bigqueryreservation diff --git a/java-bigqueryreservation/grpc-google-cloud-bigqueryreservation-v1/pom.xml b/java-bigqueryreservation/grpc-google-cloud-bigqueryreservation-v1/pom.xml index 33f36a8ab7b8..10c0b9259c03 100644 --- a/java-bigqueryreservation/grpc-google-cloud-bigqueryreservation-v1/pom.xml +++ b/java-bigqueryreservation/grpc-google-cloud-bigqueryreservation-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigqueryreservation-v1 - 2.46.0 + 2.47.0-SNAPSHOT grpc-google-cloud-bigqueryreservation-v1 GRPC library for grpc-google-cloud-bigqueryreservation-v1 com.google.cloud google-cloud-bigqueryreservation-parent - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-bigqueryreservation/pom.xml b/java-bigqueryreservation/pom.xml index 4f9f00dfcdc7..de972263594e 100644 --- a/java-bigqueryreservation/pom.xml +++ b/java-bigqueryreservation/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bigqueryreservation-parent pom - 2.46.0 + 2.47.0-SNAPSHOT Google Cloud BigQuery Reservations Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-bigqueryreservation - 2.46.0 + 2.47.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bigqueryreservation-v1 - 2.46.0 + 2.47.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigqueryreservation-v1 - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/pom.xml b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/pom.xml index 4e6d6de730c9..8ad377b8c762 100644 --- a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/pom.xml +++ b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigqueryreservation-v1 - 2.46.0 + 2.47.0-SNAPSHOT proto-google-cloud-bigqueryreservation-v1 PROTO library for proto-google-cloud-bigqueryreservation-v1 com.google.cloud google-cloud-bigqueryreservation-parent - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-billing/google-cloud-billing-bom/pom.xml b/java-billing/google-cloud-billing-bom/pom.xml index a405396ac29e..64256477ad0d 100644 --- a/java-billing/google-cloud-billing-bom/pom.xml +++ b/java-billing/google-cloud-billing-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-billing-bom - 2.45.0 + 2.46.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-billing - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-billing-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-billing-v1 - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-billing/google-cloud-billing/pom.xml b/java-billing/google-cloud-billing/pom.xml index 0c7ad62773db..1c9c523046fc 100644 --- a/java-billing/google-cloud-billing/pom.xml +++ b/java-billing/google-cloud-billing/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-billing - 2.45.0 + 2.46.0-SNAPSHOT jar Google Cloud Billing Java idiomatic client for Google Cloud Billing com.google.cloud google-cloud-billing-parent - 2.45.0 + 2.46.0-SNAPSHOT google-cloud-billing diff --git a/java-billing/grpc-google-cloud-billing-v1/pom.xml b/java-billing/grpc-google-cloud-billing-v1/pom.xml index 26a829497f4a..1e8e6579f161 100644 --- a/java-billing/grpc-google-cloud-billing-v1/pom.xml +++ b/java-billing/grpc-google-cloud-billing-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-billing-v1 - 2.45.0 + 2.46.0-SNAPSHOT grpc-google-cloud-billing-v1 GRPC library for grpc-google-cloud-billing-v1 com.google.cloud google-cloud-billing-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-billing/pom.xml b/java-billing/pom.xml index 23a6206d33f2..a1871b845aa7 100644 --- a/java-billing/pom.xml +++ b/java-billing/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-billing-parent pom - 2.45.0 + 2.46.0-SNAPSHOT Google Cloud Billing Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.api.grpc proto-google-cloud-billing-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-billing-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.cloud google-cloud-billing - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-billing/proto-google-cloud-billing-v1/pom.xml b/java-billing/proto-google-cloud-billing-v1/pom.xml index 045beb61c492..d84b4dc638d5 100644 --- a/java-billing/proto-google-cloud-billing-v1/pom.xml +++ b/java-billing/proto-google-cloud-billing-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-billing-v1 - 2.45.0 + 2.46.0-SNAPSHOT proto-google-cloud-billing-v1beta1 PROTO library for proto-google-cloud-billing-v1 com.google.cloud google-cloud-billing-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-billingbudgets/google-cloud-billingbudgets-bom/pom.xml b/java-billingbudgets/google-cloud-billingbudgets-bom/pom.xml index 92b300490bb7..a391ab1b2cd9 100644 --- a/java-billingbudgets/google-cloud-billingbudgets-bom/pom.xml +++ b/java-billingbudgets/google-cloud-billingbudgets-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-billingbudgets-bom - 2.45.0 + 2.46.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-billingbudgets - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-billingbudgets-v1beta1 - 0.54.0 + 0.55.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-billingbudgets-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-billingbudgets-v1beta1 - 0.54.0 + 0.55.0-SNAPSHOT com.google.api.grpc proto-google-cloud-billingbudgets-v1 - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-billingbudgets/google-cloud-billingbudgets/pom.xml b/java-billingbudgets/google-cloud-billingbudgets/pom.xml index 431ddb49985b..dae77a81742d 100644 --- a/java-billingbudgets/google-cloud-billingbudgets/pom.xml +++ b/java-billingbudgets/google-cloud-billingbudgets/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-billingbudgets - 2.45.0 + 2.46.0-SNAPSHOT jar Google Cloud billingbudgets Java idiomatic client for Google Cloud billingbudgets com.google.cloud google-cloud-billingbudgets-parent - 2.45.0 + 2.46.0-SNAPSHOT google-cloud-billingbudgets diff --git a/java-billingbudgets/grpc-google-cloud-billingbudgets-v1/pom.xml b/java-billingbudgets/grpc-google-cloud-billingbudgets-v1/pom.xml index a42a2f77d574..0a5b6a36567d 100644 --- a/java-billingbudgets/grpc-google-cloud-billingbudgets-v1/pom.xml +++ b/java-billingbudgets/grpc-google-cloud-billingbudgets-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-billingbudgets-v1 - 2.45.0 + 2.46.0-SNAPSHOT grpc-google-cloud-billingbudgets-v1 GRPC library for grpc-google-cloud-billingbudgets-v1 com.google.cloud google-cloud-billingbudgets-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-billingbudgets/grpc-google-cloud-billingbudgets-v1beta1/pom.xml b/java-billingbudgets/grpc-google-cloud-billingbudgets-v1beta1/pom.xml index c3ed9b1308e0..e81a5b9028f7 100644 --- a/java-billingbudgets/grpc-google-cloud-billingbudgets-v1beta1/pom.xml +++ b/java-billingbudgets/grpc-google-cloud-billingbudgets-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-billingbudgets-v1beta1 - 0.54.0 + 0.55.0-SNAPSHOT grpc-google-cloud-billingbudgets-v1beta1 GRPC library for grpc-google-cloud-billingbudgets-v1beta1 com.google.cloud google-cloud-billingbudgets-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-billingbudgets/pom.xml b/java-billingbudgets/pom.xml index 60ca8dde8055..59acfaabb678 100644 --- a/java-billingbudgets/pom.xml +++ b/java-billingbudgets/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-billingbudgets-parent pom - 2.45.0 + 2.46.0-SNAPSHOT Google Cloud Billing Budgets Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-billingbudgets-v1beta1 - 0.54.0 + 0.55.0-SNAPSHOT com.google.api.grpc proto-google-cloud-billingbudgets-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-billingbudgets-v1beta1 - 0.54.0 + 0.55.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-billingbudgets-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.cloud google-cloud-billingbudgets - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/pom.xml b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/pom.xml index fe2099ba618e..eeea1d32473b 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/pom.xml +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-billingbudgets-v1 - 2.45.0 + 2.46.0-SNAPSHOT proto-google-cloud-billingbudgets-v1 PROTO library for proto-google-cloud-billingbudgets-v1 com.google.cloud google-cloud-billingbudgets-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/pom.xml b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/pom.xml index b8d7ffa767f7..102ec7d23069 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/pom.xml +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-billingbudgets-v1beta1 - 0.54.0 + 0.55.0-SNAPSHOT proto-google-cloud-billingbudgets-v1beta1 PROTO library for proto-google-cloud-billingbudgets-v1beta1 com.google.cloud google-cloud-billingbudgets-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-binary-authorization/google-cloud-binary-authorization-bom/pom.xml b/java-binary-authorization/google-cloud-binary-authorization-bom/pom.xml index 39ea952cb066..2cce438fabc1 100644 --- a/java-binary-authorization/google-cloud-binary-authorization-bom/pom.xml +++ b/java-binary-authorization/google-cloud-binary-authorization-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-binary-authorization-bom - 1.44.0 + 1.45.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-binary-authorization - 1.44.0 + 1.45.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-binary-authorization-v1beta1 - 0.49.0 + 0.50.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-binary-authorization-v1 - 1.44.0 + 1.45.0-SNAPSHOT com.google.api.grpc proto-google-cloud-binary-authorization-v1beta1 - 0.49.0 + 0.50.0-SNAPSHOT com.google.api.grpc proto-google-cloud-binary-authorization-v1 - 1.44.0 + 1.45.0-SNAPSHOT diff --git a/java-binary-authorization/google-cloud-binary-authorization/pom.xml b/java-binary-authorization/google-cloud-binary-authorization/pom.xml index f27bdd43d9ee..3d5ee4d5963a 100644 --- a/java-binary-authorization/google-cloud-binary-authorization/pom.xml +++ b/java-binary-authorization/google-cloud-binary-authorization/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-binary-authorization - 1.44.0 + 1.45.0-SNAPSHOT jar Google Binary Authorization Binary Authorization is a service on Google Cloud that provides centralized software supply-chain security for applications that run on Google Kubernetes Engine (GKE) and Anthos clusters on VMware com.google.cloud google-cloud-binary-authorization-parent - 1.44.0 + 1.45.0-SNAPSHOT google-cloud-binary-authorization diff --git a/java-binary-authorization/grpc-google-cloud-binary-authorization-v1/pom.xml b/java-binary-authorization/grpc-google-cloud-binary-authorization-v1/pom.xml index 83b72bb40729..f74236d3197b 100644 --- a/java-binary-authorization/grpc-google-cloud-binary-authorization-v1/pom.xml +++ b/java-binary-authorization/grpc-google-cloud-binary-authorization-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-binary-authorization-v1 - 1.44.0 + 1.45.0-SNAPSHOT grpc-google-cloud-binary-authorization-v1 GRPC library for google-cloud-binary-authorization com.google.cloud google-cloud-binary-authorization-parent - 1.44.0 + 1.45.0-SNAPSHOT diff --git a/java-binary-authorization/grpc-google-cloud-binary-authorization-v1beta1/pom.xml b/java-binary-authorization/grpc-google-cloud-binary-authorization-v1beta1/pom.xml index bc4f44d3eed9..c38050b5afef 100644 --- a/java-binary-authorization/grpc-google-cloud-binary-authorization-v1beta1/pom.xml +++ b/java-binary-authorization/grpc-google-cloud-binary-authorization-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-binary-authorization-v1beta1 - 0.49.0 + 0.50.0-SNAPSHOT grpc-google-cloud-binary-authorization-v1beta1 GRPC library for google-cloud-binary-authorization com.google.cloud google-cloud-binary-authorization-parent - 1.44.0 + 1.45.0-SNAPSHOT diff --git a/java-binary-authorization/pom.xml b/java-binary-authorization/pom.xml index 44b80cc97252..2171e2ab5d2b 100644 --- a/java-binary-authorization/pom.xml +++ b/java-binary-authorization/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-binary-authorization-parent pom - 1.44.0 + 1.45.0-SNAPSHOT Google Binary Authorization Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,33 +29,33 @@ com.google.cloud google-cloud-binary-authorization - 1.44.0 + 1.45.0-SNAPSHOT com.google.api.grpc proto-google-cloud-binary-authorization-v1 - 1.44.0 + 1.45.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-binary-authorization-v1 - 1.44.0 + 1.45.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-binary-authorization-v1beta1 - 0.49.0 + 0.50.0-SNAPSHOT com.google.api.grpc proto-google-cloud-binary-authorization-v1beta1 - 0.49.0 + 0.50.0-SNAPSHOT io.grafeas grafeas - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-binary-authorization/proto-google-cloud-binary-authorization-v1/pom.xml b/java-binary-authorization/proto-google-cloud-binary-authorization-v1/pom.xml index 06002b126d23..102f529c7cc8 100644 --- a/java-binary-authorization/proto-google-cloud-binary-authorization-v1/pom.xml +++ b/java-binary-authorization/proto-google-cloud-binary-authorization-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-binary-authorization-v1 - 1.44.0 + 1.45.0-SNAPSHOT proto-google-cloud-binary-authorization-v1 Proto library for google-cloud-binary-authorization com.google.cloud google-cloud-binary-authorization-parent - 1.44.0 + 1.45.0-SNAPSHOT diff --git a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/pom.xml b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/pom.xml index 31e33e827fed..a50d9add63eb 100644 --- a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/pom.xml +++ b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-binary-authorization-v1beta1 - 0.49.0 + 0.50.0-SNAPSHOT proto-google-cloud-binary-authorization-v1beta1 Proto library for google-cloud-binary-authorization com.google.cloud google-cloud-binary-authorization-parent - 1.44.0 + 1.45.0-SNAPSHOT diff --git a/java-certificate-manager/google-cloud-certificate-manager-bom/pom.xml b/java-certificate-manager/google-cloud-certificate-manager-bom/pom.xml index 8c86e5de021b..1e3931fa877a 100644 --- a/java-certificate-manager/google-cloud-certificate-manager-bom/pom.xml +++ b/java-certificate-manager/google-cloud-certificate-manager-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-certificate-manager-bom - 0.48.0 + 0.49.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-certificate-manager - 0.48.0 + 0.49.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-certificate-manager-v1 - 0.48.0 + 0.49.0-SNAPSHOT com.google.api.grpc proto-google-cloud-certificate-manager-v1 - 0.48.0 + 0.49.0-SNAPSHOT diff --git a/java-certificate-manager/google-cloud-certificate-manager/pom.xml b/java-certificate-manager/google-cloud-certificate-manager/pom.xml index f12cd42ba656..fdfe5ab381de 100644 --- a/java-certificate-manager/google-cloud-certificate-manager/pom.xml +++ b/java-certificate-manager/google-cloud-certificate-manager/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-certificate-manager - 0.48.0 + 0.49.0-SNAPSHOT jar Google Certificate Manager Certificate Manager lets you acquire and manage TLS (SSL) certificates for use with Cloud Load Balancing. com.google.cloud google-cloud-certificate-manager-parent - 0.48.0 + 0.49.0-SNAPSHOT google-cloud-certificate-manager diff --git a/java-certificate-manager/grpc-google-cloud-certificate-manager-v1/pom.xml b/java-certificate-manager/grpc-google-cloud-certificate-manager-v1/pom.xml index 11ae1f22dff0..590524d11afe 100644 --- a/java-certificate-manager/grpc-google-cloud-certificate-manager-v1/pom.xml +++ b/java-certificate-manager/grpc-google-cloud-certificate-manager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-certificate-manager-v1 - 0.48.0 + 0.49.0-SNAPSHOT grpc-google-cloud-certificate-manager-v1 GRPC library for google-cloud-certificate-manager com.google.cloud google-cloud-certificate-manager-parent - 0.48.0 + 0.49.0-SNAPSHOT diff --git a/java-certificate-manager/pom.xml b/java-certificate-manager/pom.xml index 3f0650e56c26..3ba6cc145faa 100644 --- a/java-certificate-manager/pom.xml +++ b/java-certificate-manager/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-certificate-manager-parent pom - 0.48.0 + 0.49.0-SNAPSHOT Google Certificate Manager Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-certificate-manager - 0.48.0 + 0.49.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-certificate-manager-v1 - 0.48.0 + 0.49.0-SNAPSHOT com.google.api.grpc proto-google-cloud-certificate-manager-v1 - 0.48.0 + 0.49.0-SNAPSHOT diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/pom.xml b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/pom.xml index db62d2fa2854..0cbb606af9fd 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/pom.xml +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-certificate-manager-v1 - 0.48.0 + 0.49.0-SNAPSHOT proto-google-cloud-certificate-manager-v1 Proto library for google-cloud-certificate-manager com.google.cloud google-cloud-certificate-manager-parent - 0.48.0 + 0.49.0-SNAPSHOT diff --git a/java-channel/google-cloud-channel-bom/pom.xml b/java-channel/google-cloud-channel-bom/pom.xml index 6da136fb70b6..30331def5ae6 100644 --- a/java-channel/google-cloud-channel-bom/pom.xml +++ b/java-channel/google-cloud-channel-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-channel-bom - 3.49.0 + 3.50.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-channel - 3.49.0 + 3.50.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-channel-v1 - 3.49.0 + 3.50.0-SNAPSHOT com.google.api.grpc proto-google-cloud-channel-v1 - 3.49.0 + 3.50.0-SNAPSHOT diff --git a/java-channel/google-cloud-channel/pom.xml b/java-channel/google-cloud-channel/pom.xml index b629af06b5cb..242ce56c455c 100644 --- a/java-channel/google-cloud-channel/pom.xml +++ b/java-channel/google-cloud-channel/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-channel - 3.49.0 + 3.50.0-SNAPSHOT jar Google Channel Services With Channel Services, Google Cloud partners and resellers have a single unified resale platform, with a unified resale catalog, customer management, order management, billing management, policy and authorization management, and cost management. com.google.cloud google-cloud-channel-parent - 3.49.0 + 3.50.0-SNAPSHOT google-cloud-channel diff --git a/java-channel/grpc-google-cloud-channel-v1/pom.xml b/java-channel/grpc-google-cloud-channel-v1/pom.xml index 5450dc968180..a58c84fa1e5c 100644 --- a/java-channel/grpc-google-cloud-channel-v1/pom.xml +++ b/java-channel/grpc-google-cloud-channel-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-channel-v1 - 3.49.0 + 3.50.0-SNAPSHOT grpc-google-cloud-channel-v1 GRPC library for google-cloud-channel com.google.cloud google-cloud-channel-parent - 3.49.0 + 3.50.0-SNAPSHOT diff --git a/java-channel/pom.xml b/java-channel/pom.xml index 47574551643d..17013eab2b86 100644 --- a/java-channel/pom.xml +++ b/java-channel/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-channel-parent pom - 3.49.0 + 3.50.0-SNAPSHOT Google Channel Services Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-channel - 3.49.0 + 3.50.0-SNAPSHOT com.google.api.grpc proto-google-cloud-channel-v1 - 3.49.0 + 3.50.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-channel-v1 - 3.49.0 + 3.50.0-SNAPSHOT diff --git a/java-channel/proto-google-cloud-channel-v1/pom.xml b/java-channel/proto-google-cloud-channel-v1/pom.xml index 39a4f344fa49..8f3ebb6c095d 100644 --- a/java-channel/proto-google-cloud-channel-v1/pom.xml +++ b/java-channel/proto-google-cloud-channel-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-channel-v1 - 3.49.0 + 3.50.0-SNAPSHOT proto-google-cloud-channel-v1 Proto library for google-cloud-channel com.google.cloud google-cloud-channel-parent - 3.49.0 + 3.50.0-SNAPSHOT diff --git a/java-chat/google-cloud-chat-bom/pom.xml b/java-chat/google-cloud-chat-bom/pom.xml index 3ae200c0f860..6b10e3bf9d9f 100644 --- a/java-chat/google-cloud-chat-bom/pom.xml +++ b/java-chat/google-cloud-chat-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-chat-bom - 0.9.0 + 0.10.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-chat - 0.9.0 + 0.10.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-chat-v1 - 0.9.0 + 0.10.0-SNAPSHOT com.google.api.grpc proto-google-cloud-chat-v1 - 0.9.0 + 0.10.0-SNAPSHOT diff --git a/java-chat/google-cloud-chat/pom.xml b/java-chat/google-cloud-chat/pom.xml index 4f3196f81dee..bbc98d21d7e2 100644 --- a/java-chat/google-cloud-chat/pom.xml +++ b/java-chat/google-cloud-chat/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-chat - 0.9.0 + 0.10.0-SNAPSHOT jar Google Google Chat API Google Chat API The Google Chat API lets you build Chat apps to integrate your services with Google Chat and manage Chat resources such as spaces, members, and messages. com.google.cloud google-cloud-chat-parent - 0.9.0 + 0.10.0-SNAPSHOT google-cloud-chat diff --git a/java-chat/grpc-google-cloud-chat-v1/pom.xml b/java-chat/grpc-google-cloud-chat-v1/pom.xml index b58a0104ab69..b3e8903f4814 100644 --- a/java-chat/grpc-google-cloud-chat-v1/pom.xml +++ b/java-chat/grpc-google-cloud-chat-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-chat-v1 - 0.9.0 + 0.10.0-SNAPSHOT grpc-google-cloud-chat-v1 GRPC library for google-cloud-chat com.google.cloud google-cloud-chat-parent - 0.9.0 + 0.10.0-SNAPSHOT diff --git a/java-chat/pom.xml b/java-chat/pom.xml index dc573fb1a631..b5eccd8acf58 100644 --- a/java-chat/pom.xml +++ b/java-chat/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-chat-parent pom - 0.9.0 + 0.10.0-SNAPSHOT Google Google Chat API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-chat - 0.9.0 + 0.10.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-chat-v1 - 0.9.0 + 0.10.0-SNAPSHOT com.google.api.grpc proto-google-cloud-chat-v1 - 0.9.0 + 0.10.0-SNAPSHOT diff --git a/java-chat/proto-google-cloud-chat-v1/pom.xml b/java-chat/proto-google-cloud-chat-v1/pom.xml index 62d121b9f0dd..e7000750a6db 100644 --- a/java-chat/proto-google-cloud-chat-v1/pom.xml +++ b/java-chat/proto-google-cloud-chat-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-chat-v1 - 0.9.0 + 0.10.0-SNAPSHOT proto-google-cloud-chat-v1 Proto library for google-cloud-chat com.google.cloud google-cloud-chat-parent - 0.9.0 + 0.10.0-SNAPSHOT diff --git a/java-cloudbuild/google-cloud-build-bom/pom.xml b/java-cloudbuild/google-cloud-build-bom/pom.xml index 24acd5f40b4a..7be563b1e58c 100644 --- a/java-cloudbuild/google-cloud-build-bom/pom.xml +++ b/java-cloudbuild/google-cloud-build-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-build-bom - 3.47.0 + 3.48.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-build - 3.47.0 + 3.48.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-build-v1 - 3.47.0 + 3.48.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-build-v2 - 3.47.0 + 3.48.0-SNAPSHOT com.google.api.grpc proto-google-cloud-build-v1 - 3.47.0 + 3.48.0-SNAPSHOT com.google.api.grpc proto-google-cloud-build-v2 - 3.47.0 + 3.48.0-SNAPSHOT diff --git a/java-cloudbuild/google-cloud-build/pom.xml b/java-cloudbuild/google-cloud-build/pom.xml index 96c299bb188e..f27acda536db 100644 --- a/java-cloudbuild/google-cloud-build/pom.xml +++ b/java-cloudbuild/google-cloud-build/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-build - 3.47.0 + 3.48.0-SNAPSHOT jar Google Cloud Build @@ -12,7 +12,7 @@ com.google.cloud google-cloud-build-parent - 3.47.0 + 3.48.0-SNAPSHOT google-cloud-build diff --git a/java-cloudbuild/grpc-google-cloud-build-v1/pom.xml b/java-cloudbuild/grpc-google-cloud-build-v1/pom.xml index 5a48b5a218b7..dc8a419e44dc 100644 --- a/java-cloudbuild/grpc-google-cloud-build-v1/pom.xml +++ b/java-cloudbuild/grpc-google-cloud-build-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-build-v1 - 3.47.0 + 3.48.0-SNAPSHOT grpc-google-cloud-build-v1 GRPC library for grpc-google-cloud-build-v1 com.google.cloud google-cloud-build-parent - 3.47.0 + 3.48.0-SNAPSHOT diff --git a/java-cloudbuild/grpc-google-cloud-build-v2/pom.xml b/java-cloudbuild/grpc-google-cloud-build-v2/pom.xml index 1a78716477c7..ac0ccc974a2d 100644 --- a/java-cloudbuild/grpc-google-cloud-build-v2/pom.xml +++ b/java-cloudbuild/grpc-google-cloud-build-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-build-v2 - 3.47.0 + 3.48.0-SNAPSHOT grpc-google-cloud-build-v2 GRPC library for google-cloud-build com.google.cloud google-cloud-build-parent - 3.47.0 + 3.48.0-SNAPSHOT diff --git a/java-cloudbuild/pom.xml b/java-cloudbuild/pom.xml index 877666800ff1..8480447a7464 100644 --- a/java-cloudbuild/pom.xml +++ b/java-cloudbuild/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-build-parent pom - 3.47.0 + 3.48.0-SNAPSHOT Google Cloud Build Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-build-v1 - 3.47.0 + 3.48.0-SNAPSHOT com.google.api.grpc proto-google-cloud-build-v2 - 3.47.0 + 3.48.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-build-v2 - 3.47.0 + 3.48.0-SNAPSHOT com.google.cloud google-cloud-build - 3.47.0 + 3.48.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-build-v1 - 3.47.0 + 3.48.0-SNAPSHOT diff --git a/java-cloudbuild/proto-google-cloud-build-v1/pom.xml b/java-cloudbuild/proto-google-cloud-build-v1/pom.xml index 83cf2eb57766..a047b5f84d18 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/pom.xml +++ b/java-cloudbuild/proto-google-cloud-build-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-build-v1 - 3.47.0 + 3.48.0-SNAPSHOT proto-google-cloud-build-v1 PROTO library for proto-google-cloud-build-v1 com.google.cloud google-cloud-build-parent - 3.47.0 + 3.48.0-SNAPSHOT diff --git a/java-cloudbuild/proto-google-cloud-build-v2/pom.xml b/java-cloudbuild/proto-google-cloud-build-v2/pom.xml index 381aba4643c9..435613dc5645 100644 --- a/java-cloudbuild/proto-google-cloud-build-v2/pom.xml +++ b/java-cloudbuild/proto-google-cloud-build-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-build-v2 - 3.47.0 + 3.48.0-SNAPSHOT proto-google-cloud-build-v2 Proto library for google-cloud-build com.google.cloud google-cloud-build-parent - 3.47.0 + 3.48.0-SNAPSHOT diff --git a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement-bom/pom.xml b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement-bom/pom.xml index b6dcb4a72d01..f316716646a7 100644 --- a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement-bom/pom.xml +++ b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-cloudcommerceconsumerprocurement-bom - 0.43.0 + 0.44.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-cloudcommerceconsumerprocurement - 0.43.0 + 0.44.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1 - 0.43.0 + 0.44.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-cloudcommerceconsumerprocurement-v1 - 0.43.0 + 0.44.0-SNAPSHOT com.google.api.grpc proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1 - 0.43.0 + 0.44.0-SNAPSHOT com.google.api.grpc proto-google-cloud-cloudcommerceconsumerprocurement-v1 - 0.43.0 + 0.44.0-SNAPSHOT diff --git a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/pom.xml b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/pom.xml index 5d78781c03da..7e4a551df16d 100644 --- a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/pom.xml +++ b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-cloudcommerceconsumerprocurement - 0.43.0 + 0.44.0-SNAPSHOT jar Google Cloud Commerce Consumer Procurement Cloud Commerce Consumer Procurement Find top solutions integrated with Google Cloud to accelerate your digital transformation. Scale and simplify procurement for your organization with online discovery, flexible purchasing, and fulfillment of enterprise-grade cloud solutions. com.google.cloud google-cloud-cloudcommerceconsumerprocurement-parent - 0.43.0 + 0.44.0-SNAPSHOT google-cloud-cloudcommerceconsumerprocurement diff --git a/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1/pom.xml b/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1/pom.xml index feec9804d159..0b0c8f100008 100644 --- a/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1/pom.xml +++ b/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-cloudcommerceconsumerprocurement-v1 - 0.43.0 + 0.44.0-SNAPSHOT grpc-google-cloud-cloudcommerceconsumerprocurement-v1 GRPC library for google-cloud-cloudcommerceconsumerprocurement com.google.cloud google-cloud-cloudcommerceconsumerprocurement-parent - 0.43.0 + 0.44.0-SNAPSHOT diff --git a/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/pom.xml b/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/pom.xml index c44a0839bb34..4f89d38b5efd 100644 --- a/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/pom.xml +++ b/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1 - 0.43.0 + 0.44.0-SNAPSHOT grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1 GRPC library for google-cloud-cloudcommerceconsumerprocurement com.google.cloud google-cloud-cloudcommerceconsumerprocurement-parent - 0.43.0 + 0.44.0-SNAPSHOT diff --git a/java-cloudcommerceconsumerprocurement/pom.xml b/java-cloudcommerceconsumerprocurement/pom.xml index 6a9927f6202f..c6072297ab3b 100644 --- a/java-cloudcommerceconsumerprocurement/pom.xml +++ b/java-cloudcommerceconsumerprocurement/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-cloudcommerceconsumerprocurement-parent pom - 0.43.0 + 0.44.0-SNAPSHOT Google Cloud Commerce Consumer Procurement Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-cloudcommerceconsumerprocurement - 0.43.0 + 0.44.0-SNAPSHOT com.google.api.grpc proto-google-cloud-cloudcommerceconsumerprocurement-v1 - 0.43.0 + 0.44.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-cloudcommerceconsumerprocurement-v1 - 0.43.0 + 0.44.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1 - 0.43.0 + 0.44.0-SNAPSHOT com.google.api.grpc proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1 - 0.43.0 + 0.44.0-SNAPSHOT diff --git a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/pom.xml b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/pom.xml index db2f75a077d5..64619315492f 100644 --- a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/pom.xml +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-cloudcommerceconsumerprocurement-v1 - 0.43.0 + 0.44.0-SNAPSHOT proto-google-cloud-cloudcommerceconsumerprocurement-v1 Proto library for google-cloud-cloudcommerceconsumerprocurement com.google.cloud google-cloud-cloudcommerceconsumerprocurement-parent - 0.43.0 + 0.44.0-SNAPSHOT diff --git a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/pom.xml b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/pom.xml index 06fe4738e004..a24c7c57f8df 100644 --- a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/pom.xml +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1 - 0.43.0 + 0.44.0-SNAPSHOT proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1 Proto library for google-cloud-cloudcommerceconsumerprocurement com.google.cloud google-cloud-cloudcommerceconsumerprocurement-parent - 0.43.0 + 0.44.0-SNAPSHOT diff --git a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner-bom/pom.xml b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner-bom/pom.xml index 15ab21fa9e62..a32c91ef0898 100644 --- a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner-bom/pom.xml +++ b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-cloudcontrolspartner-bom - 0.9.0 + 0.10.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-cloudcontrolspartner - 0.9.0 + 0.10.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-cloudcontrolspartner-v1 - 0.9.0 + 0.10.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-cloudcontrolspartner-v1beta - 0.9.0 + 0.10.0-SNAPSHOT com.google.api.grpc proto-google-cloud-cloudcontrolspartner-v1beta - 0.9.0 + 0.10.0-SNAPSHOT com.google.api.grpc proto-google-cloud-cloudcontrolspartner-v1 - 0.9.0 + 0.10.0-SNAPSHOT diff --git a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/pom.xml b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/pom.xml index e958cbd42e7f..0ab1c98e8645 100644 --- a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/pom.xml +++ b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-cloudcontrolspartner - 0.9.0 + 0.10.0-SNAPSHOT jar Google Cloud Controls Partner API Cloud Controls Partner API Provides insights about your customers and their Assured Workloads based on your Sovereign Controls by Partners offering. com.google.cloud google-cloud-cloudcontrolspartner-parent - 0.9.0 + 0.10.0-SNAPSHOT google-cloud-cloudcontrolspartner diff --git a/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1/pom.xml b/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1/pom.xml index 3f8e0b6c98eb..2134c60a1ef3 100644 --- a/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1/pom.xml +++ b/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-cloudcontrolspartner-v1 - 0.9.0 + 0.10.0-SNAPSHOT grpc-google-cloud-cloudcontrolspartner-v1 GRPC library for google-cloud-cloudcontrolspartner com.google.cloud google-cloud-cloudcontrolspartner-parent - 0.9.0 + 0.10.0-SNAPSHOT diff --git a/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1beta/pom.xml b/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1beta/pom.xml index 1705c9e7c04b..56cf9ebbec8b 100644 --- a/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1beta/pom.xml +++ b/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-cloudcontrolspartner-v1beta - 0.9.0 + 0.10.0-SNAPSHOT grpc-google-cloud-cloudcontrolspartner-v1beta GRPC library for google-cloud-cloudcontrolspartner com.google.cloud google-cloud-cloudcontrolspartner-parent - 0.9.0 + 0.10.0-SNAPSHOT diff --git a/java-cloudcontrolspartner/pom.xml b/java-cloudcontrolspartner/pom.xml index 88b72c80c1cb..2a442759a62b 100644 --- a/java-cloudcontrolspartner/pom.xml +++ b/java-cloudcontrolspartner/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-cloudcontrolspartner-parent pom - 0.9.0 + 0.10.0-SNAPSHOT Google Cloud Controls Partner API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-cloudcontrolspartner - 0.9.0 + 0.10.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-cloudcontrolspartner-v1 - 0.9.0 + 0.10.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-cloudcontrolspartner-v1beta - 0.9.0 + 0.10.0-SNAPSHOT com.google.api.grpc proto-google-cloud-cloudcontrolspartner-v1beta - 0.9.0 + 0.10.0-SNAPSHOT com.google.api.grpc proto-google-cloud-cloudcontrolspartner-v1 - 0.9.0 + 0.10.0-SNAPSHOT diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/pom.xml b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/pom.xml index 392539ceef3f..e9c63a658ad2 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/pom.xml +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-cloudcontrolspartner-v1 - 0.9.0 + 0.10.0-SNAPSHOT proto-google-cloud-cloudcontrolspartner-v1 Proto library for google-cloud-cloudcontrolspartner com.google.cloud google-cloud-cloudcontrolspartner-parent - 0.9.0 + 0.10.0-SNAPSHOT diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/pom.xml b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/pom.xml index 2c097a6f5abc..92e129bda78f 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/pom.xml +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-cloudcontrolspartner-v1beta - 0.9.0 + 0.10.0-SNAPSHOT proto-google-cloud-cloudcontrolspartner-v1beta Proto library for google-cloud-cloudcontrolspartner com.google.cloud google-cloud-cloudcontrolspartner-parent - 0.9.0 + 0.10.0-SNAPSHOT diff --git a/java-cloudquotas/google-cloud-cloudquotas-bom/pom.xml b/java-cloudquotas/google-cloud-cloudquotas-bom/pom.xml index 35422f0c796b..5683a51d9f5d 100644 --- a/java-cloudquotas/google-cloud-cloudquotas-bom/pom.xml +++ b/java-cloudquotas/google-cloud-cloudquotas-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-cloudquotas-bom - 0.13.0 + 0.14.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-cloudquotas - 0.13.0 + 0.14.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-cloudquotas-v1 - 0.13.0 + 0.14.0-SNAPSHOT com.google.api.grpc proto-google-cloud-cloudquotas-v1 - 0.13.0 + 0.14.0-SNAPSHOT diff --git a/java-cloudquotas/google-cloud-cloudquotas/pom.xml b/java-cloudquotas/google-cloud-cloudquotas/pom.xml index 4baf4cbf890a..364cc91296fb 100644 --- a/java-cloudquotas/google-cloud-cloudquotas/pom.xml +++ b/java-cloudquotas/google-cloud-cloudquotas/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-cloudquotas - 0.13.0 + 0.14.0-SNAPSHOT jar Google Cloud Quotas API Cloud Quotas API Cloud Quotas API provides GCP service consumers with management and @@ -12,7 +12,7 @@ com.google.cloud google-cloud-cloudquotas-parent - 0.13.0 + 0.14.0-SNAPSHOT google-cloud-cloudquotas diff --git a/java-cloudquotas/grpc-google-cloud-cloudquotas-v1/pom.xml b/java-cloudquotas/grpc-google-cloud-cloudquotas-v1/pom.xml index 044c33556be9..76702e52b40d 100644 --- a/java-cloudquotas/grpc-google-cloud-cloudquotas-v1/pom.xml +++ b/java-cloudquotas/grpc-google-cloud-cloudquotas-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-cloudquotas-v1 - 0.13.0 + 0.14.0-SNAPSHOT grpc-google-cloud-cloudquotas-v1 GRPC library for google-cloud-cloudquotas com.google.cloud google-cloud-cloudquotas-parent - 0.13.0 + 0.14.0-SNAPSHOT diff --git a/java-cloudquotas/pom.xml b/java-cloudquotas/pom.xml index 8a237cc197c3..0927aeaed488 100644 --- a/java-cloudquotas/pom.xml +++ b/java-cloudquotas/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-cloudquotas-parent pom - 0.13.0 + 0.14.0-SNAPSHOT Google Cloud Quotas API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-cloudquotas - 0.13.0 + 0.14.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-cloudquotas-v1 - 0.13.0 + 0.14.0-SNAPSHOT com.google.api.grpc proto-google-cloud-cloudquotas-v1 - 0.13.0 + 0.14.0-SNAPSHOT diff --git a/java-cloudquotas/proto-google-cloud-cloudquotas-v1/pom.xml b/java-cloudquotas/proto-google-cloud-cloudquotas-v1/pom.xml index ae9e37da317b..634e207d0054 100644 --- a/java-cloudquotas/proto-google-cloud-cloudquotas-v1/pom.xml +++ b/java-cloudquotas/proto-google-cloud-cloudquotas-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-cloudquotas-v1 - 0.13.0 + 0.14.0-SNAPSHOT proto-google-cloud-cloudquotas-v1 Proto library for google-cloud-cloudquotas com.google.cloud google-cloud-cloudquotas-parent - 0.13.0 + 0.14.0-SNAPSHOT diff --git a/java-cloudsupport/google-cloud-cloudsupport-bom/pom.xml b/java-cloudsupport/google-cloud-cloudsupport-bom/pom.xml index 722d351fb87f..a4cc2f58051d 100644 --- a/java-cloudsupport/google-cloud-cloudsupport-bom/pom.xml +++ b/java-cloudsupport/google-cloud-cloudsupport-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-cloudsupport-bom - 0.29.0 + 0.30.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-cloudsupport - 0.29.0 + 0.30.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-cloudsupport-v2 - 0.29.0 + 0.30.0-SNAPSHOT com.google.api.grpc proto-google-cloud-cloudsupport-v2 - 0.29.0 + 0.30.0-SNAPSHOT diff --git a/java-cloudsupport/google-cloud-cloudsupport/pom.xml b/java-cloudsupport/google-cloud-cloudsupport/pom.xml index a306db0285c2..b7ae913f81c0 100644 --- a/java-cloudsupport/google-cloud-cloudsupport/pom.xml +++ b/java-cloudsupport/google-cloud-cloudsupport/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-cloudsupport - 0.29.0 + 0.30.0-SNAPSHOT jar Google Google Cloud Support API Google Cloud Support API Manages Google Cloud technical support cases for Customer Care support offerings. com.google.cloud google-cloud-cloudsupport-parent - 0.29.0 + 0.30.0-SNAPSHOT google-cloud-cloudsupport diff --git a/java-cloudsupport/grpc-google-cloud-cloudsupport-v2/pom.xml b/java-cloudsupport/grpc-google-cloud-cloudsupport-v2/pom.xml index 12908d878af8..01c7b8157bcd 100644 --- a/java-cloudsupport/grpc-google-cloud-cloudsupport-v2/pom.xml +++ b/java-cloudsupport/grpc-google-cloud-cloudsupport-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-cloudsupport-v2 - 0.29.0 + 0.30.0-SNAPSHOT grpc-google-cloud-cloudsupport-v2 GRPC library for google-cloud-cloudsupport com.google.cloud google-cloud-cloudsupport-parent - 0.29.0 + 0.30.0-SNAPSHOT diff --git a/java-cloudsupport/pom.xml b/java-cloudsupport/pom.xml index 9f86b710bc9b..e8362cbbde42 100644 --- a/java-cloudsupport/pom.xml +++ b/java-cloudsupport/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-cloudsupport-parent pom - 0.29.0 + 0.30.0-SNAPSHOT Google Google Cloud Support API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-cloudsupport - 0.29.0 + 0.30.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-cloudsupport-v2 - 0.29.0 + 0.30.0-SNAPSHOT com.google.api.grpc proto-google-cloud-cloudsupport-v2 - 0.29.0 + 0.30.0-SNAPSHOT diff --git a/java-cloudsupport/proto-google-cloud-cloudsupport-v2/pom.xml b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/pom.xml index 13eded4d3e2b..14ae7afd0ea6 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2/pom.xml +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-cloudsupport-v2 - 0.29.0 + 0.30.0-SNAPSHOT proto-google-cloud-cloudsupport-v2 Proto library for google-cloud-cloudsupport com.google.cloud google-cloud-cloudsupport-parent - 0.29.0 + 0.30.0-SNAPSHOT diff --git a/java-compute/google-cloud-compute-bom/pom.xml b/java-compute/google-cloud-compute-bom/pom.xml index 65f2c3179f60..862c97390081 100644 --- a/java-compute/google-cloud-compute-bom/pom.xml +++ b/java-compute/google-cloud-compute-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-compute-bom - 1.55.0 + 1.56.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -23,12 +23,12 @@ com.google.cloud google-cloud-compute - 1.55.0 + 1.56.0-SNAPSHOT com.google.api.grpc proto-google-cloud-compute-v1 - 1.55.0 + 1.56.0-SNAPSHOT diff --git a/java-compute/google-cloud-compute/pom.xml b/java-compute/google-cloud-compute/pom.xml index 787b60f752ae..319a3d18723c 100644 --- a/java-compute/google-cloud-compute/pom.xml +++ b/java-compute/google-cloud-compute/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-compute - 1.55.0 + 1.56.0-SNAPSHOT jar Google Compute Engine Compute Engine delivers configurable virtual machines running in @@ -12,7 +12,7 @@ com.google.cloud google-cloud-compute-parent - 1.55.0 + 1.56.0-SNAPSHOT google-cloud-compute diff --git a/java-compute/pom.xml b/java-compute/pom.xml index c89d01920bf6..711aef5b5bfa 100644 --- a/java-compute/pom.xml +++ b/java-compute/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-compute-parent pom - 1.55.0 + 1.56.0-SNAPSHOT Google Compute Engine Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,12 +29,12 @@ com.google.cloud google-cloud-compute - 1.55.0 + 1.56.0-SNAPSHOT com.google.api.grpc proto-google-cloud-compute-v1 - 1.55.0 + 1.56.0-SNAPSHOT diff --git a/java-compute/proto-google-cloud-compute-v1/pom.xml b/java-compute/proto-google-cloud-compute-v1/pom.xml index 7f5ac5fbb3e4..695818cacded 100644 --- a/java-compute/proto-google-cloud-compute-v1/pom.xml +++ b/java-compute/proto-google-cloud-compute-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-compute-v1 - 1.55.0 + 1.56.0-SNAPSHOT proto-google-cloud-compute-v1 Proto library for google-cloud-compute com.google.cloud google-cloud-compute-parent - 1.55.0 + 1.56.0-SNAPSHOT diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing-bom/pom.xml b/java-confidentialcomputing/google-cloud-confidentialcomputing-bom/pom.xml index 9c5b4a08007d..106ab9bf496c 100644 --- a/java-confidentialcomputing/google-cloud-confidentialcomputing-bom/pom.xml +++ b/java-confidentialcomputing/google-cloud-confidentialcomputing-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-confidentialcomputing-bom - 0.31.0 + 0.32.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-confidentialcomputing - 0.31.0 + 0.32.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-confidentialcomputing-v1 - 0.31.0 + 0.32.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-confidentialcomputing-v1alpha1 - 0.31.0 + 0.32.0-SNAPSHOT com.google.api.grpc proto-google-cloud-confidentialcomputing-v1 - 0.31.0 + 0.32.0-SNAPSHOT com.google.api.grpc proto-google-cloud-confidentialcomputing-v1alpha1 - 0.31.0 + 0.32.0-SNAPSHOT diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/pom.xml b/java-confidentialcomputing/google-cloud-confidentialcomputing/pom.xml index 79fc0c588c05..4c33bf6cfd4d 100644 --- a/java-confidentialcomputing/google-cloud-confidentialcomputing/pom.xml +++ b/java-confidentialcomputing/google-cloud-confidentialcomputing/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-confidentialcomputing - 0.31.0 + 0.32.0-SNAPSHOT jar Google Confidential Computing API Confidential Computing API Protect data in-use with Confidential VMs, Confidential GKE, Confidential Dataproc, and Confidential Space. com.google.cloud google-cloud-confidentialcomputing-parent - 0.31.0 + 0.32.0-SNAPSHOT google-cloud-confidentialcomputing diff --git a/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1/pom.xml b/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1/pom.xml index 5b456054c492..9fb8a7aa8281 100644 --- a/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1/pom.xml +++ b/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-confidentialcomputing-v1 - 0.31.0 + 0.32.0-SNAPSHOT grpc-google-cloud-confidentialcomputing-v1 GRPC library for google-cloud-confidentialcomputing com.google.cloud google-cloud-confidentialcomputing-parent - 0.31.0 + 0.32.0-SNAPSHOT diff --git a/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1alpha1/pom.xml b/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1alpha1/pom.xml index 422f8b87535f..1ede7ee221b4 100644 --- a/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1alpha1/pom.xml +++ b/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-confidentialcomputing-v1alpha1 - 0.31.0 + 0.32.0-SNAPSHOT grpc-google-cloud-confidentialcomputing-v1alpha1 GRPC library for google-cloud-confidentialcomputing com.google.cloud google-cloud-confidentialcomputing-parent - 0.31.0 + 0.32.0-SNAPSHOT diff --git a/java-confidentialcomputing/pom.xml b/java-confidentialcomputing/pom.xml index a9e5ff84ef34..7c899a25a7f2 100644 --- a/java-confidentialcomputing/pom.xml +++ b/java-confidentialcomputing/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-confidentialcomputing-parent pom - 0.31.0 + 0.32.0-SNAPSHOT Google Confidential Computing API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-confidentialcomputing - 0.31.0 + 0.32.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-confidentialcomputing-v1 - 0.31.0 + 0.32.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-confidentialcomputing-v1alpha1 - 0.31.0 + 0.32.0-SNAPSHOT com.google.api.grpc proto-google-cloud-confidentialcomputing-v1 - 0.31.0 + 0.32.0-SNAPSHOT com.google.api.grpc proto-google-cloud-confidentialcomputing-v1alpha1 - 0.31.0 + 0.32.0-SNAPSHOT diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/pom.xml b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/pom.xml index f4f64834cff3..5ce87de03830 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/pom.xml +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-confidentialcomputing-v1 - 0.31.0 + 0.32.0-SNAPSHOT proto-google-cloud-confidentialcomputing-v1 Proto library for google-cloud-confidentialcomputing com.google.cloud google-cloud-confidentialcomputing-parent - 0.31.0 + 0.32.0-SNAPSHOT diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/pom.xml b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/pom.xml index e4795239f302..8786cf05111c 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/pom.xml +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-confidentialcomputing-v1alpha1 - 0.31.0 + 0.32.0-SNAPSHOT proto-google-cloud-confidentialcomputing-v1alpha1 Proto library for google-cloud-confidentialcomputing com.google.cloud google-cloud-confidentialcomputing-parent - 0.31.0 + 0.32.0-SNAPSHOT diff --git a/java-contact-center-insights/google-cloud-contact-center-insights-bom/pom.xml b/java-contact-center-insights/google-cloud-contact-center-insights-bom/pom.xml index fb7f6d249994..6325eb96d9cd 100644 --- a/java-contact-center-insights/google-cloud-contact-center-insights-bom/pom.xml +++ b/java-contact-center-insights/google-cloud-contact-center-insights-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-contact-center-insights-bom - 2.45.0 + 2.46.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-contact-center-insights - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-contact-center-insights-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-contact-center-insights-v1 - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-contact-center-insights/google-cloud-contact-center-insights/pom.xml b/java-contact-center-insights/google-cloud-contact-center-insights/pom.xml index 5916d3c1a9a7..8e1c8d4fcfee 100644 --- a/java-contact-center-insights/google-cloud-contact-center-insights/pom.xml +++ b/java-contact-center-insights/google-cloud-contact-center-insights/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-contact-center-insights - 2.45.0 + 2.46.0-SNAPSHOT jar Google CCAI Insights CCAI Insights helps users detect and visualize patterns in their contact center data. com.google.cloud google-cloud-contact-center-insights-parent - 2.45.0 + 2.46.0-SNAPSHOT google-cloud-contact-center-insights diff --git a/java-contact-center-insights/grpc-google-cloud-contact-center-insights-v1/pom.xml b/java-contact-center-insights/grpc-google-cloud-contact-center-insights-v1/pom.xml index 07c55a4b7dd5..81dae6a9a4fa 100644 --- a/java-contact-center-insights/grpc-google-cloud-contact-center-insights-v1/pom.xml +++ b/java-contact-center-insights/grpc-google-cloud-contact-center-insights-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-contact-center-insights-v1 - 2.45.0 + 2.46.0-SNAPSHOT grpc-google-cloud-contact-center-insights-v1 GRPC library for google-cloud-contact-center-insights com.google.cloud google-cloud-contact-center-insights-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-contact-center-insights/pom.xml b/java-contact-center-insights/pom.xml index de4573bb8ca9..735f60f5317f 100644 --- a/java-contact-center-insights/pom.xml +++ b/java-contact-center-insights/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-contact-center-insights-parent pom - 2.45.0 + 2.46.0-SNAPSHOT Google CCAI Insights Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-contact-center-insights - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-contact-center-insights-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-contact-center-insights-v1 - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/pom.xml b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/pom.xml index 5e866cbe687f..41c1c2189e3e 100644 --- a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/pom.xml +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-contact-center-insights-v1 - 2.45.0 + 2.46.0-SNAPSHOT proto-google-cloud-contact-center-insights-v1 Proto library for google-cloud-contact-center-insights com.google.cloud google-cloud-contact-center-insights-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-container/google-cloud-container-bom/pom.xml b/java-container/google-cloud-container-bom/pom.xml index 0b2b7a17d8ce..f245fa4afc92 100644 --- a/java-container/google-cloud-container-bom/pom.xml +++ b/java-container/google-cloud-container-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-container-bom - 2.48.0 + 2.49.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-container - 2.48.0 + 2.49.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-container-v1 - 2.48.0 + 2.49.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-container-v1beta1 - 2.48.0 + 2.49.0-SNAPSHOT com.google.api.grpc proto-google-cloud-container-v1 - 2.48.0 + 2.49.0-SNAPSHOT com.google.api.grpc proto-google-cloud-container-v1beta1 - 2.48.0 + 2.49.0-SNAPSHOT diff --git a/java-container/google-cloud-container/pom.xml b/java-container/google-cloud-container/pom.xml index 2298c8302440..3614ff104e0f 100644 --- a/java-container/google-cloud-container/pom.xml +++ b/java-container/google-cloud-container/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-container - 2.48.0 + 2.49.0-SNAPSHOT jar Google Cloud Container Java idiomatic client for Google Cloud Container com.google.cloud google-cloud-container-parent - 2.48.0 + 2.49.0-SNAPSHOT google-cloud-container diff --git a/java-container/grpc-google-cloud-container-v1/pom.xml b/java-container/grpc-google-cloud-container-v1/pom.xml index c29069d6a4ae..5f20fb8773c8 100644 --- a/java-container/grpc-google-cloud-container-v1/pom.xml +++ b/java-container/grpc-google-cloud-container-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-container-v1 - 2.48.0 + 2.49.0-SNAPSHOT grpc-google-cloud-container-v1 GRPC library for grpc-google-cloud-container-v1 com.google.cloud google-cloud-container-parent - 2.48.0 + 2.49.0-SNAPSHOT diff --git a/java-container/grpc-google-cloud-container-v1beta1/pom.xml b/java-container/grpc-google-cloud-container-v1beta1/pom.xml index 8a85b14e99c7..1690aa22dd6a 100644 --- a/java-container/grpc-google-cloud-container-v1beta1/pom.xml +++ b/java-container/grpc-google-cloud-container-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-container-v1beta1 - 2.48.0 + 2.49.0-SNAPSHOT grpc-google-cloud-container-v1beta1 GRPC library for google-cloud-container com.google.cloud google-cloud-container-parent - 2.48.0 + 2.49.0-SNAPSHOT diff --git a/java-container/pom.xml b/java-container/pom.xml index 6bc496042511..e8943b0df509 100644 --- a/java-container/pom.xml +++ b/java-container/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-container-parent pom - 2.48.0 + 2.49.0-SNAPSHOT Google Cloud Container Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-container-v1 - 2.48.0 + 2.49.0-SNAPSHOT com.google.api.grpc proto-google-cloud-container-v1beta1 - 2.48.0 + 2.49.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-container-v1beta1 - 2.48.0 + 2.49.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-container-v1 - 2.48.0 + 2.49.0-SNAPSHOT com.google.cloud google-cloud-container - 2.48.0 + 2.49.0-SNAPSHOT diff --git a/java-container/proto-google-cloud-container-v1/pom.xml b/java-container/proto-google-cloud-container-v1/pom.xml index ea8317b72f06..02d3d623c6af 100644 --- a/java-container/proto-google-cloud-container-v1/pom.xml +++ b/java-container/proto-google-cloud-container-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-container-v1 - 2.48.0 + 2.49.0-SNAPSHOT proto-google-cloud-container-v1 PROTO library for proto-google-cloud-container-v1 com.google.cloud google-cloud-container-parent - 2.48.0 + 2.49.0-SNAPSHOT diff --git a/java-container/proto-google-cloud-container-v1beta1/pom.xml b/java-container/proto-google-cloud-container-v1beta1/pom.xml index 61146fa9eea3..cc0133e96897 100644 --- a/java-container/proto-google-cloud-container-v1beta1/pom.xml +++ b/java-container/proto-google-cloud-container-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-container-v1beta1 - 2.48.0 + 2.49.0-SNAPSHOT proto-google-cloud-container-v1beta1 Proto library for google-cloud-container com.google.cloud google-cloud-container-parent - 2.48.0 + 2.49.0-SNAPSHOT diff --git a/java-containeranalysis/google-cloud-containeranalysis-bom/pom.xml b/java-containeranalysis/google-cloud-containeranalysis-bom/pom.xml index cc4d24989a1e..141015cada74 100644 --- a/java-containeranalysis/google-cloud-containeranalysis-bom/pom.xml +++ b/java-containeranalysis/google-cloud-containeranalysis-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-containeranalysis-bom - 2.46.0 + 2.47.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-containeranalysis - 2.46.0 + 2.47.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-containeranalysis-v1beta1 - 0.136.0 + 0.137.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-containeranalysis-v1 - 2.46.0 + 2.47.0-SNAPSHOT com.google.api.grpc proto-google-cloud-containeranalysis-v1 - 2.46.0 + 2.47.0-SNAPSHOT com.google.api.grpc proto-google-cloud-containeranalysis-v1beta1 - 0.136.0 + 0.137.0-SNAPSHOT diff --git a/java-containeranalysis/google-cloud-containeranalysis/pom.xml b/java-containeranalysis/google-cloud-containeranalysis/pom.xml index 86e7486de940..6b9022f279e8 100644 --- a/java-containeranalysis/google-cloud-containeranalysis/pom.xml +++ b/java-containeranalysis/google-cloud-containeranalysis/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-containeranalysis - 2.46.0 + 2.47.0-SNAPSHOT jar Google Cloud Container Analysis Java idiomatic client for Google Cloud Container Analysis com.google.cloud google-cloud-containeranalysis-parent - 2.46.0 + 2.47.0-SNAPSHOT google-cloud-containeranalysis diff --git a/java-containeranalysis/grpc-google-cloud-containeranalysis-v1/pom.xml b/java-containeranalysis/grpc-google-cloud-containeranalysis-v1/pom.xml index 76897d520276..9db0315edabe 100644 --- a/java-containeranalysis/grpc-google-cloud-containeranalysis-v1/pom.xml +++ b/java-containeranalysis/grpc-google-cloud-containeranalysis-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-containeranalysis-v1 - 2.46.0 + 2.47.0-SNAPSHOT grpc-google-cloud-containeranalysis-v1 GRPC library for grpc-google-cloud-containeranalysis-v1 com.google.cloud google-cloud-containeranalysis-parent - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-containeranalysis/grpc-google-cloud-containeranalysis-v1beta1/pom.xml b/java-containeranalysis/grpc-google-cloud-containeranalysis-v1beta1/pom.xml index b5bb00ee0d40..b667f89638d4 100644 --- a/java-containeranalysis/grpc-google-cloud-containeranalysis-v1beta1/pom.xml +++ b/java-containeranalysis/grpc-google-cloud-containeranalysis-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-containeranalysis-v1beta1 - 0.136.0 + 0.137.0-SNAPSHOT grpc-google-cloud-containeranalysis-v1beta1 GRPC library for grpc-google-cloud-containeranalysis-v1beta1 com.google.cloud google-cloud-containeranalysis-parent - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-containeranalysis/pom.xml b/java-containeranalysis/pom.xml index 48ff1fee96ba..9a25695c4d2d 100644 --- a/java-containeranalysis/pom.xml +++ b/java-containeranalysis/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-containeranalysis-parent pom - 2.46.0 + 2.47.0-SNAPSHOT Google Cloud Container Analysis Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,33 +29,33 @@ com.google.api.grpc proto-google-cloud-containeranalysis-v1 - 2.46.0 + 2.47.0-SNAPSHOT com.google.api.grpc proto-google-cloud-containeranalysis-v1beta1 - 0.136.0 + 0.137.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-containeranalysis-v1beta1 - 0.136.0 + 0.137.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-containeranalysis-v1 - 2.46.0 + 2.47.0-SNAPSHOT com.google.cloud google-cloud-containeranalysis - 2.46.0 + 2.47.0-SNAPSHOT io.grafeas grafeas - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-containeranalysis/proto-google-cloud-containeranalysis-v1/pom.xml b/java-containeranalysis/proto-google-cloud-containeranalysis-v1/pom.xml index 56629915b7e4..943c01976eb9 100644 --- a/java-containeranalysis/proto-google-cloud-containeranalysis-v1/pom.xml +++ b/java-containeranalysis/proto-google-cloud-containeranalysis-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-containeranalysis-v1 - 2.46.0 + 2.47.0-SNAPSHOT proto-google-cloud-containeranalysis-v1 PROTO library for proto-google-cloud-containeranalysis-v1 com.google.cloud google-cloud-containeranalysis-parent - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-containeranalysis/proto-google-cloud-containeranalysis-v1beta1/pom.xml b/java-containeranalysis/proto-google-cloud-containeranalysis-v1beta1/pom.xml index 3ade140ac1cf..c172284d94d5 100644 --- a/java-containeranalysis/proto-google-cloud-containeranalysis-v1beta1/pom.xml +++ b/java-containeranalysis/proto-google-cloud-containeranalysis-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-containeranalysis-v1beta1 - 0.136.0 + 0.137.0-SNAPSHOT proto-google-cloud-containeranalysis-v1beta1 PROTO library for proto-google-cloud-containeranalysis-v1beta1 com.google.cloud google-cloud-containeranalysis-parent - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-contentwarehouse/google-cloud-contentwarehouse-bom/pom.xml b/java-contentwarehouse/google-cloud-contentwarehouse-bom/pom.xml index c436800beda0..e9b1e91c39f5 100644 --- a/java-contentwarehouse/google-cloud-contentwarehouse-bom/pom.xml +++ b/java-contentwarehouse/google-cloud-contentwarehouse-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-contentwarehouse-bom - 0.41.0 + 0.42.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-contentwarehouse - 0.41.0 + 0.42.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-contentwarehouse-v1 - 0.41.0 + 0.42.0-SNAPSHOT com.google.api.grpc proto-google-cloud-contentwarehouse-v1 - 0.41.0 + 0.42.0-SNAPSHOT diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/pom.xml b/java-contentwarehouse/google-cloud-contentwarehouse/pom.xml index 87301f6b8c10..c088061a9de9 100644 --- a/java-contentwarehouse/google-cloud-contentwarehouse/pom.xml +++ b/java-contentwarehouse/google-cloud-contentwarehouse/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-contentwarehouse - 0.41.0 + 0.42.0-SNAPSHOT jar Google Document AI Warehouse Document AI Warehouse Document AI Warehouse is an integrated cloud-native GCP platform to store, search, organize, govern and analyze documents and their structured metadata. com.google.cloud google-cloud-contentwarehouse-parent - 0.41.0 + 0.42.0-SNAPSHOT google-cloud-contentwarehouse diff --git a/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/pom.xml b/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/pom.xml index e56b31cad996..cd1221cd4832 100644 --- a/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/pom.xml +++ b/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-contentwarehouse-v1 - 0.41.0 + 0.42.0-SNAPSHOT grpc-google-cloud-contentwarehouse-v1 GRPC library for google-cloud-contentwarehouse com.google.cloud google-cloud-contentwarehouse-parent - 0.41.0 + 0.42.0-SNAPSHOT diff --git a/java-contentwarehouse/pom.xml b/java-contentwarehouse/pom.xml index df172ed222f3..24c8690bb864 100644 --- a/java-contentwarehouse/pom.xml +++ b/java-contentwarehouse/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-contentwarehouse-parent pom - 0.41.0 + 0.42.0-SNAPSHOT Google Document AI Warehouse Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-contentwarehouse - 0.41.0 + 0.42.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-contentwarehouse-v1 - 0.41.0 + 0.42.0-SNAPSHOT com.google.api.grpc proto-google-cloud-contentwarehouse-v1 - 0.41.0 + 0.42.0-SNAPSHOT @@ -48,7 +48,7 @@ com.google.cloud google-cloud-document-ai - 2.49.0 + 2.50.0-SNAPSHOT diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/pom.xml b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/pom.xml index 1af6cc915fb9..620a6d06632e 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/pom.xml +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-contentwarehouse-v1 - 0.41.0 + 0.42.0-SNAPSHOT proto-google-cloud-contentwarehouse-v1 Proto library for google-cloud-contentwarehouse com.google.cloud google-cloud-contentwarehouse-parent - 0.41.0 + 0.42.0-SNAPSHOT diff --git a/java-data-fusion/google-cloud-data-fusion-bom/pom.xml b/java-data-fusion/google-cloud-data-fusion-bom/pom.xml index b100b58a2822..ef9887118987 100644 --- a/java-data-fusion/google-cloud-data-fusion-bom/pom.xml +++ b/java-data-fusion/google-cloud-data-fusion-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-data-fusion-bom - 1.45.0 + 1.46.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-data-fusion - 1.45.0 + 1.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-data-fusion-v1beta1 - 0.49.0 + 0.50.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-data-fusion-v1 - 1.45.0 + 1.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-data-fusion-v1beta1 - 0.49.0 + 0.50.0-SNAPSHOT com.google.api.grpc proto-google-cloud-data-fusion-v1 - 1.45.0 + 1.46.0-SNAPSHOT diff --git a/java-data-fusion/google-cloud-data-fusion/pom.xml b/java-data-fusion/google-cloud-data-fusion/pom.xml index fb261e095b04..1269a1ff59c7 100644 --- a/java-data-fusion/google-cloud-data-fusion/pom.xml +++ b/java-data-fusion/google-cloud-data-fusion/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-data-fusion - 1.45.0 + 1.46.0-SNAPSHOT jar Google Cloud Data Fusion Cloud Data Fusion is a fully managed, cloud-native, enterprise data integration service for quickly building and managing data pipelines. com.google.cloud google-cloud-data-fusion-parent - 1.45.0 + 1.46.0-SNAPSHOT google-cloud-data-fusion diff --git a/java-data-fusion/grpc-google-cloud-data-fusion-v1/pom.xml b/java-data-fusion/grpc-google-cloud-data-fusion-v1/pom.xml index d0b2fc502416..ba5ef5b054e6 100644 --- a/java-data-fusion/grpc-google-cloud-data-fusion-v1/pom.xml +++ b/java-data-fusion/grpc-google-cloud-data-fusion-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-data-fusion-v1 - 1.45.0 + 1.46.0-SNAPSHOT grpc-google-cloud-data-fusion-v1 GRPC library for google-cloud-data-fusion com.google.cloud google-cloud-data-fusion-parent - 1.45.0 + 1.46.0-SNAPSHOT diff --git a/java-data-fusion/grpc-google-cloud-data-fusion-v1beta1/pom.xml b/java-data-fusion/grpc-google-cloud-data-fusion-v1beta1/pom.xml index 5c7a9b429778..ca10156cb150 100644 --- a/java-data-fusion/grpc-google-cloud-data-fusion-v1beta1/pom.xml +++ b/java-data-fusion/grpc-google-cloud-data-fusion-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-data-fusion-v1beta1 - 0.49.0 + 0.50.0-SNAPSHOT grpc-google-cloud-data-fusion-v1beta1 GRPC library for google-cloud-data-fusion com.google.cloud google-cloud-data-fusion-parent - 1.45.0 + 1.46.0-SNAPSHOT diff --git a/java-data-fusion/pom.xml b/java-data-fusion/pom.xml index 4271c7ebbc46..87f0e3bfdb90 100644 --- a/java-data-fusion/pom.xml +++ b/java-data-fusion/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-data-fusion-parent pom - 1.45.0 + 1.46.0-SNAPSHOT Google Cloud Data Fusion Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-data-fusion - 1.45.0 + 1.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-data-fusion-v1beta1 - 0.49.0 + 0.50.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-data-fusion-v1 - 1.45.0 + 1.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-data-fusion-v1beta1 - 0.49.0 + 0.50.0-SNAPSHOT com.google.api.grpc proto-google-cloud-data-fusion-v1 - 1.45.0 + 1.46.0-SNAPSHOT diff --git a/java-data-fusion/proto-google-cloud-data-fusion-v1/pom.xml b/java-data-fusion/proto-google-cloud-data-fusion-v1/pom.xml index 8807ddaf7f78..a44f8881cd6e 100644 --- a/java-data-fusion/proto-google-cloud-data-fusion-v1/pom.xml +++ b/java-data-fusion/proto-google-cloud-data-fusion-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-data-fusion-v1 - 1.45.0 + 1.46.0-SNAPSHOT proto-google-cloud-data-fusion-v1 Proto library for google-cloud-data-fusion com.google.cloud google-cloud-data-fusion-parent - 1.45.0 + 1.46.0-SNAPSHOT diff --git a/java-data-fusion/proto-google-cloud-data-fusion-v1beta1/pom.xml b/java-data-fusion/proto-google-cloud-data-fusion-v1beta1/pom.xml index d0ff79c62c25..bf9ef0eeb47d 100644 --- a/java-data-fusion/proto-google-cloud-data-fusion-v1beta1/pom.xml +++ b/java-data-fusion/proto-google-cloud-data-fusion-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-data-fusion-v1beta1 - 0.49.0 + 0.50.0-SNAPSHOT proto-google-cloud-data-fusion-v1beta1 Proto library for google-cloud-data-fusion com.google.cloud google-cloud-data-fusion-parent - 1.45.0 + 1.46.0-SNAPSHOT diff --git a/java-datacatalog/google-cloud-datacatalog-bom/pom.xml b/java-datacatalog/google-cloud-datacatalog-bom/pom.xml index f56195c563d1..45181eeb1de0 100644 --- a/java-datacatalog/google-cloud-datacatalog-bom/pom.xml +++ b/java-datacatalog/google-cloud-datacatalog-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-datacatalog-bom - 1.51.0 + 1.52.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-datacatalog - 1.51.0 + 1.52.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-datacatalog-v1 - 1.51.0 + 1.52.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-datacatalog-v1beta1 - 0.88.0 + 0.89.0-SNAPSHOT com.google.api.grpc proto-google-cloud-datacatalog-v1 - 1.51.0 + 1.52.0-SNAPSHOT com.google.api.grpc proto-google-cloud-datacatalog-v1beta1 - 0.88.0 + 0.89.0-SNAPSHOT diff --git a/java-datacatalog/google-cloud-datacatalog/pom.xml b/java-datacatalog/google-cloud-datacatalog/pom.xml index 3e9f600cb609..f58eefa18408 100644 --- a/java-datacatalog/google-cloud-datacatalog/pom.xml +++ b/java-datacatalog/google-cloud-datacatalog/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-datacatalog - 1.51.0 + 1.52.0-SNAPSHOT jar Google Cloud Data Catalog Java idiomatic client for Google Cloud Data Catalog com.google.cloud google-cloud-datacatalog-parent - 1.51.0 + 1.52.0-SNAPSHOT google-cloud-datacatalog diff --git a/java-datacatalog/grpc-google-cloud-datacatalog-v1/pom.xml b/java-datacatalog/grpc-google-cloud-datacatalog-v1/pom.xml index a87540b88996..432486f892bc 100644 --- a/java-datacatalog/grpc-google-cloud-datacatalog-v1/pom.xml +++ b/java-datacatalog/grpc-google-cloud-datacatalog-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-datacatalog-v1 - 1.51.0 + 1.52.0-SNAPSHOT grpc-google-cloud-datacatalog-v1 GRPC library for grpc-google-cloud-datacatalog-v1 com.google.cloud google-cloud-datacatalog-parent - 1.51.0 + 1.52.0-SNAPSHOT diff --git a/java-datacatalog/grpc-google-cloud-datacatalog-v1beta1/pom.xml b/java-datacatalog/grpc-google-cloud-datacatalog-v1beta1/pom.xml index 2a1145dbdae2..66c348765fa5 100644 --- a/java-datacatalog/grpc-google-cloud-datacatalog-v1beta1/pom.xml +++ b/java-datacatalog/grpc-google-cloud-datacatalog-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-datacatalog-v1beta1 - 0.88.0 + 0.89.0-SNAPSHOT grpc-google-cloud-datacatalog-v1beta1 GRPC library for grpc-google-cloud-datacatalog-v1beta1 com.google.cloud google-cloud-datacatalog-parent - 1.51.0 + 1.52.0-SNAPSHOT diff --git a/java-datacatalog/pom.xml b/java-datacatalog/pom.xml index 792edf066577..a30a9d9e2feb 100644 --- a/java-datacatalog/pom.xml +++ b/java-datacatalog/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-datacatalog-parent pom - 1.51.0 + 1.52.0-SNAPSHOT Google Cloud Data Catalog Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-datacatalog-v1 - 1.51.0 + 1.52.0-SNAPSHOT com.google.api.grpc proto-google-cloud-datacatalog-v1beta1 - 0.88.0 + 0.89.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-datacatalog-v1 - 1.51.0 + 1.52.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-datacatalog-v1beta1 - 0.88.0 + 0.89.0-SNAPSHOT com.google.cloud google-cloud-datacatalog - 1.51.0 + 1.52.0-SNAPSHOT diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/pom.xml b/java-datacatalog/proto-google-cloud-datacatalog-v1/pom.xml index b464164d3a63..337dbd8c24b4 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/pom.xml +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-datacatalog-v1 - 1.51.0 + 1.52.0-SNAPSHOT proto-google-cloud-datacatalog-v1 PROTO library for proto-google-cloud-datacatalog-v1 com.google.cloud google-cloud-datacatalog-parent - 1.51.0 + 1.52.0-SNAPSHOT diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/pom.xml b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/pom.xml index a5f3ade8bd79..d6c42bd7f6a5 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/pom.xml +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-datacatalog-v1beta1 - 0.88.0 + 0.89.0-SNAPSHOT proto-google-cloud-datacatalog-v1beta1 PROTO library for proto-google-cloud-datacatalog-v1beta1 com.google.cloud google-cloud-datacatalog-parent - 1.51.0 + 1.52.0-SNAPSHOT diff --git a/java-dataflow/google-cloud-dataflow-bom/pom.xml b/java-dataflow/google-cloud-dataflow-bom/pom.xml index f66451d05e6d..b855a5b21b23 100644 --- a/java-dataflow/google-cloud-dataflow-bom/pom.xml +++ b/java-dataflow/google-cloud-dataflow-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-dataflow-bom - 0.49.0 + 0.50.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-dataflow - 0.49.0 + 0.50.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataflow-v1beta3 - 0.49.0 + 0.50.0-SNAPSHOT com.google.api.grpc proto-google-cloud-dataflow-v1beta3 - 0.49.0 + 0.50.0-SNAPSHOT diff --git a/java-dataflow/google-cloud-dataflow/pom.xml b/java-dataflow/google-cloud-dataflow/pom.xml index bd51a6b84ede..2aaceb7779d1 100644 --- a/java-dataflow/google-cloud-dataflow/pom.xml +++ b/java-dataflow/google-cloud-dataflow/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-dataflow - 0.49.0 + 0.50.0-SNAPSHOT jar Google Dataflow Dataflow is a managed service for executing a wide variety of data processing patterns. com.google.cloud google-cloud-dataflow-parent - 0.49.0 + 0.50.0-SNAPSHOT google-cloud-dataflow diff --git a/java-dataflow/grpc-google-cloud-dataflow-v1beta3/pom.xml b/java-dataflow/grpc-google-cloud-dataflow-v1beta3/pom.xml index 0a81f37e97b8..685eeed2dbed 100644 --- a/java-dataflow/grpc-google-cloud-dataflow-v1beta3/pom.xml +++ b/java-dataflow/grpc-google-cloud-dataflow-v1beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataflow-v1beta3 - 0.49.0 + 0.50.0-SNAPSHOT grpc-google-cloud-dataflow-v1beta3 GRPC library for google-cloud-dataflow com.google.cloud google-cloud-dataflow-parent - 0.49.0 + 0.50.0-SNAPSHOT diff --git a/java-dataflow/pom.xml b/java-dataflow/pom.xml index c108cf24f66c..b7eb31585f02 100644 --- a/java-dataflow/pom.xml +++ b/java-dataflow/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataflow-parent pom - 0.49.0 + 0.50.0-SNAPSHOT Google Dataflow Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-dataflow - 0.49.0 + 0.50.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataflow-v1beta3 - 0.49.0 + 0.50.0-SNAPSHOT com.google.api.grpc proto-google-cloud-dataflow-v1beta3 - 0.49.0 + 0.50.0-SNAPSHOT diff --git a/java-dataflow/proto-google-cloud-dataflow-v1beta3/pom.xml b/java-dataflow/proto-google-cloud-dataflow-v1beta3/pom.xml index 1d57c4015da2..4462ff7ff82e 100644 --- a/java-dataflow/proto-google-cloud-dataflow-v1beta3/pom.xml +++ b/java-dataflow/proto-google-cloud-dataflow-v1beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataflow-v1beta3 - 0.49.0 + 0.50.0-SNAPSHOT proto-google-cloud-dataflow-v1beta3 Proto library for google-cloud-dataflow com.google.cloud google-cloud-dataflow-parent - 0.49.0 + 0.50.0-SNAPSHOT diff --git a/java-dataform/google-cloud-dataform-bom/pom.xml b/java-dataform/google-cloud-dataform-bom/pom.xml index c54eea18955a..a8df4fff74a5 100644 --- a/java-dataform/google-cloud-dataform-bom/pom.xml +++ b/java-dataform/google-cloud-dataform-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-dataform-bom - 0.44.0 + 0.45.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-dataform - 0.44.0 + 0.45.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataform-v1alpha2 - 0.44.0 + 0.45.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataform-v1beta1 - 0.44.0 + 0.45.0-SNAPSHOT com.google.api.grpc proto-google-cloud-dataform-v1alpha2 - 0.44.0 + 0.45.0-SNAPSHOT com.google.api.grpc proto-google-cloud-dataform-v1beta1 - 0.44.0 + 0.45.0-SNAPSHOT diff --git a/java-dataform/google-cloud-dataform/pom.xml b/java-dataform/google-cloud-dataform/pom.xml index a15924999a95..2d986f4fc444 100644 --- a/java-dataform/google-cloud-dataform/pom.xml +++ b/java-dataform/google-cloud-dataform/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-dataform - 0.44.0 + 0.45.0-SNAPSHOT jar Google Cloud Dataform Cloud Dataform Help analytics teams manage data inside BigQuery using SQL. com.google.cloud google-cloud-dataform-parent - 0.44.0 + 0.45.0-SNAPSHOT google-cloud-dataform diff --git a/java-dataform/grpc-google-cloud-dataform-v1alpha2/pom.xml b/java-dataform/grpc-google-cloud-dataform-v1alpha2/pom.xml index 37e9f8727a91..84ecb4964630 100644 --- a/java-dataform/grpc-google-cloud-dataform-v1alpha2/pom.xml +++ b/java-dataform/grpc-google-cloud-dataform-v1alpha2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataform-v1alpha2 - 0.44.0 + 0.45.0-SNAPSHOT grpc-google-cloud-dataform-v1alpha2 GRPC library for google-cloud-dataform com.google.cloud google-cloud-dataform-parent - 0.44.0 + 0.45.0-SNAPSHOT diff --git a/java-dataform/grpc-google-cloud-dataform-v1beta1/pom.xml b/java-dataform/grpc-google-cloud-dataform-v1beta1/pom.xml index a9b024428f1b..a169f3b531d4 100644 --- a/java-dataform/grpc-google-cloud-dataform-v1beta1/pom.xml +++ b/java-dataform/grpc-google-cloud-dataform-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataform-v1beta1 - 0.44.0 + 0.45.0-SNAPSHOT grpc-google-cloud-dataform-v1beta1 GRPC library for google-cloud-dataform com.google.cloud google-cloud-dataform-parent - 0.44.0 + 0.45.0-SNAPSHOT diff --git a/java-dataform/pom.xml b/java-dataform/pom.xml index cff0ea50527d..d7d61ccb4efc 100644 --- a/java-dataform/pom.xml +++ b/java-dataform/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataform-parent pom - 0.44.0 + 0.45.0-SNAPSHOT Google Cloud Dataform Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-dataform - 0.44.0 + 0.45.0-SNAPSHOT com.google.api.grpc proto-google-cloud-dataform-v1beta1 - 0.44.0 + 0.45.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataform-v1beta1 - 0.44.0 + 0.45.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataform-v1alpha2 - 0.44.0 + 0.45.0-SNAPSHOT com.google.api.grpc proto-google-cloud-dataform-v1alpha2 - 0.44.0 + 0.45.0-SNAPSHOT diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/pom.xml b/java-dataform/proto-google-cloud-dataform-v1alpha2/pom.xml index db67a88a66e5..74c41befc6bb 100644 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/pom.xml +++ b/java-dataform/proto-google-cloud-dataform-v1alpha2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataform-v1alpha2 - 0.44.0 + 0.45.0-SNAPSHOT proto-google-cloud-dataform-v1alpha2 Proto library for google-cloud-dataform com.google.cloud google-cloud-dataform-parent - 0.44.0 + 0.45.0-SNAPSHOT diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/pom.xml b/java-dataform/proto-google-cloud-dataform-v1beta1/pom.xml index 055fea99626f..9abfba1c94c5 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/pom.xml +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataform-v1beta1 - 0.44.0 + 0.45.0-SNAPSHOT proto-google-cloud-dataform-v1beta1 Proto library for google-cloud-dataform com.google.cloud google-cloud-dataform-parent - 0.44.0 + 0.45.0-SNAPSHOT diff --git a/java-datalabeling/google-cloud-datalabeling-bom/pom.xml b/java-datalabeling/google-cloud-datalabeling-bom/pom.xml index a566a073b83f..b3aeac9f5a78 100644 --- a/java-datalabeling/google-cloud-datalabeling-bom/pom.xml +++ b/java-datalabeling/google-cloud-datalabeling-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-datalabeling-bom - 0.165.0 + 0.166.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-datalabeling - 0.165.0 + 0.166.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-datalabeling-v1beta1 - 0.130.0 + 0.131.0-SNAPSHOT com.google.api.grpc proto-google-cloud-datalabeling-v1beta1 - 0.130.0 + 0.131.0-SNAPSHOT diff --git a/java-datalabeling/google-cloud-datalabeling/pom.xml b/java-datalabeling/google-cloud-datalabeling/pom.xml index 3427759fbe7b..0608de7f9d80 100644 --- a/java-datalabeling/google-cloud-datalabeling/pom.xml +++ b/java-datalabeling/google-cloud-datalabeling/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-datalabeling - 0.165.0 + 0.166.0-SNAPSHOT jar Google Cloud Data Labeling Java idiomatic client for Google Cloud Data Labeling com.google.cloud google-cloud-datalabeling-parent - 0.165.0 + 0.166.0-SNAPSHOT google-cloud-datalabeling diff --git a/java-datalabeling/grpc-google-cloud-datalabeling-v1beta1/pom.xml b/java-datalabeling/grpc-google-cloud-datalabeling-v1beta1/pom.xml index 5ee90e69354d..83737eb811e9 100644 --- a/java-datalabeling/grpc-google-cloud-datalabeling-v1beta1/pom.xml +++ b/java-datalabeling/grpc-google-cloud-datalabeling-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-datalabeling-v1beta1 - 0.130.0 + 0.131.0-SNAPSHOT grpc-google-cloud-datalabeling-v1beta1 GRPC library for grpc-google-cloud-datalabeling-v1beta1 com.google.cloud google-cloud-datalabeling-parent - 0.165.0 + 0.166.0-SNAPSHOT diff --git a/java-datalabeling/pom.xml b/java-datalabeling/pom.xml index cfbb8444f9a4..48d8cd5000c9 100644 --- a/java-datalabeling/pom.xml +++ b/java-datalabeling/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-datalabeling-parent pom - 0.165.0 + 0.166.0-SNAPSHOT Google Cloud Data Labeling Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.api.grpc proto-google-cloud-datalabeling-v1beta1 - 0.130.0 + 0.131.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-datalabeling-v1beta1 - 0.130.0 + 0.131.0-SNAPSHOT com.google.cloud google-cloud-datalabeling - 0.165.0 + 0.166.0-SNAPSHOT diff --git a/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/pom.xml b/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/pom.xml index 5a46ceb37dff..34f9b7c3a620 100644 --- a/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/pom.xml +++ b/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-datalabeling-v1beta1 - 0.130.0 + 0.131.0-SNAPSHOT proto-google-cloud-datalabeling-v1beta1 PROTO library for proto-google-cloud-datalabeling-v1beta1 com.google.cloud google-cloud-datalabeling-parent - 0.165.0 + 0.166.0-SNAPSHOT diff --git a/java-datalineage/google-cloud-datalineage-bom/pom.xml b/java-datalineage/google-cloud-datalineage-bom/pom.xml index 377c410c9636..58a3e9e77417 100644 --- a/java-datalineage/google-cloud-datalineage-bom/pom.xml +++ b/java-datalineage/google-cloud-datalineage-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-datalineage-bom - 0.37.0 + 0.38.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-datalineage - 0.37.0 + 0.38.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-datalineage-v1 - 0.37.0 + 0.38.0-SNAPSHOT com.google.api.grpc proto-google-cloud-datalineage-v1 - 0.37.0 + 0.38.0-SNAPSHOT diff --git a/java-datalineage/google-cloud-datalineage/pom.xml b/java-datalineage/google-cloud-datalineage/pom.xml index a1bf525b9a04..5fd0cf161372 100644 --- a/java-datalineage/google-cloud-datalineage/pom.xml +++ b/java-datalineage/google-cloud-datalineage/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-datalineage - 0.37.0 + 0.38.0-SNAPSHOT jar Google Data Lineage Data Lineage Lineage is used to track data flows between assets over time. com.google.cloud google-cloud-datalineage-parent - 0.37.0 + 0.38.0-SNAPSHOT google-cloud-datalineage diff --git a/java-datalineage/grpc-google-cloud-datalineage-v1/pom.xml b/java-datalineage/grpc-google-cloud-datalineage-v1/pom.xml index 97582f7da782..7abc8ed6a98e 100644 --- a/java-datalineage/grpc-google-cloud-datalineage-v1/pom.xml +++ b/java-datalineage/grpc-google-cloud-datalineage-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-datalineage-v1 - 0.37.0 + 0.38.0-SNAPSHOT grpc-google-cloud-datalineage-v1 GRPC library for google-cloud-datalineage com.google.cloud google-cloud-datalineage-parent - 0.37.0 + 0.38.0-SNAPSHOT diff --git a/java-datalineage/pom.xml b/java-datalineage/pom.xml index 2aaff8608065..45569e14f720 100644 --- a/java-datalineage/pom.xml +++ b/java-datalineage/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-datalineage-parent pom - 0.37.0 + 0.38.0-SNAPSHOT Google Data Lineage Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-datalineage - 0.37.0 + 0.38.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-datalineage-v1 - 0.37.0 + 0.38.0-SNAPSHOT com.google.api.grpc proto-google-cloud-datalineage-v1 - 0.37.0 + 0.38.0-SNAPSHOT diff --git a/java-datalineage/proto-google-cloud-datalineage-v1/pom.xml b/java-datalineage/proto-google-cloud-datalineage-v1/pom.xml index 5f0540965377..036bd8b50b4d 100644 --- a/java-datalineage/proto-google-cloud-datalineage-v1/pom.xml +++ b/java-datalineage/proto-google-cloud-datalineage-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-datalineage-v1 - 0.37.0 + 0.38.0-SNAPSHOT proto-google-cloud-datalineage-v1 Proto library for google-cloud-datalineage com.google.cloud google-cloud-datalineage-parent - 0.37.0 + 0.38.0-SNAPSHOT diff --git a/java-dataplex/google-cloud-dataplex-bom/pom.xml b/java-dataplex/google-cloud-dataplex-bom/pom.xml index f1a7775f3267..9e4412c98366 100644 --- a/java-dataplex/google-cloud-dataplex-bom/pom.xml +++ b/java-dataplex/google-cloud-dataplex-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-dataplex-bom - 1.43.0 + 1.44.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-dataplex - 1.43.0 + 1.44.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataplex-v1 - 1.43.0 + 1.44.0-SNAPSHOT com.google.api.grpc proto-google-cloud-dataplex-v1 - 1.43.0 + 1.44.0-SNAPSHOT diff --git a/java-dataplex/google-cloud-dataplex/pom.xml b/java-dataplex/google-cloud-dataplex/pom.xml index 27e046ed91c5..5d3f5f443797 100644 --- a/java-dataplex/google-cloud-dataplex/pom.xml +++ b/java-dataplex/google-cloud-dataplex/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-dataplex - 1.43.0 + 1.44.0-SNAPSHOT jar Google Cloud Dataplex Cloud Dataplex provides intelligent data fabric that enables organizations to centrally manage, monitor, and govern their data across data lakes, data warehouses, and data marts with consistent controls, providing access to trusted data and powering analytics at scale. com.google.cloud google-cloud-dataplex-parent - 1.43.0 + 1.44.0-SNAPSHOT google-cloud-dataplex diff --git a/java-dataplex/grpc-google-cloud-dataplex-v1/pom.xml b/java-dataplex/grpc-google-cloud-dataplex-v1/pom.xml index e9bd9b7fbbe1..652965e99358 100644 --- a/java-dataplex/grpc-google-cloud-dataplex-v1/pom.xml +++ b/java-dataplex/grpc-google-cloud-dataplex-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataplex-v1 - 1.43.0 + 1.44.0-SNAPSHOT grpc-google-cloud-dataplex-v1 GRPC library for google-cloud-dataplex com.google.cloud google-cloud-dataplex-parent - 1.43.0 + 1.44.0-SNAPSHOT diff --git a/java-dataplex/pom.xml b/java-dataplex/pom.xml index f4e70d1c65a1..93b48e8f1f86 100644 --- a/java-dataplex/pom.xml +++ b/java-dataplex/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataplex-parent pom - 1.43.0 + 1.44.0-SNAPSHOT Google Cloud Dataplex Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-dataplex - 1.43.0 + 1.44.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataplex-v1 - 1.43.0 + 1.44.0-SNAPSHOT com.google.api.grpc proto-google-cloud-dataplex-v1 - 1.43.0 + 1.44.0-SNAPSHOT diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/pom.xml b/java-dataplex/proto-google-cloud-dataplex-v1/pom.xml index 136bb24b00a4..56388a9399fb 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/pom.xml +++ b/java-dataplex/proto-google-cloud-dataplex-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataplex-v1 - 1.43.0 + 1.44.0-SNAPSHOT proto-google-cloud-dataplex-v1 Proto library for google-cloud-dataplex com.google.cloud google-cloud-dataplex-parent - 1.43.0 + 1.44.0-SNAPSHOT diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore-bom/pom.xml b/java-dataproc-metastore/google-cloud-dataproc-metastore-bom/pom.xml index 65c72c565dc3..67b9d40ea876 100644 --- a/java-dataproc-metastore/google-cloud-dataproc-metastore-bom/pom.xml +++ b/java-dataproc-metastore/google-cloud-dataproc-metastore-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-dataproc-metastore-bom - 2.46.0 + 2.47.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,37 +27,37 @@ com.google.cloud google-cloud-dataproc-metastore - 2.46.0 + 2.47.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-metastore-v1beta - 0.50.0 + 0.51.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-metastore-v1alpha - 0.50.0 + 0.51.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-metastore-v1 - 2.46.0 + 2.47.0-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-metastore-v1beta - 0.50.0 + 0.51.0-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-metastore-v1alpha - 0.50.0 + 0.51.0-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-metastore-v1 - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/pom.xml b/java-dataproc-metastore/google-cloud-dataproc-metastore/pom.xml index cc1bb69d44ad..87e025c030ae 100644 --- a/java-dataproc-metastore/google-cloud-dataproc-metastore/pom.xml +++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-dataproc-metastore - 2.46.0 + 2.47.0-SNAPSHOT jar Google Dataproc Metastore is a fully managed, highly available, autoscaled, autohealing, OSS-native metastore service that greatly simplifies technical metadata management. Dataproc Metastore service is based on Apache Hive metastore and serves as a critical component towards enterprise data lakes. com.google.cloud google-cloud-dataproc-metastore-parent - 2.46.0 + 2.47.0-SNAPSHOT google-cloud-dataproc-metastore diff --git a/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1/pom.xml b/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1/pom.xml index ae00e50a3e58..65341049d645 100644 --- a/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1/pom.xml +++ b/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-metastore-v1 - 2.46.0 + 2.47.0-SNAPSHOT grpc-google-cloud-dataproc-metastore-v1 GRPC library for google-cloud-dataproc-metastore com.google.cloud google-cloud-dataproc-metastore-parent - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1alpha/pom.xml b/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1alpha/pom.xml index af1f7e7cf874..b6cb8419ab13 100644 --- a/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1alpha/pom.xml +++ b/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-metastore-v1alpha - 0.50.0 + 0.51.0-SNAPSHOT grpc-google-cloud-dataproc-metastore-v1alpha GRPC library for google-cloud-dataproc-metastore com.google.cloud google-cloud-dataproc-metastore-parent - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1beta/pom.xml b/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1beta/pom.xml index 60aab973285d..7f91f09be917 100644 --- a/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1beta/pom.xml +++ b/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-metastore-v1beta - 0.50.0 + 0.51.0-SNAPSHOT grpc-google-cloud-dataproc-metastore-v1beta GRPC library for google-cloud-dataproc-metastore com.google.cloud google-cloud-dataproc-metastore-parent - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-dataproc-metastore/pom.xml b/java-dataproc-metastore/pom.xml index 53f2ec520bbc..4958f2787df7 100644 --- a/java-dataproc-metastore/pom.xml +++ b/java-dataproc-metastore/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-metastore-parent pom - 2.46.0 + 2.47.0-SNAPSHOT Google Dataproc Metastore Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.cloud google-cloud-dataproc-metastore - 2.46.0 + 2.47.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-metastore-v1beta - 0.50.0 + 0.51.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-metastore-v1alpha - 0.50.0 + 0.51.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-metastore-v1 - 2.46.0 + 2.47.0-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-metastore-v1beta - 0.50.0 + 0.51.0-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-metastore-v1alpha - 0.50.0 + 0.51.0-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-metastore-v1 - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1/pom.xml b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1/pom.xml index 9855b090a1aa..a81f848c60f7 100644 --- a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1/pom.xml +++ b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-metastore-v1 - 2.46.0 + 2.47.0-SNAPSHOT proto-google-cloud-dataproc-metastore-v1 Proto library for google-cloud-dataproc-metastore com.google.cloud google-cloud-dataproc-metastore-parent - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1alpha/pom.xml b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1alpha/pom.xml index eb4a6824c1ed..f3af6cc27f37 100644 --- a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1alpha/pom.xml +++ b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-metastore-v1alpha - 0.50.0 + 0.51.0-SNAPSHOT proto-google-cloud-dataproc-metastore-v1alpha Proto library for google-cloud-dataproc-metastore com.google.cloud google-cloud-dataproc-metastore-parent - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1beta/pom.xml b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1beta/pom.xml index 58a49088489f..b52c2985cf7b 100644 --- a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1beta/pom.xml +++ b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-metastore-v1beta - 0.50.0 + 0.51.0-SNAPSHOT proto-google-cloud-dataproc-metastore-v1beta Proto library for google-cloud-dataproc-metastore com.google.cloud google-cloud-dataproc-metastore-parent - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-dataproc/google-cloud-dataproc-bom/pom.xml b/java-dataproc/google-cloud-dataproc-bom/pom.xml index 4091f2ca9bd2..87ff8d9b034f 100644 --- a/java-dataproc/google-cloud-dataproc-bom/pom.xml +++ b/java-dataproc/google-cloud-dataproc-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 4.42.0 + 4.43.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-dataproc - 4.42.0 + 4.43.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.42.0 + 4.43.0-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.42.0 + 4.43.0-SNAPSHOT diff --git a/java-dataproc/google-cloud-dataproc/pom.xml b/java-dataproc/google-cloud-dataproc/pom.xml index eec510d9eec9..51159e5bbfd1 100644 --- a/java-dataproc/google-cloud-dataproc/pom.xml +++ b/java-dataproc/google-cloud-dataproc/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 4.42.0 + 4.43.0-SNAPSHOT jar Google Cloud Dataproc Java idiomatic client for Google Cloud Dataproc com.google.cloud google-cloud-dataproc-parent - 4.42.0 + 4.43.0-SNAPSHOT google-cloud-dataproc diff --git a/java-dataproc/grpc-google-cloud-dataproc-v1/pom.xml b/java-dataproc/grpc-google-cloud-dataproc-v1/pom.xml index a5aa9083098d..9fa6e0c80e79 100644 --- a/java-dataproc/grpc-google-cloud-dataproc-v1/pom.xml +++ b/java-dataproc/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.42.0 + 4.43.0-SNAPSHOT grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 4.42.0 + 4.43.0-SNAPSHOT diff --git a/java-dataproc/pom.xml b/java-dataproc/pom.xml index dfc644efae53..413770f2bf1e 100644 --- a/java-dataproc/pom.xml +++ b/java-dataproc/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 4.42.0 + 4.43.0-SNAPSHOT Google Cloud Dataproc Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.42.0 + 4.43.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.42.0 + 4.43.0-SNAPSHOT com.google.cloud google-cloud-dataproc - 4.42.0 + 4.43.0-SNAPSHOT diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/pom.xml b/java-dataproc/proto-google-cloud-dataproc-v1/pom.xml index f01c27a1367a..5d9d4fe621ef 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/pom.xml +++ b/java-dataproc/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.42.0 + 4.43.0-SNAPSHOT proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 4.42.0 + 4.43.0-SNAPSHOT diff --git a/java-datastream/google-cloud-datastream-bom/pom.xml b/java-datastream/google-cloud-datastream-bom/pom.xml index 84df670a1089..227e2c40fcc9 100644 --- a/java-datastream/google-cloud-datastream-bom/pom.xml +++ b/java-datastream/google-cloud-datastream-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-datastream-bom - 1.44.0 + 1.45.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-datastream - 1.44.0 + 1.45.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-datastream-v1alpha1 - 0.49.0 + 0.50.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-datastream-v1 - 1.44.0 + 1.45.0-SNAPSHOT com.google.api.grpc proto-google-cloud-datastream-v1alpha1 - 0.49.0 + 0.50.0-SNAPSHOT com.google.api.grpc proto-google-cloud-datastream-v1 - 1.44.0 + 1.45.0-SNAPSHOT diff --git a/java-datastream/google-cloud-datastream/pom.xml b/java-datastream/google-cloud-datastream/pom.xml index af0264d1fefe..4df44a1fa056 100644 --- a/java-datastream/google-cloud-datastream/pom.xml +++ b/java-datastream/google-cloud-datastream/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-datastream - 1.44.0 + 1.45.0-SNAPSHOT jar Google Datastream Datastream is a serverless and easy-to-use change data capture (CDC) and replication service. It allows you to synchronize data across heterogeneous databases and applications reliably, and with minimal latency and downtime. com.google.cloud google-cloud-datastream-parent - 1.44.0 + 1.45.0-SNAPSHOT google-cloud-datastream diff --git a/java-datastream/grpc-google-cloud-datastream-v1/pom.xml b/java-datastream/grpc-google-cloud-datastream-v1/pom.xml index 72314f823255..2d7871e461b7 100644 --- a/java-datastream/grpc-google-cloud-datastream-v1/pom.xml +++ b/java-datastream/grpc-google-cloud-datastream-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-datastream-v1 - 1.44.0 + 1.45.0-SNAPSHOT grpc-google-cloud-datastream-v1 GRPC library for google-cloud-datastream com.google.cloud google-cloud-datastream-parent - 1.44.0 + 1.45.0-SNAPSHOT diff --git a/java-datastream/grpc-google-cloud-datastream-v1alpha1/pom.xml b/java-datastream/grpc-google-cloud-datastream-v1alpha1/pom.xml index 189ca597a7e8..2de1db508333 100644 --- a/java-datastream/grpc-google-cloud-datastream-v1alpha1/pom.xml +++ b/java-datastream/grpc-google-cloud-datastream-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-datastream-v1alpha1 - 0.49.0 + 0.50.0-SNAPSHOT grpc-google-cloud-datastream-v1alpha1 GRPC library for google-cloud-datastream com.google.cloud google-cloud-datastream-parent - 1.44.0 + 1.45.0-SNAPSHOT diff --git a/java-datastream/pom.xml b/java-datastream/pom.xml index e82c53b4c2f1..7d3dec4d8d04 100644 --- a/java-datastream/pom.xml +++ b/java-datastream/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-datastream-parent pom - 1.44.0 + 1.45.0-SNAPSHOT Google Datastream Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-datastream - 1.44.0 + 1.45.0-SNAPSHOT com.google.api.grpc proto-google-cloud-datastream-v1 - 1.44.0 + 1.45.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-datastream-v1 - 1.44.0 + 1.45.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-datastream-v1alpha1 - 0.49.0 + 0.50.0-SNAPSHOT com.google.api.grpc proto-google-cloud-datastream-v1alpha1 - 0.49.0 + 0.50.0-SNAPSHOT diff --git a/java-datastream/proto-google-cloud-datastream-v1/pom.xml b/java-datastream/proto-google-cloud-datastream-v1/pom.xml index 08aca2af5ecc..159f5a2c0a42 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/pom.xml +++ b/java-datastream/proto-google-cloud-datastream-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-datastream-v1 - 1.44.0 + 1.45.0-SNAPSHOT proto-google-cloud-datastream-v1 Proto library for google-cloud-datastream com.google.cloud google-cloud-datastream-parent - 1.44.0 + 1.45.0-SNAPSHOT diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/pom.xml b/java-datastream/proto-google-cloud-datastream-v1alpha1/pom.xml index 927c2ff3e506..2456caebfc00 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/pom.xml +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-datastream-v1alpha1 - 0.49.0 + 0.50.0-SNAPSHOT proto-google-cloud-datastream-v1alpha1 Proto library for google-cloud-datastream com.google.cloud google-cloud-datastream-parent - 1.44.0 + 1.45.0-SNAPSHOT diff --git a/java-debugger-client/google-cloud-debugger-client-bom/pom.xml b/java-debugger-client/google-cloud-debugger-client-bom/pom.xml index 35cd6eba8cbe..54155e05b587 100644 --- a/java-debugger-client/google-cloud-debugger-client-bom/pom.xml +++ b/java-debugger-client/google-cloud-debugger-client-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-debugger-client-bom - 1.45.0 + 1.46.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,22 +27,22 @@ com.google.cloud google-cloud-debugger-client - 1.45.0 + 1.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-debugger-client-v2 - 1.45.0 + 1.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-debugger-client-v2 - 1.45.0 + 1.46.0-SNAPSHOT com.google.api.grpc proto-google-devtools-source-protos - 1.45.0 + 1.46.0-SNAPSHOT diff --git a/java-debugger-client/google-cloud-debugger-client/pom.xml b/java-debugger-client/google-cloud-debugger-client/pom.xml index 083466937faf..a46494115b88 100644 --- a/java-debugger-client/google-cloud-debugger-client/pom.xml +++ b/java-debugger-client/google-cloud-debugger-client/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-debugger-client - 1.45.0 + 1.46.0-SNAPSHOT jar Google Cloud Debugger Cloud Debugger is a feature of Google Cloud Platform that lets you inspect the state of an application, at any code location, without stopping or slowing down the running app. Cloud Debugger makes it easier to view the application state without adding logging statements. com.google.cloud google-cloud-debugger-client-parent - 1.45.0 + 1.46.0-SNAPSHOT google-cloud-debugger-client diff --git a/java-debugger-client/grpc-google-cloud-debugger-client-v2/pom.xml b/java-debugger-client/grpc-google-cloud-debugger-client-v2/pom.xml index 26f4e6758fdc..f385438d0175 100644 --- a/java-debugger-client/grpc-google-cloud-debugger-client-v2/pom.xml +++ b/java-debugger-client/grpc-google-cloud-debugger-client-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-debugger-client-v2 - 1.45.0 + 1.46.0-SNAPSHOT grpc-google-cloud-debugger-client-v2 GRPC library for google-cloud-debugger-client com.google.cloud google-cloud-debugger-client-parent - 1.45.0 + 1.46.0-SNAPSHOT diff --git a/java-debugger-client/pom.xml b/java-debugger-client/pom.xml index d86c310bbe76..d83d653454a0 100644 --- a/java-debugger-client/pom.xml +++ b/java-debugger-client/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-debugger-client-parent pom - 1.45.0 + 1.46.0-SNAPSHOT Google Cloud Debugger Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,22 +29,22 @@ com.google.cloud google-cloud-debugger-client - 1.45.0 + 1.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-debugger-client-v2 - 1.45.0 + 1.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-debugger-client-v2 - 1.45.0 + 1.46.0-SNAPSHOT com.google.api.grpc proto-google-devtools-source-protos - 1.45.0 + 1.46.0-SNAPSHOT diff --git a/java-debugger-client/proto-google-cloud-debugger-client-v2/pom.xml b/java-debugger-client/proto-google-cloud-debugger-client-v2/pom.xml index 69fdefdd32be..15e65c02edd6 100644 --- a/java-debugger-client/proto-google-cloud-debugger-client-v2/pom.xml +++ b/java-debugger-client/proto-google-cloud-debugger-client-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-debugger-client-v2 - 1.45.0 + 1.46.0-SNAPSHOT proto-google-cloud-debugger-client-v2 Proto library for google-cloud-debugger-client com.google.cloud google-cloud-debugger-client-parent - 1.45.0 + 1.46.0-SNAPSHOT diff --git a/java-debugger-client/proto-google-devtools-source-protos/pom.xml b/java-debugger-client/proto-google-devtools-source-protos/pom.xml index 525a0afef1ce..3958e6972de4 100644 --- a/java-debugger-client/proto-google-devtools-source-protos/pom.xml +++ b/java-debugger-client/proto-google-devtools-source-protos/pom.xml @@ -5,12 +5,12 @@ 4.0.0 com.google.api.grpc proto-google-devtools-source-protos - 1.45.0 + 1.46.0-SNAPSHOT proto-google-devtools-source-protos com.google.cloud google-cloud-debugger-client-parent - 1.45.0 + 1.46.0-SNAPSHOT diff --git a/java-deploy/google-cloud-deploy-bom/pom.xml b/java-deploy/google-cloud-deploy-bom/pom.xml index b08f3fc32cbd..eda98994cc97 100644 --- a/java-deploy/google-cloud-deploy-bom/pom.xml +++ b/java-deploy/google-cloud-deploy-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-deploy-bom - 1.43.0 + 1.44.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-deploy - 1.43.0 + 1.44.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-deploy-v1 - 1.43.0 + 1.44.0-SNAPSHOT com.google.api.grpc proto-google-cloud-deploy-v1 - 1.43.0 + 1.44.0-SNAPSHOT diff --git a/java-deploy/google-cloud-deploy/pom.xml b/java-deploy/google-cloud-deploy/pom.xml index 626666dccf54..99f2d3340884 100644 --- a/java-deploy/google-cloud-deploy/pom.xml +++ b/java-deploy/google-cloud-deploy/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-deploy - 1.43.0 + 1.44.0-SNAPSHOT jar Google Google CLoud Deploy Google CLoud Deploy is a service that automates delivery of your applications to a series of target environments in a defined sequence com.google.cloud google-cloud-deploy-parent - 1.43.0 + 1.44.0-SNAPSHOT google-cloud-deploy diff --git a/java-deploy/grpc-google-cloud-deploy-v1/pom.xml b/java-deploy/grpc-google-cloud-deploy-v1/pom.xml index b9412b2454b4..c8bd58175631 100644 --- a/java-deploy/grpc-google-cloud-deploy-v1/pom.xml +++ b/java-deploy/grpc-google-cloud-deploy-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-deploy-v1 - 1.43.0 + 1.44.0-SNAPSHOT grpc-google-cloud-deploy-v1 GRPC library for google-cloud-deploy com.google.cloud google-cloud-deploy-parent - 1.43.0 + 1.44.0-SNAPSHOT diff --git a/java-deploy/pom.xml b/java-deploy/pom.xml index 6d4706f65683..09903ad9629a 100644 --- a/java-deploy/pom.xml +++ b/java-deploy/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-deploy-parent pom - 1.43.0 + 1.44.0-SNAPSHOT Google Google CLoud Deploy Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-deploy - 1.43.0 + 1.44.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-deploy-v1 - 1.43.0 + 1.44.0-SNAPSHOT com.google.api.grpc proto-google-cloud-deploy-v1 - 1.43.0 + 1.44.0-SNAPSHOT diff --git a/java-deploy/proto-google-cloud-deploy-v1/pom.xml b/java-deploy/proto-google-cloud-deploy-v1/pom.xml index c248f4443f1a..fa489907accd 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/pom.xml +++ b/java-deploy/proto-google-cloud-deploy-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-deploy-v1 - 1.43.0 + 1.44.0-SNAPSHOT proto-google-cloud-deploy-v1 Proto library for google-cloud-deploy com.google.cloud google-cloud-deploy-parent - 1.43.0 + 1.44.0-SNAPSHOT diff --git a/java-developerconnect/google-cloud-developerconnect-bom/pom.xml b/java-developerconnect/google-cloud-developerconnect-bom/pom.xml index 1e4f9e8fe979..e8055a33ba09 100644 --- a/java-developerconnect/google-cloud-developerconnect-bom/pom.xml +++ b/java-developerconnect/google-cloud-developerconnect-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-developerconnect-bom - 0.2.0 + 0.3.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-developerconnect - 0.2.0 + 0.3.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-developerconnect-v1 - 0.2.0 + 0.3.0-SNAPSHOT com.google.api.grpc proto-google-cloud-developerconnect-v1 - 0.2.0 + 0.3.0-SNAPSHOT diff --git a/java-developerconnect/google-cloud-developerconnect/pom.xml b/java-developerconnect/google-cloud-developerconnect/pom.xml index 0ddd4b3d1e65..faabda4e9215 100644 --- a/java-developerconnect/google-cloud-developerconnect/pom.xml +++ b/java-developerconnect/google-cloud-developerconnect/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-developerconnect - 0.2.0 + 0.3.0-SNAPSHOT jar Google Developer Connect API Developer Connect API Connect third-party source code management to Google com.google.cloud google-cloud-developerconnect-parent - 0.2.0 + 0.3.0-SNAPSHOT google-cloud-developerconnect diff --git a/java-developerconnect/grpc-google-cloud-developerconnect-v1/pom.xml b/java-developerconnect/grpc-google-cloud-developerconnect-v1/pom.xml index 5fdc937172f7..cd8374985cbd 100644 --- a/java-developerconnect/grpc-google-cloud-developerconnect-v1/pom.xml +++ b/java-developerconnect/grpc-google-cloud-developerconnect-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-developerconnect-v1 - 0.2.0 + 0.3.0-SNAPSHOT grpc-google-cloud-developerconnect-v1 GRPC library for google-cloud-developerconnect com.google.cloud google-cloud-developerconnect-parent - 0.2.0 + 0.3.0-SNAPSHOT diff --git a/java-developerconnect/pom.xml b/java-developerconnect/pom.xml index 04c47f9d55af..525f8f9a2db2 100644 --- a/java-developerconnect/pom.xml +++ b/java-developerconnect/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-developerconnect-parent pom - 0.2.0 + 0.3.0-SNAPSHOT Google Developer Connect API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-developerconnect - 0.2.0 + 0.3.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-developerconnect-v1 - 0.2.0 + 0.3.0-SNAPSHOT com.google.api.grpc proto-google-cloud-developerconnect-v1 - 0.2.0 + 0.3.0-SNAPSHOT diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/pom.xml b/java-developerconnect/proto-google-cloud-developerconnect-v1/pom.xml index f5d7d641a103..46b2a933d328 100644 --- a/java-developerconnect/proto-google-cloud-developerconnect-v1/pom.xml +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-developerconnect-v1 - 0.2.0 + 0.3.0-SNAPSHOT proto-google-cloud-developerconnect-v1 Proto library for google-cloud-developerconnect com.google.cloud google-cloud-developerconnect-parent - 0.2.0 + 0.3.0-SNAPSHOT diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx-bom/pom.xml b/java-dialogflow-cx/google-cloud-dialogflow-cx-bom/pom.xml index ee7f246958be..45fa57ba0c59 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx-bom/pom.xml +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-dialogflow-cx-bom - 0.56.0 + 0.57.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-dialogflow-cx - 0.56.0 + 0.57.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dialogflow-cx-v3beta1 - 0.56.0 + 0.57.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dialogflow-cx-v3 - 0.56.0 + 0.57.0-SNAPSHOT com.google.api.grpc proto-google-cloud-dialogflow-cx-v3beta1 - 0.56.0 + 0.57.0-SNAPSHOT com.google.api.grpc proto-google-cloud-dialogflow-cx-v3 - 0.56.0 + 0.57.0-SNAPSHOT diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/pom.xml b/java-dialogflow-cx/google-cloud-dialogflow-cx/pom.xml index a6cf3342e38d..def38d5b9b01 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/pom.xml +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-dialogflow-cx - 0.56.0 + 0.57.0-SNAPSHOT jar Google Dialogflow CX provides a new way of designing agents, taking a state machine approach to agent design. This gives you clear and explicit control over a conversation, a better end-user experience, and a better development workflow. com.google.cloud google-cloud-dialogflow-cx-parent - 0.56.0 + 0.57.0-SNAPSHOT google-cloud-dialogflow-cx diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/pom.xml b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/pom.xml index a40ebab6111c..8bdf0ddf3727 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/pom.xml +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dialogflow-cx-v3 - 0.56.0 + 0.57.0-SNAPSHOT grpc-google-cloud-dialogflow-cx-v3 GRPC library for grpc-google-cloud-dialogflow-cx-v3 com.google.cloud google-cloud-dialogflow-cx-parent - 0.56.0 + 0.57.0-SNAPSHOT diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/pom.xml b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/pom.xml index 4c081c48f3cf..9928ca0a4af9 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/pom.xml +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dialogflow-cx-v3beta1 - 0.56.0 + 0.57.0-SNAPSHOT grpc-google-cloud-dialogflow-cx-v3beta1 GRPC library for grpc-google-cloud-dialogflow-cx-v3beta1 com.google.cloud google-cloud-dialogflow-cx-parent - 0.56.0 + 0.57.0-SNAPSHOT diff --git a/java-dialogflow-cx/pom.xml b/java-dialogflow-cx/pom.xml index 3f2ec65b9a19..a73b76290c7d 100644 --- a/java-dialogflow-cx/pom.xml +++ b/java-dialogflow-cx/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dialogflow-cx-parent pom - 0.56.0 + 0.57.0-SNAPSHOT Google Dialogflow CX Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-dialogflow-cx - 0.56.0 + 0.57.0-SNAPSHOT com.google.api.grpc proto-google-cloud-dialogflow-cx-v3beta1 - 0.56.0 + 0.57.0-SNAPSHOT com.google.api.grpc proto-google-cloud-dialogflow-cx-v3 - 0.56.0 + 0.57.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dialogflow-cx-v3beta1 - 0.56.0 + 0.57.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dialogflow-cx-v3 - 0.56.0 + 0.57.0-SNAPSHOT diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/pom.xml b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/pom.xml index 891f6652dd17..1683d5c7cc65 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/pom.xml +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dialogflow-cx-v3 - 0.56.0 + 0.57.0-SNAPSHOT proto-google-cloud-dialogflow-cx-v3 PROTO library for proto-google-cloud-dialogflow-cx-v3 com.google.cloud google-cloud-dialogflow-cx-parent - 0.56.0 + 0.57.0-SNAPSHOT diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/pom.xml b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/pom.xml index 73be9d662e73..00898f2b26f9 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/pom.xml +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dialogflow-cx-v3beta1 - 0.56.0 + 0.57.0-SNAPSHOT proto-google-cloud-dialogflow-cx-v3beta1 PROTO library for proto-google-cloud-dialogflow-cx-v3beta1 com.google.cloud google-cloud-dialogflow-cx-parent - 0.56.0 + 0.57.0-SNAPSHOT diff --git a/java-dialogflow/google-cloud-dialogflow-bom/pom.xml b/java-dialogflow/google-cloud-dialogflow-bom/pom.xml index 669f4673e21f..bc85258538fe 100644 --- a/java-dialogflow/google-cloud-dialogflow-bom/pom.xml +++ b/java-dialogflow/google-cloud-dialogflow-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-dialogflow-bom - 4.51.0 + 4.52.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-dialogflow - 4.51.0 + 4.52.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dialogflow-v2beta1 - 0.149.0 + 0.150.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dialogflow-v2 - 4.51.0 + 4.52.0-SNAPSHOT com.google.api.grpc proto-google-cloud-dialogflow-v2 - 4.51.0 + 4.52.0-SNAPSHOT com.google.api.grpc proto-google-cloud-dialogflow-v2beta1 - 0.149.0 + 0.150.0-SNAPSHOT diff --git a/java-dialogflow/google-cloud-dialogflow/pom.xml b/java-dialogflow/google-cloud-dialogflow/pom.xml index 5e36c29e941e..2aeff5f2e169 100644 --- a/java-dialogflow/google-cloud-dialogflow/pom.xml +++ b/java-dialogflow/google-cloud-dialogflow/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-dialogflow - 4.51.0 + 4.52.0-SNAPSHOT jar Google Cloud Dialog Flow API Java idiomatic client for Google Cloud Dialog Flow API com.google.cloud google-cloud-dialogflow-parent - 4.51.0 + 4.52.0-SNAPSHOT google-cloud-dialogflow diff --git a/java-dialogflow/grpc-google-cloud-dialogflow-v2/pom.xml b/java-dialogflow/grpc-google-cloud-dialogflow-v2/pom.xml index 1188377ea5a2..802f28a3d4c0 100644 --- a/java-dialogflow/grpc-google-cloud-dialogflow-v2/pom.xml +++ b/java-dialogflow/grpc-google-cloud-dialogflow-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dialogflow-v2 - 4.51.0 + 4.52.0-SNAPSHOT grpc-google-cloud-dialogflow-v2 GRPC library for grpc-google-cloud-dialogflow-v2 com.google.cloud google-cloud-dialogflow-parent - 4.51.0 + 4.52.0-SNAPSHOT diff --git a/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/pom.xml b/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/pom.xml index 7ef118f9a2ea..fa52559d0a8a 100644 --- a/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/pom.xml +++ b/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dialogflow-v2beta1 - 0.149.0 + 0.150.0-SNAPSHOT grpc-google-cloud-dialogflow-v2beta1 GRPC library for grpc-google-cloud-dialogflow-v2beta1 com.google.cloud google-cloud-dialogflow-parent - 4.51.0 + 4.52.0-SNAPSHOT diff --git a/java-dialogflow/pom.xml b/java-dialogflow/pom.xml index b66cc3a74324..7c525e6c117f 100644 --- a/java-dialogflow/pom.xml +++ b/java-dialogflow/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dialogflow-parent pom - 4.51.0 + 4.52.0-SNAPSHOT Google Cloud Dialog Flow API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-dialogflow-v2 - 4.51.0 + 4.52.0-SNAPSHOT com.google.api.grpc proto-google-cloud-dialogflow-v2beta1 - 0.149.0 + 0.150.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dialogflow-v2beta1 - 0.149.0 + 0.150.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dialogflow-v2 - 4.51.0 + 4.52.0-SNAPSHOT com.google.cloud google-cloud-dialogflow - 4.51.0 + 4.52.0-SNAPSHOT diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/pom.xml b/java-dialogflow/proto-google-cloud-dialogflow-v2/pom.xml index f44db0770c22..95e08cab2681 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/pom.xml +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dialogflow-v2 - 4.51.0 + 4.52.0-SNAPSHOT proto-google-cloud-dialogflow-v2 PROTO library for proto-google-cloud-dialogflow-v2 com.google.cloud google-cloud-dialogflow-parent - 4.51.0 + 4.52.0-SNAPSHOT diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/pom.xml b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/pom.xml index bc4110044450..d8ea932a20ff 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/pom.xml +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dialogflow-v2beta1 - 0.149.0 + 0.150.0-SNAPSHOT proto-google-cloud-dialogflow-v2beta1 PROTO library for proto-google-cloud-dialogflow-v2beta1 com.google.cloud google-cloud-dialogflow-parent - 4.51.0 + 4.52.0-SNAPSHOT diff --git a/java-discoveryengine/google-cloud-discoveryengine-bom/pom.xml b/java-discoveryengine/google-cloud-discoveryengine-bom/pom.xml index f623c364d323..89d866d1ca8c 100644 --- a/java-discoveryengine/google-cloud-discoveryengine-bom/pom.xml +++ b/java-discoveryengine/google-cloud-discoveryengine-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-discoveryengine-bom - 0.41.0 + 0.42.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,37 +27,37 @@ com.google.cloud google-cloud-discoveryengine - 0.41.0 + 0.42.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-discoveryengine-v1beta - 0.41.0 + 0.42.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-discoveryengine-v1 - 0.41.0 + 0.42.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-discoveryengine-v1alpha - 0.41.0 + 0.42.0-SNAPSHOT com.google.api.grpc proto-google-cloud-discoveryengine-v1beta - 0.41.0 + 0.42.0-SNAPSHOT com.google.api.grpc proto-google-cloud-discoveryengine-v1 - 0.41.0 + 0.42.0-SNAPSHOT com.google.api.grpc proto-google-cloud-discoveryengine-v1alpha - 0.41.0 + 0.42.0-SNAPSHOT diff --git a/java-discoveryengine/google-cloud-discoveryengine/pom.xml b/java-discoveryengine/google-cloud-discoveryengine/pom.xml index 183aa6611e4a..39a75cffda1d 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/pom.xml +++ b/java-discoveryengine/google-cloud-discoveryengine/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-discoveryengine - 0.41.0 + 0.42.0-SNAPSHOT jar Google Discovery Engine API Discovery Engine API A Cloud API that offers search and recommendation discoverability for documents from different industry verticals (e.g. media, retail, etc.). com.google.cloud google-cloud-discoveryengine-parent - 0.41.0 + 0.42.0-SNAPSHOT google-cloud-discoveryengine diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/pom.xml b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/pom.xml index 6967cc2d64d8..c91c03dd2d68 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/pom.xml +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-discoveryengine-v1 - 0.41.0 + 0.42.0-SNAPSHOT grpc-google-cloud-discoveryengine-v1 GRPC library for google-cloud-discoveryengine com.google.cloud google-cloud-discoveryengine-parent - 0.41.0 + 0.42.0-SNAPSHOT diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/pom.xml b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/pom.xml index 387d4e5a4ed0..d842c74c01db 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/pom.xml +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-discoveryengine-v1alpha - 0.41.0 + 0.42.0-SNAPSHOT grpc-google-cloud-discoveryengine-v1alpha GRPC library for google-cloud-discoveryengine com.google.cloud google-cloud-discoveryengine-parent - 0.41.0 + 0.42.0-SNAPSHOT diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/pom.xml b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/pom.xml index b466d1234df7..92d33930254a 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/pom.xml +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-discoveryengine-v1beta - 0.41.0 + 0.42.0-SNAPSHOT grpc-google-cloud-discoveryengine-v1beta GRPC library for google-cloud-discoveryengine com.google.cloud google-cloud-discoveryengine-parent - 0.41.0 + 0.42.0-SNAPSHOT diff --git a/java-discoveryengine/pom.xml b/java-discoveryengine/pom.xml index 7c0e04d85d49..4731bb39302b 100644 --- a/java-discoveryengine/pom.xml +++ b/java-discoveryengine/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-discoveryengine-parent pom - 0.41.0 + 0.42.0-SNAPSHOT Google Discovery Engine API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.cloud google-cloud-discoveryengine - 0.41.0 + 0.42.0-SNAPSHOT com.google.api.grpc proto-google-cloud-discoveryengine-v1alpha - 0.41.0 + 0.42.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-discoveryengine-v1alpha - 0.41.0 + 0.42.0-SNAPSHOT com.google.api.grpc proto-google-cloud-discoveryengine-v1 - 0.41.0 + 0.42.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-discoveryengine-v1 - 0.41.0 + 0.42.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-discoveryengine-v1beta - 0.41.0 + 0.42.0-SNAPSHOT com.google.api.grpc proto-google-cloud-discoveryengine-v1beta - 0.41.0 + 0.42.0-SNAPSHOT diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/pom.xml b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/pom.xml index 302f0f26fa52..2ecc0f820fd5 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/pom.xml +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-discoveryengine-v1 - 0.41.0 + 0.42.0-SNAPSHOT proto-google-cloud-discoveryengine-v1 Proto library for google-cloud-discoveryengine com.google.cloud google-cloud-discoveryengine-parent - 0.41.0 + 0.42.0-SNAPSHOT diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/pom.xml b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/pom.xml index 723f771f316c..087d6d13f864 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/pom.xml +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-discoveryengine-v1alpha - 0.41.0 + 0.42.0-SNAPSHOT proto-google-cloud-discoveryengine-v1alpha Proto library for google-cloud-discoveryengine com.google.cloud google-cloud-discoveryengine-parent - 0.41.0 + 0.42.0-SNAPSHOT diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/pom.xml b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/pom.xml index f799a4ac7eeb..52fe16f5d93c 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/pom.xml +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-discoveryengine-v1beta - 0.41.0 + 0.42.0-SNAPSHOT proto-google-cloud-discoveryengine-v1beta Proto library for google-cloud-discoveryengine com.google.cloud google-cloud-discoveryengine-parent - 0.41.0 + 0.42.0-SNAPSHOT diff --git a/java-distributedcloudedge/google-cloud-distributedcloudedge-bom/pom.xml b/java-distributedcloudedge/google-cloud-distributedcloudedge-bom/pom.xml index 685c732bec2e..b0666ed009c2 100644 --- a/java-distributedcloudedge/google-cloud-distributedcloudedge-bom/pom.xml +++ b/java-distributedcloudedge/google-cloud-distributedcloudedge-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-distributedcloudedge-bom - 0.42.0 + 0.43.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-distributedcloudedge - 0.42.0 + 0.43.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-distributedcloudedge-v1 - 0.42.0 + 0.43.0-SNAPSHOT com.google.api.grpc proto-google-cloud-distributedcloudedge-v1 - 0.42.0 + 0.43.0-SNAPSHOT diff --git a/java-distributedcloudedge/google-cloud-distributedcloudedge/pom.xml b/java-distributedcloudedge/google-cloud-distributedcloudedge/pom.xml index 106d642f9436..19682312bfa1 100644 --- a/java-distributedcloudedge/google-cloud-distributedcloudedge/pom.xml +++ b/java-distributedcloudedge/google-cloud-distributedcloudedge/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-distributedcloudedge - 0.42.0 + 0.43.0-SNAPSHOT jar Google Google Distributed Cloud Edge Google Distributed Cloud Edge Google Distributed Cloud Edge allows you to run Kubernetes clusters on dedicated hardware provided and maintained by Google that is separate from the Google Cloud data center. com.google.cloud google-cloud-distributedcloudedge-parent - 0.42.0 + 0.43.0-SNAPSHOT google-cloud-distributedcloudedge diff --git a/java-distributedcloudedge/grpc-google-cloud-distributedcloudedge-v1/pom.xml b/java-distributedcloudedge/grpc-google-cloud-distributedcloudedge-v1/pom.xml index 0ee47db4a098..02907490ce77 100644 --- a/java-distributedcloudedge/grpc-google-cloud-distributedcloudedge-v1/pom.xml +++ b/java-distributedcloudedge/grpc-google-cloud-distributedcloudedge-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-distributedcloudedge-v1 - 0.42.0 + 0.43.0-SNAPSHOT grpc-google-cloud-distributedcloudedge-v1 GRPC library for google-cloud-distributedcloudedge com.google.cloud google-cloud-distributedcloudedge-parent - 0.42.0 + 0.43.0-SNAPSHOT diff --git a/java-distributedcloudedge/pom.xml b/java-distributedcloudedge/pom.xml index 5c67b42fcfd4..786a662a5ff6 100644 --- a/java-distributedcloudedge/pom.xml +++ b/java-distributedcloudedge/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-distributedcloudedge-parent pom - 0.42.0 + 0.43.0-SNAPSHOT Google Google Distributed Cloud Edge Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-distributedcloudedge - 0.42.0 + 0.43.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-distributedcloudedge-v1 - 0.42.0 + 0.43.0-SNAPSHOT com.google.api.grpc proto-google-cloud-distributedcloudedge-v1 - 0.42.0 + 0.43.0-SNAPSHOT diff --git a/java-distributedcloudedge/proto-google-cloud-distributedcloudedge-v1/pom.xml b/java-distributedcloudedge/proto-google-cloud-distributedcloudedge-v1/pom.xml index a450a66a9aca..0e367df805c3 100644 --- a/java-distributedcloudedge/proto-google-cloud-distributedcloudedge-v1/pom.xml +++ b/java-distributedcloudedge/proto-google-cloud-distributedcloudedge-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-distributedcloudedge-v1 - 0.42.0 + 0.43.0-SNAPSHOT proto-google-cloud-distributedcloudedge-v1 Proto library for google-cloud-distributedcloudedge com.google.cloud google-cloud-distributedcloudedge-parent - 0.42.0 + 0.43.0-SNAPSHOT diff --git a/java-dlp/google-cloud-dlp-bom/pom.xml b/java-dlp/google-cloud-dlp-bom/pom.xml index 4a9d5e60edfc..9abc5480ce9e 100644 --- a/java-dlp/google-cloud-dlp-bom/pom.xml +++ b/java-dlp/google-cloud-dlp-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-dlp-bom - 3.49.0 + 3.50.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-dlp - 3.49.0 + 3.50.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dlp-v2 - 3.49.0 + 3.50.0-SNAPSHOT com.google.api.grpc proto-google-cloud-dlp-v2 - 3.49.0 + 3.50.0-SNAPSHOT diff --git a/java-dlp/google-cloud-dlp/pom.xml b/java-dlp/google-cloud-dlp/pom.xml index e86c5af07734..e3d497fc0170 100644 --- a/java-dlp/google-cloud-dlp/pom.xml +++ b/java-dlp/google-cloud-dlp/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-dlp - 3.49.0 + 3.50.0-SNAPSHOT jar Google Cloud DLP Java idiomatic client for Google Cloud DLP com.google.cloud google-cloud-dlp-parent - 3.49.0 + 3.50.0-SNAPSHOT google-cloud-dlp diff --git a/java-dlp/grpc-google-cloud-dlp-v2/pom.xml b/java-dlp/grpc-google-cloud-dlp-v2/pom.xml index bed18a161e16..5d231f714b86 100644 --- a/java-dlp/grpc-google-cloud-dlp-v2/pom.xml +++ b/java-dlp/grpc-google-cloud-dlp-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dlp-v2 - 3.49.0 + 3.50.0-SNAPSHOT grpc-google-cloud-dlp-v2 GRPC library for grpc-google-cloud-dlp-v2 com.google.cloud google-cloud-dlp-parent - 3.49.0 + 3.50.0-SNAPSHOT diff --git a/java-dlp/pom.xml b/java-dlp/pom.xml index dc0c8e15f2cf..2df81d2fa606 100644 --- a/java-dlp/pom.xml +++ b/java-dlp/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dlp-parent pom - 3.49.0 + 3.50.0-SNAPSHOT Google Cloud DLP Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.api.grpc proto-google-cloud-dlp-v2 - 3.49.0 + 3.50.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dlp-v2 - 3.49.0 + 3.50.0-SNAPSHOT com.google.cloud google-cloud-dlp - 3.49.0 + 3.50.0-SNAPSHOT diff --git a/java-dlp/proto-google-cloud-dlp-v2/pom.xml b/java-dlp/proto-google-cloud-dlp-v2/pom.xml index 21c7c82060fa..3d26cb31f9c1 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/pom.xml +++ b/java-dlp/proto-google-cloud-dlp-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dlp-v2 - 3.49.0 + 3.50.0-SNAPSHOT proto-google-cloud-dlp-v2 PROTO library for proto-google-cloud-dlp-v2 com.google.cloud google-cloud-dlp-parent - 3.49.0 + 3.50.0-SNAPSHOT diff --git a/java-dms/google-cloud-dms-bom/pom.xml b/java-dms/google-cloud-dms-bom/pom.xml index 38b9c3290bc2..7dce33e4a2cd 100644 --- a/java-dms/google-cloud-dms-bom/pom.xml +++ b/java-dms/google-cloud-dms-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-dms-bom - 2.44.0 + 2.45.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-dms - 2.44.0 + 2.45.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dms-v1 - 2.44.0 + 2.45.0-SNAPSHOT com.google.api.grpc proto-google-cloud-dms-v1 - 2.44.0 + 2.45.0-SNAPSHOT diff --git a/java-dms/google-cloud-dms/pom.xml b/java-dms/google-cloud-dms/pom.xml index f6c28edeeb4e..cfb995009d4a 100644 --- a/java-dms/google-cloud-dms/pom.xml +++ b/java-dms/google-cloud-dms/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-dms - 2.44.0 + 2.45.0-SNAPSHOT jar Google Database Migration Service Database Migration Service makes it easier for you to migrate your data to Google Cloud. This service helps you lift and shift your MySQL and PostgreSQL workloads into Cloud SQL. com.google.cloud google-cloud-dms-parent - 2.44.0 + 2.45.0-SNAPSHOT google-cloud-dms diff --git a/java-dms/grpc-google-cloud-dms-v1/pom.xml b/java-dms/grpc-google-cloud-dms-v1/pom.xml index 27d0684ececa..34b78000d670 100644 --- a/java-dms/grpc-google-cloud-dms-v1/pom.xml +++ b/java-dms/grpc-google-cloud-dms-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dms-v1 - 2.44.0 + 2.45.0-SNAPSHOT grpc-google-cloud-dms-v1 GRPC library for google-cloud-dms com.google.cloud google-cloud-dms-parent - 2.44.0 + 2.45.0-SNAPSHOT diff --git a/java-dms/pom.xml b/java-dms/pom.xml index b4a7d3a73a08..5a6f98f0242c 100644 --- a/java-dms/pom.xml +++ b/java-dms/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dms-parent pom - 2.44.0 + 2.45.0-SNAPSHOT Google Database Migration Service Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,18 +29,18 @@ com.google.cloud google-cloud-dms - 2.44.0 + 2.45.0-SNAPSHOT com.google.api.grpc proto-google-cloud-dms-v1 - 2.44.0 + 2.45.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dms-v1 - 2.44.0 + 2.45.0-SNAPSHOT diff --git a/java-dms/proto-google-cloud-dms-v1/pom.xml b/java-dms/proto-google-cloud-dms-v1/pom.xml index 139ee8676b7f..7e2f391c01ff 100644 --- a/java-dms/proto-google-cloud-dms-v1/pom.xml +++ b/java-dms/proto-google-cloud-dms-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dms-v1 - 2.44.0 + 2.45.0-SNAPSHOT proto-google-cloud-dms-v1 Proto library for google-cloud-dms com.google.cloud google-cloud-dms-parent - 2.44.0 + 2.45.0-SNAPSHOT diff --git a/java-dns/pom.xml b/java-dns/pom.xml index 78ffe5b98d47..dd363ed7d01c 100644 --- a/java-dns/pom.xml +++ b/java-dns/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dns jar - 2.43.0 + 2.44.0-SNAPSHOT Google Cloud DNS Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-document-ai/google-cloud-document-ai-bom/pom.xml b/java-document-ai/google-cloud-document-ai-bom/pom.xml index 95b1bc6b42ba..f94f48432106 100644 --- a/java-document-ai/google-cloud-document-ai-bom/pom.xml +++ b/java-document-ai/google-cloud-document-ai-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-document-ai-bom - 2.49.0 + 2.50.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -21,47 +21,47 @@ com.google.cloud google-cloud-document-ai - 2.49.0 + 2.50.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-document-ai-v1beta1 - 0.61.0 + 0.62.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-document-ai-v1beta2 - 0.61.0 + 0.62.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-document-ai-v1beta3 - 0.61.0 + 0.62.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-document-ai-v1 - 2.49.0 + 2.50.0-SNAPSHOT com.google.api.grpc proto-google-cloud-document-ai-v1beta1 - 0.61.0 + 0.62.0-SNAPSHOT com.google.api.grpc proto-google-cloud-document-ai-v1beta2 - 0.61.0 + 0.62.0-SNAPSHOT com.google.api.grpc proto-google-cloud-document-ai-v1beta3 - 0.61.0 + 0.62.0-SNAPSHOT com.google.api.grpc proto-google-cloud-document-ai-v1 - 2.49.0 + 2.50.0-SNAPSHOT diff --git a/java-document-ai/google-cloud-document-ai/pom.xml b/java-document-ai/google-cloud-document-ai/pom.xml index d389406c6387..7aa4b8919dd1 100644 --- a/java-document-ai/google-cloud-document-ai/pom.xml +++ b/java-document-ai/google-cloud-document-ai/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-document-ai - 2.49.0 + 2.50.0-SNAPSHOT jar Google Cloud Document AI Java idiomatic client for Google Cloud Document AI com.google.cloud google-cloud-document-ai-parent - 2.49.0 + 2.50.0-SNAPSHOT google-cloud-document-ai diff --git a/java-document-ai/grpc-google-cloud-document-ai-v1/pom.xml b/java-document-ai/grpc-google-cloud-document-ai-v1/pom.xml index 0ac95b3c4427..0ac9d9b4d7b8 100644 --- a/java-document-ai/grpc-google-cloud-document-ai-v1/pom.xml +++ b/java-document-ai/grpc-google-cloud-document-ai-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-document-ai-v1 - 2.49.0 + 2.50.0-SNAPSHOT grpc-google-cloud-document-ai-v1 GRPC library for google-cloud-document-ai com.google.cloud google-cloud-document-ai-parent - 2.49.0 + 2.50.0-SNAPSHOT diff --git a/java-document-ai/grpc-google-cloud-document-ai-v1beta1/pom.xml b/java-document-ai/grpc-google-cloud-document-ai-v1beta1/pom.xml index 503cc5afbbd2..6b718119e6e7 100644 --- a/java-document-ai/grpc-google-cloud-document-ai-v1beta1/pom.xml +++ b/java-document-ai/grpc-google-cloud-document-ai-v1beta1/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-document-ai-v1beta1 - 0.61.0 + 0.62.0-SNAPSHOT grpc-google-cloud-document-ai-v1beta1 GRPC library for grpc-google-cloud-document-ai-v1beta1 com.google.cloud google-cloud-document-ai-parent - 2.49.0 + 2.50.0-SNAPSHOT diff --git a/java-document-ai/grpc-google-cloud-document-ai-v1beta2/pom.xml b/java-document-ai/grpc-google-cloud-document-ai-v1beta2/pom.xml index 09a5e19d0805..f3a0b4f071c0 100644 --- a/java-document-ai/grpc-google-cloud-document-ai-v1beta2/pom.xml +++ b/java-document-ai/grpc-google-cloud-document-ai-v1beta2/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-document-ai-v1beta2 - 0.61.0 + 0.62.0-SNAPSHOT grpc-google-cloud-document-ai-v1beta2 GRPC library for grpc-google-cloud-document-ai-v1beta2 com.google.cloud google-cloud-document-ai-parent - 2.49.0 + 2.50.0-SNAPSHOT diff --git a/java-document-ai/grpc-google-cloud-document-ai-v1beta3/pom.xml b/java-document-ai/grpc-google-cloud-document-ai-v1beta3/pom.xml index f3d2da87d5da..3063298f8d8e 100644 --- a/java-document-ai/grpc-google-cloud-document-ai-v1beta3/pom.xml +++ b/java-document-ai/grpc-google-cloud-document-ai-v1beta3/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-document-ai-v1beta3 - 0.61.0 + 0.62.0-SNAPSHOT grpc-google-cloud-document-ai-v1beta3 GRPC library for grpc-google-cloud-document-ai-v1beta3 com.google.cloud google-cloud-document-ai-parent - 2.49.0 + 2.50.0-SNAPSHOT diff --git a/java-document-ai/pom.xml b/java-document-ai/pom.xml index f5df1f8d0e9a..47ce92927977 100644 --- a/java-document-ai/pom.xml +++ b/java-document-ai/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-document-ai-parent pom - 2.49.0 + 2.50.0-SNAPSHOT Google Cloud Document AI Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,47 +29,47 @@ com.google.api.grpc grpc-google-cloud-document-ai-v1beta1 - 0.61.0 + 0.62.0-SNAPSHOT com.google.api.grpc proto-google-cloud-document-ai-v1 - 2.49.0 + 2.50.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-document-ai-v1 - 2.49.0 + 2.50.0-SNAPSHOT com.google.cloud google-cloud-document-ai - 2.49.0 + 2.50.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-document-ai-v1beta2 - 0.61.0 + 0.62.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-document-ai-v1beta3 - 0.61.0 + 0.62.0-SNAPSHOT com.google.api.grpc proto-google-cloud-document-ai-v1beta1 - 0.61.0 + 0.62.0-SNAPSHOT com.google.api.grpc proto-google-cloud-document-ai-v1beta2 - 0.61.0 + 0.62.0-SNAPSHOT com.google.api.grpc proto-google-cloud-document-ai-v1beta3 - 0.61.0 + 0.62.0-SNAPSHOT diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/pom.xml b/java-document-ai/proto-google-cloud-document-ai-v1/pom.xml index 9f38e73e04f0..c334b7ae83e1 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/pom.xml +++ b/java-document-ai/proto-google-cloud-document-ai-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-document-ai-v1 - 2.49.0 + 2.50.0-SNAPSHOT proto-google-cloud-document-ai-v1 Proto library for google-cloud-document-ai com.google.cloud google-cloud-document-ai-parent - 2.49.0 + 2.50.0-SNAPSHOT diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta1/pom.xml b/java-document-ai/proto-google-cloud-document-ai-v1beta1/pom.xml index 77e0d6e057a5..2bf0eb711591 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta1/pom.xml +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta1/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-document-ai-v1beta1 - 0.61.0 + 0.62.0-SNAPSHOT proto-google-cloud-document-ai-v1beta1 PROTO library for proto-google-cloud-document-ai-v1beta1 com.google.cloud google-cloud-document-ai-parent - 2.49.0 + 2.50.0-SNAPSHOT diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta2/pom.xml b/java-document-ai/proto-google-cloud-document-ai-v1beta2/pom.xml index 4c1e14aaf4a6..33a47f350e46 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta2/pom.xml +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta2/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-document-ai-v1beta2 - 0.61.0 + 0.62.0-SNAPSHOT proto-google-cloud-document-ai-v1beta2 PROTO library for proto-google-cloud-document-ai-v1beta2 com.google.cloud google-cloud-document-ai-parent - 2.49.0 + 2.50.0-SNAPSHOT diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/pom.xml b/java-document-ai/proto-google-cloud-document-ai-v1beta3/pom.xml index 18515adda56f..0b82d0f57afe 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/pom.xml +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-document-ai-v1beta3 - 0.61.0 + 0.62.0-SNAPSHOT proto-google-cloud-document-ai-v1beta3 PROTO library for proto-google-cloud-document-ai-v1beta3 com.google.cloud google-cloud-document-ai-parent - 2.49.0 + 2.50.0-SNAPSHOT diff --git a/java-domains/google-cloud-domains-bom/pom.xml b/java-domains/google-cloud-domains-bom/pom.xml index 7a96e9344ff7..27e752b675f2 100644 --- a/java-domains/google-cloud-domains-bom/pom.xml +++ b/java-domains/google-cloud-domains-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-domains-bom - 1.42.0 + 1.43.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,37 +27,37 @@ com.google.cloud google-cloud-domains - 1.42.0 + 1.43.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-domains-v1beta1 - 0.50.0 + 0.51.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-domains-v1alpha2 - 0.50.0 + 0.51.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-domains-v1 - 1.42.0 + 1.43.0-SNAPSHOT com.google.api.grpc proto-google-cloud-domains-v1beta1 - 0.50.0 + 0.51.0-SNAPSHOT com.google.api.grpc proto-google-cloud-domains-v1alpha2 - 0.50.0 + 0.51.0-SNAPSHOT com.google.api.grpc proto-google-cloud-domains-v1 - 1.42.0 + 1.43.0-SNAPSHOT diff --git a/java-domains/google-cloud-domains/pom.xml b/java-domains/google-cloud-domains/pom.xml index 3d91b36cc069..99276880a2fc 100644 --- a/java-domains/google-cloud-domains/pom.xml +++ b/java-domains/google-cloud-domains/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-domains - 1.42.0 + 1.43.0-SNAPSHOT jar Google Cloud Domains allows you to register and manage domains by using Cloud Domains. com.google.cloud google-cloud-domains-parent - 1.42.0 + 1.43.0-SNAPSHOT google-cloud-domains diff --git a/java-domains/grpc-google-cloud-domains-v1/pom.xml b/java-domains/grpc-google-cloud-domains-v1/pom.xml index ba30fb5471ba..3f0113ca3fce 100644 --- a/java-domains/grpc-google-cloud-domains-v1/pom.xml +++ b/java-domains/grpc-google-cloud-domains-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-domains-v1 - 1.42.0 + 1.43.0-SNAPSHOT grpc-google-cloud-domains-v1 GRPC library for google-cloud-domains com.google.cloud google-cloud-domains-parent - 1.42.0 + 1.43.0-SNAPSHOT diff --git a/java-domains/grpc-google-cloud-domains-v1alpha2/pom.xml b/java-domains/grpc-google-cloud-domains-v1alpha2/pom.xml index 7c47bcc887d1..4c132558b2d7 100644 --- a/java-domains/grpc-google-cloud-domains-v1alpha2/pom.xml +++ b/java-domains/grpc-google-cloud-domains-v1alpha2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-domains-v1alpha2 - 0.50.0 + 0.51.0-SNAPSHOT grpc-google-cloud-domains-v1alpha2 GRPC library for google-cloud-domains com.google.cloud google-cloud-domains-parent - 1.42.0 + 1.43.0-SNAPSHOT diff --git a/java-domains/grpc-google-cloud-domains-v1beta1/pom.xml b/java-domains/grpc-google-cloud-domains-v1beta1/pom.xml index 9c5f726b4470..f7bcc7e0309e 100644 --- a/java-domains/grpc-google-cloud-domains-v1beta1/pom.xml +++ b/java-domains/grpc-google-cloud-domains-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-domains-v1beta1 - 0.50.0 + 0.51.0-SNAPSHOT grpc-google-cloud-domains-v1beta1 GRPC library for google-cloud-domains com.google.cloud google-cloud-domains-parent - 1.42.0 + 1.43.0-SNAPSHOT diff --git a/java-domains/pom.xml b/java-domains/pom.xml index 8150e5077dc0..216af78dc301 100644 --- a/java-domains/pom.xml +++ b/java-domains/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-domains-parent pom - 1.42.0 + 1.43.0-SNAPSHOT Google Cloud Domains Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.cloud google-cloud-domains - 1.42.0 + 1.43.0-SNAPSHOT com.google.api.grpc proto-google-cloud-domains-v1 - 1.42.0 + 1.43.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-domains-v1 - 1.42.0 + 1.43.0-SNAPSHOT com.google.api.grpc proto-google-cloud-domains-v1alpha2 - 0.50.0 + 0.51.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-domains-v1alpha2 - 0.50.0 + 0.51.0-SNAPSHOT com.google.api.grpc proto-google-cloud-domains-v1beta1 - 0.50.0 + 0.51.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-domains-v1beta1 - 0.50.0 + 0.51.0-SNAPSHOT diff --git a/java-domains/proto-google-cloud-domains-v1/pom.xml b/java-domains/proto-google-cloud-domains-v1/pom.xml index ceb66fc24eec..61636c9c659c 100644 --- a/java-domains/proto-google-cloud-domains-v1/pom.xml +++ b/java-domains/proto-google-cloud-domains-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-domains-v1 - 1.42.0 + 1.43.0-SNAPSHOT proto-google-cloud-domains-v1 Proto library for google-cloud-domains com.google.cloud google-cloud-domains-parent - 1.42.0 + 1.43.0-SNAPSHOT diff --git a/java-domains/proto-google-cloud-domains-v1alpha2/pom.xml b/java-domains/proto-google-cloud-domains-v1alpha2/pom.xml index 39761ff2fd4b..a5ecd0399d54 100644 --- a/java-domains/proto-google-cloud-domains-v1alpha2/pom.xml +++ b/java-domains/proto-google-cloud-domains-v1alpha2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-domains-v1alpha2 - 0.50.0 + 0.51.0-SNAPSHOT proto-google-cloud-domains-v1alpha2 Proto library for google-cloud-domains com.google.cloud google-cloud-domains-parent - 1.42.0 + 1.43.0-SNAPSHOT diff --git a/java-domains/proto-google-cloud-domains-v1beta1/pom.xml b/java-domains/proto-google-cloud-domains-v1beta1/pom.xml index d27395c9f271..1a75b17b5503 100644 --- a/java-domains/proto-google-cloud-domains-v1beta1/pom.xml +++ b/java-domains/proto-google-cloud-domains-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-domains-v1beta1 - 0.50.0 + 0.51.0-SNAPSHOT proto-google-cloud-domains-v1beta1 Proto library for google-cloud-domains com.google.cloud google-cloud-domains-parent - 1.42.0 + 1.43.0-SNAPSHOT diff --git a/java-edgenetwork/google-cloud-edgenetwork-bom/pom.xml b/java-edgenetwork/google-cloud-edgenetwork-bom/pom.xml index 0cee88aceb8f..3b9641f381a8 100644 --- a/java-edgenetwork/google-cloud-edgenetwork-bom/pom.xml +++ b/java-edgenetwork/google-cloud-edgenetwork-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-edgenetwork-bom - 0.13.0 + 0.14.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-edgenetwork - 0.13.0 + 0.14.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-edgenetwork-v1 - 0.13.0 + 0.14.0-SNAPSHOT com.google.api.grpc proto-google-cloud-edgenetwork-v1 - 0.13.0 + 0.14.0-SNAPSHOT diff --git a/java-edgenetwork/google-cloud-edgenetwork/pom.xml b/java-edgenetwork/google-cloud-edgenetwork/pom.xml index 83e54d1ecc10..ec3e77e4b04a 100644 --- a/java-edgenetwork/google-cloud-edgenetwork/pom.xml +++ b/java-edgenetwork/google-cloud-edgenetwork/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-edgenetwork - 0.13.0 + 0.14.0-SNAPSHOT jar Google Distributed Cloud Edge Network API Distributed Cloud Edge Network API Network management API for Distributed Cloud Edge. com.google.cloud google-cloud-edgenetwork-parent - 0.13.0 + 0.14.0-SNAPSHOT google-cloud-edgenetwork diff --git a/java-edgenetwork/grpc-google-cloud-edgenetwork-v1/pom.xml b/java-edgenetwork/grpc-google-cloud-edgenetwork-v1/pom.xml index 0294aa516677..fdfc46f836c5 100644 --- a/java-edgenetwork/grpc-google-cloud-edgenetwork-v1/pom.xml +++ b/java-edgenetwork/grpc-google-cloud-edgenetwork-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-edgenetwork-v1 - 0.13.0 + 0.14.0-SNAPSHOT grpc-google-cloud-edgenetwork-v1 GRPC library for google-cloud-edgenetwork com.google.cloud google-cloud-edgenetwork-parent - 0.13.0 + 0.14.0-SNAPSHOT diff --git a/java-edgenetwork/pom.xml b/java-edgenetwork/pom.xml index 13af2795bda6..621e10754250 100644 --- a/java-edgenetwork/pom.xml +++ b/java-edgenetwork/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-edgenetwork-parent pom - 0.13.0 + 0.14.0-SNAPSHOT Google Distributed Cloud Edge Network API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-edgenetwork - 0.13.0 + 0.14.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-edgenetwork-v1 - 0.13.0 + 0.14.0-SNAPSHOT com.google.api.grpc proto-google-cloud-edgenetwork-v1 - 0.13.0 + 0.14.0-SNAPSHOT diff --git a/java-edgenetwork/proto-google-cloud-edgenetwork-v1/pom.xml b/java-edgenetwork/proto-google-cloud-edgenetwork-v1/pom.xml index b9420cc24840..b44b72e70dec 100644 --- a/java-edgenetwork/proto-google-cloud-edgenetwork-v1/pom.xml +++ b/java-edgenetwork/proto-google-cloud-edgenetwork-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-edgenetwork-v1 - 0.13.0 + 0.14.0-SNAPSHOT proto-google-cloud-edgenetwork-v1 Proto library for google-cloud-edgenetwork com.google.cloud google-cloud-edgenetwork-parent - 0.13.0 + 0.14.0-SNAPSHOT diff --git a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph-bom/pom.xml b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph-bom/pom.xml index 026f111420fe..3a8509650da6 100644 --- a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph-bom/pom.xml +++ b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-enterpriseknowledgegraph-bom - 0.41.0 + 0.42.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-enterpriseknowledgegraph - 0.41.0 + 0.42.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-enterpriseknowledgegraph-v1 - 0.41.0 + 0.42.0-SNAPSHOT com.google.api.grpc proto-google-cloud-enterpriseknowledgegraph-v1 - 0.41.0 + 0.42.0-SNAPSHOT diff --git a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/pom.xml b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/pom.xml index 072364d45e71..3daecd8d9420 100644 --- a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/pom.xml +++ b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-enterpriseknowledgegraph - 0.41.0 + 0.42.0-SNAPSHOT jar Google Enterprise Knowledge Graph Enterprise Knowledge Graph Enterprise Knowledge Graph organizes siloed information into organizational knowledge, which involves consolidating, standardizing, and reconciling data in an efficient and useful way. com.google.cloud google-cloud-enterpriseknowledgegraph-parent - 0.41.0 + 0.42.0-SNAPSHOT google-cloud-enterpriseknowledgegraph diff --git a/java-enterpriseknowledgegraph/grpc-google-cloud-enterpriseknowledgegraph-v1/pom.xml b/java-enterpriseknowledgegraph/grpc-google-cloud-enterpriseknowledgegraph-v1/pom.xml index 5763428bd06f..6ac5f2931f17 100644 --- a/java-enterpriseknowledgegraph/grpc-google-cloud-enterpriseknowledgegraph-v1/pom.xml +++ b/java-enterpriseknowledgegraph/grpc-google-cloud-enterpriseknowledgegraph-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-enterpriseknowledgegraph-v1 - 0.41.0 + 0.42.0-SNAPSHOT grpc-google-cloud-enterpriseknowledgegraph-v1 GRPC library for google-cloud-enterpriseknowledgegraph com.google.cloud google-cloud-enterpriseknowledgegraph-parent - 0.41.0 + 0.42.0-SNAPSHOT diff --git a/java-enterpriseknowledgegraph/pom.xml b/java-enterpriseknowledgegraph/pom.xml index 6b58a2f27b6b..b5d9f1c154ee 100644 --- a/java-enterpriseknowledgegraph/pom.xml +++ b/java-enterpriseknowledgegraph/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-enterpriseknowledgegraph-parent pom - 0.41.0 + 0.42.0-SNAPSHOT Google Enterprise Knowledge Graph Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-enterpriseknowledgegraph - 0.41.0 + 0.42.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-enterpriseknowledgegraph-v1 - 0.41.0 + 0.42.0-SNAPSHOT com.google.api.grpc proto-google-cloud-enterpriseknowledgegraph-v1 - 0.41.0 + 0.42.0-SNAPSHOT diff --git a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/pom.xml b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/pom.xml index 270d17794f43..d828cb327599 100644 --- a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/pom.xml +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-enterpriseknowledgegraph-v1 - 0.41.0 + 0.42.0-SNAPSHOT proto-google-cloud-enterpriseknowledgegraph-v1 Proto library for google-cloud-enterpriseknowledgegraph com.google.cloud google-cloud-enterpriseknowledgegraph-parent - 0.41.0 + 0.42.0-SNAPSHOT diff --git a/java-errorreporting/google-cloud-errorreporting-bom/pom.xml b/java-errorreporting/google-cloud-errorreporting-bom/pom.xml index cd8a6c27f5bc..f504ea557703 100644 --- a/java-errorreporting/google-cloud-errorreporting-bom/pom.xml +++ b/java-errorreporting/google-cloud-errorreporting-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-errorreporting-bom - 0.166.0-beta + 0.167.0-beta-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-errorreporting - 0.166.0-beta + 0.167.0-beta-SNAPSHOT com.google.api.grpc grpc-google-cloud-error-reporting-v1beta1 - 0.132.0 + 0.133.0-SNAPSHOT com.google.api.grpc proto-google-cloud-error-reporting-v1beta1 - 0.132.0 + 0.133.0-SNAPSHOT diff --git a/java-errorreporting/google-cloud-errorreporting/pom.xml b/java-errorreporting/google-cloud-errorreporting/pom.xml index 8b34890e780f..8209120f493d 100644 --- a/java-errorreporting/google-cloud-errorreporting/pom.xml +++ b/java-errorreporting/google-cloud-errorreporting/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-errorreporting - 0.166.0-beta + 0.167.0-beta-SNAPSHOT jar Google Cloud Error Reporting Java idiomatic client for Google Cloud Error Reporting com.google.cloud google-cloud-errorreporting-parent - 0.166.0-beta + 0.167.0-beta-SNAPSHOT google-cloud-errorreporting diff --git a/java-errorreporting/grpc-google-cloud-error-reporting-v1beta1/pom.xml b/java-errorreporting/grpc-google-cloud-error-reporting-v1beta1/pom.xml index 7df366fc2fcc..b13621881862 100644 --- a/java-errorreporting/grpc-google-cloud-error-reporting-v1beta1/pom.xml +++ b/java-errorreporting/grpc-google-cloud-error-reporting-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-error-reporting-v1beta1 - 0.132.0 + 0.133.0-SNAPSHOT grpc-google-cloud-error-reporting-v1beta1 GRPC library for grpc-google-cloud-error-reporting-v1beta1 com.google.cloud google-cloud-errorreporting-parent - 0.166.0-beta + 0.167.0-beta-SNAPSHOT diff --git a/java-errorreporting/pom.xml b/java-errorreporting/pom.xml index 290e21bd8c09..ae5e975492c3 100644 --- a/java-errorreporting/pom.xml +++ b/java-errorreporting/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-errorreporting-parent pom - 0.166.0-beta + 0.167.0-beta-SNAPSHOT Google Cloud Error Reporting Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,18 +29,18 @@ com.google.cloud google-cloud-errorreporting - 0.166.0-beta + 0.167.0-beta-SNAPSHOT com.google.api.grpc proto-google-cloud-error-reporting-v1beta1 - 0.132.0 + 0.133.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-error-reporting-v1beta1 - 0.132.0 + 0.133.0-SNAPSHOT diff --git a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/pom.xml b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/pom.xml index 9055d4f6c789..ef53cccd95ee 100644 --- a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/pom.xml +++ b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-error-reporting-v1beta1 - 0.132.0 + 0.133.0-SNAPSHOT proto-google-cloud-error-reporting-v1beta1 PROTO library for proto-google-cloud-error-reporting-v1beta1 com.google.cloud google-cloud-errorreporting-parent - 0.166.0-beta + 0.167.0-beta-SNAPSHOT diff --git a/java-essential-contacts/google-cloud-essential-contacts-bom/pom.xml b/java-essential-contacts/google-cloud-essential-contacts-bom/pom.xml index 94a064e8ddca..58237bc40665 100644 --- a/java-essential-contacts/google-cloud-essential-contacts-bom/pom.xml +++ b/java-essential-contacts/google-cloud-essential-contacts-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-essential-contacts-bom - 2.45.0 + 2.46.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-essential-contacts - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-essential-contacts-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-essential-contacts-v1 - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-essential-contacts/google-cloud-essential-contacts/pom.xml b/java-essential-contacts/google-cloud-essential-contacts/pom.xml index 7670fa8cca66..8bf80b7e657e 100644 --- a/java-essential-contacts/google-cloud-essential-contacts/pom.xml +++ b/java-essential-contacts/google-cloud-essential-contacts/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-essential-contacts - 2.45.0 + 2.46.0-SNAPSHOT jar Google Essential Contacts API Essential Contacts API helps you customize who receives notifications by providing your own list of contacts in many Google Cloud services. com.google.cloud google-cloud-essential-contacts-parent - 2.45.0 + 2.46.0-SNAPSHOT google-cloud-essential-contacts diff --git a/java-essential-contacts/grpc-google-cloud-essential-contacts-v1/pom.xml b/java-essential-contacts/grpc-google-cloud-essential-contacts-v1/pom.xml index 00dd228be3f7..aca7621f0b0c 100644 --- a/java-essential-contacts/grpc-google-cloud-essential-contacts-v1/pom.xml +++ b/java-essential-contacts/grpc-google-cloud-essential-contacts-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-essential-contacts-v1 - 2.45.0 + 2.46.0-SNAPSHOT grpc-google-cloud-essential-contacts-v1 GRPC library for google-cloud-essential-contacts com.google.cloud google-cloud-essential-contacts-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-essential-contacts/pom.xml b/java-essential-contacts/pom.xml index 555acaabf5f3..a92465a6f416 100644 --- a/java-essential-contacts/pom.xml +++ b/java-essential-contacts/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-essential-contacts-parent pom - 2.45.0 + 2.46.0-SNAPSHOT Google Essential Contacts API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-essential-contacts - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-essential-contacts-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-essential-contacts-v1 - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-essential-contacts/proto-google-cloud-essential-contacts-v1/pom.xml b/java-essential-contacts/proto-google-cloud-essential-contacts-v1/pom.xml index f3c55045a658..68e50815dc58 100644 --- a/java-essential-contacts/proto-google-cloud-essential-contacts-v1/pom.xml +++ b/java-essential-contacts/proto-google-cloud-essential-contacts-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-essential-contacts-v1 - 2.45.0 + 2.46.0-SNAPSHOT proto-google-cloud-essential-contacts-v1 Proto library for google-cloud-essential-contacts com.google.cloud google-cloud-essential-contacts-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-eventarc-publishing/google-cloud-eventarc-publishing-bom/pom.xml b/java-eventarc-publishing/google-cloud-eventarc-publishing-bom/pom.xml index 13f02121a216..296c25ef1584 100644 --- a/java-eventarc-publishing/google-cloud-eventarc-publishing-bom/pom.xml +++ b/java-eventarc-publishing/google-cloud-eventarc-publishing-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-eventarc-publishing-bom - 0.45.0 + 0.46.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-eventarc-publishing - 0.45.0 + 0.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-eventarc-publishing-v1 - 0.45.0 + 0.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-eventarc-publishing-v1 - 0.45.0 + 0.46.0-SNAPSHOT diff --git a/java-eventarc-publishing/google-cloud-eventarc-publishing/pom.xml b/java-eventarc-publishing/google-cloud-eventarc-publishing/pom.xml index 61be3bc84751..3b7bcda2095c 100644 --- a/java-eventarc-publishing/google-cloud-eventarc-publishing/pom.xml +++ b/java-eventarc-publishing/google-cloud-eventarc-publishing/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-eventarc-publishing - 0.45.0 + 0.46.0-SNAPSHOT jar Google Eventarc Publishing Eventarc Publishing lets you asynchronously deliver events from Google services, SaaS, and your own apps using loosely coupled services that react to state changes. com.google.cloud google-cloud-eventarc-publishing-parent - 0.45.0 + 0.46.0-SNAPSHOT google-cloud-eventarc-publishing diff --git a/java-eventarc-publishing/grpc-google-cloud-eventarc-publishing-v1/pom.xml b/java-eventarc-publishing/grpc-google-cloud-eventarc-publishing-v1/pom.xml index 2ee0d81906a9..3eeb3f744421 100644 --- a/java-eventarc-publishing/grpc-google-cloud-eventarc-publishing-v1/pom.xml +++ b/java-eventarc-publishing/grpc-google-cloud-eventarc-publishing-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-eventarc-publishing-v1 - 0.45.0 + 0.46.0-SNAPSHOT grpc-google-cloud-eventarc-publishing-v1 GRPC library for google-cloud-eventarc-publishing com.google.cloud google-cloud-eventarc-publishing-parent - 0.45.0 + 0.46.0-SNAPSHOT diff --git a/java-eventarc-publishing/pom.xml b/java-eventarc-publishing/pom.xml index 699680085d65..1029f1d4a936 100644 --- a/java-eventarc-publishing/pom.xml +++ b/java-eventarc-publishing/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-eventarc-publishing-parent pom - 0.45.0 + 0.46.0-SNAPSHOT Google Eventarc Publishing Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-eventarc-publishing - 0.45.0 + 0.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-eventarc-publishing-v1 - 0.45.0 + 0.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-eventarc-publishing-v1 - 0.45.0 + 0.46.0-SNAPSHOT diff --git a/java-eventarc-publishing/proto-google-cloud-eventarc-publishing-v1/pom.xml b/java-eventarc-publishing/proto-google-cloud-eventarc-publishing-v1/pom.xml index c87efabf40cd..049bcfbe9ef2 100644 --- a/java-eventarc-publishing/proto-google-cloud-eventarc-publishing-v1/pom.xml +++ b/java-eventarc-publishing/proto-google-cloud-eventarc-publishing-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-eventarc-publishing-v1 - 0.45.0 + 0.46.0-SNAPSHOT proto-google-cloud-eventarc-publishing-v1 Proto library for google-cloud-eventarc-publishing com.google.cloud google-cloud-eventarc-publishing-parent - 0.45.0 + 0.46.0-SNAPSHOT diff --git a/java-eventarc/google-cloud-eventarc-bom/pom.xml b/java-eventarc/google-cloud-eventarc-bom/pom.xml index aa5b90fc1afb..4abe56d251cf 100644 --- a/java-eventarc/google-cloud-eventarc-bom/pom.xml +++ b/java-eventarc/google-cloud-eventarc-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-eventarc-bom - 1.45.0 + 1.46.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-eventarc - 1.45.0 + 1.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-eventarc-v1 - 1.45.0 + 1.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-eventarc-v1 - 1.45.0 + 1.46.0-SNAPSHOT diff --git a/java-eventarc/google-cloud-eventarc/pom.xml b/java-eventarc/google-cloud-eventarc/pom.xml index f59cae79f9e9..d0bbb02101b2 100644 --- a/java-eventarc/google-cloud-eventarc/pom.xml +++ b/java-eventarc/google-cloud-eventarc/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-eventarc - 1.45.0 + 1.46.0-SNAPSHOT jar Google Eventarc Eventarc lets you asynchronously deliver events from Google services, SaaS, and your own apps using loosely coupled services that react to state changes. com.google.cloud google-cloud-eventarc-parent - 1.45.0 + 1.46.0-SNAPSHOT google-cloud-eventarc diff --git a/java-eventarc/grpc-google-cloud-eventarc-v1/pom.xml b/java-eventarc/grpc-google-cloud-eventarc-v1/pom.xml index 275ab7f9c6d4..9a76b8ac0378 100644 --- a/java-eventarc/grpc-google-cloud-eventarc-v1/pom.xml +++ b/java-eventarc/grpc-google-cloud-eventarc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-eventarc-v1 - 1.45.0 + 1.46.0-SNAPSHOT grpc-google-cloud-eventarc-v1 GRPC library for google-cloud-eventarc com.google.cloud google-cloud-eventarc-parent - 1.45.0 + 1.46.0-SNAPSHOT diff --git a/java-eventarc/pom.xml b/java-eventarc/pom.xml index 7ee3c44d2bd8..ad65553a516e 100644 --- a/java-eventarc/pom.xml +++ b/java-eventarc/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-eventarc-parent pom - 1.45.0 + 1.46.0-SNAPSHOT Google Eventarc Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-eventarc - 1.45.0 + 1.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-eventarc-v1 - 1.45.0 + 1.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-eventarc-v1 - 1.45.0 + 1.46.0-SNAPSHOT diff --git a/java-eventarc/proto-google-cloud-eventarc-v1/pom.xml b/java-eventarc/proto-google-cloud-eventarc-v1/pom.xml index 23efd7eec201..76d983058e53 100644 --- a/java-eventarc/proto-google-cloud-eventarc-v1/pom.xml +++ b/java-eventarc/proto-google-cloud-eventarc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-eventarc-v1 - 1.45.0 + 1.46.0-SNAPSHOT proto-google-cloud-eventarc-v1 Proto library for google-cloud-eventarc com.google.cloud google-cloud-eventarc-parent - 1.45.0 + 1.46.0-SNAPSHOT diff --git a/java-filestore/google-cloud-filestore-bom/pom.xml b/java-filestore/google-cloud-filestore-bom/pom.xml index 949f0d460282..6f175aad03c8 100644 --- a/java-filestore/google-cloud-filestore-bom/pom.xml +++ b/java-filestore/google-cloud-filestore-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-filestore-bom - 1.46.0 + 1.47.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-filestore - 1.46.0 + 1.47.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-filestore-v1beta1 - 0.48.0 + 0.49.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-filestore-v1 - 1.46.0 + 1.47.0-SNAPSHOT com.google.api.grpc proto-google-cloud-filestore-v1 - 1.46.0 + 1.47.0-SNAPSHOT com.google.api.grpc proto-google-cloud-filestore-v1beta1 - 0.48.0 + 0.49.0-SNAPSHOT diff --git a/java-filestore/google-cloud-filestore/pom.xml b/java-filestore/google-cloud-filestore/pom.xml index 447a579ec123..125256c0fdd7 100644 --- a/java-filestore/google-cloud-filestore/pom.xml +++ b/java-filestore/google-cloud-filestore/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-filestore - 1.46.0 + 1.47.0-SNAPSHOT jar Google Cloud Filestore API Cloud Filestore API instances are fully managed NFS file servers on Google Cloud for use with applications running on Compute Engine virtual machines (VMs) instances or Google Kubernetes Engine clusters. com.google.cloud google-cloud-filestore-parent - 1.46.0 + 1.47.0-SNAPSHOT google-cloud-filestore diff --git a/java-filestore/grpc-google-cloud-filestore-v1/pom.xml b/java-filestore/grpc-google-cloud-filestore-v1/pom.xml index dae9dbae5b19..db3493e39ee2 100644 --- a/java-filestore/grpc-google-cloud-filestore-v1/pom.xml +++ b/java-filestore/grpc-google-cloud-filestore-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-filestore-v1 - 1.46.0 + 1.47.0-SNAPSHOT grpc-google-cloud-filestore-v1 GRPC library for google-cloud-filestore com.google.cloud google-cloud-filestore-parent - 1.46.0 + 1.47.0-SNAPSHOT diff --git a/java-filestore/grpc-google-cloud-filestore-v1beta1/pom.xml b/java-filestore/grpc-google-cloud-filestore-v1beta1/pom.xml index 48d01ebcfe5c..7aa580aa1caa 100644 --- a/java-filestore/grpc-google-cloud-filestore-v1beta1/pom.xml +++ b/java-filestore/grpc-google-cloud-filestore-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-filestore-v1beta1 - 0.48.0 + 0.49.0-SNAPSHOT grpc-google-cloud-filestore-v1beta1 GRPC library for google-cloud-filestore com.google.cloud google-cloud-filestore-parent - 1.46.0 + 1.47.0-SNAPSHOT diff --git a/java-filestore/pom.xml b/java-filestore/pom.xml index c8aa3b4bcfe0..fe7927cfa426 100644 --- a/java-filestore/pom.xml +++ b/java-filestore/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-filestore-parent pom - 1.46.0 + 1.47.0-SNAPSHOT Google Cloud Filestore API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-filestore - 1.46.0 + 1.47.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-filestore-v1beta1 - 0.48.0 + 0.49.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-filestore-v1 - 1.46.0 + 1.47.0-SNAPSHOT com.google.api.grpc proto-google-cloud-filestore-v1 - 1.46.0 + 1.47.0-SNAPSHOT com.google.api.grpc proto-google-cloud-filestore-v1beta1 - 0.48.0 + 0.49.0-SNAPSHOT diff --git a/java-filestore/proto-google-cloud-filestore-v1/pom.xml b/java-filestore/proto-google-cloud-filestore-v1/pom.xml index 52c55945c36c..5cf4058317b1 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/pom.xml +++ b/java-filestore/proto-google-cloud-filestore-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-filestore-v1 - 1.46.0 + 1.47.0-SNAPSHOT proto-google-cloud-filestore-v1 Proto library for google-cloud-filestore com.google.cloud google-cloud-filestore-parent - 1.46.0 + 1.47.0-SNAPSHOT diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/pom.xml b/java-filestore/proto-google-cloud-filestore-v1beta1/pom.xml index 007a4ec3f38f..5aa2d512f2d5 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/pom.xml +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-filestore-v1beta1 - 0.48.0 + 0.49.0-SNAPSHOT proto-google-cloud-filestore-v1beta1 Proto library for google-cloud-filestore com.google.cloud google-cloud-filestore-parent - 1.46.0 + 1.47.0-SNAPSHOT diff --git a/java-functions/google-cloud-functions-bom/pom.xml b/java-functions/google-cloud-functions-bom/pom.xml index a06448895710..93eccc00b4bb 100644 --- a/java-functions/google-cloud-functions-bom/pom.xml +++ b/java-functions/google-cloud-functions-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-functions-bom - 2.47.0 + 2.48.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,47 +27,47 @@ com.google.cloud google-cloud-functions - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-functions-v1 - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-functions-v2beta - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-functions-v2alpha - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-functions-v2 - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc proto-google-cloud-functions-v1 - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc proto-google-cloud-functions-v2beta - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc proto-google-cloud-functions-v2alpha - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc proto-google-cloud-functions-v2 - 2.47.0 + 2.48.0-SNAPSHOT diff --git a/java-functions/google-cloud-functions/pom.xml b/java-functions/google-cloud-functions/pom.xml index 834ce3119497..c0140b00f86f 100644 --- a/java-functions/google-cloud-functions/pom.xml +++ b/java-functions/google-cloud-functions/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-functions - 2.47.0 + 2.48.0-SNAPSHOT jar Google Cloud Functions is a scalable pay as you go Functions-as-a-Service (FaaS) to run your code with zero server management. com.google.cloud google-cloud-functions-parent - 2.47.0 + 2.48.0-SNAPSHOT google-cloud-functions diff --git a/java-functions/grpc-google-cloud-functions-v1/pom.xml b/java-functions/grpc-google-cloud-functions-v1/pom.xml index 8f73055aa517..bd5220cc5126 100644 --- a/java-functions/grpc-google-cloud-functions-v1/pom.xml +++ b/java-functions/grpc-google-cloud-functions-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-functions-v1 - 2.47.0 + 2.48.0-SNAPSHOT grpc-google-cloud-functions-v1 GRPC library for grpc-google-cloud-functions-v1 com.google.cloud google-cloud-functions-parent - 2.47.0 + 2.48.0-SNAPSHOT diff --git a/java-functions/grpc-google-cloud-functions-v2/pom.xml b/java-functions/grpc-google-cloud-functions-v2/pom.xml index c0a4851e2adc..ae63e34b758a 100644 --- a/java-functions/grpc-google-cloud-functions-v2/pom.xml +++ b/java-functions/grpc-google-cloud-functions-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-functions-v2 - 2.47.0 + 2.48.0-SNAPSHOT grpc-google-cloud-functions-v2 GRPC library for google-cloud-functions com.google.cloud google-cloud-functions-parent - 2.47.0 + 2.48.0-SNAPSHOT diff --git a/java-functions/grpc-google-cloud-functions-v2alpha/pom.xml b/java-functions/grpc-google-cloud-functions-v2alpha/pom.xml index ade1e630a6b8..3d250803b69c 100644 --- a/java-functions/grpc-google-cloud-functions-v2alpha/pom.xml +++ b/java-functions/grpc-google-cloud-functions-v2alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-functions-v2alpha - 2.47.0 + 2.48.0-SNAPSHOT grpc-google-cloud-functions-v2alpha GRPC library for google-cloud-functions com.google.cloud google-cloud-functions-parent - 2.47.0 + 2.48.0-SNAPSHOT diff --git a/java-functions/grpc-google-cloud-functions-v2beta/pom.xml b/java-functions/grpc-google-cloud-functions-v2beta/pom.xml index d043b527ef75..e7ce37b8716f 100644 --- a/java-functions/grpc-google-cloud-functions-v2beta/pom.xml +++ b/java-functions/grpc-google-cloud-functions-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-functions-v2beta - 2.47.0 + 2.48.0-SNAPSHOT grpc-google-cloud-functions-v2beta GRPC library for google-cloud-functions com.google.cloud google-cloud-functions-parent - 2.47.0 + 2.48.0-SNAPSHOT diff --git a/java-functions/pom.xml b/java-functions/pom.xml index 3da99f3529b6..04a37ec6df47 100644 --- a/java-functions/pom.xml +++ b/java-functions/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-functions-parent pom - 2.47.0 + 2.48.0-SNAPSHOT Google Cloud Functions Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,47 +29,47 @@ com.google.cloud google-cloud-functions - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc proto-google-cloud-functions-v2 - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-functions-v2 - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc proto-google-cloud-functions-v2alpha - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc proto-google-cloud-functions-v2beta - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-functions-v2alpha - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-functions-v2beta - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc proto-google-cloud-functions-v1 - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-functions-v1 - 2.47.0 + 2.48.0-SNAPSHOT diff --git a/java-functions/proto-google-cloud-functions-v1/pom.xml b/java-functions/proto-google-cloud-functions-v1/pom.xml index 92f1cf8149ae..7fcfb0a2e6d2 100644 --- a/java-functions/proto-google-cloud-functions-v1/pom.xml +++ b/java-functions/proto-google-cloud-functions-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-functions-v1 - 2.47.0 + 2.48.0-SNAPSHOT proto-google-cloud-functions-v1 PROTO library for proto-google-cloud-functions-v1 com.google.cloud google-cloud-functions-parent - 2.47.0 + 2.48.0-SNAPSHOT diff --git a/java-functions/proto-google-cloud-functions-v2/pom.xml b/java-functions/proto-google-cloud-functions-v2/pom.xml index e5bf585b9414..34e349a6ac6d 100644 --- a/java-functions/proto-google-cloud-functions-v2/pom.xml +++ b/java-functions/proto-google-cloud-functions-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-functions-v2 - 2.47.0 + 2.48.0-SNAPSHOT proto-google-cloud-functions-v2 Proto library for google-cloud-functions com.google.cloud google-cloud-functions-parent - 2.47.0 + 2.48.0-SNAPSHOT diff --git a/java-functions/proto-google-cloud-functions-v2alpha/pom.xml b/java-functions/proto-google-cloud-functions-v2alpha/pom.xml index 34817973041f..5fcaf116aa98 100644 --- a/java-functions/proto-google-cloud-functions-v2alpha/pom.xml +++ b/java-functions/proto-google-cloud-functions-v2alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-functions-v2alpha - 2.47.0 + 2.48.0-SNAPSHOT proto-google-cloud-functions-v2alpha Proto library for google-cloud-functions com.google.cloud google-cloud-functions-parent - 2.47.0 + 2.48.0-SNAPSHOT diff --git a/java-functions/proto-google-cloud-functions-v2beta/pom.xml b/java-functions/proto-google-cloud-functions-v2beta/pom.xml index f3f69e10670b..cf16741a5033 100644 --- a/java-functions/proto-google-cloud-functions-v2beta/pom.xml +++ b/java-functions/proto-google-cloud-functions-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-functions-v2beta - 2.47.0 + 2.48.0-SNAPSHOT proto-google-cloud-functions-v2beta Proto library for google-cloud-functions com.google.cloud google-cloud-functions-parent - 2.47.0 + 2.48.0-SNAPSHOT diff --git a/java-gke-backup/google-cloud-gke-backup-bom/pom.xml b/java-gke-backup/google-cloud-gke-backup-bom/pom.xml index fe27101a8c7f..7a9fa5e26853 100644 --- a/java-gke-backup/google-cloud-gke-backup-bom/pom.xml +++ b/java-gke-backup/google-cloud-gke-backup-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-gke-backup-bom - 0.44.0 + 0.45.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-gke-backup - 0.44.0 + 0.45.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-gke-backup-v1 - 0.44.0 + 0.45.0-SNAPSHOT com.google.api.grpc proto-google-cloud-gke-backup-v1 - 0.44.0 + 0.45.0-SNAPSHOT diff --git a/java-gke-backup/google-cloud-gke-backup/pom.xml b/java-gke-backup/google-cloud-gke-backup/pom.xml index d8cd4eae349c..5f2367f7ae2d 100644 --- a/java-gke-backup/google-cloud-gke-backup/pom.xml +++ b/java-gke-backup/google-cloud-gke-backup/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-gke-backup - 0.44.0 + 0.45.0-SNAPSHOT jar Google Backup for GKE Backup for GKE is a service for backing up and restoring workloads in GKE. com.google.cloud google-cloud-gke-backup-parent - 0.44.0 + 0.45.0-SNAPSHOT google-cloud-gke-backup diff --git a/java-gke-backup/grpc-google-cloud-gke-backup-v1/pom.xml b/java-gke-backup/grpc-google-cloud-gke-backup-v1/pom.xml index 40e39bd018aa..43eea8128a66 100644 --- a/java-gke-backup/grpc-google-cloud-gke-backup-v1/pom.xml +++ b/java-gke-backup/grpc-google-cloud-gke-backup-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-gke-backup-v1 - 0.44.0 + 0.45.0-SNAPSHOT grpc-google-cloud-gke-backup-v1 GRPC library for google-cloud-gke-backup com.google.cloud google-cloud-gke-backup-parent - 0.44.0 + 0.45.0-SNAPSHOT diff --git a/java-gke-backup/pom.xml b/java-gke-backup/pom.xml index e4abf20a60c1..aab4e9841ca5 100644 --- a/java-gke-backup/pom.xml +++ b/java-gke-backup/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-gke-backup-parent pom - 0.44.0 + 0.45.0-SNAPSHOT Google Backup for GKE Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-gke-backup - 0.44.0 + 0.45.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-gke-backup-v1 - 0.44.0 + 0.45.0-SNAPSHOT com.google.api.grpc proto-google-cloud-gke-backup-v1 - 0.44.0 + 0.45.0-SNAPSHOT diff --git a/java-gke-backup/proto-google-cloud-gke-backup-v1/pom.xml b/java-gke-backup/proto-google-cloud-gke-backup-v1/pom.xml index 3bbc3f8cd4f8..b6636dd1991c 100644 --- a/java-gke-backup/proto-google-cloud-gke-backup-v1/pom.xml +++ b/java-gke-backup/proto-google-cloud-gke-backup-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-gke-backup-v1 - 0.44.0 + 0.45.0-SNAPSHOT proto-google-cloud-gke-backup-v1 Proto library for google-cloud-gke-backup com.google.cloud google-cloud-gke-backup-parent - 0.44.0 + 0.45.0-SNAPSHOT diff --git a/java-gke-connect-gateway/google-cloud-gke-connect-gateway-bom/pom.xml b/java-gke-connect-gateway/google-cloud-gke-connect-gateway-bom/pom.xml index cf90dec6164a..98b61a5a4d21 100644 --- a/java-gke-connect-gateway/google-cloud-gke-connect-gateway-bom/pom.xml +++ b/java-gke-connect-gateway/google-cloud-gke-connect-gateway-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-gke-connect-gateway-bom - 0.46.0 + 0.47.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-gke-connect-gateway - 0.46.0 + 0.47.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-gke-connect-gateway-v1beta1 - 0.46.0 + 0.47.0-SNAPSHOT com.google.api.grpc proto-google-cloud-gke-connect-gateway-v1beta1 - 0.46.0 + 0.47.0-SNAPSHOT diff --git a/java-gke-connect-gateway/google-cloud-gke-connect-gateway/pom.xml b/java-gke-connect-gateway/google-cloud-gke-connect-gateway/pom.xml index 313b8d14d66b..dfc3858cf6cc 100644 --- a/java-gke-connect-gateway/google-cloud-gke-connect-gateway/pom.xml +++ b/java-gke-connect-gateway/google-cloud-gke-connect-gateway/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-gke-connect-gateway - 0.46.0 + 0.47.0-SNAPSHOT jar Google Connect Gateway API Connect Gateway API builds on the power of fleets to let Anthos users connect to and run commands against registered Anthos clusters in a simple, consistent, and secured way, whether the clusters are on Google Cloud, other public clouds, or on premises, and makes it easier to automate DevOps processes across all your clusters. com.google.cloud google-cloud-gke-connect-gateway-parent - 0.46.0 + 0.47.0-SNAPSHOT google-cloud-gke-connect-gateway diff --git a/java-gke-connect-gateway/grpc-google-cloud-gke-connect-gateway-v1beta1/pom.xml b/java-gke-connect-gateway/grpc-google-cloud-gke-connect-gateway-v1beta1/pom.xml index 7f6249f23bc6..ead4dd17c033 100644 --- a/java-gke-connect-gateway/grpc-google-cloud-gke-connect-gateway-v1beta1/pom.xml +++ b/java-gke-connect-gateway/grpc-google-cloud-gke-connect-gateway-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-gke-connect-gateway-v1beta1 - 0.46.0 + 0.47.0-SNAPSHOT grpc-google-cloud-gke-connect-gateway-v1beta1 GRPC library for google-cloud-gke-connect-gateway com.google.cloud google-cloud-gke-connect-gateway-parent - 0.46.0 + 0.47.0-SNAPSHOT diff --git a/java-gke-connect-gateway/pom.xml b/java-gke-connect-gateway/pom.xml index 521064c71e21..3f9e63bb38ac 100644 --- a/java-gke-connect-gateway/pom.xml +++ b/java-gke-connect-gateway/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-gke-connect-gateway-parent pom - 0.46.0 + 0.47.0-SNAPSHOT Google Connect Gateway API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-gke-connect-gateway - 0.46.0 + 0.47.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-gke-connect-gateway-v1beta1 - 0.46.0 + 0.47.0-SNAPSHOT com.google.api.grpc proto-google-cloud-gke-connect-gateway-v1beta1 - 0.46.0 + 0.47.0-SNAPSHOT diff --git a/java-gke-connect-gateway/proto-google-cloud-gke-connect-gateway-v1beta1/pom.xml b/java-gke-connect-gateway/proto-google-cloud-gke-connect-gateway-v1beta1/pom.xml index e62648342a4d..97e6bd258ee7 100644 --- a/java-gke-connect-gateway/proto-google-cloud-gke-connect-gateway-v1beta1/pom.xml +++ b/java-gke-connect-gateway/proto-google-cloud-gke-connect-gateway-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-gke-connect-gateway-v1beta1 - 0.46.0 + 0.47.0-SNAPSHOT proto-google-cloud-gke-connect-gateway-v1beta1 Proto library for google-cloud-gke-connect-gateway com.google.cloud google-cloud-gke-connect-gateway-parent - 0.46.0 + 0.47.0-SNAPSHOT diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud-bom/pom.xml b/java-gke-multi-cloud/google-cloud-gke-multi-cloud-bom/pom.xml index 66bcebeae2c3..d0ac64ff065d 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud-bom/pom.xml +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-gke-multi-cloud-bom - 0.44.0 + 0.45.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-gke-multi-cloud - 0.44.0 + 0.45.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-gke-multi-cloud-v1 - 0.44.0 + 0.45.0-SNAPSHOT com.google.api.grpc proto-google-cloud-gke-multi-cloud-v1 - 0.44.0 + 0.45.0-SNAPSHOT diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/pom.xml b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/pom.xml index 8ef8d93839ea..b1e750cdea8c 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/pom.xml +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-gke-multi-cloud - 0.44.0 + 0.45.0-SNAPSHOT jar Google Anthos Multicloud Anthos Multicloud enables you to provision and manage GKE clusters running on AWS and Azure infrastructure through a centralized Google Cloud backed control plane. com.google.cloud google-cloud-gke-multi-cloud-parent - 0.44.0 + 0.45.0-SNAPSHOT google-cloud-gke-multi-cloud diff --git a/java-gke-multi-cloud/grpc-google-cloud-gke-multi-cloud-v1/pom.xml b/java-gke-multi-cloud/grpc-google-cloud-gke-multi-cloud-v1/pom.xml index 2f2306137eef..61e59bd1cbe1 100644 --- a/java-gke-multi-cloud/grpc-google-cloud-gke-multi-cloud-v1/pom.xml +++ b/java-gke-multi-cloud/grpc-google-cloud-gke-multi-cloud-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-gke-multi-cloud-v1 - 0.44.0 + 0.45.0-SNAPSHOT grpc-google-cloud-gke-multi-cloud-v1 GRPC library for google-cloud-gke-multi-cloud com.google.cloud google-cloud-gke-multi-cloud-parent - 0.44.0 + 0.45.0-SNAPSHOT diff --git a/java-gke-multi-cloud/pom.xml b/java-gke-multi-cloud/pom.xml index f092c05a83d8..857164cb4495 100644 --- a/java-gke-multi-cloud/pom.xml +++ b/java-gke-multi-cloud/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-gke-multi-cloud-parent pom - 0.44.0 + 0.45.0-SNAPSHOT Google Anthos Multicloud Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-gke-multi-cloud - 0.44.0 + 0.45.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-gke-multi-cloud-v1 - 0.44.0 + 0.45.0-SNAPSHOT com.google.api.grpc proto-google-cloud-gke-multi-cloud-v1 - 0.44.0 + 0.45.0-SNAPSHOT diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/pom.xml b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/pom.xml index ed2f2ef66330..2ede9530f6d9 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/pom.xml +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-gke-multi-cloud-v1 - 0.44.0 + 0.45.0-SNAPSHOT proto-google-cloud-gke-multi-cloud-v1 Proto library for google-cloud-gke-multi-cloud com.google.cloud google-cloud-gke-multi-cloud-parent - 0.44.0 + 0.45.0-SNAPSHOT diff --git a/java-gkehub/google-cloud-gkehub-bom/pom.xml b/java-gkehub/google-cloud-gkehub-bom/pom.xml index 0bdd4d2beb72..1be27bfd84fd 100644 --- a/java-gkehub/google-cloud-gkehub-bom/pom.xml +++ b/java-gkehub/google-cloud-gkehub-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-gkehub-bom - 1.45.0 + 1.46.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,47 +27,47 @@ com.google.cloud google-cloud-gkehub - 1.45.0 + 1.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-gkehub-v1beta1 - 0.51.0 + 0.52.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-gkehub-v1 - 1.45.0 + 1.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-gkehub-v1alpha - 0.51.0 + 0.52.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-gkehub-v1beta - 0.51.0 + 0.52.0-SNAPSHOT com.google.api.grpc proto-google-cloud-gkehub-v1beta1 - 0.51.0 + 0.52.0-SNAPSHOT com.google.api.grpc proto-google-cloud-gkehub-v1 - 1.45.0 + 1.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-gkehub-v1alpha - 0.51.0 + 0.52.0-SNAPSHOT com.google.api.grpc proto-google-cloud-gkehub-v1beta - 0.51.0 + 0.52.0-SNAPSHOT diff --git a/java-gkehub/google-cloud-gkehub/pom.xml b/java-gkehub/google-cloud-gkehub/pom.xml index 787e178a7d34..405557ed5efd 100644 --- a/java-gkehub/google-cloud-gkehub/pom.xml +++ b/java-gkehub/google-cloud-gkehub/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-gkehub - 1.45.0 + 1.46.0-SNAPSHOT jar Google GKE Hub API provides a unified way to work with Kubernetes clusters as part of Anthos, extending GKE to work in multiple environments. You have consistent, unified, and secure infrastructure, cluster, and container management, whether you're using Anthos on Google Cloud (with traditional GKE), hybrid cloud, or multiple public clouds. com.google.cloud google-cloud-gkehub-parent - 1.45.0 + 1.46.0-SNAPSHOT google-cloud-gkehub diff --git a/java-gkehub/grpc-google-cloud-gkehub-v1/pom.xml b/java-gkehub/grpc-google-cloud-gkehub-v1/pom.xml index 1ffdd0cec710..2596a3151e7a 100644 --- a/java-gkehub/grpc-google-cloud-gkehub-v1/pom.xml +++ b/java-gkehub/grpc-google-cloud-gkehub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-gkehub-v1 - 1.45.0 + 1.46.0-SNAPSHOT grpc-google-cloud-gkehub-v1 GRPC library for google-cloud-gkehub com.google.cloud google-cloud-gkehub-parent - 1.45.0 + 1.46.0-SNAPSHOT diff --git a/java-gkehub/grpc-google-cloud-gkehub-v1alpha/pom.xml b/java-gkehub/grpc-google-cloud-gkehub-v1alpha/pom.xml index c22d2b3e9681..3d1a44e80e16 100644 --- a/java-gkehub/grpc-google-cloud-gkehub-v1alpha/pom.xml +++ b/java-gkehub/grpc-google-cloud-gkehub-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-gkehub-v1alpha - 0.51.0 + 0.52.0-SNAPSHOT grpc-google-cloud-gkehub-v1alpha GRPC library for google-cloud-gkehub com.google.cloud google-cloud-gkehub-parent - 1.45.0 + 1.46.0-SNAPSHOT diff --git a/java-gkehub/grpc-google-cloud-gkehub-v1beta/pom.xml b/java-gkehub/grpc-google-cloud-gkehub-v1beta/pom.xml index fee797b88429..d075179c420d 100644 --- a/java-gkehub/grpc-google-cloud-gkehub-v1beta/pom.xml +++ b/java-gkehub/grpc-google-cloud-gkehub-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-gkehub-v1beta - 0.51.0 + 0.52.0-SNAPSHOT grpc-google-cloud-gkehub-v1beta GRPC library for google-cloud-gkehub com.google.cloud google-cloud-gkehub-parent - 1.45.0 + 1.46.0-SNAPSHOT diff --git a/java-gkehub/grpc-google-cloud-gkehub-v1beta1/pom.xml b/java-gkehub/grpc-google-cloud-gkehub-v1beta1/pom.xml index 0fbef974ca66..a2392b1c6e6e 100644 --- a/java-gkehub/grpc-google-cloud-gkehub-v1beta1/pom.xml +++ b/java-gkehub/grpc-google-cloud-gkehub-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-gkehub-v1beta1 - 0.51.0 + 0.52.0-SNAPSHOT grpc-google-cloud-gkehub-v1beta1 GRPC library for google-cloud-gkehub com.google.cloud google-cloud-gkehub-parent - 1.45.0 + 1.46.0-SNAPSHOT diff --git a/java-gkehub/pom.xml b/java-gkehub/pom.xml index 92c8885cd8ac..709b77767026 100644 --- a/java-gkehub/pom.xml +++ b/java-gkehub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-gkehub-parent pom - 1.45.0 + 1.46.0-SNAPSHOT Google GKE Hub API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,47 +29,47 @@ com.google.cloud google-cloud-gkehub - 1.45.0 + 1.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-gkehub-v1beta - 0.51.0 + 0.52.0-SNAPSHOT com.google.api.grpc proto-google-cloud-gkehub-v1alpha - 0.51.0 + 0.52.0-SNAPSHOT com.google.api.grpc proto-google-cloud-gkehub-v1 - 1.45.0 + 1.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-gkehub-v1beta - 0.51.0 + 0.52.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-gkehub-v1alpha - 0.51.0 + 0.52.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-gkehub-v1 - 1.45.0 + 1.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-gkehub-v1beta1 - 0.51.0 + 0.52.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-gkehub-v1beta1 - 0.51.0 + 0.52.0-SNAPSHOT diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/pom.xml b/java-gkehub/proto-google-cloud-gkehub-v1/pom.xml index 8ab187217082..55939dae8c5e 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/pom.xml +++ b/java-gkehub/proto-google-cloud-gkehub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-gkehub-v1 - 1.45.0 + 1.46.0-SNAPSHOT proto-google-cloud-gkehub-v1 Proto library for google-cloud-gkehub com.google.cloud google-cloud-gkehub-parent - 1.45.0 + 1.46.0-SNAPSHOT diff --git a/java-gkehub/proto-google-cloud-gkehub-v1alpha/pom.xml b/java-gkehub/proto-google-cloud-gkehub-v1alpha/pom.xml index 6f09e1cf729e..5040ff5d097d 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1alpha/pom.xml +++ b/java-gkehub/proto-google-cloud-gkehub-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-gkehub-v1alpha - 0.51.0 + 0.52.0-SNAPSHOT proto-google-cloud-gkehub-v1alpha Proto library for google-cloud-gkehub com.google.cloud google-cloud-gkehub-parent - 1.45.0 + 1.46.0-SNAPSHOT diff --git a/java-gkehub/proto-google-cloud-gkehub-v1beta/pom.xml b/java-gkehub/proto-google-cloud-gkehub-v1beta/pom.xml index a977804098cc..d590f60e5b0c 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1beta/pom.xml +++ b/java-gkehub/proto-google-cloud-gkehub-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-gkehub-v1beta - 0.51.0 + 0.52.0-SNAPSHOT proto-google-cloud-gkehub-v1beta Proto library for google-cloud-gkehub com.google.cloud google-cloud-gkehub-parent - 1.45.0 + 1.46.0-SNAPSHOT diff --git a/java-gkehub/proto-google-cloud-gkehub-v1beta1/pom.xml b/java-gkehub/proto-google-cloud-gkehub-v1beta1/pom.xml index 108ef1bae90e..4aaa9f60fb74 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1beta1/pom.xml +++ b/java-gkehub/proto-google-cloud-gkehub-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-gkehub-v1beta1 - 0.51.0 + 0.52.0-SNAPSHOT proto-google-cloud-gkehub-v1beta1 Proto library for google-cloud-gkehub com.google.cloud google-cloud-gkehub-parent - 1.45.0 + 1.46.0-SNAPSHOT diff --git a/java-grafeas/pom.xml b/java-grafeas/pom.xml index 9094f456a513..cd1d183cb662 100644 --- a/java-grafeas/pom.xml +++ b/java-grafeas/pom.xml @@ -5,7 +5,7 @@ 4.0.0 io.grafeas grafeas - 2.46.0 + 2.47.0-SNAPSHOT jar Grafeas Client @@ -15,7 +15,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-gsuite-addons/google-cloud-gsuite-addons-bom/pom.xml b/java-gsuite-addons/google-cloud-gsuite-addons-bom/pom.xml index c41fa71c3d07..bca500adfff4 100644 --- a/java-gsuite-addons/google-cloud-gsuite-addons-bom/pom.xml +++ b/java-gsuite-addons/google-cloud-gsuite-addons-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-gsuite-addons-bom - 2.45.0 + 2.46.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,22 +27,22 @@ com.google.cloud google-cloud-gsuite-addons - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-gsuite-addons-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-gsuite-addons-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc proto-google-apps-script-type-protos - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-gsuite-addons/google-cloud-gsuite-addons/pom.xml b/java-gsuite-addons/google-cloud-gsuite-addons/pom.xml index 9a8961268e1f..92ae39c5092e 100644 --- a/java-gsuite-addons/google-cloud-gsuite-addons/pom.xml +++ b/java-gsuite-addons/google-cloud-gsuite-addons/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-gsuite-addons - 2.45.0 + 2.46.0-SNAPSHOT jar Google Google Workspace Add-ons API Google Workspace Add-ons API are customized applications that integrate with Google Workspace productivity applications. com.google.cloud google-cloud-gsuite-addons-parent - 2.45.0 + 2.46.0-SNAPSHOT google-cloud-gsuite-addons diff --git a/java-gsuite-addons/grpc-google-cloud-gsuite-addons-v1/pom.xml b/java-gsuite-addons/grpc-google-cloud-gsuite-addons-v1/pom.xml index 9b751de87cf6..58fa9db97fde 100644 --- a/java-gsuite-addons/grpc-google-cloud-gsuite-addons-v1/pom.xml +++ b/java-gsuite-addons/grpc-google-cloud-gsuite-addons-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-gsuite-addons-v1 - 2.45.0 + 2.46.0-SNAPSHOT grpc-google-cloud-gsuite-addons-v1 GRPC library for google-cloud-gsuite-addons com.google.cloud google-cloud-gsuite-addons-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-gsuite-addons/pom.xml b/java-gsuite-addons/pom.xml index 94ea2506dcad..4007088b948d 100644 --- a/java-gsuite-addons/pom.xml +++ b/java-gsuite-addons/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-gsuite-addons-parent pom - 2.45.0 + 2.46.0-SNAPSHOT Google Google Workspace Add-ons API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,22 +29,22 @@ com.google.cloud google-cloud-gsuite-addons - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc proto-google-apps-script-type-protos - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-gsuite-addons-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-gsuite-addons-v1 - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-gsuite-addons/proto-google-apps-script-type-protos/pom.xml b/java-gsuite-addons/proto-google-apps-script-type-protos/pom.xml index 3ca5ca16d0a5..5674d26c74f4 100644 --- a/java-gsuite-addons/proto-google-apps-script-type-protos/pom.xml +++ b/java-gsuite-addons/proto-google-apps-script-type-protos/pom.xml @@ -5,13 +5,13 @@ com.google.cloud google-cloud-gsuite-addons-parent - 2.45.0 + 2.46.0-SNAPSHOT 4.0.0 com.google.api.grpc proto-google-apps-script-type-protos proto-google-apps-script-type-protos - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/pom.xml b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/pom.xml index c79fd6e1c38e..af21dcc12b37 100644 --- a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/pom.xml +++ b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-gsuite-addons-v1 - 2.45.0 + 2.46.0-SNAPSHOT proto-google-cloud-gsuite-addons-v1 Proto library for google-cloud-gsuite-addons com.google.cloud google-cloud-gsuite-addons-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-iam-admin/google-iam-admin-bom/pom.xml b/java-iam-admin/google-iam-admin-bom/pom.xml index bcbec6e174f6..4bd9b77d1781 100644 --- a/java-iam-admin/google-iam-admin-bom/pom.xml +++ b/java-iam-admin/google-iam-admin-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-iam-admin-bom - 3.40.0 + 3.41.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-iam-admin - 3.40.0 + 3.41.0-SNAPSHOT com.google.api.grpc grpc-google-iam-admin-v1 - 3.40.0 + 3.41.0-SNAPSHOT com.google.api.grpc proto-google-iam-admin-v1 - 3.40.0 + 3.41.0-SNAPSHOT diff --git a/java-iam-admin/google-iam-admin/pom.xml b/java-iam-admin/google-iam-admin/pom.xml index 6c4ec414fd7d..a9350606c4a5 100644 --- a/java-iam-admin/google-iam-admin/pom.xml +++ b/java-iam-admin/google-iam-admin/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-iam-admin - 3.40.0 + 3.41.0-SNAPSHOT jar Google IAM Admin API IAM Admin API you to manage your Service Accounts and IAM bindings. com.google.cloud google-iam-admin-parent - 3.40.0 + 3.41.0-SNAPSHOT google-iam-admin diff --git a/java-iam-admin/grpc-google-iam-admin-v1/pom.xml b/java-iam-admin/grpc-google-iam-admin-v1/pom.xml index a552e9bdfe9f..4679f77468c7 100644 --- a/java-iam-admin/grpc-google-iam-admin-v1/pom.xml +++ b/java-iam-admin/grpc-google-iam-admin-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-iam-admin-v1 - 3.40.0 + 3.41.0-SNAPSHOT grpc-google-iam-admin-v1 GRPC library for google-iam-admin com.google.cloud google-iam-admin-parent - 3.40.0 + 3.41.0-SNAPSHOT diff --git a/java-iam-admin/pom.xml b/java-iam-admin/pom.xml index ab5be888f009..2cf98fdfa090 100644 --- a/java-iam-admin/pom.xml +++ b/java-iam-admin/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-iam-admin-parent pom - 3.40.0 + 3.41.0-SNAPSHOT Google IAM Admin API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-iam-admin - 3.40.0 + 3.41.0-SNAPSHOT com.google.api.grpc grpc-google-iam-admin-v1 - 3.40.0 + 3.41.0-SNAPSHOT com.google.api.grpc proto-google-iam-admin-v1 - 3.40.0 + 3.41.0-SNAPSHOT diff --git a/java-iam-admin/proto-google-iam-admin-v1/pom.xml b/java-iam-admin/proto-google-iam-admin-v1/pom.xml index 08f8291d35db..03579ac52c4d 100644 --- a/java-iam-admin/proto-google-iam-admin-v1/pom.xml +++ b/java-iam-admin/proto-google-iam-admin-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-iam-admin-v1 - 3.40.0 + 3.41.0-SNAPSHOT proto-google-iam-admin-v1 Proto library for google-iam-admin com.google.cloud google-iam-admin-parent - 3.40.0 + 3.41.0-SNAPSHOT diff --git a/java-iam/google-iam-policy-bom/pom.xml b/java-iam/google-iam-policy-bom/pom.xml index 526a9ec25b1c..056e86167352 100644 --- a/java-iam/google-iam-policy-bom/pom.xml +++ b/java-iam/google-iam-policy-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-iam-policy-bom - 1.43.0 + 1.44.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,7 +27,7 @@ com.google.cloud google-iam-policy - 1.43.0 + 1.44.0-SNAPSHOT diff --git a/java-iam/google-iam-policy/pom.xml b/java-iam/google-iam-policy/pom.xml index a8687fa503d2..83b025f510d8 100644 --- a/java-iam/google-iam-policy/pom.xml +++ b/java-iam/google-iam-policy/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-iam-policy - 1.43.0 + 1.44.0-SNAPSHOT jar Google IAM Policy Eventarc lets you asynchronously deliver events from Google services, SaaS, and your own apps using loosely coupled services that react to state changes. com.google.cloud google-iam-policy-parent - 1.43.0 + 1.44.0-SNAPSHOT google-iam-policy diff --git a/java-iam/pom.xml b/java-iam/pom.xml index d0bf3eaaf8db..faa8b2854b58 100644 --- a/java-iam/pom.xml +++ b/java-iam/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-iam-policy-parent pom - 1.43.0 + 1.44.0-SNAPSHOT Google IAM Policy Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-iamcredentials/google-cloud-iamcredentials-bom/pom.xml b/java-iamcredentials/google-cloud-iamcredentials-bom/pom.xml index 33b4285f90c1..c0758882cb51 100644 --- a/java-iamcredentials/google-cloud-iamcredentials-bom/pom.xml +++ b/java-iamcredentials/google-cloud-iamcredentials-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-iamcredentials-bom - 2.45.0 + 2.46.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-iamcredentials - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-iamcredentials-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-iamcredentials-v1 - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-iamcredentials/google-cloud-iamcredentials/pom.xml b/java-iamcredentials/google-cloud-iamcredentials/pom.xml index 1d7800b46b4e..6b9562d81d20 100644 --- a/java-iamcredentials/google-cloud-iamcredentials/pom.xml +++ b/java-iamcredentials/google-cloud-iamcredentials/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-iamcredentials - 2.45.0 + 2.46.0-SNAPSHOT jar Google Cloud IAM Service Account Credentials Java idiomatic client for Google Cloud IAM Service Account Credentials com.google.cloud google-cloud-iamcredentials-parent - 2.45.0 + 2.46.0-SNAPSHOT google-cloud-iamcredentials diff --git a/java-iamcredentials/grpc-google-cloud-iamcredentials-v1/pom.xml b/java-iamcredentials/grpc-google-cloud-iamcredentials-v1/pom.xml index 2c169883d932..a22936038a9b 100644 --- a/java-iamcredentials/grpc-google-cloud-iamcredentials-v1/pom.xml +++ b/java-iamcredentials/grpc-google-cloud-iamcredentials-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-iamcredentials-v1 - 2.45.0 + 2.46.0-SNAPSHOT grpc-google-cloud-iamcredentials-v1 GRPC library for grpc-google-cloud-iamcredentials-v1 com.google.cloud google-cloud-iamcredentials-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-iamcredentials/pom.xml b/java-iamcredentials/pom.xml index 78aa0d263250..9278e8a76084 100644 --- a/java-iamcredentials/pom.xml +++ b/java-iamcredentials/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-iamcredentials-parent pom - 2.45.0 + 2.46.0-SNAPSHOT Google Cloud IAM Service Account Credentials Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.api.grpc proto-google-cloud-iamcredentials-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-iamcredentials-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.cloud google-cloud-iamcredentials - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-iamcredentials/proto-google-cloud-iamcredentials-v1/pom.xml b/java-iamcredentials/proto-google-cloud-iamcredentials-v1/pom.xml index e26422c4859a..2f8a64b3401f 100644 --- a/java-iamcredentials/proto-google-cloud-iamcredentials-v1/pom.xml +++ b/java-iamcredentials/proto-google-cloud-iamcredentials-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-iamcredentials-v1 - 2.45.0 + 2.46.0-SNAPSHOT proto-google-cloud-iamcredentials-v1 PROTO library for proto-google-cloud-iamcredentials-v1 com.google.cloud google-cloud-iamcredentials-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-iap/google-cloud-iap-bom/pom.xml b/java-iap/google-cloud-iap-bom/pom.xml index 60c3f8f04e7d..b4d0315bc12a 100644 --- a/java-iap/google-cloud-iap-bom/pom.xml +++ b/java-iap/google-cloud-iap-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-iap-bom - 0.1.0 + 0.2.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-iap - 0.1.0 + 0.2.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-iap-v1 - 0.1.0 + 0.2.0-SNAPSHOT com.google.api.grpc proto-google-cloud-iap-v1 - 0.1.0 + 0.2.0-SNAPSHOT diff --git a/java-iap/google-cloud-iap/pom.xml b/java-iap/google-cloud-iap/pom.xml index d7c18191c43c..365c8da3ac7d 100644 --- a/java-iap/google-cloud-iap/pom.xml +++ b/java-iap/google-cloud-iap/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-iap - 0.1.0 + 0.2.0-SNAPSHOT jar Google Cloud Identity-Aware Proxy API Cloud Identity-Aware Proxy API Controls access to cloud applications running on Google Cloud Platform. com.google.cloud google-cloud-iap-parent - 0.1.0 + 0.2.0-SNAPSHOT google-cloud-iap diff --git a/java-iap/grpc-google-cloud-iap-v1/pom.xml b/java-iap/grpc-google-cloud-iap-v1/pom.xml index 4f5074084657..bfb45c657992 100644 --- a/java-iap/grpc-google-cloud-iap-v1/pom.xml +++ b/java-iap/grpc-google-cloud-iap-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-iap-v1 - 0.1.0 + 0.2.0-SNAPSHOT grpc-google-cloud-iap-v1 GRPC library for google-cloud-iap com.google.cloud google-cloud-iap-parent - 0.1.0 + 0.2.0-SNAPSHOT diff --git a/java-iap/pom.xml b/java-iap/pom.xml index d4d2aa496626..05a5d88eaaa7 100644 --- a/java-iap/pom.xml +++ b/java-iap/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-iap-parent pom - 0.1.0 + 0.2.0-SNAPSHOT Google Cloud Identity-Aware Proxy API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-iap - 0.1.0 + 0.2.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-iap-v1 - 0.1.0 + 0.2.0-SNAPSHOT com.google.api.grpc proto-google-cloud-iap-v1 - 0.1.0 + 0.2.0-SNAPSHOT diff --git a/java-iap/proto-google-cloud-iap-v1/pom.xml b/java-iap/proto-google-cloud-iap-v1/pom.xml index 38d3a64eeb50..f70f1d24d350 100644 --- a/java-iap/proto-google-cloud-iap-v1/pom.xml +++ b/java-iap/proto-google-cloud-iap-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-iap-v1 - 0.1.0 + 0.2.0-SNAPSHOT proto-google-cloud-iap-v1 Proto library for google-cloud-iap com.google.cloud google-cloud-iap-parent - 0.1.0 + 0.2.0-SNAPSHOT diff --git a/java-ids/google-cloud-ids-bom/pom.xml b/java-ids/google-cloud-ids-bom/pom.xml index e051ebf626b1..87906677c9dc 100644 --- a/java-ids/google-cloud-ids-bom/pom.xml +++ b/java-ids/google-cloud-ids-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-ids-bom - 1.44.0 + 1.45.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-ids - 1.44.0 + 1.45.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-ids-v1 - 1.44.0 + 1.45.0-SNAPSHOT com.google.api.grpc proto-google-cloud-ids-v1 - 1.44.0 + 1.45.0-SNAPSHOT diff --git a/java-ids/google-cloud-ids/pom.xml b/java-ids/google-cloud-ids/pom.xml index c1c6e0fb8804..500d4cb6212d 100644 --- a/java-ids/google-cloud-ids/pom.xml +++ b/java-ids/google-cloud-ids/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-ids - 1.44.0 + 1.45.0-SNAPSHOT jar Google Intrusion Detection System Intrusion Detection System monitors your networks, and it alerts you when it detects malicious activity. Cloud IDS is powered by Palo Alto Networks. com.google.cloud google-cloud-ids-parent - 1.44.0 + 1.45.0-SNAPSHOT google-cloud-ids diff --git a/java-ids/grpc-google-cloud-ids-v1/pom.xml b/java-ids/grpc-google-cloud-ids-v1/pom.xml index 2f29c559ecf3..299443fa7356 100644 --- a/java-ids/grpc-google-cloud-ids-v1/pom.xml +++ b/java-ids/grpc-google-cloud-ids-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-ids-v1 - 1.44.0 + 1.45.0-SNAPSHOT grpc-google-cloud-ids-v1 GRPC library for google-cloud-ids com.google.cloud google-cloud-ids-parent - 1.44.0 + 1.45.0-SNAPSHOT diff --git a/java-ids/pom.xml b/java-ids/pom.xml index c34cb8d0860e..7e9af580476b 100644 --- a/java-ids/pom.xml +++ b/java-ids/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-ids-parent pom - 1.44.0 + 1.45.0-SNAPSHOT Google Intrusion Detection System Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-ids - 1.44.0 + 1.45.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-ids-v1 - 1.44.0 + 1.45.0-SNAPSHOT com.google.api.grpc proto-google-cloud-ids-v1 - 1.44.0 + 1.45.0-SNAPSHOT diff --git a/java-ids/proto-google-cloud-ids-v1/pom.xml b/java-ids/proto-google-cloud-ids-v1/pom.xml index ae0ebf587c06..4154fece615b 100644 --- a/java-ids/proto-google-cloud-ids-v1/pom.xml +++ b/java-ids/proto-google-cloud-ids-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-ids-v1 - 1.44.0 + 1.45.0-SNAPSHOT proto-google-cloud-ids-v1 Proto library for google-cloud-ids com.google.cloud google-cloud-ids-parent - 1.44.0 + 1.45.0-SNAPSHOT diff --git a/java-infra-manager/google-cloud-infra-manager-bom/pom.xml b/java-infra-manager/google-cloud-infra-manager-bom/pom.xml index 23be46b47915..b3123542e1f9 100644 --- a/java-infra-manager/google-cloud-infra-manager-bom/pom.xml +++ b/java-infra-manager/google-cloud-infra-manager-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-infra-manager-bom - 0.22.0 + 0.23.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-infra-manager - 0.22.0 + 0.23.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-infra-manager-v1 - 0.22.0 + 0.23.0-SNAPSHOT com.google.api.grpc proto-google-cloud-infra-manager-v1 - 0.22.0 + 0.23.0-SNAPSHOT diff --git a/java-infra-manager/google-cloud-infra-manager/pom.xml b/java-infra-manager/google-cloud-infra-manager/pom.xml index c5795250a3d2..818cd8472d02 100644 --- a/java-infra-manager/google-cloud-infra-manager/pom.xml +++ b/java-infra-manager/google-cloud-infra-manager/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-infra-manager - 0.22.0 + 0.23.0-SNAPSHOT jar Google Infrastructure Manager API Infrastructure Manager API Creates and manages Google Cloud Platform resources and infrastructure. com.google.cloud google-cloud-infra-manager-parent - 0.22.0 + 0.23.0-SNAPSHOT google-cloud-infra-manager diff --git a/java-infra-manager/grpc-google-cloud-infra-manager-v1/pom.xml b/java-infra-manager/grpc-google-cloud-infra-manager-v1/pom.xml index 2b24324710f2..d0f822035c6d 100644 --- a/java-infra-manager/grpc-google-cloud-infra-manager-v1/pom.xml +++ b/java-infra-manager/grpc-google-cloud-infra-manager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-infra-manager-v1 - 0.22.0 + 0.23.0-SNAPSHOT grpc-google-cloud-infra-manager-v1 GRPC library for google-cloud-infra-manager com.google.cloud google-cloud-infra-manager-parent - 0.22.0 + 0.23.0-SNAPSHOT diff --git a/java-infra-manager/pom.xml b/java-infra-manager/pom.xml index 5047ec4a309d..cc91c54e14d2 100644 --- a/java-infra-manager/pom.xml +++ b/java-infra-manager/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-infra-manager-parent pom - 0.22.0 + 0.23.0-SNAPSHOT Google Infrastructure Manager API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-infra-manager - 0.22.0 + 0.23.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-infra-manager-v1 - 0.22.0 + 0.23.0-SNAPSHOT com.google.api.grpc proto-google-cloud-infra-manager-v1 - 0.22.0 + 0.23.0-SNAPSHOT diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/pom.xml b/java-infra-manager/proto-google-cloud-infra-manager-v1/pom.xml index 8f59bdf86502..867fbb344992 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/pom.xml +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-infra-manager-v1 - 0.22.0 + 0.23.0-SNAPSHOT proto-google-cloud-infra-manager-v1 Proto library for google-cloud-infra-manager com.google.cloud google-cloud-infra-manager-parent - 0.22.0 + 0.23.0-SNAPSHOT diff --git a/java-iot/google-cloud-iot-bom/pom.xml b/java-iot/google-cloud-iot-bom/pom.xml index 6c1773c51ab8..d9f394b11b0e 100644 --- a/java-iot/google-cloud-iot-bom/pom.xml +++ b/java-iot/google-cloud-iot-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-iot-bom - 2.45.0 + 2.46.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-iot - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-iot-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-iot-v1 - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-iot/google-cloud-iot/pom.xml b/java-iot/google-cloud-iot/pom.xml index 681fd3c489a6..13512367bce9 100644 --- a/java-iot/google-cloud-iot/pom.xml +++ b/java-iot/google-cloud-iot/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-iot - 2.45.0 + 2.46.0-SNAPSHOT jar Google Cloud IoT Core Java idiomatic client for Google Cloud IoT Core com.google.cloud google-cloud-iot-parent - 2.45.0 + 2.46.0-SNAPSHOT google-cloud-iot diff --git a/java-iot/grpc-google-cloud-iot-v1/pom.xml b/java-iot/grpc-google-cloud-iot-v1/pom.xml index 7242e52e482e..3f348847fc42 100644 --- a/java-iot/grpc-google-cloud-iot-v1/pom.xml +++ b/java-iot/grpc-google-cloud-iot-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-iot-v1 - 2.45.0 + 2.46.0-SNAPSHOT grpc-google-cloud-iot-v1 GRPC library for grpc-google-cloud-iot-v1 com.google.cloud google-cloud-iot-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-iot/pom.xml b/java-iot/pom.xml index 23b4841c71ac..fcc35e681469 100644 --- a/java-iot/pom.xml +++ b/java-iot/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-iot-parent pom - 2.45.0 + 2.46.0-SNAPSHOT Google Cloud IoT Core Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.api.grpc proto-google-cloud-iot-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-iot-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.cloud google-cloud-iot - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-iot/proto-google-cloud-iot-v1/pom.xml b/java-iot/proto-google-cloud-iot-v1/pom.xml index da7e918a591d..a05576bf8582 100644 --- a/java-iot/proto-google-cloud-iot-v1/pom.xml +++ b/java-iot/proto-google-cloud-iot-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-iot-v1 - 2.45.0 + 2.46.0-SNAPSHOT proto-google-cloud-iot-v1 PROTO library for proto-google-cloud-iot-v1 com.google.cloud google-cloud-iot-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-kms/google-cloud-kms-bom/pom.xml b/java-kms/google-cloud-kms-bom/pom.xml index 08f868bc3551..d91aa0d160ef 100644 --- a/java-kms/google-cloud-kms-bom/pom.xml +++ b/java-kms/google-cloud-kms-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-kms-bom - 2.48.0 + 2.49.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-kms - 2.48.0 + 2.49.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-kms-v1 - 0.139.0 + 0.140.0-SNAPSHOT com.google.api.grpc proto-google-cloud-kms-v1 - 0.139.0 + 0.140.0-SNAPSHOT diff --git a/java-kms/google-cloud-kms/pom.xml b/java-kms/google-cloud-kms/pom.xml index 99a6ef8edf21..54c3548ff440 100644 --- a/java-kms/google-cloud-kms/pom.xml +++ b/java-kms/google-cloud-kms/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-kms - 2.48.0 + 2.49.0-SNAPSHOT jar Google Cloud KMS Java idiomatic client for Google Cloud KMS com.google.cloud google-cloud-kms-parent - 2.48.0 + 2.49.0-SNAPSHOT google-cloud-kms diff --git a/java-kms/grpc-google-cloud-kms-v1/pom.xml b/java-kms/grpc-google-cloud-kms-v1/pom.xml index 520ae2931541..b3b652d9d7ae 100644 --- a/java-kms/grpc-google-cloud-kms-v1/pom.xml +++ b/java-kms/grpc-google-cloud-kms-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-kms-v1 - 0.139.0 + 0.140.0-SNAPSHOT grpc-google-cloud-kms-v1 GRPC library for grpc-google-cloud-kms-v1 com.google.cloud google-cloud-kms-parent - 2.48.0 + 2.49.0-SNAPSHOT diff --git a/java-kms/pom.xml b/java-kms/pom.xml index d5c3b47205f7..4c5f93ca4b75 100644 --- a/java-kms/pom.xml +++ b/java-kms/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-kms-parent pom - 2.48.0 + 2.49.0-SNAPSHOT Google Cloud KMS Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,22 +29,22 @@ com.google.api.grpc proto-google-cloud-kms-v1 - 0.139.0 + 0.140.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-kms-v1 - 0.139.0 + 0.140.0-SNAPSHOT com.google.cloud google-cloud-kms - 2.48.0 + 2.49.0-SNAPSHOT com.google.cloud google-cloud-kms-bom - 2.48.0 + 2.49.0-SNAPSHOT diff --git a/java-kms/proto-google-cloud-kms-v1/pom.xml b/java-kms/proto-google-cloud-kms-v1/pom.xml index 05761fdfb0bf..1e9fc49d0756 100644 --- a/java-kms/proto-google-cloud-kms-v1/pom.xml +++ b/java-kms/proto-google-cloud-kms-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-kms-v1 - 0.139.0 + 0.140.0-SNAPSHOT proto-google-cloud-kms-v1 PROTO library for proto-google-cloud-kms-v1 com.google.cloud google-cloud-kms-parent - 2.48.0 + 2.49.0-SNAPSHOT diff --git a/java-kmsinventory/google-cloud-kmsinventory-bom/pom.xml b/java-kmsinventory/google-cloud-kmsinventory-bom/pom.xml index cb2608ffe8c0..0d4be6f42d77 100644 --- a/java-kmsinventory/google-cloud-kmsinventory-bom/pom.xml +++ b/java-kmsinventory/google-cloud-kmsinventory-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-kmsinventory-bom - 0.34.0 + 0.35.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-kmsinventory - 0.34.0 + 0.35.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-kmsinventory-v1 - 0.34.0 + 0.35.0-SNAPSHOT com.google.api.grpc proto-google-cloud-kmsinventory-v1 - 0.34.0 + 0.35.0-SNAPSHOT diff --git a/java-kmsinventory/google-cloud-kmsinventory/pom.xml b/java-kmsinventory/google-cloud-kmsinventory/pom.xml index b1d2245b9e97..4e8081c89674 100644 --- a/java-kmsinventory/google-cloud-kmsinventory/pom.xml +++ b/java-kmsinventory/google-cloud-kmsinventory/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-kmsinventory - 0.34.0 + 0.35.0-SNAPSHOT jar Google KMS Inventory API KMS Inventory API KMS Inventory API. com.google.cloud google-cloud-kmsinventory-parent - 0.34.0 + 0.35.0-SNAPSHOT google-cloud-kmsinventory diff --git a/java-kmsinventory/grpc-google-cloud-kmsinventory-v1/pom.xml b/java-kmsinventory/grpc-google-cloud-kmsinventory-v1/pom.xml index 19662160074f..30cabbc7d3b1 100644 --- a/java-kmsinventory/grpc-google-cloud-kmsinventory-v1/pom.xml +++ b/java-kmsinventory/grpc-google-cloud-kmsinventory-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-kmsinventory-v1 - 0.34.0 + 0.35.0-SNAPSHOT grpc-google-cloud-kmsinventory-v1 GRPC library for google-cloud-kmsinventory com.google.cloud google-cloud-kmsinventory-parent - 0.34.0 + 0.35.0-SNAPSHOT diff --git a/java-kmsinventory/pom.xml b/java-kmsinventory/pom.xml index 815e1ba009ef..eeec9936a5e3 100644 --- a/java-kmsinventory/pom.xml +++ b/java-kmsinventory/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-kmsinventory-parent pom - 0.34.0 + 0.35.0-SNAPSHOT Google KMS Inventory API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,22 +29,22 @@ com.google.cloud google-cloud-kmsinventory - 0.34.0 + 0.35.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-kmsinventory-v1 - 0.34.0 + 0.35.0-SNAPSHOT com.google.api.grpc proto-google-cloud-kmsinventory-v1 - 0.34.0 + 0.35.0-SNAPSHOT com.google.api.grpc proto-google-cloud-kms-v1 - 0.139.0 + 0.140.0-SNAPSHOT diff --git a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/pom.xml b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/pom.xml index b8b110e6b970..562ecdfc6f5c 100644 --- a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/pom.xml +++ b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-kmsinventory-v1 - 0.34.0 + 0.35.0-SNAPSHOT proto-google-cloud-kmsinventory-v1 Proto library for google-cloud-kmsinventory com.google.cloud google-cloud-kmsinventory-parent - 0.34.0 + 0.35.0-SNAPSHOT diff --git a/java-language/google-cloud-language-bom/pom.xml b/java-language/google-cloud-language-bom/pom.xml index d5b361cb1d7a..4dbba7d8efef 100644 --- a/java-language/google-cloud-language-bom/pom.xml +++ b/java-language/google-cloud-language-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-language-bom - 2.46.0 + 2.47.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -23,37 +23,37 @@ com.google.cloud google-cloud-language - 2.46.0 + 2.47.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-language-v1 - 2.46.0 + 2.47.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-language-v1beta2 - 0.133.0 + 0.134.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-language-v2 - 2.46.0 + 2.47.0-SNAPSHOT com.google.api.grpc proto-google-cloud-language-v1 - 2.46.0 + 2.47.0-SNAPSHOT com.google.api.grpc proto-google-cloud-language-v1beta2 - 0.133.0 + 0.134.0-SNAPSHOT com.google.api.grpc proto-google-cloud-language-v2 - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-language/google-cloud-language/pom.xml b/java-language/google-cloud-language/pom.xml index 024d64a8c47b..e112d39f67ce 100644 --- a/java-language/google-cloud-language/pom.xml +++ b/java-language/google-cloud-language/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-language - 2.46.0 + 2.47.0-SNAPSHOT jar Google Cloud Natural Language Java idiomatic client for Google Clould Natural Language com.google.cloud google-cloud-language-parent - 2.46.0 + 2.47.0-SNAPSHOT google-cloud-language diff --git a/java-language/grpc-google-cloud-language-v1/pom.xml b/java-language/grpc-google-cloud-language-v1/pom.xml index 28504ed34c52..a84d11f5612f 100644 --- a/java-language/grpc-google-cloud-language-v1/pom.xml +++ b/java-language/grpc-google-cloud-language-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-language-v1 - 2.46.0 + 2.47.0-SNAPSHOT grpc-google-cloud-language-v1 GRPC library for grpc-google-cloud-language-v1 com.google.cloud google-cloud-language-parent - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-language/grpc-google-cloud-language-v1beta2/pom.xml b/java-language/grpc-google-cloud-language-v1beta2/pom.xml index c4270d31cd40..26299e1e0dad 100644 --- a/java-language/grpc-google-cloud-language-v1beta2/pom.xml +++ b/java-language/grpc-google-cloud-language-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-language-v1beta2 - 0.133.0 + 0.134.0-SNAPSHOT grpc-google-cloud-language-v1beta2 GRPC library for grpc-google-cloud-language-v1beta2 com.google.cloud google-cloud-language-parent - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-language/grpc-google-cloud-language-v2/pom.xml b/java-language/grpc-google-cloud-language-v2/pom.xml index 39fe2748c416..3d39eddbeecc 100644 --- a/java-language/grpc-google-cloud-language-v2/pom.xml +++ b/java-language/grpc-google-cloud-language-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-language-v2 - 2.46.0 + 2.47.0-SNAPSHOT grpc-google-cloud-language-v2 GRPC library for google-cloud-language com.google.cloud google-cloud-language-parent - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-language/pom.xml b/java-language/pom.xml index 55c7a6c98ba6..eced2ffb3a83 100644 --- a/java-language/pom.xml +++ b/java-language/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-language-parent pom - 2.46.0 + 2.47.0-SNAPSHOT Google Cloud Natural Language Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.api.grpc proto-google-cloud-language-v1 - 2.46.0 + 2.47.0-SNAPSHOT com.google.api.grpc proto-google-cloud-language-v2 - 2.46.0 + 2.47.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-language-v2 - 2.46.0 + 2.47.0-SNAPSHOT com.google.api.grpc proto-google-cloud-language-v1beta2 - 0.133.0 + 0.134.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-language-v1 - 2.46.0 + 2.47.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-language-v1beta2 - 0.133.0 + 0.134.0-SNAPSHOT com.google.cloud google-cloud-language - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-language/proto-google-cloud-language-v1/pom.xml b/java-language/proto-google-cloud-language-v1/pom.xml index b7a7ea48f1d3..9435fffd12c2 100644 --- a/java-language/proto-google-cloud-language-v1/pom.xml +++ b/java-language/proto-google-cloud-language-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-language-v1 - 2.46.0 + 2.47.0-SNAPSHOT proto-google-cloud-language-v1 PROTO library for proto-google-cloud-language-v1 com.google.cloud google-cloud-language-parent - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-language/proto-google-cloud-language-v1beta2/pom.xml b/java-language/proto-google-cloud-language-v1beta2/pom.xml index 1a9268c17b00..10b246f205b2 100644 --- a/java-language/proto-google-cloud-language-v1beta2/pom.xml +++ b/java-language/proto-google-cloud-language-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-language-v1beta2 - 0.133.0 + 0.134.0-SNAPSHOT proto-google-cloud-language-v1beta2 PROTO library for proto-google-cloud-language-v1beta2 com.google.cloud google-cloud-language-parent - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-language/proto-google-cloud-language-v2/pom.xml b/java-language/proto-google-cloud-language-v2/pom.xml index 7177caf21b81..13a093614428 100644 --- a/java-language/proto-google-cloud-language-v2/pom.xml +++ b/java-language/proto-google-cloud-language-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-language-v2 - 2.46.0 + 2.47.0-SNAPSHOT proto-google-cloud-language-v2 Proto library for google-cloud-language com.google.cloud google-cloud-language-parent - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-life-sciences/google-cloud-life-sciences-bom/pom.xml b/java-life-sciences/google-cloud-life-sciences-bom/pom.xml index 333a2cf0adcd..fc37a59528d3 100644 --- a/java-life-sciences/google-cloud-life-sciences-bom/pom.xml +++ b/java-life-sciences/google-cloud-life-sciences-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-life-sciences-bom - 0.47.0 + 0.48.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-life-sciences - 0.47.0 + 0.48.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-life-sciences-v2beta - 0.47.0 + 0.48.0-SNAPSHOT com.google.api.grpc proto-google-cloud-life-sciences-v2beta - 0.47.0 + 0.48.0-SNAPSHOT diff --git a/java-life-sciences/google-cloud-life-sciences/pom.xml b/java-life-sciences/google-cloud-life-sciences/pom.xml index 8680919b1fbe..5ff6d95728b9 100644 --- a/java-life-sciences/google-cloud-life-sciences/pom.xml +++ b/java-life-sciences/google-cloud-life-sciences/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-life-sciences - 0.47.0 + 0.48.0-SNAPSHOT jar Google Cloud Life Sciences Cloud Life Sciences is a suite of services and tools for managing, processing, and transforming life sciences data. com.google.cloud google-cloud-life-sciences-parent - 0.47.0 + 0.48.0-SNAPSHOT google-cloud-life-sciences diff --git a/java-life-sciences/grpc-google-cloud-life-sciences-v2beta/pom.xml b/java-life-sciences/grpc-google-cloud-life-sciences-v2beta/pom.xml index 2ab635ab3771..04094a1f7eb1 100644 --- a/java-life-sciences/grpc-google-cloud-life-sciences-v2beta/pom.xml +++ b/java-life-sciences/grpc-google-cloud-life-sciences-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-life-sciences-v2beta - 0.47.0 + 0.48.0-SNAPSHOT grpc-google-cloud-life-sciences-v2beta GRPC library for google-cloud-life-sciences com.google.cloud google-cloud-life-sciences-parent - 0.47.0 + 0.48.0-SNAPSHOT diff --git a/java-life-sciences/pom.xml b/java-life-sciences/pom.xml index f9015c1955ac..01402390731b 100644 --- a/java-life-sciences/pom.xml +++ b/java-life-sciences/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-life-sciences-parent pom - 0.47.0 + 0.48.0-SNAPSHOT Google Cloud Life Sciences Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-life-sciences - 0.47.0 + 0.48.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-life-sciences-v2beta - 0.47.0 + 0.48.0-SNAPSHOT com.google.api.grpc proto-google-cloud-life-sciences-v2beta - 0.47.0 + 0.48.0-SNAPSHOT diff --git a/java-life-sciences/proto-google-cloud-life-sciences-v2beta/pom.xml b/java-life-sciences/proto-google-cloud-life-sciences-v2beta/pom.xml index 63e9f16b7936..022120bc7aaa 100644 --- a/java-life-sciences/proto-google-cloud-life-sciences-v2beta/pom.xml +++ b/java-life-sciences/proto-google-cloud-life-sciences-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-life-sciences-v2beta - 0.47.0 + 0.48.0-SNAPSHOT proto-google-cloud-life-sciences-v2beta Proto library for google-cloud-life-sciences com.google.cloud google-cloud-life-sciences-parent - 0.47.0 + 0.48.0-SNAPSHOT diff --git a/java-managed-identities/google-cloud-managed-identities-bom/pom.xml b/java-managed-identities/google-cloud-managed-identities-bom/pom.xml index d487c3883d28..77ecd0a69893 100644 --- a/java-managed-identities/google-cloud-managed-identities-bom/pom.xml +++ b/java-managed-identities/google-cloud-managed-identities-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-managed-identities-bom - 1.43.0 + 1.44.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-managed-identities - 1.43.0 + 1.44.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-managed-identities-v1 - 1.43.0 + 1.44.0-SNAPSHOT com.google.api.grpc proto-google-cloud-managed-identities-v1 - 1.43.0 + 1.44.0-SNAPSHOT diff --git a/java-managed-identities/google-cloud-managed-identities/pom.xml b/java-managed-identities/google-cloud-managed-identities/pom.xml index 6239ec9f78d8..6e736b19c07b 100644 --- a/java-managed-identities/google-cloud-managed-identities/pom.xml +++ b/java-managed-identities/google-cloud-managed-identities/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-managed-identities - 1.43.0 + 1.44.0-SNAPSHOT jar Google Managed Service for Microsoft Active Directory is a highly available, hardened Google Cloud service running actual Microsoft AD that enables you to manage authentication and authorization for your AD-dependent workloads, automate AD server maintenance and security configuration, and connect your on-premises AD domain to the cloud. com.google.cloud google-cloud-managed-identities-parent - 1.43.0 + 1.44.0-SNAPSHOT google-cloud-managed-identities diff --git a/java-managed-identities/grpc-google-cloud-managed-identities-v1/pom.xml b/java-managed-identities/grpc-google-cloud-managed-identities-v1/pom.xml index 65220ab7e3a6..e3a54561db38 100644 --- a/java-managed-identities/grpc-google-cloud-managed-identities-v1/pom.xml +++ b/java-managed-identities/grpc-google-cloud-managed-identities-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-managed-identities-v1 - 1.43.0 + 1.44.0-SNAPSHOT grpc-google-cloud-managed-identities-v1 GRPC library for google-cloud-managed-identities com.google.cloud google-cloud-managed-identities-parent - 1.43.0 + 1.44.0-SNAPSHOT diff --git a/java-managed-identities/pom.xml b/java-managed-identities/pom.xml index 98ddc1c0ba2a..a686b7c47207 100644 --- a/java-managed-identities/pom.xml +++ b/java-managed-identities/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-managed-identities-parent pom - 1.43.0 + 1.44.0-SNAPSHOT Google Managed Service for Microsoft Active Directory Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-managed-identities - 1.43.0 + 1.44.0-SNAPSHOT com.google.api.grpc proto-google-cloud-managed-identities-v1 - 1.43.0 + 1.44.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-managed-identities-v1 - 1.43.0 + 1.44.0-SNAPSHOT diff --git a/java-managed-identities/proto-google-cloud-managed-identities-v1/pom.xml b/java-managed-identities/proto-google-cloud-managed-identities-v1/pom.xml index 1ecd9449f6db..1adec58e1c15 100644 --- a/java-managed-identities/proto-google-cloud-managed-identities-v1/pom.xml +++ b/java-managed-identities/proto-google-cloud-managed-identities-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-managed-identities-v1 - 1.43.0 + 1.44.0-SNAPSHOT proto-google-cloud-managed-identities-v1 Proto library for google-cloud-managed-identities com.google.cloud google-cloud-managed-identities-parent - 1.43.0 + 1.44.0-SNAPSHOT diff --git a/java-managedkafka/google-cloud-managedkafka-bom/pom.xml b/java-managedkafka/google-cloud-managedkafka-bom/pom.xml index 8143406be6d3..45d382abf67a 100644 --- a/java-managedkafka/google-cloud-managedkafka-bom/pom.xml +++ b/java-managedkafka/google-cloud-managedkafka-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-managedkafka-bom - 0.1.0 + 0.2.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-managedkafka - 0.1.0 + 0.2.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-managedkafka-v1 - 0.1.0 + 0.2.0-SNAPSHOT com.google.api.grpc proto-google-cloud-managedkafka-v1 - 0.1.0 + 0.2.0-SNAPSHOT diff --git a/java-managedkafka/google-cloud-managedkafka/pom.xml b/java-managedkafka/google-cloud-managedkafka/pom.xml index 31b23ca1b52e..dd1c1f5915b8 100644 --- a/java-managedkafka/google-cloud-managedkafka/pom.xml +++ b/java-managedkafka/google-cloud-managedkafka/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-managedkafka - 0.1.0 + 0.2.0-SNAPSHOT jar Google Apache Kafka for BigQuery API Apache Kafka for BigQuery API Manage Apache Kafka clusters and resources. com.google.cloud google-cloud-managedkafka-parent - 0.1.0 + 0.2.0-SNAPSHOT google-cloud-managedkafka diff --git a/java-managedkafka/grpc-google-cloud-managedkafka-v1/pom.xml b/java-managedkafka/grpc-google-cloud-managedkafka-v1/pom.xml index 221bdb439965..6bc0e5453694 100644 --- a/java-managedkafka/grpc-google-cloud-managedkafka-v1/pom.xml +++ b/java-managedkafka/grpc-google-cloud-managedkafka-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-managedkafka-v1 - 0.1.0 + 0.2.0-SNAPSHOT grpc-google-cloud-managedkafka-v1 GRPC library for google-cloud-managedkafka com.google.cloud google-cloud-managedkafka-parent - 0.1.0 + 0.2.0-SNAPSHOT diff --git a/java-managedkafka/pom.xml b/java-managedkafka/pom.xml index 77c9554d80cd..5e2b6893b4bd 100644 --- a/java-managedkafka/pom.xml +++ b/java-managedkafka/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-managedkafka-parent pom - 0.1.0 + 0.2.0-SNAPSHOT Google Apache Kafka for BigQuery API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-managedkafka - 0.1.0 + 0.2.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-managedkafka-v1 - 0.1.0 + 0.2.0-SNAPSHOT com.google.api.grpc proto-google-cloud-managedkafka-v1 - 0.1.0 + 0.2.0-SNAPSHOT diff --git a/java-managedkafka/proto-google-cloud-managedkafka-v1/pom.xml b/java-managedkafka/proto-google-cloud-managedkafka-v1/pom.xml index 3b03ea0f338b..e5e8bbeef77d 100644 --- a/java-managedkafka/proto-google-cloud-managedkafka-v1/pom.xml +++ b/java-managedkafka/proto-google-cloud-managedkafka-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-managedkafka-v1 - 0.1.0 + 0.2.0-SNAPSHOT proto-google-cloud-managedkafka-v1 Proto library for google-cloud-managedkafka com.google.cloud google-cloud-managedkafka-parent - 0.1.0 + 0.2.0-SNAPSHOT diff --git a/java-maps-addressvalidation/google-maps-addressvalidation-bom/pom.xml b/java-maps-addressvalidation/google-maps-addressvalidation-bom/pom.xml index 71a5a24919d8..d15c4181f9cf 100644 --- a/java-maps-addressvalidation/google-maps-addressvalidation-bom/pom.xml +++ b/java-maps-addressvalidation/google-maps-addressvalidation-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.maps google-maps-addressvalidation-bom - 0.39.0 + 0.40.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.maps google-maps-addressvalidation - 0.39.0 + 0.40.0-SNAPSHOT com.google.maps.api.grpc grpc-google-maps-addressvalidation-v1 - 0.39.0 + 0.40.0-SNAPSHOT com.google.maps.api.grpc proto-google-maps-addressvalidation-v1 - 0.39.0 + 0.40.0-SNAPSHOT diff --git a/java-maps-addressvalidation/google-maps-addressvalidation/pom.xml b/java-maps-addressvalidation/google-maps-addressvalidation/pom.xml index 18bb34365174..6b68c68d6fb1 100644 --- a/java-maps-addressvalidation/google-maps-addressvalidation/pom.xml +++ b/java-maps-addressvalidation/google-maps-addressvalidation/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.maps google-maps-addressvalidation - 0.39.0 + 0.40.0-SNAPSHOT jar Google Address Validation API Address Validation API The Address Validation API allows developers to verify the accuracy of addresses. Given an address, it returns information about the correctness of the components of the parsed address, a geocode, and a verdict on the deliverability of the parsed address. com.google.maps google-maps-addressvalidation-parent - 0.39.0 + 0.40.0-SNAPSHOT google-maps-addressvalidation diff --git a/java-maps-addressvalidation/grpc-google-maps-addressvalidation-v1/pom.xml b/java-maps-addressvalidation/grpc-google-maps-addressvalidation-v1/pom.xml index fb1f007cfcda..5fb9d82b951e 100644 --- a/java-maps-addressvalidation/grpc-google-maps-addressvalidation-v1/pom.xml +++ b/java-maps-addressvalidation/grpc-google-maps-addressvalidation-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc grpc-google-maps-addressvalidation-v1 - 0.39.0 + 0.40.0-SNAPSHOT grpc-google-maps-addressvalidation-v1 GRPC library for google-maps-addressvalidation com.google.maps google-maps-addressvalidation-parent - 0.39.0 + 0.40.0-SNAPSHOT diff --git a/java-maps-addressvalidation/pom.xml b/java-maps-addressvalidation/pom.xml index 2ffc0afec857..fdbd7f919546 100644 --- a/java-maps-addressvalidation/pom.xml +++ b/java-maps-addressvalidation/pom.xml @@ -4,7 +4,7 @@ com.google.maps google-maps-addressvalidation-parent pom - 0.39.0 + 0.40.0-SNAPSHOT Google Address Validation API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.maps google-maps-addressvalidation - 0.39.0 + 0.40.0-SNAPSHOT com.google.maps.api.grpc grpc-google-maps-addressvalidation-v1 - 0.39.0 + 0.40.0-SNAPSHOT com.google.maps.api.grpc proto-google-maps-addressvalidation-v1 - 0.39.0 + 0.40.0-SNAPSHOT diff --git a/java-maps-addressvalidation/proto-google-maps-addressvalidation-v1/pom.xml b/java-maps-addressvalidation/proto-google-maps-addressvalidation-v1/pom.xml index 8b1126199f98..9c68ffc85acf 100644 --- a/java-maps-addressvalidation/proto-google-maps-addressvalidation-v1/pom.xml +++ b/java-maps-addressvalidation/proto-google-maps-addressvalidation-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc proto-google-maps-addressvalidation-v1 - 0.39.0 + 0.40.0-SNAPSHOT proto-google-maps-addressvalidation-v1 Proto library for google-maps-addressvalidation com.google.maps google-maps-addressvalidation-parent - 0.39.0 + 0.40.0-SNAPSHOT diff --git a/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets-bom/pom.xml b/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets-bom/pom.xml index 7dee992611be..f041488b1941 100644 --- a/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets-bom/pom.xml +++ b/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.maps google-maps-mapsplatformdatasets-bom - 0.34.0 + 0.35.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.maps google-maps-mapsplatformdatasets - 0.34.0 + 0.35.0-SNAPSHOT com.google.maps.api.grpc grpc-google-maps-mapsplatformdatasets-v1 - 0.34.0 + 0.35.0-SNAPSHOT com.google.maps.api.grpc proto-google-maps-mapsplatformdatasets-v1 - 0.34.0 + 0.35.0-SNAPSHOT diff --git a/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/pom.xml b/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/pom.xml index 549d01a2750a..bd67b76b2f69 100644 --- a/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/pom.xml +++ b/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.maps google-maps-mapsplatformdatasets - 0.34.0 + 0.35.0-SNAPSHOT jar Google Maps Platform Datasets API Maps Platform Datasets API The Maps Platform Datasets API enables developers to ingest geospatially-tied datasets @@ -11,7 +11,7 @@ com.google.maps google-maps-mapsplatformdatasets-parent - 0.34.0 + 0.35.0-SNAPSHOT google-maps-mapsplatformdatasets diff --git a/java-maps-mapsplatformdatasets/grpc-google-maps-mapsplatformdatasets-v1/pom.xml b/java-maps-mapsplatformdatasets/grpc-google-maps-mapsplatformdatasets-v1/pom.xml index 45b273d72ce7..174b933d4470 100644 --- a/java-maps-mapsplatformdatasets/grpc-google-maps-mapsplatformdatasets-v1/pom.xml +++ b/java-maps-mapsplatformdatasets/grpc-google-maps-mapsplatformdatasets-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc grpc-google-maps-mapsplatformdatasets-v1 - 0.34.0 + 0.35.0-SNAPSHOT grpc-google-maps-mapsplatformdatasets-v1 GRPC library for google-maps-mapsplatformdatasets com.google.maps google-maps-mapsplatformdatasets-parent - 0.34.0 + 0.35.0-SNAPSHOT diff --git a/java-maps-mapsplatformdatasets/pom.xml b/java-maps-mapsplatformdatasets/pom.xml index e916cb09c274..5e9d8a118f0c 100644 --- a/java-maps-mapsplatformdatasets/pom.xml +++ b/java-maps-mapsplatformdatasets/pom.xml @@ -4,7 +4,7 @@ com.google.maps google-maps-mapsplatformdatasets-parent pom - 0.34.0 + 0.35.0-SNAPSHOT Google Maps Platform Datasets API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.maps google-maps-mapsplatformdatasets - 0.34.0 + 0.35.0-SNAPSHOT com.google.maps.api.grpc proto-google-maps-mapsplatformdatasets-v1 - 0.34.0 + 0.35.0-SNAPSHOT com.google.maps.api.grpc grpc-google-maps-mapsplatformdatasets-v1 - 0.34.0 + 0.35.0-SNAPSHOT diff --git a/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/pom.xml b/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/pom.xml index de74b87874ac..46a8bdc987f0 100644 --- a/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/pom.xml +++ b/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc proto-google-maps-mapsplatformdatasets-v1 - 0.34.0 + 0.35.0-SNAPSHOT proto-google-maps-mapsplatformdatasets-v1 Proto library for google-maps-mapsplatformdatasets com.google.maps google-maps-mapsplatformdatasets-parent - 0.34.0 + 0.35.0-SNAPSHOT diff --git a/java-maps-places/google-maps-places-bom/pom.xml b/java-maps-places/google-maps-places-bom/pom.xml index 30533b4d441e..1bc0f814140e 100644 --- a/java-maps-places/google-maps-places-bom/pom.xml +++ b/java-maps-places/google-maps-places-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.maps google-maps-places-bom - 0.16.0 + 0.17.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.maps google-maps-places - 0.16.0 + 0.17.0-SNAPSHOT com.google.maps.api.grpc grpc-google-maps-places-v1 - 0.16.0 + 0.17.0-SNAPSHOT com.google.maps.api.grpc proto-google-maps-places-v1 - 0.16.0 + 0.17.0-SNAPSHOT diff --git a/java-maps-places/google-maps-places/pom.xml b/java-maps-places/google-maps-places/pom.xml index dfac90388d1c..fcceb4f08e5e 100644 --- a/java-maps-places/google-maps-places/pom.xml +++ b/java-maps-places/google-maps-places/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.maps google-maps-places - 0.16.0 + 0.17.0-SNAPSHOT jar Google Places API (New) Places API (New) The Places API allows developers to access a variety of search and @@ -11,7 +11,7 @@ com.google.maps google-maps-places-parent - 0.16.0 + 0.17.0-SNAPSHOT google-maps-places diff --git a/java-maps-places/grpc-google-maps-places-v1/pom.xml b/java-maps-places/grpc-google-maps-places-v1/pom.xml index 0b461a382bd4..247db6e0ef56 100644 --- a/java-maps-places/grpc-google-maps-places-v1/pom.xml +++ b/java-maps-places/grpc-google-maps-places-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc grpc-google-maps-places-v1 - 0.16.0 + 0.17.0-SNAPSHOT grpc-google-maps-places-v1 GRPC library for google-maps-places com.google.maps google-maps-places-parent - 0.16.0 + 0.17.0-SNAPSHOT diff --git a/java-maps-places/pom.xml b/java-maps-places/pom.xml index 20223b3fe774..dcd0de83bf53 100644 --- a/java-maps-places/pom.xml +++ b/java-maps-places/pom.xml @@ -4,7 +4,7 @@ com.google.maps google-maps-places-parent pom - 0.16.0 + 0.17.0-SNAPSHOT Google Places API (New) Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.maps google-maps-places - 0.16.0 + 0.17.0-SNAPSHOT com.google.maps.api.grpc grpc-google-maps-places-v1 - 0.16.0 + 0.17.0-SNAPSHOT com.google.maps.api.grpc proto-google-maps-places-v1 - 0.16.0 + 0.17.0-SNAPSHOT diff --git a/java-maps-places/proto-google-maps-places-v1/pom.xml b/java-maps-places/proto-google-maps-places-v1/pom.xml index fbe96381610b..8f97d6e3e015 100644 --- a/java-maps-places/proto-google-maps-places-v1/pom.xml +++ b/java-maps-places/proto-google-maps-places-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc proto-google-maps-places-v1 - 0.16.0 + 0.17.0-SNAPSHOT proto-google-maps-places-v1 Proto library for google-maps-places com.google.maps google-maps-places-parent - 0.16.0 + 0.17.0-SNAPSHOT diff --git a/java-maps-routeoptimization/google-maps-routeoptimization-bom/pom.xml b/java-maps-routeoptimization/google-maps-routeoptimization-bom/pom.xml index 75ee834c174f..8f39624a782e 100644 --- a/java-maps-routeoptimization/google-maps-routeoptimization-bom/pom.xml +++ b/java-maps-routeoptimization/google-maps-routeoptimization-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.maps google-maps-routeoptimization-bom - 0.3.0 + 0.4.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.maps google-maps-routeoptimization - 0.3.0 + 0.4.0-SNAPSHOT com.google.maps.api.grpc grpc-google-maps-routeoptimization-v1 - 0.3.0 + 0.4.0-SNAPSHOT com.google.maps.api.grpc proto-google-maps-routeoptimization-v1 - 0.3.0 + 0.4.0-SNAPSHOT diff --git a/java-maps-routeoptimization/google-maps-routeoptimization/pom.xml b/java-maps-routeoptimization/google-maps-routeoptimization/pom.xml index 0068626a36e9..b51ad3678c59 100644 --- a/java-maps-routeoptimization/google-maps-routeoptimization/pom.xml +++ b/java-maps-routeoptimization/google-maps-routeoptimization/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.maps google-maps-routeoptimization - 0.3.0 + 0.4.0-SNAPSHOT jar Google Route Optimization API Route Optimization API The Route Optimization API assigns tasks and routes to a vehicle fleet, optimizing against the objectives and constraints that you supply for your transportation goals. com.google.maps google-maps-routeoptimization-parent - 0.3.0 + 0.4.0-SNAPSHOT google-maps-routeoptimization diff --git a/java-maps-routeoptimization/grpc-google-maps-routeoptimization-v1/pom.xml b/java-maps-routeoptimization/grpc-google-maps-routeoptimization-v1/pom.xml index 933e4991f7d8..f54bd211bd68 100644 --- a/java-maps-routeoptimization/grpc-google-maps-routeoptimization-v1/pom.xml +++ b/java-maps-routeoptimization/grpc-google-maps-routeoptimization-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc grpc-google-maps-routeoptimization-v1 - 0.3.0 + 0.4.0-SNAPSHOT grpc-google-maps-routeoptimization-v1 GRPC library for google-maps-routeoptimization com.google.maps google-maps-routeoptimization-parent - 0.3.0 + 0.4.0-SNAPSHOT diff --git a/java-maps-routeoptimization/pom.xml b/java-maps-routeoptimization/pom.xml index 9f6b5e72917f..35ace13e0cd9 100644 --- a/java-maps-routeoptimization/pom.xml +++ b/java-maps-routeoptimization/pom.xml @@ -4,7 +4,7 @@ com.google.maps google-maps-routeoptimization-parent pom - 0.3.0 + 0.4.0-SNAPSHOT Google Route Optimization API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.maps google-maps-routeoptimization - 0.3.0 + 0.4.0-SNAPSHOT com.google.maps.api.grpc grpc-google-maps-routeoptimization-v1 - 0.3.0 + 0.4.0-SNAPSHOT com.google.maps.api.grpc proto-google-maps-routeoptimization-v1 - 0.3.0 + 0.4.0-SNAPSHOT diff --git a/java-maps-routeoptimization/proto-google-maps-routeoptimization-v1/pom.xml b/java-maps-routeoptimization/proto-google-maps-routeoptimization-v1/pom.xml index a706de8e7f28..500660e452fe 100644 --- a/java-maps-routeoptimization/proto-google-maps-routeoptimization-v1/pom.xml +++ b/java-maps-routeoptimization/proto-google-maps-routeoptimization-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc proto-google-maps-routeoptimization-v1 - 0.3.0 + 0.4.0-SNAPSHOT proto-google-maps-routeoptimization-v1 Proto library for google-maps-routeoptimization com.google.maps google-maps-routeoptimization-parent - 0.3.0 + 0.4.0-SNAPSHOT diff --git a/java-maps-routing/google-maps-routing-bom/pom.xml b/java-maps-routing/google-maps-routing-bom/pom.xml index 8f5ac8c39b07..ac6c20a49e5a 100644 --- a/java-maps-routing/google-maps-routing-bom/pom.xml +++ b/java-maps-routing/google-maps-routing-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.maps google-maps-routing-bom - 1.30.0 + 1.31.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.maps google-maps-routing - 1.30.0 + 1.31.0-SNAPSHOT com.google.maps.api.grpc grpc-google-maps-routing-v2 - 1.30.0 + 1.31.0-SNAPSHOT com.google.maps.api.grpc proto-google-maps-routing-v2 - 1.30.0 + 1.31.0-SNAPSHOT diff --git a/java-maps-routing/google-maps-routing/pom.xml b/java-maps-routing/google-maps-routing/pom.xml index 71b5ff7c6aa5..130fd247b69a 100644 --- a/java-maps-routing/google-maps-routing/pom.xml +++ b/java-maps-routing/google-maps-routing/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.maps google-maps-routing - 1.30.0 + 1.31.0-SNAPSHOT jar Google Routes API Routes API Routes API is the next generation, performance optimized version of the existing Directions API and Distance Matrix API. It helps you find the ideal route from A to Z, calculates ETAs and distances for matrices of origin and destination locations, and also offers new features. com.google.maps google-maps-routing-parent - 1.30.0 + 1.31.0-SNAPSHOT google-maps-routing diff --git a/java-maps-routing/grpc-google-maps-routing-v2/pom.xml b/java-maps-routing/grpc-google-maps-routing-v2/pom.xml index 9eebcf41642c..096bd5d3f644 100644 --- a/java-maps-routing/grpc-google-maps-routing-v2/pom.xml +++ b/java-maps-routing/grpc-google-maps-routing-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc grpc-google-maps-routing-v2 - 1.30.0 + 1.31.0-SNAPSHOT grpc-google-maps-routing-v2 GRPC library for google-maps-routing com.google.maps google-maps-routing-parent - 1.30.0 + 1.31.0-SNAPSHOT diff --git a/java-maps-routing/pom.xml b/java-maps-routing/pom.xml index 856f73338808..e34ed80075a0 100644 --- a/java-maps-routing/pom.xml +++ b/java-maps-routing/pom.xml @@ -4,7 +4,7 @@ com.google.maps google-maps-routing-parent pom - 1.30.0 + 1.31.0-SNAPSHOT Google Routes API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.maps google-maps-routing - 1.30.0 + 1.31.0-SNAPSHOT com.google.maps.api.grpc grpc-google-maps-routing-v2 - 1.30.0 + 1.31.0-SNAPSHOT com.google.maps.api.grpc proto-google-maps-routing-v2 - 1.30.0 + 1.31.0-SNAPSHOT diff --git a/java-maps-routing/proto-google-maps-routing-v2/pom.xml b/java-maps-routing/proto-google-maps-routing-v2/pom.xml index fc373e2911a5..727d314c05d5 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/pom.xml +++ b/java-maps-routing/proto-google-maps-routing-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc proto-google-maps-routing-v2 - 1.30.0 + 1.31.0-SNAPSHOT proto-google-maps-routing-v2 Proto library for google-maps-routing com.google.maps google-maps-routing-parent - 1.30.0 + 1.31.0-SNAPSHOT diff --git a/java-maps-solar/google-maps-solar-bom/pom.xml b/java-maps-solar/google-maps-solar-bom/pom.xml index 763f6edaeffa..db58af6699a4 100644 --- a/java-maps-solar/google-maps-solar-bom/pom.xml +++ b/java-maps-solar/google-maps-solar-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.maps google-maps-solar-bom - 0.4.0 + 0.5.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.maps google-maps-solar - 0.4.0 + 0.5.0-SNAPSHOT com.google.maps.api.grpc grpc-google-maps-solar-v1 - 0.4.0 + 0.5.0-SNAPSHOT com.google.maps.api.grpc proto-google-maps-solar-v1 - 0.4.0 + 0.5.0-SNAPSHOT diff --git a/java-maps-solar/google-maps-solar/pom.xml b/java-maps-solar/google-maps-solar/pom.xml index 0109f315c39b..e4056b9315a7 100644 --- a/java-maps-solar/google-maps-solar/pom.xml +++ b/java-maps-solar/google-maps-solar/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.maps google-maps-solar - 0.4.0 + 0.5.0-SNAPSHOT jar Google Solar API Solar API The Solar API allows users to read details about the solar potential of over 60 million buildings. This includes measurements of the building's roof (e.g., size and tilt/azimuth), energy production for a range of sizes of solar installations, and financial costs and benefits. com.google.maps google-maps-solar-parent - 0.4.0 + 0.5.0-SNAPSHOT google-maps-solar diff --git a/java-maps-solar/grpc-google-maps-solar-v1/pom.xml b/java-maps-solar/grpc-google-maps-solar-v1/pom.xml index 43dac91c232e..b9d526a268d7 100644 --- a/java-maps-solar/grpc-google-maps-solar-v1/pom.xml +++ b/java-maps-solar/grpc-google-maps-solar-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc grpc-google-maps-solar-v1 - 0.4.0 + 0.5.0-SNAPSHOT grpc-google-maps-solar-v1 GRPC library for google-maps-solar com.google.maps google-maps-solar-parent - 0.4.0 + 0.5.0-SNAPSHOT diff --git a/java-maps-solar/pom.xml b/java-maps-solar/pom.xml index 845442e729af..cbc1a564d519 100644 --- a/java-maps-solar/pom.xml +++ b/java-maps-solar/pom.xml @@ -4,7 +4,7 @@ com.google.maps google-maps-solar-parent pom - 0.4.0 + 0.5.0-SNAPSHOT Google Solar API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.maps google-maps-solar - 0.4.0 + 0.5.0-SNAPSHOT com.google.maps.api.grpc grpc-google-maps-solar-v1 - 0.4.0 + 0.5.0-SNAPSHOT com.google.maps.api.grpc proto-google-maps-solar-v1 - 0.4.0 + 0.5.0-SNAPSHOT diff --git a/java-maps-solar/proto-google-maps-solar-v1/pom.xml b/java-maps-solar/proto-google-maps-solar-v1/pom.xml index 1423883ddcb3..8cdba46cd145 100644 --- a/java-maps-solar/proto-google-maps-solar-v1/pom.xml +++ b/java-maps-solar/proto-google-maps-solar-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc proto-google-maps-solar-v1 - 0.4.0 + 0.5.0-SNAPSHOT proto-google-maps-solar-v1 Proto library for google-maps-solar com.google.maps google-maps-solar-parent - 0.4.0 + 0.5.0-SNAPSHOT diff --git a/java-mediatranslation/google-cloud-mediatranslation-bom/pom.xml b/java-mediatranslation/google-cloud-mediatranslation-bom/pom.xml index 50ef4ed7af7e..a7006712c4f7 100644 --- a/java-mediatranslation/google-cloud-mediatranslation-bom/pom.xml +++ b/java-mediatranslation/google-cloud-mediatranslation-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-mediatranslation-bom - 0.51.0 + 0.52.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-mediatranslation - 0.51.0 + 0.52.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-mediatranslation-v1beta1 - 0.51.0 + 0.52.0-SNAPSHOT com.google.api.grpc proto-google-cloud-mediatranslation-v1beta1 - 0.51.0 + 0.52.0-SNAPSHOT diff --git a/java-mediatranslation/google-cloud-mediatranslation/pom.xml b/java-mediatranslation/google-cloud-mediatranslation/pom.xml index e859dca3964a..0359c8ec42a0 100644 --- a/java-mediatranslation/google-cloud-mediatranslation/pom.xml +++ b/java-mediatranslation/google-cloud-mediatranslation/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-mediatranslation - 0.51.0 + 0.52.0-SNAPSHOT jar Google Media Translation API provides enterprise quality translation from/to various media types. com.google.cloud google-cloud-mediatranslation-parent - 0.51.0 + 0.52.0-SNAPSHOT google-cloud-mediatranslation diff --git a/java-mediatranslation/grpc-google-cloud-mediatranslation-v1beta1/pom.xml b/java-mediatranslation/grpc-google-cloud-mediatranslation-v1beta1/pom.xml index 5c047cda75cf..be43993387b0 100644 --- a/java-mediatranslation/grpc-google-cloud-mediatranslation-v1beta1/pom.xml +++ b/java-mediatranslation/grpc-google-cloud-mediatranslation-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-mediatranslation-v1beta1 - 0.51.0 + 0.52.0-SNAPSHOT grpc-google-cloud-mediatranslation-v1beta1 GRPC library for grpc-google-cloud-mediatranslation-v1beta1 com.google.cloud google-cloud-mediatranslation-parent - 0.51.0 + 0.52.0-SNAPSHOT diff --git a/java-mediatranslation/pom.xml b/java-mediatranslation/pom.xml index d9baba484a4f..17640c3b4190 100644 --- a/java-mediatranslation/pom.xml +++ b/java-mediatranslation/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-mediatranslation-parent pom - 0.51.0 + 0.52.0-SNAPSHOT Google Media Translation API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-mediatranslation - 0.51.0 + 0.52.0-SNAPSHOT com.google.api.grpc proto-google-cloud-mediatranslation-v1beta1 - 0.51.0 + 0.52.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-mediatranslation-v1beta1 - 0.51.0 + 0.52.0-SNAPSHOT diff --git a/java-mediatranslation/proto-google-cloud-mediatranslation-v1beta1/pom.xml b/java-mediatranslation/proto-google-cloud-mediatranslation-v1beta1/pom.xml index 39c828626213..4392078e22e7 100644 --- a/java-mediatranslation/proto-google-cloud-mediatranslation-v1beta1/pom.xml +++ b/java-mediatranslation/proto-google-cloud-mediatranslation-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-mediatranslation-v1beta1 - 0.51.0 + 0.52.0-SNAPSHOT proto-google-cloud-mediatranslation-v1beta1 PROTO library for proto-google-cloud-mediatranslation-v1beta1 com.google.cloud google-cloud-mediatranslation-parent - 0.51.0 + 0.52.0-SNAPSHOT diff --git a/java-meet/google-cloud-meet-bom/pom.xml b/java-meet/google-cloud-meet-bom/pom.xml index 2bf0d2d4a2d5..db51e65b61f4 100644 --- a/java-meet/google-cloud-meet-bom/pom.xml +++ b/java-meet/google-cloud-meet-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-meet-bom - 0.12.0 + 0.13.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-meet - 0.12.0 + 0.13.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-meet-v2beta - 0.12.0 + 0.13.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-meet-v2 - 0.12.0 + 0.13.0-SNAPSHOT com.google.api.grpc proto-google-cloud-meet-v2beta - 0.12.0 + 0.13.0-SNAPSHOT com.google.api.grpc proto-google-cloud-meet-v2 - 0.12.0 + 0.13.0-SNAPSHOT diff --git a/java-meet/google-cloud-meet/pom.xml b/java-meet/google-cloud-meet/pom.xml index 694afba44137..c18a8a711fe6 100644 --- a/java-meet/google-cloud-meet/pom.xml +++ b/java-meet/google-cloud-meet/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-meet - 0.12.0 + 0.13.0-SNAPSHOT jar Google Google Meet API Google Meet API The Google Meet REST API lets you create and manage meetings for Google Meet and offers entry points to your users directly from your app com.google.cloud google-cloud-meet-parent - 0.12.0 + 0.13.0-SNAPSHOT google-cloud-meet diff --git a/java-meet/grpc-google-cloud-meet-v2/pom.xml b/java-meet/grpc-google-cloud-meet-v2/pom.xml index 4c1000bf06d2..e6687c317378 100644 --- a/java-meet/grpc-google-cloud-meet-v2/pom.xml +++ b/java-meet/grpc-google-cloud-meet-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-meet-v2 - 0.12.0 + 0.13.0-SNAPSHOT grpc-google-cloud-meet-v2 GRPC library for google-cloud-meet com.google.cloud google-cloud-meet-parent - 0.12.0 + 0.13.0-SNAPSHOT diff --git a/java-meet/grpc-google-cloud-meet-v2beta/pom.xml b/java-meet/grpc-google-cloud-meet-v2beta/pom.xml index 44152ba7cb54..b0eba66d1667 100644 --- a/java-meet/grpc-google-cloud-meet-v2beta/pom.xml +++ b/java-meet/grpc-google-cloud-meet-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-meet-v2beta - 0.12.0 + 0.13.0-SNAPSHOT grpc-google-cloud-meet-v2beta GRPC library for google-cloud-meet com.google.cloud google-cloud-meet-parent - 0.12.0 + 0.13.0-SNAPSHOT diff --git a/java-meet/pom.xml b/java-meet/pom.xml index 7364abe8c452..8b08ab2aa756 100644 --- a/java-meet/pom.xml +++ b/java-meet/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-meet-parent pom - 0.12.0 + 0.13.0-SNAPSHOT Google Google Meet API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-meet - 0.12.0 + 0.13.0-SNAPSHOT com.google.api.grpc proto-google-cloud-meet-v2 - 0.12.0 + 0.13.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-meet-v2 - 0.12.0 + 0.13.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-meet-v2beta - 0.12.0 + 0.13.0-SNAPSHOT com.google.api.grpc proto-google-cloud-meet-v2beta - 0.12.0 + 0.13.0-SNAPSHOT diff --git a/java-meet/proto-google-cloud-meet-v2/pom.xml b/java-meet/proto-google-cloud-meet-v2/pom.xml index 36968276c752..90469bd3cba3 100644 --- a/java-meet/proto-google-cloud-meet-v2/pom.xml +++ b/java-meet/proto-google-cloud-meet-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-meet-v2 - 0.12.0 + 0.13.0-SNAPSHOT proto-google-cloud-meet-v2 Proto library for google-cloud-meet com.google.cloud google-cloud-meet-parent - 0.12.0 + 0.13.0-SNAPSHOT diff --git a/java-meet/proto-google-cloud-meet-v2beta/pom.xml b/java-meet/proto-google-cloud-meet-v2beta/pom.xml index ccd77a118f99..690d1563edcd 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/pom.xml +++ b/java-meet/proto-google-cloud-meet-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-meet-v2beta - 0.12.0 + 0.13.0-SNAPSHOT proto-google-cloud-meet-v2beta Proto library for google-cloud-meet com.google.cloud google-cloud-meet-parent - 0.12.0 + 0.13.0-SNAPSHOT diff --git a/java-memcache/google-cloud-memcache-bom/pom.xml b/java-memcache/google-cloud-memcache-bom/pom.xml index 3560b6fae416..2d0e6311548c 100644 --- a/java-memcache/google-cloud-memcache-bom/pom.xml +++ b/java-memcache/google-cloud-memcache-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-memcache-bom - 2.45.0 + 2.46.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-memcache - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-memcache-v1beta2 - 0.52.0 + 0.53.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-memcache-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-memcache-v1beta2 - 0.52.0 + 0.53.0-SNAPSHOT com.google.api.grpc proto-google-cloud-memcache-v1 - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-memcache/google-cloud-memcache/pom.xml b/java-memcache/google-cloud-memcache/pom.xml index 30cf2258f4c5..4cfb725e856c 100644 --- a/java-memcache/google-cloud-memcache/pom.xml +++ b/java-memcache/google-cloud-memcache/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-memcache - 2.45.0 + 2.46.0-SNAPSHOT jar Google Cloud Memcache Java idiomatic client for Google Cloud memcache com.google.cloud google-cloud-memcache-parent - 2.45.0 + 2.46.0-SNAPSHOT google-cloud-memcache diff --git a/java-memcache/grpc-google-cloud-memcache-v1/pom.xml b/java-memcache/grpc-google-cloud-memcache-v1/pom.xml index 4aa5ff727801..1fda067cad1f 100644 --- a/java-memcache/grpc-google-cloud-memcache-v1/pom.xml +++ b/java-memcache/grpc-google-cloud-memcache-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-memcache-v1 - 2.45.0 + 2.46.0-SNAPSHOT grpc-google-cloud-memcache-v1 GRPC library for grpc-google-cloud-memcache-v1 com.google.cloud google-cloud-memcache-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-memcache/grpc-google-cloud-memcache-v1beta2/pom.xml b/java-memcache/grpc-google-cloud-memcache-v1beta2/pom.xml index db0a94719da9..b82308140a3a 100644 --- a/java-memcache/grpc-google-cloud-memcache-v1beta2/pom.xml +++ b/java-memcache/grpc-google-cloud-memcache-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-memcache-v1beta2 - 0.52.0 + 0.53.0-SNAPSHOT grpc-google-cloud-memcache-v1beta2 GRPC library for grpc-google-cloud-memcache-v1beta2 com.google.cloud google-cloud-memcache-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-memcache/pom.xml b/java-memcache/pom.xml index 148010f5d4c9..47f55efba601 100644 --- a/java-memcache/pom.xml +++ b/java-memcache/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-memcache-parent pom - 2.45.0 + 2.46.0-SNAPSHOT Google Cloud Memcache Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-memcache-v1beta2 - 0.52.0 + 0.53.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-memcache-v1beta2 - 0.52.0 + 0.53.0-SNAPSHOT com.google.api.grpc proto-google-cloud-memcache-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-memcache-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.cloud google-cloud-memcache - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-memcache/proto-google-cloud-memcache-v1/pom.xml b/java-memcache/proto-google-cloud-memcache-v1/pom.xml index 206b572778d9..519c933e0432 100644 --- a/java-memcache/proto-google-cloud-memcache-v1/pom.xml +++ b/java-memcache/proto-google-cloud-memcache-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-memcache-v1 - 2.45.0 + 2.46.0-SNAPSHOT proto-google-cloud-memcache-v1 PROTO library for proto-google-cloud-memcache-v1 com.google.cloud google-cloud-memcache-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-memcache/proto-google-cloud-memcache-v1beta2/pom.xml b/java-memcache/proto-google-cloud-memcache-v1beta2/pom.xml index fa8e737bd5f8..592fb449cdaa 100644 --- a/java-memcache/proto-google-cloud-memcache-v1beta2/pom.xml +++ b/java-memcache/proto-google-cloud-memcache-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-memcache-v1beta2 - 0.52.0 + 0.53.0-SNAPSHOT proto-google-cloud-memcache-v1beta2 PROTO library for proto-google-cloud-memcache-v1beta2 com.google.cloud google-cloud-memcache-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-migrationcenter/google-cloud-migrationcenter-bom/pom.xml b/java-migrationcenter/google-cloud-migrationcenter-bom/pom.xml index 4c5d48a7f27d..c7ffe00bd5d2 100644 --- a/java-migrationcenter/google-cloud-migrationcenter-bom/pom.xml +++ b/java-migrationcenter/google-cloud-migrationcenter-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-migrationcenter-bom - 0.27.0 + 0.28.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-migrationcenter - 0.27.0 + 0.28.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-migrationcenter-v1 - 0.27.0 + 0.28.0-SNAPSHOT com.google.api.grpc proto-google-cloud-migrationcenter-v1 - 0.27.0 + 0.28.0-SNAPSHOT diff --git a/java-migrationcenter/google-cloud-migrationcenter/pom.xml b/java-migrationcenter/google-cloud-migrationcenter/pom.xml index 88ae0deab24e..17c497ac2a55 100644 --- a/java-migrationcenter/google-cloud-migrationcenter/pom.xml +++ b/java-migrationcenter/google-cloud-migrationcenter/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-migrationcenter - 0.27.0 + 0.28.0-SNAPSHOT jar Google Migration Center API Migration Center API Google Cloud Migration Center is a unified platform that helps you accelerate your end-to-end cloud journey from your current on-premises or cloud environments to Google Cloud com.google.cloud google-cloud-migrationcenter-parent - 0.27.0 + 0.28.0-SNAPSHOT google-cloud-migrationcenter diff --git a/java-migrationcenter/grpc-google-cloud-migrationcenter-v1/pom.xml b/java-migrationcenter/grpc-google-cloud-migrationcenter-v1/pom.xml index 710f766f7be2..4c3f08a134ae 100644 --- a/java-migrationcenter/grpc-google-cloud-migrationcenter-v1/pom.xml +++ b/java-migrationcenter/grpc-google-cloud-migrationcenter-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-migrationcenter-v1 - 0.27.0 + 0.28.0-SNAPSHOT grpc-google-cloud-migrationcenter-v1 GRPC library for google-cloud-migrationcenter com.google.cloud google-cloud-migrationcenter-parent - 0.27.0 + 0.28.0-SNAPSHOT diff --git a/java-migrationcenter/pom.xml b/java-migrationcenter/pom.xml index 1244e7a00b2d..c2ee6b191a57 100644 --- a/java-migrationcenter/pom.xml +++ b/java-migrationcenter/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-migrationcenter-parent pom - 0.27.0 + 0.28.0-SNAPSHOT Google Migration Center API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-migrationcenter - 0.27.0 + 0.28.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-migrationcenter-v1 - 0.27.0 + 0.28.0-SNAPSHOT com.google.api.grpc proto-google-cloud-migrationcenter-v1 - 0.27.0 + 0.28.0-SNAPSHOT diff --git a/java-migrationcenter/proto-google-cloud-migrationcenter-v1/pom.xml b/java-migrationcenter/proto-google-cloud-migrationcenter-v1/pom.xml index 3fa70effc1ce..1bff1f4eb434 100644 --- a/java-migrationcenter/proto-google-cloud-migrationcenter-v1/pom.xml +++ b/java-migrationcenter/proto-google-cloud-migrationcenter-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-migrationcenter-v1 - 0.27.0 + 0.28.0-SNAPSHOT proto-google-cloud-migrationcenter-v1 Proto library for google-cloud-migrationcenter com.google.cloud google-cloud-migrationcenter-parent - 0.27.0 + 0.28.0-SNAPSHOT diff --git a/java-monitoring-dashboards/google-cloud-monitoring-dashboard-bom/pom.xml b/java-monitoring-dashboards/google-cloud-monitoring-dashboard-bom/pom.xml index 0d0bb0e29148..762891ffe48a 100644 --- a/java-monitoring-dashboards/google-cloud-monitoring-dashboard-bom/pom.xml +++ b/java-monitoring-dashboards/google-cloud-monitoring-dashboard-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-monitoring-dashboard-bom - 2.47.0 + 2.48.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-monitoring-dashboard - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-monitoring-dashboard-v1 - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc proto-google-cloud-monitoring-dashboard-v1 - 2.47.0 + 2.48.0-SNAPSHOT diff --git a/java-monitoring-dashboards/google-cloud-monitoring-dashboard/pom.xml b/java-monitoring-dashboards/google-cloud-monitoring-dashboard/pom.xml index 6bcb6cc9f32a..809f22a94a71 100644 --- a/java-monitoring-dashboards/google-cloud-monitoring-dashboard/pom.xml +++ b/java-monitoring-dashboards/google-cloud-monitoring-dashboard/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-monitoring-dashboard - 2.47.0 + 2.48.0-SNAPSHOT jar Google Cloud Monitoring Dashboard Java idiomatic client for Google Cloud Monitoring Dashboard com.google.cloud google-cloud-monitoring-dashboard-parent - 2.47.0 + 2.48.0-SNAPSHOT google-cloud-monitoring-dashboard diff --git a/java-monitoring-dashboards/grpc-google-cloud-monitoring-dashboard-v1/pom.xml b/java-monitoring-dashboards/grpc-google-cloud-monitoring-dashboard-v1/pom.xml index 4c7afca48f79..d3ac367730a6 100644 --- a/java-monitoring-dashboards/grpc-google-cloud-monitoring-dashboard-v1/pom.xml +++ b/java-monitoring-dashboards/grpc-google-cloud-monitoring-dashboard-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-monitoring-dashboard-v1 - 2.47.0 + 2.48.0-SNAPSHOT grpc-google-cloud-monitoring-dashboard-v1 GRPC library for grpc-google-cloud-monitoring-dashboard-v1 com.google.cloud google-cloud-monitoring-dashboard-parent - 2.47.0 + 2.48.0-SNAPSHOT diff --git a/java-monitoring-dashboards/pom.xml b/java-monitoring-dashboards/pom.xml index 44f134f4074d..e19597e8ea9a 100644 --- a/java-monitoring-dashboards/pom.xml +++ b/java-monitoring-dashboards/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-monitoring-dashboard-parent pom - 2.47.0 + 2.48.0-SNAPSHOT Google Cloud Monitoring Dashboard Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.api.grpc proto-google-cloud-monitoring-dashboard-v1 - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-monitoring-dashboard-v1 - 2.47.0 + 2.48.0-SNAPSHOT com.google.cloud google-cloud-monitoring-dashboard - 2.47.0 + 2.48.0-SNAPSHOT diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/pom.xml b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/pom.xml index 6e40a7e7805f..8651ace4cc9a 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/pom.xml +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-monitoring-dashboard-v1 - 2.47.0 + 2.48.0-SNAPSHOT proto-google-cloud-monitoring-dashboard-v1 PROTO library for proto-google-cloud-monitoring-dashboard-v1 com.google.cloud google-cloud-monitoring-dashboard-parent - 2.47.0 + 2.48.0-SNAPSHOT diff --git a/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope-bom/pom.xml b/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope-bom/pom.xml index efab0bbaa4a5..45baa63d9cb4 100644 --- a/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope-bom/pom.xml +++ b/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-monitoring-metricsscope-bom - 0.39.0 + 0.40.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-monitoring-metricsscope - 0.39.0 + 0.40.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-monitoring-metricsscope-v1 - 0.39.0 + 0.40.0-SNAPSHOT com.google.api.grpc proto-google-cloud-monitoring-metricsscope-v1 - 0.39.0 + 0.40.0-SNAPSHOT diff --git a/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope/pom.xml b/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope/pom.xml index 4f619c463842..24816899c0d2 100644 --- a/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope/pom.xml +++ b/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-monitoring-metricsscope - 0.39.0 + 0.40.0-SNAPSHOT jar Google Monitoring Metrics Scopes Monitoring Metrics Scopes The metrics scope defines the set of Google Cloud projects whose metrics the current Google Cloud project can access. com.google.cloud google-cloud-monitoring-metricsscope-parent - 0.39.0 + 0.40.0-SNAPSHOT google-cloud-monitoring-metricsscope diff --git a/java-monitoring-metricsscope/grpc-google-cloud-monitoring-metricsscope-v1/pom.xml b/java-monitoring-metricsscope/grpc-google-cloud-monitoring-metricsscope-v1/pom.xml index 1d3873059745..99daad47a3af 100644 --- a/java-monitoring-metricsscope/grpc-google-cloud-monitoring-metricsscope-v1/pom.xml +++ b/java-monitoring-metricsscope/grpc-google-cloud-monitoring-metricsscope-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-monitoring-metricsscope-v1 - 0.39.0 + 0.40.0-SNAPSHOT grpc-google-cloud-monitoring-metricsscope-v1 GRPC library for google-cloud-monitoring-metricsscope com.google.cloud google-cloud-monitoring-metricsscope-parent - 0.39.0 + 0.40.0-SNAPSHOT diff --git a/java-monitoring-metricsscope/pom.xml b/java-monitoring-metricsscope/pom.xml index 0eca9fea48d5..04feeca51eec 100644 --- a/java-monitoring-metricsscope/pom.xml +++ b/java-monitoring-metricsscope/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-monitoring-metricsscope-parent pom - 0.39.0 + 0.40.0-SNAPSHOT Google Monitoring Metrics Scopes Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-monitoring-metricsscope - 0.39.0 + 0.40.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-monitoring-metricsscope-v1 - 0.39.0 + 0.40.0-SNAPSHOT com.google.api.grpc proto-google-cloud-monitoring-metricsscope-v1 - 0.39.0 + 0.40.0-SNAPSHOT diff --git a/java-monitoring-metricsscope/proto-google-cloud-monitoring-metricsscope-v1/pom.xml b/java-monitoring-metricsscope/proto-google-cloud-monitoring-metricsscope-v1/pom.xml index 341c706c6f39..429ee924cc98 100644 --- a/java-monitoring-metricsscope/proto-google-cloud-monitoring-metricsscope-v1/pom.xml +++ b/java-monitoring-metricsscope/proto-google-cloud-monitoring-metricsscope-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-monitoring-metricsscope-v1 - 0.39.0 + 0.40.0-SNAPSHOT proto-google-cloud-monitoring-metricsscope-v1 Proto library for google-cloud-monitoring-metricsscope com.google.cloud google-cloud-monitoring-metricsscope-parent - 0.39.0 + 0.40.0-SNAPSHOT diff --git a/java-monitoring/google-cloud-monitoring-bom/pom.xml b/java-monitoring/google-cloud-monitoring-bom/pom.xml index e55710f2b268..7d87b2fd26ad 100644 --- a/java-monitoring/google-cloud-monitoring-bom/pom.xml +++ b/java-monitoring/google-cloud-monitoring-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-monitoring-bom - 3.46.0 + 3.47.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-monitoring - 3.46.0 + 3.47.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-monitoring-v3 - 3.46.0 + 3.47.0-SNAPSHOT com.google.api.grpc proto-google-cloud-monitoring-v3 - 3.46.0 + 3.47.0-SNAPSHOT diff --git a/java-monitoring/google-cloud-monitoring/pom.xml b/java-monitoring/google-cloud-monitoring/pom.xml index 1866b889a746..20912db852fa 100644 --- a/java-monitoring/google-cloud-monitoring/pom.xml +++ b/java-monitoring/google-cloud-monitoring/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-monitoring - 3.46.0 + 3.47.0-SNAPSHOT jar Google Cloud Monitoring Java idiomatic client for Stackdriver Monitoring com.google.cloud google-cloud-monitoring-parent - 3.46.0 + 3.47.0-SNAPSHOT google-cloud-monitoring diff --git a/java-monitoring/grpc-google-cloud-monitoring-v3/pom.xml b/java-monitoring/grpc-google-cloud-monitoring-v3/pom.xml index 71ff682ab75d..d6620f3e6cfa 100644 --- a/java-monitoring/grpc-google-cloud-monitoring-v3/pom.xml +++ b/java-monitoring/grpc-google-cloud-monitoring-v3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-monitoring-v3 - 3.46.0 + 3.47.0-SNAPSHOT grpc-google-cloud-monitoring-v3 GRPC library for grpc-google-cloud-monitoring-v3 com.google.cloud google-cloud-monitoring-parent - 3.46.0 + 3.47.0-SNAPSHOT diff --git a/java-monitoring/pom.xml b/java-monitoring/pom.xml index eab8c63be5da..b28f9d739e77 100644 --- a/java-monitoring/pom.xml +++ b/java-monitoring/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-monitoring-parent pom - 3.46.0 + 3.47.0-SNAPSHOT Google Cloud Monitoring Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.api.grpc proto-google-cloud-monitoring-v3 - 3.46.0 + 3.47.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-monitoring-v3 - 3.46.0 + 3.47.0-SNAPSHOT com.google.cloud google-cloud-monitoring - 3.46.0 + 3.47.0-SNAPSHOT diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/pom.xml b/java-monitoring/proto-google-cloud-monitoring-v3/pom.xml index 07f32e321e31..cde5b0b5b29c 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/pom.xml +++ b/java-monitoring/proto-google-cloud-monitoring-v3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-monitoring-v3 - 3.46.0 + 3.47.0-SNAPSHOT proto-google-cloud-monitoring-v3 PROTO library for proto-google-cloud-monitoring-v3 com.google.cloud google-cloud-monitoring-parent - 3.46.0 + 3.47.0-SNAPSHOT diff --git a/java-netapp/google-cloud-netapp-bom/pom.xml b/java-netapp/google-cloud-netapp-bom/pom.xml index b87ea69f6526..2f6900d4e9af 100644 --- a/java-netapp/google-cloud-netapp-bom/pom.xml +++ b/java-netapp/google-cloud-netapp-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-netapp-bom - 0.24.0 + 0.25.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-netapp - 0.24.0 + 0.25.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-netapp-v1 - 0.24.0 + 0.25.0-SNAPSHOT com.google.api.grpc proto-google-cloud-netapp-v1 - 0.24.0 + 0.25.0-SNAPSHOT diff --git a/java-netapp/google-cloud-netapp/pom.xml b/java-netapp/google-cloud-netapp/pom.xml index fef4cacd1026..8fdd83083f33 100644 --- a/java-netapp/google-cloud-netapp/pom.xml +++ b/java-netapp/google-cloud-netapp/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-netapp - 0.24.0 + 0.25.0-SNAPSHOT jar Google NetApp API NetApp API Google Cloud NetApp Volumes is a fully-managed, cloud-based data storage service that provides advanced data management capabilities and highly scalable performance with global availability. com.google.cloud google-cloud-netapp-parent - 0.24.0 + 0.25.0-SNAPSHOT google-cloud-netapp diff --git a/java-netapp/grpc-google-cloud-netapp-v1/pom.xml b/java-netapp/grpc-google-cloud-netapp-v1/pom.xml index ed2b98593b2f..7e9fe579f4c1 100644 --- a/java-netapp/grpc-google-cloud-netapp-v1/pom.xml +++ b/java-netapp/grpc-google-cloud-netapp-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-netapp-v1 - 0.24.0 + 0.25.0-SNAPSHOT grpc-google-cloud-netapp-v1 GRPC library for google-cloud-netapp com.google.cloud google-cloud-netapp-parent - 0.24.0 + 0.25.0-SNAPSHOT diff --git a/java-netapp/pom.xml b/java-netapp/pom.xml index 1589b31a1659..1349298b27d3 100644 --- a/java-netapp/pom.xml +++ b/java-netapp/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-netapp-parent pom - 0.24.0 + 0.25.0-SNAPSHOT Google NetApp API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-netapp - 0.24.0 + 0.25.0-SNAPSHOT com.google.api.grpc proto-google-cloud-netapp-v1 - 0.24.0 + 0.25.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-netapp-v1 - 0.24.0 + 0.25.0-SNAPSHOT diff --git a/java-netapp/proto-google-cloud-netapp-v1/pom.xml b/java-netapp/proto-google-cloud-netapp-v1/pom.xml index a2a356482094..e87741664b47 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/pom.xml +++ b/java-netapp/proto-google-cloud-netapp-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-netapp-v1 - 0.24.0 + 0.25.0-SNAPSHOT proto-google-cloud-netapp-v1 Proto library for google-cloud-netapp com.google.cloud google-cloud-netapp-parent - 0.24.0 + 0.25.0-SNAPSHOT diff --git a/java-network-management/google-cloud-network-management-bom/pom.xml b/java-network-management/google-cloud-network-management-bom/pom.xml index 6bab17590204..3f9d573cc46e 100644 --- a/java-network-management/google-cloud-network-management-bom/pom.xml +++ b/java-network-management/google-cloud-network-management-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-network-management-bom - 1.46.0 + 1.47.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-network-management - 1.46.0 + 1.47.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-network-management-v1beta1 - 0.48.0 + 0.49.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-network-management-v1 - 1.46.0 + 1.47.0-SNAPSHOT com.google.api.grpc proto-google-cloud-network-management-v1beta1 - 0.48.0 + 0.49.0-SNAPSHOT com.google.api.grpc proto-google-cloud-network-management-v1 - 1.46.0 + 1.47.0-SNAPSHOT diff --git a/java-network-management/google-cloud-network-management/pom.xml b/java-network-management/google-cloud-network-management/pom.xml index a48940d53803..8264a2ab11a9 100644 --- a/java-network-management/google-cloud-network-management/pom.xml +++ b/java-network-management/google-cloud-network-management/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-network-management - 1.46.0 + 1.47.0-SNAPSHOT jar Google Network Management API Network Management API provides a collection of network performance monitoring and diagnostic capabilities. com.google.cloud google-cloud-network-management-parent - 1.46.0 + 1.47.0-SNAPSHOT google-cloud-network-management diff --git a/java-network-management/grpc-google-cloud-network-management-v1/pom.xml b/java-network-management/grpc-google-cloud-network-management-v1/pom.xml index c25a792eb591..fb95faec9802 100644 --- a/java-network-management/grpc-google-cloud-network-management-v1/pom.xml +++ b/java-network-management/grpc-google-cloud-network-management-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-network-management-v1 - 1.46.0 + 1.47.0-SNAPSHOT grpc-google-cloud-network-management-v1 GRPC library for google-cloud-network-management com.google.cloud google-cloud-network-management-parent - 1.46.0 + 1.47.0-SNAPSHOT diff --git a/java-network-management/grpc-google-cloud-network-management-v1beta1/pom.xml b/java-network-management/grpc-google-cloud-network-management-v1beta1/pom.xml index 54d1dd337910..6f50b39a8f99 100644 --- a/java-network-management/grpc-google-cloud-network-management-v1beta1/pom.xml +++ b/java-network-management/grpc-google-cloud-network-management-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-network-management-v1beta1 - 0.48.0 + 0.49.0-SNAPSHOT grpc-google-cloud-network-management-v1beta1 GRPC library for google-cloud-network-management com.google.cloud google-cloud-network-management-parent - 1.46.0 + 1.47.0-SNAPSHOT diff --git a/java-network-management/pom.xml b/java-network-management/pom.xml index 69ac9075809d..5d26d64bd99e 100644 --- a/java-network-management/pom.xml +++ b/java-network-management/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-network-management-parent pom - 1.46.0 + 1.47.0-SNAPSHOT Google Network Management API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-network-management - 1.46.0 + 1.47.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-network-management-v1beta1 - 0.48.0 + 0.49.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-network-management-v1 - 1.46.0 + 1.47.0-SNAPSHOT com.google.api.grpc proto-google-cloud-network-management-v1beta1 - 0.48.0 + 0.49.0-SNAPSHOT com.google.api.grpc proto-google-cloud-network-management-v1 - 1.46.0 + 1.47.0-SNAPSHOT diff --git a/java-network-management/proto-google-cloud-network-management-v1/pom.xml b/java-network-management/proto-google-cloud-network-management-v1/pom.xml index ce0c37fdee5e..e8514c9da160 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/pom.xml +++ b/java-network-management/proto-google-cloud-network-management-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-network-management-v1 - 1.46.0 + 1.47.0-SNAPSHOT proto-google-cloud-network-management-v1 Proto library for google-cloud-network-management com.google.cloud google-cloud-network-management-parent - 1.46.0 + 1.47.0-SNAPSHOT diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/pom.xml b/java-network-management/proto-google-cloud-network-management-v1beta1/pom.xml index dba0dccb4745..3bbfc8c0d894 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/pom.xml +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-network-management-v1beta1 - 0.48.0 + 0.49.0-SNAPSHOT proto-google-cloud-network-management-v1beta1 Proto library for google-cloud-network-management com.google.cloud google-cloud-network-management-parent - 1.46.0 + 1.47.0-SNAPSHOT diff --git a/java-network-security/google-cloud-network-security-bom/pom.xml b/java-network-security/google-cloud-network-security-bom/pom.xml index da1cbdd34768..558863cb2ed6 100644 --- a/java-network-security/google-cloud-network-security-bom/pom.xml +++ b/java-network-security/google-cloud-network-security-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-network-security-bom - 0.48.0 + 0.49.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-network-security - 0.48.0 + 0.49.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-network-security-v1beta1 - 0.48.0 + 0.49.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-network-security-v1 - 0.48.0 + 0.49.0-SNAPSHOT com.google.api.grpc proto-google-cloud-network-security-v1beta1 - 0.48.0 + 0.49.0-SNAPSHOT com.google.api.grpc proto-google-cloud-network-security-v1 - 0.48.0 + 0.49.0-SNAPSHOT diff --git a/java-network-security/google-cloud-network-security/pom.xml b/java-network-security/google-cloud-network-security/pom.xml index 69bc9bf83f7b..837abf6b5424 100644 --- a/java-network-security/google-cloud-network-security/pom.xml +++ b/java-network-security/google-cloud-network-security/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-network-security - 0.48.0 + 0.49.0-SNAPSHOT jar Google Network Security API Network Security API n/a com.google.cloud google-cloud-network-security-parent - 0.48.0 + 0.49.0-SNAPSHOT google-cloud-network-security diff --git a/java-network-security/grpc-google-cloud-network-security-v1/pom.xml b/java-network-security/grpc-google-cloud-network-security-v1/pom.xml index 415e51ff15dc..5aab39a7a4a2 100644 --- a/java-network-security/grpc-google-cloud-network-security-v1/pom.xml +++ b/java-network-security/grpc-google-cloud-network-security-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-network-security-v1 - 0.48.0 + 0.49.0-SNAPSHOT grpc-google-cloud-network-security-v1 GRPC library for google-cloud-network-security com.google.cloud google-cloud-network-security-parent - 0.48.0 + 0.49.0-SNAPSHOT diff --git a/java-network-security/grpc-google-cloud-network-security-v1beta1/pom.xml b/java-network-security/grpc-google-cloud-network-security-v1beta1/pom.xml index 46b92e964197..10965440c350 100644 --- a/java-network-security/grpc-google-cloud-network-security-v1beta1/pom.xml +++ b/java-network-security/grpc-google-cloud-network-security-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-network-security-v1beta1 - 0.48.0 + 0.49.0-SNAPSHOT grpc-google-cloud-network-security-v1beta1 GRPC library for google-cloud-network-security com.google.cloud google-cloud-network-security-parent - 0.48.0 + 0.49.0-SNAPSHOT diff --git a/java-network-security/pom.xml b/java-network-security/pom.xml index 070626805ebc..4d2eab2e053c 100644 --- a/java-network-security/pom.xml +++ b/java-network-security/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-network-security-parent pom - 0.48.0 + 0.49.0-SNAPSHOT Google Network Security API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-network-security - 0.48.0 + 0.49.0-SNAPSHOT com.google.api.grpc proto-google-cloud-network-security-v1 - 0.48.0 + 0.49.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-network-security-v1 - 0.48.0 + 0.49.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-network-security-v1beta1 - 0.48.0 + 0.49.0-SNAPSHOT com.google.api.grpc proto-google-cloud-network-security-v1beta1 - 0.48.0 + 0.49.0-SNAPSHOT diff --git a/java-network-security/proto-google-cloud-network-security-v1/pom.xml b/java-network-security/proto-google-cloud-network-security-v1/pom.xml index 04e23fcbb1e8..9397dd408072 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/pom.xml +++ b/java-network-security/proto-google-cloud-network-security-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-network-security-v1 - 0.48.0 + 0.49.0-SNAPSHOT proto-google-cloud-network-security-v1 Proto library for google-cloud-network-security com.google.cloud google-cloud-network-security-parent - 0.48.0 + 0.49.0-SNAPSHOT diff --git a/java-network-security/proto-google-cloud-network-security-v1beta1/pom.xml b/java-network-security/proto-google-cloud-network-security-v1beta1/pom.xml index 9cb0aee1ca7a..5756f15a1508 100644 --- a/java-network-security/proto-google-cloud-network-security-v1beta1/pom.xml +++ b/java-network-security/proto-google-cloud-network-security-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-network-security-v1beta1 - 0.48.0 + 0.49.0-SNAPSHOT proto-google-cloud-network-security-v1beta1 Proto library for google-cloud-network-security com.google.cloud google-cloud-network-security-parent - 0.48.0 + 0.49.0-SNAPSHOT diff --git a/java-networkconnectivity/google-cloud-networkconnectivity-bom/pom.xml b/java-networkconnectivity/google-cloud-networkconnectivity-bom/pom.xml index 3eacb0781778..93141b04f121 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity-bom/pom.xml +++ b/java-networkconnectivity/google-cloud-networkconnectivity-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-networkconnectivity-bom - 1.44.0 + 1.45.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-networkconnectivity - 1.44.0 + 1.45.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-networkconnectivity-v1alpha1 - 0.50.0 + 0.51.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-networkconnectivity-v1 - 1.44.0 + 1.45.0-SNAPSHOT com.google.api.grpc proto-google-cloud-networkconnectivity-v1alpha1 - 0.50.0 + 0.51.0-SNAPSHOT com.google.api.grpc proto-google-cloud-networkconnectivity-v1 - 1.44.0 + 1.45.0-SNAPSHOT diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/pom.xml b/java-networkconnectivity/google-cloud-networkconnectivity/pom.xml index 20028e0d383e..cf44add780a4 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/pom.xml +++ b/java-networkconnectivity/google-cloud-networkconnectivity/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-networkconnectivity - 1.44.0 + 1.45.0-SNAPSHOT jar Google Network Connectivity Center Google's suite of products that provide enterprise connectivity from your on-premises network or from another cloud provider to your Virtual Private Cloud (VPC) network com.google.cloud google-cloud-networkconnectivity-parent - 1.44.0 + 1.45.0-SNAPSHOT google-cloud-networkconnectivity diff --git a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/pom.xml b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/pom.xml index f0750897448b..9c16a9c4626d 100644 --- a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/pom.xml +++ b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-networkconnectivity-v1 - 1.44.0 + 1.45.0-SNAPSHOT grpc-google-cloud-networkconnectivity-v1 GRPC library for google-cloud-networkconnectivity com.google.cloud google-cloud-networkconnectivity-parent - 1.44.0 + 1.45.0-SNAPSHOT diff --git a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1alpha1/pom.xml b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1alpha1/pom.xml index 7dc2f490ae2f..2560e84e9348 100644 --- a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1alpha1/pom.xml +++ b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-networkconnectivity-v1alpha1 - 0.50.0 + 0.51.0-SNAPSHOT grpc-google-cloud-networkconnectivity-v1alpha1 GRPC library for google-cloud-networkconnectivity com.google.cloud google-cloud-networkconnectivity-parent - 1.44.0 + 1.45.0-SNAPSHOT diff --git a/java-networkconnectivity/pom.xml b/java-networkconnectivity/pom.xml index e2a7d8007245..232bc3eb3ea1 100644 --- a/java-networkconnectivity/pom.xml +++ b/java-networkconnectivity/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-networkconnectivity-parent pom - 1.44.0 + 1.45.0-SNAPSHOT Google Network Connectivity Center Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-networkconnectivity - 1.44.0 + 1.45.0-SNAPSHOT com.google.api.grpc proto-google-cloud-networkconnectivity-v1 - 1.44.0 + 1.45.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-networkconnectivity-v1 - 1.44.0 + 1.45.0-SNAPSHOT com.google.api.grpc proto-google-cloud-networkconnectivity-v1alpha1 - 0.50.0 + 0.51.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-networkconnectivity-v1alpha1 - 0.50.0 + 0.51.0-SNAPSHOT diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/pom.xml b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/pom.xml index 990a5357285f..2cd0677d2132 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/pom.xml +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-networkconnectivity-v1 - 1.44.0 + 1.45.0-SNAPSHOT proto-google-cloud-networkconnectivity-v1 Proto library for google-cloud-networkconnectivity com.google.cloud google-cloud-networkconnectivity-parent - 1.44.0 + 1.45.0-SNAPSHOT diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/pom.xml b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/pom.xml index a0a0b9543876..adc367f839c8 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/pom.xml +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-networkconnectivity-v1alpha1 - 0.50.0 + 0.51.0-SNAPSHOT proto-google-cloud-networkconnectivity-v1alpha1 Proto library for google-cloud-networkconnectivity com.google.cloud google-cloud-networkconnectivity-parent - 1.44.0 + 1.45.0-SNAPSHOT diff --git a/java-networkservices/google-cloud-networkservices-bom/pom.xml b/java-networkservices/google-cloud-networkservices-bom/pom.xml index 8462f417fba2..4ae24bfd8023 100644 --- a/java-networkservices/google-cloud-networkservices-bom/pom.xml +++ b/java-networkservices/google-cloud-networkservices-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-networkservices-bom - 0.1.0 + 0.2.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-networkservices - 0.1.0 + 0.2.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-networkservices-v1 - 0.1.0 + 0.2.0-SNAPSHOT com.google.api.grpc proto-google-cloud-networkservices-v1 - 0.1.0 + 0.2.0-SNAPSHOT diff --git a/java-networkservices/google-cloud-networkservices/pom.xml b/java-networkservices/google-cloud-networkservices/pom.xml index 553879029cb9..4200bb55ad34 100644 --- a/java-networkservices/google-cloud-networkservices/pom.xml +++ b/java-networkservices/google-cloud-networkservices/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-networkservices - 0.1.0 + 0.2.0-SNAPSHOT jar Google Network Services API Network Services API Google Cloud offers a broad portfolio of networking services built on top of planet-scale infrastructure that leverages automation, advanced AI, and programmability, enabling enterprises to connect, scale, secure, modernize and optimize their infrastructure. com.google.cloud google-cloud-networkservices-parent - 0.1.0 + 0.2.0-SNAPSHOT google-cloud-networkservices diff --git a/java-networkservices/grpc-google-cloud-networkservices-v1/pom.xml b/java-networkservices/grpc-google-cloud-networkservices-v1/pom.xml index a1ba4778bef5..4c55cf401b26 100644 --- a/java-networkservices/grpc-google-cloud-networkservices-v1/pom.xml +++ b/java-networkservices/grpc-google-cloud-networkservices-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-networkservices-v1 - 0.1.0 + 0.2.0-SNAPSHOT grpc-google-cloud-networkservices-v1 GRPC library for google-cloud-networkservices com.google.cloud google-cloud-networkservices-parent - 0.1.0 + 0.2.0-SNAPSHOT diff --git a/java-networkservices/pom.xml b/java-networkservices/pom.xml index ca536adeecd4..7c66fed759e2 100644 --- a/java-networkservices/pom.xml +++ b/java-networkservices/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-networkservices-parent pom - 0.1.0 + 0.2.0-SNAPSHOT Google Network Services API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-networkservices - 0.1.0 + 0.2.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-networkservices-v1 - 0.1.0 + 0.2.0-SNAPSHOT com.google.api.grpc proto-google-cloud-networkservices-v1 - 0.1.0 + 0.2.0-SNAPSHOT diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/pom.xml b/java-networkservices/proto-google-cloud-networkservices-v1/pom.xml index c297c304994f..65ee093c4825 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/pom.xml +++ b/java-networkservices/proto-google-cloud-networkservices-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-networkservices-v1 - 0.1.0 + 0.2.0-SNAPSHOT proto-google-cloud-networkservices-v1 Proto library for google-cloud-networkservices com.google.cloud google-cloud-networkservices-parent - 0.1.0 + 0.2.0-SNAPSHOT diff --git a/java-notebooks/google-cloud-notebooks-bom/pom.xml b/java-notebooks/google-cloud-notebooks-bom/pom.xml index d5baa26d4e79..f501d134ccc0 100644 --- a/java-notebooks/google-cloud-notebooks-bom/pom.xml +++ b/java-notebooks/google-cloud-notebooks-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-notebooks-bom - 1.43.0 + 1.44.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,37 +27,37 @@ com.google.cloud google-cloud-notebooks - 1.43.0 + 1.44.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-notebooks-v1beta1 - 0.50.0 + 0.51.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-notebooks-v1 - 1.43.0 + 1.44.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-notebooks-v2 - 1.43.0 + 1.44.0-SNAPSHOT com.google.api.grpc proto-google-cloud-notebooks-v1beta1 - 0.50.0 + 0.51.0-SNAPSHOT com.google.api.grpc proto-google-cloud-notebooks-v1 - 1.43.0 + 1.44.0-SNAPSHOT com.google.api.grpc proto-google-cloud-notebooks-v2 - 1.43.0 + 1.44.0-SNAPSHOT diff --git a/java-notebooks/google-cloud-notebooks/pom.xml b/java-notebooks/google-cloud-notebooks/pom.xml index ad40c25a093c..f0db480712b0 100644 --- a/java-notebooks/google-cloud-notebooks/pom.xml +++ b/java-notebooks/google-cloud-notebooks/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-notebooks - 1.43.0 + 1.44.0-SNAPSHOT jar Google AI Platform Notebooks is a managed service that offers an integrated and secure JupyterLab environment for data scientists and machine learning developers to experiment, develop, and deploy models into production. Users can create instances running JupyterLab that come pre-installed with the latest data science and machine learning frameworks in a single click. com.google.cloud google-cloud-notebooks-parent - 1.43.0 + 1.44.0-SNAPSHOT google-cloud-notebooks diff --git a/java-notebooks/grpc-google-cloud-notebooks-v1/pom.xml b/java-notebooks/grpc-google-cloud-notebooks-v1/pom.xml index 4a9dfd6fcfc3..d67d5dec290a 100644 --- a/java-notebooks/grpc-google-cloud-notebooks-v1/pom.xml +++ b/java-notebooks/grpc-google-cloud-notebooks-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-notebooks-v1 - 1.43.0 + 1.44.0-SNAPSHOT grpc-google-cloud-notebooks-v1 GRPC library for google-cloud-notebooks com.google.cloud google-cloud-notebooks-parent - 1.43.0 + 1.44.0-SNAPSHOT diff --git a/java-notebooks/grpc-google-cloud-notebooks-v1beta1/pom.xml b/java-notebooks/grpc-google-cloud-notebooks-v1beta1/pom.xml index 616218372546..de915aa9284c 100644 --- a/java-notebooks/grpc-google-cloud-notebooks-v1beta1/pom.xml +++ b/java-notebooks/grpc-google-cloud-notebooks-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-notebooks-v1beta1 - 0.50.0 + 0.51.0-SNAPSHOT grpc-google-cloud-notebooks-v1beta1 GRPC library for grpc-google-cloud-notebooks-v1beta1 com.google.cloud google-cloud-notebooks-parent - 1.43.0 + 1.44.0-SNAPSHOT diff --git a/java-notebooks/grpc-google-cloud-notebooks-v2/pom.xml b/java-notebooks/grpc-google-cloud-notebooks-v2/pom.xml index 4c0985099730..4f52312dc90c 100644 --- a/java-notebooks/grpc-google-cloud-notebooks-v2/pom.xml +++ b/java-notebooks/grpc-google-cloud-notebooks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-notebooks-v2 - 1.43.0 + 1.44.0-SNAPSHOT grpc-google-cloud-notebooks-v2 GRPC library for google-cloud-notebooks com.google.cloud google-cloud-notebooks-parent - 1.43.0 + 1.44.0-SNAPSHOT diff --git a/java-notebooks/pom.xml b/java-notebooks/pom.xml index 22c5620aa729..7b0245382f47 100644 --- a/java-notebooks/pom.xml +++ b/java-notebooks/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-notebooks-parent pom - 1.43.0 + 1.44.0-SNAPSHOT Google AI Platform Notebooks Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.cloud google-cloud-notebooks - 1.43.0 + 1.44.0-SNAPSHOT com.google.api.grpc proto-google-cloud-notebooks-v2 - 1.43.0 + 1.44.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-notebooks-v2 - 1.43.0 + 1.44.0-SNAPSHOT com.google.api.grpc proto-google-cloud-notebooks-v1 - 1.43.0 + 1.44.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-notebooks-v1 - 1.43.0 + 1.44.0-SNAPSHOT com.google.api.grpc proto-google-cloud-notebooks-v1beta1 - 0.50.0 + 0.51.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-notebooks-v1beta1 - 0.50.0 + 0.51.0-SNAPSHOT diff --git a/java-notebooks/proto-google-cloud-notebooks-v1/pom.xml b/java-notebooks/proto-google-cloud-notebooks-v1/pom.xml index c1f6a2ad4272..d54e337be04e 100644 --- a/java-notebooks/proto-google-cloud-notebooks-v1/pom.xml +++ b/java-notebooks/proto-google-cloud-notebooks-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-notebooks-v1 - 1.43.0 + 1.44.0-SNAPSHOT proto-google-cloud-notebooks-v1 Proto library for google-cloud-notebooks com.google.cloud google-cloud-notebooks-parent - 1.43.0 + 1.44.0-SNAPSHOT diff --git a/java-notebooks/proto-google-cloud-notebooks-v1beta1/pom.xml b/java-notebooks/proto-google-cloud-notebooks-v1beta1/pom.xml index 5842178c28b6..86f26a45a129 100644 --- a/java-notebooks/proto-google-cloud-notebooks-v1beta1/pom.xml +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-notebooks-v1beta1 - 0.50.0 + 0.51.0-SNAPSHOT proto-google-cloud-notebooks-v1beta1 PROTO library for proto-google-cloud-notebooks-v1beta1 com.google.cloud google-cloud-notebooks-parent - 1.43.0 + 1.44.0-SNAPSHOT diff --git a/java-notebooks/proto-google-cloud-notebooks-v2/pom.xml b/java-notebooks/proto-google-cloud-notebooks-v2/pom.xml index 065c6821da41..a402f0ecb16e 100644 --- a/java-notebooks/proto-google-cloud-notebooks-v2/pom.xml +++ b/java-notebooks/proto-google-cloud-notebooks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-notebooks-v2 - 1.43.0 + 1.44.0-SNAPSHOT proto-google-cloud-notebooks-v2 Proto library for google-cloud-notebooks com.google.cloud google-cloud-notebooks-parent - 1.43.0 + 1.44.0-SNAPSHOT diff --git a/java-notification/pom.xml b/java-notification/pom.xml index c98e341507b7..1bf461c7cc4c 100644 --- a/java-notification/pom.xml +++ b/java-notification/pom.xml @@ -5,7 +5,7 @@ 4.0.0 com.google.cloud google-cloud-notification - 0.163.0-beta + 0.164.0-beta-SNAPSHOT jar Google Cloud Pub/Sub Notifications for GCS @@ -15,7 +15,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-optimization/google-cloud-optimization-bom/pom.xml b/java-optimization/google-cloud-optimization-bom/pom.xml index 60c8135547a6..11b7b61c554b 100644 --- a/java-optimization/google-cloud-optimization-bom/pom.xml +++ b/java-optimization/google-cloud-optimization-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-optimization-bom - 1.43.0 + 1.44.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-optimization - 1.43.0 + 1.44.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-optimization-v1 - 1.43.0 + 1.44.0-SNAPSHOT com.google.api.grpc proto-google-cloud-optimization-v1 - 1.43.0 + 1.44.0-SNAPSHOT diff --git a/java-optimization/google-cloud-optimization/pom.xml b/java-optimization/google-cloud-optimization/pom.xml index 9dae628c9661..fe8c45857466 100644 --- a/java-optimization/google-cloud-optimization/pom.xml +++ b/java-optimization/google-cloud-optimization/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-optimization - 1.43.0 + 1.44.0-SNAPSHOT jar Google Cloud Fleet Routing Cloud Fleet Routing is a managed routing service that takes your list of orders, vehicles, constraints, and objectives and returns the most efficient plan for your entire fleet in near real-time. com.google.cloud google-cloud-optimization-parent - 1.43.0 + 1.44.0-SNAPSHOT google-cloud-optimization diff --git a/java-optimization/grpc-google-cloud-optimization-v1/pom.xml b/java-optimization/grpc-google-cloud-optimization-v1/pom.xml index 15115eecf8bc..cbd57af5bb05 100644 --- a/java-optimization/grpc-google-cloud-optimization-v1/pom.xml +++ b/java-optimization/grpc-google-cloud-optimization-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-optimization-v1 - 1.43.0 + 1.44.0-SNAPSHOT grpc-google-cloud-optimization-v1 GRPC library for google-cloud-optimization com.google.cloud google-cloud-optimization-parent - 1.43.0 + 1.44.0-SNAPSHOT diff --git a/java-optimization/pom.xml b/java-optimization/pom.xml index b6dce251d798..c4735617120a 100644 --- a/java-optimization/pom.xml +++ b/java-optimization/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-optimization-parent pom - 1.43.0 + 1.44.0-SNAPSHOT Google Cloud Fleet Routing Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-optimization - 1.43.0 + 1.44.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-optimization-v1 - 1.43.0 + 1.44.0-SNAPSHOT com.google.api.grpc proto-google-cloud-optimization-v1 - 1.43.0 + 1.44.0-SNAPSHOT diff --git a/java-optimization/proto-google-cloud-optimization-v1/pom.xml b/java-optimization/proto-google-cloud-optimization-v1/pom.xml index 47560b900c76..508720502592 100644 --- a/java-optimization/proto-google-cloud-optimization-v1/pom.xml +++ b/java-optimization/proto-google-cloud-optimization-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-optimization-v1 - 1.43.0 + 1.44.0-SNAPSHOT proto-google-cloud-optimization-v1 Proto library for google-cloud-optimization com.google.cloud google-cloud-optimization-parent - 1.43.0 + 1.44.0-SNAPSHOT diff --git a/java-orchestration-airflow/google-cloud-orchestration-airflow-bom/pom.xml b/java-orchestration-airflow/google-cloud-orchestration-airflow-bom/pom.xml index 59f185b4598f..ab60cb54510b 100644 --- a/java-orchestration-airflow/google-cloud-orchestration-airflow-bom/pom.xml +++ b/java-orchestration-airflow/google-cloud-orchestration-airflow-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-orchestration-airflow-bom - 1.45.0 + 1.46.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-orchestration-airflow - 1.45.0 + 1.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-orchestration-airflow-v1 - 1.45.0 + 1.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-orchestration-airflow-v1beta1 - 0.48.0 + 0.49.0-SNAPSHOT com.google.api.grpc proto-google-cloud-orchestration-airflow-v1 - 1.45.0 + 1.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-orchestration-airflow-v1beta1 - 0.48.0 + 0.49.0-SNAPSHOT diff --git a/java-orchestration-airflow/google-cloud-orchestration-airflow/pom.xml b/java-orchestration-airflow/google-cloud-orchestration-airflow/pom.xml index 7d285bf5ba2e..47cf4950e4b1 100644 --- a/java-orchestration-airflow/google-cloud-orchestration-airflow/pom.xml +++ b/java-orchestration-airflow/google-cloud-orchestration-airflow/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-orchestration-airflow - 1.45.0 + 1.46.0-SNAPSHOT jar Google Cloud Composer Cloud Composer is a managed Apache Airflow service that helps you create, schedule, monitor and manage workflows. Cloud Composer automation helps you create Airflow environments quickly and use Airflow-native tools, such as the powerful Airflow web interface and command line tools, so you can focus on your workflows and not your infrastructure. com.google.cloud google-cloud-orchestration-airflow-parent - 1.45.0 + 1.46.0-SNAPSHOT google-cloud-orchestration-airflow diff --git a/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1/pom.xml b/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1/pom.xml index a03e8774b441..c84416840931 100644 --- a/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1/pom.xml +++ b/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-orchestration-airflow-v1 - 1.45.0 + 1.46.0-SNAPSHOT grpc-google-cloud-orchestration-airflow-v1 GRPC library for google-cloud-orchestration-airflow com.google.cloud google-cloud-orchestration-airflow-parent - 1.45.0 + 1.46.0-SNAPSHOT diff --git a/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1beta1/pom.xml b/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1beta1/pom.xml index 8cab5919d66a..308b46a8dc99 100644 --- a/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1beta1/pom.xml +++ b/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-orchestration-airflow-v1beta1 - 0.48.0 + 0.49.0-SNAPSHOT grpc-google-cloud-orchestration-airflow-v1beta1 GRPC library for google-cloud-orchestration-airflow com.google.cloud google-cloud-orchestration-airflow-parent - 1.45.0 + 1.46.0-SNAPSHOT diff --git a/java-orchestration-airflow/pom.xml b/java-orchestration-airflow/pom.xml index 99402c694919..dcd4c6eca23a 100644 --- a/java-orchestration-airflow/pom.xml +++ b/java-orchestration-airflow/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-orchestration-airflow-parent pom - 1.45.0 + 1.46.0-SNAPSHOT Google Cloud Composer Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-orchestration-airflow - 1.45.0 + 1.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-orchestration-airflow-v1 - 1.45.0 + 1.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-orchestration-airflow-v1beta1 - 0.48.0 + 0.49.0-SNAPSHOT com.google.api.grpc proto-google-cloud-orchestration-airflow-v1 - 1.45.0 + 1.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-orchestration-airflow-v1beta1 - 0.48.0 + 0.49.0-SNAPSHOT diff --git a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/pom.xml b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/pom.xml index e411675ce280..21fae9ec0d40 100644 --- a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/pom.xml +++ b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-orchestration-airflow-v1 - 1.45.0 + 1.46.0-SNAPSHOT proto-google-cloud-orchestration-airflow-v1 Proto library for google-cloud-orchestration-airflow com.google.cloud google-cloud-orchestration-airflow-parent - 1.45.0 + 1.46.0-SNAPSHOT diff --git a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/pom.xml b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/pom.xml index 3ee25779b008..750fa68e12d8 100644 --- a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/pom.xml +++ b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-orchestration-airflow-v1beta1 - 0.48.0 + 0.49.0-SNAPSHOT proto-google-cloud-orchestration-airflow-v1beta1 Proto library for google-cloud-orchestration-airflow com.google.cloud google-cloud-orchestration-airflow-parent - 1.45.0 + 1.46.0-SNAPSHOT diff --git a/java-orgpolicy/google-cloud-orgpolicy-bom/pom.xml b/java-orgpolicy/google-cloud-orgpolicy-bom/pom.xml index 86425085e1b9..94b67827f9e3 100644 --- a/java-orgpolicy/google-cloud-orgpolicy-bom/pom.xml +++ b/java-orgpolicy/google-cloud-orgpolicy-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-orgpolicy-bom - 2.45.0 + 2.46.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -26,22 +26,22 @@ com.google.cloud google-cloud-orgpolicy - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-orgpolicy-v2 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-orgpolicy-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-orgpolicy-v2 - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-orgpolicy/google-cloud-orgpolicy/pom.xml b/java-orgpolicy/google-cloud-orgpolicy/pom.xml index 9a64c17fc1ea..70c2eddebe5e 100644 --- a/java-orgpolicy/google-cloud-orgpolicy/pom.xml +++ b/java-orgpolicy/google-cloud-orgpolicy/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-orgpolicy - 2.45.0 + 2.46.0-SNAPSHOT Google Cloud Org Policy The Org Policy API allows users to configure governance rules on their GCP resources across the Cloud Resource Hierarchy. @@ -11,7 +11,7 @@ com.google.cloud google-cloud-orgpolicy-parent - 2.45.0 + 2.46.0-SNAPSHOT google-cloud-orgpolicy diff --git a/java-orgpolicy/grpc-google-cloud-orgpolicy-v2/pom.xml b/java-orgpolicy/grpc-google-cloud-orgpolicy-v2/pom.xml index 259765cff7af..ef388b5baae9 100644 --- a/java-orgpolicy/grpc-google-cloud-orgpolicy-v2/pom.xml +++ b/java-orgpolicy/grpc-google-cloud-orgpolicy-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-orgpolicy-v2 - 2.45.0 + 2.46.0-SNAPSHOT grpc-google-cloud-orgpolicy-v2 GRPC library for grpc-google-cloud-orgpolicy-v2 com.google.cloud google-cloud-orgpolicy-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-orgpolicy/pom.xml b/java-orgpolicy/pom.xml index ecf6acdd68a2..d17494cb0d8e 100644 --- a/java-orgpolicy/pom.xml +++ b/java-orgpolicy/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-orgpolicy-parent pom - 2.45.0 + 2.46.0-SNAPSHOT Google Cloud Org Policy Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,22 +29,22 @@ com.google.api.grpc google-cloud-orgpolicy - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-orgpolicy-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-orgpolicy-v2 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-orgpolicy-v2 - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-orgpolicy/proto-google-cloud-orgpolicy-v1/pom.xml b/java-orgpolicy/proto-google-cloud-orgpolicy-v1/pom.xml index 6bcbdc4e50c5..05084c9fc222 100644 --- a/java-orgpolicy/proto-google-cloud-orgpolicy-v1/pom.xml +++ b/java-orgpolicy/proto-google-cloud-orgpolicy-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-orgpolicy-v1 - 2.45.0 + 2.46.0-SNAPSHOT proto-google-cloud-orgpolicy-v1 PROTO library for proto-google-cloud-orgpolicy-v1 com.google.cloud google-cloud-orgpolicy-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-orgpolicy/proto-google-cloud-orgpolicy-v2/pom.xml b/java-orgpolicy/proto-google-cloud-orgpolicy-v2/pom.xml index 8dd95deb8544..de01a1a20a41 100644 --- a/java-orgpolicy/proto-google-cloud-orgpolicy-v2/pom.xml +++ b/java-orgpolicy/proto-google-cloud-orgpolicy-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-orgpolicy-v2 - 2.45.0 + 2.46.0-SNAPSHOT proto-google-cloud-orgpolicy-v2 PROTO library for proto-google-cloud-orgpolicy-v2 com.google.cloud google-cloud-orgpolicy-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-os-config/google-cloud-os-config-bom/pom.xml b/java-os-config/google-cloud-os-config-bom/pom.xml index 128aefef20f2..2c6decfdf487 100644 --- a/java-os-config/google-cloud-os-config-bom/pom.xml +++ b/java-os-config/google-cloud-os-config-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-os-config-bom - 2.47.0 + 2.48.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -23,37 +23,37 @@ com.google.cloud google-cloud-os-config - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-os-config-v1 - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-os-config-v1beta - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-os-config-v1alpha - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc proto-google-cloud-os-config-v1 - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc proto-google-cloud-os-config-v1alpha - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc proto-google-cloud-os-config-v1beta - 2.47.0 + 2.48.0-SNAPSHOT diff --git a/java-os-config/google-cloud-os-config/pom.xml b/java-os-config/google-cloud-os-config/pom.xml index b1059002aa9a..b371be0100ac 100644 --- a/java-os-config/google-cloud-os-config/pom.xml +++ b/java-os-config/google-cloud-os-config/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-os-config - 2.47.0 + 2.48.0-SNAPSHOT jar Google OS Config API provides OS management tools that can be used for patch management, patch compliance, and configuration management on VM instances. com.google.cloud google-cloud-os-config-parent - 2.47.0 + 2.48.0-SNAPSHOT google-cloud-os-config diff --git a/java-os-config/grpc-google-cloud-os-config-v1/pom.xml b/java-os-config/grpc-google-cloud-os-config-v1/pom.xml index 0211f585a1f1..a9faede640af 100644 --- a/java-os-config/grpc-google-cloud-os-config-v1/pom.xml +++ b/java-os-config/grpc-google-cloud-os-config-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-os-config-v1 - 2.47.0 + 2.48.0-SNAPSHOT grpc-google-cloud-os-config-v1 GRPC library for grpc-google-cloud-os-config-v1 com.google.cloud google-cloud-os-config-parent - 2.47.0 + 2.48.0-SNAPSHOT diff --git a/java-os-config/grpc-google-cloud-os-config-v1alpha/pom.xml b/java-os-config/grpc-google-cloud-os-config-v1alpha/pom.xml index c3d8002b25e9..e2f82cacc504 100644 --- a/java-os-config/grpc-google-cloud-os-config-v1alpha/pom.xml +++ b/java-os-config/grpc-google-cloud-os-config-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-os-config-v1alpha - 2.47.0 + 2.48.0-SNAPSHOT grpc-google-cloud-os-config-v1alpha GRPC library for google-cloud-os-config com.google.cloud google-cloud-os-config-parent - 2.47.0 + 2.48.0-SNAPSHOT diff --git a/java-os-config/grpc-google-cloud-os-config-v1beta/pom.xml b/java-os-config/grpc-google-cloud-os-config-v1beta/pom.xml index 238bbc642a8d..6d8d31a8e5f3 100644 --- a/java-os-config/grpc-google-cloud-os-config-v1beta/pom.xml +++ b/java-os-config/grpc-google-cloud-os-config-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-os-config-v1beta - 2.47.0 + 2.48.0-SNAPSHOT grpc-google-cloud-os-config-v1beta GRPC library for google-cloud-os-config com.google.cloud google-cloud-os-config-parent - 2.47.0 + 2.48.0-SNAPSHOT diff --git a/java-os-config/pom.xml b/java-os-config/pom.xml index 39deb1e8adb2..f35795eafd86 100644 --- a/java-os-config/pom.xml +++ b/java-os-config/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-os-config-parent pom - 2.47.0 + 2.48.0-SNAPSHOT Google OS Config API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.cloud google-cloud-os-config - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc proto-google-cloud-os-config-v1beta - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc proto-google-cloud-os-config-v1alpha - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-os-config-v1alpha - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-os-config-v1beta - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc proto-google-cloud-os-config-v1 - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-os-config-v1 - 2.47.0 + 2.48.0-SNAPSHOT diff --git a/java-os-config/proto-google-cloud-os-config-v1/pom.xml b/java-os-config/proto-google-cloud-os-config-v1/pom.xml index b9297980667a..464ea8f010c9 100644 --- a/java-os-config/proto-google-cloud-os-config-v1/pom.xml +++ b/java-os-config/proto-google-cloud-os-config-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-os-config-v1 - 2.47.0 + 2.48.0-SNAPSHOT proto-google-cloud-os-config-v1 PROTO library for proto-google-cloud-os-config-v1 com.google.cloud google-cloud-os-config-parent - 2.47.0 + 2.48.0-SNAPSHOT diff --git a/java-os-config/proto-google-cloud-os-config-v1alpha/pom.xml b/java-os-config/proto-google-cloud-os-config-v1alpha/pom.xml index 3c668a9b9e66..3f92ba08559c 100644 --- a/java-os-config/proto-google-cloud-os-config-v1alpha/pom.xml +++ b/java-os-config/proto-google-cloud-os-config-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-os-config-v1alpha - 2.47.0 + 2.48.0-SNAPSHOT proto-google-cloud-os-config-v1alpha Proto library for google-cloud-os-config com.google.cloud google-cloud-os-config-parent - 2.47.0 + 2.48.0-SNAPSHOT diff --git a/java-os-config/proto-google-cloud-os-config-v1beta/pom.xml b/java-os-config/proto-google-cloud-os-config-v1beta/pom.xml index 45b73e680e59..6391c77a96d5 100644 --- a/java-os-config/proto-google-cloud-os-config-v1beta/pom.xml +++ b/java-os-config/proto-google-cloud-os-config-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-os-config-v1beta - 2.47.0 + 2.48.0-SNAPSHOT proto-google-cloud-os-config-v1beta Proto library for google-cloud-os-config com.google.cloud google-cloud-os-config-parent - 2.47.0 + 2.48.0-SNAPSHOT diff --git a/java-os-login/google-cloud-os-login-bom/pom.xml b/java-os-login/google-cloud-os-login-bom/pom.xml index 3990a3124bb1..405addc59e4f 100644 --- a/java-os-login/google-cloud-os-login-bom/pom.xml +++ b/java-os-login/google-cloud-os-login-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-os-login-bom - 2.44.0 + 2.45.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-os-login - 2.44.0 + 2.45.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-os-login-v1 - 2.44.0 + 2.45.0-SNAPSHOT com.google.api.grpc proto-google-cloud-os-login-v1 - 2.44.0 + 2.45.0-SNAPSHOT diff --git a/java-os-login/google-cloud-os-login/pom.xml b/java-os-login/google-cloud-os-login/pom.xml index f5259f540e41..bdb2e37af5b3 100644 --- a/java-os-login/google-cloud-os-login/pom.xml +++ b/java-os-login/google-cloud-os-login/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-os-login - 2.44.0 + 2.45.0-SNAPSHOT jar Google Cloud OS Login Java idiomatic client for Google Cloud OS Login com.google.cloud google-cloud-os-login-parent - 2.44.0 + 2.45.0-SNAPSHOT google-cloud-os-login diff --git a/java-os-login/grpc-google-cloud-os-login-v1/pom.xml b/java-os-login/grpc-google-cloud-os-login-v1/pom.xml index 3048ea5fb70b..fdf99af12563 100644 --- a/java-os-login/grpc-google-cloud-os-login-v1/pom.xml +++ b/java-os-login/grpc-google-cloud-os-login-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-os-login-v1 - 2.44.0 + 2.45.0-SNAPSHOT grpc-google-cloud-os-login-v1 GRPC library for grpc-google-cloud-os-login-v1 com.google.cloud google-cloud-os-login-parent - 2.44.0 + 2.45.0-SNAPSHOT diff --git a/java-os-login/pom.xml b/java-os-login/pom.xml index 9787b910d6d6..5f3b825faa3e 100644 --- a/java-os-login/pom.xml +++ b/java-os-login/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-os-login-parent pom - 2.44.0 + 2.45.0-SNAPSHOT Google Cloud OS Login Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.api.grpc proto-google-cloud-os-login-v1 - 2.44.0 + 2.45.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-os-login-v1 - 2.44.0 + 2.45.0-SNAPSHOT com.google.cloud google-cloud-os-login - 2.44.0 + 2.45.0-SNAPSHOT diff --git a/java-os-login/proto-google-cloud-os-login-v1/pom.xml b/java-os-login/proto-google-cloud-os-login-v1/pom.xml index 9ade4ee141e5..82198a6b798e 100644 --- a/java-os-login/proto-google-cloud-os-login-v1/pom.xml +++ b/java-os-login/proto-google-cloud-os-login-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-os-login-v1 - 2.44.0 + 2.45.0-SNAPSHOT proto-google-cloud-os-login-v1 PROTO library for proto-google-cloud-os-login-v1 com.google.cloud google-cloud-os-login-parent - 2.44.0 + 2.45.0-SNAPSHOT diff --git a/java-parallelstore/google-cloud-parallelstore-bom/pom.xml b/java-parallelstore/google-cloud-parallelstore-bom/pom.xml index bfdb2c70d49a..df5141740935 100644 --- a/java-parallelstore/google-cloud-parallelstore-bom/pom.xml +++ b/java-parallelstore/google-cloud-parallelstore-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-parallelstore-bom - 0.8.0 + 0.9.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-parallelstore - 0.8.0 + 0.9.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-parallelstore-v1beta - 0.8.0 + 0.9.0-SNAPSHOT com.google.api.grpc proto-google-cloud-parallelstore-v1beta - 0.8.0 + 0.9.0-SNAPSHOT diff --git a/java-parallelstore/google-cloud-parallelstore/pom.xml b/java-parallelstore/google-cloud-parallelstore/pom.xml index a47780bffc87..f6745a4988cb 100644 --- a/java-parallelstore/google-cloud-parallelstore/pom.xml +++ b/java-parallelstore/google-cloud-parallelstore/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-parallelstore - 0.8.0 + 0.9.0-SNAPSHOT jar Google Parallelstore API Parallelstore API Parallelstore is based on Intel DAOS and delivers up to 6.3x greater read throughput performance compared to competitive Lustre scratch offerings. com.google.cloud google-cloud-parallelstore-parent - 0.8.0 + 0.9.0-SNAPSHOT google-cloud-parallelstore diff --git a/java-parallelstore/grpc-google-cloud-parallelstore-v1beta/pom.xml b/java-parallelstore/grpc-google-cloud-parallelstore-v1beta/pom.xml index 2f23e5dff392..d70ea6364c60 100644 --- a/java-parallelstore/grpc-google-cloud-parallelstore-v1beta/pom.xml +++ b/java-parallelstore/grpc-google-cloud-parallelstore-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-parallelstore-v1beta - 0.8.0 + 0.9.0-SNAPSHOT grpc-google-cloud-parallelstore-v1beta GRPC library for google-cloud-parallelstore com.google.cloud google-cloud-parallelstore-parent - 0.8.0 + 0.9.0-SNAPSHOT diff --git a/java-parallelstore/pom.xml b/java-parallelstore/pom.xml index 4e872932a995..452a8166b074 100644 --- a/java-parallelstore/pom.xml +++ b/java-parallelstore/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-parallelstore-parent pom - 0.8.0 + 0.9.0-SNAPSHOT Google Parallelstore API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-parallelstore - 0.8.0 + 0.9.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-parallelstore-v1beta - 0.8.0 + 0.9.0-SNAPSHOT com.google.api.grpc proto-google-cloud-parallelstore-v1beta - 0.8.0 + 0.9.0-SNAPSHOT diff --git a/java-parallelstore/proto-google-cloud-parallelstore-v1beta/pom.xml b/java-parallelstore/proto-google-cloud-parallelstore-v1beta/pom.xml index ff11552f8742..38e45dadfc66 100644 --- a/java-parallelstore/proto-google-cloud-parallelstore-v1beta/pom.xml +++ b/java-parallelstore/proto-google-cloud-parallelstore-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-parallelstore-v1beta - 0.8.0 + 0.9.0-SNAPSHOT proto-google-cloud-parallelstore-v1beta Proto library for google-cloud-parallelstore com.google.cloud google-cloud-parallelstore-parent - 0.8.0 + 0.9.0-SNAPSHOT diff --git a/java-phishingprotection/google-cloud-phishingprotection-bom/pom.xml b/java-phishingprotection/google-cloud-phishingprotection-bom/pom.xml index 922d54181725..0414207b1e77 100644 --- a/java-phishingprotection/google-cloud-phishingprotection-bom/pom.xml +++ b/java-phishingprotection/google-cloud-phishingprotection-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-phishingprotection-bom - 0.76.0 + 0.77.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-phishingprotection - 0.76.0 + 0.77.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-phishingprotection-v1beta1 - 0.76.0 + 0.77.0-SNAPSHOT com.google.api.grpc proto-google-cloud-phishingprotection-v1beta1 - 0.76.0 + 0.77.0-SNAPSHOT diff --git a/java-phishingprotection/google-cloud-phishingprotection/pom.xml b/java-phishingprotection/google-cloud-phishingprotection/pom.xml index a9b336fadfd9..43c1e696f37d 100644 --- a/java-phishingprotection/google-cloud-phishingprotection/pom.xml +++ b/java-phishingprotection/google-cloud-phishingprotection/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-phishingprotection - 0.76.0 + 0.77.0-SNAPSHOT jar Google Cloud Phishing Protection Java idiomatic client for Google Cloud Phishing Protection com.google.cloud google-cloud-phishingprotection-parent - 0.76.0 + 0.77.0-SNAPSHOT google-cloud-phishingprotection diff --git a/java-phishingprotection/grpc-google-cloud-phishingprotection-v1beta1/pom.xml b/java-phishingprotection/grpc-google-cloud-phishingprotection-v1beta1/pom.xml index 092268538a82..7a1d0d18f6d4 100644 --- a/java-phishingprotection/grpc-google-cloud-phishingprotection-v1beta1/pom.xml +++ b/java-phishingprotection/grpc-google-cloud-phishingprotection-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-phishingprotection-v1beta1 - 0.76.0 + 0.77.0-SNAPSHOT grpc-google-cloud-phishingprotection-v1beta1 GRPC library for grpc-google-cloud-phishingprotection-v1beta1 com.google.cloud google-cloud-phishingprotection-parent - 0.76.0 + 0.77.0-SNAPSHOT diff --git a/java-phishingprotection/pom.xml b/java-phishingprotection/pom.xml index 65e854fe2a05..c2d58dfc78e1 100644 --- a/java-phishingprotection/pom.xml +++ b/java-phishingprotection/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-phishingprotection-parent pom - 0.76.0 + 0.77.0-SNAPSHOT Google Cloud Phishing Protection Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.api.grpc proto-google-cloud-phishingprotection-v1beta1 - 0.76.0 + 0.77.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-phishingprotection-v1beta1 - 0.76.0 + 0.77.0-SNAPSHOT com.google.cloud google-cloud-phishingprotection - 0.76.0 + 0.77.0-SNAPSHOT diff --git a/java-phishingprotection/proto-google-cloud-phishingprotection-v1beta1/pom.xml b/java-phishingprotection/proto-google-cloud-phishingprotection-v1beta1/pom.xml index 781e6a06cbf5..74809b67f32a 100644 --- a/java-phishingprotection/proto-google-cloud-phishingprotection-v1beta1/pom.xml +++ b/java-phishingprotection/proto-google-cloud-phishingprotection-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-phishingprotection-v1beta1 - 0.76.0 + 0.77.0-SNAPSHOT proto-google-cloud-phishingprotection-v1beta1 PROTO library for proto-google-cloud-phishingprotection-v1beta1 com.google.cloud google-cloud-phishingprotection-parent - 0.76.0 + 0.77.0-SNAPSHOT diff --git a/java-policy-troubleshooter/google-cloud-policy-troubleshooter-bom/pom.xml b/java-policy-troubleshooter/google-cloud-policy-troubleshooter-bom/pom.xml index ff14a9c7a0db..df6384163e3f 100644 --- a/java-policy-troubleshooter/google-cloud-policy-troubleshooter-bom/pom.xml +++ b/java-policy-troubleshooter/google-cloud-policy-troubleshooter-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-policy-troubleshooter-bom - 1.44.0 + 1.45.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-policy-troubleshooter - 1.44.0 + 1.45.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-policy-troubleshooter-v1 - 1.44.0 + 1.45.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-policy-troubleshooter-v3 - 1.44.0 + 1.45.0-SNAPSHOT com.google.api.grpc proto-google-cloud-policy-troubleshooter-v1 - 1.44.0 + 1.45.0-SNAPSHOT com.google.api.grpc proto-google-cloud-policy-troubleshooter-v3 - 1.44.0 + 1.45.0-SNAPSHOT diff --git a/java-policy-troubleshooter/google-cloud-policy-troubleshooter/pom.xml b/java-policy-troubleshooter/google-cloud-policy-troubleshooter/pom.xml index 665367b32c36..56ee84d7a238 100644 --- a/java-policy-troubleshooter/google-cloud-policy-troubleshooter/pom.xml +++ b/java-policy-troubleshooter/google-cloud-policy-troubleshooter/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-policy-troubleshooter - 1.44.0 + 1.45.0-SNAPSHOT jar Google IAM Policy Troubleshooter API makes it easier to understand why a user has access to a resource or doesn't have permission to call an API. Given an email, resource, and permission, Policy Troubleshooter examines all Identity and Access Management (IAM) policies that apply to the resource. It then reveals whether the member's roles include the permission on that resource and, if so, which policies bind the member to those roles. com.google.cloud google-cloud-policy-troubleshooter-parent - 1.44.0 + 1.45.0-SNAPSHOT google-cloud-policy-troubleshooter diff --git a/java-policy-troubleshooter/grpc-google-cloud-policy-troubleshooter-v1/pom.xml b/java-policy-troubleshooter/grpc-google-cloud-policy-troubleshooter-v1/pom.xml index 0752f02fe465..9b2a1141ed09 100644 --- a/java-policy-troubleshooter/grpc-google-cloud-policy-troubleshooter-v1/pom.xml +++ b/java-policy-troubleshooter/grpc-google-cloud-policy-troubleshooter-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-policy-troubleshooter-v1 - 1.44.0 + 1.45.0-SNAPSHOT grpc-google-cloud-policy-troubleshooter-v1 GRPC library for google-cloud-policy-troubleshooter com.google.cloud google-cloud-policy-troubleshooter-parent - 1.44.0 + 1.45.0-SNAPSHOT diff --git a/java-policy-troubleshooter/grpc-google-cloud-policy-troubleshooter-v3/pom.xml b/java-policy-troubleshooter/grpc-google-cloud-policy-troubleshooter-v3/pom.xml index 518c30dd2156..f123f94956c4 100644 --- a/java-policy-troubleshooter/grpc-google-cloud-policy-troubleshooter-v3/pom.xml +++ b/java-policy-troubleshooter/grpc-google-cloud-policy-troubleshooter-v3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-policy-troubleshooter-v3 - 1.44.0 + 1.45.0-SNAPSHOT grpc-google-cloud-policy-troubleshooter-v3 GRPC library for google-cloud-policy-troubleshooter com.google.cloud google-cloud-policy-troubleshooter-parent - 1.44.0 + 1.45.0-SNAPSHOT diff --git a/java-policy-troubleshooter/pom.xml b/java-policy-troubleshooter/pom.xml index 7552869654d0..cc84ead53bad 100644 --- a/java-policy-troubleshooter/pom.xml +++ b/java-policy-troubleshooter/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-policy-troubleshooter-parent pom - 1.44.0 + 1.45.0-SNAPSHOT Google IAM Policy Troubleshooter API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-policy-troubleshooter - 1.44.0 + 1.45.0-SNAPSHOT com.google.api.grpc proto-google-cloud-policy-troubleshooter-v3 - 1.44.0 + 1.45.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-policy-troubleshooter-v3 - 1.44.0 + 1.45.0-SNAPSHOT com.google.api.grpc proto-google-cloud-policy-troubleshooter-v1 - 1.44.0 + 1.45.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-policy-troubleshooter-v1 - 1.44.0 + 1.45.0-SNAPSHOT diff --git a/java-policy-troubleshooter/proto-google-cloud-policy-troubleshooter-v1/pom.xml b/java-policy-troubleshooter/proto-google-cloud-policy-troubleshooter-v1/pom.xml index b1457ab4c01f..548967bfdac6 100644 --- a/java-policy-troubleshooter/proto-google-cloud-policy-troubleshooter-v1/pom.xml +++ b/java-policy-troubleshooter/proto-google-cloud-policy-troubleshooter-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-policy-troubleshooter-v1 - 1.44.0 + 1.45.0-SNAPSHOT proto-google-cloud-policy-troubleshooter-v1 Proto library for google-cloud-policy-troubleshooter com.google.cloud google-cloud-policy-troubleshooter-parent - 1.44.0 + 1.45.0-SNAPSHOT diff --git a/java-policy-troubleshooter/proto-google-cloud-policy-troubleshooter-v3/pom.xml b/java-policy-troubleshooter/proto-google-cloud-policy-troubleshooter-v3/pom.xml index eeb0f06f1fc7..92d3c2e2a123 100644 --- a/java-policy-troubleshooter/proto-google-cloud-policy-troubleshooter-v3/pom.xml +++ b/java-policy-troubleshooter/proto-google-cloud-policy-troubleshooter-v3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-policy-troubleshooter-v3 - 1.44.0 + 1.45.0-SNAPSHOT proto-google-cloud-policy-troubleshooter-v3 Proto library for google-cloud-policy-troubleshooter com.google.cloud google-cloud-policy-troubleshooter-parent - 1.44.0 + 1.45.0-SNAPSHOT diff --git a/java-policysimulator/google-cloud-policysimulator-bom/pom.xml b/java-policysimulator/google-cloud-policysimulator-bom/pom.xml index 9f57688e6eb1..751392718eb6 100644 --- a/java-policysimulator/google-cloud-policysimulator-bom/pom.xml +++ b/java-policysimulator/google-cloud-policysimulator-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-policysimulator-bom - 0.24.0 + 0.25.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-policysimulator - 0.24.0 + 0.25.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-policysimulator-v1 - 0.24.0 + 0.25.0-SNAPSHOT com.google.api.grpc proto-google-cloud-policysimulator-v1 - 0.24.0 + 0.25.0-SNAPSHOT diff --git a/java-policysimulator/google-cloud-policysimulator/pom.xml b/java-policysimulator/google-cloud-policysimulator/pom.xml index d565730d4213..5478ab22688d 100644 --- a/java-policysimulator/google-cloud-policysimulator/pom.xml +++ b/java-policysimulator/google-cloud-policysimulator/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-policysimulator - 0.24.0 + 0.25.0-SNAPSHOT jar Google Policy Simulator API Policy Simulator API Policy Simulator is a collection of endpoints for creating, running, and viewing a Replay. com.google.cloud google-cloud-policysimulator-parent - 0.24.0 + 0.25.0-SNAPSHOT google-cloud-policysimulator diff --git a/java-policysimulator/grpc-google-cloud-policysimulator-v1/pom.xml b/java-policysimulator/grpc-google-cloud-policysimulator-v1/pom.xml index e07e5ca6f133..ad26d2bd177d 100644 --- a/java-policysimulator/grpc-google-cloud-policysimulator-v1/pom.xml +++ b/java-policysimulator/grpc-google-cloud-policysimulator-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-policysimulator-v1 - 0.24.0 + 0.25.0-SNAPSHOT grpc-google-cloud-policysimulator-v1 GRPC library for google-cloud-policysimulator com.google.cloud google-cloud-policysimulator-parent - 0.24.0 + 0.25.0-SNAPSHOT diff --git a/java-policysimulator/pom.xml b/java-policysimulator/pom.xml index 44971bda2fdd..89d280d4b08a 100644 --- a/java-policysimulator/pom.xml +++ b/java-policysimulator/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-policysimulator-parent pom - 0.24.0 + 0.25.0-SNAPSHOT Google Policy Simulator API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-policysimulator - 0.24.0 + 0.25.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-policysimulator-v1 - 0.24.0 + 0.25.0-SNAPSHOT com.google.api.grpc proto-google-cloud-policysimulator-v1 - 0.24.0 + 0.25.0-SNAPSHOT diff --git a/java-policysimulator/proto-google-cloud-policysimulator-v1/pom.xml b/java-policysimulator/proto-google-cloud-policysimulator-v1/pom.xml index e1912e025f25..057d10297300 100644 --- a/java-policysimulator/proto-google-cloud-policysimulator-v1/pom.xml +++ b/java-policysimulator/proto-google-cloud-policysimulator-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-policysimulator-v1 - 0.24.0 + 0.25.0-SNAPSHOT proto-google-cloud-policysimulator-v1 Proto library for google-cloud-policysimulator com.google.cloud google-cloud-policysimulator-parent - 0.24.0 + 0.25.0-SNAPSHOT diff --git a/java-private-catalog/google-cloud-private-catalog-bom/pom.xml b/java-private-catalog/google-cloud-private-catalog-bom/pom.xml index 55713429904a..92b5e4e205ce 100644 --- a/java-private-catalog/google-cloud-private-catalog-bom/pom.xml +++ b/java-private-catalog/google-cloud-private-catalog-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-private-catalog-bom - 0.47.0 + 0.48.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-private-catalog - 0.47.0 + 0.48.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-private-catalog-v1beta1 - 0.47.0 + 0.48.0-SNAPSHOT com.google.api.grpc proto-google-cloud-private-catalog-v1beta1 - 0.47.0 + 0.48.0-SNAPSHOT diff --git a/java-private-catalog/google-cloud-private-catalog/pom.xml b/java-private-catalog/google-cloud-private-catalog/pom.xml index 13f474acf293..6daaa3b4bd60 100644 --- a/java-private-catalog/google-cloud-private-catalog/pom.xml +++ b/java-private-catalog/google-cloud-private-catalog/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-private-catalog - 0.47.0 + 0.48.0-SNAPSHOT jar Google Private Catalog Private Catalog allows developers and cloud admins to make their solutions discoverable to their internal enterprise users. Cloud admins can manage their solutions and ensure their users are always launching the latest versions. com.google.cloud google-cloud-private-catalog-parent - 0.47.0 + 0.48.0-SNAPSHOT google-cloud-private-catalog diff --git a/java-private-catalog/grpc-google-cloud-private-catalog-v1beta1/pom.xml b/java-private-catalog/grpc-google-cloud-private-catalog-v1beta1/pom.xml index c8afa06e2b37..c970e02d0ade 100644 --- a/java-private-catalog/grpc-google-cloud-private-catalog-v1beta1/pom.xml +++ b/java-private-catalog/grpc-google-cloud-private-catalog-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-private-catalog-v1beta1 - 0.47.0 + 0.48.0-SNAPSHOT grpc-google-cloud-private-catalog-v1beta1 GRPC library for google-cloud-private-catalog com.google.cloud google-cloud-private-catalog-parent - 0.47.0 + 0.48.0-SNAPSHOT diff --git a/java-private-catalog/pom.xml b/java-private-catalog/pom.xml index 77de155b6357..de034cb78a2b 100644 --- a/java-private-catalog/pom.xml +++ b/java-private-catalog/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-private-catalog-parent pom - 0.47.0 + 0.48.0-SNAPSHOT Google Private Catalog Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-private-catalog - 0.47.0 + 0.48.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-private-catalog-v1beta1 - 0.47.0 + 0.48.0-SNAPSHOT com.google.api.grpc proto-google-cloud-private-catalog-v1beta1 - 0.47.0 + 0.48.0-SNAPSHOT diff --git a/java-private-catalog/proto-google-cloud-private-catalog-v1beta1/pom.xml b/java-private-catalog/proto-google-cloud-private-catalog-v1beta1/pom.xml index 3c4a497afc36..d6276b38d109 100644 --- a/java-private-catalog/proto-google-cloud-private-catalog-v1beta1/pom.xml +++ b/java-private-catalog/proto-google-cloud-private-catalog-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-private-catalog-v1beta1 - 0.47.0 + 0.48.0-SNAPSHOT proto-google-cloud-private-catalog-v1beta1 Proto library for google-cloud-private-catalog com.google.cloud google-cloud-private-catalog-parent - 0.47.0 + 0.48.0-SNAPSHOT diff --git a/java-profiler/google-cloud-profiler-bom/pom.xml b/java-profiler/google-cloud-profiler-bom/pom.xml index 342f6f2bfc94..2cc293b31c2b 100644 --- a/java-profiler/google-cloud-profiler-bom/pom.xml +++ b/java-profiler/google-cloud-profiler-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-profiler-bom - 2.45.0 + 2.46.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-profiler - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-profiler-v2 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-profiler-v2 - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-profiler/google-cloud-profiler/pom.xml b/java-profiler/google-cloud-profiler/pom.xml index 75e4dfd39c42..a392e867f4bc 100644 --- a/java-profiler/google-cloud-profiler/pom.xml +++ b/java-profiler/google-cloud-profiler/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-profiler - 2.45.0 + 2.46.0-SNAPSHOT jar Google Cloud Profiler is a statistical, low-overhead profiler that continuously gathers CPU usage and memory-allocation information from your production applications. It attributes that information to the application's source code, helping you identify the parts of the application consuming the most resources, and otherwise illuminating the performance characteristics of the code. com.google.cloud google-cloud-profiler-parent - 2.45.0 + 2.46.0-SNAPSHOT google-cloud-profiler diff --git a/java-profiler/grpc-google-cloud-profiler-v2/pom.xml b/java-profiler/grpc-google-cloud-profiler-v2/pom.xml index 7d4975dbaeee..c97431d907c0 100644 --- a/java-profiler/grpc-google-cloud-profiler-v2/pom.xml +++ b/java-profiler/grpc-google-cloud-profiler-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-profiler-v2 - 2.45.0 + 2.46.0-SNAPSHOT grpc-google-cloud-profiler-v2 GRPC library for google-cloud-profiler com.google.cloud google-cloud-profiler-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-profiler/pom.xml b/java-profiler/pom.xml index f33d3b533026..09e4a9f54c76 100644 --- a/java-profiler/pom.xml +++ b/java-profiler/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-profiler-parent pom - 2.45.0 + 2.46.0-SNAPSHOT Google Cloud Profiler Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-profiler - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-profiler-v2 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-profiler-v2 - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-profiler/proto-google-cloud-profiler-v2/pom.xml b/java-profiler/proto-google-cloud-profiler-v2/pom.xml index 63c50112cf68..248e3a8da739 100644 --- a/java-profiler/proto-google-cloud-profiler-v2/pom.xml +++ b/java-profiler/proto-google-cloud-profiler-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-profiler-v2 - 2.45.0 + 2.46.0-SNAPSHOT proto-google-cloud-profiler-v2 Proto library for google-cloud-profiler com.google.cloud google-cloud-profiler-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-publicca/google-cloud-publicca-bom/pom.xml b/java-publicca/google-cloud-publicca-bom/pom.xml index 4253a9268c76..06dc9ebb1783 100644 --- a/java-publicca/google-cloud-publicca-bom/pom.xml +++ b/java-publicca/google-cloud-publicca-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-publicca-bom - 0.42.0 + 0.43.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-publicca - 0.42.0 + 0.43.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-publicca-v1beta1 - 0.42.0 + 0.43.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-publicca-v1 - 0.42.0 + 0.43.0-SNAPSHOT com.google.api.grpc proto-google-cloud-publicca-v1beta1 - 0.42.0 + 0.43.0-SNAPSHOT com.google.api.grpc proto-google-cloud-publicca-v1 - 0.42.0 + 0.43.0-SNAPSHOT diff --git a/java-publicca/google-cloud-publicca/pom.xml b/java-publicca/google-cloud-publicca/pom.xml index 2df0fa9a33d7..df68917774af 100644 --- a/java-publicca/google-cloud-publicca/pom.xml +++ b/java-publicca/google-cloud-publicca/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-publicca - 0.42.0 + 0.43.0-SNAPSHOT jar Google Public Certificate Authority Public Certificate Authority Certificate Manager's Public Certificate Authority (CA) functionality allows you to provision and deploy widely trusted X.509 certificates after validating that the certificate requester controls the domains. com.google.cloud google-cloud-publicca-parent - 0.42.0 + 0.43.0-SNAPSHOT google-cloud-publicca diff --git a/java-publicca/grpc-google-cloud-publicca-v1/pom.xml b/java-publicca/grpc-google-cloud-publicca-v1/pom.xml index e74232def30c..4d47b598d0a9 100644 --- a/java-publicca/grpc-google-cloud-publicca-v1/pom.xml +++ b/java-publicca/grpc-google-cloud-publicca-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-publicca-v1 - 0.42.0 + 0.43.0-SNAPSHOT grpc-google-cloud-publicca-v1 GRPC library for google-cloud-publicca com.google.cloud google-cloud-publicca-parent - 0.42.0 + 0.43.0-SNAPSHOT diff --git a/java-publicca/grpc-google-cloud-publicca-v1beta1/pom.xml b/java-publicca/grpc-google-cloud-publicca-v1beta1/pom.xml index aa60a7a49dd6..210073657faa 100644 --- a/java-publicca/grpc-google-cloud-publicca-v1beta1/pom.xml +++ b/java-publicca/grpc-google-cloud-publicca-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-publicca-v1beta1 - 0.42.0 + 0.43.0-SNAPSHOT grpc-google-cloud-publicca-v1beta1 GRPC library for google-cloud-publicca com.google.cloud google-cloud-publicca-parent - 0.42.0 + 0.43.0-SNAPSHOT diff --git a/java-publicca/pom.xml b/java-publicca/pom.xml index 192d0af6f72d..a13605d6e8e4 100644 --- a/java-publicca/pom.xml +++ b/java-publicca/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-publicca-parent pom - 0.42.0 + 0.43.0-SNAPSHOT Google Public Certificate Authority Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-publicca - 0.42.0 + 0.43.0-SNAPSHOT com.google.api.grpc proto-google-cloud-publicca-v1 - 0.42.0 + 0.43.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-publicca-v1 - 0.42.0 + 0.43.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-publicca-v1beta1 - 0.42.0 + 0.43.0-SNAPSHOT com.google.api.grpc proto-google-cloud-publicca-v1beta1 - 0.42.0 + 0.43.0-SNAPSHOT diff --git a/java-publicca/proto-google-cloud-publicca-v1/pom.xml b/java-publicca/proto-google-cloud-publicca-v1/pom.xml index 2d321d6e4223..2d928329fba3 100644 --- a/java-publicca/proto-google-cloud-publicca-v1/pom.xml +++ b/java-publicca/proto-google-cloud-publicca-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-publicca-v1 - 0.42.0 + 0.43.0-SNAPSHOT proto-google-cloud-publicca-v1 Proto library for google-cloud-publicca com.google.cloud google-cloud-publicca-parent - 0.42.0 + 0.43.0-SNAPSHOT diff --git a/java-publicca/proto-google-cloud-publicca-v1beta1/pom.xml b/java-publicca/proto-google-cloud-publicca-v1beta1/pom.xml index 05407ede406f..00e373167b89 100644 --- a/java-publicca/proto-google-cloud-publicca-v1beta1/pom.xml +++ b/java-publicca/proto-google-cloud-publicca-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-publicca-v1beta1 - 0.42.0 + 0.43.0-SNAPSHOT proto-google-cloud-publicca-v1beta1 Proto library for google-cloud-publicca com.google.cloud google-cloud-publicca-parent - 0.42.0 + 0.43.0-SNAPSHOT diff --git a/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment-bom/pom.xml b/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment-bom/pom.xml index acdac9a918f0..97d123f4e6aa 100644 --- a/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment-bom/pom.xml +++ b/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-rapidmigrationassessment-bom - 0.28.0 + 0.29.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-rapidmigrationassessment - 0.28.0 + 0.29.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-rapidmigrationassessment-v1 - 0.28.0 + 0.29.0-SNAPSHOT com.google.api.grpc proto-google-cloud-rapidmigrationassessment-v1 - 0.28.0 + 0.29.0-SNAPSHOT diff --git a/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment/pom.xml b/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment/pom.xml index c53f107a9620..9d14189f39d9 100644 --- a/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment/pom.xml +++ b/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-rapidmigrationassessment - 0.28.0 + 0.29.0-SNAPSHOT jar Google Rapid Migration Assessment API Rapid Migration Assessment API Rapid Migration Assessment API com.google.cloud google-cloud-rapidmigrationassessment-parent - 0.28.0 + 0.29.0-SNAPSHOT google-cloud-rapidmigrationassessment diff --git a/java-rapidmigrationassessment/grpc-google-cloud-rapidmigrationassessment-v1/pom.xml b/java-rapidmigrationassessment/grpc-google-cloud-rapidmigrationassessment-v1/pom.xml index 1a1fd6c86a1f..f93666191d6a 100644 --- a/java-rapidmigrationassessment/grpc-google-cloud-rapidmigrationassessment-v1/pom.xml +++ b/java-rapidmigrationassessment/grpc-google-cloud-rapidmigrationassessment-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-rapidmigrationassessment-v1 - 0.28.0 + 0.29.0-SNAPSHOT grpc-google-cloud-rapidmigrationassessment-v1 GRPC library for google-cloud-rapidmigrationassessment com.google.cloud google-cloud-rapidmigrationassessment-parent - 0.28.0 + 0.29.0-SNAPSHOT diff --git a/java-rapidmigrationassessment/pom.xml b/java-rapidmigrationassessment/pom.xml index 44f2feab5c6e..2b1079f5c287 100644 --- a/java-rapidmigrationassessment/pom.xml +++ b/java-rapidmigrationassessment/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-rapidmigrationassessment-parent pom - 0.28.0 + 0.29.0-SNAPSHOT Google Rapid Migration Assessment API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-rapidmigrationassessment - 0.28.0 + 0.29.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-rapidmigrationassessment-v1 - 0.28.0 + 0.29.0-SNAPSHOT com.google.api.grpc proto-google-cloud-rapidmigrationassessment-v1 - 0.28.0 + 0.29.0-SNAPSHOT diff --git a/java-rapidmigrationassessment/proto-google-cloud-rapidmigrationassessment-v1/pom.xml b/java-rapidmigrationassessment/proto-google-cloud-rapidmigrationassessment-v1/pom.xml index 604c3d96d954..e4281e29fefc 100644 --- a/java-rapidmigrationassessment/proto-google-cloud-rapidmigrationassessment-v1/pom.xml +++ b/java-rapidmigrationassessment/proto-google-cloud-rapidmigrationassessment-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-rapidmigrationassessment-v1 - 0.28.0 + 0.29.0-SNAPSHOT proto-google-cloud-rapidmigrationassessment-v1 Proto library for google-cloud-rapidmigrationassessment com.google.cloud google-cloud-rapidmigrationassessment-parent - 0.28.0 + 0.29.0-SNAPSHOT diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise-bom/pom.xml b/java-recaptchaenterprise/google-cloud-recaptchaenterprise-bom/pom.xml index a3720a1f0a41..bc8b239e350e 100644 --- a/java-recaptchaenterprise/google-cloud-recaptchaenterprise-bom/pom.xml +++ b/java-recaptchaenterprise/google-cloud-recaptchaenterprise-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-recaptchaenterprise-bom - 3.42.0 + 3.43.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-recaptchaenterprise - 3.42.0 + 3.43.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-recaptchaenterprise-v1 - 3.42.0 + 3.43.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-recaptchaenterprise-v1beta1 - 0.84.0 + 0.85.0-SNAPSHOT com.google.api.grpc proto-google-cloud-recaptchaenterprise-v1 - 3.42.0 + 3.43.0-SNAPSHOT com.google.api.grpc proto-google-cloud-recaptchaenterprise-v1beta1 - 0.84.0 + 0.85.0-SNAPSHOT diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/pom.xml b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/pom.xml index 8b07628a9efa..b168d1e3da59 100644 --- a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/pom.xml +++ b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-recaptchaenterprise - 3.42.0 + 3.43.0-SNAPSHOT jar reCAPTCHA Enterprise Help protect your website from fraudulent activity, spam, and abuse. com.google.cloud google-cloud-recaptchaenterprise-parent - 3.42.0 + 3.43.0-SNAPSHOT google-cloud-recaptchaenterprise diff --git a/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1/pom.xml b/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1/pom.xml index b548d788bed1..908ee1ce09bb 100644 --- a/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1/pom.xml +++ b/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-recaptchaenterprise-v1 - 3.42.0 + 3.43.0-SNAPSHOT grpc-google-cloud-recaptchaenterprise-v1 GRPC library for grpc-google-cloud-recaptchaenterprise-v1 com.google.cloud google-cloud-recaptchaenterprise-parent - 3.42.0 + 3.43.0-SNAPSHOT diff --git a/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1beta1/pom.xml b/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1beta1/pom.xml index d847150d2d0c..f325df7b6ee1 100644 --- a/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1beta1/pom.xml +++ b/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-recaptchaenterprise-v1beta1 - 0.84.0 + 0.85.0-SNAPSHOT grpc-google-cloud-recaptchaenterprise-v1beta1 GRPC library for grpc-google-cloud-recaptchaenterprise-v1beta1 com.google.cloud google-cloud-recaptchaenterprise-parent - 3.42.0 + 3.43.0-SNAPSHOT diff --git a/java-recaptchaenterprise/pom.xml b/java-recaptchaenterprise/pom.xml index 533fb643e737..ef9d2d9f8253 100644 --- a/java-recaptchaenterprise/pom.xml +++ b/java-recaptchaenterprise/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-recaptchaenterprise-parent pom - 3.42.0 + 3.43.0-SNAPSHOT reCAPTCHA Enterprise Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-recaptchaenterprise-v1 - 3.42.0 + 3.43.0-SNAPSHOT com.google.api.grpc proto-google-cloud-recaptchaenterprise-v1beta1 - 0.84.0 + 0.85.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-recaptchaenterprise-v1 - 3.42.0 + 3.43.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-recaptchaenterprise-v1beta1 - 0.84.0 + 0.85.0-SNAPSHOT com.google.cloud google-cloud-recaptchaenterprise - 3.42.0 + 3.43.0-SNAPSHOT diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/pom.xml b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/pom.xml index ca23eb0d121e..3980655e8948 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/pom.xml +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-recaptchaenterprise-v1 - 3.42.0 + 3.43.0-SNAPSHOT proto-google-cloud-recaptchaenterprise-v1 PROTO library for proto-google-cloud-recaptchaenterprise-v1 com.google.cloud google-cloud-recaptchaenterprise-parent - 3.42.0 + 3.43.0-SNAPSHOT diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/pom.xml b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/pom.xml index c4d107b62d1c..18697ffcaff4 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/pom.xml +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-recaptchaenterprise-v1beta1 - 0.84.0 + 0.85.0-SNAPSHOT proto-google-cloud-recaptchaenterprise-v1beta1 PROTO library for proto-google-cloud-recaptchaenterprise-v1beta1 com.google.cloud google-cloud-recaptchaenterprise-parent - 3.42.0 + 3.43.0-SNAPSHOT diff --git a/java-recommendations-ai/google-cloud-recommendations-ai-bom/pom.xml b/java-recommendations-ai/google-cloud-recommendations-ai-bom/pom.xml index 8495fef1405d..a7e8f6fb1652 100644 --- a/java-recommendations-ai/google-cloud-recommendations-ai-bom/pom.xml +++ b/java-recommendations-ai/google-cloud-recommendations-ai-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-recommendations-ai-bom - 0.52.0 + 0.53.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-recommendations-ai - 0.52.0 + 0.53.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-recommendations-ai-v1beta1 - 0.52.0 + 0.53.0-SNAPSHOT com.google.api.grpc proto-google-cloud-recommendations-ai-v1beta1 - 0.52.0 + 0.53.0-SNAPSHOT diff --git a/java-recommendations-ai/google-cloud-recommendations-ai/pom.xml b/java-recommendations-ai/google-cloud-recommendations-ai/pom.xml index 6e615b9e4e76..c462bbf85865 100644 --- a/java-recommendations-ai/google-cloud-recommendations-ai/pom.xml +++ b/java-recommendations-ai/google-cloud-recommendations-ai/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-recommendations-ai - 0.52.0 + 0.53.0-SNAPSHOT jar Google Recommendations AI delivers highly personalized product recommendations at scale. com.google.cloud google-cloud-recommendations-ai-parent - 0.52.0 + 0.53.0-SNAPSHOT google-cloud-recommendations-ai diff --git a/java-recommendations-ai/grpc-google-cloud-recommendations-ai-v1beta1/pom.xml b/java-recommendations-ai/grpc-google-cloud-recommendations-ai-v1beta1/pom.xml index af8943cabf43..f0d16ff82c06 100644 --- a/java-recommendations-ai/grpc-google-cloud-recommendations-ai-v1beta1/pom.xml +++ b/java-recommendations-ai/grpc-google-cloud-recommendations-ai-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-recommendations-ai-v1beta1 - 0.52.0 + 0.53.0-SNAPSHOT grpc-google-cloud-recommendations-ai-v1beta1 GRPC library for grpc-google-cloud-recommendations-ai-v1beta1 com.google.cloud google-cloud-recommendations-ai-parent - 0.52.0 + 0.53.0-SNAPSHOT diff --git a/java-recommendations-ai/pom.xml b/java-recommendations-ai/pom.xml index cbb4c07f0ac7..2a96dc9241bb 100644 --- a/java-recommendations-ai/pom.xml +++ b/java-recommendations-ai/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-recommendations-ai-parent pom - 0.52.0 + 0.53.0-SNAPSHOT Google Recommendations AI Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-recommendations-ai - 0.52.0 + 0.53.0-SNAPSHOT com.google.api.grpc proto-google-cloud-recommendations-ai-v1beta1 - 0.52.0 + 0.53.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-recommendations-ai-v1beta1 - 0.52.0 + 0.53.0-SNAPSHOT diff --git a/java-recommendations-ai/proto-google-cloud-recommendations-ai-v1beta1/pom.xml b/java-recommendations-ai/proto-google-cloud-recommendations-ai-v1beta1/pom.xml index ebc3f1f848f2..0f0260028ec2 100644 --- a/java-recommendations-ai/proto-google-cloud-recommendations-ai-v1beta1/pom.xml +++ b/java-recommendations-ai/proto-google-cloud-recommendations-ai-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-recommendations-ai-v1beta1 - 0.52.0 + 0.53.0-SNAPSHOT proto-google-cloud-recommendations-ai-v1beta1 PROTO library for proto-google-cloud-recommendations-ai-v1beta1 com.google.cloud google-cloud-recommendations-ai-parent - 0.52.0 + 0.53.0-SNAPSHOT diff --git a/java-recommender/google-cloud-recommender-bom/pom.xml b/java-recommender/google-cloud-recommender-bom/pom.xml index c3d36663d1a9..b0ca719fc9a8 100644 --- a/java-recommender/google-cloud-recommender-bom/pom.xml +++ b/java-recommender/google-cloud-recommender-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-recommender-bom - 2.47.0 + 2.48.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-recommender - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-recommender-v1 - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-recommender-v1beta1 - 0.59.0 + 0.60.0-SNAPSHOT com.google.api.grpc proto-google-cloud-recommender-v1 - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc proto-google-cloud-recommender-v1beta1 - 0.59.0 + 0.60.0-SNAPSHOT diff --git a/java-recommender/google-cloud-recommender/pom.xml b/java-recommender/google-cloud-recommender/pom.xml index 728dce6704c0..1e65a0adf372 100644 --- a/java-recommender/google-cloud-recommender/pom.xml +++ b/java-recommender/google-cloud-recommender/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-recommender - 2.47.0 + 2.48.0-SNAPSHOT jar Google Cloud Recommender @@ -12,7 +12,7 @@ com.google.cloud google-cloud-recommender-parent - 2.47.0 + 2.48.0-SNAPSHOT google-cloud-recommender diff --git a/java-recommender/grpc-google-cloud-recommender-v1/pom.xml b/java-recommender/grpc-google-cloud-recommender-v1/pom.xml index bd9ff5a700d3..a0d7e3377cc3 100644 --- a/java-recommender/grpc-google-cloud-recommender-v1/pom.xml +++ b/java-recommender/grpc-google-cloud-recommender-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-recommender-v1 - 2.47.0 + 2.48.0-SNAPSHOT grpc-google-cloud-recommender-v1 GRPC library for grpc-google-cloud-recommender-v1 com.google.cloud google-cloud-recommender-parent - 2.47.0 + 2.48.0-SNAPSHOT diff --git a/java-recommender/grpc-google-cloud-recommender-v1beta1/pom.xml b/java-recommender/grpc-google-cloud-recommender-v1beta1/pom.xml index 60b6726f9a47..3ca77a29b533 100644 --- a/java-recommender/grpc-google-cloud-recommender-v1beta1/pom.xml +++ b/java-recommender/grpc-google-cloud-recommender-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-recommender-v1beta1 - 0.59.0 + 0.60.0-SNAPSHOT grpc-google-cloud-recommender-v1beta1 GRPC library for grpc-google-cloud-recommender-v1beta1 com.google.cloud google-cloud-recommender-parent - 2.47.0 + 2.48.0-SNAPSHOT diff --git a/java-recommender/pom.xml b/java-recommender/pom.xml index 961b10521af9..56fbbc7a5fd9 100644 --- a/java-recommender/pom.xml +++ b/java-recommender/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-recommender-parent pom - 2.47.0 + 2.48.0-SNAPSHOT Google Cloud recommender Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-recommender-v1 - 2.47.0 + 2.48.0-SNAPSHOT com.google.cloud google-cloud-recommender - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc proto-google-cloud-recommender-v1beta1 - 0.59.0 + 0.60.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-recommender-v1 - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-recommender-v1beta1 - 0.59.0 + 0.60.0-SNAPSHOT diff --git a/java-recommender/proto-google-cloud-recommender-v1/pom.xml b/java-recommender/proto-google-cloud-recommender-v1/pom.xml index d4b3b62fde2a..0456fe06f513 100644 --- a/java-recommender/proto-google-cloud-recommender-v1/pom.xml +++ b/java-recommender/proto-google-cloud-recommender-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-recommender-v1 - 2.47.0 + 2.48.0-SNAPSHOT proto-google-cloud-recommender-v1 PROTO library for proto-google-cloud-recommender-v1 com.google.cloud google-cloud-recommender-parent - 2.47.0 + 2.48.0-SNAPSHOT diff --git a/java-recommender/proto-google-cloud-recommender-v1beta1/pom.xml b/java-recommender/proto-google-cloud-recommender-v1beta1/pom.xml index 20a790b58575..ad5e8d0118fe 100644 --- a/java-recommender/proto-google-cloud-recommender-v1beta1/pom.xml +++ b/java-recommender/proto-google-cloud-recommender-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-recommender-v1beta1 - 0.59.0 + 0.60.0-SNAPSHOT proto-google-cloud-recommender-v1beta1 PROTO library for proto-google-cloud-recommender-v1beta1 com.google.cloud google-cloud-recommender-parent - 2.47.0 + 2.48.0-SNAPSHOT diff --git a/java-redis-cluster/google-cloud-redis-cluster-bom/pom.xml b/java-redis-cluster/google-cloud-redis-cluster-bom/pom.xml index e56426d3005a..e21d26a563bf 100644 --- a/java-redis-cluster/google-cloud-redis-cluster-bom/pom.xml +++ b/java-redis-cluster/google-cloud-redis-cluster-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-redis-cluster-bom - 0.17.0 + 0.18.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-redis-cluster - 0.17.0 + 0.18.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-redis-cluster-v1 - 0.17.0 + 0.18.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-redis-cluster-v1beta1 - 0.17.0 + 0.18.0-SNAPSHOT com.google.api.grpc proto-google-cloud-redis-cluster-v1beta1 - 0.17.0 + 0.18.0-SNAPSHOT com.google.api.grpc proto-google-cloud-redis-cluster-v1 - 0.17.0 + 0.18.0-SNAPSHOT diff --git a/java-redis-cluster/google-cloud-redis-cluster/pom.xml b/java-redis-cluster/google-cloud-redis-cluster/pom.xml index 0f4dd5bec63b..638430a7f871 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/pom.xml +++ b/java-redis-cluster/google-cloud-redis-cluster/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-redis-cluster - 0.17.0 + 0.18.0-SNAPSHOT jar Google Google Cloud Memorystore for Redis API Google Cloud Memorystore for Redis API Creates and manages Redis instances on the Google Cloud Platform. com.google.cloud google-cloud-redis-cluster-parent - 0.17.0 + 0.18.0-SNAPSHOT google-cloud-redis-cluster diff --git a/java-redis-cluster/grpc-google-cloud-redis-cluster-v1/pom.xml b/java-redis-cluster/grpc-google-cloud-redis-cluster-v1/pom.xml index 240f9f262887..335b6cc144bc 100644 --- a/java-redis-cluster/grpc-google-cloud-redis-cluster-v1/pom.xml +++ b/java-redis-cluster/grpc-google-cloud-redis-cluster-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-redis-cluster-v1 - 0.17.0 + 0.18.0-SNAPSHOT grpc-google-cloud-redis-cluster-v1 GRPC library for google-cloud-redis-cluster com.google.cloud google-cloud-redis-cluster-parent - 0.17.0 + 0.18.0-SNAPSHOT diff --git a/java-redis-cluster/grpc-google-cloud-redis-cluster-v1beta1/pom.xml b/java-redis-cluster/grpc-google-cloud-redis-cluster-v1beta1/pom.xml index 2dcd2350579d..a435e0ffa9de 100644 --- a/java-redis-cluster/grpc-google-cloud-redis-cluster-v1beta1/pom.xml +++ b/java-redis-cluster/grpc-google-cloud-redis-cluster-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-redis-cluster-v1beta1 - 0.17.0 + 0.18.0-SNAPSHOT grpc-google-cloud-redis-cluster-v1beta1 GRPC library for google-cloud-redis-cluster com.google.cloud google-cloud-redis-cluster-parent - 0.17.0 + 0.18.0-SNAPSHOT diff --git a/java-redis-cluster/pom.xml b/java-redis-cluster/pom.xml index 68096fe2f88d..0c0de12d8799 100644 --- a/java-redis-cluster/pom.xml +++ b/java-redis-cluster/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-redis-cluster-parent pom - 0.17.0 + 0.18.0-SNAPSHOT Google Google Cloud Memorystore for Redis API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-redis-cluster - 0.17.0 + 0.18.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-redis-cluster-v1 - 0.17.0 + 0.18.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-redis-cluster-v1beta1 - 0.17.0 + 0.18.0-SNAPSHOT com.google.api.grpc proto-google-cloud-redis-cluster-v1beta1 - 0.17.0 + 0.18.0-SNAPSHOT com.google.api.grpc proto-google-cloud-redis-cluster-v1 - 0.17.0 + 0.18.0-SNAPSHOT diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/pom.xml b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/pom.xml index a505f35de95b..4917769a4161 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/pom.xml +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-redis-cluster-v1 - 0.17.0 + 0.18.0-SNAPSHOT proto-google-cloud-redis-cluster-v1 Proto library for google-cloud-redis-cluster com.google.cloud google-cloud-redis-cluster-parent - 0.17.0 + 0.18.0-SNAPSHOT diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/pom.xml b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/pom.xml index 9e6fad9bdacc..26045e10ecb5 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/pom.xml +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-redis-cluster-v1beta1 - 0.17.0 + 0.18.0-SNAPSHOT proto-google-cloud-redis-cluster-v1beta1 Proto library for google-cloud-redis-cluster com.google.cloud google-cloud-redis-cluster-parent - 0.17.0 + 0.18.0-SNAPSHOT diff --git a/java-redis/google-cloud-redis-bom/pom.xml b/java-redis/google-cloud-redis-bom/pom.xml index fc998b9e4cae..79c0daf180ef 100644 --- a/java-redis/google-cloud-redis-bom/pom.xml +++ b/java-redis/google-cloud-redis-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-redis-bom - 2.48.0 + 2.49.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-redis - 2.48.0 + 2.49.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-redis-v1beta1 - 0.136.0 + 0.137.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-redis-v1 - 2.48.0 + 2.49.0-SNAPSHOT com.google.api.grpc proto-google-cloud-redis-v1 - 2.48.0 + 2.49.0-SNAPSHOT com.google.api.grpc proto-google-cloud-redis-v1beta1 - 0.136.0 + 0.137.0-SNAPSHOT diff --git a/java-redis/google-cloud-redis/pom.xml b/java-redis/google-cloud-redis/pom.xml index c0a66f2482a5..d52060e96762 100644 --- a/java-redis/google-cloud-redis/pom.xml +++ b/java-redis/google-cloud-redis/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-redis - 2.48.0 + 2.49.0-SNAPSHOT jar Google Cloud Redis Java idiomatic client for Google Cloud Redis com.google.cloud google-cloud-redis-parent - 2.48.0 + 2.49.0-SNAPSHOT google-cloud-redis diff --git a/java-redis/grpc-google-cloud-redis-v1/pom.xml b/java-redis/grpc-google-cloud-redis-v1/pom.xml index dd7f07c80efe..16adf7da63f7 100644 --- a/java-redis/grpc-google-cloud-redis-v1/pom.xml +++ b/java-redis/grpc-google-cloud-redis-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-redis-v1 - 2.48.0 + 2.49.0-SNAPSHOT grpc-google-cloud-redis-v1 GRPC library for grpc-google-cloud-redis-v1 com.google.cloud google-cloud-redis-parent - 2.48.0 + 2.49.0-SNAPSHOT diff --git a/java-redis/grpc-google-cloud-redis-v1beta1/pom.xml b/java-redis/grpc-google-cloud-redis-v1beta1/pom.xml index c61662620954..5a736e01a77d 100644 --- a/java-redis/grpc-google-cloud-redis-v1beta1/pom.xml +++ b/java-redis/grpc-google-cloud-redis-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-redis-v1beta1 - 0.136.0 + 0.137.0-SNAPSHOT grpc-google-cloud-redis-v1beta1 GRPC library for grpc-google-cloud-redis-v1beta1 com.google.cloud google-cloud-redis-parent - 2.48.0 + 2.49.0-SNAPSHOT diff --git a/java-redis/pom.xml b/java-redis/pom.xml index 653cf8eb020e..1211242bd20b 100644 --- a/java-redis/pom.xml +++ b/java-redis/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-redis-parent pom - 2.48.0 + 2.49.0-SNAPSHOT Google Cloud Redis Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-redis-v1 - 2.48.0 + 2.49.0-SNAPSHOT com.google.api.grpc proto-google-cloud-redis-v1beta1 - 0.136.0 + 0.137.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-redis-v1beta1 - 0.136.0 + 0.137.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-redis-v1 - 2.48.0 + 2.49.0-SNAPSHOT com.google.cloud google-cloud-redis - 2.48.0 + 2.49.0-SNAPSHOT diff --git a/java-redis/proto-google-cloud-redis-v1/pom.xml b/java-redis/proto-google-cloud-redis-v1/pom.xml index 7e51f3e40ccf..4fff522a1f02 100644 --- a/java-redis/proto-google-cloud-redis-v1/pom.xml +++ b/java-redis/proto-google-cloud-redis-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-redis-v1 - 2.48.0 + 2.49.0-SNAPSHOT proto-google-cloud-redis-v1 PROTO library for proto-google-cloud-redis-v1 com.google.cloud google-cloud-redis-parent - 2.48.0 + 2.49.0-SNAPSHOT diff --git a/java-redis/proto-google-cloud-redis-v1beta1/pom.xml b/java-redis/proto-google-cloud-redis-v1beta1/pom.xml index 920b39b25895..7a584ba27751 100644 --- a/java-redis/proto-google-cloud-redis-v1beta1/pom.xml +++ b/java-redis/proto-google-cloud-redis-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-redis-v1beta1 - 0.136.0 + 0.137.0-SNAPSHOT proto-google-cloud-redis-v1beta1 PROTO library for proto-google-cloud-redis-v1beta1 com.google.cloud google-cloud-redis-parent - 2.48.0 + 2.49.0-SNAPSHOT diff --git a/java-resource-settings/google-cloud-resource-settings-bom/pom.xml b/java-resource-settings/google-cloud-resource-settings-bom/pom.xml index 7a4c1878d113..d6a466be37f6 100644 --- a/java-resource-settings/google-cloud-resource-settings-bom/pom.xml +++ b/java-resource-settings/google-cloud-resource-settings-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-resource-settings-bom - 1.45.0 + 1.46.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-resource-settings - 1.45.0 + 1.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-resource-settings-v1 - 1.45.0 + 1.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-resource-settings-v1 - 1.45.0 + 1.46.0-SNAPSHOT diff --git a/java-resource-settings/google-cloud-resource-settings/pom.xml b/java-resource-settings/google-cloud-resource-settings/pom.xml index 71fbd7489df8..b28741117ab9 100644 --- a/java-resource-settings/google-cloud-resource-settings/pom.xml +++ b/java-resource-settings/google-cloud-resource-settings/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-resource-settings - 1.45.0 + 1.46.0-SNAPSHOT jar Google Resource Settings API Resource Settings API allows users to control and modify the behavior of their GCP resources (e.g., VM, firewall, Project, etc.) across the Cloud Resource Hierarchy. com.google.cloud google-cloud-resource-settings-parent - 1.45.0 + 1.46.0-SNAPSHOT google-cloud-resource-settings diff --git a/java-resource-settings/grpc-google-cloud-resource-settings-v1/pom.xml b/java-resource-settings/grpc-google-cloud-resource-settings-v1/pom.xml index 96aa0920bbe4..583d6bfb9253 100644 --- a/java-resource-settings/grpc-google-cloud-resource-settings-v1/pom.xml +++ b/java-resource-settings/grpc-google-cloud-resource-settings-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-resource-settings-v1 - 1.45.0 + 1.46.0-SNAPSHOT grpc-google-cloud-resource-settings-v1 GRPC library for google-cloud-resource-settings com.google.cloud google-cloud-resource-settings-parent - 1.45.0 + 1.46.0-SNAPSHOT diff --git a/java-resource-settings/pom.xml b/java-resource-settings/pom.xml index 419b438d6312..4123fc9f586d 100644 --- a/java-resource-settings/pom.xml +++ b/java-resource-settings/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-resource-settings-parent pom - 1.45.0 + 1.46.0-SNAPSHOT Google Resource Settings API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-resource-settings - 1.45.0 + 1.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-resource-settings-v1 - 1.45.0 + 1.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-resource-settings-v1 - 1.45.0 + 1.46.0-SNAPSHOT diff --git a/java-resource-settings/proto-google-cloud-resource-settings-v1/pom.xml b/java-resource-settings/proto-google-cloud-resource-settings-v1/pom.xml index d93be911d362..c54f92375c2f 100644 --- a/java-resource-settings/proto-google-cloud-resource-settings-v1/pom.xml +++ b/java-resource-settings/proto-google-cloud-resource-settings-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-resource-settings-v1 - 1.45.0 + 1.46.0-SNAPSHOT proto-google-cloud-resource-settings-v1 Proto library for google-cloud-resource-settings com.google.cloud google-cloud-resource-settings-parent - 1.45.0 + 1.46.0-SNAPSHOT diff --git a/java-resourcemanager/google-cloud-resourcemanager-bom/pom.xml b/java-resourcemanager/google-cloud-resourcemanager-bom/pom.xml index 7ce713e7b87c..0df82e4b10a6 100644 --- a/java-resourcemanager/google-cloud-resourcemanager-bom/pom.xml +++ b/java-resourcemanager/google-cloud-resourcemanager-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-resourcemanager-bom - 1.47.0 + 1.48.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-resourcemanager - 1.47.0 + 1.48.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-resourcemanager-v3 - 1.47.0 + 1.48.0-SNAPSHOT com.google.api.grpc proto-google-cloud-resourcemanager-v3 - 1.47.0 + 1.48.0-SNAPSHOT diff --git a/java-resourcemanager/google-cloud-resourcemanager/pom.xml b/java-resourcemanager/google-cloud-resourcemanager/pom.xml index 88d633c1d4ef..bb2584362352 100644 --- a/java-resourcemanager/google-cloud-resourcemanager/pom.xml +++ b/java-resourcemanager/google-cloud-resourcemanager/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-resourcemanager jar - 1.47.0 + 1.48.0-SNAPSHOT Google Cloud Resource Manager Java idiomatic client for Google Cloud Resource Manager @@ -13,7 +13,7 @@ com.google.cloud google-cloud-resourcemanager-parent - 1.47.0 + 1.48.0-SNAPSHOT diff --git a/java-resourcemanager/grpc-google-cloud-resourcemanager-v3/pom.xml b/java-resourcemanager/grpc-google-cloud-resourcemanager-v3/pom.xml index 1ec7a10c00f3..5f8c6cafc507 100644 --- a/java-resourcemanager/grpc-google-cloud-resourcemanager-v3/pom.xml +++ b/java-resourcemanager/grpc-google-cloud-resourcemanager-v3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-resourcemanager-v3 - 1.47.0 + 1.48.0-SNAPSHOT grpc-google-cloud-resourcemanager-v3 GRPC library for google-cloud-resourcemanager com.google.cloud google-cloud-resourcemanager-parent - 1.47.0 + 1.48.0-SNAPSHOT diff --git a/java-resourcemanager/pom.xml b/java-resourcemanager/pom.xml index 8cecfdc52853..154f1d7b9f07 100644 --- a/java-resourcemanager/pom.xml +++ b/java-resourcemanager/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-resourcemanager-parent pom - 1.47.0 + 1.48.0-SNAPSHOT Google Resource Manager API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,18 +29,18 @@ com.google.cloud google-cloud-resourcemanager - 1.47.0 + 1.48.0-SNAPSHOT com.google.api.grpc proto-google-cloud-resourcemanager-v3 - 1.47.0 + 1.48.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-resourcemanager-v3 - 1.47.0 + 1.48.0-SNAPSHOT diff --git a/java-resourcemanager/proto-google-cloud-resourcemanager-v3/pom.xml b/java-resourcemanager/proto-google-cloud-resourcemanager-v3/pom.xml index 8460c4d0b236..508a30b10ca0 100644 --- a/java-resourcemanager/proto-google-cloud-resourcemanager-v3/pom.xml +++ b/java-resourcemanager/proto-google-cloud-resourcemanager-v3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-resourcemanager-v3 - 1.47.0 + 1.48.0-SNAPSHOT proto-google-cloud-resourcemanager-v3 Proto library for google-cloud-resourcemanager com.google.cloud google-cloud-resourcemanager-parent - 1.47.0 + 1.48.0-SNAPSHOT diff --git a/java-retail/google-cloud-retail-bom/pom.xml b/java-retail/google-cloud-retail-bom/pom.xml index ea2bfdce49d0..33eb2eddd5d5 100644 --- a/java-retail/google-cloud-retail-bom/pom.xml +++ b/java-retail/google-cloud-retail-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-retail-bom - 2.47.0 + 2.48.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,37 +27,37 @@ com.google.cloud google-cloud-retail - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-retail-v2 - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-retail-v2alpha - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-retail-v2beta - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc proto-google-cloud-retail-v2 - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc proto-google-cloud-retail-v2alpha - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc proto-google-cloud-retail-v2beta - 2.47.0 + 2.48.0-SNAPSHOT diff --git a/java-retail/google-cloud-retail/pom.xml b/java-retail/google-cloud-retail/pom.xml index cc41e0a96be6..f250e2f42610 100644 --- a/java-retail/google-cloud-retail/pom.xml +++ b/java-retail/google-cloud-retail/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-retail - 2.47.0 + 2.48.0-SNAPSHOT jar Google Cloud Retail Retail solutions API. com.google.cloud google-cloud-retail-parent - 2.47.0 + 2.48.0-SNAPSHOT google-cloud-retail diff --git a/java-retail/grpc-google-cloud-retail-v2/pom.xml b/java-retail/grpc-google-cloud-retail-v2/pom.xml index f43794581836..a836d0254e81 100644 --- a/java-retail/grpc-google-cloud-retail-v2/pom.xml +++ b/java-retail/grpc-google-cloud-retail-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-retail-v2 - 2.47.0 + 2.48.0-SNAPSHOT grpc-google-cloud-retail-v2 GRPC library for google-cloud-retail com.google.cloud google-cloud-retail-parent - 2.47.0 + 2.48.0-SNAPSHOT diff --git a/java-retail/grpc-google-cloud-retail-v2alpha/pom.xml b/java-retail/grpc-google-cloud-retail-v2alpha/pom.xml index accf8d9b1067..0ca4a79b2d7d 100644 --- a/java-retail/grpc-google-cloud-retail-v2alpha/pom.xml +++ b/java-retail/grpc-google-cloud-retail-v2alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-retail-v2alpha - 2.47.0 + 2.48.0-SNAPSHOT grpc-google-cloud-retail-v2alpha GRPC library for google-cloud-retail com.google.cloud google-cloud-retail-parent - 2.47.0 + 2.48.0-SNAPSHOT diff --git a/java-retail/grpc-google-cloud-retail-v2beta/pom.xml b/java-retail/grpc-google-cloud-retail-v2beta/pom.xml index e65468fdfcfe..355c6e1b670b 100644 --- a/java-retail/grpc-google-cloud-retail-v2beta/pom.xml +++ b/java-retail/grpc-google-cloud-retail-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-retail-v2beta - 2.47.0 + 2.48.0-SNAPSHOT grpc-google-cloud-retail-v2beta GRPC library for google-cloud-retail com.google.cloud google-cloud-retail-parent - 2.47.0 + 2.48.0-SNAPSHOT diff --git a/java-retail/pom.xml b/java-retail/pom.xml index 19021836dc7e..c8ad18eea757 100644 --- a/java-retail/pom.xml +++ b/java-retail/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-retail-parent pom - 2.47.0 + 2.48.0-SNAPSHOT Google Cloud Retail Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.cloud google-cloud-retail - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc proto-google-cloud-retail-v2beta - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc proto-google-cloud-retail-v2alpha - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-retail-v2beta - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-retail-v2alpha - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc proto-google-cloud-retail-v2 - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-retail-v2 - 2.47.0 + 2.48.0-SNAPSHOT diff --git a/java-retail/proto-google-cloud-retail-v2/pom.xml b/java-retail/proto-google-cloud-retail-v2/pom.xml index 57ef273153a6..bb79b500185c 100644 --- a/java-retail/proto-google-cloud-retail-v2/pom.xml +++ b/java-retail/proto-google-cloud-retail-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-retail-v2 - 2.47.0 + 2.48.0-SNAPSHOT proto-google-cloud-retail-v2 Proto library for google-cloud-retail com.google.cloud google-cloud-retail-parent - 2.47.0 + 2.48.0-SNAPSHOT diff --git a/java-retail/proto-google-cloud-retail-v2alpha/pom.xml b/java-retail/proto-google-cloud-retail-v2alpha/pom.xml index fa6e84654664..6904a594b133 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/pom.xml +++ b/java-retail/proto-google-cloud-retail-v2alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-retail-v2alpha - 2.47.0 + 2.48.0-SNAPSHOT proto-google-cloud-retail-v2alpha Proto library for google-cloud-retail com.google.cloud google-cloud-retail-parent - 2.47.0 + 2.48.0-SNAPSHOT diff --git a/java-retail/proto-google-cloud-retail-v2beta/pom.xml b/java-retail/proto-google-cloud-retail-v2beta/pom.xml index 96b96ed9dcea..1edb86b25276 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/pom.xml +++ b/java-retail/proto-google-cloud-retail-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-retail-v2beta - 2.47.0 + 2.48.0-SNAPSHOT proto-google-cloud-retail-v2beta Proto library for google-cloud-retail com.google.cloud google-cloud-retail-parent - 2.47.0 + 2.48.0-SNAPSHOT diff --git a/java-run/google-cloud-run-bom/pom.xml b/java-run/google-cloud-run-bom/pom.xml index f08b0778fe11..272e3b16fb86 100644 --- a/java-run/google-cloud-run-bom/pom.xml +++ b/java-run/google-cloud-run-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-run-bom - 0.45.0 + 0.46.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-run - 0.45.0 + 0.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-run-v2 - 0.45.0 + 0.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-run-v2 - 0.45.0 + 0.46.0-SNAPSHOT diff --git a/java-run/google-cloud-run/pom.xml b/java-run/google-cloud-run/pom.xml index b53cc3bba349..e01a3d29f2fe 100644 --- a/java-run/google-cloud-run/pom.xml +++ b/java-run/google-cloud-run/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-run - 0.45.0 + 0.46.0-SNAPSHOT jar Google Cloud Run Cloud Run is a managed compute platform that enables you to run containers that are invocable via requests or events. com.google.cloud google-cloud-run-parent - 0.45.0 + 0.46.0-SNAPSHOT google-cloud-run diff --git a/java-run/grpc-google-cloud-run-v2/pom.xml b/java-run/grpc-google-cloud-run-v2/pom.xml index b24116ecbb0b..e39152867d71 100644 --- a/java-run/grpc-google-cloud-run-v2/pom.xml +++ b/java-run/grpc-google-cloud-run-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-run-v2 - 0.45.0 + 0.46.0-SNAPSHOT grpc-google-cloud-run-v2 GRPC library for google-cloud-run com.google.cloud google-cloud-run-parent - 0.45.0 + 0.46.0-SNAPSHOT diff --git a/java-run/pom.xml b/java-run/pom.xml index dbaf2ec80549..dbf258d2da74 100644 --- a/java-run/pom.xml +++ b/java-run/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-run-parent pom - 0.45.0 + 0.46.0-SNAPSHOT Google Cloud Run Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-run - 0.45.0 + 0.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-run-v2 - 0.45.0 + 0.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-run-v2 - 0.45.0 + 0.46.0-SNAPSHOT diff --git a/java-run/proto-google-cloud-run-v2/pom.xml b/java-run/proto-google-cloud-run-v2/pom.xml index a620ac9197f0..c04c5b7cd0c6 100644 --- a/java-run/proto-google-cloud-run-v2/pom.xml +++ b/java-run/proto-google-cloud-run-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-run-v2 - 0.45.0 + 0.46.0-SNAPSHOT proto-google-cloud-run-v2 Proto library for google-cloud-run com.google.cloud google-cloud-run-parent - 0.45.0 + 0.46.0-SNAPSHOT diff --git a/java-samples/pom.xml b/java-samples/pom.xml index f67fda74322e..e1f190fc20de 100644 --- a/java-samples/pom.xml +++ b/java-samples/pom.xml @@ -12,7 +12,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-scheduler/google-cloud-scheduler-bom/pom.xml b/java-scheduler/google-cloud-scheduler-bom/pom.xml index 001c70515266..09fc260cf72d 100644 --- a/java-scheduler/google-cloud-scheduler-bom/pom.xml +++ b/java-scheduler/google-cloud-scheduler-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-scheduler-bom - 2.45.0 + 2.46.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-scheduler - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-scheduler-v1beta1 - 0.130.0 + 0.131.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-scheduler-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-scheduler-v1beta1 - 0.130.0 + 0.131.0-SNAPSHOT com.google.api.grpc proto-google-cloud-scheduler-v1 - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-scheduler/google-cloud-scheduler/pom.xml b/java-scheduler/google-cloud-scheduler/pom.xml index 0394a3e2d811..dd13ca248be3 100644 --- a/java-scheduler/google-cloud-scheduler/pom.xml +++ b/java-scheduler/google-cloud-scheduler/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-scheduler - 2.45.0 + 2.46.0-SNAPSHOT jar Google Cloud Scheduler Fully managed cron job service com.google.cloud google-cloud-scheduler-parent - 2.45.0 + 2.46.0-SNAPSHOT google-cloud-scheduler diff --git a/java-scheduler/grpc-google-cloud-scheduler-v1/pom.xml b/java-scheduler/grpc-google-cloud-scheduler-v1/pom.xml index 3dc67e6bcf97..5d42fd56433c 100644 --- a/java-scheduler/grpc-google-cloud-scheduler-v1/pom.xml +++ b/java-scheduler/grpc-google-cloud-scheduler-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-scheduler-v1 - 2.45.0 + 2.46.0-SNAPSHOT grpc-google-cloud-scheduler-v1 GRPC library for grpc-google-cloud-scheduler-v1 com.google.cloud google-cloud-scheduler-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-scheduler/grpc-google-cloud-scheduler-v1beta1/pom.xml b/java-scheduler/grpc-google-cloud-scheduler-v1beta1/pom.xml index 0f4db71943ea..2eb22cc21c23 100644 --- a/java-scheduler/grpc-google-cloud-scheduler-v1beta1/pom.xml +++ b/java-scheduler/grpc-google-cloud-scheduler-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-scheduler-v1beta1 - 0.130.0 + 0.131.0-SNAPSHOT grpc-google-cloud-scheduler-v1beta1 GRPC library for grpc-google-cloud-scheduler-v1beta1 com.google.cloud google-cloud-scheduler-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-scheduler/pom.xml b/java-scheduler/pom.xml index 09cf168e39f7..fc62451f7320 100644 --- a/java-scheduler/pom.xml +++ b/java-scheduler/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-scheduler-parent pom - 2.45.0 + 2.46.0-SNAPSHOT Google Cloud Scheduler Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-scheduler-v1beta1 - 0.130.0 + 0.131.0-SNAPSHOT com.google.api.grpc proto-google-cloud-scheduler-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-scheduler-v1beta1 - 0.130.0 + 0.131.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-scheduler-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.cloud google-cloud-scheduler - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-scheduler/proto-google-cloud-scheduler-v1/pom.xml b/java-scheduler/proto-google-cloud-scheduler-v1/pom.xml index 93136ade35d0..e8825e727000 100644 --- a/java-scheduler/proto-google-cloud-scheduler-v1/pom.xml +++ b/java-scheduler/proto-google-cloud-scheduler-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-scheduler-v1 - 2.45.0 + 2.46.0-SNAPSHOT proto-google-cloud-scheduler-v1 PROTO library for proto-google-cloud-scheduler-v1 com.google.cloud google-cloud-scheduler-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-scheduler/proto-google-cloud-scheduler-v1beta1/pom.xml b/java-scheduler/proto-google-cloud-scheduler-v1beta1/pom.xml index 31672b53e127..710b0150e1a6 100644 --- a/java-scheduler/proto-google-cloud-scheduler-v1beta1/pom.xml +++ b/java-scheduler/proto-google-cloud-scheduler-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-scheduler-v1beta1 - 0.130.0 + 0.131.0-SNAPSHOT proto-google-cloud-scheduler-v1beta1 PROTO library for proto-google-cloud-scheduler-v1beta1 com.google.cloud google-cloud-scheduler-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-secretmanager/google-cloud-secretmanager-bom/pom.xml b/java-secretmanager/google-cloud-secretmanager-bom/pom.xml index 7b2669a00ba6..4e77640bcea0 100644 --- a/java-secretmanager/google-cloud-secretmanager-bom/pom.xml +++ b/java-secretmanager/google-cloud-secretmanager-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-secretmanager-bom - 2.45.0 + 2.46.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-secretmanager - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-secretmanager-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-secretmanager-v1beta2 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-secretmanager-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-secretmanager-v1beta2 - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-secretmanager/google-cloud-secretmanager/pom.xml b/java-secretmanager/google-cloud-secretmanager/pom.xml index 30c678f8ab3f..c150b8b5123f 100644 --- a/java-secretmanager/google-cloud-secretmanager/pom.xml +++ b/java-secretmanager/google-cloud-secretmanager/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-secretmanager - 2.45.0 + 2.46.0-SNAPSHOT jar Google Cloud Secret Manager Java idiomatic client for Google Cloud Secret Manager com.google.cloud google-cloud-secretmanager-parent - 2.45.0 + 2.46.0-SNAPSHOT google-cloud-secretmanager diff --git a/java-secretmanager/grpc-google-cloud-secretmanager-v1/pom.xml b/java-secretmanager/grpc-google-cloud-secretmanager-v1/pom.xml index 1b7b4a5c0bc2..80b6d81caccd 100644 --- a/java-secretmanager/grpc-google-cloud-secretmanager-v1/pom.xml +++ b/java-secretmanager/grpc-google-cloud-secretmanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-secretmanager-v1 - 2.45.0 + 2.46.0-SNAPSHOT grpc-google-cloud-secretmanager-v1 GRPC library for grpc-google-cloud-secretmanager-v1 com.google.cloud google-cloud-secretmanager-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-secretmanager/grpc-google-cloud-secretmanager-v1beta2/pom.xml b/java-secretmanager/grpc-google-cloud-secretmanager-v1beta2/pom.xml index 83f7787c8f3f..c8cbfcf9280e 100644 --- a/java-secretmanager/grpc-google-cloud-secretmanager-v1beta2/pom.xml +++ b/java-secretmanager/grpc-google-cloud-secretmanager-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-secretmanager-v1beta2 - 2.45.0 + 2.46.0-SNAPSHOT grpc-google-cloud-secretmanager-v1beta2 GRPC library for google-cloud-secretmanager com.google.cloud google-cloud-secretmanager-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-secretmanager/pom.xml b/java-secretmanager/pom.xml index 74358e811225..28fbcf5aa841 100644 --- a/java-secretmanager/pom.xml +++ b/java-secretmanager/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-secretmanager-parent pom - 2.45.0 + 2.46.0-SNAPSHOT Google Cloud secretmanager Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-secretmanager-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-secretmanager-v1beta2 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-secretmanager-v1beta2 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-secretmanager-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.cloud google-cloud-secretmanager - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/pom.xml b/java-secretmanager/proto-google-cloud-secretmanager-v1/pom.xml index 2aa690244634..30bcd62e244b 100644 --- a/java-secretmanager/proto-google-cloud-secretmanager-v1/pom.xml +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-secretmanager-v1 - 2.45.0 + 2.46.0-SNAPSHOT proto-google-cloud-secretmanager-v1 PROTO library for proto-google-cloud-secretmanager-v1 com.google.cloud google-cloud-secretmanager-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/pom.xml b/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/pom.xml index 59f40a2fec2e..ed004928901a 100644 --- a/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/pom.xml +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-secretmanager-v1beta2 - 2.45.0 + 2.46.0-SNAPSHOT proto-google-cloud-secretmanager-v1beta2 Proto library for google-cloud-secretmanager com.google.cloud google-cloud-secretmanager-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-securesourcemanager/google-cloud-securesourcemanager-bom/pom.xml b/java-securesourcemanager/google-cloud-securesourcemanager-bom/pom.xml index 638a64cb5b29..87f057dfaf65 100644 --- a/java-securesourcemanager/google-cloud-securesourcemanager-bom/pom.xml +++ b/java-securesourcemanager/google-cloud-securesourcemanager-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-securesourcemanager-bom - 0.15.0 + 0.16.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-securesourcemanager - 0.15.0 + 0.16.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-securesourcemanager-v1 - 0.15.0 + 0.16.0-SNAPSHOT com.google.api.grpc proto-google-cloud-securesourcemanager-v1 - 0.15.0 + 0.16.0-SNAPSHOT diff --git a/java-securesourcemanager/google-cloud-securesourcemanager/pom.xml b/java-securesourcemanager/google-cloud-securesourcemanager/pom.xml index 8d6acede7f54..57b81d3f54bd 100644 --- a/java-securesourcemanager/google-cloud-securesourcemanager/pom.xml +++ b/java-securesourcemanager/google-cloud-securesourcemanager/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-securesourcemanager - 0.15.0 + 0.16.0-SNAPSHOT jar Google Secure Source Manager API Secure Source Manager API Regionally deployed, single-tenant managed source code repository hosted on @@ -11,7 +11,7 @@ com.google.cloud google-cloud-securesourcemanager-parent - 0.15.0 + 0.16.0-SNAPSHOT google-cloud-securesourcemanager diff --git a/java-securesourcemanager/grpc-google-cloud-securesourcemanager-v1/pom.xml b/java-securesourcemanager/grpc-google-cloud-securesourcemanager-v1/pom.xml index 95d1e499887c..6a81a5abb6b9 100644 --- a/java-securesourcemanager/grpc-google-cloud-securesourcemanager-v1/pom.xml +++ b/java-securesourcemanager/grpc-google-cloud-securesourcemanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-securesourcemanager-v1 - 0.15.0 + 0.16.0-SNAPSHOT grpc-google-cloud-securesourcemanager-v1 GRPC library for google-cloud-securesourcemanager com.google.cloud google-cloud-securesourcemanager-parent - 0.15.0 + 0.16.0-SNAPSHOT diff --git a/java-securesourcemanager/pom.xml b/java-securesourcemanager/pom.xml index 1ec2da1197e6..c0b96940c25c 100644 --- a/java-securesourcemanager/pom.xml +++ b/java-securesourcemanager/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-securesourcemanager-parent pom - 0.15.0 + 0.16.0-SNAPSHOT Google Secure Source Manager API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-securesourcemanager - 0.15.0 + 0.16.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-securesourcemanager-v1 - 0.15.0 + 0.16.0-SNAPSHOT com.google.api.grpc proto-google-cloud-securesourcemanager-v1 - 0.15.0 + 0.16.0-SNAPSHOT diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/pom.xml b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/pom.xml index b602f9ffe233..201edc070a47 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/pom.xml +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-securesourcemanager-v1 - 0.15.0 + 0.16.0-SNAPSHOT proto-google-cloud-securesourcemanager-v1 Proto library for google-cloud-securesourcemanager com.google.cloud google-cloud-securesourcemanager-parent - 0.15.0 + 0.16.0-SNAPSHOT diff --git a/java-security-private-ca/google-cloud-security-private-ca-bom/pom.xml b/java-security-private-ca/google-cloud-security-private-ca-bom/pom.xml index daf1513ea359..1cb9e0edcb03 100644 --- a/java-security-private-ca/google-cloud-security-private-ca-bom/pom.xml +++ b/java-security-private-ca/google-cloud-security-private-ca-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-security-private-ca-bom - 2.47.0 + 2.48.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-security-private-ca - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-security-private-ca-v1beta1 - 0.54.0 + 0.55.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-security-private-ca-v1 - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc proto-google-cloud-security-private-ca-v1beta1 - 0.54.0 + 0.55.0-SNAPSHOT com.google.api.grpc proto-google-cloud-security-private-ca-v1 - 2.47.0 + 2.48.0-SNAPSHOT diff --git a/java-security-private-ca/google-cloud-security-private-ca/pom.xml b/java-security-private-ca/google-cloud-security-private-ca/pom.xml index ed04dab1941f..3cd38fea680d 100644 --- a/java-security-private-ca/google-cloud-security-private-ca/pom.xml +++ b/java-security-private-ca/google-cloud-security-private-ca/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-security-private-ca - 2.47.0 + 2.48.0-SNAPSHOT jar Google Certificate Authority Service simplifies the deployment and management of private CAs without managing infrastructure. com.google.cloud google-cloud-security-private-ca-parent - 2.47.0 + 2.48.0-SNAPSHOT google-cloud-security-private-ca diff --git a/java-security-private-ca/grpc-google-cloud-security-private-ca-v1/pom.xml b/java-security-private-ca/grpc-google-cloud-security-private-ca-v1/pom.xml index 3c2e7471037b..fa721bfaaae1 100644 --- a/java-security-private-ca/grpc-google-cloud-security-private-ca-v1/pom.xml +++ b/java-security-private-ca/grpc-google-cloud-security-private-ca-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-security-private-ca-v1 - 2.47.0 + 2.48.0-SNAPSHOT grpc-google-cloud-security-private-ca-v1 GRPC library for google-cloud-security-private-ca com.google.cloud google-cloud-security-private-ca-parent - 2.47.0 + 2.48.0-SNAPSHOT diff --git a/java-security-private-ca/grpc-google-cloud-security-private-ca-v1beta1/pom.xml b/java-security-private-ca/grpc-google-cloud-security-private-ca-v1beta1/pom.xml index e26bd0afce0d..921c83b3ba04 100644 --- a/java-security-private-ca/grpc-google-cloud-security-private-ca-v1beta1/pom.xml +++ b/java-security-private-ca/grpc-google-cloud-security-private-ca-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-security-private-ca-v1beta1 - 0.54.0 + 0.55.0-SNAPSHOT grpc-google-cloud-security-private-ca-v1beta1 GRPC library for google-cloud-security-private-ca com.google.cloud google-cloud-security-private-ca-parent - 2.47.0 + 2.48.0-SNAPSHOT diff --git a/java-security-private-ca/pom.xml b/java-security-private-ca/pom.xml index ef9f3f450d03..f3bfaf624616 100644 --- a/java-security-private-ca/pom.xml +++ b/java-security-private-ca/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-security-private-ca-parent pom - 2.47.0 + 2.48.0-SNAPSHOT Google Certificate Authority Service Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-security-private-ca - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc proto-google-cloud-security-private-ca-v1 - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-security-private-ca-v1 - 2.47.0 + 2.48.0-SNAPSHOT com.google.api.grpc proto-google-cloud-security-private-ca-v1beta1 - 0.54.0 + 0.55.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-security-private-ca-v1beta1 - 0.54.0 + 0.55.0-SNAPSHOT diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/pom.xml b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/pom.xml index 1c9a57ab663f..4746c397f95f 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/pom.xml +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-security-private-ca-v1 - 2.47.0 + 2.48.0-SNAPSHOT proto-google-cloud-security-private-ca-v1 Proto library for google-cloud-security-private-ca com.google.cloud google-cloud-security-private-ca-parent - 2.47.0 + 2.48.0-SNAPSHOT diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1beta1/pom.xml b/java-security-private-ca/proto-google-cloud-security-private-ca-v1beta1/pom.xml index 14bef0849ffb..096c98b84d7d 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1beta1/pom.xml +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-security-private-ca-v1beta1 - 0.54.0 + 0.55.0-SNAPSHOT proto-google-cloud-security-private-ca-v1beta1 Proto library for google-cloud-security-private-ca com.google.cloud google-cloud-security-private-ca-parent - 2.47.0 + 2.48.0-SNAPSHOT diff --git a/java-securitycenter-settings/google-cloud-securitycenter-settings-bom/pom.xml b/java-securitycenter-settings/google-cloud-securitycenter-settings-bom/pom.xml index fa60ea9b29fd..ec2a1427a879 100644 --- a/java-securitycenter-settings/google-cloud-securitycenter-settings-bom/pom.xml +++ b/java-securitycenter-settings/google-cloud-securitycenter-settings-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-securitycenter-settings-bom - 0.48.0 + 0.49.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-securitycenter-settings - 0.48.0 + 0.49.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-securitycenter-settings-v1beta1 - 0.48.0 + 0.49.0-SNAPSHOT com.google.api.grpc proto-google-cloud-securitycenter-settings-v1beta1 - 0.48.0 + 0.49.0-SNAPSHOT diff --git a/java-securitycenter-settings/google-cloud-securitycenter-settings/pom.xml b/java-securitycenter-settings/google-cloud-securitycenter-settings/pom.xml index 3982afa380ae..fd4edef5d379 100644 --- a/java-securitycenter-settings/google-cloud-securitycenter-settings/pom.xml +++ b/java-securitycenter-settings/google-cloud-securitycenter-settings/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-securitycenter-settings - 0.48.0 + 0.49.0-SNAPSHOT jar Google Security Command Center Settings API is the canonical security and data risk database for Google Cloud. Security Command Center enables you to understand your security and data attack surface by providing asset inventory, discovery, search, and management. com.google.cloud google-cloud-securitycenter-settings-parent - 0.48.0 + 0.49.0-SNAPSHOT google-cloud-securitycenter-settings diff --git a/java-securitycenter-settings/grpc-google-cloud-securitycenter-settings-v1beta1/pom.xml b/java-securitycenter-settings/grpc-google-cloud-securitycenter-settings-v1beta1/pom.xml index 8b43ad8cd82c..21607a184768 100644 --- a/java-securitycenter-settings/grpc-google-cloud-securitycenter-settings-v1beta1/pom.xml +++ b/java-securitycenter-settings/grpc-google-cloud-securitycenter-settings-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-securitycenter-settings-v1beta1 - 0.48.0 + 0.49.0-SNAPSHOT grpc-google-cloud-securitycenter-settings-v1beta1 GRPC library for grpc-google-cloud-securitycenter-settings-v1beta1 com.google.cloud google-cloud-securitycenter-settings-parent - 0.48.0 + 0.49.0-SNAPSHOT diff --git a/java-securitycenter-settings/pom.xml b/java-securitycenter-settings/pom.xml index c3113bcc9fa1..94c74dff6fdc 100644 --- a/java-securitycenter-settings/pom.xml +++ b/java-securitycenter-settings/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-securitycenter-settings-parent pom - 0.48.0 + 0.49.0-SNAPSHOT Google Security Command Center Settings API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-securitycenter-settings - 0.48.0 + 0.49.0-SNAPSHOT com.google.api.grpc proto-google-cloud-securitycenter-settings-v1beta1 - 0.48.0 + 0.49.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-securitycenter-settings-v1beta1 - 0.48.0 + 0.49.0-SNAPSHOT diff --git a/java-securitycenter-settings/proto-google-cloud-securitycenter-settings-v1beta1/pom.xml b/java-securitycenter-settings/proto-google-cloud-securitycenter-settings-v1beta1/pom.xml index 8e1c0230e972..fdc4b379af55 100644 --- a/java-securitycenter-settings/proto-google-cloud-securitycenter-settings-v1beta1/pom.xml +++ b/java-securitycenter-settings/proto-google-cloud-securitycenter-settings-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-securitycenter-settings-v1beta1 - 0.48.0 + 0.49.0-SNAPSHOT proto-google-cloud-securitycenter-settings-v1beta1 PROTO library for proto-google-cloud-securitycenter-settings-v1beta1 com.google.cloud google-cloud-securitycenter-settings-parent - 0.48.0 + 0.49.0-SNAPSHOT diff --git a/java-securitycenter/google-cloud-securitycenter-bom/pom.xml b/java-securitycenter/google-cloud-securitycenter-bom/pom.xml index fc7cac4acb19..7cae0feebec3 100644 --- a/java-securitycenter/google-cloud-securitycenter-bom/pom.xml +++ b/java-securitycenter/google-cloud-securitycenter-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-securitycenter-bom - 2.53.0 + 2.54.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -23,47 +23,47 @@ com.google.cloud google-cloud-securitycenter - 2.53.0 + 2.54.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-securitycenter-v1 - 2.53.0 + 2.54.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-securitycenter-v1beta1 - 0.148.0 + 0.149.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-securitycenter-v1p1beta1 - 0.148.0 + 0.149.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-securitycenter-v2 - 2.53.0 + 2.54.0-SNAPSHOT com.google.api.grpc proto-google-cloud-securitycenter-v1 - 2.53.0 + 2.54.0-SNAPSHOT com.google.api.grpc proto-google-cloud-securitycenter-v1beta1 - 0.148.0 + 0.149.0-SNAPSHOT com.google.api.grpc proto-google-cloud-securitycenter-v1p1beta1 - 0.148.0 + 0.149.0-SNAPSHOT com.google.api.grpc proto-google-cloud-securitycenter-v2 - 2.53.0 + 2.54.0-SNAPSHOT diff --git a/java-securitycenter/google-cloud-securitycenter/pom.xml b/java-securitycenter/google-cloud-securitycenter/pom.xml index 3723a4c7c00f..c3918e26ca38 100644 --- a/java-securitycenter/google-cloud-securitycenter/pom.xml +++ b/java-securitycenter/google-cloud-securitycenter/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-securitycenter - 2.53.0 + 2.54.0-SNAPSHOT jar Google Cloud Security Command Center Java idiomatic client for Google Cloud Security Command Center com.google.cloud google-cloud-securitycenter-parent - 2.53.0 + 2.54.0-SNAPSHOT google-cloud-securitycenter diff --git a/java-securitycenter/grpc-google-cloud-securitycenter-v1/pom.xml b/java-securitycenter/grpc-google-cloud-securitycenter-v1/pom.xml index 6d220b58377b..5e1bdd6854ac 100644 --- a/java-securitycenter/grpc-google-cloud-securitycenter-v1/pom.xml +++ b/java-securitycenter/grpc-google-cloud-securitycenter-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1 - 2.53.0 + 2.54.0-SNAPSHOT grpc-google-cloud-securitycenter-v1 GRPC library for grpc-google-cloud-securitycenter-v1 com.google.cloud google-cloud-securitycenter-parent - 2.53.0 + 2.54.0-SNAPSHOT diff --git a/java-securitycenter/grpc-google-cloud-securitycenter-v1beta1/pom.xml b/java-securitycenter/grpc-google-cloud-securitycenter-v1beta1/pom.xml index 0d1285f9e41b..9cf203e6d675 100644 --- a/java-securitycenter/grpc-google-cloud-securitycenter-v1beta1/pom.xml +++ b/java-securitycenter/grpc-google-cloud-securitycenter-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1beta1 - 0.148.0 + 0.149.0-SNAPSHOT grpc-google-cloud-securitycenter-v1beta1 GRPC library for grpc-google-cloud-securitycenter-v1beta1 com.google.cloud google-cloud-securitycenter-parent - 2.53.0 + 2.54.0-SNAPSHOT diff --git a/java-securitycenter/grpc-google-cloud-securitycenter-v1p1beta1/pom.xml b/java-securitycenter/grpc-google-cloud-securitycenter-v1p1beta1/pom.xml index f0a8443234e0..9d68cd5ddc4d 100644 --- a/java-securitycenter/grpc-google-cloud-securitycenter-v1p1beta1/pom.xml +++ b/java-securitycenter/grpc-google-cloud-securitycenter-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1p1beta1 - 0.148.0 + 0.149.0-SNAPSHOT grpc-google-cloud-securitycenter-v1p1beta1 GRPC library for grpc-google-cloud-securitycenter-v1p1beta1 com.google.cloud google-cloud-securitycenter-parent - 2.53.0 + 2.54.0-SNAPSHOT diff --git a/java-securitycenter/grpc-google-cloud-securitycenter-v2/pom.xml b/java-securitycenter/grpc-google-cloud-securitycenter-v2/pom.xml index f0cb6e9b19a2..5659dcea86ec 100644 --- a/java-securitycenter/grpc-google-cloud-securitycenter-v2/pom.xml +++ b/java-securitycenter/grpc-google-cloud-securitycenter-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-securitycenter-v2 - 2.53.0 + 2.54.0-SNAPSHOT grpc-google-cloud-securitycenter-v2 GRPC library for google-cloud-securitycenter com.google.cloud google-cloud-securitycenter-parent - 2.53.0 + 2.54.0-SNAPSHOT diff --git a/java-securitycenter/pom.xml b/java-securitycenter/pom.xml index 1fc9be412b9d..9cb6c8682e90 100644 --- a/java-securitycenter/pom.xml +++ b/java-securitycenter/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-securitycenter-parent pom - 2.53.0 + 2.54.0-SNAPSHOT Google Cloud Security Command Center Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,47 +29,47 @@ com.google.api.grpc proto-google-cloud-securitycenter-v1 - 2.53.0 + 2.54.0-SNAPSHOT com.google.api.grpc proto-google-cloud-securitycenter-v2 - 2.53.0 + 2.54.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-securitycenter-v2 - 2.53.0 + 2.54.0-SNAPSHOT com.google.api.grpc proto-google-cloud-securitycenter-v1beta1 - 0.148.0 + 0.149.0-SNAPSHOT com.google.api.grpc proto-google-cloud-securitycenter-v1p1beta1 - 0.148.0 + 0.149.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-securitycenter-v1 - 2.53.0 + 2.54.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-securitycenter-v1beta1 - 0.148.0 + 0.149.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-securitycenter-v1p1beta1 - 0.148.0 + 0.149.0-SNAPSHOT com.google.cloud google-cloud-securitycenter - 2.53.0 + 2.54.0-SNAPSHOT diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/pom.xml b/java-securitycenter/proto-google-cloud-securitycenter-v1/pom.xml index 4eb8e9d23f33..0cd984aa4153 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/pom.xml +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-securitycenter-v1 - 2.53.0 + 2.54.0-SNAPSHOT proto-google-cloud-securitycenter-v1 PROTO library for proto-google-cloud-securitycenter-v1 com.google.cloud google-cloud-securitycenter-parent - 2.53.0 + 2.54.0-SNAPSHOT diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1beta1/pom.xml b/java-securitycenter/proto-google-cloud-securitycenter-v1beta1/pom.xml index 4bfc7715d867..3387cccc345c 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1beta1/pom.xml +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-securitycenter-v1beta1 - 0.148.0 + 0.149.0-SNAPSHOT proto-google-cloud-securitycenter-v1beta1 PROTO library for proto-google-cloud-securitycenter-v1beta1 com.google.cloud google-cloud-securitycenter-parent - 2.53.0 + 2.54.0-SNAPSHOT diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1p1beta1/pom.xml b/java-securitycenter/proto-google-cloud-securitycenter-v1p1beta1/pom.xml index c1d0f5e8ac4d..2ca0940bc1f1 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1p1beta1/pom.xml +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-securitycenter-v1p1beta1 - 0.148.0 + 0.149.0-SNAPSHOT proto-google-cloud-securitycenter-v1p1beta1 PROTO library for proto-google-cloud-securitycenter-v1p1beta1 com.google.cloud google-cloud-securitycenter-parent - 2.53.0 + 2.54.0-SNAPSHOT diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/pom.xml b/java-securitycenter/proto-google-cloud-securitycenter-v2/pom.xml index 4e56e1f4daf6..acd086a73684 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/pom.xml +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-securitycenter-v2 - 2.53.0 + 2.54.0-SNAPSHOT proto-google-cloud-securitycenter-v2 Proto library for google-cloud-securitycenter com.google.cloud google-cloud-securitycenter-parent - 2.53.0 + 2.54.0-SNAPSHOT diff --git a/java-securitycentermanagement/google-cloud-securitycentermanagement-bom/pom.xml b/java-securitycentermanagement/google-cloud-securitycentermanagement-bom/pom.xml index a3252731c56c..34b5284ac223 100644 --- a/java-securitycentermanagement/google-cloud-securitycentermanagement-bom/pom.xml +++ b/java-securitycentermanagement/google-cloud-securitycentermanagement-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-securitycentermanagement-bom - 0.13.0 + 0.14.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-securitycentermanagement - 0.13.0 + 0.14.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-securitycentermanagement-v1 - 0.13.0 + 0.14.0-SNAPSHOT com.google.api.grpc proto-google-cloud-securitycentermanagement-v1 - 0.13.0 + 0.14.0-SNAPSHOT diff --git a/java-securitycentermanagement/google-cloud-securitycentermanagement/pom.xml b/java-securitycentermanagement/google-cloud-securitycentermanagement/pom.xml index dbeec8060546..1fd7cdf4ae68 100644 --- a/java-securitycentermanagement/google-cloud-securitycentermanagement/pom.xml +++ b/java-securitycentermanagement/google-cloud-securitycentermanagement/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-securitycentermanagement - 0.13.0 + 0.14.0-SNAPSHOT jar Google Security Center Management API Security Center Management API Security Center Management API com.google.cloud google-cloud-securitycentermanagement-parent - 0.13.0 + 0.14.0-SNAPSHOT google-cloud-securitycentermanagement diff --git a/java-securitycentermanagement/grpc-google-cloud-securitycentermanagement-v1/pom.xml b/java-securitycentermanagement/grpc-google-cloud-securitycentermanagement-v1/pom.xml index e3a1949de69c..9bdcca69215b 100644 --- a/java-securitycentermanagement/grpc-google-cloud-securitycentermanagement-v1/pom.xml +++ b/java-securitycentermanagement/grpc-google-cloud-securitycentermanagement-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-securitycentermanagement-v1 - 0.13.0 + 0.14.0-SNAPSHOT grpc-google-cloud-securitycentermanagement-v1 GRPC library for google-cloud-securitycentermanagement com.google.cloud google-cloud-securitycentermanagement-parent - 0.13.0 + 0.14.0-SNAPSHOT diff --git a/java-securitycentermanagement/pom.xml b/java-securitycentermanagement/pom.xml index f21d03cafd9a..5bcd1c0f9074 100644 --- a/java-securitycentermanagement/pom.xml +++ b/java-securitycentermanagement/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-securitycentermanagement-parent pom - 0.13.0 + 0.14.0-SNAPSHOT Google Security Center Management API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-securitycentermanagement - 0.13.0 + 0.14.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-securitycentermanagement-v1 - 0.13.0 + 0.14.0-SNAPSHOT com.google.api.grpc proto-google-cloud-securitycentermanagement-v1 - 0.13.0 + 0.14.0-SNAPSHOT diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/pom.xml b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/pom.xml index b40c78b598fe..ef319ff55eac 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/pom.xml +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-securitycentermanagement-v1 - 0.13.0 + 0.14.0-SNAPSHOT proto-google-cloud-securitycentermanagement-v1 Proto library for google-cloud-securitycentermanagement com.google.cloud google-cloud-securitycentermanagement-parent - 0.13.0 + 0.14.0-SNAPSHOT diff --git a/java-securityposture/google-cloud-securityposture-bom/pom.xml b/java-securityposture/google-cloud-securityposture-bom/pom.xml index d555042cc510..cc168d3764b9 100644 --- a/java-securityposture/google-cloud-securityposture-bom/pom.xml +++ b/java-securityposture/google-cloud-securityposture-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-securityposture-bom - 0.10.0 + 0.11.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-securityposture - 0.10.0 + 0.11.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-securityposture-v1 - 0.10.0 + 0.11.0-SNAPSHOT com.google.api.grpc proto-google-cloud-securityposture-v1 - 0.10.0 + 0.11.0-SNAPSHOT diff --git a/java-securityposture/google-cloud-securityposture/pom.xml b/java-securityposture/google-cloud-securityposture/pom.xml index 4e74735133d9..8e30f196c999 100644 --- a/java-securityposture/google-cloud-securityposture/pom.xml +++ b/java-securityposture/google-cloud-securityposture/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-securityposture - 0.10.0 + 0.11.0-SNAPSHOT jar Google Security Posture API Security Posture API Security Posture is a comprehensive framework of policy sets that empowers organizations to define, assess early, deploy, and monitor their security measures in a unified way and helps simplify governance and reduces administrative toil. com.google.cloud google-cloud-securityposture-parent - 0.10.0 + 0.11.0-SNAPSHOT google-cloud-securityposture diff --git a/java-securityposture/grpc-google-cloud-securityposture-v1/pom.xml b/java-securityposture/grpc-google-cloud-securityposture-v1/pom.xml index 5f5bb47ea83a..3554dcf9384a 100644 --- a/java-securityposture/grpc-google-cloud-securityposture-v1/pom.xml +++ b/java-securityposture/grpc-google-cloud-securityposture-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-securityposture-v1 - 0.10.0 + 0.11.0-SNAPSHOT grpc-google-cloud-securityposture-v1 GRPC library for google-cloud-securityposture com.google.cloud google-cloud-securityposture-parent - 0.10.0 + 0.11.0-SNAPSHOT diff --git a/java-securityposture/pom.xml b/java-securityposture/pom.xml index 42e1fca79140..8cdf01d1714f 100644 --- a/java-securityposture/pom.xml +++ b/java-securityposture/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-securityposture-parent pom - 0.10.0 + 0.11.0-SNAPSHOT Google Security Posture API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-securityposture - 0.10.0 + 0.11.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-securityposture-v1 - 0.10.0 + 0.11.0-SNAPSHOT com.google.api.grpc proto-google-cloud-securityposture-v1 - 0.10.0 + 0.11.0-SNAPSHOT diff --git a/java-securityposture/proto-google-cloud-securityposture-v1/pom.xml b/java-securityposture/proto-google-cloud-securityposture-v1/pom.xml index 9416a1ba86bb..573587d045c2 100644 --- a/java-securityposture/proto-google-cloud-securityposture-v1/pom.xml +++ b/java-securityposture/proto-google-cloud-securityposture-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-securityposture-v1 - 0.10.0 + 0.11.0-SNAPSHOT proto-google-cloud-securityposture-v1 Proto library for google-cloud-securityposture com.google.cloud google-cloud-securityposture-parent - 0.10.0 + 0.11.0-SNAPSHOT diff --git a/java-service-control/google-cloud-service-control-bom/pom.xml b/java-service-control/google-cloud-service-control-bom/pom.xml index 67407769728d..c8090bf9db3f 100644 --- a/java-service-control/google-cloud-service-control-bom/pom.xml +++ b/java-service-control/google-cloud-service-control-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-service-control-bom - 1.45.0 + 1.46.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-service-control - 1.45.0 + 1.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-service-control-v1 - 1.45.0 + 1.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-service-control-v2 - 1.45.0 + 1.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-service-control-v1 - 1.45.0 + 1.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-service-control-v2 - 1.45.0 + 1.46.0-SNAPSHOT diff --git a/java-service-control/google-cloud-service-control/pom.xml b/java-service-control/google-cloud-service-control/pom.xml index 68a00e65cb39..d738bfdb2814 100644 --- a/java-service-control/google-cloud-service-control/pom.xml +++ b/java-service-control/google-cloud-service-control/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-service-control - 1.45.0 + 1.46.0-SNAPSHOT jar Google Service Control API Service Control API is a foundational platform for creating, managing, securing, and consuming APIs and services across organizations. It is used by Google APIs, Cloud APIs, Cloud Endpoints, and API Gateway. com.google.cloud google-cloud-service-control-parent - 1.45.0 + 1.46.0-SNAPSHOT google-cloud-service-control diff --git a/java-service-control/grpc-google-cloud-service-control-v1/pom.xml b/java-service-control/grpc-google-cloud-service-control-v1/pom.xml index 11cbca1055aa..d5e5d88b75f7 100644 --- a/java-service-control/grpc-google-cloud-service-control-v1/pom.xml +++ b/java-service-control/grpc-google-cloud-service-control-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-service-control-v1 - 1.45.0 + 1.46.0-SNAPSHOT grpc-google-cloud-service-control-v1 GRPC library for google-cloud-service-control com.google.cloud google-cloud-service-control-parent - 1.45.0 + 1.46.0-SNAPSHOT diff --git a/java-service-control/grpc-google-cloud-service-control-v2/pom.xml b/java-service-control/grpc-google-cloud-service-control-v2/pom.xml index 63b214e429f2..9fba09e0184a 100644 --- a/java-service-control/grpc-google-cloud-service-control-v2/pom.xml +++ b/java-service-control/grpc-google-cloud-service-control-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-service-control-v2 - 1.45.0 + 1.46.0-SNAPSHOT grpc-google-cloud-service-control-v2 GRPC library for google-cloud-service-control com.google.cloud google-cloud-service-control-parent - 1.45.0 + 1.46.0-SNAPSHOT diff --git a/java-service-control/pom.xml b/java-service-control/pom.xml index 15caf2db8195..e7478aaa9d9d 100644 --- a/java-service-control/pom.xml +++ b/java-service-control/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-service-control-parent pom - 1.45.0 + 1.46.0-SNAPSHOT Google Service Control API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-service-control - 1.45.0 + 1.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-service-control-v2 - 1.45.0 + 1.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-service-control-v2 - 1.45.0 + 1.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-service-control-v1 - 1.45.0 + 1.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-service-control-v1 - 1.45.0 + 1.46.0-SNAPSHOT diff --git a/java-service-control/proto-google-cloud-service-control-v1/pom.xml b/java-service-control/proto-google-cloud-service-control-v1/pom.xml index 2a7c0766cefb..a27d9f42c7d6 100644 --- a/java-service-control/proto-google-cloud-service-control-v1/pom.xml +++ b/java-service-control/proto-google-cloud-service-control-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-service-control-v1 - 1.45.0 + 1.46.0-SNAPSHOT proto-google-cloud-service-control-v1 Proto library for google-cloud-service-control com.google.cloud google-cloud-service-control-parent - 1.45.0 + 1.46.0-SNAPSHOT diff --git a/java-service-control/proto-google-cloud-service-control-v2/pom.xml b/java-service-control/proto-google-cloud-service-control-v2/pom.xml index 3e1f721fcbac..a08f3c2b0eac 100644 --- a/java-service-control/proto-google-cloud-service-control-v2/pom.xml +++ b/java-service-control/proto-google-cloud-service-control-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-service-control-v2 - 1.45.0 + 1.46.0-SNAPSHOT proto-google-cloud-service-control-v2 Proto library for google-cloud-service-control com.google.cloud google-cloud-service-control-parent - 1.45.0 + 1.46.0-SNAPSHOT diff --git a/java-service-management/google-cloud-service-management-bom/pom.xml b/java-service-management/google-cloud-service-management-bom/pom.xml index 428c7f87e19a..91d9f093ca1e 100644 --- a/java-service-management/google-cloud-service-management-bom/pom.xml +++ b/java-service-management/google-cloud-service-management-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-service-management-bom - 3.43.0 + 3.44.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-service-management - 3.43.0 + 3.44.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-service-management-v1 - 3.43.0 + 3.44.0-SNAPSHOT com.google.api.grpc proto-google-cloud-service-management-v1 - 3.43.0 + 3.44.0-SNAPSHOT diff --git a/java-service-management/google-cloud-service-management/pom.xml b/java-service-management/google-cloud-service-management/pom.xml index 2a8a9a76a6db..aad3885d9d46 100644 --- a/java-service-management/google-cloud-service-management/pom.xml +++ b/java-service-management/google-cloud-service-management/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-service-management - 3.43.0 + 3.44.0-SNAPSHOT jar Google Service Management API is a foundational platform for creating, managing, securing, and consuming APIs and services across organizations. It is used by Google APIs, Cloud APIs, Cloud Endpoints, and API Gateway. Service Infrastructure provides a wide range of features to service consumers and service producers, including authentication, authorization, auditing, rate limiting, analytics, billing, logging, and monitoring. com.google.cloud google-cloud-service-management-parent - 3.43.0 + 3.44.0-SNAPSHOT google-cloud-service-management diff --git a/java-service-management/grpc-google-cloud-service-management-v1/pom.xml b/java-service-management/grpc-google-cloud-service-management-v1/pom.xml index 9aaa376eaafa..476b6ee3985e 100644 --- a/java-service-management/grpc-google-cloud-service-management-v1/pom.xml +++ b/java-service-management/grpc-google-cloud-service-management-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-service-management-v1 - 3.43.0 + 3.44.0-SNAPSHOT grpc-google-cloud-service-management-v1 GRPC library for google-cloud-service-management com.google.cloud google-cloud-service-management-parent - 3.43.0 + 3.44.0-SNAPSHOT diff --git a/java-service-management/pom.xml b/java-service-management/pom.xml index 6a9036db1560..1d81f523f9e9 100644 --- a/java-service-management/pom.xml +++ b/java-service-management/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-service-management-parent pom - 3.43.0 + 3.44.0-SNAPSHOT Google Service Management API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-service-management - 3.43.0 + 3.44.0-SNAPSHOT com.google.api.grpc proto-google-cloud-service-management-v1 - 3.43.0 + 3.44.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-service-management-v1 - 3.43.0 + 3.44.0-SNAPSHOT diff --git a/java-service-management/proto-google-cloud-service-management-v1/pom.xml b/java-service-management/proto-google-cloud-service-management-v1/pom.xml index a986f88702e8..9572e63713ae 100644 --- a/java-service-management/proto-google-cloud-service-management-v1/pom.xml +++ b/java-service-management/proto-google-cloud-service-management-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-service-management-v1 - 3.43.0 + 3.44.0-SNAPSHOT proto-google-cloud-service-management-v1 Proto library for google-cloud-service-management com.google.cloud google-cloud-service-management-parent - 3.43.0 + 3.44.0-SNAPSHOT diff --git a/java-service-usage/google-cloud-service-usage-bom/pom.xml b/java-service-usage/google-cloud-service-usage-bom/pom.xml index fa780c6be714..db8e8e3faf83 100644 --- a/java-service-usage/google-cloud-service-usage-bom/pom.xml +++ b/java-service-usage/google-cloud-service-usage-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-service-usage-bom - 2.45.0 + 2.46.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-service-usage - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-service-usage-v1beta1 - 0.49.0 + 0.50.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-service-usage-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-service-usage-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-service-usage-v1beta1 - 0.49.0 + 0.50.0-SNAPSHOT diff --git a/java-service-usage/google-cloud-service-usage/pom.xml b/java-service-usage/google-cloud-service-usage/pom.xml index 3f25b0afb73a..3452b8433680 100644 --- a/java-service-usage/google-cloud-service-usage/pom.xml +++ b/java-service-usage/google-cloud-service-usage/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-service-usage - 2.45.0 + 2.46.0-SNAPSHOT jar Google Service Usage Service Usage is an infrastructure service of Google Cloud that lets you list and manage other APIs and services in your Cloud projects. com.google.cloud google-cloud-service-usage-parent - 2.45.0 + 2.46.0-SNAPSHOT google-cloud-service-usage diff --git a/java-service-usage/grpc-google-cloud-service-usage-v1/pom.xml b/java-service-usage/grpc-google-cloud-service-usage-v1/pom.xml index 79ee02d71004..c96acacb6c09 100644 --- a/java-service-usage/grpc-google-cloud-service-usage-v1/pom.xml +++ b/java-service-usage/grpc-google-cloud-service-usage-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-service-usage-v1 - 2.45.0 + 2.46.0-SNAPSHOT grpc-google-cloud-service-usage-v1 GRPC library for google-cloud-service-usage com.google.cloud google-cloud-service-usage-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-service-usage/grpc-google-cloud-service-usage-v1beta1/pom.xml b/java-service-usage/grpc-google-cloud-service-usage-v1beta1/pom.xml index d555b1da7bc7..f06b39ac550d 100644 --- a/java-service-usage/grpc-google-cloud-service-usage-v1beta1/pom.xml +++ b/java-service-usage/grpc-google-cloud-service-usage-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-service-usage-v1beta1 - 0.49.0 + 0.50.0-SNAPSHOT grpc-google-cloud-service-usage-v1beta1 GRPC library for google-cloud-service-usage com.google.cloud google-cloud-service-usage-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-service-usage/pom.xml b/java-service-usage/pom.xml index 795425e796be..0a7c7307c841 100644 --- a/java-service-usage/pom.xml +++ b/java-service-usage/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-service-usage-parent pom - 2.45.0 + 2.46.0-SNAPSHOT Google Service Usage Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-service-usage - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-service-usage-v1beta1 - 0.49.0 + 0.50.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-service-usage-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-service-usage-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-service-usage-v1beta1 - 0.49.0 + 0.50.0-SNAPSHOT diff --git a/java-service-usage/proto-google-cloud-service-usage-v1/pom.xml b/java-service-usage/proto-google-cloud-service-usage-v1/pom.xml index c59d9a6ed7e9..ba25dceff602 100644 --- a/java-service-usage/proto-google-cloud-service-usage-v1/pom.xml +++ b/java-service-usage/proto-google-cloud-service-usage-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-service-usage-v1 - 2.45.0 + 2.46.0-SNAPSHOT proto-google-cloud-service-usage-v1 Proto library for google-cloud-service-usage com.google.cloud google-cloud-service-usage-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-service-usage/proto-google-cloud-service-usage-v1beta1/pom.xml b/java-service-usage/proto-google-cloud-service-usage-v1beta1/pom.xml index b391ef795bf8..a7c94fb61f2c 100644 --- a/java-service-usage/proto-google-cloud-service-usage-v1beta1/pom.xml +++ b/java-service-usage/proto-google-cloud-service-usage-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-service-usage-v1beta1 - 0.49.0 + 0.50.0-SNAPSHOT proto-google-cloud-service-usage-v1beta1 Proto library for google-cloud-service-usage com.google.cloud google-cloud-service-usage-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-servicedirectory/google-cloud-servicedirectory-bom/pom.xml b/java-servicedirectory/google-cloud-servicedirectory-bom/pom.xml index 14a525b58851..7b3b951567ea 100644 --- a/java-servicedirectory/google-cloud-servicedirectory-bom/pom.xml +++ b/java-servicedirectory/google-cloud-servicedirectory-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-servicedirectory-bom - 2.46.0 + 2.47.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-servicedirectory - 2.46.0 + 2.47.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-servicedirectory-v1beta1 - 0.54.0 + 0.55.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-servicedirectory-v1 - 2.46.0 + 2.47.0-SNAPSHOT com.google.api.grpc proto-google-cloud-servicedirectory-v1beta1 - 0.54.0 + 0.55.0-SNAPSHOT com.google.api.grpc proto-google-cloud-servicedirectory-v1 - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-servicedirectory/google-cloud-servicedirectory/pom.xml b/java-servicedirectory/google-cloud-servicedirectory/pom.xml index 4e0f2aa30d2b..4ad2ae1191d1 100644 --- a/java-servicedirectory/google-cloud-servicedirectory/pom.xml +++ b/java-servicedirectory/google-cloud-servicedirectory/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-servicedirectory - 2.46.0 + 2.47.0-SNAPSHOT jar Google Cloud Service Directory Java idiomatic client for Google Cloud Service Directory com.google.cloud google-cloud-servicedirectory-parent - 2.46.0 + 2.47.0-SNAPSHOT google-cloud-servicedirectory diff --git a/java-servicedirectory/grpc-google-cloud-servicedirectory-v1/pom.xml b/java-servicedirectory/grpc-google-cloud-servicedirectory-v1/pom.xml index 2158c24527b4..72835683f352 100644 --- a/java-servicedirectory/grpc-google-cloud-servicedirectory-v1/pom.xml +++ b/java-servicedirectory/grpc-google-cloud-servicedirectory-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-servicedirectory-v1 - 2.46.0 + 2.47.0-SNAPSHOT grpc-google-cloud-servicedirectory-v1 GRPC library for grpc-google-cloud-servicedirectory-v1 com.google.cloud google-cloud-servicedirectory-parent - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-servicedirectory/grpc-google-cloud-servicedirectory-v1beta1/pom.xml b/java-servicedirectory/grpc-google-cloud-servicedirectory-v1beta1/pom.xml index 06a70611a28d..e19ec6bc63a3 100644 --- a/java-servicedirectory/grpc-google-cloud-servicedirectory-v1beta1/pom.xml +++ b/java-servicedirectory/grpc-google-cloud-servicedirectory-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-servicedirectory-v1beta1 - 0.54.0 + 0.55.0-SNAPSHOT grpc-google-cloud-servicedirectory-v1beta1 GRPC library for grpc-google-cloud-servicedirectory-v1beta1 com.google.cloud google-cloud-servicedirectory-parent - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-servicedirectory/pom.xml b/java-servicedirectory/pom.xml index b279a9353b94..ad4e12fe3aee 100644 --- a/java-servicedirectory/pom.xml +++ b/java-servicedirectory/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-servicedirectory-parent pom - 2.46.0 + 2.47.0-SNAPSHOT Google Cloud Service Directory Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-servicedirectory-v1beta1 - 0.54.0 + 0.55.0-SNAPSHOT com.google.api.grpc proto-google-cloud-servicedirectory-v1 - 2.46.0 + 2.47.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-servicedirectory-v1beta1 - 0.54.0 + 0.55.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-servicedirectory-v1 - 2.46.0 + 2.47.0-SNAPSHOT com.google.cloud google-cloud-servicedirectory - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-servicedirectory/proto-google-cloud-servicedirectory-v1/pom.xml b/java-servicedirectory/proto-google-cloud-servicedirectory-v1/pom.xml index 1811086bab1e..13204b539b4f 100644 --- a/java-servicedirectory/proto-google-cloud-servicedirectory-v1/pom.xml +++ b/java-servicedirectory/proto-google-cloud-servicedirectory-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-servicedirectory-v1 - 2.46.0 + 2.47.0-SNAPSHOT proto-google-cloud-servicedirectory-v1 PROTO library for proto-google-cloud-servicedirectory-v1 com.google.cloud google-cloud-servicedirectory-parent - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/pom.xml b/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/pom.xml index 69e3f1204274..f955a5fb51d5 100644 --- a/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/pom.xml +++ b/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-servicedirectory-v1beta1 - 0.54.0 + 0.55.0-SNAPSHOT proto-google-cloud-servicedirectory-v1beta1 PROTO library for proto-google-cloud-servicedirectory-v1beta1 com.google.cloud google-cloud-servicedirectory-parent - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-servicehealth/google-cloud-servicehealth-bom/pom.xml b/java-servicehealth/google-cloud-servicehealth-bom/pom.xml index a41a4e98905a..5fb679ae9179 100644 --- a/java-servicehealth/google-cloud-servicehealth-bom/pom.xml +++ b/java-servicehealth/google-cloud-servicehealth-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-servicehealth-bom - 0.12.0 + 0.13.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-servicehealth - 0.12.0 + 0.13.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-servicehealth-v1 - 0.12.0 + 0.13.0-SNAPSHOT com.google.api.grpc proto-google-cloud-servicehealth-v1 - 0.12.0 + 0.13.0-SNAPSHOT diff --git a/java-servicehealth/google-cloud-servicehealth/pom.xml b/java-servicehealth/google-cloud-servicehealth/pom.xml index 87dd18430cbc..31ea23ec5279 100644 --- a/java-servicehealth/google-cloud-servicehealth/pom.xml +++ b/java-servicehealth/google-cloud-servicehealth/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-servicehealth - 0.12.0 + 0.13.0-SNAPSHOT jar Google Service Health API Service Health API Personalized Service Health helps you gain visibility into disruptive events impacting Google Cloud products. com.google.cloud google-cloud-servicehealth-parent - 0.12.0 + 0.13.0-SNAPSHOT google-cloud-servicehealth diff --git a/java-servicehealth/grpc-google-cloud-servicehealth-v1/pom.xml b/java-servicehealth/grpc-google-cloud-servicehealth-v1/pom.xml index 72890d93b25a..82d161141cfb 100644 --- a/java-servicehealth/grpc-google-cloud-servicehealth-v1/pom.xml +++ b/java-servicehealth/grpc-google-cloud-servicehealth-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-servicehealth-v1 - 0.12.0 + 0.13.0-SNAPSHOT grpc-google-cloud-servicehealth-v1 GRPC library for google-cloud-servicehealth com.google.cloud google-cloud-servicehealth-parent - 0.12.0 + 0.13.0-SNAPSHOT diff --git a/java-servicehealth/pom.xml b/java-servicehealth/pom.xml index d7392869454b..9b4b61d6e221 100644 --- a/java-servicehealth/pom.xml +++ b/java-servicehealth/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-servicehealth-parent pom - 0.12.0 + 0.13.0-SNAPSHOT Google Service Health API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-servicehealth - 0.12.0 + 0.13.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-servicehealth-v1 - 0.12.0 + 0.13.0-SNAPSHOT com.google.api.grpc proto-google-cloud-servicehealth-v1 - 0.12.0 + 0.13.0-SNAPSHOT diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/pom.xml b/java-servicehealth/proto-google-cloud-servicehealth-v1/pom.xml index b73fe46a2e23..1748bd523e0b 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/pom.xml +++ b/java-servicehealth/proto-google-cloud-servicehealth-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-servicehealth-v1 - 0.12.0 + 0.13.0-SNAPSHOT proto-google-cloud-servicehealth-v1 Proto library for google-cloud-servicehealth com.google.cloud google-cloud-servicehealth-parent - 0.12.0 + 0.13.0-SNAPSHOT diff --git a/java-shell/google-cloud-shell-bom/pom.xml b/java-shell/google-cloud-shell-bom/pom.xml index a74b4189cfe3..2fc432734f2e 100644 --- a/java-shell/google-cloud-shell-bom/pom.xml +++ b/java-shell/google-cloud-shell-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-shell-bom - 2.44.0 + 2.45.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-shell - 2.44.0 + 2.45.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-shell-v1 - 2.44.0 + 2.45.0-SNAPSHOT com.google.api.grpc proto-google-cloud-shell-v1 - 2.44.0 + 2.45.0-SNAPSHOT diff --git a/java-shell/google-cloud-shell/pom.xml b/java-shell/google-cloud-shell/pom.xml index 817b1c1da352..588d2db0a036 100644 --- a/java-shell/google-cloud-shell/pom.xml +++ b/java-shell/google-cloud-shell/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-shell - 2.44.0 + 2.45.0-SNAPSHOT jar Google Cloud Shell Cloud Shell is an interactive shell environment for Google Cloud that makes it easy for you to learn and experiment with Google Cloud and manage your projects and resources from your web browser. com.google.cloud google-cloud-shell-parent - 2.44.0 + 2.45.0-SNAPSHOT google-cloud-shell diff --git a/java-shell/grpc-google-cloud-shell-v1/pom.xml b/java-shell/grpc-google-cloud-shell-v1/pom.xml index 6c0c9f2f6ca4..7f30f4d48ce6 100644 --- a/java-shell/grpc-google-cloud-shell-v1/pom.xml +++ b/java-shell/grpc-google-cloud-shell-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-shell-v1 - 2.44.0 + 2.45.0-SNAPSHOT grpc-google-cloud-shell-v1 GRPC library for google-cloud-shell com.google.cloud google-cloud-shell-parent - 2.44.0 + 2.45.0-SNAPSHOT diff --git a/java-shell/pom.xml b/java-shell/pom.xml index 62684752760d..03849d60ded6 100644 --- a/java-shell/pom.xml +++ b/java-shell/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-shell-parent pom - 2.44.0 + 2.45.0-SNAPSHOT Google Cloud Shell Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-shell - 2.44.0 + 2.45.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-shell-v1 - 2.44.0 + 2.45.0-SNAPSHOT com.google.api.grpc proto-google-cloud-shell-v1 - 2.44.0 + 2.45.0-SNAPSHOT diff --git a/java-shell/proto-google-cloud-shell-v1/pom.xml b/java-shell/proto-google-cloud-shell-v1/pom.xml index bb885cbd4788..7a5d01c1138a 100644 --- a/java-shell/proto-google-cloud-shell-v1/pom.xml +++ b/java-shell/proto-google-cloud-shell-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-shell-v1 - 2.44.0 + 2.45.0-SNAPSHOT proto-google-cloud-shell-v1 Proto library for google-cloud-shell com.google.cloud google-cloud-shell-parent - 2.44.0 + 2.45.0-SNAPSHOT diff --git a/java-shopping-css/google-shopping-css-bom/pom.xml b/java-shopping-css/google-shopping-css-bom/pom.xml index e75de6ac6abb..f89c1c5efda2 100644 --- a/java-shopping-css/google-shopping-css-bom/pom.xml +++ b/java-shopping-css/google-shopping-css-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.shopping google-shopping-css-bom - 0.13.0 + 0.14.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.shopping google-shopping-css - 0.13.0 + 0.14.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-css-v1 - 0.13.0 + 0.14.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-css-v1 - 0.13.0 + 0.14.0-SNAPSHOT diff --git a/java-shopping-css/google-shopping-css/pom.xml b/java-shopping-css/google-shopping-css/pom.xml index cf1d0fdd325e..38afaf55d0c9 100644 --- a/java-shopping-css/google-shopping-css/pom.xml +++ b/java-shopping-css/google-shopping-css/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-css - 0.13.0 + 0.14.0-SNAPSHOT jar Google CSS API CSS API The CSS API is used to manage your CSS and control your CSS Products portfolio com.google.shopping google-shopping-css-parent - 0.13.0 + 0.14.0-SNAPSHOT google-shopping-css diff --git a/java-shopping-css/grpc-google-shopping-css-v1/pom.xml b/java-shopping-css/grpc-google-shopping-css-v1/pom.xml index 0de31c2957b7..ebfa568ed959 100644 --- a/java-shopping-css/grpc-google-shopping-css-v1/pom.xml +++ b/java-shopping-css/grpc-google-shopping-css-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-css-v1 - 0.13.0 + 0.14.0-SNAPSHOT grpc-google-shopping-css-v1 GRPC library for google-shopping-css com.google.shopping google-shopping-css-parent - 0.13.0 + 0.14.0-SNAPSHOT diff --git a/java-shopping-css/pom.xml b/java-shopping-css/pom.xml index 8228774da735..53ebf459105c 100644 --- a/java-shopping-css/pom.xml +++ b/java-shopping-css/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-css-parent pom - 0.13.0 + 0.14.0-SNAPSHOT Google CSS API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.shopping google-shopping-css - 0.13.0 + 0.14.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-css-v1 - 0.13.0 + 0.14.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-css-v1 - 0.13.0 + 0.14.0-SNAPSHOT diff --git a/java-shopping-css/proto-google-shopping-css-v1/pom.xml b/java-shopping-css/proto-google-shopping-css-v1/pom.xml index 112adf67718a..260c6ca0d8bf 100644 --- a/java-shopping-css/proto-google-shopping-css-v1/pom.xml +++ b/java-shopping-css/proto-google-shopping-css-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-css-v1 - 0.13.0 + 0.14.0-SNAPSHOT proto-google-shopping-css-v1 Proto library for google-shopping-css com.google.shopping google-shopping-css-parent - 0.13.0 + 0.14.0-SNAPSHOT diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts-bom/pom.xml b/java-shopping-merchant-accounts/google-shopping-merchant-accounts-bom/pom.xml index 8b554c8c80d8..b7300ae93df7 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts-bom/pom.xml +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.shopping google-shopping-merchant-accounts-bom - 0.1.0 + 0.2.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.shopping google-shopping-merchant-accounts - 0.1.0 + 0.2.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-accounts-v1beta - 0.1.0 + 0.2.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-accounts-v1beta - 0.1.0 + 0.2.0-SNAPSHOT diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/pom.xml b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/pom.xml index 25c864742992..18b10df5530b 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/pom.xml +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-accounts - 0.1.0 + 0.2.0-SNAPSHOT jar Google Merchant API Merchant API Programmatically manage your Merchant Center accounts. com.google.shopping google-shopping-merchant-accounts-parent - 0.1.0 + 0.2.0-SNAPSHOT google-shopping-merchant-accounts diff --git a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/pom.xml b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/pom.xml index cdb71ff16f8f..ce35ca053b59 100644 --- a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/pom.xml +++ b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-accounts-v1beta - 0.1.0 + 0.2.0-SNAPSHOT grpc-google-shopping-merchant-accounts-v1beta GRPC library for google-shopping-merchant-accounts com.google.shopping google-shopping-merchant-accounts-parent - 0.1.0 + 0.2.0-SNAPSHOT diff --git a/java-shopping-merchant-accounts/pom.xml b/java-shopping-merchant-accounts/pom.xml index 9283d29824c9..8a9891d6e91d 100644 --- a/java-shopping-merchant-accounts/pom.xml +++ b/java-shopping-merchant-accounts/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-accounts-parent pom - 0.1.0 + 0.2.0-SNAPSHOT Google Merchant API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.shopping google-shopping-merchant-accounts - 0.1.0 + 0.2.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-accounts-v1beta - 0.1.0 + 0.2.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-accounts-v1beta - 0.1.0 + 0.2.0-SNAPSHOT diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/pom.xml b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/pom.xml index a55861929cb5..f57be63f5459 100644 --- a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/pom.xml +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-accounts-v1beta - 0.1.0 + 0.2.0-SNAPSHOT proto-google-shopping-merchant-accounts-v1beta Proto library for google-shopping-merchant-accounts com.google.shopping google-shopping-merchant-accounts-parent - 0.1.0 + 0.2.0-SNAPSHOT diff --git a/java-shopping-merchant-conversions/google-shopping-merchant-conversions-bom/pom.xml b/java-shopping-merchant-conversions/google-shopping-merchant-conversions-bom/pom.xml index 88ae8fe52762..7fba8f4c7473 100644 --- a/java-shopping-merchant-conversions/google-shopping-merchant-conversions-bom/pom.xml +++ b/java-shopping-merchant-conversions/google-shopping-merchant-conversions-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.shopping google-shopping-merchant-conversions-bom - 0.4.0 + 0.5.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.shopping google-shopping-merchant-conversions - 0.4.0 + 0.5.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-conversions-v1beta - 0.4.0 + 0.5.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-conversions-v1beta - 0.4.0 + 0.5.0-SNAPSHOT diff --git a/java-shopping-merchant-conversions/google-shopping-merchant-conversions/pom.xml b/java-shopping-merchant-conversions/google-shopping-merchant-conversions/pom.xml index b95659c34c8b..23cce8fb0c9e 100644 --- a/java-shopping-merchant-conversions/google-shopping-merchant-conversions/pom.xml +++ b/java-shopping-merchant-conversions/google-shopping-merchant-conversions/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-conversions - 0.4.0 + 0.5.0-SNAPSHOT jar Google Merchant Conversions API Merchant Conversions API Programmatically manage your Merchant Center accounts. com.google.shopping google-shopping-merchant-conversions-parent - 0.4.0 + 0.5.0-SNAPSHOT google-shopping-merchant-conversions diff --git a/java-shopping-merchant-conversions/grpc-google-shopping-merchant-conversions-v1beta/pom.xml b/java-shopping-merchant-conversions/grpc-google-shopping-merchant-conversions-v1beta/pom.xml index 4219d103b473..458c0d2b0480 100644 --- a/java-shopping-merchant-conversions/grpc-google-shopping-merchant-conversions-v1beta/pom.xml +++ b/java-shopping-merchant-conversions/grpc-google-shopping-merchant-conversions-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-conversions-v1beta - 0.4.0 + 0.5.0-SNAPSHOT grpc-google-shopping-merchant-conversions-v1beta GRPC library for google-shopping-merchant-conversions com.google.shopping google-shopping-merchant-conversions-parent - 0.4.0 + 0.5.0-SNAPSHOT diff --git a/java-shopping-merchant-conversions/pom.xml b/java-shopping-merchant-conversions/pom.xml index 041c512f2b9f..8e4a3b7fc3e6 100644 --- a/java-shopping-merchant-conversions/pom.xml +++ b/java-shopping-merchant-conversions/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-conversions-parent pom - 0.4.0 + 0.5.0-SNAPSHOT Google Merchant Conversions API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.shopping google-shopping-merchant-conversions - 0.4.0 + 0.5.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-conversions-v1beta - 0.4.0 + 0.5.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-conversions-v1beta - 0.4.0 + 0.5.0-SNAPSHOT diff --git a/java-shopping-merchant-conversions/proto-google-shopping-merchant-conversions-v1beta/pom.xml b/java-shopping-merchant-conversions/proto-google-shopping-merchant-conversions-v1beta/pom.xml index 96818fc95bc8..2d5bd6907723 100644 --- a/java-shopping-merchant-conversions/proto-google-shopping-merchant-conversions-v1beta/pom.xml +++ b/java-shopping-merchant-conversions/proto-google-shopping-merchant-conversions-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-conversions-v1beta - 0.4.0 + 0.5.0-SNAPSHOT proto-google-shopping-merchant-conversions-v1beta Proto library for google-shopping-merchant-conversions com.google.shopping google-shopping-merchant-conversions-parent - 0.4.0 + 0.5.0-SNAPSHOT diff --git a/java-shopping-merchant-datasources/google-shopping-merchant-datasources-bom/pom.xml b/java-shopping-merchant-datasources/google-shopping-merchant-datasources-bom/pom.xml index f4c69b6ecd10..ca5bc80b04bd 100644 --- a/java-shopping-merchant-datasources/google-shopping-merchant-datasources-bom/pom.xml +++ b/java-shopping-merchant-datasources/google-shopping-merchant-datasources-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.shopping google-shopping-merchant-datasources-bom - 0.1.0 + 0.2.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.shopping google-shopping-merchant-datasources - 0.1.0 + 0.2.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-datasources-v1beta - 0.1.0 + 0.2.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-datasources-v1beta - 0.1.0 + 0.2.0-SNAPSHOT diff --git a/java-shopping-merchant-datasources/google-shopping-merchant-datasources/pom.xml b/java-shopping-merchant-datasources/google-shopping-merchant-datasources/pom.xml index 592788423202..6482fc3034d7 100644 --- a/java-shopping-merchant-datasources/google-shopping-merchant-datasources/pom.xml +++ b/java-shopping-merchant-datasources/google-shopping-merchant-datasources/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-datasources - 0.1.0 + 0.2.0-SNAPSHOT jar Google Merchant API Merchant API Programmatically manage your Merchant Center accounts. com.google.shopping google-shopping-merchant-datasources-parent - 0.1.0 + 0.2.0-SNAPSHOT google-shopping-merchant-datasources diff --git a/java-shopping-merchant-datasources/grpc-google-shopping-merchant-datasources-v1beta/pom.xml b/java-shopping-merchant-datasources/grpc-google-shopping-merchant-datasources-v1beta/pom.xml index 8c0dd52746bd..518ecab4c464 100644 --- a/java-shopping-merchant-datasources/grpc-google-shopping-merchant-datasources-v1beta/pom.xml +++ b/java-shopping-merchant-datasources/grpc-google-shopping-merchant-datasources-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-datasources-v1beta - 0.1.0 + 0.2.0-SNAPSHOT grpc-google-shopping-merchant-datasources-v1beta GRPC library for google-shopping-merchant-datasources com.google.shopping google-shopping-merchant-datasources-parent - 0.1.0 + 0.2.0-SNAPSHOT diff --git a/java-shopping-merchant-datasources/pom.xml b/java-shopping-merchant-datasources/pom.xml index 651df6206bb8..644d16bda5f8 100644 --- a/java-shopping-merchant-datasources/pom.xml +++ b/java-shopping-merchant-datasources/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-datasources-parent pom - 0.1.0 + 0.2.0-SNAPSHOT Google Merchant API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.shopping google-shopping-merchant-datasources - 0.1.0 + 0.2.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-datasources-v1beta - 0.1.0 + 0.2.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-datasources-v1beta - 0.1.0 + 0.2.0-SNAPSHOT diff --git a/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/pom.xml b/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/pom.xml index 03524caebcfa..1c3612cd4a2a 100644 --- a/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/pom.xml +++ b/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-datasources-v1beta - 0.1.0 + 0.2.0-SNAPSHOT proto-google-shopping-merchant-datasources-v1beta Proto library for google-shopping-merchant-datasources com.google.shopping google-shopping-merchant-datasources-parent - 0.1.0 + 0.2.0-SNAPSHOT diff --git a/java-shopping-merchant-inventories/google-shopping-merchant-inventories-bom/pom.xml b/java-shopping-merchant-inventories/google-shopping-merchant-inventories-bom/pom.xml index 202222191720..bbf726c3a88b 100644 --- a/java-shopping-merchant-inventories/google-shopping-merchant-inventories-bom/pom.xml +++ b/java-shopping-merchant-inventories/google-shopping-merchant-inventories-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.shopping google-shopping-merchant-inventories-bom - 0.21.0 + 0.22.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.shopping google-shopping-merchant-inventories - 0.21.0 + 0.22.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-inventories-v1beta - 0.21.0 + 0.22.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-inventories-v1beta - 0.21.0 + 0.22.0-SNAPSHOT diff --git a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/pom.xml b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/pom.xml index 6abd4df8d28f..14521f682316 100644 --- a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/pom.xml +++ b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-inventories - 0.21.0 + 0.22.0-SNAPSHOT jar Google Merchant API Merchant API Programmatically manage your Merchant Center accounts. com.google.shopping google-shopping-merchant-inventories-parent - 0.21.0 + 0.22.0-SNAPSHOT google-shopping-merchant-inventories diff --git a/java-shopping-merchant-inventories/grpc-google-shopping-merchant-inventories-v1beta/pom.xml b/java-shopping-merchant-inventories/grpc-google-shopping-merchant-inventories-v1beta/pom.xml index cae7e2a9cd44..2620117fea44 100644 --- a/java-shopping-merchant-inventories/grpc-google-shopping-merchant-inventories-v1beta/pom.xml +++ b/java-shopping-merchant-inventories/grpc-google-shopping-merchant-inventories-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-inventories-v1beta - 0.21.0 + 0.22.0-SNAPSHOT grpc-google-shopping-merchant-inventories-v1beta GRPC library for google-shopping-merchant-inventories com.google.shopping google-shopping-merchant-inventories-parent - 0.21.0 + 0.22.0-SNAPSHOT diff --git a/java-shopping-merchant-inventories/pom.xml b/java-shopping-merchant-inventories/pom.xml index e6974bc5f51a..f4f841f9d82d 100644 --- a/java-shopping-merchant-inventories/pom.xml +++ b/java-shopping-merchant-inventories/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-inventories-parent pom - 0.21.0 + 0.22.0-SNAPSHOT Google Merchant API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.shopping google-shopping-merchant-inventories - 0.21.0 + 0.22.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-inventories-v1beta - 0.21.0 + 0.22.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-inventories-v1beta - 0.21.0 + 0.22.0-SNAPSHOT diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/pom.xml b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/pom.xml index 81546ba4e420..febcaa3e4f8a 100644 --- a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/pom.xml +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-inventories-v1beta - 0.21.0 + 0.22.0-SNAPSHOT proto-google-shopping-merchant-inventories-v1beta Proto library for google-shopping-merchant-inventories com.google.shopping google-shopping-merchant-inventories-parent - 0.21.0 + 0.22.0-SNAPSHOT diff --git a/java-shopping-merchant-lfp/google-shopping-merchant-lfp-bom/pom.xml b/java-shopping-merchant-lfp/google-shopping-merchant-lfp-bom/pom.xml index 97beef46e374..fb38a75467f6 100644 --- a/java-shopping-merchant-lfp/google-shopping-merchant-lfp-bom/pom.xml +++ b/java-shopping-merchant-lfp/google-shopping-merchant-lfp-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.shopping google-shopping-merchant-lfp-bom - 0.4.0 + 0.5.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.shopping google-shopping-merchant-lfp - 0.4.0 + 0.5.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-lfp-v1beta - 0.4.0 + 0.5.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-lfp-v1beta - 0.4.0 + 0.5.0-SNAPSHOT diff --git a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/pom.xml b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/pom.xml index a15fbc64068c..e54a345802ce 100644 --- a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/pom.xml +++ b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-lfp - 0.4.0 + 0.5.0-SNAPSHOT jar Google Merchant LFP API Merchant LFP API Programmatically manage your Merchant Center accounts. com.google.shopping google-shopping-merchant-lfp-parent - 0.4.0 + 0.5.0-SNAPSHOT google-shopping-merchant-lfp diff --git a/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1beta/pom.xml b/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1beta/pom.xml index d645e5abfae1..102350e3854c 100644 --- a/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1beta/pom.xml +++ b/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-lfp-v1beta - 0.4.0 + 0.5.0-SNAPSHOT grpc-google-shopping-merchant-lfp-v1beta GRPC library for google-shopping-merchant-lfp com.google.shopping google-shopping-merchant-lfp-parent - 0.4.0 + 0.5.0-SNAPSHOT diff --git a/java-shopping-merchant-lfp/pom.xml b/java-shopping-merchant-lfp/pom.xml index 56a6f584cbbb..484224a2784b 100644 --- a/java-shopping-merchant-lfp/pom.xml +++ b/java-shopping-merchant-lfp/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-lfp-parent pom - 0.4.0 + 0.5.0-SNAPSHOT Google Merchant LFP API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.shopping google-shopping-merchant-lfp - 0.4.0 + 0.5.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-lfp-v1beta - 0.4.0 + 0.5.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-lfp-v1beta - 0.4.0 + 0.5.0-SNAPSHOT diff --git a/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/pom.xml b/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/pom.xml index cb4e651bf249..6c9478a033dc 100644 --- a/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/pom.xml +++ b/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-lfp-v1beta - 0.4.0 + 0.5.0-SNAPSHOT proto-google-shopping-merchant-lfp-v1beta Proto library for google-shopping-merchant-lfp com.google.shopping google-shopping-merchant-lfp-parent - 0.4.0 + 0.5.0-SNAPSHOT diff --git a/java-shopping-merchant-notifications/google-shopping-merchant-notifications-bom/pom.xml b/java-shopping-merchant-notifications/google-shopping-merchant-notifications-bom/pom.xml index 974d8ec61e8a..036d0c18c688 100644 --- a/java-shopping-merchant-notifications/google-shopping-merchant-notifications-bom/pom.xml +++ b/java-shopping-merchant-notifications/google-shopping-merchant-notifications-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.shopping google-shopping-merchant-notifications-bom - 0.4.0 + 0.5.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.shopping google-shopping-merchant-notifications - 0.4.0 + 0.5.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-notifications-v1beta - 0.4.0 + 0.5.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-notifications-v1beta - 0.4.0 + 0.5.0-SNAPSHOT diff --git a/java-shopping-merchant-notifications/google-shopping-merchant-notifications/pom.xml b/java-shopping-merchant-notifications/google-shopping-merchant-notifications/pom.xml index 39042d0ef7a3..c1dd0728b5b8 100644 --- a/java-shopping-merchant-notifications/google-shopping-merchant-notifications/pom.xml +++ b/java-shopping-merchant-notifications/google-shopping-merchant-notifications/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-notifications - 0.4.0 + 0.5.0-SNAPSHOT jar Google Merchant Notifications API Merchant Notifications API Programmatically manage your Merchant Center accounts. com.google.shopping google-shopping-merchant-notifications-parent - 0.4.0 + 0.5.0-SNAPSHOT google-shopping-merchant-notifications diff --git a/java-shopping-merchant-notifications/grpc-google-shopping-merchant-notifications-v1beta/pom.xml b/java-shopping-merchant-notifications/grpc-google-shopping-merchant-notifications-v1beta/pom.xml index 514fc40be0df..f7217afb7bcb 100644 --- a/java-shopping-merchant-notifications/grpc-google-shopping-merchant-notifications-v1beta/pom.xml +++ b/java-shopping-merchant-notifications/grpc-google-shopping-merchant-notifications-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-notifications-v1beta - 0.4.0 + 0.5.0-SNAPSHOT grpc-google-shopping-merchant-notifications-v1beta GRPC library for google-shopping-merchant-notifications com.google.shopping google-shopping-merchant-notifications-parent - 0.4.0 + 0.5.0-SNAPSHOT diff --git a/java-shopping-merchant-notifications/pom.xml b/java-shopping-merchant-notifications/pom.xml index 8563193380dd..bd903f6afade 100644 --- a/java-shopping-merchant-notifications/pom.xml +++ b/java-shopping-merchant-notifications/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-notifications-parent pom - 0.4.0 + 0.5.0-SNAPSHOT Google Merchant Notifications API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.shopping google-shopping-merchant-notifications - 0.4.0 + 0.5.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-notifications-v1beta - 0.4.0 + 0.5.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-notifications-v1beta - 0.4.0 + 0.5.0-SNAPSHOT diff --git a/java-shopping-merchant-notifications/proto-google-shopping-merchant-notifications-v1beta/pom.xml b/java-shopping-merchant-notifications/proto-google-shopping-merchant-notifications-v1beta/pom.xml index 43657a6310c9..77891e2dcb93 100644 --- a/java-shopping-merchant-notifications/proto-google-shopping-merchant-notifications-v1beta/pom.xml +++ b/java-shopping-merchant-notifications/proto-google-shopping-merchant-notifications-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-notifications-v1beta - 0.4.0 + 0.5.0-SNAPSHOT proto-google-shopping-merchant-notifications-v1beta Proto library for google-shopping-merchant-notifications com.google.shopping google-shopping-merchant-notifications-parent - 0.4.0 + 0.5.0-SNAPSHOT diff --git a/java-shopping-merchant-products/google-shopping-merchant-products-bom/pom.xml b/java-shopping-merchant-products/google-shopping-merchant-products-bom/pom.xml index 6228b6e92d74..8bd0229111ab 100644 --- a/java-shopping-merchant-products/google-shopping-merchant-products-bom/pom.xml +++ b/java-shopping-merchant-products/google-shopping-merchant-products-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.shopping google-shopping-merchant-products-bom - 0.1.0 + 0.2.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.shopping google-shopping-merchant-products - 0.1.0 + 0.2.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-products-v1beta - 0.1.0 + 0.2.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-products-v1beta - 0.1.0 + 0.2.0-SNAPSHOT diff --git a/java-shopping-merchant-products/google-shopping-merchant-products/pom.xml b/java-shopping-merchant-products/google-shopping-merchant-products/pom.xml index a9ff2cec53e9..49f6fa410dff 100644 --- a/java-shopping-merchant-products/google-shopping-merchant-products/pom.xml +++ b/java-shopping-merchant-products/google-shopping-merchant-products/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-products - 0.1.0 + 0.2.0-SNAPSHOT jar Google Merchant API Merchant API Programmatically manage your Merchant Center accounts. com.google.shopping google-shopping-merchant-products-parent - 0.1.0 + 0.2.0-SNAPSHOT google-shopping-merchant-products diff --git a/java-shopping-merchant-products/grpc-google-shopping-merchant-products-v1beta/pom.xml b/java-shopping-merchant-products/grpc-google-shopping-merchant-products-v1beta/pom.xml index c283f72ca577..eab5a7e24ff8 100644 --- a/java-shopping-merchant-products/grpc-google-shopping-merchant-products-v1beta/pom.xml +++ b/java-shopping-merchant-products/grpc-google-shopping-merchant-products-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-products-v1beta - 0.1.0 + 0.2.0-SNAPSHOT grpc-google-shopping-merchant-products-v1beta GRPC library for google-shopping-merchant-products com.google.shopping google-shopping-merchant-products-parent - 0.1.0 + 0.2.0-SNAPSHOT diff --git a/java-shopping-merchant-products/pom.xml b/java-shopping-merchant-products/pom.xml index 3e01f57e73a4..0bab8c481741 100644 --- a/java-shopping-merchant-products/pom.xml +++ b/java-shopping-merchant-products/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-products-parent pom - 0.1.0 + 0.2.0-SNAPSHOT Google Merchant API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.shopping google-shopping-merchant-products - 0.1.0 + 0.2.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-products-v1beta - 0.1.0 + 0.2.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-products-v1beta - 0.1.0 + 0.2.0-SNAPSHOT diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/pom.xml b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/pom.xml index 9c6e39fe28c8..eac33da80f90 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/pom.xml +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-products-v1beta - 0.1.0 + 0.2.0-SNAPSHOT proto-google-shopping-merchant-products-v1beta Proto library for google-shopping-merchant-products com.google.shopping google-shopping-merchant-products-parent - 0.1.0 + 0.2.0-SNAPSHOT diff --git a/java-shopping-merchant-promotions/google-shopping-merchant-promotions-bom/pom.xml b/java-shopping-merchant-promotions/google-shopping-merchant-promotions-bom/pom.xml index 17815d0f4854..aab038af9ecc 100644 --- a/java-shopping-merchant-promotions/google-shopping-merchant-promotions-bom/pom.xml +++ b/java-shopping-merchant-promotions/google-shopping-merchant-promotions-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.shopping google-shopping-merchant-promotions-bom - 0.1.0 + 0.2.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.shopping google-shopping-merchant-promotions - 0.1.0 + 0.2.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-promotions-v1beta - 0.1.0 + 0.2.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-promotions-v1beta - 0.1.0 + 0.2.0-SNAPSHOT diff --git a/java-shopping-merchant-promotions/google-shopping-merchant-promotions/pom.xml b/java-shopping-merchant-promotions/google-shopping-merchant-promotions/pom.xml index d545c9ad19f8..5339117a21e4 100644 --- a/java-shopping-merchant-promotions/google-shopping-merchant-promotions/pom.xml +++ b/java-shopping-merchant-promotions/google-shopping-merchant-promotions/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-promotions - 0.1.0 + 0.2.0-SNAPSHOT jar Google Merchant API Merchant API Programmatically manage your Merchant Center accounts. com.google.shopping google-shopping-merchant-promotions-parent - 0.1.0 + 0.2.0-SNAPSHOT google-shopping-merchant-promotions diff --git a/java-shopping-merchant-promotions/grpc-google-shopping-merchant-promotions-v1beta/pom.xml b/java-shopping-merchant-promotions/grpc-google-shopping-merchant-promotions-v1beta/pom.xml index a9225287c319..53d353805d4a 100644 --- a/java-shopping-merchant-promotions/grpc-google-shopping-merchant-promotions-v1beta/pom.xml +++ b/java-shopping-merchant-promotions/grpc-google-shopping-merchant-promotions-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-promotions-v1beta - 0.1.0 + 0.2.0-SNAPSHOT grpc-google-shopping-merchant-promotions-v1beta GRPC library for google-shopping-merchant-promotions com.google.shopping google-shopping-merchant-promotions-parent - 0.1.0 + 0.2.0-SNAPSHOT diff --git a/java-shopping-merchant-promotions/pom.xml b/java-shopping-merchant-promotions/pom.xml index 38c117f99f99..d26604c2a297 100644 --- a/java-shopping-merchant-promotions/pom.xml +++ b/java-shopping-merchant-promotions/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-promotions-parent pom - 0.1.0 + 0.2.0-SNAPSHOT Google Merchant API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.shopping google-shopping-merchant-promotions - 0.1.0 + 0.2.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-promotions-v1beta - 0.1.0 + 0.2.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-promotions-v1beta - 0.1.0 + 0.2.0-SNAPSHOT diff --git a/java-shopping-merchant-promotions/proto-google-shopping-merchant-promotions-v1beta/pom.xml b/java-shopping-merchant-promotions/proto-google-shopping-merchant-promotions-v1beta/pom.xml index 642942805233..9673d928afbf 100644 --- a/java-shopping-merchant-promotions/proto-google-shopping-merchant-promotions-v1beta/pom.xml +++ b/java-shopping-merchant-promotions/proto-google-shopping-merchant-promotions-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-promotions-v1beta - 0.1.0 + 0.2.0-SNAPSHOT proto-google-shopping-merchant-promotions-v1beta Proto library for google-shopping-merchant-promotions com.google.shopping google-shopping-merchant-promotions-parent - 0.1.0 + 0.2.0-SNAPSHOT diff --git a/java-shopping-merchant-quota/google-shopping-merchant-quota-bom/pom.xml b/java-shopping-merchant-quota/google-shopping-merchant-quota-bom/pom.xml index 3d91badeac18..67b77aa4817f 100644 --- a/java-shopping-merchant-quota/google-shopping-merchant-quota-bom/pom.xml +++ b/java-shopping-merchant-quota/google-shopping-merchant-quota-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.shopping google-shopping-merchant-quota-bom - 0.8.0 + 0.9.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.shopping google-shopping-merchant-quota - 0.8.0 + 0.9.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-quota-v1beta - 0.8.0 + 0.9.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-quota-v1beta - 0.8.0 + 0.9.0-SNAPSHOT diff --git a/java-shopping-merchant-quota/google-shopping-merchant-quota/pom.xml b/java-shopping-merchant-quota/google-shopping-merchant-quota/pom.xml index d3211249433e..eb66994c78b0 100644 --- a/java-shopping-merchant-quota/google-shopping-merchant-quota/pom.xml +++ b/java-shopping-merchant-quota/google-shopping-merchant-quota/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-quota - 0.8.0 + 0.9.0-SNAPSHOT jar Google Merchant Quota API Merchant Quota API Programmatically manage your Merchant Center accounts. com.google.shopping google-shopping-merchant-quota-parent - 0.8.0 + 0.9.0-SNAPSHOT google-shopping-merchant-quota diff --git a/java-shopping-merchant-quota/grpc-google-shopping-merchant-quota-v1beta/pom.xml b/java-shopping-merchant-quota/grpc-google-shopping-merchant-quota-v1beta/pom.xml index 3a3c9e1eee86..5ff9cb267421 100644 --- a/java-shopping-merchant-quota/grpc-google-shopping-merchant-quota-v1beta/pom.xml +++ b/java-shopping-merchant-quota/grpc-google-shopping-merchant-quota-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-quota-v1beta - 0.8.0 + 0.9.0-SNAPSHOT grpc-google-shopping-merchant-quota-v1beta GRPC library for google-shopping-merchant-quota com.google.shopping google-shopping-merchant-quota-parent - 0.8.0 + 0.9.0-SNAPSHOT diff --git a/java-shopping-merchant-quota/pom.xml b/java-shopping-merchant-quota/pom.xml index 678171e4607e..bdf514f90a36 100644 --- a/java-shopping-merchant-quota/pom.xml +++ b/java-shopping-merchant-quota/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-quota-parent pom - 0.8.0 + 0.9.0-SNAPSHOT Google Merchant Quota API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.shopping google-shopping-merchant-quota - 0.8.0 + 0.9.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-quota-v1beta - 0.8.0 + 0.9.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-quota-v1beta - 0.8.0 + 0.9.0-SNAPSHOT diff --git a/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1beta/pom.xml b/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1beta/pom.xml index 8685769431c1..207d239e7bbd 100644 --- a/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1beta/pom.xml +++ b/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-quota-v1beta - 0.8.0 + 0.9.0-SNAPSHOT proto-google-shopping-merchant-quota-v1beta Proto library for google-shopping-merchant-quota com.google.shopping google-shopping-merchant-quota-parent - 0.8.0 + 0.9.0-SNAPSHOT diff --git a/java-shopping-merchant-reports/google-shopping-merchant-reports-bom/pom.xml b/java-shopping-merchant-reports/google-shopping-merchant-reports-bom/pom.xml index f76ea98f0113..c4a1a07b3029 100644 --- a/java-shopping-merchant-reports/google-shopping-merchant-reports-bom/pom.xml +++ b/java-shopping-merchant-reports/google-shopping-merchant-reports-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.shopping google-shopping-merchant-reports-bom - 0.21.0 + 0.22.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.shopping google-shopping-merchant-reports - 0.21.0 + 0.22.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-reports-v1beta - 0.21.0 + 0.22.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-reports-v1beta - 0.21.0 + 0.22.0-SNAPSHOT diff --git a/java-shopping-merchant-reports/google-shopping-merchant-reports/pom.xml b/java-shopping-merchant-reports/google-shopping-merchant-reports/pom.xml index aae0bf346f34..55012932956f 100644 --- a/java-shopping-merchant-reports/google-shopping-merchant-reports/pom.xml +++ b/java-shopping-merchant-reports/google-shopping-merchant-reports/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-reports - 0.21.0 + 0.22.0-SNAPSHOT jar Google Merchant API Merchant API Programmatically manage your Merchant Center accounts. com.google.shopping google-shopping-merchant-reports-parent - 0.21.0 + 0.22.0-SNAPSHOT google-shopping-merchant-reports diff --git a/java-shopping-merchant-reports/grpc-google-shopping-merchant-reports-v1beta/pom.xml b/java-shopping-merchant-reports/grpc-google-shopping-merchant-reports-v1beta/pom.xml index f2448e2b83cc..38aa31c567ad 100644 --- a/java-shopping-merchant-reports/grpc-google-shopping-merchant-reports-v1beta/pom.xml +++ b/java-shopping-merchant-reports/grpc-google-shopping-merchant-reports-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-reports-v1beta - 0.21.0 + 0.22.0-SNAPSHOT grpc-google-shopping-merchant-reports-v1beta GRPC library for google-shopping-merchant-reports com.google.shopping google-shopping-merchant-reports-parent - 0.21.0 + 0.22.0-SNAPSHOT diff --git a/java-shopping-merchant-reports/pom.xml b/java-shopping-merchant-reports/pom.xml index 1cfeb1ba57d7..3f30b0b7c683 100644 --- a/java-shopping-merchant-reports/pom.xml +++ b/java-shopping-merchant-reports/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-reports-parent pom - 0.21.0 + 0.22.0-SNAPSHOT Google Merchant API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.shopping google-shopping-merchant-reports - 0.21.0 + 0.22.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-reports-v1beta - 0.21.0 + 0.22.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-reports-v1beta - 0.21.0 + 0.22.0-SNAPSHOT diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/pom.xml b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/pom.xml index 6a3dbbc587be..1a1d09497cbe 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/pom.xml +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-reports-v1beta - 0.21.0 + 0.22.0-SNAPSHOT proto-google-shopping-merchant-reports-v1beta Proto library for google-shopping-merchant-reports com.google.shopping google-shopping-merchant-reports-parent - 0.21.0 + 0.22.0-SNAPSHOT diff --git a/java-speech/google-cloud-speech-bom/pom.xml b/java-speech/google-cloud-speech-bom/pom.xml index 40f51cf73a98..59763de43385 100644 --- a/java-speech/google-cloud-speech-bom/pom.xml +++ b/java-speech/google-cloud-speech-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-speech-bom - 4.40.0 + 4.41.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -23,47 +23,47 @@ com.google.cloud google-cloud-speech - 4.40.0 + 4.41.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-speech-v1 - 4.40.0 + 4.41.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-speech-v1beta1 - 2.40.0 + 2.41.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-speech-v1p1beta1 - 2.40.0 + 2.41.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-speech-v2 - 4.40.0 + 4.41.0-SNAPSHOT com.google.api.grpc proto-google-cloud-speech-v1 - 4.40.0 + 4.41.0-SNAPSHOT com.google.api.grpc proto-google-cloud-speech-v1beta1 - 2.40.0 + 2.41.0-SNAPSHOT com.google.api.grpc proto-google-cloud-speech-v1p1beta1 - 2.40.0 + 2.41.0-SNAPSHOT com.google.api.grpc proto-google-cloud-speech-v2 - 4.40.0 + 4.41.0-SNAPSHOT diff --git a/java-speech/google-cloud-speech/pom.xml b/java-speech/google-cloud-speech/pom.xml index cdbb115d3e5d..7b9e0d48b219 100644 --- a/java-speech/google-cloud-speech/pom.xml +++ b/java-speech/google-cloud-speech/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-speech - 4.40.0 + 4.41.0-SNAPSHOT jar Google Cloud Speech @@ -12,7 +12,7 @@ com.google.cloud google-cloud-speech-parent - 4.40.0 + 4.41.0-SNAPSHOT google-cloud-speech diff --git a/java-speech/grpc-google-cloud-speech-v1/pom.xml b/java-speech/grpc-google-cloud-speech-v1/pom.xml index 7ea24a12b3b9..741da050202a 100644 --- a/java-speech/grpc-google-cloud-speech-v1/pom.xml +++ b/java-speech/grpc-google-cloud-speech-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-speech-v1 - 4.40.0 + 4.41.0-SNAPSHOT grpc-google-cloud-speech-v1 GRPC library for grpc-google-cloud-speech-v1 com.google.cloud google-cloud-speech-parent - 4.40.0 + 4.41.0-SNAPSHOT diff --git a/java-speech/grpc-google-cloud-speech-v1beta1/pom.xml b/java-speech/grpc-google-cloud-speech-v1beta1/pom.xml index 1a92ae23da33..a367caef1dc8 100644 --- a/java-speech/grpc-google-cloud-speech-v1beta1/pom.xml +++ b/java-speech/grpc-google-cloud-speech-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-speech-v1beta1 - 2.40.0 + 2.41.0-SNAPSHOT grpc-google-cloud-speech-v1beta1 GRPC library for grpc-google-cloud-speech-v1beta1 com.google.cloud google-cloud-speech-parent - 4.40.0 + 4.41.0-SNAPSHOT diff --git a/java-speech/grpc-google-cloud-speech-v1p1beta1/pom.xml b/java-speech/grpc-google-cloud-speech-v1p1beta1/pom.xml index 8646ffde926d..6ca008341ab7 100644 --- a/java-speech/grpc-google-cloud-speech-v1p1beta1/pom.xml +++ b/java-speech/grpc-google-cloud-speech-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-speech-v1p1beta1 - 2.40.0 + 2.41.0-SNAPSHOT grpc-google-cloud-speech-v1p1beta1 GRPC library for grpc-google-cloud-speech-v1p1beta1 com.google.cloud google-cloud-speech-parent - 4.40.0 + 4.41.0-SNAPSHOT diff --git a/java-speech/grpc-google-cloud-speech-v2/pom.xml b/java-speech/grpc-google-cloud-speech-v2/pom.xml index 974c046f3489..6cd8c555fc1f 100644 --- a/java-speech/grpc-google-cloud-speech-v2/pom.xml +++ b/java-speech/grpc-google-cloud-speech-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-speech-v2 - 4.40.0 + 4.41.0-SNAPSHOT grpc-google-cloud-speech-v2 GRPC library for google-cloud-speech com.google.cloud google-cloud-speech-parent - 4.40.0 + 4.41.0-SNAPSHOT diff --git a/java-speech/pom.xml b/java-speech/pom.xml index 620daf112165..6dd82c2dc0fc 100644 --- a/java-speech/pom.xml +++ b/java-speech/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-speech-parent pom - 4.40.0 + 4.41.0-SNAPSHOT Google Cloud speech Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,47 +29,47 @@ com.google.api.grpc proto-google-cloud-speech-v1 - 4.40.0 + 4.41.0-SNAPSHOT com.google.api.grpc proto-google-cloud-speech-v2 - 4.40.0 + 4.41.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-speech-v2 - 4.40.0 + 4.41.0-SNAPSHOT com.google.cloud google-cloud-speech - 4.40.0 + 4.41.0-SNAPSHOT com.google.api.grpc proto-google-cloud-speech-v1beta1 - 2.40.0 + 2.41.0-SNAPSHOT com.google.api.grpc proto-google-cloud-speech-v1p1beta1 - 2.40.0 + 2.41.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-speech-v1 - 4.40.0 + 4.41.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-speech-v1beta1 - 2.40.0 + 2.41.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-speech-v1p1beta1 - 2.40.0 + 2.41.0-SNAPSHOT diff --git a/java-speech/proto-google-cloud-speech-v1/pom.xml b/java-speech/proto-google-cloud-speech-v1/pom.xml index 327941b8f287..97dc88abebbe 100644 --- a/java-speech/proto-google-cloud-speech-v1/pom.xml +++ b/java-speech/proto-google-cloud-speech-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-speech-v1 - 4.40.0 + 4.41.0-SNAPSHOT proto-google-cloud-speech-v1 PROTO library for proto-google-cloud-speech-v1 com.google.cloud google-cloud-speech-parent - 4.40.0 + 4.41.0-SNAPSHOT diff --git a/java-speech/proto-google-cloud-speech-v1beta1/pom.xml b/java-speech/proto-google-cloud-speech-v1beta1/pom.xml index 18231344c2f8..c814604a1a24 100644 --- a/java-speech/proto-google-cloud-speech-v1beta1/pom.xml +++ b/java-speech/proto-google-cloud-speech-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-speech-v1beta1 - 2.40.0 + 2.41.0-SNAPSHOT proto-google-cloud-speech-v1beta1 PROTO library for proto-google-cloud-speech-v1beta1 com.google.cloud google-cloud-speech-parent - 4.40.0 + 4.41.0-SNAPSHOT diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/pom.xml b/java-speech/proto-google-cloud-speech-v1p1beta1/pom.xml index 20d7676ce08b..402fc641f2ae 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/pom.xml +++ b/java-speech/proto-google-cloud-speech-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-speech-v1p1beta1 - 2.40.0 + 2.41.0-SNAPSHOT proto-google-cloud-speech-v1p1beta1 PROTO library for proto-google-cloud-speech-v1p1beta1 com.google.cloud google-cloud-speech-parent - 4.40.0 + 4.41.0-SNAPSHOT diff --git a/java-speech/proto-google-cloud-speech-v2/pom.xml b/java-speech/proto-google-cloud-speech-v2/pom.xml index ae5f6befb4b0..52bbeb617ea6 100644 --- a/java-speech/proto-google-cloud-speech-v2/pom.xml +++ b/java-speech/proto-google-cloud-speech-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-speech-v2 - 4.40.0 + 4.41.0-SNAPSHOT proto-google-cloud-speech-v2 Proto library for google-cloud-speech com.google.cloud google-cloud-speech-parent - 4.40.0 + 4.41.0-SNAPSHOT diff --git a/java-storage-transfer/google-cloud-storage-transfer-bom/pom.xml b/java-storage-transfer/google-cloud-storage-transfer-bom/pom.xml index 696491611578..82c07408e116 100644 --- a/java-storage-transfer/google-cloud-storage-transfer-bom/pom.xml +++ b/java-storage-transfer/google-cloud-storage-transfer-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-storage-transfer-bom - 1.45.0 + 1.46.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-storage-transfer - 1.45.0 + 1.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-storage-transfer-v1 - 1.45.0 + 1.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-storage-transfer-v1 - 1.45.0 + 1.46.0-SNAPSHOT diff --git a/java-storage-transfer/google-cloud-storage-transfer/pom.xml b/java-storage-transfer/google-cloud-storage-transfer/pom.xml index af0c15f0bb36..7ef5a765469a 100644 --- a/java-storage-transfer/google-cloud-storage-transfer/pom.xml +++ b/java-storage-transfer/google-cloud-storage-transfer/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-storage-transfer - 1.45.0 + 1.46.0-SNAPSHOT jar Google Storage Transfer Service Storage Transfer Service Secure, low-cost services for transferring data from cloud or on-premises sources. com.google.cloud google-cloud-storage-transfer-parent - 1.45.0 + 1.46.0-SNAPSHOT google-cloud-storage-transfer diff --git a/java-storage-transfer/grpc-google-cloud-storage-transfer-v1/pom.xml b/java-storage-transfer/grpc-google-cloud-storage-transfer-v1/pom.xml index 6a631ba4431d..5977a3a04665 100644 --- a/java-storage-transfer/grpc-google-cloud-storage-transfer-v1/pom.xml +++ b/java-storage-transfer/grpc-google-cloud-storage-transfer-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-storage-transfer-v1 - 1.45.0 + 1.46.0-SNAPSHOT grpc-google-cloud-storage-transfer-v1 GRPC library for google-cloud-storage-transfer com.google.cloud google-cloud-storage-transfer-parent - 1.45.0 + 1.46.0-SNAPSHOT diff --git a/java-storage-transfer/pom.xml b/java-storage-transfer/pom.xml index b0906cbf1d82..99ec63ca2786 100644 --- a/java-storage-transfer/pom.xml +++ b/java-storage-transfer/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-storage-transfer-parent pom - 1.45.0 + 1.46.0-SNAPSHOT Google Storage Transfer Service Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-storage-transfer - 1.45.0 + 1.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-storage-transfer-v1 - 1.45.0 + 1.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-storage-transfer-v1 - 1.45.0 + 1.46.0-SNAPSHOT diff --git a/java-storage-transfer/proto-google-cloud-storage-transfer-v1/pom.xml b/java-storage-transfer/proto-google-cloud-storage-transfer-v1/pom.xml index 3d0a695f5ffa..c432d08b989c 100644 --- a/java-storage-transfer/proto-google-cloud-storage-transfer-v1/pom.xml +++ b/java-storage-transfer/proto-google-cloud-storage-transfer-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-storage-transfer-v1 - 1.45.0 + 1.46.0-SNAPSHOT proto-google-cloud-storage-transfer-v1 Proto library for google-cloud-storage-transfer com.google.cloud google-cloud-storage-transfer-parent - 1.45.0 + 1.46.0-SNAPSHOT diff --git a/java-storageinsights/google-cloud-storageinsights-bom/pom.xml b/java-storageinsights/google-cloud-storageinsights-bom/pom.xml index 1e77d154aea3..c50f86dd7d5b 100644 --- a/java-storageinsights/google-cloud-storageinsights-bom/pom.xml +++ b/java-storageinsights/google-cloud-storageinsights-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-storageinsights-bom - 0.30.0 + 0.31.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-storageinsights - 0.30.0 + 0.31.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-storageinsights-v1 - 0.30.0 + 0.31.0-SNAPSHOT com.google.api.grpc proto-google-cloud-storageinsights-v1 - 0.30.0 + 0.31.0-SNAPSHOT diff --git a/java-storageinsights/google-cloud-storageinsights/pom.xml b/java-storageinsights/google-cloud-storageinsights/pom.xml index 35c9224a8907..45c4254ad3bc 100644 --- a/java-storageinsights/google-cloud-storageinsights/pom.xml +++ b/java-storageinsights/google-cloud-storageinsights/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-storageinsights - 0.30.0 + 0.31.0-SNAPSHOT jar Google Storage Insights API Storage Insights API Provides insights capability on Google Cloud Storage com.google.cloud google-cloud-storageinsights-parent - 0.30.0 + 0.31.0-SNAPSHOT google-cloud-storageinsights diff --git a/java-storageinsights/grpc-google-cloud-storageinsights-v1/pom.xml b/java-storageinsights/grpc-google-cloud-storageinsights-v1/pom.xml index e250985263bf..c1f39f6fd225 100644 --- a/java-storageinsights/grpc-google-cloud-storageinsights-v1/pom.xml +++ b/java-storageinsights/grpc-google-cloud-storageinsights-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-storageinsights-v1 - 0.30.0 + 0.31.0-SNAPSHOT grpc-google-cloud-storageinsights-v1 GRPC library for google-cloud-storageinsights com.google.cloud google-cloud-storageinsights-parent - 0.30.0 + 0.31.0-SNAPSHOT diff --git a/java-storageinsights/pom.xml b/java-storageinsights/pom.xml index 5f92781eebed..52bf90de78b0 100644 --- a/java-storageinsights/pom.xml +++ b/java-storageinsights/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-storageinsights-parent pom - 0.30.0 + 0.31.0-SNAPSHOT Google Storage Insights API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-storageinsights - 0.30.0 + 0.31.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-storageinsights-v1 - 0.30.0 + 0.31.0-SNAPSHOT com.google.api.grpc proto-google-cloud-storageinsights-v1 - 0.30.0 + 0.31.0-SNAPSHOT diff --git a/java-storageinsights/proto-google-cloud-storageinsights-v1/pom.xml b/java-storageinsights/proto-google-cloud-storageinsights-v1/pom.xml index 1ad8a1373595..66af2e75a3fe 100644 --- a/java-storageinsights/proto-google-cloud-storageinsights-v1/pom.xml +++ b/java-storageinsights/proto-google-cloud-storageinsights-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-storageinsights-v1 - 0.30.0 + 0.31.0-SNAPSHOT proto-google-cloud-storageinsights-v1 Proto library for google-cloud-storageinsights com.google.cloud google-cloud-storageinsights-parent - 0.30.0 + 0.31.0-SNAPSHOT diff --git a/java-talent/google-cloud-talent-bom/pom.xml b/java-talent/google-cloud-talent-bom/pom.xml index 0baf587848f0..b14179f4f932 100644 --- a/java-talent/google-cloud-talent-bom/pom.xml +++ b/java-talent/google-cloud-talent-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-talent-bom - 2.46.0 + 2.47.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-talent - 2.46.0 + 2.47.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-talent-v4 - 2.46.0 + 2.47.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-talent-v4beta1 - 0.89.0 + 0.90.0-SNAPSHOT com.google.api.grpc proto-google-cloud-talent-v4 - 2.46.0 + 2.47.0-SNAPSHOT com.google.api.grpc proto-google-cloud-talent-v4beta1 - 0.89.0 + 0.90.0-SNAPSHOT diff --git a/java-talent/google-cloud-talent/pom.xml b/java-talent/google-cloud-talent/pom.xml index 1eea52270a89..b105e5441650 100644 --- a/java-talent/google-cloud-talent/pom.xml +++ b/java-talent/google-cloud-talent/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-talent - 2.46.0 + 2.47.0-SNAPSHOT jar Google Cloud Talent Solution Java idiomatic client for Google Cloud Talent Solution com.google.cloud google-cloud-talent-parent - 2.46.0 + 2.47.0-SNAPSHOT google-cloud-talent diff --git a/java-talent/grpc-google-cloud-talent-v4/pom.xml b/java-talent/grpc-google-cloud-talent-v4/pom.xml index be0ef2814d8f..42930cc4513d 100644 --- a/java-talent/grpc-google-cloud-talent-v4/pom.xml +++ b/java-talent/grpc-google-cloud-talent-v4/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-talent-v4 - 2.46.0 + 2.47.0-SNAPSHOT grpc-google-cloud-talent-v4 GRPC library for grpc-google-cloud-talent-v4 com.google.cloud google-cloud-talent-parent - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-talent/grpc-google-cloud-talent-v4beta1/pom.xml b/java-talent/grpc-google-cloud-talent-v4beta1/pom.xml index e423faf9275b..3e7667efb8c7 100644 --- a/java-talent/grpc-google-cloud-talent-v4beta1/pom.xml +++ b/java-talent/grpc-google-cloud-talent-v4beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-talent-v4beta1 - 0.89.0 + 0.90.0-SNAPSHOT grpc-google-cloud-talent-v4beta1 GRPC library for grpc-google-cloud-talent-v4beta1 com.google.cloud google-cloud-talent-parent - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-talent/pom.xml b/java-talent/pom.xml index 784e562eecd4..59ffb4b20f62 100644 --- a/java-talent/pom.xml +++ b/java-talent/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-talent-parent pom - 2.46.0 + 2.47.0-SNAPSHOT Google Cloud Talent Solution Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,32 +29,32 @@ com.google.api.grpc proto-google-cloud-talent-v4beta1 - 0.89.0 + 0.90.0-SNAPSHOT com.google.api.grpc proto-google-cloud-talent-v4 - 2.46.0 + 2.47.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-talent-v4beta1 - 0.89.0 + 0.90.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-talent-v4 - 2.46.0 + 2.47.0-SNAPSHOT com.google.cloud google-cloud-talent - 2.46.0 + 2.47.0-SNAPSHOT com.google.cloud google-cloud-talent-bom - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-talent/proto-google-cloud-talent-v4/pom.xml b/java-talent/proto-google-cloud-talent-v4/pom.xml index c67efc85878b..e8e707b11697 100644 --- a/java-talent/proto-google-cloud-talent-v4/pom.xml +++ b/java-talent/proto-google-cloud-talent-v4/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-talent-v4 - 2.46.0 + 2.47.0-SNAPSHOT proto-google-cloud-talent-v4 PROTO library for proto-google-cloud-talent-v4 com.google.cloud google-cloud-talent-parent - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-talent/proto-google-cloud-talent-v4beta1/pom.xml b/java-talent/proto-google-cloud-talent-v4beta1/pom.xml index bceaec22d3cf..4f43a02a2a36 100644 --- a/java-talent/proto-google-cloud-talent-v4beta1/pom.xml +++ b/java-talent/proto-google-cloud-talent-v4beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-talent-v4beta1 - 0.89.0 + 0.90.0-SNAPSHOT proto-google-cloud-talent-v4beta1 PROTO library for proto-google-cloud-talent-v4beta1 com.google.cloud google-cloud-talent-parent - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-tasks/google-cloud-tasks-bom/pom.xml b/java-tasks/google-cloud-tasks-bom/pom.xml index 9b29878db44a..1849428b47b5 100644 --- a/java-tasks/google-cloud-tasks-bom/pom.xml +++ b/java-tasks/google-cloud-tasks-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.45.0 + 2.46.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -23,37 +23,37 @@ com.google.cloud google-cloud-tasks - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.135.0 + 0.136.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.135.0 + 0.136.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.135.0 + 0.136.0-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.135.0 + 0.136.0-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-tasks/google-cloud-tasks/pom.xml b/java-tasks/google-cloud-tasks/pom.xml index f9ef77f0071f..53433c5bf064 100644 --- a/java-tasks/google-cloud-tasks/pom.xml +++ b/java-tasks/google-cloud-tasks/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.45.0 + 2.46.0-SNAPSHOT jar Google Cloud Tasks Java idiomatic client for Google Cloud Tasks com.google.cloud google-cloud-tasks-parent - 2.45.0 + 2.46.0-SNAPSHOT google-cloud-tasks diff --git a/java-tasks/grpc-google-cloud-tasks-v2/pom.xml b/java-tasks/grpc-google-cloud-tasks-v2/pom.xml index 52b48d61cfbf..2f487dd7417c 100644 --- a/java-tasks/grpc-google-cloud-tasks-v2/pom.xml +++ b/java-tasks/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.45.0 + 2.46.0-SNAPSHOT grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-tasks/grpc-google-cloud-tasks-v2beta2/pom.xml b/java-tasks/grpc-google-cloud-tasks-v2beta2/pom.xml index b6824d3ac648..d04b0eeafada 100644 --- a/java-tasks/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/java-tasks/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.135.0 + 0.136.0-SNAPSHOT grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-tasks/grpc-google-cloud-tasks-v2beta3/pom.xml b/java-tasks/grpc-google-cloud-tasks-v2beta3/pom.xml index 39b63ab4def0..cc336d50e29e 100644 --- a/java-tasks/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/java-tasks/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.135.0 + 0.136.0-SNAPSHOT grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-tasks/pom.xml b/java-tasks/pom.xml index 994095c3c5f5..d235759f7087 100644 --- a/java-tasks/pom.xml +++ b/java-tasks/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.45.0 + 2.46.0-SNAPSHOT Google Cloud Tasks Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.135.0 + 0.136.0-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.135.0 + 0.136.0-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.135.0 + 0.136.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.135.0 + 0.136.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.45.0 + 2.46.0-SNAPSHOT com.google.cloud google-cloud-tasks - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-tasks/proto-google-cloud-tasks-v2/pom.xml b/java-tasks/proto-google-cloud-tasks-v2/pom.xml index 11d98feb1584..58c33d1b8423 100644 --- a/java-tasks/proto-google-cloud-tasks-v2/pom.xml +++ b/java-tasks/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.45.0 + 2.46.0-SNAPSHOT proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-tasks/proto-google-cloud-tasks-v2beta2/pom.xml b/java-tasks/proto-google-cloud-tasks-v2beta2/pom.xml index 9c257e03aefa..ddad1548834a 100644 --- a/java-tasks/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/java-tasks/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.135.0 + 0.136.0-SNAPSHOT proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-tasks/proto-google-cloud-tasks-v2beta3/pom.xml b/java-tasks/proto-google-cloud-tasks-v2beta3/pom.xml index 843962e216bb..0c58d915736e 100644 --- a/java-tasks/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/java-tasks/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.135.0 + 0.136.0-SNAPSHOT proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-telcoautomation/google-cloud-telcoautomation-bom/pom.xml b/java-telcoautomation/google-cloud-telcoautomation-bom/pom.xml index 1ac09c203519..22999a5e688d 100644 --- a/java-telcoautomation/google-cloud-telcoautomation-bom/pom.xml +++ b/java-telcoautomation/google-cloud-telcoautomation-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-telcoautomation-bom - 0.15.0 + 0.16.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-telcoautomation - 0.15.0 + 0.16.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-telcoautomation-v1 - 0.15.0 + 0.16.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-telcoautomation-v1alpha1 - 0.15.0 + 0.16.0-SNAPSHOT com.google.api.grpc proto-google-cloud-telcoautomation-v1 - 0.15.0 + 0.16.0-SNAPSHOT com.google.api.grpc proto-google-cloud-telcoautomation-v1alpha1 - 0.15.0 + 0.16.0-SNAPSHOT diff --git a/java-telcoautomation/google-cloud-telcoautomation/pom.xml b/java-telcoautomation/google-cloud-telcoautomation/pom.xml index 95558908ddf5..b4a12edfdda0 100644 --- a/java-telcoautomation/google-cloud-telcoautomation/pom.xml +++ b/java-telcoautomation/google-cloud-telcoautomation/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-telcoautomation - 0.15.0 + 0.16.0-SNAPSHOT jar Google Telco Automation API Telco Automation API APIs to automate 5G deployment and management of cloud infrastructure and network functions. com.google.cloud google-cloud-telcoautomation-parent - 0.15.0 + 0.16.0-SNAPSHOT google-cloud-telcoautomation diff --git a/java-telcoautomation/grpc-google-cloud-telcoautomation-v1/pom.xml b/java-telcoautomation/grpc-google-cloud-telcoautomation-v1/pom.xml index b556e6b3cde7..3fdae58ac59d 100644 --- a/java-telcoautomation/grpc-google-cloud-telcoautomation-v1/pom.xml +++ b/java-telcoautomation/grpc-google-cloud-telcoautomation-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-telcoautomation-v1 - 0.15.0 + 0.16.0-SNAPSHOT grpc-google-cloud-telcoautomation-v1 GRPC library for google-cloud-telcoautomation com.google.cloud google-cloud-telcoautomation-parent - 0.15.0 + 0.16.0-SNAPSHOT diff --git a/java-telcoautomation/grpc-google-cloud-telcoautomation-v1alpha1/pom.xml b/java-telcoautomation/grpc-google-cloud-telcoautomation-v1alpha1/pom.xml index 982c003b0a25..fb42693c4b28 100644 --- a/java-telcoautomation/grpc-google-cloud-telcoautomation-v1alpha1/pom.xml +++ b/java-telcoautomation/grpc-google-cloud-telcoautomation-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-telcoautomation-v1alpha1 - 0.15.0 + 0.16.0-SNAPSHOT grpc-google-cloud-telcoautomation-v1alpha1 GRPC library for google-cloud-telcoautomation com.google.cloud google-cloud-telcoautomation-parent - 0.15.0 + 0.16.0-SNAPSHOT diff --git a/java-telcoautomation/pom.xml b/java-telcoautomation/pom.xml index 981133edb42f..4054da3f1cab 100644 --- a/java-telcoautomation/pom.xml +++ b/java-telcoautomation/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-telcoautomation-parent pom - 0.15.0 + 0.16.0-SNAPSHOT Google Telco Automation API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-telcoautomation - 0.15.0 + 0.16.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-telcoautomation-v1 - 0.15.0 + 0.16.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-telcoautomation-v1alpha1 - 0.15.0 + 0.16.0-SNAPSHOT com.google.api.grpc proto-google-cloud-telcoautomation-v1 - 0.15.0 + 0.16.0-SNAPSHOT com.google.api.grpc proto-google-cloud-telcoautomation-v1alpha1 - 0.15.0 + 0.16.0-SNAPSHOT diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/pom.xml b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/pom.xml index 4cc8e90333cf..7b1463a2a513 100644 --- a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/pom.xml +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-telcoautomation-v1 - 0.15.0 + 0.16.0-SNAPSHOT proto-google-cloud-telcoautomation-v1 Proto library for google-cloud-telcoautomation com.google.cloud google-cloud-telcoautomation-parent - 0.15.0 + 0.16.0-SNAPSHOT diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/pom.xml b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/pom.xml index 2a71c256f3f7..5e97f26ca1d6 100644 --- a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/pom.xml +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-telcoautomation-v1alpha1 - 0.15.0 + 0.16.0-SNAPSHOT proto-google-cloud-telcoautomation-v1alpha1 Proto library for google-cloud-telcoautomation com.google.cloud google-cloud-telcoautomation-parent - 0.15.0 + 0.16.0-SNAPSHOT diff --git a/java-texttospeech/google-cloud-texttospeech-bom/pom.xml b/java-texttospeech/google-cloud-texttospeech-bom/pom.xml index c25e003fce01..7d1b7f5db289 100644 --- a/java-texttospeech/google-cloud-texttospeech-bom/pom.xml +++ b/java-texttospeech/google-cloud-texttospeech-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-texttospeech-bom - 2.46.0 + 2.47.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-texttospeech - 2.46.0 + 2.47.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-texttospeech-v1beta1 - 0.135.0 + 0.136.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-texttospeech-v1 - 2.46.0 + 2.47.0-SNAPSHOT com.google.api.grpc proto-google-cloud-texttospeech-v1 - 2.46.0 + 2.47.0-SNAPSHOT com.google.api.grpc proto-google-cloud-texttospeech-v1beta1 - 0.135.0 + 0.136.0-SNAPSHOT diff --git a/java-texttospeech/google-cloud-texttospeech/pom.xml b/java-texttospeech/google-cloud-texttospeech/pom.xml index 4a9cfe1519cd..fbea814a8ed4 100644 --- a/java-texttospeech/google-cloud-texttospeech/pom.xml +++ b/java-texttospeech/google-cloud-texttospeech/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-texttospeech - 2.46.0 + 2.47.0-SNAPSHOT jar Google Cloud Text-to-Speech Java idiomatic client for Google Cloud Text-to-Speech com.google.cloud google-cloud-texttospeech-parent - 2.46.0 + 2.47.0-SNAPSHOT google-cloud-texttospeech diff --git a/java-texttospeech/grpc-google-cloud-texttospeech-v1/pom.xml b/java-texttospeech/grpc-google-cloud-texttospeech-v1/pom.xml index 05c53fb1933e..ca08867aac8b 100644 --- a/java-texttospeech/grpc-google-cloud-texttospeech-v1/pom.xml +++ b/java-texttospeech/grpc-google-cloud-texttospeech-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-texttospeech-v1 - 2.46.0 + 2.47.0-SNAPSHOT grpc-google-cloud-texttospeech-v1 GRPC library for grpc-google-cloud-texttospeech-v1 com.google.cloud google-cloud-texttospeech-parent - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-texttospeech/grpc-google-cloud-texttospeech-v1beta1/pom.xml b/java-texttospeech/grpc-google-cloud-texttospeech-v1beta1/pom.xml index d15b2815421a..d86797c2847f 100644 --- a/java-texttospeech/grpc-google-cloud-texttospeech-v1beta1/pom.xml +++ b/java-texttospeech/grpc-google-cloud-texttospeech-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-texttospeech-v1beta1 - 0.135.0 + 0.136.0-SNAPSHOT grpc-google-cloud-texttospeech-v1beta1 GRPC library for grpc-google-cloud-texttospeech-v1beta1 com.google.cloud google-cloud-texttospeech-parent - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-texttospeech/pom.xml b/java-texttospeech/pom.xml index fc9c74af4848..2d73f5fd8dba 100644 --- a/java-texttospeech/pom.xml +++ b/java-texttospeech/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-texttospeech-parent pom - 2.46.0 + 2.47.0-SNAPSHOT Google Cloud Text-to-Speech Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-texttospeech-v1 - 2.46.0 + 2.47.0-SNAPSHOT com.google.api.grpc proto-google-cloud-texttospeech-v1beta1 - 0.135.0 + 0.136.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-texttospeech-v1beta1 - 0.135.0 + 0.136.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-texttospeech-v1 - 2.46.0 + 2.47.0-SNAPSHOT com.google.cloud google-cloud-texttospeech - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1/pom.xml b/java-texttospeech/proto-google-cloud-texttospeech-v1/pom.xml index 47ad75ade5b5..d77cb8adbafe 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1/pom.xml +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-texttospeech-v1 - 2.46.0 + 2.47.0-SNAPSHOT proto-google-cloud-texttospeech-v1 PROTO library for proto-google-cloud-texttospeech-v1 com.google.cloud google-cloud-texttospeech-parent - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/pom.xml b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/pom.xml index 0a53a191cfa7..de8ecbcff107 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/pom.xml +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-texttospeech-v1beta1 - 0.135.0 + 0.136.0-SNAPSHOT proto-google-cloud-texttospeech-v1beta1 PROTO library for proto-google-cloud-texttospeech-v1beta1 com.google.cloud google-cloud-texttospeech-parent - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-tpu/google-cloud-tpu-bom/pom.xml b/java-tpu/google-cloud-tpu-bom/pom.xml index b780b2204a96..3e49669a68e9 100644 --- a/java-tpu/google-cloud-tpu-bom/pom.xml +++ b/java-tpu/google-cloud-tpu-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-tpu-bom - 2.46.0 + 2.47.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,37 +27,37 @@ com.google.cloud google-cloud-tpu - 2.46.0 + 2.47.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-tpu-v1 - 2.46.0 + 2.47.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-tpu-v2alpha1 - 2.46.0 + 2.47.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-tpu-v2 - 2.46.0 + 2.47.0-SNAPSHOT com.google.api.grpc proto-google-cloud-tpu-v1 - 2.46.0 + 2.47.0-SNAPSHOT com.google.api.grpc proto-google-cloud-tpu-v2alpha1 - 2.46.0 + 2.47.0-SNAPSHOT com.google.api.grpc proto-google-cloud-tpu-v2 - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-tpu/google-cloud-tpu/pom.xml b/java-tpu/google-cloud-tpu/pom.xml index d528ae8ede0c..4ede25023f2a 100644 --- a/java-tpu/google-cloud-tpu/pom.xml +++ b/java-tpu/google-cloud-tpu/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-tpu - 2.46.0 + 2.47.0-SNAPSHOT jar Google Cloud TPU Cloud TPU are Google's custom-developed application-specific integrated circuits (ASICs) used to accelerate machine learning workloads. com.google.cloud google-cloud-tpu-parent - 2.46.0 + 2.47.0-SNAPSHOT google-cloud-tpu diff --git a/java-tpu/grpc-google-cloud-tpu-v1/pom.xml b/java-tpu/grpc-google-cloud-tpu-v1/pom.xml index 9945d5ac797c..b847315b6123 100644 --- a/java-tpu/grpc-google-cloud-tpu-v1/pom.xml +++ b/java-tpu/grpc-google-cloud-tpu-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tpu-v1 - 2.46.0 + 2.47.0-SNAPSHOT grpc-google-cloud-tpu-v1 GRPC library for google-cloud-tpu com.google.cloud google-cloud-tpu-parent - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-tpu/grpc-google-cloud-tpu-v2/pom.xml b/java-tpu/grpc-google-cloud-tpu-v2/pom.xml index a8f0d1e9dc35..da0dda904189 100644 --- a/java-tpu/grpc-google-cloud-tpu-v2/pom.xml +++ b/java-tpu/grpc-google-cloud-tpu-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tpu-v2 - 2.46.0 + 2.47.0-SNAPSHOT grpc-google-cloud-tpu-v2 GRPC library for google-cloud-tpu com.google.cloud google-cloud-tpu-parent - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-tpu/grpc-google-cloud-tpu-v2alpha1/pom.xml b/java-tpu/grpc-google-cloud-tpu-v2alpha1/pom.xml index 6e9a4cbb33c1..448b0ab77d0e 100644 --- a/java-tpu/grpc-google-cloud-tpu-v2alpha1/pom.xml +++ b/java-tpu/grpc-google-cloud-tpu-v2alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tpu-v2alpha1 - 2.46.0 + 2.47.0-SNAPSHOT grpc-google-cloud-tpu-v2alpha1 GRPC library for google-cloud-tpu com.google.cloud google-cloud-tpu-parent - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-tpu/pom.xml b/java-tpu/pom.xml index 9d75b5bb538a..ee9b2a01c092 100644 --- a/java-tpu/pom.xml +++ b/java-tpu/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tpu-parent pom - 2.46.0 + 2.47.0-SNAPSHOT Google Cloud TPU Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.cloud google-cloud-tpu - 2.46.0 + 2.47.0-SNAPSHOT com.google.api.grpc proto-google-cloud-tpu-v2 - 2.46.0 + 2.47.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-tpu-v2 - 2.46.0 + 2.47.0-SNAPSHOT com.google.api.grpc proto-google-cloud-tpu-v2alpha1 - 2.46.0 + 2.47.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-tpu-v2alpha1 - 2.46.0 + 2.47.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-tpu-v1 - 2.46.0 + 2.47.0-SNAPSHOT com.google.api.grpc proto-google-cloud-tpu-v1 - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-tpu/proto-google-cloud-tpu-v1/pom.xml b/java-tpu/proto-google-cloud-tpu-v1/pom.xml index b1c0c7bca41a..3411b968dab3 100644 --- a/java-tpu/proto-google-cloud-tpu-v1/pom.xml +++ b/java-tpu/proto-google-cloud-tpu-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tpu-v1 - 2.46.0 + 2.47.0-SNAPSHOT proto-google-cloud-tpu-v1 Proto library for google-cloud-tpu com.google.cloud google-cloud-tpu-parent - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-tpu/proto-google-cloud-tpu-v2/pom.xml b/java-tpu/proto-google-cloud-tpu-v2/pom.xml index 71b5f689ab4d..1b321ee7a8ad 100644 --- a/java-tpu/proto-google-cloud-tpu-v2/pom.xml +++ b/java-tpu/proto-google-cloud-tpu-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tpu-v2 - 2.46.0 + 2.47.0-SNAPSHOT proto-google-cloud-tpu-v2 Proto library for google-cloud-tpu com.google.cloud google-cloud-tpu-parent - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-tpu/proto-google-cloud-tpu-v2alpha1/pom.xml b/java-tpu/proto-google-cloud-tpu-v2alpha1/pom.xml index e99736f3bccd..612f6f884e2e 100644 --- a/java-tpu/proto-google-cloud-tpu-v2alpha1/pom.xml +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tpu-v2alpha1 - 2.46.0 + 2.47.0-SNAPSHOT proto-google-cloud-tpu-v2alpha1 Proto library for google-cloud-tpu com.google.cloud google-cloud-tpu-parent - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-trace/google-cloud-trace-bom/pom.xml b/java-trace/google-cloud-trace-bom/pom.xml index 763d14dcc754..89faf07e441a 100644 --- a/java-trace/google-cloud-trace-bom/pom.xml +++ b/java-trace/google-cloud-trace-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-trace-bom - 2.45.0 + 2.46.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-trace - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-trace-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-trace-v2 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-trace-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-trace-v2 - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-trace/google-cloud-trace/pom.xml b/java-trace/google-cloud-trace/pom.xml index 36dd6741fba4..6a7938accefe 100644 --- a/java-trace/google-cloud-trace/pom.xml +++ b/java-trace/google-cloud-trace/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-trace - 2.45.0 + 2.46.0-SNAPSHOT jar Google Cloud Trace @@ -12,7 +12,7 @@ com.google.cloud google-cloud-trace-parent - 2.45.0 + 2.46.0-SNAPSHOT google-cloud-trace diff --git a/java-trace/grpc-google-cloud-trace-v1/pom.xml b/java-trace/grpc-google-cloud-trace-v1/pom.xml index ccbe121584ff..bb0830ce29a6 100644 --- a/java-trace/grpc-google-cloud-trace-v1/pom.xml +++ b/java-trace/grpc-google-cloud-trace-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-trace-v1 - 2.45.0 + 2.46.0-SNAPSHOT grpc-google-cloud-trace-v1 GRPC library for grpc-google-cloud-trace-v1 com.google.cloud google-cloud-trace-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-trace/grpc-google-cloud-trace-v2/pom.xml b/java-trace/grpc-google-cloud-trace-v2/pom.xml index cbdb869e8f57..6b8603f8ea36 100644 --- a/java-trace/grpc-google-cloud-trace-v2/pom.xml +++ b/java-trace/grpc-google-cloud-trace-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-trace-v2 - 2.45.0 + 2.46.0-SNAPSHOT grpc-google-cloud-trace-v2 GRPC library for grpc-google-cloud-trace-v2 com.google.cloud google-cloud-trace-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-trace/pom.xml b/java-trace/pom.xml index 8490fe1318f6..744b48a06237 100644 --- a/java-trace/pom.xml +++ b/java-trace/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-trace-parent pom - 2.45.0 + 2.46.0-SNAPSHOT Google Cloud Trace Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-trace-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.cloud google-cloud-trace - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-trace-v2 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-trace-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-trace-v2 - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-trace/proto-google-cloud-trace-v1/pom.xml b/java-trace/proto-google-cloud-trace-v1/pom.xml index c30faae30084..c521b161c229 100644 --- a/java-trace/proto-google-cloud-trace-v1/pom.xml +++ b/java-trace/proto-google-cloud-trace-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-trace-v1 - 2.45.0 + 2.46.0-SNAPSHOT proto-google-cloud-trace-v1 PROTO library for proto-google-cloud-trace-v1 com.google.cloud google-cloud-trace-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-trace/proto-google-cloud-trace-v2/pom.xml b/java-trace/proto-google-cloud-trace-v2/pom.xml index cd4f7ca46305..752231527cc4 100644 --- a/java-trace/proto-google-cloud-trace-v2/pom.xml +++ b/java-trace/proto-google-cloud-trace-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-trace-v2 - 2.45.0 + 2.46.0-SNAPSHOT proto-google-cloud-trace-v2 PROTO library for proto-google-cloud-trace-v2 com.google.cloud google-cloud-trace-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-translate/google-cloud-translate-bom/pom.xml b/java-translate/google-cloud-translate-bom/pom.xml index aabf21787edd..4fed3035e5b5 100644 --- a/java-translate/google-cloud-translate-bom/pom.xml +++ b/java-translate/google-cloud-translate-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-translate-bom - 2.45.0 + 2.46.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-translate - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-translate-v3beta1 - 0.127.0 + 0.128.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-translate-v3 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-translate-v3beta1 - 0.127.0 + 0.128.0-SNAPSHOT com.google.api.grpc proto-google-cloud-translate-v3 - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-translate/google-cloud-translate/pom.xml b/java-translate/google-cloud-translate/pom.xml index 5b3e0c2948f6..1d429d09eabd 100644 --- a/java-translate/google-cloud-translate/pom.xml +++ b/java-translate/google-cloud-translate/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-translate - 2.45.0 + 2.46.0-SNAPSHOT jar Google Cloud Translate Java idiomatic client for Google Cloud Translate com.google.cloud google-cloud-translate-parent - 2.45.0 + 2.46.0-SNAPSHOT google-cloud-translate diff --git a/java-translate/grpc-google-cloud-translate-v3/pom.xml b/java-translate/grpc-google-cloud-translate-v3/pom.xml index c0b3e6acd5ff..79b7b8ec9037 100644 --- a/java-translate/grpc-google-cloud-translate-v3/pom.xml +++ b/java-translate/grpc-google-cloud-translate-v3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-translate-v3 - 2.45.0 + 2.46.0-SNAPSHOT grpc-google-cloud-translate-v3 GRPC library for grpc-google-cloud-translate-v3 com.google.cloud google-cloud-translate-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-translate/grpc-google-cloud-translate-v3beta1/pom.xml b/java-translate/grpc-google-cloud-translate-v3beta1/pom.xml index 8dd50c4263e9..258f5a200f65 100644 --- a/java-translate/grpc-google-cloud-translate-v3beta1/pom.xml +++ b/java-translate/grpc-google-cloud-translate-v3beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-translate-v3beta1 - 0.127.0 + 0.128.0-SNAPSHOT grpc-google-cloud-translate-v3beta1 GRPC library for grpc-google-cloud-translate-v3beta1 com.google.cloud google-cloud-translate-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-translate/pom.xml b/java-translate/pom.xml index c95a235e08f6..b4d880f3c99d 100644 --- a/java-translate/pom.xml +++ b/java-translate/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-translate-parent pom - 2.45.0 + 2.46.0-SNAPSHOT Google Cloud Translate Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-translate-v3beta1 - 0.127.0 + 0.128.0-SNAPSHOT com.google.api.grpc proto-google-cloud-translate-v3 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-translate-v3beta1 - 0.127.0 + 0.128.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-translate-v3 - 2.45.0 + 2.46.0-SNAPSHOT com.google.cloud google-cloud-translate - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-translate/proto-google-cloud-translate-v3/pom.xml b/java-translate/proto-google-cloud-translate-v3/pom.xml index f0c068d0527b..64c931256df0 100644 --- a/java-translate/proto-google-cloud-translate-v3/pom.xml +++ b/java-translate/proto-google-cloud-translate-v3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-translate-v3 - 2.45.0 + 2.46.0-SNAPSHOT proto-google-cloud-translate-v3 PROTO library for proto-google-cloud-translate-v3 com.google.cloud google-cloud-translate-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-translate/proto-google-cloud-translate-v3beta1/pom.xml b/java-translate/proto-google-cloud-translate-v3beta1/pom.xml index 063f487f773f..0c9bcce22dc8 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/pom.xml +++ b/java-translate/proto-google-cloud-translate-v3beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-translate-v3beta1 - 0.127.0 + 0.128.0-SNAPSHOT proto-google-cloud-translate-v3beta1 PROTO library for proto-google-cloud-translate-v3beta1 com.google.cloud google-cloud-translate-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-vertexai/google-cloud-vertexai-bom/pom.xml b/java-vertexai/google-cloud-vertexai-bom/pom.xml index 01d8c1f3d078..3f770802f1e7 100644 --- a/java-vertexai/google-cloud-vertexai-bom/pom.xml +++ b/java-vertexai/google-cloud-vertexai-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-vertexai-bom - 1.5.0 + 1.6.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-vertexai - 1.5.0 + 1.6.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-vertexai-v1 - 1.5.0 + 1.6.0-SNAPSHOT com.google.api.grpc proto-google-cloud-vertexai-v1 - 1.5.0 + 1.6.0-SNAPSHOT diff --git a/java-vertexai/google-cloud-vertexai/pom.xml b/java-vertexai/google-cloud-vertexai/pom.xml index 1db3baddbb68..537c819f3cb7 100644 --- a/java-vertexai/google-cloud-vertexai/pom.xml +++ b/java-vertexai/google-cloud-vertexai/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-vertexai - 1.5.0 + 1.6.0-SNAPSHOT jar Google VertexAI API VertexAI API Vertex AI is an integrated suite of machine learning tools and services @@ -12,7 +12,7 @@ com.google.cloud google-cloud-vertexai-parent - 1.5.0 + 1.6.0-SNAPSHOT google-cloud-vertexai diff --git a/java-vertexai/grpc-google-cloud-vertexai-v1/pom.xml b/java-vertexai/grpc-google-cloud-vertexai-v1/pom.xml index 38c98db749ae..302590e7c0bf 100644 --- a/java-vertexai/grpc-google-cloud-vertexai-v1/pom.xml +++ b/java-vertexai/grpc-google-cloud-vertexai-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-vertexai-v1 - 1.5.0 + 1.6.0-SNAPSHOT grpc-google-cloud-vertexai-v1 GRPC library for google-cloud-vertexai com.google.cloud google-cloud-vertexai-parent - 1.5.0 + 1.6.0-SNAPSHOT diff --git a/java-vertexai/pom.xml b/java-vertexai/pom.xml index 6b346c30bc42..636f9774449e 100644 --- a/java-vertexai/pom.xml +++ b/java-vertexai/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-vertexai-parent pom - 1.5.0 + 1.6.0-SNAPSHOT Google VertexAI API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-vertexai - 1.5.0 + 1.6.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-vertexai-v1 - 1.5.0 + 1.6.0-SNAPSHOT com.google.api.grpc proto-google-cloud-vertexai-v1 - 1.5.0 + 1.6.0-SNAPSHOT diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/pom.xml b/java-vertexai/proto-google-cloud-vertexai-v1/pom.xml index bbbe4ab55fb8..2ccacc8a97af 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/pom.xml +++ b/java-vertexai/proto-google-cloud-vertexai-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-vertexai-v1 - 1.5.0 + 1.6.0-SNAPSHOT proto-google-cloud-vertexai-v1 Proto library for google-cloud-vertexai com.google.cloud google-cloud-vertexai-parent - 1.5.0 + 1.6.0-SNAPSHOT diff --git a/java-video-intelligence/google-cloud-video-intelligence-bom/pom.xml b/java-video-intelligence/google-cloud-video-intelligence-bom/pom.xml index a7d8fdafe1be..875b52b59b37 100644 --- a/java-video-intelligence/google-cloud-video-intelligence-bom/pom.xml +++ b/java-video-intelligence/google-cloud-video-intelligence-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-video-intelligence-bom - 2.44.0 + 2.45.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -23,57 +23,57 @@ com.google.cloud google-cloud-video-intelligence - 2.44.0 + 2.45.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-intelligence-v1p1beta1 - 0.134.0 + 0.135.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-intelligence-v1beta2 - 0.134.0 + 0.135.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-intelligence-v1 - 2.44.0 + 2.45.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-intelligence-v1p2beta1 - 0.134.0 + 0.135.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-intelligence-v1p3beta1 - 0.134.0 + 0.135.0-SNAPSHOT com.google.api.grpc proto-google-cloud-video-intelligence-v1p3beta1 - 0.134.0 + 0.135.0-SNAPSHOT com.google.api.grpc proto-google-cloud-video-intelligence-v1beta2 - 0.134.0 + 0.135.0-SNAPSHOT com.google.api.grpc proto-google-cloud-video-intelligence-v1p1beta1 - 0.134.0 + 0.135.0-SNAPSHOT com.google.api.grpc proto-google-cloud-video-intelligence-v1 - 2.44.0 + 2.45.0-SNAPSHOT com.google.api.grpc proto-google-cloud-video-intelligence-v1p2beta1 - 0.134.0 + 0.135.0-SNAPSHOT diff --git a/java-video-intelligence/google-cloud-video-intelligence/pom.xml b/java-video-intelligence/google-cloud-video-intelligence/pom.xml index 3be1d978954d..43c072919b9f 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/pom.xml +++ b/java-video-intelligence/google-cloud-video-intelligence/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-video-intelligence - 2.44.0 + 2.45.0-SNAPSHOT jar Google Cloud Video Intelligence Java idiomatic client for Google Cloud Video Intelligence com.google.cloud google-cloud-video-intelligence-parent - 2.44.0 + 2.45.0-SNAPSHOT google-cloud-video-intelligence diff --git a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1/pom.xml b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1/pom.xml index 5a58338a0bd8..14d25e628557 100644 --- a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1/pom.xml +++ b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1 - 2.44.0 + 2.45.0-SNAPSHOT grpc-google-cloud-video-intelligence-v1 GRPC library for grpc-google-cloud-video-intelligence-v1 com.google.cloud google-cloud-video-intelligence-parent - 2.44.0 + 2.45.0-SNAPSHOT diff --git a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1beta2/pom.xml b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1beta2/pom.xml index 5c299b73f329..eee90b42d7b3 100644 --- a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1beta2/pom.xml +++ b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1beta2 - 0.134.0 + 0.135.0-SNAPSHOT grpc-google-cloud-video-intelligence-v1beta2 GRPC library for grpc-google-cloud-video-intelligence-v1beta2 com.google.cloud google-cloud-video-intelligence-parent - 2.44.0 + 2.45.0-SNAPSHOT diff --git a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p1beta1/pom.xml b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p1beta1/pom.xml index 6341c19fc1af..e6a466617afe 100644 --- a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p1beta1/pom.xml +++ b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p1beta1 - 0.134.0 + 0.135.0-SNAPSHOT grpc-google-cloud-video-intelligence-v1p1beta1 GRPC library for grpc-google-cloud-video-intelligence-v1p1beta1 com.google.cloud google-cloud-video-intelligence-parent - 2.44.0 + 2.45.0-SNAPSHOT diff --git a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p2beta1/pom.xml b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p2beta1/pom.xml index 9a84007a2a4b..e88f01bf6180 100644 --- a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p2beta1/pom.xml +++ b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p2beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p2beta1 - 0.134.0 + 0.135.0-SNAPSHOT grpc-google-cloud-video-intelligence-v1p2beta1 GRPC library for grpc-google-cloud-video-intelligence-v1p2beta1 com.google.cloud google-cloud-video-intelligence-parent - 2.44.0 + 2.45.0-SNAPSHOT diff --git a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p3beta1/pom.xml b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p3beta1/pom.xml index 12284055caea..32015bcc854f 100644 --- a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p3beta1/pom.xml +++ b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p3beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p3beta1 - 0.134.0 + 0.135.0-SNAPSHOT grpc-google-cloud-video-intelligence-v1p3beta1 GRPC library for grpc-google-cloud-video-intelligence-v1p3beta1 com.google.cloud google-cloud-video-intelligence-parent - 2.44.0 + 2.45.0-SNAPSHOT diff --git a/java-video-intelligence/pom.xml b/java-video-intelligence/pom.xml index 2763f0f576fa..ca8985d45af9 100644 --- a/java-video-intelligence/pom.xml +++ b/java-video-intelligence/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-video-intelligence-parent pom - 2.44.0 + 2.45.0-SNAPSHOT Google Cloud Video Intelligence Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,62 +29,62 @@ com.google.api.grpc proto-google-cloud-video-intelligence-v1p3beta1 - 0.134.0 + 0.135.0-SNAPSHOT com.google.api.grpc proto-google-cloud-video-intelligence-v1beta2 - 0.134.0 + 0.135.0-SNAPSHOT com.google.api.grpc proto-google-cloud-video-intelligence-v1p1beta1 - 0.134.0 + 0.135.0-SNAPSHOT com.google.api.grpc proto-google-cloud-video-intelligence-v1 - 2.44.0 + 2.45.0-SNAPSHOT com.google.api.grpc proto-google-cloud-video-intelligence-v1p2beta1 - 0.134.0 + 0.135.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-intelligence-v1p1beta1 - 0.134.0 + 0.135.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-intelligence-v1beta2 - 0.134.0 + 0.135.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-intelligence-v1 - 2.44.0 + 2.45.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-intelligence-v1p2beta1 - 0.134.0 + 0.135.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-intelligence-v1p3beta1 - 0.134.0 + 0.135.0-SNAPSHOT com.google.cloud google-cloud-video-intelligence - 2.44.0 + 2.45.0-SNAPSHOT com.google.cloud google-cloud-video-intelligence-bom - 2.44.0 + 2.45.0-SNAPSHOT diff --git a/java-video-intelligence/proto-google-cloud-video-intelligence-v1/pom.xml b/java-video-intelligence/proto-google-cloud-video-intelligence-v1/pom.xml index 877646769b33..b475cc0e74a6 100644 --- a/java-video-intelligence/proto-google-cloud-video-intelligence-v1/pom.xml +++ b/java-video-intelligence/proto-google-cloud-video-intelligence-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1 - 2.44.0 + 2.45.0-SNAPSHOT proto-google-cloud-video-intelligence-v1 PROTO library for proto-google-cloud-video-intelligence-v1 com.google.cloud google-cloud-video-intelligence-parent - 2.44.0 + 2.45.0-SNAPSHOT diff --git a/java-video-intelligence/proto-google-cloud-video-intelligence-v1beta2/pom.xml b/java-video-intelligence/proto-google-cloud-video-intelligence-v1beta2/pom.xml index f3726ec3e7bb..c9641dca82d9 100644 --- a/java-video-intelligence/proto-google-cloud-video-intelligence-v1beta2/pom.xml +++ b/java-video-intelligence/proto-google-cloud-video-intelligence-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1beta2 - 0.134.0 + 0.135.0-SNAPSHOT proto-google-cloud-video-intelligence-v1beta2 PROTO library for proto-google-cloud-video-intelligence-v1beta2 com.google.cloud google-cloud-video-intelligence-parent - 2.44.0 + 2.45.0-SNAPSHOT diff --git a/java-video-intelligence/proto-google-cloud-video-intelligence-v1p1beta1/pom.xml b/java-video-intelligence/proto-google-cloud-video-intelligence-v1p1beta1/pom.xml index 41991238f68c..842a30e66125 100644 --- a/java-video-intelligence/proto-google-cloud-video-intelligence-v1p1beta1/pom.xml +++ b/java-video-intelligence/proto-google-cloud-video-intelligence-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1p1beta1 - 0.134.0 + 0.135.0-SNAPSHOT proto-google-cloud-video-intelligence-v1p1beta1 PROTO library for proto-google-cloud-video-intelligence-v1p1beta1 com.google.cloud google-cloud-video-intelligence-parent - 2.44.0 + 2.45.0-SNAPSHOT diff --git a/java-video-intelligence/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml b/java-video-intelligence/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml index 8606fe91d2ba..e3c9a6c67d50 100644 --- a/java-video-intelligence/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml +++ b/java-video-intelligence/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1p2beta1 - 0.134.0 + 0.135.0-SNAPSHOT proto-google-cloud-video-intelligence-v1p2beta1 PROTO library for proto-google-cloud-video-intelligence-v1p2beta1 com.google.cloud google-cloud-video-intelligence-parent - 2.44.0 + 2.45.0-SNAPSHOT diff --git a/java-video-intelligence/proto-google-cloud-video-intelligence-v1p3beta1/pom.xml b/java-video-intelligence/proto-google-cloud-video-intelligence-v1p3beta1/pom.xml index 2ef25a517915..a9c9294812d6 100644 --- a/java-video-intelligence/proto-google-cloud-video-intelligence-v1p3beta1/pom.xml +++ b/java-video-intelligence/proto-google-cloud-video-intelligence-v1p3beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1p3beta1 - 0.134.0 + 0.135.0-SNAPSHOT proto-google-cloud-video-intelligence-v1p3beta1 PROTO library for proto-google-cloud-video-intelligence-v1p3beta1 com.google.cloud google-cloud-video-intelligence-parent - 2.44.0 + 2.45.0-SNAPSHOT diff --git a/java-video-live-stream/google-cloud-live-stream-bom/pom.xml b/java-video-live-stream/google-cloud-live-stream-bom/pom.xml index 8e5b6844ab10..2e20c7d3471d 100644 --- a/java-video-live-stream/google-cloud-live-stream-bom/pom.xml +++ b/java-video-live-stream/google-cloud-live-stream-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-live-stream-bom - 0.47.0 + 0.48.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-live-stream - 0.47.0 + 0.48.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-live-stream-v1 - 0.47.0 + 0.48.0-SNAPSHOT com.google.api.grpc proto-google-cloud-live-stream-v1 - 0.47.0 + 0.48.0-SNAPSHOT diff --git a/java-video-live-stream/google-cloud-live-stream/pom.xml b/java-video-live-stream/google-cloud-live-stream/pom.xml index 9f62b02358bf..74b1835bae64 100644 --- a/java-video-live-stream/google-cloud-live-stream/pom.xml +++ b/java-video-live-stream/google-cloud-live-stream/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-live-stream - 0.47.0 + 0.48.0-SNAPSHOT jar Google Cloud Live Stream Cloud Live Stream transcodes mezzanine live signals into direct-to-consumer streaming formats, including Dynamic Adaptive Streaming over HTTP (DASH/MPEG-DASH), and HTTP Live Streaming (HLS), for multiple device platforms. com.google.cloud google-cloud-live-stream-parent - 0.47.0 + 0.48.0-SNAPSHOT google-cloud-live-stream diff --git a/java-video-live-stream/grpc-google-cloud-live-stream-v1/pom.xml b/java-video-live-stream/grpc-google-cloud-live-stream-v1/pom.xml index f8c266716339..674f402f4f95 100644 --- a/java-video-live-stream/grpc-google-cloud-live-stream-v1/pom.xml +++ b/java-video-live-stream/grpc-google-cloud-live-stream-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-live-stream-v1 - 0.47.0 + 0.48.0-SNAPSHOT grpc-google-cloud-live-stream-v1 GRPC library for google-cloud-live-stream com.google.cloud google-cloud-live-stream-parent - 0.47.0 + 0.48.0-SNAPSHOT diff --git a/java-video-live-stream/pom.xml b/java-video-live-stream/pom.xml index 05e92d6c0a84..f373951139ef 100644 --- a/java-video-live-stream/pom.xml +++ b/java-video-live-stream/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-live-stream-parent pom - 0.47.0 + 0.48.0-SNAPSHOT Google Cloud Live Stream Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-live-stream - 0.47.0 + 0.48.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-live-stream-v1 - 0.47.0 + 0.48.0-SNAPSHOT com.google.api.grpc proto-google-cloud-live-stream-v1 - 0.47.0 + 0.48.0-SNAPSHOT diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/pom.xml b/java-video-live-stream/proto-google-cloud-live-stream-v1/pom.xml index c3307be09176..301dcb1b15b9 100644 --- a/java-video-live-stream/proto-google-cloud-live-stream-v1/pom.xml +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-live-stream-v1 - 0.47.0 + 0.48.0-SNAPSHOT proto-google-cloud-live-stream-v1 Proto library for google-cloud-live-stream com.google.cloud google-cloud-live-stream-parent - 0.47.0 + 0.48.0-SNAPSHOT diff --git a/java-video-stitcher/google-cloud-video-stitcher-bom/pom.xml b/java-video-stitcher/google-cloud-video-stitcher-bom/pom.xml index f2cc95f5b33b..77b0ffc27c05 100644 --- a/java-video-stitcher/google-cloud-video-stitcher-bom/pom.xml +++ b/java-video-stitcher/google-cloud-video-stitcher-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-video-stitcher-bom - 0.45.0 + 0.46.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-video-stitcher - 0.45.0 + 0.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-stitcher-v1 - 0.45.0 + 0.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-video-stitcher-v1 - 0.45.0 + 0.46.0-SNAPSHOT diff --git a/java-video-stitcher/google-cloud-video-stitcher/pom.xml b/java-video-stitcher/google-cloud-video-stitcher/pom.xml index da5b3fa1f8a5..f46034cbf173 100644 --- a/java-video-stitcher/google-cloud-video-stitcher/pom.xml +++ b/java-video-stitcher/google-cloud-video-stitcher/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-video-stitcher - 0.45.0 + 0.46.0-SNAPSHOT jar Google Video Stitcher API Video Stitcher API allows you to manipulate video content to dynamically insert ads prior to delivery to client devices. com.google.cloud google-cloud-video-stitcher-parent - 0.45.0 + 0.46.0-SNAPSHOT google-cloud-video-stitcher diff --git a/java-video-stitcher/grpc-google-cloud-video-stitcher-v1/pom.xml b/java-video-stitcher/grpc-google-cloud-video-stitcher-v1/pom.xml index d430b5606c25..974ea082e7ec 100644 --- a/java-video-stitcher/grpc-google-cloud-video-stitcher-v1/pom.xml +++ b/java-video-stitcher/grpc-google-cloud-video-stitcher-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-video-stitcher-v1 - 0.45.0 + 0.46.0-SNAPSHOT grpc-google-cloud-video-stitcher-v1 GRPC library for google-cloud-video-stitcher com.google.cloud google-cloud-video-stitcher-parent - 0.45.0 + 0.46.0-SNAPSHOT diff --git a/java-video-stitcher/pom.xml b/java-video-stitcher/pom.xml index 716e4dc1e1a3..bb1516474ebc 100644 --- a/java-video-stitcher/pom.xml +++ b/java-video-stitcher/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-video-stitcher-parent pom - 0.45.0 + 0.46.0-SNAPSHOT Google Video Stitcher API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-video-stitcher - 0.45.0 + 0.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-stitcher-v1 - 0.45.0 + 0.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-video-stitcher-v1 - 0.45.0 + 0.46.0-SNAPSHOT diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/pom.xml b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/pom.xml index eafeb83adb71..0b0b5f6df580 100644 --- a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/pom.xml +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-video-stitcher-v1 - 0.45.0 + 0.46.0-SNAPSHOT proto-google-cloud-video-stitcher-v1 Proto library for google-cloud-video-stitcher com.google.cloud google-cloud-video-stitcher-parent - 0.45.0 + 0.46.0-SNAPSHOT diff --git a/java-video-transcoder/google-cloud-video-transcoder-bom/pom.xml b/java-video-transcoder/google-cloud-video-transcoder-bom/pom.xml index dadd4ee6c6a1..d61f226d2024 100644 --- a/java-video-transcoder/google-cloud-video-transcoder-bom/pom.xml +++ b/java-video-transcoder/google-cloud-video-transcoder-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-video-transcoder-bom - 1.44.0 + 1.45.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-video-transcoder - 1.44.0 + 1.45.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-transcoder-v1 - 1.44.0 + 1.45.0-SNAPSHOT com.google.api.grpc proto-google-cloud-video-transcoder-v1 - 1.44.0 + 1.45.0-SNAPSHOT diff --git a/java-video-transcoder/google-cloud-video-transcoder/pom.xml b/java-video-transcoder/google-cloud-video-transcoder/pom.xml index 23b8cab1a8cd..8c34aa9ad5af 100644 --- a/java-video-transcoder/google-cloud-video-transcoder/pom.xml +++ b/java-video-transcoder/google-cloud-video-transcoder/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-video-transcoder - 1.44.0 + 1.45.0-SNAPSHOT jar Google Video Transcoder allows you to transcode videos into a variety of formats. The Transcoder API benefits broadcasters, production companies, businesses, and individuals looking to transform their video content for use across a variety of user devices. com.google.cloud google-cloud-video-transcoder-parent - 1.44.0 + 1.45.0-SNAPSHOT google-cloud-video-transcoder diff --git a/java-video-transcoder/grpc-google-cloud-video-transcoder-v1/pom.xml b/java-video-transcoder/grpc-google-cloud-video-transcoder-v1/pom.xml index ec41612c22c4..c534445b9ea8 100644 --- a/java-video-transcoder/grpc-google-cloud-video-transcoder-v1/pom.xml +++ b/java-video-transcoder/grpc-google-cloud-video-transcoder-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-video-transcoder-v1 - 1.44.0 + 1.45.0-SNAPSHOT grpc-google-cloud-video-transcoder-v1 GRPC library for google-cloud-video-transcoder com.google.cloud google-cloud-video-transcoder-parent - 1.44.0 + 1.45.0-SNAPSHOT diff --git a/java-video-transcoder/pom.xml b/java-video-transcoder/pom.xml index 3b359d31d8f9..79e9e562aeee 100644 --- a/java-video-transcoder/pom.xml +++ b/java-video-transcoder/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-video-transcoder-parent pom - 1.44.0 + 1.45.0-SNAPSHOT Google Video Transcoder Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-video-transcoder - 1.44.0 + 1.45.0-SNAPSHOT com.google.api.grpc proto-google-cloud-video-transcoder-v1 - 1.44.0 + 1.45.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-transcoder-v1 - 1.44.0 + 1.45.0-SNAPSHOT diff --git a/java-video-transcoder/proto-google-cloud-video-transcoder-v1/pom.xml b/java-video-transcoder/proto-google-cloud-video-transcoder-v1/pom.xml index 327daf8bf281..c3f93aaea1f8 100644 --- a/java-video-transcoder/proto-google-cloud-video-transcoder-v1/pom.xml +++ b/java-video-transcoder/proto-google-cloud-video-transcoder-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-video-transcoder-v1 - 1.44.0 + 1.45.0-SNAPSHOT proto-google-cloud-video-transcoder-v1 Proto library for google-cloud-video-transcoder com.google.cloud google-cloud-video-transcoder-parent - 1.44.0 + 1.45.0-SNAPSHOT diff --git a/java-vision/google-cloud-vision-bom/pom.xml b/java-vision/google-cloud-vision-bom/pom.xml index a47ee672ce4c..e29f93dc366a 100644 --- a/java-vision/google-cloud-vision-bom/pom.xml +++ b/java-vision/google-cloud-vision-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-vision-bom - 3.43.0 + 3.44.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -23,57 +23,57 @@ com.google.cloud google-cloud-vision - 3.43.0 + 3.44.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-vision-v1p3beta1 - 0.132.0 + 0.133.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-vision-v1p1beta1 - 0.132.0 + 0.133.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-vision-v1p4beta1 - 0.132.0 + 0.133.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-vision-v1p2beta1 - 3.43.0 + 3.44.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-vision-v1 - 3.43.0 + 3.44.0-SNAPSHOT com.google.api.grpc proto-google-cloud-vision-v1p4beta1 - 0.132.0 + 0.133.0-SNAPSHOT com.google.api.grpc proto-google-cloud-vision-v1 - 3.43.0 + 3.44.0-SNAPSHOT com.google.api.grpc proto-google-cloud-vision-v1p1beta1 - 0.132.0 + 0.133.0-SNAPSHOT com.google.api.grpc proto-google-cloud-vision-v1p3beta1 - 0.132.0 + 0.133.0-SNAPSHOT com.google.api.grpc proto-google-cloud-vision-v1p2beta1 - 3.43.0 + 3.44.0-SNAPSHOT diff --git a/java-vision/google-cloud-vision/pom.xml b/java-vision/google-cloud-vision/pom.xml index 14e308bf32c1..75b7b146e5c3 100644 --- a/java-vision/google-cloud-vision/pom.xml +++ b/java-vision/google-cloud-vision/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-vision - 3.43.0 + 3.44.0-SNAPSHOT jar Google Cloud Vision Java idiomatic client for Google Cloud Vision com.google.cloud google-cloud-vision-parent - 3.43.0 + 3.44.0-SNAPSHOT google-cloud-vision diff --git a/java-vision/grpc-google-cloud-vision-v1/pom.xml b/java-vision/grpc-google-cloud-vision-v1/pom.xml index ab764cc864cc..38dd4c4bf906 100644 --- a/java-vision/grpc-google-cloud-vision-v1/pom.xml +++ b/java-vision/grpc-google-cloud-vision-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-vision-v1 - 3.43.0 + 3.44.0-SNAPSHOT grpc-google-cloud-vision-v1 GRPC library for grpc-google-cloud-vision-v1 com.google.cloud google-cloud-vision-parent - 3.43.0 + 3.44.0-SNAPSHOT diff --git a/java-vision/grpc-google-cloud-vision-v1p1beta1/pom.xml b/java-vision/grpc-google-cloud-vision-v1p1beta1/pom.xml index 03493b5b5889..635e6e396daf 100644 --- a/java-vision/grpc-google-cloud-vision-v1p1beta1/pom.xml +++ b/java-vision/grpc-google-cloud-vision-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-vision-v1p1beta1 - 0.132.0 + 0.133.0-SNAPSHOT grpc-google-cloud-vision-v1p1beta1 GRPC library for grpc-google-cloud-vision-v1p1beta1 com.google.cloud google-cloud-vision-parent - 3.43.0 + 3.44.0-SNAPSHOT diff --git a/java-vision/grpc-google-cloud-vision-v1p2beta1/pom.xml b/java-vision/grpc-google-cloud-vision-v1p2beta1/pom.xml index 63d8f57dda03..11821398da60 100644 --- a/java-vision/grpc-google-cloud-vision-v1p2beta1/pom.xml +++ b/java-vision/grpc-google-cloud-vision-v1p2beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-vision-v1p2beta1 - 3.43.0 + 3.44.0-SNAPSHOT grpc-google-cloud-vision-v1p2beta1 GRPC library for grpc-google-cloud-vision-v1p2beta1 com.google.cloud google-cloud-vision-parent - 3.43.0 + 3.44.0-SNAPSHOT diff --git a/java-vision/grpc-google-cloud-vision-v1p3beta1/pom.xml b/java-vision/grpc-google-cloud-vision-v1p3beta1/pom.xml index 819d03bb3dbe..dcdaa7f044cc 100644 --- a/java-vision/grpc-google-cloud-vision-v1p3beta1/pom.xml +++ b/java-vision/grpc-google-cloud-vision-v1p3beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-vision-v1p3beta1 - 0.132.0 + 0.133.0-SNAPSHOT grpc-google-cloud-vision-v1p3beta1 GRPC library for grpc-google-cloud-vision-v1p3beta1 com.google.cloud google-cloud-vision-parent - 3.43.0 + 3.44.0-SNAPSHOT diff --git a/java-vision/grpc-google-cloud-vision-v1p4beta1/pom.xml b/java-vision/grpc-google-cloud-vision-v1p4beta1/pom.xml index b9edbd6c46f2..bb679d8b6482 100644 --- a/java-vision/grpc-google-cloud-vision-v1p4beta1/pom.xml +++ b/java-vision/grpc-google-cloud-vision-v1p4beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-vision-v1p4beta1 - 0.132.0 + 0.133.0-SNAPSHOT grpc-google-cloud-vision-v1p4beta1 GRPC library for grpc-google-cloud-vision-v1p4beta1 com.google.cloud google-cloud-vision-parent - 3.43.0 + 3.44.0-SNAPSHOT diff --git a/java-vision/pom.xml b/java-vision/pom.xml index 52932d023cbb..15bad0b4a20a 100644 --- a/java-vision/pom.xml +++ b/java-vision/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-vision-parent pom - 3.43.0 + 3.44.0-SNAPSHOT Google Cloud Vision Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,57 +29,57 @@ com.google.api.grpc proto-google-cloud-vision-v1p4beta1 - 0.132.0 + 0.133.0-SNAPSHOT com.google.api.grpc proto-google-cloud-vision-v1 - 3.43.0 + 3.44.0-SNAPSHOT com.google.api.grpc proto-google-cloud-vision-v1p1beta1 - 0.132.0 + 0.133.0-SNAPSHOT com.google.api.grpc proto-google-cloud-vision-v1p3beta1 - 0.132.0 + 0.133.0-SNAPSHOT com.google.api.grpc proto-google-cloud-vision-v1p2beta1 - 3.43.0 + 3.44.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-vision-v1p3beta1 - 0.132.0 + 0.133.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-vision-v1p1beta1 - 0.132.0 + 0.133.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-vision-v1p4beta1 - 0.132.0 + 0.133.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-vision-v1p2beta1 - 3.43.0 + 3.44.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-vision-v1 - 3.43.0 + 3.44.0-SNAPSHOT com.google.cloud google-cloud-vision - 3.43.0 + 3.44.0-SNAPSHOT diff --git a/java-vision/proto-google-cloud-vision-v1/pom.xml b/java-vision/proto-google-cloud-vision-v1/pom.xml index 54a257112cf4..3fd46a117e78 100644 --- a/java-vision/proto-google-cloud-vision-v1/pom.xml +++ b/java-vision/proto-google-cloud-vision-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-vision-v1 - 3.43.0 + 3.44.0-SNAPSHOT proto-google-cloud-vision-v1 PROTO library for proto-google-cloud-vision-v1 com.google.cloud google-cloud-vision-parent - 3.43.0 + 3.44.0-SNAPSHOT diff --git a/java-vision/proto-google-cloud-vision-v1p1beta1/pom.xml b/java-vision/proto-google-cloud-vision-v1p1beta1/pom.xml index 8dba7584c32a..3d897ec3444b 100644 --- a/java-vision/proto-google-cloud-vision-v1p1beta1/pom.xml +++ b/java-vision/proto-google-cloud-vision-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-vision-v1p1beta1 - 0.132.0 + 0.133.0-SNAPSHOT proto-google-cloud-vision-v1p1beta1 PROTO library for proto-google-cloud-vision-v1p1beta1 com.google.cloud google-cloud-vision-parent - 3.43.0 + 3.44.0-SNAPSHOT diff --git a/java-vision/proto-google-cloud-vision-v1p2beta1/pom.xml b/java-vision/proto-google-cloud-vision-v1p2beta1/pom.xml index 5e5ae3897fce..f5b6e89160f1 100644 --- a/java-vision/proto-google-cloud-vision-v1p2beta1/pom.xml +++ b/java-vision/proto-google-cloud-vision-v1p2beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-vision-v1p2beta1 - 3.43.0 + 3.44.0-SNAPSHOT proto-google-cloud-vision-v1p2beta1 PROTO library for proto-google-cloud-vision-v1p2beta1 com.google.cloud google-cloud-vision-parent - 3.43.0 + 3.44.0-SNAPSHOT diff --git a/java-vision/proto-google-cloud-vision-v1p3beta1/pom.xml b/java-vision/proto-google-cloud-vision-v1p3beta1/pom.xml index 3d456fbe0bc4..3fbb1e942080 100644 --- a/java-vision/proto-google-cloud-vision-v1p3beta1/pom.xml +++ b/java-vision/proto-google-cloud-vision-v1p3beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-vision-v1p3beta1 - 0.132.0 + 0.133.0-SNAPSHOT proto-google-cloud-vision-v1p3beta1 PROTO library for proto-google-cloud-vision-v1p3beta1 com.google.cloud google-cloud-vision-parent - 3.43.0 + 3.44.0-SNAPSHOT diff --git a/java-vision/proto-google-cloud-vision-v1p4beta1/pom.xml b/java-vision/proto-google-cloud-vision-v1p4beta1/pom.xml index b73d12eb5146..2e6bd36414ae 100644 --- a/java-vision/proto-google-cloud-vision-v1p4beta1/pom.xml +++ b/java-vision/proto-google-cloud-vision-v1p4beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-vision-v1p4beta1 - 0.132.0 + 0.133.0-SNAPSHOT proto-google-cloud-vision-v1p4beta1 PROTO library for proto-google-cloud-vision-v1p4beta1 com.google.cloud google-cloud-vision-parent - 3.43.0 + 3.44.0-SNAPSHOT diff --git a/java-visionai/google-cloud-visionai-bom/pom.xml b/java-visionai/google-cloud-visionai-bom/pom.xml index 4fdd8c1342c8..baf3f58275cb 100644 --- a/java-visionai/google-cloud-visionai-bom/pom.xml +++ b/java-visionai/google-cloud-visionai-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-visionai-bom - 0.2.0 + 0.3.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-visionai - 0.2.0 + 0.3.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-visionai-v1 - 0.2.0 + 0.3.0-SNAPSHOT com.google.api.grpc proto-google-cloud-visionai-v1 - 0.2.0 + 0.3.0-SNAPSHOT diff --git a/java-visionai/google-cloud-visionai/pom.xml b/java-visionai/google-cloud-visionai/pom.xml index 62d470e7c739..92465de29e8a 100644 --- a/java-visionai/google-cloud-visionai/pom.xml +++ b/java-visionai/google-cloud-visionai/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-visionai - 0.2.0 + 0.3.0-SNAPSHOT jar Google Vision AI API Vision AI API Vertex AI Vision is an AI-powered platform to ingest, analyze and store video data. com.google.cloud google-cloud-visionai-parent - 0.2.0 + 0.3.0-SNAPSHOT google-cloud-visionai diff --git a/java-visionai/grpc-google-cloud-visionai-v1/pom.xml b/java-visionai/grpc-google-cloud-visionai-v1/pom.xml index 4100f9f7be9c..c8b315a02425 100644 --- a/java-visionai/grpc-google-cloud-visionai-v1/pom.xml +++ b/java-visionai/grpc-google-cloud-visionai-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-visionai-v1 - 0.2.0 + 0.3.0-SNAPSHOT grpc-google-cloud-visionai-v1 GRPC library for google-cloud-visionai com.google.cloud google-cloud-visionai-parent - 0.2.0 + 0.3.0-SNAPSHOT diff --git a/java-visionai/pom.xml b/java-visionai/pom.xml index 0a69445a0e51..b4108128f74a 100644 --- a/java-visionai/pom.xml +++ b/java-visionai/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-visionai-parent pom - 0.2.0 + 0.3.0-SNAPSHOT Google Vision AI API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-visionai - 0.2.0 + 0.3.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-visionai-v1 - 0.2.0 + 0.3.0-SNAPSHOT com.google.api.grpc proto-google-cloud-visionai-v1 - 0.2.0 + 0.3.0-SNAPSHOT diff --git a/java-visionai/proto-google-cloud-visionai-v1/pom.xml b/java-visionai/proto-google-cloud-visionai-v1/pom.xml index 680498e99c75..3dd879f05ce1 100644 --- a/java-visionai/proto-google-cloud-visionai-v1/pom.xml +++ b/java-visionai/proto-google-cloud-visionai-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-visionai-v1 - 0.2.0 + 0.3.0-SNAPSHOT proto-google-cloud-visionai-v1 Proto library for google-cloud-visionai com.google.cloud google-cloud-visionai-parent - 0.2.0 + 0.3.0-SNAPSHOT diff --git a/java-vmmigration/google-cloud-vmmigration-bom/pom.xml b/java-vmmigration/google-cloud-vmmigration-bom/pom.xml index 530abe50c669..dc2396ef9726 100644 --- a/java-vmmigration/google-cloud-vmmigration-bom/pom.xml +++ b/java-vmmigration/google-cloud-vmmigration-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-vmmigration-bom - 1.45.0 + 1.46.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-vmmigration - 1.45.0 + 1.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-vmmigration-v1 - 1.45.0 + 1.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-vmmigration-v1 - 1.45.0 + 1.46.0-SNAPSHOT diff --git a/java-vmmigration/google-cloud-vmmigration/pom.xml b/java-vmmigration/google-cloud-vmmigration/pom.xml index 6dd38ceed982..85d9dbb9e02b 100644 --- a/java-vmmigration/google-cloud-vmmigration/pom.xml +++ b/java-vmmigration/google-cloud-vmmigration/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-vmmigration - 1.45.0 + 1.46.0-SNAPSHOT jar Google VM Migration VM Migration helps customers migrating VMs to GCP at no additional cost, as well as an extensive ecosystem of partners to help with discovery and assessment, planning, migration, special use cases, and more. com.google.cloud google-cloud-vmmigration-parent - 1.45.0 + 1.46.0-SNAPSHOT google-cloud-vmmigration diff --git a/java-vmmigration/grpc-google-cloud-vmmigration-v1/pom.xml b/java-vmmigration/grpc-google-cloud-vmmigration-v1/pom.xml index 288f7108503c..43a28fff715e 100644 --- a/java-vmmigration/grpc-google-cloud-vmmigration-v1/pom.xml +++ b/java-vmmigration/grpc-google-cloud-vmmigration-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-vmmigration-v1 - 1.45.0 + 1.46.0-SNAPSHOT grpc-google-cloud-vmmigration-v1 GRPC library for google-cloud-vmmigration com.google.cloud google-cloud-vmmigration-parent - 1.45.0 + 1.46.0-SNAPSHOT diff --git a/java-vmmigration/pom.xml b/java-vmmigration/pom.xml index ca984d6925b3..689b0d40fff8 100644 --- a/java-vmmigration/pom.xml +++ b/java-vmmigration/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-vmmigration-parent pom - 1.45.0 + 1.46.0-SNAPSHOT Google VM Migration Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-vmmigration - 1.45.0 + 1.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-vmmigration-v1 - 1.45.0 + 1.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-vmmigration-v1 - 1.45.0 + 1.46.0-SNAPSHOT diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/pom.xml b/java-vmmigration/proto-google-cloud-vmmigration-v1/pom.xml index 7d63b0fe8960..4ee8299159f7 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/pom.xml +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-vmmigration-v1 - 1.45.0 + 1.46.0-SNAPSHOT proto-google-cloud-vmmigration-v1 Proto library for google-cloud-vmmigration com.google.cloud google-cloud-vmmigration-parent - 1.45.0 + 1.46.0-SNAPSHOT diff --git a/java-vmwareengine/google-cloud-vmwareengine-bom/pom.xml b/java-vmwareengine/google-cloud-vmwareengine-bom/pom.xml index 7aa7c0377666..889aec0958f6 100644 --- a/java-vmwareengine/google-cloud-vmwareengine-bom/pom.xml +++ b/java-vmwareengine/google-cloud-vmwareengine-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-vmwareengine-bom - 0.39.0 + 0.40.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-vmwareengine - 0.39.0 + 0.40.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-vmwareengine-v1 - 0.39.0 + 0.40.0-SNAPSHOT com.google.api.grpc proto-google-cloud-vmwareengine-v1 - 0.39.0 + 0.40.0-SNAPSHOT diff --git a/java-vmwareengine/google-cloud-vmwareengine/pom.xml b/java-vmwareengine/google-cloud-vmwareengine/pom.xml index d5d57f1c90b9..4cfaa05573f1 100644 --- a/java-vmwareengine/google-cloud-vmwareengine/pom.xml +++ b/java-vmwareengine/google-cloud-vmwareengine/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-vmwareengine - 0.39.0 + 0.40.0-SNAPSHOT jar Google Google Cloud VMware Engine Google Cloud VMware Engine Easily lift and shift your VMware-based applications to Google Cloud without changes to your apps, tools, or processes. com.google.cloud google-cloud-vmwareengine-parent - 0.39.0 + 0.40.0-SNAPSHOT google-cloud-vmwareengine diff --git a/java-vmwareengine/grpc-google-cloud-vmwareengine-v1/pom.xml b/java-vmwareengine/grpc-google-cloud-vmwareengine-v1/pom.xml index db850258806e..ac1e85fd0887 100644 --- a/java-vmwareengine/grpc-google-cloud-vmwareengine-v1/pom.xml +++ b/java-vmwareengine/grpc-google-cloud-vmwareengine-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-vmwareengine-v1 - 0.39.0 + 0.40.0-SNAPSHOT grpc-google-cloud-vmwareengine-v1 GRPC library for google-cloud-vmwareengine com.google.cloud google-cloud-vmwareengine-parent - 0.39.0 + 0.40.0-SNAPSHOT diff --git a/java-vmwareengine/pom.xml b/java-vmwareengine/pom.xml index fa679c90301f..c948788c2eb0 100644 --- a/java-vmwareengine/pom.xml +++ b/java-vmwareengine/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-vmwareengine-parent pom - 0.39.0 + 0.40.0-SNAPSHOT Google Google Cloud VMware Engine Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-vmwareengine - 0.39.0 + 0.40.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-vmwareengine-v1 - 0.39.0 + 0.40.0-SNAPSHOT com.google.api.grpc proto-google-cloud-vmwareengine-v1 - 0.39.0 + 0.40.0-SNAPSHOT diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/pom.xml b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/pom.xml index 00ff3ab801a2..c9e7c6e30f62 100644 --- a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/pom.xml +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-vmwareengine-v1 - 0.39.0 + 0.40.0-SNAPSHOT proto-google-cloud-vmwareengine-v1 Proto library for google-cloud-vmwareengine com.google.cloud google-cloud-vmwareengine-parent - 0.39.0 + 0.40.0-SNAPSHOT diff --git a/java-vpcaccess/google-cloud-vpcaccess-bom/pom.xml b/java-vpcaccess/google-cloud-vpcaccess-bom/pom.xml index cf1ad966183e..1c03425b5fb7 100644 --- a/java-vpcaccess/google-cloud-vpcaccess-bom/pom.xml +++ b/java-vpcaccess/google-cloud-vpcaccess-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-vpcaccess-bom - 2.46.0 + 2.47.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-vpcaccess - 2.46.0 + 2.47.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-vpcaccess-v1 - 2.46.0 + 2.47.0-SNAPSHOT com.google.api.grpc proto-google-cloud-vpcaccess-v1 - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-vpcaccess/google-cloud-vpcaccess/pom.xml b/java-vpcaccess/google-cloud-vpcaccess/pom.xml index 9abd81a1c972..d2a7bb981d49 100644 --- a/java-vpcaccess/google-cloud-vpcaccess/pom.xml +++ b/java-vpcaccess/google-cloud-vpcaccess/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-vpcaccess - 2.46.0 + 2.47.0-SNAPSHOT jar Google Serverless VPC Access Serverless VPC Access enables you to connect from a serverless environment on Google Cloud directly to your VPC network. This connection makes it possible for your serverless environment to access resources in your VPC network via internal IP addresses. com.google.cloud google-cloud-vpcaccess-parent - 2.46.0 + 2.47.0-SNAPSHOT google-cloud-vpcaccess diff --git a/java-vpcaccess/grpc-google-cloud-vpcaccess-v1/pom.xml b/java-vpcaccess/grpc-google-cloud-vpcaccess-v1/pom.xml index a12d1a4e17ad..5e9cffed0556 100644 --- a/java-vpcaccess/grpc-google-cloud-vpcaccess-v1/pom.xml +++ b/java-vpcaccess/grpc-google-cloud-vpcaccess-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-vpcaccess-v1 - 2.46.0 + 2.47.0-SNAPSHOT grpc-google-cloud-vpcaccess-v1 GRPC library for google-cloud-vpcaccess com.google.cloud google-cloud-vpcaccess-parent - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-vpcaccess/pom.xml b/java-vpcaccess/pom.xml index eb7df50b6fc0..e4044f3afcdf 100644 --- a/java-vpcaccess/pom.xml +++ b/java-vpcaccess/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-vpcaccess-parent pom - 2.46.0 + 2.47.0-SNAPSHOT Google Serverless VPC Access Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-vpcaccess - 2.46.0 + 2.47.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-vpcaccess-v1 - 2.46.0 + 2.47.0-SNAPSHOT com.google.api.grpc proto-google-cloud-vpcaccess-v1 - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-vpcaccess/proto-google-cloud-vpcaccess-v1/pom.xml b/java-vpcaccess/proto-google-cloud-vpcaccess-v1/pom.xml index 936ac9dcb468..08f1dd9da642 100644 --- a/java-vpcaccess/proto-google-cloud-vpcaccess-v1/pom.xml +++ b/java-vpcaccess/proto-google-cloud-vpcaccess-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-vpcaccess-v1 - 2.46.0 + 2.47.0-SNAPSHOT proto-google-cloud-vpcaccess-v1 Proto library for google-cloud-vpcaccess com.google.cloud google-cloud-vpcaccess-parent - 2.46.0 + 2.47.0-SNAPSHOT diff --git a/java-webrisk/google-cloud-webrisk-bom/pom.xml b/java-webrisk/google-cloud-webrisk-bom/pom.xml index 9adc0f101c74..2ae93bc47ac5 100644 --- a/java-webrisk/google-cloud-webrisk-bom/pom.xml +++ b/java-webrisk/google-cloud-webrisk-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-webrisk-bom - 2.44.0 + 2.45.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-webrisk - 2.44.0 + 2.45.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-webrisk-v1 - 2.44.0 + 2.45.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-webrisk-v1beta1 - 0.81.0 + 0.82.0-SNAPSHOT com.google.api.grpc proto-google-cloud-webrisk-v1 - 2.44.0 + 2.45.0-SNAPSHOT com.google.api.grpc proto-google-cloud-webrisk-v1beta1 - 0.81.0 + 0.82.0-SNAPSHOT diff --git a/java-webrisk/google-cloud-webrisk/pom.xml b/java-webrisk/google-cloud-webrisk/pom.xml index bb9478418914..3461a2f9c616 100644 --- a/java-webrisk/google-cloud-webrisk/pom.xml +++ b/java-webrisk/google-cloud-webrisk/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-webrisk - 2.44.0 + 2.45.0-SNAPSHOT jar Google Cloud Web Risk Java idiomatic client for Google Cloud Web Risk com.google.cloud google-cloud-webrisk-parent - 2.44.0 + 2.45.0-SNAPSHOT google-cloud-webrisk diff --git a/java-webrisk/grpc-google-cloud-webrisk-v1/pom.xml b/java-webrisk/grpc-google-cloud-webrisk-v1/pom.xml index fe49e1bba7b5..5a689b97d1b8 100644 --- a/java-webrisk/grpc-google-cloud-webrisk-v1/pom.xml +++ b/java-webrisk/grpc-google-cloud-webrisk-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-webrisk-v1 - 2.44.0 + 2.45.0-SNAPSHOT grpc-google-cloud-webrisk-v1 GRPC library for grpc-google-cloud-webrisk-v1 com.google.cloud google-cloud-webrisk-parent - 2.44.0 + 2.45.0-SNAPSHOT diff --git a/java-webrisk/grpc-google-cloud-webrisk-v1beta1/pom.xml b/java-webrisk/grpc-google-cloud-webrisk-v1beta1/pom.xml index fda44fd8a9d1..77c8766742c4 100644 --- a/java-webrisk/grpc-google-cloud-webrisk-v1beta1/pom.xml +++ b/java-webrisk/grpc-google-cloud-webrisk-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-webrisk-v1beta1 - 0.81.0 + 0.82.0-SNAPSHOT grpc-google-cloud-webrisk-v1beta1 GRPC library for grpc-google-cloud-webrisk-v1beta1 com.google.cloud google-cloud-webrisk-parent - 2.44.0 + 2.45.0-SNAPSHOT diff --git a/java-webrisk/pom.xml b/java-webrisk/pom.xml index 216f5786d430..196860535ffa 100644 --- a/java-webrisk/pom.xml +++ b/java-webrisk/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-webrisk-parent pom - 2.44.0 + 2.45.0-SNAPSHOT Google Cloud Web Risk Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-webrisk-v1 - 2.44.0 + 2.45.0-SNAPSHOT com.google.api.grpc proto-google-cloud-webrisk-v1beta1 - 0.81.0 + 0.82.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-webrisk-v1 - 2.44.0 + 2.45.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-webrisk-v1beta1 - 0.81.0 + 0.82.0-SNAPSHOT com.google.cloud google-cloud-webrisk - 2.44.0 + 2.45.0-SNAPSHOT diff --git a/java-webrisk/proto-google-cloud-webrisk-v1/pom.xml b/java-webrisk/proto-google-cloud-webrisk-v1/pom.xml index e153082b75c3..6389356b19e2 100644 --- a/java-webrisk/proto-google-cloud-webrisk-v1/pom.xml +++ b/java-webrisk/proto-google-cloud-webrisk-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-webrisk-v1 - 2.44.0 + 2.45.0-SNAPSHOT proto-google-cloud-webrisk-v1 PROTO library for proto-google-cloud-webrisk-v1 com.google.cloud google-cloud-webrisk-parent - 2.44.0 + 2.45.0-SNAPSHOT diff --git a/java-webrisk/proto-google-cloud-webrisk-v1beta1/pom.xml b/java-webrisk/proto-google-cloud-webrisk-v1beta1/pom.xml index 4a9a58450702..454d182757c5 100644 --- a/java-webrisk/proto-google-cloud-webrisk-v1beta1/pom.xml +++ b/java-webrisk/proto-google-cloud-webrisk-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-webrisk-v1beta1 - 0.81.0 + 0.82.0-SNAPSHOT proto-google-cloud-webrisk-v1beta1 PROTO library for proto-google-cloud-webrisk-v1beta1 com.google.cloud google-cloud-webrisk-parent - 2.44.0 + 2.45.0-SNAPSHOT diff --git a/java-websecurityscanner/google-cloud-websecurityscanner-bom/pom.xml b/java-websecurityscanner/google-cloud-websecurityscanner-bom/pom.xml index 1210896a90b9..0ab8d52fde97 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner-bom/pom.xml +++ b/java-websecurityscanner/google-cloud-websecurityscanner-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-websecurityscanner-bom - 2.45.0 + 2.46.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -23,37 +23,37 @@ com.google.cloud google-cloud-websecurityscanner - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-websecurityscanner-v1alpha - 0.132.0 + 0.133.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-websecurityscanner-v1beta - 0.132.0 + 0.133.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-websecurityscanner-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-websecurityscanner-v1alpha - 0.132.0 + 0.133.0-SNAPSHOT com.google.api.grpc proto-google-cloud-websecurityscanner-v1beta - 0.132.0 + 0.133.0-SNAPSHOT com.google.api.grpc proto-google-cloud-websecurityscanner-v1 - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/pom.xml b/java-websecurityscanner/google-cloud-websecurityscanner/pom.xml index ae103792bbd5..0ee69d0d2766 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner/pom.xml +++ b/java-websecurityscanner/google-cloud-websecurityscanner/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-websecurityscanner - 2.45.0 + 2.46.0-SNAPSHOT jar Google Cloud Web Security Scanner Java idiomatic client for Google Cloud Web Security Scanner com.google.cloud google-cloud-websecurityscanner-parent - 2.45.0 + 2.46.0-SNAPSHOT google-cloud-websecurityscanner diff --git a/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1/pom.xml b/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1/pom.xml index c8a5c0524c54..12d74ccc4c23 100644 --- a/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1/pom.xml +++ b/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1 - 2.45.0 + 2.46.0-SNAPSHOT grpc-google-cloud-websecurityscanner-v1 GRPC library for grpc-google-cloud-websecurityscanner-v1 com.google.cloud google-cloud-websecurityscanner-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml b/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml index fd6c589ed8c0..93ace7c6493c 100644 --- a/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml +++ b/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1alpha - 0.132.0 + 0.133.0-SNAPSHOT grpc-google-cloud-websecurityscanner-v1alpha GRPC library for grpc-google-cloud-websecurityscanner-v1alpha com.google.cloud google-cloud-websecurityscanner-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1beta/pom.xml b/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1beta/pom.xml index d30540f3d4f8..12f4ca86d456 100644 --- a/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1beta/pom.xml +++ b/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1beta - 0.132.0 + 0.133.0-SNAPSHOT grpc-google-cloud-websecurityscanner-v1beta GRPC library for grpc-google-cloud-websecurityscanner-v1beta com.google.cloud google-cloud-websecurityscanner-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-websecurityscanner/pom.xml b/java-websecurityscanner/pom.xml index 893a901c83d2..793967996a97 100644 --- a/java-websecurityscanner/pom.xml +++ b/java-websecurityscanner/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-websecurityscanner-parent pom - 2.45.0 + 2.46.0-SNAPSHOT Google Cloud Web Security Scanner Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.api.grpc proto-google-cloud-websecurityscanner-v1alpha - 0.132.0 + 0.133.0-SNAPSHOT com.google.api.grpc proto-google-cloud-websecurityscanner-v1beta - 0.132.0 + 0.133.0-SNAPSHOT com.google.api.grpc proto-google-cloud-websecurityscanner-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-websecurityscanner-v1alpha - 0.132.0 + 0.133.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-websecurityscanner-v1beta - 0.132.0 + 0.133.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-websecurityscanner-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.cloud google-cloud-websecurityscanner - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/pom.xml b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/pom.xml index b0ece828b1a5..4962089e4ac4 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/pom.xml +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1 - 2.45.0 + 2.46.0-SNAPSHOT proto-google-cloud-websecurityscanner-v1 PROTO library for proto-google-cloud-websecurityscanner-v1 com.google.cloud google-cloud-websecurityscanner-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/pom.xml b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/pom.xml index 53a9f8c6102d..a4d85374cec7 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/pom.xml +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1alpha - 0.132.0 + 0.133.0-SNAPSHOT proto-google-cloud-websecurityscanner-v1alpha PROTO library for proto-google-cloud-websecurityscanner-v1alpha com.google.cloud google-cloud-websecurityscanner-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/pom.xml b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/pom.xml index 17bc551d6324..1b2e63a9f624 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/pom.xml +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1beta - 0.132.0 + 0.133.0-SNAPSHOT proto-google-cloud-websecurityscanner-v1beta PROTO library for proto-google-cloud-websecurityscanner-v1beta com.google.cloud google-cloud-websecurityscanner-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-workflow-executions/google-cloud-workflow-executions-bom/pom.xml b/java-workflow-executions/google-cloud-workflow-executions-bom/pom.xml index 66115ade9cd3..ee2ca66af23d 100644 --- a/java-workflow-executions/google-cloud-workflow-executions-bom/pom.xml +++ b/java-workflow-executions/google-cloud-workflow-executions-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-workflow-executions-bom - 2.45.0 + 2.46.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-workflow-executions - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-workflow-executions-v1beta - 0.49.0 + 0.50.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-workflow-executions-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-workflow-executions-v1beta - 0.49.0 + 0.50.0-SNAPSHOT com.google.api.grpc proto-google-cloud-workflow-executions-v1 - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-workflow-executions/google-cloud-workflow-executions/pom.xml b/java-workflow-executions/google-cloud-workflow-executions/pom.xml index 6ab1e972849c..f48203948609 100644 --- a/java-workflow-executions/google-cloud-workflow-executions/pom.xml +++ b/java-workflow-executions/google-cloud-workflow-executions/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-workflow-executions - 2.45.0 + 2.46.0-SNAPSHOT jar Google Cloud Workflow Executions allows you to ochestrate and automate Google Cloud and HTTP-based API services with serverless workflows. com.google.cloud google-cloud-workflow-executions-parent - 2.45.0 + 2.46.0-SNAPSHOT google-cloud-workflow-executions diff --git a/java-workflow-executions/grpc-google-cloud-workflow-executions-v1/pom.xml b/java-workflow-executions/grpc-google-cloud-workflow-executions-v1/pom.xml index 21cf01182c09..b8844767f0ad 100644 --- a/java-workflow-executions/grpc-google-cloud-workflow-executions-v1/pom.xml +++ b/java-workflow-executions/grpc-google-cloud-workflow-executions-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-workflow-executions-v1 - 2.45.0 + 2.46.0-SNAPSHOT grpc-google-cloud-workflow-executions-v1 GRPC library for google-cloud-workflow-executions com.google.cloud google-cloud-workflow-executions-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-workflow-executions/grpc-google-cloud-workflow-executions-v1beta/pom.xml b/java-workflow-executions/grpc-google-cloud-workflow-executions-v1beta/pom.xml index be066f8704f7..c7b9d8e4e7a1 100644 --- a/java-workflow-executions/grpc-google-cloud-workflow-executions-v1beta/pom.xml +++ b/java-workflow-executions/grpc-google-cloud-workflow-executions-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-workflow-executions-v1beta - 0.49.0 + 0.50.0-SNAPSHOT grpc-google-cloud-workflow-executions-v1beta GRPC library for google-cloud-workflow-executions com.google.cloud google-cloud-workflow-executions-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-workflow-executions/pom.xml b/java-workflow-executions/pom.xml index 680e0f978080..333cb3814948 100644 --- a/java-workflow-executions/pom.xml +++ b/java-workflow-executions/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-workflow-executions-parent pom - 2.45.0 + 2.46.0-SNAPSHOT Google Cloud Workflow Executions Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-workflow-executions - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-workflow-executions-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-workflow-executions-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-workflow-executions-v1beta - 0.49.0 + 0.50.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-workflow-executions-v1beta - 0.49.0 + 0.50.0-SNAPSHOT diff --git a/java-workflow-executions/proto-google-cloud-workflow-executions-v1/pom.xml b/java-workflow-executions/proto-google-cloud-workflow-executions-v1/pom.xml index c5edfff7b4a8..4dfd20d78e38 100644 --- a/java-workflow-executions/proto-google-cloud-workflow-executions-v1/pom.xml +++ b/java-workflow-executions/proto-google-cloud-workflow-executions-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-workflow-executions-v1 - 2.45.0 + 2.46.0-SNAPSHOT proto-google-cloud-workflow-executions-v1 Proto library for google-cloud-workflow-executions com.google.cloud google-cloud-workflow-executions-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/pom.xml b/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/pom.xml index fb15be1c2f7a..5c737a403a66 100644 --- a/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/pom.xml +++ b/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-workflow-executions-v1beta - 0.49.0 + 0.50.0-SNAPSHOT proto-google-cloud-workflow-executions-v1beta Proto library for google-cloud-workflow-executions com.google.cloud google-cloud-workflow-executions-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-workflows/google-cloud-workflows-bom/pom.xml b/java-workflows/google-cloud-workflows-bom/pom.xml index 1296c7cc5792..b2c1c1c46e6d 100644 --- a/java-workflows/google-cloud-workflows-bom/pom.xml +++ b/java-workflows/google-cloud-workflows-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-workflows-bom - 2.45.0 + 2.46.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-workflows - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-workflows-v1beta - 0.51.0 + 0.52.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-workflows-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-workflows-v1beta - 0.51.0 + 0.52.0-SNAPSHOT com.google.api.grpc proto-google-cloud-workflows-v1 - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-workflows/google-cloud-workflows/pom.xml b/java-workflows/google-cloud-workflows/pom.xml index f10b6b1733bb..cd2be281ce13 100644 --- a/java-workflows/google-cloud-workflows/pom.xml +++ b/java-workflows/google-cloud-workflows/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-workflows - 2.45.0 + 2.46.0-SNAPSHOT jar Google Cloud Workflows allows you to ochestrate and automate Google Cloud and HTTP-based API services with serverless workflows. com.google.cloud google-cloud-workflows-parent - 2.45.0 + 2.46.0-SNAPSHOT google-cloud-workflows diff --git a/java-workflows/grpc-google-cloud-workflows-v1/pom.xml b/java-workflows/grpc-google-cloud-workflows-v1/pom.xml index 623bb07ff5c1..cecccc5a4a9a 100644 --- a/java-workflows/grpc-google-cloud-workflows-v1/pom.xml +++ b/java-workflows/grpc-google-cloud-workflows-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-workflows-v1 - 2.45.0 + 2.46.0-SNAPSHOT grpc-google-cloud-workflows-v1 GRPC library for google-cloud-workflows com.google.cloud google-cloud-workflows-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-workflows/grpc-google-cloud-workflows-v1beta/pom.xml b/java-workflows/grpc-google-cloud-workflows-v1beta/pom.xml index dee2e3a7a0e1..22f736a4344c 100644 --- a/java-workflows/grpc-google-cloud-workflows-v1beta/pom.xml +++ b/java-workflows/grpc-google-cloud-workflows-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-workflows-v1beta - 0.51.0 + 0.52.0-SNAPSHOT grpc-google-cloud-workflows-v1beta GRPC library for google-cloud-workflows com.google.cloud google-cloud-workflows-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-workflows/pom.xml b/java-workflows/pom.xml index 325776e45593..d387aa6240ad 100644 --- a/java-workflows/pom.xml +++ b/java-workflows/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-workflows-parent pom - 2.45.0 + 2.46.0-SNAPSHOT Google Cloud Workflows Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-workflows - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-workflows-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-workflows-v1 - 2.45.0 + 2.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-workflows-v1beta - 0.51.0 + 0.52.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-workflows-v1beta - 0.51.0 + 0.52.0-SNAPSHOT diff --git a/java-workflows/proto-google-cloud-workflows-v1/pom.xml b/java-workflows/proto-google-cloud-workflows-v1/pom.xml index 93dfcfb31b3f..bbe16e6fc682 100644 --- a/java-workflows/proto-google-cloud-workflows-v1/pom.xml +++ b/java-workflows/proto-google-cloud-workflows-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-workflows-v1 - 2.45.0 + 2.46.0-SNAPSHOT proto-google-cloud-workflows-v1 Proto library for google-cloud-workflows com.google.cloud google-cloud-workflows-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-workflows/proto-google-cloud-workflows-v1beta/pom.xml b/java-workflows/proto-google-cloud-workflows-v1beta/pom.xml index 1f7b570dfb59..8a66dc8aae25 100644 --- a/java-workflows/proto-google-cloud-workflows-v1beta/pom.xml +++ b/java-workflows/proto-google-cloud-workflows-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-workflows-v1beta - 0.51.0 + 0.52.0-SNAPSHOT proto-google-cloud-workflows-v1beta Proto library for google-cloud-workflows com.google.cloud google-cloud-workflows-parent - 2.45.0 + 2.46.0-SNAPSHOT diff --git a/java-workspaceevents/google-cloud-workspaceevents-bom/pom.xml b/java-workspaceevents/google-cloud-workspaceevents-bom/pom.xml index 95ed111ecd2d..622b77644a6a 100644 --- a/java-workspaceevents/google-cloud-workspaceevents-bom/pom.xml +++ b/java-workspaceevents/google-cloud-workspaceevents-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-workspaceevents-bom - 0.9.0 + 0.10.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-workspaceevents - 0.9.0 + 0.10.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-workspaceevents-v1 - 0.9.0 + 0.10.0-SNAPSHOT com.google.api.grpc proto-google-cloud-workspaceevents-v1 - 0.9.0 + 0.10.0-SNAPSHOT diff --git a/java-workspaceevents/google-cloud-workspaceevents/pom.xml b/java-workspaceevents/google-cloud-workspaceevents/pom.xml index aa71f204ab27..56e00b71e86e 100644 --- a/java-workspaceevents/google-cloud-workspaceevents/pom.xml +++ b/java-workspaceevents/google-cloud-workspaceevents/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-workspaceevents - 0.9.0 + 0.10.0-SNAPSHOT jar Google Google Workspace Events API Google Workspace Events API The Google Workspace Events API lets you subscribe to events and manage change notifications across Google Workspace applications. com.google.cloud google-cloud-workspaceevents-parent - 0.9.0 + 0.10.0-SNAPSHOT google-cloud-workspaceevents diff --git a/java-workspaceevents/grpc-google-cloud-workspaceevents-v1/pom.xml b/java-workspaceevents/grpc-google-cloud-workspaceevents-v1/pom.xml index 6c45a1b5ff9f..c1e6ae4e7169 100644 --- a/java-workspaceevents/grpc-google-cloud-workspaceevents-v1/pom.xml +++ b/java-workspaceevents/grpc-google-cloud-workspaceevents-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-workspaceevents-v1 - 0.9.0 + 0.10.0-SNAPSHOT grpc-google-cloud-workspaceevents-v1 GRPC library for google-cloud-workspaceevents com.google.cloud google-cloud-workspaceevents-parent - 0.9.0 + 0.10.0-SNAPSHOT diff --git a/java-workspaceevents/pom.xml b/java-workspaceevents/pom.xml index b3d0df60b07c..094cde57e487 100644 --- a/java-workspaceevents/pom.xml +++ b/java-workspaceevents/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-workspaceevents-parent pom - 0.9.0 + 0.10.0-SNAPSHOT Google Google Workspace Events API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-workspaceevents - 0.9.0 + 0.10.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-workspaceevents-v1 - 0.9.0 + 0.10.0-SNAPSHOT com.google.api.grpc proto-google-cloud-workspaceevents-v1 - 0.9.0 + 0.10.0-SNAPSHOT diff --git a/java-workspaceevents/proto-google-cloud-workspaceevents-v1/pom.xml b/java-workspaceevents/proto-google-cloud-workspaceevents-v1/pom.xml index b5dd0410eb20..0fe6b2f344a2 100644 --- a/java-workspaceevents/proto-google-cloud-workspaceevents-v1/pom.xml +++ b/java-workspaceevents/proto-google-cloud-workspaceevents-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-workspaceevents-v1 - 0.9.0 + 0.10.0-SNAPSHOT proto-google-cloud-workspaceevents-v1 Proto library for google-cloud-workspaceevents com.google.cloud google-cloud-workspaceevents-parent - 0.9.0 + 0.10.0-SNAPSHOT diff --git a/java-workstations/google-cloud-workstations-bom/pom.xml b/java-workstations/google-cloud-workstations-bom/pom.xml index c53f3ec98fcf..dac0e4b58ec8 100644 --- a/java-workstations/google-cloud-workstations-bom/pom.xml +++ b/java-workstations/google-cloud-workstations-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-workstations-bom - 0.33.0 + 0.34.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.39.0 + 1.40.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-workstations - 0.33.0 + 0.34.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-workstations-v1beta - 0.33.0 + 0.34.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-workstations-v1 - 0.33.0 + 0.34.0-SNAPSHOT com.google.api.grpc proto-google-cloud-workstations-v1beta - 0.33.0 + 0.34.0-SNAPSHOT com.google.api.grpc proto-google-cloud-workstations-v1 - 0.33.0 + 0.34.0-SNAPSHOT diff --git a/java-workstations/google-cloud-workstations/pom.xml b/java-workstations/google-cloud-workstations/pom.xml index 3157bcd6f8bd..ae7e42bcec76 100644 --- a/java-workstations/google-cloud-workstations/pom.xml +++ b/java-workstations/google-cloud-workstations/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-workstations - 0.33.0 + 0.34.0-SNAPSHOT jar Google Cloud Workstations Cloud Workstations Fully managed development environments built to meet the needs of security-sensitive enterprises. It enhances the security of development environments while accelerating developer onboarding and productivity. com.google.cloud google-cloud-workstations-parent - 0.33.0 + 0.34.0-SNAPSHOT google-cloud-workstations diff --git a/java-workstations/grpc-google-cloud-workstations-v1/pom.xml b/java-workstations/grpc-google-cloud-workstations-v1/pom.xml index e130a6f414ef..42ccb6606a91 100644 --- a/java-workstations/grpc-google-cloud-workstations-v1/pom.xml +++ b/java-workstations/grpc-google-cloud-workstations-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-workstations-v1 - 0.33.0 + 0.34.0-SNAPSHOT grpc-google-cloud-workstations-v1 GRPC library for google-cloud-workstations com.google.cloud google-cloud-workstations-parent - 0.33.0 + 0.34.0-SNAPSHOT diff --git a/java-workstations/grpc-google-cloud-workstations-v1beta/pom.xml b/java-workstations/grpc-google-cloud-workstations-v1beta/pom.xml index 9b2a6f98ca40..a68f907b00eb 100644 --- a/java-workstations/grpc-google-cloud-workstations-v1beta/pom.xml +++ b/java-workstations/grpc-google-cloud-workstations-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-workstations-v1beta - 0.33.0 + 0.34.0-SNAPSHOT grpc-google-cloud-workstations-v1beta GRPC library for google-cloud-workstations com.google.cloud google-cloud-workstations-parent - 0.33.0 + 0.34.0-SNAPSHOT diff --git a/java-workstations/pom.xml b/java-workstations/pom.xml index 09350cab004d..353b4f9c88d8 100644 --- a/java-workstations/pom.xml +++ b/java-workstations/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-workstations-parent pom - 0.33.0 + 0.34.0-SNAPSHOT Google Cloud Workstations Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.39.0 + 1.40.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-workstations - 0.33.0 + 0.34.0-SNAPSHOT com.google.api.grpc proto-google-cloud-workstations-v1 - 0.33.0 + 0.34.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-workstations-v1 - 0.33.0 + 0.34.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-workstations-v1beta - 0.33.0 + 0.34.0-SNAPSHOT com.google.api.grpc proto-google-cloud-workstations-v1beta - 0.33.0 + 0.34.0-SNAPSHOT diff --git a/java-workstations/proto-google-cloud-workstations-v1/pom.xml b/java-workstations/proto-google-cloud-workstations-v1/pom.xml index 49c7e95a9e17..ce05e91fe581 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/pom.xml +++ b/java-workstations/proto-google-cloud-workstations-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-workstations-v1 - 0.33.0 + 0.34.0-SNAPSHOT proto-google-cloud-workstations-v1 Proto library for google-cloud-workstations com.google.cloud google-cloud-workstations-parent - 0.33.0 + 0.34.0-SNAPSHOT diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/pom.xml b/java-workstations/proto-google-cloud-workstations-v1beta/pom.xml index 0901ecd5cda0..b23e1aa1a154 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/pom.xml +++ b/java-workstations/proto-google-cloud-workstations-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-workstations-v1beta - 0.33.0 + 0.34.0-SNAPSHOT proto-google-cloud-workstations-v1beta Proto library for google-cloud-workstations com.google.cloud google-cloud-workstations-parent - 0.33.0 + 0.34.0-SNAPSHOT diff --git a/versions.txt b/versions.txt index ab8486444735..77567948fd30 100644 --- a/versions.txt +++ b/versions.txt @@ -1,799 +1,799 @@ # Format: # module:released-version:current-version -google-cloud-java:1.39.0:1.39.0 -google-cloud-accessapproval:2.46.0:2.46.0 -grpc-google-cloud-accessapproval-v1:2.46.0:2.46.0 -proto-google-cloud-accessapproval-v1:2.46.0:2.46.0 -google-identity-accesscontextmanager:1.46.0:1.46.0 -grpc-google-identity-accesscontextmanager-v1:1.46.0:1.46.0 -proto-google-identity-accesscontextmanager-v1:1.46.0:1.46.0 -proto-google-identity-accesscontextmanager-type:1.46.0:1.46.0 -google-cloud-aiplatform:3.46.0:3.46.0 -grpc-google-cloud-aiplatform-v1:3.46.0:3.46.0 -grpc-google-cloud-aiplatform-v1beta1:0.62.0:0.62.0 -proto-google-cloud-aiplatform-v1:3.46.0:3.46.0 -proto-google-cloud-aiplatform-v1beta1:0.62.0:0.62.0 -google-analytics-admin:0.55.0:0.55.0 -grpc-google-analytics-admin-v1alpha:0.55.0:0.55.0 -proto-google-analytics-admin-v1alpha:0.55.0:0.55.0 -proto-google-analytics-admin-v1beta:0.55.0:0.55.0 -grpc-google-analytics-admin-v1beta:0.55.0:0.55.0 -google-analytics-data:0.56.0:0.56.0 -grpc-google-analytics-data-v1beta:0.56.0:0.56.0 -proto-google-analytics-data-v1beta:0.56.0:0.56.0 -proto-google-analytics-data-v1alpha:0.56.0:0.56.0 -grpc-google-analytics-data-v1alpha:0.56.0:0.56.0 -google-cloud-analyticshub:0.42.0:0.42.0 -proto-google-cloud-analyticshub-v1:0.42.0:0.42.0 -grpc-google-cloud-analyticshub-v1:0.42.0:0.42.0 -google-shopping-merchant-promotions:0.1.0:0.1.0 -proto-google-shopping-merchant-promotions-v1beta:0.1.0:0.1.0 -grpc-google-shopping-merchant-promotions-v1beta:0.1.0:0.1.0 -google-cloud-api-gateway:2.45.0:2.45.0 -grpc-google-cloud-api-gateway-v1:2.45.0:2.45.0 -proto-google-cloud-api-gateway-v1:2.45.0:2.45.0 -google-cloud-apigee-connect:2.45.0:2.45.0 -grpc-google-cloud-apigee-connect-v1:2.45.0:2.45.0 -proto-google-cloud-apigee-connect-v1:2.45.0:2.45.0 -google-cloud-apigee-registry:0.45.0:0.45.0 -proto-google-cloud-apigee-registry-v1:0.45.0:0.45.0 -grpc-google-cloud-apigee-registry-v1:0.45.0:0.45.0 -google-cloud-apikeys:0.43.0:0.43.0 -proto-google-cloud-apikeys-v2:0.43.0:0.43.0 -grpc-google-cloud-apikeys-v2:0.43.0:0.43.0 -google-cloud-appengine-admin:2.45.0:2.45.0 -grpc-google-cloud-appengine-admin-v1:2.45.0:2.45.0 -proto-google-cloud-appengine-admin-v1:2.45.0:2.45.0 -google-area120-tables:0.49.0:0.49.0 -grpc-google-area120-tables-v1alpha1:0.49.0:0.49.0 -proto-google-area120-tables-v1alpha1:0.49.0:0.49.0 -google-cloud-artifact-registry:1.44.0:1.44.0 -grpc-google-cloud-artifact-registry-v1beta2:0.50.0:0.50.0 -grpc-google-cloud-artifact-registry-v1:1.44.0:1.44.0 -proto-google-cloud-artifact-registry-v1beta2:0.50.0:0.50.0 -proto-google-cloud-artifact-registry-v1:1.44.0:1.44.0 -google-cloud-asset:3.49.0:3.49.0 -grpc-google-cloud-asset-v1:3.49.0:3.49.0 -grpc-google-cloud-asset-v1p1beta1:0.149.0:0.149.0 -grpc-google-cloud-asset-v1p2beta1:0.149.0:0.149.0 -grpc-google-cloud-asset-v1p5beta1:0.149.0:0.149.0 -grpc-google-cloud-asset-v1p7beta1:3.49.0:3.49.0 -proto-google-cloud-asset-v1:3.49.0:3.49.0 -proto-google-cloud-asset-v1p1beta1:0.149.0:0.149.0 -proto-google-cloud-asset-v1p2beta1:0.149.0:0.149.0 -proto-google-cloud-asset-v1p5beta1:0.149.0:0.149.0 -proto-google-cloud-asset-v1p7beta1:3.49.0:3.49.0 -google-cloud-assured-workloads:2.45.0:2.45.0 -grpc-google-cloud-assured-workloads-v1beta1:0.57.0:0.57.0 -grpc-google-cloud-assured-workloads-v1:2.45.0:2.45.0 -proto-google-cloud-assured-workloads-v1beta1:0.57.0:0.57.0 -proto-google-cloud-assured-workloads-v1:2.45.0:2.45.0 -google-cloud-automl:2.45.0:2.45.0 -grpc-google-cloud-automl-v1beta1:0.132.0:0.132.0 -grpc-google-cloud-automl-v1:2.45.0:2.45.0 -proto-google-cloud-automl-v1beta1:0.132.0:0.132.0 -proto-google-cloud-automl-v1:2.45.0:2.45.0 -google-cloud-bare-metal-solution:0.45.0:0.45.0 -proto-google-cloud-bare-metal-solution-v2:0.45.0:0.45.0 -grpc-google-cloud-bare-metal-solution-v2:0.45.0:0.45.0 -google-cloud-batch:0.45.0:0.45.0 -proto-google-cloud-batch-v1:0.45.0:0.45.0 -grpc-google-cloud-batch-v1:0.45.0:0.45.0 -proto-google-cloud-batch-v1alpha:0.45.0:0.45.0 -grpc-google-cloud-batch-v1alpha:0.45.0:0.45.0 -google-cloud-beyondcorp-appconnections:0.43.0:0.43.0 -proto-google-cloud-beyondcorp-appconnections-v1:0.43.0:0.43.0 -grpc-google-cloud-beyondcorp-appconnections-v1:0.43.0:0.43.0 -google-cloud-beyondcorp-appconnectors:0.43.0:0.43.0 -proto-google-cloud-beyondcorp-appconnectors-v1:0.43.0:0.43.0 -grpc-google-cloud-beyondcorp-appconnectors-v1:0.43.0:0.43.0 -google-cloud-beyondcorp-appgateways:0.43.0:0.43.0 -proto-google-cloud-beyondcorp-appgateways-v1:0.43.0:0.43.0 -grpc-google-cloud-beyondcorp-appgateways-v1:0.43.0:0.43.0 -google-cloud-beyondcorp-clientconnectorservices:0.43.0:0.43.0 -proto-google-cloud-beyondcorp-clientconnectorservices-v1:0.43.0:0.43.0 -grpc-google-cloud-beyondcorp-clientconnectorservices-v1:0.43.0:0.43.0 -google-cloud-beyondcorp-clientgateways:0.43.0:0.43.0 -proto-google-cloud-beyondcorp-clientgateways-v1:0.43.0:0.43.0 -grpc-google-cloud-beyondcorp-clientgateways-v1:0.43.0:0.43.0 -google-cloud-bigqueryconnection:2.47.0:2.47.0 -grpc-google-cloud-bigqueryconnection-v1:2.47.0:2.47.0 -grpc-google-cloud-bigqueryconnection-v1beta1:0.55.0:0.55.0 -proto-google-cloud-bigqueryconnection-v1:2.47.0:2.47.0 -proto-google-cloud-bigqueryconnection-v1beta1:0.55.0:0.55.0 -google-cloud-bigquery-data-exchange:2.40.0:2.40.0 -proto-google-cloud-bigquery-data-exchange-v1beta1:2.40.0:2.40.0 -grpc-google-cloud-bigquery-data-exchange-v1beta1:2.40.0:2.40.0 -google-cloud-bigquerydatapolicy:0.42.0:0.42.0 -proto-google-cloud-bigquerydatapolicy-v1beta1:0.42.0:0.42.0 -grpc-google-cloud-bigquerydatapolicy-v1beta1:0.42.0:0.42.0 -google-cloud-bigquerydatatransfer:2.45.0:2.45.0 -grpc-google-cloud-bigquerydatatransfer-v1:2.45.0:2.45.0 -proto-google-cloud-bigquerydatatransfer-v1:2.45.0:2.45.0 -google-cloud-bigquerymigration:0.48.0:0.48.0 -grpc-google-cloud-bigquerymigration-v2alpha:0.48.0:0.48.0 -proto-google-cloud-bigquerymigration-v2alpha:0.48.0:0.48.0 -proto-google-cloud-bigquerymigration-v2:0.48.0:0.48.0 -grpc-google-cloud-bigquerymigration-v2:0.48.0:0.48.0 -google-cloud-bigqueryreservation:2.46.0:2.46.0 -grpc-google-cloud-bigqueryreservation-v1:2.46.0:2.46.0 -proto-google-cloud-bigqueryreservation-v1:2.46.0:2.46.0 -google-cloud-billingbudgets:2.45.0:2.45.0 -grpc-google-cloud-billingbudgets-v1beta1:0.54.0:0.54.0 -grpc-google-cloud-billingbudgets-v1:2.45.0:2.45.0 -proto-google-cloud-billingbudgets-v1beta1:0.54.0:0.54.0 -proto-google-cloud-billingbudgets-v1:2.45.0:2.45.0 -google-cloud-billing:2.45.0:2.45.0 -grpc-google-cloud-billing-v1:2.45.0:2.45.0 -proto-google-cloud-billing-v1:2.45.0:2.45.0 -google-cloud-binary-authorization:1.44.0:1.44.0 -grpc-google-cloud-binary-authorization-v1beta1:0.49.0:0.49.0 -grpc-google-cloud-binary-authorization-v1:1.44.0:1.44.0 -proto-google-cloud-binary-authorization-v1beta1:0.49.0:0.49.0 -proto-google-cloud-binary-authorization-v1:1.44.0:1.44.0 -google-cloud-certificate-manager:0.48.0:0.48.0 -proto-google-cloud-certificate-manager-v1:0.48.0:0.48.0 -grpc-google-cloud-certificate-manager-v1:0.48.0:0.48.0 -google-cloud-channel:3.49.0:3.49.0 -grpc-google-cloud-channel-v1:3.49.0:3.49.0 -proto-google-cloud-channel-v1:3.49.0:3.49.0 -google-cloud-build:3.47.0:3.47.0 -grpc-google-cloud-build-v1:3.47.0:3.47.0 -proto-google-cloud-build-v1:3.47.0:3.47.0 -google-cloud-cloudcommerceconsumerprocurement:0.43.0:0.43.0 -proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1:0.43.0:0.43.0 -grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1:0.43.0:0.43.0 -google-cloud-compute:1.55.0:1.55.0 -proto-google-cloud-compute-v1:1.55.0:1.55.0 -google-cloud-contact-center-insights:2.45.0:2.45.0 -grpc-google-cloud-contact-center-insights-v1:2.45.0:2.45.0 -proto-google-cloud-contact-center-insights-v1:2.45.0:2.45.0 -proto-google-cloud-containeranalysis-v1:2.46.0:2.46.0 -proto-google-cloud-containeranalysis-v1beta1:0.136.0:0.136.0 -grpc-google-cloud-containeranalysis-v1beta1:0.136.0:0.136.0 -grpc-google-cloud-containeranalysis-v1:2.46.0:2.46.0 -google-cloud-containeranalysis:2.46.0:2.46.0 -google-cloud-container:2.48.0:2.48.0 -grpc-google-cloud-container-v1:2.48.0:2.48.0 -grpc-google-cloud-container-v1beta1:2.48.0:2.48.0 -proto-google-cloud-container-v1:2.48.0:2.48.0 -proto-google-cloud-container-v1beta1:2.48.0:2.48.0 -google-cloud-contentwarehouse:0.41.0:0.41.0 -proto-google-cloud-contentwarehouse-v1:0.41.0:0.41.0 -grpc-google-cloud-contentwarehouse-v1:0.41.0:0.41.0 -google-cloud-datacatalog:1.51.0:1.51.0 -grpc-google-cloud-datacatalog-v1:1.51.0:1.51.0 -grpc-google-cloud-datacatalog-v1beta1:0.88.0:0.88.0 -proto-google-cloud-datacatalog-v1:1.51.0:1.51.0 -proto-google-cloud-datacatalog-v1beta1:0.88.0:0.88.0 -google-cloud-dataflow:0.49.0:0.49.0 -grpc-google-cloud-dataflow-v1beta3:0.49.0:0.49.0 -proto-google-cloud-dataflow-v1beta3:0.49.0:0.49.0 -google-cloud-dataform:0.44.0:0.44.0 -proto-google-cloud-dataform-v1alpha2:0.44.0:0.44.0 -grpc-google-cloud-dataform-v1alpha2:0.44.0:0.44.0 -proto-google-cloud-dataform-v1beta1:0.44.0:0.44.0 -grpc-google-cloud-dataform-v1beta1:0.44.0:0.44.0 -google-cloud-data-fusion:1.45.0:1.45.0 -grpc-google-cloud-data-fusion-v1beta1:0.49.0:0.49.0 -grpc-google-cloud-data-fusion-v1:1.45.0:1.45.0 -proto-google-cloud-data-fusion-v1beta1:0.49.0:0.49.0 -proto-google-cloud-data-fusion-v1:1.45.0:1.45.0 -google-cloud-datalabeling:0.165.0:0.165.0 -grpc-google-cloud-datalabeling-v1beta1:0.130.0:0.130.0 -proto-google-cloud-datalabeling-v1beta1:0.130.0:0.130.0 -google-cloud-dataplex:1.43.0:1.43.0 -proto-google-cloud-dataplex-v1:1.43.0:1.43.0 -grpc-google-cloud-dataplex-v1:1.43.0:1.43.0 -google-cloud-dataproc-metastore:2.46.0:2.46.0 -grpc-google-cloud-dataproc-metastore-v1beta:0.50.0:0.50.0 -grpc-google-cloud-dataproc-metastore-v1alpha:0.50.0:0.50.0 -grpc-google-cloud-dataproc-metastore-v1:2.46.0:2.46.0 -proto-google-cloud-dataproc-metastore-v1beta:0.50.0:0.50.0 -proto-google-cloud-dataproc-metastore-v1alpha:0.50.0:0.50.0 -proto-google-cloud-dataproc-metastore-v1:2.46.0:2.46.0 -google-cloud-dataproc:4.42.0:4.42.0 -grpc-google-cloud-dataproc-v1:4.42.0:4.42.0 -proto-google-cloud-dataproc-v1:4.42.0:4.42.0 -google-cloud-datastream:1.44.0:1.44.0 -grpc-google-cloud-datastream-v1alpha1:0.49.0:0.49.0 -proto-google-cloud-datastream-v1alpha1:0.49.0:0.49.0 -proto-google-cloud-datastream-v1:1.44.0:1.44.0 -grpc-google-cloud-datastream-v1:1.44.0:1.44.0 -google-cloud-debugger-client:1.45.0:1.45.0 -grpc-google-cloud-debugger-client-v2:1.45.0:1.45.0 -proto-google-cloud-debugger-client-v2:1.45.0:1.45.0 -proto-google-devtools-source-protos:1.45.0:1.45.0 -google-cloud-deploy:1.43.0:1.43.0 -grpc-google-cloud-deploy-v1:1.43.0:1.43.0 -proto-google-cloud-deploy-v1:1.43.0:1.43.0 -google-cloud-dialogflow-cx:0.56.0:0.56.0 -grpc-google-cloud-dialogflow-cx-v3beta1:0.56.0:0.56.0 -grpc-google-cloud-dialogflow-cx-v3:0.56.0:0.56.0 -proto-google-cloud-dialogflow-cx-v3beta1:0.56.0:0.56.0 -proto-google-cloud-dialogflow-cx-v3:0.56.0:0.56.0 -google-cloud-dialogflow:4.51.0:4.51.0 -grpc-google-cloud-dialogflow-v2beta1:0.149.0:0.149.0 -grpc-google-cloud-dialogflow-v2:4.51.0:4.51.0 -proto-google-cloud-dialogflow-v2:4.51.0:4.51.0 -proto-google-cloud-dialogflow-v2beta1:0.149.0:0.149.0 -google-cloud-discoveryengine:0.41.0:0.41.0 -proto-google-cloud-discoveryengine-v1beta:0.41.0:0.41.0 -grpc-google-cloud-discoveryengine-v1beta:0.41.0:0.41.0 -google-cloud-distributedcloudedge:0.42.0:0.42.0 -proto-google-cloud-distributedcloudedge-v1:0.42.0:0.42.0 -grpc-google-cloud-distributedcloudedge-v1:0.42.0:0.42.0 -google-cloud-dlp:3.49.0:3.49.0 -grpc-google-cloud-dlp-v2:3.49.0:3.49.0 -proto-google-cloud-dlp-v2:3.49.0:3.49.0 -google-cloud-dms:2.44.0:2.44.0 -grpc-google-cloud-dms-v1:2.44.0:2.44.0 -proto-google-cloud-dms-v1:2.44.0:2.44.0 -google-cloud-document-ai:2.49.0:2.49.0 -grpc-google-cloud-document-ai-v1beta1:0.61.0:0.61.0 -grpc-google-cloud-document-ai-v1beta2:0.61.0:0.61.0 -grpc-google-cloud-document-ai-v1beta3:0.61.0:0.61.0 -grpc-google-cloud-document-ai-v1:2.49.0:2.49.0 -proto-google-cloud-document-ai-v1beta1:0.61.0:0.61.0 -proto-google-cloud-document-ai-v1beta2:0.61.0:0.61.0 -proto-google-cloud-document-ai-v1beta3:0.61.0:0.61.0 -proto-google-cloud-document-ai-v1:2.49.0:2.49.0 -google-cloud-domains:1.42.0:1.42.0 -grpc-google-cloud-domains-v1beta1:0.50.0:0.50.0 -grpc-google-cloud-domains-v1alpha2:0.50.0:0.50.0 -grpc-google-cloud-domains-v1:1.42.0:1.42.0 -proto-google-cloud-domains-v1beta1:0.50.0:0.50.0 -proto-google-cloud-domains-v1alpha2:0.50.0:0.50.0 -proto-google-cloud-domains-v1:1.42.0:1.42.0 -google-cloud-enterpriseknowledgegraph:0.41.0:0.41.0 -proto-google-cloud-enterpriseknowledgegraph-v1:0.41.0:0.41.0 -grpc-google-cloud-enterpriseknowledgegraph-v1:0.41.0:0.41.0 -google-cloud-errorreporting:0.166.0-beta:0.166.0-beta -grpc-google-cloud-error-reporting-v1beta1:0.132.0:0.132.0 -proto-google-cloud-error-reporting-v1beta1:0.132.0:0.132.0 -google-cloud-essential-contacts:2.45.0:2.45.0 -grpc-google-cloud-essential-contacts-v1:2.45.0:2.45.0 -proto-google-cloud-essential-contacts-v1:2.45.0:2.45.0 -google-cloud-eventarc:1.45.0:1.45.0 -grpc-google-cloud-eventarc-v1:1.45.0:1.45.0 -proto-google-cloud-eventarc-v1:1.45.0:1.45.0 -google-cloud-eventarc-publishing:0.45.0:0.45.0 -proto-google-cloud-eventarc-publishing-v1:0.45.0:0.45.0 -grpc-google-cloud-eventarc-publishing-v1:0.45.0:0.45.0 -google-cloud-filestore:1.46.0:1.46.0 -grpc-google-cloud-filestore-v1beta1:0.48.0:0.48.0 -grpc-google-cloud-filestore-v1:1.46.0:1.46.0 -proto-google-cloud-filestore-v1:1.46.0:1.46.0 -proto-google-cloud-filestore-v1beta1:0.48.0:0.48.0 -google-cloud-functions:2.47.0:2.47.0 -grpc-google-cloud-functions-v1:2.47.0:2.47.0 -proto-google-cloud-functions-v1:2.47.0:2.47.0 -proto-google-cloud-functions-v2beta:2.47.0:2.47.0 -proto-google-cloud-functions-v2alpha:2.47.0:2.47.0 -grpc-google-cloud-functions-v2beta:2.47.0:2.47.0 -grpc-google-cloud-functions-v2alpha:2.47.0:2.47.0 -proto-google-cloud-functions-v2:2.47.0:2.47.0 -grpc-google-cloud-functions-v2:2.47.0:2.47.0 -google-cloud-game-servers:2.45.0:2.45.0 -grpc-google-cloud-game-servers-v1:2.45.0:2.45.0 -grpc-google-cloud-game-servers-v1beta:0.70.0:0.70.0 -proto-google-cloud-game-servers-v1:2.45.0:2.45.0 -proto-google-cloud-game-servers-v1beta:0.70.0:0.70.0 -google-cloud-gke-backup:0.44.0:0.44.0 -proto-google-cloud-gke-backup-v1:0.44.0:0.44.0 -grpc-google-cloud-gke-backup-v1:0.44.0:0.44.0 -google-cloud-gke-connect-gateway:0.46.0:0.46.0 -grpc-google-cloud-gke-connect-gateway-v1beta1:0.46.0:0.46.0 -proto-google-cloud-gke-connect-gateway-v1beta1:0.46.0:0.46.0 -google-cloud-gkehub:1.45.0:1.45.0 -grpc-google-cloud-gkehub-v1beta1:0.51.0:0.51.0 -grpc-google-cloud-gkehub-v1:1.45.0:1.45.0 -grpc-google-cloud-gkehub-v1alpha:0.51.0:0.51.0 -grpc-google-cloud-gkehub-v1beta:0.51.0:0.51.0 -proto-google-cloud-gkehub-v1beta1:0.51.0:0.51.0 -proto-google-cloud-gkehub-v1:1.45.0:1.45.0 -proto-google-cloud-gkehub-v1alpha:0.51.0:0.51.0 -proto-google-cloud-gkehub-v1beta:0.51.0:0.51.0 -google-cloud-gke-multi-cloud:0.44.0:0.44.0 -proto-google-cloud-gke-multi-cloud-v1:0.44.0:0.44.0 -grpc-google-cloud-gke-multi-cloud-v1:0.44.0:0.44.0 -grafeas:2.46.0:2.46.0 -google-cloud-gsuite-addons:2.45.0:2.45.0 -grpc-google-cloud-gsuite-addons-v1:2.45.0:2.45.0 -proto-google-cloud-gsuite-addons-v1:2.45.0:2.45.0 -proto-google-apps-script-type-protos:2.45.0:2.45.0 -google-iam-admin:3.40.0:3.40.0 -grpc-google-iam-admin-v1:3.40.0:3.40.0 -proto-google-iam-admin-v1:3.40.0:3.40.0 -google-cloud-iamcredentials:2.45.0:2.45.0 -grpc-google-cloud-iamcredentials-v1:2.45.0:2.45.0 -proto-google-cloud-iamcredentials-v1:2.45.0:2.45.0 -google-cloud-ids:1.44.0:1.44.0 -grpc-google-cloud-ids-v1:1.44.0:1.44.0 -proto-google-cloud-ids-v1:1.44.0:1.44.0 -google-cloud-iot:2.45.0:2.45.0 -grpc-google-cloud-iot-v1:2.45.0:2.45.0 -proto-google-cloud-iot-v1:2.45.0:2.45.0 -google-cloud-kms:2.48.0:2.48.0 -grpc-google-cloud-kms-v1:0.139.0:0.139.0 -proto-google-cloud-kms-v1:0.139.0:0.139.0 -google-cloud-language:2.46.0:2.46.0 -grpc-google-cloud-language-v1:2.46.0:2.46.0 -grpc-google-cloud-language-v1beta2:0.133.0:0.133.0 -proto-google-cloud-language-v1:2.46.0:2.46.0 -proto-google-cloud-language-v1beta2:0.133.0:0.133.0 -google-cloud-life-sciences:0.47.0:0.47.0 -grpc-google-cloud-life-sciences-v2beta:0.47.0:0.47.0 -proto-google-cloud-life-sciences-v2beta:0.47.0:0.47.0 -google-cloud-managed-identities:1.43.0:1.43.0 -grpc-google-cloud-managed-identities-v1:1.43.0:1.43.0 -proto-google-cloud-managed-identities-v1:1.43.0:1.43.0 -google-cloud-mediatranslation:0.51.0:0.51.0 -grpc-google-cloud-mediatranslation-v1beta1:0.51.0:0.51.0 -proto-google-cloud-mediatranslation-v1beta1:0.51.0:0.51.0 -google-cloud-memcache:2.45.0:2.45.0 -grpc-google-cloud-memcache-v1beta2:0.52.0:0.52.0 -grpc-google-cloud-memcache-v1:2.45.0:2.45.0 -proto-google-cloud-memcache-v1beta2:0.52.0:0.52.0 -proto-google-cloud-memcache-v1:2.45.0:2.45.0 -google-cloud-monitoring-dashboard:2.47.0:2.47.0 -grpc-google-cloud-monitoring-dashboard-v1:2.47.0:2.47.0 -proto-google-cloud-monitoring-dashboard-v1:2.47.0:2.47.0 -google-cloud-monitoring:3.46.0:3.46.0 -grpc-google-cloud-monitoring-v3:3.46.0:3.46.0 -proto-google-cloud-monitoring-v3:3.46.0:3.46.0 -google-cloud-networkconnectivity:1.44.0:1.44.0 -grpc-google-cloud-networkconnectivity-v1alpha1:0.50.0:0.50.0 -grpc-google-cloud-networkconnectivity-v1:1.44.0:1.44.0 -proto-google-cloud-networkconnectivity-v1alpha1:0.50.0:0.50.0 -proto-google-cloud-networkconnectivity-v1:1.44.0:1.44.0 -google-cloud-network-management:1.46.0:1.46.0 -grpc-google-cloud-network-management-v1beta1:0.48.0:0.48.0 -grpc-google-cloud-network-management-v1:1.46.0:1.46.0 -proto-google-cloud-network-management-v1beta1:0.48.0:0.48.0 -proto-google-cloud-network-management-v1:1.46.0:1.46.0 -google-cloud-network-security:0.48.0:0.48.0 -grpc-google-cloud-network-security-v1beta1:0.48.0:0.48.0 -proto-google-cloud-network-security-v1beta1:0.48.0:0.48.0 -proto-google-cloud-network-security-v1:0.48.0:0.48.0 -grpc-google-cloud-network-security-v1:0.48.0:0.48.0 -google-cloud-notebooks:1.43.0:1.43.0 -grpc-google-cloud-notebooks-v1beta1:0.50.0:0.50.0 -grpc-google-cloud-notebooks-v1:1.43.0:1.43.0 -proto-google-cloud-notebooks-v1beta1:0.50.0:0.50.0 -proto-google-cloud-notebooks-v1:1.43.0:1.43.0 -google-cloud-notification:0.163.0-beta:0.163.0-beta -google-cloud-optimization:1.43.0:1.43.0 -proto-google-cloud-optimization-v1:1.43.0:1.43.0 -grpc-google-cloud-optimization-v1:1.43.0:1.43.0 -google-cloud-orchestration-airflow:1.45.0:1.45.0 -grpc-google-cloud-orchestration-airflow-v1:1.45.0:1.45.0 -grpc-google-cloud-orchestration-airflow-v1beta1:0.48.0:0.48.0 -proto-google-cloud-orchestration-airflow-v1:1.45.0:1.45.0 -proto-google-cloud-orchestration-airflow-v1beta1:0.48.0:0.48.0 -google-cloud-orgpolicy:2.45.0:2.45.0 -grpc-google-cloud-orgpolicy-v2:2.45.0:2.45.0 -proto-google-cloud-orgpolicy-v1:2.45.0:2.45.0 -proto-google-cloud-orgpolicy-v2:2.45.0:2.45.0 -google-cloud-os-config:2.47.0:2.47.0 -grpc-google-cloud-os-config-v1:2.47.0:2.47.0 -grpc-google-cloud-os-config-v1beta:2.47.0:2.47.0 -grpc-google-cloud-os-config-v1alpha:2.47.0:2.47.0 -proto-google-cloud-os-config-v1:2.47.0:2.47.0 -proto-google-cloud-os-config-v1alpha:2.47.0:2.47.0 -proto-google-cloud-os-config-v1beta:2.47.0:2.47.0 -google-cloud-os-login:2.44.0:2.44.0 -grpc-google-cloud-os-login-v1:2.44.0:2.44.0 -proto-google-cloud-os-login-v1:2.44.0:2.44.0 -google-cloud-phishingprotection:0.76.0:0.76.0 -grpc-google-cloud-phishingprotection-v1beta1:0.76.0:0.76.0 -proto-google-cloud-phishingprotection-v1beta1:0.76.0:0.76.0 -google-cloud-policy-troubleshooter:1.44.0:1.44.0 -grpc-google-cloud-policy-troubleshooter-v1:1.44.0:1.44.0 -proto-google-cloud-policy-troubleshooter-v1:1.44.0:1.44.0 -google-cloud-private-catalog:0.47.0:0.47.0 -grpc-google-cloud-private-catalog-v1beta1:0.47.0:0.47.0 -proto-google-cloud-private-catalog-v1beta1:0.47.0:0.47.0 -google-cloud-profiler:2.45.0:2.45.0 -grpc-google-cloud-profiler-v2:2.45.0:2.45.0 -proto-google-cloud-profiler-v2:2.45.0:2.45.0 -google-cloud-publicca:0.42.0:0.42.0 -proto-google-cloud-publicca-v1beta1:0.42.0:0.42.0 -grpc-google-cloud-publicca-v1beta1:0.42.0:0.42.0 -google-cloud-recaptchaenterprise:3.42.0:3.42.0 -grpc-google-cloud-recaptchaenterprise-v1:3.42.0:3.42.0 -grpc-google-cloud-recaptchaenterprise-v1beta1:0.84.0:0.84.0 -proto-google-cloud-recaptchaenterprise-v1:3.42.0:3.42.0 -proto-google-cloud-recaptchaenterprise-v1beta1:0.84.0:0.84.0 -google-cloud-recommendations-ai:0.52.0:0.52.0 -grpc-google-cloud-recommendations-ai-v1beta1:0.52.0:0.52.0 -proto-google-cloud-recommendations-ai-v1beta1:0.52.0:0.52.0 -google-cloud-recommender:2.47.0:2.47.0 -grpc-google-cloud-recommender-v1:2.47.0:2.47.0 -grpc-google-cloud-recommender-v1beta1:0.59.0:0.59.0 -proto-google-cloud-recommender-v1:2.47.0:2.47.0 -proto-google-cloud-recommender-v1beta1:0.59.0:0.59.0 -google-cloud-redis:2.48.0:2.48.0 -grpc-google-cloud-redis-v1beta1:0.136.0:0.136.0 -grpc-google-cloud-redis-v1:2.48.0:2.48.0 -proto-google-cloud-redis-v1:2.48.0:2.48.0 -proto-google-cloud-redis-v1beta1:0.136.0:0.136.0 -google-cloud-resourcemanager:1.47.0:1.47.0 -grpc-google-cloud-resourcemanager-v3:1.47.0:1.47.0 -proto-google-cloud-resourcemanager-v3:1.47.0:1.47.0 -google-cloud-resource-settings:1.45.0:1.45.0 -grpc-google-cloud-resource-settings-v1:1.45.0:1.45.0 -proto-google-cloud-resource-settings-v1:1.45.0:1.45.0 -google-cloud-retail:2.47.0:2.47.0 -grpc-google-cloud-retail-v2:2.47.0:2.47.0 -proto-google-cloud-retail-v2:2.47.0:2.47.0 -proto-google-cloud-retail-v2alpha:2.47.0:2.47.0 -proto-google-cloud-retail-v2beta:2.47.0:2.47.0 -grpc-google-cloud-retail-v2alpha:2.47.0:2.47.0 -grpc-google-cloud-retail-v2beta:2.47.0:2.47.0 -google-cloud-run:0.45.0:0.45.0 -proto-google-cloud-run-v2:0.45.0:0.45.0 -grpc-google-cloud-run-v2:0.45.0:0.45.0 -google-cloud-scheduler:2.45.0:2.45.0 -grpc-google-cloud-scheduler-v1beta1:0.130.0:0.130.0 -grpc-google-cloud-scheduler-v1:2.45.0:2.45.0 -proto-google-cloud-scheduler-v1beta1:0.130.0:0.130.0 -proto-google-cloud-scheduler-v1:2.45.0:2.45.0 -google-cloud-secretmanager:2.45.0:2.45.0 -grpc-google-cloud-secretmanager-v1:2.45.0:2.45.0 -proto-google-cloud-secretmanager-v1:2.45.0:2.45.0 -google-cloud-securitycenter:2.53.0:2.53.0 -grpc-google-cloud-securitycenter-v1:2.53.0:2.53.0 -grpc-google-cloud-securitycenter-v1beta1:0.148.0:0.148.0 -grpc-google-cloud-securitycenter-v1p1beta1:0.148.0:0.148.0 -proto-google-cloud-securitycenter-v1:2.53.0:2.53.0 -proto-google-cloud-securitycenter-v1beta1:0.148.0:0.148.0 -proto-google-cloud-securitycenter-v1p1beta1:0.148.0:0.148.0 -google-cloud-securitycenter-settings:0.48.0:0.48.0 -grpc-google-cloud-securitycenter-settings-v1beta1:0.48.0:0.48.0 -proto-google-cloud-securitycenter-settings-v1beta1:0.48.0:0.48.0 -google-cloud-security-private-ca:2.47.0:2.47.0 -grpc-google-cloud-security-private-ca-v1beta1:0.54.0:0.54.0 -grpc-google-cloud-security-private-ca-v1:2.47.0:2.47.0 -proto-google-cloud-security-private-ca-v1beta1:0.54.0:0.54.0 -proto-google-cloud-security-private-ca-v1:2.47.0:2.47.0 -google-cloud-service-control:1.45.0:1.45.0 -grpc-google-cloud-service-control-v1:1.45.0:1.45.0 -proto-google-cloud-service-control-v1:1.45.0:1.45.0 -proto-google-cloud-service-control-v2:1.45.0:1.45.0 -grpc-google-cloud-service-control-v2:1.45.0:1.45.0 -google-cloud-servicedirectory:2.46.0:2.46.0 -grpc-google-cloud-servicedirectory-v1beta1:0.54.0:0.54.0 -grpc-google-cloud-servicedirectory-v1:2.46.0:2.46.0 -proto-google-cloud-servicedirectory-v1beta1:0.54.0:0.54.0 -proto-google-cloud-servicedirectory-v1:2.46.0:2.46.0 -google-cloud-service-management:3.43.0:3.43.0 -grpc-google-cloud-service-management-v1:3.43.0:3.43.0 -proto-google-cloud-service-management-v1:3.43.0:3.43.0 -google-cloud-service-usage:2.45.0:2.45.0 -grpc-google-cloud-service-usage-v1beta1:0.49.0:0.49.0 -grpc-google-cloud-service-usage-v1:2.45.0:2.45.0 -proto-google-cloud-service-usage-v1:2.45.0:2.45.0 -proto-google-cloud-service-usage-v1beta1:0.49.0:0.49.0 -google-cloud-shell:2.44.0:2.44.0 -grpc-google-cloud-shell-v1:2.44.0:2.44.0 -proto-google-cloud-shell-v1:2.44.0:2.44.0 -google-cloud-speech:4.40.0:4.40.0 -grpc-google-cloud-speech-v1:4.40.0:4.40.0 -grpc-google-cloud-speech-v1beta1:2.40.0:2.40.0 -grpc-google-cloud-speech-v1p1beta1:2.40.0:2.40.0 -proto-google-cloud-speech-v1:4.40.0:4.40.0 -proto-google-cloud-speech-v1beta1:2.40.0:2.40.0 -proto-google-cloud-speech-v1p1beta1:2.40.0:2.40.0 -proto-google-cloud-speech-v2:4.40.0:4.40.0 -grpc-google-cloud-speech-v2:4.40.0:4.40.0 -google-cloud-storage-transfer:1.45.0:1.45.0 -grpc-google-cloud-storage-transfer-v1:1.45.0:1.45.0 -proto-google-cloud-storage-transfer-v1:1.45.0:1.45.0 -google-cloud-talent:2.46.0:2.46.0 -grpc-google-cloud-talent-v4:2.46.0:2.46.0 -grpc-google-cloud-talent-v4beta1:0.89.0:0.89.0 -proto-google-cloud-talent-v4:2.46.0:2.46.0 -proto-google-cloud-talent-v4beta1:0.89.0:0.89.0 -google-cloud-tasks:2.45.0:2.45.0 -grpc-google-cloud-tasks-v2beta3:0.135.0:0.135.0 -grpc-google-cloud-tasks-v2beta2:0.135.0:0.135.0 -grpc-google-cloud-tasks-v2:2.45.0:2.45.0 -proto-google-cloud-tasks-v2beta3:0.135.0:0.135.0 -proto-google-cloud-tasks-v2beta2:0.135.0:0.135.0 -proto-google-cloud-tasks-v2:2.45.0:2.45.0 -google-cloud-texttospeech:2.46.0:2.46.0 -grpc-google-cloud-texttospeech-v1beta1:0.135.0:0.135.0 -grpc-google-cloud-texttospeech-v1:2.46.0:2.46.0 -proto-google-cloud-texttospeech-v1:2.46.0:2.46.0 -proto-google-cloud-texttospeech-v1beta1:0.135.0:0.135.0 -google-cloud-tpu:2.46.0:2.46.0 -grpc-google-cloud-tpu-v1:2.46.0:2.46.0 -grpc-google-cloud-tpu-v2alpha1:2.46.0:2.46.0 -proto-google-cloud-tpu-v1:2.46.0:2.46.0 -proto-google-cloud-tpu-v2alpha1:2.46.0:2.46.0 -google-cloud-trace:2.45.0:2.45.0 -grpc-google-cloud-trace-v1:2.45.0:2.45.0 -grpc-google-cloud-trace-v2:2.45.0:2.45.0 -proto-google-cloud-trace-v1:2.45.0:2.45.0 -proto-google-cloud-trace-v2:2.45.0:2.45.0 -google-cloud-translate:2.45.0:2.45.0 -grpc-google-cloud-translate-v3beta1:0.127.0:0.127.0 -grpc-google-cloud-translate-v3:2.45.0:2.45.0 -proto-google-cloud-translate-v3beta1:0.127.0:0.127.0 -proto-google-cloud-translate-v3:2.45.0:2.45.0 -google-cloud-video-intelligence:2.44.0:2.44.0 -grpc-google-cloud-video-intelligence-v1p1beta1:0.134.0:0.134.0 -grpc-google-cloud-video-intelligence-v1beta2:0.134.0:0.134.0 -grpc-google-cloud-video-intelligence-v1:2.44.0:2.44.0 -grpc-google-cloud-video-intelligence-v1p2beta1:0.134.0:0.134.0 -grpc-google-cloud-video-intelligence-v1p3beta1:0.134.0:0.134.0 -proto-google-cloud-video-intelligence-v1p3beta1:0.134.0:0.134.0 -proto-google-cloud-video-intelligence-v1beta2:0.134.0:0.134.0 -proto-google-cloud-video-intelligence-v1p1beta1:0.134.0:0.134.0 -proto-google-cloud-video-intelligence-v1:2.44.0:2.44.0 -proto-google-cloud-video-intelligence-v1p2beta1:0.134.0:0.134.0 -google-cloud-live-stream:0.47.0:0.47.0 -proto-google-cloud-live-stream-v1:0.47.0:0.47.0 -grpc-google-cloud-live-stream-v1:0.47.0:0.47.0 -google-cloud-video-stitcher:0.45.0:0.45.0 -proto-google-cloud-video-stitcher-v1:0.45.0:0.45.0 -grpc-google-cloud-video-stitcher-v1:0.45.0:0.45.0 -google-cloud-video-transcoder:1.44.0:1.44.0 -grpc-google-cloud-video-transcoder-v1:1.44.0:1.44.0 -proto-google-cloud-video-transcoder-v1:1.44.0:1.44.0 -google-cloud-vision:3.43.0:3.43.0 -grpc-google-cloud-vision-v1p3beta1:0.132.0:0.132.0 -grpc-google-cloud-vision-v1p1beta1:0.132.0:0.132.0 -grpc-google-cloud-vision-v1p4beta1:0.132.0:0.132.0 -grpc-google-cloud-vision-v1p2beta1:3.43.0:3.43.0 -grpc-google-cloud-vision-v1:3.43.0:3.43.0 -proto-google-cloud-vision-v1p4beta1:0.132.0:0.132.0 -proto-google-cloud-vision-v1:3.43.0:3.43.0 -proto-google-cloud-vision-v1p1beta1:0.132.0:0.132.0 -proto-google-cloud-vision-v1p3beta1:0.132.0:0.132.0 -proto-google-cloud-vision-v1p2beta1:3.43.0:3.43.0 -google-cloud-vmmigration:1.45.0:1.45.0 -grpc-google-cloud-vmmigration-v1:1.45.0:1.45.0 -proto-google-cloud-vmmigration-v1:1.45.0:1.45.0 -google-cloud-vpcaccess:2.46.0:2.46.0 -grpc-google-cloud-vpcaccess-v1:2.46.0:2.46.0 -proto-google-cloud-vpcaccess-v1:2.46.0:2.46.0 -google-cloud-webrisk:2.44.0:2.44.0 -grpc-google-cloud-webrisk-v1:2.44.0:2.44.0 -grpc-google-cloud-webrisk-v1beta1:0.81.0:0.81.0 -proto-google-cloud-webrisk-v1:2.44.0:2.44.0 -proto-google-cloud-webrisk-v1beta1:0.81.0:0.81.0 -google-cloud-websecurityscanner:2.45.0:2.45.0 -grpc-google-cloud-websecurityscanner-v1alpha:0.132.0:0.132.0 -grpc-google-cloud-websecurityscanner-v1beta:0.132.0:0.132.0 -grpc-google-cloud-websecurityscanner-v1:2.45.0:2.45.0 -proto-google-cloud-websecurityscanner-v1alpha:0.132.0:0.132.0 -proto-google-cloud-websecurityscanner-v1beta:0.132.0:0.132.0 -proto-google-cloud-websecurityscanner-v1:2.45.0:2.45.0 -google-cloud-workflow-executions:2.45.0:2.45.0 -grpc-google-cloud-workflow-executions-v1beta:0.49.0:0.49.0 -grpc-google-cloud-workflow-executions-v1:2.45.0:2.45.0 -proto-google-cloud-workflow-executions-v1beta:0.49.0:0.49.0 -proto-google-cloud-workflow-executions-v1:2.45.0:2.45.0 -google-cloud-workflows:2.45.0:2.45.0 -grpc-google-cloud-workflows-v1beta:0.51.0:0.51.0 -grpc-google-cloud-workflows-v1:2.45.0:2.45.0 -proto-google-cloud-workflows-v1beta:0.51.0:0.51.0 -proto-google-cloud-workflows-v1:2.45.0:2.45.0 -google-cloud-dns:2.43.0:2.43.0 -google-maps-routing:1.30.0:1.30.0 -proto-google-maps-routing-v2:1.30.0:1.30.0 -grpc-google-maps-routing-v2:1.30.0:1.30.0 -google-cloud-vmwareengine:0.39.0:0.39.0 -proto-google-cloud-vmwareengine-v1:0.39.0:0.39.0 -grpc-google-cloud-vmwareengine-v1:0.39.0:0.39.0 -google-maps-addressvalidation:0.39.0:0.39.0 -proto-google-maps-addressvalidation-v1:0.39.0:0.39.0 -grpc-google-maps-addressvalidation-v1:0.39.0:0.39.0 -proto-google-cloud-bigquerydatapolicy-v1:0.42.0:0.42.0 -grpc-google-cloud-bigquerydatapolicy-v1:0.42.0:0.42.0 -google-cloud-monitoring-metricsscope:0.39.0:0.39.0 -proto-google-cloud-monitoring-metricsscope-v1:0.39.0:0.39.0 -grpc-google-cloud-monitoring-metricsscope-v1:0.39.0:0.39.0 -proto-google-cloud-tpu-v2:2.46.0:2.46.0 -grpc-google-cloud-tpu-v2:2.46.0:2.46.0 -google-cloud-datalineage:0.37.0:0.37.0 -proto-google-cloud-datalineage-v1:0.37.0:0.37.0 -grpc-google-cloud-datalineage-v1:0.37.0:0.37.0 -google-iam-policy:1.43.0:1.43.0 -proto-google-cloud-build-v2:3.47.0:3.47.0 -grpc-google-cloud-build-v2:3.47.0:3.47.0 -google-cloud-advisorynotifications:0.34.0:0.34.0 -proto-google-cloud-advisorynotifications-v1:0.34.0:0.34.0 -grpc-google-cloud-advisorynotifications-v1:0.34.0:0.34.0 -google-maps-mapsplatformdatasets:0.34.0:0.34.0 -google-cloud-kmsinventory:0.34.0:0.34.0 -proto-google-cloud-kmsinventory-v1:0.34.0:0.34.0 -grpc-google-cloud-kmsinventory-v1:0.34.0:0.34.0 -google-cloud-alloydb:0.34.0:0.34.0 -proto-google-cloud-alloydb-v1:0.34.0:0.34.0 -proto-google-cloud-alloydb-v1beta:0.34.0:0.34.0 -proto-google-cloud-alloydb-v1alpha:0.34.0:0.34.0 -grpc-google-cloud-alloydb-v1beta:0.34.0:0.34.0 -grpc-google-cloud-alloydb-v1:0.34.0:0.34.0 -grpc-google-cloud-alloydb-v1alpha:0.34.0:0.34.0 -google-cloud-biglake:0.33.0:0.33.0 -proto-google-cloud-biglake-v1alpha1:0.33.0:0.33.0 -grpc-google-cloud-biglake-v1alpha1:0.33.0:0.33.0 -google-cloud-workstations:0.33.0:0.33.0 -proto-google-cloud-workstations-v1beta:0.33.0:0.33.0 -grpc-google-cloud-workstations-v1beta:0.33.0:0.33.0 -google-cloud-confidentialcomputing:0.31.0:0.31.0 -proto-google-cloud-confidentialcomputing-v1:0.31.0:0.31.0 -proto-google-cloud-confidentialcomputing-v1alpha1:0.31.0:0.31.0 -grpc-google-cloud-confidentialcomputing-v1:0.31.0:0.31.0 -grpc-google-cloud-confidentialcomputing-v1alpha1:0.31.0:0.31.0 -proto-google-cloud-workstations-v1:0.33.0:0.33.0 -grpc-google-cloud-workstations-v1:0.33.0:0.33.0 -proto-google-cloud-biglake-v1:0.33.0:0.33.0 -grpc-google-cloud-biglake-v1:0.33.0:0.33.0 -google-cloud-storageinsights:0.30.0:0.30.0 -proto-google-cloud-storageinsights-v1:0.30.0:0.30.0 -grpc-google-cloud-storageinsights-v1:0.30.0:0.30.0 -google-cloud-cloudsupport:0.29.0:0.29.0 -proto-google-cloud-cloudsupport-v2:0.29.0:0.29.0 -grpc-google-cloud-cloudsupport-v2:0.29.0:0.29.0 -google-cloud-rapidmigrationassessment:0.28.0:0.28.0 -proto-google-cloud-rapidmigrationassessment-v1:0.28.0:0.28.0 -grpc-google-cloud-rapidmigrationassessment-v1:0.28.0:0.28.0 -proto-google-maps-mapsplatformdatasets-v1:0.34.0:0.34.0 -grpc-google-maps-mapsplatformdatasets-v1:0.34.0:0.34.0 -google-shopping-merchant-accounts:0.1.0:0.1.0 -proto-google-shopping-merchant-accounts-v1beta:0.1.0:0.1.0 -grpc-google-shopping-merchant-accounts-v1beta:0.1.0:0.1.0 -proto-google-cloud-discoveryengine-v1:0.41.0:0.41.0 -grpc-google-cloud-discoveryengine-v1:0.41.0:0.41.0 -google-cloud-migrationcenter:0.27.0:0.27.0 -proto-google-cloud-migrationcenter-v1:0.27.0:0.27.0 -grpc-google-cloud-migrationcenter-v1:0.27.0:0.27.0 -google-cloud-policysimulator:0.24.0:0.24.0 -proto-google-cloud-policysimulator-v1:0.24.0:0.24.0 -grpc-google-cloud-policysimulator-v1:0.24.0:0.24.0 -google-cloud-netapp:0.24.0:0.24.0 -proto-google-cloud-netapp-v1beta1:0.24.0:0.24.0 -grpc-google-cloud-netapp-v1beta1:0.24.0:0.24.0 -proto-google-cloud-netapp-v1:0.24.0:0.24.0 -grpc-google-cloud-netapp-v1:0.24.0:0.24.0 -proto-google-cloud-cloudcommerceconsumerprocurement-v1:0.43.0:0.43.0 -grpc-google-cloud-cloudcommerceconsumerprocurement-v1:0.43.0:0.43.0 -google-cloud-java-alloydb-connectors:0.23.0:0.23.0 -proto-google-cloud-java-alloydb-connectors-v1alpha:0.23.0:0.23.0 -google-cloud-alloydb-connectors:0.23.0:0.23.0 -proto-google-cloud-alloydb-connectors-v1alpha:0.23.0:0.23.0 -proto-google-cloud-language-v2:2.46.0:2.46.0 -grpc-google-cloud-language-v2:2.46.0:2.46.0 -google-cloud-infra-manager:0.22.0:0.22.0 -proto-google-cloud-infra-manager-v1:0.22.0:0.22.0 -grpc-google-cloud-infra-manager-v1:0.22.0:0.22.0 -proto-google-cloud-notebooks-v2:1.43.0:1.43.0 -grpc-google-cloud-notebooks-v2:1.43.0:1.43.0 -proto-google-cloud-alloydb-connectors-v1beta:0.23.0:0.23.0 -google-shopping-merchant-inventories:0.21.0:0.21.0 -proto-google-shopping-merchant-inventories-v1beta:0.21.0:0.21.0 -grpc-google-shopping-merchant-inventories-v1beta:0.21.0:0.21.0 -proto-google-cloud-policy-troubleshooter-v3:1.44.0:1.44.0 -grpc-google-cloud-policy-troubleshooter-v3:1.44.0:1.44.0 -google-shopping-merchant-reports:0.21.0:0.21.0 -proto-google-shopping-merchant-reports-v1beta:0.21.0:0.21.0 -grpc-google-shopping-merchant-reports-v1beta:0.21.0:0.21.0 -proto-google-cloud-alloydb-connectors-v1:0.23.0:0.23.0 -proto-google-cloud-discoveryengine-v1alpha:0.41.0:0.41.0 -grpc-google-cloud-discoveryengine-v1alpha:0.41.0:0.41.0 -google-cloud-redis-cluster:0.17.0:0.17.0 -proto-google-cloud-redis-cluster-v1beta1:0.17.0:0.17.0 -proto-google-cloud-redis-cluster-v1:0.17.0:0.17.0 -grpc-google-cloud-redis-cluster-v1:0.17.0:0.17.0 -grpc-google-cloud-redis-cluster-v1beta1:0.17.0:0.17.0 -google-maps-places:0.16.0:0.16.0 -proto-google-maps-places-v1:0.16.0:0.16.0 -grpc-google-maps-places-v1:0.16.0:0.16.0 -google-cloud-telcoautomation:0.15.0:0.15.0 -proto-google-cloud-telcoautomation-v1:0.15.0:0.15.0 -proto-google-cloud-telcoautomation-v1alpha1:0.15.0:0.15.0 -grpc-google-cloud-telcoautomation-v1:0.15.0:0.15.0 -grpc-google-cloud-telcoautomation-v1alpha1:0.15.0:0.15.0 -google-cloud-securesourcemanager:0.15.0:0.15.0 -proto-google-cloud-securesourcemanager-v1:0.15.0:0.15.0 -grpc-google-cloud-securesourcemanager-v1:0.15.0:0.15.0 -google-cloud-vertexai:1.5.0:1.5.0 -proto-google-cloud-vertexai-v1:1.5.0:1.5.0 -proto-google-cloud-vertexai-v1beta1:1.5.0:1.5.0 -grpc-google-cloud-vertexai-v1:1.5.0:1.5.0 -grpc-google-cloud-vertexai-v1beta1:1.5.0:1.5.0 -google-cloud-edgenetwork:0.13.0:0.13.0 -proto-google-cloud-edgenetwork-v1:0.13.0:0.13.0 -grpc-google-cloud-edgenetwork-v1:0.13.0:0.13.0 -google-cloud-cloudquotas:0.13.0:0.13.0 -proto-google-cloud-cloudquotas-v1:0.13.0:0.13.0 -grpc-google-cloud-cloudquotas-v1:0.13.0:0.13.0 -google-cloud-securitycentermanagement:0.13.0:0.13.0 -proto-google-cloud-securitycentermanagement-v1:0.13.0:0.13.0 -grpc-google-cloud-securitycentermanagement-v1:0.13.0:0.13.0 -google-shopping-css:0.13.0:0.13.0 -proto-google-shopping-css-v1:0.13.0:0.13.0 -grpc-google-shopping-css-v1:0.13.0:0.13.0 -google-cloud-meet:0.12.0:0.12.0 -proto-google-cloud-meet-v2beta:0.12.0:0.12.0 -grpc-google-cloud-meet-v2beta:0.12.0:0.12.0 -google-cloud-servicehealth:0.12.0:0.12.0 -proto-google-cloud-servicehealth-v1:0.12.0:0.12.0 -grpc-google-cloud-servicehealth-v1:0.12.0:0.12.0 -proto-google-cloud-meet-v2:0.12.0:0.12.0 -grpc-google-cloud-meet-v2:0.12.0:0.12.0 -google-cloud-securityposture:0.10.0:0.10.0 -proto-google-cloud-securityposture-v1:0.10.0:0.10.0 -grpc-google-cloud-securityposture-v1:0.10.0:0.10.0 -proto-google-cloud-securitycenter-v2:2.53.0:2.53.0 -grpc-google-cloud-securitycenter-v2:2.53.0:2.53.0 -google-cloud-cloudcontrolspartner:0.9.0:0.9.0 -proto-google-cloud-cloudcontrolspartner-v1beta:0.9.0:0.9.0 -proto-google-cloud-cloudcontrolspartner-v1:0.9.0:0.9.0 -grpc-google-cloud-cloudcontrolspartner-v1:0.9.0:0.9.0 -grpc-google-cloud-cloudcontrolspartner-v1beta:0.9.0:0.9.0 -google-cloud-workspaceevents:0.9.0:0.9.0 -proto-google-cloud-workspaceevents-v1:0.9.0:0.9.0 -grpc-google-cloud-workspaceevents-v1:0.9.0:0.9.0 -google-cloud-apphub:0.9.0:0.9.0 -proto-google-cloud-apphub-v1:0.9.0:0.9.0 -grpc-google-cloud-apphub-v1:0.9.0:0.9.0 -google-cloud-chat:0.9.0:0.9.0 -proto-google-cloud-chat-v1:0.9.0:0.9.0 -grpc-google-cloud-chat-v1:0.9.0:0.9.0 -google-shopping-merchant-quota:0.8.0:0.8.0 -proto-google-shopping-merchant-quota-v1beta:0.8.0:0.8.0 -grpc-google-shopping-merchant-quota-v1beta:0.8.0:0.8.0 -proto-google-cloud-secretmanager-v1beta2:2.45.0:2.45.0 -grpc-google-cloud-secretmanager-v1beta2:2.45.0:2.45.0 -google-cloud-parallelstore:0.8.0:0.8.0 -proto-google-cloud-parallelstore-v1beta:0.8.0:0.8.0 -grpc-google-cloud-parallelstore-v1beta:0.8.0:0.8.0 -google-cloud-backupdr:0.4.0:0.4.0 -proto-google-cloud-backupdr-v1:0.4.0:0.4.0 -grpc-google-cloud-backupdr-v1:0.4.0:0.4.0 -google-maps-solar:0.4.0:0.4.0 -proto-google-maps-solar-v1:0.4.0:0.4.0 -grpc-google-maps-solar-v1:0.4.0:0.4.0 -google-shopping-merchant-datasources:0.1.0:0.1.0 -proto-google-shopping-merchant-datasources-v1beta:0.1.0:0.1.0 -grpc-google-shopping-merchant-datasources-v1beta:0.1.0:0.1.0 -google-shopping-merchant-conversions:0.4.0:0.4.0 -proto-google-shopping-merchant-conversions-v1beta:0.4.0:0.4.0 -grpc-google-shopping-merchant-conversions-v1beta:0.4.0:0.4.0 -google-shopping-merchant-lfp:0.4.0:0.4.0 -proto-google-shopping-merchant-lfp-v1beta:0.4.0:0.4.0 -grpc-google-shopping-merchant-lfp-v1beta:0.4.0:0.4.0 -google-shopping-merchant-notifications:0.4.0:0.4.0 -proto-google-shopping-merchant-notifications-v1beta:0.4.0:0.4.0 -grpc-google-shopping-merchant-notifications-v1beta:0.4.0:0.4.0 -ad-manager:0.4.0:0.4.0 -proto-ad-manager-v1:0.4.0:0.4.0 -google-maps-routeoptimization:0.3.0:0.3.0 -proto-google-maps-routeoptimization-v1:0.3.0:0.3.0 -grpc-google-maps-routeoptimization-v1:0.3.0:0.3.0 -proto-google-cloud-publicca-v1:0.42.0:0.42.0 -grpc-google-cloud-publicca-v1:0.42.0:0.42.0 -google-cloud-visionai:0.2.0:0.2.0 -proto-google-cloud-visionai-v1:0.2.0:0.2.0 -grpc-google-cloud-visionai-v1:0.2.0:0.2.0 -google-cloud-developerconnect:0.2.0:0.2.0 -proto-google-cloud-developerconnect-v1:0.2.0:0.2.0 -grpc-google-cloud-developerconnect-v1:0.2.0:0.2.0 -google-cloud-iap:0.1.0:0.1.0 -proto-google-cloud-iap-v1:0.1.0:0.1.0 -grpc-google-cloud-iap-v1:0.1.0:0.1.0 -google-cloud-managedkafka:0.1.0:0.1.0 -proto-google-cloud-managedkafka-v1:0.1.0:0.1.0 -grpc-google-cloud-managedkafka-v1:0.1.0:0.1.0 -google-cloud-networkservices:0.1.0:0.1.0 -proto-google-cloud-networkservices-v1:0.1.0:0.1.0 -grpc-google-cloud-networkservices-v1:0.1.0:0.1.0 -google-shopping-merchant-products:0.1.0:0.1.0 -proto-google-shopping-merchant-products-v1beta:0.1.0:0.1.0 -grpc-google-shopping-merchant-products-v1beta:0.1.0:0.1.0 +google-cloud-java:1.39.0:1.40.0-SNAPSHOT +google-cloud-accessapproval:2.46.0:2.47.0-SNAPSHOT +grpc-google-cloud-accessapproval-v1:2.46.0:2.47.0-SNAPSHOT +proto-google-cloud-accessapproval-v1:2.46.0:2.47.0-SNAPSHOT +google-identity-accesscontextmanager:1.46.0:1.47.0-SNAPSHOT +grpc-google-identity-accesscontextmanager-v1:1.46.0:1.47.0-SNAPSHOT +proto-google-identity-accesscontextmanager-v1:1.46.0:1.47.0-SNAPSHOT +proto-google-identity-accesscontextmanager-type:1.46.0:1.47.0-SNAPSHOT +google-cloud-aiplatform:3.46.0:3.47.0-SNAPSHOT +grpc-google-cloud-aiplatform-v1:3.46.0:3.47.0-SNAPSHOT +grpc-google-cloud-aiplatform-v1beta1:0.62.0:0.63.0-SNAPSHOT +proto-google-cloud-aiplatform-v1:3.46.0:3.47.0-SNAPSHOT +proto-google-cloud-aiplatform-v1beta1:0.62.0:0.63.0-SNAPSHOT +google-analytics-admin:0.55.0:0.56.0-SNAPSHOT +grpc-google-analytics-admin-v1alpha:0.55.0:0.56.0-SNAPSHOT +proto-google-analytics-admin-v1alpha:0.55.0:0.56.0-SNAPSHOT +proto-google-analytics-admin-v1beta:0.55.0:0.56.0-SNAPSHOT +grpc-google-analytics-admin-v1beta:0.55.0:0.56.0-SNAPSHOT +google-analytics-data:0.56.0:0.57.0-SNAPSHOT +grpc-google-analytics-data-v1beta:0.56.0:0.57.0-SNAPSHOT +proto-google-analytics-data-v1beta:0.56.0:0.57.0-SNAPSHOT +proto-google-analytics-data-v1alpha:0.56.0:0.57.0-SNAPSHOT +grpc-google-analytics-data-v1alpha:0.56.0:0.57.0-SNAPSHOT +google-cloud-analyticshub:0.42.0:0.43.0-SNAPSHOT +proto-google-cloud-analyticshub-v1:0.42.0:0.43.0-SNAPSHOT +grpc-google-cloud-analyticshub-v1:0.42.0:0.43.0-SNAPSHOT +google-shopping-merchant-promotions:0.1.0:0.2.0-SNAPSHOT +proto-google-shopping-merchant-promotions-v1beta:0.1.0:0.2.0-SNAPSHOT +grpc-google-shopping-merchant-promotions-v1beta:0.1.0:0.2.0-SNAPSHOT +google-cloud-api-gateway:2.45.0:2.46.0-SNAPSHOT +grpc-google-cloud-api-gateway-v1:2.45.0:2.46.0-SNAPSHOT +proto-google-cloud-api-gateway-v1:2.45.0:2.46.0-SNAPSHOT +google-cloud-apigee-connect:2.45.0:2.46.0-SNAPSHOT +grpc-google-cloud-apigee-connect-v1:2.45.0:2.46.0-SNAPSHOT +proto-google-cloud-apigee-connect-v1:2.45.0:2.46.0-SNAPSHOT +google-cloud-apigee-registry:0.45.0:0.46.0-SNAPSHOT +proto-google-cloud-apigee-registry-v1:0.45.0:0.46.0-SNAPSHOT +grpc-google-cloud-apigee-registry-v1:0.45.0:0.46.0-SNAPSHOT +google-cloud-apikeys:0.43.0:0.44.0-SNAPSHOT +proto-google-cloud-apikeys-v2:0.43.0:0.44.0-SNAPSHOT +grpc-google-cloud-apikeys-v2:0.43.0:0.44.0-SNAPSHOT +google-cloud-appengine-admin:2.45.0:2.46.0-SNAPSHOT +grpc-google-cloud-appengine-admin-v1:2.45.0:2.46.0-SNAPSHOT +proto-google-cloud-appengine-admin-v1:2.45.0:2.46.0-SNAPSHOT +google-area120-tables:0.49.0:0.50.0-SNAPSHOT +grpc-google-area120-tables-v1alpha1:0.49.0:0.50.0-SNAPSHOT +proto-google-area120-tables-v1alpha1:0.49.0:0.50.0-SNAPSHOT +google-cloud-artifact-registry:1.44.0:1.45.0-SNAPSHOT +grpc-google-cloud-artifact-registry-v1beta2:0.50.0:0.51.0-SNAPSHOT +grpc-google-cloud-artifact-registry-v1:1.44.0:1.45.0-SNAPSHOT +proto-google-cloud-artifact-registry-v1beta2:0.50.0:0.51.0-SNAPSHOT +proto-google-cloud-artifact-registry-v1:1.44.0:1.45.0-SNAPSHOT +google-cloud-asset:3.49.0:3.50.0-SNAPSHOT +grpc-google-cloud-asset-v1:3.49.0:3.50.0-SNAPSHOT +grpc-google-cloud-asset-v1p1beta1:0.149.0:0.150.0-SNAPSHOT +grpc-google-cloud-asset-v1p2beta1:0.149.0:0.150.0-SNAPSHOT +grpc-google-cloud-asset-v1p5beta1:0.149.0:0.150.0-SNAPSHOT +grpc-google-cloud-asset-v1p7beta1:3.49.0:3.50.0-SNAPSHOT +proto-google-cloud-asset-v1:3.49.0:3.50.0-SNAPSHOT +proto-google-cloud-asset-v1p1beta1:0.149.0:0.150.0-SNAPSHOT +proto-google-cloud-asset-v1p2beta1:0.149.0:0.150.0-SNAPSHOT +proto-google-cloud-asset-v1p5beta1:0.149.0:0.150.0-SNAPSHOT +proto-google-cloud-asset-v1p7beta1:3.49.0:3.50.0-SNAPSHOT +google-cloud-assured-workloads:2.45.0:2.46.0-SNAPSHOT +grpc-google-cloud-assured-workloads-v1beta1:0.57.0:0.58.0-SNAPSHOT +grpc-google-cloud-assured-workloads-v1:2.45.0:2.46.0-SNAPSHOT +proto-google-cloud-assured-workloads-v1beta1:0.57.0:0.58.0-SNAPSHOT +proto-google-cloud-assured-workloads-v1:2.45.0:2.46.0-SNAPSHOT +google-cloud-automl:2.45.0:2.46.0-SNAPSHOT +grpc-google-cloud-automl-v1beta1:0.132.0:0.133.0-SNAPSHOT +grpc-google-cloud-automl-v1:2.45.0:2.46.0-SNAPSHOT +proto-google-cloud-automl-v1beta1:0.132.0:0.133.0-SNAPSHOT +proto-google-cloud-automl-v1:2.45.0:2.46.0-SNAPSHOT +google-cloud-bare-metal-solution:0.45.0:0.46.0-SNAPSHOT +proto-google-cloud-bare-metal-solution-v2:0.45.0:0.46.0-SNAPSHOT +grpc-google-cloud-bare-metal-solution-v2:0.45.0:0.46.0-SNAPSHOT +google-cloud-batch:0.45.0:0.46.0-SNAPSHOT +proto-google-cloud-batch-v1:0.45.0:0.46.0-SNAPSHOT +grpc-google-cloud-batch-v1:0.45.0:0.46.0-SNAPSHOT +proto-google-cloud-batch-v1alpha:0.45.0:0.46.0-SNAPSHOT +grpc-google-cloud-batch-v1alpha:0.45.0:0.46.0-SNAPSHOT +google-cloud-beyondcorp-appconnections:0.43.0:0.44.0-SNAPSHOT +proto-google-cloud-beyondcorp-appconnections-v1:0.43.0:0.44.0-SNAPSHOT +grpc-google-cloud-beyondcorp-appconnections-v1:0.43.0:0.44.0-SNAPSHOT +google-cloud-beyondcorp-appconnectors:0.43.0:0.44.0-SNAPSHOT +proto-google-cloud-beyondcorp-appconnectors-v1:0.43.0:0.44.0-SNAPSHOT +grpc-google-cloud-beyondcorp-appconnectors-v1:0.43.0:0.44.0-SNAPSHOT +google-cloud-beyondcorp-appgateways:0.43.0:0.44.0-SNAPSHOT +proto-google-cloud-beyondcorp-appgateways-v1:0.43.0:0.44.0-SNAPSHOT +grpc-google-cloud-beyondcorp-appgateways-v1:0.43.0:0.44.0-SNAPSHOT +google-cloud-beyondcorp-clientconnectorservices:0.43.0:0.44.0-SNAPSHOT +proto-google-cloud-beyondcorp-clientconnectorservices-v1:0.43.0:0.44.0-SNAPSHOT +grpc-google-cloud-beyondcorp-clientconnectorservices-v1:0.43.0:0.44.0-SNAPSHOT +google-cloud-beyondcorp-clientgateways:0.43.0:0.44.0-SNAPSHOT +proto-google-cloud-beyondcorp-clientgateways-v1:0.43.0:0.44.0-SNAPSHOT +grpc-google-cloud-beyondcorp-clientgateways-v1:0.43.0:0.44.0-SNAPSHOT +google-cloud-bigqueryconnection:2.47.0:2.48.0-SNAPSHOT +grpc-google-cloud-bigqueryconnection-v1:2.47.0:2.48.0-SNAPSHOT +grpc-google-cloud-bigqueryconnection-v1beta1:0.55.0:0.56.0-SNAPSHOT +proto-google-cloud-bigqueryconnection-v1:2.47.0:2.48.0-SNAPSHOT +proto-google-cloud-bigqueryconnection-v1beta1:0.55.0:0.56.0-SNAPSHOT +google-cloud-bigquery-data-exchange:2.40.0:2.41.0-SNAPSHOT +proto-google-cloud-bigquery-data-exchange-v1beta1:2.40.0:2.41.0-SNAPSHOT +grpc-google-cloud-bigquery-data-exchange-v1beta1:2.40.0:2.41.0-SNAPSHOT +google-cloud-bigquerydatapolicy:0.42.0:0.43.0-SNAPSHOT +proto-google-cloud-bigquerydatapolicy-v1beta1:0.42.0:0.43.0-SNAPSHOT +grpc-google-cloud-bigquerydatapolicy-v1beta1:0.42.0:0.43.0-SNAPSHOT +google-cloud-bigquerydatatransfer:2.45.0:2.46.0-SNAPSHOT +grpc-google-cloud-bigquerydatatransfer-v1:2.45.0:2.46.0-SNAPSHOT +proto-google-cloud-bigquerydatatransfer-v1:2.45.0:2.46.0-SNAPSHOT +google-cloud-bigquerymigration:0.48.0:0.49.0-SNAPSHOT +grpc-google-cloud-bigquerymigration-v2alpha:0.48.0:0.49.0-SNAPSHOT +proto-google-cloud-bigquerymigration-v2alpha:0.48.0:0.49.0-SNAPSHOT +proto-google-cloud-bigquerymigration-v2:0.48.0:0.49.0-SNAPSHOT +grpc-google-cloud-bigquerymigration-v2:0.48.0:0.49.0-SNAPSHOT +google-cloud-bigqueryreservation:2.46.0:2.47.0-SNAPSHOT +grpc-google-cloud-bigqueryreservation-v1:2.46.0:2.47.0-SNAPSHOT +proto-google-cloud-bigqueryreservation-v1:2.46.0:2.47.0-SNAPSHOT +google-cloud-billingbudgets:2.45.0:2.46.0-SNAPSHOT +grpc-google-cloud-billingbudgets-v1beta1:0.54.0:0.55.0-SNAPSHOT +grpc-google-cloud-billingbudgets-v1:2.45.0:2.46.0-SNAPSHOT +proto-google-cloud-billingbudgets-v1beta1:0.54.0:0.55.0-SNAPSHOT +proto-google-cloud-billingbudgets-v1:2.45.0:2.46.0-SNAPSHOT +google-cloud-billing:2.45.0:2.46.0-SNAPSHOT +grpc-google-cloud-billing-v1:2.45.0:2.46.0-SNAPSHOT +proto-google-cloud-billing-v1:2.45.0:2.46.0-SNAPSHOT +google-cloud-binary-authorization:1.44.0:1.45.0-SNAPSHOT +grpc-google-cloud-binary-authorization-v1beta1:0.49.0:0.50.0-SNAPSHOT +grpc-google-cloud-binary-authorization-v1:1.44.0:1.45.0-SNAPSHOT +proto-google-cloud-binary-authorization-v1beta1:0.49.0:0.50.0-SNAPSHOT +proto-google-cloud-binary-authorization-v1:1.44.0:1.45.0-SNAPSHOT +google-cloud-certificate-manager:0.48.0:0.49.0-SNAPSHOT +proto-google-cloud-certificate-manager-v1:0.48.0:0.49.0-SNAPSHOT +grpc-google-cloud-certificate-manager-v1:0.48.0:0.49.0-SNAPSHOT +google-cloud-channel:3.49.0:3.50.0-SNAPSHOT +grpc-google-cloud-channel-v1:3.49.0:3.50.0-SNAPSHOT +proto-google-cloud-channel-v1:3.49.0:3.50.0-SNAPSHOT +google-cloud-build:3.47.0:3.48.0-SNAPSHOT +grpc-google-cloud-build-v1:3.47.0:3.48.0-SNAPSHOT +proto-google-cloud-build-v1:3.47.0:3.48.0-SNAPSHOT +google-cloud-cloudcommerceconsumerprocurement:0.43.0:0.44.0-SNAPSHOT +proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1:0.43.0:0.44.0-SNAPSHOT +grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1:0.43.0:0.44.0-SNAPSHOT +google-cloud-compute:1.55.0:1.56.0-SNAPSHOT +proto-google-cloud-compute-v1:1.55.0:1.56.0-SNAPSHOT +google-cloud-contact-center-insights:2.45.0:2.46.0-SNAPSHOT +grpc-google-cloud-contact-center-insights-v1:2.45.0:2.46.0-SNAPSHOT +proto-google-cloud-contact-center-insights-v1:2.45.0:2.46.0-SNAPSHOT +proto-google-cloud-containeranalysis-v1:2.46.0:2.47.0-SNAPSHOT +proto-google-cloud-containeranalysis-v1beta1:0.136.0:0.137.0-SNAPSHOT +grpc-google-cloud-containeranalysis-v1beta1:0.136.0:0.137.0-SNAPSHOT +grpc-google-cloud-containeranalysis-v1:2.46.0:2.47.0-SNAPSHOT +google-cloud-containeranalysis:2.46.0:2.47.0-SNAPSHOT +google-cloud-container:2.48.0:2.49.0-SNAPSHOT +grpc-google-cloud-container-v1:2.48.0:2.49.0-SNAPSHOT +grpc-google-cloud-container-v1beta1:2.48.0:2.49.0-SNAPSHOT +proto-google-cloud-container-v1:2.48.0:2.49.0-SNAPSHOT +proto-google-cloud-container-v1beta1:2.48.0:2.49.0-SNAPSHOT +google-cloud-contentwarehouse:0.41.0:0.42.0-SNAPSHOT +proto-google-cloud-contentwarehouse-v1:0.41.0:0.42.0-SNAPSHOT +grpc-google-cloud-contentwarehouse-v1:0.41.0:0.42.0-SNAPSHOT +google-cloud-datacatalog:1.51.0:1.52.0-SNAPSHOT +grpc-google-cloud-datacatalog-v1:1.51.0:1.52.0-SNAPSHOT +grpc-google-cloud-datacatalog-v1beta1:0.88.0:0.89.0-SNAPSHOT +proto-google-cloud-datacatalog-v1:1.51.0:1.52.0-SNAPSHOT +proto-google-cloud-datacatalog-v1beta1:0.88.0:0.89.0-SNAPSHOT +google-cloud-dataflow:0.49.0:0.50.0-SNAPSHOT +grpc-google-cloud-dataflow-v1beta3:0.49.0:0.50.0-SNAPSHOT +proto-google-cloud-dataflow-v1beta3:0.49.0:0.50.0-SNAPSHOT +google-cloud-dataform:0.44.0:0.45.0-SNAPSHOT +proto-google-cloud-dataform-v1alpha2:0.44.0:0.45.0-SNAPSHOT +grpc-google-cloud-dataform-v1alpha2:0.44.0:0.45.0-SNAPSHOT +proto-google-cloud-dataform-v1beta1:0.44.0:0.45.0-SNAPSHOT +grpc-google-cloud-dataform-v1beta1:0.44.0:0.45.0-SNAPSHOT +google-cloud-data-fusion:1.45.0:1.46.0-SNAPSHOT +grpc-google-cloud-data-fusion-v1beta1:0.49.0:0.50.0-SNAPSHOT +grpc-google-cloud-data-fusion-v1:1.45.0:1.46.0-SNAPSHOT +proto-google-cloud-data-fusion-v1beta1:0.49.0:0.50.0-SNAPSHOT +proto-google-cloud-data-fusion-v1:1.45.0:1.46.0-SNAPSHOT +google-cloud-datalabeling:0.165.0:0.166.0-SNAPSHOT +grpc-google-cloud-datalabeling-v1beta1:0.130.0:0.131.0-SNAPSHOT +proto-google-cloud-datalabeling-v1beta1:0.130.0:0.131.0-SNAPSHOT +google-cloud-dataplex:1.43.0:1.44.0-SNAPSHOT +proto-google-cloud-dataplex-v1:1.43.0:1.44.0-SNAPSHOT +grpc-google-cloud-dataplex-v1:1.43.0:1.44.0-SNAPSHOT +google-cloud-dataproc-metastore:2.46.0:2.47.0-SNAPSHOT +grpc-google-cloud-dataproc-metastore-v1beta:0.50.0:0.51.0-SNAPSHOT +grpc-google-cloud-dataproc-metastore-v1alpha:0.50.0:0.51.0-SNAPSHOT +grpc-google-cloud-dataproc-metastore-v1:2.46.0:2.47.0-SNAPSHOT +proto-google-cloud-dataproc-metastore-v1beta:0.50.0:0.51.0-SNAPSHOT +proto-google-cloud-dataproc-metastore-v1alpha:0.50.0:0.51.0-SNAPSHOT +proto-google-cloud-dataproc-metastore-v1:2.46.0:2.47.0-SNAPSHOT +google-cloud-dataproc:4.42.0:4.43.0-SNAPSHOT +grpc-google-cloud-dataproc-v1:4.42.0:4.43.0-SNAPSHOT +proto-google-cloud-dataproc-v1:4.42.0:4.43.0-SNAPSHOT +google-cloud-datastream:1.44.0:1.45.0-SNAPSHOT +grpc-google-cloud-datastream-v1alpha1:0.49.0:0.50.0-SNAPSHOT +proto-google-cloud-datastream-v1alpha1:0.49.0:0.50.0-SNAPSHOT +proto-google-cloud-datastream-v1:1.44.0:1.45.0-SNAPSHOT +grpc-google-cloud-datastream-v1:1.44.0:1.45.0-SNAPSHOT +google-cloud-debugger-client:1.45.0:1.46.0-SNAPSHOT +grpc-google-cloud-debugger-client-v2:1.45.0:1.46.0-SNAPSHOT +proto-google-cloud-debugger-client-v2:1.45.0:1.46.0-SNAPSHOT +proto-google-devtools-source-protos:1.45.0:1.46.0-SNAPSHOT +google-cloud-deploy:1.43.0:1.44.0-SNAPSHOT +grpc-google-cloud-deploy-v1:1.43.0:1.44.0-SNAPSHOT +proto-google-cloud-deploy-v1:1.43.0:1.44.0-SNAPSHOT +google-cloud-dialogflow-cx:0.56.0:0.57.0-SNAPSHOT +grpc-google-cloud-dialogflow-cx-v3beta1:0.56.0:0.57.0-SNAPSHOT +grpc-google-cloud-dialogflow-cx-v3:0.56.0:0.57.0-SNAPSHOT +proto-google-cloud-dialogflow-cx-v3beta1:0.56.0:0.57.0-SNAPSHOT +proto-google-cloud-dialogflow-cx-v3:0.56.0:0.57.0-SNAPSHOT +google-cloud-dialogflow:4.51.0:4.52.0-SNAPSHOT +grpc-google-cloud-dialogflow-v2beta1:0.149.0:0.150.0-SNAPSHOT +grpc-google-cloud-dialogflow-v2:4.51.0:4.52.0-SNAPSHOT +proto-google-cloud-dialogflow-v2:4.51.0:4.52.0-SNAPSHOT +proto-google-cloud-dialogflow-v2beta1:0.149.0:0.150.0-SNAPSHOT +google-cloud-discoveryengine:0.41.0:0.42.0-SNAPSHOT +proto-google-cloud-discoveryengine-v1beta:0.41.0:0.42.0-SNAPSHOT +grpc-google-cloud-discoveryengine-v1beta:0.41.0:0.42.0-SNAPSHOT +google-cloud-distributedcloudedge:0.42.0:0.43.0-SNAPSHOT +proto-google-cloud-distributedcloudedge-v1:0.42.0:0.43.0-SNAPSHOT +grpc-google-cloud-distributedcloudedge-v1:0.42.0:0.43.0-SNAPSHOT +google-cloud-dlp:3.49.0:3.50.0-SNAPSHOT +grpc-google-cloud-dlp-v2:3.49.0:3.50.0-SNAPSHOT +proto-google-cloud-dlp-v2:3.49.0:3.50.0-SNAPSHOT +google-cloud-dms:2.44.0:2.45.0-SNAPSHOT +grpc-google-cloud-dms-v1:2.44.0:2.45.0-SNAPSHOT +proto-google-cloud-dms-v1:2.44.0:2.45.0-SNAPSHOT +google-cloud-document-ai:2.49.0:2.50.0-SNAPSHOT +grpc-google-cloud-document-ai-v1beta1:0.61.0:0.62.0-SNAPSHOT +grpc-google-cloud-document-ai-v1beta2:0.61.0:0.62.0-SNAPSHOT +grpc-google-cloud-document-ai-v1beta3:0.61.0:0.62.0-SNAPSHOT +grpc-google-cloud-document-ai-v1:2.49.0:2.50.0-SNAPSHOT +proto-google-cloud-document-ai-v1beta1:0.61.0:0.62.0-SNAPSHOT +proto-google-cloud-document-ai-v1beta2:0.61.0:0.62.0-SNAPSHOT +proto-google-cloud-document-ai-v1beta3:0.61.0:0.62.0-SNAPSHOT +proto-google-cloud-document-ai-v1:2.49.0:2.50.0-SNAPSHOT +google-cloud-domains:1.42.0:1.43.0-SNAPSHOT +grpc-google-cloud-domains-v1beta1:0.50.0:0.51.0-SNAPSHOT +grpc-google-cloud-domains-v1alpha2:0.50.0:0.51.0-SNAPSHOT +grpc-google-cloud-domains-v1:1.42.0:1.43.0-SNAPSHOT +proto-google-cloud-domains-v1beta1:0.50.0:0.51.0-SNAPSHOT +proto-google-cloud-domains-v1alpha2:0.50.0:0.51.0-SNAPSHOT +proto-google-cloud-domains-v1:1.42.0:1.43.0-SNAPSHOT +google-cloud-enterpriseknowledgegraph:0.41.0:0.42.0-SNAPSHOT +proto-google-cloud-enterpriseknowledgegraph-v1:0.41.0:0.42.0-SNAPSHOT +grpc-google-cloud-enterpriseknowledgegraph-v1:0.41.0:0.42.0-SNAPSHOT +google-cloud-errorreporting:0.166.0-beta:0.167.0-beta-SNAPSHOT +grpc-google-cloud-error-reporting-v1beta1:0.132.0:0.133.0-SNAPSHOT +proto-google-cloud-error-reporting-v1beta1:0.132.0:0.133.0-SNAPSHOT +google-cloud-essential-contacts:2.45.0:2.46.0-SNAPSHOT +grpc-google-cloud-essential-contacts-v1:2.45.0:2.46.0-SNAPSHOT +proto-google-cloud-essential-contacts-v1:2.45.0:2.46.0-SNAPSHOT +google-cloud-eventarc:1.45.0:1.46.0-SNAPSHOT +grpc-google-cloud-eventarc-v1:1.45.0:1.46.0-SNAPSHOT +proto-google-cloud-eventarc-v1:1.45.0:1.46.0-SNAPSHOT +google-cloud-eventarc-publishing:0.45.0:0.46.0-SNAPSHOT +proto-google-cloud-eventarc-publishing-v1:0.45.0:0.46.0-SNAPSHOT +grpc-google-cloud-eventarc-publishing-v1:0.45.0:0.46.0-SNAPSHOT +google-cloud-filestore:1.46.0:1.47.0-SNAPSHOT +grpc-google-cloud-filestore-v1beta1:0.48.0:0.49.0-SNAPSHOT +grpc-google-cloud-filestore-v1:1.46.0:1.47.0-SNAPSHOT +proto-google-cloud-filestore-v1:1.46.0:1.47.0-SNAPSHOT +proto-google-cloud-filestore-v1beta1:0.48.0:0.49.0-SNAPSHOT +google-cloud-functions:2.47.0:2.48.0-SNAPSHOT +grpc-google-cloud-functions-v1:2.47.0:2.48.0-SNAPSHOT +proto-google-cloud-functions-v1:2.47.0:2.48.0-SNAPSHOT +proto-google-cloud-functions-v2beta:2.47.0:2.48.0-SNAPSHOT +proto-google-cloud-functions-v2alpha:2.47.0:2.48.0-SNAPSHOT +grpc-google-cloud-functions-v2beta:2.47.0:2.48.0-SNAPSHOT +grpc-google-cloud-functions-v2alpha:2.47.0:2.48.0-SNAPSHOT +proto-google-cloud-functions-v2:2.47.0:2.48.0-SNAPSHOT +grpc-google-cloud-functions-v2:2.47.0:2.48.0-SNAPSHOT +google-cloud-game-servers:2.45.0:2.46.0-SNAPSHOT +grpc-google-cloud-game-servers-v1:2.45.0:2.46.0-SNAPSHOT +grpc-google-cloud-game-servers-v1beta:0.70.0:0.71.0-SNAPSHOT +proto-google-cloud-game-servers-v1:2.45.0:2.46.0-SNAPSHOT +proto-google-cloud-game-servers-v1beta:0.70.0:0.71.0-SNAPSHOT +google-cloud-gke-backup:0.44.0:0.45.0-SNAPSHOT +proto-google-cloud-gke-backup-v1:0.44.0:0.45.0-SNAPSHOT +grpc-google-cloud-gke-backup-v1:0.44.0:0.45.0-SNAPSHOT +google-cloud-gke-connect-gateway:0.46.0:0.47.0-SNAPSHOT +grpc-google-cloud-gke-connect-gateway-v1beta1:0.46.0:0.47.0-SNAPSHOT +proto-google-cloud-gke-connect-gateway-v1beta1:0.46.0:0.47.0-SNAPSHOT +google-cloud-gkehub:1.45.0:1.46.0-SNAPSHOT +grpc-google-cloud-gkehub-v1beta1:0.51.0:0.52.0-SNAPSHOT +grpc-google-cloud-gkehub-v1:1.45.0:1.46.0-SNAPSHOT +grpc-google-cloud-gkehub-v1alpha:0.51.0:0.52.0-SNAPSHOT +grpc-google-cloud-gkehub-v1beta:0.51.0:0.52.0-SNAPSHOT +proto-google-cloud-gkehub-v1beta1:0.51.0:0.52.0-SNAPSHOT +proto-google-cloud-gkehub-v1:1.45.0:1.46.0-SNAPSHOT +proto-google-cloud-gkehub-v1alpha:0.51.0:0.52.0-SNAPSHOT +proto-google-cloud-gkehub-v1beta:0.51.0:0.52.0-SNAPSHOT +google-cloud-gke-multi-cloud:0.44.0:0.45.0-SNAPSHOT +proto-google-cloud-gke-multi-cloud-v1:0.44.0:0.45.0-SNAPSHOT +grpc-google-cloud-gke-multi-cloud-v1:0.44.0:0.45.0-SNAPSHOT +grafeas:2.46.0:2.47.0-SNAPSHOT +google-cloud-gsuite-addons:2.45.0:2.46.0-SNAPSHOT +grpc-google-cloud-gsuite-addons-v1:2.45.0:2.46.0-SNAPSHOT +proto-google-cloud-gsuite-addons-v1:2.45.0:2.46.0-SNAPSHOT +proto-google-apps-script-type-protos:2.45.0:2.46.0-SNAPSHOT +google-iam-admin:3.40.0:3.41.0-SNAPSHOT +grpc-google-iam-admin-v1:3.40.0:3.41.0-SNAPSHOT +proto-google-iam-admin-v1:3.40.0:3.41.0-SNAPSHOT +google-cloud-iamcredentials:2.45.0:2.46.0-SNAPSHOT +grpc-google-cloud-iamcredentials-v1:2.45.0:2.46.0-SNAPSHOT +proto-google-cloud-iamcredentials-v1:2.45.0:2.46.0-SNAPSHOT +google-cloud-ids:1.44.0:1.45.0-SNAPSHOT +grpc-google-cloud-ids-v1:1.44.0:1.45.0-SNAPSHOT +proto-google-cloud-ids-v1:1.44.0:1.45.0-SNAPSHOT +google-cloud-iot:2.45.0:2.46.0-SNAPSHOT +grpc-google-cloud-iot-v1:2.45.0:2.46.0-SNAPSHOT +proto-google-cloud-iot-v1:2.45.0:2.46.0-SNAPSHOT +google-cloud-kms:2.48.0:2.49.0-SNAPSHOT +grpc-google-cloud-kms-v1:0.139.0:0.140.0-SNAPSHOT +proto-google-cloud-kms-v1:0.139.0:0.140.0-SNAPSHOT +google-cloud-language:2.46.0:2.47.0-SNAPSHOT +grpc-google-cloud-language-v1:2.46.0:2.47.0-SNAPSHOT +grpc-google-cloud-language-v1beta2:0.133.0:0.134.0-SNAPSHOT +proto-google-cloud-language-v1:2.46.0:2.47.0-SNAPSHOT +proto-google-cloud-language-v1beta2:0.133.0:0.134.0-SNAPSHOT +google-cloud-life-sciences:0.47.0:0.48.0-SNAPSHOT +grpc-google-cloud-life-sciences-v2beta:0.47.0:0.48.0-SNAPSHOT +proto-google-cloud-life-sciences-v2beta:0.47.0:0.48.0-SNAPSHOT +google-cloud-managed-identities:1.43.0:1.44.0-SNAPSHOT +grpc-google-cloud-managed-identities-v1:1.43.0:1.44.0-SNAPSHOT +proto-google-cloud-managed-identities-v1:1.43.0:1.44.0-SNAPSHOT +google-cloud-mediatranslation:0.51.0:0.52.0-SNAPSHOT +grpc-google-cloud-mediatranslation-v1beta1:0.51.0:0.52.0-SNAPSHOT +proto-google-cloud-mediatranslation-v1beta1:0.51.0:0.52.0-SNAPSHOT +google-cloud-memcache:2.45.0:2.46.0-SNAPSHOT +grpc-google-cloud-memcache-v1beta2:0.52.0:0.53.0-SNAPSHOT +grpc-google-cloud-memcache-v1:2.45.0:2.46.0-SNAPSHOT +proto-google-cloud-memcache-v1beta2:0.52.0:0.53.0-SNAPSHOT +proto-google-cloud-memcache-v1:2.45.0:2.46.0-SNAPSHOT +google-cloud-monitoring-dashboard:2.47.0:2.48.0-SNAPSHOT +grpc-google-cloud-monitoring-dashboard-v1:2.47.0:2.48.0-SNAPSHOT +proto-google-cloud-monitoring-dashboard-v1:2.47.0:2.48.0-SNAPSHOT +google-cloud-monitoring:3.46.0:3.47.0-SNAPSHOT +grpc-google-cloud-monitoring-v3:3.46.0:3.47.0-SNAPSHOT +proto-google-cloud-monitoring-v3:3.46.0:3.47.0-SNAPSHOT +google-cloud-networkconnectivity:1.44.0:1.45.0-SNAPSHOT +grpc-google-cloud-networkconnectivity-v1alpha1:0.50.0:0.51.0-SNAPSHOT +grpc-google-cloud-networkconnectivity-v1:1.44.0:1.45.0-SNAPSHOT +proto-google-cloud-networkconnectivity-v1alpha1:0.50.0:0.51.0-SNAPSHOT +proto-google-cloud-networkconnectivity-v1:1.44.0:1.45.0-SNAPSHOT +google-cloud-network-management:1.46.0:1.47.0-SNAPSHOT +grpc-google-cloud-network-management-v1beta1:0.48.0:0.49.0-SNAPSHOT +grpc-google-cloud-network-management-v1:1.46.0:1.47.0-SNAPSHOT +proto-google-cloud-network-management-v1beta1:0.48.0:0.49.0-SNAPSHOT +proto-google-cloud-network-management-v1:1.46.0:1.47.0-SNAPSHOT +google-cloud-network-security:0.48.0:0.49.0-SNAPSHOT +grpc-google-cloud-network-security-v1beta1:0.48.0:0.49.0-SNAPSHOT +proto-google-cloud-network-security-v1beta1:0.48.0:0.49.0-SNAPSHOT +proto-google-cloud-network-security-v1:0.48.0:0.49.0-SNAPSHOT +grpc-google-cloud-network-security-v1:0.48.0:0.49.0-SNAPSHOT +google-cloud-notebooks:1.43.0:1.44.0-SNAPSHOT +grpc-google-cloud-notebooks-v1beta1:0.50.0:0.51.0-SNAPSHOT +grpc-google-cloud-notebooks-v1:1.43.0:1.44.0-SNAPSHOT +proto-google-cloud-notebooks-v1beta1:0.50.0:0.51.0-SNAPSHOT +proto-google-cloud-notebooks-v1:1.43.0:1.44.0-SNAPSHOT +google-cloud-notification:0.163.0-beta:0.164.0-beta-SNAPSHOT +google-cloud-optimization:1.43.0:1.44.0-SNAPSHOT +proto-google-cloud-optimization-v1:1.43.0:1.44.0-SNAPSHOT +grpc-google-cloud-optimization-v1:1.43.0:1.44.0-SNAPSHOT +google-cloud-orchestration-airflow:1.45.0:1.46.0-SNAPSHOT +grpc-google-cloud-orchestration-airflow-v1:1.45.0:1.46.0-SNAPSHOT +grpc-google-cloud-orchestration-airflow-v1beta1:0.48.0:0.49.0-SNAPSHOT +proto-google-cloud-orchestration-airflow-v1:1.45.0:1.46.0-SNAPSHOT +proto-google-cloud-orchestration-airflow-v1beta1:0.48.0:0.49.0-SNAPSHOT +google-cloud-orgpolicy:2.45.0:2.46.0-SNAPSHOT +grpc-google-cloud-orgpolicy-v2:2.45.0:2.46.0-SNAPSHOT +proto-google-cloud-orgpolicy-v1:2.45.0:2.46.0-SNAPSHOT +proto-google-cloud-orgpolicy-v2:2.45.0:2.46.0-SNAPSHOT +google-cloud-os-config:2.47.0:2.48.0-SNAPSHOT +grpc-google-cloud-os-config-v1:2.47.0:2.48.0-SNAPSHOT +grpc-google-cloud-os-config-v1beta:2.47.0:2.48.0-SNAPSHOT +grpc-google-cloud-os-config-v1alpha:2.47.0:2.48.0-SNAPSHOT +proto-google-cloud-os-config-v1:2.47.0:2.48.0-SNAPSHOT +proto-google-cloud-os-config-v1alpha:2.47.0:2.48.0-SNAPSHOT +proto-google-cloud-os-config-v1beta:2.47.0:2.48.0-SNAPSHOT +google-cloud-os-login:2.44.0:2.45.0-SNAPSHOT +grpc-google-cloud-os-login-v1:2.44.0:2.45.0-SNAPSHOT +proto-google-cloud-os-login-v1:2.44.0:2.45.0-SNAPSHOT +google-cloud-phishingprotection:0.76.0:0.77.0-SNAPSHOT +grpc-google-cloud-phishingprotection-v1beta1:0.76.0:0.77.0-SNAPSHOT +proto-google-cloud-phishingprotection-v1beta1:0.76.0:0.77.0-SNAPSHOT +google-cloud-policy-troubleshooter:1.44.0:1.45.0-SNAPSHOT +grpc-google-cloud-policy-troubleshooter-v1:1.44.0:1.45.0-SNAPSHOT +proto-google-cloud-policy-troubleshooter-v1:1.44.0:1.45.0-SNAPSHOT +google-cloud-private-catalog:0.47.0:0.48.0-SNAPSHOT +grpc-google-cloud-private-catalog-v1beta1:0.47.0:0.48.0-SNAPSHOT +proto-google-cloud-private-catalog-v1beta1:0.47.0:0.48.0-SNAPSHOT +google-cloud-profiler:2.45.0:2.46.0-SNAPSHOT +grpc-google-cloud-profiler-v2:2.45.0:2.46.0-SNAPSHOT +proto-google-cloud-profiler-v2:2.45.0:2.46.0-SNAPSHOT +google-cloud-publicca:0.42.0:0.43.0-SNAPSHOT +proto-google-cloud-publicca-v1beta1:0.42.0:0.43.0-SNAPSHOT +grpc-google-cloud-publicca-v1beta1:0.42.0:0.43.0-SNAPSHOT +google-cloud-recaptchaenterprise:3.42.0:3.43.0-SNAPSHOT +grpc-google-cloud-recaptchaenterprise-v1:3.42.0:3.43.0-SNAPSHOT +grpc-google-cloud-recaptchaenterprise-v1beta1:0.84.0:0.85.0-SNAPSHOT +proto-google-cloud-recaptchaenterprise-v1:3.42.0:3.43.0-SNAPSHOT +proto-google-cloud-recaptchaenterprise-v1beta1:0.84.0:0.85.0-SNAPSHOT +google-cloud-recommendations-ai:0.52.0:0.53.0-SNAPSHOT +grpc-google-cloud-recommendations-ai-v1beta1:0.52.0:0.53.0-SNAPSHOT +proto-google-cloud-recommendations-ai-v1beta1:0.52.0:0.53.0-SNAPSHOT +google-cloud-recommender:2.47.0:2.48.0-SNAPSHOT +grpc-google-cloud-recommender-v1:2.47.0:2.48.0-SNAPSHOT +grpc-google-cloud-recommender-v1beta1:0.59.0:0.60.0-SNAPSHOT +proto-google-cloud-recommender-v1:2.47.0:2.48.0-SNAPSHOT +proto-google-cloud-recommender-v1beta1:0.59.0:0.60.0-SNAPSHOT +google-cloud-redis:2.48.0:2.49.0-SNAPSHOT +grpc-google-cloud-redis-v1beta1:0.136.0:0.137.0-SNAPSHOT +grpc-google-cloud-redis-v1:2.48.0:2.49.0-SNAPSHOT +proto-google-cloud-redis-v1:2.48.0:2.49.0-SNAPSHOT +proto-google-cloud-redis-v1beta1:0.136.0:0.137.0-SNAPSHOT +google-cloud-resourcemanager:1.47.0:1.48.0-SNAPSHOT +grpc-google-cloud-resourcemanager-v3:1.47.0:1.48.0-SNAPSHOT +proto-google-cloud-resourcemanager-v3:1.47.0:1.48.0-SNAPSHOT +google-cloud-resource-settings:1.45.0:1.46.0-SNAPSHOT +grpc-google-cloud-resource-settings-v1:1.45.0:1.46.0-SNAPSHOT +proto-google-cloud-resource-settings-v1:1.45.0:1.46.0-SNAPSHOT +google-cloud-retail:2.47.0:2.48.0-SNAPSHOT +grpc-google-cloud-retail-v2:2.47.0:2.48.0-SNAPSHOT +proto-google-cloud-retail-v2:2.47.0:2.48.0-SNAPSHOT +proto-google-cloud-retail-v2alpha:2.47.0:2.48.0-SNAPSHOT +proto-google-cloud-retail-v2beta:2.47.0:2.48.0-SNAPSHOT +grpc-google-cloud-retail-v2alpha:2.47.0:2.48.0-SNAPSHOT +grpc-google-cloud-retail-v2beta:2.47.0:2.48.0-SNAPSHOT +google-cloud-run:0.45.0:0.46.0-SNAPSHOT +proto-google-cloud-run-v2:0.45.0:0.46.0-SNAPSHOT +grpc-google-cloud-run-v2:0.45.0:0.46.0-SNAPSHOT +google-cloud-scheduler:2.45.0:2.46.0-SNAPSHOT +grpc-google-cloud-scheduler-v1beta1:0.130.0:0.131.0-SNAPSHOT +grpc-google-cloud-scheduler-v1:2.45.0:2.46.0-SNAPSHOT +proto-google-cloud-scheduler-v1beta1:0.130.0:0.131.0-SNAPSHOT +proto-google-cloud-scheduler-v1:2.45.0:2.46.0-SNAPSHOT +google-cloud-secretmanager:2.45.0:2.46.0-SNAPSHOT +grpc-google-cloud-secretmanager-v1:2.45.0:2.46.0-SNAPSHOT +proto-google-cloud-secretmanager-v1:2.45.0:2.46.0-SNAPSHOT +google-cloud-securitycenter:2.53.0:2.54.0-SNAPSHOT +grpc-google-cloud-securitycenter-v1:2.53.0:2.54.0-SNAPSHOT +grpc-google-cloud-securitycenter-v1beta1:0.148.0:0.149.0-SNAPSHOT +grpc-google-cloud-securitycenter-v1p1beta1:0.148.0:0.149.0-SNAPSHOT +proto-google-cloud-securitycenter-v1:2.53.0:2.54.0-SNAPSHOT +proto-google-cloud-securitycenter-v1beta1:0.148.0:0.149.0-SNAPSHOT +proto-google-cloud-securitycenter-v1p1beta1:0.148.0:0.149.0-SNAPSHOT +google-cloud-securitycenter-settings:0.48.0:0.49.0-SNAPSHOT +grpc-google-cloud-securitycenter-settings-v1beta1:0.48.0:0.49.0-SNAPSHOT +proto-google-cloud-securitycenter-settings-v1beta1:0.48.0:0.49.0-SNAPSHOT +google-cloud-security-private-ca:2.47.0:2.48.0-SNAPSHOT +grpc-google-cloud-security-private-ca-v1beta1:0.54.0:0.55.0-SNAPSHOT +grpc-google-cloud-security-private-ca-v1:2.47.0:2.48.0-SNAPSHOT +proto-google-cloud-security-private-ca-v1beta1:0.54.0:0.55.0-SNAPSHOT +proto-google-cloud-security-private-ca-v1:2.47.0:2.48.0-SNAPSHOT +google-cloud-service-control:1.45.0:1.46.0-SNAPSHOT +grpc-google-cloud-service-control-v1:1.45.0:1.46.0-SNAPSHOT +proto-google-cloud-service-control-v1:1.45.0:1.46.0-SNAPSHOT +proto-google-cloud-service-control-v2:1.45.0:1.46.0-SNAPSHOT +grpc-google-cloud-service-control-v2:1.45.0:1.46.0-SNAPSHOT +google-cloud-servicedirectory:2.46.0:2.47.0-SNAPSHOT +grpc-google-cloud-servicedirectory-v1beta1:0.54.0:0.55.0-SNAPSHOT +grpc-google-cloud-servicedirectory-v1:2.46.0:2.47.0-SNAPSHOT +proto-google-cloud-servicedirectory-v1beta1:0.54.0:0.55.0-SNAPSHOT +proto-google-cloud-servicedirectory-v1:2.46.0:2.47.0-SNAPSHOT +google-cloud-service-management:3.43.0:3.44.0-SNAPSHOT +grpc-google-cloud-service-management-v1:3.43.0:3.44.0-SNAPSHOT +proto-google-cloud-service-management-v1:3.43.0:3.44.0-SNAPSHOT +google-cloud-service-usage:2.45.0:2.46.0-SNAPSHOT +grpc-google-cloud-service-usage-v1beta1:0.49.0:0.50.0-SNAPSHOT +grpc-google-cloud-service-usage-v1:2.45.0:2.46.0-SNAPSHOT +proto-google-cloud-service-usage-v1:2.45.0:2.46.0-SNAPSHOT +proto-google-cloud-service-usage-v1beta1:0.49.0:0.50.0-SNAPSHOT +google-cloud-shell:2.44.0:2.45.0-SNAPSHOT +grpc-google-cloud-shell-v1:2.44.0:2.45.0-SNAPSHOT +proto-google-cloud-shell-v1:2.44.0:2.45.0-SNAPSHOT +google-cloud-speech:4.40.0:4.41.0-SNAPSHOT +grpc-google-cloud-speech-v1:4.40.0:4.41.0-SNAPSHOT +grpc-google-cloud-speech-v1beta1:2.40.0:2.41.0-SNAPSHOT +grpc-google-cloud-speech-v1p1beta1:2.40.0:2.41.0-SNAPSHOT +proto-google-cloud-speech-v1:4.40.0:4.41.0-SNAPSHOT +proto-google-cloud-speech-v1beta1:2.40.0:2.41.0-SNAPSHOT +proto-google-cloud-speech-v1p1beta1:2.40.0:2.41.0-SNAPSHOT +proto-google-cloud-speech-v2:4.40.0:4.41.0-SNAPSHOT +grpc-google-cloud-speech-v2:4.40.0:4.41.0-SNAPSHOT +google-cloud-storage-transfer:1.45.0:1.46.0-SNAPSHOT +grpc-google-cloud-storage-transfer-v1:1.45.0:1.46.0-SNAPSHOT +proto-google-cloud-storage-transfer-v1:1.45.0:1.46.0-SNAPSHOT +google-cloud-talent:2.46.0:2.47.0-SNAPSHOT +grpc-google-cloud-talent-v4:2.46.0:2.47.0-SNAPSHOT +grpc-google-cloud-talent-v4beta1:0.89.0:0.90.0-SNAPSHOT +proto-google-cloud-talent-v4:2.46.0:2.47.0-SNAPSHOT +proto-google-cloud-talent-v4beta1:0.89.0:0.90.0-SNAPSHOT +google-cloud-tasks:2.45.0:2.46.0-SNAPSHOT +grpc-google-cloud-tasks-v2beta3:0.135.0:0.136.0-SNAPSHOT +grpc-google-cloud-tasks-v2beta2:0.135.0:0.136.0-SNAPSHOT +grpc-google-cloud-tasks-v2:2.45.0:2.46.0-SNAPSHOT +proto-google-cloud-tasks-v2beta3:0.135.0:0.136.0-SNAPSHOT +proto-google-cloud-tasks-v2beta2:0.135.0:0.136.0-SNAPSHOT +proto-google-cloud-tasks-v2:2.45.0:2.46.0-SNAPSHOT +google-cloud-texttospeech:2.46.0:2.47.0-SNAPSHOT +grpc-google-cloud-texttospeech-v1beta1:0.135.0:0.136.0-SNAPSHOT +grpc-google-cloud-texttospeech-v1:2.46.0:2.47.0-SNAPSHOT +proto-google-cloud-texttospeech-v1:2.46.0:2.47.0-SNAPSHOT +proto-google-cloud-texttospeech-v1beta1:0.135.0:0.136.0-SNAPSHOT +google-cloud-tpu:2.46.0:2.47.0-SNAPSHOT +grpc-google-cloud-tpu-v1:2.46.0:2.47.0-SNAPSHOT +grpc-google-cloud-tpu-v2alpha1:2.46.0:2.47.0-SNAPSHOT +proto-google-cloud-tpu-v1:2.46.0:2.47.0-SNAPSHOT +proto-google-cloud-tpu-v2alpha1:2.46.0:2.47.0-SNAPSHOT +google-cloud-trace:2.45.0:2.46.0-SNAPSHOT +grpc-google-cloud-trace-v1:2.45.0:2.46.0-SNAPSHOT +grpc-google-cloud-trace-v2:2.45.0:2.46.0-SNAPSHOT +proto-google-cloud-trace-v1:2.45.0:2.46.0-SNAPSHOT +proto-google-cloud-trace-v2:2.45.0:2.46.0-SNAPSHOT +google-cloud-translate:2.45.0:2.46.0-SNAPSHOT +grpc-google-cloud-translate-v3beta1:0.127.0:0.128.0-SNAPSHOT +grpc-google-cloud-translate-v3:2.45.0:2.46.0-SNAPSHOT +proto-google-cloud-translate-v3beta1:0.127.0:0.128.0-SNAPSHOT +proto-google-cloud-translate-v3:2.45.0:2.46.0-SNAPSHOT +google-cloud-video-intelligence:2.44.0:2.45.0-SNAPSHOT +grpc-google-cloud-video-intelligence-v1p1beta1:0.134.0:0.135.0-SNAPSHOT +grpc-google-cloud-video-intelligence-v1beta2:0.134.0:0.135.0-SNAPSHOT +grpc-google-cloud-video-intelligence-v1:2.44.0:2.45.0-SNAPSHOT +grpc-google-cloud-video-intelligence-v1p2beta1:0.134.0:0.135.0-SNAPSHOT +grpc-google-cloud-video-intelligence-v1p3beta1:0.134.0:0.135.0-SNAPSHOT +proto-google-cloud-video-intelligence-v1p3beta1:0.134.0:0.135.0-SNAPSHOT +proto-google-cloud-video-intelligence-v1beta2:0.134.0:0.135.0-SNAPSHOT +proto-google-cloud-video-intelligence-v1p1beta1:0.134.0:0.135.0-SNAPSHOT +proto-google-cloud-video-intelligence-v1:2.44.0:2.45.0-SNAPSHOT +proto-google-cloud-video-intelligence-v1p2beta1:0.134.0:0.135.0-SNAPSHOT +google-cloud-live-stream:0.47.0:0.48.0-SNAPSHOT +proto-google-cloud-live-stream-v1:0.47.0:0.48.0-SNAPSHOT +grpc-google-cloud-live-stream-v1:0.47.0:0.48.0-SNAPSHOT +google-cloud-video-stitcher:0.45.0:0.46.0-SNAPSHOT +proto-google-cloud-video-stitcher-v1:0.45.0:0.46.0-SNAPSHOT +grpc-google-cloud-video-stitcher-v1:0.45.0:0.46.0-SNAPSHOT +google-cloud-video-transcoder:1.44.0:1.45.0-SNAPSHOT +grpc-google-cloud-video-transcoder-v1:1.44.0:1.45.0-SNAPSHOT +proto-google-cloud-video-transcoder-v1:1.44.0:1.45.0-SNAPSHOT +google-cloud-vision:3.43.0:3.44.0-SNAPSHOT +grpc-google-cloud-vision-v1p3beta1:0.132.0:0.133.0-SNAPSHOT +grpc-google-cloud-vision-v1p1beta1:0.132.0:0.133.0-SNAPSHOT +grpc-google-cloud-vision-v1p4beta1:0.132.0:0.133.0-SNAPSHOT +grpc-google-cloud-vision-v1p2beta1:3.43.0:3.44.0-SNAPSHOT +grpc-google-cloud-vision-v1:3.43.0:3.44.0-SNAPSHOT +proto-google-cloud-vision-v1p4beta1:0.132.0:0.133.0-SNAPSHOT +proto-google-cloud-vision-v1:3.43.0:3.44.0-SNAPSHOT +proto-google-cloud-vision-v1p1beta1:0.132.0:0.133.0-SNAPSHOT +proto-google-cloud-vision-v1p3beta1:0.132.0:0.133.0-SNAPSHOT +proto-google-cloud-vision-v1p2beta1:3.43.0:3.44.0-SNAPSHOT +google-cloud-vmmigration:1.45.0:1.46.0-SNAPSHOT +grpc-google-cloud-vmmigration-v1:1.45.0:1.46.0-SNAPSHOT +proto-google-cloud-vmmigration-v1:1.45.0:1.46.0-SNAPSHOT +google-cloud-vpcaccess:2.46.0:2.47.0-SNAPSHOT +grpc-google-cloud-vpcaccess-v1:2.46.0:2.47.0-SNAPSHOT +proto-google-cloud-vpcaccess-v1:2.46.0:2.47.0-SNAPSHOT +google-cloud-webrisk:2.44.0:2.45.0-SNAPSHOT +grpc-google-cloud-webrisk-v1:2.44.0:2.45.0-SNAPSHOT +grpc-google-cloud-webrisk-v1beta1:0.81.0:0.82.0-SNAPSHOT +proto-google-cloud-webrisk-v1:2.44.0:2.45.0-SNAPSHOT +proto-google-cloud-webrisk-v1beta1:0.81.0:0.82.0-SNAPSHOT +google-cloud-websecurityscanner:2.45.0:2.46.0-SNAPSHOT +grpc-google-cloud-websecurityscanner-v1alpha:0.132.0:0.133.0-SNAPSHOT +grpc-google-cloud-websecurityscanner-v1beta:0.132.0:0.133.0-SNAPSHOT +grpc-google-cloud-websecurityscanner-v1:2.45.0:2.46.0-SNAPSHOT +proto-google-cloud-websecurityscanner-v1alpha:0.132.0:0.133.0-SNAPSHOT +proto-google-cloud-websecurityscanner-v1beta:0.132.0:0.133.0-SNAPSHOT +proto-google-cloud-websecurityscanner-v1:2.45.0:2.46.0-SNAPSHOT +google-cloud-workflow-executions:2.45.0:2.46.0-SNAPSHOT +grpc-google-cloud-workflow-executions-v1beta:0.49.0:0.50.0-SNAPSHOT +grpc-google-cloud-workflow-executions-v1:2.45.0:2.46.0-SNAPSHOT +proto-google-cloud-workflow-executions-v1beta:0.49.0:0.50.0-SNAPSHOT +proto-google-cloud-workflow-executions-v1:2.45.0:2.46.0-SNAPSHOT +google-cloud-workflows:2.45.0:2.46.0-SNAPSHOT +grpc-google-cloud-workflows-v1beta:0.51.0:0.52.0-SNAPSHOT +grpc-google-cloud-workflows-v1:2.45.0:2.46.0-SNAPSHOT +proto-google-cloud-workflows-v1beta:0.51.0:0.52.0-SNAPSHOT +proto-google-cloud-workflows-v1:2.45.0:2.46.0-SNAPSHOT +google-cloud-dns:2.43.0:2.44.0-SNAPSHOT +google-maps-routing:1.30.0:1.31.0-SNAPSHOT +proto-google-maps-routing-v2:1.30.0:1.31.0-SNAPSHOT +grpc-google-maps-routing-v2:1.30.0:1.31.0-SNAPSHOT +google-cloud-vmwareengine:0.39.0:0.40.0-SNAPSHOT +proto-google-cloud-vmwareengine-v1:0.39.0:0.40.0-SNAPSHOT +grpc-google-cloud-vmwareengine-v1:0.39.0:0.40.0-SNAPSHOT +google-maps-addressvalidation:0.39.0:0.40.0-SNAPSHOT +proto-google-maps-addressvalidation-v1:0.39.0:0.40.0-SNAPSHOT +grpc-google-maps-addressvalidation-v1:0.39.0:0.40.0-SNAPSHOT +proto-google-cloud-bigquerydatapolicy-v1:0.42.0:0.43.0-SNAPSHOT +grpc-google-cloud-bigquerydatapolicy-v1:0.42.0:0.43.0-SNAPSHOT +google-cloud-monitoring-metricsscope:0.39.0:0.40.0-SNAPSHOT +proto-google-cloud-monitoring-metricsscope-v1:0.39.0:0.40.0-SNAPSHOT +grpc-google-cloud-monitoring-metricsscope-v1:0.39.0:0.40.0-SNAPSHOT +proto-google-cloud-tpu-v2:2.46.0:2.47.0-SNAPSHOT +grpc-google-cloud-tpu-v2:2.46.0:2.47.0-SNAPSHOT +google-cloud-datalineage:0.37.0:0.38.0-SNAPSHOT +proto-google-cloud-datalineage-v1:0.37.0:0.38.0-SNAPSHOT +grpc-google-cloud-datalineage-v1:0.37.0:0.38.0-SNAPSHOT +google-iam-policy:1.43.0:1.44.0-SNAPSHOT +proto-google-cloud-build-v2:3.47.0:3.48.0-SNAPSHOT +grpc-google-cloud-build-v2:3.47.0:3.48.0-SNAPSHOT +google-cloud-advisorynotifications:0.34.0:0.35.0-SNAPSHOT +proto-google-cloud-advisorynotifications-v1:0.34.0:0.35.0-SNAPSHOT +grpc-google-cloud-advisorynotifications-v1:0.34.0:0.35.0-SNAPSHOT +google-maps-mapsplatformdatasets:0.34.0:0.35.0-SNAPSHOT +google-cloud-kmsinventory:0.34.0:0.35.0-SNAPSHOT +proto-google-cloud-kmsinventory-v1:0.34.0:0.35.0-SNAPSHOT +grpc-google-cloud-kmsinventory-v1:0.34.0:0.35.0-SNAPSHOT +google-cloud-alloydb:0.34.0:0.35.0-SNAPSHOT +proto-google-cloud-alloydb-v1:0.34.0:0.35.0-SNAPSHOT +proto-google-cloud-alloydb-v1beta:0.34.0:0.35.0-SNAPSHOT +proto-google-cloud-alloydb-v1alpha:0.34.0:0.35.0-SNAPSHOT +grpc-google-cloud-alloydb-v1beta:0.34.0:0.35.0-SNAPSHOT +grpc-google-cloud-alloydb-v1:0.34.0:0.35.0-SNAPSHOT +grpc-google-cloud-alloydb-v1alpha:0.34.0:0.35.0-SNAPSHOT +google-cloud-biglake:0.33.0:0.34.0-SNAPSHOT +proto-google-cloud-biglake-v1alpha1:0.33.0:0.34.0-SNAPSHOT +grpc-google-cloud-biglake-v1alpha1:0.33.0:0.34.0-SNAPSHOT +google-cloud-workstations:0.33.0:0.34.0-SNAPSHOT +proto-google-cloud-workstations-v1beta:0.33.0:0.34.0-SNAPSHOT +grpc-google-cloud-workstations-v1beta:0.33.0:0.34.0-SNAPSHOT +google-cloud-confidentialcomputing:0.31.0:0.32.0-SNAPSHOT +proto-google-cloud-confidentialcomputing-v1:0.31.0:0.32.0-SNAPSHOT +proto-google-cloud-confidentialcomputing-v1alpha1:0.31.0:0.32.0-SNAPSHOT +grpc-google-cloud-confidentialcomputing-v1:0.31.0:0.32.0-SNAPSHOT +grpc-google-cloud-confidentialcomputing-v1alpha1:0.31.0:0.32.0-SNAPSHOT +proto-google-cloud-workstations-v1:0.33.0:0.34.0-SNAPSHOT +grpc-google-cloud-workstations-v1:0.33.0:0.34.0-SNAPSHOT +proto-google-cloud-biglake-v1:0.33.0:0.34.0-SNAPSHOT +grpc-google-cloud-biglake-v1:0.33.0:0.34.0-SNAPSHOT +google-cloud-storageinsights:0.30.0:0.31.0-SNAPSHOT +proto-google-cloud-storageinsights-v1:0.30.0:0.31.0-SNAPSHOT +grpc-google-cloud-storageinsights-v1:0.30.0:0.31.0-SNAPSHOT +google-cloud-cloudsupport:0.29.0:0.30.0-SNAPSHOT +proto-google-cloud-cloudsupport-v2:0.29.0:0.30.0-SNAPSHOT +grpc-google-cloud-cloudsupport-v2:0.29.0:0.30.0-SNAPSHOT +google-cloud-rapidmigrationassessment:0.28.0:0.29.0-SNAPSHOT +proto-google-cloud-rapidmigrationassessment-v1:0.28.0:0.29.0-SNAPSHOT +grpc-google-cloud-rapidmigrationassessment-v1:0.28.0:0.29.0-SNAPSHOT +proto-google-maps-mapsplatformdatasets-v1:0.34.0:0.35.0-SNAPSHOT +grpc-google-maps-mapsplatformdatasets-v1:0.34.0:0.35.0-SNAPSHOT +google-shopping-merchant-accounts:0.1.0:0.2.0-SNAPSHOT +proto-google-shopping-merchant-accounts-v1beta:0.1.0:0.2.0-SNAPSHOT +grpc-google-shopping-merchant-accounts-v1beta:0.1.0:0.2.0-SNAPSHOT +proto-google-cloud-discoveryengine-v1:0.41.0:0.42.0-SNAPSHOT +grpc-google-cloud-discoveryengine-v1:0.41.0:0.42.0-SNAPSHOT +google-cloud-migrationcenter:0.27.0:0.28.0-SNAPSHOT +proto-google-cloud-migrationcenter-v1:0.27.0:0.28.0-SNAPSHOT +grpc-google-cloud-migrationcenter-v1:0.27.0:0.28.0-SNAPSHOT +google-cloud-policysimulator:0.24.0:0.25.0-SNAPSHOT +proto-google-cloud-policysimulator-v1:0.24.0:0.25.0-SNAPSHOT +grpc-google-cloud-policysimulator-v1:0.24.0:0.25.0-SNAPSHOT +google-cloud-netapp:0.24.0:0.25.0-SNAPSHOT +proto-google-cloud-netapp-v1beta1:0.24.0:0.25.0-SNAPSHOT +grpc-google-cloud-netapp-v1beta1:0.24.0:0.25.0-SNAPSHOT +proto-google-cloud-netapp-v1:0.24.0:0.25.0-SNAPSHOT +grpc-google-cloud-netapp-v1:0.24.0:0.25.0-SNAPSHOT +proto-google-cloud-cloudcommerceconsumerprocurement-v1:0.43.0:0.44.0-SNAPSHOT +grpc-google-cloud-cloudcommerceconsumerprocurement-v1:0.43.0:0.44.0-SNAPSHOT +google-cloud-java-alloydb-connectors:0.23.0:0.24.0-SNAPSHOT +proto-google-cloud-java-alloydb-connectors-v1alpha:0.23.0:0.24.0-SNAPSHOT +google-cloud-alloydb-connectors:0.23.0:0.24.0-SNAPSHOT +proto-google-cloud-alloydb-connectors-v1alpha:0.23.0:0.24.0-SNAPSHOT +proto-google-cloud-language-v2:2.46.0:2.47.0-SNAPSHOT +grpc-google-cloud-language-v2:2.46.0:2.47.0-SNAPSHOT +google-cloud-infra-manager:0.22.0:0.23.0-SNAPSHOT +proto-google-cloud-infra-manager-v1:0.22.0:0.23.0-SNAPSHOT +grpc-google-cloud-infra-manager-v1:0.22.0:0.23.0-SNAPSHOT +proto-google-cloud-notebooks-v2:1.43.0:1.44.0-SNAPSHOT +grpc-google-cloud-notebooks-v2:1.43.0:1.44.0-SNAPSHOT +proto-google-cloud-alloydb-connectors-v1beta:0.23.0:0.24.0-SNAPSHOT +google-shopping-merchant-inventories:0.21.0:0.22.0-SNAPSHOT +proto-google-shopping-merchant-inventories-v1beta:0.21.0:0.22.0-SNAPSHOT +grpc-google-shopping-merchant-inventories-v1beta:0.21.0:0.22.0-SNAPSHOT +proto-google-cloud-policy-troubleshooter-v3:1.44.0:1.45.0-SNAPSHOT +grpc-google-cloud-policy-troubleshooter-v3:1.44.0:1.45.0-SNAPSHOT +google-shopping-merchant-reports:0.21.0:0.22.0-SNAPSHOT +proto-google-shopping-merchant-reports-v1beta:0.21.0:0.22.0-SNAPSHOT +grpc-google-shopping-merchant-reports-v1beta:0.21.0:0.22.0-SNAPSHOT +proto-google-cloud-alloydb-connectors-v1:0.23.0:0.24.0-SNAPSHOT +proto-google-cloud-discoveryengine-v1alpha:0.41.0:0.42.0-SNAPSHOT +grpc-google-cloud-discoveryengine-v1alpha:0.41.0:0.42.0-SNAPSHOT +google-cloud-redis-cluster:0.17.0:0.18.0-SNAPSHOT +proto-google-cloud-redis-cluster-v1beta1:0.17.0:0.18.0-SNAPSHOT +proto-google-cloud-redis-cluster-v1:0.17.0:0.18.0-SNAPSHOT +grpc-google-cloud-redis-cluster-v1:0.17.0:0.18.0-SNAPSHOT +grpc-google-cloud-redis-cluster-v1beta1:0.17.0:0.18.0-SNAPSHOT +google-maps-places:0.16.0:0.17.0-SNAPSHOT +proto-google-maps-places-v1:0.16.0:0.17.0-SNAPSHOT +grpc-google-maps-places-v1:0.16.0:0.17.0-SNAPSHOT +google-cloud-telcoautomation:0.15.0:0.16.0-SNAPSHOT +proto-google-cloud-telcoautomation-v1:0.15.0:0.16.0-SNAPSHOT +proto-google-cloud-telcoautomation-v1alpha1:0.15.0:0.16.0-SNAPSHOT +grpc-google-cloud-telcoautomation-v1:0.15.0:0.16.0-SNAPSHOT +grpc-google-cloud-telcoautomation-v1alpha1:0.15.0:0.16.0-SNAPSHOT +google-cloud-securesourcemanager:0.15.0:0.16.0-SNAPSHOT +proto-google-cloud-securesourcemanager-v1:0.15.0:0.16.0-SNAPSHOT +grpc-google-cloud-securesourcemanager-v1:0.15.0:0.16.0-SNAPSHOT +google-cloud-vertexai:1.5.0:1.6.0-SNAPSHOT +proto-google-cloud-vertexai-v1:1.5.0:1.6.0-SNAPSHOT +proto-google-cloud-vertexai-v1beta1:1.5.0:1.6.0-SNAPSHOT +grpc-google-cloud-vertexai-v1:1.5.0:1.6.0-SNAPSHOT +grpc-google-cloud-vertexai-v1beta1:1.5.0:1.6.0-SNAPSHOT +google-cloud-edgenetwork:0.13.0:0.14.0-SNAPSHOT +proto-google-cloud-edgenetwork-v1:0.13.0:0.14.0-SNAPSHOT +grpc-google-cloud-edgenetwork-v1:0.13.0:0.14.0-SNAPSHOT +google-cloud-cloudquotas:0.13.0:0.14.0-SNAPSHOT +proto-google-cloud-cloudquotas-v1:0.13.0:0.14.0-SNAPSHOT +grpc-google-cloud-cloudquotas-v1:0.13.0:0.14.0-SNAPSHOT +google-cloud-securitycentermanagement:0.13.0:0.14.0-SNAPSHOT +proto-google-cloud-securitycentermanagement-v1:0.13.0:0.14.0-SNAPSHOT +grpc-google-cloud-securitycentermanagement-v1:0.13.0:0.14.0-SNAPSHOT +google-shopping-css:0.13.0:0.14.0-SNAPSHOT +proto-google-shopping-css-v1:0.13.0:0.14.0-SNAPSHOT +grpc-google-shopping-css-v1:0.13.0:0.14.0-SNAPSHOT +google-cloud-meet:0.12.0:0.13.0-SNAPSHOT +proto-google-cloud-meet-v2beta:0.12.0:0.13.0-SNAPSHOT +grpc-google-cloud-meet-v2beta:0.12.0:0.13.0-SNAPSHOT +google-cloud-servicehealth:0.12.0:0.13.0-SNAPSHOT +proto-google-cloud-servicehealth-v1:0.12.0:0.13.0-SNAPSHOT +grpc-google-cloud-servicehealth-v1:0.12.0:0.13.0-SNAPSHOT +proto-google-cloud-meet-v2:0.12.0:0.13.0-SNAPSHOT +grpc-google-cloud-meet-v2:0.12.0:0.13.0-SNAPSHOT +google-cloud-securityposture:0.10.0:0.11.0-SNAPSHOT +proto-google-cloud-securityposture-v1:0.10.0:0.11.0-SNAPSHOT +grpc-google-cloud-securityposture-v1:0.10.0:0.11.0-SNAPSHOT +proto-google-cloud-securitycenter-v2:2.53.0:2.54.0-SNAPSHOT +grpc-google-cloud-securitycenter-v2:2.53.0:2.54.0-SNAPSHOT +google-cloud-cloudcontrolspartner:0.9.0:0.10.0-SNAPSHOT +proto-google-cloud-cloudcontrolspartner-v1beta:0.9.0:0.10.0-SNAPSHOT +proto-google-cloud-cloudcontrolspartner-v1:0.9.0:0.10.0-SNAPSHOT +grpc-google-cloud-cloudcontrolspartner-v1:0.9.0:0.10.0-SNAPSHOT +grpc-google-cloud-cloudcontrolspartner-v1beta:0.9.0:0.10.0-SNAPSHOT +google-cloud-workspaceevents:0.9.0:0.10.0-SNAPSHOT +proto-google-cloud-workspaceevents-v1:0.9.0:0.10.0-SNAPSHOT +grpc-google-cloud-workspaceevents-v1:0.9.0:0.10.0-SNAPSHOT +google-cloud-apphub:0.9.0:0.10.0-SNAPSHOT +proto-google-cloud-apphub-v1:0.9.0:0.10.0-SNAPSHOT +grpc-google-cloud-apphub-v1:0.9.0:0.10.0-SNAPSHOT +google-cloud-chat:0.9.0:0.10.0-SNAPSHOT +proto-google-cloud-chat-v1:0.9.0:0.10.0-SNAPSHOT +grpc-google-cloud-chat-v1:0.9.0:0.10.0-SNAPSHOT +google-shopping-merchant-quota:0.8.0:0.9.0-SNAPSHOT +proto-google-shopping-merchant-quota-v1beta:0.8.0:0.9.0-SNAPSHOT +grpc-google-shopping-merchant-quota-v1beta:0.8.0:0.9.0-SNAPSHOT +proto-google-cloud-secretmanager-v1beta2:2.45.0:2.46.0-SNAPSHOT +grpc-google-cloud-secretmanager-v1beta2:2.45.0:2.46.0-SNAPSHOT +google-cloud-parallelstore:0.8.0:0.9.0-SNAPSHOT +proto-google-cloud-parallelstore-v1beta:0.8.0:0.9.0-SNAPSHOT +grpc-google-cloud-parallelstore-v1beta:0.8.0:0.9.0-SNAPSHOT +google-cloud-backupdr:0.4.0:0.5.0-SNAPSHOT +proto-google-cloud-backupdr-v1:0.4.0:0.5.0-SNAPSHOT +grpc-google-cloud-backupdr-v1:0.4.0:0.5.0-SNAPSHOT +google-maps-solar:0.4.0:0.5.0-SNAPSHOT +proto-google-maps-solar-v1:0.4.0:0.5.0-SNAPSHOT +grpc-google-maps-solar-v1:0.4.0:0.5.0-SNAPSHOT +google-shopping-merchant-datasources:0.1.0:0.2.0-SNAPSHOT +proto-google-shopping-merchant-datasources-v1beta:0.1.0:0.2.0-SNAPSHOT +grpc-google-shopping-merchant-datasources-v1beta:0.1.0:0.2.0-SNAPSHOT +google-shopping-merchant-conversions:0.4.0:0.5.0-SNAPSHOT +proto-google-shopping-merchant-conversions-v1beta:0.4.0:0.5.0-SNAPSHOT +grpc-google-shopping-merchant-conversions-v1beta:0.4.0:0.5.0-SNAPSHOT +google-shopping-merchant-lfp:0.4.0:0.5.0-SNAPSHOT +proto-google-shopping-merchant-lfp-v1beta:0.4.0:0.5.0-SNAPSHOT +grpc-google-shopping-merchant-lfp-v1beta:0.4.0:0.5.0-SNAPSHOT +google-shopping-merchant-notifications:0.4.0:0.5.0-SNAPSHOT +proto-google-shopping-merchant-notifications-v1beta:0.4.0:0.5.0-SNAPSHOT +grpc-google-shopping-merchant-notifications-v1beta:0.4.0:0.5.0-SNAPSHOT +ad-manager:0.4.0:0.5.0-SNAPSHOT +proto-ad-manager-v1:0.4.0:0.5.0-SNAPSHOT +google-maps-routeoptimization:0.3.0:0.4.0-SNAPSHOT +proto-google-maps-routeoptimization-v1:0.3.0:0.4.0-SNAPSHOT +grpc-google-maps-routeoptimization-v1:0.3.0:0.4.0-SNAPSHOT +proto-google-cloud-publicca-v1:0.42.0:0.43.0-SNAPSHOT +grpc-google-cloud-publicca-v1:0.42.0:0.43.0-SNAPSHOT +google-cloud-visionai:0.2.0:0.3.0-SNAPSHOT +proto-google-cloud-visionai-v1:0.2.0:0.3.0-SNAPSHOT +grpc-google-cloud-visionai-v1:0.2.0:0.3.0-SNAPSHOT +google-cloud-developerconnect:0.2.0:0.3.0-SNAPSHOT +proto-google-cloud-developerconnect-v1:0.2.0:0.3.0-SNAPSHOT +grpc-google-cloud-developerconnect-v1:0.2.0:0.3.0-SNAPSHOT +google-cloud-iap:0.1.0:0.2.0-SNAPSHOT +proto-google-cloud-iap-v1:0.1.0:0.2.0-SNAPSHOT +grpc-google-cloud-iap-v1:0.1.0:0.2.0-SNAPSHOT +google-cloud-managedkafka:0.1.0:0.2.0-SNAPSHOT +proto-google-cloud-managedkafka-v1:0.1.0:0.2.0-SNAPSHOT +grpc-google-cloud-managedkafka-v1:0.1.0:0.2.0-SNAPSHOT +google-cloud-networkservices:0.1.0:0.2.0-SNAPSHOT +proto-google-cloud-networkservices-v1:0.1.0:0.2.0-SNAPSHOT +grpc-google-cloud-networkservices-v1:0.1.0:0.2.0-SNAPSHOT +google-shopping-merchant-products:0.1.0:0.2.0-SNAPSHOT +proto-google-shopping-merchant-products-v1beta:0.1.0:0.2.0-SNAPSHOT +grpc-google-shopping-merchant-products-v1beta:0.1.0:0.2.0-SNAPSHOT From 4db0d1dfa6069e6d917f12b625cb7cc9319323e4 Mon Sep 17 00:00:00 2001 From: "copybara-service[bot]" <56741989+copybara-service[bot]@users.noreply.github.com> Date: Mon, 10 Jun 2024 17:43:14 +0000 Subject: [PATCH 05/33] feat: [vertexai] enable AutomaticFunctionCallingResponder in ChatSession (#10913) PiperOrigin-RevId: 638768526 Co-authored-by: Jaycee Li --- .../vertexai/api/PredictionServiceClient.java | 3 - .../api/stub/EndpointServiceStubSettings.java | 18 + .../api/stub/GrpcLlmUtilityServiceStub.java | 14 +- .../api/stub/GrpcPredictionServiceStub.java | 12 - .../api/stub/HttpJsonEndpointServiceStub.java | 45 - .../stub/HttpJsonLlmUtilityServiceStub.java | 71 +- .../stub/HttpJsonPredictionServiceStub.java | 4 - .../stub/LlmUtilityServiceStubSettings.java | 18 + .../stub/PredictionServiceStubSettings.java | 23 +- .../AutomaticFunctionCallingResponder.java | 266 ++ .../vertexai/generativeai/ChatSession.java | 101 +- .../reflect-config.json | 121 +- .../EndpointServiceClientHttpJsonTest.java | 9 - .../api/EndpointServiceClientTest.java | 7 - .../api/LlmUtilityServiceClientTest.java | 5 + .../api/PredictionServiceClientTest.java | 2 - ...AutomaticFunctionCallingResponderTest.java | 305 +++ .../generativeai/ChatSessionTest.java | 188 ++ .../generativeai/GenerativeModelTest.java | 4 +- .../it/ITChatSessionIntegrationTest.java | 78 +- .../cloud/vertexai/api/AcceleratorType.java | 22 - .../vertexai/api/AcceleratorTypeProto.java | 15 +- .../cloud/vertexai/api/ContentProto.java | 201 +- .../google/cloud/vertexai/api/Endpoint.java | 400 +-- .../cloud/vertexai/api/EndpointOrBuilder.java | 56 +- .../cloud/vertexai/api/EndpointProto.java | 127 +- .../vertexai/api/FunctionCallingConfig.java | 1119 --------- .../api/FunctionCallingConfigOrBuilder.java | 118 - .../vertexai/api/GenerateContentRequest.java | 348 +-- .../api/GenerateContentRequestOrBuilder.java | 44 - .../cloud/vertexai/api/GenerationConfig.java | 375 +-- .../api/GenerationConfigOrBuilder.java | 59 - .../vertexai/api/GoogleSearchRetrieval.java | 111 + .../api/GoogleSearchRetrievalOrBuilder.java | 18 +- .../vertexai/api/GroundingAttribution.java | 2138 +++++++++++++++++ .../api/GroundingAttributionOrBuilder.java | 141 ++ .../cloud/vertexai/api/GroundingMetadata.java | 554 +++-- .../api/GroundingMetadataOrBuilder.java | 44 +- .../vertexai/api/PredictionServiceProto.java | 219 +- .../api/PrivateServiceConnectConfig.java | 831 ------- .../PrivateServiceConnectConfigOrBuilder.java | 94 - .../vertexai/api/PscAutomatedEndpoints.java | 991 -------- .../api/PscAutomatedEndpointsOrBuilder.java | 101 - .../{SearchEntryPoint.java => Segment.java} | 427 ++-- ...ntOrBuilder.java => SegmentOrBuilder.java} | 34 +- .../vertexai/api/ServiceNetworkingProto.java | 96 - .../google/cloud/vertexai/api/ToolConfig.java | 755 ------ .../vertexai/api/ToolConfigOrBuilder.java | 67 - .../google/cloud/vertexai/api/ToolProto.java | 46 +- .../cloud/vertexai/v1/accelerator_type.proto | 5 +- .../google/cloud/vertexai/v1/content.proto | 68 +- .../cloud/vertexai/v1/encryption_spec.proto | 2 +- .../google/cloud/vertexai/v1/endpoint.proto | 11 +- .../cloud/vertexai/v1/endpoint_service.proto | 2 +- .../cloud/vertexai/v1/explanation.proto | 2 +- .../vertexai/v1/explanation_metadata.proto | 2 +- .../proto/google/cloud/vertexai/v1/io.proto | 2 +- .../vertexai/v1/llm_utility_service.proto | 2 +- .../cloud/vertexai/v1/machine_resources.proto | 2 +- .../google/cloud/vertexai/v1/openapi.proto | 2 +- .../google/cloud/vertexai/v1/operation.proto | 2 +- .../vertexai/v1/prediction_service.proto | 39 +- .../vertexai/v1/service_networking.proto | 52 - .../proto/google/cloud/vertexai/v1/tool.proto | 47 +- .../google/cloud/vertexai/v1/types.proto | 2 +- 65 files changed, 4534 insertions(+), 6553 deletions(-) create mode 100644 java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/AutomaticFunctionCallingResponder.java create mode 100644 java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/AutomaticFunctionCallingResponderTest.java delete mode 100644 java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/FunctionCallingConfig.java delete mode 100644 java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/FunctionCallingConfigOrBuilder.java create mode 100644 java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GroundingAttribution.java create mode 100644 java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GroundingAttributionOrBuilder.java delete mode 100644 java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PrivateServiceConnectConfig.java delete mode 100644 java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PrivateServiceConnectConfigOrBuilder.java delete mode 100644 java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PscAutomatedEndpoints.java delete mode 100644 java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PscAutomatedEndpointsOrBuilder.java rename java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/{SearchEntryPoint.java => Segment.java} (53%) rename java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/{SearchEntryPointOrBuilder.java => SegmentOrBuilder.java} (55%) delete mode 100644 java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ServiceNetworkingProto.java delete mode 100644 java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ToolConfig.java delete mode 100644 java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ToolConfigOrBuilder.java delete mode 100644 java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/service_networking.proto diff --git a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/PredictionServiceClient.java b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/PredictionServiceClient.java index b8e46ee1d9fa..76a669f4892d 100644 --- a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/PredictionServiceClient.java +++ b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/PredictionServiceClient.java @@ -1410,7 +1410,6 @@ public final GenerateContentResponse generateContent(String model, List * .addAllContents(new ArrayList()) * .setSystemInstruction(Content.newBuilder().build()) * .addAllTools(new ArrayList()) - * .setToolConfig(ToolConfig.newBuilder().build()) * .addAllSafetySettings(new ArrayList()) * .setGenerationConfig(GenerationConfig.newBuilder().build()) * .build(); @@ -1444,7 +1443,6 @@ public final GenerateContentResponse generateContent(GenerateContentRequest requ * .addAllContents(new ArrayList()) * .setSystemInstruction(Content.newBuilder().build()) * .addAllTools(new ArrayList()) - * .setToolConfig(ToolConfig.newBuilder().build()) * .addAllSafetySettings(new ArrayList()) * .setGenerationConfig(GenerationConfig.newBuilder().build()) * .build(); @@ -1479,7 +1477,6 @@ public final GenerateContentResponse generateContent(GenerateContentRequest requ * .addAllContents(new ArrayList()) * .setSystemInstruction(Content.newBuilder().build()) * .addAllTools(new ArrayList()) - * .setToolConfig(ToolConfig.newBuilder().build()) * .addAllSafetySettings(new ArrayList()) * .setGenerationConfig(GenerationConfig.newBuilder().build()) * .build(); diff --git a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/EndpointServiceStubSettings.java b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/EndpointServiceStubSettings.java index f0c144b09d7b..2653f8b141f4 100644 --- a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/EndpointServiceStubSettings.java +++ b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/EndpointServiceStubSettings.java @@ -390,6 +390,15 @@ public EndpointServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -989,6 +998,15 @@ public UnaryCallSettings.Builder getIamPolicySettin return testIamPermissionsSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public EndpointServiceStubSettings build() throws IOException { return new EndpointServiceStubSettings(this); diff --git a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/GrpcLlmUtilityServiceStub.java b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/GrpcLlmUtilityServiceStub.java index 399dc602636e..21e7eef6e7df 100644 --- a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/GrpcLlmUtilityServiceStub.java +++ b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/GrpcLlmUtilityServiceStub.java @@ -54,14 +54,14 @@ @Generated("by gapic-generator-java") public class GrpcLlmUtilityServiceStub extends LlmUtilityServiceStub { private static final MethodDescriptor + // TODO(b/317255628): switch back to the google.cloud.aiplatform.v1.LlmUtilityServiceClient countTokensMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.aiplatform.v1.LlmUtilityService/CountTokens") - .setRequestMarshaller(ProtoUtils.marshaller(CountTokensRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(CountTokensResponse.getDefaultInstance())) - .build(); + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1beta1.PredictionService/CountTokens") + .setRequestMarshaller(ProtoUtils.marshaller(CountTokensRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(CountTokensResponse.getDefaultInstance())) + .build(); private static final MethodDescriptor computeTokensMethodDescriptor = diff --git a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/GrpcPredictionServiceStub.java b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/GrpcPredictionServiceStub.java index ee048918e7ed..7b0843c0f1ae 100644 --- a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/GrpcPredictionServiceStub.java +++ b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/GrpcPredictionServiceStub.java @@ -385,24 +385,12 @@ protected GrpcPredictionServiceStub( streamDirectPredictTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(streamDirectPredictMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("endpoint", String.valueOf(request.getEndpoint())); - return builder.build(); - }) .build(); GrpcCallSettings streamDirectRawPredictTransportSettings = GrpcCallSettings .newBuilder() .setMethodDescriptor(streamDirectRawPredictMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("endpoint", String.valueOf(request.getEndpoint())); - return builder.build(); - }) .build(); GrpcCallSettings streamingPredictTransportSettings = diff --git a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/HttpJsonEndpointServiceStub.java b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/HttpJsonEndpointServiceStub.java index 73ef272ae5d1..3984c86e3db5 100644 --- a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/HttpJsonEndpointServiceStub.java +++ b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/HttpJsonEndpointServiceStub.java @@ -688,16 +688,6 @@ protected HttpJsonEndpointServiceStub( "google.longrunning.Operations.CancelOperation", HttpRule.newBuilder() .setPost("/ui/{name=projects/*/locations/*/operations/*}:cancel") - .addAdditionalBindings( - HttpRule.newBuilder() - .setPost( - "/ui/{name=projects/*/locations/*/agents/*/operations/*}:cancel") - .build()) - .addAdditionalBindings( - HttpRule.newBuilder() - .setPost( - "/ui/{name=projects/*/locations/*/apps/*/operations/*}:cancel") - .build()) .addAdditionalBindings( HttpRule.newBuilder() .setPost( @@ -1077,15 +1067,6 @@ protected HttpJsonEndpointServiceStub( "google.longrunning.Operations.DeleteOperation", HttpRule.newBuilder() .setDelete("/ui/{name=projects/*/locations/*/operations/*}") - .addAdditionalBindings( - HttpRule.newBuilder() - .setDelete( - "/ui/{name=projects/*/locations/*/agents/*/operations/*}") - .build()) - .addAdditionalBindings( - HttpRule.newBuilder() - .setDelete("/ui/{name=projects/*/locations/*/apps/*/operations/*}") - .build()) .addAdditionalBindings( HttpRule.newBuilder() .setDelete( @@ -1495,14 +1476,6 @@ protected HttpJsonEndpointServiceStub( "google.longrunning.Operations.GetOperation", HttpRule.newBuilder() .setGet("/ui/{name=projects/*/locations/*/operations/*}") - .addAdditionalBindings( - HttpRule.newBuilder() - .setGet("/ui/{name=projects/*/locations/*/agents/*/operations/*}") - .build()) - .addAdditionalBindings( - HttpRule.newBuilder() - .setGet("/ui/{name=projects/*/locations/*/apps/*/operations/*}") - .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet("/ui/{name=projects/*/locations/*/datasets/*/operations/*}") @@ -1919,14 +1892,6 @@ protected HttpJsonEndpointServiceStub( "google.longrunning.Operations.ListOperations", HttpRule.newBuilder() .setGet("/ui/{name=projects/*/locations/*}/operations") - .addAdditionalBindings( - HttpRule.newBuilder() - .setGet("/ui/{name=projects/*/locations/*/agents/*}/operations") - .build()) - .addAdditionalBindings( - HttpRule.newBuilder() - .setGet("/ui/{name=projects/*/locations/*/apps/*}/operations") - .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet("/ui/{name=projects/*/locations/*/datasets/*}/operations") @@ -2329,16 +2294,6 @@ protected HttpJsonEndpointServiceStub( "google.longrunning.Operations.WaitOperation", HttpRule.newBuilder() .setPost("/ui/{name=projects/*/locations/*/operations/*}:wait") - .addAdditionalBindings( - HttpRule.newBuilder() - .setPost( - "/ui/{name=projects/*/locations/*/agents/*/operations/*}:wait") - .build()) - .addAdditionalBindings( - HttpRule.newBuilder() - .setPost( - "/ui/{name=projects/*/locations/*/apps/*/operations/*}:wait") - .build()) .addAdditionalBindings( HttpRule.newBuilder() .setPost( diff --git a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/HttpJsonLlmUtilityServiceStub.java b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/HttpJsonLlmUtilityServiceStub.java index cc0c77d61174..8086891047d0 100644 --- a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/HttpJsonLlmUtilityServiceStub.java +++ b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/HttpJsonLlmUtilityServiceStub.java @@ -63,42 +63,43 @@ public class HttpJsonLlmUtilityServiceStub extends LlmUtilityServiceStub { private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); private static final ApiMethodDescriptor + // TODO(b/317255628): switch back to the google.cloud.aiplatform.v1.LlmUtilityServiceClient countTokensMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.aiplatform.v1.LlmUtilityService/CountTokens") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{endpoint=projects/*/locations/*/endpoints/*}:countTokens", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "endpoint", request.getEndpoint()); - return fields; - }) - .setAdditionalPaths( - "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:countTokens") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearEndpoint().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(CountTokensResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.aiplatform.v1beta1.PredictionService/CountTokens") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{endpoint=projects/*/locations/*/endpoints/*}:countTokens", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "endpoint", request.getEndpoint()); + return fields; + }) + .setAdditionalPaths( + "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:countTokens") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearEndpoint().build(), false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(CountTokensResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); private static final ApiMethodDescriptor computeTokensMethodDescriptor = diff --git a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/HttpJsonPredictionServiceStub.java b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/HttpJsonPredictionServiceStub.java index 89de31aedef8..338523203985 100644 --- a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/HttpJsonPredictionServiceStub.java +++ b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/HttpJsonPredictionServiceStub.java @@ -211,8 +211,6 @@ public class HttpJsonPredictionServiceStub extends PredictionServiceStub { serializer.putPathParam(fields, "endpoint", request.getEndpoint()); return fields; }) - .setAdditionalPaths( - "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:directPredict") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -249,8 +247,6 @@ public class HttpJsonPredictionServiceStub extends PredictionServiceStub { serializer.putPathParam(fields, "endpoint", request.getEndpoint()); return fields; }) - .setAdditionalPaths( - "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:directRawPredict") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); diff --git a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/LlmUtilityServiceStubSettings.java b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/LlmUtilityServiceStubSettings.java index 3b3aa6e1ede4..afc0792f076c 100644 --- a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/LlmUtilityServiceStubSettings.java +++ b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/LlmUtilityServiceStubSettings.java @@ -226,6 +226,15 @@ public LlmUtilityServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -531,6 +540,15 @@ public UnaryCallSettings.Builder getIamPolicySettin return testIamPermissionsSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public LlmUtilityServiceStubSettings build() throws IOException { return new LlmUtilityServiceStubSettings(this); diff --git a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/PredictionServiceStubSettings.java b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/PredictionServiceStubSettings.java index 3955805e91a6..31d4683d731f 100644 --- a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/PredictionServiceStubSettings.java +++ b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/PredictionServiceStubSettings.java @@ -125,10 +125,7 @@ public class PredictionServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder() - .add("https://www.googleapis.com/auth/cloud-platform") - .add("https://www.googleapis.com/auth/cloud-platform.read-only") - .build(); + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); private final UnaryCallSettings predictSettings; private final UnaryCallSettings rawPredictSettings; @@ -331,6 +328,15 @@ public PredictionServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + /** Returns the default service name. */ @Override public String getServiceName() { @@ -800,6 +806,15 @@ public UnaryCallSettings.Builder getIamPolicySettin return testIamPermissionsSettings; } + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + @Override public PredictionServiceStubSettings build() throws IOException { return new PredictionServiceStubSettings(this); diff --git a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/AutomaticFunctionCallingResponder.java b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/AutomaticFunctionCallingResponder.java new file mode 100644 index 000000000000..6df904860f58 --- /dev/null +++ b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/AutomaticFunctionCallingResponder.java @@ -0,0 +1,266 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.vertexai.generativeai; + +import static com.google.common.base.Preconditions.checkNotNull; + +import com.google.cloud.vertexai.api.Content; +import com.google.cloud.vertexai.api.FunctionCall; +import com.google.common.collect.ImmutableList; +import com.google.protobuf.Struct; +import com.google.protobuf.Value; +import java.lang.reflect.Method; +import java.lang.reflect.Modifier; +import java.lang.reflect.Parameter; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.logging.Logger; + +/** A responder that automatically calls functions when requested by the GenAI model. */ +public final class AutomaticFunctionCallingResponder { + private int maxFunctionCalls = 1; + private int remainingFunctionCalls; + private final Map callableFunctions = new HashMap<>(); + + private static final Logger logger = + Logger.getLogger(AutomaticFunctionCallingResponder.class.getName()); + + /** Constructs an AutomaticFunctionCallingResponder instance. */ + public AutomaticFunctionCallingResponder() { + this.remainingFunctionCalls = this.maxFunctionCalls; + } + + /** + * Constructs an AutomaticFunctionCallingResponder instance. + * + * @param maxFunctionCalls the maximum number of function calls to make in a row + */ + public AutomaticFunctionCallingResponder(int maxFunctionCalls) { + this.maxFunctionCalls = maxFunctionCalls; + this.remainingFunctionCalls = maxFunctionCalls; + } + + /** Sets the maximum number of function calls to make in a row. */ + public void setMaxFunctionCalls(int maxFunctionCalls) { + this.maxFunctionCalls = maxFunctionCalls; + this.remainingFunctionCalls = this.maxFunctionCalls; + } + + /** Gets the maximum number of function calls to make in a row. */ + public int getMaxFunctionCalls() { + return maxFunctionCalls; + } + + /** Resets the remaining function calls to the maximum number of function calls. */ + void resetRemainingFunctionCalls() { + this.remainingFunctionCalls = this.maxFunctionCalls; + } + + /** + * Adds a callable function to the AutomaticFunctionCallingResponder. + * + *

Note:: If you don't want to manually provide parameter names, you can ignore + * `orderedParameterNames` and compile your code with the "-parameters" flag. In this case, the + * parameter names can be auto retrieved from reflection. + * + * @param functionName the name of the function + * @param callableFunction the method to call when the functionName is requested + * @param orderedParameterNames the names of the parameters in the order they are passed to the + * function + * @throws IllegalArgumentException if the functionName is already in the responder + * @throws IllegalStateException if the parameter names are not provided and cannot be retrieved + * from reflection + */ + public void addCallableFunction( + String functionName, Method callableFunction, String... orderedParameterNames) { + if (callableFunctions.containsKey(functionName)) { + throw new IllegalArgumentException("Duplicate function name: " + functionName); + } else { + callableFunctions.put( + functionName, new CallableFunction(callableFunction, orderedParameterNames)); + } + } + + /** + * Automatically calls functions requested by the model and generates a Content that contains the + * results. + * + * @param functionCalls a list of {@link com.google.cloud.vertexai.api.FunctionCall} requested by + * the model + * @return a {@link com.google.cloud.vertexai.api.Content} that contains the results of the + * function calls + * @throws IllegalStateException if the number of automatic calls exceeds the maximum number of + * function calls + * @throws IllegalArgumentException if the model has asked to call a function that was not found + * in the responder + */ + Content getContentFromFunctionCalls(List functionCalls) { + checkNotNull(functionCalls, "functionCalls cannot be null."); + + List responseParts = new ArrayList<>(); + + for (FunctionCall functionCall : functionCalls) { + if (remainingFunctionCalls <= 0) { + throw new IllegalStateException( + "Exceeded the maximum number of continuous automatic function calls (" + + maxFunctionCalls + + "). If more automatic function calls are needed, please call" + + " `setMaxFunctionCalls() to set a higher number. The last function call is:\n" + + functionCall); + } + remainingFunctionCalls -= 1; + String functionName = functionCall.getName(); + CallableFunction callableFunction = callableFunctions.get(functionName); + if (callableFunction == null) { + throw new IllegalArgumentException( + "Model has asked to call function \"" + functionName + "\" which was not found."); + } + responseParts.add( + PartMaker.fromFunctionResponse( + functionName, + Collections.singletonMap("result", callableFunction.call(functionCall.getArgs())))); + } + + return ContentMaker.fromMultiModalData(responseParts.toArray()); + } + + /** A class that represents a function that can be called automatically. */ + static class CallableFunction { + private final Method callableFunction; + private final ImmutableList orderedParameterNames; + + /** + * Constructs a CallableFunction instance. + * + *

Note:: If you don't want to manually provide parameter names, you can ignore + * `orderedParameterNames` and compile your code with the "-parameters" flag. In this case, the + * parameter names can be auto retrieved from reflection. + * + * @param callableFunction the method to call + * @param orderedParameterNames the names of the parameters in the order they are passed to the + * function + * @throws IllegalArgumentException if the given method is not a static method or the number of + * provided parameter names doesn't match the number of parameters in the callable function + * @throws IllegalStateException if the parameter names are not provided and cannot be retrieved + * from reflection + */ + CallableFunction(Method callableFunction, String... orderedParameterNames) { + validateFunction(callableFunction); + this.callableFunction = callableFunction; + + if (orderedParameterNames.length == 0) { + ImmutableList.Builder builder = ImmutableList.builder(); + for (Parameter parameter : callableFunction.getParameters()) { + if (parameter.isNamePresent()) { + builder.add(parameter.getName()); + } else { + throw new IllegalStateException( + "Failed to retrieve the parameter name from reflection. Please compile your code" + + " with \"-parameters\" flag or use `addCallableFunction(String, Method," + + " String...)` to manually enter parameter names"); + } + } + this.orderedParameterNames = builder.build(); + } else if (orderedParameterNames.length == callableFunction.getParameters().length) { + this.orderedParameterNames = ImmutableList.copyOf(orderedParameterNames); + } else { + throw new IllegalArgumentException( + "The number of provided parameter names doesn't match the number of parameters in the" + + " callable function."); + } + } + + /** + * Calls the callable function with the given arguments. + * + * @param args the arguments to pass to the function + * @return the result of the function call + * @throws IllegalStateException if there are errors when invoking the function + * @throws IllegalArgumentException if the args map doesn't contain all the parameters of the + * function or the value types in the args map are not supported + */ + Object call(Struct args) { + // Extract the arguments from the Struct + Map argsMap = args.getFieldsMap(); + List argsList = new ArrayList<>(); + for (int i = 0; i < orderedParameterNames.size(); i++) { + String parameterName = orderedParameterNames.get(i); + if (!argsMap.containsKey(parameterName)) { + throw new IllegalArgumentException( + "The parameter \"" + + parameterName + + "\" was not found in the arguments requested by the model. Args map: " + + argsMap); + } + Value value = argsMap.get(parameterName); + switch (value.getKindCase()) { + case NUMBER_VALUE: + // Args map only returns double values, but the function may expect other types(int, + // float). So we need to cast the value to the correct type. + Class parameterType = callableFunction.getParameters()[i].getType(); + if (parameterType.equals(int.class)) { + argsList.add((int) value.getNumberValue()); + } else if (parameterType.equals(float.class)) { + argsList.add((float) value.getNumberValue()); + } else { + argsList.add(value.getNumberValue()); + } + break; + case STRING_VALUE: + argsList.add(value.getStringValue()); + break; + case BOOL_VALUE: + argsList.add(value.getBoolValue()); + break; + case NULL_VALUE: + argsList.add(null); + break; + default: + throw new IllegalArgumentException( + "Unsupported value type " + + value.getKindCase() + + " for parameter " + + parameterName); + } + } + + // Invoke the function + logger.info( + "Automatically calling function: " + + callableFunction.getName() + + argsList.toString().replace('[', '(').replace(']', ')')); + try { + return callableFunction.invoke(null, argsList.toArray()); + } catch (Exception e) { + throw new IllegalStateException( + "Error raised when calling function \"" + + callableFunction.getName() + + "\" as requested by the model. ", + e); + } + } + + /** Validates that the given method is a static method. */ + private void validateFunction(Method method) { + if (!Modifier.isStatic(method.getModifiers())) { + throw new IllegalArgumentException("Function calling only supports static methods."); + } + } + } +} diff --git a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/ChatSession.java b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/ChatSession.java index 3e5f9503def2..5d3e7dd4df12 100644 --- a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/ChatSession.java +++ b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/ChatSession.java @@ -19,10 +19,12 @@ import static com.google.cloud.vertexai.generativeai.ResponseHandler.aggregateStreamIntoResponse; import static com.google.cloud.vertexai.generativeai.ResponseHandler.getContent; import static com.google.cloud.vertexai.generativeai.ResponseHandler.getFinishReason; +import static com.google.cloud.vertexai.generativeai.ResponseHandler.getFunctionCalls; import static com.google.common.base.Preconditions.checkNotNull; import com.google.cloud.vertexai.api.Candidate.FinishReason; import com.google.cloud.vertexai.api.Content; +import com.google.cloud.vertexai.api.FunctionCall; import com.google.cloud.vertexai.api.GenerateContentResponse; import com.google.cloud.vertexai.api.GenerationConfig; import com.google.cloud.vertexai.api.SafetySetting; @@ -37,6 +39,7 @@ public final class ChatSession { private final GenerativeModel model; private final Optional rootChatSession; + private final Optional automaticFunctionCallingResponder; private List history = new ArrayList<>(); private int previousHistorySize = 0; private Optional> currentResponseStream; @@ -47,7 +50,7 @@ public final class ChatSession { * GenerationConfig) inherits from the model. */ public ChatSession(GenerativeModel model) { - this(model, Optional.empty()); + this(model, Optional.empty(), Optional.empty()); } /** @@ -57,12 +60,18 @@ public ChatSession(GenerativeModel model) { * @param model a {@link GenerativeModel} instance that generates contents in the chat. * @param rootChatSession a root {@link ChatSession} instance. All the chat history in the current * chat session will be merged to the root chat session. + * @param automaticFunctionCallingResponder an {@link AutomaticFunctionCallingResponder} instance + * that can automatically respond to function calls requested by the model. * @return a {@link ChatSession} instance. */ - private ChatSession(GenerativeModel model, Optional rootChatSession) { + private ChatSession( + GenerativeModel model, + Optional rootChatSession, + Optional automaticFunctionCallingResponder) { checkNotNull(model, "model should not be null"); this.model = model; this.rootChatSession = rootChatSession; + this.automaticFunctionCallingResponder = automaticFunctionCallingResponder; currentResponseStream = Optional.empty(); currentResponse = Optional.empty(); } @@ -77,7 +86,10 @@ private ChatSession(GenerativeModel model, Optional rootChatSession public ChatSession withGenerationConfig(GenerationConfig generationConfig) { ChatSession rootChat = rootChatSession.orElse(this); ChatSession newChatSession = - new ChatSession(model.withGenerationConfig(generationConfig), Optional.of(rootChat)); + new ChatSession( + model.withGenerationConfig(generationConfig), + Optional.of(rootChat), + automaticFunctionCallingResponder); newChatSession.history = history; newChatSession.previousHistorySize = previousHistorySize; return newChatSession; @@ -93,7 +105,10 @@ public ChatSession withGenerationConfig(GenerationConfig generationConfig) { public ChatSession withSafetySettings(List safetySettings) { ChatSession rootChat = rootChatSession.orElse(this); ChatSession newChatSession = - new ChatSession(model.withSafetySettings(safetySettings), Optional.of(rootChat)); + new ChatSession( + model.withSafetySettings(safetySettings), + Optional.of(rootChat), + automaticFunctionCallingResponder); newChatSession.history = history; newChatSession.previousHistorySize = previousHistorySize; return newChatSession; @@ -108,7 +123,28 @@ public ChatSession withSafetySettings(List safetySettings) { */ public ChatSession withTools(List tools) { ChatSession rootChat = rootChatSession.orElse(this); - ChatSession newChatSession = new ChatSession(model.withTools(tools), Optional.of(rootChat)); + ChatSession newChatSession = + new ChatSession( + model.withTools(tools), Optional.of(rootChat), automaticFunctionCallingResponder); + newChatSession.history = history; + newChatSession.previousHistorySize = previousHistorySize; + return newChatSession; + } + + /** + * Creates a copy of the current ChatSession with updated AutomaticFunctionCallingResponder. + * + * @param automaticFunctionCallingResponder an {@link AutomaticFunctionCallingResponder} instance + * that will be used in the new ChatSession. + * @return a new {@link ChatSession} instance with the specified + * AutomaticFunctionCallingResponder. + */ + public ChatSession withAutomaticFunctionCallingResponder( + AutomaticFunctionCallingResponder automaticFunctionCallingResponder) { + ChatSession rootChat = rootChatSession.orElse(this); + ChatSession newChatSession = + new ChatSession( + model, Optional.of(rootChat), Optional.of(automaticFunctionCallingResponder)); newChatSession.history = history; newChatSession.previousHistorySize = previousHistorySize; return newChatSession; @@ -141,12 +177,13 @@ public ResponseStream sendMessageStream(Content content try { respStream = model.generateContentStream(history); } catch (IOException e) { - // If the API call fails, remove the last content from the history before throwing. + // If the API call fails, revert the history before throwing. revertHistory(); throw e; } setCurrentResponseStream(Optional.of(respStream)); + // TODO(jayceeli) enable AFC in sendMessageStream return respStream; } @@ -169,17 +206,51 @@ public GenerateContentResponse sendMessage(String text) throws IOException { public GenerateContentResponse sendMessage(Content content) throws IOException { checkLastResponseAndEditHistory(); history.add(content); - GenerateContentResponse response; try { response = model.generateContent(history); - } catch (IOException e) { - // If the API call fails, remove the last content from the history before throwing. + setCurrentResponse(Optional.of(response)); + return autoRespond(response); + } catch (Exception e) { + // If any step fails, reset the history and current response. + checkLastResponseAndEditHistory(); revertHistory(); throw e; } - setCurrentResponse(Optional.of(response)); + } + + /** + * Automatically responds to the model if there is an AutomaticFunctionCallingResponder and + * model's response contains function calls. + */ + private GenerateContentResponse autoRespond(GenerateContentResponse originalResponse) + throws IOException { + // Return the original response if there is no AFC responder or no function calls in the + // response. + if (!automaticFunctionCallingResponder.isPresent()) { + return originalResponse; + } + ImmutableList functionCalls = getFunctionCalls(originalResponse); + if (functionCalls.isEmpty()) { + return originalResponse; + } + // Each time we call the `autoRespond`, we add 2 contents(user's functionResponse and model's + // functionCall) to the history and update the previousHistorySize during + // `checkLastResponseAndEditHistory`. But we shouldn't update the previousHistorySize because we + // will revert the whole history if any intermediate step fails. So we offset the + // previousHistorySize by 2 here. + setPreviousHistorySize(getPreviousHistorySize() - 2); + GenerateContentResponse response; + try { + // Let the responder generate the response content and send it to the model. + Content autoRespondedContent = + automaticFunctionCallingResponder.get().getContentFromFunctionCalls(functionCalls); + response = sendMessage(autoRespondedContent); + } finally { + // Reset the responder whether it succeeds or fails. + automaticFunctionCallingResponder.get().resetRemainingFunctionCalls(); + } return response; } @@ -200,7 +271,10 @@ private void checkLastResponseAndEditHistory() { setCurrentResponse(Optional.empty()); checkFinishReasonAndEditHistory(currentResponse); history.add(getContent(currentResponse)); - setPreviousHistorySize(history.size()); + // If `checkFinishReasonAndEditHistory` passes, we add 2 contents(user's message and + // model's response) to the history and then one round of conversation is finished. So + // we add 2 to the previousHistorySize. + setPreviousHistorySize(getPreviousHistorySize() + 2); }); getCurrentResponseStream() .ifPresent( @@ -212,7 +286,10 @@ private void checkLastResponseAndEditHistory() { GenerateContentResponse response = aggregateStreamIntoResponse(responseStream); checkFinishReasonAndEditHistory(response); history.add(getContent(response)); - setPreviousHistorySize(history.size()); + // If `checkFinishReasonAndEditHistory` passes, we add 2 contents(user's message and + // model's response) to the history and then one round of conversation is finished. + // So we add 2 to the previousHistorySize. + setPreviousHistorySize(getPreviousHistorySize() + 2); } }); } diff --git a/java-vertexai/google-cloud-vertexai/src/main/resources/META-INF/native-image/com.google.cloud.vertexai.api/reflect-config.json b/java-vertexai/google-cloud-vertexai/src/main/resources/META-INF/native-image/com.google.cloud.vertexai.api/reflect-config.json index b930b65862ec..ddf363e467ab 100644 --- a/java-vertexai/google-cloud-vertexai/src/main/resources/META-INF/native-image/com.google.cloud.vertexai.api/reflect-config.json +++ b/java-vertexai/google-cloud-vertexai/src/main/resources/META-INF/native-image/com.google.cloud.vertexai.api/reflect-config.json @@ -1610,33 +1610,6 @@ "allDeclaredClasses": true, "allPublicClasses": true }, - { - "name": "com.google.cloud.vertexai.api.FunctionCallingConfig", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.vertexai.api.FunctionCallingConfig$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.vertexai.api.FunctionCallingConfig$Mode", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, { "name": "com.google.cloud.vertexai.api.FunctionDeclaration", "queryAllDeclaredConstructors": true, @@ -1862,6 +1835,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.vertexai.api.GroundingAttribution", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vertexai.api.GroundingAttribution$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vertexai.api.GroundingAttribution$Web", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vertexai.api.GroundingAttribution$Web$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.vertexai.api.GroundingMetadata", "queryAllDeclaredConstructors": true, @@ -2231,42 +2240,6 @@ "allDeclaredClasses": true, "allPublicClasses": true }, - { - "name": "com.google.cloud.vertexai.api.PrivateServiceConnectConfig", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.vertexai.api.PrivateServiceConnectConfig$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.vertexai.api.PscAutomatedEndpoints", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.vertexai.api.PscAutomatedEndpoints$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, { "name": "com.google.cloud.vertexai.api.RawPredictRequest", "queryAllDeclaredConstructors": true, @@ -2430,7 +2403,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vertexai.api.SearchEntryPoint", + "name": "com.google.cloud.vertexai.api.Segment", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2439,7 +2412,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vertexai.api.SearchEntryPoint$Builder", + "name": "com.google.cloud.vertexai.api.Segment$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2744,24 +2717,6 @@ "allDeclaredClasses": true, "allPublicClasses": true }, - { - "name": "com.google.cloud.vertexai.api.ToolConfig", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.vertexai.api.ToolConfig$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, { "name": "com.google.cloud.vertexai.api.Type", "queryAllDeclaredConstructors": true, diff --git a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/api/EndpointServiceClientHttpJsonTest.java b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/api/EndpointServiceClientHttpJsonTest.java index d1417db82980..8ab6fcb508c7 100644 --- a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/api/EndpointServiceClientHttpJsonTest.java +++ b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/api/EndpointServiceClientHttpJsonTest.java @@ -116,7 +116,6 @@ public void createEndpointTest() throws Exception { .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setNetwork("network1843485230") .setEnablePrivateServiceConnect(true) - .setPrivateServiceConnectConfig(PrivateServiceConnectConfig.newBuilder().build()) .setModelDeploymentMonitoringJob("modelDeploymentMonitoringJob-1178077657") .setPredictRequestResponseLoggingConfig( PredictRequestResponseLoggingConfig.newBuilder().build()) @@ -184,7 +183,6 @@ public void createEndpointTest2() throws Exception { .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setNetwork("network1843485230") .setEnablePrivateServiceConnect(true) - .setPrivateServiceConnectConfig(PrivateServiceConnectConfig.newBuilder().build()) .setModelDeploymentMonitoringJob("modelDeploymentMonitoringJob-1178077657") .setPredictRequestResponseLoggingConfig( PredictRequestResponseLoggingConfig.newBuilder().build()) @@ -252,7 +250,6 @@ public void createEndpointTest3() throws Exception { .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setNetwork("network1843485230") .setEnablePrivateServiceConnect(true) - .setPrivateServiceConnectConfig(PrivateServiceConnectConfig.newBuilder().build()) .setModelDeploymentMonitoringJob("modelDeploymentMonitoringJob-1178077657") .setPredictRequestResponseLoggingConfig( PredictRequestResponseLoggingConfig.newBuilder().build()) @@ -322,7 +319,6 @@ public void createEndpointTest4() throws Exception { .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setNetwork("network1843485230") .setEnablePrivateServiceConnect(true) - .setPrivateServiceConnectConfig(PrivateServiceConnectConfig.newBuilder().build()) .setModelDeploymentMonitoringJob("modelDeploymentMonitoringJob-1178077657") .setPredictRequestResponseLoggingConfig( PredictRequestResponseLoggingConfig.newBuilder().build()) @@ -392,7 +388,6 @@ public void getEndpointTest() throws Exception { .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setNetwork("network1843485230") .setEnablePrivateServiceConnect(true) - .setPrivateServiceConnectConfig(PrivateServiceConnectConfig.newBuilder().build()) .setModelDeploymentMonitoringJob("modelDeploymentMonitoringJob-1178077657") .setPredictRequestResponseLoggingConfig( PredictRequestResponseLoggingConfig.newBuilder().build()) @@ -455,7 +450,6 @@ public void getEndpointTest2() throws Exception { .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setNetwork("network1843485230") .setEnablePrivateServiceConnect(true) - .setPrivateServiceConnectConfig(PrivateServiceConnectConfig.newBuilder().build()) .setModelDeploymentMonitoringJob("modelDeploymentMonitoringJob-1178077657") .setPredictRequestResponseLoggingConfig( PredictRequestResponseLoggingConfig.newBuilder().build()) @@ -616,7 +610,6 @@ public void updateEndpointTest() throws Exception { .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setNetwork("network1843485230") .setEnablePrivateServiceConnect(true) - .setPrivateServiceConnectConfig(PrivateServiceConnectConfig.newBuilder().build()) .setModelDeploymentMonitoringJob("modelDeploymentMonitoringJob-1178077657") .setPredictRequestResponseLoggingConfig( PredictRequestResponseLoggingConfig.newBuilder().build()) @@ -639,7 +632,6 @@ public void updateEndpointTest() throws Exception { .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setNetwork("network1843485230") .setEnablePrivateServiceConnect(true) - .setPrivateServiceConnectConfig(PrivateServiceConnectConfig.newBuilder().build()) .setModelDeploymentMonitoringJob("modelDeploymentMonitoringJob-1178077657") .setPredictRequestResponseLoggingConfig( PredictRequestResponseLoggingConfig.newBuilder().build()) @@ -689,7 +681,6 @@ public void updateEndpointExceptionTest() throws Exception { .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setNetwork("network1843485230") .setEnablePrivateServiceConnect(true) - .setPrivateServiceConnectConfig(PrivateServiceConnectConfig.newBuilder().build()) .setModelDeploymentMonitoringJob("modelDeploymentMonitoringJob-1178077657") .setPredictRequestResponseLoggingConfig( PredictRequestResponseLoggingConfig.newBuilder().build()) diff --git a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/api/EndpointServiceClientTest.java b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/api/EndpointServiceClientTest.java index 64cf33af311f..f8c12cf56a51 100644 --- a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/api/EndpointServiceClientTest.java +++ b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/api/EndpointServiceClientTest.java @@ -125,7 +125,6 @@ public void createEndpointTest() throws Exception { .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setNetwork("network1843485230") .setEnablePrivateServiceConnect(true) - .setPrivateServiceConnectConfig(PrivateServiceConnectConfig.newBuilder().build()) .setModelDeploymentMonitoringJob("modelDeploymentMonitoringJob-1178077657") .setPredictRequestResponseLoggingConfig( PredictRequestResponseLoggingConfig.newBuilder().build()) @@ -191,7 +190,6 @@ public void createEndpointTest2() throws Exception { .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setNetwork("network1843485230") .setEnablePrivateServiceConnect(true) - .setPrivateServiceConnectConfig(PrivateServiceConnectConfig.newBuilder().build()) .setModelDeploymentMonitoringJob("modelDeploymentMonitoringJob-1178077657") .setPredictRequestResponseLoggingConfig( PredictRequestResponseLoggingConfig.newBuilder().build()) @@ -257,7 +255,6 @@ public void createEndpointTest3() throws Exception { .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setNetwork("network1843485230") .setEnablePrivateServiceConnect(true) - .setPrivateServiceConnectConfig(PrivateServiceConnectConfig.newBuilder().build()) .setModelDeploymentMonitoringJob("modelDeploymentMonitoringJob-1178077657") .setPredictRequestResponseLoggingConfig( PredictRequestResponseLoggingConfig.newBuilder().build()) @@ -326,7 +323,6 @@ public void createEndpointTest4() throws Exception { .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setNetwork("network1843485230") .setEnablePrivateServiceConnect(true) - .setPrivateServiceConnectConfig(PrivateServiceConnectConfig.newBuilder().build()) .setModelDeploymentMonitoringJob("modelDeploymentMonitoringJob-1178077657") .setPredictRequestResponseLoggingConfig( PredictRequestResponseLoggingConfig.newBuilder().build()) @@ -395,7 +391,6 @@ public void getEndpointTest() throws Exception { .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setNetwork("network1843485230") .setEnablePrivateServiceConnect(true) - .setPrivateServiceConnectConfig(PrivateServiceConnectConfig.newBuilder().build()) .setModelDeploymentMonitoringJob("modelDeploymentMonitoringJob-1178077657") .setPredictRequestResponseLoggingConfig( PredictRequestResponseLoggingConfig.newBuilder().build()) @@ -452,7 +447,6 @@ public void getEndpointTest2() throws Exception { .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setNetwork("network1843485230") .setEnablePrivateServiceConnect(true) - .setPrivateServiceConnectConfig(PrivateServiceConnectConfig.newBuilder().build()) .setModelDeploymentMonitoringJob("modelDeploymentMonitoringJob-1178077657") .setPredictRequestResponseLoggingConfig( PredictRequestResponseLoggingConfig.newBuilder().build()) @@ -595,7 +589,6 @@ public void updateEndpointTest() throws Exception { .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setNetwork("network1843485230") .setEnablePrivateServiceConnect(true) - .setPrivateServiceConnectConfig(PrivateServiceConnectConfig.newBuilder().build()) .setModelDeploymentMonitoringJob("modelDeploymentMonitoringJob-1178077657") .setPredictRequestResponseLoggingConfig( PredictRequestResponseLoggingConfig.newBuilder().build()) diff --git a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/api/LlmUtilityServiceClientTest.java b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/api/LlmUtilityServiceClientTest.java index 7472c6ddf8ff..2290b09c0481 100644 --- a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/api/LlmUtilityServiceClientTest.java +++ b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/api/LlmUtilityServiceClientTest.java @@ -56,6 +56,7 @@ import org.junit.Assert; import org.junit.Before; import org.junit.BeforeClass; +import org.junit.Ignore; import org.junit.Test; @Generated("by gapic-generator-java") @@ -101,6 +102,7 @@ public void tearDown() throws Exception { client.close(); } + @Ignore @Test public void countTokensTest() throws Exception { CountTokensResponse expectedResponse = @@ -129,6 +131,7 @@ public void countTokensTest() throws Exception { GaxGrpcProperties.getDefaultApiClientHeaderPattern())); } + @Ignore @Test public void countTokensExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); @@ -145,6 +148,7 @@ public void countTokensExceptionTest() throws Exception { } } + @Ignore @Test public void countTokensTest2() throws Exception { CountTokensResponse expectedResponse = @@ -172,6 +176,7 @@ public void countTokensTest2() throws Exception { GaxGrpcProperties.getDefaultApiClientHeaderPattern())); } + @Ignore @Test public void countTokensExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); diff --git a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/api/PredictionServiceClientTest.java b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/api/PredictionServiceClientTest.java index b2233ec85938..45a4e2e1ef08 100644 --- a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/api/PredictionServiceClientTest.java +++ b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/api/PredictionServiceClientTest.java @@ -930,7 +930,6 @@ public void streamGenerateContentTest() throws Exception { .addAllContents(new ArrayList()) .setSystemInstruction(Content.newBuilder().build()) .addAllTools(new ArrayList()) - .setToolConfig(ToolConfig.newBuilder().build()) .addAllSafetySettings(new ArrayList()) .setGenerationConfig(GenerationConfig.newBuilder().build()) .build(); @@ -956,7 +955,6 @@ public void streamGenerateContentExceptionTest() throws Exception { .addAllContents(new ArrayList()) .setSystemInstruction(Content.newBuilder().build()) .addAllTools(new ArrayList()) - .setToolConfig(ToolConfig.newBuilder().build()) .addAllSafetySettings(new ArrayList()) .setGenerationConfig(GenerationConfig.newBuilder().build()) .build(); diff --git a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/AutomaticFunctionCallingResponderTest.java b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/AutomaticFunctionCallingResponderTest.java new file mode 100644 index 000000000000..eefd1993456d --- /dev/null +++ b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/AutomaticFunctionCallingResponderTest.java @@ -0,0 +1,305 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.vertexai.generativeai; + +import static com.google.common.truth.Truth.assertThat; +import static org.junit.Assert.assertThrows; + +import com.google.cloud.vertexai.api.Content; +import com.google.cloud.vertexai.api.FunctionCall; +import com.google.protobuf.Struct; +import com.google.protobuf.Value; +import java.lang.reflect.Method; +import java.util.Arrays; +import java.util.Collections; +import java.util.List; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +@RunWith(JUnit4.class) +public final class AutomaticFunctionCallingResponderTest { + private static final int MAX_FUNCTION_CALLS = 5; + private static final int DEFAULT_MAX_FUNCTION_CALLS = 1; + private static final String FUNCTION_NAME_1 = "getCurrentWeather"; + private static final String FUNCTION_NAME_2 = "getCurrentTemperature"; + private static final String STRING_PARAMETER_NAME = "location"; + private static final FunctionCall FUNCTION_CALL_1 = + FunctionCall.newBuilder() + .setName(FUNCTION_NAME_1) + .setArgs( + Struct.newBuilder() + .putFields( + STRING_PARAMETER_NAME, Value.newBuilder().setStringValue("Boston").build())) + .build(); + private static final FunctionCall FUNCTION_CALL_2 = + FunctionCall.newBuilder() + .setName(FUNCTION_NAME_2) + .setArgs( + Struct.newBuilder() + .putFields( + STRING_PARAMETER_NAME, + Value.newBuilder().setStringValue("Vancouver").build())) + .build(); + private static final FunctionCall FUNCTION_CALL_WITH_FALSE_FUNCTION_NAME = + FunctionCall.newBuilder() + .setName("nonExistFunction") + .setArgs( + Struct.newBuilder() + .putFields( + STRING_PARAMETER_NAME, Value.newBuilder().setStringValue("Boston").build())) + .build(); + private static final FunctionCall FUNCTION_CALL_WITH_FALSE_PARAMETER_NAME = + FunctionCall.newBuilder() + .setName(FUNCTION_NAME_1) + .setArgs( + Struct.newBuilder() + .putFields( + "nonExistParameter", Value.newBuilder().setStringValue("Boston").build())) + .build(); + private static final FunctionCall FUNCTION_CALL_WITH_FALSE_PARAMETER_VALUE = + FunctionCall.newBuilder() + .setName(FUNCTION_NAME_1) + .setArgs( + Struct.newBuilder() + .putFields(STRING_PARAMETER_NAME, Value.newBuilder().setBoolValue(false).build())) + .build(); + + public static String getCurrentWeather(String location) { + if (location.equals("Boston")) { + return "snowing"; + } else if (location.equals("Vancouver")) { + return "raining"; + } else { + return "sunny"; + } + } + + public static int getCurrentTemperature(String location) { + if (location.equals("Boston")) { + return 32; + } else if (location.equals("Vancouver")) { + return 45; + } else { + return 75; + } + } + + public boolean nonStaticMethod() { + return true; + } + + @Test + public void testInitAutomaticFunctionCallingResponder_containsRightFields() { + AutomaticFunctionCallingResponder responder = new AutomaticFunctionCallingResponder(); + + assertThat(responder.getMaxFunctionCalls()).isEqualTo(DEFAULT_MAX_FUNCTION_CALLS); + } + + @Test + public void testInitAutomaticFunctionCallingResponderWithMaxFunctionCalls_containsRightFields() { + AutomaticFunctionCallingResponder responder = + new AutomaticFunctionCallingResponder(MAX_FUNCTION_CALLS); + + assertThat(responder.getMaxFunctionCalls()).isEqualTo(MAX_FUNCTION_CALLS); + } + + @Test + public void testSetMaxFunctionCalls_containsRightFields() { + AutomaticFunctionCallingResponder responder = new AutomaticFunctionCallingResponder(); + responder.setMaxFunctionCalls(MAX_FUNCTION_CALLS); + + assertThat(responder.getMaxFunctionCalls()).isEqualTo(MAX_FUNCTION_CALLS); + } + + @Test + public void testAddCallableFunctionWithoutOrderedParameterNames_throwsIllegalArgumentException() + throws NoSuchMethodException { + AutomaticFunctionCallingResponder responder = new AutomaticFunctionCallingResponder(); + Method callableFunction = + AutomaticFunctionCallingResponderTest.class.getMethod(FUNCTION_NAME_1, String.class); + + IllegalStateException thrown = + assertThrows( + IllegalStateException.class, + () -> responder.addCallableFunction(FUNCTION_NAME_1, callableFunction)); + assertThat(thrown) + .hasMessageThat() + .isEqualTo( + "Failed to retrieve the parameter name from reflection. Please compile your code with" + + " \"-parameters\" flag or use `addCallableFunction(String, Method, String...)`" + + " to manually enter parameter names"); + } + + @Test + public void testAddNonStaticCallableFunction_throwsIllegalArgumentException() + throws NoSuchMethodException { + AutomaticFunctionCallingResponder responder = new AutomaticFunctionCallingResponder(); + Method nonStaticMethod = + AutomaticFunctionCallingResponderTest.class.getMethod("nonStaticMethod"); + + IllegalArgumentException thrown = + assertThrows( + IllegalArgumentException.class, + () -> + responder.addCallableFunction( + FUNCTION_NAME_1, nonStaticMethod, STRING_PARAMETER_NAME)); + assertThat(thrown).hasMessageThat().isEqualTo("Function calling only supports static methods."); + } + + @Test + public void testAddRepeatedCallableFunction_throwsIllegalArgumentException() + throws NoSuchMethodException { + AutomaticFunctionCallingResponder responder = new AutomaticFunctionCallingResponder(); + Method callableFunction = + AutomaticFunctionCallingResponderTest.class.getMethod(FUNCTION_NAME_1, String.class); + responder.addCallableFunction(FUNCTION_NAME_1, callableFunction, STRING_PARAMETER_NAME); + + IllegalArgumentException thrown = + assertThrows( + IllegalArgumentException.class, + () -> + responder.addCallableFunction( + FUNCTION_NAME_1, callableFunction, STRING_PARAMETER_NAME)); + assertThat(thrown).hasMessageThat().isEqualTo("Duplicate function name: " + FUNCTION_NAME_1); + } + + @Test + public void testAddCallableFunctionWithWrongParameterNames_throwsIllegalArgumentException() + throws NoSuchMethodException { + AutomaticFunctionCallingResponder responder = new AutomaticFunctionCallingResponder(); + Method callableFunction = + AutomaticFunctionCallingResponderTest.class.getMethod(FUNCTION_NAME_1, String.class); + + IllegalArgumentException thrown = + assertThrows( + IllegalArgumentException.class, + () -> + responder.addCallableFunction( + FUNCTION_NAME_1, callableFunction, STRING_PARAMETER_NAME, "anotherParameter")); + assertThat(thrown) + .hasMessageThat() + .isEqualTo( + "The number of provided parameter names doesn't match the number of parameters in the" + + " callable function."); + } + + @Test + public void testRespondToFunctionCall_returnsCorrectResponse() throws Exception { + AutomaticFunctionCallingResponder responder = new AutomaticFunctionCallingResponder(2); + Method callableFunction1 = + AutomaticFunctionCallingResponderTest.class.getMethod(FUNCTION_NAME_1, String.class); + Method callableFunction2 = + AutomaticFunctionCallingResponderTest.class.getMethod(FUNCTION_NAME_2, String.class); + responder.addCallableFunction(FUNCTION_NAME_1, callableFunction1, STRING_PARAMETER_NAME); + responder.addCallableFunction(FUNCTION_NAME_2, callableFunction2, STRING_PARAMETER_NAME); + List functionCalls = Arrays.asList(FUNCTION_CALL_1, FUNCTION_CALL_2); + + Content response = responder.getContentFromFunctionCalls(functionCalls); + + Content expectedResponse = + ContentMaker.fromMultiModalData( + PartMaker.fromFunctionResponse( + FUNCTION_NAME_1, Collections.singletonMap("result", "snowing")), + PartMaker.fromFunctionResponse( + FUNCTION_NAME_2, Collections.singletonMap("result", 45))); + + assertThat(response).isEqualTo(expectedResponse); + } + + @Test + public void testRespondToFunctionCallExceedsMaxFunctionCalls_throwsIllegalStateException() + throws Exception { + AutomaticFunctionCallingResponder responder = new AutomaticFunctionCallingResponder(); + Method callableFunction1 = + AutomaticFunctionCallingResponderTest.class.getMethod(FUNCTION_NAME_1, String.class); + Method callableFunction2 = + AutomaticFunctionCallingResponderTest.class.getMethod(FUNCTION_NAME_2, String.class); + responder.addCallableFunction(FUNCTION_NAME_1, callableFunction1, STRING_PARAMETER_NAME); + responder.addCallableFunction(FUNCTION_NAME_2, callableFunction2, STRING_PARAMETER_NAME); + List functionCalls = Arrays.asList(FUNCTION_CALL_1, FUNCTION_CALL_2); + + IllegalStateException thrown = + assertThrows( + IllegalStateException.class, + () -> responder.getContentFromFunctionCalls(functionCalls)); + assertThat(thrown) + .hasMessageThat() + .contains("Exceeded the maximum number of continuous automatic function calls"); + } + + @Test + public void testRespondToFunctionCallWithNonExistFunction_throwsIllegalArgumentException() + throws Exception { + AutomaticFunctionCallingResponder responder = new AutomaticFunctionCallingResponder(); + Method callableFunction1 = + AutomaticFunctionCallingResponderTest.class.getMethod(FUNCTION_NAME_1, String.class); + responder.addCallableFunction(FUNCTION_NAME_1, callableFunction1, STRING_PARAMETER_NAME); + List functionCalls = Arrays.asList(FUNCTION_CALL_WITH_FALSE_FUNCTION_NAME); + + IllegalArgumentException thrown = + assertThrows( + IllegalArgumentException.class, + () -> responder.getContentFromFunctionCalls(functionCalls)); + assertThat(thrown) + .hasMessageThat() + .isEqualTo("Model has asked to call function \"nonExistFunction\" which was not found."); + } + + @Test + public void testRespondToFunctionCallWithNonExistParameter_throwsIllegalArgumentException() + throws Exception { + AutomaticFunctionCallingResponder responder = new AutomaticFunctionCallingResponder(); + Method callableFunction1 = + AutomaticFunctionCallingResponderTest.class.getMethod(FUNCTION_NAME_1, String.class); + responder.addCallableFunction(FUNCTION_NAME_1, callableFunction1, STRING_PARAMETER_NAME); + List functionCalls = Arrays.asList(FUNCTION_CALL_WITH_FALSE_PARAMETER_NAME); + + IllegalArgumentException thrown = + assertThrows( + IllegalArgumentException.class, + () -> responder.getContentFromFunctionCalls(functionCalls)); + assertThat(thrown) + .hasMessageThat() + .contains( + "The parameter \"" + + STRING_PARAMETER_NAME + + "\" was not found in the arguments requested by the" + + " model."); + } + + @Test + public void testRespondToFunctionCallWithWrongParameterValue_throwsIllegalStateException() + throws Exception { + AutomaticFunctionCallingResponder responder = new AutomaticFunctionCallingResponder(); + Method callableFunction1 = + AutomaticFunctionCallingResponderTest.class.getMethod(FUNCTION_NAME_1, String.class); + responder.addCallableFunction(FUNCTION_NAME_1, callableFunction1, STRING_PARAMETER_NAME); + List functionCalls = Arrays.asList(FUNCTION_CALL_WITH_FALSE_PARAMETER_VALUE); + + IllegalStateException thrown = + assertThrows( + IllegalStateException.class, + () -> responder.getContentFromFunctionCalls(functionCalls)); + assertThat(thrown) + .hasMessageThat() + .contains( + "Error raised when calling function \"" + + FUNCTION_NAME_1 + + "\" as requested by the model. "); + } +} diff --git a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/ChatSessionTest.java b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/ChatSessionTest.java index 26cb1f9cee3d..0537d96fb0dc 100644 --- a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/ChatSessionTest.java +++ b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/ChatSessionTest.java @@ -28,6 +28,7 @@ import com.google.cloud.vertexai.api.Candidate; import com.google.cloud.vertexai.api.Candidate.FinishReason; import com.google.cloud.vertexai.api.Content; +import com.google.cloud.vertexai.api.FunctionCall; import com.google.cloud.vertexai.api.FunctionDeclaration; import com.google.cloud.vertexai.api.GenerateContentRequest; import com.google.cloud.vertexai.api.GenerateContentResponse; @@ -40,8 +41,11 @@ import com.google.cloud.vertexai.api.Schema; import com.google.cloud.vertexai.api.Tool; import com.google.cloud.vertexai.api.Type; +import com.google.protobuf.Struct; +import com.google.protobuf.Value; import java.io.IOException; import java.util.Arrays; +import java.util.Collections; import java.util.Iterator; import java.util.List; import org.junit.Before; @@ -59,6 +63,10 @@ public final class ChatSessionTest { private static final String PROJECT = "test_project"; private static final String LOCATION = "test_location"; + private static final String FUNCTION_CALL_MESSAGE = "What is the current weather in Boston?"; + private static final String FUNCTION_CALL_NAME = "getCurrentWeather"; + private static final String FUNCTION_CALL_PARAMETER_NAME = "location"; + private static final String SAMPLE_MESSAGE1 = "how are you?"; private static final String RESPONSE_STREAM_CHUNK1_TEXT = "I do not have any feelings"; private static final String RESPONSE_STREAM_CHUNK2_TEXT = "But I'm happy to help you!"; @@ -117,6 +125,30 @@ public final class ChatSessionTest { .setContent( Content.newBuilder().addParts(Part.newBuilder().setText(FULL_RESPONSE_TEXT)))) .build(); + private static final GenerateContentResponse RESPONSE_WITH_FUNCTION_CALL = + GenerateContentResponse.newBuilder() + .addCandidates( + Candidate.newBuilder() + .setFinishReason(FinishReason.STOP) + .setContent( + Content.newBuilder() + .addParts( + Part.newBuilder() + .setFunctionCall( + FunctionCall.newBuilder() + .setName(FUNCTION_CALL_NAME) + .setArgs( + Struct.newBuilder() + .putFields( + FUNCTION_CALL_PARAMETER_NAME, + Value.newBuilder() + .setStringValue("Boston") + .build())))))) + .build(); + private static final Content FUNCTION_RESPONSE_CONTENT = + ContentMaker.fromMultiModalData( + PartMaker.fromFunctionResponse( + FUNCTION_CALL_NAME, Collections.singletonMap("result", "snowing"))); private static final GenerationConfig GENERATION_CONFIG = GenerationConfig.newBuilder().setCandidateCount(1).build(); @@ -156,6 +188,17 @@ public final class ChatSessionTest { private ChatSession chat; + /** Callable function getCurrentWeather for testing automatic function calling. */ + public static String getCurrentWeather(String location) { + if (location.equals("Boston")) { + return "snowing"; + } else if (location.equals("Vancouver")) { + return "raining"; + } else { + return "sunny"; + } + } + @Before public void doBeforeEachTest() { chat = new ChatSession(mockGenerativeModel); @@ -303,6 +346,151 @@ public void sendMessageWithText_throwsIllegalStateExceptionWhenFinishReasonIsNot assertThat(history.size()).isEqualTo(0); } + @Test + public void sendMessageWithAutomaticFunctionCallingResponder_autoRespondsToFunctionCalls() + throws IOException, NoSuchMethodException { + // (Arrange) Set up the return value of the generateContent + when(mockGenerativeModel.generateContent( + Arrays.asList(ContentMaker.fromString(FUNCTION_CALL_MESSAGE)))) + .thenReturn(RESPONSE_WITH_FUNCTION_CALL); + when(mockGenerativeModel.generateContent( + Arrays.asList( + ContentMaker.fromString(FUNCTION_CALL_MESSAGE), + ResponseHandler.getContent(RESPONSE_WITH_FUNCTION_CALL), + FUNCTION_RESPONSE_CONTENT))) + .thenReturn(RESPONSE_FROM_UNARY_CALL); + + // (Act) Send text message via sendMessage + AutomaticFunctionCallingResponder responder = new AutomaticFunctionCallingResponder(); + responder.addCallableFunction( + FUNCTION_CALL_NAME, + ChatSessionTest.class.getMethod(FUNCTION_CALL_NAME, String.class), + FUNCTION_CALL_PARAMETER_NAME); + GenerateContentResponse response = + chat.withAutomaticFunctionCallingResponder(responder).sendMessage(FUNCTION_CALL_MESSAGE); + + // (Act & Assert) get history and assert that the history contains 4 contents and the response + // is the final response instead of the intermediate one. + assertThat(chat.getHistory().size()).isEqualTo(4); + assertThat(response).isEqualTo(RESPONSE_FROM_UNARY_CALL); + } + + @Test + public void sendMessageWithAutomaticFunctionCallingResponderIOException_chatHistoryGetReverted() + throws IOException, NoSuchMethodException { + // (Arrange) Set up the return value of the generateContent + when(mockGenerativeModel.generateContent( + Arrays.asList(ContentMaker.fromString(FUNCTION_CALL_MESSAGE)))) + .thenReturn(RESPONSE_WITH_FUNCTION_CALL); + when(mockGenerativeModel.generateContent( + Arrays.asList( + ContentMaker.fromString(FUNCTION_CALL_MESSAGE), + ResponseHandler.getContent(RESPONSE_WITH_FUNCTION_CALL), + FUNCTION_RESPONSE_CONTENT))) + .thenThrow(new IOException("Server error")); + + // (Act) Send text message via sendMessage + AutomaticFunctionCallingResponder responder = new AutomaticFunctionCallingResponder(); + responder.addCallableFunction( + FUNCTION_CALL_NAME, + ChatSessionTest.class.getMethod(FUNCTION_CALL_NAME, String.class), + FUNCTION_CALL_PARAMETER_NAME); + + IOException thrown = + assertThrows( + IOException.class, + () -> + chat.withAutomaticFunctionCallingResponder(responder) + .sendMessage(FUNCTION_CALL_MESSAGE)); + assertThat(thrown).hasMessageThat().isEqualTo("Server error"); + + // (Act & Assert) get history and assert that the history contains no contents since the + // intermediate response got an error and all contents got reverted. + assertThat(chat.getHistory().size()).isEqualTo(0); + } + + @Test + public void + sendMessageWithAutomaticFunctionCallingResponderIllegalStateException_chatHistoryGetReverted() + throws IOException, NoSuchMethodException { + // (Arrange) Set up the return value of the generateContent + when(mockGenerativeModel.generateContent( + Arrays.asList(ContentMaker.fromString(FUNCTION_CALL_MESSAGE)))) + .thenReturn(RESPONSE_WITH_FUNCTION_CALL); + when(mockGenerativeModel.generateContent( + Arrays.asList( + ContentMaker.fromString(FUNCTION_CALL_MESSAGE), + ResponseHandler.getContent(RESPONSE_WITH_FUNCTION_CALL), + FUNCTION_RESPONSE_CONTENT))) + .thenReturn(RESPONSE_WITH_FUNCTION_CALL); + when(mockGenerativeModel.generateContent( + Arrays.asList( + ContentMaker.fromString(FUNCTION_CALL_MESSAGE), + ResponseHandler.getContent(RESPONSE_WITH_FUNCTION_CALL), + FUNCTION_RESPONSE_CONTENT, + ResponseHandler.getContent(RESPONSE_WITH_FUNCTION_CALL), + FUNCTION_RESPONSE_CONTENT))) + .thenReturn(RESPONSE_FROM_UNARY_CALL); + + // (Act) Send text message via sendMessage + AutomaticFunctionCallingResponder responder = new AutomaticFunctionCallingResponder(); + responder.addCallableFunction( + FUNCTION_CALL_NAME, + ChatSessionTest.class.getMethod(FUNCTION_CALL_NAME, String.class), + FUNCTION_CALL_PARAMETER_NAME); + + // After mocking, there should be 2 consecutive auto function calls, but the max number of + // function calls in the responder is 1, so an IllegalStateException will be thrown. + IllegalStateException thrown = + assertThrows( + IllegalStateException.class, + () -> + chat.withAutomaticFunctionCallingResponder(responder) + .sendMessage(FUNCTION_CALL_MESSAGE)); + assertThat(thrown) + .hasMessageThat() + .contains("Exceeded the maximum number of continuous automatic function calls"); + + // (Act & Assert) get history and assert that the history contains no contents since the + // intermediate response got an error and all contents got reverted. + assertThat(chat.getHistory().size()).isEqualTo(0); + } + + @Test + public void + sendMessageWithAutomaticFunctionCallingResponderFinishReasonNotStop_chatHistoryGetReverted() + throws IOException, NoSuchMethodException { + // (Arrange) Set up the return value of the generateContent + when(mockGenerativeModel.generateContent( + Arrays.asList(ContentMaker.fromString(FUNCTION_CALL_MESSAGE)))) + .thenReturn(RESPONSE_WITH_FUNCTION_CALL); + when(mockGenerativeModel.generateContent( + Arrays.asList( + ContentMaker.fromString(FUNCTION_CALL_MESSAGE), + ResponseHandler.getContent(RESPONSE_WITH_FUNCTION_CALL), + FUNCTION_RESPONSE_CONTENT))) + .thenReturn(RESPONSE_FROM_UNARY_CALL_WITH_OTHER_FINISH_REASON); + + // (Act) Send text message via sendMessage + AutomaticFunctionCallingResponder responder = new AutomaticFunctionCallingResponder(); + responder.addCallableFunction( + FUNCTION_CALL_NAME, + ChatSessionTest.class.getMethod(FUNCTION_CALL_NAME, String.class), + FUNCTION_CALL_PARAMETER_NAME); + GenerateContentResponse response = + chat.withAutomaticFunctionCallingResponder(responder).sendMessage(FUNCTION_CALL_MESSAGE); + + // (Act & Assert) get history will throw since the final response stopped with error. The + // history should be reverted. + assertThat(response).isEqualTo(RESPONSE_FROM_UNARY_CALL_WITH_OTHER_FINISH_REASON); + IllegalStateException thrown = + assertThrows(IllegalStateException.class, () -> chat.getHistory()); + assertThat(thrown).hasMessageThat().isEqualTo("Rerun getHistory() to get cleaned history."); + // Assert that the history can be fetched again and it's empty. + List history = chat.getHistory(); + assertThat(history.size()).isEqualTo(0); + } + @Test public void testChatSessionMergeHistoryToRootChatSession() throws Exception { diff --git a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/GenerativeModelTest.java b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/GenerativeModelTest.java index f3f8324206ee..1df2354b6d96 100644 --- a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/GenerativeModelTest.java +++ b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/GenerativeModelTest.java @@ -98,7 +98,9 @@ public final class GenerativeModelTest { .addRequired("location"))) .build(); private static final Tool GOOGLE_SEARCH_TOOL = - Tool.newBuilder().setGoogleSearchRetrieval(GoogleSearchRetrieval.newBuilder()).build(); + Tool.newBuilder() + .setGoogleSearchRetrieval(GoogleSearchRetrieval.newBuilder().setDisableAttribution(false)) + .build(); private static final Tool VERTEX_AI_SEARCH_TOOL = Tool.newBuilder() .setRetrieval( diff --git a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/it/ITChatSessionIntegrationTest.java b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/it/ITChatSessionIntegrationTest.java index 03d65fe4ab24..420ccd01535b 100644 --- a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/it/ITChatSessionIntegrationTest.java +++ b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/it/ITChatSessionIntegrationTest.java @@ -24,6 +24,7 @@ import com.google.cloud.vertexai.api.HarmCategory; import com.google.cloud.vertexai.api.SafetySetting; import com.google.cloud.vertexai.api.Tool; +import com.google.cloud.vertexai.generativeai.AutomaticFunctionCallingResponder; import com.google.cloud.vertexai.generativeai.ChatSession; import com.google.cloud.vertexai.generativeai.ContentMaker; import com.google.cloud.vertexai.generativeai.FunctionDeclarationMaker; @@ -38,7 +39,6 @@ import java.util.logging.Logger; import org.junit.After; import org.junit.Before; -import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; @@ -55,6 +55,17 @@ public class ITChatSessionIntegrationTest { private GenerativeModel model; private ChatSession chat; + /** Callable function getCurrentWeather for testing automatic function calling. */ + public static String getCurrentWeather(String location) { + if (location.equals("Boston")) { + return "snowing"; + } else if (location.equals("Vancouver")) { + return "raining"; + } else { + return "sunny"; + } + } + @Before public void setUp() throws IOException { vertexAi = new VertexAI(PROJECT_ID, LOCATION); @@ -89,9 +100,6 @@ private static void assertSizeAndAlternatingRolesInHistory( } } - @Ignore( - "TODO(b/335830545): The Gen AI API is too flaky to handle three sets of simultanenous IT on" - + " the GitHub side.") @Test public void sendMessageMixedStreamAndUnary_historyOfFour() throws IOException { // Arrange @@ -119,9 +127,6 @@ public void sendMessageMixedStreamAndUnary_historyOfFour() throws IOException { ImmutableList.of(expectedFirstContent, expectedThirdContent)); } - @Ignore( - "TODO(b/335830545): The Gen AI API is too flaky to handle three sets of simultanenous IT on" - + " the GitHub side.") @Test public void sendMessageWithNewConfigs_historyContainsFullConversation() throws IOException { // Arrange @@ -162,9 +167,6 @@ public void sendMessageWithNewConfigs_historyContainsFullConversation() throws I ImmutableList.of(expectedFirstContent, expectedThirdContent)); } - @Ignore( - "TODO(b/335830545): The Gen AI API is too flaky to handle three sets of simultanenous IT on" - + " the GitHub side.") @Test public void sendMessageWithFunctionCalling_functionCallInResponse() throws IOException { // Arrange @@ -232,4 +234,60 @@ public void sendMessageWithFunctionCalling_functionCallInResponse() throws IOExc ContentMaker.fromString(secondMessage), functionResponse)); } + + @Test + public void sendMessageWithAutomaticFunctionCalling_autoRespondToFunctionCall() + throws IOException, NoSuchMethodException { + // Arrange + String message = "What is the weather in Boston?"; + + JsonObject locationJsonObject = new JsonObject(); + locationJsonObject.addProperty("type", "STRING"); + locationJsonObject.addProperty("description", "location"); + + JsonObject propertiesJsonObject = new JsonObject(); + propertiesJsonObject.add("location", locationJsonObject); + + JsonObject parametersJsonObject = new JsonObject(); + parametersJsonObject.addProperty("type", "OBJECT"); + parametersJsonObject.add("properties", propertiesJsonObject); + + JsonObject jsonObject = new JsonObject(); + jsonObject.addProperty("name", "getCurrentWeather"); + jsonObject.addProperty("description", "Get the current weather in a given location"); + jsonObject.add("parameters", parametersJsonObject); + Tool tool = + Tool.newBuilder() + .addFunctionDeclarations(FunctionDeclarationMaker.fromJsonObject(jsonObject)) + .build(); + ImmutableList tools = ImmutableList.of(tool); + + AutomaticFunctionCallingResponder responder = new AutomaticFunctionCallingResponder(); + responder.addCallableFunction( + "getCurrentWeather", + ITChatSessionIntegrationTest.class.getMethod("getCurrentWeather", String.class), + "location"); + + // Act + chat = model.startChat(); + GenerateContentResponse response = + chat.withTools(tools).withAutomaticFunctionCallingResponder(responder).sendMessage(message); + + // Assert + assertThat(response.getCandidatesList()).hasSize(1); + // The final response should not contain any function calls since the function was called + // automatically. + assertThat(ResponseHandler.getFunctionCalls(response)).isEmpty(); + + ImmutableList history = chat.getHistory(); + Content expectedFunctionResponse = + ContentMaker.fromMultiModalData( + PartMaker.fromFunctionResponse( + "getCurrentWeather", Collections.singletonMap("result", "snowing"))); + assertSizeAndAlternatingRolesInHistory( + Thread.currentThread().getStackTrace()[1].getMethodName(), + history, + 4, + ImmutableList.of(ContentMaker.fromString(message), expectedFunctionResponse)); + } } diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AcceleratorType.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AcceleratorType.java index 78b9a728fbb5..329860b16bab 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AcceleratorType.java +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AcceleratorType.java @@ -159,16 +159,6 @@ public enum AcceleratorType implements com.google.protobuf.ProtocolMessageEnum { * TPU_V4_POD = 10; */ TPU_V4_POD(10), - /** - * - * - *
-   * TPU v5.
-   * 
- * - * TPU_V5_LITEPOD = 12; - */ - TPU_V5_LITEPOD(12), UNRECOGNIZED(-1), ; @@ -302,16 +292,6 @@ public enum AcceleratorType implements com.google.protobuf.ProtocolMessageEnum { * TPU_V4_POD = 10; */ public static final int TPU_V4_POD_VALUE = 10; - /** - * - * - *
-   * TPU v5.
-   * 
- * - * TPU_V5_LITEPOD = 12; - */ - public static final int TPU_V5_LITEPOD_VALUE = 12; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -363,8 +343,6 @@ public static AcceleratorType forNumber(int value) { return TPU_V3; case 10: return TPU_V4_POD; - case 12: - return TPU_V5_LITEPOD; default: return null; } diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AcceleratorTypeProto.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AcceleratorTypeProto.java index 511fe8170881..0ae0196221f2 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AcceleratorTypeProto.java +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AcceleratorTypeProto.java @@ -37,7 +37,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n/google/cloud/vertexai/v1/accelerator_t" - + "ype.proto\022\030google.cloud.vertexai.v1*\257\002\n\017" + + "ype.proto\022\030google.cloud.vertexai.v1*\233\002\n\017" + "AcceleratorType\022 \n\034ACCELERATOR_TYPE_UNSP" + "ECIFIED\020\000\022\024\n\020NVIDIA_TESLA_K80\020\001\022\025\n\021NVIDI" + "A_TESLA_P100\020\002\022\025\n\021NVIDIA_TESLA_V100\020\003\022\023\n" @@ -45,13 +45,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025\n\021NVIDIA_TESLA_A100\020\010\022\024\n\020NVIDIA_A100_80" + "GB\020\t\022\r\n\tNVIDIA_L4\020\013\022\024\n\020NVIDIA_H100_80GB\020" + "\r\022\n\n\006TPU_V2\020\006\022\n\n\006TPU_V3\020\007\022\016\n\nTPU_V4_POD\020" - + "\n\022\022\n\016TPU_V5_LITEPOD\020\014B\321\001\n\035com.google.clo" - + "ud.vertexai.apiB\024AcceleratorTypeProtoP\001Z" - + ">cloud.google.com/go/aiplatform/apiv1/ai" - + "platformpb;aiplatformpb\252\002\032Google.Cloud.A" - + "IPlatform.V1\312\002\032Google\\Cloud\\AIPlatform\\V" - + "1\352\002\035Google::Cloud::AIPlatform::V1b\006proto" - + "3" + + "\nB\321\001\n\035com.google.cloud.vertexai.apiB\024Acc" + + "eleratorTypeProtoP\001Z>cloud.google.com/go" + + "/aiplatform/apiv1/aiplatformpb;aiplatfor" + + "mpb\252\002\032Google.Cloud.AIPlatform.V1\312\002\032Googl" + + "e\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::A" + + "IPlatform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ContentProto.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ContentProto.java index 3c0480e311bd..45c59fda5a97 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ContentProto.java +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ContentProto.java @@ -73,13 +73,21 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_vertexai_v1_Candidate_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vertexai_v1_GroundingMetadata_descriptor; + internal_static_google_cloud_vertexai_v1_Segment_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vertexai_v1_GroundingMetadata_fieldAccessorTable; + internal_static_google_cloud_vertexai_v1_Segment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vertexai_v1_GroundingAttribution_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vertexai_v1_GroundingAttribution_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vertexai_v1_GroundingAttribution_Web_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vertexai_v1_GroundingAttribution_Web_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vertexai_v1_SearchEntryPoint_descriptor; + internal_static_google_cloud_vertexai_v1_GroundingMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vertexai_v1_SearchEntryPoint_fieldAccessorTable; + internal_static_google_cloud_vertexai_v1_GroundingMetadata_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -91,8 +99,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n&google/cloud/vertexai/v1/content.proto" + "\022\030google.cloud.vertexai.v1\032\037google/api/f" - + "ield_behavior.proto\032&google/cloud/vertex" - + "ai/v1/openapi.proto\032#google/cloud/vertex" + + "ield_behavior.proto\032#google/cloud/vertex" + "ai/v1/tool.proto\032\036google/protobuf/durati" + "on.proto\032\026google/type/date.proto\"P\n\007Cont" + "ent\022\021\n\004role\030\001 \001(\tB\003\340A\001\0222\n\005parts\030\002 \003(\0132\036." @@ -112,7 +119,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "e_uri\030\002 \001(\tB\003\340A\002\"y\n\rVideoMetadata\0224\n\014sta" + "rt_offset\030\001 \001(\0132\031.google.protobuf.Durati" + "onB\003\340A\001\0222\n\nend_offset\030\002 \001(\0132\031.google.pro" - + "tobuf.DurationB\003\340A\001\"\204\004\n\020GenerationConfig" + + "tobuf.DurationB\003\340A\001\"\253\003\n\020GenerationConfig" + "\022\035\n\013temperature\030\001 \001(\002B\003\340A\001H\000\210\001\001\022\027\n\005top_p" + "\030\002 \001(\002B\003\340A\001H\001\210\001\001\022\027\n\005top_k\030\003 \001(\002B\003\340A\001H\002\210\001" + "\001\022!\n\017candidate_count\030\004 \001(\005B\003\340A\001H\003\210\001\001\022#\n\021" @@ -120,82 +127,86 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "p_sequences\030\006 \003(\tB\003\340A\001\022\"\n\020presence_penal" + "ty\030\010 \001(\002B\003\340A\001H\005\210\001\001\022#\n\021frequency_penalty\030" + "\t \001(\002B\003\340A\001H\006\210\001\001\022\037\n\022response_mime_type\030\r " - + "\001(\tB\003\340A\001\022C\n\017response_schema\030\020 \001(\0132 .goog" - + "le.cloud.vertexai.v1.SchemaB\003\340A\001H\007\210\001\001B\016\n" - + "\014_temperatureB\010\n\006_top_pB\010\n\006_top_kB\022\n\020_ca" - + "ndidate_countB\024\n\022_max_output_tokensB\023\n\021_" - + "presence_penaltyB\024\n\022_frequency_penaltyB\022" - + "\n\020_response_schema\"\334\003\n\rSafetySetting\022=\n\010" - + "category\030\001 \001(\0162&.google.cloud.vertexai.v" - + "1.HarmCategoryB\003\340A\002\022R\n\tthreshold\030\002 \001(\0162:" - + ".google.cloud.vertexai.v1.SafetySetting." - + "HarmBlockThresholdB\003\340A\002\022L\n\006method\030\004 \001(\0162" - + "7.google.cloud.vertexai.v1.SafetySetting" - + ".HarmBlockMethodB\003\340A\001\"\224\001\n\022HarmBlockThres" - + "hold\022$\n HARM_BLOCK_THRESHOLD_UNSPECIFIED" - + "\020\000\022\027\n\023BLOCK_LOW_AND_ABOVE\020\001\022\032\n\026BLOCK_MED" - + "IUM_AND_ABOVE\020\002\022\023\n\017BLOCK_ONLY_HIGH\020\003\022\016\n\n" - + "BLOCK_NONE\020\004\"S\n\017HarmBlockMethod\022!\n\035HARM_" - + "BLOCK_METHOD_UNSPECIFIED\020\000\022\014\n\010SEVERITY\020\001" - + "\022\017\n\013PROBABILITY\020\002\"\271\004\n\014SafetyRating\022=\n\010ca" - + "tegory\030\001 \001(\0162&.google.cloud.vertexai.v1." - + "HarmCategoryB\003\340A\003\022P\n\013probability\030\002 \001(\01626" - + ".google.cloud.vertexai.v1.SafetyRating.H" - + "armProbabilityB\003\340A\003\022\036\n\021probability_score" - + "\030\005 \001(\002B\003\340A\003\022J\n\010severity\030\006 \001(\01623.google.c" - + "loud.vertexai.v1.SafetyRating.HarmSeveri" - + "tyB\003\340A\003\022\033\n\016severity_score\030\007 \001(\002B\003\340A\003\022\024\n\007" - + "blocked\030\003 \001(\010B\003\340A\003\"b\n\017HarmProbability\022 \n" - + "\034HARM_PROBABILITY_UNSPECIFIED\020\000\022\016\n\nNEGLI" - + "GIBLE\020\001\022\007\n\003LOW\020\002\022\n\n\006MEDIUM\020\003\022\010\n\004HIGH\020\004\"\224" - + "\001\n\014HarmSeverity\022\035\n\031HARM_SEVERITY_UNSPECI" - + "FIED\020\000\022\034\n\030HARM_SEVERITY_NEGLIGIBLE\020\001\022\025\n\021" - + "HARM_SEVERITY_LOW\020\002\022\030\n\024HARM_SEVERITY_MED" - + "IUM\020\003\022\026\n\022HARM_SEVERITY_HIGH\020\004\"N\n\020Citatio" - + "nMetadata\022:\n\tcitations\030\001 \003(\0132\".google.cl" - + "oud.vertexai.v1.CitationB\003\340A\003\"\252\001\n\010Citati" - + "on\022\030\n\013start_index\030\001 \001(\005B\003\340A\003\022\026\n\tend_inde" - + "x\030\002 \001(\005B\003\340A\003\022\020\n\003uri\030\003 \001(\tB\003\340A\003\022\022\n\005title\030" - + "\004 \001(\tB\003\340A\003\022\024\n\007license\030\005 \001(\tB\003\340A\003\0220\n\020publ" - + "ication_date\030\006 \001(\0132\021.google.type.DateB\003\340" - + "A\003\"\334\004\n\tCandidate\022\022\n\005index\030\001 \001(\005B\003\340A\003\0227\n\007" - + "content\030\002 \001(\0132!.google.cloud.vertexai.v1" - + ".ContentB\003\340A\003\022L\n\rfinish_reason\030\003 \001(\01620.g" - + "oogle.cloud.vertexai.v1.Candidate.Finish" - + "ReasonB\003\340A\003\022C\n\016safety_ratings\030\004 \003(\0132&.go" - + "ogle.cloud.vertexai.v1.SafetyRatingB\003\340A\003" - + "\022 \n\016finish_message\030\005 \001(\tB\003\340A\003H\000\210\001\001\022J\n\021ci" - + "tation_metadata\030\006 \001(\0132*.google.cloud.ver" - + "texai.v1.CitationMetadataB\003\340A\003\022L\n\022ground" - + "ing_metadata\030\007 \001(\0132+.google.cloud.vertex" - + "ai.v1.GroundingMetadataB\003\340A\003\"\237\001\n\014FinishR" - + "eason\022\035\n\031FINISH_REASON_UNSPECIFIED\020\000\022\010\n\004" - + "STOP\020\001\022\016\n\nMAX_TOKENS\020\002\022\n\n\006SAFETY\020\003\022\016\n\nRE" - + "CITATION\020\004\022\t\n\005OTHER\020\005\022\r\n\tBLOCKLIST\020\006\022\026\n\022" - + "PROHIBITED_CONTENT\020\007\022\010\n\004SPII\020\010B\021\n\017_finis" - + "h_message\"\235\001\n\021GroundingMetadata\022\037\n\022web_s" - + "earch_queries\030\001 \003(\tB\003\340A\001\022P\n\022search_entry" - + "_point\030\004 \001(\0132*.google.cloud.vertexai.v1." - + "SearchEntryPointB\003\340A\001H\000\210\001\001B\025\n\023_search_en" - + "try_point\"H\n\020SearchEntryPoint\022\035\n\020rendere" - + "d_content\030\001 \001(\tB\003\340A\001\022\025\n\010sdk_blob\030\002 \001(\014B\003" - + "\340A\001*\264\001\n\014HarmCategory\022\035\n\031HARM_CATEGORY_UN" - + "SPECIFIED\020\000\022\035\n\031HARM_CATEGORY_HATE_SPEECH" - + "\020\001\022#\n\037HARM_CATEGORY_DANGEROUS_CONTENT\020\002\022" - + "\034\n\030HARM_CATEGORY_HARASSMENT\020\003\022#\n\037HARM_CA" - + "TEGORY_SEXUALLY_EXPLICIT\020\004B\311\001\n\035com.googl" - + "e.cloud.vertexai.apiB\014ContentProtoP\001Z>cl" - + "oud.google.com/go/aiplatform/apiv1/aipla" - + "tformpb;aiplatformpb\252\002\032Google.Cloud.AIPl" - + "atform.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002" - + "\035Google::Cloud::AIPlatform::V1b\006proto3" + + "\001(\tB\003\340A\001B\016\n\014_temperatureB\010\n\006_top_pB\010\n\006_t" + + "op_kB\022\n\020_candidate_countB\024\n\022_max_output_" + + "tokensB\023\n\021_presence_penaltyB\024\n\022_frequenc" + + "y_penalty\"\334\003\n\rSafetySetting\022=\n\010category\030" + + "\001 \001(\0162&.google.cloud.vertexai.v1.HarmCat" + + "egoryB\003\340A\002\022R\n\tthreshold\030\002 \001(\0162:.google.c" + + "loud.vertexai.v1.SafetySetting.HarmBlock" + + "ThresholdB\003\340A\002\022L\n\006method\030\004 \001(\01627.google." + + "cloud.vertexai.v1.SafetySetting.HarmBloc" + + "kMethodB\003\340A\001\"\224\001\n\022HarmBlockThreshold\022$\n H" + + "ARM_BLOCK_THRESHOLD_UNSPECIFIED\020\000\022\027\n\023BLO" + + "CK_LOW_AND_ABOVE\020\001\022\032\n\026BLOCK_MEDIUM_AND_A" + + "BOVE\020\002\022\023\n\017BLOCK_ONLY_HIGH\020\003\022\016\n\nBLOCK_NON" + + "E\020\004\"S\n\017HarmBlockMethod\022!\n\035HARM_BLOCK_MET" + + "HOD_UNSPECIFIED\020\000\022\014\n\010SEVERITY\020\001\022\017\n\013PROBA" + + "BILITY\020\002\"\271\004\n\014SafetyRating\022=\n\010category\030\001 " + + "\001(\0162&.google.cloud.vertexai.v1.HarmCateg" + + "oryB\003\340A\003\022P\n\013probability\030\002 \001(\01626.google.c" + + "loud.vertexai.v1.SafetyRating.HarmProbab" + + "ilityB\003\340A\003\022\036\n\021probability_score\030\005 \001(\002B\003\340" + + "A\003\022J\n\010severity\030\006 \001(\01623.google.cloud.vert" + + "exai.v1.SafetyRating.HarmSeverityB\003\340A\003\022\033" + + "\n\016severity_score\030\007 \001(\002B\003\340A\003\022\024\n\007blocked\030\003" + + " \001(\010B\003\340A\003\"b\n\017HarmProbability\022 \n\034HARM_PRO" + + "BABILITY_UNSPECIFIED\020\000\022\016\n\nNEGLIGIBLE\020\001\022\007" + + "\n\003LOW\020\002\022\n\n\006MEDIUM\020\003\022\010\n\004HIGH\020\004\"\224\001\n\014HarmSe" + + "verity\022\035\n\031HARM_SEVERITY_UNSPECIFIED\020\000\022\034\n" + + "\030HARM_SEVERITY_NEGLIGIBLE\020\001\022\025\n\021HARM_SEVE" + + "RITY_LOW\020\002\022\030\n\024HARM_SEVERITY_MEDIUM\020\003\022\026\n\022" + + "HARM_SEVERITY_HIGH\020\004\"N\n\020CitationMetadata" + + "\022:\n\tcitations\030\001 \003(\0132\".google.cloud.verte" + + "xai.v1.CitationB\003\340A\003\"\252\001\n\010Citation\022\030\n\013sta" + + "rt_index\030\001 \001(\005B\003\340A\003\022\026\n\tend_index\030\002 \001(\005B\003" + + "\340A\003\022\020\n\003uri\030\003 \001(\tB\003\340A\003\022\022\n\005title\030\004 \001(\tB\003\340A" + + "\003\022\024\n\007license\030\005 \001(\tB\003\340A\003\0220\n\020publication_d" + + "ate\030\006 \001(\0132\021.google.type.DateB\003\340A\003\"\334\004\n\tCa" + + "ndidate\022\022\n\005index\030\001 \001(\005B\003\340A\003\0227\n\007content\030\002" + + " \001(\0132!.google.cloud.vertexai.v1.ContentB" + + "\003\340A\003\022L\n\rfinish_reason\030\003 \001(\01620.google.clo" + + "ud.vertexai.v1.Candidate.FinishReasonB\003\340" + + "A\003\022C\n\016safety_ratings\030\004 \003(\0132&.google.clou" + + "d.vertexai.v1.SafetyRatingB\003\340A\003\022 \n\016finis" + + "h_message\030\005 \001(\tB\003\340A\003H\000\210\001\001\022J\n\021citation_me" + + "tadata\030\006 \001(\0132*.google.cloud.vertexai.v1." + + "CitationMetadataB\003\340A\003\022L\n\022grounding_metad" + + "ata\030\007 \001(\0132+.google.cloud.vertexai.v1.Gro" + + "undingMetadataB\003\340A\003\"\237\001\n\014FinishReason\022\035\n\031" + + "FINISH_REASON_UNSPECIFIED\020\000\022\010\n\004STOP\020\001\022\016\n" + + "\nMAX_TOKENS\020\002\022\n\n\006SAFETY\020\003\022\016\n\nRECITATION\020" + + "\004\022\t\n\005OTHER\020\005\022\r\n\tBLOCKLIST\020\006\022\026\n\022PROHIBITE" + + "D_CONTENT\020\007\022\010\n\004SPII\020\010B\021\n\017_finish_message" + + "\"T\n\007Segment\022\027\n\npart_index\030\001 \001(\005B\003\340A\003\022\030\n\013" + + "start_index\030\002 \001(\005B\003\340A\003\022\026\n\tend_index\030\003 \001(" + + "\005B\003\340A\003\"\215\002\n\024GroundingAttribution\022F\n\003web\030\003" + + " \001(\01322.google.cloud.vertexai.v1.Groundin" + + "gAttribution.WebB\003\340A\001H\000\0227\n\007segment\030\001 \001(\013" + + "2!.google.cloud.vertexai.v1.SegmentB\003\340A\003" + + "\022%\n\020confidence_score\030\002 \001(\002B\006\340A\001\340A\003H\001\210\001\001\032" + + "+\n\003Web\022\020\n\003uri\030\001 \001(\tB\003\340A\003\022\022\n\005title\030\002 \001(\tB" + + "\003\340A\003B\013\n\treferenceB\023\n\021_confidence_score\"\211" + + "\001\n\021GroundingMetadata\022\037\n\022web_search_queri" + + "es\030\001 \003(\tB\003\340A\001\022S\n\026grounding_attributions\030" + + "\002 \003(\0132..google.cloud.vertexai.v1.Groundi" + + "ngAttributionB\003\340A\001*\264\001\n\014HarmCategory\022\035\n\031H" + + "ARM_CATEGORY_UNSPECIFIED\020\000\022\035\n\031HARM_CATEG" + + "ORY_HATE_SPEECH\020\001\022#\n\037HARM_CATEGORY_DANGE" + + "ROUS_CONTENT\020\002\022\034\n\030HARM_CATEGORY_HARASSME" + + "NT\020\003\022#\n\037HARM_CATEGORY_SEXUALLY_EXPLICIT\020" + + "\004B\311\001\n\035com.google.cloud.vertexai.apiB\014Con" + + "tentProtoP\001Z>cloud.google.com/go/aiplatf" + + "orm/apiv1/aiplatformpb;aiplatformpb\252\002\032Go" + + "ogle.Cloud.AIPlatform.V1\312\002\032Google\\Cloud\\" + + "AIPlatform\\V1\352\002\035Google::Cloud::AIPlatfor" + + "m::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.cloud.vertexai.api.OpenApiProto.getDescriptor(), com.google.cloud.vertexai.api.ToolProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), com.google.type.DateProto.getDescriptor(), @@ -262,7 +273,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PresencePenalty", "FrequencyPenalty", "ResponseMimeType", - "ResponseSchema", }); internal_static_google_cloud_vertexai_v1_SafetySetting_descriptor = getDescriptor().getMessageTypes().get(6); @@ -310,21 +320,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CitationMetadata", "GroundingMetadata", }); - internal_static_google_cloud_vertexai_v1_GroundingMetadata_descriptor = + internal_static_google_cloud_vertexai_v1_Segment_descriptor = getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_vertexai_v1_GroundingMetadata_fieldAccessorTable = + internal_static_google_cloud_vertexai_v1_Segment_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vertexai_v1_GroundingMetadata_descriptor, + internal_static_google_cloud_vertexai_v1_Segment_descriptor, new java.lang.String[] { - "WebSearchQueries", "SearchEntryPoint", + "PartIndex", "StartIndex", "EndIndex", }); - internal_static_google_cloud_vertexai_v1_SearchEntryPoint_descriptor = + internal_static_google_cloud_vertexai_v1_GroundingAttribution_descriptor = getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_vertexai_v1_SearchEntryPoint_fieldAccessorTable = + internal_static_google_cloud_vertexai_v1_GroundingAttribution_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vertexai_v1_GroundingAttribution_descriptor, + new java.lang.String[] { + "Web", "Segment", "ConfidenceScore", "Reference", + }); + internal_static_google_cloud_vertexai_v1_GroundingAttribution_Web_descriptor = + internal_static_google_cloud_vertexai_v1_GroundingAttribution_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_vertexai_v1_GroundingAttribution_Web_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vertexai_v1_GroundingAttribution_Web_descriptor, + new java.lang.String[] { + "Uri", "Title", + }); + internal_static_google_cloud_vertexai_v1_GroundingMetadata_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_vertexai_v1_GroundingMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vertexai_v1_SearchEntryPoint_descriptor, + internal_static_google_cloud_vertexai_v1_GroundingMetadata_descriptor, new java.lang.String[] { - "RenderedContent", "SdkBlob", + "WebSearchQueries", "GroundingAttributions", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); @@ -332,7 +360,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.cloud.vertexai.api.OpenApiProto.getDescriptor(); com.google.cloud.vertexai.api.ToolProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); com.google.type.DateProto.getDescriptor(); diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Endpoint.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Endpoint.java index f354f74c691a..f26675faef09 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Endpoint.java +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Endpoint.java @@ -913,7 +913,7 @@ public com.google.protobuf.ByteString getNetworkBytes() { * bool enable_private_service_connect = 17 [deprecated = true]; * * @deprecated google.cloud.vertexai.v1.Endpoint.enable_private_service_connect is deprecated. See - * google/cloud/vertexai/v1/endpoint.proto;l=127 + * google/cloud/vertexai/v1/endpoint.proto;l=126 * @return The enablePrivateServiceConnect. */ @java.lang.Override @@ -922,76 +922,6 @@ public boolean getEnablePrivateServiceConnect() { return enablePrivateServiceConnect_; } - public static final int PRIVATE_SERVICE_CONNECT_CONFIG_FIELD_NUMBER = 21; - private com.google.cloud.vertexai.api.PrivateServiceConnectConfig privateServiceConnectConfig_; - /** - * - * - *
-   * Optional. Configuration for private service connect.
-   *
-   * [network][google.cloud.aiplatform.v1.Endpoint.network] and
-   * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
-   * are mutually exclusive.
-   * 
- * - * - * .google.cloud.vertexai.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the privateServiceConnectConfig field is set. - */ - @java.lang.Override - public boolean hasPrivateServiceConnectConfig() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * - * - *
-   * Optional. Configuration for private service connect.
-   *
-   * [network][google.cloud.aiplatform.v1.Endpoint.network] and
-   * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
-   * are mutually exclusive.
-   * 
- * - * - * .google.cloud.vertexai.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The privateServiceConnectConfig. - */ - @java.lang.Override - public com.google.cloud.vertexai.api.PrivateServiceConnectConfig - getPrivateServiceConnectConfig() { - return privateServiceConnectConfig_ == null - ? com.google.cloud.vertexai.api.PrivateServiceConnectConfig.getDefaultInstance() - : privateServiceConnectConfig_; - } - /** - * - * - *
-   * Optional. Configuration for private service connect.
-   *
-   * [network][google.cloud.aiplatform.v1.Endpoint.network] and
-   * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
-   * are mutually exclusive.
-   * 
- * - * - * .google.cloud.vertexai.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.vertexai.api.PrivateServiceConnectConfigOrBuilder - getPrivateServiceConnectConfigOrBuilder() { - return privateServiceConnectConfig_ == null - ? com.google.cloud.vertexai.api.PrivateServiceConnectConfig.getDefaultInstance() - : privateServiceConnectConfig_; - } - public static final int MODEL_DEPLOYMENT_MONITORING_JOB_FIELD_NUMBER = 14; @SuppressWarnings("serial") @@ -1073,7 +1003,7 @@ public com.google.protobuf.ByteString getModelDeploymentMonitoringJobBytes() { */ @java.lang.Override public boolean hasPredictRequestResponseLoggingConfig() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1165,11 +1095,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (enablePrivateServiceConnect_ != false) { output.writeBool(17, enablePrivateServiceConnect_); } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeMessage(18, getPredictRequestResponseLoggingConfig()); - } if (((bitField0_ & 0x00000008) != 0)) { - output.writeMessage(21, getPrivateServiceConnectConfig()); + output.writeMessage(18, getPredictRequestResponseLoggingConfig()); } getUnknownFields().writeTo(output); } @@ -1236,15 +1163,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeBoolSize(17, enablePrivateServiceConnect_); } - if (((bitField0_ & 0x00000010) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 18, getPredictRequestResponseLoggingConfig()); - } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( - 21, getPrivateServiceConnectConfig()); + 18, getPredictRequestResponseLoggingConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1282,11 +1204,6 @@ public boolean equals(final java.lang.Object obj) { } if (!getNetwork().equals(other.getNetwork())) return false; if (getEnablePrivateServiceConnect() != other.getEnablePrivateServiceConnect()) return false; - if (hasPrivateServiceConnectConfig() != other.hasPrivateServiceConnectConfig()) return false; - if (hasPrivateServiceConnectConfig()) { - if (!getPrivateServiceConnectConfig().equals(other.getPrivateServiceConnectConfig())) - return false; - } if (!getModelDeploymentMonitoringJob().equals(other.getModelDeploymentMonitoringJob())) return false; if (hasPredictRequestResponseLoggingConfig() != other.hasPredictRequestResponseLoggingConfig()) @@ -1342,10 +1259,6 @@ public int hashCode() { hash = (53 * hash) + getNetwork().hashCode(); hash = (37 * hash) + ENABLE_PRIVATE_SERVICE_CONNECT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnablePrivateServiceConnect()); - if (hasPrivateServiceConnectConfig()) { - hash = (37 * hash) + PRIVATE_SERVICE_CONNECT_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getPrivateServiceConnectConfig().hashCode(); - } hash = (37 * hash) + MODEL_DEPLOYMENT_MONITORING_JOB_FIELD_NUMBER; hash = (53 * hash) + getModelDeploymentMonitoringJob().hashCode(); if (hasPredictRequestResponseLoggingConfig()) { @@ -1523,7 +1436,6 @@ private void maybeForceBuilderInitialization() { getCreateTimeFieldBuilder(); getUpdateTimeFieldBuilder(); getEncryptionSpecFieldBuilder(); - getPrivateServiceConnectConfigFieldBuilder(); getPredictRequestResponseLoggingConfigFieldBuilder(); } } @@ -1562,11 +1474,6 @@ public Builder clear() { } network_ = ""; enablePrivateServiceConnect_ = false; - privateServiceConnectConfig_ = null; - if (privateServiceConnectConfigBuilder_ != null) { - privateServiceConnectConfigBuilder_.dispose(); - privateServiceConnectConfigBuilder_ = null; - } modelDeploymentMonitoringJob_ = ""; predictRequestResponseLoggingConfig_ = null; if (predictRequestResponseLoggingConfigBuilder_ != null) { @@ -1663,21 +1570,14 @@ private void buildPartial0(com.google.cloud.vertexai.api.Endpoint result) { result.enablePrivateServiceConnect_ = enablePrivateServiceConnect_; } if (((from_bitField0_ & 0x00001000) != 0)) { - result.privateServiceConnectConfig_ = - privateServiceConnectConfigBuilder_ == null - ? privateServiceConnectConfig_ - : privateServiceConnectConfigBuilder_.build(); - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00002000) != 0)) { result.modelDeploymentMonitoringJob_ = modelDeploymentMonitoringJob_; } - if (((from_bitField0_ & 0x00004000) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.predictRequestResponseLoggingConfig_ = predictRequestResponseLoggingConfigBuilder_ == null ? predictRequestResponseLoggingConfig_ : predictRequestResponseLoggingConfigBuilder_.build(); - to_bitField0_ |= 0x00000010; + to_bitField0_ |= 0x00000008; } result.bitField0_ |= to_bitField0_; } @@ -1795,12 +1695,9 @@ public Builder mergeFrom(com.google.cloud.vertexai.api.Endpoint other) { if (other.getEnablePrivateServiceConnect() != false) { setEnablePrivateServiceConnect(other.getEnablePrivateServiceConnect()); } - if (other.hasPrivateServiceConnectConfig()) { - mergePrivateServiceConnectConfig(other.getPrivateServiceConnectConfig()); - } if (!other.getModelDeploymentMonitoringJob().isEmpty()) { modelDeploymentMonitoringJob_ = other.modelDeploymentMonitoringJob_; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00001000; onChanged(); } if (other.hasPredictRequestResponseLoggingConfig()) { @@ -1920,7 +1817,7 @@ public Builder mergeFrom( case 114: { modelDeploymentMonitoringJob_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00001000; break; } // case 114 case 136: @@ -1934,16 +1831,9 @@ public Builder mergeFrom( input.readMessage( getPredictRequestResponseLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00002000; break; } // case 146 - case 170: - { - input.readMessage( - getPrivateServiceConnectConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00001000; - break; - } // case 170 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4116,7 +4006,7 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { * bool enable_private_service_connect = 17 [deprecated = true]; * * @deprecated google.cloud.vertexai.v1.Endpoint.enable_private_service_connect is deprecated. - * See google/cloud/vertexai/v1/endpoint.proto;l=127 + * See google/cloud/vertexai/v1/endpoint.proto;l=126 * @return The enablePrivateServiceConnect. */ @java.lang.Override @@ -4139,7 +4029,7 @@ public boolean getEnablePrivateServiceConnect() { * bool enable_private_service_connect = 17 [deprecated = true]; * * @deprecated google.cloud.vertexai.v1.Endpoint.enable_private_service_connect is deprecated. - * See google/cloud/vertexai/v1/endpoint.proto;l=127 + * See google/cloud/vertexai/v1/endpoint.proto;l=126 * @param value The enablePrivateServiceConnect to set. * @return This builder for chaining. */ @@ -4166,7 +4056,7 @@ public Builder setEnablePrivateServiceConnect(boolean value) { * bool enable_private_service_connect = 17 [deprecated = true]; * * @deprecated google.cloud.vertexai.v1.Endpoint.enable_private_service_connect is deprecated. - * See google/cloud/vertexai/v1/endpoint.proto;l=127 + * See google/cloud/vertexai/v1/endpoint.proto;l=126 * @return This builder for chaining. */ @java.lang.Deprecated @@ -4177,252 +4067,6 @@ public Builder clearEnablePrivateServiceConnect() { return this; } - private com.google.cloud.vertexai.api.PrivateServiceConnectConfig privateServiceConnectConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vertexai.api.PrivateServiceConnectConfig, - com.google.cloud.vertexai.api.PrivateServiceConnectConfig.Builder, - com.google.cloud.vertexai.api.PrivateServiceConnectConfigOrBuilder> - privateServiceConnectConfigBuilder_; - /** - * - * - *
-     * Optional. Configuration for private service connect.
-     *
-     * [network][google.cloud.aiplatform.v1.Endpoint.network] and
-     * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
-     * are mutually exclusive.
-     * 
- * - * - * .google.cloud.vertexai.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the privateServiceConnectConfig field is set. - */ - public boolean hasPrivateServiceConnectConfig() { - return ((bitField0_ & 0x00001000) != 0); - } - /** - * - * - *
-     * Optional. Configuration for private service connect.
-     *
-     * [network][google.cloud.aiplatform.v1.Endpoint.network] and
-     * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
-     * are mutually exclusive.
-     * 
- * - * - * .google.cloud.vertexai.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The privateServiceConnectConfig. - */ - public com.google.cloud.vertexai.api.PrivateServiceConnectConfig - getPrivateServiceConnectConfig() { - if (privateServiceConnectConfigBuilder_ == null) { - return privateServiceConnectConfig_ == null - ? com.google.cloud.vertexai.api.PrivateServiceConnectConfig.getDefaultInstance() - : privateServiceConnectConfig_; - } else { - return privateServiceConnectConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. Configuration for private service connect.
-     *
-     * [network][google.cloud.aiplatform.v1.Endpoint.network] and
-     * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
-     * are mutually exclusive.
-     * 
- * - * - * .google.cloud.vertexai.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setPrivateServiceConnectConfig( - com.google.cloud.vertexai.api.PrivateServiceConnectConfig value) { - if (privateServiceConnectConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - privateServiceConnectConfig_ = value; - } else { - privateServiceConnectConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Configuration for private service connect.
-     *
-     * [network][google.cloud.aiplatform.v1.Endpoint.network] and
-     * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
-     * are mutually exclusive.
-     * 
- * - * - * .google.cloud.vertexai.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setPrivateServiceConnectConfig( - com.google.cloud.vertexai.api.PrivateServiceConnectConfig.Builder builderForValue) { - if (privateServiceConnectConfigBuilder_ == null) { - privateServiceConnectConfig_ = builderForValue.build(); - } else { - privateServiceConnectConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Configuration for private service connect.
-     *
-     * [network][google.cloud.aiplatform.v1.Endpoint.network] and
-     * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
-     * are mutually exclusive.
-     * 
- * - * - * .google.cloud.vertexai.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergePrivateServiceConnectConfig( - com.google.cloud.vertexai.api.PrivateServiceConnectConfig value) { - if (privateServiceConnectConfigBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) - && privateServiceConnectConfig_ != null - && privateServiceConnectConfig_ - != com.google.cloud.vertexai.api.PrivateServiceConnectConfig.getDefaultInstance()) { - getPrivateServiceConnectConfigBuilder().mergeFrom(value); - } else { - privateServiceConnectConfig_ = value; - } - } else { - privateServiceConnectConfigBuilder_.mergeFrom(value); - } - if (privateServiceConnectConfig_ != null) { - bitField0_ |= 0x00001000; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Optional. Configuration for private service connect.
-     *
-     * [network][google.cloud.aiplatform.v1.Endpoint.network] and
-     * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
-     * are mutually exclusive.
-     * 
- * - * - * .google.cloud.vertexai.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearPrivateServiceConnectConfig() { - bitField0_ = (bitField0_ & ~0x00001000); - privateServiceConnectConfig_ = null; - if (privateServiceConnectConfigBuilder_ != null) { - privateServiceConnectConfigBuilder_.dispose(); - privateServiceConnectConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Configuration for private service connect.
-     *
-     * [network][google.cloud.aiplatform.v1.Endpoint.network] and
-     * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
-     * are mutually exclusive.
-     * 
- * - * - * .google.cloud.vertexai.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.vertexai.api.PrivateServiceConnectConfig.Builder - getPrivateServiceConnectConfigBuilder() { - bitField0_ |= 0x00001000; - onChanged(); - return getPrivateServiceConnectConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Configuration for private service connect.
-     *
-     * [network][google.cloud.aiplatform.v1.Endpoint.network] and
-     * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
-     * are mutually exclusive.
-     * 
- * - * - * .google.cloud.vertexai.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.vertexai.api.PrivateServiceConnectConfigOrBuilder - getPrivateServiceConnectConfigOrBuilder() { - if (privateServiceConnectConfigBuilder_ != null) { - return privateServiceConnectConfigBuilder_.getMessageOrBuilder(); - } else { - return privateServiceConnectConfig_ == null - ? com.google.cloud.vertexai.api.PrivateServiceConnectConfig.getDefaultInstance() - : privateServiceConnectConfig_; - } - } - /** - * - * - *
-     * Optional. Configuration for private service connect.
-     *
-     * [network][google.cloud.aiplatform.v1.Endpoint.network] and
-     * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
-     * are mutually exclusive.
-     * 
- * - * - * .google.cloud.vertexai.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vertexai.api.PrivateServiceConnectConfig, - com.google.cloud.vertexai.api.PrivateServiceConnectConfig.Builder, - com.google.cloud.vertexai.api.PrivateServiceConnectConfigOrBuilder> - getPrivateServiceConnectConfigFieldBuilder() { - if (privateServiceConnectConfigBuilder_ == null) { - privateServiceConnectConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vertexai.api.PrivateServiceConnectConfig, - com.google.cloud.vertexai.api.PrivateServiceConnectConfig.Builder, - com.google.cloud.vertexai.api.PrivateServiceConnectConfigOrBuilder>( - getPrivateServiceConnectConfig(), getParentForChildren(), isClean()); - privateServiceConnectConfig_ = null; - } - return privateServiceConnectConfigBuilder_; - } - private java.lang.Object modelDeploymentMonitoringJob_ = ""; /** * @@ -4503,7 +4147,7 @@ public Builder setModelDeploymentMonitoringJob(java.lang.String value) { throw new NullPointerException(); } modelDeploymentMonitoringJob_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4526,7 +4170,7 @@ public Builder setModelDeploymentMonitoringJob(java.lang.String value) { */ public Builder clearModelDeploymentMonitoringJob() { modelDeploymentMonitoringJob_ = getDefaultInstance().getModelDeploymentMonitoringJob(); - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } @@ -4554,7 +4198,7 @@ public Builder setModelDeploymentMonitoringJobBytes(com.google.protobuf.ByteStri } checkByteStringIsUtf8(value); modelDeploymentMonitoringJob_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4580,7 +4224,7 @@ public Builder setModelDeploymentMonitoringJobBytes(com.google.protobuf.ByteStri * @return Whether the predictRequestResponseLoggingConfig field is set. */ public boolean hasPredictRequestResponseLoggingConfig() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00002000) != 0); } /** * @@ -4626,7 +4270,7 @@ public Builder setPredictRequestResponseLoggingConfig( } else { predictRequestResponseLoggingConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -4648,7 +4292,7 @@ public Builder setPredictRequestResponseLoggingConfig( } else { predictRequestResponseLoggingConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -4666,7 +4310,7 @@ public Builder setPredictRequestResponseLoggingConfig( public Builder mergePredictRequestResponseLoggingConfig( com.google.cloud.vertexai.api.PredictRequestResponseLoggingConfig value) { if (predictRequestResponseLoggingConfigBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0) + if (((bitField0_ & 0x00002000) != 0) && predictRequestResponseLoggingConfig_ != null && predictRequestResponseLoggingConfig_ != com.google.cloud.vertexai.api.PredictRequestResponseLoggingConfig @@ -4679,7 +4323,7 @@ public Builder mergePredictRequestResponseLoggingConfig( predictRequestResponseLoggingConfigBuilder_.mergeFrom(value); } if (predictRequestResponseLoggingConfig_ != null) { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00002000; onChanged(); } return this; @@ -4696,7 +4340,7 @@ public Builder mergePredictRequestResponseLoggingConfig( * */ public Builder clearPredictRequestResponseLoggingConfig() { - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00002000); predictRequestResponseLoggingConfig_ = null; if (predictRequestResponseLoggingConfigBuilder_ != null) { predictRequestResponseLoggingConfigBuilder_.dispose(); @@ -4718,7 +4362,7 @@ public Builder clearPredictRequestResponseLoggingConfig() { */ public com.google.cloud.vertexai.api.PredictRequestResponseLoggingConfig.Builder getPredictRequestResponseLoggingConfigBuilder() { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00002000; onChanged(); return getPredictRequestResponseLoggingConfigFieldBuilder().getBuilder(); } diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/EndpointOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/EndpointOrBuilder.java index 763284448406..c019394a69e1 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/EndpointOrBuilder.java +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/EndpointOrBuilder.java @@ -585,66 +585,12 @@ java.lang.String getLabelsOrDefault( * bool enable_private_service_connect = 17 [deprecated = true]; * * @deprecated google.cloud.vertexai.v1.Endpoint.enable_private_service_connect is deprecated. See - * google/cloud/vertexai/v1/endpoint.proto;l=127 + * google/cloud/vertexai/v1/endpoint.proto;l=126 * @return The enablePrivateServiceConnect. */ @java.lang.Deprecated boolean getEnablePrivateServiceConnect(); - /** - * - * - *
-   * Optional. Configuration for private service connect.
-   *
-   * [network][google.cloud.aiplatform.v1.Endpoint.network] and
-   * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
-   * are mutually exclusive.
-   * 
- * - * - * .google.cloud.vertexai.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the privateServiceConnectConfig field is set. - */ - boolean hasPrivateServiceConnectConfig(); - /** - * - * - *
-   * Optional. Configuration for private service connect.
-   *
-   * [network][google.cloud.aiplatform.v1.Endpoint.network] and
-   * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
-   * are mutually exclusive.
-   * 
- * - * - * .google.cloud.vertexai.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The privateServiceConnectConfig. - */ - com.google.cloud.vertexai.api.PrivateServiceConnectConfig getPrivateServiceConnectConfig(); - /** - * - * - *
-   * Optional. Configuration for private service connect.
-   *
-   * [network][google.cloud.aiplatform.v1.Endpoint.network] and
-   * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
-   * are mutually exclusive.
-   * 
- * - * - * .google.cloud.vertexai.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.vertexai.api.PrivateServiceConnectConfigOrBuilder - getPrivateServiceConnectConfigOrBuilder(); - /** * * diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/EndpointProto.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/EndpointProto.java index a60107e1cef6..2211ed0b0920 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/EndpointProto.java +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/EndpointProto.java @@ -68,70 +68,66 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "tion_spec.proto\032*google/cloud/vertexai/v" + "1/explanation.proto\032!google/cloud/vertex" + "ai/v1/io.proto\0320google/cloud/vertexai/v1" - + "/machine_resources.proto\0321google/cloud/v" - + "ertexai/v1/service_networking.proto\032\037goo" - + "gle/protobuf/timestamp.proto\"\234\t\n\010Endpoin" - + "t\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014display_name\030\002 \001" - + "(\tB\003\340A\002\022\023\n\013description\030\003 \001(\t\022E\n\017deployed" - + "_models\030\004 \003(\0132\'.google.cloud.vertexai.v1" - + ".DeployedModelB\003\340A\003\022K\n\rtraffic_split\030\005 \003" - + "(\01324.google.cloud.vertexai.v1.Endpoint.T" - + "rafficSplitEntry\022\014\n\004etag\030\006 \001(\t\022>\n\006labels" - + "\030\007 \003(\0132..google.cloud.vertexai.v1.Endpoi" - + "nt.LabelsEntry\0224\n\013create_time\030\010 \001(\0132\032.go" - + "ogle.protobuf.TimestampB\003\340A\003\0224\n\013update_t" - + "ime\030\t \001(\0132\032.google.protobuf.TimestampB\003\340" - + "A\003\022A\n\017encryption_spec\030\n \001(\0132(.google.clo" - + "ud.vertexai.v1.EncryptionSpec\0227\n\007network" - + "\030\r \001(\tB&\340A\001\372A \n\036compute.googleapis.com/N" - + "etwork\022*\n\036enable_private_service_connect" - + "\030\021 \001(\010B\002\030\001\022b\n\036private_service_connect_co" - + "nfig\030\025 \001(\01325.google.cloud.vertexai.v1.Pr" - + "ivateServiceConnectConfigB\003\340A\001\022g\n\037model_" - + "deployment_monitoring_job\030\016 \001(\tB>\340A\003\372A8\n" - + "6aiplatform.googleapis.com/ModelDeployme" - + "ntMonitoringJob\022n\n\'predict_request_respo" - + "nse_logging_config\030\022 \001(\0132=.google.cloud." - + "vertexai.v1.PredictRequestResponseLoggin" - + "gConfig\0323\n\021TrafficSplitEntry\022\013\n\003key\030\001 \001(" - + "\t\022\r\n\005value\030\002 \001(\005:\0028\001\032-\n\013LabelsEntry\022\013\n\003k" - + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\265\001\352A\261\001\n\"aipl" - + "atform.googleapis.com/Endpoint\022cloud.google.com/go/aiplatfo" - + "rm/apiv1/aiplatformpb;aiplatformpb\252\002\032Goo" - + "gle.Cloud.AIPlatform.V1\312\002\032Google\\Cloud\\A" - + "IPlatform\\V1\352\002\035Google::Cloud::AIPlatform" - + "::V1b\006proto3" + + "/machine_resources.proto\032\037google/protobu" + + "f/timestamp.proto\"\270\010\n\010Endpoint\022\021\n\004name\030\001" + + " \001(\tB\003\340A\003\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022\023\n\013" + + "description\030\003 \001(\t\022E\n\017deployed_models\030\004 \003" + + "(\0132\'.google.cloud.vertexai.v1.DeployedMo" + + "delB\003\340A\003\022K\n\rtraffic_split\030\005 \003(\01324.google" + + ".cloud.vertexai.v1.Endpoint.TrafficSplit" + + "Entry\022\014\n\004etag\030\006 \001(\t\022>\n\006labels\030\007 \003(\0132..go" + + "ogle.cloud.vertexai.v1.Endpoint.LabelsEn" + + "try\0224\n\013create_time\030\010 \001(\0132\032.google.protob" + + "uf.TimestampB\003\340A\003\0224\n\013update_time\030\t \001(\0132\032" + + ".google.protobuf.TimestampB\003\340A\003\022A\n\017encry" + + "ption_spec\030\n \001(\0132(.google.cloud.vertexai" + + ".v1.EncryptionSpec\0227\n\007network\030\r \001(\tB&\340A\001" + + "\372A \n\036compute.googleapis.com/Network\022*\n\036e" + + "nable_private_service_connect\030\021 \001(\010B\002\030\001\022" + + "g\n\037model_deployment_monitoring_job\030\016 \001(\t" + + "B>\340A\003\372A8\n6aiplatform.googleapis.com/Mode" + + "lDeploymentMonitoringJob\022n\n\'predict_requ" + + "est_response_logging_config\030\022 \001(\0132=.goog" + + "le.cloud.vertexai.v1.PredictRequestRespo" + + "nseLoggingConfig\0323\n\021TrafficSplitEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\005:\0028\001\032-\n\013LabelsE" + + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\265\001\352" + + "A\261\001\n\"aiplatform.googleapis.com/Endpoint\022" + + "cloud.google.com/go" + + "/aiplatform/apiv1/aiplatformpb;aiplatfor" + + "mpb\252\002\032Google.Cloud.AIPlatform.V1\312\002\032Googl" + + "e\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::A" + + "IPlatform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -143,7 +139,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.vertexai.api.ExplanationProto.getDescriptor(), com.google.cloud.vertexai.api.IoProto.getDescriptor(), com.google.cloud.vertexai.api.MachineResourcesProto.getDescriptor(), - com.google.cloud.vertexai.api.ServiceNetworkingProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_google_cloud_vertexai_v1_Endpoint_descriptor = @@ -164,7 +159,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EncryptionSpec", "Network", "EnablePrivateServiceConnect", - "PrivateServiceConnectConfig", "ModelDeploymentMonitoringJob", "PredictRequestResponseLoggingConfig", }); @@ -235,7 +229,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.vertexai.api.ExplanationProto.getDescriptor(); com.google.cloud.vertexai.api.IoProto.getDescriptor(); com.google.cloud.vertexai.api.MachineResourcesProto.getDescriptor(); - com.google.cloud.vertexai.api.ServiceNetworkingProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); } diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/FunctionCallingConfig.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/FunctionCallingConfig.java deleted file mode 100644 index 6973ecc76460..000000000000 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/FunctionCallingConfig.java +++ /dev/null @@ -1,1119 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vertexai/v1/tool.proto - -// Protobuf Java Version: 3.25.3 -package com.google.cloud.vertexai.api; - -/** - * - * - *
- * Function calling config.
- * 
- * - * Protobuf type {@code google.cloud.vertexai.v1.FunctionCallingConfig} - */ -public final class FunctionCallingConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.vertexai.v1.FunctionCallingConfig) - FunctionCallingConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use FunctionCallingConfig.newBuilder() to construct. - private FunctionCallingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private FunctionCallingConfig() { - mode_ = 0; - allowedFunctionNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new FunctionCallingConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vertexai.api.ToolProto - .internal_static_google_cloud_vertexai_v1_FunctionCallingConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.vertexai.api.ToolProto - .internal_static_google_cloud_vertexai_v1_FunctionCallingConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.vertexai.api.FunctionCallingConfig.class, - com.google.cloud.vertexai.api.FunctionCallingConfig.Builder.class); - } - - /** - * - * - *
-   * Function calling mode.
-   * 
- * - * Protobuf enum {@code google.cloud.vertexai.v1.FunctionCallingConfig.Mode} - */ - public enum Mode implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Unspecified function calling mode. This value should not be used.
-     * 
- * - * MODE_UNSPECIFIED = 0; - */ - MODE_UNSPECIFIED(0), - /** - * - * - *
-     * Default model behavior, model decides to predict either a function call
-     * or a natural language repspose.
-     * 
- * - * AUTO = 1; - */ - AUTO(1), - /** - * - * - *
-     * Model is constrained to always predicting a function call only.
-     * If "allowed_function_names" are set, the predicted function call will be
-     * limited to any one of "allowed_function_names", else the predicted
-     * function call will be any one of the provided "function_declarations".
-     * 
- * - * ANY = 2; - */ - ANY(2), - /** - * - * - *
-     * Model will not predict any function call. Model behavior is same as when
-     * not passing any function declarations.
-     * 
- * - * NONE = 3; - */ - NONE(3), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Unspecified function calling mode. This value should not be used.
-     * 
- * - * MODE_UNSPECIFIED = 0; - */ - public static final int MODE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Default model behavior, model decides to predict either a function call
-     * or a natural language repspose.
-     * 
- * - * AUTO = 1; - */ - public static final int AUTO_VALUE = 1; - /** - * - * - *
-     * Model is constrained to always predicting a function call only.
-     * If "allowed_function_names" are set, the predicted function call will be
-     * limited to any one of "allowed_function_names", else the predicted
-     * function call will be any one of the provided "function_declarations".
-     * 
- * - * ANY = 2; - */ - public static final int ANY_VALUE = 2; - /** - * - * - *
-     * Model will not predict any function call. Model behavior is same as when
-     * not passing any function declarations.
-     * 
- * - * NONE = 3; - */ - public static final int NONE_VALUE = 3; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Mode valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Mode forNumber(int value) { - switch (value) { - case 0: - return MODE_UNSPECIFIED; - case 1: - return AUTO; - case 2: - return ANY; - case 3: - return NONE; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Mode findValueByNumber(int number) { - return Mode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.vertexai.api.FunctionCallingConfig.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final Mode[] VALUES = values(); - - public static Mode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Mode(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.vertexai.v1.FunctionCallingConfig.Mode) - } - - public static final int MODE_FIELD_NUMBER = 1; - private int mode_ = 0; - /** - * - * - *
-   * Optional. Function calling mode.
-   * 
- * - * - * .google.cloud.vertexai.v1.FunctionCallingConfig.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for mode. - */ - @java.lang.Override - public int getModeValue() { - return mode_; - } - /** - * - * - *
-   * Optional. Function calling mode.
-   * 
- * - * - * .google.cloud.vertexai.v1.FunctionCallingConfig.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The mode. - */ - @java.lang.Override - public com.google.cloud.vertexai.api.FunctionCallingConfig.Mode getMode() { - com.google.cloud.vertexai.api.FunctionCallingConfig.Mode result = - com.google.cloud.vertexai.api.FunctionCallingConfig.Mode.forNumber(mode_); - return result == null - ? com.google.cloud.vertexai.api.FunctionCallingConfig.Mode.UNRECOGNIZED - : result; - } - - public static final int ALLOWED_FUNCTION_NAMES_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList allowedFunctionNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * Optional. Function names to call. Only set when the Mode is ANY. Function
-   * names should match [FunctionDeclaration.name]. With mode set to ANY, model
-   * will predict a function call from the set of function names provided.
-   * 
- * - * repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the allowedFunctionNames. - */ - public com.google.protobuf.ProtocolStringList getAllowedFunctionNamesList() { - return allowedFunctionNames_; - } - /** - * - * - *
-   * Optional. Function names to call. Only set when the Mode is ANY. Function
-   * names should match [FunctionDeclaration.name]. With mode set to ANY, model
-   * will predict a function call from the set of function names provided.
-   * 
- * - * repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The count of allowedFunctionNames. - */ - public int getAllowedFunctionNamesCount() { - return allowedFunctionNames_.size(); - } - /** - * - * - *
-   * Optional. Function names to call. Only set when the Mode is ANY. Function
-   * names should match [FunctionDeclaration.name]. With mode set to ANY, model
-   * will predict a function call from the set of function names provided.
-   * 
- * - * repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the element to return. - * @return The allowedFunctionNames at the given index. - */ - public java.lang.String getAllowedFunctionNames(int index) { - return allowedFunctionNames_.get(index); - } - /** - * - * - *
-   * Optional. Function names to call. Only set when the Mode is ANY. Function
-   * names should match [FunctionDeclaration.name]. With mode set to ANY, model
-   * will predict a function call from the set of function names provided.
-   * 
- * - * repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the value to return. - * @return The bytes of the allowedFunctionNames at the given index. - */ - public com.google.protobuf.ByteString getAllowedFunctionNamesBytes(int index) { - return allowedFunctionNames_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (mode_ - != com.google.cloud.vertexai.api.FunctionCallingConfig.Mode.MODE_UNSPECIFIED.getNumber()) { - output.writeEnum(1, mode_); - } - for (int i = 0; i < allowedFunctionNames_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 2, allowedFunctionNames_.getRaw(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (mode_ - != com.google.cloud.vertexai.api.FunctionCallingConfig.Mode.MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, mode_); - } - { - int dataSize = 0; - for (int i = 0; i < allowedFunctionNames_.size(); i++) { - dataSize += computeStringSizeNoTag(allowedFunctionNames_.getRaw(i)); - } - size += dataSize; - size += 1 * getAllowedFunctionNamesList().size(); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.vertexai.api.FunctionCallingConfig)) { - return super.equals(obj); - } - com.google.cloud.vertexai.api.FunctionCallingConfig other = - (com.google.cloud.vertexai.api.FunctionCallingConfig) obj; - - if (mode_ != other.mode_) return false; - if (!getAllowedFunctionNamesList().equals(other.getAllowedFunctionNamesList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MODE_FIELD_NUMBER; - hash = (53 * hash) + mode_; - if (getAllowedFunctionNamesCount() > 0) { - hash = (37 * hash) + ALLOWED_FUNCTION_NAMES_FIELD_NUMBER; - hash = (53 * hash) + getAllowedFunctionNamesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.vertexai.api.FunctionCallingConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.vertexai.api.FunctionCallingConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.vertexai.api.FunctionCallingConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.vertexai.api.FunctionCallingConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.vertexai.api.FunctionCallingConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.vertexai.api.FunctionCallingConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.vertexai.api.FunctionCallingConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.vertexai.api.FunctionCallingConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.vertexai.api.FunctionCallingConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.vertexai.api.FunctionCallingConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.vertexai.api.FunctionCallingConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.vertexai.api.FunctionCallingConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.vertexai.api.FunctionCallingConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Function calling config.
-   * 
- * - * Protobuf type {@code google.cloud.vertexai.v1.FunctionCallingConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.vertexai.v1.FunctionCallingConfig) - com.google.cloud.vertexai.api.FunctionCallingConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vertexai.api.ToolProto - .internal_static_google_cloud_vertexai_v1_FunctionCallingConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.vertexai.api.ToolProto - .internal_static_google_cloud_vertexai_v1_FunctionCallingConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.vertexai.api.FunctionCallingConfig.class, - com.google.cloud.vertexai.api.FunctionCallingConfig.Builder.class); - } - - // Construct using com.google.cloud.vertexai.api.FunctionCallingConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - mode_ = 0; - allowedFunctionNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vertexai.api.ToolProto - .internal_static_google_cloud_vertexai_v1_FunctionCallingConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.vertexai.api.FunctionCallingConfig getDefaultInstanceForType() { - return com.google.cloud.vertexai.api.FunctionCallingConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.vertexai.api.FunctionCallingConfig build() { - com.google.cloud.vertexai.api.FunctionCallingConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.vertexai.api.FunctionCallingConfig buildPartial() { - com.google.cloud.vertexai.api.FunctionCallingConfig result = - new com.google.cloud.vertexai.api.FunctionCallingConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.vertexai.api.FunctionCallingConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.mode_ = mode_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - allowedFunctionNames_.makeImmutable(); - result.allowedFunctionNames_ = allowedFunctionNames_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.vertexai.api.FunctionCallingConfig) { - return mergeFrom((com.google.cloud.vertexai.api.FunctionCallingConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.vertexai.api.FunctionCallingConfig other) { - if (other == com.google.cloud.vertexai.api.FunctionCallingConfig.getDefaultInstance()) - return this; - if (other.mode_ != 0) { - setModeValue(other.getModeValue()); - } - if (!other.allowedFunctionNames_.isEmpty()) { - if (allowedFunctionNames_.isEmpty()) { - allowedFunctionNames_ = other.allowedFunctionNames_; - bitField0_ |= 0x00000002; - } else { - ensureAllowedFunctionNamesIsMutable(); - allowedFunctionNames_.addAll(other.allowedFunctionNames_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - mode_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureAllowedFunctionNamesIsMutable(); - allowedFunctionNames_.add(s); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private int mode_ = 0; - /** - * - * - *
-     * Optional. Function calling mode.
-     * 
- * - * - * .google.cloud.vertexai.v1.FunctionCallingConfig.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for mode. - */ - @java.lang.Override - public int getModeValue() { - return mode_; - } - /** - * - * - *
-     * Optional. Function calling mode.
-     * 
- * - * - * .google.cloud.vertexai.v1.FunctionCallingConfig.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The enum numeric value on the wire for mode to set. - * @return This builder for chaining. - */ - public Builder setModeValue(int value) { - mode_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Function calling mode.
-     * 
- * - * - * .google.cloud.vertexai.v1.FunctionCallingConfig.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The mode. - */ - @java.lang.Override - public com.google.cloud.vertexai.api.FunctionCallingConfig.Mode getMode() { - com.google.cloud.vertexai.api.FunctionCallingConfig.Mode result = - com.google.cloud.vertexai.api.FunctionCallingConfig.Mode.forNumber(mode_); - return result == null - ? com.google.cloud.vertexai.api.FunctionCallingConfig.Mode.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Optional. Function calling mode.
-     * 
- * - * - * .google.cloud.vertexai.v1.FunctionCallingConfig.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The mode to set. - * @return This builder for chaining. - */ - public Builder setMode(com.google.cloud.vertexai.api.FunctionCallingConfig.Mode value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - mode_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Function calling mode.
-     * 
- * - * - * .google.cloud.vertexai.v1.FunctionCallingConfig.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return This builder for chaining. - */ - public Builder clearMode() { - bitField0_ = (bitField0_ & ~0x00000001); - mode_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList allowedFunctionNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureAllowedFunctionNamesIsMutable() { - if (!allowedFunctionNames_.isModifiable()) { - allowedFunctionNames_ = new com.google.protobuf.LazyStringArrayList(allowedFunctionNames_); - } - bitField0_ |= 0x00000002; - } - /** - * - * - *
-     * Optional. Function names to call. Only set when the Mode is ANY. Function
-     * names should match [FunctionDeclaration.name]. With mode set to ANY, model
-     * will predict a function call from the set of function names provided.
-     * 
- * - * repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the allowedFunctionNames. - */ - public com.google.protobuf.ProtocolStringList getAllowedFunctionNamesList() { - allowedFunctionNames_.makeImmutable(); - return allowedFunctionNames_; - } - /** - * - * - *
-     * Optional. Function names to call. Only set when the Mode is ANY. Function
-     * names should match [FunctionDeclaration.name]. With mode set to ANY, model
-     * will predict a function call from the set of function names provided.
-     * 
- * - * repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The count of allowedFunctionNames. - */ - public int getAllowedFunctionNamesCount() { - return allowedFunctionNames_.size(); - } - /** - * - * - *
-     * Optional. Function names to call. Only set when the Mode is ANY. Function
-     * names should match [FunctionDeclaration.name]. With mode set to ANY, model
-     * will predict a function call from the set of function names provided.
-     * 
- * - * repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the element to return. - * @return The allowedFunctionNames at the given index. - */ - public java.lang.String getAllowedFunctionNames(int index) { - return allowedFunctionNames_.get(index); - } - /** - * - * - *
-     * Optional. Function names to call. Only set when the Mode is ANY. Function
-     * names should match [FunctionDeclaration.name]. With mode set to ANY, model
-     * will predict a function call from the set of function names provided.
-     * 
- * - * repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the value to return. - * @return The bytes of the allowedFunctionNames at the given index. - */ - public com.google.protobuf.ByteString getAllowedFunctionNamesBytes(int index) { - return allowedFunctionNames_.getByteString(index); - } - /** - * - * - *
-     * Optional. Function names to call. Only set when the Mode is ANY. Function
-     * names should match [FunctionDeclaration.name]. With mode set to ANY, model
-     * will predict a function call from the set of function names provided.
-     * 
- * - * repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index to set the value at. - * @param value The allowedFunctionNames to set. - * @return This builder for chaining. - */ - public Builder setAllowedFunctionNames(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAllowedFunctionNamesIsMutable(); - allowedFunctionNames_.set(index, value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Function names to call. Only set when the Mode is ANY. Function
-     * names should match [FunctionDeclaration.name]. With mode set to ANY, model
-     * will predict a function call from the set of function names provided.
-     * 
- * - * repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The allowedFunctionNames to add. - * @return This builder for chaining. - */ - public Builder addAllowedFunctionNames(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAllowedFunctionNamesIsMutable(); - allowedFunctionNames_.add(value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Function names to call. Only set when the Mode is ANY. Function
-     * names should match [FunctionDeclaration.name]. With mode set to ANY, model
-     * will predict a function call from the set of function names provided.
-     * 
- * - * repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param values The allowedFunctionNames to add. - * @return This builder for chaining. - */ - public Builder addAllAllowedFunctionNames(java.lang.Iterable values) { - ensureAllowedFunctionNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedFunctionNames_); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Function names to call. Only set when the Mode is ANY. Function
-     * names should match [FunctionDeclaration.name]. With mode set to ANY, model
-     * will predict a function call from the set of function names provided.
-     * 
- * - * repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return This builder for chaining. - */ - public Builder clearAllowedFunctionNames() { - allowedFunctionNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Function names to call. Only set when the Mode is ANY. Function
-     * names should match [FunctionDeclaration.name]. With mode set to ANY, model
-     * will predict a function call from the set of function names provided.
-     * 
- * - * repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The bytes of the allowedFunctionNames to add. - * @return This builder for chaining. - */ - public Builder addAllowedFunctionNamesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureAllowedFunctionNamesIsMutable(); - allowedFunctionNames_.add(value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.vertexai.v1.FunctionCallingConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.vertexai.v1.FunctionCallingConfig) - private static final com.google.cloud.vertexai.api.FunctionCallingConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.vertexai.api.FunctionCallingConfig(); - } - - public static com.google.cloud.vertexai.api.FunctionCallingConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FunctionCallingConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.vertexai.api.FunctionCallingConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/FunctionCallingConfigOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/FunctionCallingConfigOrBuilder.java deleted file mode 100644 index 0f74873d30a8..000000000000 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/FunctionCallingConfigOrBuilder.java +++ /dev/null @@ -1,118 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vertexai/v1/tool.proto - -// Protobuf Java Version: 3.25.3 -package com.google.cloud.vertexai.api; - -public interface FunctionCallingConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vertexai.v1.FunctionCallingConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. Function calling mode.
-   * 
- * - * - * .google.cloud.vertexai.v1.FunctionCallingConfig.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for mode. - */ - int getModeValue(); - /** - * - * - *
-   * Optional. Function calling mode.
-   * 
- * - * - * .google.cloud.vertexai.v1.FunctionCallingConfig.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The mode. - */ - com.google.cloud.vertexai.api.FunctionCallingConfig.Mode getMode(); - - /** - * - * - *
-   * Optional. Function names to call. Only set when the Mode is ANY. Function
-   * names should match [FunctionDeclaration.name]. With mode set to ANY, model
-   * will predict a function call from the set of function names provided.
-   * 
- * - * repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the allowedFunctionNames. - */ - java.util.List getAllowedFunctionNamesList(); - /** - * - * - *
-   * Optional. Function names to call. Only set when the Mode is ANY. Function
-   * names should match [FunctionDeclaration.name]. With mode set to ANY, model
-   * will predict a function call from the set of function names provided.
-   * 
- * - * repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The count of allowedFunctionNames. - */ - int getAllowedFunctionNamesCount(); - /** - * - * - *
-   * Optional. Function names to call. Only set when the Mode is ANY. Function
-   * names should match [FunctionDeclaration.name]. With mode set to ANY, model
-   * will predict a function call from the set of function names provided.
-   * 
- * - * repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the element to return. - * @return The allowedFunctionNames at the given index. - */ - java.lang.String getAllowedFunctionNames(int index); - /** - * - * - *
-   * Optional. Function names to call. Only set when the Mode is ANY. Function
-   * names should match [FunctionDeclaration.name]. With mode set to ANY, model
-   * will predict a function call from the set of function names provided.
-   * 
- * - * repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the value to return. - * @return The bytes of the allowedFunctionNames at the given index. - */ - com.google.protobuf.ByteString getAllowedFunctionNamesBytes(int index); -} diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerateContentRequest.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerateContentRequest.java index 514185eca21e..33cf6b1bf994 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerateContentRequest.java +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerateContentRequest.java @@ -391,65 +391,6 @@ public com.google.cloud.vertexai.api.ToolOrBuilder getToolsOrBuilder(int index) return tools_.get(index); } - public static final int TOOL_CONFIG_FIELD_NUMBER = 7; - private com.google.cloud.vertexai.api.ToolConfig toolConfig_; - /** - * - * - *
-   * Optional. Tool config. This config is shared for all tools provided in the
-   * request.
-   * 
- * - * - * .google.cloud.vertexai.v1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the toolConfig field is set. - */ - @java.lang.Override - public boolean hasToolConfig() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * Optional. Tool config. This config is shared for all tools provided in the
-   * request.
-   * 
- * - * - * .google.cloud.vertexai.v1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The toolConfig. - */ - @java.lang.Override - public com.google.cloud.vertexai.api.ToolConfig getToolConfig() { - return toolConfig_ == null - ? com.google.cloud.vertexai.api.ToolConfig.getDefaultInstance() - : toolConfig_; - } - /** - * - * - *
-   * Optional. Tool config. This config is shared for all tools provided in the
-   * request.
-   * 
- * - * - * .google.cloud.vertexai.v1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.vertexai.api.ToolConfigOrBuilder getToolConfigOrBuilder() { - return toolConfig_ == null - ? com.google.cloud.vertexai.api.ToolConfig.getDefaultInstance() - : toolConfig_; - } - public static final int SAFETY_SETTINGS_FIELD_NUMBER = 3; @SuppressWarnings("serial") @@ -554,7 +495,7 @@ public com.google.cloud.vertexai.api.SafetySettingOrBuilder getSafetySettingsOrB */ @java.lang.Override public boolean hasGenerationConfig() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -613,7 +554,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < safetySettings_.size(); i++) { output.writeMessage(3, safetySettings_.get(i)); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getGenerationConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { @@ -622,9 +563,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < tools_.size(); i++) { output.writeMessage(6, tools_.get(i)); } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(7, getToolConfig()); - } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(8, getSystemInstruction()); } @@ -643,7 +581,7 @@ public int getSerializedSize() { for (int i = 0; i < safetySettings_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, safetySettings_.get(i)); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getGenerationConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { @@ -652,9 +590,6 @@ public int getSerializedSize() { for (int i = 0; i < tools_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, tools_.get(i)); } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getToolConfig()); - } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSystemInstruction()); } @@ -681,10 +616,6 @@ public boolean equals(final java.lang.Object obj) { if (!getSystemInstruction().equals(other.getSystemInstruction())) return false; } if (!getToolsList().equals(other.getToolsList())) return false; - if (hasToolConfig() != other.hasToolConfig()) return false; - if (hasToolConfig()) { - if (!getToolConfig().equals(other.getToolConfig())) return false; - } if (!getSafetySettingsList().equals(other.getSafetySettingsList())) return false; if (hasGenerationConfig() != other.hasGenerationConfig()) return false; if (hasGenerationConfig()) { @@ -715,10 +646,6 @@ public int hashCode() { hash = (37 * hash) + TOOLS_FIELD_NUMBER; hash = (53 * hash) + getToolsList().hashCode(); } - if (hasToolConfig()) { - hash = (37 * hash) + TOOL_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getToolConfig().hashCode(); - } if (getSafetySettingsCount() > 0) { hash = (37 * hash) + SAFETY_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getSafetySettingsList().hashCode(); @@ -870,7 +797,6 @@ private void maybeForceBuilderInitialization() { getContentsFieldBuilder(); getSystemInstructionFieldBuilder(); getToolsFieldBuilder(); - getToolConfigFieldBuilder(); getSafetySettingsFieldBuilder(); getGenerationConfigFieldBuilder(); } @@ -900,18 +826,13 @@ public Builder clear() { toolsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); - toolConfig_ = null; - if (toolConfigBuilder_ != null) { - toolConfigBuilder_.dispose(); - toolConfigBuilder_ = null; - } if (safetySettingsBuilder_ == null) { safetySettings_ = java.util.Collections.emptyList(); } else { safetySettings_ = null; safetySettingsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000010); generationConfig_ = null; if (generationConfigBuilder_ != null) { generationConfigBuilder_.dispose(); @@ -973,9 +894,9 @@ private void buildPartialRepeatedFields( result.tools_ = toolsBuilder_.build(); } if (safetySettingsBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { safetySettings_ = java.util.Collections.unmodifiableList(safetySettings_); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000010); } result.safetySettings_ = safetySettings_; } else { @@ -996,14 +917,10 @@ private void buildPartial0(com.google.cloud.vertexai.api.GenerateContentRequest : systemInstructionBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.toolConfig_ = toolConfigBuilder_ == null ? toolConfig_ : toolConfigBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.generationConfig_ = generationConfigBuilder_ == null ? generationConfig_ : generationConfigBuilder_.build(); - to_bitField0_ |= 0x00000004; + to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @@ -1116,14 +1033,11 @@ public Builder mergeFrom(com.google.cloud.vertexai.api.GenerateContentRequest ot } } } - if (other.hasToolConfig()) { - mergeToolConfig(other.getToolConfig()); - } if (safetySettingsBuilder_ == null) { if (!other.safetySettings_.isEmpty()) { if (safetySettings_.isEmpty()) { safetySettings_ = other.safetySettings_; - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000010); } else { ensureSafetySettingsIsMutable(); safetySettings_.addAll(other.safetySettings_); @@ -1136,7 +1050,7 @@ public Builder mergeFrom(com.google.cloud.vertexai.api.GenerateContentRequest ot safetySettingsBuilder_.dispose(); safetySettingsBuilder_ = null; safetySettings_ = other.safetySettings_; - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000010); safetySettingsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSafetySettingsFieldBuilder() @@ -1205,7 +1119,7 @@ public Builder mergeFrom( { input.readMessage( getGenerationConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000020; break; } // case 34 case 42: @@ -1227,12 +1141,6 @@ public Builder mergeFrom( } break; } // case 50 - case 58: - { - input.readMessage(getToolConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 58 case 66: { input.readMessage( @@ -2525,226 +2433,14 @@ public java.util.List getToolsBuilde return toolsBuilder_; } - private com.google.cloud.vertexai.api.ToolConfig toolConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vertexai.api.ToolConfig, - com.google.cloud.vertexai.api.ToolConfig.Builder, - com.google.cloud.vertexai.api.ToolConfigOrBuilder> - toolConfigBuilder_; - /** - * - * - *
-     * Optional. Tool config. This config is shared for all tools provided in the
-     * request.
-     * 
- * - * - * .google.cloud.vertexai.v1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the toolConfig field is set. - */ - public boolean hasToolConfig() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * - * - *
-     * Optional. Tool config. This config is shared for all tools provided in the
-     * request.
-     * 
- * - * - * .google.cloud.vertexai.v1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The toolConfig. - */ - public com.google.cloud.vertexai.api.ToolConfig getToolConfig() { - if (toolConfigBuilder_ == null) { - return toolConfig_ == null - ? com.google.cloud.vertexai.api.ToolConfig.getDefaultInstance() - : toolConfig_; - } else { - return toolConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. Tool config. This config is shared for all tools provided in the
-     * request.
-     * 
- * - * - * .google.cloud.vertexai.v1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setToolConfig(com.google.cloud.vertexai.api.ToolConfig value) { - if (toolConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - toolConfig_ = value; - } else { - toolConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Tool config. This config is shared for all tools provided in the
-     * request.
-     * 
- * - * - * .google.cloud.vertexai.v1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setToolConfig(com.google.cloud.vertexai.api.ToolConfig.Builder builderForValue) { - if (toolConfigBuilder_ == null) { - toolConfig_ = builderForValue.build(); - } else { - toolConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Tool config. This config is shared for all tools provided in the
-     * request.
-     * 
- * - * - * .google.cloud.vertexai.v1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeToolConfig(com.google.cloud.vertexai.api.ToolConfig value) { - if (toolConfigBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && toolConfig_ != null - && toolConfig_ != com.google.cloud.vertexai.api.ToolConfig.getDefaultInstance()) { - getToolConfigBuilder().mergeFrom(value); - } else { - toolConfig_ = value; - } - } else { - toolConfigBuilder_.mergeFrom(value); - } - if (toolConfig_ != null) { - bitField0_ |= 0x00000010; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Optional. Tool config. This config is shared for all tools provided in the
-     * request.
-     * 
- * - * - * .google.cloud.vertexai.v1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearToolConfig() { - bitField0_ = (bitField0_ & ~0x00000010); - toolConfig_ = null; - if (toolConfigBuilder_ != null) { - toolConfigBuilder_.dispose(); - toolConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Tool config. This config is shared for all tools provided in the
-     * request.
-     * 
- * - * - * .google.cloud.vertexai.v1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.vertexai.api.ToolConfig.Builder getToolConfigBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getToolConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Tool config. This config is shared for all tools provided in the
-     * request.
-     * 
- * - * - * .google.cloud.vertexai.v1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.vertexai.api.ToolConfigOrBuilder getToolConfigOrBuilder() { - if (toolConfigBuilder_ != null) { - return toolConfigBuilder_.getMessageOrBuilder(); - } else { - return toolConfig_ == null - ? com.google.cloud.vertexai.api.ToolConfig.getDefaultInstance() - : toolConfig_; - } - } - /** - * - * - *
-     * Optional. Tool config. This config is shared for all tools provided in the
-     * request.
-     * 
- * - * - * .google.cloud.vertexai.v1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vertexai.api.ToolConfig, - com.google.cloud.vertexai.api.ToolConfig.Builder, - com.google.cloud.vertexai.api.ToolConfigOrBuilder> - getToolConfigFieldBuilder() { - if (toolConfigBuilder_ == null) { - toolConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vertexai.api.ToolConfig, - com.google.cloud.vertexai.api.ToolConfig.Builder, - com.google.cloud.vertexai.api.ToolConfigOrBuilder>( - getToolConfig(), getParentForChildren(), isClean()); - toolConfig_ = null; - } - return toolConfigBuilder_; - } - private java.util.List safetySettings_ = java.util.Collections.emptyList(); private void ensureSafetySettingsIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { + if (!((bitField0_ & 0x00000010) != 0)) { safetySettings_ = new java.util.ArrayList(safetySettings_); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000010; } } @@ -2993,7 +2689,7 @@ public Builder addAllSafetySettings( public Builder clearSafetySettings() { if (safetySettingsBuilder_ == null) { safetySettings_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { safetySettingsBuilder_.clear(); @@ -3138,7 +2834,7 @@ public com.google.cloud.vertexai.api.SafetySetting.Builder addSafetySettingsBuil com.google.cloud.vertexai.api.SafetySetting.Builder, com.google.cloud.vertexai.api.SafetySettingOrBuilder>( safetySettings_, - ((bitField0_ & 0x00000020) != 0), + ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); safetySettings_ = null; @@ -3166,7 +2862,7 @@ public com.google.cloud.vertexai.api.SafetySetting.Builder addSafetySettingsBuil * @return Whether the generationConfig field is set. */ public boolean hasGenerationConfig() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -3210,7 +2906,7 @@ public Builder setGenerationConfig(com.google.cloud.vertexai.api.GenerationConfi } else { generationConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -3232,7 +2928,7 @@ public Builder setGenerationConfig( } else { generationConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -3249,7 +2945,7 @@ public Builder setGenerationConfig( */ public Builder mergeGenerationConfig(com.google.cloud.vertexai.api.GenerationConfig value) { if (generationConfigBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) + if (((bitField0_ & 0x00000020) != 0) && generationConfig_ != null && generationConfig_ != com.google.cloud.vertexai.api.GenerationConfig.getDefaultInstance()) { @@ -3261,7 +2957,7 @@ public Builder mergeGenerationConfig(com.google.cloud.vertexai.api.GenerationCon generationConfigBuilder_.mergeFrom(value); } if (generationConfig_ != null) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000020; onChanged(); } return this; @@ -3278,7 +2974,7 @@ public Builder mergeGenerationConfig(com.google.cloud.vertexai.api.GenerationCon * */ public Builder clearGenerationConfig() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000020); generationConfig_ = null; if (generationConfigBuilder_ != null) { generationConfigBuilder_.dispose(); @@ -3299,7 +2995,7 @@ public Builder clearGenerationConfig() { * */ public com.google.cloud.vertexai.api.GenerationConfig.Builder getGenerationConfigBuilder() { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000020; onChanged(); return getGenerationConfigFieldBuilder().getBuilder(); } diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerateContentRequestOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerateContentRequestOrBuilder.java index a4834cdc8088..757a3a08e3b2 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerateContentRequestOrBuilder.java +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerateContentRequestOrBuilder.java @@ -268,50 +268,6 @@ public interface GenerateContentRequestOrBuilder */ com.google.cloud.vertexai.api.ToolOrBuilder getToolsOrBuilder(int index); - /** - * - * - *
-   * Optional. Tool config. This config is shared for all tools provided in the
-   * request.
-   * 
- * - * - * .google.cloud.vertexai.v1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the toolConfig field is set. - */ - boolean hasToolConfig(); - /** - * - * - *
-   * Optional. Tool config. This config is shared for all tools provided in the
-   * request.
-   * 
- * - * - * .google.cloud.vertexai.v1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The toolConfig. - */ - com.google.cloud.vertexai.api.ToolConfig getToolConfig(); - /** - * - * - *
-   * Optional. Tool config. This config is shared for all tools provided in the
-   * request.
-   * 
- * - * - * .google.cloud.vertexai.v1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.vertexai.api.ToolConfigOrBuilder getToolConfigOrBuilder(); - /** * * diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerationConfig.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerationConfig.java index 5f6a4814fcab..d5a28f0046d0 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerationConfig.java +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerationConfig.java @@ -423,80 +423,6 @@ public com.google.protobuf.ByteString getResponseMimeTypeBytes() { } } - public static final int RESPONSE_SCHEMA_FIELD_NUMBER = 16; - private com.google.cloud.vertexai.api.Schema responseSchema_; - /** - * - * - *
-   * Optional. The `Schema` object allows the definition of input and output
-   * data types. These types can be objects, but also primitives and arrays.
-   * Represents a select subset of an [OpenAPI 3.0 schema
-   * object](https://spec.openapis.org/oas/v3.0.3#schema).
-   * If set, a compatible response_mime_type must also be set.
-   * Compatible mimetypes:
-   * `application/json`: Schema for JSON response.
-   * 
- * - * - * optional .google.cloud.vertexai.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the responseSchema field is set. - */ - @java.lang.Override - public boolean hasResponseSchema() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * - * - *
-   * Optional. The `Schema` object allows the definition of input and output
-   * data types. These types can be objects, but also primitives and arrays.
-   * Represents a select subset of an [OpenAPI 3.0 schema
-   * object](https://spec.openapis.org/oas/v3.0.3#schema).
-   * If set, a compatible response_mime_type must also be set.
-   * Compatible mimetypes:
-   * `application/json`: Schema for JSON response.
-   * 
- * - * - * optional .google.cloud.vertexai.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The responseSchema. - */ - @java.lang.Override - public com.google.cloud.vertexai.api.Schema getResponseSchema() { - return responseSchema_ == null - ? com.google.cloud.vertexai.api.Schema.getDefaultInstance() - : responseSchema_; - } - /** - * - * - *
-   * Optional. The `Schema` object allows the definition of input and output
-   * data types. These types can be objects, but also primitives and arrays.
-   * Represents a select subset of an [OpenAPI 3.0 schema
-   * object](https://spec.openapis.org/oas/v3.0.3#schema).
-   * If set, a compatible response_mime_type must also be set.
-   * Compatible mimetypes:
-   * `application/json`: Schema for JSON response.
-   * 
- * - * - * optional .google.cloud.vertexai.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.vertexai.api.SchemaOrBuilder getResponseSchemaOrBuilder() { - return responseSchema_ == null - ? com.google.cloud.vertexai.api.Schema.getDefaultInstance() - : responseSchema_; - } - private byte memoizedIsInitialized = -1; @java.lang.Override @@ -538,9 +464,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(responseMimeType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, responseMimeType_); } - if (((bitField0_ & 0x00000080) != 0)) { - output.writeMessage(16, getResponseSchema()); - } getUnknownFields().writeTo(output); } @@ -582,9 +505,6 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(responseMimeType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, responseMimeType_); } - if (((bitField0_ & 0x00000080) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getResponseSchema()); - } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -636,10 +556,6 @@ public boolean equals(final java.lang.Object obj) { != java.lang.Float.floatToIntBits(other.getFrequencyPenalty())) return false; } if (!getResponseMimeType().equals(other.getResponseMimeType())) return false; - if (hasResponseSchema() != other.hasResponseSchema()) return false; - if (hasResponseSchema()) { - if (!getResponseSchema().equals(other.getResponseSchema())) return false; - } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -685,10 +601,6 @@ public int hashCode() { } hash = (37 * hash) + RESPONSE_MIME_TYPE_FIELD_NUMBER; hash = (53 * hash) + getResponseMimeType().hashCode(); - if (hasResponseSchema()) { - hash = (37 * hash) + RESPONSE_SCHEMA_FIELD_NUMBER; - hash = (53 * hash) + getResponseSchema().hashCode(); - } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -818,19 +730,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.vertexai.api.GenerationConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getResponseSchemaFieldBuilder(); - } } @java.lang.Override @@ -846,11 +749,6 @@ public Builder clear() { presencePenalty_ = 0F; frequencyPenalty_ = 0F; responseMimeType_ = ""; - responseSchema_ = null; - if (responseSchemaBuilder_ != null) { - responseSchemaBuilder_.dispose(); - responseSchemaBuilder_ = null; - } return this; } @@ -923,11 +821,6 @@ private void buildPartial0(com.google.cloud.vertexai.api.GenerationConfig result if (((from_bitField0_ & 0x00000100) != 0)) { result.responseMimeType_ = responseMimeType_; } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.responseSchema_ = - responseSchemaBuilder_ == null ? responseSchema_ : responseSchemaBuilder_.build(); - to_bitField0_ |= 0x00000080; - } result.bitField0_ |= to_bitField0_; } @@ -1012,9 +905,6 @@ public Builder mergeFrom(com.google.cloud.vertexai.api.GenerationConfig other) { bitField0_ |= 0x00000100; onChanged(); } - if (other.hasResponseSchema()) { - mergeResponseSchema(other.getResponseSchema()); - } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1096,12 +986,6 @@ public Builder mergeFrom( bitField0_ |= 0x00000100; break; } // case 106 - case 130: - { - input.readMessage(getResponseSchemaFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 130 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1907,263 +1791,6 @@ public Builder setResponseMimeTypeBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.cloud.vertexai.api.Schema responseSchema_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vertexai.api.Schema, - com.google.cloud.vertexai.api.Schema.Builder, - com.google.cloud.vertexai.api.SchemaOrBuilder> - responseSchemaBuilder_; - /** - * - * - *
-     * Optional. The `Schema` object allows the definition of input and output
-     * data types. These types can be objects, but also primitives and arrays.
-     * Represents a select subset of an [OpenAPI 3.0 schema
-     * object](https://spec.openapis.org/oas/v3.0.3#schema).
-     * If set, a compatible response_mime_type must also be set.
-     * Compatible mimetypes:
-     * `application/json`: Schema for JSON response.
-     * 
- * - * - * optional .google.cloud.vertexai.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the responseSchema field is set. - */ - public boolean hasResponseSchema() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - * - * - *
-     * Optional. The `Schema` object allows the definition of input and output
-     * data types. These types can be objects, but also primitives and arrays.
-     * Represents a select subset of an [OpenAPI 3.0 schema
-     * object](https://spec.openapis.org/oas/v3.0.3#schema).
-     * If set, a compatible response_mime_type must also be set.
-     * Compatible mimetypes:
-     * `application/json`: Schema for JSON response.
-     * 
- * - * - * optional .google.cloud.vertexai.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The responseSchema. - */ - public com.google.cloud.vertexai.api.Schema getResponseSchema() { - if (responseSchemaBuilder_ == null) { - return responseSchema_ == null - ? com.google.cloud.vertexai.api.Schema.getDefaultInstance() - : responseSchema_; - } else { - return responseSchemaBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. The `Schema` object allows the definition of input and output
-     * data types. These types can be objects, but also primitives and arrays.
-     * Represents a select subset of an [OpenAPI 3.0 schema
-     * object](https://spec.openapis.org/oas/v3.0.3#schema).
-     * If set, a compatible response_mime_type must also be set.
-     * Compatible mimetypes:
-     * `application/json`: Schema for JSON response.
-     * 
- * - * - * optional .google.cloud.vertexai.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setResponseSchema(com.google.cloud.vertexai.api.Schema value) { - if (responseSchemaBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - responseSchema_ = value; - } else { - responseSchemaBuilder_.setMessage(value); - } - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The `Schema` object allows the definition of input and output
-     * data types. These types can be objects, but also primitives and arrays.
-     * Represents a select subset of an [OpenAPI 3.0 schema
-     * object](https://spec.openapis.org/oas/v3.0.3#schema).
-     * If set, a compatible response_mime_type must also be set.
-     * Compatible mimetypes:
-     * `application/json`: Schema for JSON response.
-     * 
- * - * - * optional .google.cloud.vertexai.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setResponseSchema(com.google.cloud.vertexai.api.Schema.Builder builderForValue) { - if (responseSchemaBuilder_ == null) { - responseSchema_ = builderForValue.build(); - } else { - responseSchemaBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The `Schema` object allows the definition of input and output
-     * data types. These types can be objects, but also primitives and arrays.
-     * Represents a select subset of an [OpenAPI 3.0 schema
-     * object](https://spec.openapis.org/oas/v3.0.3#schema).
-     * If set, a compatible response_mime_type must also be set.
-     * Compatible mimetypes:
-     * `application/json`: Schema for JSON response.
-     * 
- * - * - * optional .google.cloud.vertexai.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeResponseSchema(com.google.cloud.vertexai.api.Schema value) { - if (responseSchemaBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) - && responseSchema_ != null - && responseSchema_ != com.google.cloud.vertexai.api.Schema.getDefaultInstance()) { - getResponseSchemaBuilder().mergeFrom(value); - } else { - responseSchema_ = value; - } - } else { - responseSchemaBuilder_.mergeFrom(value); - } - if (responseSchema_ != null) { - bitField0_ |= 0x00000200; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Optional. The `Schema` object allows the definition of input and output
-     * data types. These types can be objects, but also primitives and arrays.
-     * Represents a select subset of an [OpenAPI 3.0 schema
-     * object](https://spec.openapis.org/oas/v3.0.3#schema).
-     * If set, a compatible response_mime_type must also be set.
-     * Compatible mimetypes:
-     * `application/json`: Schema for JSON response.
-     * 
- * - * - * optional .google.cloud.vertexai.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearResponseSchema() { - bitField0_ = (bitField0_ & ~0x00000200); - responseSchema_ = null; - if (responseSchemaBuilder_ != null) { - responseSchemaBuilder_.dispose(); - responseSchemaBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. The `Schema` object allows the definition of input and output
-     * data types. These types can be objects, but also primitives and arrays.
-     * Represents a select subset of an [OpenAPI 3.0 schema
-     * object](https://spec.openapis.org/oas/v3.0.3#schema).
-     * If set, a compatible response_mime_type must also be set.
-     * Compatible mimetypes:
-     * `application/json`: Schema for JSON response.
-     * 
- * - * - * optional .google.cloud.vertexai.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.vertexai.api.Schema.Builder getResponseSchemaBuilder() { - bitField0_ |= 0x00000200; - onChanged(); - return getResponseSchemaFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. The `Schema` object allows the definition of input and output
-     * data types. These types can be objects, but also primitives and arrays.
-     * Represents a select subset of an [OpenAPI 3.0 schema
-     * object](https://spec.openapis.org/oas/v3.0.3#schema).
-     * If set, a compatible response_mime_type must also be set.
-     * Compatible mimetypes:
-     * `application/json`: Schema for JSON response.
-     * 
- * - * - * optional .google.cloud.vertexai.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.vertexai.api.SchemaOrBuilder getResponseSchemaOrBuilder() { - if (responseSchemaBuilder_ != null) { - return responseSchemaBuilder_.getMessageOrBuilder(); - } else { - return responseSchema_ == null - ? com.google.cloud.vertexai.api.Schema.getDefaultInstance() - : responseSchema_; - } - } - /** - * - * - *
-     * Optional. The `Schema` object allows the definition of input and output
-     * data types. These types can be objects, but also primitives and arrays.
-     * Represents a select subset of an [OpenAPI 3.0 schema
-     * object](https://spec.openapis.org/oas/v3.0.3#schema).
-     * If set, a compatible response_mime_type must also be set.
-     * Compatible mimetypes:
-     * `application/json`: Schema for JSON response.
-     * 
- * - * - * optional .google.cloud.vertexai.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vertexai.api.Schema, - com.google.cloud.vertexai.api.Schema.Builder, - com.google.cloud.vertexai.api.SchemaOrBuilder> - getResponseSchemaFieldBuilder() { - if (responseSchemaBuilder_ == null) { - responseSchemaBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vertexai.api.Schema, - com.google.cloud.vertexai.api.Schema.Builder, - com.google.cloud.vertexai.api.SchemaOrBuilder>( - getResponseSchema(), getParentForChildren(), isClean()); - responseSchema_ = null; - } - return responseSchemaBuilder_; - } - @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerationConfigOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerationConfigOrBuilder.java index 2b9017051f25..fd77186be57b 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerationConfigOrBuilder.java +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerationConfigOrBuilder.java @@ -286,63 +286,4 @@ public interface GenerationConfigOrBuilder * @return The bytes for responseMimeType. */ com.google.protobuf.ByteString getResponseMimeTypeBytes(); - - /** - * - * - *
-   * Optional. The `Schema` object allows the definition of input and output
-   * data types. These types can be objects, but also primitives and arrays.
-   * Represents a select subset of an [OpenAPI 3.0 schema
-   * object](https://spec.openapis.org/oas/v3.0.3#schema).
-   * If set, a compatible response_mime_type must also be set.
-   * Compatible mimetypes:
-   * `application/json`: Schema for JSON response.
-   * 
- * - * - * optional .google.cloud.vertexai.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the responseSchema field is set. - */ - boolean hasResponseSchema(); - /** - * - * - *
-   * Optional. The `Schema` object allows the definition of input and output
-   * data types. These types can be objects, but also primitives and arrays.
-   * Represents a select subset of an [OpenAPI 3.0 schema
-   * object](https://spec.openapis.org/oas/v3.0.3#schema).
-   * If set, a compatible response_mime_type must also be set.
-   * Compatible mimetypes:
-   * `application/json`: Schema for JSON response.
-   * 
- * - * - * optional .google.cloud.vertexai.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The responseSchema. - */ - com.google.cloud.vertexai.api.Schema getResponseSchema(); - /** - * - * - *
-   * Optional. The `Schema` object allows the definition of input and output
-   * data types. These types can be objects, but also primitives and arrays.
-   * Represents a select subset of an [OpenAPI 3.0 schema
-   * object](https://spec.openapis.org/oas/v3.0.3#schema).
-   * If set, a compatible response_mime_type must also be set.
-   * Compatible mimetypes:
-   * `application/json`: Schema for JSON response.
-   * 
- * - * - * optional .google.cloud.vertexai.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.vertexai.api.SchemaOrBuilder getResponseSchemaOrBuilder(); } diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GoogleSearchRetrieval.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GoogleSearchRetrieval.java index 89aeb35d2091..78662d557505 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GoogleSearchRetrieval.java +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GoogleSearchRetrieval.java @@ -61,6 +61,26 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.vertexai.api.GoogleSearchRetrieval.Builder.class); } + public static final int DISABLE_ATTRIBUTION_FIELD_NUMBER = 1; + private boolean disableAttribution_ = false; + /** + * + * + *
+   * Optional. Disable using the result from this tool in detecting grounding
+   * attribution. This does not affect how the result is given to the model for
+   * generation.
+   * 
+ * + * bool disable_attribution = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disableAttribution. + */ + @java.lang.Override + public boolean getDisableAttribution() { + return disableAttribution_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -75,6 +95,9 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (disableAttribution_ != false) { + output.writeBool(1, disableAttribution_); + } getUnknownFields().writeTo(output); } @@ -84,6 +107,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; + if (disableAttribution_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, disableAttribution_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -100,6 +126,7 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.vertexai.api.GoogleSearchRetrieval other = (com.google.cloud.vertexai.api.GoogleSearchRetrieval) obj; + if (getDisableAttribution() != other.getDisableAttribution()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -111,6 +138,8 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISABLE_ATTRIBUTION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableAttribution()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -249,6 +278,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; + disableAttribution_ = false; return this; } @@ -276,10 +307,20 @@ public com.google.cloud.vertexai.api.GoogleSearchRetrieval build() { public com.google.cloud.vertexai.api.GoogleSearchRetrieval buildPartial() { com.google.cloud.vertexai.api.GoogleSearchRetrieval result = new com.google.cloud.vertexai.api.GoogleSearchRetrieval(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.vertexai.api.GoogleSearchRetrieval result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.disableAttribution_ = disableAttribution_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -326,6 +367,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.vertexai.api.GoogleSearchRetrieval other) { if (other == com.google.cloud.vertexai.api.GoogleSearchRetrieval.getDefaultInstance()) return this; + if (other.getDisableAttribution() != false) { + setDisableAttribution(other.getDisableAttribution()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -352,6 +396,12 @@ public Builder mergeFrom( case 0: done = true; break; + case 8: + { + disableAttribution_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -369,6 +419,67 @@ public Builder mergeFrom( return this; } + private int bitField0_; + + private boolean disableAttribution_; + /** + * + * + *
+     * Optional. Disable using the result from this tool in detecting grounding
+     * attribution. This does not affect how the result is given to the model for
+     * generation.
+     * 
+ * + * bool disable_attribution = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disableAttribution. + */ + @java.lang.Override + public boolean getDisableAttribution() { + return disableAttribution_; + } + /** + * + * + *
+     * Optional. Disable using the result from this tool in detecting grounding
+     * attribution. This does not affect how the result is given to the model for
+     * generation.
+     * 
+ * + * bool disable_attribution = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The disableAttribution to set. + * @return This builder for chaining. + */ + public Builder setDisableAttribution(boolean value) { + + disableAttribution_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Disable using the result from this tool in detecting grounding
+     * attribution. This does not affect how the result is given to the model for
+     * generation.
+     * 
+ * + * bool disable_attribution = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisableAttribution() { + bitField0_ = (bitField0_ & ~0x00000001); + disableAttribution_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GoogleSearchRetrievalOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GoogleSearchRetrievalOrBuilder.java index fe21868a13c0..6a5b7fcada88 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GoogleSearchRetrievalOrBuilder.java +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GoogleSearchRetrievalOrBuilder.java @@ -22,4 +22,20 @@ public interface GoogleSearchRetrievalOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vertexai.v1.GoogleSearchRetrieval) - com.google.protobuf.MessageOrBuilder {} + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Disable using the result from this tool in detecting grounding
+   * attribution. This does not affect how the result is given to the model for
+   * generation.
+   * 
+ * + * bool disable_attribution = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disableAttribution. + */ + boolean getDisableAttribution(); +} diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GroundingAttribution.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GroundingAttribution.java new file mode 100644 index 000000000000..093b7a8db701 --- /dev/null +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GroundingAttribution.java @@ -0,0 +1,2138 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vertexai/v1/content.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.vertexai.api; + +/** + * + * + *
+ * Grounding attribution.
+ * 
+ * + * Protobuf type {@code google.cloud.vertexai.v1.GroundingAttribution} + */ +public final class GroundingAttribution extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vertexai.v1.GroundingAttribution) + GroundingAttributionOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroundingAttribution.newBuilder() to construct. + private GroundingAttribution(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GroundingAttribution() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GroundingAttribution(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vertexai.api.ContentProto + .internal_static_google_cloud_vertexai_v1_GroundingAttribution_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vertexai.api.ContentProto + .internal_static_google_cloud_vertexai_v1_GroundingAttribution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vertexai.api.GroundingAttribution.class, + com.google.cloud.vertexai.api.GroundingAttribution.Builder.class); + } + + public interface WebOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vertexai.v1.GroundingAttribution.Web) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. URI reference of the attribution.
+     * 
+ * + * string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uri. + */ + java.lang.String getUri(); + /** + * + * + *
+     * Output only. URI reference of the attribution.
+     * 
+ * + * string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
+     * Output only. Title of the attribution.
+     * 
+ * + * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The title. + */ + java.lang.String getTitle(); + /** + * + * + *
+     * Output only. Title of the attribution.
+     * 
+ * + * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + } + /** + * + * + *
+   * Attribution from the web.
+   * 
+ * + * Protobuf type {@code google.cloud.vertexai.v1.GroundingAttribution.Web} + */ + public static final class Web extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vertexai.v1.GroundingAttribution.Web) + WebOrBuilder { + private static final long serialVersionUID = 0L; + // Use Web.newBuilder() to construct. + private Web(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Web() { + uri_ = ""; + title_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Web(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vertexai.api.ContentProto + .internal_static_google_cloud_vertexai_v1_GroundingAttribution_Web_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vertexai.api.ContentProto + .internal_static_google_cloud_vertexai_v1_GroundingAttribution_Web_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vertexai.api.GroundingAttribution.Web.class, + com.google.cloud.vertexai.api.GroundingAttribution.Web.Builder.class); + } + + public static final int URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + /** + * + * + *
+     * Output only. URI reference of the attribution.
+     * 
+ * + * string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } + } + /** + * + * + *
+     * Output only. URI reference of the attribution.
+     * 
+ * + * string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TITLE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; + /** + * + * + *
+     * Output only. Title of the attribution.
+     * 
+ * + * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The title. + */ + @java.lang.Override + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } + } + /** + * + * + *
+     * Output only. Title of the attribution.
+     * 
+ * + * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for title. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, title_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vertexai.api.GroundingAttribution.Web)) { + return super.equals(obj); + } + com.google.cloud.vertexai.api.GroundingAttribution.Web other = + (com.google.cloud.vertexai.api.GroundingAttribution.Web) obj; + + if (!getUri().equals(other.getUri())) return false; + if (!getTitle().equals(other.getTitle())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vertexai.api.GroundingAttribution.Web parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vertexai.api.GroundingAttribution.Web parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vertexai.api.GroundingAttribution.Web parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vertexai.api.GroundingAttribution.Web parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vertexai.api.GroundingAttribution.Web parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vertexai.api.GroundingAttribution.Web parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vertexai.api.GroundingAttribution.Web parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vertexai.api.GroundingAttribution.Web parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vertexai.api.GroundingAttribution.Web parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vertexai.api.GroundingAttribution.Web parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vertexai.api.GroundingAttribution.Web parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vertexai.api.GroundingAttribution.Web parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vertexai.api.GroundingAttribution.Web prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Attribution from the web.
+     * 
+ * + * Protobuf type {@code google.cloud.vertexai.v1.GroundingAttribution.Web} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vertexai.v1.GroundingAttribution.Web) + com.google.cloud.vertexai.api.GroundingAttribution.WebOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vertexai.api.ContentProto + .internal_static_google_cloud_vertexai_v1_GroundingAttribution_Web_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vertexai.api.ContentProto + .internal_static_google_cloud_vertexai_v1_GroundingAttribution_Web_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vertexai.api.GroundingAttribution.Web.class, + com.google.cloud.vertexai.api.GroundingAttribution.Web.Builder.class); + } + + // Construct using com.google.cloud.vertexai.api.GroundingAttribution.Web.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + uri_ = ""; + title_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vertexai.api.ContentProto + .internal_static_google_cloud_vertexai_v1_GroundingAttribution_Web_descriptor; + } + + @java.lang.Override + public com.google.cloud.vertexai.api.GroundingAttribution.Web getDefaultInstanceForType() { + return com.google.cloud.vertexai.api.GroundingAttribution.Web.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vertexai.api.GroundingAttribution.Web build() { + com.google.cloud.vertexai.api.GroundingAttribution.Web result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vertexai.api.GroundingAttribution.Web buildPartial() { + com.google.cloud.vertexai.api.GroundingAttribution.Web result = + new com.google.cloud.vertexai.api.GroundingAttribution.Web(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vertexai.api.GroundingAttribution.Web result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.uri_ = uri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.title_ = title_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vertexai.api.GroundingAttribution.Web) { + return mergeFrom((com.google.cloud.vertexai.api.GroundingAttribution.Web) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vertexai.api.GroundingAttribution.Web other) { + if (other == com.google.cloud.vertexai.api.GroundingAttribution.Web.getDefaultInstance()) + return this; + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object uri_ = ""; + /** + * + * + *
+       * Output only. URI reference of the attribution.
+       * 
+ * + * string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uri. + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Output only. URI reference of the attribution.
+       * 
+ * + * string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uri. + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Output only. URI reference of the attribution.
+       * 
+ * + * string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. URI reference of the attribution.
+       * 
+ * + * string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. URI reference of the attribution.
+       * 
+ * + * string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for uri to set. + * @return This builder for chaining. + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object title_ = ""; + /** + * + * + *
+       * Output only. Title of the attribution.
+       * 
+ * + * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The title. + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Output only. Title of the attribution.
+       * 
+ * + * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for title. + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Output only. Title of the attribution.
+       * 
+ * + * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The title to set. + * @return This builder for chaining. + */ + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + title_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Title of the attribution.
+       * 
+ * + * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Title of the attribution.
+       * 
+ * + * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for title to set. + * @return This builder for chaining. + */ + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + title_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vertexai.v1.GroundingAttribution.Web) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vertexai.v1.GroundingAttribution.Web) + private static final com.google.cloud.vertexai.api.GroundingAttribution.Web DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vertexai.api.GroundingAttribution.Web(); + } + + public static com.google.cloud.vertexai.api.GroundingAttribution.Web getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Web parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.vertexai.api.GroundingAttribution.Web getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int referenceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object reference_; + + public enum ReferenceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + WEB(3), + REFERENCE_NOT_SET(0); + private final int value; + + private ReferenceCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ReferenceCase valueOf(int value) { + return forNumber(value); + } + + public static ReferenceCase forNumber(int value) { + switch (value) { + case 3: + return WEB; + case 0: + return REFERENCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ReferenceCase getReferenceCase() { + return ReferenceCase.forNumber(referenceCase_); + } + + public static final int WEB_FIELD_NUMBER = 3; + /** + * + * + *
+   * Optional. Attribution from the web.
+   * 
+ * + * + * .google.cloud.vertexai.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the web field is set. + */ + @java.lang.Override + public boolean hasWeb() { + return referenceCase_ == 3; + } + /** + * + * + *
+   * Optional. Attribution from the web.
+   * 
+ * + * + * .google.cloud.vertexai.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The web. + */ + @java.lang.Override + public com.google.cloud.vertexai.api.GroundingAttribution.Web getWeb() { + if (referenceCase_ == 3) { + return (com.google.cloud.vertexai.api.GroundingAttribution.Web) reference_; + } + return com.google.cloud.vertexai.api.GroundingAttribution.Web.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Attribution from the web.
+   * 
+ * + * + * .google.cloud.vertexai.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.vertexai.api.GroundingAttribution.WebOrBuilder getWebOrBuilder() { + if (referenceCase_ == 3) { + return (com.google.cloud.vertexai.api.GroundingAttribution.Web) reference_; + } + return com.google.cloud.vertexai.api.GroundingAttribution.Web.getDefaultInstance(); + } + + public static final int SEGMENT_FIELD_NUMBER = 1; + private com.google.cloud.vertexai.api.Segment segment_; + /** + * + * + *
+   * Output only. Segment of the content this attribution belongs to.
+   * 
+ * + * + * .google.cloud.vertexai.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the segment field is set. + */ + @java.lang.Override + public boolean hasSegment() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Output only. Segment of the content this attribution belongs to.
+   * 
+ * + * + * .google.cloud.vertexai.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The segment. + */ + @java.lang.Override + public com.google.cloud.vertexai.api.Segment getSegment() { + return segment_ == null ? com.google.cloud.vertexai.api.Segment.getDefaultInstance() : segment_; + } + /** + * + * + *
+   * Output only. Segment of the content this attribution belongs to.
+   * 
+ * + * + * .google.cloud.vertexai.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.vertexai.api.SegmentOrBuilder getSegmentOrBuilder() { + return segment_ == null ? com.google.cloud.vertexai.api.Segment.getDefaultInstance() : segment_; + } + + public static final int CONFIDENCE_SCORE_FIELD_NUMBER = 2; + private float confidenceScore_ = 0F; + /** + * + * + *
+   * Optional. Output only. Confidence score of the attribution. Ranges from 0
+   * to 1. 1 is the most confident.
+   * 
+ * + * + * optional float confidence_score = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the confidenceScore field is set. + */ + @java.lang.Override + public boolean hasConfidenceScore() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Optional. Output only. Confidence score of the attribution. Ranges from 0
+   * to 1. 1 is the most confident.
+   * 
+ * + * + * optional float confidence_score = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The confidenceScore. + */ + @java.lang.Override + public float getConfidenceScore() { + return confidenceScore_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getSegment()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeFloat(2, confidenceScore_); + } + if (referenceCase_ == 3) { + output.writeMessage(3, (com.google.cloud.vertexai.api.GroundingAttribution.Web) reference_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSegment()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidenceScore_); + } + if (referenceCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.vertexai.api.GroundingAttribution.Web) reference_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vertexai.api.GroundingAttribution)) { + return super.equals(obj); + } + com.google.cloud.vertexai.api.GroundingAttribution other = + (com.google.cloud.vertexai.api.GroundingAttribution) obj; + + if (hasSegment() != other.hasSegment()) return false; + if (hasSegment()) { + if (!getSegment().equals(other.getSegment())) return false; + } + if (hasConfidenceScore() != other.hasConfidenceScore()) return false; + if (hasConfidenceScore()) { + if (java.lang.Float.floatToIntBits(getConfidenceScore()) + != java.lang.Float.floatToIntBits(other.getConfidenceScore())) return false; + } + if (!getReferenceCase().equals(other.getReferenceCase())) return false; + switch (referenceCase_) { + case 3: + if (!getWeb().equals(other.getWeb())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSegment()) { + hash = (37 * hash) + SEGMENT_FIELD_NUMBER; + hash = (53 * hash) + getSegment().hashCode(); + } + if (hasConfidenceScore()) { + hash = (37 * hash) + CONFIDENCE_SCORE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidenceScore()); + } + switch (referenceCase_) { + case 3: + hash = (37 * hash) + WEB_FIELD_NUMBER; + hash = (53 * hash) + getWeb().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vertexai.api.GroundingAttribution parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vertexai.api.GroundingAttribution parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vertexai.api.GroundingAttribution parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vertexai.api.GroundingAttribution parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vertexai.api.GroundingAttribution parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vertexai.api.GroundingAttribution parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vertexai.api.GroundingAttribution parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vertexai.api.GroundingAttribution parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vertexai.api.GroundingAttribution parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vertexai.api.GroundingAttribution parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vertexai.api.GroundingAttribution parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vertexai.api.GroundingAttribution parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.vertexai.api.GroundingAttribution prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Grounding attribution.
+   * 
+ * + * Protobuf type {@code google.cloud.vertexai.v1.GroundingAttribution} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vertexai.v1.GroundingAttribution) + com.google.cloud.vertexai.api.GroundingAttributionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vertexai.api.ContentProto + .internal_static_google_cloud_vertexai_v1_GroundingAttribution_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vertexai.api.ContentProto + .internal_static_google_cloud_vertexai_v1_GroundingAttribution_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vertexai.api.GroundingAttribution.class, + com.google.cloud.vertexai.api.GroundingAttribution.Builder.class); + } + + // Construct using com.google.cloud.vertexai.api.GroundingAttribution.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSegmentFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (webBuilder_ != null) { + webBuilder_.clear(); + } + segment_ = null; + if (segmentBuilder_ != null) { + segmentBuilder_.dispose(); + segmentBuilder_ = null; + } + confidenceScore_ = 0F; + referenceCase_ = 0; + reference_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vertexai.api.ContentProto + .internal_static_google_cloud_vertexai_v1_GroundingAttribution_descriptor; + } + + @java.lang.Override + public com.google.cloud.vertexai.api.GroundingAttribution getDefaultInstanceForType() { + return com.google.cloud.vertexai.api.GroundingAttribution.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vertexai.api.GroundingAttribution build() { + com.google.cloud.vertexai.api.GroundingAttribution result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vertexai.api.GroundingAttribution buildPartial() { + com.google.cloud.vertexai.api.GroundingAttribution result = + new com.google.cloud.vertexai.api.GroundingAttribution(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vertexai.api.GroundingAttribution result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.segment_ = segmentBuilder_ == null ? segment_ : segmentBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.confidenceScore_ = confidenceScore_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.vertexai.api.GroundingAttribution result) { + result.referenceCase_ = referenceCase_; + result.reference_ = this.reference_; + if (referenceCase_ == 3 && webBuilder_ != null) { + result.reference_ = webBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vertexai.api.GroundingAttribution) { + return mergeFrom((com.google.cloud.vertexai.api.GroundingAttribution) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vertexai.api.GroundingAttribution other) { + if (other == com.google.cloud.vertexai.api.GroundingAttribution.getDefaultInstance()) + return this; + if (other.hasSegment()) { + mergeSegment(other.getSegment()); + } + if (other.hasConfidenceScore()) { + setConfidenceScore(other.getConfidenceScore()); + } + switch (other.getReferenceCase()) { + case WEB: + { + mergeWeb(other.getWeb()); + break; + } + case REFERENCE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getSegmentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 21: + { + confidenceScore_ = input.readFloat(); + bitField0_ |= 0x00000004; + break; + } // case 21 + case 26: + { + input.readMessage(getWebFieldBuilder().getBuilder(), extensionRegistry); + referenceCase_ = 3; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int referenceCase_ = 0; + private java.lang.Object reference_; + + public ReferenceCase getReferenceCase() { + return ReferenceCase.forNumber(referenceCase_); + } + + public Builder clearReference() { + referenceCase_ = 0; + reference_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vertexai.api.GroundingAttribution.Web, + com.google.cloud.vertexai.api.GroundingAttribution.Web.Builder, + com.google.cloud.vertexai.api.GroundingAttribution.WebOrBuilder> + webBuilder_; + /** + * + * + *
+     * Optional. Attribution from the web.
+     * 
+ * + * + * .google.cloud.vertexai.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the web field is set. + */ + @java.lang.Override + public boolean hasWeb() { + return referenceCase_ == 3; + } + /** + * + * + *
+     * Optional. Attribution from the web.
+     * 
+ * + * + * .google.cloud.vertexai.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The web. + */ + @java.lang.Override + public com.google.cloud.vertexai.api.GroundingAttribution.Web getWeb() { + if (webBuilder_ == null) { + if (referenceCase_ == 3) { + return (com.google.cloud.vertexai.api.GroundingAttribution.Web) reference_; + } + return com.google.cloud.vertexai.api.GroundingAttribution.Web.getDefaultInstance(); + } else { + if (referenceCase_ == 3) { + return webBuilder_.getMessage(); + } + return com.google.cloud.vertexai.api.GroundingAttribution.Web.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Attribution from the web.
+     * 
+ * + * + * .google.cloud.vertexai.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setWeb(com.google.cloud.vertexai.api.GroundingAttribution.Web value) { + if (webBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reference_ = value; + onChanged(); + } else { + webBuilder_.setMessage(value); + } + referenceCase_ = 3; + return this; + } + /** + * + * + *
+     * Optional. Attribution from the web.
+     * 
+ * + * + * .google.cloud.vertexai.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setWeb( + com.google.cloud.vertexai.api.GroundingAttribution.Web.Builder builderForValue) { + if (webBuilder_ == null) { + reference_ = builderForValue.build(); + onChanged(); + } else { + webBuilder_.setMessage(builderForValue.build()); + } + referenceCase_ = 3; + return this; + } + /** + * + * + *
+     * Optional. Attribution from the web.
+     * 
+ * + * + * .google.cloud.vertexai.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeWeb(com.google.cloud.vertexai.api.GroundingAttribution.Web value) { + if (webBuilder_ == null) { + if (referenceCase_ == 3 + && reference_ + != com.google.cloud.vertexai.api.GroundingAttribution.Web.getDefaultInstance()) { + reference_ = + com.google.cloud.vertexai.api.GroundingAttribution.Web.newBuilder( + (com.google.cloud.vertexai.api.GroundingAttribution.Web) reference_) + .mergeFrom(value) + .buildPartial(); + } else { + reference_ = value; + } + onChanged(); + } else { + if (referenceCase_ == 3) { + webBuilder_.mergeFrom(value); + } else { + webBuilder_.setMessage(value); + } + } + referenceCase_ = 3; + return this; + } + /** + * + * + *
+     * Optional. Attribution from the web.
+     * 
+ * + * + * .google.cloud.vertexai.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearWeb() { + if (webBuilder_ == null) { + if (referenceCase_ == 3) { + referenceCase_ = 0; + reference_ = null; + onChanged(); + } + } else { + if (referenceCase_ == 3) { + referenceCase_ = 0; + reference_ = null; + } + webBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Attribution from the web.
+     * 
+ * + * + * .google.cloud.vertexai.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vertexai.api.GroundingAttribution.Web.Builder getWebBuilder() { + return getWebFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Attribution from the web.
+     * 
+ * + * + * .google.cloud.vertexai.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.vertexai.api.GroundingAttribution.WebOrBuilder getWebOrBuilder() { + if ((referenceCase_ == 3) && (webBuilder_ != null)) { + return webBuilder_.getMessageOrBuilder(); + } else { + if (referenceCase_ == 3) { + return (com.google.cloud.vertexai.api.GroundingAttribution.Web) reference_; + } + return com.google.cloud.vertexai.api.GroundingAttribution.Web.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Attribution from the web.
+     * 
+ * + * + * .google.cloud.vertexai.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vertexai.api.GroundingAttribution.Web, + com.google.cloud.vertexai.api.GroundingAttribution.Web.Builder, + com.google.cloud.vertexai.api.GroundingAttribution.WebOrBuilder> + getWebFieldBuilder() { + if (webBuilder_ == null) { + if (!(referenceCase_ == 3)) { + reference_ = com.google.cloud.vertexai.api.GroundingAttribution.Web.getDefaultInstance(); + } + webBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vertexai.api.GroundingAttribution.Web, + com.google.cloud.vertexai.api.GroundingAttribution.Web.Builder, + com.google.cloud.vertexai.api.GroundingAttribution.WebOrBuilder>( + (com.google.cloud.vertexai.api.GroundingAttribution.Web) reference_, + getParentForChildren(), + isClean()); + reference_ = null; + } + referenceCase_ = 3; + onChanged(); + return webBuilder_; + } + + private com.google.cloud.vertexai.api.Segment segment_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vertexai.api.Segment, + com.google.cloud.vertexai.api.Segment.Builder, + com.google.cloud.vertexai.api.SegmentOrBuilder> + segmentBuilder_; + /** + * + * + *
+     * Output only. Segment of the content this attribution belongs to.
+     * 
+ * + * + * .google.cloud.vertexai.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the segment field is set. + */ + public boolean hasSegment() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Output only. Segment of the content this attribution belongs to.
+     * 
+ * + * + * .google.cloud.vertexai.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The segment. + */ + public com.google.cloud.vertexai.api.Segment getSegment() { + if (segmentBuilder_ == null) { + return segment_ == null + ? com.google.cloud.vertexai.api.Segment.getDefaultInstance() + : segment_; + } else { + return segmentBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Segment of the content this attribution belongs to.
+     * 
+ * + * + * .google.cloud.vertexai.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSegment(com.google.cloud.vertexai.api.Segment value) { + if (segmentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + segment_ = value; + } else { + segmentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Segment of the content this attribution belongs to.
+     * 
+ * + * + * .google.cloud.vertexai.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSegment(com.google.cloud.vertexai.api.Segment.Builder builderForValue) { + if (segmentBuilder_ == null) { + segment_ = builderForValue.build(); + } else { + segmentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Segment of the content this attribution belongs to.
+     * 
+ * + * + * .google.cloud.vertexai.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeSegment(com.google.cloud.vertexai.api.Segment value) { + if (segmentBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && segment_ != null + && segment_ != com.google.cloud.vertexai.api.Segment.getDefaultInstance()) { + getSegmentBuilder().mergeFrom(value); + } else { + segment_ = value; + } + } else { + segmentBuilder_.mergeFrom(value); + } + if (segment_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. Segment of the content this attribution belongs to.
+     * 
+ * + * + * .google.cloud.vertexai.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSegment() { + bitField0_ = (bitField0_ & ~0x00000002); + segment_ = null; + if (segmentBuilder_ != null) { + segmentBuilder_.dispose(); + segmentBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Segment of the content this attribution belongs to.
+     * 
+ * + * + * .google.cloud.vertexai.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vertexai.api.Segment.Builder getSegmentBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getSegmentFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Segment of the content this attribution belongs to.
+     * 
+ * + * + * .google.cloud.vertexai.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.vertexai.api.SegmentOrBuilder getSegmentOrBuilder() { + if (segmentBuilder_ != null) { + return segmentBuilder_.getMessageOrBuilder(); + } else { + return segment_ == null + ? com.google.cloud.vertexai.api.Segment.getDefaultInstance() + : segment_; + } + } + /** + * + * + *
+     * Output only. Segment of the content this attribution belongs to.
+     * 
+ * + * + * .google.cloud.vertexai.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vertexai.api.Segment, + com.google.cloud.vertexai.api.Segment.Builder, + com.google.cloud.vertexai.api.SegmentOrBuilder> + getSegmentFieldBuilder() { + if (segmentBuilder_ == null) { + segmentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vertexai.api.Segment, + com.google.cloud.vertexai.api.Segment.Builder, + com.google.cloud.vertexai.api.SegmentOrBuilder>( + getSegment(), getParentForChildren(), isClean()); + segment_ = null; + } + return segmentBuilder_; + } + + private float confidenceScore_; + /** + * + * + *
+     * Optional. Output only. Confidence score of the attribution. Ranges from 0
+     * to 1. 1 is the most confident.
+     * 
+ * + * + * optional float confidence_score = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the confidenceScore field is set. + */ + @java.lang.Override + public boolean hasConfidenceScore() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Optional. Output only. Confidence score of the attribution. Ranges from 0
+     * to 1. 1 is the most confident.
+     * 
+ * + * + * optional float confidence_score = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The confidenceScore. + */ + @java.lang.Override + public float getConfidenceScore() { + return confidenceScore_; + } + /** + * + * + *
+     * Optional. Output only. Confidence score of the attribution. Ranges from 0
+     * to 1. 1 is the most confident.
+     * 
+ * + * + * optional float confidence_score = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The confidenceScore to set. + * @return This builder for chaining. + */ + public Builder setConfidenceScore(float value) { + + confidenceScore_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Output only. Confidence score of the attribution. Ranges from 0
+     * to 1. 1 is the most confident.
+     * 
+ * + * + * optional float confidence_score = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearConfidenceScore() { + bitField0_ = (bitField0_ & ~0x00000004); + confidenceScore_ = 0F; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vertexai.v1.GroundingAttribution) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vertexai.v1.GroundingAttribution) + private static final com.google.cloud.vertexai.api.GroundingAttribution DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vertexai.api.GroundingAttribution(); + } + + public static com.google.cloud.vertexai.api.GroundingAttribution getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroundingAttribution parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.vertexai.api.GroundingAttribution getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GroundingAttributionOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GroundingAttributionOrBuilder.java new file mode 100644 index 000000000000..c085e0ba9b8a --- /dev/null +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GroundingAttributionOrBuilder.java @@ -0,0 +1,141 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vertexai/v1/content.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.vertexai.api; + +public interface GroundingAttributionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vertexai.v1.GroundingAttribution) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Attribution from the web.
+   * 
+ * + * + * .google.cloud.vertexai.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the web field is set. + */ + boolean hasWeb(); + /** + * + * + *
+   * Optional. Attribution from the web.
+   * 
+ * + * + * .google.cloud.vertexai.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The web. + */ + com.google.cloud.vertexai.api.GroundingAttribution.Web getWeb(); + /** + * + * + *
+   * Optional. Attribution from the web.
+   * 
+ * + * + * .google.cloud.vertexai.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.vertexai.api.GroundingAttribution.WebOrBuilder getWebOrBuilder(); + + /** + * + * + *
+   * Output only. Segment of the content this attribution belongs to.
+   * 
+ * + * + * .google.cloud.vertexai.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the segment field is set. + */ + boolean hasSegment(); + /** + * + * + *
+   * Output only. Segment of the content this attribution belongs to.
+   * 
+ * + * + * .google.cloud.vertexai.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The segment. + */ + com.google.cloud.vertexai.api.Segment getSegment(); + /** + * + * + *
+   * Output only. Segment of the content this attribution belongs to.
+   * 
+ * + * + * .google.cloud.vertexai.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.vertexai.api.SegmentOrBuilder getSegmentOrBuilder(); + + /** + * + * + *
+   * Optional. Output only. Confidence score of the attribution. Ranges from 0
+   * to 1. 1 is the most confident.
+   * 
+ * + * + * optional float confidence_score = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the confidenceScore field is set. + */ + boolean hasConfidenceScore(); + /** + * + * + *
+   * Optional. Output only. Confidence score of the attribution. Ranges from 0
+   * to 1. 1 is the most confident.
+   * 
+ * + * + * optional float confidence_score = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The confidenceScore. + */ + float getConfidenceScore(); + + com.google.cloud.vertexai.api.GroundingAttribution.ReferenceCase getReferenceCase(); +} diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GroundingMetadata.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GroundingMetadata.java index fe28efb19407..72b9117d2334 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GroundingMetadata.java +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GroundingMetadata.java @@ -40,6 +40,7 @@ private GroundingMetadata(com.google.protobuf.GeneratedMessageV3.Builder buil private GroundingMetadata() { webSearchQueries_ = com.google.protobuf.LazyStringArrayList.emptyList(); + groundingAttributions_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -63,7 +64,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.vertexai.api.GroundingMetadata.Builder.class); } - private int bitField0_; public static final int WEB_SEARCH_QUERIES_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -128,60 +128,87 @@ public com.google.protobuf.ByteString getWebSearchQueriesBytes(int index) { return webSearchQueries_.getByteString(index); } - public static final int SEARCH_ENTRY_POINT_FIELD_NUMBER = 4; - private com.google.cloud.vertexai.api.SearchEntryPoint searchEntryPoint_; + public static final int GROUNDING_ATTRIBUTIONS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List groundingAttributions_; /** * * *
-   * Optional. Google search entry for the following-up web searches.
+   * Optional. List of grounding attributions.
    * 
* * - * optional .google.cloud.vertexai.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; * + */ + @java.lang.Override + public java.util.List + getGroundingAttributionsList() { + return groundingAttributions_; + } + /** * - * @return Whether the searchEntryPoint field is set. + * + *
+   * Optional. List of grounding attributions.
+   * 
+ * + * + * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean hasSearchEntryPoint() { - return ((bitField0_ & 0x00000001) != 0); + public java.util.List + getGroundingAttributionsOrBuilderList() { + return groundingAttributions_; } /** * * *
-   * Optional. Google search entry for the following-up web searches.
+   * Optional. List of grounding attributions.
    * 
* * - * optional .google.cloud.vertexai.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; * + */ + @java.lang.Override + public int getGroundingAttributionsCount() { + return groundingAttributions_.size(); + } + /** + * * - * @return The searchEntryPoint. + *
+   * Optional. List of grounding attributions.
+   * 
+ * + * + * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.vertexai.api.SearchEntryPoint getSearchEntryPoint() { - return searchEntryPoint_ == null - ? com.google.cloud.vertexai.api.SearchEntryPoint.getDefaultInstance() - : searchEntryPoint_; + public com.google.cloud.vertexai.api.GroundingAttribution getGroundingAttributions(int index) { + return groundingAttributions_.get(index); } /** * * *
-   * Optional. Google search entry for the following-up web searches.
+   * Optional. List of grounding attributions.
    * 
* * - * optional .google.cloud.vertexai.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.cloud.vertexai.api.SearchEntryPointOrBuilder getSearchEntryPointOrBuilder() { - return searchEntryPoint_ == null - ? com.google.cloud.vertexai.api.SearchEntryPoint.getDefaultInstance() - : searchEntryPoint_; + public com.google.cloud.vertexai.api.GroundingAttributionOrBuilder + getGroundingAttributionsOrBuilder(int index) { + return groundingAttributions_.get(index); } private byte memoizedIsInitialized = -1; @@ -201,8 +228,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < webSearchQueries_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, webSearchQueries_.getRaw(i)); } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(4, getSearchEntryPoint()); + for (int i = 0; i < groundingAttributions_.size(); i++) { + output.writeMessage(2, groundingAttributions_.get(i)); } getUnknownFields().writeTo(output); } @@ -221,8 +248,10 @@ public int getSerializedSize() { size += dataSize; size += 1 * getWebSearchQueriesList().size(); } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSearchEntryPoint()); + for (int i = 0; i < groundingAttributions_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, groundingAttributions_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -241,10 +270,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.vertexai.api.GroundingMetadata) obj; if (!getWebSearchQueriesList().equals(other.getWebSearchQueriesList())) return false; - if (hasSearchEntryPoint() != other.hasSearchEntryPoint()) return false; - if (hasSearchEntryPoint()) { - if (!getSearchEntryPoint().equals(other.getSearchEntryPoint())) return false; - } + if (!getGroundingAttributionsList().equals(other.getGroundingAttributionsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -260,9 +286,9 @@ public int hashCode() { hash = (37 * hash) + WEB_SEARCH_QUERIES_FIELD_NUMBER; hash = (53 * hash) + getWebSearchQueriesList().hashCode(); } - if (hasSearchEntryPoint()) { - hash = (37 * hash) + SEARCH_ENTRY_POINT_FIELD_NUMBER; - hash = (53 * hash) + getSearchEntryPoint().hashCode(); + if (getGroundingAttributionsCount() > 0) { + hash = (37 * hash) + GROUNDING_ATTRIBUTIONS_FIELD_NUMBER; + hash = (53 * hash) + getGroundingAttributionsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; @@ -393,19 +419,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.vertexai.api.GroundingMetadata.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getSearchEntryPointFieldBuilder(); - } } @java.lang.Override @@ -413,11 +430,13 @@ public Builder clear() { super.clear(); bitField0_ = 0; webSearchQueries_ = com.google.protobuf.LazyStringArrayList.emptyList(); - searchEntryPoint_ = null; - if (searchEntryPointBuilder_ != null) { - searchEntryPointBuilder_.dispose(); - searchEntryPointBuilder_ = null; + if (groundingAttributionsBuilder_ == null) { + groundingAttributions_ = java.util.Collections.emptyList(); + } else { + groundingAttributions_ = null; + groundingAttributionsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -445,6 +464,7 @@ public com.google.cloud.vertexai.api.GroundingMetadata build() { public com.google.cloud.vertexai.api.GroundingMetadata buildPartial() { com.google.cloud.vertexai.api.GroundingMetadata result = new com.google.cloud.vertexai.api.GroundingMetadata(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -452,19 +472,25 @@ public com.google.cloud.vertexai.api.GroundingMetadata buildPartial() { return result; } + private void buildPartialRepeatedFields( + com.google.cloud.vertexai.api.GroundingMetadata result) { + if (groundingAttributionsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + groundingAttributions_ = java.util.Collections.unmodifiableList(groundingAttributions_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.groundingAttributions_ = groundingAttributions_; + } else { + result.groundingAttributions_ = groundingAttributionsBuilder_.build(); + } + } + private void buildPartial0(com.google.cloud.vertexai.api.GroundingMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { webSearchQueries_.makeImmutable(); result.webSearchQueries_ = webSearchQueries_; } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.searchEntryPoint_ = - searchEntryPointBuilder_ == null ? searchEntryPoint_ : searchEntryPointBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -523,8 +549,32 @@ public Builder mergeFrom(com.google.cloud.vertexai.api.GroundingMetadata other) } onChanged(); } - if (other.hasSearchEntryPoint()) { - mergeSearchEntryPoint(other.getSearchEntryPoint()); + if (groundingAttributionsBuilder_ == null) { + if (!other.groundingAttributions_.isEmpty()) { + if (groundingAttributions_.isEmpty()) { + groundingAttributions_ = other.groundingAttributions_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureGroundingAttributionsIsMutable(); + groundingAttributions_.addAll(other.groundingAttributions_); + } + onChanged(); + } + } else { + if (!other.groundingAttributions_.isEmpty()) { + if (groundingAttributionsBuilder_.isEmpty()) { + groundingAttributionsBuilder_.dispose(); + groundingAttributionsBuilder_ = null; + groundingAttributions_ = other.groundingAttributions_; + bitField0_ = (bitField0_ & ~0x00000002); + groundingAttributionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getGroundingAttributionsFieldBuilder() + : null; + } else { + groundingAttributionsBuilder_.addAllMessages(other.groundingAttributions_); + } + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -559,13 +609,20 @@ public Builder mergeFrom( webSearchQueries_.add(s); break; } // case 10 - case 34: + case 18: { - input.readMessage( - getSearchEntryPointFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; + com.google.cloud.vertexai.api.GroundingAttribution m = + input.readMessage( + com.google.cloud.vertexai.api.GroundingAttribution.parser(), + extensionRegistry); + if (groundingAttributionsBuilder_ == null) { + ensureGroundingAttributionsIsMutable(); + groundingAttributions_.add(m); + } else { + groundingAttributionsBuilder_.addMessage(m); + } break; - } // case 34 + } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -768,123 +825,173 @@ public Builder addWebSearchQueriesBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.cloud.vertexai.api.SearchEntryPoint searchEntryPoint_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vertexai.api.SearchEntryPoint, - com.google.cloud.vertexai.api.SearchEntryPoint.Builder, - com.google.cloud.vertexai.api.SearchEntryPointOrBuilder> - searchEntryPointBuilder_; + private java.util.List + groundingAttributions_ = java.util.Collections.emptyList(); + + private void ensureGroundingAttributionsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + groundingAttributions_ = + new java.util.ArrayList( + groundingAttributions_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vertexai.api.GroundingAttribution, + com.google.cloud.vertexai.api.GroundingAttribution.Builder, + com.google.cloud.vertexai.api.GroundingAttributionOrBuilder> + groundingAttributionsBuilder_; + /** * * *
-     * Optional. Google search entry for the following-up web searches.
+     * Optional. List of grounding attributions.
      * 
* * - * optional .google.cloud.vertexai.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return Whether the searchEntryPoint field is set. */ - public boolean hasSearchEntryPoint() { - return ((bitField0_ & 0x00000002) != 0); + public java.util.List + getGroundingAttributionsList() { + if (groundingAttributionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(groundingAttributions_); + } else { + return groundingAttributionsBuilder_.getMessageList(); + } } /** * * *
-     * Optional. Google search entry for the following-up web searches.
+     * Optional. List of grounding attributions.
      * 
* * - * optional .google.cloud.vertexai.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; * + */ + public int getGroundingAttributionsCount() { + if (groundingAttributionsBuilder_ == null) { + return groundingAttributions_.size(); + } else { + return groundingAttributionsBuilder_.getCount(); + } + } + /** + * * - * @return The searchEntryPoint. + *
+     * Optional. List of grounding attributions.
+     * 
+ * + * + * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.vertexai.api.SearchEntryPoint getSearchEntryPoint() { - if (searchEntryPointBuilder_ == null) { - return searchEntryPoint_ == null - ? com.google.cloud.vertexai.api.SearchEntryPoint.getDefaultInstance() - : searchEntryPoint_; + public com.google.cloud.vertexai.api.GroundingAttribution getGroundingAttributions(int index) { + if (groundingAttributionsBuilder_ == null) { + return groundingAttributions_.get(index); } else { - return searchEntryPointBuilder_.getMessage(); + return groundingAttributionsBuilder_.getMessage(index); } } /** * * *
-     * Optional. Google search entry for the following-up web searches.
+     * Optional. List of grounding attributions.
      * 
* * - * optional .google.cloud.vertexai.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setSearchEntryPoint(com.google.cloud.vertexai.api.SearchEntryPoint value) { - if (searchEntryPointBuilder_ == null) { + public Builder setGroundingAttributions( + int index, com.google.cloud.vertexai.api.GroundingAttribution value) { + if (groundingAttributionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - searchEntryPoint_ = value; + ensureGroundingAttributionsIsMutable(); + groundingAttributions_.set(index, value); + onChanged(); } else { - searchEntryPointBuilder_.setMessage(value); + groundingAttributionsBuilder_.setMessage(index, value); } - bitField0_ |= 0x00000002; - onChanged(); return this; } /** * * *
-     * Optional. Google search entry for the following-up web searches.
+     * Optional. List of grounding attributions.
      * 
* * - * optional .google.cloud.vertexai.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setSearchEntryPoint( - com.google.cloud.vertexai.api.SearchEntryPoint.Builder builderForValue) { - if (searchEntryPointBuilder_ == null) { - searchEntryPoint_ = builderForValue.build(); + public Builder setGroundingAttributions( + int index, com.google.cloud.vertexai.api.GroundingAttribution.Builder builderForValue) { + if (groundingAttributionsBuilder_ == null) { + ensureGroundingAttributionsIsMutable(); + groundingAttributions_.set(index, builderForValue.build()); + onChanged(); } else { - searchEntryPointBuilder_.setMessage(builderForValue.build()); + groundingAttributionsBuilder_.setMessage(index, builderForValue.build()); } - bitField0_ |= 0x00000002; - onChanged(); return this; } /** * * *
-     * Optional. Google search entry for the following-up web searches.
+     * Optional. List of grounding attributions.
      * 
* * - * optional .google.cloud.vertexai.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeSearchEntryPoint(com.google.cloud.vertexai.api.SearchEntryPoint value) { - if (searchEntryPointBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && searchEntryPoint_ != null - && searchEntryPoint_ - != com.google.cloud.vertexai.api.SearchEntryPoint.getDefaultInstance()) { - getSearchEntryPointBuilder().mergeFrom(value); - } else { - searchEntryPoint_ = value; + public Builder addGroundingAttributions( + com.google.cloud.vertexai.api.GroundingAttribution value) { + if (groundingAttributionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } + ensureGroundingAttributionsIsMutable(); + groundingAttributions_.add(value); + onChanged(); } else { - searchEntryPointBuilder_.mergeFrom(value); + groundingAttributionsBuilder_.addMessage(value); } - if (searchEntryPoint_ != null) { - bitField0_ |= 0x00000002; + return this; + } + /** + * + * + *
+     * Optional. List of grounding attributions.
+     * 
+ * + * + * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addGroundingAttributions( + int index, com.google.cloud.vertexai.api.GroundingAttribution value) { + if (groundingAttributionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroundingAttributionsIsMutable(); + groundingAttributions_.add(index, value); onChanged(); + } else { + groundingAttributionsBuilder_.addMessage(index, value); } return this; } @@ -892,85 +999,230 @@ public Builder mergeSearchEntryPoint(com.google.cloud.vertexai.api.SearchEntryPo * * *
-     * Optional. Google search entry for the following-up web searches.
+     * Optional. List of grounding attributions.
      * 
* * - * optional .google.cloud.vertexai.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearSearchEntryPoint() { - bitField0_ = (bitField0_ & ~0x00000002); - searchEntryPoint_ = null; - if (searchEntryPointBuilder_ != null) { - searchEntryPointBuilder_.dispose(); - searchEntryPointBuilder_ = null; + public Builder addGroundingAttributions( + com.google.cloud.vertexai.api.GroundingAttribution.Builder builderForValue) { + if (groundingAttributionsBuilder_ == null) { + ensureGroundingAttributionsIsMutable(); + groundingAttributions_.add(builderForValue.build()); + onChanged(); + } else { + groundingAttributionsBuilder_.addMessage(builderForValue.build()); } - onChanged(); return this; } /** * * *
-     * Optional. Google search entry for the following-up web searches.
+     * Optional. List of grounding attributions.
      * 
* * - * optional .google.cloud.vertexai.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.vertexai.api.SearchEntryPoint.Builder getSearchEntryPointBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getSearchEntryPointFieldBuilder().getBuilder(); + public Builder addGroundingAttributions( + int index, com.google.cloud.vertexai.api.GroundingAttribution.Builder builderForValue) { + if (groundingAttributionsBuilder_ == null) { + ensureGroundingAttributionsIsMutable(); + groundingAttributions_.add(index, builderForValue.build()); + onChanged(); + } else { + groundingAttributionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. List of grounding attributions.
+     * 
+ * + * + * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllGroundingAttributions( + java.lang.Iterable values) { + if (groundingAttributionsBuilder_ == null) { + ensureGroundingAttributionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groundingAttributions_); + onChanged(); + } else { + groundingAttributionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional. List of grounding attributions.
+     * 
+ * + * + * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearGroundingAttributions() { + if (groundingAttributionsBuilder_ == null) { + groundingAttributions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + groundingAttributionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. List of grounding attributions.
+     * 
+ * + * + * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeGroundingAttributions(int index) { + if (groundingAttributionsBuilder_ == null) { + ensureGroundingAttributionsIsMutable(); + groundingAttributions_.remove(index); + onChanged(); + } else { + groundingAttributionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional. List of grounding attributions.
+     * 
+ * + * + * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vertexai.api.GroundingAttribution.Builder + getGroundingAttributionsBuilder(int index) { + return getGroundingAttributionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional. List of grounding attributions.
+     * 
+ * + * + * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vertexai.api.GroundingAttributionOrBuilder + getGroundingAttributionsOrBuilder(int index) { + if (groundingAttributionsBuilder_ == null) { + return groundingAttributions_.get(index); + } else { + return groundingAttributionsBuilder_.getMessageOrBuilder(index); + } } /** * * *
-     * Optional. Google search entry for the following-up web searches.
+     * Optional. List of grounding attributions.
      * 
* * - * optional .google.cloud.vertexai.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.vertexai.api.SearchEntryPointOrBuilder getSearchEntryPointOrBuilder() { - if (searchEntryPointBuilder_ != null) { - return searchEntryPointBuilder_.getMessageOrBuilder(); + public java.util.List + getGroundingAttributionsOrBuilderList() { + if (groundingAttributionsBuilder_ != null) { + return groundingAttributionsBuilder_.getMessageOrBuilderList(); } else { - return searchEntryPoint_ == null - ? com.google.cloud.vertexai.api.SearchEntryPoint.getDefaultInstance() - : searchEntryPoint_; + return java.util.Collections.unmodifiableList(groundingAttributions_); } } /** * * *
-     * Optional. Google search entry for the following-up web searches.
+     * Optional. List of grounding attributions.
      * 
* * - * optional .google.cloud.vertexai.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vertexai.api.SearchEntryPoint, - com.google.cloud.vertexai.api.SearchEntryPoint.Builder, - com.google.cloud.vertexai.api.SearchEntryPointOrBuilder> - getSearchEntryPointFieldBuilder() { - if (searchEntryPointBuilder_ == null) { - searchEntryPointBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vertexai.api.SearchEntryPoint, - com.google.cloud.vertexai.api.SearchEntryPoint.Builder, - com.google.cloud.vertexai.api.SearchEntryPointOrBuilder>( - getSearchEntryPoint(), getParentForChildren(), isClean()); - searchEntryPoint_ = null; + public com.google.cloud.vertexai.api.GroundingAttribution.Builder + addGroundingAttributionsBuilder() { + return getGroundingAttributionsFieldBuilder() + .addBuilder(com.google.cloud.vertexai.api.GroundingAttribution.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. List of grounding attributions.
+     * 
+ * + * + * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vertexai.api.GroundingAttribution.Builder + addGroundingAttributionsBuilder(int index) { + return getGroundingAttributionsFieldBuilder() + .addBuilder( + index, com.google.cloud.vertexai.api.GroundingAttribution.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. List of grounding attributions.
+     * 
+ * + * + * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getGroundingAttributionsBuilderList() { + return getGroundingAttributionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vertexai.api.GroundingAttribution, + com.google.cloud.vertexai.api.GroundingAttribution.Builder, + com.google.cloud.vertexai.api.GroundingAttributionOrBuilder> + getGroundingAttributionsFieldBuilder() { + if (groundingAttributionsBuilder_ == null) { + groundingAttributionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.vertexai.api.GroundingAttribution, + com.google.cloud.vertexai.api.GroundingAttribution.Builder, + com.google.cloud.vertexai.api.GroundingAttributionOrBuilder>( + groundingAttributions_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + groundingAttributions_ = null; } - return searchEntryPointBuilder_; + return groundingAttributionsBuilder_; } @java.lang.Override diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GroundingMetadataOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GroundingMetadataOrBuilder.java index e1f581c410af..5b9adc982d78 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GroundingMetadataOrBuilder.java +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GroundingMetadataOrBuilder.java @@ -79,40 +79,62 @@ public interface GroundingMetadataOrBuilder * * *
-   * Optional. Google search entry for the following-up web searches.
+   * Optional. List of grounding attributions.
    * 
* * - * optional .google.cloud.vertexai.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; * + */ + java.util.List getGroundingAttributionsList(); + /** + * + * + *
+   * Optional. List of grounding attributions.
+   * 
* - * @return Whether the searchEntryPoint field is set. + * + * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - boolean hasSearchEntryPoint(); + com.google.cloud.vertexai.api.GroundingAttribution getGroundingAttributions(int index); /** * * *
-   * Optional. Google search entry for the following-up web searches.
+   * Optional. List of grounding attributions.
    * 
* * - * optional .google.cloud.vertexai.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; * + */ + int getGroundingAttributionsCount(); + /** + * + * + *
+   * Optional. List of grounding attributions.
+   * 
* - * @return The searchEntryPoint. + * + * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.vertexai.api.SearchEntryPoint getSearchEntryPoint(); + java.util.List + getGroundingAttributionsOrBuilderList(); /** * * *
-   * Optional. Google search entry for the following-up web searches.
+   * Optional. List of grounding attributions.
    * 
* * - * optional .google.cloud.vertexai.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ - com.google.cloud.vertexai.api.SearchEntryPointOrBuilder getSearchEntryPointOrBuilder(); + com.google.cloud.vertexai.api.GroundingAttributionOrBuilder getGroundingAttributionsOrBuilder( + int index); } diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PredictionServiceProto.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PredictionServiceProto.java index dd04ea81c93d..da662d55ae58 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PredictionServiceProto.java +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PredictionServiceProto.java @@ -216,132 +216,116 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "otobuf.ValueB\003\340A\002\0228\n\010contents\030\004 \003(\0132!.go" + "ogle.cloud.vertexai.v1.ContentB\003\340A\002\"N\n\023C" + "ountTokensResponse\022\024\n\014total_tokens\030\001 \001(\005" - + "\022!\n\031total_billable_characters\030\002 \001(\005\"\315\003\n\026" + + "\022!\n\031total_billable_characters\030\002 \001(\005\"\215\003\n\026" + "GenerateContentRequest\022\022\n\005model\030\005 \001(\tB\003\340" + "A\002\0228\n\010contents\030\002 \003(\0132!.google.cloud.vert" + "exai.v1.ContentB\003\340A\002\022G\n\022system_instructi" + "on\030\010 \001(\0132!.google.cloud.vertexai.v1.Cont" + "entB\003\340A\001H\000\210\001\001\0222\n\005tools\030\006 \003(\0132\036.google.cl" - + "oud.vertexai.v1.ToolB\003\340A\001\022>\n\013tool_config" - + "\030\007 \001(\0132$.google.cloud.vertexai.v1.ToolCo" - + "nfigB\003\340A\001\022E\n\017safety_settings\030\003 \003(\0132\'.goo" - + "gle.cloud.vertexai.v1.SafetySettingB\003\340A\001" - + "\022J\n\021generation_config\030\004 \001(\0132*.google.clo" - + "ud.vertexai.v1.GenerationConfigB\003\340A\001B\025\n\023" - + "_system_instruction\"\315\005\n\027GenerateContentR" - + "esponse\022<\n\ncandidates\030\002 \003(\0132#.google.clo" - + "ud.vertexai.v1.CandidateB\003\340A\003\022^\n\017prompt_" - + "feedback\030\003 \001(\0132@.google.cloud.vertexai.v" - + "1.GenerateContentResponse.PromptFeedback" - + "B\003\340A\003\022W\n\016usage_metadata\030\004 \001(\0132?.google.c" - + "loud.vertexai.v1.GenerateContentResponse" - + ".UsageMetadata\032\322\002\n\016PromptFeedback\022i\n\014blo" - + "ck_reason\030\001 \001(\0162N.google.cloud.vertexai." - + "v1.GenerateContentResponse.PromptFeedbac" - + "k.BlockedReasonB\003\340A\003\022C\n\016safety_ratings\030\002" - + " \003(\0132&.google.cloud.vertexai.v1.SafetyRa" - + "tingB\003\340A\003\022!\n\024block_reason_message\030\003 \001(\tB" - + "\003\340A\003\"m\n\rBlockedReason\022\036\n\032BLOCKED_REASON_" - + "UNSPECIFIED\020\000\022\n\n\006SAFETY\020\001\022\t\n\005OTHER\020\002\022\r\n\t" - + "BLOCKLIST\020\003\022\026\n\022PROHIBITED_CONTENT\020\004\032f\n\rU" - + "sageMetadata\022\032\n\022prompt_token_count\030\001 \001(\005" - + "\022\036\n\026candidates_token_count\030\002 \001(\005\022\031\n\021tota" - + "l_token_count\030\003 \001(\0052\346\033\n\021PredictionServic" - + "e\022\220\002\n\007Predict\022(.google.cloud.vertexai.v1" - + ".PredictRequest\032).google.cloud.vertexai." - + "v1.PredictResponse\"\257\001\332A\035endpoint,instanc" - + "es,parameters\202\323\344\223\002\210\001\"9/v1/{endpoint=proj" - + "ects/*/locations/*/endpoints/*}:predict:" - + "\001*ZH\"C/v1/{endpoint=projects/*/locations" - + "/*/publishers/*/models/*}:predict:\001*\022\374\001\n" - + "\nRawPredict\022+.google.cloud.vertexai.v1.R" - + "awPredictRequest\032\024.google.api.HttpBody\"\252" - + "\001\332A\022endpoint,http_body\202\323\344\223\002\216\001\"\"9/v1/{endpoint=projects/*/" - + "locations/*/endpoints/*}:explain:\001*\022\243\002\n\017" - + "GenerateContent\0220.google.cloud.vertexai." - + "v1.GenerateContentRequest\0321.google.cloud" - + ".vertexai.v1.GenerateContentResponse\"\252\001\332" - + "A\016model,contents\202\323\344\223\002\222\001\">/v1/{model=proj" - + "ects/*/locations/*/endpoints/*}:generate" - + "Content:\001*ZM\"H/v1/{model=projects/*/loca" - + "tions/*/publishers/*/models/*}:generateC" - + "ontent:\001*\022\267\002\n\025StreamGenerateContent\0220.go" - + "ogle.cloud.vertexai.v1.GenerateContentRe" - + "quest\0321.google.cloud.vertexai.v1.Generat" - + "eContentResponse\"\266\001\332A\016model,contents\202\323\344\223" - + "\002\236\001\"D/v1/{model=projects/*/locations/*/e" - + "ndpoints/*}:streamGenerateContent:\001*ZS\"N" - + "/v1/{model=projects/*/locations/*/publis" - + "hers/*/models/*}:streamGenerateContent:\001" - + "*0\001\032\206\001\312A\031aiplatform.googleapis.com\322Aghtt" - + "ps://www.googleapis.com/auth/cloud-platf" - + "orm,https://www.googleapis.com/auth/clou" - + "d-platform.read-onlyB\323\001\n\035com.google.clou" - + "d.vertexai.apiB\026PredictionServiceProtoP\001" - + "Z>cloud.google.com/go/aiplatform/apiv1/a" - + "iplatformpb;aiplatformpb\252\002\032Google.Cloud." - + "AIPlatform.V1\312\002\032Google\\Cloud\\AIPlatform\\" - + "V1\352\002\035Google::Cloud::AIPlatform::V1b\006prot" - + "o3" + + "*}:directPredict:\001*\022\310\001\n\020DirectRawPredict" + + "\0221.google.cloud.vertexai.v1.DirectRawPre" + + "dictRequest\0322.google.cloud.vertexai.v1.D" + + "irectRawPredictResponse\"M\202\323\344\223\002G\"B/v1/{en" + + "dpoint=projects/*/locations/*/endpoints/" + + "*}:directRawPredict:\001*\022\210\001\n\023StreamDirectP" + + "redict\0224.google.cloud.vertexai.v1.Stream" + + "DirectPredictRequest\0325.google.cloud.vert" + + "exai.v1.StreamDirectPredictResponse\"\000(\0010" + + "\001\022\221\001\n\026StreamDirectRawPredict\0227.google.cl" + + "oud.vertexai.v1.StreamDirectRawPredictRe" + + "quest\0328.google.cloud.vertexai.v1.StreamD" + + "irectRawPredictResponse\"\000(\0010\001\022\177\n\020Streami" + + "ngPredict\0221.google.cloud.vertexai.v1.Str" + + "eamingPredictRequest\0322.google.cloud.vert" + + "exai.v1.StreamingPredictResponse\"\000(\0010\001\022\261" + + "\002\n\026ServerStreamingPredict\0221.google.cloud" + + ".vertexai.v1.StreamingPredictRequest\0322.g" + + "oogle.cloud.vertexai.v1.StreamingPredict" + + "Response\"\255\001\202\323\344\223\002\246\001\"H/v1/{endpoint=projec" + + "ts/*/locations/*/endpoints/*}:serverStre" + + "amingPredict:\001*ZW\"R/v1/{endpoint=project" + + "s/*/locations/*/publishers/*/models/*}:s" + + "erverStreamingPredict:\001*0\001\022\210\001\n\023Streaming" + + "RawPredict\0224.google.cloud.vertexai.v1.St" + + "reamingRawPredictRequest\0325.google.cloud." + + "vertexai.v1.StreamingRawPredictResponse\"" + + "\000(\0010\001\022\326\001\n\007Explain\022(.google.cloud.vertexa" + + "i.v1.ExplainRequest\032).google.cloud.verte" + + "xai.v1.ExplainResponse\"v\332A/endpoint,inst" + + "ances,parameters,deployed_model_id\202\323\344\223\002>" + + "\"9/v1/{endpoint=projects/*/locations/*/e" + + "ndpoints/*}:explain:\001*\022\243\002\n\017GenerateConte" + + "nt\0220.google.cloud.vertexai.v1.GenerateCo" + + "ntentRequest\0321.google.cloud.vertexai.v1." + + "GenerateContentResponse\"\252\001\332A\016model,conte" + + "nts\202\323\344\223\002\222\001\">/v1/{model=projects/*/locati" + + "ons/*/endpoints/*}:generateContent:\001*ZM\"" + + "H/v1/{model=projects/*/locations/*/publi" + + "shers/*/models/*}:generateContent:\001*\022\267\002\n" + + "\025StreamGenerateContent\0220.google.cloud.ve" + + "rtexai.v1.GenerateContentRequest\0321.googl" + + "e.cloud.vertexai.v1.GenerateContentRespo" + + "nse\"\266\001\332A\016model,contents\202\323\344\223\002\236\001\"D/v1/{mod" + + "el=projects/*/locations/*/endpoints/*}:s" + + "treamGenerateContent:\001*ZS\"N/v1/{model=pr" + + "ojects/*/locations/*/publishers/*/models" + + "/*}:streamGenerateContent:\001*0\001\032M\312A\031aipla" + + "tform.googleapis.com\322A.https://www.googl" + + "eapis.com/auth/cloud-platformB\323\001\n\035com.go" + + "ogle.cloud.vertexai.apiB\026PredictionServi" + + "ceProtoP\001Z>cloud.google.com/go/aiplatfor" + + "m/apiv1/aiplatformpb;aiplatformpb\252\002\032Goog" + + "le.Cloud.AIPlatform.V1\312\002\032Google\\Cloud\\AI" + + "Platform\\V1\352\002\035Google::Cloud::AIPlatform:" + + ":V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -533,7 +517,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Contents", "SystemInstruction", "Tools", - "ToolConfig", "SafetySettings", "GenerationConfig", }); diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PrivateServiceConnectConfig.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PrivateServiceConnectConfig.java deleted file mode 100644 index c0b1b5e63510..000000000000 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PrivateServiceConnectConfig.java +++ /dev/null @@ -1,831 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vertexai/v1/service_networking.proto - -// Protobuf Java Version: 3.25.3 -package com.google.cloud.vertexai.api; - -/** - * - * - *
- * Represents configuration for private service connect.
- * 
- * - * Protobuf type {@code google.cloud.vertexai.v1.PrivateServiceConnectConfig} - */ -public final class PrivateServiceConnectConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.vertexai.v1.PrivateServiceConnectConfig) - PrivateServiceConnectConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use PrivateServiceConnectConfig.newBuilder() to construct. - private PrivateServiceConnectConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private PrivateServiceConnectConfig() { - projectAllowlist_ = com.google.protobuf.LazyStringArrayList.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PrivateServiceConnectConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vertexai.api.ServiceNetworkingProto - .internal_static_google_cloud_vertexai_v1_PrivateServiceConnectConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.vertexai.api.ServiceNetworkingProto - .internal_static_google_cloud_vertexai_v1_PrivateServiceConnectConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.vertexai.api.PrivateServiceConnectConfig.class, - com.google.cloud.vertexai.api.PrivateServiceConnectConfig.Builder.class); - } - - public static final int ENABLE_PRIVATE_SERVICE_CONNECT_FIELD_NUMBER = 1; - private boolean enablePrivateServiceConnect_ = false; - /** - * - * - *
-   * Required. If true, expose the IndexEndpoint via private service connect.
-   * 
- * - * bool enable_private_service_connect = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The enablePrivateServiceConnect. - */ - @java.lang.Override - public boolean getEnablePrivateServiceConnect() { - return enablePrivateServiceConnect_; - } - - public static final int PROJECT_ALLOWLIST_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList projectAllowlist_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * A list of Projects from which the forwarding rule will target the service
-   * attachment.
-   * 
- * - * repeated string project_allowlist = 2; - * - * @return A list containing the projectAllowlist. - */ - public com.google.protobuf.ProtocolStringList getProjectAllowlistList() { - return projectAllowlist_; - } - /** - * - * - *
-   * A list of Projects from which the forwarding rule will target the service
-   * attachment.
-   * 
- * - * repeated string project_allowlist = 2; - * - * @return The count of projectAllowlist. - */ - public int getProjectAllowlistCount() { - return projectAllowlist_.size(); - } - /** - * - * - *
-   * A list of Projects from which the forwarding rule will target the service
-   * attachment.
-   * 
- * - * repeated string project_allowlist = 2; - * - * @param index The index of the element to return. - * @return The projectAllowlist at the given index. - */ - public java.lang.String getProjectAllowlist(int index) { - return projectAllowlist_.get(index); - } - /** - * - * - *
-   * A list of Projects from which the forwarding rule will target the service
-   * attachment.
-   * 
- * - * repeated string project_allowlist = 2; - * - * @param index The index of the value to return. - * @return The bytes of the projectAllowlist at the given index. - */ - public com.google.protobuf.ByteString getProjectAllowlistBytes(int index) { - return projectAllowlist_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (enablePrivateServiceConnect_ != false) { - output.writeBool(1, enablePrivateServiceConnect_); - } - for (int i = 0; i < projectAllowlist_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, projectAllowlist_.getRaw(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (enablePrivateServiceConnect_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize(1, enablePrivateServiceConnect_); - } - { - int dataSize = 0; - for (int i = 0; i < projectAllowlist_.size(); i++) { - dataSize += computeStringSizeNoTag(projectAllowlist_.getRaw(i)); - } - size += dataSize; - size += 1 * getProjectAllowlistList().size(); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.vertexai.api.PrivateServiceConnectConfig)) { - return super.equals(obj); - } - com.google.cloud.vertexai.api.PrivateServiceConnectConfig other = - (com.google.cloud.vertexai.api.PrivateServiceConnectConfig) obj; - - if (getEnablePrivateServiceConnect() != other.getEnablePrivateServiceConnect()) return false; - if (!getProjectAllowlistList().equals(other.getProjectAllowlistList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ENABLE_PRIVATE_SERVICE_CONNECT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnablePrivateServiceConnect()); - if (getProjectAllowlistCount() > 0) { - hash = (37 * hash) + PROJECT_ALLOWLIST_FIELD_NUMBER; - hash = (53 * hash) + getProjectAllowlistList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.vertexai.api.PrivateServiceConnectConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.vertexai.api.PrivateServiceConnectConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.vertexai.api.PrivateServiceConnectConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.vertexai.api.PrivateServiceConnectConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.vertexai.api.PrivateServiceConnectConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.vertexai.api.PrivateServiceConnectConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.vertexai.api.PrivateServiceConnectConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.vertexai.api.PrivateServiceConnectConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.vertexai.api.PrivateServiceConnectConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.vertexai.api.PrivateServiceConnectConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.vertexai.api.PrivateServiceConnectConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.vertexai.api.PrivateServiceConnectConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.vertexai.api.PrivateServiceConnectConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Represents configuration for private service connect.
-   * 
- * - * Protobuf type {@code google.cloud.vertexai.v1.PrivateServiceConnectConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.vertexai.v1.PrivateServiceConnectConfig) - com.google.cloud.vertexai.api.PrivateServiceConnectConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vertexai.api.ServiceNetworkingProto - .internal_static_google_cloud_vertexai_v1_PrivateServiceConnectConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.vertexai.api.ServiceNetworkingProto - .internal_static_google_cloud_vertexai_v1_PrivateServiceConnectConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.vertexai.api.PrivateServiceConnectConfig.class, - com.google.cloud.vertexai.api.PrivateServiceConnectConfig.Builder.class); - } - - // Construct using com.google.cloud.vertexai.api.PrivateServiceConnectConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enablePrivateServiceConnect_ = false; - projectAllowlist_ = com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vertexai.api.ServiceNetworkingProto - .internal_static_google_cloud_vertexai_v1_PrivateServiceConnectConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.vertexai.api.PrivateServiceConnectConfig getDefaultInstanceForType() { - return com.google.cloud.vertexai.api.PrivateServiceConnectConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.vertexai.api.PrivateServiceConnectConfig build() { - com.google.cloud.vertexai.api.PrivateServiceConnectConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.vertexai.api.PrivateServiceConnectConfig buildPartial() { - com.google.cloud.vertexai.api.PrivateServiceConnectConfig result = - new com.google.cloud.vertexai.api.PrivateServiceConnectConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.vertexai.api.PrivateServiceConnectConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enablePrivateServiceConnect_ = enablePrivateServiceConnect_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - projectAllowlist_.makeImmutable(); - result.projectAllowlist_ = projectAllowlist_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.vertexai.api.PrivateServiceConnectConfig) { - return mergeFrom((com.google.cloud.vertexai.api.PrivateServiceConnectConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.vertexai.api.PrivateServiceConnectConfig other) { - if (other == com.google.cloud.vertexai.api.PrivateServiceConnectConfig.getDefaultInstance()) - return this; - if (other.getEnablePrivateServiceConnect() != false) { - setEnablePrivateServiceConnect(other.getEnablePrivateServiceConnect()); - } - if (!other.projectAllowlist_.isEmpty()) { - if (projectAllowlist_.isEmpty()) { - projectAllowlist_ = other.projectAllowlist_; - bitField0_ |= 0x00000002; - } else { - ensureProjectAllowlistIsMutable(); - projectAllowlist_.addAll(other.projectAllowlist_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enablePrivateServiceConnect_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureProjectAllowlistIsMutable(); - projectAllowlist_.add(s); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private boolean enablePrivateServiceConnect_; - /** - * - * - *
-     * Required. If true, expose the IndexEndpoint via private service connect.
-     * 
- * - * bool enable_private_service_connect = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enablePrivateServiceConnect. - */ - @java.lang.Override - public boolean getEnablePrivateServiceConnect() { - return enablePrivateServiceConnect_; - } - /** - * - * - *
-     * Required. If true, expose the IndexEndpoint via private service connect.
-     * 
- * - * bool enable_private_service_connect = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The enablePrivateServiceConnect to set. - * @return This builder for chaining. - */ - public Builder setEnablePrivateServiceConnect(boolean value) { - - enablePrivateServiceConnect_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. If true, expose the IndexEndpoint via private service connect.
-     * 
- * - * bool enable_private_service_connect = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return This builder for chaining. - */ - public Builder clearEnablePrivateServiceConnect() { - bitField0_ = (bitField0_ & ~0x00000001); - enablePrivateServiceConnect_ = false; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList projectAllowlist_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureProjectAllowlistIsMutable() { - if (!projectAllowlist_.isModifiable()) { - projectAllowlist_ = new com.google.protobuf.LazyStringArrayList(projectAllowlist_); - } - bitField0_ |= 0x00000002; - } - /** - * - * - *
-     * A list of Projects from which the forwarding rule will target the service
-     * attachment.
-     * 
- * - * repeated string project_allowlist = 2; - * - * @return A list containing the projectAllowlist. - */ - public com.google.protobuf.ProtocolStringList getProjectAllowlistList() { - projectAllowlist_.makeImmutable(); - return projectAllowlist_; - } - /** - * - * - *
-     * A list of Projects from which the forwarding rule will target the service
-     * attachment.
-     * 
- * - * repeated string project_allowlist = 2; - * - * @return The count of projectAllowlist. - */ - public int getProjectAllowlistCount() { - return projectAllowlist_.size(); - } - /** - * - * - *
-     * A list of Projects from which the forwarding rule will target the service
-     * attachment.
-     * 
- * - * repeated string project_allowlist = 2; - * - * @param index The index of the element to return. - * @return The projectAllowlist at the given index. - */ - public java.lang.String getProjectAllowlist(int index) { - return projectAllowlist_.get(index); - } - /** - * - * - *
-     * A list of Projects from which the forwarding rule will target the service
-     * attachment.
-     * 
- * - * repeated string project_allowlist = 2; - * - * @param index The index of the value to return. - * @return The bytes of the projectAllowlist at the given index. - */ - public com.google.protobuf.ByteString getProjectAllowlistBytes(int index) { - return projectAllowlist_.getByteString(index); - } - /** - * - * - *
-     * A list of Projects from which the forwarding rule will target the service
-     * attachment.
-     * 
- * - * repeated string project_allowlist = 2; - * - * @param index The index to set the value at. - * @param value The projectAllowlist to set. - * @return This builder for chaining. - */ - public Builder setProjectAllowlist(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureProjectAllowlistIsMutable(); - projectAllowlist_.set(index, value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * A list of Projects from which the forwarding rule will target the service
-     * attachment.
-     * 
- * - * repeated string project_allowlist = 2; - * - * @param value The projectAllowlist to add. - * @return This builder for chaining. - */ - public Builder addProjectAllowlist(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureProjectAllowlistIsMutable(); - projectAllowlist_.add(value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * A list of Projects from which the forwarding rule will target the service
-     * attachment.
-     * 
- * - * repeated string project_allowlist = 2; - * - * @param values The projectAllowlist to add. - * @return This builder for chaining. - */ - public Builder addAllProjectAllowlist(java.lang.Iterable values) { - ensureProjectAllowlistIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, projectAllowlist_); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * A list of Projects from which the forwarding rule will target the service
-     * attachment.
-     * 
- * - * repeated string project_allowlist = 2; - * - * @return This builder for chaining. - */ - public Builder clearProjectAllowlist() { - projectAllowlist_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; - onChanged(); - return this; - } - /** - * - * - *
-     * A list of Projects from which the forwarding rule will target the service
-     * attachment.
-     * 
- * - * repeated string project_allowlist = 2; - * - * @param value The bytes of the projectAllowlist to add. - * @return This builder for chaining. - */ - public Builder addProjectAllowlistBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureProjectAllowlistIsMutable(); - projectAllowlist_.add(value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.vertexai.v1.PrivateServiceConnectConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.vertexai.v1.PrivateServiceConnectConfig) - private static final com.google.cloud.vertexai.api.PrivateServiceConnectConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.vertexai.api.PrivateServiceConnectConfig(); - } - - public static com.google.cloud.vertexai.api.PrivateServiceConnectConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PrivateServiceConnectConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.vertexai.api.PrivateServiceConnectConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PrivateServiceConnectConfigOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PrivateServiceConnectConfigOrBuilder.java deleted file mode 100644 index a8f3f84bee0c..000000000000 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PrivateServiceConnectConfigOrBuilder.java +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vertexai/v1/service_networking.proto - -// Protobuf Java Version: 3.25.3 -package com.google.cloud.vertexai.api; - -public interface PrivateServiceConnectConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vertexai.v1.PrivateServiceConnectConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. If true, expose the IndexEndpoint via private service connect.
-   * 
- * - * bool enable_private_service_connect = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The enablePrivateServiceConnect. - */ - boolean getEnablePrivateServiceConnect(); - - /** - * - * - *
-   * A list of Projects from which the forwarding rule will target the service
-   * attachment.
-   * 
- * - * repeated string project_allowlist = 2; - * - * @return A list containing the projectAllowlist. - */ - java.util.List getProjectAllowlistList(); - /** - * - * - *
-   * A list of Projects from which the forwarding rule will target the service
-   * attachment.
-   * 
- * - * repeated string project_allowlist = 2; - * - * @return The count of projectAllowlist. - */ - int getProjectAllowlistCount(); - /** - * - * - *
-   * A list of Projects from which the forwarding rule will target the service
-   * attachment.
-   * 
- * - * repeated string project_allowlist = 2; - * - * @param index The index of the element to return. - * @return The projectAllowlist at the given index. - */ - java.lang.String getProjectAllowlist(int index); - /** - * - * - *
-   * A list of Projects from which the forwarding rule will target the service
-   * attachment.
-   * 
- * - * repeated string project_allowlist = 2; - * - * @param index The index of the value to return. - * @return The bytes of the projectAllowlist at the given index. - */ - com.google.protobuf.ByteString getProjectAllowlistBytes(int index); -} diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PscAutomatedEndpoints.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PscAutomatedEndpoints.java deleted file mode 100644 index 1209c3b492ea..000000000000 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PscAutomatedEndpoints.java +++ /dev/null @@ -1,991 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vertexai/v1/service_networking.proto - -// Protobuf Java Version: 3.25.3 -package com.google.cloud.vertexai.api; - -/** - * - * - *
- * PscAutomatedEndpoints defines the output of the forwarding rule
- * automatically created by each PscAutomationConfig.
- * 
- * - * Protobuf type {@code google.cloud.vertexai.v1.PscAutomatedEndpoints} - */ -public final class PscAutomatedEndpoints extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.vertexai.v1.PscAutomatedEndpoints) - PscAutomatedEndpointsOrBuilder { - private static final long serialVersionUID = 0L; - // Use PscAutomatedEndpoints.newBuilder() to construct. - private PscAutomatedEndpoints(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private PscAutomatedEndpoints() { - projectId_ = ""; - network_ = ""; - matchAddress_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PscAutomatedEndpoints(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vertexai.api.ServiceNetworkingProto - .internal_static_google_cloud_vertexai_v1_PscAutomatedEndpoints_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.vertexai.api.ServiceNetworkingProto - .internal_static_google_cloud_vertexai_v1_PscAutomatedEndpoints_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.vertexai.api.PscAutomatedEndpoints.class, - com.google.cloud.vertexai.api.PscAutomatedEndpoints.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - /** - * - * - *
-   * Corresponding project_id in pscAutomationConfigs
-   * 
- * - * string project_id = 1; - * - * @return The projectId. - */ - @java.lang.Override - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } - } - /** - * - * - *
-   * Corresponding project_id in pscAutomationConfigs
-   * 
- * - * string project_id = 1; - * - * @return The bytes for projectId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NETWORK_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object network_ = ""; - /** - * - * - *
-   * Corresponding network in pscAutomationConfigs.
-   * 
- * - * string network = 2; - * - * @return The network. - */ - @java.lang.Override - public java.lang.String getNetwork() { - java.lang.Object ref = network_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - network_ = s; - return s; - } - } - /** - * - * - *
-   * Corresponding network in pscAutomationConfigs.
-   * 
- * - * string network = 2; - * - * @return The bytes for network. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNetworkBytes() { - java.lang.Object ref = network_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - network_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MATCH_ADDRESS_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object matchAddress_ = ""; - /** - * - * - *
-   * Ip Address created by the automated forwarding rule.
-   * 
- * - * string match_address = 3; - * - * @return The matchAddress. - */ - @java.lang.Override - public java.lang.String getMatchAddress() { - java.lang.Object ref = matchAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - matchAddress_ = s; - return s; - } - } - /** - * - * - *
-   * Ip Address created by the automated forwarding rule.
-   * 
- * - * string match_address = 3; - * - * @return The bytes for matchAddress. - */ - @java.lang.Override - public com.google.protobuf.ByteString getMatchAddressBytes() { - java.lang.Object ref = matchAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - matchAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, network_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(matchAddress_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, matchAddress_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, network_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(matchAddress_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, matchAddress_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.vertexai.api.PscAutomatedEndpoints)) { - return super.equals(obj); - } - com.google.cloud.vertexai.api.PscAutomatedEndpoints other = - (com.google.cloud.vertexai.api.PscAutomatedEndpoints) obj; - - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getNetwork().equals(other.getNetwork())) return false; - if (!getMatchAddress().equals(other.getMatchAddress())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + NETWORK_FIELD_NUMBER; - hash = (53 * hash) + getNetwork().hashCode(); - hash = (37 * hash) + MATCH_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getMatchAddress().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.vertexai.api.PscAutomatedEndpoints parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.vertexai.api.PscAutomatedEndpoints parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.vertexai.api.PscAutomatedEndpoints parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.vertexai.api.PscAutomatedEndpoints parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.vertexai.api.PscAutomatedEndpoints parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.vertexai.api.PscAutomatedEndpoints parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.vertexai.api.PscAutomatedEndpoints parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.vertexai.api.PscAutomatedEndpoints parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.vertexai.api.PscAutomatedEndpoints parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.vertexai.api.PscAutomatedEndpoints parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.vertexai.api.PscAutomatedEndpoints parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.vertexai.api.PscAutomatedEndpoints parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.vertexai.api.PscAutomatedEndpoints prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * PscAutomatedEndpoints defines the output of the forwarding rule
-   * automatically created by each PscAutomationConfig.
-   * 
- * - * Protobuf type {@code google.cloud.vertexai.v1.PscAutomatedEndpoints} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.vertexai.v1.PscAutomatedEndpoints) - com.google.cloud.vertexai.api.PscAutomatedEndpointsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vertexai.api.ServiceNetworkingProto - .internal_static_google_cloud_vertexai_v1_PscAutomatedEndpoints_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.vertexai.api.ServiceNetworkingProto - .internal_static_google_cloud_vertexai_v1_PscAutomatedEndpoints_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.vertexai.api.PscAutomatedEndpoints.class, - com.google.cloud.vertexai.api.PscAutomatedEndpoints.Builder.class); - } - - // Construct using com.google.cloud.vertexai.api.PscAutomatedEndpoints.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - projectId_ = ""; - network_ = ""; - matchAddress_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vertexai.api.ServiceNetworkingProto - .internal_static_google_cloud_vertexai_v1_PscAutomatedEndpoints_descriptor; - } - - @java.lang.Override - public com.google.cloud.vertexai.api.PscAutomatedEndpoints getDefaultInstanceForType() { - return com.google.cloud.vertexai.api.PscAutomatedEndpoints.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.vertexai.api.PscAutomatedEndpoints build() { - com.google.cloud.vertexai.api.PscAutomatedEndpoints result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.vertexai.api.PscAutomatedEndpoints buildPartial() { - com.google.cloud.vertexai.api.PscAutomatedEndpoints result = - new com.google.cloud.vertexai.api.PscAutomatedEndpoints(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.vertexai.api.PscAutomatedEndpoints result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.projectId_ = projectId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.network_ = network_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.matchAddress_ = matchAddress_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.vertexai.api.PscAutomatedEndpoints) { - return mergeFrom((com.google.cloud.vertexai.api.PscAutomatedEndpoints) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.vertexai.api.PscAutomatedEndpoints other) { - if (other == com.google.cloud.vertexai.api.PscAutomatedEndpoints.getDefaultInstance()) - return this; - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getNetwork().isEmpty()) { - network_ = other.network_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getMatchAddress().isEmpty()) { - matchAddress_ = other.matchAddress_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - network_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - matchAddress_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object projectId_ = ""; - /** - * - * - *
-     * Corresponding project_id in pscAutomationConfigs
-     * 
- * - * string project_id = 1; - * - * @return The projectId. - */ - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Corresponding project_id in pscAutomationConfigs
-     * 
- * - * string project_id = 1; - * - * @return The bytes for projectId. - */ - public com.google.protobuf.ByteString getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Corresponding project_id in pscAutomationConfigs
-     * 
- * - * string project_id = 1; - * - * @param value The projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - projectId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Corresponding project_id in pscAutomationConfigs
-     * 
- * - * string project_id = 1; - * - * @return This builder for chaining. - */ - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Corresponding project_id in pscAutomationConfigs
-     * 
- * - * string project_id = 1; - * - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - projectId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object network_ = ""; - /** - * - * - *
-     * Corresponding network in pscAutomationConfigs.
-     * 
- * - * string network = 2; - * - * @return The network. - */ - public java.lang.String getNetwork() { - java.lang.Object ref = network_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - network_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Corresponding network in pscAutomationConfigs.
-     * 
- * - * string network = 2; - * - * @return The bytes for network. - */ - public com.google.protobuf.ByteString getNetworkBytes() { - java.lang.Object ref = network_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - network_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Corresponding network in pscAutomationConfigs.
-     * 
- * - * string network = 2; - * - * @param value The network to set. - * @return This builder for chaining. - */ - public Builder setNetwork(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - network_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Corresponding network in pscAutomationConfigs.
-     * 
- * - * string network = 2; - * - * @return This builder for chaining. - */ - public Builder clearNetwork() { - network_ = getDefaultInstance().getNetwork(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Corresponding network in pscAutomationConfigs.
-     * 
- * - * string network = 2; - * - * @param value The bytes for network to set. - * @return This builder for chaining. - */ - public Builder setNetworkBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - network_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object matchAddress_ = ""; - /** - * - * - *
-     * Ip Address created by the automated forwarding rule.
-     * 
- * - * string match_address = 3; - * - * @return The matchAddress. - */ - public java.lang.String getMatchAddress() { - java.lang.Object ref = matchAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - matchAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Ip Address created by the automated forwarding rule.
-     * 
- * - * string match_address = 3; - * - * @return The bytes for matchAddress. - */ - public com.google.protobuf.ByteString getMatchAddressBytes() { - java.lang.Object ref = matchAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - matchAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Ip Address created by the automated forwarding rule.
-     * 
- * - * string match_address = 3; - * - * @param value The matchAddress to set. - * @return This builder for chaining. - */ - public Builder setMatchAddress(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - matchAddress_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Ip Address created by the automated forwarding rule.
-     * 
- * - * string match_address = 3; - * - * @return This builder for chaining. - */ - public Builder clearMatchAddress() { - matchAddress_ = getDefaultInstance().getMatchAddress(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * - * - *
-     * Ip Address created by the automated forwarding rule.
-     * 
- * - * string match_address = 3; - * - * @param value The bytes for matchAddress to set. - * @return This builder for chaining. - */ - public Builder setMatchAddressBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - matchAddress_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.vertexai.v1.PscAutomatedEndpoints) - } - - // @@protoc_insertion_point(class_scope:google.cloud.vertexai.v1.PscAutomatedEndpoints) - private static final com.google.cloud.vertexai.api.PscAutomatedEndpoints DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.vertexai.api.PscAutomatedEndpoints(); - } - - public static com.google.cloud.vertexai.api.PscAutomatedEndpoints getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PscAutomatedEndpoints parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.vertexai.api.PscAutomatedEndpoints getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PscAutomatedEndpointsOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PscAutomatedEndpointsOrBuilder.java deleted file mode 100644 index 28802bfdbfc4..000000000000 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PscAutomatedEndpointsOrBuilder.java +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vertexai/v1/service_networking.proto - -// Protobuf Java Version: 3.25.3 -package com.google.cloud.vertexai.api; - -public interface PscAutomatedEndpointsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vertexai.v1.PscAutomatedEndpoints) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Corresponding project_id in pscAutomationConfigs
-   * 
- * - * string project_id = 1; - * - * @return The projectId. - */ - java.lang.String getProjectId(); - /** - * - * - *
-   * Corresponding project_id in pscAutomationConfigs
-   * 
- * - * string project_id = 1; - * - * @return The bytes for projectId. - */ - com.google.protobuf.ByteString getProjectIdBytes(); - - /** - * - * - *
-   * Corresponding network in pscAutomationConfigs.
-   * 
- * - * string network = 2; - * - * @return The network. - */ - java.lang.String getNetwork(); - /** - * - * - *
-   * Corresponding network in pscAutomationConfigs.
-   * 
- * - * string network = 2; - * - * @return The bytes for network. - */ - com.google.protobuf.ByteString getNetworkBytes(); - - /** - * - * - *
-   * Ip Address created by the automated forwarding rule.
-   * 
- * - * string match_address = 3; - * - * @return The matchAddress. - */ - java.lang.String getMatchAddress(); - /** - * - * - *
-   * Ip Address created by the automated forwarding rule.
-   * 
- * - * string match_address = 3; - * - * @return The bytes for matchAddress. - */ - com.google.protobuf.ByteString getMatchAddressBytes(); -} diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/SearchEntryPoint.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Segment.java similarity index 53% rename from java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/SearchEntryPoint.java rename to java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Segment.java index a77cc90c009f..d20bc1669471 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/SearchEntryPoint.java +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Segment.java @@ -23,117 +23,98 @@ * * *
- * Google search entry point.
+ * Segment of the content.
  * 
* - * Protobuf type {@code google.cloud.vertexai.v1.SearchEntryPoint} + * Protobuf type {@code google.cloud.vertexai.v1.Segment} */ -public final class SearchEntryPoint extends com.google.protobuf.GeneratedMessageV3 +public final class Segment extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.vertexai.v1.SearchEntryPoint) - SearchEntryPointOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.vertexai.v1.Segment) + SegmentOrBuilder { private static final long serialVersionUID = 0L; - // Use SearchEntryPoint.newBuilder() to construct. - private SearchEntryPoint(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use Segment.newBuilder() to construct. + private Segment(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SearchEntryPoint() { - renderedContent_ = ""; - sdkBlob_ = com.google.protobuf.ByteString.EMPTY; - } + private Segment() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SearchEntryPoint(); + return new Segment(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.vertexai.api.ContentProto - .internal_static_google_cloud_vertexai_v1_SearchEntryPoint_descriptor; + .internal_static_google_cloud_vertexai_v1_Segment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.vertexai.api.ContentProto - .internal_static_google_cloud_vertexai_v1_SearchEntryPoint_fieldAccessorTable + .internal_static_google_cloud_vertexai_v1_Segment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vertexai.api.SearchEntryPoint.class, - com.google.cloud.vertexai.api.SearchEntryPoint.Builder.class); + com.google.cloud.vertexai.api.Segment.class, + com.google.cloud.vertexai.api.Segment.Builder.class); } - public static final int RENDERED_CONTENT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object renderedContent_ = ""; + public static final int PART_INDEX_FIELD_NUMBER = 1; + private int partIndex_ = 0; /** * * *
-   * Optional. Web content snippet that can be embedded in a web page or an app
-   * webview.
+   * Output only. The index of a Part object within its parent Content object.
    * 
* - * string rendered_content = 1 [(.google.api.field_behavior) = OPTIONAL]; + * int32 part_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The renderedContent. + * @return The partIndex. */ @java.lang.Override - public java.lang.String getRenderedContent() { - java.lang.Object ref = renderedContent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - renderedContent_ = s; - return s; - } + public int getPartIndex() { + return partIndex_; } + + public static final int START_INDEX_FIELD_NUMBER = 2; + private int startIndex_ = 0; /** * * *
-   * Optional. Web content snippet that can be embedded in a web page or an app
-   * webview.
+   * Output only. Start index in the given Part, measured in bytes. Offset from
+   * the start of the Part, inclusive, starting at zero.
    * 
* - * string rendered_content = 1 [(.google.api.field_behavior) = OPTIONAL]; + * int32 start_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The bytes for renderedContent. + * @return The startIndex. */ @java.lang.Override - public com.google.protobuf.ByteString getRenderedContentBytes() { - java.lang.Object ref = renderedContent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - renderedContent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public int getStartIndex() { + return startIndex_; } - public static final int SDK_BLOB_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString sdkBlob_ = com.google.protobuf.ByteString.EMPTY; + public static final int END_INDEX_FIELD_NUMBER = 3; + private int endIndex_ = 0; /** * * *
-   * Optional. Base64 encoded JSON representing array of <search term, search
-   * url> tuple.
+   * Output only. End index in the given Part, measured in bytes. Offset from
+   * the start of the Part, exclusive, starting at zero.
    * 
* - * bytes sdk_blob = 2 [(.google.api.field_behavior) = OPTIONAL]; + * int32 end_index = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The sdkBlob. + * @return The endIndex. */ @java.lang.Override - public com.google.protobuf.ByteString getSdkBlob() { - return sdkBlob_; + public int getEndIndex() { + return endIndex_; } private byte memoizedIsInitialized = -1; @@ -150,11 +131,14 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(renderedContent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, renderedContent_); + if (partIndex_ != 0) { + output.writeInt32(1, partIndex_); + } + if (startIndex_ != 0) { + output.writeInt32(2, startIndex_); } - if (!sdkBlob_.isEmpty()) { - output.writeBytes(2, sdkBlob_); + if (endIndex_ != 0) { + output.writeInt32(3, endIndex_); } getUnknownFields().writeTo(output); } @@ -165,11 +149,14 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(renderedContent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, renderedContent_); + if (partIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, partIndex_); } - if (!sdkBlob_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, sdkBlob_); + if (startIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, startIndex_); + } + if (endIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, endIndex_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -181,14 +168,14 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.cloud.vertexai.api.SearchEntryPoint)) { + if (!(obj instanceof com.google.cloud.vertexai.api.Segment)) { return super.equals(obj); } - com.google.cloud.vertexai.api.SearchEntryPoint other = - (com.google.cloud.vertexai.api.SearchEntryPoint) obj; + com.google.cloud.vertexai.api.Segment other = (com.google.cloud.vertexai.api.Segment) obj; - if (!getRenderedContent().equals(other.getRenderedContent())) return false; - if (!getSdkBlob().equals(other.getSdkBlob())) return false; + if (getPartIndex() != other.getPartIndex()) return false; + if (getStartIndex() != other.getStartIndex()) return false; + if (getEndIndex() != other.getEndIndex()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -200,80 +187,81 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RENDERED_CONTENT_FIELD_NUMBER; - hash = (53 * hash) + getRenderedContent().hashCode(); - hash = (37 * hash) + SDK_BLOB_FIELD_NUMBER; - hash = (53 * hash) + getSdkBlob().hashCode(); + hash = (37 * hash) + PART_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getPartIndex(); + hash = (37 * hash) + START_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getStartIndex(); + hash = (37 * hash) + END_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getEndIndex(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vertexai.api.SearchEntryPoint parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vertexai.api.Segment parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vertexai.api.SearchEntryPoint parseFrom( + public static com.google.cloud.vertexai.api.Segment parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vertexai.api.SearchEntryPoint parseFrom( - com.google.protobuf.ByteString data) + public static com.google.cloud.vertexai.api.Segment parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vertexai.api.SearchEntryPoint parseFrom( + public static com.google.cloud.vertexai.api.Segment parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vertexai.api.SearchEntryPoint parseFrom(byte[] data) + public static com.google.cloud.vertexai.api.Segment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vertexai.api.SearchEntryPoint parseFrom( + public static com.google.cloud.vertexai.api.Segment parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vertexai.api.SearchEntryPoint parseFrom(java.io.InputStream input) + public static com.google.cloud.vertexai.api.Segment parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.vertexai.api.SearchEntryPoint parseFrom( + public static com.google.cloud.vertexai.api.Segment parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.vertexai.api.SearchEntryPoint parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { + public static com.google.cloud.vertexai.api.Segment parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vertexai.api.SearchEntryPoint parseDelimitedFrom( + public static com.google.cloud.vertexai.api.Segment parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.vertexai.api.SearchEntryPoint parseFrom( + public static com.google.cloud.vertexai.api.Segment parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.vertexai.api.SearchEntryPoint parseFrom( + public static com.google.cloud.vertexai.api.Segment parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -290,7 +278,7 @@ public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vertexai.api.SearchEntryPoint prototype) { + public static Builder newBuilder(com.google.cloud.vertexai.api.Segment prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -308,31 +296,31 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Google search entry point.
+   * Segment of the content.
    * 
* - * Protobuf type {@code google.cloud.vertexai.v1.SearchEntryPoint} + * Protobuf type {@code google.cloud.vertexai.v1.Segment} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.vertexai.v1.SearchEntryPoint) - com.google.cloud.vertexai.api.SearchEntryPointOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.vertexai.v1.Segment) + com.google.cloud.vertexai.api.SegmentOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.vertexai.api.ContentProto - .internal_static_google_cloud_vertexai_v1_SearchEntryPoint_descriptor; + .internal_static_google_cloud_vertexai_v1_Segment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.vertexai.api.ContentProto - .internal_static_google_cloud_vertexai_v1_SearchEntryPoint_fieldAccessorTable + .internal_static_google_cloud_vertexai_v1_Segment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vertexai.api.SearchEntryPoint.class, - com.google.cloud.vertexai.api.SearchEntryPoint.Builder.class); + com.google.cloud.vertexai.api.Segment.class, + com.google.cloud.vertexai.api.Segment.Builder.class); } - // Construct using com.google.cloud.vertexai.api.SearchEntryPoint.newBuilder() + // Construct using com.google.cloud.vertexai.api.Segment.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @@ -343,25 +331,26 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - renderedContent_ = ""; - sdkBlob_ = com.google.protobuf.ByteString.EMPTY; + partIndex_ = 0; + startIndex_ = 0; + endIndex_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.vertexai.api.ContentProto - .internal_static_google_cloud_vertexai_v1_SearchEntryPoint_descriptor; + .internal_static_google_cloud_vertexai_v1_Segment_descriptor; } @java.lang.Override - public com.google.cloud.vertexai.api.SearchEntryPoint getDefaultInstanceForType() { - return com.google.cloud.vertexai.api.SearchEntryPoint.getDefaultInstance(); + public com.google.cloud.vertexai.api.Segment getDefaultInstanceForType() { + return com.google.cloud.vertexai.api.Segment.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.vertexai.api.SearchEntryPoint build() { - com.google.cloud.vertexai.api.SearchEntryPoint result = buildPartial(); + public com.google.cloud.vertexai.api.Segment build() { + com.google.cloud.vertexai.api.Segment result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -369,9 +358,9 @@ public com.google.cloud.vertexai.api.SearchEntryPoint build() { } @java.lang.Override - public com.google.cloud.vertexai.api.SearchEntryPoint buildPartial() { - com.google.cloud.vertexai.api.SearchEntryPoint result = - new com.google.cloud.vertexai.api.SearchEntryPoint(this); + public com.google.cloud.vertexai.api.Segment buildPartial() { + com.google.cloud.vertexai.api.Segment result = + new com.google.cloud.vertexai.api.Segment(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -379,13 +368,16 @@ public com.google.cloud.vertexai.api.SearchEntryPoint buildPartial() { return result; } - private void buildPartial0(com.google.cloud.vertexai.api.SearchEntryPoint result) { + private void buildPartial0(com.google.cloud.vertexai.api.Segment result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.renderedContent_ = renderedContent_; + result.partIndex_ = partIndex_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.sdkBlob_ = sdkBlob_; + result.startIndex_ = startIndex_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.endIndex_ = endIndex_; } } @@ -424,23 +416,24 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.vertexai.api.SearchEntryPoint) { - return mergeFrom((com.google.cloud.vertexai.api.SearchEntryPoint) other); + if (other instanceof com.google.cloud.vertexai.api.Segment) { + return mergeFrom((com.google.cloud.vertexai.api.Segment) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.vertexai.api.SearchEntryPoint other) { - if (other == com.google.cloud.vertexai.api.SearchEntryPoint.getDefaultInstance()) return this; - if (!other.getRenderedContent().isEmpty()) { - renderedContent_ = other.renderedContent_; - bitField0_ |= 0x00000001; - onChanged(); + public Builder mergeFrom(com.google.cloud.vertexai.api.Segment other) { + if (other == com.google.cloud.vertexai.api.Segment.getDefaultInstance()) return this; + if (other.getPartIndex() != 0) { + setPartIndex(other.getPartIndex()); + } + if (other.getStartIndex() != 0) { + setStartIndex(other.getStartIndex()); } - if (other.getSdkBlob() != com.google.protobuf.ByteString.EMPTY) { - setSdkBlob(other.getSdkBlob()); + if (other.getEndIndex() != 0) { + setEndIndex(other.getEndIndex()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -468,18 +461,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: + case 8: { - renderedContent_ = input.readStringRequireUtf8(); + partIndex_ = input.readInt32(); bitField0_ |= 0x00000001; break; - } // case 10 - case 18: + } // case 8 + case 16: { - sdkBlob_ = input.readBytes(); + startIndex_ = input.readInt32(); bitField0_ |= 0x00000002; break; - } // case 18 + } // case 16 + case 24: + { + endIndex_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -499,90 +498,93 @@ public Builder mergeFrom( private int bitField0_; - private java.lang.Object renderedContent_ = ""; + private int partIndex_; /** * * *
-     * Optional. Web content snippet that can be embedded in a web page or an app
-     * webview.
+     * Output only. The index of a Part object within its parent Content object.
      * 
* - * string rendered_content = 1 [(.google.api.field_behavior) = OPTIONAL]; + * int32 part_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The renderedContent. + * @return The partIndex. */ - public java.lang.String getRenderedContent() { - java.lang.Object ref = renderedContent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - renderedContent_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public int getPartIndex() { + return partIndex_; } /** * * *
-     * Optional. Web content snippet that can be embedded in a web page or an app
-     * webview.
+     * Output only. The index of a Part object within its parent Content object.
      * 
* - * string rendered_content = 1 [(.google.api.field_behavior) = OPTIONAL]; + * int32 part_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The bytes for renderedContent. + * @param value The partIndex to set. + * @return This builder for chaining. */ - public com.google.protobuf.ByteString getRenderedContentBytes() { - java.lang.Object ref = renderedContent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - renderedContent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public Builder setPartIndex(int value) { + + partIndex_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; } /** * * *
-     * Optional. Web content snippet that can be embedded in a web page or an app
-     * webview.
+     * Output only. The index of a Part object within its parent Content object.
      * 
* - * string rendered_content = 1 [(.google.api.field_behavior) = OPTIONAL]; + * int32 part_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @param value The renderedContent to set. * @return This builder for chaining. */ - public Builder setRenderedContent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - renderedContent_ = value; - bitField0_ |= 0x00000001; + public Builder clearPartIndex() { + bitField0_ = (bitField0_ & ~0x00000001); + partIndex_ = 0; onChanged(); return this; } + + private int startIndex_; /** * * *
-     * Optional. Web content snippet that can be embedded in a web page or an app
-     * webview.
+     * Output only. Start index in the given Part, measured in bytes. Offset from
+     * the start of the Part, inclusive, starting at zero.
      * 
* - * string rendered_content = 1 [(.google.api.field_behavior) = OPTIONAL]; + * int32 start_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The startIndex. + */ + @java.lang.Override + public int getStartIndex() { + return startIndex_; + } + /** + * + * + *
+     * Output only. Start index in the given Part, measured in bytes. Offset from
+     * the start of the Part, inclusive, starting at zero.
+     * 
* + * int32 start_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The startIndex to set. * @return This builder for chaining. */ - public Builder clearRenderedContent() { - renderedContent_ = getDefaultInstance().getRenderedContent(); - bitField0_ = (bitField0_ & ~0x00000001); + public Builder setStartIndex(int value) { + + startIndex_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -590,62 +592,55 @@ public Builder clearRenderedContent() { * * *
-     * Optional. Web content snippet that can be embedded in a web page or an app
-     * webview.
+     * Output only. Start index in the given Part, measured in bytes. Offset from
+     * the start of the Part, inclusive, starting at zero.
      * 
* - * string rendered_content = 1 [(.google.api.field_behavior) = OPTIONAL]; + * int32 start_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @param value The bytes for renderedContent to set. * @return This builder for chaining. */ - public Builder setRenderedContentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - renderedContent_ = value; - bitField0_ |= 0x00000001; + public Builder clearStartIndex() { + bitField0_ = (bitField0_ & ~0x00000002); + startIndex_ = 0; onChanged(); return this; } - private com.google.protobuf.ByteString sdkBlob_ = com.google.protobuf.ByteString.EMPTY; + private int endIndex_; /** * * *
-     * Optional. Base64 encoded JSON representing array of <search term, search
-     * url> tuple.
+     * Output only. End index in the given Part, measured in bytes. Offset from
+     * the start of the Part, exclusive, starting at zero.
      * 
* - * bytes sdk_blob = 2 [(.google.api.field_behavior) = OPTIONAL]; + * int32 end_index = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The sdkBlob. + * @return The endIndex. */ @java.lang.Override - public com.google.protobuf.ByteString getSdkBlob() { - return sdkBlob_; + public int getEndIndex() { + return endIndex_; } /** * * *
-     * Optional. Base64 encoded JSON representing array of <search term, search
-     * url> tuple.
+     * Output only. End index in the given Part, measured in bytes. Offset from
+     * the start of the Part, exclusive, starting at zero.
      * 
* - * bytes sdk_blob = 2 [(.google.api.field_behavior) = OPTIONAL]; + * int32 end_index = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @param value The sdkBlob to set. + * @param value The endIndex to set. * @return This builder for chaining. */ - public Builder setSdkBlob(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - sdkBlob_ = value; - bitField0_ |= 0x00000002; + public Builder setEndIndex(int value) { + + endIndex_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -653,17 +648,17 @@ public Builder setSdkBlob(com.google.protobuf.ByteString value) { * * *
-     * Optional. Base64 encoded JSON representing array of <search term, search
-     * url> tuple.
+     * Output only. End index in the given Part, measured in bytes. Offset from
+     * the start of the Part, exclusive, starting at zero.
      * 
* - * bytes sdk_blob = 2 [(.google.api.field_behavior) = OPTIONAL]; + * int32 end_index = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ - public Builder clearSdkBlob() { - bitField0_ = (bitField0_ & ~0x00000002); - sdkBlob_ = getDefaultInstance().getSdkBlob(); + public Builder clearEndIndex() { + bitField0_ = (bitField0_ & ~0x00000004); + endIndex_ = 0; onChanged(); return this; } @@ -679,24 +674,24 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vertexai.v1.SearchEntryPoint) + // @@protoc_insertion_point(builder_scope:google.cloud.vertexai.v1.Segment) } - // @@protoc_insertion_point(class_scope:google.cloud.vertexai.v1.SearchEntryPoint) - private static final com.google.cloud.vertexai.api.SearchEntryPoint DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.cloud.vertexai.v1.Segment) + private static final com.google.cloud.vertexai.api.Segment DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.vertexai.api.SearchEntryPoint(); + DEFAULT_INSTANCE = new com.google.cloud.vertexai.api.Segment(); } - public static com.google.cloud.vertexai.api.SearchEntryPoint getDefaultInstance() { + public static com.google.cloud.vertexai.api.Segment getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public SearchEntryPoint parsePartialFrom( + public Segment parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -715,17 +710,17 @@ public SearchEntryPoint parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.vertexai.api.SearchEntryPoint getDefaultInstanceForType() { + public com.google.cloud.vertexai.api.Segment getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/SearchEntryPointOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/SegmentOrBuilder.java similarity index 55% rename from java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/SearchEntryPointOrBuilder.java rename to java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/SegmentOrBuilder.java index a152bf1239ed..173039e882f3 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/SearchEntryPointOrBuilder.java +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/SegmentOrBuilder.java @@ -19,49 +19,49 @@ // Protobuf Java Version: 3.25.3 package com.google.cloud.vertexai.api; -public interface SearchEntryPointOrBuilder +public interface SegmentOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.vertexai.v1.SearchEntryPoint) + // @@protoc_insertion_point(interface_extends:google.cloud.vertexai.v1.Segment) com.google.protobuf.MessageOrBuilder { /** * * *
-   * Optional. Web content snippet that can be embedded in a web page or an app
-   * webview.
+   * Output only. The index of a Part object within its parent Content object.
    * 
* - * string rendered_content = 1 [(.google.api.field_behavior) = OPTIONAL]; + * int32 part_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The renderedContent. + * @return The partIndex. */ - java.lang.String getRenderedContent(); + int getPartIndex(); + /** * * *
-   * Optional. Web content snippet that can be embedded in a web page or an app
-   * webview.
+   * Output only. Start index in the given Part, measured in bytes. Offset from
+   * the start of the Part, inclusive, starting at zero.
    * 
* - * string rendered_content = 1 [(.google.api.field_behavior) = OPTIONAL]; + * int32 start_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The bytes for renderedContent. + * @return The startIndex. */ - com.google.protobuf.ByteString getRenderedContentBytes(); + int getStartIndex(); /** * * *
-   * Optional. Base64 encoded JSON representing array of <search term, search
-   * url> tuple.
+   * Output only. End index in the given Part, measured in bytes. Offset from
+   * the start of the Part, exclusive, starting at zero.
    * 
* - * bytes sdk_blob = 2 [(.google.api.field_behavior) = OPTIONAL]; + * int32 end_index = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The sdkBlob. + * @return The endIndex. */ - com.google.protobuf.ByteString getSdkBlob(); + int getEndIndex(); } diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ServiceNetworkingProto.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ServiceNetworkingProto.java deleted file mode 100644 index c9de1f304e12..000000000000 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ServiceNetworkingProto.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vertexai/v1/service_networking.proto - -// Protobuf Java Version: 3.25.3 -package com.google.cloud.vertexai.api; - -public final class ServiceNetworkingProto { - private ServiceNetworkingProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vertexai_v1_PrivateServiceConnectConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vertexai_v1_PrivateServiceConnectConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vertexai_v1_PscAutomatedEndpoints_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vertexai_v1_PscAutomatedEndpoints_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n1google/cloud/vertexai/v1/service_netwo" - + "rking.proto\022\030google.cloud.vertexai.v1\032\037g" - + "oogle/api/field_behavior.proto\032\031google/a" - + "pi/resource.proto\"e\n\033PrivateServiceConne" - + "ctConfig\022+\n\036enable_private_service_conne" - + "ct\030\001 \001(\010B\003\340A\002\022\031\n\021project_allowlist\030\002 \003(\t" - + "\"S\n\025PscAutomatedEndpoints\022\022\n\nproject_id\030" - + "\001 \001(\t\022\017\n\007network\030\002 \001(\t\022\025\n\rmatch_address\030" - + "\003 \001(\tB\323\001\n\035com.google.cloud.vertexai.apiB" - + "\026ServiceNetworkingProtoP\001Z>cloud.google." - + "com/go/aiplatform/apiv1/aiplatformpb;aip" - + "latformpb\252\002\032Google.Cloud.AIPlatform.V1\312\002" - + "\032Google\\Cloud\\AIPlatform\\V1\352\002\035Google::Cl" - + "oud::AIPlatform::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - }); - internal_static_google_cloud_vertexai_v1_PrivateServiceConnectConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_vertexai_v1_PrivateServiceConnectConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vertexai_v1_PrivateServiceConnectConfig_descriptor, - new java.lang.String[] { - "EnablePrivateServiceConnect", "ProjectAllowlist", - }); - internal_static_google_cloud_vertexai_v1_PscAutomatedEndpoints_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_vertexai_v1_PscAutomatedEndpoints_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vertexai_v1_PscAutomatedEndpoints_descriptor, - new java.lang.String[] { - "ProjectId", "Network", "MatchAddress", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ToolConfig.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ToolConfig.java deleted file mode 100644 index 644a235bd9c0..000000000000 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ToolConfig.java +++ /dev/null @@ -1,755 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vertexai/v1/tool.proto - -// Protobuf Java Version: 3.25.3 -package com.google.cloud.vertexai.api; - -/** - * - * - *
- * Tool config. This config is shared for all tools provided in the request.
- * 
- * - * Protobuf type {@code google.cloud.vertexai.v1.ToolConfig} - */ -public final class ToolConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.vertexai.v1.ToolConfig) - ToolConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use ToolConfig.newBuilder() to construct. - private ToolConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ToolConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ToolConfig(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vertexai.api.ToolProto - .internal_static_google_cloud_vertexai_v1_ToolConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.vertexai.api.ToolProto - .internal_static_google_cloud_vertexai_v1_ToolConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.vertexai.api.ToolConfig.class, - com.google.cloud.vertexai.api.ToolConfig.Builder.class); - } - - private int bitField0_; - public static final int FUNCTION_CALLING_CONFIG_FIELD_NUMBER = 1; - private com.google.cloud.vertexai.api.FunctionCallingConfig functionCallingConfig_; - /** - * - * - *
-   * Optional. Function calling config.
-   * 
- * - * - * .google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the functionCallingConfig field is set. - */ - @java.lang.Override - public boolean hasFunctionCallingConfig() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Optional. Function calling config.
-   * 
- * - * - * .google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The functionCallingConfig. - */ - @java.lang.Override - public com.google.cloud.vertexai.api.FunctionCallingConfig getFunctionCallingConfig() { - return functionCallingConfig_ == null - ? com.google.cloud.vertexai.api.FunctionCallingConfig.getDefaultInstance() - : functionCallingConfig_; - } - /** - * - * - *
-   * Optional. Function calling config.
-   * 
- * - * - * .google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.vertexai.api.FunctionCallingConfigOrBuilder - getFunctionCallingConfigOrBuilder() { - return functionCallingConfig_ == null - ? com.google.cloud.vertexai.api.FunctionCallingConfig.getDefaultInstance() - : functionCallingConfig_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getFunctionCallingConfig()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFunctionCallingConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.vertexai.api.ToolConfig)) { - return super.equals(obj); - } - com.google.cloud.vertexai.api.ToolConfig other = (com.google.cloud.vertexai.api.ToolConfig) obj; - - if (hasFunctionCallingConfig() != other.hasFunctionCallingConfig()) return false; - if (hasFunctionCallingConfig()) { - if (!getFunctionCallingConfig().equals(other.getFunctionCallingConfig())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasFunctionCallingConfig()) { - hash = (37 * hash) + FUNCTION_CALLING_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getFunctionCallingConfig().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.vertexai.api.ToolConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.vertexai.api.ToolConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.vertexai.api.ToolConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.vertexai.api.ToolConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.vertexai.api.ToolConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.vertexai.api.ToolConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.vertexai.api.ToolConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.vertexai.api.ToolConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.vertexai.api.ToolConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.vertexai.api.ToolConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.vertexai.api.ToolConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.vertexai.api.ToolConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.vertexai.api.ToolConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Tool config. This config is shared for all tools provided in the request.
-   * 
- * - * Protobuf type {@code google.cloud.vertexai.v1.ToolConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.vertexai.v1.ToolConfig) - com.google.cloud.vertexai.api.ToolConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vertexai.api.ToolProto - .internal_static_google_cloud_vertexai_v1_ToolConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.vertexai.api.ToolProto - .internal_static_google_cloud_vertexai_v1_ToolConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.vertexai.api.ToolConfig.class, - com.google.cloud.vertexai.api.ToolConfig.Builder.class); - } - - // Construct using com.google.cloud.vertexai.api.ToolConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getFunctionCallingConfigFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - functionCallingConfig_ = null; - if (functionCallingConfigBuilder_ != null) { - functionCallingConfigBuilder_.dispose(); - functionCallingConfigBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vertexai.api.ToolProto - .internal_static_google_cloud_vertexai_v1_ToolConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.vertexai.api.ToolConfig getDefaultInstanceForType() { - return com.google.cloud.vertexai.api.ToolConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.vertexai.api.ToolConfig build() { - com.google.cloud.vertexai.api.ToolConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.vertexai.api.ToolConfig buildPartial() { - com.google.cloud.vertexai.api.ToolConfig result = - new com.google.cloud.vertexai.api.ToolConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.vertexai.api.ToolConfig result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.functionCallingConfig_ = - functionCallingConfigBuilder_ == null - ? functionCallingConfig_ - : functionCallingConfigBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.vertexai.api.ToolConfig) { - return mergeFrom((com.google.cloud.vertexai.api.ToolConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.vertexai.api.ToolConfig other) { - if (other == com.google.cloud.vertexai.api.ToolConfig.getDefaultInstance()) return this; - if (other.hasFunctionCallingConfig()) { - mergeFunctionCallingConfig(other.getFunctionCallingConfig()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage( - getFunctionCallingConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.cloud.vertexai.api.FunctionCallingConfig functionCallingConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vertexai.api.FunctionCallingConfig, - com.google.cloud.vertexai.api.FunctionCallingConfig.Builder, - com.google.cloud.vertexai.api.FunctionCallingConfigOrBuilder> - functionCallingConfigBuilder_; - /** - * - * - *
-     * Optional. Function calling config.
-     * 
- * - * - * .google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the functionCallingConfig field is set. - */ - public boolean hasFunctionCallingConfig() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * Optional. Function calling config.
-     * 
- * - * - * .google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The functionCallingConfig. - */ - public com.google.cloud.vertexai.api.FunctionCallingConfig getFunctionCallingConfig() { - if (functionCallingConfigBuilder_ == null) { - return functionCallingConfig_ == null - ? com.google.cloud.vertexai.api.FunctionCallingConfig.getDefaultInstance() - : functionCallingConfig_; - } else { - return functionCallingConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. Function calling config.
-     * 
- * - * - * .google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setFunctionCallingConfig( - com.google.cloud.vertexai.api.FunctionCallingConfig value) { - if (functionCallingConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - functionCallingConfig_ = value; - } else { - functionCallingConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Function calling config.
-     * 
- * - * - * .google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setFunctionCallingConfig( - com.google.cloud.vertexai.api.FunctionCallingConfig.Builder builderForValue) { - if (functionCallingConfigBuilder_ == null) { - functionCallingConfig_ = builderForValue.build(); - } else { - functionCallingConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Function calling config.
-     * 
- * - * - * .google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeFunctionCallingConfig( - com.google.cloud.vertexai.api.FunctionCallingConfig value) { - if (functionCallingConfigBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && functionCallingConfig_ != null - && functionCallingConfig_ - != com.google.cloud.vertexai.api.FunctionCallingConfig.getDefaultInstance()) { - getFunctionCallingConfigBuilder().mergeFrom(value); - } else { - functionCallingConfig_ = value; - } - } else { - functionCallingConfigBuilder_.mergeFrom(value); - } - if (functionCallingConfig_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Optional. Function calling config.
-     * 
- * - * - * .google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearFunctionCallingConfig() { - bitField0_ = (bitField0_ & ~0x00000001); - functionCallingConfig_ = null; - if (functionCallingConfigBuilder_ != null) { - functionCallingConfigBuilder_.dispose(); - functionCallingConfigBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Function calling config.
-     * 
- * - * - * .google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.vertexai.api.FunctionCallingConfig.Builder - getFunctionCallingConfigBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getFunctionCallingConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Function calling config.
-     * 
- * - * - * .google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.vertexai.api.FunctionCallingConfigOrBuilder - getFunctionCallingConfigOrBuilder() { - if (functionCallingConfigBuilder_ != null) { - return functionCallingConfigBuilder_.getMessageOrBuilder(); - } else { - return functionCallingConfig_ == null - ? com.google.cloud.vertexai.api.FunctionCallingConfig.getDefaultInstance() - : functionCallingConfig_; - } - } - /** - * - * - *
-     * Optional. Function calling config.
-     * 
- * - * - * .google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vertexai.api.FunctionCallingConfig, - com.google.cloud.vertexai.api.FunctionCallingConfig.Builder, - com.google.cloud.vertexai.api.FunctionCallingConfigOrBuilder> - getFunctionCallingConfigFieldBuilder() { - if (functionCallingConfigBuilder_ == null) { - functionCallingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vertexai.api.FunctionCallingConfig, - com.google.cloud.vertexai.api.FunctionCallingConfig.Builder, - com.google.cloud.vertexai.api.FunctionCallingConfigOrBuilder>( - getFunctionCallingConfig(), getParentForChildren(), isClean()); - functionCallingConfig_ = null; - } - return functionCallingConfigBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.vertexai.v1.ToolConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.vertexai.v1.ToolConfig) - private static final com.google.cloud.vertexai.api.ToolConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.vertexai.api.ToolConfig(); - } - - public static com.google.cloud.vertexai.api.ToolConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ToolConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.vertexai.api.ToolConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ToolConfigOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ToolConfigOrBuilder.java deleted file mode 100644 index 71bf48b0f7ac..000000000000 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ToolConfigOrBuilder.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vertexai/v1/tool.proto - -// Protobuf Java Version: 3.25.3 -package com.google.cloud.vertexai.api; - -public interface ToolConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vertexai.v1.ToolConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. Function calling config.
-   * 
- * - * - * .google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the functionCallingConfig field is set. - */ - boolean hasFunctionCallingConfig(); - /** - * - * - *
-   * Optional. Function calling config.
-   * 
- * - * - * .google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The functionCallingConfig. - */ - com.google.cloud.vertexai.api.FunctionCallingConfig getFunctionCallingConfig(); - /** - * - * - *
-   * Optional. Function calling config.
-   * 
- * - * - * .google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.vertexai.api.FunctionCallingConfigOrBuilder getFunctionCallingConfigOrBuilder(); -} diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ToolProto.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ToolProto.java index c977e34d9fe9..293b2d585de2 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ToolProto.java +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ToolProto.java @@ -56,14 +56,6 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_vertexai_v1_GoogleSearchRetrieval_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_vertexai_v1_GoogleSearchRetrieval_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vertexai_v1_ToolConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vertexai_v1_ToolConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vertexai_v1_FunctionCallingConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vertexai_v1_FunctionCallingConfig_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -95,20 +87,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\002 \001(\0132(.google.cloud.vertexai.v1.VertexA" + "ISearchH\000\022 \n\023disable_attribution\030\003 \001(\010B\003" + "\340A\001B\010\n\006source\"(\n\016VertexAISearch\022\026\n\tdatas" - + "tore\030\001 \001(\tB\003\340A\002\"\027\n\025GoogleSearchRetrieval" - + "\"c\n\nToolConfig\022U\n\027function_calling_confi" - + "g\030\001 \001(\0132/.google.cloud.vertexai.v1.Funct" - + "ionCallingConfigB\003\340A\001\"\300\001\n\025FunctionCallin" - + "gConfig\022G\n\004mode\030\001 \001(\01624.google.cloud.ver" - + "texai.v1.FunctionCallingConfig.ModeB\003\340A\001" - + "\022#\n\026allowed_function_names\030\002 \003(\tB\003\340A\001\"9\n" - + "\004Mode\022\024\n\020MODE_UNSPECIFIED\020\000\022\010\n\004AUTO\020\001\022\007\n" - + "\003ANY\020\002\022\010\n\004NONE\020\003B\306\001\n\035com.google.cloud.ve" - + "rtexai.apiB\tToolProtoP\001Z>cloud.google.co" - + "m/go/aiplatform/apiv1/aiplatformpb;aipla" - + "tformpb\252\002\032Google.Cloud.AIPlatform.V1\312\002\032G" - + "oogle\\Cloud\\AIPlatform\\V1\352\002\035Google::Clou" - + "d::AIPlatform::V1b\006proto3" + + "tore\030\001 \001(\tB\003\340A\002\"9\n\025GoogleSearchRetrieval" + + "\022 \n\023disable_attribution\030\001 \001(\010B\003\340A\001B\306\001\n\035c" + + "om.google.cloud.vertexai.apiB\tToolProtoP" + + "\001Z>cloud.google.com/go/aiplatform/apiv1/" + + "aiplatformpb;aiplatformpb\252\002\032Google.Cloud" + + ".AIPlatform.V1\312\002\032Google\\Cloud\\AIPlatform" + + "\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006pro" + + "to3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -172,22 +158,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_vertexai_v1_GoogleSearchRetrieval_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vertexai_v1_GoogleSearchRetrieval_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_vertexai_v1_ToolConfig_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_vertexai_v1_ToolConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vertexai_v1_ToolConfig_descriptor, - new java.lang.String[] { - "FunctionCallingConfig", - }); - internal_static_google_cloud_vertexai_v1_FunctionCallingConfig_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_vertexai_v1_FunctionCallingConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vertexai_v1_FunctionCallingConfig_descriptor, new java.lang.String[] { - "Mode", "AllowedFunctionNames", + "DisableAttribution", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/accelerator_type.proto b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/accelerator_type.proto index 73faab61141a..716d8ea6a98d 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/accelerator_type.proto +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/accelerator_type.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -64,7 +64,4 @@ enum AcceleratorType { // TPU v4. TPU_V4_POD = 10; - - // TPU v5. - TPU_V5_LITEPOD = 12; } diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/content.proto b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/content.proto index 4e0eddd4fa46..f7bdb7f30dd7 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/content.proto +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/content.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -17,7 +17,6 @@ syntax = "proto3"; package google.cloud.vertexai.v1; import "google/api/field_behavior.proto"; -import "google/cloud/vertexai/v1/openapi.proto"; import "google/cloud/vertexai/v1/tool.proto"; import "google/protobuf/duration.proto"; import "google/type/date.proto"; @@ -169,15 +168,6 @@ message GenerationConfig { // otherwise the behavior is undefined. // This is a preview feature. string response_mime_type = 13 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The `Schema` object allows the definition of input and output - // data types. These types can be objects, but also primitives and arrays. - // Represents a select subset of an [OpenAPI 3.0 schema - // object](https://spec.openapis.org/oas/v3.0.3#schema). - // If set, a compatible response_mime_type must also be set. - // Compatible mimetypes: - // `application/json`: Schema for JSON response. - optional Schema response_schema = 16 [(google.api.field_behavior) = OPTIONAL]; } // Safety settings. @@ -378,24 +368,54 @@ message Candidate { [(google.api.field_behavior) = OUTPUT_ONLY]; } +// Segment of the content. +message Segment { + // Output only. The index of a Part object within its parent Content object. + int32 part_index = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Start index in the given Part, measured in bytes. Offset from + // the start of the Part, inclusive, starting at zero. + int32 start_index = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. End index in the given Part, measured in bytes. Offset from + // the start of the Part, exclusive, starting at zero. + int32 end_index = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Grounding attribution. +message GroundingAttribution { + // Attribution from the web. + message Web { + // Output only. URI reference of the attribution. + string uri = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Title of the attribution. + string title = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + oneof reference { + // Optional. Attribution from the web. + Web web = 3 [(google.api.field_behavior) = OPTIONAL]; + } + + // Output only. Segment of the content this attribution belongs to. + Segment segment = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Output only. Confidence score of the attribution. Ranges from 0 + // to 1. 1 is the most confident. + optional float confidence_score = 2 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = OUTPUT_ONLY + ]; +} + // Metadata returned to client when grounding is enabled. message GroundingMetadata { // Optional. Web search queries for the following-up web search. repeated string web_search_queries = 1 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Google search entry for the following-up web searches. - optional SearchEntryPoint search_entry_point = 4 + // Optional. List of grounding attributions. + repeated GroundingAttribution grounding_attributions = 2 [(google.api.field_behavior) = OPTIONAL]; } - -// Google search entry point. -message SearchEntryPoint { - // Optional. Web content snippet that can be embedded in a web page or an app - // webview. - string rendered_content = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Base64 encoded JSON representing array of tuple. - bytes sdk_blob = 2 [(google.api.field_behavior) = OPTIONAL]; -} diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/encryption_spec.proto b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/encryption_spec.proto index 4df41173b2c8..68dbf3b1bc6d 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/encryption_spec.proto +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/encryption_spec.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/endpoint.proto b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/endpoint.proto index 943b37396437..e7a0597eca13 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/endpoint.proto +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/endpoint.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,7 +22,6 @@ import "google/cloud/vertexai/v1/encryption_spec.proto"; import "google/cloud/vertexai/v1/explanation.proto"; import "google/cloud/vertexai/v1/io.proto"; import "google/cloud/vertexai/v1/machine_resources.proto"; -import "google/cloud/vertexai/v1/service_networking.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; @@ -127,14 +126,6 @@ message Endpoint { // can be set. bool enable_private_service_connect = 17 [deprecated = true]; - // Optional. Configuration for private service connect. - // - // [network][google.cloud.aiplatform.v1.Endpoint.network] and - // [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config] - // are mutually exclusive. - PrivateServiceConnectConfig private_service_connect_config = 21 - [(google.api.field_behavior) = OPTIONAL]; - // Output only. Resource name of the Model Monitoring job associated with this // Endpoint if monitoring is enabled by // [JobService.CreateModelDeploymentMonitoringJob][google.cloud.aiplatform.v1.JobService.CreateModelDeploymentMonitoringJob]. diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/endpoint_service.proto b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/endpoint_service.proto index 7a7ed47e04b2..6894955e26f4 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/endpoint_service.proto +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/endpoint_service.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/explanation.proto b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/explanation.proto index fc648393cf7a..5a4cb09c1f6f 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/explanation.proto +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/explanation.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/explanation_metadata.proto b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/explanation_metadata.proto index b67696632dcd..25a4e9004de5 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/explanation_metadata.proto +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/explanation_metadata.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/io.proto b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/io.proto index 53cd5b924981..055c83a2fe35 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/io.proto +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/io.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/llm_utility_service.proto b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/llm_utility_service.proto index 12c86c0ba9e3..8fc85854fe94 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/llm_utility_service.proto +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/llm_utility_service.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/machine_resources.proto b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/machine_resources.proto index 751a96a952cf..a410c60d9fb1 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/machine_resources.proto +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/machine_resources.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/openapi.proto b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/openapi.proto index 03be784ce8ad..2d2109fdd648 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/openapi.proto +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/openapi.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/operation.proto b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/operation.proto index ee20d6786225..66683c2c9b34 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/operation.proto +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/operation.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/prediction_service.proto b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/prediction_service.proto index bdc2d2458352..97bd9e856726 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/prediction_service.proto +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/prediction_service.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -39,8 +39,7 @@ option ruby_package = "Google::Cloud::AIPlatform::V1"; service PredictionService { option (google.api.default_host) = "aiplatform.googleapis.com"; option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform," - "https://www.googleapis.com/auth/cloud-platform.read-only"; + "https://www.googleapis.com/auth/cloud-platform"; // Perform an online prediction. rpc Predict(PredictRequest) returns (PredictResponse) { @@ -98,10 +97,6 @@ service PredictionService { option (google.api.http) = { post: "/v1/{endpoint=projects/*/locations/*/endpoints/*}:directPredict" body: "*" - additional_bindings { - post: "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:directPredict" - body: "*" - } }; } @@ -112,40 +107,18 @@ service PredictionService { option (google.api.http) = { post: "/v1/{endpoint=projects/*/locations/*/endpoints/*}:directRawPredict" body: "*" - additional_bindings { - post: "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:directRawPredict" - body: "*" - } }; } // Perform a streaming online prediction request to a gRPC model server for // Vertex first-party products and frameworks. rpc StreamDirectPredict(stream StreamDirectPredictRequest) - returns (stream StreamDirectPredictResponse) { - option (google.api.http) = { - post: "/v1/{endpoint=projects/*/locations/*/endpoints/*}:streamDirectPredict" - body: "*" - additional_bindings { - post: "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:streamDirectPredict" - body: "*" - } - }; - } + returns (stream StreamDirectPredictResponse) {} // Perform a streaming online prediction request to a gRPC model server for // custom containers. rpc StreamDirectRawPredict(stream StreamDirectRawPredictRequest) - returns (stream StreamDirectRawPredictResponse) { - option (google.api.http) = { - post: "/v1/{endpoint=projects/*/locations/*/endpoints/*}:streamDirectRawPredict" - body: "*" - additional_bindings { - post: "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:streamDirectRawPredict" - body: "*" - } - }; - } + returns (stream StreamDirectRawPredictResponse) {} // Perform a streaming online prediction request for Vertex first-party // products and frameworks. @@ -689,10 +662,6 @@ message GenerateContentRequest { // knowledge and scope of the model. repeated Tool tools = 6 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Tool config. This config is shared for all tools provided in the - // request. - ToolConfig tool_config = 7 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Per request settings for blocking unsafe content. // Enforced on GenerateContentResponse.candidates. repeated SafetySetting safety_settings = 3 diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/service_networking.proto b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/service_networking.proto deleted file mode 100644 index 0c78d568241e..000000000000 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/service_networking.proto +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright 2024 Google LLC -// -// Licensed under the Apache License, Version 2.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. - -syntax = "proto3"; - -package google.cloud.vertexai.v1; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Cloud.AIPlatform.V1"; -option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; -option java_multiple_files = true; -option java_outer_classname = "ServiceNetworkingProto"; -option java_package = "com.google.cloud.vertexai.api"; -option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; -option ruby_package = "Google::Cloud::AIPlatform::V1"; - -// Represents configuration for private service connect. -message PrivateServiceConnectConfig { - // Required. If true, expose the IndexEndpoint via private service connect. - bool enable_private_service_connect = 1 - [(google.api.field_behavior) = REQUIRED]; - - // A list of Projects from which the forwarding rule will target the service - // attachment. - repeated string project_allowlist = 2; -} - -// PscAutomatedEndpoints defines the output of the forwarding rule -// automatically created by each PscAutomationConfig. -message PscAutomatedEndpoints { - // Corresponding project_id in pscAutomationConfigs - string project_id = 1; - - // Corresponding network in pscAutomationConfigs. - string network = 2; - - // Ip Address created by the automated forwarding rule. - string match_address = 3; -} diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/tool.proto b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/tool.proto index ebe5d40dd3e3..d0e7466e981e 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/tool.proto +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/tool.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -121,7 +121,6 @@ message FunctionResponse { // Defines a retrieval tool that model can call to access external knowledge. message Retrieval { - // The source of the retrieval. oneof source { // Set to use data source powered by Vertex AI Search. VertexAISearch vertex_ai_search = 2; @@ -143,43 +142,9 @@ message VertexAISearch { } // Tool to retrieve public web data for grounding, powered by Google. -message GoogleSearchRetrieval {} - -// Tool config. This config is shared for all tools provided in the request. -message ToolConfig { - // Optional. Function calling config. - FunctionCallingConfig function_calling_config = 1 - [(google.api.field_behavior) = OPTIONAL]; -} - -// Function calling config. -message FunctionCallingConfig { - // Function calling mode. - enum Mode { - // Unspecified function calling mode. This value should not be used. - MODE_UNSPECIFIED = 0; - - // Default model behavior, model decides to predict either a function call - // or a natural language repspose. - AUTO = 1; - - // Model is constrained to always predicting a function call only. - // If "allowed_function_names" are set, the predicted function call will be - // limited to any one of "allowed_function_names", else the predicted - // function call will be any one of the provided "function_declarations". - ANY = 2; - - // Model will not predict any function call. Model behavior is same as when - // not passing any function declarations. - NONE = 3; - } - - // Optional. Function calling mode. - Mode mode = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Function names to call. Only set when the Mode is ANY. Function - // names should match [FunctionDeclaration.name]. With mode set to ANY, model - // will predict a function call from the set of function names provided. - repeated string allowed_function_names = 2 - [(google.api.field_behavior) = OPTIONAL]; +message GoogleSearchRetrieval { + // Optional. Disable using the result from this tool in detecting grounding + // attribution. This does not affect how the result is given to the model for + // generation. + bool disable_attribution = 1 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/types.proto b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/types.proto index 43fa83ae78f1..fc5f3b8c48df 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/types.proto +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/types.proto @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. From 1e380515092c1a1562562f6e864b196fb9484981 Mon Sep 17 00:00:00 2001 From: "copybara-service[bot]" <56741989+copybara-service[bot]@users.noreply.github.com> Date: Mon, 10 Jun 2024 21:50:21 +0000 Subject: [PATCH 06/33] chore: [vertexai] refactor GenerativeModelTest to follow Java best practice (#10949) PiperOrigin-RevId: 641955189 Co-authored-by: Jaycee Li --- .../vertexai/api/PredictionServiceClient.java | 3 + .../api/stub/EndpointServiceStubSettings.java | 18 - .../api/stub/GrpcLlmUtilityServiceStub.java | 14 +- .../api/stub/GrpcPredictionServiceStub.java | 12 + .../api/stub/HttpJsonEndpointServiceStub.java | 45 + .../stub/HttpJsonLlmUtilityServiceStub.java | 71 +- .../stub/HttpJsonPredictionServiceStub.java | 4 + .../stub/LlmUtilityServiceStubSettings.java | 18 - .../stub/PredictionServiceStubSettings.java | 23 +- .../reflect-config.json | 121 +- .../EndpointServiceClientHttpJsonTest.java | 9 + .../api/EndpointServiceClientTest.java | 7 + .../api/LlmUtilityServiceClientTest.java | 5 - .../api/PredictionServiceClientTest.java | 2 + .../generativeai/GenerativeModelTest.java | 294 +-- .../cloud/vertexai/api/AcceleratorType.java | 22 + .../vertexai/api/AcceleratorTypeProto.java | 15 +- .../cloud/vertexai/api/ContentProto.java | 201 +- .../google/cloud/vertexai/api/Endpoint.java | 400 ++- .../cloud/vertexai/api/EndpointOrBuilder.java | 56 +- .../cloud/vertexai/api/EndpointProto.java | 127 +- .../vertexai/api/FunctionCallingConfig.java | 1119 +++++++++ .../api/FunctionCallingConfigOrBuilder.java | 118 + .../vertexai/api/GenerateContentRequest.java | 348 ++- .../api/GenerateContentRequestOrBuilder.java | 44 + .../cloud/vertexai/api/GenerationConfig.java | 375 ++- .../api/GenerationConfigOrBuilder.java | 59 + .../vertexai/api/GoogleSearchRetrieval.java | 111 - .../api/GoogleSearchRetrievalOrBuilder.java | 18 +- .../vertexai/api/GroundingAttribution.java | 2138 ----------------- .../api/GroundingAttributionOrBuilder.java | 141 -- .../cloud/vertexai/api/GroundingMetadata.java | 554 ++--- .../api/GroundingMetadataOrBuilder.java | 44 +- .../vertexai/api/PredictionServiceProto.java | 219 +- .../api/PrivateServiceConnectConfig.java | 831 +++++++ .../PrivateServiceConnectConfigOrBuilder.java | 94 + .../vertexai/api/PscAutomatedEndpoints.java | 991 ++++++++ .../api/PscAutomatedEndpointsOrBuilder.java | 101 + .../{Segment.java => SearchEntryPoint.java} | 427 ++-- ...er.java => SearchEntryPointOrBuilder.java} | 34 +- .../vertexai/api/ServiceNetworkingProto.java | 96 + .../google/cloud/vertexai/api/ToolConfig.java | 755 ++++++ .../vertexai/api/ToolConfigOrBuilder.java | 67 + .../google/cloud/vertexai/api/ToolProto.java | 46 +- .../cloud/vertexai/v1/accelerator_type.proto | 5 +- .../google/cloud/vertexai/v1/content.proto | 68 +- .../cloud/vertexai/v1/encryption_spec.proto | 2 +- .../google/cloud/vertexai/v1/endpoint.proto | 11 +- .../cloud/vertexai/v1/endpoint_service.proto | 2 +- .../cloud/vertexai/v1/explanation.proto | 2 +- .../vertexai/v1/explanation_metadata.proto | 2 +- .../proto/google/cloud/vertexai/v1/io.proto | 2 +- .../vertexai/v1/llm_utility_service.proto | 2 +- .../cloud/vertexai/v1/machine_resources.proto | 2 +- .../google/cloud/vertexai/v1/openapi.proto | 2 +- .../google/cloud/vertexai/v1/operation.proto | 2 +- .../vertexai/v1/prediction_service.proto | 39 +- .../vertexai/v1/service_networking.proto | 52 + .../proto/google/cloud/vertexai/v1/tool.proto | 47 +- .../google/cloud/vertexai/v1/types.proto | 2 +- 60 files changed, 6645 insertions(+), 3794 deletions(-) create mode 100644 java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/FunctionCallingConfig.java create mode 100644 java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/FunctionCallingConfigOrBuilder.java delete mode 100644 java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GroundingAttribution.java delete mode 100644 java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GroundingAttributionOrBuilder.java create mode 100644 java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PrivateServiceConnectConfig.java create mode 100644 java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PrivateServiceConnectConfigOrBuilder.java create mode 100644 java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PscAutomatedEndpoints.java create mode 100644 java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PscAutomatedEndpointsOrBuilder.java rename java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/{Segment.java => SearchEntryPoint.java} (53%) rename java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/{SegmentOrBuilder.java => SearchEntryPointOrBuilder.java} (55%) create mode 100644 java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ServiceNetworkingProto.java create mode 100644 java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ToolConfig.java create mode 100644 java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ToolConfigOrBuilder.java create mode 100644 java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/service_networking.proto diff --git a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/PredictionServiceClient.java b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/PredictionServiceClient.java index 76a669f4892d..b8e46ee1d9fa 100644 --- a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/PredictionServiceClient.java +++ b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/PredictionServiceClient.java @@ -1410,6 +1410,7 @@ public final GenerateContentResponse generateContent(String model, List * .addAllContents(new ArrayList()) * .setSystemInstruction(Content.newBuilder().build()) * .addAllTools(new ArrayList()) + * .setToolConfig(ToolConfig.newBuilder().build()) * .addAllSafetySettings(new ArrayList()) * .setGenerationConfig(GenerationConfig.newBuilder().build()) * .build(); @@ -1443,6 +1444,7 @@ public final GenerateContentResponse generateContent(GenerateContentRequest requ * .addAllContents(new ArrayList()) * .setSystemInstruction(Content.newBuilder().build()) * .addAllTools(new ArrayList()) + * .setToolConfig(ToolConfig.newBuilder().build()) * .addAllSafetySettings(new ArrayList()) * .setGenerationConfig(GenerationConfig.newBuilder().build()) * .build(); @@ -1477,6 +1479,7 @@ public final GenerateContentResponse generateContent(GenerateContentRequest requ * .addAllContents(new ArrayList()) * .setSystemInstruction(Content.newBuilder().build()) * .addAllTools(new ArrayList()) + * .setToolConfig(ToolConfig.newBuilder().build()) * .addAllSafetySettings(new ArrayList()) * .setGenerationConfig(GenerationConfig.newBuilder().build()) * .build(); diff --git a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/EndpointServiceStubSettings.java b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/EndpointServiceStubSettings.java index 2653f8b141f4..f0c144b09d7b 100644 --- a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/EndpointServiceStubSettings.java +++ b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/EndpointServiceStubSettings.java @@ -390,15 +390,6 @@ public EndpointServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } - /** Returns the endpoint set by the user or the the service's default endpoint. */ - @Override - public String getEndpoint() { - if (super.getEndpoint() != null) { - return super.getEndpoint(); - } - return getDefaultEndpoint(); - } - /** Returns the default service name. */ @Override public String getServiceName() { @@ -998,15 +989,6 @@ public UnaryCallSettings.Builder getIamPolicySettin return testIamPermissionsSettings; } - /** Returns the endpoint set by the user or the the service's default endpoint. */ - @Override - public String getEndpoint() { - if (super.getEndpoint() != null) { - return super.getEndpoint(); - } - return getDefaultEndpoint(); - } - @Override public EndpointServiceStubSettings build() throws IOException { return new EndpointServiceStubSettings(this); diff --git a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/GrpcLlmUtilityServiceStub.java b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/GrpcLlmUtilityServiceStub.java index 21e7eef6e7df..399dc602636e 100644 --- a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/GrpcLlmUtilityServiceStub.java +++ b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/GrpcLlmUtilityServiceStub.java @@ -54,14 +54,14 @@ @Generated("by gapic-generator-java") public class GrpcLlmUtilityServiceStub extends LlmUtilityServiceStub { private static final MethodDescriptor - // TODO(b/317255628): switch back to the google.cloud.aiplatform.v1.LlmUtilityServiceClient countTokensMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.aiplatform.v1beta1.PredictionService/CountTokens") - .setRequestMarshaller(ProtoUtils.marshaller(CountTokensRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(CountTokensResponse.getDefaultInstance())) - .build(); + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.aiplatform.v1.LlmUtilityService/CountTokens") + .setRequestMarshaller(ProtoUtils.marshaller(CountTokensRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(CountTokensResponse.getDefaultInstance())) + .build(); private static final MethodDescriptor computeTokensMethodDescriptor = diff --git a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/GrpcPredictionServiceStub.java b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/GrpcPredictionServiceStub.java index 7b0843c0f1ae..ee048918e7ed 100644 --- a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/GrpcPredictionServiceStub.java +++ b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/GrpcPredictionServiceStub.java @@ -385,12 +385,24 @@ protected GrpcPredictionServiceStub( streamDirectPredictTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(streamDirectPredictMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("endpoint", String.valueOf(request.getEndpoint())); + return builder.build(); + }) .build(); GrpcCallSettings streamDirectRawPredictTransportSettings = GrpcCallSettings .newBuilder() .setMethodDescriptor(streamDirectRawPredictMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("endpoint", String.valueOf(request.getEndpoint())); + return builder.build(); + }) .build(); GrpcCallSettings streamingPredictTransportSettings = diff --git a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/HttpJsonEndpointServiceStub.java b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/HttpJsonEndpointServiceStub.java index 3984c86e3db5..73ef272ae5d1 100644 --- a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/HttpJsonEndpointServiceStub.java +++ b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/HttpJsonEndpointServiceStub.java @@ -688,6 +688,16 @@ protected HttpJsonEndpointServiceStub( "google.longrunning.Operations.CancelOperation", HttpRule.newBuilder() .setPost("/ui/{name=projects/*/locations/*/operations/*}:cancel") + .addAdditionalBindings( + HttpRule.newBuilder() + .setPost( + "/ui/{name=projects/*/locations/*/agents/*/operations/*}:cancel") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setPost( + "/ui/{name=projects/*/locations/*/apps/*/operations/*}:cancel") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setPost( @@ -1067,6 +1077,15 @@ protected HttpJsonEndpointServiceStub( "google.longrunning.Operations.DeleteOperation", HttpRule.newBuilder() .setDelete("/ui/{name=projects/*/locations/*/operations/*}") + .addAdditionalBindings( + HttpRule.newBuilder() + .setDelete( + "/ui/{name=projects/*/locations/*/agents/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setDelete("/ui/{name=projects/*/locations/*/apps/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setDelete( @@ -1476,6 +1495,14 @@ protected HttpJsonEndpointServiceStub( "google.longrunning.Operations.GetOperation", HttpRule.newBuilder() .setGet("/ui/{name=projects/*/locations/*/operations/*}") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/ui/{name=projects/*/locations/*/agents/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/ui/{name=projects/*/locations/*/apps/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet("/ui/{name=projects/*/locations/*/datasets/*/operations/*}") @@ -1892,6 +1919,14 @@ protected HttpJsonEndpointServiceStub( "google.longrunning.Operations.ListOperations", HttpRule.newBuilder() .setGet("/ui/{name=projects/*/locations/*}/operations") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/ui/{name=projects/*/locations/*/agents/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/ui/{name=projects/*/locations/*/apps/*}/operations") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet("/ui/{name=projects/*/locations/*/datasets/*}/operations") @@ -2294,6 +2329,16 @@ protected HttpJsonEndpointServiceStub( "google.longrunning.Operations.WaitOperation", HttpRule.newBuilder() .setPost("/ui/{name=projects/*/locations/*/operations/*}:wait") + .addAdditionalBindings( + HttpRule.newBuilder() + .setPost( + "/ui/{name=projects/*/locations/*/agents/*/operations/*}:wait") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setPost( + "/ui/{name=projects/*/locations/*/apps/*/operations/*}:wait") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setPost( diff --git a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/HttpJsonLlmUtilityServiceStub.java b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/HttpJsonLlmUtilityServiceStub.java index 8086891047d0..cc0c77d61174 100644 --- a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/HttpJsonLlmUtilityServiceStub.java +++ b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/HttpJsonLlmUtilityServiceStub.java @@ -63,43 +63,42 @@ public class HttpJsonLlmUtilityServiceStub extends LlmUtilityServiceStub { private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); private static final ApiMethodDescriptor - // TODO(b/317255628): switch back to the google.cloud.aiplatform.v1.LlmUtilityServiceClient countTokensMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.aiplatform.v1beta1.PredictionService/CountTokens") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{endpoint=projects/*/locations/*/endpoints/*}:countTokens", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "endpoint", request.getEndpoint()); - return fields; - }) - .setAdditionalPaths( - "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:countTokens") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearEndpoint().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(CountTokensResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.aiplatform.v1.LlmUtilityService/CountTokens") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{endpoint=projects/*/locations/*/endpoints/*}:countTokens", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "endpoint", request.getEndpoint()); + return fields; + }) + .setAdditionalPaths( + "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:countTokens") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearEndpoint().build(), false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(CountTokensResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); private static final ApiMethodDescriptor computeTokensMethodDescriptor = diff --git a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/HttpJsonPredictionServiceStub.java b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/HttpJsonPredictionServiceStub.java index 338523203985..89de31aedef8 100644 --- a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/HttpJsonPredictionServiceStub.java +++ b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/HttpJsonPredictionServiceStub.java @@ -211,6 +211,8 @@ public class HttpJsonPredictionServiceStub extends PredictionServiceStub { serializer.putPathParam(fields, "endpoint", request.getEndpoint()); return fields; }) + .setAdditionalPaths( + "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:directPredict") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -247,6 +249,8 @@ public class HttpJsonPredictionServiceStub extends PredictionServiceStub { serializer.putPathParam(fields, "endpoint", request.getEndpoint()); return fields; }) + .setAdditionalPaths( + "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:directRawPredict") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); diff --git a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/LlmUtilityServiceStubSettings.java b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/LlmUtilityServiceStubSettings.java index afc0792f076c..3b3aa6e1ede4 100644 --- a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/LlmUtilityServiceStubSettings.java +++ b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/LlmUtilityServiceStubSettings.java @@ -226,15 +226,6 @@ public LlmUtilityServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } - /** Returns the endpoint set by the user or the the service's default endpoint. */ - @Override - public String getEndpoint() { - if (super.getEndpoint() != null) { - return super.getEndpoint(); - } - return getDefaultEndpoint(); - } - /** Returns the default service name. */ @Override public String getServiceName() { @@ -540,15 +531,6 @@ public UnaryCallSettings.Builder getIamPolicySettin return testIamPermissionsSettings; } - /** Returns the endpoint set by the user or the the service's default endpoint. */ - @Override - public String getEndpoint() { - if (super.getEndpoint() != null) { - return super.getEndpoint(); - } - return getDefaultEndpoint(); - } - @Override public LlmUtilityServiceStubSettings build() throws IOException { return new LlmUtilityServiceStubSettings(this); diff --git a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/PredictionServiceStubSettings.java b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/PredictionServiceStubSettings.java index 31d4683d731f..3955805e91a6 100644 --- a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/PredictionServiceStubSettings.java +++ b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/api/stub/PredictionServiceStubSettings.java @@ -125,7 +125,10 @@ public class PredictionServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/cloud-platform.read-only") + .build(); private final UnaryCallSettings predictSettings; private final UnaryCallSettings rawPredictSettings; @@ -328,15 +331,6 @@ public PredictionServiceStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } - /** Returns the endpoint set by the user or the the service's default endpoint. */ - @Override - public String getEndpoint() { - if (super.getEndpoint() != null) { - return super.getEndpoint(); - } - return getDefaultEndpoint(); - } - /** Returns the default service name. */ @Override public String getServiceName() { @@ -806,15 +800,6 @@ public UnaryCallSettings.Builder getIamPolicySettin return testIamPermissionsSettings; } - /** Returns the endpoint set by the user or the the service's default endpoint. */ - @Override - public String getEndpoint() { - if (super.getEndpoint() != null) { - return super.getEndpoint(); - } - return getDefaultEndpoint(); - } - @Override public PredictionServiceStubSettings build() throws IOException { return new PredictionServiceStubSettings(this); diff --git a/java-vertexai/google-cloud-vertexai/src/main/resources/META-INF/native-image/com.google.cloud.vertexai.api/reflect-config.json b/java-vertexai/google-cloud-vertexai/src/main/resources/META-INF/native-image/com.google.cloud.vertexai.api/reflect-config.json index ddf363e467ab..b930b65862ec 100644 --- a/java-vertexai/google-cloud-vertexai/src/main/resources/META-INF/native-image/com.google.cloud.vertexai.api/reflect-config.json +++ b/java-vertexai/google-cloud-vertexai/src/main/resources/META-INF/native-image/com.google.cloud.vertexai.api/reflect-config.json @@ -1610,6 +1610,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.vertexai.api.FunctionCallingConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vertexai.api.FunctionCallingConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vertexai.api.FunctionCallingConfig$Mode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.vertexai.api.FunctionDeclaration", "queryAllDeclaredConstructors": true, @@ -1835,42 +1862,6 @@ "allDeclaredClasses": true, "allPublicClasses": true }, - { - "name": "com.google.cloud.vertexai.api.GroundingAttribution", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.vertexai.api.GroundingAttribution$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.vertexai.api.GroundingAttribution$Web", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.vertexai.api.GroundingAttribution$Web$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, { "name": "com.google.cloud.vertexai.api.GroundingMetadata", "queryAllDeclaredConstructors": true, @@ -2240,6 +2231,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.vertexai.api.PrivateServiceConnectConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vertexai.api.PrivateServiceConnectConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vertexai.api.PscAutomatedEndpoints", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vertexai.api.PscAutomatedEndpoints$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.vertexai.api.RawPredictRequest", "queryAllDeclaredConstructors": true, @@ -2403,7 +2430,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vertexai.api.Segment", + "name": "com.google.cloud.vertexai.api.SearchEntryPoint", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2412,7 +2439,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.vertexai.api.Segment$Builder", + "name": "com.google.cloud.vertexai.api.SearchEntryPoint$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2717,6 +2744,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.vertexai.api.ToolConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.vertexai.api.ToolConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.vertexai.api.Type", "queryAllDeclaredConstructors": true, diff --git a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/api/EndpointServiceClientHttpJsonTest.java b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/api/EndpointServiceClientHttpJsonTest.java index 8ab6fcb508c7..d1417db82980 100644 --- a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/api/EndpointServiceClientHttpJsonTest.java +++ b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/api/EndpointServiceClientHttpJsonTest.java @@ -116,6 +116,7 @@ public void createEndpointTest() throws Exception { .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setNetwork("network1843485230") .setEnablePrivateServiceConnect(true) + .setPrivateServiceConnectConfig(PrivateServiceConnectConfig.newBuilder().build()) .setModelDeploymentMonitoringJob("modelDeploymentMonitoringJob-1178077657") .setPredictRequestResponseLoggingConfig( PredictRequestResponseLoggingConfig.newBuilder().build()) @@ -183,6 +184,7 @@ public void createEndpointTest2() throws Exception { .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setNetwork("network1843485230") .setEnablePrivateServiceConnect(true) + .setPrivateServiceConnectConfig(PrivateServiceConnectConfig.newBuilder().build()) .setModelDeploymentMonitoringJob("modelDeploymentMonitoringJob-1178077657") .setPredictRequestResponseLoggingConfig( PredictRequestResponseLoggingConfig.newBuilder().build()) @@ -250,6 +252,7 @@ public void createEndpointTest3() throws Exception { .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setNetwork("network1843485230") .setEnablePrivateServiceConnect(true) + .setPrivateServiceConnectConfig(PrivateServiceConnectConfig.newBuilder().build()) .setModelDeploymentMonitoringJob("modelDeploymentMonitoringJob-1178077657") .setPredictRequestResponseLoggingConfig( PredictRequestResponseLoggingConfig.newBuilder().build()) @@ -319,6 +322,7 @@ public void createEndpointTest4() throws Exception { .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setNetwork("network1843485230") .setEnablePrivateServiceConnect(true) + .setPrivateServiceConnectConfig(PrivateServiceConnectConfig.newBuilder().build()) .setModelDeploymentMonitoringJob("modelDeploymentMonitoringJob-1178077657") .setPredictRequestResponseLoggingConfig( PredictRequestResponseLoggingConfig.newBuilder().build()) @@ -388,6 +392,7 @@ public void getEndpointTest() throws Exception { .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setNetwork("network1843485230") .setEnablePrivateServiceConnect(true) + .setPrivateServiceConnectConfig(PrivateServiceConnectConfig.newBuilder().build()) .setModelDeploymentMonitoringJob("modelDeploymentMonitoringJob-1178077657") .setPredictRequestResponseLoggingConfig( PredictRequestResponseLoggingConfig.newBuilder().build()) @@ -450,6 +455,7 @@ public void getEndpointTest2() throws Exception { .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setNetwork("network1843485230") .setEnablePrivateServiceConnect(true) + .setPrivateServiceConnectConfig(PrivateServiceConnectConfig.newBuilder().build()) .setModelDeploymentMonitoringJob("modelDeploymentMonitoringJob-1178077657") .setPredictRequestResponseLoggingConfig( PredictRequestResponseLoggingConfig.newBuilder().build()) @@ -610,6 +616,7 @@ public void updateEndpointTest() throws Exception { .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setNetwork("network1843485230") .setEnablePrivateServiceConnect(true) + .setPrivateServiceConnectConfig(PrivateServiceConnectConfig.newBuilder().build()) .setModelDeploymentMonitoringJob("modelDeploymentMonitoringJob-1178077657") .setPredictRequestResponseLoggingConfig( PredictRequestResponseLoggingConfig.newBuilder().build()) @@ -632,6 +639,7 @@ public void updateEndpointTest() throws Exception { .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setNetwork("network1843485230") .setEnablePrivateServiceConnect(true) + .setPrivateServiceConnectConfig(PrivateServiceConnectConfig.newBuilder().build()) .setModelDeploymentMonitoringJob("modelDeploymentMonitoringJob-1178077657") .setPredictRequestResponseLoggingConfig( PredictRequestResponseLoggingConfig.newBuilder().build()) @@ -681,6 +689,7 @@ public void updateEndpointExceptionTest() throws Exception { .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setNetwork("network1843485230") .setEnablePrivateServiceConnect(true) + .setPrivateServiceConnectConfig(PrivateServiceConnectConfig.newBuilder().build()) .setModelDeploymentMonitoringJob("modelDeploymentMonitoringJob-1178077657") .setPredictRequestResponseLoggingConfig( PredictRequestResponseLoggingConfig.newBuilder().build()) diff --git a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/api/EndpointServiceClientTest.java b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/api/EndpointServiceClientTest.java index f8c12cf56a51..64cf33af311f 100644 --- a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/api/EndpointServiceClientTest.java +++ b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/api/EndpointServiceClientTest.java @@ -125,6 +125,7 @@ public void createEndpointTest() throws Exception { .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setNetwork("network1843485230") .setEnablePrivateServiceConnect(true) + .setPrivateServiceConnectConfig(PrivateServiceConnectConfig.newBuilder().build()) .setModelDeploymentMonitoringJob("modelDeploymentMonitoringJob-1178077657") .setPredictRequestResponseLoggingConfig( PredictRequestResponseLoggingConfig.newBuilder().build()) @@ -190,6 +191,7 @@ public void createEndpointTest2() throws Exception { .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setNetwork("network1843485230") .setEnablePrivateServiceConnect(true) + .setPrivateServiceConnectConfig(PrivateServiceConnectConfig.newBuilder().build()) .setModelDeploymentMonitoringJob("modelDeploymentMonitoringJob-1178077657") .setPredictRequestResponseLoggingConfig( PredictRequestResponseLoggingConfig.newBuilder().build()) @@ -255,6 +257,7 @@ public void createEndpointTest3() throws Exception { .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setNetwork("network1843485230") .setEnablePrivateServiceConnect(true) + .setPrivateServiceConnectConfig(PrivateServiceConnectConfig.newBuilder().build()) .setModelDeploymentMonitoringJob("modelDeploymentMonitoringJob-1178077657") .setPredictRequestResponseLoggingConfig( PredictRequestResponseLoggingConfig.newBuilder().build()) @@ -323,6 +326,7 @@ public void createEndpointTest4() throws Exception { .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setNetwork("network1843485230") .setEnablePrivateServiceConnect(true) + .setPrivateServiceConnectConfig(PrivateServiceConnectConfig.newBuilder().build()) .setModelDeploymentMonitoringJob("modelDeploymentMonitoringJob-1178077657") .setPredictRequestResponseLoggingConfig( PredictRequestResponseLoggingConfig.newBuilder().build()) @@ -391,6 +395,7 @@ public void getEndpointTest() throws Exception { .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setNetwork("network1843485230") .setEnablePrivateServiceConnect(true) + .setPrivateServiceConnectConfig(PrivateServiceConnectConfig.newBuilder().build()) .setModelDeploymentMonitoringJob("modelDeploymentMonitoringJob-1178077657") .setPredictRequestResponseLoggingConfig( PredictRequestResponseLoggingConfig.newBuilder().build()) @@ -447,6 +452,7 @@ public void getEndpointTest2() throws Exception { .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setNetwork("network1843485230") .setEnablePrivateServiceConnect(true) + .setPrivateServiceConnectConfig(PrivateServiceConnectConfig.newBuilder().build()) .setModelDeploymentMonitoringJob("modelDeploymentMonitoringJob-1178077657") .setPredictRequestResponseLoggingConfig( PredictRequestResponseLoggingConfig.newBuilder().build()) @@ -589,6 +595,7 @@ public void updateEndpointTest() throws Exception { .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setNetwork("network1843485230") .setEnablePrivateServiceConnect(true) + .setPrivateServiceConnectConfig(PrivateServiceConnectConfig.newBuilder().build()) .setModelDeploymentMonitoringJob("modelDeploymentMonitoringJob-1178077657") .setPredictRequestResponseLoggingConfig( PredictRequestResponseLoggingConfig.newBuilder().build()) diff --git a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/api/LlmUtilityServiceClientTest.java b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/api/LlmUtilityServiceClientTest.java index 2290b09c0481..7472c6ddf8ff 100644 --- a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/api/LlmUtilityServiceClientTest.java +++ b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/api/LlmUtilityServiceClientTest.java @@ -56,7 +56,6 @@ import org.junit.Assert; import org.junit.Before; import org.junit.BeforeClass; -import org.junit.Ignore; import org.junit.Test; @Generated("by gapic-generator-java") @@ -102,7 +101,6 @@ public void tearDown() throws Exception { client.close(); } - @Ignore @Test public void countTokensTest() throws Exception { CountTokensResponse expectedResponse = @@ -131,7 +129,6 @@ public void countTokensTest() throws Exception { GaxGrpcProperties.getDefaultApiClientHeaderPattern())); } - @Ignore @Test public void countTokensExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); @@ -148,7 +145,6 @@ public void countTokensExceptionTest() throws Exception { } } - @Ignore @Test public void countTokensTest2() throws Exception { CountTokensResponse expectedResponse = @@ -176,7 +172,6 @@ public void countTokensTest2() throws Exception { GaxGrpcProperties.getDefaultApiClientHeaderPattern())); } - @Ignore @Test public void countTokensExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); diff --git a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/api/PredictionServiceClientTest.java b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/api/PredictionServiceClientTest.java index 45a4e2e1ef08..b2233ec85938 100644 --- a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/api/PredictionServiceClientTest.java +++ b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/api/PredictionServiceClientTest.java @@ -930,6 +930,7 @@ public void streamGenerateContentTest() throws Exception { .addAllContents(new ArrayList()) .setSystemInstruction(Content.newBuilder().build()) .addAllTools(new ArrayList()) + .setToolConfig(ToolConfig.newBuilder().build()) .addAllSafetySettings(new ArrayList()) .setGenerationConfig(GenerationConfig.newBuilder().build()) .build(); @@ -955,6 +956,7 @@ public void streamGenerateContentExceptionTest() throws Exception { .addAllContents(new ArrayList()) .setSystemInstruction(Content.newBuilder().build()) .addAllTools(new ArrayList()) + .setToolConfig(ToolConfig.newBuilder().build()) .addAllSafetySettings(new ArrayList()) .setGenerationConfig(GenerationConfig.newBuilder().build()) .build(); diff --git a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/GenerativeModelTest.java b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/GenerativeModelTest.java index 1df2354b6d96..1be892573fb1 100644 --- a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/GenerativeModelTest.java +++ b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/GenerativeModelTest.java @@ -38,7 +38,6 @@ import com.google.cloud.vertexai.api.GoogleSearchRetrieval; import com.google.cloud.vertexai.api.HarmCategory; import com.google.cloud.vertexai.api.LlmUtilityServiceClient; -import com.google.cloud.vertexai.api.Part; import com.google.cloud.vertexai.api.PredictionServiceClient; import com.google.cloud.vertexai.api.Retrieval; import com.google.cloud.vertexai.api.SafetySetting; @@ -97,10 +96,11 @@ public final class GenerativeModelTest { .build()) .addRequired("location"))) .build(); + private static final Content DEFAULT_SYSTEM_INSTRUCTION = + ContentMaker.fromString( + "You're a helpful assistant that starts all its answers with: \"COOL\""); private static final Tool GOOGLE_SEARCH_TOOL = - Tool.newBuilder() - .setGoogleSearchRetrieval(GoogleSearchRetrieval.newBuilder().setDisableAttribution(false)) - .build(); + Tool.newBuilder().setGoogleSearchRetrieval(GoogleSearchRetrieval.newBuilder()).build(); private static final Tool VERTEX_AI_SEARCH_TOOL = Tool.newBuilder() .setRetrieval( @@ -113,6 +113,7 @@ public final class GenerativeModelTest { .build(); private static final String TEXT = "What is your name?"; + private static final Content CONTENT = ContentMaker.fromString(TEXT); private VertexAI vertexAi; private GenerativeModel model; @@ -140,7 +141,17 @@ public final class GenerativeModelTest { @Before public void setUp() { + // Mock Unary generateContent when(mockPredictionServiceClient.generateContentCallable()).thenReturn(mockUnaryCallable); + when(mockUnaryCallable.call(any(GenerateContentRequest.class))) + .thenReturn(mockGenerateContentResponse); + // Mock stream generateContent + when(mockPredictionServiceClient.streamGenerateContentCallable()) + .thenReturn(mockServerStreamCallable); + when(mockServerStreamCallable.call(any(GenerateContentRequest.class))) + .thenReturn(mockServerStream); + when(mockServerStream.iterator()).thenReturn(mockServerStreamIterator); + // Mock async generateContent when(mockUnaryCallable.futureCall(any(GenerateContentRequest.class))).thenReturn(mockApiFuture); vertexAi = @@ -154,7 +165,7 @@ public void setUp() { } @Test - public void testInstantiateGenerativeModel() { + public void instantiate_hasCorrectFields() { model = new GenerativeModel(MODEL_NAME, vertexAi); assertThat(model.getModelName()).isEqualTo(MODEL_NAME); assertThat(model.getGenerationConfig()).isEqualTo(GenerationConfig.getDefaultInstance()); @@ -163,8 +174,7 @@ public void testInstantiateGenerativeModel() { } @Test - public void - testInstantiateGenerativeModel_withModelNameStartingFromProjects_modelNameIsCorrect() { + public void instantiate_withModelNameStartingFromProjects_hasCorrectFields() { model = new GenerativeModel( "projects/test_project/locations/test_location/publishers/google/models/gemini-pro", @@ -176,7 +186,7 @@ public void testInstantiateGenerativeModel() { } @Test - public void testInstantiateGenerativeModelwithBuilder() { + public void instantiateWithBuilder_hasCorrectFields() { model = new GenerativeModel.Builder().setModelName(MODEL_NAME).setVertexAi(vertexAi).build(); assertThat(model.getModelName()).isEqualTo(MODEL_NAME); assertThat(model.getGenerationConfig()).isEqualTo(GenerationConfig.getDefaultInstance()); @@ -185,7 +195,7 @@ public void testInstantiateGenerativeModelwithBuilder() { } @Test - public void testInstantiateGenerativeModelwithBuilderAllConfigs() { + public void instantiateWithBuilder_withAllConfigs_hasCorrectFields() { model = new GenerativeModel.Builder() .setModelName(MODEL_NAME) @@ -201,7 +211,7 @@ public void testInstantiateGenerativeModelwithBuilderAllConfigs() { } @Test - public void testInstantiateGenerativeModelwithBuilderMissingModelName() { + public void instantiateWithBuilder_missingModelName_throwsIllegalArgumentException() { IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, () -> new GenerativeModel.Builder().build()); assertThat(thrown) @@ -210,7 +220,7 @@ public void testInstantiateGenerativeModelwithBuilderMissingModelName() { } @Test - public void testInstantiateGenerativeModelwithBuilderEmptyModelName() { + public void instantiateWithBuilder_emptyModelName_throwsIllegalArgumentException() { IllegalArgumentException thrown = assertThrows( IllegalArgumentException.class, @@ -224,7 +234,7 @@ public void testInstantiateGenerativeModelwithBuilderEmptyModelName() { } @Test - public void testInstantiateGenerativeModelwithBuilderNullModelName() { + public void instantiateWithBuilder_nullModelName_throwsIllegalArgumentException() { IllegalArgumentException thrown = assertThrows( IllegalArgumentException.class, @@ -238,7 +248,7 @@ public void testInstantiateGenerativeModelwithBuilderNullModelName() { } @Test - public void testInstantiateGenerativeModelwithBuilderMissingVertexAi() { + public void instantiateWithBuilder_missingVertexAi_throwsNullPointerException() { NullPointerException thrown = assertThrows( NullPointerException.class, @@ -249,7 +259,7 @@ public void testInstantiateGenerativeModelwithBuilderMissingVertexAi() { } @Test - public void testCountTokenswithText() throws Exception { + public void countTokens_withText_requestHasCorrectText() throws Exception { model = new GenerativeModel(MODEL_NAME, vertexAi); CountTokensResponse unused = model.countTokens(TEXT); @@ -260,37 +270,31 @@ public void testCountTokenswithText() throws Exception { } @Test - public void testCountTokenswithContent() throws Exception { + public void countTokens_withContent_requestHasCorrectContent() throws Exception { model = new GenerativeModel(MODEL_NAME, vertexAi); - Content content = ContentMaker.fromString(TEXT); - CountTokensResponse unused = model.countTokens(content); + CountTokensResponse unused = model.countTokens(CONTENT); ArgumentCaptor request = ArgumentCaptor.forClass(CountTokensRequest.class); verify(mockLlmUtilityServiceClient).countTokens(request.capture()); - assertThat(request.getValue().getContents(0)).isEqualTo(content); + assertThat(request.getValue().getContents(0)).isEqualTo(CONTENT); } @Test - public void testCountTokenswithContents() throws Exception { + public void countTokens_withContents_requestHasCorrectContent() throws Exception { model = new GenerativeModel(MODEL_NAME, vertexAi); - Content content = ContentMaker.fromString(TEXT); - CountTokensResponse unused = model.countTokens(Arrays.asList(content)); + CountTokensResponse unused = model.countTokens(Arrays.asList(CONTENT)); ArgumentCaptor request = ArgumentCaptor.forClass(CountTokensRequest.class); verify(mockLlmUtilityServiceClient).countTokens(request.capture()); - assertThat(request.getValue().getContents(0)).isEqualTo(content); + assertThat(request.getValue().getContents(0)).isEqualTo(CONTENT); } @Test - public void testGenerateContentwithText() throws Exception { + public void generateContent_withText_requestHasCorrectFields() throws Exception { model = new GenerativeModel(MODEL_NAME, vertexAi); - when(mockPredictionServiceClient.generateContentCallable()).thenReturn(mockUnaryCallable); - when(mockUnaryCallable.call(any(GenerateContentRequest.class))) - .thenReturn(mockGenerateContentResponse); - GenerateContentResponse unused = model.generateContent(TEXT); ArgumentCaptor request = @@ -303,17 +307,12 @@ public void testGenerateContentwithText() throws Exception { } @Test - public void testGenerateContentwithText_withFullModelName_requestHasCorrectResourceName() - throws Exception { + public void generateContent_withFullModelName_requestHasCorrectResourceName() throws Exception { model = new GenerativeModel( "projects/another_project/locations/europe-west4/publishers/google/models/another_model", vertexAi); - when(mockPredictionServiceClient.generateContentCallable()).thenReturn(mockUnaryCallable); - when(mockUnaryCallable.call(any(GenerateContentRequest.class))) - .thenReturn(mockGenerateContentResponse); - GenerateContentResponse unused = model.generateContent(TEXT); ArgumentCaptor request = @@ -326,66 +325,32 @@ public void testGenerateContentwithText_withFullModelName_requestHasCorrectResou } @Test - public void testGenerateContentwithContent() throws Exception { + public void generateContent_withContent_requestHasCorrectContent() throws Exception { model = new GenerativeModel(MODEL_NAME, vertexAi); - when(mockPredictionServiceClient.generateContentCallable()).thenReturn(mockUnaryCallable); - when(mockUnaryCallable.call(any(GenerateContentRequest.class))) - .thenReturn(mockGenerateContentResponse); - - Content content = - Content.newBuilder().setRole("user").addParts(Part.newBuilder().setText(TEXT)).build(); - GenerateContentResponse unused = model.generateContent(content); + GenerateContentResponse unused = model.generateContent(CONTENT); ArgumentCaptor request = ArgumentCaptor.forClass(GenerateContentRequest.class); verify(mockUnaryCallable).call(request.capture()); - assertThat(request.getValue().getContents(0).getParts(0).getText()).isEqualTo(TEXT); + assertThat(request.getValue().getContents(0)).isEqualTo(CONTENT); } @Test - public void testGenerateContentwithContents() throws Exception { + public void generateContent_withContents_requestHasCorrectContent() throws Exception { model = new GenerativeModel(MODEL_NAME, vertexAi); - when(mockPredictionServiceClient.generateContentCallable()).thenReturn(mockUnaryCallable); - when(mockUnaryCallable.call(any(GenerateContentRequest.class))) - .thenReturn(mockGenerateContentResponse); - - Content content = - Content.newBuilder().setRole("user").addParts(Part.newBuilder().setText(TEXT)).build(); - GenerateContentResponse unused = model.generateContent(Arrays.asList(content)); - - ArgumentCaptor request = - ArgumentCaptor.forClass(GenerateContentRequest.class); - verify(mockUnaryCallable).call(request.capture()); - assertThat(request.getValue().getContents(0).getParts(0).getText()).isEqualTo(TEXT); - } - - @Test - public void testGenerateContentwithSystemInstruction() throws Exception { - when(mockPredictionServiceClient.generateContentCallable()).thenReturn(mockUnaryCallable); - when(mockUnaryCallable.call(any(GenerateContentRequest.class))) - .thenReturn(mockGenerateContentResponse); - - String systemInstructionText = - "You're a helpful assistant that starts all its answers with: \"COOL\""; - Content systemInstruction = ContentMaker.fromString(systemInstructionText); - - model = new GenerativeModel(MODEL_NAME, vertexAi).withSystemInstruction(systemInstruction); - - Content content = ContentMaker.fromString(TEXT); - GenerateContentResponse unused = model.generateContent(Arrays.asList(content)); + GenerateContentResponse unused = model.generateContent(Arrays.asList(CONTENT)); ArgumentCaptor request = ArgumentCaptor.forClass(GenerateContentRequest.class); verify(mockUnaryCallable).call(request.capture()); - assertThat(request.getValue().getSystemInstruction().getParts(0).getText()) - .isEqualTo(systemInstructionText); - assertThat(request.getValue().getSystemInstruction().getRole()).isEqualTo(""); + assertThat(request.getValue().getContents(0)).isEqualTo(CONTENT); } @Test - public void testGenerateContentwithDefaultGenerationConfig() throws Exception { + public void generateContent_withDefaultGenerationConfig_requestHasCorrectGenerationConfigAndText() + throws Exception { model = new GenerativeModel.Builder() .setVertexAi(vertexAi) @@ -393,10 +358,6 @@ public void testGenerateContentwithDefaultGenerationConfig() throws Exception { .setGenerationConfig(DEFAULT_GENERATION_CONFIG) .build(); - when(mockPredictionServiceClient.generateContentCallable()).thenReturn(mockUnaryCallable); - when(mockUnaryCallable.call(any(GenerateContentRequest.class))) - .thenReturn(mockGenerateContentResponse); - GenerateContentResponse unused = model.generateContent(TEXT); ArgumentCaptor request = @@ -407,7 +368,8 @@ public void testGenerateContentwithDefaultGenerationConfig() throws Exception { } @Test - public void testGenerateContentwithDefaultSafetySettings() throws Exception { + public void generateContent_withDefaultSafetySettings_requestHasCorrectSafetySettingsAndText() + throws Exception { model = new GenerativeModel.Builder() .setModelName(MODEL_NAME) @@ -415,10 +377,6 @@ public void testGenerateContentwithDefaultSafetySettings() throws Exception { .setVertexAi(vertexAi) .build(); - when(mockPredictionServiceClient.generateContentCallable()).thenReturn(mockUnaryCallable); - when(mockUnaryCallable.call(any(GenerateContentRequest.class))) - .thenReturn(mockGenerateContentResponse); - GenerateContentResponse unused = model.generateContent(TEXT); ArgumentCaptor request = @@ -429,7 +387,7 @@ public void testGenerateContentwithDefaultSafetySettings() throws Exception { } @Test - public void testGenerateContentwithDefaultTools() throws Exception { + public void generateContent_withDefaultTools_requestHasCorrectToolsAndText() throws Exception { model = new GenerativeModel.Builder() .setModelName(MODEL_NAME) @@ -437,10 +395,6 @@ public void testGenerateContentwithDefaultTools() throws Exception { .setTools(tools) .build(); - when(mockPredictionServiceClient.generateContentCallable()).thenReturn(mockUnaryCallable); - when(mockUnaryCallable.call(any(GenerateContentRequest.class))) - .thenReturn(mockGenerateContentResponse); - GenerateContentResponse unused = model.generateContent(TEXT); ArgumentCaptor request = @@ -451,31 +405,50 @@ public void testGenerateContentwithDefaultTools() throws Exception { } @Test - public void testGenerateContentwithFluentApi() throws Exception { - model = new GenerativeModel(MODEL_NAME, vertexAi); + public void + generateContent_withDefaultSystemInstruction_requestHasCorrectSystemInstructionAndText() + throws Exception { + model = + new GenerativeModel.Builder() + .setVertexAi(vertexAi) + .setModelName(MODEL_NAME) + .setSystemInstruction(DEFAULT_SYSTEM_INSTRUCTION) + .build(); + GenerateContentResponse unused = model.generateContent(TEXT); - when(mockPredictionServiceClient.generateContentCallable()).thenReturn(mockUnaryCallable); - when(mockUnaryCallable.call(any(GenerateContentRequest.class))) - .thenReturn(mockGenerateContentResponse); + ArgumentCaptor request = + ArgumentCaptor.forClass(GenerateContentRequest.class); + verify(mockUnaryCallable).call(request.capture()); + Content expectedSystemInstruction = DEFAULT_SYSTEM_INSTRUCTION.toBuilder().clearRole().build(); + assertThat(request.getValue().getContents(0).getParts(0).getText()).isEqualTo(TEXT); + assertThat(request.getValue().getSystemInstruction()).isEqualTo(expectedSystemInstruction); + } + + @Test + public void generateContent_withAllConfigsInFluentApi_requestHasCorrectFields() throws Exception { + model = new GenerativeModel(MODEL_NAME, vertexAi); GenerateContentResponse unused = model .withGenerationConfig(GENERATION_CONFIG) .withSafetySettings(safetySettings) .withTools(tools) + .withSystemInstruction(DEFAULT_SYSTEM_INSTRUCTION) .generateContent(TEXT); ArgumentCaptor request = ArgumentCaptor.forClass(GenerateContentRequest.class); verify(mockUnaryCallable).call(request.capture()); + Content expectedSystemInstruction = DEFAULT_SYSTEM_INSTRUCTION.toBuilder().clearRole().build(); assertThat(request.getValue().getContents(0).getParts(0).getText()).isEqualTo(TEXT); assertThat(request.getValue().getGenerationConfig()).isEqualTo(GENERATION_CONFIG); assertThat(request.getValue().getSafetySettings(0)).isEqualTo(SAFETY_SETTING); assertThat(request.getValue().getTools(0)).isEqualTo(TOOL); + assertThat(request.getValue().getSystemInstruction()).isEqualTo(expectedSystemInstruction); } @Test - public void generateContent_withNullContents_throws() throws Exception { + public void generateContent_withNullContents_throwsIllegalArgumentException() throws Exception { model = new GenerativeModel(MODEL_NAME, vertexAi); List contents = null; @@ -485,68 +458,44 @@ public void generateContent_withNullContents_throws() throws Exception { } @Test - public void testGenerateContentStreamwithText() throws Exception { + public void generateContentStream_withText_requestHasCorrectText() throws Exception { model = new GenerativeModel(MODEL_NAME, vertexAi); - when(mockPredictionServiceClient.streamGenerateContentCallable()) - .thenReturn(mockServerStreamCallable); - when(mockServerStreamCallable.call(any(GenerateContentRequest.class))) - .thenReturn(mockServerStream); - when(mockServerStream.iterator()).thenReturn(mockServerStreamIterator); - ResponseStream unused = model.generateContentStream(TEXT); ArgumentCaptor request = ArgumentCaptor.forClass(GenerateContentRequest.class); verify(mockServerStreamCallable).call(request.capture()); - assertThat(request.getValue().getContents(0).getParts(0).getText()) - .isEqualTo("What is your name?"); + assertThat(request.getValue().getContents(0).getParts(0).getText()).isEqualTo(TEXT); } @Test - public void testGenerateContentStreamwithContent() throws Exception { + public void generateContentStream_withContent_requestHasCorrectContent() throws Exception { model = new GenerativeModel(MODEL_NAME, vertexAi); - when(mockPredictionServiceClient.streamGenerateContentCallable()) - .thenReturn(mockServerStreamCallable); - when(mockServerStreamCallable.call(any(GenerateContentRequest.class))) - .thenReturn(mockServerStream); - when(mockServerStream.iterator()).thenReturn(mockServerStreamIterator); - - Content content = - Content.newBuilder().setRole("user").addParts(Part.newBuilder().setText(TEXT)).build(); - ResponseStream unused = model.generateContentStream(content); + ResponseStream unused = model.generateContentStream(CONTENT); ArgumentCaptor request = ArgumentCaptor.forClass(GenerateContentRequest.class); verify(mockServerStreamCallable).call(request.capture()); - assertThat(request.getValue().getContents(0).getParts(0).getText()) - .isEqualTo("What is your name?"); + assertThat(request.getValue().getContents(0)).isEqualTo(CONTENT); } @Test - public void testGenerateContentStreamwithContents() throws Exception { + public void generateContentStream_withContents_requestHasCorrectContent() throws Exception { model = new GenerativeModel(MODEL_NAME, vertexAi); - when(mockPredictionServiceClient.streamGenerateContentCallable()) - .thenReturn(mockServerStreamCallable); - when(mockServerStreamCallable.call(any(GenerateContentRequest.class))) - .thenReturn(mockServerStream); - when(mockServerStream.iterator()).thenReturn(mockServerStreamIterator); - - Content content = - Content.newBuilder().setRole("user").addParts(Part.newBuilder().setText(TEXT)).build(); - ResponseStream unused = model.generateContentStream(Arrays.asList(content)); + ResponseStream unused = model.generateContentStream(Arrays.asList(CONTENT)); ArgumentCaptor request = ArgumentCaptor.forClass(GenerateContentRequest.class); verify(mockServerStreamCallable).call(request.capture()); - assertThat(request.getValue().getContents(0).getParts(0).getText()) - .isEqualTo("What is your name?"); + assertThat(request.getValue().getContents(0)).isEqualTo(CONTENT); } @Test - public void testGenerateContentStreamwithDefaultGenerationConfig() throws Exception { + public void generateContentStream_withDefaultGenerationConfig_requestHasCorrectGenerationConfig() + throws Exception { model = new GenerativeModel.Builder() .setModelName(MODEL_NAME) @@ -554,12 +503,6 @@ public void testGenerateContentStreamwithDefaultGenerationConfig() throws Except .setVertexAi(vertexAi) .build(); - when(mockPredictionServiceClient.streamGenerateContentCallable()) - .thenReturn(mockServerStreamCallable); - when(mockServerStreamCallable.call(any(GenerateContentRequest.class))) - .thenReturn(mockServerStream); - when(mockServerStream.iterator()).thenReturn(mockServerStreamIterator); - ResponseStream unused = model.generateContentStream(TEXT); ArgumentCaptor request = @@ -569,7 +512,8 @@ public void testGenerateContentStreamwithDefaultGenerationConfig() throws Except } @Test - public void testGenerateContentStreamwithDefaultSafetySettings() throws Exception { + public void generateContentStream_withDefaultSafetySettings_requestHasCorrectSafetySettings() + throws Exception { model = new GenerativeModel.Builder() .setModelName(MODEL_NAME) @@ -577,12 +521,6 @@ public void testGenerateContentStreamwithDefaultSafetySettings() throws Exceptio .setVertexAi(vertexAi) .build(); - when(mockPredictionServiceClient.streamGenerateContentCallable()) - .thenReturn(mockServerStreamCallable); - when(mockServerStreamCallable.call(any(GenerateContentRequest.class))) - .thenReturn(mockServerStream); - when(mockServerStream.iterator()).thenReturn(mockServerStreamIterator); - ResponseStream unused = model.generateContentStream(TEXT); ArgumentCaptor request = @@ -592,7 +530,7 @@ public void testGenerateContentStreamwithDefaultSafetySettings() throws Exceptio } @Test - public void testGenerateContentStreamwithDefaultTools() throws Exception { + public void generateContentStream_withDefaultTools_requestHasCorrectTools() throws Exception { model = new GenerativeModel.Builder() .setModelName(MODEL_NAME) @@ -600,12 +538,6 @@ public void testGenerateContentStreamwithDefaultTools() throws Exception { .setTools(tools) .build(); - when(mockPredictionServiceClient.streamGenerateContentCallable()) - .thenReturn(mockServerStreamCallable); - when(mockServerStreamCallable.call(any(GenerateContentRequest.class))) - .thenReturn(mockServerStream); - when(mockServerStream.iterator()).thenReturn(mockServerStreamIterator); - ResponseStream unused = model.generateContentStream(TEXT); ArgumentCaptor request = @@ -615,33 +547,52 @@ public void testGenerateContentStreamwithDefaultTools() throws Exception { } @Test - public void testGenerateContentStreamwithFluentApi() throws Exception { - model = new GenerativeModel(MODEL_NAME, vertexAi); + public void + generateContentStream_withDefaultSystemInstruction_requestHasCorrectSystemInstruction() + throws Exception { + model = + new GenerativeModel.Builder() + .setModelName(MODEL_NAME) + .setVertexAi(vertexAi) + .setSystemInstruction(DEFAULT_SYSTEM_INSTRUCTION) + .build(); - when(mockPredictionServiceClient.streamGenerateContentCallable()) - .thenReturn(mockServerStreamCallable); - when(mockServerStreamCallable.call(any(GenerateContentRequest.class))) - .thenReturn(mockServerStream); - when(mockServerStream.iterator()).thenReturn(mockServerStreamIterator); + ResponseStream unused = model.generateContentStream(TEXT); + + ArgumentCaptor request = + ArgumentCaptor.forClass(GenerateContentRequest.class); + verify(mockServerStreamCallable).call(request.capture()); + Content expectedSystemInstruction = DEFAULT_SYSTEM_INSTRUCTION.toBuilder().clearRole().build(); + assertThat(request.getValue().getSystemInstruction()).isEqualTo(expectedSystemInstruction); + } + + @Test + public void generateContentStream_withAllConfigsInFluentApi_requestHasCorrectFields() + throws Exception { + model = new GenerativeModel(MODEL_NAME, vertexAi); ResponseStream unused = model .withGenerationConfig(GENERATION_CONFIG) .withSafetySettings(safetySettings) .withTools(tools) + .withSystemInstruction(DEFAULT_SYSTEM_INSTRUCTION) .generateContentStream(TEXT); ArgumentCaptor request = ArgumentCaptor.forClass(GenerateContentRequest.class); verify(mockServerStreamCallable).call(request.capture()); + Content expectedSystemInstruction = DEFAULT_SYSTEM_INSTRUCTION.toBuilder().clearRole().build(); assertThat(request.getValue().getContents(0).getParts(0).getText()).isEqualTo(TEXT); assertThat(request.getValue().getGenerationConfig()).isEqualTo(GENERATION_CONFIG); assertThat(request.getValue().getSafetySettings(0)).isEqualTo(SAFETY_SETTING); assertThat(request.getValue().getTools(0)).isEqualTo(TOOL); + assertThat(request.getValue().getSystemInstruction()).isEqualTo(expectedSystemInstruction); } @Test - public void generateContentStream_withEmptyContents_throws() throws Exception { + public void generateContentStream_withEmptyContents_throwsIllegalArgumentException() + throws Exception { model = new GenerativeModel(MODEL_NAME, vertexAi); List contents = new ArrayList<>(); @@ -651,14 +602,9 @@ public void generateContentStream_withEmptyContents_throws() throws Exception { } @Test - public void generateContentAsync_withText_sendsCorrectRequest() throws Exception { + public void generateContentAsync_withText_requestHasCorrectText() throws Exception { model = new GenerativeModel(MODEL_NAME, vertexAi); - when(mockPredictionServiceClient.generateContentCallable()).thenReturn(mockUnaryCallable); - when(mockUnaryCallable.futureCall(any(GenerateContentRequest.class))).thenReturn(mockApiFuture); - - Content content = - Content.newBuilder().setRole("user").addParts(Part.newBuilder().setText(TEXT)).build(); ApiFuture unused = model.generateContentAsync(TEXT); ArgumentCaptor request = @@ -668,36 +614,26 @@ public void generateContentAsync_withText_sendsCorrectRequest() throws Exception } @Test - public void generateContentAsync_withContent_sendsCorrectRequest() throws Exception { + public void generateContentAsync_withContent_requestHasCorrectContent() throws Exception { model = new GenerativeModel(MODEL_NAME, vertexAi); - when(mockPredictionServiceClient.generateContentCallable()).thenReturn(mockUnaryCallable); - when(mockUnaryCallable.futureCall(any(GenerateContentRequest.class))).thenReturn(mockApiFuture); - - Content content = - Content.newBuilder().setRole("user").addParts(Part.newBuilder().setText(TEXT)).build(); - ApiFuture unused = model.generateContentAsync(content); + ApiFuture unused = model.generateContentAsync(CONTENT); ArgumentCaptor request = ArgumentCaptor.forClass(GenerateContentRequest.class); verify(mockUnaryCallable).futureCall(request.capture()); - assertThat(request.getValue().getContents(0).getParts(0).getText()).isEqualTo(TEXT); + assertThat(request.getValue().getContents(0)).isEqualTo(CONTENT); } @Test - public void generateContentAsync_withContents_sendsCorrectRequest() throws Exception { + public void generateContentAsync_withContents_requestHasCorrectContent() throws Exception { model = new GenerativeModel(MODEL_NAME, vertexAi); - when(mockPredictionServiceClient.generateContentCallable()).thenReturn(mockUnaryCallable); - when(mockUnaryCallable.futureCall(any(GenerateContentRequest.class))).thenReturn(mockApiFuture); - - Content content = - Content.newBuilder().setRole("user").addParts(Part.newBuilder().setText(TEXT)).build(); - ApiFuture unused = model.generateContentAsync(Arrays.asList(content)); + ApiFuture unused = model.generateContentAsync(Arrays.asList(CONTENT)); ArgumentCaptor request = ArgumentCaptor.forClass(GenerateContentRequest.class); verify(mockUnaryCallable).futureCall(request.capture()); - assertThat(request.getValue().getContents(0).getParts(0).getText()).isEqualTo(TEXT); + assertThat(request.getValue().getContents(0)).isEqualTo(CONTENT); } } diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AcceleratorType.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AcceleratorType.java index 329860b16bab..78b9a728fbb5 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AcceleratorType.java +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AcceleratorType.java @@ -159,6 +159,16 @@ public enum AcceleratorType implements com.google.protobuf.ProtocolMessageEnum { * TPU_V4_POD = 10; */ TPU_V4_POD(10), + /** + * + * + *
+   * TPU v5.
+   * 
+ * + * TPU_V5_LITEPOD = 12; + */ + TPU_V5_LITEPOD(12), UNRECOGNIZED(-1), ; @@ -292,6 +302,16 @@ public enum AcceleratorType implements com.google.protobuf.ProtocolMessageEnum { * TPU_V4_POD = 10; */ public static final int TPU_V4_POD_VALUE = 10; + /** + * + * + *
+   * TPU v5.
+   * 
+ * + * TPU_V5_LITEPOD = 12; + */ + public static final int TPU_V5_LITEPOD_VALUE = 12; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -343,6 +363,8 @@ public static AcceleratorType forNumber(int value) { return TPU_V3; case 10: return TPU_V4_POD; + case 12: + return TPU_V5_LITEPOD; default: return null; } diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AcceleratorTypeProto.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AcceleratorTypeProto.java index 0ae0196221f2..511fe8170881 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AcceleratorTypeProto.java +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/AcceleratorTypeProto.java @@ -37,7 +37,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n/google/cloud/vertexai/v1/accelerator_t" - + "ype.proto\022\030google.cloud.vertexai.v1*\233\002\n\017" + + "ype.proto\022\030google.cloud.vertexai.v1*\257\002\n\017" + "AcceleratorType\022 \n\034ACCELERATOR_TYPE_UNSP" + "ECIFIED\020\000\022\024\n\020NVIDIA_TESLA_K80\020\001\022\025\n\021NVIDI" + "A_TESLA_P100\020\002\022\025\n\021NVIDIA_TESLA_V100\020\003\022\023\n" @@ -45,12 +45,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025\n\021NVIDIA_TESLA_A100\020\010\022\024\n\020NVIDIA_A100_80" + "GB\020\t\022\r\n\tNVIDIA_L4\020\013\022\024\n\020NVIDIA_H100_80GB\020" + "\r\022\n\n\006TPU_V2\020\006\022\n\n\006TPU_V3\020\007\022\016\n\nTPU_V4_POD\020" - + "\nB\321\001\n\035com.google.cloud.vertexai.apiB\024Acc" - + "eleratorTypeProtoP\001Z>cloud.google.com/go" - + "/aiplatform/apiv1/aiplatformpb;aiplatfor" - + "mpb\252\002\032Google.Cloud.AIPlatform.V1\312\002\032Googl" - + "e\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::A" - + "IPlatform::V1b\006proto3" + + "\n\022\022\n\016TPU_V5_LITEPOD\020\014B\321\001\n\035com.google.clo" + + "ud.vertexai.apiB\024AcceleratorTypeProtoP\001Z" + + ">cloud.google.com/go/aiplatform/apiv1/ai" + + "platformpb;aiplatformpb\252\002\032Google.Cloud.A" + + "IPlatform.V1\312\002\032Google\\Cloud\\AIPlatform\\V" + + "1\352\002\035Google::Cloud::AIPlatform::V1b\006proto" + + "3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ContentProto.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ContentProto.java index 45c59fda5a97..3c0480e311bd 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ContentProto.java +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ContentProto.java @@ -72,22 +72,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_vertexai_v1_Candidate_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_vertexai_v1_Candidate_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vertexai_v1_Segment_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vertexai_v1_Segment_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vertexai_v1_GroundingAttribution_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vertexai_v1_GroundingAttribution_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vertexai_v1_GroundingAttribution_Web_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vertexai_v1_GroundingAttribution_Web_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_vertexai_v1_GroundingMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_vertexai_v1_GroundingMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vertexai_v1_SearchEntryPoint_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vertexai_v1_SearchEntryPoint_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -99,7 +91,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n&google/cloud/vertexai/v1/content.proto" + "\022\030google.cloud.vertexai.v1\032\037google/api/f" - + "ield_behavior.proto\032#google/cloud/vertex" + + "ield_behavior.proto\032&google/cloud/vertex" + + "ai/v1/openapi.proto\032#google/cloud/vertex" + "ai/v1/tool.proto\032\036google/protobuf/durati" + "on.proto\032\026google/type/date.proto\"P\n\007Cont" + "ent\022\021\n\004role\030\001 \001(\tB\003\340A\001\0222\n\005parts\030\002 \003(\0132\036." @@ -119,7 +112,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "e_uri\030\002 \001(\tB\003\340A\002\"y\n\rVideoMetadata\0224\n\014sta" + "rt_offset\030\001 \001(\0132\031.google.protobuf.Durati" + "onB\003\340A\001\0222\n\nend_offset\030\002 \001(\0132\031.google.pro" - + "tobuf.DurationB\003\340A\001\"\253\003\n\020GenerationConfig" + + "tobuf.DurationB\003\340A\001\"\204\004\n\020GenerationConfig" + "\022\035\n\013temperature\030\001 \001(\002B\003\340A\001H\000\210\001\001\022\027\n\005top_p" + "\030\002 \001(\002B\003\340A\001H\001\210\001\001\022\027\n\005top_k\030\003 \001(\002B\003\340A\001H\002\210\001" + "\001\022!\n\017candidate_count\030\004 \001(\005B\003\340A\001H\003\210\001\001\022#\n\021" @@ -127,86 +120,82 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "p_sequences\030\006 \003(\tB\003\340A\001\022\"\n\020presence_penal" + "ty\030\010 \001(\002B\003\340A\001H\005\210\001\001\022#\n\021frequency_penalty\030" + "\t \001(\002B\003\340A\001H\006\210\001\001\022\037\n\022response_mime_type\030\r " - + "\001(\tB\003\340A\001B\016\n\014_temperatureB\010\n\006_top_pB\010\n\006_t" - + "op_kB\022\n\020_candidate_countB\024\n\022_max_output_" - + "tokensB\023\n\021_presence_penaltyB\024\n\022_frequenc" - + "y_penalty\"\334\003\n\rSafetySetting\022=\n\010category\030" - + "\001 \001(\0162&.google.cloud.vertexai.v1.HarmCat" - + "egoryB\003\340A\002\022R\n\tthreshold\030\002 \001(\0162:.google.c" - + "loud.vertexai.v1.SafetySetting.HarmBlock" - + "ThresholdB\003\340A\002\022L\n\006method\030\004 \001(\01627.google." - + "cloud.vertexai.v1.SafetySetting.HarmBloc" - + "kMethodB\003\340A\001\"\224\001\n\022HarmBlockThreshold\022$\n H" - + "ARM_BLOCK_THRESHOLD_UNSPECIFIED\020\000\022\027\n\023BLO" - + "CK_LOW_AND_ABOVE\020\001\022\032\n\026BLOCK_MEDIUM_AND_A" - + "BOVE\020\002\022\023\n\017BLOCK_ONLY_HIGH\020\003\022\016\n\nBLOCK_NON" - + "E\020\004\"S\n\017HarmBlockMethod\022!\n\035HARM_BLOCK_MET" - + "HOD_UNSPECIFIED\020\000\022\014\n\010SEVERITY\020\001\022\017\n\013PROBA" - + "BILITY\020\002\"\271\004\n\014SafetyRating\022=\n\010category\030\001 " - + "\001(\0162&.google.cloud.vertexai.v1.HarmCateg" - + "oryB\003\340A\003\022P\n\013probability\030\002 \001(\01626.google.c" - + "loud.vertexai.v1.SafetyRating.HarmProbab" - + "ilityB\003\340A\003\022\036\n\021probability_score\030\005 \001(\002B\003\340" - + "A\003\022J\n\010severity\030\006 \001(\01623.google.cloud.vert" - + "exai.v1.SafetyRating.HarmSeverityB\003\340A\003\022\033" - + "\n\016severity_score\030\007 \001(\002B\003\340A\003\022\024\n\007blocked\030\003" - + " \001(\010B\003\340A\003\"b\n\017HarmProbability\022 \n\034HARM_PRO" - + "BABILITY_UNSPECIFIED\020\000\022\016\n\nNEGLIGIBLE\020\001\022\007" - + "\n\003LOW\020\002\022\n\n\006MEDIUM\020\003\022\010\n\004HIGH\020\004\"\224\001\n\014HarmSe" - + "verity\022\035\n\031HARM_SEVERITY_UNSPECIFIED\020\000\022\034\n" - + "\030HARM_SEVERITY_NEGLIGIBLE\020\001\022\025\n\021HARM_SEVE" - + "RITY_LOW\020\002\022\030\n\024HARM_SEVERITY_MEDIUM\020\003\022\026\n\022" - + "HARM_SEVERITY_HIGH\020\004\"N\n\020CitationMetadata" - + "\022:\n\tcitations\030\001 \003(\0132\".google.cloud.verte" - + "xai.v1.CitationB\003\340A\003\"\252\001\n\010Citation\022\030\n\013sta" - + "rt_index\030\001 \001(\005B\003\340A\003\022\026\n\tend_index\030\002 \001(\005B\003" - + "\340A\003\022\020\n\003uri\030\003 \001(\tB\003\340A\003\022\022\n\005title\030\004 \001(\tB\003\340A" - + "\003\022\024\n\007license\030\005 \001(\tB\003\340A\003\0220\n\020publication_d" - + "ate\030\006 \001(\0132\021.google.type.DateB\003\340A\003\"\334\004\n\tCa" - + "ndidate\022\022\n\005index\030\001 \001(\005B\003\340A\003\0227\n\007content\030\002" - + " \001(\0132!.google.cloud.vertexai.v1.ContentB" - + "\003\340A\003\022L\n\rfinish_reason\030\003 \001(\01620.google.clo" - + "ud.vertexai.v1.Candidate.FinishReasonB\003\340" - + "A\003\022C\n\016safety_ratings\030\004 \003(\0132&.google.clou" - + "d.vertexai.v1.SafetyRatingB\003\340A\003\022 \n\016finis" - + "h_message\030\005 \001(\tB\003\340A\003H\000\210\001\001\022J\n\021citation_me" - + "tadata\030\006 \001(\0132*.google.cloud.vertexai.v1." - + "CitationMetadataB\003\340A\003\022L\n\022grounding_metad" - + "ata\030\007 \001(\0132+.google.cloud.vertexai.v1.Gro" - + "undingMetadataB\003\340A\003\"\237\001\n\014FinishReason\022\035\n\031" - + "FINISH_REASON_UNSPECIFIED\020\000\022\010\n\004STOP\020\001\022\016\n" - + "\nMAX_TOKENS\020\002\022\n\n\006SAFETY\020\003\022\016\n\nRECITATION\020" - + "\004\022\t\n\005OTHER\020\005\022\r\n\tBLOCKLIST\020\006\022\026\n\022PROHIBITE" - + "D_CONTENT\020\007\022\010\n\004SPII\020\010B\021\n\017_finish_message" - + "\"T\n\007Segment\022\027\n\npart_index\030\001 \001(\005B\003\340A\003\022\030\n\013" - + "start_index\030\002 \001(\005B\003\340A\003\022\026\n\tend_index\030\003 \001(" - + "\005B\003\340A\003\"\215\002\n\024GroundingAttribution\022F\n\003web\030\003" - + " \001(\01322.google.cloud.vertexai.v1.Groundin" - + "gAttribution.WebB\003\340A\001H\000\0227\n\007segment\030\001 \001(\013" - + "2!.google.cloud.vertexai.v1.SegmentB\003\340A\003" - + "\022%\n\020confidence_score\030\002 \001(\002B\006\340A\001\340A\003H\001\210\001\001\032" - + "+\n\003Web\022\020\n\003uri\030\001 \001(\tB\003\340A\003\022\022\n\005title\030\002 \001(\tB" - + "\003\340A\003B\013\n\treferenceB\023\n\021_confidence_score\"\211" - + "\001\n\021GroundingMetadata\022\037\n\022web_search_queri" - + "es\030\001 \003(\tB\003\340A\001\022S\n\026grounding_attributions\030" - + "\002 \003(\0132..google.cloud.vertexai.v1.Groundi" - + "ngAttributionB\003\340A\001*\264\001\n\014HarmCategory\022\035\n\031H" - + "ARM_CATEGORY_UNSPECIFIED\020\000\022\035\n\031HARM_CATEG" - + "ORY_HATE_SPEECH\020\001\022#\n\037HARM_CATEGORY_DANGE" - + "ROUS_CONTENT\020\002\022\034\n\030HARM_CATEGORY_HARASSME" - + "NT\020\003\022#\n\037HARM_CATEGORY_SEXUALLY_EXPLICIT\020" - + "\004B\311\001\n\035com.google.cloud.vertexai.apiB\014Con" - + "tentProtoP\001Z>cloud.google.com/go/aiplatf" - + "orm/apiv1/aiplatformpb;aiplatformpb\252\002\032Go" - + "ogle.Cloud.AIPlatform.V1\312\002\032Google\\Cloud\\" - + "AIPlatform\\V1\352\002\035Google::Cloud::AIPlatfor" - + "m::V1b\006proto3" + + "\001(\tB\003\340A\001\022C\n\017response_schema\030\020 \001(\0132 .goog" + + "le.cloud.vertexai.v1.SchemaB\003\340A\001H\007\210\001\001B\016\n" + + "\014_temperatureB\010\n\006_top_pB\010\n\006_top_kB\022\n\020_ca" + + "ndidate_countB\024\n\022_max_output_tokensB\023\n\021_" + + "presence_penaltyB\024\n\022_frequency_penaltyB\022" + + "\n\020_response_schema\"\334\003\n\rSafetySetting\022=\n\010" + + "category\030\001 \001(\0162&.google.cloud.vertexai.v" + + "1.HarmCategoryB\003\340A\002\022R\n\tthreshold\030\002 \001(\0162:" + + ".google.cloud.vertexai.v1.SafetySetting." + + "HarmBlockThresholdB\003\340A\002\022L\n\006method\030\004 \001(\0162" + + "7.google.cloud.vertexai.v1.SafetySetting" + + ".HarmBlockMethodB\003\340A\001\"\224\001\n\022HarmBlockThres" + + "hold\022$\n HARM_BLOCK_THRESHOLD_UNSPECIFIED" + + "\020\000\022\027\n\023BLOCK_LOW_AND_ABOVE\020\001\022\032\n\026BLOCK_MED" + + "IUM_AND_ABOVE\020\002\022\023\n\017BLOCK_ONLY_HIGH\020\003\022\016\n\n" + + "BLOCK_NONE\020\004\"S\n\017HarmBlockMethod\022!\n\035HARM_" + + "BLOCK_METHOD_UNSPECIFIED\020\000\022\014\n\010SEVERITY\020\001" + + "\022\017\n\013PROBABILITY\020\002\"\271\004\n\014SafetyRating\022=\n\010ca" + + "tegory\030\001 \001(\0162&.google.cloud.vertexai.v1." + + "HarmCategoryB\003\340A\003\022P\n\013probability\030\002 \001(\01626" + + ".google.cloud.vertexai.v1.SafetyRating.H" + + "armProbabilityB\003\340A\003\022\036\n\021probability_score" + + "\030\005 \001(\002B\003\340A\003\022J\n\010severity\030\006 \001(\01623.google.c" + + "loud.vertexai.v1.SafetyRating.HarmSeveri" + + "tyB\003\340A\003\022\033\n\016severity_score\030\007 \001(\002B\003\340A\003\022\024\n\007" + + "blocked\030\003 \001(\010B\003\340A\003\"b\n\017HarmProbability\022 \n" + + "\034HARM_PROBABILITY_UNSPECIFIED\020\000\022\016\n\nNEGLI" + + "GIBLE\020\001\022\007\n\003LOW\020\002\022\n\n\006MEDIUM\020\003\022\010\n\004HIGH\020\004\"\224" + + "\001\n\014HarmSeverity\022\035\n\031HARM_SEVERITY_UNSPECI" + + "FIED\020\000\022\034\n\030HARM_SEVERITY_NEGLIGIBLE\020\001\022\025\n\021" + + "HARM_SEVERITY_LOW\020\002\022\030\n\024HARM_SEVERITY_MED" + + "IUM\020\003\022\026\n\022HARM_SEVERITY_HIGH\020\004\"N\n\020Citatio" + + "nMetadata\022:\n\tcitations\030\001 \003(\0132\".google.cl" + + "oud.vertexai.v1.CitationB\003\340A\003\"\252\001\n\010Citati" + + "on\022\030\n\013start_index\030\001 \001(\005B\003\340A\003\022\026\n\tend_inde" + + "x\030\002 \001(\005B\003\340A\003\022\020\n\003uri\030\003 \001(\tB\003\340A\003\022\022\n\005title\030" + + "\004 \001(\tB\003\340A\003\022\024\n\007license\030\005 \001(\tB\003\340A\003\0220\n\020publ" + + "ication_date\030\006 \001(\0132\021.google.type.DateB\003\340" + + "A\003\"\334\004\n\tCandidate\022\022\n\005index\030\001 \001(\005B\003\340A\003\0227\n\007" + + "content\030\002 \001(\0132!.google.cloud.vertexai.v1" + + ".ContentB\003\340A\003\022L\n\rfinish_reason\030\003 \001(\01620.g" + + "oogle.cloud.vertexai.v1.Candidate.Finish" + + "ReasonB\003\340A\003\022C\n\016safety_ratings\030\004 \003(\0132&.go" + + "ogle.cloud.vertexai.v1.SafetyRatingB\003\340A\003" + + "\022 \n\016finish_message\030\005 \001(\tB\003\340A\003H\000\210\001\001\022J\n\021ci" + + "tation_metadata\030\006 \001(\0132*.google.cloud.ver" + + "texai.v1.CitationMetadataB\003\340A\003\022L\n\022ground" + + "ing_metadata\030\007 \001(\0132+.google.cloud.vertex" + + "ai.v1.GroundingMetadataB\003\340A\003\"\237\001\n\014FinishR" + + "eason\022\035\n\031FINISH_REASON_UNSPECIFIED\020\000\022\010\n\004" + + "STOP\020\001\022\016\n\nMAX_TOKENS\020\002\022\n\n\006SAFETY\020\003\022\016\n\nRE" + + "CITATION\020\004\022\t\n\005OTHER\020\005\022\r\n\tBLOCKLIST\020\006\022\026\n\022" + + "PROHIBITED_CONTENT\020\007\022\010\n\004SPII\020\010B\021\n\017_finis" + + "h_message\"\235\001\n\021GroundingMetadata\022\037\n\022web_s" + + "earch_queries\030\001 \003(\tB\003\340A\001\022P\n\022search_entry" + + "_point\030\004 \001(\0132*.google.cloud.vertexai.v1." + + "SearchEntryPointB\003\340A\001H\000\210\001\001B\025\n\023_search_en" + + "try_point\"H\n\020SearchEntryPoint\022\035\n\020rendere" + + "d_content\030\001 \001(\tB\003\340A\001\022\025\n\010sdk_blob\030\002 \001(\014B\003" + + "\340A\001*\264\001\n\014HarmCategory\022\035\n\031HARM_CATEGORY_UN" + + "SPECIFIED\020\000\022\035\n\031HARM_CATEGORY_HATE_SPEECH" + + "\020\001\022#\n\037HARM_CATEGORY_DANGEROUS_CONTENT\020\002\022" + + "\034\n\030HARM_CATEGORY_HARASSMENT\020\003\022#\n\037HARM_CA" + + "TEGORY_SEXUALLY_EXPLICIT\020\004B\311\001\n\035com.googl" + + "e.cloud.vertexai.apiB\014ContentProtoP\001Z>cl" + + "oud.google.com/go/aiplatform/apiv1/aipla" + + "tformpb;aiplatformpb\252\002\032Google.Cloud.AIPl" + + "atform.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002" + + "\035Google::Cloud::AIPlatform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.vertexai.api.OpenApiProto.getDescriptor(), com.google.cloud.vertexai.api.ToolProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), com.google.type.DateProto.getDescriptor(), @@ -273,6 +262,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PresencePenalty", "FrequencyPenalty", "ResponseMimeType", + "ResponseSchema", }); internal_static_google_cloud_vertexai_v1_SafetySetting_descriptor = getDescriptor().getMessageTypes().get(6); @@ -320,39 +310,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CitationMetadata", "GroundingMetadata", }); - internal_static_google_cloud_vertexai_v1_Segment_descriptor = + internal_static_google_cloud_vertexai_v1_GroundingMetadata_descriptor = getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_vertexai_v1_Segment_fieldAccessorTable = + internal_static_google_cloud_vertexai_v1_GroundingMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vertexai_v1_Segment_descriptor, + internal_static_google_cloud_vertexai_v1_GroundingMetadata_descriptor, new java.lang.String[] { - "PartIndex", "StartIndex", "EndIndex", + "WebSearchQueries", "SearchEntryPoint", }); - internal_static_google_cloud_vertexai_v1_GroundingAttribution_descriptor = + internal_static_google_cloud_vertexai_v1_SearchEntryPoint_descriptor = getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_vertexai_v1_GroundingAttribution_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vertexai_v1_GroundingAttribution_descriptor, - new java.lang.String[] { - "Web", "Segment", "ConfidenceScore", "Reference", - }); - internal_static_google_cloud_vertexai_v1_GroundingAttribution_Web_descriptor = - internal_static_google_cloud_vertexai_v1_GroundingAttribution_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_vertexai_v1_GroundingAttribution_Web_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vertexai_v1_GroundingAttribution_Web_descriptor, - new java.lang.String[] { - "Uri", "Title", - }); - internal_static_google_cloud_vertexai_v1_GroundingMetadata_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_vertexai_v1_GroundingMetadata_fieldAccessorTable = + internal_static_google_cloud_vertexai_v1_SearchEntryPoint_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vertexai_v1_GroundingMetadata_descriptor, + internal_static_google_cloud_vertexai_v1_SearchEntryPoint_descriptor, new java.lang.String[] { - "WebSearchQueries", "GroundingAttributions", + "RenderedContent", "SdkBlob", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); @@ -360,6 +332,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.vertexai.api.OpenApiProto.getDescriptor(); com.google.cloud.vertexai.api.ToolProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); com.google.type.DateProto.getDescriptor(); diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Endpoint.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Endpoint.java index f26675faef09..f354f74c691a 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Endpoint.java +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Endpoint.java @@ -913,7 +913,7 @@ public com.google.protobuf.ByteString getNetworkBytes() { * bool enable_private_service_connect = 17 [deprecated = true]; * * @deprecated google.cloud.vertexai.v1.Endpoint.enable_private_service_connect is deprecated. See - * google/cloud/vertexai/v1/endpoint.proto;l=126 + * google/cloud/vertexai/v1/endpoint.proto;l=127 * @return The enablePrivateServiceConnect. */ @java.lang.Override @@ -922,6 +922,76 @@ public boolean getEnablePrivateServiceConnect() { return enablePrivateServiceConnect_; } + public static final int PRIVATE_SERVICE_CONNECT_CONFIG_FIELD_NUMBER = 21; + private com.google.cloud.vertexai.api.PrivateServiceConnectConfig privateServiceConnectConfig_; + /** + * + * + *
+   * Optional. Configuration for private service connect.
+   *
+   * [network][google.cloud.aiplatform.v1.Endpoint.network] and
+   * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
+   * are mutually exclusive.
+   * 
+ * + * + * .google.cloud.vertexai.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the privateServiceConnectConfig field is set. + */ + @java.lang.Override + public boolean hasPrivateServiceConnectConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+   * Optional. Configuration for private service connect.
+   *
+   * [network][google.cloud.aiplatform.v1.Endpoint.network] and
+   * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
+   * are mutually exclusive.
+   * 
+ * + * + * .google.cloud.vertexai.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The privateServiceConnectConfig. + */ + @java.lang.Override + public com.google.cloud.vertexai.api.PrivateServiceConnectConfig + getPrivateServiceConnectConfig() { + return privateServiceConnectConfig_ == null + ? com.google.cloud.vertexai.api.PrivateServiceConnectConfig.getDefaultInstance() + : privateServiceConnectConfig_; + } + /** + * + * + *
+   * Optional. Configuration for private service connect.
+   *
+   * [network][google.cloud.aiplatform.v1.Endpoint.network] and
+   * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
+   * are mutually exclusive.
+   * 
+ * + * + * .google.cloud.vertexai.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.vertexai.api.PrivateServiceConnectConfigOrBuilder + getPrivateServiceConnectConfigOrBuilder() { + return privateServiceConnectConfig_ == null + ? com.google.cloud.vertexai.api.PrivateServiceConnectConfig.getDefaultInstance() + : privateServiceConnectConfig_; + } + public static final int MODEL_DEPLOYMENT_MONITORING_JOB_FIELD_NUMBER = 14; @SuppressWarnings("serial") @@ -1003,7 +1073,7 @@ public com.google.protobuf.ByteString getModelDeploymentMonitoringJobBytes() { */ @java.lang.Override public boolean hasPredictRequestResponseLoggingConfig() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1095,9 +1165,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (enablePrivateServiceConnect_ != false) { output.writeBool(17, enablePrivateServiceConnect_); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(18, getPredictRequestResponseLoggingConfig()); } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(21, getPrivateServiceConnectConfig()); + } getUnknownFields().writeTo(output); } @@ -1163,11 +1236,16 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeBoolSize(17, enablePrivateServiceConnect_); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 18, getPredictRequestResponseLoggingConfig()); } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 21, getPrivateServiceConnectConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1204,6 +1282,11 @@ public boolean equals(final java.lang.Object obj) { } if (!getNetwork().equals(other.getNetwork())) return false; if (getEnablePrivateServiceConnect() != other.getEnablePrivateServiceConnect()) return false; + if (hasPrivateServiceConnectConfig() != other.hasPrivateServiceConnectConfig()) return false; + if (hasPrivateServiceConnectConfig()) { + if (!getPrivateServiceConnectConfig().equals(other.getPrivateServiceConnectConfig())) + return false; + } if (!getModelDeploymentMonitoringJob().equals(other.getModelDeploymentMonitoringJob())) return false; if (hasPredictRequestResponseLoggingConfig() != other.hasPredictRequestResponseLoggingConfig()) @@ -1259,6 +1342,10 @@ public int hashCode() { hash = (53 * hash) + getNetwork().hashCode(); hash = (37 * hash) + ENABLE_PRIVATE_SERVICE_CONNECT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnablePrivateServiceConnect()); + if (hasPrivateServiceConnectConfig()) { + hash = (37 * hash) + PRIVATE_SERVICE_CONNECT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getPrivateServiceConnectConfig().hashCode(); + } hash = (37 * hash) + MODEL_DEPLOYMENT_MONITORING_JOB_FIELD_NUMBER; hash = (53 * hash) + getModelDeploymentMonitoringJob().hashCode(); if (hasPredictRequestResponseLoggingConfig()) { @@ -1436,6 +1523,7 @@ private void maybeForceBuilderInitialization() { getCreateTimeFieldBuilder(); getUpdateTimeFieldBuilder(); getEncryptionSpecFieldBuilder(); + getPrivateServiceConnectConfigFieldBuilder(); getPredictRequestResponseLoggingConfigFieldBuilder(); } } @@ -1474,6 +1562,11 @@ public Builder clear() { } network_ = ""; enablePrivateServiceConnect_ = false; + privateServiceConnectConfig_ = null; + if (privateServiceConnectConfigBuilder_ != null) { + privateServiceConnectConfigBuilder_.dispose(); + privateServiceConnectConfigBuilder_ = null; + } modelDeploymentMonitoringJob_ = ""; predictRequestResponseLoggingConfig_ = null; if (predictRequestResponseLoggingConfigBuilder_ != null) { @@ -1570,14 +1663,21 @@ private void buildPartial0(com.google.cloud.vertexai.api.Endpoint result) { result.enablePrivateServiceConnect_ = enablePrivateServiceConnect_; } if (((from_bitField0_ & 0x00001000) != 0)) { - result.modelDeploymentMonitoringJob_ = modelDeploymentMonitoringJob_; + result.privateServiceConnectConfig_ = + privateServiceConnectConfigBuilder_ == null + ? privateServiceConnectConfig_ + : privateServiceConnectConfigBuilder_.build(); + to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00002000) != 0)) { + result.modelDeploymentMonitoringJob_ = modelDeploymentMonitoringJob_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { result.predictRequestResponseLoggingConfig_ = predictRequestResponseLoggingConfigBuilder_ == null ? predictRequestResponseLoggingConfig_ : predictRequestResponseLoggingConfigBuilder_.build(); - to_bitField0_ |= 0x00000008; + to_bitField0_ |= 0x00000010; } result.bitField0_ |= to_bitField0_; } @@ -1695,9 +1795,12 @@ public Builder mergeFrom(com.google.cloud.vertexai.api.Endpoint other) { if (other.getEnablePrivateServiceConnect() != false) { setEnablePrivateServiceConnect(other.getEnablePrivateServiceConnect()); } + if (other.hasPrivateServiceConnectConfig()) { + mergePrivateServiceConnectConfig(other.getPrivateServiceConnectConfig()); + } if (!other.getModelDeploymentMonitoringJob().isEmpty()) { modelDeploymentMonitoringJob_ = other.modelDeploymentMonitoringJob_; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); } if (other.hasPredictRequestResponseLoggingConfig()) { @@ -1817,7 +1920,7 @@ public Builder mergeFrom( case 114: { modelDeploymentMonitoringJob_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 114 case 136: @@ -1831,9 +1934,16 @@ public Builder mergeFrom( input.readMessage( getPredictRequestResponseLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case 146 + case 170: + { + input.readMessage( + getPrivateServiceConnectConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 170 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4006,7 +4116,7 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { * bool enable_private_service_connect = 17 [deprecated = true]; * * @deprecated google.cloud.vertexai.v1.Endpoint.enable_private_service_connect is deprecated. - * See google/cloud/vertexai/v1/endpoint.proto;l=126 + * See google/cloud/vertexai/v1/endpoint.proto;l=127 * @return The enablePrivateServiceConnect. */ @java.lang.Override @@ -4029,7 +4139,7 @@ public boolean getEnablePrivateServiceConnect() { * bool enable_private_service_connect = 17 [deprecated = true]; * * @deprecated google.cloud.vertexai.v1.Endpoint.enable_private_service_connect is deprecated. - * See google/cloud/vertexai/v1/endpoint.proto;l=126 + * See google/cloud/vertexai/v1/endpoint.proto;l=127 * @param value The enablePrivateServiceConnect to set. * @return This builder for chaining. */ @@ -4056,7 +4166,7 @@ public Builder setEnablePrivateServiceConnect(boolean value) { * bool enable_private_service_connect = 17 [deprecated = true]; * * @deprecated google.cloud.vertexai.v1.Endpoint.enable_private_service_connect is deprecated. - * See google/cloud/vertexai/v1/endpoint.proto;l=126 + * See google/cloud/vertexai/v1/endpoint.proto;l=127 * @return This builder for chaining. */ @java.lang.Deprecated @@ -4067,6 +4177,252 @@ public Builder clearEnablePrivateServiceConnect() { return this; } + private com.google.cloud.vertexai.api.PrivateServiceConnectConfig privateServiceConnectConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vertexai.api.PrivateServiceConnectConfig, + com.google.cloud.vertexai.api.PrivateServiceConnectConfig.Builder, + com.google.cloud.vertexai.api.PrivateServiceConnectConfigOrBuilder> + privateServiceConnectConfigBuilder_; + /** + * + * + *
+     * Optional. Configuration for private service connect.
+     *
+     * [network][google.cloud.aiplatform.v1.Endpoint.network] and
+     * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
+     * are mutually exclusive.
+     * 
+ * + * + * .google.cloud.vertexai.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the privateServiceConnectConfig field is set. + */ + public boolean hasPrivateServiceConnectConfig() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + * + * + *
+     * Optional. Configuration for private service connect.
+     *
+     * [network][google.cloud.aiplatform.v1.Endpoint.network] and
+     * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
+     * are mutually exclusive.
+     * 
+ * + * + * .google.cloud.vertexai.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The privateServiceConnectConfig. + */ + public com.google.cloud.vertexai.api.PrivateServiceConnectConfig + getPrivateServiceConnectConfig() { + if (privateServiceConnectConfigBuilder_ == null) { + return privateServiceConnectConfig_ == null + ? com.google.cloud.vertexai.api.PrivateServiceConnectConfig.getDefaultInstance() + : privateServiceConnectConfig_; + } else { + return privateServiceConnectConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Configuration for private service connect.
+     *
+     * [network][google.cloud.aiplatform.v1.Endpoint.network] and
+     * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
+     * are mutually exclusive.
+     * 
+ * + * + * .google.cloud.vertexai.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPrivateServiceConnectConfig( + com.google.cloud.vertexai.api.PrivateServiceConnectConfig value) { + if (privateServiceConnectConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + privateServiceConnectConfig_ = value; + } else { + privateServiceConnectConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Configuration for private service connect.
+     *
+     * [network][google.cloud.aiplatform.v1.Endpoint.network] and
+     * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
+     * are mutually exclusive.
+     * 
+ * + * + * .google.cloud.vertexai.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPrivateServiceConnectConfig( + com.google.cloud.vertexai.api.PrivateServiceConnectConfig.Builder builderForValue) { + if (privateServiceConnectConfigBuilder_ == null) { + privateServiceConnectConfig_ = builderForValue.build(); + } else { + privateServiceConnectConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Configuration for private service connect.
+     *
+     * [network][google.cloud.aiplatform.v1.Endpoint.network] and
+     * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
+     * are mutually exclusive.
+     * 
+ * + * + * .google.cloud.vertexai.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergePrivateServiceConnectConfig( + com.google.cloud.vertexai.api.PrivateServiceConnectConfig value) { + if (privateServiceConnectConfigBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0) + && privateServiceConnectConfig_ != null + && privateServiceConnectConfig_ + != com.google.cloud.vertexai.api.PrivateServiceConnectConfig.getDefaultInstance()) { + getPrivateServiceConnectConfigBuilder().mergeFrom(value); + } else { + privateServiceConnectConfig_ = value; + } + } else { + privateServiceConnectConfigBuilder_.mergeFrom(value); + } + if (privateServiceConnectConfig_ != null) { + bitField0_ |= 0x00001000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Configuration for private service connect.
+     *
+     * [network][google.cloud.aiplatform.v1.Endpoint.network] and
+     * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
+     * are mutually exclusive.
+     * 
+ * + * + * .google.cloud.vertexai.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPrivateServiceConnectConfig() { + bitField0_ = (bitField0_ & ~0x00001000); + privateServiceConnectConfig_ = null; + if (privateServiceConnectConfigBuilder_ != null) { + privateServiceConnectConfigBuilder_.dispose(); + privateServiceConnectConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Configuration for private service connect.
+     *
+     * [network][google.cloud.aiplatform.v1.Endpoint.network] and
+     * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
+     * are mutually exclusive.
+     * 
+ * + * + * .google.cloud.vertexai.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vertexai.api.PrivateServiceConnectConfig.Builder + getPrivateServiceConnectConfigBuilder() { + bitField0_ |= 0x00001000; + onChanged(); + return getPrivateServiceConnectConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Configuration for private service connect.
+     *
+     * [network][google.cloud.aiplatform.v1.Endpoint.network] and
+     * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
+     * are mutually exclusive.
+     * 
+ * + * + * .google.cloud.vertexai.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vertexai.api.PrivateServiceConnectConfigOrBuilder + getPrivateServiceConnectConfigOrBuilder() { + if (privateServiceConnectConfigBuilder_ != null) { + return privateServiceConnectConfigBuilder_.getMessageOrBuilder(); + } else { + return privateServiceConnectConfig_ == null + ? com.google.cloud.vertexai.api.PrivateServiceConnectConfig.getDefaultInstance() + : privateServiceConnectConfig_; + } + } + /** + * + * + *
+     * Optional. Configuration for private service connect.
+     *
+     * [network][google.cloud.aiplatform.v1.Endpoint.network] and
+     * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
+     * are mutually exclusive.
+     * 
+ * + * + * .google.cloud.vertexai.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vertexai.api.PrivateServiceConnectConfig, + com.google.cloud.vertexai.api.PrivateServiceConnectConfig.Builder, + com.google.cloud.vertexai.api.PrivateServiceConnectConfigOrBuilder> + getPrivateServiceConnectConfigFieldBuilder() { + if (privateServiceConnectConfigBuilder_ == null) { + privateServiceConnectConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vertexai.api.PrivateServiceConnectConfig, + com.google.cloud.vertexai.api.PrivateServiceConnectConfig.Builder, + com.google.cloud.vertexai.api.PrivateServiceConnectConfigOrBuilder>( + getPrivateServiceConnectConfig(), getParentForChildren(), isClean()); + privateServiceConnectConfig_ = null; + } + return privateServiceConnectConfigBuilder_; + } + private java.lang.Object modelDeploymentMonitoringJob_ = ""; /** * @@ -4147,7 +4503,7 @@ public Builder setModelDeploymentMonitoringJob(java.lang.String value) { throw new NullPointerException(); } modelDeploymentMonitoringJob_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -4170,7 +4526,7 @@ public Builder setModelDeploymentMonitoringJob(java.lang.String value) { */ public Builder clearModelDeploymentMonitoringJob() { modelDeploymentMonitoringJob_ = getDefaultInstance().getModelDeploymentMonitoringJob(); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } @@ -4198,7 +4554,7 @@ public Builder setModelDeploymentMonitoringJobBytes(com.google.protobuf.ByteStri } checkByteStringIsUtf8(value); modelDeploymentMonitoringJob_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -4224,7 +4580,7 @@ public Builder setModelDeploymentMonitoringJobBytes(com.google.protobuf.ByteStri * @return Whether the predictRequestResponseLoggingConfig field is set. */ public boolean hasPredictRequestResponseLoggingConfig() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00004000) != 0); } /** * @@ -4270,7 +4626,7 @@ public Builder setPredictRequestResponseLoggingConfig( } else { predictRequestResponseLoggingConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -4292,7 +4648,7 @@ public Builder setPredictRequestResponseLoggingConfig( } else { predictRequestResponseLoggingConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -4310,7 +4666,7 @@ public Builder setPredictRequestResponseLoggingConfig( public Builder mergePredictRequestResponseLoggingConfig( com.google.cloud.vertexai.api.PredictRequestResponseLoggingConfig value) { if (predictRequestResponseLoggingConfigBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) + if (((bitField0_ & 0x00004000) != 0) && predictRequestResponseLoggingConfig_ != null && predictRequestResponseLoggingConfig_ != com.google.cloud.vertexai.api.PredictRequestResponseLoggingConfig @@ -4323,7 +4679,7 @@ public Builder mergePredictRequestResponseLoggingConfig( predictRequestResponseLoggingConfigBuilder_.mergeFrom(value); } if (predictRequestResponseLoggingConfig_ != null) { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); } return this; @@ -4340,7 +4696,7 @@ public Builder mergePredictRequestResponseLoggingConfig( * */ public Builder clearPredictRequestResponseLoggingConfig() { - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); predictRequestResponseLoggingConfig_ = null; if (predictRequestResponseLoggingConfigBuilder_ != null) { predictRequestResponseLoggingConfigBuilder_.dispose(); @@ -4362,7 +4718,7 @@ public Builder clearPredictRequestResponseLoggingConfig() { */ public com.google.cloud.vertexai.api.PredictRequestResponseLoggingConfig.Builder getPredictRequestResponseLoggingConfigBuilder() { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return getPredictRequestResponseLoggingConfigFieldBuilder().getBuilder(); } diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/EndpointOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/EndpointOrBuilder.java index c019394a69e1..763284448406 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/EndpointOrBuilder.java +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/EndpointOrBuilder.java @@ -585,12 +585,66 @@ java.lang.String getLabelsOrDefault( * bool enable_private_service_connect = 17 [deprecated = true]; * * @deprecated google.cloud.vertexai.v1.Endpoint.enable_private_service_connect is deprecated. See - * google/cloud/vertexai/v1/endpoint.proto;l=126 + * google/cloud/vertexai/v1/endpoint.proto;l=127 * @return The enablePrivateServiceConnect. */ @java.lang.Deprecated boolean getEnablePrivateServiceConnect(); + /** + * + * + *
+   * Optional. Configuration for private service connect.
+   *
+   * [network][google.cloud.aiplatform.v1.Endpoint.network] and
+   * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
+   * are mutually exclusive.
+   * 
+ * + * + * .google.cloud.vertexai.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the privateServiceConnectConfig field is set. + */ + boolean hasPrivateServiceConnectConfig(); + /** + * + * + *
+   * Optional. Configuration for private service connect.
+   *
+   * [network][google.cloud.aiplatform.v1.Endpoint.network] and
+   * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
+   * are mutually exclusive.
+   * 
+ * + * + * .google.cloud.vertexai.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The privateServiceConnectConfig. + */ + com.google.cloud.vertexai.api.PrivateServiceConnectConfig getPrivateServiceConnectConfig(); + /** + * + * + *
+   * Optional. Configuration for private service connect.
+   *
+   * [network][google.cloud.aiplatform.v1.Endpoint.network] and
+   * [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config]
+   * are mutually exclusive.
+   * 
+ * + * + * .google.cloud.vertexai.v1.PrivateServiceConnectConfig private_service_connect_config = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.vertexai.api.PrivateServiceConnectConfigOrBuilder + getPrivateServiceConnectConfigOrBuilder(); + /** * * diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/EndpointProto.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/EndpointProto.java index 2211ed0b0920..a60107e1cef6 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/EndpointProto.java +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/EndpointProto.java @@ -68,66 +68,70 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "tion_spec.proto\032*google/cloud/vertexai/v" + "1/explanation.proto\032!google/cloud/vertex" + "ai/v1/io.proto\0320google/cloud/vertexai/v1" - + "/machine_resources.proto\032\037google/protobu" - + "f/timestamp.proto\"\270\010\n\010Endpoint\022\021\n\004name\030\001" - + " \001(\tB\003\340A\003\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022\023\n\013" - + "description\030\003 \001(\t\022E\n\017deployed_models\030\004 \003" - + "(\0132\'.google.cloud.vertexai.v1.DeployedMo" - + "delB\003\340A\003\022K\n\rtraffic_split\030\005 \003(\01324.google" - + ".cloud.vertexai.v1.Endpoint.TrafficSplit" - + "Entry\022\014\n\004etag\030\006 \001(\t\022>\n\006labels\030\007 \003(\0132..go" - + "ogle.cloud.vertexai.v1.Endpoint.LabelsEn" - + "try\0224\n\013create_time\030\010 \001(\0132\032.google.protob" - + "uf.TimestampB\003\340A\003\0224\n\013update_time\030\t \001(\0132\032" - + ".google.protobuf.TimestampB\003\340A\003\022A\n\017encry" - + "ption_spec\030\n \001(\0132(.google.cloud.vertexai" - + ".v1.EncryptionSpec\0227\n\007network\030\r \001(\tB&\340A\001" - + "\372A \n\036compute.googleapis.com/Network\022*\n\036e" - + "nable_private_service_connect\030\021 \001(\010B\002\030\001\022" - + "g\n\037model_deployment_monitoring_job\030\016 \001(\t" - + "B>\340A\003\372A8\n6aiplatform.googleapis.com/Mode" - + "lDeploymentMonitoringJob\022n\n\'predict_requ" - + "est_response_logging_config\030\022 \001(\0132=.goog" - + "le.cloud.vertexai.v1.PredictRequestRespo" - + "nseLoggingConfig\0323\n\021TrafficSplitEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\005:\0028\001\032-\n\013LabelsE" - + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\265\001\352" - + "A\261\001\n\"aiplatform.googleapis.com/Endpoint\022" - + "cloud.google.com/go" - + "/aiplatform/apiv1/aiplatformpb;aiplatfor" - + "mpb\252\002\032Google.Cloud.AIPlatform.V1\312\002\032Googl" - + "e\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::A" - + "IPlatform::V1b\006proto3" + + "/machine_resources.proto\0321google/cloud/v" + + "ertexai/v1/service_networking.proto\032\037goo" + + "gle/protobuf/timestamp.proto\"\234\t\n\010Endpoin" + + "t\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n\014display_name\030\002 \001" + + "(\tB\003\340A\002\022\023\n\013description\030\003 \001(\t\022E\n\017deployed" + + "_models\030\004 \003(\0132\'.google.cloud.vertexai.v1" + + ".DeployedModelB\003\340A\003\022K\n\rtraffic_split\030\005 \003" + + "(\01324.google.cloud.vertexai.v1.Endpoint.T" + + "rafficSplitEntry\022\014\n\004etag\030\006 \001(\t\022>\n\006labels" + + "\030\007 \003(\0132..google.cloud.vertexai.v1.Endpoi" + + "nt.LabelsEntry\0224\n\013create_time\030\010 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\003\340A\003\0224\n\013update_t" + + "ime\030\t \001(\0132\032.google.protobuf.TimestampB\003\340" + + "A\003\022A\n\017encryption_spec\030\n \001(\0132(.google.clo" + + "ud.vertexai.v1.EncryptionSpec\0227\n\007network" + + "\030\r \001(\tB&\340A\001\372A \n\036compute.googleapis.com/N" + + "etwork\022*\n\036enable_private_service_connect" + + "\030\021 \001(\010B\002\030\001\022b\n\036private_service_connect_co" + + "nfig\030\025 \001(\01325.google.cloud.vertexai.v1.Pr" + + "ivateServiceConnectConfigB\003\340A\001\022g\n\037model_" + + "deployment_monitoring_job\030\016 \001(\tB>\340A\003\372A8\n" + + "6aiplatform.googleapis.com/ModelDeployme" + + "ntMonitoringJob\022n\n\'predict_request_respo" + + "nse_logging_config\030\022 \001(\0132=.google.cloud." + + "vertexai.v1.PredictRequestResponseLoggin" + + "gConfig\0323\n\021TrafficSplitEntry\022\013\n\003key\030\001 \001(" + + "\t\022\r\n\005value\030\002 \001(\005:\0028\001\032-\n\013LabelsEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\265\001\352A\261\001\n\"aipl" + + "atform.googleapis.com/Endpoint\022cloud.google.com/go/aiplatfo" + + "rm/apiv1/aiplatformpb;aiplatformpb\252\002\032Goo" + + "gle.Cloud.AIPlatform.V1\312\002\032Google\\Cloud\\A" + + "IPlatform\\V1\352\002\035Google::Cloud::AIPlatform" + + "::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -139,6 +143,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.vertexai.api.ExplanationProto.getDescriptor(), com.google.cloud.vertexai.api.IoProto.getDescriptor(), com.google.cloud.vertexai.api.MachineResourcesProto.getDescriptor(), + com.google.cloud.vertexai.api.ServiceNetworkingProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_google_cloud_vertexai_v1_Endpoint_descriptor = @@ -159,6 +164,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EncryptionSpec", "Network", "EnablePrivateServiceConnect", + "PrivateServiceConnectConfig", "ModelDeploymentMonitoringJob", "PredictRequestResponseLoggingConfig", }); @@ -229,6 +235,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.vertexai.api.ExplanationProto.getDescriptor(); com.google.cloud.vertexai.api.IoProto.getDescriptor(); com.google.cloud.vertexai.api.MachineResourcesProto.getDescriptor(); + com.google.cloud.vertexai.api.ServiceNetworkingProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); } diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/FunctionCallingConfig.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/FunctionCallingConfig.java new file mode 100644 index 000000000000..6973ecc76460 --- /dev/null +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/FunctionCallingConfig.java @@ -0,0 +1,1119 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vertexai/v1/tool.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.vertexai.api; + +/** + * + * + *
+ * Function calling config.
+ * 
+ * + * Protobuf type {@code google.cloud.vertexai.v1.FunctionCallingConfig} + */ +public final class FunctionCallingConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vertexai.v1.FunctionCallingConfig) + FunctionCallingConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use FunctionCallingConfig.newBuilder() to construct. + private FunctionCallingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FunctionCallingConfig() { + mode_ = 0; + allowedFunctionNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FunctionCallingConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vertexai.api.ToolProto + .internal_static_google_cloud_vertexai_v1_FunctionCallingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vertexai.api.ToolProto + .internal_static_google_cloud_vertexai_v1_FunctionCallingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vertexai.api.FunctionCallingConfig.class, + com.google.cloud.vertexai.api.FunctionCallingConfig.Builder.class); + } + + /** + * + * + *
+   * Function calling mode.
+   * 
+ * + * Protobuf enum {@code google.cloud.vertexai.v1.FunctionCallingConfig.Mode} + */ + public enum Mode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified function calling mode. This value should not be used.
+     * 
+ * + * MODE_UNSPECIFIED = 0; + */ + MODE_UNSPECIFIED(0), + /** + * + * + *
+     * Default model behavior, model decides to predict either a function call
+     * or a natural language repspose.
+     * 
+ * + * AUTO = 1; + */ + AUTO(1), + /** + * + * + *
+     * Model is constrained to always predicting a function call only.
+     * If "allowed_function_names" are set, the predicted function call will be
+     * limited to any one of "allowed_function_names", else the predicted
+     * function call will be any one of the provided "function_declarations".
+     * 
+ * + * ANY = 2; + */ + ANY(2), + /** + * + * + *
+     * Model will not predict any function call. Model behavior is same as when
+     * not passing any function declarations.
+     * 
+ * + * NONE = 3; + */ + NONE(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified function calling mode. This value should not be used.
+     * 
+ * + * MODE_UNSPECIFIED = 0; + */ + public static final int MODE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Default model behavior, model decides to predict either a function call
+     * or a natural language repspose.
+     * 
+ * + * AUTO = 1; + */ + public static final int AUTO_VALUE = 1; + /** + * + * + *
+     * Model is constrained to always predicting a function call only.
+     * If "allowed_function_names" are set, the predicted function call will be
+     * limited to any one of "allowed_function_names", else the predicted
+     * function call will be any one of the provided "function_declarations".
+     * 
+ * + * ANY = 2; + */ + public static final int ANY_VALUE = 2; + /** + * + * + *
+     * Model will not predict any function call. Model behavior is same as when
+     * not passing any function declarations.
+     * 
+ * + * NONE = 3; + */ + public static final int NONE_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Mode valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Mode forNumber(int value) { + switch (value) { + case 0: + return MODE_UNSPECIFIED; + case 1: + return AUTO; + case 2: + return ANY; + case 3: + return NONE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Mode findValueByNumber(int number) { + return Mode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.vertexai.api.FunctionCallingConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Mode[] VALUES = values(); + + public static Mode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Mode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.vertexai.v1.FunctionCallingConfig.Mode) + } + + public static final int MODE_FIELD_NUMBER = 1; + private int mode_ = 0; + /** + * + * + *
+   * Optional. Function calling mode.
+   * 
+ * + * + * .google.cloud.vertexai.v1.FunctionCallingConfig.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override + public int getModeValue() { + return mode_; + } + /** + * + * + *
+   * Optional. Function calling mode.
+   * 
+ * + * + * .google.cloud.vertexai.v1.FunctionCallingConfig.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mode. + */ + @java.lang.Override + public com.google.cloud.vertexai.api.FunctionCallingConfig.Mode getMode() { + com.google.cloud.vertexai.api.FunctionCallingConfig.Mode result = + com.google.cloud.vertexai.api.FunctionCallingConfig.Mode.forNumber(mode_); + return result == null + ? com.google.cloud.vertexai.api.FunctionCallingConfig.Mode.UNRECOGNIZED + : result; + } + + public static final int ALLOWED_FUNCTION_NAMES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList allowedFunctionNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * Optional. Function names to call. Only set when the Mode is ANY. Function
+   * names should match [FunctionDeclaration.name]. With mode set to ANY, model
+   * will predict a function call from the set of function names provided.
+   * 
+ * + * repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the allowedFunctionNames. + */ + public com.google.protobuf.ProtocolStringList getAllowedFunctionNamesList() { + return allowedFunctionNames_; + } + /** + * + * + *
+   * Optional. Function names to call. Only set when the Mode is ANY. Function
+   * names should match [FunctionDeclaration.name]. With mode set to ANY, model
+   * will predict a function call from the set of function names provided.
+   * 
+ * + * repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of allowedFunctionNames. + */ + public int getAllowedFunctionNamesCount() { + return allowedFunctionNames_.size(); + } + /** + * + * + *
+   * Optional. Function names to call. Only set when the Mode is ANY. Function
+   * names should match [FunctionDeclaration.name]. With mode set to ANY, model
+   * will predict a function call from the set of function names provided.
+   * 
+ * + * repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The allowedFunctionNames at the given index. + */ + public java.lang.String getAllowedFunctionNames(int index) { + return allowedFunctionNames_.get(index); + } + /** + * + * + *
+   * Optional. Function names to call. Only set when the Mode is ANY. Function
+   * names should match [FunctionDeclaration.name]. With mode set to ANY, model
+   * will predict a function call from the set of function names provided.
+   * 
+ * + * repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the allowedFunctionNames at the given index. + */ + public com.google.protobuf.ByteString getAllowedFunctionNamesBytes(int index) { + return allowedFunctionNames_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (mode_ + != com.google.cloud.vertexai.api.FunctionCallingConfig.Mode.MODE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, mode_); + } + for (int i = 0; i < allowedFunctionNames_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 2, allowedFunctionNames_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (mode_ + != com.google.cloud.vertexai.api.FunctionCallingConfig.Mode.MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, mode_); + } + { + int dataSize = 0; + for (int i = 0; i < allowedFunctionNames_.size(); i++) { + dataSize += computeStringSizeNoTag(allowedFunctionNames_.getRaw(i)); + } + size += dataSize; + size += 1 * getAllowedFunctionNamesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vertexai.api.FunctionCallingConfig)) { + return super.equals(obj); + } + com.google.cloud.vertexai.api.FunctionCallingConfig other = + (com.google.cloud.vertexai.api.FunctionCallingConfig) obj; + + if (mode_ != other.mode_) return false; + if (!getAllowedFunctionNamesList().equals(other.getAllowedFunctionNamesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MODE_FIELD_NUMBER; + hash = (53 * hash) + mode_; + if (getAllowedFunctionNamesCount() > 0) { + hash = (37 * hash) + ALLOWED_FUNCTION_NAMES_FIELD_NUMBER; + hash = (53 * hash) + getAllowedFunctionNamesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vertexai.api.FunctionCallingConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vertexai.api.FunctionCallingConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vertexai.api.FunctionCallingConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vertexai.api.FunctionCallingConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vertexai.api.FunctionCallingConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vertexai.api.FunctionCallingConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vertexai.api.FunctionCallingConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vertexai.api.FunctionCallingConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vertexai.api.FunctionCallingConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vertexai.api.FunctionCallingConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vertexai.api.FunctionCallingConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vertexai.api.FunctionCallingConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.vertexai.api.FunctionCallingConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Function calling config.
+   * 
+ * + * Protobuf type {@code google.cloud.vertexai.v1.FunctionCallingConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vertexai.v1.FunctionCallingConfig) + com.google.cloud.vertexai.api.FunctionCallingConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vertexai.api.ToolProto + .internal_static_google_cloud_vertexai_v1_FunctionCallingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vertexai.api.ToolProto + .internal_static_google_cloud_vertexai_v1_FunctionCallingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vertexai.api.FunctionCallingConfig.class, + com.google.cloud.vertexai.api.FunctionCallingConfig.Builder.class); + } + + // Construct using com.google.cloud.vertexai.api.FunctionCallingConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + mode_ = 0; + allowedFunctionNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vertexai.api.ToolProto + .internal_static_google_cloud_vertexai_v1_FunctionCallingConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.vertexai.api.FunctionCallingConfig getDefaultInstanceForType() { + return com.google.cloud.vertexai.api.FunctionCallingConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vertexai.api.FunctionCallingConfig build() { + com.google.cloud.vertexai.api.FunctionCallingConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vertexai.api.FunctionCallingConfig buildPartial() { + com.google.cloud.vertexai.api.FunctionCallingConfig result = + new com.google.cloud.vertexai.api.FunctionCallingConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vertexai.api.FunctionCallingConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.mode_ = mode_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + allowedFunctionNames_.makeImmutable(); + result.allowedFunctionNames_ = allowedFunctionNames_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vertexai.api.FunctionCallingConfig) { + return mergeFrom((com.google.cloud.vertexai.api.FunctionCallingConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vertexai.api.FunctionCallingConfig other) { + if (other == com.google.cloud.vertexai.api.FunctionCallingConfig.getDefaultInstance()) + return this; + if (other.mode_ != 0) { + setModeValue(other.getModeValue()); + } + if (!other.allowedFunctionNames_.isEmpty()) { + if (allowedFunctionNames_.isEmpty()) { + allowedFunctionNames_ = other.allowedFunctionNames_; + bitField0_ |= 0x00000002; + } else { + ensureAllowedFunctionNamesIsMutable(); + allowedFunctionNames_.addAll(other.allowedFunctionNames_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + mode_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAllowedFunctionNamesIsMutable(); + allowedFunctionNames_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int mode_ = 0; + /** + * + * + *
+     * Optional. Function calling mode.
+     * 
+ * + * + * .google.cloud.vertexai.v1.FunctionCallingConfig.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override + public int getModeValue() { + return mode_; + } + /** + * + * + *
+     * Optional. Function calling mode.
+     * 
+ * + * + * .google.cloud.vertexai.v1.FunctionCallingConfig.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for mode to set. + * @return This builder for chaining. + */ + public Builder setModeValue(int value) { + mode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Function calling mode.
+     * 
+ * + * + * .google.cloud.vertexai.v1.FunctionCallingConfig.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mode. + */ + @java.lang.Override + public com.google.cloud.vertexai.api.FunctionCallingConfig.Mode getMode() { + com.google.cloud.vertexai.api.FunctionCallingConfig.Mode result = + com.google.cloud.vertexai.api.FunctionCallingConfig.Mode.forNumber(mode_); + return result == null + ? com.google.cloud.vertexai.api.FunctionCallingConfig.Mode.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional. Function calling mode.
+     * 
+ * + * + * .google.cloud.vertexai.v1.FunctionCallingConfig.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The mode to set. + * @return This builder for chaining. + */ + public Builder setMode(com.google.cloud.vertexai.api.FunctionCallingConfig.Mode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + mode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Function calling mode.
+     * 
+ * + * + * .google.cloud.vertexai.v1.FunctionCallingConfig.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearMode() { + bitField0_ = (bitField0_ & ~0x00000001); + mode_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList allowedFunctionNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAllowedFunctionNamesIsMutable() { + if (!allowedFunctionNames_.isModifiable()) { + allowedFunctionNames_ = new com.google.protobuf.LazyStringArrayList(allowedFunctionNames_); + } + bitField0_ |= 0x00000002; + } + /** + * + * + *
+     * Optional. Function names to call. Only set when the Mode is ANY. Function
+     * names should match [FunctionDeclaration.name]. With mode set to ANY, model
+     * will predict a function call from the set of function names provided.
+     * 
+ * + * repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the allowedFunctionNames. + */ + public com.google.protobuf.ProtocolStringList getAllowedFunctionNamesList() { + allowedFunctionNames_.makeImmutable(); + return allowedFunctionNames_; + } + /** + * + * + *
+     * Optional. Function names to call. Only set when the Mode is ANY. Function
+     * names should match [FunctionDeclaration.name]. With mode set to ANY, model
+     * will predict a function call from the set of function names provided.
+     * 
+ * + * repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of allowedFunctionNames. + */ + public int getAllowedFunctionNamesCount() { + return allowedFunctionNames_.size(); + } + /** + * + * + *
+     * Optional. Function names to call. Only set when the Mode is ANY. Function
+     * names should match [FunctionDeclaration.name]. With mode set to ANY, model
+     * will predict a function call from the set of function names provided.
+     * 
+ * + * repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The allowedFunctionNames at the given index. + */ + public java.lang.String getAllowedFunctionNames(int index) { + return allowedFunctionNames_.get(index); + } + /** + * + * + *
+     * Optional. Function names to call. Only set when the Mode is ANY. Function
+     * names should match [FunctionDeclaration.name]. With mode set to ANY, model
+     * will predict a function call from the set of function names provided.
+     * 
+ * + * repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the allowedFunctionNames at the given index. + */ + public com.google.protobuf.ByteString getAllowedFunctionNamesBytes(int index) { + return allowedFunctionNames_.getByteString(index); + } + /** + * + * + *
+     * Optional. Function names to call. Only set when the Mode is ANY. Function
+     * names should match [FunctionDeclaration.name]. With mode set to ANY, model
+     * will predict a function call from the set of function names provided.
+     * 
+ * + * repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The allowedFunctionNames to set. + * @return This builder for chaining. + */ + public Builder setAllowedFunctionNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedFunctionNamesIsMutable(); + allowedFunctionNames_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Function names to call. Only set when the Mode is ANY. Function
+     * names should match [FunctionDeclaration.name]. With mode set to ANY, model
+     * will predict a function call from the set of function names provided.
+     * 
+ * + * repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The allowedFunctionNames to add. + * @return This builder for chaining. + */ + public Builder addAllowedFunctionNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedFunctionNamesIsMutable(); + allowedFunctionNames_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Function names to call. Only set when the Mode is ANY. Function
+     * names should match [FunctionDeclaration.name]. With mode set to ANY, model
+     * will predict a function call from the set of function names provided.
+     * 
+ * + * repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The allowedFunctionNames to add. + * @return This builder for chaining. + */ + public Builder addAllAllowedFunctionNames(java.lang.Iterable values) { + ensureAllowedFunctionNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedFunctionNames_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Function names to call. Only set when the Mode is ANY. Function
+     * names should match [FunctionDeclaration.name]. With mode set to ANY, model
+     * will predict a function call from the set of function names provided.
+     * 
+ * + * repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAllowedFunctionNames() { + allowedFunctionNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Function names to call. Only set when the Mode is ANY. Function
+     * names should match [FunctionDeclaration.name]. With mode set to ANY, model
+     * will predict a function call from the set of function names provided.
+     * 
+ * + * repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the allowedFunctionNames to add. + * @return This builder for chaining. + */ + public Builder addAllowedFunctionNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAllowedFunctionNamesIsMutable(); + allowedFunctionNames_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vertexai.v1.FunctionCallingConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vertexai.v1.FunctionCallingConfig) + private static final com.google.cloud.vertexai.api.FunctionCallingConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vertexai.api.FunctionCallingConfig(); + } + + public static com.google.cloud.vertexai.api.FunctionCallingConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FunctionCallingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.vertexai.api.FunctionCallingConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/FunctionCallingConfigOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/FunctionCallingConfigOrBuilder.java new file mode 100644 index 000000000000..0f74873d30a8 --- /dev/null +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/FunctionCallingConfigOrBuilder.java @@ -0,0 +1,118 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vertexai/v1/tool.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.vertexai.api; + +public interface FunctionCallingConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vertexai.v1.FunctionCallingConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Function calling mode.
+   * 
+ * + * + * .google.cloud.vertexai.v1.FunctionCallingConfig.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for mode. + */ + int getModeValue(); + /** + * + * + *
+   * Optional. Function calling mode.
+   * 
+ * + * + * .google.cloud.vertexai.v1.FunctionCallingConfig.Mode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mode. + */ + com.google.cloud.vertexai.api.FunctionCallingConfig.Mode getMode(); + + /** + * + * + *
+   * Optional. Function names to call. Only set when the Mode is ANY. Function
+   * names should match [FunctionDeclaration.name]. With mode set to ANY, model
+   * will predict a function call from the set of function names provided.
+   * 
+ * + * repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the allowedFunctionNames. + */ + java.util.List getAllowedFunctionNamesList(); + /** + * + * + *
+   * Optional. Function names to call. Only set when the Mode is ANY. Function
+   * names should match [FunctionDeclaration.name]. With mode set to ANY, model
+   * will predict a function call from the set of function names provided.
+   * 
+ * + * repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of allowedFunctionNames. + */ + int getAllowedFunctionNamesCount(); + /** + * + * + *
+   * Optional. Function names to call. Only set when the Mode is ANY. Function
+   * names should match [FunctionDeclaration.name]. With mode set to ANY, model
+   * will predict a function call from the set of function names provided.
+   * 
+ * + * repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The allowedFunctionNames at the given index. + */ + java.lang.String getAllowedFunctionNames(int index); + /** + * + * + *
+   * Optional. Function names to call. Only set when the Mode is ANY. Function
+   * names should match [FunctionDeclaration.name]. With mode set to ANY, model
+   * will predict a function call from the set of function names provided.
+   * 
+ * + * repeated string allowed_function_names = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the allowedFunctionNames at the given index. + */ + com.google.protobuf.ByteString getAllowedFunctionNamesBytes(int index); +} diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerateContentRequest.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerateContentRequest.java index 33cf6b1bf994..514185eca21e 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerateContentRequest.java +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerateContentRequest.java @@ -391,6 +391,65 @@ public com.google.cloud.vertexai.api.ToolOrBuilder getToolsOrBuilder(int index) return tools_.get(index); } + public static final int TOOL_CONFIG_FIELD_NUMBER = 7; + private com.google.cloud.vertexai.api.ToolConfig toolConfig_; + /** + * + * + *
+   * Optional. Tool config. This config is shared for all tools provided in the
+   * request.
+   * 
+ * + * + * .google.cloud.vertexai.v1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolConfig field is set. + */ + @java.lang.Override + public boolean hasToolConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Optional. Tool config. This config is shared for all tools provided in the
+   * request.
+   * 
+ * + * + * .google.cloud.vertexai.v1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolConfig. + */ + @java.lang.Override + public com.google.cloud.vertexai.api.ToolConfig getToolConfig() { + return toolConfig_ == null + ? com.google.cloud.vertexai.api.ToolConfig.getDefaultInstance() + : toolConfig_; + } + /** + * + * + *
+   * Optional. Tool config. This config is shared for all tools provided in the
+   * request.
+   * 
+ * + * + * .google.cloud.vertexai.v1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.vertexai.api.ToolConfigOrBuilder getToolConfigOrBuilder() { + return toolConfig_ == null + ? com.google.cloud.vertexai.api.ToolConfig.getDefaultInstance() + : toolConfig_; + } + public static final int SAFETY_SETTINGS_FIELD_NUMBER = 3; @SuppressWarnings("serial") @@ -495,7 +554,7 @@ public com.google.cloud.vertexai.api.SafetySettingOrBuilder getSafetySettingsOrB */ @java.lang.Override public boolean hasGenerationConfig() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -554,7 +613,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < safetySettings_.size(); i++) { output.writeMessage(3, safetySettings_.get(i)); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(4, getGenerationConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { @@ -563,6 +622,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < tools_.size(); i++) { output.writeMessage(6, tools_.get(i)); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getToolConfig()); + } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(8, getSystemInstruction()); } @@ -581,7 +643,7 @@ public int getSerializedSize() { for (int i = 0; i < safetySettings_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, safetySettings_.get(i)); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getGenerationConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { @@ -590,6 +652,9 @@ public int getSerializedSize() { for (int i = 0; i < tools_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, tools_.get(i)); } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getToolConfig()); + } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSystemInstruction()); } @@ -616,6 +681,10 @@ public boolean equals(final java.lang.Object obj) { if (!getSystemInstruction().equals(other.getSystemInstruction())) return false; } if (!getToolsList().equals(other.getToolsList())) return false; + if (hasToolConfig() != other.hasToolConfig()) return false; + if (hasToolConfig()) { + if (!getToolConfig().equals(other.getToolConfig())) return false; + } if (!getSafetySettingsList().equals(other.getSafetySettingsList())) return false; if (hasGenerationConfig() != other.hasGenerationConfig()) return false; if (hasGenerationConfig()) { @@ -646,6 +715,10 @@ public int hashCode() { hash = (37 * hash) + TOOLS_FIELD_NUMBER; hash = (53 * hash) + getToolsList().hashCode(); } + if (hasToolConfig()) { + hash = (37 * hash) + TOOL_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getToolConfig().hashCode(); + } if (getSafetySettingsCount() > 0) { hash = (37 * hash) + SAFETY_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getSafetySettingsList().hashCode(); @@ -797,6 +870,7 @@ private void maybeForceBuilderInitialization() { getContentsFieldBuilder(); getSystemInstructionFieldBuilder(); getToolsFieldBuilder(); + getToolConfigFieldBuilder(); getSafetySettingsFieldBuilder(); getGenerationConfigFieldBuilder(); } @@ -826,13 +900,18 @@ public Builder clear() { toolsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); + toolConfig_ = null; + if (toolConfigBuilder_ != null) { + toolConfigBuilder_.dispose(); + toolConfigBuilder_ = null; + } if (safetySettingsBuilder_ == null) { safetySettings_ = java.util.Collections.emptyList(); } else { safetySettings_ = null; safetySettingsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); generationConfig_ = null; if (generationConfigBuilder_ != null) { generationConfigBuilder_.dispose(); @@ -894,9 +973,9 @@ private void buildPartialRepeatedFields( result.tools_ = toolsBuilder_.build(); } if (safetySettingsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { safetySettings_ = java.util.Collections.unmodifiableList(safetySettings_); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); } result.safetySettings_ = safetySettings_; } else { @@ -917,10 +996,14 @@ private void buildPartial0(com.google.cloud.vertexai.api.GenerateContentRequest : systemInstructionBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { + result.toolConfig_ = toolConfigBuilder_ == null ? toolConfig_ : toolConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { result.generationConfig_ = generationConfigBuilder_ == null ? generationConfig_ : generationConfigBuilder_.build(); - to_bitField0_ |= 0x00000002; + to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @@ -1033,11 +1116,14 @@ public Builder mergeFrom(com.google.cloud.vertexai.api.GenerateContentRequest ot } } } + if (other.hasToolConfig()) { + mergeToolConfig(other.getToolConfig()); + } if (safetySettingsBuilder_ == null) { if (!other.safetySettings_.isEmpty()) { if (safetySettings_.isEmpty()) { safetySettings_ = other.safetySettings_; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); } else { ensureSafetySettingsIsMutable(); safetySettings_.addAll(other.safetySettings_); @@ -1050,7 +1136,7 @@ public Builder mergeFrom(com.google.cloud.vertexai.api.GenerateContentRequest ot safetySettingsBuilder_.dispose(); safetySettingsBuilder_ = null; safetySettings_ = other.safetySettings_; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); safetySettingsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSafetySettingsFieldBuilder() @@ -1119,7 +1205,7 @@ public Builder mergeFrom( { input.readMessage( getGenerationConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 34 case 42: @@ -1141,6 +1227,12 @@ public Builder mergeFrom( } break; } // case 50 + case 58: + { + input.readMessage(getToolConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 58 case 66: { input.readMessage( @@ -2433,14 +2525,226 @@ public java.util.List getToolsBuilde return toolsBuilder_; } + private com.google.cloud.vertexai.api.ToolConfig toolConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vertexai.api.ToolConfig, + com.google.cloud.vertexai.api.ToolConfig.Builder, + com.google.cloud.vertexai.api.ToolConfigOrBuilder> + toolConfigBuilder_; + /** + * + * + *
+     * Optional. Tool config. This config is shared for all tools provided in the
+     * request.
+     * 
+ * + * + * .google.cloud.vertexai.v1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolConfig field is set. + */ + public boolean hasToolConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+     * Optional. Tool config. This config is shared for all tools provided in the
+     * request.
+     * 
+ * + * + * .google.cloud.vertexai.v1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolConfig. + */ + public com.google.cloud.vertexai.api.ToolConfig getToolConfig() { + if (toolConfigBuilder_ == null) { + return toolConfig_ == null + ? com.google.cloud.vertexai.api.ToolConfig.getDefaultInstance() + : toolConfig_; + } else { + return toolConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Tool config. This config is shared for all tools provided in the
+     * request.
+     * 
+ * + * + * .google.cloud.vertexai.v1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolConfig(com.google.cloud.vertexai.api.ToolConfig value) { + if (toolConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toolConfig_ = value; + } else { + toolConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Tool config. This config is shared for all tools provided in the
+     * request.
+     * 
+ * + * + * .google.cloud.vertexai.v1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolConfig(com.google.cloud.vertexai.api.ToolConfig.Builder builderForValue) { + if (toolConfigBuilder_ == null) { + toolConfig_ = builderForValue.build(); + } else { + toolConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Tool config. This config is shared for all tools provided in the
+     * request.
+     * 
+ * + * + * .google.cloud.vertexai.v1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeToolConfig(com.google.cloud.vertexai.api.ToolConfig value) { + if (toolConfigBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && toolConfig_ != null + && toolConfig_ != com.google.cloud.vertexai.api.ToolConfig.getDefaultInstance()) { + getToolConfigBuilder().mergeFrom(value); + } else { + toolConfig_ = value; + } + } else { + toolConfigBuilder_.mergeFrom(value); + } + if (toolConfig_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Tool config. This config is shared for all tools provided in the
+     * request.
+     * 
+ * + * + * .google.cloud.vertexai.v1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearToolConfig() { + bitField0_ = (bitField0_ & ~0x00000010); + toolConfig_ = null; + if (toolConfigBuilder_ != null) { + toolConfigBuilder_.dispose(); + toolConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Tool config. This config is shared for all tools provided in the
+     * request.
+     * 
+ * + * + * .google.cloud.vertexai.v1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vertexai.api.ToolConfig.Builder getToolConfigBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getToolConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Tool config. This config is shared for all tools provided in the
+     * request.
+     * 
+ * + * + * .google.cloud.vertexai.v1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vertexai.api.ToolConfigOrBuilder getToolConfigOrBuilder() { + if (toolConfigBuilder_ != null) { + return toolConfigBuilder_.getMessageOrBuilder(); + } else { + return toolConfig_ == null + ? com.google.cloud.vertexai.api.ToolConfig.getDefaultInstance() + : toolConfig_; + } + } + /** + * + * + *
+     * Optional. Tool config. This config is shared for all tools provided in the
+     * request.
+     * 
+ * + * + * .google.cloud.vertexai.v1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vertexai.api.ToolConfig, + com.google.cloud.vertexai.api.ToolConfig.Builder, + com.google.cloud.vertexai.api.ToolConfigOrBuilder> + getToolConfigFieldBuilder() { + if (toolConfigBuilder_ == null) { + toolConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vertexai.api.ToolConfig, + com.google.cloud.vertexai.api.ToolConfig.Builder, + com.google.cloud.vertexai.api.ToolConfigOrBuilder>( + getToolConfig(), getParentForChildren(), isClean()); + toolConfig_ = null; + } + return toolConfigBuilder_; + } + private java.util.List safetySettings_ = java.util.Collections.emptyList(); private void ensureSafetySettingsIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { + if (!((bitField0_ & 0x00000020) != 0)) { safetySettings_ = new java.util.ArrayList(safetySettings_); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; } } @@ -2689,7 +2993,7 @@ public Builder addAllSafetySettings( public Builder clearSafetySettings() { if (safetySettingsBuilder_ == null) { safetySettings_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { safetySettingsBuilder_.clear(); @@ -2834,7 +3138,7 @@ public com.google.cloud.vertexai.api.SafetySetting.Builder addSafetySettingsBuil com.google.cloud.vertexai.api.SafetySetting.Builder, com.google.cloud.vertexai.api.SafetySettingOrBuilder>( safetySettings_, - ((bitField0_ & 0x00000010) != 0), + ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); safetySettings_ = null; @@ -2862,7 +3166,7 @@ public com.google.cloud.vertexai.api.SafetySetting.Builder addSafetySettingsBuil * @return Whether the generationConfig field is set. */ public boolean hasGenerationConfig() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -2906,7 +3210,7 @@ public Builder setGenerationConfig(com.google.cloud.vertexai.api.GenerationConfi } else { generationConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2928,7 +3232,7 @@ public Builder setGenerationConfig( } else { generationConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2945,7 +3249,7 @@ public Builder setGenerationConfig( */ public Builder mergeGenerationConfig(com.google.cloud.vertexai.api.GenerationConfig value) { if (generationConfigBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000040) != 0) && generationConfig_ != null && generationConfig_ != com.google.cloud.vertexai.api.GenerationConfig.getDefaultInstance()) { @@ -2957,7 +3261,7 @@ public Builder mergeGenerationConfig(com.google.cloud.vertexai.api.GenerationCon generationConfigBuilder_.mergeFrom(value); } if (generationConfig_ != null) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } return this; @@ -2974,7 +3278,7 @@ public Builder mergeGenerationConfig(com.google.cloud.vertexai.api.GenerationCon * */ public Builder clearGenerationConfig() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); generationConfig_ = null; if (generationConfigBuilder_ != null) { generationConfigBuilder_.dispose(); @@ -2995,7 +3299,7 @@ public Builder clearGenerationConfig() { * */ public com.google.cloud.vertexai.api.GenerationConfig.Builder getGenerationConfigBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return getGenerationConfigFieldBuilder().getBuilder(); } diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerateContentRequestOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerateContentRequestOrBuilder.java index 757a3a08e3b2..a4834cdc8088 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerateContentRequestOrBuilder.java +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerateContentRequestOrBuilder.java @@ -268,6 +268,50 @@ public interface GenerateContentRequestOrBuilder */ com.google.cloud.vertexai.api.ToolOrBuilder getToolsOrBuilder(int index); + /** + * + * + *
+   * Optional. Tool config. This config is shared for all tools provided in the
+   * request.
+   * 
+ * + * + * .google.cloud.vertexai.v1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolConfig field is set. + */ + boolean hasToolConfig(); + /** + * + * + *
+   * Optional. Tool config. This config is shared for all tools provided in the
+   * request.
+   * 
+ * + * + * .google.cloud.vertexai.v1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolConfig. + */ + com.google.cloud.vertexai.api.ToolConfig getToolConfig(); + /** + * + * + *
+   * Optional. Tool config. This config is shared for all tools provided in the
+   * request.
+   * 
+ * + * + * .google.cloud.vertexai.v1.ToolConfig tool_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.vertexai.api.ToolConfigOrBuilder getToolConfigOrBuilder(); + /** * * diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerationConfig.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerationConfig.java index d5a28f0046d0..5f6a4814fcab 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerationConfig.java +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerationConfig.java @@ -423,6 +423,80 @@ public com.google.protobuf.ByteString getResponseMimeTypeBytes() { } } + public static final int RESPONSE_SCHEMA_FIELD_NUMBER = 16; + private com.google.cloud.vertexai.api.Schema responseSchema_; + /** + * + * + *
+   * Optional. The `Schema` object allows the definition of input and output
+   * data types. These types can be objects, but also primitives and arrays.
+   * Represents a select subset of an [OpenAPI 3.0 schema
+   * object](https://spec.openapis.org/oas/v3.0.3#schema).
+   * If set, a compatible response_mime_type must also be set.
+   * Compatible mimetypes:
+   * `application/json`: Schema for JSON response.
+   * 
+ * + * + * optional .google.cloud.vertexai.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the responseSchema field is set. + */ + @java.lang.Override + public boolean hasResponseSchema() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
+   * Optional. The `Schema` object allows the definition of input and output
+   * data types. These types can be objects, but also primitives and arrays.
+   * Represents a select subset of an [OpenAPI 3.0 schema
+   * object](https://spec.openapis.org/oas/v3.0.3#schema).
+   * If set, a compatible response_mime_type must also be set.
+   * Compatible mimetypes:
+   * `application/json`: Schema for JSON response.
+   * 
+ * + * + * optional .google.cloud.vertexai.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The responseSchema. + */ + @java.lang.Override + public com.google.cloud.vertexai.api.Schema getResponseSchema() { + return responseSchema_ == null + ? com.google.cloud.vertexai.api.Schema.getDefaultInstance() + : responseSchema_; + } + /** + * + * + *
+   * Optional. The `Schema` object allows the definition of input and output
+   * data types. These types can be objects, but also primitives and arrays.
+   * Represents a select subset of an [OpenAPI 3.0 schema
+   * object](https://spec.openapis.org/oas/v3.0.3#schema).
+   * If set, a compatible response_mime_type must also be set.
+   * Compatible mimetypes:
+   * `application/json`: Schema for JSON response.
+   * 
+ * + * + * optional .google.cloud.vertexai.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.vertexai.api.SchemaOrBuilder getResponseSchemaOrBuilder() { + return responseSchema_ == null + ? com.google.cloud.vertexai.api.Schema.getDefaultInstance() + : responseSchema_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -464,6 +538,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(responseMimeType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, responseMimeType_); } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(16, getResponseSchema()); + } getUnknownFields().writeTo(output); } @@ -505,6 +582,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(responseMimeType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, responseMimeType_); } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getResponseSchema()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -556,6 +636,10 @@ public boolean equals(final java.lang.Object obj) { != java.lang.Float.floatToIntBits(other.getFrequencyPenalty())) return false; } if (!getResponseMimeType().equals(other.getResponseMimeType())) return false; + if (hasResponseSchema() != other.hasResponseSchema()) return false; + if (hasResponseSchema()) { + if (!getResponseSchema().equals(other.getResponseSchema())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -601,6 +685,10 @@ public int hashCode() { } hash = (37 * hash) + RESPONSE_MIME_TYPE_FIELD_NUMBER; hash = (53 * hash) + getResponseMimeType().hashCode(); + if (hasResponseSchema()) { + hash = (37 * hash) + RESPONSE_SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getResponseSchema().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -730,10 +818,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.vertexai.api.GenerationConfig.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getResponseSchemaFieldBuilder(); + } } @java.lang.Override @@ -749,6 +846,11 @@ public Builder clear() { presencePenalty_ = 0F; frequencyPenalty_ = 0F; responseMimeType_ = ""; + responseSchema_ = null; + if (responseSchemaBuilder_ != null) { + responseSchemaBuilder_.dispose(); + responseSchemaBuilder_ = null; + } return this; } @@ -821,6 +923,11 @@ private void buildPartial0(com.google.cloud.vertexai.api.GenerationConfig result if (((from_bitField0_ & 0x00000100) != 0)) { result.responseMimeType_ = responseMimeType_; } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.responseSchema_ = + responseSchemaBuilder_ == null ? responseSchema_ : responseSchemaBuilder_.build(); + to_bitField0_ |= 0x00000080; + } result.bitField0_ |= to_bitField0_; } @@ -905,6 +1012,9 @@ public Builder mergeFrom(com.google.cloud.vertexai.api.GenerationConfig other) { bitField0_ |= 0x00000100; onChanged(); } + if (other.hasResponseSchema()) { + mergeResponseSchema(other.getResponseSchema()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -986,6 +1096,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000100; break; } // case 106 + case 130: + { + input.readMessage(getResponseSchemaFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 130 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1791,6 +1907,263 @@ public Builder setResponseMimeTypeBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.vertexai.api.Schema responseSchema_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vertexai.api.Schema, + com.google.cloud.vertexai.api.Schema.Builder, + com.google.cloud.vertexai.api.SchemaOrBuilder> + responseSchemaBuilder_; + /** + * + * + *
+     * Optional. The `Schema` object allows the definition of input and output
+     * data types. These types can be objects, but also primitives and arrays.
+     * Represents a select subset of an [OpenAPI 3.0 schema
+     * object](https://spec.openapis.org/oas/v3.0.3#schema).
+     * If set, a compatible response_mime_type must also be set.
+     * Compatible mimetypes:
+     * `application/json`: Schema for JSON response.
+     * 
+ * + * + * optional .google.cloud.vertexai.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the responseSchema field is set. + */ + public boolean hasResponseSchema() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * + * + *
+     * Optional. The `Schema` object allows the definition of input and output
+     * data types. These types can be objects, but also primitives and arrays.
+     * Represents a select subset of an [OpenAPI 3.0 schema
+     * object](https://spec.openapis.org/oas/v3.0.3#schema).
+     * If set, a compatible response_mime_type must also be set.
+     * Compatible mimetypes:
+     * `application/json`: Schema for JSON response.
+     * 
+ * + * + * optional .google.cloud.vertexai.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The responseSchema. + */ + public com.google.cloud.vertexai.api.Schema getResponseSchema() { + if (responseSchemaBuilder_ == null) { + return responseSchema_ == null + ? com.google.cloud.vertexai.api.Schema.getDefaultInstance() + : responseSchema_; + } else { + return responseSchemaBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. The `Schema` object allows the definition of input and output
+     * data types. These types can be objects, but also primitives and arrays.
+     * Represents a select subset of an [OpenAPI 3.0 schema
+     * object](https://spec.openapis.org/oas/v3.0.3#schema).
+     * If set, a compatible response_mime_type must also be set.
+     * Compatible mimetypes:
+     * `application/json`: Schema for JSON response.
+     * 
+ * + * + * optional .google.cloud.vertexai.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setResponseSchema(com.google.cloud.vertexai.api.Schema value) { + if (responseSchemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + responseSchema_ = value; + } else { + responseSchemaBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The `Schema` object allows the definition of input and output
+     * data types. These types can be objects, but also primitives and arrays.
+     * Represents a select subset of an [OpenAPI 3.0 schema
+     * object](https://spec.openapis.org/oas/v3.0.3#schema).
+     * If set, a compatible response_mime_type must also be set.
+     * Compatible mimetypes:
+     * `application/json`: Schema for JSON response.
+     * 
+ * + * + * optional .google.cloud.vertexai.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setResponseSchema(com.google.cloud.vertexai.api.Schema.Builder builderForValue) { + if (responseSchemaBuilder_ == null) { + responseSchema_ = builderForValue.build(); + } else { + responseSchemaBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The `Schema` object allows the definition of input and output
+     * data types. These types can be objects, but also primitives and arrays.
+     * Represents a select subset of an [OpenAPI 3.0 schema
+     * object](https://spec.openapis.org/oas/v3.0.3#schema).
+     * If set, a compatible response_mime_type must also be set.
+     * Compatible mimetypes:
+     * `application/json`: Schema for JSON response.
+     * 
+ * + * + * optional .google.cloud.vertexai.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeResponseSchema(com.google.cloud.vertexai.api.Schema value) { + if (responseSchemaBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && responseSchema_ != null + && responseSchema_ != com.google.cloud.vertexai.api.Schema.getDefaultInstance()) { + getResponseSchemaBuilder().mergeFrom(value); + } else { + responseSchema_ = value; + } + } else { + responseSchemaBuilder_.mergeFrom(value); + } + if (responseSchema_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. The `Schema` object allows the definition of input and output
+     * data types. These types can be objects, but also primitives and arrays.
+     * Represents a select subset of an [OpenAPI 3.0 schema
+     * object](https://spec.openapis.org/oas/v3.0.3#schema).
+     * If set, a compatible response_mime_type must also be set.
+     * Compatible mimetypes:
+     * `application/json`: Schema for JSON response.
+     * 
+ * + * + * optional .google.cloud.vertexai.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearResponseSchema() { + bitField0_ = (bitField0_ & ~0x00000200); + responseSchema_ = null; + if (responseSchemaBuilder_ != null) { + responseSchemaBuilder_.dispose(); + responseSchemaBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The `Schema` object allows the definition of input and output
+     * data types. These types can be objects, but also primitives and arrays.
+     * Represents a select subset of an [OpenAPI 3.0 schema
+     * object](https://spec.openapis.org/oas/v3.0.3#schema).
+     * If set, a compatible response_mime_type must also be set.
+     * Compatible mimetypes:
+     * `application/json`: Schema for JSON response.
+     * 
+ * + * + * optional .google.cloud.vertexai.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vertexai.api.Schema.Builder getResponseSchemaBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return getResponseSchemaFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. The `Schema` object allows the definition of input and output
+     * data types. These types can be objects, but also primitives and arrays.
+     * Represents a select subset of an [OpenAPI 3.0 schema
+     * object](https://spec.openapis.org/oas/v3.0.3#schema).
+     * If set, a compatible response_mime_type must also be set.
+     * Compatible mimetypes:
+     * `application/json`: Schema for JSON response.
+     * 
+ * + * + * optional .google.cloud.vertexai.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vertexai.api.SchemaOrBuilder getResponseSchemaOrBuilder() { + if (responseSchemaBuilder_ != null) { + return responseSchemaBuilder_.getMessageOrBuilder(); + } else { + return responseSchema_ == null + ? com.google.cloud.vertexai.api.Schema.getDefaultInstance() + : responseSchema_; + } + } + /** + * + * + *
+     * Optional. The `Schema` object allows the definition of input and output
+     * data types. These types can be objects, but also primitives and arrays.
+     * Represents a select subset of an [OpenAPI 3.0 schema
+     * object](https://spec.openapis.org/oas/v3.0.3#schema).
+     * If set, a compatible response_mime_type must also be set.
+     * Compatible mimetypes:
+     * `application/json`: Schema for JSON response.
+     * 
+ * + * + * optional .google.cloud.vertexai.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vertexai.api.Schema, + com.google.cloud.vertexai.api.Schema.Builder, + com.google.cloud.vertexai.api.SchemaOrBuilder> + getResponseSchemaFieldBuilder() { + if (responseSchemaBuilder_ == null) { + responseSchemaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vertexai.api.Schema, + com.google.cloud.vertexai.api.Schema.Builder, + com.google.cloud.vertexai.api.SchemaOrBuilder>( + getResponseSchema(), getParentForChildren(), isClean()); + responseSchema_ = null; + } + return responseSchemaBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerationConfigOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerationConfigOrBuilder.java index fd77186be57b..2b9017051f25 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerationConfigOrBuilder.java +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GenerationConfigOrBuilder.java @@ -286,4 +286,63 @@ public interface GenerationConfigOrBuilder * @return The bytes for responseMimeType. */ com.google.protobuf.ByteString getResponseMimeTypeBytes(); + + /** + * + * + *
+   * Optional. The `Schema` object allows the definition of input and output
+   * data types. These types can be objects, but also primitives and arrays.
+   * Represents a select subset of an [OpenAPI 3.0 schema
+   * object](https://spec.openapis.org/oas/v3.0.3#schema).
+   * If set, a compatible response_mime_type must also be set.
+   * Compatible mimetypes:
+   * `application/json`: Schema for JSON response.
+   * 
+ * + * + * optional .google.cloud.vertexai.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the responseSchema field is set. + */ + boolean hasResponseSchema(); + /** + * + * + *
+   * Optional. The `Schema` object allows the definition of input and output
+   * data types. These types can be objects, but also primitives and arrays.
+   * Represents a select subset of an [OpenAPI 3.0 schema
+   * object](https://spec.openapis.org/oas/v3.0.3#schema).
+   * If set, a compatible response_mime_type must also be set.
+   * Compatible mimetypes:
+   * `application/json`: Schema for JSON response.
+   * 
+ * + * + * optional .google.cloud.vertexai.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The responseSchema. + */ + com.google.cloud.vertexai.api.Schema getResponseSchema(); + /** + * + * + *
+   * Optional. The `Schema` object allows the definition of input and output
+   * data types. These types can be objects, but also primitives and arrays.
+   * Represents a select subset of an [OpenAPI 3.0 schema
+   * object](https://spec.openapis.org/oas/v3.0.3#schema).
+   * If set, a compatible response_mime_type must also be set.
+   * Compatible mimetypes:
+   * `application/json`: Schema for JSON response.
+   * 
+ * + * + * optional .google.cloud.vertexai.v1.Schema response_schema = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.vertexai.api.SchemaOrBuilder getResponseSchemaOrBuilder(); } diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GoogleSearchRetrieval.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GoogleSearchRetrieval.java index 78662d557505..89aeb35d2091 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GoogleSearchRetrieval.java +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GoogleSearchRetrieval.java @@ -61,26 +61,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.vertexai.api.GoogleSearchRetrieval.Builder.class); } - public static final int DISABLE_ATTRIBUTION_FIELD_NUMBER = 1; - private boolean disableAttribution_ = false; - /** - * - * - *
-   * Optional. Disable using the result from this tool in detecting grounding
-   * attribution. This does not affect how the result is given to the model for
-   * generation.
-   * 
- * - * bool disable_attribution = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The disableAttribution. - */ - @java.lang.Override - public boolean getDisableAttribution() { - return disableAttribution_; - } - private byte memoizedIsInitialized = -1; @java.lang.Override @@ -95,9 +75,6 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (disableAttribution_ != false) { - output.writeBool(1, disableAttribution_); - } getUnknownFields().writeTo(output); } @@ -107,9 +84,6 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (disableAttribution_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, disableAttribution_); - } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -126,7 +100,6 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.vertexai.api.GoogleSearchRetrieval other = (com.google.cloud.vertexai.api.GoogleSearchRetrieval) obj; - if (getDisableAttribution() != other.getDisableAttribution()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -138,8 +111,6 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DISABLE_ATTRIBUTION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableAttribution()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -278,8 +249,6 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - bitField0_ = 0; - disableAttribution_ = false; return this; } @@ -307,20 +276,10 @@ public com.google.cloud.vertexai.api.GoogleSearchRetrieval build() { public com.google.cloud.vertexai.api.GoogleSearchRetrieval buildPartial() { com.google.cloud.vertexai.api.GoogleSearchRetrieval result = new com.google.cloud.vertexai.api.GoogleSearchRetrieval(this); - if (bitField0_ != 0) { - buildPartial0(result); - } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.vertexai.api.GoogleSearchRetrieval result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.disableAttribution_ = disableAttribution_; - } - } - @java.lang.Override public Builder clone() { return super.clone(); @@ -367,9 +326,6 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.vertexai.api.GoogleSearchRetrieval other) { if (other == com.google.cloud.vertexai.api.GoogleSearchRetrieval.getDefaultInstance()) return this; - if (other.getDisableAttribution() != false) { - setDisableAttribution(other.getDisableAttribution()); - } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -396,12 +352,6 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - disableAttribution_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -419,67 +369,6 @@ public Builder mergeFrom( return this; } - private int bitField0_; - - private boolean disableAttribution_; - /** - * - * - *
-     * Optional. Disable using the result from this tool in detecting grounding
-     * attribution. This does not affect how the result is given to the model for
-     * generation.
-     * 
- * - * bool disable_attribution = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The disableAttribution. - */ - @java.lang.Override - public boolean getDisableAttribution() { - return disableAttribution_; - } - /** - * - * - *
-     * Optional. Disable using the result from this tool in detecting grounding
-     * attribution. This does not affect how the result is given to the model for
-     * generation.
-     * 
- * - * bool disable_attribution = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The disableAttribution to set. - * @return This builder for chaining. - */ - public Builder setDisableAttribution(boolean value) { - - disableAttribution_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Disable using the result from this tool in detecting grounding
-     * attribution. This does not affect how the result is given to the model for
-     * generation.
-     * 
- * - * bool disable_attribution = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearDisableAttribution() { - bitField0_ = (bitField0_ & ~0x00000001); - disableAttribution_ = false; - onChanged(); - return this; - } - @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GoogleSearchRetrievalOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GoogleSearchRetrievalOrBuilder.java index 6a5b7fcada88..fe21868a13c0 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GoogleSearchRetrievalOrBuilder.java +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GoogleSearchRetrievalOrBuilder.java @@ -22,20 +22,4 @@ public interface GoogleSearchRetrievalOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vertexai.v1.GoogleSearchRetrieval) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. Disable using the result from this tool in detecting grounding
-   * attribution. This does not affect how the result is given to the model for
-   * generation.
-   * 
- * - * bool disable_attribution = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The disableAttribution. - */ - boolean getDisableAttribution(); -} + com.google.protobuf.MessageOrBuilder {} diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GroundingAttribution.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GroundingAttribution.java deleted file mode 100644 index 093b7a8db701..000000000000 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GroundingAttribution.java +++ /dev/null @@ -1,2138 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vertexai/v1/content.proto - -// Protobuf Java Version: 3.25.3 -package com.google.cloud.vertexai.api; - -/** - * - * - *
- * Grounding attribution.
- * 
- * - * Protobuf type {@code google.cloud.vertexai.v1.GroundingAttribution} - */ -public final class GroundingAttribution extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.vertexai.v1.GroundingAttribution) - GroundingAttributionOrBuilder { - private static final long serialVersionUID = 0L; - // Use GroundingAttribution.newBuilder() to construct. - private GroundingAttribution(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GroundingAttribution() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GroundingAttribution(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vertexai.api.ContentProto - .internal_static_google_cloud_vertexai_v1_GroundingAttribution_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.vertexai.api.ContentProto - .internal_static_google_cloud_vertexai_v1_GroundingAttribution_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.vertexai.api.GroundingAttribution.class, - com.google.cloud.vertexai.api.GroundingAttribution.Builder.class); - } - - public interface WebOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vertexai.v1.GroundingAttribution.Web) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Output only. URI reference of the attribution.
-     * 
- * - * string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The uri. - */ - java.lang.String getUri(); - /** - * - * - *
-     * Output only. URI reference of the attribution.
-     * 
- * - * string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for uri. - */ - com.google.protobuf.ByteString getUriBytes(); - - /** - * - * - *
-     * Output only. Title of the attribution.
-     * 
- * - * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The title. - */ - java.lang.String getTitle(); - /** - * - * - *
-     * Output only. Title of the attribution.
-     * 
- * - * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for title. - */ - com.google.protobuf.ByteString getTitleBytes(); - } - /** - * - * - *
-   * Attribution from the web.
-   * 
- * - * Protobuf type {@code google.cloud.vertexai.v1.GroundingAttribution.Web} - */ - public static final class Web extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.vertexai.v1.GroundingAttribution.Web) - WebOrBuilder { - private static final long serialVersionUID = 0L; - // Use Web.newBuilder() to construct. - private Web(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Web() { - uri_ = ""; - title_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Web(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vertexai.api.ContentProto - .internal_static_google_cloud_vertexai_v1_GroundingAttribution_Web_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.vertexai.api.ContentProto - .internal_static_google_cloud_vertexai_v1_GroundingAttribution_Web_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.vertexai.api.GroundingAttribution.Web.class, - com.google.cloud.vertexai.api.GroundingAttribution.Web.Builder.class); - } - - public static final int URI_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object uri_ = ""; - /** - * - * - *
-     * Output only. URI reference of the attribution.
-     * 
- * - * string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The uri. - */ - @java.lang.Override - public java.lang.String getUri() { - java.lang.Object ref = uri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uri_ = s; - return s; - } - } - /** - * - * - *
-     * Output only. URI reference of the attribution.
-     * 
- * - * string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for uri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getUriBytes() { - java.lang.Object ref = uri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - uri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TITLE_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object title_ = ""; - /** - * - * - *
-     * Output only. Title of the attribution.
-     * 
- * - * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The title. - */ - @java.lang.Override - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - title_ = s; - return s; - } - } - /** - * - * - *
-     * Output only. Title of the attribution.
-     * 
- * - * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for title. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, title_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.vertexai.api.GroundingAttribution.Web)) { - return super.equals(obj); - } - com.google.cloud.vertexai.api.GroundingAttribution.Web other = - (com.google.cloud.vertexai.api.GroundingAttribution.Web) obj; - - if (!getUri().equals(other.getUri())) return false; - if (!getTitle().equals(other.getTitle())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + URI_FIELD_NUMBER; - hash = (53 * hash) + getUri().hashCode(); - hash = (37 * hash) + TITLE_FIELD_NUMBER; - hash = (53 * hash) + getTitle().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.vertexai.api.GroundingAttribution.Web parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.vertexai.api.GroundingAttribution.Web parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.vertexai.api.GroundingAttribution.Web parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.vertexai.api.GroundingAttribution.Web parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.vertexai.api.GroundingAttribution.Web parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.vertexai.api.GroundingAttribution.Web parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.vertexai.api.GroundingAttribution.Web parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.vertexai.api.GroundingAttribution.Web parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.vertexai.api.GroundingAttribution.Web parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.vertexai.api.GroundingAttribution.Web parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.vertexai.api.GroundingAttribution.Web parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.vertexai.api.GroundingAttribution.Web parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.vertexai.api.GroundingAttribution.Web prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-     * Attribution from the web.
-     * 
- * - * Protobuf type {@code google.cloud.vertexai.v1.GroundingAttribution.Web} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.vertexai.v1.GroundingAttribution.Web) - com.google.cloud.vertexai.api.GroundingAttribution.WebOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vertexai.api.ContentProto - .internal_static_google_cloud_vertexai_v1_GroundingAttribution_Web_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.vertexai.api.ContentProto - .internal_static_google_cloud_vertexai_v1_GroundingAttribution_Web_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.vertexai.api.GroundingAttribution.Web.class, - com.google.cloud.vertexai.api.GroundingAttribution.Web.Builder.class); - } - - // Construct using com.google.cloud.vertexai.api.GroundingAttribution.Web.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - uri_ = ""; - title_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vertexai.api.ContentProto - .internal_static_google_cloud_vertexai_v1_GroundingAttribution_Web_descriptor; - } - - @java.lang.Override - public com.google.cloud.vertexai.api.GroundingAttribution.Web getDefaultInstanceForType() { - return com.google.cloud.vertexai.api.GroundingAttribution.Web.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.vertexai.api.GroundingAttribution.Web build() { - com.google.cloud.vertexai.api.GroundingAttribution.Web result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.vertexai.api.GroundingAttribution.Web buildPartial() { - com.google.cloud.vertexai.api.GroundingAttribution.Web result = - new com.google.cloud.vertexai.api.GroundingAttribution.Web(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.vertexai.api.GroundingAttribution.Web result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.uri_ = uri_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.title_ = title_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.vertexai.api.GroundingAttribution.Web) { - return mergeFrom((com.google.cloud.vertexai.api.GroundingAttribution.Web) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.vertexai.api.GroundingAttribution.Web other) { - if (other == com.google.cloud.vertexai.api.GroundingAttribution.Web.getDefaultInstance()) - return this; - if (!other.getUri().isEmpty()) { - uri_ = other.uri_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getTitle().isEmpty()) { - title_ = other.title_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - uri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - title_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object uri_ = ""; - /** - * - * - *
-       * Output only. URI reference of the attribution.
-       * 
- * - * string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The uri. - */ - public java.lang.String getUri() { - java.lang.Object ref = uri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Output only. URI reference of the attribution.
-       * 
- * - * string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for uri. - */ - public com.google.protobuf.ByteString getUriBytes() { - java.lang.Object ref = uri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - uri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Output only. URI reference of the attribution.
-       * 
- * - * string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The uri to set. - * @return This builder for chaining. - */ - public Builder setUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - uri_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. URI reference of the attribution.
-       * 
- * - * string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearUri() { - uri_ = getDefaultInstance().getUri(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. URI reference of the attribution.
-       * 
- * - * string uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for uri to set. - * @return This builder for chaining. - */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - uri_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object title_ = ""; - /** - * - * - *
-       * Output only. Title of the attribution.
-       * 
- * - * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The title. - */ - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - title_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-       * Output only. Title of the attribution.
-       * 
- * - * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for title. - */ - public com.google.protobuf.ByteString getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-       * Output only. Title of the attribution.
-       * 
- * - * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The title to set. - * @return This builder for chaining. - */ - public Builder setTitle(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - title_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. Title of the attribution.
-       * 
- * - * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearTitle() { - title_ = getDefaultInstance().getTitle(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-       * Output only. Title of the attribution.
-       * 
- * - * string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for title to set. - * @return This builder for chaining. - */ - public Builder setTitleBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - title_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.vertexai.v1.GroundingAttribution.Web) - } - - // @@protoc_insertion_point(class_scope:google.cloud.vertexai.v1.GroundingAttribution.Web) - private static final com.google.cloud.vertexai.api.GroundingAttribution.Web DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.vertexai.api.GroundingAttribution.Web(); - } - - public static com.google.cloud.vertexai.api.GroundingAttribution.Web getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Web parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.vertexai.api.GroundingAttribution.Web getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int bitField0_; - private int referenceCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object reference_; - - public enum ReferenceCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - WEB(3), - REFERENCE_NOT_SET(0); - private final int value; - - private ReferenceCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ReferenceCase valueOf(int value) { - return forNumber(value); - } - - public static ReferenceCase forNumber(int value) { - switch (value) { - case 3: - return WEB; - case 0: - return REFERENCE_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public ReferenceCase getReferenceCase() { - return ReferenceCase.forNumber(referenceCase_); - } - - public static final int WEB_FIELD_NUMBER = 3; - /** - * - * - *
-   * Optional. Attribution from the web.
-   * 
- * - * - * .google.cloud.vertexai.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the web field is set. - */ - @java.lang.Override - public boolean hasWeb() { - return referenceCase_ == 3; - } - /** - * - * - *
-   * Optional. Attribution from the web.
-   * 
- * - * - * .google.cloud.vertexai.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The web. - */ - @java.lang.Override - public com.google.cloud.vertexai.api.GroundingAttribution.Web getWeb() { - if (referenceCase_ == 3) { - return (com.google.cloud.vertexai.api.GroundingAttribution.Web) reference_; - } - return com.google.cloud.vertexai.api.GroundingAttribution.Web.getDefaultInstance(); - } - /** - * - * - *
-   * Optional. Attribution from the web.
-   * 
- * - * - * .google.cloud.vertexai.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.vertexai.api.GroundingAttribution.WebOrBuilder getWebOrBuilder() { - if (referenceCase_ == 3) { - return (com.google.cloud.vertexai.api.GroundingAttribution.Web) reference_; - } - return com.google.cloud.vertexai.api.GroundingAttribution.Web.getDefaultInstance(); - } - - public static final int SEGMENT_FIELD_NUMBER = 1; - private com.google.cloud.vertexai.api.Segment segment_; - /** - * - * - *
-   * Output only. Segment of the content this attribution belongs to.
-   * 
- * - * - * .google.cloud.vertexai.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the segment field is set. - */ - @java.lang.Override - public boolean hasSegment() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Output only. Segment of the content this attribution belongs to.
-   * 
- * - * - * .google.cloud.vertexai.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The segment. - */ - @java.lang.Override - public com.google.cloud.vertexai.api.Segment getSegment() { - return segment_ == null ? com.google.cloud.vertexai.api.Segment.getDefaultInstance() : segment_; - } - /** - * - * - *
-   * Output only. Segment of the content this attribution belongs to.
-   * 
- * - * - * .google.cloud.vertexai.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.vertexai.api.SegmentOrBuilder getSegmentOrBuilder() { - return segment_ == null ? com.google.cloud.vertexai.api.Segment.getDefaultInstance() : segment_; - } - - public static final int CONFIDENCE_SCORE_FIELD_NUMBER = 2; - private float confidenceScore_ = 0F; - /** - * - * - *
-   * Optional. Output only. Confidence score of the attribution. Ranges from 0
-   * to 1. 1 is the most confident.
-   * 
- * - * - * optional float confidence_score = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the confidenceScore field is set. - */ - @java.lang.Override - public boolean hasConfidenceScore() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * Optional. Output only. Confidence score of the attribution. Ranges from 0
-   * to 1. 1 is the most confident.
-   * 
- * - * - * optional float confidence_score = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The confidenceScore. - */ - @java.lang.Override - public float getConfidenceScore() { - return confidenceScore_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getSegment()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeFloat(2, confidenceScore_); - } - if (referenceCase_ == 3) { - output.writeMessage(3, (com.google.cloud.vertexai.api.GroundingAttribution.Web) reference_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSegment()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidenceScore_); - } - if (referenceCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.vertexai.api.GroundingAttribution.Web) reference_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.vertexai.api.GroundingAttribution)) { - return super.equals(obj); - } - com.google.cloud.vertexai.api.GroundingAttribution other = - (com.google.cloud.vertexai.api.GroundingAttribution) obj; - - if (hasSegment() != other.hasSegment()) return false; - if (hasSegment()) { - if (!getSegment().equals(other.getSegment())) return false; - } - if (hasConfidenceScore() != other.hasConfidenceScore()) return false; - if (hasConfidenceScore()) { - if (java.lang.Float.floatToIntBits(getConfidenceScore()) - != java.lang.Float.floatToIntBits(other.getConfidenceScore())) return false; - } - if (!getReferenceCase().equals(other.getReferenceCase())) return false; - switch (referenceCase_) { - case 3: - if (!getWeb().equals(other.getWeb())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasSegment()) { - hash = (37 * hash) + SEGMENT_FIELD_NUMBER; - hash = (53 * hash) + getSegment().hashCode(); - } - if (hasConfidenceScore()) { - hash = (37 * hash) + CONFIDENCE_SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidenceScore()); - } - switch (referenceCase_) { - case 3: - hash = (37 * hash) + WEB_FIELD_NUMBER; - hash = (53 * hash) + getWeb().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.vertexai.api.GroundingAttribution parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.vertexai.api.GroundingAttribution parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.vertexai.api.GroundingAttribution parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.vertexai.api.GroundingAttribution parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.vertexai.api.GroundingAttribution parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.vertexai.api.GroundingAttribution parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.vertexai.api.GroundingAttribution parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.vertexai.api.GroundingAttribution parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.vertexai.api.GroundingAttribution parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.vertexai.api.GroundingAttribution parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.vertexai.api.GroundingAttribution parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.vertexai.api.GroundingAttribution parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.vertexai.api.GroundingAttribution prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Grounding attribution.
-   * 
- * - * Protobuf type {@code google.cloud.vertexai.v1.GroundingAttribution} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.vertexai.v1.GroundingAttribution) - com.google.cloud.vertexai.api.GroundingAttributionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vertexai.api.ContentProto - .internal_static_google_cloud_vertexai_v1_GroundingAttribution_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.vertexai.api.ContentProto - .internal_static_google_cloud_vertexai_v1_GroundingAttribution_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.vertexai.api.GroundingAttribution.class, - com.google.cloud.vertexai.api.GroundingAttribution.Builder.class); - } - - // Construct using com.google.cloud.vertexai.api.GroundingAttribution.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getSegmentFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (webBuilder_ != null) { - webBuilder_.clear(); - } - segment_ = null; - if (segmentBuilder_ != null) { - segmentBuilder_.dispose(); - segmentBuilder_ = null; - } - confidenceScore_ = 0F; - referenceCase_ = 0; - reference_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.vertexai.api.ContentProto - .internal_static_google_cloud_vertexai_v1_GroundingAttribution_descriptor; - } - - @java.lang.Override - public com.google.cloud.vertexai.api.GroundingAttribution getDefaultInstanceForType() { - return com.google.cloud.vertexai.api.GroundingAttribution.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.vertexai.api.GroundingAttribution build() { - com.google.cloud.vertexai.api.GroundingAttribution result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.vertexai.api.GroundingAttribution buildPartial() { - com.google.cloud.vertexai.api.GroundingAttribution result = - new com.google.cloud.vertexai.api.GroundingAttribution(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.vertexai.api.GroundingAttribution result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.segment_ = segmentBuilder_ == null ? segment_ : segmentBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.confidenceScore_ = confidenceScore_; - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - private void buildPartialOneofs(com.google.cloud.vertexai.api.GroundingAttribution result) { - result.referenceCase_ = referenceCase_; - result.reference_ = this.reference_; - if (referenceCase_ == 3 && webBuilder_ != null) { - result.reference_ = webBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.vertexai.api.GroundingAttribution) { - return mergeFrom((com.google.cloud.vertexai.api.GroundingAttribution) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.vertexai.api.GroundingAttribution other) { - if (other == com.google.cloud.vertexai.api.GroundingAttribution.getDefaultInstance()) - return this; - if (other.hasSegment()) { - mergeSegment(other.getSegment()); - } - if (other.hasConfidenceScore()) { - setConfidenceScore(other.getConfidenceScore()); - } - switch (other.getReferenceCase()) { - case WEB: - { - mergeWeb(other.getWeb()); - break; - } - case REFERENCE_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getSegmentFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 10 - case 21: - { - confidenceScore_ = input.readFloat(); - bitField0_ |= 0x00000004; - break; - } // case 21 - case 26: - { - input.readMessage(getWebFieldBuilder().getBuilder(), extensionRegistry); - referenceCase_ = 3; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int referenceCase_ = 0; - private java.lang.Object reference_; - - public ReferenceCase getReferenceCase() { - return ReferenceCase.forNumber(referenceCase_); - } - - public Builder clearReference() { - referenceCase_ = 0; - reference_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vertexai.api.GroundingAttribution.Web, - com.google.cloud.vertexai.api.GroundingAttribution.Web.Builder, - com.google.cloud.vertexai.api.GroundingAttribution.WebOrBuilder> - webBuilder_; - /** - * - * - *
-     * Optional. Attribution from the web.
-     * 
- * - * - * .google.cloud.vertexai.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the web field is set. - */ - @java.lang.Override - public boolean hasWeb() { - return referenceCase_ == 3; - } - /** - * - * - *
-     * Optional. Attribution from the web.
-     * 
- * - * - * .google.cloud.vertexai.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The web. - */ - @java.lang.Override - public com.google.cloud.vertexai.api.GroundingAttribution.Web getWeb() { - if (webBuilder_ == null) { - if (referenceCase_ == 3) { - return (com.google.cloud.vertexai.api.GroundingAttribution.Web) reference_; - } - return com.google.cloud.vertexai.api.GroundingAttribution.Web.getDefaultInstance(); - } else { - if (referenceCase_ == 3) { - return webBuilder_.getMessage(); - } - return com.google.cloud.vertexai.api.GroundingAttribution.Web.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Attribution from the web.
-     * 
- * - * - * .google.cloud.vertexai.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setWeb(com.google.cloud.vertexai.api.GroundingAttribution.Web value) { - if (webBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - reference_ = value; - onChanged(); - } else { - webBuilder_.setMessage(value); - } - referenceCase_ = 3; - return this; - } - /** - * - * - *
-     * Optional. Attribution from the web.
-     * 
- * - * - * .google.cloud.vertexai.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setWeb( - com.google.cloud.vertexai.api.GroundingAttribution.Web.Builder builderForValue) { - if (webBuilder_ == null) { - reference_ = builderForValue.build(); - onChanged(); - } else { - webBuilder_.setMessage(builderForValue.build()); - } - referenceCase_ = 3; - return this; - } - /** - * - * - *
-     * Optional. Attribution from the web.
-     * 
- * - * - * .google.cloud.vertexai.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeWeb(com.google.cloud.vertexai.api.GroundingAttribution.Web value) { - if (webBuilder_ == null) { - if (referenceCase_ == 3 - && reference_ - != com.google.cloud.vertexai.api.GroundingAttribution.Web.getDefaultInstance()) { - reference_ = - com.google.cloud.vertexai.api.GroundingAttribution.Web.newBuilder( - (com.google.cloud.vertexai.api.GroundingAttribution.Web) reference_) - .mergeFrom(value) - .buildPartial(); - } else { - reference_ = value; - } - onChanged(); - } else { - if (referenceCase_ == 3) { - webBuilder_.mergeFrom(value); - } else { - webBuilder_.setMessage(value); - } - } - referenceCase_ = 3; - return this; - } - /** - * - * - *
-     * Optional. Attribution from the web.
-     * 
- * - * - * .google.cloud.vertexai.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearWeb() { - if (webBuilder_ == null) { - if (referenceCase_ == 3) { - referenceCase_ = 0; - reference_ = null; - onChanged(); - } - } else { - if (referenceCase_ == 3) { - referenceCase_ = 0; - reference_ = null; - } - webBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Optional. Attribution from the web.
-     * 
- * - * - * .google.cloud.vertexai.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.vertexai.api.GroundingAttribution.Web.Builder getWebBuilder() { - return getWebFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Attribution from the web.
-     * 
- * - * - * .google.cloud.vertexai.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.vertexai.api.GroundingAttribution.WebOrBuilder getWebOrBuilder() { - if ((referenceCase_ == 3) && (webBuilder_ != null)) { - return webBuilder_.getMessageOrBuilder(); - } else { - if (referenceCase_ == 3) { - return (com.google.cloud.vertexai.api.GroundingAttribution.Web) reference_; - } - return com.google.cloud.vertexai.api.GroundingAttribution.Web.getDefaultInstance(); - } - } - /** - * - * - *
-     * Optional. Attribution from the web.
-     * 
- * - * - * .google.cloud.vertexai.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vertexai.api.GroundingAttribution.Web, - com.google.cloud.vertexai.api.GroundingAttribution.Web.Builder, - com.google.cloud.vertexai.api.GroundingAttribution.WebOrBuilder> - getWebFieldBuilder() { - if (webBuilder_ == null) { - if (!(referenceCase_ == 3)) { - reference_ = com.google.cloud.vertexai.api.GroundingAttribution.Web.getDefaultInstance(); - } - webBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vertexai.api.GroundingAttribution.Web, - com.google.cloud.vertexai.api.GroundingAttribution.Web.Builder, - com.google.cloud.vertexai.api.GroundingAttribution.WebOrBuilder>( - (com.google.cloud.vertexai.api.GroundingAttribution.Web) reference_, - getParentForChildren(), - isClean()); - reference_ = null; - } - referenceCase_ = 3; - onChanged(); - return webBuilder_; - } - - private com.google.cloud.vertexai.api.Segment segment_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vertexai.api.Segment, - com.google.cloud.vertexai.api.Segment.Builder, - com.google.cloud.vertexai.api.SegmentOrBuilder> - segmentBuilder_; - /** - * - * - *
-     * Output only. Segment of the content this attribution belongs to.
-     * 
- * - * - * .google.cloud.vertexai.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the segment field is set. - */ - public boolean hasSegment() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-     * Output only. Segment of the content this attribution belongs to.
-     * 
- * - * - * .google.cloud.vertexai.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The segment. - */ - public com.google.cloud.vertexai.api.Segment getSegment() { - if (segmentBuilder_ == null) { - return segment_ == null - ? com.google.cloud.vertexai.api.Segment.getDefaultInstance() - : segment_; - } else { - return segmentBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. Segment of the content this attribution belongs to.
-     * 
- * - * - * .google.cloud.vertexai.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setSegment(com.google.cloud.vertexai.api.Segment value) { - if (segmentBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - segment_ = value; - } else { - segmentBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Segment of the content this attribution belongs to.
-     * 
- * - * - * .google.cloud.vertexai.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setSegment(com.google.cloud.vertexai.api.Segment.Builder builderForValue) { - if (segmentBuilder_ == null) { - segment_ = builderForValue.build(); - } else { - segmentBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Segment of the content this attribution belongs to.
-     * 
- * - * - * .google.cloud.vertexai.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeSegment(com.google.cloud.vertexai.api.Segment value) { - if (segmentBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && segment_ != null - && segment_ != com.google.cloud.vertexai.api.Segment.getDefaultInstance()) { - getSegmentBuilder().mergeFrom(value); - } else { - segment_ = value; - } - } else { - segmentBuilder_.mergeFrom(value); - } - if (segment_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - * - * - *
-     * Output only. Segment of the content this attribution belongs to.
-     * 
- * - * - * .google.cloud.vertexai.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearSegment() { - bitField0_ = (bitField0_ & ~0x00000002); - segment_ = null; - if (segmentBuilder_ != null) { - segmentBuilder_.dispose(); - segmentBuilder_ = null; - } - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Segment of the content this attribution belongs to.
-     * 
- * - * - * .google.cloud.vertexai.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.vertexai.api.Segment.Builder getSegmentBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getSegmentFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. Segment of the content this attribution belongs to.
-     * 
- * - * - * .google.cloud.vertexai.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.vertexai.api.SegmentOrBuilder getSegmentOrBuilder() { - if (segmentBuilder_ != null) { - return segmentBuilder_.getMessageOrBuilder(); - } else { - return segment_ == null - ? com.google.cloud.vertexai.api.Segment.getDefaultInstance() - : segment_; - } - } - /** - * - * - *
-     * Output only. Segment of the content this attribution belongs to.
-     * 
- * - * - * .google.cloud.vertexai.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vertexai.api.Segment, - com.google.cloud.vertexai.api.Segment.Builder, - com.google.cloud.vertexai.api.SegmentOrBuilder> - getSegmentFieldBuilder() { - if (segmentBuilder_ == null) { - segmentBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vertexai.api.Segment, - com.google.cloud.vertexai.api.Segment.Builder, - com.google.cloud.vertexai.api.SegmentOrBuilder>( - getSegment(), getParentForChildren(), isClean()); - segment_ = null; - } - return segmentBuilder_; - } - - private float confidenceScore_; - /** - * - * - *
-     * Optional. Output only. Confidence score of the attribution. Ranges from 0
-     * to 1. 1 is the most confident.
-     * 
- * - * - * optional float confidence_score = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the confidenceScore field is set. - */ - @java.lang.Override - public boolean hasConfidenceScore() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * - * - *
-     * Optional. Output only. Confidence score of the attribution. Ranges from 0
-     * to 1. 1 is the most confident.
-     * 
- * - * - * optional float confidence_score = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The confidenceScore. - */ - @java.lang.Override - public float getConfidenceScore() { - return confidenceScore_; - } - /** - * - * - *
-     * Optional. Output only. Confidence score of the attribution. Ranges from 0
-     * to 1. 1 is the most confident.
-     * 
- * - * - * optional float confidence_score = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The confidenceScore to set. - * @return This builder for chaining. - */ - public Builder setConfidenceScore(float value) { - - confidenceScore_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Output only. Confidence score of the attribution. Ranges from 0
-     * to 1. 1 is the most confident.
-     * 
- * - * - * optional float confidence_score = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearConfidenceScore() { - bitField0_ = (bitField0_ & ~0x00000004); - confidenceScore_ = 0F; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.vertexai.v1.GroundingAttribution) - } - - // @@protoc_insertion_point(class_scope:google.cloud.vertexai.v1.GroundingAttribution) - private static final com.google.cloud.vertexai.api.GroundingAttribution DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.vertexai.api.GroundingAttribution(); - } - - public static com.google.cloud.vertexai.api.GroundingAttribution getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GroundingAttribution parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.vertexai.api.GroundingAttribution getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GroundingAttributionOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GroundingAttributionOrBuilder.java deleted file mode 100644 index c085e0ba9b8a..000000000000 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GroundingAttributionOrBuilder.java +++ /dev/null @@ -1,141 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vertexai/v1/content.proto - -// Protobuf Java Version: 3.25.3 -package com.google.cloud.vertexai.api; - -public interface GroundingAttributionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.vertexai.v1.GroundingAttribution) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. Attribution from the web.
-   * 
- * - * - * .google.cloud.vertexai.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the web field is set. - */ - boolean hasWeb(); - /** - * - * - *
-   * Optional. Attribution from the web.
-   * 
- * - * - * .google.cloud.vertexai.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The web. - */ - com.google.cloud.vertexai.api.GroundingAttribution.Web getWeb(); - /** - * - * - *
-   * Optional. Attribution from the web.
-   * 
- * - * - * .google.cloud.vertexai.v1.GroundingAttribution.Web web = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.vertexai.api.GroundingAttribution.WebOrBuilder getWebOrBuilder(); - - /** - * - * - *
-   * Output only. Segment of the content this attribution belongs to.
-   * 
- * - * - * .google.cloud.vertexai.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the segment field is set. - */ - boolean hasSegment(); - /** - * - * - *
-   * Output only. Segment of the content this attribution belongs to.
-   * 
- * - * - * .google.cloud.vertexai.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The segment. - */ - com.google.cloud.vertexai.api.Segment getSegment(); - /** - * - * - *
-   * Output only. Segment of the content this attribution belongs to.
-   * 
- * - * - * .google.cloud.vertexai.v1.Segment segment = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.vertexai.api.SegmentOrBuilder getSegmentOrBuilder(); - - /** - * - * - *
-   * Optional. Output only. Confidence score of the attribution. Ranges from 0
-   * to 1. 1 is the most confident.
-   * 
- * - * - * optional float confidence_score = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the confidenceScore field is set. - */ - boolean hasConfidenceScore(); - /** - * - * - *
-   * Optional. Output only. Confidence score of the attribution. Ranges from 0
-   * to 1. 1 is the most confident.
-   * 
- * - * - * optional float confidence_score = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The confidenceScore. - */ - float getConfidenceScore(); - - com.google.cloud.vertexai.api.GroundingAttribution.ReferenceCase getReferenceCase(); -} diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GroundingMetadata.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GroundingMetadata.java index 72b9117d2334..fe28efb19407 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GroundingMetadata.java +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GroundingMetadata.java @@ -40,7 +40,6 @@ private GroundingMetadata(com.google.protobuf.GeneratedMessageV3.Builder buil private GroundingMetadata() { webSearchQueries_ = com.google.protobuf.LazyStringArrayList.emptyList(); - groundingAttributions_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -64,6 +63,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.vertexai.api.GroundingMetadata.Builder.class); } + private int bitField0_; public static final int WEB_SEARCH_QUERIES_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -128,87 +128,60 @@ public com.google.protobuf.ByteString getWebSearchQueriesBytes(int index) { return webSearchQueries_.getByteString(index); } - public static final int GROUNDING_ATTRIBUTIONS_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private java.util.List groundingAttributions_; + public static final int SEARCH_ENTRY_POINT_FIELD_NUMBER = 4; + private com.google.cloud.vertexai.api.SearchEntryPoint searchEntryPoint_; /** * * *
-   * Optional. List of grounding attributions.
+   * Optional. Google search entry for the following-up web searches.
    * 
* * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.cloud.vertexai.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL]; * - */ - @java.lang.Override - public java.util.List - getGroundingAttributionsList() { - return groundingAttributions_; - } - /** * - * - *
-   * Optional. List of grounding attributions.
-   * 
- * - * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * @return Whether the searchEntryPoint field is set. */ @java.lang.Override - public java.util.List - getGroundingAttributionsOrBuilderList() { - return groundingAttributions_; + public boolean hasSearchEntryPoint() { + return ((bitField0_ & 0x00000001) != 0); } /** * * *
-   * Optional. List of grounding attributions.
+   * Optional. Google search entry for the following-up web searches.
    * 
* * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.cloud.vertexai.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL]; * - */ - @java.lang.Override - public int getGroundingAttributionsCount() { - return groundingAttributions_.size(); - } - /** - * * - *
-   * Optional. List of grounding attributions.
-   * 
- * - * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * @return The searchEntryPoint. */ @java.lang.Override - public com.google.cloud.vertexai.api.GroundingAttribution getGroundingAttributions(int index) { - return groundingAttributions_.get(index); + public com.google.cloud.vertexai.api.SearchEntryPoint getSearchEntryPoint() { + return searchEntryPoint_ == null + ? com.google.cloud.vertexai.api.SearchEntryPoint.getDefaultInstance() + : searchEntryPoint_; } /** * * *
-   * Optional. List of grounding attributions.
+   * Optional. Google search entry for the following-up web searches.
    * 
* * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.cloud.vertexai.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.cloud.vertexai.api.GroundingAttributionOrBuilder - getGroundingAttributionsOrBuilder(int index) { - return groundingAttributions_.get(index); + public com.google.cloud.vertexai.api.SearchEntryPointOrBuilder getSearchEntryPointOrBuilder() { + return searchEntryPoint_ == null + ? com.google.cloud.vertexai.api.SearchEntryPoint.getDefaultInstance() + : searchEntryPoint_; } private byte memoizedIsInitialized = -1; @@ -228,8 +201,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < webSearchQueries_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, webSearchQueries_.getRaw(i)); } - for (int i = 0; i < groundingAttributions_.size(); i++) { - output.writeMessage(2, groundingAttributions_.get(i)); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getSearchEntryPoint()); } getUnknownFields().writeTo(output); } @@ -248,10 +221,8 @@ public int getSerializedSize() { size += dataSize; size += 1 * getWebSearchQueriesList().size(); } - for (int i = 0; i < groundingAttributions_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, groundingAttributions_.get(i)); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSearchEntryPoint()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -270,7 +241,10 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.vertexai.api.GroundingMetadata) obj; if (!getWebSearchQueriesList().equals(other.getWebSearchQueriesList())) return false; - if (!getGroundingAttributionsList().equals(other.getGroundingAttributionsList())) return false; + if (hasSearchEntryPoint() != other.hasSearchEntryPoint()) return false; + if (hasSearchEntryPoint()) { + if (!getSearchEntryPoint().equals(other.getSearchEntryPoint())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -286,9 +260,9 @@ public int hashCode() { hash = (37 * hash) + WEB_SEARCH_QUERIES_FIELD_NUMBER; hash = (53 * hash) + getWebSearchQueriesList().hashCode(); } - if (getGroundingAttributionsCount() > 0) { - hash = (37 * hash) + GROUNDING_ATTRIBUTIONS_FIELD_NUMBER; - hash = (53 * hash) + getGroundingAttributionsList().hashCode(); + if (hasSearchEntryPoint()) { + hash = (37 * hash) + SEARCH_ENTRY_POINT_FIELD_NUMBER; + hash = (53 * hash) + getSearchEntryPoint().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; @@ -419,10 +393,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.vertexai.api.GroundingMetadata.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSearchEntryPointFieldBuilder(); + } } @java.lang.Override @@ -430,13 +413,11 @@ public Builder clear() { super.clear(); bitField0_ = 0; webSearchQueries_ = com.google.protobuf.LazyStringArrayList.emptyList(); - if (groundingAttributionsBuilder_ == null) { - groundingAttributions_ = java.util.Collections.emptyList(); - } else { - groundingAttributions_ = null; - groundingAttributionsBuilder_.clear(); + searchEntryPoint_ = null; + if (searchEntryPointBuilder_ != null) { + searchEntryPointBuilder_.dispose(); + searchEntryPointBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -464,7 +445,6 @@ public com.google.cloud.vertexai.api.GroundingMetadata build() { public com.google.cloud.vertexai.api.GroundingMetadata buildPartial() { com.google.cloud.vertexai.api.GroundingMetadata result = new com.google.cloud.vertexai.api.GroundingMetadata(this); - buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -472,25 +452,19 @@ public com.google.cloud.vertexai.api.GroundingMetadata buildPartial() { return result; } - private void buildPartialRepeatedFields( - com.google.cloud.vertexai.api.GroundingMetadata result) { - if (groundingAttributionsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - groundingAttributions_ = java.util.Collections.unmodifiableList(groundingAttributions_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.groundingAttributions_ = groundingAttributions_; - } else { - result.groundingAttributions_ = groundingAttributionsBuilder_.build(); - } - } - private void buildPartial0(com.google.cloud.vertexai.api.GroundingMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { webSearchQueries_.makeImmutable(); result.webSearchQueries_ = webSearchQueries_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.searchEntryPoint_ = + searchEntryPointBuilder_ == null ? searchEntryPoint_ : searchEntryPointBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -549,32 +523,8 @@ public Builder mergeFrom(com.google.cloud.vertexai.api.GroundingMetadata other) } onChanged(); } - if (groundingAttributionsBuilder_ == null) { - if (!other.groundingAttributions_.isEmpty()) { - if (groundingAttributions_.isEmpty()) { - groundingAttributions_ = other.groundingAttributions_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureGroundingAttributionsIsMutable(); - groundingAttributions_.addAll(other.groundingAttributions_); - } - onChanged(); - } - } else { - if (!other.groundingAttributions_.isEmpty()) { - if (groundingAttributionsBuilder_.isEmpty()) { - groundingAttributionsBuilder_.dispose(); - groundingAttributionsBuilder_ = null; - groundingAttributions_ = other.groundingAttributions_; - bitField0_ = (bitField0_ & ~0x00000002); - groundingAttributionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getGroundingAttributionsFieldBuilder() - : null; - } else { - groundingAttributionsBuilder_.addAllMessages(other.groundingAttributions_); - } - } + if (other.hasSearchEntryPoint()) { + mergeSearchEntryPoint(other.getSearchEntryPoint()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -609,20 +559,13 @@ public Builder mergeFrom( webSearchQueries_.add(s); break; } // case 10 - case 18: + case 34: { - com.google.cloud.vertexai.api.GroundingAttribution m = - input.readMessage( - com.google.cloud.vertexai.api.GroundingAttribution.parser(), - extensionRegistry); - if (groundingAttributionsBuilder_ == null) { - ensureGroundingAttributionsIsMutable(); - groundingAttributions_.add(m); - } else { - groundingAttributionsBuilder_.addMessage(m); - } + input.readMessage( + getSearchEntryPointFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; break; - } // case 18 + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -825,260 +768,123 @@ public Builder addWebSearchQueriesBytes(com.google.protobuf.ByteString value) { return this; } - private java.util.List - groundingAttributions_ = java.util.Collections.emptyList(); - - private void ensureGroundingAttributionsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - groundingAttributions_ = - new java.util.ArrayList( - groundingAttributions_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vertexai.api.GroundingAttribution, - com.google.cloud.vertexai.api.GroundingAttribution.Builder, - com.google.cloud.vertexai.api.GroundingAttributionOrBuilder> - groundingAttributionsBuilder_; - + private com.google.cloud.vertexai.api.SearchEntryPoint searchEntryPoint_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vertexai.api.SearchEntryPoint, + com.google.cloud.vertexai.api.SearchEntryPoint.Builder, + com.google.cloud.vertexai.api.SearchEntryPointOrBuilder> + searchEntryPointBuilder_; /** * * *
-     * Optional. List of grounding attributions.
+     * Optional. Google search entry for the following-up web searches.
      * 
* * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.cloud.vertexai.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL]; * - */ - public java.util.List - getGroundingAttributionsList() { - if (groundingAttributionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(groundingAttributions_); - } else { - return groundingAttributionsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Optional. List of grounding attributions.
-     * 
* - * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * @return Whether the searchEntryPoint field is set. */ - public int getGroundingAttributionsCount() { - if (groundingAttributionsBuilder_ == null) { - return groundingAttributions_.size(); - } else { - return groundingAttributionsBuilder_.getCount(); - } + public boolean hasSearchEntryPoint() { + return ((bitField0_ & 0x00000002) != 0); } /** * * *
-     * Optional. List of grounding attributions.
+     * Optional. Google search entry for the following-up web searches.
      * 
* * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.cloud.vertexai.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL]; * - */ - public com.google.cloud.vertexai.api.GroundingAttribution getGroundingAttributions(int index) { - if (groundingAttributionsBuilder_ == null) { - return groundingAttributions_.get(index); - } else { - return groundingAttributionsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Optional. List of grounding attributions.
-     * 
- * - * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setGroundingAttributions( - int index, com.google.cloud.vertexai.api.GroundingAttribution value) { - if (groundingAttributionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGroundingAttributionsIsMutable(); - groundingAttributions_.set(index, value); - onChanged(); - } else { - groundingAttributionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Optional. List of grounding attributions.
-     * 
- * - * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setGroundingAttributions( - int index, com.google.cloud.vertexai.api.GroundingAttribution.Builder builderForValue) { - if (groundingAttributionsBuilder_ == null) { - ensureGroundingAttributionsIsMutable(); - groundingAttributions_.set(index, builderForValue.build()); - onChanged(); - } else { - groundingAttributionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** * - * - *
-     * Optional. List of grounding attributions.
-     * 
- * - * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * @return The searchEntryPoint. */ - public Builder addGroundingAttributions( - com.google.cloud.vertexai.api.GroundingAttribution value) { - if (groundingAttributionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGroundingAttributionsIsMutable(); - groundingAttributions_.add(value); - onChanged(); + public com.google.cloud.vertexai.api.SearchEntryPoint getSearchEntryPoint() { + if (searchEntryPointBuilder_ == null) { + return searchEntryPoint_ == null + ? com.google.cloud.vertexai.api.SearchEntryPoint.getDefaultInstance() + : searchEntryPoint_; } else { - groundingAttributionsBuilder_.addMessage(value); + return searchEntryPointBuilder_.getMessage(); } - return this; } /** * * *
-     * Optional. List of grounding attributions.
+     * Optional. Google search entry for the following-up web searches.
      * 
* * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.cloud.vertexai.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addGroundingAttributions( - int index, com.google.cloud.vertexai.api.GroundingAttribution value) { - if (groundingAttributionsBuilder_ == null) { + public Builder setSearchEntryPoint(com.google.cloud.vertexai.api.SearchEntryPoint value) { + if (searchEntryPointBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureGroundingAttributionsIsMutable(); - groundingAttributions_.add(index, value); - onChanged(); + searchEntryPoint_ = value; } else { - groundingAttributionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Optional. List of grounding attributions.
-     * 
- * - * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addGroundingAttributions( - com.google.cloud.vertexai.api.GroundingAttribution.Builder builderForValue) { - if (groundingAttributionsBuilder_ == null) { - ensureGroundingAttributionsIsMutable(); - groundingAttributions_.add(builderForValue.build()); - onChanged(); - } else { - groundingAttributionsBuilder_.addMessage(builderForValue.build()); + searchEntryPointBuilder_.setMessage(value); } + bitField0_ |= 0x00000002; + onChanged(); return this; } /** * * *
-     * Optional. List of grounding attributions.
+     * Optional. Google search entry for the following-up web searches.
      * 
* * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.cloud.vertexai.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addGroundingAttributions( - int index, com.google.cloud.vertexai.api.GroundingAttribution.Builder builderForValue) { - if (groundingAttributionsBuilder_ == null) { - ensureGroundingAttributionsIsMutable(); - groundingAttributions_.add(index, builderForValue.build()); - onChanged(); + public Builder setSearchEntryPoint( + com.google.cloud.vertexai.api.SearchEntryPoint.Builder builderForValue) { + if (searchEntryPointBuilder_ == null) { + searchEntryPoint_ = builderForValue.build(); } else { - groundingAttributionsBuilder_.addMessage(index, builderForValue.build()); + searchEntryPointBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00000002; + onChanged(); return this; } /** * * *
-     * Optional. List of grounding attributions.
+     * Optional. Google search entry for the following-up web searches.
      * 
* * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.cloud.vertexai.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addAllGroundingAttributions( - java.lang.Iterable values) { - if (groundingAttributionsBuilder_ == null) { - ensureGroundingAttributionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groundingAttributions_); - onChanged(); + public Builder mergeSearchEntryPoint(com.google.cloud.vertexai.api.SearchEntryPoint value) { + if (searchEntryPointBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && searchEntryPoint_ != null + && searchEntryPoint_ + != com.google.cloud.vertexai.api.SearchEntryPoint.getDefaultInstance()) { + getSearchEntryPointBuilder().mergeFrom(value); + } else { + searchEntryPoint_ = value; + } } else { - groundingAttributionsBuilder_.addAllMessages(values); + searchEntryPointBuilder_.mergeFrom(value); } - return this; - } - /** - * - * - *
-     * Optional. List of grounding attributions.
-     * 
- * - * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearGroundingAttributions() { - if (groundingAttributionsBuilder_ == null) { - groundingAttributions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + if (searchEntryPoint_ != null) { + bitField0_ |= 0x00000002; onChanged(); - } else { - groundingAttributionsBuilder_.clear(); } return this; } @@ -1086,143 +892,85 @@ public Builder clearGroundingAttributions() { * * *
-     * Optional. List of grounding attributions.
+     * Optional. Google search entry for the following-up web searches.
      * 
* * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.cloud.vertexai.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder removeGroundingAttributions(int index) { - if (groundingAttributionsBuilder_ == null) { - ensureGroundingAttributionsIsMutable(); - groundingAttributions_.remove(index); - onChanged(); - } else { - groundingAttributionsBuilder_.remove(index); + public Builder clearSearchEntryPoint() { + bitField0_ = (bitField0_ & ~0x00000002); + searchEntryPoint_ = null; + if (searchEntryPointBuilder_ != null) { + searchEntryPointBuilder_.dispose(); + searchEntryPointBuilder_ = null; } + onChanged(); return this; } /** * * *
-     * Optional. List of grounding attributions.
+     * Optional. Google search entry for the following-up web searches.
      * 
* * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.cloud.vertexai.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.vertexai.api.GroundingAttribution.Builder - getGroundingAttributionsBuilder(int index) { - return getGroundingAttributionsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Optional. List of grounding attributions.
-     * 
- * - * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.vertexai.api.GroundingAttributionOrBuilder - getGroundingAttributionsOrBuilder(int index) { - if (groundingAttributionsBuilder_ == null) { - return groundingAttributions_.get(index); - } else { - return groundingAttributionsBuilder_.getMessageOrBuilder(index); - } + public com.google.cloud.vertexai.api.SearchEntryPoint.Builder getSearchEntryPointBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getSearchEntryPointFieldBuilder().getBuilder(); } /** * * *
-     * Optional. List of grounding attributions.
+     * Optional. Google search entry for the following-up web searches.
      * 
* * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.cloud.vertexai.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public java.util.List - getGroundingAttributionsOrBuilderList() { - if (groundingAttributionsBuilder_ != null) { - return groundingAttributionsBuilder_.getMessageOrBuilderList(); + public com.google.cloud.vertexai.api.SearchEntryPointOrBuilder getSearchEntryPointOrBuilder() { + if (searchEntryPointBuilder_ != null) { + return searchEntryPointBuilder_.getMessageOrBuilder(); } else { - return java.util.Collections.unmodifiableList(groundingAttributions_); + return searchEntryPoint_ == null + ? com.google.cloud.vertexai.api.SearchEntryPoint.getDefaultInstance() + : searchEntryPoint_; } } /** * * *
-     * Optional. List of grounding attributions.
+     * Optional. Google search entry for the following-up web searches.
      * 
* * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.cloud.vertexai.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.vertexai.api.GroundingAttribution.Builder - addGroundingAttributionsBuilder() { - return getGroundingAttributionsFieldBuilder() - .addBuilder(com.google.cloud.vertexai.api.GroundingAttribution.getDefaultInstance()); - } - /** - * - * - *
-     * Optional. List of grounding attributions.
-     * 
- * - * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.vertexai.api.GroundingAttribution.Builder - addGroundingAttributionsBuilder(int index) { - return getGroundingAttributionsFieldBuilder() - .addBuilder( - index, com.google.cloud.vertexai.api.GroundingAttribution.getDefaultInstance()); - } - /** - * - * - *
-     * Optional. List of grounding attributions.
-     * 
- * - * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List - getGroundingAttributionsBuilderList() { - return getGroundingAttributionsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vertexai.api.GroundingAttribution, - com.google.cloud.vertexai.api.GroundingAttribution.Builder, - com.google.cloud.vertexai.api.GroundingAttributionOrBuilder> - getGroundingAttributionsFieldBuilder() { - if (groundingAttributionsBuilder_ == null) { - groundingAttributionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.vertexai.api.GroundingAttribution, - com.google.cloud.vertexai.api.GroundingAttribution.Builder, - com.google.cloud.vertexai.api.GroundingAttributionOrBuilder>( - groundingAttributions_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - groundingAttributions_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vertexai.api.SearchEntryPoint, + com.google.cloud.vertexai.api.SearchEntryPoint.Builder, + com.google.cloud.vertexai.api.SearchEntryPointOrBuilder> + getSearchEntryPointFieldBuilder() { + if (searchEntryPointBuilder_ == null) { + searchEntryPointBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vertexai.api.SearchEntryPoint, + com.google.cloud.vertexai.api.SearchEntryPoint.Builder, + com.google.cloud.vertexai.api.SearchEntryPointOrBuilder>( + getSearchEntryPoint(), getParentForChildren(), isClean()); + searchEntryPoint_ = null; } - return groundingAttributionsBuilder_; + return searchEntryPointBuilder_; } @java.lang.Override diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GroundingMetadataOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GroundingMetadataOrBuilder.java index 5b9adc982d78..e1f581c410af 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GroundingMetadataOrBuilder.java +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/GroundingMetadataOrBuilder.java @@ -79,62 +79,40 @@ public interface GroundingMetadataOrBuilder * * *
-   * Optional. List of grounding attributions.
+   * Optional. Google search entry for the following-up web searches.
    * 
* * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.cloud.vertexai.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL]; * - */ - java.util.List getGroundingAttributionsList(); - /** - * - * - *
-   * Optional. List of grounding attributions.
-   * 
* - * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * @return Whether the searchEntryPoint field is set. */ - com.google.cloud.vertexai.api.GroundingAttribution getGroundingAttributions(int index); + boolean hasSearchEntryPoint(); /** * * *
-   * Optional. List of grounding attributions.
+   * Optional. Google search entry for the following-up web searches.
    * 
* * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.cloud.vertexai.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL]; * - */ - int getGroundingAttributionsCount(); - /** - * - * - *
-   * Optional. List of grounding attributions.
-   * 
* - * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * @return The searchEntryPoint. */ - java.util.List - getGroundingAttributionsOrBuilderList(); + com.google.cloud.vertexai.api.SearchEntryPoint getSearchEntryPoint(); /** * * *
-   * Optional. List of grounding attributions.
+   * Optional. Google search entry for the following-up web searches.
    * 
* * - * repeated .google.cloud.vertexai.v1.GroundingAttribution grounding_attributions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.cloud.vertexai.v1.SearchEntryPoint search_entry_point = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - com.google.cloud.vertexai.api.GroundingAttributionOrBuilder getGroundingAttributionsOrBuilder( - int index); + com.google.cloud.vertexai.api.SearchEntryPointOrBuilder getSearchEntryPointOrBuilder(); } diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PredictionServiceProto.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PredictionServiceProto.java index da662d55ae58..dd04ea81c93d 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PredictionServiceProto.java +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PredictionServiceProto.java @@ -216,116 +216,132 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "otobuf.ValueB\003\340A\002\0228\n\010contents\030\004 \003(\0132!.go" + "ogle.cloud.vertexai.v1.ContentB\003\340A\002\"N\n\023C" + "ountTokensResponse\022\024\n\014total_tokens\030\001 \001(\005" - + "\022!\n\031total_billable_characters\030\002 \001(\005\"\215\003\n\026" + + "\022!\n\031total_billable_characters\030\002 \001(\005\"\315\003\n\026" + "GenerateContentRequest\022\022\n\005model\030\005 \001(\tB\003\340" + "A\002\0228\n\010contents\030\002 \003(\0132!.google.cloud.vert" + "exai.v1.ContentB\003\340A\002\022G\n\022system_instructi" + "on\030\010 \001(\0132!.google.cloud.vertexai.v1.Cont" + "entB\003\340A\001H\000\210\001\001\0222\n\005tools\030\006 \003(\0132\036.google.cl" - + "oud.vertexai.v1.ToolB\003\340A\001\022E\n\017safety_sett" - + "ings\030\003 \003(\0132\'.google.cloud.vertexai.v1.Sa" - + "fetySettingB\003\340A\001\022J\n\021generation_config\030\004 " - + "\001(\0132*.google.cloud.vertexai.v1.Generatio" - + "nConfigB\003\340A\001B\025\n\023_system_instruction\"\315\005\n\027" - + "GenerateContentResponse\022<\n\ncandidates\030\002 " - + "\003(\0132#.google.cloud.vertexai.v1.Candidate" - + "B\003\340A\003\022^\n\017prompt_feedback\030\003 \001(\0132@.google." - + "cloud.vertexai.v1.GenerateContentRespons" - + "e.PromptFeedbackB\003\340A\003\022W\n\016usage_metadata\030" - + "\004 \001(\0132?.google.cloud.vertexai.v1.Generat" - + "eContentResponse.UsageMetadata\032\322\002\n\016Promp" - + "tFeedback\022i\n\014block_reason\030\001 \001(\0162N.google" - + ".cloud.vertexai.v1.GenerateContentRespon" - + "se.PromptFeedback.BlockedReasonB\003\340A\003\022C\n\016" - + "safety_ratings\030\002 \003(\0132&.google.cloud.vert" - + "exai.v1.SafetyRatingB\003\340A\003\022!\n\024block_reaso" - + "n_message\030\003 \001(\tB\003\340A\003\"m\n\rBlockedReason\022\036\n" - + "\032BLOCKED_REASON_UNSPECIFIED\020\000\022\n\n\006SAFETY\020" - + "\001\022\t\n\005OTHER\020\002\022\r\n\tBLOCKLIST\020\003\022\026\n\022PROHIBITE" - + "D_CONTENT\020\004\032f\n\rUsageMetadata\022\032\n\022prompt_t" - + "oken_count\030\001 \001(\005\022\036\n\026candidates_token_cou" - + "nt\030\002 \001(\005\022\031\n\021total_token_count\030\003 \001(\0052\257\027\n\021" - + "PredictionService\022\220\002\n\007Predict\022(.google.c" - + "loud.vertexai.v1.PredictRequest\032).google" - + ".cloud.vertexai.v1.PredictResponse\"\257\001\332A\035" - + "endpoint,instances,parameters\202\323\344\223\002\210\001\"9/v" + + "oud.vertexai.v1.ToolB\003\340A\001\022>\n\013tool_config" + + "\030\007 \001(\0132$.google.cloud.vertexai.v1.ToolCo" + + "nfigB\003\340A\001\022E\n\017safety_settings\030\003 \003(\0132\'.goo" + + "gle.cloud.vertexai.v1.SafetySettingB\003\340A\001" + + "\022J\n\021generation_config\030\004 \001(\0132*.google.clo" + + "ud.vertexai.v1.GenerationConfigB\003\340A\001B\025\n\023" + + "_system_instruction\"\315\005\n\027GenerateContentR" + + "esponse\022<\n\ncandidates\030\002 \003(\0132#.google.clo" + + "ud.vertexai.v1.CandidateB\003\340A\003\022^\n\017prompt_" + + "feedback\030\003 \001(\0132@.google.cloud.vertexai.v" + + "1.GenerateContentResponse.PromptFeedback" + + "B\003\340A\003\022W\n\016usage_metadata\030\004 \001(\0132?.google.c" + + "loud.vertexai.v1.GenerateContentResponse" + + ".UsageMetadata\032\322\002\n\016PromptFeedback\022i\n\014blo" + + "ck_reason\030\001 \001(\0162N.google.cloud.vertexai." + + "v1.GenerateContentResponse.PromptFeedbac" + + "k.BlockedReasonB\003\340A\003\022C\n\016safety_ratings\030\002" + + " \003(\0132&.google.cloud.vertexai.v1.SafetyRa" + + "tingB\003\340A\003\022!\n\024block_reason_message\030\003 \001(\tB" + + "\003\340A\003\"m\n\rBlockedReason\022\036\n\032BLOCKED_REASON_" + + "UNSPECIFIED\020\000\022\n\n\006SAFETY\020\001\022\t\n\005OTHER\020\002\022\r\n\t" + + "BLOCKLIST\020\003\022\026\n\022PROHIBITED_CONTENT\020\004\032f\n\rU" + + "sageMetadata\022\032\n\022prompt_token_count\030\001 \001(\005" + + "\022\036\n\026candidates_token_count\030\002 \001(\005\022\031\n\021tota" + + "l_token_count\030\003 \001(\0052\346\033\n\021PredictionServic" + + "e\022\220\002\n\007Predict\022(.google.cloud.vertexai.v1" + + ".PredictRequest\032).google.cloud.vertexai." + + "v1.PredictResponse\"\257\001\332A\035endpoint,instanc" + + "es,parameters\202\323\344\223\002\210\001\"9/v1/{endpoint=proj" + + "ects/*/locations/*/endpoints/*}:predict:" + + "\001*ZH\"C/v1/{endpoint=projects/*/locations" + + "/*/publishers/*/models/*}:predict:\001*\022\374\001\n" + + "\nRawPredict\022+.google.cloud.vertexai.v1.R" + + "awPredictRequest\032\024.google.api.HttpBody\"\252" + + "\001\332A\022endpoint,http_body\202\323\344\223\002\216\001\"" - + "\"9/v1/{endpoint=projects/*/locations/*/e" - + "ndpoints/*}:explain:\001*\022\243\002\n\017GenerateConte" - + "nt\0220.google.cloud.vertexai.v1.GenerateCo" - + "ntentRequest\0321.google.cloud.vertexai.v1." - + "GenerateContentResponse\"\252\001\332A\016model,conte" - + "nts\202\323\344\223\002\222\001\">/v1/{model=projects/*/locati" - + "ons/*/endpoints/*}:generateContent:\001*ZM\"" - + "H/v1/{model=projects/*/locations/*/publi" - + "shers/*/models/*}:generateContent:\001*\022\267\002\n" - + "\025StreamGenerateContent\0220.google.cloud.ve" - + "rtexai.v1.GenerateContentRequest\0321.googl" - + "e.cloud.vertexai.v1.GenerateContentRespo" - + "nse\"\266\001\332A\016model,contents\202\323\344\223\002\236\001\"D/v1/{mod" - + "el=projects/*/locations/*/endpoints/*}:s" - + "treamGenerateContent:\001*ZS\"N/v1/{model=pr" - + "ojects/*/locations/*/publishers/*/models" - + "/*}:streamGenerateContent:\001*0\001\032M\312A\031aipla" - + "tform.googleapis.com\322A.https://www.googl" - + "eapis.com/auth/cloud-platformB\323\001\n\035com.go" - + "ogle.cloud.vertexai.apiB\026PredictionServi" - + "ceProtoP\001Z>cloud.google.com/go/aiplatfor" - + "m/apiv1/aiplatformpb;aiplatformpb\252\002\032Goog" - + "le.Cloud.AIPlatform.V1\312\002\032Google\\Cloud\\AI" - + "Platform\\V1\352\002\035Google::Cloud::AIPlatform:" - + ":V1b\006proto3" + + "*}:serverStreamingPredict:\001*ZW\"R/v1/{end" + + "point=projects/*/locations/*/publishers/" + + "*/models/*}:serverStreamingPredict:\001*0\001\022" + + "\210\001\n\023StreamingRawPredict\0224.google.cloud.v" + + "ertexai.v1.StreamingRawPredictRequest\0325." + + "google.cloud.vertexai.v1.StreamingRawPre" + + "dictResponse\"\000(\0010\001\022\326\001\n\007Explain\022(.google." + + "cloud.vertexai.v1.ExplainRequest\032).googl" + + "e.cloud.vertexai.v1.ExplainResponse\"v\332A/" + + "endpoint,instances,parameters,deployed_m" + + "odel_id\202\323\344\223\002>\"9/v1/{endpoint=projects/*/" + + "locations/*/endpoints/*}:explain:\001*\022\243\002\n\017" + + "GenerateContent\0220.google.cloud.vertexai." + + "v1.GenerateContentRequest\0321.google.cloud" + + ".vertexai.v1.GenerateContentResponse\"\252\001\332" + + "A\016model,contents\202\323\344\223\002\222\001\">/v1/{model=proj" + + "ects/*/locations/*/endpoints/*}:generate" + + "Content:\001*ZM\"H/v1/{model=projects/*/loca" + + "tions/*/publishers/*/models/*}:generateC" + + "ontent:\001*\022\267\002\n\025StreamGenerateContent\0220.go" + + "ogle.cloud.vertexai.v1.GenerateContentRe" + + "quest\0321.google.cloud.vertexai.v1.Generat" + + "eContentResponse\"\266\001\332A\016model,contents\202\323\344\223" + + "\002\236\001\"D/v1/{model=projects/*/locations/*/e" + + "ndpoints/*}:streamGenerateContent:\001*ZS\"N" + + "/v1/{model=projects/*/locations/*/publis" + + "hers/*/models/*}:streamGenerateContent:\001" + + "*0\001\032\206\001\312A\031aiplatform.googleapis.com\322Aghtt" + + "ps://www.googleapis.com/auth/cloud-platf" + + "orm,https://www.googleapis.com/auth/clou" + + "d-platform.read-onlyB\323\001\n\035com.google.clou" + + "d.vertexai.apiB\026PredictionServiceProtoP\001" + + "Z>cloud.google.com/go/aiplatform/apiv1/a" + + "iplatformpb;aiplatformpb\252\002\032Google.Cloud." + + "AIPlatform.V1\312\002\032Google\\Cloud\\AIPlatform\\" + + "V1\352\002\035Google::Cloud::AIPlatform::V1b\006prot" + + "o3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -517,6 +533,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Contents", "SystemInstruction", "Tools", + "ToolConfig", "SafetySettings", "GenerationConfig", }); diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PrivateServiceConnectConfig.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PrivateServiceConnectConfig.java new file mode 100644 index 000000000000..c0b1b5e63510 --- /dev/null +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PrivateServiceConnectConfig.java @@ -0,0 +1,831 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vertexai/v1/service_networking.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.vertexai.api; + +/** + * + * + *
+ * Represents configuration for private service connect.
+ * 
+ * + * Protobuf type {@code google.cloud.vertexai.v1.PrivateServiceConnectConfig} + */ +public final class PrivateServiceConnectConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vertexai.v1.PrivateServiceConnectConfig) + PrivateServiceConnectConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use PrivateServiceConnectConfig.newBuilder() to construct. + private PrivateServiceConnectConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PrivateServiceConnectConfig() { + projectAllowlist_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PrivateServiceConnectConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vertexai.api.ServiceNetworkingProto + .internal_static_google_cloud_vertexai_v1_PrivateServiceConnectConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vertexai.api.ServiceNetworkingProto + .internal_static_google_cloud_vertexai_v1_PrivateServiceConnectConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vertexai.api.PrivateServiceConnectConfig.class, + com.google.cloud.vertexai.api.PrivateServiceConnectConfig.Builder.class); + } + + public static final int ENABLE_PRIVATE_SERVICE_CONNECT_FIELD_NUMBER = 1; + private boolean enablePrivateServiceConnect_ = false; + /** + * + * + *
+   * Required. If true, expose the IndexEndpoint via private service connect.
+   * 
+ * + * bool enable_private_service_connect = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The enablePrivateServiceConnect. + */ + @java.lang.Override + public boolean getEnablePrivateServiceConnect() { + return enablePrivateServiceConnect_; + } + + public static final int PROJECT_ALLOWLIST_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList projectAllowlist_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * A list of Projects from which the forwarding rule will target the service
+   * attachment.
+   * 
+ * + * repeated string project_allowlist = 2; + * + * @return A list containing the projectAllowlist. + */ + public com.google.protobuf.ProtocolStringList getProjectAllowlistList() { + return projectAllowlist_; + } + /** + * + * + *
+   * A list of Projects from which the forwarding rule will target the service
+   * attachment.
+   * 
+ * + * repeated string project_allowlist = 2; + * + * @return The count of projectAllowlist. + */ + public int getProjectAllowlistCount() { + return projectAllowlist_.size(); + } + /** + * + * + *
+   * A list of Projects from which the forwarding rule will target the service
+   * attachment.
+   * 
+ * + * repeated string project_allowlist = 2; + * + * @param index The index of the element to return. + * @return The projectAllowlist at the given index. + */ + public java.lang.String getProjectAllowlist(int index) { + return projectAllowlist_.get(index); + } + /** + * + * + *
+   * A list of Projects from which the forwarding rule will target the service
+   * attachment.
+   * 
+ * + * repeated string project_allowlist = 2; + * + * @param index The index of the value to return. + * @return The bytes of the projectAllowlist at the given index. + */ + public com.google.protobuf.ByteString getProjectAllowlistBytes(int index) { + return projectAllowlist_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enablePrivateServiceConnect_ != false) { + output.writeBool(1, enablePrivateServiceConnect_); + } + for (int i = 0; i < projectAllowlist_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, projectAllowlist_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enablePrivateServiceConnect_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(1, enablePrivateServiceConnect_); + } + { + int dataSize = 0; + for (int i = 0; i < projectAllowlist_.size(); i++) { + dataSize += computeStringSizeNoTag(projectAllowlist_.getRaw(i)); + } + size += dataSize; + size += 1 * getProjectAllowlistList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vertexai.api.PrivateServiceConnectConfig)) { + return super.equals(obj); + } + com.google.cloud.vertexai.api.PrivateServiceConnectConfig other = + (com.google.cloud.vertexai.api.PrivateServiceConnectConfig) obj; + + if (getEnablePrivateServiceConnect() != other.getEnablePrivateServiceConnect()) return false; + if (!getProjectAllowlistList().equals(other.getProjectAllowlistList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLE_PRIVATE_SERVICE_CONNECT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnablePrivateServiceConnect()); + if (getProjectAllowlistCount() > 0) { + hash = (37 * hash) + PROJECT_ALLOWLIST_FIELD_NUMBER; + hash = (53 * hash) + getProjectAllowlistList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vertexai.api.PrivateServiceConnectConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vertexai.api.PrivateServiceConnectConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vertexai.api.PrivateServiceConnectConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vertexai.api.PrivateServiceConnectConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vertexai.api.PrivateServiceConnectConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vertexai.api.PrivateServiceConnectConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vertexai.api.PrivateServiceConnectConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vertexai.api.PrivateServiceConnectConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vertexai.api.PrivateServiceConnectConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vertexai.api.PrivateServiceConnectConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vertexai.api.PrivateServiceConnectConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vertexai.api.PrivateServiceConnectConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.vertexai.api.PrivateServiceConnectConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Represents configuration for private service connect.
+   * 
+ * + * Protobuf type {@code google.cloud.vertexai.v1.PrivateServiceConnectConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vertexai.v1.PrivateServiceConnectConfig) + com.google.cloud.vertexai.api.PrivateServiceConnectConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vertexai.api.ServiceNetworkingProto + .internal_static_google_cloud_vertexai_v1_PrivateServiceConnectConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vertexai.api.ServiceNetworkingProto + .internal_static_google_cloud_vertexai_v1_PrivateServiceConnectConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vertexai.api.PrivateServiceConnectConfig.class, + com.google.cloud.vertexai.api.PrivateServiceConnectConfig.Builder.class); + } + + // Construct using com.google.cloud.vertexai.api.PrivateServiceConnectConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enablePrivateServiceConnect_ = false; + projectAllowlist_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vertexai.api.ServiceNetworkingProto + .internal_static_google_cloud_vertexai_v1_PrivateServiceConnectConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.vertexai.api.PrivateServiceConnectConfig getDefaultInstanceForType() { + return com.google.cloud.vertexai.api.PrivateServiceConnectConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vertexai.api.PrivateServiceConnectConfig build() { + com.google.cloud.vertexai.api.PrivateServiceConnectConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vertexai.api.PrivateServiceConnectConfig buildPartial() { + com.google.cloud.vertexai.api.PrivateServiceConnectConfig result = + new com.google.cloud.vertexai.api.PrivateServiceConnectConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vertexai.api.PrivateServiceConnectConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enablePrivateServiceConnect_ = enablePrivateServiceConnect_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + projectAllowlist_.makeImmutable(); + result.projectAllowlist_ = projectAllowlist_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vertexai.api.PrivateServiceConnectConfig) { + return mergeFrom((com.google.cloud.vertexai.api.PrivateServiceConnectConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vertexai.api.PrivateServiceConnectConfig other) { + if (other == com.google.cloud.vertexai.api.PrivateServiceConnectConfig.getDefaultInstance()) + return this; + if (other.getEnablePrivateServiceConnect() != false) { + setEnablePrivateServiceConnect(other.getEnablePrivateServiceConnect()); + } + if (!other.projectAllowlist_.isEmpty()) { + if (projectAllowlist_.isEmpty()) { + projectAllowlist_ = other.projectAllowlist_; + bitField0_ |= 0x00000002; + } else { + ensureProjectAllowlistIsMutable(); + projectAllowlist_.addAll(other.projectAllowlist_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + enablePrivateServiceConnect_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureProjectAllowlistIsMutable(); + projectAllowlist_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean enablePrivateServiceConnect_; + /** + * + * + *
+     * Required. If true, expose the IndexEndpoint via private service connect.
+     * 
+ * + * bool enable_private_service_connect = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enablePrivateServiceConnect. + */ + @java.lang.Override + public boolean getEnablePrivateServiceConnect() { + return enablePrivateServiceConnect_; + } + /** + * + * + *
+     * Required. If true, expose the IndexEndpoint via private service connect.
+     * 
+ * + * bool enable_private_service_connect = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enablePrivateServiceConnect to set. + * @return This builder for chaining. + */ + public Builder setEnablePrivateServiceConnect(boolean value) { + + enablePrivateServiceConnect_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. If true, expose the IndexEndpoint via private service connect.
+     * 
+ * + * bool enable_private_service_connect = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearEnablePrivateServiceConnect() { + bitField0_ = (bitField0_ & ~0x00000001); + enablePrivateServiceConnect_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList projectAllowlist_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureProjectAllowlistIsMutable() { + if (!projectAllowlist_.isModifiable()) { + projectAllowlist_ = new com.google.protobuf.LazyStringArrayList(projectAllowlist_); + } + bitField0_ |= 0x00000002; + } + /** + * + * + *
+     * A list of Projects from which the forwarding rule will target the service
+     * attachment.
+     * 
+ * + * repeated string project_allowlist = 2; + * + * @return A list containing the projectAllowlist. + */ + public com.google.protobuf.ProtocolStringList getProjectAllowlistList() { + projectAllowlist_.makeImmutable(); + return projectAllowlist_; + } + /** + * + * + *
+     * A list of Projects from which the forwarding rule will target the service
+     * attachment.
+     * 
+ * + * repeated string project_allowlist = 2; + * + * @return The count of projectAllowlist. + */ + public int getProjectAllowlistCount() { + return projectAllowlist_.size(); + } + /** + * + * + *
+     * A list of Projects from which the forwarding rule will target the service
+     * attachment.
+     * 
+ * + * repeated string project_allowlist = 2; + * + * @param index The index of the element to return. + * @return The projectAllowlist at the given index. + */ + public java.lang.String getProjectAllowlist(int index) { + return projectAllowlist_.get(index); + } + /** + * + * + *
+     * A list of Projects from which the forwarding rule will target the service
+     * attachment.
+     * 
+ * + * repeated string project_allowlist = 2; + * + * @param index The index of the value to return. + * @return The bytes of the projectAllowlist at the given index. + */ + public com.google.protobuf.ByteString getProjectAllowlistBytes(int index) { + return projectAllowlist_.getByteString(index); + } + /** + * + * + *
+     * A list of Projects from which the forwarding rule will target the service
+     * attachment.
+     * 
+ * + * repeated string project_allowlist = 2; + * + * @param index The index to set the value at. + * @param value The projectAllowlist to set. + * @return This builder for chaining. + */ + public Builder setProjectAllowlist(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureProjectAllowlistIsMutable(); + projectAllowlist_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A list of Projects from which the forwarding rule will target the service
+     * attachment.
+     * 
+ * + * repeated string project_allowlist = 2; + * + * @param value The projectAllowlist to add. + * @return This builder for chaining. + */ + public Builder addProjectAllowlist(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureProjectAllowlistIsMutable(); + projectAllowlist_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A list of Projects from which the forwarding rule will target the service
+     * attachment.
+     * 
+ * + * repeated string project_allowlist = 2; + * + * @param values The projectAllowlist to add. + * @return This builder for chaining. + */ + public Builder addAllProjectAllowlist(java.lang.Iterable values) { + ensureProjectAllowlistIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, projectAllowlist_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A list of Projects from which the forwarding rule will target the service
+     * attachment.
+     * 
+ * + * repeated string project_allowlist = 2; + * + * @return This builder for chaining. + */ + public Builder clearProjectAllowlist() { + projectAllowlist_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * A list of Projects from which the forwarding rule will target the service
+     * attachment.
+     * 
+ * + * repeated string project_allowlist = 2; + * + * @param value The bytes of the projectAllowlist to add. + * @return This builder for chaining. + */ + public Builder addProjectAllowlistBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureProjectAllowlistIsMutable(); + projectAllowlist_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vertexai.v1.PrivateServiceConnectConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vertexai.v1.PrivateServiceConnectConfig) + private static final com.google.cloud.vertexai.api.PrivateServiceConnectConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vertexai.api.PrivateServiceConnectConfig(); + } + + public static com.google.cloud.vertexai.api.PrivateServiceConnectConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrivateServiceConnectConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.vertexai.api.PrivateServiceConnectConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PrivateServiceConnectConfigOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PrivateServiceConnectConfigOrBuilder.java new file mode 100644 index 000000000000..a8f3f84bee0c --- /dev/null +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PrivateServiceConnectConfigOrBuilder.java @@ -0,0 +1,94 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vertexai/v1/service_networking.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.vertexai.api; + +public interface PrivateServiceConnectConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vertexai.v1.PrivateServiceConnectConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. If true, expose the IndexEndpoint via private service connect.
+   * 
+ * + * bool enable_private_service_connect = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The enablePrivateServiceConnect. + */ + boolean getEnablePrivateServiceConnect(); + + /** + * + * + *
+   * A list of Projects from which the forwarding rule will target the service
+   * attachment.
+   * 
+ * + * repeated string project_allowlist = 2; + * + * @return A list containing the projectAllowlist. + */ + java.util.List getProjectAllowlistList(); + /** + * + * + *
+   * A list of Projects from which the forwarding rule will target the service
+   * attachment.
+   * 
+ * + * repeated string project_allowlist = 2; + * + * @return The count of projectAllowlist. + */ + int getProjectAllowlistCount(); + /** + * + * + *
+   * A list of Projects from which the forwarding rule will target the service
+   * attachment.
+   * 
+ * + * repeated string project_allowlist = 2; + * + * @param index The index of the element to return. + * @return The projectAllowlist at the given index. + */ + java.lang.String getProjectAllowlist(int index); + /** + * + * + *
+   * A list of Projects from which the forwarding rule will target the service
+   * attachment.
+   * 
+ * + * repeated string project_allowlist = 2; + * + * @param index The index of the value to return. + * @return The bytes of the projectAllowlist at the given index. + */ + com.google.protobuf.ByteString getProjectAllowlistBytes(int index); +} diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PscAutomatedEndpoints.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PscAutomatedEndpoints.java new file mode 100644 index 000000000000..1209c3b492ea --- /dev/null +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PscAutomatedEndpoints.java @@ -0,0 +1,991 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vertexai/v1/service_networking.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.vertexai.api; + +/** + * + * + *
+ * PscAutomatedEndpoints defines the output of the forwarding rule
+ * automatically created by each PscAutomationConfig.
+ * 
+ * + * Protobuf type {@code google.cloud.vertexai.v1.PscAutomatedEndpoints} + */ +public final class PscAutomatedEndpoints extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vertexai.v1.PscAutomatedEndpoints) + PscAutomatedEndpointsOrBuilder { + private static final long serialVersionUID = 0L; + // Use PscAutomatedEndpoints.newBuilder() to construct. + private PscAutomatedEndpoints(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PscAutomatedEndpoints() { + projectId_ = ""; + network_ = ""; + matchAddress_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PscAutomatedEndpoints(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vertexai.api.ServiceNetworkingProto + .internal_static_google_cloud_vertexai_v1_PscAutomatedEndpoints_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vertexai.api.ServiceNetworkingProto + .internal_static_google_cloud_vertexai_v1_PscAutomatedEndpoints_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vertexai.api.PscAutomatedEndpoints.class, + com.google.cloud.vertexai.api.PscAutomatedEndpoints.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + * + * + *
+   * Corresponding project_id in pscAutomationConfigs
+   * 
+ * + * string project_id = 1; + * + * @return The projectId. + */ + @java.lang.Override + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } + } + /** + * + * + *
+   * Corresponding project_id in pscAutomationConfigs
+   * 
+ * + * string project_id = 1; + * + * @return The bytes for projectId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NETWORK_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object network_ = ""; + /** + * + * + *
+   * Corresponding network in pscAutomationConfigs.
+   * 
+ * + * string network = 2; + * + * @return The network. + */ + @java.lang.Override + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } + } + /** + * + * + *
+   * Corresponding network in pscAutomationConfigs.
+   * 
+ * + * string network = 2; + * + * @return The bytes for network. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MATCH_ADDRESS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object matchAddress_ = ""; + /** + * + * + *
+   * Ip Address created by the automated forwarding rule.
+   * 
+ * + * string match_address = 3; + * + * @return The matchAddress. + */ + @java.lang.Override + public java.lang.String getMatchAddress() { + java.lang.Object ref = matchAddress_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + matchAddress_ = s; + return s; + } + } + /** + * + * + *
+   * Ip Address created by the automated forwarding rule.
+   * 
+ * + * string match_address = 3; + * + * @return The bytes for matchAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMatchAddressBytes() { + java.lang.Object ref = matchAddress_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + matchAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, network_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(matchAddress_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, matchAddress_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, network_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(matchAddress_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, matchAddress_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vertexai.api.PscAutomatedEndpoints)) { + return super.equals(obj); + } + com.google.cloud.vertexai.api.PscAutomatedEndpoints other = + (com.google.cloud.vertexai.api.PscAutomatedEndpoints) obj; + + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getNetwork().equals(other.getNetwork())) return false; + if (!getMatchAddress().equals(other.getMatchAddress())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getNetwork().hashCode(); + hash = (37 * hash) + MATCH_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getMatchAddress().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vertexai.api.PscAutomatedEndpoints parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vertexai.api.PscAutomatedEndpoints parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vertexai.api.PscAutomatedEndpoints parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vertexai.api.PscAutomatedEndpoints parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vertexai.api.PscAutomatedEndpoints parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vertexai.api.PscAutomatedEndpoints parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vertexai.api.PscAutomatedEndpoints parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vertexai.api.PscAutomatedEndpoints parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vertexai.api.PscAutomatedEndpoints parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vertexai.api.PscAutomatedEndpoints parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vertexai.api.PscAutomatedEndpoints parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vertexai.api.PscAutomatedEndpoints parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.vertexai.api.PscAutomatedEndpoints prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * PscAutomatedEndpoints defines the output of the forwarding rule
+   * automatically created by each PscAutomationConfig.
+   * 
+ * + * Protobuf type {@code google.cloud.vertexai.v1.PscAutomatedEndpoints} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vertexai.v1.PscAutomatedEndpoints) + com.google.cloud.vertexai.api.PscAutomatedEndpointsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vertexai.api.ServiceNetworkingProto + .internal_static_google_cloud_vertexai_v1_PscAutomatedEndpoints_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vertexai.api.ServiceNetworkingProto + .internal_static_google_cloud_vertexai_v1_PscAutomatedEndpoints_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vertexai.api.PscAutomatedEndpoints.class, + com.google.cloud.vertexai.api.PscAutomatedEndpoints.Builder.class); + } + + // Construct using com.google.cloud.vertexai.api.PscAutomatedEndpoints.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectId_ = ""; + network_ = ""; + matchAddress_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vertexai.api.ServiceNetworkingProto + .internal_static_google_cloud_vertexai_v1_PscAutomatedEndpoints_descriptor; + } + + @java.lang.Override + public com.google.cloud.vertexai.api.PscAutomatedEndpoints getDefaultInstanceForType() { + return com.google.cloud.vertexai.api.PscAutomatedEndpoints.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vertexai.api.PscAutomatedEndpoints build() { + com.google.cloud.vertexai.api.PscAutomatedEndpoints result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vertexai.api.PscAutomatedEndpoints buildPartial() { + com.google.cloud.vertexai.api.PscAutomatedEndpoints result = + new com.google.cloud.vertexai.api.PscAutomatedEndpoints(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vertexai.api.PscAutomatedEndpoints result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.network_ = network_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.matchAddress_ = matchAddress_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vertexai.api.PscAutomatedEndpoints) { + return mergeFrom((com.google.cloud.vertexai.api.PscAutomatedEndpoints) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vertexai.api.PscAutomatedEndpoints other) { + if (other == com.google.cloud.vertexai.api.PscAutomatedEndpoints.getDefaultInstance()) + return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getNetwork().isEmpty()) { + network_ = other.network_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getMatchAddress().isEmpty()) { + matchAddress_ = other.matchAddress_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + network_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + matchAddress_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object projectId_ = ""; + /** + * + * + *
+     * Corresponding project_id in pscAutomationConfigs
+     * 
+ * + * string project_id = 1; + * + * @return The projectId. + */ + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Corresponding project_id in pscAutomationConfigs
+     * 
+ * + * string project_id = 1; + * + * @return The bytes for projectId. + */ + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Corresponding project_id in pscAutomationConfigs
+     * 
+ * + * string project_id = 1; + * + * @param value The projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + projectId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Corresponding project_id in pscAutomationConfigs
+     * 
+ * + * string project_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Corresponding project_id in pscAutomationConfigs
+     * 
+ * + * string project_id = 1; + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object network_ = ""; + /** + * + * + *
+     * Corresponding network in pscAutomationConfigs.
+     * 
+ * + * string network = 2; + * + * @return The network. + */ + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Corresponding network in pscAutomationConfigs.
+     * 
+ * + * string network = 2; + * + * @return The bytes for network. + */ + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Corresponding network in pscAutomationConfigs.
+     * 
+ * + * string network = 2; + * + * @param value The network to set. + * @return This builder for chaining. + */ + public Builder setNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + network_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Corresponding network in pscAutomationConfigs.
+     * 
+ * + * string network = 2; + * + * @return This builder for chaining. + */ + public Builder clearNetwork() { + network_ = getDefaultInstance().getNetwork(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Corresponding network in pscAutomationConfigs.
+     * 
+ * + * string network = 2; + * + * @param value The bytes for network to set. + * @return This builder for chaining. + */ + public Builder setNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + network_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object matchAddress_ = ""; + /** + * + * + *
+     * Ip Address created by the automated forwarding rule.
+     * 
+ * + * string match_address = 3; + * + * @return The matchAddress. + */ + public java.lang.String getMatchAddress() { + java.lang.Object ref = matchAddress_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + matchAddress_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Ip Address created by the automated forwarding rule.
+     * 
+ * + * string match_address = 3; + * + * @return The bytes for matchAddress. + */ + public com.google.protobuf.ByteString getMatchAddressBytes() { + java.lang.Object ref = matchAddress_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + matchAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Ip Address created by the automated forwarding rule.
+     * 
+ * + * string match_address = 3; + * + * @param value The matchAddress to set. + * @return This builder for chaining. + */ + public Builder setMatchAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + matchAddress_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Ip Address created by the automated forwarding rule.
+     * 
+ * + * string match_address = 3; + * + * @return This builder for chaining. + */ + public Builder clearMatchAddress() { + matchAddress_ = getDefaultInstance().getMatchAddress(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Ip Address created by the automated forwarding rule.
+     * 
+ * + * string match_address = 3; + * + * @param value The bytes for matchAddress to set. + * @return This builder for chaining. + */ + public Builder setMatchAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + matchAddress_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vertexai.v1.PscAutomatedEndpoints) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vertexai.v1.PscAutomatedEndpoints) + private static final com.google.cloud.vertexai.api.PscAutomatedEndpoints DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vertexai.api.PscAutomatedEndpoints(); + } + + public static com.google.cloud.vertexai.api.PscAutomatedEndpoints getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PscAutomatedEndpoints parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.vertexai.api.PscAutomatedEndpoints getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PscAutomatedEndpointsOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PscAutomatedEndpointsOrBuilder.java new file mode 100644 index 000000000000..28802bfdbfc4 --- /dev/null +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PscAutomatedEndpointsOrBuilder.java @@ -0,0 +1,101 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vertexai/v1/service_networking.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.vertexai.api; + +public interface PscAutomatedEndpointsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vertexai.v1.PscAutomatedEndpoints) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Corresponding project_id in pscAutomationConfigs
+   * 
+ * + * string project_id = 1; + * + * @return The projectId. + */ + java.lang.String getProjectId(); + /** + * + * + *
+   * Corresponding project_id in pscAutomationConfigs
+   * 
+ * + * string project_id = 1; + * + * @return The bytes for projectId. + */ + com.google.protobuf.ByteString getProjectIdBytes(); + + /** + * + * + *
+   * Corresponding network in pscAutomationConfigs.
+   * 
+ * + * string network = 2; + * + * @return The network. + */ + java.lang.String getNetwork(); + /** + * + * + *
+   * Corresponding network in pscAutomationConfigs.
+   * 
+ * + * string network = 2; + * + * @return The bytes for network. + */ + com.google.protobuf.ByteString getNetworkBytes(); + + /** + * + * + *
+   * Ip Address created by the automated forwarding rule.
+   * 
+ * + * string match_address = 3; + * + * @return The matchAddress. + */ + java.lang.String getMatchAddress(); + /** + * + * + *
+   * Ip Address created by the automated forwarding rule.
+   * 
+ * + * string match_address = 3; + * + * @return The bytes for matchAddress. + */ + com.google.protobuf.ByteString getMatchAddressBytes(); +} diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Segment.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/SearchEntryPoint.java similarity index 53% rename from java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Segment.java rename to java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/SearchEntryPoint.java index d20bc1669471..a77cc90c009f 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Segment.java +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/SearchEntryPoint.java @@ -23,98 +23,117 @@ * * *
- * Segment of the content.
+ * Google search entry point.
  * 
* - * Protobuf type {@code google.cloud.vertexai.v1.Segment} + * Protobuf type {@code google.cloud.vertexai.v1.SearchEntryPoint} */ -public final class Segment extends com.google.protobuf.GeneratedMessageV3 +public final class SearchEntryPoint extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.vertexai.v1.Segment) - SegmentOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.vertexai.v1.SearchEntryPoint) + SearchEntryPointOrBuilder { private static final long serialVersionUID = 0L; - // Use Segment.newBuilder() to construct. - private Segment(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use SearchEntryPoint.newBuilder() to construct. + private SearchEntryPoint(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Segment() {} + private SearchEntryPoint() { + renderedContent_ = ""; + sdkBlob_ = com.google.protobuf.ByteString.EMPTY; + } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Segment(); + return new SearchEntryPoint(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.vertexai.api.ContentProto - .internal_static_google_cloud_vertexai_v1_Segment_descriptor; + .internal_static_google_cloud_vertexai_v1_SearchEntryPoint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.vertexai.api.ContentProto - .internal_static_google_cloud_vertexai_v1_Segment_fieldAccessorTable + .internal_static_google_cloud_vertexai_v1_SearchEntryPoint_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vertexai.api.Segment.class, - com.google.cloud.vertexai.api.Segment.Builder.class); + com.google.cloud.vertexai.api.SearchEntryPoint.class, + com.google.cloud.vertexai.api.SearchEntryPoint.Builder.class); } - public static final int PART_INDEX_FIELD_NUMBER = 1; - private int partIndex_ = 0; + public static final int RENDERED_CONTENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object renderedContent_ = ""; /** * * *
-   * Output only. The index of a Part object within its parent Content object.
+   * Optional. Web content snippet that can be embedded in a web page or an app
+   * webview.
    * 
* - * int32 part_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string rendered_content = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The partIndex. + * @return The renderedContent. */ @java.lang.Override - public int getPartIndex() { - return partIndex_; + public java.lang.String getRenderedContent() { + java.lang.Object ref = renderedContent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + renderedContent_ = s; + return s; + } } - - public static final int START_INDEX_FIELD_NUMBER = 2; - private int startIndex_ = 0; /** * * *
-   * Output only. Start index in the given Part, measured in bytes. Offset from
-   * the start of the Part, inclusive, starting at zero.
+   * Optional. Web content snippet that can be embedded in a web page or an app
+   * webview.
    * 
* - * int32 start_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string rendered_content = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The startIndex. + * @return The bytes for renderedContent. */ @java.lang.Override - public int getStartIndex() { - return startIndex_; + public com.google.protobuf.ByteString getRenderedContentBytes() { + java.lang.Object ref = renderedContent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + renderedContent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - public static final int END_INDEX_FIELD_NUMBER = 3; - private int endIndex_ = 0; + public static final int SDK_BLOB_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString sdkBlob_ = com.google.protobuf.ByteString.EMPTY; /** * * *
-   * Output only. End index in the given Part, measured in bytes. Offset from
-   * the start of the Part, exclusive, starting at zero.
+   * Optional. Base64 encoded JSON representing array of <search term, search
+   * url> tuple.
    * 
* - * int32 end_index = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * bytes sdk_blob = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The endIndex. + * @return The sdkBlob. */ @java.lang.Override - public int getEndIndex() { - return endIndex_; + public com.google.protobuf.ByteString getSdkBlob() { + return sdkBlob_; } private byte memoizedIsInitialized = -1; @@ -131,14 +150,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (partIndex_ != 0) { - output.writeInt32(1, partIndex_); - } - if (startIndex_ != 0) { - output.writeInt32(2, startIndex_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(renderedContent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, renderedContent_); } - if (endIndex_ != 0) { - output.writeInt32(3, endIndex_); + if (!sdkBlob_.isEmpty()) { + output.writeBytes(2, sdkBlob_); } getUnknownFields().writeTo(output); } @@ -149,14 +165,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (partIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, partIndex_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(renderedContent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, renderedContent_); } - if (startIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, startIndex_); - } - if (endIndex_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, endIndex_); + if (!sdkBlob_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, sdkBlob_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -168,14 +181,14 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.cloud.vertexai.api.Segment)) { + if (!(obj instanceof com.google.cloud.vertexai.api.SearchEntryPoint)) { return super.equals(obj); } - com.google.cloud.vertexai.api.Segment other = (com.google.cloud.vertexai.api.Segment) obj; + com.google.cloud.vertexai.api.SearchEntryPoint other = + (com.google.cloud.vertexai.api.SearchEntryPoint) obj; - if (getPartIndex() != other.getPartIndex()) return false; - if (getStartIndex() != other.getStartIndex()) return false; - if (getEndIndex() != other.getEndIndex()) return false; + if (!getRenderedContent().equals(other.getRenderedContent())) return false; + if (!getSdkBlob().equals(other.getSdkBlob())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,81 +200,80 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PART_INDEX_FIELD_NUMBER; - hash = (53 * hash) + getPartIndex(); - hash = (37 * hash) + START_INDEX_FIELD_NUMBER; - hash = (53 * hash) + getStartIndex(); - hash = (37 * hash) + END_INDEX_FIELD_NUMBER; - hash = (53 * hash) + getEndIndex(); + hash = (37 * hash) + RENDERED_CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getRenderedContent().hashCode(); + hash = (37 * hash) + SDK_BLOB_FIELD_NUMBER; + hash = (53 * hash) + getSdkBlob().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.vertexai.api.Segment parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vertexai.api.SearchEntryPoint parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vertexai.api.Segment parseFrom( + public static com.google.cloud.vertexai.api.SearchEntryPoint parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vertexai.api.Segment parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.vertexai.api.SearchEntryPoint parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vertexai.api.Segment parseFrom( + public static com.google.cloud.vertexai.api.SearchEntryPoint parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vertexai.api.Segment parseFrom(byte[] data) + public static com.google.cloud.vertexai.api.SearchEntryPoint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vertexai.api.Segment parseFrom( + public static com.google.cloud.vertexai.api.SearchEntryPoint parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vertexai.api.Segment parseFrom(java.io.InputStream input) + public static com.google.cloud.vertexai.api.SearchEntryPoint parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.vertexai.api.Segment parseFrom( + public static com.google.cloud.vertexai.api.SearchEntryPoint parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.vertexai.api.Segment parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { + public static com.google.cloud.vertexai.api.SearchEntryPoint parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vertexai.api.Segment parseDelimitedFrom( + public static com.google.cloud.vertexai.api.SearchEntryPoint parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.vertexai.api.Segment parseFrom( + public static com.google.cloud.vertexai.api.SearchEntryPoint parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.vertexai.api.Segment parseFrom( + public static com.google.cloud.vertexai.api.SearchEntryPoint parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -278,7 +290,7 @@ public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vertexai.api.Segment prototype) { + public static Builder newBuilder(com.google.cloud.vertexai.api.SearchEntryPoint prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -296,31 +308,31 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Segment of the content.
+   * Google search entry point.
    * 
* - * Protobuf type {@code google.cloud.vertexai.v1.Segment} + * Protobuf type {@code google.cloud.vertexai.v1.SearchEntryPoint} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.vertexai.v1.Segment) - com.google.cloud.vertexai.api.SegmentOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.vertexai.v1.SearchEntryPoint) + com.google.cloud.vertexai.api.SearchEntryPointOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.vertexai.api.ContentProto - .internal_static_google_cloud_vertexai_v1_Segment_descriptor; + .internal_static_google_cloud_vertexai_v1_SearchEntryPoint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.vertexai.api.ContentProto - .internal_static_google_cloud_vertexai_v1_Segment_fieldAccessorTable + .internal_static_google_cloud_vertexai_v1_SearchEntryPoint_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vertexai.api.Segment.class, - com.google.cloud.vertexai.api.Segment.Builder.class); + com.google.cloud.vertexai.api.SearchEntryPoint.class, + com.google.cloud.vertexai.api.SearchEntryPoint.Builder.class); } - // Construct using com.google.cloud.vertexai.api.Segment.newBuilder() + // Construct using com.google.cloud.vertexai.api.SearchEntryPoint.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @@ -331,26 +343,25 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - partIndex_ = 0; - startIndex_ = 0; - endIndex_ = 0; + renderedContent_ = ""; + sdkBlob_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.vertexai.api.ContentProto - .internal_static_google_cloud_vertexai_v1_Segment_descriptor; + .internal_static_google_cloud_vertexai_v1_SearchEntryPoint_descriptor; } @java.lang.Override - public com.google.cloud.vertexai.api.Segment getDefaultInstanceForType() { - return com.google.cloud.vertexai.api.Segment.getDefaultInstance(); + public com.google.cloud.vertexai.api.SearchEntryPoint getDefaultInstanceForType() { + return com.google.cloud.vertexai.api.SearchEntryPoint.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.vertexai.api.Segment build() { - com.google.cloud.vertexai.api.Segment result = buildPartial(); + public com.google.cloud.vertexai.api.SearchEntryPoint build() { + com.google.cloud.vertexai.api.SearchEntryPoint result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -358,9 +369,9 @@ public com.google.cloud.vertexai.api.Segment build() { } @java.lang.Override - public com.google.cloud.vertexai.api.Segment buildPartial() { - com.google.cloud.vertexai.api.Segment result = - new com.google.cloud.vertexai.api.Segment(this); + public com.google.cloud.vertexai.api.SearchEntryPoint buildPartial() { + com.google.cloud.vertexai.api.SearchEntryPoint result = + new com.google.cloud.vertexai.api.SearchEntryPoint(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -368,16 +379,13 @@ public com.google.cloud.vertexai.api.Segment buildPartial() { return result; } - private void buildPartial0(com.google.cloud.vertexai.api.Segment result) { + private void buildPartial0(com.google.cloud.vertexai.api.SearchEntryPoint result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.partIndex_ = partIndex_; + result.renderedContent_ = renderedContent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.startIndex_ = startIndex_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.endIndex_ = endIndex_; + result.sdkBlob_ = sdkBlob_; } } @@ -416,24 +424,23 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.vertexai.api.Segment) { - return mergeFrom((com.google.cloud.vertexai.api.Segment) other); + if (other instanceof com.google.cloud.vertexai.api.SearchEntryPoint) { + return mergeFrom((com.google.cloud.vertexai.api.SearchEntryPoint) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.vertexai.api.Segment other) { - if (other == com.google.cloud.vertexai.api.Segment.getDefaultInstance()) return this; - if (other.getPartIndex() != 0) { - setPartIndex(other.getPartIndex()); - } - if (other.getStartIndex() != 0) { - setStartIndex(other.getStartIndex()); + public Builder mergeFrom(com.google.cloud.vertexai.api.SearchEntryPoint other) { + if (other == com.google.cloud.vertexai.api.SearchEntryPoint.getDefaultInstance()) return this; + if (!other.getRenderedContent().isEmpty()) { + renderedContent_ = other.renderedContent_; + bitField0_ |= 0x00000001; + onChanged(); } - if (other.getEndIndex() != 0) { - setEndIndex(other.getEndIndex()); + if (other.getSdkBlob() != com.google.protobuf.ByteString.EMPTY) { + setSdkBlob(other.getSdkBlob()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -461,24 +468,18 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: + case 10: { - partIndex_ = input.readInt32(); + renderedContent_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; - } // case 8 - case 16: + } // case 10 + case 18: { - startIndex_ = input.readInt32(); + sdkBlob_ = input.readBytes(); bitField0_ |= 0x00000002; break; - } // case 16 - case 24: - { - endIndex_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 + } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -498,93 +499,90 @@ public Builder mergeFrom( private int bitField0_; - private int partIndex_; + private java.lang.Object renderedContent_ = ""; /** * * *
-     * Output only. The index of a Part object within its parent Content object.
+     * Optional. Web content snippet that can be embedded in a web page or an app
+     * webview.
      * 
* - * int32 part_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string rendered_content = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The partIndex. + * @return The renderedContent. */ - @java.lang.Override - public int getPartIndex() { - return partIndex_; + public java.lang.String getRenderedContent() { + java.lang.Object ref = renderedContent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + renderedContent_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** * * *
-     * Output only. The index of a Part object within its parent Content object.
+     * Optional. Web content snippet that can be embedded in a web page or an app
+     * webview.
      * 
* - * int32 part_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string rendered_content = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The partIndex to set. - * @return This builder for chaining. + * @return The bytes for renderedContent. */ - public Builder setPartIndex(int value) { - - partIndex_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + public com.google.protobuf.ByteString getRenderedContentBytes() { + java.lang.Object ref = renderedContent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + renderedContent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** * * *
-     * Output only. The index of a Part object within its parent Content object.
+     * Optional. Web content snippet that can be embedded in a web page or an app
+     * webview.
      * 
* - * int32 part_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string rendered_content = 1 [(.google.api.field_behavior) = OPTIONAL]; * + * @param value The renderedContent to set. * @return This builder for chaining. */ - public Builder clearPartIndex() { - bitField0_ = (bitField0_ & ~0x00000001); - partIndex_ = 0; + public Builder setRenderedContent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + renderedContent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } - - private int startIndex_; /** * * *
-     * Output only. Start index in the given Part, measured in bytes. Offset from
-     * the start of the Part, inclusive, starting at zero.
+     * Optional. Web content snippet that can be embedded in a web page or an app
+     * webview.
      * 
* - * int32 start_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The startIndex. - */ - @java.lang.Override - public int getStartIndex() { - return startIndex_; - } - /** - * - * - *
-     * Output only. Start index in the given Part, measured in bytes. Offset from
-     * the start of the Part, inclusive, starting at zero.
-     * 
+ * string rendered_content = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * int32 start_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The startIndex to set. * @return This builder for chaining. */ - public Builder setStartIndex(int value) { - - startIndex_ = value; - bitField0_ |= 0x00000002; + public Builder clearRenderedContent() { + renderedContent_ = getDefaultInstance().getRenderedContent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -592,55 +590,62 @@ public Builder setStartIndex(int value) { * * *
-     * Output only. Start index in the given Part, measured in bytes. Offset from
-     * the start of the Part, inclusive, starting at zero.
+     * Optional. Web content snippet that can be embedded in a web page or an app
+     * webview.
      * 
* - * int32 start_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string rendered_content = 1 [(.google.api.field_behavior) = OPTIONAL]; * + * @param value The bytes for renderedContent to set. * @return This builder for chaining. */ - public Builder clearStartIndex() { - bitField0_ = (bitField0_ & ~0x00000002); - startIndex_ = 0; + public Builder setRenderedContentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + renderedContent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } - private int endIndex_; + private com.google.protobuf.ByteString sdkBlob_ = com.google.protobuf.ByteString.EMPTY; /** * * *
-     * Output only. End index in the given Part, measured in bytes. Offset from
-     * the start of the Part, exclusive, starting at zero.
+     * Optional. Base64 encoded JSON representing array of <search term, search
+     * url> tuple.
      * 
* - * int32 end_index = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * bytes sdk_blob = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The endIndex. + * @return The sdkBlob. */ @java.lang.Override - public int getEndIndex() { - return endIndex_; + public com.google.protobuf.ByteString getSdkBlob() { + return sdkBlob_; } /** * * *
-     * Output only. End index in the given Part, measured in bytes. Offset from
-     * the start of the Part, exclusive, starting at zero.
+     * Optional. Base64 encoded JSON representing array of <search term, search
+     * url> tuple.
      * 
* - * int32 end_index = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * bytes sdk_blob = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The endIndex to set. + * @param value The sdkBlob to set. * @return This builder for chaining. */ - public Builder setEndIndex(int value) { - - endIndex_ = value; - bitField0_ |= 0x00000004; + public Builder setSdkBlob(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + sdkBlob_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -648,17 +653,17 @@ public Builder setEndIndex(int value) { * * *
-     * Output only. End index in the given Part, measured in bytes. Offset from
-     * the start of the Part, exclusive, starting at zero.
+     * Optional. Base64 encoded JSON representing array of <search term, search
+     * url> tuple.
      * 
* - * int32 end_index = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * bytes sdk_blob = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ - public Builder clearEndIndex() { - bitField0_ = (bitField0_ & ~0x00000004); - endIndex_ = 0; + public Builder clearSdkBlob() { + bitField0_ = (bitField0_ & ~0x00000002); + sdkBlob_ = getDefaultInstance().getSdkBlob(); onChanged(); return this; } @@ -674,24 +679,24 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.vertexai.v1.Segment) + // @@protoc_insertion_point(builder_scope:google.cloud.vertexai.v1.SearchEntryPoint) } - // @@protoc_insertion_point(class_scope:google.cloud.vertexai.v1.Segment) - private static final com.google.cloud.vertexai.api.Segment DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.cloud.vertexai.v1.SearchEntryPoint) + private static final com.google.cloud.vertexai.api.SearchEntryPoint DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.vertexai.api.Segment(); + DEFAULT_INSTANCE = new com.google.cloud.vertexai.api.SearchEntryPoint(); } - public static com.google.cloud.vertexai.api.Segment getDefaultInstance() { + public static com.google.cloud.vertexai.api.SearchEntryPoint getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public Segment parsePartialFrom( + public SearchEntryPoint parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -710,17 +715,17 @@ public Segment parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.vertexai.api.Segment getDefaultInstanceForType() { + public com.google.cloud.vertexai.api.SearchEntryPoint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/SegmentOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/SearchEntryPointOrBuilder.java similarity index 55% rename from java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/SegmentOrBuilder.java rename to java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/SearchEntryPointOrBuilder.java index 173039e882f3..a152bf1239ed 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/SegmentOrBuilder.java +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/SearchEntryPointOrBuilder.java @@ -19,49 +19,49 @@ // Protobuf Java Version: 3.25.3 package com.google.cloud.vertexai.api; -public interface SegmentOrBuilder +public interface SearchEntryPointOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.vertexai.v1.Segment) + // @@protoc_insertion_point(interface_extends:google.cloud.vertexai.v1.SearchEntryPoint) com.google.protobuf.MessageOrBuilder { /** * * *
-   * Output only. The index of a Part object within its parent Content object.
+   * Optional. Web content snippet that can be embedded in a web page or an app
+   * webview.
    * 
* - * int32 part_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string rendered_content = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The partIndex. + * @return The renderedContent. */ - int getPartIndex(); - + java.lang.String getRenderedContent(); /** * * *
-   * Output only. Start index in the given Part, measured in bytes. Offset from
-   * the start of the Part, inclusive, starting at zero.
+   * Optional. Web content snippet that can be embedded in a web page or an app
+   * webview.
    * 
* - * int32 start_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string rendered_content = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The startIndex. + * @return The bytes for renderedContent. */ - int getStartIndex(); + com.google.protobuf.ByteString getRenderedContentBytes(); /** * * *
-   * Output only. End index in the given Part, measured in bytes. Offset from
-   * the start of the Part, exclusive, starting at zero.
+   * Optional. Base64 encoded JSON representing array of <search term, search
+   * url> tuple.
    * 
* - * int32 end_index = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * bytes sdk_blob = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The endIndex. + * @return The sdkBlob. */ - int getEndIndex(); + com.google.protobuf.ByteString getSdkBlob(); } diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ServiceNetworkingProto.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ServiceNetworkingProto.java new file mode 100644 index 000000000000..c9de1f304e12 --- /dev/null +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ServiceNetworkingProto.java @@ -0,0 +1,96 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vertexai/v1/service_networking.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.vertexai.api; + +public final class ServiceNetworkingProto { + private ServiceNetworkingProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vertexai_v1_PrivateServiceConnectConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vertexai_v1_PrivateServiceConnectConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vertexai_v1_PscAutomatedEndpoints_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vertexai_v1_PscAutomatedEndpoints_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n1google/cloud/vertexai/v1/service_netwo" + + "rking.proto\022\030google.cloud.vertexai.v1\032\037g" + + "oogle/api/field_behavior.proto\032\031google/a" + + "pi/resource.proto\"e\n\033PrivateServiceConne" + + "ctConfig\022+\n\036enable_private_service_conne" + + "ct\030\001 \001(\010B\003\340A\002\022\031\n\021project_allowlist\030\002 \003(\t" + + "\"S\n\025PscAutomatedEndpoints\022\022\n\nproject_id\030" + + "\001 \001(\t\022\017\n\007network\030\002 \001(\t\022\025\n\rmatch_address\030" + + "\003 \001(\tB\323\001\n\035com.google.cloud.vertexai.apiB" + + "\026ServiceNetworkingProtoP\001Z>cloud.google." + + "com/go/aiplatform/apiv1/aiplatformpb;aip" + + "latformpb\252\002\032Google.Cloud.AIPlatform.V1\312\002" + + "\032Google\\Cloud\\AIPlatform\\V1\352\002\035Google::Cl" + + "oud::AIPlatform::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_vertexai_v1_PrivateServiceConnectConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_vertexai_v1_PrivateServiceConnectConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vertexai_v1_PrivateServiceConnectConfig_descriptor, + new java.lang.String[] { + "EnablePrivateServiceConnect", "ProjectAllowlist", + }); + internal_static_google_cloud_vertexai_v1_PscAutomatedEndpoints_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_vertexai_v1_PscAutomatedEndpoints_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vertexai_v1_PscAutomatedEndpoints_descriptor, + new java.lang.String[] { + "ProjectId", "Network", "MatchAddress", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ToolConfig.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ToolConfig.java new file mode 100644 index 000000000000..644a235bd9c0 --- /dev/null +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ToolConfig.java @@ -0,0 +1,755 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vertexai/v1/tool.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.vertexai.api; + +/** + * + * + *
+ * Tool config. This config is shared for all tools provided in the request.
+ * 
+ * + * Protobuf type {@code google.cloud.vertexai.v1.ToolConfig} + */ +public final class ToolConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.vertexai.v1.ToolConfig) + ToolConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ToolConfig.newBuilder() to construct. + private ToolConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ToolConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ToolConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vertexai.api.ToolProto + .internal_static_google_cloud_vertexai_v1_ToolConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vertexai.api.ToolProto + .internal_static_google_cloud_vertexai_v1_ToolConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vertexai.api.ToolConfig.class, + com.google.cloud.vertexai.api.ToolConfig.Builder.class); + } + + private int bitField0_; + public static final int FUNCTION_CALLING_CONFIG_FIELD_NUMBER = 1; + private com.google.cloud.vertexai.api.FunctionCallingConfig functionCallingConfig_; + /** + * + * + *
+   * Optional. Function calling config.
+   * 
+ * + * + * .google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the functionCallingConfig field is set. + */ + @java.lang.Override + public boolean hasFunctionCallingConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Optional. Function calling config.
+   * 
+ * + * + * .google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The functionCallingConfig. + */ + @java.lang.Override + public com.google.cloud.vertexai.api.FunctionCallingConfig getFunctionCallingConfig() { + return functionCallingConfig_ == null + ? com.google.cloud.vertexai.api.FunctionCallingConfig.getDefaultInstance() + : functionCallingConfig_; + } + /** + * + * + *
+   * Optional. Function calling config.
+   * 
+ * + * + * .google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.vertexai.api.FunctionCallingConfigOrBuilder + getFunctionCallingConfigOrBuilder() { + return functionCallingConfig_ == null + ? com.google.cloud.vertexai.api.FunctionCallingConfig.getDefaultInstance() + : functionCallingConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getFunctionCallingConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFunctionCallingConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.vertexai.api.ToolConfig)) { + return super.equals(obj); + } + com.google.cloud.vertexai.api.ToolConfig other = (com.google.cloud.vertexai.api.ToolConfig) obj; + + if (hasFunctionCallingConfig() != other.hasFunctionCallingConfig()) return false; + if (hasFunctionCallingConfig()) { + if (!getFunctionCallingConfig().equals(other.getFunctionCallingConfig())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasFunctionCallingConfig()) { + hash = (37 * hash) + FUNCTION_CALLING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getFunctionCallingConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.vertexai.api.ToolConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vertexai.api.ToolConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vertexai.api.ToolConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vertexai.api.ToolConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vertexai.api.ToolConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.vertexai.api.ToolConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.vertexai.api.ToolConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vertexai.api.ToolConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vertexai.api.ToolConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.vertexai.api.ToolConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.vertexai.api.ToolConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.vertexai.api.ToolConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.vertexai.api.ToolConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Tool config. This config is shared for all tools provided in the request.
+   * 
+ * + * Protobuf type {@code google.cloud.vertexai.v1.ToolConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.vertexai.v1.ToolConfig) + com.google.cloud.vertexai.api.ToolConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.vertexai.api.ToolProto + .internal_static_google_cloud_vertexai_v1_ToolConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.vertexai.api.ToolProto + .internal_static_google_cloud_vertexai_v1_ToolConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.vertexai.api.ToolConfig.class, + com.google.cloud.vertexai.api.ToolConfig.Builder.class); + } + + // Construct using com.google.cloud.vertexai.api.ToolConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getFunctionCallingConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + functionCallingConfig_ = null; + if (functionCallingConfigBuilder_ != null) { + functionCallingConfigBuilder_.dispose(); + functionCallingConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.vertexai.api.ToolProto + .internal_static_google_cloud_vertexai_v1_ToolConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.vertexai.api.ToolConfig getDefaultInstanceForType() { + return com.google.cloud.vertexai.api.ToolConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.vertexai.api.ToolConfig build() { + com.google.cloud.vertexai.api.ToolConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.vertexai.api.ToolConfig buildPartial() { + com.google.cloud.vertexai.api.ToolConfig result = + new com.google.cloud.vertexai.api.ToolConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.vertexai.api.ToolConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.functionCallingConfig_ = + functionCallingConfigBuilder_ == null + ? functionCallingConfig_ + : functionCallingConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.vertexai.api.ToolConfig) { + return mergeFrom((com.google.cloud.vertexai.api.ToolConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.vertexai.api.ToolConfig other) { + if (other == com.google.cloud.vertexai.api.ToolConfig.getDefaultInstance()) return this; + if (other.hasFunctionCallingConfig()) { + mergeFunctionCallingConfig(other.getFunctionCallingConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getFunctionCallingConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.vertexai.api.FunctionCallingConfig functionCallingConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vertexai.api.FunctionCallingConfig, + com.google.cloud.vertexai.api.FunctionCallingConfig.Builder, + com.google.cloud.vertexai.api.FunctionCallingConfigOrBuilder> + functionCallingConfigBuilder_; + /** + * + * + *
+     * Optional. Function calling config.
+     * 
+ * + * + * .google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the functionCallingConfig field is set. + */ + public boolean hasFunctionCallingConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Optional. Function calling config.
+     * 
+ * + * + * .google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The functionCallingConfig. + */ + public com.google.cloud.vertexai.api.FunctionCallingConfig getFunctionCallingConfig() { + if (functionCallingConfigBuilder_ == null) { + return functionCallingConfig_ == null + ? com.google.cloud.vertexai.api.FunctionCallingConfig.getDefaultInstance() + : functionCallingConfig_; + } else { + return functionCallingConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Function calling config.
+     * 
+ * + * + * .google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFunctionCallingConfig( + com.google.cloud.vertexai.api.FunctionCallingConfig value) { + if (functionCallingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + functionCallingConfig_ = value; + } else { + functionCallingConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Function calling config.
+     * 
+ * + * + * .google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFunctionCallingConfig( + com.google.cloud.vertexai.api.FunctionCallingConfig.Builder builderForValue) { + if (functionCallingConfigBuilder_ == null) { + functionCallingConfig_ = builderForValue.build(); + } else { + functionCallingConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Function calling config.
+     * 
+ * + * + * .google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeFunctionCallingConfig( + com.google.cloud.vertexai.api.FunctionCallingConfig value) { + if (functionCallingConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && functionCallingConfig_ != null + && functionCallingConfig_ + != com.google.cloud.vertexai.api.FunctionCallingConfig.getDefaultInstance()) { + getFunctionCallingConfigBuilder().mergeFrom(value); + } else { + functionCallingConfig_ = value; + } + } else { + functionCallingConfigBuilder_.mergeFrom(value); + } + if (functionCallingConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Function calling config.
+     * 
+ * + * + * .google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearFunctionCallingConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + functionCallingConfig_ = null; + if (functionCallingConfigBuilder_ != null) { + functionCallingConfigBuilder_.dispose(); + functionCallingConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Function calling config.
+     * 
+ * + * + * .google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vertexai.api.FunctionCallingConfig.Builder + getFunctionCallingConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getFunctionCallingConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Function calling config.
+     * 
+ * + * + * .google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.vertexai.api.FunctionCallingConfigOrBuilder + getFunctionCallingConfigOrBuilder() { + if (functionCallingConfigBuilder_ != null) { + return functionCallingConfigBuilder_.getMessageOrBuilder(); + } else { + return functionCallingConfig_ == null + ? com.google.cloud.vertexai.api.FunctionCallingConfig.getDefaultInstance() + : functionCallingConfig_; + } + } + /** + * + * + *
+     * Optional. Function calling config.
+     * 
+ * + * + * .google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vertexai.api.FunctionCallingConfig, + com.google.cloud.vertexai.api.FunctionCallingConfig.Builder, + com.google.cloud.vertexai.api.FunctionCallingConfigOrBuilder> + getFunctionCallingConfigFieldBuilder() { + if (functionCallingConfigBuilder_ == null) { + functionCallingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vertexai.api.FunctionCallingConfig, + com.google.cloud.vertexai.api.FunctionCallingConfig.Builder, + com.google.cloud.vertexai.api.FunctionCallingConfigOrBuilder>( + getFunctionCallingConfig(), getParentForChildren(), isClean()); + functionCallingConfig_ = null; + } + return functionCallingConfigBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.vertexai.v1.ToolConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.vertexai.v1.ToolConfig) + private static final com.google.cloud.vertexai.api.ToolConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.vertexai.api.ToolConfig(); + } + + public static com.google.cloud.vertexai.api.ToolConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ToolConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.vertexai.api.ToolConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ToolConfigOrBuilder.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ToolConfigOrBuilder.java new file mode 100644 index 000000000000..71bf48b0f7ac --- /dev/null +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ToolConfigOrBuilder.java @@ -0,0 +1,67 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vertexai/v1/tool.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.vertexai.api; + +public interface ToolConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.vertexai.v1.ToolConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Function calling config.
+   * 
+ * + * + * .google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the functionCallingConfig field is set. + */ + boolean hasFunctionCallingConfig(); + /** + * + * + *
+   * Optional. Function calling config.
+   * 
+ * + * + * .google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The functionCallingConfig. + */ + com.google.cloud.vertexai.api.FunctionCallingConfig getFunctionCallingConfig(); + /** + * + * + *
+   * Optional. Function calling config.
+   * 
+ * + * + * .google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.vertexai.api.FunctionCallingConfigOrBuilder getFunctionCallingConfigOrBuilder(); +} diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ToolProto.java b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ToolProto.java index 293b2d585de2..c977e34d9fe9 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ToolProto.java +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/ToolProto.java @@ -56,6 +56,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_vertexai_v1_GoogleSearchRetrieval_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_vertexai_v1_GoogleSearchRetrieval_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vertexai_v1_ToolConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vertexai_v1_ToolConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vertexai_v1_FunctionCallingConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vertexai_v1_FunctionCallingConfig_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -87,14 +95,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\002 \001(\0132(.google.cloud.vertexai.v1.VertexA" + "ISearchH\000\022 \n\023disable_attribution\030\003 \001(\010B\003" + "\340A\001B\010\n\006source\"(\n\016VertexAISearch\022\026\n\tdatas" - + "tore\030\001 \001(\tB\003\340A\002\"9\n\025GoogleSearchRetrieval" - + "\022 \n\023disable_attribution\030\001 \001(\010B\003\340A\001B\306\001\n\035c" - + "om.google.cloud.vertexai.apiB\tToolProtoP" - + "\001Z>cloud.google.com/go/aiplatform/apiv1/" - + "aiplatformpb;aiplatformpb\252\002\032Google.Cloud" - + ".AIPlatform.V1\312\002\032Google\\Cloud\\AIPlatform" - + "\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006pro" - + "to3" + + "tore\030\001 \001(\tB\003\340A\002\"\027\n\025GoogleSearchRetrieval" + + "\"c\n\nToolConfig\022U\n\027function_calling_confi" + + "g\030\001 \001(\0132/.google.cloud.vertexai.v1.Funct" + + "ionCallingConfigB\003\340A\001\"\300\001\n\025FunctionCallin" + + "gConfig\022G\n\004mode\030\001 \001(\01624.google.cloud.ver" + + "texai.v1.FunctionCallingConfig.ModeB\003\340A\001" + + "\022#\n\026allowed_function_names\030\002 \003(\tB\003\340A\001\"9\n" + + "\004Mode\022\024\n\020MODE_UNSPECIFIED\020\000\022\010\n\004AUTO\020\001\022\007\n" + + "\003ANY\020\002\022\010\n\004NONE\020\003B\306\001\n\035com.google.cloud.ve" + + "rtexai.apiB\tToolProtoP\001Z>cloud.google.co" + + "m/go/aiplatform/apiv1/aiplatformpb;aipla" + + "tformpb\252\002\032Google.Cloud.AIPlatform.V1\312\002\032G" + + "oogle\\Cloud\\AIPlatform\\V1\352\002\035Google::Clou" + + "d::AIPlatform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -158,8 +172,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_vertexai_v1_GoogleSearchRetrieval_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_vertexai_v1_GoogleSearchRetrieval_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_vertexai_v1_ToolConfig_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_vertexai_v1_ToolConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vertexai_v1_ToolConfig_descriptor, + new java.lang.String[] { + "FunctionCallingConfig", + }); + internal_static_google_cloud_vertexai_v1_FunctionCallingConfig_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_vertexai_v1_FunctionCallingConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vertexai_v1_FunctionCallingConfig_descriptor, new java.lang.String[] { - "DisableAttribution", + "Mode", "AllowedFunctionNames", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/accelerator_type.proto b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/accelerator_type.proto index 716d8ea6a98d..73faab61141a 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/accelerator_type.proto +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/accelerator_type.proto @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -64,4 +64,7 @@ enum AcceleratorType { // TPU v4. TPU_V4_POD = 10; + + // TPU v5. + TPU_V5_LITEPOD = 12; } diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/content.proto b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/content.proto index f7bdb7f30dd7..4e0eddd4fa46 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/content.proto +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/content.proto @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -17,6 +17,7 @@ syntax = "proto3"; package google.cloud.vertexai.v1; import "google/api/field_behavior.proto"; +import "google/cloud/vertexai/v1/openapi.proto"; import "google/cloud/vertexai/v1/tool.proto"; import "google/protobuf/duration.proto"; import "google/type/date.proto"; @@ -168,6 +169,15 @@ message GenerationConfig { // otherwise the behavior is undefined. // This is a preview feature. string response_mime_type = 13 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The `Schema` object allows the definition of input and output + // data types. These types can be objects, but also primitives and arrays. + // Represents a select subset of an [OpenAPI 3.0 schema + // object](https://spec.openapis.org/oas/v3.0.3#schema). + // If set, a compatible response_mime_type must also be set. + // Compatible mimetypes: + // `application/json`: Schema for JSON response. + optional Schema response_schema = 16 [(google.api.field_behavior) = OPTIONAL]; } // Safety settings. @@ -368,54 +378,24 @@ message Candidate { [(google.api.field_behavior) = OUTPUT_ONLY]; } -// Segment of the content. -message Segment { - // Output only. The index of a Part object within its parent Content object. - int32 part_index = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Start index in the given Part, measured in bytes. Offset from - // the start of the Part, inclusive, starting at zero. - int32 start_index = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. End index in the given Part, measured in bytes. Offset from - // the start of the Part, exclusive, starting at zero. - int32 end_index = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Grounding attribution. -message GroundingAttribution { - // Attribution from the web. - message Web { - // Output only. URI reference of the attribution. - string uri = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Title of the attribution. - string title = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - oneof reference { - // Optional. Attribution from the web. - Web web = 3 [(google.api.field_behavior) = OPTIONAL]; - } - - // Output only. Segment of the content this attribution belongs to. - Segment segment = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Optional. Output only. Confidence score of the attribution. Ranges from 0 - // to 1. 1 is the most confident. - optional float confidence_score = 2 [ - (google.api.field_behavior) = OPTIONAL, - (google.api.field_behavior) = OUTPUT_ONLY - ]; -} - // Metadata returned to client when grounding is enabled. message GroundingMetadata { // Optional. Web search queries for the following-up web search. repeated string web_search_queries = 1 [(google.api.field_behavior) = OPTIONAL]; - // Optional. List of grounding attributions. - repeated GroundingAttribution grounding_attributions = 2 + // Optional. Google search entry for the following-up web searches. + optional SearchEntryPoint search_entry_point = 4 [(google.api.field_behavior) = OPTIONAL]; } + +// Google search entry point. +message SearchEntryPoint { + // Optional. Web content snippet that can be embedded in a web page or an app + // webview. + string rendered_content = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Base64 encoded JSON representing array of tuple. + bytes sdk_blob = 2 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/encryption_spec.proto b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/encryption_spec.proto index 68dbf3b1bc6d..4df41173b2c8 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/encryption_spec.proto +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/encryption_spec.proto @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/endpoint.proto b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/endpoint.proto index e7a0597eca13..943b37396437 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/endpoint.proto +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/endpoint.proto @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,6 +22,7 @@ import "google/cloud/vertexai/v1/encryption_spec.proto"; import "google/cloud/vertexai/v1/explanation.proto"; import "google/cloud/vertexai/v1/io.proto"; import "google/cloud/vertexai/v1/machine_resources.proto"; +import "google/cloud/vertexai/v1/service_networking.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; @@ -126,6 +127,14 @@ message Endpoint { // can be set. bool enable_private_service_connect = 17 [deprecated = true]; + // Optional. Configuration for private service connect. + // + // [network][google.cloud.aiplatform.v1.Endpoint.network] and + // [private_service_connect_config][google.cloud.aiplatform.v1.Endpoint.private_service_connect_config] + // are mutually exclusive. + PrivateServiceConnectConfig private_service_connect_config = 21 + [(google.api.field_behavior) = OPTIONAL]; + // Output only. Resource name of the Model Monitoring job associated with this // Endpoint if monitoring is enabled by // [JobService.CreateModelDeploymentMonitoringJob][google.cloud.aiplatform.v1.JobService.CreateModelDeploymentMonitoringJob]. diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/endpoint_service.proto b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/endpoint_service.proto index 6894955e26f4..7a7ed47e04b2 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/endpoint_service.proto +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/endpoint_service.proto @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/explanation.proto b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/explanation.proto index 5a4cb09c1f6f..fc648393cf7a 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/explanation.proto +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/explanation.proto @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/explanation_metadata.proto b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/explanation_metadata.proto index 25a4e9004de5..b67696632dcd 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/explanation_metadata.proto +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/explanation_metadata.proto @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/io.proto b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/io.proto index 055c83a2fe35..53cd5b924981 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/io.proto +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/io.proto @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/llm_utility_service.proto b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/llm_utility_service.proto index 8fc85854fe94..12c86c0ba9e3 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/llm_utility_service.proto +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/llm_utility_service.proto @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/machine_resources.proto b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/machine_resources.proto index a410c60d9fb1..751a96a952cf 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/machine_resources.proto +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/machine_resources.proto @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/openapi.proto b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/openapi.proto index 2d2109fdd648..03be784ce8ad 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/openapi.proto +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/openapi.proto @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/operation.proto b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/operation.proto index 66683c2c9b34..ee20d6786225 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/operation.proto +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/operation.proto @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/prediction_service.proto b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/prediction_service.proto index 97bd9e856726..bdc2d2458352 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/prediction_service.proto +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/prediction_service.proto @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -39,7 +39,8 @@ option ruby_package = "Google::Cloud::AIPlatform::V1"; service PredictionService { option (google.api.default_host) = "aiplatform.googleapis.com"; option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/cloud-platform.read-only"; // Perform an online prediction. rpc Predict(PredictRequest) returns (PredictResponse) { @@ -97,6 +98,10 @@ service PredictionService { option (google.api.http) = { post: "/v1/{endpoint=projects/*/locations/*/endpoints/*}:directPredict" body: "*" + additional_bindings { + post: "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:directPredict" + body: "*" + } }; } @@ -107,18 +112,40 @@ service PredictionService { option (google.api.http) = { post: "/v1/{endpoint=projects/*/locations/*/endpoints/*}:directRawPredict" body: "*" + additional_bindings { + post: "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:directRawPredict" + body: "*" + } }; } // Perform a streaming online prediction request to a gRPC model server for // Vertex first-party products and frameworks. rpc StreamDirectPredict(stream StreamDirectPredictRequest) - returns (stream StreamDirectPredictResponse) {} + returns (stream StreamDirectPredictResponse) { + option (google.api.http) = { + post: "/v1/{endpoint=projects/*/locations/*/endpoints/*}:streamDirectPredict" + body: "*" + additional_bindings { + post: "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:streamDirectPredict" + body: "*" + } + }; + } // Perform a streaming online prediction request to a gRPC model server for // custom containers. rpc StreamDirectRawPredict(stream StreamDirectRawPredictRequest) - returns (stream StreamDirectRawPredictResponse) {} + returns (stream StreamDirectRawPredictResponse) { + option (google.api.http) = { + post: "/v1/{endpoint=projects/*/locations/*/endpoints/*}:streamDirectRawPredict" + body: "*" + additional_bindings { + post: "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:streamDirectRawPredict" + body: "*" + } + }; + } // Perform a streaming online prediction request for Vertex first-party // products and frameworks. @@ -662,6 +689,10 @@ message GenerateContentRequest { // knowledge and scope of the model. repeated Tool tools = 6 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Tool config. This config is shared for all tools provided in the + // request. + ToolConfig tool_config = 7 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Per request settings for blocking unsafe content. // Enforced on GenerateContentResponse.candidates. repeated SafetySetting safety_settings = 3 diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/service_networking.proto b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/service_networking.proto new file mode 100644 index 000000000000..0c78d568241e --- /dev/null +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/service_networking.proto @@ -0,0 +1,52 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.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. + +syntax = "proto3"; + +package google.cloud.vertexai.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Cloud.AIPlatform.V1"; +option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb"; +option java_multiple_files = true; +option java_outer_classname = "ServiceNetworkingProto"; +option java_package = "com.google.cloud.vertexai.api"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; + +// Represents configuration for private service connect. +message PrivateServiceConnectConfig { + // Required. If true, expose the IndexEndpoint via private service connect. + bool enable_private_service_connect = 1 + [(google.api.field_behavior) = REQUIRED]; + + // A list of Projects from which the forwarding rule will target the service + // attachment. + repeated string project_allowlist = 2; +} + +// PscAutomatedEndpoints defines the output of the forwarding rule +// automatically created by each PscAutomationConfig. +message PscAutomatedEndpoints { + // Corresponding project_id in pscAutomationConfigs + string project_id = 1; + + // Corresponding network in pscAutomationConfigs. + string network = 2; + + // Ip Address created by the automated forwarding rule. + string match_address = 3; +} diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/tool.proto b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/tool.proto index d0e7466e981e..ebe5d40dd3e3 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/tool.proto +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/tool.proto @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -121,6 +121,7 @@ message FunctionResponse { // Defines a retrieval tool that model can call to access external knowledge. message Retrieval { + // The source of the retrieval. oneof source { // Set to use data source powered by Vertex AI Search. VertexAISearch vertex_ai_search = 2; @@ -142,9 +143,43 @@ message VertexAISearch { } // Tool to retrieve public web data for grounding, powered by Google. -message GoogleSearchRetrieval { - // Optional. Disable using the result from this tool in detecting grounding - // attribution. This does not affect how the result is given to the model for - // generation. - bool disable_attribution = 1 [(google.api.field_behavior) = OPTIONAL]; +message GoogleSearchRetrieval {} + +// Tool config. This config is shared for all tools provided in the request. +message ToolConfig { + // Optional. Function calling config. + FunctionCallingConfig function_calling_config = 1 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Function calling config. +message FunctionCallingConfig { + // Function calling mode. + enum Mode { + // Unspecified function calling mode. This value should not be used. + MODE_UNSPECIFIED = 0; + + // Default model behavior, model decides to predict either a function call + // or a natural language repspose. + AUTO = 1; + + // Model is constrained to always predicting a function call only. + // If "allowed_function_names" are set, the predicted function call will be + // limited to any one of "allowed_function_names", else the predicted + // function call will be any one of the provided "function_declarations". + ANY = 2; + + // Model will not predict any function call. Model behavior is same as when + // not passing any function declarations. + NONE = 3; + } + + // Optional. Function calling mode. + Mode mode = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Function names to call. Only set when the Mode is ANY. Function + // names should match [FunctionDeclaration.name]. With mode set to ANY, model + // will predict a function call from the set of function names provided. + repeated string allowed_function_names = 2 + [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/types.proto b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/types.proto index fc5f3b8c48df..43fa83ae78f1 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/types.proto +++ b/java-vertexai/proto-google-cloud-vertexai-v1/src/main/proto/google/cloud/vertexai/v1/types.proto @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. From d3cf203d114cf57ee2b8b2c35bcfa1b30a4ca1bb Mon Sep 17 00:00:00 2001 From: Blake Li Date: Mon, 10 Jun 2024 17:52:18 -0400 Subject: [PATCH 07/33] chore: Add volume mapping for testing with a SNAPSHOT version of gapic generator (#10954) Add volume mapping for testing with a SNAPSHOT version of gapic generator. This is a short term mitigation for testing google-cloud-java with a SNAPSHOT version of gapic generator. In long term, we should bake the generator into the docker images. --- generation/hermetic_library_generation.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/generation/hermetic_library_generation.sh b/generation/hermetic_library_generation.sh index 3cbc9456a1b4..92fbb13183cf 100755 --- a/generation/hermetic_library_generation.sh +++ b/generation/hermetic_library_generation.sh @@ -93,6 +93,7 @@ docker run \ --rm \ -u "$(id -u):$(id -g)" \ -v "$(pwd):${workspace_name}" \ + -v "$HOME"/.m2:/home/.m2 \ gcr.io/cloud-devrel-public-resources/java-library-generation:"${image_tag}" \ --baseline-generation-config-path="${workspace_name}/${baseline_generation_config}" \ --current-generation-config-path="${workspace_name}/${generation_config}" From c79bfb5c7712cc9df32d95b434049d470e56de29 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Mon, 10 Jun 2024 18:59:52 -0700 Subject: [PATCH 08/33] chore: regenerate client table in README (#10866) --- README.md | 53 +++++++++++++++++++++++++++++++---------------------- 1 file changed, 31 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index b2bc6b4c703e..489dd23a61ad 100644 --- a/README.md +++ b/README.md @@ -14,13 +14,19 @@ Libraries are available on GitHub and Maven Central for developing Java applicat | ------ | ------------- | ------- | | [AI Platform Notebooks](https://github.com/googleapis/google-cloud-java/tree/main/java-notebooks) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-notebooks.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-notebooks&core=gav) | | [API Gateway](https://github.com/googleapis/google-cloud-java/tree/main/java-api-gateway) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-api-gateway.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-api-gateway&core=gav) | +| [API Keys API](https://github.com/googleapis/google-cloud-java/tree/main/java-apikeys) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apikeys.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-apikeys&core=gav) | | [Access Approval](https://github.com/googleapis/google-cloud-java/tree/main/java-accessapproval) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-accessapproval.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-accessapproval&core=gav) | +| [Advisory Notifications API](https://github.com/googleapis/google-cloud-java/tree/main/java-advisorynotifications) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-advisorynotifications.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-advisorynotifications&core=gav) | +| [AlloyDB](https://github.com/googleapis/google-cloud-java/tree/main/java-alloydb) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-alloydb.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-alloydb&core=gav) | +| [AlloyDB connectors](https://github.com/googleapis/google-cloud-java/tree/main/java-alloydb-connectors) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-alloydb-connectors.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-alloydb-connectors&core=gav) | +| [Analytics Hub API](https://github.com/googleapis/google-cloud-java/tree/main/java-analyticshub) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-analyticshub.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-analyticshub&core=gav) | | [Apigee Connect](https://github.com/googleapis/google-cloud-java/tree/main/java-apigee-connect) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apigee-connect.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-apigee-connect&core=gav) | | [App Engine Admin API](https://github.com/googleapis/google-cloud-java/tree/main/java-appengine-admin) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-appengine-admin.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-appengine-admin&core=gav) | | [Artifact Registry](https://github.com/googleapis/google-cloud-java/tree/main/java-artifact-registry) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-artifact-registry.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-artifact-registry&core=gav) | | [Asset Inventory](https://github.com/googleapis/google-cloud-java/tree/main/java-asset) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-asset.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-asset&core=gav) | | [Assured Workloads for Government](https://github.com/googleapis/google-cloud-java/tree/main/java-assured-workloads) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-assured-workloads.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-assured-workloads&core=gav) | | [Auto ML](https://github.com/googleapis/google-cloud-java/tree/main/java-automl) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-automl.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-automl&core=gav) | +| [Backup and DR Service API](https://github.com/googleapis/google-cloud-java/tree/main/java-backupdr) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-backupdr.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-backupdr&core=gav) | | [BigQuery](https://github.com/googleapis/java-bigquery) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquery.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-bigquery&core=gav) | | [BigQuery Connection](https://github.com/googleapis/google-cloud-java/tree/main/java-bigqueryconnection) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigqueryconnection.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-bigqueryconnection&core=gav) | | [BigQuery Data Transfer Service](https://github.com/googleapis/google-cloud-java/tree/main/java-bigquerydatatransfer) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquerydatatransfer.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-bigquerydatatransfer&core=gav) | @@ -37,10 +43,13 @@ Libraries are available on GitHub and Maven Central for developing Java applicat | [Channel Services](https://github.com/googleapis/google-cloud-java/tree/main/java-channel) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-channel.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-channel&core=gav) | | [Composer](https://github.com/googleapis/google-cloud-java/tree/main/java-orchestration-airflow) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-orchestration-airflow.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-orchestration-airflow&core=gav) | | [Compute Engine](https://github.com/googleapis/google-cloud-java/tree/main/java-compute) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-compute.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-compute&core=gav) | +| [Connect Gateway API](https://github.com/googleapis/google-cloud-java/tree/main/java-gke-connect-gateway) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gke-connect-gateway.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-gke-connect-gateway&core=gav) | | [Container Analysis](https://github.com/googleapis/google-cloud-java/tree/main/java-containeranalysis) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-containeranalysis.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-containeranalysis&core=gav) | +| [Controls Partner API](https://github.com/googleapis/google-cloud-java/tree/main/java-cloudcontrolspartner) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-cloudcontrolspartner.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-cloudcontrolspartner&core=gav) | | [DNS](https://github.com/googleapis/google-cloud-java/tree/main/java-dns) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dns.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-dns&core=gav) | | [Data Catalog](https://github.com/googleapis/google-cloud-java/tree/main/java-datacatalog) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-datacatalog.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-datacatalog&core=gav) | | [Data Fusion](https://github.com/googleapis/google-cloud-java/tree/main/java-data-fusion) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-data-fusion.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-data-fusion&core=gav) | +| [Data Lineage](https://github.com/googleapis/google-cloud-java/tree/main/java-datalineage) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-datalineage.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-datalineage&core=gav) | | [Data Loss Prevention](https://github.com/googleapis/google-cloud-java/tree/main/java-dlp) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dlp.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-dlp&core=gav) | | [Database Migration Service](https://github.com/googleapis/google-cloud-java/tree/main/java-dms) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dms.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-dms&core=gav) | | [Dataplex](https://github.com/googleapis/google-cloud-java/tree/main/java-dataplex) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataplex.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-dataplex&core=gav) | @@ -51,6 +60,9 @@ Libraries are available on GitHub and Maven Central for developing Java applicat | [Debugger](https://github.com/googleapis/google-cloud-java/tree/main/java-debugger-client) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-debugger-client.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-debugger-client&core=gav) | | [Deploy](https://github.com/googleapis/google-cloud-java/tree/main/java-deploy) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-deploy.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-deploy&core=gav) | | [Dialogflow API](https://github.com/googleapis/google-cloud-java/tree/main/java-dialogflow) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dialogflow.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-dialogflow&core=gav) | +| [Discovery Engine API](https://github.com/googleapis/google-cloud-java/tree/main/java-discoveryengine) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-discoveryengine.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-discoveryengine&core=gav) | +| [Distributed Edge](https://github.com/googleapis/google-cloud-java/tree/main/java-distributedcloudedge) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-distributedcloudedge.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-distributedcloudedge&core=gav) | +| [Distributed Edge Network API](https://github.com/googleapis/google-cloud-java/tree/main/java-edgenetwork) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-edgenetwork.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-edgenetwork&core=gav) | | [Document AI](https://github.com/googleapis/google-cloud-java/tree/main/java-document-ai) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-document-ai.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-document-ai&core=gav) | | [Domains](https://github.com/googleapis/google-cloud-java/tree/main/java-domains) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-domains.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-domains&core=gav) | | [Essential Contacts API](https://github.com/googleapis/google-cloud-java/tree/main/java-essential-contacts) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-essential-contacts.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-essential-contacts&core=gav) | @@ -65,6 +77,8 @@ Libraries are available on GitHub and Maven Central for developing Java applicat | [IAM Policy Troubleshooter API](https://github.com/googleapis/google-cloud-java/tree/main/java-policy-troubleshooter) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-policy-troubleshooter.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-policy-troubleshooter&core=gav) | | [IAM Service Account Credentials API](https://github.com/googleapis/google-cloud-java/tree/main/java-iamcredentials) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-iamcredentials.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-iamcredentials&core=gav) | | [Identity Access Context Manager](https://github.com/googleapis/google-cloud-java/tree/main/java-accesscontextmanager) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-identity-accesscontextmanager.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-identity-accesscontextmanager&core=gav) | +| [Identity-Aware Proxy API](https://github.com/googleapis/google-cloud-java/tree/main/java-iap) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-iap.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-iap&core=gav) | +| [Infrastructure Manager API](https://github.com/googleapis/google-cloud-java/tree/main/java-infra-manager) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-infra-manager.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-infra-manager&core=gav) | | [Internet of Things (IoT) Core](https://github.com/googleapis/google-cloud-java/tree/main/java-iot) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-iot.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-iot&core=gav) | | [Intrusion Detection System](https://github.com/googleapis/google-cloud-java/tree/main/java-ids) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-ids.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-ids&core=gav) | | [Key Management Service](https://github.com/googleapis/google-cloud-java/tree/main/java-kms) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-kms.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-kms&core=gav) | @@ -76,6 +90,7 @@ Libraries are available on GitHub and Maven Central for developing Java applicat | [Natural Language](https://github.com/googleapis/google-cloud-java/tree/main/java-language) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-language.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-language&core=gav) | | [Network Connectivity Center](https://github.com/googleapis/google-cloud-java/tree/main/java-networkconnectivity) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-networkconnectivity.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-networkconnectivity&core=gav) | | [Network Management API](https://github.com/googleapis/google-cloud-java/tree/main/java-network-management) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-network-management.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-network-management&core=gav) | +| [Network Security API](https://github.com/googleapis/google-cloud-java/tree/main/java-network-security) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-network-security.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-network-security&core=gav) | | [OS Config API](https://github.com/googleapis/google-cloud-java/tree/main/java-os-config) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-os-config.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-os-config&core=gav) | | [OS Login](https://github.com/googleapis/google-cloud-java/tree/main/java-os-login) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-os-login.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-os-login&core=gav) | | [Organization Policy](https://github.com/googleapis/google-cloud-java/tree/main/java-orgpolicy) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-orgpolicy.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-orgpolicy&core=gav) | @@ -85,6 +100,8 @@ Libraries are available on GitHub and Maven Central for developing Java applicat | [Pub/Sub Lite](https://github.com/googleapis/java-pubsublite) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsublite.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-pubsublite&core=gav) | | [Pub/Sub Lite Kafka Shim](https://github.com/googleapis/java-pubsublite-kafka) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/pubsublite-kafka.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:pubsublite-kafka&core=gav) | | [Pub/Sub Lite Spark Connector](https://github.com/googleapis/java-pubsublite-spark) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/pubsublite-spark-sql-streaming.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:pubsublite-spark-sql-streaming&core=gav) | +| [Public Certificate Authority API](https://github.com/googleapis/google-cloud-java/tree/main/java-publicca) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-publicca.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-publicca&core=gav) | +| [Quotas API](https://github.com/googleapis/google-cloud-java/tree/main/java-cloudquotas) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-cloudquotas.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-cloudquotas&core=gav) | | [Recommender](https://github.com/googleapis/google-cloud-java/tree/main/java-recommender) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-recommender.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-recommender&core=gav) | | [Redis](https://github.com/googleapis/google-cloud-java/tree/main/java-redis) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-redis.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-redis&core=gav) | | [Resource Manager API](https://github.com/googleapis/google-cloud-java/tree/main/java-resourcemanager) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-resourcemanager.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-resourcemanager&core=gav) | @@ -93,7 +110,10 @@ Libraries are available on GitHub and Maven Central for developing Java applicat | [Routes API](https://github.com/googleapis/google-cloud-java/tree/main/java-maps-routing) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.maps/google-maps-routing.svg)](https://search.maven.org/search?q=g:com.google.maps%20AND%20a:google-maps-routing&core=gav) | | [Scheduler](https://github.com/googleapis/google-cloud-java/tree/main/java-scheduler) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-scheduler.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-scheduler&core=gav) | | [Secret Management](https://github.com/googleapis/google-cloud-java/tree/main/java-secretmanager) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-secretmanager.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-secretmanager&core=gav) | +| [Secure Source Manager API](https://github.com/googleapis/google-cloud-java/tree/main/java-securesourcemanager) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-securesourcemanager.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-securesourcemanager&core=gav) | +| [Security Center Management API](https://github.com/googleapis/google-cloud-java/tree/main/java-securitycentermanagement) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-securitycentermanagement.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-securitycentermanagement&core=gav) | | [Security Command Center](https://github.com/googleapis/google-cloud-java/tree/main/java-securitycenter) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-securitycenter.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-securitycenter&core=gav) | +| [Security Posture API](https://github.com/googleapis/google-cloud-java/tree/main/java-securityposture) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-securityposture.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-securityposture&core=gav) | | [Security Scanner](https://github.com/googleapis/google-cloud-java/tree/main/java-websecurityscanner) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-websecurityscanner.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-websecurityscanner&core=gav) | | [Serverless VPC Access](https://github.com/googleapis/google-cloud-java/tree/main/java-vpcaccess) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-vpcaccess.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-vpcaccess&core=gav) | | [Service Control API](https://github.com/googleapis/google-cloud-java/tree/main/java-service-control) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-service-control.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-service-control&core=gav) | @@ -111,33 +131,31 @@ Libraries are available on GitHub and Maven Central for developing Java applicat | [TPU](https://github.com/googleapis/google-cloud-java/tree/main/java-tpu) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-tpu.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-tpu&core=gav) | | [Talent Solution](https://github.com/googleapis/google-cloud-java/tree/main/java-talent) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-talent.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-talent&core=gav) | | [Tasks](https://github.com/googleapis/google-cloud-java/tree/main/java-tasks) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-tasks.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-tasks&core=gav) | +| [Telco Automation API](https://github.com/googleapis/google-cloud-java/tree/main/java-telcoautomation) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-telcoautomation.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-telcoautomation&core=gav) | | [Text-to-Speech](https://github.com/googleapis/google-cloud-java/tree/main/java-texttospeech) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-texttospeech.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-texttospeech&core=gav) | | [Translation](https://github.com/googleapis/google-cloud-java/tree/main/java-translate) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-translate.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-translate&core=gav) | | [VM Migration](https://github.com/googleapis/google-cloud-java/tree/main/java-vmmigration) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-vmmigration.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-vmmigration&core=gav) | | [Vertex AI](https://github.com/googleapis/google-cloud-java/tree/main/java-aiplatform) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-aiplatform.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-aiplatform&core=gav) | | [VertexAI API](https://github.com/googleapis/google-cloud-java/tree/main/java-vertexai) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-vertexai.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-vertexai&core=gav) | | [Video Intelligence](https://github.com/googleapis/google-cloud-java/tree/main/java-video-intelligence) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-video-intelligence.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-video-intelligence&core=gav) | +| [Video Stitcher API](https://github.com/googleapis/google-cloud-java/tree/main/java-video-stitcher) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-video-stitcher.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-video-stitcher&core=gav) | | [Video Transcoder](https://github.com/googleapis/google-cloud-java/tree/main/java-video-transcoder) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-video-transcoder.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-video-transcoder&core=gav) | | [Vision](https://github.com/googleapis/google-cloud-java/tree/main/java-vision) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-vision.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-vision&core=gav) | | [Web Risk](https://github.com/googleapis/google-cloud-java/tree/main/java-webrisk) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-webrisk.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-webrisk&core=gav) | | [Workflow Executions](https://github.com/googleapis/google-cloud-java/tree/main/java-workflow-executions) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-workflow-executions.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-workflow-executions&core=gav) | | [Workflows](https://github.com/googleapis/google-cloud-java/tree/main/java-workflows) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-workflows.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-workflows&core=gav) | | [Workspace Add-ons API](https://github.com/googleapis/google-cloud-java/tree/main/java-gsuite-addons) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gsuite-addons.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-gsuite-addons&core=gav) | +| [Workstations](https://github.com/googleapis/google-cloud-java/tree/main/java-workstations) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-workstations.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-workstations&core=gav) | | [reCAPTCHA Enterprise](https://github.com/googleapis/google-cloud-java/tree/main/java-recaptchaenterprise) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-recaptchaenterprise.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-recaptchaenterprise&core=gav) | -| [API Keys API](https://github.com/googleapis/google-cloud-java/tree/main/java-apikeys) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apikeys.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-apikeys&core=gav) | | [Ad Manager API](https://github.com/googleapis/google-cloud-java/tree/main/java-admanager) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.api-ads/ad-manager.svg)](https://search.maven.org/search?q=g:com.google.api-ads%20AND%20a:ad-manager&core=gav) | | [Address Validation API](https://github.com/googleapis/google-cloud-java/tree/main/java-maps-addressvalidation) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.maps/google-maps-addressvalidation.svg)](https://search.maven.org/search?q=g:com.google.maps%20AND%20a:google-maps-addressvalidation&core=gav) | -| [Advisory Notifications API](https://github.com/googleapis/google-cloud-java/tree/main/java-advisorynotifications) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-advisorynotifications.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-advisorynotifications&core=gav) | -| [AlloyDB](https://github.com/googleapis/google-cloud-java/tree/main/java-alloydb) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-alloydb.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-alloydb&core=gav) | -| [AlloyDB connectors](https://github.com/googleapis/google-cloud-java/tree/main/java-alloydb-connectors) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-alloydb-connectors.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-alloydb-connectors&core=gav) | | [Analytics Admin](https://github.com/googleapis/google-cloud-java/tree/main/java-analytics-admin) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.analytics/google-analytics-admin.svg)](https://search.maven.org/search?q=g:com.google.analytics%20AND%20a:google-analytics-admin&core=gav) | | [Analytics Data](https://github.com/googleapis/google-cloud-java/tree/main/java-analytics-data) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.analytics/google-analytics-data.svg)](https://search.maven.org/search?q=g:com.google.analytics%20AND%20a:google-analytics-data&core=gav) | | [Analytics Hub](https://github.com/googleapis/google-cloud-java/tree/main/java-bigquery-data-exchange) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquery-data-exchange.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-bigquery-data-exchange&core=gav) | -| [Analytics Hub API](https://github.com/googleapis/google-cloud-java/tree/main/java-analyticshub) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-analyticshub.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-analyticshub&core=gav) | | [Anthos Multicloud](https://github.com/googleapis/google-cloud-java/tree/main/java-gke-multi-cloud) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gke-multi-cloud.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-gke-multi-cloud&core=gav) | +| [Apache Kafka for BigQuery API](https://github.com/googleapis/google-cloud-java/tree/main/java-managedkafka) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-managedkafka.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-managedkafka&core=gav) | | [App Hub API](https://github.com/googleapis/google-cloud-java/tree/main/java-apphub) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apphub.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-apphub&core=gav) | | [Area 120 Tables](https://github.com/googleapis/google-cloud-java/tree/main/java-area120-tables) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.area120/google-area120-tables.svg)](https://search.maven.org/search?q=g:com.google.area120%20AND%20a:google-area120-tables&core=gav) | -| [Backup and DR Service API](https://github.com/googleapis/google-cloud-java/tree/main/java-backupdr) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-backupdr.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-backupdr&core=gav) | | [Backup for GKE](https://github.com/googleapis/google-cloud-java/tree/main/java-gke-backup) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gke-backup.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-gke-backup&core=gav) | | [Bare Metal Solution](https://github.com/googleapis/google-cloud-java/tree/main/java-bare-metal-solution) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bare-metal-solution.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-bare-metal-solution&core=gav) | | [Batch](https://github.com/googleapis/google-cloud-java/tree/main/java-batch) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-batch.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-batch&core=gav) | @@ -154,21 +172,15 @@ Libraries are available on GitHub and Maven Central for developing Java applicat | [Chat API](https://github.com/googleapis/google-cloud-java/tree/main/java-chat) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-chat.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-chat&core=gav) | | [Commerce Consumer Procurement](https://github.com/googleapis/google-cloud-java/tree/main/java-cloudcommerceconsumerprocurement) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-cloudcommerceconsumerprocurement.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-cloudcommerceconsumerprocurement&core=gav) | | [Confidential Computing API](https://github.com/googleapis/google-cloud-java/tree/main/java-confidentialcomputing) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-confidentialcomputing.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-confidentialcomputing&core=gav) | -| [Connect Gateway API](https://github.com/googleapis/google-cloud-java/tree/main/java-gke-connect-gateway) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gke-connect-gateway.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-gke-connect-gateway&core=gav) | -| [Controls Partner API](https://github.com/googleapis/google-cloud-java/tree/main/java-cloudcontrolspartner) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-cloudcontrolspartner.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-cloudcontrolspartner&core=gav) | | [Data Labeling](https://github.com/googleapis/google-cloud-java/tree/main/java-datalabeling) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-datalabeling.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-datalabeling&core=gav) | -| [Data Lineage](https://github.com/googleapis/google-cloud-java/tree/main/java-datalineage) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-datalineage.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-datalineage&core=gav) | | [Dataflow](https://github.com/googleapis/google-cloud-java/tree/main/java-dataflow) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataflow.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-dataflow&core=gav) | | [Dataform](https://github.com/googleapis/google-cloud-java/tree/main/java-dataform) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataform.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-dataform&core=gav) | +| [Developer Connect API](https://github.com/googleapis/google-cloud-java/tree/main/java-developerconnect) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-developerconnect.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-developerconnect&core=gav) | | [Dialogflow CX](https://github.com/googleapis/google-cloud-java/tree/main/java-dialogflow-cx) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dialogflow-cx.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-dialogflow-cx&core=gav) | -| [Discovery Engine API](https://github.com/googleapis/google-cloud-java/tree/main/java-discoveryengine) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-discoveryengine.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-discoveryengine&core=gav) | -| [Distributed Edge](https://github.com/googleapis/google-cloud-java/tree/main/java-distributedcloudedge) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-distributedcloudedge.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-distributedcloudedge&core=gav) | -| [Distributed Edge Network API](https://github.com/googleapis/google-cloud-java/tree/main/java-edgenetwork) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-edgenetwork.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-edgenetwork&core=gav) | | [Document AI Warehouse](https://github.com/googleapis/google-cloud-java/tree/main/java-contentwarehouse) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-contentwarehouse.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-contentwarehouse&core=gav) | | [Enterprise Knowledge Graph](https://github.com/googleapis/google-cloud-java/tree/main/java-enterpriseknowledgegraph) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-enterpriseknowledgegraph.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-enterpriseknowledgegraph&core=gav) | | [Error Reporting](https://github.com/googleapis/google-cloud-java/tree/main/java-errorreporting) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-errorreporting.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-errorreporting&core=gav) | | [Eventarc Publishing](https://github.com/googleapis/google-cloud-java/tree/main/java-eventarc-publishing) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-eventarc-publishing.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-eventarc-publishing&core=gav) | -| [Infrastructure Manager API](https://github.com/googleapis/google-cloud-java/tree/main/java-infra-manager) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-infra-manager.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-infra-manager&core=gav) | | [KMS Inventory API](https://github.com/googleapis/google-cloud-java/tree/main/java-kmsinventory) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-kmsinventory.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-kmsinventory&core=gav) | | [Life Sciences](https://github.com/googleapis/google-cloud-java/tree/main/java-life-sciences) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-life-sciences.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-life-sciences&core=gav) | | [Live Stream API](https://github.com/googleapis/google-cloud-java/tree/main/java-video-live-stream) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-live-stream.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-live-stream&core=gav) | @@ -178,8 +190,12 @@ Libraries are available on GitHub and Maven Central for developing Java applicat | [Media Translation API](https://github.com/googleapis/google-cloud-java/tree/main/java-mediatranslation) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-mediatranslation.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-mediatranslation&core=gav) | | [Meet API](https://github.com/googleapis/google-cloud-java/tree/main/java-meet) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-meet.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-meet&core=gav) | | [Memorystore for Redis API](https://github.com/googleapis/google-cloud-java/tree/main/java-redis-cluster) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-redis-cluster.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-redis-cluster&core=gav) | +| [Merchant API](https://github.com/googleapis/google-cloud-java/tree/main/java-shopping-merchant-promotions) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-promotions.svg)](https://search.maven.org/search?q=g:com.google.shopping%20AND%20a:google-shopping-merchant-promotions&core=gav) | +| [Merchant API](https://github.com/googleapis/google-cloud-java/tree/main/java-shopping-merchant-accounts) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-accounts.svg)](https://search.maven.org/search?q=g:com.google.shopping%20AND%20a:google-shopping-merchant-accounts&core=gav) | +| [Merchant API](https://github.com/googleapis/google-cloud-java/tree/main/java-shopping-merchant-products) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-products.svg)](https://search.maven.org/search?q=g:com.google.shopping%20AND%20a:google-shopping-merchant-products&core=gav) | | [Merchant API](https://github.com/googleapis/google-cloud-java/tree/main/java-shopping-merchant-reports) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-reports.svg)](https://search.maven.org/search?q=g:com.google.shopping%20AND%20a:google-shopping-merchant-reports&core=gav) | | [Merchant API](https://github.com/googleapis/google-cloud-java/tree/main/java-shopping-merchant-inventories) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-inventories.svg)](https://search.maven.org/search?q=g:com.google.shopping%20AND%20a:google-shopping-merchant-inventories&core=gav) | +| [Merchant API](https://github.com/googleapis/google-cloud-java/tree/main/java-shopping-merchant-datasources) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-datasources.svg)](https://search.maven.org/search?q=g:com.google.shopping%20AND%20a:google-shopping-merchant-datasources&core=gav) | | [Merchant Conversions API](https://github.com/googleapis/google-cloud-java/tree/main/java-shopping-merchant-conversions) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-conversions.svg)](https://search.maven.org/search?q=g:com.google.shopping%20AND%20a:google-shopping-merchant-conversions&core=gav) | | [Merchant LFP API](https://github.com/googleapis/google-cloud-java/tree/main/java-shopping-merchant-lfp) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-lfp.svg)](https://search.maven.org/search?q=g:com.google.shopping%20AND%20a:google-shopping-merchant-lfp&core=gav) | | [Merchant Notifications API](https://github.com/googleapis/google-cloud-java/tree/main/java-shopping-merchant-notifications) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-notifications.svg)](https://search.maven.org/search?q=g:com.google.shopping%20AND%20a:google-shopping-merchant-notifications&core=gav) | @@ -188,33 +204,26 @@ Libraries are available on GitHub and Maven Central for developing Java applicat | [Monitoring Metrics Scopes](https://github.com/googleapis/google-cloud-java/tree/main/java-monitoring-metricsscope) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-monitoring-metricsscope.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-monitoring-metricsscope&core=gav) | | [NIO Filesystem Provider for Storage](https://github.com/googleapis/java-storage-nio) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-nio.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-nio&core=gav) | | [NetApp API](https://github.com/googleapis/google-cloud-java/tree/main/java-netapp) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-netapp.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-netapp&core=gav) | -| [Network Security API](https://github.com/googleapis/google-cloud-java/tree/main/java-network-security) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-network-security.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-network-security&core=gav) | +| [Network Services API](https://github.com/googleapis/google-cloud-java/tree/main/java-networkservices) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-networkservices.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-networkservices&core=gav) | | [Parallelstore API](https://github.com/googleapis/google-cloud-java/tree/main/java-parallelstore) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-parallelstore.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-parallelstore&core=gav) | | [Phishing Protection](https://github.com/googleapis/google-cloud-java/tree/main/java-phishingprotection) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-phishingprotection.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-phishingprotection&core=gav) | | [Places API (New)](https://github.com/googleapis/google-cloud-java/tree/main/java-maps-places) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.maps/google-maps-places.svg)](https://search.maven.org/search?q=g:com.google.maps%20AND%20a:google-maps-places&core=gav) | | [Policy Simulator API](https://github.com/googleapis/google-cloud-java/tree/main/java-policysimulator) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-policysimulator.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-policysimulator&core=gav) | | [Private Catalog](https://github.com/googleapis/google-cloud-java/tree/main/java-private-catalog) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-private-catalog.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-private-catalog&core=gav) | | [Pub/Sub Lite Flink Connector](https://github.com/googleapis/java-pubsublite-flink) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsublite-flink.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-pubsublite-flink&core=gav) | -| [Public Certificate Authority](https://github.com/googleapis/google-cloud-java/tree/main/java-publicca) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-publicca.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-publicca&core=gav) | -| [Quotas API](https://github.com/googleapis/google-cloud-java/tree/main/java-cloudquotas) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-cloudquotas.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-cloudquotas&core=gav) | | [Rapid Migration Assessment API](https://github.com/googleapis/google-cloud-java/tree/main/java-rapidmigrationassessment) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-rapidmigrationassessment.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-rapidmigrationassessment&core=gav) | | [Recommendations AI](https://github.com/googleapis/google-cloud-java/tree/main/java-recommendations-ai) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-recommendations-ai.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-recommendations-ai&core=gav) | | [Registry API](https://github.com/googleapis/google-cloud-java/tree/main/java-apigee-registry) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apigee-registry.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-apigee-registry&core=gav) | | [Route Optimization API](https://github.com/googleapis/google-cloud-java/tree/main/java-maps-routeoptimization) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.maps/google-maps-routeoptimization.svg)](https://search.maven.org/search?q=g:com.google.maps%20AND%20a:google-maps-routeoptimization&core=gav) | | [Run](https://github.com/googleapis/google-cloud-java/tree/main/java-run) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-run.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-run&core=gav) | -| [Secure Source Manager API](https://github.com/googleapis/google-cloud-java/tree/main/java-securesourcemanager) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-securesourcemanager.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-securesourcemanager&core=gav) | -| [Security Center Management API](https://github.com/googleapis/google-cloud-java/tree/main/java-securitycentermanagement) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-securitycentermanagement.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-securitycentermanagement&core=gav) | | [Security Command Center Settings API](https://github.com/googleapis/google-cloud-java/tree/main/java-securitycenter-settings) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-securitycenter-settings.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-securitycenter-settings&core=gav) | -| [Security Posture API](https://github.com/googleapis/google-cloud-java/tree/main/java-securityposture) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-securityposture.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-securityposture&core=gav) | | [Service Health API](https://github.com/googleapis/google-cloud-java/tree/main/java-servicehealth) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-servicehealth.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-servicehealth&core=gav) | | [Solar API](https://github.com/googleapis/google-cloud-java/tree/main/java-maps-solar) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.maps/google-maps-solar.svg)](https://search.maven.org/search?q=g:com.google.maps%20AND%20a:google-maps-solar&core=gav) | | [Storage Insights API](https://github.com/googleapis/google-cloud-java/tree/main/java-storageinsights) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-storageinsights.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-storageinsights&core=gav) | | [Support API](https://github.com/googleapis/google-cloud-java/tree/main/java-cloudsupport) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-cloudsupport.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-cloudsupport&core=gav) | -| [Telco Automation API](https://github.com/googleapis/google-cloud-java/tree/main/java-telcoautomation) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-telcoautomation.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-telcoautomation&core=gav) | | [VMware Engine](https://github.com/googleapis/google-cloud-java/tree/main/java-vmwareengine) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-vmwareengine.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-vmwareengine&core=gav) | -| [Video Stitcher API](https://github.com/googleapis/google-cloud-java/tree/main/java-video-stitcher) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-video-stitcher.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-video-stitcher&core=gav) | +| [Vision AI API](https://github.com/googleapis/google-cloud-java/tree/main/java-visionai) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-visionai.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-visionai&core=gav) | | [Workspace Events API](https://github.com/googleapis/google-cloud-java/tree/main/java-workspaceevents) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-workspaceevents.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-workspaceevents&core=gav) | -| [Workstations](https://github.com/googleapis/google-cloud-java/tree/main/java-workstations) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-workstations.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-workstations&core=gav) | [//]: # (API_TABLE_END) From 08018121c0d1284d7dd0cd0d288f40d0a11e5506 Mon Sep 17 00:00:00 2001 From: "copybara-service[bot]" <56741989+copybara-service[bot]@users.noreply.github.com> Date: Tue, 11 Jun 2024 09:53:34 -0700 Subject: [PATCH 09/33] feat: [vertexai] support ToolConfig in GenerativeModel (#10950) PiperOrigin-RevId: 642059737 Co-authored-by: Jaycee Li --- .../generativeai/GenerativeModel.java | 76 ++++++++++++++++++- .../generativeai/GenerativeModelTest.java | 50 ++++++++++++ 2 files changed, 124 insertions(+), 2 deletions(-) diff --git a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/GenerativeModel.java b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/GenerativeModel.java index db5a6ab7cb6d..d88fdc5da081 100644 --- a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/GenerativeModel.java +++ b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/GenerativeModel.java @@ -30,6 +30,7 @@ import com.google.cloud.vertexai.api.GenerationConfig; import com.google.cloud.vertexai.api.SafetySetting; import com.google.cloud.vertexai.api.Tool; +import com.google.cloud.vertexai.api.ToolConfig; import com.google.common.base.Strings; import com.google.common.collect.ImmutableList; import com.google.errorprone.annotations.CanIgnoreReturnValue; @@ -46,6 +47,7 @@ public final class GenerativeModel { private final GenerationConfig generationConfig; private final ImmutableList safetySettings; private final ImmutableList tools; + private final Optional toolConfig; private final Optional systemInstruction; /** @@ -65,6 +67,7 @@ public GenerativeModel(String modelName, VertexAI vertexAi) { ImmutableList.of(), ImmutableList.of(), Optional.empty(), + Optional.empty(), vertexAi); } @@ -79,6 +82,10 @@ public GenerativeModel(String modelName, VertexAI vertexAi) { * that will be used by default for generating response * @param tools a list of {@link com.google.cloud.vertexai.api.Tool} instances that can be used by * the model as auxiliary tools to generate content. + * @param toolConfig a {@link com.google.cloud.vertexai.api.ToolConfig} instance that will be used + * to specify the tool configuration. + * @param systemInstruction a {@link com.google.cloud.vertexai.api.Content} instance that will be + * used by default for generating response. * @param vertexAi a {@link com.google.cloud.vertexai.VertexAI} that contains the default configs * for the generative model */ @@ -87,6 +94,7 @@ private GenerativeModel( GenerationConfig generationConfig, ImmutableList safetySettings, ImmutableList tools, + Optional toolConfig, Optional systemInstruction, VertexAI vertexAi) { checkArgument( @@ -98,6 +106,8 @@ private GenerativeModel( checkNotNull(generationConfig, "GenerationConfig can't be null."); checkNotNull(safetySettings, "ImmutableList can't be null."); checkNotNull(tools, "ImmutableList can't be null."); + checkNotNull(toolConfig, "Optional can't be null."); + checkNotNull(systemInstruction, "Optional can't be null."); this.resourceName = getResourceName(modelName, vertexAi); // reconcileModelName should be called after getResourceName. @@ -106,6 +116,7 @@ private GenerativeModel( this.generationConfig = generationConfig; this.safetySettings = safetySettings; this.tools = tools; + this.toolConfig = toolConfig; // We remove the role in the system instruction content because it's officially documented // to be used without role specified: // https://cloud.google.com/vertex-ai/generative-ai/docs/samples/generativeaionvertexai-gemini-system-instruction @@ -128,6 +139,7 @@ public static class Builder { private GenerationConfig generationConfig = GenerationConfig.getDefaultInstance(); private ImmutableList safetySettings = ImmutableList.of(); private ImmutableList tools = ImmutableList.of(); + private Optional toolConfig = Optional.empty(); private Optional systemInstruction = Optional.empty(); public GenerativeModel build() { @@ -136,7 +148,13 @@ public GenerativeModel build() { "modelName is required. Please call setModelName() before building."); checkNotNull(vertexAi, "vertexAi is required. Please call setVertexAi() before building."); return new GenerativeModel( - modelName, generationConfig, safetySettings, tools, systemInstruction, vertexAi); + modelName, + generationConfig, + safetySettings, + tools, + toolConfig, + systemInstruction, + vertexAi); } /** @@ -204,6 +222,19 @@ public Builder setTools(List tools) { return this; } + /** + * Sets a {@link com.google.cloud.vertexai.api.ToolConfig} that will be used by default to + * interact with the generative model. + */ + @CanIgnoreReturnValue + public Builder setToolConfig(ToolConfig toolConfig) { + checkNotNull( + toolConfig, + "toolConfig can't be null. Use Optional.empty() if no tool config is intended."); + this.toolConfig = Optional.of(toolConfig); + return this; + } + /** * Sets a system instruction that will be used by default to interact with the generative model. */ @@ -228,7 +259,13 @@ public Builder setSystemInstruction(Content systemInstruction) { public GenerativeModel withGenerationConfig(GenerationConfig generationConfig) { checkNotNull(generationConfig, "GenerationConfig can't be null."); return new GenerativeModel( - modelName, generationConfig, safetySettings, tools, systemInstruction, vertexAi); + modelName, + generationConfig, + safetySettings, + tools, + toolConfig, + systemInstruction, + vertexAi); } /** @@ -247,6 +284,7 @@ public GenerativeModel withSafetySettings(List safetySettings) { generationConfig, ImmutableList.copyOf(safetySettings), tools, + toolConfig, systemInstruction, vertexAi); } @@ -265,6 +303,28 @@ public GenerativeModel withTools(List tools) { generationConfig, safetySettings, ImmutableList.copyOf(tools), + toolConfig, + systemInstruction, + vertexAi); + } + + /** + * Creates a copy of the current model with updated tool config. + * + * @param toolConfig a {@link com.google.cloud.vertexai.api.ToolConfig} that will be used in the + * new model. + * @return a new {@link GenerativeModel} instance with the specified tool config. + */ + public GenerativeModel withToolConfig(ToolConfig toolConfig) { + checkNotNull( + toolConfig, + "toolConfig can't be null. Use Optional.empty() if no tool config is intended."); + return new GenerativeModel( + modelName, + generationConfig, + safetySettings, + tools, + Optional.of(toolConfig), systemInstruction, vertexAi); } @@ -286,6 +346,7 @@ public GenerativeModel withSystemInstruction(Content systemInstruction) { generationConfig, safetySettings, tools, + toolConfig, Optional.of(systemInstruction), vertexAi); } @@ -537,6 +598,10 @@ private GenerateContentRequest buildGenerateContentRequest(List content .addAllSafetySettings(safetySettings) .addAllTools(tools); + if (toolConfig.isPresent()) { + requestBuilder.setToolConfig(toolConfig.get()); + } + if (systemInstruction.isPresent()) { requestBuilder.setSystemInstruction(systemInstruction.get()); } @@ -568,6 +633,13 @@ public ImmutableList getTools() { return tools; } + /** + * Returns the optional {@link com.google.cloud.vertexai.api.ToolConfig} of this generative model. + */ + public Optional getToolConfig() { + return toolConfig; + } + /** Returns the optional system instruction of this generative model. */ public Optional getSystemInstruction() { return systemInstruction; diff --git a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/GenerativeModelTest.java b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/GenerativeModelTest.java index 1be892573fb1..b767479300ec 100644 --- a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/GenerativeModelTest.java +++ b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/GenerativeModelTest.java @@ -31,6 +31,7 @@ import com.google.cloud.vertexai.api.Content; import com.google.cloud.vertexai.api.CountTokensRequest; import com.google.cloud.vertexai.api.CountTokensResponse; +import com.google.cloud.vertexai.api.FunctionCallingConfig; import com.google.cloud.vertexai.api.FunctionDeclaration; import com.google.cloud.vertexai.api.GenerateContentRequest; import com.google.cloud.vertexai.api.GenerateContentResponse; @@ -44,6 +45,7 @@ import com.google.cloud.vertexai.api.SafetySetting.HarmBlockThreshold; import com.google.cloud.vertexai.api.Schema; import com.google.cloud.vertexai.api.Tool; +import com.google.cloud.vertexai.api.ToolConfig; import com.google.cloud.vertexai.api.Type; import com.google.cloud.vertexai.api.VertexAISearch; import java.util.ArrayList; @@ -96,6 +98,13 @@ public final class GenerativeModelTest { .build()) .addRequired("location"))) .build(); + private static final ToolConfig DEFAULT_TOOL_CONFIG = + ToolConfig.newBuilder() + .setFunctionCallingConfig( + FunctionCallingConfig.newBuilder() + .setMode(FunctionCallingConfig.Mode.ANY) + .addAllowedFunctionNames("getCurrentWeather")) + .build(); private static final Content DEFAULT_SYSTEM_INSTRUCTION = ContentMaker.fromString( "You're a helpful assistant that starts all its answers with: \"COOL\""); @@ -404,6 +413,25 @@ public void generateContent_withDefaultTools_requestHasCorrectToolsAndText() thr assertThat(request.getValue().getTools(0)).isEqualTo(TOOL); } + @Test + public void generateContent_withDefaultToolConfig_requestHasCorrectToolConfigAndText() + throws Exception { + model = + new GenerativeModel.Builder() + .setModelName(MODEL_NAME) + .setVertexAi(vertexAi) + .setToolConfig(DEFAULT_TOOL_CONFIG) + .build(); + + GenerateContentResponse unused = model.generateContent(TEXT); + + ArgumentCaptor request = + ArgumentCaptor.forClass(GenerateContentRequest.class); + verify(mockUnaryCallable).call(request.capture()); + assertThat(request.getValue().getContents(0).getParts(0).getText()).isEqualTo(TEXT); + assertThat(request.getValue().getToolConfig()).isEqualTo(DEFAULT_TOOL_CONFIG); + } + @Test public void generateContent_withDefaultSystemInstruction_requestHasCorrectSystemInstructionAndText() @@ -433,6 +461,7 @@ public void generateContent_withAllConfigsInFluentApi_requestHasCorrectFields() .withGenerationConfig(GENERATION_CONFIG) .withSafetySettings(safetySettings) .withTools(tools) + .withToolConfig(DEFAULT_TOOL_CONFIG) .withSystemInstruction(DEFAULT_SYSTEM_INSTRUCTION) .generateContent(TEXT); @@ -444,6 +473,7 @@ public void generateContent_withAllConfigsInFluentApi_requestHasCorrectFields() assertThat(request.getValue().getGenerationConfig()).isEqualTo(GENERATION_CONFIG); assertThat(request.getValue().getSafetySettings(0)).isEqualTo(SAFETY_SETTING); assertThat(request.getValue().getTools(0)).isEqualTo(TOOL); + assertThat(request.getValue().getToolConfig()).isEqualTo(DEFAULT_TOOL_CONFIG); assertThat(request.getValue().getSystemInstruction()).isEqualTo(expectedSystemInstruction); } @@ -546,6 +576,24 @@ public void generateContentStream_withDefaultTools_requestHasCorrectTools() thro assertThat(request.getValue().getTools(0)).isEqualTo(TOOL); } + @Test + public void generateContentStream_withDefaultToolConfig_requestHasCorrectToolConfig() + throws Exception { + model = + new GenerativeModel.Builder() + .setModelName(MODEL_NAME) + .setVertexAi(vertexAi) + .setToolConfig(DEFAULT_TOOL_CONFIG) + .build(); + + ResponseStream unused = model.generateContentStream(TEXT); + + ArgumentCaptor request = + ArgumentCaptor.forClass(GenerateContentRequest.class); + verify(mockServerStreamCallable).call(request.capture()); + assertThat(request.getValue().getToolConfig()).isEqualTo(DEFAULT_TOOL_CONFIG); + } + @Test public void generateContentStream_withDefaultSystemInstruction_requestHasCorrectSystemInstruction() @@ -576,6 +624,7 @@ public void generateContentStream_withAllConfigsInFluentApi_requestHasCorrectFie .withGenerationConfig(GENERATION_CONFIG) .withSafetySettings(safetySettings) .withTools(tools) + .withToolConfig(DEFAULT_TOOL_CONFIG) .withSystemInstruction(DEFAULT_SYSTEM_INSTRUCTION) .generateContentStream(TEXT); @@ -587,6 +636,7 @@ public void generateContentStream_withAllConfigsInFluentApi_requestHasCorrectFie assertThat(request.getValue().getGenerationConfig()).isEqualTo(GENERATION_CONFIG); assertThat(request.getValue().getSafetySettings(0)).isEqualTo(SAFETY_SETTING); assertThat(request.getValue().getTools(0)).isEqualTo(TOOL); + assertThat(request.getValue().getToolConfig()).isEqualTo(DEFAULT_TOOL_CONFIG); assertThat(request.getValue().getSystemInstruction()).isEqualTo(expectedSystemInstruction); } From 5ebfc33afaf473c847389f9ef8adc58ee41f6a29 Mon Sep 17 00:00:00 2001 From: "copybara-service[bot]" <56741989+copybara-service[bot]@users.noreply.github.com> Date: Tue, 11 Jun 2024 17:44:33 +0000 Subject: [PATCH 10/33] feat: [vertexai] allow setting ToolConfig and SystemInstruction in ChatSession (#10953) PiperOrigin-RevId: 641987014 Co-authored-by: Jaycee Li --- .../vertexai/generativeai/ChatSession.java | 102 ++++++++++++------ .../generativeai/ChatSessionTest.java | 20 +++- 2 files changed, 86 insertions(+), 36 deletions(-) diff --git a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/ChatSession.java b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/ChatSession.java index 5d3e7dd4df12..3cdb0a463c60 100644 --- a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/ChatSession.java +++ b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/ChatSession.java @@ -29,6 +29,7 @@ import com.google.cloud.vertexai.api.GenerationConfig; import com.google.cloud.vertexai.api.SafetySetting; import com.google.cloud.vertexai.api.Tool; +import com.google.cloud.vertexai.api.ToolConfig; import com.google.common.collect.ImmutableList; import java.io.IOException; import java.util.ArrayList; @@ -40,8 +41,8 @@ public final class ChatSession { private final GenerativeModel model; private final Optional rootChatSession; private final Optional automaticFunctionCallingResponder; - private List history = new ArrayList<>(); - private int previousHistorySize = 0; + private List history; + private int previousHistorySize; private Optional> currentResponseStream; private Optional currentResponse; @@ -50,7 +51,7 @@ public final class ChatSession { * GenerationConfig) inherits from the model. */ public ChatSession(GenerativeModel model) { - this(model, Optional.empty(), Optional.empty()); + this(model, new ArrayList<>(), 0, Optional.empty(), Optional.empty()); } /** @@ -58,6 +59,9 @@ public ChatSession(GenerativeModel model) { * Configurations of the chat (e.g., GenerationConfig) inherits from the model. * * @param model a {@link GenerativeModel} instance that generates contents in the chat. + * @param history a list of {@link Content} containing interleaving conversation between "user" + * and "model". + * @param previousHistorySize the size of the previous history. * @param rootChatSession a root {@link ChatSession} instance. All the chat history in the current * chat session will be merged to the root chat session. * @param automaticFunctionCallingResponder an {@link AutomaticFunctionCallingResponder} instance @@ -66,10 +70,14 @@ public ChatSession(GenerativeModel model) { */ private ChatSession( GenerativeModel model, + List history, + int previousHistorySize, Optional rootChatSession, Optional automaticFunctionCallingResponder) { checkNotNull(model, "model should not be null"); this.model = model; + this.history = history; + this.previousHistorySize = previousHistorySize; this.rootChatSession = rootChatSession; this.automaticFunctionCallingResponder = automaticFunctionCallingResponder; currentResponseStream = Optional.empty(); @@ -84,15 +92,12 @@ private ChatSession( * @return a new {@link ChatSession} instance with the specified GenerationConfig. */ public ChatSession withGenerationConfig(GenerationConfig generationConfig) { - ChatSession rootChat = rootChatSession.orElse(this); - ChatSession newChatSession = - new ChatSession( - model.withGenerationConfig(generationConfig), - Optional.of(rootChat), - automaticFunctionCallingResponder); - newChatSession.history = history; - newChatSession.previousHistorySize = previousHistorySize; - return newChatSession; + return new ChatSession( + model.withGenerationConfig(generationConfig), + history, + previousHistorySize, + Optional.of(rootChatSession.orElse(this)), + automaticFunctionCallingResponder); } /** @@ -103,15 +108,12 @@ public ChatSession withGenerationConfig(GenerationConfig generationConfig) { * @return a new {@link ChatSession} instance with the specified SafetySettings. */ public ChatSession withSafetySettings(List safetySettings) { - ChatSession rootChat = rootChatSession.orElse(this); - ChatSession newChatSession = - new ChatSession( - model.withSafetySettings(safetySettings), - Optional.of(rootChat), - automaticFunctionCallingResponder); - newChatSession.history = history; - newChatSession.previousHistorySize = previousHistorySize; - return newChatSession; + return new ChatSession( + model.withSafetySettings(safetySettings), + history, + previousHistorySize, + Optional.of(rootChatSession.orElse(this)), + automaticFunctionCallingResponder); } /** @@ -122,13 +124,44 @@ public ChatSession withSafetySettings(List safetySettings) { * @return a new {@link ChatSession} instance with the specified Tools. */ public ChatSession withTools(List tools) { - ChatSession rootChat = rootChatSession.orElse(this); - ChatSession newChatSession = - new ChatSession( - model.withTools(tools), Optional.of(rootChat), automaticFunctionCallingResponder); - newChatSession.history = history; - newChatSession.previousHistorySize = previousHistorySize; - return newChatSession; + return new ChatSession( + model.withTools(tools), + history, + previousHistorySize, + Optional.of(rootChatSession.orElse(this)), + automaticFunctionCallingResponder); + } + + /** + * Creates a copy of the current ChatSession with updated ToolConfig. + * + * @param toolConfig a {@link com.google.cloud.vertexai.api.ToolConfig} that will be used in the + * new ChatSession. + * @return a new {@link ChatSession} instance with the specified ToolConfigs. + */ + public ChatSession withToolConfig(ToolConfig toolConfig) { + return new ChatSession( + model.withToolConfig(toolConfig), + history, + previousHistorySize, + Optional.of(rootChatSession.orElse(this)), + automaticFunctionCallingResponder); + } + + /** + * Creates a copy of the current ChatSession with updated SystemInstruction. + * + * @param systemInstruction a {@link com.google.cloud.vertexai.api.Content} containing system + * instructions. + * @return a new {@link ChatSession} instance with the specified ToolConfigs. + */ + public ChatSession withSystemInstruction(Content systemInstruction) { + return new ChatSession( + model.withSystemInstruction(systemInstruction), + history, + previousHistorySize, + Optional.of(rootChatSession.orElse(this)), + automaticFunctionCallingResponder); } /** @@ -141,13 +174,12 @@ public ChatSession withTools(List tools) { */ public ChatSession withAutomaticFunctionCallingResponder( AutomaticFunctionCallingResponder automaticFunctionCallingResponder) { - ChatSession rootChat = rootChatSession.orElse(this); - ChatSession newChatSession = - new ChatSession( - model, Optional.of(rootChat), Optional.of(automaticFunctionCallingResponder)); - newChatSession.history = history; - newChatSession.previousHistorySize = previousHistorySize; - return newChatSession; + return new ChatSession( + model, + history, + previousHistorySize, + Optional.of(rootChatSession.orElse(this)), + Optional.of(automaticFunctionCallingResponder)); } /** diff --git a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/ChatSessionTest.java b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/ChatSessionTest.java index 0537d96fb0dc..aa0c7bf911df 100644 --- a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/ChatSessionTest.java +++ b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/ChatSessionTest.java @@ -29,6 +29,7 @@ import com.google.cloud.vertexai.api.Candidate.FinishReason; import com.google.cloud.vertexai.api.Content; import com.google.cloud.vertexai.api.FunctionCall; +import com.google.cloud.vertexai.api.FunctionCallingConfig; import com.google.cloud.vertexai.api.FunctionDeclaration; import com.google.cloud.vertexai.api.GenerateContentRequest; import com.google.cloud.vertexai.api.GenerateContentResponse; @@ -40,6 +41,7 @@ import com.google.cloud.vertexai.api.SafetySetting.HarmBlockThreshold; import com.google.cloud.vertexai.api.Schema; import com.google.cloud.vertexai.api.Tool; +import com.google.cloud.vertexai.api.ToolConfig; import com.google.cloud.vertexai.api.Type; import com.google.protobuf.Struct; import com.google.protobuf.Value; @@ -174,6 +176,16 @@ public final class ChatSessionTest { .build()) .addRequired("location"))) .build(); + private static final ToolConfig TOOL_CONFIG = + ToolConfig.newBuilder() + .setFunctionCallingConfig( + FunctionCallingConfig.newBuilder() + .setMode(FunctionCallingConfig.Mode.ANY) + .addAllowedFunctionNames("getCurrentWeather")) + .build(); + private static final Content SYSTEM_INSTRUCTION = + ContentMaker.fromString( + "You're a helpful assistant that starts all its answers with: \"COOL\""); @Rule public final MockitoRule mocksRule = MockitoJUnit.rule(); @@ -518,7 +530,9 @@ public void testChatSessionMergeHistoryToRootChatSession() throws Exception { rootChat .withGenerationConfig(GENERATION_CONFIG) .withSafetySettings(Arrays.asList(SAFETY_SETTING)) - .withTools(Arrays.asList(TOOL)); + .withTools(Arrays.asList(TOOL)) + .withToolConfig(TOOL_CONFIG) + .withSystemInstruction(SYSTEM_INSTRUCTION); response = childChat.sendMessage(SAMPLE_MESSAGE_2); // (Assert) root chat history should contain all 4 contents @@ -532,8 +546,12 @@ public void testChatSessionMergeHistoryToRootChatSession() throws Exception { ArgumentCaptor request = ArgumentCaptor.forClass(GenerateContentRequest.class); verify(mockUnaryCallable, times(2)).call(request.capture()); + Content expectedSystemInstruction = SYSTEM_INSTRUCTION.toBuilder().clearRole().build(); assertThat(request.getAllValues().get(1).getGenerationConfig()).isEqualTo(GENERATION_CONFIG); assertThat(request.getAllValues().get(1).getSafetySettings(0)).isEqualTo(SAFETY_SETTING); assertThat(request.getAllValues().get(1).getTools(0)).isEqualTo(TOOL); + assertThat(request.getAllValues().get(1).getToolConfig()).isEqualTo(TOOL_CONFIG); + assertThat(request.getAllValues().get(1).getSystemInstruction()) + .isEqualTo(expectedSystemInstruction); } } From 5a10656cf56ff8bcfdf276434d617e7384eab9ac Mon Sep 17 00:00:00 2001 From: "copybara-service[bot]" <56741989+copybara-service[bot]@users.noreply.github.com> Date: Tue, 11 Jun 2024 18:40:17 +0000 Subject: [PATCH 11/33] feat: [vertexai] add FunctionDeclarationMaker.fromFunc to create FunctionDeclaration from a Java static method (#10915) PiperOrigin-RevId: 639154403 Co-authored-by: Jaycee Li --- .../vertexai/generativeai/ChatSession.java | 102 +++---- .../FunctionDeclarationMaker.java | 93 +++++++ .../generativeai/ChatSessionTest.java | 20 +- .../FunctionDeclarationMakerTest.java | 256 +++++++++++++++--- .../it/ITChatSessionIntegrationTest.java | 67 +---- 5 files changed, 360 insertions(+), 178 deletions(-) diff --git a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/ChatSession.java b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/ChatSession.java index 3cdb0a463c60..5d3e7dd4df12 100644 --- a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/ChatSession.java +++ b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/ChatSession.java @@ -29,7 +29,6 @@ import com.google.cloud.vertexai.api.GenerationConfig; import com.google.cloud.vertexai.api.SafetySetting; import com.google.cloud.vertexai.api.Tool; -import com.google.cloud.vertexai.api.ToolConfig; import com.google.common.collect.ImmutableList; import java.io.IOException; import java.util.ArrayList; @@ -41,8 +40,8 @@ public final class ChatSession { private final GenerativeModel model; private final Optional rootChatSession; private final Optional automaticFunctionCallingResponder; - private List history; - private int previousHistorySize; + private List history = new ArrayList<>(); + private int previousHistorySize = 0; private Optional> currentResponseStream; private Optional currentResponse; @@ -51,7 +50,7 @@ public final class ChatSession { * GenerationConfig) inherits from the model. */ public ChatSession(GenerativeModel model) { - this(model, new ArrayList<>(), 0, Optional.empty(), Optional.empty()); + this(model, Optional.empty(), Optional.empty()); } /** @@ -59,9 +58,6 @@ public ChatSession(GenerativeModel model) { * Configurations of the chat (e.g., GenerationConfig) inherits from the model. * * @param model a {@link GenerativeModel} instance that generates contents in the chat. - * @param history a list of {@link Content} containing interleaving conversation between "user" - * and "model". - * @param previousHistorySize the size of the previous history. * @param rootChatSession a root {@link ChatSession} instance. All the chat history in the current * chat session will be merged to the root chat session. * @param automaticFunctionCallingResponder an {@link AutomaticFunctionCallingResponder} instance @@ -70,14 +66,10 @@ public ChatSession(GenerativeModel model) { */ private ChatSession( GenerativeModel model, - List history, - int previousHistorySize, Optional rootChatSession, Optional automaticFunctionCallingResponder) { checkNotNull(model, "model should not be null"); this.model = model; - this.history = history; - this.previousHistorySize = previousHistorySize; this.rootChatSession = rootChatSession; this.automaticFunctionCallingResponder = automaticFunctionCallingResponder; currentResponseStream = Optional.empty(); @@ -92,12 +84,15 @@ private ChatSession( * @return a new {@link ChatSession} instance with the specified GenerationConfig. */ public ChatSession withGenerationConfig(GenerationConfig generationConfig) { - return new ChatSession( - model.withGenerationConfig(generationConfig), - history, - previousHistorySize, - Optional.of(rootChatSession.orElse(this)), - automaticFunctionCallingResponder); + ChatSession rootChat = rootChatSession.orElse(this); + ChatSession newChatSession = + new ChatSession( + model.withGenerationConfig(generationConfig), + Optional.of(rootChat), + automaticFunctionCallingResponder); + newChatSession.history = history; + newChatSession.previousHistorySize = previousHistorySize; + return newChatSession; } /** @@ -108,12 +103,15 @@ public ChatSession withGenerationConfig(GenerationConfig generationConfig) { * @return a new {@link ChatSession} instance with the specified SafetySettings. */ public ChatSession withSafetySettings(List safetySettings) { - return new ChatSession( - model.withSafetySettings(safetySettings), - history, - previousHistorySize, - Optional.of(rootChatSession.orElse(this)), - automaticFunctionCallingResponder); + ChatSession rootChat = rootChatSession.orElse(this); + ChatSession newChatSession = + new ChatSession( + model.withSafetySettings(safetySettings), + Optional.of(rootChat), + automaticFunctionCallingResponder); + newChatSession.history = history; + newChatSession.previousHistorySize = previousHistorySize; + return newChatSession; } /** @@ -124,44 +122,13 @@ public ChatSession withSafetySettings(List safetySettings) { * @return a new {@link ChatSession} instance with the specified Tools. */ public ChatSession withTools(List tools) { - return new ChatSession( - model.withTools(tools), - history, - previousHistorySize, - Optional.of(rootChatSession.orElse(this)), - automaticFunctionCallingResponder); - } - - /** - * Creates a copy of the current ChatSession with updated ToolConfig. - * - * @param toolConfig a {@link com.google.cloud.vertexai.api.ToolConfig} that will be used in the - * new ChatSession. - * @return a new {@link ChatSession} instance with the specified ToolConfigs. - */ - public ChatSession withToolConfig(ToolConfig toolConfig) { - return new ChatSession( - model.withToolConfig(toolConfig), - history, - previousHistorySize, - Optional.of(rootChatSession.orElse(this)), - automaticFunctionCallingResponder); - } - - /** - * Creates a copy of the current ChatSession with updated SystemInstruction. - * - * @param systemInstruction a {@link com.google.cloud.vertexai.api.Content} containing system - * instructions. - * @return a new {@link ChatSession} instance with the specified ToolConfigs. - */ - public ChatSession withSystemInstruction(Content systemInstruction) { - return new ChatSession( - model.withSystemInstruction(systemInstruction), - history, - previousHistorySize, - Optional.of(rootChatSession.orElse(this)), - automaticFunctionCallingResponder); + ChatSession rootChat = rootChatSession.orElse(this); + ChatSession newChatSession = + new ChatSession( + model.withTools(tools), Optional.of(rootChat), automaticFunctionCallingResponder); + newChatSession.history = history; + newChatSession.previousHistorySize = previousHistorySize; + return newChatSession; } /** @@ -174,12 +141,13 @@ public ChatSession withSystemInstruction(Content systemInstruction) { */ public ChatSession withAutomaticFunctionCallingResponder( AutomaticFunctionCallingResponder automaticFunctionCallingResponder) { - return new ChatSession( - model, - history, - previousHistorySize, - Optional.of(rootChatSession.orElse(this)), - Optional.of(automaticFunctionCallingResponder)); + ChatSession rootChat = rootChatSession.orElse(this); + ChatSession newChatSession = + new ChatSession( + model, Optional.of(rootChat), Optional.of(automaticFunctionCallingResponder)); + newChatSession.history = history; + newChatSession.previousHistorySize = previousHistorySize; + return newChatSession; } /** diff --git a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/FunctionDeclarationMaker.java b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/FunctionDeclarationMaker.java index c118df5b0d6f..77fcddc6e802 100644 --- a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/FunctionDeclarationMaker.java +++ b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/FunctionDeclarationMaker.java @@ -19,10 +19,15 @@ import static com.google.common.base.Preconditions.checkNotNull; import com.google.cloud.vertexai.api.FunctionDeclaration; +import com.google.cloud.vertexai.api.Schema; +import com.google.cloud.vertexai.api.Type; import com.google.common.base.Strings; import com.google.gson.JsonObject; import com.google.protobuf.InvalidProtocolBufferException; import com.google.protobuf.util.JsonFormat; +import java.lang.reflect.Method; +import java.lang.reflect.Modifier; +import java.lang.reflect.Parameter; /** Helper class to create {@link com.google.cloud.vertexai.api.FunctionDeclaration} */ public final class FunctionDeclarationMaker { @@ -60,4 +65,92 @@ public static FunctionDeclaration fromJsonObject(JsonObject jsonObject) checkNotNull(jsonObject, "JsonObject can't be null."); return fromJsonString(jsonObject.toString()); } + + /** + * Creates a FunctionDeclaration from a Java static method + * + *

Note:: If you don't want to manually provide parameter names, you can ignore + * `orderedParameterNames` and compile your code with the "-parameters" flag. In this case, the + * parameter names can be auto retrieved from reflection. + * + * @param functionDescription A description of the method. + * @param function A Java static method. + * @param orderedParameterNames A list of parameter names in the order they are passed to the + * method. + * @return a {@link com.google.cloud.vertexai.api.FunctionDeclaration} instance. + * @throws IllegalArgumentException if the method is not a static method or the number of provided + * parameter names doesn't match the number of parameters in the callable function or + * parameter types in this method are not String, boolean, int, double, or float. + * @throws IllegalStateException if the parameter names are not provided and cannot be retrieved + * from reflection + */ + public static FunctionDeclaration fromFunc( + String functionDescription, Method function, String... orderedParameterNames) { + if (!Modifier.isStatic(function.getModifiers())) { + throw new IllegalArgumentException( + "Instance methods are not supported. Please use static methods."); + } + Schema.Builder parametersBuilder = Schema.newBuilder().setType(Type.OBJECT); + + Parameter[] parameters = function.getParameters(); + // If parameter names are provided, the number of parameter names should match the number of + // parameters in the method. + if (orderedParameterNames.length > 0 && orderedParameterNames.length != parameters.length) { + throw new IllegalArgumentException( + "The number of parameter names does not match the number of parameters in the method."); + } + + for (int i = 0; i < parameters.length; i++) { + if (orderedParameterNames.length == 0) { + // If parameter names are not provided, try to retrieve them from reflection. + if (!parameters[i].isNamePresent()) { + throw new IllegalStateException( + "Failed to retrieve the parameter name from reflection. Please compile your" + + " code with \"-parameters\" flag or use `fromFunc(String, Method," + + " String...)` to manually enter parameter names"); + } + addParameterToParametersBuilder( + parametersBuilder, parameters[i].getName(), parameters[i].getType()); + } else { + addParameterToParametersBuilder( + parametersBuilder, orderedParameterNames[i], parameters[i].getType()); + } + } + + return FunctionDeclaration.newBuilder() + .setName(function.getName()) + .setDescription(functionDescription) + .setParameters(parametersBuilder) + .build(); + } + + /** Adds a parameter to the parameters builder. */ + private static void addParameterToParametersBuilder( + Schema.Builder parametersBuilder, String parameterName, Class parameterType) { + Schema.Builder parameterBuilder = Schema.newBuilder().setDescription(parameterName); + switch (parameterType.getName()) { + case "java.lang.String": + parameterBuilder.setType(Type.STRING); + break; + case "boolean": + parameterBuilder.setType(Type.BOOLEAN); + break; + case "int": + parameterBuilder.setType(Type.INTEGER); + break; + case "double": + case "float": + parameterBuilder.setType(Type.NUMBER); + break; + default: + throw new IllegalArgumentException( + "Unsupported parameter type " + + parameterType.getName() + + " for parameter " + + parameterName); + } + parametersBuilder + .addRequired(parameterName) + .putProperties(parameterName, parameterBuilder.build()); + } } diff --git a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/ChatSessionTest.java b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/ChatSessionTest.java index aa0c7bf911df..0537d96fb0dc 100644 --- a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/ChatSessionTest.java +++ b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/ChatSessionTest.java @@ -29,7 +29,6 @@ import com.google.cloud.vertexai.api.Candidate.FinishReason; import com.google.cloud.vertexai.api.Content; import com.google.cloud.vertexai.api.FunctionCall; -import com.google.cloud.vertexai.api.FunctionCallingConfig; import com.google.cloud.vertexai.api.FunctionDeclaration; import com.google.cloud.vertexai.api.GenerateContentRequest; import com.google.cloud.vertexai.api.GenerateContentResponse; @@ -41,7 +40,6 @@ import com.google.cloud.vertexai.api.SafetySetting.HarmBlockThreshold; import com.google.cloud.vertexai.api.Schema; import com.google.cloud.vertexai.api.Tool; -import com.google.cloud.vertexai.api.ToolConfig; import com.google.cloud.vertexai.api.Type; import com.google.protobuf.Struct; import com.google.protobuf.Value; @@ -176,16 +174,6 @@ public final class ChatSessionTest { .build()) .addRequired("location"))) .build(); - private static final ToolConfig TOOL_CONFIG = - ToolConfig.newBuilder() - .setFunctionCallingConfig( - FunctionCallingConfig.newBuilder() - .setMode(FunctionCallingConfig.Mode.ANY) - .addAllowedFunctionNames("getCurrentWeather")) - .build(); - private static final Content SYSTEM_INSTRUCTION = - ContentMaker.fromString( - "You're a helpful assistant that starts all its answers with: \"COOL\""); @Rule public final MockitoRule mocksRule = MockitoJUnit.rule(); @@ -530,9 +518,7 @@ public void testChatSessionMergeHistoryToRootChatSession() throws Exception { rootChat .withGenerationConfig(GENERATION_CONFIG) .withSafetySettings(Arrays.asList(SAFETY_SETTING)) - .withTools(Arrays.asList(TOOL)) - .withToolConfig(TOOL_CONFIG) - .withSystemInstruction(SYSTEM_INSTRUCTION); + .withTools(Arrays.asList(TOOL)); response = childChat.sendMessage(SAMPLE_MESSAGE_2); // (Assert) root chat history should contain all 4 contents @@ -546,12 +532,8 @@ public void testChatSessionMergeHistoryToRootChatSession() throws Exception { ArgumentCaptor request = ArgumentCaptor.forClass(GenerateContentRequest.class); verify(mockUnaryCallable, times(2)).call(request.capture()); - Content expectedSystemInstruction = SYSTEM_INSTRUCTION.toBuilder().clearRole().build(); assertThat(request.getAllValues().get(1).getGenerationConfig()).isEqualTo(GENERATION_CONFIG); assertThat(request.getAllValues().get(1).getSafetySettings(0)).isEqualTo(SAFETY_SETTING); assertThat(request.getAllValues().get(1).getTools(0)).isEqualTo(TOOL); - assertThat(request.getAllValues().get(1).getToolConfig()).isEqualTo(TOOL_CONFIG); - assertThat(request.getAllValues().get(1).getSystemInstruction()) - .isEqualTo(expectedSystemInstruction); } } diff --git a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/FunctionDeclarationMakerTest.java b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/FunctionDeclarationMakerTest.java index f8894ba1ca99..a17c81a4d94c 100644 --- a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/FunctionDeclarationMakerTest.java +++ b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/FunctionDeclarationMakerTest.java @@ -21,14 +21,91 @@ import com.google.cloud.vertexai.api.FunctionDeclaration; import com.google.cloud.vertexai.api.Schema; import com.google.cloud.vertexai.api.Type; +import com.google.common.collect.ImmutableList; +import com.google.gson.Gson; import com.google.gson.JsonObject; import com.google.protobuf.InvalidProtocolBufferException; +import java.lang.reflect.Method; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; @RunWith(JUnit4.class) public final class FunctionDeclarationMakerTest { + private static final String FUNCTION_NAME = "functionName"; + private static final String FUNCTION_DESCRIPTION = "functionDescription"; + private static final String STRING_PARAM_NAME = "stringParam"; + private static final String INTEGER_PARAM_NAME = "integerParam"; + private static final String DOUBLE_PARAM_NAME = "doubleParam"; + private static final String FLOAT_PARAM_NAME = "floatParam"; + private static final String BOOLEAN_PARAM_NAME = "booleanParam"; + private static final ImmutableList REQUIRED_PARAM_NAMES = + ImmutableList.of( + STRING_PARAM_NAME, + INTEGER_PARAM_NAME, + DOUBLE_PARAM_NAME, + FLOAT_PARAM_NAME, + BOOLEAN_PARAM_NAME); + + private static final FunctionDeclaration EXPECTED_FUNCTION_DECLARATION = + FunctionDeclaration.newBuilder() + .setName(FUNCTION_NAME) + .setDescription(FUNCTION_DESCRIPTION) + .setParameters( + Schema.newBuilder() + .setType(Type.OBJECT) + .putProperties( + STRING_PARAM_NAME, + Schema.newBuilder() + .setType(Type.STRING) + .setDescription(STRING_PARAM_NAME) + .build()) + .putProperties( + INTEGER_PARAM_NAME, + Schema.newBuilder() + .setType(Type.INTEGER) + .setDescription(INTEGER_PARAM_NAME) + .build()) + .putProperties( + DOUBLE_PARAM_NAME, + Schema.newBuilder() + .setType(Type.NUMBER) + .setDescription(DOUBLE_PARAM_NAME) + .build()) + .putProperties( + FLOAT_PARAM_NAME, + Schema.newBuilder() + .setType(Type.NUMBER) + .setDescription(FLOAT_PARAM_NAME) + .build()) + .putProperties( + BOOLEAN_PARAM_NAME, + Schema.newBuilder() + .setType(Type.BOOLEAN) + .setDescription(BOOLEAN_PARAM_NAME) + .build()) + .addAllRequired(REQUIRED_PARAM_NAMES)) + .build(); + + /** A function (static method) to test fromFunc functionalities. */ + public static int functionName( + String stringParam, + int integerParam, + double doubleParam, + float floatParam, + boolean booleanParam) { + return 0; + } + + /** An instance method to test fromFunc. */ + public int instanceMethod(String stringParam) { + return 1; + } + + /** A function with invalid parameter type to test fromFunc. */ + public static int functionWithInvalidType(Object objectParam) { + return 2; + } @Test public void fromValidJsonStringTested_returnsFunctionDeclaration() @@ -40,31 +117,35 @@ public void fromValidJsonStringTested_returnsFunctionDeclaration() + " \"parameters\": {\n" + " \"type\": \"OBJECT\", \n" + " \"properties\": {\n" - + " \"param1\": {\n" + + " \"stringParam\": {\n" + " \"type\": \"STRING\",\n" - + " \"description\": \"param1Description\"\n" + + " \"description\": \"stringParam\"\n" + + " },\n" + + " \"integerParam\": {\n" + + " \"type\": \"INTEGER\",\n" + + " \"description\": \"integerParam\"\n" + + " },\n" + + " \"doubleParam\": {\n" + + " \"type\": \"NUMBER\",\n" + + " \"description\": \"doubleParam\"\n" + + " },\n" + + " \"floatParam\": {\n" + + " \"type\": \"NUMBER\",\n" + + " \"description\": \"floatParam\"\n" + + " },\n" + + " \"booleanParam\": {\n" + + " \"type\": \"BOOLEAN\",\n" + + " \"description\": \"booleanParam\"\n" + " }\n" - + " }\n" + + " },\n" + + " \"required\": [\"stringParam\", \"integerParam\", \"doubleParam\"," + + " \"floatParam\", \"booleanParam\"]\n" + " }\n" + "}"; FunctionDeclaration functionDeclaration = FunctionDeclarationMaker.fromJsonString(jsonString); - FunctionDeclaration expectedFunctionDeclaration = - FunctionDeclaration.newBuilder() - .setName("functionName") - .setDescription("functionDescription") - .setParameters( - Schema.newBuilder() - .setType(Type.OBJECT) - .putProperties( - "param1", - Schema.newBuilder() - .setType(Type.STRING) - .setDescription("param1Description") - .build())) - .build(); - assertThat(functionDeclaration).isEqualTo(expectedFunctionDeclaration); + assertThat(functionDeclaration).isEqualTo(EXPECTED_FUNCTION_DECLARATION); } @Test @@ -140,38 +221,135 @@ public void fromJsonStringStringIsNull_throwsIllegalArgumentException() @Test public void fromValidJsonObject_returnsFunctionDeclaration() throws InvalidProtocolBufferException { - JsonObject param1JsonObject = new JsonObject(); - param1JsonObject.addProperty("type", "STRING"); - param1JsonObject.addProperty("description", "param1Description"); + JsonObject stringParamJsonObject = new JsonObject(); + stringParamJsonObject.addProperty("type", "STRING"); + stringParamJsonObject.addProperty("description", STRING_PARAM_NAME); + + JsonObject integerParamJsonObject = new JsonObject(); + integerParamJsonObject.addProperty("type", "INTEGER"); + integerParamJsonObject.addProperty("description", INTEGER_PARAM_NAME); + + JsonObject doubleParamJsonObject = new JsonObject(); + doubleParamJsonObject.addProperty("type", "NUMBER"); + doubleParamJsonObject.addProperty("description", DOUBLE_PARAM_NAME); + + JsonObject floatParamJsonObject = new JsonObject(); + floatParamJsonObject.addProperty("type", "NUMBER"); + floatParamJsonObject.addProperty("description", FLOAT_PARAM_NAME); + + JsonObject booleanParamJsonObject = new JsonObject(); + booleanParamJsonObject.addProperty("type", "BOOLEAN"); + booleanParamJsonObject.addProperty("description", BOOLEAN_PARAM_NAME); JsonObject propertiesJsonObject = new JsonObject(); - propertiesJsonObject.add("param1", param1JsonObject); + propertiesJsonObject.add(STRING_PARAM_NAME, stringParamJsonObject); + propertiesJsonObject.add(INTEGER_PARAM_NAME, integerParamJsonObject); + propertiesJsonObject.add(DOUBLE_PARAM_NAME, doubleParamJsonObject); + propertiesJsonObject.add(FLOAT_PARAM_NAME, floatParamJsonObject); + propertiesJsonObject.add(BOOLEAN_PARAM_NAME, booleanParamJsonObject); JsonObject parametersJsonObject = new JsonObject(); parametersJsonObject.addProperty("type", "OBJECT"); parametersJsonObject.add("properties", propertiesJsonObject); + parametersJsonObject.add( + "required", new Gson().toJsonTree(REQUIRED_PARAM_NAMES).getAsJsonArray()); JsonObject jsonObject = new JsonObject(); - jsonObject.addProperty("name", "functionName"); - jsonObject.addProperty("description", "functionDescription"); + jsonObject.addProperty("name", FUNCTION_NAME); + jsonObject.addProperty("description", FUNCTION_DESCRIPTION); jsonObject.add("parameters", parametersJsonObject); FunctionDeclaration functionDeclaration = FunctionDeclarationMaker.fromJsonObject(jsonObject); - FunctionDeclaration expectedFunctionDeclaration = - FunctionDeclaration.newBuilder() - .setName("functionName") - .setDescription("functionDescription") - .setParameters( - Schema.newBuilder() - .setType(Type.OBJECT) - .putProperties( - "param1", - Schema.newBuilder() - .setType(Type.STRING) - .setDescription("param1Description") - .build())) - .build(); - assertThat(functionDeclaration).isEqualTo(expectedFunctionDeclaration); + assertThat(functionDeclaration).isEqualTo(EXPECTED_FUNCTION_DECLARATION); + } + + @Test + public void fromFuncWithoutParameterNamesWithoutReflection_throwsIllegalStateException() + throws NoSuchMethodException { + Method function = + FunctionDeclarationMakerTest.class.getMethod( + FUNCTION_NAME, String.class, int.class, double.class, float.class, boolean.class); + + IllegalStateException thrown = + assertThrows( + IllegalStateException.class, + () -> FunctionDeclarationMaker.fromFunc(FUNCTION_DESCRIPTION, function)); + assertThat(thrown) + .hasMessageThat() + .isEqualTo( + "Failed to retrieve the parameter name from reflection. Please compile your" + + " code with \"-parameters\" flag or use `fromFunc(String, Method," + + " String...)` to manually enter parameter names"); + } + + @Test + public void fromFuncWithParameterNames_returnsFunctionDeclaration() throws NoSuchMethodException { + Method function = + FunctionDeclarationMakerTest.class.getMethod( + FUNCTION_NAME, String.class, int.class, double.class, float.class, boolean.class); + + FunctionDeclaration functionDeclaration = + FunctionDeclarationMaker.fromFunc( + FUNCTION_DESCRIPTION, + function, + STRING_PARAM_NAME, + INTEGER_PARAM_NAME, + DOUBLE_PARAM_NAME, + FLOAT_PARAM_NAME, + BOOLEAN_PARAM_NAME); + + assertThat(functionDeclaration).isEqualTo(EXPECTED_FUNCTION_DECLARATION); + } + + @Test + public void fromFuncWithInstanceMethod_throwsIllegalArgumentException() + throws NoSuchMethodException { + Method function = FunctionDeclarationMakerTest.class.getMethod("instanceMethod", String.class); + + IllegalArgumentException thrown = + assertThrows( + IllegalArgumentException.class, + () -> + FunctionDeclarationMaker.fromFunc( + FUNCTION_DESCRIPTION, function, STRING_PARAM_NAME)); + assertThat(thrown) + .hasMessageThat() + .isEqualTo("Instance methods are not supported. Please use static methods."); + } + + @Test + public void fromFuncWithInvalidParameterType_throwsIllegalArgumentException() + throws NoSuchMethodException { + Method function = + FunctionDeclarationMakerTest.class.getMethod("functionWithInvalidType", Object.class); + + IllegalArgumentException thrown = + assertThrows( + IllegalArgumentException.class, + () -> FunctionDeclarationMaker.fromFunc(FUNCTION_DESCRIPTION, function, "objectParam")); + assertThat(thrown) + .hasMessageThat() + .isEqualTo( + "Unsupported parameter type " + Object.class.getName() + " for parameter objectParam"); + } + + @Test + public void fromFuncWithUnmatchedParameterNames_throwsIllegalArgumentException() + throws NoSuchMethodException { + Method function = + FunctionDeclarationMakerTest.class.getMethod( + FUNCTION_NAME, String.class, int.class, double.class, float.class, boolean.class); + + IllegalArgumentException thrown = + assertThrows( + IllegalArgumentException.class, + () -> + FunctionDeclarationMaker.fromFunc( + FUNCTION_DESCRIPTION, function, STRING_PARAM_NAME)); + assertThat(thrown) + .hasMessageThat() + .isEqualTo( + "The number of parameter names does not match the number of parameters in the method."); } } diff --git a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/it/ITChatSessionIntegrationTest.java b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/it/ITChatSessionIntegrationTest.java index 420ccd01535b..1e3e5152044d 100644 --- a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/it/ITChatSessionIntegrationTest.java +++ b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/it/ITChatSessionIntegrationTest.java @@ -33,8 +33,8 @@ import com.google.cloud.vertexai.generativeai.ResponseHandler; import com.google.cloud.vertexai.generativeai.ResponseStream; import com.google.common.collect.ImmutableList; -import com.google.gson.JsonObject; import java.io.IOException; +import java.lang.reflect.Method; import java.util.Collections; import java.util.logging.Logger; import org.junit.After; @@ -168,43 +168,19 @@ public void sendMessageWithNewConfigs_historyContainsFullConversation() throws I } @Test - public void sendMessageWithFunctionCalling_functionCallInResponse() throws IOException { + public void sendMessageWithFunctionCalling_functionCallInResponse() + throws IOException, NoSuchMethodException { // Arrange String firstMessage = "hello!"; String secondMessage = "What is the weather in Boston?"; - // Making an Json object representing a function declaration - // The following code makes a function declaration - // { - // "name": "getCurrentWeather", - // "description": "Get the current weather in a given location", - // "parameters": { - // "type": "OBJECT", - // "properties": { - // "location": { - // "type": "STRING", - // "description": "location" - // } - // } - // } - // } - JsonObject locationJsonObject = new JsonObject(); - locationJsonObject.addProperty("type", "STRING"); - locationJsonObject.addProperty("description", "location"); - - JsonObject propertiesJsonObject = new JsonObject(); - propertiesJsonObject.add("location", locationJsonObject); - JsonObject parametersJsonObject = new JsonObject(); - parametersJsonObject.addProperty("type", "OBJECT"); - parametersJsonObject.add("properties", propertiesJsonObject); - - JsonObject jsonObject = new JsonObject(); - jsonObject.addProperty("name", "getCurrentWeather"); - jsonObject.addProperty("description", "Get the current weather in a given location"); - jsonObject.add("parameters", parametersJsonObject); + Method function = + ITChatSessionIntegrationTest.class.getMethod("getCurrentWeather", String.class); Tool tool = Tool.newBuilder() - .addFunctionDeclarations(FunctionDeclarationMaker.fromJsonObject(jsonObject)) + .addFunctionDeclarations( + FunctionDeclarationMaker.fromFunc( + "Get the current weather in a given location", function, "location")) .build(); ImmutableList tools = ImmutableList.of(tool); @@ -240,33 +216,18 @@ public void sendMessageWithAutomaticFunctionCalling_autoRespondToFunctionCall() throws IOException, NoSuchMethodException { // Arrange String message = "What is the weather in Boston?"; - - JsonObject locationJsonObject = new JsonObject(); - locationJsonObject.addProperty("type", "STRING"); - locationJsonObject.addProperty("description", "location"); - - JsonObject propertiesJsonObject = new JsonObject(); - propertiesJsonObject.add("location", locationJsonObject); - - JsonObject parametersJsonObject = new JsonObject(); - parametersJsonObject.addProperty("type", "OBJECT"); - parametersJsonObject.add("properties", propertiesJsonObject); - - JsonObject jsonObject = new JsonObject(); - jsonObject.addProperty("name", "getCurrentWeather"); - jsonObject.addProperty("description", "Get the current weather in a given location"); - jsonObject.add("parameters", parametersJsonObject); + Method function = + ITChatSessionIntegrationTest.class.getMethod("getCurrentWeather", String.class); Tool tool = Tool.newBuilder() - .addFunctionDeclarations(FunctionDeclarationMaker.fromJsonObject(jsonObject)) + .addFunctionDeclarations( + FunctionDeclarationMaker.fromFunc( + "Get the current weather in a given location", function, "location")) .build(); ImmutableList tools = ImmutableList.of(tool); AutomaticFunctionCallingResponder responder = new AutomaticFunctionCallingResponder(); - responder.addCallableFunction( - "getCurrentWeather", - ITChatSessionIntegrationTest.class.getMethod("getCurrentWeather", String.class), - "location"); + responder.addCallableFunction("getCurrentWeather", function, "location"); // Act chat = model.startChat(); From 89b548f031d912b3b4fb6f7295b81626b6863bf1 Mon Sep 17 00:00:00 2001 From: Joe Wang <106995533+JoeWang1127@users.noreply.github.com> Date: Tue, 11 Jun 2024 17:42:14 -0400 Subject: [PATCH 12/33] chore: update generation config (#10955) * chore: update repo level params * downgrade * add log * update script name * update title * capitalize word * add comments * remove major version limitation --- .../scripts}/hermetic_library_generation.sh | 0 .../scripts/update_generation_config.sh | 39 ++++++++++++++++--- .../hermetic_library_generation.yaml | 2 +- ...mit.yaml => update_generation_config.yaml} | 8 ++-- 4 files changed, 39 insertions(+), 10 deletions(-) rename {generation => .github/scripts}/hermetic_library_generation.sh (100%) rename generation/update_googleapis_commit.sh => .github/scripts/update_generation_config.sh (59%) mode change 100644 => 100755 rename .github/workflows/{update_googleapis_commit.yaml => update_generation_config.yaml} (88%) diff --git a/generation/hermetic_library_generation.sh b/.github/scripts/hermetic_library_generation.sh similarity index 100% rename from generation/hermetic_library_generation.sh rename to .github/scripts/hermetic_library_generation.sh diff --git a/generation/update_googleapis_commit.sh b/.github/scripts/update_generation_config.sh old mode 100644 new mode 100755 similarity index 59% rename from generation/update_googleapis_commit.sh rename to .github/scripts/update_generation_config.sh index b950be9af453..561a313040f3 --- a/generation/update_googleapis_commit.sh +++ b/.github/scripts/update_generation_config.sh @@ -1,12 +1,32 @@ #!/bin/bash set -e # This script should be run at the root of the repository. -# This script is used to update googleapis commit to latest in generation -# configuration at the time of running and create a pull request. +# This script is used to update googleapis_commitish, gapic_generator_version, +# and libraries_bom_version in generation configuration at the time of running +# and create a pull request. # The following commands need to be installed before running the script: # 1. git # 2. gh +# 3. jq + +# Utility functions +# Get the latest released version of a Maven artifact. +function get_latest_released_version() { + local group_id=$1 + local artifact_id=$2 + latest=$(curl -s "https://search.maven.org/solrsearch/select?q=g:${group_id}+AND+a:${artifact_id}&core=gav&rows=500&wt=json" | jq -r '.response.docs[] | select(.v | test("^[0-9]+(\\.[0-9]+)*$")) | .v' | sort -V | tail -n 1) + echo "${latest}" +} + +# Update a key to a new value in the generation config. +function update_config() { + local key_word=$1 + local new_value=$2 + local file=$3 + echo "Update ${key_word} to ${new_value} in ${file}" + sed -i -e "s/^${key_word}.*$/${key_word}: ${new_value}/" "${file}" +} # The parameters of this script is: # 1. base_branch, the base branch of the result pull request. @@ -52,7 +72,7 @@ if [ -z "${generation_config}" ]; then fi current_branch="generate-libraries-${base_branch}" -title="chore: update googleapis commit at $(date)" +title="chore: Update generation configuration at $(date)" # try to find a open pull request associated with the branch pr_num=$(gh pr list -s open -H "${current_branch}" -q . --json number | jq ".[] | .number") @@ -72,12 +92,20 @@ git pull latest_commit=$(git rev-parse HEAD) popd rm -rf tmp-googleapis -sed -i -e "s/^googleapis_commitish.*$/googleapis_commitish: ${latest_commit}/" "${generation_config}" +update_config "googleapis_commitish" "${latest_commit}" "${generation_config}" + +# update gapic-generator-java version to the latest +latest_version=$(get_latest_released_version "com.google.api" "gapic-generator-java") +update_config "gapic_generator_version" "${latest_version}" "${generation_config}" + +# update libraries-bom version to the latest +latest_version=$(get_latest_released_version "com.google.cloud" "libraries-bom") +update_config "libraries_bom_version" "${latest_version}" "${generation_config}" git add "${generation_config}" changed_files=$(git diff --cached --name-only) if [[ "${changed_files}" == "" ]]; then - echo "The latest googleapis commit is not changed." + echo "The latest generation config is not changed." echo "Skip committing to the pull request." exit 0 fi @@ -89,4 +117,5 @@ if [ -z "${pr_num}" ]; then gh pr create --title "${title}" --head "${current_branch}" --body "${title}" --base "${base_branch}" else git push + gh pr edit "${pr_num}" --title "${title}" --body "${title}" fi diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml index 5e5dc24d851b..d2f2546a785b 100644 --- a/.github/workflows/hermetic_library_generation.yaml +++ b/.github/workflows/hermetic_library_generation.yaml @@ -35,7 +35,7 @@ jobs: set -x [ -z "$(git config user.email)" ] && git config --global user.email "cloud-java-bot@google.com" [ -z "$(git config user.name)" ] && git config --global user.name "cloud-java-bot" - bash generation/hermetic_library_generation.sh \ + bash .github/scripts/hermetic_library_generation.sh \ --target_branch "${base_ref}" \ --current_branch "${head_ref}" \ --image_tag "${library_generation_image_tag}" diff --git a/.github/workflows/update_googleapis_commit.yaml b/.github/workflows/update_generation_config.yaml similarity index 88% rename from .github/workflows/update_googleapis_commit.yaml rename to .github/workflows/update_generation_config.yaml index 42df660369d3..70b513312b7a 100644 --- a/.github/workflows/update_googleapis_commit.yaml +++ b/.github/workflows/update_generation_config.yaml @@ -13,14 +13,14 @@ # limitations under the License. # GitHub action job to test core java library features on # downstream client libraries before they are released. -name: Update googleapis commit +name: Update generation configuration on: schedule: - cron: '0 2 * * *' workflow_dispatch: jobs: - update-googleapis-commit: + update-generation-config: runs-on: ubuntu-22.04 env: # the branch into which the pull request is merged @@ -29,13 +29,13 @@ jobs: - uses: actions/checkout@v4 with: token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - name: Update googleapis commit to latest + - name: Update params in generation config to latest shell: bash run: | set -x [ -z "$(git config user.email)" ] && git config --global user.email "cloud-java-bot@google.com" [ -z "$(git config user.name)" ] && git config --global user.name "cloud-java-bot" - bash generation/update_googleapis_commit.sh \ + bash .github/scripts/update_generation_config.sh.sh \ --base_branch "${base_branch}"\ --repo ${{ github.repository }} env: From 9e124ee206652b9268635d9b43eb19adb2a3d7ab Mon Sep 17 00:00:00 2001 From: Joe Wang <106995533+JoeWang1127@users.noreply.github.com> Date: Wed, 12 Jun 2024 12:48:43 -0400 Subject: [PATCH 13/33] fix: restore guava dependency (#10957) --- java-notification/pom.xml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/java-notification/pom.xml b/java-notification/pom.xml index 1bf461c7cc4c..b6fd26c9fb0c 100644 --- a/java-notification/pom.xml +++ b/java-notification/pom.xml @@ -65,12 +65,6 @@ com.google.guava guava - - - com.google.guava - failureaccess - - From bda6bb5b910a912c38e6282e38b5d4e0d94a8c35 Mon Sep 17 00:00:00 2001 From: Joe Wang <106995533+JoeWang1127@users.noreply.github.com> Date: Wed, 12 Jun 2024 13:41:06 -0400 Subject: [PATCH 14/33] chore: parse image tag from generation config (#10956) * chore: parse image tag from generation config * update renovate config --- .github/scripts/hermetic_library_generation.sh | 13 +++---------- .../workflows/hermetic_library_generation.yaml | 5 +---- renovate.json | 16 +--------------- 3 files changed, 5 insertions(+), 29 deletions(-) diff --git a/.github/scripts/hermetic_library_generation.sh b/.github/scripts/hermetic_library_generation.sh index 92fbb13183cf..ee723878c0f5 100755 --- a/.github/scripts/hermetic_library_generation.sh +++ b/.github/scripts/hermetic_library_generation.sh @@ -21,7 +21,6 @@ set -e # The parameters of this script is: # 1. target_branch, the branch into which the pull request is merged. # 2. current_branch, the branch with which the pull request is associated. -# 3. image_tag, the tag of gcr.io/cloud-devrel-public-resources/java-library-generation. # 3. [optional] generation_config, the path to the generation configuration, # the default value is generation_config.yaml in the repository root. while [[ $# -gt 0 ]]; do @@ -35,10 +34,6 @@ case "${key}" in current_branch="$2" shift ;; - --image_tag) - image_tag="$2" - shift - ;; --generation_config) generation_config="$2" shift @@ -61,11 +56,6 @@ if [ -z "${current_branch}" ]; then exit 1 fi -if [ -z "${image_tag}" ]; then - echo "missing required argument --image_tag" - exit 1 -fi - if [ -z "${generation_config}" ]; then generation_config=generation_config.yaml echo "Use default generation config: ${generation_config}" @@ -88,6 +78,9 @@ fi git show "${target_branch}":"${generation_config}" > "${baseline_generation_config}" config_diff=$(diff "${generation_config}" "${baseline_generation_config}" || true) +# parse image tag from the generation configuration. +image_tag=$(grep "gapic_generator_version" "${generation_config}" | cut -d ':' -f 2 | xargs) + # run hermetic code generation docker image. docker run \ --rm \ diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml index d2f2546a785b..ebc9ab770ccd 100644 --- a/.github/workflows/hermetic_library_generation.yaml +++ b/.github/workflows/hermetic_library_generation.yaml @@ -22,8 +22,6 @@ jobs: # skip pull requests come from a forked repository if: github.event.pull_request.head.repo.full_name == github.repository runs-on: ubuntu-latest - env: - library_generation_image_tag: 2.41.0 steps: - uses: actions/checkout@v4 with: @@ -37,8 +35,7 @@ jobs: [ -z "$(git config user.name)" ] && git config --global user.name "cloud-java-bot" bash .github/scripts/hermetic_library_generation.sh \ --target_branch "${base_ref}" \ - --current_branch "${head_ref}" \ - --image_tag "${library_generation_image_tag}" + --current_branch "${head_ref}" env: base_ref: ${{ github.base_ref }} head_ref: ${{ github.head_ref }} diff --git a/renovate.json b/renovate.json index 28a3d40d9ccd..27a37ae0564c 100644 --- a/renovate.json +++ b/renovate.json @@ -24,10 +24,8 @@ ".kokoro/nightly/graalvm-sub-jobs/native*/common.cfg", ".kokoro/presubmit/graalvm-native*.cfg", "owl-bot-postprocessor/synthtool/gcp/templates/java-library/.kokoro/presubmit/graalvm-native*.cfg", - "generation_config.yaml", ".github/workflows/ci.yaml", ".github/workflows/generated_files_sync.yaml", - ".github/workflows/hermetic_library_generation.yaml", ".github/workflows/unmanaged_dependency_check.yaml" ], "regexManagers": [ @@ -57,22 +55,10 @@ "depNameTemplate": "com.google.cloud:libraries-bom", "datasourceTemplate": "maven" }, - { - "fileMatch": [ - "generation_config.yaml" - ], - "matchStrings": [ - "libraries_bom_version\\s*:\\s*(?.*?)\\n" - ], - "depNameTemplate": "com.google.cloud:libraries-bom", - "datasourceTemplate": "maven" - }, { "fileMatch": [ ".github/workflows/ci.yaml", - ".github/workflows/generated_files_sync.yaml", - ".github/workflows/hermetic_library_generation.yaml", - ".github/workflows/unmanaged_dependency_check.yaml" + ".github/workflows/generated_files_sync.yaml" ], "matchStrings": [ "library_generation_image_tag\\s*:\\s*(?.*?)\\n" From 4be1db5cfca842d85e167b8ed033ebcbcbd758dd Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Wed, 12 Jun 2024 17:38:13 -0400 Subject: [PATCH 15/33] chore: update googleapis commit at Mon Jun 10 15:10:34 UTC 2024 (#10947) * chore: update googleapis commit at Mon Jun 10 15:10:34 UTC 2024 * chore: generate libraries at Mon Jun 10 15:13:44 UTC 2024 * add gax-http to java-container * fix dependency artifact id * chore: update googleapis commit at Tue Jun 11 02:18:39 UTC 2024 * add gax-httpjson to test deps * add gax testlib to dependencis * add locations to test scope of java-retail --------- Co-authored-by: Diego Alonso Marquez Palacios --- .gitignore | 4 + generation_config.yaml | 2 +- java-batch/README.md | 2 +- .../cloud/batch/v1/AllocationPolicy.java | 30 +- .../google/cloud/batch/v1/TaskExecution.java | 36 +- .../batch/v1/TaskExecutionOrBuilder.java | 9 +- .../com/google/cloud/batch/v1/TaskSpec.java | 156 +- .../cloud/batch/v1/TaskSpecOrBuilder.java | 39 +- .../proto/google/cloud/batch/v1/job.proto | 6 +- .../proto/google/cloud/batch/v1/task.proto | 22 +- java-container/.repo-metadata.json | 2 +- java-container/README.md | 4 +- java-container/google-cloud-container/pom.xml | 16 + .../container/v1/ClusterManagerClient.java | 47 + .../container/v1/ClusterManagerSettings.java | 22 +- .../cloud/container/v1/gapic_metadata.json | 2 +- .../v1/stub/ClusterManagerStubSettings.java | 52 +- ...HttpJsonClusterManagerCallableFactory.java | 101 + .../v1/stub/HttpJsonClusterManagerStub.java | 2621 ++++++ .../reflect-config.json | 90 + .../v1/ClusterManagerClientHttpJsonTest.java | 3699 ++++++++ .../v1/ClusterManagerClientTest.java | 53 +- .../com/google/container/v1/AddonsConfig.java | 8 +- .../container/v1/AddonsConfigOrBuilder.java | 4 +- .../container/v1/AdvancedMachineFeatures.java | 130 + .../v1/AdvancedMachineFeaturesOrBuilder.java | 25 + .../v1/AutoprovisioningNodePoolDefaults.java | 14 +- ...provisioningNodePoolDefaultsOrBuilder.java | 4 +- .../container/v1/BinaryAuthorization.java | 8 +- .../v1/BinaryAuthorizationOrBuilder.java | 2 +- .../container/v1/CancelOperationRequest.java | 42 +- .../v1/CancelOperationRequestOrBuilder.java | 12 +- .../java/com/google/container/v1/Cluster.java | 350 +- .../google/container/v1/ClusterOrBuilder.java | 78 +- .../container/v1/ClusterServiceProto.java | 2961 +++--- .../google/container/v1/ClusterUpdate.java | 1146 ++- .../container/v1/ClusterUpdateOrBuilder.java | 136 +- .../v1/CompleteIPRotationRequest.java | 42 +- .../CompleteIPRotationRequestOrBuilder.java | 12 +- .../google/container/v1/ContainerdConfig.java | 4217 +++++++++ .../v1/ContainerdConfigOrBuilder.java | 72 + .../container/v1/CreateClusterRequest.java | 28 +- .../v1/CreateClusterRequestOrBuilder.java | 8 +- .../container/v1/CreateNodePoolRequest.java | 42 +- .../v1/CreateNodePoolRequestOrBuilder.java | 12 +- .../com/google/container/v1/DNSConfig.java | 190 + .../container/v1/DNSConfigOrBuilder.java | 27 + .../container/v1/DeleteClusterRequest.java | 42 +- .../v1/DeleteClusterRequestOrBuilder.java | 12 +- .../container/v1/DeleteNodePoolRequest.java | 56 +- .../v1/DeleteNodePoolRequestOrBuilder.java | 16 +- .../google/container/v1/GPUSharingConfig.java | 22 + .../container/v1/GetClusterRequest.java | 42 +- .../v1/GetClusterRequestOrBuilder.java | 12 +- .../container/v1/GetNodePoolRequest.java | 56 +- .../v1/GetNodePoolRequestOrBuilder.java | 16 +- .../container/v1/GetOperationRequest.java | 42 +- .../v1/GetOperationRequestOrBuilder.java | 12 +- .../container/v1/GetServerConfigRequest.java | 28 +- .../v1/GetServerConfigRequestOrBuilder.java | 8 +- .../container/v1/IPAllocationPolicy.java | 42 +- .../v1/IPAllocationPolicyOrBuilder.java | 12 +- .../google/container/v1/LinuxNodeConfig.java | 1053 ++- .../v1/LinuxNodeConfigOrBuilder.java | 41 + .../container/v1/ListClustersRequest.java | 28 +- .../v1/ListClustersRequestOrBuilder.java | 8 +- .../container/v1/ListNodePoolsRequest.java | 42 +- .../v1/ListNodePoolsRequestOrBuilder.java | 12 +- .../container/v1/ListOperationsRequest.java | 28 +- .../v1/ListOperationsRequestOrBuilder.java | 8 +- .../com/google/container/v1/MasterAuth.java | 28 +- .../container/v1/MasterAuthOrBuilder.java | 8 +- .../v1/MonitoringComponentConfig.java | 44 + .../google/container/v1/NetworkConfig.java | 9 + .../container/v1/NetworkConfigOrBuilder.java | 3 + .../com/google/container/v1/NodeConfig.java | 343 +- .../container/v1/NodeConfigDefaults.java | 569 ++ .../v1/NodeConfigDefaultsOrBuilder.java | 76 + .../container/v1/NodeConfigOrBuilder.java | 35 + .../com/google/container/v1/NodePool.java | 14 +- .../container/v1/NodePoolAutoConfig.java | 298 + .../v1/NodePoolAutoConfigOrBuilder.java | 41 + .../container/v1/NodePoolOrBuilder.java | 4 +- .../com/google/container/v1/Operation.java | 28 +- .../container/v1/OperationOrBuilder.java | 8 +- .../v1/RollbackNodePoolUpgradeRequest.java | 56 +- ...llbackNodePoolUpgradeRequestOrBuilder.java | 16 +- .../container/v1/SecurityPostureConfig.java | 22 + .../container/v1/SetAddonsConfigRequest.java | 42 +- .../v1/SetAddonsConfigRequestOrBuilder.java | 12 +- .../google/container/v1/SetLabelsRequest.java | 42 +- .../v1/SetLabelsRequestOrBuilder.java | 12 +- .../container/v1/SetLegacyAbacRequest.java | 42 +- .../v1/SetLegacyAbacRequestOrBuilder.java | 12 +- .../container/v1/SetLocationsRequest.java | 42 +- .../v1/SetLocationsRequestOrBuilder.java | 12 +- .../v1/SetLoggingServiceRequest.java | 42 +- .../v1/SetLoggingServiceRequestOrBuilder.java | 12 +- .../container/v1/SetMasterAuthRequest.java | 42 +- .../v1/SetMasterAuthRequestOrBuilder.java | 12 +- .../v1/SetMonitoringServiceRequest.java | 42 +- .../SetMonitoringServiceRequestOrBuilder.java | 12 +- .../container/v1/SetNetworkPolicyRequest.java | 42 +- .../v1/SetNetworkPolicyRequestOrBuilder.java | 12 +- .../v1/SetNodePoolAutoscalingRequest.java | 56 +- ...etNodePoolAutoscalingRequestOrBuilder.java | 16 +- .../v1/SetNodePoolManagementRequest.java | 56 +- ...SetNodePoolManagementRequestOrBuilder.java | 16 +- .../container/v1/SetNodePoolSizeRequest.java | 56 +- .../v1/SetNodePoolSizeRequestOrBuilder.java | 16 +- .../container/v1/StartIPRotationRequest.java | 42 +- .../v1/StartIPRotationRequestOrBuilder.java | 12 +- .../google/container/v1/StatusCondition.java | 14 +- .../v1/StatusConditionOrBuilder.java | 4 +- .../container/v1/UpdateClusterRequest.java | 42 +- .../v1/UpdateClusterRequestOrBuilder.java | 12 +- .../container/v1/UpdateMasterRequest.java | 42 +- .../v1/UpdateMasterRequestOrBuilder.java | 12 +- .../container/v1/UpdateNodePoolRequest.java | 964 +- .../v1/UpdateNodePoolRequestOrBuilder.java | 119 +- .../google/container/v1/cluster_service.proto | 130 +- .../SyncCreateSetCredentialsProvider1.java | 40 + .../SyncListOperationsString.java | 41 + .../updatenodepool/AsyncUpdateNodePool.java | 4 + .../updatenodepool/SyncUpdateNodePool.java | 4 + java-dialogflow-cx/README.md | 2 +- .../cx/v3beta1/stub/ExamplesStubSettings.java | 46 +- .../v3beta1/stub/PlaybooksStubSettings.java | 62 +- .../cx/v3beta1/stub/ToolsStubSettings.java | 53 +- .../reflect-config.json | 54 +- .../cx/v3beta1/AgentsClientHttpJsonTest.java | 21 - .../cx/v3beta1/AgentsClientTest.java | 15 - .../v3beta1/PlaybooksClientHttpJsonTest.java | 14 +- .../cx/v3beta1/PlaybooksClientTest.java | 10 +- .../cx/v3beta1/ToolsClientHttpJsonTest.java | 14 - .../cx/v3beta1/ToolsClientTest.java | 10 - .../cx/v3beta1/ActionParameterOrBuilder.java | 86 - .../cx/v3beta1/AdvancedSettings.java | 635 +- .../cx/v3beta1/AdvancedSettingsProto.java | 31 +- .../cloud/dialogflow/cx/v3beta1/Agent.java | 538 +- .../dialogflow/cx/v3beta1/AgentOrBuilder.java | 86 +- .../dialogflow/cx/v3beta1/AgentProto.java | 341 +- .../dialogflow/cx/v3beta1/ExampleProto.java | 183 +- .../dialogflow/cx/v3beta1/FlowInvocation.java | 1109 +-- .../cx/v3beta1/FlowInvocationOrBuilder.java | 91 +- .../cloud/dialogflow/cx/v3beta1/Match.java | 24 + .../cloud/dialogflow/cx/v3beta1/Playbook.java | 1586 +++- .../dialogflow/cx/v3beta1/PlaybookInput.java | 549 +- .../cx/v3beta1/PlaybookInputOrBuilder.java | 46 +- .../cx/v3beta1/PlaybookOrBuilder.java | 44 +- .../dialogflow/cx/v3beta1/PlaybookOutput.java | 549 +- .../cx/v3beta1/PlaybookOutputOrBuilder.java | 46 +- .../dialogflow/cx/v3beta1/PlaybookProto.java | 224 +- .../cx/v3beta1/ResponseMessage.java | 319 +- .../cx/v3beta1/ResponseMessageOrBuilder.java | 38 + .../cx/v3beta1/ResponseMessageProto.java | 102 +- .../cx/v3beta1/SecuritySettings.java | 111 + .../cx/v3beta1/SecuritySettingsProto.java | 139 +- .../dialogflow/cx/v3beta1/SessionProto.java | 185 +- .../cloud/dialogflow/cx/v3beta1/Tool.java | 642 +- .../cloud/dialogflow/cx/v3beta1/ToolCall.java | 1127 +++ .../cx/v3beta1/ToolCallOrBuilder.java | 122 + .../dialogflow/cx/v3beta1/ToolCallProto.java | 44 +- .../dialogflow/cx/v3beta1/ToolOrBuilder.java | 126 - .../dialogflow/cx/v3beta1/ToolProto.java | 195 +- .../cloud/dialogflow/cx/v3beta1/ToolUse.java | 1092 +-- .../cx/v3beta1/ToolUseOrBuilder.java | 91 +- .../cx/v3beta1/advanced_settings.proto | 6 + .../cloud/dialogflow/cx/v3beta1/agent.proto | 45 +- .../cloud/dialogflow/cx/v3beta1/example.proto | 37 +- .../dialogflow/cx/v3beta1/playbook.proto | 12 +- .../cx/v3beta1/response_message.proto | 5 + .../cx/v3beta1/security_settings.proto | 4 + .../cloud/dialogflow/cx/v3beta1/session.proto | 4 + .../cloud/dialogflow/cx/v3beta1/tool.proto | 6 - .../dialogflow/cx/v3beta1/tool_call.proto | 16 + java-redis-cluster/README.md | 2 +- .../cluster/v1/CloudRedisClusterClient.java | 141 + .../cluster/v1/CloudRedisClusterSettings.java | 13 + .../redis/cluster/v1/gapic_metadata.json | 3 + .../v1/stub/CloudRedisClusterStub.java | 8 + .../stub/CloudRedisClusterStubSettings.java | 31 + .../v1/stub/GrpcCloudRedisClusterStub.java | 39 + .../stub/HttpJsonCloudRedisClusterStub.java | 66 + .../v1beta1/CloudRedisClusterClient.java | 141 + .../v1beta1/CloudRedisClusterSettings.java | 13 + .../redis/cluster/v1beta1/gapic_metadata.json | 3 + .../v1beta1/stub/CloudRedisClusterStub.java | 8 + .../stub/CloudRedisClusterStubSettings.java | 31 + .../stub/GrpcCloudRedisClusterStub.java | 39 + .../stub/HttpJsonCloudRedisClusterStub.java | 66 + .../reflect-config.json | 189 + .../reflect-config.json | 189 + .../CloudRedisClusterClientHttpJsonTest.java | 134 + .../v1/CloudRedisClusterClientTest.java | 110 + .../cluster/v1/MockCloudRedisClusterImpl.java | 22 + .../CloudRedisClusterClientHttpJsonTest.java | 134 + .../v1beta1/CloudRedisClusterClientTest.java | 110 + .../v1beta1/MockCloudRedisClusterImpl.java | 22 + .../cluster/v1/CloudRedisClusterGrpc.java | 129 + .../v1beta1/CloudRedisClusterGrpc.java | 134 + .../cluster/v1/CertificateAuthority.java | 3005 ++++++ .../cluster/v1/CertificateAuthorityName.java | 225 + .../v1/CertificateAuthorityOrBuilder.java | 82 + .../cluster/v1/CloudRedisClusterProto.java | 364 +- .../cloud/redis/cluster/v1/Cluster.java | 1440 ++- .../redis/cluster/v1/ClusterOrBuilder.java | 241 +- .../cluster/v1/ClusterPersistenceConfig.java | 3505 +++++++ .../v1/ClusterPersistenceConfigOrBuilder.java | 139 + ...GetClusterCertificateAuthorityRequest.java | 673 ++ ...rCertificateAuthorityRequestOrBuilder.java | 59 + .../cloud/redis/cluster/v1/NodeType.java | 207 + .../cluster/v1/TransitEncryptionMode.java | 2 +- .../cluster/v1/ZoneDistributionConfig.java | 992 ++ .../v1/ZoneDistributionConfigOrBuilder.java | 86 + .../cluster/v1/cloud_redis_cluster.proto | 209 +- .../cluster/v1beta1/CertificateAuthority.java | 3038 ++++++ .../v1beta1/CertificateAuthorityName.java | 225 + .../CertificateAuthorityOrBuilder.java | 82 + .../v1beta1/CloudRedisClusterProto.java | 371 +- .../cloud/redis/cluster/v1beta1/Cluster.java | 1444 ++- .../cluster/v1beta1/ClusterOrBuilder.java | 241 +- .../v1beta1/ClusterPersistenceConfig.java | 3552 +++++++ .../ClusterPersistenceConfigOrBuilder.java | 139 + ...GetClusterCertificateAuthorityRequest.java | 681 ++ ...rCertificateAuthorityRequestOrBuilder.java | 59 + .../cloud/redis/cluster/v1beta1/NodeType.java | 207 + .../v1beta1/TransitEncryptionMode.java | 2 +- .../v1beta1/ZoneDistributionConfig.java | 1000 ++ .../ZoneDistributionConfigOrBuilder.java | 86 + .../cluster/v1beta1/cloud_redis_cluster.proto | 210 +- .../AsyncGetClusterCertificateAuthority.java | 51 + .../SyncGetClusterCertificateAuthority.java | 48 + ...cateAuthorityCertificateauthorityname.java | 43 + ...cGetClusterCertificateAuthorityString.java | 42 + .../AsyncGetClusterCertificateAuthority.java | 51 + .../SyncGetClusterCertificateAuthority.java | 48 + ...cateAuthorityCertificateauthorityname.java | 43 + ...cGetClusterCertificateAuthorityString.java | 42 + java-retail/README.md | 2 +- java-retail/google-cloud-retail/pom.xml | 5 + .../retail/v2/CompletionServiceClient.java | 3 + .../cloud/retail/v2/ProductServiceClient.java | 222 +- .../retail/v2/ProductServiceSettings.java | 23 + .../cloud/retail/v2/gapic_metadata.json | 3 + .../google/cloud/retail/v2/package-info.java | 3 +- .../v2/stub/AnalyticsServiceStubSettings.java | 12 +- .../v2/stub/GrpcProductServiceStub.java | 47 + .../stub/HttpJsonCompletionServiceStub.java | 4 + .../v2/stub/HttpJsonProductServiceStub.java | 91 +- .../v2/stub/ModelServiceStubSettings.java | 44 +- .../retail/v2/stub/ProductServiceStub.java | 12 + .../v2/stub/ProductServiceStubSettings.java | 147 +- .../v2/stub/UserEventServiceStubSettings.java | 50 +- .../retail/v2alpha/BranchServiceClient.java | 468 + .../retail/v2alpha/BranchServiceSettings.java | 213 + ...erchantCenterAccountLinkServiceClient.java | 12 +- .../retail/v2alpha/ProductServiceClient.java | 74 +- .../retail/v2alpha/ProjectServiceClient.java | 1254 +++ .../v2alpha/ProjectServiceSettings.java | 295 + .../cloud/retail/v2alpha/gapic_metadata.json | 48 + .../cloud/retail/v2alpha/package-info.java | 43 +- .../stub/AnalyticsServiceStubSettings.java | 12 +- .../v2alpha/stub/BranchServiceStub.java | 48 + .../stub/BranchServiceStubSettings.java | 356 + .../GrpcBranchServiceCallableFactory.java | 115 + .../v2alpha/stub/GrpcBranchServiceStub.java | 191 + .../GrpcProjectServiceCallableFactory.java | 115 + .../v2alpha/stub/GrpcProjectServiceStub.java | 408 + .../HttpJsonBranchServiceCallableFactory.java | 103 + .../stub/HttpJsonBranchServiceStub.java | 257 + ...HttpJsonProjectServiceCallableFactory.java | 103 + .../stub/HttpJsonProjectServiceStub.java | 705 ++ .../stub/ModelServiceStubSettings.java | 44 +- .../stub/ProductServiceStubSettings.java | 84 +- .../v2alpha/stub/ProjectServiceStub.java | 99 + .../stub/ProjectServiceStubSettings.java | 565 ++ .../stub/UserEventServiceStubSettings.java | 50 +- .../v2beta/CompletionServiceClient.java | 3 + .../retail/v2beta/ProductServiceClient.java | 222 +- .../retail/v2beta/ProductServiceSettings.java | 23 + .../cloud/retail/v2beta/gapic_metadata.json | 3 + .../cloud/retail/v2beta/package-info.java | 3 +- .../stub/AnalyticsServiceStubSettings.java | 12 +- .../v2beta/stub/GrpcProductServiceStub.java | 47 + .../stub/HttpJsonCompletionServiceStub.java | 4 + .../stub/HttpJsonProductServiceStub.java | 83 +- .../v2beta/stub/ModelServiceStubSettings.java | 44 +- .../v2beta/stub/ProductServiceStub.java | 12 + .../stub/ProductServiceStubSettings.java | 147 +- .../stub/UserEventServiceStubSettings.java | 50 +- .../reflect-config.json | 243 + .../reflect-config.json | 1051 ++- .../reflect-config.json | 243 + .../CompletionServiceClientHttpJsonTest.java | 2 + .../v2/CompletionServiceClientTest.java | 4 + .../retail/v2/MockProductServiceImpl.java | 21 + .../v2/ModelServiceClientHttpJsonTest.java | 10 + .../retail/v2/ModelServiceClientTest.java | 8 + .../v2/ProductServiceClientHttpJsonTest.java | 61 + .../retail/v2/ProductServiceClientTest.java | 60 + ...ervingConfigServiceClientHttpJsonTest.java | 11 + .../v2/ServingConfigServiceClientTest.java | 9 + .../v2alpha/AnalyticsServiceClientTest.java | 5 +- .../BranchServiceClientHttpJsonTest.java | 259 + .../v2alpha/BranchServiceClientTest.java | 240 + .../v2alpha/CatalogServiceClientTest.java | 5 +- .../v2alpha/CompletionServiceClientTest.java | 5 +- .../v2alpha/ControlServiceClientTest.java | 5 +- ...rAccountLinkServiceClientHttpJsonTest.java | 2 + ...antCenterAccountLinkServiceClientTest.java | 6 +- .../retail/v2alpha/MockBranchService.java | 59 + .../retail/v2alpha/MockBranchServiceImpl.java | 101 + .../cloud/retail/v2alpha/MockLocations.java | 59 + .../retail/v2alpha/MockLocationsImpl.java | 59 + .../retail/v2alpha/MockProjectService.java | 59 + .../v2alpha/MockProjectServiceImpl.java | 228 + .../ModelServiceClientHttpJsonTest.java | 10 + .../v2alpha/ModelServiceClientTest.java | 13 +- .../v2alpha/PredictionServiceClientTest.java | 5 +- .../v2alpha/ProductServiceClientTest.java | 5 +- .../ProjectServiceClientHttpJsonTest.java | 701 ++ .../v2alpha/ProjectServiceClientTest.java | 619 ++ .../v2alpha/SearchServiceClientTest.java | 5 +- ...ervingConfigServiceClientHttpJsonTest.java | 11 + .../ServingConfigServiceClientTest.java | 14 +- .../v2alpha/UserEventServiceClientTest.java | 5 +- .../CompletionServiceClientHttpJsonTest.java | 2 + .../v2beta/CompletionServiceClientTest.java | 4 + .../retail/v2beta/MockProductServiceImpl.java | 21 + .../ModelServiceClientHttpJsonTest.java | 10 + .../retail/v2beta/ModelServiceClientTest.java | 8 + .../ProductServiceClientHttpJsonTest.java | 61 + .../v2beta/ProductServiceClientTest.java | 60 + ...ervingConfigServiceClientHttpJsonTest.java | 11 + .../ServingConfigServiceClientTest.java | 9 + .../cloud/retail/v2/ProductServiceGrpc.java | 235 +- .../retail/v2alpha/BranchServiceGrpc.java | 523 ++ .../retail/v2alpha/ProductServiceGrpc.java | 56 +- .../retail/v2alpha/ProjectServiceGrpc.java | 1259 +++ .../retail/v2beta/ProductServiceGrpc.java | 236 +- .../cloud/retail/v2/CatalogAttribute.java | 8143 +++++++++++++++- .../retail/v2/CatalogAttributeOrBuilder.java | 51 +- .../google/cloud/retail/v2/CatalogProto.java | 240 +- .../google/cloud/retail/v2/CommonProto.java | 227 +- .../cloud/retail/v2/CompleteQueryRequest.java | 153 +- .../v2/CompleteQueryRequestOrBuilder.java | 27 +- .../retail/v2/CompleteQueryResponse.java | 213 +- .../v2/CompleteQueryResponseOrBuilder.java | 45 +- .../cloud/retail/v2/CompletionConfig.java | 28 +- .../retail/v2/CompletionConfigOrBuilder.java | 8 +- .../retail/v2/CompletionServiceProto.java | 72 +- .../com/google/cloud/retail/v2/Condition.java | 316 + .../cloud/retail/v2/ConditionOrBuilder.java | 63 + .../cloud/retail/v2/CustomAttribute.java | 24 +- .../retail/v2/CustomAttributeOrBuilder.java | 8 +- .../cloud/retail/v2/ExperimentInfo.java | 40 +- .../cloud/retail/v2/ImportMetadata.java | 14 +- .../retail/v2/ImportMetadataOrBuilder.java | 4 +- .../retail/v2/ImportProductsRequest.java | 113 +- .../v2/ImportProductsRequestOrBuilder.java | 31 +- .../com/google/cloud/retail/v2/Model.java | 2210 ++++- .../cloud/retail/v2/ModelOrBuilder.java | 41 + .../google/cloud/retail/v2/ModelProto.java | 77 +- .../com/google/cloud/retail/v2/Product.java | 562 +- .../cloud/retail/v2/ProductOrBuilder.java | 153 +- .../cloud/retail/v2/ProductServiceProto.java | 284 +- .../com/google/cloud/retail/v2/Promotion.java | 28 +- .../cloud/retail/v2/PromotionOrBuilder.java | 8 +- .../cloud/retail/v2/PurgeConfigProto.java | 73 +- .../retail/v2/PurgeProductsMetadata.java | 1181 +++ .../v2/PurgeProductsMetadataOrBuilder.java | 125 + .../cloud/retail/v2/PurgeProductsRequest.java | 1202 +++ .../v2/PurgeProductsRequestOrBuilder.java | 175 + .../retail/v2/PurgeProductsResponse.java | 843 ++ .../v2/PurgeProductsResponseOrBuilder.java | 98 + .../java/com/google/cloud/retail/v2/Rule.java | 5823 +++++++++--- .../google/cloud/retail/v2/RuleOrBuilder.java | 74 + .../google/cloud/retail/v2/SearchRequest.java | 828 +- .../retail/v2/SearchRequestOrBuilder.java | 118 +- .../google/cloud/retail/v2/ServingConfig.java | 127 +- .../retail/v2/ServingConfigOrBuilder.java | 14 + .../cloud/retail/v2/ServingConfigProto.java | 36 +- .../com/google/cloud/retail/v2/UserEvent.java | 35 +- .../cloud/retail/v2/UserEventOrBuilder.java | 10 +- .../google/cloud/retail/v2/catalog.proto | 133 +- .../proto/google/cloud/retail/v2/common.proto | 105 +- .../cloud/retail/v2/completion_service.proto | 23 +- .../cloud/retail/v2/import_config.proto | 14 +- .../proto/google/cloud/retail/v2/model.proto | 39 + .../google/cloud/retail/v2/product.proto | 45 +- .../cloud/retail/v2/product_service.proto | 44 +- .../google/cloud/retail/v2/promotion.proto | 4 +- .../google/cloud/retail/v2/purge_config.proto | 90 + .../cloud/retail/v2/search_service.proto | 84 +- .../cloud/retail/v2/serving_config.proto | 4 + .../google/cloud/retail/v2/user_event.proto | 5 +- .../retail/v2alpha/AcceptTermsRequest.java | 646 ++ .../v2alpha/AcceptTermsRequestOrBuilder.java | 57 + .../cloud/retail/v2alpha/AlertConfig.java | 3516 +++++++ .../cloud/retail/v2alpha/AlertConfigName.java | 168 + .../retail/v2alpha/AlertConfigOrBuilder.java | 115 + .../google/cloud/retail/v2alpha/Branch.java | 6965 ++++++++++++++ .../cloud/retail/v2alpha/BranchOrBuilder.java | 316 + .../cloud/retail/v2alpha/BranchProto.java | 161 + .../retail/v2alpha/BranchServiceProto.java | 137 + .../cloud/retail/v2alpha/BranchView.java | 182 + .../google/cloud/retail/v2alpha/Catalog.java | 48 +- .../retail/v2alpha/CatalogAttribute.java | 8239 ++++++++++++++++- .../v2alpha/CatalogAttributeOrBuilder.java | 51 +- .../retail/v2alpha/CatalogOrBuilder.java | 12 +- .../cloud/retail/v2alpha/CatalogProto.java | 279 +- .../cloud/retail/v2alpha/CommonProto.java | 232 +- .../retail/v2alpha/CompleteQueryRequest.java | 42 +- .../CompleteQueryRequestOrBuilder.java | 12 +- .../retail/v2alpha/CompleteQueryResponse.java | 350 +- .../CompleteQueryResponseOrBuilder.java | 45 +- .../retail/v2alpha/CompletionConfig.java | 28 +- .../v2alpha/CompletionConfigOrBuilder.java | 8 +- .../v2alpha/CompletionServiceProto.java | 80 +- .../cloud/retail/v2alpha/Condition.java | 316 + .../retail/v2alpha/ConditionOrBuilder.java | 63 + ...reateMerchantCenterAccountLinkRequest.java | 14 +- ...hantCenterAccountLinkRequestOrBuilder.java | 4 +- .../cloud/retail/v2alpha/CustomAttribute.java | 24 +- .../v2alpha/CustomAttributeOrBuilder.java | 8 +- ...eleteMerchantCenterAccountLinkRequest.java | 14 +- ...hantCenterAccountLinkRequestOrBuilder.java | 4 +- .../v2alpha/EnrollSolutionMetadata.java | 435 + .../EnrollSolutionMetadataOrBuilder.java | 25 + .../retail/v2alpha/EnrollSolutionRequest.java | 811 ++ .../EnrollSolutionRequestOrBuilder.java | 86 + .../v2alpha/EnrollSolutionResponse.java | 594 ++ .../EnrollSolutionResponseOrBuilder.java | 51 + .../cloud/retail/v2alpha/ExperimentInfo.java | 42 +- .../retail/v2alpha/GetAlertConfigRequest.java | 651 ++ .../GetAlertConfigRequestOrBuilder.java | 57 + .../retail/v2alpha/GetBranchRequest.java | 510 +- .../v2alpha/GetBranchRequestOrBuilder.java | 98 + .../v2alpha/GetLoggingConfigRequest.java | 651 ++ .../GetLoggingConfigRequestOrBuilder.java | 57 + .../retail/v2alpha/GetProjectRequest.java | 646 ++ .../v2alpha/GetProjectRequestOrBuilder.java | 57 + .../cloud/retail/v2alpha/ImportMetadata.java | 14 +- .../v2alpha/ImportMetadataOrBuilder.java | 4 +- .../retail/v2alpha/ImportProductsRequest.java | 113 +- .../ImportProductsRequestOrBuilder.java | 31 +- .../retail/v2alpha/ListBranchesRequest.java | 819 ++ .../v2alpha/ListBranchesRequestOrBuilder.java | 88 + .../retail/v2alpha/ListBranchesResponse.java | 939 ++ .../ListBranchesResponseOrBuilder.java | 78 + .../v2alpha/ListEnrolledSolutionsRequest.java | 651 ++ ...ListEnrolledSolutionsRequestOrBuilder.java | 57 + .../ListEnrolledSolutionsResponse.java | 839 ++ ...istEnrolledSolutionsResponseOrBuilder.java | 89 + ...ListMerchantCenterAccountLinksRequest.java | 14 +- ...antCenterAccountLinksRequestOrBuilder.java | 4 +- .../cloud/retail/v2alpha/LoggingConfig.java | 3897 ++++++++ .../retail/v2alpha/LoggingConfigName.java | 168 + .../v2alpha/LoggingConfigOrBuilder.java | 204 + .../v2alpha/MerchantCenterAccountLink.java | 239 +- .../MerchantCenterAccountLinkOrBuilder.java | 39 +- .../MerchantCenterAccountLinkProto.java | 40 +- .../retail/v2alpha/MerchantCenterLink.java | 30 +- .../v2alpha/MerchantCenterLinkOrBuilder.java | 6 +- .../google/cloud/retail/v2alpha/Model.java | 2285 ++++- .../cloud/retail/v2alpha/ModelOrBuilder.java | 42 + .../cloud/retail/v2alpha/ModelProto.java | 116 +- .../google/cloud/retail/v2alpha/Product.java | 574 +- .../retail/v2alpha/ProductOrBuilder.java | 156 +- .../cloud/retail/v2alpha/ProductProto.java | 8 +- .../google/cloud/retail/v2alpha/Project.java | 1054 +++ .../cloud/retail/v2alpha/ProjectName.java | 168 + .../retail/v2alpha/ProjectOrBuilder.java | 126 + .../cloud/retail/v2alpha/ProjectProto.java | 198 + .../retail/v2alpha/ProjectServiceProto.java | 292 + .../cloud/retail/v2alpha/Promotion.java | 28 +- .../retail/v2alpha/PromotionOrBuilder.java | 8 +- .../retail/v2alpha/RetailProjectName.java | 168 + .../com/google/cloud/retail/v2alpha/Rule.java | 5983 +++++++++--- .../cloud/retail/v2alpha/RuleOrBuilder.java | 74 + .../cloud/retail/v2alpha/SearchRequest.java | 845 +- .../v2alpha/SearchRequestOrBuilder.java | 124 +- .../cloud/retail/v2alpha/ServingConfig.java | 127 +- .../v2alpha/ServingConfigOrBuilder.java | 14 + .../retail/v2alpha/ServingConfigProto.java | 38 +- .../v2alpha/UpdateAlertConfigRequest.java | 1136 +++ .../UpdateAlertConfigRequestOrBuilder.java | 132 + .../v2alpha/UpdateLoggingConfigRequest.java | 1197 +++ .../UpdateLoggingConfigRequestOrBuilder.java | 147 + .../cloud/retail/v2alpha/UserEvent.java | 35 +- .../retail/v2alpha/UserEventOrBuilder.java | 10 +- .../google/cloud/retail/v2alpha/branch.proto | 245 + .../cloud/retail/v2alpha/branch_service.proto | 111 + .../google/cloud/retail/v2alpha/catalog.proto | 146 +- .../google/cloud/retail/v2alpha/common.proto | 105 +- .../retail/v2alpha/completion_service.proto | 27 +- .../cloud/retail/v2alpha/import_config.proto | 14 +- .../merchant_center_account_link.proto | 14 +- ...merchant_center_account_link_service.proto | 6 +- .../google/cloud/retail/v2alpha/model.proto | 39 + .../google/cloud/retail/v2alpha/product.proto | 50 +- .../retail/v2alpha/product_service.proto | 14 +- .../google/cloud/retail/v2alpha/project.proto | 188 + .../retail/v2alpha/project_service.proto | 273 + .../cloud/retail/v2alpha/promotion.proto | 4 +- .../cloud/retail/v2alpha/search_service.proto | 88 +- .../cloud/retail/v2alpha/serving_config.proto | 4 + .../cloud/retail/v2alpha/user_event.proto | 5 +- .../google/cloud/retail/v2beta/Catalog.java | 48 +- .../cloud/retail/v2beta/CatalogAttribute.java | 8231 +++++++++++++++- .../v2beta/CatalogAttributeOrBuilder.java | 51 +- .../cloud/retail/v2beta/CatalogOrBuilder.java | 12 +- .../cloud/retail/v2beta/CatalogProto.java | 277 +- .../cloud/retail/v2beta/CommonProto.java | 231 +- .../retail/v2beta/CompleteQueryRequest.java | 153 +- .../v2beta/CompleteQueryRequestOrBuilder.java | 27 +- .../retail/v2beta/CompleteQueryResponse.java | 213 +- .../CompleteQueryResponseOrBuilder.java | 45 +- .../cloud/retail/v2beta/CompletionConfig.java | 28 +- .../v2beta/CompletionConfigOrBuilder.java | 8 +- .../retail/v2beta/CompletionServiceProto.java | 74 +- .../google/cloud/retail/v2beta/Condition.java | 316 + .../retail/v2beta/ConditionOrBuilder.java | 63 + .../cloud/retail/v2beta/CustomAttribute.java | 24 +- .../v2beta/CustomAttributeOrBuilder.java | 8 +- .../cloud/retail/v2beta/ExperimentInfo.java | 40 +- .../cloud/retail/v2beta/ImportMetadata.java | 14 +- .../v2beta/ImportMetadataOrBuilder.java | 4 +- .../retail/v2beta/ImportProductsRequest.java | 113 +- .../ImportProductsRequestOrBuilder.java | 31 +- .../retail/v2beta/MerchantCenterLink.java | 30 +- .../v2beta/MerchantCenterLinkOrBuilder.java | 6 +- .../com/google/cloud/retail/v2beta/Model.java | 2224 ++++- .../cloud/retail/v2beta/ModelOrBuilder.java | 42 + .../cloud/retail/v2beta/ModelProto.java | 78 +- .../google/cloud/retail/v2beta/Product.java | 566 +- .../cloud/retail/v2beta/ProductOrBuilder.java | 152 +- .../retail/v2beta/ProductServiceProto.java | 289 +- .../google/cloud/retail/v2beta/Promotion.java | 28 +- .../retail/v2beta/PromotionOrBuilder.java | 8 +- .../cloud/retail/v2beta/PurgeConfigProto.java | 75 +- .../retail/v2beta/PurgeProductsMetadata.java | 1181 +++ .../PurgeProductsMetadataOrBuilder.java | 125 + .../retail/v2beta/PurgeProductsRequest.java | 1209 +++ .../v2beta/PurgeProductsRequestOrBuilder.java | 177 + .../retail/v2beta/PurgeProductsResponse.java | 843 ++ .../PurgeProductsResponseOrBuilder.java | 98 + .../com/google/cloud/retail/v2beta/Rule.java | 5991 +++++++++--- .../cloud/retail/v2beta/RuleOrBuilder.java | 74 + .../cloud/retail/v2beta/SearchRequest.java | 802 +- .../retail/v2beta/SearchRequestOrBuilder.java | 110 +- .../cloud/retail/v2beta/ServingConfig.java | 127 +- .../retail/v2beta/ServingConfigOrBuilder.java | 14 + .../retail/v2beta/ServingConfigProto.java | 37 +- .../google/cloud/retail/v2beta/UserEvent.java | 35 +- .../retail/v2beta/UserEventOrBuilder.java | 10 +- .../google/cloud/retail/v2beta/catalog.proto | 146 +- .../google/cloud/retail/v2beta/common.proto | 105 +- .../retail/v2beta/completion_service.proto | 23 +- .../cloud/retail/v2beta/import_config.proto | 14 +- .../google/cloud/retail/v2beta/model.proto | 39 + .../google/cloud/retail/v2beta/product.proto | 46 +- .../cloud/retail/v2beta/product_service.proto | 44 +- .../cloud/retail/v2beta/promotion.proto | 4 +- .../cloud/retail/v2beta/purge_config.proto | 91 + .../cloud/retail/v2beta/search_service.proto | 82 +- .../cloud/retail/v2beta/serving_config.proto | 4 + .../cloud/retail/v2beta/user_event.proto | 5 +- .../completequery/AsyncCompleteQuery.java | 1 + .../completequery/SyncCompleteQuery.java | 1 + .../purgeproducts/AsyncPurgeProducts.java | 53 + .../purgeproducts/AsyncPurgeProductsLRO.java | 54 + .../purgeproducts/SyncPurgeProducts.java | 49 + .../SyncCreateSetCredentialsProvider.java | 44 + .../SyncCreateSetCredentialsProvider1.java | 40 + .../create/SyncCreateSetEndpoint.java | 41 + .../getbranch/AsyncGetBranch.java | 51 + .../getbranch/SyncGetBranch.java | 48 + .../getbranch/SyncGetBranchBranchname.java | 42 + .../getbranch/SyncGetBranchString.java | 42 + .../listbranches/AsyncListBranches.java | 52 + .../listbranches/SyncListBranches.java | 48 + .../SyncListBranchesCatalogname.java | 42 + .../listbranches/SyncListBranchesString.java | 42 + .../listbranches/SyncListBranches.java | 48 + .../acceptterms/AsyncAcceptTerms.java | 49 + .../acceptterms/SyncAcceptTerms.java | 46 + .../SyncAcceptTermsRetailprojectname.java | 42 + .../acceptterms/SyncAcceptTermsString.java | 42 + .../SyncCreateSetCredentialsProvider.java | 44 + .../SyncCreateSetCredentialsProvider1.java | 40 + .../create/SyncCreateSetEndpoint.java | 41 + .../enrollsolution/AsyncEnrollSolution.java | 52 + .../AsyncEnrollSolutionLRO.java | 53 + .../enrollsolution/SyncEnrollSolution.java | 48 + .../getalertconfig/AsyncGetAlertConfig.java | 50 + .../getalertconfig/SyncGetAlertConfig.java | 46 + .../SyncGetAlertConfigAlertconfigname.java | 42 + .../SyncGetAlertConfigString.java | 42 + .../AsyncGetLoggingConfig.java | 50 + .../SyncGetLoggingConfig.java | 46 + ...SyncGetLoggingConfigLoggingconfigname.java | 42 + .../SyncGetLoggingConfigString.java | 42 + .../getproject/AsyncGetProject.java | 49 + .../getproject/SyncGetProject.java | 46 + .../SyncGetProjectRetailprojectname.java | 42 + .../getproject/SyncGetProjectString.java | 42 + .../AsyncListEnrolledSolutions.java | 50 + .../SyncListEnrolledSolutions.java | 46 + .../SyncListEnrolledSolutionsProjectname.java | 42 + .../SyncListEnrolledSolutionsString.java | 42 + .../AsyncUpdateAlertConfig.java | 51 + .../SyncUpdateAlertConfig.java | 47 + ...UpdateAlertConfigAlertconfigFieldmask.java | 43 + .../AsyncUpdateLoggingConfig.java | 51 + .../SyncUpdateLoggingConfig.java | 47 + ...teLoggingConfigLoggingconfigFieldmask.java | 43 + .../getproject/SyncGetProject.java | 49 + .../listbranches/SyncListBranches.java | 49 + .../getproject/SyncGetProject.java | 49 + .../completequery/AsyncCompleteQuery.java | 1 + .../completequery/SyncCompleteQuery.java | 1 + .../purgeproducts/AsyncPurgeProducts.java | 53 + .../purgeproducts/AsyncPurgeProductsLRO.java | 54 + .../purgeproducts/SyncPurgeProducts.java | 49 + java-securitycentermanagement/README.md | 2 +- .../UpdateSecurityCenterServiceRequest.java | 48 +- ...SecurityCenterServiceRequestOrBuilder.java | 12 +- .../v1/security_center_management.proto | 12 +- java-shopping-merchant-accounts/README.md | 2 +- .../accounts/v1beta/UserServiceClient.java | 4 +- .../accounts/v1beta/BusinessInfo.java | 57 +- .../v1beta/BusinessInfoOrBuilder.java | 12 +- .../accounts/v1beta/BusinessInfoProto.java | 2 +- .../accounts/v1beta/ListUsersRequest.java | 14 +- .../v1beta/ListUsersRequestOrBuilder.java | 4 +- .../accounts/v1beta/businessinfo.proto | 4 +- .../merchant/accounts/v1beta/user.proto | 2 +- java-shopping-merchant-datasources/README.md | 2 +- .../datasources/v1beta/DataSourcesProto.java | 18 +- .../v1beta/DatasourcetypesProto.java | 7 +- .../datasources/v1beta/FileInputsProto.java | 11 +- .../datasources/v1beta/datasources.proto | 3 + .../datasources/v1beta/datasourcetypes.proto | 3 + .../datasources/v1beta/fileinputs.proto | 3 + 646 files changed, 157248 insertions(+), 17887 deletions(-) create mode 100644 java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/HttpJsonClusterManagerCallableFactory.java create mode 100644 java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/HttpJsonClusterManagerStub.java create mode 100644 java-container/google-cloud-container/src/test/java/com/google/cloud/container/v1/ClusterManagerClientHttpJsonTest.java create mode 100644 java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ContainerdConfig.java create mode 100644 java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ContainerdConfigOrBuilder.java create mode 100644 java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/create/SyncCreateSetCredentialsProvider1.java create mode 100644 java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listoperations/SyncListOperationsString.java delete mode 100644 java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ActionParameterOrBuilder.java create mode 100644 java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolCall.java create mode 100644 java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolCallOrBuilder.java create mode 100644 java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CertificateAuthority.java create mode 100644 java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CertificateAuthorityName.java create mode 100644 java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CertificateAuthorityOrBuilder.java create mode 100644 java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterPersistenceConfig.java create mode 100644 java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterPersistenceConfigOrBuilder.java create mode 100644 java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/GetClusterCertificateAuthorityRequest.java create mode 100644 java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/GetClusterCertificateAuthorityRequestOrBuilder.java create mode 100644 java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/NodeType.java create mode 100644 java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ZoneDistributionConfig.java create mode 100644 java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ZoneDistributionConfigOrBuilder.java create mode 100644 java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CertificateAuthority.java create mode 100644 java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CertificateAuthorityName.java create mode 100644 java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CertificateAuthorityOrBuilder.java create mode 100644 java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterPersistenceConfig.java create mode 100644 java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterPersistenceConfigOrBuilder.java create mode 100644 java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/GetClusterCertificateAuthorityRequest.java create mode 100644 java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/GetClusterCertificateAuthorityRequestOrBuilder.java create mode 100644 java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/NodeType.java create mode 100644 java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ZoneDistributionConfig.java create mode 100644 java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ZoneDistributionConfigOrBuilder.java create mode 100644 java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getclustercertificateauthority/AsyncGetClusterCertificateAuthority.java create mode 100644 java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getclustercertificateauthority/SyncGetClusterCertificateAuthority.java create mode 100644 java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getclustercertificateauthority/SyncGetClusterCertificateAuthorityCertificateauthorityname.java create mode 100644 java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getclustercertificateauthority/SyncGetClusterCertificateAuthorityString.java create mode 100644 java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getclustercertificateauthority/AsyncGetClusterCertificateAuthority.java create mode 100644 java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getclustercertificateauthority/SyncGetClusterCertificateAuthority.java create mode 100644 java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getclustercertificateauthority/SyncGetClusterCertificateAuthorityCertificateauthorityname.java create mode 100644 java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getclustercertificateauthority/SyncGetClusterCertificateAuthorityString.java create mode 100644 java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/BranchServiceClient.java create mode 100644 java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/BranchServiceSettings.java create mode 100644 java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ProjectServiceClient.java create mode 100644 java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ProjectServiceSettings.java create mode 100644 java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/BranchServiceStub.java create mode 100644 java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/BranchServiceStubSettings.java create mode 100644 java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/GrpcBranchServiceCallableFactory.java create mode 100644 java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/GrpcBranchServiceStub.java create mode 100644 java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/GrpcProjectServiceCallableFactory.java create mode 100644 java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/GrpcProjectServiceStub.java create mode 100644 java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/HttpJsonBranchServiceCallableFactory.java create mode 100644 java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/HttpJsonBranchServiceStub.java create mode 100644 java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/HttpJsonProjectServiceCallableFactory.java create mode 100644 java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/HttpJsonProjectServiceStub.java create mode 100644 java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ProjectServiceStub.java create mode 100644 java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ProjectServiceStubSettings.java create mode 100644 java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/BranchServiceClientHttpJsonTest.java create mode 100644 java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/BranchServiceClientTest.java create mode 100644 java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/MockBranchService.java create mode 100644 java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/MockBranchServiceImpl.java create mode 100644 java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/MockLocations.java create mode 100644 java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/MockLocationsImpl.java create mode 100644 java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/MockProjectService.java create mode 100644 java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/MockProjectServiceImpl.java create mode 100644 java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/ProjectServiceClientHttpJsonTest.java create mode 100644 java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/ProjectServiceClientTest.java create mode 100644 java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/BranchServiceGrpc.java create mode 100644 java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProjectServiceGrpc.java create mode 100644 java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PurgeProductsMetadata.java create mode 100644 java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PurgeProductsMetadataOrBuilder.java create mode 100644 java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PurgeProductsRequest.java create mode 100644 java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PurgeProductsRequestOrBuilder.java create mode 100644 java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PurgeProductsResponse.java create mode 100644 java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PurgeProductsResponseOrBuilder.java create mode 100644 java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/AcceptTermsRequest.java create mode 100644 java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/AcceptTermsRequestOrBuilder.java create mode 100644 java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/AlertConfig.java create mode 100644 java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/AlertConfigName.java create mode 100644 java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/AlertConfigOrBuilder.java create mode 100644 java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/Branch.java create mode 100644 java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/BranchOrBuilder.java create mode 100644 java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/BranchProto.java create mode 100644 java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/BranchServiceProto.java create mode 100644 java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/BranchView.java create mode 100644 java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/EnrollSolutionMetadata.java create mode 100644 java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/EnrollSolutionMetadataOrBuilder.java create mode 100644 java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/EnrollSolutionRequest.java create mode 100644 java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/EnrollSolutionRequestOrBuilder.java create mode 100644 java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/EnrollSolutionResponse.java create mode 100644 java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/EnrollSolutionResponseOrBuilder.java create mode 100644 java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/GetAlertConfigRequest.java create mode 100644 java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/GetAlertConfigRequestOrBuilder.java rename java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ActionParameter.java => java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/GetBranchRequest.java (54%) create mode 100644 java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/GetBranchRequestOrBuilder.java create mode 100644 java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/GetLoggingConfigRequest.java create mode 100644 java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/GetLoggingConfigRequestOrBuilder.java create mode 100644 java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/GetProjectRequest.java create mode 100644 java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/GetProjectRequestOrBuilder.java create mode 100644 java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ListBranchesRequest.java create mode 100644 java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ListBranchesRequestOrBuilder.java create mode 100644 java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ListBranchesResponse.java create mode 100644 java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ListBranchesResponseOrBuilder.java create mode 100644 java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ListEnrolledSolutionsRequest.java create mode 100644 java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ListEnrolledSolutionsRequestOrBuilder.java create mode 100644 java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ListEnrolledSolutionsResponse.java create mode 100644 java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ListEnrolledSolutionsResponseOrBuilder.java create mode 100644 java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/LoggingConfig.java create mode 100644 java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/LoggingConfigName.java create mode 100644 java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/LoggingConfigOrBuilder.java create mode 100644 java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/Project.java create mode 100644 java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProjectName.java create mode 100644 java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProjectOrBuilder.java create mode 100644 java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProjectProto.java create mode 100644 java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProjectServiceProto.java create mode 100644 java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/RetailProjectName.java create mode 100644 java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/UpdateAlertConfigRequest.java create mode 100644 java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/UpdateAlertConfigRequestOrBuilder.java create mode 100644 java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/UpdateLoggingConfigRequest.java create mode 100644 java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/UpdateLoggingConfigRequestOrBuilder.java create mode 100644 java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/branch.proto create mode 100644 java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/branch_service.proto create mode 100644 java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/project.proto create mode 100644 java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/project_service.proto create mode 100644 java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/PurgeProductsMetadata.java create mode 100644 java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/PurgeProductsMetadataOrBuilder.java create mode 100644 java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/PurgeProductsRequest.java create mode 100644 java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/PurgeProductsRequestOrBuilder.java create mode 100644 java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/PurgeProductsResponse.java create mode 100644 java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/PurgeProductsResponseOrBuilder.java create mode 100644 java-retail/samples/snippets/generated/com/google/cloud/retail/v2/productservice/purgeproducts/AsyncPurgeProducts.java create mode 100644 java-retail/samples/snippets/generated/com/google/cloud/retail/v2/productservice/purgeproducts/AsyncPurgeProductsLRO.java create mode 100644 java-retail/samples/snippets/generated/com/google/cloud/retail/v2/productservice/purgeproducts/SyncPurgeProducts.java create mode 100644 java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/branchservice/create/SyncCreateSetCredentialsProvider.java create mode 100644 java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/branchservice/create/SyncCreateSetCredentialsProvider1.java create mode 100644 java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/branchservice/create/SyncCreateSetEndpoint.java create mode 100644 java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/branchservice/getbranch/AsyncGetBranch.java create mode 100644 java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/branchservice/getbranch/SyncGetBranch.java create mode 100644 java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/branchservice/getbranch/SyncGetBranchBranchname.java create mode 100644 java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/branchservice/getbranch/SyncGetBranchString.java create mode 100644 java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/branchservice/listbranches/AsyncListBranches.java create mode 100644 java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/branchservice/listbranches/SyncListBranches.java create mode 100644 java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/branchservice/listbranches/SyncListBranchesCatalogname.java create mode 100644 java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/branchservice/listbranches/SyncListBranchesString.java create mode 100644 java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/branchservicesettings/listbranches/SyncListBranches.java create mode 100644 java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/acceptterms/AsyncAcceptTerms.java create mode 100644 java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/acceptterms/SyncAcceptTerms.java create mode 100644 java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/acceptterms/SyncAcceptTermsRetailprojectname.java create mode 100644 java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/acceptterms/SyncAcceptTermsString.java create mode 100644 java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/create/SyncCreateSetCredentialsProvider.java create mode 100644 java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/create/SyncCreateSetCredentialsProvider1.java create mode 100644 java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/create/SyncCreateSetEndpoint.java create mode 100644 java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/enrollsolution/AsyncEnrollSolution.java create mode 100644 java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/enrollsolution/AsyncEnrollSolutionLRO.java create mode 100644 java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/enrollsolution/SyncEnrollSolution.java create mode 100644 java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/getalertconfig/AsyncGetAlertConfig.java create mode 100644 java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/getalertconfig/SyncGetAlertConfig.java create mode 100644 java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/getalertconfig/SyncGetAlertConfigAlertconfigname.java create mode 100644 java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/getalertconfig/SyncGetAlertConfigString.java create mode 100644 java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/getloggingconfig/AsyncGetLoggingConfig.java create mode 100644 java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/getloggingconfig/SyncGetLoggingConfig.java create mode 100644 java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/getloggingconfig/SyncGetLoggingConfigLoggingconfigname.java create mode 100644 java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/getloggingconfig/SyncGetLoggingConfigString.java create mode 100644 java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/getproject/AsyncGetProject.java create mode 100644 java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/getproject/SyncGetProject.java create mode 100644 java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/getproject/SyncGetProjectRetailprojectname.java create mode 100644 java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/getproject/SyncGetProjectString.java create mode 100644 java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/listenrolledsolutions/AsyncListEnrolledSolutions.java create mode 100644 java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/listenrolledsolutions/SyncListEnrolledSolutions.java create mode 100644 java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/listenrolledsolutions/SyncListEnrolledSolutionsProjectname.java create mode 100644 java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/listenrolledsolutions/SyncListEnrolledSolutionsString.java create mode 100644 java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/updatealertconfig/AsyncUpdateAlertConfig.java create mode 100644 java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/updatealertconfig/SyncUpdateAlertConfig.java create mode 100644 java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/updatealertconfig/SyncUpdateAlertConfigAlertconfigFieldmask.java create mode 100644 java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/updateloggingconfig/AsyncUpdateLoggingConfig.java create mode 100644 java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/updateloggingconfig/SyncUpdateLoggingConfig.java create mode 100644 java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/updateloggingconfig/SyncUpdateLoggingConfigLoggingconfigFieldmask.java create mode 100644 java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservicesettings/getproject/SyncGetProject.java create mode 100644 java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/stub/branchservicestubsettings/listbranches/SyncListBranches.java create mode 100644 java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/stub/projectservicestubsettings/getproject/SyncGetProject.java create mode 100644 java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/productservice/purgeproducts/AsyncPurgeProducts.java create mode 100644 java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/productservice/purgeproducts/AsyncPurgeProductsLRO.java create mode 100644 java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/productservice/purgeproducts/SyncPurgeProducts.java diff --git a/.gitignore b/.gitignore index 6b8637e01fc0..8bd08dcd00d9 100644 --- a/.gitignore +++ b/.gitignore @@ -17,6 +17,10 @@ MANIFEST .flattened-pom.xml +# Vim files +*.swp +*.swo + # Python utilities __pycache__/ *.py[cod] diff --git a/generation_config.yaml b/generation_config.yaml index 89fe8e87958e..f03239e7a11d 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,6 +1,6 @@ gapic_generator_version: 2.41.0 protoc_version: '25.3' -googleapis_commitish: ede5e02ad747c9199a7953b222b85715e097189c +googleapis_commitish: ac90fa9958bd6f7622674f52f77e4dc01d98bee8 libraries_bom_version: 26.40.0 template_excludes: - .github/* diff --git a/java-batch/README.md b/java-batch/README.md index 1aee59f1a5a6..fe6017132e60 100644 --- a/java-batch/README.md +++ b/java-batch/README.md @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-batch.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-batch/0.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-batch/0.45.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicy.java b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicy.java index d51c91a201c7..286eddb0360f 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicy.java +++ b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicy.java @@ -8507,9 +8507,9 @@ public interface InstancePolicyOrTemplateOrBuilder * * *

-     * Set this field true if users want Batch to help fetch drivers from a
-     * third party location and install them for GPUs specified in
-     * policy.accelerators or instance_template on their behalf. Default is
+     * Set this field true if you want Batch to help fetch drivers from a third
+     * party location and install them for GPUs specified in
+     * `policy.accelerators` or `instance_template` on your behalf. Default is
      * false.
      *
      * For Container-Optimized Image cases, Batch will install the
@@ -8755,9 +8755,9 @@ public com.google.protobuf.ByteString getInstanceTemplateBytes() {
      *
      *
      * 
-     * Set this field true if users want Batch to help fetch drivers from a
-     * third party location and install them for GPUs specified in
-     * policy.accelerators or instance_template on their behalf. Default is
+     * Set this field true if you want Batch to help fetch drivers from a third
+     * party location and install them for GPUs specified in
+     * `policy.accelerators` or `instance_template` on your behalf. Default is
      * false.
      *
      * For Container-Optimized Image cases, Batch will install the
@@ -9594,9 +9594,9 @@ public Builder setInstanceTemplateBytes(com.google.protobuf.ByteString value) {
        *
        *
        * 
-       * Set this field true if users want Batch to help fetch drivers from a
-       * third party location and install them for GPUs specified in
-       * policy.accelerators or instance_template on their behalf. Default is
+       * Set this field true if you want Batch to help fetch drivers from a third
+       * party location and install them for GPUs specified in
+       * `policy.accelerators` or `instance_template` on your behalf. Default is
        * false.
        *
        * For Container-Optimized Image cases, Batch will install the
@@ -9618,9 +9618,9 @@ public boolean getInstallGpuDrivers() {
        *
        *
        * 
-       * Set this field true if users want Batch to help fetch drivers from a
-       * third party location and install them for GPUs specified in
-       * policy.accelerators or instance_template on their behalf. Default is
+       * Set this field true if you want Batch to help fetch drivers from a third
+       * party location and install them for GPUs specified in
+       * `policy.accelerators` or `instance_template` on your behalf. Default is
        * false.
        *
        * For Container-Optimized Image cases, Batch will install the
@@ -9646,9 +9646,9 @@ public Builder setInstallGpuDrivers(boolean value) {
        *
        *
        * 
-       * Set this field true if users want Batch to help fetch drivers from a
-       * third party location and install them for GPUs specified in
-       * policy.accelerators or instance_template on their behalf. Default is
+       * Set this field true if you want Batch to help fetch drivers from a third
+       * party location and install them for GPUs specified in
+       * `policy.accelerators` or `instance_template` on your behalf. Default is
        * false.
        *
        * For Container-Optimized Image cases, Batch will install the
diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskExecution.java b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskExecution.java
index 31a5835cb532..149d6dc0b186 100644
--- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskExecution.java
+++ b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskExecution.java
@@ -74,12 +74,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * due to the following reasons, the exit code will be 50000.
    *
    * Otherwise, it can be from different sources:
-   * - Batch known failures as
+   * * Batch known failures:
    * https://cloud.google.com/batch/docs/troubleshooting#reserved-exit-codes.
-   * - Batch runnable execution failures: You can rely on Batch logs for further
-   * diagnose: https://cloud.google.com/batch/docs/analyze-job-using-logs.
-   * If there are multiple runnables failures, Batch only exposes the first
-   * error caught for now.
+   * * Batch runnable execution failures; you can rely on Batch logs to further
+   * diagnose: https://cloud.google.com/batch/docs/analyze-job-using-logs. If
+   * there are multiple runnables failures, Batch only exposes the first error.
    * 
* * int32 exit_code = 1; @@ -441,12 +440,11 @@ public Builder mergeFrom( * due to the following reasons, the exit code will be 50000. * * Otherwise, it can be from different sources: - * - Batch known failures as + * * Batch known failures: * https://cloud.google.com/batch/docs/troubleshooting#reserved-exit-codes. - * - Batch runnable execution failures: You can rely on Batch logs for further - * diagnose: https://cloud.google.com/batch/docs/analyze-job-using-logs. - * If there are multiple runnables failures, Batch only exposes the first - * error caught for now. + * * Batch runnable execution failures; you can rely on Batch logs to further + * diagnose: https://cloud.google.com/batch/docs/analyze-job-using-logs. If + * there are multiple runnables failures, Batch only exposes the first error. *
* * int32 exit_code = 1; @@ -467,12 +465,11 @@ public int getExitCode() { * due to the following reasons, the exit code will be 50000. * * Otherwise, it can be from different sources: - * - Batch known failures as + * * Batch known failures: * https://cloud.google.com/batch/docs/troubleshooting#reserved-exit-codes. - * - Batch runnable execution failures: You can rely on Batch logs for further - * diagnose: https://cloud.google.com/batch/docs/analyze-job-using-logs. - * If there are multiple runnables failures, Batch only exposes the first - * error caught for now. + * * Batch runnable execution failures; you can rely on Batch logs to further + * diagnose: https://cloud.google.com/batch/docs/analyze-job-using-logs. If + * there are multiple runnables failures, Batch only exposes the first error. *
* * int32 exit_code = 1; @@ -497,12 +494,11 @@ public Builder setExitCode(int value) { * due to the following reasons, the exit code will be 50000. * * Otherwise, it can be from different sources: - * - Batch known failures as + * * Batch known failures: * https://cloud.google.com/batch/docs/troubleshooting#reserved-exit-codes. - * - Batch runnable execution failures: You can rely on Batch logs for further - * diagnose: https://cloud.google.com/batch/docs/analyze-job-using-logs. - * If there are multiple runnables failures, Batch only exposes the first - * error caught for now. + * * Batch runnable execution failures; you can rely on Batch logs to further + * diagnose: https://cloud.google.com/batch/docs/analyze-job-using-logs. If + * there are multiple runnables failures, Batch only exposes the first error. *
* * int32 exit_code = 1; diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskExecutionOrBuilder.java b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskExecutionOrBuilder.java index d49b68bb2d37..945532e6767e 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskExecutionOrBuilder.java +++ b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskExecutionOrBuilder.java @@ -34,12 +34,11 @@ public interface TaskExecutionOrBuilder * due to the following reasons, the exit code will be 50000. * * Otherwise, it can be from different sources: - * - Batch known failures as + * * Batch known failures: * https://cloud.google.com/batch/docs/troubleshooting#reserved-exit-codes. - * - Batch runnable execution failures: You can rely on Batch logs for further - * diagnose: https://cloud.google.com/batch/docs/analyze-job-using-logs. - * If there are multiple runnables failures, Batch only exposes the first - * error caught for now. + * * Batch runnable execution failures; you can rely on Batch logs to further + * diagnose: https://cloud.google.com/batch/docs/analyze-job-using-logs. If + * there are multiple runnables failures, Batch only exposes the first error. *
* * int32 exit_code = 1; diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskSpec.java b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskSpec.java index 39385786d54a..88d4ee1f721d 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskSpec.java +++ b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskSpec.java @@ -250,10 +250,15 @@ public com.google.cloud.batch.v1.ComputeResourceOrBuilder getComputeResourceOrBu * * *
-   * Maximum duration the task should run.
-   * The task will be killed and marked as FAILED if over this limit.
-   * The valid value range for max_run_duration in seconds is [0,
-   * 315576000000.999999999],
+   * Maximum duration the task should run before being automatically retried
+   * (if enabled) or automatically failed. Format the value of this field
+   * as a time limit in seconds followed by `s`&mdash;for example, `3600s`
+   * for 1 hour. The field accepts any value between 0 and the maximum listed
+   * for the `Duration` field type at
+   * https://protobuf.dev/reference/protobuf/google.protobuf/#duration; however,
+   * the actual maximum run time for a job will be limited to the maximum run
+   * time for a job listed at
+   * https://cloud.google.com/batch/quotas#max-job-duration.
    * 
* * .google.protobuf.Duration max_run_duration = 4; @@ -268,10 +273,15 @@ public boolean hasMaxRunDuration() { * * *
-   * Maximum duration the task should run.
-   * The task will be killed and marked as FAILED if over this limit.
-   * The valid value range for max_run_duration in seconds is [0,
-   * 315576000000.999999999],
+   * Maximum duration the task should run before being automatically retried
+   * (if enabled) or automatically failed. Format the value of this field
+   * as a time limit in seconds followed by `s`&mdash;for example, `3600s`
+   * for 1 hour. The field accepts any value between 0 and the maximum listed
+   * for the `Duration` field type at
+   * https://protobuf.dev/reference/protobuf/google.protobuf/#duration; however,
+   * the actual maximum run time for a job will be limited to the maximum run
+   * time for a job listed at
+   * https://cloud.google.com/batch/quotas#max-job-duration.
    * 
* * .google.protobuf.Duration max_run_duration = 4; @@ -288,10 +298,15 @@ public com.google.protobuf.Duration getMaxRunDuration() { * * *
-   * Maximum duration the task should run.
-   * The task will be killed and marked as FAILED if over this limit.
-   * The valid value range for max_run_duration in seconds is [0,
-   * 315576000000.999999999],
+   * Maximum duration the task should run before being automatically retried
+   * (if enabled) or automatically failed. Format the value of this field
+   * as a time limit in seconds followed by `s`&mdash;for example, `3600s`
+   * for 1 hour. The field accepts any value between 0 and the maximum listed
+   * for the `Duration` field type at
+   * https://protobuf.dev/reference/protobuf/google.protobuf/#duration; however,
+   * the actual maximum run time for a job will be limited to the maximum run
+   * time for a job listed at
+   * https://cloud.google.com/batch/quotas#max-job-duration.
    * 
* * .google.protobuf.Duration max_run_duration = 4; @@ -2080,10 +2095,15 @@ public com.google.cloud.batch.v1.ComputeResourceOrBuilder getComputeResourceOrBu * * *
-     * Maximum duration the task should run.
-     * The task will be killed and marked as FAILED if over this limit.
-     * The valid value range for max_run_duration in seconds is [0,
-     * 315576000000.999999999],
+     * Maximum duration the task should run before being automatically retried
+     * (if enabled) or automatically failed. Format the value of this field
+     * as a time limit in seconds followed by `s`&mdash;for example, `3600s`
+     * for 1 hour. The field accepts any value between 0 and the maximum listed
+     * for the `Duration` field type at
+     * https://protobuf.dev/reference/protobuf/google.protobuf/#duration; however,
+     * the actual maximum run time for a job will be limited to the maximum run
+     * time for a job listed at
+     * https://cloud.google.com/batch/quotas#max-job-duration.
      * 
* * .google.protobuf.Duration max_run_duration = 4; @@ -2097,10 +2117,15 @@ public boolean hasMaxRunDuration() { * * *
-     * Maximum duration the task should run.
-     * The task will be killed and marked as FAILED if over this limit.
-     * The valid value range for max_run_duration in seconds is [0,
-     * 315576000000.999999999],
+     * Maximum duration the task should run before being automatically retried
+     * (if enabled) or automatically failed. Format the value of this field
+     * as a time limit in seconds followed by `s`&mdash;for example, `3600s`
+     * for 1 hour. The field accepts any value between 0 and the maximum listed
+     * for the `Duration` field type at
+     * https://protobuf.dev/reference/protobuf/google.protobuf/#duration; however,
+     * the actual maximum run time for a job will be limited to the maximum run
+     * time for a job listed at
+     * https://cloud.google.com/batch/quotas#max-job-duration.
      * 
* * .google.protobuf.Duration max_run_duration = 4; @@ -2120,10 +2145,15 @@ public com.google.protobuf.Duration getMaxRunDuration() { * * *
-     * Maximum duration the task should run.
-     * The task will be killed and marked as FAILED if over this limit.
-     * The valid value range for max_run_duration in seconds is [0,
-     * 315576000000.999999999],
+     * Maximum duration the task should run before being automatically retried
+     * (if enabled) or automatically failed. Format the value of this field
+     * as a time limit in seconds followed by `s`&mdash;for example, `3600s`
+     * for 1 hour. The field accepts any value between 0 and the maximum listed
+     * for the `Duration` field type at
+     * https://protobuf.dev/reference/protobuf/google.protobuf/#duration; however,
+     * the actual maximum run time for a job will be limited to the maximum run
+     * time for a job listed at
+     * https://cloud.google.com/batch/quotas#max-job-duration.
      * 
* * .google.protobuf.Duration max_run_duration = 4; @@ -2145,10 +2175,15 @@ public Builder setMaxRunDuration(com.google.protobuf.Duration value) { * * *
-     * Maximum duration the task should run.
-     * The task will be killed and marked as FAILED if over this limit.
-     * The valid value range for max_run_duration in seconds is [0,
-     * 315576000000.999999999],
+     * Maximum duration the task should run before being automatically retried
+     * (if enabled) or automatically failed. Format the value of this field
+     * as a time limit in seconds followed by `s`&mdash;for example, `3600s`
+     * for 1 hour. The field accepts any value between 0 and the maximum listed
+     * for the `Duration` field type at
+     * https://protobuf.dev/reference/protobuf/google.protobuf/#duration; however,
+     * the actual maximum run time for a job will be limited to the maximum run
+     * time for a job listed at
+     * https://cloud.google.com/batch/quotas#max-job-duration.
      * 
* * .google.protobuf.Duration max_run_duration = 4; @@ -2167,10 +2202,15 @@ public Builder setMaxRunDuration(com.google.protobuf.Duration.Builder builderFor * * *
-     * Maximum duration the task should run.
-     * The task will be killed and marked as FAILED if over this limit.
-     * The valid value range for max_run_duration in seconds is [0,
-     * 315576000000.999999999],
+     * Maximum duration the task should run before being automatically retried
+     * (if enabled) or automatically failed. Format the value of this field
+     * as a time limit in seconds followed by `s`&mdash;for example, `3600s`
+     * for 1 hour. The field accepts any value between 0 and the maximum listed
+     * for the `Duration` field type at
+     * https://protobuf.dev/reference/protobuf/google.protobuf/#duration; however,
+     * the actual maximum run time for a job will be limited to the maximum run
+     * time for a job listed at
+     * https://cloud.google.com/batch/quotas#max-job-duration.
      * 
* * .google.protobuf.Duration max_run_duration = 4; @@ -2197,10 +2237,15 @@ public Builder mergeMaxRunDuration(com.google.protobuf.Duration value) { * * *
-     * Maximum duration the task should run.
-     * The task will be killed and marked as FAILED if over this limit.
-     * The valid value range for max_run_duration in seconds is [0,
-     * 315576000000.999999999],
+     * Maximum duration the task should run before being automatically retried
+     * (if enabled) or automatically failed. Format the value of this field
+     * as a time limit in seconds followed by `s`&mdash;for example, `3600s`
+     * for 1 hour. The field accepts any value between 0 and the maximum listed
+     * for the `Duration` field type at
+     * https://protobuf.dev/reference/protobuf/google.protobuf/#duration; however,
+     * the actual maximum run time for a job will be limited to the maximum run
+     * time for a job listed at
+     * https://cloud.google.com/batch/quotas#max-job-duration.
      * 
* * .google.protobuf.Duration max_run_duration = 4; @@ -2219,10 +2264,15 @@ public Builder clearMaxRunDuration() { * * *
-     * Maximum duration the task should run.
-     * The task will be killed and marked as FAILED if over this limit.
-     * The valid value range for max_run_duration in seconds is [0,
-     * 315576000000.999999999],
+     * Maximum duration the task should run before being automatically retried
+     * (if enabled) or automatically failed. Format the value of this field
+     * as a time limit in seconds followed by `s`&mdash;for example, `3600s`
+     * for 1 hour. The field accepts any value between 0 and the maximum listed
+     * for the `Duration` field type at
+     * https://protobuf.dev/reference/protobuf/google.protobuf/#duration; however,
+     * the actual maximum run time for a job will be limited to the maximum run
+     * time for a job listed at
+     * https://cloud.google.com/batch/quotas#max-job-duration.
      * 
* * .google.protobuf.Duration max_run_duration = 4; @@ -2236,10 +2286,15 @@ public com.google.protobuf.Duration.Builder getMaxRunDurationBuilder() { * * *
-     * Maximum duration the task should run.
-     * The task will be killed and marked as FAILED if over this limit.
-     * The valid value range for max_run_duration in seconds is [0,
-     * 315576000000.999999999],
+     * Maximum duration the task should run before being automatically retried
+     * (if enabled) or automatically failed. Format the value of this field
+     * as a time limit in seconds followed by `s`&mdash;for example, `3600s`
+     * for 1 hour. The field accepts any value between 0 and the maximum listed
+     * for the `Duration` field type at
+     * https://protobuf.dev/reference/protobuf/google.protobuf/#duration; however,
+     * the actual maximum run time for a job will be limited to the maximum run
+     * time for a job listed at
+     * https://cloud.google.com/batch/quotas#max-job-duration.
      * 
* * .google.protobuf.Duration max_run_duration = 4; @@ -2257,10 +2312,15 @@ public com.google.protobuf.DurationOrBuilder getMaxRunDurationOrBuilder() { * * *
-     * Maximum duration the task should run.
-     * The task will be killed and marked as FAILED if over this limit.
-     * The valid value range for max_run_duration in seconds is [0,
-     * 315576000000.999999999],
+     * Maximum duration the task should run before being automatically retried
+     * (if enabled) or automatically failed. Format the value of this field
+     * as a time limit in seconds followed by `s`&mdash;for example, `3600s`
+     * for 1 hour. The field accepts any value between 0 and the maximum listed
+     * for the `Duration` field type at
+     * https://protobuf.dev/reference/protobuf/google.protobuf/#duration; however,
+     * the actual maximum run time for a job will be limited to the maximum run
+     * time for a job listed at
+     * https://cloud.google.com/batch/quotas#max-job-duration.
      * 
* * .google.protobuf.Duration max_run_duration = 4; diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskSpecOrBuilder.java b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskSpecOrBuilder.java index 7b35f2ab6c2c..555f21daf2a1 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskSpecOrBuilder.java +++ b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskSpecOrBuilder.java @@ -159,10 +159,15 @@ public interface TaskSpecOrBuilder * * *
-   * Maximum duration the task should run.
-   * The task will be killed and marked as FAILED if over this limit.
-   * The valid value range for max_run_duration in seconds is [0,
-   * 315576000000.999999999],
+   * Maximum duration the task should run before being automatically retried
+   * (if enabled) or automatically failed. Format the value of this field
+   * as a time limit in seconds followed by `s`&mdash;for example, `3600s`
+   * for 1 hour. The field accepts any value between 0 and the maximum listed
+   * for the `Duration` field type at
+   * https://protobuf.dev/reference/protobuf/google.protobuf/#duration; however,
+   * the actual maximum run time for a job will be limited to the maximum run
+   * time for a job listed at
+   * https://cloud.google.com/batch/quotas#max-job-duration.
    * 
* * .google.protobuf.Duration max_run_duration = 4; @@ -174,10 +179,15 @@ public interface TaskSpecOrBuilder * * *
-   * Maximum duration the task should run.
-   * The task will be killed and marked as FAILED if over this limit.
-   * The valid value range for max_run_duration in seconds is [0,
-   * 315576000000.999999999],
+   * Maximum duration the task should run before being automatically retried
+   * (if enabled) or automatically failed. Format the value of this field
+   * as a time limit in seconds followed by `s`&mdash;for example, `3600s`
+   * for 1 hour. The field accepts any value between 0 and the maximum listed
+   * for the `Duration` field type at
+   * https://protobuf.dev/reference/protobuf/google.protobuf/#duration; however,
+   * the actual maximum run time for a job will be limited to the maximum run
+   * time for a job listed at
+   * https://cloud.google.com/batch/quotas#max-job-duration.
    * 
* * .google.protobuf.Duration max_run_duration = 4; @@ -189,10 +199,15 @@ public interface TaskSpecOrBuilder * * *
-   * Maximum duration the task should run.
-   * The task will be killed and marked as FAILED if over this limit.
-   * The valid value range for max_run_duration in seconds is [0,
-   * 315576000000.999999999],
+   * Maximum duration the task should run before being automatically retried
+   * (if enabled) or automatically failed. Format the value of this field
+   * as a time limit in seconds followed by `s`&mdash;for example, `3600s`
+   * for 1 hour. The field accepts any value between 0 and the maximum listed
+   * for the `Duration` field type at
+   * https://protobuf.dev/reference/protobuf/google.protobuf/#duration; however,
+   * the actual maximum run time for a job will be limited to the maximum run
+   * time for a job listed at
+   * https://cloud.google.com/batch/quotas#max-job-duration.
    * 
* * .google.protobuf.Duration max_run_duration = 4; diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/job.proto b/java-batch/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/job.proto index 67b486d3e58e..b7d0729895a4 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/job.proto +++ b/java-batch/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/job.proto @@ -419,9 +419,9 @@ message AllocationPolicy { string instance_template = 2; } - // Set this field true if users want Batch to help fetch drivers from a - // third party location and install them for GPUs specified in - // policy.accelerators or instance_template on their behalf. Default is + // Set this field true if you want Batch to help fetch drivers from a third + // party location and install them for GPUs specified in + // `policy.accelerators` or `instance_template` on your behalf. Default is // false. // // For Container-Optimized Image cases, Batch will install the diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/task.proto b/java-batch/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/task.proto index 3b5f6d03fa94..f38d7c0c2478 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/task.proto +++ b/java-batch/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/task.proto @@ -108,12 +108,11 @@ message TaskExecution { // due to the following reasons, the exit code will be 50000. // // Otherwise, it can be from different sources: - // - Batch known failures as + // * Batch known failures: // https://cloud.google.com/batch/docs/troubleshooting#reserved-exit-codes. - // - Batch runnable execution failures: You can rely on Batch logs for further - // diagnose: https://cloud.google.com/batch/docs/analyze-job-using-logs. - // If there are multiple runnables failures, Batch only exposes the first - // error caught for now. + // * Batch runnable execution failures; you can rely on Batch logs to further + // diagnose: https://cloud.google.com/batch/docs/analyze-job-using-logs. If + // there are multiple runnables failures, Batch only exposes the first error. int32 exit_code = 1; } @@ -341,10 +340,15 @@ message TaskSpec { // ComputeResource requirements. ComputeResource compute_resource = 3; - // Maximum duration the task should run. - // The task will be killed and marked as FAILED if over this limit. - // The valid value range for max_run_duration in seconds is [0, - // 315576000000.999999999], + // Maximum duration the task should run before being automatically retried + // (if enabled) or automatically failed. Format the value of this field + // as a time limit in seconds followed by `s`—for example, `3600s` + // for 1 hour. The field accepts any value between 0 and the maximum listed + // for the `Duration` field type at + // https://protobuf.dev/reference/protobuf/google.protobuf/#duration; however, + // the actual maximum run time for a job will be limited to the maximum run + // time for a job listed at + // https://cloud.google.com/batch/quotas#max-job-duration. google.protobuf.Duration max_run_duration = 4; // Maximum number of retries on failures. diff --git a/java-container/.repo-metadata.json b/java-container/.repo-metadata.json index 75f37f17de23..6b45faa41e86 100644 --- a/java-container/.repo-metadata.json +++ b/java-container/.repo-metadata.json @@ -5,7 +5,7 @@ "api_description": "is an enterprise-grade platform for containerized applications, including stateful and stateless, AI and ML, Linux and Windows, complex and simple web apps, API, and backend services. Leverage industry-first features like four-way auto-scaling and no-stress management. Optimize GPU and TPU provisioning, use integrated developer tools, and get multi-cluster support from SREs.", "client_documentation": "https://cloud.google.com/java/docs/reference/google-cloud-container/latest/overview", "release_level": "stable", - "transport": "grpc", + "transport": "both", "language": "java", "repo": "googleapis/google-cloud-java", "repo_short": "java-container", diff --git a/java-container/README.md b/java-container/README.md index 182ee3a4542a..4936efdaaf5e 100644 --- a/java-container/README.md +++ b/java-container/README.md @@ -101,7 +101,7 @@ To get help, follow the instructions in the [shared Troubleshooting document][tr ## Transport -Kubernetes Engine uses gRPC for the transport layer. +Kubernetes Engine uses both gRPC and HTTP/JSON for the transport layer. ## Supported Java Versions @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-container.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-container/2.47.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-container/2.48.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-container/google-cloud-container/pom.xml b/java-container/google-cloud-container/pom.xml index 3614ff104e0f..3b1dbe8d85f4 100644 --- a/java-container/google-cloud-container/pom.xml +++ b/java-container/google-cloud-container/pom.xml @@ -60,6 +60,10 @@ com.google.api gax-grpc + + com.google.api + gax-httpjson + org.threeten threetenbp @@ -88,11 +92,23 @@ test + + com.google.api + gax + testlib + test + com.google.api gax-grpc testlib test + + com.google.api + gax-httpjson + testlib + test + diff --git a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java index dc5c7205d70c..5c589a5fe7db 100644 --- a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java +++ b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java @@ -358,6 +358,7 @@ * *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

*
    + *
  • listOperations(String parent) *

  • listOperations(String projectId, String zone) *

*

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

@@ -751,6 +752,20 @@ * ClusterManagerClient clusterManagerClient = ClusterManagerClient.create(clusterManagerSettings); * } * + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ClusterManagerSettings clusterManagerSettings =
+ *     ClusterManagerSettings.newHttpJsonBuilder().build();
+ * ClusterManagerClient clusterManagerClient = ClusterManagerClient.create(clusterManagerSettings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @Generated("by gapic-generator-java") @@ -1406,10 +1421,12 @@ public final UnaryCallable updateClusterCallabl * .setLoggingConfig(NodePoolLoggingConfig.newBuilder().build()) * .setResourceLabels(ResourceLabels.newBuilder().build()) * .setWindowsNodeConfig(WindowsNodeConfig.newBuilder().build()) + * .addAllAccelerators(new ArrayList()) * .setMachineType("machineType-218117087") * .setDiskType("diskType279771767") * .setDiskSizeGb(-757478089) * .setResourceManagerTags(ResourceManagerTags.newBuilder().build()) + * .setContainerdConfig(ContainerdConfig.newBuilder().build()) * .setQueuedProvisioning(NodePool.QueuedProvisioning.newBuilder().build()) * .build(); * Operation response = clusterManagerClient.updateNodePool(request); @@ -1462,10 +1479,12 @@ public final Operation updateNodePool(UpdateNodePoolRequest request) { * .setLoggingConfig(NodePoolLoggingConfig.newBuilder().build()) * .setResourceLabels(ResourceLabels.newBuilder().build()) * .setWindowsNodeConfig(WindowsNodeConfig.newBuilder().build()) + * .addAllAccelerators(new ArrayList()) * .setMachineType("machineType-218117087") * .setDiskType("diskType279771767") * .setDiskSizeGb(-757478089) * .setResourceManagerTags(ResourceManagerTags.newBuilder().build()) + * .setContainerdConfig(ContainerdConfig.newBuilder().build()) * .setQueuedProvisioning(NodePool.QueuedProvisioning.newBuilder().build()) * .build(); * ApiFuture future = @@ -2545,6 +2564,34 @@ public final UnaryCallable deleteClusterCallabl return stub.deleteClusterCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all operations in a project in a specific zone or all zones. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   String parent = "parent-995424086";
+   *   ListOperationsResponse response = clusterManagerClient.listOperations(parent);
+   * }
+   * }
+ * + * @param parent The parent (project and location) where the operations will be listed. Specified + * in the format `projects/*/locations/*`. Location "-" matches all zones and all + * regions. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListOperationsResponse listOperations(String parent) { + ListOperationsRequest request = ListOperationsRequest.newBuilder().setParent(parent).build(); + return listOperations(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists all operations in a project in a specific zone or all zones. diff --git a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerSettings.java b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerSettings.java index 322f5918be50..563850dba3d7 100644 --- a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerSettings.java +++ b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerSettings.java @@ -19,9 +19,11 @@ import static com.google.cloud.container.v1.ClusterManagerClient.ListUsableSubnetworksPagedResponse; import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; @@ -327,11 +329,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return ClusterManagerStubSettings.defaultCredentialsProviderBuilder(); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return ClusterManagerStubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return ClusterManagerStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return ClusterManagerStubSettings.defaultTransportChannelProvider(); } @@ -340,11 +349,16 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return ClusterManagerStubSettings.defaultApiClientHeaderProviderBuilder(); } - /** Returns a new builder for this class. */ + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -382,6 +396,10 @@ private static Builder createDefault() { return new Builder(ClusterManagerStubSettings.newBuilder()); } + private static Builder createHttpJsonDefault() { + return new Builder(ClusterManagerStubSettings.newHttpJsonBuilder()); + } + public ClusterManagerStubSettings.Builder getStubSettingsBuilder() { return ((ClusterManagerStubSettings.Builder) getStubSettings()); } diff --git a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/gapic_metadata.json b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/gapic_metadata.json index fc131da80f5a..a286c1fc5868 100644 --- a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/gapic_metadata.json +++ b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/gapic_metadata.json @@ -56,7 +56,7 @@ "methods": ["listNodePools", "listNodePools", "listNodePools", "listNodePoolsCallable"] }, "ListOperations": { - "methods": ["listOperations", "listOperations", "listOperationsCallable"] + "methods": ["listOperations", "listOperations", "listOperations", "listOperationsCallable"] }, "ListUsableSubnetworks": { "methods": ["listUsableSubnetworks", "listUsableSubnetworksPagedCallable", "listUsableSubnetworksCallable"] diff --git a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStubSettings.java b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStubSettings.java index 0f4bb76c1b0f..03c7bdaf9f4c 100644 --- a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStubSettings.java +++ b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStubSettings.java @@ -20,12 +20,16 @@ import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; import com.google.api.gax.core.GaxProperties; import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.GaxGrpcProperties; import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.rpc.ApiCallContext; import com.google.api.gax.rpc.ApiClientHeaderProvider; @@ -442,6 +446,11 @@ public ClusterManagerStub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcClusterManagerStub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonClusterManagerStub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -480,17 +489,24 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde .setUseJwtAccessWithScope(true); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return InstantiatingGrpcChannelProvider.newBuilder() .setMaxInboundMessageSize(Integer.MAX_VALUE); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( "gapic", GaxProperties.getLibraryVersion(ClusterManagerStubSettings.class)) @@ -498,11 +514,29 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - /** Returns a new builder for this class. */ + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(ClusterManagerStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ClusterManagerStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -833,6 +867,18 @@ private static Builder createDefault() { return initDefaults(builder); } + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + private static Builder initDefaults(Builder builder) { builder .listClustersSettings() diff --git a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/HttpJsonClusterManagerCallableFactory.java b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/HttpJsonClusterManagerCallableFactory.java new file mode 100644 index 000000000000..aa118d6b269c --- /dev/null +++ b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/HttpJsonClusterManagerCallableFactory.java @@ -0,0 +1,101 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.container.v1.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the ClusterManager service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonClusterManagerCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/HttpJsonClusterManagerStub.java b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/HttpJsonClusterManagerStub.java new file mode 100644 index 000000000000..a13851cf751a --- /dev/null +++ b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/HttpJsonClusterManagerStub.java @@ -0,0 +1,2621 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.container.v1.stub; + +import static com.google.cloud.container.v1.ClusterManagerClient.ListUsableSubnetworksPagedResponse; + +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.container.v1.CancelOperationRequest; +import com.google.container.v1.CheckAutopilotCompatibilityRequest; +import com.google.container.v1.CheckAutopilotCompatibilityResponse; +import com.google.container.v1.Cluster; +import com.google.container.v1.CompleteIPRotationRequest; +import com.google.container.v1.CompleteNodePoolUpgradeRequest; +import com.google.container.v1.CreateClusterRequest; +import com.google.container.v1.CreateNodePoolRequest; +import com.google.container.v1.DeleteClusterRequest; +import com.google.container.v1.DeleteNodePoolRequest; +import com.google.container.v1.GetClusterRequest; +import com.google.container.v1.GetJSONWebKeysRequest; +import com.google.container.v1.GetJSONWebKeysResponse; +import com.google.container.v1.GetNodePoolRequest; +import com.google.container.v1.GetOperationRequest; +import com.google.container.v1.GetServerConfigRequest; +import com.google.container.v1.ListClustersRequest; +import com.google.container.v1.ListClustersResponse; +import com.google.container.v1.ListNodePoolsRequest; +import com.google.container.v1.ListNodePoolsResponse; +import com.google.container.v1.ListOperationsRequest; +import com.google.container.v1.ListOperationsResponse; +import com.google.container.v1.ListUsableSubnetworksRequest; +import com.google.container.v1.ListUsableSubnetworksResponse; +import com.google.container.v1.NodePool; +import com.google.container.v1.Operation; +import com.google.container.v1.RollbackNodePoolUpgradeRequest; +import com.google.container.v1.ServerConfig; +import com.google.container.v1.SetAddonsConfigRequest; +import com.google.container.v1.SetLabelsRequest; +import com.google.container.v1.SetLegacyAbacRequest; +import com.google.container.v1.SetLocationsRequest; +import com.google.container.v1.SetLoggingServiceRequest; +import com.google.container.v1.SetMaintenancePolicyRequest; +import com.google.container.v1.SetMasterAuthRequest; +import com.google.container.v1.SetMonitoringServiceRequest; +import com.google.container.v1.SetNetworkPolicyRequest; +import com.google.container.v1.SetNodePoolAutoscalingRequest; +import com.google.container.v1.SetNodePoolManagementRequest; +import com.google.container.v1.SetNodePoolSizeRequest; +import com.google.container.v1.StartIPRotationRequest; +import com.google.container.v1.UpdateClusterRequest; +import com.google.container.v1.UpdateMasterRequest; +import com.google.container.v1.UpdateNodePoolRequest; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the ClusterManager service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonClusterManagerStub extends ClusterManagerStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + listClustersMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.container.v1.ClusterManager/ListClusters") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/clusters", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + serializer.putPathParam(fields, "projectId", request.getProjectId()); + serializer.putPathParam(fields, "zone", request.getZone()); + return fields; + }) + .setAdditionalPaths("/v1/projects/{projectId}/zones/{zone}/clusters") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListClustersResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getClusterMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.container.v1.ClusterManager/GetCluster") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/clusters/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "clusterId", request.getClusterId()); + serializer.putPathParam(fields, "name", request.getName()); + serializer.putPathParam(fields, "projectId", request.getProjectId()); + serializer.putPathParam(fields, "zone", request.getZone()); + return fields; + }) + .setAdditionalPaths("/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Cluster.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createClusterMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.container.v1.ClusterManager/CreateCluster") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/clusters", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + serializer.putPathParam(fields, "projectId", request.getProjectId()); + serializer.putPathParam(fields, "zone", request.getZone()); + return fields; + }) + .setAdditionalPaths("/v1/projects/{projectId}/zones/{zone}/clusters") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "*", + request + .toBuilder() + .clearParent() + .clearProjectId() + .clearZone() + .build(), + true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateClusterMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.container.v1.ClusterManager/UpdateCluster") + .setHttpMethod("PUT") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/clusters/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "clusterId", request.getClusterId()); + serializer.putPathParam(fields, "name", request.getName()); + serializer.putPathParam(fields, "projectId", request.getProjectId()); + serializer.putPathParam(fields, "zone", request.getZone()); + return fields; + }) + .setAdditionalPaths( + "/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "*", + request + .toBuilder() + .clearClusterId() + .clearName() + .clearProjectId() + .clearZone() + .build(), + true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateNodePoolMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.container.v1.ClusterManager/UpdateNodePool") + .setHttpMethod("PUT") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "clusterId", request.getClusterId()); + serializer.putPathParam(fields, "name", request.getName()); + serializer.putPathParam(fields, "nodePoolId", request.getNodePoolId()); + serializer.putPathParam(fields, "projectId", request.getProjectId()); + serializer.putPathParam(fields, "zone", request.getZone()); + return fields; + }) + .setAdditionalPaths( + "/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/update") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "*", + request + .toBuilder() + .clearClusterId() + .clearName() + .clearNodePoolId() + .clearProjectId() + .clearZone() + .build(), + true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + setNodePoolAutoscalingMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.container.v1.ClusterManager/SetNodePoolAutoscaling") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:setAutoscaling", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "clusterId", request.getClusterId()); + serializer.putPathParam(fields, "name", request.getName()); + serializer.putPathParam(fields, "nodePoolId", request.getNodePoolId()); + serializer.putPathParam(fields, "projectId", request.getProjectId()); + serializer.putPathParam(fields, "zone", request.getZone()); + return fields; + }) + .setAdditionalPaths( + "/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/autoscaling") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "*", + request + .toBuilder() + .clearClusterId() + .clearName() + .clearNodePoolId() + .clearProjectId() + .clearZone() + .build(), + true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + setLoggingServiceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.container.v1.ClusterManager/SetLoggingService") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/clusters/*}:setLogging", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "clusterId", request.getClusterId()); + serializer.putPathParam(fields, "name", request.getName()); + serializer.putPathParam(fields, "projectId", request.getProjectId()); + serializer.putPathParam(fields, "zone", request.getZone()); + return fields; + }) + .setAdditionalPaths( + "/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/logging") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "*", + request + .toBuilder() + .clearClusterId() + .clearName() + .clearProjectId() + .clearZone() + .build(), + true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + setMonitoringServiceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.container.v1.ClusterManager/SetMonitoringService") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/clusters/*}:setMonitoring", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "clusterId", request.getClusterId()); + serializer.putPathParam(fields, "name", request.getName()); + serializer.putPathParam(fields, "projectId", request.getProjectId()); + serializer.putPathParam(fields, "zone", request.getZone()); + return fields; + }) + .setAdditionalPaths( + "/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/monitoring") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "*", + request + .toBuilder() + .clearClusterId() + .clearName() + .clearProjectId() + .clearZone() + .build(), + true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + setAddonsConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.container.v1.ClusterManager/SetAddonsConfig") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/clusters/*}:setAddons", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "clusterId", request.getClusterId()); + serializer.putPathParam(fields, "name", request.getName()); + serializer.putPathParam(fields, "projectId", request.getProjectId()); + serializer.putPathParam(fields, "zone", request.getZone()); + return fields; + }) + .setAdditionalPaths( + "/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/addons") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "*", + request + .toBuilder() + .clearClusterId() + .clearName() + .clearProjectId() + .clearZone() + .build(), + true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + setLocationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.container.v1.ClusterManager/SetLocations") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/clusters/*}:setLocations", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "clusterId", request.getClusterId()); + serializer.putPathParam(fields, "name", request.getName()); + serializer.putPathParam(fields, "projectId", request.getProjectId()); + serializer.putPathParam(fields, "zone", request.getZone()); + return fields; + }) + .setAdditionalPaths( + "/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/locations") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "*", + request + .toBuilder() + .clearClusterId() + .clearName() + .clearProjectId() + .clearZone() + .build(), + true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateMasterMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.container.v1.ClusterManager/UpdateMaster") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/clusters/*}:updateMaster", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "clusterId", request.getClusterId()); + serializer.putPathParam(fields, "name", request.getName()); + serializer.putPathParam(fields, "projectId", request.getProjectId()); + serializer.putPathParam(fields, "zone", request.getZone()); + return fields; + }) + .setAdditionalPaths( + "/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/master") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "*", + request + .toBuilder() + .clearClusterId() + .clearName() + .clearProjectId() + .clearZone() + .build(), + true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + setMasterAuthMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.container.v1.ClusterManager/SetMasterAuth") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/clusters/*}:setMasterAuth", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "clusterId", request.getClusterId()); + serializer.putPathParam(fields, "name", request.getName()); + serializer.putPathParam(fields, "projectId", request.getProjectId()); + serializer.putPathParam(fields, "zone", request.getZone()); + return fields; + }) + .setAdditionalPaths( + "/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMasterAuth") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "*", + request + .toBuilder() + .clearClusterId() + .clearName() + .clearProjectId() + .clearZone() + .build(), + true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteClusterMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.container.v1.ClusterManager/DeleteCluster") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/clusters/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "clusterId", request.getClusterId()); + serializer.putPathParam(fields, "name", request.getName()); + serializer.putPathParam(fields, "projectId", request.getProjectId()); + serializer.putPathParam(fields, "zone", request.getZone()); + return fields; + }) + .setAdditionalPaths( + "/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listOperationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.container.v1.ClusterManager/ListOperations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/operations", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + serializer.putPathParam(fields, "projectId", request.getProjectId()); + serializer.putPathParam(fields, "zone", request.getZone()); + return fields; + }) + .setAdditionalPaths("/v1/projects/{projectId}/zones/{zone}/operations") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListOperationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getOperationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.container.v1.ClusterManager/GetOperation") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/operations/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + serializer.putPathParam( + fields, "operationId", request.getOperationId()); + serializer.putPathParam(fields, "projectId", request.getProjectId()); + serializer.putPathParam(fields, "zone", request.getZone()); + return fields; + }) + .setAdditionalPaths( + "/v1/projects/{projectId}/zones/{zone}/operations/{operationId}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + cancelOperationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.container.v1.ClusterManager/CancelOperation") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/operations/*}:cancel", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + serializer.putPathParam( + fields, "operationId", request.getOperationId()); + serializer.putPathParam(fields, "projectId", request.getProjectId()); + serializer.putPathParam(fields, "zone", request.getZone()); + return fields; + }) + .setAdditionalPaths( + "/v1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "*", + request + .toBuilder() + .clearName() + .clearOperationId() + .clearProjectId() + .clearZone() + .build(), + true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getServerConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.container.v1.ClusterManager/GetServerConfig") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*}/serverConfig", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + serializer.putPathParam(fields, "projectId", request.getProjectId()); + serializer.putPathParam(fields, "zone", request.getZone()); + return fields; + }) + .setAdditionalPaths("/v1/projects/{projectId}/zones/{zone}/serverconfig") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ServerConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getJSONWebKeysMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.container.v1.ClusterManager/GetJSONWebKeys") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/clusters/*}/jwks", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(GetJSONWebKeysResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listNodePoolsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.container.v1.ClusterManager/ListNodePools") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/clusters/*}/nodePools", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "clusterId", request.getClusterId()); + serializer.putPathParam(fields, "parent", request.getParent()); + serializer.putPathParam(fields, "projectId", request.getProjectId()); + serializer.putPathParam(fields, "zone", request.getZone()); + return fields; + }) + .setAdditionalPaths( + "/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListNodePoolsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getNodePoolMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.container.v1.ClusterManager/GetNodePool") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "clusterId", request.getClusterId()); + serializer.putPathParam(fields, "name", request.getName()); + serializer.putPathParam(fields, "nodePoolId", request.getNodePoolId()); + serializer.putPathParam(fields, "projectId", request.getProjectId()); + serializer.putPathParam(fields, "zone", request.getZone()); + return fields; + }) + .setAdditionalPaths( + "/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(NodePool.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createNodePoolMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.container.v1.ClusterManager/CreateNodePool") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/clusters/*}/nodePools", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "clusterId", request.getClusterId()); + serializer.putPathParam(fields, "parent", request.getParent()); + serializer.putPathParam(fields, "projectId", request.getProjectId()); + serializer.putPathParam(fields, "zone", request.getZone()); + return fields; + }) + .setAdditionalPaths( + "/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "*", + request + .toBuilder() + .clearClusterId() + .clearParent() + .clearProjectId() + .clearZone() + .build(), + true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteNodePoolMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.container.v1.ClusterManager/DeleteNodePool") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "clusterId", request.getClusterId()); + serializer.putPathParam(fields, "name", request.getName()); + serializer.putPathParam(fields, "nodePoolId", request.getNodePoolId()); + serializer.putPathParam(fields, "projectId", request.getProjectId()); + serializer.putPathParam(fields, "zone", request.getZone()); + return fields; + }) + .setAdditionalPaths( + "/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + completeNodePoolUpgradeMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.container.v1.ClusterManager/CompleteNodePoolUpgrade") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:completeUpgrade", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + rollbackNodePoolUpgradeMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.container.v1.ClusterManager/RollbackNodePoolUpgrade") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:rollback", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "clusterId", request.getClusterId()); + serializer.putPathParam(fields, "name", request.getName()); + serializer.putPathParam(fields, "nodePoolId", request.getNodePoolId()); + serializer.putPathParam(fields, "projectId", request.getProjectId()); + serializer.putPathParam(fields, "zone", request.getZone()); + return fields; + }) + .setAdditionalPaths( + "/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "*", + request + .toBuilder() + .clearClusterId() + .clearName() + .clearNodePoolId() + .clearProjectId() + .clearZone() + .build(), + true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + setNodePoolManagementMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.container.v1.ClusterManager/SetNodePoolManagement") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:setManagement", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "clusterId", request.getClusterId()); + serializer.putPathParam(fields, "name", request.getName()); + serializer.putPathParam(fields, "nodePoolId", request.getNodePoolId()); + serializer.putPathParam(fields, "projectId", request.getProjectId()); + serializer.putPathParam(fields, "zone", request.getZone()); + return fields; + }) + .setAdditionalPaths( + "/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "*", + request + .toBuilder() + .clearClusterId() + .clearName() + .clearNodePoolId() + .clearProjectId() + .clearZone() + .build(), + true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor setLabelsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.container.v1.ClusterManager/SetLabels") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/clusters/*}:setResourceLabels", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "clusterId", request.getClusterId()); + serializer.putPathParam(fields, "name", request.getName()); + serializer.putPathParam(fields, "projectId", request.getProjectId()); + serializer.putPathParam(fields, "zone", request.getZone()); + return fields; + }) + .setAdditionalPaths( + "/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "*", + request + .toBuilder() + .clearClusterId() + .clearName() + .clearProjectId() + .clearZone() + .build(), + true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + setLegacyAbacMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.container.v1.ClusterManager/SetLegacyAbac") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/clusters/*}:setLegacyAbac", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "clusterId", request.getClusterId()); + serializer.putPathParam(fields, "name", request.getName()); + serializer.putPathParam(fields, "projectId", request.getProjectId()); + serializer.putPathParam(fields, "zone", request.getZone()); + return fields; + }) + .setAdditionalPaths( + "/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/legacyAbac") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "*", + request + .toBuilder() + .clearClusterId() + .clearName() + .clearProjectId() + .clearZone() + .build(), + true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + startIPRotationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.container.v1.ClusterManager/StartIPRotation") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/clusters/*}:startIpRotation", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "clusterId", request.getClusterId()); + serializer.putPathParam(fields, "name", request.getName()); + serializer.putPathParam(fields, "projectId", request.getProjectId()); + serializer.putPathParam(fields, "zone", request.getZone()); + return fields; + }) + .setAdditionalPaths( + "/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "*", + request + .toBuilder() + .clearClusterId() + .clearName() + .clearProjectId() + .clearZone() + .build(), + true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + completeIPRotationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.container.v1.ClusterManager/CompleteIPRotation") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/clusters/*}:completeIpRotation", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "clusterId", request.getClusterId()); + serializer.putPathParam(fields, "name", request.getName()); + serializer.putPathParam(fields, "projectId", request.getProjectId()); + serializer.putPathParam(fields, "zone", request.getZone()); + return fields; + }) + .setAdditionalPaths( + "/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "*", + request + .toBuilder() + .clearClusterId() + .clearName() + .clearProjectId() + .clearZone() + .build(), + true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + setNodePoolSizeMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.container.v1.ClusterManager/SetNodePoolSize") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:setSize", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "clusterId", request.getClusterId()); + serializer.putPathParam(fields, "name", request.getName()); + serializer.putPathParam(fields, "nodePoolId", request.getNodePoolId()); + serializer.putPathParam(fields, "projectId", request.getProjectId()); + serializer.putPathParam(fields, "zone", request.getZone()); + return fields; + }) + .setAdditionalPaths( + "/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setSize") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "*", + request + .toBuilder() + .clearClusterId() + .clearName() + .clearNodePoolId() + .clearProjectId() + .clearZone() + .build(), + true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + setNetworkPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.container.v1.ClusterManager/SetNetworkPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/clusters/*}:setNetworkPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "clusterId", request.getClusterId()); + serializer.putPathParam(fields, "name", request.getName()); + serializer.putPathParam(fields, "projectId", request.getProjectId()); + serializer.putPathParam(fields, "zone", request.getZone()); + return fields; + }) + .setAdditionalPaths( + "/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "*", + request + .toBuilder() + .clearClusterId() + .clearName() + .clearProjectId() + .clearZone() + .build(), + true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + setMaintenancePolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.container.v1.ClusterManager/SetMaintenancePolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/clusters/*}:setMaintenancePolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "clusterId", request.getClusterId()); + serializer.putPathParam(fields, "name", request.getName()); + serializer.putPathParam(fields, "projectId", request.getProjectId()); + serializer.putPathParam(fields, "zone", request.getZone()); + return fields; + }) + .setAdditionalPaths( + "/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "*", + request + .toBuilder() + .clearClusterId() + .clearName() + .clearProjectId() + .clearZone() + .build(), + true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListUsableSubnetworksRequest, ListUsableSubnetworksResponse> + listUsableSubnetworksMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.container.v1.ClusterManager/ListUsableSubnetworks") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*}/aggregated/usableSubnetworks", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListUsableSubnetworksResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + CheckAutopilotCompatibilityRequest, CheckAutopilotCompatibilityResponse> + checkAutopilotCompatibilityMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.container.v1.ClusterManager/CheckAutopilotCompatibility") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/clusters/*}:checkAutopilotCompatibility", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(CheckAutopilotCompatibilityResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable listClustersCallable; + private final UnaryCallable getClusterCallable; + private final UnaryCallable createClusterCallable; + private final UnaryCallable updateClusterCallable; + private final UnaryCallable updateNodePoolCallable; + private final UnaryCallable + setNodePoolAutoscalingCallable; + private final UnaryCallable setLoggingServiceCallable; + private final UnaryCallable setMonitoringServiceCallable; + private final UnaryCallable setAddonsConfigCallable; + private final UnaryCallable setLocationsCallable; + private final UnaryCallable updateMasterCallable; + private final UnaryCallable setMasterAuthCallable; + private final UnaryCallable deleteClusterCallable; + private final UnaryCallable listOperationsCallable; + private final UnaryCallable getOperationCallable; + private final UnaryCallable cancelOperationCallable; + private final UnaryCallable getServerConfigCallable; + private final UnaryCallable getJSONWebKeysCallable; + private final UnaryCallable listNodePoolsCallable; + private final UnaryCallable getNodePoolCallable; + private final UnaryCallable createNodePoolCallable; + private final UnaryCallable deleteNodePoolCallable; + private final UnaryCallable + completeNodePoolUpgradeCallable; + private final UnaryCallable + rollbackNodePoolUpgradeCallable; + private final UnaryCallable + setNodePoolManagementCallable; + private final UnaryCallable setLabelsCallable; + private final UnaryCallable setLegacyAbacCallable; + private final UnaryCallable startIPRotationCallable; + private final UnaryCallable completeIPRotationCallable; + private final UnaryCallable setNodePoolSizeCallable; + private final UnaryCallable setNetworkPolicyCallable; + private final UnaryCallable setMaintenancePolicyCallable; + private final UnaryCallable + listUsableSubnetworksCallable; + private final UnaryCallable + listUsableSubnetworksPagedCallable; + private final UnaryCallable< + CheckAutopilotCompatibilityRequest, CheckAutopilotCompatibilityResponse> + checkAutopilotCompatibilityCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonClusterManagerStub create(ClusterManagerStubSettings settings) + throws IOException { + return new HttpJsonClusterManagerStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonClusterManagerStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonClusterManagerStub( + ClusterManagerStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonClusterManagerStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonClusterManagerStub( + ClusterManagerStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonClusterManagerStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonClusterManagerStub( + ClusterManagerStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonClusterManagerCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonClusterManagerStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonClusterManagerStub( + ClusterManagerStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings listClustersTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listClustersMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getClusterTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getClusterMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createClusterTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createClusterMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateClusterTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateClusterMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateNodePoolTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateNodePoolMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("node_pool_id", String.valueOf(request.getNodePoolId())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + setNodePoolAutoscalingTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setNodePoolAutoscalingMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("node_pool_id", String.valueOf(request.getNodePoolId())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings setLoggingServiceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setLoggingServiceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + setMonitoringServiceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setMonitoringServiceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings setAddonsConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setAddonsConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings setLocationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setLocationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateMasterTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateMasterMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings setMasterAuthTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setMasterAuthMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteClusterTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteClusterMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listOperationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listOperationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getOperationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getOperationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + builder.add("operation_id", String.valueOf(request.getOperationId())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings cancelOperationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(cancelOperationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + builder.add("operation_id", String.valueOf(request.getOperationId())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getServerConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getServerConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + getJSONWebKeysTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getJSONWebKeysMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listNodePoolsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listNodePoolsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("parent", String.valueOf(request.getParent())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getNodePoolTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getNodePoolMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("node_pool_id", String.valueOf(request.getNodePoolId())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createNodePoolTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createNodePoolMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("parent", String.valueOf(request.getParent())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteNodePoolTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteNodePoolMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("node_pool_id", String.valueOf(request.getNodePoolId())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + completeNodePoolUpgradeTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(completeNodePoolUpgradeMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + rollbackNodePoolUpgradeTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(rollbackNodePoolUpgradeMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("node_pool_id", String.valueOf(request.getNodePoolId())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + setNodePoolManagementTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setNodePoolManagementMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("node_pool_id", String.valueOf(request.getNodePoolId())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings setLabelsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setLabelsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings setLegacyAbacTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setLegacyAbacMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings startIPRotationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(startIPRotationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings completeIPRotationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(completeIPRotationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings setNodePoolSizeTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setNodePoolSizeMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("node_pool_id", String.valueOf(request.getNodePoolId())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings setNetworkPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setNetworkPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + setMaintenancePolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setMaintenancePolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("cluster_id", String.valueOf(request.getClusterId())); + builder.add("name", String.valueOf(request.getName())); + builder.add("project_id", String.valueOf(request.getProjectId())); + builder.add("zone", String.valueOf(request.getZone())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listUsableSubnetworksTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listUsableSubnetworksMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + checkAutopilotCompatibilityTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(checkAutopilotCompatibilityMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.listClustersCallable = + callableFactory.createUnaryCallable( + listClustersTransportSettings, settings.listClustersSettings(), clientContext); + this.getClusterCallable = + callableFactory.createUnaryCallable( + getClusterTransportSettings, settings.getClusterSettings(), clientContext); + this.createClusterCallable = + callableFactory.createUnaryCallable( + createClusterTransportSettings, settings.createClusterSettings(), clientContext); + this.updateClusterCallable = + callableFactory.createUnaryCallable( + updateClusterTransportSettings, settings.updateClusterSettings(), clientContext); + this.updateNodePoolCallable = + callableFactory.createUnaryCallable( + updateNodePoolTransportSettings, settings.updateNodePoolSettings(), clientContext); + this.setNodePoolAutoscalingCallable = + callableFactory.createUnaryCallable( + setNodePoolAutoscalingTransportSettings, + settings.setNodePoolAutoscalingSettings(), + clientContext); + this.setLoggingServiceCallable = + callableFactory.createUnaryCallable( + setLoggingServiceTransportSettings, + settings.setLoggingServiceSettings(), + clientContext); + this.setMonitoringServiceCallable = + callableFactory.createUnaryCallable( + setMonitoringServiceTransportSettings, + settings.setMonitoringServiceSettings(), + clientContext); + this.setAddonsConfigCallable = + callableFactory.createUnaryCallable( + setAddonsConfigTransportSettings, settings.setAddonsConfigSettings(), clientContext); + this.setLocationsCallable = + callableFactory.createUnaryCallable( + setLocationsTransportSettings, settings.setLocationsSettings(), clientContext); + this.updateMasterCallable = + callableFactory.createUnaryCallable( + updateMasterTransportSettings, settings.updateMasterSettings(), clientContext); + this.setMasterAuthCallable = + callableFactory.createUnaryCallable( + setMasterAuthTransportSettings, settings.setMasterAuthSettings(), clientContext); + this.deleteClusterCallable = + callableFactory.createUnaryCallable( + deleteClusterTransportSettings, settings.deleteClusterSettings(), clientContext); + this.listOperationsCallable = + callableFactory.createUnaryCallable( + listOperationsTransportSettings, settings.listOperationsSettings(), clientContext); + this.getOperationCallable = + callableFactory.createUnaryCallable( + getOperationTransportSettings, settings.getOperationSettings(), clientContext); + this.cancelOperationCallable = + callableFactory.createUnaryCallable( + cancelOperationTransportSettings, settings.cancelOperationSettings(), clientContext); + this.getServerConfigCallable = + callableFactory.createUnaryCallable( + getServerConfigTransportSettings, settings.getServerConfigSettings(), clientContext); + this.getJSONWebKeysCallable = + callableFactory.createUnaryCallable( + getJSONWebKeysTransportSettings, settings.getJSONWebKeysSettings(), clientContext); + this.listNodePoolsCallable = + callableFactory.createUnaryCallable( + listNodePoolsTransportSettings, settings.listNodePoolsSettings(), clientContext); + this.getNodePoolCallable = + callableFactory.createUnaryCallable( + getNodePoolTransportSettings, settings.getNodePoolSettings(), clientContext); + this.createNodePoolCallable = + callableFactory.createUnaryCallable( + createNodePoolTransportSettings, settings.createNodePoolSettings(), clientContext); + this.deleteNodePoolCallable = + callableFactory.createUnaryCallable( + deleteNodePoolTransportSettings, settings.deleteNodePoolSettings(), clientContext); + this.completeNodePoolUpgradeCallable = + callableFactory.createUnaryCallable( + completeNodePoolUpgradeTransportSettings, + settings.completeNodePoolUpgradeSettings(), + clientContext); + this.rollbackNodePoolUpgradeCallable = + callableFactory.createUnaryCallable( + rollbackNodePoolUpgradeTransportSettings, + settings.rollbackNodePoolUpgradeSettings(), + clientContext); + this.setNodePoolManagementCallable = + callableFactory.createUnaryCallable( + setNodePoolManagementTransportSettings, + settings.setNodePoolManagementSettings(), + clientContext); + this.setLabelsCallable = + callableFactory.createUnaryCallable( + setLabelsTransportSettings, settings.setLabelsSettings(), clientContext); + this.setLegacyAbacCallable = + callableFactory.createUnaryCallable( + setLegacyAbacTransportSettings, settings.setLegacyAbacSettings(), clientContext); + this.startIPRotationCallable = + callableFactory.createUnaryCallable( + startIPRotationTransportSettings, settings.startIPRotationSettings(), clientContext); + this.completeIPRotationCallable = + callableFactory.createUnaryCallable( + completeIPRotationTransportSettings, + settings.completeIPRotationSettings(), + clientContext); + this.setNodePoolSizeCallable = + callableFactory.createUnaryCallable( + setNodePoolSizeTransportSettings, settings.setNodePoolSizeSettings(), clientContext); + this.setNetworkPolicyCallable = + callableFactory.createUnaryCallable( + setNetworkPolicyTransportSettings, settings.setNetworkPolicySettings(), clientContext); + this.setMaintenancePolicyCallable = + callableFactory.createUnaryCallable( + setMaintenancePolicyTransportSettings, + settings.setMaintenancePolicySettings(), + clientContext); + this.listUsableSubnetworksCallable = + callableFactory.createUnaryCallable( + listUsableSubnetworksTransportSettings, + settings.listUsableSubnetworksSettings(), + clientContext); + this.listUsableSubnetworksPagedCallable = + callableFactory.createPagedCallable( + listUsableSubnetworksTransportSettings, + settings.listUsableSubnetworksSettings(), + clientContext); + this.checkAutopilotCompatibilityCallable = + callableFactory.createUnaryCallable( + checkAutopilotCompatibilityTransportSettings, + settings.checkAutopilotCompatibilitySettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(listClustersMethodDescriptor); + methodDescriptors.add(getClusterMethodDescriptor); + methodDescriptors.add(createClusterMethodDescriptor); + methodDescriptors.add(updateClusterMethodDescriptor); + methodDescriptors.add(updateNodePoolMethodDescriptor); + methodDescriptors.add(setNodePoolAutoscalingMethodDescriptor); + methodDescriptors.add(setLoggingServiceMethodDescriptor); + methodDescriptors.add(setMonitoringServiceMethodDescriptor); + methodDescriptors.add(setAddonsConfigMethodDescriptor); + methodDescriptors.add(setLocationsMethodDescriptor); + methodDescriptors.add(updateMasterMethodDescriptor); + methodDescriptors.add(setMasterAuthMethodDescriptor); + methodDescriptors.add(deleteClusterMethodDescriptor); + methodDescriptors.add(listOperationsMethodDescriptor); + methodDescriptors.add(getOperationMethodDescriptor); + methodDescriptors.add(cancelOperationMethodDescriptor); + methodDescriptors.add(getServerConfigMethodDescriptor); + methodDescriptors.add(getJSONWebKeysMethodDescriptor); + methodDescriptors.add(listNodePoolsMethodDescriptor); + methodDescriptors.add(getNodePoolMethodDescriptor); + methodDescriptors.add(createNodePoolMethodDescriptor); + methodDescriptors.add(deleteNodePoolMethodDescriptor); + methodDescriptors.add(completeNodePoolUpgradeMethodDescriptor); + methodDescriptors.add(rollbackNodePoolUpgradeMethodDescriptor); + methodDescriptors.add(setNodePoolManagementMethodDescriptor); + methodDescriptors.add(setLabelsMethodDescriptor); + methodDescriptors.add(setLegacyAbacMethodDescriptor); + methodDescriptors.add(startIPRotationMethodDescriptor); + methodDescriptors.add(completeIPRotationMethodDescriptor); + methodDescriptors.add(setNodePoolSizeMethodDescriptor); + methodDescriptors.add(setNetworkPolicyMethodDescriptor); + methodDescriptors.add(setMaintenancePolicyMethodDescriptor); + methodDescriptors.add(listUsableSubnetworksMethodDescriptor); + methodDescriptors.add(checkAutopilotCompatibilityMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable listClustersCallable() { + return listClustersCallable; + } + + @Override + public UnaryCallable getClusterCallable() { + return getClusterCallable; + } + + @Override + public UnaryCallable createClusterCallable() { + return createClusterCallable; + } + + @Override + public UnaryCallable updateClusterCallable() { + return updateClusterCallable; + } + + @Override + public UnaryCallable updateNodePoolCallable() { + return updateNodePoolCallable; + } + + @Override + public UnaryCallable setNodePoolAutoscalingCallable() { + return setNodePoolAutoscalingCallable; + } + + @Override + public UnaryCallable setLoggingServiceCallable() { + return setLoggingServiceCallable; + } + + @Override + public UnaryCallable setMonitoringServiceCallable() { + return setMonitoringServiceCallable; + } + + @Override + public UnaryCallable setAddonsConfigCallable() { + return setAddonsConfigCallable; + } + + @Override + public UnaryCallable setLocationsCallable() { + return setLocationsCallable; + } + + @Override + public UnaryCallable updateMasterCallable() { + return updateMasterCallable; + } + + @Override + public UnaryCallable setMasterAuthCallable() { + return setMasterAuthCallable; + } + + @Override + public UnaryCallable deleteClusterCallable() { + return deleteClusterCallable; + } + + @Override + public UnaryCallable listOperationsCallable() { + return listOperationsCallable; + } + + @Override + public UnaryCallable getOperationCallable() { + return getOperationCallable; + } + + @Override + public UnaryCallable cancelOperationCallable() { + return cancelOperationCallable; + } + + @Override + public UnaryCallable getServerConfigCallable() { + return getServerConfigCallable; + } + + @Override + public UnaryCallable getJSONWebKeysCallable() { + return getJSONWebKeysCallable; + } + + @Override + public UnaryCallable listNodePoolsCallable() { + return listNodePoolsCallable; + } + + @Override + public UnaryCallable getNodePoolCallable() { + return getNodePoolCallable; + } + + @Override + public UnaryCallable createNodePoolCallable() { + return createNodePoolCallable; + } + + @Override + public UnaryCallable deleteNodePoolCallable() { + return deleteNodePoolCallable; + } + + @Override + public UnaryCallable completeNodePoolUpgradeCallable() { + return completeNodePoolUpgradeCallable; + } + + @Override + public UnaryCallable + rollbackNodePoolUpgradeCallable() { + return rollbackNodePoolUpgradeCallable; + } + + @Override + public UnaryCallable setNodePoolManagementCallable() { + return setNodePoolManagementCallable; + } + + @Override + public UnaryCallable setLabelsCallable() { + return setLabelsCallable; + } + + @Override + public UnaryCallable setLegacyAbacCallable() { + return setLegacyAbacCallable; + } + + @Override + public UnaryCallable startIPRotationCallable() { + return startIPRotationCallable; + } + + @Override + public UnaryCallable completeIPRotationCallable() { + return completeIPRotationCallable; + } + + @Override + public UnaryCallable setNodePoolSizeCallable() { + return setNodePoolSizeCallable; + } + + @Override + public UnaryCallable setNetworkPolicyCallable() { + return setNetworkPolicyCallable; + } + + @Override + public UnaryCallable setMaintenancePolicyCallable() { + return setMaintenancePolicyCallable; + } + + @Override + public UnaryCallable + listUsableSubnetworksCallable() { + return listUsableSubnetworksCallable; + } + + @Override + public UnaryCallable + listUsableSubnetworksPagedCallable() { + return listUsableSubnetworksPagedCallable; + } + + @Override + public UnaryCallable + checkAutopilotCompatibilityCallable() { + return checkAutopilotCompatibilityCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-container/google-cloud-container/src/main/resources/META-INF/native-image/com.google.cloud.container.v1/reflect-config.json b/java-container/google-cloud-container/src/main/resources/META-INF/native-image/com.google.cloud.container.v1/reflect-config.json index 84e2f2358c88..c58c0959d821 100644 --- a/java-container/google-cloud-container/src/main/resources/META-INF/native-image/com.google.cloud.container.v1/reflect-config.json +++ b/java-container/google-cloud-container/src/main/resources/META-INF/native-image/com.google.cloud.container.v1/reflect-config.json @@ -935,6 +935,78 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.container.v1.ContainerdConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.container.v1.ContainerdConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.container.v1.ContainerdConfig$PrivateRegistryAccessConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.container.v1.ContainerdConfig$PrivateRegistryAccessConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.container.v1.ContainerdConfig$PrivateRegistryAccessConfig$CertificateAuthorityDomainConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.container.v1.ContainerdConfig$PrivateRegistryAccessConfig$CertificateAuthorityDomainConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.container.v1.ContainerdConfig$PrivateRegistryAccessConfig$CertificateAuthorityDomainConfig$GCPSecretManagerCertificateConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.container.v1.ContainerdConfig$PrivateRegistryAccessConfig$CertificateAuthorityDomainConfig$GCPSecretManagerCertificateConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.container.v1.CostManagementConfig", "queryAllDeclaredConstructors": true, @@ -1799,6 +1871,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.container.v1.LinuxNodeConfig$HugepagesConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.container.v1.LinuxNodeConfig$HugepagesConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.container.v1.ListClustersRequest", "queryAllDeclaredConstructors": true, diff --git a/java-container/google-cloud-container/src/test/java/com/google/cloud/container/v1/ClusterManagerClientHttpJsonTest.java b/java-container/google-cloud-container/src/test/java/com/google/cloud/container/v1/ClusterManagerClientHttpJsonTest.java new file mode 100644 index 000000000000..68187946c25b --- /dev/null +++ b/java-container/google-cloud-container/src/test/java/com/google/cloud/container/v1/ClusterManagerClientHttpJsonTest.java @@ -0,0 +1,3699 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.container.v1; + +import static com.google.cloud.container.v1.ClusterManagerClient.ListUsableSubnetworksPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.container.v1.stub.HttpJsonClusterManagerStub; +import com.google.common.collect.Lists; +import com.google.container.v1.AcceleratorConfig; +import com.google.container.v1.AddonsConfig; +import com.google.container.v1.AuthenticatorGroupsConfig; +import com.google.container.v1.Autopilot; +import com.google.container.v1.AutopilotCompatibilityIssue; +import com.google.container.v1.BestEffortProvisioning; +import com.google.container.v1.BinaryAuthorization; +import com.google.container.v1.CheckAutopilotCompatibilityRequest; +import com.google.container.v1.CheckAutopilotCompatibilityResponse; +import com.google.container.v1.Cluster; +import com.google.container.v1.ClusterAutoscaling; +import com.google.container.v1.ClusterUpdate; +import com.google.container.v1.CompleteNodePoolUpgradeRequest; +import com.google.container.v1.ConfidentialNodes; +import com.google.container.v1.ContainerdConfig; +import com.google.container.v1.CostManagementConfig; +import com.google.container.v1.DatabaseEncryption; +import com.google.container.v1.EnterpriseConfig; +import com.google.container.v1.FastSocket; +import com.google.container.v1.Fleet; +import com.google.container.v1.GcfsConfig; +import com.google.container.v1.GetJSONWebKeysRequest; +import com.google.container.v1.GetJSONWebKeysResponse; +import com.google.container.v1.IPAllocationPolicy; +import com.google.container.v1.IdentityServiceConfig; +import com.google.container.v1.Jwk; +import com.google.container.v1.K8sBetaAPIConfig; +import com.google.container.v1.LegacyAbac; +import com.google.container.v1.LinuxNodeConfig; +import com.google.container.v1.ListClustersResponse; +import com.google.container.v1.ListNodePoolsResponse; +import com.google.container.v1.ListOperationsResponse; +import com.google.container.v1.ListUsableSubnetworksRequest; +import com.google.container.v1.ListUsableSubnetworksResponse; +import com.google.container.v1.LoggingConfig; +import com.google.container.v1.MaintenancePolicy; +import com.google.container.v1.MasterAuth; +import com.google.container.v1.MasterAuthorizedNetworksConfig; +import com.google.container.v1.MaxPodsConstraint; +import com.google.container.v1.MeshCertificates; +import com.google.container.v1.MonitoringConfig; +import com.google.container.v1.NetworkConfig; +import com.google.container.v1.NetworkPolicy; +import com.google.container.v1.NetworkTags; +import com.google.container.v1.NodeConfig; +import com.google.container.v1.NodeKubeletConfig; +import com.google.container.v1.NodeLabels; +import com.google.container.v1.NodeManagement; +import com.google.container.v1.NodeNetworkConfig; +import com.google.container.v1.NodePool; +import com.google.container.v1.NodePoolAutoConfig; +import com.google.container.v1.NodePoolAutoscaling; +import com.google.container.v1.NodePoolDefaults; +import com.google.container.v1.NodePoolLoggingConfig; +import com.google.container.v1.NodeTaints; +import com.google.container.v1.NotificationConfig; +import com.google.container.v1.Operation; +import com.google.container.v1.OperationProgress; +import com.google.container.v1.PrivateClusterConfig; +import com.google.container.v1.ReleaseChannel; +import com.google.container.v1.ResourceLabels; +import com.google.container.v1.ResourceManagerTags; +import com.google.container.v1.ResourceUsageExportConfig; +import com.google.container.v1.SecurityPostureConfig; +import com.google.container.v1.ServerConfig; +import com.google.container.v1.SetLabelsRequest; +import com.google.container.v1.SetMasterAuthRequest; +import com.google.container.v1.SetNodePoolAutoscalingRequest; +import com.google.container.v1.SetNodePoolManagementRequest; +import com.google.container.v1.SetNodePoolSizeRequest; +import com.google.container.v1.ShieldedNodes; +import com.google.container.v1.StatusCondition; +import com.google.container.v1.UpdateNodePoolRequest; +import com.google.container.v1.UsableSubnetwork; +import com.google.container.v1.VerticalPodAutoscaling; +import com.google.container.v1.VirtualNIC; +import com.google.container.v1.WindowsNodeConfig; +import com.google.container.v1.WorkloadIdentityConfig; +import com.google.container.v1.WorkloadMetadataConfig; +import com.google.protobuf.Empty; +import com.google.rpc.Status; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class ClusterManagerClientHttpJsonTest { + private static MockHttpService mockService; + private static ClusterManagerClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonClusterManagerStub.getMethodDescriptors(), + ClusterManagerSettings.getDefaultEndpoint()); + ClusterManagerSettings settings = + ClusterManagerSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + ClusterManagerSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ClusterManagerClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void listClustersTest() throws Exception { + ListClustersResponse expectedResponse = + ListClustersResponse.newBuilder() + .addAllClusters(new ArrayList()) + .addAllMissingZones(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListClustersResponse actualResponse = client.listClusters(parent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listClustersExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listClusters(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listClustersTest2() throws Exception { + ListClustersResponse expectedResponse = + ListClustersResponse.newBuilder() + .addAllClusters(new ArrayList()) + .addAllMissingZones(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + + ListClustersResponse actualResponse = client.listClusters(projectId, zone); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listClustersExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + client.listClusters(projectId, zone); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getClusterTest() throws Exception { + Cluster expectedResponse = + Cluster.newBuilder() + .setName("name3373707") + .setDescription("description-1724546052") + .setInitialNodeCount(1682564205) + .setNodeConfig(NodeConfig.newBuilder().build()) + .setMasterAuth(MasterAuth.newBuilder().build()) + .setLoggingService("loggingService1098570326") + .setMonitoringService("monitoringService-1431578291") + .setNetwork("network1843485230") + .setClusterIpv4Cidr("clusterIpv4Cidr-277423341") + .setAddonsConfig(AddonsConfig.newBuilder().build()) + .setSubnetwork("subnetwork-1302785042") + .addAllNodePools(new ArrayList()) + .addAllLocations(new ArrayList()) + .setEnableKubernetesAlpha(true) + .putAllResourceLabels(new HashMap()) + .setLabelFingerprint("labelFingerprint379449680") + .setLegacyAbac(LegacyAbac.newBuilder().build()) + .setNetworkPolicy(NetworkPolicy.newBuilder().build()) + .setIpAllocationPolicy(IPAllocationPolicy.newBuilder().build()) + .setMasterAuthorizedNetworksConfig(MasterAuthorizedNetworksConfig.newBuilder().build()) + .setMaintenancePolicy(MaintenancePolicy.newBuilder().build()) + .setBinaryAuthorization(BinaryAuthorization.newBuilder().build()) + .setAutoscaling(ClusterAutoscaling.newBuilder().build()) + .setNetworkConfig(NetworkConfig.newBuilder().build()) + .setDefaultMaxPodsConstraint(MaxPodsConstraint.newBuilder().build()) + .setResourceUsageExportConfig(ResourceUsageExportConfig.newBuilder().build()) + .setAuthenticatorGroupsConfig(AuthenticatorGroupsConfig.newBuilder().build()) + .setPrivateClusterConfig(PrivateClusterConfig.newBuilder().build()) + .setDatabaseEncryption(DatabaseEncryption.newBuilder().build()) + .setVerticalPodAutoscaling(VerticalPodAutoscaling.newBuilder().build()) + .setShieldedNodes(ShieldedNodes.newBuilder().build()) + .setReleaseChannel(ReleaseChannel.newBuilder().build()) + .setWorkloadIdentityConfig(WorkloadIdentityConfig.newBuilder().build()) + .setMeshCertificates(MeshCertificates.newBuilder().build()) + .setCostManagementConfig(CostManagementConfig.newBuilder().build()) + .setNotificationConfig(NotificationConfig.newBuilder().build()) + .setConfidentialNodes(ConfidentialNodes.newBuilder().build()) + .setIdentityServiceConfig(IdentityServiceConfig.newBuilder().build()) + .setSelfLink("selfLink1191800166") + .setZone("zone3744684") + .setEndpoint("endpoint1741102485") + .setInitialClusterVersion("initialClusterVersion-1547734558") + .setCurrentMasterVersion("currentMasterVersion1871927069") + .setCurrentNodeVersion("currentNodeVersion373921085") + .setCreateTime("createTime1369213417") + .setStatusMessage("statusMessage-958704715") + .setNodeIpv4CidrSize(1181176815) + .setServicesIpv4Cidr("servicesIpv4Cidr-1785842313") + .addAllInstanceGroupUrls(new ArrayList()) + .setCurrentNodeCount(178977560) + .setExpireTime("expireTime-834724724") + .setLocation("location1901043637") + .setEnableTpu(true) + .setTpuIpv4CidrBlock("tpuIpv4CidrBlock997172251") + .addAllConditions(new ArrayList()) + .setAutopilot(Autopilot.newBuilder().build()) + .setId("id3355") + .setNodePoolDefaults(NodePoolDefaults.newBuilder().build()) + .setLoggingConfig(LoggingConfig.newBuilder().build()) + .setMonitoringConfig(MonitoringConfig.newBuilder().build()) + .setNodePoolAutoConfig(NodePoolAutoConfig.newBuilder().build()) + .setEtag("etag3123477") + .setFleet(Fleet.newBuilder().build()) + .setSecurityPostureConfig(SecurityPostureConfig.newBuilder().build()) + .setEnableK8SBetaApis(K8sBetaAPIConfig.newBuilder().build()) + .setEnterpriseConfig(EnterpriseConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537"; + + Cluster actualResponse = client.getCluster(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getClusterExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537"; + client.getCluster(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getClusterTest2() throws Exception { + Cluster expectedResponse = + Cluster.newBuilder() + .setName("name3373707") + .setDescription("description-1724546052") + .setInitialNodeCount(1682564205) + .setNodeConfig(NodeConfig.newBuilder().build()) + .setMasterAuth(MasterAuth.newBuilder().build()) + .setLoggingService("loggingService1098570326") + .setMonitoringService("monitoringService-1431578291") + .setNetwork("network1843485230") + .setClusterIpv4Cidr("clusterIpv4Cidr-277423341") + .setAddonsConfig(AddonsConfig.newBuilder().build()) + .setSubnetwork("subnetwork-1302785042") + .addAllNodePools(new ArrayList()) + .addAllLocations(new ArrayList()) + .setEnableKubernetesAlpha(true) + .putAllResourceLabels(new HashMap()) + .setLabelFingerprint("labelFingerprint379449680") + .setLegacyAbac(LegacyAbac.newBuilder().build()) + .setNetworkPolicy(NetworkPolicy.newBuilder().build()) + .setIpAllocationPolicy(IPAllocationPolicy.newBuilder().build()) + .setMasterAuthorizedNetworksConfig(MasterAuthorizedNetworksConfig.newBuilder().build()) + .setMaintenancePolicy(MaintenancePolicy.newBuilder().build()) + .setBinaryAuthorization(BinaryAuthorization.newBuilder().build()) + .setAutoscaling(ClusterAutoscaling.newBuilder().build()) + .setNetworkConfig(NetworkConfig.newBuilder().build()) + .setDefaultMaxPodsConstraint(MaxPodsConstraint.newBuilder().build()) + .setResourceUsageExportConfig(ResourceUsageExportConfig.newBuilder().build()) + .setAuthenticatorGroupsConfig(AuthenticatorGroupsConfig.newBuilder().build()) + .setPrivateClusterConfig(PrivateClusterConfig.newBuilder().build()) + .setDatabaseEncryption(DatabaseEncryption.newBuilder().build()) + .setVerticalPodAutoscaling(VerticalPodAutoscaling.newBuilder().build()) + .setShieldedNodes(ShieldedNodes.newBuilder().build()) + .setReleaseChannel(ReleaseChannel.newBuilder().build()) + .setWorkloadIdentityConfig(WorkloadIdentityConfig.newBuilder().build()) + .setMeshCertificates(MeshCertificates.newBuilder().build()) + .setCostManagementConfig(CostManagementConfig.newBuilder().build()) + .setNotificationConfig(NotificationConfig.newBuilder().build()) + .setConfidentialNodes(ConfidentialNodes.newBuilder().build()) + .setIdentityServiceConfig(IdentityServiceConfig.newBuilder().build()) + .setSelfLink("selfLink1191800166") + .setZone("zone3744684") + .setEndpoint("endpoint1741102485") + .setInitialClusterVersion("initialClusterVersion-1547734558") + .setCurrentMasterVersion("currentMasterVersion1871927069") + .setCurrentNodeVersion("currentNodeVersion373921085") + .setCreateTime("createTime1369213417") + .setStatusMessage("statusMessage-958704715") + .setNodeIpv4CidrSize(1181176815) + .setServicesIpv4Cidr("servicesIpv4Cidr-1785842313") + .addAllInstanceGroupUrls(new ArrayList()) + .setCurrentNodeCount(178977560) + .setExpireTime("expireTime-834724724") + .setLocation("location1901043637") + .setEnableTpu(true) + .setTpuIpv4CidrBlock("tpuIpv4CidrBlock997172251") + .addAllConditions(new ArrayList()) + .setAutopilot(Autopilot.newBuilder().build()) + .setId("id3355") + .setNodePoolDefaults(NodePoolDefaults.newBuilder().build()) + .setLoggingConfig(LoggingConfig.newBuilder().build()) + .setMonitoringConfig(MonitoringConfig.newBuilder().build()) + .setNodePoolAutoConfig(NodePoolAutoConfig.newBuilder().build()) + .setEtag("etag3123477") + .setFleet(Fleet.newBuilder().build()) + .setSecurityPostureConfig(SecurityPostureConfig.newBuilder().build()) + .setEnableK8SBetaApis(K8sBetaAPIConfig.newBuilder().build()) + .setEnterpriseConfig(EnterpriseConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) + .build(); + mockService.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + + Cluster actualResponse = client.getCluster(projectId, zone, clusterId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getClusterExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + client.getCluster(projectId, zone, clusterId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createClusterTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + Cluster cluster = Cluster.newBuilder().build(); + + Operation actualResponse = client.createCluster(parent, cluster); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createClusterExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + Cluster cluster = Cluster.newBuilder().build(); + client.createCluster(parent, cluster); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createClusterTest2() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + Cluster cluster = Cluster.newBuilder().build(); + + Operation actualResponse = client.createCluster(projectId, zone, cluster); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createClusterExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + Cluster cluster = Cluster.newBuilder().build(); + client.createCluster(projectId, zone, cluster); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateClusterTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537"; + ClusterUpdate update = ClusterUpdate.newBuilder().build(); + + Operation actualResponse = client.updateCluster(name, update); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateClusterExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537"; + ClusterUpdate update = ClusterUpdate.newBuilder().build(); + client.updateCluster(name, update); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateClusterTest2() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + ClusterUpdate update = ClusterUpdate.newBuilder().build(); + + Operation actualResponse = client.updateCluster(projectId, zone, clusterId, update); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateClusterExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + ClusterUpdate update = ClusterUpdate.newBuilder().build(); + client.updateCluster(projectId, zone, clusterId, update); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateNodePoolTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + UpdateNodePoolRequest request = + UpdateNodePoolRequest.newBuilder() + .setProjectId("projectId-894832108") + .setZone("zone3744684") + .setClusterId("clusterId561939637") + .setNodePoolId("nodePoolId1121557241") + .setNodeVersion("nodeVersion1155309686") + .setImageType("imageType-878147787") + .setName( + "projects/project-6330/locations/location-6330/clusters/cluster-6330/nodePools/nodePool-6330") + .addAllLocations(new ArrayList()) + .setWorkloadMetadataConfig(WorkloadMetadataConfig.newBuilder().build()) + .setUpgradeSettings(NodePool.UpgradeSettings.newBuilder().build()) + .setTags(NetworkTags.newBuilder().build()) + .setTaints(NodeTaints.newBuilder().build()) + .setLabels(NodeLabels.newBuilder().build()) + .setLinuxNodeConfig(LinuxNodeConfig.newBuilder().build()) + .setKubeletConfig(NodeKubeletConfig.newBuilder().build()) + .setNodeNetworkConfig(NodeNetworkConfig.newBuilder().build()) + .setGcfsConfig(GcfsConfig.newBuilder().build()) + .setConfidentialNodes(ConfidentialNodes.newBuilder().build()) + .setGvnic(VirtualNIC.newBuilder().build()) + .setEtag("etag3123477") + .setFastSocket(FastSocket.newBuilder().build()) + .setLoggingConfig(NodePoolLoggingConfig.newBuilder().build()) + .setResourceLabels(ResourceLabels.newBuilder().build()) + .setWindowsNodeConfig(WindowsNodeConfig.newBuilder().build()) + .addAllAccelerators(new ArrayList()) + .setMachineType("machineType-218117087") + .setDiskType("diskType279771767") + .setDiskSizeGb(-757478089) + .setResourceManagerTags(ResourceManagerTags.newBuilder().build()) + .setContainerdConfig(ContainerdConfig.newBuilder().build()) + .setQueuedProvisioning(NodePool.QueuedProvisioning.newBuilder().build()) + .build(); + + Operation actualResponse = client.updateNodePool(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateNodePoolExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + UpdateNodePoolRequest request = + UpdateNodePoolRequest.newBuilder() + .setProjectId("projectId-894832108") + .setZone("zone3744684") + .setClusterId("clusterId561939637") + .setNodePoolId("nodePoolId1121557241") + .setNodeVersion("nodeVersion1155309686") + .setImageType("imageType-878147787") + .setName( + "projects/project-6330/locations/location-6330/clusters/cluster-6330/nodePools/nodePool-6330") + .addAllLocations(new ArrayList()) + .setWorkloadMetadataConfig(WorkloadMetadataConfig.newBuilder().build()) + .setUpgradeSettings(NodePool.UpgradeSettings.newBuilder().build()) + .setTags(NetworkTags.newBuilder().build()) + .setTaints(NodeTaints.newBuilder().build()) + .setLabels(NodeLabels.newBuilder().build()) + .setLinuxNodeConfig(LinuxNodeConfig.newBuilder().build()) + .setKubeletConfig(NodeKubeletConfig.newBuilder().build()) + .setNodeNetworkConfig(NodeNetworkConfig.newBuilder().build()) + .setGcfsConfig(GcfsConfig.newBuilder().build()) + .setConfidentialNodes(ConfidentialNodes.newBuilder().build()) + .setGvnic(VirtualNIC.newBuilder().build()) + .setEtag("etag3123477") + .setFastSocket(FastSocket.newBuilder().build()) + .setLoggingConfig(NodePoolLoggingConfig.newBuilder().build()) + .setResourceLabels(ResourceLabels.newBuilder().build()) + .setWindowsNodeConfig(WindowsNodeConfig.newBuilder().build()) + .addAllAccelerators(new ArrayList()) + .setMachineType("machineType-218117087") + .setDiskType("diskType279771767") + .setDiskSizeGb(-757478089) + .setResourceManagerTags(ResourceManagerTags.newBuilder().build()) + .setContainerdConfig(ContainerdConfig.newBuilder().build()) + .setQueuedProvisioning(NodePool.QueuedProvisioning.newBuilder().build()) + .build(); + client.updateNodePool(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setNodePoolAutoscalingTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + SetNodePoolAutoscalingRequest request = + SetNodePoolAutoscalingRequest.newBuilder() + .setProjectId("projectId-894832108") + .setZone("zone3744684") + .setClusterId("clusterId561939637") + .setNodePoolId("nodePoolId1121557241") + .setAutoscaling(NodePoolAutoscaling.newBuilder().build()) + .setName( + "projects/project-6330/locations/location-6330/clusters/cluster-6330/nodePools/nodePool-6330") + .build(); + + Operation actualResponse = client.setNodePoolAutoscaling(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setNodePoolAutoscalingExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SetNodePoolAutoscalingRequest request = + SetNodePoolAutoscalingRequest.newBuilder() + .setProjectId("projectId-894832108") + .setZone("zone3744684") + .setClusterId("clusterId561939637") + .setNodePoolId("nodePoolId1121557241") + .setAutoscaling(NodePoolAutoscaling.newBuilder().build()) + .setName( + "projects/project-6330/locations/location-6330/clusters/cluster-6330/nodePools/nodePool-6330") + .build(); + client.setNodePoolAutoscaling(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setLoggingServiceTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537"; + String loggingService = "loggingService1098570326"; + + Operation actualResponse = client.setLoggingService(name, loggingService); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setLoggingServiceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537"; + String loggingService = "loggingService1098570326"; + client.setLoggingService(name, loggingService); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setLoggingServiceTest2() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + String loggingService = "loggingService1098570326"; + + Operation actualResponse = client.setLoggingService(projectId, zone, clusterId, loggingService); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setLoggingServiceExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + String loggingService = "loggingService1098570326"; + client.setLoggingService(projectId, zone, clusterId, loggingService); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setMonitoringServiceTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537"; + String monitoringService = "monitoringService-1431578291"; + + Operation actualResponse = client.setMonitoringService(name, monitoringService); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setMonitoringServiceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537"; + String monitoringService = "monitoringService-1431578291"; + client.setMonitoringService(name, monitoringService); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setMonitoringServiceTest2() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + String monitoringService = "monitoringService-1431578291"; + + Operation actualResponse = + client.setMonitoringService(projectId, zone, clusterId, monitoringService); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setMonitoringServiceExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + String monitoringService = "monitoringService-1431578291"; + client.setMonitoringService(projectId, zone, clusterId, monitoringService); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setAddonsConfigTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537"; + AddonsConfig addonsConfig = AddonsConfig.newBuilder().build(); + + Operation actualResponse = client.setAddonsConfig(name, addonsConfig); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setAddonsConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537"; + AddonsConfig addonsConfig = AddonsConfig.newBuilder().build(); + client.setAddonsConfig(name, addonsConfig); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setAddonsConfigTest2() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + AddonsConfig addonsConfig = AddonsConfig.newBuilder().build(); + + Operation actualResponse = client.setAddonsConfig(projectId, zone, clusterId, addonsConfig); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setAddonsConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + AddonsConfig addonsConfig = AddonsConfig.newBuilder().build(); + client.setAddonsConfig(projectId, zone, clusterId, addonsConfig); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setLocationsTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537"; + List locations = new ArrayList<>(); + + Operation actualResponse = client.setLocations(name, locations); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setLocationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537"; + List locations = new ArrayList<>(); + client.setLocations(name, locations); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setLocationsTest2() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + List locations = new ArrayList<>(); + + Operation actualResponse = client.setLocations(projectId, zone, clusterId, locations); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setLocationsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + List locations = new ArrayList<>(); + client.setLocations(projectId, zone, clusterId, locations); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateMasterTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537"; + String masterVersion = "masterVersion1167095830"; + + Operation actualResponse = client.updateMaster(name, masterVersion); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateMasterExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537"; + String masterVersion = "masterVersion1167095830"; + client.updateMaster(name, masterVersion); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateMasterTest2() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + String masterVersion = "masterVersion1167095830"; + + Operation actualResponse = client.updateMaster(projectId, zone, clusterId, masterVersion); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateMasterExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + String masterVersion = "masterVersion1167095830"; + client.updateMaster(projectId, zone, clusterId, masterVersion); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setMasterAuthTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + SetMasterAuthRequest request = + SetMasterAuthRequest.newBuilder() + .setProjectId("projectId-894832108") + .setZone("zone3744684") + .setClusterId("clusterId561939637") + .setUpdate(MasterAuth.newBuilder().build()) + .setName("projects/project-6537/locations/location-6537/clusters/cluster-6537") + .build(); + + Operation actualResponse = client.setMasterAuth(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setMasterAuthExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SetMasterAuthRequest request = + SetMasterAuthRequest.newBuilder() + .setProjectId("projectId-894832108") + .setZone("zone3744684") + .setClusterId("clusterId561939637") + .setUpdate(MasterAuth.newBuilder().build()) + .setName("projects/project-6537/locations/location-6537/clusters/cluster-6537") + .build(); + client.setMasterAuth(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteClusterTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537"; + + Operation actualResponse = client.deleteCluster(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteClusterExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537"; + client.deleteCluster(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteClusterTest2() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + + Operation actualResponse = client.deleteCluster(projectId, zone, clusterId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteClusterExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + client.deleteCluster(projectId, zone, clusterId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listOperationsTest() throws Exception { + ListOperationsResponse expectedResponse = + ListOperationsResponse.newBuilder() + .addAllOperations(new ArrayList()) + .addAllMissingZones(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListOperationsResponse actualResponse = client.listOperations(parent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listOperationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listOperations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listOperationsTest2() throws Exception { + ListOperationsResponse expectedResponse = + ListOperationsResponse.newBuilder() + .addAllOperations(new ArrayList()) + .addAllMissingZones(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + + ListOperationsResponse actualResponse = client.listOperations(projectId, zone); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listOperationsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + client.listOperations(projectId, zone); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getOperationTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-5676/locations/location-5676/operations/operation-5676"; + + Operation actualResponse = client.getOperation(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getOperationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-5676/locations/location-5676/operations/operation-5676"; + client.getOperation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getOperationTest2() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String operationId = "operationId129704162"; + + Operation actualResponse = client.getOperation(projectId, zone, operationId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getOperationExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String operationId = "operationId129704162"; + client.getOperation(projectId, zone, operationId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void cancelOperationTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-5676/locations/location-5676/operations/operation-5676"; + + client.cancelOperation(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void cancelOperationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-5676/locations/location-5676/operations/operation-5676"; + client.cancelOperation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void cancelOperationTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String operationId = "operationId129704162"; + + client.cancelOperation(projectId, zone, operationId); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void cancelOperationExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String operationId = "operationId129704162"; + client.cancelOperation(projectId, zone, operationId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getServerConfigTest() throws Exception { + ServerConfig expectedResponse = + ServerConfig.newBuilder() + .setDefaultClusterVersion("defaultClusterVersion-2007666145") + .addAllValidNodeVersions(new ArrayList()) + .setDefaultImageType("defaultImageType933054964") + .addAllValidImageTypes(new ArrayList()) + .addAllValidMasterVersions(new ArrayList()) + .addAllChannels(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-9062/locations/location-9062"; + + ServerConfig actualResponse = client.getServerConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getServerConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-9062/locations/location-9062"; + client.getServerConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getServerConfigTest2() throws Exception { + ServerConfig expectedResponse = + ServerConfig.newBuilder() + .setDefaultClusterVersion("defaultClusterVersion-2007666145") + .addAllValidNodeVersions(new ArrayList()) + .setDefaultImageType("defaultImageType933054964") + .addAllValidImageTypes(new ArrayList()) + .addAllValidMasterVersions(new ArrayList()) + .addAllChannels(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + + ServerConfig actualResponse = client.getServerConfig(projectId, zone); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getServerConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + client.getServerConfig(projectId, zone); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getJSONWebKeysTest() throws Exception { + GetJSONWebKeysResponse expectedResponse = + GetJSONWebKeysResponse.newBuilder().addAllKeys(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + GetJSONWebKeysRequest request = + GetJSONWebKeysRequest.newBuilder() + .setParent("projects/project-9466/locations/location-9466/clusters/cluster-9466") + .build(); + + GetJSONWebKeysResponse actualResponse = client.getJSONWebKeys(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getJSONWebKeysExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GetJSONWebKeysRequest request = + GetJSONWebKeysRequest.newBuilder() + .setParent("projects/project-9466/locations/location-9466/clusters/cluster-9466") + .build(); + client.getJSONWebKeys(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listNodePoolsTest() throws Exception { + ListNodePoolsResponse expectedResponse = + ListNodePoolsResponse.newBuilder().addAllNodePools(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-9466/locations/location-9466/clusters/cluster-9466"; + + ListNodePoolsResponse actualResponse = client.listNodePools(parent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listNodePoolsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-9466/locations/location-9466/clusters/cluster-9466"; + client.listNodePools(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listNodePoolsTest2() throws Exception { + ListNodePoolsResponse expectedResponse = + ListNodePoolsResponse.newBuilder().addAllNodePools(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + + ListNodePoolsResponse actualResponse = client.listNodePools(projectId, zone, clusterId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listNodePoolsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + client.listNodePools(projectId, zone, clusterId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getNodePoolTest() throws Exception { + NodePool expectedResponse = + NodePool.newBuilder() + .setName("name3373707") + .setConfig(NodeConfig.newBuilder().build()) + .setInitialNodeCount(1682564205) + .addAllLocations(new ArrayList()) + .setNetworkConfig(NodeNetworkConfig.newBuilder().build()) + .setSelfLink("selfLink1191800166") + .setVersion("version351608024") + .addAllInstanceGroupUrls(new ArrayList()) + .setStatusMessage("statusMessage-958704715") + .setAutoscaling(NodePoolAutoscaling.newBuilder().build()) + .setManagement(NodeManagement.newBuilder().build()) + .setMaxPodsConstraint(MaxPodsConstraint.newBuilder().build()) + .addAllConditions(new ArrayList()) + .setPodIpv4CidrSize(1098768716) + .setUpgradeSettings(NodePool.UpgradeSettings.newBuilder().build()) + .setPlacementPolicy(NodePool.PlacementPolicy.newBuilder().build()) + .setUpdateInfo(NodePool.UpdateInfo.newBuilder().build()) + .setEtag("etag3123477") + .setQueuedProvisioning(NodePool.QueuedProvisioning.newBuilder().build()) + .setBestEffortProvisioning(BestEffortProvisioning.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-6330/locations/location-6330/clusters/cluster-6330/nodePools/nodePool-6330"; + + NodePool actualResponse = client.getNodePool(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getNodePoolExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-6330/locations/location-6330/clusters/cluster-6330/nodePools/nodePool-6330"; + client.getNodePool(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getNodePoolTest2() throws Exception { + NodePool expectedResponse = + NodePool.newBuilder() + .setName("name3373707") + .setConfig(NodeConfig.newBuilder().build()) + .setInitialNodeCount(1682564205) + .addAllLocations(new ArrayList()) + .setNetworkConfig(NodeNetworkConfig.newBuilder().build()) + .setSelfLink("selfLink1191800166") + .setVersion("version351608024") + .addAllInstanceGroupUrls(new ArrayList()) + .setStatusMessage("statusMessage-958704715") + .setAutoscaling(NodePoolAutoscaling.newBuilder().build()) + .setManagement(NodeManagement.newBuilder().build()) + .setMaxPodsConstraint(MaxPodsConstraint.newBuilder().build()) + .addAllConditions(new ArrayList()) + .setPodIpv4CidrSize(1098768716) + .setUpgradeSettings(NodePool.UpgradeSettings.newBuilder().build()) + .setPlacementPolicy(NodePool.PlacementPolicy.newBuilder().build()) + .setUpdateInfo(NodePool.UpdateInfo.newBuilder().build()) + .setEtag("etag3123477") + .setQueuedProvisioning(NodePool.QueuedProvisioning.newBuilder().build()) + .setBestEffortProvisioning(BestEffortProvisioning.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + String nodePoolId = "nodePoolId1121557241"; + + NodePool actualResponse = client.getNodePool(projectId, zone, clusterId, nodePoolId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getNodePoolExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + String nodePoolId = "nodePoolId1121557241"; + client.getNodePool(projectId, zone, clusterId, nodePoolId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createNodePoolTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-9466/locations/location-9466/clusters/cluster-9466"; + NodePool nodePool = NodePool.newBuilder().build(); + + Operation actualResponse = client.createNodePool(parent, nodePool); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createNodePoolExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-9466/locations/location-9466/clusters/cluster-9466"; + NodePool nodePool = NodePool.newBuilder().build(); + client.createNodePool(parent, nodePool); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createNodePoolTest2() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + NodePool nodePool = NodePool.newBuilder().build(); + + Operation actualResponse = client.createNodePool(projectId, zone, clusterId, nodePool); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createNodePoolExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + NodePool nodePool = NodePool.newBuilder().build(); + client.createNodePool(projectId, zone, clusterId, nodePool); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteNodePoolTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-6330/locations/location-6330/clusters/cluster-6330/nodePools/nodePool-6330"; + + Operation actualResponse = client.deleteNodePool(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteNodePoolExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-6330/locations/location-6330/clusters/cluster-6330/nodePools/nodePool-6330"; + client.deleteNodePool(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteNodePoolTest2() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + String nodePoolId = "nodePoolId1121557241"; + + Operation actualResponse = client.deleteNodePool(projectId, zone, clusterId, nodePoolId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteNodePoolExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + String nodePoolId = "nodePoolId1121557241"; + client.deleteNodePool(projectId, zone, clusterId, nodePoolId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void completeNodePoolUpgradeTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + CompleteNodePoolUpgradeRequest request = + CompleteNodePoolUpgradeRequest.newBuilder() + .setName( + "projects/project-6330/locations/location-6330/clusters/cluster-6330/nodePools/nodePool-6330") + .build(); + + client.completeNodePoolUpgrade(request); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void completeNodePoolUpgradeExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CompleteNodePoolUpgradeRequest request = + CompleteNodePoolUpgradeRequest.newBuilder() + .setName( + "projects/project-6330/locations/location-6330/clusters/cluster-6330/nodePools/nodePool-6330") + .build(); + client.completeNodePoolUpgrade(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void rollbackNodePoolUpgradeTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-6330/locations/location-6330/clusters/cluster-6330/nodePools/nodePool-6330"; + + Operation actualResponse = client.rollbackNodePoolUpgrade(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void rollbackNodePoolUpgradeExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-6330/locations/location-6330/clusters/cluster-6330/nodePools/nodePool-6330"; + client.rollbackNodePoolUpgrade(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void rollbackNodePoolUpgradeTest2() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + String nodePoolId = "nodePoolId1121557241"; + + Operation actualResponse = + client.rollbackNodePoolUpgrade(projectId, zone, clusterId, nodePoolId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void rollbackNodePoolUpgradeExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + String nodePoolId = "nodePoolId1121557241"; + client.rollbackNodePoolUpgrade(projectId, zone, clusterId, nodePoolId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setNodePoolManagementTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + SetNodePoolManagementRequest request = + SetNodePoolManagementRequest.newBuilder() + .setProjectId("projectId-894832108") + .setZone("zone3744684") + .setClusterId("clusterId561939637") + .setNodePoolId("nodePoolId1121557241") + .setManagement(NodeManagement.newBuilder().build()) + .setName( + "projects/project-6330/locations/location-6330/clusters/cluster-6330/nodePools/nodePool-6330") + .build(); + + Operation actualResponse = client.setNodePoolManagement(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setNodePoolManagementExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SetNodePoolManagementRequest request = + SetNodePoolManagementRequest.newBuilder() + .setProjectId("projectId-894832108") + .setZone("zone3744684") + .setClusterId("clusterId561939637") + .setNodePoolId("nodePoolId1121557241") + .setManagement(NodeManagement.newBuilder().build()) + .setName( + "projects/project-6330/locations/location-6330/clusters/cluster-6330/nodePools/nodePool-6330") + .build(); + client.setNodePoolManagement(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setLabelsTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + SetLabelsRequest request = + SetLabelsRequest.newBuilder() + .setProjectId("projectId-894832108") + .setZone("zone3744684") + .setClusterId("clusterId561939637") + .putAllResourceLabels(new HashMap()) + .setLabelFingerprint("labelFingerprint379449680") + .setName("projects/project-6537/locations/location-6537/clusters/cluster-6537") + .build(); + + Operation actualResponse = client.setLabels(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setLabelsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SetLabelsRequest request = + SetLabelsRequest.newBuilder() + .setProjectId("projectId-894832108") + .setZone("zone3744684") + .setClusterId("clusterId561939637") + .putAllResourceLabels(new HashMap()) + .setLabelFingerprint("labelFingerprint379449680") + .setName("projects/project-6537/locations/location-6537/clusters/cluster-6537") + .build(); + client.setLabels(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setLegacyAbacTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537"; + boolean enabled = true; + + Operation actualResponse = client.setLegacyAbac(name, enabled); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setLegacyAbacExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537"; + boolean enabled = true; + client.setLegacyAbac(name, enabled); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setLegacyAbacTest2() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + boolean enabled = true; + + Operation actualResponse = client.setLegacyAbac(projectId, zone, clusterId, enabled); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setLegacyAbacExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + boolean enabled = true; + client.setLegacyAbac(projectId, zone, clusterId, enabled); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void startIPRotationTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537"; + + Operation actualResponse = client.startIPRotation(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void startIPRotationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537"; + client.startIPRotation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void startIPRotationTest2() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + + Operation actualResponse = client.startIPRotation(projectId, zone, clusterId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void startIPRotationExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + client.startIPRotation(projectId, zone, clusterId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void completeIPRotationTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537"; + + Operation actualResponse = client.completeIPRotation(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void completeIPRotationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537"; + client.completeIPRotation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void completeIPRotationTest2() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + + Operation actualResponse = client.completeIPRotation(projectId, zone, clusterId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void completeIPRotationExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + client.completeIPRotation(projectId, zone, clusterId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setNodePoolSizeTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + SetNodePoolSizeRequest request = + SetNodePoolSizeRequest.newBuilder() + .setProjectId("projectId-894832108") + .setZone("zone3744684") + .setClusterId("clusterId561939637") + .setNodePoolId("nodePoolId1121557241") + .setNodeCount(1539922066) + .setName( + "projects/project-6330/locations/location-6330/clusters/cluster-6330/nodePools/nodePool-6330") + .build(); + + Operation actualResponse = client.setNodePoolSize(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setNodePoolSizeExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SetNodePoolSizeRequest request = + SetNodePoolSizeRequest.newBuilder() + .setProjectId("projectId-894832108") + .setZone("zone3744684") + .setClusterId("clusterId561939637") + .setNodePoolId("nodePoolId1121557241") + .setNodeCount(1539922066) + .setName( + "projects/project-6330/locations/location-6330/clusters/cluster-6330/nodePools/nodePool-6330") + .build(); + client.setNodePoolSize(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setNetworkPolicyTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537"; + NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build(); + + Operation actualResponse = client.setNetworkPolicy(name, networkPolicy); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setNetworkPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537"; + NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build(); + client.setNetworkPolicy(name, networkPolicy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setNetworkPolicyTest2() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build(); + + Operation actualResponse = client.setNetworkPolicy(projectId, zone, clusterId, networkPolicy); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setNetworkPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build(); + client.setNetworkPolicy(projectId, zone, clusterId, networkPolicy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setMaintenancePolicyTest() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537"; + MaintenancePolicy maintenancePolicy = MaintenancePolicy.newBuilder().build(); + + Operation actualResponse = client.setMaintenancePolicy(name, maintenancePolicy); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setMaintenancePolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-6537/locations/location-6537/clusters/cluster-6537"; + MaintenancePolicy maintenancePolicy = MaintenancePolicy.newBuilder().build(); + client.setMaintenancePolicy(name, maintenancePolicy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setMaintenancePolicyTest2() throws Exception { + Operation expectedResponse = + Operation.newBuilder() + .setName("name3373707") + .setZone("zone3744684") + .setDetail("detail-1335224239") + .setStatusMessage("statusMessage-958704715") + .setSelfLink("selfLink1191800166") + .setTargetLink("targetLink486368555") + .setLocation("location1901043637") + .setStartTime("startTime-2129294769") + .setEndTime("endTime-1607243192") + .setProgress(OperationProgress.newBuilder().build()) + .addAllClusterConditions(new ArrayList()) + .addAllNodepoolConditions(new ArrayList()) + .setError(Status.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + MaintenancePolicy maintenancePolicy = MaintenancePolicy.newBuilder().build(); + + Operation actualResponse = + client.setMaintenancePolicy(projectId, zone, clusterId, maintenancePolicy); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setMaintenancePolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String projectId = "projectId-894832108"; + String zone = "zone3744684"; + String clusterId = "clusterId561939637"; + MaintenancePolicy maintenancePolicy = MaintenancePolicy.newBuilder().build(); + client.setMaintenancePolicy(projectId, zone, clusterId, maintenancePolicy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listUsableSubnetworksTest() throws Exception { + UsableSubnetwork responsesElement = UsableSubnetwork.newBuilder().build(); + ListUsableSubnetworksResponse expectedResponse = + ListUsableSubnetworksResponse.newBuilder() + .setNextPageToken("") + .addAllSubnetworks(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ListUsableSubnetworksRequest request = + ListUsableSubnetworksRequest.newBuilder() + .setParent("projects/project-2353") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListUsableSubnetworksPagedResponse pagedListResponse = client.listUsableSubnetworks(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSubnetworksList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listUsableSubnetworksExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListUsableSubnetworksRequest request = + ListUsableSubnetworksRequest.newBuilder() + .setParent("projects/project-2353") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listUsableSubnetworks(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void checkAutopilotCompatibilityTest() throws Exception { + CheckAutopilotCompatibilityResponse expectedResponse = + CheckAutopilotCompatibilityResponse.newBuilder() + .addAllIssues(new ArrayList()) + .setSummary("summary-1857640538") + .build(); + mockService.addResponse(expectedResponse); + + CheckAutopilotCompatibilityRequest request = + CheckAutopilotCompatibilityRequest.newBuilder() + .setName("projects/project-6537/locations/location-6537/clusters/cluster-6537") + .build(); + + CheckAutopilotCompatibilityResponse actualResponse = + client.checkAutopilotCompatibility(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void checkAutopilotCompatibilityExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CheckAutopilotCompatibilityRequest request = + CheckAutopilotCompatibilityRequest.newBuilder() + .setName("projects/project-6537/locations/location-6537/clusters/cluster-6537") + .build(); + client.checkAutopilotCompatibility(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-container/google-cloud-container/src/test/java/com/google/cloud/container/v1/ClusterManagerClientTest.java b/java-container/google-cloud-container/src/test/java/com/google/cloud/container/v1/ClusterManagerClientTest.java index 25e862f14f57..681f583c56c7 100644 --- a/java-container/google-cloud-container/src/test/java/com/google/cloud/container/v1/ClusterManagerClientTest.java +++ b/java-container/google-cloud-container/src/test/java/com/google/cloud/container/v1/ClusterManagerClientTest.java @@ -26,6 +26,7 @@ import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.InvalidArgumentException; import com.google.common.collect.Lists; +import com.google.container.v1.AcceleratorConfig; import com.google.container.v1.AddonsConfig; import com.google.container.v1.AuthenticatorGroupsConfig; import com.google.container.v1.Autopilot; @@ -41,6 +42,7 @@ import com.google.container.v1.CompleteIPRotationRequest; import com.google.container.v1.CompleteNodePoolUpgradeRequest; import com.google.container.v1.ConfidentialNodes; +import com.google.container.v1.ContainerdConfig; import com.google.container.v1.CostManagementConfig; import com.google.container.v1.CreateClusterRequest; import com.google.container.v1.CreateNodePoolRequest; @@ -334,6 +336,8 @@ public void getClusterTest() throws Exception { .setSecurityPostureConfig(SecurityPostureConfig.newBuilder().build()) .setEnableK8SBetaApis(K8sBetaAPIConfig.newBuilder().build()) .setEnterpriseConfig(EnterpriseConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); mockClusterManager.addResponse(expectedResponse); @@ -437,6 +441,8 @@ public void getClusterTest2() throws Exception { .setSecurityPostureConfig(SecurityPostureConfig.newBuilder().build()) .setEnableK8SBetaApis(K8sBetaAPIConfig.newBuilder().build()) .setEnterpriseConfig(EnterpriseConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); mockClusterManager.addResponse(expectedResponse); @@ -743,10 +749,12 @@ public void updateNodePoolTest() throws Exception { .setLoggingConfig(NodePoolLoggingConfig.newBuilder().build()) .setResourceLabels(ResourceLabels.newBuilder().build()) .setWindowsNodeConfig(WindowsNodeConfig.newBuilder().build()) + .addAllAccelerators(new ArrayList()) .setMachineType("machineType-218117087") .setDiskType("diskType279771767") .setDiskSizeGb(-757478089) .setResourceManagerTags(ResourceManagerTags.newBuilder().build()) + .setContainerdConfig(ContainerdConfig.newBuilder().build()) .setQueuedProvisioning(NodePool.QueuedProvisioning.newBuilder().build()) .build(); @@ -782,10 +790,12 @@ public void updateNodePoolTest() throws Exception { Assert.assertEquals(request.getLoggingConfig(), actualRequest.getLoggingConfig()); Assert.assertEquals(request.getResourceLabels(), actualRequest.getResourceLabels()); Assert.assertEquals(request.getWindowsNodeConfig(), actualRequest.getWindowsNodeConfig()); + Assert.assertEquals(request.getAcceleratorsList(), actualRequest.getAcceleratorsList()); Assert.assertEquals(request.getMachineType(), actualRequest.getMachineType()); Assert.assertEquals(request.getDiskType(), actualRequest.getDiskType()); Assert.assertEquals(request.getDiskSizeGb(), actualRequest.getDiskSizeGb()); Assert.assertEquals(request.getResourceManagerTags(), actualRequest.getResourceManagerTags()); + Assert.assertEquals(request.getContainerdConfig(), actualRequest.getContainerdConfig()); Assert.assertEquals(request.getQueuedProvisioning(), actualRequest.getQueuedProvisioning()); Assert.assertTrue( channelProvider.isHeaderSent( @@ -825,10 +835,12 @@ public void updateNodePoolExceptionTest() throws Exception { .setLoggingConfig(NodePoolLoggingConfig.newBuilder().build()) .setResourceLabels(ResourceLabels.newBuilder().build()) .setWindowsNodeConfig(WindowsNodeConfig.newBuilder().build()) + .addAllAccelerators(new ArrayList()) .setMachineType("machineType-218117087") .setDiskType("diskType279771767") .setDiskSizeGb(-757478089) .setResourceManagerTags(ResourceManagerTags.newBuilder().build()) + .setContainerdConfig(ContainerdConfig.newBuilder().build()) .setQueuedProvisioning(NodePool.QueuedProvisioning.newBuilder().build()) .build(); client.updateNodePool(request); @@ -1657,6 +1669,45 @@ public void listOperationsTest() throws Exception { .build(); mockClusterManager.addResponse(expectedResponse); + String parent = "parent-995424086"; + + ListOperationsResponse actualResponse = client.listOperations(parent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockClusterManager.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListOperationsRequest actualRequest = ((ListOperationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listOperationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockClusterManager.addException(exception); + + try { + String parent = "parent-995424086"; + client.listOperations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listOperationsTest2() throws Exception { + ListOperationsResponse expectedResponse = + ListOperationsResponse.newBuilder() + .addAllOperations(new ArrayList()) + .addAllMissingZones(new ArrayList()) + .build(); + mockClusterManager.addResponse(expectedResponse); + String projectId = "projectId-894832108"; String zone = "zone3744684"; @@ -1676,7 +1727,7 @@ public void listOperationsTest() throws Exception { } @Test - public void listOperationsExceptionTest() throws Exception { + public void listOperationsExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockClusterManager.addException(exception); diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfig.java index bbc2adb58961..2118f74946ad 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfig.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfig.java @@ -190,7 +190,7 @@ public com.google.container.v1.HorizontalPodAutoscaling getHorizontalPodAutoscal * * * @deprecated google.container.v1.AddonsConfig.kubernetes_dashboard is deprecated. See - * google/container/v1/cluster_service.proto;l=1207 + * google/container/v1/cluster_service.proto;l=1274 * @return Whether the kubernetesDashboard field is set. */ @java.lang.Override @@ -213,7 +213,7 @@ public boolean hasKubernetesDashboard() { * * * @deprecated google.container.v1.AddonsConfig.kubernetes_dashboard is deprecated. See - * google/container/v1/cluster_service.proto;l=1207 + * google/container/v1/cluster_service.proto;l=1274 * @return The kubernetesDashboard. */ @java.lang.Override @@ -1928,7 +1928,7 @@ public Builder clearHorizontalPodAutoscaling() { * * * @deprecated google.container.v1.AddonsConfig.kubernetes_dashboard is deprecated. See - * google/container/v1/cluster_service.proto;l=1207 + * google/container/v1/cluster_service.proto;l=1274 * @return Whether the kubernetesDashboard field is set. */ @java.lang.Deprecated @@ -1950,7 +1950,7 @@ public boolean hasKubernetesDashboard() { * * * @deprecated google.container.v1.AddonsConfig.kubernetes_dashboard is deprecated. See - * google/container/v1/cluster_service.proto;l=1207 + * google/container/v1/cluster_service.proto;l=1274 * @return The kubernetesDashboard. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfigOrBuilder.java index 025d22055d6e..3d911d360e5f 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfigOrBuilder.java @@ -118,7 +118,7 @@ public interface AddonsConfigOrBuilder * * * @deprecated google.container.v1.AddonsConfig.kubernetes_dashboard is deprecated. See - * google/container/v1/cluster_service.proto;l=1207 + * google/container/v1/cluster_service.proto;l=1274 * @return Whether the kubernetesDashboard field is set. */ @java.lang.Deprecated @@ -138,7 +138,7 @@ public interface AddonsConfigOrBuilder * * * @deprecated google.container.v1.AddonsConfig.kubernetes_dashboard is deprecated. See - * google/container/v1/cluster_service.proto;l=1207 + * google/container/v1/cluster_service.proto;l=1274 * @return The kubernetesDashboard. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdvancedMachineFeatures.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdvancedMachineFeatures.java index a3a4c060b309..4ab90b69a795 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdvancedMachineFeatures.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdvancedMachineFeatures.java @@ -99,6 +99,39 @@ public long getThreadsPerCore() { return threadsPerCore_; } + public static final int ENABLE_NESTED_VIRTUALIZATION_FIELD_NUMBER = 2; + private boolean enableNestedVirtualization_ = false; + /** + * + * + *

+   * Whether or not to enable nested virtualization (defaults to false).
+   * 
+ * + * optional bool enable_nested_virtualization = 2; + * + * @return Whether the enableNestedVirtualization field is set. + */ + @java.lang.Override + public boolean hasEnableNestedVirtualization() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Whether or not to enable nested virtualization (defaults to false).
+   * 
+ * + * optional bool enable_nested_virtualization = 2; + * + * @return The enableNestedVirtualization. + */ + @java.lang.Override + public boolean getEnableNestedVirtualization() { + return enableNestedVirtualization_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -116,6 +149,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(1, threadsPerCore_); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeBool(2, enableNestedVirtualization_); + } getUnknownFields().writeTo(output); } @@ -128,6 +164,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, threadsPerCore_); } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableNestedVirtualization_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -148,6 +187,10 @@ public boolean equals(final java.lang.Object obj) { if (hasThreadsPerCore()) { if (getThreadsPerCore() != other.getThreadsPerCore()) return false; } + if (hasEnableNestedVirtualization() != other.hasEnableNestedVirtualization()) return false; + if (hasEnableNestedVirtualization()) { + if (getEnableNestedVirtualization() != other.getEnableNestedVirtualization()) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -163,6 +206,11 @@ public int hashCode() { hash = (37 * hash) + THREADS_PER_CORE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getThreadsPerCore()); } + if (hasEnableNestedVirtualization()) { + hash = (37 * hash) + ENABLE_NESTED_VIRTUALIZATION_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableNestedVirtualization()); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -303,6 +351,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; threadsPerCore_ = 0L; + enableNestedVirtualization_ = false; return this; } @@ -344,6 +393,10 @@ private void buildPartial0(com.google.container.v1.AdvancedMachineFeatures resul result.threadsPerCore_ = threadsPerCore_; to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.enableNestedVirtualization_ = enableNestedVirtualization_; + to_bitField0_ |= 0x00000002; + } result.bitField0_ |= to_bitField0_; } @@ -396,6 +449,9 @@ public Builder mergeFrom(com.google.container.v1.AdvancedMachineFeatures other) if (other.hasThreadsPerCore()) { setThreadsPerCore(other.getThreadsPerCore()); } + if (other.hasEnableNestedVirtualization()) { + setEnableNestedVirtualization(other.getEnableNestedVirtualization()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -428,6 +484,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 8 + case 16: + { + enableNestedVirtualization_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -523,6 +585,74 @@ public Builder clearThreadsPerCore() { return this; } + private boolean enableNestedVirtualization_; + /** + * + * + *
+     * Whether or not to enable nested virtualization (defaults to false).
+     * 
+ * + * optional bool enable_nested_virtualization = 2; + * + * @return Whether the enableNestedVirtualization field is set. + */ + @java.lang.Override + public boolean hasEnableNestedVirtualization() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Whether or not to enable nested virtualization (defaults to false).
+     * 
+ * + * optional bool enable_nested_virtualization = 2; + * + * @return The enableNestedVirtualization. + */ + @java.lang.Override + public boolean getEnableNestedVirtualization() { + return enableNestedVirtualization_; + } + /** + * + * + *
+     * Whether or not to enable nested virtualization (defaults to false).
+     * 
+ * + * optional bool enable_nested_virtualization = 2; + * + * @param value The enableNestedVirtualization to set. + * @return This builder for chaining. + */ + public Builder setEnableNestedVirtualization(boolean value) { + + enableNestedVirtualization_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether or not to enable nested virtualization (defaults to false).
+     * 
+ * + * optional bool enable_nested_virtualization = 2; + * + * @return This builder for chaining. + */ + public Builder clearEnableNestedVirtualization() { + bitField0_ = (bitField0_ & ~0x00000002); + enableNestedVirtualization_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdvancedMachineFeaturesOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdvancedMachineFeaturesOrBuilder.java index 8b32ecad81b5..cf9f201ce4fc 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdvancedMachineFeaturesOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AdvancedMachineFeaturesOrBuilder.java @@ -52,4 +52,29 @@ public interface AdvancedMachineFeaturesOrBuilder * @return The threadsPerCore. */ long getThreadsPerCore(); + + /** + * + * + *
+   * Whether or not to enable nested virtualization (defaults to false).
+   * 
+ * + * optional bool enable_nested_virtualization = 2; + * + * @return Whether the enableNestedVirtualization field is set. + */ + boolean hasEnableNestedVirtualization(); + /** + * + * + *
+   * Whether or not to enable nested virtualization (defaults to false).
+   * 
+ * + * optional bool enable_nested_virtualization = 2; + * + * @return The enableNestedVirtualization. + */ + boolean getEnableNestedVirtualization(); } diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaults.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaults.java index b07bedd3bd28..40d5f70f563c 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaults.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaults.java @@ -310,7 +310,7 @@ public com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder() * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1/cluster_service.proto;l=3953 + * deprecated. See google/container/v1/cluster_service.proto;l=4067 * @return The minCpuPlatform. */ @java.lang.Override @@ -346,7 +346,7 @@ public java.lang.String getMinCpuPlatform() { * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1/cluster_service.proto;l=3953 + * deprecated. See google/container/v1/cluster_service.proto;l=4067 * @return The bytes for minCpuPlatform. */ @java.lang.Override @@ -1963,7 +1963,7 @@ public com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder() * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1/cluster_service.proto;l=3953 + * deprecated. See google/container/v1/cluster_service.proto;l=4067 * @return The minCpuPlatform. */ @java.lang.Deprecated @@ -1998,7 +1998,7 @@ public java.lang.String getMinCpuPlatform() { * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1/cluster_service.proto;l=3953 + * deprecated. See google/container/v1/cluster_service.proto;l=4067 * @return The bytes for minCpuPlatform. */ @java.lang.Deprecated @@ -2033,7 +2033,7 @@ public com.google.protobuf.ByteString getMinCpuPlatformBytes() { * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1/cluster_service.proto;l=3953 + * deprecated. See google/container/v1/cluster_service.proto;l=4067 * @param value The minCpuPlatform to set. * @return This builder for chaining. */ @@ -2067,7 +2067,7 @@ public Builder setMinCpuPlatform(java.lang.String value) { * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1/cluster_service.proto;l=3953 + * deprecated. See google/container/v1/cluster_service.proto;l=4067 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2097,7 +2097,7 @@ public Builder clearMinCpuPlatform() { * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1/cluster_service.proto;l=3953 + * deprecated. See google/container/v1/cluster_service.proto;l=4067 * @param value The bytes for minCpuPlatform to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaultsOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaultsOrBuilder.java index eb0dc56d2222..8ea9e72dfbb5 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaultsOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaultsOrBuilder.java @@ -190,7 +190,7 @@ public interface AutoprovisioningNodePoolDefaultsOrBuilder * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1/cluster_service.proto;l=3953 + * deprecated. See google/container/v1/cluster_service.proto;l=4067 * @return The minCpuPlatform. */ @java.lang.Deprecated @@ -215,7 +215,7 @@ public interface AutoprovisioningNodePoolDefaultsOrBuilder * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1/cluster_service.proto;l=3953 + * deprecated. See google/container/v1/cluster_service.proto;l=4067 * @return The bytes for minCpuPlatform. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorization.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorization.java index 044f33be7758..f9b3c7c878c1 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorization.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorization.java @@ -238,7 +238,7 @@ private EvaluationMode(int value) { * bool enabled = 1 [deprecated = true]; * * @deprecated google.container.v1.BinaryAuthorization.enabled is deprecated. See - * google/container/v1/cluster_service.proto;l=1461 + * google/container/v1/cluster_service.proto;l=1528 * @return The enabled. */ @java.lang.Override @@ -664,7 +664,7 @@ public Builder mergeFrom( * bool enabled = 1 [deprecated = true]; * * @deprecated google.container.v1.BinaryAuthorization.enabled is deprecated. See - * google/container/v1/cluster_service.proto;l=1461 + * google/container/v1/cluster_service.proto;l=1528 * @return The enabled. */ @java.lang.Override @@ -684,7 +684,7 @@ public boolean getEnabled() { * bool enabled = 1 [deprecated = true]; * * @deprecated google.container.v1.BinaryAuthorization.enabled is deprecated. See - * google/container/v1/cluster_service.proto;l=1461 + * google/container/v1/cluster_service.proto;l=1528 * @param value The enabled to set. * @return This builder for chaining. */ @@ -708,7 +708,7 @@ public Builder setEnabled(boolean value) { * bool enabled = 1 [deprecated = true]; * * @deprecated google.container.v1.BinaryAuthorization.enabled is deprecated. See - * google/container/v1/cluster_service.proto;l=1461 + * google/container/v1/cluster_service.proto;l=1528 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorizationOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorizationOrBuilder.java index 6625e1bde563..6554634b35e3 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorizationOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorizationOrBuilder.java @@ -36,7 +36,7 @@ public interface BinaryAuthorizationOrBuilder * bool enabled = 1 [deprecated = true]; * * @deprecated google.container.v1.BinaryAuthorization.enabled is deprecated. See - * google/container/v1/cluster_service.proto;l=1461 + * google/container/v1/cluster_service.proto;l=1528 * @return The enabled. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequest.java index 9e6018dd0590..4d05bc475af6 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequest.java @@ -82,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3122 + * google/container/v1/cluster_service.proto;l=3236 * @return The projectId. */ @java.lang.Override @@ -110,7 +110,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3122 + * google/container/v1/cluster_service.proto;l=3236 * @return The bytes for projectId. */ @java.lang.Override @@ -144,7 +144,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3128 + * google/container/v1/cluster_service.proto;l=3242 * @return The zone. */ @java.lang.Override @@ -173,7 +173,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3128 + * google/container/v1/cluster_service.proto;l=3242 * @return The bytes for zone. */ @java.lang.Override @@ -205,7 +205,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3132 + * google/container/v1/cluster_service.proto;l=3246 * @return The operationId. */ @java.lang.Override @@ -232,7 +232,7 @@ public java.lang.String getOperationId() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3132 + * google/container/v1/cluster_service.proto;l=3246 * @return The bytes for operationId. */ @java.lang.Override @@ -728,7 +728,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3122 + * google/container/v1/cluster_service.proto;l=3236 * @return The projectId. */ @java.lang.Deprecated @@ -755,7 +755,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3122 + * google/container/v1/cluster_service.proto;l=3236 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -782,7 +782,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3122 + * google/container/v1/cluster_service.proto;l=3236 * @param value The projectId to set. * @return This builder for chaining. */ @@ -808,7 +808,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3122 + * google/container/v1/cluster_service.proto;l=3236 * @return This builder for chaining. */ @java.lang.Deprecated @@ -830,7 +830,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3122 + * google/container/v1/cluster_service.proto;l=3236 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -860,7 +860,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3128 + * google/container/v1/cluster_service.proto;l=3242 * @return The zone. */ @java.lang.Deprecated @@ -888,7 +888,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3128 + * google/container/v1/cluster_service.proto;l=3242 * @return The bytes for zone. */ @java.lang.Deprecated @@ -916,7 +916,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3128 + * google/container/v1/cluster_service.proto;l=3242 * @param value The zone to set. * @return This builder for chaining. */ @@ -943,7 +943,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3128 + * google/container/v1/cluster_service.proto;l=3242 * @return This builder for chaining. */ @java.lang.Deprecated @@ -966,7 +966,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3128 + * google/container/v1/cluster_service.proto;l=3242 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -994,7 +994,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3132 + * google/container/v1/cluster_service.proto;l=3246 * @return The operationId. */ @java.lang.Deprecated @@ -1020,7 +1020,7 @@ public java.lang.String getOperationId() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3132 + * google/container/v1/cluster_service.proto;l=3246 * @return The bytes for operationId. */ @java.lang.Deprecated @@ -1046,7 +1046,7 @@ public com.google.protobuf.ByteString getOperationIdBytes() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3132 + * google/container/v1/cluster_service.proto;l=3246 * @param value The operationId to set. * @return This builder for chaining. */ @@ -1071,7 +1071,7 @@ public Builder setOperationId(java.lang.String value) { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3132 + * google/container/v1/cluster_service.proto;l=3246 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1092,7 +1092,7 @@ public Builder clearOperationId() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3132 + * google/container/v1/cluster_service.proto;l=3246 * @param value The bytes for operationId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequestOrBuilder.java index 8216acb267e7..1de9bc9f9e6e 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface CancelOperationRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3122 + * google/container/v1/cluster_service.proto;l=3236 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface CancelOperationRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3122 + * google/container/v1/cluster_service.proto;l=3236 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface CancelOperationRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3128 + * google/container/v1/cluster_service.proto;l=3242 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface CancelOperationRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3128 + * google/container/v1/cluster_service.proto;l=3242 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface CancelOperationRequestOrBuilder * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3132 + * google/container/v1/cluster_service.proto;l=3246 * @return The operationId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface CancelOperationRequestOrBuilder * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3132 + * google/container/v1/cluster_service.proto;l=3246 * @return The bytes for operationId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Cluster.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Cluster.java index 64a2dc746b22..6b77580fabc3 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Cluster.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Cluster.java @@ -492,7 +492,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * int32 initial_node_count = 3 [deprecated = true]; * * @deprecated google.container.v1.Cluster.initial_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=1690 + * google/container/v1/cluster_service.proto;l=1757 * @return The initialNodeCount. */ @java.lang.Override @@ -523,7 +523,7 @@ public int getInitialNodeCount() { * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; * * @deprecated google.container.v1.Cluster.node_config is deprecated. See - * google/container/v1/cluster_service.proto;l=1703 + * google/container/v1/cluster_service.proto;l=1770 * @return Whether the nodeConfig field is set. */ @java.lang.Override @@ -551,7 +551,7 @@ public boolean hasNodeConfig() { * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; * * @deprecated google.container.v1.Cluster.node_config is deprecated. See - * google/container/v1/cluster_service.proto;l=1703 + * google/container/v1/cluster_service.proto;l=1770 * @return The nodeConfig. */ @java.lang.Override @@ -2591,7 +2591,7 @@ public com.google.protobuf.ByteString getSelfLinkBytes() { * string zone = 101 [deprecated = true]; * * @deprecated google.container.v1.Cluster.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=1874 + * google/container/v1/cluster_service.proto;l=1941 * @return The zone. */ @java.lang.Override @@ -2619,7 +2619,7 @@ public java.lang.String getZone() { * string zone = 101 [deprecated = true]; * * @deprecated google.container.v1.Cluster.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=1874 + * google/container/v1/cluster_service.proto;l=1941 * @return The bytes for zone. */ @java.lang.Override @@ -2841,7 +2841,7 @@ public com.google.protobuf.ByteString getCurrentMasterVersionBytes() { * string current_node_version = 105 [deprecated = true]; * * @deprecated google.container.v1.Cluster.current_node_version is deprecated. See - * google/container/v1/cluster_service.proto;l=1907 + * google/container/v1/cluster_service.proto;l=1974 * @return The currentNodeVersion. */ @java.lang.Override @@ -2871,7 +2871,7 @@ public java.lang.String getCurrentNodeVersion() { * string current_node_version = 105 [deprecated = true]; * * @deprecated google.container.v1.Cluster.current_node_version is deprecated. See - * google/container/v1/cluster_service.proto;l=1907 + * google/container/v1/cluster_service.proto;l=1974 * @return The bytes for currentNodeVersion. */ @java.lang.Override @@ -2992,7 +2992,7 @@ public com.google.container.v1.Cluster.Status getStatus() { * string status_message = 108 [deprecated = true]; * * @deprecated google.container.v1.Cluster.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=1919 + * google/container/v1/cluster_service.proto;l=1986 * @return The statusMessage. */ @java.lang.Override @@ -3020,7 +3020,7 @@ public java.lang.String getStatusMessage() { * string status_message = 108 [deprecated = true]; * * @deprecated google.container.v1.Cluster.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=1919 + * google/container/v1/cluster_service.proto;l=1986 * @return The bytes for statusMessage. */ @java.lang.Override @@ -3132,7 +3132,7 @@ public com.google.protobuf.ByteString getServicesIpv4CidrBytes() { * repeated string instance_group_urls = 111 [deprecated = true]; * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=1935 + * google/container/v1/cluster_service.proto;l=2002 * @return A list containing the instanceGroupUrls. */ @java.lang.Deprecated @@ -3149,7 +3149,7 @@ public com.google.protobuf.ProtocolStringList getInstanceGroupUrlsList() { * repeated string instance_group_urls = 111 [deprecated = true]; * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=1935 + * google/container/v1/cluster_service.proto;l=2002 * @return The count of instanceGroupUrls. */ @java.lang.Deprecated @@ -3166,7 +3166,7 @@ public int getInstanceGroupUrlsCount() { * repeated string instance_group_urls = 111 [deprecated = true]; * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=1935 + * google/container/v1/cluster_service.proto;l=2002 * @param index The index of the element to return. * @return The instanceGroupUrls at the given index. */ @@ -3184,7 +3184,7 @@ public java.lang.String getInstanceGroupUrls(int index) { * repeated string instance_group_urls = 111 [deprecated = true]; * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=1935 + * google/container/v1/cluster_service.proto;l=2002 * @param index The index of the value to return. * @return The bytes of the instanceGroupUrls at the given index. */ @@ -3206,7 +3206,7 @@ public com.google.protobuf.ByteString getInstanceGroupUrlsBytes(int index) { * int32 current_node_count = 112 [deprecated = true]; * * @deprecated google.container.v1.Cluster.current_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=1939 + * google/container/v1/cluster_service.proto;l=2006 * @return The currentNodeCount. */ @java.lang.Override @@ -4026,6 +4026,72 @@ public com.google.container.v1.EnterpriseConfigOrBuilder getEnterpriseConfigOrBu : enterpriseConfig_; } + public static final int SATISFIES_PZS_FIELD_NUMBER = 152; + private boolean satisfiesPzs_ = false; + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * optional bool satisfies_pzs = 152 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the satisfiesPzs field is set. + */ + @java.lang.Override + public boolean hasSatisfiesPzs() { + return ((bitField1_ & 0x00000004) != 0); + } + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * optional bool satisfies_pzs = 152 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + + public static final int SATISFIES_PZI_FIELD_NUMBER = 153; + private boolean satisfiesPzi_ = false; + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * optional bool satisfies_pzi = 153 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the satisfiesPzi field is set. + */ + @java.lang.Override + public boolean hasSatisfiesPzi() { + return ((bitField1_ & 0x00000008) != 0); + } + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * optional bool satisfies_pzi = 153 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + @java.lang.Override + public boolean getSatisfiesPzi() { + return satisfiesPzi_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -4240,6 +4306,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField1_ & 0x00000002) != 0)) { output.writeMessage(149, getEnterpriseConfig()); } + if (((bitField1_ & 0x00000004) != 0)) { + output.writeBool(152, satisfiesPzs_); + } + if (((bitField1_ & 0x00000008) != 0)) { + output.writeBool(153, satisfiesPzi_); + } getUnknownFields().writeTo(output); } @@ -4483,6 +4555,12 @@ public int getSerializedSize() { if (((bitField1_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(149, getEnterpriseConfig()); } + if (((bitField1_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(152, satisfiesPzs_); + } + if (((bitField1_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(153, satisfiesPzi_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -4671,6 +4749,14 @@ public boolean equals(final java.lang.Object obj) { if (hasEnterpriseConfig()) { if (!getEnterpriseConfig().equals(other.getEnterpriseConfig())) return false; } + if (hasSatisfiesPzs() != other.hasSatisfiesPzs()) return false; + if (hasSatisfiesPzs()) { + if (getSatisfiesPzs() != other.getSatisfiesPzs()) return false; + } + if (hasSatisfiesPzi() != other.hasSatisfiesPzi()) return false; + if (hasSatisfiesPzi()) { + if (getSatisfiesPzi() != other.getSatisfiesPzi()) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -4894,6 +4980,14 @@ public int hashCode() { hash = (37 * hash) + ENTERPRISE_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getEnterpriseConfig().hashCode(); } + if (hasSatisfiesPzs()) { + hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzs()); + } + if (hasSatisfiesPzi()) { + hash = (37 * hash) + SATISFIES_PZI_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzi()); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -5314,6 +5408,8 @@ public Builder clear() { enterpriseConfigBuilder_.dispose(); enterpriseConfigBuilder_ = null; } + satisfiesPzs_ = false; + satisfiesPzi_ = false; return this; } @@ -5688,6 +5784,14 @@ private void buildPartial2(com.google.container.v1.Cluster result) { enterpriseConfigBuilder_ == null ? enterpriseConfig_ : enterpriseConfigBuilder_.build(); to_bitField1_ |= 0x00000002; } + if (((from_bitField2_ & 0x00000008) != 0)) { + result.satisfiesPzs_ = satisfiesPzs_; + to_bitField1_ |= 0x00000004; + } + if (((from_bitField2_ & 0x00000010) != 0)) { + result.satisfiesPzi_ = satisfiesPzi_; + to_bitField1_ |= 0x00000008; + } result.bitField0_ |= to_bitField0_; result.bitField1_ |= to_bitField1_; } @@ -6043,6 +6147,12 @@ public Builder mergeFrom(com.google.container.v1.Cluster other) { if (other.hasEnterpriseConfig()) { mergeEnterpriseConfig(other.getEnterpriseConfig()); } + if (other.hasSatisfiesPzs()) { + setSatisfiesPzs(other.getSatisfiesPzs()); + } + if (other.hasSatisfiesPzi()) { + setSatisfiesPzi(other.getSatisfiesPzi()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -6515,6 +6625,18 @@ public Builder mergeFrom( bitField2_ |= 0x00000004; break; } // case 1194 + case 1216: + { + satisfiesPzs_ = input.readBool(); + bitField2_ |= 0x00000008; + break; + } // case 1216 + case 1224: + { + satisfiesPzi_ = input.readBool(); + bitField2_ |= 0x00000010; + break; + } // case 1224 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -6798,7 +6920,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * int32 initial_node_count = 3 [deprecated = true]; * * @deprecated google.container.v1.Cluster.initial_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=1690 + * google/container/v1/cluster_service.proto;l=1757 * @return The initialNodeCount. */ @java.lang.Override @@ -6825,7 +6947,7 @@ public int getInitialNodeCount() { * int32 initial_node_count = 3 [deprecated = true]; * * @deprecated google.container.v1.Cluster.initial_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=1690 + * google/container/v1/cluster_service.proto;l=1757 * @param value The initialNodeCount to set. * @return This builder for chaining. */ @@ -6856,7 +6978,7 @@ public Builder setInitialNodeCount(int value) { * int32 initial_node_count = 3 [deprecated = true]; * * @deprecated google.container.v1.Cluster.initial_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=1690 + * google/container/v1/cluster_service.proto;l=1757 * @return This builder for chaining. */ @java.lang.Deprecated @@ -6893,7 +7015,7 @@ public Builder clearInitialNodeCount() { * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; * * @deprecated google.container.v1.Cluster.node_config is deprecated. See - * google/container/v1/cluster_service.proto;l=1703 + * google/container/v1/cluster_service.proto;l=1770 * @return Whether the nodeConfig field is set. */ @java.lang.Deprecated @@ -6920,7 +7042,7 @@ public boolean hasNodeConfig() { * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; * * @deprecated google.container.v1.Cluster.node_config is deprecated. See - * google/container/v1/cluster_service.proto;l=1703 + * google/container/v1/cluster_service.proto;l=1770 * @return The nodeConfig. */ @java.lang.Deprecated @@ -13596,7 +13718,7 @@ public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { * string zone = 101 [deprecated = true]; * * @deprecated google.container.v1.Cluster.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=1874 + * google/container/v1/cluster_service.proto;l=1941 * @return The zone. */ @java.lang.Deprecated @@ -13623,7 +13745,7 @@ public java.lang.String getZone() { * string zone = 101 [deprecated = true]; * * @deprecated google.container.v1.Cluster.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=1874 + * google/container/v1/cluster_service.proto;l=1941 * @return The bytes for zone. */ @java.lang.Deprecated @@ -13650,7 +13772,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 101 [deprecated = true]; * * @deprecated google.container.v1.Cluster.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=1874 + * google/container/v1/cluster_service.proto;l=1941 * @param value The zone to set. * @return This builder for chaining. */ @@ -13676,7 +13798,7 @@ public Builder setZone(java.lang.String value) { * string zone = 101 [deprecated = true]; * * @deprecated google.container.v1.Cluster.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=1874 + * google/container/v1/cluster_service.proto;l=1941 * @return This builder for chaining. */ @java.lang.Deprecated @@ -13698,7 +13820,7 @@ public Builder clearZone() { * string zone = 101 [deprecated = true]; * * @deprecated google.container.v1.Cluster.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=1874 + * google/container/v1/cluster_service.proto;l=1941 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -14132,7 +14254,7 @@ public Builder setCurrentMasterVersionBytes(com.google.protobuf.ByteString value * string current_node_version = 105 [deprecated = true]; * * @deprecated google.container.v1.Cluster.current_node_version is deprecated. See - * google/container/v1/cluster_service.proto;l=1907 + * google/container/v1/cluster_service.proto;l=1974 * @return The currentNodeVersion. */ @java.lang.Deprecated @@ -14161,7 +14283,7 @@ public java.lang.String getCurrentNodeVersion() { * string current_node_version = 105 [deprecated = true]; * * @deprecated google.container.v1.Cluster.current_node_version is deprecated. See - * google/container/v1/cluster_service.proto;l=1907 + * google/container/v1/cluster_service.proto;l=1974 * @return The bytes for currentNodeVersion. */ @java.lang.Deprecated @@ -14190,7 +14312,7 @@ public com.google.protobuf.ByteString getCurrentNodeVersionBytes() { * string current_node_version = 105 [deprecated = true]; * * @deprecated google.container.v1.Cluster.current_node_version is deprecated. See - * google/container/v1/cluster_service.proto;l=1907 + * google/container/v1/cluster_service.proto;l=1974 * @param value The currentNodeVersion to set. * @return This builder for chaining. */ @@ -14218,7 +14340,7 @@ public Builder setCurrentNodeVersion(java.lang.String value) { * string current_node_version = 105 [deprecated = true]; * * @deprecated google.container.v1.Cluster.current_node_version is deprecated. See - * google/container/v1/cluster_service.proto;l=1907 + * google/container/v1/cluster_service.proto;l=1974 * @return This builder for chaining. */ @java.lang.Deprecated @@ -14242,7 +14364,7 @@ public Builder clearCurrentNodeVersion() { * string current_node_version = 105 [deprecated = true]; * * @deprecated google.container.v1.Cluster.current_node_version is deprecated. See - * google/container/v1/cluster_service.proto;l=1907 + * google/container/v1/cluster_service.proto;l=1974 * @param value The bytes for currentNodeVersion to set. * @return This builder for chaining. */ @@ -14472,7 +14594,7 @@ public Builder clearStatus() { * string status_message = 108 [deprecated = true]; * * @deprecated google.container.v1.Cluster.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=1919 + * google/container/v1/cluster_service.proto;l=1986 * @return The statusMessage. */ @java.lang.Deprecated @@ -14499,7 +14621,7 @@ public java.lang.String getStatusMessage() { * string status_message = 108 [deprecated = true]; * * @deprecated google.container.v1.Cluster.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=1919 + * google/container/v1/cluster_service.proto;l=1986 * @return The bytes for statusMessage. */ @java.lang.Deprecated @@ -14526,7 +14648,7 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { * string status_message = 108 [deprecated = true]; * * @deprecated google.container.v1.Cluster.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=1919 + * google/container/v1/cluster_service.proto;l=1986 * @param value The statusMessage to set. * @return This builder for chaining. */ @@ -14552,7 +14674,7 @@ public Builder setStatusMessage(java.lang.String value) { * string status_message = 108 [deprecated = true]; * * @deprecated google.container.v1.Cluster.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=1919 + * google/container/v1/cluster_service.proto;l=1986 * @return This builder for chaining. */ @java.lang.Deprecated @@ -14574,7 +14696,7 @@ public Builder clearStatusMessage() { * string status_message = 108 [deprecated = true]; * * @deprecated google.container.v1.Cluster.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=1919 + * google/container/v1/cluster_service.proto;l=1986 * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ @@ -14797,7 +14919,7 @@ private void ensureInstanceGroupUrlsIsMutable() { * repeated string instance_group_urls = 111 [deprecated = true]; * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=1935 + * google/container/v1/cluster_service.proto;l=2002 * @return A list containing the instanceGroupUrls. */ @java.lang.Deprecated @@ -14815,7 +14937,7 @@ public com.google.protobuf.ProtocolStringList getInstanceGroupUrlsList() { * repeated string instance_group_urls = 111 [deprecated = true]; * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=1935 + * google/container/v1/cluster_service.proto;l=2002 * @return The count of instanceGroupUrls. */ @java.lang.Deprecated @@ -14832,7 +14954,7 @@ public int getInstanceGroupUrlsCount() { * repeated string instance_group_urls = 111 [deprecated = true]; * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=1935 + * google/container/v1/cluster_service.proto;l=2002 * @param index The index of the element to return. * @return The instanceGroupUrls at the given index. */ @@ -14850,7 +14972,7 @@ public java.lang.String getInstanceGroupUrls(int index) { * repeated string instance_group_urls = 111 [deprecated = true]; * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=1935 + * google/container/v1/cluster_service.proto;l=2002 * @param index The index of the value to return. * @return The bytes of the instanceGroupUrls at the given index. */ @@ -14868,7 +14990,7 @@ public com.google.protobuf.ByteString getInstanceGroupUrlsBytes(int index) { * repeated string instance_group_urls = 111 [deprecated = true]; * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=1935 + * google/container/v1/cluster_service.proto;l=2002 * @param index The index to set the value at. * @param value The instanceGroupUrls to set. * @return This builder for chaining. @@ -14894,7 +15016,7 @@ public Builder setInstanceGroupUrls(int index, java.lang.String value) { * repeated string instance_group_urls = 111 [deprecated = true]; * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=1935 + * google/container/v1/cluster_service.proto;l=2002 * @param value The instanceGroupUrls to add. * @return This builder for chaining. */ @@ -14919,7 +15041,7 @@ public Builder addInstanceGroupUrls(java.lang.String value) { * repeated string instance_group_urls = 111 [deprecated = true]; * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=1935 + * google/container/v1/cluster_service.proto;l=2002 * @param values The instanceGroupUrls to add. * @return This builder for chaining. */ @@ -14941,7 +15063,7 @@ public Builder addAllInstanceGroupUrls(java.lang.Iterable valu * repeated string instance_group_urls = 111 [deprecated = true]; * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=1935 + * google/container/v1/cluster_service.proto;l=2002 * @return This builder for chaining. */ @java.lang.Deprecated @@ -14962,7 +15084,7 @@ public Builder clearInstanceGroupUrls() { * repeated string instance_group_urls = 111 [deprecated = true]; * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=1935 + * google/container/v1/cluster_service.proto;l=2002 * @param value The bytes of the instanceGroupUrls to add. * @return This builder for chaining. */ @@ -14991,7 +15113,7 @@ public Builder addInstanceGroupUrlsBytes(com.google.protobuf.ByteString value) { * int32 current_node_count = 112 [deprecated = true]; * * @deprecated google.container.v1.Cluster.current_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=1939 + * google/container/v1/cluster_service.proto;l=2006 * @return The currentNodeCount. */ @java.lang.Override @@ -15010,7 +15132,7 @@ public int getCurrentNodeCount() { * int32 current_node_count = 112 [deprecated = true]; * * @deprecated google.container.v1.Cluster.current_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=1939 + * google/container/v1/cluster_service.proto;l=2006 * @param value The currentNodeCount to set. * @return This builder for chaining. */ @@ -15033,7 +15155,7 @@ public Builder setCurrentNodeCount(int value) { * int32 current_node_count = 112 [deprecated = true]; * * @deprecated google.container.v1.Cluster.current_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=1939 + * google/container/v1/cluster_service.proto;l=2006 * @return This builder for chaining. */ @java.lang.Deprecated @@ -17710,6 +17832,142 @@ public com.google.container.v1.EnterpriseConfigOrBuilder getEnterpriseConfigOrBu return enterpriseConfigBuilder_; } + private boolean satisfiesPzs_; + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * optional bool satisfies_pzs = 152 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the satisfiesPzs field is set. + */ + @java.lang.Override + public boolean hasSatisfiesPzs() { + return ((bitField2_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * optional bool satisfies_pzs = 152 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * optional bool satisfies_pzs = 152 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The satisfiesPzs to set. + * @return This builder for chaining. + */ + public Builder setSatisfiesPzs(boolean value) { + + satisfiesPzs_ = value; + bitField2_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * optional bool satisfies_pzs = 152 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSatisfiesPzs() { + bitField2_ = (bitField2_ & ~0x00000008); + satisfiesPzs_ = false; + onChanged(); + return this; + } + + private boolean satisfiesPzi_; + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * optional bool satisfies_pzi = 153 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the satisfiesPzi field is set. + */ + @java.lang.Override + public boolean hasSatisfiesPzi() { + return ((bitField2_ & 0x00000010) != 0); + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * optional bool satisfies_pzi = 153 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + @java.lang.Override + public boolean getSatisfiesPzi() { + return satisfiesPzi_; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * optional bool satisfies_pzi = 153 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The satisfiesPzi to set. + * @return This builder for chaining. + */ + public Builder setSatisfiesPzi(boolean value) { + + satisfiesPzi_ = value; + bitField2_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * optional bool satisfies_pzi = 153 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSatisfiesPzi() { + bitField2_ = (bitField2_ & ~0x00000010); + satisfiesPzi_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterOrBuilder.java index 1d5e217db98c..5431b46cc643 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterOrBuilder.java @@ -105,7 +105,7 @@ public interface ClusterOrBuilder * int32 initial_node_count = 3 [deprecated = true]; * * @deprecated google.container.v1.Cluster.initial_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=1690 + * google/container/v1/cluster_service.proto;l=1757 * @return The initialNodeCount. */ @java.lang.Deprecated @@ -131,7 +131,7 @@ public interface ClusterOrBuilder * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; * * @deprecated google.container.v1.Cluster.node_config is deprecated. See - * google/container/v1/cluster_service.proto;l=1703 + * google/container/v1/cluster_service.proto;l=1770 * @return Whether the nodeConfig field is set. */ @java.lang.Deprecated @@ -156,7 +156,7 @@ public interface ClusterOrBuilder * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; * * @deprecated google.container.v1.Cluster.node_config is deprecated. See - * google/container/v1/cluster_service.proto;l=1703 + * google/container/v1/cluster_service.proto;l=1770 * @return The nodeConfig. */ @java.lang.Deprecated @@ -1553,7 +1553,7 @@ java.lang.String getResourceLabelsOrDefault( * string zone = 101 [deprecated = true]; * * @deprecated google.container.v1.Cluster.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=1874 + * google/container/v1/cluster_service.proto;l=1941 * @return The zone. */ @java.lang.Deprecated @@ -1570,7 +1570,7 @@ java.lang.String getResourceLabelsOrDefault( * string zone = 101 [deprecated = true]; * * @deprecated google.container.v1.Cluster.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=1874 + * google/container/v1/cluster_service.proto;l=1941 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1699,7 +1699,7 @@ java.lang.String getResourceLabelsOrDefault( * string current_node_version = 105 [deprecated = true]; * * @deprecated google.container.v1.Cluster.current_node_version is deprecated. See - * google/container/v1/cluster_service.proto;l=1907 + * google/container/v1/cluster_service.proto;l=1974 * @return The currentNodeVersion. */ @java.lang.Deprecated @@ -1718,7 +1718,7 @@ java.lang.String getResourceLabelsOrDefault( * string current_node_version = 105 [deprecated = true]; * * @deprecated google.container.v1.Cluster.current_node_version is deprecated. See - * google/container/v1/cluster_service.proto;l=1907 + * google/container/v1/cluster_service.proto;l=1974 * @return The bytes for currentNodeVersion. */ @java.lang.Deprecated @@ -1788,7 +1788,7 @@ java.lang.String getResourceLabelsOrDefault( * string status_message = 108 [deprecated = true]; * * @deprecated google.container.v1.Cluster.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=1919 + * google/container/v1/cluster_service.proto;l=1986 * @return The statusMessage. */ @java.lang.Deprecated @@ -1805,7 +1805,7 @@ java.lang.String getResourceLabelsOrDefault( * string status_message = 108 [deprecated = true]; * * @deprecated google.container.v1.Cluster.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=1919 + * google/container/v1/cluster_service.proto;l=1986 * @return The bytes for statusMessage. */ @java.lang.Deprecated @@ -1870,7 +1870,7 @@ java.lang.String getResourceLabelsOrDefault( * repeated string instance_group_urls = 111 [deprecated = true]; * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=1935 + * google/container/v1/cluster_service.proto;l=2002 * @return A list containing the instanceGroupUrls. */ @java.lang.Deprecated @@ -1885,7 +1885,7 @@ java.lang.String getResourceLabelsOrDefault( * repeated string instance_group_urls = 111 [deprecated = true]; * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=1935 + * google/container/v1/cluster_service.proto;l=2002 * @return The count of instanceGroupUrls. */ @java.lang.Deprecated @@ -1900,7 +1900,7 @@ java.lang.String getResourceLabelsOrDefault( * repeated string instance_group_urls = 111 [deprecated = true]; * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=1935 + * google/container/v1/cluster_service.proto;l=2002 * @param index The index of the element to return. * @return The instanceGroupUrls at the given index. */ @@ -1916,7 +1916,7 @@ java.lang.String getResourceLabelsOrDefault( * repeated string instance_group_urls = 111 [deprecated = true]; * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=1935 + * google/container/v1/cluster_service.proto;l=2002 * @param index The index of the value to return. * @return The bytes of the instanceGroupUrls at the given index. */ @@ -1934,7 +1934,7 @@ java.lang.String getResourceLabelsOrDefault( * int32 current_node_count = 112 [deprecated = true]; * * @deprecated google.container.v1.Cluster.current_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=1939 + * google/container/v1/cluster_service.proto;l=2006 * @return The currentNodeCount. */ @java.lang.Deprecated @@ -2468,4 +2468,54 @@ java.lang.String getResourceLabelsOrDefault( * .google.container.v1.EnterpriseConfig enterprise_config = 149; */ com.google.container.v1.EnterpriseConfigOrBuilder getEnterpriseConfigOrBuilder(); + + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * optional bool satisfies_pzs = 152 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the satisfiesPzs field is set. + */ + boolean hasSatisfiesPzs(); + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * optional bool satisfies_pzs = 152 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + boolean getSatisfiesPzs(); + + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * optional bool satisfies_pzi = 153 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the satisfiesPzi field is set. + */ + boolean hasSatisfiesPzi(); + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * optional bool satisfies_pzi = 153 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + boolean getSatisfiesPzi(); } diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterServiceProto.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterServiceProto.java index d5d09bf5b2ef..5dd00f528bd2 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterServiceProto.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterServiceProto.java @@ -32,6 +32,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_container_v1_LinuxNodeConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_container_v1_LinuxNodeConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_LinuxNodeConfig_HugepagesConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_LinuxNodeConfig_HugepagesConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_container_v1_LinuxNodeConfig_SysctlsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -104,6 +108,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_container_v1_SoleTenantConfig_NodeAffinity_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_container_v1_SoleTenantConfig_NodeAffinity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_ContainerdConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_ContainerdConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_ContainerdConfig_PrivateRegistryAccessConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_ContainerdConfig_PrivateRegistryAccessConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_ContainerdConfig_PrivateRegistryAccessConfig_CertificateAuthorityDomainConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_ContainerdConfig_PrivateRegistryAccessConfig_CertificateAuthorityDomainConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_ContainerdConfig_PrivateRegistryAccessConfig_CertificateAuthorityDomainConfig_GCPSecretManagerCertificateConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_ContainerdConfig_PrivateRegistryAccessConfig_CertificateAuthorityDomainConfig_GCPSecretManagerCertificateConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_container_v1_NodeTaint_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -797,1289 +817,1334 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ation.proto\032\033google/protobuf/empty.proto" + "\032\037google/protobuf/timestamp.proto\032\036googl" + "e/protobuf/wrappers.proto\032\025google/rpc/co" - + "de.proto\032\027google/rpc/status.proto\"\236\002\n\017Li" + + "de.proto\032\027google/rpc/status.proto\"\200\004\n\017Li" + "nuxNodeConfig\022B\n\007sysctls\030\001 \003(\01321.google." + "container.v1.LinuxNodeConfig.SysctlsEntr" + "y\022D\n\013cgroup_mode\030\002 \001(\0162/.google.containe" - + "r.v1.LinuxNodeConfig.CgroupMode\032.\n\014Sysct" - + "lsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" - + "Q\n\nCgroupMode\022\033\n\027CGROUP_MODE_UNSPECIFIED" - + "\020\000\022\022\n\016CGROUP_MODE_V1\020\001\022\022\n\016CGROUP_MODE_V2" - + "\020\002\"\264\001\n\021WindowsNodeConfig\022D\n\nos_version\030\001" - + " \001(\01620.google.container.v1.WindowsNodeCo" - + "nfig.OSVersion\"Y\n\tOSVersion\022\032\n\026OS_VERSIO" - + "N_UNSPECIFIED\020\000\022\027\n\023OS_VERSION_LTSC2019\020\001" - + "\022\027\n\023OS_VERSION_LTSC2022\020\002\"\370\001\n\021NodeKubele" - + "tConfig\022\032\n\022cpu_manager_policy\030\001 \001(\t\0221\n\rc" - + "pu_cfs_quota\030\002 \001(\0132\032.google.protobuf.Boo" - + "lValue\022\034\n\024cpu_cfs_quota_period\030\003 \001(\t\022\026\n\016" - + "pod_pids_limit\030\004 \001(\003\0223\n&insecure_kubelet" - + "_readonly_port_enabled\030\007 \001(\010H\000\210\001\001B)\n\'_in" - + "secure_kubelet_readonly_port_enabled\"\244\021\n" - + "\nNodeConfig\022\024\n\014machine_type\030\001 \001(\t\022\024\n\014dis" - + "k_size_gb\030\002 \001(\005\022\024\n\014oauth_scopes\030\003 \003(\t\022\027\n" - + "\017service_account\030\t \001(\t\022?\n\010metadata\030\004 \003(\013" - + "2-.google.container.v1.NodeConfig.Metada" - + "taEntry\022\022\n\nimage_type\030\005 \001(\t\022;\n\006labels\030\006 " - + "\003(\0132+.google.container.v1.NodeConfig.Lab" - + "elsEntry\022\027\n\017local_ssd_count\030\007 \001(\005\022\014\n\004tag" - + "s\030\010 \003(\t\022\023\n\013preemptible\030\n \001(\010\022<\n\014accelera" - + "tors\030\013 \003(\0132&.google.container.v1.Acceler" - + "atorConfig\022\021\n\tdisk_type\030\014 \001(\t\022\030\n\020min_cpu" - + "_platform\030\r \001(\t\022M\n\030workload_metadata_con" - + "fig\030\016 \001(\0132+.google.container.v1.Workload" - + "MetadataConfig\022.\n\006taints\030\017 \003(\0132\036.google." - + "container.v1.NodeTaint\022:\n\016sandbox_config" - + "\030\021 \001(\0132\".google.container.v1.SandboxConf" - + "ig\022\022\n\nnode_group\030\022 \001(\t\022F\n\024reservation_af" - + "finity\030\023 \001(\0132(.google.container.v1.Reser" - + "vationAffinity\022M\n\030shielded_instance_conf" - + "ig\030\024 \001(\0132+.google.container.v1.ShieldedI" - + "nstanceConfig\022?\n\021linux_node_config\030\025 \001(\013" - + "2$.google.container.v1.LinuxNodeConfig\022>" - + "\n\016kubelet_config\030\026 \001(\0132&.google.containe" - + "r.v1.NodeKubeletConfig\022\031\n\021boot_disk_kms_" - + "key\030\027 \001(\t\0224\n\013gcfs_config\030\031 \001(\0132\037.google." - + "container.v1.GcfsConfig\022O\n\031advanced_mach" - + "ine_features\030\032 \001(\0132,.google.container.v1" - + ".AdvancedMachineFeatures\022.\n\005gvnic\030\035 \001(\0132" - + "\037.google.container.v1.VirtualNIC\022\014\n\004spot" - + "\030 \001(\010\022B\n\022confidential_nodes\030# \001(\0132&.goo" - + "gle.container.v1.ConfidentialNodes\0229\n\013fa" - + "st_socket\030$ \001(\0132\037.google.container.v1.Fa" - + "stSocketH\000\210\001\001\022L\n\017resource_labels\030% \003(\01323" - + ".google.container.v1.NodeConfig.Resource" - + "LabelsEntry\022B\n\016logging_config\030& \001(\0132*.go" - + "ogle.container.v1.NodePoolLoggingConfig\022" - + "C\n\023windows_node_config\030\' \001(\0132&.google.co" - + "ntainer.v1.WindowsNodeConfig\022Q\n\033local_nv" - + "me_ssd_block_config\030( \001(\0132,.google.conta" - + "iner.v1.LocalNvmeSsdBlockConfig\022_\n\"ephem" - + "eral_storage_local_ssd_config\030) \001(\01323.go" - + "ogle.container.v1.EphemeralStorageLocalS" - + "sdConfig\022A\n\022sole_tenant_config\030* \001(\0132%.g" - + "oogle.container.v1.SoleTenantConfig\022G\n\025r" - + "esource_manager_tags\030- \001(\0132(.google.cont" - + "ainer.v1.ResourceManagerTags\022(\n\033enable_c" - + "onfidential_storage\030. \001(\010B\003\340A\001\022D\n\024second" - + "ary_boot_disks\0300 \003(\0132&.google.container." - + "v1.SecondaryBootDisk\022f\n#secondary_boot_d" - + "isk_update_strategy\0302 \001(\01324.google.conta" - + "iner.v1.SecondaryBootDiskUpdateStrategyH" - + "\001\210\001\001\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" - + "lue\030\002 \001(\t:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(" - + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\0325\n\023ResourceLabelsEn" - + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\016\n\014_" - + "fast_socketB&\n$_secondary_boot_disk_upda" - + "te_strategy\"M\n\027AdvancedMachineFeatures\022\035" - + "\n\020threads_per_core\030\001 \001(\003H\000\210\001\001B\023\n\021_thread" - + "s_per_core\"\263\006\n\021NodeNetworkConfig\022\035\n\020crea" - + "te_pod_range\030\004 \001(\010B\003\340A\004\022\021\n\tpod_range\030\005 \001" - + "(\t\022\033\n\023pod_ipv4_cidr_block\030\006 \001(\t\022!\n\024enabl" - + "e_private_nodes\030\t \001(\010H\000\210\001\001\022h\n\032network_pe" - + "rformance_config\030\013 \001(\0132?.google.containe" - + "r.v1.NodeNetworkConfig.NetworkPerformanc" - + "eConfigH\001\210\001\001\022V\n\035pod_cidr_overprovision_c" - + "onfig\030\r \001(\0132/.google.container.v1.PodCID" - + "ROverprovisionConfig\022Y\n\037additional_node_" - + "network_configs\030\016 \003(\01320.google.container" - + ".v1.AdditionalNodeNetworkConfig\022W\n\036addit" - + "ional_pod_network_configs\030\017 \003(\0132/.google" - + ".container.v1.AdditionalPodNetworkConfig" - + "\022\'\n\032pod_ipv4_range_utilization\030\020 \001(\001B\003\340A" - + "\003\032\324\001\n\030NetworkPerformanceConfig\022n\n\033total_" - + "egress_bandwidth_tier\030\001 \001(\0162D.google.con" - + "tainer.v1.NodeNetworkConfig.NetworkPerfo" - + "rmanceConfig.TierH\000\210\001\001\"(\n\004Tier\022\024\n\020TIER_U" - + "NSPECIFIED\020\000\022\n\n\006TIER_1\020\001B\036\n\034_total_egres" - + "s_bandwidth_tierB\027\n\025_enable_private_node" - + "sB\035\n\033_network_performance_config\"B\n\033Addi" - + "tionalNodeNetworkConfig\022\017\n\007network\030\001 \001(\t" - + "\022\022\n\nsubnetwork\030\002 \001(\t\"\253\001\n\032AdditionalPodNe" - + "tworkConfig\022\022\n\nsubnetwork\030\001 \001(\t\022\033\n\023secon" - + "dary_pod_range\030\002 \001(\t\022F\n\021max_pods_per_nod" - + "e\030\003 \001(\0132&.google.container.v1.MaxPodsCon" - + "straintH\000\210\001\001B\024\n\022_max_pods_per_node\"Y\n\026Sh" - + "ieldedInstanceConfig\022\032\n\022enable_secure_bo" - + "ot\030\001 \001(\010\022#\n\033enable_integrity_monitoring\030" - + "\002 \001(\010\"k\n\rSandboxConfig\0225\n\004type\030\002 \001(\0162\'.g" - + "oogle.container.v1.SandboxConfig.Type\"#\n" - + "\004Type\022\017\n\013UNSPECIFIED\020\000\022\n\n\006GVISOR\020\001\"\035\n\nGc" - + "fsConfig\022\017\n\007enabled\030\001 \001(\010\"\337\001\n\023Reservatio" - + "nAffinity\022O\n\030consume_reservation_type\030\001 " - + "\001(\0162-.google.container.v1.ReservationAff" - + "inity.Type\022\013\n\003key\030\002 \001(\t\022\016\n\006values\030\003 \003(\t\"" - + "Z\n\004Type\022\017\n\013UNSPECIFIED\020\000\022\022\n\016NO_RESERVATI" - + "ON\020\001\022\023\n\017ANY_RESERVATION\020\002\022\030\n\024SPECIFIC_RE" - + "SERVATION\020\003\"\226\002\n\020SoleTenantConfig\022K\n\017node" - + "_affinities\030\001 \003(\01322.google.container.v1." - + "SoleTenantConfig.NodeAffinity\032\264\001\n\014NodeAf" - + "finity\022\013\n\003key\030\001 \001(\t\022M\n\010operator\030\002 \001(\0162;." - + "google.container.v1.SoleTenantConfig.Nod" - + "eAffinity.Operator\022\016\n\006values\030\003 \003(\t\"8\n\010Op" - + "erator\022\030\n\024OPERATOR_UNSPECIFIED\020\000\022\006\n\002IN\020\001" - + "\022\n\n\006NOT_IN\020\002\"\271\001\n\tNodeTaint\022\013\n\003key\030\001 \001(\t\022" - + "\r\n\005value\030\002 \001(\t\0225\n\006effect\030\003 \001(\0162%.google." - + "container.v1.NodeTaint.Effect\"Y\n\006Effect\022" - + "\026\n\022EFFECT_UNSPECIFIED\020\000\022\017\n\013NO_SCHEDULE\020\001" - + "\022\026\n\022PREFER_NO_SCHEDULE\020\002\022\016\n\nNO_EXECUTE\020\003" - + "\"<\n\nNodeTaints\022.\n\006taints\030\001 \003(\0132\036.google." - + "container.v1.NodeTaint\"x\n\nNodeLabels\022;\n\006" - + "labels\030\001 \003(\0132+.google.container.v1.NodeL" - + "abels.LabelsEntry\032-\n\013LabelsEntry\022\013\n\003key\030" - + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\200\001\n\016ResourceLab" - + "els\022?\n\006labels\030\001 \003(\0132/.google.container.v" - + "1.ResourceLabels.LabelsEntry\032-\n\013LabelsEn" - + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\033\n\013N" - + "etworkTags\022\014\n\004tags\030\001 \003(\t\"\331\001\n\nMasterAuth\022" - + "\024\n\010username\030\001 \001(\tB\002\030\001\022\024\n\010password\030\002 \001(\tB" - + "\002\030\001\022O\n\031client_certificate_config\030\003 \001(\0132," - + ".google.container.v1.ClientCertificateCo" - + "nfig\022\036\n\026cluster_ca_certificate\030d \001(\t\022\032\n\022" - + "client_certificate\030e \001(\t\022\022\n\nclient_key\030f" - + " \001(\t\";\n\027ClientCertificateConfig\022 \n\030issue" - + "_client_certificate\030\001 \001(\010\"\254\007\n\014AddonsConf" - + "ig\022C\n\023http_load_balancing\030\001 \001(\0132&.google" - + ".container.v1.HttpLoadBalancing\022Q\n\032horiz" - + "ontal_pod_autoscaling\030\002 \001(\0132-.google.con" - + "tainer.v1.HorizontalPodAutoscaling\022J\n\024ku" - + "bernetes_dashboard\030\003 \001(\0132(.google.contai" - + "ner.v1.KubernetesDashboardB\002\030\001\022G\n\025networ" - + "k_policy_config\030\004 \001(\0132(.google.container" - + ".v1.NetworkPolicyConfig\022=\n\020cloud_run_con" - + "fig\030\007 \001(\0132#.google.container.v1.CloudRun" - + "Config\022=\n\020dns_cache_config\030\010 \001(\0132#.googl" - + "e.container.v1.DnsCacheConfig\022K\n\027config_" - + "connector_config\030\n \001(\0132*.google.containe" - + "r.v1.ConfigConnectorConfig\022d\n%gce_persis" - + "tent_disk_csi_driver_config\030\013 \001(\01325.goog" - + "le.container.v1.GcePersistentDiskCsiDriv" - + "erConfig\022Y\n\037gcp_filestore_csi_driver_con" - + "fig\030\016 \001(\01320.google.container.v1.GcpFiles" - + "toreCsiDriverConfig\022J\n\027gke_backup_agent_" - + "config\030\020 \001(\0132).google.container.v1.GkeBa" - + "ckupAgentConfig\022O\n\032gcs_fuse_csi_driver_c" - + "onfig\030\021 \001(\0132+.google.container.v1.GcsFus" - + "eCsiDriverConfig\022F\n\022stateful_ha_config\030\022" - + " \001(\0132%.google.container.v1.StatefulHACon" - + "figB\003\340A\001\"%\n\021HttpLoadBalancing\022\020\n\010disable" - + "d\030\001 \001(\010\",\n\030HorizontalPodAutoscaling\022\020\n\010d" - + "isabled\030\001 \001(\010\"\'\n\023KubernetesDashboard\022\020\n\010" - + "disabled\030\001 \001(\010\"\'\n\023NetworkPolicyConfig\022\020\n" - + "\010disabled\030\001 \001(\010\"!\n\016DnsCacheConfig\022\017\n\007ena" - + "bled\030\001 \001(\010\"9\n&PrivateClusterMasterGlobal" - + "AccessConfig\022\017\n\007enabled\030\001 \001(\010\"\305\002\n\024Privat" - + "eClusterConfig\022\034\n\024enable_private_nodes\030\001" - + " \001(\010\022\037\n\027enable_private_endpoint\030\002 \001(\010\022\036\n" - + "\026master_ipv4_cidr_block\030\003 \001(\t\022\030\n\020private" - + "_endpoint\030\004 \001(\t\022\027\n\017public_endpoint\030\005 \001(\t" - + "\022\024\n\014peering_name\030\007 \001(\t\022`\n\033master_global_" - + "access_config\030\010 \001(\0132;.google.container.v" - + "1.PrivateClusterMasterGlobalAccessConfig" - + "\022#\n\033private_endpoint_subnetwork\030\n \001(\t\"D\n" - + "\031AuthenticatorGroupsConfig\022\017\n\007enabled\030\001 " - + "\001(\010\022\026\n\016security_group\030\002 \001(\t\"\356\001\n\016CloudRun" - + "Config\022\020\n\010disabled\030\001 \001(\010\022P\n\022load_balance" - + "r_type\030\003 \001(\01624.google.container.v1.Cloud" - + "RunConfig.LoadBalancerType\"x\n\020LoadBalanc" - + "erType\022\"\n\036LOAD_BALANCER_TYPE_UNSPECIFIED" - + "\020\000\022\037\n\033LOAD_BALANCER_TYPE_EXTERNAL\020\001\022\037\n\033L" - + "OAD_BALANCER_TYPE_INTERNAL\020\002\"(\n\025ConfigCo" - + "nnectorConfig\022\017\n\007enabled\030\001 \001(\010\"3\n GcePer" - + "sistentDiskCsiDriverConfig\022\017\n\007enabled\030\001 " - + "\001(\010\".\n\033GcpFilestoreCsiDriverConfig\022\017\n\007en" - + "abled\030\001 \001(\010\")\n\026GcsFuseCsiDriverConfig\022\017\n" - + "\007enabled\030\001 \001(\010\"\'\n\024GkeBackupAgentConfig\022\017" - + "\n\007enabled\030\001 \001(\010\"#\n\020StatefulHAConfig\022\017\n\007e" - + "nabled\030\001 \001(\010\"\216\002\n\036MasterAuthorizedNetwork" - + "sConfig\022\017\n\007enabled\030\001 \001(\010\022R\n\013cidr_blocks\030" - + "\002 \003(\0132=.google.container.v1.MasterAuthor" - + "izedNetworksConfig.CidrBlock\022,\n\037gcp_publ" - + "ic_cidrs_access_enabled\030\003 \001(\010H\000\210\001\001\0325\n\tCi" - + "drBlock\022\024\n\014display_name\030\001 \001(\t\022\022\n\ncidr_bl" - + "ock\030\002 \001(\tB\"\n _gcp_public_cidrs_access_en" - + "abled\"\035\n\nLegacyAbac\022\017\n\007enabled\030\001 \001(\010\"\221\001\n" - + "\rNetworkPolicy\022=\n\010provider\030\001 \001(\0162+.googl" - + "e.container.v1.NetworkPolicy.Provider\022\017\n" - + "\007enabled\030\002 \001(\010\"0\n\010Provider\022\030\n\024PROVIDER_U" - + "NSPECIFIED\020\000\022\n\n\006CALICO\020\001\"\343\001\n\023BinaryAutho" - + "rization\022\023\n\007enabled\030\001 \001(\010B\002\030\001\022P\n\017evaluat" - + "ion_mode\030\002 \001(\01627.google.container.v1.Bin" - + "aryAuthorization.EvaluationMode\"e\n\016Evalu" - + "ationMode\022\037\n\033EVALUATION_MODE_UNSPECIFIED" - + "\020\000\022\014\n\010DISABLED\020\001\022$\n PROJECT_SINGLETON_PO" - + "LICY_ENFORCE\020\002\"-\n\032PodCIDROverprovisionCo" - + "nfig\022\017\n\007disable\030\001 \001(\010\"\275\006\n\022IPAllocationPo" - + "licy\022\026\n\016use_ip_aliases\030\001 \001(\010\022\031\n\021create_s" - + "ubnetwork\030\002 \001(\010\022\027\n\017subnetwork_name\030\003 \001(\t" - + "\022\035\n\021cluster_ipv4_cidr\030\004 \001(\tB\002\030\001\022\032\n\016node_" - + "ipv4_cidr\030\005 \001(\tB\002\030\001\022\036\n\022services_ipv4_cid" - + "r\030\006 \001(\tB\002\030\001\022$\n\034cluster_secondary_range_n" - + "ame\030\007 \001(\t\022%\n\035services_secondary_range_na" - + "me\030\010 \001(\t\022\037\n\027cluster_ipv4_cidr_block\030\t \001(" - + "\t\022\034\n\024node_ipv4_cidr_block\030\n \001(\t\022 \n\030servi" - + "ces_ipv4_cidr_block\030\013 \001(\t\022\033\n\023tpu_ipv4_ci" - + "dr_block\030\r \001(\t\022\022\n\nuse_routes\030\017 \001(\010\0222\n\nst" - + "ack_type\030\020 \001(\0162\036.google.container.v1.Sta" - + "ckType\022=\n\020ipv6_access_type\030\021 \001(\0162#.googl" - + "e.container.v1.IPv6AccessType\022V\n\035pod_cid" - + "r_overprovision_config\030\025 \001(\0132/.google.co" - + "ntainer.v1.PodCIDROverprovisionConfig\022#\n" - + "\026subnet_ipv6_cidr_block\030\026 \001(\tB\003\340A\003\022%\n\030se" - + "rvices_ipv6_cidr_block\030\027 \001(\tB\003\340A\003\022Y\n\034add" - + "itional_pod_ranges_config\030\030 \001(\0132..google" - + ".container.v1.AdditionalPodRangesConfigB" - + "\003\340A\003\022/\n\"default_pod_ipv4_range_utilizati" - + "on\030\031 \001(\001B\003\340A\003\"\231\033\n\007Cluster\022\014\n\004name\030\001 \001(\t\022" - + "\023\n\013description\030\002 \001(\t\022\036\n\022initial_node_cou" - + "nt\030\003 \001(\005B\002\030\001\0228\n\013node_config\030\004 \001(\0132\037.goog" - + "le.container.v1.NodeConfigB\002\030\001\0224\n\013master" - + "_auth\030\005 \001(\0132\037.google.container.v1.Master" - + "Auth\022\027\n\017logging_service\030\006 \001(\t\022\032\n\022monitor" - + "ing_service\030\007 \001(\t\022\017\n\007network\030\010 \001(\t\022\031\n\021cl" - + "uster_ipv4_cidr\030\t \001(\t\0228\n\raddons_config\030\n" - + " \001(\0132!.google.container.v1.AddonsConfig\022" - + "\022\n\nsubnetwork\030\013 \001(\t\0221\n\nnode_pools\030\014 \003(\0132" - + "\035.google.container.v1.NodePool\022\021\n\tlocati" - + "ons\030\r \003(\t\022\037\n\027enable_kubernetes_alpha\030\016 \001" - + "(\010\022I\n\017resource_labels\030\017 \003(\01320.google.con" - + "tainer.v1.Cluster.ResourceLabelsEntry\022\031\n" - + "\021label_fingerprint\030\020 \001(\t\0224\n\013legacy_abac\030" - + "\022 \001(\0132\037.google.container.v1.LegacyAbac\022:" - + "\n\016network_policy\030\023 \001(\0132\".google.containe" - + "r.v1.NetworkPolicy\022E\n\024ip_allocation_poli" - + "cy\030\024 \001(\0132\'.google.container.v1.IPAllocat" - + "ionPolicy\022^\n!master_authorized_networks_" - + "config\030\026 \001(\01323.google.container.v1.Maste" - + "rAuthorizedNetworksConfig\022B\n\022maintenance" - + "_policy\030\027 \001(\0132&.google.container.v1.Main" - + "tenancePolicy\022F\n\024binary_authorization\030\030 " - + "\001(\0132(.google.container.v1.BinaryAuthoriz" - + "ation\022<\n\013autoscaling\030\032 \001(\0132\'.google.cont" - + "ainer.v1.ClusterAutoscaling\022:\n\016network_c" - + "onfig\030\033 \001(\0132\".google.container.v1.Networ" - + "kConfig\022K\n\033default_max_pods_constraint\030\036" - + " \001(\0132&.google.container.v1.MaxPodsConstr" - + "aint\022T\n\034resource_usage_export_config\030! \001" - + "(\0132..google.container.v1.ResourceUsageEx" - + "portConfig\022S\n\033authenticator_groups_confi" - + "g\030\" \001(\0132..google.container.v1.Authentica" - + "torGroupsConfig\022I\n\026private_cluster_confi" - + "g\030% \001(\0132).google.container.v1.PrivateClu" - + "sterConfig\022D\n\023database_encryption\030& \001(\0132" - + "\'.google.container.v1.DatabaseEncryption" - + "\022M\n\030vertical_pod_autoscaling\030\' \001(\0132+.goo" - + "gle.container.v1.VerticalPodAutoscaling\022" - + ":\n\016shielded_nodes\030( \001(\0132\".google.contain" - + "er.v1.ShieldedNodes\022<\n\017release_channel\030)" - + " \001(\0132#.google.container.v1.ReleaseChanne" - + "l\022M\n\030workload_identity_config\030+ \001(\0132+.go" - + "ogle.container.v1.WorkloadIdentityConfig" - + "\022@\n\021mesh_certificates\030C \001(\0132%.google.con" - + "tainer.v1.MeshCertificates\022I\n\026cost_manag" - + "ement_config\030- \001(\0132).google.container.v1" - + ".CostManagementConfig\022D\n\023notification_co" - + "nfig\0301 \001(\0132\'.google.container.v1.Notific" - + "ationConfig\022B\n\022confidential_nodes\0302 \001(\0132" - + "&.google.container.v1.ConfidentialNodes\022" - + "K\n\027identity_service_config\0306 \001(\0132*.googl" - + "e.container.v1.IdentityServiceConfig\022\021\n\t" - + "self_link\030d \001(\t\022\020\n\004zone\030e \001(\tB\002\030\001\022\020\n\010end" - + "point\030f \001(\t\022\037\n\027initial_cluster_version\030g" - + " \001(\t\022\036\n\026current_master_version\030h \001(\t\022 \n\024" - + "current_node_version\030i \001(\tB\002\030\001\022\023\n\013create" - + "_time\030j \001(\t\0223\n\006status\030k \001(\0162#.google.con" - + "tainer.v1.Cluster.Status\022\032\n\016status_messa" - + "ge\030l \001(\tB\002\030\001\022\033\n\023node_ipv4_cidr_size\030m \001(" - + "\005\022\032\n\022services_ipv4_cidr\030n \001(\t\022\037\n\023instanc" - + "e_group_urls\030o \003(\tB\002\030\001\022\036\n\022current_node_c" - + "ount\030p \001(\005B\002\030\001\022\023\n\013expire_time\030q \001(\t\022\020\n\010l" - + "ocation\030r \001(\t\022\022\n\nenable_tpu\030s \001(\010\022\033\n\023tpu" - + "_ipv4_cidr_block\030t \001(\t\0228\n\nconditions\030v \003" - + "(\0132$.google.container.v1.StatusCondition" - + "\0222\n\tautopilot\030\200\001 \001(\0132\036.google.container." - + "v1.Autopilot\022\020\n\002id\030\201\001 \001(\tB\003\340A\003\022G\n\022node_p" - + "ool_defaults\030\203\001 \001(\0132%.google.container.v" - + "1.NodePoolDefaultsH\000\210\001\001\022;\n\016logging_confi" - + "g\030\204\001 \001(\0132\".google.container.v1.LoggingCo" - + "nfig\022A\n\021monitoring_config\030\205\001 \001(\0132%.googl" - + "e.container.v1.MonitoringConfig\022G\n\025node_" - + "pool_auto_config\030\210\001 \001(\0132\'.google.contain" - + "er.v1.NodePoolAutoConfig\022\r\n\004etag\030\213\001 \001(\t\022" - + "*\n\005fleet\030\214\001 \001(\0132\032.google.container.v1.Fl" - + "eet\022L\n\027security_posture_config\030\221\001 \001(\0132*." - + "google.container.v1.SecurityPostureConfi" - + "g\022D\n\024enable_k8s_beta_apis\030\217\001 \001(\0132%.googl" - + "e.container.v1.K8sBetaAPIConfig\022A\n\021enter" - + "prise_config\030\225\001 \001(\0132%.google.container.v" - + "1.EnterpriseConfig\0325\n\023ResourceLabelsEntr" - + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"w\n\006Sta" - + "tus\022\026\n\022STATUS_UNSPECIFIED\020\000\022\020\n\014PROVISION" - + "ING\020\001\022\013\n\007RUNNING\020\002\022\017\n\013RECONCILING\020\003\022\014\n\010S" - + "TOPPING\020\004\022\t\n\005ERROR\020\005\022\014\n\010DEGRADED\020\006B\025\n\023_n" - + "ode_pool_defaults\"(\n\020K8sBetaAPIConfig\022\024\n" - + "\014enabled_apis\030\001 \003(\t\"\236\003\n\025SecurityPostureC" - + "onfig\022B\n\004mode\030\001 \001(\0162/.google.container.v" - + "1.SecurityPostureConfig.ModeH\000\210\001\001\022]\n\022vul" - + "nerability_mode\030\002 \001(\0162<.google.container" - + ".v1.SecurityPostureConfig.VulnerabilityM" - + "odeH\001\210\001\001\"5\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020\000\022\014" - + "\n\010DISABLED\020\001\022\t\n\005BASIC\020\002\"\212\001\n\021Vulnerabilit" - + "yMode\022\"\n\036VULNERABILITY_MODE_UNSPECIFIED\020" - + "\000\022\032\n\026VULNERABILITY_DISABLED\020\001\022\027\n\023VULNERA" - + "BILITY_BASIC\020\002\022\034\n\030VULNERABILITY_ENTERPRI" - + "SE\020\003B\007\n\005_modeB\025\n\023_vulnerability_mode\"\225\001\n" - + "\022NodePoolAutoConfig\0226\n\014network_tags\030\001 \001(" - + "\0132 .google.container.v1.NetworkTags\022G\n\025r" - + "esource_manager_tags\030\002 \001(\0132(.google.cont" - + "ainer.v1.ResourceManagerTags\"Y\n\020NodePool" - + "Defaults\022E\n\024node_config_defaults\030\001 \001(\0132\'" - + ".google.container.v1.NodeConfigDefaults\"" - + "\216\001\n\022NodeConfigDefaults\0224\n\013gcfs_config\030\001 " - + "\001(\0132\037.google.container.v1.GcfsConfig\022B\n\016" - + "logging_config\030\003 \001(\0132*.google.container." - + "v1.NodePoolLoggingConfig\"\230\037\n\rClusterUpda" - + "te\022\034\n\024desired_node_version\030\004 \001(\t\022\"\n\032desi" - + "red_monitoring_service\030\005 \001(\t\022@\n\025desired_" - + "addons_config\030\006 \001(\0132!.google.container.v" - + "1.AddonsConfig\022\034\n\024desired_node_pool_id\030\007" - + " \001(\t\022\032\n\022desired_image_type\030\010 \001(\t\022L\n\033desi" - + "red_database_encryption\030. \001(\0132\'.google.c" - + "ontainer.v1.DatabaseEncryption\022U\n desire" - + "d_workload_identity_config\030/ \001(\0132+.googl" - + "e.container.v1.WorkloadIdentityConfig\022H\n" - + "\031desired_mesh_certificates\030C \001(\0132%.googl" - + "e.container.v1.MeshCertificates\022B\n\026desir" - + "ed_shielded_nodes\0300 \001(\0132\".google.contain" - + "er.v1.ShieldedNodes\022Q\n\036desired_cost_mana" - + "gement_config\0301 \001(\0132).google.container.v" - + "1.CostManagementConfig\022:\n\022desired_dns_co" - + "nfig\0305 \001(\0132\036.google.container.v1.DNSConf" - + "ig\022O\n\035desired_node_pool_autoscaling\030\t \001(" - + "\0132(.google.container.v1.NodePoolAutoscal" - + "ing\022\031\n\021desired_locations\030\n \003(\t\022f\n)desire" - + "d_master_authorized_networks_config\030\014 \001(" - + "\01323.google.container.v1.MasterAuthorized" - + "NetworksConfig\022L\n\033desired_cluster_autosc" - + "aling\030\017 \001(\0132\'.google.container.v1.Cluste" - + "rAutoscaling\022N\n\034desired_binary_authoriza" - + "tion\030\020 \001(\0132(.google.container.v1.BinaryA" - + "uthorization\022\037\n\027desired_logging_service\030" - + "\023 \001(\t\022\\\n$desired_resource_usage_export_c" - + "onfig\030\025 \001(\0132..google.container.v1.Resour" - + "ceUsageExportConfig\022U\n desired_vertical_" - + "pod_autoscaling\030\026 \001(\0132+.google.container" - + ".v1.VerticalPodAutoscaling\022Q\n\036desired_pr" - + "ivate_cluster_config\030\031 \001(\0132).google.cont" - + "ainer.v1.PrivateClusterConfig\022\\\n$desired" - + "_intra_node_visibility_config\030\032 \001(\0132..go" - + "ogle.container.v1.IntraNodeVisibilityCon" - + "fig\022K\n\033desired_default_snat_status\030\034 \001(\013" - + "2&.google.container.v1.DefaultSnatStatus" - + "\022D\n\027desired_release_channel\030\037 \001(\0132#.goog" - + "le.container.v1.ReleaseChannel\022Q\n\037desire" - + "d_l4ilb_subsetting_config\030\' \001(\0132(.google" - + ".container.v1.ILBSubsettingConfig\022H\n\031des" - + "ired_datapath_provider\0302 \001(\0162%.google.co" - + "ntainer.v1.DatapathProvider\022X\n\"desired_p" - + "rivate_ipv6_google_access\0303 \001(\0162,.google" - + ".container.v1.PrivateIPv6GoogleAccess\022L\n" - + "\033desired_notification_config\0307 \001(\0132\'.goo" - + "gle.container.v1.NotificationConfig\022[\n#d" - + "esired_authenticator_groups_config\030? \001(\013" - + "2..google.container.v1.AuthenticatorGrou" - + "psConfig\022B\n\026desired_logging_config\030@ \001(\013", - "2\".google.container.v1.LoggingConfig\022H\n\031" - + "desired_monitoring_config\030A \001(\0132%.google" - + ".container.v1.MonitoringConfig\022S\n\037desire" - + "d_identity_service_config\030B \001(\0132*.google" - + ".container.v1.IdentityServiceConfig\022Z\n#d" - + "esired_service_external_ips_config\030< \001(\013" - + "2-.google.container.v1.ServiceExternalIP" - + "sConfig\022,\n\037desired_enable_private_endpoi" - + "nt\030G \001(\010H\000\210\001\001\022\036\n\026desired_master_version\030" - + "d \001(\t\022<\n\023desired_gcfs_config\030m \001(\0132\037.goo" - + "gle.container.v1.GcfsConfig\022T\n*desired_n" - + "ode_pool_auto_config_network_tags\030n \001(\0132" - + " .google.container.v1.NetworkTags\022I\n\032des" - + "ired_gateway_api_config\030r \001(\0132%.google.c" - + "ontainer.v1.GatewayAPIConfig\022\014\n\004etag\030s \001" - + "(\t\022T\n desired_node_pool_logging_config\030t" - + " \001(\0132*.google.container.v1.NodePoolLoggi" - + "ngConfig\0221\n\rdesired_fleet\030u \001(\0132\032.google" - + ".container.v1.Fleet\022:\n\022desired_stack_typ" - + "e\030w \001(\0162\036.google.container.v1.StackType\022" - + "T\n\034additional_pod_ranges_config\030x \001(\0132.." - + "google.container.v1.AdditionalPodRangesC" - + "onfig\022\\\n$removed_additional_pod_ranges_c" - + "onfig\030y \001(\0132..google.container.v1.Additi" - + "onalPodRangesConfig\022C\n\024enable_k8s_beta_a" - + "pis\030z \001(\0132%.google.container.v1.K8sBetaA" - + "PIConfig\022S\n\037desired_security_posture_con" - + "fig\030| \001(\0132*.google.container.v1.Security" - + "PostureConfig\022n\n\"desired_network_perform" - + "ance_config\030} \001(\0132B.google.container.v1." - + "NetworkConfig.ClusterNetworkPerformanceC" - + "onfig\022/\n\"desired_enable_fqdn_network_pol" - + "icy\030~ \001(\010H\001\210\001\001\022\\\n(desired_autopilot_work" - + "load_policy_config\030\200\001 \001(\0132).google.conta" - + "iner.v1.WorkloadPolicyConfig\022E\n\025desired_" - + "k8s_beta_apis\030\203\001 \001(\0132%.google.container." - + "v1.K8sBetaAPIConfig\022-\n\037desired_enable_mu" - + "lti_networking\030\207\001 \001(\010H\002\210\001\001\022f\n3desired_no" - + "de_pool_auto_config_resource_manager_tag" - + "s\030\210\001 \001(\0132(.google.container.v1.ResourceM" - + "anagerTags\022b\n$desired_in_transit_encrypt" - + "ion_config\030\211\001 \001(\0162..google.container.v1." - + "InTransitEncryptionConfigH\003\210\001\001\022>\n0desire" - + "d_enable_cilium_clusterwide_network_poli" - + "cy\030\212\001 \001(\010H\004\210\001\001B\"\n _desired_enable_privat" - + "e_endpointB%\n#_desired_enable_fqdn_netwo" - + "rk_policyB\"\n _desired_enable_multi_netwo" - + "rkingB\'\n%_desired_in_transit_encryption_" - + "configB3\n1_desired_enable_cilium_cluster" - + "wide_network_policy\"q\n\031AdditionalPodRang" - + "esConfig\022\027\n\017pod_range_names\030\001 \003(\t\022;\n\016pod" - + "_range_info\030\002 \003(\0132\036.google.container.v1." - + "RangeInfoB\003\340A\003\">\n\tRangeInfo\022\027\n\nrange_nam" - + "e\030\001 \001(\tB\003\340A\003\022\030\n\013utilization\030\002 \001(\001B\003\340A\003\"\264" - + "\010\n\tOperation\022\014\n\004name\030\001 \001(\t\022\020\n\004zone\030\002 \001(\t" - + "B\002\030\001\022;\n\016operation_type\030\003 \001(\0162#.google.co" - + "ntainer.v1.Operation.Type\0225\n\006status\030\004 \001(" - + "\0162%.google.container.v1.Operation.Status" - + "\022\016\n\006detail\030\010 \001(\t\022\035\n\016status_message\030\005 \001(\t" - + "B\005\030\001\340A\003\022\021\n\tself_link\030\006 \001(\t\022\023\n\013target_lin" - + "k\030\007 \001(\t\022\020\n\010location\030\t \001(\t\022\022\n\nstart_time\030" - + "\n \001(\t\022\020\n\010end_time\030\013 \001(\t\022=\n\010progress\030\014 \001(" - + "\0132&.google.container.v1.OperationProgres" - + "sB\003\340A\003\022D\n\022cluster_conditions\030\r \003(\0132$.goo" - + "gle.container.v1.StatusConditionB\002\030\001\022E\n\023" - + "nodepool_conditions\030\016 \003(\0132$.google.conta" - + "iner.v1.StatusConditionB\002\030\001\022!\n\005error\030\017 \001" - + "(\0132\022.google.rpc.Status\"R\n\006Status\022\026\n\022STAT" - + "US_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\013\n\007RUNNING" - + "\020\002\022\010\n\004DONE\020\003\022\014\n\010ABORTING\020\004\"\300\003\n\004Type\022\024\n\020T" - + "YPE_UNSPECIFIED\020\000\022\022\n\016CREATE_CLUSTER\020\001\022\022\n" - + "\016DELETE_CLUSTER\020\002\022\022\n\016UPGRADE_MASTER\020\003\022\021\n" - + "\rUPGRADE_NODES\020\004\022\022\n\016REPAIR_CLUSTER\020\005\022\022\n\016" - + "UPDATE_CLUSTER\020\006\022\024\n\020CREATE_NODE_POOL\020\007\022\024" - + "\n\020DELETE_NODE_POOL\020\010\022\034\n\030SET_NODE_POOL_MA" - + "NAGEMENT\020\t\022\025\n\021AUTO_REPAIR_NODES\020\n\022\032\n\022AUT" - + "O_UPGRADE_NODES\020\013\032\002\010\001\022\022\n\nSET_LABELS\020\014\032\002\010" - + "\001\022\027\n\017SET_MASTER_AUTH\020\r\032\002\010\001\022\026\n\022SET_NODE_P" - + "OOL_SIZE\020\016\022\032\n\022SET_NETWORK_POLICY\020\017\032\002\010\001\022\036" - + "\n\026SET_MAINTENANCE_POLICY\020\020\032\002\010\001\022\022\n\016RESIZE" - + "_CLUSTER\020\022\022\031\n\025FLEET_FEATURE_UPGRADE\020\023\"\273\002" - + "\n\021OperationProgress\022\014\n\004name\030\001 \001(\t\0225\n\006sta" - + "tus\030\002 \001(\0162%.google.container.v1.Operatio" - + "n.Status\022>\n\007metrics\030\003 \003(\0132-.google.conta" - + "iner.v1.OperationProgress.Metric\0226\n\006stag" - + "es\030\004 \003(\0132&.google.container.v1.Operation" - + "Progress\032i\n\006Metric\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\023\n" - + "\tint_value\030\002 \001(\003H\000\022\026\n\014double_value\030\003 \001(\001" - + "H\000\022\026\n\014string_value\030\004 \001(\tH\000B\007\n\005value\"\204\001\n\024" - + "CreateClusterRequest\022\026\n\nproject_id\030\001 \001(\t" - + "B\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\0222\n\007cluster\030\003 \001(\0132" - + "\034.google.container.v1.ClusterB\003\340A\002\022\016\n\006pa" - + "rent\030\005 \001(\t\"c\n\021GetClusterRequest\022\026\n\nproje" - + "ct_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\nclu" - + "ster_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\005 \001(\t\"\237\001\n\024Upda" - + "teClusterRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001" - + "\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002" - + "\030\001\0227\n\006update\030\004 \001(\0132\".google.container.v1" - + ".ClusterUpdateB\003\340A\002\022\014\n\004name\030\005 \001(\t\"\323\n\n\025Up" - + "dateNodePoolRequest\022\026\n\nproject_id\030\001 \001(\tB" - + "\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(" - + "\tB\002\030\001\022\030\n\014node_pool_id\030\004 \001(\tB\002\030\001\022\031\n\014node_" - + "version\030\005 \001(\tB\003\340A\002\022\027\n\nimage_type\030\006 \001(\tB\003" - + "\340A\002\022\014\n\004name\030\010 \001(\t\022\021\n\tlocations\030\r \003(\t\022M\n\030" - + "workload_metadata_config\030\016 \001(\0132+.google." - + "container.v1.WorkloadMetadataConfig\022G\n\020u" - + "pgrade_settings\030\017 \001(\0132-.google.container" - + ".v1.NodePool.UpgradeSettings\022.\n\004tags\030\020 \001" - + "(\0132 .google.container.v1.NetworkTags\022/\n\006" - + "taints\030\021 \001(\0132\037.google.container.v1.NodeT" - + "aints\022/\n\006labels\030\022 \001(\0132\037.google.container" - + ".v1.NodeLabels\022?\n\021linux_node_config\030\023 \001(" - + "\0132$.google.container.v1.LinuxNodeConfig\022" - + ">\n\016kubelet_config\030\024 \001(\0132&.google.contain" - + "er.v1.NodeKubeletConfig\022C\n\023node_network_" - + "config\030\025 \001(\0132&.google.container.v1.NodeN" - + "etworkConfig\0224\n\013gcfs_config\030\026 \001(\0132\037.goog" - + "le.container.v1.GcfsConfig\022B\n\022confidenti" - + "al_nodes\030\027 \001(\0132&.google.container.v1.Con" - + "fidentialNodes\022.\n\005gvnic\030\035 \001(\0132\037.google.c" - + "ontainer.v1.VirtualNIC\022\014\n\004etag\030\036 \001(\t\0224\n\013" - + "fast_socket\030\037 \001(\0132\037.google.container.v1." - + "FastSocket\022B\n\016logging_config\030 \001(\0132*.goo" - + "gle.container.v1.NodePoolLoggingConfig\022<" - + "\n\017resource_labels\030! \001(\0132#.google.contain" - + "er.v1.ResourceLabels\022C\n\023windows_node_con" - + "fig\030\" \001(\0132&.google.container.v1.WindowsN" - + "odeConfig\022\031\n\014machine_type\030$ \001(\tB\003\340A\001\022\026\n\t" - + "disk_type\030% \001(\tB\003\340A\001\022\031\n\014disk_size_gb\030& \001" - + "(\003B\003\340A\001\022G\n\025resource_manager_tags\030\' \001(\0132(" + + "r.v1.LinuxNodeConfig.CgroupMode\022Q\n\thugep" + + "ages\030\003 \001(\01324.google.container.v1.LinuxNo" + + "deConfig.HugepagesConfigB\003\340A\001H\000\210\001\001\032\177\n\017Hu" + + "gepagesConfig\022!\n\017hugepage_size2m\030\001 \001(\005B\003" + + "\340A\001H\000\210\001\001\022!\n\017hugepage_size1g\030\002 \001(\005B\003\340A\001H\001" + + "\210\001\001B\022\n\020_hugepage_size2mB\022\n\020_hugepage_siz" + + "e1g\032.\n\014SysctlsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + + "e\030\002 \001(\t:\0028\001\"Q\n\nCgroupMode\022\033\n\027CGROUP_MODE" + + "_UNSPECIFIED\020\000\022\022\n\016CGROUP_MODE_V1\020\001\022\022\n\016CG" + + "ROUP_MODE_V2\020\002B\014\n\n_hugepages\"\264\001\n\021Windows" + + "NodeConfig\022D\n\nos_version\030\001 \001(\01620.google." + + "container.v1.WindowsNodeConfig.OSVersion" + + "\"Y\n\tOSVersion\022\032\n\026OS_VERSION_UNSPECIFIED\020" + + "\000\022\027\n\023OS_VERSION_LTSC2019\020\001\022\027\n\023OS_VERSION" + + "_LTSC2022\020\002\"\370\001\n\021NodeKubeletConfig\022\032\n\022cpu" + + "_manager_policy\030\001 \001(\t\0221\n\rcpu_cfs_quota\030\002" + + " \001(\0132\032.google.protobuf.BoolValue\022\034\n\024cpu_" + + "cfs_quota_period\030\003 \001(\t\022\026\n\016pod_pids_limit" + + "\030\004 \001(\003\0223\n&insecure_kubelet_readonly_port" + + "_enabled\030\007 \001(\010H\000\210\001\001B)\n\'_insecure_kubelet" + + "_readonly_port_enabled\"\346\021\n\nNodeConfig\022\024\n" + + "\014machine_type\030\001 \001(\t\022\024\n\014disk_size_gb\030\002 \001(" + + "\005\022\024\n\014oauth_scopes\030\003 \003(\t\022\027\n\017service_accou" + + "nt\030\t \001(\t\022?\n\010metadata\030\004 \003(\0132-.google.cont" + + "ainer.v1.NodeConfig.MetadataEntry\022\022\n\nima" + + "ge_type\030\005 \001(\t\022;\n\006labels\030\006 \003(\0132+.google.c" + + "ontainer.v1.NodeConfig.LabelsEntry\022\027\n\017lo" + + "cal_ssd_count\030\007 \001(\005\022\014\n\004tags\030\010 \003(\t\022\023\n\013pre" + + "emptible\030\n \001(\010\022<\n\014accelerators\030\013 \003(\0132&.g" + + "oogle.container.v1.AcceleratorConfig\022\021\n\t" + + "disk_type\030\014 \001(\t\022\030\n\020min_cpu_platform\030\r \001(" + + "\t\022M\n\030workload_metadata_config\030\016 \001(\0132+.go" + + "ogle.container.v1.WorkloadMetadataConfig" + + "\022.\n\006taints\030\017 \003(\0132\036.google.container.v1.N" + + "odeTaint\022:\n\016sandbox_config\030\021 \001(\0132\".googl" + + "e.container.v1.SandboxConfig\022\022\n\nnode_gro" + + "up\030\022 \001(\t\022F\n\024reservation_affinity\030\023 \001(\0132(" + + ".google.container.v1.ReservationAffinity" + + "\022M\n\030shielded_instance_config\030\024 \001(\0132+.goo" + + "gle.container.v1.ShieldedInstanceConfig\022" + + "?\n\021linux_node_config\030\025 \001(\0132$.google.cont" + + "ainer.v1.LinuxNodeConfig\022>\n\016kubelet_conf" + + "ig\030\026 \001(\0132&.google.container.v1.NodeKubel" + + "etConfig\022\031\n\021boot_disk_kms_key\030\027 \001(\t\0224\n\013g" + + "cfs_config\030\031 \001(\0132\037.google.container.v1.G" + + "cfsConfig\022O\n\031advanced_machine_features\030\032" + + " \001(\0132,.google.container.v1.AdvancedMachi" + + "neFeatures\022.\n\005gvnic\030\035 \001(\0132\037.google.conta" + + "iner.v1.VirtualNIC\022\014\n\004spot\030 \001(\010\022B\n\022conf" + + "idential_nodes\030# \001(\0132&.google.container." + + "v1.ConfidentialNodes\0229\n\013fast_socket\030$ \001(" + + "\0132\037.google.container.v1.FastSocketH\000\210\001\001\022" + + "L\n\017resource_labels\030% \003(\01323.google.contai" + + "ner.v1.NodeConfig.ResourceLabelsEntry\022B\n" + + "\016logging_config\030& \001(\0132*.google.container" + + ".v1.NodePoolLoggingConfig\022C\n\023windows_nod" + + "e_config\030\' \001(\0132&.google.container.v1.Win" + + "dowsNodeConfig\022Q\n\033local_nvme_ssd_block_c" + + "onfig\030( \001(\0132,.google.container.v1.LocalN" + + "vmeSsdBlockConfig\022_\n\"ephemeral_storage_l" + + "ocal_ssd_config\030) \001(\01323.google.container" + + ".v1.EphemeralStorageLocalSsdConfig\022A\n\022so" + + "le_tenant_config\030* \001(\0132%.google.containe" + + "r.v1.SoleTenantConfig\022@\n\021containerd_conf" + + "ig\030+ \001(\0132%.google.container.v1.Container" + + "dConfig\022G\n\025resource_manager_tags\030- \001(\0132(" + ".google.container.v1.ResourceManagerTags" - + "\022M\n\023queued_provisioning\030* \001(\01320.google.c" - + "ontainer.v1.NodePool.QueuedProvisioning\"" - + "\315\001\n\035SetNodePoolAutoscalingRequest\022\026\n\npro" - + "ject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\nc" - + "luster_id\030\003 \001(\tB\002\030\001\022\030\n\014node_pool_id\030\004 \001(" - + "\tB\002\030\001\022B\n\013autoscaling\030\005 \001(\0132(.google.cont" - + "ainer.v1.NodePoolAutoscalingB\003\340A\002\022\014\n\004nam" - + "e\030\006 \001(\t\"\210\001\n\030SetLoggingServiceRequest\022\026\n\n" - + "project_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026" - + "\n\ncluster_id\030\003 \001(\tB\002\030\001\022\034\n\017logging_servic" - + "e\030\004 \001(\tB\003\340A\002\022\014\n\004name\030\005 \001(\t\"\216\001\n\033SetMonito" - + "ringServiceRequest\022\026\n\nproject_id\030\001 \001(\tB\002" - + "\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\t" - + "B\002\030\001\022\037\n\022monitoring_service\030\004 \001(\tB\003\340A\002\022\014\n" - + "\004name\030\006 \001(\t\"\247\001\n\026SetAddonsConfigRequest\022\026" - + "\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001" - + "\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022=\n\raddons_confi" - + "g\030\004 \001(\0132!.google.container.v1.AddonsConf" - + "igB\003\340A\002\022\014\n\004name\030\006 \001(\t\"}\n\023SetLocationsReq" - + "uest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001" - + "(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\026\n\tlocati" - + "ons\030\004 \003(\tB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\202\001\n\023UpdateM" - + "asterRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004" - + "zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\033" - + "\n\016master_version\030\004 \001(\tB\003\340A\002\022\014\n\004name\030\007 \001(" - + "\t\"\265\002\n\024SetMasterAuthRequest\022\026\n\nproject_id" - + "\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_" - + "id\030\003 \001(\tB\002\030\001\022E\n\006action\030\004 \001(\01620.google.co" - + "ntainer.v1.SetMasterAuthRequest.ActionB\003" - + "\340A\002\0224\n\006update\030\005 \001(\0132\037.google.container.v" - + "1.MasterAuthB\003\340A\002\022\014\n\004name\030\007 \001(\t\"P\n\006Actio" - + "n\022\013\n\007UNKNOWN\020\000\022\020\n\014SET_PASSWORD\020\001\022\025\n\021GENE" - + "RATE_PASSWORD\020\002\022\020\n\014SET_USERNAME\020\003\"f\n\024Del" - + "eteClusterRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030" - + "\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB" - + "\002\030\001\022\014\n\004name\030\004 \001(\t\"O\n\023ListClustersRequest" + + "\022(\n\033enable_confidential_storage\030. \001(\010B\003\340" + + "A\001\022D\n\024secondary_boot_disks\0300 \003(\0132&.googl" + + "e.container.v1.SecondaryBootDisk\022f\n#seco" + + "ndary_boot_disk_update_strategy\0302 \001(\01324." + + "google.container.v1.SecondaryBootDiskUpd" + + "ateStrategyH\001\210\001\001\032/\n\rMetadataEntry\022\013\n\003key" + + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013LabelsEntry" + + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0325\n\023Reso" + + "urceLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + + "\001(\t:\0028\001B\016\n\014_fast_socketB&\n$_secondary_bo" + + "ot_disk_update_strategy\"\231\001\n\027AdvancedMach" + + "ineFeatures\022\035\n\020threads_per_core\030\001 \001(\003H\000\210" + + "\001\001\022)\n\034enable_nested_virtualization\030\002 \001(\010" + + "H\001\210\001\001B\023\n\021_threads_per_coreB\037\n\035_enable_ne" + + "sted_virtualization\"\263\006\n\021NodeNetworkConfi" + + "g\022\035\n\020create_pod_range\030\004 \001(\010B\003\340A\004\022\021\n\tpod_" + + "range\030\005 \001(\t\022\033\n\023pod_ipv4_cidr_block\030\006 \001(\t" + + "\022!\n\024enable_private_nodes\030\t \001(\010H\000\210\001\001\022h\n\032n" + + "etwork_performance_config\030\013 \001(\0132?.google" + + ".container.v1.NodeNetworkConfig.NetworkP" + + "erformanceConfigH\001\210\001\001\022V\n\035pod_cidr_overpr" + + "ovision_config\030\r \001(\0132/.google.container." + + "v1.PodCIDROverprovisionConfig\022Y\n\037additio" + + "nal_node_network_configs\030\016 \003(\01320.google." + + "container.v1.AdditionalNodeNetworkConfig" + + "\022W\n\036additional_pod_network_configs\030\017 \003(\013" + + "2/.google.container.v1.AdditionalPodNetw" + + "orkConfig\022\'\n\032pod_ipv4_range_utilization\030" + + "\020 \001(\001B\003\340A\003\032\324\001\n\030NetworkPerformanceConfig\022" + + "n\n\033total_egress_bandwidth_tier\030\001 \001(\0162D.g" + + "oogle.container.v1.NodeNetworkConfig.Net" + + "workPerformanceConfig.TierH\000\210\001\001\"(\n\004Tier\022" + + "\024\n\020TIER_UNSPECIFIED\020\000\022\n\n\006TIER_1\020\001B\036\n\034_to" + + "tal_egress_bandwidth_tierB\027\n\025_enable_pri" + + "vate_nodesB\035\n\033_network_performance_confi" + + "g\"B\n\033AdditionalNodeNetworkConfig\022\017\n\007netw" + + "ork\030\001 \001(\t\022\022\n\nsubnetwork\030\002 \001(\t\"\253\001\n\032Additi" + + "onalPodNetworkConfig\022\022\n\nsubnetwork\030\001 \001(\t" + + "\022\033\n\023secondary_pod_range\030\002 \001(\t\022F\n\021max_pod" + + "s_per_node\030\003 \001(\0132&.google.container.v1.M" + + "axPodsConstraintH\000\210\001\001B\024\n\022_max_pods_per_n" + + "ode\"Y\n\026ShieldedInstanceConfig\022\032\n\022enable_" + + "secure_boot\030\001 \001(\010\022#\n\033enable_integrity_mo" + + "nitoring\030\002 \001(\010\"k\n\rSandboxConfig\0225\n\004type\030" + + "\002 \001(\0162\'.google.container.v1.SandboxConfi" + + "g.Type\"#\n\004Type\022\017\n\013UNSPECIFIED\020\000\022\n\n\006GVISO" + + "R\020\001\"\035\n\nGcfsConfig\022\017\n\007enabled\030\001 \001(\010\"\337\001\n\023R" + + "eservationAffinity\022O\n\030consume_reservatio" + + "n_type\030\001 \001(\0162-.google.container.v1.Reser" + + "vationAffinity.Type\022\013\n\003key\030\002 \001(\t\022\016\n\006valu" + + "es\030\003 \003(\t\"Z\n\004Type\022\017\n\013UNSPECIFIED\020\000\022\022\n\016NO_" + + "RESERVATION\020\001\022\023\n\017ANY_RESERVATION\020\002\022\030\n\024SP" + + "ECIFIC_RESERVATION\020\003\"\226\002\n\020SoleTenantConfi" + + "g\022K\n\017node_affinities\030\001 \003(\01322.google.cont" + + "ainer.v1.SoleTenantConfig.NodeAffinity\032\264" + + "\001\n\014NodeAffinity\022\013\n\003key\030\001 \001(\t\022M\n\010operator" + + "\030\002 \001(\0162;.google.container.v1.SoleTenantC" + + "onfig.NodeAffinity.Operator\022\016\n\006values\030\003 " + + "\003(\t\"8\n\010Operator\022\030\n\024OPERATOR_UNSPECIFIED\020" + + "\000\022\006\n\002IN\020\001\022\n\n\006NOT_IN\020\002\"\374\004\n\020ContainerdConf" + + "ig\022i\n\036private_registry_access_config\030\001 \001" + + "(\0132A.google.container.v1.ContainerdConfi" + + "g.PrivateRegistryAccessConfig\032\374\003\n\033Privat" + + "eRegistryAccessConfig\022\017\n\007enabled\030\001 \001(\010\022\217" + + "\001\n#certificate_authority_domain_config\030\002" + + " \003(\0132b.google.container.v1.ContainerdCon" + + "fig.PrivateRegistryAccessConfig.Certific" + + "ateAuthorityDomainConfig\032\271\002\n Certificate" + + "AuthorityDomainConfig\022\r\n\005fqdns\030\001 \003(\t\022\266\001\n" + + "%gcp_secret_manager_certificate_config\030\002" + + " \001(\0132\204\001.google.container.v1.ContainerdCo" + + "nfig.PrivateRegistryAccessConfig.Certifi" + + "cateAuthorityDomainConfig.GCPSecretManag" + + "erCertificateConfigH\000\0327\n!GCPSecretManage" + + "rCertificateConfig\022\022\n\nsecret_uri\030\001 \001(\tB\024" + + "\n\022certificate_config\"\271\001\n\tNodeTaint\022\013\n\003ke" + + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\0225\n\006effect\030\003 \001(\0162%" + + ".google.container.v1.NodeTaint.Effect\"Y\n" + + "\006Effect\022\026\n\022EFFECT_UNSPECIFIED\020\000\022\017\n\013NO_SC" + + "HEDULE\020\001\022\026\n\022PREFER_NO_SCHEDULE\020\002\022\016\n\nNO_E" + + "XECUTE\020\003\"<\n\nNodeTaints\022.\n\006taints\030\001 \003(\0132\036" + + ".google.container.v1.NodeTaint\"x\n\nNodeLa" + + "bels\022;\n\006labels\030\001 \003(\0132+.google.container." + + "v1.NodeLabels.LabelsEntry\032-\n\013LabelsEntry" + + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\200\001\n\016Res" + + "ourceLabels\022?\n\006labels\030\001 \003(\0132/.google.con" + + "tainer.v1.ResourceLabels.LabelsEntry\032-\n\013" + + "LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" + + "\0028\001\"\033\n\013NetworkTags\022\014\n\004tags\030\001 \003(\t\"\331\001\n\nMas" + + "terAuth\022\024\n\010username\030\001 \001(\tB\002\030\001\022\024\n\010passwor" + + "d\030\002 \001(\tB\002\030\001\022O\n\031client_certificate_config" + + "\030\003 \001(\0132,.google.container.v1.ClientCerti" + + "ficateConfig\022\036\n\026cluster_ca_certificate\030d" + + " \001(\t\022\032\n\022client_certificate\030e \001(\t\022\022\n\nclie" + + "nt_key\030f \001(\t\";\n\027ClientCertificateConfig\022" + + " \n\030issue_client_certificate\030\001 \001(\010\"\254\007\n\014Ad" + + "donsConfig\022C\n\023http_load_balancing\030\001 \001(\0132" + + "&.google.container.v1.HttpLoadBalancing\022" + + "Q\n\032horizontal_pod_autoscaling\030\002 \001(\0132-.go" + + "ogle.container.v1.HorizontalPodAutoscali" + + "ng\022J\n\024kubernetes_dashboard\030\003 \001(\0132(.googl" + + "e.container.v1.KubernetesDashboardB\002\030\001\022G" + + "\n\025network_policy_config\030\004 \001(\0132(.google.c" + + "ontainer.v1.NetworkPolicyConfig\022=\n\020cloud" + + "_run_config\030\007 \001(\0132#.google.container.v1." + + "CloudRunConfig\022=\n\020dns_cache_config\030\010 \001(\013" + + "2#.google.container.v1.DnsCacheConfig\022K\n" + + "\027config_connector_config\030\n \001(\0132*.google." + + "container.v1.ConfigConnectorConfig\022d\n%gc" + + "e_persistent_disk_csi_driver_config\030\013 \001(" + + "\01325.google.container.v1.GcePersistentDis" + + "kCsiDriverConfig\022Y\n\037gcp_filestore_csi_dr" + + "iver_config\030\016 \001(\01320.google.container.v1." + + "GcpFilestoreCsiDriverConfig\022J\n\027gke_backu" + + "p_agent_config\030\020 \001(\0132).google.container." + + "v1.GkeBackupAgentConfig\022O\n\032gcs_fuse_csi_" + + "driver_config\030\021 \001(\0132+.google.container.v" + + "1.GcsFuseCsiDriverConfig\022F\n\022stateful_ha_" + + "config\030\022 \001(\0132%.google.container.v1.State" + + "fulHAConfigB\003\340A\001\"%\n\021HttpLoadBalancing\022\020\n" + + "\010disabled\030\001 \001(\010\",\n\030HorizontalPodAutoscal" + + "ing\022\020\n\010disabled\030\001 \001(\010\"\'\n\023KubernetesDashb" + + "oard\022\020\n\010disabled\030\001 \001(\010\"\'\n\023NetworkPolicyC" + + "onfig\022\020\n\010disabled\030\001 \001(\010\"!\n\016DnsCacheConfi" + + "g\022\017\n\007enabled\030\001 \001(\010\"9\n&PrivateClusterMast" + + "erGlobalAccessConfig\022\017\n\007enabled\030\001 \001(\010\"\305\002" + + "\n\024PrivateClusterConfig\022\034\n\024enable_private" + + "_nodes\030\001 \001(\010\022\037\n\027enable_private_endpoint\030" + + "\002 \001(\010\022\036\n\026master_ipv4_cidr_block\030\003 \001(\t\022\030\n" + + "\020private_endpoint\030\004 \001(\t\022\027\n\017public_endpoi" + + "nt\030\005 \001(\t\022\024\n\014peering_name\030\007 \001(\t\022`\n\033master" + + "_global_access_config\030\010 \001(\0132;.google.con" + + "tainer.v1.PrivateClusterMasterGlobalAcce" + + "ssConfig\022#\n\033private_endpoint_subnetwork\030" + + "\n \001(\t\"D\n\031AuthenticatorGroupsConfig\022\017\n\007en" + + "abled\030\001 \001(\010\022\026\n\016security_group\030\002 \001(\t\"\356\001\n\016" + + "CloudRunConfig\022\020\n\010disabled\030\001 \001(\010\022P\n\022load" + + "_balancer_type\030\003 \001(\01624.google.container." + + "v1.CloudRunConfig.LoadBalancerType\"x\n\020Lo" + + "adBalancerType\022\"\n\036LOAD_BALANCER_TYPE_UNS" + + "PECIFIED\020\000\022\037\n\033LOAD_BALANCER_TYPE_EXTERNA" + + "L\020\001\022\037\n\033LOAD_BALANCER_TYPE_INTERNAL\020\002\"(\n\025" + + "ConfigConnectorConfig\022\017\n\007enabled\030\001 \001(\010\"3" + + "\n GcePersistentDiskCsiDriverConfig\022\017\n\007en" + + "abled\030\001 \001(\010\".\n\033GcpFilestoreCsiDriverConf" + + "ig\022\017\n\007enabled\030\001 \001(\010\")\n\026GcsFuseCsiDriverC" + + "onfig\022\017\n\007enabled\030\001 \001(\010\"\'\n\024GkeBackupAgent" + + "Config\022\017\n\007enabled\030\001 \001(\010\"#\n\020StatefulHACon" + + "fig\022\017\n\007enabled\030\001 \001(\010\"\216\002\n\036MasterAuthorize" + + "dNetworksConfig\022\017\n\007enabled\030\001 \001(\010\022R\n\013cidr" + + "_blocks\030\002 \003(\0132=.google.container.v1.Mast" + + "erAuthorizedNetworksConfig.CidrBlock\022,\n\037" + + "gcp_public_cidrs_access_enabled\030\003 \001(\010H\000\210" + + "\001\001\0325\n\tCidrBlock\022\024\n\014display_name\030\001 \001(\t\022\022\n" + + "\ncidr_block\030\002 \001(\tB\"\n _gcp_public_cidrs_a" + + "ccess_enabled\"\035\n\nLegacyAbac\022\017\n\007enabled\030\001" + + " \001(\010\"\221\001\n\rNetworkPolicy\022=\n\010provider\030\001 \001(\016" + + "2+.google.container.v1.NetworkPolicy.Pro" + + "vider\022\017\n\007enabled\030\002 \001(\010\"0\n\010Provider\022\030\n\024PR" + + "OVIDER_UNSPECIFIED\020\000\022\n\n\006CALICO\020\001\"\343\001\n\023Bin" + + "aryAuthorization\022\023\n\007enabled\030\001 \001(\010B\002\030\001\022P\n" + + "\017evaluation_mode\030\002 \001(\01627.google.containe" + + "r.v1.BinaryAuthorization.EvaluationMode\"" + + "e\n\016EvaluationMode\022\037\n\033EVALUATION_MODE_UNS" + + "PECIFIED\020\000\022\014\n\010DISABLED\020\001\022$\n PROJECT_SING" + + "LETON_POLICY_ENFORCE\020\002\"-\n\032PodCIDROverpro" + + "visionConfig\022\017\n\007disable\030\001 \001(\010\"\275\006\n\022IPAllo" + + "cationPolicy\022\026\n\016use_ip_aliases\030\001 \001(\010\022\031\n\021" + + "create_subnetwork\030\002 \001(\010\022\027\n\017subnetwork_na" + + "me\030\003 \001(\t\022\035\n\021cluster_ipv4_cidr\030\004 \001(\tB\002\030\001\022" + + "\032\n\016node_ipv4_cidr\030\005 \001(\tB\002\030\001\022\036\n\022services_" + + "ipv4_cidr\030\006 \001(\tB\002\030\001\022$\n\034cluster_secondary" + + "_range_name\030\007 \001(\t\022%\n\035services_secondary_" + + "range_name\030\010 \001(\t\022\037\n\027cluster_ipv4_cidr_bl" + + "ock\030\t \001(\t\022\034\n\024node_ipv4_cidr_block\030\n \001(\t\022" + + " \n\030services_ipv4_cidr_block\030\013 \001(\t\022\033\n\023tpu" + + "_ipv4_cidr_block\030\r \001(\t\022\022\n\nuse_routes\030\017 \001" + + "(\010\0222\n\nstack_type\030\020 \001(\0162\036.google.containe" + + "r.v1.StackType\022=\n\020ipv6_access_type\030\021 \001(\016" + + "2#.google.container.v1.IPv6AccessType\022V\n" + + "\035pod_cidr_overprovision_config\030\025 \001(\0132/.g" + + "oogle.container.v1.PodCIDROverprovisionC" + + "onfig\022#\n\026subnet_ipv6_cidr_block\030\026 \001(\tB\003\340" + + "A\003\022%\n\030services_ipv6_cidr_block\030\027 \001(\tB\003\340A" + + "\003\022Y\n\034additional_pod_ranges_config\030\030 \001(\0132" + + "..google.container.v1.AdditionalPodRange" + + "sConfigB\003\340A\003\022/\n\"default_pod_ipv4_range_u" + + "tilization\030\031 \001(\001B\003\340A\003\"\201\034\n\007Cluster\022\014\n\004nam" + + "e\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\022\036\n\022initial_" + + "node_count\030\003 \001(\005B\002\030\001\0228\n\013node_config\030\004 \001(" + + "\0132\037.google.container.v1.NodeConfigB\002\030\001\0224" + + "\n\013master_auth\030\005 \001(\0132\037.google.container.v" + + "1.MasterAuth\022\027\n\017logging_service\030\006 \001(\t\022\032\n" + + "\022monitoring_service\030\007 \001(\t\022\017\n\007network\030\010 \001" + + "(\t\022\031\n\021cluster_ipv4_cidr\030\t \001(\t\0228\n\raddons_" + + "config\030\n \001(\0132!.google.container.v1.Addon" + + "sConfig\022\022\n\nsubnetwork\030\013 \001(\t\0221\n\nnode_pool" + + "s\030\014 \003(\0132\035.google.container.v1.NodePool\022\021" + + "\n\tlocations\030\r \003(\t\022\037\n\027enable_kubernetes_a" + + "lpha\030\016 \001(\010\022I\n\017resource_labels\030\017 \003(\01320.go" + + "ogle.container.v1.Cluster.ResourceLabels" + + "Entry\022\031\n\021label_fingerprint\030\020 \001(\t\0224\n\013lega" + + "cy_abac\030\022 \001(\0132\037.google.container.v1.Lega" + + "cyAbac\022:\n\016network_policy\030\023 \001(\0132\".google." + + "container.v1.NetworkPolicy\022E\n\024ip_allocat" + + "ion_policy\030\024 \001(\0132\'.google.container.v1.I" + + "PAllocationPolicy\022^\n!master_authorized_n" + + "etworks_config\030\026 \001(\01323.google.container." + + "v1.MasterAuthorizedNetworksConfig\022B\n\022mai" + + "ntenance_policy\030\027 \001(\0132&.google.container" + + ".v1.MaintenancePolicy\022F\n\024binary_authoriz" + + "ation\030\030 \001(\0132(.google.container.v1.Binary" + + "Authorization\022<\n\013autoscaling\030\032 \001(\0132\'.goo" + + "gle.container.v1.ClusterAutoscaling\022:\n\016n" + + "etwork_config\030\033 \001(\0132\".google.container.v" + + "1.NetworkConfig\022K\n\033default_max_pods_cons" + + "traint\030\036 \001(\0132&.google.container.v1.MaxPo" + + "dsConstraint\022T\n\034resource_usage_export_co" + + "nfig\030! \001(\0132..google.container.v1.Resourc" + + "eUsageExportConfig\022S\n\033authenticator_grou" + + "ps_config\030\" \001(\0132..google.container.v1.Au" + + "thenticatorGroupsConfig\022I\n\026private_clust" + + "er_config\030% \001(\0132).google.container.v1.Pr" + + "ivateClusterConfig\022D\n\023database_encryptio" + + "n\030& \001(\0132\'.google.container.v1.DatabaseEn" + + "cryption\022M\n\030vertical_pod_autoscaling\030\' \001" + + "(\0132+.google.container.v1.VerticalPodAuto" + + "scaling\022:\n\016shielded_nodes\030( \001(\0132\".google" + + ".container.v1.ShieldedNodes\022<\n\017release_c" + + "hannel\030) \001(\0132#.google.container.v1.Relea" + + "seChannel\022M\n\030workload_identity_config\030+ " + + "\001(\0132+.google.container.v1.WorkloadIdenti" + + "tyConfig\022@\n\021mesh_certificates\030C \001(\0132%.go" + + "ogle.container.v1.MeshCertificates\022I\n\026co" + + "st_management_config\030- \001(\0132).google.cont" + + "ainer.v1.CostManagementConfig\022D\n\023notific" + + "ation_config\0301 \001(\0132\'.google.container.v1" + + ".NotificationConfig\022B\n\022confidential_node" + + "s\0302 \001(\0132&.google.container.v1.Confidenti" + + "alNodes\022K\n\027identity_service_config\0306 \001(\013" + + "2*.google.container.v1.IdentityServiceCo" + + "nfig\022\021\n\tself_link\030d \001(\t\022\020\n\004zone\030e \001(\tB\002\030" + + "\001\022\020\n\010endpoint\030f \001(\t\022\037\n\027initial_cluster_v" + + "ersion\030g \001(\t\022\036\n\026current_master_version\030h" + + " \001(\t\022 \n\024current_node_version\030i \001(\tB\002\030\001\022\023" + + "\n\013create_time\030j \001(\t\0223\n\006status\030k \001(\0162#.go" + + "ogle.container.v1.Cluster.Status\022\032\n\016stat" + + "us_message\030l \001(\tB\002\030\001\022\033\n\023node_ipv4_cidr_s" + + "ize\030m \001(\005\022\032\n\022services_ipv4_cidr\030n \001(\t\022\037\n" + + "\023instance_group_urls\030o \003(\tB\002\030\001\022\036\n\022curren" + + "t_node_count\030p \001(\005B\002\030\001\022\023\n\013expire_time\030q " + + "\001(\t\022\020\n\010location\030r \001(\t\022\022\n\nenable_tpu\030s \001(" + + "\010\022\033\n\023tpu_ipv4_cidr_block\030t \001(\t\0228\n\ncondit" + + "ions\030v \003(\0132$.google.container.v1.StatusC" + + "ondition\0222\n\tautopilot\030\200\001 \001(\0132\036.google.co" + + "ntainer.v1.Autopilot\022\020\n\002id\030\201\001 \001(\tB\003\340A\003\022G" + + "\n\022node_pool_defaults\030\203\001 \001(\0132%.google.con" + + "tainer.v1.NodePoolDefaultsH\000\210\001\001\022;\n\016loggi" + + "ng_config\030\204\001 \001(\0132\".google.container.v1.L" + + "oggingConfig\022A\n\021monitoring_config\030\205\001 \001(\013" + + "2%.google.container.v1.MonitoringConfig\022" + + "G\n\025node_pool_auto_config\030\210\001 \001(\0132\'.google" + + ".container.v1.NodePoolAutoConfig\022\r\n\004etag" + + "\030\213\001 \001(\t\022*\n\005fleet\030\214\001 \001(\0132\032.google.contain" + + "er.v1.Fleet\022L\n\027security_posture_config\030\221" + + "\001 \001(\0132*.google.container.v1.SecurityPost" + + "ureConfig\022D\n\024enable_k8s_beta_apis\030\217\001 \001(\013" + + "2%.google.container.v1.K8sBetaAPIConfig\022" + + "A\n\021enterprise_config\030\225\001 \001(\0132%.google.con" + + "tainer.v1.EnterpriseConfig\022 \n\rsatisfies_" + + "pzs\030\230\001 \001(\010B\003\340A\003H\001\210\001\001\022 \n\rsatisfies_pzi\030\231\001" + + " \001(\010B\003\340A\003H\002\210\001\001\0325\n\023ResourceLabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"w\n\006Status\022" + + "\026\n\022STATUS_UNSPECIFIED\020\000\022\020\n\014PROVISIONING\020" + + "\001\022\013\n\007RUNNING\020\002\022\017\n\013RECONCILING\020\003\022\014\n\010STOPP" + + "ING\020\004\022\t\n\005ERROR\020\005\022\014\n\010DEGRADED\020\006B\025\n\023_node_" + + "pool_defaultsB\020\n\016_satisfies_pzsB\020\n\016_sati" + + "sfies_pzi\"(\n\020K8sBetaAPIConfig\022\024\n\014enabled" + + "_apis\030\001 \003(\t\"\256\003\n\025SecurityPostureConfig\022B\n" + + "\004mode\030\001 \001(\0162/.google.container.v1.Securi" + + "tyPostureConfig.ModeH\000\210\001\001\022]\n\022vulnerabili" + + "ty_mode\030\002 \001(\0162<.google.container.v1.Secu" + + "rityPostureConfig.VulnerabilityModeH\001\210\001\001" + + "\"E\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020\000\022\014\n\010DISABL" + + "ED\020\001\022\t\n\005BASIC\020\002\022\016\n\nENTERPRISE\020\003\"\212\001\n\021Vuln" + + "erabilityMode\022\"\n\036VULNERABILITY_MODE_UNSP" + + "ECIFIED\020\000\022\032\n\026VULNERABILITY_DISABLED\020\001\022\027\n" + + "\023VULNERABILITY_BASIC\020\002\022\034\n\030VULNERABILITY_" + + "ENTERPRISE\020\003B\007\n\005_modeB\025\n\023_vulnerability_" + + "mode\"\332\001\n\022NodePoolAutoConfig\0226\n\014network_t" + + "ags\030\001 \001(\0132 .google.container.v1.NetworkT" + + "ags\022G\n\025resource_manager_tags\030\002 \001(\0132(.goo" + + "gle.container.v1.ResourceManagerTags\022C\n\023" + + "node_kubelet_config\030\003 \001(\0132&.google.conta" + + "iner.v1.NodeKubeletConfig\"Y\n\020NodePoolDef" + + "aults\022E\n\024node_config_defaults\030\001 \001(\0132\'.go" + + "ogle.container.v1.NodeConfigDefaults\"\225\002\n" + + "\022NodeConfigDefaults\0224\n\013gcfs_config\030\001 \001(\013" + + "2\037.google.container.v1.GcfsConfig\022B\n\016log" + + "ging_config\030\003 \001(\0132*.google.container.v1." + + "NodePoolLoggingConfig\022@\n\021containerd_conf" + + "ig\030\004 \001(\0132%.google.container.v1.Container" + + "dConfig\022C\n\023node_kubelet_config\030\006 \001(\0132&.g" + + "oogle.container.v1.NodeKubeletConfig\"\220!\n" + + "\rClusterUpdate\022\034\n\024desired_node_version\030\004" + + " \001(\t\022\"\n\032desired_monitoring_service\030\005 \001(\t" + + "\022@\n\025desired_addons_config\030\006 \001(\0132!.google" + + ".container.v1.AddonsConfig\022\034\n\024desired_no" + + "de_pool_id\030\007 \001(\t\022\032\n\022desired_image_type\030\010" + + " \001(\t\022L\n\033desired_database_encryption\030. \001(" + + "\0132\'.google.container.v1.DatabaseEncrypti" + + "on\022U\n desired_workload_identity_config\030/" + + " \001(\0132+.google.container.v1.WorkloadIdent" + + "ityConfig\022H\n\031desired_mesh_certificates\030C" + + " \001(\0132%.google.container.v1.MeshCertifica" + + "tes\022B\n\026desired_shielded_nodes\0300 \001(\0132\".go" + + "ogle.container.v1.ShieldedNodes\022Q\n\036desir" + + "ed_cost_management_config\0301 \001(\0132).google" + + ".container.v1.CostManagementConfig\022:\n\022de" + + "sired_dns_config\0305 \001(\0132\036.google.containe" + + "r.v1.DNSConfig\022O\n\035desired_node_pool_auto", + "scaling\030\t \001(\0132(.google.container.v1.Node" + + "PoolAutoscaling\022\031\n\021desired_locations\030\n \003" + + "(\t\022f\n)desired_master_authorized_networks" + + "_config\030\014 \001(\01323.google.container.v1.Mast" + + "erAuthorizedNetworksConfig\022L\n\033desired_cl" + + "uster_autoscaling\030\017 \001(\0132\'.google.contain" + + "er.v1.ClusterAutoscaling\022N\n\034desired_bina" + + "ry_authorization\030\020 \001(\0132(.google.containe" + + "r.v1.BinaryAuthorization\022\037\n\027desired_logg" + + "ing_service\030\023 \001(\t\022\\\n$desired_resource_us" + + "age_export_config\030\025 \001(\0132..google.contain" + + "er.v1.ResourceUsageExportConfig\022U\n desir" + + "ed_vertical_pod_autoscaling\030\026 \001(\0132+.goog" + + "le.container.v1.VerticalPodAutoscaling\022Q" + + "\n\036desired_private_cluster_config\030\031 \001(\0132)" + + ".google.container.v1.PrivateClusterConfi" + + "g\022\\\n$desired_intra_node_visibility_confi" + + "g\030\032 \001(\0132..google.container.v1.IntraNodeV" + + "isibilityConfig\022K\n\033desired_default_snat_" + + "status\030\034 \001(\0132&.google.container.v1.Defau" + + "ltSnatStatus\022D\n\027desired_release_channel\030" + + "\037 \001(\0132#.google.container.v1.ReleaseChann" + + "el\022Q\n\037desired_l4ilb_subsetting_config\030\' " + + "\001(\0132(.google.container.v1.ILBSubsettingC" + + "onfig\022H\n\031desired_datapath_provider\0302 \001(\016" + + "2%.google.container.v1.DatapathProvider\022" + + "X\n\"desired_private_ipv6_google_access\0303 " + + "\001(\0162,.google.container.v1.PrivateIPv6Goo" + + "gleAccess\022L\n\033desired_notification_config" + + "\0307 \001(\0132\'.google.container.v1.Notificatio" + + "nConfig\022[\n#desired_authenticator_groups_" + + "config\030? \001(\0132..google.container.v1.Authe" + + "nticatorGroupsConfig\022B\n\026desired_logging_" + + "config\030@ \001(\0132\".google.container.v1.Loggi" + + "ngConfig\022H\n\031desired_monitoring_config\030A " + + "\001(\0132%.google.container.v1.MonitoringConf" + + "ig\022S\n\037desired_identity_service_config\030B " + + "\001(\0132*.google.container.v1.IdentityServic" + + "eConfig\022Z\n#desired_service_external_ips_" + + "config\030< \001(\0132-.google.container.v1.Servi" + + "ceExternalIPsConfig\022,\n\037desired_enable_pr" + + "ivate_endpoint\030G \001(\010H\000\210\001\001\022\036\n\026desired_mas" + + "ter_version\030d \001(\t\022<\n\023desired_gcfs_config" + + "\030m \001(\0132\037.google.container.v1.GcfsConfig\022" + + "T\n*desired_node_pool_auto_config_network" + + "_tags\030n \001(\0132 .google.container.v1.Networ" + + "kTags\022I\n\032desired_gateway_api_config\030r \001(" + + "\0132%.google.container.v1.GatewayAPIConfig" + + "\022\014\n\004etag\030s \001(\t\022T\n desired_node_pool_logg" + + "ing_config\030t \001(\0132*.google.container.v1.N" + + "odePoolLoggingConfig\0221\n\rdesired_fleet\030u " + + "\001(\0132\032.google.container.v1.Fleet\022:\n\022desir" + + "ed_stack_type\030w \001(\0162\036.google.container.v" + + "1.StackType\022T\n\034additional_pod_ranges_con" + + "fig\030x \001(\0132..google.container.v1.Addition" + + "alPodRangesConfig\022\\\n$removed_additional_" + + "pod_ranges_config\030y \001(\0132..google.contain" + + "er.v1.AdditionalPodRangesConfig\022C\n\024enabl" + + "e_k8s_beta_apis\030z \001(\0132%.google.container" + + ".v1.K8sBetaAPIConfig\022S\n\037desired_security" + + "_posture_config\030| \001(\0132*.google.container" + + ".v1.SecurityPostureConfig\022n\n\"desired_net" + + "work_performance_config\030} \001(\0132B.google.c" + + "ontainer.v1.NetworkConfig.ClusterNetwork" + + "PerformanceConfig\022/\n\"desired_enable_fqdn" + + "_network_policy\030~ \001(\010H\001\210\001\001\022\\\n(desired_au" + + "topilot_workload_policy_config\030\200\001 \001(\0132)." + + "google.container.v1.WorkloadPolicyConfig" + + "\022E\n\025desired_k8s_beta_apis\030\203\001 \001(\0132%.googl" + + "e.container.v1.K8sBetaAPIConfig\022I\n\031desir" + + "ed_containerd_config\030\206\001 \001(\0132%.google.con" + + "tainer.v1.ContainerdConfig\022-\n\037desired_en" + + "able_multi_networking\030\207\001 \001(\010H\002\210\001\001\022f\n3des" + + "ired_node_pool_auto_config_resource_mana" + + "ger_tags\030\210\001 \001(\0132(.google.container.v1.Re" + + "sourceManagerTags\022b\n$desired_in_transit_" + + "encryption_config\030\211\001 \001(\0162..google.contai" + + "ner.v1.InTransitEncryptionConfigH\003\210\001\001\022>\n" + + "0desired_enable_cilium_clusterwide_netwo" + + "rk_policy\030\212\001 \001(\010H\004\210\001\001\022L\n\033desired_node_ku" + + "belet_config\030\215\001 \001(\0132&.google.container.v" + + "1.NodeKubeletConfig\022]\n,desired_node_pool" + + "_auto_config_kubelet_config\030\216\001 \001(\0132&.goo" + + "gle.container.v1.NodeKubeletConfigB\"\n _d" + + "esired_enable_private_endpointB%\n#_desir" + + "ed_enable_fqdn_network_policyB\"\n _desire" + + "d_enable_multi_networkingB\'\n%_desired_in" + + "_transit_encryption_configB3\n1_desired_e" + + "nable_cilium_clusterwide_network_policy\"" + + "q\n\031AdditionalPodRangesConfig\022\027\n\017pod_rang" + + "e_names\030\001 \003(\t\022;\n\016pod_range_info\030\002 \003(\0132\036." + + "google.container.v1.RangeInfoB\003\340A\003\">\n\tRa" + + "ngeInfo\022\027\n\nrange_name\030\001 \001(\tB\003\340A\003\022\030\n\013util" + + "ization\030\002 \001(\001B\003\340A\003\"\264\010\n\tOperation\022\014\n\004name" + + "\030\001 \001(\t\022\020\n\004zone\030\002 \001(\tB\002\030\001\022;\n\016operation_ty" + + "pe\030\003 \001(\0162#.google.container.v1.Operation" + + ".Type\0225\n\006status\030\004 \001(\0162%.google.container" + + ".v1.Operation.Status\022\016\n\006detail\030\010 \001(\t\022\035\n\016" + + "status_message\030\005 \001(\tB\005\030\001\340A\003\022\021\n\tself_link" + + "\030\006 \001(\t\022\023\n\013target_link\030\007 \001(\t\022\020\n\010location\030" + + "\t \001(\t\022\022\n\nstart_time\030\n \001(\t\022\020\n\010end_time\030\013 " + + "\001(\t\022=\n\010progress\030\014 \001(\0132&.google.container" + + ".v1.OperationProgressB\003\340A\003\022D\n\022cluster_co" + + "nditions\030\r \003(\0132$.google.container.v1.Sta" + + "tusConditionB\002\030\001\022E\n\023nodepool_conditions\030" + + "\016 \003(\0132$.google.container.v1.StatusCondit" + + "ionB\002\030\001\022!\n\005error\030\017 \001(\0132\022.google.rpc.Stat" + + "us\"R\n\006Status\022\026\n\022STATUS_UNSPECIFIED\020\000\022\013\n\007" + + "PENDING\020\001\022\013\n\007RUNNING\020\002\022\010\n\004DONE\020\003\022\014\n\010ABOR" + + "TING\020\004\"\300\003\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\022\n" + + "\016CREATE_CLUSTER\020\001\022\022\n\016DELETE_CLUSTER\020\002\022\022\n" + + "\016UPGRADE_MASTER\020\003\022\021\n\rUPGRADE_NODES\020\004\022\022\n\016" + + "REPAIR_CLUSTER\020\005\022\022\n\016UPDATE_CLUSTER\020\006\022\024\n\020" + + "CREATE_NODE_POOL\020\007\022\024\n\020DELETE_NODE_POOL\020\010" + + "\022\034\n\030SET_NODE_POOL_MANAGEMENT\020\t\022\025\n\021AUTO_R" + + "EPAIR_NODES\020\n\022\032\n\022AUTO_UPGRADE_NODES\020\013\032\002\010" + + "\001\022\022\n\nSET_LABELS\020\014\032\002\010\001\022\027\n\017SET_MASTER_AUTH" + + "\020\r\032\002\010\001\022\026\n\022SET_NODE_POOL_SIZE\020\016\022\032\n\022SET_NE" + + "TWORK_POLICY\020\017\032\002\010\001\022\036\n\026SET_MAINTENANCE_PO" + + "LICY\020\020\032\002\010\001\022\022\n\016RESIZE_CLUSTER\020\022\022\031\n\025FLEET_" + + "FEATURE_UPGRADE\020\023\"\273\002\n\021OperationProgress\022" + + "\014\n\004name\030\001 \001(\t\0225\n\006status\030\002 \001(\0162%.google.c" + + "ontainer.v1.Operation.Status\022>\n\007metrics\030" + + "\003 \003(\0132-.google.container.v1.OperationPro" + + "gress.Metric\0226\n\006stages\030\004 \003(\0132&.google.co" + + "ntainer.v1.OperationProgress\032i\n\006Metric\022\021" + + "\n\004name\030\001 \001(\tB\003\340A\002\022\023\n\tint_value\030\002 \001(\003H\000\022\026" + + "\n\014double_value\030\003 \001(\001H\000\022\026\n\014string_value\030\004" + + " \001(\tH\000B\007\n\005value\"\204\001\n\024CreateClusterRequest" + "\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002" - + "\030\001\022\016\n\006parent\030\004 \001(\t\"]\n\024ListClustersRespon" - + "se\022.\n\010clusters\030\001 \003(\0132\034.google.container." - + "v1.Cluster\022\025\n\rmissing_zones\030\002 \003(\t\"g\n\023Get" - + "OperationRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001" - + "\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\030\n\014operation_id\030\003 \001(\t" - + "B\002\030\001\022\014\n\004name\030\005 \001(\t\"Q\n\025ListOperationsRequ" - + "est\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(" - + "\tB\002\030\001\022\016\n\006parent\030\004 \001(\t\"j\n\026CancelOperation" - + "Request\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030" - + "\002 \001(\tB\002\030\001\022\030\n\014operation_id\030\003 \001(\tB\002\030\001\022\014\n\004n" - + "ame\030\004 \001(\t\"c\n\026ListOperationsResponse\0222\n\no" - + "perations\030\001 \003(\0132\036.google.container.v1.Op" - + "eration\022\025\n\rmissing_zones\030\002 \003(\t\"P\n\026GetSer" - + "verConfigRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001" - + "\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\014\n\004name\030\004 \001(\t\"\364\002\n\014Ser" - + "verConfig\022\037\n\027default_cluster_version\030\001 \001" - + "(\t\022\033\n\023valid_node_versions\030\003 \003(\t\022\032\n\022defau" - + "lt_image_type\030\004 \001(\t\022\031\n\021valid_image_types" - + "\030\005 \003(\t\022\035\n\025valid_master_versions\030\006 \003(\t\022H\n" - + "\010channels\030\t \003(\01326.google.container.v1.Se" - + "rverConfig.ReleaseChannelConfig\032\205\001\n\024Rele" - + "aseChannelConfig\022<\n\007channel\030\001 \001(\0162+.goog" - + "le.container.v1.ReleaseChannel.Channel\022\027" - + "\n\017default_version\030\002 \001(\t\022\026\n\016valid_version" - + "s\030\004 \003(\t\"\240\001\n\025CreateNodePoolRequest\022\026\n\npro" - + "ject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\nc" - + "luster_id\030\003 \001(\tB\002\030\001\0225\n\tnode_pool\030\004 \001(\0132\035" - + ".google.container.v1.NodePoolB\003\340A\002\022\016\n\006pa" - + "rent\030\006 \001(\t\"\201\001\n\025DeleteNodePoolRequest\022\026\n\n" + + "\030\001\0222\n\007cluster\030\003 \001(\0132\034.google.container.v" + + "1.ClusterB\003\340A\002\022\016\n\006parent\030\005 \001(\t\"c\n\021GetClu" + + "sterRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004z" + + "one\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\014\n" + + "\004name\030\005 \001(\t\"\237\001\n\024UpdateClusterRequest\022\026\n\n" + "project_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026" - + "\n\ncluster_id\030\003 \001(\tB\002\030\001\022\030\n\014node_pool_id\030\004" - + " \001(\tB\002\030\001\022\014\n\004name\030\006 \001(\t\"h\n\024ListNodePoolsR" + + "\n\ncluster_id\030\003 \001(\tB\002\030\001\0227\n\006update\030\004 \001(\0132\"" + + ".google.container.v1.ClusterUpdateB\003\340A\002\022" + + "\014\n\004name\030\005 \001(\t\"\323\013\n\025UpdateNodePoolRequest\022" + + "\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030" + + "\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\030\n\014node_pool_i" + + "d\030\004 \001(\tB\002\030\001\022\031\n\014node_version\030\005 \001(\tB\003\340A\002\022\027" + + "\n\nimage_type\030\006 \001(\tB\003\340A\002\022\014\n\004name\030\010 \001(\t\022\021\n" + + "\tlocations\030\r \003(\t\022M\n\030workload_metadata_co" + + "nfig\030\016 \001(\0132+.google.container.v1.Workloa" + + "dMetadataConfig\022G\n\020upgrade_settings\030\017 \001(" + + "\0132-.google.container.v1.NodePool.Upgrade" + + "Settings\022.\n\004tags\030\020 \001(\0132 .google.containe" + + "r.v1.NetworkTags\022/\n\006taints\030\021 \001(\0132\037.googl" + + "e.container.v1.NodeTaints\022/\n\006labels\030\022 \001(" + + "\0132\037.google.container.v1.NodeLabels\022?\n\021li" + + "nux_node_config\030\023 \001(\0132$.google.container" + + ".v1.LinuxNodeConfig\022>\n\016kubelet_config\030\024 " + + "\001(\0132&.google.container.v1.NodeKubeletCon" + + "fig\022C\n\023node_network_config\030\025 \001(\0132&.googl" + + "e.container.v1.NodeNetworkConfig\0224\n\013gcfs" + + "_config\030\026 \001(\0132\037.google.container.v1.Gcfs" + + "Config\022B\n\022confidential_nodes\030\027 \001(\0132&.goo" + + "gle.container.v1.ConfidentialNodes\022.\n\005gv" + + "nic\030\035 \001(\0132\037.google.container.v1.VirtualN" + + "IC\022\014\n\004etag\030\036 \001(\t\0224\n\013fast_socket\030\037 \001(\0132\037." + + "google.container.v1.FastSocket\022B\n\016loggin" + + "g_config\030 \001(\0132*.google.container.v1.Nod" + + "ePoolLoggingConfig\022<\n\017resource_labels\030! " + + "\001(\0132#.google.container.v1.ResourceLabels" + + "\022C\n\023windows_node_config\030\" \001(\0132&.google.c" + + "ontainer.v1.WindowsNodeConfig\022<\n\014acceler" + + "ators\030# \003(\0132&.google.container.v1.Accele" + + "ratorConfig\022\031\n\014machine_type\030$ \001(\tB\003\340A\001\022\026" + + "\n\tdisk_type\030% \001(\tB\003\340A\001\022\031\n\014disk_size_gb\030&" + + " \001(\003B\003\340A\001\022G\n\025resource_manager_tags\030\' \001(\013" + + "2(.google.container.v1.ResourceManagerTa" + + "gs\022@\n\021containerd_config\030( \001(\0132%.google.c" + + "ontainer.v1.ContainerdConfig\022M\n\023queued_p" + + "rovisioning\030* \001(\01320.google.container.v1." + + "NodePool.QueuedProvisioning\"\315\001\n\035SetNodeP" + + "oolAutoscalingRequest\022\026\n\nproject_id\030\001 \001(" + + "\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 " + + "\001(\tB\002\030\001\022\030\n\014node_pool_id\030\004 \001(\tB\002\030\001\022B\n\013aut" + + "oscaling\030\005 \001(\0132(.google.container.v1.Nod" + + "ePoolAutoscalingB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\210\001\n\030" + + "SetLoggingServiceRequest\022\026\n\nproject_id\030\001" + + " \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id" + + "\030\003 \001(\tB\002\030\001\022\034\n\017logging_service\030\004 \001(\tB\003\340A\002" + + "\022\014\n\004name\030\005 \001(\t\"\216\001\n\033SetMonitoringServiceR" + "equest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002" - + " \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\016\n\006pare" - + "nt\030\005 \001(\t\"~\n\022GetNodePoolRequest\022\026\n\nprojec" - + "t_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\nclus" - + "ter_id\030\003 \001(\tB\002\030\001\022\030\n\014node_pool_id\030\004 \001(\tB\002" - + "\030\001\022\014\n\004name\030\006 \001(\t\"\237\003\n\021BlueGreenSettings\022_" - + "\n\027standard_rollout_policy\030\001 \001(\0132<.google" - + ".container.v1.BlueGreenSettings.Standard" - + "RolloutPolicyH\000\022?\n\027node_pool_soak_durati" - + "on\030\002 \001(\0132\031.google.protobuf.DurationH\001\210\001\001" - + "\032\271\001\n\025StandardRolloutPolicy\022\032\n\020batch_perc" - + "entage\030\001 \001(\002H\000\022\032\n\020batch_node_count\030\002 \001(\005" - + "H\000\022;\n\023batch_soak_duration\030\003 \001(\0132\031.google" - + ".protobuf.DurationH\001\210\001\001B\023\n\021update_batch_" - + "sizeB\026\n\024_batch_soak_durationB\020\n\016rollout_" - + "policyB\032\n\030_node_pool_soak_duration\"\272\020\n\010N" - + "odePool\022\014\n\004name\030\001 \001(\t\022/\n\006config\030\002 \001(\0132\037." - + "google.container.v1.NodeConfig\022\032\n\022initia" - + "l_node_count\030\003 \001(\005\022\021\n\tlocations\030\r \003(\t\022>\n" - + "\016network_config\030\016 \001(\0132&.google.container" - + ".v1.NodeNetworkConfig\022\021\n\tself_link\030d \001(\t" - + "\022\017\n\007version\030e \001(\t\022\033\n\023instance_group_urls" - + "\030f \003(\t\0224\n\006status\030g \001(\0162$.google.containe" - + "r.v1.NodePool.Status\022\032\n\016status_message\030h" - + " \001(\tB\002\030\001\022=\n\013autoscaling\030\004 \001(\0132(.google.c" - + "ontainer.v1.NodePoolAutoscaling\0227\n\nmanag" - + "ement\030\005 \001(\0132#.google.container.v1.NodeMa" - + "nagement\022C\n\023max_pods_constraint\030\006 \001(\0132&." - + "google.container.v1.MaxPodsConstraint\0228\n" - + "\nconditions\030i \003(\0132$.google.container.v1." - + "StatusCondition\022\032\n\022pod_ipv4_cidr_size\030\007 " - + "\001(\005\022G\n\020upgrade_settings\030k \001(\0132-.google.c" - + "ontainer.v1.NodePool.UpgradeSettings\022G\n\020" - + "placement_policy\030l \001(\0132-.google.containe" - + "r.v1.NodePool.PlacementPolicy\022B\n\013update_" - + "info\030m \001(\0132(.google.container.v1.NodePoo" - + "l.UpdateInfoB\003\340A\003\022\014\n\004etag\030n \001(\t\022M\n\023queue" - + "d_provisioning\030p \001(\01320.google.container." - + "v1.NodePool.QueuedProvisioning\022M\n\030best_e" - + "ffort_provisioning\030q \001(\0132+.google.contai" - + "ner.v1.BestEffortProvisioning\032\360\001\n\017Upgrad" - + "eSettings\022\021\n\tmax_surge\030\001 \001(\005\022\027\n\017max_unav" - + "ailable\030\002 \001(\005\022B\n\010strategy\030\003 \001(\0162+.google" - + ".container.v1.NodePoolUpdateStrategyH\000\210\001" - + "\001\022H\n\023blue_green_settings\030\004 \001(\0132&.google." - + "container.v1.BlueGreenSettingsH\001\210\001\001B\013\n\t_" - + "strategyB\026\n\024_blue_green_settings\032\210\004\n\nUpd" - + "ateInfo\022O\n\017blue_green_info\030\001 \001(\01326.googl" - + "e.container.v1.NodePool.UpdateInfo.BlueG" - + "reenInfo\032\250\003\n\rBlueGreenInfo\022K\n\005phase\030\001 \001(" - + "\0162<.google.container.v1.NodePool.UpdateI" - + "nfo.BlueGreenInfo.Phase\022 \n\030blue_instance" - + "_group_urls\030\002 \003(\t\022!\n\031green_instance_grou" - + "p_urls\030\003 \003(\t\022%\n\035blue_pool_deletion_start" - + "_time\030\004 \001(\t\022\032\n\022green_pool_version\030\005 \001(\t\"" - + "\301\001\n\005Phase\022\025\n\021PHASE_UNSPECIFIED\020\000\022\022\n\016UPDA" - + "TE_STARTED\020\001\022\027\n\023CREATING_GREEN_POOL\020\002\022\027\n" - + "\023CORDONING_BLUE_POOL\020\003\022\026\n\022DRAINING_BLUE_" - + "POOL\020\004\022\025\n\021NODE_POOL_SOAKING\020\005\022\026\n\022DELETIN" - + "G_BLUE_POOL\020\006\022\024\n\020ROLLBACK_STARTED\020\007\032\256\001\n\017" - + "PlacementPolicy\022@\n\004type\030\001 \001(\01622.google.c" - + "ontainer.v1.NodePool.PlacementPolicy.Typ" - + "e\022\031\n\014tpu_topology\030\002 \001(\tB\003\340A\001\022\023\n\013policy_n" - + "ame\030\003 \001(\t\")\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022" - + "\013\n\007COMPACT\020\001\032%\n\022QueuedProvisioning\022\017\n\007en" - + "abled\030\001 \001(\010\"\201\001\n\006Status\022\026\n\022STATUS_UNSPECI" - + "FIED\020\000\022\020\n\014PROVISIONING\020\001\022\013\n\007RUNNING\020\002\022\026\n" - + "\022RUNNING_WITH_ERROR\020\003\022\017\n\013RECONCILING\020\004\022\014" - + "\n\010STOPPING\020\005\022\t\n\005ERROR\020\006\"}\n\016NodeManagemen" - + "t\022\024\n\014auto_upgrade\030\001 \001(\010\022\023\n\013auto_repair\030\002" - + " \001(\010\022@\n\017upgrade_options\030\n \001(\0132\'.google.c" - + "ontainer.v1.AutoUpgradeOptions\"F\n\026BestEf" - + "fortProvisioning\022\017\n\007enabled\030\001 \001(\010\022\033\n\023min" - + "_provision_nodes\030\002 \001(\005\"J\n\022AutoUpgradeOpt" - + "ions\022\037\n\027auto_upgrade_start_time\030\001 \001(\t\022\023\n" - + "\013description\030\002 \001(\t\"e\n\021MaintenancePolicy\022" - + "6\n\006window\030\001 \001(\0132&.google.container.v1.Ma" - + "intenanceWindow\022\030\n\020resource_version\030\003 \001(" - + "\t\"\366\002\n\021MaintenanceWindow\022O\n\030daily_mainten" - + "ance_window\030\002 \001(\0132+.google.container.v1." - + "DailyMaintenanceWindowH\000\022D\n\020recurring_wi" - + "ndow\030\003 \001(\0132(.google.container.v1.Recurri" - + "ngTimeWindowH\000\022a\n\026maintenance_exclusions" - + "\030\004 \003(\0132A.google.container.v1.Maintenance" - + "Window.MaintenanceExclusionsEntry\032]\n\032Mai" - + "ntenanceExclusionsEntry\022\013\n\003key\030\001 \001(\t\022.\n\005" - + "value\030\002 \001(\0132\037.google.container.v1.TimeWi" - + "ndow:\0028\001B\010\n\006policy\"\320\001\n\nTimeWindow\022Y\n\035mai" - + "ntenance_exclusion_options\030\003 \001(\01320.googl" - + "e.container.v1.MaintenanceExclusionOptio" - + "nsH\000\022.\n\nstart_time\030\001 \001(\0132\032.google.protob" - + "uf.Timestamp\022,\n\010end_time\030\002 \001(\0132\032.google." - + "protobuf.TimestampB\t\n\007options\"\264\001\n\033Mainte" - + "nanceExclusionOptions\022E\n\005scope\030\001 \001(\01626.g" - + "oogle.container.v1.MaintenanceExclusionO" - + "ptions.Scope\"N\n\005Scope\022\017\n\013NO_UPGRADES\020\000\022\025" - + "\n\021NO_MINOR_UPGRADES\020\001\022\035\n\031NO_MINOR_OR_NOD" - + "E_UPGRADES\020\002\"Z\n\023RecurringTimeWindow\022/\n\006w" - + "indow\030\001 \001(\0132\037.google.container.v1.TimeWi" - + "ndow\022\022\n\nrecurrence\030\002 \001(\t\">\n\026DailyMainten" - + "anceWindow\022\022\n\nstart_time\030\002 \001(\t\022\020\n\010durati" - + "on\030\003 \001(\t\"\306\001\n\034SetNodePoolManagementReques" - + "t\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB" - + "\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\030\n\014node_pool" - + "_id\030\004 \001(\tB\002\030\001\022<\n\nmanagement\030\005 \001(\0132#.goog" - + "le.container.v1.NodeManagementB\003\340A\002\022\014\n\004n" - + "ame\030\007 \001(\t\"\233\001\n\026SetNodePoolSizeRequest\022\026\n\n" - + "project_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026" - + "\n\ncluster_id\030\003 \001(\tB\002\030\001\022\030\n\014node_pool_id\030\004" - + " \001(\tB\002\030\001\022\027\n\nnode_count\030\005 \001(\005B\003\340A\002\022\014\n\004nam" - + "e\030\007 \001(\t\".\n\036CompleteNodePoolUpgradeReques" - + "t\022\014\n\004name\030\001 \001(\t\"\237\001\n\036RollbackNodePoolUpgr" - + "adeRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zo" - + "ne\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\030\n\014" - + "node_pool_id\030\004 \001(\tB\002\030\001\022\014\n\004name\030\006 \001(\t\022\023\n\013" - + "respect_pdb\030\007 \001(\010\"J\n\025ListNodePoolsRespon" - + "se\0221\n\nnode_pools\030\001 \003(\0132\035.google.containe" - + "r.v1.NodePool\"\257\003\n\022ClusterAutoscaling\022$\n\034" - + "enable_node_autoprovisioning\030\001 \001(\010\022;\n\017re" - + "source_limits\030\002 \003(\0132\".google.container.v" - + "1.ResourceLimit\022W\n\023autoscaling_profile\030\003" - + " \001(\0162:.google.container.v1.ClusterAutosc" - + "aling.AutoscalingProfile\022b\n#autoprovisio" - + "ning_node_pool_defaults\030\004 \001(\01325.google.c" - + "ontainer.v1.AutoprovisioningNodePoolDefa" - + "ults\022\"\n\032autoprovisioning_locations\030\005 \003(\t" - + "\"U\n\022AutoscalingProfile\022\027\n\023PROFILE_UNSPEC" - + "IFIED\020\000\022\030\n\024OPTIMIZE_UTILIZATION\020\001\022\014\n\010BAL" - + "ANCED\020\002\"\370\003\n AutoprovisioningNodePoolDefa" - + "ults\022\024\n\014oauth_scopes\030\001 \003(\t\022\027\n\017service_ac" - + "count\030\002 \001(\t\022G\n\020upgrade_settings\030\003 \001(\0132-." - + "google.container.v1.NodePool.UpgradeSett" - + "ings\0227\n\nmanagement\030\004 \001(\0132#.google.contai" - + "ner.v1.NodeManagement\022\034\n\020min_cpu_platfor" - + "m\030\005 \001(\tB\002\030\001\022\024\n\014disk_size_gb\030\006 \001(\005\022\021\n\tdis" - + "k_type\030\007 \001(\t\022M\n\030shielded_instance_config" - + "\030\010 \001(\0132+.google.container.v1.ShieldedIns" - + "tanceConfig\022\031\n\021boot_disk_kms_key\030\t \001(\t\022\022" - + "\n\nimage_type\030\n \001(\t\0223\n&insecure_kubelet_r" - + "eadonly_port_enabled\030\r \001(\010H\000\210\001\001B)\n\'_inse" - + "cure_kubelet_readonly_port_enabled\"H\n\rRe" - + "sourceLimit\022\025\n\rresource_type\030\001 \001(\t\022\017\n\007mi" - + "nimum\030\002 \001(\003\022\017\n\007maximum\030\003 \001(\003\"\307\002\n\023NodePoo" - + "lAutoscaling\022\017\n\007enabled\030\001 \001(\010\022\026\n\016min_nod" - + "e_count\030\002 \001(\005\022\026\n\016max_node_count\030\003 \001(\005\022\027\n" - + "\017autoprovisioned\030\004 \001(\010\022P\n\017location_polic" - + "y\030\005 \001(\01627.google.container.v1.NodePoolAu" - + "toscaling.LocationPolicy\022\034\n\024total_min_no" - + "de_count\030\006 \001(\005\022\034\n\024total_max_node_count\030\007" - + " \001(\005\"H\n\016LocationPolicy\022\037\n\033LOCATION_POLIC" - + "Y_UNSPECIFIED\020\000\022\014\n\010BALANCED\020\001\022\007\n\003ANY\020\002\"\222" - + "\002\n\020SetLabelsRequest\022\026\n\nproject_id\030\001 \001(\tB" - + "\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(" - + "\tB\002\030\001\022W\n\017resource_labels\030\004 \003(\01329.google." - + "container.v1.SetLabelsRequest.ResourceLa" - + "belsEntryB\003\340A\002\022\036\n\021label_fingerprint\030\005 \001(" - + "\tB\003\340A\002\022\014\n\004name\030\007 \001(\t\0325\n\023ResourceLabelsEn" - + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"|\n\024S" - + "etLegacyAbacRequest\022\026\n\nproject_id\030\001 \001(\tB" - + "\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(" - + "\tB\002\030\001\022\024\n\007enabled\030\004 \001(\010B\003\340A\002\022\014\n\004name\030\006 \001(" - + "\t\"\204\001\n\026StartIPRotationRequest\022\026\n\nproject_" - + "id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluste" - + "r_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\006 \001(\t\022\032\n\022rotate_c" - + "redentials\030\007 \001(\010\"k\n\031CompleteIPRotationRe" + + " \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\037\n\022moni" + + "toring_service\030\004 \001(\tB\003\340A\002\022\014\n\004name\030\006 \001(\t\"" + + "\247\001\n\026SetAddonsConfigRequest\022\026\n\nproject_id" + + "\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_" + + "id\030\003 \001(\tB\002\030\001\022=\n\raddons_config\030\004 \001(\0132!.go" + + "ogle.container.v1.AddonsConfigB\003\340A\002\022\014\n\004n" + + "ame\030\006 \001(\t\"}\n\023SetLocationsRequest\022\026\n\nproj" + + "ect_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncl" + + "uster_id\030\003 \001(\tB\002\030\001\022\026\n\tlocations\030\004 \003(\tB\003\340" + + "A\002\022\014\n\004name\030\006 \001(\t\"\202\001\n\023UpdateMasterRequest" + + "\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002" + + "\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\033\n\016master_ver" + + "sion\030\004 \001(\tB\003\340A\002\022\014\n\004name\030\007 \001(\t\"\265\002\n\024SetMas" + + "terAuthRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020" + + "\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001" + + "\022E\n\006action\030\004 \001(\01620.google.container.v1.S" + + "etMasterAuthRequest.ActionB\003\340A\002\0224\n\006updat" + + "e\030\005 \001(\0132\037.google.container.v1.MasterAuth" + + "B\003\340A\002\022\014\n\004name\030\007 \001(\t\"P\n\006Action\022\013\n\007UNKNOWN" + + "\020\000\022\020\n\014SET_PASSWORD\020\001\022\025\n\021GENERATE_PASSWOR" + + "D\020\002\022\020\n\014SET_USERNAME\020\003\"f\n\024DeleteClusterRe" + "quest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 " + "\001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030" - + "\007 \001(\t\"\305\002\n\021AcceleratorConfig\022\031\n\021accelerat" - + "or_count\030\001 \001(\003\022\030\n\020accelerator_type\030\002 \001(\t" - + "\022\032\n\022gpu_partition_size\030\003 \001(\t\022F\n\022gpu_shar" - + "ing_config\030\005 \001(\0132%.google.container.v1.G" - + "PUSharingConfigH\000\210\001\001\022]\n\036gpu_driver_insta" - + "llation_config\030\006 \001(\01320.google.container." - + "v1.GPUDriverInstallationConfigH\001\210\001\001B\025\n\023_" - + "gpu_sharing_configB!\n\037_gpu_driver_instal" - + "lation_config\"\372\001\n\020GPUSharingConfig\022\"\n\032ma" - + "x_shared_clients_per_gpu\030\001 \001(\003\022[\n\024gpu_sh" - + "aring_strategy\030\002 \001(\01628.google.container." - + "v1.GPUSharingConfig.GPUSharingStrategyH\000" - + "\210\001\001\"L\n\022GPUSharingStrategy\022$\n GPU_SHARING" - + "_STRATEGY_UNSPECIFIED\020\000\022\020\n\014TIME_SHARING\020" - + "\001B\027\n\025_gpu_sharing_strategy\"\204\002\n\033GPUDriver" - + "InstallationConfig\022b\n\022gpu_driver_version" - + "\030\001 \001(\0162A.google.container.v1.GPUDriverIn" - + "stallationConfig.GPUDriverVersionH\000\210\001\001\"j" - + "\n\020GPUDriverVersion\022\"\n\036GPU_DRIVER_VERSION" - + "_UNSPECIFIED\020\000\022\031\n\025INSTALLATION_DISABLED\020" - + "\001\022\013\n\007DEFAULT\020\002\022\n\n\006LATEST\020\003B\025\n\023_gpu_drive" - + "r_version\"\232\001\n\026WorkloadMetadataConfig\022>\n\004" - + "mode\030\002 \001(\01620.google.container.v1.Workloa" - + "dMetadataConfig.Mode\"@\n\004Mode\022\024\n\020MODE_UNS" - + "PECIFIED\020\000\022\020\n\014GCE_METADATA\020\001\022\020\n\014GKE_META" - + "DATA\020\002\"\252\001\n\027SetNetworkPolicyRequest\022\026\n\npr" + + "\004 \001(\t\"O\n\023ListClustersRequest\022\026\n\nproject_" + + "id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\016\n\006parent" + + "\030\004 \001(\t\"]\n\024ListClustersResponse\022.\n\010cluste" + + "rs\030\001 \003(\0132\034.google.container.v1.Cluster\022\025" + + "\n\rmissing_zones\030\002 \003(\t\"g\n\023GetOperationReq" + + "uest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001" + + "(\tB\002\030\001\022\030\n\014operation_id\030\003 \001(\tB\002\030\001\022\014\n\004name" + + "\030\005 \001(\t\"Q\n\025ListOperationsRequest\022\026\n\nproje" + + "ct_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\016\n\006par" + + "ent\030\004 \001(\t\"j\n\026CancelOperationRequest\022\026\n\np" + + "roject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\030\n" + + "\014operation_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\004 \001(\t\"c\n" + + "\026ListOperationsResponse\0222\n\noperations\030\001 " + + "\003(\0132\036.google.container.v1.Operation\022\025\n\rm" + + "issing_zones\030\002 \003(\t\"P\n\026GetServerConfigReq" + + "uest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001" + + "(\tB\002\030\001\022\014\n\004name\030\004 \001(\t\"\364\002\n\014ServerConfig\022\037\n" + + "\027default_cluster_version\030\001 \001(\t\022\033\n\023valid_" + + "node_versions\030\003 \003(\t\022\032\n\022default_image_typ" + + "e\030\004 \001(\t\022\031\n\021valid_image_types\030\005 \003(\t\022\035\n\025va" + + "lid_master_versions\030\006 \003(\t\022H\n\010channels\030\t " + + "\003(\01326.google.container.v1.ServerConfig.R" + + "eleaseChannelConfig\032\205\001\n\024ReleaseChannelCo" + + "nfig\022<\n\007channel\030\001 \001(\0162+.google.container" + + ".v1.ReleaseChannel.Channel\022\027\n\017default_ve" + + "rsion\030\002 \001(\t\022\026\n\016valid_versions\030\004 \003(\t\"\240\001\n\025" + + "CreateNodePoolRequest\022\026\n\nproject_id\030\001 \001(" + + "\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 " + + "\001(\tB\002\030\001\0225\n\tnode_pool\030\004 \001(\0132\035.google.cont" + + "ainer.v1.NodePoolB\003\340A\002\022\016\n\006parent\030\006 \001(\t\"\201" + + "\001\n\025DeleteNodePoolRequest\022\026\n\nproject_id\030\001" + + " \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id" + + "\030\003 \001(\tB\002\030\001\022\030\n\014node_pool_id\030\004 \001(\tB\002\030\001\022\014\n\004" + + "name\030\006 \001(\t\"h\n\024ListNodePoolsRequest\022\026\n\npr" + "oject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\n" - + "cluster_id\030\003 \001(\tB\002\030\001\022?\n\016network_policy\030\004" - + " \001(\0132\".google.container.v1.NetworkPolicy" - + "B\003\340A\002\022\014\n\004name\030\006 \001(\t\"\271\001\n\033SetMaintenancePo" - + "licyRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\021\n\004" - + "zone\030\002 \001(\tB\003\340A\002\022\027\n\ncluster_id\030\003 \001(\tB\003\340A\002" - + "\022G\n\022maintenance_policy\030\004 \001(\0132&.google.co", - "ntainer.v1.MaintenancePolicyB\003\340A\002\022\014\n\004nam" - + "e\030\005 \001(\t\"\251\002\n\017StatusCondition\022;\n\004code\030\001 \001(" - + "\0162).google.container.v1.StatusCondition." - + "CodeB\002\030\001\022\017\n\007message\030\002 \001(\t\022(\n\016canonical_c" - + "ode\030\003 \001(\0162\020.google.rpc.Code\"\235\001\n\004Code\022\013\n\007" - + "UNKNOWN\020\000\022\020\n\014GCE_STOCKOUT\020\001\022\037\n\033GKE_SERVI" - + "CE_ACCOUNT_DELETED\020\002\022\026\n\022GCE_QUOTA_EXCEED" - + "ED\020\003\022\023\n\017SET_BY_OPERATOR\020\004\022\027\n\023CLOUD_KMS_K" - + "EY_ERROR\020\007\022\017\n\013CA_EXPIRING\020\t\"\261\t\n\rNetworkC" - + "onfig\022\017\n\007network\030\001 \001(\t\022\022\n\nsubnetwork\030\002 \001" - + "(\t\022$\n\034enable_intra_node_visibility\030\005 \001(\010" - + "\022C\n\023default_snat_status\030\007 \001(\0132&.google.c" - + "ontainer.v1.DefaultSnatStatus\022\037\n\027enable_" - + "l4ilb_subsetting\030\n \001(\010\022@\n\021datapath_provi" - + "der\030\013 \001(\0162%.google.container.v1.Datapath" - + "Provider\022P\n\032private_ipv6_google_access\030\014" - + " \001(\0162,.google.container.v1.PrivateIPv6Go" - + "ogleAccess\0222\n\ndns_config\030\r \001(\0132\036.google." - + "container.v1.DNSConfig\022R\n\033service_extern" - + "al_ips_config\030\017 \001(\0132-.google.container.v" - + "1.ServiceExternalIPsConfig\022A\n\022gateway_ap" - + "i_config\030\020 \001(\0132%.google.container.v1.Gat" - + "ewayAPIConfig\022\037\n\027enable_multi_networking" - + "\030\021 \001(\010\022f\n\032network_performance_config\030\022 \001" - + "(\0132B.google.container.v1.NetworkConfig.C" - + "lusterNetworkPerformanceConfig\022\'\n\032enable" - + "_fqdn_network_policy\030\023 \001(\010H\000\210\001\001\022Y\n\034in_tr" - + "ansit_encryption_config\030\024 \001(\0162..google.c" - + "ontainer.v1.InTransitEncryptionConfigH\001\210" - + "\001\001\0225\n(enable_cilium_clusterwide_network_" - + "policy\030\025 \001(\010H\002\210\001\001\032\336\001\n\037ClusterNetworkPerf" - + "ormanceConfig\022q\n\033total_egress_bandwidth_" - + "tier\030\001 \001(\0162G.google.container.v1.Network" - + "Config.ClusterNetworkPerformanceConfig.T" - + "ierH\000\210\001\001\"(\n\004Tier\022\024\n\020TIER_UNSPECIFIED\020\000\022\n" - + "\n\006TIER_1\020\001B\036\n\034_total_egress_bandwidth_ti" - + "erB\035\n\033_enable_fqdn_network_policyB\037\n\035_in" - + "_transit_encryption_configB+\n)_enable_ci" - + "lium_clusterwide_network_policy\"\274\001\n\020Gate" - + "wayAPIConfig\022>\n\007channel\030\001 \001(\0162-.google.c" - + "ontainer.v1.GatewayAPIConfig.Channel\"h\n\007" - + "Channel\022\027\n\023CHANNEL_UNSPECIFIED\020\000\022\024\n\020CHAN" - + "NEL_DISABLED\020\001\022\030\n\024CHANNEL_EXPERIMENTAL\020\003" - + "\022\024\n\020CHANNEL_STANDARD\020\004\"+\n\030ServiceExterna" - + "lIPsConfig\022\017\n\007enabled\030\001 \001(\010\"(\n\026GetOpenID" - + "ConfigRequest\022\016\n\006parent\030\001 \001(\t\"\334\001\n\027GetOpe" - + "nIDConfigResponse\022\016\n\006issuer\030\001 \001(\t\022\020\n\010jwk" - + "s_uri\030\002 \001(\t\022 \n\030response_types_supported\030" - + "\003 \003(\t\022\037\n\027subject_types_supported\030\004 \003(\t\022-" - + "\n%id_token_signing_alg_values_supported\030" - + "\005 \003(\t\022\030\n\020claims_supported\030\006 \003(\t\022\023\n\013grant" - + "_types\030\007 \003(\t\"\'\n\025GetJSONWebKeysRequest\022\016\n" - + "\006parent\030\001 \001(\t\"r\n\003Jwk\022\013\n\003kty\030\001 \001(\t\022\013\n\003alg" - + "\030\002 \001(\t\022\013\n\003use\030\003 \001(\t\022\013\n\003kid\030\004 \001(\t\022\t\n\001n\030\005 " - + "\001(\t\022\t\n\001e\030\006 \001(\t\022\t\n\001x\030\007 \001(\t\022\t\n\001y\030\010 \001(\t\022\013\n\003" - + "crv\030\t \001(\t\"@\n\026GetJSONWebKeysResponse\022&\n\004k" - + "eys\030\001 \003(\0132\030.google.container.v1.Jwk\"2\n\"C" - + "heckAutopilotCompatibilityRequest\022\014\n\004nam" - + "e\030\001 \001(\t\"\374\002\n\033AutopilotCompatibilityIssue\022" - + "4\n\020last_observation\030\001 \001(\0132\032.google.proto" - + "buf.Timestamp\022\027\n\017constraint_type\030\002 \001(\t\022X" - + "\n\024incompatibility_type\030\003 \001(\0162:.google.co" - + "ntainer.v1.AutopilotCompatibilityIssue.I" - + "ssueType\022\020\n\010subjects\030\004 \003(\t\022\031\n\021documentat" - + "ion_url\030\005 \001(\t\022\023\n\013description\030\006 \001(\t\"r\n\tIs" - + "sueType\022\017\n\013UNSPECIFIED\020\000\022\023\n\017INCOMPATIBIL" - + "ITY\020\001\022\036\n\032ADDITIONAL_CONFIG_REQUIRED\020\002\022\037\n" - + "\033PASSED_WITH_OPTIONAL_CONFIG\020\003\"x\n#CheckA" - + "utopilotCompatibilityResponse\022@\n\006issues\030" - + "\001 \003(\01320.google.container.v1.AutopilotCom" - + "patibilityIssue\022\017\n\007summary\030\002 \001(\t\"\216\001\n\016Rel" - + "easeChannel\022<\n\007channel\030\001 \001(\0162+.google.co" - + "ntainer.v1.ReleaseChannel.Channel\">\n\007Cha" - + "nnel\022\017\n\013UNSPECIFIED\020\000\022\t\n\005RAPID\020\001\022\013\n\007REGU" - + "LAR\020\002\022\n\n\006STABLE\020\003\"\'\n\024CostManagementConfi" - + "g\022\017\n\007enabled\030\001 \001(\010\",\n\031IntraNodeVisibilit" - + "yConfig\022\017\n\007enabled\030\001 \001(\010\"&\n\023ILBSubsettin" - + "gConfig\022\017\n\007enabled\030\001 \001(\010\"\313\002\n\tDNSConfig\022<" - + "\n\013cluster_dns\030\001 \001(\0162\'.google.container.v" - + "1.DNSConfig.Provider\022B\n\021cluster_dns_scop" - + "e\030\002 \001(\0162\'.google.container.v1.DNSConfig." - + "DNSScope\022\032\n\022cluster_dns_domain\030\003 \001(\t\"W\n\010" - + "Provider\022\030\n\024PROVIDER_UNSPECIFIED\020\000\022\024\n\020PL" - + "ATFORM_DEFAULT\020\001\022\r\n\tCLOUD_DNS\020\002\022\014\n\010KUBE_" - + "DNS\020\003\"G\n\010DNSScope\022\031\n\025DNS_SCOPE_UNSPECIFI" - + "ED\020\000\022\021\n\rCLUSTER_SCOPE\020\001\022\r\n\tVPC_SCOPE\020\002\"." - + "\n\021MaxPodsConstraint\022\031\n\021max_pods_per_node" - + "\030\001 \001(\003\"/\n\026WorkloadIdentityConfig\022\025\n\rwork" - + "load_pool\030\002 \001(\t\"(\n\025IdentityServiceConfig" - + "\022\017\n\007enabled\030\001 \001(\010\"K\n\020MeshCertificates\0227\n" - + "\023enable_certificates\030\001 \001(\0132\032.google.prot" - + "obuf.BoolValue\"\343\005\n\022DatabaseEncryption\022\020\n" - + "\010key_name\030\001 \001(\t\022<\n\005state\030\002 \001(\0162-.google." - + "container.v1.DatabaseEncryption.State\022U\n" - + "\rcurrent_state\030\003 \001(\01624.google.container." - + "v1.DatabaseEncryption.CurrentStateB\003\340A\003H" - + "\000\210\001\001\022\034\n\017decryption_keys\030\004 \003(\tB\003\340A\003\022Z\n\025la" - + "st_operation_errors\030\005 \003(\01326.google.conta" - + "iner.v1.DatabaseEncryption.OperationErro" - + "rB\003\340A\003\032h\n\016OperationError\022\020\n\010key_name\030\001 \001" - + "(\t\022\025\n\rerror_message\030\002 \001(\t\022-\n\ttimestamp\030\003" - + " \001(\0132\032.google.protobuf.Timestamp\"2\n\005Stat" - + "e\022\013\n\007UNKNOWN\020\000\022\r\n\tENCRYPTED\020\001\022\r\n\tDECRYPT" - + "ED\020\002\"\373\001\n\014CurrentState\022\035\n\031CURRENT_STATE_U" - + "NSPECIFIED\020\000\022\033\n\027CURRENT_STATE_ENCRYPTED\020" - + "\007\022\033\n\027CURRENT_STATE_DECRYPTED\020\002\022$\n CURREN" - + "T_STATE_ENCRYPTION_PENDING\020\003\022\"\n\036CURRENT_" - + "STATE_ENCRYPTION_ERROR\020\004\022$\n CURRENT_STAT" - + "E_DECRYPTION_PENDING\020\005\022\"\n\036CURRENT_STATE_" - + "DECRYPTION_ERROR\020\006B\020\n\016_current_state\"e\n\034" - + "ListUsableSubnetworksRequest\022\016\n\006parent\030\001" - + " \001(\t\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022" - + "\022\n\npage_token\030\004 \001(\t\"t\n\035ListUsableSubnetw" - + "orksResponse\022:\n\013subnetworks\030\001 \003(\0132%.goog" - + "le.container.v1.UsableSubnetwork\022\027\n\017next" - + "_page_token\030\002 \001(\t\"\200\002\n\036UsableSubnetworkSe" - + "condaryRange\022\022\n\nrange_name\030\001 \001(\t\022\025\n\rip_c" - + "idr_range\030\002 \001(\t\022J\n\006status\030\003 \001(\0162:.google" - + ".container.v1.UsableSubnetworkSecondaryR" - + "ange.Status\"g\n\006Status\022\013\n\007UNKNOWN\020\000\022\n\n\006UN" - + "USED\020\001\022\022\n\016IN_USE_SERVICE\020\002\022\030\n\024IN_USE_SHA" - + "REABLE_POD\020\003\022\026\n\022IN_USE_MANAGED_POD\020\004\"\270\001\n" - + "\020UsableSubnetwork\022\022\n\nsubnetwork\030\001 \001(\t\022\017\n" - + "\007network\030\002 \001(\t\022\025\n\rip_cidr_range\030\003 \001(\t\022P\n" - + "\023secondary_ip_ranges\030\004 \003(\01323.google.cont" - + "ainer.v1.UsableSubnetworkSecondaryRange\022" - + "\026\n\016status_message\030\005 \001(\t\"\355\002\n\031ResourceUsag" - + "eExportConfig\022`\n\024bigquery_destination\030\001 " - + "\001(\0132B.google.container.v1.ResourceUsageE" - + "xportConfig.BigQueryDestination\022&\n\036enabl" - + "e_network_egress_metering\030\002 \001(\010\022m\n\033consu" - + "mption_metering_config\030\003 \001(\0132H.google.co" - + "ntainer.v1.ResourceUsageExportConfig.Con" - + "sumptionMeteringConfig\032)\n\023BigQueryDestin" - + "ation\022\022\n\ndataset_id\030\001 \001(\t\032,\n\031Consumption" - + "MeteringConfig\022\017\n\007enabled\030\001 \001(\010\")\n\026Verti" - + "calPodAutoscaling\022\017\n\007enabled\030\001 \001(\010\"%\n\021De" - + "faultSnatStatus\022\020\n\010disabled\030\001 \001(\010\" \n\rShi" - + "eldedNodes\022\017\n\007enabled\030\001 \001(\010\"\035\n\nVirtualNI" - + "C\022\017\n\007enabled\030\001 \001(\010\"\035\n\nFastSocket\022\017\n\007enab" - + "led\030\001 \001(\010\"\250\003\n\022NotificationConfig\022>\n\006pubs" - + "ub\030\001 \001(\0132..google.container.v1.Notificat" - + "ionConfig.PubSub\032\212\001\n\006PubSub\022\017\n\007enabled\030\001" - + " \001(\010\022/\n\005topic\030\002 \001(\tB \372A\035\n\033pubsub.googlea" - + "pis.com/Topic\022>\n\006filter\030\003 \001(\0132..google.c" - + "ontainer.v1.NotificationConfig.Filter\032O\n" - + "\006Filter\022E\n\nevent_type\030\001 \003(\01621.google.con" - + "tainer.v1.NotificationConfig.EventType\"t" - + "\n\tEventType\022\032\n\026EVENT_TYPE_UNSPECIFIED\020\000\022" - + "\033\n\027UPGRADE_AVAILABLE_EVENT\020\001\022\021\n\rUPGRADE_" - + "EVENT\020\002\022\033\n\027SECURITY_BULLETIN_EVENT\020\003\"$\n\021" - + "ConfidentialNodes\022\017\n\007enabled\030\001 \001(\010\"\337\001\n\014U" - + "pgradeEvent\022?\n\rresource_type\030\001 \001(\0162(.goo" - + "gle.container.v1.UpgradeResourceType\022\021\n\t" - + "operation\030\002 \001(\t\0228\n\024operation_start_time\030" - + "\003 \001(\0132\032.google.protobuf.Timestamp\022\027\n\017cur" - + "rent_version\030\004 \001(\t\022\026\n\016target_version\030\005 \001" - + "(\t\022\020\n\010resource\030\006 \001(\t\"\271\001\n\025UpgradeAvailabl" - + "eEvent\022\017\n\007version\030\001 \001(\t\022?\n\rresource_type" - + "\030\002 \001(\0162(.google.container.v1.UpgradeReso" - + "urceType\022<\n\017release_channel\030\003 \001(\0132#.goog" - + "le.container.v1.ReleaseChannel\022\020\n\010resour" - + "ce\030\004 \001(\t\"\236\002\n\025SecurityBulletinEvent\022\036\n\026re" - + "source_type_affected\030\001 \001(\t\022\023\n\013bulletin_i" - + "d\030\002 \001(\t\022\017\n\007cve_ids\030\003 \003(\t\022\020\n\010severity\030\004 \001" - + "(\t\022\024\n\014bulletin_uri\030\005 \001(\t\022\031\n\021brief_descri" - + "ption\030\006 \001(\t\022!\n\031affected_supported_minors" - + "\030\007 \003(\t\022\030\n\020patched_versions\030\010 \003(\t\022 \n\030sugg" - + "ested_upgrade_target\030\t \001(\t\022\035\n\025manual_ste" - + "ps_required\030\n \001(\010\"g\n\tAutopilot\022\017\n\007enable" - + "d\030\001 \001(\010\022I\n\026workload_policy_config\030\002 \001(\0132" - + ").google.container.v1.WorkloadPolicyConf" - + "ig\"H\n\024WorkloadPolicyConfig\022\034\n\017allow_net_" - + "admin\030\001 \001(\010H\000\210\001\001B\022\n\020_allow_net_admin\"V\n\r" - + "LoggingConfig\022E\n\020component_config\030\001 \001(\0132" - + "+.google.container.v1.LoggingComponentCo" - + "nfig\"\357\001\n\026LoggingComponentConfig\022P\n\021enabl" - + "e_components\030\001 \003(\01625.google.container.v1" - + ".LoggingComponentConfig.Component\"\202\001\n\tCo" - + "mponent\022\031\n\025COMPONENT_UNSPECIFIED\020\000\022\025\n\021SY" - + "STEM_COMPONENTS\020\001\022\r\n\tWORKLOADS\020\002\022\r\n\tAPIS" - + "ERVER\020\003\022\r\n\tSCHEDULER\020\004\022\026\n\022CONTROLLER_MAN" - + "AGER\020\005\"\227\002\n\020MonitoringConfig\022H\n\020component" - + "_config\030\001 \001(\0132..google.container.v1.Moni" - + "toringComponentConfig\022O\n\031managed_prometh" - + "eus_config\030\002 \001(\0132,.google.container.v1.M" - + "anagedPrometheusConfig\022h\n&advanced_datap" - + "ath_observability_config\030\003 \001(\01328.google." - + "container.v1.AdvancedDatapathObservabili" - + "tyConfig\"\236\002\n#AdvancedDatapathObservabili" - + "tyConfig\022\026\n\016enable_metrics\030\001 \001(\010\022V\n\nrela" - + "y_mode\030\002 \001(\0162B.google.container.v1.Advan" - + "cedDatapathObservabilityConfig.RelayMode" - + "\022\031\n\014enable_relay\030\003 \001(\010H\000\210\001\001\"[\n\tRelayMode" - + "\022\032\n\026RELAY_MODE_UNSPECIFIED\020\000\022\014\n\010DISABLED" - + "\020\001\022\023\n\017INTERNAL_VPC_LB\020\003\022\017\n\013EXTERNAL_LB\020\004" - + "B\017\n\r_enable_relay\"Z\n\025NodePoolLoggingConf" - + "ig\022A\n\016variant_config\030\001 \001(\0132).google.cont" - + "ainer.v1.LoggingVariantConfig\"\237\001\n\024Loggin" - + "gVariantConfig\022B\n\007variant\030\001 \001(\01621.google" - + ".container.v1.LoggingVariantConfig.Varia" - + "nt\"C\n\007Variant\022\027\n\023VARIANT_UNSPECIFIED\020\000\022\013" - + "\n\007DEFAULT\020\001\022\022\n\016MAX_THROUGHPUT\020\002\"\265\002\n\031Moni" - + "toringComponentConfig\022S\n\021enable_componen" - + "ts\030\001 \003(\01628.google.container.v1.Monitorin" - + "gComponentConfig.Component\"\302\001\n\tComponent" - + "\022\031\n\025COMPONENT_UNSPECIFIED\020\000\022\025\n\021SYSTEM_CO" - + "MPONENTS\020\001\022\r\n\tAPISERVER\020\003\022\r\n\tSCHEDULER\020\004" - + "\022\026\n\022CONTROLLER_MANAGER\020\005\022\013\n\007STORAGE\020\007\022\007\n" - + "\003HPA\020\010\022\007\n\003POD\020\t\022\r\n\tDAEMONSET\020\n\022\016\n\nDEPLOY" - + "MENT\020\013\022\017\n\013STATEFULSET\020\014\"*\n\027ManagedPromet" - + "heusConfig\022\017\n\007enabled\030\001 \001(\010\"D\n\005Fleet\022\017\n\007" - + "project\030\001 \001(\t\022\022\n\nmembership\030\002 \001(\t\022\026\n\016pre" - + "_registered\030\003 \001(\010\"2\n\027LocalNvmeSsdBlockCo" - + "nfig\022\027\n\017local_ssd_count\030\001 \001(\005\"9\n\036Ephemer" - + "alStorageLocalSsdConfig\022\027\n\017local_ssd_cou" - + "nt\030\001 \001(\005\"\204\001\n\023ResourceManagerTags\022@\n\004tags" - + "\030\001 \003(\01322.google.container.v1.ResourceMan" - + "agerTags.TagsEntry\032+\n\tTagsEntry\022\013\n\003key\030\001" - + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\253\001\n\020EnterpriseCo" - + "nfig\022L\n\014cluster_tier\030\001 \001(\01621.google.cont" - + "ainer.v1.EnterpriseConfig.ClusterTierB\003\340" - + "A\003\"I\n\013ClusterTier\022\034\n\030CLUSTER_TIER_UNSPEC" - + "IFIED\020\000\022\014\n\010STANDARD\020\001\022\016\n\nENTERPRISE\020\002\"\233\001" - + "\n\021SecondaryBootDisk\0229\n\004mode\030\001 \001(\0162+.goog" - + "le.container.v1.SecondaryBootDisk.Mode\022\022" - + "\n\ndisk_image\030\002 \001(\t\"7\n\004Mode\022\024\n\020MODE_UNSPE" - + "CIFIED\020\000\022\031\n\025CONTAINER_IMAGE_CACHE\020\001\"!\n\037S" - + "econdaryBootDiskUpdateStrategy*\306\001\n\027Priva" - + "teIPv6GoogleAccess\022*\n&PRIVATE_IPV6_GOOGL" - + "E_ACCESS_UNSPECIFIED\020\000\022\'\n#PRIVATE_IPV6_G" - + "OOGLE_ACCESS_DISABLED\020\001\022(\n$PRIVATE_IPV6_" - + "GOOGLE_ACCESS_TO_GOOGLE\020\002\022,\n(PRIVATE_IPV" - + "6_GOOGLE_ACCESS_BIDIRECTIONAL\020\003*W\n\023Upgra" - + "deResourceType\022%\n!UPGRADE_RESOURCE_TYPE_" - + "UNSPECIFIED\020\000\022\n\n\006MASTER\020\001\022\r\n\tNODE_POOL\020\002" - + "*a\n\020DatapathProvider\022!\n\035DATAPATH_PROVIDE" - + "R_UNSPECIFIED\020\000\022\023\n\017LEGACY_DATAPATH\020\001\022\025\n\021" - + "ADVANCED_DATAPATH\020\002*^\n\026NodePoolUpdateStr" - + "ategy\022)\n%NODE_POOL_UPDATE_STRATEGY_UNSPE" - + "CIFIED\020\000\022\016\n\nBLUE_GREEN\020\002\022\t\n\005SURGE\020\003*@\n\tS" - + "tackType\022\032\n\026STACK_TYPE_UNSPECIFIED\020\000\022\010\n\004" - + "IPV4\020\001\022\r\n\tIPV4_IPV6\020\002*N\n\016IPv6AccessType\022" - + " \n\034IPV6_ACCESS_TYPE_UNSPECIFIED\020\000\022\014\n\010INT" - + "ERNAL\020\001\022\014\n\010EXTERNAL\020\002*\237\001\n\031InTransitEncry" - + "ptionConfig\022,\n(IN_TRANSIT_ENCRYPTION_CON" - + "FIG_UNSPECIFIED\020\000\022\"\n\036IN_TRANSIT_ENCRYPTI" - + "ON_DISABLED\020\001\0220\n,IN_TRANSIT_ENCRYPTION_I" - + "NTER_NODE_TRANSPARENT\020\0022\250I\n\016ClusterManag" - + "er\022\350\001\n\014ListClusters\022(.google.container.v" - + "1.ListClustersRequest\032).google.container" - + ".v1.ListClustersResponse\"\202\001\332A\017project_id" - + ",zone\332A\006parent\202\323\344\223\002a\022,/v1/{parent=projec" - + "ts/*/locations/*}/clustersZ1\022//v1/projec" - + "ts/{project_id}/zones/{zone}/clusters\022\355\001" - + "\n\nGetCluster\022&.google.container.v1.GetCl" - + "usterRequest\032\034.google.container.v1.Clust" - + "er\"\230\001\332A\032project_id,zone,cluster_id\332A\004nam" - + "e\202\323\344\223\002n\022,/v1/{name=projects/*/locations/" - + "*/clusters/*}Z>\022\n\016network_con" + + "fig\030\016 \001(\0132&.google.container.v1.NodeNetw" + + "orkConfig\022\021\n\tself_link\030d \001(\t\022\017\n\007version\030" + + "e \001(\t\022\033\n\023instance_group_urls\030f \003(\t\0224\n\006st" + + "atus\030g \001(\0162$.google.container.v1.NodePoo" + + "l.Status\022\032\n\016status_message\030h \001(\tB\002\030\001\022=\n\013" + + "autoscaling\030\004 \001(\0132(.google.container.v1." + + "NodePoolAutoscaling\0227\n\nmanagement\030\005 \001(\0132" + + "#.google.container.v1.NodeManagement\022C\n\023" + + "max_pods_constraint\030\006 \001(\0132&.google.conta" + + "iner.v1.MaxPodsConstraint\0228\n\nconditions\030" + + "i \003(\0132$.google.container.v1.StatusCondit" + + "ion\022\032\n\022pod_ipv4_cidr_size\030\007 \001(\005\022G\n\020upgra" + + "de_settings\030k \001(\0132-.google.container.v1." + + "NodePool.UpgradeSettings\022G\n\020placement_po" + + "licy\030l \001(\0132-.google.container.v1.NodePoo" + + "l.PlacementPolicy\022B\n\013update_info\030m \001(\0132(" + + ".google.container.v1.NodePool.UpdateInfo" + + "B\003\340A\003\022\014\n\004etag\030n \001(\t\022M\n\023queued_provisioni" + + "ng\030p \001(\01320.google.container.v1.NodePool." + + "QueuedProvisioning\022M\n\030best_effort_provis" + + "ioning\030q \001(\0132+.google.container.v1.BestE" + + "ffortProvisioning\032\360\001\n\017UpgradeSettings\022\021\n" + + "\tmax_surge\030\001 \001(\005\022\027\n\017max_unavailable\030\002 \001(" + + "\005\022B\n\010strategy\030\003 \001(\0162+.google.container.v" + + "1.NodePoolUpdateStrategyH\000\210\001\001\022H\n\023blue_gr" + + "een_settings\030\004 \001(\0132&.google.container.v1" + + ".BlueGreenSettingsH\001\210\001\001B\013\n\t_strategyB\026\n\024" + + "_blue_green_settings\032\210\004\n\nUpdateInfo\022O\n\017b" + + "lue_green_info\030\001 \001(\01326.google.container." + + "v1.NodePool.UpdateInfo.BlueGreenInfo\032\250\003\n" + + "\rBlueGreenInfo\022K\n\005phase\030\001 \001(\0162<.google.c" + + "ontainer.v1.NodePool.UpdateInfo.BlueGree" + + "nInfo.Phase\022 \n\030blue_instance_group_urls\030" + + "\002 \003(\t\022!\n\031green_instance_group_urls\030\003 \003(\t" + + "\022%\n\035blue_pool_deletion_start_time\030\004 \001(\t\022" + + "\032\n\022green_pool_version\030\005 \001(\t\"\301\001\n\005Phase\022\025\n" + + "\021PHASE_UNSPECIFIED\020\000\022\022\n\016UPDATE_STARTED\020\001" + + "\022\027\n\023CREATING_GREEN_POOL\020\002\022\027\n\023CORDONING_B" + + "LUE_POOL\020\003\022\026\n\022DRAINING_BLUE_POOL\020\004\022\025\n\021NO" + + "DE_POOL_SOAKING\020\005\022\026\n\022DELETING_BLUE_POOL\020" + + "\006\022\024\n\020ROLLBACK_STARTED\020\007\032\256\001\n\017PlacementPol" + + "icy\022@\n\004type\030\001 \001(\01622.google.container.v1." + + "NodePool.PlacementPolicy.Type\022\031\n\014tpu_top" + + "ology\030\002 \001(\tB\003\340A\001\022\023\n\013policy_name\030\003 \001(\t\")\n" + + "\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\013\n\007COMPACT\020\001" + + "\032%\n\022QueuedProvisioning\022\017\n\007enabled\030\001 \001(\010\"" + + "\201\001\n\006Status\022\026\n\022STATUS_UNSPECIFIED\020\000\022\020\n\014PR" + + "OVISIONING\020\001\022\013\n\007RUNNING\020\002\022\026\n\022RUNNING_WIT" + + "H_ERROR\020\003\022\017\n\013RECONCILING\020\004\022\014\n\010STOPPING\020\005" + + "\022\t\n\005ERROR\020\006\"}\n\016NodeManagement\022\024\n\014auto_up" + + "grade\030\001 \001(\010\022\023\n\013auto_repair\030\002 \001(\010\022@\n\017upgr" + + "ade_options\030\n \001(\0132\'.google.container.v1." + + "AutoUpgradeOptions\"F\n\026BestEffortProvisio" + + "ning\022\017\n\007enabled\030\001 \001(\010\022\033\n\023min_provision_n" + + "odes\030\002 \001(\005\"J\n\022AutoUpgradeOptions\022\037\n\027auto" + + "_upgrade_start_time\030\001 \001(\t\022\023\n\013description" + + "\030\002 \001(\t\"e\n\021MaintenancePolicy\0226\n\006window\030\001 " + + "\001(\0132&.google.container.v1.MaintenanceWin" + + "dow\022\030\n\020resource_version\030\003 \001(\t\"\366\002\n\021Mainte" + + "nanceWindow\022O\n\030daily_maintenance_window\030" + + "\002 \001(\0132+.google.container.v1.DailyMainten" + + "anceWindowH\000\022D\n\020recurring_window\030\003 \001(\0132(" + + ".google.container.v1.RecurringTimeWindow" + + "H\000\022a\n\026maintenance_exclusions\030\004 \003(\0132A.goo" + + "gle.container.v1.MaintenanceWindow.Maint" + + "enanceExclusionsEntry\032]\n\032MaintenanceExcl" + + "usionsEntry\022\013\n\003key\030\001 \001(\t\022.\n\005value\030\002 \001(\0132" + + "\037.google.container.v1.TimeWindow:\0028\001B\010\n\006" + + "policy\"\320\001\n\nTimeWindow\022Y\n\035maintenance_exc" + + "lusion_options\030\003 \001(\01320.google.container." + + "v1.MaintenanceExclusionOptionsH\000\022.\n\nstar" + + "t_time\030\001 \001(\0132\032.google.protobuf.Timestamp" + + "\022,\n\010end_time\030\002 \001(\0132\032.google.protobuf.Tim" + + "estampB\t\n\007options\"\264\001\n\033MaintenanceExclusi" + + "onOptions\022E\n\005scope\030\001 \001(\01626.google.contai" + + "ner.v1.MaintenanceExclusionOptions.Scope" + + "\"N\n\005Scope\022\017\n\013NO_UPGRADES\020\000\022\025\n\021NO_MINOR_U" + + "PGRADES\020\001\022\035\n\031NO_MINOR_OR_NODE_UPGRADES\020\002" + + "\"Z\n\023RecurringTimeWindow\022/\n\006window\030\001 \001(\0132" + + "\037.google.container.v1.TimeWindow\022\022\n\nrecu" + + "rrence\030\002 \001(\t\">\n\026DailyMaintenanceWindow\022\022" + + "\n\nstart_time\030\002 \001(\t\022\020\n\010duration\030\003 \001(\t\"\306\001\n" + + "\034SetNodePoolManagementRequest\022\026\n\nproject" + + "_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\nclust" + + "er_id\030\003 \001(\tB\002\030\001\022\030\n\014node_pool_id\030\004 \001(\tB\002\030" + + "\001\022<\n\nmanagement\030\005 \001(\0132#.google.container" + + ".v1.NodeManagementB\003\340A\002\022\014\n\004name\030\007 \001(\t\"\233\001" + + "\n\026SetNodePoolSizeRequest\022\026\n\nproject_id\030\001" + + " \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id" + + "\030\003 \001(\tB\002\030\001\022\030\n\014node_pool_id\030\004 \001(\tB\002\030\001\022\027\n\n" + + "node_count\030\005 \001(\005B\003\340A\002\022\014\n\004name\030\007 \001(\t\".\n\036C" + + "ompleteNodePoolUpgradeRequest\022\014\n\004name\030\001 " + + "\001(\t\"\237\001\n\036RollbackNodePoolUpgradeRequest\022\026" + + "\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001" + + "\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\030\n\014node_pool_id" + + "\030\004 \001(\tB\002\030\001\022\014\n\004name\030\006 \001(\t\022\023\n\013respect_pdb\030" + + "\007 \001(\010\"J\n\025ListNodePoolsResponse\0221\n\nnode_p" + + "ools\030\001 \003(\0132\035.google.container.v1.NodePoo" + + "l\"\257\003\n\022ClusterAutoscaling\022$\n\034enable_node_" + + "autoprovisioning\030\001 \001(\010\022;\n\017resource_limit" + + "s\030\002 \003(\0132\".google.container.v1.ResourceLi" + + "mit\022W\n\023autoscaling_profile\030\003 \001(\0162:.googl" + + "e.container.v1.ClusterAutoscaling.Autosc" + + "alingProfile\022b\n#autoprovisioning_node_po" + + "ol_defaults\030\004 \001(\01325.google.container.v1." + + "AutoprovisioningNodePoolDefaults\022\"\n\032auto" + + "provisioning_locations\030\005 \003(\t\"U\n\022Autoscal" + + "ingProfile\022\027\n\023PROFILE_UNSPECIFIED\020\000\022\030\n\024O" + + "PTIMIZE_UTILIZATION\020\001\022\014\n\010BALANCED\020\002\"\370\003\n " + + "AutoprovisioningNodePoolDefaults\022\024\n\014oaut" + + "h_scopes\030\001 \003(\t\022\027\n\017service_account\030\002 \001(\t\022" + + "G\n\020upgrade_settings\030\003 \001(\0132-.google.conta" + + "iner.v1.NodePool.UpgradeSettings\0227\n\nmana" + + "gement\030\004 \001(\0132#.google.container.v1.NodeM" + + "anagement\022\034\n\020min_cpu_platform\030\005 \001(\tB\002\030\001\022" + + "\024\n\014disk_size_gb\030\006 \001(\005\022\021\n\tdisk_type\030\007 \001(\t" + + "\022M\n\030shielded_instance_config\030\010 \001(\0132+.goo" + + "gle.container.v1.ShieldedInstanceConfig\022" + + "\031\n\021boot_disk_kms_key\030\t \001(\t\022\022\n\nimage_type" + + "\030\n \001(\t\0223\n&insecure_kubelet_readonly_port" + + "_enabled\030\r \001(\010H\000\210\001\001B)\n\'_insecure_kubelet" + + "_readonly_port_enabled\"H\n\rResourceLimit\022" + + "\025\n\rresource_type\030\001 \001(\t\022\017\n\007minimum\030\002 \001(\003\022" + + "\017\n\007maximum\030\003 \001(\003\"\307\002\n\023NodePoolAutoscaling" + + "\022\017\n\007enabled\030\001 \001(\010\022\026\n\016min_node_count\030\002 \001(" + + "\005\022\026\n\016max_node_count\030\003 \001(\005\022\027\n\017autoprovisi" + + "oned\030\004 \001(\010\022P\n\017location_policy\030\005 \001(\01627.go" + + "ogle.container.v1.NodePoolAutoscaling.Lo" + + "cationPolicy\022\034\n\024total_min_node_count\030\006 \001" + + "(\005\022\034\n\024total_max_node_count\030\007 \001(\005\"H\n\016Loca" + + "tionPolicy\022\037\n\033LOCATION_POLICY_UNSPECIFIE" + + "D\020\000\022\014\n\010BALANCED\020\001\022\007\n\003ANY\020\002\"\222\002\n\020SetLabels" + + "Request\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030" + + "\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022W\n\017res" + + "ource_labels\030\004 \003(\01329.google.container.v1" + + ".SetLabelsRequest.ResourceLabelsEntryB\003\340" + + "A\002\022\036\n\021label_fingerprint\030\005 \001(\tB\003\340A\002\022\014\n\004na" + + "me\030\007 \001(\t\0325\n\023ResourceLabelsEntry\022\013\n\003key\030\001", + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"|\n\024SetLegacyAbac" + + "Request\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030" + + "\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\024\n\007ena" + + "bled\030\004 \001(\010B\003\340A\002\022\014\n\004name\030\006 \001(\t\"\204\001\n\026StartI" + + "PRotationRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001" + + "\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002" + + "\030\001\022\014\n\004name\030\006 \001(\t\022\032\n\022rotate_credentials\030\007" + + " \001(\010\"k\n\031CompleteIPRotationRequest\022\026\n\npro" + + "ject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\nc" + + "luster_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\007 \001(\t\"\305\002\n\021Ac" + + "celeratorConfig\022\031\n\021accelerator_count\030\001 \001" + + "(\003\022\030\n\020accelerator_type\030\002 \001(\t\022\032\n\022gpu_part" + + "ition_size\030\003 \001(\t\022F\n\022gpu_sharing_config\030\005" + + " \001(\0132%.google.container.v1.GPUSharingCon" + + "figH\000\210\001\001\022]\n\036gpu_driver_installation_conf" + + "ig\030\006 \001(\01320.google.container.v1.GPUDriver" + + "InstallationConfigH\001\210\001\001B\025\n\023_gpu_sharing_" + + "configB!\n\037_gpu_driver_installation_confi" + + "g\"\203\002\n\020GPUSharingConfig\022\"\n\032max_shared_cli" + + "ents_per_gpu\030\001 \001(\003\022[\n\024gpu_sharing_strate" + + "gy\030\002 \001(\01628.google.container.v1.GPUSharin" + + "gConfig.GPUSharingStrategyH\000\210\001\001\"U\n\022GPUSh" + + "aringStrategy\022$\n GPU_SHARING_STRATEGY_UN" + + "SPECIFIED\020\000\022\020\n\014TIME_SHARING\020\001\022\007\n\003MPS\020\002B\027" + + "\n\025_gpu_sharing_strategy\"\204\002\n\033GPUDriverIns" + + "tallationConfig\022b\n\022gpu_driver_version\030\001 " + + "\001(\0162A.google.container.v1.GPUDriverInsta" + + "llationConfig.GPUDriverVersionH\000\210\001\001\"j\n\020G" + + "PUDriverVersion\022\"\n\036GPU_DRIVER_VERSION_UN" + + "SPECIFIED\020\000\022\031\n\025INSTALLATION_DISABLED\020\001\022\013" + + "\n\007DEFAULT\020\002\022\n\n\006LATEST\020\003B\025\n\023_gpu_driver_v" + + "ersion\"\232\001\n\026WorkloadMetadataConfig\022>\n\004mod" + + "e\030\002 \001(\01620.google.container.v1.WorkloadMe" + + "tadataConfig.Mode\"@\n\004Mode\022\024\n\020MODE_UNSPEC" + + "IFIED\020\000\022\020\n\014GCE_METADATA\020\001\022\020\n\014GKE_METADAT" + + "A\020\002\"\252\001\n\027SetNetworkPolicyRequest\022\026\n\nproje" + + "ct_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\nclu" + + "ster_id\030\003 \001(\tB\002\030\001\022?\n\016network_policy\030\004 \001(" + + "\0132\".google.container.v1.NetworkPolicyB\003\340" + + "A\002\022\014\n\004name\030\006 \001(\t\"\271\001\n\033SetMaintenancePolic" + + "yRequest\022\027\n\nproject_id\030\001 \001(\tB\003\340A\002\022\021\n\004zon" + + "e\030\002 \001(\tB\003\340A\002\022\027\n\ncluster_id\030\003 \001(\tB\003\340A\002\022G\n" + + "\022maintenance_policy\030\004 \001(\0132&.google.conta" + + "iner.v1.MaintenancePolicyB\003\340A\002\022\014\n\004name\030\005" + + " \001(\t\"\251\002\n\017StatusCondition\022;\n\004code\030\001 \001(\0162)" + + ".google.container.v1.StatusCondition.Cod" + + "eB\002\030\001\022\017\n\007message\030\002 \001(\t\022(\n\016canonical_code" + + "\030\003 \001(\0162\020.google.rpc.Code\"\235\001\n\004Code\022\013\n\007UNK" + + "NOWN\020\000\022\020\n\014GCE_STOCKOUT\020\001\022\037\n\033GKE_SERVICE_" + + "ACCOUNT_DELETED\020\002\022\026\n\022GCE_QUOTA_EXCEEDED\020" + + "\003\022\023\n\017SET_BY_OPERATOR\020\004\022\027\n\023CLOUD_KMS_KEY_" + + "ERROR\020\007\022\017\n\013CA_EXPIRING\020\t\"\261\t\n\rNetworkConf" + + "ig\022\017\n\007network\030\001 \001(\t\022\022\n\nsubnetwork\030\002 \001(\t\022" + + "$\n\034enable_intra_node_visibility\030\005 \001(\010\022C\n" + + "\023default_snat_status\030\007 \001(\0132&.google.cont" + + "ainer.v1.DefaultSnatStatus\022\037\n\027enable_l4i" + + "lb_subsetting\030\n \001(\010\022@\n\021datapath_provider" + + "\030\013 \001(\0162%.google.container.v1.DatapathPro" + + "vider\022P\n\032private_ipv6_google_access\030\014 \001(" + + "\0162,.google.container.v1.PrivateIPv6Googl" + + "eAccess\0222\n\ndns_config\030\r \001(\0132\036.google.con" + + "tainer.v1.DNSConfig\022R\n\033service_external_" + + "ips_config\030\017 \001(\0132-.google.container.v1.S" + + "erviceExternalIPsConfig\022A\n\022gateway_api_c" + + "onfig\030\020 \001(\0132%.google.container.v1.Gatewa" + + "yAPIConfig\022\037\n\027enable_multi_networking\030\021 " + + "\001(\010\022f\n\032network_performance_config\030\022 \001(\0132" + + "B.google.container.v1.NetworkConfig.Clus" + + "terNetworkPerformanceConfig\022\'\n\032enable_fq" + + "dn_network_policy\030\023 \001(\010H\000\210\001\001\022Y\n\034in_trans" + + "it_encryption_config\030\024 \001(\0162..google.cont" + + "ainer.v1.InTransitEncryptionConfigH\001\210\001\001\022" + + "5\n(enable_cilium_clusterwide_network_pol" + + "icy\030\025 \001(\010H\002\210\001\001\032\336\001\n\037ClusterNetworkPerform" + + "anceConfig\022q\n\033total_egress_bandwidth_tie" + + "r\030\001 \001(\0162G.google.container.v1.NetworkCon" + + "fig.ClusterNetworkPerformanceConfig.Tier" + + "H\000\210\001\001\"(\n\004Tier\022\024\n\020TIER_UNSPECIFIED\020\000\022\n\n\006T" + + "IER_1\020\001B\036\n\034_total_egress_bandwidth_tierB" + + "\035\n\033_enable_fqdn_network_policyB\037\n\035_in_tr" + + "ansit_encryption_configB+\n)_enable_ciliu" + + "m_clusterwide_network_policy\"\274\001\n\020Gateway" + + "APIConfig\022>\n\007channel\030\001 \001(\0162-.google.cont" + + "ainer.v1.GatewayAPIConfig.Channel\"h\n\007Cha" + + "nnel\022\027\n\023CHANNEL_UNSPECIFIED\020\000\022\024\n\020CHANNEL" + + "_DISABLED\020\001\022\030\n\024CHANNEL_EXPERIMENTAL\020\003\022\024\n" + + "\020CHANNEL_STANDARD\020\004\"+\n\030ServiceExternalIP" + + "sConfig\022\017\n\007enabled\030\001 \001(\010\"(\n\026GetOpenIDCon" + + "figRequest\022\016\n\006parent\030\001 \001(\t\"\334\001\n\027GetOpenID" + + "ConfigResponse\022\016\n\006issuer\030\001 \001(\t\022\020\n\010jwks_u" + + "ri\030\002 \001(\t\022 \n\030response_types_supported\030\003 \003" + + "(\t\022\037\n\027subject_types_supported\030\004 \003(\t\022-\n%i" + + "d_token_signing_alg_values_supported\030\005 \003" + + "(\t\022\030\n\020claims_supported\030\006 \003(\t\022\023\n\013grant_ty" + + "pes\030\007 \003(\t\"\'\n\025GetJSONWebKeysRequest\022\016\n\006pa" + + "rent\030\001 \001(\t\"r\n\003Jwk\022\013\n\003kty\030\001 \001(\t\022\013\n\003alg\030\002 " + + "\001(\t\022\013\n\003use\030\003 \001(\t\022\013\n\003kid\030\004 \001(\t\022\t\n\001n\030\005 \001(\t" + + "\022\t\n\001e\030\006 \001(\t\022\t\n\001x\030\007 \001(\t\022\t\n\001y\030\010 \001(\t\022\013\n\003crv" + + "\030\t \001(\t\"@\n\026GetJSONWebKeysResponse\022&\n\004keys" + + "\030\001 \003(\0132\030.google.container.v1.Jwk\"2\n\"Chec" + + "kAutopilotCompatibilityRequest\022\014\n\004name\030\001" + + " \001(\t\"\374\002\n\033AutopilotCompatibilityIssue\0224\n\020" + + "last_observation\030\001 \001(\0132\032.google.protobuf" + + ".Timestamp\022\027\n\017constraint_type\030\002 \001(\t\022X\n\024i" + + "ncompatibility_type\030\003 \001(\0162:.google.conta" + + "iner.v1.AutopilotCompatibilityIssue.Issu" + + "eType\022\020\n\010subjects\030\004 \003(\t\022\031\n\021documentation" + + "_url\030\005 \001(\t\022\023\n\013description\030\006 \001(\t\"r\n\tIssue" + + "Type\022\017\n\013UNSPECIFIED\020\000\022\023\n\017INCOMPATIBILITY" + + "\020\001\022\036\n\032ADDITIONAL_CONFIG_REQUIRED\020\002\022\037\n\033PA" + + "SSED_WITH_OPTIONAL_CONFIG\020\003\"x\n#CheckAuto" + + "pilotCompatibilityResponse\022@\n\006issues\030\001 \003" + + "(\01320.google.container.v1.AutopilotCompat" + + "ibilityIssue\022\017\n\007summary\030\002 \001(\t\"\216\001\n\016Releas" + + "eChannel\022<\n\007channel\030\001 \001(\0162+.google.conta" + + "iner.v1.ReleaseChannel.Channel\">\n\007Channe" + + "l\022\017\n\013UNSPECIFIED\020\000\022\t\n\005RAPID\020\001\022\013\n\007REGULAR" + + "\020\002\022\n\n\006STABLE\020\003\"\'\n\024CostManagementConfig\022\017" + + "\n\007enabled\030\001 \001(\010\",\n\031IntraNodeVisibilityCo" + + "nfig\022\017\n\007enabled\030\001 \001(\010\"&\n\023ILBSubsettingCo" + + "nfig\022\017\n\007enabled\030\001 \001(\010\"\367\002\n\tDNSConfig\022<\n\013c" + + "luster_dns\030\001 \001(\0162\'.google.container.v1.D" + + "NSConfig.Provider\022B\n\021cluster_dns_scope\030\002" + + " \001(\0162\'.google.container.v1.DNSConfig.DNS" + + "Scope\022\032\n\022cluster_dns_domain\030\003 \001(\t\022*\n\035add" + + "itive_vpc_scope_dns_domain\030\005 \001(\tB\003\340A\001\"W\n" + + "\010Provider\022\030\n\024PROVIDER_UNSPECIFIED\020\000\022\024\n\020P" + + "LATFORM_DEFAULT\020\001\022\r\n\tCLOUD_DNS\020\002\022\014\n\010KUBE" + + "_DNS\020\003\"G\n\010DNSScope\022\031\n\025DNS_SCOPE_UNSPECIF" + + "IED\020\000\022\021\n\rCLUSTER_SCOPE\020\001\022\r\n\tVPC_SCOPE\020\002\"" + + ".\n\021MaxPodsConstraint\022\031\n\021max_pods_per_nod" + + "e\030\001 \001(\003\"/\n\026WorkloadIdentityConfig\022\025\n\rwor" + + "kload_pool\030\002 \001(\t\"(\n\025IdentityServiceConfi" + + "g\022\017\n\007enabled\030\001 \001(\010\"K\n\020MeshCertificates\0227" + + "\n\023enable_certificates\030\001 \001(\0132\032.google.pro" + + "tobuf.BoolValue\"\343\005\n\022DatabaseEncryption\022\020" + + "\n\010key_name\030\001 \001(\t\022<\n\005state\030\002 \001(\0162-.google" + + ".container.v1.DatabaseEncryption.State\022U" + + "\n\rcurrent_state\030\003 \001(\01624.google.container" + + ".v1.DatabaseEncryption.CurrentStateB\003\340A\003" + + "H\000\210\001\001\022\034\n\017decryption_keys\030\004 \003(\tB\003\340A\003\022Z\n\025l" + + "ast_operation_errors\030\005 \003(\01326.google.cont" + + "ainer.v1.DatabaseEncryption.OperationErr" + + "orB\003\340A\003\032h\n\016OperationError\022\020\n\010key_name\030\001 " + + "\001(\t\022\025\n\rerror_message\030\002 \001(\t\022-\n\ttimestamp\030" + + "\003 \001(\0132\032.google.protobuf.Timestamp\"2\n\005Sta" + + "te\022\013\n\007UNKNOWN\020\000\022\r\n\tENCRYPTED\020\001\022\r\n\tDECRYP" + + "TED\020\002\"\373\001\n\014CurrentState\022\035\n\031CURRENT_STATE_" + + "UNSPECIFIED\020\000\022\033\n\027CURRENT_STATE_ENCRYPTED" + + "\020\007\022\033\n\027CURRENT_STATE_DECRYPTED\020\002\022$\n CURRE" + + "NT_STATE_ENCRYPTION_PENDING\020\003\022\"\n\036CURRENT" + + "_STATE_ENCRYPTION_ERROR\020\004\022$\n CURRENT_STA" + + "TE_DECRYPTION_PENDING\020\005\022\"\n\036CURRENT_STATE" + + "_DECRYPTION_ERROR\020\006B\020\n\016_current_state\"e\n" + + "\034ListUsableSubnetworksRequest\022\016\n\006parent\030" + + "\001 \001(\t\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005" + + "\022\022\n\npage_token\030\004 \001(\t\"t\n\035ListUsableSubnet" + + "worksResponse\022:\n\013subnetworks\030\001 \003(\0132%.goo" + + "gle.container.v1.UsableSubnetwork\022\027\n\017nex" + + "t_page_token\030\002 \001(\t\"\200\002\n\036UsableSubnetworkS" + + "econdaryRange\022\022\n\nrange_name\030\001 \001(\t\022\025\n\rip_" + + "cidr_range\030\002 \001(\t\022J\n\006status\030\003 \001(\0162:.googl" + + "e.container.v1.UsableSubnetworkSecondary" + + "Range.Status\"g\n\006Status\022\013\n\007UNKNOWN\020\000\022\n\n\006U" + + "NUSED\020\001\022\022\n\016IN_USE_SERVICE\020\002\022\030\n\024IN_USE_SH" + + "AREABLE_POD\020\003\022\026\n\022IN_USE_MANAGED_POD\020\004\"\270\001" + + "\n\020UsableSubnetwork\022\022\n\nsubnetwork\030\001 \001(\t\022\017" + + "\n\007network\030\002 \001(\t\022\025\n\rip_cidr_range\030\003 \001(\t\022P" + + "\n\023secondary_ip_ranges\030\004 \003(\01323.google.con" + + "tainer.v1.UsableSubnetworkSecondaryRange" + + "\022\026\n\016status_message\030\005 \001(\t\"\355\002\n\031ResourceUsa" + + "geExportConfig\022`\n\024bigquery_destination\030\001" + + " \001(\0132B.google.container.v1.ResourceUsage" + + "ExportConfig.BigQueryDestination\022&\n\036enab" + + "le_network_egress_metering\030\002 \001(\010\022m\n\033cons" + + "umption_metering_config\030\003 \001(\0132H.google.c" + + "ontainer.v1.ResourceUsageExportConfig.Co" + + "nsumptionMeteringConfig\032)\n\023BigQueryDesti" + + "nation\022\022\n\ndataset_id\030\001 \001(\t\032,\n\031Consumptio" + + "nMeteringConfig\022\017\n\007enabled\030\001 \001(\010\")\n\026Vert" + + "icalPodAutoscaling\022\017\n\007enabled\030\001 \001(\010\"%\n\021D" + + "efaultSnatStatus\022\020\n\010disabled\030\001 \001(\010\" \n\rSh" + + "ieldedNodes\022\017\n\007enabled\030\001 \001(\010\"\035\n\nVirtualN" + + "IC\022\017\n\007enabled\030\001 \001(\010\"\035\n\nFastSocket\022\017\n\007ena" + + "bled\030\001 \001(\010\"\250\003\n\022NotificationConfig\022>\n\006pub" + + "sub\030\001 \001(\0132..google.container.v1.Notifica" + + "tionConfig.PubSub\032\212\001\n\006PubSub\022\017\n\007enabled\030" + + "\001 \001(\010\022/\n\005topic\030\002 \001(\tB \372A\035\n\033pubsub.google" + + "apis.com/Topic\022>\n\006filter\030\003 \001(\0132..google." + + "container.v1.NotificationConfig.Filter\032O" + + "\n\006Filter\022E\n\nevent_type\030\001 \003(\01621.google.co" + + "ntainer.v1.NotificationConfig.EventType\"" + + "t\n\tEventType\022\032\n\026EVENT_TYPE_UNSPECIFIED\020\000" + + "\022\033\n\027UPGRADE_AVAILABLE_EVENT\020\001\022\021\n\rUPGRADE" + + "_EVENT\020\002\022\033\n\027SECURITY_BULLETIN_EVENT\020\003\"$\n" + + "\021ConfidentialNodes\022\017\n\007enabled\030\001 \001(\010\"\337\001\n\014" + + "UpgradeEvent\022?\n\rresource_type\030\001 \001(\0162(.go" + + "ogle.container.v1.UpgradeResourceType\022\021\n" + + "\toperation\030\002 \001(\t\0228\n\024operation_start_time" + + "\030\003 \001(\0132\032.google.protobuf.Timestamp\022\027\n\017cu" + + "rrent_version\030\004 \001(\t\022\026\n\016target_version\030\005 " + + "\001(\t\022\020\n\010resource\030\006 \001(\t\"\271\001\n\025UpgradeAvailab" + + "leEvent\022\017\n\007version\030\001 \001(\t\022?\n\rresource_typ" + + "e\030\002 \001(\0162(.google.container.v1.UpgradeRes" + + "ourceType\022<\n\017release_channel\030\003 \001(\0132#.goo" + + "gle.container.v1.ReleaseChannel\022\020\n\010resou" + + "rce\030\004 \001(\t\"\236\002\n\025SecurityBulletinEvent\022\036\n\026r" + + "esource_type_affected\030\001 \001(\t\022\023\n\013bulletin_" + + "id\030\002 \001(\t\022\017\n\007cve_ids\030\003 \003(\t\022\020\n\010severity\030\004 " + + "\001(\t\022\024\n\014bulletin_uri\030\005 \001(\t\022\031\n\021brief_descr" + + "iption\030\006 \001(\t\022!\n\031affected_supported_minor" + + "s\030\007 \003(\t\022\030\n\020patched_versions\030\010 \003(\t\022 \n\030sug" + + "gested_upgrade_target\030\t \001(\t\022\035\n\025manual_st" + + "eps_required\030\n \001(\010\"g\n\tAutopilot\022\017\n\007enabl" + + "ed\030\001 \001(\010\022I\n\026workload_policy_config\030\002 \001(\013" + + "2).google.container.v1.WorkloadPolicyCon" + + "fig\"H\n\024WorkloadPolicyConfig\022\034\n\017allow_net" + + "_admin\030\001 \001(\010H\000\210\001\001B\022\n\020_allow_net_admin\"V\n" + + "\rLoggingConfig\022E\n\020component_config\030\001 \001(\013" + + "2+.google.container.v1.LoggingComponentC" + + "onfig\"\357\001\n\026LoggingComponentConfig\022P\n\021enab" + + "le_components\030\001 \003(\01625.google.container.v" + + "1.LoggingComponentConfig.Component\"\202\001\n\tC" + + "omponent\022\031\n\025COMPONENT_UNSPECIFIED\020\000\022\025\n\021S" + + "YSTEM_COMPONENTS\020\001\022\r\n\tWORKLOADS\020\002\022\r\n\tAPI" + + "SERVER\020\003\022\r\n\tSCHEDULER\020\004\022\026\n\022CONTROLLER_MA" + + "NAGER\020\005\"\227\002\n\020MonitoringConfig\022H\n\020componen" + + "t_config\030\001 \001(\0132..google.container.v1.Mon" + + "itoringComponentConfig\022O\n\031managed_promet" + + "heus_config\030\002 \001(\0132,.google.container.v1." + + "ManagedPrometheusConfig\022h\n&advanced_data" + + "path_observability_config\030\003 \001(\01328.google" + + ".container.v1.AdvancedDatapathObservabil" + + "ityConfig\"\236\002\n#AdvancedDatapathObservabil" + + "ityConfig\022\026\n\016enable_metrics\030\001 \001(\010\022V\n\nrel" + + "ay_mode\030\002 \001(\0162B.google.container.v1.Adva" + + "ncedDatapathObservabilityConfig.RelayMod" + + "e\022\031\n\014enable_relay\030\003 \001(\010H\000\210\001\001\"[\n\tRelayMod" + + "e\022\032\n\026RELAY_MODE_UNSPECIFIED\020\000\022\014\n\010DISABLE" + + "D\020\001\022\023\n\017INTERNAL_VPC_LB\020\003\022\017\n\013EXTERNAL_LB\020" + + "\004B\017\n\r_enable_relay\"Z\n\025NodePoolLoggingCon" + + "fig\022A\n\016variant_config\030\001 \001(\0132).google.con" + + "tainer.v1.LoggingVariantConfig\"\237\001\n\024Loggi" + + "ngVariantConfig\022B\n\007variant\030\001 \001(\01621.googl" + + "e.container.v1.LoggingVariantConfig.Vari" + + "ant\"C\n\007Variant\022\027\n\023VARIANT_UNSPECIFIED\020\000\022" + + "\013\n\007DEFAULT\020\001\022\022\n\016MAX_THROUGHPUT\020\002\"\320\002\n\031Mon" + + "itoringComponentConfig\022S\n\021enable_compone" + + "nts\030\001 \003(\01628.google.container.v1.Monitori" + + "ngComponentConfig.Component\"\335\001\n\tComponen" + + "t\022\031\n\025COMPONENT_UNSPECIFIED\020\000\022\025\n\021SYSTEM_C" + + "OMPONENTS\020\001\022\r\n\tAPISERVER\020\003\022\r\n\tSCHEDULER\020" + + "\004\022\026\n\022CONTROLLER_MANAGER\020\005\022\013\n\007STORAGE\020\007\022\007" + + "\n\003HPA\020\010\022\007\n\003POD\020\t\022\r\n\tDAEMONSET\020\n\022\016\n\nDEPLO" + + "YMENT\020\013\022\017\n\013STATEFULSET\020\014\022\014\n\010CADVISOR\020\r\022\013" + + "\n\007KUBELET\020\016\"*\n\027ManagedPrometheusConfig\022\017" + + "\n\007enabled\030\001 \001(\010\"D\n\005Fleet\022\017\n\007project\030\001 \001(" + + "\t\022\022\n\nmembership\030\002 \001(\t\022\026\n\016pre_registered\030" + + "\003 \001(\010\"2\n\027LocalNvmeSsdBlockConfig\022\027\n\017loca" + + "l_ssd_count\030\001 \001(\005\"9\n\036EphemeralStorageLoc" + + "alSsdConfig\022\027\n\017local_ssd_count\030\001 \001(\005\"\204\001\n" + + "\023ResourceManagerTags\022@\n\004tags\030\001 \003(\01322.goo" + + "gle.container.v1.ResourceManagerTags.Tag" + + "sEntry\032+\n\tTagsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + + "e\030\002 \001(\t:\0028\001\"\253\001\n\020EnterpriseConfig\022L\n\014clus" + + "ter_tier\030\001 \001(\01621.google.container.v1.Ent" + + "erpriseConfig.ClusterTierB\003\340A\003\"I\n\013Cluste" + + "rTier\022\034\n\030CLUSTER_TIER_UNSPECIFIED\020\000\022\014\n\010S" + + "TANDARD\020\001\022\016\n\nENTERPRISE\020\002\"\233\001\n\021SecondaryB" + + "ootDisk\0229\n\004mode\030\001 \001(\0162+.google.container" + + ".v1.SecondaryBootDisk.Mode\022\022\n\ndisk_image" + + "\030\002 \001(\t\"7\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020\000\022\031\n\025" + + "CONTAINER_IMAGE_CACHE\020\001\"!\n\037SecondaryBoot" + + "DiskUpdateStrategy*\306\001\n\027PrivateIPv6Google" + + "Access\022*\n&PRIVATE_IPV6_GOOGLE_ACCESS_UNS" + + "PECIFIED\020\000\022\'\n#PRIVATE_IPV6_GOOGLE_ACCESS" + + "_DISABLED\020\001\022(\n$PRIVATE_IPV6_GOOGLE_ACCES" + + "S_TO_GOOGLE\020\002\022,\n(PRIVATE_IPV6_GOOGLE_ACC" + + "ESS_BIDIRECTIONAL\020\003*W\n\023UpgradeResourceTy" + + "pe\022%\n!UPGRADE_RESOURCE_TYPE_UNSPECIFIED\020" + + "\000\022\n\n\006MASTER\020\001\022\r\n\tNODE_POOL\020\002*a\n\020Datapath" + + "Provider\022!\n\035DATAPATH_PROVIDER_UNSPECIFIE" + + "D\020\000\022\023\n\017LEGACY_DATAPATH\020\001\022\025\n\021ADVANCED_DAT" + + "APATH\020\002*^\n\026NodePoolUpdateStrategy\022)\n%NOD" + + "E_POOL_UPDATE_STRATEGY_UNSPECIFIED\020\000\022\016\n\n" + + "BLUE_GREEN\020\002\022\t\n\005SURGE\020\003*@\n\tStackType\022\032\n\026" + + "STACK_TYPE_UNSPECIFIED\020\000\022\010\n\004IPV4\020\001\022\r\n\tIP" + + "V4_IPV6\020\002*N\n\016IPv6AccessType\022 \n\034IPV6_ACCE" + + "SS_TYPE_UNSPECIFIED\020\000\022\014\n\010INTERNAL\020\001\022\014\n\010E" + + "XTERNAL\020\002*\237\001\n\031InTransitEncryptionConfig\022" + + ",\n(IN_TRANSIT_ENCRYPTION_CONFIG_UNSPECIF" + + "IED\020\000\022\"\n\036IN_TRANSIT_ENCRYPTION_DISABLED\020" + + "\001\0220\n,IN_TRANSIT_ENCRYPTION_INTER_NODE_TR" + + "ANSPARENT\020\0022\262I\n\016ClusterManager\022\350\001\n\014ListC" + + "lusters\022(.google.container.v1.ListCluste" + + "rsRequest\032).google.container.v1.ListClus" + + "tersResponse\"\202\001\332A\017project_id,zone\332A\006pare" + + "nt\202\323\344\223\002a\022,/v1/{parent=projects/*/locatio" + + "ns/*}/clustersZ1\022//v1/projects/{project_" + + "id}/zones/{zone}/clusters\022\355\001\n\nGetCluster" + + "\022&.google.container.v1.GetClusterRequest" + + "\032\034.google.container.v1.Cluster\"\230\001\332A\032proj" + + "ect_id,zone,cluster_id\332A\004name\202\323\344\223\002n\022,/v1" + + "/{name=projects/*/locations/*/clusters/*" + + "}Z>\022**/v1/{name=projects/*/locations/*/cl" - + "usters/*}:setResourceLabels:\001*ZP\"K/v1/pr" - + "ojects/{project_id}/zones/{zone}/cluster" - + "s/{cluster_id}/resourceLabels:\001*\022\245\002\n\rSet" - + "LegacyAbac\022).google.container.v1.SetLega" - + "cyAbacRequest\032\036.google.container.v1.Oper" - + "ation\"\310\001\332A\"project_id,zone,cluster_id,en" - + "abled\332A\014name,enabled\202\323\344\223\002\215\001\":/v1/{name=p" - + "rojects/*/locations/*/clusters/*}:setLeg" - + "acyAbac:\001*ZL\"G/v1/projects/{project_id}/" - + "zones/{zone}/clusters/{cluster_id}/legac" - + "yAbac:\001*\022\240\002\n\017StartIPRotation\022+.google.co" - + "ntainer.v1.StartIPRotationRequest\032\036.goog" - + "le.container.v1.Operation\"\277\001\332A\032project_i" - + "d,zone,cluster_id\332A\004name\202\323\344\223\002\224\001\"/v1/{name=projects/*/locations/*/clus" + + "ters/*}:setResourceLabels:\001*ZP\"K/v1/proj" + + "ects/{project_id}/zones/{zone}/clusters/" + + "{cluster_id}/resourceLabels:\001*\022\245\002\n\rSetLe" + + "gacyAbac\022).google.container.v1.SetLegacy" + + "AbacRequest\032\036.google.container.v1.Operat" + + "ion\"\310\001\332A\"project_id,zone,cluster_id,enab" + + "led\332A\014name,enabled\202\323\344\223\002\215\001\":/v1/{name=pro" + + "jects/*/locations/*/clusters/*}:setLegac" + + "yAbac:\001*ZL\"G/v1/projects/{project_id}/zo" + + "nes/{zone}/clusters/{cluster_id}/legacyA" + + "bac:\001*\022\240\002\n\017StartIPRotation\022+.google.cont" + + "ainer.v1.StartIPRotationRequest\032\036.google" + + ".container.v1.Operation\"\277\001\332A\032project_id," + + "zone,cluster_id\332A\004name\202\323\344\223\002\224\001\" - * The desired private cluster configuration. + * The desired private cluster configuration. master_global_access_config is + * the only field that can be changed via this field. + * See also + * [ClusterUpdate.desired_enable_private_endpoint][google.container.v1.ClusterUpdate.desired_enable_private_endpoint] + * for modifying other fields within + * [PrivateClusterConfig][google.container.v1.PrivateClusterConfig]. * * * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; @@ -1196,7 +1201,12 @@ public boolean hasDesiredPrivateClusterConfig() { * * *
-   * The desired private cluster configuration.
+   * The desired private cluster configuration. master_global_access_config is
+   * the only field that can be changed via this field.
+   * See also
+   * [ClusterUpdate.desired_enable_private_endpoint][google.container.v1.ClusterUpdate.desired_enable_private_endpoint]
+   * for modifying other fields within
+   * [PrivateClusterConfig][google.container.v1.PrivateClusterConfig].
    * 
* * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; @@ -1213,7 +1223,12 @@ public com.google.container.v1.PrivateClusterConfig getDesiredPrivateClusterConf * * *
-   * The desired private cluster configuration.
+   * The desired private cluster configuration. master_global_access_config is
+   * the only field that can be changed via this field.
+   * See also
+   * [ClusterUpdate.desired_enable_private_endpoint][google.container.v1.ClusterUpdate.desired_enable_private_endpoint]
+   * for modifying other fields within
+   * [PrivateClusterConfig][google.container.v1.PrivateClusterConfig].
    * 
* * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; @@ -2681,6 +2696,56 @@ public com.google.container.v1.K8sBetaAPIConfigOrBuilder getDesiredK8SBetaApisOr : desiredK8SBetaApis_; } + public static final int DESIRED_CONTAINERD_CONFIG_FIELD_NUMBER = 134; + private com.google.container.v1.ContainerdConfig desiredContainerdConfig_; + /** + * + * + *
+   * The desired containerd config for the cluster.
+   * 
+ * + * .google.container.v1.ContainerdConfig desired_containerd_config = 134; + * + * @return Whether the desiredContainerdConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredContainerdConfig() { + return ((bitField1_ & 0x00000040) != 0); + } + /** + * + * + *
+   * The desired containerd config for the cluster.
+   * 
+ * + * .google.container.v1.ContainerdConfig desired_containerd_config = 134; + * + * @return The desiredContainerdConfig. + */ + @java.lang.Override + public com.google.container.v1.ContainerdConfig getDesiredContainerdConfig() { + return desiredContainerdConfig_ == null + ? com.google.container.v1.ContainerdConfig.getDefaultInstance() + : desiredContainerdConfig_; + } + /** + * + * + *
+   * The desired containerd config for the cluster.
+   * 
+ * + * .google.container.v1.ContainerdConfig desired_containerd_config = 134; + */ + @java.lang.Override + public com.google.container.v1.ContainerdConfigOrBuilder getDesiredContainerdConfigOrBuilder() { + return desiredContainerdConfig_ == null + ? com.google.container.v1.ContainerdConfig.getDefaultInstance() + : desiredContainerdConfig_; + } + public static final int DESIRED_ENABLE_MULTI_NETWORKING_FIELD_NUMBER = 135; private boolean desiredEnableMultiNetworking_ = false; /** @@ -2696,7 +2761,7 @@ public com.google.container.v1.K8sBetaAPIConfigOrBuilder getDesiredK8SBetaApisOr */ @java.lang.Override public boolean hasDesiredEnableMultiNetworking() { - return ((bitField1_ & 0x00000040) != 0); + return ((bitField1_ & 0x00000080) != 0); } /** * @@ -2732,7 +2797,7 @@ public boolean getDesiredEnableMultiNetworking() { */ @java.lang.Override public boolean hasDesiredNodePoolAutoConfigResourceManagerTags() { - return ((bitField1_ & 0x00000080) != 0); + return ((bitField1_ & 0x00000100) != 0); } /** * @@ -2792,7 +2857,7 @@ public boolean hasDesiredNodePoolAutoConfigResourceManagerTags() { */ @java.lang.Override public boolean hasDesiredInTransitEncryptionConfig() { - return ((bitField1_ & 0x00000100) != 0); + return ((bitField1_ & 0x00000200) != 0); } /** * @@ -2847,7 +2912,7 @@ public com.google.container.v1.InTransitEncryptionConfig getDesiredInTransitEncr */ @java.lang.Override public boolean hasDesiredEnableCiliumClusterwideNetworkPolicy() { - return ((bitField1_ & 0x00000200) != 0); + return ((bitField1_ & 0x00000400) != 0); } /** * @@ -2865,6 +2930,116 @@ public boolean getDesiredEnableCiliumClusterwideNetworkPolicy() { return desiredEnableCiliumClusterwideNetworkPolicy_; } + public static final int DESIRED_NODE_KUBELET_CONFIG_FIELD_NUMBER = 141; + private com.google.container.v1.NodeKubeletConfig desiredNodeKubeletConfig_; + /** + * + * + *
+   * The desired node kubelet config for the cluster.
+   * 
+ * + * .google.container.v1.NodeKubeletConfig desired_node_kubelet_config = 141; + * + * @return Whether the desiredNodeKubeletConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredNodeKubeletConfig() { + return ((bitField1_ & 0x00000800) != 0); + } + /** + * + * + *
+   * The desired node kubelet config for the cluster.
+   * 
+ * + * .google.container.v1.NodeKubeletConfig desired_node_kubelet_config = 141; + * + * @return The desiredNodeKubeletConfig. + */ + @java.lang.Override + public com.google.container.v1.NodeKubeletConfig getDesiredNodeKubeletConfig() { + return desiredNodeKubeletConfig_ == null + ? com.google.container.v1.NodeKubeletConfig.getDefaultInstance() + : desiredNodeKubeletConfig_; + } + /** + * + * + *
+   * The desired node kubelet config for the cluster.
+   * 
+ * + * .google.container.v1.NodeKubeletConfig desired_node_kubelet_config = 141; + */ + @java.lang.Override + public com.google.container.v1.NodeKubeletConfigOrBuilder getDesiredNodeKubeletConfigOrBuilder() { + return desiredNodeKubeletConfig_ == null + ? com.google.container.v1.NodeKubeletConfig.getDefaultInstance() + : desiredNodeKubeletConfig_; + } + + public static final int DESIRED_NODE_POOL_AUTO_CONFIG_KUBELET_CONFIG_FIELD_NUMBER = 142; + private com.google.container.v1.NodeKubeletConfig desiredNodePoolAutoConfigKubeletConfig_; + /** + * + * + *
+   * The desired node kubelet config for all auto-provisioned node pools
+   * in autopilot clusters and node auto-provisioning enabled clusters.
+   * 
+ * + * + * .google.container.v1.NodeKubeletConfig desired_node_pool_auto_config_kubelet_config = 142; + * + * + * @return Whether the desiredNodePoolAutoConfigKubeletConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredNodePoolAutoConfigKubeletConfig() { + return ((bitField1_ & 0x00001000) != 0); + } + /** + * + * + *
+   * The desired node kubelet config for all auto-provisioned node pools
+   * in autopilot clusters and node auto-provisioning enabled clusters.
+   * 
+ * + * + * .google.container.v1.NodeKubeletConfig desired_node_pool_auto_config_kubelet_config = 142; + * + * + * @return The desiredNodePoolAutoConfigKubeletConfig. + */ + @java.lang.Override + public com.google.container.v1.NodeKubeletConfig getDesiredNodePoolAutoConfigKubeletConfig() { + return desiredNodePoolAutoConfigKubeletConfig_ == null + ? com.google.container.v1.NodeKubeletConfig.getDefaultInstance() + : desiredNodePoolAutoConfigKubeletConfig_; + } + /** + * + * + *
+   * The desired node kubelet config for all auto-provisioned node pools
+   * in autopilot clusters and node auto-provisioning enabled clusters.
+   * 
+ * + * + * .google.container.v1.NodeKubeletConfig desired_node_pool_auto_config_kubelet_config = 142; + * + */ + @java.lang.Override + public com.google.container.v1.NodeKubeletConfigOrBuilder + getDesiredNodePoolAutoConfigKubeletConfigOrBuilder() { + return desiredNodePoolAutoConfigKubeletConfig_ == null + ? com.google.container.v1.NodeKubeletConfig.getDefaultInstance() + : desiredNodePoolAutoConfigKubeletConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -3030,17 +3205,26 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(131, getDesiredK8SBetaApis()); } if (((bitField1_ & 0x00000040) != 0)) { - output.writeBool(135, desiredEnableMultiNetworking_); + output.writeMessage(134, getDesiredContainerdConfig()); } if (((bitField1_ & 0x00000080) != 0)) { - output.writeMessage(136, getDesiredNodePoolAutoConfigResourceManagerTags()); + output.writeBool(135, desiredEnableMultiNetworking_); } if (((bitField1_ & 0x00000100) != 0)) { - output.writeEnum(137, desiredInTransitEncryptionConfig_); + output.writeMessage(136, getDesiredNodePoolAutoConfigResourceManagerTags()); } if (((bitField1_ & 0x00000200) != 0)) { + output.writeEnum(137, desiredInTransitEncryptionConfig_); + } + if (((bitField1_ & 0x00000400) != 0)) { output.writeBool(138, desiredEnableCiliumClusterwideNetworkPolicy_); } + if (((bitField1_ & 0x00000800) != 0)) { + output.writeMessage(141, getDesiredNodeKubeletConfig()); + } + if (((bitField1_ & 0x00001000) != 0)) { + output.writeMessage(142, getDesiredNodePoolAutoConfigKubeletConfig()); + } getUnknownFields().writeTo(output); } @@ -3271,23 +3455,38 @@ public int getSerializedSize() { } if (((bitField1_ & 0x00000040) != 0)) { size += - com.google.protobuf.CodedOutputStream.computeBoolSize(135, desiredEnableMultiNetworking_); + com.google.protobuf.CodedOutputStream.computeMessageSize( + 134, getDesiredContainerdConfig()); } if (((bitField1_ & 0x00000080) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(135, desiredEnableMultiNetworking_); + } + if (((bitField1_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 136, getDesiredNodePoolAutoConfigResourceManagerTags()); } - if (((bitField1_ & 0x00000100) != 0)) { + if (((bitField1_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream.computeEnumSize( 137, desiredInTransitEncryptionConfig_); } - if (((bitField1_ & 0x00000200) != 0)) { + if (((bitField1_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize( 138, desiredEnableCiliumClusterwideNetworkPolicy_); } + if (((bitField1_ & 0x00000800) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 141, getDesiredNodeKubeletConfig()); + } + if (((bitField1_ & 0x00001000) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 142, getDesiredNodePoolAutoConfigKubeletConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3503,6 +3702,10 @@ public boolean equals(final java.lang.Object obj) { if (hasDesiredK8SBetaApis()) { if (!getDesiredK8SBetaApis().equals(other.getDesiredK8SBetaApis())) return false; } + if (hasDesiredContainerdConfig() != other.hasDesiredContainerdConfig()) return false; + if (hasDesiredContainerdConfig()) { + if (!getDesiredContainerdConfig().equals(other.getDesiredContainerdConfig())) return false; + } if (hasDesiredEnableMultiNetworking() != other.hasDesiredEnableMultiNetworking()) return false; if (hasDesiredEnableMultiNetworking()) { if (getDesiredEnableMultiNetworking() != other.getDesiredEnableMultiNetworking()) @@ -3526,6 +3729,16 @@ public boolean equals(final java.lang.Object obj) { if (getDesiredEnableCiliumClusterwideNetworkPolicy() != other.getDesiredEnableCiliumClusterwideNetworkPolicy()) return false; } + if (hasDesiredNodeKubeletConfig() != other.hasDesiredNodeKubeletConfig()) return false; + if (hasDesiredNodeKubeletConfig()) { + if (!getDesiredNodeKubeletConfig().equals(other.getDesiredNodeKubeletConfig())) return false; + } + if (hasDesiredNodePoolAutoConfigKubeletConfig() + != other.hasDesiredNodePoolAutoConfigKubeletConfig()) return false; + if (hasDesiredNodePoolAutoConfigKubeletConfig()) { + if (!getDesiredNodePoolAutoConfigKubeletConfig() + .equals(other.getDesiredNodePoolAutoConfigKubeletConfig())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3716,6 +3929,10 @@ public int hashCode() { hash = (37 * hash) + DESIRED_K8S_BETA_APIS_FIELD_NUMBER; hash = (53 * hash) + getDesiredK8SBetaApis().hashCode(); } + if (hasDesiredContainerdConfig()) { + hash = (37 * hash) + DESIRED_CONTAINERD_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredContainerdConfig().hashCode(); + } if (hasDesiredEnableMultiNetworking()) { hash = (37 * hash) + DESIRED_ENABLE_MULTI_NETWORKING_FIELD_NUMBER; hash = @@ -3736,6 +3953,14 @@ public int hashCode() { + com.google.protobuf.Internal.hashBoolean( getDesiredEnableCiliumClusterwideNetworkPolicy()); } + if (hasDesiredNodeKubeletConfig()) { + hash = (37 * hash) + DESIRED_NODE_KUBELET_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredNodeKubeletConfig().hashCode(); + } + if (hasDesiredNodePoolAutoConfigKubeletConfig()) { + hash = (37 * hash) + DESIRED_NODE_POOL_AUTO_CONFIG_KUBELET_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredNodePoolAutoConfigKubeletConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -3913,7 +4138,10 @@ private void maybeForceBuilderInitialization() { getDesiredNetworkPerformanceConfigFieldBuilder(); getDesiredAutopilotWorkloadPolicyConfigFieldBuilder(); getDesiredK8SBetaApisFieldBuilder(); + getDesiredContainerdConfigFieldBuilder(); getDesiredNodePoolAutoConfigResourceManagerTagsFieldBuilder(); + getDesiredNodeKubeletConfigFieldBuilder(); + getDesiredNodePoolAutoConfigKubeletConfigFieldBuilder(); } } @@ -4115,6 +4343,11 @@ public Builder clear() { desiredK8SBetaApisBuilder_.dispose(); desiredK8SBetaApisBuilder_ = null; } + desiredContainerdConfig_ = null; + if (desiredContainerdConfigBuilder_ != null) { + desiredContainerdConfigBuilder_.dispose(); + desiredContainerdConfigBuilder_ = null; + } desiredEnableMultiNetworking_ = false; desiredNodePoolAutoConfigResourceManagerTags_ = null; if (desiredNodePoolAutoConfigResourceManagerTagsBuilder_ != null) { @@ -4123,6 +4356,16 @@ public Builder clear() { } desiredInTransitEncryptionConfig_ = 0; desiredEnableCiliumClusterwideNetworkPolicy_ = false; + desiredNodeKubeletConfig_ = null; + if (desiredNodeKubeletConfigBuilder_ != null) { + desiredNodeKubeletConfigBuilder_.dispose(); + desiredNodeKubeletConfigBuilder_ = null; + } + desiredNodePoolAutoConfigKubeletConfig_ = null; + if (desiredNodePoolAutoConfigKubeletConfigBuilder_ != null) { + desiredNodePoolAutoConfigKubeletConfigBuilder_.dispose(); + desiredNodePoolAutoConfigKubeletConfigBuilder_ = null; + } return this; } @@ -4461,24 +4704,45 @@ private void buildPartial1(com.google.container.v1.ClusterUpdate result) { to_bitField1_ |= 0x00000020; } if (((from_bitField1_ & 0x00020000) != 0)) { - result.desiredEnableMultiNetworking_ = desiredEnableMultiNetworking_; + result.desiredContainerdConfig_ = + desiredContainerdConfigBuilder_ == null + ? desiredContainerdConfig_ + : desiredContainerdConfigBuilder_.build(); to_bitField1_ |= 0x00000040; } if (((from_bitField1_ & 0x00040000) != 0)) { + result.desiredEnableMultiNetworking_ = desiredEnableMultiNetworking_; + to_bitField1_ |= 0x00000080; + } + if (((from_bitField1_ & 0x00080000) != 0)) { result.desiredNodePoolAutoConfigResourceManagerTags_ = desiredNodePoolAutoConfigResourceManagerTagsBuilder_ == null ? desiredNodePoolAutoConfigResourceManagerTags_ : desiredNodePoolAutoConfigResourceManagerTagsBuilder_.build(); - to_bitField1_ |= 0x00000080; - } - if (((from_bitField1_ & 0x00080000) != 0)) { - result.desiredInTransitEncryptionConfig_ = desiredInTransitEncryptionConfig_; to_bitField1_ |= 0x00000100; } if (((from_bitField1_ & 0x00100000) != 0)) { + result.desiredInTransitEncryptionConfig_ = desiredInTransitEncryptionConfig_; + to_bitField1_ |= 0x00000200; + } + if (((from_bitField1_ & 0x00200000) != 0)) { result.desiredEnableCiliumClusterwideNetworkPolicy_ = desiredEnableCiliumClusterwideNetworkPolicy_; - to_bitField1_ |= 0x00000200; + to_bitField1_ |= 0x00000400; + } + if (((from_bitField1_ & 0x00400000) != 0)) { + result.desiredNodeKubeletConfig_ = + desiredNodeKubeletConfigBuilder_ == null + ? desiredNodeKubeletConfig_ + : desiredNodeKubeletConfigBuilder_.build(); + to_bitField1_ |= 0x00000800; + } + if (((from_bitField1_ & 0x00800000) != 0)) { + result.desiredNodePoolAutoConfigKubeletConfig_ = + desiredNodePoolAutoConfigKubeletConfigBuilder_ == null + ? desiredNodePoolAutoConfigKubeletConfig_ + : desiredNodePoolAutoConfigKubeletConfigBuilder_.build(); + to_bitField1_ |= 0x00001000; } result.bitField0_ |= to_bitField0_; result.bitField1_ |= to_bitField1_; @@ -4698,6 +4962,9 @@ public Builder mergeFrom(com.google.container.v1.ClusterUpdate other) { if (other.hasDesiredK8SBetaApis()) { mergeDesiredK8SBetaApis(other.getDesiredK8SBetaApis()); } + if (other.hasDesiredContainerdConfig()) { + mergeDesiredContainerdConfig(other.getDesiredContainerdConfig()); + } if (other.hasDesiredEnableMultiNetworking()) { setDesiredEnableMultiNetworking(other.getDesiredEnableMultiNetworking()); } @@ -4712,6 +4979,13 @@ public Builder mergeFrom(com.google.container.v1.ClusterUpdate other) { setDesiredEnableCiliumClusterwideNetworkPolicy( other.getDesiredEnableCiliumClusterwideNetworkPolicy()); } + if (other.hasDesiredNodeKubeletConfig()) { + mergeDesiredNodeKubeletConfig(other.getDesiredNodeKubeletConfig()); + } + if (other.hasDesiredNodePoolAutoConfigKubeletConfig()) { + mergeDesiredNodePoolAutoConfigKubeletConfig( + other.getDesiredNodePoolAutoConfigKubeletConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -5077,10 +5351,17 @@ public Builder mergeFrom( bitField1_ |= 0x00010000; break; } // case 1050 + case 1074: + { + input.readMessage( + getDesiredContainerdConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField1_ |= 0x00020000; + break; + } // case 1074 case 1080: { desiredEnableMultiNetworking_ = input.readBool(); - bitField1_ |= 0x00020000; + bitField1_ |= 0x00040000; break; } // case 1080 case 1090: @@ -5088,21 +5369,36 @@ public Builder mergeFrom( input.readMessage( getDesiredNodePoolAutoConfigResourceManagerTagsFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00040000; + bitField1_ |= 0x00080000; break; } // case 1090 case 1096: { desiredInTransitEncryptionConfig_ = input.readEnum(); - bitField1_ |= 0x00080000; + bitField1_ |= 0x00100000; break; } // case 1096 case 1104: { desiredEnableCiliumClusterwideNetworkPolicy_ = input.readBool(); - bitField1_ |= 0x00100000; + bitField1_ |= 0x00200000; break; } // case 1104 + case 1130: + { + input.readMessage( + getDesiredNodeKubeletConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField1_ |= 0x00400000; + break; + } // case 1130 + case 1138: + { + input.readMessage( + getDesiredNodePoolAutoConfigKubeletConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField1_ |= 0x00800000; + break; + } // case 1138 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -8624,7 +8920,12 @@ public Builder clearDesiredVerticalPodAutoscaling() { * * *
-     * The desired private cluster configuration.
+     * The desired private cluster configuration. master_global_access_config is
+     * the only field that can be changed via this field.
+     * See also
+     * [ClusterUpdate.desired_enable_private_endpoint][google.container.v1.ClusterUpdate.desired_enable_private_endpoint]
+     * for modifying other fields within
+     * [PrivateClusterConfig][google.container.v1.PrivateClusterConfig].
      * 
* * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; @@ -8638,7 +8939,12 @@ public boolean hasDesiredPrivateClusterConfig() { * * *
-     * The desired private cluster configuration.
+     * The desired private cluster configuration. master_global_access_config is
+     * the only field that can be changed via this field.
+     * See also
+     * [ClusterUpdate.desired_enable_private_endpoint][google.container.v1.ClusterUpdate.desired_enable_private_endpoint]
+     * for modifying other fields within
+     * [PrivateClusterConfig][google.container.v1.PrivateClusterConfig].
      * 
* * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; @@ -8658,7 +8964,12 @@ public com.google.container.v1.PrivateClusterConfig getDesiredPrivateClusterConf * * *
-     * The desired private cluster configuration.
+     * The desired private cluster configuration. master_global_access_config is
+     * the only field that can be changed via this field.
+     * See also
+     * [ClusterUpdate.desired_enable_private_endpoint][google.container.v1.ClusterUpdate.desired_enable_private_endpoint]
+     * for modifying other fields within
+     * [PrivateClusterConfig][google.container.v1.PrivateClusterConfig].
      * 
* * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; @@ -8681,7 +8992,12 @@ public Builder setDesiredPrivateClusterConfig( * * *
-     * The desired private cluster configuration.
+     * The desired private cluster configuration. master_global_access_config is
+     * the only field that can be changed via this field.
+     * See also
+     * [ClusterUpdate.desired_enable_private_endpoint][google.container.v1.ClusterUpdate.desired_enable_private_endpoint]
+     * for modifying other fields within
+     * [PrivateClusterConfig][google.container.v1.PrivateClusterConfig].
      * 
* * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; @@ -8701,7 +9017,12 @@ public Builder setDesiredPrivateClusterConfig( * * *
-     * The desired private cluster configuration.
+     * The desired private cluster configuration. master_global_access_config is
+     * the only field that can be changed via this field.
+     * See also
+     * [ClusterUpdate.desired_enable_private_endpoint][google.container.v1.ClusterUpdate.desired_enable_private_endpoint]
+     * for modifying other fields within
+     * [PrivateClusterConfig][google.container.v1.PrivateClusterConfig].
      * 
* * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; @@ -8730,7 +9051,12 @@ public Builder mergeDesiredPrivateClusterConfig( * * *
-     * The desired private cluster configuration.
+     * The desired private cluster configuration. master_global_access_config is
+     * the only field that can be changed via this field.
+     * See also
+     * [ClusterUpdate.desired_enable_private_endpoint][google.container.v1.ClusterUpdate.desired_enable_private_endpoint]
+     * for modifying other fields within
+     * [PrivateClusterConfig][google.container.v1.PrivateClusterConfig].
      * 
* * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; @@ -8749,7 +9075,12 @@ public Builder clearDesiredPrivateClusterConfig() { * * *
-     * The desired private cluster configuration.
+     * The desired private cluster configuration. master_global_access_config is
+     * the only field that can be changed via this field.
+     * See also
+     * [ClusterUpdate.desired_enable_private_endpoint][google.container.v1.ClusterUpdate.desired_enable_private_endpoint]
+     * for modifying other fields within
+     * [PrivateClusterConfig][google.container.v1.PrivateClusterConfig].
      * 
* * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; @@ -8764,7 +9095,12 @@ public Builder clearDesiredPrivateClusterConfig() { * * *
-     * The desired private cluster configuration.
+     * The desired private cluster configuration. master_global_access_config is
+     * the only field that can be changed via this field.
+     * See also
+     * [ClusterUpdate.desired_enable_private_endpoint][google.container.v1.ClusterUpdate.desired_enable_private_endpoint]
+     * for modifying other fields within
+     * [PrivateClusterConfig][google.container.v1.PrivateClusterConfig].
      * 
* * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; @@ -8783,7 +9119,12 @@ public Builder clearDesiredPrivateClusterConfig() { * * *
-     * The desired private cluster configuration.
+     * The desired private cluster configuration. master_global_access_config is
+     * the only field that can be changed via this field.
+     * See also
+     * [ClusterUpdate.desired_enable_private_endpoint][google.container.v1.ClusterUpdate.desired_enable_private_endpoint]
+     * for modifying other fields within
+     * [PrivateClusterConfig][google.container.v1.PrivateClusterConfig].
      * 
* * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; @@ -13844,52 +14185,64 @@ public com.google.container.v1.K8sBetaAPIConfigOrBuilder getDesiredK8SBetaApisOr return desiredK8SBetaApisBuilder_; } - private boolean desiredEnableMultiNetworking_; + private com.google.container.v1.ContainerdConfig desiredContainerdConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ContainerdConfig, + com.google.container.v1.ContainerdConfig.Builder, + com.google.container.v1.ContainerdConfigOrBuilder> + desiredContainerdConfigBuilder_; /** * * *
-     * Enable/Disable Multi-Networking for the cluster
+     * The desired containerd config for the cluster.
      * 
* - * optional bool desired_enable_multi_networking = 135; + * .google.container.v1.ContainerdConfig desired_containerd_config = 134; * - * @return Whether the desiredEnableMultiNetworking field is set. + * @return Whether the desiredContainerdConfig field is set. */ - @java.lang.Override - public boolean hasDesiredEnableMultiNetworking() { + public boolean hasDesiredContainerdConfig() { return ((bitField1_ & 0x00020000) != 0); } /** * * *
-     * Enable/Disable Multi-Networking for the cluster
+     * The desired containerd config for the cluster.
      * 
* - * optional bool desired_enable_multi_networking = 135; + * .google.container.v1.ContainerdConfig desired_containerd_config = 134; * - * @return The desiredEnableMultiNetworking. + * @return The desiredContainerdConfig. */ - @java.lang.Override - public boolean getDesiredEnableMultiNetworking() { - return desiredEnableMultiNetworking_; + public com.google.container.v1.ContainerdConfig getDesiredContainerdConfig() { + if (desiredContainerdConfigBuilder_ == null) { + return desiredContainerdConfig_ == null + ? com.google.container.v1.ContainerdConfig.getDefaultInstance() + : desiredContainerdConfig_; + } else { + return desiredContainerdConfigBuilder_.getMessage(); + } } /** * * *
-     * Enable/Disable Multi-Networking for the cluster
+     * The desired containerd config for the cluster.
      * 
* - * optional bool desired_enable_multi_networking = 135; - * - * @param value The desiredEnableMultiNetworking to set. - * @return This builder for chaining. + * .google.container.v1.ContainerdConfig desired_containerd_config = 134; */ - public Builder setDesiredEnableMultiNetworking(boolean value) { - - desiredEnableMultiNetworking_ = value; + public Builder setDesiredContainerdConfig(com.google.container.v1.ContainerdConfig value) { + if (desiredContainerdConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredContainerdConfig_ = value; + } else { + desiredContainerdConfigBuilder_.setMessage(value); + } bitField1_ |= 0x00020000; onChanged(); return this; @@ -13898,74 +14251,249 @@ public Builder setDesiredEnableMultiNetworking(boolean value) { * * *
-     * Enable/Disable Multi-Networking for the cluster
+     * The desired containerd config for the cluster.
      * 
* - * optional bool desired_enable_multi_networking = 135; - * - * @return This builder for chaining. + * .google.container.v1.ContainerdConfig desired_containerd_config = 134; */ - public Builder clearDesiredEnableMultiNetworking() { - bitField1_ = (bitField1_ & ~0x00020000); - desiredEnableMultiNetworking_ = false; + public Builder setDesiredContainerdConfig( + com.google.container.v1.ContainerdConfig.Builder builderForValue) { + if (desiredContainerdConfigBuilder_ == null) { + desiredContainerdConfig_ = builderForValue.build(); + } else { + desiredContainerdConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00020000; onChanged(); return this; } - - private com.google.container.v1.ResourceManagerTags - desiredNodePoolAutoConfigResourceManagerTags_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.ResourceManagerTags, - com.google.container.v1.ResourceManagerTags.Builder, - com.google.container.v1.ResourceManagerTagsOrBuilder> - desiredNodePoolAutoConfigResourceManagerTagsBuilder_; /** * * *
-     * The desired resource manager tags that apply to all auto-provisioned node
-     * pools in autopilot clusters and node auto-provisioning enabled clusters.
+     * The desired containerd config for the cluster.
      * 
* - * - * .google.container.v1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; - * - * - * @return Whether the desiredNodePoolAutoConfigResourceManagerTags field is set. + * .google.container.v1.ContainerdConfig desired_containerd_config = 134; */ - public boolean hasDesiredNodePoolAutoConfigResourceManagerTags() { - return ((bitField1_ & 0x00040000) != 0); + public Builder mergeDesiredContainerdConfig(com.google.container.v1.ContainerdConfig value) { + if (desiredContainerdConfigBuilder_ == null) { + if (((bitField1_ & 0x00020000) != 0) + && desiredContainerdConfig_ != null + && desiredContainerdConfig_ + != com.google.container.v1.ContainerdConfig.getDefaultInstance()) { + getDesiredContainerdConfigBuilder().mergeFrom(value); + } else { + desiredContainerdConfig_ = value; + } + } else { + desiredContainerdConfigBuilder_.mergeFrom(value); + } + if (desiredContainerdConfig_ != null) { + bitField1_ |= 0x00020000; + onChanged(); + } + return this; } /** * * *
-     * The desired resource manager tags that apply to all auto-provisioned node
-     * pools in autopilot clusters and node auto-provisioning enabled clusters.
+     * The desired containerd config for the cluster.
      * 
* - * - * .google.container.v1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; - * - * - * @return The desiredNodePoolAutoConfigResourceManagerTags. + * .google.container.v1.ContainerdConfig desired_containerd_config = 134; */ - public com.google.container.v1.ResourceManagerTags - getDesiredNodePoolAutoConfigResourceManagerTags() { - if (desiredNodePoolAutoConfigResourceManagerTagsBuilder_ == null) { - return desiredNodePoolAutoConfigResourceManagerTags_ == null - ? com.google.container.v1.ResourceManagerTags.getDefaultInstance() - : desiredNodePoolAutoConfigResourceManagerTags_; - } else { - return desiredNodePoolAutoConfigResourceManagerTagsBuilder_.getMessage(); + public Builder clearDesiredContainerdConfig() { + bitField1_ = (bitField1_ & ~0x00020000); + desiredContainerdConfig_ = null; + if (desiredContainerdConfigBuilder_ != null) { + desiredContainerdConfigBuilder_.dispose(); + desiredContainerdConfigBuilder_ = null; } + onChanged(); + return this; } /** * * *
-     * The desired resource manager tags that apply to all auto-provisioned node
-     * pools in autopilot clusters and node auto-provisioning enabled clusters.
+     * The desired containerd config for the cluster.
+     * 
+ * + * .google.container.v1.ContainerdConfig desired_containerd_config = 134; + */ + public com.google.container.v1.ContainerdConfig.Builder getDesiredContainerdConfigBuilder() { + bitField1_ |= 0x00020000; + onChanged(); + return getDesiredContainerdConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The desired containerd config for the cluster.
+     * 
+ * + * .google.container.v1.ContainerdConfig desired_containerd_config = 134; + */ + public com.google.container.v1.ContainerdConfigOrBuilder getDesiredContainerdConfigOrBuilder() { + if (desiredContainerdConfigBuilder_ != null) { + return desiredContainerdConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredContainerdConfig_ == null + ? com.google.container.v1.ContainerdConfig.getDefaultInstance() + : desiredContainerdConfig_; + } + } + /** + * + * + *
+     * The desired containerd config for the cluster.
+     * 
+ * + * .google.container.v1.ContainerdConfig desired_containerd_config = 134; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ContainerdConfig, + com.google.container.v1.ContainerdConfig.Builder, + com.google.container.v1.ContainerdConfigOrBuilder> + getDesiredContainerdConfigFieldBuilder() { + if (desiredContainerdConfigBuilder_ == null) { + desiredContainerdConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ContainerdConfig, + com.google.container.v1.ContainerdConfig.Builder, + com.google.container.v1.ContainerdConfigOrBuilder>( + getDesiredContainerdConfig(), getParentForChildren(), isClean()); + desiredContainerdConfig_ = null; + } + return desiredContainerdConfigBuilder_; + } + + private boolean desiredEnableMultiNetworking_; + /** + * + * + *
+     * Enable/Disable Multi-Networking for the cluster
+     * 
+ * + * optional bool desired_enable_multi_networking = 135; + * + * @return Whether the desiredEnableMultiNetworking field is set. + */ + @java.lang.Override + public boolean hasDesiredEnableMultiNetworking() { + return ((bitField1_ & 0x00040000) != 0); + } + /** + * + * + *
+     * Enable/Disable Multi-Networking for the cluster
+     * 
+ * + * optional bool desired_enable_multi_networking = 135; + * + * @return The desiredEnableMultiNetworking. + */ + @java.lang.Override + public boolean getDesiredEnableMultiNetworking() { + return desiredEnableMultiNetworking_; + } + /** + * + * + *
+     * Enable/Disable Multi-Networking for the cluster
+     * 
+ * + * optional bool desired_enable_multi_networking = 135; + * + * @param value The desiredEnableMultiNetworking to set. + * @return This builder for chaining. + */ + public Builder setDesiredEnableMultiNetworking(boolean value) { + + desiredEnableMultiNetworking_ = value; + bitField1_ |= 0x00040000; + onChanged(); + return this; + } + /** + * + * + *
+     * Enable/Disable Multi-Networking for the cluster
+     * 
+ * + * optional bool desired_enable_multi_networking = 135; + * + * @return This builder for chaining. + */ + public Builder clearDesiredEnableMultiNetworking() { + bitField1_ = (bitField1_ & ~0x00040000); + desiredEnableMultiNetworking_ = false; + onChanged(); + return this; + } + + private com.google.container.v1.ResourceManagerTags + desiredNodePoolAutoConfigResourceManagerTags_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ResourceManagerTags, + com.google.container.v1.ResourceManagerTags.Builder, + com.google.container.v1.ResourceManagerTagsOrBuilder> + desiredNodePoolAutoConfigResourceManagerTagsBuilder_; + /** + * + * + *
+     * The desired resource manager tags that apply to all auto-provisioned node
+     * pools in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * + * .google.container.v1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; + * + * + * @return Whether the desiredNodePoolAutoConfigResourceManagerTags field is set. + */ + public boolean hasDesiredNodePoolAutoConfigResourceManagerTags() { + return ((bitField1_ & 0x00080000) != 0); + } + /** + * + * + *
+     * The desired resource manager tags that apply to all auto-provisioned node
+     * pools in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * + * .google.container.v1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; + * + * + * @return The desiredNodePoolAutoConfigResourceManagerTags. + */ + public com.google.container.v1.ResourceManagerTags + getDesiredNodePoolAutoConfigResourceManagerTags() { + if (desiredNodePoolAutoConfigResourceManagerTagsBuilder_ == null) { + return desiredNodePoolAutoConfigResourceManagerTags_ == null + ? com.google.container.v1.ResourceManagerTags.getDefaultInstance() + : desiredNodePoolAutoConfigResourceManagerTags_; + } else { + return desiredNodePoolAutoConfigResourceManagerTagsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The desired resource manager tags that apply to all auto-provisioned node
+     * pools in autopilot clusters and node auto-provisioning enabled clusters.
      * 
* * @@ -13982,7 +14510,7 @@ public Builder setDesiredNodePoolAutoConfigResourceManagerTags( } else { desiredNodePoolAutoConfigResourceManagerTagsBuilder_.setMessage(value); } - bitField1_ |= 0x00040000; + bitField1_ |= 0x00080000; onChanged(); return this; } @@ -14005,7 +14533,7 @@ public Builder setDesiredNodePoolAutoConfigResourceManagerTags( } else { desiredNodePoolAutoConfigResourceManagerTagsBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x00040000; + bitField1_ |= 0x00080000; onChanged(); return this; } @@ -14024,7 +14552,7 @@ public Builder setDesiredNodePoolAutoConfigResourceManagerTags( public Builder mergeDesiredNodePoolAutoConfigResourceManagerTags( com.google.container.v1.ResourceManagerTags value) { if (desiredNodePoolAutoConfigResourceManagerTagsBuilder_ == null) { - if (((bitField1_ & 0x00040000) != 0) + if (((bitField1_ & 0x00080000) != 0) && desiredNodePoolAutoConfigResourceManagerTags_ != null && desiredNodePoolAutoConfigResourceManagerTags_ != com.google.container.v1.ResourceManagerTags.getDefaultInstance()) { @@ -14036,7 +14564,7 @@ public Builder mergeDesiredNodePoolAutoConfigResourceManagerTags( desiredNodePoolAutoConfigResourceManagerTagsBuilder_.mergeFrom(value); } if (desiredNodePoolAutoConfigResourceManagerTags_ != null) { - bitField1_ |= 0x00040000; + bitField1_ |= 0x00080000; onChanged(); } return this; @@ -14054,7 +14582,7 @@ public Builder mergeDesiredNodePoolAutoConfigResourceManagerTags( * */ public Builder clearDesiredNodePoolAutoConfigResourceManagerTags() { - bitField1_ = (bitField1_ & ~0x00040000); + bitField1_ = (bitField1_ & ~0x00080000); desiredNodePoolAutoConfigResourceManagerTags_ = null; if (desiredNodePoolAutoConfigResourceManagerTagsBuilder_ != null) { desiredNodePoolAutoConfigResourceManagerTagsBuilder_.dispose(); @@ -14077,7 +14605,7 @@ public Builder clearDesiredNodePoolAutoConfigResourceManagerTags() { */ public com.google.container.v1.ResourceManagerTags.Builder getDesiredNodePoolAutoConfigResourceManagerTagsBuilder() { - bitField1_ |= 0x00040000; + bitField1_ |= 0x00080000; onChanged(); return getDesiredNodePoolAutoConfigResourceManagerTagsFieldBuilder().getBuilder(); } @@ -14150,7 +14678,7 @@ public Builder clearDesiredNodePoolAutoConfigResourceManagerTags() { */ @java.lang.Override public boolean hasDesiredInTransitEncryptionConfig() { - return ((bitField1_ & 0x00080000) != 0); + return ((bitField1_ & 0x00100000) != 0); } /** * @@ -14185,7 +14713,7 @@ public int getDesiredInTransitEncryptionConfigValue() { */ public Builder setDesiredInTransitEncryptionConfigValue(int value) { desiredInTransitEncryptionConfig_ = value; - bitField1_ |= 0x00080000; + bitField1_ |= 0x00100000; onChanged(); return this; } @@ -14230,7 +14758,7 @@ public Builder setDesiredInTransitEncryptionConfig( if (value == null) { throw new NullPointerException(); } - bitField1_ |= 0x00080000; + bitField1_ |= 0x00100000; desiredInTransitEncryptionConfig_ = value.getNumber(); onChanged(); return this; @@ -14249,7 +14777,7 @@ public Builder setDesiredInTransitEncryptionConfig( * @return This builder for chaining. */ public Builder clearDesiredInTransitEncryptionConfig() { - bitField1_ = (bitField1_ & ~0x00080000); + bitField1_ = (bitField1_ & ~0x00100000); desiredInTransitEncryptionConfig_ = 0; onChanged(); return this; @@ -14269,7 +14797,7 @@ public Builder clearDesiredInTransitEncryptionConfig() { */ @java.lang.Override public boolean hasDesiredEnableCiliumClusterwideNetworkPolicy() { - return ((bitField1_ & 0x00100000) != 0); + return ((bitField1_ & 0x00200000) != 0); } /** * @@ -14301,7 +14829,7 @@ public boolean getDesiredEnableCiliumClusterwideNetworkPolicy() { public Builder setDesiredEnableCiliumClusterwideNetworkPolicy(boolean value) { desiredEnableCiliumClusterwideNetworkPolicy_ = value; - bitField1_ |= 0x00100000; + bitField1_ |= 0x00200000; onChanged(); return this; } @@ -14317,12 +14845,418 @@ public Builder setDesiredEnableCiliumClusterwideNetworkPolicy(boolean value) { * @return This builder for chaining. */ public Builder clearDesiredEnableCiliumClusterwideNetworkPolicy() { - bitField1_ = (bitField1_ & ~0x00100000); + bitField1_ = (bitField1_ & ~0x00200000); desiredEnableCiliumClusterwideNetworkPolicy_ = false; onChanged(); return this; } + private com.google.container.v1.NodeKubeletConfig desiredNodeKubeletConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeKubeletConfig, + com.google.container.v1.NodeKubeletConfig.Builder, + com.google.container.v1.NodeKubeletConfigOrBuilder> + desiredNodeKubeletConfigBuilder_; + /** + * + * + *
+     * The desired node kubelet config for the cluster.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig desired_node_kubelet_config = 141; + * + * @return Whether the desiredNodeKubeletConfig field is set. + */ + public boolean hasDesiredNodeKubeletConfig() { + return ((bitField1_ & 0x00400000) != 0); + } + /** + * + * + *
+     * The desired node kubelet config for the cluster.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig desired_node_kubelet_config = 141; + * + * @return The desiredNodeKubeletConfig. + */ + public com.google.container.v1.NodeKubeletConfig getDesiredNodeKubeletConfig() { + if (desiredNodeKubeletConfigBuilder_ == null) { + return desiredNodeKubeletConfig_ == null + ? com.google.container.v1.NodeKubeletConfig.getDefaultInstance() + : desiredNodeKubeletConfig_; + } else { + return desiredNodeKubeletConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The desired node kubelet config for the cluster.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig desired_node_kubelet_config = 141; + */ + public Builder setDesiredNodeKubeletConfig(com.google.container.v1.NodeKubeletConfig value) { + if (desiredNodeKubeletConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredNodeKubeletConfig_ = value; + } else { + desiredNodeKubeletConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x00400000; + onChanged(); + return this; + } + /** + * + * + *
+     * The desired node kubelet config for the cluster.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig desired_node_kubelet_config = 141; + */ + public Builder setDesiredNodeKubeletConfig( + com.google.container.v1.NodeKubeletConfig.Builder builderForValue) { + if (desiredNodeKubeletConfigBuilder_ == null) { + desiredNodeKubeletConfig_ = builderForValue.build(); + } else { + desiredNodeKubeletConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00400000; + onChanged(); + return this; + } + /** + * + * + *
+     * The desired node kubelet config for the cluster.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig desired_node_kubelet_config = 141; + */ + public Builder mergeDesiredNodeKubeletConfig(com.google.container.v1.NodeKubeletConfig value) { + if (desiredNodeKubeletConfigBuilder_ == null) { + if (((bitField1_ & 0x00400000) != 0) + && desiredNodeKubeletConfig_ != null + && desiredNodeKubeletConfig_ + != com.google.container.v1.NodeKubeletConfig.getDefaultInstance()) { + getDesiredNodeKubeletConfigBuilder().mergeFrom(value); + } else { + desiredNodeKubeletConfig_ = value; + } + } else { + desiredNodeKubeletConfigBuilder_.mergeFrom(value); + } + if (desiredNodeKubeletConfig_ != null) { + bitField1_ |= 0x00400000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * The desired node kubelet config for the cluster.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig desired_node_kubelet_config = 141; + */ + public Builder clearDesiredNodeKubeletConfig() { + bitField1_ = (bitField1_ & ~0x00400000); + desiredNodeKubeletConfig_ = null; + if (desiredNodeKubeletConfigBuilder_ != null) { + desiredNodeKubeletConfigBuilder_.dispose(); + desiredNodeKubeletConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The desired node kubelet config for the cluster.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig desired_node_kubelet_config = 141; + */ + public com.google.container.v1.NodeKubeletConfig.Builder getDesiredNodeKubeletConfigBuilder() { + bitField1_ |= 0x00400000; + onChanged(); + return getDesiredNodeKubeletConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The desired node kubelet config for the cluster.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig desired_node_kubelet_config = 141; + */ + public com.google.container.v1.NodeKubeletConfigOrBuilder + getDesiredNodeKubeletConfigOrBuilder() { + if (desiredNodeKubeletConfigBuilder_ != null) { + return desiredNodeKubeletConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredNodeKubeletConfig_ == null + ? com.google.container.v1.NodeKubeletConfig.getDefaultInstance() + : desiredNodeKubeletConfig_; + } + } + /** + * + * + *
+     * The desired node kubelet config for the cluster.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig desired_node_kubelet_config = 141; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeKubeletConfig, + com.google.container.v1.NodeKubeletConfig.Builder, + com.google.container.v1.NodeKubeletConfigOrBuilder> + getDesiredNodeKubeletConfigFieldBuilder() { + if (desiredNodeKubeletConfigBuilder_ == null) { + desiredNodeKubeletConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeKubeletConfig, + com.google.container.v1.NodeKubeletConfig.Builder, + com.google.container.v1.NodeKubeletConfigOrBuilder>( + getDesiredNodeKubeletConfig(), getParentForChildren(), isClean()); + desiredNodeKubeletConfig_ = null; + } + return desiredNodeKubeletConfigBuilder_; + } + + private com.google.container.v1.NodeKubeletConfig desiredNodePoolAutoConfigKubeletConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeKubeletConfig, + com.google.container.v1.NodeKubeletConfig.Builder, + com.google.container.v1.NodeKubeletConfigOrBuilder> + desiredNodePoolAutoConfigKubeletConfigBuilder_; + /** + * + * + *
+     * The desired node kubelet config for all auto-provisioned node pools
+     * in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * + * .google.container.v1.NodeKubeletConfig desired_node_pool_auto_config_kubelet_config = 142; + * + * + * @return Whether the desiredNodePoolAutoConfigKubeletConfig field is set. + */ + public boolean hasDesiredNodePoolAutoConfigKubeletConfig() { + return ((bitField1_ & 0x00800000) != 0); + } + /** + * + * + *
+     * The desired node kubelet config for all auto-provisioned node pools
+     * in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * + * .google.container.v1.NodeKubeletConfig desired_node_pool_auto_config_kubelet_config = 142; + * + * + * @return The desiredNodePoolAutoConfigKubeletConfig. + */ + public com.google.container.v1.NodeKubeletConfig getDesiredNodePoolAutoConfigKubeletConfig() { + if (desiredNodePoolAutoConfigKubeletConfigBuilder_ == null) { + return desiredNodePoolAutoConfigKubeletConfig_ == null + ? com.google.container.v1.NodeKubeletConfig.getDefaultInstance() + : desiredNodePoolAutoConfigKubeletConfig_; + } else { + return desiredNodePoolAutoConfigKubeletConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The desired node kubelet config for all auto-provisioned node pools
+     * in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * + * .google.container.v1.NodeKubeletConfig desired_node_pool_auto_config_kubelet_config = 142; + * + */ + public Builder setDesiredNodePoolAutoConfigKubeletConfig( + com.google.container.v1.NodeKubeletConfig value) { + if (desiredNodePoolAutoConfigKubeletConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredNodePoolAutoConfigKubeletConfig_ = value; + } else { + desiredNodePoolAutoConfigKubeletConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x00800000; + onChanged(); + return this; + } + /** + * + * + *
+     * The desired node kubelet config for all auto-provisioned node pools
+     * in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * + * .google.container.v1.NodeKubeletConfig desired_node_pool_auto_config_kubelet_config = 142; + * + */ + public Builder setDesiredNodePoolAutoConfigKubeletConfig( + com.google.container.v1.NodeKubeletConfig.Builder builderForValue) { + if (desiredNodePoolAutoConfigKubeletConfigBuilder_ == null) { + desiredNodePoolAutoConfigKubeletConfig_ = builderForValue.build(); + } else { + desiredNodePoolAutoConfigKubeletConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00800000; + onChanged(); + return this; + } + /** + * + * + *
+     * The desired node kubelet config for all auto-provisioned node pools
+     * in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * + * .google.container.v1.NodeKubeletConfig desired_node_pool_auto_config_kubelet_config = 142; + * + */ + public Builder mergeDesiredNodePoolAutoConfigKubeletConfig( + com.google.container.v1.NodeKubeletConfig value) { + if (desiredNodePoolAutoConfigKubeletConfigBuilder_ == null) { + if (((bitField1_ & 0x00800000) != 0) + && desiredNodePoolAutoConfigKubeletConfig_ != null + && desiredNodePoolAutoConfigKubeletConfig_ + != com.google.container.v1.NodeKubeletConfig.getDefaultInstance()) { + getDesiredNodePoolAutoConfigKubeletConfigBuilder().mergeFrom(value); + } else { + desiredNodePoolAutoConfigKubeletConfig_ = value; + } + } else { + desiredNodePoolAutoConfigKubeletConfigBuilder_.mergeFrom(value); + } + if (desiredNodePoolAutoConfigKubeletConfig_ != null) { + bitField1_ |= 0x00800000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * The desired node kubelet config for all auto-provisioned node pools
+     * in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * + * .google.container.v1.NodeKubeletConfig desired_node_pool_auto_config_kubelet_config = 142; + * + */ + public Builder clearDesiredNodePoolAutoConfigKubeletConfig() { + bitField1_ = (bitField1_ & ~0x00800000); + desiredNodePoolAutoConfigKubeletConfig_ = null; + if (desiredNodePoolAutoConfigKubeletConfigBuilder_ != null) { + desiredNodePoolAutoConfigKubeletConfigBuilder_.dispose(); + desiredNodePoolAutoConfigKubeletConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The desired node kubelet config for all auto-provisioned node pools
+     * in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * + * .google.container.v1.NodeKubeletConfig desired_node_pool_auto_config_kubelet_config = 142; + * + */ + public com.google.container.v1.NodeKubeletConfig.Builder + getDesiredNodePoolAutoConfigKubeletConfigBuilder() { + bitField1_ |= 0x00800000; + onChanged(); + return getDesiredNodePoolAutoConfigKubeletConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The desired node kubelet config for all auto-provisioned node pools
+     * in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * + * .google.container.v1.NodeKubeletConfig desired_node_pool_auto_config_kubelet_config = 142; + * + */ + public com.google.container.v1.NodeKubeletConfigOrBuilder + getDesiredNodePoolAutoConfigKubeletConfigOrBuilder() { + if (desiredNodePoolAutoConfigKubeletConfigBuilder_ != null) { + return desiredNodePoolAutoConfigKubeletConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredNodePoolAutoConfigKubeletConfig_ == null + ? com.google.container.v1.NodeKubeletConfig.getDefaultInstance() + : desiredNodePoolAutoConfigKubeletConfig_; + } + } + /** + * + * + *
+     * The desired node kubelet config for all auto-provisioned node pools
+     * in autopilot clusters and node auto-provisioning enabled clusters.
+     * 
+ * + * + * .google.container.v1.NodeKubeletConfig desired_node_pool_auto_config_kubelet_config = 142; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeKubeletConfig, + com.google.container.v1.NodeKubeletConfig.Builder, + com.google.container.v1.NodeKubeletConfigOrBuilder> + getDesiredNodePoolAutoConfigKubeletConfigFieldBuilder() { + if (desiredNodePoolAutoConfigKubeletConfigBuilder_ == null) { + desiredNodePoolAutoConfigKubeletConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeKubeletConfig, + com.google.container.v1.NodeKubeletConfig.Builder, + com.google.container.v1.NodeKubeletConfigOrBuilder>( + getDesiredNodePoolAutoConfigKubeletConfig(), getParentForChildren(), isClean()); + desiredNodePoolAutoConfigKubeletConfig_ = null; + } + return desiredNodePoolAutoConfigKubeletConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterUpdateOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterUpdateOrBuilder.java index 6b10021f3a43..c51112ddd8d8 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterUpdateOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterUpdateOrBuilder.java @@ -780,7 +780,12 @@ public interface ClusterUpdateOrBuilder * * *
-   * The desired private cluster configuration.
+   * The desired private cluster configuration. master_global_access_config is
+   * the only field that can be changed via this field.
+   * See also
+   * [ClusterUpdate.desired_enable_private_endpoint][google.container.v1.ClusterUpdate.desired_enable_private_endpoint]
+   * for modifying other fields within
+   * [PrivateClusterConfig][google.container.v1.PrivateClusterConfig].
    * 
* * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; @@ -792,7 +797,12 @@ public interface ClusterUpdateOrBuilder * * *
-   * The desired private cluster configuration.
+   * The desired private cluster configuration. master_global_access_config is
+   * the only field that can be changed via this field.
+   * See also
+   * [ClusterUpdate.desired_enable_private_endpoint][google.container.v1.ClusterUpdate.desired_enable_private_endpoint]
+   * for modifying other fields within
+   * [PrivateClusterConfig][google.container.v1.PrivateClusterConfig].
    * 
* * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; @@ -804,7 +814,12 @@ public interface ClusterUpdateOrBuilder * * *
-   * The desired private cluster configuration.
+   * The desired private cluster configuration. master_global_access_config is
+   * the only field that can be changed via this field.
+   * See also
+   * [ClusterUpdate.desired_enable_private_endpoint][google.container.v1.ClusterUpdate.desired_enable_private_endpoint]
+   * for modifying other fields within
+   * [PrivateClusterConfig][google.container.v1.PrivateClusterConfig].
    * 
* * .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25; @@ -1831,6 +1846,41 @@ public interface ClusterUpdateOrBuilder */ com.google.container.v1.K8sBetaAPIConfigOrBuilder getDesiredK8SBetaApisOrBuilder(); + /** + * + * + *
+   * The desired containerd config for the cluster.
+   * 
+ * + * .google.container.v1.ContainerdConfig desired_containerd_config = 134; + * + * @return Whether the desiredContainerdConfig field is set. + */ + boolean hasDesiredContainerdConfig(); + /** + * + * + *
+   * The desired containerd config for the cluster.
+   * 
+ * + * .google.container.v1.ContainerdConfig desired_containerd_config = 134; + * + * @return The desiredContainerdConfig. + */ + com.google.container.v1.ContainerdConfig getDesiredContainerdConfig(); + /** + * + * + *
+   * The desired containerd config for the cluster.
+   * 
+ * + * .google.container.v1.ContainerdConfig desired_containerd_config = 134; + */ + com.google.container.v1.ContainerdConfigOrBuilder getDesiredContainerdConfigOrBuilder(); + /** * * @@ -1968,4 +2018,84 @@ public interface ClusterUpdateOrBuilder * @return The desiredEnableCiliumClusterwideNetworkPolicy. */ boolean getDesiredEnableCiliumClusterwideNetworkPolicy(); + + /** + * + * + *
+   * The desired node kubelet config for the cluster.
+   * 
+ * + * .google.container.v1.NodeKubeletConfig desired_node_kubelet_config = 141; + * + * @return Whether the desiredNodeKubeletConfig field is set. + */ + boolean hasDesiredNodeKubeletConfig(); + /** + * + * + *
+   * The desired node kubelet config for the cluster.
+   * 
+ * + * .google.container.v1.NodeKubeletConfig desired_node_kubelet_config = 141; + * + * @return The desiredNodeKubeletConfig. + */ + com.google.container.v1.NodeKubeletConfig getDesiredNodeKubeletConfig(); + /** + * + * + *
+   * The desired node kubelet config for the cluster.
+   * 
+ * + * .google.container.v1.NodeKubeletConfig desired_node_kubelet_config = 141; + */ + com.google.container.v1.NodeKubeletConfigOrBuilder getDesiredNodeKubeletConfigOrBuilder(); + + /** + * + * + *
+   * The desired node kubelet config for all auto-provisioned node pools
+   * in autopilot clusters and node auto-provisioning enabled clusters.
+   * 
+ * + * + * .google.container.v1.NodeKubeletConfig desired_node_pool_auto_config_kubelet_config = 142; + * + * + * @return Whether the desiredNodePoolAutoConfigKubeletConfig field is set. + */ + boolean hasDesiredNodePoolAutoConfigKubeletConfig(); + /** + * + * + *
+   * The desired node kubelet config for all auto-provisioned node pools
+   * in autopilot clusters and node auto-provisioning enabled clusters.
+   * 
+ * + * + * .google.container.v1.NodeKubeletConfig desired_node_pool_auto_config_kubelet_config = 142; + * + * + * @return The desiredNodePoolAutoConfigKubeletConfig. + */ + com.google.container.v1.NodeKubeletConfig getDesiredNodePoolAutoConfigKubeletConfig(); + /** + * + * + *
+   * The desired node kubelet config for all auto-provisioned node pools
+   * in autopilot clusters and node auto-provisioning enabled clusters.
+   * 
+ * + * + * .google.container.v1.NodeKubeletConfig desired_node_pool_auto_config_kubelet_config = 142; + * + */ + com.google.container.v1.NodeKubeletConfigOrBuilder + getDesiredNodePoolAutoConfigKubeletConfigOrBuilder(); } diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequest.java index 6a82edbde9da..c5da3d98717f 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequest.java @@ -82,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4140 + * google/container/v1/cluster_service.proto;l=4254 * @return The projectId. */ @java.lang.Override @@ -110,7 +110,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4140 + * google/container/v1/cluster_service.proto;l=4254 * @return The bytes for projectId. */ @java.lang.Override @@ -144,7 +144,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4146 + * google/container/v1/cluster_service.proto;l=4260 * @return The zone. */ @java.lang.Override @@ -173,7 +173,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4146 + * google/container/v1/cluster_service.proto;l=4260 * @return The bytes for zone. */ @java.lang.Override @@ -205,7 +205,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4150 + * google/container/v1/cluster_service.proto;l=4264 * @return The clusterId. */ @java.lang.Override @@ -232,7 +232,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4150 + * google/container/v1/cluster_service.proto;l=4264 * @return The bytes for clusterId. */ @java.lang.Override @@ -729,7 +729,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4140 + * google/container/v1/cluster_service.proto;l=4254 * @return The projectId. */ @java.lang.Deprecated @@ -756,7 +756,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4140 + * google/container/v1/cluster_service.proto;l=4254 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -783,7 +783,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4140 + * google/container/v1/cluster_service.proto;l=4254 * @param value The projectId to set. * @return This builder for chaining. */ @@ -809,7 +809,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4140 + * google/container/v1/cluster_service.proto;l=4254 * @return This builder for chaining. */ @java.lang.Deprecated @@ -831,7 +831,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4140 + * google/container/v1/cluster_service.proto;l=4254 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -861,7 +861,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4146 + * google/container/v1/cluster_service.proto;l=4260 * @return The zone. */ @java.lang.Deprecated @@ -889,7 +889,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4146 + * google/container/v1/cluster_service.proto;l=4260 * @return The bytes for zone. */ @java.lang.Deprecated @@ -917,7 +917,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4146 + * google/container/v1/cluster_service.proto;l=4260 * @param value The zone to set. * @return This builder for chaining. */ @@ -944,7 +944,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4146 + * google/container/v1/cluster_service.proto;l=4260 * @return This builder for chaining. */ @java.lang.Deprecated @@ -967,7 +967,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4146 + * google/container/v1/cluster_service.proto;l=4260 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -995,7 +995,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4150 + * google/container/v1/cluster_service.proto;l=4264 * @return The clusterId. */ @java.lang.Deprecated @@ -1021,7 +1021,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4150 + * google/container/v1/cluster_service.proto;l=4264 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1047,7 +1047,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4150 + * google/container/v1/cluster_service.proto;l=4264 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1072,7 +1072,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4150 + * google/container/v1/cluster_service.proto;l=4264 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1093,7 +1093,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4150 + * google/container/v1/cluster_service.proto;l=4264 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequestOrBuilder.java index 52e46c31618b..3e07ed5373ea 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface CompleteIPRotationRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4140 + * google/container/v1/cluster_service.proto;l=4254 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface CompleteIPRotationRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4140 + * google/container/v1/cluster_service.proto;l=4254 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface CompleteIPRotationRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4146 + * google/container/v1/cluster_service.proto;l=4260 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface CompleteIPRotationRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4146 + * google/container/v1/cluster_service.proto;l=4260 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface CompleteIPRotationRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4150 + * google/container/v1/cluster_service.proto;l=4264 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface CompleteIPRotationRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4150 + * google/container/v1/cluster_service.proto;l=4264 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ContainerdConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ContainerdConfig.java new file mode 100644 index 000000000000..0c6d471ca839 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ContainerdConfig.java @@ -0,0 +1,4217 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.container.v1; + +/** + * + * + *
+ * ContainerdConfig contains configuration to customize containerd.
+ * 
+ * + * Protobuf type {@code google.container.v1.ContainerdConfig} + */ +public final class ContainerdConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.ContainerdConfig) + ContainerdConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ContainerdConfig.newBuilder() to construct. + private ContainerdConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ContainerdConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ContainerdConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ContainerdConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ContainerdConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ContainerdConfig.class, + com.google.container.v1.ContainerdConfig.Builder.class); + } + + public interface PrivateRegistryAccessConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Private registry access is enabled.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); + + /** + * + * + *
+     * Private registry access configuration.
+     * 
+ * + * + * repeated .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig certificate_authority_domain_config = 2; + * + */ + java.util.List< + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig> + getCertificateAuthorityDomainConfigList(); + /** + * + * + *
+     * Private registry access configuration.
+     * 
+ * + * + * repeated .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig certificate_authority_domain_config = 2; + * + */ + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig + getCertificateAuthorityDomainConfig(int index); + /** + * + * + *
+     * Private registry access configuration.
+     * 
+ * + * + * repeated .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig certificate_authority_domain_config = 2; + * + */ + int getCertificateAuthorityDomainConfigCount(); + /** + * + * + *
+     * Private registry access configuration.
+     * 
+ * + * + * repeated .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig certificate_authority_domain_config = 2; + * + */ + java.util.List< + ? extends + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfigOrBuilder> + getCertificateAuthorityDomainConfigOrBuilderList(); + /** + * + * + *
+     * Private registry access configuration.
+     * 
+ * + * + * repeated .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig certificate_authority_domain_config = 2; + * + */ + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfigOrBuilder + getCertificateAuthorityDomainConfigOrBuilder(int index); + } + /** + * + * + *
+   * PrivateRegistryAccessConfig contains access configuration for
+   * private container registries.
+   * 
+ * + * Protobuf type {@code google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig} + */ + public static final class PrivateRegistryAccessConfig + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig) + PrivateRegistryAccessConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use PrivateRegistryAccessConfig.newBuilder() to construct. + private PrivateRegistryAccessConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PrivateRegistryAccessConfig() { + certificateAuthorityDomainConfig_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PrivateRegistryAccessConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ContainerdConfig_PrivateRegistryAccessConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ContainerdConfig_PrivateRegistryAccessConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.class, + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.Builder.class); + } + + public interface CertificateAuthorityDomainConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * List of fully qualified domain names (FQDN).
+       * Specifying port is supported.
+       * Wilcards are NOT supported.
+       * Examples:
+       * - my.customdomain.com
+       * - 10.0.1.2:5000
+       * 
+ * + * repeated string fqdns = 1; + * + * @return A list containing the fqdns. + */ + java.util.List getFqdnsList(); + /** + * + * + *
+       * List of fully qualified domain names (FQDN).
+       * Specifying port is supported.
+       * Wilcards are NOT supported.
+       * Examples:
+       * - my.customdomain.com
+       * - 10.0.1.2:5000
+       * 
+ * + * repeated string fqdns = 1; + * + * @return The count of fqdns. + */ + int getFqdnsCount(); + /** + * + * + *
+       * List of fully qualified domain names (FQDN).
+       * Specifying port is supported.
+       * Wilcards are NOT supported.
+       * Examples:
+       * - my.customdomain.com
+       * - 10.0.1.2:5000
+       * 
+ * + * repeated string fqdns = 1; + * + * @param index The index of the element to return. + * @return The fqdns at the given index. + */ + java.lang.String getFqdns(int index); + /** + * + * + *
+       * List of fully qualified domain names (FQDN).
+       * Specifying port is supported.
+       * Wilcards are NOT supported.
+       * Examples:
+       * - my.customdomain.com
+       * - 10.0.1.2:5000
+       * 
+ * + * repeated string fqdns = 1; + * + * @param index The index of the value to return. + * @return The bytes of the fqdns at the given index. + */ + com.google.protobuf.ByteString getFqdnsBytes(int index); + + /** + * + * + *
+       * Google Secret Manager (GCP) certificate configuration.
+       * 
+ * + * + * .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig gcp_secret_manager_certificate_config = 2; + * + * + * @return Whether the gcpSecretManagerCertificateConfig field is set. + */ + boolean hasGcpSecretManagerCertificateConfig(); + /** + * + * + *
+       * Google Secret Manager (GCP) certificate configuration.
+       * 
+ * + * + * .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig gcp_secret_manager_certificate_config = 2; + * + * + * @return The gcpSecretManagerCertificateConfig. + */ + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig + getGcpSecretManagerCertificateConfig(); + /** + * + * + *
+       * Google Secret Manager (GCP) certificate configuration.
+       * 
+ * + * + * .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig gcp_secret_manager_certificate_config = 2; + * + */ + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfigOrBuilder + getGcpSecretManagerCertificateConfigOrBuilder(); + + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.CertificateConfigCase + getCertificateConfigCase(); + } + /** + * + * + *
+     * CertificateAuthorityDomainConfig configures one or more fully qualified
+     * domain names (FQDN) to a specific certificate.
+     * 
+ * + * Protobuf type {@code + * google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig} + */ + public static final class CertificateAuthorityDomainConfig + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig) + CertificateAuthorityDomainConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use CertificateAuthorityDomainConfig.newBuilder() to construct. + private CertificateAuthorityDomainConfig( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CertificateAuthorityDomainConfig() { + fqdns_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CertificateAuthorityDomainConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ContainerdConfig_PrivateRegistryAccessConfig_CertificateAuthorityDomainConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ContainerdConfig_PrivateRegistryAccessConfig_CertificateAuthorityDomainConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.class, + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.Builder.class); + } + + public interface GCPSecretManagerCertificateConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+         * Secret URI, in the form
+         * "projects/$PROJECT_ID/secrets/$SECRET_NAME/versions/$VERSION".
+         * Version can be fixed (e.g. "2") or "latest"
+         * 
+ * + * string secret_uri = 1; + * + * @return The secretUri. + */ + java.lang.String getSecretUri(); + /** + * + * + *
+         * Secret URI, in the form
+         * "projects/$PROJECT_ID/secrets/$SECRET_NAME/versions/$VERSION".
+         * Version can be fixed (e.g. "2") or "latest"
+         * 
+ * + * string secret_uri = 1; + * + * @return The bytes for secretUri. + */ + com.google.protobuf.ByteString getSecretUriBytes(); + } + /** + * + * + *
+       * GCPSecretManagerCertificateConfig configures a secret from
+       * [Google Secret Manager](https://cloud.google.com/secret-manager).
+       * 
+ * + * Protobuf type {@code + * google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig} + */ + public static final class GCPSecretManagerCertificateConfig + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig) + GCPSecretManagerCertificateConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use GCPSecretManagerCertificateConfig.newBuilder() to construct. + private GCPSecretManagerCertificateConfig( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GCPSecretManagerCertificateConfig() { + secretUri_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GCPSecretManagerCertificateConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ContainerdConfig_PrivateRegistryAccessConfig_CertificateAuthorityDomainConfig_GCPSecretManagerCertificateConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ContainerdConfig_PrivateRegistryAccessConfig_CertificateAuthorityDomainConfig_GCPSecretManagerCertificateConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig.class, + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig.Builder + .class); + } + + public static final int SECRET_URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object secretUri_ = ""; + /** + * + * + *
+         * Secret URI, in the form
+         * "projects/$PROJECT_ID/secrets/$SECRET_NAME/versions/$VERSION".
+         * Version can be fixed (e.g. "2") or "latest"
+         * 
+ * + * string secret_uri = 1; + * + * @return The secretUri. + */ + @java.lang.Override + public java.lang.String getSecretUri() { + java.lang.Object ref = secretUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + secretUri_ = s; + return s; + } + } + /** + * + * + *
+         * Secret URI, in the form
+         * "projects/$PROJECT_ID/secrets/$SECRET_NAME/versions/$VERSION".
+         * Version can be fixed (e.g. "2") or "latest"
+         * 
+ * + * string secret_uri = 1; + * + * @return The bytes for secretUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSecretUriBytes() { + java.lang.Object ref = secretUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + secretUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secretUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, secretUri_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secretUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, secretUri_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig)) { + return super.equals(obj); + } + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig + other = + (com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig) + obj; + + if (!getSecretUri().equals(other.getSecretUri())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SECRET_URI_FIELD_NUMBER; + hash = (53 * hash) + getSecretUri().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig + parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); + } + + public static com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+         * GCPSecretManagerCertificateConfig configures a secret from
+         * [Google Secret Manager](https://cloud.google.com/secret-manager).
+         * 
+ * + * Protobuf type {@code + * google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig) + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ContainerdConfig_PrivateRegistryAccessConfig_CertificateAuthorityDomainConfig_GCPSecretManagerCertificateConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ContainerdConfig_PrivateRegistryAccessConfig_CertificateAuthorityDomainConfig_GCPSecretManagerCertificateConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig.class, + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig.Builder + .class); + } + + // Construct using + // com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + secretUri_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ContainerdConfig_PrivateRegistryAccessConfig_CertificateAuthorityDomainConfig_GCPSecretManagerCertificateConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig + getDefaultInstanceForType() { + return com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig + build() { + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig + buildPartial() { + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig + result = + new com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.secretUri_ = secretUri_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig) { + return mergeFrom( + (com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig + other) { + if (other + == com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig + .getDefaultInstance()) return this; + if (!other.getSecretUri().isEmpty()) { + secretUri_ = other.secretUri_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + secretUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object secretUri_ = ""; + /** + * + * + *
+           * Secret URI, in the form
+           * "projects/$PROJECT_ID/secrets/$SECRET_NAME/versions/$VERSION".
+           * Version can be fixed (e.g. "2") or "latest"
+           * 
+ * + * string secret_uri = 1; + * + * @return The secretUri. + */ + public java.lang.String getSecretUri() { + java.lang.Object ref = secretUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + secretUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+           * Secret URI, in the form
+           * "projects/$PROJECT_ID/secrets/$SECRET_NAME/versions/$VERSION".
+           * Version can be fixed (e.g. "2") or "latest"
+           * 
+ * + * string secret_uri = 1; + * + * @return The bytes for secretUri. + */ + public com.google.protobuf.ByteString getSecretUriBytes() { + java.lang.Object ref = secretUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + secretUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+           * Secret URI, in the form
+           * "projects/$PROJECT_ID/secrets/$SECRET_NAME/versions/$VERSION".
+           * Version can be fixed (e.g. "2") or "latest"
+           * 
+ * + * string secret_uri = 1; + * + * @param value The secretUri to set. + * @return This builder for chaining. + */ + public Builder setSecretUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + secretUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+           * Secret URI, in the form
+           * "projects/$PROJECT_ID/secrets/$SECRET_NAME/versions/$VERSION".
+           * Version can be fixed (e.g. "2") or "latest"
+           * 
+ * + * string secret_uri = 1; + * + * @return This builder for chaining. + */ + public Builder clearSecretUri() { + secretUri_ = getDefaultInstance().getSecretUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+           * Secret URI, in the form
+           * "projects/$PROJECT_ID/secrets/$SECRET_NAME/versions/$VERSION".
+           * Version can be fixed (e.g. "2") or "latest"
+           * 
+ * + * string secret_uri = 1; + * + * @param value The bytes for secretUri to set. + * @return This builder for chaining. + */ + public Builder setSecretUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + secretUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig) + private static final com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig(); + } + + public static com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GCPSecretManagerCertificateConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int certificateConfigCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object certificateConfig_; + + public enum CertificateConfigCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + GCP_SECRET_MANAGER_CERTIFICATE_CONFIG(2), + CERTIFICATECONFIG_NOT_SET(0); + private final int value; + + private CertificateConfigCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static CertificateConfigCase valueOf(int value) { + return forNumber(value); + } + + public static CertificateConfigCase forNumber(int value) { + switch (value) { + case 2: + return GCP_SECRET_MANAGER_CERTIFICATE_CONFIG; + case 0: + return CERTIFICATECONFIG_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public CertificateConfigCase getCertificateConfigCase() { + return CertificateConfigCase.forNumber(certificateConfigCase_); + } + + public static final int FQDNS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList fqdns_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+       * List of fully qualified domain names (FQDN).
+       * Specifying port is supported.
+       * Wilcards are NOT supported.
+       * Examples:
+       * - my.customdomain.com
+       * - 10.0.1.2:5000
+       * 
+ * + * repeated string fqdns = 1; + * + * @return A list containing the fqdns. + */ + public com.google.protobuf.ProtocolStringList getFqdnsList() { + return fqdns_; + } + /** + * + * + *
+       * List of fully qualified domain names (FQDN).
+       * Specifying port is supported.
+       * Wilcards are NOT supported.
+       * Examples:
+       * - my.customdomain.com
+       * - 10.0.1.2:5000
+       * 
+ * + * repeated string fqdns = 1; + * + * @return The count of fqdns. + */ + public int getFqdnsCount() { + return fqdns_.size(); + } + /** + * + * + *
+       * List of fully qualified domain names (FQDN).
+       * Specifying port is supported.
+       * Wilcards are NOT supported.
+       * Examples:
+       * - my.customdomain.com
+       * - 10.0.1.2:5000
+       * 
+ * + * repeated string fqdns = 1; + * + * @param index The index of the element to return. + * @return The fqdns at the given index. + */ + public java.lang.String getFqdns(int index) { + return fqdns_.get(index); + } + /** + * + * + *
+       * List of fully qualified domain names (FQDN).
+       * Specifying port is supported.
+       * Wilcards are NOT supported.
+       * Examples:
+       * - my.customdomain.com
+       * - 10.0.1.2:5000
+       * 
+ * + * repeated string fqdns = 1; + * + * @param index The index of the value to return. + * @return The bytes of the fqdns at the given index. + */ + public com.google.protobuf.ByteString getFqdnsBytes(int index) { + return fqdns_.getByteString(index); + } + + public static final int GCP_SECRET_MANAGER_CERTIFICATE_CONFIG_FIELD_NUMBER = 2; + /** + * + * + *
+       * Google Secret Manager (GCP) certificate configuration.
+       * 
+ * + * + * .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig gcp_secret_manager_certificate_config = 2; + * + * + * @return Whether the gcpSecretManagerCertificateConfig field is set. + */ + @java.lang.Override + public boolean hasGcpSecretManagerCertificateConfig() { + return certificateConfigCase_ == 2; + } + /** + * + * + *
+       * Google Secret Manager (GCP) certificate configuration.
+       * 
+ * + * + * .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig gcp_secret_manager_certificate_config = 2; + * + * + * @return The gcpSecretManagerCertificateConfig. + */ + @java.lang.Override + public com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig + getGcpSecretManagerCertificateConfig() { + if (certificateConfigCase_ == 2) { + return (com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig) + certificateConfig_; + } + return com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig + .getDefaultInstance(); + } + /** + * + * + *
+       * Google Secret Manager (GCP) certificate configuration.
+       * 
+ * + * + * .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig gcp_secret_manager_certificate_config = 2; + * + */ + @java.lang.Override + public com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfigOrBuilder + getGcpSecretManagerCertificateConfigOrBuilder() { + if (certificateConfigCase_ == 2) { + return (com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig) + certificateConfig_; + } + return com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig + .getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < fqdns_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fqdns_.getRaw(i)); + } + if (certificateConfigCase_ == 2) { + output.writeMessage( + 2, + (com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig) + certificateConfig_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < fqdns_.size(); i++) { + dataSize += computeStringSizeNoTag(fqdns_.getRaw(i)); + } + size += dataSize; + size += 1 * getFqdnsList().size(); + } + if (certificateConfigCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig) + certificateConfig_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig)) { + return super.equals(obj); + } + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig + other = + (com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig) + obj; + + if (!getFqdnsList().equals(other.getFqdnsList())) return false; + if (!getCertificateConfigCase().equals(other.getCertificateConfigCase())) return false; + switch (certificateConfigCase_) { + case 2: + if (!getGcpSecretManagerCertificateConfig() + .equals(other.getGcpSecretManagerCertificateConfig())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getFqdnsCount() > 0) { + hash = (37 * hash) + FQDNS_FIELD_NUMBER; + hash = (53 * hash) + getFqdnsList().hashCode(); + } + switch (certificateConfigCase_) { + case 2: + hash = (37 * hash) + GCP_SECRET_MANAGER_CERTIFICATE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getGcpSecretManagerCertificateConfig().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+       * CertificateAuthorityDomainConfig configures one or more fully qualified
+       * domain names (FQDN) to a specific certificate.
+       * 
+ * + * Protobuf type {@code + * google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig) + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ContainerdConfig_PrivateRegistryAccessConfig_CertificateAuthorityDomainConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ContainerdConfig_PrivateRegistryAccessConfig_CertificateAuthorityDomainConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.class, + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.Builder.class); + } + + // Construct using + // com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + fqdns_ = com.google.protobuf.LazyStringArrayList.emptyList(); + if (gcpSecretManagerCertificateConfigBuilder_ != null) { + gcpSecretManagerCertificateConfigBuilder_.clear(); + } + certificateConfigCase_ = 0; + certificateConfig_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ContainerdConfig_PrivateRegistryAccessConfig_CertificateAuthorityDomainConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig + getDefaultInstanceForType() { + return com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig + build() { + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig + buildPartial() { + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig + result = + new com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + fqdns_.makeImmutable(); + result.fqdns_ = fqdns_; + } + } + + private void buildPartialOneofs( + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig + result) { + result.certificateConfigCase_ = certificateConfigCase_; + result.certificateConfig_ = this.certificateConfig_; + if (certificateConfigCase_ == 2 && gcpSecretManagerCertificateConfigBuilder_ != null) { + result.certificateConfig_ = gcpSecretManagerCertificateConfigBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig) { + return mergeFrom( + (com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig + other) { + if (other + == com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.getDefaultInstance()) return this; + if (!other.fqdns_.isEmpty()) { + if (fqdns_.isEmpty()) { + fqdns_ = other.fqdns_; + bitField0_ |= 0x00000001; + } else { + ensureFqdnsIsMutable(); + fqdns_.addAll(other.fqdns_); + } + onChanged(); + } + switch (other.getCertificateConfigCase()) { + case GCP_SECRET_MANAGER_CERTIFICATE_CONFIG: + { + mergeGcpSecretManagerCertificateConfig( + other.getGcpSecretManagerCertificateConfig()); + break; + } + case CERTIFICATECONFIG_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureFqdnsIsMutable(); + fqdns_.add(s); + break; + } // case 10 + case 18: + { + input.readMessage( + getGcpSecretManagerCertificateConfigFieldBuilder().getBuilder(), + extensionRegistry); + certificateConfigCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int certificateConfigCase_ = 0; + private java.lang.Object certificateConfig_; + + public CertificateConfigCase getCertificateConfigCase() { + return CertificateConfigCase.forNumber(certificateConfigCase_); + } + + public Builder clearCertificateConfig() { + certificateConfigCase_ = 0; + certificateConfig_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList fqdns_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureFqdnsIsMutable() { + if (!fqdns_.isModifiable()) { + fqdns_ = new com.google.protobuf.LazyStringArrayList(fqdns_); + } + bitField0_ |= 0x00000001; + } + /** + * + * + *
+         * List of fully qualified domain names (FQDN).
+         * Specifying port is supported.
+         * Wilcards are NOT supported.
+         * Examples:
+         * - my.customdomain.com
+         * - 10.0.1.2:5000
+         * 
+ * + * repeated string fqdns = 1; + * + * @return A list containing the fqdns. + */ + public com.google.protobuf.ProtocolStringList getFqdnsList() { + fqdns_.makeImmutable(); + return fqdns_; + } + /** + * + * + *
+         * List of fully qualified domain names (FQDN).
+         * Specifying port is supported.
+         * Wilcards are NOT supported.
+         * Examples:
+         * - my.customdomain.com
+         * - 10.0.1.2:5000
+         * 
+ * + * repeated string fqdns = 1; + * + * @return The count of fqdns. + */ + public int getFqdnsCount() { + return fqdns_.size(); + } + /** + * + * + *
+         * List of fully qualified domain names (FQDN).
+         * Specifying port is supported.
+         * Wilcards are NOT supported.
+         * Examples:
+         * - my.customdomain.com
+         * - 10.0.1.2:5000
+         * 
+ * + * repeated string fqdns = 1; + * + * @param index The index of the element to return. + * @return The fqdns at the given index. + */ + public java.lang.String getFqdns(int index) { + return fqdns_.get(index); + } + /** + * + * + *
+         * List of fully qualified domain names (FQDN).
+         * Specifying port is supported.
+         * Wilcards are NOT supported.
+         * Examples:
+         * - my.customdomain.com
+         * - 10.0.1.2:5000
+         * 
+ * + * repeated string fqdns = 1; + * + * @param index The index of the value to return. + * @return The bytes of the fqdns at the given index. + */ + public com.google.protobuf.ByteString getFqdnsBytes(int index) { + return fqdns_.getByteString(index); + } + /** + * + * + *
+         * List of fully qualified domain names (FQDN).
+         * Specifying port is supported.
+         * Wilcards are NOT supported.
+         * Examples:
+         * - my.customdomain.com
+         * - 10.0.1.2:5000
+         * 
+ * + * repeated string fqdns = 1; + * + * @param index The index to set the value at. + * @param value The fqdns to set. + * @return This builder for chaining. + */ + public Builder setFqdns(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFqdnsIsMutable(); + fqdns_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * List of fully qualified domain names (FQDN).
+         * Specifying port is supported.
+         * Wilcards are NOT supported.
+         * Examples:
+         * - my.customdomain.com
+         * - 10.0.1.2:5000
+         * 
+ * + * repeated string fqdns = 1; + * + * @param value The fqdns to add. + * @return This builder for chaining. + */ + public Builder addFqdns(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFqdnsIsMutable(); + fqdns_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * List of fully qualified domain names (FQDN).
+         * Specifying port is supported.
+         * Wilcards are NOT supported.
+         * Examples:
+         * - my.customdomain.com
+         * - 10.0.1.2:5000
+         * 
+ * + * repeated string fqdns = 1; + * + * @param values The fqdns to add. + * @return This builder for chaining. + */ + public Builder addAllFqdns(java.lang.Iterable values) { + ensureFqdnsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fqdns_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * List of fully qualified domain names (FQDN).
+         * Specifying port is supported.
+         * Wilcards are NOT supported.
+         * Examples:
+         * - my.customdomain.com
+         * - 10.0.1.2:5000
+         * 
+ * + * repeated string fqdns = 1; + * + * @return This builder for chaining. + */ + public Builder clearFqdns() { + fqdns_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + /** + * + * + *
+         * List of fully qualified domain names (FQDN).
+         * Specifying port is supported.
+         * Wilcards are NOT supported.
+         * Examples:
+         * - my.customdomain.com
+         * - 10.0.1.2:5000
+         * 
+ * + * repeated string fqdns = 1; + * + * @param value The bytes of the fqdns to add. + * @return This builder for chaining. + */ + public Builder addFqdnsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureFqdnsIsMutable(); + fqdns_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig, + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig.Builder, + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfigOrBuilder> + gcpSecretManagerCertificateConfigBuilder_; + /** + * + * + *
+         * Google Secret Manager (GCP) certificate configuration.
+         * 
+ * + * + * .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig gcp_secret_manager_certificate_config = 2; + * + * + * @return Whether the gcpSecretManagerCertificateConfig field is set. + */ + @java.lang.Override + public boolean hasGcpSecretManagerCertificateConfig() { + return certificateConfigCase_ == 2; + } + /** + * + * + *
+         * Google Secret Manager (GCP) certificate configuration.
+         * 
+ * + * + * .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig gcp_secret_manager_certificate_config = 2; + * + * + * @return The gcpSecretManagerCertificateConfig. + */ + @java.lang.Override + public com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig + getGcpSecretManagerCertificateConfig() { + if (gcpSecretManagerCertificateConfigBuilder_ == null) { + if (certificateConfigCase_ == 2) { + return (com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig) + certificateConfig_; + } + return com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig + .getDefaultInstance(); + } else { + if (certificateConfigCase_ == 2) { + return gcpSecretManagerCertificateConfigBuilder_.getMessage(); + } + return com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig + .getDefaultInstance(); + } + } + /** + * + * + *
+         * Google Secret Manager (GCP) certificate configuration.
+         * 
+ * + * + * .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig gcp_secret_manager_certificate_config = 2; + * + */ + public Builder setGcpSecretManagerCertificateConfig( + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig + value) { + if (gcpSecretManagerCertificateConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + certificateConfig_ = value; + onChanged(); + } else { + gcpSecretManagerCertificateConfigBuilder_.setMessage(value); + } + certificateConfigCase_ = 2; + return this; + } + /** + * + * + *
+         * Google Secret Manager (GCP) certificate configuration.
+         * 
+ * + * + * .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig gcp_secret_manager_certificate_config = 2; + * + */ + public Builder setGcpSecretManagerCertificateConfig( + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig.Builder + builderForValue) { + if (gcpSecretManagerCertificateConfigBuilder_ == null) { + certificateConfig_ = builderForValue.build(); + onChanged(); + } else { + gcpSecretManagerCertificateConfigBuilder_.setMessage(builderForValue.build()); + } + certificateConfigCase_ = 2; + return this; + } + /** + * + * + *
+         * Google Secret Manager (GCP) certificate configuration.
+         * 
+ * + * + * .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig gcp_secret_manager_certificate_config = 2; + * + */ + public Builder mergeGcpSecretManagerCertificateConfig( + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig + value) { + if (gcpSecretManagerCertificateConfigBuilder_ == null) { + if (certificateConfigCase_ == 2 + && certificateConfig_ + != com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig + .getDefaultInstance()) { + certificateConfig_ = + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig + .newBuilder( + (com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig + .GCPSecretManagerCertificateConfig) + certificateConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + certificateConfig_ = value; + } + onChanged(); + } else { + if (certificateConfigCase_ == 2) { + gcpSecretManagerCertificateConfigBuilder_.mergeFrom(value); + } else { + gcpSecretManagerCertificateConfigBuilder_.setMessage(value); + } + } + certificateConfigCase_ = 2; + return this; + } + /** + * + * + *
+         * Google Secret Manager (GCP) certificate configuration.
+         * 
+ * + * + * .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig gcp_secret_manager_certificate_config = 2; + * + */ + public Builder clearGcpSecretManagerCertificateConfig() { + if (gcpSecretManagerCertificateConfigBuilder_ == null) { + if (certificateConfigCase_ == 2) { + certificateConfigCase_ = 0; + certificateConfig_ = null; + onChanged(); + } + } else { + if (certificateConfigCase_ == 2) { + certificateConfigCase_ = 0; + certificateConfig_ = null; + } + gcpSecretManagerCertificateConfigBuilder_.clear(); + } + return this; + } + /** + * + * + *
+         * Google Secret Manager (GCP) certificate configuration.
+         * 
+ * + * + * .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig gcp_secret_manager_certificate_config = 2; + * + */ + public com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig.Builder + getGcpSecretManagerCertificateConfigBuilder() { + return getGcpSecretManagerCertificateConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+         * Google Secret Manager (GCP) certificate configuration.
+         * 
+ * + * + * .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig gcp_secret_manager_certificate_config = 2; + * + */ + @java.lang.Override + public com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfigOrBuilder + getGcpSecretManagerCertificateConfigOrBuilder() { + if ((certificateConfigCase_ == 2) + && (gcpSecretManagerCertificateConfigBuilder_ != null)) { + return gcpSecretManagerCertificateConfigBuilder_.getMessageOrBuilder(); + } else { + if (certificateConfigCase_ == 2) { + return (com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig) + certificateConfig_; + } + return com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig + .getDefaultInstance(); + } + } + /** + * + * + *
+         * Google Secret Manager (GCP) certificate configuration.
+         * 
+ * + * + * .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig gcp_secret_manager_certificate_config = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig, + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig.Builder, + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfigOrBuilder> + getGcpSecretManagerCertificateConfigFieldBuilder() { + if (gcpSecretManagerCertificateConfigBuilder_ == null) { + if (!(certificateConfigCase_ == 2)) { + certificateConfig_ = + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig + .getDefaultInstance(); + } + gcpSecretManagerCertificateConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig, + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig.Builder, + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig + .GCPSecretManagerCertificateConfigOrBuilder>( + (com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig) + certificateConfig_, + getParentForChildren(), + isClean()); + certificateConfig_ = null; + } + certificateConfigCase_ = 2; + onChanged(); + return gcpSecretManagerCertificateConfigBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig) + private static final com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig(); + } + + public static com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertificateAuthorityDomainConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + * + * + *
+     * Private registry access is enabled.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + public static final int CERTIFICATE_AUTHORITY_DOMAIN_CONFIG_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List< + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig> + certificateAuthorityDomainConfig_; + /** + * + * + *
+     * Private registry access configuration.
+     * 
+ * + * + * repeated .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig certificate_authority_domain_config = 2; + * + */ + @java.lang.Override + public java.util.List< + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig> + getCertificateAuthorityDomainConfigList() { + return certificateAuthorityDomainConfig_; + } + /** + * + * + *
+     * Private registry access configuration.
+     * 
+ * + * + * repeated .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig certificate_authority_domain_config = 2; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfigOrBuilder> + getCertificateAuthorityDomainConfigOrBuilderList() { + return certificateAuthorityDomainConfig_; + } + /** + * + * + *
+     * Private registry access configuration.
+     * 
+ * + * + * repeated .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig certificate_authority_domain_config = 2; + * + */ + @java.lang.Override + public int getCertificateAuthorityDomainConfigCount() { + return certificateAuthorityDomainConfig_.size(); + } + /** + * + * + *
+     * Private registry access configuration.
+     * 
+ * + * + * repeated .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig certificate_authority_domain_config = 2; + * + */ + @java.lang.Override + public com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig + getCertificateAuthorityDomainConfig(int index) { + return certificateAuthorityDomainConfig_.get(index); + } + /** + * + * + *
+     * Private registry access configuration.
+     * 
+ * + * + * repeated .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig certificate_authority_domain_config = 2; + * + */ + @java.lang.Override + public com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfigOrBuilder + getCertificateAuthorityDomainConfigOrBuilder(int index) { + return certificateAuthorityDomainConfig_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + for (int i = 0; i < certificateAuthorityDomainConfig_.size(); i++) { + output.writeMessage(2, certificateAuthorityDomainConfig_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + } + for (int i = 0; i < certificateAuthorityDomainConfig_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, certificateAuthorityDomainConfig_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig)) { + return super.equals(obj); + } + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig other = + (com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig) obj; + + if (getEnabled() != other.getEnabled()) return false; + if (!getCertificateAuthorityDomainConfigList() + .equals(other.getCertificateAuthorityDomainConfigList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + if (getCertificateAuthorityDomainConfigCount() > 0) { + hash = (37 * hash) + CERTIFICATE_AUTHORITY_DOMAIN_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getCertificateAuthorityDomainConfigList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * PrivateRegistryAccessConfig contains access configuration for
+     * private container registries.
+     * 
+ * + * Protobuf type {@code google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig) + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ContainerdConfig_PrivateRegistryAccessConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ContainerdConfig_PrivateRegistryAccessConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.class, + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.Builder.class); + } + + // Construct using + // com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + if (certificateAuthorityDomainConfigBuilder_ == null) { + certificateAuthorityDomainConfig_ = java.util.Collections.emptyList(); + } else { + certificateAuthorityDomainConfig_ = null; + certificateAuthorityDomainConfigBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ContainerdConfig_PrivateRegistryAccessConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + getDefaultInstanceForType() { + return com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig build() { + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig buildPartial() { + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig result = + new com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig result) { + if (certificateAuthorityDomainConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + certificateAuthorityDomainConfig_ = + java.util.Collections.unmodifiableList(certificateAuthorityDomainConfig_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.certificateAuthorityDomainConfig_ = certificateAuthorityDomainConfig_; + } else { + result.certificateAuthorityDomainConfig_ = + certificateAuthorityDomainConfigBuilder_.build(); + } + } + + private void buildPartial0( + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig) { + return mergeFrom( + (com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig other) { + if (other + == com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + if (certificateAuthorityDomainConfigBuilder_ == null) { + if (!other.certificateAuthorityDomainConfig_.isEmpty()) { + if (certificateAuthorityDomainConfig_.isEmpty()) { + certificateAuthorityDomainConfig_ = other.certificateAuthorityDomainConfig_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureCertificateAuthorityDomainConfigIsMutable(); + certificateAuthorityDomainConfig_.addAll(other.certificateAuthorityDomainConfig_); + } + onChanged(); + } + } else { + if (!other.certificateAuthorityDomainConfig_.isEmpty()) { + if (certificateAuthorityDomainConfigBuilder_.isEmpty()) { + certificateAuthorityDomainConfigBuilder_.dispose(); + certificateAuthorityDomainConfigBuilder_ = null; + certificateAuthorityDomainConfig_ = other.certificateAuthorityDomainConfig_; + bitField0_ = (bitField0_ & ~0x00000002); + certificateAuthorityDomainConfigBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCertificateAuthorityDomainConfigFieldBuilder() + : null; + } else { + certificateAuthorityDomainConfigBuilder_.addAllMessages( + other.certificateAuthorityDomainConfig_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig + m = + input.readMessage( + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.parser(), + extensionRegistry); + if (certificateAuthorityDomainConfigBuilder_ == null) { + ensureCertificateAuthorityDomainConfigIsMutable(); + certificateAuthorityDomainConfig_.add(m); + } else { + certificateAuthorityDomainConfigBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean enabled_; + /** + * + * + *
+       * Private registry access is enabled.
+       * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+       * Private registry access is enabled.
+       * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Private registry access is enabled.
+       * 
+ * + * bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = false; + onChanged(); + return this; + } + + private java.util.List< + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig> + certificateAuthorityDomainConfig_ = java.util.Collections.emptyList(); + + private void ensureCertificateAuthorityDomainConfigIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + certificateAuthorityDomainConfig_ = + new java.util.ArrayList< + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig>(certificateAuthorityDomainConfig_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig, + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.Builder, + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfigOrBuilder> + certificateAuthorityDomainConfigBuilder_; + + /** + * + * + *
+       * Private registry access configuration.
+       * 
+ * + * + * repeated .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig certificate_authority_domain_config = 2; + * + */ + public java.util.List< + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig> + getCertificateAuthorityDomainConfigList() { + if (certificateAuthorityDomainConfigBuilder_ == null) { + return java.util.Collections.unmodifiableList(certificateAuthorityDomainConfig_); + } else { + return certificateAuthorityDomainConfigBuilder_.getMessageList(); + } + } + /** + * + * + *
+       * Private registry access configuration.
+       * 
+ * + * + * repeated .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig certificate_authority_domain_config = 2; + * + */ + public int getCertificateAuthorityDomainConfigCount() { + if (certificateAuthorityDomainConfigBuilder_ == null) { + return certificateAuthorityDomainConfig_.size(); + } else { + return certificateAuthorityDomainConfigBuilder_.getCount(); + } + } + /** + * + * + *
+       * Private registry access configuration.
+       * 
+ * + * + * repeated .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig certificate_authority_domain_config = 2; + * + */ + public com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig + getCertificateAuthorityDomainConfig(int index) { + if (certificateAuthorityDomainConfigBuilder_ == null) { + return certificateAuthorityDomainConfig_.get(index); + } else { + return certificateAuthorityDomainConfigBuilder_.getMessage(index); + } + } + /** + * + * + *
+       * Private registry access configuration.
+       * 
+ * + * + * repeated .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig certificate_authority_domain_config = 2; + * + */ + public Builder setCertificateAuthorityDomainConfig( + int index, + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig + value) { + if (certificateAuthorityDomainConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCertificateAuthorityDomainConfigIsMutable(); + certificateAuthorityDomainConfig_.set(index, value); + onChanged(); + } else { + certificateAuthorityDomainConfigBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Private registry access configuration.
+       * 
+ * + * + * repeated .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig certificate_authority_domain_config = 2; + * + */ + public Builder setCertificateAuthorityDomainConfig( + int index, + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.Builder + builderForValue) { + if (certificateAuthorityDomainConfigBuilder_ == null) { + ensureCertificateAuthorityDomainConfigIsMutable(); + certificateAuthorityDomainConfig_.set(index, builderForValue.build()); + onChanged(); + } else { + certificateAuthorityDomainConfigBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Private registry access configuration.
+       * 
+ * + * + * repeated .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig certificate_authority_domain_config = 2; + * + */ + public Builder addCertificateAuthorityDomainConfig( + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig + value) { + if (certificateAuthorityDomainConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCertificateAuthorityDomainConfigIsMutable(); + certificateAuthorityDomainConfig_.add(value); + onChanged(); + } else { + certificateAuthorityDomainConfigBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+       * Private registry access configuration.
+       * 
+ * + * + * repeated .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig certificate_authority_domain_config = 2; + * + */ + public Builder addCertificateAuthorityDomainConfig( + int index, + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig + value) { + if (certificateAuthorityDomainConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCertificateAuthorityDomainConfigIsMutable(); + certificateAuthorityDomainConfig_.add(index, value); + onChanged(); + } else { + certificateAuthorityDomainConfigBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Private registry access configuration.
+       * 
+ * + * + * repeated .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig certificate_authority_domain_config = 2; + * + */ + public Builder addCertificateAuthorityDomainConfig( + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.Builder + builderForValue) { + if (certificateAuthorityDomainConfigBuilder_ == null) { + ensureCertificateAuthorityDomainConfigIsMutable(); + certificateAuthorityDomainConfig_.add(builderForValue.build()); + onChanged(); + } else { + certificateAuthorityDomainConfigBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Private registry access configuration.
+       * 
+ * + * + * repeated .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig certificate_authority_domain_config = 2; + * + */ + public Builder addCertificateAuthorityDomainConfig( + int index, + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.Builder + builderForValue) { + if (certificateAuthorityDomainConfigBuilder_ == null) { + ensureCertificateAuthorityDomainConfigIsMutable(); + certificateAuthorityDomainConfig_.add(index, builderForValue.build()); + onChanged(); + } else { + certificateAuthorityDomainConfigBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Private registry access configuration.
+       * 
+ * + * + * repeated .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig certificate_authority_domain_config = 2; + * + */ + public Builder addAllCertificateAuthorityDomainConfig( + java.lang.Iterable< + ? extends + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig> + values) { + if (certificateAuthorityDomainConfigBuilder_ == null) { + ensureCertificateAuthorityDomainConfigIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, certificateAuthorityDomainConfig_); + onChanged(); + } else { + certificateAuthorityDomainConfigBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+       * Private registry access configuration.
+       * 
+ * + * + * repeated .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig certificate_authority_domain_config = 2; + * + */ + public Builder clearCertificateAuthorityDomainConfig() { + if (certificateAuthorityDomainConfigBuilder_ == null) { + certificateAuthorityDomainConfig_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + certificateAuthorityDomainConfigBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Private registry access configuration.
+       * 
+ * + * + * repeated .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig certificate_authority_domain_config = 2; + * + */ + public Builder removeCertificateAuthorityDomainConfig(int index) { + if (certificateAuthorityDomainConfigBuilder_ == null) { + ensureCertificateAuthorityDomainConfigIsMutable(); + certificateAuthorityDomainConfig_.remove(index); + onChanged(); + } else { + certificateAuthorityDomainConfigBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+       * Private registry access configuration.
+       * 
+ * + * + * repeated .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig certificate_authority_domain_config = 2; + * + */ + public com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.Builder + getCertificateAuthorityDomainConfigBuilder(int index) { + return getCertificateAuthorityDomainConfigFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * Private registry access configuration.
+       * 
+ * + * + * repeated .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig certificate_authority_domain_config = 2; + * + */ + public com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfigOrBuilder + getCertificateAuthorityDomainConfigOrBuilder(int index) { + if (certificateAuthorityDomainConfigBuilder_ == null) { + return certificateAuthorityDomainConfig_.get(index); + } else { + return certificateAuthorityDomainConfigBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+       * Private registry access configuration.
+       * 
+ * + * + * repeated .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig certificate_authority_domain_config = 2; + * + */ + public java.util.List< + ? extends + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfigOrBuilder> + getCertificateAuthorityDomainConfigOrBuilderList() { + if (certificateAuthorityDomainConfigBuilder_ != null) { + return certificateAuthorityDomainConfigBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(certificateAuthorityDomainConfig_); + } + } + /** + * + * + *
+       * Private registry access configuration.
+       * 
+ * + * + * repeated .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig certificate_authority_domain_config = 2; + * + */ + public com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.Builder + addCertificateAuthorityDomainConfigBuilder() { + return getCertificateAuthorityDomainConfigFieldBuilder() + .addBuilder( + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.getDefaultInstance()); + } + /** + * + * + *
+       * Private registry access configuration.
+       * 
+ * + * + * repeated .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig certificate_authority_domain_config = 2; + * + */ + public com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.Builder + addCertificateAuthorityDomainConfigBuilder(int index) { + return getCertificateAuthorityDomainConfigFieldBuilder() + .addBuilder( + index, + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.getDefaultInstance()); + } + /** + * + * + *
+       * Private registry access configuration.
+       * 
+ * + * + * repeated .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig certificate_authority_domain_config = 2; + * + */ + public java.util.List< + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.Builder> + getCertificateAuthorityDomainConfigBuilderList() { + return getCertificateAuthorityDomainConfigFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig, + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.Builder, + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfigOrBuilder> + getCertificateAuthorityDomainConfigFieldBuilder() { + if (certificateAuthorityDomainConfigBuilder_ == null) { + certificateAuthorityDomainConfigBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig, + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfig.Builder, + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .CertificateAuthorityDomainConfigOrBuilder>( + certificateAuthorityDomainConfig_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + certificateAuthorityDomainConfig_ = null; + } + return certificateAuthorityDomainConfigBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig) + private static final com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig(); + } + + public static com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrivateRegistryAccessConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int PRIVATE_REGISTRY_ACCESS_CONFIG_FIELD_NUMBER = 1; + private com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + privateRegistryAccessConfig_; + /** + * + * + *
+   * PrivateRegistryAccessConfig is used to configure access configuration
+   * for private container registries.
+   * 
+ * + * + * .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig private_registry_access_config = 1; + * + * + * @return Whether the privateRegistryAccessConfig field is set. + */ + @java.lang.Override + public boolean hasPrivateRegistryAccessConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * PrivateRegistryAccessConfig is used to configure access configuration
+   * for private container registries.
+   * 
+ * + * + * .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig private_registry_access_config = 1; + * + * + * @return The privateRegistryAccessConfig. + */ + @java.lang.Override + public com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + getPrivateRegistryAccessConfig() { + return privateRegistryAccessConfig_ == null + ? com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.getDefaultInstance() + : privateRegistryAccessConfig_; + } + /** + * + * + *
+   * PrivateRegistryAccessConfig is used to configure access configuration
+   * for private container registries.
+   * 
+ * + * + * .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig private_registry_access_config = 1; + * + */ + @java.lang.Override + public com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfigOrBuilder + getPrivateRegistryAccessConfigOrBuilder() { + return privateRegistryAccessConfig_ == null + ? com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.getDefaultInstance() + : privateRegistryAccessConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getPrivateRegistryAccessConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, getPrivateRegistryAccessConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.ContainerdConfig)) { + return super.equals(obj); + } + com.google.container.v1.ContainerdConfig other = (com.google.container.v1.ContainerdConfig) obj; + + if (hasPrivateRegistryAccessConfig() != other.hasPrivateRegistryAccessConfig()) return false; + if (hasPrivateRegistryAccessConfig()) { + if (!getPrivateRegistryAccessConfig().equals(other.getPrivateRegistryAccessConfig())) + return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPrivateRegistryAccessConfig()) { + hash = (37 * hash) + PRIVATE_REGISTRY_ACCESS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getPrivateRegistryAccessConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.ContainerdConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ContainerdConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.ContainerdConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ContainerdConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.ContainerdConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ContainerdConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.ContainerdConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.ContainerdConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.ContainerdConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.ContainerdConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.ContainerdConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.ContainerdConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1.ContainerdConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * ContainerdConfig contains configuration to customize containerd.
+   * 
+ * + * Protobuf type {@code google.container.v1.ContainerdConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.ContainerdConfig) + com.google.container.v1.ContainerdConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ContainerdConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ContainerdConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ContainerdConfig.class, + com.google.container.v1.ContainerdConfig.Builder.class); + } + + // Construct using com.google.container.v1.ContainerdConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPrivateRegistryAccessConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + privateRegistryAccessConfig_ = null; + if (privateRegistryAccessConfigBuilder_ != null) { + privateRegistryAccessConfigBuilder_.dispose(); + privateRegistryAccessConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ContainerdConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.ContainerdConfig getDefaultInstanceForType() { + return com.google.container.v1.ContainerdConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.ContainerdConfig build() { + com.google.container.v1.ContainerdConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.ContainerdConfig buildPartial() { + com.google.container.v1.ContainerdConfig result = + new com.google.container.v1.ContainerdConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.ContainerdConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.privateRegistryAccessConfig_ = + privateRegistryAccessConfigBuilder_ == null + ? privateRegistryAccessConfig_ + : privateRegistryAccessConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.ContainerdConfig) { + return mergeFrom((com.google.container.v1.ContainerdConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.ContainerdConfig other) { + if (other == com.google.container.v1.ContainerdConfig.getDefaultInstance()) return this; + if (other.hasPrivateRegistryAccessConfig()) { + mergePrivateRegistryAccessConfig(other.getPrivateRegistryAccessConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getPrivateRegistryAccessConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + privateRegistryAccessConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig, + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.Builder, + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfigOrBuilder> + privateRegistryAccessConfigBuilder_; + /** + * + * + *
+     * PrivateRegistryAccessConfig is used to configure access configuration
+     * for private container registries.
+     * 
+ * + * + * .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig private_registry_access_config = 1; + * + * + * @return Whether the privateRegistryAccessConfig field is set. + */ + public boolean hasPrivateRegistryAccessConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * PrivateRegistryAccessConfig is used to configure access configuration
+     * for private container registries.
+     * 
+ * + * + * .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig private_registry_access_config = 1; + * + * + * @return The privateRegistryAccessConfig. + */ + public com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + getPrivateRegistryAccessConfig() { + if (privateRegistryAccessConfigBuilder_ == null) { + return privateRegistryAccessConfig_ == null + ? com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .getDefaultInstance() + : privateRegistryAccessConfig_; + } else { + return privateRegistryAccessConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * PrivateRegistryAccessConfig is used to configure access configuration
+     * for private container registries.
+     * 
+ * + * + * .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig private_registry_access_config = 1; + * + */ + public Builder setPrivateRegistryAccessConfig( + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig value) { + if (privateRegistryAccessConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + privateRegistryAccessConfig_ = value; + } else { + privateRegistryAccessConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * PrivateRegistryAccessConfig is used to configure access configuration
+     * for private container registries.
+     * 
+ * + * + * .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig private_registry_access_config = 1; + * + */ + public Builder setPrivateRegistryAccessConfig( + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.Builder + builderForValue) { + if (privateRegistryAccessConfigBuilder_ == null) { + privateRegistryAccessConfig_ = builderForValue.build(); + } else { + privateRegistryAccessConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * PrivateRegistryAccessConfig is used to configure access configuration
+     * for private container registries.
+     * 
+ * + * + * .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig private_registry_access_config = 1; + * + */ + public Builder mergePrivateRegistryAccessConfig( + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig value) { + if (privateRegistryAccessConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && privateRegistryAccessConfig_ != null + && privateRegistryAccessConfig_ + != com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .getDefaultInstance()) { + getPrivateRegistryAccessConfigBuilder().mergeFrom(value); + } else { + privateRegistryAccessConfig_ = value; + } + } else { + privateRegistryAccessConfigBuilder_.mergeFrom(value); + } + if (privateRegistryAccessConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * PrivateRegistryAccessConfig is used to configure access configuration
+     * for private container registries.
+     * 
+ * + * + * .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig private_registry_access_config = 1; + * + */ + public Builder clearPrivateRegistryAccessConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + privateRegistryAccessConfig_ = null; + if (privateRegistryAccessConfigBuilder_ != null) { + privateRegistryAccessConfigBuilder_.dispose(); + privateRegistryAccessConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * PrivateRegistryAccessConfig is used to configure access configuration
+     * for private container registries.
+     * 
+ * + * + * .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig private_registry_access_config = 1; + * + */ + public com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.Builder + getPrivateRegistryAccessConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPrivateRegistryAccessConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * PrivateRegistryAccessConfig is used to configure access configuration
+     * for private container registries.
+     * 
+ * + * + * .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig private_registry_access_config = 1; + * + */ + public com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfigOrBuilder + getPrivateRegistryAccessConfigOrBuilder() { + if (privateRegistryAccessConfigBuilder_ != null) { + return privateRegistryAccessConfigBuilder_.getMessageOrBuilder(); + } else { + return privateRegistryAccessConfig_ == null + ? com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + .getDefaultInstance() + : privateRegistryAccessConfig_; + } + } + /** + * + * + *
+     * PrivateRegistryAccessConfig is used to configure access configuration
+     * for private container registries.
+     * 
+ * + * + * .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig private_registry_access_config = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig, + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.Builder, + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfigOrBuilder> + getPrivateRegistryAccessConfigFieldBuilder() { + if (privateRegistryAccessConfigBuilder_ == null) { + privateRegistryAccessConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig, + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.Builder, + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfigOrBuilder>( + getPrivateRegistryAccessConfig(), getParentForChildren(), isClean()); + privateRegistryAccessConfig_ = null; + } + return privateRegistryAccessConfigBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.ContainerdConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.ContainerdConfig) + private static final com.google.container.v1.ContainerdConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.ContainerdConfig(); + } + + public static com.google.container.v1.ContainerdConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ContainerdConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.ContainerdConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ContainerdConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ContainerdConfigOrBuilder.java new file mode 100644 index 000000000000..4eda5918476a --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ContainerdConfigOrBuilder.java @@ -0,0 +1,72 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.container.v1; + +public interface ContainerdConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.ContainerdConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * PrivateRegistryAccessConfig is used to configure access configuration
+   * for private container registries.
+   * 
+ * + * + * .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig private_registry_access_config = 1; + * + * + * @return Whether the privateRegistryAccessConfig field is set. + */ + boolean hasPrivateRegistryAccessConfig(); + /** + * + * + *
+   * PrivateRegistryAccessConfig is used to configure access configuration
+   * for private container registries.
+   * 
+ * + * + * .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig private_registry_access_config = 1; + * + * + * @return The privateRegistryAccessConfig. + */ + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig + getPrivateRegistryAccessConfig(); + /** + * + * + *
+   * PrivateRegistryAccessConfig is used to configure access configuration
+   * for private container registries.
+   * 
+ * + * + * .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig private_registry_access_config = 1; + * + */ + com.google.container.v1.ContainerdConfig.PrivateRegistryAccessConfigOrBuilder + getPrivateRegistryAccessConfigOrBuilder(); +} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequest.java index e3fe3f6fc5e2..ed8b79ed1e95 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequest.java @@ -82,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2587 + * google/container/v1/cluster_service.proto;l=2691 * @return The projectId. */ @java.lang.Override @@ -110,7 +110,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2587 + * google/container/v1/cluster_service.proto;l=2691 * @return The bytes for projectId. */ @java.lang.Override @@ -144,7 +144,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2593 + * google/container/v1/cluster_service.proto;l=2697 * @return The zone. */ @java.lang.Override @@ -173,7 +173,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2593 + * google/container/v1/cluster_service.proto;l=2697 * @return The bytes for zone. */ @java.lang.Override @@ -740,7 +740,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2587 + * google/container/v1/cluster_service.proto;l=2691 * @return The projectId. */ @java.lang.Deprecated @@ -767,7 +767,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2587 + * google/container/v1/cluster_service.proto;l=2691 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -794,7 +794,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2587 + * google/container/v1/cluster_service.proto;l=2691 * @param value The projectId to set. * @return This builder for chaining. */ @@ -820,7 +820,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2587 + * google/container/v1/cluster_service.proto;l=2691 * @return This builder for chaining. */ @java.lang.Deprecated @@ -842,7 +842,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2587 + * google/container/v1/cluster_service.proto;l=2691 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -872,7 +872,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2593 + * google/container/v1/cluster_service.proto;l=2697 * @return The zone. */ @java.lang.Deprecated @@ -900,7 +900,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2593 + * google/container/v1/cluster_service.proto;l=2697 * @return The bytes for zone. */ @java.lang.Deprecated @@ -928,7 +928,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2593 + * google/container/v1/cluster_service.proto;l=2697 * @param value The zone to set. * @return This builder for chaining. */ @@ -955,7 +955,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2593 + * google/container/v1/cluster_service.proto;l=2697 * @return This builder for chaining. */ @java.lang.Deprecated @@ -978,7 +978,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2593 + * google/container/v1/cluster_service.proto;l=2697 * @param value The bytes for zone to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequestOrBuilder.java index 76d9aa666587..0b7812d5afef 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface CreateClusterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2587 + * google/container/v1/cluster_service.proto;l=2691 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface CreateClusterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2587 + * google/container/v1/cluster_service.proto;l=2691 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface CreateClusterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2593 + * google/container/v1/cluster_service.proto;l=2697 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface CreateClusterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2593 + * google/container/v1/cluster_service.proto;l=2697 * @return The bytes for zone. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequest.java index 4e9593574b50..5988dad46f9b 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3205 + * google/container/v1/cluster_service.proto;l=3319 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3205 + * google/container/v1/cluster_service.proto;l=3319 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3211 + * google/container/v1/cluster_service.proto;l=3325 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3211 + * google/container/v1/cluster_service.proto;l=3325 * @return The bytes for zone. */ @java.lang.Override @@ -206,7 +206,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3215 + * google/container/v1/cluster_service.proto;l=3329 * @return The clusterId. */ @java.lang.Override @@ -233,7 +233,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3215 + * google/container/v1/cluster_service.proto;l=3329 * @return The bytes for clusterId. */ @java.lang.Override @@ -823,7 +823,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3205 + * google/container/v1/cluster_service.proto;l=3319 * @return The projectId. */ @java.lang.Deprecated @@ -850,7 +850,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3205 + * google/container/v1/cluster_service.proto;l=3319 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -877,7 +877,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3205 + * google/container/v1/cluster_service.proto;l=3319 * @param value The projectId to set. * @return This builder for chaining. */ @@ -903,7 +903,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3205 + * google/container/v1/cluster_service.proto;l=3319 * @return This builder for chaining. */ @java.lang.Deprecated @@ -925,7 +925,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3205 + * google/container/v1/cluster_service.proto;l=3319 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -955,7 +955,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3211 + * google/container/v1/cluster_service.proto;l=3325 * @return The zone. */ @java.lang.Deprecated @@ -983,7 +983,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3211 + * google/container/v1/cluster_service.proto;l=3325 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1011,7 +1011,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3211 + * google/container/v1/cluster_service.proto;l=3325 * @param value The zone to set. * @return This builder for chaining. */ @@ -1038,7 +1038,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3211 + * google/container/v1/cluster_service.proto;l=3325 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1061,7 +1061,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3211 + * google/container/v1/cluster_service.proto;l=3325 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1089,7 +1089,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3215 + * google/container/v1/cluster_service.proto;l=3329 * @return The clusterId. */ @java.lang.Deprecated @@ -1115,7 +1115,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3215 + * google/container/v1/cluster_service.proto;l=3329 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1141,7 +1141,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3215 + * google/container/v1/cluster_service.proto;l=3329 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1166,7 +1166,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3215 + * google/container/v1/cluster_service.proto;l=3329 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1187,7 +1187,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3215 + * google/container/v1/cluster_service.proto;l=3329 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequestOrBuilder.java index 6803fc18449a..e235692e9db0 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface CreateNodePoolRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3205 + * google/container/v1/cluster_service.proto;l=3319 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface CreateNodePoolRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3205 + * google/container/v1/cluster_service.proto;l=3319 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface CreateNodePoolRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3211 + * google/container/v1/cluster_service.proto;l=3325 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface CreateNodePoolRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3211 + * google/container/v1/cluster_service.proto;l=3325 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface CreateNodePoolRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3215 + * google/container/v1/cluster_service.proto;l=3329 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface CreateNodePoolRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3215 + * google/container/v1/cluster_service.proto;l=3329 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DNSConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DNSConfig.java index 0deb081b51c4..f13e9cd43b1c 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DNSConfig.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DNSConfig.java @@ -42,6 +42,7 @@ private DNSConfig() { clusterDns_ = 0; clusterDnsScope_ = 0; clusterDnsDomain_ = ""; + additiveVpcScopeDnsDomain_ = ""; } @java.lang.Override @@ -522,6 +523,59 @@ public com.google.protobuf.ByteString getClusterDnsDomainBytes() { } } + public static final int ADDITIVE_VPC_SCOPE_DNS_DOMAIN_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object additiveVpcScopeDnsDomain_ = ""; + /** + * + * + *
+   * Optional. The domain used in Additive VPC scope.
+   * 
+ * + * string additive_vpc_scope_dns_domain = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The additiveVpcScopeDnsDomain. + */ + @java.lang.Override + public java.lang.String getAdditiveVpcScopeDnsDomain() { + java.lang.Object ref = additiveVpcScopeDnsDomain_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + additiveVpcScopeDnsDomain_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The domain used in Additive VPC scope.
+   * 
+ * + * string additive_vpc_scope_dns_domain = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for additiveVpcScopeDnsDomain. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAdditiveVpcScopeDnsDomainBytes() { + java.lang.Object ref = additiveVpcScopeDnsDomain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + additiveVpcScopeDnsDomain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -547,6 +601,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterDnsDomain_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterDnsDomain_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(additiveVpcScopeDnsDomain_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, additiveVpcScopeDnsDomain_); + } getUnknownFields().writeTo(output); } @@ -567,6 +624,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterDnsDomain_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterDnsDomain_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(additiveVpcScopeDnsDomain_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(5, additiveVpcScopeDnsDomain_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -585,6 +646,7 @@ public boolean equals(final java.lang.Object obj) { if (clusterDns_ != other.clusterDns_) return false; if (clusterDnsScope_ != other.clusterDnsScope_) return false; if (!getClusterDnsDomain().equals(other.getClusterDnsDomain())) return false; + if (!getAdditiveVpcScopeDnsDomain().equals(other.getAdditiveVpcScopeDnsDomain())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -602,6 +664,8 @@ public int hashCode() { hash = (53 * hash) + clusterDnsScope_; hash = (37 * hash) + CLUSTER_DNS_DOMAIN_FIELD_NUMBER; hash = (53 * hash) + getClusterDnsDomain().hashCode(); + hash = (37 * hash) + ADDITIVE_VPC_SCOPE_DNS_DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getAdditiveVpcScopeDnsDomain().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -743,6 +807,7 @@ public Builder clear() { clusterDns_ = 0; clusterDnsScope_ = 0; clusterDnsDomain_ = ""; + additiveVpcScopeDnsDomain_ = ""; return this; } @@ -787,6 +852,9 @@ private void buildPartial0(com.google.container.v1.DNSConfig result) { if (((from_bitField0_ & 0x00000004) != 0)) { result.clusterDnsDomain_ = clusterDnsDomain_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.additiveVpcScopeDnsDomain_ = additiveVpcScopeDnsDomain_; + } } @java.lang.Override @@ -845,6 +913,11 @@ public Builder mergeFrom(com.google.container.v1.DNSConfig other) { bitField0_ |= 0x00000004; onChanged(); } + if (!other.getAdditiveVpcScopeDnsDomain().isEmpty()) { + additiveVpcScopeDnsDomain_ = other.additiveVpcScopeDnsDomain_; + bitField0_ |= 0x00000008; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -889,6 +962,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 42: + { + additiveVpcScopeDnsDomain_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1194,6 +1273,117 @@ public Builder setClusterDnsDomainBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object additiveVpcScopeDnsDomain_ = ""; + /** + * + * + *
+     * Optional. The domain used in Additive VPC scope.
+     * 
+ * + * string additive_vpc_scope_dns_domain = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The additiveVpcScopeDnsDomain. + */ + public java.lang.String getAdditiveVpcScopeDnsDomain() { + java.lang.Object ref = additiveVpcScopeDnsDomain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + additiveVpcScopeDnsDomain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The domain used in Additive VPC scope.
+     * 
+ * + * string additive_vpc_scope_dns_domain = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for additiveVpcScopeDnsDomain. + */ + public com.google.protobuf.ByteString getAdditiveVpcScopeDnsDomainBytes() { + java.lang.Object ref = additiveVpcScopeDnsDomain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + additiveVpcScopeDnsDomain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The domain used in Additive VPC scope.
+     * 
+ * + * string additive_vpc_scope_dns_domain = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The additiveVpcScopeDnsDomain to set. + * @return This builder for chaining. + */ + public Builder setAdditiveVpcScopeDnsDomain(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + additiveVpcScopeDnsDomain_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The domain used in Additive VPC scope.
+     * 
+ * + * string additive_vpc_scope_dns_domain = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAdditiveVpcScopeDnsDomain() { + additiveVpcScopeDnsDomain_ = getDefaultInstance().getAdditiveVpcScopeDnsDomain(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The domain used in Additive VPC scope.
+     * 
+ * + * string additive_vpc_scope_dns_domain = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes for additiveVpcScopeDnsDomain to set. + * @return This builder for chaining. + */ + public Builder setAdditiveVpcScopeDnsDomainBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + additiveVpcScopeDnsDomain_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DNSConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DNSConfigOrBuilder.java index 9a6ebcea6fb0..94b2c6bb3bc5 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DNSConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DNSConfigOrBuilder.java @@ -98,4 +98,31 @@ public interface DNSConfigOrBuilder * @return The bytes for clusterDnsDomain. */ com.google.protobuf.ByteString getClusterDnsDomainBytes(); + + /** + * + * + *
+   * Optional. The domain used in Additive VPC scope.
+   * 
+ * + * string additive_vpc_scope_dns_domain = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The additiveVpcScopeDnsDomain. + */ + java.lang.String getAdditiveVpcScopeDnsDomain(); + /** + * + * + *
+   * Optional. The domain used in Additive VPC scope.
+   * 
+ * + * string additive_vpc_scope_dns_domain = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for additiveVpcScopeDnsDomain. + */ + com.google.protobuf.ByteString getAdditiveVpcScopeDnsDomainBytes(); } diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequest.java index f1b1a2f1c10f..bc56f224a27c 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequest.java @@ -82,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3029 + * google/container/v1/cluster_service.proto;l=3143 * @return The projectId. */ @java.lang.Override @@ -110,7 +110,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3029 + * google/container/v1/cluster_service.proto;l=3143 * @return The bytes for projectId. */ @java.lang.Override @@ -144,7 +144,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3035 + * google/container/v1/cluster_service.proto;l=3149 * @return The zone. */ @java.lang.Override @@ -173,7 +173,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3035 + * google/container/v1/cluster_service.proto;l=3149 * @return The bytes for zone. */ @java.lang.Override @@ -205,7 +205,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3039 + * google/container/v1/cluster_service.proto;l=3153 * @return The clusterId. */ @java.lang.Override @@ -232,7 +232,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3039 + * google/container/v1/cluster_service.proto;l=3153 * @return The bytes for clusterId. */ @java.lang.Override @@ -728,7 +728,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3029 + * google/container/v1/cluster_service.proto;l=3143 * @return The projectId. */ @java.lang.Deprecated @@ -755,7 +755,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3029 + * google/container/v1/cluster_service.proto;l=3143 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -782,7 +782,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3029 + * google/container/v1/cluster_service.proto;l=3143 * @param value The projectId to set. * @return This builder for chaining. */ @@ -808,7 +808,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3029 + * google/container/v1/cluster_service.proto;l=3143 * @return This builder for chaining. */ @java.lang.Deprecated @@ -830,7 +830,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3029 + * google/container/v1/cluster_service.proto;l=3143 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -860,7 +860,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3035 + * google/container/v1/cluster_service.proto;l=3149 * @return The zone. */ @java.lang.Deprecated @@ -888,7 +888,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3035 + * google/container/v1/cluster_service.proto;l=3149 * @return The bytes for zone. */ @java.lang.Deprecated @@ -916,7 +916,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3035 + * google/container/v1/cluster_service.proto;l=3149 * @param value The zone to set. * @return This builder for chaining. */ @@ -943,7 +943,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3035 + * google/container/v1/cluster_service.proto;l=3149 * @return This builder for chaining. */ @java.lang.Deprecated @@ -966,7 +966,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3035 + * google/container/v1/cluster_service.proto;l=3149 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -994,7 +994,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3039 + * google/container/v1/cluster_service.proto;l=3153 * @return The clusterId. */ @java.lang.Deprecated @@ -1020,7 +1020,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3039 + * google/container/v1/cluster_service.proto;l=3153 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1046,7 +1046,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3039 + * google/container/v1/cluster_service.proto;l=3153 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1071,7 +1071,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3039 + * google/container/v1/cluster_service.proto;l=3153 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1092,7 +1092,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3039 + * google/container/v1/cluster_service.proto;l=3153 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequestOrBuilder.java index 2dced349c56a..d016db82ba1e 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface DeleteClusterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3029 + * google/container/v1/cluster_service.proto;l=3143 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface DeleteClusterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3029 + * google/container/v1/cluster_service.proto;l=3143 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface DeleteClusterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3035 + * google/container/v1/cluster_service.proto;l=3149 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface DeleteClusterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3035 + * google/container/v1/cluster_service.proto;l=3149 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface DeleteClusterRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3039 + * google/container/v1/cluster_service.proto;l=3153 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface DeleteClusterRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3039 + * google/container/v1/cluster_service.proto;l=3153 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequest.java index 55bb07733b55..efaa21060966 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3231 + * google/container/v1/cluster_service.proto;l=3345 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3231 + * google/container/v1/cluster_service.proto;l=3345 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3237 + * google/container/v1/cluster_service.proto;l=3351 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3237 + * google/container/v1/cluster_service.proto;l=3351 * @return The bytes for zone. */ @java.lang.Override @@ -206,7 +206,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3241 + * google/container/v1/cluster_service.proto;l=3355 * @return The clusterId. */ @java.lang.Override @@ -233,7 +233,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3241 + * google/container/v1/cluster_service.proto;l=3355 * @return The bytes for clusterId. */ @java.lang.Override @@ -265,7 +265,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3245 + * google/container/v1/cluster_service.proto;l=3359 * @return The nodePoolId. */ @java.lang.Override @@ -292,7 +292,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3245 + * google/container/v1/cluster_service.proto;l=3359 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -814,7 +814,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3231 + * google/container/v1/cluster_service.proto;l=3345 * @return The projectId. */ @java.lang.Deprecated @@ -841,7 +841,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3231 + * google/container/v1/cluster_service.proto;l=3345 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -868,7 +868,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3231 + * google/container/v1/cluster_service.proto;l=3345 * @param value The projectId to set. * @return This builder for chaining. */ @@ -894,7 +894,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3231 + * google/container/v1/cluster_service.proto;l=3345 * @return This builder for chaining. */ @java.lang.Deprecated @@ -916,7 +916,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3231 + * google/container/v1/cluster_service.proto;l=3345 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -946,7 +946,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3237 + * google/container/v1/cluster_service.proto;l=3351 * @return The zone. */ @java.lang.Deprecated @@ -974,7 +974,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3237 + * google/container/v1/cluster_service.proto;l=3351 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1002,7 +1002,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3237 + * google/container/v1/cluster_service.proto;l=3351 * @param value The zone to set. * @return This builder for chaining. */ @@ -1029,7 +1029,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3237 + * google/container/v1/cluster_service.proto;l=3351 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1052,7 +1052,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3237 + * google/container/v1/cluster_service.proto;l=3351 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1080,7 +1080,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3241 + * google/container/v1/cluster_service.proto;l=3355 * @return The clusterId. */ @java.lang.Deprecated @@ -1106,7 +1106,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3241 + * google/container/v1/cluster_service.proto;l=3355 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1132,7 +1132,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3241 + * google/container/v1/cluster_service.proto;l=3355 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1157,7 +1157,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3241 + * google/container/v1/cluster_service.proto;l=3355 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1178,7 +1178,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3241 + * google/container/v1/cluster_service.proto;l=3355 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -1206,7 +1206,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3245 + * google/container/v1/cluster_service.proto;l=3359 * @return The nodePoolId. */ @java.lang.Deprecated @@ -1232,7 +1232,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3245 + * google/container/v1/cluster_service.proto;l=3359 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -1258,7 +1258,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3245 + * google/container/v1/cluster_service.proto;l=3359 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -1283,7 +1283,7 @@ public Builder setNodePoolId(java.lang.String value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3245 + * google/container/v1/cluster_service.proto;l=3359 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1304,7 +1304,7 @@ public Builder clearNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3245 + * google/container/v1/cluster_service.proto;l=3359 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequestOrBuilder.java index 6682c2b6c7e9..e12c15178465 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface DeleteNodePoolRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3231 + * google/container/v1/cluster_service.proto;l=3345 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface DeleteNodePoolRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3231 + * google/container/v1/cluster_service.proto;l=3345 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface DeleteNodePoolRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3237 + * google/container/v1/cluster_service.proto;l=3351 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface DeleteNodePoolRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3237 + * google/container/v1/cluster_service.proto;l=3351 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface DeleteNodePoolRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3241 + * google/container/v1/cluster_service.proto;l=3355 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface DeleteNodePoolRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3241 + * google/container/v1/cluster_service.proto;l=3355 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -140,7 +140,7 @@ public interface DeleteNodePoolRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3245 + * google/container/v1/cluster_service.proto;l=3359 * @return The nodePoolId. */ @java.lang.Deprecated @@ -156,7 +156,7 @@ public interface DeleteNodePoolRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3245 + * google/container/v1/cluster_service.proto;l=3359 * @return The bytes for nodePoolId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GPUSharingConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GPUSharingConfig.java index fca2fa1ffcf5..75eda76df61c 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GPUSharingConfig.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GPUSharingConfig.java @@ -94,6 +94,16 @@ public enum GPUSharingStrategy implements com.google.protobuf.ProtocolMessageEnu * TIME_SHARING = 1; */ TIME_SHARING(1), + /** + * + * + *
+     * GPUs are shared between containers with NVIDIA MPS.
+     * 
+ * + * MPS = 2; + */ + MPS(2), UNRECOGNIZED(-1), ; @@ -117,6 +127,16 @@ public enum GPUSharingStrategy implements com.google.protobuf.ProtocolMessageEnu * TIME_SHARING = 1; */ public static final int TIME_SHARING_VALUE = 1; + /** + * + * + *
+     * GPUs are shared between containers with NVIDIA MPS.
+     * 
+ * + * MPS = 2; + */ + public static final int MPS_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -146,6 +166,8 @@ public static GPUSharingStrategy forNumber(int value) { return GPU_SHARING_STRATEGY_UNSPECIFIED; case 1: return TIME_SHARING; + case 2: + return MPS; default: return null; } diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequest.java index 78ad580a7ebe..a427ad30c558 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequest.java @@ -82,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2609 + * google/container/v1/cluster_service.proto;l=2713 * @return The projectId. */ @java.lang.Override @@ -110,7 +110,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2609 + * google/container/v1/cluster_service.proto;l=2713 * @return The bytes for projectId. */ @java.lang.Override @@ -144,7 +144,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2615 + * google/container/v1/cluster_service.proto;l=2719 * @return The zone. */ @java.lang.Override @@ -173,7 +173,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2615 + * google/container/v1/cluster_service.proto;l=2719 * @return The bytes for zone. */ @java.lang.Override @@ -205,7 +205,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2619 + * google/container/v1/cluster_service.proto;l=2723 * @return The clusterId. */ @java.lang.Override @@ -232,7 +232,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2619 + * google/container/v1/cluster_service.proto;l=2723 * @return The bytes for clusterId. */ @java.lang.Override @@ -728,7 +728,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2609 + * google/container/v1/cluster_service.proto;l=2713 * @return The projectId. */ @java.lang.Deprecated @@ -755,7 +755,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2609 + * google/container/v1/cluster_service.proto;l=2713 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -782,7 +782,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2609 + * google/container/v1/cluster_service.proto;l=2713 * @param value The projectId to set. * @return This builder for chaining. */ @@ -808,7 +808,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2609 + * google/container/v1/cluster_service.proto;l=2713 * @return This builder for chaining. */ @java.lang.Deprecated @@ -830,7 +830,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2609 + * google/container/v1/cluster_service.proto;l=2713 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -860,7 +860,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2615 + * google/container/v1/cluster_service.proto;l=2719 * @return The zone. */ @java.lang.Deprecated @@ -888,7 +888,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2615 + * google/container/v1/cluster_service.proto;l=2719 * @return The bytes for zone. */ @java.lang.Deprecated @@ -916,7 +916,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2615 + * google/container/v1/cluster_service.proto;l=2719 * @param value The zone to set. * @return This builder for chaining. */ @@ -943,7 +943,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2615 + * google/container/v1/cluster_service.proto;l=2719 * @return This builder for chaining. */ @java.lang.Deprecated @@ -966,7 +966,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2615 + * google/container/v1/cluster_service.proto;l=2719 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -994,7 +994,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2619 + * google/container/v1/cluster_service.proto;l=2723 * @return The clusterId. */ @java.lang.Deprecated @@ -1020,7 +1020,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2619 + * google/container/v1/cluster_service.proto;l=2723 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1046,7 +1046,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2619 + * google/container/v1/cluster_service.proto;l=2723 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1071,7 +1071,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2619 + * google/container/v1/cluster_service.proto;l=2723 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1092,7 +1092,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2619 + * google/container/v1/cluster_service.proto;l=2723 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequestOrBuilder.java index 6273cfb0d228..940f84716e73 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface GetClusterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2609 + * google/container/v1/cluster_service.proto;l=2713 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface GetClusterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2609 + * google/container/v1/cluster_service.proto;l=2713 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface GetClusterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2615 + * google/container/v1/cluster_service.proto;l=2719 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface GetClusterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2615 + * google/container/v1/cluster_service.proto;l=2719 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface GetClusterRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2619 + * google/container/v1/cluster_service.proto;l=2723 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface GetClusterRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2619 + * google/container/v1/cluster_service.proto;l=2723 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequest.java index 910708e12a9f..69020d1a28ba 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3280 + * google/container/v1/cluster_service.proto;l=3394 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3280 + * google/container/v1/cluster_service.proto;l=3394 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3286 + * google/container/v1/cluster_service.proto;l=3400 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3286 + * google/container/v1/cluster_service.proto;l=3400 * @return The bytes for zone. */ @java.lang.Override @@ -206,7 +206,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3290 + * google/container/v1/cluster_service.proto;l=3404 * @return The clusterId. */ @java.lang.Override @@ -233,7 +233,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3290 + * google/container/v1/cluster_service.proto;l=3404 * @return The bytes for clusterId. */ @java.lang.Override @@ -265,7 +265,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3294 + * google/container/v1/cluster_service.proto;l=3408 * @return The nodePoolId. */ @java.lang.Override @@ -292,7 +292,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3294 + * google/container/v1/cluster_service.proto;l=3408 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -814,7 +814,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3280 + * google/container/v1/cluster_service.proto;l=3394 * @return The projectId. */ @java.lang.Deprecated @@ -841,7 +841,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3280 + * google/container/v1/cluster_service.proto;l=3394 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -868,7 +868,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3280 + * google/container/v1/cluster_service.proto;l=3394 * @param value The projectId to set. * @return This builder for chaining. */ @@ -894,7 +894,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3280 + * google/container/v1/cluster_service.proto;l=3394 * @return This builder for chaining. */ @java.lang.Deprecated @@ -916,7 +916,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3280 + * google/container/v1/cluster_service.proto;l=3394 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -946,7 +946,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3286 + * google/container/v1/cluster_service.proto;l=3400 * @return The zone. */ @java.lang.Deprecated @@ -974,7 +974,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3286 + * google/container/v1/cluster_service.proto;l=3400 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1002,7 +1002,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3286 + * google/container/v1/cluster_service.proto;l=3400 * @param value The zone to set. * @return This builder for chaining. */ @@ -1029,7 +1029,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3286 + * google/container/v1/cluster_service.proto;l=3400 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1052,7 +1052,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3286 + * google/container/v1/cluster_service.proto;l=3400 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1080,7 +1080,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3290 + * google/container/v1/cluster_service.proto;l=3404 * @return The clusterId. */ @java.lang.Deprecated @@ -1106,7 +1106,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3290 + * google/container/v1/cluster_service.proto;l=3404 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1132,7 +1132,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3290 + * google/container/v1/cluster_service.proto;l=3404 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1157,7 +1157,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3290 + * google/container/v1/cluster_service.proto;l=3404 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1178,7 +1178,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3290 + * google/container/v1/cluster_service.proto;l=3404 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -1206,7 +1206,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3294 + * google/container/v1/cluster_service.proto;l=3408 * @return The nodePoolId. */ @java.lang.Deprecated @@ -1232,7 +1232,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3294 + * google/container/v1/cluster_service.proto;l=3408 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -1258,7 +1258,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3294 + * google/container/v1/cluster_service.proto;l=3408 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -1283,7 +1283,7 @@ public Builder setNodePoolId(java.lang.String value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3294 + * google/container/v1/cluster_service.proto;l=3408 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1304,7 +1304,7 @@ public Builder clearNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3294 + * google/container/v1/cluster_service.proto;l=3408 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequestOrBuilder.java index ec08619e1cb6..033d4ff5ea1b 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface GetNodePoolRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3280 + * google/container/v1/cluster_service.proto;l=3394 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface GetNodePoolRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3280 + * google/container/v1/cluster_service.proto;l=3394 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface GetNodePoolRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3286 + * google/container/v1/cluster_service.proto;l=3400 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface GetNodePoolRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3286 + * google/container/v1/cluster_service.proto;l=3400 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface GetNodePoolRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3290 + * google/container/v1/cluster_service.proto;l=3404 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface GetNodePoolRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3290 + * google/container/v1/cluster_service.proto;l=3404 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -140,7 +140,7 @@ public interface GetNodePoolRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3294 + * google/container/v1/cluster_service.proto;l=3408 * @return The nodePoolId. */ @java.lang.Deprecated @@ -156,7 +156,7 @@ public interface GetNodePoolRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3294 + * google/container/v1/cluster_service.proto;l=3408 * @return The bytes for nodePoolId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequest.java index 437a504366c2..9fe009188101 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequest.java @@ -82,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3081 + * google/container/v1/cluster_service.proto;l=3195 * @return The projectId. */ @java.lang.Override @@ -110,7 +110,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3081 + * google/container/v1/cluster_service.proto;l=3195 * @return The bytes for projectId. */ @java.lang.Override @@ -144,7 +144,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3087 + * google/container/v1/cluster_service.proto;l=3201 * @return The zone. */ @java.lang.Override @@ -173,7 +173,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3087 + * google/container/v1/cluster_service.proto;l=3201 * @return The bytes for zone. */ @java.lang.Override @@ -205,7 +205,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3091 + * google/container/v1/cluster_service.proto;l=3205 * @return The operationId. */ @java.lang.Override @@ -232,7 +232,7 @@ public java.lang.String getOperationId() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3091 + * google/container/v1/cluster_service.proto;l=3205 * @return The bytes for operationId. */ @java.lang.Override @@ -728,7 +728,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3081 + * google/container/v1/cluster_service.proto;l=3195 * @return The projectId. */ @java.lang.Deprecated @@ -755,7 +755,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3081 + * google/container/v1/cluster_service.proto;l=3195 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -782,7 +782,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3081 + * google/container/v1/cluster_service.proto;l=3195 * @param value The projectId to set. * @return This builder for chaining. */ @@ -808,7 +808,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3081 + * google/container/v1/cluster_service.proto;l=3195 * @return This builder for chaining. */ @java.lang.Deprecated @@ -830,7 +830,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3081 + * google/container/v1/cluster_service.proto;l=3195 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -860,7 +860,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3087 + * google/container/v1/cluster_service.proto;l=3201 * @return The zone. */ @java.lang.Deprecated @@ -888,7 +888,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3087 + * google/container/v1/cluster_service.proto;l=3201 * @return The bytes for zone. */ @java.lang.Deprecated @@ -916,7 +916,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3087 + * google/container/v1/cluster_service.proto;l=3201 * @param value The zone to set. * @return This builder for chaining. */ @@ -943,7 +943,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3087 + * google/container/v1/cluster_service.proto;l=3201 * @return This builder for chaining. */ @java.lang.Deprecated @@ -966,7 +966,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3087 + * google/container/v1/cluster_service.proto;l=3201 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -994,7 +994,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3091 + * google/container/v1/cluster_service.proto;l=3205 * @return The operationId. */ @java.lang.Deprecated @@ -1020,7 +1020,7 @@ public java.lang.String getOperationId() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3091 + * google/container/v1/cluster_service.proto;l=3205 * @return The bytes for operationId. */ @java.lang.Deprecated @@ -1046,7 +1046,7 @@ public com.google.protobuf.ByteString getOperationIdBytes() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3091 + * google/container/v1/cluster_service.proto;l=3205 * @param value The operationId to set. * @return This builder for chaining. */ @@ -1071,7 +1071,7 @@ public Builder setOperationId(java.lang.String value) { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3091 + * google/container/v1/cluster_service.proto;l=3205 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1092,7 +1092,7 @@ public Builder clearOperationId() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3091 + * google/container/v1/cluster_service.proto;l=3205 * @param value The bytes for operationId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequestOrBuilder.java index b206e3bef86a..4d0100bd19fc 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface GetOperationRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3081 + * google/container/v1/cluster_service.proto;l=3195 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface GetOperationRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3081 + * google/container/v1/cluster_service.proto;l=3195 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface GetOperationRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3087 + * google/container/v1/cluster_service.proto;l=3201 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface GetOperationRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3087 + * google/container/v1/cluster_service.proto;l=3201 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface GetOperationRequestOrBuilder * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3091 + * google/container/v1/cluster_service.proto;l=3205 * @return The operationId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface GetOperationRequestOrBuilder * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3091 + * google/container/v1/cluster_service.proto;l=3205 * @return The bytes for operationId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequest.java index 16525cac029d..06cb5914effb 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequest.java @@ -81,7 +81,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3154 + * google/container/v1/cluster_service.proto;l=3268 * @return The projectId. */ @java.lang.Override @@ -109,7 +109,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3154 + * google/container/v1/cluster_service.proto;l=3268 * @return The bytes for projectId. */ @java.lang.Override @@ -143,7 +143,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3160 + * google/container/v1/cluster_service.proto;l=3274 * @return The zone. */ @java.lang.Override @@ -172,7 +172,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3160 + * google/container/v1/cluster_service.proto;l=3274 * @return The bytes for zone. */ @java.lang.Override @@ -644,7 +644,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3154 + * google/container/v1/cluster_service.proto;l=3268 * @return The projectId. */ @java.lang.Deprecated @@ -671,7 +671,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3154 + * google/container/v1/cluster_service.proto;l=3268 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -698,7 +698,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3154 + * google/container/v1/cluster_service.proto;l=3268 * @param value The projectId to set. * @return This builder for chaining. */ @@ -724,7 +724,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3154 + * google/container/v1/cluster_service.proto;l=3268 * @return This builder for chaining. */ @java.lang.Deprecated @@ -746,7 +746,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3154 + * google/container/v1/cluster_service.proto;l=3268 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -776,7 +776,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3160 + * google/container/v1/cluster_service.proto;l=3274 * @return The zone. */ @java.lang.Deprecated @@ -804,7 +804,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3160 + * google/container/v1/cluster_service.proto;l=3274 * @return The bytes for zone. */ @java.lang.Deprecated @@ -832,7 +832,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3160 + * google/container/v1/cluster_service.proto;l=3274 * @param value The zone to set. * @return This builder for chaining. */ @@ -859,7 +859,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3160 + * google/container/v1/cluster_service.proto;l=3274 * @return This builder for chaining. */ @java.lang.Deprecated @@ -882,7 +882,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3160 + * google/container/v1/cluster_service.proto;l=3274 * @param value The bytes for zone to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequestOrBuilder.java index e7888354c66a..23d8a037729e 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface GetServerConfigRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3154 + * google/container/v1/cluster_service.proto;l=3268 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface GetServerConfigRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3154 + * google/container/v1/cluster_service.proto;l=3268 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface GetServerConfigRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3160 + * google/container/v1/cluster_service.proto;l=3274 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface GetServerConfigRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3160 + * google/container/v1/cluster_service.proto;l=3274 * @return The bytes for zone. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicy.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicy.java index 1527224c2270..b13e71171148 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicy.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicy.java @@ -187,7 +187,7 @@ public com.google.protobuf.ByteString getSubnetworkNameBytes() { * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1495 + * google/container/v1/cluster_service.proto;l=1562 * @return The clusterIpv4Cidr. */ @java.lang.Override @@ -213,7 +213,7 @@ public java.lang.String getClusterIpv4Cidr() { * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1495 + * google/container/v1/cluster_service.proto;l=1562 * @return The bytes for clusterIpv4Cidr. */ @java.lang.Override @@ -244,7 +244,7 @@ public com.google.protobuf.ByteString getClusterIpv4CidrBytes() { * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1498 + * google/container/v1/cluster_service.proto;l=1565 * @return The nodeIpv4Cidr. */ @java.lang.Override @@ -270,7 +270,7 @@ public java.lang.String getNodeIpv4Cidr() { * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1498 + * google/container/v1/cluster_service.proto;l=1565 * @return The bytes for nodeIpv4Cidr. */ @java.lang.Override @@ -301,7 +301,7 @@ public com.google.protobuf.ByteString getNodeIpv4CidrBytes() { * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1501 + * google/container/v1/cluster_service.proto;l=1568 * @return The servicesIpv4Cidr. */ @java.lang.Override @@ -327,7 +327,7 @@ public java.lang.String getServicesIpv4Cidr() { * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1501 + * google/container/v1/cluster_service.proto;l=1568 * @return The bytes for servicesIpv4Cidr. */ @java.lang.Override @@ -2241,7 +2241,7 @@ public Builder setSubnetworkNameBytes(com.google.protobuf.ByteString value) { * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1495 + * google/container/v1/cluster_service.proto;l=1562 * @return The clusterIpv4Cidr. */ @java.lang.Deprecated @@ -2266,7 +2266,7 @@ public java.lang.String getClusterIpv4Cidr() { * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1495 + * google/container/v1/cluster_service.proto;l=1562 * @return The bytes for clusterIpv4Cidr. */ @java.lang.Deprecated @@ -2291,7 +2291,7 @@ public com.google.protobuf.ByteString getClusterIpv4CidrBytes() { * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1495 + * google/container/v1/cluster_service.proto;l=1562 * @param value The clusterIpv4Cidr to set. * @return This builder for chaining. */ @@ -2315,7 +2315,7 @@ public Builder setClusterIpv4Cidr(java.lang.String value) { * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1495 + * google/container/v1/cluster_service.proto;l=1562 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2335,7 +2335,7 @@ public Builder clearClusterIpv4Cidr() { * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1495 + * google/container/v1/cluster_service.proto;l=1562 * @param value The bytes for clusterIpv4Cidr to set. * @return This builder for chaining. */ @@ -2362,7 +2362,7 @@ public Builder setClusterIpv4CidrBytes(com.google.protobuf.ByteString value) { * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1498 + * google/container/v1/cluster_service.proto;l=1565 * @return The nodeIpv4Cidr. */ @java.lang.Deprecated @@ -2387,7 +2387,7 @@ public java.lang.String getNodeIpv4Cidr() { * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1498 + * google/container/v1/cluster_service.proto;l=1565 * @return The bytes for nodeIpv4Cidr. */ @java.lang.Deprecated @@ -2412,7 +2412,7 @@ public com.google.protobuf.ByteString getNodeIpv4CidrBytes() { * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1498 + * google/container/v1/cluster_service.proto;l=1565 * @param value The nodeIpv4Cidr to set. * @return This builder for chaining. */ @@ -2436,7 +2436,7 @@ public Builder setNodeIpv4Cidr(java.lang.String value) { * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1498 + * google/container/v1/cluster_service.proto;l=1565 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2456,7 +2456,7 @@ public Builder clearNodeIpv4Cidr() { * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1498 + * google/container/v1/cluster_service.proto;l=1565 * @param value The bytes for nodeIpv4Cidr to set. * @return This builder for chaining. */ @@ -2483,7 +2483,7 @@ public Builder setNodeIpv4CidrBytes(com.google.protobuf.ByteString value) { * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1501 + * google/container/v1/cluster_service.proto;l=1568 * @return The servicesIpv4Cidr. */ @java.lang.Deprecated @@ -2508,7 +2508,7 @@ public java.lang.String getServicesIpv4Cidr() { * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1501 + * google/container/v1/cluster_service.proto;l=1568 * @return The bytes for servicesIpv4Cidr. */ @java.lang.Deprecated @@ -2533,7 +2533,7 @@ public com.google.protobuf.ByteString getServicesIpv4CidrBytes() { * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1501 + * google/container/v1/cluster_service.proto;l=1568 * @param value The servicesIpv4Cidr to set. * @return This builder for chaining. */ @@ -2557,7 +2557,7 @@ public Builder setServicesIpv4Cidr(java.lang.String value) { * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1501 + * google/container/v1/cluster_service.proto;l=1568 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2577,7 +2577,7 @@ public Builder clearServicesIpv4Cidr() { * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1501 + * google/container/v1/cluster_service.proto;l=1568 * @param value The bytes for servicesIpv4Cidr to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicyOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicyOrBuilder.java index 4e6bd9798d62..86f6def1eeb8 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicyOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicyOrBuilder.java @@ -94,7 +94,7 @@ public interface IPAllocationPolicyOrBuilder * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1495 + * google/container/v1/cluster_service.proto;l=1562 * @return The clusterIpv4Cidr. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface IPAllocationPolicyOrBuilder * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1495 + * google/container/v1/cluster_service.proto;l=1562 * @return The bytes for clusterIpv4Cidr. */ @java.lang.Deprecated @@ -125,7 +125,7 @@ public interface IPAllocationPolicyOrBuilder * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1498 + * google/container/v1/cluster_service.proto;l=1565 * @return The nodeIpv4Cidr. */ @java.lang.Deprecated @@ -140,7 +140,7 @@ public interface IPAllocationPolicyOrBuilder * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1498 + * google/container/v1/cluster_service.proto;l=1565 * @return The bytes for nodeIpv4Cidr. */ @java.lang.Deprecated @@ -156,7 +156,7 @@ public interface IPAllocationPolicyOrBuilder * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1501 + * google/container/v1/cluster_service.proto;l=1568 * @return The servicesIpv4Cidr. */ @java.lang.Deprecated @@ -171,7 +171,7 @@ public interface IPAllocationPolicyOrBuilder * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1501 + * google/container/v1/cluster_service.proto;l=1568 * @return The bytes for servicesIpv4Cidr. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LinuxNodeConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LinuxNodeConfig.java index 9bf40d6ad955..1f27c378ebca 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LinuxNodeConfig.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LinuxNodeConfig.java @@ -238,6 +238,752 @@ private CgroupMode(int value) { // @@protoc_insertion_point(enum_scope:google.container.v1.LinuxNodeConfig.CgroupMode) } + public interface HugepagesConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.LinuxNodeConfig.HugepagesConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. Amount of 2M hugepages
+     * 
+ * + * optional int32 hugepage_size2m = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the hugepageSize2m field is set. + */ + boolean hasHugepageSize2M(); + /** + * + * + *
+     * Optional. Amount of 2M hugepages
+     * 
+ * + * optional int32 hugepage_size2m = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The hugepageSize2m. + */ + int getHugepageSize2M(); + + /** + * + * + *
+     * Optional. Amount of 1G hugepages
+     * 
+ * + * optional int32 hugepage_size1g = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the hugepageSize1g field is set. + */ + boolean hasHugepageSize1G(); + /** + * + * + *
+     * Optional. Amount of 1G hugepages
+     * 
+ * + * optional int32 hugepage_size1g = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The hugepageSize1g. + */ + int getHugepageSize1G(); + } + /** + * + * + *
+   * Hugepages amount in both 2m and 1g size
+   * 
+ * + * Protobuf type {@code google.container.v1.LinuxNodeConfig.HugepagesConfig} + */ + public static final class HugepagesConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.LinuxNodeConfig.HugepagesConfig) + HugepagesConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use HugepagesConfig.newBuilder() to construct. + private HugepagesConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private HugepagesConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new HugepagesConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_LinuxNodeConfig_HugepagesConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_LinuxNodeConfig_HugepagesConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.LinuxNodeConfig.HugepagesConfig.class, + com.google.container.v1.LinuxNodeConfig.HugepagesConfig.Builder.class); + } + + private int bitField0_; + public static final int HUGEPAGE_SIZE2M_FIELD_NUMBER = 1; + private int hugepageSize2M_ = 0; + /** + * + * + *
+     * Optional. Amount of 2M hugepages
+     * 
+ * + * optional int32 hugepage_size2m = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the hugepageSize2m field is set. + */ + @java.lang.Override + public boolean hasHugepageSize2M() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Optional. Amount of 2M hugepages
+     * 
+ * + * optional int32 hugepage_size2m = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The hugepageSize2m. + */ + @java.lang.Override + public int getHugepageSize2M() { + return hugepageSize2M_; + } + + public static final int HUGEPAGE_SIZE1G_FIELD_NUMBER = 2; + private int hugepageSize1G_ = 0; + /** + * + * + *
+     * Optional. Amount of 1G hugepages
+     * 
+ * + * optional int32 hugepage_size1g = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the hugepageSize1g field is set. + */ + @java.lang.Override + public boolean hasHugepageSize1G() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Optional. Amount of 1G hugepages
+     * 
+ * + * optional int32 hugepage_size1g = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The hugepageSize1g. + */ + @java.lang.Override + public int getHugepageSize1G() { + return hugepageSize1G_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt32(1, hugepageSize2M_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeInt32(2, hugepageSize1G_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, hugepageSize2M_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, hugepageSize1G_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.LinuxNodeConfig.HugepagesConfig)) { + return super.equals(obj); + } + com.google.container.v1.LinuxNodeConfig.HugepagesConfig other = + (com.google.container.v1.LinuxNodeConfig.HugepagesConfig) obj; + + if (hasHugepageSize2M() != other.hasHugepageSize2M()) return false; + if (hasHugepageSize2M()) { + if (getHugepageSize2M() != other.getHugepageSize2M()) return false; + } + if (hasHugepageSize1G() != other.hasHugepageSize1G()) return false; + if (hasHugepageSize1G()) { + if (getHugepageSize1G() != other.getHugepageSize1G()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasHugepageSize2M()) { + hash = (37 * hash) + HUGEPAGE_SIZE2M_FIELD_NUMBER; + hash = (53 * hash) + getHugepageSize2M(); + } + if (hasHugepageSize1G()) { + hash = (37 * hash) + HUGEPAGE_SIZE1G_FIELD_NUMBER; + hash = (53 * hash) + getHugepageSize1G(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.LinuxNodeConfig.HugepagesConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.LinuxNodeConfig.HugepagesConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.LinuxNodeConfig.HugepagesConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.LinuxNodeConfig.HugepagesConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.LinuxNodeConfig.HugepagesConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.LinuxNodeConfig.HugepagesConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.LinuxNodeConfig.HugepagesConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.LinuxNodeConfig.HugepagesConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.LinuxNodeConfig.HugepagesConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.LinuxNodeConfig.HugepagesConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.LinuxNodeConfig.HugepagesConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.LinuxNodeConfig.HugepagesConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.container.v1.LinuxNodeConfig.HugepagesConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Hugepages amount in both 2m and 1g size
+     * 
+ * + * Protobuf type {@code google.container.v1.LinuxNodeConfig.HugepagesConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.LinuxNodeConfig.HugepagesConfig) + com.google.container.v1.LinuxNodeConfig.HugepagesConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_LinuxNodeConfig_HugepagesConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_LinuxNodeConfig_HugepagesConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.LinuxNodeConfig.HugepagesConfig.class, + com.google.container.v1.LinuxNodeConfig.HugepagesConfig.Builder.class); + } + + // Construct using com.google.container.v1.LinuxNodeConfig.HugepagesConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + hugepageSize2M_ = 0; + hugepageSize1G_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_LinuxNodeConfig_HugepagesConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1.LinuxNodeConfig.HugepagesConfig getDefaultInstanceForType() { + return com.google.container.v1.LinuxNodeConfig.HugepagesConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.LinuxNodeConfig.HugepagesConfig build() { + com.google.container.v1.LinuxNodeConfig.HugepagesConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.LinuxNodeConfig.HugepagesConfig buildPartial() { + com.google.container.v1.LinuxNodeConfig.HugepagesConfig result = + new com.google.container.v1.LinuxNodeConfig.HugepagesConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.LinuxNodeConfig.HugepagesConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.hugepageSize2M_ = hugepageSize2M_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.hugepageSize1G_ = hugepageSize1G_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.v1.LinuxNodeConfig.HugepagesConfig) { + return mergeFrom((com.google.container.v1.LinuxNodeConfig.HugepagesConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.LinuxNodeConfig.HugepagesConfig other) { + if (other == com.google.container.v1.LinuxNodeConfig.HugepagesConfig.getDefaultInstance()) + return this; + if (other.hasHugepageSize2M()) { + setHugepageSize2M(other.getHugepageSize2M()); + } + if (other.hasHugepageSize1G()) { + setHugepageSize1G(other.getHugepageSize1G()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + hugepageSize2M_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + hugepageSize1G_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int hugepageSize2M_; + /** + * + * + *
+       * Optional. Amount of 2M hugepages
+       * 
+ * + * optional int32 hugepage_size2m = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the hugepageSize2m field is set. + */ + @java.lang.Override + public boolean hasHugepageSize2M() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+       * Optional. Amount of 2M hugepages
+       * 
+ * + * optional int32 hugepage_size2m = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The hugepageSize2m. + */ + @java.lang.Override + public int getHugepageSize2M() { + return hugepageSize2M_; + } + /** + * + * + *
+       * Optional. Amount of 2M hugepages
+       * 
+ * + * optional int32 hugepage_size2m = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The hugepageSize2m to set. + * @return This builder for chaining. + */ + public Builder setHugepageSize2M(int value) { + + hugepageSize2M_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Amount of 2M hugepages
+       * 
+ * + * optional int32 hugepage_size2m = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearHugepageSize2M() { + bitField0_ = (bitField0_ & ~0x00000001); + hugepageSize2M_ = 0; + onChanged(); + return this; + } + + private int hugepageSize1G_; + /** + * + * + *
+       * Optional. Amount of 1G hugepages
+       * 
+ * + * optional int32 hugepage_size1g = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the hugepageSize1g field is set. + */ + @java.lang.Override + public boolean hasHugepageSize1G() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+       * Optional. Amount of 1G hugepages
+       * 
+ * + * optional int32 hugepage_size1g = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The hugepageSize1g. + */ + @java.lang.Override + public int getHugepageSize1G() { + return hugepageSize1G_; + } + /** + * + * + *
+       * Optional. Amount of 1G hugepages
+       * 
+ * + * optional int32 hugepage_size1g = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The hugepageSize1g to set. + * @return This builder for chaining. + */ + public Builder setHugepageSize1G(int value) { + + hugepageSize1G_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Amount of 1G hugepages
+       * 
+ * + * optional int32 hugepage_size1g = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearHugepageSize1G() { + bitField0_ = (bitField0_ & ~0x00000002); + hugepageSize1G_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.v1.LinuxNodeConfig.HugepagesConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.LinuxNodeConfig.HugepagesConfig) + private static final com.google.container.v1.LinuxNodeConfig.HugepagesConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.LinuxNodeConfig.HugepagesConfig(); + } + + public static com.google.container.v1.LinuxNodeConfig.HugepagesConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HugepagesConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.LinuxNodeConfig.HugepagesConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; public static final int SYSCTLS_FIELD_NUMBER = 1; private static final class SysctlsDefaultEntryHolder { @@ -437,6 +1183,62 @@ public com.google.container.v1.LinuxNodeConfig.CgroupMode getCgroupMode() { : result; } + public static final int HUGEPAGES_FIELD_NUMBER = 3; + private com.google.container.v1.LinuxNodeConfig.HugepagesConfig hugepages_; + /** + * + * + *
+   * Optional. Amounts for 2M and 1G hugepages
+   * 
+ * + * + * optional .google.container.v1.LinuxNodeConfig.HugepagesConfig hugepages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the hugepages field is set. + */ + @java.lang.Override + public boolean hasHugepages() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Optional. Amounts for 2M and 1G hugepages
+   * 
+ * + * + * optional .google.container.v1.LinuxNodeConfig.HugepagesConfig hugepages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The hugepages. + */ + @java.lang.Override + public com.google.container.v1.LinuxNodeConfig.HugepagesConfig getHugepages() { + return hugepages_ == null + ? com.google.container.v1.LinuxNodeConfig.HugepagesConfig.getDefaultInstance() + : hugepages_; + } + /** + * + * + *
+   * Optional. Amounts for 2M and 1G hugepages
+   * 
+ * + * + * optional .google.container.v1.LinuxNodeConfig.HugepagesConfig hugepages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.container.v1.LinuxNodeConfig.HugepagesConfigOrBuilder getHugepagesOrBuilder() { + return hugepages_ == null + ? com.google.container.v1.LinuxNodeConfig.HugepagesConfig.getDefaultInstance() + : hugepages_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -457,6 +1259,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io != com.google.container.v1.LinuxNodeConfig.CgroupMode.CGROUP_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(2, cgroupMode_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getHugepages()); + } getUnknownFields().writeTo(output); } @@ -480,6 +1285,9 @@ public int getSerializedSize() { != com.google.container.v1.LinuxNodeConfig.CgroupMode.CGROUP_MODE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, cgroupMode_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getHugepages()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -497,6 +1305,10 @@ public boolean equals(final java.lang.Object obj) { if (!internalGetSysctls().equals(other.internalGetSysctls())) return false; if (cgroupMode_ != other.cgroupMode_) return false; + if (hasHugepages() != other.hasHugepages()) return false; + if (hasHugepages()) { + if (!getHugepages().equals(other.getHugepages())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -514,6 +1326,10 @@ public int hashCode() { } hash = (37 * hash) + CGROUP_MODE_FIELD_NUMBER; hash = (53 * hash) + cgroupMode_; + if (hasHugepages()) { + hash = (37 * hash) + HUGEPAGES_FIELD_NUMBER; + hash = (53 * hash) + getHugepages().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -665,10 +1481,19 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi } // Construct using com.google.container.v1.LinuxNodeConfig.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getHugepagesFieldBuilder(); + } } @java.lang.Override @@ -677,6 +1502,11 @@ public Builder clear() { bitField0_ = 0; internalGetMutableSysctls().clear(); cgroupMode_ = 0; + hugepages_ = null; + if (hugepagesBuilder_ != null) { + hugepagesBuilder_.dispose(); + hugepagesBuilder_ = null; + } return this; } @@ -720,6 +1550,12 @@ private void buildPartial0(com.google.container.v1.LinuxNodeConfig result) { if (((from_bitField0_ & 0x00000002) != 0)) { result.cgroupMode_ = cgroupMode_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.hugepages_ = hugepagesBuilder_ == null ? hugepages_ : hugepagesBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -772,6 +1608,9 @@ public Builder mergeFrom(com.google.container.v1.LinuxNodeConfig other) { if (other.cgroupMode_ != 0) { setCgroupModeValue(other.getCgroupModeValue()); } + if (other.hasHugepages()) { + mergeHugepages(other.getHugepages()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -816,6 +1655,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 16 + case 26: + { + input.readMessage(getHugepagesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1195,6 +2040,212 @@ public Builder clearCgroupMode() { return this; } + private com.google.container.v1.LinuxNodeConfig.HugepagesConfig hugepages_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LinuxNodeConfig.HugepagesConfig, + com.google.container.v1.LinuxNodeConfig.HugepagesConfig.Builder, + com.google.container.v1.LinuxNodeConfig.HugepagesConfigOrBuilder> + hugepagesBuilder_; + /** + * + * + *
+     * Optional. Amounts for 2M and 1G hugepages
+     * 
+ * + * + * optional .google.container.v1.LinuxNodeConfig.HugepagesConfig hugepages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the hugepages field is set. + */ + public boolean hasHugepages() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Optional. Amounts for 2M and 1G hugepages
+     * 
+ * + * + * optional .google.container.v1.LinuxNodeConfig.HugepagesConfig hugepages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The hugepages. + */ + public com.google.container.v1.LinuxNodeConfig.HugepagesConfig getHugepages() { + if (hugepagesBuilder_ == null) { + return hugepages_ == null + ? com.google.container.v1.LinuxNodeConfig.HugepagesConfig.getDefaultInstance() + : hugepages_; + } else { + return hugepagesBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Amounts for 2M and 1G hugepages
+     * 
+ * + * + * optional .google.container.v1.LinuxNodeConfig.HugepagesConfig hugepages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setHugepages(com.google.container.v1.LinuxNodeConfig.HugepagesConfig value) { + if (hugepagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + hugepages_ = value; + } else { + hugepagesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Amounts for 2M and 1G hugepages
+     * 
+ * + * + * optional .google.container.v1.LinuxNodeConfig.HugepagesConfig hugepages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setHugepages( + com.google.container.v1.LinuxNodeConfig.HugepagesConfig.Builder builderForValue) { + if (hugepagesBuilder_ == null) { + hugepages_ = builderForValue.build(); + } else { + hugepagesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Amounts for 2M and 1G hugepages
+     * 
+ * + * + * optional .google.container.v1.LinuxNodeConfig.HugepagesConfig hugepages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeHugepages(com.google.container.v1.LinuxNodeConfig.HugepagesConfig value) { + if (hugepagesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && hugepages_ != null + && hugepages_ + != com.google.container.v1.LinuxNodeConfig.HugepagesConfig.getDefaultInstance()) { + getHugepagesBuilder().mergeFrom(value); + } else { + hugepages_ = value; + } + } else { + hugepagesBuilder_.mergeFrom(value); + } + if (hugepages_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Amounts for 2M and 1G hugepages
+     * 
+ * + * + * optional .google.container.v1.LinuxNodeConfig.HugepagesConfig hugepages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearHugepages() { + bitField0_ = (bitField0_ & ~0x00000004); + hugepages_ = null; + if (hugepagesBuilder_ != null) { + hugepagesBuilder_.dispose(); + hugepagesBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Amounts for 2M and 1G hugepages
+     * 
+ * + * + * optional .google.container.v1.LinuxNodeConfig.HugepagesConfig hugepages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.container.v1.LinuxNodeConfig.HugepagesConfig.Builder getHugepagesBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getHugepagesFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Amounts for 2M and 1G hugepages
+     * 
+ * + * + * optional .google.container.v1.LinuxNodeConfig.HugepagesConfig hugepages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.container.v1.LinuxNodeConfig.HugepagesConfigOrBuilder + getHugepagesOrBuilder() { + if (hugepagesBuilder_ != null) { + return hugepagesBuilder_.getMessageOrBuilder(); + } else { + return hugepages_ == null + ? com.google.container.v1.LinuxNodeConfig.HugepagesConfig.getDefaultInstance() + : hugepages_; + } + } + /** + * + * + *
+     * Optional. Amounts for 2M and 1G hugepages
+     * 
+ * + * + * optional .google.container.v1.LinuxNodeConfig.HugepagesConfig hugepages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LinuxNodeConfig.HugepagesConfig, + com.google.container.v1.LinuxNodeConfig.HugepagesConfig.Builder, + com.google.container.v1.LinuxNodeConfig.HugepagesConfigOrBuilder> + getHugepagesFieldBuilder() { + if (hugepagesBuilder_ == null) { + hugepagesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.LinuxNodeConfig.HugepagesConfig, + com.google.container.v1.LinuxNodeConfig.HugepagesConfig.Builder, + com.google.container.v1.LinuxNodeConfig.HugepagesConfigOrBuilder>( + getHugepages(), getParentForChildren(), isClean()); + hugepages_ = null; + } + return hugepagesBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LinuxNodeConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LinuxNodeConfigOrBuilder.java index 020961ee8213..0ec1b61426e0 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LinuxNodeConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LinuxNodeConfigOrBuilder.java @@ -181,4 +181,45 @@ java.lang.String getSysctlsOrDefault( * @return The cgroupMode. */ com.google.container.v1.LinuxNodeConfig.CgroupMode getCgroupMode(); + + /** + * + * + *
+   * Optional. Amounts for 2M and 1G hugepages
+   * 
+ * + * + * optional .google.container.v1.LinuxNodeConfig.HugepagesConfig hugepages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the hugepages field is set. + */ + boolean hasHugepages(); + /** + * + * + *
+   * Optional. Amounts for 2M and 1G hugepages
+   * 
+ * + * + * optional .google.container.v1.LinuxNodeConfig.HugepagesConfig hugepages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The hugepages. + */ + com.google.container.v1.LinuxNodeConfig.HugepagesConfig getHugepages(); + /** + * + * + *
+   * Optional. Amounts for 2M and 1G hugepages
+   * 
+ * + * + * optional .google.container.v1.LinuxNodeConfig.HugepagesConfig hugepages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.container.v1.LinuxNodeConfig.HugepagesConfigOrBuilder getHugepagesOrBuilder(); } diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequest.java index 0585da30fd76..5216155496ba 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequest.java @@ -81,7 +81,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3051 + * google/container/v1/cluster_service.proto;l=3165 * @return The projectId. */ @java.lang.Override @@ -109,7 +109,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3051 + * google/container/v1/cluster_service.proto;l=3165 * @return The bytes for projectId. */ @java.lang.Override @@ -143,7 +143,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3057 + * google/container/v1/cluster_service.proto;l=3171 * @return The zone. */ @java.lang.Override @@ -172,7 +172,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3057 + * google/container/v1/cluster_service.proto;l=3171 * @return The bytes for zone. */ @java.lang.Override @@ -646,7 +646,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3051 + * google/container/v1/cluster_service.proto;l=3165 * @return The projectId. */ @java.lang.Deprecated @@ -673,7 +673,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3051 + * google/container/v1/cluster_service.proto;l=3165 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -700,7 +700,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3051 + * google/container/v1/cluster_service.proto;l=3165 * @param value The projectId to set. * @return This builder for chaining. */ @@ -726,7 +726,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3051 + * google/container/v1/cluster_service.proto;l=3165 * @return This builder for chaining. */ @java.lang.Deprecated @@ -748,7 +748,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3051 + * google/container/v1/cluster_service.proto;l=3165 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -778,7 +778,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3057 + * google/container/v1/cluster_service.proto;l=3171 * @return The zone. */ @java.lang.Deprecated @@ -806,7 +806,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3057 + * google/container/v1/cluster_service.proto;l=3171 * @return The bytes for zone. */ @java.lang.Deprecated @@ -834,7 +834,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3057 + * google/container/v1/cluster_service.proto;l=3171 * @param value The zone to set. * @return This builder for chaining. */ @@ -861,7 +861,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3057 + * google/container/v1/cluster_service.proto;l=3171 * @return This builder for chaining. */ @java.lang.Deprecated @@ -884,7 +884,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3057 + * google/container/v1/cluster_service.proto;l=3171 * @param value The bytes for zone to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequestOrBuilder.java index 7b2a3993df66..a052fd8e737b 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface ListClustersRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3051 + * google/container/v1/cluster_service.proto;l=3165 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface ListClustersRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3051 + * google/container/v1/cluster_service.proto;l=3165 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface ListClustersRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3057 + * google/container/v1/cluster_service.proto;l=3171 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface ListClustersRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3057 + * google/container/v1/cluster_service.proto;l=3171 * @return The bytes for zone. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequest.java index 05e6377731d3..45b10e828b48 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequest.java @@ -82,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3258 + * google/container/v1/cluster_service.proto;l=3372 * @return The projectId. */ @java.lang.Override @@ -110,7 +110,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3258 + * google/container/v1/cluster_service.proto;l=3372 * @return The bytes for projectId. */ @java.lang.Override @@ -144,7 +144,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3264 + * google/container/v1/cluster_service.proto;l=3378 * @return The zone. */ @java.lang.Override @@ -173,7 +173,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3264 + * google/container/v1/cluster_service.proto;l=3378 * @return The bytes for zone. */ @java.lang.Override @@ -205,7 +205,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3268 + * google/container/v1/cluster_service.proto;l=3382 * @return The clusterId. */ @java.lang.Override @@ -232,7 +232,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3268 + * google/container/v1/cluster_service.proto;l=3382 * @return The bytes for clusterId. */ @java.lang.Override @@ -728,7 +728,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3258 + * google/container/v1/cluster_service.proto;l=3372 * @return The projectId. */ @java.lang.Deprecated @@ -755,7 +755,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3258 + * google/container/v1/cluster_service.proto;l=3372 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -782,7 +782,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3258 + * google/container/v1/cluster_service.proto;l=3372 * @param value The projectId to set. * @return This builder for chaining. */ @@ -808,7 +808,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3258 + * google/container/v1/cluster_service.proto;l=3372 * @return This builder for chaining. */ @java.lang.Deprecated @@ -830,7 +830,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3258 + * google/container/v1/cluster_service.proto;l=3372 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -860,7 +860,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3264 + * google/container/v1/cluster_service.proto;l=3378 * @return The zone. */ @java.lang.Deprecated @@ -888,7 +888,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3264 + * google/container/v1/cluster_service.proto;l=3378 * @return The bytes for zone. */ @java.lang.Deprecated @@ -916,7 +916,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3264 + * google/container/v1/cluster_service.proto;l=3378 * @param value The zone to set. * @return This builder for chaining. */ @@ -943,7 +943,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3264 + * google/container/v1/cluster_service.proto;l=3378 * @return This builder for chaining. */ @java.lang.Deprecated @@ -966,7 +966,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3264 + * google/container/v1/cluster_service.proto;l=3378 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -994,7 +994,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3268 + * google/container/v1/cluster_service.proto;l=3382 * @return The clusterId. */ @java.lang.Deprecated @@ -1020,7 +1020,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3268 + * google/container/v1/cluster_service.proto;l=3382 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1046,7 +1046,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3268 + * google/container/v1/cluster_service.proto;l=3382 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1071,7 +1071,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3268 + * google/container/v1/cluster_service.proto;l=3382 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1092,7 +1092,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3268 + * google/container/v1/cluster_service.proto;l=3382 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequestOrBuilder.java index 1d263c00d79b..6f2634febe19 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface ListNodePoolsRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3258 + * google/container/v1/cluster_service.proto;l=3372 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface ListNodePoolsRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3258 + * google/container/v1/cluster_service.proto;l=3372 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface ListNodePoolsRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3264 + * google/container/v1/cluster_service.proto;l=3378 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface ListNodePoolsRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3264 + * google/container/v1/cluster_service.proto;l=3378 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface ListNodePoolsRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3268 + * google/container/v1/cluster_service.proto;l=3382 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface ListNodePoolsRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3268 + * google/container/v1/cluster_service.proto;l=3382 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequest.java index 4ef45c157c2d..b92e5cd876c7 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequest.java @@ -81,7 +81,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3103 + * google/container/v1/cluster_service.proto;l=3217 * @return The projectId. */ @java.lang.Override @@ -109,7 +109,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3103 + * google/container/v1/cluster_service.proto;l=3217 * @return The bytes for projectId. */ @java.lang.Override @@ -143,7 +143,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3109 + * google/container/v1/cluster_service.proto;l=3223 * @return The zone. */ @java.lang.Override @@ -172,7 +172,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3109 + * google/container/v1/cluster_service.proto;l=3223 * @return The bytes for zone. */ @java.lang.Override @@ -646,7 +646,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3103 + * google/container/v1/cluster_service.proto;l=3217 * @return The projectId. */ @java.lang.Deprecated @@ -673,7 +673,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3103 + * google/container/v1/cluster_service.proto;l=3217 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -700,7 +700,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3103 + * google/container/v1/cluster_service.proto;l=3217 * @param value The projectId to set. * @return This builder for chaining. */ @@ -726,7 +726,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3103 + * google/container/v1/cluster_service.proto;l=3217 * @return This builder for chaining. */ @java.lang.Deprecated @@ -748,7 +748,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3103 + * google/container/v1/cluster_service.proto;l=3217 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -778,7 +778,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3109 + * google/container/v1/cluster_service.proto;l=3223 * @return The zone. */ @java.lang.Deprecated @@ -806,7 +806,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3109 + * google/container/v1/cluster_service.proto;l=3223 * @return The bytes for zone. */ @java.lang.Deprecated @@ -834,7 +834,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3109 + * google/container/v1/cluster_service.proto;l=3223 * @param value The zone to set. * @return This builder for chaining. */ @@ -861,7 +861,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3109 + * google/container/v1/cluster_service.proto;l=3223 * @return This builder for chaining. */ @java.lang.Deprecated @@ -884,7 +884,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3109 + * google/container/v1/cluster_service.proto;l=3223 * @param value The bytes for zone to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequestOrBuilder.java index 41419b0e60fd..fa20dbc5de91 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface ListOperationsRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3103 + * google/container/v1/cluster_service.proto;l=3217 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface ListOperationsRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3103 + * google/container/v1/cluster_service.proto;l=3217 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface ListOperationsRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3109 + * google/container/v1/cluster_service.proto;l=3223 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface ListOperationsRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3109 + * google/container/v1/cluster_service.proto;l=3223 * @return The bytes for zone. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuth.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuth.java index cc3a207bf665..47bdd716671a 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuth.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuth.java @@ -91,7 +91,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string username = 1 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.username is deprecated. See - * google/container/v1/cluster_service.proto;l=1153 + * google/container/v1/cluster_service.proto;l=1220 * @return The username. */ @java.lang.Override @@ -124,7 +124,7 @@ public java.lang.String getUsername() { * string username = 1 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.username is deprecated. See - * google/container/v1/cluster_service.proto;l=1153 + * google/container/v1/cluster_service.proto;l=1220 * @return The bytes for username. */ @java.lang.Override @@ -163,7 +163,7 @@ public com.google.protobuf.ByteString getUsernameBytes() { * string password = 2 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.password is deprecated. See - * google/container/v1/cluster_service.proto;l=1164 + * google/container/v1/cluster_service.proto;l=1231 * @return The password. */ @java.lang.Override @@ -197,7 +197,7 @@ public java.lang.String getPassword() { * string password = 2 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.password is deprecated. See - * google/container/v1/cluster_service.proto;l=1164 + * google/container/v1/cluster_service.proto;l=1231 * @return The bytes for password. */ @java.lang.Override @@ -932,7 +932,7 @@ public Builder mergeFrom( * string username = 1 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.username is deprecated. See - * google/container/v1/cluster_service.proto;l=1153 + * google/container/v1/cluster_service.proto;l=1220 * @return The username. */ @java.lang.Deprecated @@ -964,7 +964,7 @@ public java.lang.String getUsername() { * string username = 1 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.username is deprecated. See - * google/container/v1/cluster_service.proto;l=1153 + * google/container/v1/cluster_service.proto;l=1220 * @return The bytes for username. */ @java.lang.Deprecated @@ -996,7 +996,7 @@ public com.google.protobuf.ByteString getUsernameBytes() { * string username = 1 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.username is deprecated. See - * google/container/v1/cluster_service.proto;l=1153 + * google/container/v1/cluster_service.proto;l=1220 * @param value The username to set. * @return This builder for chaining. */ @@ -1027,7 +1027,7 @@ public Builder setUsername(java.lang.String value) { * string username = 1 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.username is deprecated. See - * google/container/v1/cluster_service.proto;l=1153 + * google/container/v1/cluster_service.proto;l=1220 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1054,7 +1054,7 @@ public Builder clearUsername() { * string username = 1 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.username is deprecated. See - * google/container/v1/cluster_service.proto;l=1153 + * google/container/v1/cluster_service.proto;l=1220 * @param value The bytes for username to set. * @return This builder for chaining. */ @@ -1089,7 +1089,7 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { * string password = 2 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.password is deprecated. See - * google/container/v1/cluster_service.proto;l=1164 + * google/container/v1/cluster_service.proto;l=1231 * @return The password. */ @java.lang.Deprecated @@ -1122,7 +1122,7 @@ public java.lang.String getPassword() { * string password = 2 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.password is deprecated. See - * google/container/v1/cluster_service.proto;l=1164 + * google/container/v1/cluster_service.proto;l=1231 * @return The bytes for password. */ @java.lang.Deprecated @@ -1155,7 +1155,7 @@ public com.google.protobuf.ByteString getPasswordBytes() { * string password = 2 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.password is deprecated. See - * google/container/v1/cluster_service.proto;l=1164 + * google/container/v1/cluster_service.proto;l=1231 * @param value The password to set. * @return This builder for chaining. */ @@ -1187,7 +1187,7 @@ public Builder setPassword(java.lang.String value) { * string password = 2 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.password is deprecated. See - * google/container/v1/cluster_service.proto;l=1164 + * google/container/v1/cluster_service.proto;l=1231 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1215,7 +1215,7 @@ public Builder clearPassword() { * string password = 2 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.password is deprecated. See - * google/container/v1/cluster_service.proto;l=1164 + * google/container/v1/cluster_service.proto;l=1231 * @param value The bytes for password to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthOrBuilder.java index 26a21c56d04b..5fc383de4564 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthOrBuilder.java @@ -41,7 +41,7 @@ public interface MasterAuthOrBuilder * string username = 1 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.username is deprecated. See - * google/container/v1/cluster_service.proto;l=1153 + * google/container/v1/cluster_service.proto;l=1220 * @return The username. */ @java.lang.Deprecated @@ -63,7 +63,7 @@ public interface MasterAuthOrBuilder * string username = 1 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.username is deprecated. See - * google/container/v1/cluster_service.proto;l=1153 + * google/container/v1/cluster_service.proto;l=1220 * @return The bytes for username. */ @java.lang.Deprecated @@ -87,7 +87,7 @@ public interface MasterAuthOrBuilder * string password = 2 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.password is deprecated. See - * google/container/v1/cluster_service.proto;l=1164 + * google/container/v1/cluster_service.proto;l=1231 * @return The password. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface MasterAuthOrBuilder * string password = 2 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.password is deprecated. See - * google/container/v1/cluster_service.proto;l=1164 + * google/container/v1/cluster_service.proto;l=1231 * @return The bytes for password. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MonitoringComponentConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MonitoringComponentConfig.java index 3485df67d69e..e7ff49ed96a8 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MonitoringComponentConfig.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MonitoringComponentConfig.java @@ -183,6 +183,26 @@ public enum Component implements com.google.protobuf.ProtocolMessageEnum { * STATEFULSET = 12; */ STATEFULSET(12), + /** + * + * + *
+     * CADVISOR
+     * 
+ * + * CADVISOR = 13; + */ + CADVISOR(13), + /** + * + * + *
+     * KUBELET
+     * 
+ * + * KUBELET = 14; + */ + KUBELET(14), UNRECOGNIZED(-1), ; @@ -296,6 +316,26 @@ public enum Component implements com.google.protobuf.ProtocolMessageEnum { * STATEFULSET = 12; */ public static final int STATEFULSET_VALUE = 12; + /** + * + * + *
+     * CADVISOR
+     * 
+ * + * CADVISOR = 13; + */ + public static final int CADVISOR_VALUE = 13; + /** + * + * + *
+     * KUBELET
+     * 
+ * + * KUBELET = 14; + */ + public static final int KUBELET_VALUE = 14; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -343,6 +383,10 @@ public static Component forNumber(int value) { return DEPLOYMENT; case 12: return STATEFULSET; + case 13: + return CADVISOR; + case 14: + return KUBELET; default: return null; } diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfig.java index 920dd157b740..7fbf3fc8864c 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfig.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfig.java @@ -1472,6 +1472,7 @@ public boolean getEnableFqdnNetworkPolicy() { * *
    * Specify the details of in-transit encryption.
+   * Now named inter-node transparent encryption.
    * 
* * @@ -1489,6 +1490,7 @@ public boolean hasInTransitEncryptionConfig() { * *
    * Specify the details of in-transit encryption.
+   * Now named inter-node transparent encryption.
    * 
* * @@ -1506,6 +1508,7 @@ public int getInTransitEncryptionConfigValue() { * *
    * Specify the details of in-transit encryption.
+   * Now named inter-node transparent encryption.
    * 
* * @@ -3999,6 +4002,7 @@ public Builder clearEnableFqdnNetworkPolicy() { * *
      * Specify the details of in-transit encryption.
+     * Now named inter-node transparent encryption.
      * 
* * @@ -4016,6 +4020,7 @@ public boolean hasInTransitEncryptionConfig() { * *
      * Specify the details of in-transit encryption.
+     * Now named inter-node transparent encryption.
      * 
* * @@ -4033,6 +4038,7 @@ public int getInTransitEncryptionConfigValue() { * *
      * Specify the details of in-transit encryption.
+     * Now named inter-node transparent encryption.
      * 
* * @@ -4053,6 +4059,7 @@ public Builder setInTransitEncryptionConfigValue(int value) { * *
      * Specify the details of in-transit encryption.
+     * Now named inter-node transparent encryption.
      * 
* * @@ -4074,6 +4081,7 @@ public com.google.container.v1.InTransitEncryptionConfig getInTransitEncryptionC * *
      * Specify the details of in-transit encryption.
+     * Now named inter-node transparent encryption.
      * 
* * @@ -4098,6 +4106,7 @@ public Builder setInTransitEncryptionConfig( * *
      * Specify the details of in-transit encryption.
+     * Now named inter-node transparent encryption.
      * 
* * diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfigOrBuilder.java index f6c5bc641ebd..df6e276b4011 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfigOrBuilder.java @@ -410,6 +410,7 @@ public interface NetworkConfigOrBuilder * *
    * Specify the details of in-transit encryption.
+   * Now named inter-node transparent encryption.
    * 
* * @@ -424,6 +425,7 @@ public interface NetworkConfigOrBuilder * *
    * Specify the details of in-transit encryption.
+   * Now named inter-node transparent encryption.
    * 
* * @@ -438,6 +440,7 @@ public interface NetworkConfigOrBuilder * *
    * Specify the details of in-transit encryption.
+   * Now named inter-node transparent encryption.
    * 
* * diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfig.java index c0c7a7c02e11..af1cfedc6b0b 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfig.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfig.java @@ -2238,6 +2238,56 @@ public com.google.container.v1.SoleTenantConfigOrBuilder getSoleTenantConfigOrBu : soleTenantConfig_; } + public static final int CONTAINERD_CONFIG_FIELD_NUMBER = 43; + private com.google.container.v1.ContainerdConfig containerdConfig_; + /** + * + * + *
+   * Parameters for containerd customization.
+   * 
+ * + * .google.container.v1.ContainerdConfig containerd_config = 43; + * + * @return Whether the containerdConfig field is set. + */ + @java.lang.Override + public boolean hasContainerdConfig() { + return ((bitField0_ & 0x00010000) != 0); + } + /** + * + * + *
+   * Parameters for containerd customization.
+   * 
+ * + * .google.container.v1.ContainerdConfig containerd_config = 43; + * + * @return The containerdConfig. + */ + @java.lang.Override + public com.google.container.v1.ContainerdConfig getContainerdConfig() { + return containerdConfig_ == null + ? com.google.container.v1.ContainerdConfig.getDefaultInstance() + : containerdConfig_; + } + /** + * + * + *
+   * Parameters for containerd customization.
+   * 
+ * + * .google.container.v1.ContainerdConfig containerd_config = 43; + */ + @java.lang.Override + public com.google.container.v1.ContainerdConfigOrBuilder getContainerdConfigOrBuilder() { + return containerdConfig_ == null + ? com.google.container.v1.ContainerdConfig.getDefaultInstance() + : containerdConfig_; + } + public static final int RESOURCE_MANAGER_TAGS_FIELD_NUMBER = 45; private com.google.container.v1.ResourceManagerTags resourceManagerTags_; /** @@ -2253,7 +2303,7 @@ public com.google.container.v1.SoleTenantConfigOrBuilder getSoleTenantConfigOrBu */ @java.lang.Override public boolean hasResourceManagerTags() { - return ((bitField0_ & 0x00010000) != 0); + return ((bitField0_ & 0x00020000) != 0); } /** * @@ -2395,7 +2445,7 @@ public com.google.container.v1.SecondaryBootDiskOrBuilder getSecondaryBootDisksO */ @java.lang.Override public boolean hasSecondaryBootDiskUpdateStrategy() { - return ((bitField0_ & 0x00020000) != 0); + return ((bitField0_ & 0x00040000) != 0); } /** * @@ -2550,6 +2600,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(42, getSoleTenantConfig()); } if (((bitField0_ & 0x00010000) != 0)) { + output.writeMessage(43, getContainerdConfig()); + } + if (((bitField0_ & 0x00020000) != 0)) { output.writeMessage(45, getResourceManagerTags()); } if (enableConfidentialStorage_ != false) { @@ -2558,7 +2611,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < secondaryBootDisks_.size(); i++) { output.writeMessage(48, secondaryBootDisks_.get(i)); } - if (((bitField0_ & 0x00020000) != 0)) { + if (((bitField0_ & 0x00040000) != 0)) { output.writeMessage(50, getSecondaryBootDiskUpdateStrategy()); } getUnknownFields().writeTo(output); @@ -2713,6 +2766,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(42, getSoleTenantConfig()); } if (((bitField0_ & 0x00010000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(43, getContainerdConfig()); + } + if (((bitField0_ & 0x00020000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(45, getResourceManagerTags()); } @@ -2723,7 +2779,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(48, secondaryBootDisks_.get(i)); } - if (((bitField0_ & 0x00020000) != 0)) { + if (((bitField0_ & 0x00040000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 50, getSecondaryBootDiskUpdateStrategy()); @@ -2827,6 +2883,10 @@ public boolean equals(final java.lang.Object obj) { if (hasSoleTenantConfig()) { if (!getSoleTenantConfig().equals(other.getSoleTenantConfig())) return false; } + if (hasContainerdConfig() != other.hasContainerdConfig()) return false; + if (hasContainerdConfig()) { + if (!getContainerdConfig().equals(other.getContainerdConfig())) return false; + } if (hasResourceManagerTags() != other.hasResourceManagerTags()) return false; if (hasResourceManagerTags()) { if (!getResourceManagerTags().equals(other.getResourceManagerTags())) return false; @@ -2964,6 +3024,10 @@ public int hashCode() { hash = (37 * hash) + SOLE_TENANT_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getSoleTenantConfig().hashCode(); } + if (hasContainerdConfig()) { + hash = (37 * hash) + CONTAINERD_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getContainerdConfig().hashCode(); + } if (hasResourceManagerTags()) { hash = (37 * hash) + RESOURCE_MANAGER_TAGS_FIELD_NUMBER; hash = (53 * hash) + getResourceManagerTags().hashCode(); @@ -3170,6 +3234,7 @@ private void maybeForceBuilderInitialization() { getLocalNvmeSsdBlockConfigFieldBuilder(); getEphemeralStorageLocalSsdConfigFieldBuilder(); getSoleTenantConfigFieldBuilder(); + getContainerdConfigFieldBuilder(); getResourceManagerTagsFieldBuilder(); getSecondaryBootDisksFieldBuilder(); getSecondaryBootDiskUpdateStrategyFieldBuilder(); @@ -3291,6 +3356,11 @@ public Builder clear() { soleTenantConfigBuilder_.dispose(); soleTenantConfigBuilder_ = null; } + containerdConfig_ = null; + if (containerdConfigBuilder_ != null) { + containerdConfigBuilder_.dispose(); + containerdConfigBuilder_ = null; + } resourceManagerTags_ = null; if (resourceManagerTagsBuilder_ != null) { resourceManagerTagsBuilder_.dispose(); @@ -3303,7 +3373,7 @@ public Builder clear() { secondaryBootDisks_ = null; secondaryBootDisksBuilder_.clear(); } - bitField1_ = (bitField1_ & ~0x00000010); + bitField1_ = (bitField1_ & ~0x00000020); secondaryBootDiskUpdateStrategy_ = null; if (secondaryBootDiskUpdateStrategyBuilder_ != null) { secondaryBootDiskUpdateStrategyBuilder_.dispose(); @@ -3366,9 +3436,9 @@ private void buildPartialRepeatedFields(com.google.container.v1.NodeConfig resul result.taints_ = taintsBuilder_.build(); } if (secondaryBootDisksBuilder_ == null) { - if (((bitField1_ & 0x00000010) != 0)) { + if (((bitField1_ & 0x00000020) != 0)) { secondaryBootDisks_ = java.util.Collections.unmodifiableList(secondaryBootDisks_); - bitField1_ = (bitField1_ & ~0x00000010); + bitField1_ = (bitField1_ & ~0x00000020); } result.secondaryBootDisks_ = secondaryBootDisks_; } else { @@ -3532,21 +3602,26 @@ private void buildPartial1(com.google.container.v1.NodeConfig result) { to_bitField0_ |= 0x00008000; } if (((from_bitField1_ & 0x00000004) != 0)) { + result.containerdConfig_ = + containerdConfigBuilder_ == null ? containerdConfig_ : containerdConfigBuilder_.build(); + to_bitField0_ |= 0x00010000; + } + if (((from_bitField1_ & 0x00000008) != 0)) { result.resourceManagerTags_ = resourceManagerTagsBuilder_ == null ? resourceManagerTags_ : resourceManagerTagsBuilder_.build(); - to_bitField0_ |= 0x00010000; + to_bitField0_ |= 0x00020000; } - if (((from_bitField1_ & 0x00000008) != 0)) { + if (((from_bitField1_ & 0x00000010) != 0)) { result.enableConfidentialStorage_ = enableConfidentialStorage_; } - if (((from_bitField1_ & 0x00000020) != 0)) { + if (((from_bitField1_ & 0x00000040) != 0)) { result.secondaryBootDiskUpdateStrategy_ = secondaryBootDiskUpdateStrategyBuilder_ == null ? secondaryBootDiskUpdateStrategy_ : secondaryBootDiskUpdateStrategyBuilder_.build(); - to_bitField0_ |= 0x00020000; + to_bitField0_ |= 0x00040000; } result.bitField0_ |= to_bitField0_; } @@ -3771,6 +3846,9 @@ public Builder mergeFrom(com.google.container.v1.NodeConfig other) { if (other.hasSoleTenantConfig()) { mergeSoleTenantConfig(other.getSoleTenantConfig()); } + if (other.hasContainerdConfig()) { + mergeContainerdConfig(other.getContainerdConfig()); + } if (other.hasResourceManagerTags()) { mergeResourceManagerTags(other.getResourceManagerTags()); } @@ -3781,7 +3859,7 @@ public Builder mergeFrom(com.google.container.v1.NodeConfig other) { if (!other.secondaryBootDisks_.isEmpty()) { if (secondaryBootDisks_.isEmpty()) { secondaryBootDisks_ = other.secondaryBootDisks_; - bitField1_ = (bitField1_ & ~0x00000010); + bitField1_ = (bitField1_ & ~0x00000020); } else { ensureSecondaryBootDisksIsMutable(); secondaryBootDisks_.addAll(other.secondaryBootDisks_); @@ -3794,7 +3872,7 @@ public Builder mergeFrom(com.google.container.v1.NodeConfig other) { secondaryBootDisksBuilder_.dispose(); secondaryBootDisksBuilder_ = null; secondaryBootDisks_ = other.secondaryBootDisks_; - bitField1_ = (bitField1_ & ~0x00000010); + bitField1_ = (bitField1_ & ~0x00000020); secondaryBootDisksBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSecondaryBootDisksFieldBuilder() @@ -4081,17 +4159,24 @@ public Builder mergeFrom( bitField1_ |= 0x00000002; break; } // case 338 + case 346: + { + input.readMessage( + getContainerdConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField1_ |= 0x00000004; + break; + } // case 346 case 362: { input.readMessage( getResourceManagerTagsFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000008; break; } // case 362 case 368: { enableConfidentialStorage_ = input.readBool(); - bitField1_ |= 0x00000008; + bitField1_ |= 0x00000010; break; } // case 368 case 386: @@ -4112,7 +4197,7 @@ public Builder mergeFrom( input.readMessage( getSecondaryBootDiskUpdateStrategyFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000020; + bitField1_ |= 0x00000040; break; } // case 402 default: @@ -10365,6 +10450,192 @@ public com.google.container.v1.SoleTenantConfigOrBuilder getSoleTenantConfigOrBu return soleTenantConfigBuilder_; } + private com.google.container.v1.ContainerdConfig containerdConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ContainerdConfig, + com.google.container.v1.ContainerdConfig.Builder, + com.google.container.v1.ContainerdConfigOrBuilder> + containerdConfigBuilder_; + /** + * + * + *
+     * Parameters for containerd customization.
+     * 
+ * + * .google.container.v1.ContainerdConfig containerd_config = 43; + * + * @return Whether the containerdConfig field is set. + */ + public boolean hasContainerdConfig() { + return ((bitField1_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Parameters for containerd customization.
+     * 
+ * + * .google.container.v1.ContainerdConfig containerd_config = 43; + * + * @return The containerdConfig. + */ + public com.google.container.v1.ContainerdConfig getContainerdConfig() { + if (containerdConfigBuilder_ == null) { + return containerdConfig_ == null + ? com.google.container.v1.ContainerdConfig.getDefaultInstance() + : containerdConfig_; + } else { + return containerdConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Parameters for containerd customization.
+     * 
+ * + * .google.container.v1.ContainerdConfig containerd_config = 43; + */ + public Builder setContainerdConfig(com.google.container.v1.ContainerdConfig value) { + if (containerdConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + containerdConfig_ = value; + } else { + containerdConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Parameters for containerd customization.
+     * 
+ * + * .google.container.v1.ContainerdConfig containerd_config = 43; + */ + public Builder setContainerdConfig( + com.google.container.v1.ContainerdConfig.Builder builderForValue) { + if (containerdConfigBuilder_ == null) { + containerdConfig_ = builderForValue.build(); + } else { + containerdConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Parameters for containerd customization.
+     * 
+ * + * .google.container.v1.ContainerdConfig containerd_config = 43; + */ + public Builder mergeContainerdConfig(com.google.container.v1.ContainerdConfig value) { + if (containerdConfigBuilder_ == null) { + if (((bitField1_ & 0x00000004) != 0) + && containerdConfig_ != null + && containerdConfig_ != com.google.container.v1.ContainerdConfig.getDefaultInstance()) { + getContainerdConfigBuilder().mergeFrom(value); + } else { + containerdConfig_ = value; + } + } else { + containerdConfigBuilder_.mergeFrom(value); + } + if (containerdConfig_ != null) { + bitField1_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Parameters for containerd customization.
+     * 
+ * + * .google.container.v1.ContainerdConfig containerd_config = 43; + */ + public Builder clearContainerdConfig() { + bitField1_ = (bitField1_ & ~0x00000004); + containerdConfig_ = null; + if (containerdConfigBuilder_ != null) { + containerdConfigBuilder_.dispose(); + containerdConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Parameters for containerd customization.
+     * 
+ * + * .google.container.v1.ContainerdConfig containerd_config = 43; + */ + public com.google.container.v1.ContainerdConfig.Builder getContainerdConfigBuilder() { + bitField1_ |= 0x00000004; + onChanged(); + return getContainerdConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Parameters for containerd customization.
+     * 
+ * + * .google.container.v1.ContainerdConfig containerd_config = 43; + */ + public com.google.container.v1.ContainerdConfigOrBuilder getContainerdConfigOrBuilder() { + if (containerdConfigBuilder_ != null) { + return containerdConfigBuilder_.getMessageOrBuilder(); + } else { + return containerdConfig_ == null + ? com.google.container.v1.ContainerdConfig.getDefaultInstance() + : containerdConfig_; + } + } + /** + * + * + *
+     * Parameters for containerd customization.
+     * 
+ * + * .google.container.v1.ContainerdConfig containerd_config = 43; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ContainerdConfig, + com.google.container.v1.ContainerdConfig.Builder, + com.google.container.v1.ContainerdConfigOrBuilder> + getContainerdConfigFieldBuilder() { + if (containerdConfigBuilder_ == null) { + containerdConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ContainerdConfig, + com.google.container.v1.ContainerdConfig.Builder, + com.google.container.v1.ContainerdConfigOrBuilder>( + getContainerdConfig(), getParentForChildren(), isClean()); + containerdConfig_ = null; + } + return containerdConfigBuilder_; + } + private com.google.container.v1.ResourceManagerTags resourceManagerTags_; private com.google.protobuf.SingleFieldBuilderV3< com.google.container.v1.ResourceManagerTags, @@ -10383,7 +10654,7 @@ public com.google.container.v1.SoleTenantConfigOrBuilder getSoleTenantConfigOrBu * @return Whether the resourceManagerTags field is set. */ public boolean hasResourceManagerTags() { - return ((bitField1_ & 0x00000004) != 0); + return ((bitField1_ & 0x00000008) != 0); } /** * @@ -10423,7 +10694,7 @@ public Builder setResourceManagerTags(com.google.container.v1.ResourceManagerTag } else { resourceManagerTagsBuilder_.setMessage(value); } - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000008; onChanged(); return this; } @@ -10443,7 +10714,7 @@ public Builder setResourceManagerTags( } else { resourceManagerTagsBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000008; onChanged(); return this; } @@ -10458,7 +10729,7 @@ public Builder setResourceManagerTags( */ public Builder mergeResourceManagerTags(com.google.container.v1.ResourceManagerTags value) { if (resourceManagerTagsBuilder_ == null) { - if (((bitField1_ & 0x00000004) != 0) + if (((bitField1_ & 0x00000008) != 0) && resourceManagerTags_ != null && resourceManagerTags_ != com.google.container.v1.ResourceManagerTags.getDefaultInstance()) { @@ -10470,7 +10741,7 @@ public Builder mergeResourceManagerTags(com.google.container.v1.ResourceManagerT resourceManagerTagsBuilder_.mergeFrom(value); } if (resourceManagerTags_ != null) { - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000008; onChanged(); } return this; @@ -10485,7 +10756,7 @@ public Builder mergeResourceManagerTags(com.google.container.v1.ResourceManagerT * .google.container.v1.ResourceManagerTags resource_manager_tags = 45; */ public Builder clearResourceManagerTags() { - bitField1_ = (bitField1_ & ~0x00000004); + bitField1_ = (bitField1_ & ~0x00000008); resourceManagerTags_ = null; if (resourceManagerTagsBuilder_ != null) { resourceManagerTagsBuilder_.dispose(); @@ -10504,7 +10775,7 @@ public Builder clearResourceManagerTags() { * .google.container.v1.ResourceManagerTags resource_manager_tags = 45; */ public com.google.container.v1.ResourceManagerTags.Builder getResourceManagerTagsBuilder() { - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000008; onChanged(); return getResourceManagerTagsFieldBuilder().getBuilder(); } @@ -10583,7 +10854,7 @@ public boolean getEnableConfidentialStorage() { public Builder setEnableConfidentialStorage(boolean value) { enableConfidentialStorage_ = value; - bitField1_ |= 0x00000008; + bitField1_ |= 0x00000010; onChanged(); return this; } @@ -10599,7 +10870,7 @@ public Builder setEnableConfidentialStorage(boolean value) { * @return This builder for chaining. */ public Builder clearEnableConfidentialStorage() { - bitField1_ = (bitField1_ & ~0x00000008); + bitField1_ = (bitField1_ & ~0x00000010); enableConfidentialStorage_ = false; onChanged(); return this; @@ -10609,10 +10880,10 @@ public Builder clearEnableConfidentialStorage() { java.util.Collections.emptyList(); private void ensureSecondaryBootDisksIsMutable() { - if (!((bitField1_ & 0x00000010) != 0)) { + if (!((bitField1_ & 0x00000020) != 0)) { secondaryBootDisks_ = new java.util.ArrayList(secondaryBootDisks_); - bitField1_ |= 0x00000010; + bitField1_ |= 0x00000020; } } @@ -10830,7 +11101,7 @@ public Builder addAllSecondaryBootDisks( public Builder clearSecondaryBootDisks() { if (secondaryBootDisksBuilder_ == null) { secondaryBootDisks_ = java.util.Collections.emptyList(); - bitField1_ = (bitField1_ & ~0x00000010); + bitField1_ = (bitField1_ & ~0x00000020); onChanged(); } else { secondaryBootDisksBuilder_.clear(); @@ -10956,7 +11227,7 @@ public com.google.container.v1.SecondaryBootDisk.Builder addSecondaryBootDisksBu com.google.container.v1.SecondaryBootDisk.Builder, com.google.container.v1.SecondaryBootDiskOrBuilder>( secondaryBootDisks_, - ((bitField1_ & 0x00000010) != 0), + ((bitField1_ & 0x00000020) != 0), getParentForChildren(), isClean()); secondaryBootDisks_ = null; @@ -10985,7 +11256,7 @@ public com.google.container.v1.SecondaryBootDisk.Builder addSecondaryBootDisksBu * @return Whether the secondaryBootDiskUpdateStrategy field is set. */ public boolean hasSecondaryBootDiskUpdateStrategy() { - return ((bitField1_ & 0x00000020) != 0); + return ((bitField1_ & 0x00000040) != 0); } /** * @@ -11031,7 +11302,7 @@ public Builder setSecondaryBootDiskUpdateStrategy( } else { secondaryBootDiskUpdateStrategyBuilder_.setMessage(value); } - bitField1_ |= 0x00000020; + bitField1_ |= 0x00000040; onChanged(); return this; } @@ -11053,7 +11324,7 @@ public Builder setSecondaryBootDiskUpdateStrategy( } else { secondaryBootDiskUpdateStrategyBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x00000020; + bitField1_ |= 0x00000040; onChanged(); return this; } @@ -11071,7 +11342,7 @@ public Builder setSecondaryBootDiskUpdateStrategy( public Builder mergeSecondaryBootDiskUpdateStrategy( com.google.container.v1.SecondaryBootDiskUpdateStrategy value) { if (secondaryBootDiskUpdateStrategyBuilder_ == null) { - if (((bitField1_ & 0x00000020) != 0) + if (((bitField1_ & 0x00000040) != 0) && secondaryBootDiskUpdateStrategy_ != null && secondaryBootDiskUpdateStrategy_ != com.google.container.v1.SecondaryBootDiskUpdateStrategy.getDefaultInstance()) { @@ -11083,7 +11354,7 @@ public Builder mergeSecondaryBootDiskUpdateStrategy( secondaryBootDiskUpdateStrategyBuilder_.mergeFrom(value); } if (secondaryBootDiskUpdateStrategy_ != null) { - bitField1_ |= 0x00000020; + bitField1_ |= 0x00000040; onChanged(); } return this; @@ -11100,7 +11371,7 @@ public Builder mergeSecondaryBootDiskUpdateStrategy( *
*/ public Builder clearSecondaryBootDiskUpdateStrategy() { - bitField1_ = (bitField1_ & ~0x00000020); + bitField1_ = (bitField1_ & ~0x00000040); secondaryBootDiskUpdateStrategy_ = null; if (secondaryBootDiskUpdateStrategyBuilder_ != null) { secondaryBootDiskUpdateStrategyBuilder_.dispose(); @@ -11122,7 +11393,7 @@ public Builder clearSecondaryBootDiskUpdateStrategy() { */ public com.google.container.v1.SecondaryBootDiskUpdateStrategy.Builder getSecondaryBootDiskUpdateStrategyBuilder() { - bitField1_ |= 0x00000020; + bitField1_ |= 0x00000040; onChanged(); return getSecondaryBootDiskUpdateStrategyFieldBuilder().getBuilder(); } diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigDefaults.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigDefaults.java index 8e307227f95d..d0930305a4bb 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigDefaults.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigDefaults.java @@ -162,6 +162,112 @@ public com.google.container.v1.NodePoolLoggingConfigOrBuilder getLoggingConfigOr : loggingConfig_; } + public static final int CONTAINERD_CONFIG_FIELD_NUMBER = 4; + private com.google.container.v1.ContainerdConfig containerdConfig_; + /** + * + * + *
+   * Parameters for containerd customization.
+   * 
+ * + * .google.container.v1.ContainerdConfig containerd_config = 4; + * + * @return Whether the containerdConfig field is set. + */ + @java.lang.Override + public boolean hasContainerdConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+   * Parameters for containerd customization.
+   * 
+ * + * .google.container.v1.ContainerdConfig containerd_config = 4; + * + * @return The containerdConfig. + */ + @java.lang.Override + public com.google.container.v1.ContainerdConfig getContainerdConfig() { + return containerdConfig_ == null + ? com.google.container.v1.ContainerdConfig.getDefaultInstance() + : containerdConfig_; + } + /** + * + * + *
+   * Parameters for containerd customization.
+   * 
+ * + * .google.container.v1.ContainerdConfig containerd_config = 4; + */ + @java.lang.Override + public com.google.container.v1.ContainerdConfigOrBuilder getContainerdConfigOrBuilder() { + return containerdConfig_ == null + ? com.google.container.v1.ContainerdConfig.getDefaultInstance() + : containerdConfig_; + } + + public static final int NODE_KUBELET_CONFIG_FIELD_NUMBER = 6; + private com.google.container.v1.NodeKubeletConfig nodeKubeletConfig_; + /** + * + * + *
+   * NodeKubeletConfig controls the defaults for new node-pools.
+   *
+   * Currently only `insecure_kubelet_readonly_port_enabled` can be set here.
+   * 
+ * + * .google.container.v1.NodeKubeletConfig node_kubelet_config = 6; + * + * @return Whether the nodeKubeletConfig field is set. + */ + @java.lang.Override + public boolean hasNodeKubeletConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+   * NodeKubeletConfig controls the defaults for new node-pools.
+   *
+   * Currently only `insecure_kubelet_readonly_port_enabled` can be set here.
+   * 
+ * + * .google.container.v1.NodeKubeletConfig node_kubelet_config = 6; + * + * @return The nodeKubeletConfig. + */ + @java.lang.Override + public com.google.container.v1.NodeKubeletConfig getNodeKubeletConfig() { + return nodeKubeletConfig_ == null + ? com.google.container.v1.NodeKubeletConfig.getDefaultInstance() + : nodeKubeletConfig_; + } + /** + * + * + *
+   * NodeKubeletConfig controls the defaults for new node-pools.
+   *
+   * Currently only `insecure_kubelet_readonly_port_enabled` can be set here.
+   * 
+ * + * .google.container.v1.NodeKubeletConfig node_kubelet_config = 6; + */ + @java.lang.Override + public com.google.container.v1.NodeKubeletConfigOrBuilder getNodeKubeletConfigOrBuilder() { + return nodeKubeletConfig_ == null + ? com.google.container.v1.NodeKubeletConfig.getDefaultInstance() + : nodeKubeletConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -182,6 +288,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getLoggingConfig()); } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(4, getContainerdConfig()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(6, getNodeKubeletConfig()); + } getUnknownFields().writeTo(output); } @@ -197,6 +309,12 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getLoggingConfig()); } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getContainerdConfig()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getNodeKubeletConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -221,6 +339,14 @@ public boolean equals(final java.lang.Object obj) { if (hasLoggingConfig()) { if (!getLoggingConfig().equals(other.getLoggingConfig())) return false; } + if (hasContainerdConfig() != other.hasContainerdConfig()) return false; + if (hasContainerdConfig()) { + if (!getContainerdConfig().equals(other.getContainerdConfig())) return false; + } + if (hasNodeKubeletConfig() != other.hasNodeKubeletConfig()) return false; + if (hasNodeKubeletConfig()) { + if (!getNodeKubeletConfig().equals(other.getNodeKubeletConfig())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -240,6 +366,14 @@ public int hashCode() { hash = (37 * hash) + LOGGING_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getLoggingConfig().hashCode(); } + if (hasContainerdConfig()) { + hash = (37 * hash) + CONTAINERD_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getContainerdConfig().hashCode(); + } + if (hasNodeKubeletConfig()) { + hash = (37 * hash) + NODE_KUBELET_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getNodeKubeletConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -382,6 +516,8 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getGcfsConfigFieldBuilder(); getLoggingConfigFieldBuilder(); + getContainerdConfigFieldBuilder(); + getNodeKubeletConfigFieldBuilder(); } } @@ -399,6 +535,16 @@ public Builder clear() { loggingConfigBuilder_.dispose(); loggingConfigBuilder_ = null; } + containerdConfig_ = null; + if (containerdConfigBuilder_ != null) { + containerdConfigBuilder_.dispose(); + containerdConfigBuilder_ = null; + } + nodeKubeletConfig_ = null; + if (nodeKubeletConfigBuilder_ != null) { + nodeKubeletConfigBuilder_.dispose(); + nodeKubeletConfigBuilder_ = null; + } return this; } @@ -445,6 +591,18 @@ private void buildPartial0(com.google.container.v1.NodeConfigDefaults result) { loggingConfigBuilder_ == null ? loggingConfig_ : loggingConfigBuilder_.build(); to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.containerdConfig_ = + containerdConfigBuilder_ == null ? containerdConfig_ : containerdConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.nodeKubeletConfig_ = + nodeKubeletConfigBuilder_ == null + ? nodeKubeletConfig_ + : nodeKubeletConfigBuilder_.build(); + to_bitField0_ |= 0x00000008; + } result.bitField0_ |= to_bitField0_; } @@ -499,6 +657,12 @@ public Builder mergeFrom(com.google.container.v1.NodeConfigDefaults other) { if (other.hasLoggingConfig()) { mergeLoggingConfig(other.getLoggingConfig()); } + if (other.hasContainerdConfig()) { + mergeContainerdConfig(other.getContainerdConfig()); + } + if (other.hasNodeKubeletConfig()) { + mergeNodeKubeletConfig(other.getNodeKubeletConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -537,6 +701,20 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 26 + case 34: + { + input.readMessage( + getContainerdConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 50: + { + input.readMessage( + getNodeKubeletConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -928,6 +1106,397 @@ public com.google.container.v1.NodePoolLoggingConfigOrBuilder getLoggingConfigOr return loggingConfigBuilder_; } + private com.google.container.v1.ContainerdConfig containerdConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ContainerdConfig, + com.google.container.v1.ContainerdConfig.Builder, + com.google.container.v1.ContainerdConfigOrBuilder> + containerdConfigBuilder_; + /** + * + * + *
+     * Parameters for containerd customization.
+     * 
+ * + * .google.container.v1.ContainerdConfig containerd_config = 4; + * + * @return Whether the containerdConfig field is set. + */ + public boolean hasContainerdConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Parameters for containerd customization.
+     * 
+ * + * .google.container.v1.ContainerdConfig containerd_config = 4; + * + * @return The containerdConfig. + */ + public com.google.container.v1.ContainerdConfig getContainerdConfig() { + if (containerdConfigBuilder_ == null) { + return containerdConfig_ == null + ? com.google.container.v1.ContainerdConfig.getDefaultInstance() + : containerdConfig_; + } else { + return containerdConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Parameters for containerd customization.
+     * 
+ * + * .google.container.v1.ContainerdConfig containerd_config = 4; + */ + public Builder setContainerdConfig(com.google.container.v1.ContainerdConfig value) { + if (containerdConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + containerdConfig_ = value; + } else { + containerdConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Parameters for containerd customization.
+     * 
+ * + * .google.container.v1.ContainerdConfig containerd_config = 4; + */ + public Builder setContainerdConfig( + com.google.container.v1.ContainerdConfig.Builder builderForValue) { + if (containerdConfigBuilder_ == null) { + containerdConfig_ = builderForValue.build(); + } else { + containerdConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Parameters for containerd customization.
+     * 
+ * + * .google.container.v1.ContainerdConfig containerd_config = 4; + */ + public Builder mergeContainerdConfig(com.google.container.v1.ContainerdConfig value) { + if (containerdConfigBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && containerdConfig_ != null + && containerdConfig_ != com.google.container.v1.ContainerdConfig.getDefaultInstance()) { + getContainerdConfigBuilder().mergeFrom(value); + } else { + containerdConfig_ = value; + } + } else { + containerdConfigBuilder_.mergeFrom(value); + } + if (containerdConfig_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Parameters for containerd customization.
+     * 
+ * + * .google.container.v1.ContainerdConfig containerd_config = 4; + */ + public Builder clearContainerdConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + containerdConfig_ = null; + if (containerdConfigBuilder_ != null) { + containerdConfigBuilder_.dispose(); + containerdConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Parameters for containerd customization.
+     * 
+ * + * .google.container.v1.ContainerdConfig containerd_config = 4; + */ + public com.google.container.v1.ContainerdConfig.Builder getContainerdConfigBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getContainerdConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Parameters for containerd customization.
+     * 
+ * + * .google.container.v1.ContainerdConfig containerd_config = 4; + */ + public com.google.container.v1.ContainerdConfigOrBuilder getContainerdConfigOrBuilder() { + if (containerdConfigBuilder_ != null) { + return containerdConfigBuilder_.getMessageOrBuilder(); + } else { + return containerdConfig_ == null + ? com.google.container.v1.ContainerdConfig.getDefaultInstance() + : containerdConfig_; + } + } + /** + * + * + *
+     * Parameters for containerd customization.
+     * 
+ * + * .google.container.v1.ContainerdConfig containerd_config = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ContainerdConfig, + com.google.container.v1.ContainerdConfig.Builder, + com.google.container.v1.ContainerdConfigOrBuilder> + getContainerdConfigFieldBuilder() { + if (containerdConfigBuilder_ == null) { + containerdConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ContainerdConfig, + com.google.container.v1.ContainerdConfig.Builder, + com.google.container.v1.ContainerdConfigOrBuilder>( + getContainerdConfig(), getParentForChildren(), isClean()); + containerdConfig_ = null; + } + return containerdConfigBuilder_; + } + + private com.google.container.v1.NodeKubeletConfig nodeKubeletConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeKubeletConfig, + com.google.container.v1.NodeKubeletConfig.Builder, + com.google.container.v1.NodeKubeletConfigOrBuilder> + nodeKubeletConfigBuilder_; + /** + * + * + *
+     * NodeKubeletConfig controls the defaults for new node-pools.
+     *
+     * Currently only `insecure_kubelet_readonly_port_enabled` can be set here.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig node_kubelet_config = 6; + * + * @return Whether the nodeKubeletConfig field is set. + */ + public boolean hasNodeKubeletConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * NodeKubeletConfig controls the defaults for new node-pools.
+     *
+     * Currently only `insecure_kubelet_readonly_port_enabled` can be set here.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig node_kubelet_config = 6; + * + * @return The nodeKubeletConfig. + */ + public com.google.container.v1.NodeKubeletConfig getNodeKubeletConfig() { + if (nodeKubeletConfigBuilder_ == null) { + return nodeKubeletConfig_ == null + ? com.google.container.v1.NodeKubeletConfig.getDefaultInstance() + : nodeKubeletConfig_; + } else { + return nodeKubeletConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * NodeKubeletConfig controls the defaults for new node-pools.
+     *
+     * Currently only `insecure_kubelet_readonly_port_enabled` can be set here.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig node_kubelet_config = 6; + */ + public Builder setNodeKubeletConfig(com.google.container.v1.NodeKubeletConfig value) { + if (nodeKubeletConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nodeKubeletConfig_ = value; + } else { + nodeKubeletConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * NodeKubeletConfig controls the defaults for new node-pools.
+     *
+     * Currently only `insecure_kubelet_readonly_port_enabled` can be set here.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig node_kubelet_config = 6; + */ + public Builder setNodeKubeletConfig( + com.google.container.v1.NodeKubeletConfig.Builder builderForValue) { + if (nodeKubeletConfigBuilder_ == null) { + nodeKubeletConfig_ = builderForValue.build(); + } else { + nodeKubeletConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * NodeKubeletConfig controls the defaults for new node-pools.
+     *
+     * Currently only `insecure_kubelet_readonly_port_enabled` can be set here.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig node_kubelet_config = 6; + */ + public Builder mergeNodeKubeletConfig(com.google.container.v1.NodeKubeletConfig value) { + if (nodeKubeletConfigBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && nodeKubeletConfig_ != null + && nodeKubeletConfig_ + != com.google.container.v1.NodeKubeletConfig.getDefaultInstance()) { + getNodeKubeletConfigBuilder().mergeFrom(value); + } else { + nodeKubeletConfig_ = value; + } + } else { + nodeKubeletConfigBuilder_.mergeFrom(value); + } + if (nodeKubeletConfig_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
+     * NodeKubeletConfig controls the defaults for new node-pools.
+     *
+     * Currently only `insecure_kubelet_readonly_port_enabled` can be set here.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig node_kubelet_config = 6; + */ + public Builder clearNodeKubeletConfig() { + bitField0_ = (bitField0_ & ~0x00000008); + nodeKubeletConfig_ = null; + if (nodeKubeletConfigBuilder_ != null) { + nodeKubeletConfigBuilder_.dispose(); + nodeKubeletConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * NodeKubeletConfig controls the defaults for new node-pools.
+     *
+     * Currently only `insecure_kubelet_readonly_port_enabled` can be set here.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig node_kubelet_config = 6; + */ + public com.google.container.v1.NodeKubeletConfig.Builder getNodeKubeletConfigBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getNodeKubeletConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * NodeKubeletConfig controls the defaults for new node-pools.
+     *
+     * Currently only `insecure_kubelet_readonly_port_enabled` can be set here.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig node_kubelet_config = 6; + */ + public com.google.container.v1.NodeKubeletConfigOrBuilder getNodeKubeletConfigOrBuilder() { + if (nodeKubeletConfigBuilder_ != null) { + return nodeKubeletConfigBuilder_.getMessageOrBuilder(); + } else { + return nodeKubeletConfig_ == null + ? com.google.container.v1.NodeKubeletConfig.getDefaultInstance() + : nodeKubeletConfig_; + } + } + /** + * + * + *
+     * NodeKubeletConfig controls the defaults for new node-pools.
+     *
+     * Currently only `insecure_kubelet_readonly_port_enabled` can be set here.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig node_kubelet_config = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeKubeletConfig, + com.google.container.v1.NodeKubeletConfig.Builder, + com.google.container.v1.NodeKubeletConfigOrBuilder> + getNodeKubeletConfigFieldBuilder() { + if (nodeKubeletConfigBuilder_ == null) { + nodeKubeletConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeKubeletConfig, + com.google.container.v1.NodeKubeletConfig.Builder, + com.google.container.v1.NodeKubeletConfigOrBuilder>( + getNodeKubeletConfig(), getParentForChildren(), isClean()); + nodeKubeletConfig_ = null; + } + return nodeKubeletConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigDefaultsOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigDefaultsOrBuilder.java index 64b786a31788..a8cc4f005a01 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigDefaultsOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigDefaultsOrBuilder.java @@ -93,4 +93,80 @@ public interface NodeConfigDefaultsOrBuilder * .google.container.v1.NodePoolLoggingConfig logging_config = 3; */ com.google.container.v1.NodePoolLoggingConfigOrBuilder getLoggingConfigOrBuilder(); + + /** + * + * + *
+   * Parameters for containerd customization.
+   * 
+ * + * .google.container.v1.ContainerdConfig containerd_config = 4; + * + * @return Whether the containerdConfig field is set. + */ + boolean hasContainerdConfig(); + /** + * + * + *
+   * Parameters for containerd customization.
+   * 
+ * + * .google.container.v1.ContainerdConfig containerd_config = 4; + * + * @return The containerdConfig. + */ + com.google.container.v1.ContainerdConfig getContainerdConfig(); + /** + * + * + *
+   * Parameters for containerd customization.
+   * 
+ * + * .google.container.v1.ContainerdConfig containerd_config = 4; + */ + com.google.container.v1.ContainerdConfigOrBuilder getContainerdConfigOrBuilder(); + + /** + * + * + *
+   * NodeKubeletConfig controls the defaults for new node-pools.
+   *
+   * Currently only `insecure_kubelet_readonly_port_enabled` can be set here.
+   * 
+ * + * .google.container.v1.NodeKubeletConfig node_kubelet_config = 6; + * + * @return Whether the nodeKubeletConfig field is set. + */ + boolean hasNodeKubeletConfig(); + /** + * + * + *
+   * NodeKubeletConfig controls the defaults for new node-pools.
+   *
+   * Currently only `insecure_kubelet_readonly_port_enabled` can be set here.
+   * 
+ * + * .google.container.v1.NodeKubeletConfig node_kubelet_config = 6; + * + * @return The nodeKubeletConfig. + */ + com.google.container.v1.NodeKubeletConfig getNodeKubeletConfig(); + /** + * + * + *
+   * NodeKubeletConfig controls the defaults for new node-pools.
+   *
+   * Currently only `insecure_kubelet_readonly_port_enabled` can be set here.
+   * 
+ * + * .google.container.v1.NodeKubeletConfig node_kubelet_config = 6; + */ + com.google.container.v1.NodeKubeletConfigOrBuilder getNodeKubeletConfigOrBuilder(); } diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigOrBuilder.java index f9b610877ef8..83fcef36cbe2 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigOrBuilder.java @@ -1563,6 +1563,41 @@ java.lang.String getResourceLabelsOrDefault( */ com.google.container.v1.SoleTenantConfigOrBuilder getSoleTenantConfigOrBuilder(); + /** + * + * + *
+   * Parameters for containerd customization.
+   * 
+ * + * .google.container.v1.ContainerdConfig containerd_config = 43; + * + * @return Whether the containerdConfig field is set. + */ + boolean hasContainerdConfig(); + /** + * + * + *
+   * Parameters for containerd customization.
+   * 
+ * + * .google.container.v1.ContainerdConfig containerd_config = 43; + * + * @return The containerdConfig. + */ + com.google.container.v1.ContainerdConfig getContainerdConfig(); + /** + * + * + *
+   * Parameters for containerd customization.
+   * 
+ * + * .google.container.v1.ContainerdConfig containerd_config = 43; + */ + com.google.container.v1.ContainerdConfigOrBuilder getContainerdConfigOrBuilder(); + /** * * diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePool.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePool.java index 45b49ca8a3f6..5697554cffad 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePool.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePool.java @@ -6686,7 +6686,7 @@ public com.google.container.v1.NodePool.Status getStatus() { * string status_message = 104 [deprecated = true]; * * @deprecated google.container.v1.NodePool.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=3572 + * google/container/v1/cluster_service.proto;l=3686 * @return The statusMessage. */ @java.lang.Override @@ -6714,7 +6714,7 @@ public java.lang.String getStatusMessage() { * string status_message = 104 [deprecated = true]; * * @deprecated google.container.v1.NodePool.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=3572 + * google/container/v1/cluster_service.proto;l=3686 * @return The bytes for statusMessage. */ @java.lang.Override @@ -9638,7 +9638,7 @@ public Builder clearStatus() { * string status_message = 104 [deprecated = true]; * * @deprecated google.container.v1.NodePool.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=3572 + * google/container/v1/cluster_service.proto;l=3686 * @return The statusMessage. */ @java.lang.Deprecated @@ -9665,7 +9665,7 @@ public java.lang.String getStatusMessage() { * string status_message = 104 [deprecated = true]; * * @deprecated google.container.v1.NodePool.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=3572 + * google/container/v1/cluster_service.proto;l=3686 * @return The bytes for statusMessage. */ @java.lang.Deprecated @@ -9692,7 +9692,7 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { * string status_message = 104 [deprecated = true]; * * @deprecated google.container.v1.NodePool.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=3572 + * google/container/v1/cluster_service.proto;l=3686 * @param value The statusMessage to set. * @return This builder for chaining. */ @@ -9718,7 +9718,7 @@ public Builder setStatusMessage(java.lang.String value) { * string status_message = 104 [deprecated = true]; * * @deprecated google.container.v1.NodePool.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=3572 + * google/container/v1/cluster_service.proto;l=3686 * @return This builder for chaining. */ @java.lang.Deprecated @@ -9740,7 +9740,7 @@ public Builder clearStatusMessage() { * string status_message = 104 [deprecated = true]; * * @deprecated google.container.v1.NodePool.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=3572 + * google/container/v1/cluster_service.proto;l=3686 * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoConfig.java index 1cfd8b8ef04e..a079e4c1350b 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoConfig.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoConfig.java @@ -175,6 +175,62 @@ public com.google.container.v1.ResourceManagerTagsOrBuilder getResourceManagerTa : resourceManagerTags_; } + public static final int NODE_KUBELET_CONFIG_FIELD_NUMBER = 3; + private com.google.container.v1.NodeKubeletConfig nodeKubeletConfig_; + /** + * + * + *
+   * NodeKubeletConfig controls the defaults for autoprovisioned node-pools.
+   *
+   * Currently only `insecure_kubelet_readonly_port_enabled` can be set here.
+   * 
+ * + * .google.container.v1.NodeKubeletConfig node_kubelet_config = 3; + * + * @return Whether the nodeKubeletConfig field is set. + */ + @java.lang.Override + public boolean hasNodeKubeletConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+   * NodeKubeletConfig controls the defaults for autoprovisioned node-pools.
+   *
+   * Currently only `insecure_kubelet_readonly_port_enabled` can be set here.
+   * 
+ * + * .google.container.v1.NodeKubeletConfig node_kubelet_config = 3; + * + * @return The nodeKubeletConfig. + */ + @java.lang.Override + public com.google.container.v1.NodeKubeletConfig getNodeKubeletConfig() { + return nodeKubeletConfig_ == null + ? com.google.container.v1.NodeKubeletConfig.getDefaultInstance() + : nodeKubeletConfig_; + } + /** + * + * + *
+   * NodeKubeletConfig controls the defaults for autoprovisioned node-pools.
+   *
+   * Currently only `insecure_kubelet_readonly_port_enabled` can be set here.
+   * 
+ * + * .google.container.v1.NodeKubeletConfig node_kubelet_config = 3; + */ + @java.lang.Override + public com.google.container.v1.NodeKubeletConfigOrBuilder getNodeKubeletConfigOrBuilder() { + return nodeKubeletConfig_ == null + ? com.google.container.v1.NodeKubeletConfig.getDefaultInstance() + : nodeKubeletConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -195,6 +251,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getResourceManagerTags()); } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getNodeKubeletConfig()); + } getUnknownFields().writeTo(output); } @@ -210,6 +269,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getResourceManagerTags()); } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getNodeKubeletConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -234,6 +296,10 @@ public boolean equals(final java.lang.Object obj) { if (hasResourceManagerTags()) { if (!getResourceManagerTags().equals(other.getResourceManagerTags())) return false; } + if (hasNodeKubeletConfig() != other.hasNodeKubeletConfig()) return false; + if (hasNodeKubeletConfig()) { + if (!getNodeKubeletConfig().equals(other.getNodeKubeletConfig())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -253,6 +319,10 @@ public int hashCode() { hash = (37 * hash) + RESOURCE_MANAGER_TAGS_FIELD_NUMBER; hash = (53 * hash) + getResourceManagerTags().hashCode(); } + if (hasNodeKubeletConfig()) { + hash = (37 * hash) + NODE_KUBELET_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getNodeKubeletConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -396,6 +466,7 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getNetworkTagsFieldBuilder(); getResourceManagerTagsFieldBuilder(); + getNodeKubeletConfigFieldBuilder(); } } @@ -413,6 +484,11 @@ public Builder clear() { resourceManagerTagsBuilder_.dispose(); resourceManagerTagsBuilder_ = null; } + nodeKubeletConfig_ = null; + if (nodeKubeletConfigBuilder_ != null) { + nodeKubeletConfigBuilder_.dispose(); + nodeKubeletConfigBuilder_ = null; + } return this; } @@ -462,6 +538,13 @@ private void buildPartial0(com.google.container.v1.NodePoolAutoConfig result) { : resourceManagerTagsBuilder_.build(); to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.nodeKubeletConfig_ = + nodeKubeletConfigBuilder_ == null + ? nodeKubeletConfig_ + : nodeKubeletConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } result.bitField0_ |= to_bitField0_; } @@ -516,6 +599,9 @@ public Builder mergeFrom(com.google.container.v1.NodePoolAutoConfig other) { if (other.hasResourceManagerTags()) { mergeResourceManagerTags(other.getResourceManagerTags()); } + if (other.hasNodeKubeletConfig()) { + mergeNodeKubeletConfig(other.getNodeKubeletConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -555,6 +641,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 26: + { + input.readMessage( + getNodeKubeletConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -982,6 +1075,211 @@ public com.google.container.v1.ResourceManagerTagsOrBuilder getResourceManagerTa return resourceManagerTagsBuilder_; } + private com.google.container.v1.NodeKubeletConfig nodeKubeletConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeKubeletConfig, + com.google.container.v1.NodeKubeletConfig.Builder, + com.google.container.v1.NodeKubeletConfigOrBuilder> + nodeKubeletConfigBuilder_; + /** + * + * + *
+     * NodeKubeletConfig controls the defaults for autoprovisioned node-pools.
+     *
+     * Currently only `insecure_kubelet_readonly_port_enabled` can be set here.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig node_kubelet_config = 3; + * + * @return Whether the nodeKubeletConfig field is set. + */ + public boolean hasNodeKubeletConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * NodeKubeletConfig controls the defaults for autoprovisioned node-pools.
+     *
+     * Currently only `insecure_kubelet_readonly_port_enabled` can be set here.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig node_kubelet_config = 3; + * + * @return The nodeKubeletConfig. + */ + public com.google.container.v1.NodeKubeletConfig getNodeKubeletConfig() { + if (nodeKubeletConfigBuilder_ == null) { + return nodeKubeletConfig_ == null + ? com.google.container.v1.NodeKubeletConfig.getDefaultInstance() + : nodeKubeletConfig_; + } else { + return nodeKubeletConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * NodeKubeletConfig controls the defaults for autoprovisioned node-pools.
+     *
+     * Currently only `insecure_kubelet_readonly_port_enabled` can be set here.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig node_kubelet_config = 3; + */ + public Builder setNodeKubeletConfig(com.google.container.v1.NodeKubeletConfig value) { + if (nodeKubeletConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nodeKubeletConfig_ = value; + } else { + nodeKubeletConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * NodeKubeletConfig controls the defaults for autoprovisioned node-pools.
+     *
+     * Currently only `insecure_kubelet_readonly_port_enabled` can be set here.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig node_kubelet_config = 3; + */ + public Builder setNodeKubeletConfig( + com.google.container.v1.NodeKubeletConfig.Builder builderForValue) { + if (nodeKubeletConfigBuilder_ == null) { + nodeKubeletConfig_ = builderForValue.build(); + } else { + nodeKubeletConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * NodeKubeletConfig controls the defaults for autoprovisioned node-pools.
+     *
+     * Currently only `insecure_kubelet_readonly_port_enabled` can be set here.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig node_kubelet_config = 3; + */ + public Builder mergeNodeKubeletConfig(com.google.container.v1.NodeKubeletConfig value) { + if (nodeKubeletConfigBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && nodeKubeletConfig_ != null + && nodeKubeletConfig_ + != com.google.container.v1.NodeKubeletConfig.getDefaultInstance()) { + getNodeKubeletConfigBuilder().mergeFrom(value); + } else { + nodeKubeletConfig_ = value; + } + } else { + nodeKubeletConfigBuilder_.mergeFrom(value); + } + if (nodeKubeletConfig_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
+     * NodeKubeletConfig controls the defaults for autoprovisioned node-pools.
+     *
+     * Currently only `insecure_kubelet_readonly_port_enabled` can be set here.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig node_kubelet_config = 3; + */ + public Builder clearNodeKubeletConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + nodeKubeletConfig_ = null; + if (nodeKubeletConfigBuilder_ != null) { + nodeKubeletConfigBuilder_.dispose(); + nodeKubeletConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * NodeKubeletConfig controls the defaults for autoprovisioned node-pools.
+     *
+     * Currently only `insecure_kubelet_readonly_port_enabled` can be set here.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig node_kubelet_config = 3; + */ + public com.google.container.v1.NodeKubeletConfig.Builder getNodeKubeletConfigBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getNodeKubeletConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * NodeKubeletConfig controls the defaults for autoprovisioned node-pools.
+     *
+     * Currently only `insecure_kubelet_readonly_port_enabled` can be set here.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig node_kubelet_config = 3; + */ + public com.google.container.v1.NodeKubeletConfigOrBuilder getNodeKubeletConfigOrBuilder() { + if (nodeKubeletConfigBuilder_ != null) { + return nodeKubeletConfigBuilder_.getMessageOrBuilder(); + } else { + return nodeKubeletConfig_ == null + ? com.google.container.v1.NodeKubeletConfig.getDefaultInstance() + : nodeKubeletConfig_; + } + } + /** + * + * + *
+     * NodeKubeletConfig controls the defaults for autoprovisioned node-pools.
+     *
+     * Currently only `insecure_kubelet_readonly_port_enabled` can be set here.
+     * 
+ * + * .google.container.v1.NodeKubeletConfig node_kubelet_config = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeKubeletConfig, + com.google.container.v1.NodeKubeletConfig.Builder, + com.google.container.v1.NodeKubeletConfigOrBuilder> + getNodeKubeletConfigFieldBuilder() { + if (nodeKubeletConfigBuilder_ == null) { + nodeKubeletConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.NodeKubeletConfig, + com.google.container.v1.NodeKubeletConfig.Builder, + com.google.container.v1.NodeKubeletConfigOrBuilder>( + getNodeKubeletConfig(), getParentForChildren(), isClean()); + nodeKubeletConfig_ = null; + } + return nodeKubeletConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoConfigOrBuilder.java index 68c16872b3c2..090df4897c06 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoConfigOrBuilder.java @@ -105,4 +105,45 @@ public interface NodePoolAutoConfigOrBuilder * .google.container.v1.ResourceManagerTags resource_manager_tags = 2; */ com.google.container.v1.ResourceManagerTagsOrBuilder getResourceManagerTagsOrBuilder(); + + /** + * + * + *
+   * NodeKubeletConfig controls the defaults for autoprovisioned node-pools.
+   *
+   * Currently only `insecure_kubelet_readonly_port_enabled` can be set here.
+   * 
+ * + * .google.container.v1.NodeKubeletConfig node_kubelet_config = 3; + * + * @return Whether the nodeKubeletConfig field is set. + */ + boolean hasNodeKubeletConfig(); + /** + * + * + *
+   * NodeKubeletConfig controls the defaults for autoprovisioned node-pools.
+   *
+   * Currently only `insecure_kubelet_readonly_port_enabled` can be set here.
+   * 
+ * + * .google.container.v1.NodeKubeletConfig node_kubelet_config = 3; + * + * @return The nodeKubeletConfig. + */ + com.google.container.v1.NodeKubeletConfig getNodeKubeletConfig(); + /** + * + * + *
+   * NodeKubeletConfig controls the defaults for autoprovisioned node-pools.
+   *
+   * Currently only `insecure_kubelet_readonly_port_enabled` can be set here.
+   * 
+ * + * .google.container.v1.NodeKubeletConfig node_kubelet_config = 3; + */ + com.google.container.v1.NodeKubeletConfigOrBuilder getNodeKubeletConfigOrBuilder(); } diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolOrBuilder.java index d94929bee254..14d8bb6083fb 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolOrBuilder.java @@ -383,7 +383,7 @@ public interface NodePoolOrBuilder * string status_message = 104 [deprecated = true]; * * @deprecated google.container.v1.NodePool.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=3572 + * google/container/v1/cluster_service.proto;l=3686 * @return The statusMessage. */ @java.lang.Deprecated @@ -400,7 +400,7 @@ public interface NodePoolOrBuilder * string status_message = 104 [deprecated = true]; * * @deprecated google.container.v1.NodePool.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=3572 + * google/container/v1/cluster_service.proto;l=3686 * @return The bytes for statusMessage. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Operation.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Operation.java index a0904a2cd87f..7910f928c2bd 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Operation.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Operation.java @@ -989,7 +989,7 @@ public com.google.protobuf.ByteString getNameBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.Operation.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2475 + * google/container/v1/cluster_service.proto;l=2579 * @return The zone. */ @java.lang.Override @@ -1017,7 +1017,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.Operation.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2475 + * google/container/v1/cluster_service.proto;l=2579 * @return The bytes for zone. */ @java.lang.Override @@ -1172,7 +1172,7 @@ public com.google.protobuf.ByteString getDetailBytes() { *
* * @deprecated google.container.v1.Operation.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2488 + * google/container/v1/cluster_service.proto;l=2592 * @return The statusMessage. */ @java.lang.Override @@ -1201,7 +1201,7 @@ public java.lang.String getStatusMessage() { *
* * @deprecated google.container.v1.Operation.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2488 + * google/container/v1/cluster_service.proto;l=2592 * @return The bytes for statusMessage. */ @java.lang.Override @@ -2712,7 +2712,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.Operation.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2475 + * google/container/v1/cluster_service.proto;l=2579 * @return The zone. */ @java.lang.Deprecated @@ -2739,7 +2739,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.Operation.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2475 + * google/container/v1/cluster_service.proto;l=2579 * @return The bytes for zone. */ @java.lang.Deprecated @@ -2766,7 +2766,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.Operation.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2475 + * google/container/v1/cluster_service.proto;l=2579 * @param value The zone to set. * @return This builder for chaining. */ @@ -2792,7 +2792,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.Operation.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2475 + * google/container/v1/cluster_service.proto;l=2579 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2814,7 +2814,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.Operation.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2475 + * google/container/v1/cluster_service.proto;l=2579 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -3130,7 +3130,7 @@ public Builder setDetailBytes(com.google.protobuf.ByteString value) { *
* * @deprecated google.container.v1.Operation.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2488 + * google/container/v1/cluster_service.proto;l=2592 * @return The statusMessage. */ @java.lang.Deprecated @@ -3158,7 +3158,7 @@ public java.lang.String getStatusMessage() { *
* * @deprecated google.container.v1.Operation.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2488 + * google/container/v1/cluster_service.proto;l=2592 * @return The bytes for statusMessage. */ @java.lang.Deprecated @@ -3186,7 +3186,7 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { *
* * @deprecated google.container.v1.Operation.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2488 + * google/container/v1/cluster_service.proto;l=2592 * @param value The statusMessage to set. * @return This builder for chaining. */ @@ -3213,7 +3213,7 @@ public Builder setStatusMessage(java.lang.String value) { *
* * @deprecated google.container.v1.Operation.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2488 + * google/container/v1/cluster_service.proto;l=2592 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3236,7 +3236,7 @@ public Builder clearStatusMessage() { *
* * @deprecated google.container.v1.Operation.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2488 + * google/container/v1/cluster_service.proto;l=2592 * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationOrBuilder.java index e2520171eda2..7b7b6d6c458a 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationOrBuilder.java @@ -61,7 +61,7 @@ public interface OperationOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.Operation.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2475 + * google/container/v1/cluster_service.proto;l=2579 * @return The zone. */ @java.lang.Deprecated @@ -78,7 +78,7 @@ public interface OperationOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.Operation.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2475 + * google/container/v1/cluster_service.proto;l=2579 * @return The bytes for zone. */ @java.lang.Deprecated @@ -172,7 +172,7 @@ public interface OperationOrBuilder *
* * @deprecated google.container.v1.Operation.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2488 + * google/container/v1/cluster_service.proto;l=2592 * @return The statusMessage. */ @java.lang.Deprecated @@ -190,7 +190,7 @@ public interface OperationOrBuilder *
* * @deprecated google.container.v1.Operation.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2488 + * google/container/v1/cluster_service.proto;l=2592 * @return The bytes for statusMessage. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequest.java index 3d018c35850b..08b7685cbb03 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequest.java @@ -86,7 +86,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3858 + * google/container/v1/cluster_service.proto;l=3972 * @return The projectId. */ @java.lang.Override @@ -114,7 +114,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3858 + * google/container/v1/cluster_service.proto;l=3972 * @return The bytes for projectId. */ @java.lang.Override @@ -148,7 +148,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3864 + * google/container/v1/cluster_service.proto;l=3978 * @return The zone. */ @java.lang.Override @@ -177,7 +177,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3864 + * google/container/v1/cluster_service.proto;l=3978 * @return The bytes for zone. */ @java.lang.Override @@ -209,7 +209,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3868 + * google/container/v1/cluster_service.proto;l=3982 * @return The clusterId. */ @java.lang.Override @@ -236,7 +236,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3868 + * google/container/v1/cluster_service.proto;l=3982 * @return The bytes for clusterId. */ @java.lang.Override @@ -268,7 +268,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3872 + * google/container/v1/cluster_service.proto;l=3986 * @return The nodePoolId. */ @java.lang.Override @@ -295,7 +295,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3872 + * google/container/v1/cluster_service.proto;l=3986 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -862,7 +862,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3858 + * google/container/v1/cluster_service.proto;l=3972 * @return The projectId. */ @java.lang.Deprecated @@ -889,7 +889,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3858 + * google/container/v1/cluster_service.proto;l=3972 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -916,7 +916,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3858 + * google/container/v1/cluster_service.proto;l=3972 * @param value The projectId to set. * @return This builder for chaining. */ @@ -942,7 +942,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3858 + * google/container/v1/cluster_service.proto;l=3972 * @return This builder for chaining. */ @java.lang.Deprecated @@ -964,7 +964,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3858 + * google/container/v1/cluster_service.proto;l=3972 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -994,7 +994,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3864 + * google/container/v1/cluster_service.proto;l=3978 * @return The zone. */ @java.lang.Deprecated @@ -1022,7 +1022,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3864 + * google/container/v1/cluster_service.proto;l=3978 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1050,7 +1050,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3864 + * google/container/v1/cluster_service.proto;l=3978 * @param value The zone to set. * @return This builder for chaining. */ @@ -1077,7 +1077,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3864 + * google/container/v1/cluster_service.proto;l=3978 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1100,7 +1100,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3864 + * google/container/v1/cluster_service.proto;l=3978 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1128,7 +1128,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3868 + * google/container/v1/cluster_service.proto;l=3982 * @return The clusterId. */ @java.lang.Deprecated @@ -1154,7 +1154,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3868 + * google/container/v1/cluster_service.proto;l=3982 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1180,7 +1180,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3868 + * google/container/v1/cluster_service.proto;l=3982 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1205,7 +1205,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3868 + * google/container/v1/cluster_service.proto;l=3982 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1226,7 +1226,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3868 + * google/container/v1/cluster_service.proto;l=3982 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -1254,7 +1254,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. - * See google/container/v1/cluster_service.proto;l=3872 + * See google/container/v1/cluster_service.proto;l=3986 * @return The nodePoolId. */ @java.lang.Deprecated @@ -1280,7 +1280,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. - * See google/container/v1/cluster_service.proto;l=3872 + * See google/container/v1/cluster_service.proto;l=3986 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -1306,7 +1306,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. - * See google/container/v1/cluster_service.proto;l=3872 + * See google/container/v1/cluster_service.proto;l=3986 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -1331,7 +1331,7 @@ public Builder setNodePoolId(java.lang.String value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. - * See google/container/v1/cluster_service.proto;l=3872 + * See google/container/v1/cluster_service.proto;l=3986 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1352,7 +1352,7 @@ public Builder clearNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. - * See google/container/v1/cluster_service.proto;l=3872 + * See google/container/v1/cluster_service.proto;l=3986 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequestOrBuilder.java index 55a9b2228b56..71e8ee5158e2 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3858 + * google/container/v1/cluster_service.proto;l=3972 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3858 + * google/container/v1/cluster_service.proto;l=3972 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3864 + * google/container/v1/cluster_service.proto;l=3978 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3864 + * google/container/v1/cluster_service.proto;l=3978 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3868 + * google/container/v1/cluster_service.proto;l=3982 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3868 + * google/container/v1/cluster_service.proto;l=3982 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -140,7 +140,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3872 + * google/container/v1/cluster_service.proto;l=3986 * @return The nodePoolId. */ @java.lang.Deprecated @@ -156,7 +156,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3872 + * google/container/v1/cluster_service.proto;l=3986 * @return The bytes for nodePoolId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecurityPostureConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecurityPostureConfig.java index ad9001edf8d5..1507bf8c7130 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecurityPostureConfig.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecurityPostureConfig.java @@ -105,6 +105,16 @@ public enum Mode implements com.google.protobuf.ProtocolMessageEnum { * BASIC = 2; */ BASIC(2), + /** + * + * + *
+     * Applies the Security Posture off cluster Enterprise level features.
+     * 
+ * + * ENTERPRISE = 3; + */ + ENTERPRISE(3), UNRECOGNIZED(-1), ; @@ -138,6 +148,16 @@ public enum Mode implements com.google.protobuf.ProtocolMessageEnum { * BASIC = 2; */ public static final int BASIC_VALUE = 2; + /** + * + * + *
+     * Applies the Security Posture off cluster Enterprise level features.
+     * 
+ * + * ENTERPRISE = 3; + */ + public static final int ENTERPRISE_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -169,6 +189,8 @@ public static Mode forNumber(int value) { return DISABLED; case 2: return BASIC; + case 3: + return ENTERPRISE; default: return null; } diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequest.java index 4bfc7c733d14..f24882c440a7 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2892 + * google/container/v1/cluster_service.proto;l=3006 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2892 + * google/container/v1/cluster_service.proto;l=3006 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2898 + * google/container/v1/cluster_service.proto;l=3012 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2898 + * google/container/v1/cluster_service.proto;l=3012 * @return The bytes for zone. */ @java.lang.Override @@ -206,7 +206,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2902 + * google/container/v1/cluster_service.proto;l=3016 * @return The clusterId. */ @java.lang.Override @@ -233,7 +233,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2902 + * google/container/v1/cluster_service.proto;l=3016 * @return The bytes for clusterId. */ @java.lang.Override @@ -832,7 +832,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2892 + * google/container/v1/cluster_service.proto;l=3006 * @return The projectId. */ @java.lang.Deprecated @@ -859,7 +859,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2892 + * google/container/v1/cluster_service.proto;l=3006 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -886,7 +886,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2892 + * google/container/v1/cluster_service.proto;l=3006 * @param value The projectId to set. * @return This builder for chaining. */ @@ -912,7 +912,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2892 + * google/container/v1/cluster_service.proto;l=3006 * @return This builder for chaining. */ @java.lang.Deprecated @@ -934,7 +934,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2892 + * google/container/v1/cluster_service.proto;l=3006 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -964,7 +964,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2898 + * google/container/v1/cluster_service.proto;l=3012 * @return The zone. */ @java.lang.Deprecated @@ -992,7 +992,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2898 + * google/container/v1/cluster_service.proto;l=3012 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1020,7 +1020,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2898 + * google/container/v1/cluster_service.proto;l=3012 * @param value The zone to set. * @return This builder for chaining. */ @@ -1047,7 +1047,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2898 + * google/container/v1/cluster_service.proto;l=3012 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1070,7 +1070,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2898 + * google/container/v1/cluster_service.proto;l=3012 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1098,7 +1098,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2902 + * google/container/v1/cluster_service.proto;l=3016 * @return The clusterId. */ @java.lang.Deprecated @@ -1124,7 +1124,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2902 + * google/container/v1/cluster_service.proto;l=3016 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1150,7 +1150,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2902 + * google/container/v1/cluster_service.proto;l=3016 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1175,7 +1175,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2902 + * google/container/v1/cluster_service.proto;l=3016 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1196,7 +1196,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2902 + * google/container/v1/cluster_service.proto;l=3016 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequestOrBuilder.java index 4e67f73bd998..404b154337e0 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetAddonsConfigRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2892 + * google/container/v1/cluster_service.proto;l=3006 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface SetAddonsConfigRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2892 + * google/container/v1/cluster_service.proto;l=3006 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface SetAddonsConfigRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2898 + * google/container/v1/cluster_service.proto;l=3012 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface SetAddonsConfigRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2898 + * google/container/v1/cluster_service.proto;l=3012 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface SetAddonsConfigRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2902 + * google/container/v1/cluster_service.proto;l=3016 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface SetAddonsConfigRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2902 + * google/container/v1/cluster_service.proto;l=3016 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequest.java index 2fdcf81483ac..edce8991a1aa 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequest.java @@ -97,7 +97,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4054 + * google/container/v1/cluster_service.proto;l=4168 * @return The projectId. */ @java.lang.Override @@ -125,7 +125,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4054 + * google/container/v1/cluster_service.proto;l=4168 * @return The bytes for projectId. */ @java.lang.Override @@ -159,7 +159,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4060 + * google/container/v1/cluster_service.proto;l=4174 * @return The zone. */ @java.lang.Override @@ -188,7 +188,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4060 + * google/container/v1/cluster_service.proto;l=4174 * @return The bytes for zone. */ @java.lang.Override @@ -220,7 +220,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4064 + * google/container/v1/cluster_service.proto;l=4178 * @return The clusterId. */ @java.lang.Override @@ -247,7 +247,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4064 + * google/container/v1/cluster_service.proto;l=4178 * @return The bytes for clusterId. */ @java.lang.Override @@ -995,7 +995,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4054 + * google/container/v1/cluster_service.proto;l=4168 * @return The projectId. */ @java.lang.Deprecated @@ -1022,7 +1022,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4054 + * google/container/v1/cluster_service.proto;l=4168 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -1049,7 +1049,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4054 + * google/container/v1/cluster_service.proto;l=4168 * @param value The projectId to set. * @return This builder for chaining. */ @@ -1075,7 +1075,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4054 + * google/container/v1/cluster_service.proto;l=4168 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1097,7 +1097,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4054 + * google/container/v1/cluster_service.proto;l=4168 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -1127,7 +1127,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4060 + * google/container/v1/cluster_service.proto;l=4174 * @return The zone. */ @java.lang.Deprecated @@ -1155,7 +1155,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4060 + * google/container/v1/cluster_service.proto;l=4174 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1183,7 +1183,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4060 + * google/container/v1/cluster_service.proto;l=4174 * @param value The zone to set. * @return This builder for chaining. */ @@ -1210,7 +1210,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4060 + * google/container/v1/cluster_service.proto;l=4174 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1233,7 +1233,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4060 + * google/container/v1/cluster_service.proto;l=4174 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1261,7 +1261,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4064 + * google/container/v1/cluster_service.proto;l=4178 * @return The clusterId. */ @java.lang.Deprecated @@ -1287,7 +1287,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4064 + * google/container/v1/cluster_service.proto;l=4178 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1313,7 +1313,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4064 + * google/container/v1/cluster_service.proto;l=4178 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1338,7 +1338,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4064 + * google/container/v1/cluster_service.proto;l=4178 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1359,7 +1359,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4064 + * google/container/v1/cluster_service.proto;l=4178 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequestOrBuilder.java index 9cbdd9d4ac06..12ecfa8aaef8 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetLabelsRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4054 + * google/container/v1/cluster_service.proto;l=4168 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface SetLabelsRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4054 + * google/container/v1/cluster_service.proto;l=4168 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface SetLabelsRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4060 + * google/container/v1/cluster_service.proto;l=4174 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface SetLabelsRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4060 + * google/container/v1/cluster_service.proto;l=4174 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface SetLabelsRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4064 + * google/container/v1/cluster_service.proto;l=4178 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface SetLabelsRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4064 + * google/container/v1/cluster_service.proto;l=4178 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequest.java index cf9198657282..89a8b1afc82b 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4089 + * google/container/v1/cluster_service.proto;l=4203 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4089 + * google/container/v1/cluster_service.proto;l=4203 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4095 + * google/container/v1/cluster_service.proto;l=4209 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4095 + * google/container/v1/cluster_service.proto;l=4209 * @return The bytes for zone. */ @java.lang.Override @@ -206,7 +206,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4099 + * google/container/v1/cluster_service.proto;l=4213 * @return The clusterId. */ @java.lang.Override @@ -233,7 +233,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4099 + * google/container/v1/cluster_service.proto;l=4213 * @return The bytes for clusterId. */ @java.lang.Override @@ -770,7 +770,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4089 + * google/container/v1/cluster_service.proto;l=4203 * @return The projectId. */ @java.lang.Deprecated @@ -797,7 +797,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4089 + * google/container/v1/cluster_service.proto;l=4203 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -824,7 +824,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4089 + * google/container/v1/cluster_service.proto;l=4203 * @param value The projectId to set. * @return This builder for chaining. */ @@ -850,7 +850,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4089 + * google/container/v1/cluster_service.proto;l=4203 * @return This builder for chaining. */ @java.lang.Deprecated @@ -872,7 +872,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4089 + * google/container/v1/cluster_service.proto;l=4203 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -902,7 +902,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4095 + * google/container/v1/cluster_service.proto;l=4209 * @return The zone. */ @java.lang.Deprecated @@ -930,7 +930,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4095 + * google/container/v1/cluster_service.proto;l=4209 * @return The bytes for zone. */ @java.lang.Deprecated @@ -958,7 +958,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4095 + * google/container/v1/cluster_service.proto;l=4209 * @param value The zone to set. * @return This builder for chaining. */ @@ -985,7 +985,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4095 + * google/container/v1/cluster_service.proto;l=4209 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1008,7 +1008,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4095 + * google/container/v1/cluster_service.proto;l=4209 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1036,7 +1036,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4099 + * google/container/v1/cluster_service.proto;l=4213 * @return The clusterId. */ @java.lang.Deprecated @@ -1062,7 +1062,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4099 + * google/container/v1/cluster_service.proto;l=4213 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1088,7 +1088,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4099 + * google/container/v1/cluster_service.proto;l=4213 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1113,7 +1113,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4099 + * google/container/v1/cluster_service.proto;l=4213 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1134,7 +1134,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4099 + * google/container/v1/cluster_service.proto;l=4213 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequestOrBuilder.java index 1dc70de779d7..a285277bbb14 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetLegacyAbacRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4089 + * google/container/v1/cluster_service.proto;l=4203 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface SetLegacyAbacRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4089 + * google/container/v1/cluster_service.proto;l=4203 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface SetLegacyAbacRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4095 + * google/container/v1/cluster_service.proto;l=4209 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface SetLegacyAbacRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4095 + * google/container/v1/cluster_service.proto;l=4209 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface SetLegacyAbacRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4099 + * google/container/v1/cluster_service.proto;l=4213 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface SetLegacyAbacRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4099 + * google/container/v1/cluster_service.proto;l=4213 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequest.java index 201954e51cf3..a54feb81a337 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2918 + * google/container/v1/cluster_service.proto;l=3032 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2918 + * google/container/v1/cluster_service.proto;l=3032 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2924 + * google/container/v1/cluster_service.proto;l=3038 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2924 + * google/container/v1/cluster_service.proto;l=3038 * @return The bytes for zone. */ @java.lang.Override @@ -206,7 +206,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2928 + * google/container/v1/cluster_service.proto;l=3042 * @return The clusterId. */ @java.lang.Override @@ -233,7 +233,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2928 + * google/container/v1/cluster_service.proto;l=3042 * @return The bytes for clusterId. */ @java.lang.Override @@ -855,7 +855,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2918 + * google/container/v1/cluster_service.proto;l=3032 * @return The projectId. */ @java.lang.Deprecated @@ -882,7 +882,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2918 + * google/container/v1/cluster_service.proto;l=3032 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -909,7 +909,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2918 + * google/container/v1/cluster_service.proto;l=3032 * @param value The projectId to set. * @return This builder for chaining. */ @@ -935,7 +935,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2918 + * google/container/v1/cluster_service.proto;l=3032 * @return This builder for chaining. */ @java.lang.Deprecated @@ -957,7 +957,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2918 + * google/container/v1/cluster_service.proto;l=3032 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -987,7 +987,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2924 + * google/container/v1/cluster_service.proto;l=3038 * @return The zone. */ @java.lang.Deprecated @@ -1015,7 +1015,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2924 + * google/container/v1/cluster_service.proto;l=3038 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1043,7 +1043,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2924 + * google/container/v1/cluster_service.proto;l=3038 * @param value The zone to set. * @return This builder for chaining. */ @@ -1070,7 +1070,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2924 + * google/container/v1/cluster_service.proto;l=3038 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1093,7 +1093,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2924 + * google/container/v1/cluster_service.proto;l=3038 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1121,7 +1121,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2928 + * google/container/v1/cluster_service.proto;l=3042 * @return The clusterId. */ @java.lang.Deprecated @@ -1147,7 +1147,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2928 + * google/container/v1/cluster_service.proto;l=3042 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1173,7 +1173,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2928 + * google/container/v1/cluster_service.proto;l=3042 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1198,7 +1198,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2928 + * google/container/v1/cluster_service.proto;l=3042 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1219,7 +1219,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2928 + * google/container/v1/cluster_service.proto;l=3042 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequestOrBuilder.java index 0874467be25a..09105d3c3222 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetLocationsRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2918 + * google/container/v1/cluster_service.proto;l=3032 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface SetLocationsRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2918 + * google/container/v1/cluster_service.proto;l=3032 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface SetLocationsRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2924 + * google/container/v1/cluster_service.proto;l=3038 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface SetLocationsRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2924 + * google/container/v1/cluster_service.proto;l=3038 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface SetLocationsRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2928 + * google/container/v1/cluster_service.proto;l=3042 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface SetLocationsRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2928 + * google/container/v1/cluster_service.proto;l=3042 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequest.java index 8c98d43b6948..164d56625a52 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2822 + * google/container/v1/cluster_service.proto;l=2936 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2822 + * google/container/v1/cluster_service.proto;l=2936 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2828 + * google/container/v1/cluster_service.proto;l=2942 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2828 + * google/container/v1/cluster_service.proto;l=2942 * @return The bytes for zone. */ @java.lang.Override @@ -206,7 +206,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2832 + * google/container/v1/cluster_service.proto;l=2946 * @return The clusterId. */ @java.lang.Override @@ -233,7 +233,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2832 + * google/container/v1/cluster_service.proto;l=2946 * @return The bytes for clusterId. */ @java.lang.Override @@ -825,7 +825,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2822 + * google/container/v1/cluster_service.proto;l=2936 * @return The projectId. */ @java.lang.Deprecated @@ -852,7 +852,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2822 + * google/container/v1/cluster_service.proto;l=2936 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -879,7 +879,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2822 + * google/container/v1/cluster_service.proto;l=2936 * @param value The projectId to set. * @return This builder for chaining. */ @@ -905,7 +905,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2822 + * google/container/v1/cluster_service.proto;l=2936 * @return This builder for chaining. */ @java.lang.Deprecated @@ -927,7 +927,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2822 + * google/container/v1/cluster_service.proto;l=2936 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -957,7 +957,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2828 + * google/container/v1/cluster_service.proto;l=2942 * @return The zone. */ @java.lang.Deprecated @@ -985,7 +985,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2828 + * google/container/v1/cluster_service.proto;l=2942 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1013,7 +1013,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2828 + * google/container/v1/cluster_service.proto;l=2942 * @param value The zone to set. * @return This builder for chaining. */ @@ -1040,7 +1040,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2828 + * google/container/v1/cluster_service.proto;l=2942 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1063,7 +1063,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2828 + * google/container/v1/cluster_service.proto;l=2942 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1091,7 +1091,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2832 + * google/container/v1/cluster_service.proto;l=2946 * @return The clusterId. */ @java.lang.Deprecated @@ -1117,7 +1117,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2832 + * google/container/v1/cluster_service.proto;l=2946 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1143,7 +1143,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2832 + * google/container/v1/cluster_service.proto;l=2946 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1168,7 +1168,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2832 + * google/container/v1/cluster_service.proto;l=2946 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1189,7 +1189,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2832 + * google/container/v1/cluster_service.proto;l=2946 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequestOrBuilder.java index fd765bd9f483..30dad7b479c4 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetLoggingServiceRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2822 + * google/container/v1/cluster_service.proto;l=2936 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface SetLoggingServiceRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2822 + * google/container/v1/cluster_service.proto;l=2936 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface SetLoggingServiceRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2828 + * google/container/v1/cluster_service.proto;l=2942 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface SetLoggingServiceRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2828 + * google/container/v1/cluster_service.proto;l=2942 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface SetLoggingServiceRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2832 + * google/container/v1/cluster_service.proto;l=2946 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface SetLoggingServiceRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2832 + * google/container/v1/cluster_service.proto;l=2946 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequest.java index fd519cffa297..1ccd3d547fd2 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequest.java @@ -269,7 +269,7 @@ private Action(int value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3001 + * google/container/v1/cluster_service.proto;l=3115 * @return The projectId. */ @java.lang.Override @@ -297,7 +297,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3001 + * google/container/v1/cluster_service.proto;l=3115 * @return The bytes for projectId. */ @java.lang.Override @@ -331,7 +331,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3007 + * google/container/v1/cluster_service.proto;l=3121 * @return The zone. */ @java.lang.Override @@ -360,7 +360,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3007 + * google/container/v1/cluster_service.proto;l=3121 * @return The bytes for zone. */ @java.lang.Override @@ -392,7 +392,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3011 + * google/container/v1/cluster_service.proto;l=3125 * @return The clusterId. */ @java.lang.Override @@ -419,7 +419,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3011 + * google/container/v1/cluster_service.proto;l=3125 * @return The bytes for clusterId. */ @java.lang.Override @@ -1070,7 +1070,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3001 + * google/container/v1/cluster_service.proto;l=3115 * @return The projectId. */ @java.lang.Deprecated @@ -1097,7 +1097,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3001 + * google/container/v1/cluster_service.proto;l=3115 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -1124,7 +1124,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3001 + * google/container/v1/cluster_service.proto;l=3115 * @param value The projectId to set. * @return This builder for chaining. */ @@ -1150,7 +1150,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3001 + * google/container/v1/cluster_service.proto;l=3115 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1172,7 +1172,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3001 + * google/container/v1/cluster_service.proto;l=3115 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -1202,7 +1202,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3007 + * google/container/v1/cluster_service.proto;l=3121 * @return The zone. */ @java.lang.Deprecated @@ -1230,7 +1230,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3007 + * google/container/v1/cluster_service.proto;l=3121 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1258,7 +1258,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3007 + * google/container/v1/cluster_service.proto;l=3121 * @param value The zone to set. * @return This builder for chaining. */ @@ -1285,7 +1285,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3007 + * google/container/v1/cluster_service.proto;l=3121 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1308,7 +1308,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3007 + * google/container/v1/cluster_service.proto;l=3121 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1336,7 +1336,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3011 + * google/container/v1/cluster_service.proto;l=3125 * @return The clusterId. */ @java.lang.Deprecated @@ -1362,7 +1362,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3011 + * google/container/v1/cluster_service.proto;l=3125 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1388,7 +1388,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3011 + * google/container/v1/cluster_service.proto;l=3125 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1413,7 +1413,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3011 + * google/container/v1/cluster_service.proto;l=3125 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1434,7 +1434,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3011 + * google/container/v1/cluster_service.proto;l=3125 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequestOrBuilder.java index a29d09ab4b93..2bd5d70eb750 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetMasterAuthRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3001 + * google/container/v1/cluster_service.proto;l=3115 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface SetMasterAuthRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3001 + * google/container/v1/cluster_service.proto;l=3115 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface SetMasterAuthRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3007 + * google/container/v1/cluster_service.proto;l=3121 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface SetMasterAuthRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3007 + * google/container/v1/cluster_service.proto;l=3121 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface SetMasterAuthRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3011 + * google/container/v1/cluster_service.proto;l=3125 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface SetMasterAuthRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3011 + * google/container/v1/cluster_service.proto;l=3125 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequest.java index dad732f339f0..4505c3acded7 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2857 + * google/container/v1/cluster_service.proto;l=2971 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2857 + * google/container/v1/cluster_service.proto;l=2971 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2863 + * google/container/v1/cluster_service.proto;l=2977 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2863 + * google/container/v1/cluster_service.proto;l=2977 * @return The bytes for zone. */ @java.lang.Override @@ -206,7 +206,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2867 + * google/container/v1/cluster_service.proto;l=2981 * @return The clusterId. */ @java.lang.Override @@ -233,7 +233,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2867 + * google/container/v1/cluster_service.proto;l=2981 * @return The bytes for clusterId. */ @java.lang.Override @@ -825,7 +825,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2857 + * google/container/v1/cluster_service.proto;l=2971 * @return The projectId. */ @java.lang.Deprecated @@ -852,7 +852,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2857 + * google/container/v1/cluster_service.proto;l=2971 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -879,7 +879,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2857 + * google/container/v1/cluster_service.proto;l=2971 * @param value The projectId to set. * @return This builder for chaining. */ @@ -905,7 +905,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2857 + * google/container/v1/cluster_service.proto;l=2971 * @return This builder for chaining. */ @java.lang.Deprecated @@ -927,7 +927,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2857 + * google/container/v1/cluster_service.proto;l=2971 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -957,7 +957,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2863 + * google/container/v1/cluster_service.proto;l=2977 * @return The zone. */ @java.lang.Deprecated @@ -985,7 +985,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2863 + * google/container/v1/cluster_service.proto;l=2977 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1013,7 +1013,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2863 + * google/container/v1/cluster_service.proto;l=2977 * @param value The zone to set. * @return This builder for chaining. */ @@ -1040,7 +1040,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2863 + * google/container/v1/cluster_service.proto;l=2977 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1063,7 +1063,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2863 + * google/container/v1/cluster_service.proto;l=2977 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1091,7 +1091,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2867 + * google/container/v1/cluster_service.proto;l=2981 * @return The clusterId. */ @java.lang.Deprecated @@ -1117,7 +1117,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2867 + * google/container/v1/cluster_service.proto;l=2981 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1143,7 +1143,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2867 + * google/container/v1/cluster_service.proto;l=2981 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1168,7 +1168,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2867 + * google/container/v1/cluster_service.proto;l=2981 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1189,7 +1189,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2867 + * google/container/v1/cluster_service.proto;l=2981 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequestOrBuilder.java index dbfa09650006..cf7f16c99b27 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetMonitoringServiceRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2857 + * google/container/v1/cluster_service.proto;l=2971 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface SetMonitoringServiceRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2857 + * google/container/v1/cluster_service.proto;l=2971 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface SetMonitoringServiceRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2863 + * google/container/v1/cluster_service.proto;l=2977 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface SetMonitoringServiceRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2863 + * google/container/v1/cluster_service.proto;l=2977 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface SetMonitoringServiceRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2867 + * google/container/v1/cluster_service.proto;l=2981 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface SetMonitoringServiceRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2867 + * google/container/v1/cluster_service.proto;l=2981 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequest.java index 34389ce72a14..250b55ca26b6 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4249 + * google/container/v1/cluster_service.proto;l=4366 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4249 + * google/container/v1/cluster_service.proto;l=4366 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4255 + * google/container/v1/cluster_service.proto;l=4372 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4255 + * google/container/v1/cluster_service.proto;l=4372 * @return The bytes for zone. */ @java.lang.Override @@ -206,7 +206,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4259 + * google/container/v1/cluster_service.proto;l=4376 * @return The clusterId. */ @java.lang.Override @@ -233,7 +233,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4259 + * google/container/v1/cluster_service.proto;l=4376 * @return The bytes for clusterId. */ @java.lang.Override @@ -830,7 +830,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4249 + * google/container/v1/cluster_service.proto;l=4366 * @return The projectId. */ @java.lang.Deprecated @@ -857,7 +857,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4249 + * google/container/v1/cluster_service.proto;l=4366 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -884,7 +884,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4249 + * google/container/v1/cluster_service.proto;l=4366 * @param value The projectId to set. * @return This builder for chaining. */ @@ -910,7 +910,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4249 + * google/container/v1/cluster_service.proto;l=4366 * @return This builder for chaining. */ @java.lang.Deprecated @@ -932,7 +932,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4249 + * google/container/v1/cluster_service.proto;l=4366 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -962,7 +962,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4255 + * google/container/v1/cluster_service.proto;l=4372 * @return The zone. */ @java.lang.Deprecated @@ -990,7 +990,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4255 + * google/container/v1/cluster_service.proto;l=4372 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1018,7 +1018,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4255 + * google/container/v1/cluster_service.proto;l=4372 * @param value The zone to set. * @return This builder for chaining. */ @@ -1045,7 +1045,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4255 + * google/container/v1/cluster_service.proto;l=4372 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1068,7 +1068,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4255 + * google/container/v1/cluster_service.proto;l=4372 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1096,7 +1096,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4259 + * google/container/v1/cluster_service.proto;l=4376 * @return The clusterId. */ @java.lang.Deprecated @@ -1122,7 +1122,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4259 + * google/container/v1/cluster_service.proto;l=4376 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1148,7 +1148,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4259 + * google/container/v1/cluster_service.proto;l=4376 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1173,7 +1173,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4259 + * google/container/v1/cluster_service.proto;l=4376 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1194,7 +1194,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4259 + * google/container/v1/cluster_service.proto;l=4376 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequestOrBuilder.java index dcfc7741081e..299c544eeb6e 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetNetworkPolicyRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4249 + * google/container/v1/cluster_service.proto;l=4366 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface SetNetworkPolicyRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4249 + * google/container/v1/cluster_service.proto;l=4366 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface SetNetworkPolicyRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4255 + * google/container/v1/cluster_service.proto;l=4372 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface SetNetworkPolicyRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4255 + * google/container/v1/cluster_service.proto;l=4372 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface SetNetworkPolicyRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4259 + * google/container/v1/cluster_service.proto;l=4376 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface SetNetworkPolicyRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4259 + * google/container/v1/cluster_service.proto;l=4376 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequest.java index fd83c4a2bc1d..00ca5f58edf1 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequest.java @@ -84,7 +84,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2792 + * google/container/v1/cluster_service.proto;l=2906 * @return The projectId. */ @java.lang.Override @@ -112,7 +112,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2792 + * google/container/v1/cluster_service.proto;l=2906 * @return The bytes for projectId. */ @java.lang.Override @@ -146,7 +146,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2798 + * google/container/v1/cluster_service.proto;l=2912 * @return The zone. */ @java.lang.Override @@ -175,7 +175,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2798 + * google/container/v1/cluster_service.proto;l=2912 * @return The bytes for zone. */ @java.lang.Override @@ -207,7 +207,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2802 + * google/container/v1/cluster_service.proto;l=2916 * @return The clusterId. */ @java.lang.Override @@ -234,7 +234,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2802 + * google/container/v1/cluster_service.proto;l=2916 * @return The bytes for clusterId. */ @java.lang.Override @@ -266,7 +266,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2806 + * google/container/v1/cluster_service.proto;l=2920 * @return The nodePoolId. */ @java.lang.Override @@ -293,7 +293,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2806 + * google/container/v1/cluster_service.proto;l=2920 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -917,7 +917,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2792 + * google/container/v1/cluster_service.proto;l=2906 * @return The projectId. */ @java.lang.Deprecated @@ -944,7 +944,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2792 + * google/container/v1/cluster_service.proto;l=2906 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -971,7 +971,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2792 + * google/container/v1/cluster_service.proto;l=2906 * @param value The projectId to set. * @return This builder for chaining. */ @@ -997,7 +997,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2792 + * google/container/v1/cluster_service.proto;l=2906 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1019,7 +1019,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2792 + * google/container/v1/cluster_service.proto;l=2906 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -1049,7 +1049,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2798 + * google/container/v1/cluster_service.proto;l=2912 * @return The zone. */ @java.lang.Deprecated @@ -1077,7 +1077,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2798 + * google/container/v1/cluster_service.proto;l=2912 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1105,7 +1105,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2798 + * google/container/v1/cluster_service.proto;l=2912 * @param value The zone to set. * @return This builder for chaining. */ @@ -1132,7 +1132,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2798 + * google/container/v1/cluster_service.proto;l=2912 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1155,7 +1155,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2798 + * google/container/v1/cluster_service.proto;l=2912 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1183,7 +1183,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2802 + * google/container/v1/cluster_service.proto;l=2916 * @return The clusterId. */ @java.lang.Deprecated @@ -1209,7 +1209,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2802 + * google/container/v1/cluster_service.proto;l=2916 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1235,7 +1235,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2802 + * google/container/v1/cluster_service.proto;l=2916 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1260,7 +1260,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2802 + * google/container/v1/cluster_service.proto;l=2916 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1281,7 +1281,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2802 + * google/container/v1/cluster_service.proto;l=2916 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -1309,7 +1309,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2806 + * google/container/v1/cluster_service.proto;l=2920 * @return The nodePoolId. */ @java.lang.Deprecated @@ -1335,7 +1335,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2806 + * google/container/v1/cluster_service.proto;l=2920 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -1361,7 +1361,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2806 + * google/container/v1/cluster_service.proto;l=2920 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -1386,7 +1386,7 @@ public Builder setNodePoolId(java.lang.String value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2806 + * google/container/v1/cluster_service.proto;l=2920 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1407,7 +1407,7 @@ public Builder clearNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2806 + * google/container/v1/cluster_service.proto;l=2920 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequestOrBuilder.java index 300eee9acb35..43a2562a542c 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2792 + * google/container/v1/cluster_service.proto;l=2906 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2792 + * google/container/v1/cluster_service.proto;l=2906 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2798 + * google/container/v1/cluster_service.proto;l=2912 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2798 + * google/container/v1/cluster_service.proto;l=2912 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2802 + * google/container/v1/cluster_service.proto;l=2916 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2802 + * google/container/v1/cluster_service.proto;l=2916 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -140,7 +140,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2806 + * google/container/v1/cluster_service.proto;l=2920 * @return The nodePoolId. */ @java.lang.Deprecated @@ -156,7 +156,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2806 + * google/container/v1/cluster_service.proto;l=2920 * @return The bytes for nodePoolId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequest.java index e73319129925..8d586b477f62 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequest.java @@ -85,7 +85,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3787 + * google/container/v1/cluster_service.proto;l=3901 * @return The projectId. */ @java.lang.Override @@ -113,7 +113,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3787 + * google/container/v1/cluster_service.proto;l=3901 * @return The bytes for projectId. */ @java.lang.Override @@ -147,7 +147,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3793 + * google/container/v1/cluster_service.proto;l=3907 * @return The zone. */ @java.lang.Override @@ -176,7 +176,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3793 + * google/container/v1/cluster_service.proto;l=3907 * @return The bytes for zone. */ @java.lang.Override @@ -208,7 +208,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3797 + * google/container/v1/cluster_service.proto;l=3911 * @return The clusterId. */ @java.lang.Override @@ -235,7 +235,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3797 + * google/container/v1/cluster_service.proto;l=3911 * @return The bytes for clusterId. */ @java.lang.Override @@ -267,7 +267,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3801 + * google/container/v1/cluster_service.proto;l=3915 * @return The nodePoolId. */ @java.lang.Override @@ -294,7 +294,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3801 + * google/container/v1/cluster_service.proto;l=3915 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -917,7 +917,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3787 + * google/container/v1/cluster_service.proto;l=3901 * @return The projectId. */ @java.lang.Deprecated @@ -944,7 +944,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3787 + * google/container/v1/cluster_service.proto;l=3901 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -971,7 +971,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3787 + * google/container/v1/cluster_service.proto;l=3901 * @param value The projectId to set. * @return This builder for chaining. */ @@ -997,7 +997,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3787 + * google/container/v1/cluster_service.proto;l=3901 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1019,7 +1019,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3787 + * google/container/v1/cluster_service.proto;l=3901 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -1049,7 +1049,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3793 + * google/container/v1/cluster_service.proto;l=3907 * @return The zone. */ @java.lang.Deprecated @@ -1077,7 +1077,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3793 + * google/container/v1/cluster_service.proto;l=3907 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1105,7 +1105,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3793 + * google/container/v1/cluster_service.proto;l=3907 * @param value The zone to set. * @return This builder for chaining. */ @@ -1132,7 +1132,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3793 + * google/container/v1/cluster_service.proto;l=3907 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1155,7 +1155,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3793 + * google/container/v1/cluster_service.proto;l=3907 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1183,7 +1183,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3797 + * google/container/v1/cluster_service.proto;l=3911 * @return The clusterId. */ @java.lang.Deprecated @@ -1209,7 +1209,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3797 + * google/container/v1/cluster_service.proto;l=3911 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1235,7 +1235,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3797 + * google/container/v1/cluster_service.proto;l=3911 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1260,7 +1260,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3797 + * google/container/v1/cluster_service.proto;l=3911 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1281,7 +1281,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3797 + * google/container/v1/cluster_service.proto;l=3911 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -1309,7 +1309,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3801 + * google/container/v1/cluster_service.proto;l=3915 * @return The nodePoolId. */ @java.lang.Deprecated @@ -1335,7 +1335,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3801 + * google/container/v1/cluster_service.proto;l=3915 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -1361,7 +1361,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3801 + * google/container/v1/cluster_service.proto;l=3915 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -1386,7 +1386,7 @@ public Builder setNodePoolId(java.lang.String value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3801 + * google/container/v1/cluster_service.proto;l=3915 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1407,7 +1407,7 @@ public Builder clearNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3801 + * google/container/v1/cluster_service.proto;l=3915 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequestOrBuilder.java index e0aa0f18d5f4..a59d857e1756 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetNodePoolManagementRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3787 + * google/container/v1/cluster_service.proto;l=3901 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface SetNodePoolManagementRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3787 + * google/container/v1/cluster_service.proto;l=3901 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface SetNodePoolManagementRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3793 + * google/container/v1/cluster_service.proto;l=3907 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface SetNodePoolManagementRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3793 + * google/container/v1/cluster_service.proto;l=3907 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface SetNodePoolManagementRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3797 + * google/container/v1/cluster_service.proto;l=3911 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface SetNodePoolManagementRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3797 + * google/container/v1/cluster_service.proto;l=3911 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -140,7 +140,7 @@ public interface SetNodePoolManagementRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3801 + * google/container/v1/cluster_service.proto;l=3915 * @return The nodePoolId. */ @java.lang.Deprecated @@ -156,7 +156,7 @@ public interface SetNodePoolManagementRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3801 + * google/container/v1/cluster_service.proto;l=3915 * @return The bytes for nodePoolId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequest.java index 594c9917e4c9..3fda9bb94bc4 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3817 + * google/container/v1/cluster_service.proto;l=3931 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3817 + * google/container/v1/cluster_service.proto;l=3931 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3823 + * google/container/v1/cluster_service.proto;l=3937 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3823 + * google/container/v1/cluster_service.proto;l=3937 * @return The bytes for zone. */ @java.lang.Override @@ -206,7 +206,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3827 + * google/container/v1/cluster_service.proto;l=3941 * @return The clusterId. */ @java.lang.Override @@ -233,7 +233,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3827 + * google/container/v1/cluster_service.proto;l=3941 * @return The bytes for clusterId. */ @java.lang.Override @@ -265,7 +265,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3831 + * google/container/v1/cluster_service.proto;l=3945 * @return The nodePoolId. */ @java.lang.Override @@ -292,7 +292,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3831 + * google/container/v1/cluster_service.proto;l=3945 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -854,7 +854,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3817 + * google/container/v1/cluster_service.proto;l=3931 * @return The projectId. */ @java.lang.Deprecated @@ -881,7 +881,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3817 + * google/container/v1/cluster_service.proto;l=3931 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -908,7 +908,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3817 + * google/container/v1/cluster_service.proto;l=3931 * @param value The projectId to set. * @return This builder for chaining. */ @@ -934,7 +934,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3817 + * google/container/v1/cluster_service.proto;l=3931 * @return This builder for chaining. */ @java.lang.Deprecated @@ -956,7 +956,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3817 + * google/container/v1/cluster_service.proto;l=3931 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -986,7 +986,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3823 + * google/container/v1/cluster_service.proto;l=3937 * @return The zone. */ @java.lang.Deprecated @@ -1014,7 +1014,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3823 + * google/container/v1/cluster_service.proto;l=3937 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1042,7 +1042,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3823 + * google/container/v1/cluster_service.proto;l=3937 * @param value The zone to set. * @return This builder for chaining. */ @@ -1069,7 +1069,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3823 + * google/container/v1/cluster_service.proto;l=3937 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1092,7 +1092,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3823 + * google/container/v1/cluster_service.proto;l=3937 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1120,7 +1120,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3827 + * google/container/v1/cluster_service.proto;l=3941 * @return The clusterId. */ @java.lang.Deprecated @@ -1146,7 +1146,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3827 + * google/container/v1/cluster_service.proto;l=3941 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1172,7 +1172,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3827 + * google/container/v1/cluster_service.proto;l=3941 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1197,7 +1197,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3827 + * google/container/v1/cluster_service.proto;l=3941 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1218,7 +1218,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3827 + * google/container/v1/cluster_service.proto;l=3941 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -1246,7 +1246,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3831 + * google/container/v1/cluster_service.proto;l=3945 * @return The nodePoolId. */ @java.lang.Deprecated @@ -1272,7 +1272,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3831 + * google/container/v1/cluster_service.proto;l=3945 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -1298,7 +1298,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3831 + * google/container/v1/cluster_service.proto;l=3945 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -1323,7 +1323,7 @@ public Builder setNodePoolId(java.lang.String value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3831 + * google/container/v1/cluster_service.proto;l=3945 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1344,7 +1344,7 @@ public Builder clearNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3831 + * google/container/v1/cluster_service.proto;l=3945 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequestOrBuilder.java index cf192c48b09e..e377cfe19001 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetNodePoolSizeRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3817 + * google/container/v1/cluster_service.proto;l=3931 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface SetNodePoolSizeRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3817 + * google/container/v1/cluster_service.proto;l=3931 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface SetNodePoolSizeRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3823 + * google/container/v1/cluster_service.proto;l=3937 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface SetNodePoolSizeRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3823 + * google/container/v1/cluster_service.proto;l=3937 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface SetNodePoolSizeRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3827 + * google/container/v1/cluster_service.proto;l=3941 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface SetNodePoolSizeRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3827 + * google/container/v1/cluster_service.proto;l=3941 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -140,7 +140,7 @@ public interface SetNodePoolSizeRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3831 + * google/container/v1/cluster_service.proto;l=3945 * @return The nodePoolId. */ @java.lang.Deprecated @@ -156,7 +156,7 @@ public interface SetNodePoolSizeRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3831 + * google/container/v1/cluster_service.proto;l=3945 * @return The bytes for nodePoolId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequest.java index 0a139912a818..a2636d3c8e39 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4115 + * google/container/v1/cluster_service.proto;l=4229 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4115 + * google/container/v1/cluster_service.proto;l=4229 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4121 + * google/container/v1/cluster_service.proto;l=4235 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4121 + * google/container/v1/cluster_service.proto;l=4235 * @return The bytes for zone. */ @java.lang.Override @@ -206,7 +206,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4125 + * google/container/v1/cluster_service.proto;l=4239 * @return The clusterId. */ @java.lang.Override @@ -233,7 +233,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4125 + * google/container/v1/cluster_service.proto;l=4239 * @return The bytes for clusterId. */ @java.lang.Override @@ -770,7 +770,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4115 + * google/container/v1/cluster_service.proto;l=4229 * @return The projectId. */ @java.lang.Deprecated @@ -797,7 +797,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4115 + * google/container/v1/cluster_service.proto;l=4229 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -824,7 +824,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4115 + * google/container/v1/cluster_service.proto;l=4229 * @param value The projectId to set. * @return This builder for chaining. */ @@ -850,7 +850,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4115 + * google/container/v1/cluster_service.proto;l=4229 * @return This builder for chaining. */ @java.lang.Deprecated @@ -872,7 +872,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4115 + * google/container/v1/cluster_service.proto;l=4229 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -902,7 +902,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4121 + * google/container/v1/cluster_service.proto;l=4235 * @return The zone. */ @java.lang.Deprecated @@ -930,7 +930,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4121 + * google/container/v1/cluster_service.proto;l=4235 * @return The bytes for zone. */ @java.lang.Deprecated @@ -958,7 +958,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4121 + * google/container/v1/cluster_service.proto;l=4235 * @param value The zone to set. * @return This builder for chaining. */ @@ -985,7 +985,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4121 + * google/container/v1/cluster_service.proto;l=4235 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1008,7 +1008,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4121 + * google/container/v1/cluster_service.proto;l=4235 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1036,7 +1036,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4125 + * google/container/v1/cluster_service.proto;l=4239 * @return The clusterId. */ @java.lang.Deprecated @@ -1062,7 +1062,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4125 + * google/container/v1/cluster_service.proto;l=4239 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1088,7 +1088,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4125 + * google/container/v1/cluster_service.proto;l=4239 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1113,7 +1113,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4125 + * google/container/v1/cluster_service.proto;l=4239 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1134,7 +1134,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4125 + * google/container/v1/cluster_service.proto;l=4239 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequestOrBuilder.java index b9fe083d2387..e5cd45afd325 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface StartIPRotationRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4115 + * google/container/v1/cluster_service.proto;l=4229 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface StartIPRotationRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4115 + * google/container/v1/cluster_service.proto;l=4229 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface StartIPRotationRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4121 + * google/container/v1/cluster_service.proto;l=4235 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface StartIPRotationRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4121 + * google/container/v1/cluster_service.proto;l=4235 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface StartIPRotationRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4125 + * google/container/v1/cluster_service.proto;l=4239 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface StartIPRotationRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4125 + * google/container/v1/cluster_service.proto;l=4239 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusCondition.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusCondition.java index 56abceb40969..2fbf1aec1e95 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusCondition.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusCondition.java @@ -330,7 +330,7 @@ private Code(int value) { * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1.StatusCondition.code is deprecated. See - * google/container/v1/cluster_service.proto;l=4326 + * google/container/v1/cluster_service.proto;l=4443 * @return The enum numeric value on the wire for code. */ @java.lang.Override @@ -349,7 +349,7 @@ public int getCodeValue() { * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1.StatusCondition.code is deprecated. See - * google/container/v1/cluster_service.proto;l=4326 + * google/container/v1/cluster_service.proto;l=4443 * @return The code. */ @java.lang.Override @@ -842,7 +842,7 @@ public Builder mergeFrom( * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1.StatusCondition.code is deprecated. See - * google/container/v1/cluster_service.proto;l=4326 + * google/container/v1/cluster_service.proto;l=4443 * @return The enum numeric value on the wire for code. */ @java.lang.Override @@ -861,7 +861,7 @@ public int getCodeValue() { * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1.StatusCondition.code is deprecated. See - * google/container/v1/cluster_service.proto;l=4326 + * google/container/v1/cluster_service.proto;l=4443 * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ @@ -883,7 +883,7 @@ public Builder setCodeValue(int value) { * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1.StatusCondition.code is deprecated. See - * google/container/v1/cluster_service.proto;l=4326 + * google/container/v1/cluster_service.proto;l=4443 * @return The code. */ @java.lang.Override @@ -904,7 +904,7 @@ public com.google.container.v1.StatusCondition.Code getCode() { * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1.StatusCondition.code is deprecated. See - * google/container/v1/cluster_service.proto;l=4326 + * google/container/v1/cluster_service.proto;l=4443 * @param value The code to set. * @return This builder for chaining. */ @@ -929,7 +929,7 @@ public Builder setCode(com.google.container.v1.StatusCondition.Code value) { * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1.StatusCondition.code is deprecated. See - * google/container/v1/cluster_service.proto;l=4326 + * google/container/v1/cluster_service.proto;l=4443 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusConditionOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusConditionOrBuilder.java index 10d5b546ac45..40ca1b0ebc75 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusConditionOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusConditionOrBuilder.java @@ -35,7 +35,7 @@ public interface StatusConditionOrBuilder * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1.StatusCondition.code is deprecated. See - * google/container/v1/cluster_service.proto;l=4326 + * google/container/v1/cluster_service.proto;l=4443 * @return The enum numeric value on the wire for code. */ @java.lang.Deprecated @@ -51,7 +51,7 @@ public interface StatusConditionOrBuilder * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1.StatusCondition.code is deprecated. See - * google/container/v1/cluster_service.proto;l=4326 + * google/container/v1/cluster_service.proto;l=4443 * @return The code. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequest.java index d7acc6ba511a..a8ca14aeda36 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2631 + * google/container/v1/cluster_service.proto;l=2735 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2631 + * google/container/v1/cluster_service.proto;l=2735 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2637 + * google/container/v1/cluster_service.proto;l=2741 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2637 + * google/container/v1/cluster_service.proto;l=2741 * @return The bytes for zone. */ @java.lang.Override @@ -206,7 +206,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2641 + * google/container/v1/cluster_service.proto;l=2745 * @return The clusterId. */ @java.lang.Override @@ -233,7 +233,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2641 + * google/container/v1/cluster_service.proto;l=2745 * @return The bytes for clusterId. */ @java.lang.Override @@ -821,7 +821,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2631 + * google/container/v1/cluster_service.proto;l=2735 * @return The projectId. */ @java.lang.Deprecated @@ -848,7 +848,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2631 + * google/container/v1/cluster_service.proto;l=2735 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -875,7 +875,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2631 + * google/container/v1/cluster_service.proto;l=2735 * @param value The projectId to set. * @return This builder for chaining. */ @@ -901,7 +901,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2631 + * google/container/v1/cluster_service.proto;l=2735 * @return This builder for chaining. */ @java.lang.Deprecated @@ -923,7 +923,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2631 + * google/container/v1/cluster_service.proto;l=2735 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -953,7 +953,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2637 + * google/container/v1/cluster_service.proto;l=2741 * @return The zone. */ @java.lang.Deprecated @@ -981,7 +981,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2637 + * google/container/v1/cluster_service.proto;l=2741 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1009,7 +1009,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2637 + * google/container/v1/cluster_service.proto;l=2741 * @param value The zone to set. * @return This builder for chaining. */ @@ -1036,7 +1036,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2637 + * google/container/v1/cluster_service.proto;l=2741 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1059,7 +1059,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2637 + * google/container/v1/cluster_service.proto;l=2741 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1087,7 +1087,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2641 + * google/container/v1/cluster_service.proto;l=2745 * @return The clusterId. */ @java.lang.Deprecated @@ -1113,7 +1113,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2641 + * google/container/v1/cluster_service.proto;l=2745 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1139,7 +1139,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2641 + * google/container/v1/cluster_service.proto;l=2745 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1164,7 +1164,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2641 + * google/container/v1/cluster_service.proto;l=2745 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1185,7 +1185,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2641 + * google/container/v1/cluster_service.proto;l=2745 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequestOrBuilder.java index e6ff02459db1..c6838701f174 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface UpdateClusterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2631 + * google/container/v1/cluster_service.proto;l=2735 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface UpdateClusterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2631 + * google/container/v1/cluster_service.proto;l=2735 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface UpdateClusterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2637 + * google/container/v1/cluster_service.proto;l=2741 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface UpdateClusterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2637 + * google/container/v1/cluster_service.proto;l=2741 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface UpdateClusterRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2641 + * google/container/v1/cluster_service.proto;l=2745 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface UpdateClusterRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2641 + * google/container/v1/cluster_service.proto;l=2745 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequest.java index c46ce4f97095..07bc9cf01a37 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2949 + * google/container/v1/cluster_service.proto;l=3063 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2949 + * google/container/v1/cluster_service.proto;l=3063 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2955 + * google/container/v1/cluster_service.proto;l=3069 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2955 + * google/container/v1/cluster_service.proto;l=3069 * @return The bytes for zone. */ @java.lang.Override @@ -206,7 +206,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2959 + * google/container/v1/cluster_service.proto;l=3073 * @return The clusterId. */ @java.lang.Override @@ -233,7 +233,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2959 + * google/container/v1/cluster_service.proto;l=3073 * @return The bytes for clusterId. */ @java.lang.Override @@ -822,7 +822,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2949 + * google/container/v1/cluster_service.proto;l=3063 * @return The projectId. */ @java.lang.Deprecated @@ -849,7 +849,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2949 + * google/container/v1/cluster_service.proto;l=3063 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -876,7 +876,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2949 + * google/container/v1/cluster_service.proto;l=3063 * @param value The projectId to set. * @return This builder for chaining. */ @@ -902,7 +902,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2949 + * google/container/v1/cluster_service.proto;l=3063 * @return This builder for chaining. */ @java.lang.Deprecated @@ -924,7 +924,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2949 + * google/container/v1/cluster_service.proto;l=3063 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -954,7 +954,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2955 + * google/container/v1/cluster_service.proto;l=3069 * @return The zone. */ @java.lang.Deprecated @@ -982,7 +982,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2955 + * google/container/v1/cluster_service.proto;l=3069 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1010,7 +1010,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2955 + * google/container/v1/cluster_service.proto;l=3069 * @param value The zone to set. * @return This builder for chaining. */ @@ -1037,7 +1037,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2955 + * google/container/v1/cluster_service.proto;l=3069 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1060,7 +1060,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2955 + * google/container/v1/cluster_service.proto;l=3069 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1088,7 +1088,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2959 + * google/container/v1/cluster_service.proto;l=3073 * @return The clusterId. */ @java.lang.Deprecated @@ -1114,7 +1114,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2959 + * google/container/v1/cluster_service.proto;l=3073 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1140,7 +1140,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2959 + * google/container/v1/cluster_service.proto;l=3073 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1165,7 +1165,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2959 + * google/container/v1/cluster_service.proto;l=3073 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1186,7 +1186,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2959 + * google/container/v1/cluster_service.proto;l=3073 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequestOrBuilder.java index 9761d44c2e75..b2aa75a4fca8 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface UpdateMasterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2949 + * google/container/v1/cluster_service.proto;l=3063 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface UpdateMasterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2949 + * google/container/v1/cluster_service.proto;l=3063 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface UpdateMasterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2955 + * google/container/v1/cluster_service.proto;l=3069 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface UpdateMasterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2955 + * google/container/v1/cluster_service.proto;l=3069 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface UpdateMasterRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2959 + * google/container/v1/cluster_service.proto;l=3073 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface UpdateMasterRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2959 + * google/container/v1/cluster_service.proto;l=3073 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequest.java index c0fd8eb53a71..c47dacb14bf3 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequest.java @@ -48,6 +48,7 @@ private UpdateNodePoolRequest() { name_ = ""; locations_ = com.google.protobuf.LazyStringArrayList.emptyList(); etag_ = ""; + accelerators_ = java.util.Collections.emptyList(); machineType_ = ""; diskType_ = ""; } @@ -90,7 +91,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2656 + * google/container/v1/cluster_service.proto;l=2760 * @return The projectId. */ @java.lang.Override @@ -118,7 +119,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2656 + * google/container/v1/cluster_service.proto;l=2760 * @return The bytes for projectId. */ @java.lang.Override @@ -152,7 +153,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2662 + * google/container/v1/cluster_service.proto;l=2766 * @return The zone. */ @java.lang.Override @@ -181,7 +182,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2662 + * google/container/v1/cluster_service.proto;l=2766 * @return The bytes for zone. */ @java.lang.Override @@ -213,7 +214,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2666 + * google/container/v1/cluster_service.proto;l=2770 * @return The clusterId. */ @java.lang.Override @@ -240,7 +241,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2666 + * google/container/v1/cluster_service.proto;l=2770 * @return The bytes for clusterId. */ @java.lang.Override @@ -272,7 +273,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2670 + * google/container/v1/cluster_service.proto;l=2774 * @return The nodePoolId. */ @java.lang.Override @@ -299,7 +300,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2670 + * google/container/v1/cluster_service.proto;l=2774 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -1391,6 +1392,87 @@ public com.google.container.v1.WindowsNodeConfigOrBuilder getWindowsNodeConfigOr : windowsNodeConfig_; } + public static final int ACCELERATORS_FIELD_NUMBER = 35; + + @SuppressWarnings("serial") + private java.util.List accelerators_; + /** + * + * + *
+   * A list of hardware accelerators to be attached to each node.
+   * See https://cloud.google.com/compute/docs/gpus for more information about
+   * support for GPUs.
+   * 
+ * + * repeated .google.container.v1.AcceleratorConfig accelerators = 35; + */ + @java.lang.Override + public java.util.List getAcceleratorsList() { + return accelerators_; + } + /** + * + * + *
+   * A list of hardware accelerators to be attached to each node.
+   * See https://cloud.google.com/compute/docs/gpus for more information about
+   * support for GPUs.
+   * 
+ * + * repeated .google.container.v1.AcceleratorConfig accelerators = 35; + */ + @java.lang.Override + public java.util.List + getAcceleratorsOrBuilderList() { + return accelerators_; + } + /** + * + * + *
+   * A list of hardware accelerators to be attached to each node.
+   * See https://cloud.google.com/compute/docs/gpus for more information about
+   * support for GPUs.
+   * 
+ * + * repeated .google.container.v1.AcceleratorConfig accelerators = 35; + */ + @java.lang.Override + public int getAcceleratorsCount() { + return accelerators_.size(); + } + /** + * + * + *
+   * A list of hardware accelerators to be attached to each node.
+   * See https://cloud.google.com/compute/docs/gpus for more information about
+   * support for GPUs.
+   * 
+ * + * repeated .google.container.v1.AcceleratorConfig accelerators = 35; + */ + @java.lang.Override + public com.google.container.v1.AcceleratorConfig getAccelerators(int index) { + return accelerators_.get(index); + } + /** + * + * + *
+   * A list of hardware accelerators to be attached to each node.
+   * See https://cloud.google.com/compute/docs/gpus for more information about
+   * support for GPUs.
+   * 
+ * + * repeated .google.container.v1.AcceleratorConfig accelerators = 35; + */ + @java.lang.Override + public com.google.container.v1.AcceleratorConfigOrBuilder getAcceleratorsOrBuilder(int index) { + return accelerators_.get(index); + } + public static final int MACHINE_TYPE_FIELD_NUMBER = 36; @SuppressWarnings("serial") @@ -1582,6 +1664,62 @@ public com.google.container.v1.ResourceManagerTagsOrBuilder getResourceManagerTa : resourceManagerTags_; } + public static final int CONTAINERD_CONFIG_FIELD_NUMBER = 40; + private com.google.container.v1.ContainerdConfig containerdConfig_; + /** + * + * + *
+   * The desired containerd config for nodes in the node pool.
+   * Initiates an upgrade operation that recreates the nodes with the new
+   * config.
+   * 
+ * + * .google.container.v1.ContainerdConfig containerd_config = 40; + * + * @return Whether the containerdConfig field is set. + */ + @java.lang.Override + public boolean hasContainerdConfig() { + return ((bitField0_ & 0x00010000) != 0); + } + /** + * + * + *
+   * The desired containerd config for nodes in the node pool.
+   * Initiates an upgrade operation that recreates the nodes with the new
+   * config.
+   * 
+ * + * .google.container.v1.ContainerdConfig containerd_config = 40; + * + * @return The containerdConfig. + */ + @java.lang.Override + public com.google.container.v1.ContainerdConfig getContainerdConfig() { + return containerdConfig_ == null + ? com.google.container.v1.ContainerdConfig.getDefaultInstance() + : containerdConfig_; + } + /** + * + * + *
+   * The desired containerd config for nodes in the node pool.
+   * Initiates an upgrade operation that recreates the nodes with the new
+   * config.
+   * 
+ * + * .google.container.v1.ContainerdConfig containerd_config = 40; + */ + @java.lang.Override + public com.google.container.v1.ContainerdConfigOrBuilder getContainerdConfigOrBuilder() { + return containerdConfig_ == null + ? com.google.container.v1.ContainerdConfig.getDefaultInstance() + : containerdConfig_; + } + public static final int QUEUED_PROVISIONING_FIELD_NUMBER = 42; private com.google.container.v1.NodePool.QueuedProvisioning queuedProvisioning_; /** @@ -1597,7 +1735,7 @@ public com.google.container.v1.ResourceManagerTagsOrBuilder getResourceManagerTa */ @java.lang.Override public boolean hasQueuedProvisioning() { - return ((bitField0_ & 0x00010000) != 0); + return ((bitField0_ & 0x00020000) != 0); } /** * @@ -1719,6 +1857,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00004000) != 0)) { output.writeMessage(34, getWindowsNodeConfig()); } + for (int i = 0; i < accelerators_.size(); i++) { + output.writeMessage(35, accelerators_.get(i)); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 36, machineType_); } @@ -1732,6 +1873,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(39, getResourceManagerTags()); } if (((bitField0_ & 0x00010000) != 0)) { + output.writeMessage(40, getContainerdConfig()); + } + if (((bitField0_ & 0x00020000) != 0)) { output.writeMessage(42, getQueuedProvisioning()); } getUnknownFields().writeTo(output); @@ -1821,6 +1965,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00004000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(34, getWindowsNodeConfig()); } + for (int i = 0; i < accelerators_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(35, accelerators_.get(i)); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(36, machineType_); } @@ -1835,6 +1982,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize(39, getResourceManagerTags()); } if (((bitField0_ & 0x00010000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(40, getContainerdConfig()); + } + if (((bitField0_ & 0x00020000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(42, getQueuedProvisioning()); } size += getUnknownFields().getSerializedSize(); @@ -1922,6 +2072,7 @@ public boolean equals(final java.lang.Object obj) { if (hasWindowsNodeConfig()) { if (!getWindowsNodeConfig().equals(other.getWindowsNodeConfig())) return false; } + if (!getAcceleratorsList().equals(other.getAcceleratorsList())) return false; if (!getMachineType().equals(other.getMachineType())) return false; if (!getDiskType().equals(other.getDiskType())) return false; if (getDiskSizeGb() != other.getDiskSizeGb()) return false; @@ -1929,6 +2080,10 @@ public boolean equals(final java.lang.Object obj) { if (hasResourceManagerTags()) { if (!getResourceManagerTags().equals(other.getResourceManagerTags())) return false; } + if (hasContainerdConfig() != other.hasContainerdConfig()) return false; + if (hasContainerdConfig()) { + if (!getContainerdConfig().equals(other.getContainerdConfig())) return false; + } if (hasQueuedProvisioning() != other.hasQueuedProvisioning()) return false; if (hasQueuedProvisioning()) { if (!getQueuedProvisioning().equals(other.getQueuedProvisioning())) return false; @@ -2024,6 +2179,10 @@ public int hashCode() { hash = (37 * hash) + WINDOWS_NODE_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getWindowsNodeConfig().hashCode(); } + if (getAcceleratorsCount() > 0) { + hash = (37 * hash) + ACCELERATORS_FIELD_NUMBER; + hash = (53 * hash) + getAcceleratorsList().hashCode(); + } hash = (37 * hash) + MACHINE_TYPE_FIELD_NUMBER; hash = (53 * hash) + getMachineType().hashCode(); hash = (37 * hash) + DISK_TYPE_FIELD_NUMBER; @@ -2034,6 +2193,10 @@ public int hashCode() { hash = (37 * hash) + RESOURCE_MANAGER_TAGS_FIELD_NUMBER; hash = (53 * hash) + getResourceManagerTags().hashCode(); } + if (hasContainerdConfig()) { + hash = (37 * hash) + CONTAINERD_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getContainerdConfig().hashCode(); + } if (hasQueuedProvisioning()) { hash = (37 * hash) + QUEUED_PROVISIONING_FIELD_NUMBER; hash = (53 * hash) + getQueuedProvisioning().hashCode(); @@ -2193,7 +2356,9 @@ private void maybeForceBuilderInitialization() { getLoggingConfigFieldBuilder(); getResourceLabelsFieldBuilder(); getWindowsNodeConfigFieldBuilder(); + getAcceleratorsFieldBuilder(); getResourceManagerTagsFieldBuilder(); + getContainerdConfigFieldBuilder(); getQueuedProvisioningFieldBuilder(); } } @@ -2286,6 +2451,13 @@ public Builder clear() { windowsNodeConfigBuilder_.dispose(); windowsNodeConfigBuilder_ = null; } + if (acceleratorsBuilder_ == null) { + accelerators_ = java.util.Collections.emptyList(); + } else { + accelerators_ = null; + acceleratorsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x01000000); machineType_ = ""; diskType_ = ""; diskSizeGb_ = 0L; @@ -2294,6 +2466,11 @@ public Builder clear() { resourceManagerTagsBuilder_.dispose(); resourceManagerTagsBuilder_ = null; } + containerdConfig_ = null; + if (containerdConfigBuilder_ != null) { + containerdConfigBuilder_.dispose(); + containerdConfigBuilder_ = null; + } queuedProvisioning_ = null; if (queuedProvisioningBuilder_ != null) { queuedProvisioningBuilder_.dispose(); @@ -2326,6 +2503,7 @@ public com.google.container.v1.UpdateNodePoolRequest build() { public com.google.container.v1.UpdateNodePoolRequest buildPartial() { com.google.container.v1.UpdateNodePoolRequest result = new com.google.container.v1.UpdateNodePoolRequest(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -2333,6 +2511,18 @@ public com.google.container.v1.UpdateNodePoolRequest buildPartial() { return result; } + private void buildPartialRepeatedFields(com.google.container.v1.UpdateNodePoolRequest result) { + if (acceleratorsBuilder_ == null) { + if (((bitField0_ & 0x01000000) != 0)) { + accelerators_ = java.util.Collections.unmodifiableList(accelerators_); + bitField0_ = (bitField0_ & ~0x01000000); + } + result.accelerators_ = accelerators_; + } else { + result.accelerators_ = acceleratorsBuilder_.build(); + } + } + private void buildPartial0(com.google.container.v1.UpdateNodePoolRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -2441,28 +2631,33 @@ private void buildPartial0(com.google.container.v1.UpdateNodePoolRequest result) : windowsNodeConfigBuilder_.build(); to_bitField0_ |= 0x00004000; } - if (((from_bitField0_ & 0x01000000) != 0)) { + if (((from_bitField0_ & 0x02000000) != 0)) { result.machineType_ = machineType_; } - if (((from_bitField0_ & 0x02000000) != 0)) { + if (((from_bitField0_ & 0x04000000) != 0)) { result.diskType_ = diskType_; } - if (((from_bitField0_ & 0x04000000) != 0)) { + if (((from_bitField0_ & 0x08000000) != 0)) { result.diskSizeGb_ = diskSizeGb_; } - if (((from_bitField0_ & 0x08000000) != 0)) { + if (((from_bitField0_ & 0x10000000) != 0)) { result.resourceManagerTags_ = resourceManagerTagsBuilder_ == null ? resourceManagerTags_ : resourceManagerTagsBuilder_.build(); to_bitField0_ |= 0x00008000; } - if (((from_bitField0_ & 0x10000000) != 0)) { + if (((from_bitField0_ & 0x20000000) != 0)) { + result.containerdConfig_ = + containerdConfigBuilder_ == null ? containerdConfig_ : containerdConfigBuilder_.build(); + to_bitField0_ |= 0x00010000; + } + if (((from_bitField0_ & 0x40000000) != 0)) { result.queuedProvisioning_ = queuedProvisioningBuilder_ == null ? queuedProvisioning_ : queuedProvisioningBuilder_.build(); - to_bitField0_ |= 0x00010000; + to_bitField0_ |= 0x00020000; } result.bitField0_ |= to_bitField0_; } @@ -2607,14 +2802,41 @@ public Builder mergeFrom(com.google.container.v1.UpdateNodePoolRequest other) { if (other.hasWindowsNodeConfig()) { mergeWindowsNodeConfig(other.getWindowsNodeConfig()); } + if (acceleratorsBuilder_ == null) { + if (!other.accelerators_.isEmpty()) { + if (accelerators_.isEmpty()) { + accelerators_ = other.accelerators_; + bitField0_ = (bitField0_ & ~0x01000000); + } else { + ensureAcceleratorsIsMutable(); + accelerators_.addAll(other.accelerators_); + } + onChanged(); + } + } else { + if (!other.accelerators_.isEmpty()) { + if (acceleratorsBuilder_.isEmpty()) { + acceleratorsBuilder_.dispose(); + acceleratorsBuilder_ = null; + accelerators_ = other.accelerators_; + bitField0_ = (bitField0_ & ~0x01000000); + acceleratorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAcceleratorsFieldBuilder() + : null; + } else { + acceleratorsBuilder_.addAllMessages(other.accelerators_); + } + } + } if (!other.getMachineType().isEmpty()) { machineType_ = other.machineType_; - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; onChanged(); } if (!other.getDiskType().isEmpty()) { diskType_ = other.diskType_; - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; onChanged(); } if (other.getDiskSizeGb() != 0L) { @@ -2623,6 +2845,9 @@ public Builder mergeFrom(com.google.container.v1.UpdateNodePoolRequest other) { if (other.hasResourceManagerTags()) { mergeResourceManagerTags(other.getResourceManagerTags()); } + if (other.hasContainerdConfig()) { + mergeContainerdConfig(other.getContainerdConfig()); + } if (other.hasQueuedProvisioning()) { mergeQueuedProvisioning(other.getQueuedProvisioning()); } @@ -2801,36 +3026,56 @@ public Builder mergeFrom( bitField0_ |= 0x00800000; break; } // case 274 + case 282: + { + com.google.container.v1.AcceleratorConfig m = + input.readMessage( + com.google.container.v1.AcceleratorConfig.parser(), extensionRegistry); + if (acceleratorsBuilder_ == null) { + ensureAcceleratorsIsMutable(); + accelerators_.add(m); + } else { + acceleratorsBuilder_.addMessage(m); + } + break; + } // case 282 case 290: { machineType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; break; } // case 290 case 298: { diskType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; break; } // case 298 case 304: { diskSizeGb_ = input.readInt64(); - bitField0_ |= 0x04000000; + bitField0_ |= 0x08000000; break; } // case 304 case 314: { input.readMessage( getResourceManagerTagsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x08000000; + bitField0_ |= 0x10000000; break; } // case 314 + case 322: + { + input.readMessage( + getContainerdConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x20000000; + break; + } // case 322 case 338: { input.readMessage( getQueuedProvisioningFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x10000000; + bitField0_ |= 0x40000000; break; } // case 338 default: @@ -2865,7 +3110,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2656 + * google/container/v1/cluster_service.proto;l=2760 * @return The projectId. */ @java.lang.Deprecated @@ -2892,7 +3137,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2656 + * google/container/v1/cluster_service.proto;l=2760 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -2919,7 +3164,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2656 + * google/container/v1/cluster_service.proto;l=2760 * @param value The projectId to set. * @return This builder for chaining. */ @@ -2945,7 +3190,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2656 + * google/container/v1/cluster_service.proto;l=2760 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2967,7 +3212,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2656 + * google/container/v1/cluster_service.proto;l=2760 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -2997,7 +3242,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2662 + * google/container/v1/cluster_service.proto;l=2766 * @return The zone. */ @java.lang.Deprecated @@ -3025,7 +3270,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2662 + * google/container/v1/cluster_service.proto;l=2766 * @return The bytes for zone. */ @java.lang.Deprecated @@ -3053,7 +3298,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2662 + * google/container/v1/cluster_service.proto;l=2766 * @param value The zone to set. * @return This builder for chaining. */ @@ -3080,7 +3325,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2662 + * google/container/v1/cluster_service.proto;l=2766 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3103,7 +3348,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2662 + * google/container/v1/cluster_service.proto;l=2766 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -3131,7 +3376,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2666 + * google/container/v1/cluster_service.proto;l=2770 * @return The clusterId. */ @java.lang.Deprecated @@ -3157,7 +3402,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2666 + * google/container/v1/cluster_service.proto;l=2770 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -3183,7 +3428,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2666 + * google/container/v1/cluster_service.proto;l=2770 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -3208,7 +3453,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2666 + * google/container/v1/cluster_service.proto;l=2770 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3229,7 +3474,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2666 + * google/container/v1/cluster_service.proto;l=2770 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -3257,7 +3502,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2670 + * google/container/v1/cluster_service.proto;l=2774 * @return The nodePoolId. */ @java.lang.Deprecated @@ -3283,7 +3528,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2670 + * google/container/v1/cluster_service.proto;l=2774 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -3309,7 +3554,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2670 + * google/container/v1/cluster_service.proto;l=2774 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -3334,7 +3579,7 @@ public Builder setNodePoolId(java.lang.String value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2670 + * google/container/v1/cluster_service.proto;l=2774 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3355,7 +3600,7 @@ public Builder clearNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2670 + * google/container/v1/cluster_service.proto;l=2774 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ @@ -6934,6 +7179,393 @@ public com.google.container.v1.WindowsNodeConfigOrBuilder getWindowsNodeConfigOr return windowsNodeConfigBuilder_; } + private java.util.List accelerators_ = + java.util.Collections.emptyList(); + + private void ensureAcceleratorsIsMutable() { + if (!((bitField0_ & 0x01000000) != 0)) { + accelerators_ = + new java.util.ArrayList(accelerators_); + bitField0_ |= 0x01000000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.AcceleratorConfig, + com.google.container.v1.AcceleratorConfig.Builder, + com.google.container.v1.AcceleratorConfigOrBuilder> + acceleratorsBuilder_; + + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1.AcceleratorConfig accelerators = 35; + */ + public java.util.List getAcceleratorsList() { + if (acceleratorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(accelerators_); + } else { + return acceleratorsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1.AcceleratorConfig accelerators = 35; + */ + public int getAcceleratorsCount() { + if (acceleratorsBuilder_ == null) { + return accelerators_.size(); + } else { + return acceleratorsBuilder_.getCount(); + } + } + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1.AcceleratorConfig accelerators = 35; + */ + public com.google.container.v1.AcceleratorConfig getAccelerators(int index) { + if (acceleratorsBuilder_ == null) { + return accelerators_.get(index); + } else { + return acceleratorsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1.AcceleratorConfig accelerators = 35; + */ + public Builder setAccelerators(int index, com.google.container.v1.AcceleratorConfig value) { + if (acceleratorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAcceleratorsIsMutable(); + accelerators_.set(index, value); + onChanged(); + } else { + acceleratorsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1.AcceleratorConfig accelerators = 35; + */ + public Builder setAccelerators( + int index, com.google.container.v1.AcceleratorConfig.Builder builderForValue) { + if (acceleratorsBuilder_ == null) { + ensureAcceleratorsIsMutable(); + accelerators_.set(index, builderForValue.build()); + onChanged(); + } else { + acceleratorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1.AcceleratorConfig accelerators = 35; + */ + public Builder addAccelerators(com.google.container.v1.AcceleratorConfig value) { + if (acceleratorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAcceleratorsIsMutable(); + accelerators_.add(value); + onChanged(); + } else { + acceleratorsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1.AcceleratorConfig accelerators = 35; + */ + public Builder addAccelerators(int index, com.google.container.v1.AcceleratorConfig value) { + if (acceleratorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAcceleratorsIsMutable(); + accelerators_.add(index, value); + onChanged(); + } else { + acceleratorsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1.AcceleratorConfig accelerators = 35; + */ + public Builder addAccelerators( + com.google.container.v1.AcceleratorConfig.Builder builderForValue) { + if (acceleratorsBuilder_ == null) { + ensureAcceleratorsIsMutable(); + accelerators_.add(builderForValue.build()); + onChanged(); + } else { + acceleratorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1.AcceleratorConfig accelerators = 35; + */ + public Builder addAccelerators( + int index, com.google.container.v1.AcceleratorConfig.Builder builderForValue) { + if (acceleratorsBuilder_ == null) { + ensureAcceleratorsIsMutable(); + accelerators_.add(index, builderForValue.build()); + onChanged(); + } else { + acceleratorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1.AcceleratorConfig accelerators = 35; + */ + public Builder addAllAccelerators( + java.lang.Iterable values) { + if (acceleratorsBuilder_ == null) { + ensureAcceleratorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, accelerators_); + onChanged(); + } else { + acceleratorsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1.AcceleratorConfig accelerators = 35; + */ + public Builder clearAccelerators() { + if (acceleratorsBuilder_ == null) { + accelerators_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x01000000); + onChanged(); + } else { + acceleratorsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1.AcceleratorConfig accelerators = 35; + */ + public Builder removeAccelerators(int index) { + if (acceleratorsBuilder_ == null) { + ensureAcceleratorsIsMutable(); + accelerators_.remove(index); + onChanged(); + } else { + acceleratorsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1.AcceleratorConfig accelerators = 35; + */ + public com.google.container.v1.AcceleratorConfig.Builder getAcceleratorsBuilder(int index) { + return getAcceleratorsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1.AcceleratorConfig accelerators = 35; + */ + public com.google.container.v1.AcceleratorConfigOrBuilder getAcceleratorsOrBuilder(int index) { + if (acceleratorsBuilder_ == null) { + return accelerators_.get(index); + } else { + return acceleratorsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1.AcceleratorConfig accelerators = 35; + */ + public java.util.List + getAcceleratorsOrBuilderList() { + if (acceleratorsBuilder_ != null) { + return acceleratorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(accelerators_); + } + } + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1.AcceleratorConfig accelerators = 35; + */ + public com.google.container.v1.AcceleratorConfig.Builder addAcceleratorsBuilder() { + return getAcceleratorsFieldBuilder() + .addBuilder(com.google.container.v1.AcceleratorConfig.getDefaultInstance()); + } + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1.AcceleratorConfig accelerators = 35; + */ + public com.google.container.v1.AcceleratorConfig.Builder addAcceleratorsBuilder(int index) { + return getAcceleratorsFieldBuilder() + .addBuilder(index, com.google.container.v1.AcceleratorConfig.getDefaultInstance()); + } + /** + * + * + *
+     * A list of hardware accelerators to be attached to each node.
+     * See https://cloud.google.com/compute/docs/gpus for more information about
+     * support for GPUs.
+     * 
+ * + * repeated .google.container.v1.AcceleratorConfig accelerators = 35; + */ + public java.util.List + getAcceleratorsBuilderList() { + return getAcceleratorsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.AcceleratorConfig, + com.google.container.v1.AcceleratorConfig.Builder, + com.google.container.v1.AcceleratorConfigOrBuilder> + getAcceleratorsFieldBuilder() { + if (acceleratorsBuilder_ == null) { + acceleratorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.AcceleratorConfig, + com.google.container.v1.AcceleratorConfig.Builder, + com.google.container.v1.AcceleratorConfigOrBuilder>( + accelerators_, ((bitField0_ & 0x01000000) != 0), getParentForChildren(), isClean()); + accelerators_ = null; + } + return acceleratorsBuilder_; + } + private java.lang.Object machineType_ = ""; /** * @@ -7005,7 +7637,7 @@ public Builder setMachineType(java.lang.String value) { throw new NullPointerException(); } machineType_ = value; - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; onChanged(); return this; } @@ -7025,7 +7657,7 @@ public Builder setMachineType(java.lang.String value) { */ public Builder clearMachineType() { machineType_ = getDefaultInstance().getMachineType(); - bitField0_ = (bitField0_ & ~0x01000000); + bitField0_ = (bitField0_ & ~0x02000000); onChanged(); return this; } @@ -7050,7 +7682,7 @@ public Builder setMachineTypeBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); machineType_ = value; - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; onChanged(); return this; } @@ -7126,7 +7758,7 @@ public Builder setDiskType(java.lang.String value) { throw new NullPointerException(); } diskType_ = value; - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; onChanged(); return this; } @@ -7146,7 +7778,7 @@ public Builder setDiskType(java.lang.String value) { */ public Builder clearDiskType() { diskType_ = getDefaultInstance().getDiskType(); - bitField0_ = (bitField0_ & ~0x02000000); + bitField0_ = (bitField0_ & ~0x04000000); onChanged(); return this; } @@ -7171,7 +7803,7 @@ public Builder setDiskTypeBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); diskType_ = value; - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; onChanged(); return this; } @@ -7213,7 +7845,7 @@ public long getDiskSizeGb() { public Builder setDiskSizeGb(long value) { diskSizeGb_ = value; - bitField0_ |= 0x04000000; + bitField0_ |= 0x08000000; onChanged(); return this; } @@ -7232,7 +7864,7 @@ public Builder setDiskSizeGb(long value) { * @return This builder for chaining. */ public Builder clearDiskSizeGb() { - bitField0_ = (bitField0_ & ~0x04000000); + bitField0_ = (bitField0_ & ~0x08000000); diskSizeGb_ = 0L; onChanged(); return this; @@ -7258,7 +7890,7 @@ public Builder clearDiskSizeGb() { * @return Whether the resourceManagerTags field is set. */ public boolean hasResourceManagerTags() { - return ((bitField0_ & 0x08000000) != 0); + return ((bitField0_ & 0x10000000) != 0); } /** * @@ -7302,7 +7934,7 @@ public Builder setResourceManagerTags(com.google.container.v1.ResourceManagerTag } else { resourceManagerTagsBuilder_.setMessage(value); } - bitField0_ |= 0x08000000; + bitField0_ |= 0x10000000; onChanged(); return this; } @@ -7324,7 +7956,7 @@ public Builder setResourceManagerTags( } else { resourceManagerTagsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x08000000; + bitField0_ |= 0x10000000; onChanged(); return this; } @@ -7341,7 +7973,7 @@ public Builder setResourceManagerTags( */ public Builder mergeResourceManagerTags(com.google.container.v1.ResourceManagerTags value) { if (resourceManagerTagsBuilder_ == null) { - if (((bitField0_ & 0x08000000) != 0) + if (((bitField0_ & 0x10000000) != 0) && resourceManagerTags_ != null && resourceManagerTags_ != com.google.container.v1.ResourceManagerTags.getDefaultInstance()) { @@ -7353,7 +7985,7 @@ public Builder mergeResourceManagerTags(com.google.container.v1.ResourceManagerT resourceManagerTagsBuilder_.mergeFrom(value); } if (resourceManagerTags_ != null) { - bitField0_ |= 0x08000000; + bitField0_ |= 0x10000000; onChanged(); } return this; @@ -7370,7 +8002,7 @@ public Builder mergeResourceManagerTags(com.google.container.v1.ResourceManagerT * .google.container.v1.ResourceManagerTags resource_manager_tags = 39; */ public Builder clearResourceManagerTags() { - bitField0_ = (bitField0_ & ~0x08000000); + bitField0_ = (bitField0_ & ~0x10000000); resourceManagerTags_ = null; if (resourceManagerTagsBuilder_ != null) { resourceManagerTagsBuilder_.dispose(); @@ -7391,7 +8023,7 @@ public Builder clearResourceManagerTags() { * .google.container.v1.ResourceManagerTags resource_manager_tags = 39; */ public com.google.container.v1.ResourceManagerTags.Builder getResourceManagerTagsBuilder() { - bitField0_ |= 0x08000000; + bitField0_ |= 0x10000000; onChanged(); return getResourceManagerTagsFieldBuilder().getBuilder(); } @@ -7443,6 +8075,210 @@ public com.google.container.v1.ResourceManagerTagsOrBuilder getResourceManagerTa return resourceManagerTagsBuilder_; } + private com.google.container.v1.ContainerdConfig containerdConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ContainerdConfig, + com.google.container.v1.ContainerdConfig.Builder, + com.google.container.v1.ContainerdConfigOrBuilder> + containerdConfigBuilder_; + /** + * + * + *
+     * The desired containerd config for nodes in the node pool.
+     * Initiates an upgrade operation that recreates the nodes with the new
+     * config.
+     * 
+ * + * .google.container.v1.ContainerdConfig containerd_config = 40; + * + * @return Whether the containerdConfig field is set. + */ + public boolean hasContainerdConfig() { + return ((bitField0_ & 0x20000000) != 0); + } + /** + * + * + *
+     * The desired containerd config for nodes in the node pool.
+     * Initiates an upgrade operation that recreates the nodes with the new
+     * config.
+     * 
+ * + * .google.container.v1.ContainerdConfig containerd_config = 40; + * + * @return The containerdConfig. + */ + public com.google.container.v1.ContainerdConfig getContainerdConfig() { + if (containerdConfigBuilder_ == null) { + return containerdConfig_ == null + ? com.google.container.v1.ContainerdConfig.getDefaultInstance() + : containerdConfig_; + } else { + return containerdConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The desired containerd config for nodes in the node pool.
+     * Initiates an upgrade operation that recreates the nodes with the new
+     * config.
+     * 
+ * + * .google.container.v1.ContainerdConfig containerd_config = 40; + */ + public Builder setContainerdConfig(com.google.container.v1.ContainerdConfig value) { + if (containerdConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + containerdConfig_ = value; + } else { + containerdConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x20000000; + onChanged(); + return this; + } + /** + * + * + *
+     * The desired containerd config for nodes in the node pool.
+     * Initiates an upgrade operation that recreates the nodes with the new
+     * config.
+     * 
+ * + * .google.container.v1.ContainerdConfig containerd_config = 40; + */ + public Builder setContainerdConfig( + com.google.container.v1.ContainerdConfig.Builder builderForValue) { + if (containerdConfigBuilder_ == null) { + containerdConfig_ = builderForValue.build(); + } else { + containerdConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x20000000; + onChanged(); + return this; + } + /** + * + * + *
+     * The desired containerd config for nodes in the node pool.
+     * Initiates an upgrade operation that recreates the nodes with the new
+     * config.
+     * 
+ * + * .google.container.v1.ContainerdConfig containerd_config = 40; + */ + public Builder mergeContainerdConfig(com.google.container.v1.ContainerdConfig value) { + if (containerdConfigBuilder_ == null) { + if (((bitField0_ & 0x20000000) != 0) + && containerdConfig_ != null + && containerdConfig_ != com.google.container.v1.ContainerdConfig.getDefaultInstance()) { + getContainerdConfigBuilder().mergeFrom(value); + } else { + containerdConfig_ = value; + } + } else { + containerdConfigBuilder_.mergeFrom(value); + } + if (containerdConfig_ != null) { + bitField0_ |= 0x20000000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * The desired containerd config for nodes in the node pool.
+     * Initiates an upgrade operation that recreates the nodes with the new
+     * config.
+     * 
+ * + * .google.container.v1.ContainerdConfig containerd_config = 40; + */ + public Builder clearContainerdConfig() { + bitField0_ = (bitField0_ & ~0x20000000); + containerdConfig_ = null; + if (containerdConfigBuilder_ != null) { + containerdConfigBuilder_.dispose(); + containerdConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The desired containerd config for nodes in the node pool.
+     * Initiates an upgrade operation that recreates the nodes with the new
+     * config.
+     * 
+ * + * .google.container.v1.ContainerdConfig containerd_config = 40; + */ + public com.google.container.v1.ContainerdConfig.Builder getContainerdConfigBuilder() { + bitField0_ |= 0x20000000; + onChanged(); + return getContainerdConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The desired containerd config for nodes in the node pool.
+     * Initiates an upgrade operation that recreates the nodes with the new
+     * config.
+     * 
+ * + * .google.container.v1.ContainerdConfig containerd_config = 40; + */ + public com.google.container.v1.ContainerdConfigOrBuilder getContainerdConfigOrBuilder() { + if (containerdConfigBuilder_ != null) { + return containerdConfigBuilder_.getMessageOrBuilder(); + } else { + return containerdConfig_ == null + ? com.google.container.v1.ContainerdConfig.getDefaultInstance() + : containerdConfig_; + } + } + /** + * + * + *
+     * The desired containerd config for nodes in the node pool.
+     * Initiates an upgrade operation that recreates the nodes with the new
+     * config.
+     * 
+ * + * .google.container.v1.ContainerdConfig containerd_config = 40; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ContainerdConfig, + com.google.container.v1.ContainerdConfig.Builder, + com.google.container.v1.ContainerdConfigOrBuilder> + getContainerdConfigFieldBuilder() { + if (containerdConfigBuilder_ == null) { + containerdConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1.ContainerdConfig, + com.google.container.v1.ContainerdConfig.Builder, + com.google.container.v1.ContainerdConfigOrBuilder>( + getContainerdConfig(), getParentForChildren(), isClean()); + containerdConfig_ = null; + } + return containerdConfigBuilder_; + } + private com.google.container.v1.NodePool.QueuedProvisioning queuedProvisioning_; private com.google.protobuf.SingleFieldBuilderV3< com.google.container.v1.NodePool.QueuedProvisioning, @@ -7461,7 +8297,7 @@ public com.google.container.v1.ResourceManagerTagsOrBuilder getResourceManagerTa * @return Whether the queuedProvisioning field is set. */ public boolean hasQueuedProvisioning() { - return ((bitField0_ & 0x10000000) != 0); + return ((bitField0_ & 0x40000000) != 0); } /** * @@ -7502,7 +8338,7 @@ public Builder setQueuedProvisioning( } else { queuedProvisioningBuilder_.setMessage(value); } - bitField0_ |= 0x10000000; + bitField0_ |= 0x40000000; onChanged(); return this; } @@ -7522,7 +8358,7 @@ public Builder setQueuedProvisioning( } else { queuedProvisioningBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x10000000; + bitField0_ |= 0x40000000; onChanged(); return this; } @@ -7538,7 +8374,7 @@ public Builder setQueuedProvisioning( public Builder mergeQueuedProvisioning( com.google.container.v1.NodePool.QueuedProvisioning value) { if (queuedProvisioningBuilder_ == null) { - if (((bitField0_ & 0x10000000) != 0) + if (((bitField0_ & 0x40000000) != 0) && queuedProvisioning_ != null && queuedProvisioning_ != com.google.container.v1.NodePool.QueuedProvisioning.getDefaultInstance()) { @@ -7550,7 +8386,7 @@ public Builder mergeQueuedProvisioning( queuedProvisioningBuilder_.mergeFrom(value); } if (queuedProvisioning_ != null) { - bitField0_ |= 0x10000000; + bitField0_ |= 0x40000000; onChanged(); } return this; @@ -7565,7 +8401,7 @@ public Builder mergeQueuedProvisioning( * .google.container.v1.NodePool.QueuedProvisioning queued_provisioning = 42; */ public Builder clearQueuedProvisioning() { - bitField0_ = (bitField0_ & ~0x10000000); + bitField0_ = (bitField0_ & ~0x40000000); queuedProvisioning_ = null; if (queuedProvisioningBuilder_ != null) { queuedProvisioningBuilder_.dispose(); @@ -7585,7 +8421,7 @@ public Builder clearQueuedProvisioning() { */ public com.google.container.v1.NodePool.QueuedProvisioning.Builder getQueuedProvisioningBuilder() { - bitField0_ |= 0x10000000; + bitField0_ |= 0x40000000; onChanged(); return getQueuedProvisioningFieldBuilder().getBuilder(); } diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequestOrBuilder.java index 3ce392a34639..ffd83cd8dc68 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface UpdateNodePoolRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2656 + * google/container/v1/cluster_service.proto;l=2760 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface UpdateNodePoolRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2656 + * google/container/v1/cluster_service.proto;l=2760 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface UpdateNodePoolRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2662 + * google/container/v1/cluster_service.proto;l=2766 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface UpdateNodePoolRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2662 + * google/container/v1/cluster_service.proto;l=2766 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface UpdateNodePoolRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2666 + * google/container/v1/cluster_service.proto;l=2770 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface UpdateNodePoolRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2666 + * google/container/v1/cluster_service.proto;l=2770 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -140,7 +140,7 @@ public interface UpdateNodePoolRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2670 + * google/container/v1/cluster_service.proto;l=2774 * @return The nodePoolId. */ @java.lang.Deprecated @@ -156,7 +156,7 @@ public interface UpdateNodePoolRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2670 + * google/container/v1/cluster_service.proto;l=2774 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -910,6 +910,68 @@ public interface UpdateNodePoolRequestOrBuilder */ com.google.container.v1.WindowsNodeConfigOrBuilder getWindowsNodeConfigOrBuilder(); + /** + * + * + *
+   * A list of hardware accelerators to be attached to each node.
+   * See https://cloud.google.com/compute/docs/gpus for more information about
+   * support for GPUs.
+   * 
+ * + * repeated .google.container.v1.AcceleratorConfig accelerators = 35; + */ + java.util.List getAcceleratorsList(); + /** + * + * + *
+   * A list of hardware accelerators to be attached to each node.
+   * See https://cloud.google.com/compute/docs/gpus for more information about
+   * support for GPUs.
+   * 
+ * + * repeated .google.container.v1.AcceleratorConfig accelerators = 35; + */ + com.google.container.v1.AcceleratorConfig getAccelerators(int index); + /** + * + * + *
+   * A list of hardware accelerators to be attached to each node.
+   * See https://cloud.google.com/compute/docs/gpus for more information about
+   * support for GPUs.
+   * 
+ * + * repeated .google.container.v1.AcceleratorConfig accelerators = 35; + */ + int getAcceleratorsCount(); + /** + * + * + *
+   * A list of hardware accelerators to be attached to each node.
+   * See https://cloud.google.com/compute/docs/gpus for more information about
+   * support for GPUs.
+   * 
+ * + * repeated .google.container.v1.AcceleratorConfig accelerators = 35; + */ + java.util.List + getAcceleratorsOrBuilderList(); + /** + * + * + *
+   * A list of hardware accelerators to be attached to each node.
+   * See https://cloud.google.com/compute/docs/gpus for more information about
+   * support for GPUs.
+   * 
+ * + * repeated .google.container.v1.AcceleratorConfig accelerators = 35; + */ + com.google.container.v1.AcceleratorConfigOrBuilder getAcceleratorsOrBuilder(int index); + /** * * @@ -1029,6 +1091,47 @@ public interface UpdateNodePoolRequestOrBuilder */ com.google.container.v1.ResourceManagerTagsOrBuilder getResourceManagerTagsOrBuilder(); + /** + * + * + *
+   * The desired containerd config for nodes in the node pool.
+   * Initiates an upgrade operation that recreates the nodes with the new
+   * config.
+   * 
+ * + * .google.container.v1.ContainerdConfig containerd_config = 40; + * + * @return Whether the containerdConfig field is set. + */ + boolean hasContainerdConfig(); + /** + * + * + *
+   * The desired containerd config for nodes in the node pool.
+   * Initiates an upgrade operation that recreates the nodes with the new
+   * config.
+   * 
+ * + * .google.container.v1.ContainerdConfig containerd_config = 40; + * + * @return The containerdConfig. + */ + com.google.container.v1.ContainerdConfig getContainerdConfig(); + /** + * + * + *
+   * The desired containerd config for nodes in the node pool.
+   * Initiates an upgrade operation that recreates the nodes with the new
+   * config.
+   * 
+ * + * .google.container.v1.ContainerdConfig containerd_config = 40; + */ + com.google.container.v1.ContainerdConfigOrBuilder getContainerdConfigOrBuilder(); + /** * * diff --git a/java-container/proto-google-cloud-container-v1/src/main/proto/google/container/v1/cluster_service.proto b/java-container/proto-google-cloud-container-v1/src/main/proto/google/container/v1/cluster_service.proto index 941f81f0bfca..b9f6f53ff9a2 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/proto/google/container/v1/cluster_service.proto +++ b/java-container/proto-google-cloud-container-v1/src/main/proto/google/container/v1/cluster_service.proto @@ -258,6 +258,7 @@ service ClusterManager { } }; option (google.api.method_signature) = "project_id,zone"; + option (google.api.method_signature) = "parent"; } // Gets the specified operation. @@ -531,6 +532,15 @@ message LinuxNodeConfig { CGROUP_MODE_V2 = 2; } + // Hugepages amount in both 2m and 1g size + message HugepagesConfig { + // Optional. Amount of 2M hugepages + optional int32 hugepage_size2m = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Amount of 1G hugepages + optional int32 hugepage_size1g = 2 [(google.api.field_behavior) = OPTIONAL]; + } + // The Linux kernel parameters to be applied to the nodes and all pods running // on the nodes. // @@ -551,6 +561,10 @@ message LinuxNodeConfig { // cgroup_mode specifies the cgroup mode to be used on the node. CgroupMode cgroup_mode = 2; + + // Optional. Amounts for 2M and 1G hugepages + optional HugepagesConfig hugepages = 3 + [(google.api.field_behavior) = OPTIONAL]; } // Parameters that can be configured on Windows nodes. @@ -830,6 +844,9 @@ message NodeConfig { // Parameters for node pools to be backed by shared sole tenant node groups. SoleTenantConfig sole_tenant_config = 42; + // Parameters for containerd customization. + ContainerdConfig containerd_config = 43; + // A map of resource manager tag keys and values to be attached to the nodes. ResourceManagerTags resource_manager_tags = 45; @@ -851,6 +868,9 @@ message AdvancedMachineFeatures { // multithreading (SMT) set this to 1. If unset, the maximum number of threads // supported per core by the underlying processor is assumed. optional int64 threads_per_core = 1; + + // Whether or not to enable nested virtualization (defaults to false). + optional bool enable_nested_virtualization = 2; } // Parameters for node pool-level network config. @@ -1079,6 +1099,53 @@ message SoleTenantConfig { repeated NodeAffinity node_affinities = 1; } +// ContainerdConfig contains configuration to customize containerd. +message ContainerdConfig { + // PrivateRegistryAccessConfig contains access configuration for + // private container registries. + message PrivateRegistryAccessConfig { + // CertificateAuthorityDomainConfig configures one or more fully qualified + // domain names (FQDN) to a specific certificate. + message CertificateAuthorityDomainConfig { + // GCPSecretManagerCertificateConfig configures a secret from + // [Google Secret Manager](https://cloud.google.com/secret-manager). + message GCPSecretManagerCertificateConfig { + // Secret URI, in the form + // "projects/$PROJECT_ID/secrets/$SECRET_NAME/versions/$VERSION". + // Version can be fixed (e.g. "2") or "latest" + string secret_uri = 1; + } + + // List of fully qualified domain names (FQDN). + // Specifying port is supported. + // Wilcards are NOT supported. + // Examples: + // - my.customdomain.com + // - 10.0.1.2:5000 + repeated string fqdns = 1; + + // Certificate access config. The following are supported: + // - GCPSecretManagerCertificateConfig + oneof certificate_config { + // Google Secret Manager (GCP) certificate configuration. + GCPSecretManagerCertificateConfig + gcp_secret_manager_certificate_config = 2; + } + } + + // Private registry access is enabled. + bool enabled = 1; + + // Private registry access configuration. + repeated CertificateAuthorityDomainConfig + certificate_authority_domain_config = 2; + } + + // PrivateRegistryAccessConfig is used to configure access configuration + // for private container registries. + PrivateRegistryAccessConfig private_registry_access_config = 1; +} + // Kubernetes taint is composed of three fields: key, value, and effect. Effect // can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute. // @@ -1997,6 +2064,12 @@ message Cluster { // GKE Enterprise Configuration. EnterpriseConfig enterprise_config = 149; + + // Output only. Reserved for future use. + optional bool satisfies_pzs = 152 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + optional bool satisfies_pzi = 153 [(google.api.field_behavior) = OUTPUT_ONLY]; } // K8sBetaAPIConfig , configuration for beta APIs @@ -2018,6 +2091,9 @@ message SecurityPostureConfig { // Applies Security Posture features on the cluster. BASIC = 2; + + // Applies the Security Posture off cluster Enterprise level features. + ENTERPRISE = 3; } // VulnerabilityMode defines enablement mode for vulnerability scanning. @@ -2055,6 +2131,11 @@ message NodePoolAutoConfig { // Resource manager tag keys and values to be attached to the nodes // for managing Compute Engine firewalls using Network Firewall Policies. ResourceManagerTags resource_manager_tags = 2; + + // NodeKubeletConfig controls the defaults for autoprovisioned node-pools. + // + // Currently only `insecure_kubelet_readonly_port_enabled` can be set here. + NodeKubeletConfig node_kubelet_config = 3; } // Subset of Nodepool message that has defaults. @@ -2070,6 +2151,14 @@ message NodeConfigDefaults { // Logging configuration for node pools. NodePoolLoggingConfig logging_config = 3; + + // Parameters for containerd customization. + ContainerdConfig containerd_config = 4; + + // NodeKubeletConfig controls the defaults for new node-pools. + // + // Currently only `insecure_kubelet_readonly_port_enabled` can be set here. + NodeKubeletConfig node_kubelet_config = 6; } // ClusterUpdate describes an update to the cluster. Exactly one update can @@ -2178,7 +2267,12 @@ message ClusterUpdate { // Cluster-level Vertical Pod Autoscaling configuration. VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - // The desired private cluster configuration. + // The desired private cluster configuration. master_global_access_config is + // the only field that can be changed via this field. + // See also + // [ClusterUpdate.desired_enable_private_endpoint][google.container.v1.ClusterUpdate.desired_enable_private_endpoint] + // for modifying other fields within + // [PrivateClusterConfig][google.container.v1.PrivateClusterConfig]. PrivateClusterConfig desired_private_cluster_config = 25; // The desired config of Intra-node visibility. @@ -2287,6 +2381,9 @@ message ClusterUpdate { // Desired Beta APIs to be enabled for cluster. K8sBetaAPIConfig desired_k8s_beta_apis = 131; + // The desired containerd config for the cluster. + ContainerdConfig desired_containerd_config = 134; + // Enable/Disable Multi-Networking for the cluster optional bool desired_enable_multi_networking = 135; @@ -2299,6 +2396,13 @@ message ClusterUpdate { // Enable/Disable Cilium Clusterwide Network Policy for the cluster. optional bool desired_enable_cilium_clusterwide_network_policy = 138; + + // The desired node kubelet config for the cluster. + NodeKubeletConfig desired_node_kubelet_config = 141; + + // The desired node kubelet config for all auto-provisioned node pools + // in autopilot clusters and node auto-provisioning enabled clusters. + NodeKubeletConfig desired_node_pool_auto_config_kubelet_config = 142; } // AdditionalPodRangesConfig is the configuration for additional pod secondary @@ -2758,6 +2862,11 @@ message UpdateNodePoolRequest { // Parameters that can be configured on Windows nodes. WindowsNodeConfig windows_node_config = 34; + // A list of hardware accelerators to be attached to each node. + // See https://cloud.google.com/compute/docs/gpus for more information about + // support for GPUs. + repeated AcceleratorConfig accelerators = 35; + // Optional. The desired [Google Compute Engine machine // type](https://cloud.google.com/compute/docs/machine-types) for nodes in the // node pool. Initiates an upgrade operation that migrates the nodes in the @@ -2781,6 +2890,11 @@ message UpdateNodePoolRequest { // Existing tags will be replaced with new values. ResourceManagerTags resource_manager_tags = 39; + // The desired containerd config for nodes in the node pool. + // Initiates an upgrade operation that recreates the nodes with the new + // config. + ContainerdConfig containerd_config = 40; + // Specifies the configuration of queued provisioning. NodePool.QueuedProvisioning queued_provisioning = 42; } @@ -4186,6 +4300,9 @@ message GPUSharingConfig { // GPUs are time-shared between containers. TIME_SHARING = 1; + + // GPUs are shared between containers with NVIDIA MPS. + MPS = 2; } // The max number of containers that can share a physical GPU. @@ -4405,6 +4522,7 @@ message NetworkConfig { optional bool enable_fqdn_network_policy = 19; // Specify the details of in-transit encryption. + // Now named inter-node transparent encryption. optional InTransitEncryptionConfig in_transit_encryption_config = 20; // Whether CiliumClusterwideNetworkPolicy is enabled on this cluster. @@ -4668,6 +4786,10 @@ message DNSConfig { // cluster_dns_domain is the suffix used for all cluster service records. string cluster_dns_domain = 3; + + // Optional. The domain used in Additive VPC scope. + string additive_vpc_scope_dns_domain = 5 + [(google.api.field_behavior) = OPTIONAL]; } // Constraints applied to pods. @@ -5258,6 +5380,12 @@ message MonitoringComponentConfig { // Statefulset STATEFULSET = 12; + + // CADVISOR + CADVISOR = 13; + + // KUBELET + KUBELET = 14; } // Select components to collect metrics. An empty set would disable all diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/create/SyncCreateSetCredentialsProvider1.java b/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 000000000000..efd40106b1a1 --- /dev/null +++ b/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.container.v1.samples; + +// [START container_v1_generated_ClusterManager_Create_SetCredentialsProvider1_sync] +import com.google.cloud.container.v1.ClusterManagerClient; +import com.google.cloud.container.v1.ClusterManagerSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ClusterManagerSettings clusterManagerSettings = + ClusterManagerSettings.newHttpJsonBuilder().build(); + ClusterManagerClient clusterManagerClient = ClusterManagerClient.create(clusterManagerSettings); + } +} +// [END container_v1_generated_ClusterManager_Create_SetCredentialsProvider1_sync] diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listoperations/SyncListOperationsString.java b/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listoperations/SyncListOperationsString.java new file mode 100644 index 000000000000..98f08d0bf8df --- /dev/null +++ b/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/listoperations/SyncListOperationsString.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.container.v1.samples; + +// [START container_v1_generated_ClusterManager_ListOperations_String_sync] +import com.google.cloud.container.v1.ClusterManagerClient; +import com.google.container.v1.ListOperationsResponse; + +public class SyncListOperationsString { + + public static void main(String[] args) throws Exception { + syncListOperationsString(); + } + + public static void syncListOperationsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) { + String parent = "parent-995424086"; + ListOperationsResponse response = clusterManagerClient.listOperations(parent); + } + } +} +// [END container_v1_generated_ClusterManager_ListOperations_String_sync] diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatenodepool/AsyncUpdateNodePool.java b/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatenodepool/AsyncUpdateNodePool.java index bed3d62e649d..d8737a870d4e 100644 --- a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatenodepool/AsyncUpdateNodePool.java +++ b/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatenodepool/AsyncUpdateNodePool.java @@ -19,7 +19,9 @@ // [START container_v1_generated_ClusterManager_UpdateNodePool_async] import com.google.api.core.ApiFuture; import com.google.cloud.container.v1.ClusterManagerClient; +import com.google.container.v1.AcceleratorConfig; import com.google.container.v1.ConfidentialNodes; +import com.google.container.v1.ContainerdConfig; import com.google.container.v1.FastSocket; import com.google.container.v1.GcfsConfig; import com.google.container.v1.LinuxNodeConfig; @@ -78,10 +80,12 @@ public static void asyncUpdateNodePool() throws Exception { .setLoggingConfig(NodePoolLoggingConfig.newBuilder().build()) .setResourceLabels(ResourceLabels.newBuilder().build()) .setWindowsNodeConfig(WindowsNodeConfig.newBuilder().build()) + .addAllAccelerators(new ArrayList()) .setMachineType("machineType-218117087") .setDiskType("diskType279771767") .setDiskSizeGb(-757478089) .setResourceManagerTags(ResourceManagerTags.newBuilder().build()) + .setContainerdConfig(ContainerdConfig.newBuilder().build()) .setQueuedProvisioning(NodePool.QueuedProvisioning.newBuilder().build()) .build(); ApiFuture future = diff --git a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatenodepool/SyncUpdateNodePool.java b/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatenodepool/SyncUpdateNodePool.java index da4331808bf9..73e21cc002b8 100644 --- a/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatenodepool/SyncUpdateNodePool.java +++ b/java-container/samples/snippets/generated/com/google/cloud/container/v1/clustermanager/updatenodepool/SyncUpdateNodePool.java @@ -18,7 +18,9 @@ // [START container_v1_generated_ClusterManager_UpdateNodePool_sync] import com.google.cloud.container.v1.ClusterManagerClient; +import com.google.container.v1.AcceleratorConfig; import com.google.container.v1.ConfidentialNodes; +import com.google.container.v1.ContainerdConfig; import com.google.container.v1.FastSocket; import com.google.container.v1.GcfsConfig; import com.google.container.v1.LinuxNodeConfig; @@ -77,10 +79,12 @@ public static void syncUpdateNodePool() throws Exception { .setLoggingConfig(NodePoolLoggingConfig.newBuilder().build()) .setResourceLabels(ResourceLabels.newBuilder().build()) .setWindowsNodeConfig(WindowsNodeConfig.newBuilder().build()) + .addAllAccelerators(new ArrayList()) .setMachineType("machineType-218117087") .setDiskType("diskType279771767") .setDiskSizeGb(-757478089) .setResourceManagerTags(ResourceManagerTags.newBuilder().build()) + .setContainerdConfig(ContainerdConfig.newBuilder().build()) .setQueuedProvisioning(NodePool.QueuedProvisioning.newBuilder().build()) .build(); Operation response = clusterManagerClient.updateNodePool(request); diff --git a/java-dialogflow-cx/README.md b/java-dialogflow-cx/README.md index 3651510cafa6..2dd9c43f7778 100644 --- a/java-dialogflow-cx/README.md +++ b/java-dialogflow-cx/README.md @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dialogflow-cx.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow-cx/0.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow-cx/0.56.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ExamplesStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ExamplesStubSettings.java index 3918d9ca65b6..27193224c689 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ExamplesStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ExamplesStubSettings.java @@ -63,6 +63,7 @@ import java.io.IOException; import java.util.List; import javax.annotation.Generated; +import org.threeten.bp.Duration; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -402,7 +403,9 @@ public static class Builder extends StubSettings.Builder> definitions = ImmutableMap.builder(); - definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -411,8 +414,17 @@ public static class Builder extends StubSettings.Builder definitions = ImmutableMap.builder(); RetrySettings settings = null; - settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); - definitions.put("no_retry_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(60000L)) + .setTotalTimeout(Duration.ofMillis(60000L)) + .build(); + definitions.put("retry_policy_0_params", settings); RETRY_PARAM_DEFINITIONS = definitions.build(); } @@ -492,38 +504,38 @@ private static Builder createHttpJsonDefault() { private static Builder initDefaults(Builder builder) { builder .createExampleSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .deleteExampleSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .listExamplesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .getExampleSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .updateExampleSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .listLocationsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .getLocationSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); return builder; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/PlaybooksStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/PlaybooksStubSettings.java index a43215ab65b5..902255d9a3b5 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/PlaybooksStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/PlaybooksStubSettings.java @@ -70,6 +70,7 @@ import java.io.IOException; import java.util.List; import javax.annotation.Generated; +import org.threeten.bp.Duration; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -526,7 +527,9 @@ public static class Builder extends StubSettings.Builder> definitions = ImmutableMap.builder(); - definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -535,8 +538,17 @@ public static class Builder extends StubSettings.Builder definitions = ImmutableMap.builder(); RetrySettings settings = null; - settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); - definitions.put("no_retry_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(60000L)) + .setTotalTimeout(Duration.ofMillis(60000L)) + .build(); + definitions.put("retry_policy_0_params", settings); RETRY_PARAM_DEFINITIONS = definitions.build(); } @@ -633,58 +645,58 @@ private static Builder createHttpJsonDefault() { private static Builder initDefaults(Builder builder) { builder .createPlaybookSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .deletePlaybookSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .listPlaybooksSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .getPlaybookSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .updatePlaybookSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .createPlaybookVersionSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .getPlaybookVersionSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .listPlaybookVersionsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .deletePlaybookVersionSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .listLocationsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .getLocationSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); return builder; } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ToolsStubSettings.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ToolsStubSettings.java index fc68a4be4f41..dd7bd90874db 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ToolsStubSettings.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/ToolsStubSettings.java @@ -430,7 +430,9 @@ public static class Builder extends StubSettings.Builder> definitions = ImmutableMap.builder(); - definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -439,8 +441,17 @@ public static class Builder extends StubSettings.Builder definitions = ImmutableMap.builder(); RetrySettings settings = null; - settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); - definitions.put("no_retry_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(60000L)) + .setTotalTimeout(Duration.ofMillis(60000L)) + .build(); + definitions.put("retry_policy_0_params", settings); RETRY_PARAM_DEFINITIONS = definitions.build(); } @@ -526,50 +537,50 @@ private static Builder createHttpJsonDefault() { private static Builder initDefaults(Builder builder) { builder .createToolSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .listToolsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .exportToolsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .getToolSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .updateToolSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .deleteToolSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .listLocationsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .getLocationSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder .exportToolsOperationSettings() .setInitialCallSettings( UnaryCallSettings.newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(ExportToolsResponse.class)) diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.cx.v3beta1/reflect-config.json b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.cx.v3beta1/reflect-config.json index 9a10a95ef303..f376a5d09244 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.cx.v3beta1/reflect-config.json +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.cx.v3beta1/reflect-config.json @@ -395,24 +395,6 @@ "allDeclaredClasses": true, "allPublicClasses": true }, - { - "name": "com.google.cloud.dialogflow.cx.v3beta1.ActionParameter", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.dialogflow.cx.v3beta1.ActionParameter$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, { "name": "com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings", "queryAllDeclaredConstructors": true, @@ -5444,6 +5426,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dialogflow.cx.v3beta1.Playbook$Instruction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.cx.v3beta1.Playbook$Instruction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dialogflow.cx.v3beta1.Playbook$Step", "queryAllDeclaredConstructors": true, @@ -6821,6 +6821,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dialogflow.cx.v3beta1.ToolCall", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.cx.v3beta1.ToolCall$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dialogflow.cx.v3beta1.ToolCallResult", "queryAllDeclaredConstructors": true, diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsClientHttpJsonTest.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsClientHttpJsonTest.java index 9b37309ced94..2e7ba0565ce7 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsClientHttpJsonTest.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsClientHttpJsonTest.java @@ -198,9 +198,6 @@ public void getAgentTest() throws Exception { .setDescription("description-1724546052") .setAvatarUri("avatarUri-428646061") .setSpeechToTextSettings(SpeechToTextSettings.newBuilder().build()) - .setStartFlow(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString()) - .setStartPlaybook( - PlaybookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]").toString()) .setSecuritySettings( SecuritySettingsName.of("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]") .toString()) @@ -265,9 +262,6 @@ public void getAgentTest2() throws Exception { .setDescription("description-1724546052") .setAvatarUri("avatarUri-428646061") .setSpeechToTextSettings(SpeechToTextSettings.newBuilder().build()) - .setStartFlow(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString()) - .setStartPlaybook( - PlaybookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]").toString()) .setSecuritySettings( SecuritySettingsName.of("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]") .toString()) @@ -332,9 +326,6 @@ public void createAgentTest() throws Exception { .setDescription("description-1724546052") .setAvatarUri("avatarUri-428646061") .setSpeechToTextSettings(SpeechToTextSettings.newBuilder().build()) - .setStartFlow(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString()) - .setStartPlaybook( - PlaybookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]").toString()) .setSecuritySettings( SecuritySettingsName.of("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]") .toString()) @@ -401,9 +392,6 @@ public void createAgentTest2() throws Exception { .setDescription("description-1724546052") .setAvatarUri("avatarUri-428646061") .setSpeechToTextSettings(SpeechToTextSettings.newBuilder().build()) - .setStartFlow(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString()) - .setStartPlaybook( - PlaybookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]").toString()) .setSecuritySettings( SecuritySettingsName.of("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]") .toString()) @@ -470,9 +458,6 @@ public void updateAgentTest() throws Exception { .setDescription("description-1724546052") .setAvatarUri("avatarUri-428646061") .setSpeechToTextSettings(SpeechToTextSettings.newBuilder().build()) - .setStartFlow(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString()) - .setStartPlaybook( - PlaybookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]").toString()) .setSecuritySettings( SecuritySettingsName.of("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]") .toString()) @@ -499,9 +484,6 @@ public void updateAgentTest() throws Exception { .setDescription("description-1724546052") .setAvatarUri("avatarUri-428646061") .setSpeechToTextSettings(SpeechToTextSettings.newBuilder().build()) - .setStartFlow(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString()) - .setStartPlaybook( - PlaybookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]").toString()) .setSecuritySettings( SecuritySettingsName.of("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]") .toString()) @@ -554,9 +536,6 @@ public void updateAgentExceptionTest() throws Exception { .setDescription("description-1724546052") .setAvatarUri("avatarUri-428646061") .setSpeechToTextSettings(SpeechToTextSettings.newBuilder().build()) - .setStartFlow(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString()) - .setStartPlaybook( - PlaybookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]").toString()) .setSecuritySettings( SecuritySettingsName.of("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]") .toString()) diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsClientTest.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsClientTest.java index 97b39573188c..69c8b9431b5a 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsClientTest.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsClientTest.java @@ -194,9 +194,6 @@ public void getAgentTest() throws Exception { .setDescription("description-1724546052") .setAvatarUri("avatarUri-428646061") .setSpeechToTextSettings(SpeechToTextSettings.newBuilder().build()) - .setStartFlow(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString()) - .setStartPlaybook( - PlaybookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]").toString()) .setSecuritySettings( SecuritySettingsName.of("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]") .toString()) @@ -255,9 +252,6 @@ public void getAgentTest2() throws Exception { .setDescription("description-1724546052") .setAvatarUri("avatarUri-428646061") .setSpeechToTextSettings(SpeechToTextSettings.newBuilder().build()) - .setStartFlow(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString()) - .setStartPlaybook( - PlaybookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]").toString()) .setSecuritySettings( SecuritySettingsName.of("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]") .toString()) @@ -316,9 +310,6 @@ public void createAgentTest() throws Exception { .setDescription("description-1724546052") .setAvatarUri("avatarUri-428646061") .setSpeechToTextSettings(SpeechToTextSettings.newBuilder().build()) - .setStartFlow(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString()) - .setStartPlaybook( - PlaybookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]").toString()) .setSecuritySettings( SecuritySettingsName.of("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]") .toString()) @@ -380,9 +371,6 @@ public void createAgentTest2() throws Exception { .setDescription("description-1724546052") .setAvatarUri("avatarUri-428646061") .setSpeechToTextSettings(SpeechToTextSettings.newBuilder().build()) - .setStartFlow(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString()) - .setStartPlaybook( - PlaybookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]").toString()) .setSecuritySettings( SecuritySettingsName.of("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]") .toString()) @@ -444,9 +432,6 @@ public void updateAgentTest() throws Exception { .setDescription("description-1724546052") .setAvatarUri("avatarUri-428646061") .setSpeechToTextSettings(SpeechToTextSettings.newBuilder().build()) - .setStartFlow(FlowName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]").toString()) - .setStartPlaybook( - PlaybookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[PLAYBOOK]").toString()) .setSecuritySettings( SecuritySettingsName.of("[PROJECT]", "[LOCATION]", "[SECURITY_SETTINGS]") .toString()) diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybooksClientHttpJsonTest.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybooksClientHttpJsonTest.java index dbeacc8373ca..530bc6fcba8b 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybooksClientHttpJsonTest.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybooksClientHttpJsonTest.java @@ -95,7 +95,7 @@ public void createPlaybookTest() throws Exception { .setGoal("goal3178259") .addAllInputParameterDefinitions(new ArrayList()) .addAllOutputParameterDefinitions(new ArrayList()) - .addAllSteps(new ArrayList()) + .setInstruction(Playbook.Instruction.newBuilder().build()) .setTokenCount(-1164226743) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) @@ -153,7 +153,7 @@ public void createPlaybookTest2() throws Exception { .setGoal("goal3178259") .addAllInputParameterDefinitions(new ArrayList()) .addAllOutputParameterDefinitions(new ArrayList()) - .addAllSteps(new ArrayList()) + .setInstruction(Playbook.Instruction.newBuilder().build()) .setTokenCount(-1164226743) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) @@ -393,7 +393,7 @@ public void getPlaybookTest() throws Exception { .setGoal("goal3178259") .addAllInputParameterDefinitions(new ArrayList()) .addAllOutputParameterDefinitions(new ArrayList()) - .addAllSteps(new ArrayList()) + .setInstruction(Playbook.Instruction.newBuilder().build()) .setTokenCount(-1164226743) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) @@ -449,7 +449,7 @@ public void getPlaybookTest2() throws Exception { .setGoal("goal3178259") .addAllInputParameterDefinitions(new ArrayList()) .addAllOutputParameterDefinitions(new ArrayList()) - .addAllSteps(new ArrayList()) + .setInstruction(Playbook.Instruction.newBuilder().build()) .setTokenCount(-1164226743) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) @@ -507,7 +507,7 @@ public void updatePlaybookTest() throws Exception { .setGoal("goal3178259") .addAllInputParameterDefinitions(new ArrayList()) .addAllOutputParameterDefinitions(new ArrayList()) - .addAllSteps(new ArrayList()) + .setInstruction(Playbook.Instruction.newBuilder().build()) .setTokenCount(-1164226743) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) @@ -525,7 +525,7 @@ public void updatePlaybookTest() throws Exception { .setGoal("goal3178259") .addAllInputParameterDefinitions(new ArrayList()) .addAllOutputParameterDefinitions(new ArrayList()) - .addAllSteps(new ArrayList()) + .setInstruction(Playbook.Instruction.newBuilder().build()) .setTokenCount(-1164226743) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) @@ -570,7 +570,7 @@ public void updatePlaybookExceptionTest() throws Exception { .setGoal("goal3178259") .addAllInputParameterDefinitions(new ArrayList()) .addAllOutputParameterDefinitions(new ArrayList()) - .addAllSteps(new ArrayList()) + .setInstruction(Playbook.Instruction.newBuilder().build()) .setTokenCount(-1164226743) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybooksClientTest.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybooksClientTest.java index 89bd44d80399..a7d5d6dd04be 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybooksClientTest.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybooksClientTest.java @@ -102,7 +102,7 @@ public void createPlaybookTest() throws Exception { .setGoal("goal3178259") .addAllInputParameterDefinitions(new ArrayList()) .addAllOutputParameterDefinitions(new ArrayList()) - .addAllSteps(new ArrayList()) + .setInstruction(Playbook.Instruction.newBuilder().build()) .setTokenCount(-1164226743) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) @@ -155,7 +155,7 @@ public void createPlaybookTest2() throws Exception { .setGoal("goal3178259") .addAllInputParameterDefinitions(new ArrayList()) .addAllOutputParameterDefinitions(new ArrayList()) - .addAllSteps(new ArrayList()) + .setInstruction(Playbook.Instruction.newBuilder().build()) .setTokenCount(-1164226743) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) @@ -364,7 +364,7 @@ public void getPlaybookTest() throws Exception { .setGoal("goal3178259") .addAllInputParameterDefinitions(new ArrayList()) .addAllOutputParameterDefinitions(new ArrayList()) - .addAllSteps(new ArrayList()) + .setInstruction(Playbook.Instruction.newBuilder().build()) .setTokenCount(-1164226743) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) @@ -414,7 +414,7 @@ public void getPlaybookTest2() throws Exception { .setGoal("goal3178259") .addAllInputParameterDefinitions(new ArrayList()) .addAllOutputParameterDefinitions(new ArrayList()) - .addAllSteps(new ArrayList()) + .setInstruction(Playbook.Instruction.newBuilder().build()) .setTokenCount(-1164226743) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) @@ -464,7 +464,7 @@ public void updatePlaybookTest() throws Exception { .setGoal("goal3178259") .addAllInputParameterDefinitions(new ArrayList()) .addAllOutputParameterDefinitions(new ArrayList()) - .addAllSteps(new ArrayList()) + .setInstruction(Playbook.Instruction.newBuilder().build()) .setTokenCount(-1164226743) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/ToolsClientHttpJsonTest.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/ToolsClientHttpJsonTest.java index 7faae1b94adb..3bc722494f30 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/ToolsClientHttpJsonTest.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/ToolsClientHttpJsonTest.java @@ -93,8 +93,6 @@ public void createToolTest() throws Exception { .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TOOL]").toString()) .setDisplayName("displayName1714148973") .setDescription("description-1724546052") - .addAllActions(new ArrayList()) - .addAllSchemas(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -143,8 +141,6 @@ public void createToolTest2() throws Exception { .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TOOL]").toString()) .setDisplayName("displayName1714148973") .setDescription("description-1724546052") - .addAllActions(new ArrayList()) - .addAllSchemas(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -347,8 +343,6 @@ public void getToolTest() throws Exception { .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TOOL]").toString()) .setDisplayName("displayName1714148973") .setDescription("description-1724546052") - .addAllActions(new ArrayList()) - .addAllSchemas(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -395,8 +389,6 @@ public void getToolTest2() throws Exception { .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TOOL]").toString()) .setDisplayName("displayName1714148973") .setDescription("description-1724546052") - .addAllActions(new ArrayList()) - .addAllSchemas(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -444,8 +436,6 @@ public void updateToolTest() throws Exception { .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TOOL]").toString()) .setDisplayName("displayName1714148973") .setDescription("description-1724546052") - .addAllActions(new ArrayList()) - .addAllSchemas(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -454,8 +444,6 @@ public void updateToolTest() throws Exception { .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TOOL]").toString()) .setDisplayName("displayName1714148973") .setDescription("description-1724546052") - .addAllActions(new ArrayList()) - .addAllSchemas(new ArrayList()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -490,8 +478,6 @@ public void updateToolExceptionTest() throws Exception { .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TOOL]").toString()) .setDisplayName("displayName1714148973") .setDescription("description-1724546052") - .addAllActions(new ArrayList()) - .addAllSchemas(new ArrayList()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateTool(tool, updateMask); diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/ToolsClientTest.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/ToolsClientTest.java index af51a43d02c5..5e2a1a658bb2 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/ToolsClientTest.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v3beta1/ToolsClientTest.java @@ -100,8 +100,6 @@ public void createToolTest() throws Exception { .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TOOL]").toString()) .setDisplayName("displayName1714148973") .setDescription("description-1724546052") - .addAllActions(new ArrayList()) - .addAllSchemas(new ArrayList()) .build(); mockTools.addResponse(expectedResponse); @@ -145,8 +143,6 @@ public void createToolTest2() throws Exception { .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TOOL]").toString()) .setDisplayName("displayName1714148973") .setDescription("description-1724546052") - .addAllActions(new ArrayList()) - .addAllSchemas(new ArrayList()) .build(); mockTools.addResponse(expectedResponse); @@ -333,8 +329,6 @@ public void getToolTest() throws Exception { .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TOOL]").toString()) .setDisplayName("displayName1714148973") .setDescription("description-1724546052") - .addAllActions(new ArrayList()) - .addAllSchemas(new ArrayList()) .build(); mockTools.addResponse(expectedResponse); @@ -375,8 +369,6 @@ public void getToolTest2() throws Exception { .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TOOL]").toString()) .setDisplayName("displayName1714148973") .setDescription("description-1724546052") - .addAllActions(new ArrayList()) - .addAllSchemas(new ArrayList()) .build(); mockTools.addResponse(expectedResponse); @@ -417,8 +409,6 @@ public void updateToolTest() throws Exception { .setName(ToolName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[TOOL]").toString()) .setDisplayName("displayName1714148973") .setDescription("description-1724546052") - .addAllActions(new ArrayList()) - .addAllSchemas(new ArrayList()) .build(); mockTools.addResponse(expectedResponse); diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ActionParameterOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ActionParameterOrBuilder.java deleted file mode 100644 index 00d13b62030a..000000000000 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ActionParameterOrBuilder.java +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/dialogflow/cx/v3beta1/example.proto - -// Protobuf Java Version: 3.25.3 -package com.google.cloud.dialogflow.cx.v3beta1; - -public interface ActionParameterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3beta1.ActionParameter) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the parameter.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the parameter.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Required. Value of the parameter.
-   * 
- * - * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return Whether the value field is set. - */ - boolean hasValue(); - /** - * - * - *
-   * Required. Value of the parameter.
-   * 
- * - * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The value. - */ - com.google.protobuf.Value getValue(); - /** - * - * - *
-   * Required. Value of the parameter.
-   * 
- * - * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.protobuf.ValueOrBuilder getValueOrBuilder(); -} diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AdvancedSettings.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AdvancedSettings.java index 7cda7b843bf0..36a11232f789 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AdvancedSettings.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AdvancedSettings.java @@ -1578,6 +1578,76 @@ public interface DtmfSettingsOrBuilder * @return The bytes for finishDigit. */ com.google.protobuf.ByteString getFinishDigitBytes(); + + /** + * + * + *
+     * Interdigit timeout setting for matching dtmf input to regex.
+     * 
+ * + * .google.protobuf.Duration interdigit_timeout_duration = 6; + * + * @return Whether the interdigitTimeoutDuration field is set. + */ + boolean hasInterdigitTimeoutDuration(); + /** + * + * + *
+     * Interdigit timeout setting for matching dtmf input to regex.
+     * 
+ * + * .google.protobuf.Duration interdigit_timeout_duration = 6; + * + * @return The interdigitTimeoutDuration. + */ + com.google.protobuf.Duration getInterdigitTimeoutDuration(); + /** + * + * + *
+     * Interdigit timeout setting for matching dtmf input to regex.
+     * 
+ * + * .google.protobuf.Duration interdigit_timeout_duration = 6; + */ + com.google.protobuf.DurationOrBuilder getInterdigitTimeoutDurationOrBuilder(); + + /** + * + * + *
+     * Endpoint timeout setting for matching dtmf input to regex.
+     * 
+ * + * .google.protobuf.Duration endpointing_timeout_duration = 7; + * + * @return Whether the endpointingTimeoutDuration field is set. + */ + boolean hasEndpointingTimeoutDuration(); + /** + * + * + *
+     * Endpoint timeout setting for matching dtmf input to regex.
+     * 
+ * + * .google.protobuf.Duration endpointing_timeout_duration = 7; + * + * @return The endpointingTimeoutDuration. + */ + com.google.protobuf.Duration getEndpointingTimeoutDuration(); + /** + * + * + *
+     * Endpoint timeout setting for matching dtmf input to regex.
+     * 
+ * + * .google.protobuf.Duration endpointing_timeout_duration = 7; + */ + com.google.protobuf.DurationOrBuilder getEndpointingTimeoutDurationOrBuilder(); } /** * @@ -1623,6 +1693,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings.Builder.class); } + private int bitField0_; public static final int ENABLED_FIELD_NUMBER = 1; private boolean enabled_ = false; /** @@ -1715,6 +1786,106 @@ public com.google.protobuf.ByteString getFinishDigitBytes() { } } + public static final int INTERDIGIT_TIMEOUT_DURATION_FIELD_NUMBER = 6; + private com.google.protobuf.Duration interdigitTimeoutDuration_; + /** + * + * + *
+     * Interdigit timeout setting for matching dtmf input to regex.
+     * 
+ * + * .google.protobuf.Duration interdigit_timeout_duration = 6; + * + * @return Whether the interdigitTimeoutDuration field is set. + */ + @java.lang.Override + public boolean hasInterdigitTimeoutDuration() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Interdigit timeout setting for matching dtmf input to regex.
+     * 
+ * + * .google.protobuf.Duration interdigit_timeout_duration = 6; + * + * @return The interdigitTimeoutDuration. + */ + @java.lang.Override + public com.google.protobuf.Duration getInterdigitTimeoutDuration() { + return interdigitTimeoutDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : interdigitTimeoutDuration_; + } + /** + * + * + *
+     * Interdigit timeout setting for matching dtmf input to regex.
+     * 
+ * + * .google.protobuf.Duration interdigit_timeout_duration = 6; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getInterdigitTimeoutDurationOrBuilder() { + return interdigitTimeoutDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : interdigitTimeoutDuration_; + } + + public static final int ENDPOINTING_TIMEOUT_DURATION_FIELD_NUMBER = 7; + private com.google.protobuf.Duration endpointingTimeoutDuration_; + /** + * + * + *
+     * Endpoint timeout setting for matching dtmf input to regex.
+     * 
+ * + * .google.protobuf.Duration endpointing_timeout_duration = 7; + * + * @return Whether the endpointingTimeoutDuration field is set. + */ + @java.lang.Override + public boolean hasEndpointingTimeoutDuration() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Endpoint timeout setting for matching dtmf input to regex.
+     * 
+ * + * .google.protobuf.Duration endpointing_timeout_duration = 7; + * + * @return The endpointingTimeoutDuration. + */ + @java.lang.Override + public com.google.protobuf.Duration getEndpointingTimeoutDuration() { + return endpointingTimeoutDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : endpointingTimeoutDuration_; + } + /** + * + * + *
+     * Endpoint timeout setting for matching dtmf input to regex.
+     * 
+ * + * .google.protobuf.Duration endpointing_timeout_duration = 7; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getEndpointingTimeoutDurationOrBuilder() { + return endpointingTimeoutDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : endpointingTimeoutDuration_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1738,6 +1909,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(finishDigit_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, finishDigit_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(6, getInterdigitTimeoutDuration()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getEndpointingTimeoutDuration()); + } getUnknownFields().writeTo(output); } @@ -1756,6 +1933,16 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(finishDigit_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, finishDigit_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, getInterdigitTimeoutDuration()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, getEndpointingTimeoutDuration()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1775,6 +1962,16 @@ public boolean equals(final java.lang.Object obj) { if (getEnabled() != other.getEnabled()) return false; if (getMaxDigits() != other.getMaxDigits()) return false; if (!getFinishDigit().equals(other.getFinishDigit())) return false; + if (hasInterdigitTimeoutDuration() != other.hasInterdigitTimeoutDuration()) return false; + if (hasInterdigitTimeoutDuration()) { + if (!getInterdigitTimeoutDuration().equals(other.getInterdigitTimeoutDuration())) + return false; + } + if (hasEndpointingTimeoutDuration() != other.hasEndpointingTimeoutDuration()) return false; + if (hasEndpointingTimeoutDuration()) { + if (!getEndpointingTimeoutDuration().equals(other.getEndpointingTimeoutDuration())) + return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1792,6 +1989,14 @@ public int hashCode() { hash = (53 * hash) + getMaxDigits(); hash = (37 * hash) + FINISH_DIGIT_FIELD_NUMBER; hash = (53 * hash) + getFinishDigit().hashCode(); + if (hasInterdigitTimeoutDuration()) { + hash = (37 * hash) + INTERDIGIT_TIMEOUT_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getInterdigitTimeoutDuration().hashCode(); + } + if (hasEndpointingTimeoutDuration()) { + hash = (37 * hash) + ENDPOINTING_TIMEOUT_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getEndpointingTimeoutDuration().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1926,10 +2131,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.DtmfSettings.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getInterdigitTimeoutDurationFieldBuilder(); + getEndpointingTimeoutDurationFieldBuilder(); + } } @java.lang.Override @@ -1939,6 +2154,16 @@ public Builder clear() { enabled_ = false; maxDigits_ = 0; finishDigit_ = ""; + interdigitTimeoutDuration_ = null; + if (interdigitTimeoutDurationBuilder_ != null) { + interdigitTimeoutDurationBuilder_.dispose(); + interdigitTimeoutDurationBuilder_ = null; + } + endpointingTimeoutDuration_ = null; + if (endpointingTimeoutDurationBuilder_ != null) { + endpointingTimeoutDurationBuilder_.dispose(); + endpointingTimeoutDurationBuilder_ = null; + } return this; } @@ -1988,6 +2213,22 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000004) != 0)) { result.finishDigit_ = finishDigit_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.interdigitTimeoutDuration_ = + interdigitTimeoutDurationBuilder_ == null + ? interdigitTimeoutDuration_ + : interdigitTimeoutDurationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.endpointingTimeoutDuration_ = + endpointingTimeoutDurationBuilder_ == null + ? endpointingTimeoutDuration_ + : endpointingTimeoutDurationBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -2052,6 +2293,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; onChanged(); } + if (other.hasInterdigitTimeoutDuration()) { + mergeInterdigitTimeoutDuration(other.getInterdigitTimeoutDuration()); + } + if (other.hasEndpointingTimeoutDuration()) { + mergeEndpointingTimeoutDuration(other.getEndpointingTimeoutDuration()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2096,6 +2343,20 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 50: + { + input.readMessage( + getInterdigitTimeoutDurationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 50 + case 58: + { + input.readMessage( + getEndpointingTimeoutDurationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2342,6 +2603,378 @@ public Builder setFinishDigitBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.Duration interdigitTimeoutDuration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + interdigitTimeoutDurationBuilder_; + /** + * + * + *
+       * Interdigit timeout setting for matching dtmf input to regex.
+       * 
+ * + * .google.protobuf.Duration interdigit_timeout_duration = 6; + * + * @return Whether the interdigitTimeoutDuration field is set. + */ + public boolean hasInterdigitTimeoutDuration() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+       * Interdigit timeout setting for matching dtmf input to regex.
+       * 
+ * + * .google.protobuf.Duration interdigit_timeout_duration = 6; + * + * @return The interdigitTimeoutDuration. + */ + public com.google.protobuf.Duration getInterdigitTimeoutDuration() { + if (interdigitTimeoutDurationBuilder_ == null) { + return interdigitTimeoutDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : interdigitTimeoutDuration_; + } else { + return interdigitTimeoutDurationBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Interdigit timeout setting for matching dtmf input to regex.
+       * 
+ * + * .google.protobuf.Duration interdigit_timeout_duration = 6; + */ + public Builder setInterdigitTimeoutDuration(com.google.protobuf.Duration value) { + if (interdigitTimeoutDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + interdigitTimeoutDuration_ = value; + } else { + interdigitTimeoutDurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+       * Interdigit timeout setting for matching dtmf input to regex.
+       * 
+ * + * .google.protobuf.Duration interdigit_timeout_duration = 6; + */ + public Builder setInterdigitTimeoutDuration( + com.google.protobuf.Duration.Builder builderForValue) { + if (interdigitTimeoutDurationBuilder_ == null) { + interdigitTimeoutDuration_ = builderForValue.build(); + } else { + interdigitTimeoutDurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+       * Interdigit timeout setting for matching dtmf input to regex.
+       * 
+ * + * .google.protobuf.Duration interdigit_timeout_duration = 6; + */ + public Builder mergeInterdigitTimeoutDuration(com.google.protobuf.Duration value) { + if (interdigitTimeoutDurationBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && interdigitTimeoutDuration_ != null + && interdigitTimeoutDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + getInterdigitTimeoutDurationBuilder().mergeFrom(value); + } else { + interdigitTimeoutDuration_ = value; + } + } else { + interdigitTimeoutDurationBuilder_.mergeFrom(value); + } + if (interdigitTimeoutDuration_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
+       * Interdigit timeout setting for matching dtmf input to regex.
+       * 
+ * + * .google.protobuf.Duration interdigit_timeout_duration = 6; + */ + public Builder clearInterdigitTimeoutDuration() { + bitField0_ = (bitField0_ & ~0x00000008); + interdigitTimeoutDuration_ = null; + if (interdigitTimeoutDurationBuilder_ != null) { + interdigitTimeoutDurationBuilder_.dispose(); + interdigitTimeoutDurationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * Interdigit timeout setting for matching dtmf input to regex.
+       * 
+ * + * .google.protobuf.Duration interdigit_timeout_duration = 6; + */ + public com.google.protobuf.Duration.Builder getInterdigitTimeoutDurationBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getInterdigitTimeoutDurationFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Interdigit timeout setting for matching dtmf input to regex.
+       * 
+ * + * .google.protobuf.Duration interdigit_timeout_duration = 6; + */ + public com.google.protobuf.DurationOrBuilder getInterdigitTimeoutDurationOrBuilder() { + if (interdigitTimeoutDurationBuilder_ != null) { + return interdigitTimeoutDurationBuilder_.getMessageOrBuilder(); + } else { + return interdigitTimeoutDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : interdigitTimeoutDuration_; + } + } + /** + * + * + *
+       * Interdigit timeout setting for matching dtmf input to regex.
+       * 
+ * + * .google.protobuf.Duration interdigit_timeout_duration = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getInterdigitTimeoutDurationFieldBuilder() { + if (interdigitTimeoutDurationBuilder_ == null) { + interdigitTimeoutDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getInterdigitTimeoutDuration(), getParentForChildren(), isClean()); + interdigitTimeoutDuration_ = null; + } + return interdigitTimeoutDurationBuilder_; + } + + private com.google.protobuf.Duration endpointingTimeoutDuration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + endpointingTimeoutDurationBuilder_; + /** + * + * + *
+       * Endpoint timeout setting for matching dtmf input to regex.
+       * 
+ * + * .google.protobuf.Duration endpointing_timeout_duration = 7; + * + * @return Whether the endpointingTimeoutDuration field is set. + */ + public boolean hasEndpointingTimeoutDuration() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+       * Endpoint timeout setting for matching dtmf input to regex.
+       * 
+ * + * .google.protobuf.Duration endpointing_timeout_duration = 7; + * + * @return The endpointingTimeoutDuration. + */ + public com.google.protobuf.Duration getEndpointingTimeoutDuration() { + if (endpointingTimeoutDurationBuilder_ == null) { + return endpointingTimeoutDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : endpointingTimeoutDuration_; + } else { + return endpointingTimeoutDurationBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Endpoint timeout setting for matching dtmf input to regex.
+       * 
+ * + * .google.protobuf.Duration endpointing_timeout_duration = 7; + */ + public Builder setEndpointingTimeoutDuration(com.google.protobuf.Duration value) { + if (endpointingTimeoutDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endpointingTimeoutDuration_ = value; + } else { + endpointingTimeoutDurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+       * Endpoint timeout setting for matching dtmf input to regex.
+       * 
+ * + * .google.protobuf.Duration endpointing_timeout_duration = 7; + */ + public Builder setEndpointingTimeoutDuration( + com.google.protobuf.Duration.Builder builderForValue) { + if (endpointingTimeoutDurationBuilder_ == null) { + endpointingTimeoutDuration_ = builderForValue.build(); + } else { + endpointingTimeoutDurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+       * Endpoint timeout setting for matching dtmf input to regex.
+       * 
+ * + * .google.protobuf.Duration endpointing_timeout_duration = 7; + */ + public Builder mergeEndpointingTimeoutDuration(com.google.protobuf.Duration value) { + if (endpointingTimeoutDurationBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && endpointingTimeoutDuration_ != null + && endpointingTimeoutDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + getEndpointingTimeoutDurationBuilder().mergeFrom(value); + } else { + endpointingTimeoutDuration_ = value; + } + } else { + endpointingTimeoutDurationBuilder_.mergeFrom(value); + } + if (endpointingTimeoutDuration_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
+       * Endpoint timeout setting for matching dtmf input to regex.
+       * 
+ * + * .google.protobuf.Duration endpointing_timeout_duration = 7; + */ + public Builder clearEndpointingTimeoutDuration() { + bitField0_ = (bitField0_ & ~0x00000010); + endpointingTimeoutDuration_ = null; + if (endpointingTimeoutDurationBuilder_ != null) { + endpointingTimeoutDurationBuilder_.dispose(); + endpointingTimeoutDurationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * Endpoint timeout setting for matching dtmf input to regex.
+       * 
+ * + * .google.protobuf.Duration endpointing_timeout_duration = 7; + */ + public com.google.protobuf.Duration.Builder getEndpointingTimeoutDurationBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getEndpointingTimeoutDurationFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Endpoint timeout setting for matching dtmf input to regex.
+       * 
+ * + * .google.protobuf.Duration endpointing_timeout_duration = 7; + */ + public com.google.protobuf.DurationOrBuilder getEndpointingTimeoutDurationOrBuilder() { + if (endpointingTimeoutDurationBuilder_ != null) { + return endpointingTimeoutDurationBuilder_.getMessageOrBuilder(); + } else { + return endpointingTimeoutDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : endpointingTimeoutDuration_; + } + } + /** + * + * + *
+       * Endpoint timeout setting for matching dtmf input to regex.
+       * 
+ * + * .google.protobuf.Duration endpointing_timeout_duration = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getEndpointingTimeoutDurationFieldBuilder() { + if (endpointingTimeoutDurationBuilder_ == null) { + endpointingTimeoutDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getEndpointingTimeoutDuration(), getParentForChildren(), isClean()); + endpointingTimeoutDuration_ = null; + } + return endpointingTimeoutDurationBuilder_; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AdvancedSettingsProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AdvancedSettingsProto.java index 0d342ee5ec3d..31701a029f45 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AdvancedSettingsProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AdvancedSettingsProto.java @@ -62,7 +62,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "gflow.cx.v3beta1\032\037google/api/field_behav" + "ior.proto\032,google/cloud/dialogflow/cx/v3" + "beta1/gcs.proto\032\036google/protobuf/duratio" - + "n.proto\"\312\006\n\020AdvancedSettings\022X\n\034audio_ex" + + "n.proto\"\314\007\n\020AdvancedSettings\022X\n\034audio_ex" + "port_gcs_destination\030\002 \001(\01322.google.clou" + "d.dialogflow.cx.v3beta1.GcsDestination\022\\" + "\n\017speech_settings\030\003 \001(\0132C.google.cloud.d" @@ -79,16 +79,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".google.cloud.dialogflow.cx.v3beta1.Adva" + "ncedSettings.SpeechSettings.ModelsEntry\032" + "-\n\013ModelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" - + "(\t:\0028\001\032I\n\014DtmfSettings\022\017\n\007enabled\030\001 \001(\010\022" - + "\022\n\nmax_digits\030\002 \001(\005\022\024\n\014finish_digit\030\003 \001(" - + "\t\032Y\n\017LoggingSettings\022\"\n\032enable_stackdriv" - + "er_logging\030\002 \001(\010\022\"\n\032enable_interaction_l" - + "ogging\030\003 \001(\010B\317\001\n&com.google.cloud.dialog" - + "flow.cx.v3beta1B\025AdvancedSettingsProtoP\001" - + "Z6cloud.google.com/go/dialogflow/cx/apiv" - + "3beta1/cxpb;cxpb\370\001\001\242\002\002DF\252\002\"Google.Cloud." - + "Dialogflow.Cx.V3Beta1\352\002&Google::Cloud::D" - + "ialogflow::CX::V3beta1b\006proto3" + + "(\t:\0028\001\032\312\001\n\014DtmfSettings\022\017\n\007enabled\030\001 \001(\010" + + "\022\022\n\nmax_digits\030\002 \001(\005\022\024\n\014finish_digit\030\003 \001" + + "(\t\022>\n\033interdigit_timeout_duration\030\006 \001(\0132" + + "\031.google.protobuf.Duration\022?\n\034endpointin" + + "g_timeout_duration\030\007 \001(\0132\031.google.protob" + + "uf.Duration\032Y\n\017LoggingSettings\022\"\n\032enable" + + "_stackdriver_logging\030\002 \001(\010\022\"\n\032enable_int" + + "eraction_logging\030\003 \001(\010B\317\001\n&com.google.cl" + + "oud.dialogflow.cx.v3beta1B\025AdvancedSetti" + + "ngsProtoP\001Z6cloud.google.com/go/dialogfl" + + "ow/cx/apiv3beta1/cxpb;cxpb\370\001\001\242\002\002DF\252\002\"Goo" + + "gle.Cloud.Dialogflow.Cx.V3Beta1\352\002&Google" + + "::Cloud::Dialogflow::CX::V3beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -134,7 +137,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3beta1_AdvancedSettings_DtmfSettings_descriptor, new java.lang.String[] { - "Enabled", "MaxDigits", "FinishDigit", + "Enabled", + "MaxDigits", + "FinishDigit", + "InterdigitTimeoutDuration", + "EndpointingTimeoutDuration", }); internal_static_google_cloud_dialogflow_cx_v3beta1_AdvancedSettings_LoggingSettings_descriptor = internal_static_google_cloud_dialogflow_cx_v3beta1_AdvancedSettings_descriptor diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Agent.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Agent.java index 47132652fae3..6ac4065876c9 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Agent.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Agent.java @@ -58,8 +58,6 @@ private Agent() { timeZone_ = ""; description_ = ""; avatarUri_ = ""; - startFlow_ = ""; - startPlaybook_ = ""; securitySettings_ = ""; } @@ -4815,6 +4813,55 @@ public com.google.protobuf.Parser getParserForType() { } private int bitField0_; + private int sessionEntryResourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object sessionEntryResource_; + + public enum SessionEntryResourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + START_FLOW(16), + START_PLAYBOOK(39), + SESSIONENTRYRESOURCE_NOT_SET(0); + private final int value; + + private SessionEntryResourceCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SessionEntryResourceCase valueOf(int value) { + return forNumber(value); + } + + public static SessionEntryResourceCase forNumber(int value) { + switch (value) { + case 16: + return START_FLOW; + case 39: + return START_PLAYBOOK; + case 0: + return SESSIONENTRYRESOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SessionEntryResourceCase getSessionEntryResourceCase() { + return SessionEntryResourceCase.forNumber(sessionEntryResourceCase_); + } + public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -5284,34 +5331,54 @@ public com.google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings getSpeechToTe } public static final int START_FLOW_FIELD_NUMBER = 16; - - @SuppressWarnings("serial") - private volatile java.lang.Object startFlow_ = ""; /** * * *
-   * Immutable. Name of the start flow in this agent. A start flow will be
-   * automatically created when the agent is created, and can only be deleted by
-   * deleting the agent. Format: `projects/<Project ID>/locations/<Location
-   * ID>/agents/<Agent ID>/flows/<Flow ID>`.
+   * Name of the start flow in this agent. A start flow will be automatically
+   * created when the agent is created, and can only be deleted by deleting
+   * the agent.
+   * Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/<Agent ID>/flows/<Flow ID>`. Currently only the default start
+   * flow with id "00000000-0000-0000-0000-000000000000" is allowed.
    * 
* - * - * string start_flow = 16 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * + * string start_flow = 16 [(.google.api.resource_reference) = { ... } + * + * @return Whether the startFlow field is set. + */ + public boolean hasStartFlow() { + return sessionEntryResourceCase_ == 16; + } + /** + * + * + *
+   * Name of the start flow in this agent. A start flow will be automatically
+   * created when the agent is created, and can only be deleted by deleting
+   * the agent.
+   * Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/<Agent ID>/flows/<Flow ID>`. Currently only the default start
+   * flow with id "00000000-0000-0000-0000-000000000000" is allowed.
+   * 
+ * + * string start_flow = 16 [(.google.api.resource_reference) = { ... } * * @return The startFlow. */ - @java.lang.Override public java.lang.String getStartFlow() { - java.lang.Object ref = startFlow_; + java.lang.Object ref = ""; + if (sessionEntryResourceCase_ == 16) { + ref = sessionEntryResource_; + } if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - startFlow_ = s; + if (sessionEntryResourceCase_ == 16) { + sessionEntryResource_ = s; + } return s; } } @@ -5319,25 +5386,29 @@ public java.lang.String getStartFlow() { * * *
-   * Immutable. Name of the start flow in this agent. A start flow will be
-   * automatically created when the agent is created, and can only be deleted by
-   * deleting the agent. Format: `projects/<Project ID>/locations/<Location
-   * ID>/agents/<Agent ID>/flows/<Flow ID>`.
+   * Name of the start flow in this agent. A start flow will be automatically
+   * created when the agent is created, and can only be deleted by deleting
+   * the agent.
+   * Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/<Agent ID>/flows/<Flow ID>`. Currently only the default start
+   * flow with id "00000000-0000-0000-0000-000000000000" is allowed.
    * 
* - * - * string start_flow = 16 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * + * string start_flow = 16 [(.google.api.resource_reference) = { ... } * * @return The bytes for startFlow. */ - @java.lang.Override public com.google.protobuf.ByteString getStartFlowBytes() { - java.lang.Object ref = startFlow_; + java.lang.Object ref = ""; + if (sessionEntryResourceCase_ == 16) { + ref = sessionEntryResource_; + } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - startFlow_ = b; + if (sessionEntryResourceCase_ == 16) { + sessionEntryResource_ = b; + } return b; } else { return (com.google.protobuf.ByteString) ref; @@ -5345,39 +5416,56 @@ public com.google.protobuf.ByteString getStartFlowBytes() { } public static final int START_PLAYBOOK_FIELD_NUMBER = 39; - - @SuppressWarnings("serial") - private volatile java.lang.Object startPlaybook_ = ""; /** * * *
-   * Optional. Name of the start playbook in this agent. A start playbook will
-   * be automatically created when the agent is created, and can only be deleted
+   * Name of the start playbook in this agent. A start playbook will be
+   * automatically created when the agent is created, and can only be deleted
    * by deleting the agent.
    * Format: `projects/<Project ID>/locations/<Location
    * ID>/agents/<Agent ID>/playbooks/<Playbook ID>`. Currently only the
    * default playbook with id
    * "00000000-0000-0000-0000-000000000000" is allowed.
+   * 
+ * + * string start_playbook = 39 [(.google.api.resource_reference) = { ... } + * + * @return Whether the startPlaybook field is set. + */ + public boolean hasStartPlaybook() { + return sessionEntryResourceCase_ == 39; + } + /** + * * - * Only one of `start_flow` or `start_playbook` should be set, but not both. + *
+   * Name of the start playbook in this agent. A start playbook will be
+   * automatically created when the agent is created, and can only be deleted
+   * by deleting the agent.
+   * Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/<Agent ID>/playbooks/<Playbook ID>`. Currently only the
+   * default playbook with id
+   * "00000000-0000-0000-0000-000000000000" is allowed.
    * 
* - * - * string start_playbook = 39 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * + * string start_playbook = 39 [(.google.api.resource_reference) = { ... } * * @return The startPlaybook. */ - @java.lang.Override public java.lang.String getStartPlaybook() { - java.lang.Object ref = startPlaybook_; + java.lang.Object ref = ""; + if (sessionEntryResourceCase_ == 39) { + ref = sessionEntryResource_; + } if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - startPlaybook_ = s; + if (sessionEntryResourceCase_ == 39) { + sessionEntryResource_ = s; + } return s; } } @@ -5385,30 +5473,30 @@ public java.lang.String getStartPlaybook() { * * *
-   * Optional. Name of the start playbook in this agent. A start playbook will
-   * be automatically created when the agent is created, and can only be deleted
+   * Name of the start playbook in this agent. A start playbook will be
+   * automatically created when the agent is created, and can only be deleted
    * by deleting the agent.
    * Format: `projects/<Project ID>/locations/<Location
    * ID>/agents/<Agent ID>/playbooks/<Playbook ID>`. Currently only the
    * default playbook with id
    * "00000000-0000-0000-0000-000000000000" is allowed.
-   *
-   * Only one of `start_flow` or `start_playbook` should be set, but not both.
    * 
* - * - * string start_playbook = 39 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * + * string start_playbook = 39 [(.google.api.resource_reference) = { ... } * * @return The bytes for startPlaybook. */ - @java.lang.Override public com.google.protobuf.ByteString getStartPlaybookBytes() { - java.lang.Object ref = startPlaybook_; + java.lang.Object ref = ""; + if (sessionEntryResourceCase_ == 39) { + ref = sessionEntryResource_; + } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - startPlaybook_ = b; + if (sessionEntryResourceCase_ == 39) { + sessionEntryResource_ = b; + } return b; } else { return (com.google.protobuf.ByteString) ref; @@ -5487,7 +5575,7 @@ public com.google.protobuf.ByteString getSecuritySettingsBytes() { * bool enable_stackdriver_logging = 18 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3beta1.Agent.enable_stackdriver_logging is deprecated. - * See google/cloud/dialogflow/cx/v3beta1/agent.proto;l=353 + * See google/cloud/dialogflow/cx/v3beta1/agent.proto;l=352 * @return The enableStackdriverLogging. */ @java.lang.Override @@ -5939,8 +6027,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(13, getSpeechToTextSettings()); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startFlow_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 16, startFlow_); + if (sessionEntryResourceCase_ == 16) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 16, sessionEntryResource_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(securitySettings_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 17, securitySettings_); @@ -5969,8 +6057,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(38, getAnswerFeedbackSettings()); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startPlaybook_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 39, startPlaybook_); + if (sessionEntryResourceCase_ == 39) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 39, sessionEntryResource_); } if (enableMultiLanguageTraining_ != false) { output.writeBool(40, enableMultiLanguageTraining_); @@ -6017,8 +6105,8 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getSpeechToTextSettings()); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startFlow_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, startFlow_); + if (sessionEntryResourceCase_ == 16) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, sessionEntryResource_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(securitySettings_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, securitySettings_); @@ -6051,8 +6139,8 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(38, getAnswerFeedbackSettings()); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startPlaybook_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(39, startPlaybook_); + if (sessionEntryResourceCase_ == 39) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(39, sessionEntryResource_); } if (enableMultiLanguageTraining_ != false) { size += @@ -6091,8 +6179,6 @@ public boolean equals(final java.lang.Object obj) { if (hasSpeechToTextSettings()) { if (!getSpeechToTextSettings().equals(other.getSpeechToTextSettings())) return false; } - if (!getStartFlow().equals(other.getStartFlow())) return false; - if (!getStartPlaybook().equals(other.getStartPlaybook())) return false; if (!getSecuritySettings().equals(other.getSecuritySettings())) return false; if (getEnableStackdriverLogging() != other.getEnableStackdriverLogging()) return false; if (getEnableSpellCorrection() != other.getEnableSpellCorrection()) return false; @@ -6122,6 +6208,17 @@ public boolean equals(final java.lang.Object obj) { if (hasPersonalizationSettings()) { if (!getPersonalizationSettings().equals(other.getPersonalizationSettings())) return false; } + if (!getSessionEntryResourceCase().equals(other.getSessionEntryResourceCase())) return false; + switch (sessionEntryResourceCase_) { + case 16: + if (!getStartFlow().equals(other.getStartFlow())) return false; + break; + case 39: + if (!getStartPlaybook().equals(other.getStartPlaybook())) return false; + break; + case 0: + default: + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -6153,10 +6250,6 @@ public int hashCode() { hash = (37 * hash) + SPEECH_TO_TEXT_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getSpeechToTextSettings().hashCode(); } - hash = (37 * hash) + START_FLOW_FIELD_NUMBER; - hash = (53 * hash) + getStartFlow().hashCode(); - hash = (37 * hash) + START_PLAYBOOK_FIELD_NUMBER; - hash = (53 * hash) + getStartPlaybook().hashCode(); hash = (37 * hash) + SECURITY_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getSecuritySettings().hashCode(); hash = (37 * hash) + ENABLE_STACKDRIVER_LOGGING_FIELD_NUMBER; @@ -6191,6 +6284,18 @@ public int hashCode() { hash = (37 * hash) + PERSONALIZATION_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getPersonalizationSettings().hashCode(); } + switch (sessionEntryResourceCase_) { + case 16: + hash = (37 * hash) + START_FLOW_FIELD_NUMBER; + hash = (53 * hash) + getStartFlow().hashCode(); + break; + case 39: + hash = (37 * hash) + START_PLAYBOOK_FIELD_NUMBER; + hash = (53 * hash) + getStartPlaybook().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -6369,8 +6474,6 @@ public Builder clear() { speechToTextSettingsBuilder_.dispose(); speechToTextSettingsBuilder_ = null; } - startFlow_ = ""; - startPlaybook_ = ""; securitySettings_ = ""; enableStackdriverLogging_ = false; enableSpellCorrection_ = false; @@ -6406,6 +6509,8 @@ public Builder clear() { personalizationSettingsBuilder_.dispose(); personalizationSettingsBuilder_ = null; } + sessionEntryResourceCase_ = 0; + sessionEntryResource_ = null; return this; } @@ -6436,6 +6541,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.Agent buildPartial() { if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); onBuilt(); return result; } @@ -6472,12 +6578,6 @@ private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.Agent result) : speechToTextSettingsBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.startFlow_ = startFlow_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.startPlaybook_ = startPlaybook_; - } if (((from_bitField0_ & 0x00000400) != 0)) { result.securitySettings_ = securitySettings_; } @@ -6536,6 +6636,11 @@ private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.Agent result) result.bitField0_ |= to_bitField0_; } + private void buildPartialOneofs(com.google.cloud.dialogflow.cx.v3beta1.Agent result) { + result.sessionEntryResourceCase_ = sessionEntryResourceCase_; + result.sessionEntryResource_ = this.sessionEntryResource_; + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -6624,16 +6729,6 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Agent other) { if (other.hasSpeechToTextSettings()) { mergeSpeechToTextSettings(other.getSpeechToTextSettings()); } - if (!other.getStartFlow().isEmpty()) { - startFlow_ = other.startFlow_; - bitField0_ |= 0x00000100; - onChanged(); - } - if (!other.getStartPlaybook().isEmpty()) { - startPlaybook_ = other.startPlaybook_; - bitField0_ |= 0x00000200; - onChanged(); - } if (!other.getSecuritySettings().isEmpty()) { securitySettings_ = other.securitySettings_; bitField0_ |= 0x00000400; @@ -6669,6 +6764,26 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Agent other) { if (other.hasPersonalizationSettings()) { mergePersonalizationSettings(other.getPersonalizationSettings()); } + switch (other.getSessionEntryResourceCase()) { + case START_FLOW: + { + sessionEntryResourceCase_ = 16; + sessionEntryResource_ = other.sessionEntryResource_; + onChanged(); + break; + } + case START_PLAYBOOK: + { + sessionEntryResourceCase_ = 39; + sessionEntryResource_ = other.sessionEntryResource_; + onChanged(); + break; + } + case SESSIONENTRYRESOURCE_NOT_SET: + { + break; + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -6747,8 +6862,9 @@ public Builder mergeFrom( } // case 106 case 130: { - startFlow_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; + java.lang.String s = input.readStringRequireUtf8(); + sessionEntryResourceCase_ = 16; + sessionEntryResource_ = s; break; } // case 130 case 138: @@ -6812,8 +6928,9 @@ public Builder mergeFrom( } // case 306 case 314: { - startPlaybook_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000200; + java.lang.String s = input.readStringRequireUtf8(); + sessionEntryResourceCase_ = 39; + sessionEntryResource_ = s; break; } // case 314 case 320: @@ -6846,6 +6963,20 @@ public Builder mergeFrom( return this; } + private int sessionEntryResourceCase_ = 0; + private java.lang.Object sessionEntryResource_; + + public SessionEntryResourceCase getSessionEntryResourceCase() { + return SessionEntryResourceCase.forNumber(sessionEntryResourceCase_); + } + + public Builder clearSessionEntryResource() { + sessionEntryResourceCase_ = 0; + sessionEntryResource_ = null; + onChanged(); + return this; + } + private int bitField0_; private java.lang.Object name_ = ""; @@ -7969,29 +8100,54 @@ public Builder clearSpeechToTextSettings() { return speechToTextSettingsBuilder_; } - private java.lang.Object startFlow_ = ""; /** * * *
-     * Immutable. Name of the start flow in this agent. A start flow will be
-     * automatically created when the agent is created, and can only be deleted by
-     * deleting the agent. Format: `projects/<Project ID>/locations/<Location
-     * ID>/agents/<Agent ID>/flows/<Flow ID>`.
+     * Name of the start flow in this agent. A start flow will be automatically
+     * created when the agent is created, and can only be deleted by deleting
+     * the agent.
+     * Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/flows/<Flow ID>`. Currently only the default start
+     * flow with id "00000000-0000-0000-0000-000000000000" is allowed.
      * 
* - * - * string start_flow = 16 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * + * string start_flow = 16 [(.google.api.resource_reference) = { ... } + * + * @return Whether the startFlow field is set. + */ + @java.lang.Override + public boolean hasStartFlow() { + return sessionEntryResourceCase_ == 16; + } + /** + * + * + *
+     * Name of the start flow in this agent. A start flow will be automatically
+     * created when the agent is created, and can only be deleted by deleting
+     * the agent.
+     * Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/flows/<Flow ID>`. Currently only the default start
+     * flow with id "00000000-0000-0000-0000-000000000000" is allowed.
+     * 
+ * + * string start_flow = 16 [(.google.api.resource_reference) = { ... } * * @return The startFlow. */ + @java.lang.Override public java.lang.String getStartFlow() { - java.lang.Object ref = startFlow_; + java.lang.Object ref = ""; + if (sessionEntryResourceCase_ == 16) { + ref = sessionEntryResource_; + } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - startFlow_ = s; + if (sessionEntryResourceCase_ == 16) { + sessionEntryResource_ = s; + } return s; } else { return (java.lang.String) ref; @@ -8001,24 +8157,30 @@ public java.lang.String getStartFlow() { * * *
-     * Immutable. Name of the start flow in this agent. A start flow will be
-     * automatically created when the agent is created, and can only be deleted by
-     * deleting the agent. Format: `projects/<Project ID>/locations/<Location
-     * ID>/agents/<Agent ID>/flows/<Flow ID>`.
+     * Name of the start flow in this agent. A start flow will be automatically
+     * created when the agent is created, and can only be deleted by deleting
+     * the agent.
+     * Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/flows/<Flow ID>`. Currently only the default start
+     * flow with id "00000000-0000-0000-0000-000000000000" is allowed.
      * 
* - * - * string start_flow = 16 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * + * string start_flow = 16 [(.google.api.resource_reference) = { ... } * * @return The bytes for startFlow. */ + @java.lang.Override public com.google.protobuf.ByteString getStartFlowBytes() { - java.lang.Object ref = startFlow_; + java.lang.Object ref = ""; + if (sessionEntryResourceCase_ == 16) { + ref = sessionEntryResource_; + } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - startFlow_ = b; + if (sessionEntryResourceCase_ == 16) { + sessionEntryResource_ = b; + } return b; } else { return (com.google.protobuf.ByteString) ref; @@ -8028,15 +8190,15 @@ public com.google.protobuf.ByteString getStartFlowBytes() { * * *
-     * Immutable. Name of the start flow in this agent. A start flow will be
-     * automatically created when the agent is created, and can only be deleted by
-     * deleting the agent. Format: `projects/<Project ID>/locations/<Location
-     * ID>/agents/<Agent ID>/flows/<Flow ID>`.
+     * Name of the start flow in this agent. A start flow will be automatically
+     * created when the agent is created, and can only be deleted by deleting
+     * the agent.
+     * Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/flows/<Flow ID>`. Currently only the default start
+     * flow with id "00000000-0000-0000-0000-000000000000" is allowed.
      * 
* - * - * string start_flow = 16 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * + * string start_flow = 16 [(.google.api.resource_reference) = { ... } * * @param value The startFlow to set. * @return This builder for chaining. @@ -8045,8 +8207,8 @@ public Builder setStartFlow(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - startFlow_ = value; - bitField0_ |= 0x00000100; + sessionEntryResourceCase_ = 16; + sessionEntryResource_ = value; onChanged(); return this; } @@ -8054,37 +8216,39 @@ public Builder setStartFlow(java.lang.String value) { * * *
-     * Immutable. Name of the start flow in this agent. A start flow will be
-     * automatically created when the agent is created, and can only be deleted by
-     * deleting the agent. Format: `projects/<Project ID>/locations/<Location
-     * ID>/agents/<Agent ID>/flows/<Flow ID>`.
+     * Name of the start flow in this agent. A start flow will be automatically
+     * created when the agent is created, and can only be deleted by deleting
+     * the agent.
+     * Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/flows/<Flow ID>`. Currently only the default start
+     * flow with id "00000000-0000-0000-0000-000000000000" is allowed.
      * 
* - * - * string start_flow = 16 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * + * string start_flow = 16 [(.google.api.resource_reference) = { ... } * * @return This builder for chaining. */ public Builder clearStartFlow() { - startFlow_ = getDefaultInstance().getStartFlow(); - bitField0_ = (bitField0_ & ~0x00000100); - onChanged(); + if (sessionEntryResourceCase_ == 16) { + sessionEntryResourceCase_ = 0; + sessionEntryResource_ = null; + onChanged(); + } return this; } /** * * *
-     * Immutable. Name of the start flow in this agent. A start flow will be
-     * automatically created when the agent is created, and can only be deleted by
-     * deleting the agent. Format: `projects/<Project ID>/locations/<Location
-     * ID>/agents/<Agent ID>/flows/<Flow ID>`.
+     * Name of the start flow in this agent. A start flow will be automatically
+     * created when the agent is created, and can only be deleted by deleting
+     * the agent.
+     * Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/flows/<Flow ID>`. Currently only the default start
+     * flow with id "00000000-0000-0000-0000-000000000000" is allowed.
      * 
* - * - * string start_flow = 16 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * + * string start_flow = 16 [(.google.api.resource_reference) = { ... } * * @param value The bytes for startFlow to set. * @return This builder for chaining. @@ -8094,40 +8258,62 @@ public Builder setStartFlowBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - startFlow_ = value; - bitField0_ |= 0x00000100; + sessionEntryResourceCase_ = 16; + sessionEntryResource_ = value; onChanged(); return this; } - private java.lang.Object startPlaybook_ = ""; /** * * *
-     * Optional. Name of the start playbook in this agent. A start playbook will
-     * be automatically created when the agent is created, and can only be deleted
+     * Name of the start playbook in this agent. A start playbook will be
+     * automatically created when the agent is created, and can only be deleted
      * by deleting the agent.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/agents/<Agent ID>/playbooks/<Playbook ID>`. Currently only the
      * default playbook with id
      * "00000000-0000-0000-0000-000000000000" is allowed.
+     * 
+ * + * string start_playbook = 39 [(.google.api.resource_reference) = { ... } + * + * @return Whether the startPlaybook field is set. + */ + @java.lang.Override + public boolean hasStartPlaybook() { + return sessionEntryResourceCase_ == 39; + } + /** * - * Only one of `start_flow` or `start_playbook` should be set, but not both. + * + *
+     * Name of the start playbook in this agent. A start playbook will be
+     * automatically created when the agent is created, and can only be deleted
+     * by deleting the agent.
+     * Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/playbooks/<Playbook ID>`. Currently only the
+     * default playbook with id
+     * "00000000-0000-0000-0000-000000000000" is allowed.
      * 
* - * - * string start_playbook = 39 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * + * string start_playbook = 39 [(.google.api.resource_reference) = { ... } * * @return The startPlaybook. */ + @java.lang.Override public java.lang.String getStartPlaybook() { - java.lang.Object ref = startPlaybook_; + java.lang.Object ref = ""; + if (sessionEntryResourceCase_ == 39) { + ref = sessionEntryResource_; + } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - startPlaybook_ = s; + if (sessionEntryResourceCase_ == 39) { + sessionEntryResource_ = s; + } return s; } else { return (java.lang.String) ref; @@ -8137,29 +8323,31 @@ public java.lang.String getStartPlaybook() { * * *
-     * Optional. Name of the start playbook in this agent. A start playbook will
-     * be automatically created when the agent is created, and can only be deleted
+     * Name of the start playbook in this agent. A start playbook will be
+     * automatically created when the agent is created, and can only be deleted
      * by deleting the agent.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/agents/<Agent ID>/playbooks/<Playbook ID>`. Currently only the
      * default playbook with id
      * "00000000-0000-0000-0000-000000000000" is allowed.
-     *
-     * Only one of `start_flow` or `start_playbook` should be set, but not both.
      * 
* - * - * string start_playbook = 39 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * + * string start_playbook = 39 [(.google.api.resource_reference) = { ... } * * @return The bytes for startPlaybook. */ + @java.lang.Override public com.google.protobuf.ByteString getStartPlaybookBytes() { - java.lang.Object ref = startPlaybook_; + java.lang.Object ref = ""; + if (sessionEntryResourceCase_ == 39) { + ref = sessionEntryResource_; + } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - startPlaybook_ = b; + if (sessionEntryResourceCase_ == 39) { + sessionEntryResource_ = b; + } return b; } else { return (com.google.protobuf.ByteString) ref; @@ -8169,20 +8357,16 @@ public com.google.protobuf.ByteString getStartPlaybookBytes() { * * *
-     * Optional. Name of the start playbook in this agent. A start playbook will
-     * be automatically created when the agent is created, and can only be deleted
+     * Name of the start playbook in this agent. A start playbook will be
+     * automatically created when the agent is created, and can only be deleted
      * by deleting the agent.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/agents/<Agent ID>/playbooks/<Playbook ID>`. Currently only the
      * default playbook with id
      * "00000000-0000-0000-0000-000000000000" is allowed.
-     *
-     * Only one of `start_flow` or `start_playbook` should be set, but not both.
      * 
* - * - * string start_playbook = 39 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * + * string start_playbook = 39 [(.google.api.resource_reference) = { ... } * * @param value The startPlaybook to set. * @return This builder for chaining. @@ -8191,8 +8375,8 @@ public Builder setStartPlaybook(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - startPlaybook_ = value; - bitField0_ |= 0x00000200; + sessionEntryResourceCase_ = 39; + sessionEntryResource_ = value; onChanged(); return this; } @@ -8200,47 +8384,41 @@ public Builder setStartPlaybook(java.lang.String value) { * * *
-     * Optional. Name of the start playbook in this agent. A start playbook will
-     * be automatically created when the agent is created, and can only be deleted
+     * Name of the start playbook in this agent. A start playbook will be
+     * automatically created when the agent is created, and can only be deleted
      * by deleting the agent.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/agents/<Agent ID>/playbooks/<Playbook ID>`. Currently only the
      * default playbook with id
      * "00000000-0000-0000-0000-000000000000" is allowed.
-     *
-     * Only one of `start_flow` or `start_playbook` should be set, but not both.
      * 
* - * - * string start_playbook = 39 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * + * string start_playbook = 39 [(.google.api.resource_reference) = { ... } * * @return This builder for chaining. */ public Builder clearStartPlaybook() { - startPlaybook_ = getDefaultInstance().getStartPlaybook(); - bitField0_ = (bitField0_ & ~0x00000200); - onChanged(); + if (sessionEntryResourceCase_ == 39) { + sessionEntryResourceCase_ = 0; + sessionEntryResource_ = null; + onChanged(); + } return this; } /** * * *
-     * Optional. Name of the start playbook in this agent. A start playbook will
-     * be automatically created when the agent is created, and can only be deleted
+     * Name of the start playbook in this agent. A start playbook will be
+     * automatically created when the agent is created, and can only be deleted
      * by deleting the agent.
      * Format: `projects/<Project ID>/locations/<Location
      * ID>/agents/<Agent ID>/playbooks/<Playbook ID>`. Currently only the
      * default playbook with id
      * "00000000-0000-0000-0000-000000000000" is allowed.
-     *
-     * Only one of `start_flow` or `start_playbook` should be set, but not both.
      * 
* - * - * string start_playbook = 39 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * + * string start_playbook = 39 [(.google.api.resource_reference) = { ... } * * @param value The bytes for startPlaybook to set. * @return This builder for chaining. @@ -8250,8 +8428,8 @@ public Builder setStartPlaybookBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - startPlaybook_ = value; - bitField0_ |= 0x00000200; + sessionEntryResourceCase_ = 39; + sessionEntryResource_ = value; onChanged(); return this; } @@ -8391,7 +8569,7 @@ public Builder setSecuritySettingsBytes(com.google.protobuf.ByteString value) { * bool enable_stackdriver_logging = 18 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3beta1.Agent.enable_stackdriver_logging is - * deprecated. See google/cloud/dialogflow/cx/v3beta1/agent.proto;l=353 + * deprecated. See google/cloud/dialogflow/cx/v3beta1/agent.proto;l=352 * @return The enableStackdriverLogging. */ @java.lang.Override @@ -8412,7 +8590,7 @@ public boolean getEnableStackdriverLogging() { * bool enable_stackdriver_logging = 18 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3beta1.Agent.enable_stackdriver_logging is - * deprecated. See google/cloud/dialogflow/cx/v3beta1/agent.proto;l=353 + * deprecated. See google/cloud/dialogflow/cx/v3beta1/agent.proto;l=352 * @param value The enableStackdriverLogging to set. * @return This builder for chaining. */ @@ -8437,7 +8615,7 @@ public Builder setEnableStackdriverLogging(boolean value) { * bool enable_stackdriver_logging = 18 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3beta1.Agent.enable_stackdriver_logging is - * deprecated. See google/cloud/dialogflow/cx/v3beta1/agent.proto;l=353 + * deprecated. See google/cloud/dialogflow/cx/v3beta1/agent.proto;l=352 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentOrBuilder.java index b56eadf916a6..8bba9a18e046 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentOrBuilder.java @@ -312,15 +312,32 @@ public interface AgentOrBuilder * * *
-   * Immutable. Name of the start flow in this agent. A start flow will be
-   * automatically created when the agent is created, and can only be deleted by
-   * deleting the agent. Format: `projects/<Project ID>/locations/<Location
-   * ID>/agents/<Agent ID>/flows/<Flow ID>`.
+   * Name of the start flow in this agent. A start flow will be automatically
+   * created when the agent is created, and can only be deleted by deleting
+   * the agent.
+   * Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/<Agent ID>/flows/<Flow ID>`. Currently only the default start
+   * flow with id "00000000-0000-0000-0000-000000000000" is allowed.
    * 
* - * - * string start_flow = 16 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * + * string start_flow = 16 [(.google.api.resource_reference) = { ... } + * + * @return Whether the startFlow field is set. + */ + boolean hasStartFlow(); + /** + * + * + *
+   * Name of the start flow in this agent. A start flow will be automatically
+   * created when the agent is created, and can only be deleted by deleting
+   * the agent.
+   * Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/<Agent ID>/flows/<Flow ID>`. Currently only the default start
+   * flow with id "00000000-0000-0000-0000-000000000000" is allowed.
+   * 
+ * + * string start_flow = 16 [(.google.api.resource_reference) = { ... } * * @return The startFlow. */ @@ -329,15 +346,15 @@ public interface AgentOrBuilder * * *
-   * Immutable. Name of the start flow in this agent. A start flow will be
-   * automatically created when the agent is created, and can only be deleted by
-   * deleting the agent. Format: `projects/<Project ID>/locations/<Location
-   * ID>/agents/<Agent ID>/flows/<Flow ID>`.
+   * Name of the start flow in this agent. A start flow will be automatically
+   * created when the agent is created, and can only be deleted by deleting
+   * the agent.
+   * Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/<Agent ID>/flows/<Flow ID>`. Currently only the default start
+   * flow with id "00000000-0000-0000-0000-000000000000" is allowed.
    * 
* - * - * string start_flow = 16 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * + * string start_flow = 16 [(.google.api.resource_reference) = { ... } * * @return The bytes for startFlow. */ @@ -347,20 +364,34 @@ public interface AgentOrBuilder * * *
-   * Optional. Name of the start playbook in this agent. A start playbook will
-   * be automatically created when the agent is created, and can only be deleted
+   * Name of the start playbook in this agent. A start playbook will be
+   * automatically created when the agent is created, and can only be deleted
    * by deleting the agent.
    * Format: `projects/<Project ID>/locations/<Location
    * ID>/agents/<Agent ID>/playbooks/<Playbook ID>`. Currently only the
    * default playbook with id
    * "00000000-0000-0000-0000-000000000000" is allowed.
+   * 
+ * + * string start_playbook = 39 [(.google.api.resource_reference) = { ... } * - * Only one of `start_flow` or `start_playbook` should be set, but not both. + * @return Whether the startPlaybook field is set. + */ + boolean hasStartPlaybook(); + /** + * + * + *
+   * Name of the start playbook in this agent. A start playbook will be
+   * automatically created when the agent is created, and can only be deleted
+   * by deleting the agent.
+   * Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/<Agent ID>/playbooks/<Playbook ID>`. Currently only the
+   * default playbook with id
+   * "00000000-0000-0000-0000-000000000000" is allowed.
    * 
* - * - * string start_playbook = 39 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * + * string start_playbook = 39 [(.google.api.resource_reference) = { ... } * * @return The startPlaybook. */ @@ -369,20 +400,16 @@ public interface AgentOrBuilder * * *
-   * Optional. Name of the start playbook in this agent. A start playbook will
-   * be automatically created when the agent is created, and can only be deleted
+   * Name of the start playbook in this agent. A start playbook will be
+   * automatically created when the agent is created, and can only be deleted
    * by deleting the agent.
    * Format: `projects/<Project ID>/locations/<Location
    * ID>/agents/<Agent ID>/playbooks/<Playbook ID>`. Currently only the
    * default playbook with id
    * "00000000-0000-0000-0000-000000000000" is allowed.
-   *
-   * Only one of `start_flow` or `start_playbook` should be set, but not both.
    * 
* - * - * string start_playbook = 39 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * + * string start_playbook = 39 [(.google.api.resource_reference) = { ... } * * @return The bytes for startPlaybook. */ @@ -432,7 +459,7 @@ public interface AgentOrBuilder * bool enable_stackdriver_logging = 18 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3beta1.Agent.enable_stackdriver_logging is deprecated. - * See google/cloud/dialogflow/cx/v3beta1/agent.proto;l=353 + * See google/cloud/dialogflow/cx/v3beta1/agent.proto;l=352 * @return The enableStackdriverLogging. */ @java.lang.Deprecated @@ -728,4 +755,7 @@ public interface AgentOrBuilder */ com.google.cloud.dialogflow.cx.v3beta1.Agent.PersonalizationSettingsOrBuilder getPersonalizationSettingsOrBuilder(); + + com.google.cloud.dialogflow.cx.v3beta1.Agent.SessionEntryResourceCase + getSessionEntryResourceCase(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentProto.java index 4562301ce5c1..50c06e362338 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentProto.java @@ -144,183 +144,183 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "pty.proto\032 google/protobuf/field_mask.pr" + "oto\032\034google/protobuf/struct.proto\"8\n\024Spe" + "echToTextSettings\022 \n\030enable_speech_adapt" - + "ation\030\001 \001(\010\"\216\016\n\005Agent\022\014\n\004name\030\001 \001(\t\022\031\n\014d" + + "ation\030\001 \001(\010\"\246\016\n\005Agent\022\014\n\004name\030\001 \001(\t\022\031\n\014d" + "isplay_name\030\002 \001(\tB\003\340A\002\022%\n\025default_langua" + "ge_code\030\003 \001(\tB\006\340A\002\340A\005\022 \n\030supported_langu" + "age_codes\030\004 \003(\t\022\026\n\ttime_zone\030\005 \001(\tB\003\340A\002\022" + "\023\n\013description\030\006 \001(\t\022\022\n\navatar_uri\030\007 \001(\t" + "\022Y\n\027speech_to_text_settings\030\r \001(\01328.goog" + "le.cloud.dialogflow.cx.v3beta1.SpeechToT" - + "extSettings\022:\n\nstart_flow\030\020 \001(\tB&\340A\005\372A \n" - + "\036dialogflow.googleapis.com/Flow\022B\n\016start" - + "_playbook\030\' \001(\tB*\340A\001\372A$\n\"dialogflow.goog" - + "leapis.com/Playbook\022J\n\021security_settings" - + "\030\021 \001(\tB/\372A,\n*dialogflow.googleapis.com/S" - + "ecuritySettings\022&\n\032enable_stackdriver_lo" - + "gging\030\022 \001(\010B\002\030\001\022\037\n\027enable_spell_correcti" - + "on\030\024 \001(\010\022+\n\036enable_multi_language_traini" - + "ng\030( \001(\010B\003\340A\001\022\016\n\006locked\030\033 \001(\010\022O\n\021advance" - + "d_settings\030\026 \001(\01324.google.cloud.dialogfl" - + "ow.cx.v3beta1.AdvancedSettings\022b\n\030git_in" - + "tegration_settings\030\036 \001(\0132@.google.cloud." - + "dialogflow.cx.v3beta1.Agent.GitIntegrati" - + "onSettings\022Y\n\027text_to_speech_settings\030\037 " - + "\001(\01328.google.cloud.dialogflow.cx.v3beta1" - + ".TextToSpeechSettings\022f\n\030gen_app_builder" - + "_settings\030! \001(\0132?.google.cloud.dialogflo" - + "w.cx.v3beta1.Agent.GenAppBuilderSettings" - + "H\000\210\001\001\022g\n\030answer_feedback_settings\030& \001(\0132" - + "@.google.cloud.dialogflow.cx.v3beta1.Age" - + "nt.AnswerFeedbackSettingsB\003\340A\001\022h\n\030person" - + "alization_settings\030* \001(\0132A.google.cloud." - + "dialogflow.cx.v3beta1.Agent.Personalizat" - + "ionSettingsB\003\340A\001\032\225\002\n\026GitIntegrationSetti" - + "ngs\022j\n\017github_settings\030\001 \001(\0132O.google.cl" - + "oud.dialogflow.cx.v3beta1.Agent.GitInteg" - + "rationSettings.GithubSettingsH\000\032\177\n\016Githu" - + "bSettings\022\024\n\014display_name\030\001 \001(\t\022\026\n\016repos" - + "itory_uri\030\002 \001(\t\022\027\n\017tracking_branch\030\003 \001(\t" - + "\022\024\n\014access_token\030\004 \001(\t\022\020\n\010branches\030\005 \003(\t" - + "B\016\n\014git_settings\032,\n\025GenAppBuilderSetting" - + "s\022\023\n\006engine\030\001 \001(\tB\003\340A\002\032=\n\026AnswerFeedback" - + "Settings\022#\n\026enable_answer_feedback\030\001 \001(\010" - + "B\003\340A\001\032Z\n\027PersonalizationSettings\022?\n\031defa" - + "ult_end_user_metadata\030\001 \001(\0132\027.google.pro" - + "tobuf.StructB\003\340A\001:\\\352AY\n\037dialogflow.googl" - + "eapis.com/Agent\0226projects/{project}/loca" - + "tions/{location}/agents/{agent}B\033\n\031_gen_" - + "app_builder_settings\"s\n\021ListAgentsReques" - + "t\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037dialogflow.go" - + "ogleapis.com/Agent\022\021\n\tpage_size\030\002 \001(\005\022\022\n" - + "\npage_token\030\003 \001(\t\"h\n\022ListAgentsResponse\022" - + "9\n\006agents\030\001 \003(\0132).google.cloud.dialogflo" - + "w.cx.v3beta1.Agent\022\027\n\017next_page_token\030\002 " - + "\001(\t\"H\n\017GetAgentRequest\0225\n\004name\030\001 \001(\tB\'\340A" - + "\002\372A!\n\037dialogflow.googleapis.com/Agent\"\214\001" - + "\n\022CreateAgentRequest\0227\n\006parent\030\001 \001(\tB\'\340A" - + "\002\372A!\022\037dialogflow.googleapis.com/Agent\022=\n" - + "\005agent\030\002 \001(\0132).google.cloud.dialogflow.c" - + "x.v3beta1.AgentB\003\340A\002\"\204\001\n\022UpdateAgentRequ" - + "est\022=\n\005agent\030\001 \001(\0132).google.cloud.dialog" - + "flow.cx.v3beta1.AgentB\003\340A\002\022/\n\013update_mas" - + "k\030\002 \001(\0132\032.google.protobuf.FieldMask\"K\n\022D" - + "eleteAgentRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n" - + "\037dialogflow.googleapis.com/Agent\"\242\004\n\022Exp" - + "ortAgentRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037d" - + "ialogflow.googleapis.com/Agent\022\026\n\tagent_" - + "uri\030\002 \001(\tB\003\340A\001\022[\n\013data_format\030\003 \001(\0162A.go" - + "ogle.cloud.dialogflow.cx.v3beta1.ExportA" - + "gentRequest.DataFormatB\003\340A\001\022B\n\013environme" - + "nt\030\005 \001(\tB-\340A\001\372A\'\n%dialogflow.googleapis." - + "com/Environment\022c\n\017git_destination\030\006 \001(\013" - + "2E.google.cloud.dialogflow.cx.v3beta1.Ex" - + "portAgentRequest.GitDestinationB\003\340A\001\022-\n " - + "include_bigquery_export_settings\030\007 \001(\010B\003" - + "\340A\001\032A\n\016GitDestination\022\027\n\017tracking_branch" - + "\030\001 \001(\t\022\026\n\016commit_message\030\002 \001(\t\"E\n\nDataFo" - + "rmat\022\033\n\027DATA_FORMAT_UNSPECIFIED\020\000\022\010\n\004BLO" - + "B\020\001\022\020\n\014JSON_PACKAGE\020\004\"b\n\023ExportAgentResp" - + "onse\022\023\n\tagent_uri\030\001 \001(\tH\000\022\027\n\ragent_conte" - + "nt\030\002 \001(\014H\000\022\024\n\ncommit_sha\030\003 \001(\tH\000B\007\n\005agen" - + "t\"\252\003\n\023RestoreAgentRequest\0225\n\004name\030\001 \001(\tB" - + "\'\340A\002\372A!\n\037dialogflow.googleapis.com/Agent" - + "\022\023\n\tagent_uri\030\002 \001(\tH\000\022\027\n\ragent_content\030\003" - + " \001(\014H\000\022W\n\ngit_source\030\006 \001(\0132A.google.clou" - + "d.dialogflow.cx.v3beta1.RestoreAgentRequ" - + "est.GitSourceH\000\022]\n\016restore_option\030\005 \001(\0162" - + "E.google.cloud.dialogflow.cx.v3beta1.Res" - + "toreAgentRequest.RestoreOption\032$\n\tGitSou" - + "rce\022\027\n\017tracking_branch\030\001 \001(\t\"G\n\rRestoreO" - + "ption\022\036\n\032RESTORE_OPTION_UNSPECIFIED\020\000\022\010\n" - + "\004KEEP\020\001\022\014\n\010FALLBACK\020\002B\007\n\005agent\"d\n\024Valida" - + "teAgentRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037di" - + "alogflow.googleapis.com/Agent\022\025\n\rlanguag" - + "e_code\030\002 \001(\t\"\177\n\037GetAgentValidationResult" - + "Request\022E\n\004name\030\001 \001(\tB7\340A\002\372A1\n/dialogflo" - + "w.googleapis.com/AgentValidationResult\022\025" - + "\n\rlanguage_code\030\002 \001(\t\"\377\001\n\025AgentValidatio" - + "nResult\022\014\n\004name\030\001 \001(\t\022Y\n\027flow_validation" - + "_results\030\002 \003(\01328.google.cloud.dialogflow" - + ".cx.v3beta1.FlowValidationResult:}\352Az\n/d" - + "ialogflow.googleapis.com/AgentValidation" - + "Result\022Gprojects/{project}/locations/{lo" - + "cation}/agents/{agent}/validationResult\"" - + "\203\001\n\034GetGenerativeSettingsRequest\022G\n\004name" - + "\030\001 \001(\tB9\340A\002\372A3\n1dialogflow.googleapis.co" - + "m/AgentGenerativeSettings\022\032\n\rlanguage_co" - + "de\030\002 \001(\tB\003\340A\002\"\261\001\n\037UpdateGenerativeSettin" - + "gsRequest\022X\n\023generative_settings\030\001 \001(\01326" - + ".google.cloud.dialogflow.cx.v3beta1.Gene" - + "rativeSettingsB\003\340A\002\0224\n\013update_mask\030\002 \001(\013" - + "2\032.google.protobuf.FieldMaskB\003\340A\0012\270\023\n\006Ag" - + "ents\022\275\001\n\nListAgents\0225.google.cloud.dialo" - + "gflow.cx.v3beta1.ListAgentsRequest\0326.goo" - + "gle.cloud.dialogflow.cx.v3beta1.ListAgen" - + "tsResponse\"@\332A\006parent\202\323\344\223\0021\022//v3beta1/{p" - + "arent=projects/*/locations/*}/agents\022\252\001\n" - + "\010GetAgent\0223.google.cloud.dialogflow.cx.v" - + "3beta1.GetAgentRequest\032).google.cloud.di" - + "alogflow.cx.v3beta1.Agent\">\332A\004name\202\323\344\223\0021" - + "\022//v3beta1/{name=projects/*/locations/*/" - + "agents/*}\022\277\001\n\013CreateAgent\0226.google.cloud" - + ".dialogflow.cx.v3beta1.CreateAgentReques" - + "t\032).google.cloud.dialogflow.cx.v3beta1.A" - + "gent\"M\332A\014parent,agent\202\323\344\223\0028\"//v3beta1/{p" - + "arent=projects/*/locations/*}/agents:\005ag" - + "ent\022\312\001\n\013UpdateAgent\0226.google.cloud.dialo" - + "gflow.cx.v3beta1.UpdateAgentRequest\032).go" - + "ogle.cloud.dialogflow.cx.v3beta1.Agent\"X" - + "\332A\021agent,update_mask\202\323\344\223\002>25/v3beta1/{ag" - + "ent.name=projects/*/locations/*/agents/*" - + "}:\005agent\022\235\001\n\013DeleteAgent\0226.google.cloud." - + "dialogflow.cx.v3beta1.DeleteAgentRequest" - + "\032\026.google.protobuf.Empty\">\332A\004name\202\323\344\223\0021*" - + "//v3beta1/{name=projects/*/locations/*/a" - + "gents/*}\022\327\001\n\013ExportAgent\0226.google.cloud." + + "extSettings\0229\n\nstart_flow\030\020 \001(\tB#\372A \n\036di" + + "alogflow.googleapis.com/FlowH\000\022A\n\016start_" + + "playbook\030\' \001(\tB\'\372A$\n\"dialogflow.googleap" + + "is.com/PlaybookH\000\022J\n\021security_settings\030\021" + + " \001(\tB/\372A,\n*dialogflow.googleapis.com/Sec" + + "uritySettings\022&\n\032enable_stackdriver_logg" + + "ing\030\022 \001(\010B\002\030\001\022\037\n\027enable_spell_correction" + + "\030\024 \001(\010\022+\n\036enable_multi_language_training" + + "\030( \001(\010B\003\340A\001\022\016\n\006locked\030\033 \001(\010\022O\n\021advanced_" + + "settings\030\026 \001(\01324.google.cloud.dialogflow" + + ".cx.v3beta1.AdvancedSettings\022b\n\030git_inte" + + "gration_settings\030\036 \001(\0132@.google.cloud.di" + + "alogflow.cx.v3beta1.Agent.GitIntegration" + + "Settings\022Y\n\027text_to_speech_settings\030\037 \001(" + + "\01328.google.cloud.dialogflow.cx.v3beta1.T" + + "extToSpeechSettings\022f\n\030gen_app_builder_s" + + "ettings\030! \001(\0132?.google.cloud.dialogflow." + + "cx.v3beta1.Agent.GenAppBuilderSettingsH\001" + + "\210\001\001\022g\n\030answer_feedback_settings\030& \001(\0132@." + + "google.cloud.dialogflow.cx.v3beta1.Agent" + + ".AnswerFeedbackSettingsB\003\340A\001\022h\n\030personal" + + "ization_settings\030* \001(\0132A.google.cloud.di" + + "alogflow.cx.v3beta1.Agent.Personalizatio" + + "nSettingsB\003\340A\001\032\225\002\n\026GitIntegrationSetting" + + "s\022j\n\017github_settings\030\001 \001(\0132O.google.clou" + + "d.dialogflow.cx.v3beta1.Agent.GitIntegra" + + "tionSettings.GithubSettingsH\000\032\177\n\016GithubS" + + "ettings\022\024\n\014display_name\030\001 \001(\t\022\026\n\016reposit" + + "ory_uri\030\002 \001(\t\022\027\n\017tracking_branch\030\003 \001(\t\022\024" + + "\n\014access_token\030\004 \001(\t\022\020\n\010branches\030\005 \003(\tB\016" + + "\n\014git_settings\032,\n\025GenAppBuilderSettings\022" + + "\023\n\006engine\030\001 \001(\tB\003\340A\002\032=\n\026AnswerFeedbackSe" + + "ttings\022#\n\026enable_answer_feedback\030\001 \001(\010B\003" + + "\340A\001\032Z\n\027PersonalizationSettings\022?\n\031defaul" + + "t_end_user_metadata\030\001 \001(\0132\027.google.proto" + + "buf.StructB\003\340A\001:\\\352AY\n\037dialogflow.googlea" + + "pis.com/Agent\0226projects/{project}/locati" + + "ons/{location}/agents/{agent}B\030\n\026session" + + "_entry_resourceB\033\n\031_gen_app_builder_sett" + + "ings\"s\n\021ListAgentsRequest\0227\n\006parent\030\001 \001(" + + "\tB\'\340A\002\372A!\022\037dialogflow.googleapis.com/Age" + + "nt\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" + + "\t\"h\n\022ListAgentsResponse\0229\n\006agents\030\001 \003(\0132" + + ").google.cloud.dialogflow.cx.v3beta1.Age" + + "nt\022\027\n\017next_page_token\030\002 \001(\t\"H\n\017GetAgentR" + + "equest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037dialogflow" + + ".googleapis.com/Agent\"\214\001\n\022CreateAgentReq" + + "uest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037dialogflow" + + ".googleapis.com/Agent\022=\n\005agent\030\002 \001(\0132).g" + + "oogle.cloud.dialogflow.cx.v3beta1.AgentB" + + "\003\340A\002\"\204\001\n\022UpdateAgentRequest\022=\n\005agent\030\001 \001" + + "(\0132).google.cloud.dialogflow.cx.v3beta1." + + "AgentB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google" + + ".protobuf.FieldMask\"K\n\022DeleteAgentReques" + + "t\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037dialogflow.goog" + + "leapis.com/Agent\"\242\004\n\022ExportAgentRequest\022" + + "5\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037dialogflow.google" + + "apis.com/Agent\022\026\n\tagent_uri\030\002 \001(\tB\003\340A\001\022[" + + "\n\013data_format\030\003 \001(\0162A.google.cloud.dialo" + + "gflow.cx.v3beta1.ExportAgentRequest.Data" + + "FormatB\003\340A\001\022B\n\013environment\030\005 \001(\tB-\340A\001\372A\'" + + "\n%dialogflow.googleapis.com/Environment\022" + + "c\n\017git_destination\030\006 \001(\0132E.google.cloud." + "dialogflow.cx.v3beta1.ExportAgentRequest" - + "\032\035.google.longrunning.Operation\"q\312A-\n\023Ex" - + "portAgentResponse\022\026google.protobuf.Struc" - + "t\202\323\344\223\002;\"6/v3beta1/{name=projects/*/locat" - + "ions/*/agents/*}:export:\001*\022\334\001\n\014RestoreAg" - + "ent\0227.google.cloud.dialogflow.cx.v3beta1" - + ".RestoreAgentRequest\032\035.google.longrunnin" - + "g.Operation\"t\312A/\n\025google.protobuf.Empty\022" - + "\026google.protobuf.Struct\202\323\344\223\002<\"7/v3beta1/" - + "{name=projects/*/locations/*/agents/*}:r" - + "estore:\001*\022\311\001\n\rValidateAgent\0228.google.clo" - + "ud.dialogflow.cx.v3beta1.ValidateAgentRe" - + "quest\0329.google.cloud.dialogflow.cx.v3bet" - + "a1.AgentValidationResult\"C\202\323\344\223\002=\"8/v3bet" - + "a1/{name=projects/*/locations/*/agents/*" - + "}:validate:\001*\022\353\001\n\030GetAgentValidationResu" - + "lt\022C.google.cloud.dialogflow.cx.v3beta1." - + "GetAgentValidationResultRequest\0329.google" - + ".cloud.dialogflow.cx.v3beta1.AgentValida" - + "tionResult\"O\332A\004name\202\323\344\223\002B\022@/v3beta1/{nam" - + "e=projects/*/locations/*/agents/*/valida" - + "tionResult}\022\362\001\n\025GetGenerativeSettings\022@." - + "google.cloud.dialogflow.cx.v3beta1.GetGe" - + "nerativeSettingsRequest\0326.google.cloud.d" - + "ialogflow.cx.v3beta1.GenerativeSettings\"" - + "_\332A\022name,language_code\202\323\344\223\002D\022B/v3beta1/{" - + "name=projects/*/locations/*/agents/*/gen" - + "erativeSettings}\022\257\002\n\030UpdateGenerativeSet" - + "tings\022C.google.cloud.dialogflow.cx.v3bet" - + "a1.UpdateGenerativeSettingsRequest\0326.goo" - + "gle.cloud.dialogflow.cx.v3beta1.Generati" - + "veSettings\"\225\001\332A\037generative_settings,upda" - + "te_mask\202\323\344\223\002m2V/v3beta1/{generative_sett" - + "ings.name=projects/*/locations/*/agents/" - + "*/generativeSettings}:\023generative_settin" - + "gs\032x\312A\031dialogflow.googleapis.com\322AYhttps" - + "://www.googleapis.com/auth/cloud-platfor" - + "m,https://www.googleapis.com/auth/dialog" - + "flowB\304\001\n&com.google.cloud.dialogflow.cx." - + "v3beta1B\nAgentProtoP\001Z6cloud.google.com/" - + "go/dialogflow/cx/apiv3beta1/cxpb;cxpb\370\001\001" - + "\242\002\002DF\252\002\"Google.Cloud.Dialogflow.Cx.V3Bet" - + "a1\352\002&Google::Cloud::Dialogflow::CX::V3be" - + "ta1b\006proto3" + + ".GitDestinationB\003\340A\001\022-\n include_bigquery" + + "_export_settings\030\007 \001(\010B\003\340A\001\032A\n\016GitDestin" + + "ation\022\027\n\017tracking_branch\030\001 \001(\t\022\026\n\016commit" + + "_message\030\002 \001(\t\"E\n\nDataFormat\022\033\n\027DATA_FOR" + + "MAT_UNSPECIFIED\020\000\022\010\n\004BLOB\020\001\022\020\n\014JSON_PACK" + + "AGE\020\004\"b\n\023ExportAgentResponse\022\023\n\tagent_ur" + + "i\030\001 \001(\tH\000\022\027\n\ragent_content\030\002 \001(\014H\000\022\024\n\nco" + + "mmit_sha\030\003 \001(\tH\000B\007\n\005agent\"\252\003\n\023RestoreAge" + + "ntRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037dialogf" + + "low.googleapis.com/Agent\022\023\n\tagent_uri\030\002 " + + "\001(\tH\000\022\027\n\ragent_content\030\003 \001(\014H\000\022W\n\ngit_so" + + "urce\030\006 \001(\0132A.google.cloud.dialogflow.cx." + + "v3beta1.RestoreAgentRequest.GitSourceH\000\022" + + "]\n\016restore_option\030\005 \001(\0162E.google.cloud.d" + + "ialogflow.cx.v3beta1.RestoreAgentRequest" + + ".RestoreOption\032$\n\tGitSource\022\027\n\017tracking_" + + "branch\030\001 \001(\t\"G\n\rRestoreOption\022\036\n\032RESTORE" + + "_OPTION_UNSPECIFIED\020\000\022\010\n\004KEEP\020\001\022\014\n\010FALLB" + + "ACK\020\002B\007\n\005agent\"d\n\024ValidateAgentRequest\0225" + + "\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037dialogflow.googlea" + + "pis.com/Agent\022\025\n\rlanguage_code\030\002 \001(\t\"\177\n\037" + + "GetAgentValidationResultRequest\022E\n\004name\030" + + "\001 \001(\tB7\340A\002\372A1\n/dialogflow.googleapis.com" + + "/AgentValidationResult\022\025\n\rlanguage_code\030" + + "\002 \001(\t\"\377\001\n\025AgentValidationResult\022\014\n\004name\030" + + "\001 \001(\t\022Y\n\027flow_validation_results\030\002 \003(\01328" + + ".google.cloud.dialogflow.cx.v3beta1.Flow" + + "ValidationResult:}\352Az\n/dialogflow.google" + + "apis.com/AgentValidationResult\022Gprojects" + + "/{project}/locations/{location}/agents/{" + + "agent}/validationResult\"\203\001\n\034GetGenerativ" + + "eSettingsRequest\022G\n\004name\030\001 \001(\tB9\340A\002\372A3\n1" + + "dialogflow.googleapis.com/AgentGenerativ" + + "eSettings\022\032\n\rlanguage_code\030\002 \001(\tB\003\340A\002\"\261\001" + + "\n\037UpdateGenerativeSettingsRequest\022X\n\023gen" + + "erative_settings\030\001 \001(\01326.google.cloud.di" + + "alogflow.cx.v3beta1.GenerativeSettingsB\003" + + "\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.protob" + + "uf.FieldMaskB\003\340A\0012\270\023\n\006Agents\022\275\001\n\nListAge" + + "nts\0225.google.cloud.dialogflow.cx.v3beta1" + + ".ListAgentsRequest\0326.google.cloud.dialog" + + "flow.cx.v3beta1.ListAgentsResponse\"@\332A\006p" + + "arent\202\323\344\223\0021\022//v3beta1/{parent=projects/*" + + "/locations/*}/agents\022\252\001\n\010GetAgent\0223.goog" + + "le.cloud.dialogflow.cx.v3beta1.GetAgentR" + + "equest\032).google.cloud.dialogflow.cx.v3be" + + "ta1.Agent\">\332A\004name\202\323\344\223\0021\022//v3beta1/{name" + + "=projects/*/locations/*/agents/*}\022\277\001\n\013Cr" + + "eateAgent\0226.google.cloud.dialogflow.cx.v" + + "3beta1.CreateAgentRequest\032).google.cloud" + + ".dialogflow.cx.v3beta1.Agent\"M\332A\014parent," + + "agent\202\323\344\223\0028\"//v3beta1/{parent=projects/*" + + "/locations/*}/agents:\005agent\022\312\001\n\013UpdateAg" + + "ent\0226.google.cloud.dialogflow.cx.v3beta1" + + ".UpdateAgentRequest\032).google.cloud.dialo" + + "gflow.cx.v3beta1.Agent\"X\332A\021agent,update_" + + "mask\202\323\344\223\002>25/v3beta1/{agent.name=project" + + "s/*/locations/*/agents/*}:\005agent\022\235\001\n\013Del" + + "eteAgent\0226.google.cloud.dialogflow.cx.v3" + + "beta1.DeleteAgentRequest\032\026.google.protob" + + "uf.Empty\">\332A\004name\202\323\344\223\0021*//v3beta1/{name=" + + "projects/*/locations/*/agents/*}\022\327\001\n\013Exp" + + "ortAgent\0226.google.cloud.dialogflow.cx.v3" + + "beta1.ExportAgentRequest\032\035.google.longru" + + "nning.Operation\"q\312A-\n\023ExportAgentRespons" + + "e\022\026google.protobuf.Struct\202\323\344\223\002;\"6/v3beta" + + "1/{name=projects/*/locations/*/agents/*}" + + ":export:\001*\022\334\001\n\014RestoreAgent\0227.google.clo" + + "ud.dialogflow.cx.v3beta1.RestoreAgentReq" + + "uest\032\035.google.longrunning.Operation\"t\312A/" + + "\n\025google.protobuf.Empty\022\026google.protobuf" + + ".Struct\202\323\344\223\002<\"7/v3beta1/{name=projects/*" + + "/locations/*/agents/*}:restore:\001*\022\311\001\n\rVa" + + "lidateAgent\0228.google.cloud.dialogflow.cx" + + ".v3beta1.ValidateAgentRequest\0329.google.c" + + "loud.dialogflow.cx.v3beta1.AgentValidati" + + "onResult\"C\202\323\344\223\002=\"8/v3beta1/{name=project" + + "s/*/locations/*/agents/*}:validate:\001*\022\353\001" + + "\n\030GetAgentValidationResult\022C.google.clou" + + "d.dialogflow.cx.v3beta1.GetAgentValidati" + + "onResultRequest\0329.google.cloud.dialogflo" + + "w.cx.v3beta1.AgentValidationResult\"O\332A\004n" + + "ame\202\323\344\223\002B\022@/v3beta1/{name=projects/*/loc" + + "ations/*/agents/*/validationResult}\022\362\001\n\025" + + "GetGenerativeSettings\022@.google.cloud.dia" + + "logflow.cx.v3beta1.GetGenerativeSettings" + + "Request\0326.google.cloud.dialogflow.cx.v3b" + + "eta1.GenerativeSettings\"_\332A\022name,languag" + + "e_code\202\323\344\223\002D\022B/v3beta1/{name=projects/*/" + + "locations/*/agents/*/generativeSettings}" + + "\022\257\002\n\030UpdateGenerativeSettings\022C.google.c" + + "loud.dialogflow.cx.v3beta1.UpdateGenerat" + + "iveSettingsRequest\0326.google.cloud.dialog" + + "flow.cx.v3beta1.GenerativeSettings\"\225\001\332A\037" + + "generative_settings,update_mask\202\323\344\223\002m2V/" + + "v3beta1/{generative_settings.name=projec" + + "ts/*/locations/*/agents/*/generativeSett" + + "ings}:\023generative_settings\032x\312A\031dialogflo" + + "w.googleapis.com\322AYhttps://www.googleapi" + + "s.com/auth/cloud-platform,https://www.go" + + "ogleapis.com/auth/dialogflowB\304\001\n&com.goo" + + "gle.cloud.dialogflow.cx.v3beta1B\nAgentPr" + + "otoP\001Z6cloud.google.com/go/dialogflow/cx" + + "/apiv3beta1/cxpb;cxpb\370\001\001\242\002\002DF\252\002\"Google.C" + + "loud.Dialogflow.Cx.V3Beta1\352\002&Google::Clo" + + "ud::Dialogflow::CX::V3beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -374,6 +374,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GenAppBuilderSettings", "AnswerFeedbackSettings", "PersonalizationSettings", + "SessionEntryResource", }); internal_static_google_cloud_dialogflow_cx_v3beta1_Agent_GitIntegrationSettings_descriptor = internal_static_google_cloud_dialogflow_cx_v3beta1_Agent_descriptor.getNestedTypes().get(0); diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExampleProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExampleProto.java index b65fa182c43d..3be95b7085c8 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExampleProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExampleProto.java @@ -80,10 +80,6 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_cx_v3beta1_ToolUse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dialogflow_cx_v3beta1_ToolUse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dialogflow_cx_v3beta1_ActionParameter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_dialogflow_cx_v3beta1_ActionParameter_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_cx_v3beta1_PlaybookInvocation_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -145,89 +141,84 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/Example\022^projects/{project}/locations/{" + "location}/agents/{agent}/playbooks/{play" + "book}/examples/{example}*\010examples2\007exam" - + "ple\"\212\001\n\rPlaybookInput\022+\n\036preceding_conve" - + "rsation_summary\030\001 \001(\tB\003\340A\001\022L\n\nparameters" - + "\030\002 \003(\01323.google.cloud.dialogflow.cx.v3be" - + "ta1.ActionParameterB\003\340A\001\"~\n\016PlaybookOutp" - + "ut\022\036\n\021execution_summary\030\001 \001(\tB\003\340A\001\022L\n\npa" - + "rameters\030\003 \003(\01323.google.cloud.dialogflow" - + ".cx.v3beta1.ActionParameterB\003\340A\001\"\256\003\n\006Act" - + "ion\022P\n\016user_utterance\030\001 \001(\01321.google.clo" - + "ud.dialogflow.cx.v3beta1.UserUtteranceB\003" - + "\340A\001H\000\022R\n\017agent_utterance\030\002 \001(\01322.google." - + "cloud.dialogflow.cx.v3beta1.AgentUtteran" - + "ceB\003\340A\001H\000\022D\n\010tool_use\030\003 \001(\0132+.google.clo" - + "ud.dialogflow.cx.v3beta1.ToolUseB\003\340A\001H\000\022" - + "Z\n\023playbook_invocation\030\004 \001(\01326.google.cl" - + "oud.dialogflow.cx.v3beta1.PlaybookInvoca" - + "tionB\003\340A\001H\000\022R\n\017flow_invocation\030\005 \001(\01322.g" - + "oogle.cloud.dialogflow.cx.v3beta1.FlowIn" - + "vocationB\003\340A\001H\000B\010\n\006action\"\"\n\rUserUtteran" - + "ce\022\021\n\004text\030\001 \001(\tB\003\340A\002\"#\n\016AgentUtterance\022" - + "\021\n\004text\030\001 \001(\tB\003\340A\002\"\363\001\n\007ToolUse\0224\n\004tool\030\001" - + " \001(\tB&\340A\002\372A \n\036dialogflow.googleapis.com/" - + "Tool\022\023\n\006action\030\002 \001(\tB\003\340A\001\022M\n\020input_param" - + "eters\030\003 \003(\01323.google.cloud.dialogflow.cx" - + ".v3beta1.ActionParameter\022N\n\021output_param" - + "eters\030\004 \003(\01323.google.cloud.dialogflow.cx" - + ".v3beta1.ActionParameter\"P\n\017ActionParame" - + "ter\022\021\n\004name\030\001 \001(\tB\003\340A\002\022*\n\005value\030\002 \001(\0132\026." - + "google.protobuf.ValueB\003\340A\002\"\302\002\n\022PlaybookI" - + "nvocation\022<\n\010playbook\030\001 \001(\tB*\340A\002\372A$\n\"dia" - + "logflow.googleapis.com/Playbook\022N\n\016playb" - + "ook_input\030\002 \001(\01321.google.cloud.dialogflo" - + "w.cx.v3beta1.PlaybookInputB\003\340A\001\022P\n\017playb" - + "ook_output\030\003 \001(\01322.google.cloud.dialogfl" - + "ow.cx.v3beta1.PlaybookOutputB\003\340A\001\022L\n\016pla" - + "ybook_state\030\004 \001(\0162/.google.cloud.dialogf" - + "low.cx.v3beta1.OutputStateB\003\340A\002\"\257\002\n\016Flow" - + "Invocation\0224\n\004flow\030\001 \001(\tB&\340A\002\372A \n\036dialog" - + "flow.googleapis.com/Flow\022M\n\020input_parame" - + "ters\030\002 \003(\01323.google.cloud.dialogflow.cx." - + "v3beta1.ActionParameter\022N\n\021output_parame" - + "ters\030\003 \003(\01323.google.cloud.dialogflow.cx." - + "v3beta1.ActionParameter\022H\n\nflow_state\030\004 " - + "\001(\0162/.google.cloud.dialogflow.cx.v3beta1" - + ".OutputStateB\003\340A\002*\253\001\n\013OutputState\022\034\n\030OUT" - + "PUT_STATE_UNSPECIFIED\020\000\022\023\n\017OUTPUT_STATE_" - + "OK\020\001\022\032\n\026OUTPUT_STATE_CANCELLED\020\002\022\027\n\023OUTP" - + "UT_STATE_FAILED\020\003\022\032\n\026OUTPUT_STATE_ESCALA" - + "TED\020\004\022\030\n\024OUTPUT_STATE_PENDING\020\0052\271\t\n\010Exam" - + "ples\022\340\001\n\rCreateExample\0228.google.cloud.di" - + "alogflow.cx.v3beta1.CreateExampleRequest" + + "ple\"u\n\rPlaybookInput\022+\n\036preceding_conver" + + "sation_summary\030\001 \001(\tB\003\340A\001\0227\n\021action_para" + + "meters\030\003 \001(\0132\027.google.protobuf.StructB\003\340" + + "A\001\"i\n\016PlaybookOutput\022\036\n\021execution_summar" + + "y\030\001 \001(\tB\003\340A\001\0227\n\021action_parameters\030\004 \001(\0132" + + "\027.google.protobuf.StructB\003\340A\001\"\256\003\n\006Action" + + "\022P\n\016user_utterance\030\001 \001(\01321.google.cloud." + + "dialogflow.cx.v3beta1.UserUtteranceB\003\340A\001" + + "H\000\022R\n\017agent_utterance\030\002 \001(\01322.google.clo" + + "ud.dialogflow.cx.v3beta1.AgentUtteranceB" + + "\003\340A\001H\000\022D\n\010tool_use\030\003 \001(\0132+.google.cloud." + + "dialogflow.cx.v3beta1.ToolUseB\003\340A\001H\000\022Z\n\023" + + "playbook_invocation\030\004 \001(\01326.google.cloud" + + ".dialogflow.cx.v3beta1.PlaybookInvocatio" + + "nB\003\340A\001H\000\022R\n\017flow_invocation\030\005 \001(\01322.goog" + + "le.cloud.dialogflow.cx.v3beta1.FlowInvoc" + + "ationB\003\340A\001H\000B\010\n\006action\"\"\n\rUserUtterance\022" + + "\021\n\004text\030\001 \001(\tB\003\340A\002\"#\n\016AgentUtterance\022\021\n\004" + + "text\030\001 \001(\tB\003\340A\002\"\323\001\n\007ToolUse\0224\n\004tool\030\001 \001(" + + "\tB&\340A\002\372A \n\036dialogflow.googleapis.com/Too" + + "l\022\023\n\006action\030\002 \001(\tB\003\340A\001\022=\n\027input_action_p" + + "arameters\030\005 \001(\0132\027.google.protobuf.Struct" + + "B\003\340A\001\022>\n\030output_action_parameters\030\006 \001(\0132" + + "\027.google.protobuf.StructB\003\340A\001\"\302\002\n\022Playbo" + + "okInvocation\022<\n\010playbook\030\001 \001(\tB*\340A\002\372A$\n\"" + + "dialogflow.googleapis.com/Playbook\022N\n\016pl" + + "aybook_input\030\002 \001(\01321.google.cloud.dialog" + + "flow.cx.v3beta1.PlaybookInputB\003\340A\001\022P\n\017pl" + + "aybook_output\030\003 \001(\01322.google.cloud.dialo" + + "gflow.cx.v3beta1.PlaybookOutputB\003\340A\001\022L\n\016" + + "playbook_state\030\004 \001(\0162/.google.cloud.dial" + + "ogflow.cx.v3beta1.OutputStateB\003\340A\002\"\217\002\n\016F" + + "lowInvocation\0224\n\004flow\030\001 \001(\tB&\340A\002\372A \n\036dia" + + "logflow.googleapis.com/Flow\022=\n\027input_act" + + "ion_parameters\030\005 \001(\0132\027.google.protobuf.S" + + "tructB\003\340A\001\022>\n\030output_action_parameters\030\006" + + " \001(\0132\027.google.protobuf.StructB\003\340A\001\022H\n\nfl" + + "ow_state\030\004 \001(\0162/.google.cloud.dialogflow" + + ".cx.v3beta1.OutputStateB\003\340A\002*\253\001\n\013OutputS" + + "tate\022\034\n\030OUTPUT_STATE_UNSPECIFIED\020\000\022\023\n\017OU" + + "TPUT_STATE_OK\020\001\022\032\n\026OUTPUT_STATE_CANCELLE" + + "D\020\002\022\027\n\023OUTPUT_STATE_FAILED\020\003\022\032\n\026OUTPUT_S" + + "TATE_ESCALATED\020\004\022\030\n\024OUTPUT_STATE_PENDING" + + "\020\0052\271\t\n\010Examples\022\340\001\n\rCreateExample\0228.goog" + + "le.cloud.dialogflow.cx.v3beta1.CreateExa" + + "mpleRequest\032+.google.cloud.dialogflow.cx" + + ".v3beta1.Example\"h\332A\016parent,example\202\323\344\223\002" + + "Q\"F/v3beta1/{parent=projects/*/locations" + + "/*/agents/*/playbooks/*}/examples:\007examp" + + "le\022\270\001\n\rDeleteExample\0228.google.cloud.dial" + + "ogflow.cx.v3beta1.DeleteExampleRequest\032\026" + + ".google.protobuf.Empty\"U\332A\004name\202\323\344\223\002H*F/" + + "v3beta1/{name=projects/*/locations/*/age" + + "nts/*/playbooks/*/examples/*}\022\332\001\n\014ListEx" + + "amples\0227.google.cloud.dialogflow.cx.v3be" + + "ta1.ListExamplesRequest\0328.google.cloud.d" + + "ialogflow.cx.v3beta1.ListExamplesRespons" + + "e\"W\332A\006parent\202\323\344\223\002H\022F/v3beta1/{parent=pro" + + "jects/*/locations/*/agents/*/playbooks/*" + + "}/examples\022\307\001\n\nGetExample\0225.google.cloud" + + ".dialogflow.cx.v3beta1.GetExampleRequest" + "\032+.google.cloud.dialogflow.cx.v3beta1.Ex" - + "ample\"h\332A\016parent,example\202\323\344\223\002Q\"F/v3beta1" - + "/{parent=projects/*/locations/*/agents/*" - + "/playbooks/*}/examples:\007example\022\270\001\n\rDele" - + "teExample\0228.google.cloud.dialogflow.cx.v" - + "3beta1.DeleteExampleRequest\032\026.google.pro" - + "tobuf.Empty\"U\332A\004name\202\323\344\223\002H*F/v3beta1/{na" - + "me=projects/*/locations/*/agents/*/playb" - + "ooks/*/examples/*}\022\332\001\n\014ListExamples\0227.go" - + "ogle.cloud.dialogflow.cx.v3beta1.ListExa" - + "mplesRequest\0328.google.cloud.dialogflow.c" - + "x.v3beta1.ListExamplesResponse\"W\332A\006paren" - + "t\202\323\344\223\002H\022F/v3beta1/{parent=projects/*/loc" - + "ations/*/agents/*/playbooks/*}/examples\022" - + "\307\001\n\nGetExample\0225.google.cloud.dialogflow" - + ".cx.v3beta1.GetExampleRequest\032+.google.c" - + "loud.dialogflow.cx.v3beta1.Example\"U\332A\004n" - + "ame\202\323\344\223\002H\022F/v3beta1/{name=projects/*/loc" - + "ations/*/agents/*/playbooks/*/examples/*" - + "}\022\355\001\n\rUpdateExample\0228.google.cloud.dialo" - + "gflow.cx.v3beta1.UpdateExampleRequest\032+." - + "google.cloud.dialogflow.cx.v3beta1.Examp" - + "le\"u\332A\023example,update_mask\202\323\344\223\002Y2N/v3bet" - + "a1/{example.name=projects/*/locations/*/" - + "agents/*/playbooks/*/examples/*}:\007exampl" - + "e\032x\312A\031dialogflow.googleapis.com\322AYhttps:" - + "//www.googleapis.com/auth/cloud-platform" - + ",https://www.googleapis.com/auth/dialogf" - + "lowB\235\001\n&com.google.cloud.dialogflow.cx.v" - + "3beta1B\014ExampleProtoP\001Z6cloud.google.com" - + "/go/dialogflow/cx/apiv3beta1/cxpb;cxpb\370\001" - + "\001\242\002\002DF\252\002\"Google.Cloud.Dialogflow.Cx.V3Be" - + "ta1b\006proto3" + + "ample\"U\332A\004name\202\323\344\223\002H\022F/v3beta1/{name=pro" + + "jects/*/locations/*/agents/*/playbooks/*" + + "/examples/*}\022\355\001\n\rUpdateExample\0228.google." + + "cloud.dialogflow.cx.v3beta1.UpdateExampl" + + "eRequest\032+.google.cloud.dialogflow.cx.v3" + + "beta1.Example\"u\332A\023example,update_mask\202\323\344" + + "\223\002Y2N/v3beta1/{example.name=projects/*/l" + + "ocations/*/agents/*/playbooks/*/examples" + + "/*}:\007example\032x\312A\031dialogflow.googleapis.c" + + "om\322AYhttps://www.googleapis.com/auth/clo" + + "ud-platform,https://www.googleapis.com/a" + + "uth/dialogflowB\235\001\n&com.google.cloud.dial" + + "ogflow.cx.v3beta1B\014ExampleProtoP\001Z6cloud" + + ".google.com/go/dialogflow/cx/apiv3beta1/" + + "cxpb;cxpb\370\001\001\242\002\002DF\252\002\"Google.Cloud.Dialogf" + + "low.Cx.V3Beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -314,7 +305,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3beta1_PlaybookInput_descriptor, new java.lang.String[] { - "PrecedingConversationSummary", "Parameters", + "PrecedingConversationSummary", "ActionParameters", }); internal_static_google_cloud_dialogflow_cx_v3beta1_PlaybookOutput_descriptor = getDescriptor().getMessageTypes().get(8); @@ -322,7 +313,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3beta1_PlaybookOutput_descriptor, new java.lang.String[] { - "ExecutionSummary", "Parameters", + "ExecutionSummary", "ActionParameters", }); internal_static_google_cloud_dialogflow_cx_v3beta1_Action_descriptor = getDescriptor().getMessageTypes().get(9); @@ -359,18 +350,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3beta1_ToolUse_descriptor, new java.lang.String[] { - "Tool", "Action", "InputParameters", "OutputParameters", - }); - internal_static_google_cloud_dialogflow_cx_v3beta1_ActionParameter_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_dialogflow_cx_v3beta1_ActionParameter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_dialogflow_cx_v3beta1_ActionParameter_descriptor, - new java.lang.String[] { - "Name", "Value", + "Tool", "Action", "InputActionParameters", "OutputActionParameters", }); internal_static_google_cloud_dialogflow_cx_v3beta1_PlaybookInvocation_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_dialogflow_cx_v3beta1_PlaybookInvocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3beta1_PlaybookInvocation_descriptor, @@ -378,12 +361,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Playbook", "PlaybookInput", "PlaybookOutput", "PlaybookState", }); internal_static_google_cloud_dialogflow_cx_v3beta1_FlowInvocation_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_dialogflow_cx_v3beta1_FlowInvocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3beta1_FlowInvocation_descriptor, new java.lang.String[] { - "Flow", "InputParameters", "OutputParameters", "FlowState", + "Flow", "InputActionParameters", "OutputActionParameters", "FlowState", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowInvocation.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowInvocation.java index de5600f968a9..21de865b0668 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowInvocation.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowInvocation.java @@ -41,8 +41,6 @@ private FlowInvocation(com.google.protobuf.GeneratedMessageV3.Builder builder private FlowInvocation() { flow_ = ""; - inputParameters_ = java.util.Collections.emptyList(); - outputParameters_ = java.util.Collections.emptyList(); flowState_ = 0; } @@ -67,6 +65,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.dialogflow.cx.v3beta1.FlowInvocation.Builder.class); } + private int bitField0_; public static final int FLOW_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -126,155 +125,116 @@ public com.google.protobuf.ByteString getFlowBytes() { } } - public static final int INPUT_PARAMETERS_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private java.util.List inputParameters_; + public static final int INPUT_ACTION_PARAMETERS_FIELD_NUMBER = 5; + private com.google.protobuf.Struct inputActionParameters_; /** * * *
-   * A list of input parameters for the flow invocation.
+   * Optional. A list of input parameters for the flow.
    * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 2; - */ - @java.lang.Override - public java.util.List - getInputParametersList() { - return inputParameters_; - } - /** - * - * - *
-   * A list of input parameters for the flow invocation.
-   * 
+ * + * .google.protobuf.Struct input_action_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 2; + * @return Whether the inputActionParameters field is set. */ @java.lang.Override - public java.util.List - getInputParametersOrBuilderList() { - return inputParameters_; + public boolean hasInputActionParameters() { + return ((bitField0_ & 0x00000001) != 0); } /** * * *
-   * A list of input parameters for the flow invocation.
+   * Optional. A list of input parameters for the flow.
    * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 2; - */ - @java.lang.Override - public int getInputParametersCount() { - return inputParameters_.size(); - } - /** - * - * - *
-   * A list of input parameters for the flow invocation.
-   * 
+ * + * .google.protobuf.Struct input_action_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 2; + * @return The inputActionParameters. */ @java.lang.Override - public com.google.cloud.dialogflow.cx.v3beta1.ActionParameter getInputParameters(int index) { - return inputParameters_.get(index); + public com.google.protobuf.Struct getInputActionParameters() { + return inputActionParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : inputActionParameters_; } /** * * *
-   * A list of input parameters for the flow invocation.
+   * Optional. A list of input parameters for the flow.
    * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 2; + * + * .google.protobuf.Struct input_action_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.dialogflow.cx.v3beta1.ActionParameterOrBuilder - getInputParametersOrBuilder(int index) { - return inputParameters_.get(index); + public com.google.protobuf.StructOrBuilder getInputActionParametersOrBuilder() { + return inputActionParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : inputActionParameters_; } - public static final int OUTPUT_PARAMETERS_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private java.util.List outputParameters_; + public static final int OUTPUT_ACTION_PARAMETERS_FIELD_NUMBER = 6; + private com.google.protobuf.Struct outputActionParameters_; /** * * *
-   * A list of output parameters generated by the flow invocation.
+   * Optional. A list of output parameters generated by the flow invocation.
    * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 3; + * + * .google.protobuf.Struct output_action_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; * - */ - @java.lang.Override - public java.util.List - getOutputParametersList() { - return outputParameters_; - } - /** - * - * - *
-   * A list of output parameters generated by the flow invocation.
-   * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 3; - * + * @return Whether the outputActionParameters field is set. */ @java.lang.Override - public java.util.List - getOutputParametersOrBuilderList() { - return outputParameters_; + public boolean hasOutputActionParameters() { + return ((bitField0_ & 0x00000002) != 0); } /** * * *
-   * A list of output parameters generated by the flow invocation.
+   * Optional. A list of output parameters generated by the flow invocation.
    * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 3; + * + * .google.protobuf.Struct output_action_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; * - */ - @java.lang.Override - public int getOutputParametersCount() { - return outputParameters_.size(); - } - /** * - * - *
-   * A list of output parameters generated by the flow invocation.
-   * 
- * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 3; - * + * @return The outputActionParameters. */ @java.lang.Override - public com.google.cloud.dialogflow.cx.v3beta1.ActionParameter getOutputParameters(int index) { - return outputParameters_.get(index); + public com.google.protobuf.Struct getOutputActionParameters() { + return outputActionParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : outputActionParameters_; } /** * * *
-   * A list of output parameters generated by the flow invocation.
+   * Optional. A list of output parameters generated by the flow invocation.
    * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 3; + * + * .google.protobuf.Struct output_action_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.cloud.dialogflow.cx.v3beta1.ActionParameterOrBuilder - getOutputParametersOrBuilder(int index) { - return outputParameters_.get(index); + public com.google.protobuf.StructOrBuilder getOutputActionParametersOrBuilder() { + return outputActionParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : outputActionParameters_; } public static final int FLOW_STATE_FIELD_NUMBER = 4; @@ -335,17 +295,17 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(flow_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, flow_); } - for (int i = 0; i < inputParameters_.size(); i++) { - output.writeMessage(2, inputParameters_.get(i)); - } - for (int i = 0; i < outputParameters_.size(); i++) { - output.writeMessage(3, outputParameters_.get(i)); - } if (flowState_ != com.google.cloud.dialogflow.cx.v3beta1.OutputState.OUTPUT_STATE_UNSPECIFIED .getNumber()) { output.writeEnum(4, flowState_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getInputActionParameters()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getOutputActionParameters()); + } getUnknownFields().writeTo(output); } @@ -358,17 +318,19 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(flow_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, flow_); } - for (int i = 0; i < inputParameters_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, inputParameters_.get(i)); - } - for (int i = 0; i < outputParameters_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, outputParameters_.get(i)); - } if (flowState_ != com.google.cloud.dialogflow.cx.v3beta1.OutputState.OUTPUT_STATE_UNSPECIFIED .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, flowState_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(5, getInputActionParameters()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(6, getOutputActionParameters()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -386,8 +348,14 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.dialogflow.cx.v3beta1.FlowInvocation) obj; if (!getFlow().equals(other.getFlow())) return false; - if (!getInputParametersList().equals(other.getInputParametersList())) return false; - if (!getOutputParametersList().equals(other.getOutputParametersList())) return false; + if (hasInputActionParameters() != other.hasInputActionParameters()) return false; + if (hasInputActionParameters()) { + if (!getInputActionParameters().equals(other.getInputActionParameters())) return false; + } + if (hasOutputActionParameters() != other.hasOutputActionParameters()) return false; + if (hasOutputActionParameters()) { + if (!getOutputActionParameters().equals(other.getOutputActionParameters())) return false; + } if (flowState_ != other.flowState_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -402,13 +370,13 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + FLOW_FIELD_NUMBER; hash = (53 * hash) + getFlow().hashCode(); - if (getInputParametersCount() > 0) { - hash = (37 * hash) + INPUT_PARAMETERS_FIELD_NUMBER; - hash = (53 * hash) + getInputParametersList().hashCode(); + if (hasInputActionParameters()) { + hash = (37 * hash) + INPUT_ACTION_PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getInputActionParameters().hashCode(); } - if (getOutputParametersCount() > 0) { - hash = (37 * hash) + OUTPUT_PARAMETERS_FIELD_NUMBER; - hash = (53 * hash) + getOutputParametersList().hashCode(); + if (hasOutputActionParameters()) { + hash = (37 * hash) + OUTPUT_ACTION_PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getOutputActionParameters().hashCode(); } hash = (37 * hash) + FLOW_STATE_FIELD_NUMBER; hash = (53 * hash) + flowState_; @@ -543,10 +511,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dialogflow.cx.v3beta1.FlowInvocation.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getInputActionParametersFieldBuilder(); + getOutputActionParametersFieldBuilder(); + } } @java.lang.Override @@ -554,20 +532,16 @@ public Builder clear() { super.clear(); bitField0_ = 0; flow_ = ""; - if (inputParametersBuilder_ == null) { - inputParameters_ = java.util.Collections.emptyList(); - } else { - inputParameters_ = null; - inputParametersBuilder_.clear(); + inputActionParameters_ = null; + if (inputActionParametersBuilder_ != null) { + inputActionParametersBuilder_.dispose(); + inputActionParametersBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); - if (outputParametersBuilder_ == null) { - outputParameters_ = java.util.Collections.emptyList(); - } else { - outputParameters_ = null; - outputParametersBuilder_.clear(); + outputActionParameters_ = null; + if (outputActionParametersBuilder_ != null) { + outputActionParametersBuilder_.dispose(); + outputActionParametersBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000004); flowState_ = 0; return this; } @@ -596,7 +570,6 @@ public com.google.cloud.dialogflow.cx.v3beta1.FlowInvocation build() { public com.google.cloud.dialogflow.cx.v3beta1.FlowInvocation buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.FlowInvocation result = new com.google.cloud.dialogflow.cx.v3beta1.FlowInvocation(this); - buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -604,36 +577,30 @@ public com.google.cloud.dialogflow.cx.v3beta1.FlowInvocation buildPartial() { return result; } - private void buildPartialRepeatedFields( - com.google.cloud.dialogflow.cx.v3beta1.FlowInvocation result) { - if (inputParametersBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - inputParameters_ = java.util.Collections.unmodifiableList(inputParameters_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.inputParameters_ = inputParameters_; - } else { - result.inputParameters_ = inputParametersBuilder_.build(); - } - if (outputParametersBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - outputParameters_ = java.util.Collections.unmodifiableList(outputParameters_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.outputParameters_ = outputParameters_; - } else { - result.outputParameters_ = outputParametersBuilder_.build(); - } - } - private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.FlowInvocation result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.flow_ = flow_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.inputActionParameters_ = + inputActionParametersBuilder_ == null + ? inputActionParameters_ + : inputActionParametersBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.outputActionParameters_ = + outputActionParametersBuilder_ == null + ? outputActionParameters_ + : outputActionParametersBuilder_.build(); + to_bitField0_ |= 0x00000002; + } if (((from_bitField0_ & 0x00000008) != 0)) { result.flowState_ = flowState_; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -687,59 +654,11 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.FlowInvocation o bitField0_ |= 0x00000001; onChanged(); } - if (inputParametersBuilder_ == null) { - if (!other.inputParameters_.isEmpty()) { - if (inputParameters_.isEmpty()) { - inputParameters_ = other.inputParameters_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureInputParametersIsMutable(); - inputParameters_.addAll(other.inputParameters_); - } - onChanged(); - } - } else { - if (!other.inputParameters_.isEmpty()) { - if (inputParametersBuilder_.isEmpty()) { - inputParametersBuilder_.dispose(); - inputParametersBuilder_ = null; - inputParameters_ = other.inputParameters_; - bitField0_ = (bitField0_ & ~0x00000002); - inputParametersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getInputParametersFieldBuilder() - : null; - } else { - inputParametersBuilder_.addAllMessages(other.inputParameters_); - } - } + if (other.hasInputActionParameters()) { + mergeInputActionParameters(other.getInputActionParameters()); } - if (outputParametersBuilder_ == null) { - if (!other.outputParameters_.isEmpty()) { - if (outputParameters_.isEmpty()) { - outputParameters_ = other.outputParameters_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureOutputParametersIsMutable(); - outputParameters_.addAll(other.outputParameters_); - } - onChanged(); - } - } else { - if (!other.outputParameters_.isEmpty()) { - if (outputParametersBuilder_.isEmpty()) { - outputParametersBuilder_.dispose(); - outputParametersBuilder_ = null; - outputParameters_ = other.outputParameters_; - bitField0_ = (bitField0_ & ~0x00000004); - outputParametersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getOutputParametersFieldBuilder() - : null; - } else { - outputParametersBuilder_.addAllMessages(other.outputParameters_); - } - } + if (other.hasOutputActionParameters()) { + mergeOutputActionParameters(other.getOutputActionParameters()); } if (other.flowState_ != 0) { setFlowStateValue(other.getFlowStateValue()); @@ -776,40 +695,26 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 - case 18: - { - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter m = - input.readMessage( - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.parser(), - extensionRegistry); - if (inputParametersBuilder_ == null) { - ensureInputParametersIsMutable(); - inputParameters_.add(m); - } else { - inputParametersBuilder_.addMessage(m); - } - break; - } // case 18 - case 26: - { - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter m = - input.readMessage( - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.parser(), - extensionRegistry); - if (outputParametersBuilder_ == null) { - ensureOutputParametersIsMutable(); - outputParameters_.add(m); - } else { - outputParametersBuilder_.addMessage(m); - } - break; - } // case 26 case 32: { flowState_ = input.readEnum(); bitField0_ |= 0x00000008; break; } // case 32 + case 42: + { + input.readMessage( + getInputActionParametersFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 42 + case 50: + { + input.readMessage( + getOutputActionParametersFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -955,250 +860,121 @@ public Builder setFlowBytes(com.google.protobuf.ByteString value) { return this; } - private java.util.List - inputParameters_ = java.util.Collections.emptyList(); - - private void ensureInputParametersIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - inputParameters_ = - new java.util.ArrayList( - inputParameters_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter, - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder, - com.google.cloud.dialogflow.cx.v3beta1.ActionParameterOrBuilder> - inputParametersBuilder_; - - /** - * - * - *
-     * A list of input parameters for the flow invocation.
-     * 
- * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 2; - * - */ - public java.util.List - getInputParametersList() { - if (inputParametersBuilder_ == null) { - return java.util.Collections.unmodifiableList(inputParameters_); - } else { - return inputParametersBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * A list of input parameters for the flow invocation.
-     * 
- * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 2; - * - */ - public int getInputParametersCount() { - if (inputParametersBuilder_ == null) { - return inputParameters_.size(); - } else { - return inputParametersBuilder_.getCount(); - } - } + private com.google.protobuf.Struct inputActionParameters_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + inputActionParametersBuilder_; /** * * *
-     * A list of input parameters for the flow invocation.
+     * Optional. A list of input parameters for the flow.
      * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 2; + * + * .google.protobuf.Struct input_action_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; * - */ - public com.google.cloud.dialogflow.cx.v3beta1.ActionParameter getInputParameters(int index) { - if (inputParametersBuilder_ == null) { - return inputParameters_.get(index); - } else { - return inputParametersBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * A list of input parameters for the flow invocation.
-     * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 2; - * + * @return Whether the inputActionParameters field is set. */ - public Builder setInputParameters( - int index, com.google.cloud.dialogflow.cx.v3beta1.ActionParameter value) { - if (inputParametersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInputParametersIsMutable(); - inputParameters_.set(index, value); - onChanged(); - } else { - inputParametersBuilder_.setMessage(index, value); - } - return this; + public boolean hasInputActionParameters() { + return ((bitField0_ & 0x00000002) != 0); } /** * * *
-     * A list of input parameters for the flow invocation.
+     * Optional. A list of input parameters for the flow.
      * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 2; + * + * .google.protobuf.Struct input_action_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; * - */ - public Builder setInputParameters( - int index, com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder builderForValue) { - if (inputParametersBuilder_ == null) { - ensureInputParametersIsMutable(); - inputParameters_.set(index, builderForValue.build()); - onChanged(); - } else { - inputParametersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * * - *
-     * A list of input parameters for the flow invocation.
-     * 
- * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 2; - * + * @return The inputActionParameters. */ - public Builder addInputParameters( - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter value) { - if (inputParametersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInputParametersIsMutable(); - inputParameters_.add(value); - onChanged(); + public com.google.protobuf.Struct getInputActionParameters() { + if (inputActionParametersBuilder_ == null) { + return inputActionParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : inputActionParameters_; } else { - inputParametersBuilder_.addMessage(value); + return inputActionParametersBuilder_.getMessage(); } - return this; } /** * * *
-     * A list of input parameters for the flow invocation.
+     * Optional. A list of input parameters for the flow.
      * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 2; + * + * .google.protobuf.Struct input_action_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addInputParameters( - int index, com.google.cloud.dialogflow.cx.v3beta1.ActionParameter value) { - if (inputParametersBuilder_ == null) { + public Builder setInputActionParameters(com.google.protobuf.Struct value) { + if (inputActionParametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureInputParametersIsMutable(); - inputParameters_.add(index, value); - onChanged(); + inputActionParameters_ = value; } else { - inputParametersBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * A list of input parameters for the flow invocation.
-     * 
- * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 2; - * - */ - public Builder addInputParameters( - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder builderForValue) { - if (inputParametersBuilder_ == null) { - ensureInputParametersIsMutable(); - inputParameters_.add(builderForValue.build()); - onChanged(); - } else { - inputParametersBuilder_.addMessage(builderForValue.build()); + inputActionParametersBuilder_.setMessage(value); } + bitField0_ |= 0x00000002; + onChanged(); return this; } /** * * *
-     * A list of input parameters for the flow invocation.
+     * Optional. A list of input parameters for the flow.
      * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 2; + * + * .google.protobuf.Struct input_action_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addInputParameters( - int index, com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder builderForValue) { - if (inputParametersBuilder_ == null) { - ensureInputParametersIsMutable(); - inputParameters_.add(index, builderForValue.build()); - onChanged(); + public Builder setInputActionParameters(com.google.protobuf.Struct.Builder builderForValue) { + if (inputActionParametersBuilder_ == null) { + inputActionParameters_ = builderForValue.build(); } else { - inputParametersBuilder_.addMessage(index, builderForValue.build()); + inputActionParametersBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00000002; + onChanged(); return this; } /** * * *
-     * A list of input parameters for the flow invocation.
+     * Optional. A list of input parameters for the flow.
      * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 2; + * + * .google.protobuf.Struct input_action_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addAllInputParameters( - java.lang.Iterable - values) { - if (inputParametersBuilder_ == null) { - ensureInputParametersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inputParameters_); - onChanged(); + public Builder mergeInputActionParameters(com.google.protobuf.Struct value) { + if (inputActionParametersBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && inputActionParameters_ != null + && inputActionParameters_ != com.google.protobuf.Struct.getDefaultInstance()) { + getInputActionParametersBuilder().mergeFrom(value); + } else { + inputActionParameters_ = value; + } } else { - inputParametersBuilder_.addAllMessages(values); + inputActionParametersBuilder_.mergeFrom(value); } - return this; - } - /** - * - * - *
-     * A list of input parameters for the flow invocation.
-     * 
- * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 2; - * - */ - public Builder clearInputParameters() { - if (inputParametersBuilder_ == null) { - inputParameters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + if (inputActionParameters_ != null) { + bitField0_ |= 0x00000002; onChanged(); - } else { - inputParametersBuilder_.clear(); } return this; } @@ -1206,382 +982,202 @@ public Builder clearInputParameters() { * * *
-     * A list of input parameters for the flow invocation.
+     * Optional. A list of input parameters for the flow.
      * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 2; + * + * .google.protobuf.Struct input_action_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder removeInputParameters(int index) { - if (inputParametersBuilder_ == null) { - ensureInputParametersIsMutable(); - inputParameters_.remove(index); - onChanged(); - } else { - inputParametersBuilder_.remove(index); + public Builder clearInputActionParameters() { + bitField0_ = (bitField0_ & ~0x00000002); + inputActionParameters_ = null; + if (inputActionParametersBuilder_ != null) { + inputActionParametersBuilder_.dispose(); + inputActionParametersBuilder_ = null; } + onChanged(); return this; } /** * * *
-     * A list of input parameters for the flow invocation.
-     * 
- * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 2; - * - */ - public com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder getInputParametersBuilder( - int index) { - return getInputParametersFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * A list of input parameters for the flow invocation.
+     * Optional. A list of input parameters for the flow.
      * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 2; + * + * .google.protobuf.Struct input_action_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.dialogflow.cx.v3beta1.ActionParameterOrBuilder - getInputParametersOrBuilder(int index) { - if (inputParametersBuilder_ == null) { - return inputParameters_.get(index); - } else { - return inputParametersBuilder_.getMessageOrBuilder(index); - } + public com.google.protobuf.Struct.Builder getInputActionParametersBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getInputActionParametersFieldBuilder().getBuilder(); } /** * * *
-     * A list of input parameters for the flow invocation.
+     * Optional. A list of input parameters for the flow.
      * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 2; + * + * .google.protobuf.Struct input_action_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - public java.util.List - getInputParametersOrBuilderList() { - if (inputParametersBuilder_ != null) { - return inputParametersBuilder_.getMessageOrBuilderList(); + public com.google.protobuf.StructOrBuilder getInputActionParametersOrBuilder() { + if (inputActionParametersBuilder_ != null) { + return inputActionParametersBuilder_.getMessageOrBuilder(); } else { - return java.util.Collections.unmodifiableList(inputParameters_); + return inputActionParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : inputActionParameters_; } } /** * * *
-     * A list of input parameters for the flow invocation.
-     * 
- * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 2; - * - */ - public com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder - addInputParametersBuilder() { - return getInputParametersFieldBuilder() - .addBuilder(com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.getDefaultInstance()); - } - /** - * - * - *
-     * A list of input parameters for the flow invocation.
-     * 
- * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 2; - * - */ - public com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder addInputParametersBuilder( - int index) { - return getInputParametersFieldBuilder() - .addBuilder( - index, com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.getDefaultInstance()); - } - /** - * - * - *
-     * A list of input parameters for the flow invocation.
+     * Optional. A list of input parameters for the flow.
      * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 2; + * + * .google.protobuf.Struct input_action_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - public java.util.List - getInputParametersBuilderList() { - return getInputParametersFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter, - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder, - com.google.cloud.dialogflow.cx.v3beta1.ActionParameterOrBuilder> - getInputParametersFieldBuilder() { - if (inputParametersBuilder_ == null) { - inputParametersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter, - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder, - com.google.cloud.dialogflow.cx.v3beta1.ActionParameterOrBuilder>( - inputParameters_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - inputParameters_ = null; - } - return inputParametersBuilder_; - } - - private java.util.List - outputParameters_ = java.util.Collections.emptyList(); - - private void ensureOutputParametersIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - outputParameters_ = - new java.util.ArrayList( - outputParameters_); - bitField0_ |= 0x00000004; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + getInputActionParametersFieldBuilder() { + if (inputActionParametersBuilder_ == null) { + inputActionParametersBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getInputActionParameters(), getParentForChildren(), isClean()); + inputActionParameters_ = null; } + return inputActionParametersBuilder_; } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter, - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder, - com.google.cloud.dialogflow.cx.v3beta1.ActionParameterOrBuilder> - outputParametersBuilder_; - + private com.google.protobuf.Struct outputActionParameters_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + outputActionParametersBuilder_; /** * * *
-     * A list of output parameters generated by the flow invocation.
+     * Optional. A list of output parameters generated by the flow invocation.
      * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 3; - * - */ - public java.util.List - getOutputParametersList() { - if (outputParametersBuilder_ == null) { - return java.util.Collections.unmodifiableList(outputParameters_); - } else { - return outputParametersBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * A list of output parameters generated by the flow invocation.
-     * 
- * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 3; + * + * .google.protobuf.Struct output_action_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; * - */ - public int getOutputParametersCount() { - if (outputParametersBuilder_ == null) { - return outputParameters_.size(); - } else { - return outputParametersBuilder_.getCount(); - } - } - /** - * - * - *
-     * A list of output parameters generated by the flow invocation.
-     * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 3; - * + * @return Whether the outputActionParameters field is set. */ - public com.google.cloud.dialogflow.cx.v3beta1.ActionParameter getOutputParameters(int index) { - if (outputParametersBuilder_ == null) { - return outputParameters_.get(index); - } else { - return outputParametersBuilder_.getMessage(index); - } + public boolean hasOutputActionParameters() { + return ((bitField0_ & 0x00000004) != 0); } /** * * *
-     * A list of output parameters generated by the flow invocation.
+     * Optional. A list of output parameters generated by the flow invocation.
      * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 3; - * - */ - public Builder setOutputParameters( - int index, com.google.cloud.dialogflow.cx.v3beta1.ActionParameter value) { - if (outputParametersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutputParametersIsMutable(); - outputParameters_.set(index, value); - onChanged(); - } else { - outputParametersBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * A list of output parameters generated by the flow invocation.
-     * 
- * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 3; + * + * .google.protobuf.Struct output_action_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; * - */ - public Builder setOutputParameters( - int index, com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder builderForValue) { - if (outputParametersBuilder_ == null) { - ensureOutputParametersIsMutable(); - outputParameters_.set(index, builderForValue.build()); - onChanged(); - } else { - outputParametersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** * - * - *
-     * A list of output parameters generated by the flow invocation.
-     * 
- * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 3; - * + * @return The outputActionParameters. */ - public Builder addOutputParameters( - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter value) { - if (outputParametersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutputParametersIsMutable(); - outputParameters_.add(value); - onChanged(); + public com.google.protobuf.Struct getOutputActionParameters() { + if (outputActionParametersBuilder_ == null) { + return outputActionParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : outputActionParameters_; } else { - outputParametersBuilder_.addMessage(value); + return outputActionParametersBuilder_.getMessage(); } - return this; } /** * * *
-     * A list of output parameters generated by the flow invocation.
+     * Optional. A list of output parameters generated by the flow invocation.
      * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 3; + * + * .google.protobuf.Struct output_action_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addOutputParameters( - int index, com.google.cloud.dialogflow.cx.v3beta1.ActionParameter value) { - if (outputParametersBuilder_ == null) { + public Builder setOutputActionParameters(com.google.protobuf.Struct value) { + if (outputActionParametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureOutputParametersIsMutable(); - outputParameters_.add(index, value); - onChanged(); - } else { - outputParametersBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * A list of output parameters generated by the flow invocation.
-     * 
- * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 3; - * - */ - public Builder addOutputParameters( - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder builderForValue) { - if (outputParametersBuilder_ == null) { - ensureOutputParametersIsMutable(); - outputParameters_.add(builderForValue.build()); - onChanged(); + outputActionParameters_ = value; } else { - outputParametersBuilder_.addMessage(builderForValue.build()); + outputActionParametersBuilder_.setMessage(value); } + bitField0_ |= 0x00000004; + onChanged(); return this; } /** * * *
-     * A list of output parameters generated by the flow invocation.
+     * Optional. A list of output parameters generated by the flow invocation.
      * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 3; + * + * .google.protobuf.Struct output_action_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addOutputParameters( - int index, com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder builderForValue) { - if (outputParametersBuilder_ == null) { - ensureOutputParametersIsMutable(); - outputParameters_.add(index, builderForValue.build()); - onChanged(); + public Builder setOutputActionParameters(com.google.protobuf.Struct.Builder builderForValue) { + if (outputActionParametersBuilder_ == null) { + outputActionParameters_ = builderForValue.build(); } else { - outputParametersBuilder_.addMessage(index, builderForValue.build()); + outputActionParametersBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00000004; + onChanged(); return this; } /** * * *
-     * A list of output parameters generated by the flow invocation.
+     * Optional. A list of output parameters generated by the flow invocation.
      * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 3; + * + * .google.protobuf.Struct output_action_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addAllOutputParameters( - java.lang.Iterable - values) { - if (outputParametersBuilder_ == null) { - ensureOutputParametersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, outputParameters_); - onChanged(); + public Builder mergeOutputActionParameters(com.google.protobuf.Struct value) { + if (outputActionParametersBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && outputActionParameters_ != null + && outputActionParameters_ != com.google.protobuf.Struct.getDefaultInstance()) { + getOutputActionParametersBuilder().mergeFrom(value); + } else { + outputActionParameters_ = value; + } } else { - outputParametersBuilder_.addAllMessages(values); + outputActionParametersBuilder_.mergeFrom(value); } - return this; - } - /** - * - * - *
-     * A list of output parameters generated by the flow invocation.
-     * 
- * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 3; - * - */ - public Builder clearOutputParameters() { - if (outputParametersBuilder_ == null) { - outputParameters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + if (outputActionParameters_ != null) { + bitField0_ |= 0x00000004; onChanged(); - } else { - outputParametersBuilder_.clear(); } return this; } @@ -1589,136 +1185,85 @@ public Builder clearOutputParameters() { * * *
-     * A list of output parameters generated by the flow invocation.
+     * Optional. A list of output parameters generated by the flow invocation.
      * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 3; + * + * .google.protobuf.Struct output_action_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder removeOutputParameters(int index) { - if (outputParametersBuilder_ == null) { - ensureOutputParametersIsMutable(); - outputParameters_.remove(index); - onChanged(); - } else { - outputParametersBuilder_.remove(index); + public Builder clearOutputActionParameters() { + bitField0_ = (bitField0_ & ~0x00000004); + outputActionParameters_ = null; + if (outputActionParametersBuilder_ != null) { + outputActionParametersBuilder_.dispose(); + outputActionParametersBuilder_ = null; } + onChanged(); return this; } /** * * *
-     * A list of output parameters generated by the flow invocation.
+     * Optional. A list of output parameters generated by the flow invocation.
      * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 3; - * - */ - public com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder - getOutputParametersBuilder(int index) { - return getOutputParametersFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * A list of output parameters generated by the flow invocation.
-     * 
- * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 3; + * + * .google.protobuf.Struct output_action_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.dialogflow.cx.v3beta1.ActionParameterOrBuilder - getOutputParametersOrBuilder(int index) { - if (outputParametersBuilder_ == null) { - return outputParameters_.get(index); - } else { - return outputParametersBuilder_.getMessageOrBuilder(index); - } + public com.google.protobuf.Struct.Builder getOutputActionParametersBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getOutputActionParametersFieldBuilder().getBuilder(); } /** * * *
-     * A list of output parameters generated by the flow invocation.
+     * Optional. A list of output parameters generated by the flow invocation.
      * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 3; + * + * .google.protobuf.Struct output_action_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public java.util.List - getOutputParametersOrBuilderList() { - if (outputParametersBuilder_ != null) { - return outputParametersBuilder_.getMessageOrBuilderList(); + public com.google.protobuf.StructOrBuilder getOutputActionParametersOrBuilder() { + if (outputActionParametersBuilder_ != null) { + return outputActionParametersBuilder_.getMessageOrBuilder(); } else { - return java.util.Collections.unmodifiableList(outputParameters_); + return outputActionParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : outputActionParameters_; } } /** * * *
-     * A list of output parameters generated by the flow invocation.
-     * 
- * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 3; - * - */ - public com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder - addOutputParametersBuilder() { - return getOutputParametersFieldBuilder() - .addBuilder(com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.getDefaultInstance()); - } - /** - * - * - *
-     * A list of output parameters generated by the flow invocation.
+     * Optional. A list of output parameters generated by the flow invocation.
      * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 3; - * - */ - public com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder - addOutputParametersBuilder(int index) { - return getOutputParametersFieldBuilder() - .addBuilder( - index, com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.getDefaultInstance()); - } - /** - * - * - *
-     * A list of output parameters generated by the flow invocation.
-     * 
- * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 3; + * + * .google.protobuf.Struct output_action_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public java.util.List - getOutputParametersBuilderList() { - return getOutputParametersFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter, - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder, - com.google.cloud.dialogflow.cx.v3beta1.ActionParameterOrBuilder> - getOutputParametersFieldBuilder() { - if (outputParametersBuilder_ == null) { - outputParametersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter, - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder, - com.google.cloud.dialogflow.cx.v3beta1.ActionParameterOrBuilder>( - outputParameters_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - outputParameters_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + getOutputActionParametersFieldBuilder() { + if (outputActionParametersBuilder_ == null) { + outputActionParametersBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getOutputActionParameters(), getParentForChildren(), isClean()); + outputActionParameters_ = null; } - return outputParametersBuilder_; + return outputActionParametersBuilder_; } private int flowState_ = 0; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowInvocationOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowInvocationOrBuilder.java index 8db0e7243397..21b5b8d4a2f2 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowInvocationOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowInvocationOrBuilder.java @@ -61,112 +61,83 @@ public interface FlowInvocationOrBuilder * * *
-   * A list of input parameters for the flow invocation.
+   * Optional. A list of input parameters for the flow.
    * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 2; - */ - java.util.List getInputParametersList(); - /** - * - * - *
-   * A list of input parameters for the flow invocation.
-   * 
+ * + * .google.protobuf.Struct input_action_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 2; + * @return Whether the inputActionParameters field is set. */ - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter getInputParameters(int index); + boolean hasInputActionParameters(); /** * * *
-   * A list of input parameters for the flow invocation.
+   * Optional. A list of input parameters for the flow.
    * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 2; - */ - int getInputParametersCount(); - /** - * - * - *
-   * A list of input parameters for the flow invocation.
-   * 
+ * + * .google.protobuf.Struct input_action_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 2; + * @return The inputActionParameters. */ - java.util.List - getInputParametersOrBuilderList(); + com.google.protobuf.Struct getInputActionParameters(); /** * * *
-   * A list of input parameters for the flow invocation.
+   * Optional. A list of input parameters for the flow.
    * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 2; + * + * .google.protobuf.Struct input_action_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.dialogflow.cx.v3beta1.ActionParameterOrBuilder getInputParametersOrBuilder( - int index); + com.google.protobuf.StructOrBuilder getInputActionParametersOrBuilder(); /** * * *
-   * A list of output parameters generated by the flow invocation.
+   * Optional. A list of output parameters generated by the flow invocation.
    * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 3; + * + * .google.protobuf.Struct output_action_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; * - */ - java.util.List getOutputParametersList(); - /** * - * - *
-   * A list of output parameters generated by the flow invocation.
-   * 
- * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 3; - * + * @return Whether the outputActionParameters field is set. */ - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter getOutputParameters(int index); + boolean hasOutputActionParameters(); /** * * *
-   * A list of output parameters generated by the flow invocation.
+   * Optional. A list of output parameters generated by the flow invocation.
    * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 3; + * + * .google.protobuf.Struct output_action_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; * - */ - int getOutputParametersCount(); - /** - * - * - *
-   * A list of output parameters generated by the flow invocation.
-   * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 3; - * + * @return The outputActionParameters. */ - java.util.List - getOutputParametersOrBuilderList(); + com.google.protobuf.Struct getOutputActionParameters(); /** * * *
-   * A list of output parameters generated by the flow invocation.
+   * Optional. A list of output parameters generated by the flow invocation.
    * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 3; + * + * .google.protobuf.Struct output_action_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - com.google.cloud.dialogflow.cx.v3beta1.ActionParameterOrBuilder getOutputParametersOrBuilder( - int index); + com.google.protobuf.StructOrBuilder getOutputActionParametersOrBuilder(); /** * diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Match.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Match.java index a10a9d29e35a..4069bb103cc3 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Match.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Match.java @@ -145,6 +145,17 @@ public enum MatchType implements com.google.protobuf.ProtocolMessageEnum { * EVENT = 6; */ EVENT(6), + /** + * + * + *
+     * The query was handled by a
+     * [`Playbook`][google.cloud.dialogflow.cx.v3beta1.Playbook].
+     * 
+ * + * PLAYBOOK = 9; + */ + PLAYBOOK(9), UNRECOGNIZED(-1), ; @@ -218,6 +229,17 @@ public enum MatchType implements com.google.protobuf.ProtocolMessageEnum { * EVENT = 6; */ public static final int EVENT_VALUE = 6; + /** + * + * + *
+     * The query was handled by a
+     * [`Playbook`][google.cloud.dialogflow.cx.v3beta1.Playbook].
+     * 
+ * + * PLAYBOOK = 9; + */ + public static final int PLAYBOOK_VALUE = 9; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -257,6 +279,8 @@ public static MatchType forNumber(int value) { return NO_INPUT; case 6: return EVENT; + case 9: + return PLAYBOOK; default: return null; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Playbook.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Playbook.java index 14ccdf00eda8..8fbd204bad35 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Playbook.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Playbook.java @@ -51,7 +51,6 @@ private Playbook() { goal_ = ""; inputParameterDefinitions_ = java.util.Collections.emptyList(); outputParameterDefinitions_ = java.util.Collections.emptyList(); - steps_ = java.util.Collections.emptyList(); referencedPlaybooks_ = com.google.protobuf.LazyStringArrayList.emptyList(); referencedFlows_ = com.google.protobuf.LazyStringArrayList.emptyList(); referencedTools_ = com.google.protobuf.LazyStringArrayList.emptyList(); @@ -1422,6 +1421,1029 @@ public com.google.cloud.dialogflow.cx.v3beta1.Playbook.Step getDefaultInstanceFo } } + public interface InstructionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Ordered list of step by step execution instructions to accomplish
+     * target goal.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 2; + */ + java.util.List getStepsList(); + /** + * + * + *
+     * Ordered list of step by step execution instructions to accomplish
+     * target goal.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 2; + */ + com.google.cloud.dialogflow.cx.v3beta1.Playbook.Step getSteps(int index); + /** + * + * + *
+     * Ordered list of step by step execution instructions to accomplish
+     * target goal.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 2; + */ + int getStepsCount(); + /** + * + * + *
+     * Ordered list of step by step execution instructions to accomplish
+     * target goal.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 2; + */ + java.util.List + getStepsOrBuilderList(); + /** + * + * + *
+     * Ordered list of step by step execution instructions to accomplish
+     * target goal.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 2; + */ + com.google.cloud.dialogflow.cx.v3beta1.Playbook.StepOrBuilder getStepsOrBuilder(int index); + } + /** + * + * + *
+   * Message of the Instruction of the playbook.
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction} + */ + public static final class Instruction extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction) + InstructionOrBuilder { + private static final long serialVersionUID = 0L; + // Use Instruction.newBuilder() to construct. + private Instruction(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Instruction() { + steps_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Instruction(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.PlaybookProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_Playbook_Instruction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.PlaybookProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_Playbook_Instruction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction.class, + com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction.Builder.class); + } + + public static final int STEPS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List steps_; + /** + * + * + *
+     * Ordered list of step by step execution instructions to accomplish
+     * target goal.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 2; + */ + @java.lang.Override + public java.util.List getStepsList() { + return steps_; + } + /** + * + * + *
+     * Ordered list of step by step execution instructions to accomplish
+     * target goal.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 2; + */ + @java.lang.Override + public java.util.List + getStepsOrBuilderList() { + return steps_; + } + /** + * + * + *
+     * Ordered list of step by step execution instructions to accomplish
+     * target goal.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 2; + */ + @java.lang.Override + public int getStepsCount() { + return steps_.size(); + } + /** + * + * + *
+     * Ordered list of step by step execution instructions to accomplish
+     * target goal.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 2; + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Playbook.Step getSteps(int index) { + return steps_.get(index); + } + /** + * + * + *
+     * Ordered list of step by step execution instructions to accomplish
+     * target goal.
+     * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 2; + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Playbook.StepOrBuilder getStepsOrBuilder( + int index) { + return steps_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < steps_.size(); i++) { + output.writeMessage(2, steps_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < steps_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, steps_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction other = + (com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction) obj; + + if (!getStepsList().equals(other.getStepsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getStepsCount() > 0) { + hash = (37 * hash) + STEPS_FIELD_NUMBER; + hash = (53 * hash) + getStepsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Message of the Instruction of the playbook.
+     * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction) + com.google.cloud.dialogflow.cx.v3beta1.Playbook.InstructionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.PlaybookProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_Playbook_Instruction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.PlaybookProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_Playbook_Instruction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction.class, + com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (stepsBuilder_ == null) { + steps_ = java.util.Collections.emptyList(); + } else { + steps_ = null; + stepsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3beta1.PlaybookProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_Playbook_Instruction_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction build() { + com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction buildPartial() { + com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction result = + new com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction result) { + if (stepsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + steps_ = java.util.Collections.unmodifiableList(steps_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.steps_ = steps_; + } else { + result.steps_ = stepsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction other) { + if (other + == com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction.getDefaultInstance()) + return this; + if (stepsBuilder_ == null) { + if (!other.steps_.isEmpty()) { + if (steps_.isEmpty()) { + steps_ = other.steps_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureStepsIsMutable(); + steps_.addAll(other.steps_); + } + onChanged(); + } + } else { + if (!other.steps_.isEmpty()) { + if (stepsBuilder_.isEmpty()) { + stepsBuilder_.dispose(); + stepsBuilder_ = null; + steps_ = other.steps_; + bitField0_ = (bitField0_ & ~0x00000001); + stepsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getStepsFieldBuilder() + : null; + } else { + stepsBuilder_.addAllMessages(other.steps_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + com.google.cloud.dialogflow.cx.v3beta1.Playbook.Step m = + input.readMessage( + com.google.cloud.dialogflow.cx.v3beta1.Playbook.Step.parser(), + extensionRegistry); + if (stepsBuilder_ == null) { + ensureStepsIsMutable(); + steps_.add(m); + } else { + stepsBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List steps_ = + java.util.Collections.emptyList(); + + private void ensureStepsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + steps_ = + new java.util.ArrayList(steps_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.Playbook.Step, + com.google.cloud.dialogflow.cx.v3beta1.Playbook.Step.Builder, + com.google.cloud.dialogflow.cx.v3beta1.Playbook.StepOrBuilder> + stepsBuilder_; + + /** + * + * + *
+       * Ordered list of step by step execution instructions to accomplish
+       * target goal.
+       * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 2; + */ + public java.util.List getStepsList() { + if (stepsBuilder_ == null) { + return java.util.Collections.unmodifiableList(steps_); + } else { + return stepsBuilder_.getMessageList(); + } + } + /** + * + * + *
+       * Ordered list of step by step execution instructions to accomplish
+       * target goal.
+       * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 2; + */ + public int getStepsCount() { + if (stepsBuilder_ == null) { + return steps_.size(); + } else { + return stepsBuilder_.getCount(); + } + } + /** + * + * + *
+       * Ordered list of step by step execution instructions to accomplish
+       * target goal.
+       * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 2; + */ + public com.google.cloud.dialogflow.cx.v3beta1.Playbook.Step getSteps(int index) { + if (stepsBuilder_ == null) { + return steps_.get(index); + } else { + return stepsBuilder_.getMessage(index); + } + } + /** + * + * + *
+       * Ordered list of step by step execution instructions to accomplish
+       * target goal.
+       * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 2; + */ + public Builder setSteps( + int index, com.google.cloud.dialogflow.cx.v3beta1.Playbook.Step value) { + if (stepsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStepsIsMutable(); + steps_.set(index, value); + onChanged(); + } else { + stepsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Ordered list of step by step execution instructions to accomplish
+       * target goal.
+       * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 2; + */ + public Builder setSteps( + int index, com.google.cloud.dialogflow.cx.v3beta1.Playbook.Step.Builder builderForValue) { + if (stepsBuilder_ == null) { + ensureStepsIsMutable(); + steps_.set(index, builderForValue.build()); + onChanged(); + } else { + stepsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Ordered list of step by step execution instructions to accomplish
+       * target goal.
+       * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 2; + */ + public Builder addSteps(com.google.cloud.dialogflow.cx.v3beta1.Playbook.Step value) { + if (stepsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStepsIsMutable(); + steps_.add(value); + onChanged(); + } else { + stepsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+       * Ordered list of step by step execution instructions to accomplish
+       * target goal.
+       * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 2; + */ + public Builder addSteps( + int index, com.google.cloud.dialogflow.cx.v3beta1.Playbook.Step value) { + if (stepsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStepsIsMutable(); + steps_.add(index, value); + onChanged(); + } else { + stepsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Ordered list of step by step execution instructions to accomplish
+       * target goal.
+       * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 2; + */ + public Builder addSteps( + com.google.cloud.dialogflow.cx.v3beta1.Playbook.Step.Builder builderForValue) { + if (stepsBuilder_ == null) { + ensureStepsIsMutable(); + steps_.add(builderForValue.build()); + onChanged(); + } else { + stepsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Ordered list of step by step execution instructions to accomplish
+       * target goal.
+       * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 2; + */ + public Builder addSteps( + int index, com.google.cloud.dialogflow.cx.v3beta1.Playbook.Step.Builder builderForValue) { + if (stepsBuilder_ == null) { + ensureStepsIsMutable(); + steps_.add(index, builderForValue.build()); + onChanged(); + } else { + stepsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Ordered list of step by step execution instructions to accomplish
+       * target goal.
+       * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 2; + */ + public Builder addAllSteps( + java.lang.Iterable + values) { + if (stepsBuilder_ == null) { + ensureStepsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, steps_); + onChanged(); + } else { + stepsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+       * Ordered list of step by step execution instructions to accomplish
+       * target goal.
+       * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 2; + */ + public Builder clearSteps() { + if (stepsBuilder_ == null) { + steps_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + stepsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Ordered list of step by step execution instructions to accomplish
+       * target goal.
+       * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 2; + */ + public Builder removeSteps(int index) { + if (stepsBuilder_ == null) { + ensureStepsIsMutable(); + steps_.remove(index); + onChanged(); + } else { + stepsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+       * Ordered list of step by step execution instructions to accomplish
+       * target goal.
+       * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 2; + */ + public com.google.cloud.dialogflow.cx.v3beta1.Playbook.Step.Builder getStepsBuilder( + int index) { + return getStepsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * Ordered list of step by step execution instructions to accomplish
+       * target goal.
+       * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 2; + */ + public com.google.cloud.dialogflow.cx.v3beta1.Playbook.StepOrBuilder getStepsOrBuilder( + int index) { + if (stepsBuilder_ == null) { + return steps_.get(index); + } else { + return stepsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+       * Ordered list of step by step execution instructions to accomplish
+       * target goal.
+       * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 2; + */ + public java.util.List + getStepsOrBuilderList() { + if (stepsBuilder_ != null) { + return stepsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(steps_); + } + } + /** + * + * + *
+       * Ordered list of step by step execution instructions to accomplish
+       * target goal.
+       * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 2; + */ + public com.google.cloud.dialogflow.cx.v3beta1.Playbook.Step.Builder addStepsBuilder() { + return getStepsFieldBuilder() + .addBuilder(com.google.cloud.dialogflow.cx.v3beta1.Playbook.Step.getDefaultInstance()); + } + /** + * + * + *
+       * Ordered list of step by step execution instructions to accomplish
+       * target goal.
+       * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 2; + */ + public com.google.cloud.dialogflow.cx.v3beta1.Playbook.Step.Builder addStepsBuilder( + int index) { + return getStepsFieldBuilder() + .addBuilder( + index, com.google.cloud.dialogflow.cx.v3beta1.Playbook.Step.getDefaultInstance()); + } + /** + * + * + *
+       * Ordered list of step by step execution instructions to accomplish
+       * target goal.
+       * 
+ * + * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 2; + */ + public java.util.List + getStepsBuilderList() { + return getStepsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.Playbook.Step, + com.google.cloud.dialogflow.cx.v3beta1.Playbook.Step.Builder, + com.google.cloud.dialogflow.cx.v3beta1.Playbook.StepOrBuilder> + getStepsFieldBuilder() { + if (stepsBuilder_ == null) { + stepsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.Playbook.Step, + com.google.cloud.dialogflow.cx.v3beta1.Playbook.Step.Builder, + com.google.cloud.dialogflow.cx.v3beta1.Playbook.StepOrBuilder>( + steps_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + steps_ = null; + } + return stepsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction) + private static final com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction(); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Instruction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @@ -1754,81 +2776,55 @@ public com.google.cloud.dialogflow.cx.v3beta1.ParameterDefinition getOutputParam return outputParameterDefinitions_.get(index); } - public static final int STEPS_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private java.util.List steps_; + public static final int INSTRUCTION_FIELD_NUMBER = 17; + private com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction instruction_; /** * * *
-   * Ordered list of step by step execution instructions to accomplish
-   * target goal.
+   * Instruction to accomplish target goal.
    * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 4; - */ - @java.lang.Override - public java.util.List getStepsList() { - return steps_; - } - /** - * + * .google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction instruction = 17; * - *
-   * Ordered list of step by step execution instructions to accomplish
-   * target goal.
-   * 
- * - * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 4; + * @return Whether the instruction field is set. */ @java.lang.Override - public java.util.List - getStepsOrBuilderList() { - return steps_; + public boolean hasInstruction() { + return ((bitField0_ & 0x00000001) != 0); } /** * * *
-   * Ordered list of step by step execution instructions to accomplish
-   * target goal.
+   * Instruction to accomplish target goal.
    * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 4; - */ - @java.lang.Override - public int getStepsCount() { - return steps_.size(); - } - /** - * - * - *
-   * Ordered list of step by step execution instructions to accomplish
-   * target goal.
-   * 
+ * .google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction instruction = 17; * - * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 4; + * @return The instruction. */ @java.lang.Override - public com.google.cloud.dialogflow.cx.v3beta1.Playbook.Step getSteps(int index) { - return steps_.get(index); + public com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction getInstruction() { + return instruction_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction.getDefaultInstance() + : instruction_; } /** * * *
-   * Ordered list of step by step execution instructions to accomplish
-   * target goal.
+   * Instruction to accomplish target goal.
    * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 4; + * .google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction instruction = 17; */ @java.lang.Override - public com.google.cloud.dialogflow.cx.v3beta1.Playbook.StepOrBuilder getStepsOrBuilder( - int index) { - return steps_.get(index); + public com.google.cloud.dialogflow.cx.v3beta1.Playbook.InstructionOrBuilder + getInstructionOrBuilder() { + return instruction_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction.getDefaultInstance() + : instruction_; } public static final int TOKEN_COUNT_FIELD_NUMBER = 8; @@ -1866,7 +2862,7 @@ public long getTokenCount() { */ @java.lang.Override public boolean hasCreateTime() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -1915,7 +2911,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { */ @java.lang.Override public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -2197,7 +3193,7 @@ public com.google.protobuf.ByteString getReferencedToolsBytes(int index) { */ @java.lang.Override public boolean hasLlmModelSettings() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -2260,9 +3256,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(goal_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, goal_); } - for (int i = 0; i < steps_.size(); i++) { - output.writeMessage(4, steps_.get(i)); - } for (int i = 0; i < inputParameterDefinitions_.size(); i++) { output.writeMessage(5, inputParameterDefinitions_.get(i)); } @@ -2272,10 +3265,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (tokenCount_ != 0L) { output.writeInt64(8, tokenCount_); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(9, getCreateTime()); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(10, getUpdateTime()); } for (int i = 0; i < referencedPlaybooks_.size(); i++) { @@ -2288,9 +3281,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < referencedTools_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, referencedTools_.getRaw(i)); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(14, getLlmModelSettings()); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(17, getInstruction()); + } getUnknownFields().writeTo(output); } @@ -2309,9 +3305,6 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(goal_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, goal_); } - for (int i = 0; i < steps_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, steps_.get(i)); - } for (int i = 0; i < inputParameterDefinitions_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -2325,10 +3318,10 @@ public int getSerializedSize() { if (tokenCount_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, tokenCount_); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getCreateTime()); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getUpdateTime()); } { @@ -2355,9 +3348,12 @@ public int getSerializedSize() { size += dataSize; size += 1 * getReferencedToolsList().size(); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getLlmModelSettings()); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getInstruction()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2381,7 +3377,10 @@ public boolean equals(final java.lang.Object obj) { return false; if (!getOutputParameterDefinitionsList().equals(other.getOutputParameterDefinitionsList())) return false; - if (!getStepsList().equals(other.getStepsList())) return false; + if (hasInstruction() != other.hasInstruction()) return false; + if (hasInstruction()) { + if (!getInstruction().equals(other.getInstruction())) return false; + } if (getTokenCount() != other.getTokenCount()) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { @@ -2423,9 +3422,9 @@ public int hashCode() { hash = (37 * hash) + OUTPUT_PARAMETER_DEFINITIONS_FIELD_NUMBER; hash = (53 * hash) + getOutputParameterDefinitionsList().hashCode(); } - if (getStepsCount() > 0) { - hash = (37 * hash) + STEPS_FIELD_NUMBER; - hash = (53 * hash) + getStepsList().hashCode(); + if (hasInstruction()) { + hash = (37 * hash) + INSTRUCTION_FIELD_NUMBER; + hash = (53 * hash) + getInstruction().hashCode(); } hash = (37 * hash) + TOKEN_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTokenCount()); @@ -2602,7 +3601,7 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getInputParameterDefinitionsFieldBuilder(); getOutputParameterDefinitionsFieldBuilder(); - getStepsFieldBuilder(); + getInstructionFieldBuilder(); getCreateTimeFieldBuilder(); getUpdateTimeFieldBuilder(); getLlmModelSettingsFieldBuilder(); @@ -2630,13 +3629,11 @@ public Builder clear() { outputParameterDefinitionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); - if (stepsBuilder_ == null) { - steps_ = java.util.Collections.emptyList(); - } else { - steps_ = null; - stepsBuilder_.clear(); + instruction_ = null; + if (instructionBuilder_ != null) { + instructionBuilder_.dispose(); + instructionBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000020); tokenCount_ = 0L; createTime_ = null; if (createTimeBuilder_ != null) { @@ -2713,15 +3710,6 @@ private void buildPartialRepeatedFields( } else { result.outputParameterDefinitions_ = outputParameterDefinitionsBuilder_.build(); } - if (stepsBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0)) { - steps_ = java.util.Collections.unmodifiableList(steps_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.steps_ = steps_; - } else { - result.steps_ = stepsBuilder_.build(); - } } private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.Playbook result) { @@ -2735,17 +3723,22 @@ private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.Playbook resul if (((from_bitField0_ & 0x00000004) != 0)) { result.goal_ = goal_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.instruction_ = + instructionBuilder_ == null ? instruction_ : instructionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } if (((from_bitField0_ & 0x00000040) != 0)) { result.tokenCount_ = tokenCount_; } - int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000080) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); - to_bitField0_ |= 0x00000001; + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000100) != 0)) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); - to_bitField0_ |= 0x00000002; + to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000200) != 0)) { referencedPlaybooks_.makeImmutable(); @@ -2762,7 +3755,7 @@ private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.Playbook resul if (((from_bitField0_ & 0x00001000) != 0)) { result.llmModelSettings_ = llmModelSettingsBuilder_ == null ? llmModelSettings_ : llmModelSettingsBuilder_.build(); - to_bitField0_ |= 0x00000004; + to_bitField0_ |= 0x00000008; } result.bitField0_ |= to_bitField0_; } @@ -2882,32 +3875,8 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Playbook other) } } } - if (stepsBuilder_ == null) { - if (!other.steps_.isEmpty()) { - if (steps_.isEmpty()) { - steps_ = other.steps_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureStepsIsMutable(); - steps_.addAll(other.steps_); - } - onChanged(); - } - } else { - if (!other.steps_.isEmpty()) { - if (stepsBuilder_.isEmpty()) { - stepsBuilder_.dispose(); - stepsBuilder_ = null; - steps_ = other.steps_; - bitField0_ = (bitField0_ & ~0x00000020); - stepsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getStepsFieldBuilder() - : null; - } else { - stepsBuilder_.addAllMessages(other.steps_); - } - } + if (other.hasInstruction()) { + mergeInstruction(other.getInstruction()); } if (other.getTokenCount() != 0L) { setTokenCount(other.getTokenCount()); @@ -2995,20 +3964,6 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 - case 34: - { - com.google.cloud.dialogflow.cx.v3beta1.Playbook.Step m = - input.readMessage( - com.google.cloud.dialogflow.cx.v3beta1.Playbook.Step.parser(), - extensionRegistry); - if (stepsBuilder_ == null) { - ensureStepsIsMutable(); - steps_.add(m); - } else { - stepsBuilder_.addMessage(m); - } - break; - } // case 34 case 42: { com.google.cloud.dialogflow.cx.v3beta1.ParameterDefinition m = @@ -3083,6 +4038,12 @@ public Builder mergeFrom( bitField0_ |= 0x00001000; break; } // case 114 + case 138: + { + input.readMessage(getInstructionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 138 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4249,244 +5210,116 @@ public Builder removeOutputParameterDefinitions(int index) { return outputParameterDefinitionsBuilder_; } - private java.util.List steps_ = - java.util.Collections.emptyList(); - - private void ensureStepsIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { - steps_ = - new java.util.ArrayList(steps_); - bitField0_ |= 0x00000020; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.cx.v3beta1.Playbook.Step, - com.google.cloud.dialogflow.cx.v3beta1.Playbook.Step.Builder, - com.google.cloud.dialogflow.cx.v3beta1.Playbook.StepOrBuilder> - stepsBuilder_; - - /** - * - * - *
-     * Ordered list of step by step execution instructions to accomplish
-     * target goal.
-     * 
- * - * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 4; - */ - public java.util.List getStepsList() { - if (stepsBuilder_ == null) { - return java.util.Collections.unmodifiableList(steps_); - } else { - return stepsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Ordered list of step by step execution instructions to accomplish
-     * target goal.
-     * 
- * - * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 4; - */ - public int getStepsCount() { - if (stepsBuilder_ == null) { - return steps_.size(); - } else { - return stepsBuilder_.getCount(); - } - } + private com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction instruction_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction, + com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction.Builder, + com.google.cloud.dialogflow.cx.v3beta1.Playbook.InstructionOrBuilder> + instructionBuilder_; /** * * *
-     * Ordered list of step by step execution instructions to accomplish
-     * target goal.
+     * Instruction to accomplish target goal.
      * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 4; - */ - public com.google.cloud.dialogflow.cx.v3beta1.Playbook.Step getSteps(int index) { - if (stepsBuilder_ == null) { - return steps_.get(index); - } else { - return stepsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Ordered list of step by step execution instructions to accomplish
-     * target goal.
-     * 
+ * .google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction instruction = 17; * - * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 4; + * @return Whether the instruction field is set. */ - public Builder setSteps(int index, com.google.cloud.dialogflow.cx.v3beta1.Playbook.Step value) { - if (stepsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStepsIsMutable(); - steps_.set(index, value); - onChanged(); - } else { - stepsBuilder_.setMessage(index, value); - } - return this; + public boolean hasInstruction() { + return ((bitField0_ & 0x00000020) != 0); } /** * * *
-     * Ordered list of step by step execution instructions to accomplish
-     * target goal.
+     * Instruction to accomplish target goal.
      * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 4; - */ - public Builder setSteps( - int index, com.google.cloud.dialogflow.cx.v3beta1.Playbook.Step.Builder builderForValue) { - if (stepsBuilder_ == null) { - ensureStepsIsMutable(); - steps_.set(index, builderForValue.build()); - onChanged(); - } else { - stepsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Ordered list of step by step execution instructions to accomplish
-     * target goal.
-     * 
+ * .google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction instruction = 17; * - * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 4; + * @return The instruction. */ - public Builder addSteps(com.google.cloud.dialogflow.cx.v3beta1.Playbook.Step value) { - if (stepsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStepsIsMutable(); - steps_.add(value); - onChanged(); + public com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction getInstruction() { + if (instructionBuilder_ == null) { + return instruction_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction.getDefaultInstance() + : instruction_; } else { - stepsBuilder_.addMessage(value); + return instructionBuilder_.getMessage(); } - return this; } /** * * *
-     * Ordered list of step by step execution instructions to accomplish
-     * target goal.
+     * Instruction to accomplish target goal.
      * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 4; + * .google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction instruction = 17; */ - public Builder addSteps(int index, com.google.cloud.dialogflow.cx.v3beta1.Playbook.Step value) { - if (stepsBuilder_ == null) { + public Builder setInstruction( + com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction value) { + if (instructionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureStepsIsMutable(); - steps_.add(index, value); - onChanged(); - } else { - stepsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Ordered list of step by step execution instructions to accomplish
-     * target goal.
-     * 
- * - * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 4; - */ - public Builder addSteps( - com.google.cloud.dialogflow.cx.v3beta1.Playbook.Step.Builder builderForValue) { - if (stepsBuilder_ == null) { - ensureStepsIsMutable(); - steps_.add(builderForValue.build()); - onChanged(); + instruction_ = value; } else { - stepsBuilder_.addMessage(builderForValue.build()); + instructionBuilder_.setMessage(value); } + bitField0_ |= 0x00000020; + onChanged(); return this; } /** * * *
-     * Ordered list of step by step execution instructions to accomplish
-     * target goal.
+     * Instruction to accomplish target goal.
      * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 4; + * .google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction instruction = 17; */ - public Builder addSteps( - int index, com.google.cloud.dialogflow.cx.v3beta1.Playbook.Step.Builder builderForValue) { - if (stepsBuilder_ == null) { - ensureStepsIsMutable(); - steps_.add(index, builderForValue.build()); - onChanged(); + public Builder setInstruction( + com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction.Builder builderForValue) { + if (instructionBuilder_ == null) { + instruction_ = builderForValue.build(); } else { - stepsBuilder_.addMessage(index, builderForValue.build()); + instructionBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00000020; + onChanged(); return this; } /** * * *
-     * Ordered list of step by step execution instructions to accomplish
-     * target goal.
+     * Instruction to accomplish target goal.
      * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 4; + * .google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction instruction = 17; */ - public Builder addAllSteps( - java.lang.Iterable values) { - if (stepsBuilder_ == null) { - ensureStepsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, steps_); - onChanged(); + public Builder mergeInstruction( + com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction value) { + if (instructionBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && instruction_ != null + && instruction_ + != com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction + .getDefaultInstance()) { + getInstructionBuilder().mergeFrom(value); + } else { + instruction_ = value; + } } else { - stepsBuilder_.addAllMessages(values); + instructionBuilder_.mergeFrom(value); } - return this; - } - /** - * - * - *
-     * Ordered list of step by step execution instructions to accomplish
-     * target goal.
-     * 
- * - * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 4; - */ - public Builder clearSteps() { - if (stepsBuilder_ == null) { - steps_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); + if (instruction_ != null) { + bitField0_ |= 0x00000020; onChanged(); - } else { - stepsBuilder_.clear(); } return this; } @@ -4494,130 +5327,79 @@ public Builder clearSteps() { * * *
-     * Ordered list of step by step execution instructions to accomplish
-     * target goal.
+     * Instruction to accomplish target goal.
      * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 4; + * .google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction instruction = 17; */ - public Builder removeSteps(int index) { - if (stepsBuilder_ == null) { - ensureStepsIsMutable(); - steps_.remove(index); - onChanged(); - } else { - stepsBuilder_.remove(index); + public Builder clearInstruction() { + bitField0_ = (bitField0_ & ~0x00000020); + instruction_ = null; + if (instructionBuilder_ != null) { + instructionBuilder_.dispose(); + instructionBuilder_ = null; } + onChanged(); return this; } /** * * *
-     * Ordered list of step by step execution instructions to accomplish
-     * target goal.
-     * 
- * - * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 4; - */ - public com.google.cloud.dialogflow.cx.v3beta1.Playbook.Step.Builder getStepsBuilder(int index) { - return getStepsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Ordered list of step by step execution instructions to accomplish
-     * target goal.
+     * Instruction to accomplish target goal.
      * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 4; + * .google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction instruction = 17; */ - public com.google.cloud.dialogflow.cx.v3beta1.Playbook.StepOrBuilder getStepsOrBuilder( - int index) { - if (stepsBuilder_ == null) { - return steps_.get(index); - } else { - return stepsBuilder_.getMessageOrBuilder(index); - } + public com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction.Builder + getInstructionBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getInstructionFieldBuilder().getBuilder(); } /** * * *
-     * Ordered list of step by step execution instructions to accomplish
-     * target goal.
+     * Instruction to accomplish target goal.
      * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 4; + * .google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction instruction = 17; */ - public java.util.List - getStepsOrBuilderList() { - if (stepsBuilder_ != null) { - return stepsBuilder_.getMessageOrBuilderList(); + public com.google.cloud.dialogflow.cx.v3beta1.Playbook.InstructionOrBuilder + getInstructionOrBuilder() { + if (instructionBuilder_ != null) { + return instructionBuilder_.getMessageOrBuilder(); } else { - return java.util.Collections.unmodifiableList(steps_); + return instruction_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction.getDefaultInstance() + : instruction_; } } /** * * *
-     * Ordered list of step by step execution instructions to accomplish
-     * target goal.
-     * 
- * - * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 4; - */ - public com.google.cloud.dialogflow.cx.v3beta1.Playbook.Step.Builder addStepsBuilder() { - return getStepsFieldBuilder() - .addBuilder(com.google.cloud.dialogflow.cx.v3beta1.Playbook.Step.getDefaultInstance()); - } - /** - * - * - *
-     * Ordered list of step by step execution instructions to accomplish
-     * target goal.
-     * 
- * - * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 4; - */ - public com.google.cloud.dialogflow.cx.v3beta1.Playbook.Step.Builder addStepsBuilder(int index) { - return getStepsFieldBuilder() - .addBuilder( - index, com.google.cloud.dialogflow.cx.v3beta1.Playbook.Step.getDefaultInstance()); - } - /** - * - * - *
-     * Ordered list of step by step execution instructions to accomplish
-     * target goal.
+     * Instruction to accomplish target goal.
      * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 4; + * .google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction instruction = 17; */ - public java.util.List - getStepsBuilderList() { - return getStepsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.cx.v3beta1.Playbook.Step, - com.google.cloud.dialogflow.cx.v3beta1.Playbook.Step.Builder, - com.google.cloud.dialogflow.cx.v3beta1.Playbook.StepOrBuilder> - getStepsFieldBuilder() { - if (stepsBuilder_ == null) { - stepsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.cx.v3beta1.Playbook.Step, - com.google.cloud.dialogflow.cx.v3beta1.Playbook.Step.Builder, - com.google.cloud.dialogflow.cx.v3beta1.Playbook.StepOrBuilder>( - steps_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); - steps_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction, + com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction.Builder, + com.google.cloud.dialogflow.cx.v3beta1.Playbook.InstructionOrBuilder> + getInstructionFieldBuilder() { + if (instructionBuilder_ == null) { + instructionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction, + com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction.Builder, + com.google.cloud.dialogflow.cx.v3beta1.Playbook.InstructionOrBuilder>( + getInstruction(), getParentForChildren(), isClean()); + instruction_ = null; } - return stepsBuilder_; + return instructionBuilder_; } private long tokenCount_; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookInput.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookInput.java index 0c5eb83482d1..b6eae38ca86d 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookInput.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookInput.java @@ -40,7 +40,6 @@ private PlaybookInput(com.google.protobuf.GeneratedMessageV3.Builder builder) private PlaybookInput() { precedingConversationSummary_ = ""; - parameters_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -64,6 +63,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.dialogflow.cx.v3beta1.PlaybookInput.Builder.class); } + private int bitField0_; public static final int PRECEDING_CONVERSATION_SUMMARY_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -119,87 +119,57 @@ public com.google.protobuf.ByteString getPrecedingConversationSummaryBytes() { } } - public static final int PARAMETERS_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private java.util.List parameters_; + public static final int ACTION_PARAMETERS_FIELD_NUMBER = 3; + private com.google.protobuf.Struct actionParameters_; /** * * *
-   * Optional. A list of input parameters for the invocation.
+   * Optional. A list of input parameters for the action.
    * 
* - * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Struct action_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; * - */ - @java.lang.Override - public java.util.List - getParametersList() { - return parameters_; - } - /** * - * - *
-   * Optional. A list of input parameters for the invocation.
-   * 
- * - * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * @return Whether the actionParameters field is set. */ @java.lang.Override - public java.util.List - getParametersOrBuilderList() { - return parameters_; + public boolean hasActionParameters() { + return ((bitField0_ & 0x00000001) != 0); } /** * * *
-   * Optional. A list of input parameters for the invocation.
+   * Optional. A list of input parameters for the action.
    * 
* - * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Struct action_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; * - */ - @java.lang.Override - public int getParametersCount() { - return parameters_.size(); - } - /** * - * - *
-   * Optional. A list of input parameters for the invocation.
-   * 
- * - * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * @return The actionParameters. */ @java.lang.Override - public com.google.cloud.dialogflow.cx.v3beta1.ActionParameter getParameters(int index) { - return parameters_.get(index); + public com.google.protobuf.Struct getActionParameters() { + return actionParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : actionParameters_; } /** * * *
-   * Optional. A list of input parameters for the invocation.
+   * Optional. A list of input parameters for the action.
    * 
* - * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Struct action_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.cloud.dialogflow.cx.v3beta1.ActionParameterOrBuilder getParametersOrBuilder( - int index) { - return parameters_.get(index); + public com.google.protobuf.StructOrBuilder getActionParametersOrBuilder() { + return actionParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : actionParameters_; } private byte memoizedIsInitialized = -1; @@ -219,8 +189,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(precedingConversationSummary_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, precedingConversationSummary_); } - for (int i = 0; i < parameters_.size(); i++) { - output.writeMessage(2, parameters_.get(i)); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getActionParameters()); } getUnknownFields().writeTo(output); } @@ -236,8 +206,8 @@ public int getSerializedSize() { com.google.protobuf.GeneratedMessageV3.computeStringSize( 1, precedingConversationSummary_); } - for (int i = 0; i < parameters_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, parameters_.get(i)); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getActionParameters()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -257,7 +227,10 @@ public boolean equals(final java.lang.Object obj) { if (!getPrecedingConversationSummary().equals(other.getPrecedingConversationSummary())) return false; - if (!getParametersList().equals(other.getParametersList())) return false; + if (hasActionParameters() != other.hasActionParameters()) return false; + if (hasActionParameters()) { + if (!getActionParameters().equals(other.getActionParameters())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -271,9 +244,9 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PRECEDING_CONVERSATION_SUMMARY_FIELD_NUMBER; hash = (53 * hash) + getPrecedingConversationSummary().hashCode(); - if (getParametersCount() > 0) { - hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; - hash = (53 * hash) + getParametersList().hashCode(); + if (hasActionParameters()) { + hash = (37 * hash) + ACTION_PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getActionParameters().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; @@ -404,10 +377,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dialogflow.cx.v3beta1.PlaybookInput.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getActionParametersFieldBuilder(); + } } @java.lang.Override @@ -415,13 +397,11 @@ public Builder clear() { super.clear(); bitField0_ = 0; precedingConversationSummary_ = ""; - if (parametersBuilder_ == null) { - parameters_ = java.util.Collections.emptyList(); - } else { - parameters_ = null; - parametersBuilder_.clear(); + actionParameters_ = null; + if (actionParametersBuilder_ != null) { + actionParametersBuilder_.dispose(); + actionParametersBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -449,7 +429,6 @@ public com.google.cloud.dialogflow.cx.v3beta1.PlaybookInput build() { public com.google.cloud.dialogflow.cx.v3beta1.PlaybookInput buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.PlaybookInput result = new com.google.cloud.dialogflow.cx.v3beta1.PlaybookInput(this); - buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -457,24 +436,18 @@ public com.google.cloud.dialogflow.cx.v3beta1.PlaybookInput buildPartial() { return result; } - private void buildPartialRepeatedFields( - com.google.cloud.dialogflow.cx.v3beta1.PlaybookInput result) { - if (parametersBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - parameters_ = java.util.Collections.unmodifiableList(parameters_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.parameters_ = parameters_; - } else { - result.parameters_ = parametersBuilder_.build(); - } - } - private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.PlaybookInput result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.precedingConversationSummary_ = precedingConversationSummary_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.actionParameters_ = + actionParametersBuilder_ == null ? actionParameters_ : actionParametersBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -528,32 +501,8 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.PlaybookInput ot bitField0_ |= 0x00000001; onChanged(); } - if (parametersBuilder_ == null) { - if (!other.parameters_.isEmpty()) { - if (parameters_.isEmpty()) { - parameters_ = other.parameters_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureParametersIsMutable(); - parameters_.addAll(other.parameters_); - } - onChanged(); - } - } else { - if (!other.parameters_.isEmpty()) { - if (parametersBuilder_.isEmpty()) { - parametersBuilder_.dispose(); - parametersBuilder_ = null; - parameters_ = other.parameters_; - bitField0_ = (bitField0_ & ~0x00000002); - parametersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getParametersFieldBuilder() - : null; - } else { - parametersBuilder_.addAllMessages(other.parameters_); - } - } + if (other.hasActionParameters()) { + mergeActionParameters(other.getActionParameters()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -587,20 +536,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 - case 18: + case 26: { - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter m = - input.readMessage( - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.parser(), - extensionRegistry); - if (parametersBuilder_ == null) { - ensureParametersIsMutable(); - parameters_.add(m); - } else { - parametersBuilder_.addMessage(m); - } + input.readMessage( + getActionParametersFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; break; - } // case 18 + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -736,260 +678,121 @@ public Builder setPrecedingConversationSummaryBytes(com.google.protobuf.ByteStri return this; } - private java.util.List parameters_ = - java.util.Collections.emptyList(); - - private void ensureParametersIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - parameters_ = - new java.util.ArrayList( - parameters_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter, - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder, - com.google.cloud.dialogflow.cx.v3beta1.ActionParameterOrBuilder> - parametersBuilder_; - + private com.google.protobuf.Struct actionParameters_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + actionParametersBuilder_; /** * * *
-     * Optional. A list of input parameters for the invocation.
+     * Optional. A list of input parameters for the action.
      * 
* * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Struct action_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; * - */ - public java.util.List - getParametersList() { - if (parametersBuilder_ == null) { - return java.util.Collections.unmodifiableList(parameters_); - } else { - return parametersBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Optional. A list of input parameters for the invocation.
-     * 
- * - * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public int getParametersCount() { - if (parametersBuilder_ == null) { - return parameters_.size(); - } else { - return parametersBuilder_.getCount(); - } - } - /** * - * - *
-     * Optional. A list of input parameters for the invocation.
-     * 
- * - * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * @return Whether the actionParameters field is set. */ - public com.google.cloud.dialogflow.cx.v3beta1.ActionParameter getParameters(int index) { - if (parametersBuilder_ == null) { - return parameters_.get(index); - } else { - return parametersBuilder_.getMessage(index); - } + public boolean hasActionParameters() { + return ((bitField0_ & 0x00000002) != 0); } /** * * *
-     * Optional. A list of input parameters for the invocation.
+     * Optional. A list of input parameters for the action.
      * 
* * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Struct action_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; * - */ - public Builder setParameters( - int index, com.google.cloud.dialogflow.cx.v3beta1.ActionParameter value) { - if (parametersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureParametersIsMutable(); - parameters_.set(index, value); - onChanged(); - } else { - parametersBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Optional. A list of input parameters for the invocation.
-     * 
* - * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * @return The actionParameters. */ - public Builder setParameters( - int index, com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder builderForValue) { - if (parametersBuilder_ == null) { - ensureParametersIsMutable(); - parameters_.set(index, builderForValue.build()); - onChanged(); + public com.google.protobuf.Struct getActionParameters() { + if (actionParametersBuilder_ == null) { + return actionParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : actionParameters_; } else { - parametersBuilder_.setMessage(index, builderForValue.build()); + return actionParametersBuilder_.getMessage(); } - return this; } /** * * *
-     * Optional. A list of input parameters for the invocation.
+     * Optional. A list of input parameters for the action.
      * 
* * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Struct action_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addParameters(com.google.cloud.dialogflow.cx.v3beta1.ActionParameter value) { - if (parametersBuilder_ == null) { + public Builder setActionParameters(com.google.protobuf.Struct value) { + if (actionParametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureParametersIsMutable(); - parameters_.add(value); - onChanged(); + actionParameters_ = value; } else { - parametersBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Optional. A list of input parameters for the invocation.
-     * 
- * - * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addParameters( - int index, com.google.cloud.dialogflow.cx.v3beta1.ActionParameter value) { - if (parametersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureParametersIsMutable(); - parameters_.add(index, value); - onChanged(); - } else { - parametersBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Optional. A list of input parameters for the invocation.
-     * 
- * - * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addParameters( - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder builderForValue) { - if (parametersBuilder_ == null) { - ensureParametersIsMutable(); - parameters_.add(builderForValue.build()); - onChanged(); - } else { - parametersBuilder_.addMessage(builderForValue.build()); + actionParametersBuilder_.setMessage(value); } + bitField0_ |= 0x00000002; + onChanged(); return this; } /** * * *
-     * Optional. A list of input parameters for the invocation.
+     * Optional. A list of input parameters for the action.
      * 
* * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Struct action_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addParameters( - int index, com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder builderForValue) { - if (parametersBuilder_ == null) { - ensureParametersIsMutable(); - parameters_.add(index, builderForValue.build()); - onChanged(); + public Builder setActionParameters(com.google.protobuf.Struct.Builder builderForValue) { + if (actionParametersBuilder_ == null) { + actionParameters_ = builderForValue.build(); } else { - parametersBuilder_.addMessage(index, builderForValue.build()); + actionParametersBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00000002; + onChanged(); return this; } /** * * *
-     * Optional. A list of input parameters for the invocation.
+     * Optional. A list of input parameters for the action.
      * 
* * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Struct action_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addAllParameters( - java.lang.Iterable - values) { - if (parametersBuilder_ == null) { - ensureParametersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, parameters_); - onChanged(); + public Builder mergeActionParameters(com.google.protobuf.Struct value) { + if (actionParametersBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && actionParameters_ != null + && actionParameters_ != com.google.protobuf.Struct.getDefaultInstance()) { + getActionParametersBuilder().mergeFrom(value); + } else { + actionParameters_ = value; + } } else { - parametersBuilder_.addAllMessages(values); + actionParametersBuilder_.mergeFrom(value); } - return this; - } - /** - * - * - *
-     * Optional. A list of input parameters for the invocation.
-     * 
- * - * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearParameters() { - if (parametersBuilder_ == null) { - parameters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + if (actionParameters_ != null) { + bitField0_ |= 0x00000002; onChanged(); - } else { - parametersBuilder_.clear(); } return this; } @@ -997,139 +800,85 @@ public Builder clearParameters() { * * *
-     * Optional. A list of input parameters for the invocation.
+     * Optional. A list of input parameters for the action.
      * 
* * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Struct action_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder removeParameters(int index) { - if (parametersBuilder_ == null) { - ensureParametersIsMutable(); - parameters_.remove(index); - onChanged(); - } else { - parametersBuilder_.remove(index); + public Builder clearActionParameters() { + bitField0_ = (bitField0_ & ~0x00000002); + actionParameters_ = null; + if (actionParametersBuilder_ != null) { + actionParametersBuilder_.dispose(); + actionParametersBuilder_ = null; } + onChanged(); return this; } /** * * *
-     * Optional. A list of input parameters for the invocation.
-     * 
- * - * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder getParametersBuilder( - int index) { - return getParametersFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Optional. A list of input parameters for the invocation.
+     * Optional. A list of input parameters for the action.
      * 
* * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Struct action_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.dialogflow.cx.v3beta1.ActionParameterOrBuilder getParametersOrBuilder( - int index) { - if (parametersBuilder_ == null) { - return parameters_.get(index); - } else { - return parametersBuilder_.getMessageOrBuilder(index); - } + public com.google.protobuf.Struct.Builder getActionParametersBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getActionParametersFieldBuilder().getBuilder(); } /** * * *
-     * Optional. A list of input parameters for the invocation.
+     * Optional. A list of input parameters for the action.
      * 
* * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Struct action_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - public java.util.List - getParametersOrBuilderList() { - if (parametersBuilder_ != null) { - return parametersBuilder_.getMessageOrBuilderList(); + public com.google.protobuf.StructOrBuilder getActionParametersOrBuilder() { + if (actionParametersBuilder_ != null) { + return actionParametersBuilder_.getMessageOrBuilder(); } else { - return java.util.Collections.unmodifiableList(parameters_); + return actionParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : actionParameters_; } } /** * * *
-     * Optional. A list of input parameters for the invocation.
+     * Optional. A list of input parameters for the action.
      * 
* * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Struct action_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder addParametersBuilder() { - return getParametersFieldBuilder() - .addBuilder(com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.getDefaultInstance()); - } - /** - * - * - *
-     * Optional. A list of input parameters for the invocation.
-     * 
- * - * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder addParametersBuilder( - int index) { - return getParametersFieldBuilder() - .addBuilder( - index, com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.getDefaultInstance()); - } - /** - * - * - *
-     * Optional. A list of input parameters for the invocation.
-     * 
- * - * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List - getParametersBuilderList() { - return getParametersFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter, - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder, - com.google.cloud.dialogflow.cx.v3beta1.ActionParameterOrBuilder> - getParametersFieldBuilder() { - if (parametersBuilder_ == null) { - parametersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter, - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder, - com.google.cloud.dialogflow.cx.v3beta1.ActionParameterOrBuilder>( - parameters_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); - parameters_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + getActionParametersFieldBuilder() { + if (actionParametersBuilder_ == null) { + actionParametersBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getActionParameters(), getParentForChildren(), isClean()); + actionParameters_ = null; } - return parametersBuilder_; + return actionParametersBuilder_; } @java.lang.Override diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookInputOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookInputOrBuilder.java index 06e4b187197e..bc2c61ea7a07 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookInputOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookInputOrBuilder.java @@ -57,61 +57,37 @@ public interface PlaybookInputOrBuilder * * *
-   * Optional. A list of input parameters for the invocation.
+   * Optional. A list of input parameters for the action.
    * 
* - * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Struct action_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; * - */ - java.util.List getParametersList(); - /** * - * - *
-   * Optional. A list of input parameters for the invocation.
-   * 
- * - * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * @return Whether the actionParameters field is set. */ - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter getParameters(int index); + boolean hasActionParameters(); /** * * *
-   * Optional. A list of input parameters for the invocation.
+   * Optional. A list of input parameters for the action.
    * 
* - * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Struct action_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; * - */ - int getParametersCount(); - /** * - * - *
-   * Optional. A list of input parameters for the invocation.
-   * 
- * - * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * @return The actionParameters. */ - java.util.List - getParametersOrBuilderList(); + com.google.protobuf.Struct getActionParameters(); /** * * *
-   * Optional. A list of input parameters for the invocation.
+   * Optional. A list of input parameters for the action.
    * 
* - * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Struct action_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - com.google.cloud.dialogflow.cx.v3beta1.ActionParameterOrBuilder getParametersOrBuilder(int index); + com.google.protobuf.StructOrBuilder getActionParametersOrBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookOrBuilder.java index 422e9eab1edc..0ada0445f8eb 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookOrBuilder.java @@ -239,58 +239,36 @@ com.google.cloud.dialogflow.cx.v3beta1.ParameterDefinition getOutputParameterDef * * *
-   * Ordered list of step by step execution instructions to accomplish
-   * target goal.
+   * Instruction to accomplish target goal.
    * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 4; - */ - java.util.List getStepsList(); - /** - * - * - *
-   * Ordered list of step by step execution instructions to accomplish
-   * target goal.
-   * 
+ * .google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction instruction = 17; * - * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 4; + * @return Whether the instruction field is set. */ - com.google.cloud.dialogflow.cx.v3beta1.Playbook.Step getSteps(int index); + boolean hasInstruction(); /** * * *
-   * Ordered list of step by step execution instructions to accomplish
-   * target goal.
+   * Instruction to accomplish target goal.
    * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 4; - */ - int getStepsCount(); - /** - * - * - *
-   * Ordered list of step by step execution instructions to accomplish
-   * target goal.
-   * 
+ * .google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction instruction = 17; * - * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 4; + * @return The instruction. */ - java.util.List - getStepsOrBuilderList(); + com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction getInstruction(); /** * * *
-   * Ordered list of step by step execution instructions to accomplish
-   * target goal.
+   * Instruction to accomplish target goal.
    * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 4; + * .google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction instruction = 17; */ - com.google.cloud.dialogflow.cx.v3beta1.Playbook.StepOrBuilder getStepsOrBuilder(int index); + com.google.cloud.dialogflow.cx.v3beta1.Playbook.InstructionOrBuilder getInstructionOrBuilder(); /** * diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookOutput.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookOutput.java index 6f14f6adc80b..cbcdd73f233f 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookOutput.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookOutput.java @@ -40,7 +40,6 @@ private PlaybookOutput(com.google.protobuf.GeneratedMessageV3.Builder builder private PlaybookOutput() { executionSummary_ = ""; - parameters_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -64,6 +63,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.dialogflow.cx.v3beta1.PlaybookOutput.Builder.class); } + private int bitField0_; public static final int EXECUTION_SUMMARY_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -115,87 +115,57 @@ public com.google.protobuf.ByteString getExecutionSummaryBytes() { } } - public static final int PARAMETERS_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private java.util.List parameters_; + public static final int ACTION_PARAMETERS_FIELD_NUMBER = 4; + private com.google.protobuf.Struct actionParameters_; /** * * *
-   * Optional. A list of output parameters for the invocation.
+   * Optional. A Struct object of output parameters for the action.
    * 
* - * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Struct action_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; * - */ - @java.lang.Override - public java.util.List - getParametersList() { - return parameters_; - } - /** * - * - *
-   * Optional. A list of output parameters for the invocation.
-   * 
- * - * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * @return Whether the actionParameters field is set. */ @java.lang.Override - public java.util.List - getParametersOrBuilderList() { - return parameters_; + public boolean hasActionParameters() { + return ((bitField0_ & 0x00000001) != 0); } /** * * *
-   * Optional. A list of output parameters for the invocation.
+   * Optional. A Struct object of output parameters for the action.
    * 
* - * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Struct action_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; * - */ - @java.lang.Override - public int getParametersCount() { - return parameters_.size(); - } - /** * - * - *
-   * Optional. A list of output parameters for the invocation.
-   * 
- * - * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * @return The actionParameters. */ @java.lang.Override - public com.google.cloud.dialogflow.cx.v3beta1.ActionParameter getParameters(int index) { - return parameters_.get(index); + public com.google.protobuf.Struct getActionParameters() { + return actionParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : actionParameters_; } /** * * *
-   * Optional. A list of output parameters for the invocation.
+   * Optional. A Struct object of output parameters for the action.
    * 
* - * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Struct action_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.cloud.dialogflow.cx.v3beta1.ActionParameterOrBuilder getParametersOrBuilder( - int index) { - return parameters_.get(index); + public com.google.protobuf.StructOrBuilder getActionParametersOrBuilder() { + return actionParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : actionParameters_; } private byte memoizedIsInitialized = -1; @@ -215,8 +185,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(executionSummary_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, executionSummary_); } - for (int i = 0; i < parameters_.size(); i++) { - output.writeMessage(3, parameters_.get(i)); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getActionParameters()); } getUnknownFields().writeTo(output); } @@ -230,8 +200,8 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(executionSummary_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, executionSummary_); } - for (int i = 0; i < parameters_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, parameters_.get(i)); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getActionParameters()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -250,7 +220,10 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.dialogflow.cx.v3beta1.PlaybookOutput) obj; if (!getExecutionSummary().equals(other.getExecutionSummary())) return false; - if (!getParametersList().equals(other.getParametersList())) return false; + if (hasActionParameters() != other.hasActionParameters()) return false; + if (hasActionParameters()) { + if (!getActionParameters().equals(other.getActionParameters())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -264,9 +237,9 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + EXECUTION_SUMMARY_FIELD_NUMBER; hash = (53 * hash) + getExecutionSummary().hashCode(); - if (getParametersCount() > 0) { - hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; - hash = (53 * hash) + getParametersList().hashCode(); + if (hasActionParameters()) { + hash = (37 * hash) + ACTION_PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getActionParameters().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; @@ -398,10 +371,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dialogflow.cx.v3beta1.PlaybookOutput.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getActionParametersFieldBuilder(); + } } @java.lang.Override @@ -409,13 +391,11 @@ public Builder clear() { super.clear(); bitField0_ = 0; executionSummary_ = ""; - if (parametersBuilder_ == null) { - parameters_ = java.util.Collections.emptyList(); - } else { - parameters_ = null; - parametersBuilder_.clear(); + actionParameters_ = null; + if (actionParametersBuilder_ != null) { + actionParametersBuilder_.dispose(); + actionParametersBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -443,7 +423,6 @@ public com.google.cloud.dialogflow.cx.v3beta1.PlaybookOutput build() { public com.google.cloud.dialogflow.cx.v3beta1.PlaybookOutput buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.PlaybookOutput result = new com.google.cloud.dialogflow.cx.v3beta1.PlaybookOutput(this); - buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -451,24 +430,18 @@ public com.google.cloud.dialogflow.cx.v3beta1.PlaybookOutput buildPartial() { return result; } - private void buildPartialRepeatedFields( - com.google.cloud.dialogflow.cx.v3beta1.PlaybookOutput result) { - if (parametersBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - parameters_ = java.util.Collections.unmodifiableList(parameters_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.parameters_ = parameters_; - } else { - result.parameters_ = parametersBuilder_.build(); - } - } - private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.PlaybookOutput result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.executionSummary_ = executionSummary_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.actionParameters_ = + actionParametersBuilder_ == null ? actionParameters_ : actionParametersBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -522,32 +495,8 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.PlaybookOutput o bitField0_ |= 0x00000001; onChanged(); } - if (parametersBuilder_ == null) { - if (!other.parameters_.isEmpty()) { - if (parameters_.isEmpty()) { - parameters_ = other.parameters_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureParametersIsMutable(); - parameters_.addAll(other.parameters_); - } - onChanged(); - } - } else { - if (!other.parameters_.isEmpty()) { - if (parametersBuilder_.isEmpty()) { - parametersBuilder_.dispose(); - parametersBuilder_ = null; - parameters_ = other.parameters_; - bitField0_ = (bitField0_ & ~0x00000002); - parametersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getParametersFieldBuilder() - : null; - } else { - parametersBuilder_.addAllMessages(other.parameters_); - } - } + if (other.hasActionParameters()) { + mergeActionParameters(other.getActionParameters()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -581,20 +530,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 - case 26: + case 34: { - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter m = - input.readMessage( - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.parser(), - extensionRegistry); - if (parametersBuilder_ == null) { - ensureParametersIsMutable(); - parameters_.add(m); - } else { - parametersBuilder_.addMessage(m); - } + input.readMessage( + getActionParametersFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; break; - } // case 26 + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -720,260 +662,121 @@ public Builder setExecutionSummaryBytes(com.google.protobuf.ByteString value) { return this; } - private java.util.List parameters_ = - java.util.Collections.emptyList(); - - private void ensureParametersIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - parameters_ = - new java.util.ArrayList( - parameters_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter, - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder, - com.google.cloud.dialogflow.cx.v3beta1.ActionParameterOrBuilder> - parametersBuilder_; - + private com.google.protobuf.Struct actionParameters_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + actionParametersBuilder_; /** * * *
-     * Optional. A list of output parameters for the invocation.
+     * Optional. A Struct object of output parameters for the action.
      * 
* * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Struct action_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; * - */ - public java.util.List - getParametersList() { - if (parametersBuilder_ == null) { - return java.util.Collections.unmodifiableList(parameters_); - } else { - return parametersBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Optional. A list of output parameters for the invocation.
-     * 
- * - * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public int getParametersCount() { - if (parametersBuilder_ == null) { - return parameters_.size(); - } else { - return parametersBuilder_.getCount(); - } - } - /** * - * - *
-     * Optional. A list of output parameters for the invocation.
-     * 
- * - * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * @return Whether the actionParameters field is set. */ - public com.google.cloud.dialogflow.cx.v3beta1.ActionParameter getParameters(int index) { - if (parametersBuilder_ == null) { - return parameters_.get(index); - } else { - return parametersBuilder_.getMessage(index); - } + public boolean hasActionParameters() { + return ((bitField0_ & 0x00000002) != 0); } /** * * *
-     * Optional. A list of output parameters for the invocation.
+     * Optional. A Struct object of output parameters for the action.
      * 
* * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Struct action_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; * - */ - public Builder setParameters( - int index, com.google.cloud.dialogflow.cx.v3beta1.ActionParameter value) { - if (parametersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureParametersIsMutable(); - parameters_.set(index, value); - onChanged(); - } else { - parametersBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Optional. A list of output parameters for the invocation.
-     * 
* - * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * @return The actionParameters. */ - public Builder setParameters( - int index, com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder builderForValue) { - if (parametersBuilder_ == null) { - ensureParametersIsMutable(); - parameters_.set(index, builderForValue.build()); - onChanged(); + public com.google.protobuf.Struct getActionParameters() { + if (actionParametersBuilder_ == null) { + return actionParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : actionParameters_; } else { - parametersBuilder_.setMessage(index, builderForValue.build()); + return actionParametersBuilder_.getMessage(); } - return this; } /** * * *
-     * Optional. A list of output parameters for the invocation.
+     * Optional. A Struct object of output parameters for the action.
      * 
* * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Struct action_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addParameters(com.google.cloud.dialogflow.cx.v3beta1.ActionParameter value) { - if (parametersBuilder_ == null) { + public Builder setActionParameters(com.google.protobuf.Struct value) { + if (actionParametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureParametersIsMutable(); - parameters_.add(value); - onChanged(); + actionParameters_ = value; } else { - parametersBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Optional. A list of output parameters for the invocation.
-     * 
- * - * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addParameters( - int index, com.google.cloud.dialogflow.cx.v3beta1.ActionParameter value) { - if (parametersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureParametersIsMutable(); - parameters_.add(index, value); - onChanged(); - } else { - parametersBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Optional. A list of output parameters for the invocation.
-     * 
- * - * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addParameters( - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder builderForValue) { - if (parametersBuilder_ == null) { - ensureParametersIsMutable(); - parameters_.add(builderForValue.build()); - onChanged(); - } else { - parametersBuilder_.addMessage(builderForValue.build()); + actionParametersBuilder_.setMessage(value); } + bitField0_ |= 0x00000002; + onChanged(); return this; } /** * * *
-     * Optional. A list of output parameters for the invocation.
+     * Optional. A Struct object of output parameters for the action.
      * 
* * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Struct action_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addParameters( - int index, com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder builderForValue) { - if (parametersBuilder_ == null) { - ensureParametersIsMutable(); - parameters_.add(index, builderForValue.build()); - onChanged(); + public Builder setActionParameters(com.google.protobuf.Struct.Builder builderForValue) { + if (actionParametersBuilder_ == null) { + actionParameters_ = builderForValue.build(); } else { - parametersBuilder_.addMessage(index, builderForValue.build()); + actionParametersBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00000002; + onChanged(); return this; } /** * * *
-     * Optional. A list of output parameters for the invocation.
+     * Optional. A Struct object of output parameters for the action.
      * 
* * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Struct action_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addAllParameters( - java.lang.Iterable - values) { - if (parametersBuilder_ == null) { - ensureParametersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, parameters_); - onChanged(); + public Builder mergeActionParameters(com.google.protobuf.Struct value) { + if (actionParametersBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && actionParameters_ != null + && actionParameters_ != com.google.protobuf.Struct.getDefaultInstance()) { + getActionParametersBuilder().mergeFrom(value); + } else { + actionParameters_ = value; + } } else { - parametersBuilder_.addAllMessages(values); + actionParametersBuilder_.mergeFrom(value); } - return this; - } - /** - * - * - *
-     * Optional. A list of output parameters for the invocation.
-     * 
- * - * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearParameters() { - if (parametersBuilder_ == null) { - parameters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + if (actionParameters_ != null) { + bitField0_ |= 0x00000002; onChanged(); - } else { - parametersBuilder_.clear(); } return this; } @@ -981,139 +784,85 @@ public Builder clearParameters() { * * *
-     * Optional. A list of output parameters for the invocation.
+     * Optional. A Struct object of output parameters for the action.
      * 
* * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Struct action_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder removeParameters(int index) { - if (parametersBuilder_ == null) { - ensureParametersIsMutable(); - parameters_.remove(index); - onChanged(); - } else { - parametersBuilder_.remove(index); + public Builder clearActionParameters() { + bitField0_ = (bitField0_ & ~0x00000002); + actionParameters_ = null; + if (actionParametersBuilder_ != null) { + actionParametersBuilder_.dispose(); + actionParametersBuilder_ = null; } + onChanged(); return this; } /** * * *
-     * Optional. A list of output parameters for the invocation.
-     * 
- * - * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder getParametersBuilder( - int index) { - return getParametersFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Optional. A list of output parameters for the invocation.
+     * Optional. A Struct object of output parameters for the action.
      * 
* * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Struct action_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.dialogflow.cx.v3beta1.ActionParameterOrBuilder getParametersOrBuilder( - int index) { - if (parametersBuilder_ == null) { - return parameters_.get(index); - } else { - return parametersBuilder_.getMessageOrBuilder(index); - } + public com.google.protobuf.Struct.Builder getActionParametersBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getActionParametersFieldBuilder().getBuilder(); } /** * * *
-     * Optional. A list of output parameters for the invocation.
+     * Optional. A Struct object of output parameters for the action.
      * 
* * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Struct action_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public java.util.List - getParametersOrBuilderList() { - if (parametersBuilder_ != null) { - return parametersBuilder_.getMessageOrBuilderList(); + public com.google.protobuf.StructOrBuilder getActionParametersOrBuilder() { + if (actionParametersBuilder_ != null) { + return actionParametersBuilder_.getMessageOrBuilder(); } else { - return java.util.Collections.unmodifiableList(parameters_); + return actionParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : actionParameters_; } } /** * * *
-     * Optional. A list of output parameters for the invocation.
+     * Optional. A Struct object of output parameters for the action.
      * 
* * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Struct action_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder addParametersBuilder() { - return getParametersFieldBuilder() - .addBuilder(com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.getDefaultInstance()); - } - /** - * - * - *
-     * Optional. A list of output parameters for the invocation.
-     * 
- * - * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder addParametersBuilder( - int index) { - return getParametersFieldBuilder() - .addBuilder( - index, com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.getDefaultInstance()); - } - /** - * - * - *
-     * Optional. A list of output parameters for the invocation.
-     * 
- * - * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List - getParametersBuilderList() { - return getParametersFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter, - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder, - com.google.cloud.dialogflow.cx.v3beta1.ActionParameterOrBuilder> - getParametersFieldBuilder() { - if (parametersBuilder_ == null) { - parametersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter, - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder, - com.google.cloud.dialogflow.cx.v3beta1.ActionParameterOrBuilder>( - parameters_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); - parameters_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + getActionParametersFieldBuilder() { + if (actionParametersBuilder_ == null) { + actionParametersBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getActionParameters(), getParentForChildren(), isClean()); + actionParameters_ = null; } - return parametersBuilder_; + return actionParametersBuilder_; } @java.lang.Override diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookOutputOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookOutputOrBuilder.java index 3610b210e4a7..cc57006a288d 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookOutputOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookOutputOrBuilder.java @@ -53,61 +53,37 @@ public interface PlaybookOutputOrBuilder * * *
-   * Optional. A list of output parameters for the invocation.
+   * Optional. A Struct object of output parameters for the action.
    * 
* - * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Struct action_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; * - */ - java.util.List getParametersList(); - /** * - * - *
-   * Optional. A list of output parameters for the invocation.
-   * 
- * - * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * @return Whether the actionParameters field is set. */ - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter getParameters(int index); + boolean hasActionParameters(); /** * * *
-   * Optional. A list of output parameters for the invocation.
+   * Optional. A Struct object of output parameters for the action.
    * 
* - * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Struct action_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; * - */ - int getParametersCount(); - /** * - * - *
-   * Optional. A list of output parameters for the invocation.
-   * 
- * - * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * @return The actionParameters. */ - java.util.List - getParametersOrBuilderList(); + com.google.protobuf.Struct getActionParameters(); /** * * *
-   * Optional. A list of output parameters for the invocation.
+   * Optional. A Struct object of output parameters for the action.
    * 
* - * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Struct action_parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - com.google.cloud.dialogflow.cx.v3beta1.ActionParameterOrBuilder getParametersOrBuilder(int index); + com.google.protobuf.StructOrBuilder getActionParametersOrBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookProto.java index 7f8c0f70ce6f..19a76a7c0c22 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybookProto.java @@ -60,6 +60,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_cx_v3beta1_Playbook_Step_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dialogflow_cx_v3beta1_Playbook_Step_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3beta1_Playbook_Instruction_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3beta1_Playbook_Instruction_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_cx_v3beta1_CreatePlaybookVersionRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -122,116 +126,118 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "PlaybookRequest\022C\n\010playbook\030\001 \001(\0132,.goog" + "le.cloud.dialogflow.cx.v3beta1.PlaybookB" + "\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google.proto" - + "buf.FieldMask\"\331\007\n\010Playbook\022\014\n\004name\030\001 \001(\t" + + "buf.FieldMask\"\267\010\n\010Playbook\022\014\n\004name\030\001 \001(\t" + "\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022\021\n\004goal\030\003 \001(" + "\tB\003\340A\002\022a\n\033input_parameter_definitions\030\005 " + "\003(\01327.google.cloud.dialogflow.cx.v3beta1" + ".ParameterDefinitionB\003\340A\001\022b\n\034output_para" + "meter_definitions\030\006 \003(\01327.google.cloud.d" + "ialogflow.cx.v3beta1.ParameterDefinition" - + "B\003\340A\001\022@\n\005steps\030\004 \003(\01321.google.cloud.dial" - + "ogflow.cx.v3beta1.Playbook.Step\022\030\n\013token" - + "_count\030\010 \001(\003B\003\340A\003\0224\n\013create_time\030\t \001(\0132\032" - + ".google.protobuf.TimestampB\003\340A\003\0224\n\013updat" - + "e_time\030\n \001(\0132\032.google.protobuf.Timestamp" - + "B\003\340A\003\022H\n\024referenced_playbooks\030\013 \003(\tB*\340A\003" - + "\372A$\n\"dialogflow.googleapis.com/Playbook\022" - + "@\n\020referenced_flows\030\014 \003(\tB&\340A\003\372A \n\036dialo" - + "gflow.googleapis.com/Flow\022@\n\020referenced_" - + "tools\030\r \003(\tB&\340A\001\372A \n\036dialogflow.googleap" - + "is.com/Tool\022U\n\022llm_model_settings\030\016 \001(\0132" - + "4.google.cloud.dialogflow.cx.v3beta1.Llm" - + "ModelSettingsB\003\340A\001\032g\n\004Step\022\016\n\004text\030\001 \001(\t" - + "H\000\022@\n\005steps\030\002 \003(\01321.google.cloud.dialogf" - + "low.cx.v3beta1.Playbook.StepB\r\n\013instruct" - + "ion:t\352Aq\n\"dialogflow.googleapis.com/Play" - + "book\022Kprojects/{project}/locations/{loca" - + "tion}/agents/{agent}/playbooks/{playbook" - + "}\"\265\001\n\034CreatePlaybookVersionRequest\022A\n\006pa" - + "rent\030\001 \001(\tB1\340A\002\372A+\022)dialogflow.googleapi" - + "s.com/PlaybookVersion\022R\n\020playbook_versio" - + "n\030\002 \001(\01323.google.cloud.dialogflow.cx.v3b" - + "eta1.PlaybookVersionB\003\340A\002\"\255\003\n\017PlaybookVe" - + "rsion\022\014\n\004name\030\001 \001(\t\022\030\n\013description\030\002 \001(\t" - + "B\003\340A\001\022C\n\010playbook\030\003 \001(\0132,.google.cloud.d" - + "ialogflow.cx.v3beta1.PlaybookB\003\340A\003\022B\n\010ex" - + "amples\030\004 \003(\0132+.google.cloud.dialogflow.c" - + "x.v3beta1.ExampleB\003\340A\003\0224\n\013update_time\030\005 " - + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003:\262\001\352" - + "A\256\001\n)dialogflow.googleapis.com/PlaybookV" - + "ersion\022^projects/{project}/locations/{lo" - + "cation}/agents/{agent}/playbooks/{playbo" - + "ok}/versions/{version}*\020playbookVersions" - + "2\017playbookVersion\"\\\n\031GetPlaybookVersionR" - + "equest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)dialogflow" - + ".googleapis.com/PlaybookVersion\"\221\001\n\033List" - + "PlaybookVersionsRequest\022A\n\006parent\030\001 \001(\tB" - + "1\340A\002\372A+\022)dialogflow.googleapis.com/Playb" - + "ookVersion\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npa" - + "ge_token\030\003 \001(\tB\003\340A\001\"\207\001\n\034ListPlaybookVers" - + "ionsResponse\022N\n\021playbook_versions\030\001 \003(\0132" - + "3.google.cloud.dialogflow.cx.v3beta1.Pla" - + "ybookVersion\022\027\n\017next_page_token\030\002 \001(\t\"_\n" - + "\034DeletePlaybookVersionRequest\022?\n\004name\030\001 " - + "\001(\tB1\340A\002\372A+\n)dialogflow.googleapis.com/P" - + "laybookVersion2\305\020\n\tPlaybooks\022\332\001\n\016CreateP" - + "laybook\0229.google.cloud.dialogflow.cx.v3b" - + "eta1.CreatePlaybookRequest\032,.google.clou" - + "d.dialogflow.cx.v3beta1.Playbook\"_\332A\017par" - + "ent,playbook\202\323\344\223\002G\";/v3beta1/{parent=pro" - + "jects/*/locations/*/agents/*}/playbooks:" - + "\010playbook\022\257\001\n\016DeletePlaybook\0229.google.cl" - + "oud.dialogflow.cx.v3beta1.DeletePlaybook" - + "Request\032\026.google.protobuf.Empty\"J\332A\004name" - + "\202\323\344\223\002=*;/v3beta1/{name=projects/*/locati" - + "ons/*/agents/*/playbooks/*}\022\322\001\n\rListPlay" - + "books\0228.google.cloud.dialogflow.cx.v3bet" - + "a1.ListPlaybooksRequest\0329.google.cloud.d" - + "ialogflow.cx.v3beta1.ListPlaybooksRespon" - + "se\"L\332A\006parent\202\323\344\223\002=\022;/v3beta1/{parent=pr" - + "ojects/*/locations/*/agents/*}/playbooks" - + "\022\277\001\n\013GetPlaybook\0226.google.cloud.dialogfl" - + "ow.cx.v3beta1.GetPlaybookRequest\032,.googl" - + "e.cloud.dialogflow.cx.v3beta1.Playbook\"J" - + "\332A\004name\202\323\344\223\002=\022;/v3beta1/{name=projects/*" - + "/locations/*/agents/*/playbooks/*}\022\350\001\n\016U" - + "pdatePlaybook\0229.google.cloud.dialogflow." - + "cx.v3beta1.UpdatePlaybookRequest\032,.googl" - + "e.cloud.dialogflow.cx.v3beta1.Playbook\"m" - + "\332A\024playbook,update_mask\202\323\344\223\002P2D/v3beta1/" - + "{playbook.name=projects/*/locations/*/ag" - + "ents/*/playbooks/*}:\010playbook\022\212\002\n\025Create" - + "PlaybookVersion\022@.google.cloud.dialogflo" - + "w.cx.v3beta1.CreatePlaybookVersionReques" - + "t\0323.google.cloud.dialogflow.cx.v3beta1.P" - + "laybookVersion\"z\332A\027parent,playbook_versi" - + "on\202\323\344\223\002Z\"F/v3beta1/{parent=projects/*/lo" - + "cations/*/agents/*/playbooks/*}/versions" - + ":\020playbook_version\022\337\001\n\022GetPlaybookVersio" - + "n\022=.google.cloud.dialogflow.cx.v3beta1.G" - + "etPlaybookVersionRequest\0323.google.cloud." - + "dialogflow.cx.v3beta1.PlaybookVersion\"U\332" - + "A\004name\202\323\344\223\002H\022F/v3beta1/{name=projects/*/" - + "locations/*/agents/*/playbooks/*/version" - + "s/*}\022\362\001\n\024ListPlaybookVersions\022?.google.c" - + "loud.dialogflow.cx.v3beta1.ListPlaybookV" - + "ersionsRequest\032@.google.cloud.dialogflow" - + ".cx.v3beta1.ListPlaybookVersionsResponse" - + "\"W\332A\006parent\202\323\344\223\002H\022F/v3beta1/{parent=proj" - + "ects/*/locations/*/agents/*/playbooks/*}" - + "/versions\022\310\001\n\025DeletePlaybookVersion\022@.go" - + "ogle.cloud.dialogflow.cx.v3beta1.DeleteP" - + "laybookVersionRequest\032\026.google.protobuf." - + "Empty\"U\332A\004name\202\323\344\223\002H*F/v3beta1/{name=pro" + + "B\003\340A\001\022M\n\013instruction\030\021 \001(\01328.google.clou" + + "d.dialogflow.cx.v3beta1.Playbook.Instruc" + + "tion\022\030\n\013token_count\030\010 \001(\003B\003\340A\003\0224\n\013create" + + "_time\030\t \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\0224\n\013update_time\030\n \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\022H\n\024referenced_playboo" + + "ks\030\013 \003(\tB*\340A\003\372A$\n\"dialogflow.googleapis." + + "com/Playbook\022@\n\020referenced_flows\030\014 \003(\tB&" + + "\340A\003\372A \n\036dialogflow.googleapis.com/Flow\022@" + + "\n\020referenced_tools\030\r \003(\tB&\340A\001\372A \n\036dialog" + + "flow.googleapis.com/Tool\022U\n\022llm_model_se" + + "ttings\030\016 \001(\01324.google.cloud.dialogflow.c" + + "x.v3beta1.LlmModelSettingsB\003\340A\001\032g\n\004Step\022" + + "\016\n\004text\030\001 \001(\tH\000\022@\n\005steps\030\002 \003(\01321.google." + + "cloud.dialogflow.cx.v3beta1.Playbook.Ste" + + "pB\r\n\013instruction\032O\n\013Instruction\022@\n\005steps" + + "\030\002 \003(\01321.google.cloud.dialogflow.cx.v3be" + + "ta1.Playbook.Step:t\352Aq\n\"dialogflow.googl" + + "eapis.com/Playbook\022Kprojects/{project}/l" + + "ocations/{location}/agents/{agent}/playb" + + "ooks/{playbook}\"\265\001\n\034CreatePlaybookVersio" + + "nRequest\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\022)dialog" + + "flow.googleapis.com/PlaybookVersion\022R\n\020p" + + "laybook_version\030\002 \001(\01323.google.cloud.dia" + + "logflow.cx.v3beta1.PlaybookVersionB\003\340A\002\"" + + "\255\003\n\017PlaybookVersion\022\014\n\004name\030\001 \001(\t\022\030\n\013des" + + "cription\030\002 \001(\tB\003\340A\001\022C\n\010playbook\030\003 \001(\0132,." + + "google.cloud.dialogflow.cx.v3beta1.Playb" + + "ookB\003\340A\003\022B\n\010examples\030\004 \003(\0132+.google.clou" + + "d.dialogflow.cx.v3beta1.ExampleB\003\340A\003\0224\n\013" + + "update_time\030\005 \001(\0132\032.google.protobuf.Time" + + "stampB\003\340A\003:\262\001\352A\256\001\n)dialogflow.googleapis" + + ".com/PlaybookVersion\022^projects/{project}" + + "/locations/{location}/agents/{agent}/pla" + + "ybooks/{playbook}/versions/{version}*\020pl" + + "aybookVersions2\017playbookVersion\"\\\n\031GetPl" + + "aybookVersionRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372" + + "A+\n)dialogflow.googleapis.com/PlaybookVe" + + "rsion\"\221\001\n\033ListPlaybookVersionsRequest\022A\n" + + "\006parent\030\001 \001(\tB1\340A\002\372A+\022)dialogflow.google" + + "apis.com/PlaybookVersion\022\026\n\tpage_size\030\002 " + + "\001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"\207\001\n\034Li" + + "stPlaybookVersionsResponse\022N\n\021playbook_v" + + "ersions\030\001 \003(\01323.google.cloud.dialogflow." + + "cx.v3beta1.PlaybookVersion\022\027\n\017next_page_" + + "token\030\002 \001(\t\"_\n\034DeletePlaybookVersionRequ" + + "est\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)dialogflow.go" + + "ogleapis.com/PlaybookVersion2\305\020\n\tPlayboo" + + "ks\022\332\001\n\016CreatePlaybook\0229.google.cloud.dia" + + "logflow.cx.v3beta1.CreatePlaybookRequest" + + "\032,.google.cloud.dialogflow.cx.v3beta1.Pl" + + "aybook\"_\332A\017parent,playbook\202\323\344\223\002G\";/v3bet" + + "a1/{parent=projects/*/locations/*/agents" + + "/*}/playbooks:\010playbook\022\257\001\n\016DeletePlaybo" + + "ok\0229.google.cloud.dialogflow.cx.v3beta1." + + "DeletePlaybookRequest\032\026.google.protobuf." + + "Empty\"J\332A\004name\202\323\344\223\002=*;/v3beta1/{name=pro" + "jects/*/locations/*/agents/*/playbooks/*" - + "/versions/*}\032x\312A\031dialogflow.googleapis.c" - + "om\322AYhttps://www.googleapis.com/auth/clo" - + "ud-platform,https://www.googleapis.com/a" - + "uth/dialogflowB\236\001\n&com.google.cloud.dial" - + "ogflow.cx.v3beta1B\rPlaybookProtoP\001Z6clou" - + "d.google.com/go/dialogflow/cx/apiv3beta1" - + "/cxpb;cxpb\370\001\001\242\002\002DF\252\002\"Google.Cloud.Dialog" - + "flow.Cx.V3Beta1b\006proto3" + + "}\022\322\001\n\rListPlaybooks\0228.google.cloud.dialo" + + "gflow.cx.v3beta1.ListPlaybooksRequest\0329." + + "google.cloud.dialogflow.cx.v3beta1.ListP" + + "laybooksResponse\"L\332A\006parent\202\323\344\223\002=\022;/v3be" + + "ta1/{parent=projects/*/locations/*/agent" + + "s/*}/playbooks\022\277\001\n\013GetPlaybook\0226.google." + + "cloud.dialogflow.cx.v3beta1.GetPlaybookR" + + "equest\032,.google.cloud.dialogflow.cx.v3be" + + "ta1.Playbook\"J\332A\004name\202\323\344\223\002=\022;/v3beta1/{n" + + "ame=projects/*/locations/*/agents/*/play" + + "books/*}\022\350\001\n\016UpdatePlaybook\0229.google.clo" + + "ud.dialogflow.cx.v3beta1.UpdatePlaybookR" + + "equest\032,.google.cloud.dialogflow.cx.v3be" + + "ta1.Playbook\"m\332A\024playbook,update_mask\202\323\344" + + "\223\002P2D/v3beta1/{playbook.name=projects/*/" + + "locations/*/agents/*/playbooks/*}:\010playb" + + "ook\022\212\002\n\025CreatePlaybookVersion\022@.google.c" + + "loud.dialogflow.cx.v3beta1.CreatePlayboo" + + "kVersionRequest\0323.google.cloud.dialogflo" + + "w.cx.v3beta1.PlaybookVersion\"z\332A\027parent," + + "playbook_version\202\323\344\223\002Z\"F/v3beta1/{parent" + + "=projects/*/locations/*/agents/*/playboo" + + "ks/*}/versions:\020playbook_version\022\337\001\n\022Get" + + "PlaybookVersion\022=.google.cloud.dialogflo" + + "w.cx.v3beta1.GetPlaybookVersionRequest\0323" + + ".google.cloud.dialogflow.cx.v3beta1.Play" + + "bookVersion\"U\332A\004name\202\323\344\223\002H\022F/v3beta1/{na" + + "me=projects/*/locations/*/agents/*/playb" + + "ooks/*/versions/*}\022\362\001\n\024ListPlaybookVersi" + + "ons\022?.google.cloud.dialogflow.cx.v3beta1" + + ".ListPlaybookVersionsRequest\032@.google.cl" + + "oud.dialogflow.cx.v3beta1.ListPlaybookVe" + + "rsionsResponse\"W\332A\006parent\202\323\344\223\002H\022F/v3beta" + + "1/{parent=projects/*/locations/*/agents/" + + "*/playbooks/*}/versions\022\310\001\n\025DeletePlaybo" + + "okVersion\022@.google.cloud.dialogflow.cx.v" + + "3beta1.DeletePlaybookVersionRequest\032\026.go" + + "ogle.protobuf.Empty\"U\332A\004name\202\323\344\223\002H*F/v3b" + + "eta1/{name=projects/*/locations/*/agents" + + "/*/playbooks/*/versions/*}\032x\312A\031dialogflo" + + "w.googleapis.com\322AYhttps://www.googleapi" + + "s.com/auth/cloud-platform,https://www.go" + + "ogleapis.com/auth/dialogflowB\236\001\n&com.goo" + + "gle.cloud.dialogflow.cx.v3beta1B\rPlayboo" + + "kProtoP\001Z6cloud.google.com/go/dialogflow" + + "/cx/apiv3beta1/cxpb;cxpb\370\001\001\242\002\002DF\252\002\"Googl" + + "e.Cloud.Dialogflow.Cx.V3Beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -307,7 +313,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Goal", "InputParameterDefinitions", "OutputParameterDefinitions", - "Steps", + "Instruction", "TokenCount", "CreateTime", "UpdateTime", @@ -326,6 +332,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Text", "Steps", "Instruction", }); + internal_static_google_cloud_dialogflow_cx_v3beta1_Playbook_Instruction_descriptor = + internal_static_google_cloud_dialogflow_cx_v3beta1_Playbook_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_dialogflow_cx_v3beta1_Playbook_Instruction_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3beta1_Playbook_Instruction_descriptor, + new java.lang.String[] { + "Steps", + }); internal_static_google_cloud_dialogflow_cx_v3beta1_CreatePlaybookVersionRequest_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_google_cloud_dialogflow_cx_v3beta1_CreatePlaybookVersionRequest_fieldAccessorTable = diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ResponseMessage.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ResponseMessage.java index 5888048f0e15..759574bee806 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ResponseMessage.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ResponseMessage.java @@ -8526,6 +8526,7 @@ public enum MessageCase MIXED_AUDIO(13), TELEPHONY_TRANSFER_CALL(18), KNOWLEDGE_INFO_CARD(20), + TOOL_CALL(22), MESSAGE_NOT_SET(0); private final int value; @@ -8564,6 +8565,8 @@ public static MessageCase forNumber(int value) { return TELEPHONY_TRANSFER_CALL; case 20: return KNOWLEDGE_INFO_CARD; + case 22: + return TOOL_CALL; case 0: return MESSAGE_NOT_SET; default: @@ -9207,6 +9210,60 @@ public boolean hasKnowledgeInfoCard() { .getDefaultInstance(); } + public static final int TOOL_CALL_FIELD_NUMBER = 22; + /** + * + * + *
+   * Returns the definition of a tool call that should be executed by the
+   * client.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.ToolCall tool_call = 22; + * + * @return Whether the toolCall field is set. + */ + @java.lang.Override + public boolean hasToolCall() { + return messageCase_ == 22; + } + /** + * + * + *
+   * Returns the definition of a tool call that should be executed by the
+   * client.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.ToolCall tool_call = 22; + * + * @return The toolCall. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.ToolCall getToolCall() { + if (messageCase_ == 22) { + return (com.google.cloud.dialogflow.cx.v3beta1.ToolCall) message_; + } + return com.google.cloud.dialogflow.cx.v3beta1.ToolCall.getDefaultInstance(); + } + /** + * + * + *
+   * Returns the definition of a tool call that should be executed by the
+   * client.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.ToolCall tool_call = 22; + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.ToolCallOrBuilder getToolCallOrBuilder() { + if (messageCase_ == 22) { + return (com.google.cloud.dialogflow.cx.v3beta1.ToolCall) message_; + } + return com.google.cloud.dialogflow.cx.v3beta1.ToolCall.getDefaultInstance(); + } + public static final int CHANNEL_FIELD_NUMBER = 19; @SuppressWarnings("serial") @@ -9321,6 +9378,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 20, (com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard) message_); } + if (messageCase_ == 22) { + output.writeMessage(22, (com.google.cloud.dialogflow.cx.v3beta1.ToolCall) message_); + } getUnknownFields().writeTo(output); } @@ -9389,6 +9449,11 @@ public int getSerializedSize() { 20, (com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCard) message_); } + if (messageCase_ == 22) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 22, (com.google.cloud.dialogflow.cx.v3beta1.ToolCall) message_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -9438,6 +9503,9 @@ public boolean equals(final java.lang.Object obj) { case 20: if (!getKnowledgeInfoCard().equals(other.getKnowledgeInfoCard())) return false; break; + case 22: + if (!getToolCall().equals(other.getToolCall())) return false; + break; case 0: default: } @@ -9495,6 +9563,10 @@ public int hashCode() { hash = (37 * hash) + KNOWLEDGE_INFO_CARD_FIELD_NUMBER; hash = (53 * hash) + getKnowledgeInfoCard().hashCode(); break; + case 22: + hash = (37 * hash) + TOOL_CALL_FIELD_NUMBER; + hash = (53 * hash) + getToolCall().hashCode(); + break; case 0: default: } @@ -9684,6 +9756,9 @@ public Builder clear() { if (knowledgeInfoCardBuilder_ != null) { knowledgeInfoCardBuilder_.clear(); } + if (toolCallBuilder_ != null) { + toolCallBuilder_.clear(); + } channel_ = ""; messageCase_ = 0; message_ = null; @@ -9724,7 +9799,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage buildPartial() { private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.channel_ = channel_; } } @@ -9762,6 +9837,9 @@ private void buildPartialOneofs(com.google.cloud.dialogflow.cx.v3beta1.ResponseM if (messageCase_ == 20 && knowledgeInfoCardBuilder_ != null) { result.message_ = knowledgeInfoCardBuilder_.build(); } + if (messageCase_ == 22 && toolCallBuilder_ != null) { + result.message_ = toolCallBuilder_.build(); + } } @java.lang.Override @@ -9812,7 +9890,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage return this; if (!other.getChannel().isEmpty()) { channel_ = other.channel_; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); } switch (other.getMessageCase()) { @@ -9866,6 +9944,11 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage mergeKnowledgeInfoCard(other.getKnowledgeInfoCard()); break; } + case TOOL_CALL: + { + mergeToolCall(other.getToolCall()); + break; + } case MESSAGE_NOT_SET: { break; @@ -9957,7 +10040,7 @@ public Builder mergeFrom( case 154: { channel_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 154 case 162: @@ -9967,6 +10050,12 @@ public Builder mergeFrom( messageCase_ = 20; break; } // case 162 + case 178: + { + input.readMessage(getToolCallFieldBuilder().getBuilder(), extensionRegistry); + messageCase_ = 22; + break; + } // case 178 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -12475,6 +12564,224 @@ public Builder clearKnowledgeInfoCard() { return knowledgeInfoCardBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.ToolCall, + com.google.cloud.dialogflow.cx.v3beta1.ToolCall.Builder, + com.google.cloud.dialogflow.cx.v3beta1.ToolCallOrBuilder> + toolCallBuilder_; + /** + * + * + *
+     * Returns the definition of a tool call that should be executed by the
+     * client.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.ToolCall tool_call = 22; + * + * @return Whether the toolCall field is set. + */ + @java.lang.Override + public boolean hasToolCall() { + return messageCase_ == 22; + } + /** + * + * + *
+     * Returns the definition of a tool call that should be executed by the
+     * client.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.ToolCall tool_call = 22; + * + * @return The toolCall. + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.ToolCall getToolCall() { + if (toolCallBuilder_ == null) { + if (messageCase_ == 22) { + return (com.google.cloud.dialogflow.cx.v3beta1.ToolCall) message_; + } + return com.google.cloud.dialogflow.cx.v3beta1.ToolCall.getDefaultInstance(); + } else { + if (messageCase_ == 22) { + return toolCallBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.cx.v3beta1.ToolCall.getDefaultInstance(); + } + } + /** + * + * + *
+     * Returns the definition of a tool call that should be executed by the
+     * client.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.ToolCall tool_call = 22; + */ + public Builder setToolCall(com.google.cloud.dialogflow.cx.v3beta1.ToolCall value) { + if (toolCallBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + message_ = value; + onChanged(); + } else { + toolCallBuilder_.setMessage(value); + } + messageCase_ = 22; + return this; + } + /** + * + * + *
+     * Returns the definition of a tool call that should be executed by the
+     * client.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.ToolCall tool_call = 22; + */ + public Builder setToolCall( + com.google.cloud.dialogflow.cx.v3beta1.ToolCall.Builder builderForValue) { + if (toolCallBuilder_ == null) { + message_ = builderForValue.build(); + onChanged(); + } else { + toolCallBuilder_.setMessage(builderForValue.build()); + } + messageCase_ = 22; + return this; + } + /** + * + * + *
+     * Returns the definition of a tool call that should be executed by the
+     * client.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.ToolCall tool_call = 22; + */ + public Builder mergeToolCall(com.google.cloud.dialogflow.cx.v3beta1.ToolCall value) { + if (toolCallBuilder_ == null) { + if (messageCase_ == 22 + && message_ != com.google.cloud.dialogflow.cx.v3beta1.ToolCall.getDefaultInstance()) { + message_ = + com.google.cloud.dialogflow.cx.v3beta1.ToolCall.newBuilder( + (com.google.cloud.dialogflow.cx.v3beta1.ToolCall) message_) + .mergeFrom(value) + .buildPartial(); + } else { + message_ = value; + } + onChanged(); + } else { + if (messageCase_ == 22) { + toolCallBuilder_.mergeFrom(value); + } else { + toolCallBuilder_.setMessage(value); + } + } + messageCase_ = 22; + return this; + } + /** + * + * + *
+     * Returns the definition of a tool call that should be executed by the
+     * client.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.ToolCall tool_call = 22; + */ + public Builder clearToolCall() { + if (toolCallBuilder_ == null) { + if (messageCase_ == 22) { + messageCase_ = 0; + message_ = null; + onChanged(); + } + } else { + if (messageCase_ == 22) { + messageCase_ = 0; + message_ = null; + } + toolCallBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Returns the definition of a tool call that should be executed by the
+     * client.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.ToolCall tool_call = 22; + */ + public com.google.cloud.dialogflow.cx.v3beta1.ToolCall.Builder getToolCallBuilder() { + return getToolCallFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Returns the definition of a tool call that should be executed by the
+     * client.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.ToolCall tool_call = 22; + */ + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.ToolCallOrBuilder getToolCallOrBuilder() { + if ((messageCase_ == 22) && (toolCallBuilder_ != null)) { + return toolCallBuilder_.getMessageOrBuilder(); + } else { + if (messageCase_ == 22) { + return (com.google.cloud.dialogflow.cx.v3beta1.ToolCall) message_; + } + return com.google.cloud.dialogflow.cx.v3beta1.ToolCall.getDefaultInstance(); + } + } + /** + * + * + *
+     * Returns the definition of a tool call that should be executed by the
+     * client.
+     * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.ToolCall tool_call = 22; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.ToolCall, + com.google.cloud.dialogflow.cx.v3beta1.ToolCall.Builder, + com.google.cloud.dialogflow.cx.v3beta1.ToolCallOrBuilder> + getToolCallFieldBuilder() { + if (toolCallBuilder_ == null) { + if (!(messageCase_ == 22)) { + message_ = com.google.cloud.dialogflow.cx.v3beta1.ToolCall.getDefaultInstance(); + } + toolCallBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dialogflow.cx.v3beta1.ToolCall, + com.google.cloud.dialogflow.cx.v3beta1.ToolCall.Builder, + com.google.cloud.dialogflow.cx.v3beta1.ToolCallOrBuilder>( + (com.google.cloud.dialogflow.cx.v3beta1.ToolCall) message_, + getParentForChildren(), + isClean()); + message_ = null; + } + messageCase_ = 22; + onChanged(); + return toolCallBuilder_; + } + private java.lang.Object channel_ = ""; /** * @@ -12546,7 +12853,7 @@ public Builder setChannel(java.lang.String value) { throw new NullPointerException(); } channel_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -12566,7 +12873,7 @@ public Builder setChannel(java.lang.String value) { */ public Builder clearChannel() { channel_ = getDefaultInstance().getChannel(); - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } @@ -12591,7 +12898,7 @@ public Builder setChannelBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); channel_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ResponseMessageOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ResponseMessageOrBuilder.java index 549436a1e2a4..abe33a4137a9 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ResponseMessageOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ResponseMessageOrBuilder.java @@ -473,6 +473,44 @@ public interface ResponseMessageOrBuilder com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.KnowledgeInfoCardOrBuilder getKnowledgeInfoCardOrBuilder(); + /** + * + * + *
+   * Returns the definition of a tool call that should be executed by the
+   * client.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.ToolCall tool_call = 22; + * + * @return Whether the toolCall field is set. + */ + boolean hasToolCall(); + /** + * + * + *
+   * Returns the definition of a tool call that should be executed by the
+   * client.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.ToolCall tool_call = 22; + * + * @return The toolCall. + */ + com.google.cloud.dialogflow.cx.v3beta1.ToolCall getToolCall(); + /** + * + * + *
+   * Returns the definition of a tool call that should be executed by the
+   * client.
+   * 
+ * + * .google.cloud.dialogflow.cx.v3beta1.ToolCall tool_call = 22; + */ + com.google.cloud.dialogflow.cx.v3beta1.ToolCallOrBuilder getToolCallOrBuilder(); + /** * * diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ResponseMessageProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ResponseMessageProto.java index 600f8e7136da..20c4643c7be8 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ResponseMessageProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ResponseMessageProto.java @@ -84,60 +84,64 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n9google/cloud/dialogflow/cx/v3beta1/res" + "ponse_message.proto\022\"google.cloud.dialog" + "flow.cx.v3beta1\032\037google/api/field_behavi" - + "or.proto\032\034google/protobuf/struct.proto\"\344" - + "\014\n\017ResponseMessage\022H\n\004text\030\001 \001(\01328.googl" - + "e.cloud.dialogflow.cx.v3beta1.ResponseMe" - + "ssage.TextH\000\022*\n\007payload\030\002 \001(\0132\027.google.p" - + "rotobuf.StructH\000\022g\n\024conversation_success" - + "\030\t \001(\0132G.google.cloud.dialogflow.cx.v3be" - + "ta1.ResponseMessage.ConversationSuccessH" - + "\000\022`\n\021output_audio_text\030\010 \001(\0132C.google.cl" - + "oud.dialogflow.cx.v3beta1.ResponseMessag" - + "e.OutputAudioTextH\000\022b\n\022live_agent_handof" - + "f\030\n \001(\0132D.google.cloud.dialogflow.cx.v3b" - + "eta1.ResponseMessage.LiveAgentHandoffH\000\022" - + "b\n\017end_interaction\030\013 \001(\0132B.google.cloud." - + "dialogflow.cx.v3beta1.ResponseMessage.En" - + "dInteractionB\003\340A\003H\000\022S\n\nplay_audio\030\014 \001(\0132" - + "=.google.cloud.dialogflow.cx.v3beta1.Res" - + "ponseMessage.PlayAudioH\000\022Z\n\013mixed_audio\030" - + "\r \001(\0132>.google.cloud.dialogflow.cx.v3bet" - + "a1.ResponseMessage.MixedAudioB\003\340A\003H\000\022l\n\027" - + "telephony_transfer_call\030\022 \001(\0132I.google.c" - + "loud.dialogflow.cx.v3beta1.ResponseMessa" - + "ge.TelephonyTransferCallH\000\022d\n\023knowledge_" - + "info_card\030\024 \001(\0132E.google.cloud.dialogflo" - + "w.cx.v3beta1.ResponseMessage.KnowledgeIn" - + "foCardH\000\022\017\n\007channel\030\023 \001(\t\032C\n\004Text\022\021\n\004tex" - + "t\030\001 \003(\tB\003\340A\002\022(\n\033allow_playback_interrupt" - + "ion\030\002 \001(\010B\003\340A\003\032=\n\020LiveAgentHandoff\022)\n\010me" - + "tadata\030\001 \001(\0132\027.google.protobuf.Struct\032@\n" - + "\023ConversationSuccess\022)\n\010metadata\030\001 \001(\0132\027" - + ".google.protobuf.Struct\032e\n\017OutputAudioTe" - + "xt\022\016\n\004text\030\001 \001(\tH\000\022\016\n\004ssml\030\002 \001(\tH\000\022(\n\033al" - + "low_playback_interruption\030\003 \001(\010B\003\340A\003B\010\n\006" - + "source\032\020\n\016EndInteraction\032M\n\tPlayAudio\022\026\n" - + "\taudio_uri\030\001 \001(\tB\003\340A\002\022(\n\033allow_playback_" - + "interruption\030\002 \001(\010B\003\340A\003\032\306\001\n\nMixedAudio\022X" - + "\n\010segments\030\001 \003(\0132F.google.cloud.dialogfl" - + "ow.cx.v3beta1.ResponseMessage.MixedAudio" - + ".Segment\032^\n\007Segment\022\017\n\005audio\030\001 \001(\014H\000\022\r\n\003" - + "uri\030\002 \001(\tH\000\022(\n\033allow_playback_interrupti" - + "on\030\003 \001(\010B\003\340A\003B\t\n\007content\032;\n\025TelephonyTra" - + "nsferCall\022\026\n\014phone_number\030\001 \001(\tH\000B\n\n\010end" - + "point\032\023\n\021KnowledgeInfoCardB\t\n\007messageB\316\001" - + "\n&com.google.cloud.dialogflow.cx.v3beta1" - + "B\024ResponseMessageProtoP\001Z6cloud.google.c" - + "om/go/dialogflow/cx/apiv3beta1/cxpb;cxpb" - + "\370\001\001\242\002\002DF\252\002\"Google.Cloud.Dialogflow.Cx.V3" - + "Beta1\352\002&Google::Cloud::Dialogflow::CX::V" - + "3beta1b\006proto3" + + "or.proto\0322google/cloud/dialogflow/cx/v3b" + + "eta1/tool_call.proto\032\034google/protobuf/st" + + "ruct.proto\"\247\r\n\017ResponseMessage\022H\n\004text\030\001" + + " \001(\01328.google.cloud.dialogflow.cx.v3beta" + + "1.ResponseMessage.TextH\000\022*\n\007payload\030\002 \001(" + + "\0132\027.google.protobuf.StructH\000\022g\n\024conversa" + + "tion_success\030\t \001(\0132G.google.cloud.dialog" + + "flow.cx.v3beta1.ResponseMessage.Conversa" + + "tionSuccessH\000\022`\n\021output_audio_text\030\010 \001(\013" + + "2C.google.cloud.dialogflow.cx.v3beta1.Re" + + "sponseMessage.OutputAudioTextH\000\022b\n\022live_" + + "agent_handoff\030\n \001(\0132D.google.cloud.dialo" + + "gflow.cx.v3beta1.ResponseMessage.LiveAge" + + "ntHandoffH\000\022b\n\017end_interaction\030\013 \001(\0132B.g" + + "oogle.cloud.dialogflow.cx.v3beta1.Respon" + + "seMessage.EndInteractionB\003\340A\003H\000\022S\n\nplay_" + + "audio\030\014 \001(\0132=.google.cloud.dialogflow.cx" + + ".v3beta1.ResponseMessage.PlayAudioH\000\022Z\n\013" + + "mixed_audio\030\r \001(\0132>.google.cloud.dialogf" + + "low.cx.v3beta1.ResponseMessage.MixedAudi" + + "oB\003\340A\003H\000\022l\n\027telephony_transfer_call\030\022 \001(" + + "\0132I.google.cloud.dialogflow.cx.v3beta1.R" + + "esponseMessage.TelephonyTransferCallH\000\022d" + + "\n\023knowledge_info_card\030\024 \001(\0132E.google.clo" + + "ud.dialogflow.cx.v3beta1.ResponseMessage" + + ".KnowledgeInfoCardH\000\022A\n\ttool_call\030\026 \001(\0132" + + ",.google.cloud.dialogflow.cx.v3beta1.Too" + + "lCallH\000\022\017\n\007channel\030\023 \001(\t\032C\n\004Text\022\021\n\004text" + + "\030\001 \003(\tB\003\340A\002\022(\n\033allow_playback_interrupti" + + "on\030\002 \001(\010B\003\340A\003\032=\n\020LiveAgentHandoff\022)\n\010met" + + "adata\030\001 \001(\0132\027.google.protobuf.Struct\032@\n\023" + + "ConversationSuccess\022)\n\010metadata\030\001 \001(\0132\027." + + "google.protobuf.Struct\032e\n\017OutputAudioTex" + + "t\022\016\n\004text\030\001 \001(\tH\000\022\016\n\004ssml\030\002 \001(\tH\000\022(\n\033all" + + "ow_playback_interruption\030\003 \001(\010B\003\340A\003B\010\n\006s" + + "ource\032\020\n\016EndInteraction\032M\n\tPlayAudio\022\026\n\t" + + "audio_uri\030\001 \001(\tB\003\340A\002\022(\n\033allow_playback_i" + + "nterruption\030\002 \001(\010B\003\340A\003\032\306\001\n\nMixedAudio\022X\n" + + "\010segments\030\001 \003(\0132F.google.cloud.dialogflo" + + "w.cx.v3beta1.ResponseMessage.MixedAudio." + + "Segment\032^\n\007Segment\022\017\n\005audio\030\001 \001(\014H\000\022\r\n\003u" + + "ri\030\002 \001(\tH\000\022(\n\033allow_playback_interruptio" + + "n\030\003 \001(\010B\003\340A\003B\t\n\007content\032;\n\025TelephonyTran" + + "sferCall\022\026\n\014phone_number\030\001 \001(\tH\000B\n\n\010endp" + + "oint\032\023\n\021KnowledgeInfoCardB\t\n\007messageB\316\001\n" + + "&com.google.cloud.dialogflow.cx.v3beta1B" + + "\024ResponseMessageProtoP\001Z6cloud.google.co" + + "m/go/dialogflow/cx/apiv3beta1/cxpb;cxpb\370" + + "\001\001\242\002\002DF\252\002\"Google.Cloud.Dialogflow.Cx.V3B" + + "eta1\352\002&Google::Cloud::Dialogflow::CX::V3" + + "beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.dialogflow.cx.v3beta1.ToolCallProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), }); internal_static_google_cloud_dialogflow_cx_v3beta1_ResponseMessage_descriptor = @@ -156,6 +160,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MixedAudio", "TelephonyTransferCall", "KnowledgeInfoCard", + "ToolCall", "Channel", "Message", }); @@ -261,6 +266,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.dialogflow.cx.v3beta1.ToolCallProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettings.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettings.java index 537a3d9cac30..5511dd64b845 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettings.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettings.java @@ -746,6 +746,20 @@ public interface AudioExportSettingsOrBuilder */ com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.AudioExportSettings.AudioFormat getAudioFormat(); + + /** + * + * + *
+     * Whether to store TTS audio. By default, TTS audio from the virtual agent
+     * is not exported.
+     * 
+ * + * bool store_tts_audio = 6; + * + * @return The storeTtsAudio. + */ + boolean getStoreTtsAudio(); } /** * @@ -1155,6 +1169,25 @@ public int getAudioFormatValue() { : result; } + public static final int STORE_TTS_AUDIO_FIELD_NUMBER = 6; + private boolean storeTtsAudio_ = false; + /** + * + * + *
+     * Whether to store TTS audio. By default, TTS audio from the virtual agent
+     * is not exported.
+     * 
+ * + * bool store_tts_audio = 6; + * + * @return The storeTtsAudio. + */ + @java.lang.Override + public boolean getStoreTtsAudio() { + return storeTtsAudio_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1184,6 +1217,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(4, audioFormat_); } + if (storeTtsAudio_ != false) { + output.writeBool(6, storeTtsAudio_); + } getUnknownFields().writeTo(output); } @@ -1208,6 +1244,9 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, audioFormat_); } + if (storeTtsAudio_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, storeTtsAudio_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1229,6 +1268,7 @@ public boolean equals(final java.lang.Object obj) { if (!getAudioExportPattern().equals(other.getAudioExportPattern())) return false; if (getEnableAudioRedaction() != other.getEnableAudioRedaction()) return false; if (audioFormat_ != other.audioFormat_) return false; + if (getStoreTtsAudio() != other.getStoreTtsAudio()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1248,6 +1288,8 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableAudioRedaction()); hash = (37 * hash) + AUDIO_FORMAT_FIELD_NUMBER; hash = (53 * hash) + audioFormat_; + hash = (37 * hash) + STORE_TTS_AUDIO_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getStoreTtsAudio()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1402,6 +1444,7 @@ public Builder clear() { audioExportPattern_ = ""; enableAudioRedaction_ = false; audioFormat_ = 0; + storeTtsAudio_ = false; return this; } @@ -1455,6 +1498,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000008) != 0)) { result.audioFormat_ = audioFormat_; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.storeTtsAudio_ = storeTtsAudio_; + } } @java.lang.Override @@ -1526,6 +1572,9 @@ public Builder mergeFrom( if (other.audioFormat_ != 0) { setAudioFormatValue(other.getAudioFormatValue()); } + if (other.getStoreTtsAudio() != false) { + setStoreTtsAudio(other.getStoreTtsAudio()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1576,6 +1625,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 32 + case 48: + { + storeTtsAudio_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 48 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1999,6 +2054,62 @@ public Builder clearAudioFormat() { return this; } + private boolean storeTtsAudio_; + /** + * + * + *
+       * Whether to store TTS audio. By default, TTS audio from the virtual agent
+       * is not exported.
+       * 
+ * + * bool store_tts_audio = 6; + * + * @return The storeTtsAudio. + */ + @java.lang.Override + public boolean getStoreTtsAudio() { + return storeTtsAudio_; + } + /** + * + * + *
+       * Whether to store TTS audio. By default, TTS audio from the virtual agent
+       * is not exported.
+       * 
+ * + * bool store_tts_audio = 6; + * + * @param value The storeTtsAudio to set. + * @return This builder for chaining. + */ + public Builder setStoreTtsAudio(boolean value) { + + storeTtsAudio_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+       * Whether to store TTS audio. By default, TTS audio from the virtual agent
+       * is not exported.
+       * 
+ * + * bool store_tts_audio = 6; + * + * @return This builder for chaining. + */ + public Builder clearStoreTtsAudio() { + bitField0_ = (bitField0_ & ~0x00000010); + storeTtsAudio_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsProto.java index eb1b4e844780..c0ea012e4370 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsProto.java @@ -100,7 +100,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".cloud.dialogflow.cx.v3beta1.SecuritySet" + "tingsB\003\340A\002\"a\n\035DeleteSecuritySettingsRequ" + "est\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*dialogflow.go" - + "ogleapis.com/SecuritySettings\"\361\014\n\020Securi" + + "ogleapis.com/SecuritySettings\"\212\r\n\020Securi" + "tySettings\022\014\n\004name\030\001 \001(\t\022\031\n\014display_name" + "\030\002 \001(\tB\003\340A\002\022b\n\022redaction_strategy\030\003 \001(\0162" + "F.google.cloud.dialogflow.cx.v3beta1.Sec" @@ -121,77 +121,78 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "a1.SecuritySettings.AudioExportSettings\022" + "m\n\030insights_export_settings\030\r \001(\0132K.goog" + "le.cloud.dialogflow.cx.v3beta1.SecurityS" - + "ettings.InsightsExportSettings\032\235\002\n\023Audio" + + "ettings.InsightsExportSettings\032\266\002\n\023Audio" + "ExportSettings\022\022\n\ngcs_bucket\030\001 \001(\t\022\034\n\024au" + "dio_export_pattern\030\002 \001(\t\022\036\n\026enable_audio" + "_redaction\030\003 \001(\010\022j\n\014audio_format\030\004 \001(\0162T" + ".google.cloud.dialogflow.cx.v3beta1.Secu" + "ritySettings.AudioExportSettings.AudioFo" - + "rmat\"H\n\013AudioFormat\022\034\n\030AUDIO_FORMAT_UNSP" - + "ECIFIED\020\000\022\t\n\005MULAW\020\001\022\007\n\003MP3\020\002\022\007\n\003OGG\020\003\0328" - + "\n\026InsightsExportSettings\022\036\n\026enable_insig" - + "hts_export\030\001 \001(\010\"P\n\021RedactionStrategy\022\"\n" - + "\036REDACTION_STRATEGY_UNSPECIFIED\020\000\022\027\n\023RED" - + "ACT_WITH_SERVICE\020\001\"J\n\016RedactionScope\022\037\n\033" - + "REDACTION_SCOPE_UNSPECIFIED\020\000\022\027\n\023REDACT_" - + "DISK_STORAGE\020\002\"V\n\021RetentionStrategy\022\"\n\036R" - + "ETENTION_STRATEGY_UNSPECIFIED\020\000\022\035\n\031REMOV" - + "E_AFTER_CONVERSATION\020\001\"H\n\rPurgeDataType\022" - + "\037\n\033PURGE_DATA_TYPE_UNSPECIFIED\020\000\022\026\n\022DIAL" - + "OGFLOW_HISTORY\020\001:}\352Az\n*dialogflow.google" - + "apis.com/SecuritySettings\022Lprojects/{pro" - + "ject}/locations/{location}/securitySetti" - + "ngs/{security_settings}B\020\n\016data_retentio" - + "n2\265\n\n\027SecuritySettingsService\022\202\002\n\026Create" - + "SecuritySettings\022A.google.cloud.dialogfl" - + "ow.cx.v3beta1.CreateSecuritySettingsRequ" + + "rmat\022\027\n\017store_tts_audio\030\006 \001(\010\"H\n\013AudioFo" + + "rmat\022\034\n\030AUDIO_FORMAT_UNSPECIFIED\020\000\022\t\n\005MU" + + "LAW\020\001\022\007\n\003MP3\020\002\022\007\n\003OGG\020\003\0328\n\026InsightsExpor" + + "tSettings\022\036\n\026enable_insights_export\030\001 \001(" + + "\010\"P\n\021RedactionStrategy\022\"\n\036REDACTION_STRA" + + "TEGY_UNSPECIFIED\020\000\022\027\n\023REDACT_WITH_SERVIC" + + "E\020\001\"J\n\016RedactionScope\022\037\n\033REDACTION_SCOPE" + + "_UNSPECIFIED\020\000\022\027\n\023REDACT_DISK_STORAGE\020\002\"" + + "V\n\021RetentionStrategy\022\"\n\036RETENTION_STRATE" + + "GY_UNSPECIFIED\020\000\022\035\n\031REMOVE_AFTER_CONVERS" + + "ATION\020\001\"H\n\rPurgeDataType\022\037\n\033PURGE_DATA_T" + + "YPE_UNSPECIFIED\020\000\022\026\n\022DIALOGFLOW_HISTORY\020" + + "\001:}\352Az\n*dialogflow.googleapis.com/Securi" + + "tySettings\022Lprojects/{project}/locations" + + "/{location}/securitySettings/{security_s" + + "ettings}B\020\n\016data_retention2\265\n\n\027SecurityS" + + "ettingsService\022\202\002\n\026CreateSecuritySetting" + + "s\022A.google.cloud.dialogflow.cx.v3beta1.C" + + "reateSecuritySettingsRequest\0324.google.cl" + + "oud.dialogflow.cx.v3beta1.SecuritySettin" + + "gs\"o\332A\030parent,security_settings\202\323\344\223\002N\"9/" + + "v3beta1/{parent=projects/*/locations/*}/" + + "securitySettings:\021security_settings\022\325\001\n\023" + + "GetSecuritySettings\022>.google.cloud.dialo" + + "gflow.cx.v3beta1.GetSecuritySettingsRequ" + "est\0324.google.cloud.dialogflow.cx.v3beta1" - + ".SecuritySettings\"o\332A\030parent,security_se" - + "ttings\202\323\344\223\002N\"9/v3beta1/{parent=projects/" - + "*/locations/*}/securitySettings:\021securit" - + "y_settings\022\325\001\n\023GetSecuritySettings\022>.goo" - + "gle.cloud.dialogflow.cx.v3beta1.GetSecur" - + "itySettingsRequest\0324.google.cloud.dialog" - + "flow.cx.v3beta1.SecuritySettings\"H\332A\004nam" - + "e\202\323\344\223\002;\0229/v3beta1/{name=projects/*/locat" - + "ions/*/securitySettings/*}\022\232\002\n\026UpdateSec" - + "uritySettings\022A.google.cloud.dialogflow." - + "cx.v3beta1.UpdateSecuritySettingsRequest" - + "\0324.google.cloud.dialogflow.cx.v3beta1.Se" - + "curitySettings\"\206\001\332A\035security_settings,up" - + "date_mask\202\323\344\223\002`2K/v3beta1/{security_sett" - + "ings.name=projects/*/locations/*/securit" - + "ySettings/*}:\021security_settings\022\345\001\n\024List" - + "SecuritySettings\022?.google.cloud.dialogfl" - + "ow.cx.v3beta1.ListSecuritySettingsReques" - + "t\032@.google.cloud.dialogflow.cx.v3beta1.L" - + "istSecuritySettingsResponse\"J\332A\006parent\202\323" - + "\344\223\002;\0229/v3beta1/{parent=projects/*/locati" - + "ons/*}/securitySettings\022\275\001\n\026DeleteSecuri" - + "tySettings\022A.google.cloud.dialogflow.cx." - + "v3beta1.DeleteSecuritySettingsRequest\032\026." - + "google.protobuf.Empty\"H\332A\004name\202\323\344\223\002;*9/v" - + "3beta1/{name=projects/*/locations/*/secu" - + "ritySettings/*}\032x\312A\031dialogflow.googleapi" - + "s.com\322AYhttps://www.googleapis.com/auth/" - + "cloud-platform,https://www.googleapis.co" - + "m/auth/dialogflowB\366\004\n&com.google.cloud.d" - + "ialogflow.cx.v3beta1B\025SecuritySettingsPr" - + "otoP\001Z6cloud.google.com/go/dialogflow/cx" - + "/apiv3beta1/cxpb;cxpb\370\001\001\242\002\002DF\252\002\"Google.C" - + "loud.Dialogflow.Cx.V3Beta1\352\002&Google::Clo" - + "ud::Dialogflow::CX::V3beta1\352A\310\001\n\"dlp.goo" - + "gleapis.com/InspectTemplate\022Uorganizatio" - + "ns/{organization}/locations/{location}/i" - + "nspectTemplates/{inspect_template}\022Kproj" - + "ects/{project}/locations/{location}/insp" - + "ectTemplates/{inspect_template}\352A\327\001\n%dlp" - + ".googleapis.com/DeidentifyTemplate\022[orga" - + "nizations/{organization}/locations/{loca" - + "tion}/deidentifyTemplates/{deidentify_te" - + "mplate}\022Qprojects/{project}/locations/{l" - + "ocation}/deidentifyTemplates/{deidentify" - + "_template}b\006proto3" + + ".SecuritySettings\"H\332A\004name\202\323\344\223\002;\0229/v3bet" + + "a1/{name=projects/*/locations/*/security" + + "Settings/*}\022\232\002\n\026UpdateSecuritySettings\022A" + + ".google.cloud.dialogflow.cx.v3beta1.Upda" + + "teSecuritySettingsRequest\0324.google.cloud" + + ".dialogflow.cx.v3beta1.SecuritySettings\"" + + "\206\001\332A\035security_settings,update_mask\202\323\344\223\002`" + + "2K/v3beta1/{security_settings.name=proje" + + "cts/*/locations/*/securitySettings/*}:\021s" + + "ecurity_settings\022\345\001\n\024ListSecuritySetting" + + "s\022?.google.cloud.dialogflow.cx.v3beta1.L" + + "istSecuritySettingsRequest\032@.google.clou" + + "d.dialogflow.cx.v3beta1.ListSecuritySett" + + "ingsResponse\"J\332A\006parent\202\323\344\223\002;\0229/v3beta1/" + + "{parent=projects/*/locations/*}/security" + + "Settings\022\275\001\n\026DeleteSecuritySettings\022A.go" + + "ogle.cloud.dialogflow.cx.v3beta1.DeleteS" + + "ecuritySettingsRequest\032\026.google.protobuf" + + ".Empty\"H\332A\004name\202\323\344\223\002;*9/v3beta1/{name=pr" + + "ojects/*/locations/*/securitySettings/*}" + + "\032x\312A\031dialogflow.googleapis.com\322AYhttps:/" + + "/www.googleapis.com/auth/cloud-platform," + + "https://www.googleapis.com/auth/dialogfl" + + "owB\366\004\n&com.google.cloud.dialogflow.cx.v3" + + "beta1B\025SecuritySettingsProtoP\001Z6cloud.go" + + "ogle.com/go/dialogflow/cx/apiv3beta1/cxp" + + "b;cxpb\370\001\001\242\002\002DF\252\002\"Google.Cloud.Dialogflow" + + ".Cx.V3Beta1\352\002&Google::Cloud::Dialogflow:" + + ":CX::V3beta1\352A\310\001\n\"dlp.googleapis.com/Ins" + + "pectTemplate\022Uorganizations/{organizatio" + + "n}/locations/{location}/inspectTemplates" + + "/{inspect_template}\022Kprojects/{project}/" + + "locations/{location}/inspectTemplates/{i" + + "nspect_template}\352A\327\001\n%dlp.googleapis.com" + + "/DeidentifyTemplate\022[organizations/{orga" + + "nization}/locations/{location}/deidentif" + + "yTemplates/{deidentify_template}\022Qprojec" + + "ts/{project}/locations/{location}/deiden" + + "tifyTemplates/{deidentify_template}b\006pro" + + "to3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -279,7 +280,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3beta1_SecuritySettings_AudioExportSettings_descriptor, new java.lang.String[] { - "GcsBucket", "AudioExportPattern", "EnableAudioRedaction", "AudioFormat", + "GcsBucket", + "AudioExportPattern", + "EnableAudioRedaction", + "AudioFormat", + "StoreTtsAudio", }); internal_static_google_cloud_dialogflow_cx_v3beta1_SecuritySettings_InsightsExportSettings_descriptor = internal_static_google_cloud_dialogflow_cx_v3beta1_SecuritySettings_descriptor diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionProto.java index 8d708e9387db..805c9e896cd3 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionProto.java @@ -362,106 +362,107 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".v3beta1.InputAudioConfigB\003\340A\002\022\r\n\005audio\030" + "\002 \001(\014\"\033\n\nEventInput\022\r\n\005event\030\001 \001(\t\"1\n\tDt" + "mfInput\022\016\n\006digits\030\001 \001(\t\022\024\n\014finish_digit\030" - + "\002 \001(\t\"\373\002\n\005Match\022:\n\006intent\030\001 \001(\0132*.google" + + "\002 \001(\t\"\211\003\n\005Match\022:\n\006intent\030\001 \001(\0132*.google" + ".cloud.dialogflow.cx.v3beta1.Intent\022\r\n\005e" + "vent\030\006 \001(\t\022+\n\nparameters\030\002 \001(\0132\027.google." + "protobuf.Struct\022\026\n\016resolved_input\030\003 \001(\t\022" + "G\n\nmatch_type\030\004 \001(\01623.google.cloud.dialo" + "gflow.cx.v3beta1.Match.MatchType\022\022\n\nconf" - + "idence\030\005 \001(\002\"\204\001\n\tMatchType\022\032\n\026MATCH_TYPE" + + "idence\030\005 \001(\002\"\222\001\n\tMatchType\022\032\n\026MATCH_TYPE" + "_UNSPECIFIED\020\000\022\n\n\006INTENT\020\001\022\021\n\rDIRECT_INT" + "ENT\020\002\022\025\n\021PARAMETER_FILLING\020\003\022\014\n\010NO_MATCH" - + "\020\004\022\014\n\010NO_INPUT\020\005\022\t\n\005EVENT\020\006\"\210\002\n\022MatchInt" - + "entRequest\022:\n\007session\030\001 \001(\tB)\340A\002\372A#\n!dia" - + "logflow.googleapis.com/Session\022I\n\014query_" - + "params\030\002 \001(\01323.google.cloud.dialogflow.c" - + "x.v3beta1.QueryParameters\022H\n\013query_input" - + "\030\003 \001(\0132..google.cloud.dialogflow.cx.v3be" - + "ta1.QueryInputB\003\340A\002\022!\n\031persist_parameter" - + "_changes\030\005 \001(\010\"\232\002\n\023MatchIntentResponse\022\016" - + "\n\004text\030\001 \001(\tH\000\022?\n\016trigger_intent\030\002 \001(\tB%" - + "\372A\"\n dialogflow.googleapis.com/IntentH\000\022" - + "\024\n\ntranscript\030\003 \001(\tH\000\022\027\n\rtrigger_event\030\006" - + " \001(\tH\000\022:\n\007matches\030\004 \003(\0132).google.cloud.d" - + "ialogflow.cx.v3beta1.Match\022>\n\014current_pa" - + "ge\030\005 \001(\0132(.google.cloud.dialogflow.cx.v3" - + "beta1.PageB\007\n\005query\"\372\001\n\024FulfillIntentReq" - + "uest\022T\n\024match_intent_request\030\001 \001(\01326.goo" - + "gle.cloud.dialogflow.cx.v3beta1.MatchInt" - + "entRequest\0228\n\005match\030\002 \001(\0132).google.cloud" - + ".dialogflow.cx.v3beta1.Match\022R\n\023output_a" - + "udio_config\030\003 \001(\01325.google.cloud.dialogf" - + "low.cx.v3beta1.OutputAudioConfig\"\335\001\n\025Ful" - + "fillIntentResponse\022\023\n\013response_id\030\001 \001(\t\022" - + "E\n\014query_result\030\002 \001(\0132/.google.cloud.dia" - + "logflow.cx.v3beta1.QueryResult\022\024\n\014output" - + "_audio\030\003 \001(\014\022R\n\023output_audio_config\030\004 \001(" - + "\01325.google.cloud.dialogflow.cx.v3beta1.O" - + "utputAudioConfig\";\n\027SentimentAnalysisRes" - + "ult\022\r\n\005score\030\001 \001(\002\022\021\n\tmagnitude\030\002 \001(\0022\343\016" - + "\n\010Sessions\022\272\002\n\014DetectIntent\0227.google.clo" - + "ud.dialogflow.cx.v3beta1.DetectIntentReq" - + "uest\0328.google.cloud.dialogflow.cx.v3beta" - + "1.DetectIntentResponse\"\266\001\202\323\344\223\002\257\001\"J/v3bet" - + "a1/{session=projects/*/locations/*/agent" - + "s/*/sessions/*}:detectIntent:\001*Z^\"Y/v3be" - + "ta1/{session=projects/*/locations/*/agen" - + "ts/*/environments/*/sessions/*}:detectIn" - + "tent:\001*\022\351\002\n\033ServerStreamingDetectIntent\022" - + "7.google.cloud.dialogflow.cx.v3beta1.Det" - + "ectIntentRequest\0328.google.cloud.dialogfl" - + "ow.cx.v3beta1.DetectIntentResponse\"\324\001\202\323\344" - + "\223\002\315\001\"Y/v3beta1/{session=projects/*/locat" - + "ions/*/agents/*/sessions/*}:serverStream" - + "ingDetectIntent:\001*Zm\"h/v3beta1/{session=" - + "projects/*/locations/*/agents/*/environm" - + "ents/*/sessions/*}:serverStreamingDetect" - + "Intent:\001*0\001\022\242\001\n\025StreamingDetectIntent\022@." + + "\020\004\022\014\n\010NO_INPUT\020\005\022\t\n\005EVENT\020\006\022\014\n\010PLAYBOOK\020" + + "\t\"\210\002\n\022MatchIntentRequest\022:\n\007session\030\001 \001(" + + "\tB)\340A\002\372A#\n!dialogflow.googleapis.com/Ses" + + "sion\022I\n\014query_params\030\002 \001(\01323.google.clou" + + "d.dialogflow.cx.v3beta1.QueryParameters\022" + + "H\n\013query_input\030\003 \001(\0132..google.cloud.dial" + + "ogflow.cx.v3beta1.QueryInputB\003\340A\002\022!\n\031per" + + "sist_parameter_changes\030\005 \001(\010\"\232\002\n\023MatchIn" + + "tentResponse\022\016\n\004text\030\001 \001(\tH\000\022?\n\016trigger_" + + "intent\030\002 \001(\tB%\372A\"\n dialogflow.googleapis" + + ".com/IntentH\000\022\024\n\ntranscript\030\003 \001(\tH\000\022\027\n\rt" + + "rigger_event\030\006 \001(\tH\000\022:\n\007matches\030\004 \003(\0132)." + + "google.cloud.dialogflow.cx.v3beta1.Match" + + "\022>\n\014current_page\030\005 \001(\0132(.google.cloud.di" + + "alogflow.cx.v3beta1.PageB\007\n\005query\"\372\001\n\024Fu" + + "lfillIntentRequest\022T\n\024match_intent_reque" + + "st\030\001 \001(\01326.google.cloud.dialogflow.cx.v3" + + "beta1.MatchIntentRequest\0228\n\005match\030\002 \001(\0132" + + ").google.cloud.dialogflow.cx.v3beta1.Mat" + + "ch\022R\n\023output_audio_config\030\003 \001(\01325.google" + + ".cloud.dialogflow.cx.v3beta1.OutputAudio" + + "Config\"\335\001\n\025FulfillIntentResponse\022\023\n\013resp" + + "onse_id\030\001 \001(\t\022E\n\014query_result\030\002 \001(\0132/.go" + + "ogle.cloud.dialogflow.cx.v3beta1.QueryRe" + + "sult\022\024\n\014output_audio\030\003 \001(\014\022R\n\023output_aud" + + "io_config\030\004 \001(\01325.google.cloud.dialogflo" + + "w.cx.v3beta1.OutputAudioConfig\";\n\027Sentim" + + "entAnalysisResult\022\r\n\005score\030\001 \001(\002\022\021\n\tmagn" + + "itude\030\002 \001(\0022\343\016\n\010Sessions\022\272\002\n\014DetectInten" + + "t\0227.google.cloud.dialogflow.cx.v3beta1.D" + + "etectIntentRequest\0328.google.cloud.dialog" + + "flow.cx.v3beta1.DetectIntentResponse\"\266\001\202" + + "\323\344\223\002\257\001\"J/v3beta1/{session=projects/*/loc" + + "ations/*/agents/*/sessions/*}:detectInte" + + "nt:\001*Z^\"Y/v3beta1/{session=projects/*/lo" + + "cations/*/agents/*/environments/*/sessio" + + "ns/*}:detectIntent:\001*\022\351\002\n\033ServerStreamin" + + "gDetectIntent\0227.google.cloud.dialogflow." + + "cx.v3beta1.DetectIntentRequest\0328.google." + + "cloud.dialogflow.cx.v3beta1.DetectIntent" + + "Response\"\324\001\202\323\344\223\002\315\001\"Y/v3beta1/{session=pr" + + "ojects/*/locations/*/agents/*/sessions/*" + + "}:serverStreamingDetectIntent:\001*Zm\"h/v3b" + + "eta1/{session=projects/*/locations/*/age" + + "nts/*/environments/*/sessions/*}:serverS" + + "treamingDetectIntent:\001*0\001\022\242\001\n\025StreamingD" + + "etectIntent\022@.google.cloud.dialogflow.cx" + + ".v3beta1.StreamingDetectIntentRequest\032A." + "google.cloud.dialogflow.cx.v3beta1.Strea" - + "mingDetectIntentRequest\032A.google.cloud.d" - + "ialogflow.cx.v3beta1.StreamingDetectInte" - + "ntResponse\"\000(\0010\001\022\265\002\n\013MatchIntent\0226.googl" - + "e.cloud.dialogflow.cx.v3beta1.MatchInten" - + "tRequest\0327.google.cloud.dialogflow.cx.v3" - + "beta1.MatchIntentResponse\"\264\001\202\323\344\223\002\255\001\"I/v3" - + "beta1/{session=projects/*/locations/*/ag" - + "ents/*/sessions/*}:matchIntent:\001*Z]\"X/v3" - + "beta1/{session=projects/*/locations/*/ag" - + "ents/*/environments/*/sessions/*}:matchI" - + "ntent:\001*\022\351\002\n\rFulfillIntent\0228.google.clou" - + "d.dialogflow.cx.v3beta1.FulfillIntentReq" - + "uest\0329.google.cloud.dialogflow.cx.v3beta" - + "1.FulfillIntentResponse\"\342\001\202\323\344\223\002\333\001\"`/v3be" - + "ta1/{match_intent_request.session=projec" - + "ts/*/locations/*/agents/*/sessions/*}:fu" - + "lfillIntent:\001*Zt\"o/v3beta1/{match_intent" - + "_request.session=projects/*/locations/*/" - + "agents/*/environments/*/sessions/*}:fulf" - + "illIntent:\001*\022\352\001\n\024SubmitAnswerFeedback\022?." - + "google.cloud.dialogflow.cx.v3beta1.Submi" - + "tAnswerFeedbackRequest\0322.google.cloud.di" - + "alogflow.cx.v3beta1.AnswerFeedback\"]\202\323\344\223" - + "\002W\"R/v3beta1/{session=projects/*/locatio" - + "ns/*/agents/*/sessions/*}:submitAnswerFe" - + "edback:\001*\032x\312A\031dialogflow.googleapis.com\322" - + "AYhttps://www.googleapis.com/auth/cloud-" - + "platform,https://www.googleapis.com/auth" - + "/dialogflowB\347\004\n&com.google.cloud.dialogf" - + "low.cx.v3beta1B\014SessionProtoP\001Z6cloud.go" - + "ogle.com/go/dialogflow/cx/apiv3beta1/cxp" - + "b;cxpb\370\001\001\242\002\002DF\252\002\"Google.Cloud.Dialogflow" - + ".Cx.V3Beta1\352\002&Google::Cloud::Dialogflow:" - + ":CX::V3beta1\352A\324\001\n!dialogflow.googleapis." - + "com/Session\022Iprojects/{project}/location" - + "s/{location}/agents/{agent}/sessions/{se" - + "ssion}\022dprojects/{project}/locations/{lo" - + "cation}/agents/{agent}/environments/{env" - + "ironment}/sessions/{session}\352A\305\001\n(discov" - + "eryengine.googleapis.com/DataStore\022?proj" - + "ects/{project}/locations/{location}/data" - + "Stores/{data_store}\022Xprojects/{project}/" - + "locations/{location}/collections/{collec" - + "tion}/dataStores/{data_store}b\006proto3" + + "mingDetectIntentResponse\"\000(\0010\001\022\265\002\n\013Match" + + "Intent\0226.google.cloud.dialogflow.cx.v3be" + + "ta1.MatchIntentRequest\0327.google.cloud.di" + + "alogflow.cx.v3beta1.MatchIntentResponse\"" + + "\264\001\202\323\344\223\002\255\001\"I/v3beta1/{session=projects/*/" + + "locations/*/agents/*/sessions/*}:matchIn" + + "tent:\001*Z]\"X/v3beta1/{session=projects/*/" + + "locations/*/agents/*/environments/*/sess" + + "ions/*}:matchIntent:\001*\022\351\002\n\rFulfillIntent" + + "\0228.google.cloud.dialogflow.cx.v3beta1.Fu" + + "lfillIntentRequest\0329.google.cloud.dialog" + + "flow.cx.v3beta1.FulfillIntentResponse\"\342\001" + + "\202\323\344\223\002\333\001\"`/v3beta1/{match_intent_request." + + "session=projects/*/locations/*/agents/*/" + + "sessions/*}:fulfillIntent:\001*Zt\"o/v3beta1" + + "/{match_intent_request.session=projects/" + + "*/locations/*/agents/*/environments/*/se" + + "ssions/*}:fulfillIntent:\001*\022\352\001\n\024SubmitAns" + + "werFeedback\022?.google.cloud.dialogflow.cx" + + ".v3beta1.SubmitAnswerFeedbackRequest\0322.g" + + "oogle.cloud.dialogflow.cx.v3beta1.Answer" + + "Feedback\"]\202\323\344\223\002W\"R/v3beta1/{session=proj" + + "ects/*/locations/*/agents/*/sessions/*}:" + + "submitAnswerFeedback:\001*\032x\312A\031dialogflow.g" + + "oogleapis.com\322AYhttps://www.googleapis.c" + + "om/auth/cloud-platform,https://www.googl" + + "eapis.com/auth/dialogflowB\347\004\n&com.google" + + ".cloud.dialogflow.cx.v3beta1B\014SessionPro" + + "toP\001Z6cloud.google.com/go/dialogflow/cx/" + + "apiv3beta1/cxpb;cxpb\370\001\001\242\002\002DF\252\002\"Google.Cl" + + "oud.Dialogflow.Cx.V3Beta1\352\002&Google::Clou" + + "d::Dialogflow::CX::V3beta1\352A\324\001\n!dialogfl" + + "ow.googleapis.com/Session\022Iprojects/{pro" + + "ject}/locations/{location}/agents/{agent" + + "}/sessions/{session}\022dprojects/{project}" + + "/locations/{location}/agents/{agent}/env" + + "ironments/{environment}/sessions/{sessio" + + "n}\352A\305\001\n(discoveryengine.googleapis.com/D" + + "ataStore\022?projects/{project}/locations/{" + + "location}/dataStores/{data_store}\022Xproje" + + "cts/{project}/locations/{location}/colle" + + "ctions/{collection}/dataStores/{data_sto" + + "re}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Tool.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Tool.java index ffc50988bc09..9df714297482 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Tool.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Tool.java @@ -45,8 +45,6 @@ private Tool() { name_ = ""; displayName_ = ""; description_ = ""; - actions_ = com.google.protobuf.LazyStringArrayList.emptyList(); - schemas_ = com.google.protobuf.LazyStringArrayList.emptyList(); toolType_ = 0; } @@ -12435,158 +12433,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } - public static final int ACTIONS_FIELD_NUMBER = 6; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList actions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * The list of derived action names for the tool.
-   * 
- * - * repeated string actions = 6 [deprecated = true]; - * - * @deprecated google.cloud.dialogflow.cx.v3beta1.Tool.actions is deprecated. See - * google/cloud/dialogflow/cx/v3beta1/tool.proto;l=458 - * @return A list containing the actions. - */ - @java.lang.Deprecated - public com.google.protobuf.ProtocolStringList getActionsList() { - return actions_; - } - /** - * - * - *
-   * The list of derived action names for the tool.
-   * 
- * - * repeated string actions = 6 [deprecated = true]; - * - * @deprecated google.cloud.dialogflow.cx.v3beta1.Tool.actions is deprecated. See - * google/cloud/dialogflow/cx/v3beta1/tool.proto;l=458 - * @return The count of actions. - */ - @java.lang.Deprecated - public int getActionsCount() { - return actions_.size(); - } - /** - * - * - *
-   * The list of derived action names for the tool.
-   * 
- * - * repeated string actions = 6 [deprecated = true]; - * - * @deprecated google.cloud.dialogflow.cx.v3beta1.Tool.actions is deprecated. See - * google/cloud/dialogflow/cx/v3beta1/tool.proto;l=458 - * @param index The index of the element to return. - * @return The actions at the given index. - */ - @java.lang.Deprecated - public java.lang.String getActions(int index) { - return actions_.get(index); - } - /** - * - * - *
-   * The list of derived action names for the tool.
-   * 
- * - * repeated string actions = 6 [deprecated = true]; - * - * @deprecated google.cloud.dialogflow.cx.v3beta1.Tool.actions is deprecated. See - * google/cloud/dialogflow/cx/v3beta1/tool.proto;l=458 - * @param index The index of the value to return. - * @return The bytes of the actions at the given index. - */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getActionsBytes(int index) { - return actions_.getByteString(index); - } - - public static final int SCHEMAS_FIELD_NUMBER = 7; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList schemas_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * The list of derived type schemas for the tool.
-   * 
- * - * repeated string schemas = 7 [deprecated = true]; - * - * @deprecated google.cloud.dialogflow.cx.v3beta1.Tool.schemas is deprecated. See - * google/cloud/dialogflow/cx/v3beta1/tool.proto;l=461 - * @return A list containing the schemas. - */ - @java.lang.Deprecated - public com.google.protobuf.ProtocolStringList getSchemasList() { - return schemas_; - } - /** - * - * - *
-   * The list of derived type schemas for the tool.
-   * 
- * - * repeated string schemas = 7 [deprecated = true]; - * - * @deprecated google.cloud.dialogflow.cx.v3beta1.Tool.schemas is deprecated. See - * google/cloud/dialogflow/cx/v3beta1/tool.proto;l=461 - * @return The count of schemas. - */ - @java.lang.Deprecated - public int getSchemasCount() { - return schemas_.size(); - } - /** - * - * - *
-   * The list of derived type schemas for the tool.
-   * 
- * - * repeated string schemas = 7 [deprecated = true]; - * - * @deprecated google.cloud.dialogflow.cx.v3beta1.Tool.schemas is deprecated. See - * google/cloud/dialogflow/cx/v3beta1/tool.proto;l=461 - * @param index The index of the element to return. - * @return The schemas at the given index. - */ - @java.lang.Deprecated - public java.lang.String getSchemas(int index) { - return schemas_.get(index); - } - /** - * - * - *
-   * The list of derived type schemas for the tool.
-   * 
- * - * repeated string schemas = 7 [deprecated = true]; - * - * @deprecated google.cloud.dialogflow.cx.v3beta1.Tool.schemas is deprecated. See - * google/cloud/dialogflow/cx/v3beta1/tool.proto;l=461 - * @param index The index of the value to return. - * @return The bytes of the schemas at the given index. - */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getSchemasBytes(int index) { - return schemas_.getByteString(index); - } - public static final int OPEN_API_SPEC_FIELD_NUMBER = 4; /** * @@ -12863,12 +12709,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 4, (com.google.cloud.dialogflow.cx.v3beta1.Tool.OpenApiTool) specification_); } - for (int i = 0; i < actions_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, actions_.getRaw(i)); - } - for (int i = 0; i < schemas_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, schemas_.getRaw(i)); - } if (specificationCase_ == 8) { output.writeMessage( 8, (com.google.cloud.dialogflow.cx.v3beta1.Tool.DataStoreTool) specification_); @@ -12908,22 +12748,6 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 4, (com.google.cloud.dialogflow.cx.v3beta1.Tool.OpenApiTool) specification_); } - { - int dataSize = 0; - for (int i = 0; i < actions_.size(); i++) { - dataSize += computeStringSizeNoTag(actions_.getRaw(i)); - } - size += dataSize; - size += 1 * getActionsList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < schemas_.size(); i++) { - dataSize += computeStringSizeNoTag(schemas_.getRaw(i)); - } - size += dataSize; - size += 1 * getSchemasList().size(); - } if (specificationCase_ == 8) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -12962,8 +12786,6 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getDisplayName().equals(other.getDisplayName())) return false; if (!getDescription().equals(other.getDescription())) return false; - if (!getActionsList().equals(other.getActionsList())) return false; - if (!getSchemasList().equals(other.getSchemasList())) return false; if (toolType_ != other.toolType_) return false; if (!getSpecificationCase().equals(other.getSpecificationCase())) return false; switch (specificationCase_) { @@ -12999,14 +12821,6 @@ public int hashCode() { hash = (53 * hash) + getDisplayName().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); - if (getActionsCount() > 0) { - hash = (37 * hash) + ACTIONS_FIELD_NUMBER; - hash = (53 * hash) + getActionsList().hashCode(); - } - if (getSchemasCount() > 0) { - hash = (37 * hash) + SCHEMAS_FIELD_NUMBER; - hash = (53 * hash) + getSchemasList().hashCode(); - } hash = (37 * hash) + TOOL_TYPE_FIELD_NUMBER; hash = (53 * hash) + toolType_; switch (specificationCase_) { @@ -13174,8 +12988,6 @@ public Builder clear() { name_ = ""; displayName_ = ""; description_ = ""; - actions_ = com.google.protobuf.LazyStringArrayList.emptyList(); - schemas_ = com.google.protobuf.LazyStringArrayList.emptyList(); if (openApiSpecBuilder_ != null) { openApiSpecBuilder_.clear(); } @@ -13237,15 +13049,7 @@ private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.Tool result) { if (((from_bitField0_ & 0x00000004) != 0)) { result.description_ = description_; } - if (((from_bitField0_ & 0x00000008) != 0)) { - actions_.makeImmutable(); - result.actions_ = actions_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - schemas_.makeImmutable(); - result.schemas_ = schemas_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.toolType_ = toolType_; } } @@ -13327,26 +13131,6 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Tool other) { bitField0_ |= 0x00000004; onChanged(); } - if (!other.actions_.isEmpty()) { - if (actions_.isEmpty()) { - actions_ = other.actions_; - bitField0_ |= 0x00000008; - } else { - ensureActionsIsMutable(); - actions_.addAll(other.actions_); - } - onChanged(); - } - if (!other.schemas_.isEmpty()) { - if (schemas_.isEmpty()) { - schemas_ = other.schemas_; - bitField0_ |= 0x00000010; - } else { - ensureSchemasIsMutable(); - schemas_.addAll(other.schemas_); - } - onChanged(); - } if (other.toolType_ != 0) { setToolTypeValue(other.getToolTypeValue()); } @@ -13426,20 +13210,6 @@ public Builder mergeFrom( specificationCase_ = 4; break; } // case 34 - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureActionsIsMutable(); - actions_.add(s); - break; - } // case 50 - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureSchemasIsMutable(); - schemas_.add(s); - break; - } // case 58 case 66: { input.readMessage(getDataStoreSpecFieldBuilder().getBuilder(), extensionRegistry); @@ -13455,7 +13225,7 @@ public Builder mergeFrom( case 96: { toolType_ = input.readEnum(); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000080; break; } // case 96 case 106: @@ -13825,408 +13595,6 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringArrayList actions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureActionsIsMutable() { - if (!actions_.isModifiable()) { - actions_ = new com.google.protobuf.LazyStringArrayList(actions_); - } - bitField0_ |= 0x00000008; - } - /** - * - * - *
-     * The list of derived action names for the tool.
-     * 
- * - * repeated string actions = 6 [deprecated = true]; - * - * @deprecated google.cloud.dialogflow.cx.v3beta1.Tool.actions is deprecated. See - * google/cloud/dialogflow/cx/v3beta1/tool.proto;l=458 - * @return A list containing the actions. - */ - @java.lang.Deprecated - public com.google.protobuf.ProtocolStringList getActionsList() { - actions_.makeImmutable(); - return actions_; - } - /** - * - * - *
-     * The list of derived action names for the tool.
-     * 
- * - * repeated string actions = 6 [deprecated = true]; - * - * @deprecated google.cloud.dialogflow.cx.v3beta1.Tool.actions is deprecated. See - * google/cloud/dialogflow/cx/v3beta1/tool.proto;l=458 - * @return The count of actions. - */ - @java.lang.Deprecated - public int getActionsCount() { - return actions_.size(); - } - /** - * - * - *
-     * The list of derived action names for the tool.
-     * 
- * - * repeated string actions = 6 [deprecated = true]; - * - * @deprecated google.cloud.dialogflow.cx.v3beta1.Tool.actions is deprecated. See - * google/cloud/dialogflow/cx/v3beta1/tool.proto;l=458 - * @param index The index of the element to return. - * @return The actions at the given index. - */ - @java.lang.Deprecated - public java.lang.String getActions(int index) { - return actions_.get(index); - } - /** - * - * - *
-     * The list of derived action names for the tool.
-     * 
- * - * repeated string actions = 6 [deprecated = true]; - * - * @deprecated google.cloud.dialogflow.cx.v3beta1.Tool.actions is deprecated. See - * google/cloud/dialogflow/cx/v3beta1/tool.proto;l=458 - * @param index The index of the value to return. - * @return The bytes of the actions at the given index. - */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getActionsBytes(int index) { - return actions_.getByteString(index); - } - /** - * - * - *
-     * The list of derived action names for the tool.
-     * 
- * - * repeated string actions = 6 [deprecated = true]; - * - * @deprecated google.cloud.dialogflow.cx.v3beta1.Tool.actions is deprecated. See - * google/cloud/dialogflow/cx/v3beta1/tool.proto;l=458 - * @param index The index to set the value at. - * @param value The actions to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setActions(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureActionsIsMutable(); - actions_.set(index, value); - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * The list of derived action names for the tool.
-     * 
- * - * repeated string actions = 6 [deprecated = true]; - * - * @deprecated google.cloud.dialogflow.cx.v3beta1.Tool.actions is deprecated. See - * google/cloud/dialogflow/cx/v3beta1/tool.proto;l=458 - * @param value The actions to add. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder addActions(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureActionsIsMutable(); - actions_.add(value); - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * The list of derived action names for the tool.
-     * 
- * - * repeated string actions = 6 [deprecated = true]; - * - * @deprecated google.cloud.dialogflow.cx.v3beta1.Tool.actions is deprecated. See - * google/cloud/dialogflow/cx/v3beta1/tool.proto;l=458 - * @param values The actions to add. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder addAllActions(java.lang.Iterable values) { - ensureActionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, actions_); - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * The list of derived action names for the tool.
-     * 
- * - * repeated string actions = 6 [deprecated = true]; - * - * @deprecated google.cloud.dialogflow.cx.v3beta1.Tool.actions is deprecated. See - * google/cloud/dialogflow/cx/v3beta1/tool.proto;l=458 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearActions() { - actions_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - ; - onChanged(); - return this; - } - /** - * - * - *
-     * The list of derived action names for the tool.
-     * 
- * - * repeated string actions = 6 [deprecated = true]; - * - * @deprecated google.cloud.dialogflow.cx.v3beta1.Tool.actions is deprecated. See - * google/cloud/dialogflow/cx/v3beta1/tool.proto;l=458 - * @param value The bytes of the actions to add. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder addActionsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureActionsIsMutable(); - actions_.add(value); - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList schemas_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureSchemasIsMutable() { - if (!schemas_.isModifiable()) { - schemas_ = new com.google.protobuf.LazyStringArrayList(schemas_); - } - bitField0_ |= 0x00000010; - } - /** - * - * - *
-     * The list of derived type schemas for the tool.
-     * 
- * - * repeated string schemas = 7 [deprecated = true]; - * - * @deprecated google.cloud.dialogflow.cx.v3beta1.Tool.schemas is deprecated. See - * google/cloud/dialogflow/cx/v3beta1/tool.proto;l=461 - * @return A list containing the schemas. - */ - @java.lang.Deprecated - public com.google.protobuf.ProtocolStringList getSchemasList() { - schemas_.makeImmutable(); - return schemas_; - } - /** - * - * - *
-     * The list of derived type schemas for the tool.
-     * 
- * - * repeated string schemas = 7 [deprecated = true]; - * - * @deprecated google.cloud.dialogflow.cx.v3beta1.Tool.schemas is deprecated. See - * google/cloud/dialogflow/cx/v3beta1/tool.proto;l=461 - * @return The count of schemas. - */ - @java.lang.Deprecated - public int getSchemasCount() { - return schemas_.size(); - } - /** - * - * - *
-     * The list of derived type schemas for the tool.
-     * 
- * - * repeated string schemas = 7 [deprecated = true]; - * - * @deprecated google.cloud.dialogflow.cx.v3beta1.Tool.schemas is deprecated. See - * google/cloud/dialogflow/cx/v3beta1/tool.proto;l=461 - * @param index The index of the element to return. - * @return The schemas at the given index. - */ - @java.lang.Deprecated - public java.lang.String getSchemas(int index) { - return schemas_.get(index); - } - /** - * - * - *
-     * The list of derived type schemas for the tool.
-     * 
- * - * repeated string schemas = 7 [deprecated = true]; - * - * @deprecated google.cloud.dialogflow.cx.v3beta1.Tool.schemas is deprecated. See - * google/cloud/dialogflow/cx/v3beta1/tool.proto;l=461 - * @param index The index of the value to return. - * @return The bytes of the schemas at the given index. - */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getSchemasBytes(int index) { - return schemas_.getByteString(index); - } - /** - * - * - *
-     * The list of derived type schemas for the tool.
-     * 
- * - * repeated string schemas = 7 [deprecated = true]; - * - * @deprecated google.cloud.dialogflow.cx.v3beta1.Tool.schemas is deprecated. See - * google/cloud/dialogflow/cx/v3beta1/tool.proto;l=461 - * @param index The index to set the value at. - * @param value The schemas to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setSchemas(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSchemasIsMutable(); - schemas_.set(index, value); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * The list of derived type schemas for the tool.
-     * 
- * - * repeated string schemas = 7 [deprecated = true]; - * - * @deprecated google.cloud.dialogflow.cx.v3beta1.Tool.schemas is deprecated. See - * google/cloud/dialogflow/cx/v3beta1/tool.proto;l=461 - * @param value The schemas to add. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder addSchemas(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSchemasIsMutable(); - schemas_.add(value); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * The list of derived type schemas for the tool.
-     * 
- * - * repeated string schemas = 7 [deprecated = true]; - * - * @deprecated google.cloud.dialogflow.cx.v3beta1.Tool.schemas is deprecated. See - * google/cloud/dialogflow/cx/v3beta1/tool.proto;l=461 - * @param values The schemas to add. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder addAllSchemas(java.lang.Iterable values) { - ensureSchemasIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, schemas_); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
-     * The list of derived type schemas for the tool.
-     * 
- * - * repeated string schemas = 7 [deprecated = true]; - * - * @deprecated google.cloud.dialogflow.cx.v3beta1.Tool.schemas is deprecated. See - * google/cloud/dialogflow/cx/v3beta1/tool.proto;l=461 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearSchemas() { - schemas_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - ; - onChanged(); - return this; - } - /** - * - * - *
-     * The list of derived type schemas for the tool.
-     * 
- * - * repeated string schemas = 7 [deprecated = true]; - * - * @deprecated google.cloud.dialogflow.cx.v3beta1.Tool.schemas is deprecated. See - * google/cloud/dialogflow/cx/v3beta1/tool.proto;l=461 - * @param value The bytes of the schemas to add. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder addSchemasBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureSchemasIsMutable(); - schemas_.add(value); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.Tool.OpenApiTool, com.google.cloud.dialogflow.cx.v3beta1.Tool.OpenApiTool.Builder, @@ -15117,7 +14485,7 @@ public int getToolTypeValue() { */ public Builder setToolTypeValue(int value) { toolType_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -15160,7 +14528,7 @@ public Builder setToolType(com.google.cloud.dialogflow.cx.v3beta1.Tool.ToolType if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000080; toolType_ = value.getNumber(); onChanged(); return this; @@ -15179,7 +14547,7 @@ public Builder setToolType(com.google.cloud.dialogflow.cx.v3beta1.Tool.ToolType * @return This builder for chaining. */ public Builder clearToolType() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000080); toolType_ = 0; onChanged(); return this; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolCall.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolCall.java new file mode 100644 index 000000000000..1c0521ed448e --- /dev/null +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolCall.java @@ -0,0 +1,1127 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3beta1/tool_call.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.dialogflow.cx.v3beta1; + +/** + * + * + *
+ * Represents a call of a specific tool's action with the specified inputs.
+ * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.ToolCall} + */ +public final class ToolCall extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.ToolCall) + ToolCallOrBuilder { + private static final long serialVersionUID = 0L; + // Use ToolCall.newBuilder() to construct. + private ToolCall(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ToolCall() { + tool_ = ""; + action_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ToolCall(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.ToolCallProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_ToolCall_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.ToolCallProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_ToolCall_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.ToolCall.class, + com.google.cloud.dialogflow.cx.v3beta1.ToolCall.Builder.class); + } + + private int bitField0_; + public static final int TOOL_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object tool_ = ""; + /** + * + * + *
+   * The [tool][Tool] associated with this call.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/tools/<Tool ID>`.
+   * 
+ * + * + * string tool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The tool. + */ + @java.lang.Override + public java.lang.String getTool() { + java.lang.Object ref = tool_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tool_ = s; + return s; + } + } + /** + * + * + *
+   * The [tool][Tool] associated with this call.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/tools/<Tool ID>`.
+   * 
+ * + * + * string tool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tool. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToolBytes() { + java.lang.Object ref = tool_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object action_ = ""; + /** + * + * + *
+   * The name of the tool's action associated with this call.
+   * 
+ * + * string action = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The action. + */ + @java.lang.Override + public java.lang.String getAction() { + java.lang.Object ref = action_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + action_ = s; + return s; + } + } + /** + * + * + *
+   * The name of the tool's action associated with this call.
+   * 
+ * + * string action = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for action. + */ + @java.lang.Override + public com.google.protobuf.ByteString getActionBytes() { + java.lang.Object ref = action_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + action_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INPUT_PARAMETERS_FIELD_NUMBER = 3; + private com.google.protobuf.Struct inputParameters_; + /** + * + * + *
+   * The action's input parameters.
+   * 
+ * + * .google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the inputParameters field is set. + */ + @java.lang.Override + public boolean hasInputParameters() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * The action's input parameters.
+   * 
+ * + * .google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The inputParameters. + */ + @java.lang.Override + public com.google.protobuf.Struct getInputParameters() { + return inputParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : inputParameters_; + } + /** + * + * + *
+   * The action's input parameters.
+   * 
+ * + * .google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getInputParametersOrBuilder() { + return inputParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : inputParameters_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tool_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tool_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(action_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, action_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getInputParameters()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tool_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, tool_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(action_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, action_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInputParameters()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.cx.v3beta1.ToolCall)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.cx.v3beta1.ToolCall other = + (com.google.cloud.dialogflow.cx.v3beta1.ToolCall) obj; + + if (!getTool().equals(other.getTool())) return false; + if (!getAction().equals(other.getAction())) return false; + if (hasInputParameters() != other.hasInputParameters()) return false; + if (hasInputParameters()) { + if (!getInputParameters().equals(other.getInputParameters())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TOOL_FIELD_NUMBER; + hash = (53 * hash) + getTool().hashCode(); + hash = (37 * hash) + ACTION_FIELD_NUMBER; + hash = (53 * hash) + getAction().hashCode(); + if (hasInputParameters()) { + hash = (37 * hash) + INPUT_PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getInputParameters().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ToolCall parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ToolCall parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ToolCall parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ToolCall parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ToolCall parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ToolCall parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ToolCall parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ToolCall parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ToolCall parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ToolCall parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ToolCall parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ToolCall parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dialogflow.cx.v3beta1.ToolCall prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Represents a call of a specific tool's action with the specified inputs.
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.ToolCall} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.ToolCall) + com.google.cloud.dialogflow.cx.v3beta1.ToolCallOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.cx.v3beta1.ToolCallProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_ToolCall_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.cx.v3beta1.ToolCallProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_ToolCall_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.cx.v3beta1.ToolCall.class, + com.google.cloud.dialogflow.cx.v3beta1.ToolCall.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.cx.v3beta1.ToolCall.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getInputParametersFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + tool_ = ""; + action_ = ""; + inputParameters_ = null; + if (inputParametersBuilder_ != null) { + inputParametersBuilder_.dispose(); + inputParametersBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.cx.v3beta1.ToolCallProto + .internal_static_google_cloud_dialogflow_cx_v3beta1_ToolCall_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.ToolCall getDefaultInstanceForType() { + return com.google.cloud.dialogflow.cx.v3beta1.ToolCall.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.ToolCall build() { + com.google.cloud.dialogflow.cx.v3beta1.ToolCall result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.ToolCall buildPartial() { + com.google.cloud.dialogflow.cx.v3beta1.ToolCall result = + new com.google.cloud.dialogflow.cx.v3beta1.ToolCall(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.ToolCall result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.tool_ = tool_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.action_ = action_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.inputParameters_ = + inputParametersBuilder_ == null ? inputParameters_ : inputParametersBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.cx.v3beta1.ToolCall) { + return mergeFrom((com.google.cloud.dialogflow.cx.v3beta1.ToolCall) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ToolCall other) { + if (other == com.google.cloud.dialogflow.cx.v3beta1.ToolCall.getDefaultInstance()) + return this; + if (!other.getTool().isEmpty()) { + tool_ = other.tool_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAction().isEmpty()) { + action_ = other.action_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasInputParameters()) { + mergeInputParameters(other.getInputParameters()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + tool_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + action_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getInputParametersFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object tool_ = ""; + /** + * + * + *
+     * The [tool][Tool] associated with this call.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/tools/<Tool ID>`.
+     * 
+ * + * + * string tool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The tool. + */ + public java.lang.String getTool() { + java.lang.Object ref = tool_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tool_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The [tool][Tool] associated with this call.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/tools/<Tool ID>`.
+     * 
+ * + * + * string tool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tool. + */ + public com.google.protobuf.ByteString getToolBytes() { + java.lang.Object ref = tool_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The [tool][Tool] associated with this call.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/tools/<Tool ID>`.
+     * 
+ * + * + * string tool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The tool to set. + * @return This builder for chaining. + */ + public Builder setTool(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tool_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The [tool][Tool] associated with this call.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/tools/<Tool ID>`.
+     * 
+ * + * + * string tool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTool() { + tool_ = getDefaultInstance().getTool(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The [tool][Tool] associated with this call.
+     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/tools/<Tool ID>`.
+     * 
+ * + * + * string tool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for tool to set. + * @return This builder for chaining. + */ + public Builder setToolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tool_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object action_ = ""; + /** + * + * + *
+     * The name of the tool's action associated with this call.
+     * 
+ * + * string action = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The action. + */ + public java.lang.String getAction() { + java.lang.Object ref = action_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + action_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name of the tool's action associated with this call.
+     * 
+ * + * string action = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for action. + */ + public com.google.protobuf.ByteString getActionBytes() { + java.lang.Object ref = action_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + action_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name of the tool's action associated with this call.
+     * 
+ * + * string action = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The action to set. + * @return This builder for chaining. + */ + public Builder setAction(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + action_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the tool's action associated with this call.
+     * 
+ * + * string action = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearAction() { + action_ = getDefaultInstance().getAction(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the tool's action associated with this call.
+     * 
+ * + * string action = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for action to set. + * @return This builder for chaining. + */ + public Builder setActionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + action_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Struct inputParameters_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + inputParametersBuilder_; + /** + * + * + *
+     * The action's input parameters.
+     * 
+ * + * .google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the inputParameters field is set. + */ + public boolean hasInputParameters() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * The action's input parameters.
+     * 
+ * + * .google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The inputParameters. + */ + public com.google.protobuf.Struct getInputParameters() { + if (inputParametersBuilder_ == null) { + return inputParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : inputParameters_; + } else { + return inputParametersBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The action's input parameters.
+     * 
+ * + * .google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInputParameters(com.google.protobuf.Struct value) { + if (inputParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputParameters_ = value; + } else { + inputParametersBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The action's input parameters.
+     * 
+ * + * .google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInputParameters(com.google.protobuf.Struct.Builder builderForValue) { + if (inputParametersBuilder_ == null) { + inputParameters_ = builderForValue.build(); + } else { + inputParametersBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The action's input parameters.
+     * 
+ * + * .google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeInputParameters(com.google.protobuf.Struct value) { + if (inputParametersBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && inputParameters_ != null + && inputParameters_ != com.google.protobuf.Struct.getDefaultInstance()) { + getInputParametersBuilder().mergeFrom(value); + } else { + inputParameters_ = value; + } + } else { + inputParametersBuilder_.mergeFrom(value); + } + if (inputParameters_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
+     * The action's input parameters.
+     * 
+ * + * .google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearInputParameters() { + bitField0_ = (bitField0_ & ~0x00000004); + inputParameters_ = null; + if (inputParametersBuilder_ != null) { + inputParametersBuilder_.dispose(); + inputParametersBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The action's input parameters.
+     * 
+ * + * .google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Struct.Builder getInputParametersBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getInputParametersFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The action's input parameters.
+     * 
+ * + * .google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.StructOrBuilder getInputParametersOrBuilder() { + if (inputParametersBuilder_ != null) { + return inputParametersBuilder_.getMessageOrBuilder(); + } else { + return inputParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : inputParameters_; + } + } + /** + * + * + *
+     * The action's input parameters.
+     * 
+ * + * .google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + getInputParametersFieldBuilder() { + if (inputParametersBuilder_ == null) { + inputParametersBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getInputParameters(), getParentForChildren(), isClean()); + inputParameters_ = null; + } + return inputParametersBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3beta1.ToolCall) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.ToolCall) + private static final com.google.cloud.dialogflow.cx.v3beta1.ToolCall DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.ToolCall(); + } + + public static com.google.cloud.dialogflow.cx.v3beta1.ToolCall getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ToolCall parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.cx.v3beta1.ToolCall getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolCallOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolCallOrBuilder.java new file mode 100644 index 000000000000..b389a27df49f --- /dev/null +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolCallOrBuilder.java @@ -0,0 +1,122 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dialogflow/cx/v3beta1/tool_call.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.dialogflow.cx.v3beta1; + +public interface ToolCallOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3beta1.ToolCall) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The [tool][Tool] associated with this call.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/tools/<Tool ID>`.
+   * 
+ * + * + * string tool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The tool. + */ + java.lang.String getTool(); + /** + * + * + *
+   * The [tool][Tool] associated with this call.
+   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/tools/<Tool ID>`.
+   * 
+ * + * + * string tool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tool. + */ + com.google.protobuf.ByteString getToolBytes(); + + /** + * + * + *
+   * The name of the tool's action associated with this call.
+   * 
+ * + * string action = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The action. + */ + java.lang.String getAction(); + /** + * + * + *
+   * The name of the tool's action associated with this call.
+   * 
+ * + * string action = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for action. + */ + com.google.protobuf.ByteString getActionBytes(); + + /** + * + * + *
+   * The action's input parameters.
+   * 
+ * + * .google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the inputParameters field is set. + */ + boolean hasInputParameters(); + /** + * + * + *
+   * The action's input parameters.
+   * 
+ * + * .google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The inputParameters. + */ + com.google.protobuf.Struct getInputParameters(); + /** + * + * + *
+   * The action's input parameters.
+   * 
+ * + * .google.protobuf.Struct input_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.StructOrBuilder getInputParametersOrBuilder(); +} diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolCallProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolCallProto.java index 17e299a8a692..e1f21d53076e 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolCallProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolCallProto.java @@ -28,6 +28,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_cx_v3beta1_ToolCall_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_cx_v3beta1_ToolCall_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_cx_v3beta1_ToolCallResult_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -50,19 +54,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".v3beta1\032\034google/api/annotations.proto\032\027" + "google/api/client.proto\032\037google/api/fiel" + "d_behavior.proto\032\031google/api/resource.pr" - + "oto\032\034google/protobuf/struct.proto\"\205\002\n\016To" - + "olCallResult\0224\n\004tool\030\001 \001(\tB&\340A\002\372A \n\036dial" - + "ogflow.googleapis.com/Tool\022\023\n\006action\030\002 \001" - + "(\tB\003\340A\002\022I\n\005error\030\003 \001(\01328.google.cloud.di" - + "alogflow.cx.v3beta1.ToolCallResult.Error" - + "H\000\0224\n\021output_parameters\030\004 \001(\0132\027.google.p" - + "rotobuf.StructH\000\032\035\n\005Error\022\024\n\007message\030\001 \001" - + "(\tB\003\340A\001B\010\n\006resultB\307\001\n&com.google.cloud.d" - + "ialogflow.cx.v3beta1B\rToolCallProtoP\001Z6c" - + "loud.google.com/go/dialogflow/cx/apiv3be" - + "ta1/cxpb;cxpb\370\001\001\242\002\002DF\252\002\"Google.Cloud.Dia" - + "logflow.Cx.V3Beta1\352\002&Google::Cloud::Dial" - + "ogflow::CX::V3beta1b\006proto3" + + "oto\032\034google/protobuf/struct.proto\"\215\001\n\010To" + + "olCall\0224\n\004tool\030\001 \001(\tB&\340A\002\372A \n\036dialogflow" + + ".googleapis.com/Tool\022\023\n\006action\030\002 \001(\tB\003\340A" + + "\002\0226\n\020input_parameters\030\003 \001(\0132\027.google.pro" + + "tobuf.StructB\003\340A\001\"\205\002\n\016ToolCallResult\0224\n\004" + + "tool\030\001 \001(\tB&\340A\002\372A \n\036dialogflow.googleapi" + + "s.com/Tool\022\023\n\006action\030\002 \001(\tB\003\340A\002\022I\n\005error" + + "\030\003 \001(\01328.google.cloud.dialogflow.cx.v3be" + + "ta1.ToolCallResult.ErrorH\000\0224\n\021output_par" + + "ameters\030\004 \001(\0132\027.google.protobuf.StructH\000" + + "\032\035\n\005Error\022\024\n\007message\030\001 \001(\tB\003\340A\001B\010\n\006resul" + + "tB\307\001\n&com.google.cloud.dialogflow.cx.v3b" + + "eta1B\rToolCallProtoP\001Z6cloud.google.com/" + + "go/dialogflow/cx/apiv3beta1/cxpb;cxpb\370\001\001" + + "\242\002\002DF\252\002\"Google.Cloud.Dialogflow.Cx.V3Bet" + + "a1\352\002&Google::Cloud::Dialogflow::CX::V3be" + + "ta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -74,8 +82,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), }); - internal_static_google_cloud_dialogflow_cx_v3beta1_ToolCallResult_descriptor = + internal_static_google_cloud_dialogflow_cx_v3beta1_ToolCall_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_dialogflow_cx_v3beta1_ToolCall_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_cx_v3beta1_ToolCall_descriptor, + new java.lang.String[] { + "Tool", "Action", "InputParameters", + }); + internal_static_google_cloud_dialogflow_cx_v3beta1_ToolCallResult_descriptor = + getDescriptor().getMessageTypes().get(1); internal_static_google_cloud_dialogflow_cx_v3beta1_ToolCallResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_cx_v3beta1_ToolCallResult_descriptor, diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolOrBuilder.java index 49f964a9b07f..48102c43ac91 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolOrBuilder.java @@ -103,132 +103,6 @@ public interface ToolOrBuilder */ com.google.protobuf.ByteString getDescriptionBytes(); - /** - * - * - *
-   * The list of derived action names for the tool.
-   * 
- * - * repeated string actions = 6 [deprecated = true]; - * - * @deprecated google.cloud.dialogflow.cx.v3beta1.Tool.actions is deprecated. See - * google/cloud/dialogflow/cx/v3beta1/tool.proto;l=458 - * @return A list containing the actions. - */ - @java.lang.Deprecated - java.util.List getActionsList(); - /** - * - * - *
-   * The list of derived action names for the tool.
-   * 
- * - * repeated string actions = 6 [deprecated = true]; - * - * @deprecated google.cloud.dialogflow.cx.v3beta1.Tool.actions is deprecated. See - * google/cloud/dialogflow/cx/v3beta1/tool.proto;l=458 - * @return The count of actions. - */ - @java.lang.Deprecated - int getActionsCount(); - /** - * - * - *
-   * The list of derived action names for the tool.
-   * 
- * - * repeated string actions = 6 [deprecated = true]; - * - * @deprecated google.cloud.dialogflow.cx.v3beta1.Tool.actions is deprecated. See - * google/cloud/dialogflow/cx/v3beta1/tool.proto;l=458 - * @param index The index of the element to return. - * @return The actions at the given index. - */ - @java.lang.Deprecated - java.lang.String getActions(int index); - /** - * - * - *
-   * The list of derived action names for the tool.
-   * 
- * - * repeated string actions = 6 [deprecated = true]; - * - * @deprecated google.cloud.dialogflow.cx.v3beta1.Tool.actions is deprecated. See - * google/cloud/dialogflow/cx/v3beta1/tool.proto;l=458 - * @param index The index of the value to return. - * @return The bytes of the actions at the given index. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getActionsBytes(int index); - - /** - * - * - *
-   * The list of derived type schemas for the tool.
-   * 
- * - * repeated string schemas = 7 [deprecated = true]; - * - * @deprecated google.cloud.dialogflow.cx.v3beta1.Tool.schemas is deprecated. See - * google/cloud/dialogflow/cx/v3beta1/tool.proto;l=461 - * @return A list containing the schemas. - */ - @java.lang.Deprecated - java.util.List getSchemasList(); - /** - * - * - *
-   * The list of derived type schemas for the tool.
-   * 
- * - * repeated string schemas = 7 [deprecated = true]; - * - * @deprecated google.cloud.dialogflow.cx.v3beta1.Tool.schemas is deprecated. See - * google/cloud/dialogflow/cx/v3beta1/tool.proto;l=461 - * @return The count of schemas. - */ - @java.lang.Deprecated - int getSchemasCount(); - /** - * - * - *
-   * The list of derived type schemas for the tool.
-   * 
- * - * repeated string schemas = 7 [deprecated = true]; - * - * @deprecated google.cloud.dialogflow.cx.v3beta1.Tool.schemas is deprecated. See - * google/cloud/dialogflow/cx/v3beta1/tool.proto;l=461 - * @param index The index of the element to return. - * @return The schemas at the given index. - */ - @java.lang.Deprecated - java.lang.String getSchemas(int index); - /** - * - * - *
-   * The list of derived type schemas for the tool.
-   * 
- * - * repeated string schemas = 7 [deprecated = true]; - * - * @deprecated google.cloud.dialogflow.cx.v3beta1.Tool.schemas is deprecated. See - * google/cloud/dialogflow/cx/v3beta1/tool.proto;l=461 - * @param index The index of the value to return. - * @return The bytes of the schemas at the given index. - */ - @java.lang.Deprecated - com.google.protobuf.ByteString getSchemasBytes(int index); - /** * * diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolProto.java index abc8650c4e33..24224544a7fb 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolProto.java @@ -160,104 +160,103 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "beta1.ToolB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.g" + "oogle.protobuf.FieldMask\"X\n\021DeleteToolRe" + "quest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036dialogflow." - + "googleapis.com/Tool\022\r\n\005force\030\002 \001(\010\"\306\022\n\004T" + + "googleapis.com/Tool\022\r\n\005force\030\002 \001(\010\"\234\022\n\004T" + "ool\022\014\n\004name\030\001 \001(\t\022\031\n\014display_name\030\002 \001(\tB" - + "\003\340A\002\022\030\n\013description\030\003 \001(\tB\003\340A\002\022\023\n\007action" - + "s\030\006 \003(\tB\002\030\001\022\023\n\007schemas\030\007 \003(\tB\002\030\001\022M\n\ropen" - + "_api_spec\030\004 \001(\01324.google.cloud.dialogflo" - + "w.cx.v3beta1.Tool.OpenApiToolH\000\022Q\n\017data_" - + "store_spec\030\010 \001(\01326.google.cloud.dialogfl" - + "ow.cx.v3beta1.Tool.DataStoreToolH\000\022P\n\016ex" - + "tension_spec\030\013 \001(\01326.google.cloud.dialog" - + "flow.cx.v3beta1.Tool.ExtensionToolH\000\022N\n\r" - + "function_spec\030\r \001(\01325.google.cloud.dialo" - + "gflow.cx.v3beta1.Tool.FunctionToolH\000\022I\n\t" - + "tool_type\030\014 \001(\01621.google.cloud.dialogflo" - + "w.cx.v3beta1.Tool.ToolTypeB\003\340A\003\032\326\001\n\013Open" - + "ApiTool\022\032\n\013text_schema\030\001 \001(\tB\003\340A\002H\000\022T\n\016a" - + "uthentication\030\002 \001(\01327.google.cloud.dialo" - + "gflow.cx.v3beta1.Tool.AuthenticationB\003\340A" - + "\001\022K\n\ntls_config\030\003 \001(\01322.google.cloud.dia" - + "logflow.cx.v3beta1.Tool.TLSConfigB\003\340A\001B\010" - + "\n\006schema\032\344\001\n\rDataStoreTool\022\\\n\026data_store" - + "_connections\030\001 \003(\01327.google.cloud.dialog" - + "flow.cx.v3beta1.DataStoreConnectionB\003\340A\002" - + "\022c\n\017fallback_prompt\030\003 \001(\0132E.google.cloud" - + ".dialogflow.cx.v3beta1.Tool.DataStoreToo" - + "l.FallbackPromptB\003\340A\002\032\020\n\016FallbackPrompt\032" - + "\"\n\rExtensionTool\022\021\n\004name\030\001 \001(\tB\003\340A\002\032w\n\014F" - + "unctionTool\0222\n\014input_schema\030\001 \001(\0132\027.goog" - + "le.protobuf.StructB\003\340A\001\0223\n\routput_schema" - + "\030\002 \001(\0132\027.google.protobuf.StructB\003\340A\001\032\203\007\n" - + "\016Authentication\022^\n\016api_key_config\030\001 \001(\0132" - + "D.google.cloud.dialogflow.cx.v3beta1.Too" - + "l.Authentication.ApiKeyConfigH\000\022[\n\014oauth" - + "_config\030\002 \001(\0132C.google.cloud.dialogflow." - + "cx.v3beta1.Tool.Authentication.OAuthConf" - + "igH\000\022s\n\031service_agent_auth_config\030\003 \001(\0132" - + "N.google.cloud.dialogflow.cx.v3beta1.Too" - + "l.Authentication.ServiceAgentAuthConfigH" - + "\000\032\243\001\n\014ApiKeyConfig\022\025\n\010key_name\030\001 \001(\tB\003\340A" - + "\002\022\024\n\007api_key\030\002 \001(\tB\003\340A\002\022f\n\020request_locat" - + "ion\030\003 \001(\0162G.google.cloud.dialogflow.cx.v" - + "3beta1.Tool.Authentication.RequestLocati" - + "onB\003\340A\002\032\234\002\n\013OAuthConfig\022q\n\020oauth_grant_t" - + "ype\030\001 \001(\0162R.google.cloud.dialogflow.cx.v" - + "3beta1.Tool.Authentication.OAuthConfig.O" - + "authGrantTypeB\003\340A\002\022\026\n\tclient_id\030\002 \001(\tB\003\340" - + "A\002\022\032\n\rclient_secret\030\003 \001(\tB\003\340A\002\022\033\n\016token_" - + "endpoint\030\004 \001(\tB\003\340A\002\"I\n\016OauthGrantType\022 \n" - + "\034OAUTH_GRANT_TYPE_UNSPECIFIED\020\000\022\025\n\021CLIEN" - + "T_CREDENTIAL\020\001\032\030\n\026ServiceAgentAuthConfig" - + "\"Q\n\017RequestLocation\022 \n\034REQUEST_LOCATION_" - + "UNSPECIFIED\020\000\022\n\n\006HEADER\020\001\022\020\n\014QUERY_STRIN" - + "G\020\002B\r\n\013auth_config\032\225\001\n\tTLSConfig\022P\n\010ca_c" - + "erts\030\001 \003(\01329.google.cloud.dialogflow.cx." - + "v3beta1.Tool.TLSConfig.CACertB\003\340A\002\0326\n\006CA" - + "Cert\022\031\n\014display_name\030\001 \001(\tB\003\340A\002\022\021\n\004cert\030" - + "\002 \001(\014B\003\340A\002\"L\n\010ToolType\022\031\n\025TOOL_TYPE_UNSP" - + "ECIFIED\020\000\022\023\n\017CUSTOMIZED_TOOL\020\001\022\020\n\014BUILTI" - + "N_TOOL\020\002:h\352Ae\n\036dialogflow.googleapis.com" - + "/Tool\022Cprojects/{project}/locations/{loc" - + "ation}/agents/{agent}/tools/{tool}B\017\n\rsp" - + "ecification\"\025\n\023ExportToolsMetadata2\221\n\n\005T" - + "ools\022\302\001\n\nCreateTool\0225.google.cloud.dialo" - + "gflow.cx.v3beta1.CreateToolRequest\032(.goo" - + "gle.cloud.dialogflow.cx.v3beta1.Tool\"S\332A" - + "\013parent,tool\202\323\344\223\002?\"7/v3beta1/{parent=pro" - + "jects/*/locations/*/agents/*}/tools:\004too" - + "l\022\302\001\n\tListTools\0224.google.cloud.dialogflo" - + "w.cx.v3beta1.ListToolsRequest\0325.google.c" - + "loud.dialogflow.cx.v3beta1.ListToolsResp" - + "onse\"H\332A\006parent\202\323\344\223\0029\0227/v3beta1/{parent=" - + "projects/*/locations/*/agents/*}/tools\022\334" - + "\001\n\013ExportTools\0226.google.cloud.dialogflow" - + ".cx.v3beta1.ExportToolsRequest\032\035.google." - + "longrunning.Operation\"v\312A*\n\023ExportToolsR" - + "esponse\022\023ExportToolsMetadata\202\323\344\223\002C\">/v3b" - + "eta1/{parent=projects/*/locations/*/agen" - + "ts/*}/tools:export:\001*\022\257\001\n\007GetTool\0222.goog" - + "le.cloud.dialogflow.cx.v3beta1.GetToolRe" - + "quest\032(.google.cloud.dialogflow.cx.v3bet" - + "a1.Tool\"F\332A\004name\202\323\344\223\0029\0227/v3beta1/{name=p" - + "rojects/*/locations/*/agents/*/tools/*}\022" - + "\314\001\n\nUpdateTool\0225.google.cloud.dialogflow" - + ".cx.v3beta1.UpdateToolRequest\032(.google.c" - + "loud.dialogflow.cx.v3beta1.Tool\"]\332A\020tool" - + ",update_mask\202\323\344\223\002D2/v3bet" + + "a1/{parent=projects/*/locations/*/agents" + + "/*}/tools:export:\001*\022\257\001\n\007GetTool\0222.google" + + ".cloud.dialogflow.cx.v3beta1.GetToolRequ" + + "est\032(.google.cloud.dialogflow.cx.v3beta1" + + ".Tool\"F\332A\004name\202\323\344\223\0029\0227/v3beta1/{name=pro" + + "jects/*/locations/*/agents/*/tools/*}\022\314\001" + + "\n\nUpdateTool\0225.google.cloud.dialogflow.c" + + "x.v3beta1.UpdateToolRequest\032(.google.clo" + + "ud.dialogflow.cx.v3beta1.Tool\"]\332A\020tool,u" + + "pdate_mask\202\323\344\223\002D2 builder) { private ToolUse() { tool_ = ""; action_ = ""; - inputParameters_ = java.util.Collections.emptyList(); - outputParameters_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -66,6 +64,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.dialogflow.cx.v3beta1.ToolUse.Builder.class); } + private int bitField0_; public static final int TOOL_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -176,155 +175,116 @@ public com.google.protobuf.ByteString getActionBytes() { } } - public static final int INPUT_PARAMETERS_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private java.util.List inputParameters_; + public static final int INPUT_ACTION_PARAMETERS_FIELD_NUMBER = 5; + private com.google.protobuf.Struct inputActionParameters_; /** * * *
-   * A list of input parameters for the action.
+   * Optional. A list of input parameters for the action.
    * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 3; - */ - @java.lang.Override - public java.util.List - getInputParametersList() { - return inputParameters_; - } - /** - * - * - *
-   * A list of input parameters for the action.
-   * 
+ * + * .google.protobuf.Struct input_action_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 3; + * @return Whether the inputActionParameters field is set. */ @java.lang.Override - public java.util.List - getInputParametersOrBuilderList() { - return inputParameters_; + public boolean hasInputActionParameters() { + return ((bitField0_ & 0x00000001) != 0); } /** * * *
-   * A list of input parameters for the action.
+   * Optional. A list of input parameters for the action.
    * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 3; - */ - @java.lang.Override - public int getInputParametersCount() { - return inputParameters_.size(); - } - /** - * - * - *
-   * A list of input parameters for the action.
-   * 
+ * + * .google.protobuf.Struct input_action_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 3; + * @return The inputActionParameters. */ @java.lang.Override - public com.google.cloud.dialogflow.cx.v3beta1.ActionParameter getInputParameters(int index) { - return inputParameters_.get(index); + public com.google.protobuf.Struct getInputActionParameters() { + return inputActionParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : inputActionParameters_; } /** * * *
-   * A list of input parameters for the action.
+   * Optional. A list of input parameters for the action.
    * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 3; + * + * .google.protobuf.Struct input_action_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.dialogflow.cx.v3beta1.ActionParameterOrBuilder - getInputParametersOrBuilder(int index) { - return inputParameters_.get(index); + public com.google.protobuf.StructOrBuilder getInputActionParametersOrBuilder() { + return inputActionParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : inputActionParameters_; } - public static final int OUTPUT_PARAMETERS_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private java.util.List outputParameters_; + public static final int OUTPUT_ACTION_PARAMETERS_FIELD_NUMBER = 6; + private com.google.protobuf.Struct outputActionParameters_; /** * * *
-   * A list of output parameters generated by the action.
+   * Optional. A list of output parameters generated by the action.
    * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 4; + * + * .google.protobuf.Struct output_action_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; * - */ - @java.lang.Override - public java.util.List - getOutputParametersList() { - return outputParameters_; - } - /** - * - * - *
-   * A list of output parameters generated by the action.
-   * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 4; - * + * @return Whether the outputActionParameters field is set. */ @java.lang.Override - public java.util.List - getOutputParametersOrBuilderList() { - return outputParameters_; + public boolean hasOutputActionParameters() { + return ((bitField0_ & 0x00000002) != 0); } /** * * *
-   * A list of output parameters generated by the action.
+   * Optional. A list of output parameters generated by the action.
    * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 4; + * + * .google.protobuf.Struct output_action_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; * - */ - @java.lang.Override - public int getOutputParametersCount() { - return outputParameters_.size(); - } - /** - * - * - *
-   * A list of output parameters generated by the action.
-   * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 4; - * + * @return The outputActionParameters. */ @java.lang.Override - public com.google.cloud.dialogflow.cx.v3beta1.ActionParameter getOutputParameters(int index) { - return outputParameters_.get(index); + public com.google.protobuf.Struct getOutputActionParameters() { + return outputActionParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : outputActionParameters_; } /** * * *
-   * A list of output parameters generated by the action.
+   * Optional. A list of output parameters generated by the action.
    * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 4; + * + * .google.protobuf.Struct output_action_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.cloud.dialogflow.cx.v3beta1.ActionParameterOrBuilder - getOutputParametersOrBuilder(int index) { - return outputParameters_.get(index); + public com.google.protobuf.StructOrBuilder getOutputActionParametersOrBuilder() { + return outputActionParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : outputActionParameters_; } private byte memoizedIsInitialized = -1; @@ -347,11 +307,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(action_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, action_); } - for (int i = 0; i < inputParameters_.size(); i++) { - output.writeMessage(3, inputParameters_.get(i)); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getInputActionParameters()); } - for (int i = 0; i < outputParameters_.size(); i++) { - output.writeMessage(4, outputParameters_.get(i)); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getOutputActionParameters()); } getUnknownFields().writeTo(output); } @@ -368,11 +328,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(action_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, action_); } - for (int i = 0; i < inputParameters_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, inputParameters_.get(i)); + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(5, getInputActionParameters()); } - for (int i = 0; i < outputParameters_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, outputParameters_.get(i)); + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(6, getOutputActionParameters()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -392,8 +354,14 @@ public boolean equals(final java.lang.Object obj) { if (!getTool().equals(other.getTool())) return false; if (!getAction().equals(other.getAction())) return false; - if (!getInputParametersList().equals(other.getInputParametersList())) return false; - if (!getOutputParametersList().equals(other.getOutputParametersList())) return false; + if (hasInputActionParameters() != other.hasInputActionParameters()) return false; + if (hasInputActionParameters()) { + if (!getInputActionParameters().equals(other.getInputActionParameters())) return false; + } + if (hasOutputActionParameters() != other.hasOutputActionParameters()) return false; + if (hasOutputActionParameters()) { + if (!getOutputActionParameters().equals(other.getOutputActionParameters())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -409,13 +377,13 @@ public int hashCode() { hash = (53 * hash) + getTool().hashCode(); hash = (37 * hash) + ACTION_FIELD_NUMBER; hash = (53 * hash) + getAction().hashCode(); - if (getInputParametersCount() > 0) { - hash = (37 * hash) + INPUT_PARAMETERS_FIELD_NUMBER; - hash = (53 * hash) + getInputParametersList().hashCode(); + if (hasInputActionParameters()) { + hash = (37 * hash) + INPUT_ACTION_PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getInputActionParameters().hashCode(); } - if (getOutputParametersCount() > 0) { - hash = (37 * hash) + OUTPUT_PARAMETERS_FIELD_NUMBER; - hash = (53 * hash) + getOutputParametersList().hashCode(); + if (hasOutputActionParameters()) { + hash = (37 * hash) + OUTPUT_ACTION_PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getOutputActionParameters().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; @@ -546,10 +514,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dialogflow.cx.v3beta1.ToolUse.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getInputActionParametersFieldBuilder(); + getOutputActionParametersFieldBuilder(); + } } @java.lang.Override @@ -558,20 +536,16 @@ public Builder clear() { bitField0_ = 0; tool_ = ""; action_ = ""; - if (inputParametersBuilder_ == null) { - inputParameters_ = java.util.Collections.emptyList(); - } else { - inputParameters_ = null; - inputParametersBuilder_.clear(); + inputActionParameters_ = null; + if (inputActionParametersBuilder_ != null) { + inputActionParametersBuilder_.dispose(); + inputActionParametersBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000004); - if (outputParametersBuilder_ == null) { - outputParameters_ = java.util.Collections.emptyList(); - } else { - outputParameters_ = null; - outputParametersBuilder_.clear(); + outputActionParameters_ = null; + if (outputActionParametersBuilder_ != null) { + outputActionParametersBuilder_.dispose(); + outputActionParametersBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000008); return this; } @@ -599,7 +573,6 @@ public com.google.cloud.dialogflow.cx.v3beta1.ToolUse build() { public com.google.cloud.dialogflow.cx.v3beta1.ToolUse buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ToolUse result = new com.google.cloud.dialogflow.cx.v3beta1.ToolUse(this); - buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -607,27 +580,6 @@ public com.google.cloud.dialogflow.cx.v3beta1.ToolUse buildPartial() { return result; } - private void buildPartialRepeatedFields(com.google.cloud.dialogflow.cx.v3beta1.ToolUse result) { - if (inputParametersBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - inputParameters_ = java.util.Collections.unmodifiableList(inputParameters_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.inputParameters_ = inputParameters_; - } else { - result.inputParameters_ = inputParametersBuilder_.build(); - } - if (outputParametersBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - outputParameters_ = java.util.Collections.unmodifiableList(outputParameters_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.outputParameters_ = outputParameters_; - } else { - result.outputParameters_ = outputParametersBuilder_.build(); - } - } - private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.ToolUse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -636,6 +588,22 @@ private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.ToolUse result if (((from_bitField0_ & 0x00000002) != 0)) { result.action_ = action_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.inputActionParameters_ = + inputActionParametersBuilder_ == null + ? inputActionParameters_ + : inputActionParametersBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.outputActionParameters_ = + outputActionParametersBuilder_ == null + ? outputActionParameters_ + : outputActionParametersBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -693,59 +661,11 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ToolUse other) { bitField0_ |= 0x00000002; onChanged(); } - if (inputParametersBuilder_ == null) { - if (!other.inputParameters_.isEmpty()) { - if (inputParameters_.isEmpty()) { - inputParameters_ = other.inputParameters_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureInputParametersIsMutable(); - inputParameters_.addAll(other.inputParameters_); - } - onChanged(); - } - } else { - if (!other.inputParameters_.isEmpty()) { - if (inputParametersBuilder_.isEmpty()) { - inputParametersBuilder_.dispose(); - inputParametersBuilder_ = null; - inputParameters_ = other.inputParameters_; - bitField0_ = (bitField0_ & ~0x00000004); - inputParametersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getInputParametersFieldBuilder() - : null; - } else { - inputParametersBuilder_.addAllMessages(other.inputParameters_); - } - } + if (other.hasInputActionParameters()) { + mergeInputActionParameters(other.getInputActionParameters()); } - if (outputParametersBuilder_ == null) { - if (!other.outputParameters_.isEmpty()) { - if (outputParameters_.isEmpty()) { - outputParameters_ = other.outputParameters_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureOutputParametersIsMutable(); - outputParameters_.addAll(other.outputParameters_); - } - onChanged(); - } - } else { - if (!other.outputParameters_.isEmpty()) { - if (outputParametersBuilder_.isEmpty()) { - outputParametersBuilder_.dispose(); - outputParametersBuilder_ = null; - outputParameters_ = other.outputParameters_; - bitField0_ = (bitField0_ & ~0x00000008); - outputParametersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getOutputParametersFieldBuilder() - : null; - } else { - outputParametersBuilder_.addAllMessages(other.outputParameters_); - } - } + if (other.hasOutputActionParameters()) { + mergeOutputActionParameters(other.getOutputActionParameters()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -785,34 +705,20 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 - case 26: + case 42: { - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter m = - input.readMessage( - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.parser(), - extensionRegistry); - if (inputParametersBuilder_ == null) { - ensureInputParametersIsMutable(); - inputParameters_.add(m); - } else { - inputParametersBuilder_.addMessage(m); - } + input.readMessage( + getInputActionParametersFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; break; - } // case 26 - case 34: + } // case 42 + case 50: { - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter m = - input.readMessage( - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.parser(), - extensionRegistry); - if (outputParametersBuilder_ == null) { - ensureOutputParametersIsMutable(); - outputParameters_.add(m); - } else { - outputParametersBuilder_.addMessage(m); - } + input.readMessage( + getOutputActionParametersFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; break; - } // case 34 + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1064,230 +970,121 @@ public Builder setActionBytes(com.google.protobuf.ByteString value) { return this; } - private java.util.List - inputParameters_ = java.util.Collections.emptyList(); - - private void ensureInputParametersIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - inputParameters_ = - new java.util.ArrayList( - inputParameters_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter, - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder, - com.google.cloud.dialogflow.cx.v3beta1.ActionParameterOrBuilder> - inputParametersBuilder_; - - /** - * - * - *
-     * A list of input parameters for the action.
-     * 
- * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 3; - * - */ - public java.util.List - getInputParametersList() { - if (inputParametersBuilder_ == null) { - return java.util.Collections.unmodifiableList(inputParameters_); - } else { - return inputParametersBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * A list of input parameters for the action.
-     * 
- * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 3; - * - */ - public int getInputParametersCount() { - if (inputParametersBuilder_ == null) { - return inputParameters_.size(); - } else { - return inputParametersBuilder_.getCount(); - } - } + private com.google.protobuf.Struct inputActionParameters_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + inputActionParametersBuilder_; /** * * *
-     * A list of input parameters for the action.
+     * Optional. A list of input parameters for the action.
      * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 3; + * + * .google.protobuf.Struct input_action_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; * - */ - public com.google.cloud.dialogflow.cx.v3beta1.ActionParameter getInputParameters(int index) { - if (inputParametersBuilder_ == null) { - return inputParameters_.get(index); - } else { - return inputParametersBuilder_.getMessage(index); - } - } - /** * - * - *
-     * A list of input parameters for the action.
-     * 
- * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 3; - * + * @return Whether the inputActionParameters field is set. */ - public Builder setInputParameters( - int index, com.google.cloud.dialogflow.cx.v3beta1.ActionParameter value) { - if (inputParametersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInputParametersIsMutable(); - inputParameters_.set(index, value); - onChanged(); - } else { - inputParametersBuilder_.setMessage(index, value); - } - return this; + public boolean hasInputActionParameters() { + return ((bitField0_ & 0x00000004) != 0); } /** * * *
-     * A list of input parameters for the action.
+     * Optional. A list of input parameters for the action.
      * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 3; + * + * .google.protobuf.Struct input_action_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; * - */ - public Builder setInputParameters( - int index, com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder builderForValue) { - if (inputParametersBuilder_ == null) { - ensureInputParametersIsMutable(); - inputParameters_.set(index, builderForValue.build()); - onChanged(); - } else { - inputParametersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of input parameters for the action.
-     * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 3; - * + * @return The inputActionParameters. */ - public Builder addInputParameters( - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter value) { - if (inputParametersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInputParametersIsMutable(); - inputParameters_.add(value); - onChanged(); + public com.google.protobuf.Struct getInputActionParameters() { + if (inputActionParametersBuilder_ == null) { + return inputActionParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : inputActionParameters_; } else { - inputParametersBuilder_.addMessage(value); + return inputActionParametersBuilder_.getMessage(); } - return this; } /** * * *
-     * A list of input parameters for the action.
+     * Optional. A list of input parameters for the action.
      * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 3; + * + * .google.protobuf.Struct input_action_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addInputParameters( - int index, com.google.cloud.dialogflow.cx.v3beta1.ActionParameter value) { - if (inputParametersBuilder_ == null) { + public Builder setInputActionParameters(com.google.protobuf.Struct value) { + if (inputActionParametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureInputParametersIsMutable(); - inputParameters_.add(index, value); - onChanged(); + inputActionParameters_ = value; } else { - inputParametersBuilder_.addMessage(index, value); + inputActionParametersBuilder_.setMessage(value); } + bitField0_ |= 0x00000004; + onChanged(); return this; } /** * * *
-     * A list of input parameters for the action.
+     * Optional. A list of input parameters for the action.
      * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 3; + * + * .google.protobuf.Struct input_action_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addInputParameters( - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder builderForValue) { - if (inputParametersBuilder_ == null) { - ensureInputParametersIsMutable(); - inputParameters_.add(builderForValue.build()); - onChanged(); + public Builder setInputActionParameters(com.google.protobuf.Struct.Builder builderForValue) { + if (inputActionParametersBuilder_ == null) { + inputActionParameters_ = builderForValue.build(); } else { - inputParametersBuilder_.addMessage(builderForValue.build()); + inputActionParametersBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00000004; + onChanged(); return this; } /** * * *
-     * A list of input parameters for the action.
+     * Optional. A list of input parameters for the action.
      * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 3; + * + * .google.protobuf.Struct input_action_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addInputParameters( - int index, com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder builderForValue) { - if (inputParametersBuilder_ == null) { - ensureInputParametersIsMutable(); - inputParameters_.add(index, builderForValue.build()); - onChanged(); + public Builder mergeInputActionParameters(com.google.protobuf.Struct value) { + if (inputActionParametersBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && inputActionParameters_ != null + && inputActionParameters_ != com.google.protobuf.Struct.getDefaultInstance()) { + getInputActionParametersBuilder().mergeFrom(value); + } else { + inputActionParameters_ = value; + } } else { - inputParametersBuilder_.addMessage(index, builderForValue.build()); + inputActionParametersBuilder_.mergeFrom(value); } - return this; - } - /** - * - * - *
-     * A list of input parameters for the action.
-     * 
- * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 3; - * - */ - public Builder addAllInputParameters( - java.lang.Iterable - values) { - if (inputParametersBuilder_ == null) { - ensureInputParametersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inputParameters_); + if (inputActionParameters_ != null) { + bitField0_ |= 0x00000004; onChanged(); - } else { - inputParametersBuilder_.addAllMessages(values); } return this; } @@ -1295,402 +1092,202 @@ public Builder addAllInputParameters( * * *
-     * A list of input parameters for the action.
+     * Optional. A list of input parameters for the action.
      * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 3; - * - */ - public Builder clearInputParameters() { - if (inputParametersBuilder_ == null) { - inputParameters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - inputParametersBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A list of input parameters for the action.
-     * 
- * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 3; + * + * .google.protobuf.Struct input_action_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder removeInputParameters(int index) { - if (inputParametersBuilder_ == null) { - ensureInputParametersIsMutable(); - inputParameters_.remove(index); - onChanged(); - } else { - inputParametersBuilder_.remove(index); + public Builder clearInputActionParameters() { + bitField0_ = (bitField0_ & ~0x00000004); + inputActionParameters_ = null; + if (inputActionParametersBuilder_ != null) { + inputActionParametersBuilder_.dispose(); + inputActionParametersBuilder_ = null; } + onChanged(); return this; } /** * * *
-     * A list of input parameters for the action.
-     * 
- * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 3; - * - */ - public com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder getInputParametersBuilder( - int index) { - return getInputParametersFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * A list of input parameters for the action.
+     * Optional. A list of input parameters for the action.
      * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 3; + * + * .google.protobuf.Struct input_action_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.dialogflow.cx.v3beta1.ActionParameterOrBuilder - getInputParametersOrBuilder(int index) { - if (inputParametersBuilder_ == null) { - return inputParameters_.get(index); - } else { - return inputParametersBuilder_.getMessageOrBuilder(index); - } + public com.google.protobuf.Struct.Builder getInputActionParametersBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getInputActionParametersFieldBuilder().getBuilder(); } /** * * *
-     * A list of input parameters for the action.
+     * Optional. A list of input parameters for the action.
      * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 3; + * + * .google.protobuf.Struct input_action_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - public java.util.List - getInputParametersOrBuilderList() { - if (inputParametersBuilder_ != null) { - return inputParametersBuilder_.getMessageOrBuilderList(); + public com.google.protobuf.StructOrBuilder getInputActionParametersOrBuilder() { + if (inputActionParametersBuilder_ != null) { + return inputActionParametersBuilder_.getMessageOrBuilder(); } else { - return java.util.Collections.unmodifiableList(inputParameters_); + return inputActionParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : inputActionParameters_; } } /** * * *
-     * A list of input parameters for the action.
-     * 
- * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 3; - * - */ - public com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder - addInputParametersBuilder() { - return getInputParametersFieldBuilder() - .addBuilder(com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.getDefaultInstance()); - } - /** - * - * - *
-     * A list of input parameters for the action.
-     * 
- * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 3; - * - */ - public com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder addInputParametersBuilder( - int index) { - return getInputParametersFieldBuilder() - .addBuilder( - index, com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.getDefaultInstance()); - } - /** - * - * - *
-     * A list of input parameters for the action.
+     * Optional. A list of input parameters for the action.
      * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 3; + * + * .google.protobuf.Struct input_action_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - public java.util.List - getInputParametersBuilderList() { - return getInputParametersFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter, - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder, - com.google.cloud.dialogflow.cx.v3beta1.ActionParameterOrBuilder> - getInputParametersFieldBuilder() { - if (inputParametersBuilder_ == null) { - inputParametersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter, - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder, - com.google.cloud.dialogflow.cx.v3beta1.ActionParameterOrBuilder>( - inputParameters_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - inputParameters_ = null; - } - return inputParametersBuilder_; - } - - private java.util.List - outputParameters_ = java.util.Collections.emptyList(); - - private void ensureOutputParametersIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - outputParameters_ = - new java.util.ArrayList( - outputParameters_); - bitField0_ |= 0x00000008; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + getInputActionParametersFieldBuilder() { + if (inputActionParametersBuilder_ == null) { + inputActionParametersBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getInputActionParameters(), getParentForChildren(), isClean()); + inputActionParameters_ = null; } + return inputActionParametersBuilder_; } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter, - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder, - com.google.cloud.dialogflow.cx.v3beta1.ActionParameterOrBuilder> - outputParametersBuilder_; - - /** - * - * - *
-     * A list of output parameters generated by the action.
-     * 
- * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 4; - * - */ - public java.util.List - getOutputParametersList() { - if (outputParametersBuilder_ == null) { - return java.util.Collections.unmodifiableList(outputParameters_); - } else { - return outputParametersBuilder_.getMessageList(); - } - } + private com.google.protobuf.Struct outputActionParameters_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + outputActionParametersBuilder_; /** * * *
-     * A list of output parameters generated by the action.
+     * Optional. A list of output parameters generated by the action.
      * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 4; + * + * .google.protobuf.Struct output_action_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; * - */ - public int getOutputParametersCount() { - if (outputParametersBuilder_ == null) { - return outputParameters_.size(); - } else { - return outputParametersBuilder_.getCount(); - } - } - /** - * - * - *
-     * A list of output parameters generated by the action.
-     * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 4; - * + * @return Whether the outputActionParameters field is set. */ - public com.google.cloud.dialogflow.cx.v3beta1.ActionParameter getOutputParameters(int index) { - if (outputParametersBuilder_ == null) { - return outputParameters_.get(index); - } else { - return outputParametersBuilder_.getMessage(index); - } + public boolean hasOutputActionParameters() { + return ((bitField0_ & 0x00000008) != 0); } /** * * *
-     * A list of output parameters generated by the action.
+     * Optional. A list of output parameters generated by the action.
      * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 4; + * + * .google.protobuf.Struct output_action_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; * - */ - public Builder setOutputParameters( - int index, com.google.cloud.dialogflow.cx.v3beta1.ActionParameter value) { - if (outputParametersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutputParametersIsMutable(); - outputParameters_.set(index, value); - onChanged(); - } else { - outputParametersBuilder_.setMessage(index, value); - } - return this; - } - /** * - * - *
-     * A list of output parameters generated by the action.
-     * 
- * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 4; - * + * @return The outputActionParameters. */ - public Builder setOutputParameters( - int index, com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder builderForValue) { - if (outputParametersBuilder_ == null) { - ensureOutputParametersIsMutable(); - outputParameters_.set(index, builderForValue.build()); - onChanged(); + public com.google.protobuf.Struct getOutputActionParameters() { + if (outputActionParametersBuilder_ == null) { + return outputActionParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : outputActionParameters_; } else { - outputParametersBuilder_.setMessage(index, builderForValue.build()); + return outputActionParametersBuilder_.getMessage(); } - return this; } /** * * *
-     * A list of output parameters generated by the action.
+     * Optional. A list of output parameters generated by the action.
      * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 4; - * - */ - public Builder addOutputParameters( - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter value) { - if (outputParametersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutputParametersIsMutable(); - outputParameters_.add(value); - onChanged(); - } else { - outputParametersBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * A list of output parameters generated by the action.
-     * 
- * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 4; + * + * .google.protobuf.Struct output_action_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addOutputParameters( - int index, com.google.cloud.dialogflow.cx.v3beta1.ActionParameter value) { - if (outputParametersBuilder_ == null) { + public Builder setOutputActionParameters(com.google.protobuf.Struct value) { + if (outputActionParametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureOutputParametersIsMutable(); - outputParameters_.add(index, value); - onChanged(); - } else { - outputParametersBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * A list of output parameters generated by the action.
-     * 
- * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 4; - * - */ - public Builder addOutputParameters( - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder builderForValue) { - if (outputParametersBuilder_ == null) { - ensureOutputParametersIsMutable(); - outputParameters_.add(builderForValue.build()); - onChanged(); + outputActionParameters_ = value; } else { - outputParametersBuilder_.addMessage(builderForValue.build()); + outputActionParametersBuilder_.setMessage(value); } + bitField0_ |= 0x00000008; + onChanged(); return this; } /** * * *
-     * A list of output parameters generated by the action.
+     * Optional. A list of output parameters generated by the action.
      * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 4; + * + * .google.protobuf.Struct output_action_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addOutputParameters( - int index, com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder builderForValue) { - if (outputParametersBuilder_ == null) { - ensureOutputParametersIsMutable(); - outputParameters_.add(index, builderForValue.build()); - onChanged(); + public Builder setOutputActionParameters(com.google.protobuf.Struct.Builder builderForValue) { + if (outputActionParametersBuilder_ == null) { + outputActionParameters_ = builderForValue.build(); } else { - outputParametersBuilder_.addMessage(index, builderForValue.build()); + outputActionParametersBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00000008; + onChanged(); return this; } /** * * *
-     * A list of output parameters generated by the action.
+     * Optional. A list of output parameters generated by the action.
      * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 4; + * + * .google.protobuf.Struct output_action_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder addAllOutputParameters( - java.lang.Iterable - values) { - if (outputParametersBuilder_ == null) { - ensureOutputParametersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, outputParameters_); - onChanged(); + public Builder mergeOutputActionParameters(com.google.protobuf.Struct value) { + if (outputActionParametersBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && outputActionParameters_ != null + && outputActionParameters_ != com.google.protobuf.Struct.getDefaultInstance()) { + getOutputActionParametersBuilder().mergeFrom(value); + } else { + outputActionParameters_ = value; + } } else { - outputParametersBuilder_.addAllMessages(values); + outputActionParametersBuilder_.mergeFrom(value); } - return this; - } - /** - * - * - *
-     * A list of output parameters generated by the action.
-     * 
- * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 4; - * - */ - public Builder clearOutputParameters() { - if (outputParametersBuilder_ == null) { - outputParameters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + if (outputActionParameters_ != null) { + bitField0_ |= 0x00000008; onChanged(); - } else { - outputParametersBuilder_.clear(); } return this; } @@ -1698,136 +1295,85 @@ public Builder clearOutputParameters() { * * *
-     * A list of output parameters generated by the action.
+     * Optional. A list of output parameters generated by the action.
      * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 4; + * + * .google.protobuf.Struct output_action_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder removeOutputParameters(int index) { - if (outputParametersBuilder_ == null) { - ensureOutputParametersIsMutable(); - outputParameters_.remove(index); - onChanged(); - } else { - outputParametersBuilder_.remove(index); + public Builder clearOutputActionParameters() { + bitField0_ = (bitField0_ & ~0x00000008); + outputActionParameters_ = null; + if (outputActionParametersBuilder_ != null) { + outputActionParametersBuilder_.dispose(); + outputActionParametersBuilder_ = null; } + onChanged(); return this; } /** * * *
-     * A list of output parameters generated by the action.
-     * 
- * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 4; - * - */ - public com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder - getOutputParametersBuilder(int index) { - return getOutputParametersFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * A list of output parameters generated by the action.
+     * Optional. A list of output parameters generated by the action.
      * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 4; + * + * .google.protobuf.Struct output_action_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.dialogflow.cx.v3beta1.ActionParameterOrBuilder - getOutputParametersOrBuilder(int index) { - if (outputParametersBuilder_ == null) { - return outputParameters_.get(index); - } else { - return outputParametersBuilder_.getMessageOrBuilder(index); - } + public com.google.protobuf.Struct.Builder getOutputActionParametersBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getOutputActionParametersFieldBuilder().getBuilder(); } /** * * *
-     * A list of output parameters generated by the action.
+     * Optional. A list of output parameters generated by the action.
      * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 4; + * + * .google.protobuf.Struct output_action_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public java.util.List - getOutputParametersOrBuilderList() { - if (outputParametersBuilder_ != null) { - return outputParametersBuilder_.getMessageOrBuilderList(); + public com.google.protobuf.StructOrBuilder getOutputActionParametersOrBuilder() { + if (outputActionParametersBuilder_ != null) { + return outputActionParametersBuilder_.getMessageOrBuilder(); } else { - return java.util.Collections.unmodifiableList(outputParameters_); + return outputActionParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : outputActionParameters_; } } /** * * *
-     * A list of output parameters generated by the action.
-     * 
- * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 4; - * - */ - public com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder - addOutputParametersBuilder() { - return getOutputParametersFieldBuilder() - .addBuilder(com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.getDefaultInstance()); - } - /** - * - * - *
-     * A list of output parameters generated by the action.
+     * Optional. A list of output parameters generated by the action.
      * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 4; - * - */ - public com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder - addOutputParametersBuilder(int index) { - return getOutputParametersFieldBuilder() - .addBuilder( - index, com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.getDefaultInstance()); - } - /** - * - * - *
-     * A list of output parameters generated by the action.
-     * 
- * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 4; + * + * .google.protobuf.Struct output_action_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public java.util.List - getOutputParametersBuilderList() { - return getOutputParametersFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter, - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder, - com.google.cloud.dialogflow.cx.v3beta1.ActionParameterOrBuilder> - getOutputParametersFieldBuilder() { - if (outputParametersBuilder_ == null) { - outputParametersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter, - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder, - com.google.cloud.dialogflow.cx.v3beta1.ActionParameterOrBuilder>( - outputParameters_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - outputParameters_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + getOutputActionParametersFieldBuilder() { + if (outputActionParametersBuilder_ == null) { + outputActionParametersBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getOutputActionParameters(), getParentForChildren(), isClean()); + outputActionParameters_ = null; } - return outputParametersBuilder_; + return outputActionParametersBuilder_; } @java.lang.Override diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolUseOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolUseOrBuilder.java index d5b5440b04f7..20f856f2769e 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolUseOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolUseOrBuilder.java @@ -86,110 +86,81 @@ public interface ToolUseOrBuilder * * *
-   * A list of input parameters for the action.
+   * Optional. A list of input parameters for the action.
    * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 3; - */ - java.util.List getInputParametersList(); - /** - * - * - *
-   * A list of input parameters for the action.
-   * 
+ * + * .google.protobuf.Struct input_action_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 3; + * @return Whether the inputActionParameters field is set. */ - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter getInputParameters(int index); + boolean hasInputActionParameters(); /** * * *
-   * A list of input parameters for the action.
+   * Optional. A list of input parameters for the action.
    * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 3; - */ - int getInputParametersCount(); - /** - * - * - *
-   * A list of input parameters for the action.
-   * 
+ * + * .google.protobuf.Struct input_action_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 3; + * @return The inputActionParameters. */ - java.util.List - getInputParametersOrBuilderList(); + com.google.protobuf.Struct getInputActionParameters(); /** * * *
-   * A list of input parameters for the action.
+   * Optional. A list of input parameters for the action.
    * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter input_parameters = 3; + * + * .google.protobuf.Struct input_action_parameters = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.dialogflow.cx.v3beta1.ActionParameterOrBuilder getInputParametersOrBuilder( - int index); + com.google.protobuf.StructOrBuilder getInputActionParametersOrBuilder(); /** * * *
-   * A list of output parameters generated by the action.
+   * Optional. A list of output parameters generated by the action.
    * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 4; + * + * .google.protobuf.Struct output_action_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; * - */ - java.util.List getOutputParametersList(); - /** * - * - *
-   * A list of output parameters generated by the action.
-   * 
- * - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 4; - * + * @return Whether the outputActionParameters field is set. */ - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter getOutputParameters(int index); + boolean hasOutputActionParameters(); /** * * *
-   * A list of output parameters generated by the action.
+   * Optional. A list of output parameters generated by the action.
    * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 4; + * + * .google.protobuf.Struct output_action_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; * - */ - int getOutputParametersCount(); - /** - * - * - *
-   * A list of output parameters generated by the action.
-   * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 4; - * + * @return The outputActionParameters. */ - java.util.List - getOutputParametersOrBuilderList(); + com.google.protobuf.Struct getOutputActionParameters(); /** * * *
-   * A list of output parameters generated by the action.
+   * Optional. A list of output parameters generated by the action.
    * 
* - * repeated .google.cloud.dialogflow.cx.v3beta1.ActionParameter output_parameters = 4; + * + * .google.protobuf.Struct output_action_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - com.google.cloud.dialogflow.cx.v3beta1.ActionParameterOrBuilder getOutputParametersOrBuilder( - int index); + com.google.protobuf.StructOrBuilder getOutputActionParametersOrBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/advanced_settings.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/advanced_settings.proto index d38b16075c64..18806c4109e6 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/advanced_settings.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/advanced_settings.proto @@ -77,6 +77,12 @@ message AdvancedSettings { // The digit that terminates a DTMF digit sequence. string finish_digit = 3; + + // Interdigit timeout setting for matching dtmf input to regex. + google.protobuf.Duration interdigit_timeout_duration = 6; + + // Endpoint timeout setting for matching dtmf input to regex. + google.protobuf.Duration endpointing_timeout_duration = 7; } // Define behaviors on logging. diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/agent.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/agent.proto index a8e7a1dc1d22..55f8c350a285 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/agent.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/agent.proto @@ -314,30 +314,29 @@ message Agent { // Speech recognition related settings. SpeechToTextSettings speech_to_text_settings = 13; - // Immutable. Name of the start flow in this agent. A start flow will be - // automatically created when the agent is created, and can only be deleted by - // deleting the agent. Format: `projects//locations//agents//flows/`. - string start_flow = 16 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { type: "dialogflow.googleapis.com/Flow" } - ]; - - // Optional. Name of the start playbook in this agent. A start playbook will - // be automatically created when the agent is created, and can only be deleted - // by deleting the agent. - // Format: `projects//locations//agents//playbooks/`. Currently only the - // default playbook with id - // "00000000-0000-0000-0000-000000000000" is allowed. - // - // Only one of `start_flow` or `start_playbook` should be set, but not both. - string start_playbook = 39 [ - (google.api.field_behavior) = OPTIONAL, - (google.api.resource_reference) = { + // The resource to start the conversations with for the agent. + oneof session_entry_resource { + // Name of the start flow in this agent. A start flow will be automatically + // created when the agent is created, and can only be deleted by deleting + // the agent. + // Format: `projects//locations//agents//flows/`. Currently only the default start + // flow with id "00000000-0000-0000-0000-000000000000" is allowed. + string start_flow = 16 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Flow" + }]; + + // Name of the start playbook in this agent. A start playbook will be + // automatically created when the agent is created, and can only be deleted + // by deleting the agent. + // Format: `projects//locations//agents//playbooks/`. Currently only the + // default playbook with id + // "00000000-0000-0000-0000-000000000000" is allowed. + string start_playbook = 39 [(google.api.resource_reference) = { type: "dialogflow.googleapis.com/Playbook" - } - ]; + }]; + } // Name of the // [SecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettings] diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/example.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/example.proto index aa37939ac204..b36539e44179 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/example.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/example.proto @@ -243,8 +243,8 @@ message PlaybookInput { string preceding_conversation_summary = 1 [(google.api.field_behavior) = OPTIONAL]; - // Optional. A list of input parameters for the invocation. - repeated ActionParameter parameters = 2 + // Optional. A list of input parameters for the action. + google.protobuf.Struct action_parameters = 3 [(google.api.field_behavior) = OPTIONAL]; } @@ -253,8 +253,8 @@ message PlaybookOutput { // Optional. Summary string of the execution result of the child playbook. string execution_summary = 1 [(google.api.field_behavior) = OPTIONAL]; - // Optional. A list of output parameters for the invocation. - repeated ActionParameter parameters = 3 + // Optional. A Struct object of output parameters for the action. + google.protobuf.Struct action_parameters = 4 [(google.api.field_behavior) = OPTIONAL]; } @@ -307,20 +307,13 @@ message ToolUse { // Optional. Name of the action to be called during the tool use. string action = 2 [(google.api.field_behavior) = OPTIONAL]; - // A list of input parameters for the action. - repeated ActionParameter input_parameters = 3; - - // A list of output parameters generated by the action. - repeated ActionParameter output_parameters = 4; -} - -// Parameter associated with action. -message ActionParameter { - // Required. Name of the parameter. - string name = 1 [(google.api.field_behavior) = REQUIRED]; + // Optional. A list of input parameters for the action. + google.protobuf.Struct input_action_parameters = 5 + [(google.api.field_behavior) = OPTIONAL]; - // Required. Value of the parameter. - google.protobuf.Value value = 2 [(google.api.field_behavior) = REQUIRED]; + // Optional. A list of output parameters generated by the action. + google.protobuf.Struct output_action_parameters = 6 + [(google.api.field_behavior) = OPTIONAL]; } // Stores metadata of the invocation of a child playbook. @@ -357,11 +350,13 @@ message FlowInvocation { (google.api.resource_reference) = { type: "dialogflow.googleapis.com/Flow" } ]; - // A list of input parameters for the flow invocation. - repeated ActionParameter input_parameters = 2; + // Optional. A list of input parameters for the flow. + google.protobuf.Struct input_action_parameters = 5 + [(google.api.field_behavior) = OPTIONAL]; - // A list of output parameters generated by the flow invocation. - repeated ActionParameter output_parameters = 3; + // Optional. A list of output parameters generated by the flow invocation. + google.protobuf.Struct output_action_parameters = 6 + [(google.api.field_behavior) = OPTIONAL]; // Required. Flow invocation's output state. OutputState flow_state = 4 [(google.api.field_behavior) = REQUIRED]; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/playbook.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/playbook.proto index 22951cb9e54d..8fa20b534746 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/playbook.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/playbook.proto @@ -235,6 +235,13 @@ message Playbook { repeated Step steps = 2; } + // Message of the Instruction of the playbook. + message Instruction { + // Ordered list of step by step execution instructions to accomplish + // target goal. + repeated Step steps = 2; + } + // The unique identifier of the playbook. // Format: `projects//locations//agents//playbooks/`. @@ -255,9 +262,8 @@ message Playbook { repeated google.cloud.dialogflow.cx.v3beta1.ParameterDefinition output_parameter_definitions = 6 [(google.api.field_behavior) = OPTIONAL]; - // Ordered list of step by step execution instructions to accomplish - // target goal. - repeated Step steps = 4; + // Instruction to accomplish target goal. + Instruction instruction = 17; // Output only. Estimated number of tokes current playbook takes when sent to // the LLM. diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/response_message.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/response_message.proto index 32d75c348a8e..5410b972d30a 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/response_message.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/response_message.proto @@ -17,6 +17,7 @@ syntax = "proto3"; package google.cloud.dialogflow.cx.v3beta1; import "google/api/field_behavior.proto"; +import "google/cloud/dialogflow/cx/v3beta1/tool_call.proto"; import "google/protobuf/struct.proto"; option cc_enable_arenas = true; @@ -235,6 +236,10 @@ message ResponseMessage { // Represents info card for knowledge answers, to be better rendered in // Dialogflow Messenger. KnowledgeInfoCard knowledge_info_card = 20; + + // Returns the definition of a tool call that should be executed by the + // client. + google.cloud.dialogflow.cx.v3beta1.ToolCall tool_call = 22; } // The channel which the response is associated with. Clients can specify the diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/security_settings.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/security_settings.proto index 4d7de79b88cd..2a2b4f3921c1 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/security_settings.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/security_settings.proto @@ -276,6 +276,10 @@ message SecuritySettings { // File format for exported audio file. Currently only in telephony // recordings. AudioFormat audio_format = 4; + + // Whether to store TTS audio. By default, TTS audio from the virtual agent + // is not exported. + bool store_tts_audio = 6; } // Settings for exporting conversations to diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/session.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/session.proto index 828e4cf65c73..ec2f13709f06 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/session.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/session.proto @@ -1141,6 +1141,10 @@ message Match { // The query directly triggered an event. EVENT = 6; + + // The query was handled by a + // [`Playbook`][google.cloud.dialogflow.cx.v3beta1.Playbook]. + PLAYBOOK = 9; } // The [Intent][google.cloud.dialogflow.cx.v3beta1.Intent] that matched the diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/tool.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/tool.proto index b6b86f031c8f..0f16ab483772 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/tool.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/tool.proto @@ -455,12 +455,6 @@ message Tool { // Required. High level description of the Tool and its usage. string description = 3 [(google.api.field_behavior) = REQUIRED]; - // The list of derived action names for the tool. - repeated string actions = 6 [deprecated = true]; - - // The list of derived type schemas for the tool. - repeated string schemas = 7 [deprecated = true]; - // Specification of the Tool. oneof specification { // OpenAPI specification of the Tool. diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/tool_call.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/tool_call.proto index 6779f2bdf30c..7d88c269ce28 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/tool_call.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/tool_call.proto @@ -31,6 +31,22 @@ option java_package = "com.google.cloud.dialogflow.cx.v3beta1"; option objc_class_prefix = "DF"; option ruby_package = "Google::Cloud::Dialogflow::CX::V3beta1"; +// Represents a call of a specific tool's action with the specified inputs. +message ToolCall { + // The [tool][Tool] associated with this call. + // Format: `projects//locations//agents//tools/`. + string tool = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "dialogflow.googleapis.com/Tool" } + ]; + // The name of the tool's action associated with this call. + string action = 2 [(google.api.field_behavior) = REQUIRED]; + // The action's input parameters. + google.protobuf.Struct input_parameters = 3 + [(google.api.field_behavior) = OPTIONAL]; +} + // The result of calling a tool's action that has been executed by the client. message ToolCallResult { // The [tool][Tool] associated with this call. diff --git a/java-redis-cluster/README.md b/java-redis-cluster/README.md index f5af4280243a..168fa5074c28 100644 --- a/java-redis-cluster/README.md +++ b/java-redis-cluster/README.md @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-redis-cluster.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-redis-cluster/0.16.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-redis-cluster/0.17.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterClient.java b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterClient.java index 1d44df144aaf..56fce92012fa 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterClient.java +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterClient.java @@ -208,6 +208,25 @@ * * * + *

GetClusterCertificateAuthority + *

Gets the details of certificate authority information for Redis cluster. + * + *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getClusterCertificateAuthority(GetClusterCertificateAuthorityRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getClusterCertificateAuthority(CertificateAuthorityName name) + *

  • getClusterCertificateAuthority(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getClusterCertificateAuthorityCallable() + *

+ * + * + * *

ListLocations *

Lists information about the supported locations for this service. * @@ -1199,6 +1218,128 @@ public final UnaryCallable createClusterCallabl return stub.createClusterCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of certificate authority information for Redis cluster. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
+   *   CertificateAuthorityName name =
+   *       CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]");
+   *   CertificateAuthority response = cloudRedisClusterClient.getClusterCertificateAuthority(name);
+   * }
+   * }
+ * + * @param name Required. Redis cluster certificate authority resource name using the form: + * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}/certificateAuthority` + * where `location_id` refers to a GCP region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CertificateAuthority getClusterCertificateAuthority(CertificateAuthorityName name) { + GetClusterCertificateAuthorityRequest request = + GetClusterCertificateAuthorityRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getClusterCertificateAuthority(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of certificate authority information for Redis cluster. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
+   *   String name = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString();
+   *   CertificateAuthority response = cloudRedisClusterClient.getClusterCertificateAuthority(name);
+   * }
+   * }
+ * + * @param name Required. Redis cluster certificate authority resource name using the form: + * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}/certificateAuthority` + * where `location_id` refers to a GCP region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CertificateAuthority getClusterCertificateAuthority(String name) { + GetClusterCertificateAuthorityRequest request = + GetClusterCertificateAuthorityRequest.newBuilder().setName(name).build(); + return getClusterCertificateAuthority(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of certificate authority information for Redis cluster. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
+   *   GetClusterCertificateAuthorityRequest request =
+   *       GetClusterCertificateAuthorityRequest.newBuilder()
+   *           .setName(
+   *               CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
+   *           .build();
+   *   CertificateAuthority response =
+   *       cloudRedisClusterClient.getClusterCertificateAuthority(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CertificateAuthority getClusterCertificateAuthority( + GetClusterCertificateAuthorityRequest request) { + return getClusterCertificateAuthorityCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of certificate authority information for Redis cluster. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
+   *   GetClusterCertificateAuthorityRequest request =
+   *       GetClusterCertificateAuthorityRequest.newBuilder()
+   *           .setName(
+   *               CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       cloudRedisClusterClient.getClusterCertificateAuthorityCallable().futureCall(request);
+   *   // Do something.
+   *   CertificateAuthority response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getClusterCertificateAuthorityCallable() { + return stub.getClusterCertificateAuthorityCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists information about the supported locations for this service. diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterSettings.java b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterSettings.java index 9e08cf487120..e276eb56f725 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterSettings.java +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterSettings.java @@ -127,6 +127,13 @@ public UnaryCallSettings createClusterSettings( return ((CloudRedisClusterStubSettings) getStubSettings()).createClusterOperationSettings(); } + /** Returns the object with the settings used for calls to getClusterCertificateAuthority. */ + public UnaryCallSettings + getClusterCertificateAuthoritySettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()) + .getClusterCertificateAuthoritySettings(); + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -295,6 +302,12 @@ public UnaryCallSettings.Builder createClusterS return getStubSettingsBuilder().createClusterOperationSettings(); } + /** Returns the builder for the settings used for calls to getClusterCertificateAuthority. */ + public UnaryCallSettings.Builder + getClusterCertificateAuthoritySettings() { + return getStubSettingsBuilder().getClusterCertificateAuthoritySettings(); + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/gapic_metadata.json b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/gapic_metadata.json index 58d43a0ef8e8..1655578413e0 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/gapic_metadata.json +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/gapic_metadata.json @@ -19,6 +19,9 @@ "GetCluster": { "methods": ["getCluster", "getCluster", "getCluster", "getClusterCallable"] }, + "GetClusterCertificateAuthority": { + "methods": ["getClusterCertificateAuthority", "getClusterCertificateAuthority", "getClusterCertificateAuthority", "getClusterCertificateAuthorityCallable"] + }, "GetLocation": { "methods": ["getLocation", "getLocationCallable"] }, diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/CloudRedisClusterStub.java b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/CloudRedisClusterStub.java index 50ac4561ffaa..e8fcf28751a9 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/CloudRedisClusterStub.java +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/CloudRedisClusterStub.java @@ -26,9 +26,11 @@ import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.cloud.redis.cluster.v1.CertificateAuthority; import com.google.cloud.redis.cluster.v1.Cluster; import com.google.cloud.redis.cluster.v1.CreateClusterRequest; import com.google.cloud.redis.cluster.v1.DeleteClusterRequest; +import com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest; import com.google.cloud.redis.cluster.v1.GetClusterRequest; import com.google.cloud.redis.cluster.v1.ListClustersRequest; import com.google.cloud.redis.cluster.v1.ListClustersResponse; @@ -92,6 +94,12 @@ public UnaryCallable createClusterCallable() { throw new UnsupportedOperationException("Not implemented: createClusterCallable()"); } + public UnaryCallable + getClusterCertificateAuthorityCallable() { + throw new UnsupportedOperationException( + "Not implemented: getClusterCertificateAuthorityCallable()"); + } + public UnaryCallable listLocationsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/CloudRedisClusterStubSettings.java b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/CloudRedisClusterStubSettings.java index 3a88a783b8c4..74ed5d7a6cf2 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/CloudRedisClusterStubSettings.java +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/CloudRedisClusterStubSettings.java @@ -52,9 +52,11 @@ import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.cloud.redis.cluster.v1.CertificateAuthority; import com.google.cloud.redis.cluster.v1.Cluster; import com.google.cloud.redis.cluster.v1.CreateClusterRequest; import com.google.cloud.redis.cluster.v1.DeleteClusterRequest; +import com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest; import com.google.cloud.redis.cluster.v1.GetClusterRequest; import com.google.cloud.redis.cluster.v1.ListClustersRequest; import com.google.cloud.redis.cluster.v1.ListClustersResponse; @@ -128,6 +130,8 @@ public class CloudRedisClusterStubSettings extends StubSettings createClusterSettings; private final OperationCallSettings createClusterOperationSettings; + private final UnaryCallSettings + getClusterCertificateAuthoritySettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -282,6 +286,12 @@ public UnaryCallSettings createClusterSettings( return createClusterOperationSettings; } + /** Returns the object with the settings used for calls to getClusterCertificateAuthority. */ + public UnaryCallSettings + getClusterCertificateAuthoritySettings() { + return getClusterCertificateAuthoritySettings; + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -411,6 +421,8 @@ protected CloudRedisClusterStubSettings(Builder settingsBuilder) throws IOExcept deleteClusterOperationSettings = settingsBuilder.deleteClusterOperationSettings().build(); createClusterSettings = settingsBuilder.createClusterSettings().build(); createClusterOperationSettings = settingsBuilder.createClusterOperationSettings().build(); + getClusterCertificateAuthoritySettings = + settingsBuilder.getClusterCertificateAuthoritySettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); } @@ -431,6 +443,9 @@ public static class Builder extends StubSettings.Builder createClusterSettings; private final OperationCallSettings.Builder createClusterOperationSettings; + private final UnaryCallSettings.Builder< + GetClusterCertificateAuthorityRequest, CertificateAuthority> + getClusterCertificateAuthoritySettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -480,6 +495,7 @@ protected Builder(ClientContext clientContext) { deleteClusterOperationSettings = OperationCallSettings.newBuilder(); createClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createClusterOperationSettings = OperationCallSettings.newBuilder(); + getClusterCertificateAuthoritySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -490,6 +506,7 @@ protected Builder(ClientContext clientContext) { updateClusterSettings, deleteClusterSettings, createClusterSettings, + getClusterCertificateAuthoritySettings, listLocationsSettings, getLocationSettings); initDefaults(this); @@ -506,6 +523,8 @@ protected Builder(CloudRedisClusterStubSettings settings) { deleteClusterOperationSettings = settings.deleteClusterOperationSettings.toBuilder(); createClusterSettings = settings.createClusterSettings.toBuilder(); createClusterOperationSettings = settings.createClusterOperationSettings.toBuilder(); + getClusterCertificateAuthoritySettings = + settings.getClusterCertificateAuthoritySettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); @@ -516,6 +535,7 @@ protected Builder(CloudRedisClusterStubSettings settings) { updateClusterSettings, deleteClusterSettings, createClusterSettings, + getClusterCertificateAuthoritySettings, listLocationsSettings, getLocationSettings); } @@ -570,6 +590,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder + .getClusterCertificateAuthoritySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder .listLocationsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -712,6 +737,12 @@ public UnaryCallSettings.Builder createClusterS return createClusterOperationSettings; } + /** Returns the builder for the settings used for calls to getClusterCertificateAuthority. */ + public UnaryCallSettings.Builder + getClusterCertificateAuthoritySettings() { + return getClusterCertificateAuthoritySettings; + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/GrpcCloudRedisClusterStub.java b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/GrpcCloudRedisClusterStub.java index e37c580cf92e..47d842159f06 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/GrpcCloudRedisClusterStub.java +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/GrpcCloudRedisClusterStub.java @@ -31,9 +31,11 @@ import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.cloud.redis.cluster.v1.CertificateAuthority; import com.google.cloud.redis.cluster.v1.Cluster; import com.google.cloud.redis.cluster.v1.CreateClusterRequest; import com.google.cloud.redis.cluster.v1.DeleteClusterRequest; +import com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest; import com.google.cloud.redis.cluster.v1.GetClusterRequest; import com.google.cloud.redis.cluster.v1.ListClustersRequest; import com.google.cloud.redis.cluster.v1.ListClustersResponse; @@ -104,6 +106,18 @@ public class GrpcCloudRedisClusterStub extends CloudRedisClusterStub { .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor + getClusterCertificateAuthorityMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.redis.cluster.v1.CloudRedisCluster/GetClusterCertificateAuthority") + .setRequestMarshaller( + ProtoUtils.marshaller(GetClusterCertificateAuthorityRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(CertificateAuthority.getDefaultInstance())) + .build(); + private static final MethodDescriptor listLocationsMethodDescriptor = MethodDescriptor.newBuilder() @@ -135,6 +149,8 @@ public class GrpcCloudRedisClusterStub extends CloudRedisClusterStub { private final UnaryCallable createClusterCallable; private final OperationCallable createClusterOperationCallable; + private final UnaryCallable + getClusterCertificateAuthorityCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -234,6 +250,18 @@ protected GrpcCloudRedisClusterStub( return builder.build(); }) .build(); + GrpcCallSettings + getClusterCertificateAuthorityTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(getClusterCertificateAuthorityMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listLocationsMethodDescriptor) @@ -291,6 +319,11 @@ protected GrpcCloudRedisClusterStub( settings.createClusterOperationSettings(), clientContext, operationsStub); + this.getClusterCertificateAuthorityCallable = + callableFactory.createUnaryCallable( + getClusterCertificateAuthorityTransportSettings, + settings.getClusterCertificateAuthoritySettings(), + clientContext); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -354,6 +387,12 @@ public OperationCallable createClusterOperat return createClusterOperationCallable; } + @Override + public UnaryCallable + getClusterCertificateAuthorityCallable() { + return getClusterCertificateAuthorityCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/HttpJsonCloudRedisClusterStub.java b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/HttpJsonCloudRedisClusterStub.java index 1d22440b535f..8208eaff7e75 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/HttpJsonCloudRedisClusterStub.java +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/HttpJsonCloudRedisClusterStub.java @@ -39,9 +39,11 @@ import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.cloud.redis.cluster.v1.CertificateAuthority; import com.google.cloud.redis.cluster.v1.Cluster; import com.google.cloud.redis.cluster.v1.CreateClusterRequest; import com.google.cloud.redis.cluster.v1.DeleteClusterRequest; +import com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest; import com.google.cloud.redis.cluster.v1.GetClusterRequest; import com.google.cloud.redis.cluster.v1.ListClustersRequest; import com.google.cloud.redis.cluster.v1.ListClustersResponse; @@ -266,6 +268,43 @@ public class HttpJsonCloudRedisClusterStub extends CloudRedisClusterStub { HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor< + GetClusterCertificateAuthorityRequest, CertificateAuthority> + getClusterCertificateAuthorityMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.redis.cluster.v1.CloudRedisCluster/GetClusterCertificateAuthority") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/clusters/*/certificateAuthority}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(CertificateAuthority.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor listLocationsMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -346,6 +385,8 @@ public class HttpJsonCloudRedisClusterStub extends CloudRedisClusterStub { private final UnaryCallable createClusterCallable; private final OperationCallable createClusterOperationCallable; + private final UnaryCallable + getClusterCertificateAuthorityCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -476,6 +517,19 @@ protected HttpJsonCloudRedisClusterStub( return builder.build(); }) .build(); + HttpJsonCallSettings + getClusterCertificateAuthorityTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(getClusterCertificateAuthorityMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings listLocationsTransportSettings = HttpJsonCallSettings.newBuilder() @@ -536,6 +590,11 @@ protected HttpJsonCloudRedisClusterStub( settings.createClusterOperationSettings(), clientContext, httpJsonOperationsStub); + this.getClusterCertificateAuthorityCallable = + callableFactory.createUnaryCallable( + getClusterCertificateAuthorityTransportSettings, + settings.getClusterCertificateAuthoritySettings(), + clientContext); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -558,6 +617,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(updateClusterMethodDescriptor); methodDescriptors.add(deleteClusterMethodDescriptor); methodDescriptors.add(createClusterMethodDescriptor); + methodDescriptors.add(getClusterCertificateAuthorityMethodDescriptor); methodDescriptors.add(listLocationsMethodDescriptor); methodDescriptors.add(getLocationMethodDescriptor); return methodDescriptors; @@ -612,6 +672,12 @@ public OperationCallable createClusterOperat return createClusterOperationCallable; } + @Override + public UnaryCallable + getClusterCertificateAuthorityCallable() { + return getClusterCertificateAuthorityCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterClient.java b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterClient.java index 28a62bd6975a..135afd3da29c 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterClient.java +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterClient.java @@ -208,6 +208,25 @@ * * * + *

GetClusterCertificateAuthority + *

Gets the details of certificate authority information for Redis cluster. + * + *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getClusterCertificateAuthority(GetClusterCertificateAuthorityRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getClusterCertificateAuthority(CertificateAuthorityName name) + *

  • getClusterCertificateAuthority(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getClusterCertificateAuthorityCallable() + *

+ * + * + * *

ListLocations *

Lists information about the supported locations for this service. * @@ -1200,6 +1219,128 @@ public final UnaryCallable createClusterCallabl return stub.createClusterCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of certificate authority information for Redis cluster. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
+   *   CertificateAuthorityName name =
+   *       CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]");
+   *   CertificateAuthority response = cloudRedisClusterClient.getClusterCertificateAuthority(name);
+   * }
+   * }
+ * + * @param name Required. Redis cluster certificate authority resource name using the form: + * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}/certificateAuthority` + * where `location_id` refers to a GCP region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CertificateAuthority getClusterCertificateAuthority(CertificateAuthorityName name) { + GetClusterCertificateAuthorityRequest request = + GetClusterCertificateAuthorityRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getClusterCertificateAuthority(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of certificate authority information for Redis cluster. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
+   *   String name = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString();
+   *   CertificateAuthority response = cloudRedisClusterClient.getClusterCertificateAuthority(name);
+   * }
+   * }
+ * + * @param name Required. Redis cluster certificate authority resource name using the form: + * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}/certificateAuthority` + * where `location_id` refers to a GCP region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CertificateAuthority getClusterCertificateAuthority(String name) { + GetClusterCertificateAuthorityRequest request = + GetClusterCertificateAuthorityRequest.newBuilder().setName(name).build(); + return getClusterCertificateAuthority(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of certificate authority information for Redis cluster. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
+   *   GetClusterCertificateAuthorityRequest request =
+   *       GetClusterCertificateAuthorityRequest.newBuilder()
+   *           .setName(
+   *               CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
+   *           .build();
+   *   CertificateAuthority response =
+   *       cloudRedisClusterClient.getClusterCertificateAuthority(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CertificateAuthority getClusterCertificateAuthority( + GetClusterCertificateAuthorityRequest request) { + return getClusterCertificateAuthorityCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of certificate authority information for Redis cluster. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) {
+   *   GetClusterCertificateAuthorityRequest request =
+   *       GetClusterCertificateAuthorityRequest.newBuilder()
+   *           .setName(
+   *               CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       cloudRedisClusterClient.getClusterCertificateAuthorityCallable().futureCall(request);
+   *   // Do something.
+   *   CertificateAuthority response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getClusterCertificateAuthorityCallable() { + return stub.getClusterCertificateAuthorityCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists information about the supported locations for this service. diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterSettings.java b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterSettings.java index 6b0ba982d744..8ac84de96bb3 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterSettings.java +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterSettings.java @@ -128,6 +128,13 @@ public UnaryCallSettings createClusterSettings( return ((CloudRedisClusterStubSettings) getStubSettings()).createClusterOperationSettings(); } + /** Returns the object with the settings used for calls to getClusterCertificateAuthority. */ + public UnaryCallSettings + getClusterCertificateAuthoritySettings() { + return ((CloudRedisClusterStubSettings) getStubSettings()) + .getClusterCertificateAuthoritySettings(); + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -296,6 +303,12 @@ public UnaryCallSettings.Builder createClusterS return getStubSettingsBuilder().createClusterOperationSettings(); } + /** Returns the builder for the settings used for calls to getClusterCertificateAuthority. */ + public UnaryCallSettings.Builder + getClusterCertificateAuthoritySettings() { + return getStubSettingsBuilder().getClusterCertificateAuthoritySettings(); + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/gapic_metadata.json b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/gapic_metadata.json index 445e44142736..6910347d8402 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/gapic_metadata.json +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/gapic_metadata.json @@ -19,6 +19,9 @@ "GetCluster": { "methods": ["getCluster", "getCluster", "getCluster", "getClusterCallable"] }, + "GetClusterCertificateAuthority": { + "methods": ["getClusterCertificateAuthority", "getClusterCertificateAuthority", "getClusterCertificateAuthority", "getClusterCertificateAuthorityCallable"] + }, "GetLocation": { "methods": ["getLocation", "getLocationCallable"] }, diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/CloudRedisClusterStub.java b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/CloudRedisClusterStub.java index b9cacc611c43..7e1c121325b6 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/CloudRedisClusterStub.java +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/CloudRedisClusterStub.java @@ -27,9 +27,11 @@ import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.cloud.redis.cluster.v1beta1.CertificateAuthority; import com.google.cloud.redis.cluster.v1beta1.Cluster; import com.google.cloud.redis.cluster.v1beta1.CreateClusterRequest; import com.google.cloud.redis.cluster.v1beta1.DeleteClusterRequest; +import com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest; import com.google.cloud.redis.cluster.v1beta1.GetClusterRequest; import com.google.cloud.redis.cluster.v1beta1.ListClustersRequest; import com.google.cloud.redis.cluster.v1beta1.ListClustersResponse; @@ -94,6 +96,12 @@ public UnaryCallable createClusterCallable() { throw new UnsupportedOperationException("Not implemented: createClusterCallable()"); } + public UnaryCallable + getClusterCertificateAuthorityCallable() { + throw new UnsupportedOperationException( + "Not implemented: getClusterCertificateAuthorityCallable()"); + } + public UnaryCallable listLocationsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/CloudRedisClusterStubSettings.java b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/CloudRedisClusterStubSettings.java index 4b2434c598f3..d0b8819a60fb 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/CloudRedisClusterStubSettings.java +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/CloudRedisClusterStubSettings.java @@ -52,9 +52,11 @@ import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.cloud.redis.cluster.v1beta1.CertificateAuthority; import com.google.cloud.redis.cluster.v1beta1.Cluster; import com.google.cloud.redis.cluster.v1beta1.CreateClusterRequest; import com.google.cloud.redis.cluster.v1beta1.DeleteClusterRequest; +import com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest; import com.google.cloud.redis.cluster.v1beta1.GetClusterRequest; import com.google.cloud.redis.cluster.v1beta1.ListClustersRequest; import com.google.cloud.redis.cluster.v1beta1.ListClustersResponse; @@ -129,6 +131,8 @@ public class CloudRedisClusterStubSettings extends StubSettings createClusterSettings; private final OperationCallSettings createClusterOperationSettings; + private final UnaryCallSettings + getClusterCertificateAuthoritySettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -283,6 +287,12 @@ public UnaryCallSettings createClusterSettings( return createClusterOperationSettings; } + /** Returns the object with the settings used for calls to getClusterCertificateAuthority. */ + public UnaryCallSettings + getClusterCertificateAuthoritySettings() { + return getClusterCertificateAuthoritySettings; + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -412,6 +422,8 @@ protected CloudRedisClusterStubSettings(Builder settingsBuilder) throws IOExcept deleteClusterOperationSettings = settingsBuilder.deleteClusterOperationSettings().build(); createClusterSettings = settingsBuilder.createClusterSettings().build(); createClusterOperationSettings = settingsBuilder.createClusterOperationSettings().build(); + getClusterCertificateAuthoritySettings = + settingsBuilder.getClusterCertificateAuthoritySettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); } @@ -432,6 +444,9 @@ public static class Builder extends StubSettings.Builder createClusterSettings; private final OperationCallSettings.Builder createClusterOperationSettings; + private final UnaryCallSettings.Builder< + GetClusterCertificateAuthorityRequest, CertificateAuthority> + getClusterCertificateAuthoritySettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -481,6 +496,7 @@ protected Builder(ClientContext clientContext) { deleteClusterOperationSettings = OperationCallSettings.newBuilder(); createClusterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createClusterOperationSettings = OperationCallSettings.newBuilder(); + getClusterCertificateAuthoritySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -491,6 +507,7 @@ protected Builder(ClientContext clientContext) { updateClusterSettings, deleteClusterSettings, createClusterSettings, + getClusterCertificateAuthoritySettings, listLocationsSettings, getLocationSettings); initDefaults(this); @@ -507,6 +524,8 @@ protected Builder(CloudRedisClusterStubSettings settings) { deleteClusterOperationSettings = settings.deleteClusterOperationSettings.toBuilder(); createClusterSettings = settings.createClusterSettings.toBuilder(); createClusterOperationSettings = settings.createClusterOperationSettings.toBuilder(); + getClusterCertificateAuthoritySettings = + settings.getClusterCertificateAuthoritySettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); @@ -517,6 +536,7 @@ protected Builder(CloudRedisClusterStubSettings settings) { updateClusterSettings, deleteClusterSettings, createClusterSettings, + getClusterCertificateAuthoritySettings, listLocationsSettings, getLocationSettings); } @@ -571,6 +591,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder + .getClusterCertificateAuthoritySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder .listLocationsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -713,6 +738,12 @@ public UnaryCallSettings.Builder createClusterS return createClusterOperationSettings; } + /** Returns the builder for the settings used for calls to getClusterCertificateAuthority. */ + public UnaryCallSettings.Builder + getClusterCertificateAuthoritySettings() { + return getClusterCertificateAuthoritySettings; + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/GrpcCloudRedisClusterStub.java b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/GrpcCloudRedisClusterStub.java index 15a02d3587d1..47b6bfef0f57 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/GrpcCloudRedisClusterStub.java +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/GrpcCloudRedisClusterStub.java @@ -32,9 +32,11 @@ import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.cloud.redis.cluster.v1beta1.CertificateAuthority; import com.google.cloud.redis.cluster.v1beta1.Cluster; import com.google.cloud.redis.cluster.v1beta1.CreateClusterRequest; import com.google.cloud.redis.cluster.v1beta1.DeleteClusterRequest; +import com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest; import com.google.cloud.redis.cluster.v1beta1.GetClusterRequest; import com.google.cloud.redis.cluster.v1beta1.ListClustersRequest; import com.google.cloud.redis.cluster.v1beta1.ListClustersResponse; @@ -110,6 +112,18 @@ public class GrpcCloudRedisClusterStub extends CloudRedisClusterStub { .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor + getClusterCertificateAuthorityMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.redis.cluster.v1beta1.CloudRedisCluster/GetClusterCertificateAuthority") + .setRequestMarshaller( + ProtoUtils.marshaller(GetClusterCertificateAuthorityRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(CertificateAuthority.getDefaultInstance())) + .build(); + private static final MethodDescriptor listLocationsMethodDescriptor = MethodDescriptor.newBuilder() @@ -141,6 +155,8 @@ public class GrpcCloudRedisClusterStub extends CloudRedisClusterStub { private final UnaryCallable createClusterCallable; private final OperationCallable createClusterOperationCallable; + private final UnaryCallable + getClusterCertificateAuthorityCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -240,6 +256,18 @@ protected GrpcCloudRedisClusterStub( return builder.build(); }) .build(); + GrpcCallSettings + getClusterCertificateAuthorityTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(getClusterCertificateAuthorityMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listLocationsMethodDescriptor) @@ -297,6 +325,11 @@ protected GrpcCloudRedisClusterStub( settings.createClusterOperationSettings(), clientContext, operationsStub); + this.getClusterCertificateAuthorityCallable = + callableFactory.createUnaryCallable( + getClusterCertificateAuthorityTransportSettings, + settings.getClusterCertificateAuthoritySettings(), + clientContext); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -360,6 +393,12 @@ public OperationCallable createClusterOperat return createClusterOperationCallable; } + @Override + public UnaryCallable + getClusterCertificateAuthorityCallable() { + return getClusterCertificateAuthorityCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/HttpJsonCloudRedisClusterStub.java b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/HttpJsonCloudRedisClusterStub.java index f6b166205b3a..c7139f6d0699 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/HttpJsonCloudRedisClusterStub.java +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/HttpJsonCloudRedisClusterStub.java @@ -40,9 +40,11 @@ import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.cloud.redis.cluster.v1beta1.CertificateAuthority; import com.google.cloud.redis.cluster.v1beta1.Cluster; import com.google.cloud.redis.cluster.v1beta1.CreateClusterRequest; import com.google.cloud.redis.cluster.v1beta1.DeleteClusterRequest; +import com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest; import com.google.cloud.redis.cluster.v1beta1.GetClusterRequest; import com.google.cloud.redis.cluster.v1beta1.ListClustersRequest; import com.google.cloud.redis.cluster.v1beta1.ListClustersResponse; @@ -272,6 +274,43 @@ public class HttpJsonCloudRedisClusterStub extends CloudRedisClusterStub { HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor< + GetClusterCertificateAuthorityRequest, CertificateAuthority> + getClusterCertificateAuthorityMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.redis.cluster.v1beta1.CloudRedisCluster/GetClusterCertificateAuthority") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/clusters/*/certificateAuthority}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(CertificateAuthority.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor listLocationsMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -352,6 +391,8 @@ public class HttpJsonCloudRedisClusterStub extends CloudRedisClusterStub { private final UnaryCallable createClusterCallable; private final OperationCallable createClusterOperationCallable; + private final UnaryCallable + getClusterCertificateAuthorityCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -482,6 +523,19 @@ protected HttpJsonCloudRedisClusterStub( return builder.build(); }) .build(); + HttpJsonCallSettings + getClusterCertificateAuthorityTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(getClusterCertificateAuthorityMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings listLocationsTransportSettings = HttpJsonCallSettings.newBuilder() @@ -542,6 +596,11 @@ protected HttpJsonCloudRedisClusterStub( settings.createClusterOperationSettings(), clientContext, httpJsonOperationsStub); + this.getClusterCertificateAuthorityCallable = + callableFactory.createUnaryCallable( + getClusterCertificateAuthorityTransportSettings, + settings.getClusterCertificateAuthoritySettings(), + clientContext); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -564,6 +623,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(updateClusterMethodDescriptor); methodDescriptors.add(deleteClusterMethodDescriptor); methodDescriptors.add(createClusterMethodDescriptor); + methodDescriptors.add(getClusterCertificateAuthorityMethodDescriptor); methodDescriptors.add(listLocationsMethodDescriptor); methodDescriptors.add(getLocationMethodDescriptor); return methodDescriptors; @@ -618,6 +678,12 @@ public OperationCallable createClusterOperat return createClusterOperationCallable; } + @Override + public UnaryCallable + getClusterCertificateAuthorityCallable() { + return getClusterCertificateAuthorityCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/resources/META-INF/native-image/com.google.cloud.redis.cluster.v1/reflect-config.json b/java-redis-cluster/google-cloud-redis-cluster/src/main/resources/META-INF/native-image/com.google.cloud.redis.cluster.v1/reflect-config.json index 45190487b10f..b1de9ee5eb87 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/resources/META-INF/native-image/com.google.cloud.redis.cluster.v1/reflect-config.json +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/resources/META-INF/native-image/com.google.cloud.redis.cluster.v1/reflect-config.json @@ -458,6 +458,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.redis.cluster.v1.CertificateAuthority", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.CertificateAuthority$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.CertificateAuthority$ManagedCertificateAuthority", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.CertificateAuthority$ManagedCertificateAuthority$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.CertificateAuthority$ManagedCertificateAuthority$CertChain", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.CertificateAuthority$ManagedCertificateAuthority$CertChain$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.redis.cluster.v1.Cluster", "queryAllDeclaredConstructors": true, @@ -521,6 +575,87 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig$AOFConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig$AOFConfig$AppendFsync", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig$AOFConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig$PersistenceMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig$RDBConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig$RDBConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig$RDBConfig$SnapshotPeriod", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.redis.cluster.v1.CreateClusterRequest", "queryAllDeclaredConstructors": true, @@ -575,6 +710,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.redis.cluster.v1.GetClusterRequest", "queryAllDeclaredConstructors": true, @@ -629,6 +782,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.redis.cluster.v1.NodeType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.redis.cluster.v1.OperationMetadata", "queryAllDeclaredConstructors": true, @@ -710,6 +872,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.redis.cluster.v1.ZoneDistributionConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.ZoneDistributionConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1.ZoneDistributionConfig$ZoneDistributionMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.longrunning.CancelOperationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/resources/META-INF/native-image/com.google.cloud.redis.cluster.v1beta1/reflect-config.json b/java-redis-cluster/google-cloud-redis-cluster/src/main/resources/META-INF/native-image/com.google.cloud.redis.cluster.v1beta1/reflect-config.json index b996c3826e20..c0e531226ee9 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/resources/META-INF/native-image/com.google.cloud.redis.cluster.v1beta1/reflect-config.json +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/resources/META-INF/native-image/com.google.cloud.redis.cluster.v1beta1/reflect-config.json @@ -458,6 +458,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.redis.cluster.v1beta1.CertificateAuthority", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1beta1.CertificateAuthority$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1beta1.CertificateAuthority$ManagedCertificateAuthority", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1beta1.CertificateAuthority$ManagedCertificateAuthority$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1beta1.CertificateAuthority$ManagedCertificateAuthority$CertChain", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1beta1.CertificateAuthority$ManagedCertificateAuthority$CertChain$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.redis.cluster.v1beta1.Cluster", "queryAllDeclaredConstructors": true, @@ -521,6 +575,87 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig$AOFConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig$AOFConfig$AppendFsync", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig$AOFConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig$PersistenceMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig$RDBConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig$RDBConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig$RDBConfig$SnapshotPeriod", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.redis.cluster.v1beta1.CreateClusterRequest", "queryAllDeclaredConstructors": true, @@ -575,6 +710,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.redis.cluster.v1beta1.GetClusterRequest", "queryAllDeclaredConstructors": true, @@ -629,6 +782,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.redis.cluster.v1beta1.NodeType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.redis.cluster.v1beta1.OperationMetadata", "queryAllDeclaredConstructors": true, @@ -710,6 +872,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig$ZoneDistributionMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.longrunning.CancelOperationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterClientHttpJsonTest.java b/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterClientHttpJsonTest.java index 89e1740fe348..1f58ba80189d 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterClientHttpJsonTest.java +++ b/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterClientHttpJsonTest.java @@ -204,6 +204,12 @@ public void getClusterTest() throws Exception { .addAllDiscoveryEndpoints(new ArrayList()) .addAllPscConnections(new ArrayList()) .setStateInfo(Cluster.StateInfo.newBuilder().build()) + .setNodeType(NodeType.forNumber(0)) + .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build()) + .putAllRedisConfigs(new HashMap()) + .setPreciseSizeGb(1342268405) + .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build()) + .setDeletionProtectionEnabled(true) .build(); mockService.addResponse(expectedResponse); @@ -259,6 +265,12 @@ public void getClusterTest2() throws Exception { .addAllDiscoveryEndpoints(new ArrayList()) .addAllPscConnections(new ArrayList()) .setStateInfo(Cluster.StateInfo.newBuilder().build()) + .setNodeType(NodeType.forNumber(0)) + .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build()) + .putAllRedisConfigs(new HashMap()) + .setPreciseSizeGb(1342268405) + .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build()) + .setDeletionProtectionEnabled(true) .build(); mockService.addResponse(expectedResponse); @@ -314,6 +326,12 @@ public void updateClusterTest() throws Exception { .addAllDiscoveryEndpoints(new ArrayList()) .addAllPscConnections(new ArrayList()) .setStateInfo(Cluster.StateInfo.newBuilder().build()) + .setNodeType(NodeType.forNumber(0)) + .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build()) + .putAllRedisConfigs(new HashMap()) + .setPreciseSizeGb(1342268405) + .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build()) + .setDeletionProtectionEnabled(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -337,6 +355,12 @@ public void updateClusterTest() throws Exception { .addAllDiscoveryEndpoints(new ArrayList()) .addAllPscConnections(new ArrayList()) .setStateInfo(Cluster.StateInfo.newBuilder().build()) + .setNodeType(NodeType.forNumber(0)) + .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build()) + .putAllRedisConfigs(new HashMap()) + .setPreciseSizeGb(1342268405) + .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build()) + .setDeletionProtectionEnabled(true) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -380,6 +404,12 @@ public void updateClusterExceptionTest() throws Exception { .addAllDiscoveryEndpoints(new ArrayList()) .addAllPscConnections(new ArrayList()) .setStateInfo(Cluster.StateInfo.newBuilder().build()) + .setNodeType(NodeType.forNumber(0)) + .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build()) + .putAllRedisConfigs(new HashMap()) + .setPreciseSizeGb(1342268405) + .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build()) + .setDeletionProtectionEnabled(true) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateClusterAsync(cluster, updateMask).get(); @@ -494,6 +524,12 @@ public void createClusterTest() throws Exception { .addAllDiscoveryEndpoints(new ArrayList()) .addAllPscConnections(new ArrayList()) .setStateInfo(Cluster.StateInfo.newBuilder().build()) + .setNodeType(NodeType.forNumber(0)) + .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build()) + .putAllRedisConfigs(new HashMap()) + .setPreciseSizeGb(1342268405) + .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build()) + .setDeletionProtectionEnabled(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -558,6 +594,12 @@ public void createClusterTest2() throws Exception { .addAllDiscoveryEndpoints(new ArrayList()) .addAllPscConnections(new ArrayList()) .setStateInfo(Cluster.StateInfo.newBuilder().build()) + .setNodeType(NodeType.forNumber(0)) + .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build()) + .putAllRedisConfigs(new HashMap()) + .setPreciseSizeGb(1342268405) + .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build()) + .setDeletionProtectionEnabled(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -606,6 +648,98 @@ public void createClusterExceptionTest2() throws Exception { } } + @Test + public void getClusterCertificateAuthorityTest() throws Exception { + CertificateAuthority expectedResponse = + CertificateAuthority.newBuilder() + .setName(CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .build(); + mockService.addResponse(expectedResponse); + + CertificateAuthorityName name = + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + + CertificateAuthority actualResponse = client.getClusterCertificateAuthority(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getClusterCertificateAuthorityExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CertificateAuthorityName name = + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + client.getClusterCertificateAuthority(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getClusterCertificateAuthorityTest2() throws Exception { + CertificateAuthority expectedResponse = + CertificateAuthority.newBuilder() + .setName(CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-4382/locations/location-4382/clusters/cluster-4382/certificateAuthority"; + + CertificateAuthority actualResponse = client.getClusterCertificateAuthority(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getClusterCertificateAuthorityExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-4382/locations/location-4382/clusters/cluster-4382/certificateAuthority"; + client.getClusterCertificateAuthority(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterClientTest.java b/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterClientTest.java index 94d3f8c1492a..c0b239858df6 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterClientTest.java +++ b/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterClientTest.java @@ -199,6 +199,12 @@ public void getClusterTest() throws Exception { .addAllDiscoveryEndpoints(new ArrayList()) .addAllPscConnections(new ArrayList()) .setStateInfo(Cluster.StateInfo.newBuilder().build()) + .setNodeType(NodeType.forNumber(0)) + .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build()) + .putAllRedisConfigs(new HashMap()) + .setPreciseSizeGb(1342268405) + .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build()) + .setDeletionProtectionEnabled(true) .build(); mockCloudRedisCluster.addResponse(expectedResponse); @@ -248,6 +254,12 @@ public void getClusterTest2() throws Exception { .addAllDiscoveryEndpoints(new ArrayList()) .addAllPscConnections(new ArrayList()) .setStateInfo(Cluster.StateInfo.newBuilder().build()) + .setNodeType(NodeType.forNumber(0)) + .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build()) + .putAllRedisConfigs(new HashMap()) + .setPreciseSizeGb(1342268405) + .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build()) + .setDeletionProtectionEnabled(true) .build(); mockCloudRedisCluster.addResponse(expectedResponse); @@ -297,6 +309,12 @@ public void updateClusterTest() throws Exception { .addAllDiscoveryEndpoints(new ArrayList()) .addAllPscConnections(new ArrayList()) .setStateInfo(Cluster.StateInfo.newBuilder().build()) + .setNodeType(NodeType.forNumber(0)) + .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build()) + .putAllRedisConfigs(new HashMap()) + .setPreciseSizeGb(1342268405) + .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build()) + .setDeletionProtectionEnabled(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -441,6 +459,12 @@ public void createClusterTest() throws Exception { .addAllDiscoveryEndpoints(new ArrayList()) .addAllPscConnections(new ArrayList()) .setStateInfo(Cluster.StateInfo.newBuilder().build()) + .setNodeType(NodeType.forNumber(0)) + .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build()) + .putAllRedisConfigs(new HashMap()) + .setPreciseSizeGb(1342268405) + .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build()) + .setDeletionProtectionEnabled(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -504,6 +528,12 @@ public void createClusterTest2() throws Exception { .addAllDiscoveryEndpoints(new ArrayList()) .addAllPscConnections(new ArrayList()) .setStateInfo(Cluster.StateInfo.newBuilder().build()) + .setNodeType(NodeType.forNumber(0)) + .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build()) + .putAllRedisConfigs(new HashMap()) + .setPreciseSizeGb(1342268405) + .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build()) + .setDeletionProtectionEnabled(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -551,6 +581,86 @@ public void createClusterExceptionTest2() throws Exception { } } + @Test + public void getClusterCertificateAuthorityTest() throws Exception { + CertificateAuthority expectedResponse = + CertificateAuthority.newBuilder() + .setName(CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .build(); + mockCloudRedisCluster.addResponse(expectedResponse); + + CertificateAuthorityName name = + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + + CertificateAuthority actualResponse = client.getClusterCertificateAuthority(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudRedisCluster.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetClusterCertificateAuthorityRequest actualRequest = + ((GetClusterCertificateAuthorityRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getClusterCertificateAuthorityExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudRedisCluster.addException(exception); + + try { + CertificateAuthorityName name = + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + client.getClusterCertificateAuthority(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getClusterCertificateAuthorityTest2() throws Exception { + CertificateAuthority expectedResponse = + CertificateAuthority.newBuilder() + .setName(CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .build(); + mockCloudRedisCluster.addResponse(expectedResponse); + + String name = "name3373707"; + + CertificateAuthority actualResponse = client.getClusterCertificateAuthority(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudRedisCluster.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetClusterCertificateAuthorityRequest actualRequest = + ((GetClusterCertificateAuthorityRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getClusterCertificateAuthorityExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudRedisCluster.addException(exception); + + try { + String name = "name3373707"; + client.getClusterCertificateAuthority(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1/MockCloudRedisClusterImpl.java b/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1/MockCloudRedisClusterImpl.java index 9546be840ca4..9c5bf3ea3ec7 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1/MockCloudRedisClusterImpl.java +++ b/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1/MockCloudRedisClusterImpl.java @@ -162,4 +162,26 @@ public void createCluster( Exception.class.getName()))); } } + + @Override + public void getClusterCertificateAuthority( + GetClusterCertificateAuthorityRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof CertificateAuthority) { + requests.add(request); + responseObserver.onNext(((CertificateAuthority) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetClusterCertificateAuthority, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + CertificateAuthority.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterClientHttpJsonTest.java b/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterClientHttpJsonTest.java index 2172200f4322..8d804f5678f7 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterClientHttpJsonTest.java +++ b/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterClientHttpJsonTest.java @@ -204,6 +204,12 @@ public void getClusterTest() throws Exception { .addAllDiscoveryEndpoints(new ArrayList()) .addAllPscConnections(new ArrayList()) .setStateInfo(Cluster.StateInfo.newBuilder().build()) + .setNodeType(NodeType.forNumber(0)) + .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build()) + .putAllRedisConfigs(new HashMap()) + .setPreciseSizeGb(1342268405) + .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build()) + .setDeletionProtectionEnabled(true) .build(); mockService.addResponse(expectedResponse); @@ -259,6 +265,12 @@ public void getClusterTest2() throws Exception { .addAllDiscoveryEndpoints(new ArrayList()) .addAllPscConnections(new ArrayList()) .setStateInfo(Cluster.StateInfo.newBuilder().build()) + .setNodeType(NodeType.forNumber(0)) + .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build()) + .putAllRedisConfigs(new HashMap()) + .setPreciseSizeGb(1342268405) + .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build()) + .setDeletionProtectionEnabled(true) .build(); mockService.addResponse(expectedResponse); @@ -314,6 +326,12 @@ public void updateClusterTest() throws Exception { .addAllDiscoveryEndpoints(new ArrayList()) .addAllPscConnections(new ArrayList()) .setStateInfo(Cluster.StateInfo.newBuilder().build()) + .setNodeType(NodeType.forNumber(0)) + .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build()) + .putAllRedisConfigs(new HashMap()) + .setPreciseSizeGb(1342268405) + .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build()) + .setDeletionProtectionEnabled(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -337,6 +355,12 @@ public void updateClusterTest() throws Exception { .addAllDiscoveryEndpoints(new ArrayList()) .addAllPscConnections(new ArrayList()) .setStateInfo(Cluster.StateInfo.newBuilder().build()) + .setNodeType(NodeType.forNumber(0)) + .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build()) + .putAllRedisConfigs(new HashMap()) + .setPreciseSizeGb(1342268405) + .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build()) + .setDeletionProtectionEnabled(true) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -380,6 +404,12 @@ public void updateClusterExceptionTest() throws Exception { .addAllDiscoveryEndpoints(new ArrayList()) .addAllPscConnections(new ArrayList()) .setStateInfo(Cluster.StateInfo.newBuilder().build()) + .setNodeType(NodeType.forNumber(0)) + .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build()) + .putAllRedisConfigs(new HashMap()) + .setPreciseSizeGb(1342268405) + .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build()) + .setDeletionProtectionEnabled(true) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateClusterAsync(cluster, updateMask).get(); @@ -494,6 +524,12 @@ public void createClusterTest() throws Exception { .addAllDiscoveryEndpoints(new ArrayList()) .addAllPscConnections(new ArrayList()) .setStateInfo(Cluster.StateInfo.newBuilder().build()) + .setNodeType(NodeType.forNumber(0)) + .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build()) + .putAllRedisConfigs(new HashMap()) + .setPreciseSizeGb(1342268405) + .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build()) + .setDeletionProtectionEnabled(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -558,6 +594,12 @@ public void createClusterTest2() throws Exception { .addAllDiscoveryEndpoints(new ArrayList()) .addAllPscConnections(new ArrayList()) .setStateInfo(Cluster.StateInfo.newBuilder().build()) + .setNodeType(NodeType.forNumber(0)) + .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build()) + .putAllRedisConfigs(new HashMap()) + .setPreciseSizeGb(1342268405) + .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build()) + .setDeletionProtectionEnabled(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -606,6 +648,98 @@ public void createClusterExceptionTest2() throws Exception { } } + @Test + public void getClusterCertificateAuthorityTest() throws Exception { + CertificateAuthority expectedResponse = + CertificateAuthority.newBuilder() + .setName(CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .build(); + mockService.addResponse(expectedResponse); + + CertificateAuthorityName name = + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + + CertificateAuthority actualResponse = client.getClusterCertificateAuthority(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getClusterCertificateAuthorityExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CertificateAuthorityName name = + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + client.getClusterCertificateAuthority(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getClusterCertificateAuthorityTest2() throws Exception { + CertificateAuthority expectedResponse = + CertificateAuthority.newBuilder() + .setName(CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-4382/locations/location-4382/clusters/cluster-4382/certificateAuthority"; + + CertificateAuthority actualResponse = client.getClusterCertificateAuthority(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getClusterCertificateAuthorityExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-4382/locations/location-4382/clusters/cluster-4382/certificateAuthority"; + client.getClusterCertificateAuthority(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterClientTest.java b/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterClientTest.java index 8094ef8e3a99..39e106b5c29c 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterClientTest.java +++ b/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterClientTest.java @@ -199,6 +199,12 @@ public void getClusterTest() throws Exception { .addAllDiscoveryEndpoints(new ArrayList()) .addAllPscConnections(new ArrayList()) .setStateInfo(Cluster.StateInfo.newBuilder().build()) + .setNodeType(NodeType.forNumber(0)) + .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build()) + .putAllRedisConfigs(new HashMap()) + .setPreciseSizeGb(1342268405) + .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build()) + .setDeletionProtectionEnabled(true) .build(); mockCloudRedisCluster.addResponse(expectedResponse); @@ -248,6 +254,12 @@ public void getClusterTest2() throws Exception { .addAllDiscoveryEndpoints(new ArrayList()) .addAllPscConnections(new ArrayList()) .setStateInfo(Cluster.StateInfo.newBuilder().build()) + .setNodeType(NodeType.forNumber(0)) + .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build()) + .putAllRedisConfigs(new HashMap()) + .setPreciseSizeGb(1342268405) + .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build()) + .setDeletionProtectionEnabled(true) .build(); mockCloudRedisCluster.addResponse(expectedResponse); @@ -297,6 +309,12 @@ public void updateClusterTest() throws Exception { .addAllDiscoveryEndpoints(new ArrayList()) .addAllPscConnections(new ArrayList()) .setStateInfo(Cluster.StateInfo.newBuilder().build()) + .setNodeType(NodeType.forNumber(0)) + .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build()) + .putAllRedisConfigs(new HashMap()) + .setPreciseSizeGb(1342268405) + .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build()) + .setDeletionProtectionEnabled(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -441,6 +459,12 @@ public void createClusterTest() throws Exception { .addAllDiscoveryEndpoints(new ArrayList()) .addAllPscConnections(new ArrayList()) .setStateInfo(Cluster.StateInfo.newBuilder().build()) + .setNodeType(NodeType.forNumber(0)) + .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build()) + .putAllRedisConfigs(new HashMap()) + .setPreciseSizeGb(1342268405) + .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build()) + .setDeletionProtectionEnabled(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -504,6 +528,12 @@ public void createClusterTest2() throws Exception { .addAllDiscoveryEndpoints(new ArrayList()) .addAllPscConnections(new ArrayList()) .setStateInfo(Cluster.StateInfo.newBuilder().build()) + .setNodeType(NodeType.forNumber(0)) + .setPersistenceConfig(ClusterPersistenceConfig.newBuilder().build()) + .putAllRedisConfigs(new HashMap()) + .setPreciseSizeGb(1342268405) + .setZoneDistributionConfig(ZoneDistributionConfig.newBuilder().build()) + .setDeletionProtectionEnabled(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -551,6 +581,86 @@ public void createClusterExceptionTest2() throws Exception { } } + @Test + public void getClusterCertificateAuthorityTest() throws Exception { + CertificateAuthority expectedResponse = + CertificateAuthority.newBuilder() + .setName(CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .build(); + mockCloudRedisCluster.addResponse(expectedResponse); + + CertificateAuthorityName name = + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + + CertificateAuthority actualResponse = client.getClusterCertificateAuthority(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudRedisCluster.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetClusterCertificateAuthorityRequest actualRequest = + ((GetClusterCertificateAuthorityRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getClusterCertificateAuthorityExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudRedisCluster.addException(exception); + + try { + CertificateAuthorityName name = + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + client.getClusterCertificateAuthority(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getClusterCertificateAuthorityTest2() throws Exception { + CertificateAuthority expectedResponse = + CertificateAuthority.newBuilder() + .setName(CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .build(); + mockCloudRedisCluster.addResponse(expectedResponse); + + String name = "name3373707"; + + CertificateAuthority actualResponse = client.getClusterCertificateAuthority(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudRedisCluster.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetClusterCertificateAuthorityRequest actualRequest = + ((GetClusterCertificateAuthorityRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getClusterCertificateAuthorityExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudRedisCluster.addException(exception); + + try { + String name = "name3373707"; + client.getClusterCertificateAuthority(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1beta1/MockCloudRedisClusterImpl.java b/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1beta1/MockCloudRedisClusterImpl.java index da7655d5d989..a6164b270b84 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1beta1/MockCloudRedisClusterImpl.java +++ b/java-redis-cluster/google-cloud-redis-cluster/src/test/java/com/google/cloud/redis/cluster/v1beta1/MockCloudRedisClusterImpl.java @@ -162,4 +162,26 @@ public void createCluster( Exception.class.getName()))); } } + + @Override + public void getClusterCertificateAuthority( + GetClusterCertificateAuthorityRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof CertificateAuthority) { + requests.add(request); + responseObserver.onNext(((CertificateAuthority) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetClusterCertificateAuthority, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + CertificateAuthority.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-redis-cluster/grpc-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterGrpc.java b/java-redis-cluster/grpc-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterGrpc.java index 70f2473838fb..3c846d293842 100644 --- a/java-redis-cluster/grpc-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterGrpc.java +++ b/java-redis-cluster/grpc-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterGrpc.java @@ -277,6 +277,59 @@ private CloudRedisClusterGrpc() {} return getCreateClusterMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest, + com.google.cloud.redis.cluster.v1.CertificateAuthority> + getGetClusterCertificateAuthorityMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetClusterCertificateAuthority", + requestType = com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest.class, + responseType = com.google.cloud.redis.cluster.v1.CertificateAuthority.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest, + com.google.cloud.redis.cluster.v1.CertificateAuthority> + getGetClusterCertificateAuthorityMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest, + com.google.cloud.redis.cluster.v1.CertificateAuthority> + getGetClusterCertificateAuthorityMethod; + if ((getGetClusterCertificateAuthorityMethod = + CloudRedisClusterGrpc.getGetClusterCertificateAuthorityMethod) + == null) { + synchronized (CloudRedisClusterGrpc.class) { + if ((getGetClusterCertificateAuthorityMethod = + CloudRedisClusterGrpc.getGetClusterCertificateAuthorityMethod) + == null) { + CloudRedisClusterGrpc.getGetClusterCertificateAuthorityMethod = + getGetClusterCertificateAuthorityMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetClusterCertificateAuthority")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1 + .GetClusterCertificateAuthorityRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1.CertificateAuthority + .getDefaultInstance())) + .setSchemaDescriptor( + new CloudRedisClusterMethodDescriptorSupplier( + "GetClusterCertificateAuthority")) + .build(); + } + } + } + return getGetClusterCertificateAuthorityMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static CloudRedisClusterStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -427,6 +480,21 @@ default void createCluster( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getCreateClusterMethod(), responseObserver); } + + /** + * + * + *
+     * Gets the details of certificate authority information for Redis cluster.
+     * 
+ */ + default void getClusterCertificateAuthority( + com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetClusterCertificateAuthorityMethod(), responseObserver); + } } /** @@ -589,6 +657,23 @@ public void createCluster( request, responseObserver); } + + /** + * + * + *
+     * Gets the details of certificate authority information for Redis cluster.
+     * 
+ */ + public void getClusterCertificateAuthority( + com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetClusterCertificateAuthorityMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -706,6 +791,19 @@ public com.google.longrunning.Operation createCluster( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateClusterMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Gets the details of certificate authority information for Redis cluster.
+     * 
+ */ + public com.google.cloud.redis.cluster.v1.CertificateAuthority getClusterCertificateAuthority( + com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetClusterCertificateAuthorityMethod(), getCallOptions(), request); + } } /** @@ -824,6 +922,22 @@ protected CloudRedisClusterFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateClusterMethod(), getCallOptions()), request); } + + /** + * + * + *
+     * Gets the details of certificate authority information for Redis cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.redis.cluster.v1.CertificateAuthority> + getClusterCertificateAuthority( + com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetClusterCertificateAuthorityMethod(), getCallOptions()), + request); + } } private static final int METHODID_LIST_CLUSTERS = 0; @@ -831,6 +945,7 @@ protected CloudRedisClusterFutureStub build( private static final int METHODID_UPDATE_CLUSTER = 2; private static final int METHODID_DELETE_CLUSTER = 3; private static final int METHODID_CREATE_CLUSTER = 4; + private static final int METHODID_GET_CLUSTER_CERTIFICATE_AUTHORITY = 5; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -876,6 +991,12 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.redis.cluster.v1.CreateClusterRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_GET_CLUSTER_CERTIFICATE_AUTHORITY: + serviceImpl.getClusterCertificateAuthority( + (com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; default: throw new AssertionError(); } @@ -925,6 +1046,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.redis.cluster.v1.CreateClusterRequest, com.google.longrunning.Operation>(service, METHODID_CREATE_CLUSTER))) + .addMethod( + getGetClusterCertificateAuthorityMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest, + com.google.cloud.redis.cluster.v1.CertificateAuthority>( + service, METHODID_GET_CLUSTER_CERTIFICATE_AUTHORITY))) .build(); } @@ -981,6 +1109,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getUpdateClusterMethod()) .addMethod(getDeleteClusterMethod()) .addMethod(getCreateClusterMethod()) + .addMethod(getGetClusterCertificateAuthorityMethod()) .build(); } } diff --git a/java-redis-cluster/grpc-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterGrpc.java b/java-redis-cluster/grpc-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterGrpc.java index f5027ed27f06..f14e4c3ee4bd 100644 --- a/java-redis-cluster/grpc-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterGrpc.java +++ b/java-redis-cluster/grpc-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterGrpc.java @@ -283,6 +283,61 @@ private CloudRedisClusterGrpc() {} return getCreateClusterMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest, + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority> + getGetClusterCertificateAuthorityMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetClusterCertificateAuthority", + requestType = + com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest.class, + responseType = com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest, + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority> + getGetClusterCertificateAuthorityMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest, + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority> + getGetClusterCertificateAuthorityMethod; + if ((getGetClusterCertificateAuthorityMethod = + CloudRedisClusterGrpc.getGetClusterCertificateAuthorityMethod) + == null) { + synchronized (CloudRedisClusterGrpc.class) { + if ((getGetClusterCertificateAuthorityMethod = + CloudRedisClusterGrpc.getGetClusterCertificateAuthorityMethod) + == null) { + CloudRedisClusterGrpc.getGetClusterCertificateAuthorityMethod = + getGetClusterCertificateAuthorityMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetClusterCertificateAuthority")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1beta1 + .GetClusterCertificateAuthorityRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .getDefaultInstance())) + .setSchemaDescriptor( + new CloudRedisClusterMethodDescriptorSupplier( + "GetClusterCertificateAuthority")) + .build(); + } + } + } + return getGetClusterCertificateAuthorityMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static CloudRedisClusterStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -434,6 +489,21 @@ default void createCluster( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getCreateClusterMethod(), responseObserver); } + + /** + * + * + *
+     * Gets the details of certificate authority information for Redis cluster.
+     * 
+ */ + default void getClusterCertificateAuthority( + com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetClusterCertificateAuthorityMethod(), responseObserver); + } } /** @@ -597,6 +667,23 @@ public void createCluster( request, responseObserver); } + + /** + * + * + *
+     * Gets the details of certificate authority information for Redis cluster.
+     * 
+ */ + public void getClusterCertificateAuthority( + com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetClusterCertificateAuthorityMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -714,6 +801,20 @@ public com.google.longrunning.Operation createCluster( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateClusterMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Gets the details of certificate authority information for Redis cluster.
+     * 
+ */ + public com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + getClusterCertificateAuthority( + com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetClusterCertificateAuthorityMethod(), getCallOptions(), request); + } } /** @@ -832,6 +933,22 @@ protected CloudRedisClusterFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateClusterMethod(), getCallOptions()), request); } + + /** + * + * + *
+     * Gets the details of certificate authority information for Redis cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority> + getClusterCertificateAuthority( + com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetClusterCertificateAuthorityMethod(), getCallOptions()), + request); + } } private static final int METHODID_LIST_CLUSTERS = 0; @@ -839,6 +956,7 @@ protected CloudRedisClusterFutureStub build( private static final int METHODID_UPDATE_CLUSTER = 2; private static final int METHODID_DELETE_CLUSTER = 3; private static final int METHODID_CREATE_CLUSTER = 4; + private static final int METHODID_GET_CLUSTER_CERTIFICATE_AUTHORITY = 5; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -885,6 +1003,14 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.redis.cluster.v1beta1.CreateClusterRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_GET_CLUSTER_CERTIFICATE_AUTHORITY: + serviceImpl.getClusterCertificateAuthority( + (com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority>) + responseObserver); + break; default: throw new AssertionError(); } @@ -934,6 +1060,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.redis.cluster.v1beta1.CreateClusterRequest, com.google.longrunning.Operation>(service, METHODID_CREATE_CLUSTER))) + .addMethod( + getGetClusterCertificateAuthorityMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest, + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority>( + service, METHODID_GET_CLUSTER_CERTIFICATE_AUTHORITY))) .build(); } @@ -990,6 +1123,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getUpdateClusterMethod()) .addMethod(getDeleteClusterMethod()) .addMethod(getCreateClusterMethod()) + .addMethod(getGetClusterCertificateAuthorityMethod()) .build(); } } diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CertificateAuthority.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CertificateAuthority.java new file mode 100644 index 000000000000..43e9bde3e334 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CertificateAuthority.java @@ -0,0 +1,3005 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
+ * Redis cluster certificate authority
+ * 
+ * + * Protobuf type {@code google.cloud.redis.cluster.v1.CertificateAuthority} + */ +public final class CertificateAuthority extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.CertificateAuthority) + CertificateAuthorityOrBuilder { + private static final long serialVersionUID = 0L; + // Use CertificateAuthority.newBuilder() to construct. + private CertificateAuthority(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CertificateAuthority() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CertificateAuthority(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_CertificateAuthority_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_CertificateAuthority_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.CertificateAuthority.class, + com.google.cloud.redis.cluster.v1.CertificateAuthority.Builder.class); + } + + public interface ManagedCertificateAuthorityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The PEM encoded CA certificate chains for redis managed
+     * server authentication
+     * 
+ * + * + * repeated .google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + java.util.List< + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChain> + getCaCertsList(); + /** + * + * + *
+     * The PEM encoded CA certificate chains for redis managed
+     * server authentication
+     * 
+ * + * + * repeated .google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority.CertChain + getCaCerts(int index); + /** + * + * + *
+     * The PEM encoded CA certificate chains for redis managed
+     * server authentication
+     * 
+ * + * + * repeated .google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + int getCaCertsCount(); + /** + * + * + *
+     * The PEM encoded CA certificate chains for redis managed
+     * server authentication
+     * 
+ * + * + * repeated .google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChainOrBuilder> + getCaCertsOrBuilderList(); + /** + * + * + *
+     * The PEM encoded CA certificate chains for redis managed
+     * server authentication
+     * 
+ * + * + * repeated .google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChainOrBuilder + getCaCertsOrBuilder(int index); + } + /** + * Protobuf type {@code + * google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority} + */ + public static final class ManagedCertificateAuthority + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority) + ManagedCertificateAuthorityOrBuilder { + private static final long serialVersionUID = 0L; + // Use ManagedCertificateAuthority.newBuilder() to construct. + private ManagedCertificateAuthority(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ManagedCertificateAuthority() { + caCerts_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ManagedCertificateAuthority(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_CertificateAuthority_ManagedCertificateAuthority_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_CertificateAuthority_ManagedCertificateAuthority_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .class, + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .Builder.class); + } + + public interface CertChainOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority.CertChain) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * The certificates that form the CA chain, from leaf to root order.
+       * 
+ * + * repeated string certificates = 1; + * + * @return A list containing the certificates. + */ + java.util.List getCertificatesList(); + /** + * + * + *
+       * The certificates that form the CA chain, from leaf to root order.
+       * 
+ * + * repeated string certificates = 1; + * + * @return The count of certificates. + */ + int getCertificatesCount(); + /** + * + * + *
+       * The certificates that form the CA chain, from leaf to root order.
+       * 
+ * + * repeated string certificates = 1; + * + * @param index The index of the element to return. + * @return The certificates at the given index. + */ + java.lang.String getCertificates(int index); + /** + * + * + *
+       * The certificates that form the CA chain, from leaf to root order.
+       * 
+ * + * repeated string certificates = 1; + * + * @param index The index of the value to return. + * @return The bytes of the certificates at the given index. + */ + com.google.protobuf.ByteString getCertificatesBytes(int index); + } + /** + * Protobuf type {@code + * google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority.CertChain} + */ + public static final class CertChain extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority.CertChain) + CertChainOrBuilder { + private static final long serialVersionUID = 0L; + // Use CertChain.newBuilder() to construct. + private CertChain(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CertChain() { + certificates_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CertChain(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_CertificateAuthority_ManagedCertificateAuthority_CertChain_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_CertificateAuthority_ManagedCertificateAuthority_CertChain_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChain.class, + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChain.Builder.class); + } + + public static final int CERTIFICATES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList certificates_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+       * The certificates that form the CA chain, from leaf to root order.
+       * 
+ * + * repeated string certificates = 1; + * + * @return A list containing the certificates. + */ + public com.google.protobuf.ProtocolStringList getCertificatesList() { + return certificates_; + } + /** + * + * + *
+       * The certificates that form the CA chain, from leaf to root order.
+       * 
+ * + * repeated string certificates = 1; + * + * @return The count of certificates. + */ + public int getCertificatesCount() { + return certificates_.size(); + } + /** + * + * + *
+       * The certificates that form the CA chain, from leaf to root order.
+       * 
+ * + * repeated string certificates = 1; + * + * @param index The index of the element to return. + * @return The certificates at the given index. + */ + public java.lang.String getCertificates(int index) { + return certificates_.get(index); + } + /** + * + * + *
+       * The certificates that form the CA chain, from leaf to root order.
+       * 
+ * + * repeated string certificates = 1; + * + * @param index The index of the value to return. + * @return The bytes of the certificates at the given index. + */ + public com.google.protobuf.ByteString getCertificatesBytes(int index) { + return certificates_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < certificates_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, certificates_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < certificates_.size(); i++) { + dataSize += computeStringSizeNoTag(certificates_.getRaw(i)); + } + size += dataSize; + size += 1 * getCertificatesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChain)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority.CertChain + other = + (com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChain) + obj; + + if (!getCertificatesList().equals(other.getCertificatesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getCertificatesCount() > 0) { + hash = (37 * hash) + CERTIFICATES_FIELD_NUMBER; + hash = (53 * hash) + getCertificatesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.CertificateAuthority + .ManagedCertificateAuthority.CertChain + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.CertificateAuthority + .ManagedCertificateAuthority.CertChain + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.CertificateAuthority + .ManagedCertificateAuthority.CertChain + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.CertificateAuthority + .ManagedCertificateAuthority.CertChain + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.CertificateAuthority + .ManagedCertificateAuthority.CertChain + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.CertificateAuthority + .ManagedCertificateAuthority.CertChain + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.CertificateAuthority + .ManagedCertificateAuthority.CertChain + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.CertificateAuthority + .ManagedCertificateAuthority.CertChain + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.CertificateAuthority + .ManagedCertificateAuthority.CertChain + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.CertificateAuthority + .ManagedCertificateAuthority.CertChain + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.CertificateAuthority + .ManagedCertificateAuthority.CertChain + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.CertificateAuthority + .ManagedCertificateAuthority.CertChain + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChain + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code + * google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority.CertChain} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority.CertChain) + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChainOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_CertificateAuthority_ManagedCertificateAuthority_CertChain_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_CertificateAuthority_ManagedCertificateAuthority_CertChain_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChain.class, + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChain.Builder.class); + } + + // Construct using + // com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority.CertChain.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + certificates_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_CertificateAuthority_ManagedCertificateAuthority_CertChain_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChain + getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChain.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChain + build() { + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChain + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChain + buildPartial() { + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChain + result = + new com.google.cloud.redis.cluster.v1.CertificateAuthority + .ManagedCertificateAuthority.CertChain(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChain + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + certificates_.makeImmutable(); + result.certificates_ = certificates_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChain) { + return mergeFrom( + (com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChain) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChain + other) { + if (other + == com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChain.getDefaultInstance()) return this; + if (!other.certificates_.isEmpty()) { + if (certificates_.isEmpty()) { + certificates_ = other.certificates_; + bitField0_ |= 0x00000001; + } else { + ensureCertificatesIsMutable(); + certificates_.addAll(other.certificates_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureCertificatesIsMutable(); + certificates_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList certificates_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureCertificatesIsMutable() { + if (!certificates_.isModifiable()) { + certificates_ = new com.google.protobuf.LazyStringArrayList(certificates_); + } + bitField0_ |= 0x00000001; + } + /** + * + * + *
+         * The certificates that form the CA chain, from leaf to root order.
+         * 
+ * + * repeated string certificates = 1; + * + * @return A list containing the certificates. + */ + public com.google.protobuf.ProtocolStringList getCertificatesList() { + certificates_.makeImmutable(); + return certificates_; + } + /** + * + * + *
+         * The certificates that form the CA chain, from leaf to root order.
+         * 
+ * + * repeated string certificates = 1; + * + * @return The count of certificates. + */ + public int getCertificatesCount() { + return certificates_.size(); + } + /** + * + * + *
+         * The certificates that form the CA chain, from leaf to root order.
+         * 
+ * + * repeated string certificates = 1; + * + * @param index The index of the element to return. + * @return The certificates at the given index. + */ + public java.lang.String getCertificates(int index) { + return certificates_.get(index); + } + /** + * + * + *
+         * The certificates that form the CA chain, from leaf to root order.
+         * 
+ * + * repeated string certificates = 1; + * + * @param index The index of the value to return. + * @return The bytes of the certificates at the given index. + */ + public com.google.protobuf.ByteString getCertificatesBytes(int index) { + return certificates_.getByteString(index); + } + /** + * + * + *
+         * The certificates that form the CA chain, from leaf to root order.
+         * 
+ * + * repeated string certificates = 1; + * + * @param index The index to set the value at. + * @param value The certificates to set. + * @return This builder for chaining. + */ + public Builder setCertificates(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCertificatesIsMutable(); + certificates_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * The certificates that form the CA chain, from leaf to root order.
+         * 
+ * + * repeated string certificates = 1; + * + * @param value The certificates to add. + * @return This builder for chaining. + */ + public Builder addCertificates(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCertificatesIsMutable(); + certificates_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * The certificates that form the CA chain, from leaf to root order.
+         * 
+ * + * repeated string certificates = 1; + * + * @param values The certificates to add. + * @return This builder for chaining. + */ + public Builder addAllCertificates(java.lang.Iterable values) { + ensureCertificatesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, certificates_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * The certificates that form the CA chain, from leaf to root order.
+         * 
+ * + * repeated string certificates = 1; + * + * @return This builder for chaining. + */ + public Builder clearCertificates() { + certificates_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + /** + * + * + *
+         * The certificates that form the CA chain, from leaf to root order.
+         * 
+ * + * repeated string certificates = 1; + * + * @param value The bytes of the certificates to add. + * @return This builder for chaining. + */ + public Builder addCertificatesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureCertificatesIsMutable(); + certificates_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority.CertChain) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority.CertChain) + private static final com.google.cloud.redis.cluster.v1.CertificateAuthority + .ManagedCertificateAuthority.CertChain + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChain(); + } + + public static com.google.cloud.redis.cluster.v1.CertificateAuthority + .ManagedCertificateAuthority.CertChain + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertChain parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChain + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int CA_CERTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChain> + caCerts_; + /** + * + * + *
+     * The PEM encoded CA certificate chains for redis managed
+     * server authentication
+     * 
+ * + * + * repeated .google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChain> + getCaCertsList() { + return caCerts_; + } + /** + * + * + *
+     * The PEM encoded CA certificate chains for redis managed
+     * server authentication
+     * 
+ * + * + * repeated .google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChainOrBuilder> + getCaCertsOrBuilderList() { + return caCerts_; + } + /** + * + * + *
+     * The PEM encoded CA certificate chains for redis managed
+     * server authentication
+     * 
+ * + * + * repeated .google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + @java.lang.Override + public int getCaCertsCount() { + return caCerts_.size(); + } + /** + * + * + *
+     * The PEM encoded CA certificate chains for redis managed
+     * server authentication
+     * 
+ * + * + * repeated .google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChain + getCaCerts(int index) { + return caCerts_.get(index); + } + /** + * + * + *
+     * The PEM encoded CA certificate chains for redis managed
+     * server authentication
+     * 
+ * + * + * repeated .google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChainOrBuilder + getCaCertsOrBuilder(int index) { + return caCerts_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < caCerts_.size(); i++) { + output.writeMessage(1, caCerts_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < caCerts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, caCerts_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority other = + (com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority) obj; + + if (!getCaCertsList().equals(other.getCaCertsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getCaCertsCount() > 0) { + hash = (37 * hash) + CA_CERTS_FIELD_NUMBER; + hash = (53 * hash) + getCaCertsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code + * google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority) + com.google.cloud.redis.cluster.v1.CertificateAuthority + .ManagedCertificateAuthorityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_CertificateAuthority_ManagedCertificateAuthority_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_CertificateAuthority_ManagedCertificateAuthority_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .class, + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .Builder.class); + } + + // Construct using + // com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (caCertsBuilder_ == null) { + caCerts_ = java.util.Collections.emptyList(); + } else { + caCerts_ = null; + caCertsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_CertificateAuthority_ManagedCertificateAuthority_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + build() { + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + buildPartial() { + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority result = + new com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + result) { + if (caCertsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + caCerts_ = java.util.Collections.unmodifiableList(caCerts_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.caCerts_ = caCerts_; + } else { + result.caCerts_ = caCertsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority) { + return mergeFrom( + (com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + other) { + if (other + == com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .getDefaultInstance()) return this; + if (caCertsBuilder_ == null) { + if (!other.caCerts_.isEmpty()) { + if (caCerts_.isEmpty()) { + caCerts_ = other.caCerts_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCaCertsIsMutable(); + caCerts_.addAll(other.caCerts_); + } + onChanged(); + } + } else { + if (!other.caCerts_.isEmpty()) { + if (caCertsBuilder_.isEmpty()) { + caCertsBuilder_.dispose(); + caCertsBuilder_ = null; + caCerts_ = other.caCerts_; + bitField0_ = (bitField0_ & ~0x00000001); + caCertsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCaCertsFieldBuilder() + : null; + } else { + caCertsBuilder_.addAllMessages(other.caCerts_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChain + m = + input.readMessage( + com.google.cloud.redis.cluster.v1.CertificateAuthority + .ManagedCertificateAuthority.CertChain.parser(), + extensionRegistry); + if (caCertsBuilder_ == null) { + ensureCaCertsIsMutable(); + caCerts_.add(m); + } else { + caCertsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List< + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChain> + caCerts_ = java.util.Collections.emptyList(); + + private void ensureCaCertsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + caCerts_ = + new java.util.ArrayList< + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChain>(caCerts_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChain, + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChain.Builder, + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChainOrBuilder> + caCertsBuilder_; + + /** + * + * + *
+       * The PEM encoded CA certificate chains for redis managed
+       * server authentication
+       * 
+ * + * + * repeated .google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + public java.util.List< + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChain> + getCaCertsList() { + if (caCertsBuilder_ == null) { + return java.util.Collections.unmodifiableList(caCerts_); + } else { + return caCertsBuilder_.getMessageList(); + } + } + /** + * + * + *
+       * The PEM encoded CA certificate chains for redis managed
+       * server authentication
+       * 
+ * + * + * repeated .google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + public int getCaCertsCount() { + if (caCertsBuilder_ == null) { + return caCerts_.size(); + } else { + return caCertsBuilder_.getCount(); + } + } + /** + * + * + *
+       * The PEM encoded CA certificate chains for redis managed
+       * server authentication
+       * 
+ * + * + * repeated .google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + public com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChain + getCaCerts(int index) { + if (caCertsBuilder_ == null) { + return caCerts_.get(index); + } else { + return caCertsBuilder_.getMessage(index); + } + } + /** + * + * + *
+       * The PEM encoded CA certificate chains for redis managed
+       * server authentication
+       * 
+ * + * + * repeated .google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + public Builder setCaCerts( + int index, + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChain + value) { + if (caCertsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCaCertsIsMutable(); + caCerts_.set(index, value); + onChanged(); + } else { + caCertsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+       * The PEM encoded CA certificate chains for redis managed
+       * server authentication
+       * 
+ * + * + * repeated .google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + public Builder setCaCerts( + int index, + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChain.Builder + builderForValue) { + if (caCertsBuilder_ == null) { + ensureCaCertsIsMutable(); + caCerts_.set(index, builderForValue.build()); + onChanged(); + } else { + caCertsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * The PEM encoded CA certificate chains for redis managed
+       * server authentication
+       * 
+ * + * + * repeated .google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + public Builder addCaCerts( + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChain + value) { + if (caCertsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCaCertsIsMutable(); + caCerts_.add(value); + onChanged(); + } else { + caCertsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+       * The PEM encoded CA certificate chains for redis managed
+       * server authentication
+       * 
+ * + * + * repeated .google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + public Builder addCaCerts( + int index, + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChain + value) { + if (caCertsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCaCertsIsMutable(); + caCerts_.add(index, value); + onChanged(); + } else { + caCertsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+       * The PEM encoded CA certificate chains for redis managed
+       * server authentication
+       * 
+ * + * + * repeated .google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + public Builder addCaCerts( + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChain.Builder + builderForValue) { + if (caCertsBuilder_ == null) { + ensureCaCertsIsMutable(); + caCerts_.add(builderForValue.build()); + onChanged(); + } else { + caCertsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * The PEM encoded CA certificate chains for redis managed
+       * server authentication
+       * 
+ * + * + * repeated .google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + public Builder addCaCerts( + int index, + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChain.Builder + builderForValue) { + if (caCertsBuilder_ == null) { + ensureCaCertsIsMutable(); + caCerts_.add(index, builderForValue.build()); + onChanged(); + } else { + caCertsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * The PEM encoded CA certificate chains for redis managed
+       * server authentication
+       * 
+ * + * + * repeated .google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + public Builder addAllCaCerts( + java.lang.Iterable< + ? extends + com.google.cloud.redis.cluster.v1.CertificateAuthority + .ManagedCertificateAuthority.CertChain> + values) { + if (caCertsBuilder_ == null) { + ensureCaCertsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, caCerts_); + onChanged(); + } else { + caCertsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+       * The PEM encoded CA certificate chains for redis managed
+       * server authentication
+       * 
+ * + * + * repeated .google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + public Builder clearCaCerts() { + if (caCertsBuilder_ == null) { + caCerts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + caCertsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * The PEM encoded CA certificate chains for redis managed
+       * server authentication
+       * 
+ * + * + * repeated .google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + public Builder removeCaCerts(int index) { + if (caCertsBuilder_ == null) { + ensureCaCertsIsMutable(); + caCerts_.remove(index); + onChanged(); + } else { + caCertsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+       * The PEM encoded CA certificate chains for redis managed
+       * server authentication
+       * 
+ * + * + * repeated .google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + public com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChain.Builder + getCaCertsBuilder(int index) { + return getCaCertsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * The PEM encoded CA certificate chains for redis managed
+       * server authentication
+       * 
+ * + * + * repeated .google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + public com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChainOrBuilder + getCaCertsOrBuilder(int index) { + if (caCertsBuilder_ == null) { + return caCerts_.get(index); + } else { + return caCertsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+       * The PEM encoded CA certificate chains for redis managed
+       * server authentication
+       * 
+ * + * + * repeated .google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChainOrBuilder> + getCaCertsOrBuilderList() { + if (caCertsBuilder_ != null) { + return caCertsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(caCerts_); + } + } + /** + * + * + *
+       * The PEM encoded CA certificate chains for redis managed
+       * server authentication
+       * 
+ * + * + * repeated .google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + public com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChain.Builder + addCaCertsBuilder() { + return getCaCertsFieldBuilder() + .addBuilder( + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChain.getDefaultInstance()); + } + /** + * + * + *
+       * The PEM encoded CA certificate chains for redis managed
+       * server authentication
+       * 
+ * + * + * repeated .google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + public com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChain.Builder + addCaCertsBuilder(int index) { + return getCaCertsFieldBuilder() + .addBuilder( + index, + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChain.getDefaultInstance()); + } + /** + * + * + *
+       * The PEM encoded CA certificate chains for redis managed
+       * server authentication
+       * 
+ * + * + * repeated .google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + public java.util.List< + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChain.Builder> + getCaCertsBuilderList() { + return getCaCertsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChain, + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChain.Builder, + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChainOrBuilder> + getCaCertsFieldBuilder() { + if (caCertsBuilder_ == null) { + caCertsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChain, + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChain.Builder, + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .CertChainOrBuilder>( + caCerts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + caCerts_ = null; + } + return caCertsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority) + private static final com.google.cloud.redis.cluster.v1.CertificateAuthority + .ManagedCertificateAuthority + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority(); + } + + public static com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ManagedCertificateAuthority parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int serverCaCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object serverCa_; + + public enum ServerCaCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + MANAGED_SERVER_CA(1), + SERVERCA_NOT_SET(0); + private final int value; + + private ServerCaCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ServerCaCase valueOf(int value) { + return forNumber(value); + } + + public static ServerCaCase forNumber(int value) { + switch (value) { + case 1: + return MANAGED_SERVER_CA; + case 0: + return SERVERCA_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ServerCaCase getServerCaCase() { + return ServerCaCase.forNumber(serverCaCase_); + } + + public static final int MANAGED_SERVER_CA_FIELD_NUMBER = 1; + /** + * + * .google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority managed_server_ca = 1; + * + * + * @return Whether the managedServerCa field is set. + */ + @java.lang.Override + public boolean hasManagedServerCa() { + return serverCaCase_ == 1; + } + /** + * + * .google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority managed_server_ca = 1; + * + * + * @return The managedServerCa. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + getManagedServerCa() { + if (serverCaCase_ == 1) { + return (com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority) + serverCa_; + } + return com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .getDefaultInstance(); + } + /** + * + * .google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority managed_server_ca = 1; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthorityOrBuilder + getManagedServerCaOrBuilder() { + if (serverCaCase_ == 1) { + return (com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority) + serverCa_; + } + return com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .getDefaultInstance(); + } + + public static final int NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Identifier. Unique name of the resource in this scope including project,
+   * location and cluster using the form:
+   *     `projects/{project}/locations/{location}/clusters/{cluster}/certificateAuthority`
+   * 
+ * + * string name = 2 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Identifier. Unique name of the resource in this scope including project,
+   * location and cluster using the form:
+   *     `projects/{project}/locations/{location}/clusters/{cluster}/certificateAuthority`
+   * 
+ * + * string name = 2 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (serverCaCase_ == 1) { + output.writeMessage( + 1, + (com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority) + serverCa_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (serverCaCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority) + serverCa_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.cluster.v1.CertificateAuthority)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.CertificateAuthority other = + (com.google.cloud.redis.cluster.v1.CertificateAuthority) obj; + + if (!getName().equals(other.getName())) return false; + if (!getServerCaCase().equals(other.getServerCaCase())) return false; + switch (serverCaCase_) { + case 1: + if (!getManagedServerCa().equals(other.getManagedServerCa())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + switch (serverCaCase_) { + case 1: + hash = (37 * hash) + MANAGED_SERVER_CA_FIELD_NUMBER; + hash = (53 * hash) + getManagedServerCa().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.CertificateAuthority parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.CertificateAuthority parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.CertificateAuthority parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.CertificateAuthority parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.CertificateAuthority parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.CertificateAuthority parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.CertificateAuthority parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.CertificateAuthority parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.CertificateAuthority parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.CertificateAuthority parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.CertificateAuthority parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.CertificateAuthority parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1.CertificateAuthority prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Redis cluster certificate authority
+   * 
+ * + * Protobuf type {@code google.cloud.redis.cluster.v1.CertificateAuthority} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.CertificateAuthority) + com.google.cloud.redis.cluster.v1.CertificateAuthorityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_CertificateAuthority_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_CertificateAuthority_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.CertificateAuthority.class, + com.google.cloud.redis.cluster.v1.CertificateAuthority.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.CertificateAuthority.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (managedServerCaBuilder_ != null) { + managedServerCaBuilder_.clear(); + } + name_ = ""; + serverCaCase_ = 0; + serverCa_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_CertificateAuthority_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.CertificateAuthority getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.CertificateAuthority.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.CertificateAuthority build() { + com.google.cloud.redis.cluster.v1.CertificateAuthority result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.CertificateAuthority buildPartial() { + com.google.cloud.redis.cluster.v1.CertificateAuthority result = + new com.google.cloud.redis.cluster.v1.CertificateAuthority(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1.CertificateAuthority result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; + } + } + + private void buildPartialOneofs(com.google.cloud.redis.cluster.v1.CertificateAuthority result) { + result.serverCaCase_ = serverCaCase_; + result.serverCa_ = this.serverCa_; + if (serverCaCase_ == 1 && managedServerCaBuilder_ != null) { + result.serverCa_ = managedServerCaBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1.CertificateAuthority) { + return mergeFrom((com.google.cloud.redis.cluster.v1.CertificateAuthority) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1.CertificateAuthority other) { + if (other == com.google.cloud.redis.cluster.v1.CertificateAuthority.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000002; + onChanged(); + } + switch (other.getServerCaCase()) { + case MANAGED_SERVER_CA: + { + mergeManagedServerCa(other.getManagedServerCa()); + break; + } + case SERVERCA_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getManagedServerCaFieldBuilder().getBuilder(), extensionRegistry); + serverCaCase_ = 1; + break; + } // case 10 + case 18: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int serverCaCase_ = 0; + private java.lang.Object serverCa_; + + public ServerCaCase getServerCaCase() { + return ServerCaCase.forNumber(serverCaCase_); + } + + public Builder clearServerCa() { + serverCaCase_ = 0; + serverCa_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority, + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .Builder, + com.google.cloud.redis.cluster.v1.CertificateAuthority + .ManagedCertificateAuthorityOrBuilder> + managedServerCaBuilder_; + /** + * + * .google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority managed_server_ca = 1; + * + * + * @return Whether the managedServerCa field is set. + */ + @java.lang.Override + public boolean hasManagedServerCa() { + return serverCaCase_ == 1; + } + /** + * + * .google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority managed_server_ca = 1; + * + * + * @return The managedServerCa. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + getManagedServerCa() { + if (managedServerCaBuilder_ == null) { + if (serverCaCase_ == 1) { + return (com.google.cloud.redis.cluster.v1.CertificateAuthority + .ManagedCertificateAuthority) + serverCa_; + } + return com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .getDefaultInstance(); + } else { + if (serverCaCase_ == 1) { + return managedServerCaBuilder_.getMessage(); + } + return com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .getDefaultInstance(); + } + } + /** + * + * .google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority managed_server_ca = 1; + * + */ + public Builder setManagedServerCa( + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority value) { + if (managedServerCaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + serverCa_ = value; + onChanged(); + } else { + managedServerCaBuilder_.setMessage(value); + } + serverCaCase_ = 1; + return this; + } + /** + * + * .google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority managed_server_ca = 1; + * + */ + public Builder setManagedServerCa( + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority.Builder + builderForValue) { + if (managedServerCaBuilder_ == null) { + serverCa_ = builderForValue.build(); + onChanged(); + } else { + managedServerCaBuilder_.setMessage(builderForValue.build()); + } + serverCaCase_ = 1; + return this; + } + /** + * + * .google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority managed_server_ca = 1; + * + */ + public Builder mergeManagedServerCa( + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority value) { + if (managedServerCaBuilder_ == null) { + if (serverCaCase_ == 1 + && serverCa_ + != com.google.cloud.redis.cluster.v1.CertificateAuthority + .ManagedCertificateAuthority.getDefaultInstance()) { + serverCa_ = + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .newBuilder( + (com.google.cloud.redis.cluster.v1.CertificateAuthority + .ManagedCertificateAuthority) + serverCa_) + .mergeFrom(value) + .buildPartial(); + } else { + serverCa_ = value; + } + onChanged(); + } else { + if (serverCaCase_ == 1) { + managedServerCaBuilder_.mergeFrom(value); + } else { + managedServerCaBuilder_.setMessage(value); + } + } + serverCaCase_ = 1; + return this; + } + /** + * + * .google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority managed_server_ca = 1; + * + */ + public Builder clearManagedServerCa() { + if (managedServerCaBuilder_ == null) { + if (serverCaCase_ == 1) { + serverCaCase_ = 0; + serverCa_ = null; + onChanged(); + } + } else { + if (serverCaCase_ == 1) { + serverCaCase_ = 0; + serverCa_ = null; + } + managedServerCaBuilder_.clear(); + } + return this; + } + /** + * + * .google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority managed_server_ca = 1; + * + */ + public com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .Builder + getManagedServerCaBuilder() { + return getManagedServerCaFieldBuilder().getBuilder(); + } + /** + * + * .google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority managed_server_ca = 1; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.CertificateAuthority + .ManagedCertificateAuthorityOrBuilder + getManagedServerCaOrBuilder() { + if ((serverCaCase_ == 1) && (managedServerCaBuilder_ != null)) { + return managedServerCaBuilder_.getMessageOrBuilder(); + } else { + if (serverCaCase_ == 1) { + return (com.google.cloud.redis.cluster.v1.CertificateAuthority + .ManagedCertificateAuthority) + serverCa_; + } + return com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .getDefaultInstance(); + } + } + /** + * + * .google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority managed_server_ca = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority, + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .Builder, + com.google.cloud.redis.cluster.v1.CertificateAuthority + .ManagedCertificateAuthorityOrBuilder> + getManagedServerCaFieldBuilder() { + if (managedServerCaBuilder_ == null) { + if (!(serverCaCase_ == 1)) { + serverCa_ = + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .getDefaultInstance(); + } + managedServerCaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority, + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + .Builder, + com.google.cloud.redis.cluster.v1.CertificateAuthority + .ManagedCertificateAuthorityOrBuilder>( + (com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority) + serverCa_, + getParentForChildren(), + isClean()); + serverCa_ = null; + } + serverCaCase_ = 1; + onChanged(); + return managedServerCaBuilder_; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Identifier. Unique name of the resource in this scope including project,
+     * location and cluster using the form:
+     *     `projects/{project}/locations/{location}/clusters/{cluster}/certificateAuthority`
+     * 
+ * + * string name = 2 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Identifier. Unique name of the resource in this scope including project,
+     * location and cluster using the form:
+     *     `projects/{project}/locations/{location}/clusters/{cluster}/certificateAuthority`
+     * 
+ * + * string name = 2 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Identifier. Unique name of the resource in this scope including project,
+     * location and cluster using the form:
+     *     `projects/{project}/locations/{location}/clusters/{cluster}/certificateAuthority`
+     * 
+ * + * string name = 2 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Identifier. Unique name of the resource in this scope including project,
+     * location and cluster using the form:
+     *     `projects/{project}/locations/{location}/clusters/{cluster}/certificateAuthority`
+     * 
+ * + * string name = 2 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Identifier. Unique name of the resource in this scope including project,
+     * location and cluster using the form:
+     *     `projects/{project}/locations/{location}/clusters/{cluster}/certificateAuthority`
+     * 
+ * + * string name = 2 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1.CertificateAuthority) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.CertificateAuthority) + private static final com.google.cloud.redis.cluster.v1.CertificateAuthority DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.CertificateAuthority(); + } + + public static com.google.cloud.redis.cluster.v1.CertificateAuthority getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertificateAuthority parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.CertificateAuthority getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CertificateAuthorityName.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CertificateAuthorityName.java new file mode 100644 index 000000000000..bd1708101f2b --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CertificateAuthorityName.java @@ -0,0 +1,225 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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.cluster.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class CertificateAuthorityName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_CLUSTER = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/clusters/{cluster}/certificateAuthority"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String cluster; + + @Deprecated + protected CertificateAuthorityName() { + project = null; + location = null; + cluster = null; + } + + private CertificateAuthorityName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + cluster = Preconditions.checkNotNull(builder.getCluster()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCluster() { + return cluster; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static CertificateAuthorityName of(String project, String location, String cluster) { + return newBuilder().setProject(project).setLocation(location).setCluster(cluster).build(); + } + + public static String format(String project, String location, String cluster) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setCluster(cluster) + .build() + .toString(); + } + + public static CertificateAuthorityName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_CLUSTER.validatedMatch( + formattedString, "CertificateAuthorityName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("cluster")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (CertificateAuthorityName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_CLUSTER.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (cluster != null) { + fieldMapBuilder.put("cluster", cluster); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_CLUSTER.instantiate( + "project", project, "location", location, "cluster", cluster); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + CertificateAuthorityName that = ((CertificateAuthorityName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.cluster, that.cluster); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(cluster); + return h; + } + + /** + * Builder for projects/{project}/locations/{location}/clusters/{cluster}/certificateAuthority. + */ + public static class Builder { + private String project; + private String location; + private String cluster; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCluster() { + return cluster; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setCluster(String cluster) { + this.cluster = cluster; + return this; + } + + private Builder(CertificateAuthorityName certificateAuthorityName) { + this.project = certificateAuthorityName.project; + this.location = certificateAuthorityName.location; + this.cluster = certificateAuthorityName.cluster; + } + + public CertificateAuthorityName build() { + return new CertificateAuthorityName(this); + } + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CertificateAuthorityOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CertificateAuthorityOrBuilder.java new file mode 100644 index 000000000000..7627c48abceb --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CertificateAuthorityOrBuilder.java @@ -0,0 +1,82 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.redis.cluster.v1; + +public interface CertificateAuthorityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.CertificateAuthority) + com.google.protobuf.MessageOrBuilder { + + /** + * + * .google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority managed_server_ca = 1; + * + * + * @return Whether the managedServerCa field is set. + */ + boolean hasManagedServerCa(); + /** + * + * .google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority managed_server_ca = 1; + * + * + * @return The managedServerCa. + */ + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority + getManagedServerCa(); + /** + * + * .google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority managed_server_ca = 1; + * + */ + com.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthorityOrBuilder + getManagedServerCaOrBuilder(); + + /** + * + * + *
+   * Identifier. Unique name of the resource in this scope including project,
+   * location and cluster using the form:
+   *     `projects/{project}/locations/{location}/clusters/{cluster}/certificateAuthority`
+   * 
+ * + * string name = 2 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Identifier. Unique name of the resource in this scope including project,
+   * location and cluster using the form:
+   *     `projects/{project}/locations/{location}/clusters/{cluster}/certificateAuthority`
+   * 
+ * + * string name = 2 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + com.google.cloud.redis.cluster.v1.CertificateAuthority.ServerCaCase getServerCaCase(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterProto.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterProto.java index 5b120be991fd..40d4ce32c6dc 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterProto.java +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/CloudRedisClusterProto.java @@ -52,6 +52,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_redis_cluster_v1_DeleteClusterRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_redis_cluster_v1_DeleteClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_GetClusterCertificateAuthorityRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_GetClusterCertificateAuthorityRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_redis_cluster_v1_Cluster_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -64,6 +68,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_redis_cluster_v1_Cluster_StateInfo_UpdateInfo_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_redis_cluster_v1_Cluster_StateInfo_UpdateInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_Cluster_RedisConfigsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_Cluster_RedisConfigsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_redis_cluster_v1_PscConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -80,6 +88,34 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_redis_cluster_v1_OperationMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_redis_cluster_v1_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_CertificateAuthority_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_CertificateAuthority_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_CertificateAuthority_ManagedCertificateAuthority_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_CertificateAuthority_ManagedCertificateAuthority_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_CertificateAuthority_ManagedCertificateAuthority_CertChain_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_CertificateAuthority_ManagedCertificateAuthority_CertChain_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_ClusterPersistenceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_ClusterPersistenceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_ClusterPersistenceConfig_RDBConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_ClusterPersistenceConfig_RDBConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_ClusterPersistenceConfig_AOFConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_ClusterPersistenceConfig_AOFConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1_ZoneDistributionConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1_ZoneDistributionConfig_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -117,89 +153,155 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "$\340A\002\372A\036\n\034redis.googleapis.com/Cluster\"^\n" + "\024DeleteClusterRequest\0222\n\004name\030\001 \001(\tB$\340A\002" + "\372A\036\n\034redis.googleapis.com/Cluster\022\022\n\nreq" - + "uest_id\030\002 \001(\t\"\257\t\n\007Cluster\022\021\n\004name\030\001 \001(\tB" - + "\003\340A\002\0224\n\013create_time\030\003 \001(\0132\032.google.proto" - + "buf.TimestampB\003\340A\003\022@\n\005state\030\004 \001(\0162,.goog" - + "le.cloud.redis.cluster.v1.Cluster.StateB" - + "\003\340A\003\022\020\n\003uid\030\005 \001(\tB\003\340A\003\022\037\n\rreplica_count\030" - + "\010 \001(\005B\003\340A\001H\000\210\001\001\022Q\n\022authorization_mode\030\013 " - + "\001(\01620.google.cloud.redis.cluster.v1.Auth" - + "orizationModeB\003\340A\001\022Z\n\027transit_encryption" - + "_mode\030\014 \001(\01624.google.cloud.redis.cluster" - + ".v1.TransitEncryptionModeB\003\340A\001\022\031\n\007size_g" - + "b\030\r \001(\005B\003\340A\003H\001\210\001\001\022\035\n\013shard_count\030\016 \001(\005B\003" - + "\340A\002H\002\210\001\001\022B\n\013psc_configs\030\017 \003(\0132(.google.c" - + "loud.redis.cluster.v1.PscConfigB\003\340A\002\022R\n\023" - + "discovery_endpoints\030\020 \003(\01320.google.cloud" - + ".redis.cluster.v1.DiscoveryEndpointB\003\340A\003" - + "\022J\n\017psc_connections\030\021 \003(\0132,.google.cloud" - + ".redis.cluster.v1.PscConnectionB\003\340A\003\022I\n\n" - + "state_info\030\022 \001(\01320.google.cloud.redis.cl" - + "uster.v1.Cluster.StateInfoB\003\340A\003\032\352\001\n\tStat" - + "eInfo\022R\n\013update_info\030\001 \001(\0132;.google.clou" - + "d.redis.cluster.v1.Cluster.StateInfo.Upd" - + "ateInfoH\000\032\200\001\n\nUpdateInfo\022\037\n\022target_shard" - + "_count\030\001 \001(\005H\000\210\001\001\022!\n\024target_replica_coun" - + "t\030\002 \001(\005H\001\210\001\001B\025\n\023_target_shard_countB\027\n\025_" - + "target_replica_countB\006\n\004info\"T\n\005State\022\025\n" - + "\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\n\n\006AC" - + "TIVE\020\002\022\014\n\010UPDATING\020\003\022\014\n\010DELETING\020\004:]\352AZ\n" - + "\034redis.googleapis.com/Cluster\022:projects/" - + "{project}/locations/{location}/clusters/" - + "{cluster}B\020\n\016_replica_countB\n\n\010_size_gbB" - + "\016\n\014_shard_count\"!\n\tPscConfig\022\024\n\007network\030" - + "\002 \001(\tB\003\340A\002\"\177\n\021DiscoveryEndpoint\022\024\n\007addre" - + "ss\030\001 \001(\tB\003\340A\003\022\021\n\004port\030\002 \001(\005B\003\340A\003\022A\n\npsc_" - + "config\030\003 \001(\0132(.google.cloud.redis.cluste" - + "r.v1.PscConfigB\003\340A\003\"\215\001\n\rPscConnection\022\036\n" - + "\021psc_connection_id\030\001 \001(\tB\003\340A\003\022\024\n\007address" - + "\030\002 \001(\tB\003\340A\003\022\034\n\017forwarding_rule\030\003 \001(\tB\003\340A" - + "\003\022\027\n\nproject_id\030\004 \001(\tB\003\340A\003\022\017\n\007network\030\005 " - + "\001(\t\"\200\002\n\021OperationMetadata\0224\n\013create_time" - + "\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" - + "1\n\010end_time\030\002 \001(\0132\032.google.protobuf.Time" - + "stampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030" - + "\004 \001(\tB\003\340A\003\022\033\n\016status_message\030\005 \001(\tB\003\340A\003\022" - + "#\n\026requested_cancellation\030\006 \001(\010B\003\340A\003\022\030\n\013" - + "api_version\030\007 \001(\tB\003\340A\003*^\n\021AuthorizationM" - + "ode\022\031\n\025AUTH_MODE_UNSPECIFIED\020\000\022\026\n\022AUTH_M" - + "ODE_IAM_AUTH\020\001\022\026\n\022AUTH_MODE_DISABLED\020\002*\231" - + "\001\n\025TransitEncryptionMode\022\'\n#TRANSIT_ENCR" - + "YPTION_MODE_UNSPECIFIED\020\000\022$\n TRANSIT_ENC" - + "RYPTION_MODE_DISABLED\020\001\0221\n-TRANSIT_ENCRY" - + "PTION_MODE_SERVER_AUTHENTICATION\020\0022\324\010\n\021C" - + "loudRedisCluster\022\266\001\n\014ListClusters\0222.goog" - + "le.cloud.redis.cluster.v1.ListClustersRe" - + "quest\0323.google.cloud.redis.cluster.v1.Li" - + "stClustersResponse\"=\332A\006parent\202\323\344\223\002.\022,/v1" - + "/{parent=projects/*/locations/*}/cluster" - + "s\022\243\001\n\nGetCluster\0220.google.cloud.redis.cl" - + "uster.v1.GetClusterRequest\032&.google.clou" - + "d.redis.cluster.v1.Cluster\";\332A\004name\202\323\344\223\002" - + ".\022,/v1/{name=projects/*/locations/*/clus" - + "ters/*}\022\341\001\n\rUpdateCluster\0223.google.cloud" - + ".redis.cluster.v1.UpdateClusterRequest\032\035" - + ".google.longrunning.Operation\"|\312A\036\n\007Clus" - + "ter\022\023google.protobuf.Any\332A\023cluster,updat" - + "e_mask\202\323\344\223\002?24/v1/{cluster.name=projects" - + "/*/locations/*/clusters/*}:\007cluster\022\317\001\n\r" - + "DeleteCluster\0223.google.cloud.redis.clust" - + "er.v1.DeleteClusterRequest\032\035.google.long" - + "running.Operation\"j\312A,\n\025google.protobuf." - + "Empty\022\023google.protobuf.Any\332A\004name\202\323\344\223\002.*" - + ",/v1/{name=projects/*/locations/*/cluste" - + "rs/*}\022\337\001\n\rCreateCluster\0223.google.cloud.r" - + "edis.cluster.v1.CreateClusterRequest\032\035.g" - + "oogle.longrunning.Operation\"z\312A\036\n\007Cluste" - + "r\022\023google.protobuf.Any\332A\031parent,cluster," - + "cluster_id\202\323\344\223\0027\",/v1/{parent=projects/*" - + "/locations/*}/clusters:\007cluster\032H\312A\024redi" - + "s.googleapis.com\322A.https://www.googleapi" - + "s.com/auth/cloud-platformB\236\001\n!com.google" - + ".cloud.redis.cluster.v1B\026CloudRedisClust" - + "erProtoP\001Z;cloud.google.com/go/redis/clu" - + "ster/apiv1/clusterpb;clusterpb\352\002!Google:" - + ":Cloud::Redis::Cluster::V1b\006proto3" + + "uest_id\030\002 \001(\t\"h\n%GetClusterCertificateAu" + + "thorityRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)re" + + "dis.googleapis.com/CertificateAuthority\"" + + "\271\r\n\007Cluster\022\021\n\004name\030\001 \001(\tB\003\340A\002\0224\n\013create" + + "_time\030\003 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\022@\n\005state\030\004 \001(\0162,.google.cloud.redis" + + ".cluster.v1.Cluster.StateB\003\340A\003\022\020\n\003uid\030\005 " + + "\001(\tB\003\340A\003\022\037\n\rreplica_count\030\010 \001(\005B\003\340A\001H\000\210\001" + + "\001\022Q\n\022authorization_mode\030\013 \001(\01620.google.c" + + "loud.redis.cluster.v1.AuthorizationModeB" + + "\003\340A\001\022Z\n\027transit_encryption_mode\030\014 \001(\01624." + + "google.cloud.redis.cluster.v1.TransitEnc" + + "ryptionModeB\003\340A\001\022\031\n\007size_gb\030\r \001(\005B\003\340A\003H\001" + + "\210\001\001\022\035\n\013shard_count\030\016 \001(\005B\003\340A\002H\002\210\001\001\022B\n\013ps" + + "c_configs\030\017 \003(\0132(.google.cloud.redis.clu" + + "ster.v1.PscConfigB\003\340A\002\022R\n\023discovery_endp" + + "oints\030\020 \003(\01320.google.cloud.redis.cluster" + + ".v1.DiscoveryEndpointB\003\340A\003\022J\n\017psc_connec" + + "tions\030\021 \003(\0132,.google.cloud.redis.cluster" + + ".v1.PscConnectionB\003\340A\003\022I\n\nstate_info\030\022 \001" + + "(\01320.google.cloud.redis.cluster.v1.Clust" + + "er.StateInfoB\003\340A\003\022?\n\tnode_type\030\023 \001(\0162\'.g" + + "oogle.cloud.redis.cluster.v1.NodeTypeB\003\340" + + "A\001\022X\n\022persistence_config\030\024 \001(\01327.google." + + "cloud.redis.cluster.v1.ClusterPersistenc" + + "eConfigB\003\340A\001\022T\n\rredis_configs\030\025 \003(\01328.go" + + "ogle.cloud.redis.cluster.v1.Cluster.Redi" + + "sConfigsEntryB\003\340A\001\022!\n\017precise_size_gb\030\026 " + + "\001(\001B\003\340A\003H\003\210\001\001\022\\\n\030zone_distribution_confi" + + "g\030\027 \001(\01325.google.cloud.redis.cluster.v1." + + "ZoneDistributionConfigB\003\340A\001\022-\n\033deletion_" + + "protection_enabled\030\031 \001(\010B\003\340A\001H\004\210\001\001\032\352\001\n\tS" + + "tateInfo\022R\n\013update_info\030\001 \001(\0132;.google.c" + + "loud.redis.cluster.v1.Cluster.StateInfo." + + "UpdateInfoH\000\032\200\001\n\nUpdateInfo\022\037\n\022target_sh" + + "ard_count\030\001 \001(\005H\000\210\001\001\022!\n\024target_replica_c" + + "ount\030\002 \001(\005H\001\210\001\001B\025\n\023_target_shard_countB\027" + + "\n\025_target_replica_countB\006\n\004info\0323\n\021Redis" + + "ConfigsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + + ":\0028\001\"T\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010" + + "CREATING\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010UPDATING\020\003\022\014\n\010" + + "DELETING\020\004:]\352AZ\n\034redis.googleapis.com/Cl" + + "uster\022:projects/{project}/locations/{loc" + + "ation}/clusters/{cluster}B\020\n\016_replica_co" + + "untB\n\n\010_size_gbB\016\n\014_shard_countB\022\n\020_prec" + + "ise_size_gbB\036\n\034_deletion_protection_enab" + + "led\"!\n\tPscConfig\022\024\n\007network\030\002 \001(\tB\003\340A\002\"\177" + + "\n\021DiscoveryEndpoint\022\024\n\007address\030\001 \001(\tB\003\340A" + + "\003\022\021\n\004port\030\002 \001(\005B\003\340A\003\022A\n\npsc_config\030\003 \001(\013" + + "2(.google.cloud.redis.cluster.v1.PscConf" + + "igB\003\340A\003\"\215\001\n\rPscConnection\022\036\n\021psc_connect" + + "ion_id\030\001 \001(\tB\003\340A\003\022\024\n\007address\030\002 \001(\tB\003\340A\003\022" + + "\034\n\017forwarding_rule\030\003 \001(\tB\003\340A\003\022\027\n\nproject" + + "_id\030\004 \001(\tB\003\340A\003\022\017\n\007network\030\005 \001(\t\"\200\002\n\021Oper" + + "ationMetadata\0224\n\013create_time\030\001 \001(\0132\032.goo" + + "gle.protobuf.TimestampB\003\340A\003\0221\n\010end_time\030" + + "\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023" + + "\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033" + + "\n\016status_message\030\005 \001(\tB\003\340A\003\022#\n\026requested" + + "_cancellation\030\006 \001(\010B\003\340A\003\022\030\n\013api_version\030" + + "\007 \001(\tB\003\340A\003\"\325\003\n\024CertificateAuthority\022l\n\021m" + + "anaged_server_ca\030\001 \001(\0132O.google.cloud.re" + + "dis.cluster.v1.CertificateAuthority.Mana" + + "gedCertificateAuthorityH\000\022\021\n\004name\030\002 \001(\tB" + + "\003\340A\010\032\255\001\n\033ManagedCertificateAuthority\022k\n\010" + + "ca_certs\030\001 \003(\0132Y.google.cloud.redis.clus" + + "ter.v1.CertificateAuthority.ManagedCerti" + + "ficateAuthority.CertChain\032!\n\tCertChain\022\024" + + "\n\014certificates\030\001 \003(\t:\177\352A|\n)redis.googlea" + + "pis.com/CertificateAuthority\022Oprojects/{" + + "project}/locations/{location}/clusters/{" + + "cluster}/certificateAuthorityB\013\n\tserver_" + + "ca\"\207\007\n\030ClusterPersistenceConfig\022Z\n\004mode\030" + + "\001 \001(\0162G.google.cloud.redis.cluster.v1.Cl" + + "usterPersistenceConfig.PersistenceModeB\003" + + "\340A\001\022Z\n\nrdb_config\030\002 \001(\0132A.google.cloud.r" + + "edis.cluster.v1.ClusterPersistenceConfig" + + ".RDBConfigB\003\340A\001\022Z\n\naof_config\030\003 \001(\0132A.go" + + "ogle.cloud.redis.cluster.v1.ClusterPersi" + + "stenceConfig.AOFConfigB\003\340A\001\032\272\002\n\tRDBConfi" + + "g\022r\n\023rdb_snapshot_period\030\001 \001(\0162P.google." + + "cloud.redis.cluster.v1.ClusterPersistenc" + + "eConfig.RDBConfig.SnapshotPeriodB\003\340A\001\022@\n" + + "\027rdb_snapshot_start_time\030\002 \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\001\"w\n\016SnapshotPerio" + + "d\022\037\n\033SNAPSHOT_PERIOD_UNSPECIFIED\020\000\022\014\n\010ON" + + "E_HOUR\020\001\022\r\n\tSIX_HOURS\020\002\022\020\n\014TWELVE_HOURS\020" + + "\003\022\025\n\021TWENTY_FOUR_HOURS\020\004\032\304\001\n\tAOFConfig\022h" + + "\n\014append_fsync\030\001 \001(\0162M.google.cloud.redi" + + "s.cluster.v1.ClusterPersistenceConfig.AO" + + "FConfig.AppendFsyncB\003\340A\001\"M\n\013AppendFsync\022" + + "\034\n\030APPEND_FSYNC_UNSPECIFIED\020\000\022\006\n\002NO\020\001\022\014\n" + + "\010EVERYSEC\020\002\022\n\n\006ALWAYS\020\003\"S\n\017PersistenceMo" + + "de\022 \n\034PERSISTENCE_MODE_UNSPECIFIED\020\000\022\014\n\010" + + "DISABLED\020\001\022\007\n\003RDB\020\002\022\007\n\003AOF\020\003\"\353\001\n\026ZoneDis" + + "tributionConfig\022]\n\004mode\030\001 \001(\0162J.google.c" + + "loud.redis.cluster.v1.ZoneDistributionCo" + + "nfig.ZoneDistributionModeB\003\340A\001\022\021\n\004zone\030\002" + + " \001(\tB\003\340A\001\"_\n\024ZoneDistributionMode\022&\n\"ZON" + + "E_DISTRIBUTION_MODE_UNSPECIFIED\020\000\022\016\n\nMUL" + + "TI_ZONE\020\001\022\017\n\013SINGLE_ZONE\020\002*^\n\021Authorizat" + + "ionMode\022\031\n\025AUTH_MODE_UNSPECIFIED\020\000\022\026\n\022AU" + + "TH_MODE_IAM_AUTH\020\001\022\026\n\022AUTH_MODE_DISABLED" + + "\020\002*\217\001\n\010NodeType\022\031\n\025NODE_TYPE_UNSPECIFIED" + + "\020\000\022\032\n\026REDIS_SHARED_CORE_NANO\020\001\022\030\n\024REDIS_" + + "HIGHMEM_MEDIUM\020\002\022\030\n\024REDIS_HIGHMEM_XLARGE" + + "\020\003\022\030\n\024REDIS_STANDARD_SMALL\020\004*\231\001\n\025Transit" + + "EncryptionMode\022\'\n#TRANSIT_ENCRYPTION_MOD" + + "E_UNSPECIFIED\020\000\022$\n TRANSIT_ENCRYPTION_MO" + + "DE_DISABLED\020\001\0221\n-TRANSIT_ENCRYPTION_MODE" + + "_SERVER_AUTHENTICATION\020\0022\304\n\n\021CloudRedisC" + + "luster\022\266\001\n\014ListClusters\0222.google.cloud.r" + + "edis.cluster.v1.ListClustersRequest\0323.go" + + "ogle.cloud.redis.cluster.v1.ListClusters" + + "Response\"=\332A\006parent\202\323\344\223\002.\022,/v1/{parent=p" + + "rojects/*/locations/*}/clusters\022\243\001\n\nGetC" + + "luster\0220.google.cloud.redis.cluster.v1.G" + + "etClusterRequest\032&.google.cloud.redis.cl" + + "uster.v1.Cluster\";\332A\004name\202\323\344\223\002.\022,/v1/{na" + + "me=projects/*/locations/*/clusters/*}\022\341\001" + + "\n\rUpdateCluster\0223.google.cloud.redis.clu" + + "ster.v1.UpdateClusterRequest\032\035.google.lo" + + "ngrunning.Operation\"|\312A\036\n\007Cluster\022\023googl" + + "e.protobuf.Any\332A\023cluster,update_mask\202\323\344\223" + + "\002?24/v1/{cluster.name=projects/*/locatio" + + "ns/*/clusters/*}:\007cluster\022\317\001\n\rDeleteClus" + + "ter\0223.google.cloud.redis.cluster.v1.Dele" + + "teClusterRequest\032\035.google.longrunning.Op" + + "eration\"j\312A,\n\025google.protobuf.Empty\022\023goo" + + "gle.protobuf.Any\332A\004name\202\323\344\223\002.*,/v1/{name" + + "=projects/*/locations/*/clusters/*}\022\337\001\n\r" + + "CreateCluster\0223.google.cloud.redis.clust" + + "er.v1.CreateClusterRequest\032\035.google.long" + + "running.Operation\"z\312A\036\n\007Cluster\022\023google." + + "protobuf.Any\332A\031parent,cluster,cluster_id" + + "\202\323\344\223\0027\",/v1/{parent=projects/*/locations" + + "/*}/clusters:\007cluster\022\355\001\n\036GetClusterCert" + + "ificateAuthority\022D.google.cloud.redis.cl" + + "uster.v1.GetClusterCertificateAuthorityR" + + "equest\0323.google.cloud.redis.cluster.v1.C" + + "ertificateAuthority\"P\332A\004name\202\323\344\223\002C\022A/v1/" + + "{name=projects/*/locations/*/clusters/*/" + + "certificateAuthority}\032H\312A\024redis.googleap" + + "is.com\322A.https://www.googleapis.com/auth" + + "/cloud-platformB\236\001\n!com.google.cloud.red" + + "is.cluster.v1B\026CloudRedisClusterProtoP\001Z" + + ";cloud.google.com/go/redis/cluster/apiv1" + + "/clusterpb;clusterpb\352\002!Google::Cloud::Re" + + "dis::Cluster::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -263,8 +365,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", "RequestId", }); - internal_static_google_cloud_redis_cluster_v1_Cluster_descriptor = + internal_static_google_cloud_redis_cluster_v1_GetClusterCertificateAuthorityRequest_descriptor = getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_redis_cluster_v1_GetClusterCertificateAuthorityRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_GetClusterCertificateAuthorityRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_redis_cluster_v1_Cluster_descriptor = + getDescriptor().getMessageTypes().get(7); internal_static_google_cloud_redis_cluster_v1_Cluster_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1_Cluster_descriptor, @@ -282,6 +392,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DiscoveryEndpoints", "PscConnections", "StateInfo", + "NodeType", + "PersistenceConfig", + "RedisConfigs", + "PreciseSizeGb", + "ZoneDistributionConfig", + "DeletionProtectionEnabled", }); internal_static_google_cloud_redis_cluster_v1_Cluster_StateInfo_descriptor = internal_static_google_cloud_redis_cluster_v1_Cluster_descriptor.getNestedTypes().get(0); @@ -301,8 +417,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "TargetShardCount", "TargetReplicaCount", }); + internal_static_google_cloud_redis_cluster_v1_Cluster_RedisConfigsEntry_descriptor = + internal_static_google_cloud_redis_cluster_v1_Cluster_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_redis_cluster_v1_Cluster_RedisConfigsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_Cluster_RedisConfigsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); internal_static_google_cloud_redis_cluster_v1_PscConfig_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(8); internal_static_google_cloud_redis_cluster_v1_PscConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1_PscConfig_descriptor, @@ -310,7 +434,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Network", }); internal_static_google_cloud_redis_cluster_v1_DiscoveryEndpoint_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(9); internal_static_google_cloud_redis_cluster_v1_DiscoveryEndpoint_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1_DiscoveryEndpoint_descriptor, @@ -318,7 +442,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Address", "Port", "PscConfig", }); internal_static_google_cloud_redis_cluster_v1_PscConnection_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(10); internal_static_google_cloud_redis_cluster_v1_PscConnection_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1_PscConnection_descriptor, @@ -326,7 +450,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PscConnectionId", "Address", "ForwardingRule", "ProjectId", "Network", }); internal_static_google_cloud_redis_cluster_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_redis_cluster_v1_OperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1_OperationMetadata_descriptor, @@ -339,6 +463,70 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RequestedCancellation", "ApiVersion", }); + internal_static_google_cloud_redis_cluster_v1_CertificateAuthority_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_redis_cluster_v1_CertificateAuthority_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_CertificateAuthority_descriptor, + new java.lang.String[] { + "ManagedServerCa", "Name", "ServerCa", + }); + internal_static_google_cloud_redis_cluster_v1_CertificateAuthority_ManagedCertificateAuthority_descriptor = + internal_static_google_cloud_redis_cluster_v1_CertificateAuthority_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_redis_cluster_v1_CertificateAuthority_ManagedCertificateAuthority_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_CertificateAuthority_ManagedCertificateAuthority_descriptor, + new java.lang.String[] { + "CaCerts", + }); + internal_static_google_cloud_redis_cluster_v1_CertificateAuthority_ManagedCertificateAuthority_CertChain_descriptor = + internal_static_google_cloud_redis_cluster_v1_CertificateAuthority_ManagedCertificateAuthority_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_redis_cluster_v1_CertificateAuthority_ManagedCertificateAuthority_CertChain_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_CertificateAuthority_ManagedCertificateAuthority_CertChain_descriptor, + new java.lang.String[] { + "Certificates", + }); + internal_static_google_cloud_redis_cluster_v1_ClusterPersistenceConfig_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_redis_cluster_v1_ClusterPersistenceConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_ClusterPersistenceConfig_descriptor, + new java.lang.String[] { + "Mode", "RdbConfig", "AofConfig", + }); + internal_static_google_cloud_redis_cluster_v1_ClusterPersistenceConfig_RDBConfig_descriptor = + internal_static_google_cloud_redis_cluster_v1_ClusterPersistenceConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_redis_cluster_v1_ClusterPersistenceConfig_RDBConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_ClusterPersistenceConfig_RDBConfig_descriptor, + new java.lang.String[] { + "RdbSnapshotPeriod", "RdbSnapshotStartTime", + }); + internal_static_google_cloud_redis_cluster_v1_ClusterPersistenceConfig_AOFConfig_descriptor = + internal_static_google_cloud_redis_cluster_v1_ClusterPersistenceConfig_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_redis_cluster_v1_ClusterPersistenceConfig_AOFConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_ClusterPersistenceConfig_AOFConfig_descriptor, + new java.lang.String[] { + "AppendFsync", + }); + internal_static_google_cloud_redis_cluster_v1_ZoneDistributionConfig_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_redis_cluster_v1_ZoneDistributionConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1_ZoneDistributionConfig_descriptor, + new java.lang.String[] { + "Mode", "Zone", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/Cluster.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/Cluster.java index ca611c3f78ae..b931dee74841 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/Cluster.java +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/Cluster.java @@ -47,6 +47,7 @@ private Cluster() { pscConfigs_ = java.util.Collections.emptyList(); discoveryEndpoints_ = java.util.Collections.emptyList(); pscConnections_ = java.util.Collections.emptyList(); + nodeType_ = 0; } @java.lang.Override @@ -60,6 +61,18 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_cloud_redis_cluster_v1_Cluster_descriptor; } + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 21: + return internalGetRedisConfigs(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { @@ -2209,7 +2222,8 @@ public com.google.cloud.redis.cluster.v1.TransitEncryptionMode getTransitEncrypt * * *
-   * Output only. Redis memory size in GB for the entire cluster.
+   * Output only. Redis memory size in GB for the entire cluster rounded up to
+   * the next integer.
    * 
* * optional int32 size_gb = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2224,7 +2238,8 @@ public boolean hasSizeGb() { * * *
-   * Output only. Redis memory size in GB for the entire cluster.
+   * Output only. Redis memory size in GB for the entire cluster rounded up to
+   * the next integer.
    * 
* * optional int32 size_gb = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2591,6 +2606,342 @@ public com.google.cloud.redis.cluster.v1.Cluster.StateInfoOrBuilder getStateInfo : stateInfo_; } + public static final int NODE_TYPE_FIELD_NUMBER = 19; + private int nodeType_ = 0; + /** + * + * + *
+   * Optional. The type of a redis node in the cluster. NodeType determines the
+   * underlying machine-type of a redis node.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1.NodeType node_type = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for nodeType. + */ + @java.lang.Override + public int getNodeTypeValue() { + return nodeType_; + } + /** + * + * + *
+   * Optional. The type of a redis node in the cluster. NodeType determines the
+   * underlying machine-type of a redis node.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1.NodeType node_type = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The nodeType. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.NodeType getNodeType() { + com.google.cloud.redis.cluster.v1.NodeType result = + com.google.cloud.redis.cluster.v1.NodeType.forNumber(nodeType_); + return result == null ? com.google.cloud.redis.cluster.v1.NodeType.UNRECOGNIZED : result; + } + + public static final int PERSISTENCE_CONFIG_FIELD_NUMBER = 20; + private com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig persistenceConfig_; + /** + * + * + *
+   * Optional. Persistence config (RDB, AOF) for the cluster.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the persistenceConfig field is set. + */ + @java.lang.Override + public boolean hasPersistenceConfig() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+   * Optional. Persistence config (RDB, AOF) for the cluster.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The persistenceConfig. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig getPersistenceConfig() { + return persistenceConfig_ == null + ? com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.getDefaultInstance() + : persistenceConfig_; + } + /** + * + * + *
+   * Optional. Persistence config (RDB, AOF) for the cluster.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterPersistenceConfigOrBuilder + getPersistenceConfigOrBuilder() { + return persistenceConfig_ == null + ? com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.getDefaultInstance() + : persistenceConfig_; + } + + public static final int REDIS_CONFIGS_FIELD_NUMBER = 21; + + private static final class RedisConfigsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_Cluster_RedisConfigsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField redisConfigs_; + + private com.google.protobuf.MapField + internalGetRedisConfigs() { + if (redisConfigs_ == null) { + return com.google.protobuf.MapField.emptyMapField( + RedisConfigsDefaultEntryHolder.defaultEntry); + } + return redisConfigs_; + } + + public int getRedisConfigsCount() { + return internalGetRedisConfigs().getMap().size(); + } + /** + * + * + *
+   * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
+   * 
+ * + * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsRedisConfigs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetRedisConfigs().getMap().containsKey(key); + } + /** Use {@link #getRedisConfigsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getRedisConfigs() { + return getRedisConfigsMap(); + } + /** + * + * + *
+   * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
+   * 
+ * + * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getRedisConfigsMap() { + return internalGetRedisConfigs().getMap(); + } + /** + * + * + *
+   * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
+   * 
+ * + * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getRedisConfigsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetRedisConfigs().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
+   * 
+ * + * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getRedisConfigsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetRedisConfigs().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int PRECISE_SIZE_GB_FIELD_NUMBER = 22; + private double preciseSizeGb_ = 0D; + /** + * + * + *
+   * Output only. Precise value of redis memory size in GB for the entire
+   * cluster.
+   * 
+ * + * optional double precise_size_gb = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the preciseSizeGb field is set. + */ + @java.lang.Override + public boolean hasPreciseSizeGb() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
+   * Output only. Precise value of redis memory size in GB for the entire
+   * cluster.
+   * 
+ * + * optional double precise_size_gb = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The preciseSizeGb. + */ + @java.lang.Override + public double getPreciseSizeGb() { + return preciseSizeGb_; + } + + public static final int ZONE_DISTRIBUTION_CONFIG_FIELD_NUMBER = 23; + private com.google.cloud.redis.cluster.v1.ZoneDistributionConfig zoneDistributionConfig_; + /** + * + * + *
+   * Optional. This config will be used to determine how the customer wants us
+   * to distribute cluster resources within the region.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the zoneDistributionConfig field is set. + */ + @java.lang.Override + public boolean hasZoneDistributionConfig() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
+   * Optional. This config will be used to determine how the customer wants us
+   * to distribute cluster resources within the region.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The zoneDistributionConfig. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ZoneDistributionConfig getZoneDistributionConfig() { + return zoneDistributionConfig_ == null + ? com.google.cloud.redis.cluster.v1.ZoneDistributionConfig.getDefaultInstance() + : zoneDistributionConfig_; + } + /** + * + * + *
+   * Optional. This config will be used to determine how the customer wants us
+   * to distribute cluster resources within the region.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ZoneDistributionConfigOrBuilder + getZoneDistributionConfigOrBuilder() { + return zoneDistributionConfig_ == null + ? com.google.cloud.redis.cluster.v1.ZoneDistributionConfig.getDefaultInstance() + : zoneDistributionConfig_; + } + + public static final int DELETION_PROTECTION_ENABLED_FIELD_NUMBER = 25; + private boolean deletionProtectionEnabled_ = false; + /** + * + * + *
+   * Optional. The delete operation will fail when the value is set to true.
+   * 
+ * + * optional bool deletion_protection_enabled = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the deletionProtectionEnabled field is set. + */ + @java.lang.Override + public boolean hasDeletionProtectionEnabled() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * + * + *
+   * Optional. The delete operation will fail when the value is set to true.
+   * 
+ * + * optional bool deletion_protection_enabled = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deletionProtectionEnabled. + */ + @java.lang.Override + public boolean getDeletionProtectionEnabled() { + return deletionProtectionEnabled_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2648,6 +2999,23 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(18, getStateInfo()); } + if (nodeType_ != com.google.cloud.redis.cluster.v1.NodeType.NODE_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(19, nodeType_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(20, getPersistenceConfig()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetRedisConfigs(), RedisConfigsDefaultEntryHolder.defaultEntry, 21); + if (((bitField0_ & 0x00000040) != 0)) { + output.writeDouble(22, preciseSizeGb_); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(23, getZoneDistributionConfig()); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeBool(25, deletionProtectionEnabled_); + } getUnknownFields().writeTo(output); } @@ -2701,6 +3069,32 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getStateInfo()); } + if (nodeType_ != com.google.cloud.redis.cluster.v1.NodeType.NODE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(19, nodeType_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getPersistenceConfig()); + } + for (java.util.Map.Entry entry : + internalGetRedisConfigs().getMap().entrySet()) { + com.google.protobuf.MapEntry redisConfigs__ = + RedisConfigsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, redisConfigs__); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(22, preciseSizeGb_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(23, getZoneDistributionConfig()); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(25, deletionProtectionEnabled_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2745,6 +3139,25 @@ public boolean equals(final java.lang.Object obj) { if (hasStateInfo()) { if (!getStateInfo().equals(other.getStateInfo())) return false; } + if (nodeType_ != other.nodeType_) return false; + if (hasPersistenceConfig() != other.hasPersistenceConfig()) return false; + if (hasPersistenceConfig()) { + if (!getPersistenceConfig().equals(other.getPersistenceConfig())) return false; + } + if (!internalGetRedisConfigs().equals(other.internalGetRedisConfigs())) return false; + if (hasPreciseSizeGb() != other.hasPreciseSizeGb()) return false; + if (hasPreciseSizeGb()) { + if (java.lang.Double.doubleToLongBits(getPreciseSizeGb()) + != java.lang.Double.doubleToLongBits(other.getPreciseSizeGb())) return false; + } + if (hasZoneDistributionConfig() != other.hasZoneDistributionConfig()) return false; + if (hasZoneDistributionConfig()) { + if (!getZoneDistributionConfig().equals(other.getZoneDistributionConfig())) return false; + } + if (hasDeletionProtectionEnabled() != other.hasDeletionProtectionEnabled()) return false; + if (hasDeletionProtectionEnabled()) { + if (getDeletionProtectionEnabled() != other.getDeletionProtectionEnabled()) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2798,6 +3211,31 @@ public int hashCode() { hash = (37 * hash) + STATE_INFO_FIELD_NUMBER; hash = (53 * hash) + getStateInfo().hashCode(); } + hash = (37 * hash) + NODE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + nodeType_; + if (hasPersistenceConfig()) { + hash = (37 * hash) + PERSISTENCE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getPersistenceConfig().hashCode(); + } + if (!internalGetRedisConfigs().getMap().isEmpty()) { + hash = (37 * hash) + REDIS_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + internalGetRedisConfigs().hashCode(); + } + if (hasPreciseSizeGb()) { + hash = (37 * hash) + PRECISE_SIZE_GB_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getPreciseSizeGb())); + } + if (hasZoneDistributionConfig()) { + hash = (37 * hash) + ZONE_DISTRIBUTION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getZoneDistributionConfig().hashCode(); + } + if (hasDeletionProtectionEnabled()) { + hash = (37 * hash) + DELETION_PROTECTION_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDeletionProtectionEnabled()); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2916,6 +3354,28 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_cloud_redis_cluster_v1_Cluster_descriptor; } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 21: + return internalGetRedisConfigs(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 21: + return internalGetMutableRedisConfigs(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { @@ -2943,6 +3403,8 @@ private void maybeForceBuilderInitialization() { getDiscoveryEndpointsFieldBuilder(); getPscConnectionsFieldBuilder(); getStateInfoFieldBuilder(); + getPersistenceConfigFieldBuilder(); + getZoneDistributionConfigFieldBuilder(); } } @@ -2989,6 +3451,20 @@ public Builder clear() { stateInfoBuilder_.dispose(); stateInfoBuilder_ = null; } + nodeType_ = 0; + persistenceConfig_ = null; + if (persistenceConfigBuilder_ != null) { + persistenceConfigBuilder_.dispose(); + persistenceConfigBuilder_ = null; + } + internalGetMutableRedisConfigs().clear(); + preciseSizeGb_ = 0D; + zoneDistributionConfig_ = null; + if (zoneDistributionConfigBuilder_ != null) { + zoneDistributionConfigBuilder_.dispose(); + zoneDistributionConfigBuilder_ = null; + } + deletionProtectionEnabled_ = false; return this; } @@ -3092,6 +3568,35 @@ private void buildPartial0(com.google.cloud.redis.cluster.v1.Cluster result) { result.stateInfo_ = stateInfoBuilder_ == null ? stateInfo_ : stateInfoBuilder_.build(); to_bitField0_ |= 0x00000010; } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.nodeType_ = nodeType_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.persistenceConfig_ = + persistenceConfigBuilder_ == null + ? persistenceConfig_ + : persistenceConfigBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.redisConfigs_ = internalGetRedisConfigs(); + result.redisConfigs_.makeImmutable(); + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.preciseSizeGb_ = preciseSizeGb_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.zoneDistributionConfig_ = + zoneDistributionConfigBuilder_ == null + ? zoneDistributionConfig_ + : zoneDistributionConfigBuilder_.build(); + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.deletionProtectionEnabled_ = deletionProtectionEnabled_; + to_bitField0_ |= 0x00000100; + } result.bitField0_ |= to_bitField0_; } @@ -3255,6 +3760,23 @@ public Builder mergeFrom(com.google.cloud.redis.cluster.v1.Cluster other) { if (other.hasStateInfo()) { mergeStateInfo(other.getStateInfo()); } + if (other.nodeType_ != 0) { + setNodeTypeValue(other.getNodeTypeValue()); + } + if (other.hasPersistenceConfig()) { + mergePersistenceConfig(other.getPersistenceConfig()); + } + internalGetMutableRedisConfigs().mergeFrom(other.internalGetRedisConfigs()); + bitField0_ |= 0x00008000; + if (other.hasPreciseSizeGb()) { + setPreciseSizeGb(other.getPreciseSizeGb()); + } + if (other.hasZoneDistributionConfig()) { + mergeZoneDistributionConfig(other.getZoneDistributionConfig()); + } + if (other.hasDeletionProtectionEnabled()) { + setDeletionProtectionEnabled(other.getDeletionProtectionEnabled()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3382,6 +3904,50 @@ public Builder mergeFrom( bitField0_ |= 0x00001000; break; } // case 146 + case 152: + { + nodeType_ = input.readEnum(); + bitField0_ |= 0x00002000; + break; + } // case 152 + case 162: + { + input.readMessage( + getPersistenceConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00004000; + break; + } // case 162 + case 170: + { + com.google.protobuf.MapEntry redisConfigs__ = + input.readMessage( + RedisConfigsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableRedisConfigs() + .getMutableMap() + .put(redisConfigs__.getKey(), redisConfigs__.getValue()); + bitField0_ |= 0x00008000; + break; + } // case 170 + case 177: + { + preciseSizeGb_ = input.readDouble(); + bitField0_ |= 0x00010000; + break; + } // case 177 + case 186: + { + input.readMessage( + getZoneDistributionConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00020000; + break; + } // case 186 + case 200: + { + deletionProtectionEnabled_ = input.readBool(); + bitField0_ |= 0x00040000; + break; + } // case 200 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4219,7 +4785,8 @@ public Builder clearTransitEncryptionMode() { * * *
-     * Output only. Redis memory size in GB for the entire cluster.
+     * Output only. Redis memory size in GB for the entire cluster rounded up to
+     * the next integer.
      * 
* * optional int32 size_gb = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4234,7 +4801,8 @@ public boolean hasSizeGb() { * * *
-     * Output only. Redis memory size in GB for the entire cluster.
+     * Output only. Redis memory size in GB for the entire cluster rounded up to
+     * the next integer.
      * 
* * optional int32 size_gb = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4249,7 +4817,8 @@ public int getSizeGb() { * * *
-     * Output only. Redis memory size in GB for the entire cluster.
+     * Output only. Redis memory size in GB for the entire cluster rounded up to
+     * the next integer.
      * 
* * optional int32 size_gb = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4268,7 +4837,8 @@ public Builder setSizeGb(int value) { * * *
-     * Output only. Redis memory size in GB for the entire cluster.
+     * Output only. Redis memory size in GB for the entire cluster rounded up to
+     * the next integer.
      * 
* * optional int32 size_gb = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -5810,6 +6380,864 @@ public com.google.cloud.redis.cluster.v1.Cluster.StateInfoOrBuilder getStateInfo return stateInfoBuilder_; } + private int nodeType_ = 0; + /** + * + * + *
+     * Optional. The type of a redis node in the cluster. NodeType determines the
+     * underlying machine-type of a redis node.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.NodeType node_type = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for nodeType. + */ + @java.lang.Override + public int getNodeTypeValue() { + return nodeType_; + } + /** + * + * + *
+     * Optional. The type of a redis node in the cluster. NodeType determines the
+     * underlying machine-type of a redis node.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.NodeType node_type = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for nodeType to set. + * @return This builder for chaining. + */ + public Builder setNodeTypeValue(int value) { + nodeType_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The type of a redis node in the cluster. NodeType determines the
+     * underlying machine-type of a redis node.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.NodeType node_type = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The nodeType. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.NodeType getNodeType() { + com.google.cloud.redis.cluster.v1.NodeType result = + com.google.cloud.redis.cluster.v1.NodeType.forNumber(nodeType_); + return result == null ? com.google.cloud.redis.cluster.v1.NodeType.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Optional. The type of a redis node in the cluster. NodeType determines the
+     * underlying machine-type of a redis node.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.NodeType node_type = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The nodeType to set. + * @return This builder for chaining. + */ + public Builder setNodeType(com.google.cloud.redis.cluster.v1.NodeType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00002000; + nodeType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The type of a redis node in the cluster. NodeType determines the
+     * underlying machine-type of a redis node.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.NodeType node_type = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearNodeType() { + bitField0_ = (bitField0_ & ~0x00002000); + nodeType_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig persistenceConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig, + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.Builder, + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfigOrBuilder> + persistenceConfigBuilder_; + /** + * + * + *
+     * Optional. Persistence config (RDB, AOF) for the cluster.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the persistenceConfig field is set. + */ + public boolean hasPersistenceConfig() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + * + * + *
+     * Optional. Persistence config (RDB, AOF) for the cluster.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The persistenceConfig. + */ + public com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig getPersistenceConfig() { + if (persistenceConfigBuilder_ == null) { + return persistenceConfig_ == null + ? com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.getDefaultInstance() + : persistenceConfig_; + } else { + return persistenceConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Persistence config (RDB, AOF) for the cluster.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPersistenceConfig( + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig value) { + if (persistenceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + persistenceConfig_ = value; + } else { + persistenceConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Persistence config (RDB, AOF) for the cluster.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPersistenceConfig( + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.Builder builderForValue) { + if (persistenceConfigBuilder_ == null) { + persistenceConfig_ = builderForValue.build(); + } else { + persistenceConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Persistence config (RDB, AOF) for the cluster.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergePersistenceConfig( + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig value) { + if (persistenceConfigBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0) + && persistenceConfig_ != null + && persistenceConfig_ + != com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig + .getDefaultInstance()) { + getPersistenceConfigBuilder().mergeFrom(value); + } else { + persistenceConfig_ = value; + } + } else { + persistenceConfigBuilder_.mergeFrom(value); + } + if (persistenceConfig_ != null) { + bitField0_ |= 0x00004000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Persistence config (RDB, AOF) for the cluster.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPersistenceConfig() { + bitField0_ = (bitField0_ & ~0x00004000); + persistenceConfig_ = null; + if (persistenceConfigBuilder_ != null) { + persistenceConfigBuilder_.dispose(); + persistenceConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Persistence config (RDB, AOF) for the cluster.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.Builder + getPersistenceConfigBuilder() { + bitField0_ |= 0x00004000; + onChanged(); + return getPersistenceConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Persistence config (RDB, AOF) for the cluster.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.redis.cluster.v1.ClusterPersistenceConfigOrBuilder + getPersistenceConfigOrBuilder() { + if (persistenceConfigBuilder_ != null) { + return persistenceConfigBuilder_.getMessageOrBuilder(); + } else { + return persistenceConfig_ == null + ? com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.getDefaultInstance() + : persistenceConfig_; + } + } + /** + * + * + *
+     * Optional. Persistence config (RDB, AOF) for the cluster.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig, + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.Builder, + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfigOrBuilder> + getPersistenceConfigFieldBuilder() { + if (persistenceConfigBuilder_ == null) { + persistenceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig, + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.Builder, + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfigOrBuilder>( + getPersistenceConfig(), getParentForChildren(), isClean()); + persistenceConfig_ = null; + } + return persistenceConfigBuilder_; + } + + private com.google.protobuf.MapField redisConfigs_; + + private com.google.protobuf.MapField + internalGetRedisConfigs() { + if (redisConfigs_ == null) { + return com.google.protobuf.MapField.emptyMapField( + RedisConfigsDefaultEntryHolder.defaultEntry); + } + return redisConfigs_; + } + + private com.google.protobuf.MapField + internalGetMutableRedisConfigs() { + if (redisConfigs_ == null) { + redisConfigs_ = + com.google.protobuf.MapField.newMapField(RedisConfigsDefaultEntryHolder.defaultEntry); + } + if (!redisConfigs_.isMutable()) { + redisConfigs_ = redisConfigs_.copy(); + } + bitField0_ |= 0x00008000; + onChanged(); + return redisConfigs_; + } + + public int getRedisConfigsCount() { + return internalGetRedisConfigs().getMap().size(); + } + /** + * + * + *
+     * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
+     * 
+ * + * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsRedisConfigs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetRedisConfigs().getMap().containsKey(key); + } + /** Use {@link #getRedisConfigsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getRedisConfigs() { + return getRedisConfigsMap(); + } + /** + * + * + *
+     * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
+     * 
+ * + * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getRedisConfigsMap() { + return internalGetRedisConfigs().getMap(); + } + /** + * + * + *
+     * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
+     * 
+ * + * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getRedisConfigsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetRedisConfigs().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
+     * 
+ * + * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getRedisConfigsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetRedisConfigs().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearRedisConfigs() { + bitField0_ = (bitField0_ & ~0x00008000); + internalGetMutableRedisConfigs().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
+     * 
+ * + * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeRedisConfigs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableRedisConfigs().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableRedisConfigs() { + bitField0_ |= 0x00008000; + return internalGetMutableRedisConfigs().getMutableMap(); + } + /** + * + * + *
+     * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
+     * 
+ * + * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putRedisConfigs(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableRedisConfigs().getMutableMap().put(key, value); + bitField0_ |= 0x00008000; + return this; + } + /** + * + * + *
+     * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
+     * 
+ * + * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllRedisConfigs(java.util.Map values) { + internalGetMutableRedisConfigs().getMutableMap().putAll(values); + bitField0_ |= 0x00008000; + return this; + } + + private double preciseSizeGb_; + /** + * + * + *
+     * Output only. Precise value of redis memory size in GB for the entire
+     * cluster.
+     * 
+ * + * optional double precise_size_gb = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the preciseSizeGb field is set. + */ + @java.lang.Override + public boolean hasPreciseSizeGb() { + return ((bitField0_ & 0x00010000) != 0); + } + /** + * + * + *
+     * Output only. Precise value of redis memory size in GB for the entire
+     * cluster.
+     * 
+ * + * optional double precise_size_gb = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The preciseSizeGb. + */ + @java.lang.Override + public double getPreciseSizeGb() { + return preciseSizeGb_; + } + /** + * + * + *
+     * Output only. Precise value of redis memory size in GB for the entire
+     * cluster.
+     * 
+ * + * optional double precise_size_gb = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The preciseSizeGb to set. + * @return This builder for chaining. + */ + public Builder setPreciseSizeGb(double value) { + + preciseSizeGb_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Precise value of redis memory size in GB for the entire
+     * cluster.
+     * 
+ * + * optional double precise_size_gb = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearPreciseSizeGb() { + bitField0_ = (bitField0_ & ~0x00010000); + preciseSizeGb_ = 0D; + onChanged(); + return this; + } + + private com.google.cloud.redis.cluster.v1.ZoneDistributionConfig zoneDistributionConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.ZoneDistributionConfig, + com.google.cloud.redis.cluster.v1.ZoneDistributionConfig.Builder, + com.google.cloud.redis.cluster.v1.ZoneDistributionConfigOrBuilder> + zoneDistributionConfigBuilder_; + /** + * + * + *
+     * Optional. This config will be used to determine how the customer wants us
+     * to distribute cluster resources within the region.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the zoneDistributionConfig field is set. + */ + public boolean hasZoneDistributionConfig() { + return ((bitField0_ & 0x00020000) != 0); + } + /** + * + * + *
+     * Optional. This config will be used to determine how the customer wants us
+     * to distribute cluster resources within the region.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The zoneDistributionConfig. + */ + public com.google.cloud.redis.cluster.v1.ZoneDistributionConfig getZoneDistributionConfig() { + if (zoneDistributionConfigBuilder_ == null) { + return zoneDistributionConfig_ == null + ? com.google.cloud.redis.cluster.v1.ZoneDistributionConfig.getDefaultInstance() + : zoneDistributionConfig_; + } else { + return zoneDistributionConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. This config will be used to determine how the customer wants us
+     * to distribute cluster resources within the region.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setZoneDistributionConfig( + com.google.cloud.redis.cluster.v1.ZoneDistributionConfig value) { + if (zoneDistributionConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + zoneDistributionConfig_ = value; + } else { + zoneDistributionConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. This config will be used to determine how the customer wants us
+     * to distribute cluster resources within the region.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setZoneDistributionConfig( + com.google.cloud.redis.cluster.v1.ZoneDistributionConfig.Builder builderForValue) { + if (zoneDistributionConfigBuilder_ == null) { + zoneDistributionConfig_ = builderForValue.build(); + } else { + zoneDistributionConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. This config will be used to determine how the customer wants us
+     * to distribute cluster resources within the region.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeZoneDistributionConfig( + com.google.cloud.redis.cluster.v1.ZoneDistributionConfig value) { + if (zoneDistributionConfigBuilder_ == null) { + if (((bitField0_ & 0x00020000) != 0) + && zoneDistributionConfig_ != null + && zoneDistributionConfig_ + != com.google.cloud.redis.cluster.v1.ZoneDistributionConfig.getDefaultInstance()) { + getZoneDistributionConfigBuilder().mergeFrom(value); + } else { + zoneDistributionConfig_ = value; + } + } else { + zoneDistributionConfigBuilder_.mergeFrom(value); + } + if (zoneDistributionConfig_ != null) { + bitField0_ |= 0x00020000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. This config will be used to determine how the customer wants us
+     * to distribute cluster resources within the region.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearZoneDistributionConfig() { + bitField0_ = (bitField0_ & ~0x00020000); + zoneDistributionConfig_ = null; + if (zoneDistributionConfigBuilder_ != null) { + zoneDistributionConfigBuilder_.dispose(); + zoneDistributionConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. This config will be used to determine how the customer wants us
+     * to distribute cluster resources within the region.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.redis.cluster.v1.ZoneDistributionConfig.Builder + getZoneDistributionConfigBuilder() { + bitField0_ |= 0x00020000; + onChanged(); + return getZoneDistributionConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. This config will be used to determine how the customer wants us
+     * to distribute cluster resources within the region.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.redis.cluster.v1.ZoneDistributionConfigOrBuilder + getZoneDistributionConfigOrBuilder() { + if (zoneDistributionConfigBuilder_ != null) { + return zoneDistributionConfigBuilder_.getMessageOrBuilder(); + } else { + return zoneDistributionConfig_ == null + ? com.google.cloud.redis.cluster.v1.ZoneDistributionConfig.getDefaultInstance() + : zoneDistributionConfig_; + } + } + /** + * + * + *
+     * Optional. This config will be used to determine how the customer wants us
+     * to distribute cluster resources within the region.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.ZoneDistributionConfig, + com.google.cloud.redis.cluster.v1.ZoneDistributionConfig.Builder, + com.google.cloud.redis.cluster.v1.ZoneDistributionConfigOrBuilder> + getZoneDistributionConfigFieldBuilder() { + if (zoneDistributionConfigBuilder_ == null) { + zoneDistributionConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.ZoneDistributionConfig, + com.google.cloud.redis.cluster.v1.ZoneDistributionConfig.Builder, + com.google.cloud.redis.cluster.v1.ZoneDistributionConfigOrBuilder>( + getZoneDistributionConfig(), getParentForChildren(), isClean()); + zoneDistributionConfig_ = null; + } + return zoneDistributionConfigBuilder_; + } + + private boolean deletionProtectionEnabled_; + /** + * + * + *
+     * Optional. The delete operation will fail when the value is set to true.
+     * 
+ * + * + * optional bool deletion_protection_enabled = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the deletionProtectionEnabled field is set. + */ + @java.lang.Override + public boolean hasDeletionProtectionEnabled() { + return ((bitField0_ & 0x00040000) != 0); + } + /** + * + * + *
+     * Optional. The delete operation will fail when the value is set to true.
+     * 
+ * + * + * optional bool deletion_protection_enabled = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deletionProtectionEnabled. + */ + @java.lang.Override + public boolean getDeletionProtectionEnabled() { + return deletionProtectionEnabled_; + } + /** + * + * + *
+     * Optional. The delete operation will fail when the value is set to true.
+     * 
+ * + * + * optional bool deletion_protection_enabled = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The deletionProtectionEnabled to set. + * @return This builder for chaining. + */ + public Builder setDeletionProtectionEnabled(boolean value) { + + deletionProtectionEnabled_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The delete operation will fail when the value is set to true.
+     * 
+ * + * + * optional bool deletion_protection_enabled = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearDeletionProtectionEnabled() { + bitField0_ = (bitField0_ & ~0x00040000); + deletionProtectionEnabled_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterOrBuilder.java index 650f1aa895e7..701192796fea 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterOrBuilder.java +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterOrBuilder.java @@ -238,7 +238,8 @@ public interface ClusterOrBuilder * * *
-   * Output only. Redis memory size in GB for the entire cluster.
+   * Output only. Redis memory size in GB for the entire cluster rounded up to
+   * the next integer.
    * 
* * optional int32 size_gb = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -250,7 +251,8 @@ public interface ClusterOrBuilder * * *
-   * Output only. Redis memory size in GB for the entire cluster.
+   * Output only. Redis memory size in GB for the entire cluster rounded up to
+   * the next integer.
    * 
* * optional int32 size_gb = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -531,4 +533,239 @@ com.google.cloud.redis.cluster.v1.DiscoveryEndpointOrBuilder getDiscoveryEndpoin *
*/ com.google.cloud.redis.cluster.v1.Cluster.StateInfoOrBuilder getStateInfoOrBuilder(); + + /** + * + * + *
+   * Optional. The type of a redis node in the cluster. NodeType determines the
+   * underlying machine-type of a redis node.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1.NodeType node_type = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for nodeType. + */ + int getNodeTypeValue(); + /** + * + * + *
+   * Optional. The type of a redis node in the cluster. NodeType determines the
+   * underlying machine-type of a redis node.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1.NodeType node_type = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The nodeType. + */ + com.google.cloud.redis.cluster.v1.NodeType getNodeType(); + + /** + * + * + *
+   * Optional. Persistence config (RDB, AOF) for the cluster.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the persistenceConfig field is set. + */ + boolean hasPersistenceConfig(); + /** + * + * + *
+   * Optional. Persistence config (RDB, AOF) for the cluster.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The persistenceConfig. + */ + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig getPersistenceConfig(); + /** + * + * + *
+   * Optional. Persistence config (RDB, AOF) for the cluster.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfigOrBuilder + getPersistenceConfigOrBuilder(); + + /** + * + * + *
+   * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
+   * 
+ * + * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getRedisConfigsCount(); + /** + * + * + *
+   * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
+   * 
+ * + * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsRedisConfigs(java.lang.String key); + /** Use {@link #getRedisConfigsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getRedisConfigs(); + /** + * + * + *
+   * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
+   * 
+ * + * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getRedisConfigsMap(); + /** + * + * + *
+   * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
+   * 
+ * + * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getRedisConfigsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
+   * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
+   * 
+ * + * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getRedisConfigsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Output only. Precise value of redis memory size in GB for the entire
+   * cluster.
+   * 
+ * + * optional double precise_size_gb = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the preciseSizeGb field is set. + */ + boolean hasPreciseSizeGb(); + /** + * + * + *
+   * Output only. Precise value of redis memory size in GB for the entire
+   * cluster.
+   * 
+ * + * optional double precise_size_gb = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The preciseSizeGb. + */ + double getPreciseSizeGb(); + + /** + * + * + *
+   * Optional. This config will be used to determine how the customer wants us
+   * to distribute cluster resources within the region.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the zoneDistributionConfig field is set. + */ + boolean hasZoneDistributionConfig(); + /** + * + * + *
+   * Optional. This config will be used to determine how the customer wants us
+   * to distribute cluster resources within the region.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The zoneDistributionConfig. + */ + com.google.cloud.redis.cluster.v1.ZoneDistributionConfig getZoneDistributionConfig(); + /** + * + * + *
+   * Optional. This config will be used to determine how the customer wants us
+   * to distribute cluster resources within the region.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.redis.cluster.v1.ZoneDistributionConfigOrBuilder + getZoneDistributionConfigOrBuilder(); + + /** + * + * + *
+   * Optional. The delete operation will fail when the value is set to true.
+   * 
+ * + * optional bool deletion_protection_enabled = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the deletionProtectionEnabled field is set. + */ + boolean hasDeletionProtectionEnabled(); + /** + * + * + *
+   * Optional. The delete operation will fail when the value is set to true.
+   * 
+ * + * optional bool deletion_protection_enabled = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deletionProtectionEnabled. + */ + boolean getDeletionProtectionEnabled(); } diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterPersistenceConfig.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterPersistenceConfig.java new file mode 100644 index 000000000000..54559c1d4daa --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterPersistenceConfig.java @@ -0,0 +1,3505 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
+ * Configuration of the persistence functionality.
+ * 
+ * + * Protobuf type {@code google.cloud.redis.cluster.v1.ClusterPersistenceConfig} + */ +public final class ClusterPersistenceConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.ClusterPersistenceConfig) + ClusterPersistenceConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClusterPersistenceConfig.newBuilder() to construct. + private ClusterPersistenceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ClusterPersistenceConfig() { + mode_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ClusterPersistenceConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ClusterPersistenceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ClusterPersistenceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.class, + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.Builder.class); + } + + /** + * + * + *
+   * Available persistence modes.
+   * 
+ * + * Protobuf enum {@code google.cloud.redis.cluster.v1.ClusterPersistenceConfig.PersistenceMode} + */ + public enum PersistenceMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Not set.
+     * 
+ * + * PERSISTENCE_MODE_UNSPECIFIED = 0; + */ + PERSISTENCE_MODE_UNSPECIFIED(0), + /** + * + * + *
+     * Persistence is disabled, and any snapshot data is deleted.
+     * 
+ * + * DISABLED = 1; + */ + DISABLED(1), + /** + * + * + *
+     * RDB based persistence is enabled.
+     * 
+ * + * RDB = 2; + */ + RDB(2), + /** + * + * + *
+     * AOF based persistence is enabled.
+     * 
+ * + * AOF = 3; + */ + AOF(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Not set.
+     * 
+ * + * PERSISTENCE_MODE_UNSPECIFIED = 0; + */ + public static final int PERSISTENCE_MODE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Persistence is disabled, and any snapshot data is deleted.
+     * 
+ * + * DISABLED = 1; + */ + public static final int DISABLED_VALUE = 1; + /** + * + * + *
+     * RDB based persistence is enabled.
+     * 
+ * + * RDB = 2; + */ + public static final int RDB_VALUE = 2; + /** + * + * + *
+     * AOF based persistence is enabled.
+     * 
+ * + * AOF = 3; + */ + public static final int AOF_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PersistenceMode valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static PersistenceMode forNumber(int value) { + switch (value) { + case 0: + return PERSISTENCE_MODE_UNSPECIFIED; + case 1: + return DISABLED; + case 2: + return RDB; + case 3: + return AOF; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PersistenceMode findValueByNumber(int number) { + return PersistenceMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final PersistenceMode[] VALUES = values(); + + public static PersistenceMode valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private PersistenceMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.redis.cluster.v1.ClusterPersistenceConfig.PersistenceMode) + } + + public interface RDBConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. Period between RDB snapshots.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriod rdb_snapshot_period = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for rdbSnapshotPeriod. + */ + int getRdbSnapshotPeriodValue(); + /** + * + * + *
+     * Optional. Period between RDB snapshots.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriod rdb_snapshot_period = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rdbSnapshotPeriod. + */ + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriod + getRdbSnapshotPeriod(); + + /** + * + * + *
+     * Optional. The time that the first snapshot was/will be attempted, and to
+     * which future snapshots will be aligned. If not provided, the current time
+     * will be used.
+     * 
+ * + * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rdbSnapshotStartTime field is set. + */ + boolean hasRdbSnapshotStartTime(); + /** + * + * + *
+     * Optional. The time that the first snapshot was/will be attempted, and to
+     * which future snapshots will be aligned. If not provided, the current time
+     * will be used.
+     * 
+ * + * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rdbSnapshotStartTime. + */ + com.google.protobuf.Timestamp getRdbSnapshotStartTime(); + /** + * + * + *
+     * Optional. The time that the first snapshot was/will be attempted, and to
+     * which future snapshots will be aligned. If not provided, the current time
+     * will be used.
+     * 
+ * + * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.TimestampOrBuilder getRdbSnapshotStartTimeOrBuilder(); + } + /** + * + * + *
+   * Configuration of the RDB based persistence.
+   * 
+ * + * Protobuf type {@code google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig} + */ + public static final class RDBConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig) + RDBConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use RDBConfig.newBuilder() to construct. + private RDBConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RDBConfig() { + rdbSnapshotPeriod_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RDBConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ClusterPersistenceConfig_RDBConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ClusterPersistenceConfig_RDBConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig.class, + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig.Builder.class); + } + + /** + * + * + *
+     * Available snapshot periods.
+     * 
+ * + * Protobuf enum {@code + * google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriod} + */ + public enum SnapshotPeriod implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Not set.
+       * 
+ * + * SNAPSHOT_PERIOD_UNSPECIFIED = 0; + */ + SNAPSHOT_PERIOD_UNSPECIFIED(0), + /** + * + * + *
+       * One hour.
+       * 
+ * + * ONE_HOUR = 1; + */ + ONE_HOUR(1), + /** + * + * + *
+       * Six hours.
+       * 
+ * + * SIX_HOURS = 2; + */ + SIX_HOURS(2), + /** + * + * + *
+       * Twelve hours.
+       * 
+ * + * TWELVE_HOURS = 3; + */ + TWELVE_HOURS(3), + /** + * + * + *
+       * Twenty four hours.
+       * 
+ * + * TWENTY_FOUR_HOURS = 4; + */ + TWENTY_FOUR_HOURS(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * Not set.
+       * 
+ * + * SNAPSHOT_PERIOD_UNSPECIFIED = 0; + */ + public static final int SNAPSHOT_PERIOD_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+       * One hour.
+       * 
+ * + * ONE_HOUR = 1; + */ + public static final int ONE_HOUR_VALUE = 1; + /** + * + * + *
+       * Six hours.
+       * 
+ * + * SIX_HOURS = 2; + */ + public static final int SIX_HOURS_VALUE = 2; + /** + * + * + *
+       * Twelve hours.
+       * 
+ * + * TWELVE_HOURS = 3; + */ + public static final int TWELVE_HOURS_VALUE = 3; + /** + * + * + *
+       * Twenty four hours.
+       * 
+ * + * TWENTY_FOUR_HOURS = 4; + */ + public static final int TWENTY_FOUR_HOURS_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SnapshotPeriod valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static SnapshotPeriod forNumber(int value) { + switch (value) { + case 0: + return SNAPSHOT_PERIOD_UNSPECIFIED; + case 1: + return ONE_HOUR; + case 2: + return SIX_HOURS; + case 3: + return TWELVE_HOURS; + case 4: + return TWENTY_FOUR_HOURS; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SnapshotPeriod findValueByNumber(int number) { + return SnapshotPeriod.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final SnapshotPeriod[] VALUES = values(); + + public static SnapshotPeriod valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private SnapshotPeriod(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriod) + } + + private int bitField0_; + public static final int RDB_SNAPSHOT_PERIOD_FIELD_NUMBER = 1; + private int rdbSnapshotPeriod_ = 0; + /** + * + * + *
+     * Optional. Period between RDB snapshots.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriod rdb_snapshot_period = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for rdbSnapshotPeriod. + */ + @java.lang.Override + public int getRdbSnapshotPeriodValue() { + return rdbSnapshotPeriod_; + } + /** + * + * + *
+     * Optional. Period between RDB snapshots.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriod rdb_snapshot_period = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rdbSnapshotPeriod. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriod + getRdbSnapshotPeriod() { + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriod result = + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriod + .forNumber(rdbSnapshotPeriod_); + return result == null + ? com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriod + .UNRECOGNIZED + : result; + } + + public static final int RDB_SNAPSHOT_START_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp rdbSnapshotStartTime_; + /** + * + * + *
+     * Optional. The time that the first snapshot was/will be attempted, and to
+     * which future snapshots will be aligned. If not provided, the current time
+     * will be used.
+     * 
+ * + * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rdbSnapshotStartTime field is set. + */ + @java.lang.Override + public boolean hasRdbSnapshotStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Optional. The time that the first snapshot was/will be attempted, and to
+     * which future snapshots will be aligned. If not provided, the current time
+     * will be used.
+     * 
+ * + * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rdbSnapshotStartTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getRdbSnapshotStartTime() { + return rdbSnapshotStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : rdbSnapshotStartTime_; + } + /** + * + * + *
+     * Optional. The time that the first snapshot was/will be attempted, and to
+     * which future snapshots will be aligned. If not provided, the current time
+     * will be used.
+     * 
+ * + * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getRdbSnapshotStartTimeOrBuilder() { + return rdbSnapshotStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : rdbSnapshotStartTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (rdbSnapshotPeriod_ + != com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriod + .SNAPSHOT_PERIOD_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, rdbSnapshotPeriod_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getRdbSnapshotStartTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (rdbSnapshotPeriod_ + != com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriod + .SNAPSHOT_PERIOD_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, rdbSnapshotPeriod_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRdbSnapshotStartTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig other = + (com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig) obj; + + if (rdbSnapshotPeriod_ != other.rdbSnapshotPeriod_) return false; + if (hasRdbSnapshotStartTime() != other.hasRdbSnapshotStartTime()) return false; + if (hasRdbSnapshotStartTime()) { + if (!getRdbSnapshotStartTime().equals(other.getRdbSnapshotStartTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RDB_SNAPSHOT_PERIOD_FIELD_NUMBER; + hash = (53 * hash) + rdbSnapshotPeriod_; + if (hasRdbSnapshotStartTime()) { + hash = (37 * hash) + RDB_SNAPSHOT_START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getRdbSnapshotStartTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Configuration of the RDB based persistence.
+     * 
+ * + * Protobuf type {@code google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig) + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ClusterPersistenceConfig_RDBConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ClusterPersistenceConfig_RDBConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig.class, + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig.Builder.class); + } + + // Construct using + // com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getRdbSnapshotStartTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + rdbSnapshotPeriod_ = 0; + rdbSnapshotStartTime_ = null; + if (rdbSnapshotStartTimeBuilder_ != null) { + rdbSnapshotStartTimeBuilder_.dispose(); + rdbSnapshotStartTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ClusterPersistenceConfig_RDBConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig + getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig build() { + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig buildPartial() { + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig result = + new com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.rdbSnapshotPeriod_ = rdbSnapshotPeriod_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.rdbSnapshotStartTime_ = + rdbSnapshotStartTimeBuilder_ == null + ? rdbSnapshotStartTime_ + : rdbSnapshotStartTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig) { + return mergeFrom( + (com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig other) { + if (other + == com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig + .getDefaultInstance()) return this; + if (other.rdbSnapshotPeriod_ != 0) { + setRdbSnapshotPeriodValue(other.getRdbSnapshotPeriodValue()); + } + if (other.hasRdbSnapshotStartTime()) { + mergeRdbSnapshotStartTime(other.getRdbSnapshotStartTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + rdbSnapshotPeriod_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage( + getRdbSnapshotStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int rdbSnapshotPeriod_ = 0; + /** + * + * + *
+       * Optional. Period between RDB snapshots.
+       * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriod rdb_snapshot_period = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for rdbSnapshotPeriod. + */ + @java.lang.Override + public int getRdbSnapshotPeriodValue() { + return rdbSnapshotPeriod_; + } + /** + * + * + *
+       * Optional. Period between RDB snapshots.
+       * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriod rdb_snapshot_period = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for rdbSnapshotPeriod to set. + * @return This builder for chaining. + */ + public Builder setRdbSnapshotPeriodValue(int value) { + rdbSnapshotPeriod_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Period between RDB snapshots.
+       * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriod rdb_snapshot_period = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rdbSnapshotPeriod. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriod + getRdbSnapshotPeriod() { + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriod result = + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriod + .forNumber(rdbSnapshotPeriod_); + return result == null + ? com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriod + .UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Optional. Period between RDB snapshots.
+       * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriod rdb_snapshot_period = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The rdbSnapshotPeriod to set. + * @return This builder for chaining. + */ + public Builder setRdbSnapshotPeriod( + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriod + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + rdbSnapshotPeriod_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Period between RDB snapshots.
+       * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriod rdb_snapshot_period = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearRdbSnapshotPeriod() { + bitField0_ = (bitField0_ & ~0x00000001); + rdbSnapshotPeriod_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp rdbSnapshotStartTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + rdbSnapshotStartTimeBuilder_; + /** + * + * + *
+       * Optional. The time that the first snapshot was/will be attempted, and to
+       * which future snapshots will be aligned. If not provided, the current time
+       * will be used.
+       * 
+ * + * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rdbSnapshotStartTime field is set. + */ + public boolean hasRdbSnapshotStartTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+       * Optional. The time that the first snapshot was/will be attempted, and to
+       * which future snapshots will be aligned. If not provided, the current time
+       * will be used.
+       * 
+ * + * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rdbSnapshotStartTime. + */ + public com.google.protobuf.Timestamp getRdbSnapshotStartTime() { + if (rdbSnapshotStartTimeBuilder_ == null) { + return rdbSnapshotStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : rdbSnapshotStartTime_; + } else { + return rdbSnapshotStartTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Optional. The time that the first snapshot was/will be attempted, and to
+       * which future snapshots will be aligned. If not provided, the current time
+       * will be used.
+       * 
+ * + * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRdbSnapshotStartTime(com.google.protobuf.Timestamp value) { + if (rdbSnapshotStartTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rdbSnapshotStartTime_ = value; + } else { + rdbSnapshotStartTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The time that the first snapshot was/will be attempted, and to
+       * which future snapshots will be aligned. If not provided, the current time
+       * will be used.
+       * 
+ * + * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRdbSnapshotStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (rdbSnapshotStartTimeBuilder_ == null) { + rdbSnapshotStartTime_ = builderForValue.build(); + } else { + rdbSnapshotStartTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The time that the first snapshot was/will be attempted, and to
+       * which future snapshots will be aligned. If not provided, the current time
+       * will be used.
+       * 
+ * + * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRdbSnapshotStartTime(com.google.protobuf.Timestamp value) { + if (rdbSnapshotStartTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && rdbSnapshotStartTime_ != null + && rdbSnapshotStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getRdbSnapshotStartTimeBuilder().mergeFrom(value); + } else { + rdbSnapshotStartTime_ = value; + } + } else { + rdbSnapshotStartTimeBuilder_.mergeFrom(value); + } + if (rdbSnapshotStartTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+       * Optional. The time that the first snapshot was/will be attempted, and to
+       * which future snapshots will be aligned. If not provided, the current time
+       * will be used.
+       * 
+ * + * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRdbSnapshotStartTime() { + bitField0_ = (bitField0_ & ~0x00000002); + rdbSnapshotStartTime_ = null; + if (rdbSnapshotStartTimeBuilder_ != null) { + rdbSnapshotStartTimeBuilder_.dispose(); + rdbSnapshotStartTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The time that the first snapshot was/will be attempted, and to
+       * which future snapshots will be aligned. If not provided, the current time
+       * will be used.
+       * 
+ * + * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Timestamp.Builder getRdbSnapshotStartTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getRdbSnapshotStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Optional. The time that the first snapshot was/will be attempted, and to
+       * which future snapshots will be aligned. If not provided, the current time
+       * will be used.
+       * 
+ * + * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.TimestampOrBuilder getRdbSnapshotStartTimeOrBuilder() { + if (rdbSnapshotStartTimeBuilder_ != null) { + return rdbSnapshotStartTimeBuilder_.getMessageOrBuilder(); + } else { + return rdbSnapshotStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : rdbSnapshotStartTime_; + } + } + /** + * + * + *
+       * Optional. The time that the first snapshot was/will be attempted, and to
+       * which future snapshots will be aligned. If not provided, the current time
+       * will be used.
+       * 
+ * + * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getRdbSnapshotStartTimeFieldBuilder() { + if (rdbSnapshotStartTimeBuilder_ == null) { + rdbSnapshotStartTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getRdbSnapshotStartTime(), getParentForChildren(), isClean()); + rdbSnapshotStartTime_ = null; + } + return rdbSnapshotStartTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig) + private static final com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig(); + } + + public static com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RDBConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AOFConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. fsync configuration.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig.AppendFsync append_fsync = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for appendFsync. + */ + int getAppendFsyncValue(); + /** + * + * + *
+     * Optional. fsync configuration.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig.AppendFsync append_fsync = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The appendFsync. + */ + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig.AppendFsync + getAppendFsync(); + } + /** + * + * + *
+   * Configuration of the AOF based persistence.
+   * 
+ * + * Protobuf type {@code google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig} + */ + public static final class AOFConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig) + AOFConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use AOFConfig.newBuilder() to construct. + private AOFConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AOFConfig() { + appendFsync_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AOFConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ClusterPersistenceConfig_AOFConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ClusterPersistenceConfig_AOFConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig.class, + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig.Builder.class); + } + + /** + * + * + *
+     * Available fsync modes.
+     * 
+ * + * Protobuf enum {@code + * google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig.AppendFsync} + */ + public enum AppendFsync implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Not set. Default: EVERYSEC
+       * 
+ * + * APPEND_FSYNC_UNSPECIFIED = 0; + */ + APPEND_FSYNC_UNSPECIFIED(0), + /** + * + * + *
+       * Never fsync. Normally Linux will flush data every 30 seconds with this
+       * configuration, but it's up to the kernel's exact tuning.
+       * 
+ * + * NO = 1; + */ + NO(1), + /** + * + * + *
+       * fsync every second. Fast enough, and you may lose 1 second of data if
+       * there is a disaster
+       * 
+ * + * EVERYSEC = 2; + */ + EVERYSEC(2), + /** + * + * + *
+       * fsync every time new commands are appended to the AOF. It has the best
+       * data loss protection at the cost of performance
+       * 
+ * + * ALWAYS = 3; + */ + ALWAYS(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * Not set. Default: EVERYSEC
+       * 
+ * + * APPEND_FSYNC_UNSPECIFIED = 0; + */ + public static final int APPEND_FSYNC_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+       * Never fsync. Normally Linux will flush data every 30 seconds with this
+       * configuration, but it's up to the kernel's exact tuning.
+       * 
+ * + * NO = 1; + */ + public static final int NO_VALUE = 1; + /** + * + * + *
+       * fsync every second. Fast enough, and you may lose 1 second of data if
+       * there is a disaster
+       * 
+ * + * EVERYSEC = 2; + */ + public static final int EVERYSEC_VALUE = 2; + /** + * + * + *
+       * fsync every time new commands are appended to the AOF. It has the best
+       * data loss protection at the cost of performance
+       * 
+ * + * ALWAYS = 3; + */ + public static final int ALWAYS_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static AppendFsync valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static AppendFsync forNumber(int value) { + switch (value) { + case 0: + return APPEND_FSYNC_UNSPECIFIED; + case 1: + return NO; + case 2: + return EVERYSEC; + case 3: + return ALWAYS; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AppendFsync findValueByNumber(int number) { + return AppendFsync.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final AppendFsync[] VALUES = values(); + + public static AppendFsync valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private AppendFsync(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig.AppendFsync) + } + + public static final int APPEND_FSYNC_FIELD_NUMBER = 1; + private int appendFsync_ = 0; + /** + * + * + *
+     * Optional. fsync configuration.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig.AppendFsync append_fsync = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for appendFsync. + */ + @java.lang.Override + public int getAppendFsyncValue() { + return appendFsync_; + } + /** + * + * + *
+     * Optional. fsync configuration.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig.AppendFsync append_fsync = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The appendFsync. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig.AppendFsync + getAppendFsync() { + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig.AppendFsync result = + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig.AppendFsync + .forNumber(appendFsync_); + return result == null + ? com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig.AppendFsync + .UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (appendFsync_ + != com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig.AppendFsync + .APPEND_FSYNC_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, appendFsync_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (appendFsync_ + != com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig.AppendFsync + .APPEND_FSYNC_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, appendFsync_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig other = + (com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig) obj; + + if (appendFsync_ != other.appendFsync_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + APPEND_FSYNC_FIELD_NUMBER; + hash = (53 * hash) + appendFsync_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Configuration of the AOF based persistence.
+     * 
+ * + * Protobuf type {@code google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig) + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ClusterPersistenceConfig_AOFConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ClusterPersistenceConfig_AOFConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig.class, + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig.Builder.class); + } + + // Construct using + // com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + appendFsync_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ClusterPersistenceConfig_AOFConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig + getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig build() { + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig buildPartial() { + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig result = + new com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.appendFsync_ = appendFsync_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig) { + return mergeFrom( + (com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig other) { + if (other + == com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig + .getDefaultInstance()) return this; + if (other.appendFsync_ != 0) { + setAppendFsyncValue(other.getAppendFsyncValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + appendFsync_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int appendFsync_ = 0; + /** + * + * + *
+       * Optional. fsync configuration.
+       * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig.AppendFsync append_fsync = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for appendFsync. + */ + @java.lang.Override + public int getAppendFsyncValue() { + return appendFsync_; + } + /** + * + * + *
+       * Optional. fsync configuration.
+       * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig.AppendFsync append_fsync = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for appendFsync to set. + * @return This builder for chaining. + */ + public Builder setAppendFsyncValue(int value) { + appendFsync_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. fsync configuration.
+       * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig.AppendFsync append_fsync = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The appendFsync. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig.AppendFsync + getAppendFsync() { + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig.AppendFsync result = + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig.AppendFsync + .forNumber(appendFsync_); + return result == null + ? com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig.AppendFsync + .UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Optional. fsync configuration.
+       * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig.AppendFsync append_fsync = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The appendFsync to set. + * @return This builder for chaining. + */ + public Builder setAppendFsync( + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig.AppendFsync value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + appendFsync_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. fsync configuration.
+       * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig.AppendFsync append_fsync = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAppendFsync() { + bitField0_ = (bitField0_ & ~0x00000001); + appendFsync_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig) + private static final com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig(); + } + + public static com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AOFConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int MODE_FIELD_NUMBER = 1; + private int mode_ = 0; + /** + * + * + *
+   * Optional. The mode of persistence.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.PersistenceMode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override + public int getModeValue() { + return mode_; + } + /** + * + * + *
+   * Optional. The mode of persistence.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.PersistenceMode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mode. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.PersistenceMode getMode() { + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.PersistenceMode result = + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.PersistenceMode.forNumber(mode_); + return result == null + ? com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.PersistenceMode.UNRECOGNIZED + : result; + } + + public static final int RDB_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig rdbConfig_; + /** + * + * + *
+   * Optional. RDB configuration. This field will be ignored if mode is not RDB.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig rdb_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rdbConfig field is set. + */ + @java.lang.Override + public boolean hasRdbConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Optional. RDB configuration. This field will be ignored if mode is not RDB.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig rdb_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rdbConfig. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig getRdbConfig() { + return rdbConfig_ == null + ? com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig.getDefaultInstance() + : rdbConfig_; + } + /** + * + * + *
+   * Optional. RDB configuration. This field will be ignored if mode is not RDB.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig rdb_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfigOrBuilder + getRdbConfigOrBuilder() { + return rdbConfig_ == null + ? com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig.getDefaultInstance() + : rdbConfig_; + } + + public static final int AOF_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig aofConfig_; + /** + * + * + *
+   * Optional. AOF configuration. This field will be ignored if mode is not AOF.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig aof_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the aofConfig field is set. + */ + @java.lang.Override + public boolean hasAofConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Optional. AOF configuration. This field will be ignored if mode is not AOF.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig aof_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The aofConfig. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig getAofConfig() { + return aofConfig_ == null + ? com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig.getDefaultInstance() + : aofConfig_; + } + /** + * + * + *
+   * Optional. AOF configuration. This field will be ignored if mode is not AOF.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig aof_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfigOrBuilder + getAofConfigOrBuilder() { + return aofConfig_ == null + ? com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig.getDefaultInstance() + : aofConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (mode_ + != com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.PersistenceMode + .PERSISTENCE_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, mode_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getRdbConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getAofConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (mode_ + != com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.PersistenceMode + .PERSISTENCE_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, mode_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRdbConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAofConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig other = + (com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig) obj; + + if (mode_ != other.mode_) return false; + if (hasRdbConfig() != other.hasRdbConfig()) return false; + if (hasRdbConfig()) { + if (!getRdbConfig().equals(other.getRdbConfig())) return false; + } + if (hasAofConfig() != other.hasAofConfig()) return false; + if (hasAofConfig()) { + if (!getAofConfig().equals(other.getAofConfig())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MODE_FIELD_NUMBER; + hash = (53 * hash) + mode_; + if (hasRdbConfig()) { + hash = (37 * hash) + RDB_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getRdbConfig().hashCode(); + } + if (hasAofConfig()) { + hash = (37 * hash) + AOF_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAofConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Configuration of the persistence functionality.
+   * 
+ * + * Protobuf type {@code google.cloud.redis.cluster.v1.ClusterPersistenceConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.ClusterPersistenceConfig) + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ClusterPersistenceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ClusterPersistenceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.class, + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getRdbConfigFieldBuilder(); + getAofConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + mode_ = 0; + rdbConfig_ = null; + if (rdbConfigBuilder_ != null) { + rdbConfigBuilder_.dispose(); + rdbConfigBuilder_ = null; + } + aofConfig_ = null; + if (aofConfigBuilder_ != null) { + aofConfigBuilder_.dispose(); + aofConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ClusterPersistenceConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig build() { + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig buildPartial() { + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig result = + new com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.mode_ = mode_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.rdbConfig_ = rdbConfigBuilder_ == null ? rdbConfig_ : rdbConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.aofConfig_ = aofConfigBuilder_ == null ? aofConfig_ : aofConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig) { + return mergeFrom((com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig other) { + if (other == com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.getDefaultInstance()) + return this; + if (other.mode_ != 0) { + setModeValue(other.getModeValue()); + } + if (other.hasRdbConfig()) { + mergeRdbConfig(other.getRdbConfig()); + } + if (other.hasAofConfig()) { + mergeAofConfig(other.getAofConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + mode_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage(getRdbConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getAofConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int mode_ = 0; + /** + * + * + *
+     * Optional. The mode of persistence.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.PersistenceMode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override + public int getModeValue() { + return mode_; + } + /** + * + * + *
+     * Optional. The mode of persistence.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.PersistenceMode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for mode to set. + * @return This builder for chaining. + */ + public Builder setModeValue(int value) { + mode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The mode of persistence.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.PersistenceMode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mode. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.PersistenceMode getMode() { + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.PersistenceMode result = + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.PersistenceMode.forNumber( + mode_); + return result == null + ? com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.PersistenceMode.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional. The mode of persistence.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.PersistenceMode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The mode to set. + * @return This builder for chaining. + */ + public Builder setMode( + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.PersistenceMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + mode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The mode of persistence.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.PersistenceMode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearMode() { + bitField0_ = (bitField0_ & ~0x00000001); + mode_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig rdbConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig, + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig.Builder, + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfigOrBuilder> + rdbConfigBuilder_; + /** + * + * + *
+     * Optional. RDB configuration. This field will be ignored if mode is not RDB.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig rdb_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rdbConfig field is set. + */ + public boolean hasRdbConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Optional. RDB configuration. This field will be ignored if mode is not RDB.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig rdb_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rdbConfig. + */ + public com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig getRdbConfig() { + if (rdbConfigBuilder_ == null) { + return rdbConfig_ == null + ? com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig + .getDefaultInstance() + : rdbConfig_; + } else { + return rdbConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. RDB configuration. This field will be ignored if mode is not RDB.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig rdb_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRdbConfig( + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig value) { + if (rdbConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rdbConfig_ = value; + } else { + rdbConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. RDB configuration. This field will be ignored if mode is not RDB.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig rdb_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRdbConfig( + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig.Builder + builderForValue) { + if (rdbConfigBuilder_ == null) { + rdbConfig_ = builderForValue.build(); + } else { + rdbConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. RDB configuration. This field will be ignored if mode is not RDB.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig rdb_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRdbConfig( + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig value) { + if (rdbConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && rdbConfig_ != null + && rdbConfig_ + != com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig + .getDefaultInstance()) { + getRdbConfigBuilder().mergeFrom(value); + } else { + rdbConfig_ = value; + } + } else { + rdbConfigBuilder_.mergeFrom(value); + } + if (rdbConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. RDB configuration. This field will be ignored if mode is not RDB.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig rdb_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRdbConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + rdbConfig_ = null; + if (rdbConfigBuilder_ != null) { + rdbConfigBuilder_.dispose(); + rdbConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. RDB configuration. This field will be ignored if mode is not RDB.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig rdb_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig.Builder + getRdbConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getRdbConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. RDB configuration. This field will be ignored if mode is not RDB.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig rdb_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfigOrBuilder + getRdbConfigOrBuilder() { + if (rdbConfigBuilder_ != null) { + return rdbConfigBuilder_.getMessageOrBuilder(); + } else { + return rdbConfig_ == null + ? com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig + .getDefaultInstance() + : rdbConfig_; + } + } + /** + * + * + *
+     * Optional. RDB configuration. This field will be ignored if mode is not RDB.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig rdb_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig, + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig.Builder, + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfigOrBuilder> + getRdbConfigFieldBuilder() { + if (rdbConfigBuilder_ == null) { + rdbConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig, + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig.Builder, + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfigOrBuilder>( + getRdbConfig(), getParentForChildren(), isClean()); + rdbConfig_ = null; + } + return rdbConfigBuilder_; + } + + private com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig aofConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig, + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig.Builder, + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfigOrBuilder> + aofConfigBuilder_; + /** + * + * + *
+     * Optional. AOF configuration. This field will be ignored if mode is not AOF.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig aof_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the aofConfig field is set. + */ + public boolean hasAofConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Optional. AOF configuration. This field will be ignored if mode is not AOF.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig aof_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The aofConfig. + */ + public com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig getAofConfig() { + if (aofConfigBuilder_ == null) { + return aofConfig_ == null + ? com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig + .getDefaultInstance() + : aofConfig_; + } else { + return aofConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. AOF configuration. This field will be ignored if mode is not AOF.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig aof_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAofConfig( + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig value) { + if (aofConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + aofConfig_ = value; + } else { + aofConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. AOF configuration. This field will be ignored if mode is not AOF.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig aof_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAofConfig( + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig.Builder + builderForValue) { + if (aofConfigBuilder_ == null) { + aofConfig_ = builderForValue.build(); + } else { + aofConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. AOF configuration. This field will be ignored if mode is not AOF.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig aof_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAofConfig( + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig value) { + if (aofConfigBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && aofConfig_ != null + && aofConfig_ + != com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig + .getDefaultInstance()) { + getAofConfigBuilder().mergeFrom(value); + } else { + aofConfig_ = value; + } + } else { + aofConfigBuilder_.mergeFrom(value); + } + if (aofConfig_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. AOF configuration. This field will be ignored if mode is not AOF.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig aof_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAofConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + aofConfig_ = null; + if (aofConfigBuilder_ != null) { + aofConfigBuilder_.dispose(); + aofConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. AOF configuration. This field will be ignored if mode is not AOF.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig aof_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig.Builder + getAofConfigBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getAofConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. AOF configuration. This field will be ignored if mode is not AOF.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig aof_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfigOrBuilder + getAofConfigOrBuilder() { + if (aofConfigBuilder_ != null) { + return aofConfigBuilder_.getMessageOrBuilder(); + } else { + return aofConfig_ == null + ? com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig + .getDefaultInstance() + : aofConfig_; + } + } + /** + * + * + *
+     * Optional. AOF configuration. This field will be ignored if mode is not AOF.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig aof_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig, + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig.Builder, + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfigOrBuilder> + getAofConfigFieldBuilder() { + if (aofConfigBuilder_ == null) { + aofConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig, + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig.Builder, + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfigOrBuilder>( + getAofConfig(), getParentForChildren(), isClean()); + aofConfig_ = null; + } + return aofConfigBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1.ClusterPersistenceConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.ClusterPersistenceConfig) + private static final com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig(); + } + + public static com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClusterPersistenceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterPersistenceConfigOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterPersistenceConfigOrBuilder.java new file mode 100644 index 000000000000..5d32e44d4905 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ClusterPersistenceConfigOrBuilder.java @@ -0,0 +1,139 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.redis.cluster.v1; + +public interface ClusterPersistenceConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.ClusterPersistenceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The mode of persistence.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.PersistenceMode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for mode. + */ + int getModeValue(); + /** + * + * + *
+   * Optional. The mode of persistence.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.PersistenceMode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mode. + */ + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.PersistenceMode getMode(); + + /** + * + * + *
+   * Optional. RDB configuration. This field will be ignored if mode is not RDB.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig rdb_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rdbConfig field is set. + */ + boolean hasRdbConfig(); + /** + * + * + *
+   * Optional. RDB configuration. This field will be ignored if mode is not RDB.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig rdb_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rdbConfig. + */ + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig getRdbConfig(); + /** + * + * + *
+   * Optional. RDB configuration. This field will be ignored if mode is not RDB.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig rdb_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfigOrBuilder + getRdbConfigOrBuilder(); + + /** + * + * + *
+   * Optional. AOF configuration. This field will be ignored if mode is not AOF.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig aof_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the aofConfig field is set. + */ + boolean hasAofConfig(); + /** + * + * + *
+   * Optional. AOF configuration. This field will be ignored if mode is not AOF.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig aof_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The aofConfig. + */ + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig getAofConfig(); + /** + * + * + *
+   * Optional. AOF configuration. This field will be ignored if mode is not AOF.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig aof_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfigOrBuilder + getAofConfigOrBuilder(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/GetClusterCertificateAuthorityRequest.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/GetClusterCertificateAuthorityRequest.java new file mode 100644 index 000000000000..477add503c58 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/GetClusterCertificateAuthorityRequest.java @@ -0,0 +1,673 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
+ * Request for
+ * [GetClusterCertificateAuthorityRequest][CloudRedis.GetClusterCertificateAuthorityRequest].
+ * 
+ * + * Protobuf type {@code google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest} + */ +public final class GetClusterCertificateAuthorityRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest) + GetClusterCertificateAuthorityRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetClusterCertificateAuthorityRequest.newBuilder() to construct. + private GetClusterCertificateAuthorityRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetClusterCertificateAuthorityRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetClusterCertificateAuthorityRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_GetClusterCertificateAuthorityRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_GetClusterCertificateAuthorityRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest.class, + com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Redis cluster certificate authority resource name using the form:
+   *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}/certificateAuthority`
+   * where `location_id` refers to a GCP region.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Redis cluster certificate authority resource name using the form:
+   *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}/certificateAuthority`
+   * where `location_id` refers to a GCP region.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest other = + (com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request for
+   * [GetClusterCertificateAuthorityRequest][CloudRedis.GetClusterCertificateAuthorityRequest].
+   * 
+ * + * Protobuf type {@code google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest) + com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_GetClusterCertificateAuthorityRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_GetClusterCertificateAuthorityRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest.class, + com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_GetClusterCertificateAuthorityRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest + getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest build() { + com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest buildPartial() { + com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest result = + new com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest) { + return mergeFrom( + (com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest other) { + if (other + == com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. Redis cluster certificate authority resource name using the form:
+     *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}/certificateAuthority`
+     * where `location_id` refers to a GCP region.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Redis cluster certificate authority resource name using the form:
+     *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}/certificateAuthority`
+     * where `location_id` refers to a GCP region.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Redis cluster certificate authority resource name using the form:
+     *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}/certificateAuthority`
+     * where `location_id` refers to a GCP region.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Redis cluster certificate authority resource name using the form:
+     *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}/certificateAuthority`
+     * where `location_id` refers to a GCP region.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Redis cluster certificate authority resource name using the form:
+     *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}/certificateAuthority`
+     * where `location_id` refers to a GCP region.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest) + private static final com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest(); + } + + public static com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetClusterCertificateAuthorityRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/GetClusterCertificateAuthorityRequestOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/GetClusterCertificateAuthorityRequestOrBuilder.java new file mode 100644 index 000000000000..ad62bfb97c55 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/GetClusterCertificateAuthorityRequestOrBuilder.java @@ -0,0 +1,59 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.redis.cluster.v1; + +public interface GetClusterCertificateAuthorityRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Redis cluster certificate authority resource name using the form:
+   *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}/certificateAuthority`
+   * where `location_id` refers to a GCP region.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Redis cluster certificate authority resource name using the form:
+   *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}/certificateAuthority`
+   * where `location_id` refers to a GCP region.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/NodeType.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/NodeType.java new file mode 100644 index 000000000000..7c52ca61d1df --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/NodeType.java @@ -0,0 +1,207 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
+ * NodeType of a redis cluster node,
+ * 
+ * + * Protobuf enum {@code google.cloud.redis.cluster.v1.NodeType} + */ +public enum NodeType implements com.google.protobuf.ProtocolMessageEnum { + /** NODE_TYPE_UNSPECIFIED = 0; */ + NODE_TYPE_UNSPECIFIED(0), + /** + * + * + *
+   * Redis shared core nano node_type.
+   * 
+ * + * REDIS_SHARED_CORE_NANO = 1; + */ + REDIS_SHARED_CORE_NANO(1), + /** + * + * + *
+   * Redis highmem medium node_type.
+   * 
+ * + * REDIS_HIGHMEM_MEDIUM = 2; + */ + REDIS_HIGHMEM_MEDIUM(2), + /** + * + * + *
+   * Redis highmem xlarge node_type.
+   * 
+ * + * REDIS_HIGHMEM_XLARGE = 3; + */ + REDIS_HIGHMEM_XLARGE(3), + /** + * + * + *
+   * Redis standard small node_type.
+   * 
+ * + * REDIS_STANDARD_SMALL = 4; + */ + REDIS_STANDARD_SMALL(4), + UNRECOGNIZED(-1), + ; + + /** NODE_TYPE_UNSPECIFIED = 0; */ + public static final int NODE_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Redis shared core nano node_type.
+   * 
+ * + * REDIS_SHARED_CORE_NANO = 1; + */ + public static final int REDIS_SHARED_CORE_NANO_VALUE = 1; + /** + * + * + *
+   * Redis highmem medium node_type.
+   * 
+ * + * REDIS_HIGHMEM_MEDIUM = 2; + */ + public static final int REDIS_HIGHMEM_MEDIUM_VALUE = 2; + /** + * + * + *
+   * Redis highmem xlarge node_type.
+   * 
+ * + * REDIS_HIGHMEM_XLARGE = 3; + */ + public static final int REDIS_HIGHMEM_XLARGE_VALUE = 3; + /** + * + * + *
+   * Redis standard small node_type.
+   * 
+ * + * REDIS_STANDARD_SMALL = 4; + */ + public static final int REDIS_STANDARD_SMALL_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static NodeType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static NodeType forNumber(int value) { + switch (value) { + case 0: + return NODE_TYPE_UNSPECIFIED; + case 1: + return REDIS_SHARED_CORE_NANO; + case 2: + return REDIS_HIGHMEM_MEDIUM; + case 3: + return REDIS_HIGHMEM_XLARGE; + case 4: + return REDIS_STANDARD_SMALL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public NodeType findValueByNumber(int number) { + return NodeType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final NodeType[] VALUES = values(); + + public static NodeType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private NodeType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.redis.cluster.v1.NodeType) +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/TransitEncryptionMode.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/TransitEncryptionMode.java index 70d783d8559a..1d1879d301ff 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/TransitEncryptionMode.java +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/TransitEncryptionMode.java @@ -156,7 +156,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto.getDescriptor() .getEnumTypes() - .get(1); + .get(2); } private static final TransitEncryptionMode[] VALUES = values(); diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ZoneDistributionConfig.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ZoneDistributionConfig.java new file mode 100644 index 000000000000..e6942c661f9c --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ZoneDistributionConfig.java @@ -0,0 +1,992 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.redis.cluster.v1; + +/** + * + * + *
+ * Zone distribution config for allocation of cluster resources.
+ * 
+ * + * Protobuf type {@code google.cloud.redis.cluster.v1.ZoneDistributionConfig} + */ +public final class ZoneDistributionConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1.ZoneDistributionConfig) + ZoneDistributionConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ZoneDistributionConfig.newBuilder() to construct. + private ZoneDistributionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ZoneDistributionConfig() { + mode_ = 0; + zone_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ZoneDistributionConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ZoneDistributionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ZoneDistributionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.ZoneDistributionConfig.class, + com.google.cloud.redis.cluster.v1.ZoneDistributionConfig.Builder.class); + } + + /** + * + * + *
+   * Defines various modes of zone distribution.
+   * Currently supports two modes, can be expanded in future to support more
+   * types of distribution modes.
+   * design doc: go/same-zone-cluster
+   * 
+ * + * Protobuf enum {@code google.cloud.redis.cluster.v1.ZoneDistributionConfig.ZoneDistributionMode} + */ + public enum ZoneDistributionMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Not Set. Default: MULTI_ZONE
+     * 
+ * + * ZONE_DISTRIBUTION_MODE_UNSPECIFIED = 0; + */ + ZONE_DISTRIBUTION_MODE_UNSPECIFIED(0), + /** + * + * + *
+     * Distribute all resources across 3 zones picked at random, within the
+     * region.
+     * 
+ * + * MULTI_ZONE = 1; + */ + MULTI_ZONE(1), + /** + * + * + *
+     * Distribute all resources in a single zone. The zone field must be
+     * specified, when this mode is selected.
+     * 
+ * + * SINGLE_ZONE = 2; + */ + SINGLE_ZONE(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Not Set. Default: MULTI_ZONE
+     * 
+ * + * ZONE_DISTRIBUTION_MODE_UNSPECIFIED = 0; + */ + public static final int ZONE_DISTRIBUTION_MODE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Distribute all resources across 3 zones picked at random, within the
+     * region.
+     * 
+ * + * MULTI_ZONE = 1; + */ + public static final int MULTI_ZONE_VALUE = 1; + /** + * + * + *
+     * Distribute all resources in a single zone. The zone field must be
+     * specified, when this mode is selected.
+     * 
+ * + * SINGLE_ZONE = 2; + */ + public static final int SINGLE_ZONE_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ZoneDistributionMode valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ZoneDistributionMode forNumber(int value) { + switch (value) { + case 0: + return ZONE_DISTRIBUTION_MODE_UNSPECIFIED; + case 1: + return MULTI_ZONE; + case 2: + return SINGLE_ZONE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ZoneDistributionMode findValueByNumber(int number) { + return ZoneDistributionMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.ZoneDistributionConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ZoneDistributionMode[] VALUES = values(); + + public static ZoneDistributionMode valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ZoneDistributionMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.redis.cluster.v1.ZoneDistributionConfig.ZoneDistributionMode) + } + + public static final int MODE_FIELD_NUMBER = 1; + private int mode_ = 0; + /** + * + * + *
+   * Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not
+   * specified.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1.ZoneDistributionConfig.ZoneDistributionMode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override + public int getModeValue() { + return mode_; + } + /** + * + * + *
+   * Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not
+   * specified.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1.ZoneDistributionConfig.ZoneDistributionMode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mode. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ZoneDistributionConfig.ZoneDistributionMode getMode() { + com.google.cloud.redis.cluster.v1.ZoneDistributionConfig.ZoneDistributionMode result = + com.google.cloud.redis.cluster.v1.ZoneDistributionConfig.ZoneDistributionMode.forNumber( + mode_); + return result == null + ? com.google.cloud.redis.cluster.v1.ZoneDistributionConfig.ZoneDistributionMode.UNRECOGNIZED + : result; + } + + public static final int ZONE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + /** + * + * + *
+   * Optional. When SINGLE ZONE distribution is selected, zone field would be
+   * used to allocate all resources in that zone. This is not applicable to
+   * MULTI_ZONE, and would be ignored for MULTI_ZONE clusters.
+   * 
+ * + * string zone = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The zone. + */ + @java.lang.Override + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. When SINGLE ZONE distribution is selected, zone field would be
+   * used to allocate all resources in that zone. This is not applicable to
+   * MULTI_ZONE, and would be ignored for MULTI_ZONE clusters.
+   * 
+ * + * string zone = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for zone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (mode_ + != com.google.cloud.redis.cluster.v1.ZoneDistributionConfig.ZoneDistributionMode + .ZONE_DISTRIBUTION_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, mode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (mode_ + != com.google.cloud.redis.cluster.v1.ZoneDistributionConfig.ZoneDistributionMode + .ZONE_DISTRIBUTION_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, mode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.cluster.v1.ZoneDistributionConfig)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1.ZoneDistributionConfig other = + (com.google.cloud.redis.cluster.v1.ZoneDistributionConfig) obj; + + if (mode_ != other.mode_) return false; + if (!getZone().equals(other.getZone())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MODE_FIELD_NUMBER; + hash = (53 * hash) + mode_; + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1.ZoneDistributionConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ZoneDistributionConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ZoneDistributionConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ZoneDistributionConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ZoneDistributionConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1.ZoneDistributionConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ZoneDistributionConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ZoneDistributionConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ZoneDistributionConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ZoneDistributionConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1.ZoneDistributionConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1.ZoneDistributionConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1.ZoneDistributionConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Zone distribution config for allocation of cluster resources.
+   * 
+ * + * Protobuf type {@code google.cloud.redis.cluster.v1.ZoneDistributionConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1.ZoneDistributionConfig) + com.google.cloud.redis.cluster.v1.ZoneDistributionConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ZoneDistributionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ZoneDistributionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1.ZoneDistributionConfig.class, + com.google.cloud.redis.cluster.v1.ZoneDistributionConfig.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1.ZoneDistributionConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + mode_ = 0; + zone_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1_ZoneDistributionConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ZoneDistributionConfig getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1.ZoneDistributionConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ZoneDistributionConfig build() { + com.google.cloud.redis.cluster.v1.ZoneDistributionConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ZoneDistributionConfig buildPartial() { + com.google.cloud.redis.cluster.v1.ZoneDistributionConfig result = + new com.google.cloud.redis.cluster.v1.ZoneDistributionConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1.ZoneDistributionConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.mode_ = mode_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1.ZoneDistributionConfig) { + return mergeFrom((com.google.cloud.redis.cluster.v1.ZoneDistributionConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1.ZoneDistributionConfig other) { + if (other == com.google.cloud.redis.cluster.v1.ZoneDistributionConfig.getDefaultInstance()) + return this; + if (other.mode_ != 0) { + setModeValue(other.getModeValue()); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + mode_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int mode_ = 0; + /** + * + * + *
+     * Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not
+     * specified.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.ZoneDistributionConfig.ZoneDistributionMode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override + public int getModeValue() { + return mode_; + } + /** + * + * + *
+     * Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not
+     * specified.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.ZoneDistributionConfig.ZoneDistributionMode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for mode to set. + * @return This builder for chaining. + */ + public Builder setModeValue(int value) { + mode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not
+     * specified.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.ZoneDistributionConfig.ZoneDistributionMode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mode. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ZoneDistributionConfig.ZoneDistributionMode getMode() { + com.google.cloud.redis.cluster.v1.ZoneDistributionConfig.ZoneDistributionMode result = + com.google.cloud.redis.cluster.v1.ZoneDistributionConfig.ZoneDistributionMode.forNumber( + mode_); + return result == null + ? com.google.cloud.redis.cluster.v1.ZoneDistributionConfig.ZoneDistributionMode + .UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not
+     * specified.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.ZoneDistributionConfig.ZoneDistributionMode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The mode to set. + * @return This builder for chaining. + */ + public Builder setMode( + com.google.cloud.redis.cluster.v1.ZoneDistributionConfig.ZoneDistributionMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + mode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not
+     * specified.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1.ZoneDistributionConfig.ZoneDistributionMode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearMode() { + bitField0_ = (bitField0_ & ~0x00000001); + mode_ = 0; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Optional. When SINGLE ZONE distribution is selected, zone field would be
+     * used to allocate all resources in that zone. This is not applicable to
+     * MULTI_ZONE, and would be ignored for MULTI_ZONE clusters.
+     * 
+ * + * string zone = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The zone. + */ + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. When SINGLE ZONE distribution is selected, zone field would be
+     * used to allocate all resources in that zone. This is not applicable to
+     * MULTI_ZONE, and would be ignored for MULTI_ZONE clusters.
+     * 
+ * + * string zone = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for zone. + */ + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. When SINGLE ZONE distribution is selected, zone field would be
+     * used to allocate all resources in that zone. This is not applicable to
+     * MULTI_ZONE, and would be ignored for MULTI_ZONE clusters.
+     * 
+ * + * string zone = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The zone to set. + * @return This builder for chaining. + */ + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + zone_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. When SINGLE ZONE distribution is selected, zone field would be
+     * used to allocate all resources in that zone. This is not applicable to
+     * MULTI_ZONE, and would be ignored for MULTI_ZONE clusters.
+     * 
+ * + * string zone = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. When SINGLE ZONE distribution is selected, zone field would be
+     * used to allocate all resources in that zone. This is not applicable to
+     * MULTI_ZONE, and would be ignored for MULTI_ZONE clusters.
+     * 
+ * + * string zone = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + zone_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1.ZoneDistributionConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1.ZoneDistributionConfig) + private static final com.google.cloud.redis.cluster.v1.ZoneDistributionConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1.ZoneDistributionConfig(); + } + + public static com.google.cloud.redis.cluster.v1.ZoneDistributionConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ZoneDistributionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1.ZoneDistributionConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ZoneDistributionConfigOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ZoneDistributionConfigOrBuilder.java new file mode 100644 index 000000000000..e381b6dabf81 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/java/com/google/cloud/redis/cluster/v1/ZoneDistributionConfigOrBuilder.java @@ -0,0 +1,86 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.redis.cluster.v1; + +public interface ZoneDistributionConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1.ZoneDistributionConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not
+   * specified.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1.ZoneDistributionConfig.ZoneDistributionMode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for mode. + */ + int getModeValue(); + /** + * + * + *
+   * Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not
+   * specified.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1.ZoneDistributionConfig.ZoneDistributionMode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mode. + */ + com.google.cloud.redis.cluster.v1.ZoneDistributionConfig.ZoneDistributionMode getMode(); + + /** + * + * + *
+   * Optional. When SINGLE ZONE distribution is selected, zone field would be
+   * used to allocate all resources in that zone. This is not applicable to
+   * MULTI_ZONE, and would be ignored for MULTI_ZONE clusters.
+   * 
+ * + * string zone = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The zone. + */ + java.lang.String getZone(); + /** + * + * + *
+   * Optional. When SINGLE ZONE distribution is selected, zone field would be
+   * used to allocate all resources in that zone. This is not applicable to
+   * MULTI_ZONE, and would be ignored for MULTI_ZONE clusters.
+   * 
+ * + * string zone = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for zone. + */ + com.google.protobuf.ByteString getZoneBytes(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/proto/google/cloud/redis/cluster/v1/cloud_redis_cluster.proto b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/proto/google/cloud/redis/cluster/v1/cloud_redis_cluster.proto index 70fe73bea43d..b89fe889eb87 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/proto/google/cloud/redis/cluster/v1/cloud_redis_cluster.proto +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/src/main/proto/google/cloud/redis/cluster/v1/cloud_redis_cluster.proto @@ -134,6 +134,15 @@ service CloudRedisCluster { metadata_type: "google.protobuf.Any" }; } + + // Gets the details of certificate authority information for Redis cluster. + rpc GetClusterCertificateAuthority(GetClusterCertificateAuthorityRequest) + returns (CertificateAuthority) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/clusters/*/certificateAuthority}" + }; + option (google.api.method_signature) = "name"; + } } // Available authorization mode of a Redis cluster. @@ -148,6 +157,23 @@ enum AuthorizationMode { AUTH_MODE_DISABLED = 2; } +// NodeType of a redis cluster node, +enum NodeType { + NODE_TYPE_UNSPECIFIED = 0; + + // Redis shared core nano node_type. + REDIS_SHARED_CORE_NANO = 1; + + // Redis highmem medium node_type. + REDIS_HIGHMEM_MEDIUM = 2; + + // Redis highmem xlarge node_type. + REDIS_HIGHMEM_XLARGE = 3; + + // Redis standard small node_type. + REDIS_STANDARD_SMALL = 4; +} + // Available mode of in-transit encryption. enum TransitEncryptionMode { // In-transit encryption not set. @@ -282,6 +308,20 @@ message DeleteClusterRequest { string request_id = 2; } +// Request for +// [GetClusterCertificateAuthorityRequest][CloudRedis.GetClusterCertificateAuthorityRequest]. +message GetClusterCertificateAuthorityRequest { + // Required. Redis cluster certificate authority resource name using the form: + // `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}/certificateAuthority` + // where `location_id` refers to a GCP region. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "redis.googleapis.com/CertificateAuthority" + } + ]; +} + // A cluster instance. message Cluster { option (google.api.resource) = { @@ -353,7 +393,8 @@ message Cluster { TransitEncryptionMode transit_encryption_mode = 12 [(google.api.field_behavior) = OPTIONAL]; - // Output only. Redis memory size in GB for the entire cluster. + // Output only. Redis memory size in GB for the entire cluster rounded up to + // the next integer. optional int32 size_gb = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. Number of shards for the Redis cluster. @@ -376,6 +417,32 @@ message Cluster { // Output only. Additional information about the current state of the cluster. StateInfo state_info = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The type of a redis node in the cluster. NodeType determines the + // underlying machine-type of a redis node. + NodeType node_type = 19 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Persistence config (RDB, AOF) for the cluster. + ClusterPersistenceConfig persistence_config = 20 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Key/Value pairs of customer overrides for mutable Redis Configs + map redis_configs = 21 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Precise value of redis memory size in GB for the entire + // cluster. + optional double precise_size_gb = 22 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. This config will be used to determine how the customer wants us + // to distribute cluster resources within the region. + ZoneDistributionConfig zone_distribution_config = 23 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The delete operation will fail when the value is set to true. + optional bool deletion_protection_enabled = 25 + [(google.api.field_behavior) = OPTIONAL]; } message PscConfig { @@ -452,3 +519,143 @@ message OperationMetadata { // Output only. API version used to start the operation. string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; } + +// Redis cluster certificate authority +message CertificateAuthority { + option (google.api.resource) = { + type: "redis.googleapis.com/CertificateAuthority" + pattern: "projects/{project}/locations/{location}/clusters/{cluster}/certificateAuthority" + }; + + message ManagedCertificateAuthority { + message CertChain { + // The certificates that form the CA chain, from leaf to root order. + repeated string certificates = 1; + } + + // The PEM encoded CA certificate chains for redis managed + // server authentication + repeated CertChain ca_certs = 1; + } + + // server ca information + oneof server_ca { + ManagedCertificateAuthority managed_server_ca = 1; + } + + // Identifier. Unique name of the resource in this scope including project, + // location and cluster using the form: + // `projects/{project}/locations/{location}/clusters/{cluster}/certificateAuthority` + string name = 2 [(google.api.field_behavior) = IDENTIFIER]; +} + +// Configuration of the persistence functionality. +message ClusterPersistenceConfig { + // Configuration of the RDB based persistence. + message RDBConfig { + // Available snapshot periods. + enum SnapshotPeriod { + // Not set. + SNAPSHOT_PERIOD_UNSPECIFIED = 0; + + // One hour. + ONE_HOUR = 1; + + // Six hours. + SIX_HOURS = 2; + + // Twelve hours. + TWELVE_HOURS = 3; + + // Twenty four hours. + TWENTY_FOUR_HOURS = 4; + } + + // Optional. Period between RDB snapshots. + SnapshotPeriod rdb_snapshot_period = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The time that the first snapshot was/will be attempted, and to + // which future snapshots will be aligned. If not provided, the current time + // will be used. + google.protobuf.Timestamp rdb_snapshot_start_time = 2 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Configuration of the AOF based persistence. + message AOFConfig { + // Available fsync modes. + enum AppendFsync { + // Not set. Default: EVERYSEC + APPEND_FSYNC_UNSPECIFIED = 0; + + // Never fsync. Normally Linux will flush data every 30 seconds with this + // configuration, but it's up to the kernel's exact tuning. + NO = 1; + + // fsync every second. Fast enough, and you may lose 1 second of data if + // there is a disaster + EVERYSEC = 2; + + // fsync every time new commands are appended to the AOF. It has the best + // data loss protection at the cost of performance + ALWAYS = 3; + } + + // Optional. fsync configuration. + AppendFsync append_fsync = 1 [(google.api.field_behavior) = OPTIONAL]; + } + + // Available persistence modes. + enum PersistenceMode { + // Not set. + PERSISTENCE_MODE_UNSPECIFIED = 0; + + // Persistence is disabled, and any snapshot data is deleted. + DISABLED = 1; + + // RDB based persistence is enabled. + RDB = 2; + + // AOF based persistence is enabled. + AOF = 3; + } + + // Optional. The mode of persistence. + PersistenceMode mode = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. RDB configuration. This field will be ignored if mode is not RDB. + RDBConfig rdb_config = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. AOF configuration. This field will be ignored if mode is not AOF. + AOFConfig aof_config = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Zone distribution config for allocation of cluster resources. +message ZoneDistributionConfig { + // Defines various modes of zone distribution. + // Currently supports two modes, can be expanded in future to support more + // types of distribution modes. + // design doc: go/same-zone-cluster + enum ZoneDistributionMode { + // Not Set. Default: MULTI_ZONE + ZONE_DISTRIBUTION_MODE_UNSPECIFIED = 0; + + // Distribute all resources across 3 zones picked at random, within the + // region. + MULTI_ZONE = 1; + + // Distribute all resources in a single zone. The zone field must be + // specified, when this mode is selected. + SINGLE_ZONE = 2; + } + + // Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not + // specified. + ZoneDistributionMode mode = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. When SINGLE ZONE distribution is selected, zone field would be + // used to allocate all resources in that zone. This is not applicable to + // MULTI_ZONE, and would be ignored for MULTI_ZONE clusters. + string zone = 2 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CertificateAuthority.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CertificateAuthority.java new file mode 100644 index 000000000000..09bf8a8d0eb4 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CertificateAuthority.java @@ -0,0 +1,3038 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.redis.cluster.v1beta1; + +/** + * + * + *
+ * Redis cluster certificate authority
+ * 
+ * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.CertificateAuthority} + */ +public final class CertificateAuthority extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1beta1.CertificateAuthority) + CertificateAuthorityOrBuilder { + private static final long serialVersionUID = 0L; + // Use CertificateAuthority.newBuilder() to construct. + private CertificateAuthority(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CertificateAuthority() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CertificateAuthority(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_CertificateAuthority_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_CertificateAuthority_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.class, + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.Builder.class); + } + + public interface ManagedCertificateAuthorityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The PEM encoded CA certificate chains for redis managed
+     * server authentication
+     * 
+ * + * + * repeated .google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + java.util.List< + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority + .CertChain> + getCaCertsList(); + /** + * + * + *
+     * The PEM encoded CA certificate chains for redis managed
+     * server authentication
+     * 
+ * + * + * repeated .google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority + .CertChain + getCaCerts(int index); + /** + * + * + *
+     * The PEM encoded CA certificate chains for redis managed
+     * server authentication
+     * 
+ * + * + * repeated .google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + int getCaCertsCount(); + /** + * + * + *
+     * The PEM encoded CA certificate chains for redis managed
+     * server authentication
+     * 
+ * + * + * repeated .google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.CertChainOrBuilder> + getCaCertsOrBuilderList(); + /** + * + * + *
+     * The PEM encoded CA certificate chains for redis managed
+     * server authentication
+     * 
+ * + * + * repeated .google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority + .CertChainOrBuilder + getCaCertsOrBuilder(int index); + } + /** + * Protobuf type {@code + * google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority} + */ + public static final class ManagedCertificateAuthority + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority) + ManagedCertificateAuthorityOrBuilder { + private static final long serialVersionUID = 0L; + // Use ManagedCertificateAuthority.newBuilder() to construct. + private ManagedCertificateAuthority(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ManagedCertificateAuthority() { + caCerts_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ManagedCertificateAuthority(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_CertificateAuthority_ManagedCertificateAuthority_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_CertificateAuthority_ManagedCertificateAuthority_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.class, + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.Builder.class); + } + + public interface CertChainOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority.CertChain) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * The certificates that form the CA chain, from leaf to root order.
+       * 
+ * + * repeated string certificates = 1; + * + * @return A list containing the certificates. + */ + java.util.List getCertificatesList(); + /** + * + * + *
+       * The certificates that form the CA chain, from leaf to root order.
+       * 
+ * + * repeated string certificates = 1; + * + * @return The count of certificates. + */ + int getCertificatesCount(); + /** + * + * + *
+       * The certificates that form the CA chain, from leaf to root order.
+       * 
+ * + * repeated string certificates = 1; + * + * @param index The index of the element to return. + * @return The certificates at the given index. + */ + java.lang.String getCertificates(int index); + /** + * + * + *
+       * The certificates that form the CA chain, from leaf to root order.
+       * 
+ * + * repeated string certificates = 1; + * + * @param index The index of the value to return. + * @return The bytes of the certificates at the given index. + */ + com.google.protobuf.ByteString getCertificatesBytes(int index); + } + /** + * Protobuf type {@code + * google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority.CertChain} + */ + public static final class CertChain extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority.CertChain) + CertChainOrBuilder { + private static final long serialVersionUID = 0L; + // Use CertChain.newBuilder() to construct. + private CertChain(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CertChain() { + certificates_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CertChain(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_CertificateAuthority_ManagedCertificateAuthority_CertChain_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_CertificateAuthority_ManagedCertificateAuthority_CertChain_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.CertChain.class, + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.CertChain.Builder.class); + } + + public static final int CERTIFICATES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList certificates_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+       * The certificates that form the CA chain, from leaf to root order.
+       * 
+ * + * repeated string certificates = 1; + * + * @return A list containing the certificates. + */ + public com.google.protobuf.ProtocolStringList getCertificatesList() { + return certificates_; + } + /** + * + * + *
+       * The certificates that form the CA chain, from leaf to root order.
+       * 
+ * + * repeated string certificates = 1; + * + * @return The count of certificates. + */ + public int getCertificatesCount() { + return certificates_.size(); + } + /** + * + * + *
+       * The certificates that form the CA chain, from leaf to root order.
+       * 
+ * + * repeated string certificates = 1; + * + * @param index The index of the element to return. + * @return The certificates at the given index. + */ + public java.lang.String getCertificates(int index) { + return certificates_.get(index); + } + /** + * + * + *
+       * The certificates that form the CA chain, from leaf to root order.
+       * 
+ * + * repeated string certificates = 1; + * + * @param index The index of the value to return. + * @return The bytes of the certificates at the given index. + */ + public com.google.protobuf.ByteString getCertificatesBytes(int index) { + return certificates_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < certificates_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, certificates_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < certificates_.size(); i++) { + dataSize += computeStringSizeNoTag(certificates_.getRaw(i)); + } + size += dataSize; + size += 1 * getCertificatesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority + .CertChain)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority + .CertChain + other = + (com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.CertChain) + obj; + + if (!getCertificatesList().equals(other.getCertificatesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getCertificatesCount() > 0) { + hash = (37 * hash) + CERTIFICATES_FIELD_NUMBER; + hash = (53 * hash) + getCertificatesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.CertChain + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.CertChain + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.CertChain + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.CertChain + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.CertChain + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.CertChain + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.CertChain + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.CertChain + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.CertChain + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.CertChain + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.CertChain + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.CertChain + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority + .CertChain + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code + * google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority.CertChain} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority.CertChain) + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority + .CertChainOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_CertificateAuthority_ManagedCertificateAuthority_CertChain_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_CertificateAuthority_ManagedCertificateAuthority_CertChain_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.CertChain.class, + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.CertChain.Builder.class); + } + + // Construct using + // com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority.CertChain.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + certificates_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_CertificateAuthority_ManagedCertificateAuthority_CertChain_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.CertChain + getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.CertChain.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.CertChain + build() { + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority + .CertChain + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.CertChain + buildPartial() { + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority + .CertChain + result = + new com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.CertChain(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority + .CertChain + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + certificates_.makeImmutable(); + result.certificates_ = certificates_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.CertChain) { + return mergeFrom( + (com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.CertChain) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority + .CertChain + other) { + if (other + == com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.CertChain.getDefaultInstance()) return this; + if (!other.certificates_.isEmpty()) { + if (certificates_.isEmpty()) { + certificates_ = other.certificates_; + bitField0_ |= 0x00000001; + } else { + ensureCertificatesIsMutable(); + certificates_.addAll(other.certificates_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureCertificatesIsMutable(); + certificates_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList certificates_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureCertificatesIsMutable() { + if (!certificates_.isModifiable()) { + certificates_ = new com.google.protobuf.LazyStringArrayList(certificates_); + } + bitField0_ |= 0x00000001; + } + /** + * + * + *
+         * The certificates that form the CA chain, from leaf to root order.
+         * 
+ * + * repeated string certificates = 1; + * + * @return A list containing the certificates. + */ + public com.google.protobuf.ProtocolStringList getCertificatesList() { + certificates_.makeImmutable(); + return certificates_; + } + /** + * + * + *
+         * The certificates that form the CA chain, from leaf to root order.
+         * 
+ * + * repeated string certificates = 1; + * + * @return The count of certificates. + */ + public int getCertificatesCount() { + return certificates_.size(); + } + /** + * + * + *
+         * The certificates that form the CA chain, from leaf to root order.
+         * 
+ * + * repeated string certificates = 1; + * + * @param index The index of the element to return. + * @return The certificates at the given index. + */ + public java.lang.String getCertificates(int index) { + return certificates_.get(index); + } + /** + * + * + *
+         * The certificates that form the CA chain, from leaf to root order.
+         * 
+ * + * repeated string certificates = 1; + * + * @param index The index of the value to return. + * @return The bytes of the certificates at the given index. + */ + public com.google.protobuf.ByteString getCertificatesBytes(int index) { + return certificates_.getByteString(index); + } + /** + * + * + *
+         * The certificates that form the CA chain, from leaf to root order.
+         * 
+ * + * repeated string certificates = 1; + * + * @param index The index to set the value at. + * @param value The certificates to set. + * @return This builder for chaining. + */ + public Builder setCertificates(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCertificatesIsMutable(); + certificates_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * The certificates that form the CA chain, from leaf to root order.
+         * 
+ * + * repeated string certificates = 1; + * + * @param value The certificates to add. + * @return This builder for chaining. + */ + public Builder addCertificates(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCertificatesIsMutable(); + certificates_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * The certificates that form the CA chain, from leaf to root order.
+         * 
+ * + * repeated string certificates = 1; + * + * @param values The certificates to add. + * @return This builder for chaining. + */ + public Builder addAllCertificates(java.lang.Iterable values) { + ensureCertificatesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, certificates_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * The certificates that form the CA chain, from leaf to root order.
+         * 
+ * + * repeated string certificates = 1; + * + * @return This builder for chaining. + */ + public Builder clearCertificates() { + certificates_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + /** + * + * + *
+         * The certificates that form the CA chain, from leaf to root order.
+         * 
+ * + * repeated string certificates = 1; + * + * @param value The bytes of the certificates to add. + * @return This builder for chaining. + */ + public Builder addCertificatesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureCertificatesIsMutable(); + certificates_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority.CertChain) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority.CertChain) + private static final com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.CertChain + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.CertChain(); + } + + public static com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.CertChain + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertChain parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority + .CertChain + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int CA_CERTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority + .CertChain> + caCerts_; + /** + * + * + *
+     * The PEM encoded CA certificate chains for redis managed
+     * server authentication
+     * 
+ * + * + * repeated .google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority + .CertChain> + getCaCertsList() { + return caCerts_; + } + /** + * + * + *
+     * The PEM encoded CA certificate chains for redis managed
+     * server authentication
+     * 
+ * + * + * repeated .google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.CertChainOrBuilder> + getCaCertsOrBuilderList() { + return caCerts_; + } + /** + * + * + *
+     * The PEM encoded CA certificate chains for redis managed
+     * server authentication
+     * 
+ * + * + * repeated .google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + @java.lang.Override + public int getCaCertsCount() { + return caCerts_.size(); + } + /** + * + * + *
+     * The PEM encoded CA certificate chains for redis managed
+     * server authentication
+     * 
+ * + * + * repeated .google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority + .CertChain + getCaCerts(int index) { + return caCerts_.get(index); + } + /** + * + * + *
+     * The PEM encoded CA certificate chains for redis managed
+     * server authentication
+     * 
+ * + * + * repeated .google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority + .CertChainOrBuilder + getCaCertsOrBuilder(int index) { + return caCerts_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < caCerts_.size(); i++) { + output.writeMessage(1, caCerts_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < caCerts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, caCerts_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority + other = + (com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority) + obj; + + if (!getCaCertsList().equals(other.getCaCertsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getCaCertsCount() > 0) { + hash = (37 * hash) + CA_CERTS_FIELD_NUMBER; + hash = (53 * hash) + getCaCertsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code + * google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority) + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthorityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_CertificateAuthority_ManagedCertificateAuthority_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_CertificateAuthority_ManagedCertificateAuthority_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.class, + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.Builder.class); + } + + // Construct using + // com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (caCertsBuilder_ == null) { + caCerts_ = java.util.Collections.emptyList(); + } else { + caCerts_ = null; + caCertsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_CertificateAuthority_ManagedCertificateAuthority_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority + getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority + build() { + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority + buildPartial() { + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority + result = + new com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority + result) { + if (caCertsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + caCerts_ = java.util.Collections.unmodifiableList(caCerts_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.caCerts_ = caCerts_; + } else { + result.caCerts_ = caCertsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority + result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority) { + return mergeFrom( + (com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority + other) { + if (other + == com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.getDefaultInstance()) return this; + if (caCertsBuilder_ == null) { + if (!other.caCerts_.isEmpty()) { + if (caCerts_.isEmpty()) { + caCerts_ = other.caCerts_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCaCertsIsMutable(); + caCerts_.addAll(other.caCerts_); + } + onChanged(); + } + } else { + if (!other.caCerts_.isEmpty()) { + if (caCertsBuilder_.isEmpty()) { + caCertsBuilder_.dispose(); + caCertsBuilder_ = null; + caCerts_ = other.caCerts_; + bitField0_ = (bitField0_ & ~0x00000001); + caCertsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCaCertsFieldBuilder() + : null; + } else { + caCertsBuilder_.addAllMessages(other.caCerts_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.CertChain + m = + input.readMessage( + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.CertChain.parser(), + extensionRegistry); + if (caCertsBuilder_ == null) { + ensureCaCertsIsMutable(); + caCerts_.add(m); + } else { + caCertsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List< + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.CertChain> + caCerts_ = java.util.Collections.emptyList(); + + private void ensureCaCertsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + caCerts_ = + new java.util.ArrayList< + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.CertChain>(caCerts_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.CertChain, + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.CertChain.Builder, + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.CertChainOrBuilder> + caCertsBuilder_; + + /** + * + * + *
+       * The PEM encoded CA certificate chains for redis managed
+       * server authentication
+       * 
+ * + * + * repeated .google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + public java.util.List< + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.CertChain> + getCaCertsList() { + if (caCertsBuilder_ == null) { + return java.util.Collections.unmodifiableList(caCerts_); + } else { + return caCertsBuilder_.getMessageList(); + } + } + /** + * + * + *
+       * The PEM encoded CA certificate chains for redis managed
+       * server authentication
+       * 
+ * + * + * repeated .google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + public int getCaCertsCount() { + if (caCertsBuilder_ == null) { + return caCerts_.size(); + } else { + return caCertsBuilder_.getCount(); + } + } + /** + * + * + *
+       * The PEM encoded CA certificate chains for redis managed
+       * server authentication
+       * 
+ * + * + * repeated .google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + public com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority + .CertChain + getCaCerts(int index) { + if (caCertsBuilder_ == null) { + return caCerts_.get(index); + } else { + return caCertsBuilder_.getMessage(index); + } + } + /** + * + * + *
+       * The PEM encoded CA certificate chains for redis managed
+       * server authentication
+       * 
+ * + * + * repeated .google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + public Builder setCaCerts( + int index, + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority + .CertChain + value) { + if (caCertsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCaCertsIsMutable(); + caCerts_.set(index, value); + onChanged(); + } else { + caCertsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+       * The PEM encoded CA certificate chains for redis managed
+       * server authentication
+       * 
+ * + * + * repeated .google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + public Builder setCaCerts( + int index, + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority + .CertChain.Builder + builderForValue) { + if (caCertsBuilder_ == null) { + ensureCaCertsIsMutable(); + caCerts_.set(index, builderForValue.build()); + onChanged(); + } else { + caCertsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * The PEM encoded CA certificate chains for redis managed
+       * server authentication
+       * 
+ * + * + * repeated .google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + public Builder addCaCerts( + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority + .CertChain + value) { + if (caCertsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCaCertsIsMutable(); + caCerts_.add(value); + onChanged(); + } else { + caCertsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+       * The PEM encoded CA certificate chains for redis managed
+       * server authentication
+       * 
+ * + * + * repeated .google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + public Builder addCaCerts( + int index, + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority + .CertChain + value) { + if (caCertsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCaCertsIsMutable(); + caCerts_.add(index, value); + onChanged(); + } else { + caCertsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+       * The PEM encoded CA certificate chains for redis managed
+       * server authentication
+       * 
+ * + * + * repeated .google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + public Builder addCaCerts( + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority + .CertChain.Builder + builderForValue) { + if (caCertsBuilder_ == null) { + ensureCaCertsIsMutable(); + caCerts_.add(builderForValue.build()); + onChanged(); + } else { + caCertsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * The PEM encoded CA certificate chains for redis managed
+       * server authentication
+       * 
+ * + * + * repeated .google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + public Builder addCaCerts( + int index, + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority + .CertChain.Builder + builderForValue) { + if (caCertsBuilder_ == null) { + ensureCaCertsIsMutable(); + caCerts_.add(index, builderForValue.build()); + onChanged(); + } else { + caCertsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * The PEM encoded CA certificate chains for redis managed
+       * server authentication
+       * 
+ * + * + * repeated .google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + public Builder addAllCaCerts( + java.lang.Iterable< + ? extends + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.CertChain> + values) { + if (caCertsBuilder_ == null) { + ensureCaCertsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, caCerts_); + onChanged(); + } else { + caCertsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+       * The PEM encoded CA certificate chains for redis managed
+       * server authentication
+       * 
+ * + * + * repeated .google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + public Builder clearCaCerts() { + if (caCertsBuilder_ == null) { + caCerts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + caCertsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * The PEM encoded CA certificate chains for redis managed
+       * server authentication
+       * 
+ * + * + * repeated .google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + public Builder removeCaCerts(int index) { + if (caCertsBuilder_ == null) { + ensureCaCertsIsMutable(); + caCerts_.remove(index); + onChanged(); + } else { + caCertsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+       * The PEM encoded CA certificate chains for redis managed
+       * server authentication
+       * 
+ * + * + * repeated .google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + public com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority + .CertChain.Builder + getCaCertsBuilder(int index) { + return getCaCertsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * The PEM encoded CA certificate chains for redis managed
+       * server authentication
+       * 
+ * + * + * repeated .google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + public com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority + .CertChainOrBuilder + getCaCertsOrBuilder(int index) { + if (caCertsBuilder_ == null) { + return caCerts_.get(index); + } else { + return caCertsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+       * The PEM encoded CA certificate chains for redis managed
+       * server authentication
+       * 
+ * + * + * repeated .google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.CertChainOrBuilder> + getCaCertsOrBuilderList() { + if (caCertsBuilder_ != null) { + return caCertsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(caCerts_); + } + } + /** + * + * + *
+       * The PEM encoded CA certificate chains for redis managed
+       * server authentication
+       * 
+ * + * + * repeated .google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + public com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority + .CertChain.Builder + addCaCertsBuilder() { + return getCaCertsFieldBuilder() + .addBuilder( + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.CertChain.getDefaultInstance()); + } + /** + * + * + *
+       * The PEM encoded CA certificate chains for redis managed
+       * server authentication
+       * 
+ * + * + * repeated .google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + public com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority + .CertChain.Builder + addCaCertsBuilder(int index) { + return getCaCertsFieldBuilder() + .addBuilder( + index, + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.CertChain.getDefaultInstance()); + } + /** + * + * + *
+       * The PEM encoded CA certificate chains for redis managed
+       * server authentication
+       * 
+ * + * + * repeated .google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority.CertChain ca_certs = 1; + * + */ + public java.util.List< + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.CertChain.Builder> + getCaCertsBuilderList() { + return getCaCertsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.CertChain, + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.CertChain.Builder, + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.CertChainOrBuilder> + getCaCertsFieldBuilder() { + if (caCertsBuilder_ == null) { + caCertsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.CertChain, + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.CertChain.Builder, + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.CertChainOrBuilder>( + caCerts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + caCerts_ = null; + } + return caCertsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority) + private static final com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority(); + } + + public static com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ManagedCertificateAuthority parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int serverCaCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object serverCa_; + + public enum ServerCaCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + MANAGED_SERVER_CA(1), + SERVERCA_NOT_SET(0); + private final int value; + + private ServerCaCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ServerCaCase valueOf(int value) { + return forNumber(value); + } + + public static ServerCaCase forNumber(int value) { + switch (value) { + case 1: + return MANAGED_SERVER_CA; + case 0: + return SERVERCA_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ServerCaCase getServerCaCase() { + return ServerCaCase.forNumber(serverCaCase_); + } + + public static final int MANAGED_SERVER_CA_FIELD_NUMBER = 1; + /** + * + * .google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority managed_server_ca = 1; + * + * + * @return Whether the managedServerCa field is set. + */ + @java.lang.Override + public boolean hasManagedServerCa() { + return serverCaCase_ == 1; + } + /** + * + * .google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority managed_server_ca = 1; + * + * + * @return The managedServerCa. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority + getManagedServerCa() { + if (serverCaCase_ == 1) { + return (com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority) + serverCa_; + } + return com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority + .getDefaultInstance(); + } + /** + * + * .google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority managed_server_ca = 1; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthorityOrBuilder + getManagedServerCaOrBuilder() { + if (serverCaCase_ == 1) { + return (com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority) + serverCa_; + } + return com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority + .getDefaultInstance(); + } + + public static final int NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Identifier. Unique name of the resource in this scope including project,
+   * location and cluster using the form:
+   *     `projects/{project}/locations/{location}/clusters/{cluster}/certificateAuthority`
+   * 
+ * + * string name = 2 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Identifier. Unique name of the resource in this scope including project,
+   * location and cluster using the form:
+   *     `projects/{project}/locations/{location}/clusters/{cluster}/certificateAuthority`
+   * 
+ * + * string name = 2 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (serverCaCase_ == 1) { + output.writeMessage( + 1, + (com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority) + serverCa_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (serverCaCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority) + serverCa_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.cluster.v1beta1.CertificateAuthority)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority other = + (com.google.cloud.redis.cluster.v1beta1.CertificateAuthority) obj; + + if (!getName().equals(other.getName())) return false; + if (!getServerCaCase().equals(other.getServerCaCase())) return false; + switch (serverCaCase_) { + case 1: + if (!getManagedServerCa().equals(other.getManagedServerCa())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + switch (serverCaCase_) { + case 1: + hash = (37 * hash) + MANAGED_SERVER_CA_FIELD_NUMBER; + hash = (53 * hash) + getManagedServerCa().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1beta1.CertificateAuthority parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.CertificateAuthority parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.CertificateAuthority parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.CertificateAuthority parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.CertificateAuthority parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.CertificateAuthority parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.CertificateAuthority parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.CertificateAuthority parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.CertificateAuthority parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.CertificateAuthority parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.CertificateAuthority parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.CertificateAuthority parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Redis cluster certificate authority
+   * 
+ * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.CertificateAuthority} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1beta1.CertificateAuthority) + com.google.cloud.redis.cluster.v1beta1.CertificateAuthorityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_CertificateAuthority_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_CertificateAuthority_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.class, + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (managedServerCaBuilder_ != null) { + managedServerCaBuilder_.clear(); + } + name_ = ""; + serverCaCase_ = 0; + serverCa_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_CertificateAuthority_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.CertificateAuthority getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.CertificateAuthority build() { + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.CertificateAuthority buildPartial() { + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority result = + new com.google.cloud.redis.cluster.v1beta1.CertificateAuthority(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.redis.cluster.v1beta1.CertificateAuthority result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; + } + } + + private void buildPartialOneofs( + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority result) { + result.serverCaCase_ = serverCaCase_; + result.serverCa_ = this.serverCa_; + if (serverCaCase_ == 1 && managedServerCaBuilder_ != null) { + result.serverCa_ = managedServerCaBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1beta1.CertificateAuthority) { + return mergeFrom((com.google.cloud.redis.cluster.v1beta1.CertificateAuthority) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1beta1.CertificateAuthority other) { + if (other == com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000002; + onChanged(); + } + switch (other.getServerCaCase()) { + case MANAGED_SERVER_CA: + { + mergeManagedServerCa(other.getManagedServerCa()); + break; + } + case SERVERCA_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getManagedServerCaFieldBuilder().getBuilder(), extensionRegistry); + serverCaCase_ = 1; + break; + } // case 10 + case 18: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int serverCaCase_ = 0; + private java.lang.Object serverCa_; + + public ServerCaCase getServerCaCase() { + return ServerCaCase.forNumber(serverCaCase_); + } + + public Builder clearServerCa() { + serverCaCase_ = 0; + serverCa_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority, + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority + .Builder, + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthorityOrBuilder> + managedServerCaBuilder_; + /** + * + * .google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority managed_server_ca = 1; + * + * + * @return Whether the managedServerCa field is set. + */ + @java.lang.Override + public boolean hasManagedServerCa() { + return serverCaCase_ == 1; + } + /** + * + * .google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority managed_server_ca = 1; + * + * + * @return The managedServerCa. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority + getManagedServerCa() { + if (managedServerCaBuilder_ == null) { + if (serverCaCase_ == 1) { + return (com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority) + serverCa_; + } + return com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.getDefaultInstance(); + } else { + if (serverCaCase_ == 1) { + return managedServerCaBuilder_.getMessage(); + } + return com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.getDefaultInstance(); + } + } + /** + * + * .google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority managed_server_ca = 1; + * + */ + public Builder setManagedServerCa( + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority + value) { + if (managedServerCaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + serverCa_ = value; + onChanged(); + } else { + managedServerCaBuilder_.setMessage(value); + } + serverCaCase_ = 1; + return this; + } + /** + * + * .google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority managed_server_ca = 1; + * + */ + public Builder setManagedServerCa( + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority + .Builder + builderForValue) { + if (managedServerCaBuilder_ == null) { + serverCa_ = builderForValue.build(); + onChanged(); + } else { + managedServerCaBuilder_.setMessage(builderForValue.build()); + } + serverCaCase_ = 1; + return this; + } + /** + * + * .google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority managed_server_ca = 1; + * + */ + public Builder mergeManagedServerCa( + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority + value) { + if (managedServerCaBuilder_ == null) { + if (serverCaCase_ == 1 + && serverCa_ + != com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.getDefaultInstance()) { + serverCa_ = + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.newBuilder( + (com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority) + serverCa_) + .mergeFrom(value) + .buildPartial(); + } else { + serverCa_ = value; + } + onChanged(); + } else { + if (serverCaCase_ == 1) { + managedServerCaBuilder_.mergeFrom(value); + } else { + managedServerCaBuilder_.setMessage(value); + } + } + serverCaCase_ = 1; + return this; + } + /** + * + * .google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority managed_server_ca = 1; + * + */ + public Builder clearManagedServerCa() { + if (managedServerCaBuilder_ == null) { + if (serverCaCase_ == 1) { + serverCaCase_ = 0; + serverCa_ = null; + onChanged(); + } + } else { + if (serverCaCase_ == 1) { + serverCaCase_ = 0; + serverCa_ = null; + } + managedServerCaBuilder_.clear(); + } + return this; + } + /** + * + * .google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority managed_server_ca = 1; + * + */ + public com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority + .Builder + getManagedServerCaBuilder() { + return getManagedServerCaFieldBuilder().getBuilder(); + } + /** + * + * .google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority managed_server_ca = 1; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthorityOrBuilder + getManagedServerCaOrBuilder() { + if ((serverCaCase_ == 1) && (managedServerCaBuilder_ != null)) { + return managedServerCaBuilder_.getMessageOrBuilder(); + } else { + if (serverCaCase_ == 1) { + return (com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority) + serverCa_; + } + return com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.getDefaultInstance(); + } + } + /** + * + * .google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority managed_server_ca = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority, + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority + .Builder, + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthorityOrBuilder> + getManagedServerCaFieldBuilder() { + if (managedServerCaBuilder_ == null) { + if (!(serverCaCase_ == 1)) { + serverCa_ = + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.getDefaultInstance(); + } + managedServerCaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority, + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority.Builder, + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthorityOrBuilder>( + (com.google.cloud.redis.cluster.v1beta1.CertificateAuthority + .ManagedCertificateAuthority) + serverCa_, + getParentForChildren(), + isClean()); + serverCa_ = null; + } + serverCaCase_ = 1; + onChanged(); + return managedServerCaBuilder_; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Identifier. Unique name of the resource in this scope including project,
+     * location and cluster using the form:
+     *     `projects/{project}/locations/{location}/clusters/{cluster}/certificateAuthority`
+     * 
+ * + * string name = 2 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Identifier. Unique name of the resource in this scope including project,
+     * location and cluster using the form:
+     *     `projects/{project}/locations/{location}/clusters/{cluster}/certificateAuthority`
+     * 
+ * + * string name = 2 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Identifier. Unique name of the resource in this scope including project,
+     * location and cluster using the form:
+     *     `projects/{project}/locations/{location}/clusters/{cluster}/certificateAuthority`
+     * 
+ * + * string name = 2 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Identifier. Unique name of the resource in this scope including project,
+     * location and cluster using the form:
+     *     `projects/{project}/locations/{location}/clusters/{cluster}/certificateAuthority`
+     * 
+ * + * string name = 2 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Identifier. Unique name of the resource in this scope including project,
+     * location and cluster using the form:
+     *     `projects/{project}/locations/{location}/clusters/{cluster}/certificateAuthority`
+     * 
+ * + * string name = 2 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1beta1.CertificateAuthority) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1beta1.CertificateAuthority) + private static final com.google.cloud.redis.cluster.v1beta1.CertificateAuthority DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1beta1.CertificateAuthority(); + } + + public static com.google.cloud.redis.cluster.v1beta1.CertificateAuthority getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertificateAuthority parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.CertificateAuthority getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CertificateAuthorityName.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CertificateAuthorityName.java new file mode 100644 index 000000000000..8f439ba8b6bd --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CertificateAuthorityName.java @@ -0,0 +1,225 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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.cluster.v1beta1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class CertificateAuthorityName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_CLUSTER = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/clusters/{cluster}/certificateAuthority"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String cluster; + + @Deprecated + protected CertificateAuthorityName() { + project = null; + location = null; + cluster = null; + } + + private CertificateAuthorityName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + cluster = Preconditions.checkNotNull(builder.getCluster()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCluster() { + return cluster; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static CertificateAuthorityName of(String project, String location, String cluster) { + return newBuilder().setProject(project).setLocation(location).setCluster(cluster).build(); + } + + public static String format(String project, String location, String cluster) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setCluster(cluster) + .build() + .toString(); + } + + public static CertificateAuthorityName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_CLUSTER.validatedMatch( + formattedString, "CertificateAuthorityName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("cluster")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (CertificateAuthorityName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_CLUSTER.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (cluster != null) { + fieldMapBuilder.put("cluster", cluster); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_CLUSTER.instantiate( + "project", project, "location", location, "cluster", cluster); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + CertificateAuthorityName that = ((CertificateAuthorityName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.cluster, that.cluster); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(cluster); + return h; + } + + /** + * Builder for projects/{project}/locations/{location}/clusters/{cluster}/certificateAuthority. + */ + public static class Builder { + private String project; + private String location; + private String cluster; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCluster() { + return cluster; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setCluster(String cluster) { + this.cluster = cluster; + return this; + } + + private Builder(CertificateAuthorityName certificateAuthorityName) { + this.project = certificateAuthorityName.project; + this.location = certificateAuthorityName.location; + this.cluster = certificateAuthorityName.cluster; + } + + public CertificateAuthorityName build() { + return new CertificateAuthorityName(this); + } + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CertificateAuthorityOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CertificateAuthorityOrBuilder.java new file mode 100644 index 000000000000..cdfbf262e9b3 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CertificateAuthorityOrBuilder.java @@ -0,0 +1,82 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.redis.cluster.v1beta1; + +public interface CertificateAuthorityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1beta1.CertificateAuthority) + com.google.protobuf.MessageOrBuilder { + + /** + * + * .google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority managed_server_ca = 1; + * + * + * @return Whether the managedServerCa field is set. + */ + boolean hasManagedServerCa(); + /** + * + * .google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority managed_server_ca = 1; + * + * + * @return The managedServerCa. + */ + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority + getManagedServerCa(); + /** + * + * .google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthority managed_server_ca = 1; + * + */ + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ManagedCertificateAuthorityOrBuilder + getManagedServerCaOrBuilder(); + + /** + * + * + *
+   * Identifier. Unique name of the resource in this scope including project,
+   * location and cluster using the form:
+   *     `projects/{project}/locations/{location}/clusters/{cluster}/certificateAuthority`
+   * 
+ * + * string name = 2 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Identifier. Unique name of the resource in this scope including project,
+   * location and cluster using the form:
+   *     `projects/{project}/locations/{location}/clusters/{cluster}/certificateAuthority`
+   * 
+ * + * string name = 2 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + com.google.cloud.redis.cluster.v1beta1.CertificateAuthority.ServerCaCase getServerCaCase(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterProto.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterProto.java index cc010acc0513..b1a361553269 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterProto.java +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/CloudRedisClusterProto.java @@ -52,6 +52,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_redis_cluster_v1beta1_DeleteClusterRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_redis_cluster_v1beta1_DeleteClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1beta1_GetClusterCertificateAuthorityRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1beta1_GetClusterCertificateAuthorityRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_redis_cluster_v1beta1_Cluster_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -64,6 +68,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_redis_cluster_v1beta1_Cluster_StateInfo_UpdateInfo_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_redis_cluster_v1beta1_Cluster_StateInfo_UpdateInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1beta1_Cluster_RedisConfigsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1beta1_Cluster_RedisConfigsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_redis_cluster_v1beta1_PscConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -80,6 +88,34 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_redis_cluster_v1beta1_OperationMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_redis_cluster_v1beta1_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1beta1_CertificateAuthority_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1beta1_CertificateAuthority_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1beta1_CertificateAuthority_ManagedCertificateAuthority_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1beta1_CertificateAuthority_ManagedCertificateAuthority_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1beta1_CertificateAuthority_ManagedCertificateAuthority_CertChain_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1beta1_CertificateAuthority_ManagedCertificateAuthority_CertChain_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1beta1_ClusterPersistenceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1beta1_ClusterPersistenceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1beta1_ClusterPersistenceConfig_RDBConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1beta1_ClusterPersistenceConfig_RDBConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1beta1_ClusterPersistenceConfig_AOFConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1beta1_ClusterPersistenceConfig_AOFConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_redis_cluster_v1beta1_ZoneDistributionConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_redis_cluster_v1beta1_ZoneDistributionConfig_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -118,91 +154,160 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".googleapis.com/Cluster\"^\n\024DeleteCluster" + "Request\0222\n\004name\030\001 \001(\tB$\340A\002\372A\036\n\034redis.goo" + "gleapis.com/Cluster\022\022\n\nrequest_id\030\002 \001(\t\"" - + "\327\t\n\007Cluster\022\021\n\004name\030\001 \001(\tB\003\340A\002\0224\n\013create" - + "_time\030\003 \001(\0132\032.google.protobuf.TimestampB" - + "\003\340A\003\022E\n\005state\030\004 \001(\01621.google.cloud.redis" - + ".cluster.v1beta1.Cluster.StateB\003\340A\003\022\020\n\003u" - + "id\030\005 \001(\tB\003\340A\003\022\037\n\rreplica_count\030\010 \001(\005B\003\340A" - + "\001H\000\210\001\001\022V\n\022authorization_mode\030\013 \001(\01625.goo" - + "gle.cloud.redis.cluster.v1beta1.Authoriz" - + "ationModeB\003\340A\001\022_\n\027transit_encryption_mod" - + "e\030\014 \001(\01629.google.cloud.redis.cluster.v1b" - + "eta1.TransitEncryptionModeB\003\340A\001\022\031\n\007size_" - + "gb\030\r \001(\005B\003\340A\003H\001\210\001\001\022\035\n\013shard_count\030\016 \001(\005B" - + "\003\340A\002H\002\210\001\001\022G\n\013psc_configs\030\017 \003(\0132-.google." - + "cloud.redis.cluster.v1beta1.PscConfigB\003\340" - + "A\002\022W\n\023discovery_endpoints\030\020 \003(\01325.google" - + ".cloud.redis.cluster.v1beta1.DiscoveryEn" - + "dpointB\003\340A\003\022O\n\017psc_connections\030\021 \003(\01321.g" - + "oogle.cloud.redis.cluster.v1beta1.PscCon" - + "nectionB\003\340A\003\022N\n\nstate_info\030\022 \001(\01325.googl" - + "e.cloud.redis.cluster.v1beta1.Cluster.St" - + "ateInfoB\003\340A\003\032\357\001\n\tStateInfo\022W\n\013update_inf" - + "o\030\001 \001(\0132@.google.cloud.redis.cluster.v1b" - + "eta1.Cluster.StateInfo.UpdateInfoH\000\032\200\001\n\n" - + "UpdateInfo\022\037\n\022target_shard_count\030\001 \001(\005H\000" - + "\210\001\001\022!\n\024target_replica_count\030\002 \001(\005H\001\210\001\001B\025" - + "\n\023_target_shard_countB\027\n\025_target_replica" - + "_countB\006\n\004info\"T\n\005State\022\025\n\021STATE_UNSPECI" - + "FIED\020\000\022\014\n\010CREATING\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010UPDA" - + "TING\020\003\022\014\n\010DELETING\020\004:]\352AZ\n\034redis.googlea" - + "pis.com/Cluster\022:projects/{project}/loca" - + "tions/{location}/clusters/{cluster}B\020\n\016_" - + "replica_countB\n\n\010_size_gbB\016\n\014_shard_coun" - + "t\"!\n\tPscConfig\022\024\n\007network\030\002 \001(\tB\003\340A\002\"\204\001\n" - + "\021DiscoveryEndpoint\022\024\n\007address\030\001 \001(\tB\003\340A\003" - + "\022\021\n\004port\030\002 \001(\005B\003\340A\003\022F\n\npsc_config\030\003 \001(\0132" - + "-.google.cloud.redis.cluster.v1beta1.Psc" - + "ConfigB\003\340A\003\"\215\001\n\rPscConnection\022\036\n\021psc_con" - + "nection_id\030\001 \001(\tB\003\340A\003\022\024\n\007address\030\002 \001(\tB\003" - + "\340A\003\022\034\n\017forwarding_rule\030\003 \001(\tB\003\340A\003\022\027\n\npro" - + "ject_id\030\004 \001(\tB\003\340A\003\022\017\n\007network\030\005 \001(\t\"\200\002\n\021" - + "OperationMetadata\0224\n\013create_time\030\001 \001(\0132\032" - + ".google.protobuf.TimestampB\003\340A\003\0221\n\010end_t" - + "ime\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340" - + "A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340" - + "A\003\022\033\n\016status_message\030\005 \001(\tB\003\340A\003\022#\n\026reque" - + "sted_cancellation\030\006 \001(\010B\003\340A\003\022\030\n\013api_vers" - + "ion\030\007 \001(\tB\003\340A\003*^\n\021AuthorizationMode\022\031\n\025A" - + "UTH_MODE_UNSPECIFIED\020\000\022\026\n\022AUTH_MODE_IAM_" - + "AUTH\020\001\022\026\n\022AUTH_MODE_DISABLED\020\002*\231\001\n\025Trans" - + "itEncryptionMode\022\'\n#TRANSIT_ENCRYPTION_M" - + "ODE_UNSPECIFIED\020\000\022$\n TRANSIT_ENCRYPTION_" - + "MODE_DISABLED\020\001\0221\n-TRANSIT_ENCRYPTION_MO" - + "DE_SERVER_AUTHENTICATION\020\0022\221\t\n\021CloudRedi" - + "sCluster\022\305\001\n\014ListClusters\0227.google.cloud" - + ".redis.cluster.v1beta1.ListClustersReque" - + "st\0328.google.cloud.redis.cluster.v1beta1." - + "ListClustersResponse\"B\332A\006parent\202\323\344\223\0023\0221/" - + "v1beta1/{parent=projects/*/locations/*}/" - + "clusters\022\262\001\n\nGetCluster\0225.google.cloud.r" - + "edis.cluster.v1beta1.GetClusterRequest\032+" - + ".google.cloud.redis.cluster.v1beta1.Clus" - + "ter\"@\332A\004name\202\323\344\223\0023\0221/v1beta1/{name=proje" - + "cts/*/locations/*/clusters/*}\022\354\001\n\rUpdate" - + "Cluster\0228.google.cloud.redis.cluster.v1b" - + "eta1.UpdateClusterRequest\032\035.google.longr" - + "unning.Operation\"\201\001\312A\036\n\007Cluster\022\023google." - + "protobuf.Any\332A\023cluster,update_mask\202\323\344\223\002D" - + "29/v1beta1/{cluster.name=projects/*/loca" - + "tions/*/clusters/*}:\007cluster\022\331\001\n\rDeleteC" - + "luster\0228.google.cloud.redis.cluster.v1be" - + "ta1.DeleteClusterRequest\032\035.google.longru" - + "nning.Operation\"o\312A,\n\025google.protobuf.Em" - + "pty\022\023google.protobuf.Any\332A\004name\202\323\344\223\0023*1/" + + "h\n%GetClusterCertificateAuthorityRequest" + + "\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)redis.googleapis" + + ".com/CertificateAuthority\"\365\r\n\007Cluster\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\002\0224\n\013create_time\030\003 \001(\0132\032." + + "google.protobuf.TimestampB\003\340A\003\022E\n\005state\030" + + "\004 \001(\01621.google.cloud.redis.cluster.v1bet" + + "a1.Cluster.StateB\003\340A\003\022\020\n\003uid\030\005 \001(\tB\003\340A\003\022" + + "\037\n\rreplica_count\030\010 \001(\005B\003\340A\001H\000\210\001\001\022V\n\022auth" + + "orization_mode\030\013 \001(\01625.google.cloud.redi" + + "s.cluster.v1beta1.AuthorizationModeB\003\340A\001" + + "\022_\n\027transit_encryption_mode\030\014 \001(\01629.goog" + + "le.cloud.redis.cluster.v1beta1.TransitEn" + + "cryptionModeB\003\340A\001\022\031\n\007size_gb\030\r \001(\005B\003\340A\003H" + + "\001\210\001\001\022\035\n\013shard_count\030\016 \001(\005B\003\340A\002H\002\210\001\001\022G\n\013p" + + "sc_configs\030\017 \003(\0132-.google.cloud.redis.cl" + + "uster.v1beta1.PscConfigB\003\340A\002\022W\n\023discover" + + "y_endpoints\030\020 \003(\01325.google.cloud.redis.c" + + "luster.v1beta1.DiscoveryEndpointB\003\340A\003\022O\n" + + "\017psc_connections\030\021 \003(\01321.google.cloud.re" + + "dis.cluster.v1beta1.PscConnectionB\003\340A\003\022N" + + "\n\nstate_info\030\022 \001(\01325.google.cloud.redis." + + "cluster.v1beta1.Cluster.StateInfoB\003\340A\003\022D" + + "\n\tnode_type\030\023 \001(\0162,.google.cloud.redis.c" + + "luster.v1beta1.NodeTypeB\003\340A\001\022]\n\022persiste" + + "nce_config\030\024 \001(\0132<.google.cloud.redis.cl" + + "uster.v1beta1.ClusterPersistenceConfigB\003" + + "\340A\001\022Y\n\rredis_configs\030\025 \003(\0132=.google.clou" + + "d.redis.cluster.v1beta1.Cluster.RedisCon" + + "figsEntryB\003\340A\001\022!\n\017precise_size_gb\030\026 \001(\001B" + + "\003\340A\003H\003\210\001\001\022a\n\030zone_distribution_config\030\027 " + + "\001(\0132:.google.cloud.redis.cluster.v1beta1" + + ".ZoneDistributionConfigB\003\340A\001\022-\n\033deletion" + + "_protection_enabled\030\031 \001(\010B\003\340A\001H\004\210\001\001\032\357\001\n\t" + + "StateInfo\022W\n\013update_info\030\001 \001(\0132@.google." + + "cloud.redis.cluster.v1beta1.Cluster.Stat" + + "eInfo.UpdateInfoH\000\032\200\001\n\nUpdateInfo\022\037\n\022tar" + + "get_shard_count\030\001 \001(\005H\000\210\001\001\022!\n\024target_rep" + + "lica_count\030\002 \001(\005H\001\210\001\001B\025\n\023_target_shard_c" + + "ountB\027\n\025_target_replica_countB\006\n\004info\0323\n" + + "\021RedisConfigsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" + + "\030\002 \001(\t:\0028\001\"T\n\005State\022\025\n\021STATE_UNSPECIFIED" + + "\020\000\022\014\n\010CREATING\020\001\022\n\n\006ACTIVE\020\002\022\014\n\010UPDATING" + + "\020\003\022\014\n\010DELETING\020\004:]\352AZ\n\034redis.googleapis." + + "com/Cluster\022:projects/{project}/location" + + "s/{location}/clusters/{cluster}B\020\n\016_repl" + + "ica_countB\n\n\010_size_gbB\016\n\014_shard_countB\022\n" + + "\020_precise_size_gbB\036\n\034_deletion_protectio" + + "n_enabled\"!\n\tPscConfig\022\024\n\007network\030\002 \001(\tB" + + "\003\340A\002\"\204\001\n\021DiscoveryEndpoint\022\024\n\007address\030\001 " + + "\001(\tB\003\340A\003\022\021\n\004port\030\002 \001(\005B\003\340A\003\022F\n\npsc_confi" + + "g\030\003 \001(\0132-.google.cloud.redis.cluster.v1b" + + "eta1.PscConfigB\003\340A\003\"\215\001\n\rPscConnection\022\036\n" + + "\021psc_connection_id\030\001 \001(\tB\003\340A\003\022\024\n\007address" + + "\030\002 \001(\tB\003\340A\003\022\034\n\017forwarding_rule\030\003 \001(\tB\003\340A" + + "\003\022\027\n\nproject_id\030\004 \001(\tB\003\340A\003\022\017\n\007network\030\005 " + + "\001(\t\"\200\002\n\021OperationMetadata\0224\n\013create_time" + + "\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + + "1\n\010end_time\030\002 \001(\0132\032.google.protobuf.Time" + + "stampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030" + + "\004 \001(\tB\003\340A\003\022\033\n\016status_message\030\005 \001(\tB\003\340A\003\022" + + "#\n\026requested_cancellation\030\006 \001(\010B\003\340A\003\022\030\n\013" + + "api_version\030\007 \001(\tB\003\340A\003\"\337\003\n\024CertificateAu" + + "thority\022q\n\021managed_server_ca\030\001 \001(\0132T.goo" + + "gle.cloud.redis.cluster.v1beta1.Certific" + + "ateAuthority.ManagedCertificateAuthority" + + "H\000\022\021\n\004name\030\002 \001(\tB\003\340A\010\032\262\001\n\033ManagedCertifi" + + "cateAuthority\022p\n\010ca_certs\030\001 \003(\0132^.google" + + ".cloud.redis.cluster.v1beta1.Certificate" + + "Authority.ManagedCertificateAuthority.Ce" + + "rtChain\032!\n\tCertChain\022\024\n\014certificates\030\001 \003" + + "(\t:\177\352A|\n)redis.googleapis.com/Certificat" + + "eAuthority\022Oprojects/{project}/locations" + + "/{location}/clusters/{cluster}/certifica" + + "teAuthorityB\013\n\tserver_ca\"\240\007\n\030ClusterPers" + + "istenceConfig\022_\n\004mode\030\001 \001(\0162L.google.clo" + + "ud.redis.cluster.v1beta1.ClusterPersiste" + + "nceConfig.PersistenceModeB\003\340A\001\022_\n\nrdb_co" + + "nfig\030\002 \001(\0132F.google.cloud.redis.cluster." + + "v1beta1.ClusterPersistenceConfig.RDBConf" + + "igB\003\340A\001\022_\n\naof_config\030\003 \001(\0132F.google.clo" + + "ud.redis.cluster.v1beta1.ClusterPersiste" + + "nceConfig.AOFConfigB\003\340A\001\032\277\002\n\tRDBConfig\022w" + + "\n\023rdb_snapshot_period\030\001 \001(\0162U.google.clo" + + "ud.redis.cluster.v1beta1.ClusterPersiste" + + "nceConfig.RDBConfig.SnapshotPeriodB\003\340A\001\022" + + "@\n\027rdb_snapshot_start_time\030\002 \001(\0132\032.googl" + + "e.protobuf.TimestampB\003\340A\001\"w\n\016SnapshotPer" + + "iod\022\037\n\033SNAPSHOT_PERIOD_UNSPECIFIED\020\000\022\014\n\010" + + "ONE_HOUR\020\001\022\r\n\tSIX_HOURS\020\002\022\020\n\014TWELVE_HOUR" + + "S\020\003\022\025\n\021TWENTY_FOUR_HOURS\020\004\032\311\001\n\tAOFConfig" + + "\022m\n\014append_fsync\030\001 \001(\0162R.google.cloud.re" + + "dis.cluster.v1beta1.ClusterPersistenceCo" + + "nfig.AOFConfig.AppendFsyncB\003\340A\001\"M\n\013Appen" + + "dFsync\022\034\n\030APPEND_FSYNC_UNSPECIFIED\020\000\022\006\n\002" + + "NO\020\001\022\014\n\010EVERYSEC\020\002\022\n\n\006ALWAYS\020\003\"S\n\017Persis" + + "tenceMode\022 \n\034PERSISTENCE_MODE_UNSPECIFIE" + + "D\020\000\022\014\n\010DISABLED\020\001\022\007\n\003RDB\020\002\022\007\n\003AOF\020\003\"\360\001\n\026" + + "ZoneDistributionConfig\022b\n\004mode\030\001 \001(\0162O.g" + + "oogle.cloud.redis.cluster.v1beta1.ZoneDi" + + "stributionConfig.ZoneDistributionModeB\003\340" + + "A\001\022\021\n\004zone\030\002 \001(\tB\003\340A\001\"_\n\024ZoneDistributio" + + "nMode\022&\n\"ZONE_DISTRIBUTION_MODE_UNSPECIF" + + "IED\020\000\022\016\n\nMULTI_ZONE\020\001\022\017\n\013SINGLE_ZONE\020\002*^" + + "\n\021AuthorizationMode\022\031\n\025AUTH_MODE_UNSPECI" + + "FIED\020\000\022\026\n\022AUTH_MODE_IAM_AUTH\020\001\022\026\n\022AUTH_M" + + "ODE_DISABLED\020\002*\217\001\n\010NodeType\022\031\n\025NODE_TYPE" + + "_UNSPECIFIED\020\000\022\032\n\026REDIS_SHARED_CORE_NANO" + + "\020\001\022\030\n\024REDIS_HIGHMEM_MEDIUM\020\002\022\030\n\024REDIS_HI" + + "GHMEM_XLARGE\020\003\022\030\n\024REDIS_STANDARD_SMALL\020\004" + + "*\231\001\n\025TransitEncryptionMode\022\'\n#TRANSIT_EN" + + "CRYPTION_MODE_UNSPECIFIED\020\000\022$\n TRANSIT_E" + + "NCRYPTION_MODE_DISABLED\020\001\0221\n-TRANSIT_ENC" + + "RYPTION_MODE_SERVER_AUTHENTICATION\020\0022\220\013\n" + + "\021CloudRedisCluster\022\305\001\n\014ListClusters\0227.go" + + "ogle.cloud.redis.cluster.v1beta1.ListClu" + + "stersRequest\0328.google.cloud.redis.cluste" + + "r.v1beta1.ListClustersResponse\"B\332A\006paren" + + "t\202\323\344\223\0023\0221/v1beta1/{parent=projects/*/loc" + + "ations/*}/clusters\022\262\001\n\nGetCluster\0225.goog" + + "le.cloud.redis.cluster.v1beta1.GetCluste" + + "rRequest\032+.google.cloud.redis.cluster.v1" + + "beta1.Cluster\"@\332A\004name\202\323\344\223\0023\0221/v1beta1/{" + + "name=projects/*/locations/*/clusters/*}\022" + + "\354\001\n\rUpdateCluster\0228.google.cloud.redis.c" + + "luster.v1beta1.UpdateClusterRequest\032\035.go" + + "ogle.longrunning.Operation\"\201\001\312A\036\n\007Cluste" + + "r\022\023google.protobuf.Any\332A\023cluster,update_" + + "mask\202\323\344\223\002D29/v1beta1/{cluster.name=proje" + + "cts/*/locations/*/clusters/*}:\007cluster\022\331" + + "\001\n\rDeleteCluster\0228.google.cloud.redis.cl" + + "uster.v1beta1.DeleteClusterRequest\032\035.goo" + + "gle.longrunning.Operation\"o\312A,\n\025google.p" + + "rotobuf.Empty\022\023google.protobuf.Any\332A\004nam" + + "e\202\323\344\223\0023*1/v1beta1/{name=projects/*/locat" + + "ions/*/clusters/*}\022\351\001\n\rCreateCluster\0228.g" + + "oogle.cloud.redis.cluster.v1beta1.Create" + + "ClusterRequest\032\035.google.longrunning.Oper" + + "ation\"\177\312A\036\n\007Cluster\022\023google.protobuf.Any" + + "\332A\031parent,cluster,cluster_id\202\323\344\223\002<\"1/v1b" + + "eta1/{parent=projects/*/locations/*}/clu" + + "sters:\007cluster\022\374\001\n\036GetClusterCertificate" + + "Authority\022I.google.cloud.redis.cluster.v" + + "1beta1.GetClusterCertificateAuthorityReq" + + "uest\0328.google.cloud.redis.cluster.v1beta" + + "1.CertificateAuthority\"U\332A\004name\202\323\344\223\002H\022F/" + "v1beta1/{name=projects/*/locations/*/clu" - + "sters/*}\022\351\001\n\rCreateCluster\0228.google.clou" - + "d.redis.cluster.v1beta1.CreateClusterReq" - + "uest\032\035.google.longrunning.Operation\"\177\312A\036" - + "\n\007Cluster\022\023google.protobuf.Any\332A\031parent," - + "cluster,cluster_id\202\323\344\223\002<\"1/v1beta1/{pare" - + "nt=projects/*/locations/*}/clusters:\007clu" - + "ster\032H\312A\024redis.googleapis.com\322A.https://" - + "www.googleapis.com/auth/cloud-platformB\204" - + "\001\n&com.google.cloud.redis.cluster.v1beta" - + "1B\026CloudRedisClusterProtoP\001Z@cloud.googl" - + "e.com/go/redis/cluster/apiv1beta1/cluste" - + "rpb;clusterpbb\006proto3" + + "sters/*/certificateAuthority}\032H\312A\024redis." + + "googleapis.com\322A.https://www.googleapis." + + "com/auth/cloud-platformB\255\001\n&com.google.c" + + "loud.redis.cluster.v1beta1B\026CloudRedisCl" + + "usterProtoP\001Z@cloud.google.com/go/redis/" + + "cluster/apiv1beta1/clusterpb;clusterpb\352\002" + + "&Google::Cloud::Redis::Cluster::V1beta1b" + + "\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -266,8 +371,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", "RequestId", }); - internal_static_google_cloud_redis_cluster_v1beta1_Cluster_descriptor = + internal_static_google_cloud_redis_cluster_v1beta1_GetClusterCertificateAuthorityRequest_descriptor = getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_redis_cluster_v1beta1_GetClusterCertificateAuthorityRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1beta1_GetClusterCertificateAuthorityRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_redis_cluster_v1beta1_Cluster_descriptor = + getDescriptor().getMessageTypes().get(7); internal_static_google_cloud_redis_cluster_v1beta1_Cluster_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1beta1_Cluster_descriptor, @@ -285,6 +398,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DiscoveryEndpoints", "PscConnections", "StateInfo", + "NodeType", + "PersistenceConfig", + "RedisConfigs", + "PreciseSizeGb", + "ZoneDistributionConfig", + "DeletionProtectionEnabled", }); internal_static_google_cloud_redis_cluster_v1beta1_Cluster_StateInfo_descriptor = internal_static_google_cloud_redis_cluster_v1beta1_Cluster_descriptor @@ -306,8 +425,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "TargetShardCount", "TargetReplicaCount", }); + internal_static_google_cloud_redis_cluster_v1beta1_Cluster_RedisConfigsEntry_descriptor = + internal_static_google_cloud_redis_cluster_v1beta1_Cluster_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_redis_cluster_v1beta1_Cluster_RedisConfigsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1beta1_Cluster_RedisConfigsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); internal_static_google_cloud_redis_cluster_v1beta1_PscConfig_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(8); internal_static_google_cloud_redis_cluster_v1beta1_PscConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1beta1_PscConfig_descriptor, @@ -315,7 +444,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Network", }); internal_static_google_cloud_redis_cluster_v1beta1_DiscoveryEndpoint_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(9); internal_static_google_cloud_redis_cluster_v1beta1_DiscoveryEndpoint_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1beta1_DiscoveryEndpoint_descriptor, @@ -323,7 +452,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Address", "Port", "PscConfig", }); internal_static_google_cloud_redis_cluster_v1beta1_PscConnection_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(10); internal_static_google_cloud_redis_cluster_v1beta1_PscConnection_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1beta1_PscConnection_descriptor, @@ -331,7 +460,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PscConnectionId", "Address", "ForwardingRule", "ProjectId", "Network", }); internal_static_google_cloud_redis_cluster_v1beta1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_redis_cluster_v1beta1_OperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_redis_cluster_v1beta1_OperationMetadata_descriptor, @@ -344,6 +473,70 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RequestedCancellation", "ApiVersion", }); + internal_static_google_cloud_redis_cluster_v1beta1_CertificateAuthority_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_redis_cluster_v1beta1_CertificateAuthority_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1beta1_CertificateAuthority_descriptor, + new java.lang.String[] { + "ManagedServerCa", "Name", "ServerCa", + }); + internal_static_google_cloud_redis_cluster_v1beta1_CertificateAuthority_ManagedCertificateAuthority_descriptor = + internal_static_google_cloud_redis_cluster_v1beta1_CertificateAuthority_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_redis_cluster_v1beta1_CertificateAuthority_ManagedCertificateAuthority_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1beta1_CertificateAuthority_ManagedCertificateAuthority_descriptor, + new java.lang.String[] { + "CaCerts", + }); + internal_static_google_cloud_redis_cluster_v1beta1_CertificateAuthority_ManagedCertificateAuthority_CertChain_descriptor = + internal_static_google_cloud_redis_cluster_v1beta1_CertificateAuthority_ManagedCertificateAuthority_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_redis_cluster_v1beta1_CertificateAuthority_ManagedCertificateAuthority_CertChain_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1beta1_CertificateAuthority_ManagedCertificateAuthority_CertChain_descriptor, + new java.lang.String[] { + "Certificates", + }); + internal_static_google_cloud_redis_cluster_v1beta1_ClusterPersistenceConfig_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_redis_cluster_v1beta1_ClusterPersistenceConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1beta1_ClusterPersistenceConfig_descriptor, + new java.lang.String[] { + "Mode", "RdbConfig", "AofConfig", + }); + internal_static_google_cloud_redis_cluster_v1beta1_ClusterPersistenceConfig_RDBConfig_descriptor = + internal_static_google_cloud_redis_cluster_v1beta1_ClusterPersistenceConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_redis_cluster_v1beta1_ClusterPersistenceConfig_RDBConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1beta1_ClusterPersistenceConfig_RDBConfig_descriptor, + new java.lang.String[] { + "RdbSnapshotPeriod", "RdbSnapshotStartTime", + }); + internal_static_google_cloud_redis_cluster_v1beta1_ClusterPersistenceConfig_AOFConfig_descriptor = + internal_static_google_cloud_redis_cluster_v1beta1_ClusterPersistenceConfig_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_redis_cluster_v1beta1_ClusterPersistenceConfig_AOFConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1beta1_ClusterPersistenceConfig_AOFConfig_descriptor, + new java.lang.String[] { + "AppendFsync", + }); + internal_static_google_cloud_redis_cluster_v1beta1_ZoneDistributionConfig_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_redis_cluster_v1beta1_ZoneDistributionConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_redis_cluster_v1beta1_ZoneDistributionConfig_descriptor, + new java.lang.String[] { + "Mode", "Zone", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/Cluster.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/Cluster.java index 6132b222b12e..593ca48a444f 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/Cluster.java +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/Cluster.java @@ -47,6 +47,7 @@ private Cluster() { pscConfigs_ = java.util.Collections.emptyList(); discoveryEndpoints_ = java.util.Collections.emptyList(); pscConnections_ = java.util.Collections.emptyList(); + nodeType_ = 0; } @java.lang.Override @@ -60,6 +61,18 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_cloud_redis_cluster_v1beta1_Cluster_descriptor; } + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 21: + return internalGetRedisConfigs(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { @@ -2236,7 +2249,8 @@ public com.google.cloud.redis.cluster.v1beta1.TransitEncryptionMode getTransitEn * * *
-   * Output only. Redis memory size in GB for the entire cluster.
+   * Output only. Redis memory size in GB for the entire cluster rounded up to
+   * the next integer.
    * 
* * optional int32 size_gb = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2251,7 +2265,8 @@ public boolean hasSizeGb() { * * *
-   * Output only. Redis memory size in GB for the entire cluster.
+   * Output only. Redis memory size in GB for the entire cluster rounded up to
+   * the next integer.
    * 
* * optional int32 size_gb = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2621,6 +2636,342 @@ public com.google.cloud.redis.cluster.v1beta1.Cluster.StateInfoOrBuilder getStat : stateInfo_; } + public static final int NODE_TYPE_FIELD_NUMBER = 19; + private int nodeType_ = 0; + /** + * + * + *
+   * Optional. The type of a redis node in the cluster. NodeType determines the
+   * underlying machine-type of a redis node.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.NodeType node_type = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for nodeType. + */ + @java.lang.Override + public int getNodeTypeValue() { + return nodeType_; + } + /** + * + * + *
+   * Optional. The type of a redis node in the cluster. NodeType determines the
+   * underlying machine-type of a redis node.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.NodeType node_type = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The nodeType. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.NodeType getNodeType() { + com.google.cloud.redis.cluster.v1beta1.NodeType result = + com.google.cloud.redis.cluster.v1beta1.NodeType.forNumber(nodeType_); + return result == null ? com.google.cloud.redis.cluster.v1beta1.NodeType.UNRECOGNIZED : result; + } + + public static final int PERSISTENCE_CONFIG_FIELD_NUMBER = 20; + private com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig persistenceConfig_; + /** + * + * + *
+   * Optional. Persistence config (RDB, AOF) for the cluster.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the persistenceConfig field is set. + */ + @java.lang.Override + public boolean hasPersistenceConfig() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+   * Optional. Persistence config (RDB, AOF) for the cluster.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The persistenceConfig. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig getPersistenceConfig() { + return persistenceConfig_ == null + ? com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.getDefaultInstance() + : persistenceConfig_; + } + /** + * + * + *
+   * Optional. Persistence config (RDB, AOF) for the cluster.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfigOrBuilder + getPersistenceConfigOrBuilder() { + return persistenceConfig_ == null + ? com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.getDefaultInstance() + : persistenceConfig_; + } + + public static final int REDIS_CONFIGS_FIELD_NUMBER = 21; + + private static final class RedisConfigsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_Cluster_RedisConfigsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField redisConfigs_; + + private com.google.protobuf.MapField + internalGetRedisConfigs() { + if (redisConfigs_ == null) { + return com.google.protobuf.MapField.emptyMapField( + RedisConfigsDefaultEntryHolder.defaultEntry); + } + return redisConfigs_; + } + + public int getRedisConfigsCount() { + return internalGetRedisConfigs().getMap().size(); + } + /** + * + * + *
+   * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
+   * 
+ * + * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsRedisConfigs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetRedisConfigs().getMap().containsKey(key); + } + /** Use {@link #getRedisConfigsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getRedisConfigs() { + return getRedisConfigsMap(); + } + /** + * + * + *
+   * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
+   * 
+ * + * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getRedisConfigsMap() { + return internalGetRedisConfigs().getMap(); + } + /** + * + * + *
+   * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
+   * 
+ * + * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getRedisConfigsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetRedisConfigs().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
+   * 
+ * + * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getRedisConfigsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetRedisConfigs().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int PRECISE_SIZE_GB_FIELD_NUMBER = 22; + private double preciseSizeGb_ = 0D; + /** + * + * + *
+   * Output only. Precise value of redis memory size in GB for the entire
+   * cluster.
+   * 
+ * + * optional double precise_size_gb = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the preciseSizeGb field is set. + */ + @java.lang.Override + public boolean hasPreciseSizeGb() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
+   * Output only. Precise value of redis memory size in GB for the entire
+   * cluster.
+   * 
+ * + * optional double precise_size_gb = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The preciseSizeGb. + */ + @java.lang.Override + public double getPreciseSizeGb() { + return preciseSizeGb_; + } + + public static final int ZONE_DISTRIBUTION_CONFIG_FIELD_NUMBER = 23; + private com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig zoneDistributionConfig_; + /** + * + * + *
+   * Optional. This config will be used to determine how the customer wants us
+   * to distribute cluster resources within the region.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the zoneDistributionConfig field is set. + */ + @java.lang.Override + public boolean hasZoneDistributionConfig() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
+   * Optional. This config will be used to determine how the customer wants us
+   * to distribute cluster resources within the region.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The zoneDistributionConfig. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig getZoneDistributionConfig() { + return zoneDistributionConfig_ == null + ? com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.getDefaultInstance() + : zoneDistributionConfig_; + } + /** + * + * + *
+   * Optional. This config will be used to determine how the customer wants us
+   * to distribute cluster resources within the region.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfigOrBuilder + getZoneDistributionConfigOrBuilder() { + return zoneDistributionConfig_ == null + ? com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.getDefaultInstance() + : zoneDistributionConfig_; + } + + public static final int DELETION_PROTECTION_ENABLED_FIELD_NUMBER = 25; + private boolean deletionProtectionEnabled_ = false; + /** + * + * + *
+   * Optional. The delete operation will fail when the value is set to true.
+   * 
+ * + * optional bool deletion_protection_enabled = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the deletionProtectionEnabled field is set. + */ + @java.lang.Override + public boolean hasDeletionProtectionEnabled() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * + * + *
+   * Optional. The delete operation will fail when the value is set to true.
+   * 
+ * + * optional bool deletion_protection_enabled = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deletionProtectionEnabled. + */ + @java.lang.Override + public boolean getDeletionProtectionEnabled() { + return deletionProtectionEnabled_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2680,6 +3031,24 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(18, getStateInfo()); } + if (nodeType_ + != com.google.cloud.redis.cluster.v1beta1.NodeType.NODE_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(19, nodeType_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(20, getPersistenceConfig()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetRedisConfigs(), RedisConfigsDefaultEntryHolder.defaultEntry, 21); + if (((bitField0_ & 0x00000040) != 0)) { + output.writeDouble(22, preciseSizeGb_); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(23, getZoneDistributionConfig()); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeBool(25, deletionProtectionEnabled_); + } getUnknownFields().writeTo(output); } @@ -2735,6 +3104,33 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getStateInfo()); } + if (nodeType_ + != com.google.cloud.redis.cluster.v1beta1.NodeType.NODE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(19, nodeType_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getPersistenceConfig()); + } + for (java.util.Map.Entry entry : + internalGetRedisConfigs().getMap().entrySet()) { + com.google.protobuf.MapEntry redisConfigs__ = + RedisConfigsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, redisConfigs__); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(22, preciseSizeGb_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(23, getZoneDistributionConfig()); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(25, deletionProtectionEnabled_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2779,6 +3175,25 @@ public boolean equals(final java.lang.Object obj) { if (hasStateInfo()) { if (!getStateInfo().equals(other.getStateInfo())) return false; } + if (nodeType_ != other.nodeType_) return false; + if (hasPersistenceConfig() != other.hasPersistenceConfig()) return false; + if (hasPersistenceConfig()) { + if (!getPersistenceConfig().equals(other.getPersistenceConfig())) return false; + } + if (!internalGetRedisConfigs().equals(other.internalGetRedisConfigs())) return false; + if (hasPreciseSizeGb() != other.hasPreciseSizeGb()) return false; + if (hasPreciseSizeGb()) { + if (java.lang.Double.doubleToLongBits(getPreciseSizeGb()) + != java.lang.Double.doubleToLongBits(other.getPreciseSizeGb())) return false; + } + if (hasZoneDistributionConfig() != other.hasZoneDistributionConfig()) return false; + if (hasZoneDistributionConfig()) { + if (!getZoneDistributionConfig().equals(other.getZoneDistributionConfig())) return false; + } + if (hasDeletionProtectionEnabled() != other.hasDeletionProtectionEnabled()) return false; + if (hasDeletionProtectionEnabled()) { + if (getDeletionProtectionEnabled() != other.getDeletionProtectionEnabled()) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2832,6 +3247,31 @@ public int hashCode() { hash = (37 * hash) + STATE_INFO_FIELD_NUMBER; hash = (53 * hash) + getStateInfo().hashCode(); } + hash = (37 * hash) + NODE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + nodeType_; + if (hasPersistenceConfig()) { + hash = (37 * hash) + PERSISTENCE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getPersistenceConfig().hashCode(); + } + if (!internalGetRedisConfigs().getMap().isEmpty()) { + hash = (37 * hash) + REDIS_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + internalGetRedisConfigs().hashCode(); + } + if (hasPreciseSizeGb()) { + hash = (37 * hash) + PRECISE_SIZE_GB_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getPreciseSizeGb())); + } + if (hasZoneDistributionConfig()) { + hash = (37 * hash) + ZONE_DISTRIBUTION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getZoneDistributionConfig().hashCode(); + } + if (hasDeletionProtectionEnabled()) { + hash = (37 * hash) + DELETION_PROTECTION_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDeletionProtectionEnabled()); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2950,6 +3390,28 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_cloud_redis_cluster_v1beta1_Cluster_descriptor; } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 21: + return internalGetRedisConfigs(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 21: + return internalGetMutableRedisConfigs(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { @@ -2977,6 +3439,8 @@ private void maybeForceBuilderInitialization() { getDiscoveryEndpointsFieldBuilder(); getPscConnectionsFieldBuilder(); getStateInfoFieldBuilder(); + getPersistenceConfigFieldBuilder(); + getZoneDistributionConfigFieldBuilder(); } } @@ -3023,6 +3487,20 @@ public Builder clear() { stateInfoBuilder_.dispose(); stateInfoBuilder_ = null; } + nodeType_ = 0; + persistenceConfig_ = null; + if (persistenceConfigBuilder_ != null) { + persistenceConfigBuilder_.dispose(); + persistenceConfigBuilder_ = null; + } + internalGetMutableRedisConfigs().clear(); + preciseSizeGb_ = 0D; + zoneDistributionConfig_ = null; + if (zoneDistributionConfigBuilder_ != null) { + zoneDistributionConfigBuilder_.dispose(); + zoneDistributionConfigBuilder_ = null; + } + deletionProtectionEnabled_ = false; return this; } @@ -3126,6 +3604,35 @@ private void buildPartial0(com.google.cloud.redis.cluster.v1beta1.Cluster result result.stateInfo_ = stateInfoBuilder_ == null ? stateInfo_ : stateInfoBuilder_.build(); to_bitField0_ |= 0x00000010; } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.nodeType_ = nodeType_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.persistenceConfig_ = + persistenceConfigBuilder_ == null + ? persistenceConfig_ + : persistenceConfigBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.redisConfigs_ = internalGetRedisConfigs(); + result.redisConfigs_.makeImmutable(); + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.preciseSizeGb_ = preciseSizeGb_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.zoneDistributionConfig_ = + zoneDistributionConfigBuilder_ == null + ? zoneDistributionConfig_ + : zoneDistributionConfigBuilder_.build(); + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.deletionProtectionEnabled_ = deletionProtectionEnabled_; + to_bitField0_ |= 0x00000100; + } result.bitField0_ |= to_bitField0_; } @@ -3289,6 +3796,23 @@ public Builder mergeFrom(com.google.cloud.redis.cluster.v1beta1.Cluster other) { if (other.hasStateInfo()) { mergeStateInfo(other.getStateInfo()); } + if (other.nodeType_ != 0) { + setNodeTypeValue(other.getNodeTypeValue()); + } + if (other.hasPersistenceConfig()) { + mergePersistenceConfig(other.getPersistenceConfig()); + } + internalGetMutableRedisConfigs().mergeFrom(other.internalGetRedisConfigs()); + bitField0_ |= 0x00008000; + if (other.hasPreciseSizeGb()) { + setPreciseSizeGb(other.getPreciseSizeGb()); + } + if (other.hasZoneDistributionConfig()) { + mergeZoneDistributionConfig(other.getZoneDistributionConfig()); + } + if (other.hasDeletionProtectionEnabled()) { + setDeletionProtectionEnabled(other.getDeletionProtectionEnabled()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3417,6 +3941,50 @@ public Builder mergeFrom( bitField0_ |= 0x00001000; break; } // case 146 + case 152: + { + nodeType_ = input.readEnum(); + bitField0_ |= 0x00002000; + break; + } // case 152 + case 162: + { + input.readMessage( + getPersistenceConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00004000; + break; + } // case 162 + case 170: + { + com.google.protobuf.MapEntry redisConfigs__ = + input.readMessage( + RedisConfigsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableRedisConfigs() + .getMutableMap() + .put(redisConfigs__.getKey(), redisConfigs__.getValue()); + bitField0_ |= 0x00008000; + break; + } // case 170 + case 177: + { + preciseSizeGb_ = input.readDouble(); + bitField0_ |= 0x00010000; + break; + } // case 177 + case 186: + { + input.readMessage( + getZoneDistributionConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00020000; + break; + } // case 186 + case 200: + { + deletionProtectionEnabled_ = input.readBool(); + bitField0_ |= 0x00040000; + break; + } // case 200 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4258,7 +4826,8 @@ public Builder clearTransitEncryptionMode() { * * *
-     * Output only. Redis memory size in GB for the entire cluster.
+     * Output only. Redis memory size in GB for the entire cluster rounded up to
+     * the next integer.
      * 
* * optional int32 size_gb = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4273,7 +4842,8 @@ public boolean hasSizeGb() { * * *
-     * Output only. Redis memory size in GB for the entire cluster.
+     * Output only. Redis memory size in GB for the entire cluster rounded up to
+     * the next integer.
      * 
* * optional int32 size_gb = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4288,7 +4858,8 @@ public int getSizeGb() { * * *
-     * Output only. Redis memory size in GB for the entire cluster.
+     * Output only. Redis memory size in GB for the entire cluster rounded up to
+     * the next integer.
      * 
* * optional int32 size_gb = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4307,7 +4878,8 @@ public Builder setSizeGb(int value) { * * *
-     * Output only. Redis memory size in GB for the entire cluster.
+     * Output only. Redis memory size in GB for the entire cluster rounded up to
+     * the next integer.
      * 
* * optional int32 size_gb = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -5863,6 +6435,866 @@ public com.google.cloud.redis.cluster.v1beta1.Cluster.StateInfo.Builder getState return stateInfoBuilder_; } + private int nodeType_ = 0; + /** + * + * + *
+     * Optional. The type of a redis node in the cluster. NodeType determines the
+     * underlying machine-type of a redis node.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.NodeType node_type = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for nodeType. + */ + @java.lang.Override + public int getNodeTypeValue() { + return nodeType_; + } + /** + * + * + *
+     * Optional. The type of a redis node in the cluster. NodeType determines the
+     * underlying machine-type of a redis node.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.NodeType node_type = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for nodeType to set. + * @return This builder for chaining. + */ + public Builder setNodeTypeValue(int value) { + nodeType_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The type of a redis node in the cluster. NodeType determines the
+     * underlying machine-type of a redis node.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.NodeType node_type = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The nodeType. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.NodeType getNodeType() { + com.google.cloud.redis.cluster.v1beta1.NodeType result = + com.google.cloud.redis.cluster.v1beta1.NodeType.forNumber(nodeType_); + return result == null ? com.google.cloud.redis.cluster.v1beta1.NodeType.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Optional. The type of a redis node in the cluster. NodeType determines the
+     * underlying machine-type of a redis node.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.NodeType node_type = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The nodeType to set. + * @return This builder for chaining. + */ + public Builder setNodeType(com.google.cloud.redis.cluster.v1beta1.NodeType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00002000; + nodeType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The type of a redis node in the cluster. NodeType determines the
+     * underlying machine-type of a redis node.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.NodeType node_type = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearNodeType() { + bitField0_ = (bitField0_ & ~0x00002000); + nodeType_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig persistenceConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig, + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.Builder, + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfigOrBuilder> + persistenceConfigBuilder_; + /** + * + * + *
+     * Optional. Persistence config (RDB, AOF) for the cluster.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the persistenceConfig field is set. + */ + public boolean hasPersistenceConfig() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + * + * + *
+     * Optional. Persistence config (RDB, AOF) for the cluster.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The persistenceConfig. + */ + public com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig getPersistenceConfig() { + if (persistenceConfigBuilder_ == null) { + return persistenceConfig_ == null + ? com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.getDefaultInstance() + : persistenceConfig_; + } else { + return persistenceConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Persistence config (RDB, AOF) for the cluster.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPersistenceConfig( + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig value) { + if (persistenceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + persistenceConfig_ = value; + } else { + persistenceConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Persistence config (RDB, AOF) for the cluster.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPersistenceConfig( + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.Builder builderForValue) { + if (persistenceConfigBuilder_ == null) { + persistenceConfig_ = builderForValue.build(); + } else { + persistenceConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Persistence config (RDB, AOF) for the cluster.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergePersistenceConfig( + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig value) { + if (persistenceConfigBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0) + && persistenceConfig_ != null + && persistenceConfig_ + != com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig + .getDefaultInstance()) { + getPersistenceConfigBuilder().mergeFrom(value); + } else { + persistenceConfig_ = value; + } + } else { + persistenceConfigBuilder_.mergeFrom(value); + } + if (persistenceConfig_ != null) { + bitField0_ |= 0x00004000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Persistence config (RDB, AOF) for the cluster.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPersistenceConfig() { + bitField0_ = (bitField0_ & ~0x00004000); + persistenceConfig_ = null; + if (persistenceConfigBuilder_ != null) { + persistenceConfigBuilder_.dispose(); + persistenceConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Persistence config (RDB, AOF) for the cluster.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.Builder + getPersistenceConfigBuilder() { + bitField0_ |= 0x00004000; + onChanged(); + return getPersistenceConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Persistence config (RDB, AOF) for the cluster.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfigOrBuilder + getPersistenceConfigOrBuilder() { + if (persistenceConfigBuilder_ != null) { + return persistenceConfigBuilder_.getMessageOrBuilder(); + } else { + return persistenceConfig_ == null + ? com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.getDefaultInstance() + : persistenceConfig_; + } + } + /** + * + * + *
+     * Optional. Persistence config (RDB, AOF) for the cluster.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig, + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.Builder, + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfigOrBuilder> + getPersistenceConfigFieldBuilder() { + if (persistenceConfigBuilder_ == null) { + persistenceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig, + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.Builder, + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfigOrBuilder>( + getPersistenceConfig(), getParentForChildren(), isClean()); + persistenceConfig_ = null; + } + return persistenceConfigBuilder_; + } + + private com.google.protobuf.MapField redisConfigs_; + + private com.google.protobuf.MapField + internalGetRedisConfigs() { + if (redisConfigs_ == null) { + return com.google.protobuf.MapField.emptyMapField( + RedisConfigsDefaultEntryHolder.defaultEntry); + } + return redisConfigs_; + } + + private com.google.protobuf.MapField + internalGetMutableRedisConfigs() { + if (redisConfigs_ == null) { + redisConfigs_ = + com.google.protobuf.MapField.newMapField(RedisConfigsDefaultEntryHolder.defaultEntry); + } + if (!redisConfigs_.isMutable()) { + redisConfigs_ = redisConfigs_.copy(); + } + bitField0_ |= 0x00008000; + onChanged(); + return redisConfigs_; + } + + public int getRedisConfigsCount() { + return internalGetRedisConfigs().getMap().size(); + } + /** + * + * + *
+     * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
+     * 
+ * + * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsRedisConfigs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetRedisConfigs().getMap().containsKey(key); + } + /** Use {@link #getRedisConfigsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getRedisConfigs() { + return getRedisConfigsMap(); + } + /** + * + * + *
+     * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
+     * 
+ * + * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getRedisConfigsMap() { + return internalGetRedisConfigs().getMap(); + } + /** + * + * + *
+     * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
+     * 
+ * + * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getRedisConfigsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetRedisConfigs().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
+     * 
+ * + * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getRedisConfigsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetRedisConfigs().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearRedisConfigs() { + bitField0_ = (bitField0_ & ~0x00008000); + internalGetMutableRedisConfigs().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
+     * 
+ * + * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeRedisConfigs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableRedisConfigs().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableRedisConfigs() { + bitField0_ |= 0x00008000; + return internalGetMutableRedisConfigs().getMutableMap(); + } + /** + * + * + *
+     * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
+     * 
+ * + * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putRedisConfigs(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableRedisConfigs().getMutableMap().put(key, value); + bitField0_ |= 0x00008000; + return this; + } + /** + * + * + *
+     * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
+     * 
+ * + * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllRedisConfigs(java.util.Map values) { + internalGetMutableRedisConfigs().getMutableMap().putAll(values); + bitField0_ |= 0x00008000; + return this; + } + + private double preciseSizeGb_; + /** + * + * + *
+     * Output only. Precise value of redis memory size in GB for the entire
+     * cluster.
+     * 
+ * + * optional double precise_size_gb = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the preciseSizeGb field is set. + */ + @java.lang.Override + public boolean hasPreciseSizeGb() { + return ((bitField0_ & 0x00010000) != 0); + } + /** + * + * + *
+     * Output only. Precise value of redis memory size in GB for the entire
+     * cluster.
+     * 
+ * + * optional double precise_size_gb = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The preciseSizeGb. + */ + @java.lang.Override + public double getPreciseSizeGb() { + return preciseSizeGb_; + } + /** + * + * + *
+     * Output only. Precise value of redis memory size in GB for the entire
+     * cluster.
+     * 
+ * + * optional double precise_size_gb = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The preciseSizeGb to set. + * @return This builder for chaining. + */ + public Builder setPreciseSizeGb(double value) { + + preciseSizeGb_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Precise value of redis memory size in GB for the entire
+     * cluster.
+     * 
+ * + * optional double precise_size_gb = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearPreciseSizeGb() { + bitField0_ = (bitField0_ & ~0x00010000); + preciseSizeGb_ = 0D; + onChanged(); + return this; + } + + private com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig zoneDistributionConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig, + com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.Builder, + com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfigOrBuilder> + zoneDistributionConfigBuilder_; + /** + * + * + *
+     * Optional. This config will be used to determine how the customer wants us
+     * to distribute cluster resources within the region.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the zoneDistributionConfig field is set. + */ + public boolean hasZoneDistributionConfig() { + return ((bitField0_ & 0x00020000) != 0); + } + /** + * + * + *
+     * Optional. This config will be used to determine how the customer wants us
+     * to distribute cluster resources within the region.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The zoneDistributionConfig. + */ + public com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig + getZoneDistributionConfig() { + if (zoneDistributionConfigBuilder_ == null) { + return zoneDistributionConfig_ == null + ? com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.getDefaultInstance() + : zoneDistributionConfig_; + } else { + return zoneDistributionConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. This config will be used to determine how the customer wants us
+     * to distribute cluster resources within the region.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setZoneDistributionConfig( + com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig value) { + if (zoneDistributionConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + zoneDistributionConfig_ = value; + } else { + zoneDistributionConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. This config will be used to determine how the customer wants us
+     * to distribute cluster resources within the region.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setZoneDistributionConfig( + com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.Builder builderForValue) { + if (zoneDistributionConfigBuilder_ == null) { + zoneDistributionConfig_ = builderForValue.build(); + } else { + zoneDistributionConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. This config will be used to determine how the customer wants us
+     * to distribute cluster resources within the region.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeZoneDistributionConfig( + com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig value) { + if (zoneDistributionConfigBuilder_ == null) { + if (((bitField0_ & 0x00020000) != 0) + && zoneDistributionConfig_ != null + && zoneDistributionConfig_ + != com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig + .getDefaultInstance()) { + getZoneDistributionConfigBuilder().mergeFrom(value); + } else { + zoneDistributionConfig_ = value; + } + } else { + zoneDistributionConfigBuilder_.mergeFrom(value); + } + if (zoneDistributionConfig_ != null) { + bitField0_ |= 0x00020000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. This config will be used to determine how the customer wants us
+     * to distribute cluster resources within the region.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearZoneDistributionConfig() { + bitField0_ = (bitField0_ & ~0x00020000); + zoneDistributionConfig_ = null; + if (zoneDistributionConfigBuilder_ != null) { + zoneDistributionConfigBuilder_.dispose(); + zoneDistributionConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. This config will be used to determine how the customer wants us
+     * to distribute cluster resources within the region.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.Builder + getZoneDistributionConfigBuilder() { + bitField0_ |= 0x00020000; + onChanged(); + return getZoneDistributionConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. This config will be used to determine how the customer wants us
+     * to distribute cluster resources within the region.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfigOrBuilder + getZoneDistributionConfigOrBuilder() { + if (zoneDistributionConfigBuilder_ != null) { + return zoneDistributionConfigBuilder_.getMessageOrBuilder(); + } else { + return zoneDistributionConfig_ == null + ? com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.getDefaultInstance() + : zoneDistributionConfig_; + } + } + /** + * + * + *
+     * Optional. This config will be used to determine how the customer wants us
+     * to distribute cluster resources within the region.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig, + com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.Builder, + com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfigOrBuilder> + getZoneDistributionConfigFieldBuilder() { + if (zoneDistributionConfigBuilder_ == null) { + zoneDistributionConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig, + com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.Builder, + com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfigOrBuilder>( + getZoneDistributionConfig(), getParentForChildren(), isClean()); + zoneDistributionConfig_ = null; + } + return zoneDistributionConfigBuilder_; + } + + private boolean deletionProtectionEnabled_; + /** + * + * + *
+     * Optional. The delete operation will fail when the value is set to true.
+     * 
+ * + * + * optional bool deletion_protection_enabled = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the deletionProtectionEnabled field is set. + */ + @java.lang.Override + public boolean hasDeletionProtectionEnabled() { + return ((bitField0_ & 0x00040000) != 0); + } + /** + * + * + *
+     * Optional. The delete operation will fail when the value is set to true.
+     * 
+ * + * + * optional bool deletion_protection_enabled = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deletionProtectionEnabled. + */ + @java.lang.Override + public boolean getDeletionProtectionEnabled() { + return deletionProtectionEnabled_; + } + /** + * + * + *
+     * Optional. The delete operation will fail when the value is set to true.
+     * 
+ * + * + * optional bool deletion_protection_enabled = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The deletionProtectionEnabled to set. + * @return This builder for chaining. + */ + public Builder setDeletionProtectionEnabled(boolean value) { + + deletionProtectionEnabled_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The delete operation will fail when the value is set to true.
+     * 
+ * + * + * optional bool deletion_protection_enabled = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearDeletionProtectionEnabled() { + bitField0_ = (bitField0_ & ~0x00040000); + deletionProtectionEnabled_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterOrBuilder.java index 6384978f70a1..e7588a6495c5 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterOrBuilder.java +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterOrBuilder.java @@ -238,7 +238,8 @@ public interface ClusterOrBuilder * * *
-   * Output only. Redis memory size in GB for the entire cluster.
+   * Output only. Redis memory size in GB for the entire cluster rounded up to
+   * the next integer.
    * 
* * optional int32 size_gb = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -250,7 +251,8 @@ public interface ClusterOrBuilder * * *
-   * Output only. Redis memory size in GB for the entire cluster.
+   * Output only. Redis memory size in GB for the entire cluster rounded up to
+   * the next integer.
    * 
* * optional int32 size_gb = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -533,4 +535,239 @@ com.google.cloud.redis.cluster.v1beta1.PscConnectionOrBuilder getPscConnectionsO *
*/ com.google.cloud.redis.cluster.v1beta1.Cluster.StateInfoOrBuilder getStateInfoOrBuilder(); + + /** + * + * + *
+   * Optional. The type of a redis node in the cluster. NodeType determines the
+   * underlying machine-type of a redis node.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.NodeType node_type = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for nodeType. + */ + int getNodeTypeValue(); + /** + * + * + *
+   * Optional. The type of a redis node in the cluster. NodeType determines the
+   * underlying machine-type of a redis node.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.NodeType node_type = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The nodeType. + */ + com.google.cloud.redis.cluster.v1beta1.NodeType getNodeType(); + + /** + * + * + *
+   * Optional. Persistence config (RDB, AOF) for the cluster.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the persistenceConfig field is set. + */ + boolean hasPersistenceConfig(); + /** + * + * + *
+   * Optional. Persistence config (RDB, AOF) for the cluster.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The persistenceConfig. + */ + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig getPersistenceConfig(); + /** + * + * + *
+   * Optional. Persistence config (RDB, AOF) for the cluster.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig persistence_config = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfigOrBuilder + getPersistenceConfigOrBuilder(); + + /** + * + * + *
+   * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
+   * 
+ * + * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getRedisConfigsCount(); + /** + * + * + *
+   * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
+   * 
+ * + * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsRedisConfigs(java.lang.String key); + /** Use {@link #getRedisConfigsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getRedisConfigs(); + /** + * + * + *
+   * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
+   * 
+ * + * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getRedisConfigsMap(); + /** + * + * + *
+   * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
+   * 
+ * + * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getRedisConfigsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
+   * Optional. Key/Value pairs of customer overrides for mutable Redis Configs
+   * 
+ * + * map<string, string> redis_configs = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getRedisConfigsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Output only. Precise value of redis memory size in GB for the entire
+   * cluster.
+   * 
+ * + * optional double precise_size_gb = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the preciseSizeGb field is set. + */ + boolean hasPreciseSizeGb(); + /** + * + * + *
+   * Output only. Precise value of redis memory size in GB for the entire
+   * cluster.
+   * 
+ * + * optional double precise_size_gb = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The preciseSizeGb. + */ + double getPreciseSizeGb(); + + /** + * + * + *
+   * Optional. This config will be used to determine how the customer wants us
+   * to distribute cluster resources within the region.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the zoneDistributionConfig field is set. + */ + boolean hasZoneDistributionConfig(); + /** + * + * + *
+   * Optional. This config will be used to determine how the customer wants us
+   * to distribute cluster resources within the region.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The zoneDistributionConfig. + */ + com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig getZoneDistributionConfig(); + /** + * + * + *
+   * Optional. This config will be used to determine how the customer wants us
+   * to distribute cluster resources within the region.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig zone_distribution_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfigOrBuilder + getZoneDistributionConfigOrBuilder(); + + /** + * + * + *
+   * Optional. The delete operation will fail when the value is set to true.
+   * 
+ * + * optional bool deletion_protection_enabled = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the deletionProtectionEnabled field is set. + */ + boolean hasDeletionProtectionEnabled(); + /** + * + * + *
+   * Optional. The delete operation will fail when the value is set to true.
+   * 
+ * + * optional bool deletion_protection_enabled = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deletionProtectionEnabled. + */ + boolean getDeletionProtectionEnabled(); } diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterPersistenceConfig.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterPersistenceConfig.java new file mode 100644 index 000000000000..037c3db62367 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterPersistenceConfig.java @@ -0,0 +1,3552 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.redis.cluster.v1beta1; + +/** + * + * + *
+ * Configuration of the persistence functionality.
+ * 
+ * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig} + */ +public final class ClusterPersistenceConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig) + ClusterPersistenceConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ClusterPersistenceConfig.newBuilder() to construct. + private ClusterPersistenceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ClusterPersistenceConfig() { + mode_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ClusterPersistenceConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ClusterPersistenceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ClusterPersistenceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.class, + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.Builder.class); + } + + /** + * + * + *
+   * Available persistence modes.
+   * 
+ * + * Protobuf enum {@code + * google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.PersistenceMode} + */ + public enum PersistenceMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Not set.
+     * 
+ * + * PERSISTENCE_MODE_UNSPECIFIED = 0; + */ + PERSISTENCE_MODE_UNSPECIFIED(0), + /** + * + * + *
+     * Persistence is disabled, and any snapshot data is deleted.
+     * 
+ * + * DISABLED = 1; + */ + DISABLED(1), + /** + * + * + *
+     * RDB based persistence is enabled.
+     * 
+ * + * RDB = 2; + */ + RDB(2), + /** + * + * + *
+     * AOF based persistence is enabled.
+     * 
+ * + * AOF = 3; + */ + AOF(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Not set.
+     * 
+ * + * PERSISTENCE_MODE_UNSPECIFIED = 0; + */ + public static final int PERSISTENCE_MODE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Persistence is disabled, and any snapshot data is deleted.
+     * 
+ * + * DISABLED = 1; + */ + public static final int DISABLED_VALUE = 1; + /** + * + * + *
+     * RDB based persistence is enabled.
+     * 
+ * + * RDB = 2; + */ + public static final int RDB_VALUE = 2; + /** + * + * + *
+     * AOF based persistence is enabled.
+     * 
+ * + * AOF = 3; + */ + public static final int AOF_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PersistenceMode valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static PersistenceMode forNumber(int value) { + switch (value) { + case 0: + return PERSISTENCE_MODE_UNSPECIFIED; + case 1: + return DISABLED; + case 2: + return RDB; + case 3: + return AOF; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PersistenceMode findValueByNumber(int number) { + return PersistenceMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final PersistenceMode[] VALUES = values(); + + public static PersistenceMode valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private PersistenceMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.PersistenceMode) + } + + public interface RDBConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. Period between RDB snapshots.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriod rdb_snapshot_period = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for rdbSnapshotPeriod. + */ + int getRdbSnapshotPeriodValue(); + /** + * + * + *
+     * Optional. Period between RDB snapshots.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriod rdb_snapshot_period = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rdbSnapshotPeriod. + */ + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriod + getRdbSnapshotPeriod(); + + /** + * + * + *
+     * Optional. The time that the first snapshot was/will be attempted, and to
+     * which future snapshots will be aligned. If not provided, the current time
+     * will be used.
+     * 
+ * + * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rdbSnapshotStartTime field is set. + */ + boolean hasRdbSnapshotStartTime(); + /** + * + * + *
+     * Optional. The time that the first snapshot was/will be attempted, and to
+     * which future snapshots will be aligned. If not provided, the current time
+     * will be used.
+     * 
+ * + * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rdbSnapshotStartTime. + */ + com.google.protobuf.Timestamp getRdbSnapshotStartTime(); + /** + * + * + *
+     * Optional. The time that the first snapshot was/will be attempted, and to
+     * which future snapshots will be aligned. If not provided, the current time
+     * will be used.
+     * 
+ * + * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.TimestampOrBuilder getRdbSnapshotStartTimeOrBuilder(); + } + /** + * + * + *
+   * Configuration of the RDB based persistence.
+   * 
+ * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig} + */ + public static final class RDBConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig) + RDBConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use RDBConfig.newBuilder() to construct. + private RDBConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RDBConfig() { + rdbSnapshotPeriod_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RDBConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ClusterPersistenceConfig_RDBConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ClusterPersistenceConfig_RDBConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig.class, + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig.Builder + .class); + } + + /** + * + * + *
+     * Available snapshot periods.
+     * 
+ * + * Protobuf enum {@code + * google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriod} + */ + public enum SnapshotPeriod implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Not set.
+       * 
+ * + * SNAPSHOT_PERIOD_UNSPECIFIED = 0; + */ + SNAPSHOT_PERIOD_UNSPECIFIED(0), + /** + * + * + *
+       * One hour.
+       * 
+ * + * ONE_HOUR = 1; + */ + ONE_HOUR(1), + /** + * + * + *
+       * Six hours.
+       * 
+ * + * SIX_HOURS = 2; + */ + SIX_HOURS(2), + /** + * + * + *
+       * Twelve hours.
+       * 
+ * + * TWELVE_HOURS = 3; + */ + TWELVE_HOURS(3), + /** + * + * + *
+       * Twenty four hours.
+       * 
+ * + * TWENTY_FOUR_HOURS = 4; + */ + TWENTY_FOUR_HOURS(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * Not set.
+       * 
+ * + * SNAPSHOT_PERIOD_UNSPECIFIED = 0; + */ + public static final int SNAPSHOT_PERIOD_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+       * One hour.
+       * 
+ * + * ONE_HOUR = 1; + */ + public static final int ONE_HOUR_VALUE = 1; + /** + * + * + *
+       * Six hours.
+       * 
+ * + * SIX_HOURS = 2; + */ + public static final int SIX_HOURS_VALUE = 2; + /** + * + * + *
+       * Twelve hours.
+       * 
+ * + * TWELVE_HOURS = 3; + */ + public static final int TWELVE_HOURS_VALUE = 3; + /** + * + * + *
+       * Twenty four hours.
+       * 
+ * + * TWENTY_FOUR_HOURS = 4; + */ + public static final int TWENTY_FOUR_HOURS_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SnapshotPeriod valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static SnapshotPeriod forNumber(int value) { + switch (value) { + case 0: + return SNAPSHOT_PERIOD_UNSPECIFIED; + case 1: + return ONE_HOUR; + case 2: + return SIX_HOURS; + case 3: + return TWELVE_HOURS; + case 4: + return TWENTY_FOUR_HOURS; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SnapshotPeriod findValueByNumber(int number) { + return SnapshotPeriod.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final SnapshotPeriod[] VALUES = values(); + + public static SnapshotPeriod valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private SnapshotPeriod(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriod) + } + + private int bitField0_; + public static final int RDB_SNAPSHOT_PERIOD_FIELD_NUMBER = 1; + private int rdbSnapshotPeriod_ = 0; + /** + * + * + *
+     * Optional. Period between RDB snapshots.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriod rdb_snapshot_period = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for rdbSnapshotPeriod. + */ + @java.lang.Override + public int getRdbSnapshotPeriodValue() { + return rdbSnapshotPeriod_; + } + /** + * + * + *
+     * Optional. Period between RDB snapshots.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriod rdb_snapshot_period = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rdbSnapshotPeriod. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriod + getRdbSnapshotPeriod() { + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriod + result = + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig + .SnapshotPeriod.forNumber(rdbSnapshotPeriod_); + return result == null + ? com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriod + .UNRECOGNIZED + : result; + } + + public static final int RDB_SNAPSHOT_START_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp rdbSnapshotStartTime_; + /** + * + * + *
+     * Optional. The time that the first snapshot was/will be attempted, and to
+     * which future snapshots will be aligned. If not provided, the current time
+     * will be used.
+     * 
+ * + * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rdbSnapshotStartTime field is set. + */ + @java.lang.Override + public boolean hasRdbSnapshotStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Optional. The time that the first snapshot was/will be attempted, and to
+     * which future snapshots will be aligned. If not provided, the current time
+     * will be used.
+     * 
+ * + * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rdbSnapshotStartTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getRdbSnapshotStartTime() { + return rdbSnapshotStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : rdbSnapshotStartTime_; + } + /** + * + * + *
+     * Optional. The time that the first snapshot was/will be attempted, and to
+     * which future snapshots will be aligned. If not provided, the current time
+     * will be used.
+     * 
+ * + * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getRdbSnapshotStartTimeOrBuilder() { + return rdbSnapshotStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : rdbSnapshotStartTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (rdbSnapshotPeriod_ + != com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig + .SnapshotPeriod.SNAPSHOT_PERIOD_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, rdbSnapshotPeriod_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getRdbSnapshotStartTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (rdbSnapshotPeriod_ + != com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig + .SnapshotPeriod.SNAPSHOT_PERIOD_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, rdbSnapshotPeriod_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRdbSnapshotStartTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig other = + (com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig) obj; + + if (rdbSnapshotPeriod_ != other.rdbSnapshotPeriod_) return false; + if (hasRdbSnapshotStartTime() != other.hasRdbSnapshotStartTime()) return false; + if (hasRdbSnapshotStartTime()) { + if (!getRdbSnapshotStartTime().equals(other.getRdbSnapshotStartTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RDB_SNAPSHOT_PERIOD_FIELD_NUMBER; + hash = (53 * hash) + rdbSnapshotPeriod_; + if (hasRdbSnapshotStartTime()) { + hash = (37 * hash) + RDB_SNAPSHOT_START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getRdbSnapshotStartTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Configuration of the RDB based persistence.
+     * 
+ * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig) + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ClusterPersistenceConfig_RDBConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ClusterPersistenceConfig_RDBConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig.class, + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig.Builder + .class); + } + + // Construct using + // com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getRdbSnapshotStartTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + rdbSnapshotPeriod_ = 0; + rdbSnapshotStartTime_ = null; + if (rdbSnapshotStartTimeBuilder_ != null) { + rdbSnapshotStartTimeBuilder_.dispose(); + rdbSnapshotStartTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ClusterPersistenceConfig_RDBConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig + getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig build() { + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig + buildPartial() { + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig result = + new com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.rdbSnapshotPeriod_ = rdbSnapshotPeriod_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.rdbSnapshotStartTime_ = + rdbSnapshotStartTimeBuilder_ == null + ? rdbSnapshotStartTime_ + : rdbSnapshotStartTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig) { + return mergeFrom( + (com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig other) { + if (other + == com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig + .getDefaultInstance()) return this; + if (other.rdbSnapshotPeriod_ != 0) { + setRdbSnapshotPeriodValue(other.getRdbSnapshotPeriodValue()); + } + if (other.hasRdbSnapshotStartTime()) { + mergeRdbSnapshotStartTime(other.getRdbSnapshotStartTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + rdbSnapshotPeriod_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage( + getRdbSnapshotStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int rdbSnapshotPeriod_ = 0; + /** + * + * + *
+       * Optional. Period between RDB snapshots.
+       * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriod rdb_snapshot_period = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for rdbSnapshotPeriod. + */ + @java.lang.Override + public int getRdbSnapshotPeriodValue() { + return rdbSnapshotPeriod_; + } + /** + * + * + *
+       * Optional. Period between RDB snapshots.
+       * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriod rdb_snapshot_period = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for rdbSnapshotPeriod to set. + * @return This builder for chaining. + */ + public Builder setRdbSnapshotPeriodValue(int value) { + rdbSnapshotPeriod_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Period between RDB snapshots.
+       * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriod rdb_snapshot_period = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rdbSnapshotPeriod. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig + .SnapshotPeriod + getRdbSnapshotPeriod() { + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriod + result = + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig + .SnapshotPeriod.forNumber(rdbSnapshotPeriod_); + return result == null + ? com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig + .SnapshotPeriod.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Optional. Period between RDB snapshots.
+       * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriod rdb_snapshot_period = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The rdbSnapshotPeriod to set. + * @return This builder for chaining. + */ + public Builder setRdbSnapshotPeriod( + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriod + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + rdbSnapshotPeriod_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Period between RDB snapshots.
+       * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriod rdb_snapshot_period = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearRdbSnapshotPeriod() { + bitField0_ = (bitField0_ & ~0x00000001); + rdbSnapshotPeriod_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp rdbSnapshotStartTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + rdbSnapshotStartTimeBuilder_; + /** + * + * + *
+       * Optional. The time that the first snapshot was/will be attempted, and to
+       * which future snapshots will be aligned. If not provided, the current time
+       * will be used.
+       * 
+ * + * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rdbSnapshotStartTime field is set. + */ + public boolean hasRdbSnapshotStartTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+       * Optional. The time that the first snapshot was/will be attempted, and to
+       * which future snapshots will be aligned. If not provided, the current time
+       * will be used.
+       * 
+ * + * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rdbSnapshotStartTime. + */ + public com.google.protobuf.Timestamp getRdbSnapshotStartTime() { + if (rdbSnapshotStartTimeBuilder_ == null) { + return rdbSnapshotStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : rdbSnapshotStartTime_; + } else { + return rdbSnapshotStartTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Optional. The time that the first snapshot was/will be attempted, and to
+       * which future snapshots will be aligned. If not provided, the current time
+       * will be used.
+       * 
+ * + * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRdbSnapshotStartTime(com.google.protobuf.Timestamp value) { + if (rdbSnapshotStartTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rdbSnapshotStartTime_ = value; + } else { + rdbSnapshotStartTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The time that the first snapshot was/will be attempted, and to
+       * which future snapshots will be aligned. If not provided, the current time
+       * will be used.
+       * 
+ * + * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRdbSnapshotStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (rdbSnapshotStartTimeBuilder_ == null) { + rdbSnapshotStartTime_ = builderForValue.build(); + } else { + rdbSnapshotStartTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The time that the first snapshot was/will be attempted, and to
+       * which future snapshots will be aligned. If not provided, the current time
+       * will be used.
+       * 
+ * + * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRdbSnapshotStartTime(com.google.protobuf.Timestamp value) { + if (rdbSnapshotStartTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && rdbSnapshotStartTime_ != null + && rdbSnapshotStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getRdbSnapshotStartTimeBuilder().mergeFrom(value); + } else { + rdbSnapshotStartTime_ = value; + } + } else { + rdbSnapshotStartTimeBuilder_.mergeFrom(value); + } + if (rdbSnapshotStartTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+       * Optional. The time that the first snapshot was/will be attempted, and to
+       * which future snapshots will be aligned. If not provided, the current time
+       * will be used.
+       * 
+ * + * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRdbSnapshotStartTime() { + bitField0_ = (bitField0_ & ~0x00000002); + rdbSnapshotStartTime_ = null; + if (rdbSnapshotStartTimeBuilder_ != null) { + rdbSnapshotStartTimeBuilder_.dispose(); + rdbSnapshotStartTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. The time that the first snapshot was/will be attempted, and to
+       * which future snapshots will be aligned. If not provided, the current time
+       * will be used.
+       * 
+ * + * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Timestamp.Builder getRdbSnapshotStartTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getRdbSnapshotStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Optional. The time that the first snapshot was/will be attempted, and to
+       * which future snapshots will be aligned. If not provided, the current time
+       * will be used.
+       * 
+ * + * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.TimestampOrBuilder getRdbSnapshotStartTimeOrBuilder() { + if (rdbSnapshotStartTimeBuilder_ != null) { + return rdbSnapshotStartTimeBuilder_.getMessageOrBuilder(); + } else { + return rdbSnapshotStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : rdbSnapshotStartTime_; + } + } + /** + * + * + *
+       * Optional. The time that the first snapshot was/will be attempted, and to
+       * which future snapshots will be aligned. If not provided, the current time
+       * will be used.
+       * 
+ * + * + * .google.protobuf.Timestamp rdb_snapshot_start_time = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getRdbSnapshotStartTimeFieldBuilder() { + if (rdbSnapshotStartTimeBuilder_ == null) { + rdbSnapshotStartTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getRdbSnapshotStartTime(), getParentForChildren(), isClean()); + rdbSnapshotStartTime_ = null; + } + return rdbSnapshotStartTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig) + private static final com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig(); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RDBConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AOFConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. fsync configuration.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig.AppendFsync append_fsync = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for appendFsync. + */ + int getAppendFsyncValue(); + /** + * + * + *
+     * Optional. fsync configuration.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig.AppendFsync append_fsync = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The appendFsync. + */ + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig.AppendFsync + getAppendFsync(); + } + /** + * + * + *
+   * Configuration of the AOF based persistence.
+   * 
+ * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig} + */ + public static final class AOFConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig) + AOFConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use AOFConfig.newBuilder() to construct. + private AOFConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AOFConfig() { + appendFsync_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AOFConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ClusterPersistenceConfig_AOFConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ClusterPersistenceConfig_AOFConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig.class, + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig.Builder + .class); + } + + /** + * + * + *
+     * Available fsync modes.
+     * 
+ * + * Protobuf enum {@code + * google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig.AppendFsync} + */ + public enum AppendFsync implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Not set. Default: EVERYSEC
+       * 
+ * + * APPEND_FSYNC_UNSPECIFIED = 0; + */ + APPEND_FSYNC_UNSPECIFIED(0), + /** + * + * + *
+       * Never fsync. Normally Linux will flush data every 30 seconds with this
+       * configuration, but it's up to the kernel's exact tuning.
+       * 
+ * + * NO = 1; + */ + NO(1), + /** + * + * + *
+       * fsync every second. Fast enough, and you may lose 1 second of data if
+       * there is a disaster
+       * 
+ * + * EVERYSEC = 2; + */ + EVERYSEC(2), + /** + * + * + *
+       * fsync every time new commands are appended to the AOF. It has the best
+       * data loss protection at the cost of performance
+       * 
+ * + * ALWAYS = 3; + */ + ALWAYS(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * Not set. Default: EVERYSEC
+       * 
+ * + * APPEND_FSYNC_UNSPECIFIED = 0; + */ + public static final int APPEND_FSYNC_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+       * Never fsync. Normally Linux will flush data every 30 seconds with this
+       * configuration, but it's up to the kernel's exact tuning.
+       * 
+ * + * NO = 1; + */ + public static final int NO_VALUE = 1; + /** + * + * + *
+       * fsync every second. Fast enough, and you may lose 1 second of data if
+       * there is a disaster
+       * 
+ * + * EVERYSEC = 2; + */ + public static final int EVERYSEC_VALUE = 2; + /** + * + * + *
+       * fsync every time new commands are appended to the AOF. It has the best
+       * data loss protection at the cost of performance
+       * 
+ * + * ALWAYS = 3; + */ + public static final int ALWAYS_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static AppendFsync valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static AppendFsync forNumber(int value) { + switch (value) { + case 0: + return APPEND_FSYNC_UNSPECIFIED; + case 1: + return NO; + case 2: + return EVERYSEC; + case 3: + return ALWAYS; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AppendFsync findValueByNumber(int number) { + return AppendFsync.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final AppendFsync[] VALUES = values(); + + public static AppendFsync valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private AppendFsync(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig.AppendFsync) + } + + public static final int APPEND_FSYNC_FIELD_NUMBER = 1; + private int appendFsync_ = 0; + /** + * + * + *
+     * Optional. fsync configuration.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig.AppendFsync append_fsync = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for appendFsync. + */ + @java.lang.Override + public int getAppendFsyncValue() { + return appendFsync_; + } + /** + * + * + *
+     * Optional. fsync configuration.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig.AppendFsync append_fsync = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The appendFsync. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig.AppendFsync + getAppendFsync() { + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig.AppendFsync result = + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig.AppendFsync + .forNumber(appendFsync_); + return result == null + ? com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig.AppendFsync + .UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (appendFsync_ + != com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig.AppendFsync + .APPEND_FSYNC_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, appendFsync_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (appendFsync_ + != com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig.AppendFsync + .APPEND_FSYNC_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, appendFsync_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig other = + (com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig) obj; + + if (appendFsync_ != other.appendFsync_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + APPEND_FSYNC_FIELD_NUMBER; + hash = (53 * hash) + appendFsync_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Configuration of the AOF based persistence.
+     * 
+ * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig) + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ClusterPersistenceConfig_AOFConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ClusterPersistenceConfig_AOFConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig.class, + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig.Builder + .class); + } + + // Construct using + // com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + appendFsync_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ClusterPersistenceConfig_AOFConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig + getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig build() { + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig + buildPartial() { + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig result = + new com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.appendFsync_ = appendFsync_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig) { + return mergeFrom( + (com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig other) { + if (other + == com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig + .getDefaultInstance()) return this; + if (other.appendFsync_ != 0) { + setAppendFsyncValue(other.getAppendFsyncValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + appendFsync_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int appendFsync_ = 0; + /** + * + * + *
+       * Optional. fsync configuration.
+       * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig.AppendFsync append_fsync = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for appendFsync. + */ + @java.lang.Override + public int getAppendFsyncValue() { + return appendFsync_; + } + /** + * + * + *
+       * Optional. fsync configuration.
+       * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig.AppendFsync append_fsync = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for appendFsync to set. + * @return This builder for chaining. + */ + public Builder setAppendFsyncValue(int value) { + appendFsync_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. fsync configuration.
+       * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig.AppendFsync append_fsync = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The appendFsync. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig.AppendFsync + getAppendFsync() { + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig.AppendFsync + result = + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig + .AppendFsync.forNumber(appendFsync_); + return result == null + ? com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig.AppendFsync + .UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Optional. fsync configuration.
+       * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig.AppendFsync append_fsync = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The appendFsync to set. + * @return This builder for chaining. + */ + public Builder setAppendFsync( + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig.AppendFsync + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + appendFsync_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. fsync configuration.
+       * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig.AppendFsync append_fsync = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAppendFsync() { + bitField0_ = (bitField0_ & ~0x00000001); + appendFsync_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig) + private static final com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig(); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AOFConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int MODE_FIELD_NUMBER = 1; + private int mode_ = 0; + /** + * + * + *
+   * Optional. The mode of persistence.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.PersistenceMode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override + public int getModeValue() { + return mode_; + } + /** + * + * + *
+   * Optional. The mode of persistence.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.PersistenceMode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mode. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.PersistenceMode getMode() { + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.PersistenceMode result = + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.PersistenceMode.forNumber( + mode_); + return result == null + ? com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.PersistenceMode + .UNRECOGNIZED + : result; + } + + public static final int RDB_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig rdbConfig_; + /** + * + * + *
+   * Optional. RDB configuration. This field will be ignored if mode is not RDB.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig rdb_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rdbConfig field is set. + */ + @java.lang.Override + public boolean hasRdbConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Optional. RDB configuration. This field will be ignored if mode is not RDB.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig rdb_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rdbConfig. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig getRdbConfig() { + return rdbConfig_ == null + ? com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig + .getDefaultInstance() + : rdbConfig_; + } + /** + * + * + *
+   * Optional. RDB configuration. This field will be ignored if mode is not RDB.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig rdb_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfigOrBuilder + getRdbConfigOrBuilder() { + return rdbConfig_ == null + ? com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig + .getDefaultInstance() + : rdbConfig_; + } + + public static final int AOF_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig aofConfig_; + /** + * + * + *
+   * Optional. AOF configuration. This field will be ignored if mode is not AOF.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig aof_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the aofConfig field is set. + */ + @java.lang.Override + public boolean hasAofConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Optional. AOF configuration. This field will be ignored if mode is not AOF.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig aof_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The aofConfig. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig getAofConfig() { + return aofConfig_ == null + ? com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig + .getDefaultInstance() + : aofConfig_; + } + /** + * + * + *
+   * Optional. AOF configuration. This field will be ignored if mode is not AOF.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig aof_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfigOrBuilder + getAofConfigOrBuilder() { + return aofConfig_ == null + ? com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig + .getDefaultInstance() + : aofConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (mode_ + != com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.PersistenceMode + .PERSISTENCE_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, mode_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getRdbConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getAofConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (mode_ + != com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.PersistenceMode + .PERSISTENCE_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, mode_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRdbConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAofConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig other = + (com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig) obj; + + if (mode_ != other.mode_) return false; + if (hasRdbConfig() != other.hasRdbConfig()) return false; + if (hasRdbConfig()) { + if (!getRdbConfig().equals(other.getRdbConfig())) return false; + } + if (hasAofConfig() != other.hasAofConfig()) return false; + if (hasAofConfig()) { + if (!getAofConfig().equals(other.getAofConfig())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MODE_FIELD_NUMBER; + hash = (53 * hash) + mode_; + if (hasRdbConfig()) { + hash = (37 * hash) + RDB_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getRdbConfig().hashCode(); + } + if (hasAofConfig()) { + hash = (37 * hash) + AOF_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAofConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Configuration of the persistence functionality.
+   * 
+ * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig) + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ClusterPersistenceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ClusterPersistenceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.class, + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getRdbConfigFieldBuilder(); + getAofConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + mode_ = 0; + rdbConfig_ = null; + if (rdbConfigBuilder_ != null) { + rdbConfigBuilder_.dispose(); + rdbConfigBuilder_ = null; + } + aofConfig_ = null; + if (aofConfigBuilder_ != null) { + aofConfigBuilder_.dispose(); + aofConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ClusterPersistenceConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig + getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig build() { + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig buildPartial() { + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig result = + new com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.mode_ = mode_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.rdbConfig_ = rdbConfigBuilder_ == null ? rdbConfig_ : rdbConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.aofConfig_ = aofConfigBuilder_ == null ? aofConfig_ : aofConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig) { + return mergeFrom((com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig other) { + if (other + == com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.getDefaultInstance()) + return this; + if (other.mode_ != 0) { + setModeValue(other.getModeValue()); + } + if (other.hasRdbConfig()) { + mergeRdbConfig(other.getRdbConfig()); + } + if (other.hasAofConfig()) { + mergeAofConfig(other.getAofConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + mode_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage(getRdbConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getAofConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int mode_ = 0; + /** + * + * + *
+     * Optional. The mode of persistence.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.PersistenceMode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override + public int getModeValue() { + return mode_; + } + /** + * + * + *
+     * Optional. The mode of persistence.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.PersistenceMode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for mode to set. + * @return This builder for chaining. + */ + public Builder setModeValue(int value) { + mode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The mode of persistence.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.PersistenceMode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mode. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.PersistenceMode + getMode() { + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.PersistenceMode result = + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.PersistenceMode.forNumber( + mode_); + return result == null + ? com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.PersistenceMode + .UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional. The mode of persistence.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.PersistenceMode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The mode to set. + * @return This builder for chaining. + */ + public Builder setMode( + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.PersistenceMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + mode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The mode of persistence.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.PersistenceMode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearMode() { + bitField0_ = (bitField0_ & ~0x00000001); + mode_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig rdbConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig, + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig.Builder, + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfigOrBuilder> + rdbConfigBuilder_; + /** + * + * + *
+     * Optional. RDB configuration. This field will be ignored if mode is not RDB.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig rdb_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rdbConfig field is set. + */ + public boolean hasRdbConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Optional. RDB configuration. This field will be ignored if mode is not RDB.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig rdb_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rdbConfig. + */ + public com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig + getRdbConfig() { + if (rdbConfigBuilder_ == null) { + return rdbConfig_ == null + ? com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig + .getDefaultInstance() + : rdbConfig_; + } else { + return rdbConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. RDB configuration. This field will be ignored if mode is not RDB.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig rdb_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRdbConfig( + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig value) { + if (rdbConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rdbConfig_ = value; + } else { + rdbConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. RDB configuration. This field will be ignored if mode is not RDB.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig rdb_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRdbConfig( + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig.Builder + builderForValue) { + if (rdbConfigBuilder_ == null) { + rdbConfig_ = builderForValue.build(); + } else { + rdbConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. RDB configuration. This field will be ignored if mode is not RDB.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig rdb_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRdbConfig( + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig value) { + if (rdbConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && rdbConfig_ != null + && rdbConfig_ + != com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig + .getDefaultInstance()) { + getRdbConfigBuilder().mergeFrom(value); + } else { + rdbConfig_ = value; + } + } else { + rdbConfigBuilder_.mergeFrom(value); + } + if (rdbConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. RDB configuration. This field will be ignored if mode is not RDB.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig rdb_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRdbConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + rdbConfig_ = null; + if (rdbConfigBuilder_ != null) { + rdbConfigBuilder_.dispose(); + rdbConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. RDB configuration. This field will be ignored if mode is not RDB.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig rdb_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig.Builder + getRdbConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getRdbConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. RDB configuration. This field will be ignored if mode is not RDB.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig rdb_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfigOrBuilder + getRdbConfigOrBuilder() { + if (rdbConfigBuilder_ != null) { + return rdbConfigBuilder_.getMessageOrBuilder(); + } else { + return rdbConfig_ == null + ? com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig + .getDefaultInstance() + : rdbConfig_; + } + } + /** + * + * + *
+     * Optional. RDB configuration. This field will be ignored if mode is not RDB.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig rdb_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig, + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig.Builder, + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfigOrBuilder> + getRdbConfigFieldBuilder() { + if (rdbConfigBuilder_ == null) { + rdbConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig, + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig.Builder, + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfigOrBuilder>( + getRdbConfig(), getParentForChildren(), isClean()); + rdbConfig_ = null; + } + return rdbConfigBuilder_; + } + + private com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig aofConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig, + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig.Builder, + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfigOrBuilder> + aofConfigBuilder_; + /** + * + * + *
+     * Optional. AOF configuration. This field will be ignored if mode is not AOF.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig aof_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the aofConfig field is set. + */ + public boolean hasAofConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Optional. AOF configuration. This field will be ignored if mode is not AOF.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig aof_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The aofConfig. + */ + public com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig + getAofConfig() { + if (aofConfigBuilder_ == null) { + return aofConfig_ == null + ? com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig + .getDefaultInstance() + : aofConfig_; + } else { + return aofConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. AOF configuration. This field will be ignored if mode is not AOF.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig aof_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAofConfig( + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig value) { + if (aofConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + aofConfig_ = value; + } else { + aofConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. AOF configuration. This field will be ignored if mode is not AOF.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig aof_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAofConfig( + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig.Builder + builderForValue) { + if (aofConfigBuilder_ == null) { + aofConfig_ = builderForValue.build(); + } else { + aofConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. AOF configuration. This field will be ignored if mode is not AOF.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig aof_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAofConfig( + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig value) { + if (aofConfigBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && aofConfig_ != null + && aofConfig_ + != com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig + .getDefaultInstance()) { + getAofConfigBuilder().mergeFrom(value); + } else { + aofConfig_ = value; + } + } else { + aofConfigBuilder_.mergeFrom(value); + } + if (aofConfig_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. AOF configuration. This field will be ignored if mode is not AOF.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig aof_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAofConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + aofConfig_ = null; + if (aofConfigBuilder_ != null) { + aofConfigBuilder_.dispose(); + aofConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. AOF configuration. This field will be ignored if mode is not AOF.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig aof_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig.Builder + getAofConfigBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getAofConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. AOF configuration. This field will be ignored if mode is not AOF.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig aof_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfigOrBuilder + getAofConfigOrBuilder() { + if (aofConfigBuilder_ != null) { + return aofConfigBuilder_.getMessageOrBuilder(); + } else { + return aofConfig_ == null + ? com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig + .getDefaultInstance() + : aofConfig_; + } + } + /** + * + * + *
+     * Optional. AOF configuration. This field will be ignored if mode is not AOF.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig aof_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig, + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig.Builder, + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfigOrBuilder> + getAofConfigFieldBuilder() { + if (aofConfigBuilder_ == null) { + aofConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig, + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig.Builder, + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfigOrBuilder>( + getAofConfig(), getParentForChildren(), isClean()); + aofConfig_ = null; + } + return aofConfigBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig) + private static final com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig(); + } + + public static com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClusterPersistenceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterPersistenceConfigOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterPersistenceConfigOrBuilder.java new file mode 100644 index 000000000000..9d350734ce47 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ClusterPersistenceConfigOrBuilder.java @@ -0,0 +1,139 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.redis.cluster.v1beta1; + +public interface ClusterPersistenceConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The mode of persistence.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.PersistenceMode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for mode. + */ + int getModeValue(); + /** + * + * + *
+   * Optional. The mode of persistence.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.PersistenceMode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mode. + */ + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.PersistenceMode getMode(); + + /** + * + * + *
+   * Optional. RDB configuration. This field will be ignored if mode is not RDB.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig rdb_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rdbConfig field is set. + */ + boolean hasRdbConfig(); + /** + * + * + *
+   * Optional. RDB configuration. This field will be ignored if mode is not RDB.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig rdb_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rdbConfig. + */ + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig getRdbConfig(); + /** + * + * + *
+   * Optional. RDB configuration. This field will be ignored if mode is not RDB.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfig rdb_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.RDBConfigOrBuilder + getRdbConfigOrBuilder(); + + /** + * + * + *
+   * Optional. AOF configuration. This field will be ignored if mode is not AOF.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig aof_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the aofConfig field is set. + */ + boolean hasAofConfig(); + /** + * + * + *
+   * Optional. AOF configuration. This field will be ignored if mode is not AOF.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig aof_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The aofConfig. + */ + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig getAofConfig(); + /** + * + * + *
+   * Optional. AOF configuration. This field will be ignored if mode is not AOF.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig aof_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfigOrBuilder + getAofConfigOrBuilder(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/GetClusterCertificateAuthorityRequest.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/GetClusterCertificateAuthorityRequest.java new file mode 100644 index 000000000000..62208e685c68 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/GetClusterCertificateAuthorityRequest.java @@ -0,0 +1,681 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.redis.cluster.v1beta1; + +/** + * + * + *
+ * Request for
+ * [GetClusterCertificateAuthorityRequest][CloudRedis.GetClusterCertificateAuthorityRequest].
+ * 
+ * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest} + */ +public final class GetClusterCertificateAuthorityRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest) + GetClusterCertificateAuthorityRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetClusterCertificateAuthorityRequest.newBuilder() to construct. + private GetClusterCertificateAuthorityRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetClusterCertificateAuthorityRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetClusterCertificateAuthorityRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_GetClusterCertificateAuthorityRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_GetClusterCertificateAuthorityRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest.class, + com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Redis cluster certificate authority resource name using the form:
+   *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}/certificateAuthority`
+   * where `location_id` refers to a GCP region.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Redis cluster certificate authority resource name using the form:
+   *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}/certificateAuthority`
+   * where `location_id` refers to a GCP region.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest other = + (com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request for
+   * [GetClusterCertificateAuthorityRequest][CloudRedis.GetClusterCertificateAuthorityRequest].
+   * 
+ * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest) + com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_GetClusterCertificateAuthorityRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_GetClusterCertificateAuthorityRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest.class, + com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_GetClusterCertificateAuthorityRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest + getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest build() { + com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest + buildPartial() { + com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest result = + new com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest) { + return mergeFrom( + (com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest other) { + if (other + == com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. Redis cluster certificate authority resource name using the form:
+     *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}/certificateAuthority`
+     * where `location_id` refers to a GCP region.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Redis cluster certificate authority resource name using the form:
+     *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}/certificateAuthority`
+     * where `location_id` refers to a GCP region.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Redis cluster certificate authority resource name using the form:
+     *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}/certificateAuthority`
+     * where `location_id` refers to a GCP region.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Redis cluster certificate authority resource name using the form:
+     *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}/certificateAuthority`
+     * where `location_id` refers to a GCP region.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Redis cluster certificate authority resource name using the form:
+     *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}/certificateAuthority`
+     * where `location_id` refers to a GCP region.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest) + private static final com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest(); + } + + public static com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetClusterCertificateAuthorityRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/GetClusterCertificateAuthorityRequestOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/GetClusterCertificateAuthorityRequestOrBuilder.java new file mode 100644 index 000000000000..4f106a1f4ed1 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/GetClusterCertificateAuthorityRequestOrBuilder.java @@ -0,0 +1,59 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.redis.cluster.v1beta1; + +public interface GetClusterCertificateAuthorityRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Redis cluster certificate authority resource name using the form:
+   *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}/certificateAuthority`
+   * where `location_id` refers to a GCP region.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Redis cluster certificate authority resource name using the form:
+   *     `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}/certificateAuthority`
+   * where `location_id` refers to a GCP region.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/NodeType.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/NodeType.java new file mode 100644 index 000000000000..57a0cb2f5234 --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/NodeType.java @@ -0,0 +1,207 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.redis.cluster.v1beta1; + +/** + * + * + *
+ * NodeType of a redis cluster node,
+ * 
+ * + * Protobuf enum {@code google.cloud.redis.cluster.v1beta1.NodeType} + */ +public enum NodeType implements com.google.protobuf.ProtocolMessageEnum { + /** NODE_TYPE_UNSPECIFIED = 0; */ + NODE_TYPE_UNSPECIFIED(0), + /** + * + * + *
+   * Redis shared core nano node_type.
+   * 
+ * + * REDIS_SHARED_CORE_NANO = 1; + */ + REDIS_SHARED_CORE_NANO(1), + /** + * + * + *
+   * Redis highmem medium node_type.
+   * 
+ * + * REDIS_HIGHMEM_MEDIUM = 2; + */ + REDIS_HIGHMEM_MEDIUM(2), + /** + * + * + *
+   * Redis highmem xlarge node_type.
+   * 
+ * + * REDIS_HIGHMEM_XLARGE = 3; + */ + REDIS_HIGHMEM_XLARGE(3), + /** + * + * + *
+   * Redis standard small node_type.
+   * 
+ * + * REDIS_STANDARD_SMALL = 4; + */ + REDIS_STANDARD_SMALL(4), + UNRECOGNIZED(-1), + ; + + /** NODE_TYPE_UNSPECIFIED = 0; */ + public static final int NODE_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Redis shared core nano node_type.
+   * 
+ * + * REDIS_SHARED_CORE_NANO = 1; + */ + public static final int REDIS_SHARED_CORE_NANO_VALUE = 1; + /** + * + * + *
+   * Redis highmem medium node_type.
+   * 
+ * + * REDIS_HIGHMEM_MEDIUM = 2; + */ + public static final int REDIS_HIGHMEM_MEDIUM_VALUE = 2; + /** + * + * + *
+   * Redis highmem xlarge node_type.
+   * 
+ * + * REDIS_HIGHMEM_XLARGE = 3; + */ + public static final int REDIS_HIGHMEM_XLARGE_VALUE = 3; + /** + * + * + *
+   * Redis standard small node_type.
+   * 
+ * + * REDIS_STANDARD_SMALL = 4; + */ + public static final int REDIS_STANDARD_SMALL_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static NodeType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static NodeType forNumber(int value) { + switch (value) { + case 0: + return NODE_TYPE_UNSPECIFIED; + case 1: + return REDIS_SHARED_CORE_NANO; + case 2: + return REDIS_HIGHMEM_MEDIUM; + case 3: + return REDIS_HIGHMEM_XLARGE; + case 4: + return REDIS_STANDARD_SMALL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public NodeType findValueByNumber(int number) { + return NodeType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final NodeType[] VALUES = values(); + + public static NodeType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private NodeType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.redis.cluster.v1beta1.NodeType) +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/TransitEncryptionMode.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/TransitEncryptionMode.java index 79a4adfc6b35..630c27f493be 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/TransitEncryptionMode.java +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/TransitEncryptionMode.java @@ -156,7 +156,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto.getDescriptor() .getEnumTypes() - .get(1); + .get(2); } private static final TransitEncryptionMode[] VALUES = values(); diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ZoneDistributionConfig.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ZoneDistributionConfig.java new file mode 100644 index 000000000000..37ac4defaf3c --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ZoneDistributionConfig.java @@ -0,0 +1,1000 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.redis.cluster.v1beta1; + +/** + * + * + *
+ * Zone distribution config for allocation of cluster resources.
+ * 
+ * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig} + */ +public final class ZoneDistributionConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig) + ZoneDistributionConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ZoneDistributionConfig.newBuilder() to construct. + private ZoneDistributionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ZoneDistributionConfig() { + mode_ = 0; + zone_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ZoneDistributionConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ZoneDistributionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ZoneDistributionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.class, + com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.Builder.class); + } + + /** + * + * + *
+   * Defines various modes of zone distribution.
+   * Currently supports two modes, can be expanded in future to support more
+   * types of distribution modes.
+   * design doc: go/same-zone-cluster
+   * 
+ * + * Protobuf enum {@code + * google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.ZoneDistributionMode} + */ + public enum ZoneDistributionMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Not Set. Default: MULTI_ZONE
+     * 
+ * + * ZONE_DISTRIBUTION_MODE_UNSPECIFIED = 0; + */ + ZONE_DISTRIBUTION_MODE_UNSPECIFIED(0), + /** + * + * + *
+     * Distribute all resources across 3 zones picked at random, within the
+     * region.
+     * 
+ * + * MULTI_ZONE = 1; + */ + MULTI_ZONE(1), + /** + * + * + *
+     * Distribute all resources in a single zone. The zone field must be
+     * specified, when this mode is selected.
+     * 
+ * + * SINGLE_ZONE = 2; + */ + SINGLE_ZONE(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Not Set. Default: MULTI_ZONE
+     * 
+ * + * ZONE_DISTRIBUTION_MODE_UNSPECIFIED = 0; + */ + public static final int ZONE_DISTRIBUTION_MODE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Distribute all resources across 3 zones picked at random, within the
+     * region.
+     * 
+ * + * MULTI_ZONE = 1; + */ + public static final int MULTI_ZONE_VALUE = 1; + /** + * + * + *
+     * Distribute all resources in a single zone. The zone field must be
+     * specified, when this mode is selected.
+     * 
+ * + * SINGLE_ZONE = 2; + */ + public static final int SINGLE_ZONE_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ZoneDistributionMode valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ZoneDistributionMode forNumber(int value) { + switch (value) { + case 0: + return ZONE_DISTRIBUTION_MODE_UNSPECIFIED; + case 1: + return MULTI_ZONE; + case 2: + return SINGLE_ZONE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ZoneDistributionMode findValueByNumber(int number) { + return ZoneDistributionMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ZoneDistributionMode[] VALUES = values(); + + public static ZoneDistributionMode valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ZoneDistributionMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.ZoneDistributionMode) + } + + public static final int MODE_FIELD_NUMBER = 1; + private int mode_ = 0; + /** + * + * + *
+   * Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not
+   * specified.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.ZoneDistributionMode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override + public int getModeValue() { + return mode_; + } + /** + * + * + *
+   * Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not
+   * specified.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.ZoneDistributionMode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mode. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.ZoneDistributionMode + getMode() { + com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.ZoneDistributionMode result = + com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.ZoneDistributionMode + .forNumber(mode_); + return result == null + ? com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.ZoneDistributionMode + .UNRECOGNIZED + : result; + } + + public static final int ZONE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + /** + * + * + *
+   * Optional. When SINGLE ZONE distribution is selected, zone field would be
+   * used to allocate all resources in that zone. This is not applicable to
+   * MULTI_ZONE, and would be ignored for MULTI_ZONE clusters.
+   * 
+ * + * string zone = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The zone. + */ + @java.lang.Override + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. When SINGLE ZONE distribution is selected, zone field would be
+   * used to allocate all resources in that zone. This is not applicable to
+   * MULTI_ZONE, and would be ignored for MULTI_ZONE clusters.
+   * 
+ * + * string zone = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for zone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (mode_ + != com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.ZoneDistributionMode + .ZONE_DISTRIBUTION_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, mode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (mode_ + != com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.ZoneDistributionMode + .ZONE_DISTRIBUTION_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, mode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig)) { + return super.equals(obj); + } + com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig other = + (com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig) obj; + + if (mode_ != other.mode_) return false; + if (!getZone().equals(other.getZone())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MODE_FIELD_NUMBER; + hash = (53 * hash) + mode_; + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Zone distribution config for allocation of cluster resources.
+   * 
+ * + * Protobuf type {@code google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig) + com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ZoneDistributionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ZoneDistributionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.class, + com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.Builder.class); + } + + // Construct using com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + mode_ = 0; + zone_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterProto + .internal_static_google_cloud_redis_cluster_v1beta1_ZoneDistributionConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig + getDefaultInstanceForType() { + return com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig build() { + com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig buildPartial() { + com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig result = + new com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.mode_ = mode_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zone_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig) { + return mergeFrom((com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig other) { + if (other + == com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.getDefaultInstance()) + return this; + if (other.mode_ != 0) { + setModeValue(other.getModeValue()); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + mode_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int mode_ = 0; + /** + * + * + *
+     * Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not
+     * specified.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.ZoneDistributionMode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override + public int getModeValue() { + return mode_; + } + /** + * + * + *
+     * Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not
+     * specified.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.ZoneDistributionMode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for mode to set. + * @return This builder for chaining. + */ + public Builder setModeValue(int value) { + mode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not
+     * specified.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.ZoneDistributionMode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mode. + */ + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.ZoneDistributionMode + getMode() { + com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.ZoneDistributionMode result = + com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.ZoneDistributionMode + .forNumber(mode_); + return result == null + ? com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.ZoneDistributionMode + .UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not
+     * specified.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.ZoneDistributionMode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The mode to set. + * @return This builder for chaining. + */ + public Builder setMode( + com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.ZoneDistributionMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + mode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not
+     * specified.
+     * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.ZoneDistributionMode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearMode() { + bitField0_ = (bitField0_ & ~0x00000001); + mode_ = 0; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
+     * Optional. When SINGLE ZONE distribution is selected, zone field would be
+     * used to allocate all resources in that zone. This is not applicable to
+     * MULTI_ZONE, and would be ignored for MULTI_ZONE clusters.
+     * 
+ * + * string zone = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The zone. + */ + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. When SINGLE ZONE distribution is selected, zone field would be
+     * used to allocate all resources in that zone. This is not applicable to
+     * MULTI_ZONE, and would be ignored for MULTI_ZONE clusters.
+     * 
+ * + * string zone = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for zone. + */ + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. When SINGLE ZONE distribution is selected, zone field would be
+     * used to allocate all resources in that zone. This is not applicable to
+     * MULTI_ZONE, and would be ignored for MULTI_ZONE clusters.
+     * 
+ * + * string zone = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The zone to set. + * @return This builder for chaining. + */ + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + zone_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. When SINGLE ZONE distribution is selected, zone field would be
+     * used to allocate all resources in that zone. This is not applicable to
+     * MULTI_ZONE, and would be ignored for MULTI_ZONE clusters.
+     * 
+ * + * string zone = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. When SINGLE ZONE distribution is selected, zone field would be
+     * used to allocate all resources in that zone. This is not applicable to
+     * MULTI_ZONE, and would be ignored for MULTI_ZONE clusters.
+     * 
+ * + * string zone = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + zone_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig) + private static final com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig(); + } + + public static com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ZoneDistributionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ZoneDistributionConfigOrBuilder.java b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ZoneDistributionConfigOrBuilder.java new file mode 100644 index 000000000000..47e0508ed20b --- /dev/null +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/java/com/google/cloud/redis/cluster/v1beta1/ZoneDistributionConfigOrBuilder.java @@ -0,0 +1,86 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.redis.cluster.v1beta1; + +public interface ZoneDistributionConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not
+   * specified.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.ZoneDistributionMode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for mode. + */ + int getModeValue(); + /** + * + * + *
+   * Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not
+   * specified.
+   * 
+ * + * + * .google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.ZoneDistributionMode mode = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mode. + */ + com.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.ZoneDistributionMode getMode(); + + /** + * + * + *
+   * Optional. When SINGLE ZONE distribution is selected, zone field would be
+   * used to allocate all resources in that zone. This is not applicable to
+   * MULTI_ZONE, and would be ignored for MULTI_ZONE clusters.
+   * 
+ * + * string zone = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The zone. + */ + java.lang.String getZone(); + /** + * + * + *
+   * Optional. When SINGLE ZONE distribution is selected, zone field would be
+   * used to allocate all resources in that zone. This is not applicable to
+   * MULTI_ZONE, and would be ignored for MULTI_ZONE clusters.
+   * 
+ * + * string zone = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for zone. + */ + com.google.protobuf.ByteString getZoneBytes(); +} diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/proto/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/proto/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto index 6833fd2fe47a..8114ac016064 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/proto/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/src/main/proto/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.proto @@ -30,6 +30,7 @@ option go_package = "cloud.google.com/go/redis/cluster/apiv1beta1/clusterpb;clus option java_multiple_files = true; option java_outer_classname = "CloudRedisClusterProto"; option java_package = "com.google.cloud.redis.cluster.v1beta1"; +option ruby_package = "Google::Cloud::Redis::Cluster::V1beta1"; // Configures and manages Cloud Memorystore for Redis clusters // @@ -133,6 +134,15 @@ service CloudRedisCluster { metadata_type: "google.protobuf.Any" }; } + + // Gets the details of certificate authority information for Redis cluster. + rpc GetClusterCertificateAuthority(GetClusterCertificateAuthorityRequest) + returns (CertificateAuthority) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/clusters/*/certificateAuthority}" + }; + option (google.api.method_signature) = "name"; + } } // Available authorization mode of a Redis cluster. @@ -147,6 +157,23 @@ enum AuthorizationMode { AUTH_MODE_DISABLED = 2; } +// NodeType of a redis cluster node, +enum NodeType { + NODE_TYPE_UNSPECIFIED = 0; + + // Redis shared core nano node_type. + REDIS_SHARED_CORE_NANO = 1; + + // Redis highmem medium node_type. + REDIS_HIGHMEM_MEDIUM = 2; + + // Redis highmem xlarge node_type. + REDIS_HIGHMEM_XLARGE = 3; + + // Redis standard small node_type. + REDIS_STANDARD_SMALL = 4; +} + // Available mode of in-transit encryption. enum TransitEncryptionMode { // In-transit encryption not set. @@ -281,6 +308,20 @@ message DeleteClusterRequest { string request_id = 2; } +// Request for +// [GetClusterCertificateAuthorityRequest][CloudRedis.GetClusterCertificateAuthorityRequest]. +message GetClusterCertificateAuthorityRequest { + // Required. Redis cluster certificate authority resource name using the form: + // `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}/certificateAuthority` + // where `location_id` refers to a GCP region. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "redis.googleapis.com/CertificateAuthority" + } + ]; +} + // A cluster instance. message Cluster { option (google.api.resource) = { @@ -352,7 +393,8 @@ message Cluster { TransitEncryptionMode transit_encryption_mode = 12 [(google.api.field_behavior) = OPTIONAL]; - // Output only. Redis memory size in GB for the entire cluster. + // Output only. Redis memory size in GB for the entire cluster rounded up to + // the next integer. optional int32 size_gb = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. Number of shards for the Redis cluster. @@ -375,6 +417,32 @@ message Cluster { // Output only. Additional information about the current state of the cluster. StateInfo state_info = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The type of a redis node in the cluster. NodeType determines the + // underlying machine-type of a redis node. + NodeType node_type = 19 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Persistence config (RDB, AOF) for the cluster. + ClusterPersistenceConfig persistence_config = 20 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Key/Value pairs of customer overrides for mutable Redis Configs + map redis_configs = 21 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Precise value of redis memory size in GB for the entire + // cluster. + optional double precise_size_gb = 22 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. This config will be used to determine how the customer wants us + // to distribute cluster resources within the region. + ZoneDistributionConfig zone_distribution_config = 23 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The delete operation will fail when the value is set to true. + optional bool deletion_protection_enabled = 25 + [(google.api.field_behavior) = OPTIONAL]; } message PscConfig { @@ -451,3 +519,143 @@ message OperationMetadata { // Output only. API version used to start the operation. string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; } + +// Redis cluster certificate authority +message CertificateAuthority { + option (google.api.resource) = { + type: "redis.googleapis.com/CertificateAuthority" + pattern: "projects/{project}/locations/{location}/clusters/{cluster}/certificateAuthority" + }; + + message ManagedCertificateAuthority { + message CertChain { + // The certificates that form the CA chain, from leaf to root order. + repeated string certificates = 1; + } + + // The PEM encoded CA certificate chains for redis managed + // server authentication + repeated CertChain ca_certs = 1; + } + + // server ca information + oneof server_ca { + ManagedCertificateAuthority managed_server_ca = 1; + } + + // Identifier. Unique name of the resource in this scope including project, + // location and cluster using the form: + // `projects/{project}/locations/{location}/clusters/{cluster}/certificateAuthority` + string name = 2 [(google.api.field_behavior) = IDENTIFIER]; +} + +// Configuration of the persistence functionality. +message ClusterPersistenceConfig { + // Configuration of the RDB based persistence. + message RDBConfig { + // Available snapshot periods. + enum SnapshotPeriod { + // Not set. + SNAPSHOT_PERIOD_UNSPECIFIED = 0; + + // One hour. + ONE_HOUR = 1; + + // Six hours. + SIX_HOURS = 2; + + // Twelve hours. + TWELVE_HOURS = 3; + + // Twenty four hours. + TWENTY_FOUR_HOURS = 4; + } + + // Optional. Period between RDB snapshots. + SnapshotPeriod rdb_snapshot_period = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The time that the first snapshot was/will be attempted, and to + // which future snapshots will be aligned. If not provided, the current time + // will be used. + google.protobuf.Timestamp rdb_snapshot_start_time = 2 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Configuration of the AOF based persistence. + message AOFConfig { + // Available fsync modes. + enum AppendFsync { + // Not set. Default: EVERYSEC + APPEND_FSYNC_UNSPECIFIED = 0; + + // Never fsync. Normally Linux will flush data every 30 seconds with this + // configuration, but it's up to the kernel's exact tuning. + NO = 1; + + // fsync every second. Fast enough, and you may lose 1 second of data if + // there is a disaster + EVERYSEC = 2; + + // fsync every time new commands are appended to the AOF. It has the best + // data loss protection at the cost of performance + ALWAYS = 3; + } + + // Optional. fsync configuration. + AppendFsync append_fsync = 1 [(google.api.field_behavior) = OPTIONAL]; + } + + // Available persistence modes. + enum PersistenceMode { + // Not set. + PERSISTENCE_MODE_UNSPECIFIED = 0; + + // Persistence is disabled, and any snapshot data is deleted. + DISABLED = 1; + + // RDB based persistence is enabled. + RDB = 2; + + // AOF based persistence is enabled. + AOF = 3; + } + + // Optional. The mode of persistence. + PersistenceMode mode = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. RDB configuration. This field will be ignored if mode is not RDB. + RDBConfig rdb_config = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. AOF configuration. This field will be ignored if mode is not AOF. + AOFConfig aof_config = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Zone distribution config for allocation of cluster resources. +message ZoneDistributionConfig { + // Defines various modes of zone distribution. + // Currently supports two modes, can be expanded in future to support more + // types of distribution modes. + // design doc: go/same-zone-cluster + enum ZoneDistributionMode { + // Not Set. Default: MULTI_ZONE + ZONE_DISTRIBUTION_MODE_UNSPECIFIED = 0; + + // Distribute all resources across 3 zones picked at random, within the + // region. + MULTI_ZONE = 1; + + // Distribute all resources in a single zone. The zone field must be + // specified, when this mode is selected. + SINGLE_ZONE = 2; + } + + // Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not + // specified. + ZoneDistributionMode mode = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. When SINGLE ZONE distribution is selected, zone field would be + // used to allocate all resources in that zone. This is not applicable to + // MULTI_ZONE, and would be ignored for MULTI_ZONE clusters. + string zone = 2 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getclustercertificateauthority/AsyncGetClusterCertificateAuthority.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getclustercertificateauthority/AsyncGetClusterCertificateAuthority.java new file mode 100644 index 000000000000..850a31d91be8 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getclustercertificateauthority/AsyncGetClusterCertificateAuthority.java @@ -0,0 +1,51 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_GetClusterCertificateAuthority_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.redis.cluster.v1.CertificateAuthority; +import com.google.cloud.redis.cluster.v1.CertificateAuthorityName; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest; + +public class AsyncGetClusterCertificateAuthority { + + public static void main(String[] args) throws Exception { + asyncGetClusterCertificateAuthority(); + } + + public static void asyncGetClusterCertificateAuthority() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + GetClusterCertificateAuthorityRequest request = + GetClusterCertificateAuthorityRequest.newBuilder() + .setName( + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .build(); + ApiFuture future = + cloudRedisClusterClient.getClusterCertificateAuthorityCallable().futureCall(request); + // Do something. + CertificateAuthority response = future.get(); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_GetClusterCertificateAuthority_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getclustercertificateauthority/SyncGetClusterCertificateAuthority.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getclustercertificateauthority/SyncGetClusterCertificateAuthority.java new file mode 100644 index 000000000000..954fd0537830 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getclustercertificateauthority/SyncGetClusterCertificateAuthority.java @@ -0,0 +1,48 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_GetClusterCertificateAuthority_sync] +import com.google.cloud.redis.cluster.v1.CertificateAuthority; +import com.google.cloud.redis.cluster.v1.CertificateAuthorityName; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest; + +public class SyncGetClusterCertificateAuthority { + + public static void main(String[] args) throws Exception { + syncGetClusterCertificateAuthority(); + } + + public static void syncGetClusterCertificateAuthority() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + GetClusterCertificateAuthorityRequest request = + GetClusterCertificateAuthorityRequest.newBuilder() + .setName( + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .build(); + CertificateAuthority response = + cloudRedisClusterClient.getClusterCertificateAuthority(request); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_GetClusterCertificateAuthority_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getclustercertificateauthority/SyncGetClusterCertificateAuthorityCertificateauthorityname.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getclustercertificateauthority/SyncGetClusterCertificateAuthorityCertificateauthorityname.java new file mode 100644 index 000000000000..468a641a0247 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getclustercertificateauthority/SyncGetClusterCertificateAuthorityCertificateauthorityname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_GetClusterCertificateAuthority_Certificateauthorityname_sync] +import com.google.cloud.redis.cluster.v1.CertificateAuthority; +import com.google.cloud.redis.cluster.v1.CertificateAuthorityName; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; + +public class SyncGetClusterCertificateAuthorityCertificateauthorityname { + + public static void main(String[] args) throws Exception { + syncGetClusterCertificateAuthorityCertificateauthorityname(); + } + + public static void syncGetClusterCertificateAuthorityCertificateauthorityname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + CertificateAuthorityName name = + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + CertificateAuthority response = cloudRedisClusterClient.getClusterCertificateAuthority(name); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_GetClusterCertificateAuthority_Certificateauthorityname_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getclustercertificateauthority/SyncGetClusterCertificateAuthorityString.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getclustercertificateauthority/SyncGetClusterCertificateAuthorityString.java new file mode 100644 index 000000000000..15195ae1a62c --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1/cloudrediscluster/getclustercertificateauthority/SyncGetClusterCertificateAuthorityString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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.cluster.v1.samples; + +// [START redis_v1_generated_CloudRedisCluster_GetClusterCertificateAuthority_String_sync] +import com.google.cloud.redis.cluster.v1.CertificateAuthority; +import com.google.cloud.redis.cluster.v1.CertificateAuthorityName; +import com.google.cloud.redis.cluster.v1.CloudRedisClusterClient; + +public class SyncGetClusterCertificateAuthorityString { + + public static void main(String[] args) throws Exception { + syncGetClusterCertificateAuthorityString(); + } + + public static void syncGetClusterCertificateAuthorityString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + String name = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString(); + CertificateAuthority response = cloudRedisClusterClient.getClusterCertificateAuthority(name); + } + } +} +// [END redis_v1_generated_CloudRedisCluster_GetClusterCertificateAuthority_String_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getclustercertificateauthority/AsyncGetClusterCertificateAuthority.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getclustercertificateauthority/AsyncGetClusterCertificateAuthority.java new file mode 100644 index 000000000000..3669ea85dd09 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getclustercertificateauthority/AsyncGetClusterCertificateAuthority.java @@ -0,0 +1,51 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_GetClusterCertificateAuthority_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.redis.cluster.v1beta1.CertificateAuthority; +import com.google.cloud.redis.cluster.v1beta1.CertificateAuthorityName; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest; + +public class AsyncGetClusterCertificateAuthority { + + public static void main(String[] args) throws Exception { + asyncGetClusterCertificateAuthority(); + } + + public static void asyncGetClusterCertificateAuthority() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + GetClusterCertificateAuthorityRequest request = + GetClusterCertificateAuthorityRequest.newBuilder() + .setName( + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .build(); + ApiFuture future = + cloudRedisClusterClient.getClusterCertificateAuthorityCallable().futureCall(request); + // Do something. + CertificateAuthority response = future.get(); + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_GetClusterCertificateAuthority_async] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getclustercertificateauthority/SyncGetClusterCertificateAuthority.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getclustercertificateauthority/SyncGetClusterCertificateAuthority.java new file mode 100644 index 000000000000..37634ee59c18 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getclustercertificateauthority/SyncGetClusterCertificateAuthority.java @@ -0,0 +1,48 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_GetClusterCertificateAuthority_sync] +import com.google.cloud.redis.cluster.v1beta1.CertificateAuthority; +import com.google.cloud.redis.cluster.v1beta1.CertificateAuthorityName; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; +import com.google.cloud.redis.cluster.v1beta1.GetClusterCertificateAuthorityRequest; + +public class SyncGetClusterCertificateAuthority { + + public static void main(String[] args) throws Exception { + syncGetClusterCertificateAuthority(); + } + + public static void syncGetClusterCertificateAuthority() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + GetClusterCertificateAuthorityRequest request = + GetClusterCertificateAuthorityRequest.newBuilder() + .setName( + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString()) + .build(); + CertificateAuthority response = + cloudRedisClusterClient.getClusterCertificateAuthority(request); + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_GetClusterCertificateAuthority_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getclustercertificateauthority/SyncGetClusterCertificateAuthorityCertificateauthorityname.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getclustercertificateauthority/SyncGetClusterCertificateAuthorityCertificateauthorityname.java new file mode 100644 index 000000000000..e67f36496d00 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getclustercertificateauthority/SyncGetClusterCertificateAuthorityCertificateauthorityname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_GetClusterCertificateAuthority_Certificateauthorityname_sync] +import com.google.cloud.redis.cluster.v1beta1.CertificateAuthority; +import com.google.cloud.redis.cluster.v1beta1.CertificateAuthorityName; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; + +public class SyncGetClusterCertificateAuthorityCertificateauthorityname { + + public static void main(String[] args) throws Exception { + syncGetClusterCertificateAuthorityCertificateauthorityname(); + } + + public static void syncGetClusterCertificateAuthorityCertificateauthorityname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + CertificateAuthorityName name = + CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]"); + CertificateAuthority response = cloudRedisClusterClient.getClusterCertificateAuthority(name); + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_GetClusterCertificateAuthority_Certificateauthorityname_sync] diff --git a/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getclustercertificateauthority/SyncGetClusterCertificateAuthorityString.java b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getclustercertificateauthority/SyncGetClusterCertificateAuthorityString.java new file mode 100644 index 000000000000..e3bdd83d5904 --- /dev/null +++ b/java-redis-cluster/samples/snippets/generated/com/google/cloud/redis/cluster/v1beta1/cloudrediscluster/getclustercertificateauthority/SyncGetClusterCertificateAuthorityString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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.cluster.v1beta1.samples; + +// [START redis_v1beta1_generated_CloudRedisCluster_GetClusterCertificateAuthority_String_sync] +import com.google.cloud.redis.cluster.v1beta1.CertificateAuthority; +import com.google.cloud.redis.cluster.v1beta1.CertificateAuthorityName; +import com.google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient; + +public class SyncGetClusterCertificateAuthorityString { + + public static void main(String[] args) throws Exception { + syncGetClusterCertificateAuthorityString(); + } + + public static void syncGetClusterCertificateAuthorityString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudRedisClusterClient cloudRedisClusterClient = CloudRedisClusterClient.create()) { + String name = CertificateAuthorityName.of("[PROJECT]", "[LOCATION]", "[CLUSTER]").toString(); + CertificateAuthority response = cloudRedisClusterClient.getClusterCertificateAuthority(name); + } + } +} +// [END redis_v1beta1_generated_CloudRedisCluster_GetClusterCertificateAuthority_String_sync] diff --git a/java-retail/README.md b/java-retail/README.md index acb7a8a8b057..76ea0c4e8be3 100644 --- a/java-retail/README.md +++ b/java-retail/README.md @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-retail.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-retail/2.46.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-retail/2.47.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-retail/google-cloud-retail/pom.xml b/java-retail/google-cloud-retail/pom.xml index f250e2f42610..f9daa8885f83 100644 --- a/java-retail/google-cloud-retail/pom.xml +++ b/java-retail/google-cloud-retail/pom.xml @@ -115,5 +115,10 @@ testlib test + + com.google.api.grpc + grpc-google-common-protos + test + diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/CompletionServiceClient.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/CompletionServiceClient.java index fce03c837551..f6cf6ef3f419 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/CompletionServiceClient.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/CompletionServiceClient.java @@ -55,6 +55,7 @@ * .setDeviceType("deviceType781190832") * .setDataset("dataset1443214456") * .setMaxSuggestions(618824852) + * .setEnableAttributeSuggestions(true) * .setEntity("entity-1298275357") * .build(); * CompleteQueryResponse response = completionServiceClient.completeQuery(request); @@ -263,6 +264,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * .setDeviceType("deviceType781190832") * .setDataset("dataset1443214456") * .setMaxSuggestions(618824852) + * .setEnableAttributeSuggestions(true) * .setEntity("entity-1298275357") * .build(); * CompleteQueryResponse response = completionServiceClient.completeQuery(request); @@ -301,6 +303,7 @@ public final CompleteQueryResponse completeQuery(CompleteQueryRequest request) { * .setDeviceType("deviceType781190832") * .setDataset("dataset1443214456") * .setMaxSuggestions(618824852) + * .setEnableAttributeSuggestions(true) * .setEntity("entity-1298275357") * .build(); * ApiFuture future = diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ProductServiceClient.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ProductServiceClient.java index d4d0829436a8..2e893c7ae4da 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ProductServiceClient.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ProductServiceClient.java @@ -167,6 +167,23 @@ * * * + *

PurgeProducts + *

Permanently deletes all selected [Product][google.cloud.retail.v2.Product]s under a branch. + *

This process is asynchronous. If the request is valid, the removal will be enqueued and processed offline. Depending on the number of [Product][google.cloud.retail.v2.Product]s, this operation could take hours to complete. Before the operation completes, some [Product][google.cloud.retail.v2.Product]s may still be returned by [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct] or [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts]. + *

Depending on the number of [Product][google.cloud.retail.v2.Product]s, this operation could take hours to complete. To get a sample of [Product][google.cloud.retail.v2.Product]s that would be deleted, set [PurgeProductsRequest.force][google.cloud.retail.v2.PurgeProductsRequest.force] to false. + * + *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • purgeProductsAsync(PurgeProductsRequest request) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • purgeProductsOperationCallable() + *

  • purgeProductsCallable() + *

+ * + * + * *

ImportProducts *

Bulk import of multiple [Product][google.cloud.retail.v2.Product]s. *

Request processing may be synchronous. Non-existing items are created. @@ -211,7 +228,7 @@ * * *

AddFulfillmentPlaces - *

It is recommended to use the [ProductService.AddLocalInventories][google.cloud.retail.v2.ProductService.AddLocalInventories] method instead of [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2.ProductService.AddFulfillmentPlaces]. [ProductService.AddLocalInventories][google.cloud.retail.v2.ProductService.AddLocalInventories] achieves the same results but provides more fine-grained control over ingesting local inventory data. + *

We recommend that you use the [ProductService.AddLocalInventories][google.cloud.retail.v2.ProductService.AddLocalInventories] method instead of the [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2.ProductService.AddFulfillmentPlaces] method. [ProductService.AddLocalInventories][google.cloud.retail.v2.ProductService.AddLocalInventories] achieves the same results but provides more fine-grained control over ingesting local inventory data. *

Incrementally adds place IDs to [Product.fulfillment_info.place_ids][google.cloud.retail.v2.FulfillmentInfo.place_ids]. *

This process is asynchronous and does not require the [Product][google.cloud.retail.v2.Product] to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the added place IDs are not immediately manifested in the [Product][google.cloud.retail.v2.Product] queried by [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct] or [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts]. *

The returned [Operation][google.longrunning.Operation]s will be obsolete after 1 day, and [GetOperation][google.longrunning.Operations.GetOperation] API will return NOT_FOUND afterwards. @@ -235,7 +252,7 @@ * * *

RemoveFulfillmentPlaces - *

It is recommended to use the [ProductService.RemoveLocalInventories][google.cloud.retail.v2.ProductService.RemoveLocalInventories] method instead of [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2.ProductService.RemoveFulfillmentPlaces]. [ProductService.RemoveLocalInventories][google.cloud.retail.v2.ProductService.RemoveLocalInventories] achieves the same results but provides more fine-grained control over ingesting local inventory data. + *

We recommend that you use the [ProductService.RemoveLocalInventories][google.cloud.retail.v2.ProductService.RemoveLocalInventories] method instead of the [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2.ProductService.RemoveFulfillmentPlaces] method. [ProductService.RemoveLocalInventories][google.cloud.retail.v2.ProductService.RemoveLocalInventories] achieves the same results but provides more fine-grained control over ingesting local inventory data. *

Incrementally removes place IDs from a [Product.fulfillment_info.place_ids][google.cloud.retail.v2.FulfillmentInfo.place_ids]. *

This process is asynchronous and does not require the [Product][google.cloud.retail.v2.Product] to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the removed place IDs are not immediately manifested in the [Product][google.cloud.retail.v2.Product] queried by [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct] or [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts]. *

The returned [Operation][google.longrunning.Operation]s will be obsolete after 1 day, and [GetOperation][google.longrunning.Operations.GetOperation] API will return NOT_FOUND afterwards. @@ -1142,6 +1159,137 @@ public final UnaryCallable deleteProductCallable() return stub.deleteProductCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Permanently deletes all selected [Product][google.cloud.retail.v2.Product]s under a branch. + * + *

This process is asynchronous. If the request is valid, the removal will be enqueued and + * processed offline. Depending on the number of [Product][google.cloud.retail.v2.Product]s, this + * operation could take hours to complete. Before the operation completes, some + * [Product][google.cloud.retail.v2.Product]s may still be returned by + * [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct] or + * [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts]. + * + *

Depending on the number of [Product][google.cloud.retail.v2.Product]s, this operation could + * take hours to complete. To get a sample of [Product][google.cloud.retail.v2.Product]s that + * would be deleted, set + * [PurgeProductsRequest.force][google.cloud.retail.v2.PurgeProductsRequest.force] to false. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ProductServiceClient productServiceClient = ProductServiceClient.create()) {
+   *   PurgeProductsRequest request =
+   *       PurgeProductsRequest.newBuilder()
+   *           .setParent(
+   *               BranchName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setForce(true)
+   *           .build();
+   *   PurgeProductsResponse response = productServiceClient.purgeProductsAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture purgeProductsAsync( + PurgeProductsRequest request) { + return purgeProductsOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Permanently deletes all selected [Product][google.cloud.retail.v2.Product]s under a branch. + * + *

This process is asynchronous. If the request is valid, the removal will be enqueued and + * processed offline. Depending on the number of [Product][google.cloud.retail.v2.Product]s, this + * operation could take hours to complete. Before the operation completes, some + * [Product][google.cloud.retail.v2.Product]s may still be returned by + * [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct] or + * [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts]. + * + *

Depending on the number of [Product][google.cloud.retail.v2.Product]s, this operation could + * take hours to complete. To get a sample of [Product][google.cloud.retail.v2.Product]s that + * would be deleted, set + * [PurgeProductsRequest.force][google.cloud.retail.v2.PurgeProductsRequest.force] to false. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ProductServiceClient productServiceClient = ProductServiceClient.create()) {
+   *   PurgeProductsRequest request =
+   *       PurgeProductsRequest.newBuilder()
+   *           .setParent(
+   *               BranchName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setForce(true)
+   *           .build();
+   *   OperationFuture future =
+   *       productServiceClient.purgeProductsOperationCallable().futureCall(request);
+   *   // Do something.
+   *   PurgeProductsResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + purgeProductsOperationCallable() { + return stub.purgeProductsOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Permanently deletes all selected [Product][google.cloud.retail.v2.Product]s under a branch. + * + *

This process is asynchronous. If the request is valid, the removal will be enqueued and + * processed offline. Depending on the number of [Product][google.cloud.retail.v2.Product]s, this + * operation could take hours to complete. Before the operation completes, some + * [Product][google.cloud.retail.v2.Product]s may still be returned by + * [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct] or + * [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts]. + * + *

Depending on the number of [Product][google.cloud.retail.v2.Product]s, this operation could + * take hours to complete. To get a sample of [Product][google.cloud.retail.v2.Product]s that + * would be deleted, set + * [PurgeProductsRequest.force][google.cloud.retail.v2.PurgeProductsRequest.force] to false. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ProductServiceClient productServiceClient = ProductServiceClient.create()) {
+   *   PurgeProductsRequest request =
+   *       PurgeProductsRequest.newBuilder()
+   *           .setParent(
+   *               BranchName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setForce(true)
+   *           .build();
+   *   ApiFuture future =
+   *       productServiceClient.purgeProductsCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable purgeProductsCallable() { + return stub.purgeProductsCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Bulk import of multiple [Product][google.cloud.retail.v2.Product]s. @@ -1597,10 +1745,11 @@ public final UnaryCallable setInventoryCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * It is recommended to use the + * We recommend that you use the * [ProductService.AddLocalInventories][google.cloud.retail.v2.ProductService.AddLocalInventories] - * method instead of - * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2.ProductService.AddFulfillmentPlaces]. + * method instead of the + * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2.ProductService.AddFulfillmentPlaces] + * method. * [ProductService.AddLocalInventories][google.cloud.retail.v2.ProductService.AddLocalInventories] * achieves the same results but provides more fine-grained control over ingesting local inventory * data. @@ -1659,10 +1808,11 @@ public final UnaryCallable setInventoryCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * It is recommended to use the + * We recommend that you use the * [ProductService.AddLocalInventories][google.cloud.retail.v2.ProductService.AddLocalInventories] - * method instead of - * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2.ProductService.AddFulfillmentPlaces]. + * method instead of the + * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2.ProductService.AddFulfillmentPlaces] + * method. * [ProductService.AddLocalInventories][google.cloud.retail.v2.ProductService.AddLocalInventories] * achieves the same results but provides more fine-grained control over ingesting local inventory * data. @@ -1720,10 +1870,11 @@ public final UnaryCallable setInventoryCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * It is recommended to use the + * We recommend that you use the * [ProductService.AddLocalInventories][google.cloud.retail.v2.ProductService.AddLocalInventories] - * method instead of - * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2.ProductService.AddFulfillmentPlaces]. + * method instead of the + * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2.ProductService.AddFulfillmentPlaces] + * method. * [ProductService.AddLocalInventories][google.cloud.retail.v2.ProductService.AddLocalInventories] * achieves the same results but provides more fine-grained control over ingesting local inventory * data. @@ -1781,10 +1932,11 @@ public final UnaryCallable setInventoryCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * It is recommended to use the + * We recommend that you use the * [ProductService.AddLocalInventories][google.cloud.retail.v2.ProductService.AddLocalInventories] - * method instead of - * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2.ProductService.AddFulfillmentPlaces]. + * method instead of the + * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2.ProductService.AddFulfillmentPlaces] + * method. * [ProductService.AddLocalInventories][google.cloud.retail.v2.ProductService.AddLocalInventories] * achieves the same results but provides more fine-grained control over ingesting local inventory * data. @@ -1842,10 +1994,11 @@ public final UnaryCallable setInventoryCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * It is recommended to use the + * We recommend that you use the * [ProductService.AddLocalInventories][google.cloud.retail.v2.ProductService.AddLocalInventories] - * method instead of - * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2.ProductService.AddFulfillmentPlaces]. + * method instead of the + * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2.ProductService.AddFulfillmentPlaces] + * method. * [ProductService.AddLocalInventories][google.cloud.retail.v2.ProductService.AddLocalInventories] * achieves the same results but provides more fine-grained control over ingesting local inventory * data. @@ -1902,10 +2055,11 @@ public final UnaryCallable setInventoryCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * It is recommended to use the + * We recommend that you use the * [ProductService.RemoveLocalInventories][google.cloud.retail.v2.ProductService.RemoveLocalInventories] - * method instead of - * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2.ProductService.RemoveFulfillmentPlaces]. + * method instead of the + * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2.ProductService.RemoveFulfillmentPlaces] + * method. * [ProductService.RemoveLocalInventories][google.cloud.retail.v2.ProductService.RemoveLocalInventories] * achieves the same results but provides more fine-grained control over ingesting local inventory * data. @@ -1964,10 +2118,11 @@ public final UnaryCallable setInventoryCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * It is recommended to use the + * We recommend that you use the * [ProductService.RemoveLocalInventories][google.cloud.retail.v2.ProductService.RemoveLocalInventories] - * method instead of - * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2.ProductService.RemoveFulfillmentPlaces]. + * method instead of the + * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2.ProductService.RemoveFulfillmentPlaces] + * method. * [ProductService.RemoveLocalInventories][google.cloud.retail.v2.ProductService.RemoveLocalInventories] * achieves the same results but provides more fine-grained control over ingesting local inventory * data. @@ -2025,10 +2180,11 @@ public final UnaryCallable setInventoryCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * It is recommended to use the + * We recommend that you use the * [ProductService.RemoveLocalInventories][google.cloud.retail.v2.ProductService.RemoveLocalInventories] - * method instead of - * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2.ProductService.RemoveFulfillmentPlaces]. + * method instead of the + * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2.ProductService.RemoveFulfillmentPlaces] + * method. * [ProductService.RemoveLocalInventories][google.cloud.retail.v2.ProductService.RemoveLocalInventories] * achieves the same results but provides more fine-grained control over ingesting local inventory * data. @@ -2086,10 +2242,11 @@ public final UnaryCallable setInventoryCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * It is recommended to use the + * We recommend that you use the * [ProductService.RemoveLocalInventories][google.cloud.retail.v2.ProductService.RemoveLocalInventories] - * method instead of - * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2.ProductService.RemoveFulfillmentPlaces]. + * method instead of the + * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2.ProductService.RemoveFulfillmentPlaces] + * method. * [ProductService.RemoveLocalInventories][google.cloud.retail.v2.ProductService.RemoveLocalInventories] * achieves the same results but provides more fine-grained control over ingesting local inventory * data. @@ -2149,10 +2306,11 @@ public final UnaryCallable setInventoryCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * It is recommended to use the + * We recommend that you use the * [ProductService.RemoveLocalInventories][google.cloud.retail.v2.ProductService.RemoveLocalInventories] - * method instead of - * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2.ProductService.RemoveFulfillmentPlaces]. + * method instead of the + * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2.ProductService.RemoveFulfillmentPlaces] + * method. * [ProductService.RemoveLocalInventories][google.cloud.retail.v2.ProductService.RemoveLocalInventories] * achieves the same results but provides more fine-grained control over ingesting local inventory * data. diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ProductServiceSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ProductServiceSettings.java index f9cedcb644cf..a05a22390fa7 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ProductServiceSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/ProductServiceSettings.java @@ -104,6 +104,17 @@ public UnaryCallSettings deleteProductSettings() { return ((ProductServiceStubSettings) getStubSettings()).deleteProductSettings(); } + /** Returns the object with the settings used for calls to purgeProducts. */ + public UnaryCallSettings purgeProductsSettings() { + return ((ProductServiceStubSettings) getStubSettings()).purgeProductsSettings(); + } + + /** Returns the object with the settings used for calls to purgeProducts. */ + public OperationCallSettings + purgeProductsOperationSettings() { + return ((ProductServiceStubSettings) getStubSettings()).purgeProductsOperationSettings(); + } + /** Returns the object with the settings used for calls to importProducts. */ public UnaryCallSettings importProductsSettings() { return ((ProductServiceStubSettings) getStubSettings()).importProductsSettings(); @@ -321,6 +332,18 @@ public UnaryCallSettings.Builder deleteProductSetti return getStubSettingsBuilder().deleteProductSettings(); } + /** Returns the builder for the settings used for calls to purgeProducts. */ + public UnaryCallSettings.Builder purgeProductsSettings() { + return getStubSettingsBuilder().purgeProductsSettings(); + } + + /** Returns the builder for the settings used for calls to purgeProducts. */ + public OperationCallSettings.Builder< + PurgeProductsRequest, PurgeProductsResponse, PurgeProductsMetadata> + purgeProductsOperationSettings() { + return getStubSettingsBuilder().purgeProductsOperationSettings(); + } + /** Returns the builder for the settings used for calls to importProducts. */ public UnaryCallSettings.Builder importProductsSettings() { return getStubSettingsBuilder().importProductsSettings(); diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/gapic_metadata.json b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/gapic_metadata.json index 5dfd9bec5833..b4bfb76af5fa 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/gapic_metadata.json +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/gapic_metadata.json @@ -169,6 +169,9 @@ "ListProducts": { "methods": ["listProducts", "listProducts", "listProducts", "listProductsPagedCallable", "listProductsCallable"] }, + "PurgeProducts": { + "methods": ["purgeProductsAsync", "purgeProductsOperationCallable", "purgeProductsCallable"] + }, "RemoveFulfillmentPlaces": { "methods": ["removeFulfillmentPlacesAsync", "removeFulfillmentPlacesAsync", "removeFulfillmentPlacesAsync", "removeFulfillmentPlacesOperationCallable", "removeFulfillmentPlacesCallable"] }, diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/package-info.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/package-info.java index 41849e4202fa..49800e5fc2b1 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/package-info.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/package-info.java @@ -15,7 +15,7 @@ */ /** - * A client to Retail API + * A client to Vertex AI Search for Retail API * *

The interfaces provided are listed below, along with usage samples. * @@ -88,6 +88,7 @@ * .setDeviceType("deviceType781190832") * .setDataset("dataset1443214456") * .setMaxSuggestions(618824852) + * .setEnableAttributeSuggestions(true) * .setEntity("entity-1298275357") * .build(); * CompleteQueryResponse response = completionServiceClient.completeQuery(request); diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/AnalyticsServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/AnalyticsServiceStubSettings.java index 7cbbad7412e5..28974b2e9b94 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/AnalyticsServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/AnalyticsServiceStubSettings.java @@ -243,7 +243,7 @@ public static class Builder extends StubSettings.Builder> definitions = ImmutableMap.builder(); definitions.put( - "retry_policy_2_codes", + "retry_policy_3_codes", ImmutableSet.copyOf( Lists.newArrayList( StatusCode.Code.UNAVAILABLE, StatusCode.Code.DEADLINE_EXCEEDED))); @@ -265,7 +265,7 @@ public static class Builder extends StubSettings.BuildernewUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create( diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/GrpcProductServiceStub.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/GrpcProductServiceStub.java index 5f9359b4b3ee..520441d77577 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/GrpcProductServiceStub.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/GrpcProductServiceStub.java @@ -41,6 +41,9 @@ import com.google.cloud.retail.v2.ListProductsRequest; import com.google.cloud.retail.v2.ListProductsResponse; import com.google.cloud.retail.v2.Product; +import com.google.cloud.retail.v2.PurgeProductsMetadata; +import com.google.cloud.retail.v2.PurgeProductsRequest; +import com.google.cloud.retail.v2.PurgeProductsResponse; import com.google.cloud.retail.v2.RemoveFulfillmentPlacesMetadata; import com.google.cloud.retail.v2.RemoveFulfillmentPlacesRequest; import com.google.cloud.retail.v2.RemoveFulfillmentPlacesResponse; @@ -114,6 +117,16 @@ public class GrpcProductServiceStub extends ProductServiceStub { .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) .build(); + private static final MethodDescriptor + purgeProductsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.retail.v2.ProductService/PurgeProducts") + .setRequestMarshaller( + ProtoUtils.marshaller(PurgeProductsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor importProductsMethodDescriptor = MethodDescriptor.newBuilder() @@ -180,6 +193,10 @@ public class GrpcProductServiceStub extends ProductServiceStub { listProductsPagedCallable; private final UnaryCallable updateProductCallable; private final UnaryCallable deleteProductCallable; + private final UnaryCallable purgeProductsCallable; + private final OperationCallable< + PurgeProductsRequest, PurgeProductsResponse, PurgeProductsMetadata> + purgeProductsOperationCallable; private final UnaryCallable importProductsCallable; private final OperationCallable importProductsOperationCallable; @@ -303,6 +320,16 @@ protected GrpcProductServiceStub( return builder.build(); }) .build(); + GrpcCallSettings purgeProductsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(purgeProductsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); GrpcCallSettings importProductsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(importProductsMethodDescriptor) @@ -384,6 +411,15 @@ protected GrpcProductServiceStub( this.deleteProductCallable = callableFactory.createUnaryCallable( deleteProductTransportSettings, settings.deleteProductSettings(), clientContext); + this.purgeProductsCallable = + callableFactory.createUnaryCallable( + purgeProductsTransportSettings, settings.purgeProductsSettings(), clientContext); + this.purgeProductsOperationCallable = + callableFactory.createOperationCallable( + purgeProductsTransportSettings, + settings.purgeProductsOperationSettings(), + clientContext, + operationsStub); this.importProductsCallable = callableFactory.createUnaryCallable( importProductsTransportSettings, settings.importProductsSettings(), clientContext); @@ -485,6 +521,17 @@ public UnaryCallable deleteProductCallable() { return deleteProductCallable; } + @Override + public UnaryCallable purgeProductsCallable() { + return purgeProductsCallable; + } + + @Override + public OperationCallable + purgeProductsOperationCallable() { + return purgeProductsOperationCallable; + } + @Override public UnaryCallable importProductsCallable() { return importProductsCallable; diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/HttpJsonCompletionServiceStub.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/HttpJsonCompletionServiceStub.java index b8db5f60e434..83ab2d252692 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/HttpJsonCompletionServiceStub.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/HttpJsonCompletionServiceStub.java @@ -86,6 +86,10 @@ public class HttpJsonCompletionServiceStub extends CompletionServiceStub { ProtoRestSerializer.create(); serializer.putQueryParam(fields, "dataset", request.getDataset()); serializer.putQueryParam(fields, "deviceType", request.getDeviceType()); + serializer.putQueryParam( + fields, + "enableAttributeSuggestions", + request.getEnableAttributeSuggestions()); serializer.putQueryParam(fields, "entity", request.getEntity()); serializer.putQueryParam( fields, "languageCodes", request.getLanguageCodesList()); diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/HttpJsonProductServiceStub.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/HttpJsonProductServiceStub.java index 5b93f1bac8d1..10ec02d0d463 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/HttpJsonProductServiceStub.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/HttpJsonProductServiceStub.java @@ -49,6 +49,9 @@ import com.google.cloud.retail.v2.ListProductsRequest; import com.google.cloud.retail.v2.ListProductsResponse; import com.google.cloud.retail.v2.Product; +import com.google.cloud.retail.v2.PurgeProductsMetadata; +import com.google.cloud.retail.v2.PurgeProductsRequest; +import com.google.cloud.retail.v2.PurgeProductsResponse; import com.google.cloud.retail.v2.RemoveFulfillmentPlacesMetadata; import com.google.cloud.retail.v2.RemoveFulfillmentPlacesRequest; import com.google.cloud.retail.v2.RemoveFulfillmentPlacesResponse; @@ -81,18 +84,20 @@ public class HttpJsonProductServiceStub extends ProductServiceStub { private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder() - .add(RemoveLocalInventoriesMetadata.getDescriptor()) - .add(AddLocalInventoriesMetadata.getDescriptor()) - .add(AddFulfillmentPlacesMetadata.getDescriptor()) .add(RemoveFulfillmentPlacesMetadata.getDescriptor()) + .add(PurgeProductsMetadata.getDescriptor()) .add(SetInventoryResponse.getDescriptor()) .add(AddLocalInventoriesResponse.getDescriptor()) .add(ImportProductsResponse.getDescriptor()) .add(RemoveFulfillmentPlacesResponse.getDescriptor()) - .add(RemoveLocalInventoriesResponse.getDescriptor()) - .add(ImportMetadata.getDescriptor()) .add(AddFulfillmentPlacesResponse.getDescriptor()) .add(SetInventoryMetadata.getDescriptor()) + .add(RemoveLocalInventoriesMetadata.getDescriptor()) + .add(AddLocalInventoriesMetadata.getDescriptor()) + .add(AddFulfillmentPlacesMetadata.getDescriptor()) + .add(PurgeProductsResponse.getDescriptor()) + .add(RemoveLocalInventoriesResponse.getDescriptor()) + .add(ImportMetadata.getDescriptor()) .build(); private static final ApiMethodDescriptor @@ -279,6 +284,46 @@ public class HttpJsonProductServiceStub extends ProductServiceStub { .build()) .build(); + private static final ApiMethodDescriptor + purgeProductsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.retail.v2.ProductService/PurgeProducts") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{parent=projects/*/locations/*/catalogs/*/branches/*}/products:purge", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (PurgeProductsRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + private static final ApiMethodDescriptor importProductsMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -527,6 +572,10 @@ public class HttpJsonProductServiceStub extends ProductServiceStub { listProductsPagedCallable; private final UnaryCallable updateProductCallable; private final UnaryCallable deleteProductCallable; + private final UnaryCallable purgeProductsCallable; + private final OperationCallable< + PurgeProductsRequest, PurgeProductsResponse, PurgeProductsMetadata> + purgeProductsOperationCallable; private final UnaryCallable importProductsCallable; private final OperationCallable importProductsOperationCallable; @@ -692,6 +741,17 @@ protected HttpJsonProductServiceStub( return builder.build(); }) .build(); + HttpJsonCallSettings purgeProductsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(purgeProductsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); HttpJsonCallSettings importProductsTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(importProductsMethodDescriptor) @@ -781,6 +841,15 @@ protected HttpJsonProductServiceStub( this.deleteProductCallable = callableFactory.createUnaryCallable( deleteProductTransportSettings, settings.deleteProductSettings(), clientContext); + this.purgeProductsCallable = + callableFactory.createUnaryCallable( + purgeProductsTransportSettings, settings.purgeProductsSettings(), clientContext); + this.purgeProductsOperationCallable = + callableFactory.createOperationCallable( + purgeProductsTransportSettings, + settings.purgeProductsOperationSettings(), + clientContext, + httpJsonOperationsStub); this.importProductsCallable = callableFactory.createUnaryCallable( importProductsTransportSettings, settings.importProductsSettings(), clientContext); @@ -856,6 +925,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(listProductsMethodDescriptor); methodDescriptors.add(updateProductMethodDescriptor); methodDescriptors.add(deleteProductMethodDescriptor); + methodDescriptors.add(purgeProductsMethodDescriptor); methodDescriptors.add(importProductsMethodDescriptor); methodDescriptors.add(setInventoryMethodDescriptor); methodDescriptors.add(addFulfillmentPlacesMethodDescriptor); @@ -899,6 +969,17 @@ public UnaryCallable deleteProductCallable() { return deleteProductCallable; } + @Override + public UnaryCallable purgeProductsCallable() { + return purgeProductsCallable; + } + + @Override + public OperationCallable + purgeProductsOperationCallable() { + return purgeProductsOperationCallable; + } + @Override public UnaryCallable importProductsCallable() { return importProductsCallable; diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ModelServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ModelServiceStubSettings.java index dc9565ce833d..7bf28aa5a0a0 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ModelServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ModelServiceStubSettings.java @@ -381,7 +381,7 @@ public static class Builder extends StubSettings.Builder> definitions = ImmutableMap.builder(); definitions.put( - "retry_policy_2_codes", + "retry_policy_3_codes", ImmutableSet.copyOf( Lists.newArrayList( StatusCode.Code.UNAVAILABLE, StatusCode.Code.DEADLINE_EXCEEDED))); @@ -403,7 +403,7 @@ public static class Builder extends StubSettings.BuildernewUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Model.class)) @@ -556,8 +556,8 @@ private static Builder initDefaults(Builder builder) { .tuneModelOperationSettings() .setInitialCallSettings( UnaryCallSettings.newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(TuneModelResponse.class)) diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ProductServiceStub.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ProductServiceStub.java index be75e7178177..79b4d94dd8d2 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ProductServiceStub.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ProductServiceStub.java @@ -36,6 +36,9 @@ import com.google.cloud.retail.v2.ListProductsRequest; import com.google.cloud.retail.v2.ListProductsResponse; import com.google.cloud.retail.v2.Product; +import com.google.cloud.retail.v2.PurgeProductsMetadata; +import com.google.cloud.retail.v2.PurgeProductsRequest; +import com.google.cloud.retail.v2.PurgeProductsResponse; import com.google.cloud.retail.v2.RemoveFulfillmentPlacesMetadata; import com.google.cloud.retail.v2.RemoveFulfillmentPlacesRequest; import com.google.cloud.retail.v2.RemoveFulfillmentPlacesResponse; @@ -92,6 +95,15 @@ public UnaryCallable deleteProductCallable() { throw new UnsupportedOperationException("Not implemented: deleteProductCallable()"); } + public OperationCallable + purgeProductsOperationCallable() { + throw new UnsupportedOperationException("Not implemented: purgeProductsOperationCallable()"); + } + + public UnaryCallable purgeProductsCallable() { + throw new UnsupportedOperationException("Not implemented: purgeProductsCallable()"); + } + public OperationCallable importProductsOperationCallable() { throw new UnsupportedOperationException("Not implemented: importProductsOperationCallable()"); diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ProductServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ProductServiceStubSettings.java index 6c06f27d381a..732f8852ff89 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ProductServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/ProductServiceStubSettings.java @@ -62,6 +62,9 @@ import com.google.cloud.retail.v2.ListProductsRequest; import com.google.cloud.retail.v2.ListProductsResponse; import com.google.cloud.retail.v2.Product; +import com.google.cloud.retail.v2.PurgeProductsMetadata; +import com.google.cloud.retail.v2.PurgeProductsRequest; +import com.google.cloud.retail.v2.PurgeProductsResponse; import com.google.cloud.retail.v2.RemoveFulfillmentPlacesMetadata; import com.google.cloud.retail.v2.RemoveFulfillmentPlacesRequest; import com.google.cloud.retail.v2.RemoveFulfillmentPlacesResponse; @@ -133,6 +136,10 @@ public class ProductServiceStubSettings extends StubSettings updateProductSettings; private final UnaryCallSettings deleteProductSettings; + private final UnaryCallSettings purgeProductsSettings; + private final OperationCallSettings< + PurgeProductsRequest, PurgeProductsResponse, PurgeProductsMetadata> + purgeProductsOperationSettings; private final UnaryCallSettings importProductsSettings; private final OperationCallSettings importProductsOperationSettings; @@ -244,6 +251,17 @@ public UnaryCallSettings deleteProductSettings() { return deleteProductSettings; } + /** Returns the object with the settings used for calls to purgeProducts. */ + public UnaryCallSettings purgeProductsSettings() { + return purgeProductsSettings; + } + + /** Returns the object with the settings used for calls to purgeProducts. */ + public OperationCallSettings + purgeProductsOperationSettings() { + return purgeProductsOperationSettings; + } + /** Returns the object with the settings used for calls to importProducts. */ public UnaryCallSettings importProductsSettings() { return importProductsSettings; @@ -435,6 +453,8 @@ protected ProductServiceStubSettings(Builder settingsBuilder) throws IOException listProductsSettings = settingsBuilder.listProductsSettings().build(); updateProductSettings = settingsBuilder.updateProductSettings().build(); deleteProductSettings = settingsBuilder.deleteProductSettings().build(); + purgeProductsSettings = settingsBuilder.purgeProductsSettings().build(); + purgeProductsOperationSettings = settingsBuilder.purgeProductsOperationSettings().build(); importProductsSettings = settingsBuilder.importProductsSettings().build(); importProductsOperationSettings = settingsBuilder.importProductsOperationSettings().build(); setInventorySettings = settingsBuilder.setInventorySettings().build(); @@ -463,6 +483,10 @@ public static class Builder extends StubSettings.Builder updateProductSettings; private final UnaryCallSettings.Builder deleteProductSettings; + private final UnaryCallSettings.Builder purgeProductsSettings; + private final OperationCallSettings.Builder< + PurgeProductsRequest, PurgeProductsResponse, PurgeProductsMetadata> + purgeProductsOperationSettings; private final UnaryCallSettings.Builder importProductsSettings; private final OperationCallSettings.Builder< @@ -503,12 +527,12 @@ public static class Builder extends StubSettings.Builder> definitions = ImmutableMap.builder(); definitions.put( - "retry_policy_1_codes", + "retry_policy_2_codes", ImmutableSet.copyOf( Lists.newArrayList( StatusCode.Code.UNAVAILABLE, StatusCode.Code.DEADLINE_EXCEEDED))); definitions.put( - "retry_policy_3_codes", + "retry_policy_4_codes", ImmutableSet.copyOf( Lists.newArrayList( StatusCode.Code.UNAVAILABLE, StatusCode.Code.DEADLINE_EXCEEDED))); @@ -530,7 +554,7 @@ public static class Builder extends StubSettings.BuildernewUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(PurgeProductsResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(PurgeProductsMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); builder .importProductsOperationSettings() .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_4_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(ImportProductsResponse.class)) @@ -735,8 +794,8 @@ private static Builder initDefaults(Builder builder) { .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(SetInventoryResponse.class)) @@ -759,8 +818,8 @@ private static Builder initDefaults(Builder builder) { .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create( @@ -785,8 +844,8 @@ private static Builder initDefaults(Builder builder) { .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create( @@ -811,8 +870,8 @@ private static Builder initDefaults(Builder builder) { .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create( @@ -837,8 +896,8 @@ private static Builder initDefaults(Builder builder) { .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create( @@ -903,6 +962,18 @@ public UnaryCallSettings.Builder deleteProductSetti return deleteProductSettings; } + /** Returns the builder for the settings used for calls to purgeProducts. */ + public UnaryCallSettings.Builder purgeProductsSettings() { + return purgeProductsSettings; + } + + /** Returns the builder for the settings used for calls to purgeProducts. */ + public OperationCallSettings.Builder< + PurgeProductsRequest, PurgeProductsResponse, PurgeProductsMetadata> + purgeProductsOperationSettings() { + return purgeProductsOperationSettings; + } + /** Returns the builder for the settings used for calls to importProducts. */ public UnaryCallSettings.Builder importProductsSettings() { return importProductsSettings; diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/UserEventServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/UserEventServiceStubSettings.java index 8f97528771ea..b199104e8771 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/UserEventServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/UserEventServiceStubSettings.java @@ -312,17 +312,17 @@ public static class Builder extends StubSettings.Builder> definitions = ImmutableMap.builder(); definitions.put( - "retry_policy_0_codes", + "retry_policy_1_codes", ImmutableSet.copyOf( Lists.newArrayList( StatusCode.Code.UNAVAILABLE, StatusCode.Code.DEADLINE_EXCEEDED))); definitions.put( - "retry_policy_1_codes", + "retry_policy_2_codes", ImmutableSet.copyOf( Lists.newArrayList( StatusCode.Code.UNAVAILABLE, StatusCode.Code.DEADLINE_EXCEEDED))); definitions.put( - "retry_policy_4_codes", + "retry_policy_5_codes", ImmutableSet.copyOf( Lists.newArrayList( StatusCode.Code.UNAVAILABLE, StatusCode.Code.DEADLINE_EXCEEDED))); @@ -339,12 +339,12 @@ public static class Builder extends StubSettings.BuildernewUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(PurgeUserEventsResponse.class)) @@ -496,8 +496,8 @@ private static Builder initDefaults(Builder builder) { .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_4_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_4_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_5_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_5_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(ImportUserEventsResponse.class)) @@ -520,8 +520,8 @@ private static Builder initDefaults(Builder builder) { .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(RejoinUserEventsResponse.class)) diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/BranchServiceClient.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/BranchServiceClient.java new file mode 100644 index 000000000000..b87c9221aecc --- /dev/null +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/BranchServiceClient.java @@ -0,0 +1,468 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.retail.v2alpha.stub.BranchServiceStub; +import com.google.cloud.retail.v2alpha.stub.BranchServiceStubSettings; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service for [Branch][google.cloud.retail.v2alpha.Branch] Management + * + *

[Branch][google.cloud.retail.v2alpha.Branch]es are automatically created when a + * [Catalog][google.cloud.retail.v2alpha.Catalog] is created. There are fixed three branches in each + * catalog, and may use [ListBranches][google.cloud.retail.v2alpha.BranchService.ListBranches] + * method to get the details of all branches. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BranchServiceClient branchServiceClient = BranchServiceClient.create()) {
+ *   CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]");
+ *   ListBranchesResponse response = branchServiceClient.listBranches(parent);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the BranchServiceClient object to clean up resources such + * as threads. In the example above, try-with-resources is used, which automatically calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Methods
MethodDescriptionMethod Variants

ListBranches

Lists all [Branch][google.cloud.retail.v2alpha.Branch]s under the specified parent [Catalog][google.cloud.retail.v2alpha.Catalog].

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listBranches(ListBranchesRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listBranches(CatalogName parent) + *

  • listBranches(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listBranchesCallable() + *

+ *

GetBranch

Retrieves a [Branch][google.cloud.retail.v2alpha.Branch].

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getBranch(GetBranchRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getBranch(BranchName name) + *

  • getBranch(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getBranchCallable() + *

+ *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of BranchServiceSettings to + * create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * BranchServiceSettings branchServiceSettings =
+ *     BranchServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * BranchServiceClient branchServiceClient = BranchServiceClient.create(branchServiceSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * BranchServiceSettings branchServiceSettings =
+ *     BranchServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * BranchServiceClient branchServiceClient = BranchServiceClient.create(branchServiceSettings);
+ * }
+ * + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * BranchServiceSettings branchServiceSettings =
+ *     BranchServiceSettings.newHttpJsonBuilder().build();
+ * BranchServiceClient branchServiceClient = BranchServiceClient.create(branchServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class BranchServiceClient implements BackgroundResource { + private final BranchServiceSettings settings; + private final BranchServiceStub stub; + + /** Constructs an instance of BranchServiceClient with default settings. */ + public static final BranchServiceClient create() throws IOException { + return create(BranchServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of BranchServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final BranchServiceClient create(BranchServiceSettings settings) + throws IOException { + return new BranchServiceClient(settings); + } + + /** + * Constructs an instance of BranchServiceClient, using the given stub for making calls. This is + * for advanced usage - prefer using create(BranchServiceSettings). + */ + public static final BranchServiceClient create(BranchServiceStub stub) { + return new BranchServiceClient(stub); + } + + /** + * Constructs an instance of BranchServiceClient, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected BranchServiceClient(BranchServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((BranchServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected BranchServiceClient(BranchServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final BranchServiceSettings getSettings() { + return settings; + } + + public BranchServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all [Branch][google.cloud.retail.v2alpha.Branch]s under the specified parent + * [Catalog][google.cloud.retail.v2alpha.Catalog]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BranchServiceClient branchServiceClient = BranchServiceClient.create()) {
+   *   CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]");
+   *   ListBranchesResponse response = branchServiceClient.listBranches(parent);
+   * }
+   * }
+ * + * @param parent Required. The parent catalog resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBranchesResponse listBranches(CatalogName parent) { + ListBranchesRequest request = + ListBranchesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listBranches(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all [Branch][google.cloud.retail.v2alpha.Branch]s under the specified parent + * [Catalog][google.cloud.retail.v2alpha.Catalog]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BranchServiceClient branchServiceClient = BranchServiceClient.create()) {
+   *   String parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]").toString();
+   *   ListBranchesResponse response = branchServiceClient.listBranches(parent);
+   * }
+   * }
+ * + * @param parent Required. The parent catalog resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBranchesResponse listBranches(String parent) { + ListBranchesRequest request = ListBranchesRequest.newBuilder().setParent(parent).build(); + return listBranches(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all [Branch][google.cloud.retail.v2alpha.Branch]s under the specified parent + * [Catalog][google.cloud.retail.v2alpha.Catalog]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BranchServiceClient branchServiceClient = BranchServiceClient.create()) {
+   *   ListBranchesRequest request =
+   *       ListBranchesRequest.newBuilder()
+   *           .setParent(CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]").toString())
+   *           .setView(BranchView.forNumber(0))
+   *           .build();
+   *   ListBranchesResponse response = branchServiceClient.listBranches(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBranchesResponse listBranches(ListBranchesRequest request) { + return listBranchesCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all [Branch][google.cloud.retail.v2alpha.Branch]s under the specified parent + * [Catalog][google.cloud.retail.v2alpha.Catalog]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BranchServiceClient branchServiceClient = BranchServiceClient.create()) {
+   *   ListBranchesRequest request =
+   *       ListBranchesRequest.newBuilder()
+   *           .setParent(CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]").toString())
+   *           .setView(BranchView.forNumber(0))
+   *           .build();
+   *   ApiFuture future =
+   *       branchServiceClient.listBranchesCallable().futureCall(request);
+   *   // Do something.
+   *   ListBranchesResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable listBranchesCallable() { + return stub.listBranchesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a [Branch][google.cloud.retail.v2alpha.Branch]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BranchServiceClient branchServiceClient = BranchServiceClient.create()) {
+   *   BranchName name = BranchName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]");
+   *   Branch response = branchServiceClient.getBranch(name);
+   * }
+   * }
+ * + * @param name Required. The name of the branch to retrieve. Format: + * `projects/*/locations/global/catalogs/default_catalog/branches/some_branch_id`. + *

"default_branch" can be used as a special branch_id, it returns the default branch that + * has been set for the catalog. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Branch getBranch(BranchName name) { + GetBranchRequest request = + GetBranchRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getBranch(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a [Branch][google.cloud.retail.v2alpha.Branch]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BranchServiceClient branchServiceClient = BranchServiceClient.create()) {
+   *   String name = BranchName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]").toString();
+   *   Branch response = branchServiceClient.getBranch(name);
+   * }
+   * }
+ * + * @param name Required. The name of the branch to retrieve. Format: + * `projects/*/locations/global/catalogs/default_catalog/branches/some_branch_id`. + *

"default_branch" can be used as a special branch_id, it returns the default branch that + * has been set for the catalog. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Branch getBranch(String name) { + GetBranchRequest request = GetBranchRequest.newBuilder().setName(name).build(); + return getBranch(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a [Branch][google.cloud.retail.v2alpha.Branch]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BranchServiceClient branchServiceClient = BranchServiceClient.create()) {
+   *   GetBranchRequest request =
+   *       GetBranchRequest.newBuilder()
+   *           .setName(BranchName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]").toString())
+   *           .setView(BranchView.forNumber(0))
+   *           .build();
+   *   Branch response = branchServiceClient.getBranch(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Branch getBranch(GetBranchRequest request) { + return getBranchCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieves a [Branch][google.cloud.retail.v2alpha.Branch]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BranchServiceClient branchServiceClient = BranchServiceClient.create()) {
+   *   GetBranchRequest request =
+   *       GetBranchRequest.newBuilder()
+   *           .setName(BranchName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]").toString())
+   *           .setView(BranchView.forNumber(0))
+   *           .build();
+   *   ApiFuture future = branchServiceClient.getBranchCallable().futureCall(request);
+   *   // Do something.
+   *   Branch response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getBranchCallable() { + return stub.getBranchCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } +} diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/BranchServiceSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/BranchServiceSettings.java new file mode 100644 index 000000000000..c316556941d6 --- /dev/null +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/BranchServiceSettings.java @@ -0,0 +1,213 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.retail.v2alpha.stub.BranchServiceStubSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link BranchServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (retail.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * BranchServiceSettings.Builder branchServiceSettingsBuilder = BranchServiceSettings.newBuilder();
+ * branchServiceSettingsBuilder
+ *     .listBranchesSettings()
+ *     .setRetrySettings(
+ *         branchServiceSettingsBuilder
+ *             .listBranchesSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * BranchServiceSettings branchServiceSettings = branchServiceSettingsBuilder.build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class BranchServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to listBranches. */ + public UnaryCallSettings listBranchesSettings() { + return ((BranchServiceStubSettings) getStubSettings()).listBranchesSettings(); + } + + /** Returns the object with the settings used for calls to getBranch. */ + public UnaryCallSettings getBranchSettings() { + return ((BranchServiceStubSettings) getStubSettings()).getBranchSettings(); + } + + public static final BranchServiceSettings create(BranchServiceStubSettings stub) + throws IOException { + return new BranchServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return BranchServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return BranchServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return BranchServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return BranchServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return BranchServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return BranchServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return BranchServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return BranchServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected BranchServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for BranchServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(BranchServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(BranchServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(BranchServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(BranchServiceStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(BranchServiceStubSettings.newHttpJsonBuilder()); + } + + public BranchServiceStubSettings.Builder getStubSettingsBuilder() { + return ((BranchServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to listBranches. */ + public UnaryCallSettings.Builder + listBranchesSettings() { + return getStubSettingsBuilder().listBranchesSettings(); + } + + /** Returns the builder for the settings used for calls to getBranch. */ + public UnaryCallSettings.Builder getBranchSettings() { + return getStubSettingsBuilder().getBranchSettings(); + } + + @Override + public BranchServiceSettings build() throws IOException { + return new BranchServiceSettings(this); + } + } +} diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/MerchantCenterAccountLinkServiceClient.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/MerchantCenterAccountLinkServiceClient.java index 02d494bb2309..b6d5e1d83aed 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/MerchantCenterAccountLinkServiceClient.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/MerchantCenterAccountLinkServiceClient.java @@ -281,7 +281,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * } * * @param parent Required. The parent Catalog of the resource. It must match this format: - * projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID} + * `projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListMerchantCenterAccountLinksResponse listMerchantCenterAccountLinks( @@ -315,7 +315,7 @@ public final ListMerchantCenterAccountLinksResponse listMerchantCenterAccountLin * } * * @param parent Required. The parent Catalog of the resource. It must match this format: - * projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID} + * `projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListMerchantCenterAccountLinksResponse listMerchantCenterAccountLinks( @@ -416,7 +416,7 @@ public final ListMerchantCenterAccountLinksResponse listMerchantCenterAccountLin * } * * @param parent Required. The branch resource where this MerchantCenterAccountLink will be - * created. Format: projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}} + * created. Format: `projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}` * @param merchantCenterAccountLink Required. The * [MerchantCenterAccountLink][google.cloud.retail.v2alpha.MerchantCenterAccountLink] to * create. @@ -461,7 +461,7 @@ public final ListMerchantCenterAccountLinksResponse listMerchantCenterAccountLin * } * * @param parent Required. The branch resource where this MerchantCenterAccountLink will be - * created. Format: projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}} + * created. Format: `projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}` * @param merchantCenterAccountLink Required. The * [MerchantCenterAccountLink][google.cloud.retail.v2alpha.MerchantCenterAccountLink] to * create. @@ -608,7 +608,7 @@ public final ListMerchantCenterAccountLinksResponse listMerchantCenterAccountLin * } * * @param name Required. Full resource name. Format: - * projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/merchantCenterAccountLinks/{merchant_center_account_link_id} + * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/merchantCenterAccountLinks/{merchant_center_account_link_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteMerchantCenterAccountLink(MerchantCenterAccountLinkName name) { @@ -644,7 +644,7 @@ public final void deleteMerchantCenterAccountLink(MerchantCenterAccountLinkName * } * * @param name Required. Full resource name. Format: - * projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/merchantCenterAccountLinks/{merchant_center_account_link_id} + * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/merchantCenterAccountLinks/{merchant_center_account_link_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteMerchantCenterAccountLink(String name) { diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ProductServiceClient.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ProductServiceClient.java index 6447d8439cb7..21b0bb84d962 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ProductServiceClient.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ProductServiceClient.java @@ -228,7 +228,7 @@ * * *

AddFulfillmentPlaces - *

It is recommended to use the [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories] method instead of [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.AddFulfillmentPlaces]. [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories] achieves the same results but provides more fine-grained control over ingesting local inventory data. + *

We recommend that you use the [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories] method instead of the [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.AddFulfillmentPlaces] method. [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories] achieves the same results but provides more fine-grained control over ingesting local inventory data. *

Incrementally adds place IDs to [Product.fulfillment_info.place_ids][google.cloud.retail.v2alpha.FulfillmentInfo.place_ids]. *

This process is asynchronous and does not require the [Product][google.cloud.retail.v2alpha.Product] to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the added place IDs are not immediately manifested in the [Product][google.cloud.retail.v2alpha.Product] queried by [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct] or [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts]. *

The returned [Operation][google.longrunning.Operation]s will be obsolete after 1 day, and [GetOperation][google.longrunning.Operations.GetOperation] API will return NOT_FOUND afterwards. @@ -252,7 +252,7 @@ * * *

RemoveFulfillmentPlaces - *

It is recommended to use the [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories] method instead of [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.RemoveFulfillmentPlaces]. [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories] achieves the same results but provides more fine-grained control over ingesting local inventory data. + *

We recommend that you use the [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories] method instead of the [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.RemoveFulfillmentPlaces] method. [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories] achieves the same results but provides more fine-grained control over ingesting local inventory data. *

Incrementally removes place IDs from a [Product.fulfillment_info.place_ids][google.cloud.retail.v2alpha.FulfillmentInfo.place_ids]. *

This process is asynchronous and does not require the [Product][google.cloud.retail.v2alpha.Product] to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the removed place IDs are not immediately manifested in the [Product][google.cloud.retail.v2alpha.Product] queried by [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct] or [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts]. *

The returned [Operation][google.longrunning.Operation]s will be obsolete after 1 day, and [GetOperation][google.longrunning.Operations.GetOperation] API will return NOT_FOUND afterwards. @@ -1765,10 +1765,11 @@ public final UnaryCallable setInventoryCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * It is recommended to use the + * We recommend that you use the * [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories] - * method instead of - * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.AddFulfillmentPlaces]. + * method instead of the + * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.AddFulfillmentPlaces] + * method. * [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories] * achieves the same results but provides more fine-grained control over ingesting local inventory * data. @@ -1827,10 +1828,11 @@ public final UnaryCallable setInventoryCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * It is recommended to use the + * We recommend that you use the * [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories] - * method instead of - * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.AddFulfillmentPlaces]. + * method instead of the + * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.AddFulfillmentPlaces] + * method. * [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories] * achieves the same results but provides more fine-grained control over ingesting local inventory * data. @@ -1888,10 +1890,11 @@ public final UnaryCallable setInventoryCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * It is recommended to use the + * We recommend that you use the * [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories] - * method instead of - * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.AddFulfillmentPlaces]. + * method instead of the + * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.AddFulfillmentPlaces] + * method. * [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories] * achieves the same results but provides more fine-grained control over ingesting local inventory * data. @@ -1949,10 +1952,11 @@ public final UnaryCallable setInventoryCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * It is recommended to use the + * We recommend that you use the * [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories] - * method instead of - * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.AddFulfillmentPlaces]. + * method instead of the + * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.AddFulfillmentPlaces] + * method. * [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories] * achieves the same results but provides more fine-grained control over ingesting local inventory * data. @@ -2010,10 +2014,11 @@ public final UnaryCallable setInventoryCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * It is recommended to use the + * We recommend that you use the * [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories] - * method instead of - * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.AddFulfillmentPlaces]. + * method instead of the + * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.AddFulfillmentPlaces] + * method. * [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories] * achieves the same results but provides more fine-grained control over ingesting local inventory * data. @@ -2070,10 +2075,11 @@ public final UnaryCallable setInventoryCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * It is recommended to use the + * We recommend that you use the * [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories] - * method instead of - * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.RemoveFulfillmentPlaces]. + * method instead of the + * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.RemoveFulfillmentPlaces] + * method. * [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories] * achieves the same results but provides more fine-grained control over ingesting local inventory * data. @@ -2132,10 +2138,11 @@ public final UnaryCallable setInventoryCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * It is recommended to use the + * We recommend that you use the * [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories] - * method instead of - * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.RemoveFulfillmentPlaces]. + * method instead of the + * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.RemoveFulfillmentPlaces] + * method. * [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories] * achieves the same results but provides more fine-grained control over ingesting local inventory * data. @@ -2193,10 +2200,11 @@ public final UnaryCallable setInventoryCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * It is recommended to use the + * We recommend that you use the * [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories] - * method instead of - * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.RemoveFulfillmentPlaces]. + * method instead of the + * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.RemoveFulfillmentPlaces] + * method. * [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories] * achieves the same results but provides more fine-grained control over ingesting local inventory * data. @@ -2254,10 +2262,11 @@ public final UnaryCallable setInventoryCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * It is recommended to use the + * We recommend that you use the * [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories] - * method instead of - * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.RemoveFulfillmentPlaces]. + * method instead of the + * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.RemoveFulfillmentPlaces] + * method. * [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories] * achieves the same results but provides more fine-grained control over ingesting local inventory * data. @@ -2317,10 +2326,11 @@ public final UnaryCallable setInventoryCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * It is recommended to use the + * We recommend that you use the * [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories] - * method instead of - * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.RemoveFulfillmentPlaces]. + * method instead of the + * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.RemoveFulfillmentPlaces] + * method. * [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories] * achieves the same results but provides more fine-grained control over ingesting local inventory * data. diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ProjectServiceClient.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ProjectServiceClient.java new file mode 100644 index 000000000000..597f1925c192 --- /dev/null +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ProjectServiceClient.java @@ -0,0 +1,1254 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.retail.v2alpha.stub.ProjectServiceStub; +import com.google.cloud.retail.v2alpha.stub.ProjectServiceStubSettings; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service for settings at Project level. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) {
+ *   RetailProjectName name = RetailProjectName.of("[PROJECT]");
+ *   Project response = projectServiceClient.getProject(name);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the ProjectServiceClient object to clean up resources such + * as threads. In the example above, try-with-resources is used, which automatically calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Methods
MethodDescriptionMethod Variants

GetProject

Gets the project. + *

Throws `NOT_FOUND` if the project wasn't initialized for the Retail API service.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getProject(GetProjectRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getProject(RetailProjectName name) + *

  • getProject(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getProjectCallable() + *

+ *

AcceptTerms

Accepts service terms for this project. By making requests to this API, you agree to the terms of service linked below. https://cloud.google.com/retail/data-use-terms

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • acceptTerms(AcceptTermsRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • acceptTerms(RetailProjectName project) + *

  • acceptTerms(String project) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • acceptTermsCallable() + *

+ *

EnrollSolution

The method enrolls a solution of type [Retail Search][google.cloud.retail.v2alpha.SolutionType.SOLUTION_TYPE_SEARCH] into a project. + *

The [Recommendations AI solution type][google.cloud.retail.v2alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION] is enrolled by default when your project enables Retail API, so you don't need to call the enrollSolution method for recommendations.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • enrollSolutionAsync(EnrollSolutionRequest request) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • enrollSolutionOperationCallable() + *

  • enrollSolutionCallable() + *

+ *

ListEnrolledSolutions

Lists all the retail API solutions the project has enrolled.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listEnrolledSolutions(ListEnrolledSolutionsRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listEnrolledSolutions(ProjectName parent) + *

  • listEnrolledSolutions(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listEnrolledSolutionsCallable() + *

+ *

GetLoggingConfig

Gets the [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] of the requested project.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getLoggingConfig(GetLoggingConfigRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getLoggingConfig(LoggingConfigName name) + *

  • getLoggingConfig(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getLoggingConfigCallable() + *

+ *

UpdateLoggingConfig

Updates the [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] of the requested project.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateLoggingConfig(UpdateLoggingConfigRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • updateLoggingConfig(LoggingConfig loggingConfig, FieldMask updateMask) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • updateLoggingConfigCallable() + *

+ *

GetAlertConfig

Get the [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] of the requested project.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getAlertConfig(GetAlertConfigRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getAlertConfig(AlertConfigName name) + *

  • getAlertConfig(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getAlertConfigCallable() + *

+ *

UpdateAlertConfig

Update the alert config of the requested project.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateAlertConfig(UpdateAlertConfigRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • updateAlertConfig(AlertConfig alertConfig, FieldMask updateMask) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • updateAlertConfigCallable() + *

+ *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of ProjectServiceSettings to + * create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ProjectServiceSettings projectServiceSettings =
+ *     ProjectServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * ProjectServiceClient projectServiceClient = ProjectServiceClient.create(projectServiceSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ProjectServiceSettings projectServiceSettings =
+ *     ProjectServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * ProjectServiceClient projectServiceClient = ProjectServiceClient.create(projectServiceSettings);
+ * }
+ * + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ProjectServiceSettings projectServiceSettings =
+ *     ProjectServiceSettings.newHttpJsonBuilder().build();
+ * ProjectServiceClient projectServiceClient = ProjectServiceClient.create(projectServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class ProjectServiceClient implements BackgroundResource { + private final ProjectServiceSettings settings; + private final ProjectServiceStub stub; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; + + /** Constructs an instance of ProjectServiceClient with default settings. */ + public static final ProjectServiceClient create() throws IOException { + return create(ProjectServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of ProjectServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final ProjectServiceClient create(ProjectServiceSettings settings) + throws IOException { + return new ProjectServiceClient(settings); + } + + /** + * Constructs an instance of ProjectServiceClient, using the given stub for making calls. This is + * for advanced usage - prefer using create(ProjectServiceSettings). + */ + public static final ProjectServiceClient create(ProjectServiceStub stub) { + return new ProjectServiceClient(stub); + } + + /** + * Constructs an instance of ProjectServiceClient, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected ProjectServiceClient(ProjectServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((ProjectServiceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + protected ProjectServiceClient(ProjectServiceStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + public final ProjectServiceSettings getSettings() { + return settings; + } + + public ProjectServiceStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final com.google.longrunning.OperationsClient getOperationsClient() { + return operationsClient; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the project. + * + *

Throws `NOT_FOUND` if the project wasn't initialized for the Retail API service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) {
+   *   RetailProjectName name = RetailProjectName.of("[PROJECT]");
+   *   Project response = projectServiceClient.getProject(name);
+   * }
+   * }
+ * + * @param name Required. Full resource name of the project. Format: + * `projects/{project_number_or_id}/retailProject` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Project getProject(RetailProjectName name) { + GetProjectRequest request = + GetProjectRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getProject(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the project. + * + *

Throws `NOT_FOUND` if the project wasn't initialized for the Retail API service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) {
+   *   String name = RetailProjectName.of("[PROJECT]").toString();
+   *   Project response = projectServiceClient.getProject(name);
+   * }
+   * }
+ * + * @param name Required. Full resource name of the project. Format: + * `projects/{project_number_or_id}/retailProject` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Project getProject(String name) { + GetProjectRequest request = GetProjectRequest.newBuilder().setName(name).build(); + return getProject(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the project. + * + *

Throws `NOT_FOUND` if the project wasn't initialized for the Retail API service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) {
+   *   GetProjectRequest request =
+   *       GetProjectRequest.newBuilder()
+   *           .setName(RetailProjectName.of("[PROJECT]").toString())
+   *           .build();
+   *   Project response = projectServiceClient.getProject(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Project getProject(GetProjectRequest request) { + return getProjectCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the project. + * + *

Throws `NOT_FOUND` if the project wasn't initialized for the Retail API service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) {
+   *   GetProjectRequest request =
+   *       GetProjectRequest.newBuilder()
+   *           .setName(RetailProjectName.of("[PROJECT]").toString())
+   *           .build();
+   *   ApiFuture future = projectServiceClient.getProjectCallable().futureCall(request);
+   *   // Do something.
+   *   Project response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getProjectCallable() { + return stub.getProjectCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Accepts service terms for this project. By making requests to this API, you agree to the terms + * of service linked below. https://cloud.google.com/retail/data-use-terms + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) {
+   *   RetailProjectName project = RetailProjectName.of("[PROJECT]");
+   *   Project response = projectServiceClient.acceptTerms(project);
+   * }
+   * }
+ * + * @param project Required. Full resource name of the project. Format: + * `projects/{project_number_or_id}/retailProject` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Project acceptTerms(RetailProjectName project) { + AcceptTermsRequest request = + AcceptTermsRequest.newBuilder() + .setProject(project == null ? null : project.toString()) + .build(); + return acceptTerms(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Accepts service terms for this project. By making requests to this API, you agree to the terms + * of service linked below. https://cloud.google.com/retail/data-use-terms + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) {
+   *   String project = RetailProjectName.of("[PROJECT]").toString();
+   *   Project response = projectServiceClient.acceptTerms(project);
+   * }
+   * }
+ * + * @param project Required. Full resource name of the project. Format: + * `projects/{project_number_or_id}/retailProject` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Project acceptTerms(String project) { + AcceptTermsRequest request = AcceptTermsRequest.newBuilder().setProject(project).build(); + return acceptTerms(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Accepts service terms for this project. By making requests to this API, you agree to the terms + * of service linked below. https://cloud.google.com/retail/data-use-terms + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) {
+   *   AcceptTermsRequest request =
+   *       AcceptTermsRequest.newBuilder()
+   *           .setProject(RetailProjectName.of("[PROJECT]").toString())
+   *           .build();
+   *   Project response = projectServiceClient.acceptTerms(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Project acceptTerms(AcceptTermsRequest request) { + return acceptTermsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Accepts service terms for this project. By making requests to this API, you agree to the terms + * of service linked below. https://cloud.google.com/retail/data-use-terms + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) {
+   *   AcceptTermsRequest request =
+   *       AcceptTermsRequest.newBuilder()
+   *           .setProject(RetailProjectName.of("[PROJECT]").toString())
+   *           .build();
+   *   ApiFuture future = projectServiceClient.acceptTermsCallable().futureCall(request);
+   *   // Do something.
+   *   Project response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable acceptTermsCallable() { + return stub.acceptTermsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * The method enrolls a solution of type [Retail + * Search][google.cloud.retail.v2alpha.SolutionType.SOLUTION_TYPE_SEARCH] into a project. + * + *

The [Recommendations AI solution + * type][google.cloud.retail.v2alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION] is enrolled by + * default when your project enables Retail API, so you don't need to call the enrollSolution + * method for recommendations. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) {
+   *   EnrollSolutionRequest request =
+   *       EnrollSolutionRequest.newBuilder()
+   *           .setProject(ProjectName.of("[PROJECT]").toString())
+   *           .setSolution(SolutionType.forNumber(0))
+   *           .build();
+   *   EnrollSolutionResponse response = projectServiceClient.enrollSolutionAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture enrollSolutionAsync( + EnrollSolutionRequest request) { + return enrollSolutionOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * The method enrolls a solution of type [Retail + * Search][google.cloud.retail.v2alpha.SolutionType.SOLUTION_TYPE_SEARCH] into a project. + * + *

The [Recommendations AI solution + * type][google.cloud.retail.v2alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION] is enrolled by + * default when your project enables Retail API, so you don't need to call the enrollSolution + * method for recommendations. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) {
+   *   EnrollSolutionRequest request =
+   *       EnrollSolutionRequest.newBuilder()
+   *           .setProject(ProjectName.of("[PROJECT]").toString())
+   *           .setSolution(SolutionType.forNumber(0))
+   *           .build();
+   *   OperationFuture future =
+   *       projectServiceClient.enrollSolutionOperationCallable().futureCall(request);
+   *   // Do something.
+   *   EnrollSolutionResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + EnrollSolutionRequest, EnrollSolutionResponse, EnrollSolutionMetadata> + enrollSolutionOperationCallable() { + return stub.enrollSolutionOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * The method enrolls a solution of type [Retail + * Search][google.cloud.retail.v2alpha.SolutionType.SOLUTION_TYPE_SEARCH] into a project. + * + *

The [Recommendations AI solution + * type][google.cloud.retail.v2alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION] is enrolled by + * default when your project enables Retail API, so you don't need to call the enrollSolution + * method for recommendations. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) {
+   *   EnrollSolutionRequest request =
+   *       EnrollSolutionRequest.newBuilder()
+   *           .setProject(ProjectName.of("[PROJECT]").toString())
+   *           .setSolution(SolutionType.forNumber(0))
+   *           .build();
+   *   ApiFuture future =
+   *       projectServiceClient.enrollSolutionCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable enrollSolutionCallable() { + return stub.enrollSolutionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the retail API solutions the project has enrolled. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) {
+   *   ProjectName parent = ProjectName.of("[PROJECT]");
+   *   ListEnrolledSolutionsResponse response = projectServiceClient.listEnrolledSolutions(parent);
+   * }
+   * }
+ * + * @param parent Required. Full resource name of parent. Format: `projects/{project_number_or_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListEnrolledSolutionsResponse listEnrolledSolutions(ProjectName parent) { + ListEnrolledSolutionsRequest request = + ListEnrolledSolutionsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listEnrolledSolutions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the retail API solutions the project has enrolled. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) {
+   *   String parent = ProjectName.of("[PROJECT]").toString();
+   *   ListEnrolledSolutionsResponse response = projectServiceClient.listEnrolledSolutions(parent);
+   * }
+   * }
+ * + * @param parent Required. Full resource name of parent. Format: `projects/{project_number_or_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListEnrolledSolutionsResponse listEnrolledSolutions(String parent) { + ListEnrolledSolutionsRequest request = + ListEnrolledSolutionsRequest.newBuilder().setParent(parent).build(); + return listEnrolledSolutions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the retail API solutions the project has enrolled. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) {
+   *   ListEnrolledSolutionsRequest request =
+   *       ListEnrolledSolutionsRequest.newBuilder()
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
+   *           .build();
+   *   ListEnrolledSolutionsResponse response = projectServiceClient.listEnrolledSolutions(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListEnrolledSolutionsResponse listEnrolledSolutions( + ListEnrolledSolutionsRequest request) { + return listEnrolledSolutionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the retail API solutions the project has enrolled. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) {
+   *   ListEnrolledSolutionsRequest request =
+   *       ListEnrolledSolutionsRequest.newBuilder()
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       projectServiceClient.listEnrolledSolutionsCallable().futureCall(request);
+   *   // Do something.
+   *   ListEnrolledSolutionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + listEnrolledSolutionsCallable() { + return stub.listEnrolledSolutionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] of the requested project. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) {
+   *   LoggingConfigName name = LoggingConfigName.of("[PROJECT]");
+   *   LoggingConfig response = projectServiceClient.getLoggingConfig(name);
+   * }
+   * }
+ * + * @param name Required. Full LoggingConfig resource name. Format: + * projects/{project_number}/loggingConfig + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LoggingConfig getLoggingConfig(LoggingConfigName name) { + GetLoggingConfigRequest request = + GetLoggingConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getLoggingConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] of the requested project. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) {
+   *   String name = LoggingConfigName.of("[PROJECT]").toString();
+   *   LoggingConfig response = projectServiceClient.getLoggingConfig(name);
+   * }
+   * }
+ * + * @param name Required. Full LoggingConfig resource name. Format: + * projects/{project_number}/loggingConfig + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LoggingConfig getLoggingConfig(String name) { + GetLoggingConfigRequest request = GetLoggingConfigRequest.newBuilder().setName(name).build(); + return getLoggingConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] of the requested project. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) {
+   *   GetLoggingConfigRequest request =
+   *       GetLoggingConfigRequest.newBuilder()
+   *           .setName(LoggingConfigName.of("[PROJECT]").toString())
+   *           .build();
+   *   LoggingConfig response = projectServiceClient.getLoggingConfig(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LoggingConfig getLoggingConfig(GetLoggingConfigRequest request) { + return getLoggingConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] of the requested project. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) {
+   *   GetLoggingConfigRequest request =
+   *       GetLoggingConfigRequest.newBuilder()
+   *           .setName(LoggingConfigName.of("[PROJECT]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       projectServiceClient.getLoggingConfigCallable().futureCall(request);
+   *   // Do something.
+   *   LoggingConfig response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLoggingConfigCallable() { + return stub.getLoggingConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] of the requested + * project. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) {
+   *   LoggingConfig loggingConfig = LoggingConfig.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   LoggingConfig response = projectServiceClient.updateLoggingConfig(loggingConfig, updateMask);
+   * }
+   * }
+ * + * @param loggingConfig Required. The [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] + * to update. + *

If the caller does not have permission to update the + * [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig], then a PERMISSION_DENIED error + * is returned. + *

If the [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] to update does not + * exist, a NOT_FOUND error is returned. + * @param updateMask Indicates which fields in the provided + * [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] to update. The following are the + * only supported fields: + *

    + *
  • [LoggingConfig.default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule] + *
  • [LoggingConfig.service_log_generation_rules][google.cloud.retail.v2alpha.LoggingConfig.service_log_generation_rules] + *
+ *

If not set, all supported fields are updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LoggingConfig updateLoggingConfig( + LoggingConfig loggingConfig, FieldMask updateMask) { + UpdateLoggingConfigRequest request = + UpdateLoggingConfigRequest.newBuilder() + .setLoggingConfig(loggingConfig) + .setUpdateMask(updateMask) + .build(); + return updateLoggingConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] of the requested + * project. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) {
+   *   UpdateLoggingConfigRequest request =
+   *       UpdateLoggingConfigRequest.newBuilder()
+   *           .setLoggingConfig(LoggingConfig.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   LoggingConfig response = projectServiceClient.updateLoggingConfig(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LoggingConfig updateLoggingConfig(UpdateLoggingConfigRequest request) { + return updateLoggingConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] of the requested + * project. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) {
+   *   UpdateLoggingConfigRequest request =
+   *       UpdateLoggingConfigRequest.newBuilder()
+   *           .setLoggingConfig(LoggingConfig.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       projectServiceClient.updateLoggingConfigCallable().futureCall(request);
+   *   // Do something.
+   *   LoggingConfig response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updateLoggingConfigCallable() { + return stub.updateLoggingConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get the [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] of the requested project. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) {
+   *   AlertConfigName name = AlertConfigName.of("[PROJECT]");
+   *   AlertConfig response = projectServiceClient.getAlertConfig(name);
+   * }
+   * }
+ * + * @param name Required. Full AlertConfig resource name. Format: + * projects/{project_number}/alertConfig + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AlertConfig getAlertConfig(AlertConfigName name) { + GetAlertConfigRequest request = + GetAlertConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getAlertConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get the [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] of the requested project. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) {
+   *   String name = AlertConfigName.of("[PROJECT]").toString();
+   *   AlertConfig response = projectServiceClient.getAlertConfig(name);
+   * }
+   * }
+ * + * @param name Required. Full AlertConfig resource name. Format: + * projects/{project_number}/alertConfig + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AlertConfig getAlertConfig(String name) { + GetAlertConfigRequest request = GetAlertConfigRequest.newBuilder().setName(name).build(); + return getAlertConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get the [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] of the requested project. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) {
+   *   GetAlertConfigRequest request =
+   *       GetAlertConfigRequest.newBuilder()
+   *           .setName(AlertConfigName.of("[PROJECT]").toString())
+   *           .build();
+   *   AlertConfig response = projectServiceClient.getAlertConfig(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AlertConfig getAlertConfig(GetAlertConfigRequest request) { + return getAlertConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Get the [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] of the requested project. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) {
+   *   GetAlertConfigRequest request =
+   *       GetAlertConfigRequest.newBuilder()
+   *           .setName(AlertConfigName.of("[PROJECT]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       projectServiceClient.getAlertConfigCallable().futureCall(request);
+   *   // Do something.
+   *   AlertConfig response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getAlertConfigCallable() { + return stub.getAlertConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update the alert config of the requested project. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) {
+   *   AlertConfig alertConfig = AlertConfig.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   AlertConfig response = projectServiceClient.updateAlertConfig(alertConfig, updateMask);
+   * }
+   * }
+ * + * @param alertConfig Required. The [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] to + * update. + *

If the caller does not have permission to update the + * [AlertConfig][google.cloud.retail.v2alpha.AlertConfig], then a PERMISSION_DENIED error is + * returned. + *

If the [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] to update does not exist, + * a NOT_FOUND error is returned. + * @param updateMask Indicates which fields in the provided + * [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] to update. If not set, all supported + * fields are updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AlertConfig updateAlertConfig(AlertConfig alertConfig, FieldMask updateMask) { + UpdateAlertConfigRequest request = + UpdateAlertConfigRequest.newBuilder() + .setAlertConfig(alertConfig) + .setUpdateMask(updateMask) + .build(); + return updateAlertConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update the alert config of the requested project. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) {
+   *   UpdateAlertConfigRequest request =
+   *       UpdateAlertConfigRequest.newBuilder()
+   *           .setAlertConfig(AlertConfig.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   AlertConfig response = projectServiceClient.updateAlertConfig(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AlertConfig updateAlertConfig(UpdateAlertConfigRequest request) { + return updateAlertConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update the alert config of the requested project. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) {
+   *   UpdateAlertConfigRequest request =
+   *       UpdateAlertConfigRequest.newBuilder()
+   *           .setAlertConfig(AlertConfig.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       projectServiceClient.updateAlertConfigCallable().futureCall(request);
+   *   // Do something.
+   *   AlertConfig response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateAlertConfigCallable() { + return stub.updateAlertConfigCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } +} diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ProjectServiceSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ProjectServiceSettings.java new file mode 100644 index 000000000000..471ae85bacc9 --- /dev/null +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/ProjectServiceSettings.java @@ -0,0 +1,295 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.retail.v2alpha.stub.ProjectServiceStubSettings; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link ProjectServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (retail.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ProjectServiceSettings.Builder projectServiceSettingsBuilder =
+ *     ProjectServiceSettings.newBuilder();
+ * projectServiceSettingsBuilder
+ *     .getProjectSettings()
+ *     .setRetrySettings(
+ *         projectServiceSettingsBuilder
+ *             .getProjectSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * ProjectServiceSettings projectServiceSettings = projectServiceSettingsBuilder.build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class ProjectServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to getProject. */ + public UnaryCallSettings getProjectSettings() { + return ((ProjectServiceStubSettings) getStubSettings()).getProjectSettings(); + } + + /** Returns the object with the settings used for calls to acceptTerms. */ + public UnaryCallSettings acceptTermsSettings() { + return ((ProjectServiceStubSettings) getStubSettings()).acceptTermsSettings(); + } + + /** Returns the object with the settings used for calls to enrollSolution. */ + public UnaryCallSettings enrollSolutionSettings() { + return ((ProjectServiceStubSettings) getStubSettings()).enrollSolutionSettings(); + } + + /** Returns the object with the settings used for calls to enrollSolution. */ + public OperationCallSettings< + EnrollSolutionRequest, EnrollSolutionResponse, EnrollSolutionMetadata> + enrollSolutionOperationSettings() { + return ((ProjectServiceStubSettings) getStubSettings()).enrollSolutionOperationSettings(); + } + + /** Returns the object with the settings used for calls to listEnrolledSolutions. */ + public UnaryCallSettings + listEnrolledSolutionsSettings() { + return ((ProjectServiceStubSettings) getStubSettings()).listEnrolledSolutionsSettings(); + } + + /** Returns the object with the settings used for calls to getLoggingConfig. */ + public UnaryCallSettings getLoggingConfigSettings() { + return ((ProjectServiceStubSettings) getStubSettings()).getLoggingConfigSettings(); + } + + /** Returns the object with the settings used for calls to updateLoggingConfig. */ + public UnaryCallSettings + updateLoggingConfigSettings() { + return ((ProjectServiceStubSettings) getStubSettings()).updateLoggingConfigSettings(); + } + + /** Returns the object with the settings used for calls to getAlertConfig. */ + public UnaryCallSettings getAlertConfigSettings() { + return ((ProjectServiceStubSettings) getStubSettings()).getAlertConfigSettings(); + } + + /** Returns the object with the settings used for calls to updateAlertConfig. */ + public UnaryCallSettings updateAlertConfigSettings() { + return ((ProjectServiceStubSettings) getStubSettings()).updateAlertConfigSettings(); + } + + public static final ProjectServiceSettings create(ProjectServiceStubSettings stub) + throws IOException { + return new ProjectServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return ProjectServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return ProjectServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return ProjectServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return ProjectServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return ProjectServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return ProjectServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return ProjectServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ProjectServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected ProjectServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for ProjectServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(ProjectServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(ProjectServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(ProjectServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(ProjectServiceStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(ProjectServiceStubSettings.newHttpJsonBuilder()); + } + + public ProjectServiceStubSettings.Builder getStubSettingsBuilder() { + return ((ProjectServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to getProject. */ + public UnaryCallSettings.Builder getProjectSettings() { + return getStubSettingsBuilder().getProjectSettings(); + } + + /** Returns the builder for the settings used for calls to acceptTerms. */ + public UnaryCallSettings.Builder acceptTermsSettings() { + return getStubSettingsBuilder().acceptTermsSettings(); + } + + /** Returns the builder for the settings used for calls to enrollSolution. */ + public UnaryCallSettings.Builder enrollSolutionSettings() { + return getStubSettingsBuilder().enrollSolutionSettings(); + } + + /** Returns the builder for the settings used for calls to enrollSolution. */ + public OperationCallSettings.Builder< + EnrollSolutionRequest, EnrollSolutionResponse, EnrollSolutionMetadata> + enrollSolutionOperationSettings() { + return getStubSettingsBuilder().enrollSolutionOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listEnrolledSolutions. */ + public UnaryCallSettings.Builder + listEnrolledSolutionsSettings() { + return getStubSettingsBuilder().listEnrolledSolutionsSettings(); + } + + /** Returns the builder for the settings used for calls to getLoggingConfig. */ + public UnaryCallSettings.Builder + getLoggingConfigSettings() { + return getStubSettingsBuilder().getLoggingConfigSettings(); + } + + /** Returns the builder for the settings used for calls to updateLoggingConfig. */ + public UnaryCallSettings.Builder + updateLoggingConfigSettings() { + return getStubSettingsBuilder().updateLoggingConfigSettings(); + } + + /** Returns the builder for the settings used for calls to getAlertConfig. */ + public UnaryCallSettings.Builder getAlertConfigSettings() { + return getStubSettingsBuilder().getAlertConfigSettings(); + } + + /** Returns the builder for the settings used for calls to updateAlertConfig. */ + public UnaryCallSettings.Builder + updateAlertConfigSettings() { + return getStubSettingsBuilder().updateAlertConfigSettings(); + } + + @Override + public ProjectServiceSettings build() throws IOException { + return new ProjectServiceSettings(this); + } + } +} diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/gapic_metadata.json b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/gapic_metadata.json index 3c65a87ce132..d1521064d72f 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/gapic_metadata.json +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/gapic_metadata.json @@ -17,6 +17,21 @@ } } }, + "BranchService": { + "clients": { + "grpc": { + "libraryClient": "BranchServiceClient", + "rpcs": { + "GetBranch": { + "methods": ["getBranch", "getBranch", "getBranch", "getBranchCallable"] + }, + "ListBranches": { + "methods": ["listBranches", "listBranches", "listBranches", "listBranchesCallable"] + } + } + } + } + }, "CatalogService": { "clients": { "grpc": { @@ -209,6 +224,39 @@ } } }, + "ProjectService": { + "clients": { + "grpc": { + "libraryClient": "ProjectServiceClient", + "rpcs": { + "AcceptTerms": { + "methods": ["acceptTerms", "acceptTerms", "acceptTerms", "acceptTermsCallable"] + }, + "EnrollSolution": { + "methods": ["enrollSolutionAsync", "enrollSolutionOperationCallable", "enrollSolutionCallable"] + }, + "GetAlertConfig": { + "methods": ["getAlertConfig", "getAlertConfig", "getAlertConfig", "getAlertConfigCallable"] + }, + "GetLoggingConfig": { + "methods": ["getLoggingConfig", "getLoggingConfig", "getLoggingConfig", "getLoggingConfigCallable"] + }, + "GetProject": { + "methods": ["getProject", "getProject", "getProject", "getProjectCallable"] + }, + "ListEnrolledSolutions": { + "methods": ["listEnrolledSolutions", "listEnrolledSolutions", "listEnrolledSolutions", "listEnrolledSolutionsCallable"] + }, + "UpdateAlertConfig": { + "methods": ["updateAlertConfig", "updateAlertConfig", "updateAlertConfigCallable"] + }, + "UpdateLoggingConfig": { + "methods": ["updateLoggingConfig", "updateLoggingConfig", "updateLoggingConfigCallable"] + } + } + } + } + }, "SearchService": { "clients": { "grpc": { diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/package-info.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/package-info.java index 3ea1e15e619e..60949825d664 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/package-info.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/package-info.java @@ -15,7 +15,7 @@ */ /** - * A client to Retail API + * A client to Vertex AI Search for Retail API * *

The interfaces provided are listed below, along with usage samples. * @@ -44,6 +44,29 @@ * } * } * + *

======================= BranchServiceClient ======================= + * + *

Service Description: Service for [Branch][google.cloud.retail.v2alpha.Branch] Management + * + *

[Branch][google.cloud.retail.v2alpha.Branch]es are automatically created when a + * [Catalog][google.cloud.retail.v2alpha.Catalog] is created. There are fixed three branches in each + * catalog, and may use [ListBranches][google.cloud.retail.v2alpha.BranchService.ListBranches] + * method to get the details of all branches. + * + *

Sample for BranchServiceClient: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (BranchServiceClient branchServiceClient = BranchServiceClient.create()) {
+ *   CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]");
+ *   ListBranchesResponse response = branchServiceClient.listBranches(parent);
+ * }
+ * }
+ * *

======================= CatalogServiceClient ======================= * *

Service Description: Service for managing catalog configuration. @@ -215,6 +238,24 @@ * } * } * + *

======================= ProjectServiceClient ======================= + * + *

Service Description: Service for settings at Project level. + * + *

Sample for ProjectServiceClient: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) {
+ *   RetailProjectName name = RetailProjectName.of("[PROJECT]");
+ *   Project response = projectServiceClient.getProject(name);
+ * }
+ * }
+ * *

======================= SearchServiceClient ======================= * *

Service Description: Service for search. diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/AnalyticsServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/AnalyticsServiceStubSettings.java index e3e10d9b621b..08589b9c7c89 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/AnalyticsServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/AnalyticsServiceStubSettings.java @@ -244,7 +244,7 @@ public static class Builder extends StubSettings.Builder> definitions = ImmutableMap.builder(); definitions.put( - "retry_policy_2_codes", + "retry_policy_4_codes", ImmutableSet.copyOf( Lists.newArrayList( StatusCode.Code.UNAVAILABLE, StatusCode.Code.DEADLINE_EXCEEDED))); @@ -266,7 +266,7 @@ public static class Builder extends StubSettings.BuildernewUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_4_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create( diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/BranchServiceStub.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/BranchServiceStub.java new file mode 100644 index 000000000000..7ce6447d9e78 --- /dev/null +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/BranchServiceStub.java @@ -0,0 +1,48 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.retail.v2alpha.Branch; +import com.google.cloud.retail.v2alpha.GetBranchRequest; +import com.google.cloud.retail.v2alpha.ListBranchesRequest; +import com.google.cloud.retail.v2alpha.ListBranchesResponse; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the BranchService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class BranchServiceStub implements BackgroundResource { + + public UnaryCallable listBranchesCallable() { + throw new UnsupportedOperationException("Not implemented: listBranchesCallable()"); + } + + public UnaryCallable getBranchCallable() { + throw new UnsupportedOperationException("Not implemented: getBranchCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/BranchServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/BranchServiceStubSettings.java new file mode 100644 index 000000000000..66d308ae78f5 --- /dev/null +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/BranchServiceStubSettings.java @@ -0,0 +1,356 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.stub; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.retail.v2alpha.Branch; +import com.google.cloud.retail.v2alpha.GetBranchRequest; +import com.google.cloud.retail.v2alpha.ListBranchesRequest; +import com.google.cloud.retail.v2alpha.ListBranchesResponse; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link BranchServiceStub}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (retail.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * BranchServiceStubSettings.Builder branchServiceSettingsBuilder =
+ *     BranchServiceStubSettings.newBuilder();
+ * branchServiceSettingsBuilder
+ *     .listBranchesSettings()
+ *     .setRetrySettings(
+ *         branchServiceSettingsBuilder
+ *             .listBranchesSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * BranchServiceStubSettings branchServiceSettings = branchServiceSettingsBuilder.build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class BranchServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final UnaryCallSettings listBranchesSettings; + private final UnaryCallSettings getBranchSettings; + + /** Returns the object with the settings used for calls to listBranches. */ + public UnaryCallSettings listBranchesSettings() { + return listBranchesSettings; + } + + /** Returns the object with the settings used for calls to getBranch. */ + public UnaryCallSettings getBranchSettings() { + return getBranchSettings; + } + + public BranchServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcBranchServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonBranchServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "retail"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "retail.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "retail.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(BranchServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(BranchServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return BranchServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected BranchServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + listBranchesSettings = settingsBuilder.listBranchesSettings().build(); + getBranchSettings = settingsBuilder.getBranchSettings().build(); + } + + /** Builder for BranchServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + listBranchesSettings; + private final UnaryCallSettings.Builder getBranchSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "retry_policy_3_codes", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.UNAVAILABLE, StatusCode.Code.DEADLINE_EXCEEDED))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(30000L)) + .setInitialRpcTimeout(Duration.ofMillis(30000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(30000L)) + .setTotalTimeout(Duration.ofMillis(30000L)) + .build(); + definitions.put("retry_policy_3_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + listBranchesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getBranchSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listBranchesSettings, getBranchSettings); + initDefaults(this); + } + + protected Builder(BranchServiceStubSettings settings) { + super(settings); + + listBranchesSettings = settings.listBranchesSettings.toBuilder(); + getBranchSettings = settings.getBranchSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listBranchesSettings, getBranchSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .listBranchesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")); + + builder + .getBranchSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to listBranches. */ + public UnaryCallSettings.Builder + listBranchesSettings() { + return listBranchesSettings; + } + + /** Returns the builder for the settings used for calls to getBranch. */ + public UnaryCallSettings.Builder getBranchSettings() { + return getBranchSettings; + } + + @Override + public BranchServiceStubSettings build() throws IOException { + return new BranchServiceStubSettings(this); + } + } +} diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/GrpcBranchServiceCallableFactory.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/GrpcBranchServiceCallableFactory.java new file mode 100644 index 000000000000..9904f3fc0df0 --- /dev/null +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/GrpcBranchServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the BranchService service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcBranchServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/GrpcBranchServiceStub.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/GrpcBranchServiceStub.java new file mode 100644 index 000000000000..411963e11e49 --- /dev/null +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/GrpcBranchServiceStub.java @@ -0,0 +1,191 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.retail.v2alpha.Branch; +import com.google.cloud.retail.v2alpha.GetBranchRequest; +import com.google.cloud.retail.v2alpha.ListBranchesRequest; +import com.google.cloud.retail.v2alpha.ListBranchesResponse; +import com.google.longrunning.stub.GrpcOperationsStub; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the BranchService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcBranchServiceStub extends BranchServiceStub { + private static final MethodDescriptor + listBranchesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.retail.v2alpha.BranchService/ListBranches") + .setRequestMarshaller(ProtoUtils.marshaller(ListBranchesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListBranchesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getBranchMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.retail.v2alpha.BranchService/GetBranch") + .setRequestMarshaller(ProtoUtils.marshaller(GetBranchRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Branch.getDefaultInstance())) + .build(); + + private final UnaryCallable listBranchesCallable; + private final UnaryCallable getBranchCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcBranchServiceStub create(BranchServiceStubSettings settings) + throws IOException { + return new GrpcBranchServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcBranchServiceStub create(ClientContext clientContext) throws IOException { + return new GrpcBranchServiceStub(BranchServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcBranchServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcBranchServiceStub( + BranchServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcBranchServiceStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcBranchServiceStub(BranchServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcBranchServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcBranchServiceStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcBranchServiceStub( + BranchServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings listBranchesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listBranchesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getBranchTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getBranchMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.listBranchesCallable = + callableFactory.createUnaryCallable( + listBranchesTransportSettings, settings.listBranchesSettings(), clientContext); + this.getBranchCallable = + callableFactory.createUnaryCallable( + getBranchTransportSettings, settings.getBranchSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable listBranchesCallable() { + return listBranchesCallable; + } + + @Override + public UnaryCallable getBranchCallable() { + return getBranchCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/GrpcProjectServiceCallableFactory.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/GrpcProjectServiceCallableFactory.java new file mode 100644 index 000000000000..e8e4a06417dc --- /dev/null +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/GrpcProjectServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the ProjectService service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcProjectServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/GrpcProjectServiceStub.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/GrpcProjectServiceStub.java new file mode 100644 index 000000000000..7ed7d8800208 --- /dev/null +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/GrpcProjectServiceStub.java @@ -0,0 +1,408 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.retail.v2alpha.AcceptTermsRequest; +import com.google.cloud.retail.v2alpha.AlertConfig; +import com.google.cloud.retail.v2alpha.EnrollSolutionMetadata; +import com.google.cloud.retail.v2alpha.EnrollSolutionRequest; +import com.google.cloud.retail.v2alpha.EnrollSolutionResponse; +import com.google.cloud.retail.v2alpha.GetAlertConfigRequest; +import com.google.cloud.retail.v2alpha.GetLoggingConfigRequest; +import com.google.cloud.retail.v2alpha.GetProjectRequest; +import com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest; +import com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse; +import com.google.cloud.retail.v2alpha.LoggingConfig; +import com.google.cloud.retail.v2alpha.Project; +import com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest; +import com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the ProjectService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcProjectServiceStub extends ProjectServiceStub { + private static final MethodDescriptor getProjectMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.retail.v2alpha.ProjectService/GetProject") + .setRequestMarshaller(ProtoUtils.marshaller(GetProjectRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Project.getDefaultInstance())) + .build(); + + private static final MethodDescriptor acceptTermsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.retail.v2alpha.ProjectService/AcceptTerms") + .setRequestMarshaller(ProtoUtils.marshaller(AcceptTermsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Project.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + enrollSolutionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.retail.v2alpha.ProjectService/EnrollSolution") + .setRequestMarshaller( + ProtoUtils.marshaller(EnrollSolutionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listEnrolledSolutionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.retail.v2alpha.ProjectService/ListEnrolledSolutions") + .setRequestMarshaller( + ProtoUtils.marshaller(ListEnrolledSolutionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListEnrolledSolutionsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getLoggingConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.retail.v2alpha.ProjectService/GetLoggingConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(GetLoggingConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(LoggingConfig.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateLoggingConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.retail.v2alpha.ProjectService/UpdateLoggingConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateLoggingConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(LoggingConfig.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getAlertConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.retail.v2alpha.ProjectService/GetAlertConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(GetAlertConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AlertConfig.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateAlertConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.retail.v2alpha.ProjectService/UpdateAlertConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateAlertConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AlertConfig.getDefaultInstance())) + .build(); + + private final UnaryCallable getProjectCallable; + private final UnaryCallable acceptTermsCallable; + private final UnaryCallable enrollSolutionCallable; + private final OperationCallable< + EnrollSolutionRequest, EnrollSolutionResponse, EnrollSolutionMetadata> + enrollSolutionOperationCallable; + private final UnaryCallable + listEnrolledSolutionsCallable; + private final UnaryCallable getLoggingConfigCallable; + private final UnaryCallable + updateLoggingConfigCallable; + private final UnaryCallable getAlertConfigCallable; + private final UnaryCallable updateAlertConfigCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcProjectServiceStub create(ProjectServiceStubSettings settings) + throws IOException { + return new GrpcProjectServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcProjectServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcProjectServiceStub( + ProjectServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcProjectServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcProjectServiceStub( + ProjectServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcProjectServiceStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcProjectServiceStub(ProjectServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcProjectServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcProjectServiceStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcProjectServiceStub( + ProjectServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings getProjectTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getProjectMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings acceptTermsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(acceptTermsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("project", String.valueOf(request.getProject())); + return builder.build(); + }) + .build(); + GrpcCallSettings enrollSolutionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(enrollSolutionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("project", String.valueOf(request.getProject())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listEnrolledSolutionsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listEnrolledSolutionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getLoggingConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLoggingConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + updateLoggingConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateLoggingConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "logging_config.name", + String.valueOf(request.getLoggingConfig().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getAlertConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAlertConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateAlertConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateAlertConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "alert_config.name", String.valueOf(request.getAlertConfig().getName())); + return builder.build(); + }) + .build(); + + this.getProjectCallable = + callableFactory.createUnaryCallable( + getProjectTransportSettings, settings.getProjectSettings(), clientContext); + this.acceptTermsCallable = + callableFactory.createUnaryCallable( + acceptTermsTransportSettings, settings.acceptTermsSettings(), clientContext); + this.enrollSolutionCallable = + callableFactory.createUnaryCallable( + enrollSolutionTransportSettings, settings.enrollSolutionSettings(), clientContext); + this.enrollSolutionOperationCallable = + callableFactory.createOperationCallable( + enrollSolutionTransportSettings, + settings.enrollSolutionOperationSettings(), + clientContext, + operationsStub); + this.listEnrolledSolutionsCallable = + callableFactory.createUnaryCallable( + listEnrolledSolutionsTransportSettings, + settings.listEnrolledSolutionsSettings(), + clientContext); + this.getLoggingConfigCallable = + callableFactory.createUnaryCallable( + getLoggingConfigTransportSettings, settings.getLoggingConfigSettings(), clientContext); + this.updateLoggingConfigCallable = + callableFactory.createUnaryCallable( + updateLoggingConfigTransportSettings, + settings.updateLoggingConfigSettings(), + clientContext); + this.getAlertConfigCallable = + callableFactory.createUnaryCallable( + getAlertConfigTransportSettings, settings.getAlertConfigSettings(), clientContext); + this.updateAlertConfigCallable = + callableFactory.createUnaryCallable( + updateAlertConfigTransportSettings, + settings.updateAlertConfigSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable getProjectCallable() { + return getProjectCallable; + } + + @Override + public UnaryCallable acceptTermsCallable() { + return acceptTermsCallable; + } + + @Override + public UnaryCallable enrollSolutionCallable() { + return enrollSolutionCallable; + } + + @Override + public OperationCallable + enrollSolutionOperationCallable() { + return enrollSolutionOperationCallable; + } + + @Override + public UnaryCallable + listEnrolledSolutionsCallable() { + return listEnrolledSolutionsCallable; + } + + @Override + public UnaryCallable getLoggingConfigCallable() { + return getLoggingConfigCallable; + } + + @Override + public UnaryCallable updateLoggingConfigCallable() { + return updateLoggingConfigCallable; + } + + @Override + public UnaryCallable getAlertConfigCallable() { + return getAlertConfigCallable; + } + + @Override + public UnaryCallable updateAlertConfigCallable() { + return updateAlertConfigCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/HttpJsonBranchServiceCallableFactory.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/HttpJsonBranchServiceCallableFactory.java new file mode 100644 index 000000000000..28a18b7b15a5 --- /dev/null +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/HttpJsonBranchServiceCallableFactory.java @@ -0,0 +1,103 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the BranchService service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonBranchServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/HttpJsonBranchServiceStub.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/HttpJsonBranchServiceStub.java new file mode 100644 index 000000000000..6e08c43d53f3 --- /dev/null +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/HttpJsonBranchServiceStub.java @@ -0,0 +1,257 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.retail.v2alpha.Branch; +import com.google.cloud.retail.v2alpha.GetBranchRequest; +import com.google.cloud.retail.v2alpha.ListBranchesRequest; +import com.google.cloud.retail.v2alpha.ListBranchesResponse; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the BranchService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonBranchServiceStub extends BranchServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + listBranchesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.retail.v2alpha.BranchService/ListBranches") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2alpha/{parent=projects/*/locations/*/catalogs/*}/branches", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "view", request.getViewValue()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListBranchesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getBranchMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.retail.v2alpha.BranchService/GetBranch") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2alpha/{name=projects/*/locations/*/catalogs/*/branches/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "view", request.getViewValue()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Branch.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable listBranchesCallable; + private final UnaryCallable getBranchCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonBranchServiceStub create(BranchServiceStubSettings settings) + throws IOException { + return new HttpJsonBranchServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonBranchServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonBranchServiceStub( + BranchServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonBranchServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonBranchServiceStub( + BranchServiceStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonBranchServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonBranchServiceStub( + BranchServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonBranchServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonBranchServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonBranchServiceStub( + BranchServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings listBranchesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listBranchesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getBranchTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getBranchMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.listBranchesCallable = + callableFactory.createUnaryCallable( + listBranchesTransportSettings, settings.listBranchesSettings(), clientContext); + this.getBranchCallable = + callableFactory.createUnaryCallable( + getBranchTransportSettings, settings.getBranchSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(listBranchesMethodDescriptor); + methodDescriptors.add(getBranchMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable listBranchesCallable() { + return listBranchesCallable; + } + + @Override + public UnaryCallable getBranchCallable() { + return getBranchCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/HttpJsonProjectServiceCallableFactory.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/HttpJsonProjectServiceCallableFactory.java new file mode 100644 index 000000000000..69268857c4d2 --- /dev/null +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/HttpJsonProjectServiceCallableFactory.java @@ -0,0 +1,103 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the ProjectService service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonProjectServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/HttpJsonProjectServiceStub.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/HttpJsonProjectServiceStub.java new file mode 100644 index 000000000000..29f1129c2ddb --- /dev/null +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/HttpJsonProjectServiceStub.java @@ -0,0 +1,705 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.stub; + +import com.google.api.HttpRule; +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.retail.v2alpha.AcceptTermsRequest; +import com.google.cloud.retail.v2alpha.AlertConfig; +import com.google.cloud.retail.v2alpha.EnrollSolutionMetadata; +import com.google.cloud.retail.v2alpha.EnrollSolutionRequest; +import com.google.cloud.retail.v2alpha.EnrollSolutionResponse; +import com.google.cloud.retail.v2alpha.GetAlertConfigRequest; +import com.google.cloud.retail.v2alpha.GetLoggingConfigRequest; +import com.google.cloud.retail.v2alpha.GetProjectRequest; +import com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest; +import com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse; +import com.google.cloud.retail.v2alpha.LoggingConfig; +import com.google.cloud.retail.v2alpha.Project; +import com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest; +import com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest; +import com.google.common.collect.ImmutableMap; +import com.google.longrunning.Operation; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the ProjectService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonProjectServiceStub extends ProjectServiceStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(EnrollSolutionMetadata.getDescriptor()) + .add(EnrollSolutionResponse.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor getProjectMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.retail.v2alpha.ProjectService/GetProject") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2alpha/{name=projects/*/retailProject}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Project.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + acceptTermsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.retail.v2alpha.ProjectService/AcceptTerms") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2alpha/{project=projects/*/retailProject}:acceptTerms", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "project", request.getProject()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearProject().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Project.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + enrollSolutionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.retail.v2alpha.ProjectService/EnrollSolution") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2alpha/{project=projects/*}:enrollSolution", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "project", request.getProject()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearProject().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (EnrollSolutionRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor< + ListEnrolledSolutionsRequest, ListEnrolledSolutionsResponse> + listEnrolledSolutionsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.cloud.retail.v2alpha.ProjectService/ListEnrolledSolutions") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2alpha/{parent=projects/*}:enrolledSolutions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListEnrolledSolutionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getLoggingConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.retail.v2alpha.ProjectService/GetLoggingConfig") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2alpha/{name=projects/*/loggingConfig}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(LoggingConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateLoggingConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.retail.v2alpha.ProjectService/UpdateLoggingConfig") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2alpha/{loggingConfig.name=projects/*/loggingConfig}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "loggingConfig.name", request.getLoggingConfig().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("loggingConfig", request.getLoggingConfig(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(LoggingConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getAlertConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.retail.v2alpha.ProjectService/GetAlertConfig") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2alpha/{name=projects/*/alertConfig}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AlertConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateAlertConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.retail.v2alpha.ProjectService/UpdateAlertConfig") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2alpha/{alertConfig.name=projects/*/alertConfig}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "alertConfig.name", request.getAlertConfig().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("alertConfig", request.getAlertConfig(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AlertConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable getProjectCallable; + private final UnaryCallable acceptTermsCallable; + private final UnaryCallable enrollSolutionCallable; + private final OperationCallable< + EnrollSolutionRequest, EnrollSolutionResponse, EnrollSolutionMetadata> + enrollSolutionOperationCallable; + private final UnaryCallable + listEnrolledSolutionsCallable; + private final UnaryCallable getLoggingConfigCallable; + private final UnaryCallable + updateLoggingConfigCallable; + private final UnaryCallable getAlertConfigCallable; + private final UnaryCallable updateAlertConfigCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonProjectServiceStub create(ProjectServiceStubSettings settings) + throws IOException { + return new HttpJsonProjectServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonProjectServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonProjectServiceStub( + ProjectServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonProjectServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonProjectServiceStub( + ProjectServiceStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonProjectServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonProjectServiceStub( + ProjectServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonProjectServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonProjectServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonProjectServiceStub( + ProjectServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create( + clientContext, + callableFactory, + typeRegistry, + ImmutableMap.builder() + .put( + "google.longrunning.Operations.GetOperation", + HttpRule.newBuilder() + .setGet( + "/v2alpha/{name=projects/*/locations/*/catalogs/*/branches/*/operations/*}") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v2alpha/{name=projects/*/locations/*/catalogs/*/branches/*/places/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v2alpha/{name=projects/*/locations/*/catalogs/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v2alpha/{name=projects/*/locations/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v2alpha/{name=projects/*/operations/*}") + .build()) + .build()) + .put( + "google.longrunning.Operations.ListOperations", + HttpRule.newBuilder() + .setGet("/v2alpha/{name=projects/*/locations/*/catalogs/*}/operations") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v2alpha/{name=projects/*/locations/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v2alpha/{name=projects/*}/operations") + .build()) + .build()) + .build()); + + HttpJsonCallSettings getProjectTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getProjectMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings acceptTermsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(acceptTermsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("project", String.valueOf(request.getProject())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings enrollSolutionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(enrollSolutionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("project", String.valueOf(request.getProject())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listEnrolledSolutionsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listEnrolledSolutionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getLoggingConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getLoggingConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + updateLoggingConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateLoggingConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "logging_config.name", + String.valueOf(request.getLoggingConfig().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getAlertConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getAlertConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateAlertConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateAlertConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "alert_config.name", String.valueOf(request.getAlertConfig().getName())); + return builder.build(); + }) + .build(); + + this.getProjectCallable = + callableFactory.createUnaryCallable( + getProjectTransportSettings, settings.getProjectSettings(), clientContext); + this.acceptTermsCallable = + callableFactory.createUnaryCallable( + acceptTermsTransportSettings, settings.acceptTermsSettings(), clientContext); + this.enrollSolutionCallable = + callableFactory.createUnaryCallable( + enrollSolutionTransportSettings, settings.enrollSolutionSettings(), clientContext); + this.enrollSolutionOperationCallable = + callableFactory.createOperationCallable( + enrollSolutionTransportSettings, + settings.enrollSolutionOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listEnrolledSolutionsCallable = + callableFactory.createUnaryCallable( + listEnrolledSolutionsTransportSettings, + settings.listEnrolledSolutionsSettings(), + clientContext); + this.getLoggingConfigCallable = + callableFactory.createUnaryCallable( + getLoggingConfigTransportSettings, settings.getLoggingConfigSettings(), clientContext); + this.updateLoggingConfigCallable = + callableFactory.createUnaryCallable( + updateLoggingConfigTransportSettings, + settings.updateLoggingConfigSettings(), + clientContext); + this.getAlertConfigCallable = + callableFactory.createUnaryCallable( + getAlertConfigTransportSettings, settings.getAlertConfigSettings(), clientContext); + this.updateAlertConfigCallable = + callableFactory.createUnaryCallable( + updateAlertConfigTransportSettings, + settings.updateAlertConfigSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getProjectMethodDescriptor); + methodDescriptors.add(acceptTermsMethodDescriptor); + methodDescriptors.add(enrollSolutionMethodDescriptor); + methodDescriptors.add(listEnrolledSolutionsMethodDescriptor); + methodDescriptors.add(getLoggingConfigMethodDescriptor); + methodDescriptors.add(updateLoggingConfigMethodDescriptor); + methodDescriptors.add(getAlertConfigMethodDescriptor); + methodDescriptors.add(updateAlertConfigMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable getProjectCallable() { + return getProjectCallable; + } + + @Override + public UnaryCallable acceptTermsCallable() { + return acceptTermsCallable; + } + + @Override + public UnaryCallable enrollSolutionCallable() { + return enrollSolutionCallable; + } + + @Override + public OperationCallable + enrollSolutionOperationCallable() { + return enrollSolutionOperationCallable; + } + + @Override + public UnaryCallable + listEnrolledSolutionsCallable() { + return listEnrolledSolutionsCallable; + } + + @Override + public UnaryCallable getLoggingConfigCallable() { + return getLoggingConfigCallable; + } + + @Override + public UnaryCallable updateLoggingConfigCallable() { + return updateLoggingConfigCallable; + } + + @Override + public UnaryCallable getAlertConfigCallable() { + return getAlertConfigCallable; + } + + @Override + public UnaryCallable updateAlertConfigCallable() { + return updateAlertConfigCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ModelServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ModelServiceStubSettings.java index 0574a7133321..665cb8f7caaa 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ModelServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ModelServiceStubSettings.java @@ -382,7 +382,7 @@ public static class Builder extends StubSettings.Builder> definitions = ImmutableMap.builder(); definitions.put( - "retry_policy_2_codes", + "retry_policy_4_codes", ImmutableSet.copyOf( Lists.newArrayList( StatusCode.Code.UNAVAILABLE, StatusCode.Code.DEADLINE_EXCEEDED))); @@ -404,7 +404,7 @@ public static class Builder extends StubSettings.BuildernewUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_4_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Model.class)) @@ -557,8 +557,8 @@ private static Builder initDefaults(Builder builder) { .tuneModelOperationSettings() .setInitialCallSettings( UnaryCallSettings.newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_4_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(TuneModelResponse.class)) diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ProductServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ProductServiceStubSettings.java index d33f9ee591c7..421ec3708760 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ProductServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ProductServiceStubSettings.java @@ -528,12 +528,12 @@ public static class Builder extends StubSettings.Builder> definitions = ImmutableMap.builder(); definitions.put( - "retry_policy_1_codes", + "retry_policy_3_codes", ImmutableSet.copyOf( Lists.newArrayList( StatusCode.Code.UNAVAILABLE, StatusCode.Code.DEADLINE_EXCEEDED))); definitions.put( - "retry_policy_3_codes", + "retry_policy_5_codes", ImmutableSet.copyOf( Lists.newArrayList( StatusCode.Code.UNAVAILABLE, StatusCode.Code.DEADLINE_EXCEEDED))); @@ -555,7 +555,7 @@ public static class Builder extends StubSettings.BuildernewUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(PurgeProductsResponse.class)) @@ -771,8 +771,8 @@ private static Builder initDefaults(Builder builder) { .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_5_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_5_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(ImportProductsResponse.class)) @@ -795,8 +795,8 @@ private static Builder initDefaults(Builder builder) { .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(SetInventoryResponse.class)) @@ -819,8 +819,8 @@ private static Builder initDefaults(Builder builder) { .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create( @@ -845,8 +845,8 @@ private static Builder initDefaults(Builder builder) { .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create( @@ -871,8 +871,8 @@ private static Builder initDefaults(Builder builder) { .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create( @@ -897,8 +897,8 @@ private static Builder initDefaults(Builder builder) { .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create( diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ProjectServiceStub.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ProjectServiceStub.java new file mode 100644 index 000000000000..e345944843dc --- /dev/null +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ProjectServiceStub.java @@ -0,0 +1,99 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.retail.v2alpha.AcceptTermsRequest; +import com.google.cloud.retail.v2alpha.AlertConfig; +import com.google.cloud.retail.v2alpha.EnrollSolutionMetadata; +import com.google.cloud.retail.v2alpha.EnrollSolutionRequest; +import com.google.cloud.retail.v2alpha.EnrollSolutionResponse; +import com.google.cloud.retail.v2alpha.GetAlertConfigRequest; +import com.google.cloud.retail.v2alpha.GetLoggingConfigRequest; +import com.google.cloud.retail.v2alpha.GetProjectRequest; +import com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest; +import com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse; +import com.google.cloud.retail.v2alpha.LoggingConfig; +import com.google.cloud.retail.v2alpha.Project; +import com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest; +import com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the ProjectService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class ProjectServiceStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; + } + + public UnaryCallable getProjectCallable() { + throw new UnsupportedOperationException("Not implemented: getProjectCallable()"); + } + + public UnaryCallable acceptTermsCallable() { + throw new UnsupportedOperationException("Not implemented: acceptTermsCallable()"); + } + + public OperationCallable + enrollSolutionOperationCallable() { + throw new UnsupportedOperationException("Not implemented: enrollSolutionOperationCallable()"); + } + + public UnaryCallable enrollSolutionCallable() { + throw new UnsupportedOperationException("Not implemented: enrollSolutionCallable()"); + } + + public UnaryCallable + listEnrolledSolutionsCallable() { + throw new UnsupportedOperationException("Not implemented: listEnrolledSolutionsCallable()"); + } + + public UnaryCallable getLoggingConfigCallable() { + throw new UnsupportedOperationException("Not implemented: getLoggingConfigCallable()"); + } + + public UnaryCallable updateLoggingConfigCallable() { + throw new UnsupportedOperationException("Not implemented: updateLoggingConfigCallable()"); + } + + public UnaryCallable getAlertConfigCallable() { + throw new UnsupportedOperationException("Not implemented: getAlertConfigCallable()"); + } + + public UnaryCallable updateAlertConfigCallable() { + throw new UnsupportedOperationException("Not implemented: updateAlertConfigCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ProjectServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ProjectServiceStubSettings.java new file mode 100644 index 000000000000..1fd382a9ae04 --- /dev/null +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/ProjectServiceStubSettings.java @@ -0,0 +1,565 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.stub; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.retail.v2alpha.AcceptTermsRequest; +import com.google.cloud.retail.v2alpha.AlertConfig; +import com.google.cloud.retail.v2alpha.EnrollSolutionMetadata; +import com.google.cloud.retail.v2alpha.EnrollSolutionRequest; +import com.google.cloud.retail.v2alpha.EnrollSolutionResponse; +import com.google.cloud.retail.v2alpha.GetAlertConfigRequest; +import com.google.cloud.retail.v2alpha.GetLoggingConfigRequest; +import com.google.cloud.retail.v2alpha.GetProjectRequest; +import com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest; +import com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse; +import com.google.cloud.retail.v2alpha.LoggingConfig; +import com.google.cloud.retail.v2alpha.Project; +import com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest; +import com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link ProjectServiceStub}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (retail.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * ProjectServiceStubSettings.Builder projectServiceSettingsBuilder =
+ *     ProjectServiceStubSettings.newBuilder();
+ * projectServiceSettingsBuilder
+ *     .getProjectSettings()
+ *     .setRetrySettings(
+ *         projectServiceSettingsBuilder
+ *             .getProjectSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * ProjectServiceStubSettings projectServiceSettings = projectServiceSettingsBuilder.build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class ProjectServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final UnaryCallSettings getProjectSettings; + private final UnaryCallSettings acceptTermsSettings; + private final UnaryCallSettings enrollSolutionSettings; + private final OperationCallSettings< + EnrollSolutionRequest, EnrollSolutionResponse, EnrollSolutionMetadata> + enrollSolutionOperationSettings; + private final UnaryCallSettings + listEnrolledSolutionsSettings; + private final UnaryCallSettings getLoggingConfigSettings; + private final UnaryCallSettings + updateLoggingConfigSettings; + private final UnaryCallSettings getAlertConfigSettings; + private final UnaryCallSettings updateAlertConfigSettings; + + /** Returns the object with the settings used for calls to getProject. */ + public UnaryCallSettings getProjectSettings() { + return getProjectSettings; + } + + /** Returns the object with the settings used for calls to acceptTerms. */ + public UnaryCallSettings acceptTermsSettings() { + return acceptTermsSettings; + } + + /** Returns the object with the settings used for calls to enrollSolution. */ + public UnaryCallSettings enrollSolutionSettings() { + return enrollSolutionSettings; + } + + /** Returns the object with the settings used for calls to enrollSolution. */ + public OperationCallSettings< + EnrollSolutionRequest, EnrollSolutionResponse, EnrollSolutionMetadata> + enrollSolutionOperationSettings() { + return enrollSolutionOperationSettings; + } + + /** Returns the object with the settings used for calls to listEnrolledSolutions. */ + public UnaryCallSettings + listEnrolledSolutionsSettings() { + return listEnrolledSolutionsSettings; + } + + /** Returns the object with the settings used for calls to getLoggingConfig. */ + public UnaryCallSettings getLoggingConfigSettings() { + return getLoggingConfigSettings; + } + + /** Returns the object with the settings used for calls to updateLoggingConfig. */ + public UnaryCallSettings + updateLoggingConfigSettings() { + return updateLoggingConfigSettings; + } + + /** Returns the object with the settings used for calls to getAlertConfig. */ + public UnaryCallSettings getAlertConfigSettings() { + return getAlertConfigSettings; + } + + /** Returns the object with the settings used for calls to updateAlertConfig. */ + public UnaryCallSettings updateAlertConfigSettings() { + return updateAlertConfigSettings; + } + + public ProjectServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcProjectServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonProjectServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "retail"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "retail.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "retail.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(ProjectServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(ProjectServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ProjectServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected ProjectServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getProjectSettings = settingsBuilder.getProjectSettings().build(); + acceptTermsSettings = settingsBuilder.acceptTermsSettings().build(); + enrollSolutionSettings = settingsBuilder.enrollSolutionSettings().build(); + enrollSolutionOperationSettings = settingsBuilder.enrollSolutionOperationSettings().build(); + listEnrolledSolutionsSettings = settingsBuilder.listEnrolledSolutionsSettings().build(); + getLoggingConfigSettings = settingsBuilder.getLoggingConfigSettings().build(); + updateLoggingConfigSettings = settingsBuilder.updateLoggingConfigSettings().build(); + getAlertConfigSettings = settingsBuilder.getAlertConfigSettings().build(); + updateAlertConfigSettings = settingsBuilder.updateAlertConfigSettings().build(); + } + + /** Builder for ProjectServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder getProjectSettings; + private final UnaryCallSettings.Builder acceptTermsSettings; + private final UnaryCallSettings.Builder + enrollSolutionSettings; + private final OperationCallSettings.Builder< + EnrollSolutionRequest, EnrollSolutionResponse, EnrollSolutionMetadata> + enrollSolutionOperationSettings; + private final UnaryCallSettings.Builder< + ListEnrolledSolutionsRequest, ListEnrolledSolutionsResponse> + listEnrolledSolutionsSettings; + private final UnaryCallSettings.Builder + getLoggingConfigSettings; + private final UnaryCallSettings.Builder + updateLoggingConfigSettings; + private final UnaryCallSettings.Builder + getAlertConfigSettings; + private final UnaryCallSettings.Builder + updateAlertConfigSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "retry_policy_3_codes", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.UNAVAILABLE, StatusCode.Code.DEADLINE_EXCEEDED))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(30000L)) + .setInitialRpcTimeout(Duration.ofMillis(30000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(30000L)) + .setTotalTimeout(Duration.ofMillis(30000L)) + .build(); + definitions.put("retry_policy_3_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getProjectSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + acceptTermsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + enrollSolutionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + enrollSolutionOperationSettings = OperationCallSettings.newBuilder(); + listEnrolledSolutionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getLoggingConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateLoggingConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getAlertConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateAlertConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getProjectSettings, + acceptTermsSettings, + enrollSolutionSettings, + listEnrolledSolutionsSettings, + getLoggingConfigSettings, + updateLoggingConfigSettings, + getAlertConfigSettings, + updateAlertConfigSettings); + initDefaults(this); + } + + protected Builder(ProjectServiceStubSettings settings) { + super(settings); + + getProjectSettings = settings.getProjectSettings.toBuilder(); + acceptTermsSettings = settings.acceptTermsSettings.toBuilder(); + enrollSolutionSettings = settings.enrollSolutionSettings.toBuilder(); + enrollSolutionOperationSettings = settings.enrollSolutionOperationSettings.toBuilder(); + listEnrolledSolutionsSettings = settings.listEnrolledSolutionsSettings.toBuilder(); + getLoggingConfigSettings = settings.getLoggingConfigSettings.toBuilder(); + updateLoggingConfigSettings = settings.updateLoggingConfigSettings.toBuilder(); + getAlertConfigSettings = settings.getAlertConfigSettings.toBuilder(); + updateAlertConfigSettings = settings.updateAlertConfigSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getProjectSettings, + acceptTermsSettings, + enrollSolutionSettings, + listEnrolledSolutionsSettings, + getLoggingConfigSettings, + updateLoggingConfigSettings, + getAlertConfigSettings, + updateAlertConfigSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .getProjectSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")); + + builder + .acceptTermsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")); + + builder + .enrollSolutionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")); + + builder + .listEnrolledSolutionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")); + + builder + .getLoggingConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")); + + builder + .updateLoggingConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")); + + builder + .getAlertConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")); + + builder + .updateAlertConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")); + + builder + .enrollSolutionOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(EnrollSolutionResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(EnrollSolutionMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getProject. */ + public UnaryCallSettings.Builder getProjectSettings() { + return getProjectSettings; + } + + /** Returns the builder for the settings used for calls to acceptTerms. */ + public UnaryCallSettings.Builder acceptTermsSettings() { + return acceptTermsSettings; + } + + /** Returns the builder for the settings used for calls to enrollSolution. */ + public UnaryCallSettings.Builder enrollSolutionSettings() { + return enrollSolutionSettings; + } + + /** Returns the builder for the settings used for calls to enrollSolution. */ + public OperationCallSettings.Builder< + EnrollSolutionRequest, EnrollSolutionResponse, EnrollSolutionMetadata> + enrollSolutionOperationSettings() { + return enrollSolutionOperationSettings; + } + + /** Returns the builder for the settings used for calls to listEnrolledSolutions. */ + public UnaryCallSettings.Builder + listEnrolledSolutionsSettings() { + return listEnrolledSolutionsSettings; + } + + /** Returns the builder for the settings used for calls to getLoggingConfig. */ + public UnaryCallSettings.Builder + getLoggingConfigSettings() { + return getLoggingConfigSettings; + } + + /** Returns the builder for the settings used for calls to updateLoggingConfig. */ + public UnaryCallSettings.Builder + updateLoggingConfigSettings() { + return updateLoggingConfigSettings; + } + + /** Returns the builder for the settings used for calls to getAlertConfig. */ + public UnaryCallSettings.Builder getAlertConfigSettings() { + return getAlertConfigSettings; + } + + /** Returns the builder for the settings used for calls to updateAlertConfig. */ + public UnaryCallSettings.Builder + updateAlertConfigSettings() { + return updateAlertConfigSettings; + } + + @Override + public ProjectServiceStubSettings build() throws IOException { + return new ProjectServiceStubSettings(this); + } + } +} diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/UserEventServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/UserEventServiceStubSettings.java index cda802309310..029443a433a2 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/UserEventServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/UserEventServiceStubSettings.java @@ -313,17 +313,17 @@ public static class Builder extends StubSettings.Builder> definitions = ImmutableMap.builder(); definitions.put( - "retry_policy_0_codes", + "retry_policy_1_codes", ImmutableSet.copyOf( Lists.newArrayList( StatusCode.Code.UNAVAILABLE, StatusCode.Code.DEADLINE_EXCEEDED))); definitions.put( - "retry_policy_1_codes", + "retry_policy_3_codes", ImmutableSet.copyOf( Lists.newArrayList( StatusCode.Code.UNAVAILABLE, StatusCode.Code.DEADLINE_EXCEEDED))); definitions.put( - "retry_policy_4_codes", + "retry_policy_6_codes", ImmutableSet.copyOf( Lists.newArrayList( StatusCode.Code.UNAVAILABLE, StatusCode.Code.DEADLINE_EXCEEDED))); @@ -340,12 +340,12 @@ public static class Builder extends StubSettings.BuildernewUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(PurgeUserEventsResponse.class)) @@ -497,8 +497,8 @@ private static Builder initDefaults(Builder builder) { .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_4_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_4_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_6_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_6_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(ImportUserEventsResponse.class)) @@ -521,8 +521,8 @@ private static Builder initDefaults(Builder builder) { .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(RejoinUserEventsResponse.class)) diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/CompletionServiceClient.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/CompletionServiceClient.java index e3509457186a..1519e0bff183 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/CompletionServiceClient.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/CompletionServiceClient.java @@ -55,6 +55,7 @@ * .setDeviceType("deviceType781190832") * .setDataset("dataset1443214456") * .setMaxSuggestions(618824852) + * .setEnableAttributeSuggestions(true) * .setEntity("entity-1298275357") * .build(); * CompleteQueryResponse response = completionServiceClient.completeQuery(request); @@ -264,6 +265,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * .setDeviceType("deviceType781190832") * .setDataset("dataset1443214456") * .setMaxSuggestions(618824852) + * .setEnableAttributeSuggestions(true) * .setEntity("entity-1298275357") * .build(); * CompleteQueryResponse response = completionServiceClient.completeQuery(request); @@ -302,6 +304,7 @@ public final CompleteQueryResponse completeQuery(CompleteQueryRequest request) { * .setDeviceType("deviceType781190832") * .setDataset("dataset1443214456") * .setMaxSuggestions(618824852) + * .setEnableAttributeSuggestions(true) * .setEntity("entity-1298275357") * .build(); * ApiFuture future = diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ProductServiceClient.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ProductServiceClient.java index f7d3f0686750..f468cc0a8a67 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ProductServiceClient.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ProductServiceClient.java @@ -167,6 +167,23 @@ * * * + *

PurgeProducts + *

Permanently deletes all selected [Product][google.cloud.retail.v2beta.Product]s under a branch. + *

This process is asynchronous. If the request is valid, the removal will be enqueued and processed offline. Depending on the number of [Product][google.cloud.retail.v2beta.Product]s, this operation could take hours to complete. Before the operation completes, some [Product][google.cloud.retail.v2beta.Product]s may still be returned by [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct] or [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts]. + *

Depending on the number of [Product][google.cloud.retail.v2beta.Product]s, this operation could take hours to complete. To get a sample of [Product][google.cloud.retail.v2beta.Product]s that would be deleted, set [PurgeProductsRequest.force][google.cloud.retail.v2beta.PurgeProductsRequest.force] to false. + * + *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • purgeProductsAsync(PurgeProductsRequest request) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • purgeProductsOperationCallable() + *

  • purgeProductsCallable() + *

+ * + * + * *

ImportProducts *

Bulk import of multiple [Product][google.cloud.retail.v2beta.Product]s. *

Request processing may be synchronous. Non-existing items are created. @@ -211,7 +228,7 @@ * * *

AddFulfillmentPlaces - *

It is recommended to use the [ProductService.AddLocalInventories][google.cloud.retail.v2beta.ProductService.AddLocalInventories] method instead of [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.AddFulfillmentPlaces]. [ProductService.AddLocalInventories][google.cloud.retail.v2beta.ProductService.AddLocalInventories] achieves the same results but provides more fine-grained control over ingesting local inventory data. + *

We recommend that you use the [ProductService.AddLocalInventories][google.cloud.retail.v2beta.ProductService.AddLocalInventories] method instead of the [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.AddFulfillmentPlaces] method. [ProductService.AddLocalInventories][google.cloud.retail.v2beta.ProductService.AddLocalInventories] achieves the same results but provides more fine-grained control over ingesting local inventory data. *

Incrementally adds place IDs to [Product.fulfillment_info.place_ids][google.cloud.retail.v2beta.FulfillmentInfo.place_ids]. *

This process is asynchronous and does not require the [Product][google.cloud.retail.v2beta.Product] to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the added place IDs are not immediately manifested in the [Product][google.cloud.retail.v2beta.Product] queried by [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct] or [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts]. *

The returned [Operation][google.longrunning.Operation]s will be obsolete after 1 day, and [GetOperation][google.longrunning.Operations.GetOperation] API will return NOT_FOUND afterwards. @@ -235,7 +252,7 @@ * * *

RemoveFulfillmentPlaces - *

It is recommended to use the [ProductService.RemoveLocalInventories][google.cloud.retail.v2beta.ProductService.RemoveLocalInventories] method instead of [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.RemoveFulfillmentPlaces]. [ProductService.RemoveLocalInventories][google.cloud.retail.v2beta.ProductService.RemoveLocalInventories] achieves the same results but provides more fine-grained control over ingesting local inventory data. + *

We recommend that you use the [ProductService.RemoveLocalInventories][google.cloud.retail.v2beta.ProductService.RemoveLocalInventories] method instead of the [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.RemoveFulfillmentPlaces] method. [ProductService.RemoveLocalInventories][google.cloud.retail.v2beta.ProductService.RemoveLocalInventories] achieves the same results but provides more fine-grained control over ingesting local inventory data. *

Incrementally removes place IDs from a [Product.fulfillment_info.place_ids][google.cloud.retail.v2beta.FulfillmentInfo.place_ids]. *

This process is asynchronous and does not require the [Product][google.cloud.retail.v2beta.Product] to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the removed place IDs are not immediately manifested in the [Product][google.cloud.retail.v2beta.Product] queried by [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct] or [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts]. *

The returned [Operation][google.longrunning.Operation]s will be obsolete after 1 day, and [GetOperation][google.longrunning.Operations.GetOperation] API will return NOT_FOUND afterwards. @@ -1147,6 +1164,137 @@ public final UnaryCallable deleteProductCallable() return stub.deleteProductCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Permanently deletes all selected [Product][google.cloud.retail.v2beta.Product]s under a branch. + * + *

This process is asynchronous. If the request is valid, the removal will be enqueued and + * processed offline. Depending on the number of [Product][google.cloud.retail.v2beta.Product]s, + * this operation could take hours to complete. Before the operation completes, some + * [Product][google.cloud.retail.v2beta.Product]s may still be returned by + * [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct] or + * [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts]. + * + *

Depending on the number of [Product][google.cloud.retail.v2beta.Product]s, this operation + * could take hours to complete. To get a sample of [Product][google.cloud.retail.v2beta.Product]s + * that would be deleted, set + * [PurgeProductsRequest.force][google.cloud.retail.v2beta.PurgeProductsRequest.force] to false. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ProductServiceClient productServiceClient = ProductServiceClient.create()) {
+   *   PurgeProductsRequest request =
+   *       PurgeProductsRequest.newBuilder()
+   *           .setParent(
+   *               BranchName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setForce(true)
+   *           .build();
+   *   PurgeProductsResponse response = productServiceClient.purgeProductsAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture purgeProductsAsync( + PurgeProductsRequest request) { + return purgeProductsOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Permanently deletes all selected [Product][google.cloud.retail.v2beta.Product]s under a branch. + * + *

This process is asynchronous. If the request is valid, the removal will be enqueued and + * processed offline. Depending on the number of [Product][google.cloud.retail.v2beta.Product]s, + * this operation could take hours to complete. Before the operation completes, some + * [Product][google.cloud.retail.v2beta.Product]s may still be returned by + * [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct] or + * [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts]. + * + *

Depending on the number of [Product][google.cloud.retail.v2beta.Product]s, this operation + * could take hours to complete. To get a sample of [Product][google.cloud.retail.v2beta.Product]s + * that would be deleted, set + * [PurgeProductsRequest.force][google.cloud.retail.v2beta.PurgeProductsRequest.force] to false. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ProductServiceClient productServiceClient = ProductServiceClient.create()) {
+   *   PurgeProductsRequest request =
+   *       PurgeProductsRequest.newBuilder()
+   *           .setParent(
+   *               BranchName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setForce(true)
+   *           .build();
+   *   OperationFuture future =
+   *       productServiceClient.purgeProductsOperationCallable().futureCall(request);
+   *   // Do something.
+   *   PurgeProductsResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + purgeProductsOperationCallable() { + return stub.purgeProductsOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Permanently deletes all selected [Product][google.cloud.retail.v2beta.Product]s under a branch. + * + *

This process is asynchronous. If the request is valid, the removal will be enqueued and + * processed offline. Depending on the number of [Product][google.cloud.retail.v2beta.Product]s, + * this operation could take hours to complete. Before the operation completes, some + * [Product][google.cloud.retail.v2beta.Product]s may still be returned by + * [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct] or + * [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts]. + * + *

Depending on the number of [Product][google.cloud.retail.v2beta.Product]s, this operation + * could take hours to complete. To get a sample of [Product][google.cloud.retail.v2beta.Product]s + * that would be deleted, set + * [PurgeProductsRequest.force][google.cloud.retail.v2beta.PurgeProductsRequest.force] to false. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ProductServiceClient productServiceClient = ProductServiceClient.create()) {
+   *   PurgeProductsRequest request =
+   *       PurgeProductsRequest.newBuilder()
+   *           .setParent(
+   *               BranchName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setForce(true)
+   *           .build();
+   *   ApiFuture future =
+   *       productServiceClient.purgeProductsCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable purgeProductsCallable() { + return stub.purgeProductsCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Bulk import of multiple [Product][google.cloud.retail.v2beta.Product]s. @@ -1606,10 +1754,11 @@ public final UnaryCallable setInventoryCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * It is recommended to use the + * We recommend that you use the * [ProductService.AddLocalInventories][google.cloud.retail.v2beta.ProductService.AddLocalInventories] - * method instead of - * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.AddFulfillmentPlaces]. + * method instead of the + * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.AddFulfillmentPlaces] + * method. * [ProductService.AddLocalInventories][google.cloud.retail.v2beta.ProductService.AddLocalInventories] * achieves the same results but provides more fine-grained control over ingesting local inventory * data. @@ -1668,10 +1817,11 @@ public final UnaryCallable setInventoryCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * It is recommended to use the + * We recommend that you use the * [ProductService.AddLocalInventories][google.cloud.retail.v2beta.ProductService.AddLocalInventories] - * method instead of - * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.AddFulfillmentPlaces]. + * method instead of the + * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.AddFulfillmentPlaces] + * method. * [ProductService.AddLocalInventories][google.cloud.retail.v2beta.ProductService.AddLocalInventories] * achieves the same results but provides more fine-grained control over ingesting local inventory * data. @@ -1729,10 +1879,11 @@ public final UnaryCallable setInventoryCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * It is recommended to use the + * We recommend that you use the * [ProductService.AddLocalInventories][google.cloud.retail.v2beta.ProductService.AddLocalInventories] - * method instead of - * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.AddFulfillmentPlaces]. + * method instead of the + * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.AddFulfillmentPlaces] + * method. * [ProductService.AddLocalInventories][google.cloud.retail.v2beta.ProductService.AddLocalInventories] * achieves the same results but provides more fine-grained control over ingesting local inventory * data. @@ -1790,10 +1941,11 @@ public final UnaryCallable setInventoryCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * It is recommended to use the + * We recommend that you use the * [ProductService.AddLocalInventories][google.cloud.retail.v2beta.ProductService.AddLocalInventories] - * method instead of - * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.AddFulfillmentPlaces]. + * method instead of the + * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.AddFulfillmentPlaces] + * method. * [ProductService.AddLocalInventories][google.cloud.retail.v2beta.ProductService.AddLocalInventories] * achieves the same results but provides more fine-grained control over ingesting local inventory * data. @@ -1851,10 +2003,11 @@ public final UnaryCallable setInventoryCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * It is recommended to use the + * We recommend that you use the * [ProductService.AddLocalInventories][google.cloud.retail.v2beta.ProductService.AddLocalInventories] - * method instead of - * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.AddFulfillmentPlaces]. + * method instead of the + * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.AddFulfillmentPlaces] + * method. * [ProductService.AddLocalInventories][google.cloud.retail.v2beta.ProductService.AddLocalInventories] * achieves the same results but provides more fine-grained control over ingesting local inventory * data. @@ -1911,10 +2064,11 @@ public final UnaryCallable setInventoryCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * It is recommended to use the + * We recommend that you use the * [ProductService.RemoveLocalInventories][google.cloud.retail.v2beta.ProductService.RemoveLocalInventories] - * method instead of - * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.RemoveFulfillmentPlaces]. + * method instead of the + * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.RemoveFulfillmentPlaces] + * method. * [ProductService.RemoveLocalInventories][google.cloud.retail.v2beta.ProductService.RemoveLocalInventories] * achieves the same results but provides more fine-grained control over ingesting local inventory * data. @@ -1973,10 +2127,11 @@ public final UnaryCallable setInventoryCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * It is recommended to use the + * We recommend that you use the * [ProductService.RemoveLocalInventories][google.cloud.retail.v2beta.ProductService.RemoveLocalInventories] - * method instead of - * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.RemoveFulfillmentPlaces]. + * method instead of the + * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.RemoveFulfillmentPlaces] + * method. * [ProductService.RemoveLocalInventories][google.cloud.retail.v2beta.ProductService.RemoveLocalInventories] * achieves the same results but provides more fine-grained control over ingesting local inventory * data. @@ -2034,10 +2189,11 @@ public final UnaryCallable setInventoryCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * It is recommended to use the + * We recommend that you use the * [ProductService.RemoveLocalInventories][google.cloud.retail.v2beta.ProductService.RemoveLocalInventories] - * method instead of - * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.RemoveFulfillmentPlaces]. + * method instead of the + * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.RemoveFulfillmentPlaces] + * method. * [ProductService.RemoveLocalInventories][google.cloud.retail.v2beta.ProductService.RemoveLocalInventories] * achieves the same results but provides more fine-grained control over ingesting local inventory * data. @@ -2095,10 +2251,11 @@ public final UnaryCallable setInventoryCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * It is recommended to use the + * We recommend that you use the * [ProductService.RemoveLocalInventories][google.cloud.retail.v2beta.ProductService.RemoveLocalInventories] - * method instead of - * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.RemoveFulfillmentPlaces]. + * method instead of the + * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.RemoveFulfillmentPlaces] + * method. * [ProductService.RemoveLocalInventories][google.cloud.retail.v2beta.ProductService.RemoveLocalInventories] * achieves the same results but provides more fine-grained control over ingesting local inventory * data. @@ -2158,10 +2315,11 @@ public final UnaryCallable setInventoryCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * It is recommended to use the + * We recommend that you use the * [ProductService.RemoveLocalInventories][google.cloud.retail.v2beta.ProductService.RemoveLocalInventories] - * method instead of - * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.RemoveFulfillmentPlaces]. + * method instead of the + * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.RemoveFulfillmentPlaces] + * method. * [ProductService.RemoveLocalInventories][google.cloud.retail.v2beta.ProductService.RemoveLocalInventories] * achieves the same results but provides more fine-grained control over ingesting local inventory * data. diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ProductServiceSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ProductServiceSettings.java index f889f8473261..b1c5ba48b463 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ProductServiceSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ProductServiceSettings.java @@ -105,6 +105,17 @@ public UnaryCallSettings deleteProductSettings() { return ((ProductServiceStubSettings) getStubSettings()).deleteProductSettings(); } + /** Returns the object with the settings used for calls to purgeProducts. */ + public UnaryCallSettings purgeProductsSettings() { + return ((ProductServiceStubSettings) getStubSettings()).purgeProductsSettings(); + } + + /** Returns the object with the settings used for calls to purgeProducts. */ + public OperationCallSettings + purgeProductsOperationSettings() { + return ((ProductServiceStubSettings) getStubSettings()).purgeProductsOperationSettings(); + } + /** Returns the object with the settings used for calls to importProducts. */ public UnaryCallSettings importProductsSettings() { return ((ProductServiceStubSettings) getStubSettings()).importProductsSettings(); @@ -322,6 +333,18 @@ public UnaryCallSettings.Builder deleteProductSetti return getStubSettingsBuilder().deleteProductSettings(); } + /** Returns the builder for the settings used for calls to purgeProducts. */ + public UnaryCallSettings.Builder purgeProductsSettings() { + return getStubSettingsBuilder().purgeProductsSettings(); + } + + /** Returns the builder for the settings used for calls to purgeProducts. */ + public OperationCallSettings.Builder< + PurgeProductsRequest, PurgeProductsResponse, PurgeProductsMetadata> + purgeProductsOperationSettings() { + return getStubSettingsBuilder().purgeProductsOperationSettings(); + } + /** Returns the builder for the settings used for calls to importProducts. */ public UnaryCallSettings.Builder importProductsSettings() { return getStubSettingsBuilder().importProductsSettings(); diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/gapic_metadata.json b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/gapic_metadata.json index d16e2d0a9153..6a740ef5d9a7 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/gapic_metadata.json +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/gapic_metadata.json @@ -172,6 +172,9 @@ "ListProducts": { "methods": ["listProducts", "listProducts", "listProducts", "listProductsPagedCallable", "listProductsCallable"] }, + "PurgeProducts": { + "methods": ["purgeProductsAsync", "purgeProductsOperationCallable", "purgeProductsCallable"] + }, "RemoveFulfillmentPlaces": { "methods": ["removeFulfillmentPlacesAsync", "removeFulfillmentPlacesAsync", "removeFulfillmentPlacesAsync", "removeFulfillmentPlacesOperationCallable", "removeFulfillmentPlacesCallable"] }, diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/package-info.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/package-info.java index 804cd5f18e18..47e39fd1fd64 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/package-info.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/package-info.java @@ -15,7 +15,7 @@ */ /** - * A client to Retail API + * A client to Vertex AI Search for Retail API * *

The interfaces provided are listed below, along with usage samples. * @@ -88,6 +88,7 @@ * .setDeviceType("deviceType781190832") * .setDataset("dataset1443214456") * .setMaxSuggestions(618824852) + * .setEnableAttributeSuggestions(true) * .setEntity("entity-1298275357") * .build(); * CompleteQueryResponse response = completionServiceClient.completeQuery(request); diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/AnalyticsServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/AnalyticsServiceStubSettings.java index 2f0aef17e00a..dc04ed4774a5 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/AnalyticsServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/AnalyticsServiceStubSettings.java @@ -244,7 +244,7 @@ public static class Builder extends StubSettings.Builder> definitions = ImmutableMap.builder(); definitions.put( - "retry_policy_2_codes", + "retry_policy_3_codes", ImmutableSet.copyOf( Lists.newArrayList( StatusCode.Code.UNAVAILABLE, StatusCode.Code.DEADLINE_EXCEEDED))); @@ -266,7 +266,7 @@ public static class Builder extends StubSettings.BuildernewUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create( diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/GrpcProductServiceStub.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/GrpcProductServiceStub.java index 2014921f8cf4..518e695d97ce 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/GrpcProductServiceStub.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/GrpcProductServiceStub.java @@ -42,6 +42,9 @@ import com.google.cloud.retail.v2beta.ListProductsRequest; import com.google.cloud.retail.v2beta.ListProductsResponse; import com.google.cloud.retail.v2beta.Product; +import com.google.cloud.retail.v2beta.PurgeProductsMetadata; +import com.google.cloud.retail.v2beta.PurgeProductsRequest; +import com.google.cloud.retail.v2beta.PurgeProductsResponse; import com.google.cloud.retail.v2beta.RemoveFulfillmentPlacesMetadata; import com.google.cloud.retail.v2beta.RemoveFulfillmentPlacesRequest; import com.google.cloud.retail.v2beta.RemoveFulfillmentPlacesResponse; @@ -116,6 +119,16 @@ public class GrpcProductServiceStub extends ProductServiceStub { .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) .build(); + private static final MethodDescriptor + purgeProductsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.retail.v2beta.ProductService/PurgeProducts") + .setRequestMarshaller( + ProtoUtils.marshaller(PurgeProductsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor importProductsMethodDescriptor = MethodDescriptor.newBuilder() @@ -183,6 +196,10 @@ public class GrpcProductServiceStub extends ProductServiceStub { listProductsPagedCallable; private final UnaryCallable updateProductCallable; private final UnaryCallable deleteProductCallable; + private final UnaryCallable purgeProductsCallable; + private final OperationCallable< + PurgeProductsRequest, PurgeProductsResponse, PurgeProductsMetadata> + purgeProductsOperationCallable; private final UnaryCallable importProductsCallable; private final OperationCallable importProductsOperationCallable; @@ -306,6 +323,16 @@ protected GrpcProductServiceStub( return builder.build(); }) .build(); + GrpcCallSettings purgeProductsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(purgeProductsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); GrpcCallSettings importProductsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(importProductsMethodDescriptor) @@ -387,6 +414,15 @@ protected GrpcProductServiceStub( this.deleteProductCallable = callableFactory.createUnaryCallable( deleteProductTransportSettings, settings.deleteProductSettings(), clientContext); + this.purgeProductsCallable = + callableFactory.createUnaryCallable( + purgeProductsTransportSettings, settings.purgeProductsSettings(), clientContext); + this.purgeProductsOperationCallable = + callableFactory.createOperationCallable( + purgeProductsTransportSettings, + settings.purgeProductsOperationSettings(), + clientContext, + operationsStub); this.importProductsCallable = callableFactory.createUnaryCallable( importProductsTransportSettings, settings.importProductsSettings(), clientContext); @@ -488,6 +524,17 @@ public UnaryCallable deleteProductCallable() { return deleteProductCallable; } + @Override + public UnaryCallable purgeProductsCallable() { + return purgeProductsCallable; + } + + @Override + public OperationCallable + purgeProductsOperationCallable() { + return purgeProductsOperationCallable; + } + @Override public UnaryCallable importProductsCallable() { return importProductsCallable; diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/HttpJsonCompletionServiceStub.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/HttpJsonCompletionServiceStub.java index 23a2038d4633..dab57f394a94 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/HttpJsonCompletionServiceStub.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/HttpJsonCompletionServiceStub.java @@ -88,6 +88,10 @@ public class HttpJsonCompletionServiceStub extends CompletionServiceStub { ProtoRestSerializer.create(); serializer.putQueryParam(fields, "dataset", request.getDataset()); serializer.putQueryParam(fields, "deviceType", request.getDeviceType()); + serializer.putQueryParam( + fields, + "enableAttributeSuggestions", + request.getEnableAttributeSuggestions()); serializer.putQueryParam(fields, "entity", request.getEntity()); serializer.putQueryParam( fields, "languageCodes", request.getLanguageCodesList()); diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/HttpJsonProductServiceStub.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/HttpJsonProductServiceStub.java index 119270b93993..0e683dfdb2bd 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/HttpJsonProductServiceStub.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/HttpJsonProductServiceStub.java @@ -50,6 +50,9 @@ import com.google.cloud.retail.v2beta.ListProductsRequest; import com.google.cloud.retail.v2beta.ListProductsResponse; import com.google.cloud.retail.v2beta.Product; +import com.google.cloud.retail.v2beta.PurgeProductsMetadata; +import com.google.cloud.retail.v2beta.PurgeProductsRequest; +import com.google.cloud.retail.v2beta.PurgeProductsResponse; import com.google.cloud.retail.v2beta.RemoveFulfillmentPlacesMetadata; import com.google.cloud.retail.v2beta.RemoveFulfillmentPlacesRequest; import com.google.cloud.retail.v2beta.RemoveFulfillmentPlacesResponse; @@ -88,10 +91,12 @@ public class HttpJsonProductServiceStub extends ProductServiceStub { .add(AddFulfillmentPlacesMetadata.getDescriptor()) .add(ImportProductsResponse.getDescriptor()) .add(SetInventoryResponse.getDescriptor()) + .add(SetInventoryMetadata.getDescriptor()) .add(AddLocalInventoriesMetadata.getDescriptor()) .add(RemoveFulfillmentPlacesMetadata.getDescriptor()) + .add(PurgeProductsResponse.getDescriptor()) + .add(PurgeProductsMetadata.getDescriptor()) .add(AddFulfillmentPlacesResponse.getDescriptor()) - .add(SetInventoryMetadata.getDescriptor()) .add(RemoveFulfillmentPlacesResponse.getDescriptor()) .add(AddLocalInventoriesResponse.getDescriptor()) .add(RemoveLocalInventoriesMetadata.getDescriptor()) @@ -281,6 +286,46 @@ public class HttpJsonProductServiceStub extends ProductServiceStub { .build()) .build(); + private static final ApiMethodDescriptor + purgeProductsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.retail.v2beta.ProductService/PurgeProducts") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta/{parent=projects/*/locations/*/catalogs/*/branches/*}/products:purge", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (PurgeProductsRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + private static final ApiMethodDescriptor importProductsMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -530,6 +575,10 @@ public class HttpJsonProductServiceStub extends ProductServiceStub { listProductsPagedCallable; private final UnaryCallable updateProductCallable; private final UnaryCallable deleteProductCallable; + private final UnaryCallable purgeProductsCallable; + private final OperationCallable< + PurgeProductsRequest, PurgeProductsResponse, PurgeProductsMetadata> + purgeProductsOperationCallable; private final UnaryCallable importProductsCallable; private final OperationCallable importProductsOperationCallable; @@ -696,6 +745,17 @@ protected HttpJsonProductServiceStub( return builder.build(); }) .build(); + HttpJsonCallSettings purgeProductsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(purgeProductsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); HttpJsonCallSettings importProductsTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(importProductsMethodDescriptor) @@ -785,6 +845,15 @@ protected HttpJsonProductServiceStub( this.deleteProductCallable = callableFactory.createUnaryCallable( deleteProductTransportSettings, settings.deleteProductSettings(), clientContext); + this.purgeProductsCallable = + callableFactory.createUnaryCallable( + purgeProductsTransportSettings, settings.purgeProductsSettings(), clientContext); + this.purgeProductsOperationCallable = + callableFactory.createOperationCallable( + purgeProductsTransportSettings, + settings.purgeProductsOperationSettings(), + clientContext, + httpJsonOperationsStub); this.importProductsCallable = callableFactory.createUnaryCallable( importProductsTransportSettings, settings.importProductsSettings(), clientContext); @@ -860,6 +929,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(listProductsMethodDescriptor); methodDescriptors.add(updateProductMethodDescriptor); methodDescriptors.add(deleteProductMethodDescriptor); + methodDescriptors.add(purgeProductsMethodDescriptor); methodDescriptors.add(importProductsMethodDescriptor); methodDescriptors.add(setInventoryMethodDescriptor); methodDescriptors.add(addFulfillmentPlacesMethodDescriptor); @@ -903,6 +973,17 @@ public UnaryCallable deleteProductCallable() { return deleteProductCallable; } + @Override + public UnaryCallable purgeProductsCallable() { + return purgeProductsCallable; + } + + @Override + public OperationCallable + purgeProductsOperationCallable() { + return purgeProductsOperationCallable; + } + @Override public UnaryCallable importProductsCallable() { return importProductsCallable; diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ModelServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ModelServiceStubSettings.java index 92be1cda5a02..21e50cd77eb4 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ModelServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ModelServiceStubSettings.java @@ -382,7 +382,7 @@ public static class Builder extends StubSettings.Builder> definitions = ImmutableMap.builder(); definitions.put( - "retry_policy_2_codes", + "retry_policy_3_codes", ImmutableSet.copyOf( Lists.newArrayList( StatusCode.Code.UNAVAILABLE, StatusCode.Code.DEADLINE_EXCEEDED))); @@ -404,7 +404,7 @@ public static class Builder extends StubSettings.BuildernewUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Model.class)) @@ -557,8 +557,8 @@ private static Builder initDefaults(Builder builder) { .tuneModelOperationSettings() .setInitialCallSettings( UnaryCallSettings.newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(TuneModelResponse.class)) diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ProductServiceStub.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ProductServiceStub.java index ae43c312ea41..c416b3bfe53b 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ProductServiceStub.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ProductServiceStub.java @@ -37,6 +37,9 @@ import com.google.cloud.retail.v2beta.ListProductsRequest; import com.google.cloud.retail.v2beta.ListProductsResponse; import com.google.cloud.retail.v2beta.Product; +import com.google.cloud.retail.v2beta.PurgeProductsMetadata; +import com.google.cloud.retail.v2beta.PurgeProductsRequest; +import com.google.cloud.retail.v2beta.PurgeProductsResponse; import com.google.cloud.retail.v2beta.RemoveFulfillmentPlacesMetadata; import com.google.cloud.retail.v2beta.RemoveFulfillmentPlacesRequest; import com.google.cloud.retail.v2beta.RemoveFulfillmentPlacesResponse; @@ -94,6 +97,15 @@ public UnaryCallable deleteProductCallable() { throw new UnsupportedOperationException("Not implemented: deleteProductCallable()"); } + public OperationCallable + purgeProductsOperationCallable() { + throw new UnsupportedOperationException("Not implemented: purgeProductsOperationCallable()"); + } + + public UnaryCallable purgeProductsCallable() { + throw new UnsupportedOperationException("Not implemented: purgeProductsCallable()"); + } + public OperationCallable importProductsOperationCallable() { throw new UnsupportedOperationException("Not implemented: importProductsOperationCallable()"); diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ProductServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ProductServiceStubSettings.java index ba9730f5c487..a89dfbc76b18 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ProductServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/ProductServiceStubSettings.java @@ -62,6 +62,9 @@ import com.google.cloud.retail.v2beta.ListProductsRequest; import com.google.cloud.retail.v2beta.ListProductsResponse; import com.google.cloud.retail.v2beta.Product; +import com.google.cloud.retail.v2beta.PurgeProductsMetadata; +import com.google.cloud.retail.v2beta.PurgeProductsRequest; +import com.google.cloud.retail.v2beta.PurgeProductsResponse; import com.google.cloud.retail.v2beta.RemoveFulfillmentPlacesMetadata; import com.google.cloud.retail.v2beta.RemoveFulfillmentPlacesRequest; import com.google.cloud.retail.v2beta.RemoveFulfillmentPlacesResponse; @@ -134,6 +137,10 @@ public class ProductServiceStubSettings extends StubSettings updateProductSettings; private final UnaryCallSettings deleteProductSettings; + private final UnaryCallSettings purgeProductsSettings; + private final OperationCallSettings< + PurgeProductsRequest, PurgeProductsResponse, PurgeProductsMetadata> + purgeProductsOperationSettings; private final UnaryCallSettings importProductsSettings; private final OperationCallSettings importProductsOperationSettings; @@ -245,6 +252,17 @@ public UnaryCallSettings deleteProductSettings() { return deleteProductSettings; } + /** Returns the object with the settings used for calls to purgeProducts. */ + public UnaryCallSettings purgeProductsSettings() { + return purgeProductsSettings; + } + + /** Returns the object with the settings used for calls to purgeProducts. */ + public OperationCallSettings + purgeProductsOperationSettings() { + return purgeProductsOperationSettings; + } + /** Returns the object with the settings used for calls to importProducts. */ public UnaryCallSettings importProductsSettings() { return importProductsSettings; @@ -436,6 +454,8 @@ protected ProductServiceStubSettings(Builder settingsBuilder) throws IOException listProductsSettings = settingsBuilder.listProductsSettings().build(); updateProductSettings = settingsBuilder.updateProductSettings().build(); deleteProductSettings = settingsBuilder.deleteProductSettings().build(); + purgeProductsSettings = settingsBuilder.purgeProductsSettings().build(); + purgeProductsOperationSettings = settingsBuilder.purgeProductsOperationSettings().build(); importProductsSettings = settingsBuilder.importProductsSettings().build(); importProductsOperationSettings = settingsBuilder.importProductsOperationSettings().build(); setInventorySettings = settingsBuilder.setInventorySettings().build(); @@ -464,6 +484,10 @@ public static class Builder extends StubSettings.Builder updateProductSettings; private final UnaryCallSettings.Builder deleteProductSettings; + private final UnaryCallSettings.Builder purgeProductsSettings; + private final OperationCallSettings.Builder< + PurgeProductsRequest, PurgeProductsResponse, PurgeProductsMetadata> + purgeProductsOperationSettings; private final UnaryCallSettings.Builder importProductsSettings; private final OperationCallSettings.Builder< @@ -504,12 +528,12 @@ public static class Builder extends StubSettings.Builder> definitions = ImmutableMap.builder(); definitions.put( - "retry_policy_1_codes", + "retry_policy_2_codes", ImmutableSet.copyOf( Lists.newArrayList( StatusCode.Code.UNAVAILABLE, StatusCode.Code.DEADLINE_EXCEEDED))); definitions.put( - "retry_policy_3_codes", + "retry_policy_4_codes", ImmutableSet.copyOf( Lists.newArrayList( StatusCode.Code.UNAVAILABLE, StatusCode.Code.DEADLINE_EXCEEDED))); @@ -531,7 +555,7 @@ public static class Builder extends StubSettings.BuildernewUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(PurgeProductsResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(PurgeProductsMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); builder .importProductsOperationSettings() .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_4_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(ImportProductsResponse.class)) @@ -736,8 +795,8 @@ private static Builder initDefaults(Builder builder) { .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(SetInventoryResponse.class)) @@ -760,8 +819,8 @@ private static Builder initDefaults(Builder builder) { .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create( @@ -786,8 +845,8 @@ private static Builder initDefaults(Builder builder) { .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create( @@ -812,8 +871,8 @@ private static Builder initDefaults(Builder builder) { .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create( @@ -838,8 +897,8 @@ private static Builder initDefaults(Builder builder) { .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create( @@ -904,6 +963,18 @@ public UnaryCallSettings.Builder deleteProductSetti return deleteProductSettings; } + /** Returns the builder for the settings used for calls to purgeProducts. */ + public UnaryCallSettings.Builder purgeProductsSettings() { + return purgeProductsSettings; + } + + /** Returns the builder for the settings used for calls to purgeProducts. */ + public OperationCallSettings.Builder< + PurgeProductsRequest, PurgeProductsResponse, PurgeProductsMetadata> + purgeProductsOperationSettings() { + return purgeProductsOperationSettings; + } + /** Returns the builder for the settings used for calls to importProducts. */ public UnaryCallSettings.Builder importProductsSettings() { return importProductsSettings; diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/UserEventServiceStubSettings.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/UserEventServiceStubSettings.java index 08b8989f973d..f3d5a590f7a7 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/UserEventServiceStubSettings.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/UserEventServiceStubSettings.java @@ -313,17 +313,17 @@ public static class Builder extends StubSettings.Builder> definitions = ImmutableMap.builder(); definitions.put( - "retry_policy_0_codes", + "retry_policy_1_codes", ImmutableSet.copyOf( Lists.newArrayList( StatusCode.Code.UNAVAILABLE, StatusCode.Code.DEADLINE_EXCEEDED))); definitions.put( - "retry_policy_1_codes", + "retry_policy_2_codes", ImmutableSet.copyOf( Lists.newArrayList( StatusCode.Code.UNAVAILABLE, StatusCode.Code.DEADLINE_EXCEEDED))); definitions.put( - "retry_policy_4_codes", + "retry_policy_5_codes", ImmutableSet.copyOf( Lists.newArrayList( StatusCode.Code.UNAVAILABLE, StatusCode.Code.DEADLINE_EXCEEDED))); @@ -340,12 +340,12 @@ public static class Builder extends StubSettings.BuildernewUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(PurgeUserEventsResponse.class)) @@ -497,8 +497,8 @@ private static Builder initDefaults(Builder builder) { .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_4_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_4_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_5_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_5_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(ImportUserEventsResponse.class)) @@ -521,8 +521,8 @@ private static Builder initDefaults(Builder builder) { .setInitialCallSettings( UnaryCallSettings .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(RejoinUserEventsResponse.class)) diff --git a/java-retail/google-cloud-retail/src/main/resources/META-INF/native-image/com.google.cloud.retail.v2/reflect-config.json b/java-retail/google-cloud-retail/src/main/resources/META-INF/native-image/com.google.cloud.retail.v2/reflect-config.json index 3c0f2563c0f2..4b703302480e 100644 --- a/java-retail/google-cloud-retail/src/main/resources/META-INF/native-image/com.google.cloud.retail.v2/reflect-config.json +++ b/java-retail/google-cloud-retail/src/main/resources/META-INF/native-image/com.google.cloud.retail.v2/reflect-config.json @@ -683,6 +683,96 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.retail.v2.CatalogAttribute$FacetConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2.CatalogAttribute$FacetConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2.CatalogAttribute$FacetConfig$IgnoredFacetValues", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2.CatalogAttribute$FacetConfig$IgnoredFacetValues$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2.CatalogAttribute$FacetConfig$MergedFacet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2.CatalogAttribute$FacetConfig$MergedFacet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2.CatalogAttribute$FacetConfig$MergedFacetValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2.CatalogAttribute$FacetConfig$MergedFacetValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2.CatalogAttribute$FacetConfig$RerankConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2.CatalogAttribute$FacetConfig$RerankConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.retail.v2.CatalogAttribute$IndexableOption", "queryAllDeclaredConstructors": true, @@ -1835,6 +1925,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.retail.v2.Model$ContextProductsType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.retail.v2.Model$DataState", "queryAllDeclaredConstructors": true, @@ -1844,6 +1943,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.retail.v2.Model$FrequentlyBoughtTogetherFeaturesConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2.Model$FrequentlyBoughtTogetherFeaturesConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2.Model$ModelFeaturesConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2.Model$ModelFeaturesConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.retail.v2.Model$PeriodicTuningState", "queryAllDeclaredConstructors": true, @@ -2231,6 +2366,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.retail.v2.PurgeProductsMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2.PurgeProductsMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2.PurgeProductsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2.PurgeProductsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2.PurgeProductsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2.PurgeProductsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.retail.v2.PurgeUserEventsRequest", "queryAllDeclaredConstructors": true, @@ -2609,6 +2798,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.retail.v2.Rule$ForceReturnFacetAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2.Rule$ForceReturnFacetAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2.Rule$ForceReturnFacetAction$FacetPositionAdjustment", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2.Rule$ForceReturnFacetAction$FacetPositionAdjustment$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.retail.v2.Rule$IgnoreAction", "queryAllDeclaredConstructors": true, @@ -2663,6 +2888,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.retail.v2.Rule$RemoveFacetAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2.Rule$RemoveFacetAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.retail.v2.Rule$ReplacementAction", "queryAllDeclaredConstructors": true, diff --git a/java-retail/google-cloud-retail/src/main/resources/META-INF/native-image/com.google.cloud.retail.v2alpha/reflect-config.json b/java-retail/google-cloud-retail/src/main/resources/META-INF/native-image/com.google.cloud.retail.v2alpha/reflect-config.json index b84c64d03a15..4ddb74374bb3 100644 --- a/java-retail/google-cloud-retail/src/main/resources/META-INF/native-image/com.google.cloud.retail.v2alpha/reflect-config.json +++ b/java-retail/google-cloud-retail/src/main/resources/META-INF/native-image/com.google.cloud.retail.v2alpha/reflect-config.json @@ -395,6 +395,96 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.location.GetLocationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.GetLocationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.Location", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.Location$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.AcceptTermsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.AcceptTermsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.retail.v2alpha.AddCatalogAttributeRequest", "queryAllDeclaredConstructors": true, @@ -539,6 +629,69 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.retail.v2alpha.AlertConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.AlertConfig$AlertPolicy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.AlertConfig$AlertPolicy$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.AlertConfig$AlertPolicy$EnrollStatus", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.AlertConfig$AlertPolicy$Recipient", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.AlertConfig$AlertPolicy$Recipient$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.AlertConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.retail.v2alpha.AttributeConfigLevel", "queryAllDeclaredConstructors": true, @@ -657,7 +810,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.Catalog", + "name": "com.google.cloud.retail.v2alpha.Branch", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -666,7 +819,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.Catalog$Builder", + "name": "com.google.cloud.retail.v2alpha.Branch$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -675,7 +828,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.CatalogAttribute", + "name": "com.google.cloud.retail.v2alpha.Branch$ProductCountStatistic", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -684,7 +837,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.CatalogAttribute$AttributeType", + "name": "com.google.cloud.retail.v2alpha.Branch$ProductCountStatistic$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -693,7 +846,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.CatalogAttribute$Builder", + "name": "com.google.cloud.retail.v2alpha.Branch$ProductCountStatistic$ProductCountScope", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -702,7 +855,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.CatalogAttribute$DynamicFacetableOption", + "name": "com.google.cloud.retail.v2alpha.Branch$QualityMetric", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -711,7 +864,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.CatalogAttribute$ExactSearchableOption", + "name": "com.google.cloud.retail.v2alpha.Branch$QualityMetric$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -720,7 +873,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.CatalogAttribute$IndexableOption", + "name": "com.google.cloud.retail.v2alpha.BranchView", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -729,7 +882,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.CatalogAttribute$RetrievableOption", + "name": "com.google.cloud.retail.v2alpha.Catalog", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -738,7 +891,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.CatalogAttribute$SearchableOption", + "name": "com.google.cloud.retail.v2alpha.Catalog$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -747,7 +900,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.CollectUserEventRequest", + "name": "com.google.cloud.retail.v2alpha.CatalogAttribute", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -756,7 +909,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.CollectUserEventRequest$Builder", + "name": "com.google.cloud.retail.v2alpha.CatalogAttribute$AttributeType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -765,7 +918,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ColorInfo", + "name": "com.google.cloud.retail.v2alpha.CatalogAttribute$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -774,7 +927,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ColorInfo$Builder", + "name": "com.google.cloud.retail.v2alpha.CatalogAttribute$DynamicFacetableOption", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -783,7 +936,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.CompleteQueryRequest", + "name": "com.google.cloud.retail.v2alpha.CatalogAttribute$ExactSearchableOption", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -792,7 +945,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.CompleteQueryRequest$Builder", + "name": "com.google.cloud.retail.v2alpha.CatalogAttribute$FacetConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -801,7 +954,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.CompleteQueryResponse", + "name": "com.google.cloud.retail.v2alpha.CatalogAttribute$FacetConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -810,7 +963,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.CompleteQueryResponse$AttributeResult", + "name": "com.google.cloud.retail.v2alpha.CatalogAttribute$FacetConfig$IgnoredFacetValues", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -819,7 +972,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.CompleteQueryResponse$AttributeResult$Builder", + "name": "com.google.cloud.retail.v2alpha.CatalogAttribute$FacetConfig$IgnoredFacetValues$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -828,7 +981,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.CompleteQueryResponse$Builder", + "name": "com.google.cloud.retail.v2alpha.CatalogAttribute$FacetConfig$MergedFacet", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -837,7 +990,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.CompleteQueryResponse$CompletionResult", + "name": "com.google.cloud.retail.v2alpha.CatalogAttribute$FacetConfig$MergedFacet$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -846,7 +999,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.CompleteQueryResponse$CompletionResult$Builder", + "name": "com.google.cloud.retail.v2alpha.CatalogAttribute$FacetConfig$MergedFacetValue", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -855,7 +1008,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.CompleteQueryResponse$RecentSearchResult", + "name": "com.google.cloud.retail.v2alpha.CatalogAttribute$FacetConfig$MergedFacetValue$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -864,7 +1017,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.CompleteQueryResponse$RecentSearchResult$Builder", + "name": "com.google.cloud.retail.v2alpha.CatalogAttribute$FacetConfig$RerankConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -873,7 +1026,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.CompletionConfig", + "name": "com.google.cloud.retail.v2alpha.CatalogAttribute$FacetConfig$RerankConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -882,7 +1035,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.CompletionConfig$Builder", + "name": "com.google.cloud.retail.v2alpha.CatalogAttribute$IndexableOption", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -891,7 +1044,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.CompletionDataInputConfig", + "name": "com.google.cloud.retail.v2alpha.CatalogAttribute$RetrievableOption", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -900,7 +1053,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.CompletionDataInputConfig$Builder", + "name": "com.google.cloud.retail.v2alpha.CatalogAttribute$SearchableOption", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -909,7 +1062,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.CompletionDetail", + "name": "com.google.cloud.retail.v2alpha.CollectUserEventRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -918,7 +1071,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.CompletionDetail$Builder", + "name": "com.google.cloud.retail.v2alpha.CollectUserEventRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -927,7 +1080,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.Condition", + "name": "com.google.cloud.retail.v2alpha.ColorInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -936,7 +1089,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.Condition$Builder", + "name": "com.google.cloud.retail.v2alpha.ColorInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -945,7 +1098,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.Condition$QueryTerm", + "name": "com.google.cloud.retail.v2alpha.CompleteQueryRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -954,7 +1107,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.Condition$QueryTerm$Builder", + "name": "com.google.cloud.retail.v2alpha.CompleteQueryRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -963,7 +1116,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.Condition$TimeRange", + "name": "com.google.cloud.retail.v2alpha.CompleteQueryResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -972,7 +1125,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.Condition$TimeRange$Builder", + "name": "com.google.cloud.retail.v2alpha.CompleteQueryResponse$AttributeResult", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -981,7 +1134,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.Control", + "name": "com.google.cloud.retail.v2alpha.CompleteQueryResponse$AttributeResult$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -990,7 +1143,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.Control$Builder", + "name": "com.google.cloud.retail.v2alpha.CompleteQueryResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -999,7 +1152,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.CreateControlRequest", + "name": "com.google.cloud.retail.v2alpha.CompleteQueryResponse$CompletionResult", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1008,7 +1161,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.CreateControlRequest$Builder", + "name": "com.google.cloud.retail.v2alpha.CompleteQueryResponse$CompletionResult$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1017,7 +1170,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.CreateMerchantCenterAccountLinkMetadata", + "name": "com.google.cloud.retail.v2alpha.CompleteQueryResponse$RecentSearchResult", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1026,7 +1179,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.CreateMerchantCenterAccountLinkMetadata$Builder", + "name": "com.google.cloud.retail.v2alpha.CompleteQueryResponse$RecentSearchResult$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1035,7 +1188,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.CreateMerchantCenterAccountLinkRequest", + "name": "com.google.cloud.retail.v2alpha.CompletionConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1044,7 +1197,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.CreateMerchantCenterAccountLinkRequest$Builder", + "name": "com.google.cloud.retail.v2alpha.CompletionConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1053,7 +1206,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.CreateModelMetadata", + "name": "com.google.cloud.retail.v2alpha.CompletionDataInputConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1062,7 +1215,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.CreateModelMetadata$Builder", + "name": "com.google.cloud.retail.v2alpha.CompletionDataInputConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1071,7 +1224,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.CreateModelRequest", + "name": "com.google.cloud.retail.v2alpha.CompletionDetail", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1080,7 +1233,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.CreateModelRequest$Builder", + "name": "com.google.cloud.retail.v2alpha.CompletionDetail$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1089,7 +1242,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.CreateProductRequest", + "name": "com.google.cloud.retail.v2alpha.Condition", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1098,7 +1251,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.CreateProductRequest$Builder", + "name": "com.google.cloud.retail.v2alpha.Condition$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1107,7 +1260,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.CreateServingConfigRequest", + "name": "com.google.cloud.retail.v2alpha.Condition$QueryTerm", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1116,7 +1269,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.CreateServingConfigRequest$Builder", + "name": "com.google.cloud.retail.v2alpha.Condition$QueryTerm$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1125,7 +1278,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.CustomAttribute", + "name": "com.google.cloud.retail.v2alpha.Condition$TimeRange", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1134,7 +1287,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.CustomAttribute$Builder", + "name": "com.google.cloud.retail.v2alpha.Condition$TimeRange$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1143,7 +1296,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.DeleteControlRequest", + "name": "com.google.cloud.retail.v2alpha.Control", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1152,7 +1305,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.DeleteControlRequest$Builder", + "name": "com.google.cloud.retail.v2alpha.Control$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1161,7 +1314,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.DeleteMerchantCenterAccountLinkRequest", + "name": "com.google.cloud.retail.v2alpha.CreateControlRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1170,7 +1323,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.DeleteMerchantCenterAccountLinkRequest$Builder", + "name": "com.google.cloud.retail.v2alpha.CreateControlRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1179,7 +1332,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.DeleteModelRequest", + "name": "com.google.cloud.retail.v2alpha.CreateMerchantCenterAccountLinkMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1188,7 +1341,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.DeleteModelRequest$Builder", + "name": "com.google.cloud.retail.v2alpha.CreateMerchantCenterAccountLinkMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1197,7 +1350,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.DeleteProductRequest", + "name": "com.google.cloud.retail.v2alpha.CreateMerchantCenterAccountLinkRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1206,7 +1359,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.DeleteProductRequest$Builder", + "name": "com.google.cloud.retail.v2alpha.CreateMerchantCenterAccountLinkRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1215,7 +1368,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.DeleteServingConfigRequest", + "name": "com.google.cloud.retail.v2alpha.CreateModelMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1224,7 +1377,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.DeleteServingConfigRequest$Builder", + "name": "com.google.cloud.retail.v2alpha.CreateModelMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1233,7 +1386,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ExperimentInfo", + "name": "com.google.cloud.retail.v2alpha.CreateModelRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1242,7 +1395,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ExperimentInfo$Builder", + "name": "com.google.cloud.retail.v2alpha.CreateModelRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1251,7 +1404,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ExperimentInfo$ServingConfigExperiment", + "name": "com.google.cloud.retail.v2alpha.CreateProductRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1260,7 +1413,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ExperimentInfo$ServingConfigExperiment$Builder", + "name": "com.google.cloud.retail.v2alpha.CreateProductRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1269,7 +1422,223 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ExportAnalyticsMetricsRequest", + "name": "com.google.cloud.retail.v2alpha.CreateServingConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.CreateServingConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.CustomAttribute", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.CustomAttribute$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.DeleteControlRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.DeleteControlRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.DeleteMerchantCenterAccountLinkRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.DeleteMerchantCenterAccountLinkRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.DeleteModelRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.DeleteModelRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.DeleteProductRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.DeleteProductRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.DeleteServingConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.DeleteServingConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.EnrollSolutionMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.EnrollSolutionMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.EnrollSolutionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.EnrollSolutionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.EnrollSolutionResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.EnrollSolutionResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.ExperimentInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.ExperimentInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.ExperimentInfo$ServingConfigExperiment", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.ExperimentInfo$ServingConfigExperiment$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.ExportAnalyticsMetricsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1296,7 +1665,259 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ExportAnalyticsMetricsResponse$Builder", + "name": "com.google.cloud.retail.v2alpha.ExportAnalyticsMetricsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.ExportErrorsConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.ExportErrorsConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.ExportMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.ExportMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.ExportProductsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.ExportProductsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.ExportUserEventsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.ExportUserEventsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.FulfillmentInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.FulfillmentInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.GcsOutputResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.GcsOutputResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.GcsSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.GcsSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.GetAlertConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.GetAlertConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.GetAttributesConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.GetAttributesConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.GetBranchRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.GetBranchRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.GetCompletionConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.GetCompletionConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.GetControlRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.GetControlRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.GetDefaultBranchRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.GetDefaultBranchRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.GetDefaultBranchResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.GetDefaultBranchResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1305,7 +1926,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ExportErrorsConfig", + "name": "com.google.cloud.retail.v2alpha.GetLoggingConfigRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1314,7 +1935,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ExportErrorsConfig$Builder", + "name": "com.google.cloud.retail.v2alpha.GetLoggingConfigRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1323,7 +1944,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ExportMetadata", + "name": "com.google.cloud.retail.v2alpha.GetModelRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1332,7 +1953,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ExportMetadata$Builder", + "name": "com.google.cloud.retail.v2alpha.GetModelRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1341,7 +1962,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ExportProductsResponse", + "name": "com.google.cloud.retail.v2alpha.GetProductRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1350,7 +1971,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ExportProductsResponse$Builder", + "name": "com.google.cloud.retail.v2alpha.GetProductRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1359,7 +1980,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ExportUserEventsResponse", + "name": "com.google.cloud.retail.v2alpha.GetProjectRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1368,7 +1989,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ExportUserEventsResponse$Builder", + "name": "com.google.cloud.retail.v2alpha.GetProjectRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1377,7 +1998,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.FulfillmentInfo", + "name": "com.google.cloud.retail.v2alpha.GetServingConfigRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1386,7 +2007,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.FulfillmentInfo$Builder", + "name": "com.google.cloud.retail.v2alpha.GetServingConfigRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1395,7 +2016,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.GcsOutputResult", + "name": "com.google.cloud.retail.v2alpha.Image", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1404,7 +2025,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.GcsOutputResult$Builder", + "name": "com.google.cloud.retail.v2alpha.Image$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1413,7 +2034,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.GcsSource", + "name": "com.google.cloud.retail.v2alpha.ImportCompletionDataRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1422,7 +2043,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.GcsSource$Builder", + "name": "com.google.cloud.retail.v2alpha.ImportCompletionDataRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1431,7 +2052,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.GetAttributesConfigRequest", + "name": "com.google.cloud.retail.v2alpha.ImportCompletionDataResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1440,7 +2061,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.GetAttributesConfigRequest$Builder", + "name": "com.google.cloud.retail.v2alpha.ImportCompletionDataResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1449,7 +2070,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.GetCompletionConfigRequest", + "name": "com.google.cloud.retail.v2alpha.ImportErrorsConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1458,7 +2079,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.GetCompletionConfigRequest$Builder", + "name": "com.google.cloud.retail.v2alpha.ImportErrorsConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1467,7 +2088,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.GetControlRequest", + "name": "com.google.cloud.retail.v2alpha.ImportMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1476,7 +2097,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.GetControlRequest$Builder", + "name": "com.google.cloud.retail.v2alpha.ImportMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1485,7 +2106,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.GetDefaultBranchRequest", + "name": "com.google.cloud.retail.v2alpha.ImportProductsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1494,7 +2115,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.GetDefaultBranchRequest$Builder", + "name": "com.google.cloud.retail.v2alpha.ImportProductsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1503,7 +2124,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.GetDefaultBranchResponse", + "name": "com.google.cloud.retail.v2alpha.ImportProductsRequest$ReconciliationMode", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1512,7 +2133,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.GetDefaultBranchResponse$Builder", + "name": "com.google.cloud.retail.v2alpha.ImportProductsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1521,7 +2142,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.GetModelRequest", + "name": "com.google.cloud.retail.v2alpha.ImportProductsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1530,7 +2151,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.GetModelRequest$Builder", + "name": "com.google.cloud.retail.v2alpha.ImportUserEventsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1539,7 +2160,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.GetProductRequest", + "name": "com.google.cloud.retail.v2alpha.ImportUserEventsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1548,7 +2169,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.GetProductRequest$Builder", + "name": "com.google.cloud.retail.v2alpha.ImportUserEventsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1557,7 +2178,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.GetServingConfigRequest", + "name": "com.google.cloud.retail.v2alpha.ImportUserEventsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1566,7 +2187,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.GetServingConfigRequest$Builder", + "name": "com.google.cloud.retail.v2alpha.Interval", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1575,7 +2196,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.Image", + "name": "com.google.cloud.retail.v2alpha.Interval$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1584,7 +2205,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.Image$Builder", + "name": "com.google.cloud.retail.v2alpha.ListBranchesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1593,7 +2214,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ImportCompletionDataRequest", + "name": "com.google.cloud.retail.v2alpha.ListBranchesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1602,7 +2223,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ImportCompletionDataRequest$Builder", + "name": "com.google.cloud.retail.v2alpha.ListBranchesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1611,7 +2232,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ImportCompletionDataResponse", + "name": "com.google.cloud.retail.v2alpha.ListBranchesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1620,7 +2241,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ImportCompletionDataResponse$Builder", + "name": "com.google.cloud.retail.v2alpha.ListCatalogsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1629,7 +2250,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ImportErrorsConfig", + "name": "com.google.cloud.retail.v2alpha.ListCatalogsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1638,7 +2259,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ImportErrorsConfig$Builder", + "name": "com.google.cloud.retail.v2alpha.ListCatalogsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1647,7 +2268,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ImportMetadata", + "name": "com.google.cloud.retail.v2alpha.ListCatalogsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1656,7 +2277,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ImportMetadata$Builder", + "name": "com.google.cloud.retail.v2alpha.ListControlsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1665,7 +2286,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ImportProductsRequest", + "name": "com.google.cloud.retail.v2alpha.ListControlsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1674,7 +2295,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ImportProductsRequest$Builder", + "name": "com.google.cloud.retail.v2alpha.ListControlsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1683,7 +2304,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ImportProductsRequest$ReconciliationMode", + "name": "com.google.cloud.retail.v2alpha.ListControlsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1692,7 +2313,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ImportProductsResponse", + "name": "com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1701,7 +2322,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ImportProductsResponse$Builder", + "name": "com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1710,7 +2331,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ImportUserEventsRequest", + "name": "com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1719,7 +2340,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ImportUserEventsRequest$Builder", + "name": "com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1728,7 +2349,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ImportUserEventsResponse", + "name": "com.google.cloud.retail.v2alpha.ListMerchantCenterAccountLinksRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1737,7 +2358,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ImportUserEventsResponse$Builder", + "name": "com.google.cloud.retail.v2alpha.ListMerchantCenterAccountLinksRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1746,7 +2367,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.Interval", + "name": "com.google.cloud.retail.v2alpha.ListMerchantCenterAccountLinksResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1755,7 +2376,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.Interval$Builder", + "name": "com.google.cloud.retail.v2alpha.ListMerchantCenterAccountLinksResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1764,7 +2385,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ListCatalogsRequest", + "name": "com.google.cloud.retail.v2alpha.ListModelsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1773,7 +2394,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ListCatalogsRequest$Builder", + "name": "com.google.cloud.retail.v2alpha.ListModelsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1782,7 +2403,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ListCatalogsResponse", + "name": "com.google.cloud.retail.v2alpha.ListModelsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1791,7 +2412,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ListCatalogsResponse$Builder", + "name": "com.google.cloud.retail.v2alpha.ListModelsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1800,7 +2421,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ListControlsRequest", + "name": "com.google.cloud.retail.v2alpha.ListProductsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1809,7 +2430,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ListControlsRequest$Builder", + "name": "com.google.cloud.retail.v2alpha.ListProductsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1818,7 +2439,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ListControlsResponse", + "name": "com.google.cloud.retail.v2alpha.ListProductsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1827,7 +2448,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ListControlsResponse$Builder", + "name": "com.google.cloud.retail.v2alpha.ListProductsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1836,7 +2457,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ListMerchantCenterAccountLinksRequest", + "name": "com.google.cloud.retail.v2alpha.ListServingConfigsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1845,7 +2466,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ListMerchantCenterAccountLinksRequest$Builder", + "name": "com.google.cloud.retail.v2alpha.ListServingConfigsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1854,7 +2475,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ListMerchantCenterAccountLinksResponse", + "name": "com.google.cloud.retail.v2alpha.ListServingConfigsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1863,7 +2484,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ListMerchantCenterAccountLinksResponse$Builder", + "name": "com.google.cloud.retail.v2alpha.ListServingConfigsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1872,7 +2493,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ListModelsRequest", + "name": "com.google.cloud.retail.v2alpha.LocalInventory", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1881,7 +2502,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ListModelsRequest$Builder", + "name": "com.google.cloud.retail.v2alpha.LocalInventory$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1890,7 +2511,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ListModelsResponse", + "name": "com.google.cloud.retail.v2alpha.LoggingConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1899,7 +2520,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ListModelsResponse$Builder", + "name": "com.google.cloud.retail.v2alpha.LoggingConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1908,7 +2529,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ListProductsRequest", + "name": "com.google.cloud.retail.v2alpha.LoggingConfig$LogGenerationRule", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1917,7 +2538,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ListProductsRequest$Builder", + "name": "com.google.cloud.retail.v2alpha.LoggingConfig$LogGenerationRule$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1926,7 +2547,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ListProductsResponse", + "name": "com.google.cloud.retail.v2alpha.LoggingConfig$LoggingLevel", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1935,7 +2556,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ListProductsResponse$Builder", + "name": "com.google.cloud.retail.v2alpha.LoggingConfig$ServiceLogGenerationRule", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1944,7 +2565,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ListServingConfigsRequest", + "name": "com.google.cloud.retail.v2alpha.LoggingConfig$ServiceLogGenerationRule$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1953,7 +2574,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ListServingConfigsRequest$Builder", + "name": "com.google.cloud.retail.v2alpha.MerchantCenterAccountLink", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1962,7 +2583,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ListServingConfigsResponse", + "name": "com.google.cloud.retail.v2alpha.MerchantCenterAccountLink$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1971,7 +2592,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.ListServingConfigsResponse$Builder", + "name": "com.google.cloud.retail.v2alpha.MerchantCenterAccountLink$MerchantCenterFeedFilter", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1980,7 +2601,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.LocalInventory", + "name": "com.google.cloud.retail.v2alpha.MerchantCenterAccountLink$MerchantCenterFeedFilter$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1989,7 +2610,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.LocalInventory$Builder", + "name": "com.google.cloud.retail.v2alpha.MerchantCenterAccountLink$State", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1998,7 +2619,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.MerchantCenterAccountLink", + "name": "com.google.cloud.retail.v2alpha.MerchantCenterFeedFilter", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2007,7 +2628,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.MerchantCenterAccountLink$Builder", + "name": "com.google.cloud.retail.v2alpha.MerchantCenterFeedFilter$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2016,7 +2637,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.MerchantCenterAccountLink$MerchantCenterFeedFilter", + "name": "com.google.cloud.retail.v2alpha.MerchantCenterLink", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2025,7 +2646,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.MerchantCenterAccountLink$MerchantCenterFeedFilter$Builder", + "name": "com.google.cloud.retail.v2alpha.MerchantCenterLink$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2034,7 +2655,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.MerchantCenterAccountLink$State", + "name": "com.google.cloud.retail.v2alpha.MerchantCenterLinkingConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2043,7 +2664,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.MerchantCenterFeedFilter", + "name": "com.google.cloud.retail.v2alpha.MerchantCenterLinkingConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2052,7 +2673,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.MerchantCenterFeedFilter$Builder", + "name": "com.google.cloud.retail.v2alpha.Model", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2061,7 +2682,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.MerchantCenterLink", + "name": "com.google.cloud.retail.v2alpha.Model$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2070,7 +2691,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.MerchantCenterLink$Builder", + "name": "com.google.cloud.retail.v2alpha.Model$ContextProductsType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2079,7 +2700,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.MerchantCenterLinkingConfig", + "name": "com.google.cloud.retail.v2alpha.Model$DataState", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2088,7 +2709,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.MerchantCenterLinkingConfig$Builder", + "name": "com.google.cloud.retail.v2alpha.Model$FrequentlyBoughtTogetherFeaturesConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2097,7 +2718,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.Model", + "name": "com.google.cloud.retail.v2alpha.Model$FrequentlyBoughtTogetherFeaturesConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2106,7 +2727,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.Model$Builder", + "name": "com.google.cloud.retail.v2alpha.Model$ModelFeaturesConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2115,7 +2736,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.retail.v2alpha.Model$DataState", + "name": "com.google.cloud.retail.v2alpha.Model$ModelFeaturesConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2519,6 +3140,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.retail.v2alpha.Project", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.Project$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.retail.v2alpha.Promotion", "queryAllDeclaredConstructors": true, @@ -3005,6 +3644,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.retail.v2alpha.Rule$ForceReturnFacetAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.Rule$ForceReturnFacetAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.Rule$ForceReturnFacetAction$FacetPositionAdjustment", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.Rule$ForceReturnFacetAction$FacetPositionAdjustment$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.retail.v2alpha.Rule$IgnoreAction", "queryAllDeclaredConstructors": true, @@ -3059,6 +3734,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.retail.v2alpha.Rule$RemoveFacetAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.Rule$RemoveFacetAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.retail.v2alpha.Rule$ReplacementAction", "queryAllDeclaredConstructors": true, @@ -3590,6 +4283,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.retail.v2alpha.UpdateAttributesConfigRequest", "queryAllDeclaredConstructors": true, @@ -3662,6 +4373,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.retail.v2alpha.UpdateModelRequest", "queryAllDeclaredConstructors": true, diff --git a/java-retail/google-cloud-retail/src/main/resources/META-INF/native-image/com.google.cloud.retail.v2beta/reflect-config.json b/java-retail/google-cloud-retail/src/main/resources/META-INF/native-image/com.google.cloud.retail.v2beta/reflect-config.json index 580c11150355..508aaf805b69 100644 --- a/java-retail/google-cloud-retail/src/main/resources/META-INF/native-image/com.google.cloud.retail.v2beta/reflect-config.json +++ b/java-retail/google-cloud-retail/src/main/resources/META-INF/native-image/com.google.cloud.retail.v2beta/reflect-config.json @@ -719,6 +719,96 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.retail.v2beta.CatalogAttribute$FacetConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2beta.CatalogAttribute$FacetConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2beta.CatalogAttribute$FacetConfig$IgnoredFacetValues", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2beta.CatalogAttribute$FacetConfig$IgnoredFacetValues$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2beta.CatalogAttribute$FacetConfig$MergedFacet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2beta.CatalogAttribute$FacetConfig$MergedFacet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2beta.CatalogAttribute$FacetConfig$MergedFacetValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2beta.CatalogAttribute$FacetConfig$MergedFacetValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2beta.CatalogAttribute$FacetConfig$RerankConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2beta.CatalogAttribute$FacetConfig$RerankConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.retail.v2beta.CatalogAttribute$IndexableOption", "queryAllDeclaredConstructors": true, @@ -1961,6 +2051,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.retail.v2beta.Model$ContextProductsType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.retail.v2beta.Model$DataState", "queryAllDeclaredConstructors": true, @@ -1970,6 +2069,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.retail.v2beta.Model$FrequentlyBoughtTogetherFeaturesConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2beta.Model$FrequentlyBoughtTogetherFeaturesConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2beta.Model$ModelFeaturesConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2beta.Model$ModelFeaturesConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.retail.v2beta.Model$PeriodicTuningState", "queryAllDeclaredConstructors": true, @@ -2357,6 +2492,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.retail.v2beta.PurgeProductsMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2beta.PurgeProductsMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2beta.PurgeProductsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2beta.PurgeProductsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2beta.PurgeProductsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2beta.PurgeProductsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.retail.v2beta.PurgeUserEventsRequest", "queryAllDeclaredConstructors": true, @@ -2735,6 +2924,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.retail.v2beta.Rule$ForceReturnFacetAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2beta.Rule$ForceReturnFacetAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2beta.Rule$ForceReturnFacetAction$FacetPositionAdjustment", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2beta.Rule$ForceReturnFacetAction$FacetPositionAdjustment$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.retail.v2beta.Rule$IgnoreAction", "queryAllDeclaredConstructors": true, @@ -2789,6 +3014,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.retail.v2beta.Rule$RemoveFacetAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.retail.v2beta.Rule$RemoveFacetAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.retail.v2beta.Rule$ReplacementAction", "queryAllDeclaredConstructors": true, diff --git a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/CompletionServiceClientHttpJsonTest.java b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/CompletionServiceClientHttpJsonTest.java index dcee1bd1ce81..a0d78926dd1a 100644 --- a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/CompletionServiceClientHttpJsonTest.java +++ b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/CompletionServiceClientHttpJsonTest.java @@ -95,6 +95,7 @@ public void completeQueryTest() throws Exception { .setDeviceType("deviceType781190832") .setDataset("dataset1443214456") .setMaxSuggestions(618824852) + .setEnableAttributeSuggestions(true) .setEntity("entity-1298275357") .build(); @@ -133,6 +134,7 @@ public void completeQueryExceptionTest() throws Exception { .setDeviceType("deviceType781190832") .setDataset("dataset1443214456") .setMaxSuggestions(618824852) + .setEnableAttributeSuggestions(true) .setEntity("entity-1298275357") .build(); client.completeQuery(request); diff --git a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/CompletionServiceClientTest.java b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/CompletionServiceClientTest.java index e323dd7cd11c..f5f9c5d80bd4 100644 --- a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/CompletionServiceClientTest.java +++ b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/CompletionServiceClientTest.java @@ -100,6 +100,7 @@ public void completeQueryTest() throws Exception { .setDeviceType("deviceType781190832") .setDataset("dataset1443214456") .setMaxSuggestions(618824852) + .setEnableAttributeSuggestions(true) .setEntity("entity-1298275357") .build(); @@ -117,6 +118,8 @@ public void completeQueryTest() throws Exception { Assert.assertEquals(request.getDeviceType(), actualRequest.getDeviceType()); Assert.assertEquals(request.getDataset(), actualRequest.getDataset()); Assert.assertEquals(request.getMaxSuggestions(), actualRequest.getMaxSuggestions()); + Assert.assertEquals( + request.getEnableAttributeSuggestions(), actualRequest.getEnableAttributeSuggestions()); Assert.assertEquals(request.getEntity(), actualRequest.getEntity()); Assert.assertTrue( channelProvider.isHeaderSent( @@ -139,6 +142,7 @@ public void completeQueryExceptionTest() throws Exception { .setDeviceType("deviceType781190832") .setDataset("dataset1443214456") .setMaxSuggestions(618824852) + .setEnableAttributeSuggestions(true) .setEntity("entity-1298275357") .build(); client.completeQuery(request); diff --git a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/MockProductServiceImpl.java b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/MockProductServiceImpl.java index cfa28d9178ec..9d71733ea74b 100644 --- a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/MockProductServiceImpl.java +++ b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/MockProductServiceImpl.java @@ -163,6 +163,27 @@ public void deleteProduct(DeleteProductRequest request, StreamObserver re } } + @Override + public void purgeProducts( + PurgeProductsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method PurgeProducts, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void importProducts( ImportProductsRequest request, StreamObserver responseObserver) { diff --git a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/ModelServiceClientHttpJsonTest.java b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/ModelServiceClientHttpJsonTest.java index aa741673bc4e..a2deed4de22c 100644 --- a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/ModelServiceClientHttpJsonTest.java +++ b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/ModelServiceClientHttpJsonTest.java @@ -96,6 +96,7 @@ public void createModelTest() throws Exception { .setTuningOperation("tuningOperation-1269747150") .setFilteringOption(RecommendationsFilteringOption.forNumber(0)) .addAllServingConfigLists(new ArrayList()) + .setModelFeaturesConfig(Model.ModelFeaturesConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -156,6 +157,7 @@ public void createModelTest2() throws Exception { .setTuningOperation("tuningOperation-1269747150") .setFilteringOption(RecommendationsFilteringOption.forNumber(0)) .addAllServingConfigLists(new ArrayList()) + .setModelFeaturesConfig(Model.ModelFeaturesConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -216,6 +218,7 @@ public void getModelTest() throws Exception { .setTuningOperation("tuningOperation-1269747150") .setFilteringOption(RecommendationsFilteringOption.forNumber(0)) .addAllServingConfigLists(new ArrayList()) + .setModelFeaturesConfig(Model.ModelFeaturesConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -269,6 +272,7 @@ public void getModelTest2() throws Exception { .setTuningOperation("tuningOperation-1269747150") .setFilteringOption(RecommendationsFilteringOption.forNumber(0)) .addAllServingConfigLists(new ArrayList()) + .setModelFeaturesConfig(Model.ModelFeaturesConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -324,6 +328,7 @@ public void pauseModelTest() throws Exception { .setTuningOperation("tuningOperation-1269747150") .setFilteringOption(RecommendationsFilteringOption.forNumber(0)) .addAllServingConfigLists(new ArrayList()) + .setModelFeaturesConfig(Model.ModelFeaturesConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -377,6 +382,7 @@ public void pauseModelTest2() throws Exception { .setTuningOperation("tuningOperation-1269747150") .setFilteringOption(RecommendationsFilteringOption.forNumber(0)) .addAllServingConfigLists(new ArrayList()) + .setModelFeaturesConfig(Model.ModelFeaturesConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -432,6 +438,7 @@ public void resumeModelTest() throws Exception { .setTuningOperation("tuningOperation-1269747150") .setFilteringOption(RecommendationsFilteringOption.forNumber(0)) .addAllServingConfigLists(new ArrayList()) + .setModelFeaturesConfig(Model.ModelFeaturesConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -669,6 +676,7 @@ public void updateModelTest() throws Exception { .setTuningOperation("tuningOperation-1269747150") .setFilteringOption(RecommendationsFilteringOption.forNumber(0)) .addAllServingConfigLists(new ArrayList()) + .setModelFeaturesConfig(Model.ModelFeaturesConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -684,6 +692,7 @@ public void updateModelTest() throws Exception { .setTuningOperation("tuningOperation-1269747150") .setFilteringOption(RecommendationsFilteringOption.forNumber(0)) .addAllServingConfigLists(new ArrayList()) + .setModelFeaturesConfig(Model.ModelFeaturesConfig.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -725,6 +734,7 @@ public void updateModelExceptionTest() throws Exception { .setTuningOperation("tuningOperation-1269747150") .setFilteringOption(RecommendationsFilteringOption.forNumber(0)) .addAllServingConfigLists(new ArrayList()) + .setModelFeaturesConfig(Model.ModelFeaturesConfig.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateModel(model, updateMask); diff --git a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/ModelServiceClientTest.java b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/ModelServiceClientTest.java index b8f93a1a2545..a2a69b48a02b 100644 --- a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/ModelServiceClientTest.java +++ b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/ModelServiceClientTest.java @@ -100,6 +100,7 @@ public void createModelTest() throws Exception { .setTuningOperation("tuningOperation-1269747150") .setFilteringOption(RecommendationsFilteringOption.forNumber(0)) .addAllServingConfigLists(new ArrayList()) + .setModelFeaturesConfig(Model.ModelFeaturesConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -158,6 +159,7 @@ public void createModelTest2() throws Exception { .setTuningOperation("tuningOperation-1269747150") .setFilteringOption(RecommendationsFilteringOption.forNumber(0)) .addAllServingConfigLists(new ArrayList()) + .setModelFeaturesConfig(Model.ModelFeaturesConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -216,6 +218,7 @@ public void getModelTest() throws Exception { .setTuningOperation("tuningOperation-1269747150") .setFilteringOption(RecommendationsFilteringOption.forNumber(0)) .addAllServingConfigLists(new ArrayList()) + .setModelFeaturesConfig(Model.ModelFeaturesConfig.newBuilder().build()) .build(); mockModelService.addResponse(expectedResponse); @@ -263,6 +266,7 @@ public void getModelTest2() throws Exception { .setTuningOperation("tuningOperation-1269747150") .setFilteringOption(RecommendationsFilteringOption.forNumber(0)) .addAllServingConfigLists(new ArrayList()) + .setModelFeaturesConfig(Model.ModelFeaturesConfig.newBuilder().build()) .build(); mockModelService.addResponse(expectedResponse); @@ -310,6 +314,7 @@ public void pauseModelTest() throws Exception { .setTuningOperation("tuningOperation-1269747150") .setFilteringOption(RecommendationsFilteringOption.forNumber(0)) .addAllServingConfigLists(new ArrayList()) + .setModelFeaturesConfig(Model.ModelFeaturesConfig.newBuilder().build()) .build(); mockModelService.addResponse(expectedResponse); @@ -357,6 +362,7 @@ public void pauseModelTest2() throws Exception { .setTuningOperation("tuningOperation-1269747150") .setFilteringOption(RecommendationsFilteringOption.forNumber(0)) .addAllServingConfigLists(new ArrayList()) + .setModelFeaturesConfig(Model.ModelFeaturesConfig.newBuilder().build()) .build(); mockModelService.addResponse(expectedResponse); @@ -404,6 +410,7 @@ public void resumeModelTest() throws Exception { .setTuningOperation("tuningOperation-1269747150") .setFilteringOption(RecommendationsFilteringOption.forNumber(0)) .addAllServingConfigLists(new ArrayList()) + .setModelFeaturesConfig(Model.ModelFeaturesConfig.newBuilder().build()) .build(); mockModelService.addResponse(expectedResponse); @@ -607,6 +614,7 @@ public void updateModelTest() throws Exception { .setTuningOperation("tuningOperation-1269747150") .setFilteringOption(RecommendationsFilteringOption.forNumber(0)) .addAllServingConfigLists(new ArrayList()) + .setModelFeaturesConfig(Model.ModelFeaturesConfig.newBuilder().build()) .build(); mockModelService.addResponse(expectedResponse); diff --git a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/ProductServiceClientHttpJsonTest.java b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/ProductServiceClientHttpJsonTest.java index 1a61b6da4805..18d8c7250a33 100644 --- a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/ProductServiceClientHttpJsonTest.java +++ b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/ProductServiceClientHttpJsonTest.java @@ -730,6 +730,67 @@ public void deleteProductExceptionTest2() throws Exception { } } + @Test + public void purgeProductsTest() throws Exception { + PurgeProductsResponse expectedResponse = + PurgeProductsResponse.newBuilder() + .setPurgeCount(575305851) + .addAllPurgeSample(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("purgeProductsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + PurgeProductsRequest request = + PurgeProductsRequest.newBuilder() + .setParent(BranchName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]").toString()) + .setFilter("filter-1274492040") + .setForce(true) + .build(); + + PurgeProductsResponse actualResponse = client.purgeProductsAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void purgeProductsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PurgeProductsRequest request = + PurgeProductsRequest.newBuilder() + .setParent( + BranchName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]").toString()) + .setFilter("filter-1274492040") + .setForce(true) + .build(); + client.purgeProductsAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void importProductsTest() throws Exception { ImportProductsResponse expectedResponse = diff --git a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/ProductServiceClientTest.java b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/ProductServiceClientTest.java index b68551c11e99..7e9884691f27 100644 --- a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/ProductServiceClientTest.java +++ b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/ProductServiceClientTest.java @@ -609,6 +609,66 @@ public void deleteProductExceptionTest2() throws Exception { } } + @Test + public void purgeProductsTest() throws Exception { + PurgeProductsResponse expectedResponse = + PurgeProductsResponse.newBuilder() + .setPurgeCount(575305851) + .addAllPurgeSample(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("purgeProductsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockProductService.addResponse(resultOperation); + + PurgeProductsRequest request = + PurgeProductsRequest.newBuilder() + .setParent(BranchName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]").toString()) + .setFilter("filter-1274492040") + .setForce(true) + .build(); + + PurgeProductsResponse actualResponse = client.purgeProductsAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockProductService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + PurgeProductsRequest actualRequest = ((PurgeProductsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getForce(), actualRequest.getForce()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void purgeProductsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockProductService.addException(exception); + + try { + PurgeProductsRequest request = + PurgeProductsRequest.newBuilder() + .setParent( + BranchName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]").toString()) + .setFilter("filter-1274492040") + .setForce(true) + .build(); + client.purgeProductsAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + @Test public void importProductsTest() throws Exception { ImportProductsResponse expectedResponse = diff --git a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/ServingConfigServiceClientHttpJsonTest.java b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/ServingConfigServiceClientHttpJsonTest.java index 15d65306be50..0d37127ac1dd 100644 --- a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/ServingConfigServiceClientHttpJsonTest.java +++ b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/ServingConfigServiceClientHttpJsonTest.java @@ -100,6 +100,7 @@ public void createServingConfigTest() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); @@ -168,6 +169,7 @@ public void createServingConfigTest2() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); @@ -320,6 +322,7 @@ public void updateServingConfigTest() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); @@ -345,6 +348,7 @@ public void updateServingConfigTest() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); @@ -396,6 +400,7 @@ public void updateServingConfigExceptionTest() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); @@ -429,6 +434,7 @@ public void getServingConfigTest() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); @@ -494,6 +500,7 @@ public void getServingConfigTest2() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); @@ -659,6 +666,7 @@ public void addControlTest() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); @@ -724,6 +732,7 @@ public void addControlTest2() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); @@ -789,6 +798,7 @@ public void removeControlTest() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); @@ -854,6 +864,7 @@ public void removeControlTest2() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); diff --git a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/ServingConfigServiceClientTest.java b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/ServingConfigServiceClientTest.java index dd1b63c47854..03f3ce99e183 100644 --- a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/ServingConfigServiceClientTest.java +++ b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2/ServingConfigServiceClientTest.java @@ -103,6 +103,7 @@ public void createServingConfigTest() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); @@ -167,6 +168,7 @@ public void createServingConfigTest2() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); @@ -301,6 +303,7 @@ public void updateServingConfigTest() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); @@ -361,6 +364,7 @@ public void getServingConfigTest() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); @@ -420,6 +424,7 @@ public void getServingConfigTest2() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); @@ -565,6 +570,7 @@ public void addControlTest() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); @@ -624,6 +630,7 @@ public void addControlTest2() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); @@ -681,6 +688,7 @@ public void removeControlTest() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); @@ -740,6 +748,7 @@ public void removeControlTest2() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); diff --git a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/AnalyticsServiceClientTest.java b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/AnalyticsServiceClientTest.java index 7382c14d2707..3b389be2446d 100644 --- a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/AnalyticsServiceClientTest.java +++ b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/AnalyticsServiceClientTest.java @@ -46,6 +46,7 @@ @Generated("by gapic-generator-java") public class AnalyticsServiceClientTest { private static MockAnalyticsService mockAnalyticsService; + private static MockLocations mockLocations; private static MockServiceHelper mockServiceHelper; private LocalChannelProvider channelProvider; private AnalyticsServiceClient client; @@ -53,9 +54,11 @@ public class AnalyticsServiceClientTest { @BeforeClass public static void startStaticServer() { mockAnalyticsService = new MockAnalyticsService(); + mockLocations = new MockLocations(); mockServiceHelper = new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockAnalyticsService)); + UUID.randomUUID().toString(), + Arrays.asList(mockAnalyticsService, mockLocations)); mockServiceHelper.start(); } diff --git a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/BranchServiceClientHttpJsonTest.java b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/BranchServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..1259b27d034b --- /dev/null +++ b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/BranchServiceClientHttpJsonTest.java @@ -0,0 +1,259 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.retail.v2alpha.stub.HttpJsonBranchServiceStub; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class BranchServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static BranchServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonBranchServiceStub.getMethodDescriptors(), + BranchServiceSettings.getDefaultEndpoint()); + BranchServiceSettings settings = + BranchServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + BranchServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = BranchServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void listBranchesTest() throws Exception { + ListBranchesResponse expectedResponse = + ListBranchesResponse.newBuilder().addAllBranches(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]"); + + ListBranchesResponse actualResponse = client.listBranches(parent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listBranchesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]"); + client.listBranches(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBranchesTest2() throws Exception { + ListBranchesResponse expectedResponse = + ListBranchesResponse.newBuilder().addAllBranches(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-6267/locations/location-6267/catalogs/catalog-6267"; + + ListBranchesResponse actualResponse = client.listBranches(parent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listBranchesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-6267/locations/location-6267/catalogs/catalog-6267"; + client.listBranches(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBranchTest() throws Exception { + Branch expectedResponse = + Branch.newBuilder() + .setName(BranchName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]").toString()) + .setDisplayName("displayName1714148973") + .setIsDefault(true) + .setLastProductImportTime(Timestamp.newBuilder().build()) + .addAllProductCountStats(new ArrayList()) + .addAllQualityMetrics(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + BranchName name = BranchName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]"); + + Branch actualResponse = client.getBranch(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getBranchExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BranchName name = BranchName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]"); + client.getBranch(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBranchTest2() throws Exception { + Branch expectedResponse = + Branch.newBuilder() + .setName(BranchName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]").toString()) + .setDisplayName("displayName1714148973") + .setIsDefault(true) + .setLastProductImportTime(Timestamp.newBuilder().build()) + .addAllProductCountStats(new ArrayList()) + .addAllQualityMetrics(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-8960/locations/location-8960/catalogs/catalog-8960/branches/branche-8960"; + + Branch actualResponse = client.getBranch(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getBranchExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-8960/locations/location-8960/catalogs/catalog-8960/branches/branche-8960"; + client.getBranch(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/BranchServiceClientTest.java b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/BranchServiceClientTest.java new file mode 100644 index 000000000000..b73b7c64e064 --- /dev/null +++ b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/BranchServiceClientTest.java @@ -0,0 +1,240 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class BranchServiceClientTest { + private static MockBranchService mockBranchService; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private BranchServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockBranchService = new MockBranchService(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockBranchService, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + BranchServiceSettings settings = + BranchServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = BranchServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void listBranchesTest() throws Exception { + ListBranchesResponse expectedResponse = + ListBranchesResponse.newBuilder().addAllBranches(new ArrayList()).build(); + mockBranchService.addResponse(expectedResponse); + + CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]"); + + ListBranchesResponse actualResponse = client.listBranches(parent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockBranchService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListBranchesRequest actualRequest = ((ListBranchesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listBranchesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBranchService.addException(exception); + + try { + CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]"); + client.listBranches(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBranchesTest2() throws Exception { + ListBranchesResponse expectedResponse = + ListBranchesResponse.newBuilder().addAllBranches(new ArrayList()).build(); + mockBranchService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListBranchesResponse actualResponse = client.listBranches(parent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockBranchService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListBranchesRequest actualRequest = ((ListBranchesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listBranchesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBranchService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listBranches(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBranchTest() throws Exception { + Branch expectedResponse = + Branch.newBuilder() + .setName(BranchName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]").toString()) + .setDisplayName("displayName1714148973") + .setIsDefault(true) + .setLastProductImportTime(Timestamp.newBuilder().build()) + .addAllProductCountStats(new ArrayList()) + .addAllQualityMetrics(new ArrayList()) + .build(); + mockBranchService.addResponse(expectedResponse); + + BranchName name = BranchName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]"); + + Branch actualResponse = client.getBranch(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockBranchService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetBranchRequest actualRequest = ((GetBranchRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getBranchExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBranchService.addException(exception); + + try { + BranchName name = BranchName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]"); + client.getBranch(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBranchTest2() throws Exception { + Branch expectedResponse = + Branch.newBuilder() + .setName(BranchName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]").toString()) + .setDisplayName("displayName1714148973") + .setIsDefault(true) + .setLastProductImportTime(Timestamp.newBuilder().build()) + .addAllProductCountStats(new ArrayList()) + .addAllQualityMetrics(new ArrayList()) + .build(); + mockBranchService.addResponse(expectedResponse); + + String name = "name3373707"; + + Branch actualResponse = client.getBranch(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockBranchService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetBranchRequest actualRequest = ((GetBranchRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getBranchExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBranchService.addException(exception); + + try { + String name = "name3373707"; + client.getBranch(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/CatalogServiceClientTest.java b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/CatalogServiceClientTest.java index 8bb0a01917e6..61ea93a908d9 100644 --- a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/CatalogServiceClientTest.java +++ b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/CatalogServiceClientTest.java @@ -48,6 +48,7 @@ @Generated("by gapic-generator-java") public class CatalogServiceClientTest { private static MockCatalogService mockCatalogService; + private static MockLocations mockLocations; private static MockServiceHelper mockServiceHelper; private LocalChannelProvider channelProvider; private CatalogServiceClient client; @@ -55,9 +56,11 @@ public class CatalogServiceClientTest { @BeforeClass public static void startStaticServer() { mockCatalogService = new MockCatalogService(); + mockLocations = new MockLocations(); mockServiceHelper = new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockCatalogService)); + UUID.randomUUID().toString(), + Arrays.asList(mockCatalogService, mockLocations)); mockServiceHelper.start(); } diff --git a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/CompletionServiceClientTest.java b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/CompletionServiceClientTest.java index d284e574d178..4cb8cf6613d7 100644 --- a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/CompletionServiceClientTest.java +++ b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/CompletionServiceClientTest.java @@ -47,6 +47,7 @@ @Generated("by gapic-generator-java") public class CompletionServiceClientTest { private static MockCompletionService mockCompletionService; + private static MockLocations mockLocations; private static MockServiceHelper mockServiceHelper; private LocalChannelProvider channelProvider; private CompletionServiceClient client; @@ -54,9 +55,11 @@ public class CompletionServiceClientTest { @BeforeClass public static void startStaticServer() { mockCompletionService = new MockCompletionService(); + mockLocations = new MockLocations(); mockServiceHelper = new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockCompletionService)); + UUID.randomUUID().toString(), + Arrays.asList(mockCompletionService, mockLocations)); mockServiceHelper.start(); } diff --git a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/ControlServiceClientTest.java b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/ControlServiceClientTest.java index 0e55da8fffe3..c34e573e63ff 100644 --- a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/ControlServiceClientTest.java +++ b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/ControlServiceClientTest.java @@ -46,6 +46,7 @@ @Generated("by gapic-generator-java") public class ControlServiceClientTest { private static MockControlService mockControlService; + private static MockLocations mockLocations; private static MockServiceHelper mockServiceHelper; private LocalChannelProvider channelProvider; private ControlServiceClient client; @@ -53,9 +54,11 @@ public class ControlServiceClientTest { @BeforeClass public static void startStaticServer() { mockControlService = new MockControlService(); + mockLocations = new MockLocations(); mockServiceHelper = new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockControlService)); + UUID.randomUUID().toString(), + Arrays.asList(mockControlService, mockLocations)); mockServiceHelper.start(); } diff --git a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/MerchantCenterAccountLinkServiceClientHttpJsonTest.java b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/MerchantCenterAccountLinkServiceClientHttpJsonTest.java index fa1a2e5d1726..9f8885a75bd3 100644 --- a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/MerchantCenterAccountLinkServiceClientHttpJsonTest.java +++ b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/MerchantCenterAccountLinkServiceClientHttpJsonTest.java @@ -181,6 +181,7 @@ public void createMerchantCenterAccountLinkTest() throws Exception { .setLanguageCode("languageCode-2092349083") .addAllFeedFilters(new ArrayList()) .setProjectId("projectId-894832108") + .setSource("source-896505829") .build(); Operation resultOperation = Operation.newBuilder() @@ -245,6 +246,7 @@ public void createMerchantCenterAccountLinkTest2() throws Exception { .setLanguageCode("languageCode-2092349083") .addAllFeedFilters(new ArrayList()) .setProjectId("projectId-894832108") + .setSource("source-896505829") .build(); Operation resultOperation = Operation.newBuilder() diff --git a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/MerchantCenterAccountLinkServiceClientTest.java b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/MerchantCenterAccountLinkServiceClientTest.java index 50f9bd37affb..83ee9b552c96 100644 --- a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/MerchantCenterAccountLinkServiceClientTest.java +++ b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/MerchantCenterAccountLinkServiceClientTest.java @@ -45,6 +45,7 @@ @Generated("by gapic-generator-java") public class MerchantCenterAccountLinkServiceClientTest { + private static MockLocations mockLocations; private static MockMerchantCenterAccountLinkService mockMerchantCenterAccountLinkService; private static MockServiceHelper mockServiceHelper; private LocalChannelProvider channelProvider; @@ -53,10 +54,11 @@ public class MerchantCenterAccountLinkServiceClientTest { @BeforeClass public static void startStaticServer() { mockMerchantCenterAccountLinkService = new MockMerchantCenterAccountLinkService(); + mockLocations = new MockLocations(); mockServiceHelper = new MockServiceHelper( UUID.randomUUID().toString(), - Arrays.asList(mockMerchantCenterAccountLinkService)); + Arrays.asList(mockMerchantCenterAccountLinkService, mockLocations)); mockServiceHelper.start(); } @@ -177,6 +179,7 @@ public void createMerchantCenterAccountLinkTest() throws Exception { .setLanguageCode("languageCode-2092349083") .addAllFeedFilters(new ArrayList()) .setProjectId("projectId-894832108") + .setSource("source-896505829") .build(); Operation resultOperation = Operation.newBuilder() @@ -240,6 +243,7 @@ public void createMerchantCenterAccountLinkTest2() throws Exception { .setLanguageCode("languageCode-2092349083") .addAllFeedFilters(new ArrayList()) .setProjectId("projectId-894832108") + .setSource("source-896505829") .build(); Operation resultOperation = Operation.newBuilder() diff --git a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/MockBranchService.java b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/MockBranchService.java new file mode 100644 index 000000000000..0ecd18e9f903 --- /dev/null +++ b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/MockBranchService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockBranchService implements MockGrpcService { + private final MockBranchServiceImpl serviceImpl; + + public MockBranchService() { + serviceImpl = new MockBranchServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/MockBranchServiceImpl.java b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/MockBranchServiceImpl.java new file mode 100644 index 000000000000..59e2c46be1fa --- /dev/null +++ b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/MockBranchServiceImpl.java @@ -0,0 +1,101 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha; + +import com.google.api.core.BetaApi; +import com.google.cloud.retail.v2alpha.BranchServiceGrpc.BranchServiceImplBase; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockBranchServiceImpl extends BranchServiceImplBase { + private List requests; + private Queue responses; + + public MockBranchServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void listBranches( + ListBranchesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListBranchesResponse) { + requests.add(request); + responseObserver.onNext(((ListBranchesResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListBranches, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListBranchesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getBranch(GetBranchRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Branch) { + requests.add(request); + responseObserver.onNext(((Branch) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetBranch, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Branch.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/MockLocations.java b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/MockLocations.java new file mode 100644 index 000000000000..b69c492f98ef --- /dev/null +++ b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/MockLocations.java @@ -0,0 +1,59 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockLocations implements MockGrpcService { + private final MockLocationsImpl serviceImpl; + + public MockLocations() { + serviceImpl = new MockLocationsImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/MockLocationsImpl.java b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/MockLocationsImpl.java new file mode 100644 index 000000000000..1c620dbec672 --- /dev/null +++ b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/MockLocationsImpl.java @@ -0,0 +1,59 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha; + +import com.google.api.core.BetaApi; +import com.google.cloud.location.LocationsGrpc.LocationsImplBase; +import com.google.protobuf.AbstractMessage; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockLocationsImpl extends LocationsImplBase { + private List requests; + private Queue responses; + + public MockLocationsImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } +} diff --git a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/MockProjectService.java b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/MockProjectService.java new file mode 100644 index 000000000000..7a4d4c18c0cd --- /dev/null +++ b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/MockProjectService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockProjectService implements MockGrpcService { + private final MockProjectServiceImpl serviceImpl; + + public MockProjectService() { + serviceImpl = new MockProjectServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/MockProjectServiceImpl.java b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/MockProjectServiceImpl.java new file mode 100644 index 000000000000..690d55a5ed28 --- /dev/null +++ b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/MockProjectServiceImpl.java @@ -0,0 +1,228 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha; + +import com.google.api.core.BetaApi; +import com.google.cloud.retail.v2alpha.ProjectServiceGrpc.ProjectServiceImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockProjectServiceImpl extends ProjectServiceImplBase { + private List requests; + private Queue responses; + + public MockProjectServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void getProject(GetProjectRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Project) { + requests.add(request); + responseObserver.onNext(((Project) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetProject, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Project.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void acceptTerms(AcceptTermsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Project) { + requests.add(request); + responseObserver.onNext(((Project) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method AcceptTerms, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Project.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void enrollSolution( + EnrollSolutionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method EnrollSolution, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listEnrolledSolutions( + ListEnrolledSolutionsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListEnrolledSolutionsResponse) { + requests.add(request); + responseObserver.onNext(((ListEnrolledSolutionsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListEnrolledSolutions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListEnrolledSolutionsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getLoggingConfig( + GetLoggingConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof LoggingConfig) { + requests.add(request); + responseObserver.onNext(((LoggingConfig) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetLoggingConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + LoggingConfig.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateLoggingConfig( + UpdateLoggingConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof LoggingConfig) { + requests.add(request); + responseObserver.onNext(((LoggingConfig) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateLoggingConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + LoggingConfig.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getAlertConfig( + GetAlertConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AlertConfig) { + requests.add(request); + responseObserver.onNext(((AlertConfig) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetAlertConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AlertConfig.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateAlertConfig( + UpdateAlertConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AlertConfig) { + requests.add(request); + responseObserver.onNext(((AlertConfig) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateAlertConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AlertConfig.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/ModelServiceClientHttpJsonTest.java b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/ModelServiceClientHttpJsonTest.java index c6ff3fa18d44..b9d47bf40be3 100644 --- a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/ModelServiceClientHttpJsonTest.java +++ b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/ModelServiceClientHttpJsonTest.java @@ -96,6 +96,7 @@ public void createModelTest() throws Exception { .setTuningOperation("tuningOperation-1269747150") .setFilteringOption(RecommendationsFilteringOption.forNumber(0)) .addAllServingConfigLists(new ArrayList()) + .setModelFeaturesConfig(Model.ModelFeaturesConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -156,6 +157,7 @@ public void createModelTest2() throws Exception { .setTuningOperation("tuningOperation-1269747150") .setFilteringOption(RecommendationsFilteringOption.forNumber(0)) .addAllServingConfigLists(new ArrayList()) + .setModelFeaturesConfig(Model.ModelFeaturesConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -216,6 +218,7 @@ public void getModelTest() throws Exception { .setTuningOperation("tuningOperation-1269747150") .setFilteringOption(RecommendationsFilteringOption.forNumber(0)) .addAllServingConfigLists(new ArrayList()) + .setModelFeaturesConfig(Model.ModelFeaturesConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -269,6 +272,7 @@ public void getModelTest2() throws Exception { .setTuningOperation("tuningOperation-1269747150") .setFilteringOption(RecommendationsFilteringOption.forNumber(0)) .addAllServingConfigLists(new ArrayList()) + .setModelFeaturesConfig(Model.ModelFeaturesConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -324,6 +328,7 @@ public void pauseModelTest() throws Exception { .setTuningOperation("tuningOperation-1269747150") .setFilteringOption(RecommendationsFilteringOption.forNumber(0)) .addAllServingConfigLists(new ArrayList()) + .setModelFeaturesConfig(Model.ModelFeaturesConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -377,6 +382,7 @@ public void pauseModelTest2() throws Exception { .setTuningOperation("tuningOperation-1269747150") .setFilteringOption(RecommendationsFilteringOption.forNumber(0)) .addAllServingConfigLists(new ArrayList()) + .setModelFeaturesConfig(Model.ModelFeaturesConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -432,6 +438,7 @@ public void resumeModelTest() throws Exception { .setTuningOperation("tuningOperation-1269747150") .setFilteringOption(RecommendationsFilteringOption.forNumber(0)) .addAllServingConfigLists(new ArrayList()) + .setModelFeaturesConfig(Model.ModelFeaturesConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -669,6 +676,7 @@ public void updateModelTest() throws Exception { .setTuningOperation("tuningOperation-1269747150") .setFilteringOption(RecommendationsFilteringOption.forNumber(0)) .addAllServingConfigLists(new ArrayList()) + .setModelFeaturesConfig(Model.ModelFeaturesConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -684,6 +692,7 @@ public void updateModelTest() throws Exception { .setTuningOperation("tuningOperation-1269747150") .setFilteringOption(RecommendationsFilteringOption.forNumber(0)) .addAllServingConfigLists(new ArrayList()) + .setModelFeaturesConfig(Model.ModelFeaturesConfig.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -725,6 +734,7 @@ public void updateModelExceptionTest() throws Exception { .setTuningOperation("tuningOperation-1269747150") .setFilteringOption(RecommendationsFilteringOption.forNumber(0)) .addAllServingConfigLists(new ArrayList()) + .setModelFeaturesConfig(Model.ModelFeaturesConfig.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateModel(model, updateMask); diff --git a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/ModelServiceClientTest.java b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/ModelServiceClientTest.java index 436704f6a4b7..ce7dd2a35048 100644 --- a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/ModelServiceClientTest.java +++ b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/ModelServiceClientTest.java @@ -50,6 +50,7 @@ @Generated("by gapic-generator-java") public class ModelServiceClientTest { + private static MockLocations mockLocations; private static MockModelService mockModelService; private static MockServiceHelper mockServiceHelper; private LocalChannelProvider channelProvider; @@ -58,9 +59,11 @@ public class ModelServiceClientTest { @BeforeClass public static void startStaticServer() { mockModelService = new MockModelService(); + mockLocations = new MockLocations(); mockServiceHelper = new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockModelService)); + UUID.randomUUID().toString(), + Arrays.asList(mockModelService, mockLocations)); mockServiceHelper.start(); } @@ -100,6 +103,7 @@ public void createModelTest() throws Exception { .setTuningOperation("tuningOperation-1269747150") .setFilteringOption(RecommendationsFilteringOption.forNumber(0)) .addAllServingConfigLists(new ArrayList()) + .setModelFeaturesConfig(Model.ModelFeaturesConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -158,6 +162,7 @@ public void createModelTest2() throws Exception { .setTuningOperation("tuningOperation-1269747150") .setFilteringOption(RecommendationsFilteringOption.forNumber(0)) .addAllServingConfigLists(new ArrayList()) + .setModelFeaturesConfig(Model.ModelFeaturesConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -216,6 +221,7 @@ public void getModelTest() throws Exception { .setTuningOperation("tuningOperation-1269747150") .setFilteringOption(RecommendationsFilteringOption.forNumber(0)) .addAllServingConfigLists(new ArrayList()) + .setModelFeaturesConfig(Model.ModelFeaturesConfig.newBuilder().build()) .build(); mockModelService.addResponse(expectedResponse); @@ -263,6 +269,7 @@ public void getModelTest2() throws Exception { .setTuningOperation("tuningOperation-1269747150") .setFilteringOption(RecommendationsFilteringOption.forNumber(0)) .addAllServingConfigLists(new ArrayList()) + .setModelFeaturesConfig(Model.ModelFeaturesConfig.newBuilder().build()) .build(); mockModelService.addResponse(expectedResponse); @@ -310,6 +317,7 @@ public void pauseModelTest() throws Exception { .setTuningOperation("tuningOperation-1269747150") .setFilteringOption(RecommendationsFilteringOption.forNumber(0)) .addAllServingConfigLists(new ArrayList()) + .setModelFeaturesConfig(Model.ModelFeaturesConfig.newBuilder().build()) .build(); mockModelService.addResponse(expectedResponse); @@ -357,6 +365,7 @@ public void pauseModelTest2() throws Exception { .setTuningOperation("tuningOperation-1269747150") .setFilteringOption(RecommendationsFilteringOption.forNumber(0)) .addAllServingConfigLists(new ArrayList()) + .setModelFeaturesConfig(Model.ModelFeaturesConfig.newBuilder().build()) .build(); mockModelService.addResponse(expectedResponse); @@ -404,6 +413,7 @@ public void resumeModelTest() throws Exception { .setTuningOperation("tuningOperation-1269747150") .setFilteringOption(RecommendationsFilteringOption.forNumber(0)) .addAllServingConfigLists(new ArrayList()) + .setModelFeaturesConfig(Model.ModelFeaturesConfig.newBuilder().build()) .build(); mockModelService.addResponse(expectedResponse); @@ -607,6 +617,7 @@ public void updateModelTest() throws Exception { .setTuningOperation("tuningOperation-1269747150") .setFilteringOption(RecommendationsFilteringOption.forNumber(0)) .addAllServingConfigLists(new ArrayList()) + .setModelFeaturesConfig(Model.ModelFeaturesConfig.newBuilder().build()) .build(); mockModelService.addResponse(expectedResponse); diff --git a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/PredictionServiceClientTest.java b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/PredictionServiceClientTest.java index 37b4b85ece7c..2c71f0680840 100644 --- a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/PredictionServiceClientTest.java +++ b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/PredictionServiceClientTest.java @@ -42,6 +42,7 @@ @Generated("by gapic-generator-java") public class PredictionServiceClientTest { + private static MockLocations mockLocations; private static MockPredictionService mockPredictionService; private static MockServiceHelper mockServiceHelper; private LocalChannelProvider channelProvider; @@ -50,9 +51,11 @@ public class PredictionServiceClientTest { @BeforeClass public static void startStaticServer() { mockPredictionService = new MockPredictionService(); + mockLocations = new MockLocations(); mockServiceHelper = new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockPredictionService)); + UUID.randomUUID().toString(), + Arrays.asList(mockPredictionService, mockLocations)); mockServiceHelper.start(); } diff --git a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/ProductServiceClientTest.java b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/ProductServiceClientTest.java index b3289903c913..251133dc3750 100644 --- a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/ProductServiceClientTest.java +++ b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/ProductServiceClientTest.java @@ -53,6 +53,7 @@ @Generated("by gapic-generator-java") public class ProductServiceClientTest { + private static MockLocations mockLocations; private static MockProductService mockProductService; private static MockServiceHelper mockServiceHelper; private LocalChannelProvider channelProvider; @@ -61,9 +62,11 @@ public class ProductServiceClientTest { @BeforeClass public static void startStaticServer() { mockProductService = new MockProductService(); + mockLocations = new MockLocations(); mockServiceHelper = new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockProductService)); + UUID.randomUUID().toString(), + Arrays.asList(mockProductService, mockLocations)); mockServiceHelper.start(); } diff --git a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/ProjectServiceClientHttpJsonTest.java b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/ProjectServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..a94f9c06ccde --- /dev/null +++ b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/ProjectServiceClientHttpJsonTest.java @@ -0,0 +1,701 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.retail.v2alpha.stub.HttpJsonProjectServiceStub; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class ProjectServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static ProjectServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonProjectServiceStub.getMethodDescriptors(), + ProjectServiceSettings.getDefaultEndpoint()); + ProjectServiceSettings settings = + ProjectServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + ProjectServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ProjectServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getProjectTest() throws Exception { + Project expectedResponse = + Project.newBuilder() + .setName(RetailProjectName.of("[PROJECT]").toString()) + .addAllEnrolledSolutions(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + RetailProjectName name = RetailProjectName.of("[PROJECT]"); + + Project actualResponse = client.getProject(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getProjectExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RetailProjectName name = RetailProjectName.of("[PROJECT]"); + client.getProject(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getProjectTest2() throws Exception { + Project expectedResponse = + Project.newBuilder() + .setName(RetailProjectName.of("[PROJECT]").toString()) + .addAllEnrolledSolutions(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-4503/retailProject"; + + Project actualResponse = client.getProject(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getProjectExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-4503/retailProject"; + client.getProject(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void acceptTermsTest() throws Exception { + Project expectedResponse = + Project.newBuilder() + .setName(RetailProjectName.of("[PROJECT]").toString()) + .addAllEnrolledSolutions(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + RetailProjectName project = RetailProjectName.of("[PROJECT]"); + + Project actualResponse = client.acceptTerms(project); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void acceptTermsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RetailProjectName project = RetailProjectName.of("[PROJECT]"); + client.acceptTerms(project); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void acceptTermsTest2() throws Exception { + Project expectedResponse = + Project.newBuilder() + .setName(RetailProjectName.of("[PROJECT]").toString()) + .addAllEnrolledSolutions(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String project = "projects/project-5109/retailProject"; + + Project actualResponse = client.acceptTerms(project); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void acceptTermsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String project = "projects/project-5109/retailProject"; + client.acceptTerms(project); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void enrollSolutionTest() throws Exception { + EnrollSolutionResponse expectedResponse = + EnrollSolutionResponse.newBuilder().setEnrolledSolution(SolutionType.forNumber(0)).build(); + Operation resultOperation = + Operation.newBuilder() + .setName("enrollSolutionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + EnrollSolutionRequest request = + EnrollSolutionRequest.newBuilder() + .setProject(ProjectName.of("[PROJECT]").toString()) + .setSolution(SolutionType.forNumber(0)) + .build(); + + EnrollSolutionResponse actualResponse = client.enrollSolutionAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void enrollSolutionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + EnrollSolutionRequest request = + EnrollSolutionRequest.newBuilder() + .setProject(ProjectName.of("[PROJECT]").toString()) + .setSolution(SolutionType.forNumber(0)) + .build(); + client.enrollSolutionAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listEnrolledSolutionsTest() throws Exception { + ListEnrolledSolutionsResponse expectedResponse = + ListEnrolledSolutionsResponse.newBuilder() + .addAllEnrolledSolutions(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + + ListEnrolledSolutionsResponse actualResponse = client.listEnrolledSolutions(parent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listEnrolledSolutionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + client.listEnrolledSolutions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listEnrolledSolutionsTest2() throws Exception { + ListEnrolledSolutionsResponse expectedResponse = + ListEnrolledSolutionsResponse.newBuilder() + .addAllEnrolledSolutions(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-2353"; + + ListEnrolledSolutionsResponse actualResponse = client.listEnrolledSolutions(parent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listEnrolledSolutionsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-2353"; + client.listEnrolledSolutions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLoggingConfigTest() throws Exception { + LoggingConfig expectedResponse = + LoggingConfig.newBuilder() + .setName(LoggingConfigName.of("[PROJECT]").toString()) + .setDefaultLogGenerationRule(LoggingConfig.LogGenerationRule.newBuilder().build()) + .addAllServiceLogGenerationRules( + new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + LoggingConfigName name = LoggingConfigName.of("[PROJECT]"); + + LoggingConfig actualResponse = client.getLoggingConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getLoggingConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LoggingConfigName name = LoggingConfigName.of("[PROJECT]"); + client.getLoggingConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLoggingConfigTest2() throws Exception { + LoggingConfig expectedResponse = + LoggingConfig.newBuilder() + .setName(LoggingConfigName.of("[PROJECT]").toString()) + .setDefaultLogGenerationRule(LoggingConfig.LogGenerationRule.newBuilder().build()) + .addAllServiceLogGenerationRules( + new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-1650/loggingConfig"; + + LoggingConfig actualResponse = client.getLoggingConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getLoggingConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-1650/loggingConfig"; + client.getLoggingConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateLoggingConfigTest() throws Exception { + LoggingConfig expectedResponse = + LoggingConfig.newBuilder() + .setName(LoggingConfigName.of("[PROJECT]").toString()) + .setDefaultLogGenerationRule(LoggingConfig.LogGenerationRule.newBuilder().build()) + .addAllServiceLogGenerationRules( + new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + LoggingConfig loggingConfig = + LoggingConfig.newBuilder() + .setName(LoggingConfigName.of("[PROJECT]").toString()) + .setDefaultLogGenerationRule(LoggingConfig.LogGenerationRule.newBuilder().build()) + .addAllServiceLogGenerationRules( + new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + LoggingConfig actualResponse = client.updateLoggingConfig(loggingConfig, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateLoggingConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LoggingConfig loggingConfig = + LoggingConfig.newBuilder() + .setName(LoggingConfigName.of("[PROJECT]").toString()) + .setDefaultLogGenerationRule(LoggingConfig.LogGenerationRule.newBuilder().build()) + .addAllServiceLogGenerationRules( + new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateLoggingConfig(loggingConfig, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAlertConfigTest() throws Exception { + AlertConfig expectedResponse = + AlertConfig.newBuilder() + .setName(AlertConfigName.of("[PROJECT]").toString()) + .addAllAlertPolicies(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + AlertConfigName name = AlertConfigName.of("[PROJECT]"); + + AlertConfig actualResponse = client.getAlertConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getAlertConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AlertConfigName name = AlertConfigName.of("[PROJECT]"); + client.getAlertConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAlertConfigTest2() throws Exception { + AlertConfig expectedResponse = + AlertConfig.newBuilder() + .setName(AlertConfigName.of("[PROJECT]").toString()) + .addAllAlertPolicies(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-5457/alertConfig"; + + AlertConfig actualResponse = client.getAlertConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getAlertConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-5457/alertConfig"; + client.getAlertConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateAlertConfigTest() throws Exception { + AlertConfig expectedResponse = + AlertConfig.newBuilder() + .setName(AlertConfigName.of("[PROJECT]").toString()) + .addAllAlertPolicies(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + AlertConfig alertConfig = + AlertConfig.newBuilder() + .setName(AlertConfigName.of("[PROJECT]").toString()) + .addAllAlertPolicies(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + AlertConfig actualResponse = client.updateAlertConfig(alertConfig, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateAlertConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AlertConfig alertConfig = + AlertConfig.newBuilder() + .setName(AlertConfigName.of("[PROJECT]").toString()) + .addAllAlertPolicies(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateAlertConfig(alertConfig, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/ProjectServiceClientTest.java b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/ProjectServiceClientTest.java new file mode 100644 index 000000000000..39f925784c2d --- /dev/null +++ b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/ProjectServiceClientTest.java @@ -0,0 +1,619 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.FieldMask; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class ProjectServiceClientTest { + private static MockLocations mockLocations; + private static MockProjectService mockProjectService; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private ProjectServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockProjectService = new MockProjectService(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockProjectService, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + ProjectServiceSettings settings = + ProjectServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ProjectServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void getProjectTest() throws Exception { + Project expectedResponse = + Project.newBuilder() + .setName(RetailProjectName.of("[PROJECT]").toString()) + .addAllEnrolledSolutions(new ArrayList()) + .build(); + mockProjectService.addResponse(expectedResponse); + + RetailProjectName name = RetailProjectName.of("[PROJECT]"); + + Project actualResponse = client.getProject(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockProjectService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetProjectRequest actualRequest = ((GetProjectRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getProjectExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockProjectService.addException(exception); + + try { + RetailProjectName name = RetailProjectName.of("[PROJECT]"); + client.getProject(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getProjectTest2() throws Exception { + Project expectedResponse = + Project.newBuilder() + .setName(RetailProjectName.of("[PROJECT]").toString()) + .addAllEnrolledSolutions(new ArrayList()) + .build(); + mockProjectService.addResponse(expectedResponse); + + String name = "name3373707"; + + Project actualResponse = client.getProject(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockProjectService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetProjectRequest actualRequest = ((GetProjectRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getProjectExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockProjectService.addException(exception); + + try { + String name = "name3373707"; + client.getProject(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void acceptTermsTest() throws Exception { + Project expectedResponse = + Project.newBuilder() + .setName(RetailProjectName.of("[PROJECT]").toString()) + .addAllEnrolledSolutions(new ArrayList()) + .build(); + mockProjectService.addResponse(expectedResponse); + + RetailProjectName project = RetailProjectName.of("[PROJECT]"); + + Project actualResponse = client.acceptTerms(project); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockProjectService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + AcceptTermsRequest actualRequest = ((AcceptTermsRequest) actualRequests.get(0)); + + Assert.assertEquals(project.toString(), actualRequest.getProject()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void acceptTermsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockProjectService.addException(exception); + + try { + RetailProjectName project = RetailProjectName.of("[PROJECT]"); + client.acceptTerms(project); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void acceptTermsTest2() throws Exception { + Project expectedResponse = + Project.newBuilder() + .setName(RetailProjectName.of("[PROJECT]").toString()) + .addAllEnrolledSolutions(new ArrayList()) + .build(); + mockProjectService.addResponse(expectedResponse); + + String project = "project-309310695"; + + Project actualResponse = client.acceptTerms(project); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockProjectService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + AcceptTermsRequest actualRequest = ((AcceptTermsRequest) actualRequests.get(0)); + + Assert.assertEquals(project, actualRequest.getProject()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void acceptTermsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockProjectService.addException(exception); + + try { + String project = "project-309310695"; + client.acceptTerms(project); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void enrollSolutionTest() throws Exception { + EnrollSolutionResponse expectedResponse = + EnrollSolutionResponse.newBuilder().setEnrolledSolution(SolutionType.forNumber(0)).build(); + Operation resultOperation = + Operation.newBuilder() + .setName("enrollSolutionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockProjectService.addResponse(resultOperation); + + EnrollSolutionRequest request = + EnrollSolutionRequest.newBuilder() + .setProject(ProjectName.of("[PROJECT]").toString()) + .setSolution(SolutionType.forNumber(0)) + .build(); + + EnrollSolutionResponse actualResponse = client.enrollSolutionAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockProjectService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + EnrollSolutionRequest actualRequest = ((EnrollSolutionRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getProject(), actualRequest.getProject()); + Assert.assertEquals(request.getSolution(), actualRequest.getSolution()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void enrollSolutionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockProjectService.addException(exception); + + try { + EnrollSolutionRequest request = + EnrollSolutionRequest.newBuilder() + .setProject(ProjectName.of("[PROJECT]").toString()) + .setSolution(SolutionType.forNumber(0)) + .build(); + client.enrollSolutionAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listEnrolledSolutionsTest() throws Exception { + ListEnrolledSolutionsResponse expectedResponse = + ListEnrolledSolutionsResponse.newBuilder() + .addAllEnrolledSolutions(new ArrayList()) + .build(); + mockProjectService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + + ListEnrolledSolutionsResponse actualResponse = client.listEnrolledSolutions(parent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockProjectService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListEnrolledSolutionsRequest actualRequest = + ((ListEnrolledSolutionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listEnrolledSolutionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockProjectService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + client.listEnrolledSolutions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listEnrolledSolutionsTest2() throws Exception { + ListEnrolledSolutionsResponse expectedResponse = + ListEnrolledSolutionsResponse.newBuilder() + .addAllEnrolledSolutions(new ArrayList()) + .build(); + mockProjectService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListEnrolledSolutionsResponse actualResponse = client.listEnrolledSolutions(parent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockProjectService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListEnrolledSolutionsRequest actualRequest = + ((ListEnrolledSolutionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listEnrolledSolutionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockProjectService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listEnrolledSolutions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLoggingConfigTest() throws Exception { + LoggingConfig expectedResponse = + LoggingConfig.newBuilder() + .setName(LoggingConfigName.of("[PROJECT]").toString()) + .setDefaultLogGenerationRule(LoggingConfig.LogGenerationRule.newBuilder().build()) + .addAllServiceLogGenerationRules( + new ArrayList()) + .build(); + mockProjectService.addResponse(expectedResponse); + + LoggingConfigName name = LoggingConfigName.of("[PROJECT]"); + + LoggingConfig actualResponse = client.getLoggingConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockProjectService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLoggingConfigRequest actualRequest = ((GetLoggingConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLoggingConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockProjectService.addException(exception); + + try { + LoggingConfigName name = LoggingConfigName.of("[PROJECT]"); + client.getLoggingConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLoggingConfigTest2() throws Exception { + LoggingConfig expectedResponse = + LoggingConfig.newBuilder() + .setName(LoggingConfigName.of("[PROJECT]").toString()) + .setDefaultLogGenerationRule(LoggingConfig.LogGenerationRule.newBuilder().build()) + .addAllServiceLogGenerationRules( + new ArrayList()) + .build(); + mockProjectService.addResponse(expectedResponse); + + String name = "name3373707"; + + LoggingConfig actualResponse = client.getLoggingConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockProjectService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLoggingConfigRequest actualRequest = ((GetLoggingConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLoggingConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockProjectService.addException(exception); + + try { + String name = "name3373707"; + client.getLoggingConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateLoggingConfigTest() throws Exception { + LoggingConfig expectedResponse = + LoggingConfig.newBuilder() + .setName(LoggingConfigName.of("[PROJECT]").toString()) + .setDefaultLogGenerationRule(LoggingConfig.LogGenerationRule.newBuilder().build()) + .addAllServiceLogGenerationRules( + new ArrayList()) + .build(); + mockProjectService.addResponse(expectedResponse); + + LoggingConfig loggingConfig = LoggingConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + LoggingConfig actualResponse = client.updateLoggingConfig(loggingConfig, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockProjectService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateLoggingConfigRequest actualRequest = ((UpdateLoggingConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(loggingConfig, actualRequest.getLoggingConfig()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateLoggingConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockProjectService.addException(exception); + + try { + LoggingConfig loggingConfig = LoggingConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateLoggingConfig(loggingConfig, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAlertConfigTest() throws Exception { + AlertConfig expectedResponse = + AlertConfig.newBuilder() + .setName(AlertConfigName.of("[PROJECT]").toString()) + .addAllAlertPolicies(new ArrayList()) + .build(); + mockProjectService.addResponse(expectedResponse); + + AlertConfigName name = AlertConfigName.of("[PROJECT]"); + + AlertConfig actualResponse = client.getAlertConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockProjectService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAlertConfigRequest actualRequest = ((GetAlertConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAlertConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockProjectService.addException(exception); + + try { + AlertConfigName name = AlertConfigName.of("[PROJECT]"); + client.getAlertConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAlertConfigTest2() throws Exception { + AlertConfig expectedResponse = + AlertConfig.newBuilder() + .setName(AlertConfigName.of("[PROJECT]").toString()) + .addAllAlertPolicies(new ArrayList()) + .build(); + mockProjectService.addResponse(expectedResponse); + + String name = "name3373707"; + + AlertConfig actualResponse = client.getAlertConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockProjectService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAlertConfigRequest actualRequest = ((GetAlertConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAlertConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockProjectService.addException(exception); + + try { + String name = "name3373707"; + client.getAlertConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateAlertConfigTest() throws Exception { + AlertConfig expectedResponse = + AlertConfig.newBuilder() + .setName(AlertConfigName.of("[PROJECT]").toString()) + .addAllAlertPolicies(new ArrayList()) + .build(); + mockProjectService.addResponse(expectedResponse); + + AlertConfig alertConfig = AlertConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + AlertConfig actualResponse = client.updateAlertConfig(alertConfig, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockProjectService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateAlertConfigRequest actualRequest = ((UpdateAlertConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(alertConfig, actualRequest.getAlertConfig()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateAlertConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockProjectService.addException(exception); + + try { + AlertConfig alertConfig = AlertConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateAlertConfig(alertConfig, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/SearchServiceClientTest.java b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/SearchServiceClientTest.java index 522400d627e1..d8e115bd37c3 100644 --- a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/SearchServiceClientTest.java +++ b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/SearchServiceClientTest.java @@ -44,6 +44,7 @@ @Generated("by gapic-generator-java") public class SearchServiceClientTest { + private static MockLocations mockLocations; private static MockSearchService mockSearchService; private static MockServiceHelper mockServiceHelper; private LocalChannelProvider channelProvider; @@ -52,9 +53,11 @@ public class SearchServiceClientTest { @BeforeClass public static void startStaticServer() { mockSearchService = new MockSearchService(); + mockLocations = new MockLocations(); mockServiceHelper = new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockSearchService)); + UUID.randomUUID().toString(), + Arrays.asList(mockSearchService, mockLocations)); mockServiceHelper.start(); } diff --git a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/ServingConfigServiceClientHttpJsonTest.java b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/ServingConfigServiceClientHttpJsonTest.java index ec6faa4c4919..4c0909e96154 100644 --- a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/ServingConfigServiceClientHttpJsonTest.java +++ b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/ServingConfigServiceClientHttpJsonTest.java @@ -100,6 +100,7 @@ public void createServingConfigTest() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); @@ -168,6 +169,7 @@ public void createServingConfigTest2() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); @@ -320,6 +322,7 @@ public void updateServingConfigTest() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); @@ -345,6 +348,7 @@ public void updateServingConfigTest() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); @@ -396,6 +400,7 @@ public void updateServingConfigExceptionTest() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); @@ -429,6 +434,7 @@ public void getServingConfigTest() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); @@ -494,6 +500,7 @@ public void getServingConfigTest2() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); @@ -659,6 +666,7 @@ public void addControlTest() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); @@ -724,6 +732,7 @@ public void addControlTest2() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); @@ -789,6 +798,7 @@ public void removeControlTest() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); @@ -854,6 +864,7 @@ public void removeControlTest2() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); diff --git a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/ServingConfigServiceClientTest.java b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/ServingConfigServiceClientTest.java index b004599894b8..88efc748b311 100644 --- a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/ServingConfigServiceClientTest.java +++ b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/ServingConfigServiceClientTest.java @@ -45,6 +45,7 @@ @Generated("by gapic-generator-java") public class ServingConfigServiceClientTest { + private static MockLocations mockLocations; private static MockServiceHelper mockServiceHelper; private static MockServingConfigService mockServingConfigService; private LocalChannelProvider channelProvider; @@ -53,9 +54,11 @@ public class ServingConfigServiceClientTest { @BeforeClass public static void startStaticServer() { mockServingConfigService = new MockServingConfigService(); + mockLocations = new MockLocations(); mockServiceHelper = new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockServingConfigService)); + UUID.randomUUID().toString(), + Arrays.asList(mockServingConfigService, mockLocations)); mockServiceHelper.start(); } @@ -103,6 +106,7 @@ public void createServingConfigTest() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); @@ -167,6 +171,7 @@ public void createServingConfigTest2() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); @@ -301,6 +306,7 @@ public void updateServingConfigTest() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); @@ -361,6 +367,7 @@ public void getServingConfigTest() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); @@ -420,6 +427,7 @@ public void getServingConfigTest2() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); @@ -565,6 +573,7 @@ public void addControlTest() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); @@ -624,6 +633,7 @@ public void addControlTest2() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); @@ -681,6 +691,7 @@ public void removeControlTest() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); @@ -740,6 +751,7 @@ public void removeControlTest2() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); diff --git a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/UserEventServiceClientTest.java b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/UserEventServiceClientTest.java index 268be5cb1e8f..edb1dddb505e 100644 --- a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/UserEventServiceClientTest.java +++ b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2alpha/UserEventServiceClientTest.java @@ -49,6 +49,7 @@ @Generated("by gapic-generator-java") public class UserEventServiceClientTest { + private static MockLocations mockLocations; private static MockServiceHelper mockServiceHelper; private static MockUserEventService mockUserEventService; private LocalChannelProvider channelProvider; @@ -57,9 +58,11 @@ public class UserEventServiceClientTest { @BeforeClass public static void startStaticServer() { mockUserEventService = new MockUserEventService(); + mockLocations = new MockLocations(); mockServiceHelper = new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockUserEventService)); + UUID.randomUUID().toString(), + Arrays.asList(mockUserEventService, mockLocations)); mockServiceHelper.start(); } diff --git a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2beta/CompletionServiceClientHttpJsonTest.java b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2beta/CompletionServiceClientHttpJsonTest.java index 93410ee17103..372bc6484f06 100644 --- a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2beta/CompletionServiceClientHttpJsonTest.java +++ b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2beta/CompletionServiceClientHttpJsonTest.java @@ -95,6 +95,7 @@ public void completeQueryTest() throws Exception { .setDeviceType("deviceType781190832") .setDataset("dataset1443214456") .setMaxSuggestions(618824852) + .setEnableAttributeSuggestions(true) .setEntity("entity-1298275357") .build(); @@ -133,6 +134,7 @@ public void completeQueryExceptionTest() throws Exception { .setDeviceType("deviceType781190832") .setDataset("dataset1443214456") .setMaxSuggestions(618824852) + .setEnableAttributeSuggestions(true) .setEntity("entity-1298275357") .build(); client.completeQuery(request); diff --git a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2beta/CompletionServiceClientTest.java b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2beta/CompletionServiceClientTest.java index f73755d30910..0e7273bc6ed7 100644 --- a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2beta/CompletionServiceClientTest.java +++ b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2beta/CompletionServiceClientTest.java @@ -100,6 +100,7 @@ public void completeQueryTest() throws Exception { .setDeviceType("deviceType781190832") .setDataset("dataset1443214456") .setMaxSuggestions(618824852) + .setEnableAttributeSuggestions(true) .setEntity("entity-1298275357") .build(); @@ -117,6 +118,8 @@ public void completeQueryTest() throws Exception { Assert.assertEquals(request.getDeviceType(), actualRequest.getDeviceType()); Assert.assertEquals(request.getDataset(), actualRequest.getDataset()); Assert.assertEquals(request.getMaxSuggestions(), actualRequest.getMaxSuggestions()); + Assert.assertEquals( + request.getEnableAttributeSuggestions(), actualRequest.getEnableAttributeSuggestions()); Assert.assertEquals(request.getEntity(), actualRequest.getEntity()); Assert.assertTrue( channelProvider.isHeaderSent( @@ -139,6 +142,7 @@ public void completeQueryExceptionTest() throws Exception { .setDeviceType("deviceType781190832") .setDataset("dataset1443214456") .setMaxSuggestions(618824852) + .setEnableAttributeSuggestions(true) .setEntity("entity-1298275357") .build(); client.completeQuery(request); diff --git a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2beta/MockProductServiceImpl.java b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2beta/MockProductServiceImpl.java index e828c6d74f4b..687c1cc309a2 100644 --- a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2beta/MockProductServiceImpl.java +++ b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2beta/MockProductServiceImpl.java @@ -163,6 +163,27 @@ public void deleteProduct(DeleteProductRequest request, StreamObserver re } } + @Override + public void purgeProducts( + PurgeProductsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method PurgeProducts, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void importProducts( ImportProductsRequest request, StreamObserver responseObserver) { diff --git a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2beta/ModelServiceClientHttpJsonTest.java b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2beta/ModelServiceClientHttpJsonTest.java index d57daa80ffc2..255801c17a65 100644 --- a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2beta/ModelServiceClientHttpJsonTest.java +++ b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2beta/ModelServiceClientHttpJsonTest.java @@ -96,6 +96,7 @@ public void createModelTest() throws Exception { .setTuningOperation("tuningOperation-1269747150") .setFilteringOption(RecommendationsFilteringOption.forNumber(0)) .addAllServingConfigLists(new ArrayList()) + .setModelFeaturesConfig(Model.ModelFeaturesConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -156,6 +157,7 @@ public void createModelTest2() throws Exception { .setTuningOperation("tuningOperation-1269747150") .setFilteringOption(RecommendationsFilteringOption.forNumber(0)) .addAllServingConfigLists(new ArrayList()) + .setModelFeaturesConfig(Model.ModelFeaturesConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -216,6 +218,7 @@ public void getModelTest() throws Exception { .setTuningOperation("tuningOperation-1269747150") .setFilteringOption(RecommendationsFilteringOption.forNumber(0)) .addAllServingConfigLists(new ArrayList()) + .setModelFeaturesConfig(Model.ModelFeaturesConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -269,6 +272,7 @@ public void getModelTest2() throws Exception { .setTuningOperation("tuningOperation-1269747150") .setFilteringOption(RecommendationsFilteringOption.forNumber(0)) .addAllServingConfigLists(new ArrayList()) + .setModelFeaturesConfig(Model.ModelFeaturesConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -324,6 +328,7 @@ public void pauseModelTest() throws Exception { .setTuningOperation("tuningOperation-1269747150") .setFilteringOption(RecommendationsFilteringOption.forNumber(0)) .addAllServingConfigLists(new ArrayList()) + .setModelFeaturesConfig(Model.ModelFeaturesConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -377,6 +382,7 @@ public void pauseModelTest2() throws Exception { .setTuningOperation("tuningOperation-1269747150") .setFilteringOption(RecommendationsFilteringOption.forNumber(0)) .addAllServingConfigLists(new ArrayList()) + .setModelFeaturesConfig(Model.ModelFeaturesConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -432,6 +438,7 @@ public void resumeModelTest() throws Exception { .setTuningOperation("tuningOperation-1269747150") .setFilteringOption(RecommendationsFilteringOption.forNumber(0)) .addAllServingConfigLists(new ArrayList()) + .setModelFeaturesConfig(Model.ModelFeaturesConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -669,6 +676,7 @@ public void updateModelTest() throws Exception { .setTuningOperation("tuningOperation-1269747150") .setFilteringOption(RecommendationsFilteringOption.forNumber(0)) .addAllServingConfigLists(new ArrayList()) + .setModelFeaturesConfig(Model.ModelFeaturesConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -684,6 +692,7 @@ public void updateModelTest() throws Exception { .setTuningOperation("tuningOperation-1269747150") .setFilteringOption(RecommendationsFilteringOption.forNumber(0)) .addAllServingConfigLists(new ArrayList()) + .setModelFeaturesConfig(Model.ModelFeaturesConfig.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -725,6 +734,7 @@ public void updateModelExceptionTest() throws Exception { .setTuningOperation("tuningOperation-1269747150") .setFilteringOption(RecommendationsFilteringOption.forNumber(0)) .addAllServingConfigLists(new ArrayList()) + .setModelFeaturesConfig(Model.ModelFeaturesConfig.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateModel(model, updateMask); diff --git a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2beta/ModelServiceClientTest.java b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2beta/ModelServiceClientTest.java index ddb88218baa9..df8c56edd76d 100644 --- a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2beta/ModelServiceClientTest.java +++ b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2beta/ModelServiceClientTest.java @@ -100,6 +100,7 @@ public void createModelTest() throws Exception { .setTuningOperation("tuningOperation-1269747150") .setFilteringOption(RecommendationsFilteringOption.forNumber(0)) .addAllServingConfigLists(new ArrayList()) + .setModelFeaturesConfig(Model.ModelFeaturesConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -158,6 +159,7 @@ public void createModelTest2() throws Exception { .setTuningOperation("tuningOperation-1269747150") .setFilteringOption(RecommendationsFilteringOption.forNumber(0)) .addAllServingConfigLists(new ArrayList()) + .setModelFeaturesConfig(Model.ModelFeaturesConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -216,6 +218,7 @@ public void getModelTest() throws Exception { .setTuningOperation("tuningOperation-1269747150") .setFilteringOption(RecommendationsFilteringOption.forNumber(0)) .addAllServingConfigLists(new ArrayList()) + .setModelFeaturesConfig(Model.ModelFeaturesConfig.newBuilder().build()) .build(); mockModelService.addResponse(expectedResponse); @@ -263,6 +266,7 @@ public void getModelTest2() throws Exception { .setTuningOperation("tuningOperation-1269747150") .setFilteringOption(RecommendationsFilteringOption.forNumber(0)) .addAllServingConfigLists(new ArrayList()) + .setModelFeaturesConfig(Model.ModelFeaturesConfig.newBuilder().build()) .build(); mockModelService.addResponse(expectedResponse); @@ -310,6 +314,7 @@ public void pauseModelTest() throws Exception { .setTuningOperation("tuningOperation-1269747150") .setFilteringOption(RecommendationsFilteringOption.forNumber(0)) .addAllServingConfigLists(new ArrayList()) + .setModelFeaturesConfig(Model.ModelFeaturesConfig.newBuilder().build()) .build(); mockModelService.addResponse(expectedResponse); @@ -357,6 +362,7 @@ public void pauseModelTest2() throws Exception { .setTuningOperation("tuningOperation-1269747150") .setFilteringOption(RecommendationsFilteringOption.forNumber(0)) .addAllServingConfigLists(new ArrayList()) + .setModelFeaturesConfig(Model.ModelFeaturesConfig.newBuilder().build()) .build(); mockModelService.addResponse(expectedResponse); @@ -404,6 +410,7 @@ public void resumeModelTest() throws Exception { .setTuningOperation("tuningOperation-1269747150") .setFilteringOption(RecommendationsFilteringOption.forNumber(0)) .addAllServingConfigLists(new ArrayList()) + .setModelFeaturesConfig(Model.ModelFeaturesConfig.newBuilder().build()) .build(); mockModelService.addResponse(expectedResponse); @@ -607,6 +614,7 @@ public void updateModelTest() throws Exception { .setTuningOperation("tuningOperation-1269747150") .setFilteringOption(RecommendationsFilteringOption.forNumber(0)) .addAllServingConfigLists(new ArrayList()) + .setModelFeaturesConfig(Model.ModelFeaturesConfig.newBuilder().build()) .build(); mockModelService.addResponse(expectedResponse); diff --git a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2beta/ProductServiceClientHttpJsonTest.java b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2beta/ProductServiceClientHttpJsonTest.java index 0e9375725d7a..fada361350bb 100644 --- a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2beta/ProductServiceClientHttpJsonTest.java +++ b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2beta/ProductServiceClientHttpJsonTest.java @@ -730,6 +730,67 @@ public void deleteProductExceptionTest2() throws Exception { } } + @Test + public void purgeProductsTest() throws Exception { + PurgeProductsResponse expectedResponse = + PurgeProductsResponse.newBuilder() + .setPurgeCount(575305851) + .addAllPurgeSample(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("purgeProductsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + PurgeProductsRequest request = + PurgeProductsRequest.newBuilder() + .setParent(BranchName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]").toString()) + .setFilter("filter-1274492040") + .setForce(true) + .build(); + + PurgeProductsResponse actualResponse = client.purgeProductsAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void purgeProductsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PurgeProductsRequest request = + PurgeProductsRequest.newBuilder() + .setParent( + BranchName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]").toString()) + .setFilter("filter-1274492040") + .setForce(true) + .build(); + client.purgeProductsAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void importProductsTest() throws Exception { ImportProductsResponse expectedResponse = diff --git a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2beta/ProductServiceClientTest.java b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2beta/ProductServiceClientTest.java index 206bb369cf1e..222a45ce0cff 100644 --- a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2beta/ProductServiceClientTest.java +++ b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2beta/ProductServiceClientTest.java @@ -609,6 +609,66 @@ public void deleteProductExceptionTest2() throws Exception { } } + @Test + public void purgeProductsTest() throws Exception { + PurgeProductsResponse expectedResponse = + PurgeProductsResponse.newBuilder() + .setPurgeCount(575305851) + .addAllPurgeSample(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("purgeProductsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockProductService.addResponse(resultOperation); + + PurgeProductsRequest request = + PurgeProductsRequest.newBuilder() + .setParent(BranchName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]").toString()) + .setFilter("filter-1274492040") + .setForce(true) + .build(); + + PurgeProductsResponse actualResponse = client.purgeProductsAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockProductService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + PurgeProductsRequest actualRequest = ((PurgeProductsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getForce(), actualRequest.getForce()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void purgeProductsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockProductService.addException(exception); + + try { + PurgeProductsRequest request = + PurgeProductsRequest.newBuilder() + .setParent( + BranchName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]").toString()) + .setFilter("filter-1274492040") + .setForce(true) + .build(); + client.purgeProductsAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + @Test public void importProductsTest() throws Exception { ImportProductsResponse expectedResponse = diff --git a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2beta/ServingConfigServiceClientHttpJsonTest.java b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2beta/ServingConfigServiceClientHttpJsonTest.java index 59f871cb727c..436ca8ae5d94 100644 --- a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2beta/ServingConfigServiceClientHttpJsonTest.java +++ b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2beta/ServingConfigServiceClientHttpJsonTest.java @@ -100,6 +100,7 @@ public void createServingConfigTest() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); @@ -168,6 +169,7 @@ public void createServingConfigTest2() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); @@ -320,6 +322,7 @@ public void updateServingConfigTest() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); @@ -345,6 +348,7 @@ public void updateServingConfigTest() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); @@ -396,6 +400,7 @@ public void updateServingConfigExceptionTest() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); @@ -429,6 +434,7 @@ public void getServingConfigTest() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); @@ -494,6 +500,7 @@ public void getServingConfigTest2() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); @@ -659,6 +666,7 @@ public void addControlTest() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); @@ -724,6 +732,7 @@ public void addControlTest2() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); @@ -789,6 +798,7 @@ public void removeControlTest() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); @@ -854,6 +864,7 @@ public void removeControlTest2() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); diff --git a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2beta/ServingConfigServiceClientTest.java b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2beta/ServingConfigServiceClientTest.java index 9722ae9493bb..ffa8e4053083 100644 --- a/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2beta/ServingConfigServiceClientTest.java +++ b/java-retail/google-cloud-retail/src/test/java/com/google/cloud/retail/v2beta/ServingConfigServiceClientTest.java @@ -103,6 +103,7 @@ public void createServingConfigTest() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); @@ -167,6 +168,7 @@ public void createServingConfigTest2() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); @@ -301,6 +303,7 @@ public void updateServingConfigTest() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); @@ -361,6 +364,7 @@ public void getServingConfigTest() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); @@ -420,6 +424,7 @@ public void getServingConfigTest2() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); @@ -565,6 +570,7 @@ public void addControlTest() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); @@ -624,6 +630,7 @@ public void addControlTest2() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); @@ -681,6 +688,7 @@ public void removeControlTest() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); @@ -740,6 +748,7 @@ public void removeControlTest2() throws Exception { .addAllIgnoreControlIds(new ArrayList()) .setDiversityLevel("diversityLevel578206123") .setEnableCategoryFilterLevel("enableCategoryFilterLevel-1232535413") + .setIgnoreRecsDenylist(true) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) .addAllSolutionTypes(new ArrayList()) .build(); diff --git a/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ProductServiceGrpc.java b/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ProductServiceGrpc.java index 408b6177c34d..f360592c618f 100644 --- a/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ProductServiceGrpc.java +++ b/java-retail/grpc-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ProductServiceGrpc.java @@ -247,6 +247,48 @@ private ProductServiceGrpc() {} return getDeleteProductMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.retail.v2.PurgeProductsRequest, com.google.longrunning.Operation> + getPurgeProductsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "PurgeProducts", + requestType = com.google.cloud.retail.v2.PurgeProductsRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.retail.v2.PurgeProductsRequest, com.google.longrunning.Operation> + getPurgeProductsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.retail.v2.PurgeProductsRequest, com.google.longrunning.Operation> + getPurgeProductsMethod; + if ((getPurgeProductsMethod = ProductServiceGrpc.getPurgeProductsMethod) == null) { + synchronized (ProductServiceGrpc.class) { + if ((getPurgeProductsMethod = ProductServiceGrpc.getPurgeProductsMethod) == null) { + ProductServiceGrpc.getPurgeProductsMethod = + getPurgeProductsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PurgeProducts")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.retail.v2.PurgeProductsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ProductServiceMethodDescriptorSupplier("PurgeProducts")) + .build(); + } + } + } + return getPurgeProductsMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.retail.v2.ImportProductsRequest, com.google.longrunning.Operation> getImportProductsMethod; @@ -643,6 +685,34 @@ default void deleteProduct( getDeleteProductMethod(), responseObserver); } + /** + * + * + *
+     * Permanently deletes all selected [Product][google.cloud.retail.v2.Product]s
+     * under a branch.
+     * This process is asynchronous. If the request is valid, the removal will be
+     * enqueued and processed offline. Depending on the number of
+     * [Product][google.cloud.retail.v2.Product]s, this operation could take hours
+     * to complete. Before the operation completes, some
+     * [Product][google.cloud.retail.v2.Product]s may still be returned by
+     * [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct]
+     * or
+     * [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts].
+     * Depending on the number of [Product][google.cloud.retail.v2.Product]s, this
+     * operation could take hours to complete. To get a sample of
+     * [Product][google.cloud.retail.v2.Product]s that would be deleted, set
+     * [PurgeProductsRequest.force][google.cloud.retail.v2.PurgeProductsRequest.force]
+     * to false.
+     * 
+ */ + default void purgeProducts( + com.google.cloud.retail.v2.PurgeProductsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getPurgeProductsMethod(), responseObserver); + } + /** * * @@ -720,10 +790,11 @@ default void setInventory( * * *
-     * It is recommended to use the
+     * We recommend that you use the
      * [ProductService.AddLocalInventories][google.cloud.retail.v2.ProductService.AddLocalInventories]
-     * method instead of
-     * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2.ProductService.AddFulfillmentPlaces].
+     * method instead of the
+     * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2.ProductService.AddFulfillmentPlaces]
+     * method.
      * [ProductService.AddLocalInventories][google.cloud.retail.v2.ProductService.AddLocalInventories]
      * achieves the same results but provides more fine-grained control over
      * ingesting local inventory data.
@@ -758,10 +829,11 @@ default void addFulfillmentPlaces(
      *
      *
      * 
-     * It is recommended to use the
+     * We recommend that you use the
      * [ProductService.RemoveLocalInventories][google.cloud.retail.v2.ProductService.RemoveLocalInventories]
-     * method instead of
-     * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2.ProductService.RemoveFulfillmentPlaces].
+     * method instead of the
+     * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2.ProductService.RemoveFulfillmentPlaces]
+     * method.
      * [ProductService.RemoveLocalInventories][google.cloud.retail.v2.ProductService.RemoveLocalInventories]
      * achieves the same results but provides more fine-grained control over
      * ingesting local inventory data.
@@ -980,6 +1052,36 @@ public void deleteProduct(
           responseObserver);
     }
 
+    /**
+     *
+     *
+     * 
+     * Permanently deletes all selected [Product][google.cloud.retail.v2.Product]s
+     * under a branch.
+     * This process is asynchronous. If the request is valid, the removal will be
+     * enqueued and processed offline. Depending on the number of
+     * [Product][google.cloud.retail.v2.Product]s, this operation could take hours
+     * to complete. Before the operation completes, some
+     * [Product][google.cloud.retail.v2.Product]s may still be returned by
+     * [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct]
+     * or
+     * [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts].
+     * Depending on the number of [Product][google.cloud.retail.v2.Product]s, this
+     * operation could take hours to complete. To get a sample of
+     * [Product][google.cloud.retail.v2.Product]s that would be deleted, set
+     * [PurgeProductsRequest.force][google.cloud.retail.v2.PurgeProductsRequest.force]
+     * to false.
+     * 
+ */ + public void purgeProducts( + com.google.cloud.retail.v2.PurgeProductsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getPurgeProductsMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -1061,10 +1163,11 @@ public void setInventory( * * *
-     * It is recommended to use the
+     * We recommend that you use the
      * [ProductService.AddLocalInventories][google.cloud.retail.v2.ProductService.AddLocalInventories]
-     * method instead of
-     * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2.ProductService.AddFulfillmentPlaces].
+     * method instead of the
+     * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2.ProductService.AddFulfillmentPlaces]
+     * method.
      * [ProductService.AddLocalInventories][google.cloud.retail.v2.ProductService.AddLocalInventories]
      * achieves the same results but provides more fine-grained control over
      * ingesting local inventory data.
@@ -1101,10 +1204,11 @@ public void addFulfillmentPlaces(
      *
      *
      * 
-     * It is recommended to use the
+     * We recommend that you use the
      * [ProductService.RemoveLocalInventories][google.cloud.retail.v2.ProductService.RemoveLocalInventories]
-     * method instead of
-     * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2.ProductService.RemoveFulfillmentPlaces].
+     * method instead of the
+     * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2.ProductService.RemoveFulfillmentPlaces]
+     * method.
      * [ProductService.RemoveLocalInventories][google.cloud.retail.v2.ProductService.RemoveLocalInventories]
      * achieves the same results but provides more fine-grained control over
      * ingesting local inventory data.
@@ -1299,6 +1403,33 @@ public com.google.protobuf.Empty deleteProduct(
           getChannel(), getDeleteProductMethod(), getCallOptions(), request);
     }
 
+    /**
+     *
+     *
+     * 
+     * Permanently deletes all selected [Product][google.cloud.retail.v2.Product]s
+     * under a branch.
+     * This process is asynchronous. If the request is valid, the removal will be
+     * enqueued and processed offline. Depending on the number of
+     * [Product][google.cloud.retail.v2.Product]s, this operation could take hours
+     * to complete. Before the operation completes, some
+     * [Product][google.cloud.retail.v2.Product]s may still be returned by
+     * [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct]
+     * or
+     * [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts].
+     * Depending on the number of [Product][google.cloud.retail.v2.Product]s, this
+     * operation could take hours to complete. To get a sample of
+     * [Product][google.cloud.retail.v2.Product]s that would be deleted, set
+     * [PurgeProductsRequest.force][google.cloud.retail.v2.PurgeProductsRequest.force]
+     * to false.
+     * 
+ */ + public com.google.longrunning.Operation purgeProducts( + com.google.cloud.retail.v2.PurgeProductsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getPurgeProductsMethod(), getCallOptions(), request); + } + /** * * @@ -1374,10 +1505,11 @@ public com.google.longrunning.Operation setInventory( * * *
-     * It is recommended to use the
+     * We recommend that you use the
      * [ProductService.AddLocalInventories][google.cloud.retail.v2.ProductService.AddLocalInventories]
-     * method instead of
-     * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2.ProductService.AddFulfillmentPlaces].
+     * method instead of the
+     * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2.ProductService.AddFulfillmentPlaces]
+     * method.
      * [ProductService.AddLocalInventories][google.cloud.retail.v2.ProductService.AddLocalInventories]
      * achieves the same results but provides more fine-grained control over
      * ingesting local inventory data.
@@ -1411,10 +1543,11 @@ public com.google.longrunning.Operation addFulfillmentPlaces(
      *
      *
      * 
-     * It is recommended to use the
+     * We recommend that you use the
      * [ProductService.RemoveLocalInventories][google.cloud.retail.v2.ProductService.RemoveLocalInventories]
-     * method instead of
-     * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2.ProductService.RemoveFulfillmentPlaces].
+     * method instead of the
+     * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2.ProductService.RemoveFulfillmentPlaces]
+     * method.
      * [ProductService.RemoveLocalInventories][google.cloud.retail.v2.ProductService.RemoveLocalInventories]
      * achieves the same results but provides more fine-grained control over
      * ingesting local inventory data.
@@ -1601,6 +1734,33 @@ protected ProductServiceFutureStub build(
           getChannel().newCall(getDeleteProductMethod(), getCallOptions()), request);
     }
 
+    /**
+     *
+     *
+     * 
+     * Permanently deletes all selected [Product][google.cloud.retail.v2.Product]s
+     * under a branch.
+     * This process is asynchronous. If the request is valid, the removal will be
+     * enqueued and processed offline. Depending on the number of
+     * [Product][google.cloud.retail.v2.Product]s, this operation could take hours
+     * to complete. Before the operation completes, some
+     * [Product][google.cloud.retail.v2.Product]s may still be returned by
+     * [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct]
+     * or
+     * [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts].
+     * Depending on the number of [Product][google.cloud.retail.v2.Product]s, this
+     * operation could take hours to complete. To get a sample of
+     * [Product][google.cloud.retail.v2.Product]s that would be deleted, set
+     * [PurgeProductsRequest.force][google.cloud.retail.v2.PurgeProductsRequest.force]
+     * to false.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + purgeProducts(com.google.cloud.retail.v2.PurgeProductsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getPurgeProductsMethod(), getCallOptions()), request); + } + /** * * @@ -1676,10 +1836,11 @@ protected ProductServiceFutureStub build( * * *
-     * It is recommended to use the
+     * We recommend that you use the
      * [ProductService.AddLocalInventories][google.cloud.retail.v2.ProductService.AddLocalInventories]
-     * method instead of
-     * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2.ProductService.AddFulfillmentPlaces].
+     * method instead of the
+     * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2.ProductService.AddFulfillmentPlaces]
+     * method.
      * [ProductService.AddLocalInventories][google.cloud.retail.v2.ProductService.AddLocalInventories]
      * achieves the same results but provides more fine-grained control over
      * ingesting local inventory data.
@@ -1713,10 +1874,11 @@ protected ProductServiceFutureStub build(
      *
      *
      * 
-     * It is recommended to use the
+     * We recommend that you use the
      * [ProductService.RemoveLocalInventories][google.cloud.retail.v2.ProductService.RemoveLocalInventories]
-     * method instead of
-     * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2.ProductService.RemoveFulfillmentPlaces].
+     * method instead of the
+     * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2.ProductService.RemoveFulfillmentPlaces]
+     * method.
      * [ProductService.RemoveLocalInventories][google.cloud.retail.v2.ProductService.RemoveLocalInventories]
      * achieves the same results but provides more fine-grained control over
      * ingesting local inventory data.
@@ -1822,12 +1984,13 @@ protected ProductServiceFutureStub build(
   private static final int METHODID_LIST_PRODUCTS = 2;
   private static final int METHODID_UPDATE_PRODUCT = 3;
   private static final int METHODID_DELETE_PRODUCT = 4;
-  private static final int METHODID_IMPORT_PRODUCTS = 5;
-  private static final int METHODID_SET_INVENTORY = 6;
-  private static final int METHODID_ADD_FULFILLMENT_PLACES = 7;
-  private static final int METHODID_REMOVE_FULFILLMENT_PLACES = 8;
-  private static final int METHODID_ADD_LOCAL_INVENTORIES = 9;
-  private static final int METHODID_REMOVE_LOCAL_INVENTORIES = 10;
+  private static final int METHODID_PURGE_PRODUCTS = 5;
+  private static final int METHODID_IMPORT_PRODUCTS = 6;
+  private static final int METHODID_SET_INVENTORY = 7;
+  private static final int METHODID_ADD_FULFILLMENT_PLACES = 8;
+  private static final int METHODID_REMOVE_FULFILLMENT_PLACES = 9;
+  private static final int METHODID_ADD_LOCAL_INVENTORIES = 10;
+  private static final int METHODID_REMOVE_LOCAL_INVENTORIES = 11;
 
   private static final class MethodHandlers
       implements io.grpc.stub.ServerCalls.UnaryMethod,
@@ -1872,6 +2035,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv
               (com.google.cloud.retail.v2.DeleteProductRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
+        case METHODID_PURGE_PRODUCTS:
+          serviceImpl.purgeProducts(
+              (com.google.cloud.retail.v2.PurgeProductsRequest) request,
+              (io.grpc.stub.StreamObserver) responseObserver);
+          break;
         case METHODID_IMPORT_PRODUCTS:
           serviceImpl.importProducts(
               (com.google.cloud.retail.v2.ImportProductsRequest) request,
@@ -1951,6 +2119,12 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser
                 new MethodHandlers<
                     com.google.cloud.retail.v2.DeleteProductRequest, com.google.protobuf.Empty>(
                     service, METHODID_DELETE_PRODUCT)))
+        .addMethod(
+            getPurgeProductsMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers<
+                    com.google.cloud.retail.v2.PurgeProductsRequest,
+                    com.google.longrunning.Operation>(service, METHODID_PURGE_PRODUCTS)))
         .addMethod(
             getImportProductsMethod(),
             io.grpc.stub.ServerCalls.asyncUnaryCall(
@@ -2043,6 +2217,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
                       .addMethod(getListProductsMethod())
                       .addMethod(getUpdateProductMethod())
                       .addMethod(getDeleteProductMethod())
+                      .addMethod(getPurgeProductsMethod())
                       .addMethod(getImportProductsMethod())
                       .addMethod(getSetInventoryMethod())
                       .addMethod(getAddFulfillmentPlacesMethod())
diff --git a/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/BranchServiceGrpc.java b/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/BranchServiceGrpc.java
new file mode 100644
index 000000000000..4f90b15c36a8
--- /dev/null
+++ b/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/BranchServiceGrpc.java
@@ -0,0 +1,523 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.google.cloud.retail.v2alpha;
+
+import static io.grpc.MethodDescriptor.generateFullMethodName;
+
+/**
+ *
+ *
+ * 
+ * Service for [Branch][google.cloud.retail.v2alpha.Branch] Management
+ * [Branch][google.cloud.retail.v2alpha.Branch]es are automatically created when
+ * a [Catalog][google.cloud.retail.v2alpha.Catalog] is created. There are fixed
+ * three branches in each catalog, and may use
+ * [ListBranches][google.cloud.retail.v2alpha.BranchService.ListBranches] method
+ * to get the details of all branches.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/retail/v2alpha/branch_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class BranchServiceGrpc { + + private BranchServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.cloud.retail.v2alpha.BranchService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.retail.v2alpha.ListBranchesRequest, + com.google.cloud.retail.v2alpha.ListBranchesResponse> + getListBranchesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListBranches", + requestType = com.google.cloud.retail.v2alpha.ListBranchesRequest.class, + responseType = com.google.cloud.retail.v2alpha.ListBranchesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.retail.v2alpha.ListBranchesRequest, + com.google.cloud.retail.v2alpha.ListBranchesResponse> + getListBranchesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.retail.v2alpha.ListBranchesRequest, + com.google.cloud.retail.v2alpha.ListBranchesResponse> + getListBranchesMethod; + if ((getListBranchesMethod = BranchServiceGrpc.getListBranchesMethod) == null) { + synchronized (BranchServiceGrpc.class) { + if ((getListBranchesMethod = BranchServiceGrpc.getListBranchesMethod) == null) { + BranchServiceGrpc.getListBranchesMethod = + getListBranchesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBranches")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.retail.v2alpha.ListBranchesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.retail.v2alpha.ListBranchesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new BranchServiceMethodDescriptorSupplier("ListBranches")) + .build(); + } + } + } + return getListBranchesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.retail.v2alpha.GetBranchRequest, com.google.cloud.retail.v2alpha.Branch> + getGetBranchMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetBranch", + requestType = com.google.cloud.retail.v2alpha.GetBranchRequest.class, + responseType = com.google.cloud.retail.v2alpha.Branch.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.retail.v2alpha.GetBranchRequest, com.google.cloud.retail.v2alpha.Branch> + getGetBranchMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.retail.v2alpha.GetBranchRequest, + com.google.cloud.retail.v2alpha.Branch> + getGetBranchMethod; + if ((getGetBranchMethod = BranchServiceGrpc.getGetBranchMethod) == null) { + synchronized (BranchServiceGrpc.class) { + if ((getGetBranchMethod = BranchServiceGrpc.getGetBranchMethod) == null) { + BranchServiceGrpc.getGetBranchMethod = + getGetBranchMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBranch")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.retail.v2alpha.GetBranchRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.retail.v2alpha.Branch.getDefaultInstance())) + .setSchemaDescriptor(new BranchServiceMethodDescriptorSupplier("GetBranch")) + .build(); + } + } + } + return getGetBranchMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static BranchServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BranchServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BranchServiceStub(channel, callOptions); + } + }; + return BranchServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static BranchServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BranchServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BranchServiceBlockingStub(channel, callOptions); + } + }; + return BranchServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static BranchServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BranchServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BranchServiceFutureStub(channel, callOptions); + } + }; + return BranchServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service for [Branch][google.cloud.retail.v2alpha.Branch] Management
+   * [Branch][google.cloud.retail.v2alpha.Branch]es are automatically created when
+   * a [Catalog][google.cloud.retail.v2alpha.Catalog] is created. There are fixed
+   * three branches in each catalog, and may use
+   * [ListBranches][google.cloud.retail.v2alpha.BranchService.ListBranches] method
+   * to get the details of all branches.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Lists all [Branch][google.cloud.retail.v2alpha.Branch]s under the specified
+     * parent [Catalog][google.cloud.retail.v2alpha.Catalog].
+     * 
+ */ + default void listBranches( + com.google.cloud.retail.v2alpha.ListBranchesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListBranchesMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieves a [Branch][google.cloud.retail.v2alpha.Branch].
+     * 
+ */ + default void getBranch( + com.google.cloud.retail.v2alpha.GetBranchRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBranchMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service BranchService. + * + *
+   * Service for [Branch][google.cloud.retail.v2alpha.Branch] Management
+   * [Branch][google.cloud.retail.v2alpha.Branch]es are automatically created when
+   * a [Catalog][google.cloud.retail.v2alpha.Catalog] is created. There are fixed
+   * three branches in each catalog, and may use
+   * [ListBranches][google.cloud.retail.v2alpha.BranchService.ListBranches] method
+   * to get the details of all branches.
+   * 
+ */ + public abstract static class BranchServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return BranchServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service BranchService. + * + *
+   * Service for [Branch][google.cloud.retail.v2alpha.Branch] Management
+   * [Branch][google.cloud.retail.v2alpha.Branch]es are automatically created when
+   * a [Catalog][google.cloud.retail.v2alpha.Catalog] is created. There are fixed
+   * three branches in each catalog, and may use
+   * [ListBranches][google.cloud.retail.v2alpha.BranchService.ListBranches] method
+   * to get the details of all branches.
+   * 
+ */ + public static final class BranchServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private BranchServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BranchServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BranchServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists all [Branch][google.cloud.retail.v2alpha.Branch]s under the specified
+     * parent [Catalog][google.cloud.retail.v2alpha.Catalog].
+     * 
+ */ + public void listBranches( + com.google.cloud.retail.v2alpha.ListBranchesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListBranchesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieves a [Branch][google.cloud.retail.v2alpha.Branch].
+     * 
+ */ + public void getBranch( + com.google.cloud.retail.v2alpha.GetBranchRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetBranchMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service BranchService. + * + *
+   * Service for [Branch][google.cloud.retail.v2alpha.Branch] Management
+   * [Branch][google.cloud.retail.v2alpha.Branch]es are automatically created when
+   * a [Catalog][google.cloud.retail.v2alpha.Catalog] is created. There are fixed
+   * three branches in each catalog, and may use
+   * [ListBranches][google.cloud.retail.v2alpha.BranchService.ListBranches] method
+   * to get the details of all branches.
+   * 
+ */ + public static final class BranchServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private BranchServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BranchServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BranchServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists all [Branch][google.cloud.retail.v2alpha.Branch]s under the specified
+     * parent [Catalog][google.cloud.retail.v2alpha.Catalog].
+     * 
+ */ + public com.google.cloud.retail.v2alpha.ListBranchesResponse listBranches( + com.google.cloud.retail.v2alpha.ListBranchesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListBranchesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieves a [Branch][google.cloud.retail.v2alpha.Branch].
+     * 
+ */ + public com.google.cloud.retail.v2alpha.Branch getBranch( + com.google.cloud.retail.v2alpha.GetBranchRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetBranchMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service BranchService. + * + *
+   * Service for [Branch][google.cloud.retail.v2alpha.Branch] Management
+   * [Branch][google.cloud.retail.v2alpha.Branch]es are automatically created when
+   * a [Catalog][google.cloud.retail.v2alpha.Catalog] is created. There are fixed
+   * three branches in each catalog, and may use
+   * [ListBranches][google.cloud.retail.v2alpha.BranchService.ListBranches] method
+   * to get the details of all branches.
+   * 
+ */ + public static final class BranchServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private BranchServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BranchServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BranchServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists all [Branch][google.cloud.retail.v2alpha.Branch]s under the specified
+     * parent [Catalog][google.cloud.retail.v2alpha.Catalog].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.retail.v2alpha.ListBranchesResponse> + listBranches(com.google.cloud.retail.v2alpha.ListBranchesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListBranchesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieves a [Branch][google.cloud.retail.v2alpha.Branch].
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.retail.v2alpha.Branch> + getBranch(com.google.cloud.retail.v2alpha.GetBranchRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetBranchMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_BRANCHES = 0; + private static final int METHODID_GET_BRANCH = 1; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_BRANCHES: + serviceImpl.listBranches( + (com.google.cloud.retail.v2alpha.ListBranchesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_BRANCH: + serviceImpl.getBranch( + (com.google.cloud.retail.v2alpha.GetBranchRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListBranchesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.retail.v2alpha.ListBranchesRequest, + com.google.cloud.retail.v2alpha.ListBranchesResponse>( + service, METHODID_LIST_BRANCHES))) + .addMethod( + getGetBranchMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.retail.v2alpha.GetBranchRequest, + com.google.cloud.retail.v2alpha.Branch>(service, METHODID_GET_BRANCH))) + .build(); + } + + private abstract static class BranchServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + BranchServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.retail.v2alpha.BranchServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("BranchService"); + } + } + + private static final class BranchServiceFileDescriptorSupplier + extends BranchServiceBaseDescriptorSupplier { + BranchServiceFileDescriptorSupplier() {} + } + + private static final class BranchServiceMethodDescriptorSupplier + extends BranchServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + BranchServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (BranchServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new BranchServiceFileDescriptorSupplier()) + .addMethod(getListBranchesMethod()) + .addMethod(getGetBranchMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProductServiceGrpc.java b/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProductServiceGrpc.java index 6e2d6c75578b..1dd7b2db6cfc 100644 --- a/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProductServiceGrpc.java +++ b/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProductServiceGrpc.java @@ -813,10 +813,11 @@ default void setInventory( * * *
-     * It is recommended to use the
+     * We recommend that you use the
      * [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories]
-     * method instead of
-     * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.AddFulfillmentPlaces].
+     * method instead of the
+     * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.AddFulfillmentPlaces]
+     * method.
      * [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories]
      * achieves the same results but provides more fine-grained control over
      * ingesting local inventory data.
@@ -851,10 +852,11 @@ default void addFulfillmentPlaces(
      *
      *
      * 
-     * It is recommended to use the
+     * We recommend that you use the
      * [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories]
-     * method instead of
-     * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.RemoveFulfillmentPlaces].
+     * method instead of the
+     * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.RemoveFulfillmentPlaces]
+     * method.
      * [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories]
      * achieves the same results but provides more fine-grained control over
      * ingesting local inventory data.
@@ -1184,10 +1186,11 @@ public void setInventory(
      *
      *
      * 
-     * It is recommended to use the
+     * We recommend that you use the
      * [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories]
-     * method instead of
-     * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.AddFulfillmentPlaces].
+     * method instead of the
+     * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.AddFulfillmentPlaces]
+     * method.
      * [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories]
      * achieves the same results but provides more fine-grained control over
      * ingesting local inventory data.
@@ -1224,10 +1227,11 @@ public void addFulfillmentPlaces(
      *
      *
      * 
-     * It is recommended to use the
+     * We recommend that you use the
      * [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories]
-     * method instead of
-     * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.RemoveFulfillmentPlaces].
+     * method instead of the
+     * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.RemoveFulfillmentPlaces]
+     * method.
      * [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories]
      * achieves the same results but provides more fine-grained control over
      * ingesting local inventory data.
@@ -1524,10 +1528,11 @@ public com.google.longrunning.Operation setInventory(
      *
      *
      * 
-     * It is recommended to use the
+     * We recommend that you use the
      * [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories]
-     * method instead of
-     * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.AddFulfillmentPlaces].
+     * method instead of the
+     * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.AddFulfillmentPlaces]
+     * method.
      * [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories]
      * achieves the same results but provides more fine-grained control over
      * ingesting local inventory data.
@@ -1561,10 +1566,11 @@ public com.google.longrunning.Operation addFulfillmentPlaces(
      *
      *
      * 
-     * It is recommended to use the
+     * We recommend that you use the
      * [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories]
-     * method instead of
-     * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.RemoveFulfillmentPlaces].
+     * method instead of the
+     * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.RemoveFulfillmentPlaces]
+     * method.
      * [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories]
      * achieves the same results but provides more fine-grained control over
      * ingesting local inventory data.
@@ -1856,10 +1862,11 @@ protected ProductServiceFutureStub build(
      *
      *
      * 
-     * It is recommended to use the
+     * We recommend that you use the
      * [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories]
-     * method instead of
-     * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.AddFulfillmentPlaces].
+     * method instead of the
+     * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.AddFulfillmentPlaces]
+     * method.
      * [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories]
      * achieves the same results but provides more fine-grained control over
      * ingesting local inventory data.
@@ -1893,10 +1900,11 @@ protected ProductServiceFutureStub build(
      *
      *
      * 
-     * It is recommended to use the
+     * We recommend that you use the
      * [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories]
-     * method instead of
-     * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.RemoveFulfillmentPlaces].
+     * method instead of the
+     * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.RemoveFulfillmentPlaces]
+     * method.
      * [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories]
      * achieves the same results but provides more fine-grained control over
      * ingesting local inventory data.
diff --git a/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProjectServiceGrpc.java b/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProjectServiceGrpc.java
new file mode 100644
index 000000000000..0a429b3f86ed
--- /dev/null
+++ b/java-retail/grpc-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProjectServiceGrpc.java
@@ -0,0 +1,1259 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.google.cloud.retail.v2alpha;
+
+import static io.grpc.MethodDescriptor.generateFullMethodName;
+
+/**
+ *
+ *
+ * 
+ * Service for settings at Project level.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/retail/v2alpha/project_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class ProjectServiceGrpc { + + private ProjectServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.cloud.retail.v2alpha.ProjectService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.retail.v2alpha.GetProjectRequest, + com.google.cloud.retail.v2alpha.Project> + getGetProjectMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetProject", + requestType = com.google.cloud.retail.v2alpha.GetProjectRequest.class, + responseType = com.google.cloud.retail.v2alpha.Project.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.retail.v2alpha.GetProjectRequest, + com.google.cloud.retail.v2alpha.Project> + getGetProjectMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.retail.v2alpha.GetProjectRequest, + com.google.cloud.retail.v2alpha.Project> + getGetProjectMethod; + if ((getGetProjectMethod = ProjectServiceGrpc.getGetProjectMethod) == null) { + synchronized (ProjectServiceGrpc.class) { + if ((getGetProjectMethod = ProjectServiceGrpc.getGetProjectMethod) == null) { + ProjectServiceGrpc.getGetProjectMethod = + getGetProjectMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetProject")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.retail.v2alpha.GetProjectRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.retail.v2alpha.Project.getDefaultInstance())) + .setSchemaDescriptor(new ProjectServiceMethodDescriptorSupplier("GetProject")) + .build(); + } + } + } + return getGetProjectMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.retail.v2alpha.AcceptTermsRequest, + com.google.cloud.retail.v2alpha.Project> + getAcceptTermsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "AcceptTerms", + requestType = com.google.cloud.retail.v2alpha.AcceptTermsRequest.class, + responseType = com.google.cloud.retail.v2alpha.Project.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.retail.v2alpha.AcceptTermsRequest, + com.google.cloud.retail.v2alpha.Project> + getAcceptTermsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.retail.v2alpha.AcceptTermsRequest, + com.google.cloud.retail.v2alpha.Project> + getAcceptTermsMethod; + if ((getAcceptTermsMethod = ProjectServiceGrpc.getAcceptTermsMethod) == null) { + synchronized (ProjectServiceGrpc.class) { + if ((getAcceptTermsMethod = ProjectServiceGrpc.getAcceptTermsMethod) == null) { + ProjectServiceGrpc.getAcceptTermsMethod = + getAcceptTermsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AcceptTerms")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.retail.v2alpha.AcceptTermsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.retail.v2alpha.Project.getDefaultInstance())) + .setSchemaDescriptor( + new ProjectServiceMethodDescriptorSupplier("AcceptTerms")) + .build(); + } + } + } + return getAcceptTermsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.retail.v2alpha.EnrollSolutionRequest, com.google.longrunning.Operation> + getEnrollSolutionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "EnrollSolution", + requestType = com.google.cloud.retail.v2alpha.EnrollSolutionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.retail.v2alpha.EnrollSolutionRequest, com.google.longrunning.Operation> + getEnrollSolutionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.retail.v2alpha.EnrollSolutionRequest, com.google.longrunning.Operation> + getEnrollSolutionMethod; + if ((getEnrollSolutionMethod = ProjectServiceGrpc.getEnrollSolutionMethod) == null) { + synchronized (ProjectServiceGrpc.class) { + if ((getEnrollSolutionMethod = ProjectServiceGrpc.getEnrollSolutionMethod) == null) { + ProjectServiceGrpc.getEnrollSolutionMethod = + getEnrollSolutionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "EnrollSolution")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.retail.v2alpha.EnrollSolutionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ProjectServiceMethodDescriptorSupplier("EnrollSolution")) + .build(); + } + } + } + return getEnrollSolutionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest, + com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse> + getListEnrolledSolutionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListEnrolledSolutions", + requestType = com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest.class, + responseType = com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest, + com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse> + getListEnrolledSolutionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest, + com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse> + getListEnrolledSolutionsMethod; + if ((getListEnrolledSolutionsMethod = ProjectServiceGrpc.getListEnrolledSolutionsMethod) + == null) { + synchronized (ProjectServiceGrpc.class) { + if ((getListEnrolledSolutionsMethod = ProjectServiceGrpc.getListEnrolledSolutionsMethod) + == null) { + ProjectServiceGrpc.getListEnrolledSolutionsMethod = + getListEnrolledSolutionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListEnrolledSolutions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new ProjectServiceMethodDescriptorSupplier("ListEnrolledSolutions")) + .build(); + } + } + } + return getListEnrolledSolutionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.retail.v2alpha.GetLoggingConfigRequest, + com.google.cloud.retail.v2alpha.LoggingConfig> + getGetLoggingConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetLoggingConfig", + requestType = com.google.cloud.retail.v2alpha.GetLoggingConfigRequest.class, + responseType = com.google.cloud.retail.v2alpha.LoggingConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.retail.v2alpha.GetLoggingConfigRequest, + com.google.cloud.retail.v2alpha.LoggingConfig> + getGetLoggingConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.retail.v2alpha.GetLoggingConfigRequest, + com.google.cloud.retail.v2alpha.LoggingConfig> + getGetLoggingConfigMethod; + if ((getGetLoggingConfigMethod = ProjectServiceGrpc.getGetLoggingConfigMethod) == null) { + synchronized (ProjectServiceGrpc.class) { + if ((getGetLoggingConfigMethod = ProjectServiceGrpc.getGetLoggingConfigMethod) == null) { + ProjectServiceGrpc.getGetLoggingConfigMethod = + getGetLoggingConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLoggingConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.retail.v2alpha.GetLoggingConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.retail.v2alpha.LoggingConfig.getDefaultInstance())) + .setSchemaDescriptor( + new ProjectServiceMethodDescriptorSupplier("GetLoggingConfig")) + .build(); + } + } + } + return getGetLoggingConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest, + com.google.cloud.retail.v2alpha.LoggingConfig> + getUpdateLoggingConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateLoggingConfig", + requestType = com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest.class, + responseType = com.google.cloud.retail.v2alpha.LoggingConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest, + com.google.cloud.retail.v2alpha.LoggingConfig> + getUpdateLoggingConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest, + com.google.cloud.retail.v2alpha.LoggingConfig> + getUpdateLoggingConfigMethod; + if ((getUpdateLoggingConfigMethod = ProjectServiceGrpc.getUpdateLoggingConfigMethod) == null) { + synchronized (ProjectServiceGrpc.class) { + if ((getUpdateLoggingConfigMethod = ProjectServiceGrpc.getUpdateLoggingConfigMethod) + == null) { + ProjectServiceGrpc.getUpdateLoggingConfigMethod = + getUpdateLoggingConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateLoggingConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.retail.v2alpha.LoggingConfig.getDefaultInstance())) + .setSchemaDescriptor( + new ProjectServiceMethodDescriptorSupplier("UpdateLoggingConfig")) + .build(); + } + } + } + return getUpdateLoggingConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.retail.v2alpha.GetAlertConfigRequest, + com.google.cloud.retail.v2alpha.AlertConfig> + getGetAlertConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAlertConfig", + requestType = com.google.cloud.retail.v2alpha.GetAlertConfigRequest.class, + responseType = com.google.cloud.retail.v2alpha.AlertConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.retail.v2alpha.GetAlertConfigRequest, + com.google.cloud.retail.v2alpha.AlertConfig> + getGetAlertConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.retail.v2alpha.GetAlertConfigRequest, + com.google.cloud.retail.v2alpha.AlertConfig> + getGetAlertConfigMethod; + if ((getGetAlertConfigMethod = ProjectServiceGrpc.getGetAlertConfigMethod) == null) { + synchronized (ProjectServiceGrpc.class) { + if ((getGetAlertConfigMethod = ProjectServiceGrpc.getGetAlertConfigMethod) == null) { + ProjectServiceGrpc.getGetAlertConfigMethod = + getGetAlertConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAlertConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.retail.v2alpha.GetAlertConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.retail.v2alpha.AlertConfig.getDefaultInstance())) + .setSchemaDescriptor( + new ProjectServiceMethodDescriptorSupplier("GetAlertConfig")) + .build(); + } + } + } + return getGetAlertConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest, + com.google.cloud.retail.v2alpha.AlertConfig> + getUpdateAlertConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateAlertConfig", + requestType = com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest.class, + responseType = com.google.cloud.retail.v2alpha.AlertConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest, + com.google.cloud.retail.v2alpha.AlertConfig> + getUpdateAlertConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest, + com.google.cloud.retail.v2alpha.AlertConfig> + getUpdateAlertConfigMethod; + if ((getUpdateAlertConfigMethod = ProjectServiceGrpc.getUpdateAlertConfigMethod) == null) { + synchronized (ProjectServiceGrpc.class) { + if ((getUpdateAlertConfigMethod = ProjectServiceGrpc.getUpdateAlertConfigMethod) == null) { + ProjectServiceGrpc.getUpdateAlertConfigMethod = + getUpdateAlertConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAlertConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.retail.v2alpha.AlertConfig.getDefaultInstance())) + .setSchemaDescriptor( + new ProjectServiceMethodDescriptorSupplier("UpdateAlertConfig")) + .build(); + } + } + } + return getUpdateAlertConfigMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static ProjectServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ProjectServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ProjectServiceStub(channel, callOptions); + } + }; + return ProjectServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ProjectServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ProjectServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ProjectServiceBlockingStub(channel, callOptions); + } + }; + return ProjectServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static ProjectServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ProjectServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ProjectServiceFutureStub(channel, callOptions); + } + }; + return ProjectServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service for settings at Project level.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Gets the project.
+     * Throws `NOT_FOUND` if the project wasn't initialized for the Retail API
+     * service.
+     * 
+ */ + default void getProject( + com.google.cloud.retail.v2alpha.GetProjectRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetProjectMethod(), responseObserver); + } + + /** + * + * + *
+     * Accepts service terms for this project.
+     * By making requests to this API, you agree to the terms of service linked
+     * below.
+     * https://cloud.google.com/retail/data-use-terms
+     * 
+ */ + default void acceptTerms( + com.google.cloud.retail.v2alpha.AcceptTermsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getAcceptTermsMethod(), responseObserver); + } + + /** + * + * + *
+     * The method enrolls a solution of type [Retail
+     * Search][google.cloud.retail.v2alpha.SolutionType.SOLUTION_TYPE_SEARCH]
+     * into a project.
+     * The [Recommendations AI solution
+     * type][google.cloud.retail.v2alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
+     * is enrolled by default when your project enables Retail API, so you don't
+     * need to call the enrollSolution method for recommendations.
+     * 
+ */ + default void enrollSolution( + com.google.cloud.retail.v2alpha.EnrollSolutionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getEnrollSolutionMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists all the retail API solutions the project has enrolled.
+     * 
+ */ + default void listEnrolledSolutions( + com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListEnrolledSolutionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets the [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] of the
+     * requested project.
+     * 
+ */ + default void getLoggingConfig( + com.google.cloud.retail.v2alpha.GetLoggingConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetLoggingConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] of
+     * the requested project.
+     * 
+ */ + default void updateLoggingConfig( + com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateLoggingConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Get the [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] of the
+     * requested project.
+     * 
+ */ + default void getAlertConfig( + com.google.cloud.retail.v2alpha.GetAlertConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAlertConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Update the alert config of the requested project.
+     * 
+ */ + default void updateAlertConfig( + com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateAlertConfigMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service ProjectService. + * + *
+   * Service for settings at Project level.
+   * 
+ */ + public abstract static class ProjectServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return ProjectServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service ProjectService. + * + *
+   * Service for settings at Project level.
+   * 
+ */ + public static final class ProjectServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private ProjectServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ProjectServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ProjectServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Gets the project.
+     * Throws `NOT_FOUND` if the project wasn't initialized for the Retail API
+     * service.
+     * 
+ */ + public void getProject( + com.google.cloud.retail.v2alpha.GetProjectRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetProjectMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Accepts service terms for this project.
+     * By making requests to this API, you agree to the terms of service linked
+     * below.
+     * https://cloud.google.com/retail/data-use-terms
+     * 
+ */ + public void acceptTerms( + com.google.cloud.retail.v2alpha.AcceptTermsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getAcceptTermsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * The method enrolls a solution of type [Retail
+     * Search][google.cloud.retail.v2alpha.SolutionType.SOLUTION_TYPE_SEARCH]
+     * into a project.
+     * The [Recommendations AI solution
+     * type][google.cloud.retail.v2alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
+     * is enrolled by default when your project enables Retail API, so you don't
+     * need to call the enrollSolution method for recommendations.
+     * 
+ */ + public void enrollSolution( + com.google.cloud.retail.v2alpha.EnrollSolutionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getEnrollSolutionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists all the retail API solutions the project has enrolled.
+     * 
+ */ + public void listEnrolledSolutions( + com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListEnrolledSolutionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets the [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] of the
+     * requested project.
+     * 
+ */ + public void getLoggingConfig( + com.google.cloud.retail.v2alpha.GetLoggingConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetLoggingConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] of
+     * the requested project.
+     * 
+ */ + public void updateLoggingConfig( + com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateLoggingConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Get the [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] of the
+     * requested project.
+     * 
+ */ + public void getAlertConfig( + com.google.cloud.retail.v2alpha.GetAlertConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAlertConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Update the alert config of the requested project.
+     * 
+ */ + public void updateAlertConfig( + com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateAlertConfigMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service ProjectService. + * + *
+   * Service for settings at Project level.
+   * 
+ */ + public static final class ProjectServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private ProjectServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ProjectServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ProjectServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Gets the project.
+     * Throws `NOT_FOUND` if the project wasn't initialized for the Retail API
+     * service.
+     * 
+ */ + public com.google.cloud.retail.v2alpha.Project getProject( + com.google.cloud.retail.v2alpha.GetProjectRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetProjectMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Accepts service terms for this project.
+     * By making requests to this API, you agree to the terms of service linked
+     * below.
+     * https://cloud.google.com/retail/data-use-terms
+     * 
+ */ + public com.google.cloud.retail.v2alpha.Project acceptTerms( + com.google.cloud.retail.v2alpha.AcceptTermsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAcceptTermsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * The method enrolls a solution of type [Retail
+     * Search][google.cloud.retail.v2alpha.SolutionType.SOLUTION_TYPE_SEARCH]
+     * into a project.
+     * The [Recommendations AI solution
+     * type][google.cloud.retail.v2alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
+     * is enrolled by default when your project enables Retail API, so you don't
+     * need to call the enrollSolution method for recommendations.
+     * 
+ */ + public com.google.longrunning.Operation enrollSolution( + com.google.cloud.retail.v2alpha.EnrollSolutionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getEnrollSolutionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists all the retail API solutions the project has enrolled.
+     * 
+ */ + public com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse listEnrolledSolutions( + com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListEnrolledSolutionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] of the
+     * requested project.
+     * 
+ */ + public com.google.cloud.retail.v2alpha.LoggingConfig getLoggingConfig( + com.google.cloud.retail.v2alpha.GetLoggingConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetLoggingConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] of
+     * the requested project.
+     * 
+ */ + public com.google.cloud.retail.v2alpha.LoggingConfig updateLoggingConfig( + com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateLoggingConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get the [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] of the
+     * requested project.
+     * 
+ */ + public com.google.cloud.retail.v2alpha.AlertConfig getAlertConfig( + com.google.cloud.retail.v2alpha.GetAlertConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAlertConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update the alert config of the requested project.
+     * 
+ */ + public com.google.cloud.retail.v2alpha.AlertConfig updateAlertConfig( + com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateAlertConfigMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service ProjectService. + * + *
+   * Service for settings at Project level.
+   * 
+ */ + public static final class ProjectServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private ProjectServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ProjectServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ProjectServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Gets the project.
+     * Throws `NOT_FOUND` if the project wasn't initialized for the Retail API
+     * service.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.retail.v2alpha.Project> + getProject(com.google.cloud.retail.v2alpha.GetProjectRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetProjectMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Accepts service terms for this project.
+     * By making requests to this API, you agree to the terms of service linked
+     * below.
+     * https://cloud.google.com/retail/data-use-terms
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.retail.v2alpha.Project> + acceptTerms(com.google.cloud.retail.v2alpha.AcceptTermsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getAcceptTermsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * The method enrolls a solution of type [Retail
+     * Search][google.cloud.retail.v2alpha.SolutionType.SOLUTION_TYPE_SEARCH]
+     * into a project.
+     * The [Recommendations AI solution
+     * type][google.cloud.retail.v2alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
+     * is enrolled by default when your project enables Retail API, so you don't
+     * need to call the enrollSolution method for recommendations.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + enrollSolution(com.google.cloud.retail.v2alpha.EnrollSolutionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getEnrollSolutionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists all the retail API solutions the project has enrolled.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse> + listEnrolledSolutions( + com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListEnrolledSolutionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets the [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] of the
+     * requested project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.retail.v2alpha.LoggingConfig> + getLoggingConfig(com.google.cloud.retail.v2alpha.GetLoggingConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetLoggingConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] of
+     * the requested project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.retail.v2alpha.LoggingConfig> + updateLoggingConfig(com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateLoggingConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Get the [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] of the
+     * requested project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.retail.v2alpha.AlertConfig> + getAlertConfig(com.google.cloud.retail.v2alpha.GetAlertConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAlertConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Update the alert config of the requested project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.retail.v2alpha.AlertConfig> + updateAlertConfig(com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateAlertConfigMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_PROJECT = 0; + private static final int METHODID_ACCEPT_TERMS = 1; + private static final int METHODID_ENROLL_SOLUTION = 2; + private static final int METHODID_LIST_ENROLLED_SOLUTIONS = 3; + private static final int METHODID_GET_LOGGING_CONFIG = 4; + private static final int METHODID_UPDATE_LOGGING_CONFIG = 5; + private static final int METHODID_GET_ALERT_CONFIG = 6; + private static final int METHODID_UPDATE_ALERT_CONFIG = 7; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_GET_PROJECT: + serviceImpl.getProject( + (com.google.cloud.retail.v2alpha.GetProjectRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_ACCEPT_TERMS: + serviceImpl.acceptTerms( + (com.google.cloud.retail.v2alpha.AcceptTermsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_ENROLL_SOLUTION: + serviceImpl.enrollSolution( + (com.google.cloud.retail.v2alpha.EnrollSolutionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_ENROLLED_SOLUTIONS: + serviceImpl.listEnrolledSolutions( + (com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse>) + responseObserver); + break; + case METHODID_GET_LOGGING_CONFIG: + serviceImpl.getLoggingConfig( + (com.google.cloud.retail.v2alpha.GetLoggingConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_LOGGING_CONFIG: + serviceImpl.updateLoggingConfig( + (com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_ALERT_CONFIG: + serviceImpl.getAlertConfig( + (com.google.cloud.retail.v2alpha.GetAlertConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_ALERT_CONFIG: + serviceImpl.updateAlertConfig( + (com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetProjectMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.retail.v2alpha.GetProjectRequest, + com.google.cloud.retail.v2alpha.Project>(service, METHODID_GET_PROJECT))) + .addMethod( + getAcceptTermsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.retail.v2alpha.AcceptTermsRequest, + com.google.cloud.retail.v2alpha.Project>(service, METHODID_ACCEPT_TERMS))) + .addMethod( + getEnrollSolutionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.retail.v2alpha.EnrollSolutionRequest, + com.google.longrunning.Operation>(service, METHODID_ENROLL_SOLUTION))) + .addMethod( + getListEnrolledSolutionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest, + com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse>( + service, METHODID_LIST_ENROLLED_SOLUTIONS))) + .addMethod( + getGetLoggingConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.retail.v2alpha.GetLoggingConfigRequest, + com.google.cloud.retail.v2alpha.LoggingConfig>( + service, METHODID_GET_LOGGING_CONFIG))) + .addMethod( + getUpdateLoggingConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest, + com.google.cloud.retail.v2alpha.LoggingConfig>( + service, METHODID_UPDATE_LOGGING_CONFIG))) + .addMethod( + getGetAlertConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.retail.v2alpha.GetAlertConfigRequest, + com.google.cloud.retail.v2alpha.AlertConfig>( + service, METHODID_GET_ALERT_CONFIG))) + .addMethod( + getUpdateAlertConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest, + com.google.cloud.retail.v2alpha.AlertConfig>( + service, METHODID_UPDATE_ALERT_CONFIG))) + .build(); + } + + private abstract static class ProjectServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ProjectServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("ProjectService"); + } + } + + private static final class ProjectServiceFileDescriptorSupplier + extends ProjectServiceBaseDescriptorSupplier { + ProjectServiceFileDescriptorSupplier() {} + } + + private static final class ProjectServiceMethodDescriptorSupplier + extends ProjectServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + ProjectServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (ProjectServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ProjectServiceFileDescriptorSupplier()) + .addMethod(getGetProjectMethod()) + .addMethod(getAcceptTermsMethod()) + .addMethod(getEnrollSolutionMethod()) + .addMethod(getListEnrolledSolutionsMethod()) + .addMethod(getGetLoggingConfigMethod()) + .addMethod(getUpdateLoggingConfigMethod()) + .addMethod(getGetAlertConfigMethod()) + .addMethod(getUpdateAlertConfigMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ProductServiceGrpc.java b/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ProductServiceGrpc.java index c828af1bea68..534cb46152d9 100644 --- a/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ProductServiceGrpc.java +++ b/java-retail/grpc-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ProductServiceGrpc.java @@ -261,6 +261,49 @@ private ProductServiceGrpc() {} return getDeleteProductMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.retail.v2beta.PurgeProductsRequest, com.google.longrunning.Operation> + getPurgeProductsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "PurgeProducts", + requestType = com.google.cloud.retail.v2beta.PurgeProductsRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.retail.v2beta.PurgeProductsRequest, com.google.longrunning.Operation> + getPurgeProductsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.retail.v2beta.PurgeProductsRequest, com.google.longrunning.Operation> + getPurgeProductsMethod; + if ((getPurgeProductsMethod = ProductServiceGrpc.getPurgeProductsMethod) == null) { + synchronized (ProductServiceGrpc.class) { + if ((getPurgeProductsMethod = ProductServiceGrpc.getPurgeProductsMethod) == null) { + ProductServiceGrpc.getPurgeProductsMethod = + getPurgeProductsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PurgeProducts")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.retail.v2beta.PurgeProductsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ProductServiceMethodDescriptorSupplier("PurgeProducts")) + .build(); + } + } + } + return getPurgeProductsMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.retail.v2beta.ImportProductsRequest, com.google.longrunning.Operation> getImportProductsMethod; @@ -663,6 +706,34 @@ default void deleteProduct( getDeleteProductMethod(), responseObserver); } + /** + * + * + *
+     * Permanently deletes all selected
+     * [Product][google.cloud.retail.v2beta.Product]s under a branch.
+     * This process is asynchronous. If the request is valid, the removal will be
+     * enqueued and processed offline. Depending on the number of
+     * [Product][google.cloud.retail.v2beta.Product]s, this operation could take
+     * hours to complete. Before the operation completes, some
+     * [Product][google.cloud.retail.v2beta.Product]s may still be returned by
+     * [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct]
+     * or
+     * [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts].
+     * Depending on the number of [Product][google.cloud.retail.v2beta.Product]s,
+     * this operation could take hours to complete. To get a sample of
+     * [Product][google.cloud.retail.v2beta.Product]s that would be deleted, set
+     * [PurgeProductsRequest.force][google.cloud.retail.v2beta.PurgeProductsRequest.force]
+     * to false.
+     * 
+ */ + default void purgeProducts( + com.google.cloud.retail.v2beta.PurgeProductsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getPurgeProductsMethod(), responseObserver); + } + /** * * @@ -740,10 +811,11 @@ default void setInventory( * * *
-     * It is recommended to use the
+     * We recommend that you use the
      * [ProductService.AddLocalInventories][google.cloud.retail.v2beta.ProductService.AddLocalInventories]
-     * method instead of
-     * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.AddFulfillmentPlaces].
+     * method instead of the
+     * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.AddFulfillmentPlaces]
+     * method.
      * [ProductService.AddLocalInventories][google.cloud.retail.v2beta.ProductService.AddLocalInventories]
      * achieves the same results but provides more fine-grained control over
      * ingesting local inventory data.
@@ -778,10 +850,11 @@ default void addFulfillmentPlaces(
      *
      *
      * 
-     * It is recommended to use the
+     * We recommend that you use the
      * [ProductService.RemoveLocalInventories][google.cloud.retail.v2beta.ProductService.RemoveLocalInventories]
-     * method instead of
-     * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.RemoveFulfillmentPlaces].
+     * method instead of the
+     * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.RemoveFulfillmentPlaces]
+     * method.
      * [ProductService.RemoveLocalInventories][google.cloud.retail.v2beta.ProductService.RemoveLocalInventories]
      * achieves the same results but provides more fine-grained control over
      * ingesting local inventory data.
@@ -1000,6 +1073,36 @@ public void deleteProduct(
           responseObserver);
     }
 
+    /**
+     *
+     *
+     * 
+     * Permanently deletes all selected
+     * [Product][google.cloud.retail.v2beta.Product]s under a branch.
+     * This process is asynchronous. If the request is valid, the removal will be
+     * enqueued and processed offline. Depending on the number of
+     * [Product][google.cloud.retail.v2beta.Product]s, this operation could take
+     * hours to complete. Before the operation completes, some
+     * [Product][google.cloud.retail.v2beta.Product]s may still be returned by
+     * [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct]
+     * or
+     * [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts].
+     * Depending on the number of [Product][google.cloud.retail.v2beta.Product]s,
+     * this operation could take hours to complete. To get a sample of
+     * [Product][google.cloud.retail.v2beta.Product]s that would be deleted, set
+     * [PurgeProductsRequest.force][google.cloud.retail.v2beta.PurgeProductsRequest.force]
+     * to false.
+     * 
+ */ + public void purgeProducts( + com.google.cloud.retail.v2beta.PurgeProductsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getPurgeProductsMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -1081,10 +1184,11 @@ public void setInventory( * * *
-     * It is recommended to use the
+     * We recommend that you use the
      * [ProductService.AddLocalInventories][google.cloud.retail.v2beta.ProductService.AddLocalInventories]
-     * method instead of
-     * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.AddFulfillmentPlaces].
+     * method instead of the
+     * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.AddFulfillmentPlaces]
+     * method.
      * [ProductService.AddLocalInventories][google.cloud.retail.v2beta.ProductService.AddLocalInventories]
      * achieves the same results but provides more fine-grained control over
      * ingesting local inventory data.
@@ -1121,10 +1225,11 @@ public void addFulfillmentPlaces(
      *
      *
      * 
-     * It is recommended to use the
+     * We recommend that you use the
      * [ProductService.RemoveLocalInventories][google.cloud.retail.v2beta.ProductService.RemoveLocalInventories]
-     * method instead of
-     * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.RemoveFulfillmentPlaces].
+     * method instead of the
+     * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.RemoveFulfillmentPlaces]
+     * method.
      * [ProductService.RemoveLocalInventories][google.cloud.retail.v2beta.ProductService.RemoveLocalInventories]
      * achieves the same results but provides more fine-grained control over
      * ingesting local inventory data.
@@ -1319,6 +1424,33 @@ public com.google.protobuf.Empty deleteProduct(
           getChannel(), getDeleteProductMethod(), getCallOptions(), request);
     }
 
+    /**
+     *
+     *
+     * 
+     * Permanently deletes all selected
+     * [Product][google.cloud.retail.v2beta.Product]s under a branch.
+     * This process is asynchronous. If the request is valid, the removal will be
+     * enqueued and processed offline. Depending on the number of
+     * [Product][google.cloud.retail.v2beta.Product]s, this operation could take
+     * hours to complete. Before the operation completes, some
+     * [Product][google.cloud.retail.v2beta.Product]s may still be returned by
+     * [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct]
+     * or
+     * [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts].
+     * Depending on the number of [Product][google.cloud.retail.v2beta.Product]s,
+     * this operation could take hours to complete. To get a sample of
+     * [Product][google.cloud.retail.v2beta.Product]s that would be deleted, set
+     * [PurgeProductsRequest.force][google.cloud.retail.v2beta.PurgeProductsRequest.force]
+     * to false.
+     * 
+ */ + public com.google.longrunning.Operation purgeProducts( + com.google.cloud.retail.v2beta.PurgeProductsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getPurgeProductsMethod(), getCallOptions(), request); + } + /** * * @@ -1394,10 +1526,11 @@ public com.google.longrunning.Operation setInventory( * * *
-     * It is recommended to use the
+     * We recommend that you use the
      * [ProductService.AddLocalInventories][google.cloud.retail.v2beta.ProductService.AddLocalInventories]
-     * method instead of
-     * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.AddFulfillmentPlaces].
+     * method instead of the
+     * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.AddFulfillmentPlaces]
+     * method.
      * [ProductService.AddLocalInventories][google.cloud.retail.v2beta.ProductService.AddLocalInventories]
      * achieves the same results but provides more fine-grained control over
      * ingesting local inventory data.
@@ -1431,10 +1564,11 @@ public com.google.longrunning.Operation addFulfillmentPlaces(
      *
      *
      * 
-     * It is recommended to use the
+     * We recommend that you use the
      * [ProductService.RemoveLocalInventories][google.cloud.retail.v2beta.ProductService.RemoveLocalInventories]
-     * method instead of
-     * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.RemoveFulfillmentPlaces].
+     * method instead of the
+     * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.RemoveFulfillmentPlaces]
+     * method.
      * [ProductService.RemoveLocalInventories][google.cloud.retail.v2beta.ProductService.RemoveLocalInventories]
      * achieves the same results but provides more fine-grained control over
      * ingesting local inventory data.
@@ -1624,6 +1758,33 @@ protected ProductServiceFutureStub build(
           getChannel().newCall(getDeleteProductMethod(), getCallOptions()), request);
     }
 
+    /**
+     *
+     *
+     * 
+     * Permanently deletes all selected
+     * [Product][google.cloud.retail.v2beta.Product]s under a branch.
+     * This process is asynchronous. If the request is valid, the removal will be
+     * enqueued and processed offline. Depending on the number of
+     * [Product][google.cloud.retail.v2beta.Product]s, this operation could take
+     * hours to complete. Before the operation completes, some
+     * [Product][google.cloud.retail.v2beta.Product]s may still be returned by
+     * [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct]
+     * or
+     * [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts].
+     * Depending on the number of [Product][google.cloud.retail.v2beta.Product]s,
+     * this operation could take hours to complete. To get a sample of
+     * [Product][google.cloud.retail.v2beta.Product]s that would be deleted, set
+     * [PurgeProductsRequest.force][google.cloud.retail.v2beta.PurgeProductsRequest.force]
+     * to false.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + purgeProducts(com.google.cloud.retail.v2beta.PurgeProductsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getPurgeProductsMethod(), getCallOptions()), request); + } + /** * * @@ -1699,10 +1860,11 @@ protected ProductServiceFutureStub build( * * *
-     * It is recommended to use the
+     * We recommend that you use the
      * [ProductService.AddLocalInventories][google.cloud.retail.v2beta.ProductService.AddLocalInventories]
-     * method instead of
-     * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.AddFulfillmentPlaces].
+     * method instead of the
+     * [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.AddFulfillmentPlaces]
+     * method.
      * [ProductService.AddLocalInventories][google.cloud.retail.v2beta.ProductService.AddLocalInventories]
      * achieves the same results but provides more fine-grained control over
      * ingesting local inventory data.
@@ -1736,10 +1898,11 @@ protected ProductServiceFutureStub build(
      *
      *
      * 
-     * It is recommended to use the
+     * We recommend that you use the
      * [ProductService.RemoveLocalInventories][google.cloud.retail.v2beta.ProductService.RemoveLocalInventories]
-     * method instead of
-     * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.RemoveFulfillmentPlaces].
+     * method instead of the
+     * [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.RemoveFulfillmentPlaces]
+     * method.
      * [ProductService.RemoveLocalInventories][google.cloud.retail.v2beta.ProductService.RemoveLocalInventories]
      * achieves the same results but provides more fine-grained control over
      * ingesting local inventory data.
@@ -1847,12 +2010,13 @@ protected ProductServiceFutureStub build(
   private static final int METHODID_LIST_PRODUCTS = 2;
   private static final int METHODID_UPDATE_PRODUCT = 3;
   private static final int METHODID_DELETE_PRODUCT = 4;
-  private static final int METHODID_IMPORT_PRODUCTS = 5;
-  private static final int METHODID_SET_INVENTORY = 6;
-  private static final int METHODID_ADD_FULFILLMENT_PLACES = 7;
-  private static final int METHODID_REMOVE_FULFILLMENT_PLACES = 8;
-  private static final int METHODID_ADD_LOCAL_INVENTORIES = 9;
-  private static final int METHODID_REMOVE_LOCAL_INVENTORIES = 10;
+  private static final int METHODID_PURGE_PRODUCTS = 5;
+  private static final int METHODID_IMPORT_PRODUCTS = 6;
+  private static final int METHODID_SET_INVENTORY = 7;
+  private static final int METHODID_ADD_FULFILLMENT_PLACES = 8;
+  private static final int METHODID_REMOVE_FULFILLMENT_PLACES = 9;
+  private static final int METHODID_ADD_LOCAL_INVENTORIES = 10;
+  private static final int METHODID_REMOVE_LOCAL_INVENTORIES = 11;
 
   private static final class MethodHandlers
       implements io.grpc.stub.ServerCalls.UnaryMethod,
@@ -1900,6 +2064,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv
               (com.google.cloud.retail.v2beta.DeleteProductRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
+        case METHODID_PURGE_PRODUCTS:
+          serviceImpl.purgeProducts(
+              (com.google.cloud.retail.v2beta.PurgeProductsRequest) request,
+              (io.grpc.stub.StreamObserver) responseObserver);
+          break;
         case METHODID_IMPORT_PRODUCTS:
           serviceImpl.importProducts(
               (com.google.cloud.retail.v2beta.ImportProductsRequest) request,
@@ -1979,6 +2148,12 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser
                 new MethodHandlers<
                     com.google.cloud.retail.v2beta.DeleteProductRequest, com.google.protobuf.Empty>(
                     service, METHODID_DELETE_PRODUCT)))
+        .addMethod(
+            getPurgeProductsMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers<
+                    com.google.cloud.retail.v2beta.PurgeProductsRequest,
+                    com.google.longrunning.Operation>(service, METHODID_PURGE_PRODUCTS)))
         .addMethod(
             getImportProductsMethod(),
             io.grpc.stub.ServerCalls.asyncUnaryCall(
@@ -2071,6 +2246,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
                       .addMethod(getListProductsMethod())
                       .addMethod(getUpdateProductMethod())
                       .addMethod(getDeleteProductMethod())
+                      .addMethod(getPurgeProductsMethod())
                       .addMethod(getImportProductsMethod())
                       .addMethod(getSetInventoryMethod())
                       .addMethod(getAddFulfillmentPlacesMethod())
diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CatalogAttribute.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CatalogAttribute.java
index 291448cdc00f..854cf8b9c0a3 100644
--- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CatalogAttribute.java
+++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CatalogAttribute.java
@@ -1031,6 +1031,7808 @@ private RetrievableOption(int value) {
     // @@protoc_insertion_point(enum_scope:google.cloud.retail.v2.CatalogAttribute.RetrievableOption)
   }
 
+  public interface FacetConfigOrBuilder
+      extends
+      // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2.CatalogAttribute.FacetConfig)
+      com.google.protobuf.MessageOrBuilder {
+
+    /**
+     *
+     *
+     * 
+     * If you don't set the facet
+     * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2.SearchRequest.FacetSpec.FacetKey.intervals]
+     * in the request to a numerical attribute, then we use the computed
+     * intervals with rounded bounds obtained from all its product numerical
+     * attribute values. The computed intervals might not be ideal for some
+     * attributes. Therefore, we give you the option to overwrite them with the
+     * facet_intervals field. The maximum of facet intervals per
+     * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 40. Each
+     * interval must have a lower bound or an upper bound. If both bounds are
+     * provided, then the lower bound must be smaller or equal than the upper
+     * bound.
+     * 
+ * + * repeated .google.cloud.retail.v2.Interval facet_intervals = 1; + */ + java.util.List getFacetIntervalsList(); + /** + * + * + *
+     * If you don't set the facet
+     * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2.SearchRequest.FacetSpec.FacetKey.intervals]
+     * in the request to a numerical attribute, then we use the computed
+     * intervals with rounded bounds obtained from all its product numerical
+     * attribute values. The computed intervals might not be ideal for some
+     * attributes. Therefore, we give you the option to overwrite them with the
+     * facet_intervals field. The maximum of facet intervals per
+     * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 40. Each
+     * interval must have a lower bound or an upper bound. If both bounds are
+     * provided, then the lower bound must be smaller or equal than the upper
+     * bound.
+     * 
+ * + * repeated .google.cloud.retail.v2.Interval facet_intervals = 1; + */ + com.google.cloud.retail.v2.Interval getFacetIntervals(int index); + /** + * + * + *
+     * If you don't set the facet
+     * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2.SearchRequest.FacetSpec.FacetKey.intervals]
+     * in the request to a numerical attribute, then we use the computed
+     * intervals with rounded bounds obtained from all its product numerical
+     * attribute values. The computed intervals might not be ideal for some
+     * attributes. Therefore, we give you the option to overwrite them with the
+     * facet_intervals field. The maximum of facet intervals per
+     * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 40. Each
+     * interval must have a lower bound or an upper bound. If both bounds are
+     * provided, then the lower bound must be smaller or equal than the upper
+     * bound.
+     * 
+ * + * repeated .google.cloud.retail.v2.Interval facet_intervals = 1; + */ + int getFacetIntervalsCount(); + /** + * + * + *
+     * If you don't set the facet
+     * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2.SearchRequest.FacetSpec.FacetKey.intervals]
+     * in the request to a numerical attribute, then we use the computed
+     * intervals with rounded bounds obtained from all its product numerical
+     * attribute values. The computed intervals might not be ideal for some
+     * attributes. Therefore, we give you the option to overwrite them with the
+     * facet_intervals field. The maximum of facet intervals per
+     * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 40. Each
+     * interval must have a lower bound or an upper bound. If both bounds are
+     * provided, then the lower bound must be smaller or equal than the upper
+     * bound.
+     * 
+ * + * repeated .google.cloud.retail.v2.Interval facet_intervals = 1; + */ + java.util.List + getFacetIntervalsOrBuilderList(); + /** + * + * + *
+     * If you don't set the facet
+     * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2.SearchRequest.FacetSpec.FacetKey.intervals]
+     * in the request to a numerical attribute, then we use the computed
+     * intervals with rounded bounds obtained from all its product numerical
+     * attribute values. The computed intervals might not be ideal for some
+     * attributes. Therefore, we give you the option to overwrite them with the
+     * facet_intervals field. The maximum of facet intervals per
+     * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 40. Each
+     * interval must have a lower bound or an upper bound. If both bounds are
+     * provided, then the lower bound must be smaller or equal than the upper
+     * bound.
+     * 
+ * + * repeated .google.cloud.retail.v2.Interval facet_intervals = 1; + */ + com.google.cloud.retail.v2.IntervalOrBuilder getFacetIntervalsOrBuilder(int index); + + /** + * + * + *
+     * Each instance represents a list of attribute values to ignore as facet
+     * values for a specific time range. The maximum number of instances per
+     * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 25.
+     * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + java.util.List + getIgnoredFacetValuesList(); + /** + * + * + *
+     * Each instance represents a list of attribute values to ignore as facet
+     * values for a specific time range. The maximum number of instances per
+     * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 25.
+     * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues + getIgnoredFacetValues(int index); + /** + * + * + *
+     * Each instance represents a list of attribute values to ignore as facet
+     * values for a specific time range. The maximum number of instances per
+     * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 25.
+     * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + int getIgnoredFacetValuesCount(); + /** + * + * + *
+     * Each instance represents a list of attribute values to ignore as facet
+     * values for a specific time range. The maximum number of instances per
+     * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 25.
+     * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + java.util.List< + ? extends + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValuesOrBuilder> + getIgnoredFacetValuesOrBuilderList(); + /** + * + * + *
+     * Each instance represents a list of attribute values to ignore as facet
+     * values for a specific time range. The maximum number of instances per
+     * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 25.
+     * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValuesOrBuilder + getIgnoredFacetValuesOrBuilder(int index); + + /** + * + * + *
+     * Each instance replaces a list of facet values by a merged facet
+     * value. If a facet value is not in any list, then it will stay the same.
+     * To avoid conflicts, only paths of length 1 are accepted. In other words,
+     * if "dark_blue" merged into "BLUE", then the latter can't merge into
+     * "blues" because this would create a path of length 2. The maximum number
+     * of instances of MergedFacetValue per
+     * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 100. This
+     * feature is available only for textual custom attributes.
+     * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + java.util.List + getMergedFacetValuesList(); + /** + * + * + *
+     * Each instance replaces a list of facet values by a merged facet
+     * value. If a facet value is not in any list, then it will stay the same.
+     * To avoid conflicts, only paths of length 1 are accepted. In other words,
+     * if "dark_blue" merged into "BLUE", then the latter can't merge into
+     * "blues" because this would create a path of length 2. The maximum number
+     * of instances of MergedFacetValue per
+     * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 100. This
+     * feature is available only for textual custom attributes.
+     * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue getMergedFacetValues( + int index); + /** + * + * + *
+     * Each instance replaces a list of facet values by a merged facet
+     * value. If a facet value is not in any list, then it will stay the same.
+     * To avoid conflicts, only paths of length 1 are accepted. In other words,
+     * if "dark_blue" merged into "BLUE", then the latter can't merge into
+     * "blues" because this would create a path of length 2. The maximum number
+     * of instances of MergedFacetValue per
+     * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 100. This
+     * feature is available only for textual custom attributes.
+     * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + int getMergedFacetValuesCount(); + /** + * + * + *
+     * Each instance replaces a list of facet values by a merged facet
+     * value. If a facet value is not in any list, then it will stay the same.
+     * To avoid conflicts, only paths of length 1 are accepted. In other words,
+     * if "dark_blue" merged into "BLUE", then the latter can't merge into
+     * "blues" because this would create a path of length 2. The maximum number
+     * of instances of MergedFacetValue per
+     * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 100. This
+     * feature is available only for textual custom attributes.
+     * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + java.util.List< + ? extends + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValueOrBuilder> + getMergedFacetValuesOrBuilderList(); + /** + * + * + *
+     * Each instance replaces a list of facet values by a merged facet
+     * value. If a facet value is not in any list, then it will stay the same.
+     * To avoid conflicts, only paths of length 1 are accepted. In other words,
+     * if "dark_blue" merged into "BLUE", then the latter can't merge into
+     * "blues" because this would create a path of length 2. The maximum number
+     * of instances of MergedFacetValue per
+     * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 100. This
+     * feature is available only for textual custom attributes.
+     * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValueOrBuilder + getMergedFacetValuesOrBuilder(int index); + + /** + * + * + *
+     * Use this field only if you want to merge a facet key into another facet
+     * key.
+     * 
+ * + * .google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet merged_facet = 4; + * + * + * @return Whether the mergedFacet field is set. + */ + boolean hasMergedFacet(); + /** + * + * + *
+     * Use this field only if you want to merge a facet key into another facet
+     * key.
+     * 
+ * + * .google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet merged_facet = 4; + * + * + * @return The mergedFacet. + */ + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet getMergedFacet(); + /** + * + * + *
+     * Use this field only if you want to merge a facet key into another facet
+     * key.
+     * 
+ * + * .google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet merged_facet = 4; + * + */ + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetOrBuilder + getMergedFacetOrBuilder(); + + /** + * + * + *
+     * Set this field only if you want to rerank based on facet values engaged
+     * by the user for the current key. This option is only possible for custom
+     * facetable textual keys.
+     * 
+ * + * .google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig rerank_config = 5; + * + * + * @return Whether the rerankConfig field is set. + */ + boolean hasRerankConfig(); + /** + * + * + *
+     * Set this field only if you want to rerank based on facet values engaged
+     * by the user for the current key. This option is only possible for custom
+     * facetable textual keys.
+     * 
+ * + * .google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig rerank_config = 5; + * + * + * @return The rerankConfig. + */ + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig getRerankConfig(); + /** + * + * + *
+     * Set this field only if you want to rerank based on facet values engaged
+     * by the user for the current key. This option is only possible for custom
+     * facetable textual keys.
+     * 
+ * + * .google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig rerank_config = 5; + * + */ + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfigOrBuilder + getRerankConfigOrBuilder(); + } + /** + * + * + *
+   * Possible options for the facet that corresponds to the current attribute
+   * config.
+   * 
+ * + * Protobuf type {@code google.cloud.retail.v2.CatalogAttribute.FacetConfig} + */ + public static final class FacetConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2.CatalogAttribute.FacetConfig) + FacetConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use FacetConfig.newBuilder() to construct. + private FacetConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FacetConfig() { + facetIntervals_ = java.util.Collections.emptyList(); + ignoredFacetValues_ = java.util.Collections.emptyList(); + mergedFacetValues_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FacetConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2.CatalogProto + .internal_static_google_cloud_retail_v2_CatalogAttribute_FacetConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2.CatalogProto + .internal_static_google_cloud_retail_v2_CatalogAttribute_FacetConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.class, + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.Builder.class); + } + + public interface IgnoredFacetValuesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * List of facet values to ignore for the following time range. The facet
+       * values are the same as the attribute values. There is a limit of 10
+       * values per instance of IgnoredFacetValues. Each value can have at most
+       * 128 characters.
+       * 
+ * + * repeated string values = 1; + * + * @return A list containing the values. + */ + java.util.List getValuesList(); + /** + * + * + *
+       * List of facet values to ignore for the following time range. The facet
+       * values are the same as the attribute values. There is a limit of 10
+       * values per instance of IgnoredFacetValues. Each value can have at most
+       * 128 characters.
+       * 
+ * + * repeated string values = 1; + * + * @return The count of values. + */ + int getValuesCount(); + /** + * + * + *
+       * List of facet values to ignore for the following time range. The facet
+       * values are the same as the attribute values. There is a limit of 10
+       * values per instance of IgnoredFacetValues. Each value can have at most
+       * 128 characters.
+       * 
+ * + * repeated string values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + java.lang.String getValues(int index); + /** + * + * + *
+       * List of facet values to ignore for the following time range. The facet
+       * values are the same as the attribute values. There is a limit of 10
+       * values per instance of IgnoredFacetValues. Each value can have at most
+       * 128 characters.
+       * 
+ * + * repeated string values = 1; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + com.google.protobuf.ByteString getValuesBytes(int index); + + /** + * + * + *
+       * Time range for the current list of facet values to ignore.
+       * If multiple time ranges are specified for an facet value for the
+       * current attribute, consider all of them. If both are empty, ignore
+       * always. If start time and end time are set, then start time
+       * must be before end time.
+       * If start time is not empty and end time is empty, then will ignore
+       * these facet values after the start time.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 2; + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + * + * + *
+       * Time range for the current list of facet values to ignore.
+       * If multiple time ranges are specified for an facet value for the
+       * current attribute, consider all of them. If both are empty, ignore
+       * always. If start time and end time are set, then start time
+       * must be before end time.
+       * If start time is not empty and end time is empty, then will ignore
+       * these facet values after the start time.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 2; + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + /** + * + * + *
+       * Time range for the current list of facet values to ignore.
+       * If multiple time ranges are specified for an facet value for the
+       * current attribute, consider all of them. If both are empty, ignore
+       * always. If start time and end time are set, then start time
+       * must be before end time.
+       * If start time is not empty and end time is empty, then will ignore
+       * these facet values after the start time.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
+       * If start time is empty and end time is not empty, then ignore these
+       * facet values before end time.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 3; + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + /** + * + * + *
+       * If start time is empty and end time is not empty, then ignore these
+       * facet values before end time.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 3; + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + /** + * + * + *
+       * If start time is empty and end time is not empty, then ignore these
+       * facet values before end time.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 3; + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + } + /** + * + * + *
+     * [Facet values][google.cloud.retail.v2.SearchResponse.Facet.values] to
+     * ignore on [facets][google.cloud.retail.v2.SearchResponse.Facet] during
+     * the specified time range for the given
+     * [SearchResponse.Facet.key][google.cloud.retail.v2.SearchResponse.Facet.key]
+     * attribute.
+     * 
+ * + * Protobuf type {@code google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues} + */ + public static final class IgnoredFacetValues extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues) + IgnoredFacetValuesOrBuilder { + private static final long serialVersionUID = 0L; + // Use IgnoredFacetValues.newBuilder() to construct. + private IgnoredFacetValues(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IgnoredFacetValues() { + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IgnoredFacetValues(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2.CatalogProto + .internal_static_google_cloud_retail_v2_CatalogAttribute_FacetConfig_IgnoredFacetValues_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2.CatalogProto + .internal_static_google_cloud_retail_v2_CatalogAttribute_FacetConfig_IgnoredFacetValues_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues.class, + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues.Builder + .class); + } + + private int bitField0_; + public static final int VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+       * List of facet values to ignore for the following time range. The facet
+       * values are the same as the attribute values. There is a limit of 10
+       * values per instance of IgnoredFacetValues. Each value can have at most
+       * 128 characters.
+       * 
+ * + * repeated string values = 1; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + return values_; + } + /** + * + * + *
+       * List of facet values to ignore for the following time range. The facet
+       * values are the same as the attribute values. There is a limit of 10
+       * values per instance of IgnoredFacetValues. Each value can have at most
+       * 128 characters.
+       * 
+ * + * repeated string values = 1; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * + * + *
+       * List of facet values to ignore for the following time range. The facet
+       * values are the same as the attribute values. There is a limit of 10
+       * values per instance of IgnoredFacetValues. Each value can have at most
+       * 128 characters.
+       * 
+ * + * repeated string values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * + * + *
+       * List of facet values to ignore for the following time range. The facet
+       * values are the same as the attribute values. There is a limit of 10
+       * values per instance of IgnoredFacetValues. Each value can have at most
+       * 128 characters.
+       * 
+ * + * repeated string values = 1; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.getByteString(index); + } + + public static final int START_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp startTime_; + /** + * + * + *
+       * Time range for the current list of facet values to ignore.
+       * If multiple time ranges are specified for an facet value for the
+       * current attribute, consider all of them. If both are empty, ignore
+       * always. If start time and end time are set, then start time
+       * must be before end time.
+       * If start time is not empty and end time is empty, then will ignore
+       * these facet values after the start time.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 2; + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+       * Time range for the current list of facet values to ignore.
+       * If multiple time ranges are specified for an facet value for the
+       * current attribute, consider all of them. If both are empty, ignore
+       * always. If start time and end time are set, then start time
+       * must be before end time.
+       * If start time is not empty and end time is empty, then will ignore
+       * these facet values after the start time.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 2; + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + * + * + *
+       * Time range for the current list of facet values to ignore.
+       * If multiple time ranges are specified for an facet value for the
+       * current attribute, consider all of them. If both are empty, ignore
+       * always. If start time and end time are set, then start time
+       * must be before end time.
+       * If start time is not empty and end time is empty, then will ignore
+       * these facet values after the start time.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + public static final int END_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp endTime_; + /** + * + * + *
+       * If start time is empty and end time is not empty, then ignore these
+       * facet values before end time.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 3; + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+       * If start time is empty and end time is not empty, then ignore these
+       * facet values before end time.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 3; + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + * + * + *
+       * If start time is empty and end time is not empty, then ignore these
+       * facet values before end time.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 3; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < values_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getEndTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < values_.size(); i++) { + dataSize += computeStringSizeNoTag(values_.getRaw(i)); + } + size += dataSize; + size += 1 * getValuesList().size(); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues)) { + return super.equals(obj); + } + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues other = + (com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues) obj; + + if (!getValuesList().equals(other.getValuesList())) return false; + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+       * [Facet values][google.cloud.retail.v2.SearchResponse.Facet.values] to
+       * ignore on [facets][google.cloud.retail.v2.SearchResponse.Facet] during
+       * the specified time range for the given
+       * [SearchResponse.Facet.key][google.cloud.retail.v2.SearchResponse.Facet.key]
+       * attribute.
+       * 
+ * + * Protobuf type {@code + * google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues) + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValuesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2.CatalogProto + .internal_static_google_cloud_retail_v2_CatalogAttribute_FacetConfig_IgnoredFacetValues_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2.CatalogProto + .internal_static_google_cloud_retail_v2_CatalogAttribute_FacetConfig_IgnoredFacetValues_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues.class, + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues.Builder + .class); + } + + // Construct using + // com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getStartTimeFieldBuilder(); + getEndTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2.CatalogProto + .internal_static_google_cloud_retail_v2_CatalogAttribute_FacetConfig_IgnoredFacetValues_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues + getDefaultInstanceForType() { + return com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues build() { + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues + buildPartial() { + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues result = + new com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + values_.makeImmutable(); + result.values_ = values_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues) { + return mergeFrom( + (com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues other) { + if (other + == com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues + .getDefaultInstance()) return this; + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ |= 0x00000001; + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + onChanged(); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureValuesIsMutable(); + values_.add(s); + break; + } // case 10 + case 18: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureValuesIsMutable() { + if (!values_.isModifiable()) { + values_ = new com.google.protobuf.LazyStringArrayList(values_); + } + bitField0_ |= 0x00000001; + } + /** + * + * + *
+         * List of facet values to ignore for the following time range. The facet
+         * values are the same as the attribute values. There is a limit of 10
+         * values per instance of IgnoredFacetValues. Each value can have at most
+         * 128 characters.
+         * 
+ * + * repeated string values = 1; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + values_.makeImmutable(); + return values_; + } + /** + * + * + *
+         * List of facet values to ignore for the following time range. The facet
+         * values are the same as the attribute values. There is a limit of 10
+         * values per instance of IgnoredFacetValues. Each value can have at most
+         * 128 characters.
+         * 
+ * + * repeated string values = 1; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * + * + *
+         * List of facet values to ignore for the following time range. The facet
+         * values are the same as the attribute values. There is a limit of 10
+         * values per instance of IgnoredFacetValues. Each value can have at most
+         * 128 characters.
+         * 
+ * + * repeated string values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * + * + *
+         * List of facet values to ignore for the following time range. The facet
+         * values are the same as the attribute values. There is a limit of 10
+         * values per instance of IgnoredFacetValues. Each value can have at most
+         * 128 characters.
+         * 
+ * + * repeated string values = 1; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.getByteString(index); + } + /** + * + * + *
+         * List of facet values to ignore for the following time range. The facet
+         * values are the same as the attribute values. There is a limit of 10
+         * values per instance of IgnoredFacetValues. Each value can have at most
+         * 128 characters.
+         * 
+ * + * repeated string values = 1; + * + * @param index The index to set the value at. + * @param value The values to set. + * @return This builder for chaining. + */ + public Builder setValues(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * List of facet values to ignore for the following time range. The facet
+         * values are the same as the attribute values. There is a limit of 10
+         * values per instance of IgnoredFacetValues. Each value can have at most
+         * 128 characters.
+         * 
+ * + * repeated string values = 1; + * + * @param value The values to add. + * @return This builder for chaining. + */ + public Builder addValues(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * List of facet values to ignore for the following time range. The facet
+         * values are the same as the attribute values. There is a limit of 10
+         * values per instance of IgnoredFacetValues. Each value can have at most
+         * 128 characters.
+         * 
+ * + * repeated string values = 1; + * + * @param values The values to add. + * @return This builder for chaining. + */ + public Builder addAllValues(java.lang.Iterable values) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * List of facet values to ignore for the following time range. The facet
+         * values are the same as the attribute values. There is a limit of 10
+         * values per instance of IgnoredFacetValues. Each value can have at most
+         * 128 characters.
+         * 
+ * + * repeated string values = 1; + * + * @return This builder for chaining. + */ + public Builder clearValues() { + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + /** + * + * + *
+         * List of facet values to ignore for the following time range. The facet
+         * values are the same as the attribute values. There is a limit of 10
+         * values per instance of IgnoredFacetValues. Each value can have at most
+         * 128 characters.
+         * 
+ * + * repeated string values = 1; + * + * @param value The bytes of the values to add. + * @return This builder for chaining. + */ + public Builder addValuesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValuesIsMutable(); + values_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + /** + * + * + *
+         * Time range for the current list of facet values to ignore.
+         * If multiple time ranges are specified for an facet value for the
+         * current attribute, consider all of them. If both are empty, ignore
+         * always. If start time and end time are set, then start time
+         * must be before end time.
+         * If start time is not empty and end time is empty, then will ignore
+         * these facet values after the start time.
+         * 
+ * + * .google.protobuf.Timestamp start_time = 2; + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+         * Time range for the current list of facet values to ignore.
+         * If multiple time ranges are specified for an facet value for the
+         * current attribute, consider all of them. If both are empty, ignore
+         * always. If start time and end time are set, then start time
+         * must be before end time.
+         * If start time is not empty and end time is empty, then will ignore
+         * these facet values after the start time.
+         * 
+ * + * .google.protobuf.Timestamp start_time = 2; + * + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+         * Time range for the current list of facet values to ignore.
+         * If multiple time ranges are specified for an facet value for the
+         * current attribute, consider all of them. If both are empty, ignore
+         * always. If start time and end time are set, then start time
+         * must be before end time.
+         * If start time is not empty and end time is empty, then will ignore
+         * these facet values after the start time.
+         * 
+ * + * .google.protobuf.Timestamp start_time = 2; + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+         * Time range for the current list of facet values to ignore.
+         * If multiple time ranges are specified for an facet value for the
+         * current attribute, consider all of them. If both are empty, ignore
+         * always. If start time and end time are set, then start time
+         * must be before end time.
+         * If start time is not empty and end time is empty, then will ignore
+         * these facet values after the start time.
+         * 
+ * + * .google.protobuf.Timestamp start_time = 2; + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+         * Time range for the current list of facet values to ignore.
+         * If multiple time ranges are specified for an facet value for the
+         * current attribute, consider all of them. If both are empty, ignore
+         * always. If start time and end time are set, then start time
+         * must be before end time.
+         * If start time is not empty and end time is empty, then will ignore
+         * these facet values after the start time.
+         * 
+ * + * .google.protobuf.Timestamp start_time = 2; + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+         * Time range for the current list of facet values to ignore.
+         * If multiple time ranges are specified for an facet value for the
+         * current attribute, consider all of them. If both are empty, ignore
+         * always. If start time and end time are set, then start time
+         * must be before end time.
+         * If start time is not empty and end time is empty, then will ignore
+         * these facet values after the start time.
+         * 
+ * + * .google.protobuf.Timestamp start_time = 2; + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000002); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+         * Time range for the current list of facet values to ignore.
+         * If multiple time ranges are specified for an facet value for the
+         * current attribute, consider all of them. If both are empty, ignore
+         * always. If start time and end time are set, then start time
+         * must be before end time.
+         * If start time is not empty and end time is empty, then will ignore
+         * these facet values after the start time.
+         * 
+ * + * .google.protobuf.Timestamp start_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+         * Time range for the current list of facet values to ignore.
+         * If multiple time ranges are specified for an facet value for the
+         * current attribute, consider all of them. If both are empty, ignore
+         * always. If start time and end time are set, then start time
+         * must be before end time.
+         * If start time is not empty and end time is empty, then will ignore
+         * these facet values after the start time.
+         * 
+ * + * .google.protobuf.Timestamp start_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : startTime_; + } + } + /** + * + * + *
+         * Time range for the current list of facet values to ignore.
+         * If multiple time ranges are specified for an facet value for the
+         * current attribute, consider all of them. If both are empty, ignore
+         * always. If start time and end time are set, then start time
+         * must be before end time.
+         * If start time is not empty and end time is empty, then will ignore
+         * these facet values after the start time.
+         * 
+ * + * .google.protobuf.Timestamp start_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + /** + * + * + *
+         * If start time is empty and end time is not empty, then ignore these
+         * facet values before end time.
+         * 
+ * + * .google.protobuf.Timestamp end_time = 3; + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+         * If start time is empty and end time is not empty, then ignore these
+         * facet values before end time.
+         * 
+ * + * .google.protobuf.Timestamp end_time = 3; + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+         * If start time is empty and end time is not empty, then ignore these
+         * facet values before end time.
+         * 
+ * + * .google.protobuf.Timestamp end_time = 3; + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+         * If start time is empty and end time is not empty, then ignore these
+         * facet values before end time.
+         * 
+ * + * .google.protobuf.Timestamp end_time = 3; + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+         * If start time is empty and end time is not empty, then ignore these
+         * facet values before end time.
+         * 
+ * + * .google.protobuf.Timestamp end_time = 3; + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
+         * If start time is empty and end time is not empty, then ignore these
+         * facet values before end time.
+         * 
+ * + * .google.protobuf.Timestamp end_time = 3; + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000004); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+         * If start time is empty and end time is not empty, then ignore these
+         * facet values before end time.
+         * 
+ * + * .google.protobuf.Timestamp end_time = 3; + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+         * If start time is empty and end time is not empty, then ignore these
+         * facet values before end time.
+         * 
+ * + * .google.protobuf.Timestamp end_time = 3; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + * + * + *
+         * If start time is empty and end time is not empty, then ignore these
+         * facet values before end time.
+         * 
+ * + * .google.protobuf.Timestamp end_time = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues) + private static final com.google.cloud.retail.v2.CatalogAttribute.FacetConfig + .IgnoredFacetValues + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues(); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IgnoredFacetValues parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface MergedFacetValueOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * All the facet values that are replaces by the same
+       * [merged_value][google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value]
+       * that follows. The maximum number of values per MergedFacetValue is 25.
+       * Each value can have up to 128 characters.
+       * 
+ * + * repeated string values = 1; + * + * @return A list containing the values. + */ + java.util.List getValuesList(); + /** + * + * + *
+       * All the facet values that are replaces by the same
+       * [merged_value][google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value]
+       * that follows. The maximum number of values per MergedFacetValue is 25.
+       * Each value can have up to 128 characters.
+       * 
+ * + * repeated string values = 1; + * + * @return The count of values. + */ + int getValuesCount(); + /** + * + * + *
+       * All the facet values that are replaces by the same
+       * [merged_value][google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value]
+       * that follows. The maximum number of values per MergedFacetValue is 25.
+       * Each value can have up to 128 characters.
+       * 
+ * + * repeated string values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + java.lang.String getValues(int index); + /** + * + * + *
+       * All the facet values that are replaces by the same
+       * [merged_value][google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value]
+       * that follows. The maximum number of values per MergedFacetValue is 25.
+       * Each value can have up to 128 characters.
+       * 
+ * + * repeated string values = 1; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + com.google.protobuf.ByteString getValuesBytes(int index); + + /** + * + * + *
+       * All the previous values are replaced by this merged facet value.
+       * This merged_value must be non-empty and can have up to 128 characters.
+       * 
+ * + * string merged_value = 2; + * + * @return The mergedValue. + */ + java.lang.String getMergedValue(); + /** + * + * + *
+       * All the previous values are replaced by this merged facet value.
+       * This merged_value must be non-empty and can have up to 128 characters.
+       * 
+ * + * string merged_value = 2; + * + * @return The bytes for mergedValue. + */ + com.google.protobuf.ByteString getMergedValueBytes(); + } + /** + * + * + *
+     * Replaces a set of textual facet values by the same (possibly different)
+     * merged facet value. Each facet value should appear at most once as a
+     * value per [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute].
+     * This feature is available only for textual custom attributes.
+     * 
+ * + * Protobuf type {@code google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue} + */ + public static final class MergedFacetValue extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue) + MergedFacetValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use MergedFacetValue.newBuilder() to construct. + private MergedFacetValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MergedFacetValue() { + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + mergedValue_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MergedFacetValue(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2.CatalogProto + .internal_static_google_cloud_retail_v2_CatalogAttribute_FacetConfig_MergedFacetValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2.CatalogProto + .internal_static_google_cloud_retail_v2_CatalogAttribute_FacetConfig_MergedFacetValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue.class, + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue.Builder + .class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+       * All the facet values that are replaces by the same
+       * [merged_value][google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value]
+       * that follows. The maximum number of values per MergedFacetValue is 25.
+       * Each value can have up to 128 characters.
+       * 
+ * + * repeated string values = 1; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + return values_; + } + /** + * + * + *
+       * All the facet values that are replaces by the same
+       * [merged_value][google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value]
+       * that follows. The maximum number of values per MergedFacetValue is 25.
+       * Each value can have up to 128 characters.
+       * 
+ * + * repeated string values = 1; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * + * + *
+       * All the facet values that are replaces by the same
+       * [merged_value][google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value]
+       * that follows. The maximum number of values per MergedFacetValue is 25.
+       * Each value can have up to 128 characters.
+       * 
+ * + * repeated string values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * + * + *
+       * All the facet values that are replaces by the same
+       * [merged_value][google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value]
+       * that follows. The maximum number of values per MergedFacetValue is 25.
+       * Each value can have up to 128 characters.
+       * 
+ * + * repeated string values = 1; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.getByteString(index); + } + + public static final int MERGED_VALUE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object mergedValue_ = ""; + /** + * + * + *
+       * All the previous values are replaced by this merged facet value.
+       * This merged_value must be non-empty and can have up to 128 characters.
+       * 
+ * + * string merged_value = 2; + * + * @return The mergedValue. + */ + @java.lang.Override + public java.lang.String getMergedValue() { + java.lang.Object ref = mergedValue_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mergedValue_ = s; + return s; + } + } + /** + * + * + *
+       * All the previous values are replaced by this merged facet value.
+       * This merged_value must be non-empty and can have up to 128 characters.
+       * 
+ * + * string merged_value = 2; + * + * @return The bytes for mergedValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMergedValueBytes() { + java.lang.Object ref = mergedValue_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mergedValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < values_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mergedValue_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, mergedValue_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < values_.size(); i++) { + dataSize += computeStringSizeNoTag(values_.getRaw(i)); + } + size += dataSize; + size += 1 * getValuesList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mergedValue_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, mergedValue_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue)) { + return super.equals(obj); + } + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue other = + (com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue) obj; + + if (!getValuesList().equals(other.getValuesList())) return false; + if (!getMergedValue().equals(other.getMergedValue())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (37 * hash) + MERGED_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getMergedValue().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+       * Replaces a set of textual facet values by the same (possibly different)
+       * merged facet value. Each facet value should appear at most once as a
+       * value per [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute].
+       * This feature is available only for textual custom attributes.
+       * 
+ * + * Protobuf type {@code google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue) + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2.CatalogProto + .internal_static_google_cloud_retail_v2_CatalogAttribute_FacetConfig_MergedFacetValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2.CatalogProto + .internal_static_google_cloud_retail_v2_CatalogAttribute_FacetConfig_MergedFacetValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue.class, + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue.Builder + .class); + } + + // Construct using + // com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + mergedValue_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2.CatalogProto + .internal_static_google_cloud_retail_v2_CatalogAttribute_FacetConfig_MergedFacetValue_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue + getDefaultInstanceForType() { + return com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue build() { + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue + buildPartial() { + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue result = + new com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + values_.makeImmutable(); + result.values_ = values_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.mergedValue_ = mergedValue_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue) { + return mergeFrom( + (com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue other) { + if (other + == com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue + .getDefaultInstance()) return this; + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ |= 0x00000001; + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + onChanged(); + } + if (!other.getMergedValue().isEmpty()) { + mergedValue_ = other.mergedValue_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureValuesIsMutable(); + values_.add(s); + break; + } // case 10 + case 18: + { + mergedValue_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureValuesIsMutable() { + if (!values_.isModifiable()) { + values_ = new com.google.protobuf.LazyStringArrayList(values_); + } + bitField0_ |= 0x00000001; + } + /** + * + * + *
+         * All the facet values that are replaces by the same
+         * [merged_value][google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value]
+         * that follows. The maximum number of values per MergedFacetValue is 25.
+         * Each value can have up to 128 characters.
+         * 
+ * + * repeated string values = 1; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + values_.makeImmutable(); + return values_; + } + /** + * + * + *
+         * All the facet values that are replaces by the same
+         * [merged_value][google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value]
+         * that follows. The maximum number of values per MergedFacetValue is 25.
+         * Each value can have up to 128 characters.
+         * 
+ * + * repeated string values = 1; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * + * + *
+         * All the facet values that are replaces by the same
+         * [merged_value][google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value]
+         * that follows. The maximum number of values per MergedFacetValue is 25.
+         * Each value can have up to 128 characters.
+         * 
+ * + * repeated string values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * + * + *
+         * All the facet values that are replaces by the same
+         * [merged_value][google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value]
+         * that follows. The maximum number of values per MergedFacetValue is 25.
+         * Each value can have up to 128 characters.
+         * 
+ * + * repeated string values = 1; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.getByteString(index); + } + /** + * + * + *
+         * All the facet values that are replaces by the same
+         * [merged_value][google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value]
+         * that follows. The maximum number of values per MergedFacetValue is 25.
+         * Each value can have up to 128 characters.
+         * 
+ * + * repeated string values = 1; + * + * @param index The index to set the value at. + * @param value The values to set. + * @return This builder for chaining. + */ + public Builder setValues(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * All the facet values that are replaces by the same
+         * [merged_value][google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value]
+         * that follows. The maximum number of values per MergedFacetValue is 25.
+         * Each value can have up to 128 characters.
+         * 
+ * + * repeated string values = 1; + * + * @param value The values to add. + * @return This builder for chaining. + */ + public Builder addValues(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * All the facet values that are replaces by the same
+         * [merged_value][google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value]
+         * that follows. The maximum number of values per MergedFacetValue is 25.
+         * Each value can have up to 128 characters.
+         * 
+ * + * repeated string values = 1; + * + * @param values The values to add. + * @return This builder for chaining. + */ + public Builder addAllValues(java.lang.Iterable values) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * All the facet values that are replaces by the same
+         * [merged_value][google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value]
+         * that follows. The maximum number of values per MergedFacetValue is 25.
+         * Each value can have up to 128 characters.
+         * 
+ * + * repeated string values = 1; + * + * @return This builder for chaining. + */ + public Builder clearValues() { + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + /** + * + * + *
+         * All the facet values that are replaces by the same
+         * [merged_value][google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value]
+         * that follows. The maximum number of values per MergedFacetValue is 25.
+         * Each value can have up to 128 characters.
+         * 
+ * + * repeated string values = 1; + * + * @param value The bytes of the values to add. + * @return This builder for chaining. + */ + public Builder addValuesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValuesIsMutable(); + values_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object mergedValue_ = ""; + /** + * + * + *
+         * All the previous values are replaced by this merged facet value.
+         * This merged_value must be non-empty and can have up to 128 characters.
+         * 
+ * + * string merged_value = 2; + * + * @return The mergedValue. + */ + public java.lang.String getMergedValue() { + java.lang.Object ref = mergedValue_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mergedValue_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * All the previous values are replaced by this merged facet value.
+         * This merged_value must be non-empty and can have up to 128 characters.
+         * 
+ * + * string merged_value = 2; + * + * @return The bytes for mergedValue. + */ + public com.google.protobuf.ByteString getMergedValueBytes() { + java.lang.Object ref = mergedValue_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mergedValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * All the previous values are replaced by this merged facet value.
+         * This merged_value must be non-empty and can have up to 128 characters.
+         * 
+ * + * string merged_value = 2; + * + * @param value The mergedValue to set. + * @return This builder for chaining. + */ + public Builder setMergedValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + mergedValue_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+         * All the previous values are replaced by this merged facet value.
+         * This merged_value must be non-empty and can have up to 128 characters.
+         * 
+ * + * string merged_value = 2; + * + * @return This builder for chaining. + */ + public Builder clearMergedValue() { + mergedValue_ = getDefaultInstance().getMergedValue(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+         * All the previous values are replaced by this merged facet value.
+         * This merged_value must be non-empty and can have up to 128 characters.
+         * 
+ * + * string merged_value = 2; + * + * @param value The bytes for mergedValue to set. + * @return This builder for chaining. + */ + public Builder setMergedValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mergedValue_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue) + private static final com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue(); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MergedFacetValue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface MergedFacetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * The merged facet key should be a valid facet key that is different than
+       * the facet key of the current catalog attribute. We refer this is
+       * merged facet key as the child of the current catalog attribute. This
+       * merged facet key can't be a parent of another facet key (i.e. no
+       * directed path of length 2). This merged facet key needs to be either a
+       * textual custom attribute or a numerical custom attribute.
+       * 
+ * + * string merged_facet_key = 1; + * + * @return The mergedFacetKey. + */ + java.lang.String getMergedFacetKey(); + /** + * + * + *
+       * The merged facet key should be a valid facet key that is different than
+       * the facet key of the current catalog attribute. We refer this is
+       * merged facet key as the child of the current catalog attribute. This
+       * merged facet key can't be a parent of another facet key (i.e. no
+       * directed path of length 2). This merged facet key needs to be either a
+       * textual custom attribute or a numerical custom attribute.
+       * 
+ * + * string merged_facet_key = 1; + * + * @return The bytes for mergedFacetKey. + */ + com.google.protobuf.ByteString getMergedFacetKeyBytes(); + } + /** + * + * + *
+     * The current facet key (i.e. attribute config) maps into the
+     * [merged_facet_key][google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet.merged_facet_key].
+     * A facet key can have at most one child. The current facet key and the
+     * merged facet key need both to be textual custom attributes or both
+     * numerical custom attributes (same type).
+     * 
+ * + * Protobuf type {@code google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet} + */ + public static final class MergedFacet extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet) + MergedFacetOrBuilder { + private static final long serialVersionUID = 0L; + // Use MergedFacet.newBuilder() to construct. + private MergedFacet(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MergedFacet() { + mergedFacetKey_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MergedFacet(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2.CatalogProto + .internal_static_google_cloud_retail_v2_CatalogAttribute_FacetConfig_MergedFacet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2.CatalogProto + .internal_static_google_cloud_retail_v2_CatalogAttribute_FacetConfig_MergedFacet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet.class, + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet.Builder.class); + } + + public static final int MERGED_FACET_KEY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object mergedFacetKey_ = ""; + /** + * + * + *
+       * The merged facet key should be a valid facet key that is different than
+       * the facet key of the current catalog attribute. We refer this is
+       * merged facet key as the child of the current catalog attribute. This
+       * merged facet key can't be a parent of another facet key (i.e. no
+       * directed path of length 2). This merged facet key needs to be either a
+       * textual custom attribute or a numerical custom attribute.
+       * 
+ * + * string merged_facet_key = 1; + * + * @return The mergedFacetKey. + */ + @java.lang.Override + public java.lang.String getMergedFacetKey() { + java.lang.Object ref = mergedFacetKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mergedFacetKey_ = s; + return s; + } + } + /** + * + * + *
+       * The merged facet key should be a valid facet key that is different than
+       * the facet key of the current catalog attribute. We refer this is
+       * merged facet key as the child of the current catalog attribute. This
+       * merged facet key can't be a parent of another facet key (i.e. no
+       * directed path of length 2). This merged facet key needs to be either a
+       * textual custom attribute or a numerical custom attribute.
+       * 
+ * + * string merged_facet_key = 1; + * + * @return The bytes for mergedFacetKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMergedFacetKeyBytes() { + java.lang.Object ref = mergedFacetKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mergedFacetKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mergedFacetKey_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mergedFacetKey_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mergedFacetKey_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mergedFacetKey_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet)) { + return super.equals(obj); + } + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet other = + (com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet) obj; + + if (!getMergedFacetKey().equals(other.getMergedFacetKey())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MERGED_FACET_KEY_FIELD_NUMBER; + hash = (53 * hash) + getMergedFacetKey().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+       * The current facet key (i.e. attribute config) maps into the
+       * [merged_facet_key][google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet.merged_facet_key].
+       * A facet key can have at most one child. The current facet key and the
+       * merged facet key need both to be textual custom attributes or both
+       * numerical custom attributes (same type).
+       * 
+ * + * Protobuf type {@code google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet) + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2.CatalogProto + .internal_static_google_cloud_retail_v2_CatalogAttribute_FacetConfig_MergedFacet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2.CatalogProto + .internal_static_google_cloud_retail_v2_CatalogAttribute_FacetConfig_MergedFacet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet.class, + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet.Builder + .class); + } + + // Construct using + // com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + mergedFacetKey_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2.CatalogProto + .internal_static_google_cloud_retail_v2_CatalogAttribute_FacetConfig_MergedFacet_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet + getDefaultInstanceForType() { + return com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet build() { + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet buildPartial() { + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet result = + new com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.mergedFacetKey_ = mergedFacetKey_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet) { + return mergeFrom( + (com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet other) { + if (other + == com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet + .getDefaultInstance()) return this; + if (!other.getMergedFacetKey().isEmpty()) { + mergedFacetKey_ = other.mergedFacetKey_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + mergedFacetKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object mergedFacetKey_ = ""; + /** + * + * + *
+         * The merged facet key should be a valid facet key that is different than
+         * the facet key of the current catalog attribute. We refer this is
+         * merged facet key as the child of the current catalog attribute. This
+         * merged facet key can't be a parent of another facet key (i.e. no
+         * directed path of length 2). This merged facet key needs to be either a
+         * textual custom attribute or a numerical custom attribute.
+         * 
+ * + * string merged_facet_key = 1; + * + * @return The mergedFacetKey. + */ + public java.lang.String getMergedFacetKey() { + java.lang.Object ref = mergedFacetKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mergedFacetKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * The merged facet key should be a valid facet key that is different than
+         * the facet key of the current catalog attribute. We refer this is
+         * merged facet key as the child of the current catalog attribute. This
+         * merged facet key can't be a parent of another facet key (i.e. no
+         * directed path of length 2). This merged facet key needs to be either a
+         * textual custom attribute or a numerical custom attribute.
+         * 
+ * + * string merged_facet_key = 1; + * + * @return The bytes for mergedFacetKey. + */ + public com.google.protobuf.ByteString getMergedFacetKeyBytes() { + java.lang.Object ref = mergedFacetKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mergedFacetKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * The merged facet key should be a valid facet key that is different than
+         * the facet key of the current catalog attribute. We refer this is
+         * merged facet key as the child of the current catalog attribute. This
+         * merged facet key can't be a parent of another facet key (i.e. no
+         * directed path of length 2). This merged facet key needs to be either a
+         * textual custom attribute or a numerical custom attribute.
+         * 
+ * + * string merged_facet_key = 1; + * + * @param value The mergedFacetKey to set. + * @return This builder for chaining. + */ + public Builder setMergedFacetKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + mergedFacetKey_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * The merged facet key should be a valid facet key that is different than
+         * the facet key of the current catalog attribute. We refer this is
+         * merged facet key as the child of the current catalog attribute. This
+         * merged facet key can't be a parent of another facet key (i.e. no
+         * directed path of length 2). This merged facet key needs to be either a
+         * textual custom attribute or a numerical custom attribute.
+         * 
+ * + * string merged_facet_key = 1; + * + * @return This builder for chaining. + */ + public Builder clearMergedFacetKey() { + mergedFacetKey_ = getDefaultInstance().getMergedFacetKey(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+         * The merged facet key should be a valid facet key that is different than
+         * the facet key of the current catalog attribute. We refer this is
+         * merged facet key as the child of the current catalog attribute. This
+         * merged facet key can't be a parent of another facet key (i.e. no
+         * directed path of length 2). This merged facet key needs to be either a
+         * textual custom attribute or a numerical custom attribute.
+         * 
+ * + * string merged_facet_key = 1; + * + * @param value The bytes for mergedFacetKey to set. + * @return This builder for chaining. + */ + public Builder setMergedFacetKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mergedFacetKey_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet) + private static final com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet(); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MergedFacet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface RerankConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * If set to true, then we also rerank the dynamic facets based on the
+       * facet values engaged by the user for the current attribute key during
+       * serving.
+       * 
+ * + * bool rerank_facet = 1; + * + * @return The rerankFacet. + */ + boolean getRerankFacet(); + + /** + * + * + *
+       * If empty, rerank on all facet values for the current key. Otherwise,
+       * will rerank on the facet values from this list only.
+       * 
+ * + * repeated string facet_values = 2; + * + * @return A list containing the facetValues. + */ + java.util.List getFacetValuesList(); + /** + * + * + *
+       * If empty, rerank on all facet values for the current key. Otherwise,
+       * will rerank on the facet values from this list only.
+       * 
+ * + * repeated string facet_values = 2; + * + * @return The count of facetValues. + */ + int getFacetValuesCount(); + /** + * + * + *
+       * If empty, rerank on all facet values for the current key. Otherwise,
+       * will rerank on the facet values from this list only.
+       * 
+ * + * repeated string facet_values = 2; + * + * @param index The index of the element to return. + * @return The facetValues at the given index. + */ + java.lang.String getFacetValues(int index); + /** + * + * + *
+       * If empty, rerank on all facet values for the current key. Otherwise,
+       * will rerank on the facet values from this list only.
+       * 
+ * + * repeated string facet_values = 2; + * + * @param index The index of the value to return. + * @return The bytes of the facetValues at the given index. + */ + com.google.protobuf.ByteString getFacetValuesBytes(int index); + } + /** + * + * + *
+     * Options to rerank based on facet values engaged by the user for the
+     * current key. That key needs to be a custom textual key and facetable.
+     * To use this control, you also need to pass all the facet keys engaged by
+     * the user in the request using the field [SearchRequest.FacetSpec]. In
+     * particular, if you don't pass the facet keys engaged that you want to
+     * rerank on, this control won't be effective. Moreover, to obtain better
+     * results, the facet values that you want to rerank on should be close to
+     * English (ideally made of words, underscores, and spaces).
+     * 
+ * + * Protobuf type {@code google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig} + */ + public static final class RerankConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig) + RerankConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use RerankConfig.newBuilder() to construct. + private RerankConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RerankConfig() { + facetValues_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RerankConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2.CatalogProto + .internal_static_google_cloud_retail_v2_CatalogAttribute_FacetConfig_RerankConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2.CatalogProto + .internal_static_google_cloud_retail_v2_CatalogAttribute_FacetConfig_RerankConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig.class, + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig.Builder.class); + } + + public static final int RERANK_FACET_FIELD_NUMBER = 1; + private boolean rerankFacet_ = false; + /** + * + * + *
+       * If set to true, then we also rerank the dynamic facets based on the
+       * facet values engaged by the user for the current attribute key during
+       * serving.
+       * 
+ * + * bool rerank_facet = 1; + * + * @return The rerankFacet. + */ + @java.lang.Override + public boolean getRerankFacet() { + return rerankFacet_; + } + + public static final int FACET_VALUES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList facetValues_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+       * If empty, rerank on all facet values for the current key. Otherwise,
+       * will rerank on the facet values from this list only.
+       * 
+ * + * repeated string facet_values = 2; + * + * @return A list containing the facetValues. + */ + public com.google.protobuf.ProtocolStringList getFacetValuesList() { + return facetValues_; + } + /** + * + * + *
+       * If empty, rerank on all facet values for the current key. Otherwise,
+       * will rerank on the facet values from this list only.
+       * 
+ * + * repeated string facet_values = 2; + * + * @return The count of facetValues. + */ + public int getFacetValuesCount() { + return facetValues_.size(); + } + /** + * + * + *
+       * If empty, rerank on all facet values for the current key. Otherwise,
+       * will rerank on the facet values from this list only.
+       * 
+ * + * repeated string facet_values = 2; + * + * @param index The index of the element to return. + * @return The facetValues at the given index. + */ + public java.lang.String getFacetValues(int index) { + return facetValues_.get(index); + } + /** + * + * + *
+       * If empty, rerank on all facet values for the current key. Otherwise,
+       * will rerank on the facet values from this list only.
+       * 
+ * + * repeated string facet_values = 2; + * + * @param index The index of the value to return. + * @return The bytes of the facetValues at the given index. + */ + public com.google.protobuf.ByteString getFacetValuesBytes(int index) { + return facetValues_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (rerankFacet_ != false) { + output.writeBool(1, rerankFacet_); + } + for (int i = 0; i < facetValues_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, facetValues_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (rerankFacet_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, rerankFacet_); + } + { + int dataSize = 0; + for (int i = 0; i < facetValues_.size(); i++) { + dataSize += computeStringSizeNoTag(facetValues_.getRaw(i)); + } + size += dataSize; + size += 1 * getFacetValuesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig)) { + return super.equals(obj); + } + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig other = + (com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig) obj; + + if (getRerankFacet() != other.getRerankFacet()) return false; + if (!getFacetValuesList().equals(other.getFacetValuesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RERANK_FACET_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRerankFacet()); + if (getFacetValuesCount() > 0) { + hash = (37 * hash) + FACET_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getFacetValuesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+       * Options to rerank based on facet values engaged by the user for the
+       * current key. That key needs to be a custom textual key and facetable.
+       * To use this control, you also need to pass all the facet keys engaged by
+       * the user in the request using the field [SearchRequest.FacetSpec]. In
+       * particular, if you don't pass the facet keys engaged that you want to
+       * rerank on, this control won't be effective. Moreover, to obtain better
+       * results, the facet values that you want to rerank on should be close to
+       * English (ideally made of words, underscores, and spaces).
+       * 
+ * + * Protobuf type {@code google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig) + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2.CatalogProto + .internal_static_google_cloud_retail_v2_CatalogAttribute_FacetConfig_RerankConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2.CatalogProto + .internal_static_google_cloud_retail_v2_CatalogAttribute_FacetConfig_RerankConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig.class, + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig.Builder + .class); + } + + // Construct using + // com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + rerankFacet_ = false; + facetValues_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2.CatalogProto + .internal_static_google_cloud_retail_v2_CatalogAttribute_FacetConfig_RerankConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig + getDefaultInstanceForType() { + return com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig build() { + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig buildPartial() { + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig result = + new com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.rerankFacet_ = rerankFacet_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + facetValues_.makeImmutable(); + result.facetValues_ = facetValues_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig) { + return mergeFrom( + (com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig other) { + if (other + == com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig + .getDefaultInstance()) return this; + if (other.getRerankFacet() != false) { + setRerankFacet(other.getRerankFacet()); + } + if (!other.facetValues_.isEmpty()) { + if (facetValues_.isEmpty()) { + facetValues_ = other.facetValues_; + bitField0_ |= 0x00000002; + } else { + ensureFacetValuesIsMutable(); + facetValues_.addAll(other.facetValues_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + rerankFacet_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureFacetValuesIsMutable(); + facetValues_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean rerankFacet_; + /** + * + * + *
+         * If set to true, then we also rerank the dynamic facets based on the
+         * facet values engaged by the user for the current attribute key during
+         * serving.
+         * 
+ * + * bool rerank_facet = 1; + * + * @return The rerankFacet. + */ + @java.lang.Override + public boolean getRerankFacet() { + return rerankFacet_; + } + /** + * + * + *
+         * If set to true, then we also rerank the dynamic facets based on the
+         * facet values engaged by the user for the current attribute key during
+         * serving.
+         * 
+ * + * bool rerank_facet = 1; + * + * @param value The rerankFacet to set. + * @return This builder for chaining. + */ + public Builder setRerankFacet(boolean value) { + + rerankFacet_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * If set to true, then we also rerank the dynamic facets based on the
+         * facet values engaged by the user for the current attribute key during
+         * serving.
+         * 
+ * + * bool rerank_facet = 1; + * + * @return This builder for chaining. + */ + public Builder clearRerankFacet() { + bitField0_ = (bitField0_ & ~0x00000001); + rerankFacet_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList facetValues_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureFacetValuesIsMutable() { + if (!facetValues_.isModifiable()) { + facetValues_ = new com.google.protobuf.LazyStringArrayList(facetValues_); + } + bitField0_ |= 0x00000002; + } + /** + * + * + *
+         * If empty, rerank on all facet values for the current key. Otherwise,
+         * will rerank on the facet values from this list only.
+         * 
+ * + * repeated string facet_values = 2; + * + * @return A list containing the facetValues. + */ + public com.google.protobuf.ProtocolStringList getFacetValuesList() { + facetValues_.makeImmutable(); + return facetValues_; + } + /** + * + * + *
+         * If empty, rerank on all facet values for the current key. Otherwise,
+         * will rerank on the facet values from this list only.
+         * 
+ * + * repeated string facet_values = 2; + * + * @return The count of facetValues. + */ + public int getFacetValuesCount() { + return facetValues_.size(); + } + /** + * + * + *
+         * If empty, rerank on all facet values for the current key. Otherwise,
+         * will rerank on the facet values from this list only.
+         * 
+ * + * repeated string facet_values = 2; + * + * @param index The index of the element to return. + * @return The facetValues at the given index. + */ + public java.lang.String getFacetValues(int index) { + return facetValues_.get(index); + } + /** + * + * + *
+         * If empty, rerank on all facet values for the current key. Otherwise,
+         * will rerank on the facet values from this list only.
+         * 
+ * + * repeated string facet_values = 2; + * + * @param index The index of the value to return. + * @return The bytes of the facetValues at the given index. + */ + public com.google.protobuf.ByteString getFacetValuesBytes(int index) { + return facetValues_.getByteString(index); + } + /** + * + * + *
+         * If empty, rerank on all facet values for the current key. Otherwise,
+         * will rerank on the facet values from this list only.
+         * 
+ * + * repeated string facet_values = 2; + * + * @param index The index to set the value at. + * @param value The facetValues to set. + * @return This builder for chaining. + */ + public Builder setFacetValues(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFacetValuesIsMutable(); + facetValues_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+         * If empty, rerank on all facet values for the current key. Otherwise,
+         * will rerank on the facet values from this list only.
+         * 
+ * + * repeated string facet_values = 2; + * + * @param value The facetValues to add. + * @return This builder for chaining. + */ + public Builder addFacetValues(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFacetValuesIsMutable(); + facetValues_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+         * If empty, rerank on all facet values for the current key. Otherwise,
+         * will rerank on the facet values from this list only.
+         * 
+ * + * repeated string facet_values = 2; + * + * @param values The facetValues to add. + * @return This builder for chaining. + */ + public Builder addAllFacetValues(java.lang.Iterable values) { + ensureFacetValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, facetValues_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+         * If empty, rerank on all facet values for the current key. Otherwise,
+         * will rerank on the facet values from this list only.
+         * 
+ * + * repeated string facet_values = 2; + * + * @return This builder for chaining. + */ + public Builder clearFacetValues() { + facetValues_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + /** + * + * + *
+         * If empty, rerank on all facet values for the current key. Otherwise,
+         * will rerank on the facet values from this list only.
+         * 
+ * + * repeated string facet_values = 2; + * + * @param value The bytes of the facetValues to add. + * @return This builder for chaining. + */ + public Builder addFacetValuesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureFacetValuesIsMutable(); + facetValues_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig) + private static final com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig(); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RerankConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int FACET_INTERVALS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List facetIntervals_; + /** + * + * + *
+     * If you don't set the facet
+     * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2.SearchRequest.FacetSpec.FacetKey.intervals]
+     * in the request to a numerical attribute, then we use the computed
+     * intervals with rounded bounds obtained from all its product numerical
+     * attribute values. The computed intervals might not be ideal for some
+     * attributes. Therefore, we give you the option to overwrite them with the
+     * facet_intervals field. The maximum of facet intervals per
+     * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 40. Each
+     * interval must have a lower bound or an upper bound. If both bounds are
+     * provided, then the lower bound must be smaller or equal than the upper
+     * bound.
+     * 
+ * + * repeated .google.cloud.retail.v2.Interval facet_intervals = 1; + */ + @java.lang.Override + public java.util.List getFacetIntervalsList() { + return facetIntervals_; + } + /** + * + * + *
+     * If you don't set the facet
+     * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2.SearchRequest.FacetSpec.FacetKey.intervals]
+     * in the request to a numerical attribute, then we use the computed
+     * intervals with rounded bounds obtained from all its product numerical
+     * attribute values. The computed intervals might not be ideal for some
+     * attributes. Therefore, we give you the option to overwrite them with the
+     * facet_intervals field. The maximum of facet intervals per
+     * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 40. Each
+     * interval must have a lower bound or an upper bound. If both bounds are
+     * provided, then the lower bound must be smaller or equal than the upper
+     * bound.
+     * 
+ * + * repeated .google.cloud.retail.v2.Interval facet_intervals = 1; + */ + @java.lang.Override + public java.util.List + getFacetIntervalsOrBuilderList() { + return facetIntervals_; + } + /** + * + * + *
+     * If you don't set the facet
+     * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2.SearchRequest.FacetSpec.FacetKey.intervals]
+     * in the request to a numerical attribute, then we use the computed
+     * intervals with rounded bounds obtained from all its product numerical
+     * attribute values. The computed intervals might not be ideal for some
+     * attributes. Therefore, we give you the option to overwrite them with the
+     * facet_intervals field. The maximum of facet intervals per
+     * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 40. Each
+     * interval must have a lower bound or an upper bound. If both bounds are
+     * provided, then the lower bound must be smaller or equal than the upper
+     * bound.
+     * 
+ * + * repeated .google.cloud.retail.v2.Interval facet_intervals = 1; + */ + @java.lang.Override + public int getFacetIntervalsCount() { + return facetIntervals_.size(); + } + /** + * + * + *
+     * If you don't set the facet
+     * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2.SearchRequest.FacetSpec.FacetKey.intervals]
+     * in the request to a numerical attribute, then we use the computed
+     * intervals with rounded bounds obtained from all its product numerical
+     * attribute values. The computed intervals might not be ideal for some
+     * attributes. Therefore, we give you the option to overwrite them with the
+     * facet_intervals field. The maximum of facet intervals per
+     * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 40. Each
+     * interval must have a lower bound or an upper bound. If both bounds are
+     * provided, then the lower bound must be smaller or equal than the upper
+     * bound.
+     * 
+ * + * repeated .google.cloud.retail.v2.Interval facet_intervals = 1; + */ + @java.lang.Override + public com.google.cloud.retail.v2.Interval getFacetIntervals(int index) { + return facetIntervals_.get(index); + } + /** + * + * + *
+     * If you don't set the facet
+     * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2.SearchRequest.FacetSpec.FacetKey.intervals]
+     * in the request to a numerical attribute, then we use the computed
+     * intervals with rounded bounds obtained from all its product numerical
+     * attribute values. The computed intervals might not be ideal for some
+     * attributes. Therefore, we give you the option to overwrite them with the
+     * facet_intervals field. The maximum of facet intervals per
+     * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 40. Each
+     * interval must have a lower bound or an upper bound. If both bounds are
+     * provided, then the lower bound must be smaller or equal than the upper
+     * bound.
+     * 
+ * + * repeated .google.cloud.retail.v2.Interval facet_intervals = 1; + */ + @java.lang.Override + public com.google.cloud.retail.v2.IntervalOrBuilder getFacetIntervalsOrBuilder(int index) { + return facetIntervals_.get(index); + } + + public static final int IGNORED_FACET_VALUES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues> + ignoredFacetValues_; + /** + * + * + *
+     * Each instance represents a list of attribute values to ignore as facet
+     * values for a specific time range. The maximum number of instances per
+     * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 25.
+     * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues> + getIgnoredFacetValuesList() { + return ignoredFacetValues_; + } + /** + * + * + *
+     * Each instance represents a list of attribute values to ignore as facet
+     * values for a specific time range. The maximum number of instances per
+     * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 25.
+     * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValuesOrBuilder> + getIgnoredFacetValuesOrBuilderList() { + return ignoredFacetValues_; + } + /** + * + * + *
+     * Each instance represents a list of attribute values to ignore as facet
+     * values for a specific time range. The maximum number of instances per
+     * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 25.
+     * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + @java.lang.Override + public int getIgnoredFacetValuesCount() { + return ignoredFacetValues_.size(); + } + /** + * + * + *
+     * Each instance represents a list of attribute values to ignore as facet
+     * values for a specific time range. The maximum number of instances per
+     * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 25.
+     * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues + getIgnoredFacetValues(int index) { + return ignoredFacetValues_.get(index); + } + /** + * + * + *
+     * Each instance represents a list of attribute values to ignore as facet
+     * values for a specific time range. The maximum number of instances per
+     * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 25.
+     * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValuesOrBuilder + getIgnoredFacetValuesOrBuilder(int index) { + return ignoredFacetValues_.get(index); + } + + public static final int MERGED_FACET_VALUES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List + mergedFacetValues_; + /** + * + * + *
+     * Each instance replaces a list of facet values by a merged facet
+     * value. If a facet value is not in any list, then it will stay the same.
+     * To avoid conflicts, only paths of length 1 are accepted. In other words,
+     * if "dark_blue" merged into "BLUE", then the latter can't merge into
+     * "blues" because this would create a path of length 2. The maximum number
+     * of instances of MergedFacetValue per
+     * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 100. This
+     * feature is available only for textual custom attributes.
+     * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + @java.lang.Override + public java.util.List + getMergedFacetValuesList() { + return mergedFacetValues_; + } + /** + * + * + *
+     * Each instance replaces a list of facet values by a merged facet
+     * value. If a facet value is not in any list, then it will stay the same.
+     * To avoid conflicts, only paths of length 1 are accepted. In other words,
+     * if "dark_blue" merged into "BLUE", then the latter can't merge into
+     * "blues" because this would create a path of length 2. The maximum number
+     * of instances of MergedFacetValue per
+     * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 100. This
+     * feature is available only for textual custom attributes.
+     * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValueOrBuilder> + getMergedFacetValuesOrBuilderList() { + return mergedFacetValues_; + } + /** + * + * + *
+     * Each instance replaces a list of facet values by a merged facet
+     * value. If a facet value is not in any list, then it will stay the same.
+     * To avoid conflicts, only paths of length 1 are accepted. In other words,
+     * if "dark_blue" merged into "BLUE", then the latter can't merge into
+     * "blues" because this would create a path of length 2. The maximum number
+     * of instances of MergedFacetValue per
+     * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 100. This
+     * feature is available only for textual custom attributes.
+     * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + @java.lang.Override + public int getMergedFacetValuesCount() { + return mergedFacetValues_.size(); + } + /** + * + * + *
+     * Each instance replaces a list of facet values by a merged facet
+     * value. If a facet value is not in any list, then it will stay the same.
+     * To avoid conflicts, only paths of length 1 are accepted. In other words,
+     * if "dark_blue" merged into "BLUE", then the latter can't merge into
+     * "blues" because this would create a path of length 2. The maximum number
+     * of instances of MergedFacetValue per
+     * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 100. This
+     * feature is available only for textual custom attributes.
+     * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue + getMergedFacetValues(int index) { + return mergedFacetValues_.get(index); + } + /** + * + * + *
+     * Each instance replaces a list of facet values by a merged facet
+     * value. If a facet value is not in any list, then it will stay the same.
+     * To avoid conflicts, only paths of length 1 are accepted. In other words,
+     * if "dark_blue" merged into "BLUE", then the latter can't merge into
+     * "blues" because this would create a path of length 2. The maximum number
+     * of instances of MergedFacetValue per
+     * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 100. This
+     * feature is available only for textual custom attributes.
+     * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValueOrBuilder + getMergedFacetValuesOrBuilder(int index) { + return mergedFacetValues_.get(index); + } + + public static final int MERGED_FACET_FIELD_NUMBER = 4; + private com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet mergedFacet_; + /** + * + * + *
+     * Use this field only if you want to merge a facet key into another facet
+     * key.
+     * 
+ * + * .google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet merged_facet = 4; + * + * + * @return Whether the mergedFacet field is set. + */ + @java.lang.Override + public boolean hasMergedFacet() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Use this field only if you want to merge a facet key into another facet
+     * key.
+     * 
+ * + * .google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet merged_facet = 4; + * + * + * @return The mergedFacet. + */ + @java.lang.Override + public com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet getMergedFacet() { + return mergedFacet_ == null + ? com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet.getDefaultInstance() + : mergedFacet_; + } + /** + * + * + *
+     * Use this field only if you want to merge a facet key into another facet
+     * key.
+     * 
+ * + * .google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet merged_facet = 4; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetOrBuilder + getMergedFacetOrBuilder() { + return mergedFacet_ == null + ? com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet.getDefaultInstance() + : mergedFacet_; + } + + public static final int RERANK_CONFIG_FIELD_NUMBER = 5; + private com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig rerankConfig_; + /** + * + * + *
+     * Set this field only if you want to rerank based on facet values engaged
+     * by the user for the current key. This option is only possible for custom
+     * facetable textual keys.
+     * 
+ * + * .google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig rerank_config = 5; + * + * + * @return Whether the rerankConfig field is set. + */ + @java.lang.Override + public boolean hasRerankConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Set this field only if you want to rerank based on facet values engaged
+     * by the user for the current key. This option is only possible for custom
+     * facetable textual keys.
+     * 
+ * + * .google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig rerank_config = 5; + * + * + * @return The rerankConfig. + */ + @java.lang.Override + public com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig getRerankConfig() { + return rerankConfig_ == null + ? com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig + .getDefaultInstance() + : rerankConfig_; + } + /** + * + * + *
+     * Set this field only if you want to rerank based on facet values engaged
+     * by the user for the current key. This option is only possible for custom
+     * facetable textual keys.
+     * 
+ * + * .google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig rerank_config = 5; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfigOrBuilder + getRerankConfigOrBuilder() { + return rerankConfig_ == null + ? com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig + .getDefaultInstance() + : rerankConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < facetIntervals_.size(); i++) { + output.writeMessage(1, facetIntervals_.get(i)); + } + for (int i = 0; i < ignoredFacetValues_.size(); i++) { + output.writeMessage(2, ignoredFacetValues_.get(i)); + } + for (int i = 0; i < mergedFacetValues_.size(); i++) { + output.writeMessage(3, mergedFacetValues_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getMergedFacet()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getRerankConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < facetIntervals_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, facetIntervals_.get(i)); + } + for (int i = 0; i < ignoredFacetValues_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, ignoredFacetValues_.get(i)); + } + for (int i = 0; i < mergedFacetValues_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, mergedFacetValues_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getMergedFacet()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getRerankConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.retail.v2.CatalogAttribute.FacetConfig)) { + return super.equals(obj); + } + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig other = + (com.google.cloud.retail.v2.CatalogAttribute.FacetConfig) obj; + + if (!getFacetIntervalsList().equals(other.getFacetIntervalsList())) return false; + if (!getIgnoredFacetValuesList().equals(other.getIgnoredFacetValuesList())) return false; + if (!getMergedFacetValuesList().equals(other.getMergedFacetValuesList())) return false; + if (hasMergedFacet() != other.hasMergedFacet()) return false; + if (hasMergedFacet()) { + if (!getMergedFacet().equals(other.getMergedFacet())) return false; + } + if (hasRerankConfig() != other.hasRerankConfig()) return false; + if (hasRerankConfig()) { + if (!getRerankConfig().equals(other.getRerankConfig())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getFacetIntervalsCount() > 0) { + hash = (37 * hash) + FACET_INTERVALS_FIELD_NUMBER; + hash = (53 * hash) + getFacetIntervalsList().hashCode(); + } + if (getIgnoredFacetValuesCount() > 0) { + hash = (37 * hash) + IGNORED_FACET_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getIgnoredFacetValuesList().hashCode(); + } + if (getMergedFacetValuesCount() > 0) { + hash = (37 * hash) + MERGED_FACET_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getMergedFacetValuesList().hashCode(); + } + if (hasMergedFacet()) { + hash = (37 * hash) + MERGED_FACET_FIELD_NUMBER; + hash = (53 * hash) + getMergedFacet().hashCode(); + } + if (hasRerankConfig()) { + hash = (37 * hash) + RERANK_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getRerankConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Possible options for the facet that corresponds to the current attribute
+     * config.
+     * 
+ * + * Protobuf type {@code google.cloud.retail.v2.CatalogAttribute.FacetConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2.CatalogAttribute.FacetConfig) + com.google.cloud.retail.v2.CatalogAttribute.FacetConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2.CatalogProto + .internal_static_google_cloud_retail_v2_CatalogAttribute_FacetConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2.CatalogProto + .internal_static_google_cloud_retail_v2_CatalogAttribute_FacetConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.class, + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.Builder.class); + } + + // Construct using com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getFacetIntervalsFieldBuilder(); + getIgnoredFacetValuesFieldBuilder(); + getMergedFacetValuesFieldBuilder(); + getMergedFacetFieldBuilder(); + getRerankConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (facetIntervalsBuilder_ == null) { + facetIntervals_ = java.util.Collections.emptyList(); + } else { + facetIntervals_ = null; + facetIntervalsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (ignoredFacetValuesBuilder_ == null) { + ignoredFacetValues_ = java.util.Collections.emptyList(); + } else { + ignoredFacetValues_ = null; + ignoredFacetValuesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (mergedFacetValuesBuilder_ == null) { + mergedFacetValues_ = java.util.Collections.emptyList(); + } else { + mergedFacetValues_ = null; + mergedFacetValuesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + mergedFacet_ = null; + if (mergedFacetBuilder_ != null) { + mergedFacetBuilder_.dispose(); + mergedFacetBuilder_ = null; + } + rerankConfig_ = null; + if (rerankConfigBuilder_ != null) { + rerankConfigBuilder_.dispose(); + rerankConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2.CatalogProto + .internal_static_google_cloud_retail_v2_CatalogAttribute_FacetConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2.CatalogAttribute.FacetConfig getDefaultInstanceForType() { + return com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2.CatalogAttribute.FacetConfig build() { + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2.CatalogAttribute.FacetConfig buildPartial() { + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig result = + new com.google.cloud.retail.v2.CatalogAttribute.FacetConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig result) { + if (facetIntervalsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + facetIntervals_ = java.util.Collections.unmodifiableList(facetIntervals_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.facetIntervals_ = facetIntervals_; + } else { + result.facetIntervals_ = facetIntervalsBuilder_.build(); + } + if (ignoredFacetValuesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + ignoredFacetValues_ = java.util.Collections.unmodifiableList(ignoredFacetValues_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.ignoredFacetValues_ = ignoredFacetValues_; + } else { + result.ignoredFacetValues_ = ignoredFacetValuesBuilder_.build(); + } + if (mergedFacetValuesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + mergedFacetValues_ = java.util.Collections.unmodifiableList(mergedFacetValues_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.mergedFacetValues_ = mergedFacetValues_; + } else { + result.mergedFacetValues_ = mergedFacetValuesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.retail.v2.CatalogAttribute.FacetConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.mergedFacet_ = + mergedFacetBuilder_ == null ? mergedFacet_ : mergedFacetBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.rerankConfig_ = + rerankConfigBuilder_ == null ? rerankConfig_ : rerankConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.retail.v2.CatalogAttribute.FacetConfig) { + return mergeFrom((com.google.cloud.retail.v2.CatalogAttribute.FacetConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.retail.v2.CatalogAttribute.FacetConfig other) { + if (other == com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.getDefaultInstance()) + return this; + if (facetIntervalsBuilder_ == null) { + if (!other.facetIntervals_.isEmpty()) { + if (facetIntervals_.isEmpty()) { + facetIntervals_ = other.facetIntervals_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFacetIntervalsIsMutable(); + facetIntervals_.addAll(other.facetIntervals_); + } + onChanged(); + } + } else { + if (!other.facetIntervals_.isEmpty()) { + if (facetIntervalsBuilder_.isEmpty()) { + facetIntervalsBuilder_.dispose(); + facetIntervalsBuilder_ = null; + facetIntervals_ = other.facetIntervals_; + bitField0_ = (bitField0_ & ~0x00000001); + facetIntervalsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFacetIntervalsFieldBuilder() + : null; + } else { + facetIntervalsBuilder_.addAllMessages(other.facetIntervals_); + } + } + } + if (ignoredFacetValuesBuilder_ == null) { + if (!other.ignoredFacetValues_.isEmpty()) { + if (ignoredFacetValues_.isEmpty()) { + ignoredFacetValues_ = other.ignoredFacetValues_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureIgnoredFacetValuesIsMutable(); + ignoredFacetValues_.addAll(other.ignoredFacetValues_); + } + onChanged(); + } + } else { + if (!other.ignoredFacetValues_.isEmpty()) { + if (ignoredFacetValuesBuilder_.isEmpty()) { + ignoredFacetValuesBuilder_.dispose(); + ignoredFacetValuesBuilder_ = null; + ignoredFacetValues_ = other.ignoredFacetValues_; + bitField0_ = (bitField0_ & ~0x00000002); + ignoredFacetValuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getIgnoredFacetValuesFieldBuilder() + : null; + } else { + ignoredFacetValuesBuilder_.addAllMessages(other.ignoredFacetValues_); + } + } + } + if (mergedFacetValuesBuilder_ == null) { + if (!other.mergedFacetValues_.isEmpty()) { + if (mergedFacetValues_.isEmpty()) { + mergedFacetValues_ = other.mergedFacetValues_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureMergedFacetValuesIsMutable(); + mergedFacetValues_.addAll(other.mergedFacetValues_); + } + onChanged(); + } + } else { + if (!other.mergedFacetValues_.isEmpty()) { + if (mergedFacetValuesBuilder_.isEmpty()) { + mergedFacetValuesBuilder_.dispose(); + mergedFacetValuesBuilder_ = null; + mergedFacetValues_ = other.mergedFacetValues_; + bitField0_ = (bitField0_ & ~0x00000004); + mergedFacetValuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMergedFacetValuesFieldBuilder() + : null; + } else { + mergedFacetValuesBuilder_.addAllMessages(other.mergedFacetValues_); + } + } + } + if (other.hasMergedFacet()) { + mergeMergedFacet(other.getMergedFacet()); + } + if (other.hasRerankConfig()) { + mergeRerankConfig(other.getRerankConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.retail.v2.Interval m = + input.readMessage( + com.google.cloud.retail.v2.Interval.parser(), extensionRegistry); + if (facetIntervalsBuilder_ == null) { + ensureFacetIntervalsIsMutable(); + facetIntervals_.add(m); + } else { + facetIntervalsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues m = + input.readMessage( + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues + .parser(), + extensionRegistry); + if (ignoredFacetValuesBuilder_ == null) { + ensureIgnoredFacetValuesIsMutable(); + ignoredFacetValues_.add(m); + } else { + ignoredFacetValuesBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue m = + input.readMessage( + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue + .parser(), + extensionRegistry); + if (mergedFacetValuesBuilder_ == null) { + ensureMergedFacetValuesIsMutable(); + mergedFacetValues_.add(m); + } else { + mergedFacetValuesBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + input.readMessage(getMergedFacetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage(getRerankConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List facetIntervals_ = + java.util.Collections.emptyList(); + + private void ensureFacetIntervalsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + facetIntervals_ = + new java.util.ArrayList(facetIntervals_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2.Interval, + com.google.cloud.retail.v2.Interval.Builder, + com.google.cloud.retail.v2.IntervalOrBuilder> + facetIntervalsBuilder_; + + /** + * + * + *
+       * If you don't set the facet
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2.SearchRequest.FacetSpec.FacetKey.intervals]
+       * in the request to a numerical attribute, then we use the computed
+       * intervals with rounded bounds obtained from all its product numerical
+       * attribute values. The computed intervals might not be ideal for some
+       * attributes. Therefore, we give you the option to overwrite them with the
+       * facet_intervals field. The maximum of facet intervals per
+       * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 40. Each
+       * interval must have a lower bound or an upper bound. If both bounds are
+       * provided, then the lower bound must be smaller or equal than the upper
+       * bound.
+       * 
+ * + * repeated .google.cloud.retail.v2.Interval facet_intervals = 1; + */ + public java.util.List getFacetIntervalsList() { + if (facetIntervalsBuilder_ == null) { + return java.util.Collections.unmodifiableList(facetIntervals_); + } else { + return facetIntervalsBuilder_.getMessageList(); + } + } + /** + * + * + *
+       * If you don't set the facet
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2.SearchRequest.FacetSpec.FacetKey.intervals]
+       * in the request to a numerical attribute, then we use the computed
+       * intervals with rounded bounds obtained from all its product numerical
+       * attribute values. The computed intervals might not be ideal for some
+       * attributes. Therefore, we give you the option to overwrite them with the
+       * facet_intervals field. The maximum of facet intervals per
+       * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 40. Each
+       * interval must have a lower bound or an upper bound. If both bounds are
+       * provided, then the lower bound must be smaller or equal than the upper
+       * bound.
+       * 
+ * + * repeated .google.cloud.retail.v2.Interval facet_intervals = 1; + */ + public int getFacetIntervalsCount() { + if (facetIntervalsBuilder_ == null) { + return facetIntervals_.size(); + } else { + return facetIntervalsBuilder_.getCount(); + } + } + /** + * + * + *
+       * If you don't set the facet
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2.SearchRequest.FacetSpec.FacetKey.intervals]
+       * in the request to a numerical attribute, then we use the computed
+       * intervals with rounded bounds obtained from all its product numerical
+       * attribute values. The computed intervals might not be ideal for some
+       * attributes. Therefore, we give you the option to overwrite them with the
+       * facet_intervals field. The maximum of facet intervals per
+       * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 40. Each
+       * interval must have a lower bound or an upper bound. If both bounds are
+       * provided, then the lower bound must be smaller or equal than the upper
+       * bound.
+       * 
+ * + * repeated .google.cloud.retail.v2.Interval facet_intervals = 1; + */ + public com.google.cloud.retail.v2.Interval getFacetIntervals(int index) { + if (facetIntervalsBuilder_ == null) { + return facetIntervals_.get(index); + } else { + return facetIntervalsBuilder_.getMessage(index); + } + } + /** + * + * + *
+       * If you don't set the facet
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2.SearchRequest.FacetSpec.FacetKey.intervals]
+       * in the request to a numerical attribute, then we use the computed
+       * intervals with rounded bounds obtained from all its product numerical
+       * attribute values. The computed intervals might not be ideal for some
+       * attributes. Therefore, we give you the option to overwrite them with the
+       * facet_intervals field. The maximum of facet intervals per
+       * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 40. Each
+       * interval must have a lower bound or an upper bound. If both bounds are
+       * provided, then the lower bound must be smaller or equal than the upper
+       * bound.
+       * 
+ * + * repeated .google.cloud.retail.v2.Interval facet_intervals = 1; + */ + public Builder setFacetIntervals(int index, com.google.cloud.retail.v2.Interval value) { + if (facetIntervalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFacetIntervalsIsMutable(); + facetIntervals_.set(index, value); + onChanged(); + } else { + facetIntervalsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+       * If you don't set the facet
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2.SearchRequest.FacetSpec.FacetKey.intervals]
+       * in the request to a numerical attribute, then we use the computed
+       * intervals with rounded bounds obtained from all its product numerical
+       * attribute values. The computed intervals might not be ideal for some
+       * attributes. Therefore, we give you the option to overwrite them with the
+       * facet_intervals field. The maximum of facet intervals per
+       * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 40. Each
+       * interval must have a lower bound or an upper bound. If both bounds are
+       * provided, then the lower bound must be smaller or equal than the upper
+       * bound.
+       * 
+ * + * repeated .google.cloud.retail.v2.Interval facet_intervals = 1; + */ + public Builder setFacetIntervals( + int index, com.google.cloud.retail.v2.Interval.Builder builderForValue) { + if (facetIntervalsBuilder_ == null) { + ensureFacetIntervalsIsMutable(); + facetIntervals_.set(index, builderForValue.build()); + onChanged(); + } else { + facetIntervalsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * If you don't set the facet
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2.SearchRequest.FacetSpec.FacetKey.intervals]
+       * in the request to a numerical attribute, then we use the computed
+       * intervals with rounded bounds obtained from all its product numerical
+       * attribute values. The computed intervals might not be ideal for some
+       * attributes. Therefore, we give you the option to overwrite them with the
+       * facet_intervals field. The maximum of facet intervals per
+       * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 40. Each
+       * interval must have a lower bound or an upper bound. If both bounds are
+       * provided, then the lower bound must be smaller or equal than the upper
+       * bound.
+       * 
+ * + * repeated .google.cloud.retail.v2.Interval facet_intervals = 1; + */ + public Builder addFacetIntervals(com.google.cloud.retail.v2.Interval value) { + if (facetIntervalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFacetIntervalsIsMutable(); + facetIntervals_.add(value); + onChanged(); + } else { + facetIntervalsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+       * If you don't set the facet
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2.SearchRequest.FacetSpec.FacetKey.intervals]
+       * in the request to a numerical attribute, then we use the computed
+       * intervals with rounded bounds obtained from all its product numerical
+       * attribute values. The computed intervals might not be ideal for some
+       * attributes. Therefore, we give you the option to overwrite them with the
+       * facet_intervals field. The maximum of facet intervals per
+       * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 40. Each
+       * interval must have a lower bound or an upper bound. If both bounds are
+       * provided, then the lower bound must be smaller or equal than the upper
+       * bound.
+       * 
+ * + * repeated .google.cloud.retail.v2.Interval facet_intervals = 1; + */ + public Builder addFacetIntervals(int index, com.google.cloud.retail.v2.Interval value) { + if (facetIntervalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFacetIntervalsIsMutable(); + facetIntervals_.add(index, value); + onChanged(); + } else { + facetIntervalsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+       * If you don't set the facet
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2.SearchRequest.FacetSpec.FacetKey.intervals]
+       * in the request to a numerical attribute, then we use the computed
+       * intervals with rounded bounds obtained from all its product numerical
+       * attribute values. The computed intervals might not be ideal for some
+       * attributes. Therefore, we give you the option to overwrite them with the
+       * facet_intervals field. The maximum of facet intervals per
+       * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 40. Each
+       * interval must have a lower bound or an upper bound. If both bounds are
+       * provided, then the lower bound must be smaller or equal than the upper
+       * bound.
+       * 
+ * + * repeated .google.cloud.retail.v2.Interval facet_intervals = 1; + */ + public Builder addFacetIntervals( + com.google.cloud.retail.v2.Interval.Builder builderForValue) { + if (facetIntervalsBuilder_ == null) { + ensureFacetIntervalsIsMutable(); + facetIntervals_.add(builderForValue.build()); + onChanged(); + } else { + facetIntervalsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * If you don't set the facet
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2.SearchRequest.FacetSpec.FacetKey.intervals]
+       * in the request to a numerical attribute, then we use the computed
+       * intervals with rounded bounds obtained from all its product numerical
+       * attribute values. The computed intervals might not be ideal for some
+       * attributes. Therefore, we give you the option to overwrite them with the
+       * facet_intervals field. The maximum of facet intervals per
+       * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 40. Each
+       * interval must have a lower bound or an upper bound. If both bounds are
+       * provided, then the lower bound must be smaller or equal than the upper
+       * bound.
+       * 
+ * + * repeated .google.cloud.retail.v2.Interval facet_intervals = 1; + */ + public Builder addFacetIntervals( + int index, com.google.cloud.retail.v2.Interval.Builder builderForValue) { + if (facetIntervalsBuilder_ == null) { + ensureFacetIntervalsIsMutable(); + facetIntervals_.add(index, builderForValue.build()); + onChanged(); + } else { + facetIntervalsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * If you don't set the facet
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2.SearchRequest.FacetSpec.FacetKey.intervals]
+       * in the request to a numerical attribute, then we use the computed
+       * intervals with rounded bounds obtained from all its product numerical
+       * attribute values. The computed intervals might not be ideal for some
+       * attributes. Therefore, we give you the option to overwrite them with the
+       * facet_intervals field. The maximum of facet intervals per
+       * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 40. Each
+       * interval must have a lower bound or an upper bound. If both bounds are
+       * provided, then the lower bound must be smaller or equal than the upper
+       * bound.
+       * 
+ * + * repeated .google.cloud.retail.v2.Interval facet_intervals = 1; + */ + public Builder addAllFacetIntervals( + java.lang.Iterable values) { + if (facetIntervalsBuilder_ == null) { + ensureFacetIntervalsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, facetIntervals_); + onChanged(); + } else { + facetIntervalsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+       * If you don't set the facet
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2.SearchRequest.FacetSpec.FacetKey.intervals]
+       * in the request to a numerical attribute, then we use the computed
+       * intervals with rounded bounds obtained from all its product numerical
+       * attribute values. The computed intervals might not be ideal for some
+       * attributes. Therefore, we give you the option to overwrite them with the
+       * facet_intervals field. The maximum of facet intervals per
+       * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 40. Each
+       * interval must have a lower bound or an upper bound. If both bounds are
+       * provided, then the lower bound must be smaller or equal than the upper
+       * bound.
+       * 
+ * + * repeated .google.cloud.retail.v2.Interval facet_intervals = 1; + */ + public Builder clearFacetIntervals() { + if (facetIntervalsBuilder_ == null) { + facetIntervals_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + facetIntervalsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * If you don't set the facet
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2.SearchRequest.FacetSpec.FacetKey.intervals]
+       * in the request to a numerical attribute, then we use the computed
+       * intervals with rounded bounds obtained from all its product numerical
+       * attribute values. The computed intervals might not be ideal for some
+       * attributes. Therefore, we give you the option to overwrite them with the
+       * facet_intervals field. The maximum of facet intervals per
+       * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 40. Each
+       * interval must have a lower bound or an upper bound. If both bounds are
+       * provided, then the lower bound must be smaller or equal than the upper
+       * bound.
+       * 
+ * + * repeated .google.cloud.retail.v2.Interval facet_intervals = 1; + */ + public Builder removeFacetIntervals(int index) { + if (facetIntervalsBuilder_ == null) { + ensureFacetIntervalsIsMutable(); + facetIntervals_.remove(index); + onChanged(); + } else { + facetIntervalsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+       * If you don't set the facet
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2.SearchRequest.FacetSpec.FacetKey.intervals]
+       * in the request to a numerical attribute, then we use the computed
+       * intervals with rounded bounds obtained from all its product numerical
+       * attribute values. The computed intervals might not be ideal for some
+       * attributes. Therefore, we give you the option to overwrite them with the
+       * facet_intervals field. The maximum of facet intervals per
+       * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 40. Each
+       * interval must have a lower bound or an upper bound. If both bounds are
+       * provided, then the lower bound must be smaller or equal than the upper
+       * bound.
+       * 
+ * + * repeated .google.cloud.retail.v2.Interval facet_intervals = 1; + */ + public com.google.cloud.retail.v2.Interval.Builder getFacetIntervalsBuilder(int index) { + return getFacetIntervalsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * If you don't set the facet
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2.SearchRequest.FacetSpec.FacetKey.intervals]
+       * in the request to a numerical attribute, then we use the computed
+       * intervals with rounded bounds obtained from all its product numerical
+       * attribute values. The computed intervals might not be ideal for some
+       * attributes. Therefore, we give you the option to overwrite them with the
+       * facet_intervals field. The maximum of facet intervals per
+       * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 40. Each
+       * interval must have a lower bound or an upper bound. If both bounds are
+       * provided, then the lower bound must be smaller or equal than the upper
+       * bound.
+       * 
+ * + * repeated .google.cloud.retail.v2.Interval facet_intervals = 1; + */ + public com.google.cloud.retail.v2.IntervalOrBuilder getFacetIntervalsOrBuilder(int index) { + if (facetIntervalsBuilder_ == null) { + return facetIntervals_.get(index); + } else { + return facetIntervalsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+       * If you don't set the facet
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2.SearchRequest.FacetSpec.FacetKey.intervals]
+       * in the request to a numerical attribute, then we use the computed
+       * intervals with rounded bounds obtained from all its product numerical
+       * attribute values. The computed intervals might not be ideal for some
+       * attributes. Therefore, we give you the option to overwrite them with the
+       * facet_intervals field. The maximum of facet intervals per
+       * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 40. Each
+       * interval must have a lower bound or an upper bound. If both bounds are
+       * provided, then the lower bound must be smaller or equal than the upper
+       * bound.
+       * 
+ * + * repeated .google.cloud.retail.v2.Interval facet_intervals = 1; + */ + public java.util.List + getFacetIntervalsOrBuilderList() { + if (facetIntervalsBuilder_ != null) { + return facetIntervalsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(facetIntervals_); + } + } + /** + * + * + *
+       * If you don't set the facet
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2.SearchRequest.FacetSpec.FacetKey.intervals]
+       * in the request to a numerical attribute, then we use the computed
+       * intervals with rounded bounds obtained from all its product numerical
+       * attribute values. The computed intervals might not be ideal for some
+       * attributes. Therefore, we give you the option to overwrite them with the
+       * facet_intervals field. The maximum of facet intervals per
+       * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 40. Each
+       * interval must have a lower bound or an upper bound. If both bounds are
+       * provided, then the lower bound must be smaller or equal than the upper
+       * bound.
+       * 
+ * + * repeated .google.cloud.retail.v2.Interval facet_intervals = 1; + */ + public com.google.cloud.retail.v2.Interval.Builder addFacetIntervalsBuilder() { + return getFacetIntervalsFieldBuilder() + .addBuilder(com.google.cloud.retail.v2.Interval.getDefaultInstance()); + } + /** + * + * + *
+       * If you don't set the facet
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2.SearchRequest.FacetSpec.FacetKey.intervals]
+       * in the request to a numerical attribute, then we use the computed
+       * intervals with rounded bounds obtained from all its product numerical
+       * attribute values. The computed intervals might not be ideal for some
+       * attributes. Therefore, we give you the option to overwrite them with the
+       * facet_intervals field. The maximum of facet intervals per
+       * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 40. Each
+       * interval must have a lower bound or an upper bound. If both bounds are
+       * provided, then the lower bound must be smaller or equal than the upper
+       * bound.
+       * 
+ * + * repeated .google.cloud.retail.v2.Interval facet_intervals = 1; + */ + public com.google.cloud.retail.v2.Interval.Builder addFacetIntervalsBuilder(int index) { + return getFacetIntervalsFieldBuilder() + .addBuilder(index, com.google.cloud.retail.v2.Interval.getDefaultInstance()); + } + /** + * + * + *
+       * If you don't set the facet
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2.SearchRequest.FacetSpec.FacetKey.intervals]
+       * in the request to a numerical attribute, then we use the computed
+       * intervals with rounded bounds obtained from all its product numerical
+       * attribute values. The computed intervals might not be ideal for some
+       * attributes. Therefore, we give you the option to overwrite them with the
+       * facet_intervals field. The maximum of facet intervals per
+       * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 40. Each
+       * interval must have a lower bound or an upper bound. If both bounds are
+       * provided, then the lower bound must be smaller or equal than the upper
+       * bound.
+       * 
+ * + * repeated .google.cloud.retail.v2.Interval facet_intervals = 1; + */ + public java.util.List + getFacetIntervalsBuilderList() { + return getFacetIntervalsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2.Interval, + com.google.cloud.retail.v2.Interval.Builder, + com.google.cloud.retail.v2.IntervalOrBuilder> + getFacetIntervalsFieldBuilder() { + if (facetIntervalsBuilder_ == null) { + facetIntervalsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2.Interval, + com.google.cloud.retail.v2.Interval.Builder, + com.google.cloud.retail.v2.IntervalOrBuilder>( + facetIntervals_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + facetIntervals_ = null; + } + return facetIntervalsBuilder_; + } + + private java.util.List< + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues> + ignoredFacetValues_ = java.util.Collections.emptyList(); + + private void ensureIgnoredFacetValuesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + ignoredFacetValues_ = + new java.util.ArrayList< + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues>( + ignoredFacetValues_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues, + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues.Builder, + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValuesOrBuilder> + ignoredFacetValuesBuilder_; + + /** + * + * + *
+       * Each instance represents a list of attribute values to ignore as facet
+       * values for a specific time range. The maximum number of instances per
+       * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 25.
+       * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + public java.util.List< + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues> + getIgnoredFacetValuesList() { + if (ignoredFacetValuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(ignoredFacetValues_); + } else { + return ignoredFacetValuesBuilder_.getMessageList(); + } + } + /** + * + * + *
+       * Each instance represents a list of attribute values to ignore as facet
+       * values for a specific time range. The maximum number of instances per
+       * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 25.
+       * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + public int getIgnoredFacetValuesCount() { + if (ignoredFacetValuesBuilder_ == null) { + return ignoredFacetValues_.size(); + } else { + return ignoredFacetValuesBuilder_.getCount(); + } + } + /** + * + * + *
+       * Each instance represents a list of attribute values to ignore as facet
+       * values for a specific time range. The maximum number of instances per
+       * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 25.
+       * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + public com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues + getIgnoredFacetValues(int index) { + if (ignoredFacetValuesBuilder_ == null) { + return ignoredFacetValues_.get(index); + } else { + return ignoredFacetValuesBuilder_.getMessage(index); + } + } + /** + * + * + *
+       * Each instance represents a list of attribute values to ignore as facet
+       * values for a specific time range. The maximum number of instances per
+       * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 25.
+       * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + public Builder setIgnoredFacetValues( + int index, + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues value) { + if (ignoredFacetValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIgnoredFacetValuesIsMutable(); + ignoredFacetValues_.set(index, value); + onChanged(); + } else { + ignoredFacetValuesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Each instance represents a list of attribute values to ignore as facet
+       * values for a specific time range. The maximum number of instances per
+       * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 25.
+       * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + public Builder setIgnoredFacetValues( + int index, + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues.Builder + builderForValue) { + if (ignoredFacetValuesBuilder_ == null) { + ensureIgnoredFacetValuesIsMutable(); + ignoredFacetValues_.set(index, builderForValue.build()); + onChanged(); + } else { + ignoredFacetValuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Each instance represents a list of attribute values to ignore as facet
+       * values for a specific time range. The maximum number of instances per
+       * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 25.
+       * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + public Builder addIgnoredFacetValues( + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues value) { + if (ignoredFacetValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIgnoredFacetValuesIsMutable(); + ignoredFacetValues_.add(value); + onChanged(); + } else { + ignoredFacetValuesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+       * Each instance represents a list of attribute values to ignore as facet
+       * values for a specific time range. The maximum number of instances per
+       * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 25.
+       * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + public Builder addIgnoredFacetValues( + int index, + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues value) { + if (ignoredFacetValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIgnoredFacetValuesIsMutable(); + ignoredFacetValues_.add(index, value); + onChanged(); + } else { + ignoredFacetValuesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Each instance represents a list of attribute values to ignore as facet
+       * values for a specific time range. The maximum number of instances per
+       * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 25.
+       * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + public Builder addIgnoredFacetValues( + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues.Builder + builderForValue) { + if (ignoredFacetValuesBuilder_ == null) { + ensureIgnoredFacetValuesIsMutable(); + ignoredFacetValues_.add(builderForValue.build()); + onChanged(); + } else { + ignoredFacetValuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Each instance represents a list of attribute values to ignore as facet
+       * values for a specific time range. The maximum number of instances per
+       * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 25.
+       * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + public Builder addIgnoredFacetValues( + int index, + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues.Builder + builderForValue) { + if (ignoredFacetValuesBuilder_ == null) { + ensureIgnoredFacetValuesIsMutable(); + ignoredFacetValues_.add(index, builderForValue.build()); + onChanged(); + } else { + ignoredFacetValuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Each instance represents a list of attribute values to ignore as facet
+       * values for a specific time range. The maximum number of instances per
+       * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 25.
+       * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + public Builder addAllIgnoredFacetValues( + java.lang.Iterable< + ? extends + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues> + values) { + if (ignoredFacetValuesBuilder_ == null) { + ensureIgnoredFacetValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ignoredFacetValues_); + onChanged(); + } else { + ignoredFacetValuesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+       * Each instance represents a list of attribute values to ignore as facet
+       * values for a specific time range. The maximum number of instances per
+       * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 25.
+       * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + public Builder clearIgnoredFacetValues() { + if (ignoredFacetValuesBuilder_ == null) { + ignoredFacetValues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + ignoredFacetValuesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Each instance represents a list of attribute values to ignore as facet
+       * values for a specific time range. The maximum number of instances per
+       * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 25.
+       * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + public Builder removeIgnoredFacetValues(int index) { + if (ignoredFacetValuesBuilder_ == null) { + ensureIgnoredFacetValuesIsMutable(); + ignoredFacetValues_.remove(index); + onChanged(); + } else { + ignoredFacetValuesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+       * Each instance represents a list of attribute values to ignore as facet
+       * values for a specific time range. The maximum number of instances per
+       * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 25.
+       * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + public com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues.Builder + getIgnoredFacetValuesBuilder(int index) { + return getIgnoredFacetValuesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * Each instance represents a list of attribute values to ignore as facet
+       * values for a specific time range. The maximum number of instances per
+       * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 25.
+       * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + public com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValuesOrBuilder + getIgnoredFacetValuesOrBuilder(int index) { + if (ignoredFacetValuesBuilder_ == null) { + return ignoredFacetValues_.get(index); + } else { + return ignoredFacetValuesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+       * Each instance represents a list of attribute values to ignore as facet
+       * values for a specific time range. The maximum number of instances per
+       * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 25.
+       * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + public java.util.List< + ? extends + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig + .IgnoredFacetValuesOrBuilder> + getIgnoredFacetValuesOrBuilderList() { + if (ignoredFacetValuesBuilder_ != null) { + return ignoredFacetValuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(ignoredFacetValues_); + } + } + /** + * + * + *
+       * Each instance represents a list of attribute values to ignore as facet
+       * values for a specific time range. The maximum number of instances per
+       * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 25.
+       * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + public com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues.Builder + addIgnoredFacetValuesBuilder() { + return getIgnoredFacetValuesFieldBuilder() + .addBuilder( + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues + .getDefaultInstance()); + } + /** + * + * + *
+       * Each instance represents a list of attribute values to ignore as facet
+       * values for a specific time range. The maximum number of instances per
+       * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 25.
+       * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + public com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues.Builder + addIgnoredFacetValuesBuilder(int index) { + return getIgnoredFacetValuesFieldBuilder() + .addBuilder( + index, + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues + .getDefaultInstance()); + } + /** + * + * + *
+       * Each instance represents a list of attribute values to ignore as facet
+       * values for a specific time range. The maximum number of instances per
+       * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 25.
+       * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + public java.util.List< + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues.Builder> + getIgnoredFacetValuesBuilderList() { + return getIgnoredFacetValuesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues, + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues.Builder, + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValuesOrBuilder> + getIgnoredFacetValuesFieldBuilder() { + if (ignoredFacetValuesBuilder_ == null) { + ignoredFacetValuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues, + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues + .Builder, + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig + .IgnoredFacetValuesOrBuilder>( + ignoredFacetValues_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + ignoredFacetValues_ = null; + } + return ignoredFacetValuesBuilder_; + } + + private java.util.List< + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue> + mergedFacetValues_ = java.util.Collections.emptyList(); + + private void ensureMergedFacetValuesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + mergedFacetValues_ = + new java.util.ArrayList< + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue>( + mergedFacetValues_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue, + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue.Builder, + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValueOrBuilder> + mergedFacetValuesBuilder_; + + /** + * + * + *
+       * Each instance replaces a list of facet values by a merged facet
+       * value. If a facet value is not in any list, then it will stay the same.
+       * To avoid conflicts, only paths of length 1 are accepted. In other words,
+       * if "dark_blue" merged into "BLUE", then the latter can't merge into
+       * "blues" because this would create a path of length 2. The maximum number
+       * of instances of MergedFacetValue per
+       * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 100. This
+       * feature is available only for textual custom attributes.
+       * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + public java.util.List< + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue> + getMergedFacetValuesList() { + if (mergedFacetValuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(mergedFacetValues_); + } else { + return mergedFacetValuesBuilder_.getMessageList(); + } + } + /** + * + * + *
+       * Each instance replaces a list of facet values by a merged facet
+       * value. If a facet value is not in any list, then it will stay the same.
+       * To avoid conflicts, only paths of length 1 are accepted. In other words,
+       * if "dark_blue" merged into "BLUE", then the latter can't merge into
+       * "blues" because this would create a path of length 2. The maximum number
+       * of instances of MergedFacetValue per
+       * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 100. This
+       * feature is available only for textual custom attributes.
+       * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + public int getMergedFacetValuesCount() { + if (mergedFacetValuesBuilder_ == null) { + return mergedFacetValues_.size(); + } else { + return mergedFacetValuesBuilder_.getCount(); + } + } + /** + * + * + *
+       * Each instance replaces a list of facet values by a merged facet
+       * value. If a facet value is not in any list, then it will stay the same.
+       * To avoid conflicts, only paths of length 1 are accepted. In other words,
+       * if "dark_blue" merged into "BLUE", then the latter can't merge into
+       * "blues" because this would create a path of length 2. The maximum number
+       * of instances of MergedFacetValue per
+       * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 100. This
+       * feature is available only for textual custom attributes.
+       * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + public com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue + getMergedFacetValues(int index) { + if (mergedFacetValuesBuilder_ == null) { + return mergedFacetValues_.get(index); + } else { + return mergedFacetValuesBuilder_.getMessage(index); + } + } + /** + * + * + *
+       * Each instance replaces a list of facet values by a merged facet
+       * value. If a facet value is not in any list, then it will stay the same.
+       * To avoid conflicts, only paths of length 1 are accepted. In other words,
+       * if "dark_blue" merged into "BLUE", then the latter can't merge into
+       * "blues" because this would create a path of length 2. The maximum number
+       * of instances of MergedFacetValue per
+       * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 100. This
+       * feature is available only for textual custom attributes.
+       * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + public Builder setMergedFacetValues( + int index, + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue value) { + if (mergedFacetValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMergedFacetValuesIsMutable(); + mergedFacetValues_.set(index, value); + onChanged(); + } else { + mergedFacetValuesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Each instance replaces a list of facet values by a merged facet
+       * value. If a facet value is not in any list, then it will stay the same.
+       * To avoid conflicts, only paths of length 1 are accepted. In other words,
+       * if "dark_blue" merged into "BLUE", then the latter can't merge into
+       * "blues" because this would create a path of length 2. The maximum number
+       * of instances of MergedFacetValue per
+       * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 100. This
+       * feature is available only for textual custom attributes.
+       * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + public Builder setMergedFacetValues( + int index, + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue.Builder + builderForValue) { + if (mergedFacetValuesBuilder_ == null) { + ensureMergedFacetValuesIsMutable(); + mergedFacetValues_.set(index, builderForValue.build()); + onChanged(); + } else { + mergedFacetValuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Each instance replaces a list of facet values by a merged facet
+       * value. If a facet value is not in any list, then it will stay the same.
+       * To avoid conflicts, only paths of length 1 are accepted. In other words,
+       * if "dark_blue" merged into "BLUE", then the latter can't merge into
+       * "blues" because this would create a path of length 2. The maximum number
+       * of instances of MergedFacetValue per
+       * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 100. This
+       * feature is available only for textual custom attributes.
+       * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + public Builder addMergedFacetValues( + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue value) { + if (mergedFacetValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMergedFacetValuesIsMutable(); + mergedFacetValues_.add(value); + onChanged(); + } else { + mergedFacetValuesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+       * Each instance replaces a list of facet values by a merged facet
+       * value. If a facet value is not in any list, then it will stay the same.
+       * To avoid conflicts, only paths of length 1 are accepted. In other words,
+       * if "dark_blue" merged into "BLUE", then the latter can't merge into
+       * "blues" because this would create a path of length 2. The maximum number
+       * of instances of MergedFacetValue per
+       * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 100. This
+       * feature is available only for textual custom attributes.
+       * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + public Builder addMergedFacetValues( + int index, + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue value) { + if (mergedFacetValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMergedFacetValuesIsMutable(); + mergedFacetValues_.add(index, value); + onChanged(); + } else { + mergedFacetValuesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Each instance replaces a list of facet values by a merged facet
+       * value. If a facet value is not in any list, then it will stay the same.
+       * To avoid conflicts, only paths of length 1 are accepted. In other words,
+       * if "dark_blue" merged into "BLUE", then the latter can't merge into
+       * "blues" because this would create a path of length 2. The maximum number
+       * of instances of MergedFacetValue per
+       * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 100. This
+       * feature is available only for textual custom attributes.
+       * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + public Builder addMergedFacetValues( + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue.Builder + builderForValue) { + if (mergedFacetValuesBuilder_ == null) { + ensureMergedFacetValuesIsMutable(); + mergedFacetValues_.add(builderForValue.build()); + onChanged(); + } else { + mergedFacetValuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Each instance replaces a list of facet values by a merged facet
+       * value. If a facet value is not in any list, then it will stay the same.
+       * To avoid conflicts, only paths of length 1 are accepted. In other words,
+       * if "dark_blue" merged into "BLUE", then the latter can't merge into
+       * "blues" because this would create a path of length 2. The maximum number
+       * of instances of MergedFacetValue per
+       * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 100. This
+       * feature is available only for textual custom attributes.
+       * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + public Builder addMergedFacetValues( + int index, + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue.Builder + builderForValue) { + if (mergedFacetValuesBuilder_ == null) { + ensureMergedFacetValuesIsMutable(); + mergedFacetValues_.add(index, builderForValue.build()); + onChanged(); + } else { + mergedFacetValuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Each instance replaces a list of facet values by a merged facet
+       * value. If a facet value is not in any list, then it will stay the same.
+       * To avoid conflicts, only paths of length 1 are accepted. In other words,
+       * if "dark_blue" merged into "BLUE", then the latter can't merge into
+       * "blues" because this would create a path of length 2. The maximum number
+       * of instances of MergedFacetValue per
+       * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 100. This
+       * feature is available only for textual custom attributes.
+       * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + public Builder addAllMergedFacetValues( + java.lang.Iterable< + ? extends + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue> + values) { + if (mergedFacetValuesBuilder_ == null) { + ensureMergedFacetValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mergedFacetValues_); + onChanged(); + } else { + mergedFacetValuesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+       * Each instance replaces a list of facet values by a merged facet
+       * value. If a facet value is not in any list, then it will stay the same.
+       * To avoid conflicts, only paths of length 1 are accepted. In other words,
+       * if "dark_blue" merged into "BLUE", then the latter can't merge into
+       * "blues" because this would create a path of length 2. The maximum number
+       * of instances of MergedFacetValue per
+       * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 100. This
+       * feature is available only for textual custom attributes.
+       * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + public Builder clearMergedFacetValues() { + if (mergedFacetValuesBuilder_ == null) { + mergedFacetValues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + mergedFacetValuesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Each instance replaces a list of facet values by a merged facet
+       * value. If a facet value is not in any list, then it will stay the same.
+       * To avoid conflicts, only paths of length 1 are accepted. In other words,
+       * if "dark_blue" merged into "BLUE", then the latter can't merge into
+       * "blues" because this would create a path of length 2. The maximum number
+       * of instances of MergedFacetValue per
+       * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 100. This
+       * feature is available only for textual custom attributes.
+       * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + public Builder removeMergedFacetValues(int index) { + if (mergedFacetValuesBuilder_ == null) { + ensureMergedFacetValuesIsMutable(); + mergedFacetValues_.remove(index); + onChanged(); + } else { + mergedFacetValuesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+       * Each instance replaces a list of facet values by a merged facet
+       * value. If a facet value is not in any list, then it will stay the same.
+       * To avoid conflicts, only paths of length 1 are accepted. In other words,
+       * if "dark_blue" merged into "BLUE", then the latter can't merge into
+       * "blues" because this would create a path of length 2. The maximum number
+       * of instances of MergedFacetValue per
+       * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 100. This
+       * feature is available only for textual custom attributes.
+       * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + public com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue.Builder + getMergedFacetValuesBuilder(int index) { + return getMergedFacetValuesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * Each instance replaces a list of facet values by a merged facet
+       * value. If a facet value is not in any list, then it will stay the same.
+       * To avoid conflicts, only paths of length 1 are accepted. In other words,
+       * if "dark_blue" merged into "BLUE", then the latter can't merge into
+       * "blues" because this would create a path of length 2. The maximum number
+       * of instances of MergedFacetValue per
+       * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 100. This
+       * feature is available only for textual custom attributes.
+       * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + public com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValueOrBuilder + getMergedFacetValuesOrBuilder(int index) { + if (mergedFacetValuesBuilder_ == null) { + return mergedFacetValues_.get(index); + } else { + return mergedFacetValuesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+       * Each instance replaces a list of facet values by a merged facet
+       * value. If a facet value is not in any list, then it will stay the same.
+       * To avoid conflicts, only paths of length 1 are accepted. In other words,
+       * if "dark_blue" merged into "BLUE", then the latter can't merge into
+       * "blues" because this would create a path of length 2. The maximum number
+       * of instances of MergedFacetValue per
+       * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 100. This
+       * feature is available only for textual custom attributes.
+       * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + public java.util.List< + ? extends + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValueOrBuilder> + getMergedFacetValuesOrBuilderList() { + if (mergedFacetValuesBuilder_ != null) { + return mergedFacetValuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(mergedFacetValues_); + } + } + /** + * + * + *
+       * Each instance replaces a list of facet values by a merged facet
+       * value. If a facet value is not in any list, then it will stay the same.
+       * To avoid conflicts, only paths of length 1 are accepted. In other words,
+       * if "dark_blue" merged into "BLUE", then the latter can't merge into
+       * "blues" because this would create a path of length 2. The maximum number
+       * of instances of MergedFacetValue per
+       * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 100. This
+       * feature is available only for textual custom attributes.
+       * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + public com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue.Builder + addMergedFacetValuesBuilder() { + return getMergedFacetValuesFieldBuilder() + .addBuilder( + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue + .getDefaultInstance()); + } + /** + * + * + *
+       * Each instance replaces a list of facet values by a merged facet
+       * value. If a facet value is not in any list, then it will stay the same.
+       * To avoid conflicts, only paths of length 1 are accepted. In other words,
+       * if "dark_blue" merged into "BLUE", then the latter can't merge into
+       * "blues" because this would create a path of length 2. The maximum number
+       * of instances of MergedFacetValue per
+       * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 100. This
+       * feature is available only for textual custom attributes.
+       * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + public com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue.Builder + addMergedFacetValuesBuilder(int index) { + return getMergedFacetValuesFieldBuilder() + .addBuilder( + index, + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue + .getDefaultInstance()); + } + /** + * + * + *
+       * Each instance replaces a list of facet values by a merged facet
+       * value. If a facet value is not in any list, then it will stay the same.
+       * To avoid conflicts, only paths of length 1 are accepted. In other words,
+       * if "dark_blue" merged into "BLUE", then the latter can't merge into
+       * "blues" because this would create a path of length 2. The maximum number
+       * of instances of MergedFacetValue per
+       * [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 100. This
+       * feature is available only for textual custom attributes.
+       * 
+ * + * + * repeated .google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + public java.util.List< + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue.Builder> + getMergedFacetValuesBuilderList() { + return getMergedFacetValuesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue, + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue.Builder, + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValueOrBuilder> + getMergedFacetValuesFieldBuilder() { + if (mergedFacetValuesBuilder_ == null) { + mergedFacetValuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue, + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue.Builder, + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig + .MergedFacetValueOrBuilder>( + mergedFacetValues_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + mergedFacetValues_ = null; + } + return mergedFacetValuesBuilder_; + } + + private com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet mergedFacet_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet, + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet.Builder, + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetOrBuilder> + mergedFacetBuilder_; + /** + * + * + *
+       * Use this field only if you want to merge a facet key into another facet
+       * key.
+       * 
+ * + * .google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet merged_facet = 4; + * + * + * @return Whether the mergedFacet field is set. + */ + public boolean hasMergedFacet() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+       * Use this field only if you want to merge a facet key into another facet
+       * key.
+       * 
+ * + * .google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet merged_facet = 4; + * + * + * @return The mergedFacet. + */ + public com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet getMergedFacet() { + if (mergedFacetBuilder_ == null) { + return mergedFacet_ == null + ? com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet + .getDefaultInstance() + : mergedFacet_; + } else { + return mergedFacetBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Use this field only if you want to merge a facet key into another facet
+       * key.
+       * 
+ * + * .google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet merged_facet = 4; + * + */ + public Builder setMergedFacet( + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet value) { + if (mergedFacetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mergedFacet_ = value; + } else { + mergedFacetBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+       * Use this field only if you want to merge a facet key into another facet
+       * key.
+       * 
+ * + * .google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet merged_facet = 4; + * + */ + public Builder setMergedFacet( + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet.Builder + builderForValue) { + if (mergedFacetBuilder_ == null) { + mergedFacet_ = builderForValue.build(); + } else { + mergedFacetBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+       * Use this field only if you want to merge a facet key into another facet
+       * key.
+       * 
+ * + * .google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet merged_facet = 4; + * + */ + public Builder mergeMergedFacet( + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet value) { + if (mergedFacetBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && mergedFacet_ != null + && mergedFacet_ + != com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet + .getDefaultInstance()) { + getMergedFacetBuilder().mergeFrom(value); + } else { + mergedFacet_ = value; + } + } else { + mergedFacetBuilder_.mergeFrom(value); + } + if (mergedFacet_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
+       * Use this field only if you want to merge a facet key into another facet
+       * key.
+       * 
+ * + * .google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet merged_facet = 4; + * + */ + public Builder clearMergedFacet() { + bitField0_ = (bitField0_ & ~0x00000008); + mergedFacet_ = null; + if (mergedFacetBuilder_ != null) { + mergedFacetBuilder_.dispose(); + mergedFacetBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * Use this field only if you want to merge a facet key into another facet
+       * key.
+       * 
+ * + * .google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet merged_facet = 4; + * + */ + public com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet.Builder + getMergedFacetBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getMergedFacetFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Use this field only if you want to merge a facet key into another facet
+       * key.
+       * 
+ * + * .google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet merged_facet = 4; + * + */ + public com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetOrBuilder + getMergedFacetOrBuilder() { + if (mergedFacetBuilder_ != null) { + return mergedFacetBuilder_.getMessageOrBuilder(); + } else { + return mergedFacet_ == null + ? com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet + .getDefaultInstance() + : mergedFacet_; + } + } + /** + * + * + *
+       * Use this field only if you want to merge a facet key into another facet
+       * key.
+       * 
+ * + * .google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet merged_facet = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet, + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet.Builder, + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetOrBuilder> + getMergedFacetFieldBuilder() { + if (mergedFacetBuilder_ == null) { + mergedFacetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet, + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet.Builder, + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetOrBuilder>( + getMergedFacet(), getParentForChildren(), isClean()); + mergedFacet_ = null; + } + return mergedFacetBuilder_; + } + + private com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig rerankConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig, + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig.Builder, + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfigOrBuilder> + rerankConfigBuilder_; + /** + * + * + *
+       * Set this field only if you want to rerank based on facet values engaged
+       * by the user for the current key. This option is only possible for custom
+       * facetable textual keys.
+       * 
+ * + * .google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig rerank_config = 5; + * + * + * @return Whether the rerankConfig field is set. + */ + public boolean hasRerankConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+       * Set this field only if you want to rerank based on facet values engaged
+       * by the user for the current key. This option is only possible for custom
+       * facetable textual keys.
+       * 
+ * + * .google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig rerank_config = 5; + * + * + * @return The rerankConfig. + */ + public com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig + getRerankConfig() { + if (rerankConfigBuilder_ == null) { + return rerankConfig_ == null + ? com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig + .getDefaultInstance() + : rerankConfig_; + } else { + return rerankConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Set this field only if you want to rerank based on facet values engaged
+       * by the user for the current key. This option is only possible for custom
+       * facetable textual keys.
+       * 
+ * + * .google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig rerank_config = 5; + * + */ + public Builder setRerankConfig( + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig value) { + if (rerankConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rerankConfig_ = value; + } else { + rerankConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+       * Set this field only if you want to rerank based on facet values engaged
+       * by the user for the current key. This option is only possible for custom
+       * facetable textual keys.
+       * 
+ * + * .google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig rerank_config = 5; + * + */ + public Builder setRerankConfig( + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig.Builder + builderForValue) { + if (rerankConfigBuilder_ == null) { + rerankConfig_ = builderForValue.build(); + } else { + rerankConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+       * Set this field only if you want to rerank based on facet values engaged
+       * by the user for the current key. This option is only possible for custom
+       * facetable textual keys.
+       * 
+ * + * .google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig rerank_config = 5; + * + */ + public Builder mergeRerankConfig( + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig value) { + if (rerankConfigBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && rerankConfig_ != null + && rerankConfig_ + != com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig + .getDefaultInstance()) { + getRerankConfigBuilder().mergeFrom(value); + } else { + rerankConfig_ = value; + } + } else { + rerankConfigBuilder_.mergeFrom(value); + } + if (rerankConfig_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
+       * Set this field only if you want to rerank based on facet values engaged
+       * by the user for the current key. This option is only possible for custom
+       * facetable textual keys.
+       * 
+ * + * .google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig rerank_config = 5; + * + */ + public Builder clearRerankConfig() { + bitField0_ = (bitField0_ & ~0x00000010); + rerankConfig_ = null; + if (rerankConfigBuilder_ != null) { + rerankConfigBuilder_.dispose(); + rerankConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * Set this field only if you want to rerank based on facet values engaged
+       * by the user for the current key. This option is only possible for custom
+       * facetable textual keys.
+       * 
+ * + * .google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig rerank_config = 5; + * + */ + public com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig.Builder + getRerankConfigBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getRerankConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Set this field only if you want to rerank based on facet values engaged
+       * by the user for the current key. This option is only possible for custom
+       * facetable textual keys.
+       * 
+ * + * .google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig rerank_config = 5; + * + */ + public com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfigOrBuilder + getRerankConfigOrBuilder() { + if (rerankConfigBuilder_ != null) { + return rerankConfigBuilder_.getMessageOrBuilder(); + } else { + return rerankConfig_ == null + ? com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig + .getDefaultInstance() + : rerankConfig_; + } + } + /** + * + * + *
+       * Set this field only if you want to rerank based on facet values engaged
+       * by the user for the current key. This option is only possible for custom
+       * facetable textual keys.
+       * 
+ * + * .google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig rerank_config = 5; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig, + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig.Builder, + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfigOrBuilder> + getRerankConfigFieldBuilder() { + if (rerankConfigBuilder_ == null) { + rerankConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig, + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig.Builder, + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfigOrBuilder>( + getRerankConfig(), getParentForChildren(), isClean()); + rerankConfig_ = null; + } + return rerankConfigBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2.CatalogAttribute.FacetConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2.CatalogAttribute.FacetConfig) + private static final com.google.cloud.retail.v2.CatalogAttribute.FacetConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.retail.v2.CatalogAttribute.FacetConfig(); + } + + public static com.google.cloud.retail.v2.CatalogAttribute.FacetConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FacetConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2.CatalogAttribute.FacetConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; public static final int KEY_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -1197,7 +8999,9 @@ public com.google.cloud.retail.v2.CatalogAttribute.AttributeType getType() { * are indexed so that it can be filtered, faceted, or boosted in * [SearchService.Search][google.cloud.retail.v2.SearchService.Search]. * - * Must be specified, otherwise throws INVALID_FORMAT error. + * Must be specified when + * [AttributesConfig.attribute_config_level][google.cloud.retail.v2.AttributesConfig.attribute_config_level] + * is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. *
* * .google.cloud.retail.v2.CatalogAttribute.IndexableOption indexable_option = 5; @@ -1218,7 +9022,9 @@ public int getIndexableOptionValue() { * are indexed so that it can be filtered, faceted, or boosted in * [SearchService.Search][google.cloud.retail.v2.SearchService.Search]. * - * Must be specified, otherwise throws INVALID_FORMAT error. + * Must be specified when + * [AttributesConfig.attribute_config_level][google.cloud.retail.v2.AttributesConfig.attribute_config_level] + * is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. *
* * .google.cloud.retail.v2.CatalogAttribute.IndexableOption indexable_option = 5; @@ -1304,7 +9110,9 @@ public int getDynamicFacetableOptionValue() { * [SearchService.Search][google.cloud.retail.v2.SearchService.Search], as * there are no text values associated to numerical attributes. * - * Must be specified, otherwise throws INVALID_FORMAT error. + * Must be specified, when + * [AttributesConfig.attribute_config_level][google.cloud.retail.v2.AttributesConfig.attribute_config_level] + * is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. *
* * .google.cloud.retail.v2.CatalogAttribute.SearchableOption searchable_option = 7; @@ -1330,7 +9138,9 @@ public int getSearchableOptionValue() { * [SearchService.Search][google.cloud.retail.v2.SearchService.Search], as * there are no text values associated to numerical attributes. * - * Must be specified, otherwise throws INVALID_FORMAT error. + * Must be specified, when + * [AttributesConfig.attribute_config_level][google.cloud.retail.v2.AttributesConfig.attribute_config_level] + * is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. *
* * .google.cloud.retail.v2.CatalogAttribute.SearchableOption searchable_option = 7; @@ -1440,6 +9250,57 @@ public com.google.cloud.retail.v2.CatalogAttribute.RetrievableOption getRetrieva : result; } + public static final int FACET_CONFIG_FIELD_NUMBER = 13; + private com.google.cloud.retail.v2.CatalogAttribute.FacetConfig facetConfig_; + /** + * + * + *
+   * Contains facet options.
+   * 
+ * + * .google.cloud.retail.v2.CatalogAttribute.FacetConfig facet_config = 13; + * + * @return Whether the facetConfig field is set. + */ + @java.lang.Override + public boolean hasFacetConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Contains facet options.
+   * 
+ * + * .google.cloud.retail.v2.CatalogAttribute.FacetConfig facet_config = 13; + * + * @return The facetConfig. + */ + @java.lang.Override + public com.google.cloud.retail.v2.CatalogAttribute.FacetConfig getFacetConfig() { + return facetConfig_ == null + ? com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.getDefaultInstance() + : facetConfig_; + } + /** + * + * + *
+   * Contains facet options.
+   * 
+ * + * .google.cloud.retail.v2.CatalogAttribute.FacetConfig facet_config = 13; + */ + @java.lang.Override + public com.google.cloud.retail.v2.CatalogAttribute.FacetConfigOrBuilder + getFacetConfigOrBuilder() { + return facetConfig_ == null + ? com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.getDefaultInstance() + : facetConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1492,6 +9353,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(12, retrievableOption_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(13, getFacetConfig()); + } getUnknownFields().writeTo(output); } @@ -1539,6 +9403,9 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, retrievableOption_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getFacetConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1563,6 +9430,10 @@ public boolean equals(final java.lang.Object obj) { if (searchableOption_ != other.searchableOption_) return false; if (exactSearchableOption_ != other.exactSearchableOption_) return false; if (retrievableOption_ != other.retrievableOption_) return false; + if (hasFacetConfig() != other.hasFacetConfig()) return false; + if (hasFacetConfig()) { + if (!getFacetConfig().equals(other.getFacetConfig())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1590,6 +9461,10 @@ public int hashCode() { hash = (53 * hash) + exactSearchableOption_; hash = (37 * hash) + RETRIEVABLE_OPTION_FIELD_NUMBER; hash = (53 * hash) + retrievableOption_; + if (hasFacetConfig()) { + hash = (37 * hash) + FACET_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getFacetConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1720,10 +9595,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.retail.v2.CatalogAttribute.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getFacetConfigFieldBuilder(); + } } @java.lang.Override @@ -1738,6 +9622,11 @@ public Builder clear() { searchableOption_ = 0; exactSearchableOption_ = 0; retrievableOption_ = 0; + facetConfig_ = null; + if (facetConfigBuilder_ != null) { + facetConfigBuilder_.dispose(); + facetConfigBuilder_ = null; + } return this; } @@ -1798,6 +9687,13 @@ private void buildPartial0(com.google.cloud.retail.v2.CatalogAttribute result) { if (((from_bitField0_ & 0x00000080) != 0)) { result.retrievableOption_ = retrievableOption_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000100) != 0)) { + result.facetConfig_ = + facetConfigBuilder_ == null ? facetConfig_ : facetConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1871,6 +9767,9 @@ public Builder mergeFrom(com.google.cloud.retail.v2.CatalogAttribute other) { if (other.retrievableOption_ != 0) { setRetrievableOptionValue(other.getRetrievableOptionValue()); } + if (other.hasFacetConfig()) { + mergeFacetConfig(other.getFacetConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1945,6 +9844,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000080; break; } // case 96 + case 106: + { + input.readMessage(getFacetConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 106 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2357,7 +10262,9 @@ public Builder clearType() { * are indexed so that it can be filtered, faceted, or boosted in * [SearchService.Search][google.cloud.retail.v2.SearchService.Search]. * - * Must be specified, otherwise throws INVALID_FORMAT error. + * Must be specified when + * [AttributesConfig.attribute_config_level][google.cloud.retail.v2.AttributesConfig.attribute_config_level] + * is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. *
* * .google.cloud.retail.v2.CatalogAttribute.IndexableOption indexable_option = 5; @@ -2378,7 +10285,9 @@ public int getIndexableOptionValue() { * are indexed so that it can be filtered, faceted, or boosted in * [SearchService.Search][google.cloud.retail.v2.SearchService.Search]. * - * Must be specified, otherwise throws INVALID_FORMAT error. + * Must be specified when + * [AttributesConfig.attribute_config_level][google.cloud.retail.v2.AttributesConfig.attribute_config_level] + * is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. *
* * .google.cloud.retail.v2.CatalogAttribute.IndexableOption indexable_option = 5; @@ -2402,7 +10311,9 @@ public Builder setIndexableOptionValue(int value) { * are indexed so that it can be filtered, faceted, or boosted in * [SearchService.Search][google.cloud.retail.v2.SearchService.Search]. * - * Must be specified, otherwise throws INVALID_FORMAT error. + * Must be specified when + * [AttributesConfig.attribute_config_level][google.cloud.retail.v2.AttributesConfig.attribute_config_level] + * is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. *
* * .google.cloud.retail.v2.CatalogAttribute.IndexableOption indexable_option = 5; @@ -2427,7 +10338,9 @@ public com.google.cloud.retail.v2.CatalogAttribute.IndexableOption getIndexableO * are indexed so that it can be filtered, faceted, or boosted in * [SearchService.Search][google.cloud.retail.v2.SearchService.Search]. * - * Must be specified, otherwise throws INVALID_FORMAT error. + * Must be specified when + * [AttributesConfig.attribute_config_level][google.cloud.retail.v2.AttributesConfig.attribute_config_level] + * is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. *
* * .google.cloud.retail.v2.CatalogAttribute.IndexableOption indexable_option = 5; @@ -2455,7 +10368,9 @@ public Builder setIndexableOption( * are indexed so that it can be filtered, faceted, or boosted in * [SearchService.Search][google.cloud.retail.v2.SearchService.Search]. * - * Must be specified, otherwise throws INVALID_FORMAT error. + * Must be specified when + * [AttributesConfig.attribute_config_level][google.cloud.retail.v2.AttributesConfig.attribute_config_level] + * is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. *
* * .google.cloud.retail.v2.CatalogAttribute.IndexableOption indexable_option = 5; @@ -2615,7 +10530,9 @@ public Builder clearDynamicFacetableOption() { * [SearchService.Search][google.cloud.retail.v2.SearchService.Search], as * there are no text values associated to numerical attributes. * - * Must be specified, otherwise throws INVALID_FORMAT error. + * Must be specified, when + * [AttributesConfig.attribute_config_level][google.cloud.retail.v2.AttributesConfig.attribute_config_level] + * is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. *
* * .google.cloud.retail.v2.CatalogAttribute.SearchableOption searchable_option = 7; @@ -2641,7 +10558,9 @@ public int getSearchableOptionValue() { * [SearchService.Search][google.cloud.retail.v2.SearchService.Search], as * there are no text values associated to numerical attributes. * - * Must be specified, otherwise throws INVALID_FORMAT error. + * Must be specified, when + * [AttributesConfig.attribute_config_level][google.cloud.retail.v2.AttributesConfig.attribute_config_level] + * is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. *
* * .google.cloud.retail.v2.CatalogAttribute.SearchableOption searchable_option = 7; @@ -2670,7 +10589,9 @@ public Builder setSearchableOptionValue(int value) { * [SearchService.Search][google.cloud.retail.v2.SearchService.Search], as * there are no text values associated to numerical attributes. * - * Must be specified, otherwise throws INVALID_FORMAT error. + * Must be specified, when + * [AttributesConfig.attribute_config_level][google.cloud.retail.v2.AttributesConfig.attribute_config_level] + * is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. *
* * .google.cloud.retail.v2.CatalogAttribute.SearchableOption searchable_option = 7; @@ -2700,7 +10621,9 @@ public com.google.cloud.retail.v2.CatalogAttribute.SearchableOption getSearchabl * [SearchService.Search][google.cloud.retail.v2.SearchService.Search], as * there are no text values associated to numerical attributes. * - * Must be specified, otherwise throws INVALID_FORMAT error. + * Must be specified, when + * [AttributesConfig.attribute_config_level][google.cloud.retail.v2.AttributesConfig.attribute_config_level] + * is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. *
* * .google.cloud.retail.v2.CatalogAttribute.SearchableOption searchable_option = 7; @@ -2733,7 +10656,9 @@ public Builder setSearchableOption( * [SearchService.Search][google.cloud.retail.v2.SearchService.Search], as * there are no text values associated to numerical attributes. * - * Must be specified, otherwise throws INVALID_FORMAT error. + * Must be specified, when + * [AttributesConfig.attribute_config_level][google.cloud.retail.v2.AttributesConfig.attribute_config_level] + * is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. *
* * .google.cloud.retail.v2.CatalogAttribute.SearchableOption searchable_option = 7; @@ -2981,6 +10906,194 @@ public Builder clearRetrievableOption() { return this; } + private com.google.cloud.retail.v2.CatalogAttribute.FacetConfig facetConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig, + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.Builder, + com.google.cloud.retail.v2.CatalogAttribute.FacetConfigOrBuilder> + facetConfigBuilder_; + /** + * + * + *
+     * Contains facet options.
+     * 
+ * + * .google.cloud.retail.v2.CatalogAttribute.FacetConfig facet_config = 13; + * + * @return Whether the facetConfig field is set. + */ + public boolean hasFacetConfig() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * + * + *
+     * Contains facet options.
+     * 
+ * + * .google.cloud.retail.v2.CatalogAttribute.FacetConfig facet_config = 13; + * + * @return The facetConfig. + */ + public com.google.cloud.retail.v2.CatalogAttribute.FacetConfig getFacetConfig() { + if (facetConfigBuilder_ == null) { + return facetConfig_ == null + ? com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.getDefaultInstance() + : facetConfig_; + } else { + return facetConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Contains facet options.
+     * 
+ * + * .google.cloud.retail.v2.CatalogAttribute.FacetConfig facet_config = 13; + */ + public Builder setFacetConfig(com.google.cloud.retail.v2.CatalogAttribute.FacetConfig value) { + if (facetConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + facetConfig_ = value; + } else { + facetConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * Contains facet options.
+     * 
+ * + * .google.cloud.retail.v2.CatalogAttribute.FacetConfig facet_config = 13; + */ + public Builder setFacetConfig( + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.Builder builderForValue) { + if (facetConfigBuilder_ == null) { + facetConfig_ = builderForValue.build(); + } else { + facetConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * Contains facet options.
+     * 
+ * + * .google.cloud.retail.v2.CatalogAttribute.FacetConfig facet_config = 13; + */ + public Builder mergeFacetConfig(com.google.cloud.retail.v2.CatalogAttribute.FacetConfig value) { + if (facetConfigBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && facetConfig_ != null + && facetConfig_ + != com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.getDefaultInstance()) { + getFacetConfigBuilder().mergeFrom(value); + } else { + facetConfig_ = value; + } + } else { + facetConfigBuilder_.mergeFrom(value); + } + if (facetConfig_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Contains facet options.
+     * 
+ * + * .google.cloud.retail.v2.CatalogAttribute.FacetConfig facet_config = 13; + */ + public Builder clearFacetConfig() { + bitField0_ = (bitField0_ & ~0x00000100); + facetConfig_ = null; + if (facetConfigBuilder_ != null) { + facetConfigBuilder_.dispose(); + facetConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Contains facet options.
+     * 
+ * + * .google.cloud.retail.v2.CatalogAttribute.FacetConfig facet_config = 13; + */ + public com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.Builder getFacetConfigBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getFacetConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Contains facet options.
+     * 
+ * + * .google.cloud.retail.v2.CatalogAttribute.FacetConfig facet_config = 13; + */ + public com.google.cloud.retail.v2.CatalogAttribute.FacetConfigOrBuilder + getFacetConfigOrBuilder() { + if (facetConfigBuilder_ != null) { + return facetConfigBuilder_.getMessageOrBuilder(); + } else { + return facetConfig_ == null + ? com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.getDefaultInstance() + : facetConfig_; + } + } + /** + * + * + *
+     * Contains facet options.
+     * 
+ * + * .google.cloud.retail.v2.CatalogAttribute.FacetConfig facet_config = 13; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig, + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.Builder, + com.google.cloud.retail.v2.CatalogAttribute.FacetConfigOrBuilder> + getFacetConfigFieldBuilder() { + if (facetConfigBuilder_ == null) { + facetConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig, + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig.Builder, + com.google.cloud.retail.v2.CatalogAttribute.FacetConfigOrBuilder>( + getFacetConfig(), getParentForChildren(), isClean()); + facetConfig_ = null; + } + return facetConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CatalogAttributeOrBuilder.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CatalogAttributeOrBuilder.java index 2c2075e8575f..5e078a90135a 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CatalogAttributeOrBuilder.java +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CatalogAttributeOrBuilder.java @@ -145,7 +145,9 @@ public interface CatalogAttributeOrBuilder * are indexed so that it can be filtered, faceted, or boosted in * [SearchService.Search][google.cloud.retail.v2.SearchService.Search]. * - * Must be specified, otherwise throws INVALID_FORMAT error. + * Must be specified when + * [AttributesConfig.attribute_config_level][google.cloud.retail.v2.AttributesConfig.attribute_config_level] + * is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. *
* * .google.cloud.retail.v2.CatalogAttribute.IndexableOption indexable_option = 5; @@ -163,7 +165,9 @@ public interface CatalogAttributeOrBuilder * are indexed so that it can be filtered, faceted, or boosted in * [SearchService.Search][google.cloud.retail.v2.SearchService.Search]. * - * Must be specified, otherwise throws INVALID_FORMAT error. + * Must be specified when + * [AttributesConfig.attribute_config_level][google.cloud.retail.v2.AttributesConfig.attribute_config_level] + * is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. *
* * .google.cloud.retail.v2.CatalogAttribute.IndexableOption indexable_option = 5; @@ -226,7 +230,9 @@ public interface CatalogAttributeOrBuilder * [SearchService.Search][google.cloud.retail.v2.SearchService.Search], as * there are no text values associated to numerical attributes. * - * Must be specified, otherwise throws INVALID_FORMAT error. + * Must be specified, when + * [AttributesConfig.attribute_config_level][google.cloud.retail.v2.AttributesConfig.attribute_config_level] + * is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. *
* * .google.cloud.retail.v2.CatalogAttribute.SearchableOption searchable_option = 7; @@ -249,7 +255,9 @@ public interface CatalogAttributeOrBuilder * [SearchService.Search][google.cloud.retail.v2.SearchService.Search], as * there are no text values associated to numerical attributes. * - * Must be specified, otherwise throws INVALID_FORMAT error. + * Must be specified, when + * [AttributesConfig.attribute_config_level][google.cloud.retail.v2.AttributesConfig.attribute_config_level] + * is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. *
* * .google.cloud.retail.v2.CatalogAttribute.SearchableOption searchable_option = 7; @@ -325,4 +333,39 @@ public interface CatalogAttributeOrBuilder * @return The retrievableOption. */ com.google.cloud.retail.v2.CatalogAttribute.RetrievableOption getRetrievableOption(); + + /** + * + * + *
+   * Contains facet options.
+   * 
+ * + * .google.cloud.retail.v2.CatalogAttribute.FacetConfig facet_config = 13; + * + * @return Whether the facetConfig field is set. + */ + boolean hasFacetConfig(); + /** + * + * + *
+   * Contains facet options.
+   * 
+ * + * .google.cloud.retail.v2.CatalogAttribute.FacetConfig facet_config = 13; + * + * @return The facetConfig. + */ + com.google.cloud.retail.v2.CatalogAttribute.FacetConfig getFacetConfig(); + /** + * + * + *
+   * Contains facet options.
+   * 
+ * + * .google.cloud.retail.v2.CatalogAttribute.FacetConfig facet_config = 13; + */ + com.google.cloud.retail.v2.CatalogAttribute.FacetConfigOrBuilder getFacetConfigOrBuilder(); } diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CatalogProto.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CatalogProto.java index ea3919a639cd..8f91d62a191a 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CatalogProto.java +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CatalogProto.java @@ -36,6 +36,26 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_retail_v2_CatalogAttribute_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_retail_v2_CatalogAttribute_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2_CatalogAttribute_FacetConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2_CatalogAttribute_FacetConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2_CatalogAttribute_FacetConfig_IgnoredFacetValues_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2_CatalogAttribute_FacetConfig_IgnoredFacetValues_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2_CatalogAttribute_FacetConfig_MergedFacetValue_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2_CatalogAttribute_FacetConfig_MergedFacetValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2_CatalogAttribute_FacetConfig_MergedFacet_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2_CatalogAttribute_FacetConfig_MergedFacet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2_CatalogAttribute_FacetConfig_RerankConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2_CatalogAttribute_FacetConfig_RerankConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_retail_v2_AttributesConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -66,78 +86,99 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_behavior.proto\032\031google/api/resource.pro" + "to\032#google/cloud/retail/v2/common.proto\032" + "*google/cloud/retail/v2/import_config.pr" - + "oto\"^\n\022ProductLevelConfig\022\036\n\026ingestion_p" - + "roduct_type\030\001 \001(\t\022(\n merchant_center_pro" - + "duct_id_field\030\002 \001(\t\"\277\t\n\020CatalogAttribute" - + "\022\020\n\003key\030\001 \001(\tB\003\340A\002\022\023\n\006in_use\030\t \001(\010B\003\340A\003\022" - + "I\n\004type\030\n \001(\01626.google.cloud.retail.v2.C" - + "atalogAttribute.AttributeTypeB\003\340A\003\022R\n\020in" - + "dexable_option\030\005 \001(\01628.google.cloud.reta" - + "il.v2.CatalogAttribute.IndexableOption\022a" - + "\n\030dynamic_facetable_option\030\006 \001(\0162?.googl" - + "e.cloud.retail.v2.CatalogAttribute.Dynam" - + "icFacetableOption\022T\n\021searchable_option\030\007" - + " \001(\01629.google.cloud.retail.v2.CatalogAtt" - + "ribute.SearchableOption\022_\n\027exact_searcha" - + "ble_option\030\013 \001(\0162>.google.cloud.retail.v" - + "2.CatalogAttribute.ExactSearchableOption" - + "\022V\n\022retrievable_option\030\014 \001(\0162:.google.cl" - + "oud.retail.v2.CatalogAttribute.Retrievab" - + "leOption\"8\n\rAttributeType\022\013\n\007UNKNOWN\020\000\022\013" - + "\n\007TEXTUAL\020\001\022\r\n\tNUMERICAL\020\002\"b\n\017IndexableO" - + "ption\022 \n\034INDEXABLE_OPTION_UNSPECIFIED\020\000\022" - + "\025\n\021INDEXABLE_ENABLED\020\001\022\026\n\022INDEXABLE_DISA" - + "BLED\020\002\"\201\001\n\026DynamicFacetableOption\022(\n$DYN" - + "AMIC_FACETABLE_OPTION_UNSPECIFIED\020\000\022\035\n\031D" - + "YNAMIC_FACETABLE_ENABLED\020\001\022\036\n\032DYNAMIC_FA" - + "CETABLE_DISABLED\020\002\"f\n\020SearchableOption\022!" - + "\n\035SEARCHABLE_OPTION_UNSPECIFIED\020\000\022\026\n\022SEA" - + "RCHABLE_ENABLED\020\001\022\027\n\023SEARCHABLE_DISABLED" - + "\020\002\"}\n\025ExactSearchableOption\022\'\n#EXACT_SEA" - + "RCHABLE_OPTION_UNSPECIFIED\020\000\022\034\n\030EXACT_SE" - + "ARCHABLE_ENABLED\020\001\022\035\n\031EXACT_SEARCHABLE_D" - + "ISABLED\020\002\"j\n\021RetrievableOption\022\"\n\036RETRIE" - + "VABLE_OPTION_UNSPECIFIED\020\000\022\027\n\023RETRIEVABL" - + "E_ENABLED\020\001\022\030\n\024RETRIEVABLE_DISABLED\020\002\"\266\003" - + "\n\020AttributesConfig\022\024\n\004name\030\001 \001(\tB\006\340A\002\340A\005" - + "\022[\n\022catalog_attributes\030\002 \003(\0132?.google.cl" - + "oud.retail.v2.AttributesConfig.CatalogAt" - + "tributesEntry\022Q\n\026attribute_config_level\030" - + "\003 \001(\0162,.google.cloud.retail.v2.Attribute" - + "ConfigLevelB\003\340A\003\032b\n\026CatalogAttributesEnt" - + "ry\022\013\n\003key\030\001 \001(\t\0227\n\005value\030\002 \001(\0132(.google." - + "cloud.retail.v2.CatalogAttribute:\0028\001:x\352A" - + "u\n&retail.googleapis.com/AttributesConfi" - + "g\022Kprojects/{project}/locations/{locatio" - + "n}/catalogs/{catalog}/attributesConfig\"\231" - + "\005\n\020CompletionConfig\022\024\n\004name\030\001 \001(\tB\006\340A\002\340A" - + "\005\022\026\n\016matching_order\030\002 \001(\t\022\027\n\017max_suggest" - + "ions\030\003 \001(\005\022\031\n\021min_prefix_length\030\004 \001(\005\022\025\n" - + "\rauto_learning\030\013 \001(\010\022X\n\030suggestions_inpu" - + "t_config\030\005 \001(\01321.google.cloud.retail.v2." - + "CompletionDataInputConfigB\003\340A\003\022.\n!last_s" - + "uggestions_import_operation\030\006 \001(\tB\003\340A\003\022U" - + "\n\025denylist_input_config\030\007 \001(\01321.google.c" - + "loud.retail.v2.CompletionDataInputConfig" - + "B\003\340A\003\022+\n\036last_denylist_import_operation\030" - + "\010 \001(\tB\003\340A\003\022V\n\026allowlist_input_config\030\t \001" - + "(\01321.google.cloud.retail.v2.CompletionDa" - + "taInputConfigB\003\340A\003\022,\n\037last_allowlist_imp" - + "ort_operation\030\n \001(\tB\003\340A\003:x\352Au\n&retail.go" - + "ogleapis.com/CompletionConfig\022Kprojects/" - + "{project}/locations/{location}/catalogs/" - + "{catalog}/completionConfig\"\354\001\n\007Catalog\022\024" - + "\n\004name\030\001 \001(\tB\006\340A\002\340A\005\022\034\n\014display_name\030\002 \001" - + "(\tB\006\340A\002\340A\005\022M\n\024product_level_config\030\004 \001(\013" - + "2*.google.cloud.retail.v2.ProductLevelCo" - + "nfigB\003\340A\002:^\352A[\n\035retail.googleapis.com/Ca" - + "talog\022:projects/{project}/locations/{loc" - + "ation}/catalogs/{catalog}B\267\001\n\032com.google" - + ".cloud.retail.v2B\014CatalogProtoP\001Z2cloud." - + "google.com/go/retail/apiv2/retailpb;reta" - + "ilpb\242\002\006RETAIL\252\002\026Google.Cloud.Retail.V2\312\002" - + "\026Google\\Cloud\\Retail\\V2\352\002\031Google::Cloud:" - + ":Retail::V2b\006proto3" + + "oto\032\037google/protobuf/timestamp.proto\"^\n\022" + + "ProductLevelConfig\022\036\n\026ingestion_product_" + + "type\030\001 \001(\t\022(\n merchant_center_product_id" + + "_field\030\002 \001(\t\"\367\017\n\020CatalogAttribute\022\020\n\003key" + + "\030\001 \001(\tB\003\340A\002\022\023\n\006in_use\030\t \001(\010B\003\340A\003\022I\n\004type" + + "\030\n \001(\01626.google.cloud.retail.v2.CatalogA" + + "ttribute.AttributeTypeB\003\340A\003\022R\n\020indexable" + + "_option\030\005 \001(\01628.google.cloud.retail.v2.C" + + "atalogAttribute.IndexableOption\022a\n\030dynam" + + "ic_facetable_option\030\006 \001(\0162?.google.cloud" + + ".retail.v2.CatalogAttribute.DynamicFacet" + + "ableOption\022T\n\021searchable_option\030\007 \001(\01629." + + "google.cloud.retail.v2.CatalogAttribute." + + "SearchableOption\022_\n\027exact_searchable_opt" + + "ion\030\013 \001(\0162>.google.cloud.retail.v2.Catal" + + "ogAttribute.ExactSearchableOption\022V\n\022ret" + + "rievable_option\030\014 \001(\0162:.google.cloud.ret" + + "ail.v2.CatalogAttribute.RetrievableOptio" + + "n\022J\n\014facet_config\030\r \001(\01324.google.cloud.r" + + "etail.v2.CatalogAttribute.FacetConfig\032\351\005" + + "\n\013FacetConfig\0229\n\017facet_intervals\030\001 \003(\0132 " + + ".google.cloud.retail.v2.Interval\022e\n\024igno" + + "red_facet_values\030\002 \003(\0132G.google.cloud.re" + + "tail.v2.CatalogAttribute.FacetConfig.Ign" + + "oredFacetValues\022b\n\023merged_facet_values\030\003" + + " \003(\0132E.google.cloud.retail.v2.CatalogAtt" + + "ribute.FacetConfig.MergedFacetValue\022V\n\014m" + + "erged_facet\030\004 \001(\0132@.google.cloud.retail." + + "v2.CatalogAttribute.FacetConfig.MergedFa" + + "cet\022X\n\rrerank_config\030\005 \001(\0132A.google.clou" + + "d.retail.v2.CatalogAttribute.FacetConfig" + + ".RerankConfig\032\202\001\n\022IgnoredFacetValues\022\016\n\006" + + "values\030\001 \003(\t\022.\n\nstart_time\030\002 \001(\0132\032.googl" + + "e.protobuf.Timestamp\022,\n\010end_time\030\003 \001(\0132\032" + + ".google.protobuf.Timestamp\0328\n\020MergedFace" + + "tValue\022\016\n\006values\030\001 \003(\t\022\024\n\014merged_value\030\002" + + " \001(\t\032\'\n\013MergedFacet\022\030\n\020merged_facet_key\030" + + "\001 \001(\t\032:\n\014RerankConfig\022\024\n\014rerank_facet\030\001 " + + "\001(\010\022\024\n\014facet_values\030\002 \003(\t\"8\n\rAttributeTy" + + "pe\022\013\n\007UNKNOWN\020\000\022\013\n\007TEXTUAL\020\001\022\r\n\tNUMERICA" + + "L\020\002\"b\n\017IndexableOption\022 \n\034INDEXABLE_OPTI" + + "ON_UNSPECIFIED\020\000\022\025\n\021INDEXABLE_ENABLED\020\001\022" + + "\026\n\022INDEXABLE_DISABLED\020\002\"\201\001\n\026DynamicFacet" + + "ableOption\022(\n$DYNAMIC_FACETABLE_OPTION_U" + + "NSPECIFIED\020\000\022\035\n\031DYNAMIC_FACETABLE_ENABLE" + + "D\020\001\022\036\n\032DYNAMIC_FACETABLE_DISABLED\020\002\"f\n\020S" + + "earchableOption\022!\n\035SEARCHABLE_OPTION_UNS" + + "PECIFIED\020\000\022\026\n\022SEARCHABLE_ENABLED\020\001\022\027\n\023SE" + + "ARCHABLE_DISABLED\020\002\"}\n\025ExactSearchableOp" + + "tion\022\'\n#EXACT_SEARCHABLE_OPTION_UNSPECIF" + + "IED\020\000\022\034\n\030EXACT_SEARCHABLE_ENABLED\020\001\022\035\n\031E" + + "XACT_SEARCHABLE_DISABLED\020\002\"j\n\021Retrievabl" + + "eOption\022\"\n\036RETRIEVABLE_OPTION_UNSPECIFIE" + + "D\020\000\022\027\n\023RETRIEVABLE_ENABLED\020\001\022\030\n\024RETRIEVA" + + "BLE_DISABLED\020\002\"\266\003\n\020AttributesConfig\022\024\n\004n" + + "ame\030\001 \001(\tB\006\340A\002\340A\005\022[\n\022catalog_attributes\030" + + "\002 \003(\0132?.google.cloud.retail.v2.Attribute" + + "sConfig.CatalogAttributesEntry\022Q\n\026attrib" + + "ute_config_level\030\003 \001(\0162,.google.cloud.re" + + "tail.v2.AttributeConfigLevelB\003\340A\003\032b\n\026Cat" + + "alogAttributesEntry\022\013\n\003key\030\001 \001(\t\0227\n\005valu" + + "e\030\002 \001(\0132(.google.cloud.retail.v2.Catalog" + + "Attribute:\0028\001:x\352Au\n&retail.googleapis.co" + + "m/AttributesConfig\022Kprojects/{project}/l" + + "ocations/{location}/catalogs/{catalog}/a" + + "ttributesConfig\"\231\005\n\020CompletionConfig\022\024\n\004" + + "name\030\001 \001(\tB\006\340A\002\340A\005\022\026\n\016matching_order\030\002 \001" + + "(\t\022\027\n\017max_suggestions\030\003 \001(\005\022\031\n\021min_prefi" + + "x_length\030\004 \001(\005\022\025\n\rauto_learning\030\013 \001(\010\022X\n" + + "\030suggestions_input_config\030\005 \001(\01321.google" + + ".cloud.retail.v2.CompletionDataInputConf" + + "igB\003\340A\003\022.\n!last_suggestions_import_opera" + + "tion\030\006 \001(\tB\003\340A\003\022U\n\025denylist_input_config" + + "\030\007 \001(\01321.google.cloud.retail.v2.Completi" + + "onDataInputConfigB\003\340A\003\022+\n\036last_denylist_" + + "import_operation\030\010 \001(\tB\003\340A\003\022V\n\026allowlist" + + "_input_config\030\t \001(\01321.google.cloud.retai" + + "l.v2.CompletionDataInputConfigB\003\340A\003\022,\n\037l" + + "ast_allowlist_import_operation\030\n \001(\tB\003\340A" + + "\003:x\352Au\n&retail.googleapis.com/Completion" + + "Config\022Kprojects/{project}/locations/{lo" + + "cation}/catalogs/{catalog}/completionCon" + + "fig\"\354\001\n\007Catalog\022\024\n\004name\030\001 \001(\tB\006\340A\002\340A\005\022\034\n" + + "\014display_name\030\002 \001(\tB\006\340A\002\340A\005\022M\n\024product_l" + + "evel_config\030\004 \001(\0132*.google.cloud.retail." + + "v2.ProductLevelConfigB\003\340A\002:^\352A[\n\035retail." + + "googleapis.com/Catalog\022:projects/{projec" + + "t}/locations/{location}/catalogs/{catalo" + + "g}B\267\001\n\032com.google.cloud.retail.v2B\014Catal" + + "ogProtoP\001Z2cloud.google.com/go/retail/ap" + + "iv2/retailpb;retailpb\242\002\006RETAIL\252\002\026Google." + + "Cloud.Retail.V2\312\002\026Google\\Cloud\\Retail\\V2" + + "\352\002\031Google::Cloud::Retail::V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -147,6 +188,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(), com.google.cloud.retail.v2.CommonProto.getDescriptor(), com.google.cloud.retail.v2.ImportConfigProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_google_cloud_retail_v2_ProductLevelConfig_descriptor = getDescriptor().getMessageTypes().get(0); @@ -170,6 +212,59 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SearchableOption", "ExactSearchableOption", "RetrievableOption", + "FacetConfig", + }); + internal_static_google_cloud_retail_v2_CatalogAttribute_FacetConfig_descriptor = + internal_static_google_cloud_retail_v2_CatalogAttribute_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_retail_v2_CatalogAttribute_FacetConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2_CatalogAttribute_FacetConfig_descriptor, + new java.lang.String[] { + "FacetIntervals", + "IgnoredFacetValues", + "MergedFacetValues", + "MergedFacet", + "RerankConfig", + }); + internal_static_google_cloud_retail_v2_CatalogAttribute_FacetConfig_IgnoredFacetValues_descriptor = + internal_static_google_cloud_retail_v2_CatalogAttribute_FacetConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_retail_v2_CatalogAttribute_FacetConfig_IgnoredFacetValues_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2_CatalogAttribute_FacetConfig_IgnoredFacetValues_descriptor, + new java.lang.String[] { + "Values", "StartTime", "EndTime", + }); + internal_static_google_cloud_retail_v2_CatalogAttribute_FacetConfig_MergedFacetValue_descriptor = + internal_static_google_cloud_retail_v2_CatalogAttribute_FacetConfig_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_retail_v2_CatalogAttribute_FacetConfig_MergedFacetValue_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2_CatalogAttribute_FacetConfig_MergedFacetValue_descriptor, + new java.lang.String[] { + "Values", "MergedValue", + }); + internal_static_google_cloud_retail_v2_CatalogAttribute_FacetConfig_MergedFacet_descriptor = + internal_static_google_cloud_retail_v2_CatalogAttribute_FacetConfig_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_retail_v2_CatalogAttribute_FacetConfig_MergedFacet_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2_CatalogAttribute_FacetConfig_MergedFacet_descriptor, + new java.lang.String[] { + "MergedFacetKey", + }); + internal_static_google_cloud_retail_v2_CatalogAttribute_FacetConfig_RerankConfig_descriptor = + internal_static_google_cloud_retail_v2_CatalogAttribute_FacetConfig_descriptor + .getNestedTypes() + .get(3); + internal_static_google_cloud_retail_v2_CatalogAttribute_FacetConfig_RerankConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2_CatalogAttribute_FacetConfig_RerankConfig_descriptor, + new java.lang.String[] { + "RerankFacet", "FacetValues", }); internal_static_google_cloud_retail_v2_AttributesConfig_descriptor = getDescriptor().getMessageTypes().get(2); @@ -223,6 +318,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(); com.google.cloud.retail.v2.CommonProto.getDescriptor(); com.google.cloud.retail.v2.ImportConfigProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CommonProto.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CommonProto.java index 215fcb36d863..ca4a3097ad05 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CommonProto.java +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CommonProto.java @@ -76,6 +76,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_retail_v2_Rule_IgnoreAction_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_retail_v2_Rule_IgnoreAction_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2_Rule_ForceReturnFacetAction_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2_Rule_ForceReturnFacetAction_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2_Rule_ForceReturnFacetAction_FacetPositionAdjustment_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2_Rule_ForceReturnFacetAction_FacetPositionAdjustment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2_Rule_RemoveFacetAction_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2_Rule_RemoveFacetAction_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_retail_v2_Audience_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -136,95 +148,106 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n#google/cloud/retail/v2/common.proto\022\026g" + "oogle.cloud.retail.v2\032\037google/api/field_" + "behavior.proto\032\037google/protobuf/timestam" - + "p.proto\"\260\002\n\tCondition\022@\n\013query_terms\030\001 \003" + + "p.proto\"\311\002\n\tCondition\022@\n\013query_terms\030\001 \003" + "(\0132+.google.cloud.retail.v2.Condition.Qu" + "eryTerm\022F\n\021active_time_range\030\003 \003(\0132+.goo" - + "gle.cloud.retail.v2.Condition.TimeRange\032" - + ".\n\tQueryTerm\022\r\n\005value\030\001 \001(\t\022\022\n\nfull_matc" - + "h\030\002 \001(\010\032i\n\tTimeRange\022.\n\nstart_time\030\001 \001(\013" - + "2\032.google.protobuf.Timestamp\022,\n\010end_time" - + "\030\002 \001(\0132\032.google.protobuf.Timestamp\"\375\010\n\004R" - + "ule\022@\n\014boost_action\030\002 \001(\0132(.google.cloud" - + ".retail.v2.Rule.BoostActionH\000\022F\n\017redirec" - + "t_action\030\003 \001(\0132+.google.cloud.retail.v2." - + "Rule.RedirectActionH\000\022S\n\026oneway_synonyms" - + "_action\030\006 \001(\01321.google.cloud.retail.v2.R" - + "ule.OnewaySynonymsActionH\000\022T\n\027do_not_ass" - + "ociate_action\030\007 \001(\01321.google.cloud.retai" - + "l.v2.Rule.DoNotAssociateActionH\000\022L\n\022repl" - + "acement_action\030\010 \001(\0132..google.cloud.reta" - + "il.v2.Rule.ReplacementActionH\000\022B\n\rignore" - + "_action\030\t \001(\0132).google.cloud.retail.v2.R" - + "ule.IgnoreActionH\000\022B\n\rfilter_action\030\n \001(" - + "\0132).google.cloud.retail.v2.Rule.FilterAc" - + "tionH\000\022S\n\026twoway_synonyms_action\030\013 \001(\01321" - + ".google.cloud.retail.v2.Rule.TwowaySynon" - + "ymsActionH\000\0229\n\tcondition\030\001 \001(\0132!.google." - + "cloud.retail.v2.ConditionB\003\340A\002\0325\n\013BoostA" - + "ction\022\r\n\005boost\030\001 \001(\002\022\027\n\017products_filter\030" - + "\002 \001(\t\032\036\n\014FilterAction\022\016\n\006filter\030\001 \001(\t\032&\n" - + "\016RedirectAction\022\024\n\014redirect_uri\030\001 \001(\t\032(\n" - + "\024TwowaySynonymsAction\022\020\n\010synonyms\030\001 \003(\t\032" - + "S\n\024OnewaySynonymsAction\022\023\n\013query_terms\030\003" - + " \003(\t\022\020\n\010synonyms\030\004 \003(\t\022\024\n\014oneway_terms\030\002" - + " \003(\t\032Z\n\024DoNotAssociateAction\022\023\n\013query_te" - + "rms\030\002 \003(\t\022\036\n\026do_not_associate_terms\030\003 \003(" - + "\t\022\r\n\005terms\030\001 \003(\t\032P\n\021ReplacementAction\022\023\n" - + "\013query_terms\030\002 \003(\t\022\030\n\020replacement_term\030\003" - + " \001(\t\022\014\n\004term\030\001 \001(\t\032$\n\014IgnoreAction\022\024\n\014ig" - + "nore_terms\030\001 \003(\tB\010\n\006action\"/\n\010Audience\022\017" - + "\n\007genders\030\001 \003(\t\022\022\n\nage_groups\030\002 \003(\t\"3\n\tC" - + "olorInfo\022\026\n\016color_families\030\001 \003(\t\022\016\n\006colo" - + "rs\030\002 \003(\t\"\206\001\n\017CustomAttribute\022\014\n\004text\030\001 \003" - + "(\t\022\017\n\007numbers\030\002 \003(\001\022\033\n\nsearchable\030\003 \001(\010B" - + "\002\030\001H\000\210\001\001\022\032\n\tindexable\030\004 \001(\010B\002\030\001H\001\210\001\001B\r\n\013" - + "_searchableB\014\n\n_indexable\"2\n\017Fulfillment" - + "Info\022\014\n\004type\030\001 \001(\t\022\021\n\tplace_ids\030\002 \003(\t\"8\n" - + "\005Image\022\020\n\003uri\030\001 \001(\tB\003\340A\002\022\016\n\006height\030\002 \001(\005" - + "\022\r\n\005width\030\003 \001(\005\"x\n\010Interval\022\021\n\007minimum\030\001" - + " \001(\001H\000\022\033\n\021exclusive_minimum\030\002 \001(\001H\000\022\021\n\007m" - + "aximum\030\003 \001(\001H\001\022\033\n\021exclusive_maximum\030\004 \001(" - + "\001H\001B\005\n\003minB\005\n\003max\"\211\003\n\tPriceInfo\022\025\n\rcurre" - + "ncy_code\030\001 \001(\t\022\r\n\005price\030\002 \001(\002\022\026\n\016origina" - + "l_price\030\003 \001(\002\022\014\n\004cost\030\004 \001(\002\0228\n\024price_eff" - + "ective_time\030\005 \001(\0132\032.google.protobuf.Time" - + "stamp\0225\n\021price_expire_time\030\006 \001(\0132\032.googl" - + "e.protobuf.Timestamp\022F\n\013price_range\030\007 \001(" - + "\0132,.google.cloud.retail.v2.PriceInfo.Pri" - + "ceRangeB\003\340A\003\032w\n\nPriceRange\022/\n\005price\030\001 \001(" - + "\0132 .google.cloud.retail.v2.Interval\0228\n\016o" - + "riginal_price\030\002 \001(\0132 .google.cloud.retai" - + "l.v2.Interval\"P\n\006Rating\022\024\n\014rating_count\030" - + "\001 \001(\005\022\026\n\016average_rating\030\002 \001(\002\022\030\n\020rating_" - + "histogram\030\003 \003(\005\"`\n\010UserInfo\022\017\n\007user_id\030\001" - + " \001(\t\022\022\n\nip_address\030\002 \001(\t\022\022\n\nuser_agent\030\003" - + " \001(\t\022\033\n\023direct_user_request\030\004 \001(\010\"\241\002\n\016Lo" - + "calInventory\022\020\n\010place_id\030\001 \001(\t\0225\n\nprice_" - + "info\030\002 \001(\0132!.google.cloud.retail.v2.Pric" - + "eInfo\022J\n\nattributes\030\003 \003(\01326.google.cloud" - + ".retail.v2.LocalInventory.AttributesEntr" - + "y\022\036\n\021fulfillment_types\030\004 \003(\tB\003\340A\004\032Z\n\017Att" - + "ributesEntry\022\013\n\003key\030\001 \001(\t\0226\n\005value\030\002 \001(\013" - + "2\'.google.cloud.retail.v2.CustomAttribut" - + "e:\0028\001*\206\001\n\024AttributeConfigLevel\022&\n\"ATTRIB" - + "UTE_CONFIG_LEVEL_UNSPECIFIED\020\000\022\"\n\036PRODUC" - + "T_LEVEL_ATTRIBUTE_CONFIG\020\001\022\"\n\036CATALOG_LE" - + "VEL_ATTRIBUTE_CONFIG\020\002*i\n\014SolutionType\022\035" - + "\n\031SOLUTION_TYPE_UNSPECIFIED\020\000\022 \n\034SOLUTIO" - + "N_TYPE_RECOMMENDATION\020\001\022\030\n\024SOLUTION_TYPE" - + "_SEARCH\020\002*\241\001\n\036RecommendationsFilteringOp" - + "tion\0220\n,RECOMMENDATIONS_FILTERING_OPTION" - + "_UNSPECIFIED\020\000\022&\n\"RECOMMENDATIONS_FILTER" - + "ING_DISABLED\020\001\022%\n!RECOMMENDATIONS_FILTER" - + "ING_ENABLED\020\003*\213\001\n\025SearchSolutionUseCase\022" - + "(\n$SEARCH_SOLUTION_USE_CASE_UNSPECIFIED\020" - + "\000\022#\n\037SEARCH_SOLUTION_USE_CASE_SEARCH\020\001\022#" - + "\n\037SEARCH_SOLUTION_USE_CASE_BROWSE\020\002B\266\001\n\032" - + "com.google.cloud.retail.v2B\013CommonProtoP" - + "\001Z2cloud.google.com/go/retail/apiv2/reta" - + "ilpb;retailpb\242\002\006RETAIL\252\002\026Google.Cloud.Re" - + "tail.V2\312\002\026Google\\Cloud\\Retail\\V2\352\002\031Googl" - + "e::Cloud::Retail::V2b\006proto3" + + "gle.cloud.retail.v2.Condition.TimeRange\022" + + "\027\n\017page_categories\030\004 \003(\t\032.\n\tQueryTerm\022\r\n" + + "\005value\030\001 \001(\t\022\022\n\nfull_match\030\002 \001(\010\032i\n\tTime" + + "Range\022.\n\nstart_time\030\001 \001(\0132\032.google.proto" + + "buf.Timestamp\022,\n\010end_time\030\002 \001(\0132\032.google" + + ".protobuf.Timestamp\"\245\014\n\004Rule\022@\n\014boost_ac" + + "tion\030\002 \001(\0132(.google.cloud.retail.v2.Rule" + + ".BoostActionH\000\022F\n\017redirect_action\030\003 \001(\0132" + + "+.google.cloud.retail.v2.Rule.RedirectAc" + + "tionH\000\022S\n\026oneway_synonyms_action\030\006 \001(\01321" + + ".google.cloud.retail.v2.Rule.OnewaySynon" + + "ymsActionH\000\022T\n\027do_not_associate_action\030\007" + + " \001(\01321.google.cloud.retail.v2.Rule.DoNot" + + "AssociateActionH\000\022L\n\022replacement_action\030" + + "\010 \001(\0132..google.cloud.retail.v2.Rule.Repl" + + "acementActionH\000\022B\n\rignore_action\030\t \001(\0132)" + + ".google.cloud.retail.v2.Rule.IgnoreActio" + + "nH\000\022B\n\rfilter_action\030\n \001(\0132).google.clou" + + "d.retail.v2.Rule.FilterActionH\000\022S\n\026twowa" + + "y_synonyms_action\030\013 \001(\01321.google.cloud.r" + + "etail.v2.Rule.TwowaySynonymsActionH\000\022X\n\031" + + "force_return_facet_action\030\014 \001(\01323.google" + + ".cloud.retail.v2.Rule.ForceReturnFacetAc" + + "tionH\000\022M\n\023remove_facet_action\030\r \001(\0132..go" + + "ogle.cloud.retail.v2.Rule.RemoveFacetAct" + + "ionH\000\0229\n\tcondition\030\001 \001(\0132!.google.cloud." + + "retail.v2.ConditionB\003\340A\002\0325\n\013BoostAction\022" + + "\r\n\005boost\030\001 \001(\002\022\027\n\017products_filter\030\002 \001(\t\032" + + "\036\n\014FilterAction\022\016\n\006filter\030\001 \001(\t\032&\n\016Redir" + + "ectAction\022\024\n\014redirect_uri\030\001 \001(\t\032(\n\024Twowa" + + "ySynonymsAction\022\020\n\010synonyms\030\001 \003(\t\032S\n\024One" + + "waySynonymsAction\022\023\n\013query_terms\030\003 \003(\t\022\020" + + "\n\010synonyms\030\004 \003(\t\022\024\n\014oneway_terms\030\002 \003(\t\032Z" + + "\n\024DoNotAssociateAction\022\023\n\013query_terms\030\002 " + + "\003(\t\022\036\n\026do_not_associate_terms\030\003 \003(\t\022\r\n\005t" + + "erms\030\001 \003(\t\032P\n\021ReplacementAction\022\023\n\013query" + + "_terms\030\002 \003(\t\022\030\n\020replacement_term\030\003 \001(\t\022\014" + + "\n\004term\030\001 \001(\t\032$\n\014IgnoreAction\022\024\n\014ignore_t" + + "erms\030\001 \003(\t\032\316\001\n\026ForceReturnFacetAction\022o\n" + + "\032facet_position_adjustments\030\001 \003(\0132K.goog" + + "le.cloud.retail.v2.Rule.ForceReturnFacet" + + "Action.FacetPositionAdjustment\032C\n\027FacetP" + + "ositionAdjustment\022\026\n\016attribute_name\030\001 \001(" + + "\t\022\020\n\010position\030\002 \001(\005\032,\n\021RemoveFacetAction" + + "\022\027\n\017attribute_names\030\001 \003(\tB\010\n\006action\"/\n\010A" + + "udience\022\017\n\007genders\030\001 \003(\t\022\022\n\nage_groups\030\002" + + " \003(\t\"3\n\tColorInfo\022\026\n\016color_families\030\001 \003(" + + "\t\022\016\n\006colors\030\002 \003(\t\"\206\001\n\017CustomAttribute\022\014\n" + + "\004text\030\001 \003(\t\022\017\n\007numbers\030\002 \003(\001\022\033\n\nsearchab" + + "le\030\003 \001(\010B\002\030\001H\000\210\001\001\022\032\n\tindexable\030\004 \001(\010B\002\030\001" + + "H\001\210\001\001B\r\n\013_searchableB\014\n\n_indexable\"2\n\017Fu" + + "lfillmentInfo\022\014\n\004type\030\001 \001(\t\022\021\n\tplace_ids" + + "\030\002 \003(\t\"8\n\005Image\022\020\n\003uri\030\001 \001(\tB\003\340A\002\022\016\n\006hei" + + "ght\030\002 \001(\005\022\r\n\005width\030\003 \001(\005\"x\n\010Interval\022\021\n\007" + + "minimum\030\001 \001(\001H\000\022\033\n\021exclusive_minimum\030\002 \001" + + "(\001H\000\022\021\n\007maximum\030\003 \001(\001H\001\022\033\n\021exclusive_max" + + "imum\030\004 \001(\001H\001B\005\n\003minB\005\n\003max\"\211\003\n\tPriceInfo" + + "\022\025\n\rcurrency_code\030\001 \001(\t\022\r\n\005price\030\002 \001(\002\022\026" + + "\n\016original_price\030\003 \001(\002\022\014\n\004cost\030\004 \001(\002\0228\n\024" + + "price_effective_time\030\005 \001(\0132\032.google.prot" + + "obuf.Timestamp\0225\n\021price_expire_time\030\006 \001(" + + "\0132\032.google.protobuf.Timestamp\022F\n\013price_r" + + "ange\030\007 \001(\0132,.google.cloud.retail.v2.Pric" + + "eInfo.PriceRangeB\003\340A\003\032w\n\nPriceRange\022/\n\005p" + + "rice\030\001 \001(\0132 .google.cloud.retail.v2.Inte" + + "rval\0228\n\016original_price\030\002 \001(\0132 .google.cl" + + "oud.retail.v2.Interval\"P\n\006Rating\022\024\n\014rati" + + "ng_count\030\001 \001(\005\022\026\n\016average_rating\030\002 \001(\002\022\030" + + "\n\020rating_histogram\030\003 \003(\005\"`\n\010UserInfo\022\017\n\007" + + "user_id\030\001 \001(\t\022\022\n\nip_address\030\002 \001(\t\022\022\n\nuse" + + "r_agent\030\003 \001(\t\022\033\n\023direct_user_request\030\004 \001" + + "(\010\"\241\002\n\016LocalInventory\022\020\n\010place_id\030\001 \001(\t\022" + + "5\n\nprice_info\030\002 \001(\0132!.google.cloud.retai" + + "l.v2.PriceInfo\022J\n\nattributes\030\003 \003(\01326.goo" + + "gle.cloud.retail.v2.LocalInventory.Attri" + + "butesEntry\022\036\n\021fulfillment_types\030\004 \003(\tB\003\340" + + "A\004\032Z\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\0226\n\005va" + + "lue\030\002 \001(\0132\'.google.cloud.retail.v2.Custo" + + "mAttribute:\0028\001*\206\001\n\024AttributeConfigLevel\022" + + "&\n\"ATTRIBUTE_CONFIG_LEVEL_UNSPECIFIED\020\000\022" + + "\"\n\036PRODUCT_LEVEL_ATTRIBUTE_CONFIG\020\001\022\"\n\036C" + + "ATALOG_LEVEL_ATTRIBUTE_CONFIG\020\002*i\n\014Solut" + + "ionType\022\035\n\031SOLUTION_TYPE_UNSPECIFIED\020\000\022 " + + "\n\034SOLUTION_TYPE_RECOMMENDATION\020\001\022\030\n\024SOLU" + + "TION_TYPE_SEARCH\020\002*\241\001\n\036RecommendationsFi" + + "lteringOption\0220\n,RECOMMENDATIONS_FILTERI" + + "NG_OPTION_UNSPECIFIED\020\000\022&\n\"RECOMMENDATIO" + + "NS_FILTERING_DISABLED\020\001\022%\n!RECOMMENDATIO" + + "NS_FILTERING_ENABLED\020\003*\213\001\n\025SearchSolutio" + + "nUseCase\022(\n$SEARCH_SOLUTION_USE_CASE_UNS" + + "PECIFIED\020\000\022#\n\037SEARCH_SOLUTION_USE_CASE_S" + + "EARCH\020\001\022#\n\037SEARCH_SOLUTION_USE_CASE_BROW" + + "SE\020\002B\266\001\n\032com.google.cloud.retail.v2B\013Com" + + "monProtoP\001Z2cloud.google.com/go/retail/a" + + "piv2/retailpb;retailpb\242\002\006RETAIL\252\002\026Google" + + ".Cloud.Retail.V2\312\002\026Google\\Cloud\\Retail\\V" + + "2\352\002\031Google::Cloud::Retail::V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -239,7 +262,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_retail_v2_Condition_descriptor, new java.lang.String[] { - "QueryTerms", "ActiveTimeRange", + "QueryTerms", "ActiveTimeRange", "PageCategories", }); internal_static_google_cloud_retail_v2_Condition_QueryTerm_descriptor = internal_static_google_cloud_retail_v2_Condition_descriptor.getNestedTypes().get(0); @@ -271,6 +294,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IgnoreAction", "FilterAction", "TwowaySynonymsAction", + "ForceReturnFacetAction", + "RemoveFacetAction", "Condition", "Action", }); @@ -338,6 +363,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "IgnoreTerms", }); + internal_static_google_cloud_retail_v2_Rule_ForceReturnFacetAction_descriptor = + internal_static_google_cloud_retail_v2_Rule_descriptor.getNestedTypes().get(8); + internal_static_google_cloud_retail_v2_Rule_ForceReturnFacetAction_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2_Rule_ForceReturnFacetAction_descriptor, + new java.lang.String[] { + "FacetPositionAdjustments", + }); + internal_static_google_cloud_retail_v2_Rule_ForceReturnFacetAction_FacetPositionAdjustment_descriptor = + internal_static_google_cloud_retail_v2_Rule_ForceReturnFacetAction_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_retail_v2_Rule_ForceReturnFacetAction_FacetPositionAdjustment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2_Rule_ForceReturnFacetAction_FacetPositionAdjustment_descriptor, + new java.lang.String[] { + "AttributeName", "Position", + }); + internal_static_google_cloud_retail_v2_Rule_RemoveFacetAction_descriptor = + internal_static_google_cloud_retail_v2_Rule_descriptor.getNestedTypes().get(9); + internal_static_google_cloud_retail_v2_Rule_RemoveFacetAction_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2_Rule_RemoveFacetAction_descriptor, + new java.lang.String[] { + "AttributeNames", + }); internal_static_google_cloud_retail_v2_Audience_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_google_cloud_retail_v2_Audience_fieldAccessorTable = diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CompleteQueryRequest.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CompleteQueryRequest.java index cb5219ccfe2c..c2d0151e03af 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CompleteQueryRequest.java +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CompleteQueryRequest.java @@ -523,6 +523,26 @@ public int getMaxSuggestions() { return maxSuggestions_; } + public static final int ENABLE_ATTRIBUTE_SUGGESTIONS_FIELD_NUMBER = 9; + private boolean enableAttributeSuggestions_ = false; + /** + * + * + *
+   * If true, attribute suggestions are enabled and provided in response.
+   *
+   * This field is only available for "cloud-retail" dataset.
+   * 
+ * + * bool enable_attribute_suggestions = 9; + * + * @return The enableAttributeSuggestions. + */ + @java.lang.Override + public boolean getEnableAttributeSuggestions() { + return enableAttributeSuggestions_; + } + public static final int ENTITY_FIELD_NUMBER = 10; @SuppressWarnings("serial") @@ -531,10 +551,10 @@ public int getMaxSuggestions() { * * *
-   * The entity for customers that may run multiple different entities, domains,
-   * sites or regions, for example, `Google US`, `Google Ads`, `Waymo`,
+   * The entity for customers who run multiple entities, domains, sites, or
+   * regions, for example, `Google US`, `Google Ads`, `Waymo`,
    * `google.com`, `youtube.com`, etc.
-   * If this is set, it should be exactly matched with
+   * If this is set, it must be an exact match with
    * [UserEvent.entity][google.cloud.retail.v2.UserEvent.entity] to get
    * per-entity autocomplete results.
    * 
@@ -559,10 +579,10 @@ public java.lang.String getEntity() { * * *
-   * The entity for customers that may run multiple different entities, domains,
-   * sites or regions, for example, `Google US`, `Google Ads`, `Waymo`,
+   * The entity for customers who run multiple entities, domains, sites, or
+   * regions, for example, `Google US`, `Google Ads`, `Waymo`,
    * `google.com`, `youtube.com`, etc.
-   * If this is set, it should be exactly matched with
+   * If this is set, it must be an exact match with
    * [UserEvent.entity][google.cloud.retail.v2.UserEvent.entity] to get
    * per-entity autocomplete results.
    * 
@@ -619,6 +639,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(visitorId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, visitorId_); } + if (enableAttributeSuggestions_ != false) { + output.writeBool(9, enableAttributeSuggestions_); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entity_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, entity_); } @@ -657,6 +680,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(visitorId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, visitorId_); } + if (enableAttributeSuggestions_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, enableAttributeSuggestions_); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entity_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, entity_); } @@ -683,6 +709,7 @@ public boolean equals(final java.lang.Object obj) { if (!getDeviceType().equals(other.getDeviceType())) return false; if (!getDataset().equals(other.getDataset())) return false; if (getMaxSuggestions() != other.getMaxSuggestions()) return false; + if (getEnableAttributeSuggestions() != other.getEnableAttributeSuggestions()) return false; if (!getEntity().equals(other.getEntity())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -711,6 +738,8 @@ public int hashCode() { hash = (53 * hash) + getDataset().hashCode(); hash = (37 * hash) + MAX_SUGGESTIONS_FIELD_NUMBER; hash = (53 * hash) + getMaxSuggestions(); + hash = (37 * hash) + ENABLE_ATTRIBUTE_SUGGESTIONS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableAttributeSuggestions()); hash = (37 * hash) + ENTITY_FIELD_NUMBER; hash = (53 * hash) + getEntity().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -859,6 +888,7 @@ public Builder clear() { deviceType_ = ""; dataset_ = ""; maxSuggestions_ = 0; + enableAttributeSuggestions_ = false; entity_ = ""; return this; } @@ -919,6 +949,9 @@ private void buildPartial0(com.google.cloud.retail.v2.CompleteQueryRequest resul result.maxSuggestions_ = maxSuggestions_; } if (((from_bitField0_ & 0x00000080) != 0)) { + result.enableAttributeSuggestions_ = enableAttributeSuggestions_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { result.entity_ = entity_; } } @@ -1007,9 +1040,12 @@ public Builder mergeFrom(com.google.cloud.retail.v2.CompleteQueryRequest other) if (other.getMaxSuggestions() != 0) { setMaxSuggestions(other.getMaxSuggestions()); } + if (other.getEnableAttributeSuggestions() != false) { + setEnableAttributeSuggestions(other.getEnableAttributeSuggestions()); + } if (!other.getEntity().isEmpty()) { entity_ = other.entity_; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -1081,10 +1117,16 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 58 + case 72: + { + enableAttributeSuggestions_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 72 case 82: { entity_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 82 default: @@ -2150,15 +2192,74 @@ public Builder clearMaxSuggestions() { return this; } + private boolean enableAttributeSuggestions_; + /** + * + * + *
+     * If true, attribute suggestions are enabled and provided in response.
+     *
+     * This field is only available for "cloud-retail" dataset.
+     * 
+ * + * bool enable_attribute_suggestions = 9; + * + * @return The enableAttributeSuggestions. + */ + @java.lang.Override + public boolean getEnableAttributeSuggestions() { + return enableAttributeSuggestions_; + } + /** + * + * + *
+     * If true, attribute suggestions are enabled and provided in response.
+     *
+     * This field is only available for "cloud-retail" dataset.
+     * 
+ * + * bool enable_attribute_suggestions = 9; + * + * @param value The enableAttributeSuggestions to set. + * @return This builder for chaining. + */ + public Builder setEnableAttributeSuggestions(boolean value) { + + enableAttributeSuggestions_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * If true, attribute suggestions are enabled and provided in response.
+     *
+     * This field is only available for "cloud-retail" dataset.
+     * 
+ * + * bool enable_attribute_suggestions = 9; + * + * @return This builder for chaining. + */ + public Builder clearEnableAttributeSuggestions() { + bitField0_ = (bitField0_ & ~0x00000080); + enableAttributeSuggestions_ = false; + onChanged(); + return this; + } + private java.lang.Object entity_ = ""; /** * * *
-     * The entity for customers that may run multiple different entities, domains,
-     * sites or regions, for example, `Google US`, `Google Ads`, `Waymo`,
+     * The entity for customers who run multiple entities, domains, sites, or
+     * regions, for example, `Google US`, `Google Ads`, `Waymo`,
      * `google.com`, `youtube.com`, etc.
-     * If this is set, it should be exactly matched with
+     * If this is set, it must be an exact match with
      * [UserEvent.entity][google.cloud.retail.v2.UserEvent.entity] to get
      * per-entity autocomplete results.
      * 
@@ -2182,10 +2283,10 @@ public java.lang.String getEntity() { * * *
-     * The entity for customers that may run multiple different entities, domains,
-     * sites or regions, for example, `Google US`, `Google Ads`, `Waymo`,
+     * The entity for customers who run multiple entities, domains, sites, or
+     * regions, for example, `Google US`, `Google Ads`, `Waymo`,
      * `google.com`, `youtube.com`, etc.
-     * If this is set, it should be exactly matched with
+     * If this is set, it must be an exact match with
      * [UserEvent.entity][google.cloud.retail.v2.UserEvent.entity] to get
      * per-entity autocomplete results.
      * 
@@ -2209,10 +2310,10 @@ public com.google.protobuf.ByteString getEntityBytes() { * * *
-     * The entity for customers that may run multiple different entities, domains,
-     * sites or regions, for example, `Google US`, `Google Ads`, `Waymo`,
+     * The entity for customers who run multiple entities, domains, sites, or
+     * regions, for example, `Google US`, `Google Ads`, `Waymo`,
      * `google.com`, `youtube.com`, etc.
-     * If this is set, it should be exactly matched with
+     * If this is set, it must be an exact match with
      * [UserEvent.entity][google.cloud.retail.v2.UserEvent.entity] to get
      * per-entity autocomplete results.
      * 
@@ -2227,7 +2328,7 @@ public Builder setEntity(java.lang.String value) { throw new NullPointerException(); } entity_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2235,10 +2336,10 @@ public Builder setEntity(java.lang.String value) { * * *
-     * The entity for customers that may run multiple different entities, domains,
-     * sites or regions, for example, `Google US`, `Google Ads`, `Waymo`,
+     * The entity for customers who run multiple entities, domains, sites, or
+     * regions, for example, `Google US`, `Google Ads`, `Waymo`,
      * `google.com`, `youtube.com`, etc.
-     * If this is set, it should be exactly matched with
+     * If this is set, it must be an exact match with
      * [UserEvent.entity][google.cloud.retail.v2.UserEvent.entity] to get
      * per-entity autocomplete results.
      * 
@@ -2249,7 +2350,7 @@ public Builder setEntity(java.lang.String value) { */ public Builder clearEntity() { entity_ = getDefaultInstance().getEntity(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -2257,10 +2358,10 @@ public Builder clearEntity() { * * *
-     * The entity for customers that may run multiple different entities, domains,
-     * sites or regions, for example, `Google US`, `Google Ads`, `Waymo`,
+     * The entity for customers who run multiple entities, domains, sites, or
+     * regions, for example, `Google US`, `Google Ads`, `Waymo`,
      * `google.com`, `youtube.com`, etc.
-     * If this is set, it should be exactly matched with
+     * If this is set, it must be an exact match with
      * [UserEvent.entity][google.cloud.retail.v2.UserEvent.entity] to get
      * per-entity autocomplete results.
      * 
@@ -2276,7 +2377,7 @@ public Builder setEntityBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); entity_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CompleteQueryRequestOrBuilder.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CompleteQueryRequestOrBuilder.java index a2ea3d939ae5..ca4d46f32218 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CompleteQueryRequestOrBuilder.java +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CompleteQueryRequestOrBuilder.java @@ -334,10 +334,25 @@ public interface CompleteQueryRequestOrBuilder * * *
-   * The entity for customers that may run multiple different entities, domains,
-   * sites or regions, for example, `Google US`, `Google Ads`, `Waymo`,
+   * If true, attribute suggestions are enabled and provided in response.
+   *
+   * This field is only available for "cloud-retail" dataset.
+   * 
+ * + * bool enable_attribute_suggestions = 9; + * + * @return The enableAttributeSuggestions. + */ + boolean getEnableAttributeSuggestions(); + + /** + * + * + *
+   * The entity for customers who run multiple entities, domains, sites, or
+   * regions, for example, `Google US`, `Google Ads`, `Waymo`,
    * `google.com`, `youtube.com`, etc.
-   * If this is set, it should be exactly matched with
+   * If this is set, it must be an exact match with
    * [UserEvent.entity][google.cloud.retail.v2.UserEvent.entity] to get
    * per-entity autocomplete results.
    * 
@@ -351,10 +366,10 @@ public interface CompleteQueryRequestOrBuilder * * *
-   * The entity for customers that may run multiple different entities, domains,
-   * sites or regions, for example, `Google US`, `Google Ads`, `Waymo`,
+   * The entity for customers who run multiple entities, domains, sites, or
+   * regions, for example, `Google US`, `Google Ads`, `Waymo`,
    * `google.com`, `youtube.com`, etc.
-   * If this is set, it should be exactly matched with
+   * If this is set, it must be an exact match with
    * [UserEvent.entity][google.cloud.retail.v2.UserEvent.entity] to get
    * per-entity autocomplete results.
    * 
diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CompleteQueryResponse.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CompleteQueryResponse.java index d71f881d3dba..5020402e4aaf 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CompleteQueryResponse.java +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CompleteQueryResponse.java @@ -1334,6 +1334,7 @@ public com.google.protobuf.Parser getParserForType() { } } + @java.lang.Deprecated public interface RecentSearchResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult) @@ -1368,11 +1369,12 @@ public interface RecentSearchResultOrBuilder * * *
-   * Recent search of this user.
+   * Deprecated: Recent search of this user.
    * 
* * Protobuf type {@code google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult} */ + @java.lang.Deprecated public static final class RecentSearchResult extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult) @@ -1625,7 +1627,7 @@ protected Builder newBuilderForType( * * *
-     * Recent search of this user.
+     * Deprecated: Recent search of this user.
      * 
* * Protobuf type {@code google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult} @@ -2144,9 +2146,9 @@ public com.google.protobuf.ByteString getAttributionTokenBytes() { * * *
-   * Matched recent searches of this user. The maximum number of recent searches
-   * is 10. This field is a restricted feature. Contact Retail Search support
-   * team if you are interested in enabling it.
+   * Deprecated. Matched recent searches of this user. The maximum number of
+   * recent searches is 10. This field is a restricted feature. If you want to
+   * enable it, contact Retail Search support.
    *
    * This feature is only available when
    * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2.CompleteQueryRequest.visitor_id]
@@ -2168,10 +2170,11 @@ public com.google.protobuf.ByteString getAttributionTokenBytes() {
    * 
* * - * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ @java.lang.Override + @java.lang.Deprecated public java.util.List getRecentSearchResultsList() { return recentSearchResults_; @@ -2180,9 +2183,9 @@ public com.google.protobuf.ByteString getAttributionTokenBytes() { * * *
-   * Matched recent searches of this user. The maximum number of recent searches
-   * is 10. This field is a restricted feature. Contact Retail Search support
-   * team if you are interested in enabling it.
+   * Deprecated. Matched recent searches of this user. The maximum number of
+   * recent searches is 10. This field is a restricted feature. If you want to
+   * enable it, contact Retail Search support.
    *
    * This feature is only available when
    * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2.CompleteQueryRequest.visitor_id]
@@ -2204,10 +2207,11 @@ public com.google.protobuf.ByteString getAttributionTokenBytes() {
    * 
* * - * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ @java.lang.Override + @java.lang.Deprecated public java.util.List< ? extends com.google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResultOrBuilder> getRecentSearchResultsOrBuilderList() { @@ -2217,9 +2221,9 @@ public com.google.protobuf.ByteString getAttributionTokenBytes() { * * *
-   * Matched recent searches of this user. The maximum number of recent searches
-   * is 10. This field is a restricted feature. Contact Retail Search support
-   * team if you are interested in enabling it.
+   * Deprecated. Matched recent searches of this user. The maximum number of
+   * recent searches is 10. This field is a restricted feature. If you want to
+   * enable it, contact Retail Search support.
    *
    * This feature is only available when
    * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2.CompleteQueryRequest.visitor_id]
@@ -2241,10 +2245,11 @@ public com.google.protobuf.ByteString getAttributionTokenBytes() {
    * 
* * - * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ @java.lang.Override + @java.lang.Deprecated public int getRecentSearchResultsCount() { return recentSearchResults_.size(); } @@ -2252,9 +2257,9 @@ public int getRecentSearchResultsCount() { * * *
-   * Matched recent searches of this user. The maximum number of recent searches
-   * is 10. This field is a restricted feature. Contact Retail Search support
-   * team if you are interested in enabling it.
+   * Deprecated. Matched recent searches of this user. The maximum number of
+   * recent searches is 10. This field is a restricted feature. If you want to
+   * enable it, contact Retail Search support.
    *
    * This feature is only available when
    * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2.CompleteQueryRequest.visitor_id]
@@ -2276,10 +2281,11 @@ public int getRecentSearchResultsCount() {
    * 
* * - * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult getRecentSearchResults( int index) { return recentSearchResults_.get(index); @@ -2288,9 +2294,9 @@ public com.google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult getRe * * *
-   * Matched recent searches of this user. The maximum number of recent searches
-   * is 10. This field is a restricted feature. Contact Retail Search support
-   * team if you are interested in enabling it.
+   * Deprecated. Matched recent searches of this user. The maximum number of
+   * recent searches is 10. This field is a restricted feature. If you want to
+   * enable it, contact Retail Search support.
    *
    * This feature is only available when
    * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2.CompleteQueryRequest.visitor_id]
@@ -2312,10 +2318,11 @@ public com.google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult getRe
    * 
* * - * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResultOrBuilder getRecentSearchResultsOrBuilder(int index) { return recentSearchResults_.get(index); @@ -3380,9 +3387,9 @@ private void ensureRecentSearchResultsIsMutable() { * * *
-     * Matched recent searches of this user. The maximum number of recent searches
-     * is 10. This field is a restricted feature. Contact Retail Search support
-     * team if you are interested in enabling it.
+     * Deprecated. Matched recent searches of this user. The maximum number of
+     * recent searches is 10. This field is a restricted feature. If you want to
+     * enable it, contact Retail Search support.
      *
      * This feature is only available when
      * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2.CompleteQueryRequest.visitor_id]
@@ -3404,9 +3411,10 @@ private void ensureRecentSearchResultsIsMutable() {
      * 
* * - * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated public java.util.List getRecentSearchResultsList() { if (recentSearchResultsBuilder_ == null) { @@ -3419,9 +3427,9 @@ private void ensureRecentSearchResultsIsMutable() { * * *
-     * Matched recent searches of this user. The maximum number of recent searches
-     * is 10. This field is a restricted feature. Contact Retail Search support
-     * team if you are interested in enabling it.
+     * Deprecated. Matched recent searches of this user. The maximum number of
+     * recent searches is 10. This field is a restricted feature. If you want to
+     * enable it, contact Retail Search support.
      *
      * This feature is only available when
      * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2.CompleteQueryRequest.visitor_id]
@@ -3443,9 +3451,10 @@ private void ensureRecentSearchResultsIsMutable() {
      * 
* * - * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated public int getRecentSearchResultsCount() { if (recentSearchResultsBuilder_ == null) { return recentSearchResults_.size(); @@ -3457,9 +3466,9 @@ public int getRecentSearchResultsCount() { * * *
-     * Matched recent searches of this user. The maximum number of recent searches
-     * is 10. This field is a restricted feature. Contact Retail Search support
-     * team if you are interested in enabling it.
+     * Deprecated. Matched recent searches of this user. The maximum number of
+     * recent searches is 10. This field is a restricted feature. If you want to
+     * enable it, contact Retail Search support.
      *
      * This feature is only available when
      * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2.CompleteQueryRequest.visitor_id]
@@ -3481,9 +3490,10 @@ public int getRecentSearchResultsCount() {
      * 
* * - * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated public com.google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult getRecentSearchResults(int index) { if (recentSearchResultsBuilder_ == null) { @@ -3496,9 +3506,9 @@ public int getRecentSearchResultsCount() { * * *
-     * Matched recent searches of this user. The maximum number of recent searches
-     * is 10. This field is a restricted feature. Contact Retail Search support
-     * team if you are interested in enabling it.
+     * Deprecated. Matched recent searches of this user. The maximum number of
+     * recent searches is 10. This field is a restricted feature. If you want to
+     * enable it, contact Retail Search support.
      *
      * This feature is only available when
      * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2.CompleteQueryRequest.visitor_id]
@@ -3520,9 +3530,10 @@ public int getRecentSearchResultsCount() {
      * 
* * - * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated public Builder setRecentSearchResults( int index, com.google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult value) { if (recentSearchResultsBuilder_ == null) { @@ -3541,9 +3552,9 @@ public Builder setRecentSearchResults( * * *
-     * Matched recent searches of this user. The maximum number of recent searches
-     * is 10. This field is a restricted feature. Contact Retail Search support
-     * team if you are interested in enabling it.
+     * Deprecated. Matched recent searches of this user. The maximum number of
+     * recent searches is 10. This field is a restricted feature. If you want to
+     * enable it, contact Retail Search support.
      *
      * This feature is only available when
      * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2.CompleteQueryRequest.visitor_id]
@@ -3565,9 +3576,10 @@ public Builder setRecentSearchResults(
      * 
* * - * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated public Builder setRecentSearchResults( int index, com.google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult.Builder @@ -3585,9 +3597,9 @@ public Builder setRecentSearchResults( * * *
-     * Matched recent searches of this user. The maximum number of recent searches
-     * is 10. This field is a restricted feature. Contact Retail Search support
-     * team if you are interested in enabling it.
+     * Deprecated. Matched recent searches of this user. The maximum number of
+     * recent searches is 10. This field is a restricted feature. If you want to
+     * enable it, contact Retail Search support.
      *
      * This feature is only available when
      * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2.CompleteQueryRequest.visitor_id]
@@ -3609,9 +3621,10 @@ public Builder setRecentSearchResults(
      * 
* * - * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated public Builder addRecentSearchResults( com.google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult value) { if (recentSearchResultsBuilder_ == null) { @@ -3630,9 +3643,9 @@ public Builder addRecentSearchResults( * * *
-     * Matched recent searches of this user. The maximum number of recent searches
-     * is 10. This field is a restricted feature. Contact Retail Search support
-     * team if you are interested in enabling it.
+     * Deprecated. Matched recent searches of this user. The maximum number of
+     * recent searches is 10. This field is a restricted feature. If you want to
+     * enable it, contact Retail Search support.
      *
      * This feature is only available when
      * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2.CompleteQueryRequest.visitor_id]
@@ -3654,9 +3667,10 @@ public Builder addRecentSearchResults(
      * 
* * - * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated public Builder addRecentSearchResults( int index, com.google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult value) { if (recentSearchResultsBuilder_ == null) { @@ -3675,9 +3689,9 @@ public Builder addRecentSearchResults( * * *
-     * Matched recent searches of this user. The maximum number of recent searches
-     * is 10. This field is a restricted feature. Contact Retail Search support
-     * team if you are interested in enabling it.
+     * Deprecated. Matched recent searches of this user. The maximum number of
+     * recent searches is 10. This field is a restricted feature. If you want to
+     * enable it, contact Retail Search support.
      *
      * This feature is only available when
      * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2.CompleteQueryRequest.visitor_id]
@@ -3699,9 +3713,10 @@ public Builder addRecentSearchResults(
      * 
* * - * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated public Builder addRecentSearchResults( com.google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult.Builder builderForValue) { @@ -3718,9 +3733,9 @@ public Builder addRecentSearchResults( * * *
-     * Matched recent searches of this user. The maximum number of recent searches
-     * is 10. This field is a restricted feature. Contact Retail Search support
-     * team if you are interested in enabling it.
+     * Deprecated. Matched recent searches of this user. The maximum number of
+     * recent searches is 10. This field is a restricted feature. If you want to
+     * enable it, contact Retail Search support.
      *
      * This feature is only available when
      * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2.CompleteQueryRequest.visitor_id]
@@ -3742,9 +3757,10 @@ public Builder addRecentSearchResults(
      * 
* * - * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated public Builder addRecentSearchResults( int index, com.google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult.Builder @@ -3762,9 +3778,9 @@ public Builder addRecentSearchResults( * * *
-     * Matched recent searches of this user. The maximum number of recent searches
-     * is 10. This field is a restricted feature. Contact Retail Search support
-     * team if you are interested in enabling it.
+     * Deprecated. Matched recent searches of this user. The maximum number of
+     * recent searches is 10. This field is a restricted feature. If you want to
+     * enable it, contact Retail Search support.
      *
      * This feature is only available when
      * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2.CompleteQueryRequest.visitor_id]
@@ -3786,9 +3802,10 @@ public Builder addRecentSearchResults(
      * 
* * - * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated public Builder addAllRecentSearchResults( java.lang.Iterable< ? extends com.google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult> @@ -3806,9 +3823,9 @@ public Builder addAllRecentSearchResults( * * *
-     * Matched recent searches of this user. The maximum number of recent searches
-     * is 10. This field is a restricted feature. Contact Retail Search support
-     * team if you are interested in enabling it.
+     * Deprecated. Matched recent searches of this user. The maximum number of
+     * recent searches is 10. This field is a restricted feature. If you want to
+     * enable it, contact Retail Search support.
      *
      * This feature is only available when
      * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2.CompleteQueryRequest.visitor_id]
@@ -3830,9 +3847,10 @@ public Builder addAllRecentSearchResults(
      * 
* * - * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated public Builder clearRecentSearchResults() { if (recentSearchResultsBuilder_ == null) { recentSearchResults_ = java.util.Collections.emptyList(); @@ -3847,9 +3865,9 @@ public Builder clearRecentSearchResults() { * * *
-     * Matched recent searches of this user. The maximum number of recent searches
-     * is 10. This field is a restricted feature. Contact Retail Search support
-     * team if you are interested in enabling it.
+     * Deprecated. Matched recent searches of this user. The maximum number of
+     * recent searches is 10. This field is a restricted feature. If you want to
+     * enable it, contact Retail Search support.
      *
      * This feature is only available when
      * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2.CompleteQueryRequest.visitor_id]
@@ -3871,9 +3889,10 @@ public Builder clearRecentSearchResults() {
      * 
* * - * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated public Builder removeRecentSearchResults(int index) { if (recentSearchResultsBuilder_ == null) { ensureRecentSearchResultsIsMutable(); @@ -3888,9 +3907,9 @@ public Builder removeRecentSearchResults(int index) { * * *
-     * Matched recent searches of this user. The maximum number of recent searches
-     * is 10. This field is a restricted feature. Contact Retail Search support
-     * team if you are interested in enabling it.
+     * Deprecated. Matched recent searches of this user. The maximum number of
+     * recent searches is 10. This field is a restricted feature. If you want to
+     * enable it, contact Retail Search support.
      *
      * This feature is only available when
      * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2.CompleteQueryRequest.visitor_id]
@@ -3912,9 +3931,10 @@ public Builder removeRecentSearchResults(int index) {
      * 
* * - * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated public com.google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult.Builder getRecentSearchResultsBuilder(int index) { return getRecentSearchResultsFieldBuilder().getBuilder(index); @@ -3923,9 +3943,9 @@ public Builder removeRecentSearchResults(int index) { * * *
-     * Matched recent searches of this user. The maximum number of recent searches
-     * is 10. This field is a restricted feature. Contact Retail Search support
-     * team if you are interested in enabling it.
+     * Deprecated. Matched recent searches of this user. The maximum number of
+     * recent searches is 10. This field is a restricted feature. If you want to
+     * enable it, contact Retail Search support.
      *
      * This feature is only available when
      * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2.CompleteQueryRequest.visitor_id]
@@ -3947,9 +3967,10 @@ public Builder removeRecentSearchResults(int index) {
      * 
* * - * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated public com.google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResultOrBuilder getRecentSearchResultsOrBuilder(int index) { if (recentSearchResultsBuilder_ == null) { @@ -3962,9 +3983,9 @@ public Builder removeRecentSearchResults(int index) { * * *
-     * Matched recent searches of this user. The maximum number of recent searches
-     * is 10. This field is a restricted feature. Contact Retail Search support
-     * team if you are interested in enabling it.
+     * Deprecated. Matched recent searches of this user. The maximum number of
+     * recent searches is 10. This field is a restricted feature. If you want to
+     * enable it, contact Retail Search support.
      *
      * This feature is only available when
      * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2.CompleteQueryRequest.visitor_id]
@@ -3986,9 +4007,10 @@ public Builder removeRecentSearchResults(int index) {
      * 
* * - * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated public java.util.List< ? extends com.google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResultOrBuilder> getRecentSearchResultsOrBuilderList() { @@ -4002,9 +4024,9 @@ public Builder removeRecentSearchResults(int index) { * * *
-     * Matched recent searches of this user. The maximum number of recent searches
-     * is 10. This field is a restricted feature. Contact Retail Search support
-     * team if you are interested in enabling it.
+     * Deprecated. Matched recent searches of this user. The maximum number of
+     * recent searches is 10. This field is a restricted feature. If you want to
+     * enable it, contact Retail Search support.
      *
      * This feature is only available when
      * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2.CompleteQueryRequest.visitor_id]
@@ -4026,9 +4048,10 @@ public Builder removeRecentSearchResults(int index) {
      * 
* * - * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated public com.google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult.Builder addRecentSearchResultsBuilder() { return getRecentSearchResultsFieldBuilder() @@ -4040,9 +4063,9 @@ public Builder removeRecentSearchResults(int index) { * * *
-     * Matched recent searches of this user. The maximum number of recent searches
-     * is 10. This field is a restricted feature. Contact Retail Search support
-     * team if you are interested in enabling it.
+     * Deprecated. Matched recent searches of this user. The maximum number of
+     * recent searches is 10. This field is a restricted feature. If you want to
+     * enable it, contact Retail Search support.
      *
      * This feature is only available when
      * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2.CompleteQueryRequest.visitor_id]
@@ -4064,9 +4087,10 @@ public Builder removeRecentSearchResults(int index) {
      * 
* * - * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated public com.google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult.Builder addRecentSearchResultsBuilder(int index) { return getRecentSearchResultsFieldBuilder() @@ -4079,9 +4103,9 @@ public Builder removeRecentSearchResults(int index) { * * *
-     * Matched recent searches of this user. The maximum number of recent searches
-     * is 10. This field is a restricted feature. Contact Retail Search support
-     * team if you are interested in enabling it.
+     * Deprecated. Matched recent searches of this user. The maximum number of
+     * recent searches is 10. This field is a restricted feature. If you want to
+     * enable it, contact Retail Search support.
      *
      * This feature is only available when
      * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2.CompleteQueryRequest.visitor_id]
@@ -4103,9 +4127,10 @@ public Builder removeRecentSearchResults(int index) {
      * 
* * - * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated public java.util.List< com.google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult.Builder> getRecentSearchResultsBuilderList() { diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CompleteQueryResponseOrBuilder.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CompleteQueryResponseOrBuilder.java index 838f2856f366..62ed83e6b952 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CompleteQueryResponseOrBuilder.java +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CompleteQueryResponseOrBuilder.java @@ -129,9 +129,9 @@ public interface CompleteQueryResponseOrBuilder * * *
-   * Matched recent searches of this user. The maximum number of recent searches
-   * is 10. This field is a restricted feature. Contact Retail Search support
-   * team if you are interested in enabling it.
+   * Deprecated. Matched recent searches of this user. The maximum number of
+   * recent searches is 10. This field is a restricted feature. If you want to
+   * enable it, contact Retail Search support.
    *
    * This feature is only available when
    * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2.CompleteQueryRequest.visitor_id]
@@ -153,18 +153,19 @@ public interface CompleteQueryResponseOrBuilder
    * 
* * - * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated java.util.List getRecentSearchResultsList(); /** * * *
-   * Matched recent searches of this user. The maximum number of recent searches
-   * is 10. This field is a restricted feature. Contact Retail Search support
-   * team if you are interested in enabling it.
+   * Deprecated. Matched recent searches of this user. The maximum number of
+   * recent searches is 10. This field is a restricted feature. If you want to
+   * enable it, contact Retail Search support.
    *
    * This feature is only available when
    * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2.CompleteQueryRequest.visitor_id]
@@ -186,18 +187,19 @@ public interface CompleteQueryResponseOrBuilder
    * 
* * - * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated com.google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult getRecentSearchResults( int index); /** * * *
-   * Matched recent searches of this user. The maximum number of recent searches
-   * is 10. This field is a restricted feature. Contact Retail Search support
-   * team if you are interested in enabling it.
+   * Deprecated. Matched recent searches of this user. The maximum number of
+   * recent searches is 10. This field is a restricted feature. If you want to
+   * enable it, contact Retail Search support.
    *
    * This feature is only available when
    * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2.CompleteQueryRequest.visitor_id]
@@ -219,17 +221,18 @@ com.google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult getRecentSea
    * 
* * - * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated int getRecentSearchResultsCount(); /** * * *
-   * Matched recent searches of this user. The maximum number of recent searches
-   * is 10. This field is a restricted feature. Contact Retail Search support
-   * team if you are interested in enabling it.
+   * Deprecated. Matched recent searches of this user. The maximum number of
+   * recent searches is 10. This field is a restricted feature. If you want to
+   * enable it, contact Retail Search support.
    *
    * This feature is only available when
    * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2.CompleteQueryRequest.visitor_id]
@@ -251,9 +254,10 @@ com.google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult getRecentSea
    * 
* * - * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated java.util.List< ? extends com.google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResultOrBuilder> getRecentSearchResultsOrBuilderList(); @@ -261,9 +265,9 @@ com.google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult getRecentSea * * *
-   * Matched recent searches of this user. The maximum number of recent searches
-   * is 10. This field is a restricted feature. Contact Retail Search support
-   * team if you are interested in enabling it.
+   * Deprecated. Matched recent searches of this user. The maximum number of
+   * recent searches is 10. This field is a restricted feature. If you want to
+   * enable it, contact Retail Search support.
    *
    * This feature is only available when
    * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2.CompleteQueryRequest.visitor_id]
@@ -285,9 +289,10 @@ com.google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult getRecentSea
    * 
* * - * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated com.google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResultOrBuilder getRecentSearchResultsOrBuilder(int index); } diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CompletionConfig.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CompletionConfig.java index 108f2a158ea4..5e305b973262 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CompletionConfig.java +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CompletionConfig.java @@ -330,8 +330,8 @@ public com.google.cloud.retail.v2.CompletionDataInputConfig getSuggestionsInputC * Output only. Name of the LRO corresponding to the latest suggestion terms * list import. * - * Can use [GetOperation][google.longrunning.Operations.GetOperation] API to - * retrieve the latest state of the Long Running Operation. + * Can use [GetOperation][google.longrunning.Operations.GetOperation] API + * method to retrieve the latest state of the Long Running Operation. *
* * @@ -359,8 +359,8 @@ public java.lang.String getLastSuggestionsImportOperation() { * Output only. Name of the LRO corresponding to the latest suggestion terms * list import. * - * Can use [GetOperation][google.longrunning.Operations.GetOperation] API to - * retrieve the latest state of the Long Running Operation. + * Can use [GetOperation][google.longrunning.Operations.GetOperation] API + * method to retrieve the latest state of the Long Running Operation. *
* * @@ -1944,8 +1944,8 @@ public Builder clearSuggestionsInputConfig() { * Output only. Name of the LRO corresponding to the latest suggestion terms * list import. * - * Can use [GetOperation][google.longrunning.Operations.GetOperation] API to - * retrieve the latest state of the Long Running Operation. + * Can use [GetOperation][google.longrunning.Operations.GetOperation] API + * method to retrieve the latest state of the Long Running Operation. *
* * @@ -1972,8 +1972,8 @@ public java.lang.String getLastSuggestionsImportOperation() { * Output only. Name of the LRO corresponding to the latest suggestion terms * list import. * - * Can use [GetOperation][google.longrunning.Operations.GetOperation] API to - * retrieve the latest state of the Long Running Operation. + * Can use [GetOperation][google.longrunning.Operations.GetOperation] API + * method to retrieve the latest state of the Long Running Operation. *
* * @@ -2000,8 +2000,8 @@ public com.google.protobuf.ByteString getLastSuggestionsImportOperationBytes() { * Output only. Name of the LRO corresponding to the latest suggestion terms * list import. * - * Can use [GetOperation][google.longrunning.Operations.GetOperation] API to - * retrieve the latest state of the Long Running Operation. + * Can use [GetOperation][google.longrunning.Operations.GetOperation] API + * method to retrieve the latest state of the Long Running Operation. *
* * @@ -2027,8 +2027,8 @@ public Builder setLastSuggestionsImportOperation(java.lang.String value) { * Output only. Name of the LRO corresponding to the latest suggestion terms * list import. * - * Can use [GetOperation][google.longrunning.Operations.GetOperation] API to - * retrieve the latest state of the Long Running Operation. + * Can use [GetOperation][google.longrunning.Operations.GetOperation] API + * method to retrieve the latest state of the Long Running Operation. *
* * @@ -2050,8 +2050,8 @@ public Builder clearLastSuggestionsImportOperation() { * Output only. Name of the LRO corresponding to the latest suggestion terms * list import. * - * Can use [GetOperation][google.longrunning.Operations.GetOperation] API to - * retrieve the latest state of the Long Running Operation. + * Can use [GetOperation][google.longrunning.Operations.GetOperation] API + * method to retrieve the latest state of the Long Running Operation. * * * diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CompletionConfigOrBuilder.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CompletionConfigOrBuilder.java index cecb1c7d0784..4ff2ba588d87 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CompletionConfigOrBuilder.java +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CompletionConfigOrBuilder.java @@ -199,8 +199,8 @@ public interface CompletionConfigOrBuilder * Output only. Name of the LRO corresponding to the latest suggestion terms * list import. * - * Can use [GetOperation][google.longrunning.Operations.GetOperation] API to - * retrieve the latest state of the Long Running Operation. + * Can use [GetOperation][google.longrunning.Operations.GetOperation] API + * method to retrieve the latest state of the Long Running Operation. * * * @@ -217,8 +217,8 @@ public interface CompletionConfigOrBuilder * Output only. Name of the LRO corresponding to the latest suggestion terms * list import. * - * Can use [GetOperation][google.longrunning.Operations.GetOperation] API to - * retrieve the latest state of the Long Running Operation. + * Can use [GetOperation][google.longrunning.Operations.GetOperation] API + * method to retrieve the latest state of the Long Running Operation. * * * diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CompletionServiceProto.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CompletionServiceProto.java index 5b05b621fc3f..9e5d0d0a0582 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CompletionServiceProto.java +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CompletionServiceProto.java @@ -64,45 +64,46 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "o\032\031google/api/resource.proto\032#google/clo" + "ud/retail/v2/common.proto\032*google/cloud/" + "retail/v2/import_config.proto\032#google/lo" - + "ngrunning/operations.proto\"\335\001\n\024CompleteQ" + + "ngrunning/operations.proto\"\203\002\n\024CompleteQ" + "ueryRequest\0226\n\007catalog\030\001 \001(\tB%\340A\002\372A\037\n\035re" + "tail.googleapis.com/Catalog\022\022\n\005query\030\002 \001" + "(\tB\003\340A\002\022\022\n\nvisitor_id\030\007 \001(\t\022\026\n\016language_" + "codes\030\003 \003(\t\022\023\n\013device_type\030\004 \001(\t\022\017\n\007data" - + "set\030\006 \001(\t\022\027\n\017max_suggestions\030\005 \001(\005\022\016\n\006en" - + "tity\030\n \001(\t\"\205\004\n\025CompleteQueryResponse\022Z\n\022" - + "completion_results\030\001 \003(\0132>.google.cloud." - + "retail.v2.CompleteQueryResponse.Completi" - + "onResult\022\031\n\021attribution_token\030\002 \001(\t\022_\n\025r" - + "ecent_search_results\030\003 \003(\0132@.google.clou" - + "d.retail.v2.CompleteQueryResponse.Recent" - + "SearchResult\032\346\001\n\020CompletionResult\022\022\n\nsug" - + "gestion\030\001 \001(\t\022b\n\nattributes\030\002 \003(\0132N.goog" - + "le.cloud.retail.v2.CompleteQueryResponse" - + ".CompletionResult.AttributesEntry\032Z\n\017Att" - + "ributesEntry\022\013\n\003key\030\001 \001(\t\0226\n\005value\030\002 \001(\013" - + "2\'.google.cloud.retail.v2.CustomAttribut" - + "e:\0028\001\032+\n\022RecentSearchResult\022\025\n\rrecent_se" - + "arch\030\001 \001(\t2\262\004\n\021CompletionService\022\263\001\n\rCom" - + "pleteQuery\022,.google.cloud.retail.v2.Comp" - + "leteQueryRequest\032-.google.cloud.retail.v" - + "2.CompleteQueryResponse\"E\202\323\344\223\002?\022=/v2/{ca" - + "talog=projects/*/locations/*/catalogs/*}" - + ":completeQuery\022\233\002\n\024ImportCompletionData\022" - + "3.google.cloud.retail.v2.ImportCompletio" - + "nDataRequest\032\035.google.longrunning.Operat" - + "ion\"\256\001\312A\\\n3google.cloud.retail.v2.Import" - + "CompletionDataResponse\022%google.cloud.ret" - + "ail.v2.ImportMetadata\202\323\344\223\002I\"D/v2/{parent" - + "=projects/*/locations/*/catalogs/*}/comp" - + "letionData:import:\001*\032I\312A\025retail.googleap" - + "is.com\322A.https://www.googleapis.com/auth" - + "/cloud-platformB\301\001\n\032com.google.cloud.ret" - + "ail.v2B\026CompletionServiceProtoP\001Z2cloud." - + "google.com/go/retail/apiv2/retailpb;reta" - + "ilpb\242\002\006RETAIL\252\002\026Google.Cloud.Retail.V2\312\002" - + "\026Google\\Cloud\\Retail\\V2\352\002\031Google::Cloud:" - + ":Retail::V2b\006proto3" + + "set\030\006 \001(\t\022\027\n\017max_suggestions\030\005 \001(\005\022$\n\034en" + + "able_attribute_suggestions\030\t \001(\010\022\016\n\006enti" + + "ty\030\n \001(\t\"\215\004\n\025CompleteQueryResponse\022Z\n\022co" + + "mpletion_results\030\001 \003(\0132>.google.cloud.re" + + "tail.v2.CompleteQueryResponse.Completion" + + "Result\022\031\n\021attribution_token\030\002 \001(\t\022c\n\025rec" + + "ent_search_results\030\003 \003(\0132@.google.cloud." + + "retail.v2.CompleteQueryResponse.RecentSe" + + "archResultB\002\030\001\032\346\001\n\020CompletionResult\022\022\n\ns" + + "uggestion\030\001 \001(\t\022b\n\nattributes\030\002 \003(\0132N.go" + + "ogle.cloud.retail.v2.CompleteQueryRespon" + + "se.CompletionResult.AttributesEntry\032Z\n\017A" + + "ttributesEntry\022\013\n\003key\030\001 \001(\t\0226\n\005value\030\002 \001" + + "(\0132\'.google.cloud.retail.v2.CustomAttrib" + + "ute:\0028\001\032/\n\022RecentSearchResult\022\025\n\rrecent_" + + "search\030\001 \001(\t:\002\030\0012\262\004\n\021CompletionService\022\263" + + "\001\n\rCompleteQuery\022,.google.cloud.retail.v" + + "2.CompleteQueryRequest\032-.google.cloud.re" + + "tail.v2.CompleteQueryResponse\"E\202\323\344\223\002?\022=/" + + "v2/{catalog=projects/*/locations/*/catal" + + "ogs/*}:completeQuery\022\233\002\n\024ImportCompletio" + + "nData\0223.google.cloud.retail.v2.ImportCom" + + "pletionDataRequest\032\035.google.longrunning." + + "Operation\"\256\001\312A\\\n3google.cloud.retail.v2." + + "ImportCompletionDataResponse\022%google.clo" + + "ud.retail.v2.ImportMetadata\202\323\344\223\002I\"D/v2/{" + + "parent=projects/*/locations/*/catalogs/*" + + "}/completionData:import:\001*\032I\312A\025retail.go" + + "ogleapis.com\322A.https://www.googleapis.co" + + "m/auth/cloud-platformB\301\001\n\032com.google.clo" + + "ud.retail.v2B\026CompletionServiceProtoP\001Z2" + + "cloud.google.com/go/retail/apiv2/retailp" + + "b;retailpb\242\002\006RETAIL\252\002\026Google.Cloud.Retai" + + "l.V2\312\002\026Google\\Cloud\\Retail\\V2\352\002\031Google::" + + "Cloud::Retail::V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -129,6 +130,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DeviceType", "Dataset", "MaxSuggestions", + "EnableAttributeSuggestions", "Entity", }); internal_static_google_cloud_retail_v2_CompleteQueryResponse_descriptor = diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/Condition.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/Condition.java index 33b8453e3ca3..e0c443c656b1 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/Condition.java +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/Condition.java @@ -46,6 +46,7 @@ private Condition(com.google.protobuf.GeneratedMessageV3.Builder builder) { private Condition() { queryTerms_ = java.util.Collections.emptyList(); activeTimeRange_ = java.util.Collections.emptyList(); + pageCategories_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @@ -2064,6 +2065,82 @@ public com.google.cloud.retail.v2.Condition.TimeRangeOrBuilder getActiveTimeRang return activeTimeRange_.get(index); } + public static final int PAGE_CATEGORIES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList pageCategories_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * Used to support browse uses cases.
+   * A list (up to 10 entries) of categories or departments.
+   * The format should be the same as
+   * [UserEvent.page_categories][google.cloud.retail.v2.UserEvent.page_categories];
+   * 
+ * + * repeated string page_categories = 4; + * + * @return A list containing the pageCategories. + */ + public com.google.protobuf.ProtocolStringList getPageCategoriesList() { + return pageCategories_; + } + /** + * + * + *
+   * Used to support browse uses cases.
+   * A list (up to 10 entries) of categories or departments.
+   * The format should be the same as
+   * [UserEvent.page_categories][google.cloud.retail.v2.UserEvent.page_categories];
+   * 
+ * + * repeated string page_categories = 4; + * + * @return The count of pageCategories. + */ + public int getPageCategoriesCount() { + return pageCategories_.size(); + } + /** + * + * + *
+   * Used to support browse uses cases.
+   * A list (up to 10 entries) of categories or departments.
+   * The format should be the same as
+   * [UserEvent.page_categories][google.cloud.retail.v2.UserEvent.page_categories];
+   * 
+ * + * repeated string page_categories = 4; + * + * @param index The index of the element to return. + * @return The pageCategories at the given index. + */ + public java.lang.String getPageCategories(int index) { + return pageCategories_.get(index); + } + /** + * + * + *
+   * Used to support browse uses cases.
+   * A list (up to 10 entries) of categories or departments.
+   * The format should be the same as
+   * [UserEvent.page_categories][google.cloud.retail.v2.UserEvent.page_categories];
+   * 
+ * + * repeated string page_categories = 4; + * + * @param index The index of the value to return. + * @return The bytes of the pageCategories at the given index. + */ + public com.google.protobuf.ByteString getPageCategoriesBytes(int index) { + return pageCategories_.getByteString(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2084,6 +2161,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < activeTimeRange_.size(); i++) { output.writeMessage(3, activeTimeRange_.get(i)); } + for (int i = 0; i < pageCategories_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageCategories_.getRaw(i)); + } getUnknownFields().writeTo(output); } @@ -2099,6 +2179,14 @@ public int getSerializedSize() { for (int i = 0; i < activeTimeRange_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, activeTimeRange_.get(i)); } + { + int dataSize = 0; + for (int i = 0; i < pageCategories_.size(); i++) { + dataSize += computeStringSizeNoTag(pageCategories_.getRaw(i)); + } + size += dataSize; + size += 1 * getPageCategoriesList().size(); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2116,6 +2204,7 @@ public boolean equals(final java.lang.Object obj) { if (!getQueryTermsList().equals(other.getQueryTermsList())) return false; if (!getActiveTimeRangeList().equals(other.getActiveTimeRangeList())) return false; + if (!getPageCategoriesList().equals(other.getPageCategoriesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2135,6 +2224,10 @@ public int hashCode() { hash = (37 * hash) + ACTIVE_TIME_RANGE_FIELD_NUMBER; hash = (53 * hash) + getActiveTimeRangeList().hashCode(); } + if (getPageCategoriesCount() > 0) { + hash = (37 * hash) + PAGE_CATEGORIES_FIELD_NUMBER; + hash = (53 * hash) + getPageCategoriesList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2292,6 +2385,7 @@ public Builder clear() { activeTimeRangeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); + pageCategories_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -2349,6 +2443,10 @@ private void buildPartialRepeatedFields(com.google.cloud.retail.v2.Condition res private void buildPartial0(com.google.cloud.retail.v2.Condition result) { int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + pageCategories_.makeImmutable(); + result.pageCategories_ = pageCategories_; + } } @java.lang.Override @@ -2450,6 +2548,16 @@ public Builder mergeFrom(com.google.cloud.retail.v2.Condition other) { } } } + if (!other.pageCategories_.isEmpty()) { + if (pageCategories_.isEmpty()) { + pageCategories_ = other.pageCategories_; + bitField0_ |= 0x00000004; + } else { + ensurePageCategoriesIsMutable(); + pageCategories_.addAll(other.pageCategories_); + } + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2502,6 +2610,13 @@ public Builder mergeFrom( } break; } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePageCategoriesIsMutable(); + pageCategories_.add(s); + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3305,6 +3420,207 @@ public com.google.cloud.retail.v2.Condition.TimeRange.Builder addActiveTimeRange return activeTimeRangeBuilder_; } + private com.google.protobuf.LazyStringArrayList pageCategories_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensurePageCategoriesIsMutable() { + if (!pageCategories_.isModifiable()) { + pageCategories_ = new com.google.protobuf.LazyStringArrayList(pageCategories_); + } + bitField0_ |= 0x00000004; + } + /** + * + * + *
+     * Used to support browse uses cases.
+     * A list (up to 10 entries) of categories or departments.
+     * The format should be the same as
+     * [UserEvent.page_categories][google.cloud.retail.v2.UserEvent.page_categories];
+     * 
+ * + * repeated string page_categories = 4; + * + * @return A list containing the pageCategories. + */ + public com.google.protobuf.ProtocolStringList getPageCategoriesList() { + pageCategories_.makeImmutable(); + return pageCategories_; + } + /** + * + * + *
+     * Used to support browse uses cases.
+     * A list (up to 10 entries) of categories or departments.
+     * The format should be the same as
+     * [UserEvent.page_categories][google.cloud.retail.v2.UserEvent.page_categories];
+     * 
+ * + * repeated string page_categories = 4; + * + * @return The count of pageCategories. + */ + public int getPageCategoriesCount() { + return pageCategories_.size(); + } + /** + * + * + *
+     * Used to support browse uses cases.
+     * A list (up to 10 entries) of categories or departments.
+     * The format should be the same as
+     * [UserEvent.page_categories][google.cloud.retail.v2.UserEvent.page_categories];
+     * 
+ * + * repeated string page_categories = 4; + * + * @param index The index of the element to return. + * @return The pageCategories at the given index. + */ + public java.lang.String getPageCategories(int index) { + return pageCategories_.get(index); + } + /** + * + * + *
+     * Used to support browse uses cases.
+     * A list (up to 10 entries) of categories or departments.
+     * The format should be the same as
+     * [UserEvent.page_categories][google.cloud.retail.v2.UserEvent.page_categories];
+     * 
+ * + * repeated string page_categories = 4; + * + * @param index The index of the value to return. + * @return The bytes of the pageCategories at the given index. + */ + public com.google.protobuf.ByteString getPageCategoriesBytes(int index) { + return pageCategories_.getByteString(index); + } + /** + * + * + *
+     * Used to support browse uses cases.
+     * A list (up to 10 entries) of categories or departments.
+     * The format should be the same as
+     * [UserEvent.page_categories][google.cloud.retail.v2.UserEvent.page_categories];
+     * 
+ * + * repeated string page_categories = 4; + * + * @param index The index to set the value at. + * @param value The pageCategories to set. + * @return This builder for chaining. + */ + public Builder setPageCategories(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePageCategoriesIsMutable(); + pageCategories_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Used to support browse uses cases.
+     * A list (up to 10 entries) of categories or departments.
+     * The format should be the same as
+     * [UserEvent.page_categories][google.cloud.retail.v2.UserEvent.page_categories];
+     * 
+ * + * repeated string page_categories = 4; + * + * @param value The pageCategories to add. + * @return This builder for chaining. + */ + public Builder addPageCategories(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePageCategoriesIsMutable(); + pageCategories_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Used to support browse uses cases.
+     * A list (up to 10 entries) of categories or departments.
+     * The format should be the same as
+     * [UserEvent.page_categories][google.cloud.retail.v2.UserEvent.page_categories];
+     * 
+ * + * repeated string page_categories = 4; + * + * @param values The pageCategories to add. + * @return This builder for chaining. + */ + public Builder addAllPageCategories(java.lang.Iterable values) { + ensurePageCategoriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pageCategories_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Used to support browse uses cases.
+     * A list (up to 10 entries) of categories or departments.
+     * The format should be the same as
+     * [UserEvent.page_categories][google.cloud.retail.v2.UserEvent.page_categories];
+     * 
+ * + * repeated string page_categories = 4; + * + * @return This builder for chaining. + */ + public Builder clearPageCategories() { + pageCategories_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * Used to support browse uses cases.
+     * A list (up to 10 entries) of categories or departments.
+     * The format should be the same as
+     * [UserEvent.page_categories][google.cloud.retail.v2.UserEvent.page_categories];
+     * 
+ * + * repeated string page_categories = 4; + * + * @param value The bytes of the pageCategories to add. + * @return This builder for chaining. + */ + public Builder addPageCategoriesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePageCategoriesIsMutable(); + pageCategories_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ConditionOrBuilder.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ConditionOrBuilder.java index 642c74e69aba..0d6282bf19f5 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ConditionOrBuilder.java +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ConditionOrBuilder.java @@ -147,4 +147,67 @@ public interface ConditionOrBuilder * repeated .google.cloud.retail.v2.Condition.TimeRange active_time_range = 3; */ com.google.cloud.retail.v2.Condition.TimeRangeOrBuilder getActiveTimeRangeOrBuilder(int index); + + /** + * + * + *
+   * Used to support browse uses cases.
+   * A list (up to 10 entries) of categories or departments.
+   * The format should be the same as
+   * [UserEvent.page_categories][google.cloud.retail.v2.UserEvent.page_categories];
+   * 
+ * + * repeated string page_categories = 4; + * + * @return A list containing the pageCategories. + */ + java.util.List getPageCategoriesList(); + /** + * + * + *
+   * Used to support browse uses cases.
+   * A list (up to 10 entries) of categories or departments.
+   * The format should be the same as
+   * [UserEvent.page_categories][google.cloud.retail.v2.UserEvent.page_categories];
+   * 
+ * + * repeated string page_categories = 4; + * + * @return The count of pageCategories. + */ + int getPageCategoriesCount(); + /** + * + * + *
+   * Used to support browse uses cases.
+   * A list (up to 10 entries) of categories or departments.
+   * The format should be the same as
+   * [UserEvent.page_categories][google.cloud.retail.v2.UserEvent.page_categories];
+   * 
+ * + * repeated string page_categories = 4; + * + * @param index The index of the element to return. + * @return The pageCategories at the given index. + */ + java.lang.String getPageCategories(int index); + /** + * + * + *
+   * Used to support browse uses cases.
+   * A list (up to 10 entries) of categories or departments.
+   * The format should be the same as
+   * [UserEvent.page_categories][google.cloud.retail.v2.UserEvent.page_categories];
+   * 
+ * + * repeated string page_categories = 4; + * + * @param index The index of the value to return. + * @return The bytes of the pageCategories at the given index. + */ + com.google.protobuf.ByteString getPageCategoriesBytes(int index); } diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CustomAttribute.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CustomAttribute.java index a342ba9597d0..0a11b3660fac 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CustomAttribute.java +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CustomAttribute.java @@ -252,7 +252,7 @@ public double getNumbers(int index) { * optional bool searchable = 3 [deprecated = true]; * * @deprecated google.cloud.retail.v2.CustomAttribute.searchable is deprecated. See - * google/cloud/retail/v2/common.proto;l=423 + * google/cloud/retail/v2/common.proto;l=508 * @return Whether the searchable field is set. */ @java.lang.Override @@ -282,7 +282,7 @@ public boolean hasSearchable() { * optional bool searchable = 3 [deprecated = true]; * * @deprecated google.cloud.retail.v2.CustomAttribute.searchable is deprecated. See - * google/cloud/retail/v2/common.proto;l=423 + * google/cloud/retail/v2/common.proto;l=508 * @return The searchable. */ @java.lang.Override @@ -319,7 +319,7 @@ public boolean getSearchable() { * optional bool indexable = 4 [deprecated = true]; * * @deprecated google.cloud.retail.v2.CustomAttribute.indexable is deprecated. See - * google/cloud/retail/v2/common.proto;l=442 + * google/cloud/retail/v2/common.proto;l=527 * @return Whether the indexable field is set. */ @java.lang.Override @@ -353,7 +353,7 @@ public boolean hasIndexable() { * optional bool indexable = 4 [deprecated = true]; * * @deprecated google.cloud.retail.v2.CustomAttribute.indexable is deprecated. See - * google/cloud/retail/v2/common.proto;l=442 + * google/cloud/retail/v2/common.proto;l=527 * @return The indexable. */ @java.lang.Override @@ -1275,7 +1275,7 @@ public Builder clearNumbers() { * optional bool searchable = 3 [deprecated = true]; * * @deprecated google.cloud.retail.v2.CustomAttribute.searchable is deprecated. See - * google/cloud/retail/v2/common.proto;l=423 + * google/cloud/retail/v2/common.proto;l=508 * @return Whether the searchable field is set. */ @java.lang.Override @@ -1305,7 +1305,7 @@ public boolean hasSearchable() { * optional bool searchable = 3 [deprecated = true]; * * @deprecated google.cloud.retail.v2.CustomAttribute.searchable is deprecated. See - * google/cloud/retail/v2/common.proto;l=423 + * google/cloud/retail/v2/common.proto;l=508 * @return The searchable. */ @java.lang.Override @@ -1335,7 +1335,7 @@ public boolean getSearchable() { * optional bool searchable = 3 [deprecated = true]; * * @deprecated google.cloud.retail.v2.CustomAttribute.searchable is deprecated. See - * google/cloud/retail/v2/common.proto;l=423 + * google/cloud/retail/v2/common.proto;l=508 * @param value The searchable to set. * @return This builder for chaining. */ @@ -1369,7 +1369,7 @@ public Builder setSearchable(boolean value) { * optional bool searchable = 3 [deprecated = true]; * * @deprecated google.cloud.retail.v2.CustomAttribute.searchable is deprecated. See - * google/cloud/retail/v2/common.proto;l=423 + * google/cloud/retail/v2/common.proto;l=508 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1407,7 +1407,7 @@ public Builder clearSearchable() { * optional bool indexable = 4 [deprecated = true]; * * @deprecated google.cloud.retail.v2.CustomAttribute.indexable is deprecated. See - * google/cloud/retail/v2/common.proto;l=442 + * google/cloud/retail/v2/common.proto;l=527 * @return Whether the indexable field is set. */ @java.lang.Override @@ -1441,7 +1441,7 @@ public boolean hasIndexable() { * optional bool indexable = 4 [deprecated = true]; * * @deprecated google.cloud.retail.v2.CustomAttribute.indexable is deprecated. See - * google/cloud/retail/v2/common.proto;l=442 + * google/cloud/retail/v2/common.proto;l=527 * @return The indexable. */ @java.lang.Override @@ -1475,7 +1475,7 @@ public boolean getIndexable() { * optional bool indexable = 4 [deprecated = true]; * * @deprecated google.cloud.retail.v2.CustomAttribute.indexable is deprecated. See - * google/cloud/retail/v2/common.proto;l=442 + * google/cloud/retail/v2/common.proto;l=527 * @param value The indexable to set. * @return This builder for chaining. */ @@ -1513,7 +1513,7 @@ public Builder setIndexable(boolean value) { * optional bool indexable = 4 [deprecated = true]; * * @deprecated google.cloud.retail.v2.CustomAttribute.indexable is deprecated. See - * google/cloud/retail/v2/common.proto;l=442 + * google/cloud/retail/v2/common.proto;l=527 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CustomAttributeOrBuilder.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CustomAttributeOrBuilder.java index d1f4fa9a213f..a32d24c109ca 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CustomAttributeOrBuilder.java +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/CustomAttributeOrBuilder.java @@ -182,7 +182,7 @@ public interface CustomAttributeOrBuilder * optional bool searchable = 3 [deprecated = true]; * * @deprecated google.cloud.retail.v2.CustomAttribute.searchable is deprecated. See - * google/cloud/retail/v2/common.proto;l=423 + * google/cloud/retail/v2/common.proto;l=508 * @return Whether the searchable field is set. */ @java.lang.Deprecated @@ -209,7 +209,7 @@ public interface CustomAttributeOrBuilder * optional bool searchable = 3 [deprecated = true]; * * @deprecated google.cloud.retail.v2.CustomAttribute.searchable is deprecated. See - * google/cloud/retail/v2/common.proto;l=423 + * google/cloud/retail/v2/common.proto;l=508 * @return The searchable. */ @java.lang.Deprecated @@ -241,7 +241,7 @@ public interface CustomAttributeOrBuilder * optional bool indexable = 4 [deprecated = true]; * * @deprecated google.cloud.retail.v2.CustomAttribute.indexable is deprecated. See - * google/cloud/retail/v2/common.proto;l=442 + * google/cloud/retail/v2/common.proto;l=527 * @return Whether the indexable field is set. */ @java.lang.Deprecated @@ -272,7 +272,7 @@ public interface CustomAttributeOrBuilder * optional bool indexable = 4 [deprecated = true]; * * @deprecated google.cloud.retail.v2.CustomAttribute.indexable is deprecated. See - * google/cloud/retail/v2/common.proto;l=442 + * google/cloud/retail/v2/common.proto;l=527 * @return The indexable. */ @java.lang.Deprecated diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ExperimentInfo.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ExperimentInfo.java index 5647cb9c01e3..bd28cb3df438 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ExperimentInfo.java +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ExperimentInfo.java @@ -23,7 +23,7 @@ * * *
- * Metadata for active A/B testing [Experiments][].
+ * Metadata for active A/B testing [Experiment][].
  * 
* * Protobuf type {@code google.cloud.retail.v2.ExperimentInfo} @@ -104,8 +104,8 @@ public interface ServingConfigExperimentOrBuilder * *
      * The fully qualified resource name of the serving config
-     * [VariantArm.serving_config_id][] responsible for generating the search
-     * response. For example:
+     * [Experiment.VariantArm.serving_config_id][] responsible for generating
+     * the search response. For example:
      * `projects/*/locations/*/catalogs/*/servingConfigs/*`.
      * 
* @@ -119,8 +119,8 @@ public interface ServingConfigExperimentOrBuilder * *
      * The fully qualified resource name of the serving config
-     * [VariantArm.serving_config_id][] responsible for generating the search
-     * response. For example:
+     * [Experiment.VariantArm.serving_config_id][] responsible for generating
+     * the search response. For example:
      * `projects/*/locations/*/catalogs/*/servingConfigs/*`.
      * 
* @@ -241,8 +241,8 @@ public com.google.protobuf.ByteString getOriginalServingConfigBytes() { * *
      * The fully qualified resource name of the serving config
-     * [VariantArm.serving_config_id][] responsible for generating the search
-     * response. For example:
+     * [Experiment.VariantArm.serving_config_id][] responsible for generating
+     * the search response. For example:
      * `projects/*/locations/*/catalogs/*/servingConfigs/*`.
      * 
* @@ -267,8 +267,8 @@ public java.lang.String getExperimentServingConfig() { * *
      * The fully qualified resource name of the serving config
-     * [VariantArm.serving_config_id][] responsible for generating the search
-     * response. For example:
+     * [Experiment.VariantArm.serving_config_id][] responsible for generating
+     * the search response. For example:
      * `projects/*/locations/*/catalogs/*/servingConfigs/*`.
      * 
* @@ -796,8 +796,8 @@ public Builder setOriginalServingConfigBytes(com.google.protobuf.ByteString valu * *
        * The fully qualified resource name of the serving config
-       * [VariantArm.serving_config_id][] responsible for generating the search
-       * response. For example:
+       * [Experiment.VariantArm.serving_config_id][] responsible for generating
+       * the search response. For example:
        * `projects/*/locations/*/catalogs/*/servingConfigs/*`.
        * 
* @@ -822,8 +822,8 @@ public java.lang.String getExperimentServingConfig() { * *
        * The fully qualified resource name of the serving config
-       * [VariantArm.serving_config_id][] responsible for generating the search
-       * response. For example:
+       * [Experiment.VariantArm.serving_config_id][] responsible for generating
+       * the search response. For example:
        * `projects/*/locations/*/catalogs/*/servingConfigs/*`.
        * 
* @@ -848,8 +848,8 @@ public com.google.protobuf.ByteString getExperimentServingConfigBytes() { * *
        * The fully qualified resource name of the serving config
-       * [VariantArm.serving_config_id][] responsible for generating the search
-       * response. For example:
+       * [Experiment.VariantArm.serving_config_id][] responsible for generating
+       * the search response. For example:
        * `projects/*/locations/*/catalogs/*/servingConfigs/*`.
        * 
* @@ -873,8 +873,8 @@ public Builder setExperimentServingConfig(java.lang.String value) { * *
        * The fully qualified resource name of the serving config
-       * [VariantArm.serving_config_id][] responsible for generating the search
-       * response. For example:
+       * [Experiment.VariantArm.serving_config_id][] responsible for generating
+       * the search response. For example:
        * `projects/*/locations/*/catalogs/*/servingConfigs/*`.
        * 
* @@ -894,8 +894,8 @@ public Builder clearExperimentServingConfig() { * *
        * The fully qualified resource name of the serving config
-       * [VariantArm.serving_config_id][] responsible for generating the search
-       * response. For example:
+       * [Experiment.VariantArm.serving_config_id][] responsible for generating
+       * the search response. For example:
        * `projects/*/locations/*/catalogs/*/servingConfigs/*`.
        * 
* @@ -1339,7 +1339,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Metadata for active A/B testing [Experiments][].
+   * Metadata for active A/B testing [Experiment][].
    * 
* * Protobuf type {@code google.cloud.retail.v2.ExperimentInfo} diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ImportMetadata.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ImportMetadata.java index e10fb880942b..488a6b930a22 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ImportMetadata.java +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ImportMetadata.java @@ -211,7 +211,7 @@ public long getFailureCount() { * string request_id = 5 [deprecated = true]; * * @deprecated google.cloud.retail.v2.ImportMetadata.request_id is deprecated. See - * google/cloud/retail/v2/import_config.proto;l=330 + * google/cloud/retail/v2/import_config.proto;l=336 * @return The requestId. */ @java.lang.Override @@ -237,7 +237,7 @@ public java.lang.String getRequestId() { * string request_id = 5 [deprecated = true]; * * @deprecated google.cloud.retail.v2.ImportMetadata.request_id is deprecated. See - * google/cloud/retail/v2/import_config.proto;l=330 + * google/cloud/retail/v2/import_config.proto;l=336 * @return The bytes for requestId. */ @java.lang.Override @@ -1295,7 +1295,7 @@ public Builder clearFailureCount() { * string request_id = 5 [deprecated = true]; * * @deprecated google.cloud.retail.v2.ImportMetadata.request_id is deprecated. See - * google/cloud/retail/v2/import_config.proto;l=330 + * google/cloud/retail/v2/import_config.proto;l=336 * @return The requestId. */ @java.lang.Deprecated @@ -1320,7 +1320,7 @@ public java.lang.String getRequestId() { * string request_id = 5 [deprecated = true]; * * @deprecated google.cloud.retail.v2.ImportMetadata.request_id is deprecated. See - * google/cloud/retail/v2/import_config.proto;l=330 + * google/cloud/retail/v2/import_config.proto;l=336 * @return The bytes for requestId. */ @java.lang.Deprecated @@ -1345,7 +1345,7 @@ public com.google.protobuf.ByteString getRequestIdBytes() { * string request_id = 5 [deprecated = true]; * * @deprecated google.cloud.retail.v2.ImportMetadata.request_id is deprecated. See - * google/cloud/retail/v2/import_config.proto;l=330 + * google/cloud/retail/v2/import_config.proto;l=336 * @param value The requestId to set. * @return This builder for chaining. */ @@ -1369,7 +1369,7 @@ public Builder setRequestId(java.lang.String value) { * string request_id = 5 [deprecated = true]; * * @deprecated google.cloud.retail.v2.ImportMetadata.request_id is deprecated. See - * google/cloud/retail/v2/import_config.proto;l=330 + * google/cloud/retail/v2/import_config.proto;l=336 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1389,7 +1389,7 @@ public Builder clearRequestId() { * string request_id = 5 [deprecated = true]; * * @deprecated google.cloud.retail.v2.ImportMetadata.request_id is deprecated. See - * google/cloud/retail/v2/import_config.proto;l=330 + * google/cloud/retail/v2/import_config.proto;l=336 * @param value The bytes for requestId to set. * @return This builder for chaining. */ diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ImportMetadataOrBuilder.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ImportMetadataOrBuilder.java index 940fb3c14c25..677fd31652cc 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ImportMetadataOrBuilder.java +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ImportMetadataOrBuilder.java @@ -133,7 +133,7 @@ public interface ImportMetadataOrBuilder * string request_id = 5 [deprecated = true]; * * @deprecated google.cloud.retail.v2.ImportMetadata.request_id is deprecated. See - * google/cloud/retail/v2/import_config.proto;l=330 + * google/cloud/retail/v2/import_config.proto;l=336 * @return The requestId. */ @java.lang.Deprecated @@ -148,7 +148,7 @@ public interface ImportMetadataOrBuilder * string request_id = 5 [deprecated = true]; * * @deprecated google.cloud.retail.v2.ImportMetadata.request_id is deprecated. See - * google/cloud/retail/v2/import_config.proto;l=330 + * google/cloud/retail/v2/import_config.proto;l=336 * @return The bytes for requestId. */ @java.lang.Deprecated diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ImportProductsRequest.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ImportProductsRequest.java index b89ccd81783b..1d862b009ef7 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ImportProductsRequest.java +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ImportProductsRequest.java @@ -463,7 +463,8 @@ public com.google.cloud.retail.v2.ImportErrorsConfigOrBuilder getErrorsConfigOrB * *
    * Indicates which fields in the provided imported `products` to update. If
-   * not set, all fields are updated.
+   * not set, all fields are updated. If provided, only the existing product
+   * fields are updated. Missing products will not be created.
    * 
* * .google.protobuf.FieldMask update_mask = 4; @@ -479,7 +480,8 @@ public boolean hasUpdateMask() { * *
    * Indicates which fields in the provided imported `products` to update. If
-   * not set, all fields are updated.
+   * not set, all fields are updated. If provided, only the existing product
+   * fields are updated. Missing products will not be created.
    * 
* * .google.protobuf.FieldMask update_mask = 4; @@ -495,7 +497,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { * *
    * Indicates which fields in the provided imported `products` to update. If
-   * not set, all fields are updated.
+   * not set, all fields are updated. If provided, only the existing product
+   * fields are updated. Missing products will not be created.
    * 
* * .google.protobuf.FieldMask update_mask = 4; @@ -566,9 +569,14 @@ public int getReconciliationModeValue() { * Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`. It has * to be within the same project as * [ImportProductsRequest.parent][google.cloud.retail.v2.ImportProductsRequest.parent]. - * Make sure that `service-<project - * number>@gcp-sa-retail.iam.gserviceaccount.com` has the - * `pubsub.topics.publish` IAM permission on the topic. + * Make sure that both + * `cloud-retail-customer-data-access@system.gserviceaccount.com` and + * `service-<project number>@gcp-sa-retail.iam.gserviceaccount.com` + * have the `pubsub.topics.publish` IAM permission on the topic. + * + * Only supported when + * [ImportProductsRequest.reconciliation_mode][google.cloud.retail.v2.ImportProductsRequest.reconciliation_mode] + * is set to `FULL`. * * * string notification_pubsub_topic = 7; @@ -599,9 +607,14 @@ public java.lang.String getNotificationPubsubTopic() { * Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`. It has * to be within the same project as * [ImportProductsRequest.parent][google.cloud.retail.v2.ImportProductsRequest.parent]. - * Make sure that `service-<project - * number>@gcp-sa-retail.iam.gserviceaccount.com` has the - * `pubsub.topics.publish` IAM permission on the topic. + * Make sure that both + * `cloud-retail-customer-data-access@system.gserviceaccount.com` and + * `service-<project number>@gcp-sa-retail.iam.gserviceaccount.com` + * have the `pubsub.topics.publish` IAM permission on the topic. + * + * Only supported when + * [ImportProductsRequest.reconciliation_mode][google.cloud.retail.v2.ImportProductsRequest.reconciliation_mode] + * is set to `FULL`. * * * string notification_pubsub_topic = 7; @@ -1809,7 +1822,8 @@ public com.google.cloud.retail.v2.ImportErrorsConfigOrBuilder getErrorsConfigOrB * *
      * Indicates which fields in the provided imported `products` to update. If
-     * not set, all fields are updated.
+     * not set, all fields are updated. If provided, only the existing product
+     * fields are updated. Missing products will not be created.
      * 
* * .google.protobuf.FieldMask update_mask = 4; @@ -1824,7 +1838,8 @@ public boolean hasUpdateMask() { * *
      * Indicates which fields in the provided imported `products` to update. If
-     * not set, all fields are updated.
+     * not set, all fields are updated. If provided, only the existing product
+     * fields are updated. Missing products will not be created.
      * 
* * .google.protobuf.FieldMask update_mask = 4; @@ -1845,7 +1860,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { * *
      * Indicates which fields in the provided imported `products` to update. If
-     * not set, all fields are updated.
+     * not set, all fields are updated. If provided, only the existing product
+     * fields are updated. Missing products will not be created.
      * 
* * .google.protobuf.FieldMask update_mask = 4; @@ -1868,7 +1884,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * *
      * Indicates which fields in the provided imported `products` to update. If
-     * not set, all fields are updated.
+     * not set, all fields are updated. If provided, only the existing product
+     * fields are updated. Missing products will not be created.
      * 
* * .google.protobuf.FieldMask update_mask = 4; @@ -1888,7 +1905,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * *
      * Indicates which fields in the provided imported `products` to update. If
-     * not set, all fields are updated.
+     * not set, all fields are updated. If provided, only the existing product
+     * fields are updated. Missing products will not be created.
      * 
* * .google.protobuf.FieldMask update_mask = 4; @@ -1916,7 +1934,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * *
      * Indicates which fields in the provided imported `products` to update. If
-     * not set, all fields are updated.
+     * not set, all fields are updated. If provided, only the existing product
+     * fields are updated. Missing products will not be created.
      * 
* * .google.protobuf.FieldMask update_mask = 4; @@ -1936,7 +1955,8 @@ public Builder clearUpdateMask() { * *
      * Indicates which fields in the provided imported `products` to update. If
-     * not set, all fields are updated.
+     * not set, all fields are updated. If provided, only the existing product
+     * fields are updated. Missing products will not be created.
      * 
* * .google.protobuf.FieldMask update_mask = 4; @@ -1951,7 +1971,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * *
      * Indicates which fields in the provided imported `products` to update. If
-     * not set, all fields are updated.
+     * not set, all fields are updated. If provided, only the existing product
+     * fields are updated. Missing products will not be created.
      * 
* * .google.protobuf.FieldMask update_mask = 4; @@ -1970,7 +1991,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * *
      * Indicates which fields in the provided imported `products` to update. If
-     * not set, all fields are updated.
+     * not set, all fields are updated. If provided, only the existing product
+     * fields are updated. Missing products will not be created.
      * 
* * .google.protobuf.FieldMask update_mask = 4; @@ -2120,9 +2142,14 @@ public Builder clearReconciliationMode() { * Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`. It has * to be within the same project as * [ImportProductsRequest.parent][google.cloud.retail.v2.ImportProductsRequest.parent]. - * Make sure that `service-<project - * number>@gcp-sa-retail.iam.gserviceaccount.com` has the - * `pubsub.topics.publish` IAM permission on the topic. + * Make sure that both + * `cloud-retail-customer-data-access@system.gserviceaccount.com` and + * `service-<project number>@gcp-sa-retail.iam.gserviceaccount.com` + * have the `pubsub.topics.publish` IAM permission on the topic. + * + * Only supported when + * [ImportProductsRequest.reconciliation_mode][google.cloud.retail.v2.ImportProductsRequest.reconciliation_mode] + * is set to `FULL`. * * * string notification_pubsub_topic = 7; @@ -2152,9 +2179,14 @@ public java.lang.String getNotificationPubsubTopic() { * Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`. It has * to be within the same project as * [ImportProductsRequest.parent][google.cloud.retail.v2.ImportProductsRequest.parent]. - * Make sure that `service-<project - * number>@gcp-sa-retail.iam.gserviceaccount.com` has the - * `pubsub.topics.publish` IAM permission on the topic. + * Make sure that both + * `cloud-retail-customer-data-access@system.gserviceaccount.com` and + * `service-<project number>@gcp-sa-retail.iam.gserviceaccount.com` + * have the `pubsub.topics.publish` IAM permission on the topic. + * + * Only supported when + * [ImportProductsRequest.reconciliation_mode][google.cloud.retail.v2.ImportProductsRequest.reconciliation_mode] + * is set to `FULL`. * * * string notification_pubsub_topic = 7; @@ -2184,9 +2216,14 @@ public com.google.protobuf.ByteString getNotificationPubsubTopicBytes() { * Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`. It has * to be within the same project as * [ImportProductsRequest.parent][google.cloud.retail.v2.ImportProductsRequest.parent]. - * Make sure that `service-<project - * number>@gcp-sa-retail.iam.gserviceaccount.com` has the - * `pubsub.topics.publish` IAM permission on the topic. + * Make sure that both + * `cloud-retail-customer-data-access@system.gserviceaccount.com` and + * `service-<project number>@gcp-sa-retail.iam.gserviceaccount.com` + * have the `pubsub.topics.publish` IAM permission on the topic. + * + * Only supported when + * [ImportProductsRequest.reconciliation_mode][google.cloud.retail.v2.ImportProductsRequest.reconciliation_mode] + * is set to `FULL`. * * * string notification_pubsub_topic = 7; @@ -2215,9 +2252,14 @@ public Builder setNotificationPubsubTopic(java.lang.String value) { * Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`. It has * to be within the same project as * [ImportProductsRequest.parent][google.cloud.retail.v2.ImportProductsRequest.parent]. - * Make sure that `service-<project - * number>@gcp-sa-retail.iam.gserviceaccount.com` has the - * `pubsub.topics.publish` IAM permission on the topic. + * Make sure that both + * `cloud-retail-customer-data-access@system.gserviceaccount.com` and + * `service-<project number>@gcp-sa-retail.iam.gserviceaccount.com` + * have the `pubsub.topics.publish` IAM permission on the topic. + * + * Only supported when + * [ImportProductsRequest.reconciliation_mode][google.cloud.retail.v2.ImportProductsRequest.reconciliation_mode] + * is set to `FULL`. * * * string notification_pubsub_topic = 7; @@ -2242,9 +2284,14 @@ public Builder clearNotificationPubsubTopic() { * Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`. It has * to be within the same project as * [ImportProductsRequest.parent][google.cloud.retail.v2.ImportProductsRequest.parent]. - * Make sure that `service-<project - * number>@gcp-sa-retail.iam.gserviceaccount.com` has the - * `pubsub.topics.publish` IAM permission on the topic. + * Make sure that both + * `cloud-retail-customer-data-access@system.gserviceaccount.com` and + * `service-<project number>@gcp-sa-retail.iam.gserviceaccount.com` + * have the `pubsub.topics.publish` IAM permission on the topic. + * + * Only supported when + * [ImportProductsRequest.reconciliation_mode][google.cloud.retail.v2.ImportProductsRequest.reconciliation_mode] + * is set to `FULL`. * * * string notification_pubsub_topic = 7; diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ImportProductsRequestOrBuilder.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ImportProductsRequestOrBuilder.java index 5c3eec22b2af..5e45ce402677 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ImportProductsRequestOrBuilder.java +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ImportProductsRequestOrBuilder.java @@ -173,7 +173,8 @@ public interface ImportProductsRequestOrBuilder * *
    * Indicates which fields in the provided imported `products` to update. If
-   * not set, all fields are updated.
+   * not set, all fields are updated. If provided, only the existing product
+   * fields are updated. Missing products will not be created.
    * 
* * .google.protobuf.FieldMask update_mask = 4; @@ -186,7 +187,8 @@ public interface ImportProductsRequestOrBuilder * *
    * Indicates which fields in the provided imported `products` to update. If
-   * not set, all fields are updated.
+   * not set, all fields are updated. If provided, only the existing product
+   * fields are updated. Missing products will not be created.
    * 
* * .google.protobuf.FieldMask update_mask = 4; @@ -199,7 +201,8 @@ public interface ImportProductsRequestOrBuilder * *
    * Indicates which fields in the provided imported `products` to update. If
-   * not set, all fields are updated.
+   * not set, all fields are updated. If provided, only the existing product
+   * fields are updated. Missing products will not be created.
    * 
* * .google.protobuf.FieldMask update_mask = 4; @@ -249,9 +252,14 @@ public interface ImportProductsRequestOrBuilder * Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`. It has * to be within the same project as * [ImportProductsRequest.parent][google.cloud.retail.v2.ImportProductsRequest.parent]. - * Make sure that `service-<project - * number>@gcp-sa-retail.iam.gserviceaccount.com` has the - * `pubsub.topics.publish` IAM permission on the topic. + * Make sure that both + * `cloud-retail-customer-data-access@system.gserviceaccount.com` and + * `service-<project number>@gcp-sa-retail.iam.gserviceaccount.com` + * have the `pubsub.topics.publish` IAM permission on the topic. + * + * Only supported when + * [ImportProductsRequest.reconciliation_mode][google.cloud.retail.v2.ImportProductsRequest.reconciliation_mode] + * is set to `FULL`. * * * string notification_pubsub_topic = 7; @@ -271,9 +279,14 @@ public interface ImportProductsRequestOrBuilder * Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`. It has * to be within the same project as * [ImportProductsRequest.parent][google.cloud.retail.v2.ImportProductsRequest.parent]. - * Make sure that `service-<project - * number>@gcp-sa-retail.iam.gserviceaccount.com` has the - * `pubsub.topics.publish` IAM permission on the topic. + * Make sure that both + * `cloud-retail-customer-data-access@system.gserviceaccount.com` and + * `service-<project number>@gcp-sa-retail.iam.gserviceaccount.com` + * have the `pubsub.topics.publish` IAM permission on the topic. + * + * Only supported when + * [ImportProductsRequest.reconciliation_mode][google.cloud.retail.v2.ImportProductsRequest.reconciliation_mode] + * is set to `FULL`. * * * string notification_pubsub_topic = 7; diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/Model.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/Model.java index 0d8f04542e1e..0742ce29eba7 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/Model.java +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/Model.java @@ -773,6 +773,174 @@ private DataState(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.retail.v2.Model.DataState) } + /** + * + * + *
+   * Use single or multiple context products for recommendations.
+   * 
+ * + * Protobuf enum {@code google.cloud.retail.v2.Model.ContextProductsType} + */ + public enum ContextProductsType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified default value, should never be explicitly set.
+     * Defaults to
+     * [MULTIPLE_CONTEXT_PRODUCTS][google.cloud.retail.v2.Model.ContextProductsType.MULTIPLE_CONTEXT_PRODUCTS].
+     * 
+ * + * CONTEXT_PRODUCTS_TYPE_UNSPECIFIED = 0; + */ + CONTEXT_PRODUCTS_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Use only a single product as context for the recommendation. Typically
+     * used on pages like add-to-cart or product details.
+     * 
+ * + * SINGLE_CONTEXT_PRODUCT = 1; + */ + SINGLE_CONTEXT_PRODUCT(1), + /** + * + * + *
+     * Use one or multiple products as context for the recommendation. Typically
+     * used on shopping cart pages.
+     * 
+ * + * MULTIPLE_CONTEXT_PRODUCTS = 2; + */ + MULTIPLE_CONTEXT_PRODUCTS(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified default value, should never be explicitly set.
+     * Defaults to
+     * [MULTIPLE_CONTEXT_PRODUCTS][google.cloud.retail.v2.Model.ContextProductsType.MULTIPLE_CONTEXT_PRODUCTS].
+     * 
+ * + * CONTEXT_PRODUCTS_TYPE_UNSPECIFIED = 0; + */ + public static final int CONTEXT_PRODUCTS_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Use only a single product as context for the recommendation. Typically
+     * used on pages like add-to-cart or product details.
+     * 
+ * + * SINGLE_CONTEXT_PRODUCT = 1; + */ + public static final int SINGLE_CONTEXT_PRODUCT_VALUE = 1; + /** + * + * + *
+     * Use one or multiple products as context for the recommendation. Typically
+     * used on shopping cart pages.
+     * 
+ * + * MULTIPLE_CONTEXT_PRODUCTS = 2; + */ + public static final int MULTIPLE_CONTEXT_PRODUCTS_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ContextProductsType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ContextProductsType forNumber(int value) { + switch (value) { + case 0: + return CONTEXT_PRODUCTS_TYPE_UNSPECIFIED; + case 1: + return SINGLE_CONTEXT_PRODUCT; + case 2: + return MULTIPLE_CONTEXT_PRODUCTS; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ContextProductsType findValueByNumber(int number) { + return ContextProductsType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.retail.v2.Model.getDescriptor().getEnumTypes().get(4); + } + + private static final ContextProductsType[] VALUES = values(); + + public static ContextProductsType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ContextProductsType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.retail.v2.Model.ContextProductsType) + } + public interface ServingConfigListOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2.Model.ServingConfigList) @@ -1399,112 +1567,1704 @@ public com.google.protobuf.ByteString getServingConfigIdsBytes(int index) { * `PAGE_OPTIMIZATION`. * * - * repeated string serving_config_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string serving_config_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The servingConfigIds to set. + * @return This builder for chaining. + */ + public Builder setServingConfigIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureServingConfigIdsIsMutable(); + servingConfigIds_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. A set of valid serving configs that may be used for
+       * `PAGE_OPTIMIZATION`.
+       * 
+ * + * repeated string serving_config_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The servingConfigIds to add. + * @return This builder for chaining. + */ + public Builder addServingConfigIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureServingConfigIdsIsMutable(); + servingConfigIds_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. A set of valid serving configs that may be used for
+       * `PAGE_OPTIMIZATION`.
+       * 
+ * + * repeated string serving_config_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The servingConfigIds to add. + * @return This builder for chaining. + */ + public Builder addAllServingConfigIds(java.lang.Iterable values) { + ensureServingConfigIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, servingConfigIds_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. A set of valid serving configs that may be used for
+       * `PAGE_OPTIMIZATION`.
+       * 
+ * + * repeated string serving_config_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearServingConfigIds() { + servingConfigIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. A set of valid serving configs that may be used for
+       * `PAGE_OPTIMIZATION`.
+       * 
+ * + * repeated string serving_config_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the servingConfigIds to add. + * @return This builder for chaining. + */ + public Builder addServingConfigIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureServingConfigIdsIsMutable(); + servingConfigIds_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2.Model.ServingConfigList) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2.Model.ServingConfigList) + private static final com.google.cloud.retail.v2.Model.ServingConfigList DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.retail.v2.Model.ServingConfigList(); + } + + public static com.google.cloud.retail.v2.Model.ServingConfigList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServingConfigList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2.Model.ServingConfigList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface FrequentlyBoughtTogetherFeaturesConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. Specifies the context of the model when it is used in predict
+     * requests. Can only be set for the `frequently-bought-together` type. If
+     * it isn't specified, it defaults to
+     * [MULTIPLE_CONTEXT_PRODUCTS][google.cloud.retail.v2.Model.ContextProductsType.MULTIPLE_CONTEXT_PRODUCTS].
+     * 
+ * + * + * .google.cloud.retail.v2.Model.ContextProductsType context_products_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for contextProductsType. + */ + int getContextProductsTypeValue(); + /** + * + * + *
+     * Optional. Specifies the context of the model when it is used in predict
+     * requests. Can only be set for the `frequently-bought-together` type. If
+     * it isn't specified, it defaults to
+     * [MULTIPLE_CONTEXT_PRODUCTS][google.cloud.retail.v2.Model.ContextProductsType.MULTIPLE_CONTEXT_PRODUCTS].
+     * 
+ * + * + * .google.cloud.retail.v2.Model.ContextProductsType context_products_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The contextProductsType. + */ + com.google.cloud.retail.v2.Model.ContextProductsType getContextProductsType(); + } + /** + * + * + *
+   * Additional configs for the frequently-bought-together model type.
+   * 
+ * + * Protobuf type {@code google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig} + */ + public static final class FrequentlyBoughtTogetherFeaturesConfig + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig) + FrequentlyBoughtTogetherFeaturesConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use FrequentlyBoughtTogetherFeaturesConfig.newBuilder() to construct. + private FrequentlyBoughtTogetherFeaturesConfig( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FrequentlyBoughtTogetherFeaturesConfig() { + contextProductsType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FrequentlyBoughtTogetherFeaturesConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2.ModelProto + .internal_static_google_cloud_retail_v2_Model_FrequentlyBoughtTogetherFeaturesConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2.ModelProto + .internal_static_google_cloud_retail_v2_Model_FrequentlyBoughtTogetherFeaturesConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig.class, + com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig.Builder + .class); + } + + public static final int CONTEXT_PRODUCTS_TYPE_FIELD_NUMBER = 2; + private int contextProductsType_ = 0; + /** + * + * + *
+     * Optional. Specifies the context of the model when it is used in predict
+     * requests. Can only be set for the `frequently-bought-together` type. If
+     * it isn't specified, it defaults to
+     * [MULTIPLE_CONTEXT_PRODUCTS][google.cloud.retail.v2.Model.ContextProductsType.MULTIPLE_CONTEXT_PRODUCTS].
+     * 
+ * + * + * .google.cloud.retail.v2.Model.ContextProductsType context_products_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for contextProductsType. + */ + @java.lang.Override + public int getContextProductsTypeValue() { + return contextProductsType_; + } + /** + * + * + *
+     * Optional. Specifies the context of the model when it is used in predict
+     * requests. Can only be set for the `frequently-bought-together` type. If
+     * it isn't specified, it defaults to
+     * [MULTIPLE_CONTEXT_PRODUCTS][google.cloud.retail.v2.Model.ContextProductsType.MULTIPLE_CONTEXT_PRODUCTS].
+     * 
+ * + * + * .google.cloud.retail.v2.Model.ContextProductsType context_products_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The contextProductsType. + */ + @java.lang.Override + public com.google.cloud.retail.v2.Model.ContextProductsType getContextProductsType() { + com.google.cloud.retail.v2.Model.ContextProductsType result = + com.google.cloud.retail.v2.Model.ContextProductsType.forNumber(contextProductsType_); + return result == null + ? com.google.cloud.retail.v2.Model.ContextProductsType.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (contextProductsType_ + != com.google.cloud.retail.v2.Model.ContextProductsType.CONTEXT_PRODUCTS_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, contextProductsType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (contextProductsType_ + != com.google.cloud.retail.v2.Model.ContextProductsType.CONTEXT_PRODUCTS_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, contextProductsType_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig)) { + return super.equals(obj); + } + com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig other = + (com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig) obj; + + if (contextProductsType_ != other.contextProductsType_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONTEXT_PRODUCTS_TYPE_FIELD_NUMBER; + hash = (53 * hash) + contextProductsType_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Additional configs for the frequently-bought-together model type.
+     * 
+ * + * Protobuf type {@code google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig) + com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2.ModelProto + .internal_static_google_cloud_retail_v2_Model_FrequentlyBoughtTogetherFeaturesConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2.ModelProto + .internal_static_google_cloud_retail_v2_Model_FrequentlyBoughtTogetherFeaturesConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig.class, + com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig.Builder + .class); + } + + // Construct using + // com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + contextProductsType_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2.ModelProto + .internal_static_google_cloud_retail_v2_Model_FrequentlyBoughtTogetherFeaturesConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig + getDefaultInstanceForType() { + return com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig build() { + com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig + buildPartial() { + com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig result = + new com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.contextProductsType_ = contextProductsType_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig) { + return mergeFrom( + (com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig other) { + if (other + == com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig + .getDefaultInstance()) return this; + if (other.contextProductsType_ != 0) { + setContextProductsTypeValue(other.getContextProductsTypeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 16: + { + contextProductsType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int contextProductsType_ = 0; + /** + * + * + *
+       * Optional. Specifies the context of the model when it is used in predict
+       * requests. Can only be set for the `frequently-bought-together` type. If
+       * it isn't specified, it defaults to
+       * [MULTIPLE_CONTEXT_PRODUCTS][google.cloud.retail.v2.Model.ContextProductsType.MULTIPLE_CONTEXT_PRODUCTS].
+       * 
+ * + * + * .google.cloud.retail.v2.Model.ContextProductsType context_products_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for contextProductsType. + */ + @java.lang.Override + public int getContextProductsTypeValue() { + return contextProductsType_; + } + /** + * + * + *
+       * Optional. Specifies the context of the model when it is used in predict
+       * requests. Can only be set for the `frequently-bought-together` type. If
+       * it isn't specified, it defaults to
+       * [MULTIPLE_CONTEXT_PRODUCTS][google.cloud.retail.v2.Model.ContextProductsType.MULTIPLE_CONTEXT_PRODUCTS].
+       * 
+ * + * + * .google.cloud.retail.v2.Model.ContextProductsType context_products_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for contextProductsType to set. + * @return This builder for chaining. + */ + public Builder setContextProductsTypeValue(int value) { + contextProductsType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Specifies the context of the model when it is used in predict
+       * requests. Can only be set for the `frequently-bought-together` type. If
+       * it isn't specified, it defaults to
+       * [MULTIPLE_CONTEXT_PRODUCTS][google.cloud.retail.v2.Model.ContextProductsType.MULTIPLE_CONTEXT_PRODUCTS].
+       * 
+ * + * + * .google.cloud.retail.v2.Model.ContextProductsType context_products_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The contextProductsType. + */ + @java.lang.Override + public com.google.cloud.retail.v2.Model.ContextProductsType getContextProductsType() { + com.google.cloud.retail.v2.Model.ContextProductsType result = + com.google.cloud.retail.v2.Model.ContextProductsType.forNumber(contextProductsType_); + return result == null + ? com.google.cloud.retail.v2.Model.ContextProductsType.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Optional. Specifies the context of the model when it is used in predict
+       * requests. Can only be set for the `frequently-bought-together` type. If
+       * it isn't specified, it defaults to
+       * [MULTIPLE_CONTEXT_PRODUCTS][google.cloud.retail.v2.Model.ContextProductsType.MULTIPLE_CONTEXT_PRODUCTS].
+       * 
+ * + * + * .google.cloud.retail.v2.Model.ContextProductsType context_products_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The contextProductsType to set. + * @return This builder for chaining. + */ + public Builder setContextProductsType( + com.google.cloud.retail.v2.Model.ContextProductsType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + contextProductsType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Specifies the context of the model when it is used in predict
+       * requests. Can only be set for the `frequently-bought-together` type. If
+       * it isn't specified, it defaults to
+       * [MULTIPLE_CONTEXT_PRODUCTS][google.cloud.retail.v2.Model.ContextProductsType.MULTIPLE_CONTEXT_PRODUCTS].
+       * 
+ * + * + * .google.cloud.retail.v2.Model.ContextProductsType context_products_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearContextProductsType() { + bitField0_ = (bitField0_ & ~0x00000001); + contextProductsType_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig) + private static final com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig(); + } + + public static com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FrequentlyBoughtTogetherFeaturesConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ModelFeaturesConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2.Model.ModelFeaturesConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Additional configs for frequently-bought-together models.
+     * 
+ * + * + * .google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig frequently_bought_together_config = 1; + * + * + * @return Whether the frequentlyBoughtTogetherConfig field is set. + */ + boolean hasFrequentlyBoughtTogetherConfig(); + /** + * + * + *
+     * Additional configs for frequently-bought-together models.
+     * 
+ * + * + * .google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig frequently_bought_together_config = 1; + * + * + * @return The frequentlyBoughtTogetherConfig. + */ + com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig + getFrequentlyBoughtTogetherConfig(); + /** + * + * + *
+     * Additional configs for frequently-bought-together models.
+     * 
+ * + * + * .google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig frequently_bought_together_config = 1; + * + */ + com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfigOrBuilder + getFrequentlyBoughtTogetherConfigOrBuilder(); + + com.google.cloud.retail.v2.Model.ModelFeaturesConfig.TypeDedicatedConfigCase + getTypeDedicatedConfigCase(); + } + /** + * + * + *
+   * Additional model features config.
+   * 
+ * + * Protobuf type {@code google.cloud.retail.v2.Model.ModelFeaturesConfig} + */ + public static final class ModelFeaturesConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2.Model.ModelFeaturesConfig) + ModelFeaturesConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ModelFeaturesConfig.newBuilder() to construct. + private ModelFeaturesConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ModelFeaturesConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ModelFeaturesConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2.ModelProto + .internal_static_google_cloud_retail_v2_Model_ModelFeaturesConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2.ModelProto + .internal_static_google_cloud_retail_v2_Model_ModelFeaturesConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2.Model.ModelFeaturesConfig.class, + com.google.cloud.retail.v2.Model.ModelFeaturesConfig.Builder.class); + } + + private int typeDedicatedConfigCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object typeDedicatedConfig_; + + public enum TypeDedicatedConfigCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + FREQUENTLY_BOUGHT_TOGETHER_CONFIG(1), + TYPEDEDICATEDCONFIG_NOT_SET(0); + private final int value; + + private TypeDedicatedConfigCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TypeDedicatedConfigCase valueOf(int value) { + return forNumber(value); + } + + public static TypeDedicatedConfigCase forNumber(int value) { + switch (value) { + case 1: + return FREQUENTLY_BOUGHT_TOGETHER_CONFIG; + case 0: + return TYPEDEDICATEDCONFIG_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TypeDedicatedConfigCase getTypeDedicatedConfigCase() { + return TypeDedicatedConfigCase.forNumber(typeDedicatedConfigCase_); + } + + public static final int FREQUENTLY_BOUGHT_TOGETHER_CONFIG_FIELD_NUMBER = 1; + /** + * + * + *
+     * Additional configs for frequently-bought-together models.
+     * 
+ * + * + * .google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig frequently_bought_together_config = 1; + * + * + * @return Whether the frequentlyBoughtTogetherConfig field is set. + */ + @java.lang.Override + public boolean hasFrequentlyBoughtTogetherConfig() { + return typeDedicatedConfigCase_ == 1; + } + /** + * + * + *
+     * Additional configs for frequently-bought-together models.
+     * 
+ * + * + * .google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig frequently_bought_together_config = 1; + * + * + * @return The frequentlyBoughtTogetherConfig. + */ + @java.lang.Override + public com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig + getFrequentlyBoughtTogetherConfig() { + if (typeDedicatedConfigCase_ == 1) { + return (com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig) + typeDedicatedConfig_; + } + return com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig + .getDefaultInstance(); + } + /** + * + * + *
+     * Additional configs for frequently-bought-together models.
+     * 
+ * + * + * .google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig frequently_bought_together_config = 1; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfigOrBuilder + getFrequentlyBoughtTogetherConfigOrBuilder() { + if (typeDedicatedConfigCase_ == 1) { + return (com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig) + typeDedicatedConfig_; + } + return com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig + .getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (typeDedicatedConfigCase_ == 1) { + output.writeMessage( + 1, + (com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig) + typeDedicatedConfig_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (typeDedicatedConfigCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig) + typeDedicatedConfig_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.retail.v2.Model.ModelFeaturesConfig)) { + return super.equals(obj); + } + com.google.cloud.retail.v2.Model.ModelFeaturesConfig other = + (com.google.cloud.retail.v2.Model.ModelFeaturesConfig) obj; + + if (!getTypeDedicatedConfigCase().equals(other.getTypeDedicatedConfigCase())) return false; + switch (typeDedicatedConfigCase_) { + case 1: + if (!getFrequentlyBoughtTogetherConfig() + .equals(other.getFrequentlyBoughtTogetherConfig())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (typeDedicatedConfigCase_) { + case 1: + hash = (37 * hash) + FREQUENTLY_BOUGHT_TOGETHER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getFrequentlyBoughtTogetherConfig().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2.Model.ModelFeaturesConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.Model.ModelFeaturesConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2.Model.ModelFeaturesConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.Model.ModelFeaturesConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2.Model.ModelFeaturesConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.Model.ModelFeaturesConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2.Model.ModelFeaturesConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.Model.ModelFeaturesConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2.Model.ModelFeaturesConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.Model.ModelFeaturesConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2.Model.ModelFeaturesConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.Model.ModelFeaturesConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.retail.v2.Model.ModelFeaturesConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Additional model features config.
+     * 
+ * + * Protobuf type {@code google.cloud.retail.v2.Model.ModelFeaturesConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2.Model.ModelFeaturesConfig) + com.google.cloud.retail.v2.Model.ModelFeaturesConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2.ModelProto + .internal_static_google_cloud_retail_v2_Model_ModelFeaturesConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2.ModelProto + .internal_static_google_cloud_retail_v2_Model_ModelFeaturesConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2.Model.ModelFeaturesConfig.class, + com.google.cloud.retail.v2.Model.ModelFeaturesConfig.Builder.class); + } + + // Construct using com.google.cloud.retail.v2.Model.ModelFeaturesConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (frequentlyBoughtTogetherConfigBuilder_ != null) { + frequentlyBoughtTogetherConfigBuilder_.clear(); + } + typeDedicatedConfigCase_ = 0; + typeDedicatedConfig_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2.ModelProto + .internal_static_google_cloud_retail_v2_Model_ModelFeaturesConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2.Model.ModelFeaturesConfig getDefaultInstanceForType() { + return com.google.cloud.retail.v2.Model.ModelFeaturesConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2.Model.ModelFeaturesConfig build() { + com.google.cloud.retail.v2.Model.ModelFeaturesConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2.Model.ModelFeaturesConfig buildPartial() { + com.google.cloud.retail.v2.Model.ModelFeaturesConfig result = + new com.google.cloud.retail.v2.Model.ModelFeaturesConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.retail.v2.Model.ModelFeaturesConfig result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.retail.v2.Model.ModelFeaturesConfig result) { + result.typeDedicatedConfigCase_ = typeDedicatedConfigCase_; + result.typeDedicatedConfig_ = this.typeDedicatedConfig_; + if (typeDedicatedConfigCase_ == 1 && frequentlyBoughtTogetherConfigBuilder_ != null) { + result.typeDedicatedConfig_ = frequentlyBoughtTogetherConfigBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.retail.v2.Model.ModelFeaturesConfig) { + return mergeFrom((com.google.cloud.retail.v2.Model.ModelFeaturesConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.retail.v2.Model.ModelFeaturesConfig other) { + if (other == com.google.cloud.retail.v2.Model.ModelFeaturesConfig.getDefaultInstance()) + return this; + switch (other.getTypeDedicatedConfigCase()) { + case FREQUENTLY_BOUGHT_TOGETHER_CONFIG: + { + mergeFrequentlyBoughtTogetherConfig(other.getFrequentlyBoughtTogetherConfig()); + break; + } + case TYPEDEDICATEDCONFIG_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getFrequentlyBoughtTogetherConfigFieldBuilder().getBuilder(), + extensionRegistry); + typeDedicatedConfigCase_ = 1; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int typeDedicatedConfigCase_ = 0; + private java.lang.Object typeDedicatedConfig_; + + public TypeDedicatedConfigCase getTypeDedicatedConfigCase() { + return TypeDedicatedConfigCase.forNumber(typeDedicatedConfigCase_); + } + + public Builder clearTypeDedicatedConfig() { + typeDedicatedConfigCase_ = 0; + typeDedicatedConfig_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig, + com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig.Builder, + com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfigOrBuilder> + frequentlyBoughtTogetherConfigBuilder_; + /** + * + * + *
+       * Additional configs for frequently-bought-together models.
+       * 
+ * + * + * .google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig frequently_bought_together_config = 1; + * + * + * @return Whether the frequentlyBoughtTogetherConfig field is set. + */ + @java.lang.Override + public boolean hasFrequentlyBoughtTogetherConfig() { + return typeDedicatedConfigCase_ == 1; + } + /** + * + * + *
+       * Additional configs for frequently-bought-together models.
+       * 
+ * + * + * .google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig frequently_bought_together_config = 1; + * + * + * @return The frequentlyBoughtTogetherConfig. + */ + @java.lang.Override + public com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig + getFrequentlyBoughtTogetherConfig() { + if (frequentlyBoughtTogetherConfigBuilder_ == null) { + if (typeDedicatedConfigCase_ == 1) { + return (com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig) + typeDedicatedConfig_; + } + return com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig + .getDefaultInstance(); + } else { + if (typeDedicatedConfigCase_ == 1) { + return frequentlyBoughtTogetherConfigBuilder_.getMessage(); + } + return com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig + .getDefaultInstance(); + } + } + /** + * + * + *
+       * Additional configs for frequently-bought-together models.
+       * 
+ * + * + * .google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig frequently_bought_together_config = 1; + * + */ + public Builder setFrequentlyBoughtTogetherConfig( + com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig value) { + if (frequentlyBoughtTogetherConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + typeDedicatedConfig_ = value; + onChanged(); + } else { + frequentlyBoughtTogetherConfigBuilder_.setMessage(value); + } + typeDedicatedConfigCase_ = 1; + return this; + } + /** + * + * + *
+       * Additional configs for frequently-bought-together models.
+       * 
+ * + * + * .google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig frequently_bought_together_config = 1; + * + */ + public Builder setFrequentlyBoughtTogetherConfig( + com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig.Builder + builderForValue) { + if (frequentlyBoughtTogetherConfigBuilder_ == null) { + typeDedicatedConfig_ = builderForValue.build(); + onChanged(); + } else { + frequentlyBoughtTogetherConfigBuilder_.setMessage(builderForValue.build()); + } + typeDedicatedConfigCase_ = 1; + return this; + } + /** + * + * + *
+       * Additional configs for frequently-bought-together models.
+       * 
+ * + * + * .google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig frequently_bought_together_config = 1; * - * - * @param index The index to set the value at. - * @param value The servingConfigIds to set. - * @return This builder for chaining. */ - public Builder setServingConfigIds(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder mergeFrequentlyBoughtTogetherConfig( + com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig value) { + if (frequentlyBoughtTogetherConfigBuilder_ == null) { + if (typeDedicatedConfigCase_ == 1 + && typeDedicatedConfig_ + != com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig + .getDefaultInstance()) { + typeDedicatedConfig_ = + com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig.newBuilder( + (com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig) + typeDedicatedConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + typeDedicatedConfig_ = value; + } + onChanged(); + } else { + if (typeDedicatedConfigCase_ == 1) { + frequentlyBoughtTogetherConfigBuilder_.mergeFrom(value); + } else { + frequentlyBoughtTogetherConfigBuilder_.setMessage(value); + } } - ensureServingConfigIdsIsMutable(); - servingConfigIds_.set(index, value); - bitField0_ |= 0x00000001; - onChanged(); + typeDedicatedConfigCase_ = 1; return this; } /** * * *
-       * Optional. A set of valid serving configs that may be used for
-       * `PAGE_OPTIMIZATION`.
+       * Additional configs for frequently-bought-together models.
        * 
* - * repeated string serving_config_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig frequently_bought_together_config = 1; * - * - * @param value The servingConfigIds to add. - * @return This builder for chaining. */ - public Builder addServingConfigIds(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearFrequentlyBoughtTogetherConfig() { + if (frequentlyBoughtTogetherConfigBuilder_ == null) { + if (typeDedicatedConfigCase_ == 1) { + typeDedicatedConfigCase_ = 0; + typeDedicatedConfig_ = null; + onChanged(); + } + } else { + if (typeDedicatedConfigCase_ == 1) { + typeDedicatedConfigCase_ = 0; + typeDedicatedConfig_ = null; + } + frequentlyBoughtTogetherConfigBuilder_.clear(); } - ensureServingConfigIdsIsMutable(); - servingConfigIds_.add(value); - bitField0_ |= 0x00000001; - onChanged(); return this; } /** * * *
-       * Optional. A set of valid serving configs that may be used for
-       * `PAGE_OPTIMIZATION`.
+       * Additional configs for frequently-bought-together models.
        * 
* - * repeated string serving_config_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig frequently_bought_together_config = 1; * - * - * @param values The servingConfigIds to add. - * @return This builder for chaining. */ - public Builder addAllServingConfigIds(java.lang.Iterable values) { - ensureServingConfigIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, servingConfigIds_); - bitField0_ |= 0x00000001; - onChanged(); - return this; + public com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig.Builder + getFrequentlyBoughtTogetherConfigBuilder() { + return getFrequentlyBoughtTogetherConfigFieldBuilder().getBuilder(); } /** * * *
-       * Optional. A set of valid serving configs that may be used for
-       * `PAGE_OPTIMIZATION`.
+       * Additional configs for frequently-bought-together models.
        * 
* - * repeated string serving_config_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig frequently_bought_together_config = 1; * - * - * @return This builder for chaining. */ - public Builder clearServingConfigIds() { - servingConfigIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; - onChanged(); - return this; + @java.lang.Override + public com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfigOrBuilder + getFrequentlyBoughtTogetherConfigOrBuilder() { + if ((typeDedicatedConfigCase_ == 1) && (frequentlyBoughtTogetherConfigBuilder_ != null)) { + return frequentlyBoughtTogetherConfigBuilder_.getMessageOrBuilder(); + } else { + if (typeDedicatedConfigCase_ == 1) { + return (com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig) + typeDedicatedConfig_; + } + return com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig + .getDefaultInstance(); + } } /** * * *
-       * Optional. A set of valid serving configs that may be used for
-       * `PAGE_OPTIMIZATION`.
+       * Additional configs for frequently-bought-together models.
        * 
* - * repeated string serving_config_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig frequently_bought_together_config = 1; * - * - * @param value The bytes of the servingConfigIds to add. - * @return This builder for chaining. */ - public Builder addServingConfigIdsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig, + com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig.Builder, + com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfigOrBuilder> + getFrequentlyBoughtTogetherConfigFieldBuilder() { + if (frequentlyBoughtTogetherConfigBuilder_ == null) { + if (!(typeDedicatedConfigCase_ == 1)) { + typeDedicatedConfig_ = + com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig + .getDefaultInstance(); + } + frequentlyBoughtTogetherConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig, + com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig.Builder, + com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfigOrBuilder>( + (com.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig) + typeDedicatedConfig_, + getParentForChildren(), + isClean()); + typeDedicatedConfig_ = null; } - checkByteStringIsUtf8(value); - ensureServingConfigIdsIsMutable(); - servingConfigIds_.add(value); - bitField0_ |= 0x00000001; + typeDedicatedConfigCase_ = 1; onChanged(); - return this; + return frequentlyBoughtTogetherConfigBuilder_; } @java.lang.Override @@ -1519,24 +3279,24 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2.Model.ServingConfigList) + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2.Model.ModelFeaturesConfig) } - // @@protoc_insertion_point(class_scope:google.cloud.retail.v2.Model.ServingConfigList) - private static final com.google.cloud.retail.v2.Model.ServingConfigList DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2.Model.ModelFeaturesConfig) + private static final com.google.cloud.retail.v2.Model.ModelFeaturesConfig DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.retail.v2.Model.ServingConfigList(); + DEFAULT_INSTANCE = new com.google.cloud.retail.v2.Model.ModelFeaturesConfig(); } - public static com.google.cloud.retail.v2.Model.ServingConfigList getDefaultInstance() { + public static com.google.cloud.retail.v2.Model.ModelFeaturesConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public ServingConfigList parsePartialFrom( + public ModelFeaturesConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1556,17 +3316,17 @@ public ServingConfigList parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.retail.v2.Model.ServingConfigList getDefaultInstanceForType() { + public com.google.cloud.retail.v2.Model.ModelFeaturesConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } @@ -2410,6 +4170,63 @@ public com.google.cloud.retail.v2.Model.ServingConfigListOrBuilder getServingCon return servingConfigLists_.get(index); } + public static final int MODEL_FEATURES_CONFIG_FIELD_NUMBER = 22; + private com.google.cloud.retail.v2.Model.ModelFeaturesConfig modelFeaturesConfig_; + /** + * + * + *
+   * Optional. Additional model features config.
+   * 
+ * + * + * .google.cloud.retail.v2.Model.ModelFeaturesConfig model_features_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the modelFeaturesConfig field is set. + */ + @java.lang.Override + public boolean hasModelFeaturesConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+   * Optional. Additional model features config.
+   * 
+ * + * + * .google.cloud.retail.v2.Model.ModelFeaturesConfig model_features_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modelFeaturesConfig. + */ + @java.lang.Override + public com.google.cloud.retail.v2.Model.ModelFeaturesConfig getModelFeaturesConfig() { + return modelFeaturesConfig_ == null + ? com.google.cloud.retail.v2.Model.ModelFeaturesConfig.getDefaultInstance() + : modelFeaturesConfig_; + } + /** + * + * + *
+   * Optional. Additional model features config.
+   * 
+ * + * + * .google.cloud.retail.v2.Model.ModelFeaturesConfig model_features_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2.Model.ModelFeaturesConfigOrBuilder + getModelFeaturesConfigOrBuilder() { + return modelFeaturesConfig_ == null + ? com.google.cloud.retail.v2.Model.ModelFeaturesConfig.getDefaultInstance() + : modelFeaturesConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2474,6 +4291,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < servingConfigLists_.size(); i++) { output.writeMessage(19, servingConfigLists_.get(i)); } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(22, getModelFeaturesConfig()); + } getUnknownFields().writeTo(output); } @@ -2534,6 +4354,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, servingConfigLists_.get(i)); } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(22, getModelFeaturesConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2572,6 +4396,10 @@ public boolean equals(final java.lang.Object obj) { if (dataState_ != other.dataState_) return false; if (filteringOption_ != other.filteringOption_) return false; if (!getServingConfigListsList().equals(other.getServingConfigListsList())) return false; + if (hasModelFeaturesConfig() != other.hasModelFeaturesConfig()) return false; + if (hasModelFeaturesConfig()) { + if (!getModelFeaturesConfig().equals(other.getModelFeaturesConfig())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2619,6 +4447,10 @@ public int hashCode() { hash = (37 * hash) + SERVING_CONFIG_LISTS_FIELD_NUMBER; hash = (53 * hash) + getServingConfigListsList().hashCode(); } + if (hasModelFeaturesConfig()) { + hash = (37 * hash) + MODEL_FEATURES_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getModelFeaturesConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2766,6 +4598,7 @@ private void maybeForceBuilderInitialization() { getUpdateTimeFieldBuilder(); getLastTuneTimeFieldBuilder(); getServingConfigListsFieldBuilder(); + getModelFeaturesConfigFieldBuilder(); } } @@ -2805,6 +4638,11 @@ public Builder clear() { servingConfigListsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00002000); + modelFeaturesConfig_ = null; + if (modelFeaturesConfigBuilder_ != null) { + modelFeaturesConfigBuilder_.dispose(); + modelFeaturesConfigBuilder_ = null; + } return this; } @@ -2897,6 +4735,13 @@ private void buildPartial0(com.google.cloud.retail.v2.Model result) { if (((from_bitField0_ & 0x00001000) != 0)) { result.filteringOption_ = filteringOption_; } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.modelFeaturesConfig_ = + modelFeaturesConfigBuilder_ == null + ? modelFeaturesConfig_ + : modelFeaturesConfigBuilder_.build(); + to_bitField0_ |= 0x00000008; + } result.bitField0_ |= to_bitField0_; } @@ -3021,6 +4866,9 @@ public Builder mergeFrom(com.google.cloud.retail.v2.Model other) { } } } + if (other.hasModelFeaturesConfig()) { + mergeModelFeaturesConfig(other.getModelFeaturesConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3139,6 +4987,13 @@ public Builder mergeFrom( } break; } // case 154 + case 178: + { + input.readMessage( + getModelFeaturesConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00004000; + break; + } // case 178 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5578,6 +7433,215 @@ public com.google.cloud.retail.v2.Model.ServingConfigList.Builder addServingConf return servingConfigListsBuilder_; } + private com.google.cloud.retail.v2.Model.ModelFeaturesConfig modelFeaturesConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.Model.ModelFeaturesConfig, + com.google.cloud.retail.v2.Model.ModelFeaturesConfig.Builder, + com.google.cloud.retail.v2.Model.ModelFeaturesConfigOrBuilder> + modelFeaturesConfigBuilder_; + /** + * + * + *
+     * Optional. Additional model features config.
+     * 
+ * + * + * .google.cloud.retail.v2.Model.ModelFeaturesConfig model_features_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the modelFeaturesConfig field is set. + */ + public boolean hasModelFeaturesConfig() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + * + * + *
+     * Optional. Additional model features config.
+     * 
+ * + * + * .google.cloud.retail.v2.Model.ModelFeaturesConfig model_features_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modelFeaturesConfig. + */ + public com.google.cloud.retail.v2.Model.ModelFeaturesConfig getModelFeaturesConfig() { + if (modelFeaturesConfigBuilder_ == null) { + return modelFeaturesConfig_ == null + ? com.google.cloud.retail.v2.Model.ModelFeaturesConfig.getDefaultInstance() + : modelFeaturesConfig_; + } else { + return modelFeaturesConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Additional model features config.
+     * 
+ * + * + * .google.cloud.retail.v2.Model.ModelFeaturesConfig model_features_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setModelFeaturesConfig( + com.google.cloud.retail.v2.Model.ModelFeaturesConfig value) { + if (modelFeaturesConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + modelFeaturesConfig_ = value; + } else { + modelFeaturesConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Additional model features config.
+     * 
+ * + * + * .google.cloud.retail.v2.Model.ModelFeaturesConfig model_features_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setModelFeaturesConfig( + com.google.cloud.retail.v2.Model.ModelFeaturesConfig.Builder builderForValue) { + if (modelFeaturesConfigBuilder_ == null) { + modelFeaturesConfig_ = builderForValue.build(); + } else { + modelFeaturesConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Additional model features config.
+     * 
+ * + * + * .google.cloud.retail.v2.Model.ModelFeaturesConfig model_features_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeModelFeaturesConfig( + com.google.cloud.retail.v2.Model.ModelFeaturesConfig value) { + if (modelFeaturesConfigBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0) + && modelFeaturesConfig_ != null + && modelFeaturesConfig_ + != com.google.cloud.retail.v2.Model.ModelFeaturesConfig.getDefaultInstance()) { + getModelFeaturesConfigBuilder().mergeFrom(value); + } else { + modelFeaturesConfig_ = value; + } + } else { + modelFeaturesConfigBuilder_.mergeFrom(value); + } + if (modelFeaturesConfig_ != null) { + bitField0_ |= 0x00004000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Additional model features config.
+     * 
+ * + * + * .google.cloud.retail.v2.Model.ModelFeaturesConfig model_features_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearModelFeaturesConfig() { + bitField0_ = (bitField0_ & ~0x00004000); + modelFeaturesConfig_ = null; + if (modelFeaturesConfigBuilder_ != null) { + modelFeaturesConfigBuilder_.dispose(); + modelFeaturesConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Additional model features config.
+     * 
+ * + * + * .google.cloud.retail.v2.Model.ModelFeaturesConfig model_features_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.retail.v2.Model.ModelFeaturesConfig.Builder + getModelFeaturesConfigBuilder() { + bitField0_ |= 0x00004000; + onChanged(); + return getModelFeaturesConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Additional model features config.
+     * 
+ * + * + * .google.cloud.retail.v2.Model.ModelFeaturesConfig model_features_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.retail.v2.Model.ModelFeaturesConfigOrBuilder + getModelFeaturesConfigOrBuilder() { + if (modelFeaturesConfigBuilder_ != null) { + return modelFeaturesConfigBuilder_.getMessageOrBuilder(); + } else { + return modelFeaturesConfig_ == null + ? com.google.cloud.retail.v2.Model.ModelFeaturesConfig.getDefaultInstance() + : modelFeaturesConfig_; + } + } + /** + * + * + *
+     * Optional. Additional model features config.
+     * 
+ * + * + * .google.cloud.retail.v2.Model.ModelFeaturesConfig model_features_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.Model.ModelFeaturesConfig, + com.google.cloud.retail.v2.Model.ModelFeaturesConfig.Builder, + com.google.cloud.retail.v2.Model.ModelFeaturesConfigOrBuilder> + getModelFeaturesConfigFieldBuilder() { + if (modelFeaturesConfigBuilder_ == null) { + modelFeaturesConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.Model.ModelFeaturesConfig, + com.google.cloud.retail.v2.Model.ModelFeaturesConfig.Builder, + com.google.cloud.retail.v2.Model.ModelFeaturesConfigOrBuilder>( + getModelFeaturesConfig(), getParentForChildren(), isClean()); + modelFeaturesConfig_ = null; + } + return modelFeaturesConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ModelOrBuilder.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ModelOrBuilder.java index f35a2b9f453d..bf1304a08f34 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ModelOrBuilder.java +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ModelOrBuilder.java @@ -620,4 +620,45 @@ public interface ModelOrBuilder */ com.google.cloud.retail.v2.Model.ServingConfigListOrBuilder getServingConfigListsOrBuilder( int index); + + /** + * + * + *
+   * Optional. Additional model features config.
+   * 
+ * + * + * .google.cloud.retail.v2.Model.ModelFeaturesConfig model_features_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the modelFeaturesConfig field is set. + */ + boolean hasModelFeaturesConfig(); + /** + * + * + *
+   * Optional. Additional model features config.
+   * 
+ * + * + * .google.cloud.retail.v2.Model.ModelFeaturesConfig model_features_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modelFeaturesConfig. + */ + com.google.cloud.retail.v2.Model.ModelFeaturesConfig getModelFeaturesConfig(); + /** + * + * + *
+   * Optional. Additional model features config.
+   * 
+ * + * + * .google.cloud.retail.v2.Model.ModelFeaturesConfig model_features_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.retail.v2.Model.ModelFeaturesConfigOrBuilder getModelFeaturesConfigOrBuilder(); } diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ModelProto.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ModelProto.java index d277d3220c4a..7d7b66dd5fc8 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ModelProto.java +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ModelProto.java @@ -36,6 +36,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_retail_v2_Model_ServingConfigList_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_retail_v2_Model_ServingConfigList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2_Model_FrequentlyBoughtTogetherFeaturesConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2_Model_FrequentlyBoughtTogetherFeaturesConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2_Model_ModelFeaturesConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2_Model_ModelFeaturesConfig_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -49,7 +57,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ogle.cloud.retail.v2\032\037google/api/field_b" + "ehavior.proto\032\031google/api/resource.proto" + "\032#google/cloud/retail/v2/common.proto\032\037g" - + "oogle/protobuf/timestamp.proto\"\242\n\n\005Model" + + "oogle/protobuf/timestamp.proto\"\227\016\n\005Model" + "\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\031\n\014display_name\030\002 \001(" + "\tB\003\340A\002\022H\n\016training_state\030\003 \001(\0162+.google." + "cloud.retail.v2.Model.TrainingStateB\003\340A\001" @@ -69,25 +77,37 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "etail.v2.RecommendationsFilteringOptionB" + "\003\340A\001\022R\n\024serving_config_lists\030\023 \003(\0132/.goo" + "gle.cloud.retail.v2.Model.ServingConfigL" - + "istB\003\340A\003\0324\n\021ServingConfigList\022\037\n\022serving" - + "_config_ids\030\001 \003(\tB\003\340A\001\"R\n\014ServingState\022\035" - + "\n\031SERVING_STATE_UNSPECIFIED\020\000\022\014\n\010INACTIV" - + "E\020\001\022\n\n\006ACTIVE\020\002\022\t\n\005TUNED\020\003\"I\n\rTrainingSt" - + "ate\022\036\n\032TRAINING_STATE_UNSPECIFIED\020\000\022\n\n\006P" - + "AUSED\020\001\022\014\n\010TRAINING\020\002\"\220\001\n\023PeriodicTuning" - + "State\022%\n!PERIODIC_TUNING_STATE_UNSPECIFI" - + "ED\020\000\022\034\n\030PERIODIC_TUNING_DISABLED\020\001\022\027\n\023AL" - + "L_TUNING_DISABLED\020\003\022\033\n\027PERIODIC_TUNING_E" - + "NABLED\020\002\"D\n\tDataState\022\032\n\026DATA_STATE_UNSP" - + "ECIFIED\020\000\022\013\n\007DATA_OK\020\001\022\016\n\nDATA_ERROR\020\002:k" - + "\352Ah\n\033retail.googleapis.com/Model\022Iprojec" - + "ts/{project}/locations/{location}/catalo" - + "gs/{catalog}/models/{model}B\265\001\n\032com.goog" - + "le.cloud.retail.v2B\nModelProtoP\001Z2cloud." - + "google.com/go/retail/apiv2/retailpb;reta" - + "ilpb\242\002\006RETAIL\252\002\026Google.Cloud.Retail.V2\312\002" - + "\026Google\\Cloud\\Retail\\V2\352\002\031Google::Cloud:" - + ":Retail::V2b\006proto3" + + "istB\003\340A\003\022U\n\025model_features_config\030\026 \001(\0132" + + "1.google.cloud.retail.v2.Model.ModelFeat" + + "uresConfigB\003\340A\001\0324\n\021ServingConfigList\022\037\n\022" + + "serving_config_ids\030\001 \003(\tB\003\340A\001\032\177\n&Frequen" + + "tlyBoughtTogetherFeaturesConfig\022U\n\025conte" + + "xt_products_type\030\002 \001(\01621.google.cloud.re" + + "tail.v2.Model.ContextProductsTypeB\003\340A\001\032\241" + + "\001\n\023ModelFeaturesConfig\022q\n!frequently_bou" + + "ght_together_config\030\001 \001(\0132D.google.cloud" + + ".retail.v2.Model.FrequentlyBoughtTogethe" + + "rFeaturesConfigH\000B\027\n\025type_dedicated_conf" + + "ig\"R\n\014ServingState\022\035\n\031SERVING_STATE_UNSP" + + "ECIFIED\020\000\022\014\n\010INACTIVE\020\001\022\n\n\006ACTIVE\020\002\022\t\n\005T" + + "UNED\020\003\"I\n\rTrainingState\022\036\n\032TRAINING_STAT" + + "E_UNSPECIFIED\020\000\022\n\n\006PAUSED\020\001\022\014\n\010TRAINING\020" + + "\002\"\220\001\n\023PeriodicTuningState\022%\n!PERIODIC_TU" + + "NING_STATE_UNSPECIFIED\020\000\022\034\n\030PERIODIC_TUN" + + "ING_DISABLED\020\001\022\027\n\023ALL_TUNING_DISABLED\020\003\022" + + "\033\n\027PERIODIC_TUNING_ENABLED\020\002\"D\n\tDataStat" + + "e\022\032\n\026DATA_STATE_UNSPECIFIED\020\000\022\013\n\007DATA_OK" + + "\020\001\022\016\n\nDATA_ERROR\020\002\"w\n\023ContextProductsTyp" + + "e\022%\n!CONTEXT_PRODUCTS_TYPE_UNSPECIFIED\020\000" + + "\022\032\n\026SINGLE_CONTEXT_PRODUCT\020\001\022\035\n\031MULTIPLE" + + "_CONTEXT_PRODUCTS\020\002:k\352Ah\n\033retail.googlea" + + "pis.com/Model\022Iprojects/{project}/locati" + + "ons/{location}/catalogs/{catalog}/models" + + "/{model}B\265\001\n\032com.google.cloud.retail.v2B" + + "\nModelProtoP\001Z2cloud.google.com/go/retai" + + "l/apiv2/retailpb;retailpb\242\002\006RETAIL\252\002\026Goo" + + "gle.Cloud.Retail.V2\312\002\026Google\\Cloud\\Retai" + + "l\\V2\352\002\031Google::Cloud::Retail::V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -118,6 +138,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DataState", "FilteringOption", "ServingConfigLists", + "ModelFeaturesConfig", }); internal_static_google_cloud_retail_v2_Model_ServingConfigList_descriptor = internal_static_google_cloud_retail_v2_Model_descriptor.getNestedTypes().get(0); @@ -127,6 +148,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "ServingConfigIds", }); + internal_static_google_cloud_retail_v2_Model_FrequentlyBoughtTogetherFeaturesConfig_descriptor = + internal_static_google_cloud_retail_v2_Model_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_retail_v2_Model_FrequentlyBoughtTogetherFeaturesConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2_Model_FrequentlyBoughtTogetherFeaturesConfig_descriptor, + new java.lang.String[] { + "ContextProductsType", + }); + internal_static_google_cloud_retail_v2_Model_ModelFeaturesConfig_descriptor = + internal_static_google_cloud_retail_v2_Model_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_retail_v2_Model_ModelFeaturesConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2_Model_ModelFeaturesConfig_descriptor, + new java.lang.String[] { + "FrequentlyBoughtTogetherConfig", "TypeDedicatedConfig", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/Product.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/Product.java index d639f8e8784e..0833e12e27c1 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/Product.java +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/Product.java @@ -578,23 +578,22 @@ public ExpirationCase getExpirationCase() { * * *
-   * The timestamp when this product becomes unavailable for
-   * [SearchService.Search][google.cloud.retail.v2.SearchService.Search]. Note
-   * that this is only applicable to
-   * [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] and
-   * [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION], and
-   * ignored for [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT].
-   * In general, we suggest the users to delete the stale products explicitly,
-   * instead of using this field to determine staleness.
+   * Note that this field is applied in the following ways:
    *
-   * If it is set, the [Product][google.cloud.retail.v2.Product] is not
-   * available for
-   * [SearchService.Search][google.cloud.retail.v2.SearchService.Search] after
-   * [expire_time][google.cloud.retail.v2.Product.expire_time]. However, the
-   * product can still be retrieved by
-   * [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct]
-   * and
-   * [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts].
+   * * If the [Product][google.cloud.retail.v2.Product] is already expired
+   * when it is uploaded, this product
+   *   is not indexed for search.
+   *
+   * * If the [Product][google.cloud.retail.v2.Product] is not expired when it
+   * is uploaded, only the
+   *   [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY]'s and
+   *   [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION]'s
+   *   expireTime is respected, and
+   *   [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT]'s
+   *   expireTime is not used.
+   *
+   * In general, we suggest the users to delete the stale
+   * products explicitly, instead of using this field to determine staleness.
    *
    * [expire_time][google.cloud.retail.v2.Product.expire_time] must be later
    * than [available_time][google.cloud.retail.v2.Product.available_time] and
@@ -617,23 +616,22 @@ public boolean hasExpireTime() {
    *
    *
    * 
-   * The timestamp when this product becomes unavailable for
-   * [SearchService.Search][google.cloud.retail.v2.SearchService.Search]. Note
-   * that this is only applicable to
-   * [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] and
-   * [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION], and
-   * ignored for [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT].
-   * In general, we suggest the users to delete the stale products explicitly,
-   * instead of using this field to determine staleness.
+   * Note that this field is applied in the following ways:
    *
-   * If it is set, the [Product][google.cloud.retail.v2.Product] is not
-   * available for
-   * [SearchService.Search][google.cloud.retail.v2.SearchService.Search] after
-   * [expire_time][google.cloud.retail.v2.Product.expire_time]. However, the
-   * product can still be retrieved by
-   * [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct]
-   * and
-   * [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts].
+   * * If the [Product][google.cloud.retail.v2.Product] is already expired
+   * when it is uploaded, this product
+   *   is not indexed for search.
+   *
+   * * If the [Product][google.cloud.retail.v2.Product] is not expired when it
+   * is uploaded, only the
+   *   [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY]'s and
+   *   [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION]'s
+   *   expireTime is respected, and
+   *   [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT]'s
+   *   expireTime is not used.
+   *
+   * In general, we suggest the users to delete the stale
+   * products explicitly, instead of using this field to determine staleness.
    *
    * [expire_time][google.cloud.retail.v2.Product.expire_time] must be later
    * than [available_time][google.cloud.retail.v2.Product.available_time] and
@@ -659,23 +657,22 @@ public com.google.protobuf.Timestamp getExpireTime() {
    *
    *
    * 
-   * The timestamp when this product becomes unavailable for
-   * [SearchService.Search][google.cloud.retail.v2.SearchService.Search]. Note
-   * that this is only applicable to
-   * [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] and
-   * [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION], and
-   * ignored for [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT].
-   * In general, we suggest the users to delete the stale products explicitly,
-   * instead of using this field to determine staleness.
+   * Note that this field is applied in the following ways:
    *
-   * If it is set, the [Product][google.cloud.retail.v2.Product] is not
-   * available for
-   * [SearchService.Search][google.cloud.retail.v2.SearchService.Search] after
-   * [expire_time][google.cloud.retail.v2.Product.expire_time]. However, the
-   * product can still be retrieved by
-   * [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct]
-   * and
-   * [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts].
+   * * If the [Product][google.cloud.retail.v2.Product] is already expired
+   * when it is uploaded, this product
+   *   is not indexed for search.
+   *
+   * * If the [Product][google.cloud.retail.v2.Product] is not expired when it
+   * is uploaded, only the
+   *   [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY]'s and
+   *   [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION]'s
+   *   expireTime is respected, and
+   *   [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT]'s
+   *   expireTime is not used.
+   *
+   * In general, we suggest the users to delete the stale
+   * products explicitly, instead of using this field to determine staleness.
    *
    * [expire_time][google.cloud.retail.v2.Product.expire_time] must be later
    * than [available_time][google.cloud.retail.v2.Product.available_time] and
@@ -1284,9 +1281,10 @@ public com.google.protobuf.ByteString getGtinBytes() {
    * error is returned.
    *
    * At most 250 values are allowed per
-   * [Product][google.cloud.retail.v2.Product]. Empty values are not allowed.
-   * Each value must be a UTF-8 encoded string with a length limit of 5,000
-   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+   * [Product][google.cloud.retail.v2.Product] unless overridden through the
+   * Google Cloud console. Empty values are not allowed. Each value must be a
+   * UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an
+   * INVALID_ARGUMENT error is returned.
    *
    * Corresponding properties: Google Merchant Center property
    * [google_product_category][mc_google_product_category]. Schema.org property
@@ -1331,9 +1329,10 @@ public com.google.protobuf.ProtocolStringList getCategoriesList() {
    * error is returned.
    *
    * At most 250 values are allowed per
-   * [Product][google.cloud.retail.v2.Product]. Empty values are not allowed.
-   * Each value must be a UTF-8 encoded string with a length limit of 5,000
-   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+   * [Product][google.cloud.retail.v2.Product] unless overridden through the
+   * Google Cloud console. Empty values are not allowed. Each value must be a
+   * UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an
+   * INVALID_ARGUMENT error is returned.
    *
    * Corresponding properties: Google Merchant Center property
    * [google_product_category][mc_google_product_category]. Schema.org property
@@ -1378,9 +1377,10 @@ public int getCategoriesCount() {
    * error is returned.
    *
    * At most 250 values are allowed per
-   * [Product][google.cloud.retail.v2.Product]. Empty values are not allowed.
-   * Each value must be a UTF-8 encoded string with a length limit of 5,000
-   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+   * [Product][google.cloud.retail.v2.Product] unless overridden through the
+   * Google Cloud console. Empty values are not allowed. Each value must be a
+   * UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an
+   * INVALID_ARGUMENT error is returned.
    *
    * Corresponding properties: Google Merchant Center property
    * [google_product_category][mc_google_product_category]. Schema.org property
@@ -1426,9 +1426,10 @@ public java.lang.String getCategories(int index) {
    * error is returned.
    *
    * At most 250 values are allowed per
-   * [Product][google.cloud.retail.v2.Product]. Empty values are not allowed.
-   * Each value must be a UTF-8 encoded string with a length limit of 5,000
-   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+   * [Product][google.cloud.retail.v2.Product] unless overridden through the
+   * Google Cloud console. Empty values are not allowed. Each value must be a
+   * UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an
+   * INVALID_ARGUMENT error is returned.
    *
    * Corresponding properties: Google Merchant Center property
    * [google_product_category][mc_google_product_category]. Schema.org property
@@ -1523,9 +1524,10 @@ public com.google.protobuf.ByteString getTitleBytes() {
    * 
    * The brands of the product.
    *
-   * A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded
-   * string with a length limit of 1,000 characters. Otherwise, an
-   * INVALID_ARGUMENT error is returned.
+   * A maximum of 30 brands are allowed unless overridden through the Google
+   * Cloud console. Each
+   * brand must be a UTF-8 encoded string with a length limit of 1,000
+   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
    *
    * Corresponding properties: Google Merchant Center property
    * [brand](https://support.google.com/merchants/answer/6324351). Schema.org
@@ -1545,9 +1547,10 @@ public com.google.protobuf.ProtocolStringList getBrandsList() {
    * 
    * The brands of the product.
    *
-   * A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded
-   * string with a length limit of 1,000 characters. Otherwise, an
-   * INVALID_ARGUMENT error is returned.
+   * A maximum of 30 brands are allowed unless overridden through the Google
+   * Cloud console. Each
+   * brand must be a UTF-8 encoded string with a length limit of 1,000
+   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
    *
    * Corresponding properties: Google Merchant Center property
    * [brand](https://support.google.com/merchants/answer/6324351). Schema.org
@@ -1567,9 +1570,10 @@ public int getBrandsCount() {
    * 
    * The brands of the product.
    *
-   * A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded
-   * string with a length limit of 1,000 characters. Otherwise, an
-   * INVALID_ARGUMENT error is returned.
+   * A maximum of 30 brands are allowed unless overridden through the Google
+   * Cloud console. Each
+   * brand must be a UTF-8 encoded string with a length limit of 1,000
+   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
    *
    * Corresponding properties: Google Merchant Center property
    * [brand](https://support.google.com/merchants/answer/6324351). Schema.org
@@ -1590,9 +1594,10 @@ public java.lang.String getBrands(int index) {
    * 
    * The brands of the product.
    *
-   * A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded
-   * string with a length limit of 1,000 characters. Otherwise, an
-   * INVALID_ARGUMENT error is returned.
+   * A maximum of 30 brands are allowed unless overridden through the Google
+   * Cloud console. Each
+   * brand must be a UTF-8 encoded string with a length limit of 1,000
+   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
    *
    * Corresponding properties: Google Merchant Center property
    * [brand](https://support.google.com/merchants/answer/6324351). Schema.org
@@ -3389,7 +3394,7 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
    * .google.protobuf.FieldMask retrievable_fields = 30 [deprecated = true];
    *
    * @deprecated google.cloud.retail.v2.Product.retrievable_fields is deprecated. See
-   *     google/cloud/retail/v2/product.proto;l=562
+   *     google/cloud/retail/v2/product.proto;l=563
    * @return Whether the retrievableFields field is set.
    */
   @java.lang.Override
@@ -3465,7 +3470,7 @@ public boolean hasRetrievableFields() {
    * .google.protobuf.FieldMask retrievable_fields = 30 [deprecated = true];
    *
    * @deprecated google.cloud.retail.v2.Product.retrievable_fields is deprecated. See
-   *     google/cloud/retail/v2/product.proto;l=562
+   *     google/cloud/retail/v2/product.proto;l=563
    * @return The retrievableFields.
    */
   @java.lang.Override
@@ -5453,23 +5458,22 @@ public Builder clearExpiration() {
      *
      *
      * 
-     * The timestamp when this product becomes unavailable for
-     * [SearchService.Search][google.cloud.retail.v2.SearchService.Search]. Note
-     * that this is only applicable to
-     * [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] and
-     * [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION], and
-     * ignored for [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT].
-     * In general, we suggest the users to delete the stale products explicitly,
-     * instead of using this field to determine staleness.
+     * Note that this field is applied in the following ways:
      *
-     * If it is set, the [Product][google.cloud.retail.v2.Product] is not
-     * available for
-     * [SearchService.Search][google.cloud.retail.v2.SearchService.Search] after
-     * [expire_time][google.cloud.retail.v2.Product.expire_time]. However, the
-     * product can still be retrieved by
-     * [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct]
-     * and
-     * [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts].
+     * * If the [Product][google.cloud.retail.v2.Product] is already expired
+     * when it is uploaded, this product
+     *   is not indexed for search.
+     *
+     * * If the [Product][google.cloud.retail.v2.Product] is not expired when it
+     * is uploaded, only the
+     *   [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY]'s and
+     *   [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION]'s
+     *   expireTime is respected, and
+     *   [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT]'s
+     *   expireTime is not used.
+     *
+     * In general, we suggest the users to delete the stale
+     * products explicitly, instead of using this field to determine staleness.
      *
      * [expire_time][google.cloud.retail.v2.Product.expire_time] must be later
      * than [available_time][google.cloud.retail.v2.Product.available_time] and
@@ -5492,23 +5496,22 @@ public boolean hasExpireTime() {
      *
      *
      * 
-     * The timestamp when this product becomes unavailable for
-     * [SearchService.Search][google.cloud.retail.v2.SearchService.Search]. Note
-     * that this is only applicable to
-     * [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] and
-     * [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION], and
-     * ignored for [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT].
-     * In general, we suggest the users to delete the stale products explicitly,
-     * instead of using this field to determine staleness.
+     * Note that this field is applied in the following ways:
      *
-     * If it is set, the [Product][google.cloud.retail.v2.Product] is not
-     * available for
-     * [SearchService.Search][google.cloud.retail.v2.SearchService.Search] after
-     * [expire_time][google.cloud.retail.v2.Product.expire_time]. However, the
-     * product can still be retrieved by
-     * [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct]
-     * and
-     * [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts].
+     * * If the [Product][google.cloud.retail.v2.Product] is already expired
+     * when it is uploaded, this product
+     *   is not indexed for search.
+     *
+     * * If the [Product][google.cloud.retail.v2.Product] is not expired when it
+     * is uploaded, only the
+     *   [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY]'s and
+     *   [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION]'s
+     *   expireTime is respected, and
+     *   [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT]'s
+     *   expireTime is not used.
+     *
+     * In general, we suggest the users to delete the stale
+     * products explicitly, instead of using this field to determine staleness.
      *
      * [expire_time][google.cloud.retail.v2.Product.expire_time] must be later
      * than [available_time][google.cloud.retail.v2.Product.available_time] and
@@ -5541,23 +5544,22 @@ public com.google.protobuf.Timestamp getExpireTime() {
      *
      *
      * 
-     * The timestamp when this product becomes unavailable for
-     * [SearchService.Search][google.cloud.retail.v2.SearchService.Search]. Note
-     * that this is only applicable to
-     * [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] and
-     * [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION], and
-     * ignored for [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT].
-     * In general, we suggest the users to delete the stale products explicitly,
-     * instead of using this field to determine staleness.
+     * Note that this field is applied in the following ways:
      *
-     * If it is set, the [Product][google.cloud.retail.v2.Product] is not
-     * available for
-     * [SearchService.Search][google.cloud.retail.v2.SearchService.Search] after
-     * [expire_time][google.cloud.retail.v2.Product.expire_time]. However, the
-     * product can still be retrieved by
-     * [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct]
-     * and
-     * [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts].
+     * * If the [Product][google.cloud.retail.v2.Product] is already expired
+     * when it is uploaded, this product
+     *   is not indexed for search.
+     *
+     * * If the [Product][google.cloud.retail.v2.Product] is not expired when it
+     * is uploaded, only the
+     *   [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY]'s and
+     *   [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION]'s
+     *   expireTime is respected, and
+     *   [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT]'s
+     *   expireTime is not used.
+     *
+     * In general, we suggest the users to delete the stale
+     * products explicitly, instead of using this field to determine staleness.
      *
      * [expire_time][google.cloud.retail.v2.Product.expire_time] must be later
      * than [available_time][google.cloud.retail.v2.Product.available_time] and
@@ -5587,23 +5589,22 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) {
      *
      *
      * 
-     * The timestamp when this product becomes unavailable for
-     * [SearchService.Search][google.cloud.retail.v2.SearchService.Search]. Note
-     * that this is only applicable to
-     * [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] and
-     * [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION], and
-     * ignored for [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT].
-     * In general, we suggest the users to delete the stale products explicitly,
-     * instead of using this field to determine staleness.
+     * Note that this field is applied in the following ways:
      *
-     * If it is set, the [Product][google.cloud.retail.v2.Product] is not
-     * available for
-     * [SearchService.Search][google.cloud.retail.v2.SearchService.Search] after
-     * [expire_time][google.cloud.retail.v2.Product.expire_time]. However, the
-     * product can still be retrieved by
-     * [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct]
-     * and
-     * [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts].
+     * * If the [Product][google.cloud.retail.v2.Product] is already expired
+     * when it is uploaded, this product
+     *   is not indexed for search.
+     *
+     * * If the [Product][google.cloud.retail.v2.Product] is not expired when it
+     * is uploaded, only the
+     *   [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY]'s and
+     *   [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION]'s
+     *   expireTime is respected, and
+     *   [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT]'s
+     *   expireTime is not used.
+     *
+     * In general, we suggest the users to delete the stale
+     * products explicitly, instead of using this field to determine staleness.
      *
      * [expire_time][google.cloud.retail.v2.Product.expire_time] must be later
      * than [available_time][google.cloud.retail.v2.Product.available_time] and
@@ -5630,23 +5631,22 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal
      *
      *
      * 
-     * The timestamp when this product becomes unavailable for
-     * [SearchService.Search][google.cloud.retail.v2.SearchService.Search]. Note
-     * that this is only applicable to
-     * [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] and
-     * [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION], and
-     * ignored for [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT].
-     * In general, we suggest the users to delete the stale products explicitly,
-     * instead of using this field to determine staleness.
+     * Note that this field is applied in the following ways:
      *
-     * If it is set, the [Product][google.cloud.retail.v2.Product] is not
-     * available for
-     * [SearchService.Search][google.cloud.retail.v2.SearchService.Search] after
-     * [expire_time][google.cloud.retail.v2.Product.expire_time]. However, the
-     * product can still be retrieved by
-     * [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct]
-     * and
-     * [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts].
+     * * If the [Product][google.cloud.retail.v2.Product] is already expired
+     * when it is uploaded, this product
+     *   is not indexed for search.
+     *
+     * * If the [Product][google.cloud.retail.v2.Product] is not expired when it
+     * is uploaded, only the
+     *   [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY]'s and
+     *   [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION]'s
+     *   expireTime is respected, and
+     *   [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT]'s
+     *   expireTime is not used.
+     *
+     * In general, we suggest the users to delete the stale
+     * products explicitly, instead of using this field to determine staleness.
      *
      * [expire_time][google.cloud.retail.v2.Product.expire_time] must be later
      * than [available_time][google.cloud.retail.v2.Product.available_time] and
@@ -5685,23 +5685,22 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
      *
      *
      * 
-     * The timestamp when this product becomes unavailable for
-     * [SearchService.Search][google.cloud.retail.v2.SearchService.Search]. Note
-     * that this is only applicable to
-     * [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] and
-     * [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION], and
-     * ignored for [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT].
-     * In general, we suggest the users to delete the stale products explicitly,
-     * instead of using this field to determine staleness.
+     * Note that this field is applied in the following ways:
      *
-     * If it is set, the [Product][google.cloud.retail.v2.Product] is not
-     * available for
-     * [SearchService.Search][google.cloud.retail.v2.SearchService.Search] after
-     * [expire_time][google.cloud.retail.v2.Product.expire_time]. However, the
-     * product can still be retrieved by
-     * [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct]
-     * and
-     * [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts].
+     * * If the [Product][google.cloud.retail.v2.Product] is already expired
+     * when it is uploaded, this product
+     *   is not indexed for search.
+     *
+     * * If the [Product][google.cloud.retail.v2.Product] is not expired when it
+     * is uploaded, only the
+     *   [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY]'s and
+     *   [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION]'s
+     *   expireTime is respected, and
+     *   [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT]'s
+     *   expireTime is not used.
+     *
+     * In general, we suggest the users to delete the stale
+     * products explicitly, instead of using this field to determine staleness.
      *
      * [expire_time][google.cloud.retail.v2.Product.expire_time] must be later
      * than [available_time][google.cloud.retail.v2.Product.available_time] and
@@ -5734,23 +5733,22 @@ public Builder clearExpireTime() {
      *
      *
      * 
-     * The timestamp when this product becomes unavailable for
-     * [SearchService.Search][google.cloud.retail.v2.SearchService.Search]. Note
-     * that this is only applicable to
-     * [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] and
-     * [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION], and
-     * ignored for [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT].
-     * In general, we suggest the users to delete the stale products explicitly,
-     * instead of using this field to determine staleness.
+     * Note that this field is applied in the following ways:
      *
-     * If it is set, the [Product][google.cloud.retail.v2.Product] is not
-     * available for
-     * [SearchService.Search][google.cloud.retail.v2.SearchService.Search] after
-     * [expire_time][google.cloud.retail.v2.Product.expire_time]. However, the
-     * product can still be retrieved by
-     * [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct]
-     * and
-     * [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts].
+     * * If the [Product][google.cloud.retail.v2.Product] is already expired
+     * when it is uploaded, this product
+     *   is not indexed for search.
+     *
+     * * If the [Product][google.cloud.retail.v2.Product] is not expired when it
+     * is uploaded, only the
+     *   [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY]'s and
+     *   [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION]'s
+     *   expireTime is respected, and
+     *   [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT]'s
+     *   expireTime is not used.
+     *
+     * In general, we suggest the users to delete the stale
+     * products explicitly, instead of using this field to determine staleness.
      *
      * [expire_time][google.cloud.retail.v2.Product.expire_time] must be later
      * than [available_time][google.cloud.retail.v2.Product.available_time] and
@@ -5770,23 +5768,22 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() {
      *
      *
      * 
-     * The timestamp when this product becomes unavailable for
-     * [SearchService.Search][google.cloud.retail.v2.SearchService.Search]. Note
-     * that this is only applicable to
-     * [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] and
-     * [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION], and
-     * ignored for [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT].
-     * In general, we suggest the users to delete the stale products explicitly,
-     * instead of using this field to determine staleness.
+     * Note that this field is applied in the following ways:
      *
-     * If it is set, the [Product][google.cloud.retail.v2.Product] is not
-     * available for
-     * [SearchService.Search][google.cloud.retail.v2.SearchService.Search] after
-     * [expire_time][google.cloud.retail.v2.Product.expire_time]. However, the
-     * product can still be retrieved by
-     * [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct]
-     * and
-     * [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts].
+     * * If the [Product][google.cloud.retail.v2.Product] is already expired
+     * when it is uploaded, this product
+     *   is not indexed for search.
+     *
+     * * If the [Product][google.cloud.retail.v2.Product] is not expired when it
+     * is uploaded, only the
+     *   [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY]'s and
+     *   [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION]'s
+     *   expireTime is respected, and
+     *   [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT]'s
+     *   expireTime is not used.
+     *
+     * In general, we suggest the users to delete the stale
+     * products explicitly, instead of using this field to determine staleness.
      *
      * [expire_time][google.cloud.retail.v2.Product.expire_time] must be later
      * than [available_time][google.cloud.retail.v2.Product.available_time] and
@@ -5814,23 +5811,22 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
      *
      *
      * 
-     * The timestamp when this product becomes unavailable for
-     * [SearchService.Search][google.cloud.retail.v2.SearchService.Search]. Note
-     * that this is only applicable to
-     * [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] and
-     * [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION], and
-     * ignored for [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT].
-     * In general, we suggest the users to delete the stale products explicitly,
-     * instead of using this field to determine staleness.
+     * Note that this field is applied in the following ways:
      *
-     * If it is set, the [Product][google.cloud.retail.v2.Product] is not
-     * available for
-     * [SearchService.Search][google.cloud.retail.v2.SearchService.Search] after
-     * [expire_time][google.cloud.retail.v2.Product.expire_time]. However, the
-     * product can still be retrieved by
-     * [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct]
-     * and
-     * [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts].
+     * * If the [Product][google.cloud.retail.v2.Product] is already expired
+     * when it is uploaded, this product
+     *   is not indexed for search.
+     *
+     * * If the [Product][google.cloud.retail.v2.Product] is not expired when it
+     * is uploaded, only the
+     *   [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY]'s and
+     *   [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION]'s
+     *   expireTime is respected, and
+     *   [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT]'s
+     *   expireTime is not used.
+     *
+     * In general, we suggest the users to delete the stale
+     * products explicitly, instead of using this field to determine staleness.
      *
      * [expire_time][google.cloud.retail.v2.Product.expire_time] must be later
      * than [available_time][google.cloud.retail.v2.Product.available_time] and
@@ -7324,9 +7320,10 @@ private void ensureCategoriesIsMutable() {
      * error is returned.
      *
      * At most 250 values are allowed per
-     * [Product][google.cloud.retail.v2.Product]. Empty values are not allowed.
-     * Each value must be a UTF-8 encoded string with a length limit of 5,000
-     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * [Product][google.cloud.retail.v2.Product] unless overridden through the
+     * Google Cloud console. Empty values are not allowed. Each value must be a
+     * UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an
+     * INVALID_ARGUMENT error is returned.
      *
      * Corresponding properties: Google Merchant Center property
      * [google_product_category][mc_google_product_category]. Schema.org property
@@ -7372,9 +7369,10 @@ public com.google.protobuf.ProtocolStringList getCategoriesList() {
      * error is returned.
      *
      * At most 250 values are allowed per
-     * [Product][google.cloud.retail.v2.Product]. Empty values are not allowed.
-     * Each value must be a UTF-8 encoded string with a length limit of 5,000
-     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * [Product][google.cloud.retail.v2.Product] unless overridden through the
+     * Google Cloud console. Empty values are not allowed. Each value must be a
+     * UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an
+     * INVALID_ARGUMENT error is returned.
      *
      * Corresponding properties: Google Merchant Center property
      * [google_product_category][mc_google_product_category]. Schema.org property
@@ -7419,9 +7417,10 @@ public int getCategoriesCount() {
      * error is returned.
      *
      * At most 250 values are allowed per
-     * [Product][google.cloud.retail.v2.Product]. Empty values are not allowed.
-     * Each value must be a UTF-8 encoded string with a length limit of 5,000
-     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * [Product][google.cloud.retail.v2.Product] unless overridden through the
+     * Google Cloud console. Empty values are not allowed. Each value must be a
+     * UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an
+     * INVALID_ARGUMENT error is returned.
      *
      * Corresponding properties: Google Merchant Center property
      * [google_product_category][mc_google_product_category]. Schema.org property
@@ -7467,9 +7466,10 @@ public java.lang.String getCategories(int index) {
      * error is returned.
      *
      * At most 250 values are allowed per
-     * [Product][google.cloud.retail.v2.Product]. Empty values are not allowed.
-     * Each value must be a UTF-8 encoded string with a length limit of 5,000
-     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * [Product][google.cloud.retail.v2.Product] unless overridden through the
+     * Google Cloud console. Empty values are not allowed. Each value must be a
+     * UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an
+     * INVALID_ARGUMENT error is returned.
      *
      * Corresponding properties: Google Merchant Center property
      * [google_product_category][mc_google_product_category]. Schema.org property
@@ -7515,9 +7515,10 @@ public com.google.protobuf.ByteString getCategoriesBytes(int index) {
      * error is returned.
      *
      * At most 250 values are allowed per
-     * [Product][google.cloud.retail.v2.Product]. Empty values are not allowed.
-     * Each value must be a UTF-8 encoded string with a length limit of 5,000
-     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * [Product][google.cloud.retail.v2.Product] unless overridden through the
+     * Google Cloud console. Empty values are not allowed. Each value must be a
+     * UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an
+     * INVALID_ARGUMENT error is returned.
      *
      * Corresponding properties: Google Merchant Center property
      * [google_product_category][mc_google_product_category]. Schema.org property
@@ -7571,9 +7572,10 @@ public Builder setCategories(int index, java.lang.String value) {
      * error is returned.
      *
      * At most 250 values are allowed per
-     * [Product][google.cloud.retail.v2.Product]. Empty values are not allowed.
-     * Each value must be a UTF-8 encoded string with a length limit of 5,000
-     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * [Product][google.cloud.retail.v2.Product] unless overridden through the
+     * Google Cloud console. Empty values are not allowed. Each value must be a
+     * UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an
+     * INVALID_ARGUMENT error is returned.
      *
      * Corresponding properties: Google Merchant Center property
      * [google_product_category][mc_google_product_category]. Schema.org property
@@ -7626,9 +7628,10 @@ public Builder addCategories(java.lang.String value) {
      * error is returned.
      *
      * At most 250 values are allowed per
-     * [Product][google.cloud.retail.v2.Product]. Empty values are not allowed.
-     * Each value must be a UTF-8 encoded string with a length limit of 5,000
-     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * [Product][google.cloud.retail.v2.Product] unless overridden through the
+     * Google Cloud console. Empty values are not allowed. Each value must be a
+     * UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an
+     * INVALID_ARGUMENT error is returned.
      *
      * Corresponding properties: Google Merchant Center property
      * [google_product_category][mc_google_product_category]. Schema.org property
@@ -7678,9 +7681,10 @@ public Builder addAllCategories(java.lang.Iterable values) {
      * error is returned.
      *
      * At most 250 values are allowed per
-     * [Product][google.cloud.retail.v2.Product]. Empty values are not allowed.
-     * Each value must be a UTF-8 encoded string with a length limit of 5,000
-     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * [Product][google.cloud.retail.v2.Product] unless overridden through the
+     * Google Cloud console. Empty values are not allowed. Each value must be a
+     * UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an
+     * INVALID_ARGUMENT error is returned.
      *
      * Corresponding properties: Google Merchant Center property
      * [google_product_category][mc_google_product_category]. Schema.org property
@@ -7729,9 +7733,10 @@ public Builder clearCategories() {
      * error is returned.
      *
      * At most 250 values are allowed per
-     * [Product][google.cloud.retail.v2.Product]. Empty values are not allowed.
-     * Each value must be a UTF-8 encoded string with a length limit of 5,000
-     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * [Product][google.cloud.retail.v2.Product] unless overridden through the
+     * Google Cloud console. Empty values are not allowed. Each value must be a
+     * UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an
+     * INVALID_ARGUMENT error is returned.
      *
      * Corresponding properties: Google Merchant Center property
      * [google_product_category][mc_google_product_category]. Schema.org property
@@ -7914,9 +7919,10 @@ private void ensureBrandsIsMutable() {
      * 
      * The brands of the product.
      *
-     * A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded
-     * string with a length limit of 1,000 characters. Otherwise, an
-     * INVALID_ARGUMENT error is returned.
+     * A maximum of 30 brands are allowed unless overridden through the Google
+     * Cloud console. Each
+     * brand must be a UTF-8 encoded string with a length limit of 1,000
+     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
      *
      * Corresponding properties: Google Merchant Center property
      * [brand](https://support.google.com/merchants/answer/6324351). Schema.org
@@ -7937,9 +7943,10 @@ public com.google.protobuf.ProtocolStringList getBrandsList() {
      * 
      * The brands of the product.
      *
-     * A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded
-     * string with a length limit of 1,000 characters. Otherwise, an
-     * INVALID_ARGUMENT error is returned.
+     * A maximum of 30 brands are allowed unless overridden through the Google
+     * Cloud console. Each
+     * brand must be a UTF-8 encoded string with a length limit of 1,000
+     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
      *
      * Corresponding properties: Google Merchant Center property
      * [brand](https://support.google.com/merchants/answer/6324351). Schema.org
@@ -7959,9 +7966,10 @@ public int getBrandsCount() {
      * 
      * The brands of the product.
      *
-     * A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded
-     * string with a length limit of 1,000 characters. Otherwise, an
-     * INVALID_ARGUMENT error is returned.
+     * A maximum of 30 brands are allowed unless overridden through the Google
+     * Cloud console. Each
+     * brand must be a UTF-8 encoded string with a length limit of 1,000
+     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
      *
      * Corresponding properties: Google Merchant Center property
      * [brand](https://support.google.com/merchants/answer/6324351). Schema.org
@@ -7982,9 +7990,10 @@ public java.lang.String getBrands(int index) {
      * 
      * The brands of the product.
      *
-     * A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded
-     * string with a length limit of 1,000 characters. Otherwise, an
-     * INVALID_ARGUMENT error is returned.
+     * A maximum of 30 brands are allowed unless overridden through the Google
+     * Cloud console. Each
+     * brand must be a UTF-8 encoded string with a length limit of 1,000
+     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
      *
      * Corresponding properties: Google Merchant Center property
      * [brand](https://support.google.com/merchants/answer/6324351). Schema.org
@@ -8005,9 +8014,10 @@ public com.google.protobuf.ByteString getBrandsBytes(int index) {
      * 
      * The brands of the product.
      *
-     * A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded
-     * string with a length limit of 1,000 characters. Otherwise, an
-     * INVALID_ARGUMENT error is returned.
+     * A maximum of 30 brands are allowed unless overridden through the Google
+     * Cloud console. Each
+     * brand must be a UTF-8 encoded string with a length limit of 1,000
+     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
      *
      * Corresponding properties: Google Merchant Center property
      * [brand](https://support.google.com/merchants/answer/6324351). Schema.org
@@ -8036,9 +8046,10 @@ public Builder setBrands(int index, java.lang.String value) {
      * 
      * The brands of the product.
      *
-     * A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded
-     * string with a length limit of 1,000 characters. Otherwise, an
-     * INVALID_ARGUMENT error is returned.
+     * A maximum of 30 brands are allowed unless overridden through the Google
+     * Cloud console. Each
+     * brand must be a UTF-8 encoded string with a length limit of 1,000
+     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
      *
      * Corresponding properties: Google Merchant Center property
      * [brand](https://support.google.com/merchants/answer/6324351). Schema.org
@@ -8066,9 +8077,10 @@ public Builder addBrands(java.lang.String value) {
      * 
      * The brands of the product.
      *
-     * A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded
-     * string with a length limit of 1,000 characters. Otherwise, an
-     * INVALID_ARGUMENT error is returned.
+     * A maximum of 30 brands are allowed unless overridden through the Google
+     * Cloud console. Each
+     * brand must be a UTF-8 encoded string with a length limit of 1,000
+     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
      *
      * Corresponding properties: Google Merchant Center property
      * [brand](https://support.google.com/merchants/answer/6324351). Schema.org
@@ -8093,9 +8105,10 @@ public Builder addAllBrands(java.lang.Iterable values) {
      * 
      * The brands of the product.
      *
-     * A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded
-     * string with a length limit of 1,000 characters. Otherwise, an
-     * INVALID_ARGUMENT error is returned.
+     * A maximum of 30 brands are allowed unless overridden through the Google
+     * Cloud console. Each
+     * brand must be a UTF-8 encoded string with a length limit of 1,000
+     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
      *
      * Corresponding properties: Google Merchant Center property
      * [brand](https://support.google.com/merchants/answer/6324351). Schema.org
@@ -8119,9 +8132,10 @@ public Builder clearBrands() {
      * 
      * The brands of the product.
      *
-     * A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded
-     * string with a length limit of 1,000 characters. Otherwise, an
-     * INVALID_ARGUMENT error is returned.
+     * A maximum of 30 brands are allowed unless overridden through the Google
+     * Cloud console. Each
+     * brand must be a UTF-8 encoded string with a length limit of 1,000
+     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
      *
      * Corresponding properties: Google Merchant Center property
      * [brand](https://support.google.com/merchants/answer/6324351). Schema.org
@@ -13419,7 +13433,7 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
      * .google.protobuf.FieldMask retrievable_fields = 30 [deprecated = true];
      *
      * @deprecated google.cloud.retail.v2.Product.retrievable_fields is deprecated. See
-     *     google/cloud/retail/v2/product.proto;l=562
+     *     google/cloud/retail/v2/product.proto;l=563
      * @return Whether the retrievableFields field is set.
      */
     @java.lang.Deprecated
@@ -13494,7 +13508,7 @@ public boolean hasRetrievableFields() {
      * .google.protobuf.FieldMask retrievable_fields = 30 [deprecated = true];
      *
      * @deprecated google.cloud.retail.v2.Product.retrievable_fields is deprecated. See
-     *     google/cloud/retail/v2/product.proto;l=562
+     *     google/cloud/retail/v2/product.proto;l=563
      * @return The retrievableFields.
      */
     @java.lang.Deprecated
diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ProductOrBuilder.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ProductOrBuilder.java
index 8bd816236ee3..c713cf8ec205 100644
--- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ProductOrBuilder.java
+++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ProductOrBuilder.java
@@ -28,23 +28,22 @@ public interface ProductOrBuilder
    *
    *
    * 
-   * The timestamp when this product becomes unavailable for
-   * [SearchService.Search][google.cloud.retail.v2.SearchService.Search]. Note
-   * that this is only applicable to
-   * [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] and
-   * [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION], and
-   * ignored for [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT].
-   * In general, we suggest the users to delete the stale products explicitly,
-   * instead of using this field to determine staleness.
+   * Note that this field is applied in the following ways:
    *
-   * If it is set, the [Product][google.cloud.retail.v2.Product] is not
-   * available for
-   * [SearchService.Search][google.cloud.retail.v2.SearchService.Search] after
-   * [expire_time][google.cloud.retail.v2.Product.expire_time]. However, the
-   * product can still be retrieved by
-   * [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct]
-   * and
-   * [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts].
+   * * If the [Product][google.cloud.retail.v2.Product] is already expired
+   * when it is uploaded, this product
+   *   is not indexed for search.
+   *
+   * * If the [Product][google.cloud.retail.v2.Product] is not expired when it
+   * is uploaded, only the
+   *   [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY]'s and
+   *   [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION]'s
+   *   expireTime is respected, and
+   *   [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT]'s
+   *   expireTime is not used.
+   *
+   * In general, we suggest the users to delete the stale
+   * products explicitly, instead of using this field to determine staleness.
    *
    * [expire_time][google.cloud.retail.v2.Product.expire_time] must be later
    * than [available_time][google.cloud.retail.v2.Product.available_time] and
@@ -64,23 +63,22 @@ public interface ProductOrBuilder
    *
    *
    * 
-   * The timestamp when this product becomes unavailable for
-   * [SearchService.Search][google.cloud.retail.v2.SearchService.Search]. Note
-   * that this is only applicable to
-   * [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] and
-   * [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION], and
-   * ignored for [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT].
-   * In general, we suggest the users to delete the stale products explicitly,
-   * instead of using this field to determine staleness.
+   * Note that this field is applied in the following ways:
    *
-   * If it is set, the [Product][google.cloud.retail.v2.Product] is not
-   * available for
-   * [SearchService.Search][google.cloud.retail.v2.SearchService.Search] after
-   * [expire_time][google.cloud.retail.v2.Product.expire_time]. However, the
-   * product can still be retrieved by
-   * [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct]
-   * and
-   * [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts].
+   * * If the [Product][google.cloud.retail.v2.Product] is already expired
+   * when it is uploaded, this product
+   *   is not indexed for search.
+   *
+   * * If the [Product][google.cloud.retail.v2.Product] is not expired when it
+   * is uploaded, only the
+   *   [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY]'s and
+   *   [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION]'s
+   *   expireTime is respected, and
+   *   [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT]'s
+   *   expireTime is not used.
+   *
+   * In general, we suggest the users to delete the stale
+   * products explicitly, instead of using this field to determine staleness.
    *
    * [expire_time][google.cloud.retail.v2.Product.expire_time] must be later
    * than [available_time][google.cloud.retail.v2.Product.available_time] and
@@ -100,23 +98,22 @@ public interface ProductOrBuilder
    *
    *
    * 
-   * The timestamp when this product becomes unavailable for
-   * [SearchService.Search][google.cloud.retail.v2.SearchService.Search]. Note
-   * that this is only applicable to
-   * [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] and
-   * [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION], and
-   * ignored for [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT].
-   * In general, we suggest the users to delete the stale products explicitly,
-   * instead of using this field to determine staleness.
+   * Note that this field is applied in the following ways:
    *
-   * If it is set, the [Product][google.cloud.retail.v2.Product] is not
-   * available for
-   * [SearchService.Search][google.cloud.retail.v2.SearchService.Search] after
-   * [expire_time][google.cloud.retail.v2.Product.expire_time]. However, the
-   * product can still be retrieved by
-   * [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct]
-   * and
-   * [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts].
+   * * If the [Product][google.cloud.retail.v2.Product] is already expired
+   * when it is uploaded, this product
+   *   is not indexed for search.
+   *
+   * * If the [Product][google.cloud.retail.v2.Product] is not expired when it
+   * is uploaded, only the
+   *   [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY]'s and
+   *   [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION]'s
+   *   expireTime is respected, and
+   *   [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT]'s
+   *   expireTime is not used.
+   *
+   * In general, we suggest the users to delete the stale
+   * products explicitly, instead of using this field to determine staleness.
    *
    * [expire_time][google.cloud.retail.v2.Product.expire_time] must be later
    * than [available_time][google.cloud.retail.v2.Product.available_time] and
@@ -571,9 +568,10 @@ public interface ProductOrBuilder
    * error is returned.
    *
    * At most 250 values are allowed per
-   * [Product][google.cloud.retail.v2.Product]. Empty values are not allowed.
-   * Each value must be a UTF-8 encoded string with a length limit of 5,000
-   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+   * [Product][google.cloud.retail.v2.Product] unless overridden through the
+   * Google Cloud console. Empty values are not allowed. Each value must be a
+   * UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an
+   * INVALID_ARGUMENT error is returned.
    *
    * Corresponding properties: Google Merchant Center property
    * [google_product_category][mc_google_product_category]. Schema.org property
@@ -616,9 +614,10 @@ public interface ProductOrBuilder
    * error is returned.
    *
    * At most 250 values are allowed per
-   * [Product][google.cloud.retail.v2.Product]. Empty values are not allowed.
-   * Each value must be a UTF-8 encoded string with a length limit of 5,000
-   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+   * [Product][google.cloud.retail.v2.Product] unless overridden through the
+   * Google Cloud console. Empty values are not allowed. Each value must be a
+   * UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an
+   * INVALID_ARGUMENT error is returned.
    *
    * Corresponding properties: Google Merchant Center property
    * [google_product_category][mc_google_product_category]. Schema.org property
@@ -661,9 +660,10 @@ public interface ProductOrBuilder
    * error is returned.
    *
    * At most 250 values are allowed per
-   * [Product][google.cloud.retail.v2.Product]. Empty values are not allowed.
-   * Each value must be a UTF-8 encoded string with a length limit of 5,000
-   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+   * [Product][google.cloud.retail.v2.Product] unless overridden through the
+   * Google Cloud console. Empty values are not allowed. Each value must be a
+   * UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an
+   * INVALID_ARGUMENT error is returned.
    *
    * Corresponding properties: Google Merchant Center property
    * [google_product_category][mc_google_product_category]. Schema.org property
@@ -707,9 +707,10 @@ public interface ProductOrBuilder
    * error is returned.
    *
    * At most 250 values are allowed per
-   * [Product][google.cloud.retail.v2.Product]. Empty values are not allowed.
-   * Each value must be a UTF-8 encoded string with a length limit of 5,000
-   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
+   * [Product][google.cloud.retail.v2.Product] unless overridden through the
+   * Google Cloud console. Empty values are not allowed. Each value must be a
+   * UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an
+   * INVALID_ARGUMENT error is returned.
    *
    * Corresponding properties: Google Merchant Center property
    * [google_product_category][mc_google_product_category]. Schema.org property
@@ -771,9 +772,10 @@ public interface ProductOrBuilder
    * 
    * The brands of the product.
    *
-   * A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded
-   * string with a length limit of 1,000 characters. Otherwise, an
-   * INVALID_ARGUMENT error is returned.
+   * A maximum of 30 brands are allowed unless overridden through the Google
+   * Cloud console. Each
+   * brand must be a UTF-8 encoded string with a length limit of 1,000
+   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
    *
    * Corresponding properties: Google Merchant Center property
    * [brand](https://support.google.com/merchants/answer/6324351). Schema.org
@@ -791,9 +793,10 @@ public interface ProductOrBuilder
    * 
    * The brands of the product.
    *
-   * A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded
-   * string with a length limit of 1,000 characters. Otherwise, an
-   * INVALID_ARGUMENT error is returned.
+   * A maximum of 30 brands are allowed unless overridden through the Google
+   * Cloud console. Each
+   * brand must be a UTF-8 encoded string with a length limit of 1,000
+   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
    *
    * Corresponding properties: Google Merchant Center property
    * [brand](https://support.google.com/merchants/answer/6324351). Schema.org
@@ -811,9 +814,10 @@ public interface ProductOrBuilder
    * 
    * The brands of the product.
    *
-   * A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded
-   * string with a length limit of 1,000 characters. Otherwise, an
-   * INVALID_ARGUMENT error is returned.
+   * A maximum of 30 brands are allowed unless overridden through the Google
+   * Cloud console. Each
+   * brand must be a UTF-8 encoded string with a length limit of 1,000
+   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
    *
    * Corresponding properties: Google Merchant Center property
    * [brand](https://support.google.com/merchants/answer/6324351). Schema.org
@@ -832,9 +836,10 @@ public interface ProductOrBuilder
    * 
    * The brands of the product.
    *
-   * A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded
-   * string with a length limit of 1,000 characters. Otherwise, an
-   * INVALID_ARGUMENT error is returned.
+   * A maximum of 30 brands are allowed unless overridden through the Google
+   * Cloud console. Each
+   * brand must be a UTF-8 encoded string with a length limit of 1,000
+   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
    *
    * Corresponding properties: Google Merchant Center property
    * [brand](https://support.google.com/merchants/answer/6324351). Schema.org
@@ -2297,7 +2302,7 @@ com.google.cloud.retail.v2.CustomAttribute getAttributesOrDefault(
    * .google.protobuf.FieldMask retrievable_fields = 30 [deprecated = true];
    *
    * @deprecated google.cloud.retail.v2.Product.retrievable_fields is deprecated. See
-   *     google/cloud/retail/v2/product.proto;l=562
+   *     google/cloud/retail/v2/product.proto;l=563
    * @return Whether the retrievableFields field is set.
    */
   @java.lang.Deprecated
@@ -2370,7 +2375,7 @@ com.google.cloud.retail.v2.CustomAttribute getAttributesOrDefault(
    * .google.protobuf.FieldMask retrievable_fields = 30 [deprecated = true];
    *
    * @deprecated google.cloud.retail.v2.Product.retrievable_fields is deprecated. See
-   *     google/cloud/retail/v2/product.proto;l=562
+   *     google/cloud/retail/v2/product.proto;l=563
    * @return The retrievableFields.
    */
   @java.lang.Deprecated
diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ProductServiceProto.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ProductServiceProto.java
index 20dadad5d4b0..4932a99b384e 100644
--- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ProductServiceProto.java
+++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ProductServiceProto.java
@@ -128,143 +128,151 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
           + "google/api/resource.proto\032#google/cloud/"
           + "retail/v2/common.proto\032*google/cloud/ret"
           + "ail/v2/import_config.proto\032$google/cloud"
-          + "/retail/v2/product.proto\032#google/longrun"
-          + "ning/operations.proto\032\033google/protobuf/e"
-          + "mpty.proto\032 google/protobuf/field_mask.p"
-          + "roto\032\037google/protobuf/timestamp.proto\"\234\001"
-          + "\n\024CreateProductRequest\0224\n\006parent\030\001 \001(\tB$"
-          + "\340A\002\372A\036\n\034retail.googleapis.com/Branch\0225\n\007"
-          + "product\030\002 \001(\0132\037.google.cloud.retail.v2.P"
-          + "roductB\003\340A\002\022\027\n\nproduct_id\030\003 \001(\tB\003\340A\002\"H\n\021"
-          + "GetProductRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n"
-          + "\035retail.googleapis.com/Product\"\225\001\n\024Updat"
-          + "eProductRequest\0225\n\007product\030\001 \001(\0132\037.googl"
-          + "e.cloud.retail.v2.ProductB\003\340A\002\022/\n\013update"
-          + "_mask\030\002 \001(\0132\032.google.protobuf.FieldMask\022"
-          + "\025\n\rallow_missing\030\003 \001(\010\"K\n\024DeleteProductR"
-          + "equest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035retail.goo"
-          + "gleapis.com/Product\"\261\001\n\023ListProductsRequ"
-          + "est\0224\n\006parent\030\001 \001(\tB$\340A\002\372A\036\n\034retail.goog"
-          + "leapis.com/Branch\022\021\n\tpage_size\030\002 \001(\005\022\022\n\n"
-          + "page_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022-\n\tread"
-          + "_mask\030\005 \001(\0132\032.google.protobuf.FieldMask\""
-          + "b\n\024ListProductsResponse\0221\n\010products\030\001 \003("
-          + "\0132\037.google.cloud.retail.v2.Product\022\027\n\017ne"
-          + "xt_page_token\030\002 \001(\t\"\301\001\n\023SetInventoryRequ"
-          + "est\0227\n\tinventory\030\001 \001(\0132\037.google.cloud.re"
-          + "tail.v2.ProductB\003\340A\002\022,\n\010set_mask\030\002 \001(\0132\032"
-          + ".google.protobuf.FieldMask\022,\n\010set_time\030\003"
-          + " \001(\0132\032.google.protobuf.Timestamp\022\025\n\rallo"
-          + "w_missing\030\004 \001(\010\"\026\n\024SetInventoryMetadata\""
-          + "\026\n\024SetInventoryResponse\"\305\001\n\033AddFulfillme"
-          + "ntPlacesRequest\0226\n\007product\030\001 \001(\tB%\340A\002\372A\037"
-          + "\n\035retail.googleapis.com/Product\022\021\n\004type\030"
-          + "\002 \001(\tB\003\340A\002\022\026\n\tplace_ids\030\003 \003(\tB\003\340A\002\022,\n\010ad"
-          + "d_time\030\004 \001(\0132\032.google.protobuf.Timestamp"
-          + "\022\025\n\rallow_missing\030\005 \001(\010\"\036\n\034AddFulfillmen"
-          + "tPlacesMetadata\"\036\n\034AddFulfillmentPlacesR"
-          + "esponse\"\217\002\n\032AddLocalInventoriesRequest\0226"
-          + "\n\007product\030\001 \001(\tB%\340A\002\372A\037\n\035retail.googleap"
-          + "is.com/Product\022F\n\021local_inventories\030\002 \003("
-          + "\0132&.google.cloud.retail.v2.LocalInventor"
-          + "yB\003\340A\002\022,\n\010add_mask\030\004 \001(\0132\032.google.protob"
-          + "uf.FieldMask\022,\n\010add_time\030\005 \001(\0132\032.google."
-          + "protobuf.Timestamp\022\025\n\rallow_missing\030\006 \001("
-          + "\010\"\035\n\033AddLocalInventoriesMetadata\"\035\n\033AddL"
-          + "ocalInventoriesResponse\"\267\001\n\035RemoveLocalI"
-          + "nventoriesRequest\0226\n\007product\030\001 \001(\tB%\340A\002\372"
-          + "A\037\n\035retail.googleapis.com/Product\022\026\n\tpla"
-          + "ce_ids\030\002 \003(\tB\003\340A\002\022/\n\013remove_time\030\005 \001(\0132\032"
-          + ".google.protobuf.Timestamp\022\025\n\rallow_miss"
-          + "ing\030\003 \001(\010\" \n\036RemoveLocalInventoriesMetad"
-          + "ata\" \n\036RemoveLocalInventoriesResponse\"\313\001"
-          + "\n\036RemoveFulfillmentPlacesRequest\0226\n\007prod"
-          + "uct\030\001 \001(\tB%\340A\002\372A\037\n\035retail.googleapis.com"
-          + "/Product\022\021\n\004type\030\002 \001(\tB\003\340A\002\022\026\n\tplace_ids"
-          + "\030\003 \003(\tB\003\340A\002\022/\n\013remove_time\030\004 \001(\0132\032.googl"
-          + "e.protobuf.Timestamp\022\025\n\rallow_missing\030\005 "
-          + "\001(\010\"!\n\037RemoveFulfillmentPlacesMetadata\"!"
-          + "\n\037RemoveFulfillmentPlacesResponse2\256\027\n\016Pr"
-          + "oductService\022\317\001\n\rCreateProduct\022,.google."
-          + "cloud.retail.v2.CreateProductRequest\032\037.g"
-          + "oogle.cloud.retail.v2.Product\"o\332A\031parent"
-          + ",product,product_id\202\323\344\223\002M\"B/v2/{parent=p"
-          + "rojects/*/locations/*/catalogs/*/branche"
-          + "s/*}/products:\007product\022\254\001\n\nGetProduct\022)."
-          + "google.cloud.retail.v2.GetProductRequest"
-          + "\032\037.google.cloud.retail.v2.Product\"R\332A\004na"
-          + "me\202\323\344\223\002E\022C/v2/{name=projects/*/locations"
-          + "/*/catalogs/*/branches/*/products/**}\022\276\001"
-          + "\n\014ListProducts\022+.google.cloud.retail.v2."
-          + "ListProductsRequest\032,.google.cloud.retai"
-          + "l.v2.ListProductsResponse\"S\332A\006parent\202\323\344\223"
-          + "\002D\022B/v2/{parent=projects/*/locations/*/c"
-          + "atalogs/*/branches/*}/products\022\322\001\n\rUpdat"
-          + "eProduct\022,.google.cloud.retail.v2.Update"
-          + "ProductRequest\032\037.google.cloud.retail.v2."
-          + "Product\"r\332A\023product,update_mask\202\323\344\223\002V2K/"
-          + "v2/{product.name=projects/*/locations/*/"
-          + "catalogs/*/branches/*/products/**}:\007prod"
-          + "uct\022\251\001\n\rDeleteProduct\022,.google.cloud.ret"
-          + "ail.v2.DeleteProductRequest\032\026.google.pro"
-          + "tobuf.Empty\"R\332A\004name\202\323\344\223\002E*C/v2/{name=pr"
-          + "ojects/*/locations/*/catalogs/*/branches"
-          + "/*/products/**}\022\216\002\n\016ImportProducts\022-.goo"
-          + "gle.cloud.retail.v2.ImportProductsReques"
-          + "t\032\035.google.longrunning.Operation\"\255\001\312AV\n-"
-          + "google.cloud.retail.v2.ImportProductsRes"
-          + "ponse\022%google.cloud.retail.v2.ImportMeta"
-          + "data\202\323\344\223\002N\"I/v2/{parent=projects/*/locat"
-          + "ions/*/catalogs/*/branches/*}/products:i"
-          + "mport:\001*\022\264\002\n\014SetInventory\022+.google.cloud"
-          + ".retail.v2.SetInventoryRequest\032\035.google."
-          + "longrunning.Operation\"\327\001\312AZ\n+google.clou"
-          + "d.retail.v2.SetInventoryResponse\022+google"
-          + ".cloud.retail.v2.SetInventoryMetadata\332A\022"
-          + "inventory,set_mask\202\323\344\223\002_\"Z/v2/{inventory"
-          + ".name=projects/*/locations/*/catalogs/*/"
-          + "branches/*/products/**}:setInventory:\001*\022"
-          + "\312\002\n\024AddFulfillmentPlaces\0223.google.cloud."
-          + "retail.v2.AddFulfillmentPlacesRequest\032\035."
-          + "google.longrunning.Operation\"\335\001\312Aj\n3goog"
-          + "le.cloud.retail.v2.AddFulfillmentPlacesR"
-          + "esponse\0223google.cloud.retail.v2.AddFulfi"
-          + "llmentPlacesMetadata\332A\007product\202\323\344\223\002`\"[/v"
-          + "2/{product=projects/*/locations/*/catalo"
-          + "gs/*/branches/*/products/**}:addFulfillm"
-          + "entPlaces:\001*\022\331\002\n\027RemoveFulfillmentPlaces"
-          + "\0226.google.cloud.retail.v2.RemoveFulfillm"
-          + "entPlacesRequest\032\035.google.longrunning.Op"
-          + "eration\"\346\001\312Ap\n6google.cloud.retail.v2.Re"
-          + "moveFulfillmentPlacesResponse\0226google.cl"
-          + "oud.retail.v2.RemoveFulfillmentPlacesMet"
-          + "adata\332A\007product\202\323\344\223\002c\"^/v2/{product=proj"
-          + "ects/*/locations/*/catalogs/*/branches/*"
-          + "/products/**}:removeFulfillmentPlaces:\001*"
-          + "\022\305\002\n\023AddLocalInventories\0222.google.cloud."
-          + "retail.v2.AddLocalInventoriesRequest\032\035.g"
-          + "oogle.longrunning.Operation\"\332\001\312Ah\n2googl"
-          + "e.cloud.retail.v2.AddLocalInventoriesRes"
-          + "ponse\0222google.cloud.retail.v2.AddLocalIn"
-          + "ventoriesMetadata\332A\007product\202\323\344\223\002_\"Z/v2/{"
-          + "product=projects/*/locations/*/catalogs/"
-          + "*/branches/*/products/**}:addLocalInvent"
-          + "ories:\001*\022\324\002\n\026RemoveLocalInventories\0225.go"
-          + "ogle.cloud.retail.v2.RemoveLocalInventor"
-          + "iesRequest\032\035.google.longrunning.Operatio"
-          + "n\"\343\001\312An\n5google.cloud.retail.v2.RemoveLo"
-          + "calInventoriesResponse\0225google.cloud.ret"
-          + "ail.v2.RemoveLocalInventoriesMetadata\332A\007"
-          + "product\202\323\344\223\002b\"]/v2/{product=projects/*/l"
-          + "ocations/*/catalogs/*/branches/*/product"
-          + "s/**}:removeLocalInventories:\001*\032I\312A\025reta"
-          + "il.googleapis.com\322A.https://www.googleap"
-          + "is.com/auth/cloud-platformB\276\001\n\032com.googl"
-          + "e.cloud.retail.v2B\023ProductServiceProtoP\001"
-          + "Z2cloud.google.com/go/retail/apiv2/retai"
-          + "lpb;retailpb\242\002\006RETAIL\252\002\026Google.Cloud.Ret"
-          + "ail.V2\312\002\026Google\\Cloud\\Retail\\V2\352\002\031Google"
-          + "::Cloud::Retail::V2b\006proto3"
+          + "/retail/v2/product.proto\032)google/cloud/r"
+          + "etail/v2/purge_config.proto\032#google/long"
+          + "running/operations.proto\032\033google/protobu"
+          + "f/empty.proto\032 google/protobuf/field_mas"
+          + "k.proto\032\037google/protobuf/timestamp.proto"
+          + "\"\234\001\n\024CreateProductRequest\0224\n\006parent\030\001 \001("
+          + "\tB$\340A\002\372A\036\n\034retail.googleapis.com/Branch\022"
+          + "5\n\007product\030\002 \001(\0132\037.google.cloud.retail.v"
+          + "2.ProductB\003\340A\002\022\027\n\nproduct_id\030\003 \001(\tB\003\340A\002\""
+          + "H\n\021GetProductRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372"
+          + "A\037\n\035retail.googleapis.com/Product\"\225\001\n\024Up"
+          + "dateProductRequest\0225\n\007product\030\001 \001(\0132\037.go"
+          + "ogle.cloud.retail.v2.ProductB\003\340A\002\022/\n\013upd"
+          + "ate_mask\030\002 \001(\0132\032.google.protobuf.FieldMa"
+          + "sk\022\025\n\rallow_missing\030\003 \001(\010\"K\n\024DeleteProdu"
+          + "ctRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035retail."
+          + "googleapis.com/Product\"\261\001\n\023ListProductsR"
+          + "equest\0224\n\006parent\030\001 \001(\tB$\340A\002\372A\036\n\034retail.g"
+          + "oogleapis.com/Branch\022\021\n\tpage_size\030\002 \001(\005\022"
+          + "\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022-\n\tr"
+          + "ead_mask\030\005 \001(\0132\032.google.protobuf.FieldMa"
+          + "sk\"b\n\024ListProductsResponse\0221\n\010products\030\001"
+          + " \003(\0132\037.google.cloud.retail.v2.Product\022\027\n"
+          + "\017next_page_token\030\002 \001(\t\"\301\001\n\023SetInventoryR"
+          + "equest\0227\n\tinventory\030\001 \001(\0132\037.google.cloud"
+          + ".retail.v2.ProductB\003\340A\002\022,\n\010set_mask\030\002 \001("
+          + "\0132\032.google.protobuf.FieldMask\022,\n\010set_tim"
+          + "e\030\003 \001(\0132\032.google.protobuf.Timestamp\022\025\n\ra"
+          + "llow_missing\030\004 \001(\010\"\026\n\024SetInventoryMetada"
+          + "ta\"\026\n\024SetInventoryResponse\"\305\001\n\033AddFulfil"
+          + "lmentPlacesRequest\0226\n\007product\030\001 \001(\tB%\340A\002"
+          + "\372A\037\n\035retail.googleapis.com/Product\022\021\n\004ty"
+          + "pe\030\002 \001(\tB\003\340A\002\022\026\n\tplace_ids\030\003 \003(\tB\003\340A\002\022,\n"
+          + "\010add_time\030\004 \001(\0132\032.google.protobuf.Timest"
+          + "amp\022\025\n\rallow_missing\030\005 \001(\010\"\036\n\034AddFulfill"
+          + "mentPlacesMetadata\"\036\n\034AddFulfillmentPlac"
+          + "esResponse\"\217\002\n\032AddLocalInventoriesReques"
+          + "t\0226\n\007product\030\001 \001(\tB%\340A\002\372A\037\n\035retail.googl"
+          + "eapis.com/Product\022F\n\021local_inventories\030\002"
+          + " \003(\0132&.google.cloud.retail.v2.LocalInven"
+          + "toryB\003\340A\002\022,\n\010add_mask\030\004 \001(\0132\032.google.pro"
+          + "tobuf.FieldMask\022,\n\010add_time\030\005 \001(\0132\032.goog"
+          + "le.protobuf.Timestamp\022\025\n\rallow_missing\030\006"
+          + " \001(\010\"\035\n\033AddLocalInventoriesMetadata\"\035\n\033A"
+          + "ddLocalInventoriesResponse\"\267\001\n\035RemoveLoc"
+          + "alInventoriesRequest\0226\n\007product\030\001 \001(\tB%\340"
+          + "A\002\372A\037\n\035retail.googleapis.com/Product\022\026\n\t"
+          + "place_ids\030\002 \003(\tB\003\340A\002\022/\n\013remove_time\030\005 \001("
+          + "\0132\032.google.protobuf.Timestamp\022\025\n\rallow_m"
+          + "issing\030\003 \001(\010\" \n\036RemoveLocalInventoriesMe"
+          + "tadata\" \n\036RemoveLocalInventoriesResponse"
+          + "\"\313\001\n\036RemoveFulfillmentPlacesRequest\0226\n\007p"
+          + "roduct\030\001 \001(\tB%\340A\002\372A\037\n\035retail.googleapis."
+          + "com/Product\022\021\n\004type\030\002 \001(\tB\003\340A\002\022\026\n\tplace_"
+          + "ids\030\003 \003(\tB\003\340A\002\022/\n\013remove_time\030\004 \001(\0132\032.go"
+          + "ogle.protobuf.Timestamp\022\025\n\rallow_missing"
+          + "\030\005 \001(\010\"!\n\037RemoveFulfillmentPlacesMetadat"
+          + "a\"!\n\037RemoveFulfillmentPlacesResponse2\302\031\n"
+          + "\016ProductService\022\317\001\n\rCreateProduct\022,.goog"
+          + "le.cloud.retail.v2.CreateProductRequest\032"
+          + "\037.google.cloud.retail.v2.Product\"o\332A\031par"
+          + "ent,product,product_id\202\323\344\223\002M\"B/v2/{paren"
+          + "t=projects/*/locations/*/catalogs/*/bran"
+          + "ches/*}/products:\007product\022\254\001\n\nGetProduct"
+          + "\022).google.cloud.retail.v2.GetProductRequ"
+          + "est\032\037.google.cloud.retail.v2.Product\"R\332A"
+          + "\004name\202\323\344\223\002E\022C/v2/{name=projects/*/locati"
+          + "ons/*/catalogs/*/branches/*/products/**}"
+          + "\022\276\001\n\014ListProducts\022+.google.cloud.retail."
+          + "v2.ListProductsRequest\032,.google.cloud.re"
+          + "tail.v2.ListProductsResponse\"S\332A\006parent\202"
+          + "\323\344\223\002D\022B/v2/{parent=projects/*/locations/"
+          + "*/catalogs/*/branches/*}/products\022\322\001\n\rUp"
+          + "dateProduct\022,.google.cloud.retail.v2.Upd"
+          + "ateProductRequest\032\037.google.cloud.retail."
+          + "v2.Product\"r\332A\023product,update_mask\202\323\344\223\002V"
+          + "2K/v2/{product.name=projects/*/locations"
+          + "/*/catalogs/*/branches/*/products/**}:\007p"
+          + "roduct\022\251\001\n\rDeleteProduct\022,.google.cloud."
+          + "retail.v2.DeleteProductRequest\032\026.google."
+          + "protobuf.Empty\"R\332A\004name\202\323\344\223\002E*C/v2/{name"
+          + "=projects/*/locations/*/catalogs/*/branc"
+          + "hes/*/products/**}\022\221\002\n\rPurgeProducts\022,.g"
+          + "oogle.cloud.retail.v2.PurgeProductsReque"
+          + "st\032\035.google.longrunning.Operation\"\262\001\312A\\\n"
+          + ",google.cloud.retail.v2.PurgeProductsRes"
+          + "ponse\022,google.cloud.retail.v2.PurgeProdu"
+          + "ctsMetadata\202\323\344\223\002M\"H/v2/{parent=projects/"
+          + "*/locations/*/catalogs/*/branches/*}/pro"
+          + "ducts:purge:\001*\022\216\002\n\016ImportProducts\022-.goog"
+          + "le.cloud.retail.v2.ImportProductsRequest"
+          + "\032\035.google.longrunning.Operation\"\255\001\312AV\n-g"
+          + "oogle.cloud.retail.v2.ImportProductsResp"
+          + "onse\022%google.cloud.retail.v2.ImportMetad"
+          + "ata\202\323\344\223\002N\"I/v2/{parent=projects/*/locati"
+          + "ons/*/catalogs/*/branches/*}/products:im"
+          + "port:\001*\022\264\002\n\014SetInventory\022+.google.cloud."
+          + "retail.v2.SetInventoryRequest\032\035.google.l"
+          + "ongrunning.Operation\"\327\001\312AZ\n+google.cloud"
+          + ".retail.v2.SetInventoryResponse\022+google."
+          + "cloud.retail.v2.SetInventoryMetadata\332A\022i"
+          + "nventory,set_mask\202\323\344\223\002_\"Z/v2/{inventory."
+          + "name=projects/*/locations/*/catalogs/*/b"
+          + "ranches/*/products/**}:setInventory:\001*\022\312"
+          + "\002\n\024AddFulfillmentPlaces\0223.google.cloud.r"
+          + "etail.v2.AddFulfillmentPlacesRequest\032\035.g"
+          + "oogle.longrunning.Operation\"\335\001\312Aj\n3googl"
+          + "e.cloud.retail.v2.AddFulfillmentPlacesRe"
+          + "sponse\0223google.cloud.retail.v2.AddFulfil"
+          + "lmentPlacesMetadata\332A\007product\202\323\344\223\002`\"[/v2"
+          + "/{product=projects/*/locations/*/catalog"
+          + "s/*/branches/*/products/**}:addFulfillme"
+          + "ntPlaces:\001*\022\331\002\n\027RemoveFulfillmentPlaces\022"
+          + "6.google.cloud.retail.v2.RemoveFulfillme"
+          + "ntPlacesRequest\032\035.google.longrunning.Ope"
+          + "ration\"\346\001\312Ap\n6google.cloud.retail.v2.Rem"
+          + "oveFulfillmentPlacesResponse\0226google.clo"
+          + "ud.retail.v2.RemoveFulfillmentPlacesMeta"
+          + "data\332A\007product\202\323\344\223\002c\"^/v2/{product=proje"
+          + "cts/*/locations/*/catalogs/*/branches/*/"
+          + "products/**}:removeFulfillmentPlaces:\001*\022"
+          + "\305\002\n\023AddLocalInventories\0222.google.cloud.r"
+          + "etail.v2.AddLocalInventoriesRequest\032\035.go"
+          + "ogle.longrunning.Operation\"\332\001\312Ah\n2google"
+          + ".cloud.retail.v2.AddLocalInventoriesResp"
+          + "onse\0222google.cloud.retail.v2.AddLocalInv"
+          + "entoriesMetadata\332A\007product\202\323\344\223\002_\"Z/v2/{p"
+          + "roduct=projects/*/locations/*/catalogs/*"
+          + "/branches/*/products/**}:addLocalInvento"
+          + "ries:\001*\022\324\002\n\026RemoveLocalInventories\0225.goo"
+          + "gle.cloud.retail.v2.RemoveLocalInventori"
+          + "esRequest\032\035.google.longrunning.Operation"
+          + "\"\343\001\312An\n5google.cloud.retail.v2.RemoveLoc"
+          + "alInventoriesResponse\0225google.cloud.reta"
+          + "il.v2.RemoveLocalInventoriesMetadata\332A\007p"
+          + "roduct\202\323\344\223\002b\"]/v2/{product=projects/*/lo"
+          + "cations/*/catalogs/*/branches/*/products"
+          + "/**}:removeLocalInventories:\001*\032I\312A\025retai"
+          + "l.googleapis.com\322A.https://www.googleapi"
+          + "s.com/auth/cloud-platformB\276\001\n\032com.google"
+          + ".cloud.retail.v2B\023ProductServiceProtoP\001Z"
+          + "2cloud.google.com/go/retail/apiv2/retail"
+          + "pb;retailpb\242\002\006RETAIL\252\002\026Google.Cloud.Reta"
+          + "il.V2\312\002\026Google\\Cloud\\Retail\\V2\352\002\031Google:"
+          + ":Cloud::Retail::V2b\006proto3"
     };
     descriptor =
         com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -277,6 +285,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
               com.google.cloud.retail.v2.CommonProto.getDescriptor(),
               com.google.cloud.retail.v2.ImportConfigProto.getDescriptor(),
               com.google.cloud.retail.v2.ProductProto.getDescriptor(),
+              com.google.cloud.retail.v2.PurgeConfigProto.getDescriptor(),
               com.google.longrunning.OperationsProto.getDescriptor(),
               com.google.protobuf.EmptyProto.getDescriptor(),
               com.google.protobuf.FieldMaskProto.getDescriptor(),
@@ -448,6 +457,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
     com.google.cloud.retail.v2.CommonProto.getDescriptor();
     com.google.cloud.retail.v2.ImportConfigProto.getDescriptor();
     com.google.cloud.retail.v2.ProductProto.getDescriptor();
+    com.google.cloud.retail.v2.PurgeConfigProto.getDescriptor();
     com.google.longrunning.OperationsProto.getDescriptor();
     com.google.protobuf.EmptyProto.getDescriptor();
     com.google.protobuf.FieldMaskProto.getDescriptor();
diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/Promotion.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/Promotion.java
index 1bacf533ec3d..e4765671aba1 100644
--- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/Promotion.java
+++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/Promotion.java
@@ -78,8 +78,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT error is
    * returned.
    *
-   * Google Merchant Center property
-   * [promotion](https://support.google.com/merchants/answer/7050148).
+   * Corresponds to Google Merchant Center property
+   * [promotion_id](https://support.google.com/merchants/answer/7050148).
    * 
* * string promotion_id = 1; @@ -109,8 +109,8 @@ public java.lang.String getPromotionId() { * id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT error is * returned. * - * Google Merchant Center property - * [promotion](https://support.google.com/merchants/answer/7050148). + * Corresponds to Google Merchant Center property + * [promotion_id](https://support.google.com/merchants/answer/7050148). *
* * string promotion_id = 1; @@ -480,8 +480,8 @@ public Builder mergeFrom( * id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT error is * returned. * - * Google Merchant Center property - * [promotion](https://support.google.com/merchants/answer/7050148). + * Corresponds to Google Merchant Center property + * [promotion_id](https://support.google.com/merchants/answer/7050148). *
* * string promotion_id = 1; @@ -510,8 +510,8 @@ public java.lang.String getPromotionId() { * id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT error is * returned. * - * Google Merchant Center property - * [promotion](https://support.google.com/merchants/answer/7050148). + * Corresponds to Google Merchant Center property + * [promotion_id](https://support.google.com/merchants/answer/7050148). *
* * string promotion_id = 1; @@ -540,8 +540,8 @@ public com.google.protobuf.ByteString getPromotionIdBytes() { * id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT error is * returned. * - * Google Merchant Center property - * [promotion](https://support.google.com/merchants/answer/7050148). + * Corresponds to Google Merchant Center property + * [promotion_id](https://support.google.com/merchants/answer/7050148). *
* * string promotion_id = 1; @@ -569,8 +569,8 @@ public Builder setPromotionId(java.lang.String value) { * id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT error is * returned. * - * Google Merchant Center property - * [promotion](https://support.google.com/merchants/answer/7050148). + * Corresponds to Google Merchant Center property + * [promotion_id](https://support.google.com/merchants/answer/7050148). *
* * string promotion_id = 1; @@ -594,8 +594,8 @@ public Builder clearPromotionId() { * id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT error is * returned. * - * Google Merchant Center property - * [promotion](https://support.google.com/merchants/answer/7050148). + * Corresponds to Google Merchant Center property + * [promotion_id](https://support.google.com/merchants/answer/7050148). *
* * string promotion_id = 1; diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PromotionOrBuilder.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PromotionOrBuilder.java index 2262d6ea70cf..ff499d4bf8b6 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PromotionOrBuilder.java +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PromotionOrBuilder.java @@ -35,8 +35,8 @@ public interface PromotionOrBuilder * id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT error is * returned. * - * Google Merchant Center property - * [promotion](https://support.google.com/merchants/answer/7050148). + * Corresponds to Google Merchant Center property + * [promotion_id](https://support.google.com/merchants/answer/7050148). *
* * string promotion_id = 1; @@ -55,8 +55,8 @@ public interface PromotionOrBuilder * id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT error is * returned. * - * Google Merchant Center property - * [promotion](https://support.google.com/merchants/answer/7050148). + * Corresponds to Google Merchant Center property + * [promotion_id](https://support.google.com/merchants/answer/7050148). *
* * string promotion_id = 1; diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PurgeConfigProto.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PurgeConfigProto.java index d7ac1d47fcd1..062e1b982742 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PurgeConfigProto.java +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PurgeConfigProto.java @@ -32,6 +32,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_retail_v2_PurgeMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_retail_v2_PurgeMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2_PurgeProductsMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2_PurgeProductsMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2_PurgeProductsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2_PurgeProductsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2_PurgeProductsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2_PurgeProductsResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_retail_v2_PurgeUserEventsRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -52,16 +64,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n)google/cloud/retail/v2/purge_config.pr" + "oto\022\026google.cloud.retail.v2\032\037google/api/" + "field_behavior.proto\032\031google/api/resourc" - + "e.proto\"\017\n\rPurgeMetadata\"s\n\026PurgeUserEve" - + "ntsRequest\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037\n\035reta" - + "il.googleapis.com/Catalog\022\023\n\006filter\030\002 \001(" - + "\tB\003\340A\002\022\r\n\005force\030\003 \001(\010\"6\n\027PurgeUserEvents" - + "Response\022\033\n\023purged_events_count\030\001 \001(\003B\273\001" - + "\n\032com.google.cloud.retail.v2B\020PurgeConfi" - + "gProtoP\001Z2cloud.google.com/go/retail/api" - + "v2/retailpb;retailpb\242\002\006RETAIL\252\002\026Google.C" - + "loud.Retail.V2\312\002\026Google\\Cloud\\Retail\\V2\352" - + "\002\031Google::Cloud::Retail::V2b\006proto3" + + "e.proto\032\037google/protobuf/timestamp.proto" + + "\"\017\n\rPurgeMetadata\"\247\001\n\025PurgeProductsMetad" + + "ata\022/\n\013create_time\030\001 \001(\0132\032.google.protob" + + "uf.Timestamp\022/\n\013update_time\030\002 \001(\0132\032.goog" + + "le.protobuf.Timestamp\022\025\n\rsuccess_count\030\003" + + " \001(\003\022\025\n\rfailure_count\030\004 \001(\003\"p\n\024PurgeProd" + + "uctsRequest\0224\n\006parent\030\001 \001(\tB$\340A\002\372A\036\n\034ret" + + "ail.googleapis.com/Branch\022\023\n\006filter\030\002 \001(" + + "\tB\003\340A\002\022\r\n\005force\030\003 \001(\010\"f\n\025PurgeProductsRe" + + "sponse\022\023\n\013purge_count\030\001 \001(\003\0228\n\014purge_sam" + + "ple\030\002 \003(\tB\"\372A\037\n\035retail.googleapis.com/Pr" + + "oduct\"s\n\026PurgeUserEventsRequest\0225\n\006paren" + + "t\030\001 \001(\tB%\340A\002\372A\037\n\035retail.googleapis.com/C" + + "atalog\022\023\n\006filter\030\002 \001(\tB\003\340A\002\022\r\n\005force\030\003 \001" + + "(\010\"6\n\027PurgeUserEventsResponse\022\033\n\023purged_" + + "events_count\030\001 \001(\003B\273\001\n\032com.google.cloud." + + "retail.v2B\020PurgeConfigProtoP\001Z2cloud.goo" + + "gle.com/go/retail/apiv2/retailpb;retailp" + + "b\242\002\006RETAIL\252\002\026Google.Cloud.Retail.V2\312\002\026Go" + + "ogle\\Cloud\\Retail\\V2\352\002\031Google::Cloud::Re" + + "tail::V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -69,6 +92,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_google_cloud_retail_v2_PurgeMetadata_descriptor = getDescriptor().getMessageTypes().get(0); @@ -76,8 +100,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_retail_v2_PurgeMetadata_descriptor, new java.lang.String[] {}); - internal_static_google_cloud_retail_v2_PurgeUserEventsRequest_descriptor = + internal_static_google_cloud_retail_v2_PurgeProductsMetadata_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_retail_v2_PurgeProductsMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2_PurgeProductsMetadata_descriptor, + new java.lang.String[] { + "CreateTime", "UpdateTime", "SuccessCount", "FailureCount", + }); + internal_static_google_cloud_retail_v2_PurgeProductsRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_retail_v2_PurgeProductsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2_PurgeProductsRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "Force", + }); + internal_static_google_cloud_retail_v2_PurgeProductsResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_retail_v2_PurgeProductsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2_PurgeProductsResponse_descriptor, + new java.lang.String[] { + "PurgeCount", "PurgeSample", + }); + internal_static_google_cloud_retail_v2_PurgeUserEventsRequest_descriptor = + getDescriptor().getMessageTypes().get(4); internal_static_google_cloud_retail_v2_PurgeUserEventsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_retail_v2_PurgeUserEventsRequest_descriptor, @@ -85,7 +133,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Filter", "Force", }); internal_static_google_cloud_retail_v2_PurgeUserEventsResponse_descriptor = - getDescriptor().getMessageTypes().get(2); + getDescriptor().getMessageTypes().get(5); internal_static_google_cloud_retail_v2_PurgeUserEventsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_retail_v2_PurgeUserEventsResponse_descriptor, @@ -100,6 +148,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { descriptor, registry); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PurgeProductsMetadata.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PurgeProductsMetadata.java new file mode 100644 index 000000000000..565e386e1ce6 --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PurgeProductsMetadata.java @@ -0,0 +1,1181 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/retail/v2/purge_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.retail.v2; + +/** + * + * + *
+ * Metadata related to the progress of the PurgeProducts operation.
+ * This will be returned by the google.longrunning.Operation.metadata field.
+ * 
+ * + * Protobuf type {@code google.cloud.retail.v2.PurgeProductsMetadata} + */ +public final class PurgeProductsMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2.PurgeProductsMetadata) + PurgeProductsMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use PurgeProductsMetadata.newBuilder() to construct. + private PurgeProductsMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PurgeProductsMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PurgeProductsMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2.PurgeConfigProto + .internal_static_google_cloud_retail_v2_PurgeProductsMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2.PurgeConfigProto + .internal_static_google_cloud_retail_v2_PurgeProductsMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2.PurgeProductsMetadata.class, + com.google.cloud.retail.v2.PurgeProductsMetadata.Builder.class); + } + + private int bitField0_; + public static final int CREATE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Operation last update time. If the operation is done, this is also the
+   * finish time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 2; + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Operation last update time. If the operation is done, this is also the
+   * finish time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 2; + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * Operation last update time. If the operation is done, this is also the
+   * finish time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int SUCCESS_COUNT_FIELD_NUMBER = 3; + private long successCount_ = 0L; + /** + * + * + *
+   * Count of entries that were deleted successfully.
+   * 
+ * + * int64 success_count = 3; + * + * @return The successCount. + */ + @java.lang.Override + public long getSuccessCount() { + return successCount_; + } + + public static final int FAILURE_COUNT_FIELD_NUMBER = 4; + private long failureCount_ = 0L; + /** + * + * + *
+   * Count of entries that encountered errors while processing.
+   * 
+ * + * int64 failure_count = 4; + * + * @return The failureCount. + */ + @java.lang.Override + public long getFailureCount() { + return failureCount_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateTime()); + } + if (successCount_ != 0L) { + output.writeInt64(3, successCount_); + } + if (failureCount_ != 0L) { + output.writeInt64(4, failureCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateTime()); + } + if (successCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, successCount_); + } + if (failureCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, failureCount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.retail.v2.PurgeProductsMetadata)) { + return super.equals(obj); + } + com.google.cloud.retail.v2.PurgeProductsMetadata other = + (com.google.cloud.retail.v2.PurgeProductsMetadata) obj; + + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (getSuccessCount() != other.getSuccessCount()) return false; + if (getFailureCount() != other.getFailureCount()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + SUCCESS_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSuccessCount()); + hash = (37 * hash) + FAILURE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailureCount()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2.PurgeProductsMetadata parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.PurgeProductsMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2.PurgeProductsMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.PurgeProductsMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2.PurgeProductsMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.PurgeProductsMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2.PurgeProductsMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.PurgeProductsMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2.PurgeProductsMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.PurgeProductsMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2.PurgeProductsMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.PurgeProductsMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.retail.v2.PurgeProductsMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Metadata related to the progress of the PurgeProducts operation.
+   * This will be returned by the google.longrunning.Operation.metadata field.
+   * 
+ * + * Protobuf type {@code google.cloud.retail.v2.PurgeProductsMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2.PurgeProductsMetadata) + com.google.cloud.retail.v2.PurgeProductsMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2.PurgeConfigProto + .internal_static_google_cloud_retail_v2_PurgeProductsMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2.PurgeConfigProto + .internal_static_google_cloud_retail_v2_PurgeProductsMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2.PurgeProductsMetadata.class, + com.google.cloud.retail.v2.PurgeProductsMetadata.Builder.class); + } + + // Construct using com.google.cloud.retail.v2.PurgeProductsMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + successCount_ = 0L; + failureCount_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2.PurgeConfigProto + .internal_static_google_cloud_retail_v2_PurgeProductsMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2.PurgeProductsMetadata getDefaultInstanceForType() { + return com.google.cloud.retail.v2.PurgeProductsMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2.PurgeProductsMetadata build() { + com.google.cloud.retail.v2.PurgeProductsMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2.PurgeProductsMetadata buildPartial() { + com.google.cloud.retail.v2.PurgeProductsMetadata result = + new com.google.cloud.retail.v2.PurgeProductsMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.retail.v2.PurgeProductsMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.successCount_ = successCount_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.failureCount_ = failureCount_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.retail.v2.PurgeProductsMetadata) { + return mergeFrom((com.google.cloud.retail.v2.PurgeProductsMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.retail.v2.PurgeProductsMetadata other) { + if (other == com.google.cloud.retail.v2.PurgeProductsMetadata.getDefaultInstance()) + return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.getSuccessCount() != 0L) { + setSuccessCount(other.getSuccessCount()); + } + if (other.getFailureCount() != 0L) { + setFailureCount(other.getFailureCount()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + successCount_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + failureCount_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000001); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private long successCount_; + /** + * + * + *
+     * Count of entries that were deleted successfully.
+     * 
+ * + * int64 success_count = 3; + * + * @return The successCount. + */ + @java.lang.Override + public long getSuccessCount() { + return successCount_; + } + /** + * + * + *
+     * Count of entries that were deleted successfully.
+     * 
+ * + * int64 success_count = 3; + * + * @param value The successCount to set. + * @return This builder for chaining. + */ + public Builder setSuccessCount(long value) { + + successCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Count of entries that were deleted successfully.
+     * 
+ * + * int64 success_count = 3; + * + * @return This builder for chaining. + */ + public Builder clearSuccessCount() { + bitField0_ = (bitField0_ & ~0x00000004); + successCount_ = 0L; + onChanged(); + return this; + } + + private long failureCount_; + /** + * + * + *
+     * Count of entries that encountered errors while processing.
+     * 
+ * + * int64 failure_count = 4; + * + * @return The failureCount. + */ + @java.lang.Override + public long getFailureCount() { + return failureCount_; + } + /** + * + * + *
+     * Count of entries that encountered errors while processing.
+     * 
+ * + * int64 failure_count = 4; + * + * @param value The failureCount to set. + * @return This builder for chaining. + */ + public Builder setFailureCount(long value) { + + failureCount_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Count of entries that encountered errors while processing.
+     * 
+ * + * int64 failure_count = 4; + * + * @return This builder for chaining. + */ + public Builder clearFailureCount() { + bitField0_ = (bitField0_ & ~0x00000008); + failureCount_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2.PurgeProductsMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2.PurgeProductsMetadata) + private static final com.google.cloud.retail.v2.PurgeProductsMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.retail.v2.PurgeProductsMetadata(); + } + + public static com.google.cloud.retail.v2.PurgeProductsMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PurgeProductsMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2.PurgeProductsMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PurgeProductsMetadataOrBuilder.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PurgeProductsMetadataOrBuilder.java new file mode 100644 index 000000000000..e80ff891bbc7 --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PurgeProductsMetadataOrBuilder.java @@ -0,0 +1,125 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/retail/v2/purge_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.retail.v2; + +public interface PurgeProductsMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2.PurgeProductsMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Operation last update time. If the operation is done, this is also the
+   * finish time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 2; + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Operation last update time. If the operation is done, this is also the
+   * finish time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 2; + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Operation last update time. If the operation is done, this is also the
+   * finish time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Count of entries that were deleted successfully.
+   * 
+ * + * int64 success_count = 3; + * + * @return The successCount. + */ + long getSuccessCount(); + + /** + * + * + *
+   * Count of entries that encountered errors while processing.
+   * 
+ * + * int64 failure_count = 4; + * + * @return The failureCount. + */ + long getFailureCount(); +} diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PurgeProductsRequest.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PurgeProductsRequest.java new file mode 100644 index 000000000000..8f9c62a7506d --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PurgeProductsRequest.java @@ -0,0 +1,1202 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/retail/v2/purge_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.retail.v2; + +/** + * + * + *
+ * Request message for PurgeProducts method.
+ * 
+ * + * Protobuf type {@code google.cloud.retail.v2.PurgeProductsRequest} + */ +public final class PurgeProductsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2.PurgeProductsRequest) + PurgeProductsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use PurgeProductsRequest.newBuilder() to construct. + private PurgeProductsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PurgeProductsRequest() { + parent_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PurgeProductsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2.PurgeConfigProto + .internal_static_google_cloud_retail_v2_PurgeProductsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2.PurgeConfigProto + .internal_static_google_cloud_retail_v2_PurgeProductsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2.PurgeProductsRequest.class, + com.google.cloud.retail.v2.PurgeProductsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The resource name of the branch under which the products are
+   * created. The format is
+   * `projects/${projectId}/locations/global/catalogs/${catalogId}/branches/${branchId}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the branch under which the products are
+   * created. The format is
+   * `projects/${projectId}/locations/global/catalogs/${catalogId}/branches/${branchId}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
+   * Required. The filter string to specify the products to be deleted with a
+   * length limit of 5,000 characters.
+   *
+   * Empty string filter is not allowed. "*" implies delete all items in a
+   * branch.
+   *
+   * The eligible fields for filtering are:
+   *
+   * * `availability`: Double quoted
+   * [Product.availability][google.cloud.retail.v2.Product.availability] string.
+   * * `create_time` : in ISO 8601 "zulu" format.
+   *
+   * Supported syntax:
+   *
+   * * Comparators (">", "<", ">=", "<=", "=").
+   *   Examples:
+   *   * create_time <= "2015-02-13T17:05:46Z"
+   *   * availability = "IN_STOCK"
+   *
+   * * Conjunctions ("AND")
+   *   Examples:
+   *   * create_time <= "2015-02-13T17:05:46Z" AND availability = "PREORDER"
+   *
+   * * Disjunctions ("OR")
+   *   Examples:
+   *   * create_time <= "2015-02-13T17:05:46Z" OR availability = "IN_STOCK"
+   *
+   * * Can support nested queries.
+   *   Examples:
+   *   * (create_time <= "2015-02-13T17:05:46Z" AND availability = "PREORDER")
+   *   OR (create_time >= "2015-02-14T13:03:32Z" AND availability = "IN_STOCK")
+   *
+   * * Filter Limits:
+   *   * Filter should not contain more than 6 conditions.
+   *   * Max nesting depth should not exceed 2 levels.
+   *
+   * Examples queries:
+   * * Delete back order products created before a timestamp.
+   *   create_time <= "2015-02-13T17:05:46Z" OR availability = "BACKORDER"
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The filter string to specify the products to be deleted with a
+   * length limit of 5,000 characters.
+   *
+   * Empty string filter is not allowed. "*" implies delete all items in a
+   * branch.
+   *
+   * The eligible fields for filtering are:
+   *
+   * * `availability`: Double quoted
+   * [Product.availability][google.cloud.retail.v2.Product.availability] string.
+   * * `create_time` : in ISO 8601 "zulu" format.
+   *
+   * Supported syntax:
+   *
+   * * Comparators (">", "<", ">=", "<=", "=").
+   *   Examples:
+   *   * create_time <= "2015-02-13T17:05:46Z"
+   *   * availability = "IN_STOCK"
+   *
+   * * Conjunctions ("AND")
+   *   Examples:
+   *   * create_time <= "2015-02-13T17:05:46Z" AND availability = "PREORDER"
+   *
+   * * Disjunctions ("OR")
+   *   Examples:
+   *   * create_time <= "2015-02-13T17:05:46Z" OR availability = "IN_STOCK"
+   *
+   * * Can support nested queries.
+   *   Examples:
+   *   * (create_time <= "2015-02-13T17:05:46Z" AND availability = "PREORDER")
+   *   OR (create_time >= "2015-02-14T13:03:32Z" AND availability = "IN_STOCK")
+   *
+   * * Filter Limits:
+   *   * Filter should not contain more than 6 conditions.
+   *   * Max nesting depth should not exceed 2 levels.
+   *
+   * Examples queries:
+   * * Delete back order products created before a timestamp.
+   *   create_time <= "2015-02-13T17:05:46Z" OR availability = "BACKORDER"
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FORCE_FIELD_NUMBER = 3; + private boolean force_ = false; + /** + * + * + *
+   * Actually perform the purge.
+   * If `force` is set to false, the method will return the expected purge count
+   * without deleting any products.
+   * 
+ * + * bool force = 3; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); + } + if (force_ != false) { + output.writeBool(3, force_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); + } + if (force_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, force_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.retail.v2.PurgeProductsRequest)) { + return super.equals(obj); + } + com.google.cloud.retail.v2.PurgeProductsRequest other = + (com.google.cloud.retail.v2.PurgeProductsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (getForce() != other.getForce()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + FORCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2.PurgeProductsRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.PurgeProductsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2.PurgeProductsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.PurgeProductsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2.PurgeProductsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.PurgeProductsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2.PurgeProductsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.PurgeProductsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2.PurgeProductsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.PurgeProductsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2.PurgeProductsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.PurgeProductsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.retail.v2.PurgeProductsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for PurgeProducts method.
+   * 
+ * + * Protobuf type {@code google.cloud.retail.v2.PurgeProductsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2.PurgeProductsRequest) + com.google.cloud.retail.v2.PurgeProductsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2.PurgeConfigProto + .internal_static_google_cloud_retail_v2_PurgeProductsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2.PurgeConfigProto + .internal_static_google_cloud_retail_v2_PurgeProductsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2.PurgeProductsRequest.class, + com.google.cloud.retail.v2.PurgeProductsRequest.Builder.class); + } + + // Construct using com.google.cloud.retail.v2.PurgeProductsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + filter_ = ""; + force_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2.PurgeConfigProto + .internal_static_google_cloud_retail_v2_PurgeProductsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2.PurgeProductsRequest getDefaultInstanceForType() { + return com.google.cloud.retail.v2.PurgeProductsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2.PurgeProductsRequest build() { + com.google.cloud.retail.v2.PurgeProductsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2.PurgeProductsRequest buildPartial() { + com.google.cloud.retail.v2.PurgeProductsRequest result = + new com.google.cloud.retail.v2.PurgeProductsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.retail.v2.PurgeProductsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.force_ = force_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.retail.v2.PurgeProductsRequest) { + return mergeFrom((com.google.cloud.retail.v2.PurgeProductsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.retail.v2.PurgeProductsRequest other) { + if (other == com.google.cloud.retail.v2.PurgeProductsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getForce() != false) { + setForce(other.getForce()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + force_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the branch under which the products are
+     * created. The format is
+     * `projects/${projectId}/locations/global/catalogs/${catalogId}/branches/${branchId}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the branch under which the products are
+     * created. The format is
+     * `projects/${projectId}/locations/global/catalogs/${catalogId}/branches/${branchId}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the branch under which the products are
+     * created. The format is
+     * `projects/${projectId}/locations/global/catalogs/${catalogId}/branches/${branchId}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the branch under which the products are
+     * created. The format is
+     * `projects/${projectId}/locations/global/catalogs/${catalogId}/branches/${branchId}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the branch under which the products are
+     * created. The format is
+     * `projects/${projectId}/locations/global/catalogs/${catalogId}/branches/${branchId}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * Required. The filter string to specify the products to be deleted with a
+     * length limit of 5,000 characters.
+     *
+     * Empty string filter is not allowed. "*" implies delete all items in a
+     * branch.
+     *
+     * The eligible fields for filtering are:
+     *
+     * * `availability`: Double quoted
+     * [Product.availability][google.cloud.retail.v2.Product.availability] string.
+     * * `create_time` : in ISO 8601 "zulu" format.
+     *
+     * Supported syntax:
+     *
+     * * Comparators (">", "<", ">=", "<=", "=").
+     *   Examples:
+     *   * create_time <= "2015-02-13T17:05:46Z"
+     *   * availability = "IN_STOCK"
+     *
+     * * Conjunctions ("AND")
+     *   Examples:
+     *   * create_time <= "2015-02-13T17:05:46Z" AND availability = "PREORDER"
+     *
+     * * Disjunctions ("OR")
+     *   Examples:
+     *   * create_time <= "2015-02-13T17:05:46Z" OR availability = "IN_STOCK"
+     *
+     * * Can support nested queries.
+     *   Examples:
+     *   * (create_time <= "2015-02-13T17:05:46Z" AND availability = "PREORDER")
+     *   OR (create_time >= "2015-02-14T13:03:32Z" AND availability = "IN_STOCK")
+     *
+     * * Filter Limits:
+     *   * Filter should not contain more than 6 conditions.
+     *   * Max nesting depth should not exceed 2 levels.
+     *
+     * Examples queries:
+     * * Delete back order products created before a timestamp.
+     *   create_time <= "2015-02-13T17:05:46Z" OR availability = "BACKORDER"
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The filter string to specify the products to be deleted with a
+     * length limit of 5,000 characters.
+     *
+     * Empty string filter is not allowed. "*" implies delete all items in a
+     * branch.
+     *
+     * The eligible fields for filtering are:
+     *
+     * * `availability`: Double quoted
+     * [Product.availability][google.cloud.retail.v2.Product.availability] string.
+     * * `create_time` : in ISO 8601 "zulu" format.
+     *
+     * Supported syntax:
+     *
+     * * Comparators (">", "<", ">=", "<=", "=").
+     *   Examples:
+     *   * create_time <= "2015-02-13T17:05:46Z"
+     *   * availability = "IN_STOCK"
+     *
+     * * Conjunctions ("AND")
+     *   Examples:
+     *   * create_time <= "2015-02-13T17:05:46Z" AND availability = "PREORDER"
+     *
+     * * Disjunctions ("OR")
+     *   Examples:
+     *   * create_time <= "2015-02-13T17:05:46Z" OR availability = "IN_STOCK"
+     *
+     * * Can support nested queries.
+     *   Examples:
+     *   * (create_time <= "2015-02-13T17:05:46Z" AND availability = "PREORDER")
+     *   OR (create_time >= "2015-02-14T13:03:32Z" AND availability = "IN_STOCK")
+     *
+     * * Filter Limits:
+     *   * Filter should not contain more than 6 conditions.
+     *   * Max nesting depth should not exceed 2 levels.
+     *
+     * Examples queries:
+     * * Delete back order products created before a timestamp.
+     *   create_time <= "2015-02-13T17:05:46Z" OR availability = "BACKORDER"
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The filter string to specify the products to be deleted with a
+     * length limit of 5,000 characters.
+     *
+     * Empty string filter is not allowed. "*" implies delete all items in a
+     * branch.
+     *
+     * The eligible fields for filtering are:
+     *
+     * * `availability`: Double quoted
+     * [Product.availability][google.cloud.retail.v2.Product.availability] string.
+     * * `create_time` : in ISO 8601 "zulu" format.
+     *
+     * Supported syntax:
+     *
+     * * Comparators (">", "<", ">=", "<=", "=").
+     *   Examples:
+     *   * create_time <= "2015-02-13T17:05:46Z"
+     *   * availability = "IN_STOCK"
+     *
+     * * Conjunctions ("AND")
+     *   Examples:
+     *   * create_time <= "2015-02-13T17:05:46Z" AND availability = "PREORDER"
+     *
+     * * Disjunctions ("OR")
+     *   Examples:
+     *   * create_time <= "2015-02-13T17:05:46Z" OR availability = "IN_STOCK"
+     *
+     * * Can support nested queries.
+     *   Examples:
+     *   * (create_time <= "2015-02-13T17:05:46Z" AND availability = "PREORDER")
+     *   OR (create_time >= "2015-02-14T13:03:32Z" AND availability = "IN_STOCK")
+     *
+     * * Filter Limits:
+     *   * Filter should not contain more than 6 conditions.
+     *   * Max nesting depth should not exceed 2 levels.
+     *
+     * Examples queries:
+     * * Delete back order products created before a timestamp.
+     *   create_time <= "2015-02-13T17:05:46Z" OR availability = "BACKORDER"
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The filter string to specify the products to be deleted with a
+     * length limit of 5,000 characters.
+     *
+     * Empty string filter is not allowed. "*" implies delete all items in a
+     * branch.
+     *
+     * The eligible fields for filtering are:
+     *
+     * * `availability`: Double quoted
+     * [Product.availability][google.cloud.retail.v2.Product.availability] string.
+     * * `create_time` : in ISO 8601 "zulu" format.
+     *
+     * Supported syntax:
+     *
+     * * Comparators (">", "<", ">=", "<=", "=").
+     *   Examples:
+     *   * create_time <= "2015-02-13T17:05:46Z"
+     *   * availability = "IN_STOCK"
+     *
+     * * Conjunctions ("AND")
+     *   Examples:
+     *   * create_time <= "2015-02-13T17:05:46Z" AND availability = "PREORDER"
+     *
+     * * Disjunctions ("OR")
+     *   Examples:
+     *   * create_time <= "2015-02-13T17:05:46Z" OR availability = "IN_STOCK"
+     *
+     * * Can support nested queries.
+     *   Examples:
+     *   * (create_time <= "2015-02-13T17:05:46Z" AND availability = "PREORDER")
+     *   OR (create_time >= "2015-02-14T13:03:32Z" AND availability = "IN_STOCK")
+     *
+     * * Filter Limits:
+     *   * Filter should not contain more than 6 conditions.
+     *   * Max nesting depth should not exceed 2 levels.
+     *
+     * Examples queries:
+     * * Delete back order products created before a timestamp.
+     *   create_time <= "2015-02-13T17:05:46Z" OR availability = "BACKORDER"
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The filter string to specify the products to be deleted with a
+     * length limit of 5,000 characters.
+     *
+     * Empty string filter is not allowed. "*" implies delete all items in a
+     * branch.
+     *
+     * The eligible fields for filtering are:
+     *
+     * * `availability`: Double quoted
+     * [Product.availability][google.cloud.retail.v2.Product.availability] string.
+     * * `create_time` : in ISO 8601 "zulu" format.
+     *
+     * Supported syntax:
+     *
+     * * Comparators (">", "<", ">=", "<=", "=").
+     *   Examples:
+     *   * create_time <= "2015-02-13T17:05:46Z"
+     *   * availability = "IN_STOCK"
+     *
+     * * Conjunctions ("AND")
+     *   Examples:
+     *   * create_time <= "2015-02-13T17:05:46Z" AND availability = "PREORDER"
+     *
+     * * Disjunctions ("OR")
+     *   Examples:
+     *   * create_time <= "2015-02-13T17:05:46Z" OR availability = "IN_STOCK"
+     *
+     * * Can support nested queries.
+     *   Examples:
+     *   * (create_time <= "2015-02-13T17:05:46Z" AND availability = "PREORDER")
+     *   OR (create_time >= "2015-02-14T13:03:32Z" AND availability = "IN_STOCK")
+     *
+     * * Filter Limits:
+     *   * Filter should not contain more than 6 conditions.
+     *   * Max nesting depth should not exceed 2 levels.
+     *
+     * Examples queries:
+     * * Delete back order products created before a timestamp.
+     *   create_time <= "2015-02-13T17:05:46Z" OR availability = "BACKORDER"
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean force_; + /** + * + * + *
+     * Actually perform the purge.
+     * If `force` is set to false, the method will return the expected purge count
+     * without deleting any products.
+     * 
+ * + * bool force = 3; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + /** + * + * + *
+     * Actually perform the purge.
+     * If `force` is set to false, the method will return the expected purge count
+     * without deleting any products.
+     * 
+ * + * bool force = 3; + * + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Actually perform the purge.
+     * If `force` is set to false, the method will return the expected purge count
+     * without deleting any products.
+     * 
+ * + * bool force = 3; + * + * @return This builder for chaining. + */ + public Builder clearForce() { + bitField0_ = (bitField0_ & ~0x00000004); + force_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2.PurgeProductsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2.PurgeProductsRequest) + private static final com.google.cloud.retail.v2.PurgeProductsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.retail.v2.PurgeProductsRequest(); + } + + public static com.google.cloud.retail.v2.PurgeProductsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PurgeProductsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2.PurgeProductsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PurgeProductsRequestOrBuilder.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PurgeProductsRequestOrBuilder.java new file mode 100644 index 000000000000..6d8601968804 --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PurgeProductsRequestOrBuilder.java @@ -0,0 +1,175 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/retail/v2/purge_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.retail.v2; + +public interface PurgeProductsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2.PurgeProductsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the branch under which the products are
+   * created. The format is
+   * `projects/${projectId}/locations/global/catalogs/${catalogId}/branches/${branchId}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The resource name of the branch under which the products are
+   * created. The format is
+   * `projects/${projectId}/locations/global/catalogs/${catalogId}/branches/${branchId}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The filter string to specify the products to be deleted with a
+   * length limit of 5,000 characters.
+   *
+   * Empty string filter is not allowed. "*" implies delete all items in a
+   * branch.
+   *
+   * The eligible fields for filtering are:
+   *
+   * * `availability`: Double quoted
+   * [Product.availability][google.cloud.retail.v2.Product.availability] string.
+   * * `create_time` : in ISO 8601 "zulu" format.
+   *
+   * Supported syntax:
+   *
+   * * Comparators (">", "<", ">=", "<=", "=").
+   *   Examples:
+   *   * create_time <= "2015-02-13T17:05:46Z"
+   *   * availability = "IN_STOCK"
+   *
+   * * Conjunctions ("AND")
+   *   Examples:
+   *   * create_time <= "2015-02-13T17:05:46Z" AND availability = "PREORDER"
+   *
+   * * Disjunctions ("OR")
+   *   Examples:
+   *   * create_time <= "2015-02-13T17:05:46Z" OR availability = "IN_STOCK"
+   *
+   * * Can support nested queries.
+   *   Examples:
+   *   * (create_time <= "2015-02-13T17:05:46Z" AND availability = "PREORDER")
+   *   OR (create_time >= "2015-02-14T13:03:32Z" AND availability = "IN_STOCK")
+   *
+   * * Filter Limits:
+   *   * Filter should not contain more than 6 conditions.
+   *   * Max nesting depth should not exceed 2 levels.
+   *
+   * Examples queries:
+   * * Delete back order products created before a timestamp.
+   *   create_time <= "2015-02-13T17:05:46Z" OR availability = "BACKORDER"
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Required. The filter string to specify the products to be deleted with a
+   * length limit of 5,000 characters.
+   *
+   * Empty string filter is not allowed. "*" implies delete all items in a
+   * branch.
+   *
+   * The eligible fields for filtering are:
+   *
+   * * `availability`: Double quoted
+   * [Product.availability][google.cloud.retail.v2.Product.availability] string.
+   * * `create_time` : in ISO 8601 "zulu" format.
+   *
+   * Supported syntax:
+   *
+   * * Comparators (">", "<", ">=", "<=", "=").
+   *   Examples:
+   *   * create_time <= "2015-02-13T17:05:46Z"
+   *   * availability = "IN_STOCK"
+   *
+   * * Conjunctions ("AND")
+   *   Examples:
+   *   * create_time <= "2015-02-13T17:05:46Z" AND availability = "PREORDER"
+   *
+   * * Disjunctions ("OR")
+   *   Examples:
+   *   * create_time <= "2015-02-13T17:05:46Z" OR availability = "IN_STOCK"
+   *
+   * * Can support nested queries.
+   *   Examples:
+   *   * (create_time <= "2015-02-13T17:05:46Z" AND availability = "PREORDER")
+   *   OR (create_time >= "2015-02-14T13:03:32Z" AND availability = "IN_STOCK")
+   *
+   * * Filter Limits:
+   *   * Filter should not contain more than 6 conditions.
+   *   * Max nesting depth should not exceed 2 levels.
+   *
+   * Examples queries:
+   * * Delete back order products created before a timestamp.
+   *   create_time <= "2015-02-13T17:05:46Z" OR availability = "BACKORDER"
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Actually perform the purge.
+   * If `force` is set to false, the method will return the expected purge count
+   * without deleting any products.
+   * 
+ * + * bool force = 3; + * + * @return The force. + */ + boolean getForce(); +} diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PurgeProductsResponse.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PurgeProductsResponse.java new file mode 100644 index 000000000000..61b55a6ce89e --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PurgeProductsResponse.java @@ -0,0 +1,843 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/retail/v2/purge_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.retail.v2; + +/** + * + * + *
+ * Response of the PurgeProductsRequest. If the long running operation is
+ * successfully done, then this message is returned by the
+ * google.longrunning.Operations.response field.
+ * 
+ * + * Protobuf type {@code google.cloud.retail.v2.PurgeProductsResponse} + */ +public final class PurgeProductsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2.PurgeProductsResponse) + PurgeProductsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use PurgeProductsResponse.newBuilder() to construct. + private PurgeProductsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PurgeProductsResponse() { + purgeSample_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PurgeProductsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2.PurgeConfigProto + .internal_static_google_cloud_retail_v2_PurgeProductsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2.PurgeConfigProto + .internal_static_google_cloud_retail_v2_PurgeProductsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2.PurgeProductsResponse.class, + com.google.cloud.retail.v2.PurgeProductsResponse.Builder.class); + } + + public static final int PURGE_COUNT_FIELD_NUMBER = 1; + private long purgeCount_ = 0L; + /** + * + * + *
+   * The total count of products purged as a result of the operation.
+   * 
+ * + * int64 purge_count = 1; + * + * @return The purgeCount. + */ + @java.lang.Override + public long getPurgeCount() { + return purgeCount_; + } + + public static final int PURGE_SAMPLE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList purgeSample_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * A sample of the product names that will be deleted.
+   * Only populated if `force` is set to false. A max of 100 names will be
+   * returned and the names are chosen at random.
+   * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @return A list containing the purgeSample. + */ + public com.google.protobuf.ProtocolStringList getPurgeSampleList() { + return purgeSample_; + } + /** + * + * + *
+   * A sample of the product names that will be deleted.
+   * Only populated if `force` is set to false. A max of 100 names will be
+   * returned and the names are chosen at random.
+   * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @return The count of purgeSample. + */ + public int getPurgeSampleCount() { + return purgeSample_.size(); + } + /** + * + * + *
+   * A sample of the product names that will be deleted.
+   * Only populated if `force` is set to false. A max of 100 names will be
+   * returned and the names are chosen at random.
+   * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the element to return. + * @return The purgeSample at the given index. + */ + public java.lang.String getPurgeSample(int index) { + return purgeSample_.get(index); + } + /** + * + * + *
+   * A sample of the product names that will be deleted.
+   * Only populated if `force` is set to false. A max of 100 names will be
+   * returned and the names are chosen at random.
+   * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the value to return. + * @return The bytes of the purgeSample at the given index. + */ + public com.google.protobuf.ByteString getPurgeSampleBytes(int index) { + return purgeSample_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (purgeCount_ != 0L) { + output.writeInt64(1, purgeCount_); + } + for (int i = 0; i < purgeSample_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, purgeSample_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (purgeCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, purgeCount_); + } + { + int dataSize = 0; + for (int i = 0; i < purgeSample_.size(); i++) { + dataSize += computeStringSizeNoTag(purgeSample_.getRaw(i)); + } + size += dataSize; + size += 1 * getPurgeSampleList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.retail.v2.PurgeProductsResponse)) { + return super.equals(obj); + } + com.google.cloud.retail.v2.PurgeProductsResponse other = + (com.google.cloud.retail.v2.PurgeProductsResponse) obj; + + if (getPurgeCount() != other.getPurgeCount()) return false; + if (!getPurgeSampleList().equals(other.getPurgeSampleList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PURGE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPurgeCount()); + if (getPurgeSampleCount() > 0) { + hash = (37 * hash) + PURGE_SAMPLE_FIELD_NUMBER; + hash = (53 * hash) + getPurgeSampleList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2.PurgeProductsResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.PurgeProductsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2.PurgeProductsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.PurgeProductsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2.PurgeProductsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.PurgeProductsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2.PurgeProductsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.PurgeProductsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2.PurgeProductsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.PurgeProductsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2.PurgeProductsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.PurgeProductsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.retail.v2.PurgeProductsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response of the PurgeProductsRequest. If the long running operation is
+   * successfully done, then this message is returned by the
+   * google.longrunning.Operations.response field.
+   * 
+ * + * Protobuf type {@code google.cloud.retail.v2.PurgeProductsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2.PurgeProductsResponse) + com.google.cloud.retail.v2.PurgeProductsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2.PurgeConfigProto + .internal_static_google_cloud_retail_v2_PurgeProductsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2.PurgeConfigProto + .internal_static_google_cloud_retail_v2_PurgeProductsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2.PurgeProductsResponse.class, + com.google.cloud.retail.v2.PurgeProductsResponse.Builder.class); + } + + // Construct using com.google.cloud.retail.v2.PurgeProductsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + purgeCount_ = 0L; + purgeSample_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2.PurgeConfigProto + .internal_static_google_cloud_retail_v2_PurgeProductsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2.PurgeProductsResponse getDefaultInstanceForType() { + return com.google.cloud.retail.v2.PurgeProductsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2.PurgeProductsResponse build() { + com.google.cloud.retail.v2.PurgeProductsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2.PurgeProductsResponse buildPartial() { + com.google.cloud.retail.v2.PurgeProductsResponse result = + new com.google.cloud.retail.v2.PurgeProductsResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.retail.v2.PurgeProductsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.purgeCount_ = purgeCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + purgeSample_.makeImmutable(); + result.purgeSample_ = purgeSample_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.retail.v2.PurgeProductsResponse) { + return mergeFrom((com.google.cloud.retail.v2.PurgeProductsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.retail.v2.PurgeProductsResponse other) { + if (other == com.google.cloud.retail.v2.PurgeProductsResponse.getDefaultInstance()) + return this; + if (other.getPurgeCount() != 0L) { + setPurgeCount(other.getPurgeCount()); + } + if (!other.purgeSample_.isEmpty()) { + if (purgeSample_.isEmpty()) { + purgeSample_ = other.purgeSample_; + bitField0_ |= 0x00000002; + } else { + ensurePurgeSampleIsMutable(); + purgeSample_.addAll(other.purgeSample_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + purgeCount_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePurgeSampleIsMutable(); + purgeSample_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private long purgeCount_; + /** + * + * + *
+     * The total count of products purged as a result of the operation.
+     * 
+ * + * int64 purge_count = 1; + * + * @return The purgeCount. + */ + @java.lang.Override + public long getPurgeCount() { + return purgeCount_; + } + /** + * + * + *
+     * The total count of products purged as a result of the operation.
+     * 
+ * + * int64 purge_count = 1; + * + * @param value The purgeCount to set. + * @return This builder for chaining. + */ + public Builder setPurgeCount(long value) { + + purgeCount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The total count of products purged as a result of the operation.
+     * 
+ * + * int64 purge_count = 1; + * + * @return This builder for chaining. + */ + public Builder clearPurgeCount() { + bitField0_ = (bitField0_ & ~0x00000001); + purgeCount_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList purgeSample_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensurePurgeSampleIsMutable() { + if (!purgeSample_.isModifiable()) { + purgeSample_ = new com.google.protobuf.LazyStringArrayList(purgeSample_); + } + bitField0_ |= 0x00000002; + } + /** + * + * + *
+     * A sample of the product names that will be deleted.
+     * Only populated if `force` is set to false. A max of 100 names will be
+     * returned and the names are chosen at random.
+     * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @return A list containing the purgeSample. + */ + public com.google.protobuf.ProtocolStringList getPurgeSampleList() { + purgeSample_.makeImmutable(); + return purgeSample_; + } + /** + * + * + *
+     * A sample of the product names that will be deleted.
+     * Only populated if `force` is set to false. A max of 100 names will be
+     * returned and the names are chosen at random.
+     * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @return The count of purgeSample. + */ + public int getPurgeSampleCount() { + return purgeSample_.size(); + } + /** + * + * + *
+     * A sample of the product names that will be deleted.
+     * Only populated if `force` is set to false. A max of 100 names will be
+     * returned and the names are chosen at random.
+     * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the element to return. + * @return The purgeSample at the given index. + */ + public java.lang.String getPurgeSample(int index) { + return purgeSample_.get(index); + } + /** + * + * + *
+     * A sample of the product names that will be deleted.
+     * Only populated if `force` is set to false. A max of 100 names will be
+     * returned and the names are chosen at random.
+     * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the value to return. + * @return The bytes of the purgeSample at the given index. + */ + public com.google.protobuf.ByteString getPurgeSampleBytes(int index) { + return purgeSample_.getByteString(index); + } + /** + * + * + *
+     * A sample of the product names that will be deleted.
+     * Only populated if `force` is set to false. A max of 100 names will be
+     * returned and the names are chosen at random.
+     * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @param index The index to set the value at. + * @param value The purgeSample to set. + * @return This builder for chaining. + */ + public Builder setPurgeSample(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePurgeSampleIsMutable(); + purgeSample_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A sample of the product names that will be deleted.
+     * Only populated if `force` is set to false. A max of 100 names will be
+     * returned and the names are chosen at random.
+     * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The purgeSample to add. + * @return This builder for chaining. + */ + public Builder addPurgeSample(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePurgeSampleIsMutable(); + purgeSample_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A sample of the product names that will be deleted.
+     * Only populated if `force` is set to false. A max of 100 names will be
+     * returned and the names are chosen at random.
+     * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @param values The purgeSample to add. + * @return This builder for chaining. + */ + public Builder addAllPurgeSample(java.lang.Iterable values) { + ensurePurgeSampleIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, purgeSample_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A sample of the product names that will be deleted.
+     * Only populated if `force` is set to false. A max of 100 names will be
+     * returned and the names are chosen at random.
+     * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearPurgeSample() { + purgeSample_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * A sample of the product names that will be deleted.
+     * Only populated if `force` is set to false. A max of 100 names will be
+     * returned and the names are chosen at random.
+     * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes of the purgeSample to add. + * @return This builder for chaining. + */ + public Builder addPurgeSampleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePurgeSampleIsMutable(); + purgeSample_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2.PurgeProductsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2.PurgeProductsResponse) + private static final com.google.cloud.retail.v2.PurgeProductsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.retail.v2.PurgeProductsResponse(); + } + + public static com.google.cloud.retail.v2.PurgeProductsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PurgeProductsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2.PurgeProductsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PurgeProductsResponseOrBuilder.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PurgeProductsResponseOrBuilder.java new file mode 100644 index 000000000000..61c257e42b21 --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/PurgeProductsResponseOrBuilder.java @@ -0,0 +1,98 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/retail/v2/purge_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.retail.v2; + +public interface PurgeProductsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2.PurgeProductsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The total count of products purged as a result of the operation.
+   * 
+ * + * int64 purge_count = 1; + * + * @return The purgeCount. + */ + long getPurgeCount(); + + /** + * + * + *
+   * A sample of the product names that will be deleted.
+   * Only populated if `force` is set to false. A max of 100 names will be
+   * returned and the names are chosen at random.
+   * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @return A list containing the purgeSample. + */ + java.util.List getPurgeSampleList(); + /** + * + * + *
+   * A sample of the product names that will be deleted.
+   * Only populated if `force` is set to false. A max of 100 names will be
+   * returned and the names are chosen at random.
+   * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @return The count of purgeSample. + */ + int getPurgeSampleCount(); + /** + * + * + *
+   * A sample of the product names that will be deleted.
+   * Only populated if `force` is set to false. A max of 100 names will be
+   * returned and the names are chosen at random.
+   * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the element to return. + * @return The purgeSample at the given index. + */ + java.lang.String getPurgeSample(int index); + /** + * + * + *
+   * A sample of the product names that will be deleted.
+   * Only populated if `force` is set to false. A max of 100 names will be
+   * returned and the names are chosen at random.
+   * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the value to return. + * @return The bytes of the purgeSample at the given index. + */ + com.google.protobuf.ByteString getPurgeSampleBytes(int index); +} diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/Rule.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/Rule.java index cf72dd1c60ed..d04cb2ad4781 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/Rule.java +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/Rule.java @@ -1022,10 +1022,9 @@ public interface FilterActionOrBuilder * * * [filter][google.cloud.retail.v2.Rule.FilterAction.filter] must be set. * * Filter syntax is identical to - * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter]. See + * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter]. For * more - * details at the Retail Search - * [user guide](/retail/search/docs/filter-and-order#filter). + * information, see [Filter](/retail/docs/filter-and-order#filter). * * To filter products with product ID "product_1" or "product_2", and * color * "Red" or "Blue":<br> @@ -1047,10 +1046,9 @@ public interface FilterActionOrBuilder * * * [filter][google.cloud.retail.v2.Rule.FilterAction.filter] must be set. * * Filter syntax is identical to - * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter]. See + * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter]. For * more - * details at the Retail Search - * [user guide](/retail/search/docs/filter-and-order#filter). + * information, see [Filter](/retail/docs/filter-and-order#filter). * * To filter products with product ID "product_1" or "product_2", and * color * "Red" or "Blue":<br> @@ -1070,17 +1068,19 @@ public interface FilterActionOrBuilder * *
    * * Rule Condition:
-   *   - No
-   *   [Condition.query_terms][google.cloud.retail.v2.Condition.query_terms]
-   *   provided is a global match.
-   *   - 1 or more
-   *   [Condition.query_terms][google.cloud.retail.v2.Condition.query_terms]
-   *   provided are combined with OR operator.
+   *     - No
+   *     [Condition.query_terms][google.cloud.retail.v2.Condition.query_terms]
+   *     provided is a global match.
+   *     - 1 or more
+   *     [Condition.query_terms][google.cloud.retail.v2.Condition.query_terms]
+   *     provided are combined with OR operator.
+   *
    * * Action Input: The request query and filter that are applied to the
    * retrieved products, in addition to any filters already provided with the
    * SearchRequest. The AND operator is used to combine the query's existing
    * filters with the filter rule(s). NOTE: May result in 0 results when
    * filters conflict.
+   *
    * * Action Result: Filters the returned objects to be ONLY those that passed
    * the filter.
    * 
@@ -1134,10 +1134,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * [filter][google.cloud.retail.v2.Rule.FilterAction.filter] must be set. * * Filter syntax is identical to - * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter]. See + * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter]. For * more - * details at the Retail Search - * [user guide](/retail/search/docs/filter-and-order#filter). + * information, see [Filter](/retail/docs/filter-and-order#filter). * * To filter products with product ID "product_1" or "product_2", and * color * "Red" or "Blue":<br> @@ -1170,10 +1169,9 @@ public java.lang.String getFilter() { * * * [filter][google.cloud.retail.v2.Rule.FilterAction.filter] must be set. * * Filter syntax is identical to - * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter]. See + * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter]. For * more - * details at the Retail Search - * [user guide](/retail/search/docs/filter-and-order#filter). + * information, see [Filter](/retail/docs/filter-and-order#filter). * * To filter products with product ID "product_1" or "product_2", and * color * "Red" or "Blue":<br> @@ -1364,17 +1362,19 @@ protected Builder newBuilderForType( * *
      * * Rule Condition:
-     *   - No
-     *   [Condition.query_terms][google.cloud.retail.v2.Condition.query_terms]
-     *   provided is a global match.
-     *   - 1 or more
-     *   [Condition.query_terms][google.cloud.retail.v2.Condition.query_terms]
-     *   provided are combined with OR operator.
+     *     - No
+     *     [Condition.query_terms][google.cloud.retail.v2.Condition.query_terms]
+     *     provided is a global match.
+     *     - 1 or more
+     *     [Condition.query_terms][google.cloud.retail.v2.Condition.query_terms]
+     *     provided are combined with OR operator.
+     *
      * * Action Input: The request query and filter that are applied to the
      * retrieved products, in addition to any filters already provided with the
      * SearchRequest. The AND operator is used to combine the query's existing
      * filters with the filter rule(s). NOTE: May result in 0 results when
      * filters conflict.
+     *
      * * Action Result: Filters the returned objects to be ONLY those that passed
      * the filter.
      * 
@@ -1566,10 +1566,9 @@ public Builder mergeFrom( * * * [filter][google.cloud.retail.v2.Rule.FilterAction.filter] must be set. * * Filter syntax is identical to - * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter]. See + * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter]. For * more - * details at the Retail Search - * [user guide](/retail/search/docs/filter-and-order#filter). + * information, see [Filter](/retail/docs/filter-and-order#filter). * * To filter products with product ID "product_1" or "product_2", and * color * "Red" or "Blue":<br> @@ -1601,10 +1600,9 @@ public java.lang.String getFilter() { * * * [filter][google.cloud.retail.v2.Rule.FilterAction.filter] must be set. * * Filter syntax is identical to - * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter]. See + * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter]. For * more - * details at the Retail Search - * [user guide](/retail/search/docs/filter-and-order#filter). + * information, see [Filter](/retail/docs/filter-and-order#filter). * * To filter products with product ID "product_1" or "product_2", and * color * "Red" or "Blue":<br> @@ -1636,10 +1634,9 @@ public com.google.protobuf.ByteString getFilterBytes() { * * * [filter][google.cloud.retail.v2.Rule.FilterAction.filter] must be set. * * Filter syntax is identical to - * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter]. See + * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter]. For * more - * details at the Retail Search - * [user guide](/retail/search/docs/filter-and-order#filter). + * information, see [Filter](/retail/docs/filter-and-order#filter). * * To filter products with product ID "product_1" or "product_2", and * color * "Red" or "Blue":<br> @@ -1670,10 +1667,9 @@ public Builder setFilter(java.lang.String value) { * * * [filter][google.cloud.retail.v2.Rule.FilterAction.filter] must be set. * * Filter syntax is identical to - * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter]. See + * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter]. For * more - * details at the Retail Search - * [user guide](/retail/search/docs/filter-and-order#filter). + * information, see [Filter](/retail/docs/filter-and-order#filter). * * To filter products with product ID "product_1" or "product_2", and * color * "Red" or "Blue":<br> @@ -1700,10 +1696,9 @@ public Builder clearFilter() { * * * [filter][google.cloud.retail.v2.Rule.FilterAction.filter] must be set. * * Filter syntax is identical to - * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter]. See + * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter]. For * more - * details at the Retail Search - * [user guide](/retail/search/docs/filter-and-order#filter). + * information, see [Filter](/retail/docs/filter-and-order#filter). * * To filter products with product ID "product_1" or "product_2", and * color * "Red" or "Blue":<br> @@ -1829,7 +1824,7 @@ public interface RedirectActionOrBuilder * Redirects a shopper to a specific page. * * * Rule Condition: - * - Must specify + * Must specify * [Condition.query_terms][google.cloud.retail.v2.Condition.query_terms]. * * Action Input: Request Query * * Action Result: Redirects shopper to provided uri. @@ -2090,7 +2085,7 @@ protected Builder newBuilderForType( * Redirects a shopper to a specific page. * * * Rule Condition: - * - Must specify + * Must specify * [Condition.query_terms][google.cloud.retail.v2.Condition.query_terms]. * * Action Input: Request Query * * Action Result: Redirects shopper to provided uri. @@ -8214,211 +8209,3055 @@ public com.google.cloud.retail.v2.Rule.IgnoreAction getDefaultInstanceForType() } } - private int bitField0_; - private int actionCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object action_; - - public enum ActionCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - BOOST_ACTION(2), - REDIRECT_ACTION(3), - ONEWAY_SYNONYMS_ACTION(6), - DO_NOT_ASSOCIATE_ACTION(7), - REPLACEMENT_ACTION(8), - IGNORE_ACTION(9), - FILTER_ACTION(10), - TWOWAY_SYNONYMS_ACTION(11), - ACTION_NOT_SET(0); - private final int value; + public interface ForceReturnFacetActionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2.Rule.ForceReturnFacetAction) + com.google.protobuf.MessageOrBuilder { - private ActionCase(int value) { - this.value = value; - } /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. + * + * + *
+     * Each instance corresponds to a force return attribute for the given
+     * condition. There can't be more 3 instances here.
+     * 
+ * + * + * repeated .google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * */ - @java.lang.Deprecated - public static ActionCase valueOf(int value) { - return forNumber(value); - } - - public static ActionCase forNumber(int value) { - switch (value) { - case 2: - return BOOST_ACTION; - case 3: - return REDIRECT_ACTION; - case 6: - return ONEWAY_SYNONYMS_ACTION; - case 7: - return DO_NOT_ASSOCIATE_ACTION; - case 8: - return REPLACEMENT_ACTION; - case 9: - return IGNORE_ACTION; - case 10: - return FILTER_ACTION; - case 11: - return TWOWAY_SYNONYMS_ACTION; - case 0: - return ACTION_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public ActionCase getActionCase() { - return ActionCase.forNumber(actionCase_); + java.util.List + getFacetPositionAdjustmentsList(); + /** + * + * + *
+     * Each instance corresponds to a force return attribute for the given
+     * condition. There can't be more 3 instances here.
+     * 
+ * + * + * repeated .google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment + getFacetPositionAdjustments(int index); + /** + * + * + *
+     * Each instance corresponds to a force return attribute for the given
+     * condition. There can't be more 3 instances here.
+     * 
+ * + * + * repeated .google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + int getFacetPositionAdjustmentsCount(); + /** + * + * + *
+     * Each instance corresponds to a force return attribute for the given
+     * condition. There can't be more 3 instances here.
+     * 
+ * + * + * repeated .google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction + .FacetPositionAdjustmentOrBuilder> + getFacetPositionAdjustmentsOrBuilderList(); + /** + * + * + *
+     * Each instance corresponds to a force return attribute for the given
+     * condition. There can't be more 3 instances here.
+     * 
+ * + * + * repeated .google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustmentOrBuilder + getFacetPositionAdjustmentsOrBuilder(int index); } - - public static final int BOOST_ACTION_FIELD_NUMBER = 2; /** * * *
-   * A boost action.
-   * 
- * - * .google.cloud.retail.v2.Rule.BoostAction boost_action = 2; - * - * @return Whether the boostAction field is set. - */ - @java.lang.Override - public boolean hasBoostAction() { - return actionCase_ == 2; - } - /** + * Force returns an attribute/facet in the request around a certain position + * or above. * - * - *
-   * A boost action.
+   * * Rule Condition:
+   *   Must specify non-empty
+   *   [Condition.query_terms][google.cloud.retail.v2.Condition.query_terms]
+   *   (for search only) or
+   *   [Condition.page_categories][google.cloud.retail.v2.Condition.page_categories]
+   *   (for browse only), but can't specify both.
+   *
+   * * Action Inputs: attribute name, position
+   *
+   * * Action Result: Will force return a facet key around a certain position
+   * or above if the condition is satisfied.
+   *
+   * Example: Suppose the query is "shoes", the
+   * [Condition.query_terms][google.cloud.retail.v2.Condition.query_terms] is
+   * "shoes", the
+   * [ForceReturnFacetAction.FacetPositionAdjustment.attribute_name][google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment.attribute_name]
+   * is "size" and the
+   * [ForceReturnFacetAction.FacetPositionAdjustment.position][google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment.position]
+   * is 8.
+   *
+   * Two cases: a) The facet key "size" is not already in the top 8 slots, then
+   * the facet "size" will appear at a position close to 8. b) The facet key
+   * "size" in among the top 8 positions in the request, then it will stay at
+   * its current rank.
    * 
* - * .google.cloud.retail.v2.Rule.BoostAction boost_action = 2; - * - * @return The boostAction. + * Protobuf type {@code google.cloud.retail.v2.Rule.ForceReturnFacetAction} */ - @java.lang.Override - public com.google.cloud.retail.v2.Rule.BoostAction getBoostAction() { - if (actionCase_ == 2) { - return (com.google.cloud.retail.v2.Rule.BoostAction) action_; + public static final class ForceReturnFacetAction extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2.Rule.ForceReturnFacetAction) + ForceReturnFacetActionOrBuilder { + private static final long serialVersionUID = 0L; + // Use ForceReturnFacetAction.newBuilder() to construct. + private ForceReturnFacetAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); } - return com.google.cloud.retail.v2.Rule.BoostAction.getDefaultInstance(); - } - /** - * - * - *
-   * A boost action.
-   * 
- * - * .google.cloud.retail.v2.Rule.BoostAction boost_action = 2; - */ - @java.lang.Override - public com.google.cloud.retail.v2.Rule.BoostActionOrBuilder getBoostActionOrBuilder() { - if (actionCase_ == 2) { - return (com.google.cloud.retail.v2.Rule.BoostAction) action_; + + private ForceReturnFacetAction() { + facetPositionAdjustments_ = java.util.Collections.emptyList(); } - return com.google.cloud.retail.v2.Rule.BoostAction.getDefaultInstance(); - } - public static final int REDIRECT_ACTION_FIELD_NUMBER = 3; - /** - * - * - *
-   * Redirects a shopper to a specific page.
-   * 
- * - * .google.cloud.retail.v2.Rule.RedirectAction redirect_action = 3; - * - * @return Whether the redirectAction field is set. - */ - @java.lang.Override - public boolean hasRedirectAction() { - return actionCase_ == 3; - } - /** - * - * - *
-   * Redirects a shopper to a specific page.
-   * 
- * - * .google.cloud.retail.v2.Rule.RedirectAction redirect_action = 3; - * - * @return The redirectAction. - */ - @java.lang.Override - public com.google.cloud.retail.v2.Rule.RedirectAction getRedirectAction() { - if (actionCase_ == 3) { - return (com.google.cloud.retail.v2.Rule.RedirectAction) action_; + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ForceReturnFacetAction(); } - return com.google.cloud.retail.v2.Rule.RedirectAction.getDefaultInstance(); - } - /** - * - * - *
-   * Redirects a shopper to a specific page.
-   * 
- * - * .google.cloud.retail.v2.Rule.RedirectAction redirect_action = 3; - */ - @java.lang.Override - public com.google.cloud.retail.v2.Rule.RedirectActionOrBuilder getRedirectActionOrBuilder() { - if (actionCase_ == 3) { - return (com.google.cloud.retail.v2.Rule.RedirectAction) action_; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2.CommonProto + .internal_static_google_cloud_retail_v2_Rule_ForceReturnFacetAction_descriptor; } - return com.google.cloud.retail.v2.Rule.RedirectAction.getDefaultInstance(); - } - public static final int ONEWAY_SYNONYMS_ACTION_FIELD_NUMBER = 6; - /** - * - * - *
-   * Treats specific term as a synonym with a group of terms.
-   * Group of terms will not be treated as synonyms with the specific term.
-   * 
- * - * .google.cloud.retail.v2.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; - * - * @return Whether the onewaySynonymsAction field is set. - */ - @java.lang.Override - public boolean hasOnewaySynonymsAction() { - return actionCase_ == 6; - } - /** - * - * - *
-   * Treats specific term as a synonym with a group of terms.
-   * Group of terms will not be treated as synonyms with the specific term.
-   * 
- * - * .google.cloud.retail.v2.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; - * - * @return The onewaySynonymsAction. - */ - @java.lang.Override - public com.google.cloud.retail.v2.Rule.OnewaySynonymsAction getOnewaySynonymsAction() { - if (actionCase_ == 6) { - return (com.google.cloud.retail.v2.Rule.OnewaySynonymsAction) action_; + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2.CommonProto + .internal_static_google_cloud_retail_v2_Rule_ForceReturnFacetAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.class, + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.Builder.class); } - return com.google.cloud.retail.v2.Rule.OnewaySynonymsAction.getDefaultInstance(); + + public interface FacetPositionAdjustmentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * The attribute name to force return as a facet. Each attribute name
+       * should be a valid attribute name, be non-empty and contain at most 80
+       * characters long.
+       * 
+ * + * string attribute_name = 1; + * + * @return The attributeName. + */ + java.lang.String getAttributeName(); + /** + * + * + *
+       * The attribute name to force return as a facet. Each attribute name
+       * should be a valid attribute name, be non-empty and contain at most 80
+       * characters long.
+       * 
+ * + * string attribute_name = 1; + * + * @return The bytes for attributeName. + */ + com.google.protobuf.ByteString getAttributeNameBytes(); + + /** + * + * + *
+       * This is the position in the request as explained above. It should be
+       * strictly positive be at most 100.
+       * 
+ * + * int32 position = 2; + * + * @return The position. + */ + int getPosition(); + } + /** + * + * + *
+     * Each facet position adjustment consists of a single attribute name (i.e.
+     * facet key) along with a specified position.
+     * 
+ * + * Protobuf type {@code + * google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment} + */ + public static final class FacetPositionAdjustment extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment) + FacetPositionAdjustmentOrBuilder { + private static final long serialVersionUID = 0L; + // Use FacetPositionAdjustment.newBuilder() to construct. + private FacetPositionAdjustment(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FacetPositionAdjustment() { + attributeName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FacetPositionAdjustment(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2.CommonProto + .internal_static_google_cloud_retail_v2_Rule_ForceReturnFacetAction_FacetPositionAdjustment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2.CommonProto + .internal_static_google_cloud_retail_v2_Rule_ForceReturnFacetAction_FacetPositionAdjustment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment + .class, + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment + .Builder.class); + } + + public static final int ATTRIBUTE_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object attributeName_ = ""; + /** + * + * + *
+       * The attribute name to force return as a facet. Each attribute name
+       * should be a valid attribute name, be non-empty and contain at most 80
+       * characters long.
+       * 
+ * + * string attribute_name = 1; + * + * @return The attributeName. + */ + @java.lang.Override + public java.lang.String getAttributeName() { + java.lang.Object ref = attributeName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + attributeName_ = s; + return s; + } + } + /** + * + * + *
+       * The attribute name to force return as a facet. Each attribute name
+       * should be a valid attribute name, be non-empty and contain at most 80
+       * characters long.
+       * 
+ * + * string attribute_name = 1; + * + * @return The bytes for attributeName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAttributeNameBytes() { + java.lang.Object ref = attributeName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + attributeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POSITION_FIELD_NUMBER = 2; + private int position_ = 0; + /** + * + * + *
+       * This is the position in the request as explained above. It should be
+       * strictly positive be at most 100.
+       * 
+ * + * int32 position = 2; + * + * @return The position. + */ + @java.lang.Override + public int getPosition() { + return position_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attributeName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, attributeName_); + } + if (position_ != 0) { + output.writeInt32(2, position_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attributeName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, attributeName_); + } + if (position_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, position_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment)) { + return super.equals(obj); + } + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment other = + (com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment) obj; + + if (!getAttributeName().equals(other.getAttributeName())) return false; + if (getPosition() != other.getPosition()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ATTRIBUTE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getAttributeName().hashCode(); + hash = (37 * hash) + POSITION_FIELD_NUMBER; + hash = (53 * hash) + getPosition(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+       * Each facet position adjustment consists of a single attribute name (i.e.
+       * facet key) along with a specified position.
+       * 
+ * + * Protobuf type {@code + * google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment) + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustmentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2.CommonProto + .internal_static_google_cloud_retail_v2_Rule_ForceReturnFacetAction_FacetPositionAdjustment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2.CommonProto + .internal_static_google_cloud_retail_v2_Rule_ForceReturnFacetAction_FacetPositionAdjustment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment + .class, + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment + .Builder.class); + } + + // Construct using + // com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + attributeName_ = ""; + position_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2.CommonProto + .internal_static_google_cloud_retail_v2_Rule_ForceReturnFacetAction_FacetPositionAdjustment_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment + getDefaultInstanceForType() { + return com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment + build() { + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment + buildPartial() { + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment result = + new com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.attributeName_ = attributeName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.position_ = position_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment) { + return mergeFrom( + (com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment other) { + if (other + == com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment + .getDefaultInstance()) return this; + if (!other.getAttributeName().isEmpty()) { + attributeName_ = other.attributeName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPosition() != 0) { + setPosition(other.getPosition()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + attributeName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + position_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object attributeName_ = ""; + /** + * + * + *
+         * The attribute name to force return as a facet. Each attribute name
+         * should be a valid attribute name, be non-empty and contain at most 80
+         * characters long.
+         * 
+ * + * string attribute_name = 1; + * + * @return The attributeName. + */ + public java.lang.String getAttributeName() { + java.lang.Object ref = attributeName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + attributeName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * The attribute name to force return as a facet. Each attribute name
+         * should be a valid attribute name, be non-empty and contain at most 80
+         * characters long.
+         * 
+ * + * string attribute_name = 1; + * + * @return The bytes for attributeName. + */ + public com.google.protobuf.ByteString getAttributeNameBytes() { + java.lang.Object ref = attributeName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + attributeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * The attribute name to force return as a facet. Each attribute name
+         * should be a valid attribute name, be non-empty and contain at most 80
+         * characters long.
+         * 
+ * + * string attribute_name = 1; + * + * @param value The attributeName to set. + * @return This builder for chaining. + */ + public Builder setAttributeName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + attributeName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * The attribute name to force return as a facet. Each attribute name
+         * should be a valid attribute name, be non-empty and contain at most 80
+         * characters long.
+         * 
+ * + * string attribute_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearAttributeName() { + attributeName_ = getDefaultInstance().getAttributeName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+         * The attribute name to force return as a facet. Each attribute name
+         * should be a valid attribute name, be non-empty and contain at most 80
+         * characters long.
+         * 
+ * + * string attribute_name = 1; + * + * @param value The bytes for attributeName to set. + * @return This builder for chaining. + */ + public Builder setAttributeNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + attributeName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int position_; + /** + * + * + *
+         * This is the position in the request as explained above. It should be
+         * strictly positive be at most 100.
+         * 
+ * + * int32 position = 2; + * + * @return The position. + */ + @java.lang.Override + public int getPosition() { + return position_; + } + /** + * + * + *
+         * This is the position in the request as explained above. It should be
+         * strictly positive be at most 100.
+         * 
+ * + * int32 position = 2; + * + * @param value The position to set. + * @return This builder for chaining. + */ + public Builder setPosition(int value) { + + position_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+         * This is the position in the request as explained above. It should be
+         * strictly positive be at most 100.
+         * 
+ * + * int32 position = 2; + * + * @return This builder for chaining. + */ + public Builder clearPosition() { + bitField0_ = (bitField0_ & ~0x00000002); + position_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment) + private static final com.google.cloud.retail.v2.Rule.ForceReturnFacetAction + .FacetPositionAdjustment + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment(); + } + + public static com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FacetPositionAdjustment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int FACET_POSITION_ADJUSTMENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment> + facetPositionAdjustments_; + /** + * + * + *
+     * Each instance corresponds to a force return attribute for the given
+     * condition. There can't be more 3 instances here.
+     * 
+ * + * + * repeated .google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment> + getFacetPositionAdjustmentsList() { + return facetPositionAdjustments_; + } + /** + * + * + *
+     * Each instance corresponds to a force return attribute for the given
+     * condition. There can't be more 3 instances here.
+     * 
+ * + * + * repeated .google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction + .FacetPositionAdjustmentOrBuilder> + getFacetPositionAdjustmentsOrBuilderList() { + return facetPositionAdjustments_; + } + /** + * + * + *
+     * Each instance corresponds to a force return attribute for the given
+     * condition. There can't be more 3 instances here.
+     * 
+ * + * + * repeated .google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + @java.lang.Override + public int getFacetPositionAdjustmentsCount() { + return facetPositionAdjustments_.size(); + } + /** + * + * + *
+     * Each instance corresponds to a force return attribute for the given
+     * condition. There can't be more 3 instances here.
+     * 
+ * + * + * repeated .google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment + getFacetPositionAdjustments(int index) { + return facetPositionAdjustments_.get(index); + } + /** + * + * + *
+     * Each instance corresponds to a force return attribute for the given
+     * condition. There can't be more 3 instances here.
+     * 
+ * + * + * repeated .google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustmentOrBuilder + getFacetPositionAdjustmentsOrBuilder(int index) { + return facetPositionAdjustments_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < facetPositionAdjustments_.size(); i++) { + output.writeMessage(1, facetPositionAdjustments_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < facetPositionAdjustments_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, facetPositionAdjustments_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.retail.v2.Rule.ForceReturnFacetAction)) { + return super.equals(obj); + } + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction other = + (com.google.cloud.retail.v2.Rule.ForceReturnFacetAction) obj; + + if (!getFacetPositionAdjustmentsList().equals(other.getFacetPositionAdjustmentsList())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getFacetPositionAdjustmentsCount() > 0) { + hash = (37 * hash) + FACET_POSITION_ADJUSTMENTS_FIELD_NUMBER; + hash = (53 * hash) + getFacetPositionAdjustmentsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2.Rule.ForceReturnFacetAction parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.Rule.ForceReturnFacetAction parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2.Rule.ForceReturnFacetAction parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.Rule.ForceReturnFacetAction parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2.Rule.ForceReturnFacetAction parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.Rule.ForceReturnFacetAction parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2.Rule.ForceReturnFacetAction parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.Rule.ForceReturnFacetAction parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2.Rule.ForceReturnFacetAction parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.Rule.ForceReturnFacetAction parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2.Rule.ForceReturnFacetAction parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.Rule.ForceReturnFacetAction parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Force returns an attribute/facet in the request around a certain position
+     * or above.
+     *
+     * * Rule Condition:
+     *   Must specify non-empty
+     *   [Condition.query_terms][google.cloud.retail.v2.Condition.query_terms]
+     *   (for search only) or
+     *   [Condition.page_categories][google.cloud.retail.v2.Condition.page_categories]
+     *   (for browse only), but can't specify both.
+     *
+     * * Action Inputs: attribute name, position
+     *
+     * * Action Result: Will force return a facet key around a certain position
+     * or above if the condition is satisfied.
+     *
+     * Example: Suppose the query is "shoes", the
+     * [Condition.query_terms][google.cloud.retail.v2.Condition.query_terms] is
+     * "shoes", the
+     * [ForceReturnFacetAction.FacetPositionAdjustment.attribute_name][google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment.attribute_name]
+     * is "size" and the
+     * [ForceReturnFacetAction.FacetPositionAdjustment.position][google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment.position]
+     * is 8.
+     *
+     * Two cases: a) The facet key "size" is not already in the top 8 slots, then
+     * the facet "size" will appear at a position close to 8. b) The facet key
+     * "size" in among the top 8 positions in the request, then it will stay at
+     * its current rank.
+     * 
+ * + * Protobuf type {@code google.cloud.retail.v2.Rule.ForceReturnFacetAction} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2.Rule.ForceReturnFacetAction) + com.google.cloud.retail.v2.Rule.ForceReturnFacetActionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2.CommonProto + .internal_static_google_cloud_retail_v2_Rule_ForceReturnFacetAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2.CommonProto + .internal_static_google_cloud_retail_v2_Rule_ForceReturnFacetAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.class, + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.Builder.class); + } + + // Construct using com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (facetPositionAdjustmentsBuilder_ == null) { + facetPositionAdjustments_ = java.util.Collections.emptyList(); + } else { + facetPositionAdjustments_ = null; + facetPositionAdjustmentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2.CommonProto + .internal_static_google_cloud_retail_v2_Rule_ForceReturnFacetAction_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2.Rule.ForceReturnFacetAction getDefaultInstanceForType() { + return com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2.Rule.ForceReturnFacetAction build() { + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2.Rule.ForceReturnFacetAction buildPartial() { + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction result = + new com.google.cloud.retail.v2.Rule.ForceReturnFacetAction(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction result) { + if (facetPositionAdjustmentsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + facetPositionAdjustments_ = + java.util.Collections.unmodifiableList(facetPositionAdjustments_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.facetPositionAdjustments_ = facetPositionAdjustments_; + } else { + result.facetPositionAdjustments_ = facetPositionAdjustmentsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.retail.v2.Rule.ForceReturnFacetAction result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.retail.v2.Rule.ForceReturnFacetAction) { + return mergeFrom((com.google.cloud.retail.v2.Rule.ForceReturnFacetAction) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.retail.v2.Rule.ForceReturnFacetAction other) { + if (other == com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.getDefaultInstance()) + return this; + if (facetPositionAdjustmentsBuilder_ == null) { + if (!other.facetPositionAdjustments_.isEmpty()) { + if (facetPositionAdjustments_.isEmpty()) { + facetPositionAdjustments_ = other.facetPositionAdjustments_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFacetPositionAdjustmentsIsMutable(); + facetPositionAdjustments_.addAll(other.facetPositionAdjustments_); + } + onChanged(); + } + } else { + if (!other.facetPositionAdjustments_.isEmpty()) { + if (facetPositionAdjustmentsBuilder_.isEmpty()) { + facetPositionAdjustmentsBuilder_.dispose(); + facetPositionAdjustmentsBuilder_ = null; + facetPositionAdjustments_ = other.facetPositionAdjustments_; + bitField0_ = (bitField0_ & ~0x00000001); + facetPositionAdjustmentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFacetPositionAdjustmentsFieldBuilder() + : null; + } else { + facetPositionAdjustmentsBuilder_.addAllMessages(other.facetPositionAdjustments_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment m = + input.readMessage( + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction + .FacetPositionAdjustment.parser(), + extensionRegistry); + if (facetPositionAdjustmentsBuilder_ == null) { + ensureFacetPositionAdjustmentsIsMutable(); + facetPositionAdjustments_.add(m); + } else { + facetPositionAdjustmentsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List< + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment> + facetPositionAdjustments_ = java.util.Collections.emptyList(); + + private void ensureFacetPositionAdjustmentsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + facetPositionAdjustments_ = + new java.util.ArrayList< + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment>( + facetPositionAdjustments_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment, + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment + .Builder, + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction + .FacetPositionAdjustmentOrBuilder> + facetPositionAdjustmentsBuilder_; + + /** + * + * + *
+       * Each instance corresponds to a force return attribute for the given
+       * condition. There can't be more 3 instances here.
+       * 
+ * + * + * repeated .google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + public java.util.List< + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment> + getFacetPositionAdjustmentsList() { + if (facetPositionAdjustmentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(facetPositionAdjustments_); + } else { + return facetPositionAdjustmentsBuilder_.getMessageList(); + } + } + /** + * + * + *
+       * Each instance corresponds to a force return attribute for the given
+       * condition. There can't be more 3 instances here.
+       * 
+ * + * + * repeated .google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + public int getFacetPositionAdjustmentsCount() { + if (facetPositionAdjustmentsBuilder_ == null) { + return facetPositionAdjustments_.size(); + } else { + return facetPositionAdjustmentsBuilder_.getCount(); + } + } + /** + * + * + *
+       * Each instance corresponds to a force return attribute for the given
+       * condition. There can't be more 3 instances here.
+       * 
+ * + * + * repeated .google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + public com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment + getFacetPositionAdjustments(int index) { + if (facetPositionAdjustmentsBuilder_ == null) { + return facetPositionAdjustments_.get(index); + } else { + return facetPositionAdjustmentsBuilder_.getMessage(index); + } + } + /** + * + * + *
+       * Each instance corresponds to a force return attribute for the given
+       * condition. There can't be more 3 instances here.
+       * 
+ * + * + * repeated .google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + public Builder setFacetPositionAdjustments( + int index, + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment value) { + if (facetPositionAdjustmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFacetPositionAdjustmentsIsMutable(); + facetPositionAdjustments_.set(index, value); + onChanged(); + } else { + facetPositionAdjustmentsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Each instance corresponds to a force return attribute for the given
+       * condition. There can't be more 3 instances here.
+       * 
+ * + * + * repeated .google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + public Builder setFacetPositionAdjustments( + int index, + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment.Builder + builderForValue) { + if (facetPositionAdjustmentsBuilder_ == null) { + ensureFacetPositionAdjustmentsIsMutable(); + facetPositionAdjustments_.set(index, builderForValue.build()); + onChanged(); + } else { + facetPositionAdjustmentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Each instance corresponds to a force return attribute for the given
+       * condition. There can't be more 3 instances here.
+       * 
+ * + * + * repeated .google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + public Builder addFacetPositionAdjustments( + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment value) { + if (facetPositionAdjustmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFacetPositionAdjustmentsIsMutable(); + facetPositionAdjustments_.add(value); + onChanged(); + } else { + facetPositionAdjustmentsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+       * Each instance corresponds to a force return attribute for the given
+       * condition. There can't be more 3 instances here.
+       * 
+ * + * + * repeated .google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + public Builder addFacetPositionAdjustments( + int index, + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment value) { + if (facetPositionAdjustmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFacetPositionAdjustmentsIsMutable(); + facetPositionAdjustments_.add(index, value); + onChanged(); + } else { + facetPositionAdjustmentsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Each instance corresponds to a force return attribute for the given
+       * condition. There can't be more 3 instances here.
+       * 
+ * + * + * repeated .google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + public Builder addFacetPositionAdjustments( + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment.Builder + builderForValue) { + if (facetPositionAdjustmentsBuilder_ == null) { + ensureFacetPositionAdjustmentsIsMutable(); + facetPositionAdjustments_.add(builderForValue.build()); + onChanged(); + } else { + facetPositionAdjustmentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Each instance corresponds to a force return attribute for the given
+       * condition. There can't be more 3 instances here.
+       * 
+ * + * + * repeated .google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + public Builder addFacetPositionAdjustments( + int index, + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment.Builder + builderForValue) { + if (facetPositionAdjustmentsBuilder_ == null) { + ensureFacetPositionAdjustmentsIsMutable(); + facetPositionAdjustments_.add(index, builderForValue.build()); + onChanged(); + } else { + facetPositionAdjustmentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Each instance corresponds to a force return attribute for the given
+       * condition. There can't be more 3 instances here.
+       * 
+ * + * + * repeated .google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + public Builder addAllFacetPositionAdjustments( + java.lang.Iterable< + ? extends + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction + .FacetPositionAdjustment> + values) { + if (facetPositionAdjustmentsBuilder_ == null) { + ensureFacetPositionAdjustmentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, facetPositionAdjustments_); + onChanged(); + } else { + facetPositionAdjustmentsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+       * Each instance corresponds to a force return attribute for the given
+       * condition. There can't be more 3 instances here.
+       * 
+ * + * + * repeated .google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + public Builder clearFacetPositionAdjustments() { + if (facetPositionAdjustmentsBuilder_ == null) { + facetPositionAdjustments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + facetPositionAdjustmentsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Each instance corresponds to a force return attribute for the given
+       * condition. There can't be more 3 instances here.
+       * 
+ * + * + * repeated .google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + public Builder removeFacetPositionAdjustments(int index) { + if (facetPositionAdjustmentsBuilder_ == null) { + ensureFacetPositionAdjustmentsIsMutable(); + facetPositionAdjustments_.remove(index); + onChanged(); + } else { + facetPositionAdjustmentsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+       * Each instance corresponds to a force return attribute for the given
+       * condition. There can't be more 3 instances here.
+       * 
+ * + * + * repeated .google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + public com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment.Builder + getFacetPositionAdjustmentsBuilder(int index) { + return getFacetPositionAdjustmentsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * Each instance corresponds to a force return attribute for the given
+       * condition. There can't be more 3 instances here.
+       * 
+ * + * + * repeated .google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + public com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustmentOrBuilder + getFacetPositionAdjustmentsOrBuilder(int index) { + if (facetPositionAdjustmentsBuilder_ == null) { + return facetPositionAdjustments_.get(index); + } else { + return facetPositionAdjustmentsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+       * Each instance corresponds to a force return attribute for the given
+       * condition. There can't be more 3 instances here.
+       * 
+ * + * + * repeated .google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction + .FacetPositionAdjustmentOrBuilder> + getFacetPositionAdjustmentsOrBuilderList() { + if (facetPositionAdjustmentsBuilder_ != null) { + return facetPositionAdjustmentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(facetPositionAdjustments_); + } + } + /** + * + * + *
+       * Each instance corresponds to a force return attribute for the given
+       * condition. There can't be more 3 instances here.
+       * 
+ * + * + * repeated .google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + public com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment.Builder + addFacetPositionAdjustmentsBuilder() { + return getFacetPositionAdjustmentsFieldBuilder() + .addBuilder( + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment + .getDefaultInstance()); + } + /** + * + * + *
+       * Each instance corresponds to a force return attribute for the given
+       * condition. There can't be more 3 instances here.
+       * 
+ * + * + * repeated .google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + public com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment.Builder + addFacetPositionAdjustmentsBuilder(int index) { + return getFacetPositionAdjustmentsFieldBuilder() + .addBuilder( + index, + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment + .getDefaultInstance()); + } + /** + * + * + *
+       * Each instance corresponds to a force return attribute for the given
+       * condition. There can't be more 3 instances here.
+       * 
+ * + * + * repeated .google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + public java.util.List< + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment + .Builder> + getFacetPositionAdjustmentsBuilderList() { + return getFacetPositionAdjustmentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment, + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment + .Builder, + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction + .FacetPositionAdjustmentOrBuilder> + getFacetPositionAdjustmentsFieldBuilder() { + if (facetPositionAdjustmentsBuilder_ == null) { + facetPositionAdjustmentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment, + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment + .Builder, + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction + .FacetPositionAdjustmentOrBuilder>( + facetPositionAdjustments_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + facetPositionAdjustments_ = null; + } + return facetPositionAdjustmentsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2.Rule.ForceReturnFacetAction) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2.Rule.ForceReturnFacetAction) + private static final com.google.cloud.retail.v2.Rule.ForceReturnFacetAction DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.retail.v2.Rule.ForceReturnFacetAction(); + } + + public static com.google.cloud.retail.v2.Rule.ForceReturnFacetAction getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ForceReturnFacetAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2.Rule.ForceReturnFacetAction getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface RemoveFacetActionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2.Rule.RemoveFacetAction) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The attribute names (i.e. facet keys) to remove from the dynamic facets
+     * (if present in the request). There can't be more 3 attribute names.
+     * Each attribute name should be a valid attribute name, be non-empty and
+     * contain at most 80 characters.
+     * 
+ * + * repeated string attribute_names = 1; + * + * @return A list containing the attributeNames. + */ + java.util.List getAttributeNamesList(); + /** + * + * + *
+     * The attribute names (i.e. facet keys) to remove from the dynamic facets
+     * (if present in the request). There can't be more 3 attribute names.
+     * Each attribute name should be a valid attribute name, be non-empty and
+     * contain at most 80 characters.
+     * 
+ * + * repeated string attribute_names = 1; + * + * @return The count of attributeNames. + */ + int getAttributeNamesCount(); + /** + * + * + *
+     * The attribute names (i.e. facet keys) to remove from the dynamic facets
+     * (if present in the request). There can't be more 3 attribute names.
+     * Each attribute name should be a valid attribute name, be non-empty and
+     * contain at most 80 characters.
+     * 
+ * + * repeated string attribute_names = 1; + * + * @param index The index of the element to return. + * @return The attributeNames at the given index. + */ + java.lang.String getAttributeNames(int index); + /** + * + * + *
+     * The attribute names (i.e. facet keys) to remove from the dynamic facets
+     * (if present in the request). There can't be more 3 attribute names.
+     * Each attribute name should be a valid attribute name, be non-empty and
+     * contain at most 80 characters.
+     * 
+ * + * repeated string attribute_names = 1; + * + * @param index The index of the value to return. + * @return The bytes of the attributeNames at the given index. + */ + com.google.protobuf.ByteString getAttributeNamesBytes(int index); + } + /** + * + * + *
+   * Removes an attribute/facet in the request if is present.
+   *
+   * * Rule Condition:
+   *   Must specify non-empty
+   *   [Condition.query_terms][google.cloud.retail.v2.Condition.query_terms]
+   *   (for search only) or
+   *   [Condition.page_categories][google.cloud.retail.v2.Condition.page_categories]
+   *   (for browse only), but can't specify both.
+   *
+   * * Action Input: attribute name
+   *
+   * * Action Result: Will remove the attribute (as a facet) from the request
+   * if it is present.
+   *
+   * Example: Suppose the query is "shoes", the
+   * [Condition.query_terms][google.cloud.retail.v2.Condition.query_terms] is
+   * "shoes" and the attribute name "size", then facet key "size" will be
+   * removed from the request (if it is present).
+   * 
+ * + * Protobuf type {@code google.cloud.retail.v2.Rule.RemoveFacetAction} + */ + public static final class RemoveFacetAction extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2.Rule.RemoveFacetAction) + RemoveFacetActionOrBuilder { + private static final long serialVersionUID = 0L; + // Use RemoveFacetAction.newBuilder() to construct. + private RemoveFacetAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RemoveFacetAction() { + attributeNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RemoveFacetAction(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2.CommonProto + .internal_static_google_cloud_retail_v2_Rule_RemoveFacetAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2.CommonProto + .internal_static_google_cloud_retail_v2_Rule_RemoveFacetAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2.Rule.RemoveFacetAction.class, + com.google.cloud.retail.v2.Rule.RemoveFacetAction.Builder.class); + } + + public static final int ATTRIBUTE_NAMES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList attributeNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+     * The attribute names (i.e. facet keys) to remove from the dynamic facets
+     * (if present in the request). There can't be more 3 attribute names.
+     * Each attribute name should be a valid attribute name, be non-empty and
+     * contain at most 80 characters.
+     * 
+ * + * repeated string attribute_names = 1; + * + * @return A list containing the attributeNames. + */ + public com.google.protobuf.ProtocolStringList getAttributeNamesList() { + return attributeNames_; + } + /** + * + * + *
+     * The attribute names (i.e. facet keys) to remove from the dynamic facets
+     * (if present in the request). There can't be more 3 attribute names.
+     * Each attribute name should be a valid attribute name, be non-empty and
+     * contain at most 80 characters.
+     * 
+ * + * repeated string attribute_names = 1; + * + * @return The count of attributeNames. + */ + public int getAttributeNamesCount() { + return attributeNames_.size(); + } + /** + * + * + *
+     * The attribute names (i.e. facet keys) to remove from the dynamic facets
+     * (if present in the request). There can't be more 3 attribute names.
+     * Each attribute name should be a valid attribute name, be non-empty and
+     * contain at most 80 characters.
+     * 
+ * + * repeated string attribute_names = 1; + * + * @param index The index of the element to return. + * @return The attributeNames at the given index. + */ + public java.lang.String getAttributeNames(int index) { + return attributeNames_.get(index); + } + /** + * + * + *
+     * The attribute names (i.e. facet keys) to remove from the dynamic facets
+     * (if present in the request). There can't be more 3 attribute names.
+     * Each attribute name should be a valid attribute name, be non-empty and
+     * contain at most 80 characters.
+     * 
+ * + * repeated string attribute_names = 1; + * + * @param index The index of the value to return. + * @return The bytes of the attributeNames at the given index. + */ + public com.google.protobuf.ByteString getAttributeNamesBytes(int index) { + return attributeNames_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < attributeNames_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, attributeNames_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < attributeNames_.size(); i++) { + dataSize += computeStringSizeNoTag(attributeNames_.getRaw(i)); + } + size += dataSize; + size += 1 * getAttributeNamesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.retail.v2.Rule.RemoveFacetAction)) { + return super.equals(obj); + } + com.google.cloud.retail.v2.Rule.RemoveFacetAction other = + (com.google.cloud.retail.v2.Rule.RemoveFacetAction) obj; + + if (!getAttributeNamesList().equals(other.getAttributeNamesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAttributeNamesCount() > 0) { + hash = (37 * hash) + ATTRIBUTE_NAMES_FIELD_NUMBER; + hash = (53 * hash) + getAttributeNamesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2.Rule.RemoveFacetAction parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.Rule.RemoveFacetAction parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2.Rule.RemoveFacetAction parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.Rule.RemoveFacetAction parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2.Rule.RemoveFacetAction parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2.Rule.RemoveFacetAction parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2.Rule.RemoveFacetAction parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.Rule.RemoveFacetAction parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2.Rule.RemoveFacetAction parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.Rule.RemoveFacetAction parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2.Rule.RemoveFacetAction parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2.Rule.RemoveFacetAction parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.retail.v2.Rule.RemoveFacetAction prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Removes an attribute/facet in the request if is present.
+     *
+     * * Rule Condition:
+     *   Must specify non-empty
+     *   [Condition.query_terms][google.cloud.retail.v2.Condition.query_terms]
+     *   (for search only) or
+     *   [Condition.page_categories][google.cloud.retail.v2.Condition.page_categories]
+     *   (for browse only), but can't specify both.
+     *
+     * * Action Input: attribute name
+     *
+     * * Action Result: Will remove the attribute (as a facet) from the request
+     * if it is present.
+     *
+     * Example: Suppose the query is "shoes", the
+     * [Condition.query_terms][google.cloud.retail.v2.Condition.query_terms] is
+     * "shoes" and the attribute name "size", then facet key "size" will be
+     * removed from the request (if it is present).
+     * 
+ * + * Protobuf type {@code google.cloud.retail.v2.Rule.RemoveFacetAction} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2.Rule.RemoveFacetAction) + com.google.cloud.retail.v2.Rule.RemoveFacetActionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2.CommonProto + .internal_static_google_cloud_retail_v2_Rule_RemoveFacetAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2.CommonProto + .internal_static_google_cloud_retail_v2_Rule_RemoveFacetAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2.Rule.RemoveFacetAction.class, + com.google.cloud.retail.v2.Rule.RemoveFacetAction.Builder.class); + } + + // Construct using com.google.cloud.retail.v2.Rule.RemoveFacetAction.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + attributeNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2.CommonProto + .internal_static_google_cloud_retail_v2_Rule_RemoveFacetAction_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2.Rule.RemoveFacetAction getDefaultInstanceForType() { + return com.google.cloud.retail.v2.Rule.RemoveFacetAction.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2.Rule.RemoveFacetAction build() { + com.google.cloud.retail.v2.Rule.RemoveFacetAction result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2.Rule.RemoveFacetAction buildPartial() { + com.google.cloud.retail.v2.Rule.RemoveFacetAction result = + new com.google.cloud.retail.v2.Rule.RemoveFacetAction(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.retail.v2.Rule.RemoveFacetAction result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + attributeNames_.makeImmutable(); + result.attributeNames_ = attributeNames_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.retail.v2.Rule.RemoveFacetAction) { + return mergeFrom((com.google.cloud.retail.v2.Rule.RemoveFacetAction) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.retail.v2.Rule.RemoveFacetAction other) { + if (other == com.google.cloud.retail.v2.Rule.RemoveFacetAction.getDefaultInstance()) + return this; + if (!other.attributeNames_.isEmpty()) { + if (attributeNames_.isEmpty()) { + attributeNames_ = other.attributeNames_; + bitField0_ |= 0x00000001; + } else { + ensureAttributeNamesIsMutable(); + attributeNames_.addAll(other.attributeNames_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAttributeNamesIsMutable(); + attributeNames_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList attributeNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAttributeNamesIsMutable() { + if (!attributeNames_.isModifiable()) { + attributeNames_ = new com.google.protobuf.LazyStringArrayList(attributeNames_); + } + bitField0_ |= 0x00000001; + } + /** + * + * + *
+       * The attribute names (i.e. facet keys) to remove from the dynamic facets
+       * (if present in the request). There can't be more 3 attribute names.
+       * Each attribute name should be a valid attribute name, be non-empty and
+       * contain at most 80 characters.
+       * 
+ * + * repeated string attribute_names = 1; + * + * @return A list containing the attributeNames. + */ + public com.google.protobuf.ProtocolStringList getAttributeNamesList() { + attributeNames_.makeImmutable(); + return attributeNames_; + } + /** + * + * + *
+       * The attribute names (i.e. facet keys) to remove from the dynamic facets
+       * (if present in the request). There can't be more 3 attribute names.
+       * Each attribute name should be a valid attribute name, be non-empty and
+       * contain at most 80 characters.
+       * 
+ * + * repeated string attribute_names = 1; + * + * @return The count of attributeNames. + */ + public int getAttributeNamesCount() { + return attributeNames_.size(); + } + /** + * + * + *
+       * The attribute names (i.e. facet keys) to remove from the dynamic facets
+       * (if present in the request). There can't be more 3 attribute names.
+       * Each attribute name should be a valid attribute name, be non-empty and
+       * contain at most 80 characters.
+       * 
+ * + * repeated string attribute_names = 1; + * + * @param index The index of the element to return. + * @return The attributeNames at the given index. + */ + public java.lang.String getAttributeNames(int index) { + return attributeNames_.get(index); + } + /** + * + * + *
+       * The attribute names (i.e. facet keys) to remove from the dynamic facets
+       * (if present in the request). There can't be more 3 attribute names.
+       * Each attribute name should be a valid attribute name, be non-empty and
+       * contain at most 80 characters.
+       * 
+ * + * repeated string attribute_names = 1; + * + * @param index The index of the value to return. + * @return The bytes of the attributeNames at the given index. + */ + public com.google.protobuf.ByteString getAttributeNamesBytes(int index) { + return attributeNames_.getByteString(index); + } + /** + * + * + *
+       * The attribute names (i.e. facet keys) to remove from the dynamic facets
+       * (if present in the request). There can't be more 3 attribute names.
+       * Each attribute name should be a valid attribute name, be non-empty and
+       * contain at most 80 characters.
+       * 
+ * + * repeated string attribute_names = 1; + * + * @param index The index to set the value at. + * @param value The attributeNames to set. + * @return This builder for chaining. + */ + public Builder setAttributeNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttributeNamesIsMutable(); + attributeNames_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * The attribute names (i.e. facet keys) to remove from the dynamic facets
+       * (if present in the request). There can't be more 3 attribute names.
+       * Each attribute name should be a valid attribute name, be non-empty and
+       * contain at most 80 characters.
+       * 
+ * + * repeated string attribute_names = 1; + * + * @param value The attributeNames to add. + * @return This builder for chaining. + */ + public Builder addAttributeNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttributeNamesIsMutable(); + attributeNames_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * The attribute names (i.e. facet keys) to remove from the dynamic facets
+       * (if present in the request). There can't be more 3 attribute names.
+       * Each attribute name should be a valid attribute name, be non-empty and
+       * contain at most 80 characters.
+       * 
+ * + * repeated string attribute_names = 1; + * + * @param values The attributeNames to add. + * @return This builder for chaining. + */ + public Builder addAllAttributeNames(java.lang.Iterable values) { + ensureAttributeNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, attributeNames_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * The attribute names (i.e. facet keys) to remove from the dynamic facets
+       * (if present in the request). There can't be more 3 attribute names.
+       * Each attribute name should be a valid attribute name, be non-empty and
+       * contain at most 80 characters.
+       * 
+ * + * repeated string attribute_names = 1; + * + * @return This builder for chaining. + */ + public Builder clearAttributeNames() { + attributeNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + /** + * + * + *
+       * The attribute names (i.e. facet keys) to remove from the dynamic facets
+       * (if present in the request). There can't be more 3 attribute names.
+       * Each attribute name should be a valid attribute name, be non-empty and
+       * contain at most 80 characters.
+       * 
+ * + * repeated string attribute_names = 1; + * + * @param value The bytes of the attributeNames to add. + * @return This builder for chaining. + */ + public Builder addAttributeNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAttributeNamesIsMutable(); + attributeNames_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2.Rule.RemoveFacetAction) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2.Rule.RemoveFacetAction) + private static final com.google.cloud.retail.v2.Rule.RemoveFacetAction DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.retail.v2.Rule.RemoveFacetAction(); + } + + public static com.google.cloud.retail.v2.Rule.RemoveFacetAction getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RemoveFacetAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2.Rule.RemoveFacetAction getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int actionCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object action_; + + public enum ActionCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + BOOST_ACTION(2), + REDIRECT_ACTION(3), + ONEWAY_SYNONYMS_ACTION(6), + DO_NOT_ASSOCIATE_ACTION(7), + REPLACEMENT_ACTION(8), + IGNORE_ACTION(9), + FILTER_ACTION(10), + TWOWAY_SYNONYMS_ACTION(11), + FORCE_RETURN_FACET_ACTION(12), + REMOVE_FACET_ACTION(13), + ACTION_NOT_SET(0); + private final int value; + + private ActionCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ActionCase valueOf(int value) { + return forNumber(value); + } + + public static ActionCase forNumber(int value) { + switch (value) { + case 2: + return BOOST_ACTION; + case 3: + return REDIRECT_ACTION; + case 6: + return ONEWAY_SYNONYMS_ACTION; + case 7: + return DO_NOT_ASSOCIATE_ACTION; + case 8: + return REPLACEMENT_ACTION; + case 9: + return IGNORE_ACTION; + case 10: + return FILTER_ACTION; + case 11: + return TWOWAY_SYNONYMS_ACTION; + case 12: + return FORCE_RETURN_FACET_ACTION; + case 13: + return REMOVE_FACET_ACTION; + case 0: + return ACTION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ActionCase getActionCase() { + return ActionCase.forNumber(actionCase_); + } + + public static final int BOOST_ACTION_FIELD_NUMBER = 2; + /** + * + * + *
+   * A boost action.
+   * 
+ * + * .google.cloud.retail.v2.Rule.BoostAction boost_action = 2; + * + * @return Whether the boostAction field is set. + */ + @java.lang.Override + public boolean hasBoostAction() { + return actionCase_ == 2; + } + /** + * + * + *
+   * A boost action.
+   * 
+ * + * .google.cloud.retail.v2.Rule.BoostAction boost_action = 2; + * + * @return The boostAction. + */ + @java.lang.Override + public com.google.cloud.retail.v2.Rule.BoostAction getBoostAction() { + if (actionCase_ == 2) { + return (com.google.cloud.retail.v2.Rule.BoostAction) action_; + } + return com.google.cloud.retail.v2.Rule.BoostAction.getDefaultInstance(); + } + /** + * + * + *
+   * A boost action.
+   * 
+ * + * .google.cloud.retail.v2.Rule.BoostAction boost_action = 2; + */ + @java.lang.Override + public com.google.cloud.retail.v2.Rule.BoostActionOrBuilder getBoostActionOrBuilder() { + if (actionCase_ == 2) { + return (com.google.cloud.retail.v2.Rule.BoostAction) action_; + } + return com.google.cloud.retail.v2.Rule.BoostAction.getDefaultInstance(); + } + + public static final int REDIRECT_ACTION_FIELD_NUMBER = 3; + /** + * + * + *
+   * Redirects a shopper to a specific page.
+   * 
+ * + * .google.cloud.retail.v2.Rule.RedirectAction redirect_action = 3; + * + * @return Whether the redirectAction field is set. + */ + @java.lang.Override + public boolean hasRedirectAction() { + return actionCase_ == 3; + } + /** + * + * + *
+   * Redirects a shopper to a specific page.
+   * 
+ * + * .google.cloud.retail.v2.Rule.RedirectAction redirect_action = 3; + * + * @return The redirectAction. + */ + @java.lang.Override + public com.google.cloud.retail.v2.Rule.RedirectAction getRedirectAction() { + if (actionCase_ == 3) { + return (com.google.cloud.retail.v2.Rule.RedirectAction) action_; + } + return com.google.cloud.retail.v2.Rule.RedirectAction.getDefaultInstance(); + } + /** + * + * + *
+   * Redirects a shopper to a specific page.
+   * 
+ * + * .google.cloud.retail.v2.Rule.RedirectAction redirect_action = 3; + */ + @java.lang.Override + public com.google.cloud.retail.v2.Rule.RedirectActionOrBuilder getRedirectActionOrBuilder() { + if (actionCase_ == 3) { + return (com.google.cloud.retail.v2.Rule.RedirectAction) action_; + } + return com.google.cloud.retail.v2.Rule.RedirectAction.getDefaultInstance(); + } + + public static final int ONEWAY_SYNONYMS_ACTION_FIELD_NUMBER = 6; + /** + * + * + *
+   * Treats specific term as a synonym with a group of terms.
+   * Group of terms will not be treated as synonyms with the specific term.
+   * 
+ * + * .google.cloud.retail.v2.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; + * + * @return Whether the onewaySynonymsAction field is set. + */ + @java.lang.Override + public boolean hasOnewaySynonymsAction() { + return actionCase_ == 6; + } + /** + * + * + *
+   * Treats specific term as a synonym with a group of terms.
+   * Group of terms will not be treated as synonyms with the specific term.
+   * 
+ * + * .google.cloud.retail.v2.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; + * + * @return The onewaySynonymsAction. + */ + @java.lang.Override + public com.google.cloud.retail.v2.Rule.OnewaySynonymsAction getOnewaySynonymsAction() { + if (actionCase_ == 6) { + return (com.google.cloud.retail.v2.Rule.OnewaySynonymsAction) action_; + } + return com.google.cloud.retail.v2.Rule.OnewaySynonymsAction.getDefaultInstance(); } /** * @@ -8697,6 +11536,113 @@ public com.google.cloud.retail.v2.Rule.TwowaySynonymsAction getTwowaySynonymsAct return com.google.cloud.retail.v2.Rule.TwowaySynonymsAction.getDefaultInstance(); } + public static final int FORCE_RETURN_FACET_ACTION_FIELD_NUMBER = 12; + /** + * + * + *
+   * Force returns an attribute as a facet in the request.
+   * 
+ * + * .google.cloud.retail.v2.Rule.ForceReturnFacetAction force_return_facet_action = 12; + * + * + * @return Whether the forceReturnFacetAction field is set. + */ + @java.lang.Override + public boolean hasForceReturnFacetAction() { + return actionCase_ == 12; + } + /** + * + * + *
+   * Force returns an attribute as a facet in the request.
+   * 
+ * + * .google.cloud.retail.v2.Rule.ForceReturnFacetAction force_return_facet_action = 12; + * + * + * @return The forceReturnFacetAction. + */ + @java.lang.Override + public com.google.cloud.retail.v2.Rule.ForceReturnFacetAction getForceReturnFacetAction() { + if (actionCase_ == 12) { + return (com.google.cloud.retail.v2.Rule.ForceReturnFacetAction) action_; + } + return com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.getDefaultInstance(); + } + /** + * + * + *
+   * Force returns an attribute as a facet in the request.
+   * 
+ * + * .google.cloud.retail.v2.Rule.ForceReturnFacetAction force_return_facet_action = 12; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2.Rule.ForceReturnFacetActionOrBuilder + getForceReturnFacetActionOrBuilder() { + if (actionCase_ == 12) { + return (com.google.cloud.retail.v2.Rule.ForceReturnFacetAction) action_; + } + return com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.getDefaultInstance(); + } + + public static final int REMOVE_FACET_ACTION_FIELD_NUMBER = 13; + /** + * + * + *
+   * Remove an attribute as a facet in the request (if present).
+   * 
+ * + * .google.cloud.retail.v2.Rule.RemoveFacetAction remove_facet_action = 13; + * + * @return Whether the removeFacetAction field is set. + */ + @java.lang.Override + public boolean hasRemoveFacetAction() { + return actionCase_ == 13; + } + /** + * + * + *
+   * Remove an attribute as a facet in the request (if present).
+   * 
+ * + * .google.cloud.retail.v2.Rule.RemoveFacetAction remove_facet_action = 13; + * + * @return The removeFacetAction. + */ + @java.lang.Override + public com.google.cloud.retail.v2.Rule.RemoveFacetAction getRemoveFacetAction() { + if (actionCase_ == 13) { + return (com.google.cloud.retail.v2.Rule.RemoveFacetAction) action_; + } + return com.google.cloud.retail.v2.Rule.RemoveFacetAction.getDefaultInstance(); + } + /** + * + * + *
+   * Remove an attribute as a facet in the request (if present).
+   * 
+ * + * .google.cloud.retail.v2.Rule.RemoveFacetAction remove_facet_action = 13; + */ + @java.lang.Override + public com.google.cloud.retail.v2.Rule.RemoveFacetActionOrBuilder + getRemoveFacetActionOrBuilder() { + if (actionCase_ == 13) { + return (com.google.cloud.retail.v2.Rule.RemoveFacetAction) action_; + } + return com.google.cloud.retail.v2.Rule.RemoveFacetAction.getDefaultInstance(); + } + public static final int CONDITION_FIELD_NUMBER = 1; private com.google.cloud.retail.v2.Condition condition_; /** @@ -8797,6 +11743,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (actionCase_ == 11) { output.writeMessage(11, (com.google.cloud.retail.v2.Rule.TwowaySynonymsAction) action_); } + if (actionCase_ == 12) { + output.writeMessage(12, (com.google.cloud.retail.v2.Rule.ForceReturnFacetAction) action_); + } + if (actionCase_ == 13) { + output.writeMessage(13, (com.google.cloud.retail.v2.Rule.RemoveFacetAction) action_); + } getUnknownFields().writeTo(output); } @@ -8849,6 +11801,16 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 11, (com.google.cloud.retail.v2.Rule.TwowaySynonymsAction) action_); } + if (actionCase_ == 12) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, (com.google.cloud.retail.v2.Rule.ForceReturnFacetAction) action_); + } + if (actionCase_ == 13) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, (com.google.cloud.retail.v2.Rule.RemoveFacetAction) action_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -8894,6 +11856,12 @@ public boolean equals(final java.lang.Object obj) { case 11: if (!getTwowaySynonymsAction().equals(other.getTwowaySynonymsAction())) return false; break; + case 12: + if (!getForceReturnFacetAction().equals(other.getForceReturnFacetAction())) return false; + break; + case 13: + if (!getRemoveFacetAction().equals(other.getRemoveFacetAction())) return false; + break; case 0: default: } @@ -8945,6 +11913,14 @@ public int hashCode() { hash = (37 * hash) + TWOWAY_SYNONYMS_ACTION_FIELD_NUMBER; hash = (53 * hash) + getTwowaySynonymsAction().hashCode(); break; + case 12: + hash = (37 * hash) + FORCE_RETURN_FACET_ACTION_FIELD_NUMBER; + hash = (53 * hash) + getForceReturnFacetAction().hashCode(); + break; + case 13: + hash = (37 * hash) + REMOVE_FACET_ACTION_FIELD_NUMBER; + hash = (53 * hash) + getRemoveFacetAction().hashCode(); + break; case 0: default: } @@ -9079,444 +12055,906 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.retail.v2.Rule.class, com.google.cloud.retail.v2.Rule.Builder.class); } - // Construct using com.google.cloud.retail.v2.Rule.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + // Construct using com.google.cloud.retail.v2.Rule.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getConditionFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (boostActionBuilder_ != null) { + boostActionBuilder_.clear(); + } + if (redirectActionBuilder_ != null) { + redirectActionBuilder_.clear(); + } + if (onewaySynonymsActionBuilder_ != null) { + onewaySynonymsActionBuilder_.clear(); + } + if (doNotAssociateActionBuilder_ != null) { + doNotAssociateActionBuilder_.clear(); + } + if (replacementActionBuilder_ != null) { + replacementActionBuilder_.clear(); + } + if (ignoreActionBuilder_ != null) { + ignoreActionBuilder_.clear(); + } + if (filterActionBuilder_ != null) { + filterActionBuilder_.clear(); + } + if (twowaySynonymsActionBuilder_ != null) { + twowaySynonymsActionBuilder_.clear(); + } + if (forceReturnFacetActionBuilder_ != null) { + forceReturnFacetActionBuilder_.clear(); + } + if (removeFacetActionBuilder_ != null) { + removeFacetActionBuilder_.clear(); + } + condition_ = null; + if (conditionBuilder_ != null) { + conditionBuilder_.dispose(); + conditionBuilder_ = null; + } + actionCase_ = 0; + action_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2.CommonProto + .internal_static_google_cloud_retail_v2_Rule_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2.Rule getDefaultInstanceForType() { + return com.google.cloud.retail.v2.Rule.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2.Rule build() { + com.google.cloud.retail.v2.Rule result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2.Rule buildPartial() { + com.google.cloud.retail.v2.Rule result = new com.google.cloud.retail.v2.Rule(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.retail.v2.Rule result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000400) != 0)) { + result.condition_ = conditionBuilder_ == null ? condition_ : conditionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.retail.v2.Rule result) { + result.actionCase_ = actionCase_; + result.action_ = this.action_; + if (actionCase_ == 2 && boostActionBuilder_ != null) { + result.action_ = boostActionBuilder_.build(); + } + if (actionCase_ == 3 && redirectActionBuilder_ != null) { + result.action_ = redirectActionBuilder_.build(); + } + if (actionCase_ == 6 && onewaySynonymsActionBuilder_ != null) { + result.action_ = onewaySynonymsActionBuilder_.build(); + } + if (actionCase_ == 7 && doNotAssociateActionBuilder_ != null) { + result.action_ = doNotAssociateActionBuilder_.build(); + } + if (actionCase_ == 8 && replacementActionBuilder_ != null) { + result.action_ = replacementActionBuilder_.build(); + } + if (actionCase_ == 9 && ignoreActionBuilder_ != null) { + result.action_ = ignoreActionBuilder_.build(); + } + if (actionCase_ == 10 && filterActionBuilder_ != null) { + result.action_ = filterActionBuilder_.build(); + } + if (actionCase_ == 11 && twowaySynonymsActionBuilder_ != null) { + result.action_ = twowaySynonymsActionBuilder_.build(); + } + if (actionCase_ == 12 && forceReturnFacetActionBuilder_ != null) { + result.action_ = forceReturnFacetActionBuilder_.build(); + } + if (actionCase_ == 13 && removeFacetActionBuilder_ != null) { + result.action_ = removeFacetActionBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getConditionFieldBuilder(); - } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); } @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (boostActionBuilder_ != null) { - boostActionBuilder_.clear(); - } - if (redirectActionBuilder_ != null) { - redirectActionBuilder_.clear(); - } - if (onewaySynonymsActionBuilder_ != null) { - onewaySynonymsActionBuilder_.clear(); - } - if (doNotAssociateActionBuilder_ != null) { - doNotAssociateActionBuilder_.clear(); - } - if (replacementActionBuilder_ != null) { - replacementActionBuilder_.clear(); - } - if (ignoreActionBuilder_ != null) { - ignoreActionBuilder_.clear(); - } - if (filterActionBuilder_ != null) { - filterActionBuilder_.clear(); + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.retail.v2.Rule) { + return mergeFrom((com.google.cloud.retail.v2.Rule) other); + } else { + super.mergeFrom(other); + return this; } - if (twowaySynonymsActionBuilder_ != null) { - twowaySynonymsActionBuilder_.clear(); + } + + public Builder mergeFrom(com.google.cloud.retail.v2.Rule other) { + if (other == com.google.cloud.retail.v2.Rule.getDefaultInstance()) return this; + if (other.hasCondition()) { + mergeCondition(other.getCondition()); } - condition_ = null; - if (conditionBuilder_ != null) { - conditionBuilder_.dispose(); - conditionBuilder_ = null; + switch (other.getActionCase()) { + case BOOST_ACTION: + { + mergeBoostAction(other.getBoostAction()); + break; + } + case REDIRECT_ACTION: + { + mergeRedirectAction(other.getRedirectAction()); + break; + } + case ONEWAY_SYNONYMS_ACTION: + { + mergeOnewaySynonymsAction(other.getOnewaySynonymsAction()); + break; + } + case DO_NOT_ASSOCIATE_ACTION: + { + mergeDoNotAssociateAction(other.getDoNotAssociateAction()); + break; + } + case REPLACEMENT_ACTION: + { + mergeReplacementAction(other.getReplacementAction()); + break; + } + case IGNORE_ACTION: + { + mergeIgnoreAction(other.getIgnoreAction()); + break; + } + case FILTER_ACTION: + { + mergeFilterAction(other.getFilterAction()); + break; + } + case TWOWAY_SYNONYMS_ACTION: + { + mergeTwowaySynonymsAction(other.getTwowaySynonymsAction()); + break; + } + case FORCE_RETURN_FACET_ACTION: + { + mergeForceReturnFacetAction(other.getForceReturnFacetAction()); + break; + } + case REMOVE_FACET_ACTION: + { + mergeRemoveFacetAction(other.getRemoveFacetAction()); + break; + } + case ACTION_NOT_SET: + { + break; + } } - actionCase_ = 0; - action_ = null; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.retail.v2.CommonProto - .internal_static_google_cloud_retail_v2_Rule_descriptor; + public final boolean isInitialized() { + return true; } @java.lang.Override - public com.google.cloud.retail.v2.Rule getDefaultInstanceForType() { - return com.google.cloud.retail.v2.Rule.getDefaultInstance(); + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getConditionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 10 + case 18: + { + input.readMessage(getBoostActionFieldBuilder().getBuilder(), extensionRegistry); + actionCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getRedirectActionFieldBuilder().getBuilder(), extensionRegistry); + actionCase_ = 3; + break; + } // case 26 + case 50: + { + input.readMessage( + getOnewaySynonymsActionFieldBuilder().getBuilder(), extensionRegistry); + actionCase_ = 6; + break; + } // case 50 + case 58: + { + input.readMessage( + getDoNotAssociateActionFieldBuilder().getBuilder(), extensionRegistry); + actionCase_ = 7; + break; + } // case 58 + case 66: + { + input.readMessage( + getReplacementActionFieldBuilder().getBuilder(), extensionRegistry); + actionCase_ = 8; + break; + } // case 66 + case 74: + { + input.readMessage(getIgnoreActionFieldBuilder().getBuilder(), extensionRegistry); + actionCase_ = 9; + break; + } // case 74 + case 82: + { + input.readMessage(getFilterActionFieldBuilder().getBuilder(), extensionRegistry); + actionCase_ = 10; + break; + } // case 82 + case 90: + { + input.readMessage( + getTwowaySynonymsActionFieldBuilder().getBuilder(), extensionRegistry); + actionCase_ = 11; + break; + } // case 90 + case 98: + { + input.readMessage( + getForceReturnFacetActionFieldBuilder().getBuilder(), extensionRegistry); + actionCase_ = 12; + break; + } // case 98 + case 106: + { + input.readMessage( + getRemoveFacetActionFieldBuilder().getBuilder(), extensionRegistry); + actionCase_ = 13; + break; + } // case 106 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; } - @java.lang.Override - public com.google.cloud.retail.v2.Rule build() { - com.google.cloud.retail.v2.Rule result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + private int actionCase_ = 0; + private java.lang.Object action_; + + public ActionCase getActionCase() { + return ActionCase.forNumber(actionCase_); + } + + public Builder clearAction() { + actionCase_ = 0; + action_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.Rule.BoostAction, + com.google.cloud.retail.v2.Rule.BoostAction.Builder, + com.google.cloud.retail.v2.Rule.BoostActionOrBuilder> + boostActionBuilder_; + /** + * + * + *
+     * A boost action.
+     * 
+ * + * .google.cloud.retail.v2.Rule.BoostAction boost_action = 2; + * + * @return Whether the boostAction field is set. + */ + @java.lang.Override + public boolean hasBoostAction() { + return actionCase_ == 2; } - + /** + * + * + *
+     * A boost action.
+     * 
+ * + * .google.cloud.retail.v2.Rule.BoostAction boost_action = 2; + * + * @return The boostAction. + */ @java.lang.Override - public com.google.cloud.retail.v2.Rule buildPartial() { - com.google.cloud.retail.v2.Rule result = new com.google.cloud.retail.v2.Rule(this); - if (bitField0_ != 0) { - buildPartial0(result); + public com.google.cloud.retail.v2.Rule.BoostAction getBoostAction() { + if (boostActionBuilder_ == null) { + if (actionCase_ == 2) { + return (com.google.cloud.retail.v2.Rule.BoostAction) action_; + } + return com.google.cloud.retail.v2.Rule.BoostAction.getDefaultInstance(); + } else { + if (actionCase_ == 2) { + return boostActionBuilder_.getMessage(); + } + return com.google.cloud.retail.v2.Rule.BoostAction.getDefaultInstance(); } - buildPartialOneofs(result); - onBuilt(); - return result; } - - private void buildPartial0(com.google.cloud.retail.v2.Rule result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000100) != 0)) { - result.condition_ = conditionBuilder_ == null ? condition_ : conditionBuilder_.build(); - to_bitField0_ |= 0x00000001; + /** + * + * + *
+     * A boost action.
+     * 
+ * + * .google.cloud.retail.v2.Rule.BoostAction boost_action = 2; + */ + public Builder setBoostAction(com.google.cloud.retail.v2.Rule.BoostAction value) { + if (boostActionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + action_ = value; + onChanged(); + } else { + boostActionBuilder_.setMessage(value); } - result.bitField0_ |= to_bitField0_; + actionCase_ = 2; + return this; } - - private void buildPartialOneofs(com.google.cloud.retail.v2.Rule result) { - result.actionCase_ = actionCase_; - result.action_ = this.action_; - if (actionCase_ == 2 && boostActionBuilder_ != null) { - result.action_ = boostActionBuilder_.build(); - } - if (actionCase_ == 3 && redirectActionBuilder_ != null) { - result.action_ = redirectActionBuilder_.build(); - } - if (actionCase_ == 6 && onewaySynonymsActionBuilder_ != null) { - result.action_ = onewaySynonymsActionBuilder_.build(); - } - if (actionCase_ == 7 && doNotAssociateActionBuilder_ != null) { - result.action_ = doNotAssociateActionBuilder_.build(); - } - if (actionCase_ == 8 && replacementActionBuilder_ != null) { - result.action_ = replacementActionBuilder_.build(); - } - if (actionCase_ == 9 && ignoreActionBuilder_ != null) { - result.action_ = ignoreActionBuilder_.build(); - } - if (actionCase_ == 10 && filterActionBuilder_ != null) { - result.action_ = filterActionBuilder_.build(); - } - if (actionCase_ == 11 && twowaySynonymsActionBuilder_ != null) { - result.action_ = twowaySynonymsActionBuilder_.build(); + /** + * + * + *
+     * A boost action.
+     * 
+ * + * .google.cloud.retail.v2.Rule.BoostAction boost_action = 2; + */ + public Builder setBoostAction( + com.google.cloud.retail.v2.Rule.BoostAction.Builder builderForValue) { + if (boostActionBuilder_ == null) { + action_ = builderForValue.build(); + onChanged(); + } else { + boostActionBuilder_.setMessage(builderForValue.build()); } + actionCase_ = 2; + return this; } - - @java.lang.Override - public Builder clone() { - return super.clone(); + /** + * + * + *
+     * A boost action.
+     * 
+ * + * .google.cloud.retail.v2.Rule.BoostAction boost_action = 2; + */ + public Builder mergeBoostAction(com.google.cloud.retail.v2.Rule.BoostAction value) { + if (boostActionBuilder_ == null) { + if (actionCase_ == 2 + && action_ != com.google.cloud.retail.v2.Rule.BoostAction.getDefaultInstance()) { + action_ = + com.google.cloud.retail.v2.Rule.BoostAction.newBuilder( + (com.google.cloud.retail.v2.Rule.BoostAction) action_) + .mergeFrom(value) + .buildPartial(); + } else { + action_ = value; + } + onChanged(); + } else { + if (actionCase_ == 2) { + boostActionBuilder_.mergeFrom(value); + } else { + boostActionBuilder_.setMessage(value); + } + } + actionCase_ = 2; + return this; } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); + /** + * + * + *
+     * A boost action.
+     * 
+ * + * .google.cloud.retail.v2.Rule.BoostAction boost_action = 2; + */ + public Builder clearBoostAction() { + if (boostActionBuilder_ == null) { + if (actionCase_ == 2) { + actionCase_ = 0; + action_ = null; + onChanged(); + } + } else { + if (actionCase_ == 2) { + actionCase_ = 0; + action_ = null; + } + boostActionBuilder_.clear(); + } + return this; } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + /** + * + * + *
+     * A boost action.
+     * 
+ * + * .google.cloud.retail.v2.Rule.BoostAction boost_action = 2; + */ + public com.google.cloud.retail.v2.Rule.BoostAction.Builder getBoostActionBuilder() { + return getBoostActionFieldBuilder().getBuilder(); } - + /** + * + * + *
+     * A boost action.
+     * 
+ * + * .google.cloud.retail.v2.Rule.BoostAction boost_action = 2; + */ @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + public com.google.cloud.retail.v2.Rule.BoostActionOrBuilder getBoostActionOrBuilder() { + if ((actionCase_ == 2) && (boostActionBuilder_ != null)) { + return boostActionBuilder_.getMessageOrBuilder(); + } else { + if (actionCase_ == 2) { + return (com.google.cloud.retail.v2.Rule.BoostAction) action_; + } + return com.google.cloud.retail.v2.Rule.BoostAction.getDefaultInstance(); + } } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + /** + * + * + *
+     * A boost action.
+     * 
+ * + * .google.cloud.retail.v2.Rule.BoostAction boost_action = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.Rule.BoostAction, + com.google.cloud.retail.v2.Rule.BoostAction.Builder, + com.google.cloud.retail.v2.Rule.BoostActionOrBuilder> + getBoostActionFieldBuilder() { + if (boostActionBuilder_ == null) { + if (!(actionCase_ == 2)) { + action_ = com.google.cloud.retail.v2.Rule.BoostAction.getDefaultInstance(); + } + boostActionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.Rule.BoostAction, + com.google.cloud.retail.v2.Rule.BoostAction.Builder, + com.google.cloud.retail.v2.Rule.BoostActionOrBuilder>( + (com.google.cloud.retail.v2.Rule.BoostAction) action_, + getParentForChildren(), + isClean()); + action_ = null; + } + actionCase_ = 2; + onChanged(); + return boostActionBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.Rule.RedirectAction, + com.google.cloud.retail.v2.Rule.RedirectAction.Builder, + com.google.cloud.retail.v2.Rule.RedirectActionOrBuilder> + redirectActionBuilder_; + /** + * + * + *
+     * Redirects a shopper to a specific page.
+     * 
+ * + * .google.cloud.retail.v2.Rule.RedirectAction redirect_action = 3; + * + * @return Whether the redirectAction field is set. + */ @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + public boolean hasRedirectAction() { + return actionCase_ == 3; } - + /** + * + * + *
+     * Redirects a shopper to a specific page.
+     * 
+ * + * .google.cloud.retail.v2.Rule.RedirectAction redirect_action = 3; + * + * @return The redirectAction. + */ @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.retail.v2.Rule) { - return mergeFrom((com.google.cloud.retail.v2.Rule) other); + public com.google.cloud.retail.v2.Rule.RedirectAction getRedirectAction() { + if (redirectActionBuilder_ == null) { + if (actionCase_ == 3) { + return (com.google.cloud.retail.v2.Rule.RedirectAction) action_; + } + return com.google.cloud.retail.v2.Rule.RedirectAction.getDefaultInstance(); } else { - super.mergeFrom(other); - return this; + if (actionCase_ == 3) { + return redirectActionBuilder_.getMessage(); + } + return com.google.cloud.retail.v2.Rule.RedirectAction.getDefaultInstance(); } } - - public Builder mergeFrom(com.google.cloud.retail.v2.Rule other) { - if (other == com.google.cloud.retail.v2.Rule.getDefaultInstance()) return this; - if (other.hasCondition()) { - mergeCondition(other.getCondition()); - } - switch (other.getActionCase()) { - case BOOST_ACTION: - { - mergeBoostAction(other.getBoostAction()); - break; - } - case REDIRECT_ACTION: - { - mergeRedirectAction(other.getRedirectAction()); - break; - } - case ONEWAY_SYNONYMS_ACTION: - { - mergeOnewaySynonymsAction(other.getOnewaySynonymsAction()); - break; - } - case DO_NOT_ASSOCIATE_ACTION: - { - mergeDoNotAssociateAction(other.getDoNotAssociateAction()); - break; - } - case REPLACEMENT_ACTION: - { - mergeReplacementAction(other.getReplacementAction()); - break; - } - case IGNORE_ACTION: - { - mergeIgnoreAction(other.getIgnoreAction()); - break; - } - case FILTER_ACTION: - { - mergeFilterAction(other.getFilterAction()); - break; - } - case TWOWAY_SYNONYMS_ACTION: - { - mergeTwowaySynonymsAction(other.getTwowaySynonymsAction()); - break; - } - case ACTION_NOT_SET: - { - break; - } + /** + * + * + *
+     * Redirects a shopper to a specific page.
+     * 
+ * + * .google.cloud.retail.v2.Rule.RedirectAction redirect_action = 3; + */ + public Builder setRedirectAction(com.google.cloud.retail.v2.Rule.RedirectAction value) { + if (redirectActionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + action_ = value; + onChanged(); + } else { + redirectActionBuilder_.setMessage(value); } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); + actionCase_ = 3; return this; } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); + /** + * + * + *
+     * Redirects a shopper to a specific page.
+     * 
+ * + * .google.cloud.retail.v2.Rule.RedirectAction redirect_action = 3; + */ + public Builder setRedirectAction( + com.google.cloud.retail.v2.Rule.RedirectAction.Builder builderForValue) { + if (redirectActionBuilder_ == null) { + action_ = builderForValue.build(); + onChanged(); + } else { + redirectActionBuilder_.setMessage(builderForValue.build()); } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getConditionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 10 - case 18: - { - input.readMessage(getBoostActionFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage(getRedirectActionFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 3; - break; - } // case 26 - case 50: - { - input.readMessage( - getOnewaySynonymsActionFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 6; - break; - } // case 50 - case 58: - { - input.readMessage( - getDoNotAssociateActionFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 7; - break; - } // case 58 - case 66: - { - input.readMessage( - getReplacementActionFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 8; - break; - } // case 66 - case 74: - { - input.readMessage(getIgnoreActionFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 9; - break; - } // case 74 - case 82: - { - input.readMessage(getFilterActionFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 10; - break; - } // case 82 - case 90: - { - input.readMessage( - getTwowaySynonymsActionFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 11; - break; - } // case 90 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { + actionCase_ = 3; + return this; + } + /** + * + * + *
+     * Redirects a shopper to a specific page.
+     * 
+ * + * .google.cloud.retail.v2.Rule.RedirectAction redirect_action = 3; + */ + public Builder mergeRedirectAction(com.google.cloud.retail.v2.Rule.RedirectAction value) { + if (redirectActionBuilder_ == null) { + if (actionCase_ == 3 + && action_ != com.google.cloud.retail.v2.Rule.RedirectAction.getDefaultInstance()) { + action_ = + com.google.cloud.retail.v2.Rule.RedirectAction.newBuilder( + (com.google.cloud.retail.v2.Rule.RedirectAction) action_) + .mergeFrom(value) + .buildPartial(); + } else { + action_ = value; + } onChanged(); - } // finally + } else { + if (actionCase_ == 3) { + redirectActionBuilder_.mergeFrom(value); + } else { + redirectActionBuilder_.setMessage(value); + } + } + actionCase_ = 3; + return this; + } + /** + * + * + *
+     * Redirects a shopper to a specific page.
+     * 
+ * + * .google.cloud.retail.v2.Rule.RedirectAction redirect_action = 3; + */ + public Builder clearRedirectAction() { + if (redirectActionBuilder_ == null) { + if (actionCase_ == 3) { + actionCase_ = 0; + action_ = null; + onChanged(); + } + } else { + if (actionCase_ == 3) { + actionCase_ = 0; + action_ = null; + } + redirectActionBuilder_.clear(); + } return this; } - - private int actionCase_ = 0; - private java.lang.Object action_; - - public ActionCase getActionCase() { - return ActionCase.forNumber(actionCase_); + /** + * + * + *
+     * Redirects a shopper to a specific page.
+     * 
+ * + * .google.cloud.retail.v2.Rule.RedirectAction redirect_action = 3; + */ + public com.google.cloud.retail.v2.Rule.RedirectAction.Builder getRedirectActionBuilder() { + return getRedirectActionFieldBuilder().getBuilder(); } - - public Builder clearAction() { - actionCase_ = 0; - action_ = null; + /** + * + * + *
+     * Redirects a shopper to a specific page.
+     * 
+ * + * .google.cloud.retail.v2.Rule.RedirectAction redirect_action = 3; + */ + @java.lang.Override + public com.google.cloud.retail.v2.Rule.RedirectActionOrBuilder getRedirectActionOrBuilder() { + if ((actionCase_ == 3) && (redirectActionBuilder_ != null)) { + return redirectActionBuilder_.getMessageOrBuilder(); + } else { + if (actionCase_ == 3) { + return (com.google.cloud.retail.v2.Rule.RedirectAction) action_; + } + return com.google.cloud.retail.v2.Rule.RedirectAction.getDefaultInstance(); + } + } + /** + * + * + *
+     * Redirects a shopper to a specific page.
+     * 
+ * + * .google.cloud.retail.v2.Rule.RedirectAction redirect_action = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.Rule.RedirectAction, + com.google.cloud.retail.v2.Rule.RedirectAction.Builder, + com.google.cloud.retail.v2.Rule.RedirectActionOrBuilder> + getRedirectActionFieldBuilder() { + if (redirectActionBuilder_ == null) { + if (!(actionCase_ == 3)) { + action_ = com.google.cloud.retail.v2.Rule.RedirectAction.getDefaultInstance(); + } + redirectActionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2.Rule.RedirectAction, + com.google.cloud.retail.v2.Rule.RedirectAction.Builder, + com.google.cloud.retail.v2.Rule.RedirectActionOrBuilder>( + (com.google.cloud.retail.v2.Rule.RedirectAction) action_, + getParentForChildren(), + isClean()); + action_ = null; + } + actionCase_ = 3; onChanged(); - return this; + return redirectActionBuilder_; } - private int bitField0_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2.Rule.BoostAction, - com.google.cloud.retail.v2.Rule.BoostAction.Builder, - com.google.cloud.retail.v2.Rule.BoostActionOrBuilder> - boostActionBuilder_; + com.google.cloud.retail.v2.Rule.OnewaySynonymsAction, + com.google.cloud.retail.v2.Rule.OnewaySynonymsAction.Builder, + com.google.cloud.retail.v2.Rule.OnewaySynonymsActionOrBuilder> + onewaySynonymsActionBuilder_; /** * * *
-     * A boost action.
+     * Treats specific term as a synonym with a group of terms.
+     * Group of terms will not be treated as synonyms with the specific term.
      * 
* - * .google.cloud.retail.v2.Rule.BoostAction boost_action = 2; + * .google.cloud.retail.v2.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; * - * @return Whether the boostAction field is set. + * @return Whether the onewaySynonymsAction field is set. */ @java.lang.Override - public boolean hasBoostAction() { - return actionCase_ == 2; + public boolean hasOnewaySynonymsAction() { + return actionCase_ == 6; } /** * * *
-     * A boost action.
+     * Treats specific term as a synonym with a group of terms.
+     * Group of terms will not be treated as synonyms with the specific term.
      * 
* - * .google.cloud.retail.v2.Rule.BoostAction boost_action = 2; + * .google.cloud.retail.v2.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; * - * @return The boostAction. + * @return The onewaySynonymsAction. */ @java.lang.Override - public com.google.cloud.retail.v2.Rule.BoostAction getBoostAction() { - if (boostActionBuilder_ == null) { - if (actionCase_ == 2) { - return (com.google.cloud.retail.v2.Rule.BoostAction) action_; + public com.google.cloud.retail.v2.Rule.OnewaySynonymsAction getOnewaySynonymsAction() { + if (onewaySynonymsActionBuilder_ == null) { + if (actionCase_ == 6) { + return (com.google.cloud.retail.v2.Rule.OnewaySynonymsAction) action_; } - return com.google.cloud.retail.v2.Rule.BoostAction.getDefaultInstance(); + return com.google.cloud.retail.v2.Rule.OnewaySynonymsAction.getDefaultInstance(); } else { - if (actionCase_ == 2) { - return boostActionBuilder_.getMessage(); + if (actionCase_ == 6) { + return onewaySynonymsActionBuilder_.getMessage(); } - return com.google.cloud.retail.v2.Rule.BoostAction.getDefaultInstance(); + return com.google.cloud.retail.v2.Rule.OnewaySynonymsAction.getDefaultInstance(); } } /** * * *
-     * A boost action.
+     * Treats specific term as a synonym with a group of terms.
+     * Group of terms will not be treated as synonyms with the specific term.
      * 
* - * .google.cloud.retail.v2.Rule.BoostAction boost_action = 2; + * .google.cloud.retail.v2.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; */ - public Builder setBoostAction(com.google.cloud.retail.v2.Rule.BoostAction value) { - if (boostActionBuilder_ == null) { + public Builder setOnewaySynonymsAction( + com.google.cloud.retail.v2.Rule.OnewaySynonymsAction value) { + if (onewaySynonymsActionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } action_ = value; onChanged(); } else { - boostActionBuilder_.setMessage(value); + onewaySynonymsActionBuilder_.setMessage(value); } - actionCase_ = 2; + actionCase_ = 6; return this; } /** * * *
-     * A boost action.
+     * Treats specific term as a synonym with a group of terms.
+     * Group of terms will not be treated as synonyms with the specific term.
      * 
* - * .google.cloud.retail.v2.Rule.BoostAction boost_action = 2; + * .google.cloud.retail.v2.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; */ - public Builder setBoostAction( - com.google.cloud.retail.v2.Rule.BoostAction.Builder builderForValue) { - if (boostActionBuilder_ == null) { + public Builder setOnewaySynonymsAction( + com.google.cloud.retail.v2.Rule.OnewaySynonymsAction.Builder builderForValue) { + if (onewaySynonymsActionBuilder_ == null) { action_ = builderForValue.build(); onChanged(); } else { - boostActionBuilder_.setMessage(builderForValue.build()); + onewaySynonymsActionBuilder_.setMessage(builderForValue.build()); } - actionCase_ = 2; + actionCase_ = 6; return this; } /** * * *
-     * A boost action.
+     * Treats specific term as a synonym with a group of terms.
+     * Group of terms will not be treated as synonyms with the specific term.
      * 
* - * .google.cloud.retail.v2.Rule.BoostAction boost_action = 2; + * .google.cloud.retail.v2.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; */ - public Builder mergeBoostAction(com.google.cloud.retail.v2.Rule.BoostAction value) { - if (boostActionBuilder_ == null) { - if (actionCase_ == 2 - && action_ != com.google.cloud.retail.v2.Rule.BoostAction.getDefaultInstance()) { + public Builder mergeOnewaySynonymsAction( + com.google.cloud.retail.v2.Rule.OnewaySynonymsAction value) { + if (onewaySynonymsActionBuilder_ == null) { + if (actionCase_ == 6 + && action_ + != com.google.cloud.retail.v2.Rule.OnewaySynonymsAction.getDefaultInstance()) { action_ = - com.google.cloud.retail.v2.Rule.BoostAction.newBuilder( - (com.google.cloud.retail.v2.Rule.BoostAction) action_) + com.google.cloud.retail.v2.Rule.OnewaySynonymsAction.newBuilder( + (com.google.cloud.retail.v2.Rule.OnewaySynonymsAction) action_) .mergeFrom(value) .buildPartial(); } else { @@ -9524,37 +12962,38 @@ public Builder mergeBoostAction(com.google.cloud.retail.v2.Rule.BoostAction valu } onChanged(); } else { - if (actionCase_ == 2) { - boostActionBuilder_.mergeFrom(value); + if (actionCase_ == 6) { + onewaySynonymsActionBuilder_.mergeFrom(value); } else { - boostActionBuilder_.setMessage(value); + onewaySynonymsActionBuilder_.setMessage(value); } } - actionCase_ = 2; + actionCase_ = 6; return this; } /** * * *
-     * A boost action.
+     * Treats specific term as a synonym with a group of terms.
+     * Group of terms will not be treated as synonyms with the specific term.
      * 
* - * .google.cloud.retail.v2.Rule.BoostAction boost_action = 2; + * .google.cloud.retail.v2.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; */ - public Builder clearBoostAction() { - if (boostActionBuilder_ == null) { - if (actionCase_ == 2) { + public Builder clearOnewaySynonymsAction() { + if (onewaySynonymsActionBuilder_ == null) { + if (actionCase_ == 6) { actionCase_ = 0; action_ = null; onChanged(); } } else { - if (actionCase_ == 2) { + if (actionCase_ == 6) { actionCase_ = 0; action_ = null; } - boostActionBuilder_.clear(); + onewaySynonymsActionBuilder_.clear(); } return this; } @@ -9562,170 +13001,178 @@ public Builder clearBoostAction() { * * *
-     * A boost action.
+     * Treats specific term as a synonym with a group of terms.
+     * Group of terms will not be treated as synonyms with the specific term.
      * 
* - * .google.cloud.retail.v2.Rule.BoostAction boost_action = 2; + * .google.cloud.retail.v2.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; */ - public com.google.cloud.retail.v2.Rule.BoostAction.Builder getBoostActionBuilder() { - return getBoostActionFieldBuilder().getBuilder(); + public com.google.cloud.retail.v2.Rule.OnewaySynonymsAction.Builder + getOnewaySynonymsActionBuilder() { + return getOnewaySynonymsActionFieldBuilder().getBuilder(); } /** * * *
-     * A boost action.
+     * Treats specific term as a synonym with a group of terms.
+     * Group of terms will not be treated as synonyms with the specific term.
      * 
* - * .google.cloud.retail.v2.Rule.BoostAction boost_action = 2; + * .google.cloud.retail.v2.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; */ @java.lang.Override - public com.google.cloud.retail.v2.Rule.BoostActionOrBuilder getBoostActionOrBuilder() { - if ((actionCase_ == 2) && (boostActionBuilder_ != null)) { - return boostActionBuilder_.getMessageOrBuilder(); + public com.google.cloud.retail.v2.Rule.OnewaySynonymsActionOrBuilder + getOnewaySynonymsActionOrBuilder() { + if ((actionCase_ == 6) && (onewaySynonymsActionBuilder_ != null)) { + return onewaySynonymsActionBuilder_.getMessageOrBuilder(); } else { - if (actionCase_ == 2) { - return (com.google.cloud.retail.v2.Rule.BoostAction) action_; + if (actionCase_ == 6) { + return (com.google.cloud.retail.v2.Rule.OnewaySynonymsAction) action_; } - return com.google.cloud.retail.v2.Rule.BoostAction.getDefaultInstance(); + return com.google.cloud.retail.v2.Rule.OnewaySynonymsAction.getDefaultInstance(); } } /** * * *
-     * A boost action.
+     * Treats specific term as a synonym with a group of terms.
+     * Group of terms will not be treated as synonyms with the specific term.
      * 
* - * .google.cloud.retail.v2.Rule.BoostAction boost_action = 2; + * .google.cloud.retail.v2.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2.Rule.BoostAction, - com.google.cloud.retail.v2.Rule.BoostAction.Builder, - com.google.cloud.retail.v2.Rule.BoostActionOrBuilder> - getBoostActionFieldBuilder() { - if (boostActionBuilder_ == null) { - if (!(actionCase_ == 2)) { - action_ = com.google.cloud.retail.v2.Rule.BoostAction.getDefaultInstance(); + com.google.cloud.retail.v2.Rule.OnewaySynonymsAction, + com.google.cloud.retail.v2.Rule.OnewaySynonymsAction.Builder, + com.google.cloud.retail.v2.Rule.OnewaySynonymsActionOrBuilder> + getOnewaySynonymsActionFieldBuilder() { + if (onewaySynonymsActionBuilder_ == null) { + if (!(actionCase_ == 6)) { + action_ = com.google.cloud.retail.v2.Rule.OnewaySynonymsAction.getDefaultInstance(); } - boostActionBuilder_ = + onewaySynonymsActionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2.Rule.BoostAction, - com.google.cloud.retail.v2.Rule.BoostAction.Builder, - com.google.cloud.retail.v2.Rule.BoostActionOrBuilder>( - (com.google.cloud.retail.v2.Rule.BoostAction) action_, + com.google.cloud.retail.v2.Rule.OnewaySynonymsAction, + com.google.cloud.retail.v2.Rule.OnewaySynonymsAction.Builder, + com.google.cloud.retail.v2.Rule.OnewaySynonymsActionOrBuilder>( + (com.google.cloud.retail.v2.Rule.OnewaySynonymsAction) action_, getParentForChildren(), isClean()); action_ = null; } - actionCase_ = 2; + actionCase_ = 6; onChanged(); - return boostActionBuilder_; + return onewaySynonymsActionBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2.Rule.RedirectAction, - com.google.cloud.retail.v2.Rule.RedirectAction.Builder, - com.google.cloud.retail.v2.Rule.RedirectActionOrBuilder> - redirectActionBuilder_; + com.google.cloud.retail.v2.Rule.DoNotAssociateAction, + com.google.cloud.retail.v2.Rule.DoNotAssociateAction.Builder, + com.google.cloud.retail.v2.Rule.DoNotAssociateActionOrBuilder> + doNotAssociateActionBuilder_; /** * * *
-     * Redirects a shopper to a specific page.
+     * Prevents term from being associated with other terms.
      * 
* - * .google.cloud.retail.v2.Rule.RedirectAction redirect_action = 3; + * .google.cloud.retail.v2.Rule.DoNotAssociateAction do_not_associate_action = 7; * - * @return Whether the redirectAction field is set. + * @return Whether the doNotAssociateAction field is set. */ @java.lang.Override - public boolean hasRedirectAction() { - return actionCase_ == 3; + public boolean hasDoNotAssociateAction() { + return actionCase_ == 7; } /** * * *
-     * Redirects a shopper to a specific page.
+     * Prevents term from being associated with other terms.
      * 
* - * .google.cloud.retail.v2.Rule.RedirectAction redirect_action = 3; + * .google.cloud.retail.v2.Rule.DoNotAssociateAction do_not_associate_action = 7; * - * @return The redirectAction. + * @return The doNotAssociateAction. */ @java.lang.Override - public com.google.cloud.retail.v2.Rule.RedirectAction getRedirectAction() { - if (redirectActionBuilder_ == null) { - if (actionCase_ == 3) { - return (com.google.cloud.retail.v2.Rule.RedirectAction) action_; + public com.google.cloud.retail.v2.Rule.DoNotAssociateAction getDoNotAssociateAction() { + if (doNotAssociateActionBuilder_ == null) { + if (actionCase_ == 7) { + return (com.google.cloud.retail.v2.Rule.DoNotAssociateAction) action_; } - return com.google.cloud.retail.v2.Rule.RedirectAction.getDefaultInstance(); + return com.google.cloud.retail.v2.Rule.DoNotAssociateAction.getDefaultInstance(); } else { - if (actionCase_ == 3) { - return redirectActionBuilder_.getMessage(); + if (actionCase_ == 7) { + return doNotAssociateActionBuilder_.getMessage(); } - return com.google.cloud.retail.v2.Rule.RedirectAction.getDefaultInstance(); + return com.google.cloud.retail.v2.Rule.DoNotAssociateAction.getDefaultInstance(); } } /** * * *
-     * Redirects a shopper to a specific page.
+     * Prevents term from being associated with other terms.
      * 
* - * .google.cloud.retail.v2.Rule.RedirectAction redirect_action = 3; + * .google.cloud.retail.v2.Rule.DoNotAssociateAction do_not_associate_action = 7; */ - public Builder setRedirectAction(com.google.cloud.retail.v2.Rule.RedirectAction value) { - if (redirectActionBuilder_ == null) { + public Builder setDoNotAssociateAction( + com.google.cloud.retail.v2.Rule.DoNotAssociateAction value) { + if (doNotAssociateActionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } action_ = value; onChanged(); } else { - redirectActionBuilder_.setMessage(value); + doNotAssociateActionBuilder_.setMessage(value); } - actionCase_ = 3; + actionCase_ = 7; return this; } /** * * *
-     * Redirects a shopper to a specific page.
+     * Prevents term from being associated with other terms.
      * 
* - * .google.cloud.retail.v2.Rule.RedirectAction redirect_action = 3; + * .google.cloud.retail.v2.Rule.DoNotAssociateAction do_not_associate_action = 7; */ - public Builder setRedirectAction( - com.google.cloud.retail.v2.Rule.RedirectAction.Builder builderForValue) { - if (redirectActionBuilder_ == null) { + public Builder setDoNotAssociateAction( + com.google.cloud.retail.v2.Rule.DoNotAssociateAction.Builder builderForValue) { + if (doNotAssociateActionBuilder_ == null) { action_ = builderForValue.build(); onChanged(); } else { - redirectActionBuilder_.setMessage(builderForValue.build()); + doNotAssociateActionBuilder_.setMessage(builderForValue.build()); } - actionCase_ = 3; + actionCase_ = 7; return this; } /** * * *
-     * Redirects a shopper to a specific page.
+     * Prevents term from being associated with other terms.
      * 
* - * .google.cloud.retail.v2.Rule.RedirectAction redirect_action = 3; + * .google.cloud.retail.v2.Rule.DoNotAssociateAction do_not_associate_action = 7; */ - public Builder mergeRedirectAction(com.google.cloud.retail.v2.Rule.RedirectAction value) { - if (redirectActionBuilder_ == null) { - if (actionCase_ == 3 - && action_ != com.google.cloud.retail.v2.Rule.RedirectAction.getDefaultInstance()) { + public Builder mergeDoNotAssociateAction( + com.google.cloud.retail.v2.Rule.DoNotAssociateAction value) { + if (doNotAssociateActionBuilder_ == null) { + if (actionCase_ == 7 + && action_ + != com.google.cloud.retail.v2.Rule.DoNotAssociateAction.getDefaultInstance()) { action_ = - com.google.cloud.retail.v2.Rule.RedirectAction.newBuilder( - (com.google.cloud.retail.v2.Rule.RedirectAction) action_) + com.google.cloud.retail.v2.Rule.DoNotAssociateAction.newBuilder( + (com.google.cloud.retail.v2.Rule.DoNotAssociateAction) action_) .mergeFrom(value) .buildPartial(); } else { @@ -9733,37 +13180,37 @@ public Builder mergeRedirectAction(com.google.cloud.retail.v2.Rule.RedirectActio } onChanged(); } else { - if (actionCase_ == 3) { - redirectActionBuilder_.mergeFrom(value); + if (actionCase_ == 7) { + doNotAssociateActionBuilder_.mergeFrom(value); } else { - redirectActionBuilder_.setMessage(value); + doNotAssociateActionBuilder_.setMessage(value); } } - actionCase_ = 3; + actionCase_ = 7; return this; } /** * * *
-     * Redirects a shopper to a specific page.
+     * Prevents term from being associated with other terms.
      * 
* - * .google.cloud.retail.v2.Rule.RedirectAction redirect_action = 3; + * .google.cloud.retail.v2.Rule.DoNotAssociateAction do_not_associate_action = 7; */ - public Builder clearRedirectAction() { - if (redirectActionBuilder_ == null) { - if (actionCase_ == 3) { + public Builder clearDoNotAssociateAction() { + if (doNotAssociateActionBuilder_ == null) { + if (actionCase_ == 7) { actionCase_ = 0; action_ = null; onChanged(); } } else { - if (actionCase_ == 3) { + if (actionCase_ == 7) { actionCase_ = 0; action_ = null; } - redirectActionBuilder_.clear(); + doNotAssociateActionBuilder_.clear(); } return this; } @@ -9771,178 +13218,172 @@ public Builder clearRedirectAction() { * * *
-     * Redirects a shopper to a specific page.
+     * Prevents term from being associated with other terms.
      * 
* - * .google.cloud.retail.v2.Rule.RedirectAction redirect_action = 3; + * .google.cloud.retail.v2.Rule.DoNotAssociateAction do_not_associate_action = 7; */ - public com.google.cloud.retail.v2.Rule.RedirectAction.Builder getRedirectActionBuilder() { - return getRedirectActionFieldBuilder().getBuilder(); + public com.google.cloud.retail.v2.Rule.DoNotAssociateAction.Builder + getDoNotAssociateActionBuilder() { + return getDoNotAssociateActionFieldBuilder().getBuilder(); } /** * * *
-     * Redirects a shopper to a specific page.
+     * Prevents term from being associated with other terms.
      * 
* - * .google.cloud.retail.v2.Rule.RedirectAction redirect_action = 3; + * .google.cloud.retail.v2.Rule.DoNotAssociateAction do_not_associate_action = 7; */ @java.lang.Override - public com.google.cloud.retail.v2.Rule.RedirectActionOrBuilder getRedirectActionOrBuilder() { - if ((actionCase_ == 3) && (redirectActionBuilder_ != null)) { - return redirectActionBuilder_.getMessageOrBuilder(); + public com.google.cloud.retail.v2.Rule.DoNotAssociateActionOrBuilder + getDoNotAssociateActionOrBuilder() { + if ((actionCase_ == 7) && (doNotAssociateActionBuilder_ != null)) { + return doNotAssociateActionBuilder_.getMessageOrBuilder(); } else { - if (actionCase_ == 3) { - return (com.google.cloud.retail.v2.Rule.RedirectAction) action_; + if (actionCase_ == 7) { + return (com.google.cloud.retail.v2.Rule.DoNotAssociateAction) action_; } - return com.google.cloud.retail.v2.Rule.RedirectAction.getDefaultInstance(); + return com.google.cloud.retail.v2.Rule.DoNotAssociateAction.getDefaultInstance(); } } /** * * *
-     * Redirects a shopper to a specific page.
+     * Prevents term from being associated with other terms.
      * 
* - * .google.cloud.retail.v2.Rule.RedirectAction redirect_action = 3; + * .google.cloud.retail.v2.Rule.DoNotAssociateAction do_not_associate_action = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2.Rule.RedirectAction, - com.google.cloud.retail.v2.Rule.RedirectAction.Builder, - com.google.cloud.retail.v2.Rule.RedirectActionOrBuilder> - getRedirectActionFieldBuilder() { - if (redirectActionBuilder_ == null) { - if (!(actionCase_ == 3)) { - action_ = com.google.cloud.retail.v2.Rule.RedirectAction.getDefaultInstance(); + com.google.cloud.retail.v2.Rule.DoNotAssociateAction, + com.google.cloud.retail.v2.Rule.DoNotAssociateAction.Builder, + com.google.cloud.retail.v2.Rule.DoNotAssociateActionOrBuilder> + getDoNotAssociateActionFieldBuilder() { + if (doNotAssociateActionBuilder_ == null) { + if (!(actionCase_ == 7)) { + action_ = com.google.cloud.retail.v2.Rule.DoNotAssociateAction.getDefaultInstance(); } - redirectActionBuilder_ = + doNotAssociateActionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2.Rule.RedirectAction, - com.google.cloud.retail.v2.Rule.RedirectAction.Builder, - com.google.cloud.retail.v2.Rule.RedirectActionOrBuilder>( - (com.google.cloud.retail.v2.Rule.RedirectAction) action_, + com.google.cloud.retail.v2.Rule.DoNotAssociateAction, + com.google.cloud.retail.v2.Rule.DoNotAssociateAction.Builder, + com.google.cloud.retail.v2.Rule.DoNotAssociateActionOrBuilder>( + (com.google.cloud.retail.v2.Rule.DoNotAssociateAction) action_, getParentForChildren(), isClean()); action_ = null; } - actionCase_ = 3; + actionCase_ = 7; onChanged(); - return redirectActionBuilder_; + return doNotAssociateActionBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2.Rule.OnewaySynonymsAction, - com.google.cloud.retail.v2.Rule.OnewaySynonymsAction.Builder, - com.google.cloud.retail.v2.Rule.OnewaySynonymsActionOrBuilder> - onewaySynonymsActionBuilder_; + com.google.cloud.retail.v2.Rule.ReplacementAction, + com.google.cloud.retail.v2.Rule.ReplacementAction.Builder, + com.google.cloud.retail.v2.Rule.ReplacementActionOrBuilder> + replacementActionBuilder_; /** * * *
-     * Treats specific term as a synonym with a group of terms.
-     * Group of terms will not be treated as synonyms with the specific term.
+     * Replaces specific terms in the query.
      * 
* - * .google.cloud.retail.v2.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; + * .google.cloud.retail.v2.Rule.ReplacementAction replacement_action = 8; * - * @return Whether the onewaySynonymsAction field is set. + * @return Whether the replacementAction field is set. */ @java.lang.Override - public boolean hasOnewaySynonymsAction() { - return actionCase_ == 6; + public boolean hasReplacementAction() { + return actionCase_ == 8; } /** * * *
-     * Treats specific term as a synonym with a group of terms.
-     * Group of terms will not be treated as synonyms with the specific term.
+     * Replaces specific terms in the query.
      * 
* - * .google.cloud.retail.v2.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; + * .google.cloud.retail.v2.Rule.ReplacementAction replacement_action = 8; * - * @return The onewaySynonymsAction. + * @return The replacementAction. */ @java.lang.Override - public com.google.cloud.retail.v2.Rule.OnewaySynonymsAction getOnewaySynonymsAction() { - if (onewaySynonymsActionBuilder_ == null) { - if (actionCase_ == 6) { - return (com.google.cloud.retail.v2.Rule.OnewaySynonymsAction) action_; + public com.google.cloud.retail.v2.Rule.ReplacementAction getReplacementAction() { + if (replacementActionBuilder_ == null) { + if (actionCase_ == 8) { + return (com.google.cloud.retail.v2.Rule.ReplacementAction) action_; } - return com.google.cloud.retail.v2.Rule.OnewaySynonymsAction.getDefaultInstance(); + return com.google.cloud.retail.v2.Rule.ReplacementAction.getDefaultInstance(); } else { - if (actionCase_ == 6) { - return onewaySynonymsActionBuilder_.getMessage(); + if (actionCase_ == 8) { + return replacementActionBuilder_.getMessage(); } - return com.google.cloud.retail.v2.Rule.OnewaySynonymsAction.getDefaultInstance(); + return com.google.cloud.retail.v2.Rule.ReplacementAction.getDefaultInstance(); } } /** * * *
-     * Treats specific term as a synonym with a group of terms.
-     * Group of terms will not be treated as synonyms with the specific term.
+     * Replaces specific terms in the query.
      * 
* - * .google.cloud.retail.v2.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; + * .google.cloud.retail.v2.Rule.ReplacementAction replacement_action = 8; */ - public Builder setOnewaySynonymsAction( - com.google.cloud.retail.v2.Rule.OnewaySynonymsAction value) { - if (onewaySynonymsActionBuilder_ == null) { + public Builder setReplacementAction(com.google.cloud.retail.v2.Rule.ReplacementAction value) { + if (replacementActionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } action_ = value; onChanged(); } else { - onewaySynonymsActionBuilder_.setMessage(value); + replacementActionBuilder_.setMessage(value); } - actionCase_ = 6; + actionCase_ = 8; return this; } /** * * *
-     * Treats specific term as a synonym with a group of terms.
-     * Group of terms will not be treated as synonyms with the specific term.
+     * Replaces specific terms in the query.
      * 
* - * .google.cloud.retail.v2.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; + * .google.cloud.retail.v2.Rule.ReplacementAction replacement_action = 8; */ - public Builder setOnewaySynonymsAction( - com.google.cloud.retail.v2.Rule.OnewaySynonymsAction.Builder builderForValue) { - if (onewaySynonymsActionBuilder_ == null) { + public Builder setReplacementAction( + com.google.cloud.retail.v2.Rule.ReplacementAction.Builder builderForValue) { + if (replacementActionBuilder_ == null) { action_ = builderForValue.build(); onChanged(); } else { - onewaySynonymsActionBuilder_.setMessage(builderForValue.build()); + replacementActionBuilder_.setMessage(builderForValue.build()); } - actionCase_ = 6; + actionCase_ = 8; return this; } /** * * *
-     * Treats specific term as a synonym with a group of terms.
-     * Group of terms will not be treated as synonyms with the specific term.
-     * 
- * - * .google.cloud.retail.v2.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; - */ - public Builder mergeOnewaySynonymsAction( - com.google.cloud.retail.v2.Rule.OnewaySynonymsAction value) { - if (onewaySynonymsActionBuilder_ == null) { - if (actionCase_ == 6 - && action_ - != com.google.cloud.retail.v2.Rule.OnewaySynonymsAction.getDefaultInstance()) { + * Replaces specific terms in the query. + *
+ * + * .google.cloud.retail.v2.Rule.ReplacementAction replacement_action = 8; + */ + public Builder mergeReplacementAction(com.google.cloud.retail.v2.Rule.ReplacementAction value) { + if (replacementActionBuilder_ == null) { + if (actionCase_ == 8 + && action_ != com.google.cloud.retail.v2.Rule.ReplacementAction.getDefaultInstance()) { action_ = - com.google.cloud.retail.v2.Rule.OnewaySynonymsAction.newBuilder( - (com.google.cloud.retail.v2.Rule.OnewaySynonymsAction) action_) + com.google.cloud.retail.v2.Rule.ReplacementAction.newBuilder( + (com.google.cloud.retail.v2.Rule.ReplacementAction) action_) .mergeFrom(value) .buildPartial(); } else { @@ -9950,38 +13391,37 @@ public Builder mergeOnewaySynonymsAction( } onChanged(); } else { - if (actionCase_ == 6) { - onewaySynonymsActionBuilder_.mergeFrom(value); + if (actionCase_ == 8) { + replacementActionBuilder_.mergeFrom(value); } else { - onewaySynonymsActionBuilder_.setMessage(value); + replacementActionBuilder_.setMessage(value); } } - actionCase_ = 6; + actionCase_ = 8; return this; } /** * * *
-     * Treats specific term as a synonym with a group of terms.
-     * Group of terms will not be treated as synonyms with the specific term.
+     * Replaces specific terms in the query.
      * 
* - * .google.cloud.retail.v2.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; + * .google.cloud.retail.v2.Rule.ReplacementAction replacement_action = 8; */ - public Builder clearOnewaySynonymsAction() { - if (onewaySynonymsActionBuilder_ == null) { - if (actionCase_ == 6) { + public Builder clearReplacementAction() { + if (replacementActionBuilder_ == null) { + if (actionCase_ == 8) { actionCase_ = 0; action_ = null; onChanged(); } } else { - if (actionCase_ == 6) { + if (actionCase_ == 8) { actionCase_ = 0; action_ = null; } - onewaySynonymsActionBuilder_.clear(); + replacementActionBuilder_.clear(); } return this; } @@ -9989,178 +13429,171 @@ public Builder clearOnewaySynonymsAction() { * * *
-     * Treats specific term as a synonym with a group of terms.
-     * Group of terms will not be treated as synonyms with the specific term.
+     * Replaces specific terms in the query.
      * 
* - * .google.cloud.retail.v2.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; + * .google.cloud.retail.v2.Rule.ReplacementAction replacement_action = 8; */ - public com.google.cloud.retail.v2.Rule.OnewaySynonymsAction.Builder - getOnewaySynonymsActionBuilder() { - return getOnewaySynonymsActionFieldBuilder().getBuilder(); + public com.google.cloud.retail.v2.Rule.ReplacementAction.Builder getReplacementActionBuilder() { + return getReplacementActionFieldBuilder().getBuilder(); } /** * * *
-     * Treats specific term as a synonym with a group of terms.
-     * Group of terms will not be treated as synonyms with the specific term.
+     * Replaces specific terms in the query.
      * 
* - * .google.cloud.retail.v2.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; + * .google.cloud.retail.v2.Rule.ReplacementAction replacement_action = 8; */ @java.lang.Override - public com.google.cloud.retail.v2.Rule.OnewaySynonymsActionOrBuilder - getOnewaySynonymsActionOrBuilder() { - if ((actionCase_ == 6) && (onewaySynonymsActionBuilder_ != null)) { - return onewaySynonymsActionBuilder_.getMessageOrBuilder(); + public com.google.cloud.retail.v2.Rule.ReplacementActionOrBuilder + getReplacementActionOrBuilder() { + if ((actionCase_ == 8) && (replacementActionBuilder_ != null)) { + return replacementActionBuilder_.getMessageOrBuilder(); } else { - if (actionCase_ == 6) { - return (com.google.cloud.retail.v2.Rule.OnewaySynonymsAction) action_; + if (actionCase_ == 8) { + return (com.google.cloud.retail.v2.Rule.ReplacementAction) action_; } - return com.google.cloud.retail.v2.Rule.OnewaySynonymsAction.getDefaultInstance(); + return com.google.cloud.retail.v2.Rule.ReplacementAction.getDefaultInstance(); } } /** * * *
-     * Treats specific term as a synonym with a group of terms.
-     * Group of terms will not be treated as synonyms with the specific term.
+     * Replaces specific terms in the query.
      * 
* - * .google.cloud.retail.v2.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; + * .google.cloud.retail.v2.Rule.ReplacementAction replacement_action = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2.Rule.OnewaySynonymsAction, - com.google.cloud.retail.v2.Rule.OnewaySynonymsAction.Builder, - com.google.cloud.retail.v2.Rule.OnewaySynonymsActionOrBuilder> - getOnewaySynonymsActionFieldBuilder() { - if (onewaySynonymsActionBuilder_ == null) { - if (!(actionCase_ == 6)) { - action_ = com.google.cloud.retail.v2.Rule.OnewaySynonymsAction.getDefaultInstance(); + com.google.cloud.retail.v2.Rule.ReplacementAction, + com.google.cloud.retail.v2.Rule.ReplacementAction.Builder, + com.google.cloud.retail.v2.Rule.ReplacementActionOrBuilder> + getReplacementActionFieldBuilder() { + if (replacementActionBuilder_ == null) { + if (!(actionCase_ == 8)) { + action_ = com.google.cloud.retail.v2.Rule.ReplacementAction.getDefaultInstance(); } - onewaySynonymsActionBuilder_ = + replacementActionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2.Rule.OnewaySynonymsAction, - com.google.cloud.retail.v2.Rule.OnewaySynonymsAction.Builder, - com.google.cloud.retail.v2.Rule.OnewaySynonymsActionOrBuilder>( - (com.google.cloud.retail.v2.Rule.OnewaySynonymsAction) action_, + com.google.cloud.retail.v2.Rule.ReplacementAction, + com.google.cloud.retail.v2.Rule.ReplacementAction.Builder, + com.google.cloud.retail.v2.Rule.ReplacementActionOrBuilder>( + (com.google.cloud.retail.v2.Rule.ReplacementAction) action_, getParentForChildren(), isClean()); action_ = null; } - actionCase_ = 6; + actionCase_ = 8; onChanged(); - return onewaySynonymsActionBuilder_; + return replacementActionBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2.Rule.DoNotAssociateAction, - com.google.cloud.retail.v2.Rule.DoNotAssociateAction.Builder, - com.google.cloud.retail.v2.Rule.DoNotAssociateActionOrBuilder> - doNotAssociateActionBuilder_; + com.google.cloud.retail.v2.Rule.IgnoreAction, + com.google.cloud.retail.v2.Rule.IgnoreAction.Builder, + com.google.cloud.retail.v2.Rule.IgnoreActionOrBuilder> + ignoreActionBuilder_; /** * * *
-     * Prevents term from being associated with other terms.
+     * Ignores specific terms from query during search.
      * 
* - * .google.cloud.retail.v2.Rule.DoNotAssociateAction do_not_associate_action = 7; + * .google.cloud.retail.v2.Rule.IgnoreAction ignore_action = 9; * - * @return Whether the doNotAssociateAction field is set. + * @return Whether the ignoreAction field is set. */ @java.lang.Override - public boolean hasDoNotAssociateAction() { - return actionCase_ == 7; + public boolean hasIgnoreAction() { + return actionCase_ == 9; } /** * * *
-     * Prevents term from being associated with other terms.
+     * Ignores specific terms from query during search.
      * 
* - * .google.cloud.retail.v2.Rule.DoNotAssociateAction do_not_associate_action = 7; + * .google.cloud.retail.v2.Rule.IgnoreAction ignore_action = 9; * - * @return The doNotAssociateAction. + * @return The ignoreAction. */ @java.lang.Override - public com.google.cloud.retail.v2.Rule.DoNotAssociateAction getDoNotAssociateAction() { - if (doNotAssociateActionBuilder_ == null) { - if (actionCase_ == 7) { - return (com.google.cloud.retail.v2.Rule.DoNotAssociateAction) action_; + public com.google.cloud.retail.v2.Rule.IgnoreAction getIgnoreAction() { + if (ignoreActionBuilder_ == null) { + if (actionCase_ == 9) { + return (com.google.cloud.retail.v2.Rule.IgnoreAction) action_; } - return com.google.cloud.retail.v2.Rule.DoNotAssociateAction.getDefaultInstance(); + return com.google.cloud.retail.v2.Rule.IgnoreAction.getDefaultInstance(); } else { - if (actionCase_ == 7) { - return doNotAssociateActionBuilder_.getMessage(); + if (actionCase_ == 9) { + return ignoreActionBuilder_.getMessage(); } - return com.google.cloud.retail.v2.Rule.DoNotAssociateAction.getDefaultInstance(); + return com.google.cloud.retail.v2.Rule.IgnoreAction.getDefaultInstance(); } } /** * * *
-     * Prevents term from being associated with other terms.
+     * Ignores specific terms from query during search.
      * 
* - * .google.cloud.retail.v2.Rule.DoNotAssociateAction do_not_associate_action = 7; + * .google.cloud.retail.v2.Rule.IgnoreAction ignore_action = 9; */ - public Builder setDoNotAssociateAction( - com.google.cloud.retail.v2.Rule.DoNotAssociateAction value) { - if (doNotAssociateActionBuilder_ == null) { + public Builder setIgnoreAction(com.google.cloud.retail.v2.Rule.IgnoreAction value) { + if (ignoreActionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } action_ = value; onChanged(); } else { - doNotAssociateActionBuilder_.setMessage(value); + ignoreActionBuilder_.setMessage(value); } - actionCase_ = 7; + actionCase_ = 9; return this; } /** * * *
-     * Prevents term from being associated with other terms.
+     * Ignores specific terms from query during search.
      * 
* - * .google.cloud.retail.v2.Rule.DoNotAssociateAction do_not_associate_action = 7; + * .google.cloud.retail.v2.Rule.IgnoreAction ignore_action = 9; */ - public Builder setDoNotAssociateAction( - com.google.cloud.retail.v2.Rule.DoNotAssociateAction.Builder builderForValue) { - if (doNotAssociateActionBuilder_ == null) { + public Builder setIgnoreAction( + com.google.cloud.retail.v2.Rule.IgnoreAction.Builder builderForValue) { + if (ignoreActionBuilder_ == null) { action_ = builderForValue.build(); onChanged(); } else { - doNotAssociateActionBuilder_.setMessage(builderForValue.build()); + ignoreActionBuilder_.setMessage(builderForValue.build()); } - actionCase_ = 7; + actionCase_ = 9; return this; } /** * * *
-     * Prevents term from being associated with other terms.
+     * Ignores specific terms from query during search.
      * 
* - * .google.cloud.retail.v2.Rule.DoNotAssociateAction do_not_associate_action = 7; + * .google.cloud.retail.v2.Rule.IgnoreAction ignore_action = 9; */ - public Builder mergeDoNotAssociateAction( - com.google.cloud.retail.v2.Rule.DoNotAssociateAction value) { - if (doNotAssociateActionBuilder_ == null) { - if (actionCase_ == 7 - && action_ - != com.google.cloud.retail.v2.Rule.DoNotAssociateAction.getDefaultInstance()) { + public Builder mergeIgnoreAction(com.google.cloud.retail.v2.Rule.IgnoreAction value) { + if (ignoreActionBuilder_ == null) { + if (actionCase_ == 9 + && action_ != com.google.cloud.retail.v2.Rule.IgnoreAction.getDefaultInstance()) { action_ = - com.google.cloud.retail.v2.Rule.DoNotAssociateAction.newBuilder( - (com.google.cloud.retail.v2.Rule.DoNotAssociateAction) action_) + com.google.cloud.retail.v2.Rule.IgnoreAction.newBuilder( + (com.google.cloud.retail.v2.Rule.IgnoreAction) action_) .mergeFrom(value) .buildPartial(); } else { @@ -10168,37 +13601,37 @@ public Builder mergeDoNotAssociateAction( } onChanged(); } else { - if (actionCase_ == 7) { - doNotAssociateActionBuilder_.mergeFrom(value); + if (actionCase_ == 9) { + ignoreActionBuilder_.mergeFrom(value); } else { - doNotAssociateActionBuilder_.setMessage(value); + ignoreActionBuilder_.setMessage(value); } } - actionCase_ = 7; + actionCase_ = 9; return this; } /** * * *
-     * Prevents term from being associated with other terms.
+     * Ignores specific terms from query during search.
      * 
* - * .google.cloud.retail.v2.Rule.DoNotAssociateAction do_not_associate_action = 7; + * .google.cloud.retail.v2.Rule.IgnoreAction ignore_action = 9; */ - public Builder clearDoNotAssociateAction() { - if (doNotAssociateActionBuilder_ == null) { - if (actionCase_ == 7) { + public Builder clearIgnoreAction() { + if (ignoreActionBuilder_ == null) { + if (actionCase_ == 9) { actionCase_ = 0; action_ = null; onChanged(); } } else { - if (actionCase_ == 7) { + if (actionCase_ == 9) { actionCase_ = 0; action_ = null; } - doNotAssociateActionBuilder_.clear(); + ignoreActionBuilder_.clear(); } return this; } @@ -10206,172 +13639,170 @@ public Builder clearDoNotAssociateAction() { * * *
-     * Prevents term from being associated with other terms.
+     * Ignores specific terms from query during search.
      * 
* - * .google.cloud.retail.v2.Rule.DoNotAssociateAction do_not_associate_action = 7; + * .google.cloud.retail.v2.Rule.IgnoreAction ignore_action = 9; */ - public com.google.cloud.retail.v2.Rule.DoNotAssociateAction.Builder - getDoNotAssociateActionBuilder() { - return getDoNotAssociateActionFieldBuilder().getBuilder(); + public com.google.cloud.retail.v2.Rule.IgnoreAction.Builder getIgnoreActionBuilder() { + return getIgnoreActionFieldBuilder().getBuilder(); } /** * * *
-     * Prevents term from being associated with other terms.
+     * Ignores specific terms from query during search.
      * 
* - * .google.cloud.retail.v2.Rule.DoNotAssociateAction do_not_associate_action = 7; + * .google.cloud.retail.v2.Rule.IgnoreAction ignore_action = 9; */ @java.lang.Override - public com.google.cloud.retail.v2.Rule.DoNotAssociateActionOrBuilder - getDoNotAssociateActionOrBuilder() { - if ((actionCase_ == 7) && (doNotAssociateActionBuilder_ != null)) { - return doNotAssociateActionBuilder_.getMessageOrBuilder(); + public com.google.cloud.retail.v2.Rule.IgnoreActionOrBuilder getIgnoreActionOrBuilder() { + if ((actionCase_ == 9) && (ignoreActionBuilder_ != null)) { + return ignoreActionBuilder_.getMessageOrBuilder(); } else { - if (actionCase_ == 7) { - return (com.google.cloud.retail.v2.Rule.DoNotAssociateAction) action_; + if (actionCase_ == 9) { + return (com.google.cloud.retail.v2.Rule.IgnoreAction) action_; } - return com.google.cloud.retail.v2.Rule.DoNotAssociateAction.getDefaultInstance(); + return com.google.cloud.retail.v2.Rule.IgnoreAction.getDefaultInstance(); } } /** * * *
-     * Prevents term from being associated with other terms.
+     * Ignores specific terms from query during search.
      * 
* - * .google.cloud.retail.v2.Rule.DoNotAssociateAction do_not_associate_action = 7; + * .google.cloud.retail.v2.Rule.IgnoreAction ignore_action = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2.Rule.DoNotAssociateAction, - com.google.cloud.retail.v2.Rule.DoNotAssociateAction.Builder, - com.google.cloud.retail.v2.Rule.DoNotAssociateActionOrBuilder> - getDoNotAssociateActionFieldBuilder() { - if (doNotAssociateActionBuilder_ == null) { - if (!(actionCase_ == 7)) { - action_ = com.google.cloud.retail.v2.Rule.DoNotAssociateAction.getDefaultInstance(); + com.google.cloud.retail.v2.Rule.IgnoreAction, + com.google.cloud.retail.v2.Rule.IgnoreAction.Builder, + com.google.cloud.retail.v2.Rule.IgnoreActionOrBuilder> + getIgnoreActionFieldBuilder() { + if (ignoreActionBuilder_ == null) { + if (!(actionCase_ == 9)) { + action_ = com.google.cloud.retail.v2.Rule.IgnoreAction.getDefaultInstance(); } - doNotAssociateActionBuilder_ = + ignoreActionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2.Rule.DoNotAssociateAction, - com.google.cloud.retail.v2.Rule.DoNotAssociateAction.Builder, - com.google.cloud.retail.v2.Rule.DoNotAssociateActionOrBuilder>( - (com.google.cloud.retail.v2.Rule.DoNotAssociateAction) action_, + com.google.cloud.retail.v2.Rule.IgnoreAction, + com.google.cloud.retail.v2.Rule.IgnoreAction.Builder, + com.google.cloud.retail.v2.Rule.IgnoreActionOrBuilder>( + (com.google.cloud.retail.v2.Rule.IgnoreAction) action_, getParentForChildren(), isClean()); action_ = null; } - actionCase_ = 7; + actionCase_ = 9; onChanged(); - return doNotAssociateActionBuilder_; + return ignoreActionBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2.Rule.ReplacementAction, - com.google.cloud.retail.v2.Rule.ReplacementAction.Builder, - com.google.cloud.retail.v2.Rule.ReplacementActionOrBuilder> - replacementActionBuilder_; + com.google.cloud.retail.v2.Rule.FilterAction, + com.google.cloud.retail.v2.Rule.FilterAction.Builder, + com.google.cloud.retail.v2.Rule.FilterActionOrBuilder> + filterActionBuilder_; /** * * *
-     * Replaces specific terms in the query.
+     * Filters results.
      * 
* - * .google.cloud.retail.v2.Rule.ReplacementAction replacement_action = 8; + * .google.cloud.retail.v2.Rule.FilterAction filter_action = 10; * - * @return Whether the replacementAction field is set. + * @return Whether the filterAction field is set. */ @java.lang.Override - public boolean hasReplacementAction() { - return actionCase_ == 8; + public boolean hasFilterAction() { + return actionCase_ == 10; } /** * * *
-     * Replaces specific terms in the query.
+     * Filters results.
      * 
* - * .google.cloud.retail.v2.Rule.ReplacementAction replacement_action = 8; + * .google.cloud.retail.v2.Rule.FilterAction filter_action = 10; * - * @return The replacementAction. + * @return The filterAction. */ @java.lang.Override - public com.google.cloud.retail.v2.Rule.ReplacementAction getReplacementAction() { - if (replacementActionBuilder_ == null) { - if (actionCase_ == 8) { - return (com.google.cloud.retail.v2.Rule.ReplacementAction) action_; + public com.google.cloud.retail.v2.Rule.FilterAction getFilterAction() { + if (filterActionBuilder_ == null) { + if (actionCase_ == 10) { + return (com.google.cloud.retail.v2.Rule.FilterAction) action_; } - return com.google.cloud.retail.v2.Rule.ReplacementAction.getDefaultInstance(); + return com.google.cloud.retail.v2.Rule.FilterAction.getDefaultInstance(); } else { - if (actionCase_ == 8) { - return replacementActionBuilder_.getMessage(); + if (actionCase_ == 10) { + return filterActionBuilder_.getMessage(); } - return com.google.cloud.retail.v2.Rule.ReplacementAction.getDefaultInstance(); + return com.google.cloud.retail.v2.Rule.FilterAction.getDefaultInstance(); } } /** * * *
-     * Replaces specific terms in the query.
+     * Filters results.
      * 
* - * .google.cloud.retail.v2.Rule.ReplacementAction replacement_action = 8; + * .google.cloud.retail.v2.Rule.FilterAction filter_action = 10; */ - public Builder setReplacementAction(com.google.cloud.retail.v2.Rule.ReplacementAction value) { - if (replacementActionBuilder_ == null) { + public Builder setFilterAction(com.google.cloud.retail.v2.Rule.FilterAction value) { + if (filterActionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } action_ = value; onChanged(); } else { - replacementActionBuilder_.setMessage(value); + filterActionBuilder_.setMessage(value); } - actionCase_ = 8; + actionCase_ = 10; return this; } /** * * *
-     * Replaces specific terms in the query.
+     * Filters results.
      * 
* - * .google.cloud.retail.v2.Rule.ReplacementAction replacement_action = 8; + * .google.cloud.retail.v2.Rule.FilterAction filter_action = 10; */ - public Builder setReplacementAction( - com.google.cloud.retail.v2.Rule.ReplacementAction.Builder builderForValue) { - if (replacementActionBuilder_ == null) { + public Builder setFilterAction( + com.google.cloud.retail.v2.Rule.FilterAction.Builder builderForValue) { + if (filterActionBuilder_ == null) { action_ = builderForValue.build(); onChanged(); } else { - replacementActionBuilder_.setMessage(builderForValue.build()); + filterActionBuilder_.setMessage(builderForValue.build()); } - actionCase_ = 8; + actionCase_ = 10; return this; } /** * * *
-     * Replaces specific terms in the query.
+     * Filters results.
      * 
* - * .google.cloud.retail.v2.Rule.ReplacementAction replacement_action = 8; + * .google.cloud.retail.v2.Rule.FilterAction filter_action = 10; */ - public Builder mergeReplacementAction(com.google.cloud.retail.v2.Rule.ReplacementAction value) { - if (replacementActionBuilder_ == null) { - if (actionCase_ == 8 - && action_ != com.google.cloud.retail.v2.Rule.ReplacementAction.getDefaultInstance()) { + public Builder mergeFilterAction(com.google.cloud.retail.v2.Rule.FilterAction value) { + if (filterActionBuilder_ == null) { + if (actionCase_ == 10 + && action_ != com.google.cloud.retail.v2.Rule.FilterAction.getDefaultInstance()) { action_ = - com.google.cloud.retail.v2.Rule.ReplacementAction.newBuilder( - (com.google.cloud.retail.v2.Rule.ReplacementAction) action_) + com.google.cloud.retail.v2.Rule.FilterAction.newBuilder( + (com.google.cloud.retail.v2.Rule.FilterAction) action_) .mergeFrom(value) .buildPartial(); } else { @@ -10379,37 +13810,37 @@ public Builder mergeReplacementAction(com.google.cloud.retail.v2.Rule.Replacemen } onChanged(); } else { - if (actionCase_ == 8) { - replacementActionBuilder_.mergeFrom(value); + if (actionCase_ == 10) { + filterActionBuilder_.mergeFrom(value); } else { - replacementActionBuilder_.setMessage(value); + filterActionBuilder_.setMessage(value); } } - actionCase_ = 8; + actionCase_ = 10; return this; } /** * * *
-     * Replaces specific terms in the query.
+     * Filters results.
      * 
* - * .google.cloud.retail.v2.Rule.ReplacementAction replacement_action = 8; + * .google.cloud.retail.v2.Rule.FilterAction filter_action = 10; */ - public Builder clearReplacementAction() { - if (replacementActionBuilder_ == null) { - if (actionCase_ == 8) { + public Builder clearFilterAction() { + if (filterActionBuilder_ == null) { + if (actionCase_ == 10) { actionCase_ = 0; action_ = null; onChanged(); } } else { - if (actionCase_ == 8) { + if (actionCase_ == 10) { actionCase_ = 0; action_ = null; } - replacementActionBuilder_.clear(); + filterActionBuilder_.clear(); } return this; } @@ -10417,209 +13848,211 @@ public Builder clearReplacementAction() { * * *
-     * Replaces specific terms in the query.
+     * Filters results.
      * 
* - * .google.cloud.retail.v2.Rule.ReplacementAction replacement_action = 8; + * .google.cloud.retail.v2.Rule.FilterAction filter_action = 10; */ - public com.google.cloud.retail.v2.Rule.ReplacementAction.Builder getReplacementActionBuilder() { - return getReplacementActionFieldBuilder().getBuilder(); + public com.google.cloud.retail.v2.Rule.FilterAction.Builder getFilterActionBuilder() { + return getFilterActionFieldBuilder().getBuilder(); } /** * * *
-     * Replaces specific terms in the query.
+     * Filters results.
      * 
* - * .google.cloud.retail.v2.Rule.ReplacementAction replacement_action = 8; + * .google.cloud.retail.v2.Rule.FilterAction filter_action = 10; */ @java.lang.Override - public com.google.cloud.retail.v2.Rule.ReplacementActionOrBuilder - getReplacementActionOrBuilder() { - if ((actionCase_ == 8) && (replacementActionBuilder_ != null)) { - return replacementActionBuilder_.getMessageOrBuilder(); + public com.google.cloud.retail.v2.Rule.FilterActionOrBuilder getFilterActionOrBuilder() { + if ((actionCase_ == 10) && (filterActionBuilder_ != null)) { + return filterActionBuilder_.getMessageOrBuilder(); } else { - if (actionCase_ == 8) { - return (com.google.cloud.retail.v2.Rule.ReplacementAction) action_; + if (actionCase_ == 10) { + return (com.google.cloud.retail.v2.Rule.FilterAction) action_; } - return com.google.cloud.retail.v2.Rule.ReplacementAction.getDefaultInstance(); + return com.google.cloud.retail.v2.Rule.FilterAction.getDefaultInstance(); } } /** * * *
-     * Replaces specific terms in the query.
+     * Filters results.
      * 
* - * .google.cloud.retail.v2.Rule.ReplacementAction replacement_action = 8; + * .google.cloud.retail.v2.Rule.FilterAction filter_action = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2.Rule.ReplacementAction, - com.google.cloud.retail.v2.Rule.ReplacementAction.Builder, - com.google.cloud.retail.v2.Rule.ReplacementActionOrBuilder> - getReplacementActionFieldBuilder() { - if (replacementActionBuilder_ == null) { - if (!(actionCase_ == 8)) { - action_ = com.google.cloud.retail.v2.Rule.ReplacementAction.getDefaultInstance(); + com.google.cloud.retail.v2.Rule.FilterAction, + com.google.cloud.retail.v2.Rule.FilterAction.Builder, + com.google.cloud.retail.v2.Rule.FilterActionOrBuilder> + getFilterActionFieldBuilder() { + if (filterActionBuilder_ == null) { + if (!(actionCase_ == 10)) { + action_ = com.google.cloud.retail.v2.Rule.FilterAction.getDefaultInstance(); } - replacementActionBuilder_ = + filterActionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2.Rule.ReplacementAction, - com.google.cloud.retail.v2.Rule.ReplacementAction.Builder, - com.google.cloud.retail.v2.Rule.ReplacementActionOrBuilder>( - (com.google.cloud.retail.v2.Rule.ReplacementAction) action_, + com.google.cloud.retail.v2.Rule.FilterAction, + com.google.cloud.retail.v2.Rule.FilterAction.Builder, + com.google.cloud.retail.v2.Rule.FilterActionOrBuilder>( + (com.google.cloud.retail.v2.Rule.FilterAction) action_, getParentForChildren(), isClean()); action_ = null; } - actionCase_ = 8; + actionCase_ = 10; onChanged(); - return replacementActionBuilder_; + return filterActionBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2.Rule.IgnoreAction, - com.google.cloud.retail.v2.Rule.IgnoreAction.Builder, - com.google.cloud.retail.v2.Rule.IgnoreActionOrBuilder> - ignoreActionBuilder_; + com.google.cloud.retail.v2.Rule.TwowaySynonymsAction, + com.google.cloud.retail.v2.Rule.TwowaySynonymsAction.Builder, + com.google.cloud.retail.v2.Rule.TwowaySynonymsActionOrBuilder> + twowaySynonymsActionBuilder_; /** * * *
-     * Ignores specific terms from query during search.
+     * Treats a set of terms as synonyms of one another.
      * 
* - * .google.cloud.retail.v2.Rule.IgnoreAction ignore_action = 9; + * .google.cloud.retail.v2.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; * - * @return Whether the ignoreAction field is set. + * @return Whether the twowaySynonymsAction field is set. */ @java.lang.Override - public boolean hasIgnoreAction() { - return actionCase_ == 9; + public boolean hasTwowaySynonymsAction() { + return actionCase_ == 11; } /** * * *
-     * Ignores specific terms from query during search.
+     * Treats a set of terms as synonyms of one another.
      * 
* - * .google.cloud.retail.v2.Rule.IgnoreAction ignore_action = 9; + * .google.cloud.retail.v2.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; * - * @return The ignoreAction. + * @return The twowaySynonymsAction. */ @java.lang.Override - public com.google.cloud.retail.v2.Rule.IgnoreAction getIgnoreAction() { - if (ignoreActionBuilder_ == null) { - if (actionCase_ == 9) { - return (com.google.cloud.retail.v2.Rule.IgnoreAction) action_; + public com.google.cloud.retail.v2.Rule.TwowaySynonymsAction getTwowaySynonymsAction() { + if (twowaySynonymsActionBuilder_ == null) { + if (actionCase_ == 11) { + return (com.google.cloud.retail.v2.Rule.TwowaySynonymsAction) action_; } - return com.google.cloud.retail.v2.Rule.IgnoreAction.getDefaultInstance(); + return com.google.cloud.retail.v2.Rule.TwowaySynonymsAction.getDefaultInstance(); } else { - if (actionCase_ == 9) { - return ignoreActionBuilder_.getMessage(); + if (actionCase_ == 11) { + return twowaySynonymsActionBuilder_.getMessage(); } - return com.google.cloud.retail.v2.Rule.IgnoreAction.getDefaultInstance(); + return com.google.cloud.retail.v2.Rule.TwowaySynonymsAction.getDefaultInstance(); } } /** * * *
-     * Ignores specific terms from query during search.
+     * Treats a set of terms as synonyms of one another.
      * 
* - * .google.cloud.retail.v2.Rule.IgnoreAction ignore_action = 9; + * .google.cloud.retail.v2.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; */ - public Builder setIgnoreAction(com.google.cloud.retail.v2.Rule.IgnoreAction value) { - if (ignoreActionBuilder_ == null) { + public Builder setTwowaySynonymsAction( + com.google.cloud.retail.v2.Rule.TwowaySynonymsAction value) { + if (twowaySynonymsActionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } action_ = value; onChanged(); } else { - ignoreActionBuilder_.setMessage(value); + twowaySynonymsActionBuilder_.setMessage(value); } - actionCase_ = 9; + actionCase_ = 11; return this; } /** * * *
-     * Ignores specific terms from query during search.
+     * Treats a set of terms as synonyms of one another.
      * 
* - * .google.cloud.retail.v2.Rule.IgnoreAction ignore_action = 9; + * .google.cloud.retail.v2.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; */ - public Builder setIgnoreAction( - com.google.cloud.retail.v2.Rule.IgnoreAction.Builder builderForValue) { - if (ignoreActionBuilder_ == null) { + public Builder setTwowaySynonymsAction( + com.google.cloud.retail.v2.Rule.TwowaySynonymsAction.Builder builderForValue) { + if (twowaySynonymsActionBuilder_ == null) { action_ = builderForValue.build(); onChanged(); } else { - ignoreActionBuilder_.setMessage(builderForValue.build()); + twowaySynonymsActionBuilder_.setMessage(builderForValue.build()); } - actionCase_ = 9; + actionCase_ = 11; return this; } /** * * *
-     * Ignores specific terms from query during search.
+     * Treats a set of terms as synonyms of one another.
      * 
* - * .google.cloud.retail.v2.Rule.IgnoreAction ignore_action = 9; + * .google.cloud.retail.v2.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; */ - public Builder mergeIgnoreAction(com.google.cloud.retail.v2.Rule.IgnoreAction value) { - if (ignoreActionBuilder_ == null) { - if (actionCase_ == 9 - && action_ != com.google.cloud.retail.v2.Rule.IgnoreAction.getDefaultInstance()) { + public Builder mergeTwowaySynonymsAction( + com.google.cloud.retail.v2.Rule.TwowaySynonymsAction value) { + if (twowaySynonymsActionBuilder_ == null) { + if (actionCase_ == 11 + && action_ + != com.google.cloud.retail.v2.Rule.TwowaySynonymsAction.getDefaultInstance()) { action_ = - com.google.cloud.retail.v2.Rule.IgnoreAction.newBuilder( - (com.google.cloud.retail.v2.Rule.IgnoreAction) action_) + com.google.cloud.retail.v2.Rule.TwowaySynonymsAction.newBuilder( + (com.google.cloud.retail.v2.Rule.TwowaySynonymsAction) action_) .mergeFrom(value) .buildPartial(); } else { action_ = value; } onChanged(); - } else { - if (actionCase_ == 9) { - ignoreActionBuilder_.mergeFrom(value); + } else { + if (actionCase_ == 11) { + twowaySynonymsActionBuilder_.mergeFrom(value); } else { - ignoreActionBuilder_.setMessage(value); + twowaySynonymsActionBuilder_.setMessage(value); } } - actionCase_ = 9; + actionCase_ = 11; return this; } /** * * *
-     * Ignores specific terms from query during search.
+     * Treats a set of terms as synonyms of one another.
      * 
* - * .google.cloud.retail.v2.Rule.IgnoreAction ignore_action = 9; + * .google.cloud.retail.v2.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; */ - public Builder clearIgnoreAction() { - if (ignoreActionBuilder_ == null) { - if (actionCase_ == 9) { + public Builder clearTwowaySynonymsAction() { + if (twowaySynonymsActionBuilder_ == null) { + if (actionCase_ == 11) { actionCase_ = 0; action_ = null; onChanged(); } } else { - if (actionCase_ == 9) { + if (actionCase_ == 11) { actionCase_ = 0; action_ = null; } - ignoreActionBuilder_.clear(); + twowaySynonymsActionBuilder_.clear(); } return this; } @@ -10627,170 +14060,180 @@ public Builder clearIgnoreAction() { * * *
-     * Ignores specific terms from query during search.
+     * Treats a set of terms as synonyms of one another.
      * 
* - * .google.cloud.retail.v2.Rule.IgnoreAction ignore_action = 9; + * .google.cloud.retail.v2.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; */ - public com.google.cloud.retail.v2.Rule.IgnoreAction.Builder getIgnoreActionBuilder() { - return getIgnoreActionFieldBuilder().getBuilder(); + public com.google.cloud.retail.v2.Rule.TwowaySynonymsAction.Builder + getTwowaySynonymsActionBuilder() { + return getTwowaySynonymsActionFieldBuilder().getBuilder(); } /** * * *
-     * Ignores specific terms from query during search.
+     * Treats a set of terms as synonyms of one another.
      * 
* - * .google.cloud.retail.v2.Rule.IgnoreAction ignore_action = 9; + * .google.cloud.retail.v2.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; */ @java.lang.Override - public com.google.cloud.retail.v2.Rule.IgnoreActionOrBuilder getIgnoreActionOrBuilder() { - if ((actionCase_ == 9) && (ignoreActionBuilder_ != null)) { - return ignoreActionBuilder_.getMessageOrBuilder(); + public com.google.cloud.retail.v2.Rule.TwowaySynonymsActionOrBuilder + getTwowaySynonymsActionOrBuilder() { + if ((actionCase_ == 11) && (twowaySynonymsActionBuilder_ != null)) { + return twowaySynonymsActionBuilder_.getMessageOrBuilder(); } else { - if (actionCase_ == 9) { - return (com.google.cloud.retail.v2.Rule.IgnoreAction) action_; + if (actionCase_ == 11) { + return (com.google.cloud.retail.v2.Rule.TwowaySynonymsAction) action_; } - return com.google.cloud.retail.v2.Rule.IgnoreAction.getDefaultInstance(); + return com.google.cloud.retail.v2.Rule.TwowaySynonymsAction.getDefaultInstance(); } } /** * * *
-     * Ignores specific terms from query during search.
+     * Treats a set of terms as synonyms of one another.
      * 
* - * .google.cloud.retail.v2.Rule.IgnoreAction ignore_action = 9; + * .google.cloud.retail.v2.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2.Rule.IgnoreAction, - com.google.cloud.retail.v2.Rule.IgnoreAction.Builder, - com.google.cloud.retail.v2.Rule.IgnoreActionOrBuilder> - getIgnoreActionFieldBuilder() { - if (ignoreActionBuilder_ == null) { - if (!(actionCase_ == 9)) { - action_ = com.google.cloud.retail.v2.Rule.IgnoreAction.getDefaultInstance(); + com.google.cloud.retail.v2.Rule.TwowaySynonymsAction, + com.google.cloud.retail.v2.Rule.TwowaySynonymsAction.Builder, + com.google.cloud.retail.v2.Rule.TwowaySynonymsActionOrBuilder> + getTwowaySynonymsActionFieldBuilder() { + if (twowaySynonymsActionBuilder_ == null) { + if (!(actionCase_ == 11)) { + action_ = com.google.cloud.retail.v2.Rule.TwowaySynonymsAction.getDefaultInstance(); } - ignoreActionBuilder_ = + twowaySynonymsActionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2.Rule.IgnoreAction, - com.google.cloud.retail.v2.Rule.IgnoreAction.Builder, - com.google.cloud.retail.v2.Rule.IgnoreActionOrBuilder>( - (com.google.cloud.retail.v2.Rule.IgnoreAction) action_, + com.google.cloud.retail.v2.Rule.TwowaySynonymsAction, + com.google.cloud.retail.v2.Rule.TwowaySynonymsAction.Builder, + com.google.cloud.retail.v2.Rule.TwowaySynonymsActionOrBuilder>( + (com.google.cloud.retail.v2.Rule.TwowaySynonymsAction) action_, getParentForChildren(), isClean()); action_ = null; } - actionCase_ = 9; + actionCase_ = 11; onChanged(); - return ignoreActionBuilder_; + return twowaySynonymsActionBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2.Rule.FilterAction, - com.google.cloud.retail.v2.Rule.FilterAction.Builder, - com.google.cloud.retail.v2.Rule.FilterActionOrBuilder> - filterActionBuilder_; + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction, + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.Builder, + com.google.cloud.retail.v2.Rule.ForceReturnFacetActionOrBuilder> + forceReturnFacetActionBuilder_; /** * * *
-     * Filters results.
+     * Force returns an attribute as a facet in the request.
      * 
* - * .google.cloud.retail.v2.Rule.FilterAction filter_action = 10; + * .google.cloud.retail.v2.Rule.ForceReturnFacetAction force_return_facet_action = 12; + * * - * @return Whether the filterAction field is set. + * @return Whether the forceReturnFacetAction field is set. */ @java.lang.Override - public boolean hasFilterAction() { - return actionCase_ == 10; + public boolean hasForceReturnFacetAction() { + return actionCase_ == 12; } /** * * *
-     * Filters results.
+     * Force returns an attribute as a facet in the request.
      * 
* - * .google.cloud.retail.v2.Rule.FilterAction filter_action = 10; + * .google.cloud.retail.v2.Rule.ForceReturnFacetAction force_return_facet_action = 12; + * * - * @return The filterAction. + * @return The forceReturnFacetAction. */ @java.lang.Override - public com.google.cloud.retail.v2.Rule.FilterAction getFilterAction() { - if (filterActionBuilder_ == null) { - if (actionCase_ == 10) { - return (com.google.cloud.retail.v2.Rule.FilterAction) action_; + public com.google.cloud.retail.v2.Rule.ForceReturnFacetAction getForceReturnFacetAction() { + if (forceReturnFacetActionBuilder_ == null) { + if (actionCase_ == 12) { + return (com.google.cloud.retail.v2.Rule.ForceReturnFacetAction) action_; } - return com.google.cloud.retail.v2.Rule.FilterAction.getDefaultInstance(); + return com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.getDefaultInstance(); } else { - if (actionCase_ == 10) { - return filterActionBuilder_.getMessage(); + if (actionCase_ == 12) { + return forceReturnFacetActionBuilder_.getMessage(); } - return com.google.cloud.retail.v2.Rule.FilterAction.getDefaultInstance(); + return com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.getDefaultInstance(); } } /** * * *
-     * Filters results.
+     * Force returns an attribute as a facet in the request.
      * 
* - * .google.cloud.retail.v2.Rule.FilterAction filter_action = 10; + * .google.cloud.retail.v2.Rule.ForceReturnFacetAction force_return_facet_action = 12; + * */ - public Builder setFilterAction(com.google.cloud.retail.v2.Rule.FilterAction value) { - if (filterActionBuilder_ == null) { + public Builder setForceReturnFacetAction( + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction value) { + if (forceReturnFacetActionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } action_ = value; onChanged(); } else { - filterActionBuilder_.setMessage(value); + forceReturnFacetActionBuilder_.setMessage(value); } - actionCase_ = 10; + actionCase_ = 12; return this; } /** * * *
-     * Filters results.
+     * Force returns an attribute as a facet in the request.
      * 
* - * .google.cloud.retail.v2.Rule.FilterAction filter_action = 10; + * .google.cloud.retail.v2.Rule.ForceReturnFacetAction force_return_facet_action = 12; + * */ - public Builder setFilterAction( - com.google.cloud.retail.v2.Rule.FilterAction.Builder builderForValue) { - if (filterActionBuilder_ == null) { + public Builder setForceReturnFacetAction( + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.Builder builderForValue) { + if (forceReturnFacetActionBuilder_ == null) { action_ = builderForValue.build(); onChanged(); } else { - filterActionBuilder_.setMessage(builderForValue.build()); + forceReturnFacetActionBuilder_.setMessage(builderForValue.build()); } - actionCase_ = 10; + actionCase_ = 12; return this; } /** * * *
-     * Filters results.
+     * Force returns an attribute as a facet in the request.
      * 
* - * .google.cloud.retail.v2.Rule.FilterAction filter_action = 10; + * .google.cloud.retail.v2.Rule.ForceReturnFacetAction force_return_facet_action = 12; + * */ - public Builder mergeFilterAction(com.google.cloud.retail.v2.Rule.FilterAction value) { - if (filterActionBuilder_ == null) { - if (actionCase_ == 10 - && action_ != com.google.cloud.retail.v2.Rule.FilterAction.getDefaultInstance()) { + public Builder mergeForceReturnFacetAction( + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction value) { + if (forceReturnFacetActionBuilder_ == null) { + if (actionCase_ == 12 + && action_ + != com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.getDefaultInstance()) { action_ = - com.google.cloud.retail.v2.Rule.FilterAction.newBuilder( - (com.google.cloud.retail.v2.Rule.FilterAction) action_) + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.newBuilder( + (com.google.cloud.retail.v2.Rule.ForceReturnFacetAction) action_) .mergeFrom(value) .buildPartial(); } else { @@ -10798,37 +14241,38 @@ public Builder mergeFilterAction(com.google.cloud.retail.v2.Rule.FilterAction va } onChanged(); } else { - if (actionCase_ == 10) { - filterActionBuilder_.mergeFrom(value); + if (actionCase_ == 12) { + forceReturnFacetActionBuilder_.mergeFrom(value); } else { - filterActionBuilder_.setMessage(value); + forceReturnFacetActionBuilder_.setMessage(value); } } - actionCase_ = 10; + actionCase_ = 12; return this; } /** * * *
-     * Filters results.
+     * Force returns an attribute as a facet in the request.
      * 
* - * .google.cloud.retail.v2.Rule.FilterAction filter_action = 10; + * .google.cloud.retail.v2.Rule.ForceReturnFacetAction force_return_facet_action = 12; + * */ - public Builder clearFilterAction() { - if (filterActionBuilder_ == null) { - if (actionCase_ == 10) { + public Builder clearForceReturnFacetAction() { + if (forceReturnFacetActionBuilder_ == null) { + if (actionCase_ == 12) { actionCase_ = 0; action_ = null; onChanged(); } } else { - if (actionCase_ == 10) { + if (actionCase_ == 12) { actionCase_ = 0; action_ = null; } - filterActionBuilder_.clear(); + forceReturnFacetActionBuilder_.clear(); } return this; } @@ -10836,173 +14280,175 @@ public Builder clearFilterAction() { * * *
-     * Filters results.
+     * Force returns an attribute as a facet in the request.
      * 
* - * .google.cloud.retail.v2.Rule.FilterAction filter_action = 10; + * .google.cloud.retail.v2.Rule.ForceReturnFacetAction force_return_facet_action = 12; + * */ - public com.google.cloud.retail.v2.Rule.FilterAction.Builder getFilterActionBuilder() { - return getFilterActionFieldBuilder().getBuilder(); + public com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.Builder + getForceReturnFacetActionBuilder() { + return getForceReturnFacetActionFieldBuilder().getBuilder(); } /** * * *
-     * Filters results.
+     * Force returns an attribute as a facet in the request.
      * 
* - * .google.cloud.retail.v2.Rule.FilterAction filter_action = 10; + * .google.cloud.retail.v2.Rule.ForceReturnFacetAction force_return_facet_action = 12; + * */ @java.lang.Override - public com.google.cloud.retail.v2.Rule.FilterActionOrBuilder getFilterActionOrBuilder() { - if ((actionCase_ == 10) && (filterActionBuilder_ != null)) { - return filterActionBuilder_.getMessageOrBuilder(); + public com.google.cloud.retail.v2.Rule.ForceReturnFacetActionOrBuilder + getForceReturnFacetActionOrBuilder() { + if ((actionCase_ == 12) && (forceReturnFacetActionBuilder_ != null)) { + return forceReturnFacetActionBuilder_.getMessageOrBuilder(); } else { - if (actionCase_ == 10) { - return (com.google.cloud.retail.v2.Rule.FilterAction) action_; + if (actionCase_ == 12) { + return (com.google.cloud.retail.v2.Rule.ForceReturnFacetAction) action_; } - return com.google.cloud.retail.v2.Rule.FilterAction.getDefaultInstance(); + return com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.getDefaultInstance(); } } /** * * *
-     * Filters results.
+     * Force returns an attribute as a facet in the request.
      * 
* - * .google.cloud.retail.v2.Rule.FilterAction filter_action = 10; + * .google.cloud.retail.v2.Rule.ForceReturnFacetAction force_return_facet_action = 12; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2.Rule.FilterAction, - com.google.cloud.retail.v2.Rule.FilterAction.Builder, - com.google.cloud.retail.v2.Rule.FilterActionOrBuilder> - getFilterActionFieldBuilder() { - if (filterActionBuilder_ == null) { - if (!(actionCase_ == 10)) { - action_ = com.google.cloud.retail.v2.Rule.FilterAction.getDefaultInstance(); - } - filterActionBuilder_ = + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction, + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.Builder, + com.google.cloud.retail.v2.Rule.ForceReturnFacetActionOrBuilder> + getForceReturnFacetActionFieldBuilder() { + if (forceReturnFacetActionBuilder_ == null) { + if (!(actionCase_ == 12)) { + action_ = com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.getDefaultInstance(); + } + forceReturnFacetActionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2.Rule.FilterAction, - com.google.cloud.retail.v2.Rule.FilterAction.Builder, - com.google.cloud.retail.v2.Rule.FilterActionOrBuilder>( - (com.google.cloud.retail.v2.Rule.FilterAction) action_, + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction, + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction.Builder, + com.google.cloud.retail.v2.Rule.ForceReturnFacetActionOrBuilder>( + (com.google.cloud.retail.v2.Rule.ForceReturnFacetAction) action_, getParentForChildren(), isClean()); action_ = null; } - actionCase_ = 10; + actionCase_ = 12; onChanged(); - return filterActionBuilder_; + return forceReturnFacetActionBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2.Rule.TwowaySynonymsAction, - com.google.cloud.retail.v2.Rule.TwowaySynonymsAction.Builder, - com.google.cloud.retail.v2.Rule.TwowaySynonymsActionOrBuilder> - twowaySynonymsActionBuilder_; + com.google.cloud.retail.v2.Rule.RemoveFacetAction, + com.google.cloud.retail.v2.Rule.RemoveFacetAction.Builder, + com.google.cloud.retail.v2.Rule.RemoveFacetActionOrBuilder> + removeFacetActionBuilder_; /** * * *
-     * Treats a set of terms as synonyms of one another.
+     * Remove an attribute as a facet in the request (if present).
      * 
* - * .google.cloud.retail.v2.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; + * .google.cloud.retail.v2.Rule.RemoveFacetAction remove_facet_action = 13; * - * @return Whether the twowaySynonymsAction field is set. + * @return Whether the removeFacetAction field is set. */ @java.lang.Override - public boolean hasTwowaySynonymsAction() { - return actionCase_ == 11; + public boolean hasRemoveFacetAction() { + return actionCase_ == 13; } /** * * *
-     * Treats a set of terms as synonyms of one another.
+     * Remove an attribute as a facet in the request (if present).
      * 
* - * .google.cloud.retail.v2.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; + * .google.cloud.retail.v2.Rule.RemoveFacetAction remove_facet_action = 13; * - * @return The twowaySynonymsAction. + * @return The removeFacetAction. */ @java.lang.Override - public com.google.cloud.retail.v2.Rule.TwowaySynonymsAction getTwowaySynonymsAction() { - if (twowaySynonymsActionBuilder_ == null) { - if (actionCase_ == 11) { - return (com.google.cloud.retail.v2.Rule.TwowaySynonymsAction) action_; + public com.google.cloud.retail.v2.Rule.RemoveFacetAction getRemoveFacetAction() { + if (removeFacetActionBuilder_ == null) { + if (actionCase_ == 13) { + return (com.google.cloud.retail.v2.Rule.RemoveFacetAction) action_; } - return com.google.cloud.retail.v2.Rule.TwowaySynonymsAction.getDefaultInstance(); + return com.google.cloud.retail.v2.Rule.RemoveFacetAction.getDefaultInstance(); } else { - if (actionCase_ == 11) { - return twowaySynonymsActionBuilder_.getMessage(); + if (actionCase_ == 13) { + return removeFacetActionBuilder_.getMessage(); } - return com.google.cloud.retail.v2.Rule.TwowaySynonymsAction.getDefaultInstance(); + return com.google.cloud.retail.v2.Rule.RemoveFacetAction.getDefaultInstance(); } } /** * * *
-     * Treats a set of terms as synonyms of one another.
+     * Remove an attribute as a facet in the request (if present).
      * 
* - * .google.cloud.retail.v2.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; + * .google.cloud.retail.v2.Rule.RemoveFacetAction remove_facet_action = 13; */ - public Builder setTwowaySynonymsAction( - com.google.cloud.retail.v2.Rule.TwowaySynonymsAction value) { - if (twowaySynonymsActionBuilder_ == null) { + public Builder setRemoveFacetAction(com.google.cloud.retail.v2.Rule.RemoveFacetAction value) { + if (removeFacetActionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } action_ = value; onChanged(); } else { - twowaySynonymsActionBuilder_.setMessage(value); + removeFacetActionBuilder_.setMessage(value); } - actionCase_ = 11; + actionCase_ = 13; return this; } /** * * *
-     * Treats a set of terms as synonyms of one another.
+     * Remove an attribute as a facet in the request (if present).
      * 
* - * .google.cloud.retail.v2.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; + * .google.cloud.retail.v2.Rule.RemoveFacetAction remove_facet_action = 13; */ - public Builder setTwowaySynonymsAction( - com.google.cloud.retail.v2.Rule.TwowaySynonymsAction.Builder builderForValue) { - if (twowaySynonymsActionBuilder_ == null) { + public Builder setRemoveFacetAction( + com.google.cloud.retail.v2.Rule.RemoveFacetAction.Builder builderForValue) { + if (removeFacetActionBuilder_ == null) { action_ = builderForValue.build(); onChanged(); } else { - twowaySynonymsActionBuilder_.setMessage(builderForValue.build()); + removeFacetActionBuilder_.setMessage(builderForValue.build()); } - actionCase_ = 11; + actionCase_ = 13; return this; } /** * * *
-     * Treats a set of terms as synonyms of one another.
+     * Remove an attribute as a facet in the request (if present).
      * 
* - * .google.cloud.retail.v2.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; + * .google.cloud.retail.v2.Rule.RemoveFacetAction remove_facet_action = 13; */ - public Builder mergeTwowaySynonymsAction( - com.google.cloud.retail.v2.Rule.TwowaySynonymsAction value) { - if (twowaySynonymsActionBuilder_ == null) { - if (actionCase_ == 11 - && action_ - != com.google.cloud.retail.v2.Rule.TwowaySynonymsAction.getDefaultInstance()) { + public Builder mergeRemoveFacetAction(com.google.cloud.retail.v2.Rule.RemoveFacetAction value) { + if (removeFacetActionBuilder_ == null) { + if (actionCase_ == 13 + && action_ != com.google.cloud.retail.v2.Rule.RemoveFacetAction.getDefaultInstance()) { action_ = - com.google.cloud.retail.v2.Rule.TwowaySynonymsAction.newBuilder( - (com.google.cloud.retail.v2.Rule.TwowaySynonymsAction) action_) + com.google.cloud.retail.v2.Rule.RemoveFacetAction.newBuilder( + (com.google.cloud.retail.v2.Rule.RemoveFacetAction) action_) .mergeFrom(value) .buildPartial(); } else { @@ -11010,37 +14456,37 @@ public Builder mergeTwowaySynonymsAction( } onChanged(); } else { - if (actionCase_ == 11) { - twowaySynonymsActionBuilder_.mergeFrom(value); + if (actionCase_ == 13) { + removeFacetActionBuilder_.mergeFrom(value); } else { - twowaySynonymsActionBuilder_.setMessage(value); + removeFacetActionBuilder_.setMessage(value); } } - actionCase_ = 11; + actionCase_ = 13; return this; } /** * * *
-     * Treats a set of terms as synonyms of one another.
+     * Remove an attribute as a facet in the request (if present).
      * 
* - * .google.cloud.retail.v2.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; + * .google.cloud.retail.v2.Rule.RemoveFacetAction remove_facet_action = 13; */ - public Builder clearTwowaySynonymsAction() { - if (twowaySynonymsActionBuilder_ == null) { - if (actionCase_ == 11) { + public Builder clearRemoveFacetAction() { + if (removeFacetActionBuilder_ == null) { + if (actionCase_ == 13) { actionCase_ = 0; action_ = null; onChanged(); } } else { - if (actionCase_ == 11) { + if (actionCase_ == 13) { actionCase_ = 0; action_ = null; } - twowaySynonymsActionBuilder_.clear(); + removeFacetActionBuilder_.clear(); } return this; } @@ -11048,67 +14494,66 @@ public Builder clearTwowaySynonymsAction() { * * *
-     * Treats a set of terms as synonyms of one another.
+     * Remove an attribute as a facet in the request (if present).
      * 
* - * .google.cloud.retail.v2.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; + * .google.cloud.retail.v2.Rule.RemoveFacetAction remove_facet_action = 13; */ - public com.google.cloud.retail.v2.Rule.TwowaySynonymsAction.Builder - getTwowaySynonymsActionBuilder() { - return getTwowaySynonymsActionFieldBuilder().getBuilder(); + public com.google.cloud.retail.v2.Rule.RemoveFacetAction.Builder getRemoveFacetActionBuilder() { + return getRemoveFacetActionFieldBuilder().getBuilder(); } /** * * *
-     * Treats a set of terms as synonyms of one another.
+     * Remove an attribute as a facet in the request (if present).
      * 
* - * .google.cloud.retail.v2.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; + * .google.cloud.retail.v2.Rule.RemoveFacetAction remove_facet_action = 13; */ @java.lang.Override - public com.google.cloud.retail.v2.Rule.TwowaySynonymsActionOrBuilder - getTwowaySynonymsActionOrBuilder() { - if ((actionCase_ == 11) && (twowaySynonymsActionBuilder_ != null)) { - return twowaySynonymsActionBuilder_.getMessageOrBuilder(); + public com.google.cloud.retail.v2.Rule.RemoveFacetActionOrBuilder + getRemoveFacetActionOrBuilder() { + if ((actionCase_ == 13) && (removeFacetActionBuilder_ != null)) { + return removeFacetActionBuilder_.getMessageOrBuilder(); } else { - if (actionCase_ == 11) { - return (com.google.cloud.retail.v2.Rule.TwowaySynonymsAction) action_; + if (actionCase_ == 13) { + return (com.google.cloud.retail.v2.Rule.RemoveFacetAction) action_; } - return com.google.cloud.retail.v2.Rule.TwowaySynonymsAction.getDefaultInstance(); + return com.google.cloud.retail.v2.Rule.RemoveFacetAction.getDefaultInstance(); } } /** * * *
-     * Treats a set of terms as synonyms of one another.
+     * Remove an attribute as a facet in the request (if present).
      * 
* - * .google.cloud.retail.v2.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; + * .google.cloud.retail.v2.Rule.RemoveFacetAction remove_facet_action = 13; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2.Rule.TwowaySynonymsAction, - com.google.cloud.retail.v2.Rule.TwowaySynonymsAction.Builder, - com.google.cloud.retail.v2.Rule.TwowaySynonymsActionOrBuilder> - getTwowaySynonymsActionFieldBuilder() { - if (twowaySynonymsActionBuilder_ == null) { - if (!(actionCase_ == 11)) { - action_ = com.google.cloud.retail.v2.Rule.TwowaySynonymsAction.getDefaultInstance(); - } - twowaySynonymsActionBuilder_ = + com.google.cloud.retail.v2.Rule.RemoveFacetAction, + com.google.cloud.retail.v2.Rule.RemoveFacetAction.Builder, + com.google.cloud.retail.v2.Rule.RemoveFacetActionOrBuilder> + getRemoveFacetActionFieldBuilder() { + if (removeFacetActionBuilder_ == null) { + if (!(actionCase_ == 13)) { + action_ = com.google.cloud.retail.v2.Rule.RemoveFacetAction.getDefaultInstance(); + } + removeFacetActionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2.Rule.TwowaySynonymsAction, - com.google.cloud.retail.v2.Rule.TwowaySynonymsAction.Builder, - com.google.cloud.retail.v2.Rule.TwowaySynonymsActionOrBuilder>( - (com.google.cloud.retail.v2.Rule.TwowaySynonymsAction) action_, + com.google.cloud.retail.v2.Rule.RemoveFacetAction, + com.google.cloud.retail.v2.Rule.RemoveFacetAction.Builder, + com.google.cloud.retail.v2.Rule.RemoveFacetActionOrBuilder>( + (com.google.cloud.retail.v2.Rule.RemoveFacetAction) action_, getParentForChildren(), isClean()); action_ = null; } - actionCase_ = 11; + actionCase_ = 13; onChanged(); - return twowaySynonymsActionBuilder_; + return removeFacetActionBuilder_; } private com.google.cloud.retail.v2.Condition condition_; @@ -11132,7 +14577,7 @@ public Builder clearTwowaySynonymsAction() { * @return Whether the condition field is set. */ public boolean hasCondition() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** * @@ -11178,7 +14623,7 @@ public Builder setCondition(com.google.cloud.retail.v2.Condition value) { } else { conditionBuilder_.setMessage(value); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -11200,7 +14645,7 @@ public Builder setCondition(com.google.cloud.retail.v2.Condition.Builder builder } else { conditionBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -11218,7 +14663,7 @@ public Builder setCondition(com.google.cloud.retail.v2.Condition.Builder builder */ public Builder mergeCondition(com.google.cloud.retail.v2.Condition value) { if (conditionBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) + if (((bitField0_ & 0x00000400) != 0) && condition_ != null && condition_ != com.google.cloud.retail.v2.Condition.getDefaultInstance()) { getConditionBuilder().mergeFrom(value); @@ -11229,7 +14674,7 @@ public Builder mergeCondition(com.google.cloud.retail.v2.Condition value) { conditionBuilder_.mergeFrom(value); } if (condition_ != null) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); } return this; @@ -11247,7 +14692,7 @@ public Builder mergeCondition(com.google.cloud.retail.v2.Condition value) { * */ public Builder clearCondition() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000400); condition_ = null; if (conditionBuilder_ != null) { conditionBuilder_.dispose(); @@ -11269,7 +14714,7 @@ public Builder clearCondition() { * */ public com.google.cloud.retail.v2.Condition.Builder getConditionBuilder() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); return getConditionFieldBuilder().getBuilder(); } diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/RuleOrBuilder.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/RuleOrBuilder.java index e822632c1859..8355e77d2d09 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/RuleOrBuilder.java +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/RuleOrBuilder.java @@ -307,6 +307,80 @@ public interface RuleOrBuilder */ com.google.cloud.retail.v2.Rule.TwowaySynonymsActionOrBuilder getTwowaySynonymsActionOrBuilder(); + /** + * + * + *
+   * Force returns an attribute as a facet in the request.
+   * 
+ * + * .google.cloud.retail.v2.Rule.ForceReturnFacetAction force_return_facet_action = 12; + * + * + * @return Whether the forceReturnFacetAction field is set. + */ + boolean hasForceReturnFacetAction(); + /** + * + * + *
+   * Force returns an attribute as a facet in the request.
+   * 
+ * + * .google.cloud.retail.v2.Rule.ForceReturnFacetAction force_return_facet_action = 12; + * + * + * @return The forceReturnFacetAction. + */ + com.google.cloud.retail.v2.Rule.ForceReturnFacetAction getForceReturnFacetAction(); + /** + * + * + *
+   * Force returns an attribute as a facet in the request.
+   * 
+ * + * .google.cloud.retail.v2.Rule.ForceReturnFacetAction force_return_facet_action = 12; + * + */ + com.google.cloud.retail.v2.Rule.ForceReturnFacetActionOrBuilder + getForceReturnFacetActionOrBuilder(); + + /** + * + * + *
+   * Remove an attribute as a facet in the request (if present).
+   * 
+ * + * .google.cloud.retail.v2.Rule.RemoveFacetAction remove_facet_action = 13; + * + * @return Whether the removeFacetAction field is set. + */ + boolean hasRemoveFacetAction(); + /** + * + * + *
+   * Remove an attribute as a facet in the request (if present).
+   * 
+ * + * .google.cloud.retail.v2.Rule.RemoveFacetAction remove_facet_action = 13; + * + * @return The removeFacetAction. + */ + com.google.cloud.retail.v2.Rule.RemoveFacetAction getRemoveFacetAction(); + /** + * + * + *
+   * Remove an attribute as a facet in the request (if present).
+   * 
+ * + * .google.cloud.retail.v2.Rule.RemoveFacetAction remove_facet_action = 13; + */ + com.google.cloud.retail.v2.Rule.RemoveFacetActionOrBuilder getRemoveFacetActionOrBuilder(); + /** * * diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/SearchRequest.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/SearchRequest.java index bbf6bae6f1f6..30ac56fc3eff 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/SearchRequest.java +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/SearchRequest.java @@ -525,15 +525,15 @@ public interface FacetSpecOrBuilder *
      * Enables dynamic position for this facet. If set to true, the position of
      * this facet among all facets in the response is determined by Google
-     * Retail Search. It will be ordered together with dynamic facets if dynamic
+     * Retail Search. It is ordered together with dynamic facets if dynamic
      * facets is enabled. If set to false, the position of this facet in the
-     * response will be the same as in the request, and it will be ranked before
+     * response is the same as in the request, and it is ranked before
      * the facets with dynamic position enable and all dynamic facets.
      *
      * For example, you may always want to have rating facet returned in
      * the response, but it's not necessarily to always display the rating facet
      * at the top. In that case, you can set enable_dynamic_position to true so
-     * that the position of rating facet in response will be determined by
+     * that the position of rating facet in response is determined by
      * Google Retail Search.
      *
      * Another example, assuming you have the following facets in the request:
@@ -544,13 +544,13 @@ public interface FacetSpecOrBuilder
      *
      * * "brands", enable_dynamic_position = false
      *
-     * And also you have a dynamic facets enable, which will generate a facet
-     * 'gender'. Then the final order of the facets in the response can be
+     * And also you have a dynamic facets enable, which generates a facet
+     * "gender". Then, the final order of the facets in the response can be
      * ("price", "brands", "rating", "gender") or ("price", "brands", "gender",
      * "rating") depends on how Google Retail Search orders "gender" and
-     * "rating" facets. However, notice that "price" and "brands" will always be
-     * ranked at 1st and 2nd position since their enable_dynamic_position are
-     * false.
+     * "rating" facets. However, notice that "price" and "brands" are always
+     * ranked at first and second position because their enable_dynamic_position
+     * values are false.
      * 
* * bool enable_dynamic_position = 4; @@ -722,13 +722,13 @@ public interface FacetKeyOrBuilder * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. *
* * repeated .google.cloud.retail.v2.Interval intervals = 2; @@ -743,13 +743,13 @@ public interface FacetKeyOrBuilder * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. *
* * repeated .google.cloud.retail.v2.Interval intervals = 2; @@ -764,13 +764,13 @@ public interface FacetKeyOrBuilder * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. *
* * repeated .google.cloud.retail.v2.Interval intervals = 2; @@ -785,13 +785,13 @@ public interface FacetKeyOrBuilder * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. *
* * repeated .google.cloud.retail.v2.Interval intervals = 2; @@ -807,13 +807,13 @@ public interface FacetKeyOrBuilder * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. *
* * repeated .google.cloud.retail.v2.Interval intervals = 2; @@ -974,7 +974,7 @@ public interface FacetKeyOrBuilder * Only get facet values that start with the given string prefix. For * example, suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the - * "categories" facet will give only "Women > Shoe" and "Women > Dress". + * "categories" facet gives only "Women > Shoe" and "Women > Dress". * Only supported on textual fields. Maximum is 10. *
* @@ -990,7 +990,7 @@ public interface FacetKeyOrBuilder * Only get facet values that start with the given string prefix. For * example, suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the - * "categories" facet will give only "Women > Shoe" and "Women > Dress". + * "categories" facet gives only "Women > Shoe" and "Women > Dress". * Only supported on textual fields. Maximum is 10. *
* @@ -1006,7 +1006,7 @@ public interface FacetKeyOrBuilder * Only get facet values that start with the given string prefix. For * example, suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the - * "categories" facet will give only "Women > Shoe" and "Women > Dress". + * "categories" facet gives only "Women > Shoe" and "Women > Dress". * Only supported on textual fields. Maximum is 10. *
* @@ -1023,7 +1023,7 @@ public interface FacetKeyOrBuilder * Only get facet values that start with the given string prefix. For * example, suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the - * "categories" facet will give only "Women > Shoe" and "Women > Dress". + * "categories" facet gives only "Women > Shoe" and "Women > Dress". * Only supported on textual fields. Maximum is 10. *
* @@ -1041,7 +1041,7 @@ public interface FacetKeyOrBuilder * Only get facet values that contains the given strings. For example, * suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the - * "categories" facet will give only "Women > Shoe" and "Men > Shoe". + * "categories" facet gives only "Women > Shoe" and "Men > Shoe". * Only supported on textual fields. Maximum is 10. *
* @@ -1057,7 +1057,7 @@ public interface FacetKeyOrBuilder * Only get facet values that contains the given strings. For example, * suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the - * "categories" facet will give only "Women > Shoe" and "Men > Shoe". + * "categories" facet gives only "Women > Shoe" and "Men > Shoe". * Only supported on textual fields. Maximum is 10. *
* @@ -1073,7 +1073,7 @@ public interface FacetKeyOrBuilder * Only get facet values that contains the given strings. For example, * suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the - * "categories" facet will give only "Women > Shoe" and "Men > Shoe". + * "categories" facet gives only "Women > Shoe" and "Men > Shoe". * Only supported on textual fields. Maximum is 10. *
* @@ -1090,7 +1090,7 @@ public interface FacetKeyOrBuilder * Only get facet values that contains the given strings. For example, * suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the - * "categories" facet will give only "Women > Shoe" and "Men > Shoe". + * "categories" facet gives only "Women > Shoe" and "Men > Shoe". * Only supported on textual fields. Maximum is 10. *
* @@ -1187,7 +1187,7 @@ public interface FacetKeyOrBuilder * *
        * The query that is used to compute facet for the given facet key.
-       * When provided, it will override the default behavior of facet
+       * When provided, it overrides the default behavior of facet
        * computation. The query syntax is the same as a filter expression. See
        * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter] for
        * detail syntax and limitations. Notice that there is no limitation on
@@ -1196,9 +1196,9 @@ public interface FacetKeyOrBuilder
        *
        * In the response,
        * [SearchResponse.Facet.values.value][google.cloud.retail.v2.SearchResponse.Facet.FacetValue.value]
-       * will be always "1" and
+       * is always "1" and
        * [SearchResponse.Facet.values.count][google.cloud.retail.v2.SearchResponse.Facet.FacetValue.count]
-       * will be the number of results that match the query.
+       * is the number of results that match the query.
        *
        * For example, you can set a customized facet for "shipToStore",
        * where
@@ -1206,7 +1206,7 @@ public interface FacetKeyOrBuilder
        * is "customizedShipToStore", and
        * [FacetKey.query][google.cloud.retail.v2.SearchRequest.FacetSpec.FacetKey.query]
        * is "availability: ANY(\"IN_STOCK\") AND shipToStore: ANY(\"123\")".
-       * Then the facet will count the products that are both in stock and ship
+       * Then the facet counts the products that are both in stock and ship
        * to store "123".
        * 
* @@ -1220,7 +1220,7 @@ public interface FacetKeyOrBuilder * *
        * The query that is used to compute facet for the given facet key.
-       * When provided, it will override the default behavior of facet
+       * When provided, it overrides the default behavior of facet
        * computation. The query syntax is the same as a filter expression. See
        * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter] for
        * detail syntax and limitations. Notice that there is no limitation on
@@ -1229,9 +1229,9 @@ public interface FacetKeyOrBuilder
        *
        * In the response,
        * [SearchResponse.Facet.values.value][google.cloud.retail.v2.SearchResponse.Facet.FacetValue.value]
-       * will be always "1" and
+       * is always "1" and
        * [SearchResponse.Facet.values.count][google.cloud.retail.v2.SearchResponse.Facet.FacetValue.count]
-       * will be the number of results that match the query.
+       * is the number of results that match the query.
        *
        * For example, you can set a customized facet for "shipToStore",
        * where
@@ -1239,7 +1239,7 @@ public interface FacetKeyOrBuilder
        * is "customizedShipToStore", and
        * [FacetKey.query][google.cloud.retail.v2.SearchRequest.FacetSpec.FacetKey.query]
        * is "availability: ANY(\"IN_STOCK\") AND shipToStore: ANY(\"123\")".
-       * Then the facet will count the products that are both in stock and ship
+       * Then the facet counts the products that are both in stock and ship
        * to store "123".
        * 
* @@ -1457,13 +1457,13 @@ public com.google.protobuf.ByteString getKeyBytes() { * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. *
* * repeated .google.cloud.retail.v2.Interval intervals = 2; @@ -1481,13 +1481,13 @@ public java.util.List getIntervalsList() { * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. *
* * repeated .google.cloud.retail.v2.Interval intervals = 2; @@ -1506,13 +1506,13 @@ public java.util.List getIntervalsList() { * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. *
* * repeated .google.cloud.retail.v2.Interval intervals = 2; @@ -1530,13 +1530,13 @@ public int getIntervalsCount() { * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. *
* * repeated .google.cloud.retail.v2.Interval intervals = 2; @@ -1554,13 +1554,13 @@ public com.google.cloud.retail.v2.Interval getIntervals(int index) { * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. *
* * repeated .google.cloud.retail.v2.Interval intervals = 2; @@ -1742,7 +1742,7 @@ public com.google.protobuf.ByteString getRestrictedValuesBytes(int index) { * Only get facet values that start with the given string prefix. For * example, suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the - * "categories" facet will give only "Women > Shoe" and "Women > Dress". + * "categories" facet gives only "Women > Shoe" and "Women > Dress". * Only supported on textual fields. Maximum is 10. *
* @@ -1760,7 +1760,7 @@ public com.google.protobuf.ProtocolStringList getPrefixesList() { * Only get facet values that start with the given string prefix. For * example, suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the - * "categories" facet will give only "Women > Shoe" and "Women > Dress". + * "categories" facet gives only "Women > Shoe" and "Women > Dress". * Only supported on textual fields. Maximum is 10. *
* @@ -1778,7 +1778,7 @@ public int getPrefixesCount() { * Only get facet values that start with the given string prefix. For * example, suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the - * "categories" facet will give only "Women > Shoe" and "Women > Dress". + * "categories" facet gives only "Women > Shoe" and "Women > Dress". * Only supported on textual fields. Maximum is 10. *
* @@ -1797,7 +1797,7 @@ public java.lang.String getPrefixes(int index) { * Only get facet values that start with the given string prefix. For * example, suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the - * "categories" facet will give only "Women > Shoe" and "Women > Dress". + * "categories" facet gives only "Women > Shoe" and "Women > Dress". * Only supported on textual fields. Maximum is 10. *
* @@ -1822,7 +1822,7 @@ public com.google.protobuf.ByteString getPrefixesBytes(int index) { * Only get facet values that contains the given strings. For example, * suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the - * "categories" facet will give only "Women > Shoe" and "Men > Shoe". + * "categories" facet gives only "Women > Shoe" and "Men > Shoe". * Only supported on textual fields. Maximum is 10. * * @@ -1840,7 +1840,7 @@ public com.google.protobuf.ProtocolStringList getContainsList() { * Only get facet values that contains the given strings. For example, * suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the - * "categories" facet will give only "Women > Shoe" and "Men > Shoe". + * "categories" facet gives only "Women > Shoe" and "Men > Shoe". * Only supported on textual fields. Maximum is 10. * * @@ -1858,7 +1858,7 @@ public int getContainsCount() { * Only get facet values that contains the given strings. For example, * suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the - * "categories" facet will give only "Women > Shoe" and "Men > Shoe". + * "categories" facet gives only "Women > Shoe" and "Men > Shoe". * Only supported on textual fields. Maximum is 10. * * @@ -1877,7 +1877,7 @@ public java.lang.String getContains(int index) { * Only get facet values that contains the given strings. For example, * suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the - * "categories" facet will give only "Women > Shoe" and "Men > Shoe". + * "categories" facet gives only "Women > Shoe" and "Men > Shoe". * Only supported on textual fields. Maximum is 10. * * @@ -2011,7 +2011,7 @@ public com.google.protobuf.ByteString getOrderByBytes() { * *
        * The query that is used to compute facet for the given facet key.
-       * When provided, it will override the default behavior of facet
+       * When provided, it overrides the default behavior of facet
        * computation. The query syntax is the same as a filter expression. See
        * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter] for
        * detail syntax and limitations. Notice that there is no limitation on
@@ -2020,9 +2020,9 @@ public com.google.protobuf.ByteString getOrderByBytes() {
        *
        * In the response,
        * [SearchResponse.Facet.values.value][google.cloud.retail.v2.SearchResponse.Facet.FacetValue.value]
-       * will be always "1" and
+       * is always "1" and
        * [SearchResponse.Facet.values.count][google.cloud.retail.v2.SearchResponse.Facet.FacetValue.count]
-       * will be the number of results that match the query.
+       * is the number of results that match the query.
        *
        * For example, you can set a customized facet for "shipToStore",
        * where
@@ -2030,7 +2030,7 @@ public com.google.protobuf.ByteString getOrderByBytes() {
        * is "customizedShipToStore", and
        * [FacetKey.query][google.cloud.retail.v2.SearchRequest.FacetSpec.FacetKey.query]
        * is "availability: ANY(\"IN_STOCK\") AND shipToStore: ANY(\"123\")".
-       * Then the facet will count the products that are both in stock and ship
+       * Then the facet counts the products that are both in stock and ship
        * to store "123".
        * 
* @@ -2055,7 +2055,7 @@ public java.lang.String getQuery() { * *
        * The query that is used to compute facet for the given facet key.
-       * When provided, it will override the default behavior of facet
+       * When provided, it overrides the default behavior of facet
        * computation. The query syntax is the same as a filter expression. See
        * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter] for
        * detail syntax and limitations. Notice that there is no limitation on
@@ -2064,9 +2064,9 @@ public java.lang.String getQuery() {
        *
        * In the response,
        * [SearchResponse.Facet.values.value][google.cloud.retail.v2.SearchResponse.Facet.FacetValue.value]
-       * will be always "1" and
+       * is always "1" and
        * [SearchResponse.Facet.values.count][google.cloud.retail.v2.SearchResponse.Facet.FacetValue.count]
-       * will be the number of results that match the query.
+       * is the number of results that match the query.
        *
        * For example, you can set a customized facet for "shipToStore",
        * where
@@ -2074,7 +2074,7 @@ public java.lang.String getQuery() {
        * is "customizedShipToStore", and
        * [FacetKey.query][google.cloud.retail.v2.SearchRequest.FacetSpec.FacetKey.query]
        * is "availability: ANY(\"IN_STOCK\") AND shipToStore: ANY(\"123\")".
-       * Then the facet will count the products that are both in stock and ship
+       * Then the facet counts the products that are both in stock and ship
        * to store "123".
        * 
* @@ -3075,13 +3075,13 @@ private void ensureIntervalsIsMutable() { * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. * * * repeated .google.cloud.retail.v2.Interval intervals = 2; @@ -3102,13 +3102,13 @@ public java.util.List getIntervalsList() { * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. * * * repeated .google.cloud.retail.v2.Interval intervals = 2; @@ -3129,13 +3129,13 @@ public int getIntervalsCount() { * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. * * * repeated .google.cloud.retail.v2.Interval intervals = 2; @@ -3156,13 +3156,13 @@ public com.google.cloud.retail.v2.Interval getIntervals(int index) { * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. * * * repeated .google.cloud.retail.v2.Interval intervals = 2; @@ -3189,13 +3189,13 @@ public Builder setIntervals(int index, com.google.cloud.retail.v2.Interval value * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. * * * repeated .google.cloud.retail.v2.Interval intervals = 2; @@ -3220,13 +3220,13 @@ public Builder setIntervals( * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. * * * repeated .google.cloud.retail.v2.Interval intervals = 2; @@ -3253,13 +3253,13 @@ public Builder addIntervals(com.google.cloud.retail.v2.Interval value) { * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. * * * repeated .google.cloud.retail.v2.Interval intervals = 2; @@ -3286,13 +3286,13 @@ public Builder addIntervals(int index, com.google.cloud.retail.v2.Interval value * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. * * * repeated .google.cloud.retail.v2.Interval intervals = 2; @@ -3316,13 +3316,13 @@ public Builder addIntervals(com.google.cloud.retail.v2.Interval.Builder builderF * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. * * * repeated .google.cloud.retail.v2.Interval intervals = 2; @@ -3347,13 +3347,13 @@ public Builder addIntervals( * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. * * * repeated .google.cloud.retail.v2.Interval intervals = 2; @@ -3378,13 +3378,13 @@ public Builder addAllIntervals( * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. * * * repeated .google.cloud.retail.v2.Interval intervals = 2; @@ -3408,13 +3408,13 @@ public Builder clearIntervals() { * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. * * * repeated .google.cloud.retail.v2.Interval intervals = 2; @@ -3438,13 +3438,13 @@ public Builder removeIntervals(int index) { * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. * * * repeated .google.cloud.retail.v2.Interval intervals = 2; @@ -3461,13 +3461,13 @@ public com.google.cloud.retail.v2.Interval.Builder getIntervalsBuilder(int index * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. * * * repeated .google.cloud.retail.v2.Interval intervals = 2; @@ -3488,13 +3488,13 @@ public com.google.cloud.retail.v2.IntervalOrBuilder getIntervalsOrBuilder(int in * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. * * * repeated .google.cloud.retail.v2.Interval intervals = 2; @@ -3516,13 +3516,13 @@ public com.google.cloud.retail.v2.IntervalOrBuilder getIntervalsOrBuilder(int in * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. * * * repeated .google.cloud.retail.v2.Interval intervals = 2; @@ -3540,13 +3540,13 @@ public com.google.cloud.retail.v2.Interval.Builder addIntervalsBuilder() { * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. * * * repeated .google.cloud.retail.v2.Interval intervals = 2; @@ -3564,13 +3564,13 @@ public com.google.cloud.retail.v2.Interval.Builder addIntervalsBuilder(int index * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. * * * repeated .google.cloud.retail.v2.Interval intervals = 2; @@ -4006,7 +4006,7 @@ private void ensurePrefixesIsMutable() { * Only get facet values that start with the given string prefix. For * example, suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the - * "categories" facet will give only "Women > Shoe" and "Women > Dress". + * "categories" facet gives only "Women > Shoe" and "Women > Dress". * Only supported on textual fields. Maximum is 10. * * @@ -4025,7 +4025,7 @@ public com.google.protobuf.ProtocolStringList getPrefixesList() { * Only get facet values that start with the given string prefix. For * example, suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the - * "categories" facet will give only "Women > Shoe" and "Women > Dress". + * "categories" facet gives only "Women > Shoe" and "Women > Dress". * Only supported on textual fields. Maximum is 10. * * @@ -4043,7 +4043,7 @@ public int getPrefixesCount() { * Only get facet values that start with the given string prefix. For * example, suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the - * "categories" facet will give only "Women > Shoe" and "Women > Dress". + * "categories" facet gives only "Women > Shoe" and "Women > Dress". * Only supported on textual fields. Maximum is 10. * * @@ -4062,7 +4062,7 @@ public java.lang.String getPrefixes(int index) { * Only get facet values that start with the given string prefix. For * example, suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the - * "categories" facet will give only "Women > Shoe" and "Women > Dress". + * "categories" facet gives only "Women > Shoe" and "Women > Dress". * Only supported on textual fields. Maximum is 10. * * @@ -4081,7 +4081,7 @@ public com.google.protobuf.ByteString getPrefixesBytes(int index) { * Only get facet values that start with the given string prefix. For * example, suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the - * "categories" facet will give only "Women > Shoe" and "Women > Dress". + * "categories" facet gives only "Women > Shoe" and "Women > Dress". * Only supported on textual fields. Maximum is 10. * * @@ -4108,7 +4108,7 @@ public Builder setPrefixes(int index, java.lang.String value) { * Only get facet values that start with the given string prefix. For * example, suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the - * "categories" facet will give only "Women > Shoe" and "Women > Dress". + * "categories" facet gives only "Women > Shoe" and "Women > Dress". * Only supported on textual fields. Maximum is 10. * * @@ -4134,7 +4134,7 @@ public Builder addPrefixes(java.lang.String value) { * Only get facet values that start with the given string prefix. For * example, suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the - * "categories" facet will give only "Women > Shoe" and "Women > Dress". + * "categories" facet gives only "Women > Shoe" and "Women > Dress". * Only supported on textual fields. Maximum is 10. * * @@ -4157,7 +4157,7 @@ public Builder addAllPrefixes(java.lang.Iterable values) { * Only get facet values that start with the given string prefix. For * example, suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the - * "categories" facet will give only "Women > Shoe" and "Women > Dress". + * "categories" facet gives only "Women > Shoe" and "Women > Dress". * Only supported on textual fields. Maximum is 10. * * @@ -4179,7 +4179,7 @@ public Builder clearPrefixes() { * Only get facet values that start with the given string prefix. For * example, suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the - * "categories" facet will give only "Women > Shoe" and "Women > Dress". + * "categories" facet gives only "Women > Shoe" and "Women > Dress". * Only supported on textual fields. Maximum is 10. * * @@ -4216,7 +4216,7 @@ private void ensureContainsIsMutable() { * Only get facet values that contains the given strings. For example, * suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the - * "categories" facet will give only "Women > Shoe" and "Men > Shoe". + * "categories" facet gives only "Women > Shoe" and "Men > Shoe". * Only supported on textual fields. Maximum is 10. * * @@ -4235,7 +4235,7 @@ public com.google.protobuf.ProtocolStringList getContainsList() { * Only get facet values that contains the given strings. For example, * suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the - * "categories" facet will give only "Women > Shoe" and "Men > Shoe". + * "categories" facet gives only "Women > Shoe" and "Men > Shoe". * Only supported on textual fields. Maximum is 10. * * @@ -4253,7 +4253,7 @@ public int getContainsCount() { * Only get facet values that contains the given strings. For example, * suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the - * "categories" facet will give only "Women > Shoe" and "Men > Shoe". + * "categories" facet gives only "Women > Shoe" and "Men > Shoe". * Only supported on textual fields. Maximum is 10. * * @@ -4272,7 +4272,7 @@ public java.lang.String getContains(int index) { * Only get facet values that contains the given strings. For example, * suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the - * "categories" facet will give only "Women > Shoe" and "Men > Shoe". + * "categories" facet gives only "Women > Shoe" and "Men > Shoe". * Only supported on textual fields. Maximum is 10. * * @@ -4291,7 +4291,7 @@ public com.google.protobuf.ByteString getContainsBytes(int index) { * Only get facet values that contains the given strings. For example, * suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the - * "categories" facet will give only "Women > Shoe" and "Men > Shoe". + * "categories" facet gives only "Women > Shoe" and "Men > Shoe". * Only supported on textual fields. Maximum is 10. * * @@ -4318,7 +4318,7 @@ public Builder setContains(int index, java.lang.String value) { * Only get facet values that contains the given strings. For example, * suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the - * "categories" facet will give only "Women > Shoe" and "Men > Shoe". + * "categories" facet gives only "Women > Shoe" and "Men > Shoe". * Only supported on textual fields. Maximum is 10. * * @@ -4344,7 +4344,7 @@ public Builder addContains(java.lang.String value) { * Only get facet values that contains the given strings. For example, * suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the - * "categories" facet will give only "Women > Shoe" and "Men > Shoe". + * "categories" facet gives only "Women > Shoe" and "Men > Shoe". * Only supported on textual fields. Maximum is 10. * * @@ -4367,7 +4367,7 @@ public Builder addAllContains(java.lang.Iterable values) { * Only get facet values that contains the given strings. For example, * suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the - * "categories" facet will give only "Women > Shoe" and "Men > Shoe". + * "categories" facet gives only "Women > Shoe" and "Men > Shoe". * Only supported on textual fields. Maximum is 10. * * @@ -4389,7 +4389,7 @@ public Builder clearContains() { * Only get facet values that contains the given strings. For example, * suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the - * "categories" facet will give only "Women > Shoe" and "Men > Shoe". + * "categories" facet gives only "Women > Shoe" and "Men > Shoe". * Only supported on textual fields. Maximum is 10. * * @@ -4683,7 +4683,7 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { * *
          * The query that is used to compute facet for the given facet key.
-         * When provided, it will override the default behavior of facet
+         * When provided, it overrides the default behavior of facet
          * computation. The query syntax is the same as a filter expression. See
          * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter] for
          * detail syntax and limitations. Notice that there is no limitation on
@@ -4692,9 +4692,9 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) {
          *
          * In the response,
          * [SearchResponse.Facet.values.value][google.cloud.retail.v2.SearchResponse.Facet.FacetValue.value]
-         * will be always "1" and
+         * is always "1" and
          * [SearchResponse.Facet.values.count][google.cloud.retail.v2.SearchResponse.Facet.FacetValue.count]
-         * will be the number of results that match the query.
+         * is the number of results that match the query.
          *
          * For example, you can set a customized facet for "shipToStore",
          * where
@@ -4702,7 +4702,7 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) {
          * is "customizedShipToStore", and
          * [FacetKey.query][google.cloud.retail.v2.SearchRequest.FacetSpec.FacetKey.query]
          * is "availability: ANY(\"IN_STOCK\") AND shipToStore: ANY(\"123\")".
-         * Then the facet will count the products that are both in stock and ship
+         * Then the facet counts the products that are both in stock and ship
          * to store "123".
          * 
* @@ -4726,7 +4726,7 @@ public java.lang.String getQuery() { * *
          * The query that is used to compute facet for the given facet key.
-         * When provided, it will override the default behavior of facet
+         * When provided, it overrides the default behavior of facet
          * computation. The query syntax is the same as a filter expression. See
          * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter] for
          * detail syntax and limitations. Notice that there is no limitation on
@@ -4735,9 +4735,9 @@ public java.lang.String getQuery() {
          *
          * In the response,
          * [SearchResponse.Facet.values.value][google.cloud.retail.v2.SearchResponse.Facet.FacetValue.value]
-         * will be always "1" and
+         * is always "1" and
          * [SearchResponse.Facet.values.count][google.cloud.retail.v2.SearchResponse.Facet.FacetValue.count]
-         * will be the number of results that match the query.
+         * is the number of results that match the query.
          *
          * For example, you can set a customized facet for "shipToStore",
          * where
@@ -4745,7 +4745,7 @@ public java.lang.String getQuery() {
          * is "customizedShipToStore", and
          * [FacetKey.query][google.cloud.retail.v2.SearchRequest.FacetSpec.FacetKey.query]
          * is "availability: ANY(\"IN_STOCK\") AND shipToStore: ANY(\"123\")".
-         * Then the facet will count the products that are both in stock and ship
+         * Then the facet counts the products that are both in stock and ship
          * to store "123".
          * 
* @@ -4769,7 +4769,7 @@ public com.google.protobuf.ByteString getQueryBytes() { * *
          * The query that is used to compute facet for the given facet key.
-         * When provided, it will override the default behavior of facet
+         * When provided, it overrides the default behavior of facet
          * computation. The query syntax is the same as a filter expression. See
          * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter] for
          * detail syntax and limitations. Notice that there is no limitation on
@@ -4778,9 +4778,9 @@ public com.google.protobuf.ByteString getQueryBytes() {
          *
          * In the response,
          * [SearchResponse.Facet.values.value][google.cloud.retail.v2.SearchResponse.Facet.FacetValue.value]
-         * will be always "1" and
+         * is always "1" and
          * [SearchResponse.Facet.values.count][google.cloud.retail.v2.SearchResponse.Facet.FacetValue.count]
-         * will be the number of results that match the query.
+         * is the number of results that match the query.
          *
          * For example, you can set a customized facet for "shipToStore",
          * where
@@ -4788,7 +4788,7 @@ public com.google.protobuf.ByteString getQueryBytes() {
          * is "customizedShipToStore", and
          * [FacetKey.query][google.cloud.retail.v2.SearchRequest.FacetSpec.FacetKey.query]
          * is "availability: ANY(\"IN_STOCK\") AND shipToStore: ANY(\"123\")".
-         * Then the facet will count the products that are both in stock and ship
+         * Then the facet counts the products that are both in stock and ship
          * to store "123".
          * 
* @@ -4811,7 +4811,7 @@ public Builder setQuery(java.lang.String value) { * *
          * The query that is used to compute facet for the given facet key.
-         * When provided, it will override the default behavior of facet
+         * When provided, it overrides the default behavior of facet
          * computation. The query syntax is the same as a filter expression. See
          * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter] for
          * detail syntax and limitations. Notice that there is no limitation on
@@ -4820,9 +4820,9 @@ public Builder setQuery(java.lang.String value) {
          *
          * In the response,
          * [SearchResponse.Facet.values.value][google.cloud.retail.v2.SearchResponse.Facet.FacetValue.value]
-         * will be always "1" and
+         * is always "1" and
          * [SearchResponse.Facet.values.count][google.cloud.retail.v2.SearchResponse.Facet.FacetValue.count]
-         * will be the number of results that match the query.
+         * is the number of results that match the query.
          *
          * For example, you can set a customized facet for "shipToStore",
          * where
@@ -4830,7 +4830,7 @@ public Builder setQuery(java.lang.String value) {
          * is "customizedShipToStore", and
          * [FacetKey.query][google.cloud.retail.v2.SearchRequest.FacetSpec.FacetKey.query]
          * is "availability: ANY(\"IN_STOCK\") AND shipToStore: ANY(\"123\")".
-         * Then the facet will count the products that are both in stock and ship
+         * Then the facet counts the products that are both in stock and ship
          * to store "123".
          * 
* @@ -4849,7 +4849,7 @@ public Builder clearQuery() { * *
          * The query that is used to compute facet for the given facet key.
-         * When provided, it will override the default behavior of facet
+         * When provided, it overrides the default behavior of facet
          * computation. The query syntax is the same as a filter expression. See
          * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter] for
          * detail syntax and limitations. Notice that there is no limitation on
@@ -4858,9 +4858,9 @@ public Builder clearQuery() {
          *
          * In the response,
          * [SearchResponse.Facet.values.value][google.cloud.retail.v2.SearchResponse.Facet.FacetValue.value]
-         * will be always "1" and
+         * is always "1" and
          * [SearchResponse.Facet.values.count][google.cloud.retail.v2.SearchResponse.Facet.FacetValue.count]
-         * will be the number of results that match the query.
+         * is the number of results that match the query.
          *
          * For example, you can set a customized facet for "shipToStore",
          * where
@@ -4868,7 +4868,7 @@ public Builder clearQuery() {
          * is "customizedShipToStore", and
          * [FacetKey.query][google.cloud.retail.v2.SearchRequest.FacetSpec.FacetKey.query]
          * is "availability: ANY(\"IN_STOCK\") AND shipToStore: ANY(\"123\")".
-         * Then the facet will count the products that are both in stock and ship
+         * Then the facet counts the products that are both in stock and ship
          * to store "123".
          * 
* @@ -5271,15 +5271,15 @@ public com.google.protobuf.ByteString getExcludedFilterKeysBytes(int index) { *
      * Enables dynamic position for this facet. If set to true, the position of
      * this facet among all facets in the response is determined by Google
-     * Retail Search. It will be ordered together with dynamic facets if dynamic
+     * Retail Search. It is ordered together with dynamic facets if dynamic
      * facets is enabled. If set to false, the position of this facet in the
-     * response will be the same as in the request, and it will be ranked before
+     * response is the same as in the request, and it is ranked before
      * the facets with dynamic position enable and all dynamic facets.
      *
      * For example, you may always want to have rating facet returned in
      * the response, but it's not necessarily to always display the rating facet
      * at the top. In that case, you can set enable_dynamic_position to true so
-     * that the position of rating facet in response will be determined by
+     * that the position of rating facet in response is determined by
      * Google Retail Search.
      *
      * Another example, assuming you have the following facets in the request:
@@ -5290,13 +5290,13 @@ public com.google.protobuf.ByteString getExcludedFilterKeysBytes(int index) {
      *
      * * "brands", enable_dynamic_position = false
      *
-     * And also you have a dynamic facets enable, which will generate a facet
-     * 'gender'. Then the final order of the facets in the response can be
+     * And also you have a dynamic facets enable, which generates a facet
+     * "gender". Then, the final order of the facets in the response can be
      * ("price", "brands", "rating", "gender") or ("price", "brands", "gender",
      * "rating") depends on how Google Retail Search orders "gender" and
-     * "rating" facets. However, notice that "price" and "brands" will always be
-     * ranked at 1st and 2nd position since their enable_dynamic_position are
-     * false.
+     * "rating" facets. However, notice that "price" and "brands" are always
+     * ranked at first and second position because their enable_dynamic_position
+     * values are false.
      * 
* * bool enable_dynamic_position = 4; @@ -6455,15 +6455,15 @@ public Builder addExcludedFilterKeysBytes(com.google.protobuf.ByteString value) *
        * Enables dynamic position for this facet. If set to true, the position of
        * this facet among all facets in the response is determined by Google
-       * Retail Search. It will be ordered together with dynamic facets if dynamic
+       * Retail Search. It is ordered together with dynamic facets if dynamic
        * facets is enabled. If set to false, the position of this facet in the
-       * response will be the same as in the request, and it will be ranked before
+       * response is the same as in the request, and it is ranked before
        * the facets with dynamic position enable and all dynamic facets.
        *
        * For example, you may always want to have rating facet returned in
        * the response, but it's not necessarily to always display the rating facet
        * at the top. In that case, you can set enable_dynamic_position to true so
-       * that the position of rating facet in response will be determined by
+       * that the position of rating facet in response is determined by
        * Google Retail Search.
        *
        * Another example, assuming you have the following facets in the request:
@@ -6474,13 +6474,13 @@ public Builder addExcludedFilterKeysBytes(com.google.protobuf.ByteString value)
        *
        * * "brands", enable_dynamic_position = false
        *
-       * And also you have a dynamic facets enable, which will generate a facet
-       * 'gender'. Then the final order of the facets in the response can be
+       * And also you have a dynamic facets enable, which generates a facet
+       * "gender". Then, the final order of the facets in the response can be
        * ("price", "brands", "rating", "gender") or ("price", "brands", "gender",
        * "rating") depends on how Google Retail Search orders "gender" and
-       * "rating" facets. However, notice that "price" and "brands" will always be
-       * ranked at 1st and 2nd position since their enable_dynamic_position are
-       * false.
+       * "rating" facets. However, notice that "price" and "brands" are always
+       * ranked at first and second position because their enable_dynamic_position
+       * values are false.
        * 
* * bool enable_dynamic_position = 4; @@ -6497,15 +6497,15 @@ public boolean getEnableDynamicPosition() { *
        * Enables dynamic position for this facet. If set to true, the position of
        * this facet among all facets in the response is determined by Google
-       * Retail Search. It will be ordered together with dynamic facets if dynamic
+       * Retail Search. It is ordered together with dynamic facets if dynamic
        * facets is enabled. If set to false, the position of this facet in the
-       * response will be the same as in the request, and it will be ranked before
+       * response is the same as in the request, and it is ranked before
        * the facets with dynamic position enable and all dynamic facets.
        *
        * For example, you may always want to have rating facet returned in
        * the response, but it's not necessarily to always display the rating facet
        * at the top. In that case, you can set enable_dynamic_position to true so
-       * that the position of rating facet in response will be determined by
+       * that the position of rating facet in response is determined by
        * Google Retail Search.
        *
        * Another example, assuming you have the following facets in the request:
@@ -6516,13 +6516,13 @@ public boolean getEnableDynamicPosition() {
        *
        * * "brands", enable_dynamic_position = false
        *
-       * And also you have a dynamic facets enable, which will generate a facet
-       * 'gender'. Then the final order of the facets in the response can be
+       * And also you have a dynamic facets enable, which generates a facet
+       * "gender". Then, the final order of the facets in the response can be
        * ("price", "brands", "rating", "gender") or ("price", "brands", "gender",
        * "rating") depends on how Google Retail Search orders "gender" and
-       * "rating" facets. However, notice that "price" and "brands" will always be
-       * ranked at 1st and 2nd position since their enable_dynamic_position are
-       * false.
+       * "rating" facets. However, notice that "price" and "brands" are always
+       * ranked at first and second position because their enable_dynamic_position
+       * values are false.
        * 
* * bool enable_dynamic_position = 4; @@ -6543,15 +6543,15 @@ public Builder setEnableDynamicPosition(boolean value) { *
        * Enables dynamic position for this facet. If set to true, the position of
        * this facet among all facets in the response is determined by Google
-       * Retail Search. It will be ordered together with dynamic facets if dynamic
+       * Retail Search. It is ordered together with dynamic facets if dynamic
        * facets is enabled. If set to false, the position of this facet in the
-       * response will be the same as in the request, and it will be ranked before
+       * response is the same as in the request, and it is ranked before
        * the facets with dynamic position enable and all dynamic facets.
        *
        * For example, you may always want to have rating facet returned in
        * the response, but it's not necessarily to always display the rating facet
        * at the top. In that case, you can set enable_dynamic_position to true so
-       * that the position of rating facet in response will be determined by
+       * that the position of rating facet in response is determined by
        * Google Retail Search.
        *
        * Another example, assuming you have the following facets in the request:
@@ -6562,13 +6562,13 @@ public Builder setEnableDynamicPosition(boolean value) {
        *
        * * "brands", enable_dynamic_position = false
        *
-       * And also you have a dynamic facets enable, which will generate a facet
-       * 'gender'. Then the final order of the facets in the response can be
+       * And also you have a dynamic facets enable, which generates a facet
+       * "gender". Then, the final order of the facets in the response can be
        * ("price", "brands", "rating", "gender") or ("price", "brands", "gender",
        * "rating") depends on how Google Retail Search orders "gender" and
-       * "rating" facets. However, notice that "price" and "brands" will always be
-       * ranked at 1st and 2nd position since their enable_dynamic_position are
-       * false.
+       * "rating" facets. However, notice that "price" and "brands" are always
+       * ranked at first and second position because their enable_dynamic_position
+       * values are false.
        * 
* * bool enable_dynamic_position = 4; @@ -12306,7 +12306,7 @@ public com.google.protobuf.Parser getParserForType() { * or the name of the legacy placement resource, such as * `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. * This field is used to identify the serving config name and the set - * of models that will be used to make the search. + * of models that are used to make the search. * * * string placement = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -12334,7 +12334,7 @@ public java.lang.String getPlacement() { * or the name of the legacy placement resource, such as * `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. * This field is used to identify the serving config name and the set - * of models that will be used to make the search. + * of models that are used to make the search. * * * string placement = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -12714,8 +12714,8 @@ public int getOffset() { *
    * The filter syntax consists of an expression language for constructing a
    * predicate from one or more fields of the products being filtered. Filter
-   * expression is case-sensitive. See more details at this [user
-   * guide](https://cloud.google.com/retail/docs/filter-and-order#filter).
+   * expression is case-sensitive. For more information, see
+   * [Filter](https://cloud.google.com/retail/docs/filter-and-order#filter).
    *
    * If this field is unrecognizable, an INVALID_ARGUMENT is returned.
    * 
@@ -12742,8 +12742,8 @@ public java.lang.String getFilter() { *
    * The filter syntax consists of an expression language for constructing a
    * predicate from one or more fields of the products being filtered. Filter
-   * expression is case-sensitive. See more details at this [user
-   * guide](https://cloud.google.com/retail/docs/filter-and-order#filter).
+   * expression is case-sensitive. For more information, see
+   * [Filter](https://cloud.google.com/retail/docs/filter-and-order#filter).
    *
    * If this field is unrecognizable, an INVALID_ARGUMENT is returned.
    * 
@@ -12777,14 +12777,14 @@ public com.google.protobuf.ByteString getFilterBytes() { * checking any filters on the search page. * * The filter applied to every search request when quality improvement such as - * query expansion is needed. For example, if a query does not have enough - * results, an expanded query with - * [SearchRequest.canonical_filter][google.cloud.retail.v2.SearchRequest.canonical_filter] - * will be returned as a supplement of the original query. This field is - * strongly recommended to achieve high search quality. - * - * See [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter] for - * more details about filter syntax. + * query expansion is needed. In the case a query does not have a sufficient + * amount of results this filter will be used to determine whether or not to + * enable the query expansion flow. The original filter will still be used for + * the query expanded search. + * This field is strongly recommended to achieve high search quality. + * + * For more information about filter syntax, see + * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter]. * * * string canonical_filter = 28; @@ -12811,14 +12811,14 @@ public java.lang.String getCanonicalFilter() { * checking any filters on the search page. * * The filter applied to every search request when quality improvement such as - * query expansion is needed. For example, if a query does not have enough - * results, an expanded query with - * [SearchRequest.canonical_filter][google.cloud.retail.v2.SearchRequest.canonical_filter] - * will be returned as a supplement of the original query. This field is - * strongly recommended to achieve high search quality. - * - * See [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter] for - * more details about filter syntax. + * query expansion is needed. In the case a query does not have a sufficient + * amount of results this filter will be used to determine whether or not to + * enable the query expansion flow. The original filter will still be used for + * the query expanded search. + * This field is strongly recommended to achieve high search quality. + * + * For more information about filter syntax, see + * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter]. * * * string canonical_filter = 28; @@ -12848,9 +12848,9 @@ public com.google.protobuf.ByteString getCanonicalFilterBytes() { *
    * The order in which products are returned. Products can be ordered by
    * a field in an [Product][google.cloud.retail.v2.Product] object. Leave it
-   * unset if ordered by relevance. OrderBy expression is case-sensitive. See
-   * more details at this [user
-   * guide](https://cloud.google.com/retail/docs/filter-and-order#order).
+   * unset if ordered by relevance. OrderBy expression is case-sensitive. For
+   * more information, see
+   * [Order](https://cloud.google.com/retail/docs/filter-and-order#order).
    *
    * If this field is unrecognizable, an INVALID_ARGUMENT is returned.
    * 
@@ -12877,9 +12877,9 @@ public java.lang.String getOrderBy() { *
    * The order in which products are returned. Products can be ordered by
    * a field in an [Product][google.cloud.retail.v2.Product] object. Leave it
-   * unset if ordered by relevance. OrderBy expression is case-sensitive. See
-   * more details at this [user
-   * guide](https://cloud.google.com/retail/docs/filter-and-order#order).
+   * unset if ordered by relevance. OrderBy expression is case-sensitive. For
+   * more information, see
+   * [Order](https://cloud.google.com/retail/docs/filter-and-order#order).
    *
    * If this field is unrecognizable, an INVALID_ARGUMENT is returned.
    * 
@@ -13070,8 +13070,8 @@ public com.google.cloud.retail.v2.SearchRequest.DynamicFacetSpec getDynamicFacet * * *
-   * Boost specification to boost certain products. See more details at this
-   * [user guide](https://cloud.google.com/retail/docs/boosting).
+   * Boost specification to boost certain products. For more information, see
+   * [Boost results](https://cloud.google.com/retail/docs/boosting).
    *
    * Notice that if both
    * [ServingConfig.boost_control_ids][google.cloud.retail.v2.ServingConfig.boost_control_ids]
@@ -13094,8 +13094,8 @@ public boolean hasBoostSpec() {
    *
    *
    * 
-   * Boost specification to boost certain products. See more details at this
-   * [user guide](https://cloud.google.com/retail/docs/boosting).
+   * Boost specification to boost certain products. For more information, see
+   * [Boost results](https://cloud.google.com/retail/docs/boosting).
    *
    * Notice that if both
    * [ServingConfig.boost_control_ids][google.cloud.retail.v2.ServingConfig.boost_control_ids]
@@ -13120,8 +13120,8 @@ public com.google.cloud.retail.v2.SearchRequest.BoostSpec getBoostSpec() {
    *
    *
    * 
-   * Boost specification to boost certain products. See more details at this
-   * [user guide](https://cloud.google.com/retail/docs/boosting).
+   * Boost specification to boost certain products. For more information, see
+   * [Boost results](https://cloud.google.com/retail/docs/boosting).
    *
    * Notice that if both
    * [ServingConfig.boost_control_ids][google.cloud.retail.v2.ServingConfig.boost_control_ids]
@@ -13148,8 +13148,8 @@ public com.google.cloud.retail.v2.SearchRequest.BoostSpecOrBuilder getBoostSpecO
    *
    * 
    * The query expansion specification that specifies the conditions under which
-   * query expansion will occur. See more details at this [user
-   * guide](https://cloud.google.com/retail/docs/result-size#query_expansion).
+   * query expansion occurs. For more information, see [Query
+   * expansion](https://cloud.google.com/retail/docs/result-size#query_expansion).
    * 
* * .google.cloud.retail.v2.SearchRequest.QueryExpansionSpec query_expansion_spec = 14; @@ -13166,8 +13166,8 @@ public boolean hasQueryExpansionSpec() { * *
    * The query expansion specification that specifies the conditions under which
-   * query expansion will occur. See more details at this [user
-   * guide](https://cloud.google.com/retail/docs/result-size#query_expansion).
+   * query expansion occurs. For more information, see [Query
+   * expansion](https://cloud.google.com/retail/docs/result-size#query_expansion).
    * 
* * .google.cloud.retail.v2.SearchRequest.QueryExpansionSpec query_expansion_spec = 14; @@ -13186,8 +13186,8 @@ public com.google.cloud.retail.v2.SearchRequest.QueryExpansionSpec getQueryExpan * *
    * The query expansion specification that specifies the conditions under which
-   * query expansion will occur. See more details at this [user
-   * guide](https://cloud.google.com/retail/docs/result-size#query_expansion).
+   * query expansion occurs. For more information, see [Query
+   * expansion](https://cloud.google.com/retail/docs/result-size#query_expansion).
    * 
* * .google.cloud.retail.v2.SearchRequest.QueryExpansionSpec query_expansion_spec = 14; @@ -13550,7 +13550,7 @@ public com.google.protobuf.ByteString getVariantRollupKeysBytes(int index) { * * *
-   * The categories associated with a category page. Required for category
+   * The categories associated with a category page. Must be set for category
    * navigation queries to achieve good search quality. The format should be
    * the same as
    * [UserEvent.page_categories][google.cloud.retail.v2.UserEvent.page_categories];
@@ -13575,7 +13575,7 @@ public com.google.protobuf.ProtocolStringList getPageCategoriesList() {
    *
    *
    * 
-   * The categories associated with a category page. Required for category
+   * The categories associated with a category page. Must be set for category
    * navigation queries to achieve good search quality. The format should be
    * the same as
    * [UserEvent.page_categories][google.cloud.retail.v2.UserEvent.page_categories];
@@ -13600,7 +13600,7 @@ public int getPageCategoriesCount() {
    *
    *
    * 
-   * The categories associated with a category page. Required for category
+   * The categories associated with a category page. Must be set for category
    * navigation queries to achieve good search quality. The format should be
    * the same as
    * [UserEvent.page_categories][google.cloud.retail.v2.UserEvent.page_categories];
@@ -13626,7 +13626,7 @@ public java.lang.String getPageCategories(int index) {
    *
    *
    * 
-   * The categories associated with a category page. Required for category
+   * The categories associated with a category page. Must be set for category
    * navigation queries to achieve good search quality. The format should be
    * the same as
    * [UserEvent.page_categories][google.cloud.retail.v2.UserEvent.page_categories];
@@ -13813,9 +13813,9 @@ public int getLabelsCount() {
    *   key with multiple resources.
    * * Keys must start with a lowercase letter or international character.
    *
-   * See [Google Cloud
-   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
-   * for more details.
+   * For more information, see [Requirements for
+   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+   * in the Resource Manager documentation.
    * 
* * map<string, string> labels = 34; @@ -13851,9 +13851,9 @@ public java.util.Map getLabels() { * key with multiple resources. * * Keys must start with a lowercase letter or international character. * - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. + * For more information, see [Requirements for + * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + * in the Resource Manager documentation. *
* * map<string, string> labels = 34; @@ -13880,9 +13880,9 @@ public java.util.Map getLabelsMap() { * key with multiple resources. * * Keys must start with a lowercase letter or international character. * - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. + * For more information, see [Requirements for + * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + * in the Resource Manager documentation. *
* * map<string, string> labels = 34; @@ -13916,9 +13916,9 @@ public java.util.Map getLabelsMap() { * key with multiple resources. * * Keys must start with a lowercase letter or international character. * - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. + * For more information, see [Requirements for + * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + * in the Resource Manager documentation. *
* * map<string, string> labels = 34; @@ -15100,7 +15100,7 @@ public Builder mergeFrom( * or the name of the legacy placement resource, such as * `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. * This field is used to identify the serving config name and the set - * of models that will be used to make the search. + * of models that are used to make the search. *
* * string placement = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -15127,7 +15127,7 @@ public java.lang.String getPlacement() { * or the name of the legacy placement resource, such as * `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. * This field is used to identify the serving config name and the set - * of models that will be used to make the search. + * of models that are used to make the search. *
* * string placement = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -15154,7 +15154,7 @@ public com.google.protobuf.ByteString getPlacementBytes() { * or the name of the legacy placement resource, such as * `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. * This field is used to identify the serving config name and the set - * of models that will be used to make the search. + * of models that are used to make the search. *
* * string placement = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -15180,7 +15180,7 @@ public Builder setPlacement(java.lang.String value) { * or the name of the legacy placement resource, such as * `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. * This field is used to identify the serving config name and the set - * of models that will be used to make the search. + * of models that are used to make the search. * * * string placement = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -15202,7 +15202,7 @@ public Builder clearPlacement() { * or the name of the legacy placement resource, such as * `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. * This field is used to identify the serving config name and the set - * of models that will be used to make the search. + * of models that are used to make the search. * * * string placement = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -16108,8 +16108,8 @@ public Builder clearOffset() { *
      * The filter syntax consists of an expression language for constructing a
      * predicate from one or more fields of the products being filtered. Filter
-     * expression is case-sensitive. See more details at this [user
-     * guide](https://cloud.google.com/retail/docs/filter-and-order#filter).
+     * expression is case-sensitive. For more information, see
+     * [Filter](https://cloud.google.com/retail/docs/filter-and-order#filter).
      *
      * If this field is unrecognizable, an INVALID_ARGUMENT is returned.
      * 
@@ -16135,8 +16135,8 @@ public java.lang.String getFilter() { *
      * The filter syntax consists of an expression language for constructing a
      * predicate from one or more fields of the products being filtered. Filter
-     * expression is case-sensitive. See more details at this [user
-     * guide](https://cloud.google.com/retail/docs/filter-and-order#filter).
+     * expression is case-sensitive. For more information, see
+     * [Filter](https://cloud.google.com/retail/docs/filter-and-order#filter).
      *
      * If this field is unrecognizable, an INVALID_ARGUMENT is returned.
      * 
@@ -16162,8 +16162,8 @@ public com.google.protobuf.ByteString getFilterBytes() { *
      * The filter syntax consists of an expression language for constructing a
      * predicate from one or more fields of the products being filtered. Filter
-     * expression is case-sensitive. See more details at this [user
-     * guide](https://cloud.google.com/retail/docs/filter-and-order#filter).
+     * expression is case-sensitive. For more information, see
+     * [Filter](https://cloud.google.com/retail/docs/filter-and-order#filter).
      *
      * If this field is unrecognizable, an INVALID_ARGUMENT is returned.
      * 
@@ -16188,8 +16188,8 @@ public Builder setFilter(java.lang.String value) { *
      * The filter syntax consists of an expression language for constructing a
      * predicate from one or more fields of the products being filtered. Filter
-     * expression is case-sensitive. See more details at this [user
-     * guide](https://cloud.google.com/retail/docs/filter-and-order#filter).
+     * expression is case-sensitive. For more information, see
+     * [Filter](https://cloud.google.com/retail/docs/filter-and-order#filter).
      *
      * If this field is unrecognizable, an INVALID_ARGUMENT is returned.
      * 
@@ -16210,8 +16210,8 @@ public Builder clearFilter() { *
      * The filter syntax consists of an expression language for constructing a
      * predicate from one or more fields of the products being filtered. Filter
-     * expression is case-sensitive. See more details at this [user
-     * guide](https://cloud.google.com/retail/docs/filter-and-order#filter).
+     * expression is case-sensitive. For more information, see
+     * [Filter](https://cloud.google.com/retail/docs/filter-and-order#filter).
      *
      * If this field is unrecognizable, an INVALID_ARGUMENT is returned.
      * 
@@ -16241,14 +16241,14 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * checking any filters on the search page. * * The filter applied to every search request when quality improvement such as - * query expansion is needed. For example, if a query does not have enough - * results, an expanded query with - * [SearchRequest.canonical_filter][google.cloud.retail.v2.SearchRequest.canonical_filter] - * will be returned as a supplement of the original query. This field is - * strongly recommended to achieve high search quality. - * - * See [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter] for - * more details about filter syntax. + * query expansion is needed. In the case a query does not have a sufficient + * amount of results this filter will be used to determine whether or not to + * enable the query expansion flow. The original filter will still be used for + * the query expanded search. + * This field is strongly recommended to achieve high search quality. + * + * For more information about filter syntax, see + * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter]. * * * string canonical_filter = 28; @@ -16274,14 +16274,14 @@ public java.lang.String getCanonicalFilter() { * checking any filters on the search page. * * The filter applied to every search request when quality improvement such as - * query expansion is needed. For example, if a query does not have enough - * results, an expanded query with - * [SearchRequest.canonical_filter][google.cloud.retail.v2.SearchRequest.canonical_filter] - * will be returned as a supplement of the original query. This field is - * strongly recommended to achieve high search quality. - * - * See [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter] for - * more details about filter syntax. + * query expansion is needed. In the case a query does not have a sufficient + * amount of results this filter will be used to determine whether or not to + * enable the query expansion flow. The original filter will still be used for + * the query expanded search. + * This field is strongly recommended to achieve high search quality. + * + * For more information about filter syntax, see + * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter]. * * * string canonical_filter = 28; @@ -16307,14 +16307,14 @@ public com.google.protobuf.ByteString getCanonicalFilterBytes() { * checking any filters on the search page. * * The filter applied to every search request when quality improvement such as - * query expansion is needed. For example, if a query does not have enough - * results, an expanded query with - * [SearchRequest.canonical_filter][google.cloud.retail.v2.SearchRequest.canonical_filter] - * will be returned as a supplement of the original query. This field is - * strongly recommended to achieve high search quality. - * - * See [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter] for - * more details about filter syntax. + * query expansion is needed. In the case a query does not have a sufficient + * amount of results this filter will be used to determine whether or not to + * enable the query expansion flow. The original filter will still be used for + * the query expanded search. + * This field is strongly recommended to achieve high search quality. + * + * For more information about filter syntax, see + * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter]. * * * string canonical_filter = 28; @@ -16339,14 +16339,14 @@ public Builder setCanonicalFilter(java.lang.String value) { * checking any filters on the search page. * * The filter applied to every search request when quality improvement such as - * query expansion is needed. For example, if a query does not have enough - * results, an expanded query with - * [SearchRequest.canonical_filter][google.cloud.retail.v2.SearchRequest.canonical_filter] - * will be returned as a supplement of the original query. This field is - * strongly recommended to achieve high search quality. - * - * See [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter] for - * more details about filter syntax. + * query expansion is needed. In the case a query does not have a sufficient + * amount of results this filter will be used to determine whether or not to + * enable the query expansion flow. The original filter will still be used for + * the query expanded search. + * This field is strongly recommended to achieve high search quality. + * + * For more information about filter syntax, see + * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter]. * * * string canonical_filter = 28; @@ -16367,14 +16367,14 @@ public Builder clearCanonicalFilter() { * checking any filters on the search page. * * The filter applied to every search request when quality improvement such as - * query expansion is needed. For example, if a query does not have enough - * results, an expanded query with - * [SearchRequest.canonical_filter][google.cloud.retail.v2.SearchRequest.canonical_filter] - * will be returned as a supplement of the original query. This field is - * strongly recommended to achieve high search quality. - * - * See [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter] for - * more details about filter syntax. + * query expansion is needed. In the case a query does not have a sufficient + * amount of results this filter will be used to determine whether or not to + * enable the query expansion flow. The original filter will still be used for + * the query expanded search. + * This field is strongly recommended to achieve high search quality. + * + * For more information about filter syntax, see + * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter]. * * * string canonical_filter = 28; @@ -16400,9 +16400,9 @@ public Builder setCanonicalFilterBytes(com.google.protobuf.ByteString value) { *
      * The order in which products are returned. Products can be ordered by
      * a field in an [Product][google.cloud.retail.v2.Product] object. Leave it
-     * unset if ordered by relevance. OrderBy expression is case-sensitive. See
-     * more details at this [user
-     * guide](https://cloud.google.com/retail/docs/filter-and-order#order).
+     * unset if ordered by relevance. OrderBy expression is case-sensitive. For
+     * more information, see
+     * [Order](https://cloud.google.com/retail/docs/filter-and-order#order).
      *
      * If this field is unrecognizable, an INVALID_ARGUMENT is returned.
      * 
@@ -16428,9 +16428,9 @@ public java.lang.String getOrderBy() { *
      * The order in which products are returned. Products can be ordered by
      * a field in an [Product][google.cloud.retail.v2.Product] object. Leave it
-     * unset if ordered by relevance. OrderBy expression is case-sensitive. See
-     * more details at this [user
-     * guide](https://cloud.google.com/retail/docs/filter-and-order#order).
+     * unset if ordered by relevance. OrderBy expression is case-sensitive. For
+     * more information, see
+     * [Order](https://cloud.google.com/retail/docs/filter-and-order#order).
      *
      * If this field is unrecognizable, an INVALID_ARGUMENT is returned.
      * 
@@ -16456,9 +16456,9 @@ public com.google.protobuf.ByteString getOrderByBytes() { *
      * The order in which products are returned. Products can be ordered by
      * a field in an [Product][google.cloud.retail.v2.Product] object. Leave it
-     * unset if ordered by relevance. OrderBy expression is case-sensitive. See
-     * more details at this [user
-     * guide](https://cloud.google.com/retail/docs/filter-and-order#order).
+     * unset if ordered by relevance. OrderBy expression is case-sensitive. For
+     * more information, see
+     * [Order](https://cloud.google.com/retail/docs/filter-and-order#order).
      *
      * If this field is unrecognizable, an INVALID_ARGUMENT is returned.
      * 
@@ -16483,9 +16483,9 @@ public Builder setOrderBy(java.lang.String value) { *
      * The order in which products are returned. Products can be ordered by
      * a field in an [Product][google.cloud.retail.v2.Product] object. Leave it
-     * unset if ordered by relevance. OrderBy expression is case-sensitive. See
-     * more details at this [user
-     * guide](https://cloud.google.com/retail/docs/filter-and-order#order).
+     * unset if ordered by relevance. OrderBy expression is case-sensitive. For
+     * more information, see
+     * [Order](https://cloud.google.com/retail/docs/filter-and-order#order).
      *
      * If this field is unrecognizable, an INVALID_ARGUMENT is returned.
      * 
@@ -16506,9 +16506,9 @@ public Builder clearOrderBy() { *
      * The order in which products are returned. Products can be ordered by
      * a field in an [Product][google.cloud.retail.v2.Product] object. Leave it
-     * unset if ordered by relevance. OrderBy expression is case-sensitive. See
-     * more details at this [user
-     * guide](https://cloud.google.com/retail/docs/filter-and-order#order).
+     * unset if ordered by relevance. OrderBy expression is case-sensitive. For
+     * more information, see
+     * [Order](https://cloud.google.com/retail/docs/filter-and-order#order).
      *
      * If this field is unrecognizable, an INVALID_ARGUMENT is returned.
      * 
@@ -17208,8 +17208,8 @@ public Builder clearDynamicFacetSpec() { * * *
-     * Boost specification to boost certain products. See more details at this
-     * [user guide](https://cloud.google.com/retail/docs/boosting).
+     * Boost specification to boost certain products. For more information, see
+     * [Boost results](https://cloud.google.com/retail/docs/boosting).
      *
      * Notice that if both
      * [ServingConfig.boost_control_ids][google.cloud.retail.v2.ServingConfig.boost_control_ids]
@@ -17231,8 +17231,8 @@ public boolean hasBoostSpec() {
      *
      *
      * 
-     * Boost specification to boost certain products. See more details at this
-     * [user guide](https://cloud.google.com/retail/docs/boosting).
+     * Boost specification to boost certain products. For more information, see
+     * [Boost results](https://cloud.google.com/retail/docs/boosting).
      *
      * Notice that if both
      * [ServingConfig.boost_control_ids][google.cloud.retail.v2.ServingConfig.boost_control_ids]
@@ -17260,8 +17260,8 @@ public com.google.cloud.retail.v2.SearchRequest.BoostSpec getBoostSpec() {
      *
      *
      * 
-     * Boost specification to boost certain products. See more details at this
-     * [user guide](https://cloud.google.com/retail/docs/boosting).
+     * Boost specification to boost certain products. For more information, see
+     * [Boost results](https://cloud.google.com/retail/docs/boosting).
      *
      * Notice that if both
      * [ServingConfig.boost_control_ids][google.cloud.retail.v2.ServingConfig.boost_control_ids]
@@ -17291,8 +17291,8 @@ public Builder setBoostSpec(com.google.cloud.retail.v2.SearchRequest.BoostSpec v
      *
      *
      * 
-     * Boost specification to boost certain products. See more details at this
-     * [user guide](https://cloud.google.com/retail/docs/boosting).
+     * Boost specification to boost certain products. For more information, see
+     * [Boost results](https://cloud.google.com/retail/docs/boosting).
      *
      * Notice that if both
      * [ServingConfig.boost_control_ids][google.cloud.retail.v2.ServingConfig.boost_control_ids]
@@ -17320,8 +17320,8 @@ public Builder setBoostSpec(
      *
      *
      * 
-     * Boost specification to boost certain products. See more details at this
-     * [user guide](https://cloud.google.com/retail/docs/boosting).
+     * Boost specification to boost certain products. For more information, see
+     * [Boost results](https://cloud.google.com/retail/docs/boosting).
      *
      * Notice that if both
      * [ServingConfig.boost_control_ids][google.cloud.retail.v2.ServingConfig.boost_control_ids]
@@ -17357,8 +17357,8 @@ public Builder mergeBoostSpec(com.google.cloud.retail.v2.SearchRequest.BoostSpec
      *
      *
      * 
-     * Boost specification to boost certain products. See more details at this
-     * [user guide](https://cloud.google.com/retail/docs/boosting).
+     * Boost specification to boost certain products. For more information, see
+     * [Boost results](https://cloud.google.com/retail/docs/boosting).
      *
      * Notice that if both
      * [ServingConfig.boost_control_ids][google.cloud.retail.v2.ServingConfig.boost_control_ids]
@@ -17385,8 +17385,8 @@ public Builder clearBoostSpec() {
      *
      *
      * 
-     * Boost specification to boost certain products. See more details at this
-     * [user guide](https://cloud.google.com/retail/docs/boosting).
+     * Boost specification to boost certain products. For more information, see
+     * [Boost results](https://cloud.google.com/retail/docs/boosting).
      *
      * Notice that if both
      * [ServingConfig.boost_control_ids][google.cloud.retail.v2.ServingConfig.boost_control_ids]
@@ -17408,8 +17408,8 @@ public com.google.cloud.retail.v2.SearchRequest.BoostSpec.Builder getBoostSpecBu
      *
      *
      * 
-     * Boost specification to boost certain products. See more details at this
-     * [user guide](https://cloud.google.com/retail/docs/boosting).
+     * Boost specification to boost certain products. For more information, see
+     * [Boost results](https://cloud.google.com/retail/docs/boosting).
      *
      * Notice that if both
      * [ServingConfig.boost_control_ids][google.cloud.retail.v2.ServingConfig.boost_control_ids]
@@ -17435,8 +17435,8 @@ public com.google.cloud.retail.v2.SearchRequest.BoostSpecOrBuilder getBoostSpecO
      *
      *
      * 
-     * Boost specification to boost certain products. See more details at this
-     * [user guide](https://cloud.google.com/retail/docs/boosting).
+     * Boost specification to boost certain products. For more information, see
+     * [Boost results](https://cloud.google.com/retail/docs/boosting).
      *
      * Notice that if both
      * [ServingConfig.boost_control_ids][google.cloud.retail.v2.ServingConfig.boost_control_ids]
@@ -17477,8 +17477,8 @@ public com.google.cloud.retail.v2.SearchRequest.BoostSpecOrBuilder getBoostSpecO
      *
      * 
      * The query expansion specification that specifies the conditions under which
-     * query expansion will occur. See more details at this [user
-     * guide](https://cloud.google.com/retail/docs/result-size#query_expansion).
+     * query expansion occurs. For more information, see [Query
+     * expansion](https://cloud.google.com/retail/docs/result-size#query_expansion).
      * 
* * .google.cloud.retail.v2.SearchRequest.QueryExpansionSpec query_expansion_spec = 14; @@ -17494,8 +17494,8 @@ public boolean hasQueryExpansionSpec() { * *
      * The query expansion specification that specifies the conditions under which
-     * query expansion will occur. See more details at this [user
-     * guide](https://cloud.google.com/retail/docs/result-size#query_expansion).
+     * query expansion occurs. For more information, see [Query
+     * expansion](https://cloud.google.com/retail/docs/result-size#query_expansion).
      * 
* * .google.cloud.retail.v2.SearchRequest.QueryExpansionSpec query_expansion_spec = 14; @@ -17517,8 +17517,8 @@ public com.google.cloud.retail.v2.SearchRequest.QueryExpansionSpec getQueryExpan * *
      * The query expansion specification that specifies the conditions under which
-     * query expansion will occur. See more details at this [user
-     * guide](https://cloud.google.com/retail/docs/result-size#query_expansion).
+     * query expansion occurs. For more information, see [Query
+     * expansion](https://cloud.google.com/retail/docs/result-size#query_expansion).
      * 
* * .google.cloud.retail.v2.SearchRequest.QueryExpansionSpec query_expansion_spec = 14; @@ -17543,8 +17543,8 @@ public Builder setQueryExpansionSpec( * *
      * The query expansion specification that specifies the conditions under which
-     * query expansion will occur. See more details at this [user
-     * guide](https://cloud.google.com/retail/docs/result-size#query_expansion).
+     * query expansion occurs. For more information, see [Query
+     * expansion](https://cloud.google.com/retail/docs/result-size#query_expansion).
      * 
* * .google.cloud.retail.v2.SearchRequest.QueryExpansionSpec query_expansion_spec = 14; @@ -17566,8 +17566,8 @@ public Builder setQueryExpansionSpec( * *
      * The query expansion specification that specifies the conditions under which
-     * query expansion will occur. See more details at this [user
-     * guide](https://cloud.google.com/retail/docs/result-size#query_expansion).
+     * query expansion occurs. For more information, see [Query
+     * expansion](https://cloud.google.com/retail/docs/result-size#query_expansion).
      * 
* * .google.cloud.retail.v2.SearchRequest.QueryExpansionSpec query_expansion_spec = 14; @@ -17599,8 +17599,8 @@ public Builder mergeQueryExpansionSpec( * *
      * The query expansion specification that specifies the conditions under which
-     * query expansion will occur. See more details at this [user
-     * guide](https://cloud.google.com/retail/docs/result-size#query_expansion).
+     * query expansion occurs. For more information, see [Query
+     * expansion](https://cloud.google.com/retail/docs/result-size#query_expansion).
      * 
* * .google.cloud.retail.v2.SearchRequest.QueryExpansionSpec query_expansion_spec = 14; @@ -17621,8 +17621,8 @@ public Builder clearQueryExpansionSpec() { * *
      * The query expansion specification that specifies the conditions under which
-     * query expansion will occur. See more details at this [user
-     * guide](https://cloud.google.com/retail/docs/result-size#query_expansion).
+     * query expansion occurs. For more information, see [Query
+     * expansion](https://cloud.google.com/retail/docs/result-size#query_expansion).
      * 
* * .google.cloud.retail.v2.SearchRequest.QueryExpansionSpec query_expansion_spec = 14; @@ -17639,8 +17639,8 @@ public Builder clearQueryExpansionSpec() { * *
      * The query expansion specification that specifies the conditions under which
-     * query expansion will occur. See more details at this [user
-     * guide](https://cloud.google.com/retail/docs/result-size#query_expansion).
+     * query expansion occurs. For more information, see [Query
+     * expansion](https://cloud.google.com/retail/docs/result-size#query_expansion).
      * 
* * .google.cloud.retail.v2.SearchRequest.QueryExpansionSpec query_expansion_spec = 14; @@ -17661,8 +17661,8 @@ public Builder clearQueryExpansionSpec() { * *
      * The query expansion specification that specifies the conditions under which
-     * query expansion will occur. See more details at this [user
-     * guide](https://cloud.google.com/retail/docs/result-size#query_expansion).
+     * query expansion occurs. For more information, see [Query
+     * expansion](https://cloud.google.com/retail/docs/result-size#query_expansion).
      * 
* * .google.cloud.retail.v2.SearchRequest.QueryExpansionSpec query_expansion_spec = 14; @@ -18493,7 +18493,7 @@ private void ensurePageCategoriesIsMutable() { * * *
-     * The categories associated with a category page. Required for category
+     * The categories associated with a category page. Must be set for category
      * navigation queries to achieve good search quality. The format should be
      * the same as
      * [UserEvent.page_categories][google.cloud.retail.v2.UserEvent.page_categories];
@@ -18519,7 +18519,7 @@ public com.google.protobuf.ProtocolStringList getPageCategoriesList() {
      *
      *
      * 
-     * The categories associated with a category page. Required for category
+     * The categories associated with a category page. Must be set for category
      * navigation queries to achieve good search quality. The format should be
      * the same as
      * [UserEvent.page_categories][google.cloud.retail.v2.UserEvent.page_categories];
@@ -18544,7 +18544,7 @@ public int getPageCategoriesCount() {
      *
      *
      * 
-     * The categories associated with a category page. Required for category
+     * The categories associated with a category page. Must be set for category
      * navigation queries to achieve good search quality. The format should be
      * the same as
      * [UserEvent.page_categories][google.cloud.retail.v2.UserEvent.page_categories];
@@ -18570,7 +18570,7 @@ public java.lang.String getPageCategories(int index) {
      *
      *
      * 
-     * The categories associated with a category page. Required for category
+     * The categories associated with a category page. Must be set for category
      * navigation queries to achieve good search quality. The format should be
      * the same as
      * [UserEvent.page_categories][google.cloud.retail.v2.UserEvent.page_categories];
@@ -18596,7 +18596,7 @@ public com.google.protobuf.ByteString getPageCategoriesBytes(int index) {
      *
      *
      * 
-     * The categories associated with a category page. Required for category
+     * The categories associated with a category page. Must be set for category
      * navigation queries to achieve good search quality. The format should be
      * the same as
      * [UserEvent.page_categories][google.cloud.retail.v2.UserEvent.page_categories];
@@ -18630,7 +18630,7 @@ public Builder setPageCategories(int index, java.lang.String value) {
      *
      *
      * 
-     * The categories associated with a category page. Required for category
+     * The categories associated with a category page. Must be set for category
      * navigation queries to achieve good search quality. The format should be
      * the same as
      * [UserEvent.page_categories][google.cloud.retail.v2.UserEvent.page_categories];
@@ -18663,7 +18663,7 @@ public Builder addPageCategories(java.lang.String value) {
      *
      *
      * 
-     * The categories associated with a category page. Required for category
+     * The categories associated with a category page. Must be set for category
      * navigation queries to achieve good search quality. The format should be
      * the same as
      * [UserEvent.page_categories][google.cloud.retail.v2.UserEvent.page_categories];
@@ -18693,7 +18693,7 @@ public Builder addAllPageCategories(java.lang.Iterable values)
      *
      *
      * 
-     * The categories associated with a category page. Required for category
+     * The categories associated with a category page. Must be set for category
      * navigation queries to achieve good search quality. The format should be
      * the same as
      * [UserEvent.page_categories][google.cloud.retail.v2.UserEvent.page_categories];
@@ -18722,7 +18722,7 @@ public Builder clearPageCategories() {
      *
      *
      * 
-     * The categories associated with a category page. Required for category
+     * The categories associated with a category page. Must be set for category
      * navigation queries to achieve good search quality. The format should be
      * the same as
      * [UserEvent.page_categories][google.cloud.retail.v2.UserEvent.page_categories];
@@ -19175,9 +19175,9 @@ public int getLabelsCount() {
      *   key with multiple resources.
      * * Keys must start with a lowercase letter or international character.
      *
-     * See [Google Cloud
-     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
-     * for more details.
+     * For more information, see [Requirements for
+     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+     * in the Resource Manager documentation.
      * 
* * map<string, string> labels = 34; @@ -19213,9 +19213,9 @@ public java.util.Map getLabels() { * key with multiple resources. * * Keys must start with a lowercase letter or international character. * - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. + * For more information, see [Requirements for + * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + * in the Resource Manager documentation. *
* * map<string, string> labels = 34; @@ -19242,9 +19242,9 @@ public java.util.Map getLabelsMap() { * key with multiple resources. * * Keys must start with a lowercase letter or international character. * - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. + * For more information, see [Requirements for + * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + * in the Resource Manager documentation. *
* * map<string, string> labels = 34; @@ -19278,9 +19278,9 @@ public java.util.Map getLabelsMap() { * key with multiple resources. * * Keys must start with a lowercase letter or international character. * - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. + * For more information, see [Requirements for + * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + * in the Resource Manager documentation. *
* * map<string, string> labels = 34; @@ -19320,9 +19320,9 @@ public Builder clearLabels() { * key with multiple resources. * * Keys must start with a lowercase letter or international character. * - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. + * For more information, see [Requirements for + * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + * in the Resource Manager documentation. *
* * map<string, string> labels = 34; @@ -19358,9 +19358,9 @@ public java.util.Map getMutableLabels() { * key with multiple resources. * * Keys must start with a lowercase letter or international character. * - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. + * For more information, see [Requirements for + * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + * in the Resource Manager documentation. *
* * map<string, string> labels = 34; @@ -19394,9 +19394,9 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { * key with multiple resources. * * Keys must start with a lowercase letter or international character. * - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. + * For more information, see [Requirements for + * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + * in the Resource Manager documentation. *
* * map<string, string> labels = 34; diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/SearchRequestOrBuilder.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/SearchRequestOrBuilder.java index 43003aa066bf..36d56371a2b0 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/SearchRequestOrBuilder.java +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/SearchRequestOrBuilder.java @@ -33,7 +33,7 @@ public interface SearchRequestOrBuilder * or the name of the legacy placement resource, such as * `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. * This field is used to identify the serving config name and the set - * of models that will be used to make the search. + * of models that are used to make the search. *
* * string placement = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -50,7 +50,7 @@ public interface SearchRequestOrBuilder * or the name of the legacy placement resource, such as * `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. * This field is used to identify the serving config name and the set - * of models that will be used to make the search. + * of models that are used to make the search. *
* * string placement = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -290,8 +290,8 @@ public interface SearchRequestOrBuilder *
    * The filter syntax consists of an expression language for constructing a
    * predicate from one or more fields of the products being filtered. Filter
-   * expression is case-sensitive. See more details at this [user
-   * guide](https://cloud.google.com/retail/docs/filter-and-order#filter).
+   * expression is case-sensitive. For more information, see
+   * [Filter](https://cloud.google.com/retail/docs/filter-and-order#filter).
    *
    * If this field is unrecognizable, an INVALID_ARGUMENT is returned.
    * 
@@ -307,8 +307,8 @@ public interface SearchRequestOrBuilder *
    * The filter syntax consists of an expression language for constructing a
    * predicate from one or more fields of the products being filtered. Filter
-   * expression is case-sensitive. See more details at this [user
-   * guide](https://cloud.google.com/retail/docs/filter-and-order#filter).
+   * expression is case-sensitive. For more information, see
+   * [Filter](https://cloud.google.com/retail/docs/filter-and-order#filter).
    *
    * If this field is unrecognizable, an INVALID_ARGUMENT is returned.
    * 
@@ -327,14 +327,14 @@ public interface SearchRequestOrBuilder * checking any filters on the search page. * * The filter applied to every search request when quality improvement such as - * query expansion is needed. For example, if a query does not have enough - * results, an expanded query with - * [SearchRequest.canonical_filter][google.cloud.retail.v2.SearchRequest.canonical_filter] - * will be returned as a supplement of the original query. This field is - * strongly recommended to achieve high search quality. - * - * See [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter] for - * more details about filter syntax. + * query expansion is needed. In the case a query does not have a sufficient + * amount of results this filter will be used to determine whether or not to + * enable the query expansion flow. The original filter will still be used for + * the query expanded search. + * This field is strongly recommended to achieve high search quality. + * + * For more information about filter syntax, see + * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter]. *
* * string canonical_filter = 28; @@ -350,14 +350,14 @@ public interface SearchRequestOrBuilder * checking any filters on the search page. * * The filter applied to every search request when quality improvement such as - * query expansion is needed. For example, if a query does not have enough - * results, an expanded query with - * [SearchRequest.canonical_filter][google.cloud.retail.v2.SearchRequest.canonical_filter] - * will be returned as a supplement of the original query. This field is - * strongly recommended to achieve high search quality. - * - * See [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter] for - * more details about filter syntax. + * query expansion is needed. In the case a query does not have a sufficient + * amount of results this filter will be used to determine whether or not to + * enable the query expansion flow. The original filter will still be used for + * the query expanded search. + * This field is strongly recommended to achieve high search quality. + * + * For more information about filter syntax, see + * [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter]. *
* * string canonical_filter = 28; @@ -372,9 +372,9 @@ public interface SearchRequestOrBuilder *
    * The order in which products are returned. Products can be ordered by
    * a field in an [Product][google.cloud.retail.v2.Product] object. Leave it
-   * unset if ordered by relevance. OrderBy expression is case-sensitive. See
-   * more details at this [user
-   * guide](https://cloud.google.com/retail/docs/filter-and-order#order).
+   * unset if ordered by relevance. OrderBy expression is case-sensitive. For
+   * more information, see
+   * [Order](https://cloud.google.com/retail/docs/filter-and-order#order).
    *
    * If this field is unrecognizable, an INVALID_ARGUMENT is returned.
    * 
@@ -390,9 +390,9 @@ public interface SearchRequestOrBuilder *
    * The order in which products are returned. Products can be ordered by
    * a field in an [Product][google.cloud.retail.v2.Product] object. Leave it
-   * unset if ordered by relevance. OrderBy expression is case-sensitive. See
-   * more details at this [user
-   * guide](https://cloud.google.com/retail/docs/filter-and-order#order).
+   * unset if ordered by relevance. OrderBy expression is case-sensitive. For
+   * more information, see
+   * [Order](https://cloud.google.com/retail/docs/filter-and-order#order).
    *
    * If this field is unrecognizable, an INVALID_ARGUMENT is returned.
    * 
@@ -534,8 +534,8 @@ public interface SearchRequestOrBuilder * * *
-   * Boost specification to boost certain products. See more details at this
-   * [user guide](https://cloud.google.com/retail/docs/boosting).
+   * Boost specification to boost certain products. For more information, see
+   * [Boost results](https://cloud.google.com/retail/docs/boosting).
    *
    * Notice that if both
    * [ServingConfig.boost_control_ids][google.cloud.retail.v2.ServingConfig.boost_control_ids]
@@ -555,8 +555,8 @@ public interface SearchRequestOrBuilder
    *
    *
    * 
-   * Boost specification to boost certain products. See more details at this
-   * [user guide](https://cloud.google.com/retail/docs/boosting).
+   * Boost specification to boost certain products. For more information, see
+   * [Boost results](https://cloud.google.com/retail/docs/boosting).
    *
    * Notice that if both
    * [ServingConfig.boost_control_ids][google.cloud.retail.v2.ServingConfig.boost_control_ids]
@@ -576,8 +576,8 @@ public interface SearchRequestOrBuilder
    *
    *
    * 
-   * Boost specification to boost certain products. See more details at this
-   * [user guide](https://cloud.google.com/retail/docs/boosting).
+   * Boost specification to boost certain products. For more information, see
+   * [Boost results](https://cloud.google.com/retail/docs/boosting).
    *
    * Notice that if both
    * [ServingConfig.boost_control_ids][google.cloud.retail.v2.ServingConfig.boost_control_ids]
@@ -597,8 +597,8 @@ public interface SearchRequestOrBuilder
    *
    * 
    * The query expansion specification that specifies the conditions under which
-   * query expansion will occur. See more details at this [user
-   * guide](https://cloud.google.com/retail/docs/result-size#query_expansion).
+   * query expansion occurs. For more information, see [Query
+   * expansion](https://cloud.google.com/retail/docs/result-size#query_expansion).
    * 
* * .google.cloud.retail.v2.SearchRequest.QueryExpansionSpec query_expansion_spec = 14; @@ -612,8 +612,8 @@ public interface SearchRequestOrBuilder * *
    * The query expansion specification that specifies the conditions under which
-   * query expansion will occur. See more details at this [user
-   * guide](https://cloud.google.com/retail/docs/result-size#query_expansion).
+   * query expansion occurs. For more information, see [Query
+   * expansion](https://cloud.google.com/retail/docs/result-size#query_expansion).
    * 
* * .google.cloud.retail.v2.SearchRequest.QueryExpansionSpec query_expansion_spec = 14; @@ -627,8 +627,8 @@ public interface SearchRequestOrBuilder * *
    * The query expansion specification that specifies the conditions under which
-   * query expansion will occur. See more details at this [user
-   * guide](https://cloud.google.com/retail/docs/result-size#query_expansion).
+   * query expansion occurs. For more information, see [Query
+   * expansion](https://cloud.google.com/retail/docs/result-size#query_expansion).
    * 
* * .google.cloud.retail.v2.SearchRequest.QueryExpansionSpec query_expansion_spec = 14; @@ -968,7 +968,7 @@ public interface SearchRequestOrBuilder * * *
-   * The categories associated with a category page. Required for category
+   * The categories associated with a category page. Must be set for category
    * navigation queries to achieve good search quality. The format should be
    * the same as
    * [UserEvent.page_categories][google.cloud.retail.v2.UserEvent.page_categories];
@@ -991,7 +991,7 @@ public interface SearchRequestOrBuilder
    *
    *
    * 
-   * The categories associated with a category page. Required for category
+   * The categories associated with a category page. Must be set for category
    * navigation queries to achieve good search quality. The format should be
    * the same as
    * [UserEvent.page_categories][google.cloud.retail.v2.UserEvent.page_categories];
@@ -1014,7 +1014,7 @@ public interface SearchRequestOrBuilder
    *
    *
    * 
-   * The categories associated with a category page. Required for category
+   * The categories associated with a category page. Must be set for category
    * navigation queries to achieve good search quality. The format should be
    * the same as
    * [UserEvent.page_categories][google.cloud.retail.v2.UserEvent.page_categories];
@@ -1038,7 +1038,7 @@ public interface SearchRequestOrBuilder
    *
    *
    * 
-   * The categories associated with a category page. Required for category
+   * The categories associated with a category page. Must be set for category
    * navigation queries to achieve good search quality. The format should be
    * the same as
    * [UserEvent.page_categories][google.cloud.retail.v2.UserEvent.page_categories];
@@ -1170,9 +1170,9 @@ public interface SearchRequestOrBuilder
    *   key with multiple resources.
    * * Keys must start with a lowercase letter or international character.
    *
-   * See [Google Cloud
-   * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
-   * for more details.
+   * For more information, see [Requirements for
+   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
+   * in the Resource Manager documentation.
    * 
* * map<string, string> labels = 34; @@ -1196,9 +1196,9 @@ public interface SearchRequestOrBuilder * key with multiple resources. * * Keys must start with a lowercase letter or international character. * - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. + * For more information, see [Requirements for + * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + * in the Resource Manager documentation. *
* * map<string, string> labels = 34; @@ -1225,9 +1225,9 @@ public interface SearchRequestOrBuilder * key with multiple resources. * * Keys must start with a lowercase letter or international character. * - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. + * For more information, see [Requirements for + * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + * in the Resource Manager documentation. *
* * map<string, string> labels = 34; @@ -1251,9 +1251,9 @@ public interface SearchRequestOrBuilder * key with multiple resources. * * Keys must start with a lowercase letter or international character. * - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. + * For more information, see [Requirements for + * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + * in the Resource Manager documentation. *
* * map<string, string> labels = 34; @@ -1281,9 +1281,9 @@ java.lang.String getLabelsOrDefault( * key with multiple resources. * * Keys must start with a lowercase letter or international character. * - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. + * For more information, see [Requirements for + * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + * in the Resource Manager documentation. *
* * map<string, string> labels = 34; diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ServingConfig.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ServingConfig.java index 47f233d87f82..d4377cf2e2fb 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ServingConfig.java +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ServingConfig.java @@ -1641,6 +1641,25 @@ public com.google.protobuf.ByteString getEnableCategoryFilterLevelBytes() { } } + public static final int IGNORE_RECS_DENYLIST_FIELD_NUMBER = 24; + private boolean ignoreRecsDenylist_ = false; + /** + * + * + *
+   * When the flag is enabled, the products in the denylist will not be filtered
+   * out in the recommendation filtering results.
+   * 
+ * + * bool ignore_recs_denylist = 24; + * + * @return The ignoreRecsDenylist. + */ + @java.lang.Override + public boolean getIgnoreRecsDenylist() { + return ignoreRecsDenylist_; + } + public static final int PERSONALIZATION_SPEC_FIELD_NUMBER = 21; private com.google.cloud.retail.v2.SearchRequest.PersonalizationSpec personalizationSpec_; /** @@ -1929,6 +1948,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(21, getPersonalizationSpec()); } + if (ignoreRecsDenylist_ != false) { + output.writeBool(24, ignoreRecsDenylist_); + } getUnknownFields().writeTo(output); } @@ -2054,6 +2076,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getPersonalizationSpec()); } + if (ignoreRecsDenylist_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(24, ignoreRecsDenylist_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2092,6 +2117,7 @@ public boolean equals(final java.lang.Object obj) { if (!getDiversityLevel().equals(other.getDiversityLevel())) return false; if (diversityType_ != other.diversityType_) return false; if (!getEnableCategoryFilterLevel().equals(other.getEnableCategoryFilterLevel())) return false; + if (getIgnoreRecsDenylist() != other.getIgnoreRecsDenylist()) return false; if (hasPersonalizationSpec() != other.hasPersonalizationSpec()) return false; if (hasPersonalizationSpec()) { if (!getPersonalizationSpec().equals(other.getPersonalizationSpec())) return false; @@ -2162,6 +2188,8 @@ public int hashCode() { hash = (53 * hash) + diversityType_; hash = (37 * hash) + ENABLE_CATEGORY_FILTER_LEVEL_FIELD_NUMBER; hash = (53 * hash) + getEnableCategoryFilterLevel().hashCode(); + hash = (37 * hash) + IGNORE_RECS_DENYLIST_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIgnoreRecsDenylist()); if (hasPersonalizationSpec()) { hash = (37 * hash) + PERSONALIZATION_SPEC_FIELD_NUMBER; hash = (53 * hash) + getPersonalizationSpec().hashCode(); @@ -2341,13 +2369,14 @@ public Builder clear() { diversityLevel_ = ""; diversityType_ = 0; enableCategoryFilterLevel_ = ""; + ignoreRecsDenylist_ = false; personalizationSpec_ = null; if (personalizationSpecBuilder_ != null) { personalizationSpecBuilder_.dispose(); personalizationSpecBuilder_ = null; } solutionTypes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); return this; } @@ -2384,9 +2413,9 @@ public com.google.cloud.retail.v2.ServingConfig buildPartial() { } private void buildPartialRepeatedFields(com.google.cloud.retail.v2.ServingConfig result) { - if (((bitField0_ & 0x00040000) != 0)) { + if (((bitField0_ & 0x00080000) != 0)) { solutionTypes_ = java.util.Collections.unmodifiableList(solutionTypes_); - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); } result.solutionTypes_ = solutionTypes_; } @@ -2457,6 +2486,9 @@ private void buildPartial0(com.google.cloud.retail.v2.ServingConfig result) { result.enableCategoryFilterLevel_ = enableCategoryFilterLevel_; } if (((from_bitField0_ & 0x00020000) != 0)) { + result.ignoreRecsDenylist_ = ignoreRecsDenylist_; + } + if (((from_bitField0_ & 0x00040000) != 0)) { result.personalizationSpec_ = personalizationSpecBuilder_ == null ? personalizationSpec_ @@ -2637,13 +2669,16 @@ public Builder mergeFrom(com.google.cloud.retail.v2.ServingConfig other) { bitField0_ |= 0x00010000; onChanged(); } + if (other.getIgnoreRecsDenylist() != false) { + setIgnoreRecsDenylist(other.getIgnoreRecsDenylist()); + } if (other.hasPersonalizationSpec()) { mergePersonalizationSpec(other.getPersonalizationSpec()); } if (!other.solutionTypes_.isEmpty()) { if (solutionTypes_.isEmpty()) { solutionTypes_ = other.solutionTypes_; - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); } else { ensureSolutionTypesIsMutable(); solutionTypes_.addAll(other.solutionTypes_); @@ -2811,9 +2846,15 @@ public Builder mergeFrom( { input.readMessage( getPersonalizationSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; break; } // case 170 + case 192: + { + ignoreRecsDenylist_ = input.readBool(); + bitField0_ |= 0x00020000; + break; + } // case 192 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -6337,6 +6378,62 @@ public Builder setEnableCategoryFilterLevelBytes(com.google.protobuf.ByteString return this; } + private boolean ignoreRecsDenylist_; + /** + * + * + *
+     * When the flag is enabled, the products in the denylist will not be filtered
+     * out in the recommendation filtering results.
+     * 
+ * + * bool ignore_recs_denylist = 24; + * + * @return The ignoreRecsDenylist. + */ + @java.lang.Override + public boolean getIgnoreRecsDenylist() { + return ignoreRecsDenylist_; + } + /** + * + * + *
+     * When the flag is enabled, the products in the denylist will not be filtered
+     * out in the recommendation filtering results.
+     * 
+ * + * bool ignore_recs_denylist = 24; + * + * @param value The ignoreRecsDenylist to set. + * @return This builder for chaining. + */ + public Builder setIgnoreRecsDenylist(boolean value) { + + ignoreRecsDenylist_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + * + * + *
+     * When the flag is enabled, the products in the denylist will not be filtered
+     * out in the recommendation filtering results.
+     * 
+ * + * bool ignore_recs_denylist = 24; + * + * @return This builder for chaining. + */ + public Builder clearIgnoreRecsDenylist() { + bitField0_ = (bitField0_ & ~0x00020000); + ignoreRecsDenylist_ = false; + onChanged(); + return this; + } + private com.google.cloud.retail.v2.SearchRequest.PersonalizationSpec personalizationSpec_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.retail.v2.SearchRequest.PersonalizationSpec, @@ -6369,7 +6466,7 @@ public Builder setEnableCategoryFilterLevelBytes(com.google.protobuf.ByteString * @return Whether the personalizationSpec field is set. */ public boolean hasPersonalizationSpec() { - return ((bitField0_ & 0x00020000) != 0); + return ((bitField0_ & 0x00040000) != 0); } /** * @@ -6438,7 +6535,7 @@ public Builder setPersonalizationSpec( } else { personalizationSpecBuilder_.setMessage(value); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -6472,7 +6569,7 @@ public Builder setPersonalizationSpec( } else { personalizationSpecBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -6502,7 +6599,7 @@ public Builder setPersonalizationSpec( public Builder mergePersonalizationSpec( com.google.cloud.retail.v2.SearchRequest.PersonalizationSpec value) { if (personalizationSpecBuilder_ == null) { - if (((bitField0_ & 0x00020000) != 0) + if (((bitField0_ & 0x00040000) != 0) && personalizationSpec_ != null && personalizationSpec_ != com.google.cloud.retail.v2.SearchRequest.PersonalizationSpec @@ -6515,7 +6612,7 @@ public Builder mergePersonalizationSpec( personalizationSpecBuilder_.mergeFrom(value); } if (personalizationSpec_ != null) { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); } return this; @@ -6544,7 +6641,7 @@ public Builder mergePersonalizationSpec( *
*/ public Builder clearPersonalizationSpec() { - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); personalizationSpec_ = null; if (personalizationSpecBuilder_ != null) { personalizationSpecBuilder_.dispose(); @@ -6578,7 +6675,7 @@ public Builder clearPersonalizationSpec() { */ public com.google.cloud.retail.v2.SearchRequest.PersonalizationSpec.Builder getPersonalizationSpecBuilder() { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return getPersonalizationSpecFieldBuilder().getBuilder(); } @@ -6658,9 +6755,9 @@ public Builder clearPersonalizationSpec() { private java.util.List solutionTypes_ = java.util.Collections.emptyList(); private void ensureSolutionTypesIsMutable() { - if (!((bitField0_ & 0x00040000) != 0)) { + if (!((bitField0_ & 0x00080000) != 0)) { solutionTypes_ = new java.util.ArrayList(solutionTypes_); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; } } /** @@ -6806,7 +6903,7 @@ public Builder addAllSolutionTypes( */ public Builder clearSolutionTypes() { solutionTypes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); onChanged(); return this; } diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ServingConfigOrBuilder.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ServingConfigOrBuilder.java index dcfee613d191..a0a04d6a7a48 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ServingConfigOrBuilder.java +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ServingConfigOrBuilder.java @@ -1126,6 +1126,20 @@ public interface ServingConfigOrBuilder */ com.google.protobuf.ByteString getEnableCategoryFilterLevelBytes(); + /** + * + * + *
+   * When the flag is enabled, the products in the denylist will not be filtered
+   * out in the recommendation filtering results.
+   * 
+ * + * bool ignore_recs_denylist = 24; + * + * @return The ignoreRecsDenylist. + */ + boolean getIgnoreRecsDenylist(); + /** * * diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ServingConfigProto.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ServingConfigProto.java index 5076e7bae92b..84ce6c788e12 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ServingConfigProto.java +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/ServingConfigProto.java @@ -46,7 +46,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "i/field_behavior.proto\032\031google/api/resou" + "rce.proto\032#google/cloud/retail/v2/common" + ".proto\032+google/cloud/retail/v2/search_se" - + "rvice.proto\"\370\007\n\rServingConfig\022\021\n\004name\030\001 " + + "rvice.proto\"\226\010\n\rServingConfig\022\021\n\004name\030\001 " + "\001(\tB\003\340A\005\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022\020\n\010m" + "odel_id\030\003 \001(\t\022\035\n\025price_reranking_level\030\004" + " \001(\t\022\031\n\021facet_control_ids\030\005 \003(\t\022R\n\022dynam" @@ -61,22 +61,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "rol_ids\030\017 \003(\t\022\027\n\017diversity_level\030\010 \001(\t\022K" + "\n\016diversity_type\030\024 \001(\01623.google.cloud.re" + "tail.v2.ServingConfig.DiversityType\022$\n\034e" - + "nable_category_filter_level\030\020 \001(\t\022W\n\024per" - + "sonalization_spec\030\025 \001(\01329.google.cloud.r" - + "etail.v2.SearchRequest.PersonalizationSp" - + "ec\022D\n\016solution_types\030\023 \003(\0162$.google.clou" - + "d.retail.v2.SolutionTypeB\006\340A\002\340A\005\"d\n\rDive" - + "rsityType\022\036\n\032DIVERSITY_TYPE_UNSPECIFIED\020" - + "\000\022\030\n\024RULE_BASED_DIVERSITY\020\002\022\031\n\025DATA_DRIV" - + "EN_DIVERSITY\020\003:\205\001\352A\201\001\n#retail.googleapis" - + ".com/ServingConfig\022Zprojects/{project}/l" - + "ocations/{location}/catalogs/{catalog}/s" - + "ervingConfigs/{serving_config}B\275\001\n\032com.g" - + "oogle.cloud.retail.v2B\022ServingConfigProt" - + "oP\001Z2cloud.google.com/go/retail/apiv2/re" - + "tailpb;retailpb\242\002\006RETAIL\252\002\026Google.Cloud." - + "Retail.V2\312\002\026Google\\Cloud\\Retail\\V2\352\002\031Goo" - + "gle::Cloud::Retail::V2b\006proto3" + + "nable_category_filter_level\030\020 \001(\t\022\034\n\024ign" + + "ore_recs_denylist\030\030 \001(\010\022W\n\024personalizati" + + "on_spec\030\025 \001(\01329.google.cloud.retail.v2.S" + + "earchRequest.PersonalizationSpec\022D\n\016solu" + + "tion_types\030\023 \003(\0162$.google.cloud.retail.v" + + "2.SolutionTypeB\006\340A\002\340A\005\"d\n\rDiversityType\022" + + "\036\n\032DIVERSITY_TYPE_UNSPECIFIED\020\000\022\030\n\024RULE_" + + "BASED_DIVERSITY\020\002\022\031\n\025DATA_DRIVEN_DIVERSI" + + "TY\020\003:\205\001\352A\201\001\n#retail.googleapis.com/Servi" + + "ngConfig\022Zprojects/{project}/locations/{" + + "location}/catalogs/{catalog}/servingConf" + + "igs/{serving_config}B\275\001\n\032com.google.clou" + + "d.retail.v2B\022ServingConfigProtoP\001Z2cloud" + + ".google.com/go/retail/apiv2/retailpb;ret" + + "ailpb\242\002\006RETAIL\252\002\026Google.Cloud.Retail.V2\312" + + "\002\026Google\\Cloud\\Retail\\V2\352\002\031Google::Cloud" + + "::Retail::V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -110,6 +111,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DiversityLevel", "DiversityType", "EnableCategoryFilterLevel", + "IgnoreRecsDenylist", "PersonalizationSpec", "SolutionTypes", }); diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/UserEvent.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/UserEvent.java index 0a55a0357a83..5e02456d4b68 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/UserEvent.java +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/UserEvent.java @@ -102,6 +102,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl * Required. User event type. Allowed values are: * * * `add-to-cart`: Products being added to cart. + * * `remove-from-cart`: Products being removed from cart. * * `category-page-view`: Special pages such as sale or promotion pages * viewed. * * `detail-page-view`: Products detail page viewed. @@ -136,6 +137,7 @@ public java.lang.String getEventType() { * Required. User event type. Allowed values are: * * * `add-to-cart`: Products being added to cart. + * * `remove-from-cart`: Products being removed from cart. * * `category-page-view`: Special pages such as sale or promotion pages * viewed. * * `detail-page-view`: Products detail page viewed. @@ -1650,8 +1652,8 @@ public com.google.protobuf.ByteString getPageViewIdBytes() { * The entity for customers that may run multiple different entities, domains, * sites or regions, for example, `Google US`, `Google Ads`, `Waymo`, * `google.com`, `youtube.com`, etc. - * It is recommended to set this field to get better per-entity search, - * completion and prediction results. + * We recommend that you set this field to get better per-entity search, + * completion, and prediction results. *
* * string entity = 23; @@ -1677,8 +1679,8 @@ public java.lang.String getEntity() { * The entity for customers that may run multiple different entities, domains, * sites or regions, for example, `Google US`, `Google Ads`, `Waymo`, * `google.com`, `youtube.com`, etc. - * It is recommended to set this field to get better per-entity search, - * completion and prediction results. + * We recommend that you set this field to get better per-entity search, + * completion, and prediction results. *
* * string entity = 23; @@ -2688,6 +2690,7 @@ public Builder mergeFrom( * Required. User event type. Allowed values are: * * * `add-to-cart`: Products being added to cart. + * * `remove-from-cart`: Products being removed from cart. * * `category-page-view`: Special pages such as sale or promotion pages * viewed. * * `detail-page-view`: Products detail page viewed. @@ -2721,6 +2724,7 @@ public java.lang.String getEventType() { * Required. User event type. Allowed values are: * * * `add-to-cart`: Products being added to cart. + * * `remove-from-cart`: Products being removed from cart. * * `category-page-view`: Special pages such as sale or promotion pages * viewed. * * `detail-page-view`: Products detail page viewed. @@ -2754,6 +2758,7 @@ public com.google.protobuf.ByteString getEventTypeBytes() { * Required. User event type. Allowed values are: * * * `add-to-cart`: Products being added to cart. + * * `remove-from-cart`: Products being removed from cart. * * `category-page-view`: Special pages such as sale or promotion pages * viewed. * * `detail-page-view`: Products detail page viewed. @@ -2786,6 +2791,7 @@ public Builder setEventType(java.lang.String value) { * Required. User event type. Allowed values are: * * * `add-to-cart`: Products being added to cart. + * * `remove-from-cart`: Products being removed from cart. * * `category-page-view`: Special pages such as sale or promotion pages * viewed. * * `detail-page-view`: Products detail page viewed. @@ -2814,6 +2820,7 @@ public Builder clearEventType() { * Required. User event type. Allowed values are: * * * `add-to-cart`: Products being added to cart. + * * `remove-from-cart`: Products being removed from cart. * * `category-page-view`: Special pages such as sale or promotion pages * viewed. * * `detail-page-view`: Products detail page viewed. @@ -6785,8 +6792,8 @@ public Builder setPageViewIdBytes(com.google.protobuf.ByteString value) { * The entity for customers that may run multiple different entities, domains, * sites or regions, for example, `Google US`, `Google Ads`, `Waymo`, * `google.com`, `youtube.com`, etc. - * It is recommended to set this field to get better per-entity search, - * completion and prediction results. + * We recommend that you set this field to get better per-entity search, + * completion, and prediction results. *
* * string entity = 23; @@ -6811,8 +6818,8 @@ public java.lang.String getEntity() { * The entity for customers that may run multiple different entities, domains, * sites or regions, for example, `Google US`, `Google Ads`, `Waymo`, * `google.com`, `youtube.com`, etc. - * It is recommended to set this field to get better per-entity search, - * completion and prediction results. + * We recommend that you set this field to get better per-entity search, + * completion, and prediction results. *
* * string entity = 23; @@ -6837,8 +6844,8 @@ public com.google.protobuf.ByteString getEntityBytes() { * The entity for customers that may run multiple different entities, domains, * sites or regions, for example, `Google US`, `Google Ads`, `Waymo`, * `google.com`, `youtube.com`, etc. - * It is recommended to set this field to get better per-entity search, - * completion and prediction results. + * We recommend that you set this field to get better per-entity search, + * completion, and prediction results. *
* * string entity = 23; @@ -6862,8 +6869,8 @@ public Builder setEntity(java.lang.String value) { * The entity for customers that may run multiple different entities, domains, * sites or regions, for example, `Google US`, `Google Ads`, `Waymo`, * `google.com`, `youtube.com`, etc. - * It is recommended to set this field to get better per-entity search, - * completion and prediction results. + * We recommend that you set this field to get better per-entity search, + * completion, and prediction results. *
* * string entity = 23; @@ -6883,8 +6890,8 @@ public Builder clearEntity() { * The entity for customers that may run multiple different entities, domains, * sites or regions, for example, `Google US`, `Google Ads`, `Waymo`, * `google.com`, `youtube.com`, etc. - * It is recommended to set this field to get better per-entity search, - * completion and prediction results. + * We recommend that you set this field to get better per-entity search, + * completion, and prediction results. *
* * string entity = 23; diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/UserEventOrBuilder.java b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/UserEventOrBuilder.java index 52e714728b34..4c8322432b4f 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/UserEventOrBuilder.java +++ b/java-retail/proto-google-cloud-retail-v2/src/main/java/com/google/cloud/retail/v2/UserEventOrBuilder.java @@ -31,6 +31,7 @@ public interface UserEventOrBuilder * Required. User event type. Allowed values are: * * * `add-to-cart`: Products being added to cart. + * * `remove-from-cart`: Products being removed from cart. * * `category-page-view`: Special pages such as sale or promotion pages * viewed. * * `detail-page-view`: Products detail page viewed. @@ -54,6 +55,7 @@ public interface UserEventOrBuilder * Required. User event type. Allowed values are: * * * `add-to-cart`: Products being added to cart. + * * `remove-from-cart`: Products being removed from cart. * * `category-page-view`: Special pages such as sale or promotion pages * viewed. * * `detail-page-view`: Products detail page viewed. @@ -1160,8 +1162,8 @@ com.google.cloud.retail.v2.CustomAttribute getAttributesOrDefault( * The entity for customers that may run multiple different entities, domains, * sites or regions, for example, `Google US`, `Google Ads`, `Waymo`, * `google.com`, `youtube.com`, etc. - * It is recommended to set this field to get better per-entity search, - * completion and prediction results. + * We recommend that you set this field to get better per-entity search, + * completion, and prediction results. *
* * string entity = 23; @@ -1176,8 +1178,8 @@ com.google.cloud.retail.v2.CustomAttribute getAttributesOrDefault( * The entity for customers that may run multiple different entities, domains, * sites or regions, for example, `Google US`, `Google Ads`, `Waymo`, * `google.com`, `youtube.com`, etc. - * It is recommended to set this field to get better per-entity search, - * completion and prediction results. + * We recommend that you set this field to get better per-entity search, + * completion, and prediction results. *
* * string entity = 23; diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/catalog.proto b/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/catalog.proto index 8276310fa2de..90e976418b13 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/catalog.proto +++ b/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/catalog.proto @@ -20,6 +20,7 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/retail/v2/common.proto"; import "google/cloud/retail/v2/import_config.proto"; +import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Retail.V2"; option go_package = "cloud.google.com/go/retail/apiv2/retailpb;retailpb"; @@ -87,6 +88,123 @@ message ProductLevelConfig { // Catalog level attribute config for an attribute. For example, if customers // want to enable/disable facet for a specific attribute. message CatalogAttribute { + // Possible options for the facet that corresponds to the current attribute + // config. + message FacetConfig { + // [Facet values][google.cloud.retail.v2.SearchResponse.Facet.values] to + // ignore on [facets][google.cloud.retail.v2.SearchResponse.Facet] during + // the specified time range for the given + // [SearchResponse.Facet.key][google.cloud.retail.v2.SearchResponse.Facet.key] + // attribute. + message IgnoredFacetValues { + // List of facet values to ignore for the following time range. The facet + // values are the same as the attribute values. There is a limit of 10 + // values per instance of IgnoredFacetValues. Each value can have at most + // 128 characters. + repeated string values = 1; + + // Time range for the current list of facet values to ignore. + // If multiple time ranges are specified for an facet value for the + // current attribute, consider all of them. If both are empty, ignore + // always. If start time and end time are set, then start time + // must be before end time. + // If start time is not empty and end time is empty, then will ignore + // these facet values after the start time. + google.protobuf.Timestamp start_time = 2; + + // If start time is empty and end time is not empty, then ignore these + // facet values before end time. + google.protobuf.Timestamp end_time = 3; + } + + // Replaces a set of textual facet values by the same (possibly different) + // merged facet value. Each facet value should appear at most once as a + // value per [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute]. + // This feature is available only for textual custom attributes. + message MergedFacetValue { + // All the facet values that are replaces by the same + // [merged_value][google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value] + // that follows. The maximum number of values per MergedFacetValue is 25. + // Each value can have up to 128 characters. + repeated string values = 1; + + // All the previous values are replaced by this merged facet value. + // This merged_value must be non-empty and can have up to 128 characters. + string merged_value = 2; + } + + // The current facet key (i.e. attribute config) maps into the + // [merged_facet_key][google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet.merged_facet_key]. + // A facet key can have at most one child. The current facet key and the + // merged facet key need both to be textual custom attributes or both + // numerical custom attributes (same type). + message MergedFacet { + // The merged facet key should be a valid facet key that is different than + // the facet key of the current catalog attribute. We refer this is + // merged facet key as the child of the current catalog attribute. This + // merged facet key can't be a parent of another facet key (i.e. no + // directed path of length 2). This merged facet key needs to be either a + // textual custom attribute or a numerical custom attribute. + string merged_facet_key = 1; + } + + // Options to rerank based on facet values engaged by the user for the + // current key. That key needs to be a custom textual key and facetable. + // To use this control, you also need to pass all the facet keys engaged by + // the user in the request using the field [SearchRequest.FacetSpec]. In + // particular, if you don't pass the facet keys engaged that you want to + // rerank on, this control won't be effective. Moreover, to obtain better + // results, the facet values that you want to rerank on should be close to + // English (ideally made of words, underscores, and spaces). + message RerankConfig { + // If set to true, then we also rerank the dynamic facets based on the + // facet values engaged by the user for the current attribute key during + // serving. + bool rerank_facet = 1; + + // If empty, rerank on all facet values for the current key. Otherwise, + // will rerank on the facet values from this list only. + repeated string facet_values = 2; + } + + // If you don't set the facet + // [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2.SearchRequest.FacetSpec.FacetKey.intervals] + // in the request to a numerical attribute, then we use the computed + // intervals with rounded bounds obtained from all its product numerical + // attribute values. The computed intervals might not be ideal for some + // attributes. Therefore, we give you the option to overwrite them with the + // facet_intervals field. The maximum of facet intervals per + // [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 40. Each + // interval must have a lower bound or an upper bound. If both bounds are + // provided, then the lower bound must be smaller or equal than the upper + // bound. + repeated Interval facet_intervals = 1; + + // Each instance represents a list of attribute values to ignore as facet + // values for a specific time range. The maximum number of instances per + // [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 25. + repeated IgnoredFacetValues ignored_facet_values = 2; + + // Each instance replaces a list of facet values by a merged facet + // value. If a facet value is not in any list, then it will stay the same. + // To avoid conflicts, only paths of length 1 are accepted. In other words, + // if "dark_blue" merged into "BLUE", then the latter can't merge into + // "blues" because this would create a path of length 2. The maximum number + // of instances of MergedFacetValue per + // [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] is 100. This + // feature is available only for textual custom attributes. + repeated MergedFacetValue merged_facet_values = 3; + + // Use this field only if you want to merge a facet key into another facet + // key. + MergedFacet merged_facet = 4; + + // Set this field only if you want to rerank based on facet values engaged + // by the user for the current key. This option is only possible for custom + // facetable textual keys. + RerankConfig rerank_config = 5; + } + // The type of an attribute. enum AttributeType { // The type of the attribute is unknown. @@ -210,7 +328,9 @@ message CatalogAttribute { // are indexed so that it can be filtered, faceted, or boosted in // [SearchService.Search][google.cloud.retail.v2.SearchService.Search]. // - // Must be specified, otherwise throws INVALID_FORMAT error. + // Must be specified when + // [AttributesConfig.attribute_config_level][google.cloud.retail.v2.AttributesConfig.attribute_config_level] + // is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. IndexableOption indexable_option = 5; // If DYNAMIC_FACETABLE_ENABLED, attribute values are available for dynamic @@ -232,7 +352,9 @@ message CatalogAttribute { // [SearchService.Search][google.cloud.retail.v2.SearchService.Search], as // there are no text values associated to numerical attributes. // - // Must be specified, otherwise throws INVALID_FORMAT error. + // Must be specified, when + // [AttributesConfig.attribute_config_level][google.cloud.retail.v2.AttributesConfig.attribute_config_level] + // is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. SearchableOption searchable_option = 7; // If EXACT_SEARCHABLE_ENABLED, attribute values will be exact searchable. @@ -246,6 +368,9 @@ message CatalogAttribute { // results. If unset, the server behavior defaults to // [RETRIEVABLE_DISABLED][google.cloud.retail.v2.CatalogAttribute.RetrievableOption.RETRIEVABLE_DISABLED]. RetrievableOption retrievable_option = 12; + + // Contains facet options. + FacetConfig facet_config = 13; } // Catalog level attribute config. @@ -335,8 +460,8 @@ message CompletionConfig { // Output only. Name of the LRO corresponding to the latest suggestion terms // list import. // - // Can use [GetOperation][google.longrunning.Operations.GetOperation] API to - // retrieve the latest state of the Long Running Operation. + // Can use [GetOperation][google.longrunning.Operations.GetOperation] API + // method to retrieve the latest state of the Long Running Operation. string last_suggestions_import_operation = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/common.proto b/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/common.proto index 6f3b29ca8c41..78014a1490a2 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/common.proto +++ b/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/common.proto @@ -124,6 +124,12 @@ message Condition { // Range of time(s) specifying when Condition is active. // Condition true if any time range matches. repeated TimeRange active_time_range = 3; + + // Used to support browse uses cases. + // A list (up to 10 entries) of categories or departments. + // The format should be the same as + // [UserEvent.page_categories][google.cloud.retail.v2.UserEvent.page_categories]; + repeated string page_categories = 4; } // A rule is a condition-action pair @@ -172,17 +178,19 @@ message Rule { } // * Rule Condition: - // - No - // [Condition.query_terms][google.cloud.retail.v2.Condition.query_terms] - // provided is a global match. - // - 1 or more - // [Condition.query_terms][google.cloud.retail.v2.Condition.query_terms] - // provided are combined with OR operator. + // - No + // [Condition.query_terms][google.cloud.retail.v2.Condition.query_terms] + // provided is a global match. + // - 1 or more + // [Condition.query_terms][google.cloud.retail.v2.Condition.query_terms] + // provided are combined with OR operator. + // // * Action Input: The request query and filter that are applied to the // retrieved products, in addition to any filters already provided with the // SearchRequest. The AND operator is used to combine the query's existing // filters with the filter rule(s). NOTE: May result in 0 results when // filters conflict. + // // * Action Result: Filters the returned objects to be ONLY those that passed // the filter. message FilterAction { @@ -190,10 +198,9 @@ message Rule { // // * [filter][google.cloud.retail.v2.Rule.FilterAction.filter] must be set. // * Filter syntax is identical to - // [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter]. See + // [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter]. For // more - // details at the Retail Search - // [user guide](/retail/search/docs/filter-and-order#filter). + // information, see [Filter](/retail/docs/filter-and-order#filter). // * To filter products with product ID "product_1" or "product_2", and // color // "Red" or "Blue":
@@ -206,7 +213,7 @@ message Rule { // Redirects a shopper to a specific page. // // * Rule Condition: - // - Must specify + // Must specify // [Condition.query_terms][google.cloud.retail.v2.Condition.query_terms]. // * Action Input: Request Query // * Action Result: Redirects shopper to provided uri. @@ -288,6 +295,78 @@ message Rule { repeated string ignore_terms = 1; } + // Force returns an attribute/facet in the request around a certain position + // or above. + // + // * Rule Condition: + // Must specify non-empty + // [Condition.query_terms][google.cloud.retail.v2.Condition.query_terms] + // (for search only) or + // [Condition.page_categories][google.cloud.retail.v2.Condition.page_categories] + // (for browse only), but can't specify both. + // + // * Action Inputs: attribute name, position + // + // * Action Result: Will force return a facet key around a certain position + // or above if the condition is satisfied. + // + // Example: Suppose the query is "shoes", the + // [Condition.query_terms][google.cloud.retail.v2.Condition.query_terms] is + // "shoes", the + // [ForceReturnFacetAction.FacetPositionAdjustment.attribute_name][google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment.attribute_name] + // is "size" and the + // [ForceReturnFacetAction.FacetPositionAdjustment.position][google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment.position] + // is 8. + // + // Two cases: a) The facet key "size" is not already in the top 8 slots, then + // the facet "size" will appear at a position close to 8. b) The facet key + // "size" in among the top 8 positions in the request, then it will stay at + // its current rank. + message ForceReturnFacetAction { + // Each facet position adjustment consists of a single attribute name (i.e. + // facet key) along with a specified position. + message FacetPositionAdjustment { + // The attribute name to force return as a facet. Each attribute name + // should be a valid attribute name, be non-empty and contain at most 80 + // characters long. + string attribute_name = 1; + + // This is the position in the request as explained above. It should be + // strictly positive be at most 100. + int32 position = 2; + } + + // Each instance corresponds to a force return attribute for the given + // condition. There can't be more 3 instances here. + repeated FacetPositionAdjustment facet_position_adjustments = 1; + } + + // Removes an attribute/facet in the request if is present. + // + // * Rule Condition: + // Must specify non-empty + // [Condition.query_terms][google.cloud.retail.v2.Condition.query_terms] + // (for search only) or + // [Condition.page_categories][google.cloud.retail.v2.Condition.page_categories] + // (for browse only), but can't specify both. + // + // * Action Input: attribute name + // + // * Action Result: Will remove the attribute (as a facet) from the request + // if it is present. + // + // Example: Suppose the query is "shoes", the + // [Condition.query_terms][google.cloud.retail.v2.Condition.query_terms] is + // "shoes" and the attribute name "size", then facet key "size" will be + // removed from the request (if it is present). + message RemoveFacetAction { + // The attribute names (i.e. facet keys) to remove from the dynamic facets + // (if present in the request). There can't be more 3 attribute names. + // Each attribute name should be a valid attribute name, be non-empty and + // contain at most 80 characters. + repeated string attribute_names = 1; + } + // An action must be provided. oneof action { // A boost action. @@ -314,6 +393,12 @@ message Rule { // Treats a set of terms as synonyms of one another. TwowaySynonymsAction twoway_synonyms_action = 11; + + // Force returns an attribute as a facet in the request. + ForceReturnFacetAction force_return_facet_action = 12; + + // Remove an attribute as a facet in the request (if present). + RemoveFacetAction remove_facet_action = 13; } // Required. The condition that triggers the rule. diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/completion_service.proto b/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/completion_service.proto index 17468ebd01b9..a5f2b0ac83cf 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/completion_service.proto +++ b/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/completion_service.proto @@ -151,10 +151,15 @@ message CompleteQueryRequest { // capped by 20. int32 max_suggestions = 5; - // The entity for customers that may run multiple different entities, domains, - // sites or regions, for example, `Google US`, `Google Ads`, `Waymo`, + // If true, attribute suggestions are enabled and provided in response. + // + // This field is only available for "cloud-retail" dataset. + bool enable_attribute_suggestions = 9; + + // The entity for customers who run multiple entities, domains, sites, or + // regions, for example, `Google US`, `Google Ads`, `Waymo`, // `google.com`, `youtube.com`, etc. - // If this is set, it should be exactly matched with + // If this is set, it must be an exact match with // [UserEvent.entity][google.cloud.retail.v2.UserEvent.entity] to get // per-entity autocomplete results. string entity = 10; @@ -179,8 +184,10 @@ message CompleteQueryResponse { map attributes = 2; } - // Recent search of this user. + // Deprecated: Recent search of this user. message RecentSearchResult { + option deprecated = true; + // The recent search query. string recent_search = 1; } @@ -195,9 +202,9 @@ message CompleteQueryResponse { // attribution of complete model performance. string attribution_token = 2; - // Matched recent searches of this user. The maximum number of recent searches - // is 10. This field is a restricted feature. Contact Retail Search support - // team if you are interested in enabling it. + // Deprecated. Matched recent searches of this user. The maximum number of + // recent searches is 10. This field is a restricted feature. If you want to + // enable it, contact Retail Search support. // // This feature is only available when // [CompleteQueryRequest.visitor_id][google.cloud.retail.v2.CompleteQueryRequest.visitor_id] @@ -216,5 +223,5 @@ message CompleteQueryResponse { // // Recent searches are deduplicated. More recent searches will be reserved // when duplication happens. - repeated RecentSearchResult recent_search_results = 3; + repeated RecentSearchResult recent_search_results = 3 [deprecated = true]; } diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/import_config.proto b/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/import_config.proto index 8bb5e1543e1f..3425f604bc5d 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/import_config.proto +++ b/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/import_config.proto @@ -196,7 +196,8 @@ message ImportProductsRequest { ImportErrorsConfig errors_config = 3; // Indicates which fields in the provided imported `products` to update. If - // not set, all fields are updated. + // not set, all fields are updated. If provided, only the existing product + // fields are updated. Missing products will not be created. google.protobuf.FieldMask update_mask = 4; // The mode of reconciliation between existing products and the products to be @@ -212,9 +213,14 @@ message ImportProductsRequest { // Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`. It has // to be within the same project as // [ImportProductsRequest.parent][google.cloud.retail.v2.ImportProductsRequest.parent]. - // Make sure that `service-@gcp-sa-retail.iam.gserviceaccount.com` has the - // `pubsub.topics.publish` IAM permission on the topic. + // Make sure that both + // `cloud-retail-customer-data-access@system.gserviceaccount.com` and + // `service-@gcp-sa-retail.iam.gserviceaccount.com` + // have the `pubsub.topics.publish` IAM permission on the topic. + // + // Only supported when + // [ImportProductsRequest.reconciliation_mode][google.cloud.retail.v2.ImportProductsRequest.reconciliation_mode] + // is set to `FULL`. string notification_pubsub_topic = 7; } diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/model.proto b/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/model.proto index 53f255911aa8..69fff52e7d14 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/model.proto +++ b/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/model.proto @@ -50,6 +50,25 @@ message Model { [(google.api.field_behavior) = OPTIONAL]; } + // Additional configs for the frequently-bought-together model type. + message FrequentlyBoughtTogetherFeaturesConfig { + // Optional. Specifies the context of the model when it is used in predict + // requests. Can only be set for the `frequently-bought-together` type. If + // it isn't specified, it defaults to + // [MULTIPLE_CONTEXT_PRODUCTS][google.cloud.retail.v2.Model.ContextProductsType.MULTIPLE_CONTEXT_PRODUCTS]. + ContextProductsType context_products_type = 2 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Additional model features config. + message ModelFeaturesConfig { + oneof type_dedicated_config { + // Additional configs for frequently-bought-together models. + FrequentlyBoughtTogetherFeaturesConfig frequently_bought_together_config = + 1; + } + } + // The serving state of the model. enum ServingState { // Unspecified serving state. @@ -118,6 +137,22 @@ message Model { DATA_ERROR = 2; } + // Use single or multiple context products for recommendations. + enum ContextProductsType { + // Unspecified default value, should never be explicitly set. + // Defaults to + // [MULTIPLE_CONTEXT_PRODUCTS][google.cloud.retail.v2.Model.ContextProductsType.MULTIPLE_CONTEXT_PRODUCTS]. + CONTEXT_PRODUCTS_TYPE_UNSPECIFIED = 0; + + // Use only a single product as context for the recommendation. Typically + // used on pages like add-to-cart or product details. + SINGLE_CONTEXT_PRODUCT = 1; + + // Use one or multiple products as context for the recommendation. Typically + // used on shopping cart pages. + MULTIPLE_CONTEXT_PRODUCTS = 2; + } + // Required. The fully qualified resource name of the model. // // Format: @@ -236,4 +271,8 @@ message Model { // PageOptimizationConfig. repeated ServingConfigList serving_config_lists = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Additional model features config. + ModelFeaturesConfig model_features_config = 22 + [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/product.proto b/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/product.proto index 75128b7c7b5f..71aee814edf2 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/product.proto +++ b/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/product.proto @@ -103,23 +103,22 @@ message Product { } oneof expiration { - // The timestamp when this product becomes unavailable for - // [SearchService.Search][google.cloud.retail.v2.SearchService.Search]. Note - // that this is only applicable to - // [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] and - // [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION], and - // ignored for [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT]. - // In general, we suggest the users to delete the stale products explicitly, - // instead of using this field to determine staleness. + // Note that this field is applied in the following ways: // - // If it is set, the [Product][google.cloud.retail.v2.Product] is not - // available for - // [SearchService.Search][google.cloud.retail.v2.SearchService.Search] after - // [expire_time][google.cloud.retail.v2.Product.expire_time]. However, the - // product can still be retrieved by - // [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct] - // and - // [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts]. + // * If the [Product][google.cloud.retail.v2.Product] is already expired + // when it is uploaded, this product + // is not indexed for search. + // + // * If the [Product][google.cloud.retail.v2.Product] is not expired when it + // is uploaded, only the + // [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY]'s and + // [Type.COLLECTION][google.cloud.retail.v2.Product.Type.COLLECTION]'s + // expireTime is respected, and + // [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT]'s + // expireTime is not used. + // + // In general, we suggest the users to delete the stale + // products explicitly, instead of using this field to determine staleness. // // [expire_time][google.cloud.retail.v2.Product.expire_time] must be later // than [available_time][google.cloud.retail.v2.Product.available_time] and @@ -256,9 +255,10 @@ message Product { // error is returned. // // At most 250 values are allowed per - // [Product][google.cloud.retail.v2.Product]. Empty values are not allowed. - // Each value must be a UTF-8 encoded string with a length limit of 5,000 - // characters. Otherwise, an INVALID_ARGUMENT error is returned. + // [Product][google.cloud.retail.v2.Product] unless overridden through the + // Google Cloud console. Empty values are not allowed. Each value must be a + // UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an + // INVALID_ARGUMENT error is returned. // // Corresponding properties: Google Merchant Center property // [google_product_category][mc_google_product_category]. Schema.org property @@ -280,9 +280,10 @@ message Product { // The brands of the product. // - // A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded - // string with a length limit of 1,000 characters. Otherwise, an - // INVALID_ARGUMENT error is returned. + // A maximum of 30 brands are allowed unless overridden through the Google + // Cloud console. Each + // brand must be a UTF-8 encoded string with a length limit of 1,000 + // characters. Otherwise, an INVALID_ARGUMENT error is returned. // // Corresponding properties: Google Merchant Center property // [brand](https://support.google.com/merchants/answer/6324351). Schema.org diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/product_service.proto b/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/product_service.proto index e9ad2e318a8c..8d953ac28d07 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/product_service.proto +++ b/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/product_service.proto @@ -23,6 +23,7 @@ import "google/api/resource.proto"; import "google/cloud/retail/v2/common.proto"; import "google/cloud/retail/v2/import_config.proto"; import "google/cloud/retail/v2/product.proto"; +import "google/cloud/retail/v2/purge_config.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; @@ -86,6 +87,35 @@ service ProductService { option (google.api.method_signature) = "name"; } + // Permanently deletes all selected [Product][google.cloud.retail.v2.Product]s + // under a branch. + // + // This process is asynchronous. If the request is valid, the removal will be + // enqueued and processed offline. Depending on the number of + // [Product][google.cloud.retail.v2.Product]s, this operation could take hours + // to complete. Before the operation completes, some + // [Product][google.cloud.retail.v2.Product]s may still be returned by + // [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct] + // or + // [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts]. + // + // Depending on the number of [Product][google.cloud.retail.v2.Product]s, this + // operation could take hours to complete. To get a sample of + // [Product][google.cloud.retail.v2.Product]s that would be deleted, set + // [PurgeProductsRequest.force][google.cloud.retail.v2.PurgeProductsRequest.force] + // to false. + rpc PurgeProducts(PurgeProductsRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v2/{parent=projects/*/locations/*/catalogs/*/branches/*}/products:purge" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "google.cloud.retail.v2.PurgeProductsResponse" + metadata_type: "google.cloud.retail.v2.PurgeProductsMetadata" + }; + } + // Bulk import of multiple [Product][google.cloud.retail.v2.Product]s. // // Request processing may be synchronous. @@ -166,10 +196,11 @@ service ProductService { }; } - // It is recommended to use the + // We recommend that you use the // [ProductService.AddLocalInventories][google.cloud.retail.v2.ProductService.AddLocalInventories] - // method instead of - // [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2.ProductService.AddFulfillmentPlaces]. + // method instead of the + // [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2.ProductService.AddFulfillmentPlaces] + // method. // [ProductService.AddLocalInventories][google.cloud.retail.v2.ProductService.AddLocalInventories] // achieves the same results but provides more fine-grained control over // ingesting local inventory data. @@ -208,10 +239,11 @@ service ProductService { }; } - // It is recommended to use the + // We recommend that you use the // [ProductService.RemoveLocalInventories][google.cloud.retail.v2.ProductService.RemoveLocalInventories] - // method instead of - // [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2.ProductService.RemoveFulfillmentPlaces]. + // method instead of the + // [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2.ProductService.RemoveFulfillmentPlaces] + // method. // [ProductService.RemoveLocalInventories][google.cloud.retail.v2.ProductService.RemoveLocalInventories] // achieves the same results but provides more fine-grained control over // ingesting local inventory data. diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/promotion.proto b/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/promotion.proto index ccbb1b2fda77..69c246127815 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/promotion.proto +++ b/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/promotion.proto @@ -34,7 +34,7 @@ message Promotion { // id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT error is // returned. // - // Google Merchant Center property - // [promotion](https://support.google.com/merchants/answer/7050148). + // Corresponds to Google Merchant Center property + // [promotion_id](https://support.google.com/merchants/answer/7050148). string promotion_id = 1; } diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/purge_config.proto b/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/purge_config.proto index 8a7acc711cfa..8924b942745f 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/purge_config.proto +++ b/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/purge_config.proto @@ -18,6 +18,7 @@ package google.cloud.retail.v2; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Retail.V2"; option go_package = "cloud.google.com/go/retail/apiv2/retailpb;retailpb"; @@ -32,6 +33,95 @@ option ruby_package = "Google::Cloud::Retail::V2"; // This will be returned by the google.longrunning.Operation.metadata field. message PurgeMetadata {} +// Metadata related to the progress of the PurgeProducts operation. +// This will be returned by the google.longrunning.Operation.metadata field. +message PurgeProductsMetadata { + // Operation create time. + google.protobuf.Timestamp create_time = 1; + + // Operation last update time. If the operation is done, this is also the + // finish time. + google.protobuf.Timestamp update_time = 2; + + // Count of entries that were deleted successfully. + int64 success_count = 3; + + // Count of entries that encountered errors while processing. + int64 failure_count = 4; +} + +// Request message for PurgeProducts method. +message PurgeProductsRequest { + // Required. The resource name of the branch under which the products are + // created. The format is + // `projects/${projectId}/locations/global/catalogs/${catalogId}/branches/${branchId}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "retail.googleapis.com/Branch" } + ]; + + // Required. The filter string to specify the products to be deleted with a + // length limit of 5,000 characters. + // + // Empty string filter is not allowed. "*" implies delete all items in a + // branch. + // + // The eligible fields for filtering are: + // + // * `availability`: Double quoted + // [Product.availability][google.cloud.retail.v2.Product.availability] string. + // * `create_time` : in ISO 8601 "zulu" format. + // + // Supported syntax: + // + // * Comparators (">", "<", ">=", "<=", "="). + // Examples: + // * create_time <= "2015-02-13T17:05:46Z" + // * availability = "IN_STOCK" + // + // * Conjunctions ("AND") + // Examples: + // * create_time <= "2015-02-13T17:05:46Z" AND availability = "PREORDER" + // + // * Disjunctions ("OR") + // Examples: + // * create_time <= "2015-02-13T17:05:46Z" OR availability = "IN_STOCK" + // + // * Can support nested queries. + // Examples: + // * (create_time <= "2015-02-13T17:05:46Z" AND availability = "PREORDER") + // OR (create_time >= "2015-02-14T13:03:32Z" AND availability = "IN_STOCK") + // + // * Filter Limits: + // * Filter should not contain more than 6 conditions. + // * Max nesting depth should not exceed 2 levels. + // + // Examples queries: + // * Delete back order products created before a timestamp. + // create_time <= "2015-02-13T17:05:46Z" OR availability = "BACKORDER" + string filter = 2 [(google.api.field_behavior) = REQUIRED]; + + // Actually perform the purge. + // If `force` is set to false, the method will return the expected purge count + // without deleting any products. + bool force = 3; +} + +// Response of the PurgeProductsRequest. If the long running operation is +// successfully done, then this message is returned by the +// google.longrunning.Operations.response field. +message PurgeProductsResponse { + // The total count of products purged as a result of the operation. + int64 purge_count = 1; + + // A sample of the product names that will be deleted. + // Only populated if `force` is set to false. A max of 100 names will be + // returned and the names are chosen at random. + repeated string purge_sample = 2 [ + (google.api.resource_reference) = { type: "retail.googleapis.com/Product" } + ]; +} + // Request message for PurgeUserEvents method. message PurgeUserEventsRequest { // Required. The resource name of the catalog under which the events are diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/search_service.proto b/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/search_service.proto index 4c81410e9b5c..c9b8cbb3e92d 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/search_service.proto +++ b/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/search_service.proto @@ -118,13 +118,13 @@ message SearchRequest { // values. Maximum number of intervals is 40. // // For all numerical facet keys that appear in the list of products from - // the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + // the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are // computed from their distribution weekly. If the model assigns a high // score to a numerical facet key and its intervals are not specified in - // the search request, these percentiles will become the bounds - // for its intervals and will be returned in the response. If the + // the search request, these percentiles become the bounds + // for its intervals and are returned in the response. If the // facet key intervals are specified in the request, then the specified - // intervals will be returned instead. + // intervals are returned instead. repeated Interval intervals = 2; // Only get facet for the given restricted values. For example, when using @@ -157,14 +157,14 @@ message SearchRequest { // Only get facet values that start with the given string prefix. For // example, suppose "categories" has three values "Women > Shoe", // "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the - // "categories" facet will give only "Women > Shoe" and "Women > Dress". + // "categories" facet gives only "Women > Shoe" and "Women > Dress". // Only supported on textual fields. Maximum is 10. repeated string prefixes = 8; // Only get facet values that contains the given strings. For example, // suppose "categories" has three values "Women > Shoe", // "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the - // "categories" facet will give only "Women > Shoe" and "Men > Shoe". + // "categories" facet gives only "Women > Shoe" and "Men > Shoe". // Only supported on textual fields. Maximum is 10. repeated string contains = 9; @@ -197,7 +197,7 @@ message SearchRequest { string order_by = 4; // The query that is used to compute facet for the given facet key. - // When provided, it will override the default behavior of facet + // When provided, it overrides the default behavior of facet // computation. The query syntax is the same as a filter expression. See // [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter] for // detail syntax and limitations. Notice that there is no limitation on @@ -206,9 +206,9 @@ message SearchRequest { // // In the response, // [SearchResponse.Facet.values.value][google.cloud.retail.v2.SearchResponse.Facet.FacetValue.value] - // will be always "1" and + // is always "1" and // [SearchResponse.Facet.values.count][google.cloud.retail.v2.SearchResponse.Facet.FacetValue.count] - // will be the number of results that match the query. + // is the number of results that match the query. // // For example, you can set a customized facet for "shipToStore", // where @@ -216,7 +216,7 @@ message SearchRequest { // is "customizedShipToStore", and // [FacetKey.query][google.cloud.retail.v2.SearchRequest.FacetSpec.FacetKey.query] // is "availability: ANY(\"IN_STOCK\") AND shipToStore: ANY(\"123\")". - // Then the facet will count the products that are both in stock and ship + // Then the facet counts the products that are both in stock and ship // to store "123". string query = 5; @@ -267,15 +267,15 @@ message SearchRequest { // Enables dynamic position for this facet. If set to true, the position of // this facet among all facets in the response is determined by Google - // Retail Search. It will be ordered together with dynamic facets if dynamic + // Retail Search. It is ordered together with dynamic facets if dynamic // facets is enabled. If set to false, the position of this facet in the - // response will be the same as in the request, and it will be ranked before + // response is the same as in the request, and it is ranked before // the facets with dynamic position enable and all dynamic facets. // // For example, you may always want to have rating facet returned in // the response, but it's not necessarily to always display the rating facet // at the top. In that case, you can set enable_dynamic_position to true so - // that the position of rating facet in response will be determined by + // that the position of rating facet in response is determined by // Google Retail Search. // // Another example, assuming you have the following facets in the request: @@ -286,13 +286,13 @@ message SearchRequest { // // * "brands", enable_dynamic_position = false // - // And also you have a dynamic facets enable, which will generate a facet - // 'gender'. Then the final order of the facets in the response can be + // And also you have a dynamic facets enable, which generates a facet + // "gender". Then, the final order of the facets in the response can be // ("price", "brands", "rating", "gender") or ("price", "brands", "gender", // "rating") depends on how Google Retail Search orders "gender" and - // "rating" facets. However, notice that "price" and "brands" will always be - // ranked at 1st and 2nd position since their enable_dynamic_position are - // false. + // "rating" facets. However, notice that "price" and "brands" are always + // ranked at first and second position because their enable_dynamic_position + // values are false. bool enable_dynamic_position = 4; } @@ -489,7 +489,7 @@ message SearchRequest { // or the name of the legacy placement resource, such as // `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. // This field is used to identify the serving config name and the set - // of models that will be used to make the search. + // of models that are used to make the search. string placement = 1 [(google.api.field_behavior) = REQUIRED]; // The branch resource name, such as @@ -554,8 +554,8 @@ message SearchRequest { // The filter syntax consists of an expression language for constructing a // predicate from one or more fields of the products being filtered. Filter - // expression is case-sensitive. See more details at this [user - // guide](https://cloud.google.com/retail/docs/filter-and-order#filter). + // expression is case-sensitive. For more information, see + // [Filter](https://cloud.google.com/retail/docs/filter-and-order#filter). // // If this field is unrecognizable, an INVALID_ARGUMENT is returned. string filter = 10; @@ -564,21 +564,21 @@ message SearchRequest { // checking any filters on the search page. // // The filter applied to every search request when quality improvement such as - // query expansion is needed. For example, if a query does not have enough - // results, an expanded query with - // [SearchRequest.canonical_filter][google.cloud.retail.v2.SearchRequest.canonical_filter] - // will be returned as a supplement of the original query. This field is - // strongly recommended to achieve high search quality. + // query expansion is needed. In the case a query does not have a sufficient + // amount of results this filter will be used to determine whether or not to + // enable the query expansion flow. The original filter will still be used for + // the query expanded search. + // This field is strongly recommended to achieve high search quality. // - // See [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter] for - // more details about filter syntax. + // For more information about filter syntax, see + // [SearchRequest.filter][google.cloud.retail.v2.SearchRequest.filter]. string canonical_filter = 28; // The order in which products are returned. Products can be ordered by // a field in an [Product][google.cloud.retail.v2.Product] object. Leave it - // unset if ordered by relevance. OrderBy expression is case-sensitive. See - // more details at this [user - // guide](https://cloud.google.com/retail/docs/filter-and-order#order). + // unset if ordered by relevance. OrderBy expression is case-sensitive. For + // more information, see + // [Order](https://cloud.google.com/retail/docs/filter-and-order#order). // // If this field is unrecognizable, an INVALID_ARGUMENT is returned. string order_by = 11; @@ -596,8 +596,8 @@ message SearchRequest { // textual facets can be dynamically generated. DynamicFacetSpec dynamic_facet_spec = 21 [deprecated = true]; - // Boost specification to boost certain products. See more details at this - // [user guide](https://cloud.google.com/retail/docs/boosting). + // Boost specification to boost certain products. For more information, see + // [Boost results](https://cloud.google.com/retail/docs/boosting). // // Notice that if both // [ServingConfig.boost_control_ids][google.cloud.retail.v2.ServingConfig.boost_control_ids] @@ -609,8 +609,8 @@ message SearchRequest { BoostSpec boost_spec = 13; // The query expansion specification that specifies the conditions under which - // query expansion will occur. See more details at this [user - // guide](https://cloud.google.com/retail/docs/result-size#query_expansion). + // query expansion occurs. For more information, see [Query + // expansion](https://cloud.google.com/retail/docs/result-size#query_expansion). QueryExpansionSpec query_expansion_spec = 14; // The keys to fetch and rollup the matching @@ -685,7 +685,7 @@ message SearchRequest { // INVALID_ARGUMENT error is returned. repeated string variant_rollup_keys = 17; - // The categories associated with a category page. Required for category + // The categories associated with a category page. Must be set for category // navigation queries to achieve good search quality. The format should be // the same as // [UserEvent.page_categories][google.cloud.retail.v2.UserEvent.page_categories]; @@ -729,9 +729,9 @@ message SearchRequest { // key with multiple resources. // * Keys must start with a lowercase letter or international character. // - // See [Google Cloud - // Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - // for more details. + // For more information, see [Requirements for + // labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + // in the Resource Manager documentation. map labels = 34; // The spell correction specification that specifies the mode under @@ -948,7 +948,7 @@ message SearchResponse { repeated ExperimentInfo experiment_info = 17; } -// Metadata for active A/B testing [Experiments][]. +// Metadata for active A/B testing [Experiment][]. message ExperimentInfo { // Metadata for active serving config A/B tests. message ServingConfigExperiment { @@ -961,8 +961,8 @@ message ExperimentInfo { }]; // The fully qualified resource name of the serving config - // [VariantArm.serving_config_id][] responsible for generating the search - // response. For example: + // [Experiment.VariantArm.serving_config_id][] responsible for generating + // the search response. For example: // `projects/*/locations/*/catalogs/*/servingConfigs/*`. string experiment_serving_config = 2 [(google.api.resource_reference) = { type: "retail.googleapis.com/ServingConfig" diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/serving_config.proto b/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/serving_config.proto index 537027397fa3..5b234396f844 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/serving_config.proto +++ b/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/serving_config.proto @@ -240,6 +240,10 @@ message ServingConfig { // [SOLUTION_TYPE_RECOMMENDATION][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_RECOMMENDATION]. string enable_category_filter_level = 16; + // When the flag is enabled, the products in the denylist will not be filtered + // out in the recommendation filtering results. + bool ignore_recs_denylist = 24; + // The specification for personalization spec. // // Can only be set if diff --git a/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/user_event.proto b/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/user_event.proto index 8dccddb7908a..32859f1f88be 100644 --- a/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/user_event.proto +++ b/java-retail/proto-google-cloud-retail-v2/src/main/proto/google/cloud/retail/v2/user_event.proto @@ -37,6 +37,7 @@ message UserEvent { // Required. User event type. Allowed values are: // // * `add-to-cart`: Products being added to cart. + // * `remove-from-cart`: Products being removed from cart. // * `category-page-view`: Special pages such as sale or promotion pages // viewed. // * `detail-page-view`: Products detail page viewed. @@ -271,8 +272,8 @@ message UserEvent { // The entity for customers that may run multiple different entities, domains, // sites or regions, for example, `Google US`, `Google Ads`, `Waymo`, // `google.com`, `youtube.com`, etc. - // It is recommended to set this field to get better per-entity search, - // completion and prediction results. + // We recommend that you set this field to get better per-entity search, + // completion, and prediction results. string entity = 23; } diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/AcceptTermsRequest.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/AcceptTermsRequest.java new file mode 100644 index 000000000000..11310d865dfc --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/AcceptTermsRequest.java @@ -0,0 +1,646 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/retail/v2alpha/project_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.retail.v2alpha; + +/** + * + * + *
+ * Request for AcceptTerms method.
+ * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.AcceptTermsRequest} + */ +public final class AcceptTermsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2alpha.AcceptTermsRequest) + AcceptTermsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use AcceptTermsRequest.newBuilder() to construct. + private AcceptTermsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AcceptTermsRequest() { + project_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AcceptTermsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_AcceptTermsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_AcceptTermsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.AcceptTermsRequest.class, + com.google.cloud.retail.v2alpha.AcceptTermsRequest.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + /** + * + * + *
+   * Required. Full resource name of the project. Format:
+   * `projects/{project_number_or_id}/retailProject`
+   * 
+ * + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Full resource name of the project. Format:
+   * `projects/{project_number_or_id}/retailProject`
+   * 
+ * + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.retail.v2alpha.AcceptTermsRequest)) { + return super.equals(obj); + } + com.google.cloud.retail.v2alpha.AcceptTermsRequest other = + (com.google.cloud.retail.v2alpha.AcceptTermsRequest) obj; + + if (!getProject().equals(other.getProject())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2alpha.AcceptTermsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.AcceptTermsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.AcceptTermsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.AcceptTermsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.AcceptTermsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.AcceptTermsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.AcceptTermsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.AcceptTermsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.AcceptTermsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.AcceptTermsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.AcceptTermsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.AcceptTermsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.retail.v2alpha.AcceptTermsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request for AcceptTerms method.
+   * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.AcceptTermsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2alpha.AcceptTermsRequest) + com.google.cloud.retail.v2alpha.AcceptTermsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_AcceptTermsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_AcceptTermsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.AcceptTermsRequest.class, + com.google.cloud.retail.v2alpha.AcceptTermsRequest.Builder.class); + } + + // Construct using com.google.cloud.retail.v2alpha.AcceptTermsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + project_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_AcceptTermsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.AcceptTermsRequest getDefaultInstanceForType() { + return com.google.cloud.retail.v2alpha.AcceptTermsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.AcceptTermsRequest build() { + com.google.cloud.retail.v2alpha.AcceptTermsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.AcceptTermsRequest buildPartial() { + com.google.cloud.retail.v2alpha.AcceptTermsRequest result = + new com.google.cloud.retail.v2alpha.AcceptTermsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.retail.v2alpha.AcceptTermsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.project_ = project_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.retail.v2alpha.AcceptTermsRequest) { + return mergeFrom((com.google.cloud.retail.v2alpha.AcceptTermsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.retail.v2alpha.AcceptTermsRequest other) { + if (other == com.google.cloud.retail.v2alpha.AcceptTermsRequest.getDefaultInstance()) + return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object project_ = ""; + /** + * + * + *
+     * Required. Full resource name of the project. Format:
+     * `projects/{project_number_or_id}/retailProject`
+     * 
+ * + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Full resource name of the project. Format:
+     * `projects/{project_number_or_id}/retailProject`
+     * 
+ * + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Full resource name of the project. Format:
+     * `projects/{project_number_or_id}/retailProject`
+     * 
+ * + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Full resource name of the project. Format:
+     * `projects/{project_number_or_id}/retailProject`
+     * 
+ * + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Full resource name of the project. Format:
+     * `projects/{project_number_or_id}/retailProject`
+     * 
+ * + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2alpha.AcceptTermsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2alpha.AcceptTermsRequest) + private static final com.google.cloud.retail.v2alpha.AcceptTermsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.retail.v2alpha.AcceptTermsRequest(); + } + + public static com.google.cloud.retail.v2alpha.AcceptTermsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AcceptTermsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.AcceptTermsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/AcceptTermsRequestOrBuilder.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/AcceptTermsRequestOrBuilder.java new file mode 100644 index 000000000000..85b85fd9aa3b --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/AcceptTermsRequestOrBuilder.java @@ -0,0 +1,57 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/retail/v2alpha/project_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.retail.v2alpha; + +public interface AcceptTermsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2alpha.AcceptTermsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Full resource name of the project. Format:
+   * `projects/{project_number_or_id}/retailProject`
+   * 
+ * + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The project. + */ + java.lang.String getProject(); + /** + * + * + *
+   * Required. Full resource name of the project. Format:
+   * `projects/{project_number_or_id}/retailProject`
+   * 
+ * + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); +} diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/AlertConfig.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/AlertConfig.java new file mode 100644 index 000000000000..d1bf98f09015 --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/AlertConfig.java @@ -0,0 +1,3516 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/retail/v2alpha/project.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.retail.v2alpha; + +/** + * + * + *
+ * Project level alert config.
+ * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.AlertConfig} + */ +public final class AlertConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2alpha.AlertConfig) + AlertConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use AlertConfig.newBuilder() to construct. + private AlertConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AlertConfig() { + name_ = ""; + alertPolicies_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AlertConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.ProjectProto + .internal_static_google_cloud_retail_v2alpha_AlertConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.ProjectProto + .internal_static_google_cloud_retail_v2alpha_AlertConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.AlertConfig.class, + com.google.cloud.retail.v2alpha.AlertConfig.Builder.class); + } + + public interface AlertPolicyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2alpha.AlertConfig.AlertPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The feature that provides alerting capability. Supported value is
+     * only `search-data-quality` for now.
+     * 
+ * + * string alert_group = 1; + * + * @return The alertGroup. + */ + java.lang.String getAlertGroup(); + /** + * + * + *
+     * The feature that provides alerting capability. Supported value is
+     * only `search-data-quality` for now.
+     * 
+ * + * string alert_group = 1; + * + * @return The bytes for alertGroup. + */ + com.google.protobuf.ByteString getAlertGroupBytes(); + + /** + * + * + *
+     * The enrollment status of a customer.
+     * 
+ * + * .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.EnrollStatus enroll_status = 2; + * + * + * @return The enum numeric value on the wire for enrollStatus. + */ + int getEnrollStatusValue(); + /** + * + * + *
+     * The enrollment status of a customer.
+     * 
+ * + * .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.EnrollStatus enroll_status = 2; + * + * + * @return The enrollStatus. + */ + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.EnrollStatus getEnrollStatus(); + + /** + * + * + *
+     * Recipients for the alert policy.
+     * One alert policy should not exceed 20 recipients.
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient recipients = 3; + * + */ + java.util.List + getRecipientsList(); + /** + * + * + *
+     * Recipients for the alert policy.
+     * One alert policy should not exceed 20 recipients.
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient recipients = 3; + * + */ + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient getRecipients(int index); + /** + * + * + *
+     * Recipients for the alert policy.
+     * One alert policy should not exceed 20 recipients.
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient recipients = 3; + * + */ + int getRecipientsCount(); + /** + * + * + *
+     * Recipients for the alert policy.
+     * One alert policy should not exceed 20 recipients.
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient recipients = 3; + * + */ + java.util.List< + ? extends com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.RecipientOrBuilder> + getRecipientsOrBuilderList(); + /** + * + * + *
+     * Recipients for the alert policy.
+     * One alert policy should not exceed 20 recipients.
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient recipients = 3; + * + */ + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.RecipientOrBuilder + getRecipientsOrBuilder(int index); + } + /** + * + * + *
+   * Alert policy for a customer.
+   * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.AlertConfig.AlertPolicy} + */ + public static final class AlertPolicy extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2alpha.AlertConfig.AlertPolicy) + AlertPolicyOrBuilder { + private static final long serialVersionUID = 0L; + // Use AlertPolicy.newBuilder() to construct. + private AlertPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AlertPolicy() { + alertGroup_ = ""; + enrollStatus_ = 0; + recipients_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AlertPolicy(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.ProjectProto + .internal_static_google_cloud_retail_v2alpha_AlertConfig_AlertPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.ProjectProto + .internal_static_google_cloud_retail_v2alpha_AlertConfig_AlertPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.class, + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Builder.class); + } + + /** + * + * + *
+     * The enrollment status enum for alert policy.
+     * 
+ * + * Protobuf enum {@code google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.EnrollStatus} + */ + public enum EnrollStatus implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Default value. Used for customers who have not responded to the
+       * alert policy.
+       * 
+ * + * ENROLL_STATUS_UNSPECIFIED = 0; + */ + ENROLL_STATUS_UNSPECIFIED(0), + /** + * + * + *
+       * Customer is enrolled in this policy.
+       * 
+ * + * ENROLLED = 1; + */ + ENROLLED(1), + /** + * + * + *
+       * Customer declined this policy.
+       * 
+ * + * DECLINED = 2; + */ + DECLINED(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * Default value. Used for customers who have not responded to the
+       * alert policy.
+       * 
+ * + * ENROLL_STATUS_UNSPECIFIED = 0; + */ + public static final int ENROLL_STATUS_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+       * Customer is enrolled in this policy.
+       * 
+ * + * ENROLLED = 1; + */ + public static final int ENROLLED_VALUE = 1; + /** + * + * + *
+       * Customer declined this policy.
+       * 
+ * + * DECLINED = 2; + */ + public static final int DECLINED_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static EnrollStatus valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static EnrollStatus forNumber(int value) { + switch (value) { + case 0: + return ENROLL_STATUS_UNSPECIFIED; + case 1: + return ENROLLED; + case 2: + return DECLINED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public EnrollStatus findValueByNumber(int number) { + return EnrollStatus.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final EnrollStatus[] VALUES = values(); + + public static EnrollStatus valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private EnrollStatus(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.EnrollStatus) + } + + public interface RecipientOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Email address of the recipient.
+       * 
+ * + * string email_address = 1; + * + * @return The emailAddress. + */ + java.lang.String getEmailAddress(); + /** + * + * + *
+       * Email address of the recipient.
+       * 
+ * + * string email_address = 1; + * + * @return The bytes for emailAddress. + */ + com.google.protobuf.ByteString getEmailAddressBytes(); + } + /** + * + * + *
+     * Recipient contact information.
+     * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient} + */ + public static final class Recipient extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient) + RecipientOrBuilder { + private static final long serialVersionUID = 0L; + // Use Recipient.newBuilder() to construct. + private Recipient(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Recipient() { + emailAddress_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Recipient(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.ProjectProto + .internal_static_google_cloud_retail_v2alpha_AlertConfig_AlertPolicy_Recipient_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.ProjectProto + .internal_static_google_cloud_retail_v2alpha_AlertConfig_AlertPolicy_Recipient_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient.class, + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient.Builder.class); + } + + public static final int EMAIL_ADDRESS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object emailAddress_ = ""; + /** + * + * + *
+       * Email address of the recipient.
+       * 
+ * + * string email_address = 1; + * + * @return The emailAddress. + */ + @java.lang.Override + public java.lang.String getEmailAddress() { + java.lang.Object ref = emailAddress_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + emailAddress_ = s; + return s; + } + } + /** + * + * + *
+       * Email address of the recipient.
+       * 
+ * + * string email_address = 1; + * + * @return The bytes for emailAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEmailAddressBytes() { + java.lang.Object ref = emailAddress_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + emailAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(emailAddress_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, emailAddress_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(emailAddress_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, emailAddress_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient)) { + return super.equals(obj); + } + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient other = + (com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient) obj; + + if (!getEmailAddress().equals(other.getEmailAddress())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + EMAIL_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getEmailAddress().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+       * Recipient contact information.
+       * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient) + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.RecipientOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.ProjectProto + .internal_static_google_cloud_retail_v2alpha_AlertConfig_AlertPolicy_Recipient_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.ProjectProto + .internal_static_google_cloud_retail_v2alpha_AlertConfig_AlertPolicy_Recipient_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient.class, + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient.Builder.class); + } + + // Construct using + // com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + emailAddress_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2alpha.ProjectProto + .internal_static_google_cloud_retail_v2alpha_AlertConfig_AlertPolicy_Recipient_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient + getDefaultInstanceForType() { + return com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient build() { + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient buildPartial() { + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient result = + new com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.emailAddress_ = emailAddress_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient) { + return mergeFrom( + (com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient other) { + if (other + == com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient + .getDefaultInstance()) return this; + if (!other.getEmailAddress().isEmpty()) { + emailAddress_ = other.emailAddress_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + emailAddress_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object emailAddress_ = ""; + /** + * + * + *
+         * Email address of the recipient.
+         * 
+ * + * string email_address = 1; + * + * @return The emailAddress. + */ + public java.lang.String getEmailAddress() { + java.lang.Object ref = emailAddress_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + emailAddress_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * Email address of the recipient.
+         * 
+ * + * string email_address = 1; + * + * @return The bytes for emailAddress. + */ + public com.google.protobuf.ByteString getEmailAddressBytes() { + java.lang.Object ref = emailAddress_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + emailAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * Email address of the recipient.
+         * 
+ * + * string email_address = 1; + * + * @param value The emailAddress to set. + * @return This builder for chaining. + */ + public Builder setEmailAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + emailAddress_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * Email address of the recipient.
+         * 
+ * + * string email_address = 1; + * + * @return This builder for chaining. + */ + public Builder clearEmailAddress() { + emailAddress_ = getDefaultInstance().getEmailAddress(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+         * Email address of the recipient.
+         * 
+ * + * string email_address = 1; + * + * @param value The bytes for emailAddress to set. + * @return This builder for chaining. + */ + public Builder setEmailAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + emailAddress_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient) + private static final com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient(); + } + + public static com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Recipient parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int ALERT_GROUP_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object alertGroup_ = ""; + /** + * + * + *
+     * The feature that provides alerting capability. Supported value is
+     * only `search-data-quality` for now.
+     * 
+ * + * string alert_group = 1; + * + * @return The alertGroup. + */ + @java.lang.Override + public java.lang.String getAlertGroup() { + java.lang.Object ref = alertGroup_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + alertGroup_ = s; + return s; + } + } + /** + * + * + *
+     * The feature that provides alerting capability. Supported value is
+     * only `search-data-quality` for now.
+     * 
+ * + * string alert_group = 1; + * + * @return The bytes for alertGroup. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAlertGroupBytes() { + java.lang.Object ref = alertGroup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + alertGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENROLL_STATUS_FIELD_NUMBER = 2; + private int enrollStatus_ = 0; + /** + * + * + *
+     * The enrollment status of a customer.
+     * 
+ * + * .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.EnrollStatus enroll_status = 2; + * + * + * @return The enum numeric value on the wire for enrollStatus. + */ + @java.lang.Override + public int getEnrollStatusValue() { + return enrollStatus_; + } + /** + * + * + *
+     * The enrollment status of a customer.
+     * 
+ * + * .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.EnrollStatus enroll_status = 2; + * + * + * @return The enrollStatus. + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.EnrollStatus getEnrollStatus() { + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.EnrollStatus result = + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.EnrollStatus.forNumber( + enrollStatus_); + return result == null + ? com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.EnrollStatus.UNRECOGNIZED + : result; + } + + public static final int RECIPIENTS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List + recipients_; + /** + * + * + *
+     * Recipients for the alert policy.
+     * One alert policy should not exceed 20 recipients.
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient recipients = 3; + * + */ + @java.lang.Override + public java.util.List + getRecipientsList() { + return recipients_; + } + /** + * + * + *
+     * Recipients for the alert policy.
+     * One alert policy should not exceed 20 recipients.
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient recipients = 3; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.RecipientOrBuilder> + getRecipientsOrBuilderList() { + return recipients_; + } + /** + * + * + *
+     * Recipients for the alert policy.
+     * One alert policy should not exceed 20 recipients.
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient recipients = 3; + * + */ + @java.lang.Override + public int getRecipientsCount() { + return recipients_.size(); + } + /** + * + * + *
+     * Recipients for the alert policy.
+     * One alert policy should not exceed 20 recipients.
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient recipients = 3; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient getRecipients( + int index) { + return recipients_.get(index); + } + /** + * + * + *
+     * Recipients for the alert policy.
+     * One alert policy should not exceed 20 recipients.
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient recipients = 3; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.RecipientOrBuilder + getRecipientsOrBuilder(int index) { + return recipients_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(alertGroup_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, alertGroup_); + } + if (enrollStatus_ + != com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.EnrollStatus + .ENROLL_STATUS_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, enrollStatus_); + } + for (int i = 0; i < recipients_.size(); i++) { + output.writeMessage(3, recipients_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(alertGroup_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, alertGroup_); + } + if (enrollStatus_ + != com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.EnrollStatus + .ENROLL_STATUS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, enrollStatus_); + } + for (int i = 0; i < recipients_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, recipients_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy)) { + return super.equals(obj); + } + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy other = + (com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy) obj; + + if (!getAlertGroup().equals(other.getAlertGroup())) return false; + if (enrollStatus_ != other.enrollStatus_) return false; + if (!getRecipientsList().equals(other.getRecipientsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ALERT_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getAlertGroup().hashCode(); + hash = (37 * hash) + ENROLL_STATUS_FIELD_NUMBER; + hash = (53 * hash) + enrollStatus_; + if (getRecipientsCount() > 0) { + hash = (37 * hash) + RECIPIENTS_FIELD_NUMBER; + hash = (53 * hash) + getRecipientsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Alert policy for a customer.
+     * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.AlertConfig.AlertPolicy} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2alpha.AlertConfig.AlertPolicy) + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.ProjectProto + .internal_static_google_cloud_retail_v2alpha_AlertConfig_AlertPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.ProjectProto + .internal_static_google_cloud_retail_v2alpha_AlertConfig_AlertPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.class, + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Builder.class); + } + + // Construct using com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + alertGroup_ = ""; + enrollStatus_ = 0; + if (recipientsBuilder_ == null) { + recipients_ = java.util.Collections.emptyList(); + } else { + recipients_ = null; + recipientsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2alpha.ProjectProto + .internal_static_google_cloud_retail_v2alpha_AlertConfig_AlertPolicy_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy getDefaultInstanceForType() { + return com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy build() { + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy buildPartial() { + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy result = + new com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy result) { + if (recipientsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + recipients_ = java.util.Collections.unmodifiableList(recipients_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.recipients_ = recipients_; + } else { + result.recipients_ = recipientsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.alertGroup_ = alertGroup_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.enrollStatus_ = enrollStatus_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy) { + return mergeFrom((com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy other) { + if (other == com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.getDefaultInstance()) + return this; + if (!other.getAlertGroup().isEmpty()) { + alertGroup_ = other.alertGroup_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.enrollStatus_ != 0) { + setEnrollStatusValue(other.getEnrollStatusValue()); + } + if (recipientsBuilder_ == null) { + if (!other.recipients_.isEmpty()) { + if (recipients_.isEmpty()) { + recipients_ = other.recipients_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureRecipientsIsMutable(); + recipients_.addAll(other.recipients_); + } + onChanged(); + } + } else { + if (!other.recipients_.isEmpty()) { + if (recipientsBuilder_.isEmpty()) { + recipientsBuilder_.dispose(); + recipientsBuilder_ = null; + recipients_ = other.recipients_; + bitField0_ = (bitField0_ & ~0x00000004); + recipientsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRecipientsFieldBuilder() + : null; + } else { + recipientsBuilder_.addAllMessages(other.recipients_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + alertGroup_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + enrollStatus_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient m = + input.readMessage( + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient + .parser(), + extensionRegistry); + if (recipientsBuilder_ == null) { + ensureRecipientsIsMutable(); + recipients_.add(m); + } else { + recipientsBuilder_.addMessage(m); + } + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object alertGroup_ = ""; + /** + * + * + *
+       * The feature that provides alerting capability. Supported value is
+       * only `search-data-quality` for now.
+       * 
+ * + * string alert_group = 1; + * + * @return The alertGroup. + */ + public java.lang.String getAlertGroup() { + java.lang.Object ref = alertGroup_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + alertGroup_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The feature that provides alerting capability. Supported value is
+       * only `search-data-quality` for now.
+       * 
+ * + * string alert_group = 1; + * + * @return The bytes for alertGroup. + */ + public com.google.protobuf.ByteString getAlertGroupBytes() { + java.lang.Object ref = alertGroup_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + alertGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The feature that provides alerting capability. Supported value is
+       * only `search-data-quality` for now.
+       * 
+ * + * string alert_group = 1; + * + * @param value The alertGroup to set. + * @return This builder for chaining. + */ + public Builder setAlertGroup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + alertGroup_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * The feature that provides alerting capability. Supported value is
+       * only `search-data-quality` for now.
+       * 
+ * + * string alert_group = 1; + * + * @return This builder for chaining. + */ + public Builder clearAlertGroup() { + alertGroup_ = getDefaultInstance().getAlertGroup(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * The feature that provides alerting capability. Supported value is
+       * only `search-data-quality` for now.
+       * 
+ * + * string alert_group = 1; + * + * @param value The bytes for alertGroup to set. + * @return This builder for chaining. + */ + public Builder setAlertGroupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + alertGroup_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int enrollStatus_ = 0; + /** + * + * + *
+       * The enrollment status of a customer.
+       * 
+ * + * .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.EnrollStatus enroll_status = 2; + * + * + * @return The enum numeric value on the wire for enrollStatus. + */ + @java.lang.Override + public int getEnrollStatusValue() { + return enrollStatus_; + } + /** + * + * + *
+       * The enrollment status of a customer.
+       * 
+ * + * .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.EnrollStatus enroll_status = 2; + * + * + * @param value The enum numeric value on the wire for enrollStatus to set. + * @return This builder for chaining. + */ + public Builder setEnrollStatusValue(int value) { + enrollStatus_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * The enrollment status of a customer.
+       * 
+ * + * .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.EnrollStatus enroll_status = 2; + * + * + * @return The enrollStatus. + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.EnrollStatus + getEnrollStatus() { + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.EnrollStatus result = + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.EnrollStatus.forNumber( + enrollStatus_); + return result == null + ? com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.EnrollStatus.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * The enrollment status of a customer.
+       * 
+ * + * .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.EnrollStatus enroll_status = 2; + * + * + * @param value The enrollStatus to set. + * @return This builder for chaining. + */ + public Builder setEnrollStatus( + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.EnrollStatus value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + enrollStatus_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * The enrollment status of a customer.
+       * 
+ * + * .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.EnrollStatus enroll_status = 2; + * + * + * @return This builder for chaining. + */ + public Builder clearEnrollStatus() { + bitField0_ = (bitField0_ & ~0x00000002); + enrollStatus_ = 0; + onChanged(); + return this; + } + + private java.util.List + recipients_ = java.util.Collections.emptyList(); + + private void ensureRecipientsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + recipients_ = + new java.util.ArrayList< + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient>(recipients_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient, + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient.Builder, + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.RecipientOrBuilder> + recipientsBuilder_; + + /** + * + * + *
+       * Recipients for the alert policy.
+       * One alert policy should not exceed 20 recipients.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient recipients = 3; + * + */ + public java.util.List + getRecipientsList() { + if (recipientsBuilder_ == null) { + return java.util.Collections.unmodifiableList(recipients_); + } else { + return recipientsBuilder_.getMessageList(); + } + } + /** + * + * + *
+       * Recipients for the alert policy.
+       * One alert policy should not exceed 20 recipients.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient recipients = 3; + * + */ + public int getRecipientsCount() { + if (recipientsBuilder_ == null) { + return recipients_.size(); + } else { + return recipientsBuilder_.getCount(); + } + } + /** + * + * + *
+       * Recipients for the alert policy.
+       * One alert policy should not exceed 20 recipients.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient recipients = 3; + * + */ + public com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient getRecipients( + int index) { + if (recipientsBuilder_ == null) { + return recipients_.get(index); + } else { + return recipientsBuilder_.getMessage(index); + } + } + /** + * + * + *
+       * Recipients for the alert policy.
+       * One alert policy should not exceed 20 recipients.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient recipients = 3; + * + */ + public Builder setRecipients( + int index, com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient value) { + if (recipientsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecipientsIsMutable(); + recipients_.set(index, value); + onChanged(); + } else { + recipientsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Recipients for the alert policy.
+       * One alert policy should not exceed 20 recipients.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient recipients = 3; + * + */ + public Builder setRecipients( + int index, + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient.Builder + builderForValue) { + if (recipientsBuilder_ == null) { + ensureRecipientsIsMutable(); + recipients_.set(index, builderForValue.build()); + onChanged(); + } else { + recipientsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Recipients for the alert policy.
+       * One alert policy should not exceed 20 recipients.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient recipients = 3; + * + */ + public Builder addRecipients( + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient value) { + if (recipientsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecipientsIsMutable(); + recipients_.add(value); + onChanged(); + } else { + recipientsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+       * Recipients for the alert policy.
+       * One alert policy should not exceed 20 recipients.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient recipients = 3; + * + */ + public Builder addRecipients( + int index, com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient value) { + if (recipientsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRecipientsIsMutable(); + recipients_.add(index, value); + onChanged(); + } else { + recipientsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Recipients for the alert policy.
+       * One alert policy should not exceed 20 recipients.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient recipients = 3; + * + */ + public Builder addRecipients( + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient.Builder + builderForValue) { + if (recipientsBuilder_ == null) { + ensureRecipientsIsMutable(); + recipients_.add(builderForValue.build()); + onChanged(); + } else { + recipientsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Recipients for the alert policy.
+       * One alert policy should not exceed 20 recipients.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient recipients = 3; + * + */ + public Builder addRecipients( + int index, + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient.Builder + builderForValue) { + if (recipientsBuilder_ == null) { + ensureRecipientsIsMutable(); + recipients_.add(index, builderForValue.build()); + onChanged(); + } else { + recipientsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Recipients for the alert policy.
+       * One alert policy should not exceed 20 recipients.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient recipients = 3; + * + */ + public Builder addAllRecipients( + java.lang.Iterable< + ? extends com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient> + values) { + if (recipientsBuilder_ == null) { + ensureRecipientsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, recipients_); + onChanged(); + } else { + recipientsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+       * Recipients for the alert policy.
+       * One alert policy should not exceed 20 recipients.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient recipients = 3; + * + */ + public Builder clearRecipients() { + if (recipientsBuilder_ == null) { + recipients_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + recipientsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Recipients for the alert policy.
+       * One alert policy should not exceed 20 recipients.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient recipients = 3; + * + */ + public Builder removeRecipients(int index) { + if (recipientsBuilder_ == null) { + ensureRecipientsIsMutable(); + recipients_.remove(index); + onChanged(); + } else { + recipientsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+       * Recipients for the alert policy.
+       * One alert policy should not exceed 20 recipients.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient recipients = 3; + * + */ + public com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient.Builder + getRecipientsBuilder(int index) { + return getRecipientsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * Recipients for the alert policy.
+       * One alert policy should not exceed 20 recipients.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient recipients = 3; + * + */ + public com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.RecipientOrBuilder + getRecipientsOrBuilder(int index) { + if (recipientsBuilder_ == null) { + return recipients_.get(index); + } else { + return recipientsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+       * Recipients for the alert policy.
+       * One alert policy should not exceed 20 recipients.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient recipients = 3; + * + */ + public java.util.List< + ? extends com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.RecipientOrBuilder> + getRecipientsOrBuilderList() { + if (recipientsBuilder_ != null) { + return recipientsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(recipients_); + } + } + /** + * + * + *
+       * Recipients for the alert policy.
+       * One alert policy should not exceed 20 recipients.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient recipients = 3; + * + */ + public com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient.Builder + addRecipientsBuilder() { + return getRecipientsFieldBuilder() + .addBuilder( + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient + .getDefaultInstance()); + } + /** + * + * + *
+       * Recipients for the alert policy.
+       * One alert policy should not exceed 20 recipients.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient recipients = 3; + * + */ + public com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient.Builder + addRecipientsBuilder(int index) { + return getRecipientsFieldBuilder() + .addBuilder( + index, + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient + .getDefaultInstance()); + } + /** + * + * + *
+       * Recipients for the alert policy.
+       * One alert policy should not exceed 20 recipients.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient recipients = 3; + * + */ + public java.util.List< + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient.Builder> + getRecipientsBuilderList() { + return getRecipientsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient, + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient.Builder, + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.RecipientOrBuilder> + getRecipientsFieldBuilder() { + if (recipientsBuilder_ == null) { + recipientsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient, + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Recipient.Builder, + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.RecipientOrBuilder>( + recipients_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + recipients_ = null; + } + return recipientsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2alpha.AlertConfig.AlertPolicy) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2alpha.AlertConfig.AlertPolicy) + private static final com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy(); + } + + public static com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AlertPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Immutable. The name of the AlertConfig singleton resource.
+   * Format: projects/*/alertConfig
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Immutable. The name of the AlertConfig singleton resource.
+   * Format: projects/*/alertConfig
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALERT_POLICIES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List alertPolicies_; + /** + * + * + *
+   * Alert policies for a customer.
+   * They must be unique by [AlertPolicy.alert_group]
+   * 
+ * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2; + */ + @java.lang.Override + public java.util.List + getAlertPoliciesList() { + return alertPolicies_; + } + /** + * + * + *
+   * Alert policies for a customer.
+   * They must be unique by [AlertPolicy.alert_group]
+   * 
+ * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2; + */ + @java.lang.Override + public java.util.List + getAlertPoliciesOrBuilderList() { + return alertPolicies_; + } + /** + * + * + *
+   * Alert policies for a customer.
+   * They must be unique by [AlertPolicy.alert_group]
+   * 
+ * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2; + */ + @java.lang.Override + public int getAlertPoliciesCount() { + return alertPolicies_.size(); + } + /** + * + * + *
+   * Alert policies for a customer.
+   * They must be unique by [AlertPolicy.alert_group]
+   * 
+ * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2; + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy getAlertPolicies(int index) { + return alertPolicies_.get(index); + } + /** + * + * + *
+   * Alert policies for a customer.
+   * They must be unique by [AlertPolicy.alert_group]
+   * 
+ * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2; + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicyOrBuilder getAlertPoliciesOrBuilder( + int index) { + return alertPolicies_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + for (int i = 0; i < alertPolicies_.size(); i++) { + output.writeMessage(2, alertPolicies_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + for (int i = 0; i < alertPolicies_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, alertPolicies_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.retail.v2alpha.AlertConfig)) { + return super.equals(obj); + } + com.google.cloud.retail.v2alpha.AlertConfig other = + (com.google.cloud.retail.v2alpha.AlertConfig) obj; + + if (!getName().equals(other.getName())) return false; + if (!getAlertPoliciesList().equals(other.getAlertPoliciesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (getAlertPoliciesCount() > 0) { + hash = (37 * hash) + ALERT_POLICIES_FIELD_NUMBER; + hash = (53 * hash) + getAlertPoliciesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2alpha.AlertConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.AlertConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.AlertConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.AlertConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.AlertConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.AlertConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.AlertConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.AlertConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.AlertConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.AlertConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.AlertConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.AlertConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.retail.v2alpha.AlertConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Project level alert config.
+   * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.AlertConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2alpha.AlertConfig) + com.google.cloud.retail.v2alpha.AlertConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.ProjectProto + .internal_static_google_cloud_retail_v2alpha_AlertConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.ProjectProto + .internal_static_google_cloud_retail_v2alpha_AlertConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.AlertConfig.class, + com.google.cloud.retail.v2alpha.AlertConfig.Builder.class); + } + + // Construct using com.google.cloud.retail.v2alpha.AlertConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + if (alertPoliciesBuilder_ == null) { + alertPolicies_ = java.util.Collections.emptyList(); + } else { + alertPolicies_ = null; + alertPoliciesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2alpha.ProjectProto + .internal_static_google_cloud_retail_v2alpha_AlertConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.AlertConfig getDefaultInstanceForType() { + return com.google.cloud.retail.v2alpha.AlertConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.AlertConfig build() { + com.google.cloud.retail.v2alpha.AlertConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.AlertConfig buildPartial() { + com.google.cloud.retail.v2alpha.AlertConfig result = + new com.google.cloud.retail.v2alpha.AlertConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.retail.v2alpha.AlertConfig result) { + if (alertPoliciesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + alertPolicies_ = java.util.Collections.unmodifiableList(alertPolicies_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.alertPolicies_ = alertPolicies_; + } else { + result.alertPolicies_ = alertPoliciesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.retail.v2alpha.AlertConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.retail.v2alpha.AlertConfig) { + return mergeFrom((com.google.cloud.retail.v2alpha.AlertConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.retail.v2alpha.AlertConfig other) { + if (other == com.google.cloud.retail.v2alpha.AlertConfig.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (alertPoliciesBuilder_ == null) { + if (!other.alertPolicies_.isEmpty()) { + if (alertPolicies_.isEmpty()) { + alertPolicies_ = other.alertPolicies_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureAlertPoliciesIsMutable(); + alertPolicies_.addAll(other.alertPolicies_); + } + onChanged(); + } + } else { + if (!other.alertPolicies_.isEmpty()) { + if (alertPoliciesBuilder_.isEmpty()) { + alertPoliciesBuilder_.dispose(); + alertPoliciesBuilder_ = null; + alertPolicies_ = other.alertPolicies_; + bitField0_ = (bitField0_ & ~0x00000002); + alertPoliciesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAlertPoliciesFieldBuilder() + : null; + } else { + alertPoliciesBuilder_.addAllMessages(other.alertPolicies_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy m = + input.readMessage( + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.parser(), + extensionRegistry); + if (alertPoliciesBuilder_ == null) { + ensureAlertPoliciesIsMutable(); + alertPolicies_.add(m); + } else { + alertPoliciesBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. Immutable. The name of the AlertConfig singleton resource.
+     * Format: projects/*/alertConfig
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Immutable. The name of the AlertConfig singleton resource.
+     * Format: projects/*/alertConfig
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Immutable. The name of the AlertConfig singleton resource.
+     * Format: projects/*/alertConfig
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. The name of the AlertConfig singleton resource.
+     * Format: projects/*/alertConfig
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. The name of the AlertConfig singleton resource.
+     * Format: projects/*/alertConfig
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List alertPolicies_ = + java.util.Collections.emptyList(); + + private void ensureAlertPoliciesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + alertPolicies_ = + new java.util.ArrayList( + alertPolicies_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy, + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Builder, + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicyOrBuilder> + alertPoliciesBuilder_; + + /** + * + * + *
+     * Alert policies for a customer.
+     * They must be unique by [AlertPolicy.alert_group]
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2; + * + */ + public java.util.List + getAlertPoliciesList() { + if (alertPoliciesBuilder_ == null) { + return java.util.Collections.unmodifiableList(alertPolicies_); + } else { + return alertPoliciesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Alert policies for a customer.
+     * They must be unique by [AlertPolicy.alert_group]
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2; + * + */ + public int getAlertPoliciesCount() { + if (alertPoliciesBuilder_ == null) { + return alertPolicies_.size(); + } else { + return alertPoliciesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Alert policies for a customer.
+     * They must be unique by [AlertPolicy.alert_group]
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2; + * + */ + public com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy getAlertPolicies(int index) { + if (alertPoliciesBuilder_ == null) { + return alertPolicies_.get(index); + } else { + return alertPoliciesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Alert policies for a customer.
+     * They must be unique by [AlertPolicy.alert_group]
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2; + * + */ + public Builder setAlertPolicies( + int index, com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy value) { + if (alertPoliciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAlertPoliciesIsMutable(); + alertPolicies_.set(index, value); + onChanged(); + } else { + alertPoliciesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Alert policies for a customer.
+     * They must be unique by [AlertPolicy.alert_group]
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2; + * + */ + public Builder setAlertPolicies( + int index, + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Builder builderForValue) { + if (alertPoliciesBuilder_ == null) { + ensureAlertPoliciesIsMutable(); + alertPolicies_.set(index, builderForValue.build()); + onChanged(); + } else { + alertPoliciesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Alert policies for a customer.
+     * They must be unique by [AlertPolicy.alert_group]
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2; + * + */ + public Builder addAlertPolicies(com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy value) { + if (alertPoliciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAlertPoliciesIsMutable(); + alertPolicies_.add(value); + onChanged(); + } else { + alertPoliciesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Alert policies for a customer.
+     * They must be unique by [AlertPolicy.alert_group]
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2; + * + */ + public Builder addAlertPolicies( + int index, com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy value) { + if (alertPoliciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAlertPoliciesIsMutable(); + alertPolicies_.add(index, value); + onChanged(); + } else { + alertPoliciesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Alert policies for a customer.
+     * They must be unique by [AlertPolicy.alert_group]
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2; + * + */ + public Builder addAlertPolicies( + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Builder builderForValue) { + if (alertPoliciesBuilder_ == null) { + ensureAlertPoliciesIsMutable(); + alertPolicies_.add(builderForValue.build()); + onChanged(); + } else { + alertPoliciesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Alert policies for a customer.
+     * They must be unique by [AlertPolicy.alert_group]
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2; + * + */ + public Builder addAlertPolicies( + int index, + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Builder builderForValue) { + if (alertPoliciesBuilder_ == null) { + ensureAlertPoliciesIsMutable(); + alertPolicies_.add(index, builderForValue.build()); + onChanged(); + } else { + alertPoliciesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Alert policies for a customer.
+     * They must be unique by [AlertPolicy.alert_group]
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2; + * + */ + public Builder addAllAlertPolicies( + java.lang.Iterable + values) { + if (alertPoliciesBuilder_ == null) { + ensureAlertPoliciesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, alertPolicies_); + onChanged(); + } else { + alertPoliciesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Alert policies for a customer.
+     * They must be unique by [AlertPolicy.alert_group]
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2; + * + */ + public Builder clearAlertPolicies() { + if (alertPoliciesBuilder_ == null) { + alertPolicies_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + alertPoliciesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Alert policies for a customer.
+     * They must be unique by [AlertPolicy.alert_group]
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2; + * + */ + public Builder removeAlertPolicies(int index) { + if (alertPoliciesBuilder_ == null) { + ensureAlertPoliciesIsMutable(); + alertPolicies_.remove(index); + onChanged(); + } else { + alertPoliciesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Alert policies for a customer.
+     * They must be unique by [AlertPolicy.alert_group]
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2; + * + */ + public com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Builder getAlertPoliciesBuilder( + int index) { + return getAlertPoliciesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Alert policies for a customer.
+     * They must be unique by [AlertPolicy.alert_group]
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2; + * + */ + public com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicyOrBuilder + getAlertPoliciesOrBuilder(int index) { + if (alertPoliciesBuilder_ == null) { + return alertPolicies_.get(index); + } else { + return alertPoliciesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Alert policies for a customer.
+     * They must be unique by [AlertPolicy.alert_group]
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2; + * + */ + public java.util.List< + ? extends com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicyOrBuilder> + getAlertPoliciesOrBuilderList() { + if (alertPoliciesBuilder_ != null) { + return alertPoliciesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(alertPolicies_); + } + } + /** + * + * + *
+     * Alert policies for a customer.
+     * They must be unique by [AlertPolicy.alert_group]
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2; + * + */ + public com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Builder + addAlertPoliciesBuilder() { + return getAlertPoliciesFieldBuilder() + .addBuilder(com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.getDefaultInstance()); + } + /** + * + * + *
+     * Alert policies for a customer.
+     * They must be unique by [AlertPolicy.alert_group]
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2; + * + */ + public com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Builder addAlertPoliciesBuilder( + int index) { + return getAlertPoliciesFieldBuilder() + .addBuilder( + index, com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.getDefaultInstance()); + } + /** + * + * + *
+     * Alert policies for a customer.
+     * They must be unique by [AlertPolicy.alert_group]
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2; + * + */ + public java.util.List + getAlertPoliciesBuilderList() { + return getAlertPoliciesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy, + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Builder, + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicyOrBuilder> + getAlertPoliciesFieldBuilder() { + if (alertPoliciesBuilder_ == null) { + alertPoliciesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy, + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy.Builder, + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicyOrBuilder>( + alertPolicies_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + alertPolicies_ = null; + } + return alertPoliciesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2alpha.AlertConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2alpha.AlertConfig) + private static final com.google.cloud.retail.v2alpha.AlertConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.retail.v2alpha.AlertConfig(); + } + + public static com.google.cloud.retail.v2alpha.AlertConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AlertConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.AlertConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/AlertConfigName.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/AlertConfigName.java new file mode 100644 index 000000000000..2dabd1ca2097 --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/AlertConfigName.java @@ -0,0 +1,168 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class AlertConfigName implements ResourceName { + private static final PathTemplate PROJECT = + PathTemplate.createWithoutUrlEncoding("projects/{project}/alertConfig"); + private volatile Map fieldValuesMap; + private final String project; + + @Deprecated + protected AlertConfigName() { + project = null; + } + + private AlertConfigName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + } + + public String getProject() { + return project; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static AlertConfigName of(String project) { + return newBuilder().setProject(project).build(); + } + + public static String format(String project) { + return newBuilder().setProject(project).build().toString(); + } + + public static AlertConfigName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT.validatedMatch( + formattedString, "AlertConfigName.parse: formattedString not in valid format"); + return of(matchMap.get("project")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (AlertConfigName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT.instantiate("project", project); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + AlertConfigName that = ((AlertConfigName) o); + return Objects.equals(this.project, that.project); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + return h; + } + + /** Builder for projects/{project}/alertConfig. */ + public static class Builder { + private String project; + + protected Builder() {} + + public String getProject() { + return project; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + private Builder(AlertConfigName alertConfigName) { + this.project = alertConfigName.project; + } + + public AlertConfigName build() { + return new AlertConfigName(this); + } + } +} diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/AlertConfigOrBuilder.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/AlertConfigOrBuilder.java new file mode 100644 index 000000000000..6a4051d3402f --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/AlertConfigOrBuilder.java @@ -0,0 +1,115 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/retail/v2alpha/project.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.retail.v2alpha; + +public interface AlertConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2alpha.AlertConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Immutable. The name of the AlertConfig singleton resource.
+   * Format: projects/*/alertConfig
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Immutable. The name of the AlertConfig singleton resource.
+   * Format: projects/*/alertConfig
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Alert policies for a customer.
+   * They must be unique by [AlertPolicy.alert_group]
+   * 
+ * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2; + */ + java.util.List getAlertPoliciesList(); + /** + * + * + *
+   * Alert policies for a customer.
+   * They must be unique by [AlertPolicy.alert_group]
+   * 
+ * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2; + */ + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicy getAlertPolicies(int index); + /** + * + * + *
+   * Alert policies for a customer.
+   * They must be unique by [AlertPolicy.alert_group]
+   * 
+ * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2; + */ + int getAlertPoliciesCount(); + /** + * + * + *
+   * Alert policies for a customer.
+   * They must be unique by [AlertPolicy.alert_group]
+   * 
+ * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2; + */ + java.util.List + getAlertPoliciesOrBuilderList(); + /** + * + * + *
+   * Alert policies for a customer.
+   * They must be unique by [AlertPolicy.alert_group]
+   * 
+ * + * repeated .google.cloud.retail.v2alpha.AlertConfig.AlertPolicy alert_policies = 2; + */ + com.google.cloud.retail.v2alpha.AlertConfig.AlertPolicyOrBuilder getAlertPoliciesOrBuilder( + int index); +} diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/Branch.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/Branch.java new file mode 100644 index 000000000000..30ad4bae7591 --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/Branch.java @@ -0,0 +1,6965 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/retail/v2alpha/branch.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.retail.v2alpha; + +/** + * + * + *
+ * A data branch that stores [Product][google.cloud.retail.v2alpha.Product]s.
+ * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.Branch} + */ +public final class Branch extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2alpha.Branch) + BranchOrBuilder { + private static final long serialVersionUID = 0L; + // Use Branch.newBuilder() to construct. + private Branch(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Branch() { + name_ = ""; + displayName_ = ""; + productCountStats_ = java.util.Collections.emptyList(); + qualityMetrics_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Branch(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.BranchProto + .internal_static_google_cloud_retail_v2alpha_Branch_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.BranchProto + .internal_static_google_cloud_retail_v2alpha_Branch_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.Branch.class, + com.google.cloud.retail.v2alpha.Branch.Builder.class); + } + + public interface ProductCountStatisticOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2alpha.Branch.ProductCountStatistic) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * [ProductCountScope] of the [counts].
+     * 
+ * + * .google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope scope = 1; + * + * + * @return The enum numeric value on the wire for scope. + */ + int getScopeValue(); + /** + * + * + *
+     * [ProductCountScope] of the [counts].
+     * 
+ * + * .google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope scope = 1; + * + * + * @return The scope. + */ + com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope getScope(); + + /** + * + * + *
+     * The number of products in
+     * [scope][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.scope]
+     * broken down into different groups.
+     *
+     * The key is a group representing a set of products, and the value is the
+     * number of products in that group.
+     * Note: keys in this map may change over time.
+     *
+     * Possible keys:
+     * * "primary-in-stock", products have
+     * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+     * type and
+     * [Product.Availability.IN_STOCK][google.cloud.retail.v2alpha.Product.Availability.IN_STOCK]
+     * availability.
+     *
+     * * "primary-out-of-stock", products have
+     * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+     * type and
+     * [Product.Availability.OUT_OF_STOCK][google.cloud.retail.v2alpha.Product.Availability.OUT_OF_STOCK]
+     * availability.
+     *
+     * * "primary-preorder", products have
+     * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+     * type and
+     * [Product.Availability.PREORDER][google.cloud.retail.v2alpha.Product.Availability.PREORDER]
+     * availability.
+     *
+     * * "primary-backorder", products have
+     * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+     * type and
+     * [Product.Availability.BACKORDER][google.cloud.retail.v2alpha.Product.Availability.BACKORDER]
+     * availability.
+     *
+     * * "variant-in-stock", products have
+     * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+     * type and
+     * [Product.Availability.IN_STOCK][google.cloud.retail.v2alpha.Product.Availability.IN_STOCK]
+     * availability.
+     *
+     * * "variant-out-of-stock", products have
+     * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+     * type and
+     * [Product.Availability.OUT_OF_STOCK][google.cloud.retail.v2alpha.Product.Availability.OUT_OF_STOCK]
+     * availability.
+     *
+     * * "variant-preorder", products have
+     * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+     * type and
+     * [Product.Availability.PREORDER][google.cloud.retail.v2alpha.Product.Availability.PREORDER]
+     * availability.
+     *
+     * * "variant-backorder", products have
+     * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+     * type and
+     * [Product.Availability.BACKORDER][google.cloud.retail.v2alpha.Product.Availability.BACKORDER]
+     * availability.
+     *
+     * * "price-discounted", products have [Product.price_info.price] <
+     * [Product.price_info.original_price].
+     * 
+ * + * map<string, int64> counts = 2; + */ + int getCountsCount(); + /** + * + * + *
+     * The number of products in
+     * [scope][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.scope]
+     * broken down into different groups.
+     *
+     * The key is a group representing a set of products, and the value is the
+     * number of products in that group.
+     * Note: keys in this map may change over time.
+     *
+     * Possible keys:
+     * * "primary-in-stock", products have
+     * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+     * type and
+     * [Product.Availability.IN_STOCK][google.cloud.retail.v2alpha.Product.Availability.IN_STOCK]
+     * availability.
+     *
+     * * "primary-out-of-stock", products have
+     * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+     * type and
+     * [Product.Availability.OUT_OF_STOCK][google.cloud.retail.v2alpha.Product.Availability.OUT_OF_STOCK]
+     * availability.
+     *
+     * * "primary-preorder", products have
+     * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+     * type and
+     * [Product.Availability.PREORDER][google.cloud.retail.v2alpha.Product.Availability.PREORDER]
+     * availability.
+     *
+     * * "primary-backorder", products have
+     * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+     * type and
+     * [Product.Availability.BACKORDER][google.cloud.retail.v2alpha.Product.Availability.BACKORDER]
+     * availability.
+     *
+     * * "variant-in-stock", products have
+     * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+     * type and
+     * [Product.Availability.IN_STOCK][google.cloud.retail.v2alpha.Product.Availability.IN_STOCK]
+     * availability.
+     *
+     * * "variant-out-of-stock", products have
+     * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+     * type and
+     * [Product.Availability.OUT_OF_STOCK][google.cloud.retail.v2alpha.Product.Availability.OUT_OF_STOCK]
+     * availability.
+     *
+     * * "variant-preorder", products have
+     * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+     * type and
+     * [Product.Availability.PREORDER][google.cloud.retail.v2alpha.Product.Availability.PREORDER]
+     * availability.
+     *
+     * * "variant-backorder", products have
+     * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+     * type and
+     * [Product.Availability.BACKORDER][google.cloud.retail.v2alpha.Product.Availability.BACKORDER]
+     * availability.
+     *
+     * * "price-discounted", products have [Product.price_info.price] <
+     * [Product.price_info.original_price].
+     * 
+ * + * map<string, int64> counts = 2; + */ + boolean containsCounts(java.lang.String key); + /** Use {@link #getCountsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getCounts(); + /** + * + * + *
+     * The number of products in
+     * [scope][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.scope]
+     * broken down into different groups.
+     *
+     * The key is a group representing a set of products, and the value is the
+     * number of products in that group.
+     * Note: keys in this map may change over time.
+     *
+     * Possible keys:
+     * * "primary-in-stock", products have
+     * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+     * type and
+     * [Product.Availability.IN_STOCK][google.cloud.retail.v2alpha.Product.Availability.IN_STOCK]
+     * availability.
+     *
+     * * "primary-out-of-stock", products have
+     * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+     * type and
+     * [Product.Availability.OUT_OF_STOCK][google.cloud.retail.v2alpha.Product.Availability.OUT_OF_STOCK]
+     * availability.
+     *
+     * * "primary-preorder", products have
+     * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+     * type and
+     * [Product.Availability.PREORDER][google.cloud.retail.v2alpha.Product.Availability.PREORDER]
+     * availability.
+     *
+     * * "primary-backorder", products have
+     * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+     * type and
+     * [Product.Availability.BACKORDER][google.cloud.retail.v2alpha.Product.Availability.BACKORDER]
+     * availability.
+     *
+     * * "variant-in-stock", products have
+     * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+     * type and
+     * [Product.Availability.IN_STOCK][google.cloud.retail.v2alpha.Product.Availability.IN_STOCK]
+     * availability.
+     *
+     * * "variant-out-of-stock", products have
+     * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+     * type and
+     * [Product.Availability.OUT_OF_STOCK][google.cloud.retail.v2alpha.Product.Availability.OUT_OF_STOCK]
+     * availability.
+     *
+     * * "variant-preorder", products have
+     * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+     * type and
+     * [Product.Availability.PREORDER][google.cloud.retail.v2alpha.Product.Availability.PREORDER]
+     * availability.
+     *
+     * * "variant-backorder", products have
+     * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+     * type and
+     * [Product.Availability.BACKORDER][google.cloud.retail.v2alpha.Product.Availability.BACKORDER]
+     * availability.
+     *
+     * * "price-discounted", products have [Product.price_info.price] <
+     * [Product.price_info.original_price].
+     * 
+ * + * map<string, int64> counts = 2; + */ + java.util.Map getCountsMap(); + /** + * + * + *
+     * The number of products in
+     * [scope][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.scope]
+     * broken down into different groups.
+     *
+     * The key is a group representing a set of products, and the value is the
+     * number of products in that group.
+     * Note: keys in this map may change over time.
+     *
+     * Possible keys:
+     * * "primary-in-stock", products have
+     * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+     * type and
+     * [Product.Availability.IN_STOCK][google.cloud.retail.v2alpha.Product.Availability.IN_STOCK]
+     * availability.
+     *
+     * * "primary-out-of-stock", products have
+     * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+     * type and
+     * [Product.Availability.OUT_OF_STOCK][google.cloud.retail.v2alpha.Product.Availability.OUT_OF_STOCK]
+     * availability.
+     *
+     * * "primary-preorder", products have
+     * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+     * type and
+     * [Product.Availability.PREORDER][google.cloud.retail.v2alpha.Product.Availability.PREORDER]
+     * availability.
+     *
+     * * "primary-backorder", products have
+     * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+     * type and
+     * [Product.Availability.BACKORDER][google.cloud.retail.v2alpha.Product.Availability.BACKORDER]
+     * availability.
+     *
+     * * "variant-in-stock", products have
+     * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+     * type and
+     * [Product.Availability.IN_STOCK][google.cloud.retail.v2alpha.Product.Availability.IN_STOCK]
+     * availability.
+     *
+     * * "variant-out-of-stock", products have
+     * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+     * type and
+     * [Product.Availability.OUT_OF_STOCK][google.cloud.retail.v2alpha.Product.Availability.OUT_OF_STOCK]
+     * availability.
+     *
+     * * "variant-preorder", products have
+     * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+     * type and
+     * [Product.Availability.PREORDER][google.cloud.retail.v2alpha.Product.Availability.PREORDER]
+     * availability.
+     *
+     * * "variant-backorder", products have
+     * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+     * type and
+     * [Product.Availability.BACKORDER][google.cloud.retail.v2alpha.Product.Availability.BACKORDER]
+     * availability.
+     *
+     * * "price-discounted", products have [Product.price_info.price] <
+     * [Product.price_info.original_price].
+     * 
+ * + * map<string, int64> counts = 2; + */ + long getCountsOrDefault(java.lang.String key, long defaultValue); + /** + * + * + *
+     * The number of products in
+     * [scope][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.scope]
+     * broken down into different groups.
+     *
+     * The key is a group representing a set of products, and the value is the
+     * number of products in that group.
+     * Note: keys in this map may change over time.
+     *
+     * Possible keys:
+     * * "primary-in-stock", products have
+     * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+     * type and
+     * [Product.Availability.IN_STOCK][google.cloud.retail.v2alpha.Product.Availability.IN_STOCK]
+     * availability.
+     *
+     * * "primary-out-of-stock", products have
+     * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+     * type and
+     * [Product.Availability.OUT_OF_STOCK][google.cloud.retail.v2alpha.Product.Availability.OUT_OF_STOCK]
+     * availability.
+     *
+     * * "primary-preorder", products have
+     * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+     * type and
+     * [Product.Availability.PREORDER][google.cloud.retail.v2alpha.Product.Availability.PREORDER]
+     * availability.
+     *
+     * * "primary-backorder", products have
+     * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+     * type and
+     * [Product.Availability.BACKORDER][google.cloud.retail.v2alpha.Product.Availability.BACKORDER]
+     * availability.
+     *
+     * * "variant-in-stock", products have
+     * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+     * type and
+     * [Product.Availability.IN_STOCK][google.cloud.retail.v2alpha.Product.Availability.IN_STOCK]
+     * availability.
+     *
+     * * "variant-out-of-stock", products have
+     * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+     * type and
+     * [Product.Availability.OUT_OF_STOCK][google.cloud.retail.v2alpha.Product.Availability.OUT_OF_STOCK]
+     * availability.
+     *
+     * * "variant-preorder", products have
+     * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+     * type and
+     * [Product.Availability.PREORDER][google.cloud.retail.v2alpha.Product.Availability.PREORDER]
+     * availability.
+     *
+     * * "variant-backorder", products have
+     * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+     * type and
+     * [Product.Availability.BACKORDER][google.cloud.retail.v2alpha.Product.Availability.BACKORDER]
+     * availability.
+     *
+     * * "price-discounted", products have [Product.price_info.price] <
+     * [Product.price_info.original_price].
+     * 
+ * + * map<string, int64> counts = 2; + */ + long getCountsOrThrow(java.lang.String key); + } + /** + * + * + *
+   * A statistic about the number of products in a branch.
+   * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.Branch.ProductCountStatistic} + */ + public static final class ProductCountStatistic extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2alpha.Branch.ProductCountStatistic) + ProductCountStatisticOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProductCountStatistic.newBuilder() to construct. + private ProductCountStatistic(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ProductCountStatistic() { + scope_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ProductCountStatistic(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.BranchProto + .internal_static_google_cloud_retail_v2alpha_Branch_ProductCountStatistic_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 2: + return internalGetCounts(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.BranchProto + .internal_static_google_cloud_retail_v2alpha_Branch_ProductCountStatistic_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic.class, + com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic.Builder.class); + } + + /** + * + * + *
+     * Scope of what products are included for this count.
+     * 
+ * + * Protobuf enum {@code + * google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope} + */ + public enum ProductCountScope implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Default value for enum. This value is not used in the API response.
+       * 
+ * + * PRODUCT_COUNT_SCOPE_UNSPECIFIED = 0; + */ + PRODUCT_COUNT_SCOPE_UNSPECIFIED(0), + /** + * + * + *
+       * Scope for all existing products in the branch. Useful for understanding
+       * how many products there are in a branch.
+       * 
+ * + * ALL_PRODUCTS = 1; + */ + ALL_PRODUCTS(1), + /** + * + * + *
+       * Scope for products created or updated in the last 24 hours.
+       * 
+ * + * LAST_24_HOUR_UPDATE = 2; + */ + LAST_24_HOUR_UPDATE(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * Default value for enum. This value is not used in the API response.
+       * 
+ * + * PRODUCT_COUNT_SCOPE_UNSPECIFIED = 0; + */ + public static final int PRODUCT_COUNT_SCOPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+       * Scope for all existing products in the branch. Useful for understanding
+       * how many products there are in a branch.
+       * 
+ * + * ALL_PRODUCTS = 1; + */ + public static final int ALL_PRODUCTS_VALUE = 1; + /** + * + * + *
+       * Scope for products created or updated in the last 24 hours.
+       * 
+ * + * LAST_24_HOUR_UPDATE = 2; + */ + public static final int LAST_24_HOUR_UPDATE_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ProductCountScope valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ProductCountScope forNumber(int value) { + switch (value) { + case 0: + return PRODUCT_COUNT_SCOPE_UNSPECIFIED; + case 1: + return ALL_PRODUCTS; + case 2: + return LAST_24_HOUR_UPDATE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ProductCountScope findValueByNumber(int number) { + return ProductCountScope.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ProductCountScope[] VALUES = values(); + + public static ProductCountScope valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ProductCountScope(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope) + } + + public static final int SCOPE_FIELD_NUMBER = 1; + private int scope_ = 0; + /** + * + * + *
+     * [ProductCountScope] of the [counts].
+     * 
+ * + * .google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope scope = 1; + * + * + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override + public int getScopeValue() { + return scope_; + } + /** + * + * + *
+     * [ProductCountScope] of the [counts].
+     * 
+ * + * .google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope scope = 1; + * + * + * @return The scope. + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope + getScope() { + com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope result = + com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope.forNumber( + scope_); + return result == null + ? com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope + .UNRECOGNIZED + : result; + } + + public static final int COUNTS_FIELD_NUMBER = 2; + + private static final class CountsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.retail.v2alpha.BranchProto + .internal_static_google_cloud_retail_v2alpha_Branch_ProductCountStatistic_CountsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.INT64, + 0L); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField counts_; + + private com.google.protobuf.MapField internalGetCounts() { + if (counts_ == null) { + return com.google.protobuf.MapField.emptyMapField(CountsDefaultEntryHolder.defaultEntry); + } + return counts_; + } + + public int getCountsCount() { + return internalGetCounts().getMap().size(); + } + /** + * + * + *
+     * The number of products in
+     * [scope][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.scope]
+     * broken down into different groups.
+     *
+     * The key is a group representing a set of products, and the value is the
+     * number of products in that group.
+     * Note: keys in this map may change over time.
+     *
+     * Possible keys:
+     * * "primary-in-stock", products have
+     * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+     * type and
+     * [Product.Availability.IN_STOCK][google.cloud.retail.v2alpha.Product.Availability.IN_STOCK]
+     * availability.
+     *
+     * * "primary-out-of-stock", products have
+     * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+     * type and
+     * [Product.Availability.OUT_OF_STOCK][google.cloud.retail.v2alpha.Product.Availability.OUT_OF_STOCK]
+     * availability.
+     *
+     * * "primary-preorder", products have
+     * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+     * type and
+     * [Product.Availability.PREORDER][google.cloud.retail.v2alpha.Product.Availability.PREORDER]
+     * availability.
+     *
+     * * "primary-backorder", products have
+     * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+     * type and
+     * [Product.Availability.BACKORDER][google.cloud.retail.v2alpha.Product.Availability.BACKORDER]
+     * availability.
+     *
+     * * "variant-in-stock", products have
+     * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+     * type and
+     * [Product.Availability.IN_STOCK][google.cloud.retail.v2alpha.Product.Availability.IN_STOCK]
+     * availability.
+     *
+     * * "variant-out-of-stock", products have
+     * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+     * type and
+     * [Product.Availability.OUT_OF_STOCK][google.cloud.retail.v2alpha.Product.Availability.OUT_OF_STOCK]
+     * availability.
+     *
+     * * "variant-preorder", products have
+     * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+     * type and
+     * [Product.Availability.PREORDER][google.cloud.retail.v2alpha.Product.Availability.PREORDER]
+     * availability.
+     *
+     * * "variant-backorder", products have
+     * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+     * type and
+     * [Product.Availability.BACKORDER][google.cloud.retail.v2alpha.Product.Availability.BACKORDER]
+     * availability.
+     *
+     * * "price-discounted", products have [Product.price_info.price] <
+     * [Product.price_info.original_price].
+     * 
+ * + * map<string, int64> counts = 2; + */ + @java.lang.Override + public boolean containsCounts(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetCounts().getMap().containsKey(key); + } + /** Use {@link #getCountsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getCounts() { + return getCountsMap(); + } + /** + * + * + *
+     * The number of products in
+     * [scope][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.scope]
+     * broken down into different groups.
+     *
+     * The key is a group representing a set of products, and the value is the
+     * number of products in that group.
+     * Note: keys in this map may change over time.
+     *
+     * Possible keys:
+     * * "primary-in-stock", products have
+     * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+     * type and
+     * [Product.Availability.IN_STOCK][google.cloud.retail.v2alpha.Product.Availability.IN_STOCK]
+     * availability.
+     *
+     * * "primary-out-of-stock", products have
+     * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+     * type and
+     * [Product.Availability.OUT_OF_STOCK][google.cloud.retail.v2alpha.Product.Availability.OUT_OF_STOCK]
+     * availability.
+     *
+     * * "primary-preorder", products have
+     * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+     * type and
+     * [Product.Availability.PREORDER][google.cloud.retail.v2alpha.Product.Availability.PREORDER]
+     * availability.
+     *
+     * * "primary-backorder", products have
+     * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+     * type and
+     * [Product.Availability.BACKORDER][google.cloud.retail.v2alpha.Product.Availability.BACKORDER]
+     * availability.
+     *
+     * * "variant-in-stock", products have
+     * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+     * type and
+     * [Product.Availability.IN_STOCK][google.cloud.retail.v2alpha.Product.Availability.IN_STOCK]
+     * availability.
+     *
+     * * "variant-out-of-stock", products have
+     * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+     * type and
+     * [Product.Availability.OUT_OF_STOCK][google.cloud.retail.v2alpha.Product.Availability.OUT_OF_STOCK]
+     * availability.
+     *
+     * * "variant-preorder", products have
+     * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+     * type and
+     * [Product.Availability.PREORDER][google.cloud.retail.v2alpha.Product.Availability.PREORDER]
+     * availability.
+     *
+     * * "variant-backorder", products have
+     * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+     * type and
+     * [Product.Availability.BACKORDER][google.cloud.retail.v2alpha.Product.Availability.BACKORDER]
+     * availability.
+     *
+     * * "price-discounted", products have [Product.price_info.price] <
+     * [Product.price_info.original_price].
+     * 
+ * + * map<string, int64> counts = 2; + */ + @java.lang.Override + public java.util.Map getCountsMap() { + return internalGetCounts().getMap(); + } + /** + * + * + *
+     * The number of products in
+     * [scope][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.scope]
+     * broken down into different groups.
+     *
+     * The key is a group representing a set of products, and the value is the
+     * number of products in that group.
+     * Note: keys in this map may change over time.
+     *
+     * Possible keys:
+     * * "primary-in-stock", products have
+     * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+     * type and
+     * [Product.Availability.IN_STOCK][google.cloud.retail.v2alpha.Product.Availability.IN_STOCK]
+     * availability.
+     *
+     * * "primary-out-of-stock", products have
+     * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+     * type and
+     * [Product.Availability.OUT_OF_STOCK][google.cloud.retail.v2alpha.Product.Availability.OUT_OF_STOCK]
+     * availability.
+     *
+     * * "primary-preorder", products have
+     * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+     * type and
+     * [Product.Availability.PREORDER][google.cloud.retail.v2alpha.Product.Availability.PREORDER]
+     * availability.
+     *
+     * * "primary-backorder", products have
+     * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+     * type and
+     * [Product.Availability.BACKORDER][google.cloud.retail.v2alpha.Product.Availability.BACKORDER]
+     * availability.
+     *
+     * * "variant-in-stock", products have
+     * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+     * type and
+     * [Product.Availability.IN_STOCK][google.cloud.retail.v2alpha.Product.Availability.IN_STOCK]
+     * availability.
+     *
+     * * "variant-out-of-stock", products have
+     * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+     * type and
+     * [Product.Availability.OUT_OF_STOCK][google.cloud.retail.v2alpha.Product.Availability.OUT_OF_STOCK]
+     * availability.
+     *
+     * * "variant-preorder", products have
+     * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+     * type and
+     * [Product.Availability.PREORDER][google.cloud.retail.v2alpha.Product.Availability.PREORDER]
+     * availability.
+     *
+     * * "variant-backorder", products have
+     * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+     * type and
+     * [Product.Availability.BACKORDER][google.cloud.retail.v2alpha.Product.Availability.BACKORDER]
+     * availability.
+     *
+     * * "price-discounted", products have [Product.price_info.price] <
+     * [Product.price_info.original_price].
+     * 
+ * + * map<string, int64> counts = 2; + */ + @java.lang.Override + public long getCountsOrDefault(java.lang.String key, long defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetCounts().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * The number of products in
+     * [scope][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.scope]
+     * broken down into different groups.
+     *
+     * The key is a group representing a set of products, and the value is the
+     * number of products in that group.
+     * Note: keys in this map may change over time.
+     *
+     * Possible keys:
+     * * "primary-in-stock", products have
+     * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+     * type and
+     * [Product.Availability.IN_STOCK][google.cloud.retail.v2alpha.Product.Availability.IN_STOCK]
+     * availability.
+     *
+     * * "primary-out-of-stock", products have
+     * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+     * type and
+     * [Product.Availability.OUT_OF_STOCK][google.cloud.retail.v2alpha.Product.Availability.OUT_OF_STOCK]
+     * availability.
+     *
+     * * "primary-preorder", products have
+     * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+     * type and
+     * [Product.Availability.PREORDER][google.cloud.retail.v2alpha.Product.Availability.PREORDER]
+     * availability.
+     *
+     * * "primary-backorder", products have
+     * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+     * type and
+     * [Product.Availability.BACKORDER][google.cloud.retail.v2alpha.Product.Availability.BACKORDER]
+     * availability.
+     *
+     * * "variant-in-stock", products have
+     * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+     * type and
+     * [Product.Availability.IN_STOCK][google.cloud.retail.v2alpha.Product.Availability.IN_STOCK]
+     * availability.
+     *
+     * * "variant-out-of-stock", products have
+     * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+     * type and
+     * [Product.Availability.OUT_OF_STOCK][google.cloud.retail.v2alpha.Product.Availability.OUT_OF_STOCK]
+     * availability.
+     *
+     * * "variant-preorder", products have
+     * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+     * type and
+     * [Product.Availability.PREORDER][google.cloud.retail.v2alpha.Product.Availability.PREORDER]
+     * availability.
+     *
+     * * "variant-backorder", products have
+     * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+     * type and
+     * [Product.Availability.BACKORDER][google.cloud.retail.v2alpha.Product.Availability.BACKORDER]
+     * availability.
+     *
+     * * "price-discounted", products have [Product.price_info.price] <
+     * [Product.price_info.original_price].
+     * 
+ * + * map<string, int64> counts = 2; + */ + @java.lang.Override + public long getCountsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetCounts().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (scope_ + != com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope + .PRODUCT_COUNT_SCOPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, scope_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetCounts(), CountsDefaultEntryHolder.defaultEntry, 2); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (scope_ + != com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope + .PRODUCT_COUNT_SCOPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, scope_); + } + for (java.util.Map.Entry entry : + internalGetCounts().getMap().entrySet()) { + com.google.protobuf.MapEntry counts__ = + CountsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, counts__); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic)) { + return super.equals(obj); + } + com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic other = + (com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic) obj; + + if (scope_ != other.scope_) return false; + if (!internalGetCounts().equals(other.internalGetCounts())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + scope_; + if (!internalGetCounts().getMap().isEmpty()) { + hash = (37 * hash) + COUNTS_FIELD_NUMBER; + hash = (53 * hash) + internalGetCounts().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * A statistic about the number of products in a branch.
+     * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.Branch.ProductCountStatistic} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2alpha.Branch.ProductCountStatistic) + com.google.cloud.retail.v2alpha.Branch.ProductCountStatisticOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.BranchProto + .internal_static_google_cloud_retail_v2alpha_Branch_ProductCountStatistic_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 2: + return internalGetCounts(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 2: + return internalGetMutableCounts(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.BranchProto + .internal_static_google_cloud_retail_v2alpha_Branch_ProductCountStatistic_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic.class, + com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic.Builder.class); + } + + // Construct using com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + scope_ = 0; + internalGetMutableCounts().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2alpha.BranchProto + .internal_static_google_cloud_retail_v2alpha_Branch_ProductCountStatistic_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic + getDefaultInstanceForType() { + return com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic build() { + com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic buildPartial() { + com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic result = + new com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.scope_ = scope_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.counts_ = internalGetCounts(); + result.counts_.makeImmutable(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic) { + return mergeFrom((com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic other) { + if (other + == com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic.getDefaultInstance()) + return this; + if (other.scope_ != 0) { + setScopeValue(other.getScopeValue()); + } + internalGetMutableCounts().mergeFrom(other.internalGetCounts()); + bitField0_ |= 0x00000002; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + scope_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + com.google.protobuf.MapEntry counts__ = + input.readMessage( + CountsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableCounts() + .getMutableMap() + .put(counts__.getKey(), counts__.getValue()); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int scope_ = 0; + /** + * + * + *
+       * [ProductCountScope] of the [counts].
+       * 
+ * + * + * .google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope scope = 1; + * + * + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override + public int getScopeValue() { + return scope_; + } + /** + * + * + *
+       * [ProductCountScope] of the [counts].
+       * 
+ * + * + * .google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope scope = 1; + * + * + * @param value The enum numeric value on the wire for scope to set. + * @return This builder for chaining. + */ + public Builder setScopeValue(int value) { + scope_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * [ProductCountScope] of the [counts].
+       * 
+ * + * + * .google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope scope = 1; + * + * + * @return The scope. + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope + getScope() { + com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope result = + com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope + .forNumber(scope_); + return result == null + ? com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope + .UNRECOGNIZED + : result; + } + /** + * + * + *
+       * [ProductCountScope] of the [counts].
+       * 
+ * + * + * .google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope scope = 1; + * + * + * @param value The scope to set. + * @return This builder for chaining. + */ + public Builder setScope( + com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + scope_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * [ProductCountScope] of the [counts].
+       * 
+ * + * + * .google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope scope = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearScope() { + bitField0_ = (bitField0_ & ~0x00000001); + scope_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.MapField counts_; + + private com.google.protobuf.MapField internalGetCounts() { + if (counts_ == null) { + return com.google.protobuf.MapField.emptyMapField(CountsDefaultEntryHolder.defaultEntry); + } + return counts_; + } + + private com.google.protobuf.MapField + internalGetMutableCounts() { + if (counts_ == null) { + counts_ = com.google.protobuf.MapField.newMapField(CountsDefaultEntryHolder.defaultEntry); + } + if (!counts_.isMutable()) { + counts_ = counts_.copy(); + } + bitField0_ |= 0x00000002; + onChanged(); + return counts_; + } + + public int getCountsCount() { + return internalGetCounts().getMap().size(); + } + /** + * + * + *
+       * The number of products in
+       * [scope][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.scope]
+       * broken down into different groups.
+       *
+       * The key is a group representing a set of products, and the value is the
+       * number of products in that group.
+       * Note: keys in this map may change over time.
+       *
+       * Possible keys:
+       * * "primary-in-stock", products have
+       * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+       * type and
+       * [Product.Availability.IN_STOCK][google.cloud.retail.v2alpha.Product.Availability.IN_STOCK]
+       * availability.
+       *
+       * * "primary-out-of-stock", products have
+       * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+       * type and
+       * [Product.Availability.OUT_OF_STOCK][google.cloud.retail.v2alpha.Product.Availability.OUT_OF_STOCK]
+       * availability.
+       *
+       * * "primary-preorder", products have
+       * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+       * type and
+       * [Product.Availability.PREORDER][google.cloud.retail.v2alpha.Product.Availability.PREORDER]
+       * availability.
+       *
+       * * "primary-backorder", products have
+       * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+       * type and
+       * [Product.Availability.BACKORDER][google.cloud.retail.v2alpha.Product.Availability.BACKORDER]
+       * availability.
+       *
+       * * "variant-in-stock", products have
+       * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+       * type and
+       * [Product.Availability.IN_STOCK][google.cloud.retail.v2alpha.Product.Availability.IN_STOCK]
+       * availability.
+       *
+       * * "variant-out-of-stock", products have
+       * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+       * type and
+       * [Product.Availability.OUT_OF_STOCK][google.cloud.retail.v2alpha.Product.Availability.OUT_OF_STOCK]
+       * availability.
+       *
+       * * "variant-preorder", products have
+       * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+       * type and
+       * [Product.Availability.PREORDER][google.cloud.retail.v2alpha.Product.Availability.PREORDER]
+       * availability.
+       *
+       * * "variant-backorder", products have
+       * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+       * type and
+       * [Product.Availability.BACKORDER][google.cloud.retail.v2alpha.Product.Availability.BACKORDER]
+       * availability.
+       *
+       * * "price-discounted", products have [Product.price_info.price] <
+       * [Product.price_info.original_price].
+       * 
+ * + * map<string, int64> counts = 2; + */ + @java.lang.Override + public boolean containsCounts(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetCounts().getMap().containsKey(key); + } + /** Use {@link #getCountsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getCounts() { + return getCountsMap(); + } + /** + * + * + *
+       * The number of products in
+       * [scope][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.scope]
+       * broken down into different groups.
+       *
+       * The key is a group representing a set of products, and the value is the
+       * number of products in that group.
+       * Note: keys in this map may change over time.
+       *
+       * Possible keys:
+       * * "primary-in-stock", products have
+       * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+       * type and
+       * [Product.Availability.IN_STOCK][google.cloud.retail.v2alpha.Product.Availability.IN_STOCK]
+       * availability.
+       *
+       * * "primary-out-of-stock", products have
+       * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+       * type and
+       * [Product.Availability.OUT_OF_STOCK][google.cloud.retail.v2alpha.Product.Availability.OUT_OF_STOCK]
+       * availability.
+       *
+       * * "primary-preorder", products have
+       * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+       * type and
+       * [Product.Availability.PREORDER][google.cloud.retail.v2alpha.Product.Availability.PREORDER]
+       * availability.
+       *
+       * * "primary-backorder", products have
+       * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+       * type and
+       * [Product.Availability.BACKORDER][google.cloud.retail.v2alpha.Product.Availability.BACKORDER]
+       * availability.
+       *
+       * * "variant-in-stock", products have
+       * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+       * type and
+       * [Product.Availability.IN_STOCK][google.cloud.retail.v2alpha.Product.Availability.IN_STOCK]
+       * availability.
+       *
+       * * "variant-out-of-stock", products have
+       * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+       * type and
+       * [Product.Availability.OUT_OF_STOCK][google.cloud.retail.v2alpha.Product.Availability.OUT_OF_STOCK]
+       * availability.
+       *
+       * * "variant-preorder", products have
+       * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+       * type and
+       * [Product.Availability.PREORDER][google.cloud.retail.v2alpha.Product.Availability.PREORDER]
+       * availability.
+       *
+       * * "variant-backorder", products have
+       * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+       * type and
+       * [Product.Availability.BACKORDER][google.cloud.retail.v2alpha.Product.Availability.BACKORDER]
+       * availability.
+       *
+       * * "price-discounted", products have [Product.price_info.price] <
+       * [Product.price_info.original_price].
+       * 
+ * + * map<string, int64> counts = 2; + */ + @java.lang.Override + public java.util.Map getCountsMap() { + return internalGetCounts().getMap(); + } + /** + * + * + *
+       * The number of products in
+       * [scope][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.scope]
+       * broken down into different groups.
+       *
+       * The key is a group representing a set of products, and the value is the
+       * number of products in that group.
+       * Note: keys in this map may change over time.
+       *
+       * Possible keys:
+       * * "primary-in-stock", products have
+       * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+       * type and
+       * [Product.Availability.IN_STOCK][google.cloud.retail.v2alpha.Product.Availability.IN_STOCK]
+       * availability.
+       *
+       * * "primary-out-of-stock", products have
+       * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+       * type and
+       * [Product.Availability.OUT_OF_STOCK][google.cloud.retail.v2alpha.Product.Availability.OUT_OF_STOCK]
+       * availability.
+       *
+       * * "primary-preorder", products have
+       * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+       * type and
+       * [Product.Availability.PREORDER][google.cloud.retail.v2alpha.Product.Availability.PREORDER]
+       * availability.
+       *
+       * * "primary-backorder", products have
+       * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+       * type and
+       * [Product.Availability.BACKORDER][google.cloud.retail.v2alpha.Product.Availability.BACKORDER]
+       * availability.
+       *
+       * * "variant-in-stock", products have
+       * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+       * type and
+       * [Product.Availability.IN_STOCK][google.cloud.retail.v2alpha.Product.Availability.IN_STOCK]
+       * availability.
+       *
+       * * "variant-out-of-stock", products have
+       * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+       * type and
+       * [Product.Availability.OUT_OF_STOCK][google.cloud.retail.v2alpha.Product.Availability.OUT_OF_STOCK]
+       * availability.
+       *
+       * * "variant-preorder", products have
+       * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+       * type and
+       * [Product.Availability.PREORDER][google.cloud.retail.v2alpha.Product.Availability.PREORDER]
+       * availability.
+       *
+       * * "variant-backorder", products have
+       * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+       * type and
+       * [Product.Availability.BACKORDER][google.cloud.retail.v2alpha.Product.Availability.BACKORDER]
+       * availability.
+       *
+       * * "price-discounted", products have [Product.price_info.price] <
+       * [Product.price_info.original_price].
+       * 
+ * + * map<string, int64> counts = 2; + */ + @java.lang.Override + public long getCountsOrDefault(java.lang.String key, long defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetCounts().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+       * The number of products in
+       * [scope][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.scope]
+       * broken down into different groups.
+       *
+       * The key is a group representing a set of products, and the value is the
+       * number of products in that group.
+       * Note: keys in this map may change over time.
+       *
+       * Possible keys:
+       * * "primary-in-stock", products have
+       * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+       * type and
+       * [Product.Availability.IN_STOCK][google.cloud.retail.v2alpha.Product.Availability.IN_STOCK]
+       * availability.
+       *
+       * * "primary-out-of-stock", products have
+       * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+       * type and
+       * [Product.Availability.OUT_OF_STOCK][google.cloud.retail.v2alpha.Product.Availability.OUT_OF_STOCK]
+       * availability.
+       *
+       * * "primary-preorder", products have
+       * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+       * type and
+       * [Product.Availability.PREORDER][google.cloud.retail.v2alpha.Product.Availability.PREORDER]
+       * availability.
+       *
+       * * "primary-backorder", products have
+       * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+       * type and
+       * [Product.Availability.BACKORDER][google.cloud.retail.v2alpha.Product.Availability.BACKORDER]
+       * availability.
+       *
+       * * "variant-in-stock", products have
+       * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+       * type and
+       * [Product.Availability.IN_STOCK][google.cloud.retail.v2alpha.Product.Availability.IN_STOCK]
+       * availability.
+       *
+       * * "variant-out-of-stock", products have
+       * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+       * type and
+       * [Product.Availability.OUT_OF_STOCK][google.cloud.retail.v2alpha.Product.Availability.OUT_OF_STOCK]
+       * availability.
+       *
+       * * "variant-preorder", products have
+       * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+       * type and
+       * [Product.Availability.PREORDER][google.cloud.retail.v2alpha.Product.Availability.PREORDER]
+       * availability.
+       *
+       * * "variant-backorder", products have
+       * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+       * type and
+       * [Product.Availability.BACKORDER][google.cloud.retail.v2alpha.Product.Availability.BACKORDER]
+       * availability.
+       *
+       * * "price-discounted", products have [Product.price_info.price] <
+       * [Product.price_info.original_price].
+       * 
+ * + * map<string, int64> counts = 2; + */ + @java.lang.Override + public long getCountsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetCounts().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearCounts() { + bitField0_ = (bitField0_ & ~0x00000002); + internalGetMutableCounts().getMutableMap().clear(); + return this; + } + /** + * + * + *
+       * The number of products in
+       * [scope][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.scope]
+       * broken down into different groups.
+       *
+       * The key is a group representing a set of products, and the value is the
+       * number of products in that group.
+       * Note: keys in this map may change over time.
+       *
+       * Possible keys:
+       * * "primary-in-stock", products have
+       * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+       * type and
+       * [Product.Availability.IN_STOCK][google.cloud.retail.v2alpha.Product.Availability.IN_STOCK]
+       * availability.
+       *
+       * * "primary-out-of-stock", products have
+       * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+       * type and
+       * [Product.Availability.OUT_OF_STOCK][google.cloud.retail.v2alpha.Product.Availability.OUT_OF_STOCK]
+       * availability.
+       *
+       * * "primary-preorder", products have
+       * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+       * type and
+       * [Product.Availability.PREORDER][google.cloud.retail.v2alpha.Product.Availability.PREORDER]
+       * availability.
+       *
+       * * "primary-backorder", products have
+       * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+       * type and
+       * [Product.Availability.BACKORDER][google.cloud.retail.v2alpha.Product.Availability.BACKORDER]
+       * availability.
+       *
+       * * "variant-in-stock", products have
+       * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+       * type and
+       * [Product.Availability.IN_STOCK][google.cloud.retail.v2alpha.Product.Availability.IN_STOCK]
+       * availability.
+       *
+       * * "variant-out-of-stock", products have
+       * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+       * type and
+       * [Product.Availability.OUT_OF_STOCK][google.cloud.retail.v2alpha.Product.Availability.OUT_OF_STOCK]
+       * availability.
+       *
+       * * "variant-preorder", products have
+       * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+       * type and
+       * [Product.Availability.PREORDER][google.cloud.retail.v2alpha.Product.Availability.PREORDER]
+       * availability.
+       *
+       * * "variant-backorder", products have
+       * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+       * type and
+       * [Product.Availability.BACKORDER][google.cloud.retail.v2alpha.Product.Availability.BACKORDER]
+       * availability.
+       *
+       * * "price-discounted", products have [Product.price_info.price] <
+       * [Product.price_info.original_price].
+       * 
+ * + * map<string, int64> counts = 2; + */ + public Builder removeCounts(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableCounts().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableCounts() { + bitField0_ |= 0x00000002; + return internalGetMutableCounts().getMutableMap(); + } + /** + * + * + *
+       * The number of products in
+       * [scope][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.scope]
+       * broken down into different groups.
+       *
+       * The key is a group representing a set of products, and the value is the
+       * number of products in that group.
+       * Note: keys in this map may change over time.
+       *
+       * Possible keys:
+       * * "primary-in-stock", products have
+       * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+       * type and
+       * [Product.Availability.IN_STOCK][google.cloud.retail.v2alpha.Product.Availability.IN_STOCK]
+       * availability.
+       *
+       * * "primary-out-of-stock", products have
+       * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+       * type and
+       * [Product.Availability.OUT_OF_STOCK][google.cloud.retail.v2alpha.Product.Availability.OUT_OF_STOCK]
+       * availability.
+       *
+       * * "primary-preorder", products have
+       * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+       * type and
+       * [Product.Availability.PREORDER][google.cloud.retail.v2alpha.Product.Availability.PREORDER]
+       * availability.
+       *
+       * * "primary-backorder", products have
+       * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+       * type and
+       * [Product.Availability.BACKORDER][google.cloud.retail.v2alpha.Product.Availability.BACKORDER]
+       * availability.
+       *
+       * * "variant-in-stock", products have
+       * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+       * type and
+       * [Product.Availability.IN_STOCK][google.cloud.retail.v2alpha.Product.Availability.IN_STOCK]
+       * availability.
+       *
+       * * "variant-out-of-stock", products have
+       * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+       * type and
+       * [Product.Availability.OUT_OF_STOCK][google.cloud.retail.v2alpha.Product.Availability.OUT_OF_STOCK]
+       * availability.
+       *
+       * * "variant-preorder", products have
+       * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+       * type and
+       * [Product.Availability.PREORDER][google.cloud.retail.v2alpha.Product.Availability.PREORDER]
+       * availability.
+       *
+       * * "variant-backorder", products have
+       * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+       * type and
+       * [Product.Availability.BACKORDER][google.cloud.retail.v2alpha.Product.Availability.BACKORDER]
+       * availability.
+       *
+       * * "price-discounted", products have [Product.price_info.price] <
+       * [Product.price_info.original_price].
+       * 
+ * + * map<string, int64> counts = 2; + */ + public Builder putCounts(java.lang.String key, long value) { + if (key == null) { + throw new NullPointerException("map key"); + } + + internalGetMutableCounts().getMutableMap().put(key, value); + bitField0_ |= 0x00000002; + return this; + } + /** + * + * + *
+       * The number of products in
+       * [scope][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.scope]
+       * broken down into different groups.
+       *
+       * The key is a group representing a set of products, and the value is the
+       * number of products in that group.
+       * Note: keys in this map may change over time.
+       *
+       * Possible keys:
+       * * "primary-in-stock", products have
+       * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+       * type and
+       * [Product.Availability.IN_STOCK][google.cloud.retail.v2alpha.Product.Availability.IN_STOCK]
+       * availability.
+       *
+       * * "primary-out-of-stock", products have
+       * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+       * type and
+       * [Product.Availability.OUT_OF_STOCK][google.cloud.retail.v2alpha.Product.Availability.OUT_OF_STOCK]
+       * availability.
+       *
+       * * "primary-preorder", products have
+       * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+       * type and
+       * [Product.Availability.PREORDER][google.cloud.retail.v2alpha.Product.Availability.PREORDER]
+       * availability.
+       *
+       * * "primary-backorder", products have
+       * [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]
+       * type and
+       * [Product.Availability.BACKORDER][google.cloud.retail.v2alpha.Product.Availability.BACKORDER]
+       * availability.
+       *
+       * * "variant-in-stock", products have
+       * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+       * type and
+       * [Product.Availability.IN_STOCK][google.cloud.retail.v2alpha.Product.Availability.IN_STOCK]
+       * availability.
+       *
+       * * "variant-out-of-stock", products have
+       * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+       * type and
+       * [Product.Availability.OUT_OF_STOCK][google.cloud.retail.v2alpha.Product.Availability.OUT_OF_STOCK]
+       * availability.
+       *
+       * * "variant-preorder", products have
+       * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+       * type and
+       * [Product.Availability.PREORDER][google.cloud.retail.v2alpha.Product.Availability.PREORDER]
+       * availability.
+       *
+       * * "variant-backorder", products have
+       * [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]
+       * type and
+       * [Product.Availability.BACKORDER][google.cloud.retail.v2alpha.Product.Availability.BACKORDER]
+       * availability.
+       *
+       * * "price-discounted", products have [Product.price_info.price] <
+       * [Product.price_info.original_price].
+       * 
+ * + * map<string, int64> counts = 2; + */ + public Builder putAllCounts(java.util.Map values) { + internalGetMutableCounts().getMutableMap().putAll(values); + bitField0_ |= 0x00000002; + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2alpha.Branch.ProductCountStatistic) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2alpha.Branch.ProductCountStatistic) + private static final com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic(); + } + + public static com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProductCountStatistic parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface QualityMetricOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2alpha.Branch.QualityMetric) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The key that represents a quality requirement rule.
+     *
+     * Supported keys:
+     * * "has-valid-uri": product has a valid and accessible
+     * [uri][google.cloud.retail.v2alpha.Product.uri].
+     *
+     * * "available-expire-time-conformance":
+     * [Product.available_time][google.cloud.retail.v2alpha.Product.available_time]
+     * is early than "now", and
+     * [Product.expire_time][google.cloud.retail.v2alpha.Product.expire_time] is
+     * greater than "now".
+     *
+     * * "has-searchable-attributes": product has at least one
+     * [attribute][google.cloud.retail.v2alpha.Product.attributes] set to
+     * searchable.
+     *
+     * * "has-description": product has non-empty
+     * [description][google.cloud.retail.v2alpha.Product.description].
+     *
+     * * "has-at-least-bigram-title": Product
+     * [title][google.cloud.retail.v2alpha.Product.title] has at least two
+     * words. A comprehensive title helps to improve search quality.
+     *
+     * * "variant-has-image": the
+     * [variant][google.cloud.retail.v2alpha.Product.Type.VARIANT] products has
+     * at least one [image][google.cloud.retail.v2alpha.Product.images]. You may
+     * ignore this metric if all your products are at
+     * [primary][google.cloud.retail.v2alpha.Product.Type.PRIMARY] level.
+     *
+     * * "variant-has-price-info": the
+     * [variant][google.cloud.retail.v2alpha.Product.Type.VARIANT] products has
+     * [price_info][google.cloud.retail.v2alpha.Product.price_info] set. You may
+     * ignore this metric if all your products are at
+     * [primary][google.cloud.retail.v2alpha.Product.Type.PRIMARY] level.
+     *
+     * * "has-publish-time": product has non-empty
+     * [publish_time][google.cloud.retail.v2alpha.Product.publish_time].
+     * 
+ * + * string requirement_key = 1; + * + * @return The requirementKey. + */ + java.lang.String getRequirementKey(); + /** + * + * + *
+     * The key that represents a quality requirement rule.
+     *
+     * Supported keys:
+     * * "has-valid-uri": product has a valid and accessible
+     * [uri][google.cloud.retail.v2alpha.Product.uri].
+     *
+     * * "available-expire-time-conformance":
+     * [Product.available_time][google.cloud.retail.v2alpha.Product.available_time]
+     * is early than "now", and
+     * [Product.expire_time][google.cloud.retail.v2alpha.Product.expire_time] is
+     * greater than "now".
+     *
+     * * "has-searchable-attributes": product has at least one
+     * [attribute][google.cloud.retail.v2alpha.Product.attributes] set to
+     * searchable.
+     *
+     * * "has-description": product has non-empty
+     * [description][google.cloud.retail.v2alpha.Product.description].
+     *
+     * * "has-at-least-bigram-title": Product
+     * [title][google.cloud.retail.v2alpha.Product.title] has at least two
+     * words. A comprehensive title helps to improve search quality.
+     *
+     * * "variant-has-image": the
+     * [variant][google.cloud.retail.v2alpha.Product.Type.VARIANT] products has
+     * at least one [image][google.cloud.retail.v2alpha.Product.images]. You may
+     * ignore this metric if all your products are at
+     * [primary][google.cloud.retail.v2alpha.Product.Type.PRIMARY] level.
+     *
+     * * "variant-has-price-info": the
+     * [variant][google.cloud.retail.v2alpha.Product.Type.VARIANT] products has
+     * [price_info][google.cloud.retail.v2alpha.Product.price_info] set. You may
+     * ignore this metric if all your products are at
+     * [primary][google.cloud.retail.v2alpha.Product.Type.PRIMARY] level.
+     *
+     * * "has-publish-time": product has non-empty
+     * [publish_time][google.cloud.retail.v2alpha.Product.publish_time].
+     * 
+ * + * string requirement_key = 1; + * + * @return The bytes for requirementKey. + */ + com.google.protobuf.ByteString getRequirementKeyBytes(); + + /** + * + * + *
+     * Number of products passing the quality requirement check. We only check
+     * searchable products.
+     * 
+ * + * int32 qualified_product_count = 2; + * + * @return The qualifiedProductCount. + */ + int getQualifiedProductCount(); + + /** + * + * + *
+     * Number of products failing the quality requirement check. We only check
+     * searchable products.
+     * 
+ * + * int32 unqualified_product_count = 3; + * + * @return The unqualifiedProductCount. + */ + int getUnqualifiedProductCount(); + + /** + * + * + *
+     * Value from 0 to 100 representing the suggested percentage of products
+     * that meet the quality requirements to get good search and recommendation
+     * performance. 100 * (qualified_product_count) /
+     * (qualified_product_count + unqualified_product_count) should be greater
+     * or equal to this suggestion.
+     * 
+ * + * double suggested_quality_percent_threshold = 4; + * + * @return The suggestedQualityPercentThreshold. + */ + double getSuggestedQualityPercentThreshold(); + + /** + * + * + *
+     * A list of a maximum of 100 sample products that do not qualify for
+     * this requirement.
+     *
+     * This field is only populated in the response to
+     * [BranchService.GetBranch][google.cloud.retail.v2alpha.BranchService.GetBranch]
+     * API, and is always empty for
+     * [BranchService.ListBranches][google.cloud.retail.v2alpha.BranchService.ListBranches].
+     *
+     * Only the following fields are set in the
+     * [Product][google.cloud.retail.v2alpha.Product].
+     *
+     * * [Product.name][google.cloud.retail.v2alpha.Product.name]
+     * * [Product.id][google.cloud.retail.v2alpha.Product.id]
+     * * [Product.title][google.cloud.retail.v2alpha.Product.title]
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.Product unqualified_sample_products = 5; + */ + java.util.List getUnqualifiedSampleProductsList(); + /** + * + * + *
+     * A list of a maximum of 100 sample products that do not qualify for
+     * this requirement.
+     *
+     * This field is only populated in the response to
+     * [BranchService.GetBranch][google.cloud.retail.v2alpha.BranchService.GetBranch]
+     * API, and is always empty for
+     * [BranchService.ListBranches][google.cloud.retail.v2alpha.BranchService.ListBranches].
+     *
+     * Only the following fields are set in the
+     * [Product][google.cloud.retail.v2alpha.Product].
+     *
+     * * [Product.name][google.cloud.retail.v2alpha.Product.name]
+     * * [Product.id][google.cloud.retail.v2alpha.Product.id]
+     * * [Product.title][google.cloud.retail.v2alpha.Product.title]
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.Product unqualified_sample_products = 5; + */ + com.google.cloud.retail.v2alpha.Product getUnqualifiedSampleProducts(int index); + /** + * + * + *
+     * A list of a maximum of 100 sample products that do not qualify for
+     * this requirement.
+     *
+     * This field is only populated in the response to
+     * [BranchService.GetBranch][google.cloud.retail.v2alpha.BranchService.GetBranch]
+     * API, and is always empty for
+     * [BranchService.ListBranches][google.cloud.retail.v2alpha.BranchService.ListBranches].
+     *
+     * Only the following fields are set in the
+     * [Product][google.cloud.retail.v2alpha.Product].
+     *
+     * * [Product.name][google.cloud.retail.v2alpha.Product.name]
+     * * [Product.id][google.cloud.retail.v2alpha.Product.id]
+     * * [Product.title][google.cloud.retail.v2alpha.Product.title]
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.Product unqualified_sample_products = 5; + */ + int getUnqualifiedSampleProductsCount(); + /** + * + * + *
+     * A list of a maximum of 100 sample products that do not qualify for
+     * this requirement.
+     *
+     * This field is only populated in the response to
+     * [BranchService.GetBranch][google.cloud.retail.v2alpha.BranchService.GetBranch]
+     * API, and is always empty for
+     * [BranchService.ListBranches][google.cloud.retail.v2alpha.BranchService.ListBranches].
+     *
+     * Only the following fields are set in the
+     * [Product][google.cloud.retail.v2alpha.Product].
+     *
+     * * [Product.name][google.cloud.retail.v2alpha.Product.name]
+     * * [Product.id][google.cloud.retail.v2alpha.Product.id]
+     * * [Product.title][google.cloud.retail.v2alpha.Product.title]
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.Product unqualified_sample_products = 5; + */ + java.util.List + getUnqualifiedSampleProductsOrBuilderList(); + /** + * + * + *
+     * A list of a maximum of 100 sample products that do not qualify for
+     * this requirement.
+     *
+     * This field is only populated in the response to
+     * [BranchService.GetBranch][google.cloud.retail.v2alpha.BranchService.GetBranch]
+     * API, and is always empty for
+     * [BranchService.ListBranches][google.cloud.retail.v2alpha.BranchService.ListBranches].
+     *
+     * Only the following fields are set in the
+     * [Product][google.cloud.retail.v2alpha.Product].
+     *
+     * * [Product.name][google.cloud.retail.v2alpha.Product.name]
+     * * [Product.id][google.cloud.retail.v2alpha.Product.id]
+     * * [Product.title][google.cloud.retail.v2alpha.Product.title]
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.Product unqualified_sample_products = 5; + */ + com.google.cloud.retail.v2alpha.ProductOrBuilder getUnqualifiedSampleProductsOrBuilder( + int index); + } + /** + * + * + *
+   * Metric measured on a group of
+   * [Product][google.cloud.retail.v2alpha.Product]s against a certain quality
+   * requirement. Contains the number of products that pass the check and the
+   * number of products that don't.
+   * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.Branch.QualityMetric} + */ + public static final class QualityMetric extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2alpha.Branch.QualityMetric) + QualityMetricOrBuilder { + private static final long serialVersionUID = 0L; + // Use QualityMetric.newBuilder() to construct. + private QualityMetric(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private QualityMetric() { + requirementKey_ = ""; + unqualifiedSampleProducts_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new QualityMetric(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.BranchProto + .internal_static_google_cloud_retail_v2alpha_Branch_QualityMetric_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.BranchProto + .internal_static_google_cloud_retail_v2alpha_Branch_QualityMetric_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.Branch.QualityMetric.class, + com.google.cloud.retail.v2alpha.Branch.QualityMetric.Builder.class); + } + + public static final int REQUIREMENT_KEY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object requirementKey_ = ""; + /** + * + * + *
+     * The key that represents a quality requirement rule.
+     *
+     * Supported keys:
+     * * "has-valid-uri": product has a valid and accessible
+     * [uri][google.cloud.retail.v2alpha.Product.uri].
+     *
+     * * "available-expire-time-conformance":
+     * [Product.available_time][google.cloud.retail.v2alpha.Product.available_time]
+     * is early than "now", and
+     * [Product.expire_time][google.cloud.retail.v2alpha.Product.expire_time] is
+     * greater than "now".
+     *
+     * * "has-searchable-attributes": product has at least one
+     * [attribute][google.cloud.retail.v2alpha.Product.attributes] set to
+     * searchable.
+     *
+     * * "has-description": product has non-empty
+     * [description][google.cloud.retail.v2alpha.Product.description].
+     *
+     * * "has-at-least-bigram-title": Product
+     * [title][google.cloud.retail.v2alpha.Product.title] has at least two
+     * words. A comprehensive title helps to improve search quality.
+     *
+     * * "variant-has-image": the
+     * [variant][google.cloud.retail.v2alpha.Product.Type.VARIANT] products has
+     * at least one [image][google.cloud.retail.v2alpha.Product.images]. You may
+     * ignore this metric if all your products are at
+     * [primary][google.cloud.retail.v2alpha.Product.Type.PRIMARY] level.
+     *
+     * * "variant-has-price-info": the
+     * [variant][google.cloud.retail.v2alpha.Product.Type.VARIANT] products has
+     * [price_info][google.cloud.retail.v2alpha.Product.price_info] set. You may
+     * ignore this metric if all your products are at
+     * [primary][google.cloud.retail.v2alpha.Product.Type.PRIMARY] level.
+     *
+     * * "has-publish-time": product has non-empty
+     * [publish_time][google.cloud.retail.v2alpha.Product.publish_time].
+     * 
+ * + * string requirement_key = 1; + * + * @return The requirementKey. + */ + @java.lang.Override + public java.lang.String getRequirementKey() { + java.lang.Object ref = requirementKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requirementKey_ = s; + return s; + } + } + /** + * + * + *
+     * The key that represents a quality requirement rule.
+     *
+     * Supported keys:
+     * * "has-valid-uri": product has a valid and accessible
+     * [uri][google.cloud.retail.v2alpha.Product.uri].
+     *
+     * * "available-expire-time-conformance":
+     * [Product.available_time][google.cloud.retail.v2alpha.Product.available_time]
+     * is early than "now", and
+     * [Product.expire_time][google.cloud.retail.v2alpha.Product.expire_time] is
+     * greater than "now".
+     *
+     * * "has-searchable-attributes": product has at least one
+     * [attribute][google.cloud.retail.v2alpha.Product.attributes] set to
+     * searchable.
+     *
+     * * "has-description": product has non-empty
+     * [description][google.cloud.retail.v2alpha.Product.description].
+     *
+     * * "has-at-least-bigram-title": Product
+     * [title][google.cloud.retail.v2alpha.Product.title] has at least two
+     * words. A comprehensive title helps to improve search quality.
+     *
+     * * "variant-has-image": the
+     * [variant][google.cloud.retail.v2alpha.Product.Type.VARIANT] products has
+     * at least one [image][google.cloud.retail.v2alpha.Product.images]. You may
+     * ignore this metric if all your products are at
+     * [primary][google.cloud.retail.v2alpha.Product.Type.PRIMARY] level.
+     *
+     * * "variant-has-price-info": the
+     * [variant][google.cloud.retail.v2alpha.Product.Type.VARIANT] products has
+     * [price_info][google.cloud.retail.v2alpha.Product.price_info] set. You may
+     * ignore this metric if all your products are at
+     * [primary][google.cloud.retail.v2alpha.Product.Type.PRIMARY] level.
+     *
+     * * "has-publish-time": product has non-empty
+     * [publish_time][google.cloud.retail.v2alpha.Product.publish_time].
+     * 
+ * + * string requirement_key = 1; + * + * @return The bytes for requirementKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequirementKeyBytes() { + java.lang.Object ref = requirementKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requirementKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUALIFIED_PRODUCT_COUNT_FIELD_NUMBER = 2; + private int qualifiedProductCount_ = 0; + /** + * + * + *
+     * Number of products passing the quality requirement check. We only check
+     * searchable products.
+     * 
+ * + * int32 qualified_product_count = 2; + * + * @return The qualifiedProductCount. + */ + @java.lang.Override + public int getQualifiedProductCount() { + return qualifiedProductCount_; + } + + public static final int UNQUALIFIED_PRODUCT_COUNT_FIELD_NUMBER = 3; + private int unqualifiedProductCount_ = 0; + /** + * + * + *
+     * Number of products failing the quality requirement check. We only check
+     * searchable products.
+     * 
+ * + * int32 unqualified_product_count = 3; + * + * @return The unqualifiedProductCount. + */ + @java.lang.Override + public int getUnqualifiedProductCount() { + return unqualifiedProductCount_; + } + + public static final int SUGGESTED_QUALITY_PERCENT_THRESHOLD_FIELD_NUMBER = 4; + private double suggestedQualityPercentThreshold_ = 0D; + /** + * + * + *
+     * Value from 0 to 100 representing the suggested percentage of products
+     * that meet the quality requirements to get good search and recommendation
+     * performance. 100 * (qualified_product_count) /
+     * (qualified_product_count + unqualified_product_count) should be greater
+     * or equal to this suggestion.
+     * 
+ * + * double suggested_quality_percent_threshold = 4; + * + * @return The suggestedQualityPercentThreshold. + */ + @java.lang.Override + public double getSuggestedQualityPercentThreshold() { + return suggestedQualityPercentThreshold_; + } + + public static final int UNQUALIFIED_SAMPLE_PRODUCTS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List unqualifiedSampleProducts_; + /** + * + * + *
+     * A list of a maximum of 100 sample products that do not qualify for
+     * this requirement.
+     *
+     * This field is only populated in the response to
+     * [BranchService.GetBranch][google.cloud.retail.v2alpha.BranchService.GetBranch]
+     * API, and is always empty for
+     * [BranchService.ListBranches][google.cloud.retail.v2alpha.BranchService.ListBranches].
+     *
+     * Only the following fields are set in the
+     * [Product][google.cloud.retail.v2alpha.Product].
+     *
+     * * [Product.name][google.cloud.retail.v2alpha.Product.name]
+     * * [Product.id][google.cloud.retail.v2alpha.Product.id]
+     * * [Product.title][google.cloud.retail.v2alpha.Product.title]
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.Product unqualified_sample_products = 5; + */ + @java.lang.Override + public java.util.List + getUnqualifiedSampleProductsList() { + return unqualifiedSampleProducts_; + } + /** + * + * + *
+     * A list of a maximum of 100 sample products that do not qualify for
+     * this requirement.
+     *
+     * This field is only populated in the response to
+     * [BranchService.GetBranch][google.cloud.retail.v2alpha.BranchService.GetBranch]
+     * API, and is always empty for
+     * [BranchService.ListBranches][google.cloud.retail.v2alpha.BranchService.ListBranches].
+     *
+     * Only the following fields are set in the
+     * [Product][google.cloud.retail.v2alpha.Product].
+     *
+     * * [Product.name][google.cloud.retail.v2alpha.Product.name]
+     * * [Product.id][google.cloud.retail.v2alpha.Product.id]
+     * * [Product.title][google.cloud.retail.v2alpha.Product.title]
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.Product unqualified_sample_products = 5; + */ + @java.lang.Override + public java.util.List + getUnqualifiedSampleProductsOrBuilderList() { + return unqualifiedSampleProducts_; + } + /** + * + * + *
+     * A list of a maximum of 100 sample products that do not qualify for
+     * this requirement.
+     *
+     * This field is only populated in the response to
+     * [BranchService.GetBranch][google.cloud.retail.v2alpha.BranchService.GetBranch]
+     * API, and is always empty for
+     * [BranchService.ListBranches][google.cloud.retail.v2alpha.BranchService.ListBranches].
+     *
+     * Only the following fields are set in the
+     * [Product][google.cloud.retail.v2alpha.Product].
+     *
+     * * [Product.name][google.cloud.retail.v2alpha.Product.name]
+     * * [Product.id][google.cloud.retail.v2alpha.Product.id]
+     * * [Product.title][google.cloud.retail.v2alpha.Product.title]
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.Product unqualified_sample_products = 5; + */ + @java.lang.Override + public int getUnqualifiedSampleProductsCount() { + return unqualifiedSampleProducts_.size(); + } + /** + * + * + *
+     * A list of a maximum of 100 sample products that do not qualify for
+     * this requirement.
+     *
+     * This field is only populated in the response to
+     * [BranchService.GetBranch][google.cloud.retail.v2alpha.BranchService.GetBranch]
+     * API, and is always empty for
+     * [BranchService.ListBranches][google.cloud.retail.v2alpha.BranchService.ListBranches].
+     *
+     * Only the following fields are set in the
+     * [Product][google.cloud.retail.v2alpha.Product].
+     *
+     * * [Product.name][google.cloud.retail.v2alpha.Product.name]
+     * * [Product.id][google.cloud.retail.v2alpha.Product.id]
+     * * [Product.title][google.cloud.retail.v2alpha.Product.title]
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.Product unqualified_sample_products = 5; + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.Product getUnqualifiedSampleProducts(int index) { + return unqualifiedSampleProducts_.get(index); + } + /** + * + * + *
+     * A list of a maximum of 100 sample products that do not qualify for
+     * this requirement.
+     *
+     * This field is only populated in the response to
+     * [BranchService.GetBranch][google.cloud.retail.v2alpha.BranchService.GetBranch]
+     * API, and is always empty for
+     * [BranchService.ListBranches][google.cloud.retail.v2alpha.BranchService.ListBranches].
+     *
+     * Only the following fields are set in the
+     * [Product][google.cloud.retail.v2alpha.Product].
+     *
+     * * [Product.name][google.cloud.retail.v2alpha.Product.name]
+     * * [Product.id][google.cloud.retail.v2alpha.Product.id]
+     * * [Product.title][google.cloud.retail.v2alpha.Product.title]
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.Product unqualified_sample_products = 5; + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.ProductOrBuilder getUnqualifiedSampleProductsOrBuilder( + int index) { + return unqualifiedSampleProducts_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requirementKey_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, requirementKey_); + } + if (qualifiedProductCount_ != 0) { + output.writeInt32(2, qualifiedProductCount_); + } + if (unqualifiedProductCount_ != 0) { + output.writeInt32(3, unqualifiedProductCount_); + } + if (java.lang.Double.doubleToRawLongBits(suggestedQualityPercentThreshold_) != 0) { + output.writeDouble(4, suggestedQualityPercentThreshold_); + } + for (int i = 0; i < unqualifiedSampleProducts_.size(); i++) { + output.writeMessage(5, unqualifiedSampleProducts_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requirementKey_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, requirementKey_); + } + if (qualifiedProductCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, qualifiedProductCount_); + } + if (unqualifiedProductCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, unqualifiedProductCount_); + } + if (java.lang.Double.doubleToRawLongBits(suggestedQualityPercentThreshold_) != 0) { + size += + com.google.protobuf.CodedOutputStream.computeDoubleSize( + 4, suggestedQualityPercentThreshold_); + } + for (int i = 0; i < unqualifiedSampleProducts_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, unqualifiedSampleProducts_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.retail.v2alpha.Branch.QualityMetric)) { + return super.equals(obj); + } + com.google.cloud.retail.v2alpha.Branch.QualityMetric other = + (com.google.cloud.retail.v2alpha.Branch.QualityMetric) obj; + + if (!getRequirementKey().equals(other.getRequirementKey())) return false; + if (getQualifiedProductCount() != other.getQualifiedProductCount()) return false; + if (getUnqualifiedProductCount() != other.getUnqualifiedProductCount()) return false; + if (java.lang.Double.doubleToLongBits(getSuggestedQualityPercentThreshold()) + != java.lang.Double.doubleToLongBits(other.getSuggestedQualityPercentThreshold())) + return false; + if (!getUnqualifiedSampleProductsList().equals(other.getUnqualifiedSampleProductsList())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REQUIREMENT_KEY_FIELD_NUMBER; + hash = (53 * hash) + getRequirementKey().hashCode(); + hash = (37 * hash) + QUALIFIED_PRODUCT_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getQualifiedProductCount(); + hash = (37 * hash) + UNQUALIFIED_PRODUCT_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getUnqualifiedProductCount(); + hash = (37 * hash) + SUGGESTED_QUALITY_PERCENT_THRESHOLD_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getSuggestedQualityPercentThreshold())); + if (getUnqualifiedSampleProductsCount() > 0) { + hash = (37 * hash) + UNQUALIFIED_SAMPLE_PRODUCTS_FIELD_NUMBER; + hash = (53 * hash) + getUnqualifiedSampleProductsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2alpha.Branch.QualityMetric parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.Branch.QualityMetric parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.Branch.QualityMetric parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.Branch.QualityMetric parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.Branch.QualityMetric parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.Branch.QualityMetric parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.Branch.QualityMetric parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.Branch.QualityMetric parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.Branch.QualityMetric parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.Branch.QualityMetric parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.Branch.QualityMetric parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.Branch.QualityMetric parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.retail.v2alpha.Branch.QualityMetric prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Metric measured on a group of
+     * [Product][google.cloud.retail.v2alpha.Product]s against a certain quality
+     * requirement. Contains the number of products that pass the check and the
+     * number of products that don't.
+     * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.Branch.QualityMetric} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2alpha.Branch.QualityMetric) + com.google.cloud.retail.v2alpha.Branch.QualityMetricOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.BranchProto + .internal_static_google_cloud_retail_v2alpha_Branch_QualityMetric_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.BranchProto + .internal_static_google_cloud_retail_v2alpha_Branch_QualityMetric_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.Branch.QualityMetric.class, + com.google.cloud.retail.v2alpha.Branch.QualityMetric.Builder.class); + } + + // Construct using com.google.cloud.retail.v2alpha.Branch.QualityMetric.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + requirementKey_ = ""; + qualifiedProductCount_ = 0; + unqualifiedProductCount_ = 0; + suggestedQualityPercentThreshold_ = 0D; + if (unqualifiedSampleProductsBuilder_ == null) { + unqualifiedSampleProducts_ = java.util.Collections.emptyList(); + } else { + unqualifiedSampleProducts_ = null; + unqualifiedSampleProductsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2alpha.BranchProto + .internal_static_google_cloud_retail_v2alpha_Branch_QualityMetric_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.Branch.QualityMetric getDefaultInstanceForType() { + return com.google.cloud.retail.v2alpha.Branch.QualityMetric.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.Branch.QualityMetric build() { + com.google.cloud.retail.v2alpha.Branch.QualityMetric result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.Branch.QualityMetric buildPartial() { + com.google.cloud.retail.v2alpha.Branch.QualityMetric result = + new com.google.cloud.retail.v2alpha.Branch.QualityMetric(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.retail.v2alpha.Branch.QualityMetric result) { + if (unqualifiedSampleProductsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + unqualifiedSampleProducts_ = + java.util.Collections.unmodifiableList(unqualifiedSampleProducts_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.unqualifiedSampleProducts_ = unqualifiedSampleProducts_; + } else { + result.unqualifiedSampleProducts_ = unqualifiedSampleProductsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.retail.v2alpha.Branch.QualityMetric result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.requirementKey_ = requirementKey_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.qualifiedProductCount_ = qualifiedProductCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.unqualifiedProductCount_ = unqualifiedProductCount_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.suggestedQualityPercentThreshold_ = suggestedQualityPercentThreshold_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.retail.v2alpha.Branch.QualityMetric) { + return mergeFrom((com.google.cloud.retail.v2alpha.Branch.QualityMetric) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.retail.v2alpha.Branch.QualityMetric other) { + if (other == com.google.cloud.retail.v2alpha.Branch.QualityMetric.getDefaultInstance()) + return this; + if (!other.getRequirementKey().isEmpty()) { + requirementKey_ = other.requirementKey_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getQualifiedProductCount() != 0) { + setQualifiedProductCount(other.getQualifiedProductCount()); + } + if (other.getUnqualifiedProductCount() != 0) { + setUnqualifiedProductCount(other.getUnqualifiedProductCount()); + } + if (other.getSuggestedQualityPercentThreshold() != 0D) { + setSuggestedQualityPercentThreshold(other.getSuggestedQualityPercentThreshold()); + } + if (unqualifiedSampleProductsBuilder_ == null) { + if (!other.unqualifiedSampleProducts_.isEmpty()) { + if (unqualifiedSampleProducts_.isEmpty()) { + unqualifiedSampleProducts_ = other.unqualifiedSampleProducts_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureUnqualifiedSampleProductsIsMutable(); + unqualifiedSampleProducts_.addAll(other.unqualifiedSampleProducts_); + } + onChanged(); + } + } else { + if (!other.unqualifiedSampleProducts_.isEmpty()) { + if (unqualifiedSampleProductsBuilder_.isEmpty()) { + unqualifiedSampleProductsBuilder_.dispose(); + unqualifiedSampleProductsBuilder_ = null; + unqualifiedSampleProducts_ = other.unqualifiedSampleProducts_; + bitField0_ = (bitField0_ & ~0x00000010); + unqualifiedSampleProductsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getUnqualifiedSampleProductsFieldBuilder() + : null; + } else { + unqualifiedSampleProductsBuilder_.addAllMessages(other.unqualifiedSampleProducts_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + requirementKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + qualifiedProductCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + unqualifiedProductCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 33: + { + suggestedQualityPercentThreshold_ = input.readDouble(); + bitField0_ |= 0x00000008; + break; + } // case 33 + case 42: + { + com.google.cloud.retail.v2alpha.Product m = + input.readMessage( + com.google.cloud.retail.v2alpha.Product.parser(), extensionRegistry); + if (unqualifiedSampleProductsBuilder_ == null) { + ensureUnqualifiedSampleProductsIsMutable(); + unqualifiedSampleProducts_.add(m); + } else { + unqualifiedSampleProductsBuilder_.addMessage(m); + } + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object requirementKey_ = ""; + /** + * + * + *
+       * The key that represents a quality requirement rule.
+       *
+       * Supported keys:
+       * * "has-valid-uri": product has a valid and accessible
+       * [uri][google.cloud.retail.v2alpha.Product.uri].
+       *
+       * * "available-expire-time-conformance":
+       * [Product.available_time][google.cloud.retail.v2alpha.Product.available_time]
+       * is early than "now", and
+       * [Product.expire_time][google.cloud.retail.v2alpha.Product.expire_time] is
+       * greater than "now".
+       *
+       * * "has-searchable-attributes": product has at least one
+       * [attribute][google.cloud.retail.v2alpha.Product.attributes] set to
+       * searchable.
+       *
+       * * "has-description": product has non-empty
+       * [description][google.cloud.retail.v2alpha.Product.description].
+       *
+       * * "has-at-least-bigram-title": Product
+       * [title][google.cloud.retail.v2alpha.Product.title] has at least two
+       * words. A comprehensive title helps to improve search quality.
+       *
+       * * "variant-has-image": the
+       * [variant][google.cloud.retail.v2alpha.Product.Type.VARIANT] products has
+       * at least one [image][google.cloud.retail.v2alpha.Product.images]. You may
+       * ignore this metric if all your products are at
+       * [primary][google.cloud.retail.v2alpha.Product.Type.PRIMARY] level.
+       *
+       * * "variant-has-price-info": the
+       * [variant][google.cloud.retail.v2alpha.Product.Type.VARIANT] products has
+       * [price_info][google.cloud.retail.v2alpha.Product.price_info] set. You may
+       * ignore this metric if all your products are at
+       * [primary][google.cloud.retail.v2alpha.Product.Type.PRIMARY] level.
+       *
+       * * "has-publish-time": product has non-empty
+       * [publish_time][google.cloud.retail.v2alpha.Product.publish_time].
+       * 
+ * + * string requirement_key = 1; + * + * @return The requirementKey. + */ + public java.lang.String getRequirementKey() { + java.lang.Object ref = requirementKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requirementKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The key that represents a quality requirement rule.
+       *
+       * Supported keys:
+       * * "has-valid-uri": product has a valid and accessible
+       * [uri][google.cloud.retail.v2alpha.Product.uri].
+       *
+       * * "available-expire-time-conformance":
+       * [Product.available_time][google.cloud.retail.v2alpha.Product.available_time]
+       * is early than "now", and
+       * [Product.expire_time][google.cloud.retail.v2alpha.Product.expire_time] is
+       * greater than "now".
+       *
+       * * "has-searchable-attributes": product has at least one
+       * [attribute][google.cloud.retail.v2alpha.Product.attributes] set to
+       * searchable.
+       *
+       * * "has-description": product has non-empty
+       * [description][google.cloud.retail.v2alpha.Product.description].
+       *
+       * * "has-at-least-bigram-title": Product
+       * [title][google.cloud.retail.v2alpha.Product.title] has at least two
+       * words. A comprehensive title helps to improve search quality.
+       *
+       * * "variant-has-image": the
+       * [variant][google.cloud.retail.v2alpha.Product.Type.VARIANT] products has
+       * at least one [image][google.cloud.retail.v2alpha.Product.images]. You may
+       * ignore this metric if all your products are at
+       * [primary][google.cloud.retail.v2alpha.Product.Type.PRIMARY] level.
+       *
+       * * "variant-has-price-info": the
+       * [variant][google.cloud.retail.v2alpha.Product.Type.VARIANT] products has
+       * [price_info][google.cloud.retail.v2alpha.Product.price_info] set. You may
+       * ignore this metric if all your products are at
+       * [primary][google.cloud.retail.v2alpha.Product.Type.PRIMARY] level.
+       *
+       * * "has-publish-time": product has non-empty
+       * [publish_time][google.cloud.retail.v2alpha.Product.publish_time].
+       * 
+ * + * string requirement_key = 1; + * + * @return The bytes for requirementKey. + */ + public com.google.protobuf.ByteString getRequirementKeyBytes() { + java.lang.Object ref = requirementKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requirementKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The key that represents a quality requirement rule.
+       *
+       * Supported keys:
+       * * "has-valid-uri": product has a valid and accessible
+       * [uri][google.cloud.retail.v2alpha.Product.uri].
+       *
+       * * "available-expire-time-conformance":
+       * [Product.available_time][google.cloud.retail.v2alpha.Product.available_time]
+       * is early than "now", and
+       * [Product.expire_time][google.cloud.retail.v2alpha.Product.expire_time] is
+       * greater than "now".
+       *
+       * * "has-searchable-attributes": product has at least one
+       * [attribute][google.cloud.retail.v2alpha.Product.attributes] set to
+       * searchable.
+       *
+       * * "has-description": product has non-empty
+       * [description][google.cloud.retail.v2alpha.Product.description].
+       *
+       * * "has-at-least-bigram-title": Product
+       * [title][google.cloud.retail.v2alpha.Product.title] has at least two
+       * words. A comprehensive title helps to improve search quality.
+       *
+       * * "variant-has-image": the
+       * [variant][google.cloud.retail.v2alpha.Product.Type.VARIANT] products has
+       * at least one [image][google.cloud.retail.v2alpha.Product.images]. You may
+       * ignore this metric if all your products are at
+       * [primary][google.cloud.retail.v2alpha.Product.Type.PRIMARY] level.
+       *
+       * * "variant-has-price-info": the
+       * [variant][google.cloud.retail.v2alpha.Product.Type.VARIANT] products has
+       * [price_info][google.cloud.retail.v2alpha.Product.price_info] set. You may
+       * ignore this metric if all your products are at
+       * [primary][google.cloud.retail.v2alpha.Product.Type.PRIMARY] level.
+       *
+       * * "has-publish-time": product has non-empty
+       * [publish_time][google.cloud.retail.v2alpha.Product.publish_time].
+       * 
+ * + * string requirement_key = 1; + * + * @param value The requirementKey to set. + * @return This builder for chaining. + */ + public Builder setRequirementKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requirementKey_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * The key that represents a quality requirement rule.
+       *
+       * Supported keys:
+       * * "has-valid-uri": product has a valid and accessible
+       * [uri][google.cloud.retail.v2alpha.Product.uri].
+       *
+       * * "available-expire-time-conformance":
+       * [Product.available_time][google.cloud.retail.v2alpha.Product.available_time]
+       * is early than "now", and
+       * [Product.expire_time][google.cloud.retail.v2alpha.Product.expire_time] is
+       * greater than "now".
+       *
+       * * "has-searchable-attributes": product has at least one
+       * [attribute][google.cloud.retail.v2alpha.Product.attributes] set to
+       * searchable.
+       *
+       * * "has-description": product has non-empty
+       * [description][google.cloud.retail.v2alpha.Product.description].
+       *
+       * * "has-at-least-bigram-title": Product
+       * [title][google.cloud.retail.v2alpha.Product.title] has at least two
+       * words. A comprehensive title helps to improve search quality.
+       *
+       * * "variant-has-image": the
+       * [variant][google.cloud.retail.v2alpha.Product.Type.VARIANT] products has
+       * at least one [image][google.cloud.retail.v2alpha.Product.images]. You may
+       * ignore this metric if all your products are at
+       * [primary][google.cloud.retail.v2alpha.Product.Type.PRIMARY] level.
+       *
+       * * "variant-has-price-info": the
+       * [variant][google.cloud.retail.v2alpha.Product.Type.VARIANT] products has
+       * [price_info][google.cloud.retail.v2alpha.Product.price_info] set. You may
+       * ignore this metric if all your products are at
+       * [primary][google.cloud.retail.v2alpha.Product.Type.PRIMARY] level.
+       *
+       * * "has-publish-time": product has non-empty
+       * [publish_time][google.cloud.retail.v2alpha.Product.publish_time].
+       * 
+ * + * string requirement_key = 1; + * + * @return This builder for chaining. + */ + public Builder clearRequirementKey() { + requirementKey_ = getDefaultInstance().getRequirementKey(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * The key that represents a quality requirement rule.
+       *
+       * Supported keys:
+       * * "has-valid-uri": product has a valid and accessible
+       * [uri][google.cloud.retail.v2alpha.Product.uri].
+       *
+       * * "available-expire-time-conformance":
+       * [Product.available_time][google.cloud.retail.v2alpha.Product.available_time]
+       * is early than "now", and
+       * [Product.expire_time][google.cloud.retail.v2alpha.Product.expire_time] is
+       * greater than "now".
+       *
+       * * "has-searchable-attributes": product has at least one
+       * [attribute][google.cloud.retail.v2alpha.Product.attributes] set to
+       * searchable.
+       *
+       * * "has-description": product has non-empty
+       * [description][google.cloud.retail.v2alpha.Product.description].
+       *
+       * * "has-at-least-bigram-title": Product
+       * [title][google.cloud.retail.v2alpha.Product.title] has at least two
+       * words. A comprehensive title helps to improve search quality.
+       *
+       * * "variant-has-image": the
+       * [variant][google.cloud.retail.v2alpha.Product.Type.VARIANT] products has
+       * at least one [image][google.cloud.retail.v2alpha.Product.images]. You may
+       * ignore this metric if all your products are at
+       * [primary][google.cloud.retail.v2alpha.Product.Type.PRIMARY] level.
+       *
+       * * "variant-has-price-info": the
+       * [variant][google.cloud.retail.v2alpha.Product.Type.VARIANT] products has
+       * [price_info][google.cloud.retail.v2alpha.Product.price_info] set. You may
+       * ignore this metric if all your products are at
+       * [primary][google.cloud.retail.v2alpha.Product.Type.PRIMARY] level.
+       *
+       * * "has-publish-time": product has non-empty
+       * [publish_time][google.cloud.retail.v2alpha.Product.publish_time].
+       * 
+ * + * string requirement_key = 1; + * + * @param value The bytes for requirementKey to set. + * @return This builder for chaining. + */ + public Builder setRequirementKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requirementKey_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int qualifiedProductCount_; + /** + * + * + *
+       * Number of products passing the quality requirement check. We only check
+       * searchable products.
+       * 
+ * + * int32 qualified_product_count = 2; + * + * @return The qualifiedProductCount. + */ + @java.lang.Override + public int getQualifiedProductCount() { + return qualifiedProductCount_; + } + /** + * + * + *
+       * Number of products passing the quality requirement check. We only check
+       * searchable products.
+       * 
+ * + * int32 qualified_product_count = 2; + * + * @param value The qualifiedProductCount to set. + * @return This builder for chaining. + */ + public Builder setQualifiedProductCount(int value) { + + qualifiedProductCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Number of products passing the quality requirement check. We only check
+       * searchable products.
+       * 
+ * + * int32 qualified_product_count = 2; + * + * @return This builder for chaining. + */ + public Builder clearQualifiedProductCount() { + bitField0_ = (bitField0_ & ~0x00000002); + qualifiedProductCount_ = 0; + onChanged(); + return this; + } + + private int unqualifiedProductCount_; + /** + * + * + *
+       * Number of products failing the quality requirement check. We only check
+       * searchable products.
+       * 
+ * + * int32 unqualified_product_count = 3; + * + * @return The unqualifiedProductCount. + */ + @java.lang.Override + public int getUnqualifiedProductCount() { + return unqualifiedProductCount_; + } + /** + * + * + *
+       * Number of products failing the quality requirement check. We only check
+       * searchable products.
+       * 
+ * + * int32 unqualified_product_count = 3; + * + * @param value The unqualifiedProductCount to set. + * @return This builder for chaining. + */ + public Builder setUnqualifiedProductCount(int value) { + + unqualifiedProductCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * Number of products failing the quality requirement check. We only check
+       * searchable products.
+       * 
+ * + * int32 unqualified_product_count = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnqualifiedProductCount() { + bitField0_ = (bitField0_ & ~0x00000004); + unqualifiedProductCount_ = 0; + onChanged(); + return this; + } + + private double suggestedQualityPercentThreshold_; + /** + * + * + *
+       * Value from 0 to 100 representing the suggested percentage of products
+       * that meet the quality requirements to get good search and recommendation
+       * performance. 100 * (qualified_product_count) /
+       * (qualified_product_count + unqualified_product_count) should be greater
+       * or equal to this suggestion.
+       * 
+ * + * double suggested_quality_percent_threshold = 4; + * + * @return The suggestedQualityPercentThreshold. + */ + @java.lang.Override + public double getSuggestedQualityPercentThreshold() { + return suggestedQualityPercentThreshold_; + } + /** + * + * + *
+       * Value from 0 to 100 representing the suggested percentage of products
+       * that meet the quality requirements to get good search and recommendation
+       * performance. 100 * (qualified_product_count) /
+       * (qualified_product_count + unqualified_product_count) should be greater
+       * or equal to this suggestion.
+       * 
+ * + * double suggested_quality_percent_threshold = 4; + * + * @param value The suggestedQualityPercentThreshold to set. + * @return This builder for chaining. + */ + public Builder setSuggestedQualityPercentThreshold(double value) { + + suggestedQualityPercentThreshold_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+       * Value from 0 to 100 representing the suggested percentage of products
+       * that meet the quality requirements to get good search and recommendation
+       * performance. 100 * (qualified_product_count) /
+       * (qualified_product_count + unqualified_product_count) should be greater
+       * or equal to this suggestion.
+       * 
+ * + * double suggested_quality_percent_threshold = 4; + * + * @return This builder for chaining. + */ + public Builder clearSuggestedQualityPercentThreshold() { + bitField0_ = (bitField0_ & ~0x00000008); + suggestedQualityPercentThreshold_ = 0D; + onChanged(); + return this; + } + + private java.util.List unqualifiedSampleProducts_ = + java.util.Collections.emptyList(); + + private void ensureUnqualifiedSampleProductsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + unqualifiedSampleProducts_ = + new java.util.ArrayList( + unqualifiedSampleProducts_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2alpha.Product, + com.google.cloud.retail.v2alpha.Product.Builder, + com.google.cloud.retail.v2alpha.ProductOrBuilder> + unqualifiedSampleProductsBuilder_; + + /** + * + * + *
+       * A list of a maximum of 100 sample products that do not qualify for
+       * this requirement.
+       *
+       * This field is only populated in the response to
+       * [BranchService.GetBranch][google.cloud.retail.v2alpha.BranchService.GetBranch]
+       * API, and is always empty for
+       * [BranchService.ListBranches][google.cloud.retail.v2alpha.BranchService.ListBranches].
+       *
+       * Only the following fields are set in the
+       * [Product][google.cloud.retail.v2alpha.Product].
+       *
+       * * [Product.name][google.cloud.retail.v2alpha.Product.name]
+       * * [Product.id][google.cloud.retail.v2alpha.Product.id]
+       * * [Product.title][google.cloud.retail.v2alpha.Product.title]
+       * 
+ * + * repeated .google.cloud.retail.v2alpha.Product unqualified_sample_products = 5; + */ + public java.util.List + getUnqualifiedSampleProductsList() { + if (unqualifiedSampleProductsBuilder_ == null) { + return java.util.Collections.unmodifiableList(unqualifiedSampleProducts_); + } else { + return unqualifiedSampleProductsBuilder_.getMessageList(); + } + } + /** + * + * + *
+       * A list of a maximum of 100 sample products that do not qualify for
+       * this requirement.
+       *
+       * This field is only populated in the response to
+       * [BranchService.GetBranch][google.cloud.retail.v2alpha.BranchService.GetBranch]
+       * API, and is always empty for
+       * [BranchService.ListBranches][google.cloud.retail.v2alpha.BranchService.ListBranches].
+       *
+       * Only the following fields are set in the
+       * [Product][google.cloud.retail.v2alpha.Product].
+       *
+       * * [Product.name][google.cloud.retail.v2alpha.Product.name]
+       * * [Product.id][google.cloud.retail.v2alpha.Product.id]
+       * * [Product.title][google.cloud.retail.v2alpha.Product.title]
+       * 
+ * + * repeated .google.cloud.retail.v2alpha.Product unqualified_sample_products = 5; + */ + public int getUnqualifiedSampleProductsCount() { + if (unqualifiedSampleProductsBuilder_ == null) { + return unqualifiedSampleProducts_.size(); + } else { + return unqualifiedSampleProductsBuilder_.getCount(); + } + } + /** + * + * + *
+       * A list of a maximum of 100 sample products that do not qualify for
+       * this requirement.
+       *
+       * This field is only populated in the response to
+       * [BranchService.GetBranch][google.cloud.retail.v2alpha.BranchService.GetBranch]
+       * API, and is always empty for
+       * [BranchService.ListBranches][google.cloud.retail.v2alpha.BranchService.ListBranches].
+       *
+       * Only the following fields are set in the
+       * [Product][google.cloud.retail.v2alpha.Product].
+       *
+       * * [Product.name][google.cloud.retail.v2alpha.Product.name]
+       * * [Product.id][google.cloud.retail.v2alpha.Product.id]
+       * * [Product.title][google.cloud.retail.v2alpha.Product.title]
+       * 
+ * + * repeated .google.cloud.retail.v2alpha.Product unqualified_sample_products = 5; + */ + public com.google.cloud.retail.v2alpha.Product getUnqualifiedSampleProducts(int index) { + if (unqualifiedSampleProductsBuilder_ == null) { + return unqualifiedSampleProducts_.get(index); + } else { + return unqualifiedSampleProductsBuilder_.getMessage(index); + } + } + /** + * + * + *
+       * A list of a maximum of 100 sample products that do not qualify for
+       * this requirement.
+       *
+       * This field is only populated in the response to
+       * [BranchService.GetBranch][google.cloud.retail.v2alpha.BranchService.GetBranch]
+       * API, and is always empty for
+       * [BranchService.ListBranches][google.cloud.retail.v2alpha.BranchService.ListBranches].
+       *
+       * Only the following fields are set in the
+       * [Product][google.cloud.retail.v2alpha.Product].
+       *
+       * * [Product.name][google.cloud.retail.v2alpha.Product.name]
+       * * [Product.id][google.cloud.retail.v2alpha.Product.id]
+       * * [Product.title][google.cloud.retail.v2alpha.Product.title]
+       * 
+ * + * repeated .google.cloud.retail.v2alpha.Product unqualified_sample_products = 5; + */ + public Builder setUnqualifiedSampleProducts( + int index, com.google.cloud.retail.v2alpha.Product value) { + if (unqualifiedSampleProductsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnqualifiedSampleProductsIsMutable(); + unqualifiedSampleProducts_.set(index, value); + onChanged(); + } else { + unqualifiedSampleProductsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+       * A list of a maximum of 100 sample products that do not qualify for
+       * this requirement.
+       *
+       * This field is only populated in the response to
+       * [BranchService.GetBranch][google.cloud.retail.v2alpha.BranchService.GetBranch]
+       * API, and is always empty for
+       * [BranchService.ListBranches][google.cloud.retail.v2alpha.BranchService.ListBranches].
+       *
+       * Only the following fields are set in the
+       * [Product][google.cloud.retail.v2alpha.Product].
+       *
+       * * [Product.name][google.cloud.retail.v2alpha.Product.name]
+       * * [Product.id][google.cloud.retail.v2alpha.Product.id]
+       * * [Product.title][google.cloud.retail.v2alpha.Product.title]
+       * 
+ * + * repeated .google.cloud.retail.v2alpha.Product unqualified_sample_products = 5; + */ + public Builder setUnqualifiedSampleProducts( + int index, com.google.cloud.retail.v2alpha.Product.Builder builderForValue) { + if (unqualifiedSampleProductsBuilder_ == null) { + ensureUnqualifiedSampleProductsIsMutable(); + unqualifiedSampleProducts_.set(index, builderForValue.build()); + onChanged(); + } else { + unqualifiedSampleProductsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * A list of a maximum of 100 sample products that do not qualify for
+       * this requirement.
+       *
+       * This field is only populated in the response to
+       * [BranchService.GetBranch][google.cloud.retail.v2alpha.BranchService.GetBranch]
+       * API, and is always empty for
+       * [BranchService.ListBranches][google.cloud.retail.v2alpha.BranchService.ListBranches].
+       *
+       * Only the following fields are set in the
+       * [Product][google.cloud.retail.v2alpha.Product].
+       *
+       * * [Product.name][google.cloud.retail.v2alpha.Product.name]
+       * * [Product.id][google.cloud.retail.v2alpha.Product.id]
+       * * [Product.title][google.cloud.retail.v2alpha.Product.title]
+       * 
+ * + * repeated .google.cloud.retail.v2alpha.Product unqualified_sample_products = 5; + */ + public Builder addUnqualifiedSampleProducts(com.google.cloud.retail.v2alpha.Product value) { + if (unqualifiedSampleProductsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnqualifiedSampleProductsIsMutable(); + unqualifiedSampleProducts_.add(value); + onChanged(); + } else { + unqualifiedSampleProductsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+       * A list of a maximum of 100 sample products that do not qualify for
+       * this requirement.
+       *
+       * This field is only populated in the response to
+       * [BranchService.GetBranch][google.cloud.retail.v2alpha.BranchService.GetBranch]
+       * API, and is always empty for
+       * [BranchService.ListBranches][google.cloud.retail.v2alpha.BranchService.ListBranches].
+       *
+       * Only the following fields are set in the
+       * [Product][google.cloud.retail.v2alpha.Product].
+       *
+       * * [Product.name][google.cloud.retail.v2alpha.Product.name]
+       * * [Product.id][google.cloud.retail.v2alpha.Product.id]
+       * * [Product.title][google.cloud.retail.v2alpha.Product.title]
+       * 
+ * + * repeated .google.cloud.retail.v2alpha.Product unqualified_sample_products = 5; + */ + public Builder addUnqualifiedSampleProducts( + int index, com.google.cloud.retail.v2alpha.Product value) { + if (unqualifiedSampleProductsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnqualifiedSampleProductsIsMutable(); + unqualifiedSampleProducts_.add(index, value); + onChanged(); + } else { + unqualifiedSampleProductsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+       * A list of a maximum of 100 sample products that do not qualify for
+       * this requirement.
+       *
+       * This field is only populated in the response to
+       * [BranchService.GetBranch][google.cloud.retail.v2alpha.BranchService.GetBranch]
+       * API, and is always empty for
+       * [BranchService.ListBranches][google.cloud.retail.v2alpha.BranchService.ListBranches].
+       *
+       * Only the following fields are set in the
+       * [Product][google.cloud.retail.v2alpha.Product].
+       *
+       * * [Product.name][google.cloud.retail.v2alpha.Product.name]
+       * * [Product.id][google.cloud.retail.v2alpha.Product.id]
+       * * [Product.title][google.cloud.retail.v2alpha.Product.title]
+       * 
+ * + * repeated .google.cloud.retail.v2alpha.Product unqualified_sample_products = 5; + */ + public Builder addUnqualifiedSampleProducts( + com.google.cloud.retail.v2alpha.Product.Builder builderForValue) { + if (unqualifiedSampleProductsBuilder_ == null) { + ensureUnqualifiedSampleProductsIsMutable(); + unqualifiedSampleProducts_.add(builderForValue.build()); + onChanged(); + } else { + unqualifiedSampleProductsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * A list of a maximum of 100 sample products that do not qualify for
+       * this requirement.
+       *
+       * This field is only populated in the response to
+       * [BranchService.GetBranch][google.cloud.retail.v2alpha.BranchService.GetBranch]
+       * API, and is always empty for
+       * [BranchService.ListBranches][google.cloud.retail.v2alpha.BranchService.ListBranches].
+       *
+       * Only the following fields are set in the
+       * [Product][google.cloud.retail.v2alpha.Product].
+       *
+       * * [Product.name][google.cloud.retail.v2alpha.Product.name]
+       * * [Product.id][google.cloud.retail.v2alpha.Product.id]
+       * * [Product.title][google.cloud.retail.v2alpha.Product.title]
+       * 
+ * + * repeated .google.cloud.retail.v2alpha.Product unqualified_sample_products = 5; + */ + public Builder addUnqualifiedSampleProducts( + int index, com.google.cloud.retail.v2alpha.Product.Builder builderForValue) { + if (unqualifiedSampleProductsBuilder_ == null) { + ensureUnqualifiedSampleProductsIsMutable(); + unqualifiedSampleProducts_.add(index, builderForValue.build()); + onChanged(); + } else { + unqualifiedSampleProductsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * A list of a maximum of 100 sample products that do not qualify for
+       * this requirement.
+       *
+       * This field is only populated in the response to
+       * [BranchService.GetBranch][google.cloud.retail.v2alpha.BranchService.GetBranch]
+       * API, and is always empty for
+       * [BranchService.ListBranches][google.cloud.retail.v2alpha.BranchService.ListBranches].
+       *
+       * Only the following fields are set in the
+       * [Product][google.cloud.retail.v2alpha.Product].
+       *
+       * * [Product.name][google.cloud.retail.v2alpha.Product.name]
+       * * [Product.id][google.cloud.retail.v2alpha.Product.id]
+       * * [Product.title][google.cloud.retail.v2alpha.Product.title]
+       * 
+ * + * repeated .google.cloud.retail.v2alpha.Product unqualified_sample_products = 5; + */ + public Builder addAllUnqualifiedSampleProducts( + java.lang.Iterable values) { + if (unqualifiedSampleProductsBuilder_ == null) { + ensureUnqualifiedSampleProductsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unqualifiedSampleProducts_); + onChanged(); + } else { + unqualifiedSampleProductsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+       * A list of a maximum of 100 sample products that do not qualify for
+       * this requirement.
+       *
+       * This field is only populated in the response to
+       * [BranchService.GetBranch][google.cloud.retail.v2alpha.BranchService.GetBranch]
+       * API, and is always empty for
+       * [BranchService.ListBranches][google.cloud.retail.v2alpha.BranchService.ListBranches].
+       *
+       * Only the following fields are set in the
+       * [Product][google.cloud.retail.v2alpha.Product].
+       *
+       * * [Product.name][google.cloud.retail.v2alpha.Product.name]
+       * * [Product.id][google.cloud.retail.v2alpha.Product.id]
+       * * [Product.title][google.cloud.retail.v2alpha.Product.title]
+       * 
+ * + * repeated .google.cloud.retail.v2alpha.Product unqualified_sample_products = 5; + */ + public Builder clearUnqualifiedSampleProducts() { + if (unqualifiedSampleProductsBuilder_ == null) { + unqualifiedSampleProducts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + unqualifiedSampleProductsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A list of a maximum of 100 sample products that do not qualify for
+       * this requirement.
+       *
+       * This field is only populated in the response to
+       * [BranchService.GetBranch][google.cloud.retail.v2alpha.BranchService.GetBranch]
+       * API, and is always empty for
+       * [BranchService.ListBranches][google.cloud.retail.v2alpha.BranchService.ListBranches].
+       *
+       * Only the following fields are set in the
+       * [Product][google.cloud.retail.v2alpha.Product].
+       *
+       * * [Product.name][google.cloud.retail.v2alpha.Product.name]
+       * * [Product.id][google.cloud.retail.v2alpha.Product.id]
+       * * [Product.title][google.cloud.retail.v2alpha.Product.title]
+       * 
+ * + * repeated .google.cloud.retail.v2alpha.Product unqualified_sample_products = 5; + */ + public Builder removeUnqualifiedSampleProducts(int index) { + if (unqualifiedSampleProductsBuilder_ == null) { + ensureUnqualifiedSampleProductsIsMutable(); + unqualifiedSampleProducts_.remove(index); + onChanged(); + } else { + unqualifiedSampleProductsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+       * A list of a maximum of 100 sample products that do not qualify for
+       * this requirement.
+       *
+       * This field is only populated in the response to
+       * [BranchService.GetBranch][google.cloud.retail.v2alpha.BranchService.GetBranch]
+       * API, and is always empty for
+       * [BranchService.ListBranches][google.cloud.retail.v2alpha.BranchService.ListBranches].
+       *
+       * Only the following fields are set in the
+       * [Product][google.cloud.retail.v2alpha.Product].
+       *
+       * * [Product.name][google.cloud.retail.v2alpha.Product.name]
+       * * [Product.id][google.cloud.retail.v2alpha.Product.id]
+       * * [Product.title][google.cloud.retail.v2alpha.Product.title]
+       * 
+ * + * repeated .google.cloud.retail.v2alpha.Product unqualified_sample_products = 5; + */ + public com.google.cloud.retail.v2alpha.Product.Builder getUnqualifiedSampleProductsBuilder( + int index) { + return getUnqualifiedSampleProductsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * A list of a maximum of 100 sample products that do not qualify for
+       * this requirement.
+       *
+       * This field is only populated in the response to
+       * [BranchService.GetBranch][google.cloud.retail.v2alpha.BranchService.GetBranch]
+       * API, and is always empty for
+       * [BranchService.ListBranches][google.cloud.retail.v2alpha.BranchService.ListBranches].
+       *
+       * Only the following fields are set in the
+       * [Product][google.cloud.retail.v2alpha.Product].
+       *
+       * * [Product.name][google.cloud.retail.v2alpha.Product.name]
+       * * [Product.id][google.cloud.retail.v2alpha.Product.id]
+       * * [Product.title][google.cloud.retail.v2alpha.Product.title]
+       * 
+ * + * repeated .google.cloud.retail.v2alpha.Product unqualified_sample_products = 5; + */ + public com.google.cloud.retail.v2alpha.ProductOrBuilder getUnqualifiedSampleProductsOrBuilder( + int index) { + if (unqualifiedSampleProductsBuilder_ == null) { + return unqualifiedSampleProducts_.get(index); + } else { + return unqualifiedSampleProductsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+       * A list of a maximum of 100 sample products that do not qualify for
+       * this requirement.
+       *
+       * This field is only populated in the response to
+       * [BranchService.GetBranch][google.cloud.retail.v2alpha.BranchService.GetBranch]
+       * API, and is always empty for
+       * [BranchService.ListBranches][google.cloud.retail.v2alpha.BranchService.ListBranches].
+       *
+       * Only the following fields are set in the
+       * [Product][google.cloud.retail.v2alpha.Product].
+       *
+       * * [Product.name][google.cloud.retail.v2alpha.Product.name]
+       * * [Product.id][google.cloud.retail.v2alpha.Product.id]
+       * * [Product.title][google.cloud.retail.v2alpha.Product.title]
+       * 
+ * + * repeated .google.cloud.retail.v2alpha.Product unqualified_sample_products = 5; + */ + public java.util.List + getUnqualifiedSampleProductsOrBuilderList() { + if (unqualifiedSampleProductsBuilder_ != null) { + return unqualifiedSampleProductsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(unqualifiedSampleProducts_); + } + } + /** + * + * + *
+       * A list of a maximum of 100 sample products that do not qualify for
+       * this requirement.
+       *
+       * This field is only populated in the response to
+       * [BranchService.GetBranch][google.cloud.retail.v2alpha.BranchService.GetBranch]
+       * API, and is always empty for
+       * [BranchService.ListBranches][google.cloud.retail.v2alpha.BranchService.ListBranches].
+       *
+       * Only the following fields are set in the
+       * [Product][google.cloud.retail.v2alpha.Product].
+       *
+       * * [Product.name][google.cloud.retail.v2alpha.Product.name]
+       * * [Product.id][google.cloud.retail.v2alpha.Product.id]
+       * * [Product.title][google.cloud.retail.v2alpha.Product.title]
+       * 
+ * + * repeated .google.cloud.retail.v2alpha.Product unqualified_sample_products = 5; + */ + public com.google.cloud.retail.v2alpha.Product.Builder addUnqualifiedSampleProductsBuilder() { + return getUnqualifiedSampleProductsFieldBuilder() + .addBuilder(com.google.cloud.retail.v2alpha.Product.getDefaultInstance()); + } + /** + * + * + *
+       * A list of a maximum of 100 sample products that do not qualify for
+       * this requirement.
+       *
+       * This field is only populated in the response to
+       * [BranchService.GetBranch][google.cloud.retail.v2alpha.BranchService.GetBranch]
+       * API, and is always empty for
+       * [BranchService.ListBranches][google.cloud.retail.v2alpha.BranchService.ListBranches].
+       *
+       * Only the following fields are set in the
+       * [Product][google.cloud.retail.v2alpha.Product].
+       *
+       * * [Product.name][google.cloud.retail.v2alpha.Product.name]
+       * * [Product.id][google.cloud.retail.v2alpha.Product.id]
+       * * [Product.title][google.cloud.retail.v2alpha.Product.title]
+       * 
+ * + * repeated .google.cloud.retail.v2alpha.Product unqualified_sample_products = 5; + */ + public com.google.cloud.retail.v2alpha.Product.Builder addUnqualifiedSampleProductsBuilder( + int index) { + return getUnqualifiedSampleProductsFieldBuilder() + .addBuilder(index, com.google.cloud.retail.v2alpha.Product.getDefaultInstance()); + } + /** + * + * + *
+       * A list of a maximum of 100 sample products that do not qualify for
+       * this requirement.
+       *
+       * This field is only populated in the response to
+       * [BranchService.GetBranch][google.cloud.retail.v2alpha.BranchService.GetBranch]
+       * API, and is always empty for
+       * [BranchService.ListBranches][google.cloud.retail.v2alpha.BranchService.ListBranches].
+       *
+       * Only the following fields are set in the
+       * [Product][google.cloud.retail.v2alpha.Product].
+       *
+       * * [Product.name][google.cloud.retail.v2alpha.Product.name]
+       * * [Product.id][google.cloud.retail.v2alpha.Product.id]
+       * * [Product.title][google.cloud.retail.v2alpha.Product.title]
+       * 
+ * + * repeated .google.cloud.retail.v2alpha.Product unqualified_sample_products = 5; + */ + public java.util.List + getUnqualifiedSampleProductsBuilderList() { + return getUnqualifiedSampleProductsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2alpha.Product, + com.google.cloud.retail.v2alpha.Product.Builder, + com.google.cloud.retail.v2alpha.ProductOrBuilder> + getUnqualifiedSampleProductsFieldBuilder() { + if (unqualifiedSampleProductsBuilder_ == null) { + unqualifiedSampleProductsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2alpha.Product, + com.google.cloud.retail.v2alpha.Product.Builder, + com.google.cloud.retail.v2alpha.ProductOrBuilder>( + unqualifiedSampleProducts_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + unqualifiedSampleProducts_ = null; + } + return unqualifiedSampleProductsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2alpha.Branch.QualityMetric) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2alpha.Branch.QualityMetric) + private static final com.google.cloud.retail.v2alpha.Branch.QualityMetric DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.retail.v2alpha.Branch.QualityMetric(); + } + + public static com.google.cloud.retail.v2alpha.Branch.QualityMetric getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QualityMetric parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.Branch.QualityMetric getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Immutable. Full resource name of the branch, such as
+   * `projects/*/locations/global/catalogs/default_catalog/branches/branch_id`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Immutable. Full resource name of the branch, such as
+   * `projects/*/locations/global/catalogs/default_catalog/branches/branch_id`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+   * Output only. Human readable name of the branch to display in the UI.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Human readable name of the branch to display in the UI.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IS_DEFAULT_FIELD_NUMBER = 3; + private boolean isDefault_ = false; + /** + * + * + *
+   * Output only. Indicates whether this branch is set as the default branch of
+   * its parent catalog.
+   * 
+ * + * bool is_default = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isDefault. + */ + @java.lang.Override + public boolean getIsDefault() { + return isDefault_; + } + + public static final int LAST_PRODUCT_IMPORT_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp lastProductImportTime_; + /** + * + * + *
+   * Output only. Timestamp of last import through
+   * [ProductService.ImportProducts][google.cloud.retail.v2alpha.ProductService.ImportProducts].
+   * Empty value means no import has been made to this branch.
+   * 
+ * + * + * .google.protobuf.Timestamp last_product_import_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the lastProductImportTime field is set. + */ + @java.lang.Override + public boolean hasLastProductImportTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Output only. Timestamp of last import through
+   * [ProductService.ImportProducts][google.cloud.retail.v2alpha.ProductService.ImportProducts].
+   * Empty value means no import has been made to this branch.
+   * 
+ * + * + * .google.protobuf.Timestamp last_product_import_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lastProductImportTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getLastProductImportTime() { + return lastProductImportTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastProductImportTime_; + } + /** + * + * + *
+   * Output only. Timestamp of last import through
+   * [ProductService.ImportProducts][google.cloud.retail.v2alpha.ProductService.ImportProducts].
+   * Empty value means no import has been made to this branch.
+   * 
+ * + * + * .google.protobuf.Timestamp last_product_import_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getLastProductImportTimeOrBuilder() { + return lastProductImportTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastProductImportTime_; + } + + public static final int PRODUCT_COUNT_STATS_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private java.util.List + productCountStats_; + /** + * + * + *
+   * Output only. Statistics for number of products in the branch, provided for
+   * different
+   * [scopes][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope].
+   *
+   * This field is not populated in [BranchView.BASIC][] view.
+   * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.ProductCountStatistic product_count_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getProductCountStatsList() { + return productCountStats_; + } + /** + * + * + *
+   * Output only. Statistics for number of products in the branch, provided for
+   * different
+   * [scopes][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope].
+   *
+   * This field is not populated in [BranchView.BASIC][] view.
+   * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.ProductCountStatistic product_count_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.retail.v2alpha.Branch.ProductCountStatisticOrBuilder> + getProductCountStatsOrBuilderList() { + return productCountStats_; + } + /** + * + * + *
+   * Output only. Statistics for number of products in the branch, provided for
+   * different
+   * [scopes][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope].
+   *
+   * This field is not populated in [BranchView.BASIC][] view.
+   * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.ProductCountStatistic product_count_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getProductCountStatsCount() { + return productCountStats_.size(); + } + /** + * + * + *
+   * Output only. Statistics for number of products in the branch, provided for
+   * different
+   * [scopes][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope].
+   *
+   * This field is not populated in [BranchView.BASIC][] view.
+   * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.ProductCountStatistic product_count_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic getProductCountStats( + int index) { + return productCountStats_.get(index); + } + /** + * + * + *
+   * Output only. Statistics for number of products in the branch, provided for
+   * different
+   * [scopes][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope].
+   *
+   * This field is not populated in [BranchView.BASIC][] view.
+   * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.ProductCountStatistic product_count_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.Branch.ProductCountStatisticOrBuilder + getProductCountStatsOrBuilder(int index) { + return productCountStats_.get(index); + } + + public static final int QUALITY_METRICS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private java.util.List qualityMetrics_; + /** + * + * + *
+   * Output only. The quality metrics measured among products of this branch.
+   *
+   * See
+   * [QualityMetric.requirement_key][google.cloud.retail.v2alpha.Branch.QualityMetric.requirement_key]
+   * for supported metrics. Metrics could be missing if failed to retrieve.
+   *
+   * This field is not populated in [BranchView.BASIC][] view.
+   * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.QualityMetric quality_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getQualityMetricsList() { + return qualityMetrics_; + } + /** + * + * + *
+   * Output only. The quality metrics measured among products of this branch.
+   *
+   * See
+   * [QualityMetric.requirement_key][google.cloud.retail.v2alpha.Branch.QualityMetric.requirement_key]
+   * for supported metrics. Metrics could be missing if failed to retrieve.
+   *
+   * This field is not populated in [BranchView.BASIC][] view.
+   * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.QualityMetric quality_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getQualityMetricsOrBuilderList() { + return qualityMetrics_; + } + /** + * + * + *
+   * Output only. The quality metrics measured among products of this branch.
+   *
+   * See
+   * [QualityMetric.requirement_key][google.cloud.retail.v2alpha.Branch.QualityMetric.requirement_key]
+   * for supported metrics. Metrics could be missing if failed to retrieve.
+   *
+   * This field is not populated in [BranchView.BASIC][] view.
+   * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.QualityMetric quality_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getQualityMetricsCount() { + return qualityMetrics_.size(); + } + /** + * + * + *
+   * Output only. The quality metrics measured among products of this branch.
+   *
+   * See
+   * [QualityMetric.requirement_key][google.cloud.retail.v2alpha.Branch.QualityMetric.requirement_key]
+   * for supported metrics. Metrics could be missing if failed to retrieve.
+   *
+   * This field is not populated in [BranchView.BASIC][] view.
+   * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.QualityMetric quality_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.Branch.QualityMetric getQualityMetrics(int index) { + return qualityMetrics_.get(index); + } + /** + * + * + *
+   * Output only. The quality metrics measured among products of this branch.
+   *
+   * See
+   * [QualityMetric.requirement_key][google.cloud.retail.v2alpha.Branch.QualityMetric.requirement_key]
+   * for supported metrics. Metrics could be missing if failed to retrieve.
+   *
+   * This field is not populated in [BranchView.BASIC][] view.
+   * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.QualityMetric quality_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.Branch.QualityMetricOrBuilder getQualityMetricsOrBuilder( + int index) { + return qualityMetrics_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (isDefault_ != false) { + output.writeBool(3, isDefault_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getLastProductImportTime()); + } + for (int i = 0; i < qualityMetrics_.size(); i++) { + output.writeMessage(6, qualityMetrics_.get(i)); + } + for (int i = 0; i < productCountStats_.size(); i++) { + output.writeMessage(7, productCountStats_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (isDefault_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, isDefault_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(5, getLastProductImportTime()); + } + for (int i = 0; i < qualityMetrics_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, qualityMetrics_.get(i)); + } + for (int i = 0; i < productCountStats_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(7, productCountStats_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.retail.v2alpha.Branch)) { + return super.equals(obj); + } + com.google.cloud.retail.v2alpha.Branch other = (com.google.cloud.retail.v2alpha.Branch) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (getIsDefault() != other.getIsDefault()) return false; + if (hasLastProductImportTime() != other.hasLastProductImportTime()) return false; + if (hasLastProductImportTime()) { + if (!getLastProductImportTime().equals(other.getLastProductImportTime())) return false; + } + if (!getProductCountStatsList().equals(other.getProductCountStatsList())) return false; + if (!getQualityMetricsList().equals(other.getQualityMetricsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + IS_DEFAULT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsDefault()); + if (hasLastProductImportTime()) { + hash = (37 * hash) + LAST_PRODUCT_IMPORT_TIME_FIELD_NUMBER; + hash = (53 * hash) + getLastProductImportTime().hashCode(); + } + if (getProductCountStatsCount() > 0) { + hash = (37 * hash) + PRODUCT_COUNT_STATS_FIELD_NUMBER; + hash = (53 * hash) + getProductCountStatsList().hashCode(); + } + if (getQualityMetricsCount() > 0) { + hash = (37 * hash) + QUALITY_METRICS_FIELD_NUMBER; + hash = (53 * hash) + getQualityMetricsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2alpha.Branch parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.Branch parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.Branch parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.Branch parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.Branch parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.Branch parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.Branch parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.Branch parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.Branch parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.Branch parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.Branch parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.Branch parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.retail.v2alpha.Branch prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A data branch that stores [Product][google.cloud.retail.v2alpha.Product]s.
+   * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.Branch} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2alpha.Branch) + com.google.cloud.retail.v2alpha.BranchOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.BranchProto + .internal_static_google_cloud_retail_v2alpha_Branch_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.BranchProto + .internal_static_google_cloud_retail_v2alpha_Branch_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.Branch.class, + com.google.cloud.retail.v2alpha.Branch.Builder.class); + } + + // Construct using com.google.cloud.retail.v2alpha.Branch.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getLastProductImportTimeFieldBuilder(); + getProductCountStatsFieldBuilder(); + getQualityMetricsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + isDefault_ = false; + lastProductImportTime_ = null; + if (lastProductImportTimeBuilder_ != null) { + lastProductImportTimeBuilder_.dispose(); + lastProductImportTimeBuilder_ = null; + } + if (productCountStatsBuilder_ == null) { + productCountStats_ = java.util.Collections.emptyList(); + } else { + productCountStats_ = null; + productCountStatsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + if (qualityMetricsBuilder_ == null) { + qualityMetrics_ = java.util.Collections.emptyList(); + } else { + qualityMetrics_ = null; + qualityMetricsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2alpha.BranchProto + .internal_static_google_cloud_retail_v2alpha_Branch_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.Branch getDefaultInstanceForType() { + return com.google.cloud.retail.v2alpha.Branch.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.Branch build() { + com.google.cloud.retail.v2alpha.Branch result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.Branch buildPartial() { + com.google.cloud.retail.v2alpha.Branch result = + new com.google.cloud.retail.v2alpha.Branch(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.retail.v2alpha.Branch result) { + if (productCountStatsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + productCountStats_ = java.util.Collections.unmodifiableList(productCountStats_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.productCountStats_ = productCountStats_; + } else { + result.productCountStats_ = productCountStatsBuilder_.build(); + } + if (qualityMetricsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + qualityMetrics_ = java.util.Collections.unmodifiableList(qualityMetrics_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.qualityMetrics_ = qualityMetrics_; + } else { + result.qualityMetrics_ = qualityMetricsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.retail.v2alpha.Branch result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.isDefault_ = isDefault_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.lastProductImportTime_ = + lastProductImportTimeBuilder_ == null + ? lastProductImportTime_ + : lastProductImportTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.retail.v2alpha.Branch) { + return mergeFrom((com.google.cloud.retail.v2alpha.Branch) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.retail.v2alpha.Branch other) { + if (other == com.google.cloud.retail.v2alpha.Branch.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getIsDefault() != false) { + setIsDefault(other.getIsDefault()); + } + if (other.hasLastProductImportTime()) { + mergeLastProductImportTime(other.getLastProductImportTime()); + } + if (productCountStatsBuilder_ == null) { + if (!other.productCountStats_.isEmpty()) { + if (productCountStats_.isEmpty()) { + productCountStats_ = other.productCountStats_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureProductCountStatsIsMutable(); + productCountStats_.addAll(other.productCountStats_); + } + onChanged(); + } + } else { + if (!other.productCountStats_.isEmpty()) { + if (productCountStatsBuilder_.isEmpty()) { + productCountStatsBuilder_.dispose(); + productCountStatsBuilder_ = null; + productCountStats_ = other.productCountStats_; + bitField0_ = (bitField0_ & ~0x00000010); + productCountStatsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getProductCountStatsFieldBuilder() + : null; + } else { + productCountStatsBuilder_.addAllMessages(other.productCountStats_); + } + } + } + if (qualityMetricsBuilder_ == null) { + if (!other.qualityMetrics_.isEmpty()) { + if (qualityMetrics_.isEmpty()) { + qualityMetrics_ = other.qualityMetrics_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureQualityMetricsIsMutable(); + qualityMetrics_.addAll(other.qualityMetrics_); + } + onChanged(); + } + } else { + if (!other.qualityMetrics_.isEmpty()) { + if (qualityMetricsBuilder_.isEmpty()) { + qualityMetricsBuilder_.dispose(); + qualityMetricsBuilder_ = null; + qualityMetrics_ = other.qualityMetrics_; + bitField0_ = (bitField0_ & ~0x00000020); + qualityMetricsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getQualityMetricsFieldBuilder() + : null; + } else { + qualityMetricsBuilder_.addAllMessages(other.qualityMetrics_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + isDefault_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 42: + { + input.readMessage( + getLastProductImportTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: + { + com.google.cloud.retail.v2alpha.Branch.QualityMetric m = + input.readMessage( + com.google.cloud.retail.v2alpha.Branch.QualityMetric.parser(), + extensionRegistry); + if (qualityMetricsBuilder_ == null) { + ensureQualityMetricsIsMutable(); + qualityMetrics_.add(m); + } else { + qualityMetricsBuilder_.addMessage(m); + } + break; + } // case 50 + case 58: + { + com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic m = + input.readMessage( + com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic.parser(), + extensionRegistry); + if (productCountStatsBuilder_ == null) { + ensureProductCountStatsIsMutable(); + productCountStats_.add(m); + } else { + productCountStatsBuilder_.addMessage(m); + } + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Immutable. Full resource name of the branch, such as
+     * `projects/*/locations/global/catalogs/default_catalog/branches/branch_id`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Immutable. Full resource name of the branch, such as
+     * `projects/*/locations/global/catalogs/default_catalog/branches/branch_id`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Immutable. Full resource name of the branch, such as
+     * `projects/*/locations/global/catalogs/default_catalog/branches/branch_id`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Full resource name of the branch, such as
+     * `projects/*/locations/global/catalogs/default_catalog/branches/branch_id`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Full resource name of the branch, such as
+     * `projects/*/locations/global/catalogs/default_catalog/branches/branch_id`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Output only. Human readable name of the branch to display in the UI.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Human readable name of the branch to display in the UI.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Human readable name of the branch to display in the UI.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Human readable name of the branch to display in the UI.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Human readable name of the branch to display in the UI.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean isDefault_; + /** + * + * + *
+     * Output only. Indicates whether this branch is set as the default branch of
+     * its parent catalog.
+     * 
+ * + * bool is_default = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isDefault. + */ + @java.lang.Override + public boolean getIsDefault() { + return isDefault_; + } + /** + * + * + *
+     * Output only. Indicates whether this branch is set as the default branch of
+     * its parent catalog.
+     * 
+ * + * bool is_default = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The isDefault to set. + * @return This builder for chaining. + */ + public Builder setIsDefault(boolean value) { + + isDefault_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Indicates whether this branch is set as the default branch of
+     * its parent catalog.
+     * 
+ * + * bool is_default = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearIsDefault() { + bitField0_ = (bitField0_ & ~0x00000004); + isDefault_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp lastProductImportTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + lastProductImportTimeBuilder_; + /** + * + * + *
+     * Output only. Timestamp of last import through
+     * [ProductService.ImportProducts][google.cloud.retail.v2alpha.ProductService.ImportProducts].
+     * Empty value means no import has been made to this branch.
+     * 
+ * + * + * .google.protobuf.Timestamp last_product_import_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the lastProductImportTime field is set. + */ + public boolean hasLastProductImportTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Output only. Timestamp of last import through
+     * [ProductService.ImportProducts][google.cloud.retail.v2alpha.ProductService.ImportProducts].
+     * Empty value means no import has been made to this branch.
+     * 
+ * + * + * .google.protobuf.Timestamp last_product_import_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lastProductImportTime. + */ + public com.google.protobuf.Timestamp getLastProductImportTime() { + if (lastProductImportTimeBuilder_ == null) { + return lastProductImportTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastProductImportTime_; + } else { + return lastProductImportTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Timestamp of last import through
+     * [ProductService.ImportProducts][google.cloud.retail.v2alpha.ProductService.ImportProducts].
+     * Empty value means no import has been made to this branch.
+     * 
+ * + * + * .google.protobuf.Timestamp last_product_import_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLastProductImportTime(com.google.protobuf.Timestamp value) { + if (lastProductImportTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + lastProductImportTime_ = value; + } else { + lastProductImportTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp of last import through
+     * [ProductService.ImportProducts][google.cloud.retail.v2alpha.ProductService.ImportProducts].
+     * Empty value means no import has been made to this branch.
+     * 
+ * + * + * .google.protobuf.Timestamp last_product_import_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLastProductImportTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (lastProductImportTimeBuilder_ == null) { + lastProductImportTime_ = builderForValue.build(); + } else { + lastProductImportTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp of last import through
+     * [ProductService.ImportProducts][google.cloud.retail.v2alpha.ProductService.ImportProducts].
+     * Empty value means no import has been made to this branch.
+     * 
+ * + * + * .google.protobuf.Timestamp last_product_import_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeLastProductImportTime(com.google.protobuf.Timestamp value) { + if (lastProductImportTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && lastProductImportTime_ != null + && lastProductImportTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getLastProductImportTimeBuilder().mergeFrom(value); + } else { + lastProductImportTime_ = value; + } + } else { + lastProductImportTimeBuilder_.mergeFrom(value); + } + if (lastProductImportTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. Timestamp of last import through
+     * [ProductService.ImportProducts][google.cloud.retail.v2alpha.ProductService.ImportProducts].
+     * Empty value means no import has been made to this branch.
+     * 
+ * + * + * .google.protobuf.Timestamp last_product_import_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearLastProductImportTime() { + bitField0_ = (bitField0_ & ~0x00000008); + lastProductImportTime_ = null; + if (lastProductImportTimeBuilder_ != null) { + lastProductImportTimeBuilder_.dispose(); + lastProductImportTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Timestamp of last import through
+     * [ProductService.ImportProducts][google.cloud.retail.v2alpha.ProductService.ImportProducts].
+     * Empty value means no import has been made to this branch.
+     * 
+ * + * + * .google.protobuf.Timestamp last_product_import_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getLastProductImportTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getLastProductImportTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Timestamp of last import through
+     * [ProductService.ImportProducts][google.cloud.retail.v2alpha.ProductService.ImportProducts].
+     * Empty value means no import has been made to this branch.
+     * 
+ * + * + * .google.protobuf.Timestamp last_product_import_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getLastProductImportTimeOrBuilder() { + if (lastProductImportTimeBuilder_ != null) { + return lastProductImportTimeBuilder_.getMessageOrBuilder(); + } else { + return lastProductImportTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastProductImportTime_; + } + } + /** + * + * + *
+     * Output only. Timestamp of last import through
+     * [ProductService.ImportProducts][google.cloud.retail.v2alpha.ProductService.ImportProducts].
+     * Empty value means no import has been made to this branch.
+     * 
+ * + * + * .google.protobuf.Timestamp last_product_import_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getLastProductImportTimeFieldBuilder() { + if (lastProductImportTimeBuilder_ == null) { + lastProductImportTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getLastProductImportTime(), getParentForChildren(), isClean()); + lastProductImportTime_ = null; + } + return lastProductImportTimeBuilder_; + } + + private java.util.List + productCountStats_ = java.util.Collections.emptyList(); + + private void ensureProductCountStatsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + productCountStats_ = + new java.util.ArrayList( + productCountStats_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic, + com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic.Builder, + com.google.cloud.retail.v2alpha.Branch.ProductCountStatisticOrBuilder> + productCountStatsBuilder_; + + /** + * + * + *
+     * Output only. Statistics for number of products in the branch, provided for
+     * different
+     * [scopes][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope].
+     *
+     * This field is not populated in [BranchView.BASIC][] view.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.ProductCountStatistic product_count_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getProductCountStatsList() { + if (productCountStatsBuilder_ == null) { + return java.util.Collections.unmodifiableList(productCountStats_); + } else { + return productCountStatsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Output only. Statistics for number of products in the branch, provided for
+     * different
+     * [scopes][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope].
+     *
+     * This field is not populated in [BranchView.BASIC][] view.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.ProductCountStatistic product_count_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getProductCountStatsCount() { + if (productCountStatsBuilder_ == null) { + return productCountStats_.size(); + } else { + return productCountStatsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Output only. Statistics for number of products in the branch, provided for
+     * different
+     * [scopes][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope].
+     *
+     * This field is not populated in [BranchView.BASIC][] view.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.ProductCountStatistic product_count_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic getProductCountStats( + int index) { + if (productCountStatsBuilder_ == null) { + return productCountStats_.get(index); + } else { + return productCountStatsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Output only. Statistics for number of products in the branch, provided for
+     * different
+     * [scopes][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope].
+     *
+     * This field is not populated in [BranchView.BASIC][] view.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.ProductCountStatistic product_count_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setProductCountStats( + int index, com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic value) { + if (productCountStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProductCountStatsIsMutable(); + productCountStats_.set(index, value); + onChanged(); + } else { + productCountStatsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. Statistics for number of products in the branch, provided for
+     * different
+     * [scopes][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope].
+     *
+     * This field is not populated in [BranchView.BASIC][] view.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.ProductCountStatistic product_count_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setProductCountStats( + int index, + com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic.Builder builderForValue) { + if (productCountStatsBuilder_ == null) { + ensureProductCountStatsIsMutable(); + productCountStats_.set(index, builderForValue.build()); + onChanged(); + } else { + productCountStatsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. Statistics for number of products in the branch, provided for
+     * different
+     * [scopes][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope].
+     *
+     * This field is not populated in [BranchView.BASIC][] view.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.ProductCountStatistic product_count_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addProductCountStats( + com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic value) { + if (productCountStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProductCountStatsIsMutable(); + productCountStats_.add(value); + onChanged(); + } else { + productCountStatsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Output only. Statistics for number of products in the branch, provided for
+     * different
+     * [scopes][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope].
+     *
+     * This field is not populated in [BranchView.BASIC][] view.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.ProductCountStatistic product_count_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addProductCountStats( + int index, com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic value) { + if (productCountStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProductCountStatsIsMutable(); + productCountStats_.add(index, value); + onChanged(); + } else { + productCountStatsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. Statistics for number of products in the branch, provided for
+     * different
+     * [scopes][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope].
+     *
+     * This field is not populated in [BranchView.BASIC][] view.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.ProductCountStatistic product_count_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addProductCountStats( + com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic.Builder builderForValue) { + if (productCountStatsBuilder_ == null) { + ensureProductCountStatsIsMutable(); + productCountStats_.add(builderForValue.build()); + onChanged(); + } else { + productCountStatsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. Statistics for number of products in the branch, provided for
+     * different
+     * [scopes][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope].
+     *
+     * This field is not populated in [BranchView.BASIC][] view.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.ProductCountStatistic product_count_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addProductCountStats( + int index, + com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic.Builder builderForValue) { + if (productCountStatsBuilder_ == null) { + ensureProductCountStatsIsMutable(); + productCountStats_.add(index, builderForValue.build()); + onChanged(); + } else { + productCountStatsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. Statistics for number of products in the branch, provided for
+     * different
+     * [scopes][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope].
+     *
+     * This field is not populated in [BranchView.BASIC][] view.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.ProductCountStatistic product_count_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllProductCountStats( + java.lang.Iterable + values) { + if (productCountStatsBuilder_ == null) { + ensureProductCountStatsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, productCountStats_); + onChanged(); + } else { + productCountStatsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Output only. Statistics for number of products in the branch, provided for
+     * different
+     * [scopes][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope].
+     *
+     * This field is not populated in [BranchView.BASIC][] view.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.ProductCountStatistic product_count_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearProductCountStats() { + if (productCountStatsBuilder_ == null) { + productCountStats_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + productCountStatsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. Statistics for number of products in the branch, provided for
+     * different
+     * [scopes][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope].
+     *
+     * This field is not populated in [BranchView.BASIC][] view.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.ProductCountStatistic product_count_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeProductCountStats(int index) { + if (productCountStatsBuilder_ == null) { + ensureProductCountStatsIsMutable(); + productCountStats_.remove(index); + onChanged(); + } else { + productCountStatsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Output only. Statistics for number of products in the branch, provided for
+     * different
+     * [scopes][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope].
+     *
+     * This field is not populated in [BranchView.BASIC][] view.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.ProductCountStatistic product_count_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic.Builder + getProductCountStatsBuilder(int index) { + return getProductCountStatsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. Statistics for number of products in the branch, provided for
+     * different
+     * [scopes][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope].
+     *
+     * This field is not populated in [BranchView.BASIC][] view.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.ProductCountStatistic product_count_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.retail.v2alpha.Branch.ProductCountStatisticOrBuilder + getProductCountStatsOrBuilder(int index) { + if (productCountStatsBuilder_ == null) { + return productCountStats_.get(index); + } else { + return productCountStatsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Output only. Statistics for number of products in the branch, provided for
+     * different
+     * [scopes][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope].
+     *
+     * This field is not populated in [BranchView.BASIC][] view.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.ProductCountStatistic product_count_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.retail.v2alpha.Branch.ProductCountStatisticOrBuilder> + getProductCountStatsOrBuilderList() { + if (productCountStatsBuilder_ != null) { + return productCountStatsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(productCountStats_); + } + } + /** + * + * + *
+     * Output only. Statistics for number of products in the branch, provided for
+     * different
+     * [scopes][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope].
+     *
+     * This field is not populated in [BranchView.BASIC][] view.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.ProductCountStatistic product_count_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic.Builder + addProductCountStatsBuilder() { + return getProductCountStatsFieldBuilder() + .addBuilder( + com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. Statistics for number of products in the branch, provided for
+     * different
+     * [scopes][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope].
+     *
+     * This field is not populated in [BranchView.BASIC][] view.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.ProductCountStatistic product_count_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic.Builder + addProductCountStatsBuilder(int index) { + return getProductCountStatsFieldBuilder() + .addBuilder( + index, + com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. Statistics for number of products in the branch, provided for
+     * different
+     * [scopes][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope].
+     *
+     * This field is not populated in [BranchView.BASIC][] view.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.ProductCountStatistic product_count_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getProductCountStatsBuilderList() { + return getProductCountStatsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic, + com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic.Builder, + com.google.cloud.retail.v2alpha.Branch.ProductCountStatisticOrBuilder> + getProductCountStatsFieldBuilder() { + if (productCountStatsBuilder_ == null) { + productCountStatsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic, + com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic.Builder, + com.google.cloud.retail.v2alpha.Branch.ProductCountStatisticOrBuilder>( + productCountStats_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + productCountStats_ = null; + } + return productCountStatsBuilder_; + } + + private java.util.List qualityMetrics_ = + java.util.Collections.emptyList(); + + private void ensureQualityMetricsIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + qualityMetrics_ = + new java.util.ArrayList( + qualityMetrics_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2alpha.Branch.QualityMetric, + com.google.cloud.retail.v2alpha.Branch.QualityMetric.Builder, + com.google.cloud.retail.v2alpha.Branch.QualityMetricOrBuilder> + qualityMetricsBuilder_; + + /** + * + * + *
+     * Output only. The quality metrics measured among products of this branch.
+     *
+     * See
+     * [QualityMetric.requirement_key][google.cloud.retail.v2alpha.Branch.QualityMetric.requirement_key]
+     * for supported metrics. Metrics could be missing if failed to retrieve.
+     *
+     * This field is not populated in [BranchView.BASIC][] view.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.QualityMetric quality_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getQualityMetricsList() { + if (qualityMetricsBuilder_ == null) { + return java.util.Collections.unmodifiableList(qualityMetrics_); + } else { + return qualityMetricsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Output only. The quality metrics measured among products of this branch.
+     *
+     * See
+     * [QualityMetric.requirement_key][google.cloud.retail.v2alpha.Branch.QualityMetric.requirement_key]
+     * for supported metrics. Metrics could be missing if failed to retrieve.
+     *
+     * This field is not populated in [BranchView.BASIC][] view.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.QualityMetric quality_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getQualityMetricsCount() { + if (qualityMetricsBuilder_ == null) { + return qualityMetrics_.size(); + } else { + return qualityMetricsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Output only. The quality metrics measured among products of this branch.
+     *
+     * See
+     * [QualityMetric.requirement_key][google.cloud.retail.v2alpha.Branch.QualityMetric.requirement_key]
+     * for supported metrics. Metrics could be missing if failed to retrieve.
+     *
+     * This field is not populated in [BranchView.BASIC][] view.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.QualityMetric quality_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.retail.v2alpha.Branch.QualityMetric getQualityMetrics(int index) { + if (qualityMetricsBuilder_ == null) { + return qualityMetrics_.get(index); + } else { + return qualityMetricsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Output only. The quality metrics measured among products of this branch.
+     *
+     * See
+     * [QualityMetric.requirement_key][google.cloud.retail.v2alpha.Branch.QualityMetric.requirement_key]
+     * for supported metrics. Metrics could be missing if failed to retrieve.
+     *
+     * This field is not populated in [BranchView.BASIC][] view.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.QualityMetric quality_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setQualityMetrics( + int index, com.google.cloud.retail.v2alpha.Branch.QualityMetric value) { + if (qualityMetricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQualityMetricsIsMutable(); + qualityMetrics_.set(index, value); + onChanged(); + } else { + qualityMetricsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. The quality metrics measured among products of this branch.
+     *
+     * See
+     * [QualityMetric.requirement_key][google.cloud.retail.v2alpha.Branch.QualityMetric.requirement_key]
+     * for supported metrics. Metrics could be missing if failed to retrieve.
+     *
+     * This field is not populated in [BranchView.BASIC][] view.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.QualityMetric quality_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setQualityMetrics( + int index, com.google.cloud.retail.v2alpha.Branch.QualityMetric.Builder builderForValue) { + if (qualityMetricsBuilder_ == null) { + ensureQualityMetricsIsMutable(); + qualityMetrics_.set(index, builderForValue.build()); + onChanged(); + } else { + qualityMetricsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. The quality metrics measured among products of this branch.
+     *
+     * See
+     * [QualityMetric.requirement_key][google.cloud.retail.v2alpha.Branch.QualityMetric.requirement_key]
+     * for supported metrics. Metrics could be missing if failed to retrieve.
+     *
+     * This field is not populated in [BranchView.BASIC][] view.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.QualityMetric quality_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addQualityMetrics(com.google.cloud.retail.v2alpha.Branch.QualityMetric value) { + if (qualityMetricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQualityMetricsIsMutable(); + qualityMetrics_.add(value); + onChanged(); + } else { + qualityMetricsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Output only. The quality metrics measured among products of this branch.
+     *
+     * See
+     * [QualityMetric.requirement_key][google.cloud.retail.v2alpha.Branch.QualityMetric.requirement_key]
+     * for supported metrics. Metrics could be missing if failed to retrieve.
+     *
+     * This field is not populated in [BranchView.BASIC][] view.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.QualityMetric quality_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addQualityMetrics( + int index, com.google.cloud.retail.v2alpha.Branch.QualityMetric value) { + if (qualityMetricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQualityMetricsIsMutable(); + qualityMetrics_.add(index, value); + onChanged(); + } else { + qualityMetricsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. The quality metrics measured among products of this branch.
+     *
+     * See
+     * [QualityMetric.requirement_key][google.cloud.retail.v2alpha.Branch.QualityMetric.requirement_key]
+     * for supported metrics. Metrics could be missing if failed to retrieve.
+     *
+     * This field is not populated in [BranchView.BASIC][] view.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.QualityMetric quality_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addQualityMetrics( + com.google.cloud.retail.v2alpha.Branch.QualityMetric.Builder builderForValue) { + if (qualityMetricsBuilder_ == null) { + ensureQualityMetricsIsMutable(); + qualityMetrics_.add(builderForValue.build()); + onChanged(); + } else { + qualityMetricsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. The quality metrics measured among products of this branch.
+     *
+     * See
+     * [QualityMetric.requirement_key][google.cloud.retail.v2alpha.Branch.QualityMetric.requirement_key]
+     * for supported metrics. Metrics could be missing if failed to retrieve.
+     *
+     * This field is not populated in [BranchView.BASIC][] view.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.QualityMetric quality_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addQualityMetrics( + int index, com.google.cloud.retail.v2alpha.Branch.QualityMetric.Builder builderForValue) { + if (qualityMetricsBuilder_ == null) { + ensureQualityMetricsIsMutable(); + qualityMetrics_.add(index, builderForValue.build()); + onChanged(); + } else { + qualityMetricsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. The quality metrics measured among products of this branch.
+     *
+     * See
+     * [QualityMetric.requirement_key][google.cloud.retail.v2alpha.Branch.QualityMetric.requirement_key]
+     * for supported metrics. Metrics could be missing if failed to retrieve.
+     *
+     * This field is not populated in [BranchView.BASIC][] view.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.QualityMetric quality_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllQualityMetrics( + java.lang.Iterable values) { + if (qualityMetricsBuilder_ == null) { + ensureQualityMetricsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, qualityMetrics_); + onChanged(); + } else { + qualityMetricsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Output only. The quality metrics measured among products of this branch.
+     *
+     * See
+     * [QualityMetric.requirement_key][google.cloud.retail.v2alpha.Branch.QualityMetric.requirement_key]
+     * for supported metrics. Metrics could be missing if failed to retrieve.
+     *
+     * This field is not populated in [BranchView.BASIC][] view.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.QualityMetric quality_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearQualityMetrics() { + if (qualityMetricsBuilder_ == null) { + qualityMetrics_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + qualityMetricsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. The quality metrics measured among products of this branch.
+     *
+     * See
+     * [QualityMetric.requirement_key][google.cloud.retail.v2alpha.Branch.QualityMetric.requirement_key]
+     * for supported metrics. Metrics could be missing if failed to retrieve.
+     *
+     * This field is not populated in [BranchView.BASIC][] view.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.QualityMetric quality_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeQualityMetrics(int index) { + if (qualityMetricsBuilder_ == null) { + ensureQualityMetricsIsMutable(); + qualityMetrics_.remove(index); + onChanged(); + } else { + qualityMetricsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Output only. The quality metrics measured among products of this branch.
+     *
+     * See
+     * [QualityMetric.requirement_key][google.cloud.retail.v2alpha.Branch.QualityMetric.requirement_key]
+     * for supported metrics. Metrics could be missing if failed to retrieve.
+     *
+     * This field is not populated in [BranchView.BASIC][] view.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.QualityMetric quality_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.retail.v2alpha.Branch.QualityMetric.Builder getQualityMetricsBuilder( + int index) { + return getQualityMetricsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. The quality metrics measured among products of this branch.
+     *
+     * See
+     * [QualityMetric.requirement_key][google.cloud.retail.v2alpha.Branch.QualityMetric.requirement_key]
+     * for supported metrics. Metrics could be missing if failed to retrieve.
+     *
+     * This field is not populated in [BranchView.BASIC][] view.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.QualityMetric quality_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.retail.v2alpha.Branch.QualityMetricOrBuilder getQualityMetricsOrBuilder( + int index) { + if (qualityMetricsBuilder_ == null) { + return qualityMetrics_.get(index); + } else { + return qualityMetricsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Output only. The quality metrics measured among products of this branch.
+     *
+     * See
+     * [QualityMetric.requirement_key][google.cloud.retail.v2alpha.Branch.QualityMetric.requirement_key]
+     * for supported metrics. Metrics could be missing if failed to retrieve.
+     *
+     * This field is not populated in [BranchView.BASIC][] view.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.QualityMetric quality_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getQualityMetricsOrBuilderList() { + if (qualityMetricsBuilder_ != null) { + return qualityMetricsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(qualityMetrics_); + } + } + /** + * + * + *
+     * Output only. The quality metrics measured among products of this branch.
+     *
+     * See
+     * [QualityMetric.requirement_key][google.cloud.retail.v2alpha.Branch.QualityMetric.requirement_key]
+     * for supported metrics. Metrics could be missing if failed to retrieve.
+     *
+     * This field is not populated in [BranchView.BASIC][] view.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.QualityMetric quality_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.retail.v2alpha.Branch.QualityMetric.Builder addQualityMetricsBuilder() { + return getQualityMetricsFieldBuilder() + .addBuilder(com.google.cloud.retail.v2alpha.Branch.QualityMetric.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. The quality metrics measured among products of this branch.
+     *
+     * See
+     * [QualityMetric.requirement_key][google.cloud.retail.v2alpha.Branch.QualityMetric.requirement_key]
+     * for supported metrics. Metrics could be missing if failed to retrieve.
+     *
+     * This field is not populated in [BranchView.BASIC][] view.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.QualityMetric quality_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.retail.v2alpha.Branch.QualityMetric.Builder addQualityMetricsBuilder( + int index) { + return getQualityMetricsFieldBuilder() + .addBuilder( + index, com.google.cloud.retail.v2alpha.Branch.QualityMetric.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. The quality metrics measured among products of this branch.
+     *
+     * See
+     * [QualityMetric.requirement_key][google.cloud.retail.v2alpha.Branch.QualityMetric.requirement_key]
+     * for supported metrics. Metrics could be missing if failed to retrieve.
+     *
+     * This field is not populated in [BranchView.BASIC][] view.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.QualityMetric quality_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getQualityMetricsBuilderList() { + return getQualityMetricsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2alpha.Branch.QualityMetric, + com.google.cloud.retail.v2alpha.Branch.QualityMetric.Builder, + com.google.cloud.retail.v2alpha.Branch.QualityMetricOrBuilder> + getQualityMetricsFieldBuilder() { + if (qualityMetricsBuilder_ == null) { + qualityMetricsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2alpha.Branch.QualityMetric, + com.google.cloud.retail.v2alpha.Branch.QualityMetric.Builder, + com.google.cloud.retail.v2alpha.Branch.QualityMetricOrBuilder>( + qualityMetrics_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); + qualityMetrics_ = null; + } + return qualityMetricsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2alpha.Branch) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2alpha.Branch) + private static final com.google.cloud.retail.v2alpha.Branch DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.retail.v2alpha.Branch(); + } + + public static com.google.cloud.retail.v2alpha.Branch getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Branch parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.Branch getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/BranchOrBuilder.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/BranchOrBuilder.java new file mode 100644 index 000000000000..9aa8567c4d20 --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/BranchOrBuilder.java @@ -0,0 +1,316 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/retail/v2alpha/branch.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.retail.v2alpha; + +public interface BranchOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2alpha.Branch) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Immutable. Full resource name of the branch, such as
+   * `projects/*/locations/global/catalogs/default_catalog/branches/branch_id`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Immutable. Full resource name of the branch, such as
+   * `projects/*/locations/global/catalogs/default_catalog/branches/branch_id`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. Human readable name of the branch to display in the UI.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Output only. Human readable name of the branch to display in the UI.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Output only. Indicates whether this branch is set as the default branch of
+   * its parent catalog.
+   * 
+ * + * bool is_default = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isDefault. + */ + boolean getIsDefault(); + + /** + * + * + *
+   * Output only. Timestamp of last import through
+   * [ProductService.ImportProducts][google.cloud.retail.v2alpha.ProductService.ImportProducts].
+   * Empty value means no import has been made to this branch.
+   * 
+ * + * + * .google.protobuf.Timestamp last_product_import_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the lastProductImportTime field is set. + */ + boolean hasLastProductImportTime(); + /** + * + * + *
+   * Output only. Timestamp of last import through
+   * [ProductService.ImportProducts][google.cloud.retail.v2alpha.ProductService.ImportProducts].
+   * Empty value means no import has been made to this branch.
+   * 
+ * + * + * .google.protobuf.Timestamp last_product_import_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lastProductImportTime. + */ + com.google.protobuf.Timestamp getLastProductImportTime(); + /** + * + * + *
+   * Output only. Timestamp of last import through
+   * [ProductService.ImportProducts][google.cloud.retail.v2alpha.ProductService.ImportProducts].
+   * Empty value means no import has been made to this branch.
+   * 
+ * + * + * .google.protobuf.Timestamp last_product_import_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getLastProductImportTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Statistics for number of products in the branch, provided for
+   * different
+   * [scopes][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope].
+   *
+   * This field is not populated in [BranchView.BASIC][] view.
+   * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.ProductCountStatistic product_count_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getProductCountStatsList(); + /** + * + * + *
+   * Output only. Statistics for number of products in the branch, provided for
+   * different
+   * [scopes][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope].
+   *
+   * This field is not populated in [BranchView.BASIC][] view.
+   * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.ProductCountStatistic product_count_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.retail.v2alpha.Branch.ProductCountStatistic getProductCountStats(int index); + /** + * + * + *
+   * Output only. Statistics for number of products in the branch, provided for
+   * different
+   * [scopes][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope].
+   *
+   * This field is not populated in [BranchView.BASIC][] view.
+   * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.ProductCountStatistic product_count_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getProductCountStatsCount(); + /** + * + * + *
+   * Output only. Statistics for number of products in the branch, provided for
+   * different
+   * [scopes][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope].
+   *
+   * This field is not populated in [BranchView.BASIC][] view.
+   * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.ProductCountStatistic product_count_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getProductCountStatsOrBuilderList(); + /** + * + * + *
+   * Output only. Statistics for number of products in the branch, provided for
+   * different
+   * [scopes][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope].
+   *
+   * This field is not populated in [BranchView.BASIC][] view.
+   * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.ProductCountStatistic product_count_stats = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.retail.v2alpha.Branch.ProductCountStatisticOrBuilder + getProductCountStatsOrBuilder(int index); + + /** + * + * + *
+   * Output only. The quality metrics measured among products of this branch.
+   *
+   * See
+   * [QualityMetric.requirement_key][google.cloud.retail.v2alpha.Branch.QualityMetric.requirement_key]
+   * for supported metrics. Metrics could be missing if failed to retrieve.
+   *
+   * This field is not populated in [BranchView.BASIC][] view.
+   * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.QualityMetric quality_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getQualityMetricsList(); + /** + * + * + *
+   * Output only. The quality metrics measured among products of this branch.
+   *
+   * See
+   * [QualityMetric.requirement_key][google.cloud.retail.v2alpha.Branch.QualityMetric.requirement_key]
+   * for supported metrics. Metrics could be missing if failed to retrieve.
+   *
+   * This field is not populated in [BranchView.BASIC][] view.
+   * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.QualityMetric quality_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.retail.v2alpha.Branch.QualityMetric getQualityMetrics(int index); + /** + * + * + *
+   * Output only. The quality metrics measured among products of this branch.
+   *
+   * See
+   * [QualityMetric.requirement_key][google.cloud.retail.v2alpha.Branch.QualityMetric.requirement_key]
+   * for supported metrics. Metrics could be missing if failed to retrieve.
+   *
+   * This field is not populated in [BranchView.BASIC][] view.
+   * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.QualityMetric quality_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getQualityMetricsCount(); + /** + * + * + *
+   * Output only. The quality metrics measured among products of this branch.
+   *
+   * See
+   * [QualityMetric.requirement_key][google.cloud.retail.v2alpha.Branch.QualityMetric.requirement_key]
+   * for supported metrics. Metrics could be missing if failed to retrieve.
+   *
+   * This field is not populated in [BranchView.BASIC][] view.
+   * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.QualityMetric quality_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getQualityMetricsOrBuilderList(); + /** + * + * + *
+   * Output only. The quality metrics measured among products of this branch.
+   *
+   * See
+   * [QualityMetric.requirement_key][google.cloud.retail.v2alpha.Branch.QualityMetric.requirement_key]
+   * for supported metrics. Metrics could be missing if failed to retrieve.
+   *
+   * This field is not populated in [BranchView.BASIC][] view.
+   * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Branch.QualityMetric quality_metrics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.retail.v2alpha.Branch.QualityMetricOrBuilder getQualityMetricsOrBuilder( + int index); +} diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/BranchProto.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/BranchProto.java new file mode 100644 index 000000000000..7c4d9ab4afb2 --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/BranchProto.java @@ -0,0 +1,161 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/retail/v2alpha/branch.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.retail.v2alpha; + +public final class BranchProto { + private BranchProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2alpha_Branch_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2alpha_Branch_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2alpha_Branch_ProductCountStatistic_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2alpha_Branch_ProductCountStatistic_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2alpha_Branch_ProductCountStatistic_CountsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2alpha_Branch_ProductCountStatistic_CountsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2alpha_Branch_QualityMetric_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2alpha_Branch_QualityMetric_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n(google/cloud/retail/v2alpha/branch.pro" + + "to\022\033google.cloud.retail.v2alpha\032\037google/" + + "api/field_behavior.proto\032\031google/api/res" + + "ource.proto\032)google/cloud/retail/v2alpha" + + "/product.proto\032\037google/protobuf/timestam" + + "p.proto\"\371\007\n\006Branch\022\021\n\004name\030\001 \001(\tB\003\340A\005\022\031\n" + + "\014display_name\030\002 \001(\tB\003\340A\003\022\027\n\nis_default\030\003" + + " \001(\010B\003\340A\003\022A\n\030last_product_import_time\030\005 " + + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\022[\n\023" + + "product_count_stats\030\007 \003(\01329.google.cloud" + + ".retail.v2alpha.Branch.ProductCountStati" + + "sticB\003\340A\003\022O\n\017quality_metrics\030\006 \003(\01321.goo" + + "gle.cloud.retail.v2alpha.Branch.QualityM" + + "etricB\003\340A\003\032\336\002\n\025ProductCountStatistic\022Z\n\005" + + "scope\030\001 \001(\0162K.google.cloud.retail.v2alph" + + "a.Branch.ProductCountStatistic.ProductCo" + + "untScope\022U\n\006counts\030\002 \003(\0132E.google.cloud." + + "retail.v2alpha.Branch.ProductCountStatis" + + "tic.CountsEntry\032-\n\013CountsEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\003:\0028\001\"c\n\021ProductCountSc" + + "ope\022#\n\037PRODUCT_COUNT_SCOPE_UNSPECIFIED\020\000" + + "\022\020\n\014ALL_PRODUCTS\020\001\022\027\n\023LAST_24_HOUR_UPDAT" + + "E\020\002\032\344\001\n\rQualityMetric\022\027\n\017requirement_key" + + "\030\001 \001(\t\022\037\n\027qualified_product_count\030\002 \001(\005\022" + + "!\n\031unqualified_product_count\030\003 \001(\005\022+\n#su" + + "ggested_quality_percent_threshold\030\004 \001(\001\022" + + "I\n\033unqualified_sample_products\030\005 \003(\0132$.g" + + "oogle.cloud.retail.v2alpha.Product:o\352Al\n" + + "\034retail.googleapis.com/Branch\022Lprojects/" + + "{project}/locations/{location}/catalogs/" + + "{catalog}/branches/{branch}*V\n\nBranchVie" + + "w\022\033\n\027BRANCH_VIEW_UNSPECIFIED\020\000\022\025\n\021BRANCH" + + "_VIEW_BASIC\020\001\022\024\n\020BRANCH_VIEW_FULL\020\002B\317\001\n\037" + + "com.google.cloud.retail.v2alphaB\013BranchP" + + "rotoP\001Z7cloud.google.com/go/retail/apiv2" + + "alpha/retailpb;retailpb\242\002\006RETAIL\252\002\033Googl" + + "e.Cloud.Retail.V2Alpha\312\002\033Google\\Cloud\\Re" + + "tail\\V2alpha\352\002\036Google::Cloud::Retail::V2" + + "alphab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.retail.v2alpha.ProductProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_retail_v2alpha_Branch_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_retail_v2alpha_Branch_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2alpha_Branch_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "IsDefault", + "LastProductImportTime", + "ProductCountStats", + "QualityMetrics", + }); + internal_static_google_cloud_retail_v2alpha_Branch_ProductCountStatistic_descriptor = + internal_static_google_cloud_retail_v2alpha_Branch_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_retail_v2alpha_Branch_ProductCountStatistic_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2alpha_Branch_ProductCountStatistic_descriptor, + new java.lang.String[] { + "Scope", "Counts", + }); + internal_static_google_cloud_retail_v2alpha_Branch_ProductCountStatistic_CountsEntry_descriptor = + internal_static_google_cloud_retail_v2alpha_Branch_ProductCountStatistic_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_retail_v2alpha_Branch_ProductCountStatistic_CountsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2alpha_Branch_ProductCountStatistic_CountsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_retail_v2alpha_Branch_QualityMetric_descriptor = + internal_static_google_cloud_retail_v2alpha_Branch_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_retail_v2alpha_Branch_QualityMetric_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2alpha_Branch_QualityMetric_descriptor, + new java.lang.String[] { + "RequirementKey", + "QualifiedProductCount", + "UnqualifiedProductCount", + "SuggestedQualityPercentThreshold", + "UnqualifiedSampleProducts", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.retail.v2alpha.ProductProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/BranchServiceProto.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/BranchServiceProto.java new file mode 100644 index 000000000000..86825c2af916 --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/BranchServiceProto.java @@ -0,0 +1,137 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/retail/v2alpha/branch_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.retail.v2alpha; + +public final class BranchServiceProto { + private BranchServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2alpha_ListBranchesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2alpha_ListBranchesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2alpha_ListBranchesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2alpha_ListBranchesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2alpha_GetBranchRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2alpha_GetBranchRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/retail/v2alpha/branch_ser" + + "vice.proto\022\033google.cloud.retail.v2alpha\032" + + "\034google/api/annotations.proto\032\027google/ap" + + "i/client.proto\032\037google/api/field_behavio" + + "r.proto\032\031google/api/resource.proto\032(goog" + + "le/cloud/retail/v2alpha/branch.proto\"\203\001\n" + + "\023ListBranchesRequest\0225\n\006parent\030\001 \001(\tB%\340A" + + "\002\372A\037\n\035retail.googleapis.com/Catalog\0225\n\004v" + + "iew\030\002 \001(\0162\'.google.cloud.retail.v2alpha." + + "BranchView\"M\n\024ListBranchesResponse\0225\n\010br" + + "anches\030\001 \003(\0132#.google.cloud.retail.v2alp" + + "ha.Branch\"}\n\020GetBranchRequest\0222\n\004name\030\001 " + + "\001(\tB$\340A\002\372A\036\n\034retail.googleapis.com/Branc" + + "h\0225\n\004view\030\002 \001(\0162\'.google.cloud.retail.v2" + + "alpha.BranchView2\316\003\n\rBranchService\022\302\001\n\014L" + + "istBranches\0220.google.cloud.retail.v2alph" + + "a.ListBranchesRequest\0321.google.cloud.ret" + + "ail.v2alpha.ListBranchesResponse\"M\332A\006par" + + "ent\202\323\344\223\002>\022\022 + * A view that specifies different level of fields of a + * [Branch][google.cloud.retail.v2alpha.Branch] to show in responses. + * + * + * Protobuf enum {@code google.cloud.retail.v2alpha.BranchView} + */ +public enum BranchView implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * The value when it's unspecified. This defaults to the BASIC view.
+   * 
+ * + * BRANCH_VIEW_UNSPECIFIED = 0; + */ + BRANCH_VIEW_UNSPECIFIED(0), + /** + * + * + *
+   * Includes basic metadata about the branch, but not statistical fields.
+   * See documentation of fields of [Branch][google.cloud.retail.v2alpha.Branch]
+   * to find what fields are excluded from BASIC view.
+   * 
+ * + * BRANCH_VIEW_BASIC = 1; + */ + BRANCH_VIEW_BASIC(1), + /** + * + * + *
+   * Includes all fields of a [Branch][google.cloud.retail.v2alpha.Branch].
+   * 
+ * + * BRANCH_VIEW_FULL = 2; + */ + BRANCH_VIEW_FULL(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * The value when it's unspecified. This defaults to the BASIC view.
+   * 
+ * + * BRANCH_VIEW_UNSPECIFIED = 0; + */ + public static final int BRANCH_VIEW_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Includes basic metadata about the branch, but not statistical fields.
+   * See documentation of fields of [Branch][google.cloud.retail.v2alpha.Branch]
+   * to find what fields are excluded from BASIC view.
+   * 
+ * + * BRANCH_VIEW_BASIC = 1; + */ + public static final int BRANCH_VIEW_BASIC_VALUE = 1; + /** + * + * + *
+   * Includes all fields of a [Branch][google.cloud.retail.v2alpha.Branch].
+   * 
+ * + * BRANCH_VIEW_FULL = 2; + */ + public static final int BRANCH_VIEW_FULL_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static BranchView valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static BranchView forNumber(int value) { + switch (value) { + case 0: + return BRANCH_VIEW_UNSPECIFIED; + case 1: + return BRANCH_VIEW_BASIC; + case 2: + return BRANCH_VIEW_FULL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public BranchView findValueByNumber(int number) { + return BranchView.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.BranchProto.getDescriptor().getEnumTypes().get(0); + } + + private static final BranchView[] VALUES = values(); + + public static BranchView valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private BranchView(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.retail.v2alpha.BranchView) +} diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/Catalog.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/Catalog.java index 755556f7b004..7f0fbaf3963a 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/Catalog.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/Catalog.java @@ -245,9 +245,9 @@ public com.google.cloud.retail.v2alpha.ProductLevelConfig getProductLevelConfig( * *
    * The Merchant Center linking configuration.
-   * Once a link is added, the data stream from Merchant Center to Cloud Retail
+   * After a link is added, the data stream from Merchant Center to Cloud Retail
    * will be enabled automatically. The requester must have access to the
-   * merchant center account in order to make changes to this field.
+   * Merchant Center account in order to make changes to this field.
    * 
* * @@ -265,9 +265,9 @@ public boolean hasMerchantCenterLinkingConfig() { * *
    * The Merchant Center linking configuration.
-   * Once a link is added, the data stream from Merchant Center to Cloud Retail
+   * After a link is added, the data stream from Merchant Center to Cloud Retail
    * will be enabled automatically. The requester must have access to the
-   * merchant center account in order to make changes to this field.
+   * Merchant Center account in order to make changes to this field.
    * 
* * @@ -288,9 +288,9 @@ public boolean hasMerchantCenterLinkingConfig() { * *
    * The Merchant Center linking configuration.
-   * Once a link is added, the data stream from Merchant Center to Cloud Retail
+   * After a link is added, the data stream from Merchant Center to Cloud Retail
    * will be enabled automatically. The requester must have access to the
-   * merchant center account in order to make changes to this field.
+   * Merchant Center account in order to make changes to this field.
    * 
* * @@ -1223,9 +1223,9 @@ public Builder clearProductLevelConfig() { * *
      * The Merchant Center linking configuration.
-     * Once a link is added, the data stream from Merchant Center to Cloud Retail
+     * After a link is added, the data stream from Merchant Center to Cloud Retail
      * will be enabled automatically. The requester must have access to the
-     * merchant center account in order to make changes to this field.
+     * Merchant Center account in order to make changes to this field.
      * 
* * @@ -1242,9 +1242,9 @@ public boolean hasMerchantCenterLinkingConfig() { * *
      * The Merchant Center linking configuration.
-     * Once a link is added, the data stream from Merchant Center to Cloud Retail
+     * After a link is added, the data stream from Merchant Center to Cloud Retail
      * will be enabled automatically. The requester must have access to the
-     * merchant center account in order to make changes to this field.
+     * Merchant Center account in order to make changes to this field.
      * 
* * @@ -1268,9 +1268,9 @@ public boolean hasMerchantCenterLinkingConfig() { * *
      * The Merchant Center linking configuration.
-     * Once a link is added, the data stream from Merchant Center to Cloud Retail
+     * After a link is added, the data stream from Merchant Center to Cloud Retail
      * will be enabled automatically. The requester must have access to the
-     * merchant center account in order to make changes to this field.
+     * Merchant Center account in order to make changes to this field.
      * 
* * @@ -1296,9 +1296,9 @@ public Builder setMerchantCenterLinkingConfig( * *
      * The Merchant Center linking configuration.
-     * Once a link is added, the data stream from Merchant Center to Cloud Retail
+     * After a link is added, the data stream from Merchant Center to Cloud Retail
      * will be enabled automatically. The requester must have access to the
-     * merchant center account in order to make changes to this field.
+     * Merchant Center account in order to make changes to this field.
      * 
* * @@ -1321,9 +1321,9 @@ public Builder setMerchantCenterLinkingConfig( * *
      * The Merchant Center linking configuration.
-     * Once a link is added, the data stream from Merchant Center to Cloud Retail
+     * After a link is added, the data stream from Merchant Center to Cloud Retail
      * will be enabled automatically. The requester must have access to the
-     * merchant center account in order to make changes to this field.
+     * Merchant Center account in order to make changes to this field.
      * 
* * @@ -1356,9 +1356,9 @@ public Builder mergeMerchantCenterLinkingConfig( * *
      * The Merchant Center linking configuration.
-     * Once a link is added, the data stream from Merchant Center to Cloud Retail
+     * After a link is added, the data stream from Merchant Center to Cloud Retail
      * will be enabled automatically. The requester must have access to the
-     * merchant center account in order to make changes to this field.
+     * Merchant Center account in order to make changes to this field.
      * 
* * @@ -1380,9 +1380,9 @@ public Builder clearMerchantCenterLinkingConfig() { * *
      * The Merchant Center linking configuration.
-     * Once a link is added, the data stream from Merchant Center to Cloud Retail
+     * After a link is added, the data stream from Merchant Center to Cloud Retail
      * will be enabled automatically. The requester must have access to the
-     * merchant center account in order to make changes to this field.
+     * Merchant Center account in order to make changes to this field.
      * 
* * @@ -1400,9 +1400,9 @@ public Builder clearMerchantCenterLinkingConfig() { * *
      * The Merchant Center linking configuration.
-     * Once a link is added, the data stream from Merchant Center to Cloud Retail
+     * After a link is added, the data stream from Merchant Center to Cloud Retail
      * will be enabled automatically. The requester must have access to the
-     * merchant center account in order to make changes to this field.
+     * Merchant Center account in order to make changes to this field.
      * 
* * @@ -1424,9 +1424,9 @@ public Builder clearMerchantCenterLinkingConfig() { * *
      * The Merchant Center linking configuration.
-     * Once a link is added, the data stream from Merchant Center to Cloud Retail
+     * After a link is added, the data stream from Merchant Center to Cloud Retail
      * will be enabled automatically. The requester must have access to the
-     * merchant center account in order to make changes to this field.
+     * Merchant Center account in order to make changes to this field.
      * 
* * diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CatalogAttribute.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CatalogAttribute.java index abe24b89c207..b404019032b3 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CatalogAttribute.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CatalogAttribute.java @@ -1032,6 +1032,7900 @@ private RetrievableOption(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.retail.v2alpha.CatalogAttribute.RetrievableOption) } + public interface FacetConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * If you don't set the facet
+     * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.intervals]
+     * in the request to a numerical attribute, then we use the computed
+     * intervals with rounded bounds obtained from all its product numerical
+     * attribute values. The computed intervals might not be ideal for some
+     * attributes. Therefore, we give you the option to overwrite them with the
+     * facet_intervals field. The maximum of facet intervals per
+     * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 40.
+     * Each interval must have a lower bound or an upper bound. If both bounds
+     * are provided, then the lower bound must be smaller or equal than the
+     * upper bound.
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.Interval facet_intervals = 1; + */ + java.util.List getFacetIntervalsList(); + /** + * + * + *
+     * If you don't set the facet
+     * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.intervals]
+     * in the request to a numerical attribute, then we use the computed
+     * intervals with rounded bounds obtained from all its product numerical
+     * attribute values. The computed intervals might not be ideal for some
+     * attributes. Therefore, we give you the option to overwrite them with the
+     * facet_intervals field. The maximum of facet intervals per
+     * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 40.
+     * Each interval must have a lower bound or an upper bound. If both bounds
+     * are provided, then the lower bound must be smaller or equal than the
+     * upper bound.
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.Interval facet_intervals = 1; + */ + com.google.cloud.retail.v2alpha.Interval getFacetIntervals(int index); + /** + * + * + *
+     * If you don't set the facet
+     * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.intervals]
+     * in the request to a numerical attribute, then we use the computed
+     * intervals with rounded bounds obtained from all its product numerical
+     * attribute values. The computed intervals might not be ideal for some
+     * attributes. Therefore, we give you the option to overwrite them with the
+     * facet_intervals field. The maximum of facet intervals per
+     * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 40.
+     * Each interval must have a lower bound or an upper bound. If both bounds
+     * are provided, then the lower bound must be smaller or equal than the
+     * upper bound.
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.Interval facet_intervals = 1; + */ + int getFacetIntervalsCount(); + /** + * + * + *
+     * If you don't set the facet
+     * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.intervals]
+     * in the request to a numerical attribute, then we use the computed
+     * intervals with rounded bounds obtained from all its product numerical
+     * attribute values. The computed intervals might not be ideal for some
+     * attributes. Therefore, we give you the option to overwrite them with the
+     * facet_intervals field. The maximum of facet intervals per
+     * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 40.
+     * Each interval must have a lower bound or an upper bound. If both bounds
+     * are provided, then the lower bound must be smaller or equal than the
+     * upper bound.
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.Interval facet_intervals = 1; + */ + java.util.List + getFacetIntervalsOrBuilderList(); + /** + * + * + *
+     * If you don't set the facet
+     * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.intervals]
+     * in the request to a numerical attribute, then we use the computed
+     * intervals with rounded bounds obtained from all its product numerical
+     * attribute values. The computed intervals might not be ideal for some
+     * attributes. Therefore, we give you the option to overwrite them with the
+     * facet_intervals field. The maximum of facet intervals per
+     * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 40.
+     * Each interval must have a lower bound or an upper bound. If both bounds
+     * are provided, then the lower bound must be smaller or equal than the
+     * upper bound.
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.Interval facet_intervals = 1; + */ + com.google.cloud.retail.v2alpha.IntervalOrBuilder getFacetIntervalsOrBuilder(int index); + + /** + * + * + *
+     * Each instance represents a list of attribute values to ignore as facet
+     * values for a specific time range. The maximum number of instances per
+     * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 25.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + java.util.List + getIgnoredFacetValuesList(); + /** + * + * + *
+     * Each instance represents a list of attribute values to ignore as facet
+     * values for a specific time range. The maximum number of instances per
+     * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 25.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues + getIgnoredFacetValues(int index); + /** + * + * + *
+     * Each instance represents a list of attribute values to ignore as facet
+     * values for a specific time range. The maximum number of instances per
+     * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 25.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + int getIgnoredFacetValuesCount(); + /** + * + * + *
+     * Each instance represents a list of attribute values to ignore as facet
+     * values for a specific time range. The maximum number of instances per
+     * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 25.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + java.util.List< + ? extends + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig + .IgnoredFacetValuesOrBuilder> + getIgnoredFacetValuesOrBuilderList(); + /** + * + * + *
+     * Each instance represents a list of attribute values to ignore as facet
+     * values for a specific time range. The maximum number of instances per
+     * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 25.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValuesOrBuilder + getIgnoredFacetValuesOrBuilder(int index); + + /** + * + * + *
+     * Each instance replaces a list of facet values by a merged facet
+     * value. If a facet value is not in any list, then it will stay the same.
+     * To avoid conflicts, only paths of length 1 are accepted. In other words,
+     * if "dark_blue" merged into "BLUE", then the latter can't merge into
+     * "blues" because this would create a path of length 2. The maximum number
+     * of instances of MergedFacetValue per
+     * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 100.
+     * This feature is available only for textual custom attributes.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + java.util.List + getMergedFacetValuesList(); + /** + * + * + *
+     * Each instance replaces a list of facet values by a merged facet
+     * value. If a facet value is not in any list, then it will stay the same.
+     * To avoid conflicts, only paths of length 1 are accepted. In other words,
+     * if "dark_blue" merged into "BLUE", then the latter can't merge into
+     * "blues" because this would create a path of length 2. The maximum number
+     * of instances of MergedFacetValue per
+     * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 100.
+     * This feature is available only for textual custom attributes.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue + getMergedFacetValues(int index); + /** + * + * + *
+     * Each instance replaces a list of facet values by a merged facet
+     * value. If a facet value is not in any list, then it will stay the same.
+     * To avoid conflicts, only paths of length 1 are accepted. In other words,
+     * if "dark_blue" merged into "BLUE", then the latter can't merge into
+     * "blues" because this would create a path of length 2. The maximum number
+     * of instances of MergedFacetValue per
+     * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 100.
+     * This feature is available only for textual custom attributes.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + int getMergedFacetValuesCount(); + /** + * + * + *
+     * Each instance replaces a list of facet values by a merged facet
+     * value. If a facet value is not in any list, then it will stay the same.
+     * To avoid conflicts, only paths of length 1 are accepted. In other words,
+     * if "dark_blue" merged into "BLUE", then the latter can't merge into
+     * "blues" because this would create a path of length 2. The maximum number
+     * of instances of MergedFacetValue per
+     * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 100.
+     * This feature is available only for textual custom attributes.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + java.util.List< + ? extends + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig + .MergedFacetValueOrBuilder> + getMergedFacetValuesOrBuilderList(); + /** + * + * + *
+     * Each instance replaces a list of facet values by a merged facet
+     * value. If a facet value is not in any list, then it will stay the same.
+     * To avoid conflicts, only paths of length 1 are accepted. In other words,
+     * if "dark_blue" merged into "BLUE", then the latter can't merge into
+     * "blues" because this would create a path of length 2. The maximum number
+     * of instances of MergedFacetValue per
+     * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 100.
+     * This feature is available only for textual custom attributes.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValueOrBuilder + getMergedFacetValuesOrBuilder(int index); + + /** + * + * + *
+     * Use this field only if you want to merge a facet key into another facet
+     * key.
+     * 
+ * + * .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet merged_facet = 4; + * + * + * @return Whether the mergedFacet field is set. + */ + boolean hasMergedFacet(); + /** + * + * + *
+     * Use this field only if you want to merge a facet key into another facet
+     * key.
+     * 
+ * + * .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet merged_facet = 4; + * + * + * @return The mergedFacet. + */ + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet getMergedFacet(); + /** + * + * + *
+     * Use this field only if you want to merge a facet key into another facet
+     * key.
+     * 
+ * + * .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet merged_facet = 4; + * + */ + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetOrBuilder + getMergedFacetOrBuilder(); + + /** + * + * + *
+     * Set this field only if you want to rerank based on facet values engaged
+     * by the user for the current key. This option is only possible for custom
+     * facetable textual keys.
+     * 
+ * + * + * .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig rerank_config = 5; + * + * + * @return Whether the rerankConfig field is set. + */ + boolean hasRerankConfig(); + /** + * + * + *
+     * Set this field only if you want to rerank based on facet values engaged
+     * by the user for the current key. This option is only possible for custom
+     * facetable textual keys.
+     * 
+ * + * + * .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig rerank_config = 5; + * + * + * @return The rerankConfig. + */ + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig getRerankConfig(); + /** + * + * + *
+     * Set this field only if you want to rerank based on facet values engaged
+     * by the user for the current key. This option is only possible for custom
+     * facetable textual keys.
+     * 
+ * + * + * .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig rerank_config = 5; + * + */ + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfigOrBuilder + getRerankConfigOrBuilder(); + } + /** + * + * + *
+   * Possible options for the facet that corresponds to the current attribute
+   * config.
+   * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig} + */ + public static final class FacetConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig) + FacetConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use FacetConfig.newBuilder() to construct. + private FacetConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FacetConfig() { + facetIntervals_ = java.util.Collections.emptyList(); + ignoredFacetValues_ = java.util.Collections.emptyList(); + mergedFacetValues_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FacetConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.CatalogProto + .internal_static_google_cloud_retail_v2alpha_CatalogAttribute_FacetConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.CatalogProto + .internal_static_google_cloud_retail_v2alpha_CatalogAttribute_FacetConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.class, + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.Builder.class); + } + + public interface IgnoredFacetValuesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * List of facet values to ignore for the following time range. The facet
+       * values are the same as the attribute values. There is a limit of 10
+       * values per instance of IgnoredFacetValues. Each value can have at most
+       * 128 characters.
+       * 
+ * + * repeated string values = 1; + * + * @return A list containing the values. + */ + java.util.List getValuesList(); + /** + * + * + *
+       * List of facet values to ignore for the following time range. The facet
+       * values are the same as the attribute values. There is a limit of 10
+       * values per instance of IgnoredFacetValues. Each value can have at most
+       * 128 characters.
+       * 
+ * + * repeated string values = 1; + * + * @return The count of values. + */ + int getValuesCount(); + /** + * + * + *
+       * List of facet values to ignore for the following time range. The facet
+       * values are the same as the attribute values. There is a limit of 10
+       * values per instance of IgnoredFacetValues. Each value can have at most
+       * 128 characters.
+       * 
+ * + * repeated string values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + java.lang.String getValues(int index); + /** + * + * + *
+       * List of facet values to ignore for the following time range. The facet
+       * values are the same as the attribute values. There is a limit of 10
+       * values per instance of IgnoredFacetValues. Each value can have at most
+       * 128 characters.
+       * 
+ * + * repeated string values = 1; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + com.google.protobuf.ByteString getValuesBytes(int index); + + /** + * + * + *
+       * Time range for the current list of facet values to ignore.
+       * If multiple time ranges are specified for an facet value for the
+       * current attribute, consider all of them. If both are empty, ignore
+       * always. If start time and end time are set, then start time
+       * must be before end time.
+       * If start time is not empty and end time is empty, then will ignore
+       * these facet values after the start time.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 2; + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + * + * + *
+       * Time range for the current list of facet values to ignore.
+       * If multiple time ranges are specified for an facet value for the
+       * current attribute, consider all of them. If both are empty, ignore
+       * always. If start time and end time are set, then start time
+       * must be before end time.
+       * If start time is not empty and end time is empty, then will ignore
+       * these facet values after the start time.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 2; + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + /** + * + * + *
+       * Time range for the current list of facet values to ignore.
+       * If multiple time ranges are specified for an facet value for the
+       * current attribute, consider all of them. If both are empty, ignore
+       * always. If start time and end time are set, then start time
+       * must be before end time.
+       * If start time is not empty and end time is empty, then will ignore
+       * these facet values after the start time.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
+       * If start time is empty and end time is not empty, then ignore these
+       * facet values before end time.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 3; + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + /** + * + * + *
+       * If start time is empty and end time is not empty, then ignore these
+       * facet values before end time.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 3; + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + /** + * + * + *
+       * If start time is empty and end time is not empty, then ignore these
+       * facet values before end time.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 3; + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + } + /** + * + * + *
+     * [Facet values][google.cloud.retail.v2alpha.SearchResponse.Facet.values]
+     * to ignore on [facets][google.cloud.retail.v2alpha.SearchResponse.Facet]
+     * during the specified time range for the given
+     * [SearchResponse.Facet.key][google.cloud.retail.v2alpha.SearchResponse.Facet.key]
+     * attribute.
+     * 
+ * + * Protobuf type {@code + * google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues} + */ + public static final class IgnoredFacetValues extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues) + IgnoredFacetValuesOrBuilder { + private static final long serialVersionUID = 0L; + // Use IgnoredFacetValues.newBuilder() to construct. + private IgnoredFacetValues(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IgnoredFacetValues() { + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IgnoredFacetValues(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.CatalogProto + .internal_static_google_cloud_retail_v2alpha_CatalogAttribute_FacetConfig_IgnoredFacetValues_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.CatalogProto + .internal_static_google_cloud_retail_v2alpha_CatalogAttribute_FacetConfig_IgnoredFacetValues_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues + .class, + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues + .Builder.class); + } + + private int bitField0_; + public static final int VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+       * List of facet values to ignore for the following time range. The facet
+       * values are the same as the attribute values. There is a limit of 10
+       * values per instance of IgnoredFacetValues. Each value can have at most
+       * 128 characters.
+       * 
+ * + * repeated string values = 1; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + return values_; + } + /** + * + * + *
+       * List of facet values to ignore for the following time range. The facet
+       * values are the same as the attribute values. There is a limit of 10
+       * values per instance of IgnoredFacetValues. Each value can have at most
+       * 128 characters.
+       * 
+ * + * repeated string values = 1; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * + * + *
+       * List of facet values to ignore for the following time range. The facet
+       * values are the same as the attribute values. There is a limit of 10
+       * values per instance of IgnoredFacetValues. Each value can have at most
+       * 128 characters.
+       * 
+ * + * repeated string values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * + * + *
+       * List of facet values to ignore for the following time range. The facet
+       * values are the same as the attribute values. There is a limit of 10
+       * values per instance of IgnoredFacetValues. Each value can have at most
+       * 128 characters.
+       * 
+ * + * repeated string values = 1; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.getByteString(index); + } + + public static final int START_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp startTime_; + /** + * + * + *
+       * Time range for the current list of facet values to ignore.
+       * If multiple time ranges are specified for an facet value for the
+       * current attribute, consider all of them. If both are empty, ignore
+       * always. If start time and end time are set, then start time
+       * must be before end time.
+       * If start time is not empty and end time is empty, then will ignore
+       * these facet values after the start time.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 2; + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+       * Time range for the current list of facet values to ignore.
+       * If multiple time ranges are specified for an facet value for the
+       * current attribute, consider all of them. If both are empty, ignore
+       * always. If start time and end time are set, then start time
+       * must be before end time.
+       * If start time is not empty and end time is empty, then will ignore
+       * these facet values after the start time.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 2; + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + * + * + *
+       * Time range for the current list of facet values to ignore.
+       * If multiple time ranges are specified for an facet value for the
+       * current attribute, consider all of them. If both are empty, ignore
+       * always. If start time and end time are set, then start time
+       * must be before end time.
+       * If start time is not empty and end time is empty, then will ignore
+       * these facet values after the start time.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + public static final int END_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp endTime_; + /** + * + * + *
+       * If start time is empty and end time is not empty, then ignore these
+       * facet values before end time.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 3; + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+       * If start time is empty and end time is not empty, then ignore these
+       * facet values before end time.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 3; + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + * + * + *
+       * If start time is empty and end time is not empty, then ignore these
+       * facet values before end time.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 3; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < values_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getEndTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < values_.size(); i++) { + dataSize += computeStringSizeNoTag(values_.getRaw(i)); + } + size += dataSize; + size += 1 * getValuesList().size(); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues)) { + return super.equals(obj); + } + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues other = + (com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues) obj; + + if (!getValuesList().equals(other.getValuesList())) return false; + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+       * [Facet values][google.cloud.retail.v2alpha.SearchResponse.Facet.values]
+       * to ignore on [facets][google.cloud.retail.v2alpha.SearchResponse.Facet]
+       * during the specified time range for the given
+       * [SearchResponse.Facet.key][google.cloud.retail.v2alpha.SearchResponse.Facet.key]
+       * attribute.
+       * 
+ * + * Protobuf type {@code + * google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues) + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValuesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.CatalogProto + .internal_static_google_cloud_retail_v2alpha_CatalogAttribute_FacetConfig_IgnoredFacetValues_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.CatalogProto + .internal_static_google_cloud_retail_v2alpha_CatalogAttribute_FacetConfig_IgnoredFacetValues_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues + .class, + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues + .Builder.class); + } + + // Construct using + // com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getStartTimeFieldBuilder(); + getEndTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2alpha.CatalogProto + .internal_static_google_cloud_retail_v2alpha_CatalogAttribute_FacetConfig_IgnoredFacetValues_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues + getDefaultInstanceForType() { + return com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues + build() { + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues + buildPartial() { + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues result = + new com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + values_.makeImmutable(); + result.values_ = values_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues) { + return mergeFrom( + (com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues other) { + if (other + == com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues + .getDefaultInstance()) return this; + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ |= 0x00000001; + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + onChanged(); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureValuesIsMutable(); + values_.add(s); + break; + } // case 10 + case 18: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureValuesIsMutable() { + if (!values_.isModifiable()) { + values_ = new com.google.protobuf.LazyStringArrayList(values_); + } + bitField0_ |= 0x00000001; + } + /** + * + * + *
+         * List of facet values to ignore for the following time range. The facet
+         * values are the same as the attribute values. There is a limit of 10
+         * values per instance of IgnoredFacetValues. Each value can have at most
+         * 128 characters.
+         * 
+ * + * repeated string values = 1; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + values_.makeImmutable(); + return values_; + } + /** + * + * + *
+         * List of facet values to ignore for the following time range. The facet
+         * values are the same as the attribute values. There is a limit of 10
+         * values per instance of IgnoredFacetValues. Each value can have at most
+         * 128 characters.
+         * 
+ * + * repeated string values = 1; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * + * + *
+         * List of facet values to ignore for the following time range. The facet
+         * values are the same as the attribute values. There is a limit of 10
+         * values per instance of IgnoredFacetValues. Each value can have at most
+         * 128 characters.
+         * 
+ * + * repeated string values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * + * + *
+         * List of facet values to ignore for the following time range. The facet
+         * values are the same as the attribute values. There is a limit of 10
+         * values per instance of IgnoredFacetValues. Each value can have at most
+         * 128 characters.
+         * 
+ * + * repeated string values = 1; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.getByteString(index); + } + /** + * + * + *
+         * List of facet values to ignore for the following time range. The facet
+         * values are the same as the attribute values. There is a limit of 10
+         * values per instance of IgnoredFacetValues. Each value can have at most
+         * 128 characters.
+         * 
+ * + * repeated string values = 1; + * + * @param index The index to set the value at. + * @param value The values to set. + * @return This builder for chaining. + */ + public Builder setValues(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * List of facet values to ignore for the following time range. The facet
+         * values are the same as the attribute values. There is a limit of 10
+         * values per instance of IgnoredFacetValues. Each value can have at most
+         * 128 characters.
+         * 
+ * + * repeated string values = 1; + * + * @param value The values to add. + * @return This builder for chaining. + */ + public Builder addValues(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * List of facet values to ignore for the following time range. The facet
+         * values are the same as the attribute values. There is a limit of 10
+         * values per instance of IgnoredFacetValues. Each value can have at most
+         * 128 characters.
+         * 
+ * + * repeated string values = 1; + * + * @param values The values to add. + * @return This builder for chaining. + */ + public Builder addAllValues(java.lang.Iterable values) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * List of facet values to ignore for the following time range. The facet
+         * values are the same as the attribute values. There is a limit of 10
+         * values per instance of IgnoredFacetValues. Each value can have at most
+         * 128 characters.
+         * 
+ * + * repeated string values = 1; + * + * @return This builder for chaining. + */ + public Builder clearValues() { + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + /** + * + * + *
+         * List of facet values to ignore for the following time range. The facet
+         * values are the same as the attribute values. There is a limit of 10
+         * values per instance of IgnoredFacetValues. Each value can have at most
+         * 128 characters.
+         * 
+ * + * repeated string values = 1; + * + * @param value The bytes of the values to add. + * @return This builder for chaining. + */ + public Builder addValuesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValuesIsMutable(); + values_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + /** + * + * + *
+         * Time range for the current list of facet values to ignore.
+         * If multiple time ranges are specified for an facet value for the
+         * current attribute, consider all of them. If both are empty, ignore
+         * always. If start time and end time are set, then start time
+         * must be before end time.
+         * If start time is not empty and end time is empty, then will ignore
+         * these facet values after the start time.
+         * 
+ * + * .google.protobuf.Timestamp start_time = 2; + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+         * Time range for the current list of facet values to ignore.
+         * If multiple time ranges are specified for an facet value for the
+         * current attribute, consider all of them. If both are empty, ignore
+         * always. If start time and end time are set, then start time
+         * must be before end time.
+         * If start time is not empty and end time is empty, then will ignore
+         * these facet values after the start time.
+         * 
+ * + * .google.protobuf.Timestamp start_time = 2; + * + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+         * Time range for the current list of facet values to ignore.
+         * If multiple time ranges are specified for an facet value for the
+         * current attribute, consider all of them. If both are empty, ignore
+         * always. If start time and end time are set, then start time
+         * must be before end time.
+         * If start time is not empty and end time is empty, then will ignore
+         * these facet values after the start time.
+         * 
+ * + * .google.protobuf.Timestamp start_time = 2; + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+         * Time range for the current list of facet values to ignore.
+         * If multiple time ranges are specified for an facet value for the
+         * current attribute, consider all of them. If both are empty, ignore
+         * always. If start time and end time are set, then start time
+         * must be before end time.
+         * If start time is not empty and end time is empty, then will ignore
+         * these facet values after the start time.
+         * 
+ * + * .google.protobuf.Timestamp start_time = 2; + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+         * Time range for the current list of facet values to ignore.
+         * If multiple time ranges are specified for an facet value for the
+         * current attribute, consider all of them. If both are empty, ignore
+         * always. If start time and end time are set, then start time
+         * must be before end time.
+         * If start time is not empty and end time is empty, then will ignore
+         * these facet values after the start time.
+         * 
+ * + * .google.protobuf.Timestamp start_time = 2; + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+         * Time range for the current list of facet values to ignore.
+         * If multiple time ranges are specified for an facet value for the
+         * current attribute, consider all of them. If both are empty, ignore
+         * always. If start time and end time are set, then start time
+         * must be before end time.
+         * If start time is not empty and end time is empty, then will ignore
+         * these facet values after the start time.
+         * 
+ * + * .google.protobuf.Timestamp start_time = 2; + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000002); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+         * Time range for the current list of facet values to ignore.
+         * If multiple time ranges are specified for an facet value for the
+         * current attribute, consider all of them. If both are empty, ignore
+         * always. If start time and end time are set, then start time
+         * must be before end time.
+         * If start time is not empty and end time is empty, then will ignore
+         * these facet values after the start time.
+         * 
+ * + * .google.protobuf.Timestamp start_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+         * Time range for the current list of facet values to ignore.
+         * If multiple time ranges are specified for an facet value for the
+         * current attribute, consider all of them. If both are empty, ignore
+         * always. If start time and end time are set, then start time
+         * must be before end time.
+         * If start time is not empty and end time is empty, then will ignore
+         * these facet values after the start time.
+         * 
+ * + * .google.protobuf.Timestamp start_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : startTime_; + } + } + /** + * + * + *
+         * Time range for the current list of facet values to ignore.
+         * If multiple time ranges are specified for an facet value for the
+         * current attribute, consider all of them. If both are empty, ignore
+         * always. If start time and end time are set, then start time
+         * must be before end time.
+         * If start time is not empty and end time is empty, then will ignore
+         * these facet values after the start time.
+         * 
+ * + * .google.protobuf.Timestamp start_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + /** + * + * + *
+         * If start time is empty and end time is not empty, then ignore these
+         * facet values before end time.
+         * 
+ * + * .google.protobuf.Timestamp end_time = 3; + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+         * If start time is empty and end time is not empty, then ignore these
+         * facet values before end time.
+         * 
+ * + * .google.protobuf.Timestamp end_time = 3; + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+         * If start time is empty and end time is not empty, then ignore these
+         * facet values before end time.
+         * 
+ * + * .google.protobuf.Timestamp end_time = 3; + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+         * If start time is empty and end time is not empty, then ignore these
+         * facet values before end time.
+         * 
+ * + * .google.protobuf.Timestamp end_time = 3; + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+         * If start time is empty and end time is not empty, then ignore these
+         * facet values before end time.
+         * 
+ * + * .google.protobuf.Timestamp end_time = 3; + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
+         * If start time is empty and end time is not empty, then ignore these
+         * facet values before end time.
+         * 
+ * + * .google.protobuf.Timestamp end_time = 3; + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000004); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+         * If start time is empty and end time is not empty, then ignore these
+         * facet values before end time.
+         * 
+ * + * .google.protobuf.Timestamp end_time = 3; + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+         * If start time is empty and end time is not empty, then ignore these
+         * facet values before end time.
+         * 
+ * + * .google.protobuf.Timestamp end_time = 3; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + * + * + *
+         * If start time is empty and end time is not empty, then ignore these
+         * facet values before end time.
+         * 
+ * + * .google.protobuf.Timestamp end_time = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues) + private static final com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig + .IgnoredFacetValues + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues(); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IgnoredFacetValues parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface MergedFacetValueOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * All the facet values that are replaces by the same
+       * [merged_value][google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value]
+       * that follows. The maximum number of values per MergedFacetValue is 25.
+       * Each value can have up to 128 characters.
+       * 
+ * + * repeated string values = 1; + * + * @return A list containing the values. + */ + java.util.List getValuesList(); + /** + * + * + *
+       * All the facet values that are replaces by the same
+       * [merged_value][google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value]
+       * that follows. The maximum number of values per MergedFacetValue is 25.
+       * Each value can have up to 128 characters.
+       * 
+ * + * repeated string values = 1; + * + * @return The count of values. + */ + int getValuesCount(); + /** + * + * + *
+       * All the facet values that are replaces by the same
+       * [merged_value][google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value]
+       * that follows. The maximum number of values per MergedFacetValue is 25.
+       * Each value can have up to 128 characters.
+       * 
+ * + * repeated string values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + java.lang.String getValues(int index); + /** + * + * + *
+       * All the facet values that are replaces by the same
+       * [merged_value][google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value]
+       * that follows. The maximum number of values per MergedFacetValue is 25.
+       * Each value can have up to 128 characters.
+       * 
+ * + * repeated string values = 1; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + com.google.protobuf.ByteString getValuesBytes(int index); + + /** + * + * + *
+       * All the previous values are replaced by this merged facet value.
+       * This merged_value must be non-empty and can have up to 128 characters.
+       * 
+ * + * string merged_value = 2; + * + * @return The mergedValue. + */ + java.lang.String getMergedValue(); + /** + * + * + *
+       * All the previous values are replaced by this merged facet value.
+       * This merged_value must be non-empty and can have up to 128 characters.
+       * 
+ * + * string merged_value = 2; + * + * @return The bytes for mergedValue. + */ + com.google.protobuf.ByteString getMergedValueBytes(); + } + /** + * + * + *
+     * Replaces a set of textual facet values by the same (possibly different)
+     * merged facet value. Each facet value should appear at most once as a
+     * value per
+     * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute]. This
+     * feature is available only for textual custom attributes.
+     * 
+ * + * Protobuf type {@code + * google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue} + */ + public static final class MergedFacetValue extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue) + MergedFacetValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use MergedFacetValue.newBuilder() to construct. + private MergedFacetValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MergedFacetValue() { + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + mergedValue_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MergedFacetValue(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.CatalogProto + .internal_static_google_cloud_retail_v2alpha_CatalogAttribute_FacetConfig_MergedFacetValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.CatalogProto + .internal_static_google_cloud_retail_v2alpha_CatalogAttribute_FacetConfig_MergedFacetValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue.class, + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue + .Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+       * All the facet values that are replaces by the same
+       * [merged_value][google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value]
+       * that follows. The maximum number of values per MergedFacetValue is 25.
+       * Each value can have up to 128 characters.
+       * 
+ * + * repeated string values = 1; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + return values_; + } + /** + * + * + *
+       * All the facet values that are replaces by the same
+       * [merged_value][google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value]
+       * that follows. The maximum number of values per MergedFacetValue is 25.
+       * Each value can have up to 128 characters.
+       * 
+ * + * repeated string values = 1; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * + * + *
+       * All the facet values that are replaces by the same
+       * [merged_value][google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value]
+       * that follows. The maximum number of values per MergedFacetValue is 25.
+       * Each value can have up to 128 characters.
+       * 
+ * + * repeated string values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * + * + *
+       * All the facet values that are replaces by the same
+       * [merged_value][google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value]
+       * that follows. The maximum number of values per MergedFacetValue is 25.
+       * Each value can have up to 128 characters.
+       * 
+ * + * repeated string values = 1; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.getByteString(index); + } + + public static final int MERGED_VALUE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object mergedValue_ = ""; + /** + * + * + *
+       * All the previous values are replaced by this merged facet value.
+       * This merged_value must be non-empty and can have up to 128 characters.
+       * 
+ * + * string merged_value = 2; + * + * @return The mergedValue. + */ + @java.lang.Override + public java.lang.String getMergedValue() { + java.lang.Object ref = mergedValue_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mergedValue_ = s; + return s; + } + } + /** + * + * + *
+       * All the previous values are replaced by this merged facet value.
+       * This merged_value must be non-empty and can have up to 128 characters.
+       * 
+ * + * string merged_value = 2; + * + * @return The bytes for mergedValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMergedValueBytes() { + java.lang.Object ref = mergedValue_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mergedValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < values_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mergedValue_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, mergedValue_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < values_.size(); i++) { + dataSize += computeStringSizeNoTag(values_.getRaw(i)); + } + size += dataSize; + size += 1 * getValuesList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mergedValue_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, mergedValue_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue)) { + return super.equals(obj); + } + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue other = + (com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue) obj; + + if (!getValuesList().equals(other.getValuesList())) return false; + if (!getMergedValue().equals(other.getMergedValue())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (37 * hash) + MERGED_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getMergedValue().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+       * Replaces a set of textual facet values by the same (possibly different)
+       * merged facet value. Each facet value should appear at most once as a
+       * value per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute]. This
+       * feature is available only for textual custom attributes.
+       * 
+ * + * Protobuf type {@code + * google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue) + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.CatalogProto + .internal_static_google_cloud_retail_v2alpha_CatalogAttribute_FacetConfig_MergedFacetValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.CatalogProto + .internal_static_google_cloud_retail_v2alpha_CatalogAttribute_FacetConfig_MergedFacetValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue + .class, + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue + .Builder.class); + } + + // Construct using + // com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + mergedValue_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2alpha.CatalogProto + .internal_static_google_cloud_retail_v2alpha_CatalogAttribute_FacetConfig_MergedFacetValue_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue + getDefaultInstanceForType() { + return com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue + build() { + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue + buildPartial() { + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue result = + new com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + values_.makeImmutable(); + result.values_ = values_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.mergedValue_ = mergedValue_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue) { + return mergeFrom( + (com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue other) { + if (other + == com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue + .getDefaultInstance()) return this; + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ |= 0x00000001; + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + onChanged(); + } + if (!other.getMergedValue().isEmpty()) { + mergedValue_ = other.mergedValue_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureValuesIsMutable(); + values_.add(s); + break; + } // case 10 + case 18: + { + mergedValue_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureValuesIsMutable() { + if (!values_.isModifiable()) { + values_ = new com.google.protobuf.LazyStringArrayList(values_); + } + bitField0_ |= 0x00000001; + } + /** + * + * + *
+         * All the facet values that are replaces by the same
+         * [merged_value][google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value]
+         * that follows. The maximum number of values per MergedFacetValue is 25.
+         * Each value can have up to 128 characters.
+         * 
+ * + * repeated string values = 1; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + values_.makeImmutable(); + return values_; + } + /** + * + * + *
+         * All the facet values that are replaces by the same
+         * [merged_value][google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value]
+         * that follows. The maximum number of values per MergedFacetValue is 25.
+         * Each value can have up to 128 characters.
+         * 
+ * + * repeated string values = 1; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * + * + *
+         * All the facet values that are replaces by the same
+         * [merged_value][google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value]
+         * that follows. The maximum number of values per MergedFacetValue is 25.
+         * Each value can have up to 128 characters.
+         * 
+ * + * repeated string values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * + * + *
+         * All the facet values that are replaces by the same
+         * [merged_value][google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value]
+         * that follows. The maximum number of values per MergedFacetValue is 25.
+         * Each value can have up to 128 characters.
+         * 
+ * + * repeated string values = 1; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.getByteString(index); + } + /** + * + * + *
+         * All the facet values that are replaces by the same
+         * [merged_value][google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value]
+         * that follows. The maximum number of values per MergedFacetValue is 25.
+         * Each value can have up to 128 characters.
+         * 
+ * + * repeated string values = 1; + * + * @param index The index to set the value at. + * @param value The values to set. + * @return This builder for chaining. + */ + public Builder setValues(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * All the facet values that are replaces by the same
+         * [merged_value][google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value]
+         * that follows. The maximum number of values per MergedFacetValue is 25.
+         * Each value can have up to 128 characters.
+         * 
+ * + * repeated string values = 1; + * + * @param value The values to add. + * @return This builder for chaining. + */ + public Builder addValues(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * All the facet values that are replaces by the same
+         * [merged_value][google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value]
+         * that follows. The maximum number of values per MergedFacetValue is 25.
+         * Each value can have up to 128 characters.
+         * 
+ * + * repeated string values = 1; + * + * @param values The values to add. + * @return This builder for chaining. + */ + public Builder addAllValues(java.lang.Iterable values) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * All the facet values that are replaces by the same
+         * [merged_value][google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value]
+         * that follows. The maximum number of values per MergedFacetValue is 25.
+         * Each value can have up to 128 characters.
+         * 
+ * + * repeated string values = 1; + * + * @return This builder for chaining. + */ + public Builder clearValues() { + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + /** + * + * + *
+         * All the facet values that are replaces by the same
+         * [merged_value][google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value]
+         * that follows. The maximum number of values per MergedFacetValue is 25.
+         * Each value can have up to 128 characters.
+         * 
+ * + * repeated string values = 1; + * + * @param value The bytes of the values to add. + * @return This builder for chaining. + */ + public Builder addValuesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValuesIsMutable(); + values_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object mergedValue_ = ""; + /** + * + * + *
+         * All the previous values are replaced by this merged facet value.
+         * This merged_value must be non-empty and can have up to 128 characters.
+         * 
+ * + * string merged_value = 2; + * + * @return The mergedValue. + */ + public java.lang.String getMergedValue() { + java.lang.Object ref = mergedValue_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mergedValue_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * All the previous values are replaced by this merged facet value.
+         * This merged_value must be non-empty and can have up to 128 characters.
+         * 
+ * + * string merged_value = 2; + * + * @return The bytes for mergedValue. + */ + public com.google.protobuf.ByteString getMergedValueBytes() { + java.lang.Object ref = mergedValue_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mergedValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * All the previous values are replaced by this merged facet value.
+         * This merged_value must be non-empty and can have up to 128 characters.
+         * 
+ * + * string merged_value = 2; + * + * @param value The mergedValue to set. + * @return This builder for chaining. + */ + public Builder setMergedValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + mergedValue_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+         * All the previous values are replaced by this merged facet value.
+         * This merged_value must be non-empty and can have up to 128 characters.
+         * 
+ * + * string merged_value = 2; + * + * @return This builder for chaining. + */ + public Builder clearMergedValue() { + mergedValue_ = getDefaultInstance().getMergedValue(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+         * All the previous values are replaced by this merged facet value.
+         * This merged_value must be non-empty and can have up to 128 characters.
+         * 
+ * + * string merged_value = 2; + * + * @param value The bytes for mergedValue to set. + * @return This builder for chaining. + */ + public Builder setMergedValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mergedValue_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue) + private static final com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig + .MergedFacetValue + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue(); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MergedFacetValue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface MergedFacetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * The merged facet key should be a valid facet key that is different than
+       * the facet key of the current catalog attribute. We refer this is
+       * merged facet key as the child of the current catalog attribute. This
+       * merged facet key can't be a parent of another facet key (i.e. no
+       * directed path of length 2). This merged facet key needs to be either a
+       * textual custom attribute or a numerical custom attribute.
+       * 
+ * + * string merged_facet_key = 1; + * + * @return The mergedFacetKey. + */ + java.lang.String getMergedFacetKey(); + /** + * + * + *
+       * The merged facet key should be a valid facet key that is different than
+       * the facet key of the current catalog attribute. We refer this is
+       * merged facet key as the child of the current catalog attribute. This
+       * merged facet key can't be a parent of another facet key (i.e. no
+       * directed path of length 2). This merged facet key needs to be either a
+       * textual custom attribute or a numerical custom attribute.
+       * 
+ * + * string merged_facet_key = 1; + * + * @return The bytes for mergedFacetKey. + */ + com.google.protobuf.ByteString getMergedFacetKeyBytes(); + } + /** + * + * + *
+     * The current facet key (i.e. attribute config) maps into the
+     * [merged_facet_key][google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet.merged_facet_key].
+     * A facet key can have at most one child. The current facet key and the
+     * merged facet key need both to be textual custom attributes or both
+     * numerical custom attributes (same type).
+     * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet} + */ + public static final class MergedFacet extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet) + MergedFacetOrBuilder { + private static final long serialVersionUID = 0L; + // Use MergedFacet.newBuilder() to construct. + private MergedFacet(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MergedFacet() { + mergedFacetKey_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MergedFacet(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.CatalogProto + .internal_static_google_cloud_retail_v2alpha_CatalogAttribute_FacetConfig_MergedFacet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.CatalogProto + .internal_static_google_cloud_retail_v2alpha_CatalogAttribute_FacetConfig_MergedFacet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet.class, + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet.Builder + .class); + } + + public static final int MERGED_FACET_KEY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object mergedFacetKey_ = ""; + /** + * + * + *
+       * The merged facet key should be a valid facet key that is different than
+       * the facet key of the current catalog attribute. We refer this is
+       * merged facet key as the child of the current catalog attribute. This
+       * merged facet key can't be a parent of another facet key (i.e. no
+       * directed path of length 2). This merged facet key needs to be either a
+       * textual custom attribute or a numerical custom attribute.
+       * 
+ * + * string merged_facet_key = 1; + * + * @return The mergedFacetKey. + */ + @java.lang.Override + public java.lang.String getMergedFacetKey() { + java.lang.Object ref = mergedFacetKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mergedFacetKey_ = s; + return s; + } + } + /** + * + * + *
+       * The merged facet key should be a valid facet key that is different than
+       * the facet key of the current catalog attribute. We refer this is
+       * merged facet key as the child of the current catalog attribute. This
+       * merged facet key can't be a parent of another facet key (i.e. no
+       * directed path of length 2). This merged facet key needs to be either a
+       * textual custom attribute or a numerical custom attribute.
+       * 
+ * + * string merged_facet_key = 1; + * + * @return The bytes for mergedFacetKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMergedFacetKeyBytes() { + java.lang.Object ref = mergedFacetKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mergedFacetKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mergedFacetKey_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mergedFacetKey_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mergedFacetKey_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mergedFacetKey_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet)) { + return super.equals(obj); + } + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet other = + (com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet) obj; + + if (!getMergedFacetKey().equals(other.getMergedFacetKey())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MERGED_FACET_KEY_FIELD_NUMBER; + hash = (53 * hash) + getMergedFacetKey().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+       * The current facet key (i.e. attribute config) maps into the
+       * [merged_facet_key][google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet.merged_facet_key].
+       * A facet key can have at most one child. The current facet key and the
+       * merged facet key need both to be textual custom attributes or both
+       * numerical custom attributes (same type).
+       * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet) + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.CatalogProto + .internal_static_google_cloud_retail_v2alpha_CatalogAttribute_FacetConfig_MergedFacet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.CatalogProto + .internal_static_google_cloud_retail_v2alpha_CatalogAttribute_FacetConfig_MergedFacet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet.class, + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet.Builder + .class); + } + + // Construct using + // com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + mergedFacetKey_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2alpha.CatalogProto + .internal_static_google_cloud_retail_v2alpha_CatalogAttribute_FacetConfig_MergedFacet_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet + getDefaultInstanceForType() { + return com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet build() { + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet + buildPartial() { + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet result = + new com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.mergedFacetKey_ = mergedFacetKey_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet) { + return mergeFrom( + (com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet other) { + if (other + == com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet + .getDefaultInstance()) return this; + if (!other.getMergedFacetKey().isEmpty()) { + mergedFacetKey_ = other.mergedFacetKey_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + mergedFacetKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object mergedFacetKey_ = ""; + /** + * + * + *
+         * The merged facet key should be a valid facet key that is different than
+         * the facet key of the current catalog attribute. We refer this is
+         * merged facet key as the child of the current catalog attribute. This
+         * merged facet key can't be a parent of another facet key (i.e. no
+         * directed path of length 2). This merged facet key needs to be either a
+         * textual custom attribute or a numerical custom attribute.
+         * 
+ * + * string merged_facet_key = 1; + * + * @return The mergedFacetKey. + */ + public java.lang.String getMergedFacetKey() { + java.lang.Object ref = mergedFacetKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mergedFacetKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * The merged facet key should be a valid facet key that is different than
+         * the facet key of the current catalog attribute. We refer this is
+         * merged facet key as the child of the current catalog attribute. This
+         * merged facet key can't be a parent of another facet key (i.e. no
+         * directed path of length 2). This merged facet key needs to be either a
+         * textual custom attribute or a numerical custom attribute.
+         * 
+ * + * string merged_facet_key = 1; + * + * @return The bytes for mergedFacetKey. + */ + public com.google.protobuf.ByteString getMergedFacetKeyBytes() { + java.lang.Object ref = mergedFacetKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mergedFacetKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * The merged facet key should be a valid facet key that is different than
+         * the facet key of the current catalog attribute. We refer this is
+         * merged facet key as the child of the current catalog attribute. This
+         * merged facet key can't be a parent of another facet key (i.e. no
+         * directed path of length 2). This merged facet key needs to be either a
+         * textual custom attribute or a numerical custom attribute.
+         * 
+ * + * string merged_facet_key = 1; + * + * @param value The mergedFacetKey to set. + * @return This builder for chaining. + */ + public Builder setMergedFacetKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + mergedFacetKey_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * The merged facet key should be a valid facet key that is different than
+         * the facet key of the current catalog attribute. We refer this is
+         * merged facet key as the child of the current catalog attribute. This
+         * merged facet key can't be a parent of another facet key (i.e. no
+         * directed path of length 2). This merged facet key needs to be either a
+         * textual custom attribute or a numerical custom attribute.
+         * 
+ * + * string merged_facet_key = 1; + * + * @return This builder for chaining. + */ + public Builder clearMergedFacetKey() { + mergedFacetKey_ = getDefaultInstance().getMergedFacetKey(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+         * The merged facet key should be a valid facet key that is different than
+         * the facet key of the current catalog attribute. We refer this is
+         * merged facet key as the child of the current catalog attribute. This
+         * merged facet key can't be a parent of another facet key (i.e. no
+         * directed path of length 2). This merged facet key needs to be either a
+         * textual custom attribute or a numerical custom attribute.
+         * 
+ * + * string merged_facet_key = 1; + * + * @param value The bytes for mergedFacetKey to set. + * @return This builder for chaining. + */ + public Builder setMergedFacetKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mergedFacetKey_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet) + private static final com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet(); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MergedFacet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface RerankConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * If set to true, then we also rerank the dynamic facets based on the
+       * facet values engaged by the user for the current attribute key during
+       * serving.
+       * 
+ * + * bool rerank_facet = 1; + * + * @return The rerankFacet. + */ + boolean getRerankFacet(); + + /** + * + * + *
+       * If empty, rerank on all facet values for the current key. Otherwise,
+       * will rerank on the facet values from this list only.
+       * 
+ * + * repeated string facet_values = 2; + * + * @return A list containing the facetValues. + */ + java.util.List getFacetValuesList(); + /** + * + * + *
+       * If empty, rerank on all facet values for the current key. Otherwise,
+       * will rerank on the facet values from this list only.
+       * 
+ * + * repeated string facet_values = 2; + * + * @return The count of facetValues. + */ + int getFacetValuesCount(); + /** + * + * + *
+       * If empty, rerank on all facet values for the current key. Otherwise,
+       * will rerank on the facet values from this list only.
+       * 
+ * + * repeated string facet_values = 2; + * + * @param index The index of the element to return. + * @return The facetValues at the given index. + */ + java.lang.String getFacetValues(int index); + /** + * + * + *
+       * If empty, rerank on all facet values for the current key. Otherwise,
+       * will rerank on the facet values from this list only.
+       * 
+ * + * repeated string facet_values = 2; + * + * @param index The index of the value to return. + * @return The bytes of the facetValues at the given index. + */ + com.google.protobuf.ByteString getFacetValuesBytes(int index); + } + /** + * + * + *
+     * Options to rerank based on facet values engaged by the user for the
+     * current key. That key needs to be a custom textual key and facetable.
+     * To use this control, you also need to pass all the facet keys engaged by
+     * the user in the request using the field [SearchRequest.FacetSpec]. In
+     * particular, if you don't pass the facet keys engaged that you want to
+     * rerank on, this control won't be effective. Moreover, to obtain better
+     * results, the facet values that you want to rerank on should be close to
+     * English (ideally made of words, underscores, and spaces).
+     * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig} + */ + public static final class RerankConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig) + RerankConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use RerankConfig.newBuilder() to construct. + private RerankConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RerankConfig() { + facetValues_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RerankConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.CatalogProto + .internal_static_google_cloud_retail_v2alpha_CatalogAttribute_FacetConfig_RerankConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.CatalogProto + .internal_static_google_cloud_retail_v2alpha_CatalogAttribute_FacetConfig_RerankConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig.class, + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig.Builder + .class); + } + + public static final int RERANK_FACET_FIELD_NUMBER = 1; + private boolean rerankFacet_ = false; + /** + * + * + *
+       * If set to true, then we also rerank the dynamic facets based on the
+       * facet values engaged by the user for the current attribute key during
+       * serving.
+       * 
+ * + * bool rerank_facet = 1; + * + * @return The rerankFacet. + */ + @java.lang.Override + public boolean getRerankFacet() { + return rerankFacet_; + } + + public static final int FACET_VALUES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList facetValues_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+       * If empty, rerank on all facet values for the current key. Otherwise,
+       * will rerank on the facet values from this list only.
+       * 
+ * + * repeated string facet_values = 2; + * + * @return A list containing the facetValues. + */ + public com.google.protobuf.ProtocolStringList getFacetValuesList() { + return facetValues_; + } + /** + * + * + *
+       * If empty, rerank on all facet values for the current key. Otherwise,
+       * will rerank on the facet values from this list only.
+       * 
+ * + * repeated string facet_values = 2; + * + * @return The count of facetValues. + */ + public int getFacetValuesCount() { + return facetValues_.size(); + } + /** + * + * + *
+       * If empty, rerank on all facet values for the current key. Otherwise,
+       * will rerank on the facet values from this list only.
+       * 
+ * + * repeated string facet_values = 2; + * + * @param index The index of the element to return. + * @return The facetValues at the given index. + */ + public java.lang.String getFacetValues(int index) { + return facetValues_.get(index); + } + /** + * + * + *
+       * If empty, rerank on all facet values for the current key. Otherwise,
+       * will rerank on the facet values from this list only.
+       * 
+ * + * repeated string facet_values = 2; + * + * @param index The index of the value to return. + * @return The bytes of the facetValues at the given index. + */ + public com.google.protobuf.ByteString getFacetValuesBytes(int index) { + return facetValues_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (rerankFacet_ != false) { + output.writeBool(1, rerankFacet_); + } + for (int i = 0; i < facetValues_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, facetValues_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (rerankFacet_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, rerankFacet_); + } + { + int dataSize = 0; + for (int i = 0; i < facetValues_.size(); i++) { + dataSize += computeStringSizeNoTag(facetValues_.getRaw(i)); + } + size += dataSize; + size += 1 * getFacetValuesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig)) { + return super.equals(obj); + } + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig other = + (com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig) obj; + + if (getRerankFacet() != other.getRerankFacet()) return false; + if (!getFacetValuesList().equals(other.getFacetValuesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RERANK_FACET_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRerankFacet()); + if (getFacetValuesCount() > 0) { + hash = (37 * hash) + FACET_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getFacetValuesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+       * Options to rerank based on facet values engaged by the user for the
+       * current key. That key needs to be a custom textual key and facetable.
+       * To use this control, you also need to pass all the facet keys engaged by
+       * the user in the request using the field [SearchRequest.FacetSpec]. In
+       * particular, if you don't pass the facet keys engaged that you want to
+       * rerank on, this control won't be effective. Moreover, to obtain better
+       * results, the facet values that you want to rerank on should be close to
+       * English (ideally made of words, underscores, and spaces).
+       * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig) + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.CatalogProto + .internal_static_google_cloud_retail_v2alpha_CatalogAttribute_FacetConfig_RerankConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.CatalogProto + .internal_static_google_cloud_retail_v2alpha_CatalogAttribute_FacetConfig_RerankConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig.class, + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig.Builder + .class); + } + + // Construct using + // com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + rerankFacet_ = false; + facetValues_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2alpha.CatalogProto + .internal_static_google_cloud_retail_v2alpha_CatalogAttribute_FacetConfig_RerankConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig + getDefaultInstanceForType() { + return com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig build() { + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig + buildPartial() { + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig result = + new com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.rerankFacet_ = rerankFacet_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + facetValues_.makeImmutable(); + result.facetValues_ = facetValues_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig) { + return mergeFrom( + (com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig other) { + if (other + == com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig + .getDefaultInstance()) return this; + if (other.getRerankFacet() != false) { + setRerankFacet(other.getRerankFacet()); + } + if (!other.facetValues_.isEmpty()) { + if (facetValues_.isEmpty()) { + facetValues_ = other.facetValues_; + bitField0_ |= 0x00000002; + } else { + ensureFacetValuesIsMutable(); + facetValues_.addAll(other.facetValues_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + rerankFacet_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureFacetValuesIsMutable(); + facetValues_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean rerankFacet_; + /** + * + * + *
+         * If set to true, then we also rerank the dynamic facets based on the
+         * facet values engaged by the user for the current attribute key during
+         * serving.
+         * 
+ * + * bool rerank_facet = 1; + * + * @return The rerankFacet. + */ + @java.lang.Override + public boolean getRerankFacet() { + return rerankFacet_; + } + /** + * + * + *
+         * If set to true, then we also rerank the dynamic facets based on the
+         * facet values engaged by the user for the current attribute key during
+         * serving.
+         * 
+ * + * bool rerank_facet = 1; + * + * @param value The rerankFacet to set. + * @return This builder for chaining. + */ + public Builder setRerankFacet(boolean value) { + + rerankFacet_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * If set to true, then we also rerank the dynamic facets based on the
+         * facet values engaged by the user for the current attribute key during
+         * serving.
+         * 
+ * + * bool rerank_facet = 1; + * + * @return This builder for chaining. + */ + public Builder clearRerankFacet() { + bitField0_ = (bitField0_ & ~0x00000001); + rerankFacet_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList facetValues_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureFacetValuesIsMutable() { + if (!facetValues_.isModifiable()) { + facetValues_ = new com.google.protobuf.LazyStringArrayList(facetValues_); + } + bitField0_ |= 0x00000002; + } + /** + * + * + *
+         * If empty, rerank on all facet values for the current key. Otherwise,
+         * will rerank on the facet values from this list only.
+         * 
+ * + * repeated string facet_values = 2; + * + * @return A list containing the facetValues. + */ + public com.google.protobuf.ProtocolStringList getFacetValuesList() { + facetValues_.makeImmutable(); + return facetValues_; + } + /** + * + * + *
+         * If empty, rerank on all facet values for the current key. Otherwise,
+         * will rerank on the facet values from this list only.
+         * 
+ * + * repeated string facet_values = 2; + * + * @return The count of facetValues. + */ + public int getFacetValuesCount() { + return facetValues_.size(); + } + /** + * + * + *
+         * If empty, rerank on all facet values for the current key. Otherwise,
+         * will rerank on the facet values from this list only.
+         * 
+ * + * repeated string facet_values = 2; + * + * @param index The index of the element to return. + * @return The facetValues at the given index. + */ + public java.lang.String getFacetValues(int index) { + return facetValues_.get(index); + } + /** + * + * + *
+         * If empty, rerank on all facet values for the current key. Otherwise,
+         * will rerank on the facet values from this list only.
+         * 
+ * + * repeated string facet_values = 2; + * + * @param index The index of the value to return. + * @return The bytes of the facetValues at the given index. + */ + public com.google.protobuf.ByteString getFacetValuesBytes(int index) { + return facetValues_.getByteString(index); + } + /** + * + * + *
+         * If empty, rerank on all facet values for the current key. Otherwise,
+         * will rerank on the facet values from this list only.
+         * 
+ * + * repeated string facet_values = 2; + * + * @param index The index to set the value at. + * @param value The facetValues to set. + * @return This builder for chaining. + */ + public Builder setFacetValues(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFacetValuesIsMutable(); + facetValues_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+         * If empty, rerank on all facet values for the current key. Otherwise,
+         * will rerank on the facet values from this list only.
+         * 
+ * + * repeated string facet_values = 2; + * + * @param value The facetValues to add. + * @return This builder for chaining. + */ + public Builder addFacetValues(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFacetValuesIsMutable(); + facetValues_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+         * If empty, rerank on all facet values for the current key. Otherwise,
+         * will rerank on the facet values from this list only.
+         * 
+ * + * repeated string facet_values = 2; + * + * @param values The facetValues to add. + * @return This builder for chaining. + */ + public Builder addAllFacetValues(java.lang.Iterable values) { + ensureFacetValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, facetValues_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+         * If empty, rerank on all facet values for the current key. Otherwise,
+         * will rerank on the facet values from this list only.
+         * 
+ * + * repeated string facet_values = 2; + * + * @return This builder for chaining. + */ + public Builder clearFacetValues() { + facetValues_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + /** + * + * + *
+         * If empty, rerank on all facet values for the current key. Otherwise,
+         * will rerank on the facet values from this list only.
+         * 
+ * + * repeated string facet_values = 2; + * + * @param value The bytes of the facetValues to add. + * @return This builder for chaining. + */ + public Builder addFacetValuesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureFacetValuesIsMutable(); + facetValues_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig) + private static final com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig(); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RerankConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int FACET_INTERVALS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List facetIntervals_; + /** + * + * + *
+     * If you don't set the facet
+     * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.intervals]
+     * in the request to a numerical attribute, then we use the computed
+     * intervals with rounded bounds obtained from all its product numerical
+     * attribute values. The computed intervals might not be ideal for some
+     * attributes. Therefore, we give you the option to overwrite them with the
+     * facet_intervals field. The maximum of facet intervals per
+     * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 40.
+     * Each interval must have a lower bound or an upper bound. If both bounds
+     * are provided, then the lower bound must be smaller or equal than the
+     * upper bound.
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.Interval facet_intervals = 1; + */ + @java.lang.Override + public java.util.List getFacetIntervalsList() { + return facetIntervals_; + } + /** + * + * + *
+     * If you don't set the facet
+     * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.intervals]
+     * in the request to a numerical attribute, then we use the computed
+     * intervals with rounded bounds obtained from all its product numerical
+     * attribute values. The computed intervals might not be ideal for some
+     * attributes. Therefore, we give you the option to overwrite them with the
+     * facet_intervals field. The maximum of facet intervals per
+     * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 40.
+     * Each interval must have a lower bound or an upper bound. If both bounds
+     * are provided, then the lower bound must be smaller or equal than the
+     * upper bound.
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.Interval facet_intervals = 1; + */ + @java.lang.Override + public java.util.List + getFacetIntervalsOrBuilderList() { + return facetIntervals_; + } + /** + * + * + *
+     * If you don't set the facet
+     * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.intervals]
+     * in the request to a numerical attribute, then we use the computed
+     * intervals with rounded bounds obtained from all its product numerical
+     * attribute values. The computed intervals might not be ideal for some
+     * attributes. Therefore, we give you the option to overwrite them with the
+     * facet_intervals field. The maximum of facet intervals per
+     * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 40.
+     * Each interval must have a lower bound or an upper bound. If both bounds
+     * are provided, then the lower bound must be smaller or equal than the
+     * upper bound.
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.Interval facet_intervals = 1; + */ + @java.lang.Override + public int getFacetIntervalsCount() { + return facetIntervals_.size(); + } + /** + * + * + *
+     * If you don't set the facet
+     * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.intervals]
+     * in the request to a numerical attribute, then we use the computed
+     * intervals with rounded bounds obtained from all its product numerical
+     * attribute values. The computed intervals might not be ideal for some
+     * attributes. Therefore, we give you the option to overwrite them with the
+     * facet_intervals field. The maximum of facet intervals per
+     * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 40.
+     * Each interval must have a lower bound or an upper bound. If both bounds
+     * are provided, then the lower bound must be smaller or equal than the
+     * upper bound.
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.Interval facet_intervals = 1; + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.Interval getFacetIntervals(int index) { + return facetIntervals_.get(index); + } + /** + * + * + *
+     * If you don't set the facet
+     * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.intervals]
+     * in the request to a numerical attribute, then we use the computed
+     * intervals with rounded bounds obtained from all its product numerical
+     * attribute values. The computed intervals might not be ideal for some
+     * attributes. Therefore, we give you the option to overwrite them with the
+     * facet_intervals field. The maximum of facet intervals per
+     * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 40.
+     * Each interval must have a lower bound or an upper bound. If both bounds
+     * are provided, then the lower bound must be smaller or equal than the
+     * upper bound.
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.Interval facet_intervals = 1; + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.IntervalOrBuilder getFacetIntervalsOrBuilder(int index) { + return facetIntervals_.get(index); + } + + public static final int IGNORED_FACET_VALUES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues> + ignoredFacetValues_; + /** + * + * + *
+     * Each instance represents a list of attribute values to ignore as facet
+     * values for a specific time range. The maximum number of instances per
+     * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 25.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues> + getIgnoredFacetValuesList() { + return ignoredFacetValues_; + } + /** + * + * + *
+     * Each instance represents a list of attribute values to ignore as facet
+     * values for a specific time range. The maximum number of instances per
+     * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 25.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig + .IgnoredFacetValuesOrBuilder> + getIgnoredFacetValuesOrBuilderList() { + return ignoredFacetValues_; + } + /** + * + * + *
+     * Each instance represents a list of attribute values to ignore as facet
+     * values for a specific time range. The maximum number of instances per
+     * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 25.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + @java.lang.Override + public int getIgnoredFacetValuesCount() { + return ignoredFacetValues_.size(); + } + /** + * + * + *
+     * Each instance represents a list of attribute values to ignore as facet
+     * values for a specific time range. The maximum number of instances per
+     * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 25.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues + getIgnoredFacetValues(int index) { + return ignoredFacetValues_.get(index); + } + /** + * + * + *
+     * Each instance represents a list of attribute values to ignore as facet
+     * values for a specific time range. The maximum number of instances per
+     * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 25.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValuesOrBuilder + getIgnoredFacetValuesOrBuilder(int index) { + return ignoredFacetValues_.get(index); + } + + public static final int MERGED_FACET_VALUES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue> + mergedFacetValues_; + /** + * + * + *
+     * Each instance replaces a list of facet values by a merged facet
+     * value. If a facet value is not in any list, then it will stay the same.
+     * To avoid conflicts, only paths of length 1 are accepted. In other words,
+     * if "dark_blue" merged into "BLUE", then the latter can't merge into
+     * "blues" because this would create a path of length 2. The maximum number
+     * of instances of MergedFacetValue per
+     * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 100.
+     * This feature is available only for textual custom attributes.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue> + getMergedFacetValuesList() { + return mergedFacetValues_; + } + /** + * + * + *
+     * Each instance replaces a list of facet values by a merged facet
+     * value. If a facet value is not in any list, then it will stay the same.
+     * To avoid conflicts, only paths of length 1 are accepted. In other words,
+     * if "dark_blue" merged into "BLUE", then the latter can't merge into
+     * "blues" because this would create a path of length 2. The maximum number
+     * of instances of MergedFacetValue per
+     * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 100.
+     * This feature is available only for textual custom attributes.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig + .MergedFacetValueOrBuilder> + getMergedFacetValuesOrBuilderList() { + return mergedFacetValues_; + } + /** + * + * + *
+     * Each instance replaces a list of facet values by a merged facet
+     * value. If a facet value is not in any list, then it will stay the same.
+     * To avoid conflicts, only paths of length 1 are accepted. In other words,
+     * if "dark_blue" merged into "BLUE", then the latter can't merge into
+     * "blues" because this would create a path of length 2. The maximum number
+     * of instances of MergedFacetValue per
+     * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 100.
+     * This feature is available only for textual custom attributes.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + @java.lang.Override + public int getMergedFacetValuesCount() { + return mergedFacetValues_.size(); + } + /** + * + * + *
+     * Each instance replaces a list of facet values by a merged facet
+     * value. If a facet value is not in any list, then it will stay the same.
+     * To avoid conflicts, only paths of length 1 are accepted. In other words,
+     * if "dark_blue" merged into "BLUE", then the latter can't merge into
+     * "blues" because this would create a path of length 2. The maximum number
+     * of instances of MergedFacetValue per
+     * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 100.
+     * This feature is available only for textual custom attributes.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue + getMergedFacetValues(int index) { + return mergedFacetValues_.get(index); + } + /** + * + * + *
+     * Each instance replaces a list of facet values by a merged facet
+     * value. If a facet value is not in any list, then it will stay the same.
+     * To avoid conflicts, only paths of length 1 are accepted. In other words,
+     * if "dark_blue" merged into "BLUE", then the latter can't merge into
+     * "blues" because this would create a path of length 2. The maximum number
+     * of instances of MergedFacetValue per
+     * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 100.
+     * This feature is available only for textual custom attributes.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValueOrBuilder + getMergedFacetValuesOrBuilder(int index) { + return mergedFacetValues_.get(index); + } + + public static final int MERGED_FACET_FIELD_NUMBER = 4; + private com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet mergedFacet_; + /** + * + * + *
+     * Use this field only if you want to merge a facet key into another facet
+     * key.
+     * 
+ * + * .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet merged_facet = 4; + * + * + * @return Whether the mergedFacet field is set. + */ + @java.lang.Override + public boolean hasMergedFacet() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Use this field only if you want to merge a facet key into another facet
+     * key.
+     * 
+ * + * .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet merged_facet = 4; + * + * + * @return The mergedFacet. + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet + getMergedFacet() { + return mergedFacet_ == null + ? com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet + .getDefaultInstance() + : mergedFacet_; + } + /** + * + * + *
+     * Use this field only if you want to merge a facet key into another facet
+     * key.
+     * 
+ * + * .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet merged_facet = 4; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetOrBuilder + getMergedFacetOrBuilder() { + return mergedFacet_ == null + ? com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet + .getDefaultInstance() + : mergedFacet_; + } + + public static final int RERANK_CONFIG_FIELD_NUMBER = 5; + private com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig rerankConfig_; + /** + * + * + *
+     * Set this field only if you want to rerank based on facet values engaged
+     * by the user for the current key. This option is only possible for custom
+     * facetable textual keys.
+     * 
+ * + * + * .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig rerank_config = 5; + * + * + * @return Whether the rerankConfig field is set. + */ + @java.lang.Override + public boolean hasRerankConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Set this field only if you want to rerank based on facet values engaged
+     * by the user for the current key. This option is only possible for custom
+     * facetable textual keys.
+     * 
+ * + * + * .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig rerank_config = 5; + * + * + * @return The rerankConfig. + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig + getRerankConfig() { + return rerankConfig_ == null + ? com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig + .getDefaultInstance() + : rerankConfig_; + } + /** + * + * + *
+     * Set this field only if you want to rerank based on facet values engaged
+     * by the user for the current key. This option is only possible for custom
+     * facetable textual keys.
+     * 
+ * + * + * .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig rerank_config = 5; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfigOrBuilder + getRerankConfigOrBuilder() { + return rerankConfig_ == null + ? com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig + .getDefaultInstance() + : rerankConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < facetIntervals_.size(); i++) { + output.writeMessage(1, facetIntervals_.get(i)); + } + for (int i = 0; i < ignoredFacetValues_.size(); i++) { + output.writeMessage(2, ignoredFacetValues_.get(i)); + } + for (int i = 0; i < mergedFacetValues_.size(); i++) { + output.writeMessage(3, mergedFacetValues_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getMergedFacet()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getRerankConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < facetIntervals_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, facetIntervals_.get(i)); + } + for (int i = 0; i < ignoredFacetValues_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, ignoredFacetValues_.get(i)); + } + for (int i = 0; i < mergedFacetValues_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, mergedFacetValues_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getMergedFacet()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getRerankConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig)) { + return super.equals(obj); + } + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig other = + (com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig) obj; + + if (!getFacetIntervalsList().equals(other.getFacetIntervalsList())) return false; + if (!getIgnoredFacetValuesList().equals(other.getIgnoredFacetValuesList())) return false; + if (!getMergedFacetValuesList().equals(other.getMergedFacetValuesList())) return false; + if (hasMergedFacet() != other.hasMergedFacet()) return false; + if (hasMergedFacet()) { + if (!getMergedFacet().equals(other.getMergedFacet())) return false; + } + if (hasRerankConfig() != other.hasRerankConfig()) return false; + if (hasRerankConfig()) { + if (!getRerankConfig().equals(other.getRerankConfig())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getFacetIntervalsCount() > 0) { + hash = (37 * hash) + FACET_INTERVALS_FIELD_NUMBER; + hash = (53 * hash) + getFacetIntervalsList().hashCode(); + } + if (getIgnoredFacetValuesCount() > 0) { + hash = (37 * hash) + IGNORED_FACET_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getIgnoredFacetValuesList().hashCode(); + } + if (getMergedFacetValuesCount() > 0) { + hash = (37 * hash) + MERGED_FACET_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getMergedFacetValuesList().hashCode(); + } + if (hasMergedFacet()) { + hash = (37 * hash) + MERGED_FACET_FIELD_NUMBER; + hash = (53 * hash) + getMergedFacet().hashCode(); + } + if (hasRerankConfig()) { + hash = (37 * hash) + RERANK_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getRerankConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Possible options for the facet that corresponds to the current attribute
+     * config.
+     * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig) + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.CatalogProto + .internal_static_google_cloud_retail_v2alpha_CatalogAttribute_FacetConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.CatalogProto + .internal_static_google_cloud_retail_v2alpha_CatalogAttribute_FacetConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.class, + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.Builder.class); + } + + // Construct using com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getFacetIntervalsFieldBuilder(); + getIgnoredFacetValuesFieldBuilder(); + getMergedFacetValuesFieldBuilder(); + getMergedFacetFieldBuilder(); + getRerankConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (facetIntervalsBuilder_ == null) { + facetIntervals_ = java.util.Collections.emptyList(); + } else { + facetIntervals_ = null; + facetIntervalsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (ignoredFacetValuesBuilder_ == null) { + ignoredFacetValues_ = java.util.Collections.emptyList(); + } else { + ignoredFacetValues_ = null; + ignoredFacetValuesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (mergedFacetValuesBuilder_ == null) { + mergedFacetValues_ = java.util.Collections.emptyList(); + } else { + mergedFacetValues_ = null; + mergedFacetValuesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + mergedFacet_ = null; + if (mergedFacetBuilder_ != null) { + mergedFacetBuilder_.dispose(); + mergedFacetBuilder_ = null; + } + rerankConfig_ = null; + if (rerankConfigBuilder_ != null) { + rerankConfigBuilder_.dispose(); + rerankConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2alpha.CatalogProto + .internal_static_google_cloud_retail_v2alpha_CatalogAttribute_FacetConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig + getDefaultInstanceForType() { + return com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig build() { + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig buildPartial() { + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig result = + new com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig result) { + if (facetIntervalsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + facetIntervals_ = java.util.Collections.unmodifiableList(facetIntervals_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.facetIntervals_ = facetIntervals_; + } else { + result.facetIntervals_ = facetIntervalsBuilder_.build(); + } + if (ignoredFacetValuesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + ignoredFacetValues_ = java.util.Collections.unmodifiableList(ignoredFacetValues_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.ignoredFacetValues_ = ignoredFacetValues_; + } else { + result.ignoredFacetValues_ = ignoredFacetValuesBuilder_.build(); + } + if (mergedFacetValuesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + mergedFacetValues_ = java.util.Collections.unmodifiableList(mergedFacetValues_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.mergedFacetValues_ = mergedFacetValues_; + } else { + result.mergedFacetValues_ = mergedFacetValuesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.mergedFacet_ = + mergedFacetBuilder_ == null ? mergedFacet_ : mergedFacetBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.rerankConfig_ = + rerankConfigBuilder_ == null ? rerankConfig_ : rerankConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig) { + return mergeFrom((com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig other) { + if (other + == com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.getDefaultInstance()) + return this; + if (facetIntervalsBuilder_ == null) { + if (!other.facetIntervals_.isEmpty()) { + if (facetIntervals_.isEmpty()) { + facetIntervals_ = other.facetIntervals_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFacetIntervalsIsMutable(); + facetIntervals_.addAll(other.facetIntervals_); + } + onChanged(); + } + } else { + if (!other.facetIntervals_.isEmpty()) { + if (facetIntervalsBuilder_.isEmpty()) { + facetIntervalsBuilder_.dispose(); + facetIntervalsBuilder_ = null; + facetIntervals_ = other.facetIntervals_; + bitField0_ = (bitField0_ & ~0x00000001); + facetIntervalsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFacetIntervalsFieldBuilder() + : null; + } else { + facetIntervalsBuilder_.addAllMessages(other.facetIntervals_); + } + } + } + if (ignoredFacetValuesBuilder_ == null) { + if (!other.ignoredFacetValues_.isEmpty()) { + if (ignoredFacetValues_.isEmpty()) { + ignoredFacetValues_ = other.ignoredFacetValues_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureIgnoredFacetValuesIsMutable(); + ignoredFacetValues_.addAll(other.ignoredFacetValues_); + } + onChanged(); + } + } else { + if (!other.ignoredFacetValues_.isEmpty()) { + if (ignoredFacetValuesBuilder_.isEmpty()) { + ignoredFacetValuesBuilder_.dispose(); + ignoredFacetValuesBuilder_ = null; + ignoredFacetValues_ = other.ignoredFacetValues_; + bitField0_ = (bitField0_ & ~0x00000002); + ignoredFacetValuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getIgnoredFacetValuesFieldBuilder() + : null; + } else { + ignoredFacetValuesBuilder_.addAllMessages(other.ignoredFacetValues_); + } + } + } + if (mergedFacetValuesBuilder_ == null) { + if (!other.mergedFacetValues_.isEmpty()) { + if (mergedFacetValues_.isEmpty()) { + mergedFacetValues_ = other.mergedFacetValues_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureMergedFacetValuesIsMutable(); + mergedFacetValues_.addAll(other.mergedFacetValues_); + } + onChanged(); + } + } else { + if (!other.mergedFacetValues_.isEmpty()) { + if (mergedFacetValuesBuilder_.isEmpty()) { + mergedFacetValuesBuilder_.dispose(); + mergedFacetValuesBuilder_ = null; + mergedFacetValues_ = other.mergedFacetValues_; + bitField0_ = (bitField0_ & ~0x00000004); + mergedFacetValuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMergedFacetValuesFieldBuilder() + : null; + } else { + mergedFacetValuesBuilder_.addAllMessages(other.mergedFacetValues_); + } + } + } + if (other.hasMergedFacet()) { + mergeMergedFacet(other.getMergedFacet()); + } + if (other.hasRerankConfig()) { + mergeRerankConfig(other.getRerankConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.retail.v2alpha.Interval m = + input.readMessage( + com.google.cloud.retail.v2alpha.Interval.parser(), extensionRegistry); + if (facetIntervalsBuilder_ == null) { + ensureFacetIntervalsIsMutable(); + facetIntervals_.add(m); + } else { + facetIntervalsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues + m = + input.readMessage( + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig + .IgnoredFacetValues.parser(), + extensionRegistry); + if (ignoredFacetValuesBuilder_ == null) { + ensureIgnoredFacetValuesIsMutable(); + ignoredFacetValues_.add(m); + } else { + ignoredFacetValuesBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue m = + input.readMessage( + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig + .MergedFacetValue.parser(), + extensionRegistry); + if (mergedFacetValuesBuilder_ == null) { + ensureMergedFacetValuesIsMutable(); + mergedFacetValues_.add(m); + } else { + mergedFacetValuesBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + input.readMessage(getMergedFacetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage(getRerankConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List facetIntervals_ = + java.util.Collections.emptyList(); + + private void ensureFacetIntervalsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + facetIntervals_ = + new java.util.ArrayList(facetIntervals_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2alpha.Interval, + com.google.cloud.retail.v2alpha.Interval.Builder, + com.google.cloud.retail.v2alpha.IntervalOrBuilder> + facetIntervalsBuilder_; + + /** + * + * + *
+       * If you don't set the facet
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.intervals]
+       * in the request to a numerical attribute, then we use the computed
+       * intervals with rounded bounds obtained from all its product numerical
+       * attribute values. The computed intervals might not be ideal for some
+       * attributes. Therefore, we give you the option to overwrite them with the
+       * facet_intervals field. The maximum of facet intervals per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 40.
+       * Each interval must have a lower bound or an upper bound. If both bounds
+       * are provided, then the lower bound must be smaller or equal than the
+       * upper bound.
+       * 
+ * + * repeated .google.cloud.retail.v2alpha.Interval facet_intervals = 1; + */ + public java.util.List getFacetIntervalsList() { + if (facetIntervalsBuilder_ == null) { + return java.util.Collections.unmodifiableList(facetIntervals_); + } else { + return facetIntervalsBuilder_.getMessageList(); + } + } + /** + * + * + *
+       * If you don't set the facet
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.intervals]
+       * in the request to a numerical attribute, then we use the computed
+       * intervals with rounded bounds obtained from all its product numerical
+       * attribute values. The computed intervals might not be ideal for some
+       * attributes. Therefore, we give you the option to overwrite them with the
+       * facet_intervals field. The maximum of facet intervals per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 40.
+       * Each interval must have a lower bound or an upper bound. If both bounds
+       * are provided, then the lower bound must be smaller or equal than the
+       * upper bound.
+       * 
+ * + * repeated .google.cloud.retail.v2alpha.Interval facet_intervals = 1; + */ + public int getFacetIntervalsCount() { + if (facetIntervalsBuilder_ == null) { + return facetIntervals_.size(); + } else { + return facetIntervalsBuilder_.getCount(); + } + } + /** + * + * + *
+       * If you don't set the facet
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.intervals]
+       * in the request to a numerical attribute, then we use the computed
+       * intervals with rounded bounds obtained from all its product numerical
+       * attribute values. The computed intervals might not be ideal for some
+       * attributes. Therefore, we give you the option to overwrite them with the
+       * facet_intervals field. The maximum of facet intervals per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 40.
+       * Each interval must have a lower bound or an upper bound. If both bounds
+       * are provided, then the lower bound must be smaller or equal than the
+       * upper bound.
+       * 
+ * + * repeated .google.cloud.retail.v2alpha.Interval facet_intervals = 1; + */ + public com.google.cloud.retail.v2alpha.Interval getFacetIntervals(int index) { + if (facetIntervalsBuilder_ == null) { + return facetIntervals_.get(index); + } else { + return facetIntervalsBuilder_.getMessage(index); + } + } + /** + * + * + *
+       * If you don't set the facet
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.intervals]
+       * in the request to a numerical attribute, then we use the computed
+       * intervals with rounded bounds obtained from all its product numerical
+       * attribute values. The computed intervals might not be ideal for some
+       * attributes. Therefore, we give you the option to overwrite them with the
+       * facet_intervals field. The maximum of facet intervals per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 40.
+       * Each interval must have a lower bound or an upper bound. If both bounds
+       * are provided, then the lower bound must be smaller or equal than the
+       * upper bound.
+       * 
+ * + * repeated .google.cloud.retail.v2alpha.Interval facet_intervals = 1; + */ + public Builder setFacetIntervals(int index, com.google.cloud.retail.v2alpha.Interval value) { + if (facetIntervalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFacetIntervalsIsMutable(); + facetIntervals_.set(index, value); + onChanged(); + } else { + facetIntervalsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+       * If you don't set the facet
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.intervals]
+       * in the request to a numerical attribute, then we use the computed
+       * intervals with rounded bounds obtained from all its product numerical
+       * attribute values. The computed intervals might not be ideal for some
+       * attributes. Therefore, we give you the option to overwrite them with the
+       * facet_intervals field. The maximum of facet intervals per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 40.
+       * Each interval must have a lower bound or an upper bound. If both bounds
+       * are provided, then the lower bound must be smaller or equal than the
+       * upper bound.
+       * 
+ * + * repeated .google.cloud.retail.v2alpha.Interval facet_intervals = 1; + */ + public Builder setFacetIntervals( + int index, com.google.cloud.retail.v2alpha.Interval.Builder builderForValue) { + if (facetIntervalsBuilder_ == null) { + ensureFacetIntervalsIsMutable(); + facetIntervals_.set(index, builderForValue.build()); + onChanged(); + } else { + facetIntervalsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * If you don't set the facet
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.intervals]
+       * in the request to a numerical attribute, then we use the computed
+       * intervals with rounded bounds obtained from all its product numerical
+       * attribute values. The computed intervals might not be ideal for some
+       * attributes. Therefore, we give you the option to overwrite them with the
+       * facet_intervals field. The maximum of facet intervals per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 40.
+       * Each interval must have a lower bound or an upper bound. If both bounds
+       * are provided, then the lower bound must be smaller or equal than the
+       * upper bound.
+       * 
+ * + * repeated .google.cloud.retail.v2alpha.Interval facet_intervals = 1; + */ + public Builder addFacetIntervals(com.google.cloud.retail.v2alpha.Interval value) { + if (facetIntervalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFacetIntervalsIsMutable(); + facetIntervals_.add(value); + onChanged(); + } else { + facetIntervalsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+       * If you don't set the facet
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.intervals]
+       * in the request to a numerical attribute, then we use the computed
+       * intervals with rounded bounds obtained from all its product numerical
+       * attribute values. The computed intervals might not be ideal for some
+       * attributes. Therefore, we give you the option to overwrite them with the
+       * facet_intervals field. The maximum of facet intervals per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 40.
+       * Each interval must have a lower bound or an upper bound. If both bounds
+       * are provided, then the lower bound must be smaller or equal than the
+       * upper bound.
+       * 
+ * + * repeated .google.cloud.retail.v2alpha.Interval facet_intervals = 1; + */ + public Builder addFacetIntervals(int index, com.google.cloud.retail.v2alpha.Interval value) { + if (facetIntervalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFacetIntervalsIsMutable(); + facetIntervals_.add(index, value); + onChanged(); + } else { + facetIntervalsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+       * If you don't set the facet
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.intervals]
+       * in the request to a numerical attribute, then we use the computed
+       * intervals with rounded bounds obtained from all its product numerical
+       * attribute values. The computed intervals might not be ideal for some
+       * attributes. Therefore, we give you the option to overwrite them with the
+       * facet_intervals field. The maximum of facet intervals per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 40.
+       * Each interval must have a lower bound or an upper bound. If both bounds
+       * are provided, then the lower bound must be smaller or equal than the
+       * upper bound.
+       * 
+ * + * repeated .google.cloud.retail.v2alpha.Interval facet_intervals = 1; + */ + public Builder addFacetIntervals( + com.google.cloud.retail.v2alpha.Interval.Builder builderForValue) { + if (facetIntervalsBuilder_ == null) { + ensureFacetIntervalsIsMutable(); + facetIntervals_.add(builderForValue.build()); + onChanged(); + } else { + facetIntervalsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * If you don't set the facet
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.intervals]
+       * in the request to a numerical attribute, then we use the computed
+       * intervals with rounded bounds obtained from all its product numerical
+       * attribute values. The computed intervals might not be ideal for some
+       * attributes. Therefore, we give you the option to overwrite them with the
+       * facet_intervals field. The maximum of facet intervals per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 40.
+       * Each interval must have a lower bound or an upper bound. If both bounds
+       * are provided, then the lower bound must be smaller or equal than the
+       * upper bound.
+       * 
+ * + * repeated .google.cloud.retail.v2alpha.Interval facet_intervals = 1; + */ + public Builder addFacetIntervals( + int index, com.google.cloud.retail.v2alpha.Interval.Builder builderForValue) { + if (facetIntervalsBuilder_ == null) { + ensureFacetIntervalsIsMutable(); + facetIntervals_.add(index, builderForValue.build()); + onChanged(); + } else { + facetIntervalsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * If you don't set the facet
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.intervals]
+       * in the request to a numerical attribute, then we use the computed
+       * intervals with rounded bounds obtained from all its product numerical
+       * attribute values. The computed intervals might not be ideal for some
+       * attributes. Therefore, we give you the option to overwrite them with the
+       * facet_intervals field. The maximum of facet intervals per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 40.
+       * Each interval must have a lower bound or an upper bound. If both bounds
+       * are provided, then the lower bound must be smaller or equal than the
+       * upper bound.
+       * 
+ * + * repeated .google.cloud.retail.v2alpha.Interval facet_intervals = 1; + */ + public Builder addAllFacetIntervals( + java.lang.Iterable values) { + if (facetIntervalsBuilder_ == null) { + ensureFacetIntervalsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, facetIntervals_); + onChanged(); + } else { + facetIntervalsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+       * If you don't set the facet
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.intervals]
+       * in the request to a numerical attribute, then we use the computed
+       * intervals with rounded bounds obtained from all its product numerical
+       * attribute values. The computed intervals might not be ideal for some
+       * attributes. Therefore, we give you the option to overwrite them with the
+       * facet_intervals field. The maximum of facet intervals per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 40.
+       * Each interval must have a lower bound or an upper bound. If both bounds
+       * are provided, then the lower bound must be smaller or equal than the
+       * upper bound.
+       * 
+ * + * repeated .google.cloud.retail.v2alpha.Interval facet_intervals = 1; + */ + public Builder clearFacetIntervals() { + if (facetIntervalsBuilder_ == null) { + facetIntervals_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + facetIntervalsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * If you don't set the facet
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.intervals]
+       * in the request to a numerical attribute, then we use the computed
+       * intervals with rounded bounds obtained from all its product numerical
+       * attribute values. The computed intervals might not be ideal for some
+       * attributes. Therefore, we give you the option to overwrite them with the
+       * facet_intervals field. The maximum of facet intervals per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 40.
+       * Each interval must have a lower bound or an upper bound. If both bounds
+       * are provided, then the lower bound must be smaller or equal than the
+       * upper bound.
+       * 
+ * + * repeated .google.cloud.retail.v2alpha.Interval facet_intervals = 1; + */ + public Builder removeFacetIntervals(int index) { + if (facetIntervalsBuilder_ == null) { + ensureFacetIntervalsIsMutable(); + facetIntervals_.remove(index); + onChanged(); + } else { + facetIntervalsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+       * If you don't set the facet
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.intervals]
+       * in the request to a numerical attribute, then we use the computed
+       * intervals with rounded bounds obtained from all its product numerical
+       * attribute values. The computed intervals might not be ideal for some
+       * attributes. Therefore, we give you the option to overwrite them with the
+       * facet_intervals field. The maximum of facet intervals per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 40.
+       * Each interval must have a lower bound or an upper bound. If both bounds
+       * are provided, then the lower bound must be smaller or equal than the
+       * upper bound.
+       * 
+ * + * repeated .google.cloud.retail.v2alpha.Interval facet_intervals = 1; + */ + public com.google.cloud.retail.v2alpha.Interval.Builder getFacetIntervalsBuilder(int index) { + return getFacetIntervalsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * If you don't set the facet
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.intervals]
+       * in the request to a numerical attribute, then we use the computed
+       * intervals with rounded bounds obtained from all its product numerical
+       * attribute values. The computed intervals might not be ideal for some
+       * attributes. Therefore, we give you the option to overwrite them with the
+       * facet_intervals field. The maximum of facet intervals per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 40.
+       * Each interval must have a lower bound or an upper bound. If both bounds
+       * are provided, then the lower bound must be smaller or equal than the
+       * upper bound.
+       * 
+ * + * repeated .google.cloud.retail.v2alpha.Interval facet_intervals = 1; + */ + public com.google.cloud.retail.v2alpha.IntervalOrBuilder getFacetIntervalsOrBuilder( + int index) { + if (facetIntervalsBuilder_ == null) { + return facetIntervals_.get(index); + } else { + return facetIntervalsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+       * If you don't set the facet
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.intervals]
+       * in the request to a numerical attribute, then we use the computed
+       * intervals with rounded bounds obtained from all its product numerical
+       * attribute values. The computed intervals might not be ideal for some
+       * attributes. Therefore, we give you the option to overwrite them with the
+       * facet_intervals field. The maximum of facet intervals per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 40.
+       * Each interval must have a lower bound or an upper bound. If both bounds
+       * are provided, then the lower bound must be smaller or equal than the
+       * upper bound.
+       * 
+ * + * repeated .google.cloud.retail.v2alpha.Interval facet_intervals = 1; + */ + public java.util.List + getFacetIntervalsOrBuilderList() { + if (facetIntervalsBuilder_ != null) { + return facetIntervalsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(facetIntervals_); + } + } + /** + * + * + *
+       * If you don't set the facet
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.intervals]
+       * in the request to a numerical attribute, then we use the computed
+       * intervals with rounded bounds obtained from all its product numerical
+       * attribute values. The computed intervals might not be ideal for some
+       * attributes. Therefore, we give you the option to overwrite them with the
+       * facet_intervals field. The maximum of facet intervals per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 40.
+       * Each interval must have a lower bound or an upper bound. If both bounds
+       * are provided, then the lower bound must be smaller or equal than the
+       * upper bound.
+       * 
+ * + * repeated .google.cloud.retail.v2alpha.Interval facet_intervals = 1; + */ + public com.google.cloud.retail.v2alpha.Interval.Builder addFacetIntervalsBuilder() { + return getFacetIntervalsFieldBuilder() + .addBuilder(com.google.cloud.retail.v2alpha.Interval.getDefaultInstance()); + } + /** + * + * + *
+       * If you don't set the facet
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.intervals]
+       * in the request to a numerical attribute, then we use the computed
+       * intervals with rounded bounds obtained from all its product numerical
+       * attribute values. The computed intervals might not be ideal for some
+       * attributes. Therefore, we give you the option to overwrite them with the
+       * facet_intervals field. The maximum of facet intervals per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 40.
+       * Each interval must have a lower bound or an upper bound. If both bounds
+       * are provided, then the lower bound must be smaller or equal than the
+       * upper bound.
+       * 
+ * + * repeated .google.cloud.retail.v2alpha.Interval facet_intervals = 1; + */ + public com.google.cloud.retail.v2alpha.Interval.Builder addFacetIntervalsBuilder(int index) { + return getFacetIntervalsFieldBuilder() + .addBuilder(index, com.google.cloud.retail.v2alpha.Interval.getDefaultInstance()); + } + /** + * + * + *
+       * If you don't set the facet
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.intervals]
+       * in the request to a numerical attribute, then we use the computed
+       * intervals with rounded bounds obtained from all its product numerical
+       * attribute values. The computed intervals might not be ideal for some
+       * attributes. Therefore, we give you the option to overwrite them with the
+       * facet_intervals field. The maximum of facet intervals per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 40.
+       * Each interval must have a lower bound or an upper bound. If both bounds
+       * are provided, then the lower bound must be smaller or equal than the
+       * upper bound.
+       * 
+ * + * repeated .google.cloud.retail.v2alpha.Interval facet_intervals = 1; + */ + public java.util.List + getFacetIntervalsBuilderList() { + return getFacetIntervalsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2alpha.Interval, + com.google.cloud.retail.v2alpha.Interval.Builder, + com.google.cloud.retail.v2alpha.IntervalOrBuilder> + getFacetIntervalsFieldBuilder() { + if (facetIntervalsBuilder_ == null) { + facetIntervalsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2alpha.Interval, + com.google.cloud.retail.v2alpha.Interval.Builder, + com.google.cloud.retail.v2alpha.IntervalOrBuilder>( + facetIntervals_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + facetIntervals_ = null; + } + return facetIntervalsBuilder_; + } + + private java.util.List< + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues> + ignoredFacetValues_ = java.util.Collections.emptyList(); + + private void ensureIgnoredFacetValuesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + ignoredFacetValues_ = + new java.util.ArrayList< + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues>( + ignoredFacetValues_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues, + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues + .Builder, + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig + .IgnoredFacetValuesOrBuilder> + ignoredFacetValuesBuilder_; + + /** + * + * + *
+       * Each instance represents a list of attribute values to ignore as facet
+       * values for a specific time range. The maximum number of instances per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 25.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + public java.util.List< + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues> + getIgnoredFacetValuesList() { + if (ignoredFacetValuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(ignoredFacetValues_); + } else { + return ignoredFacetValuesBuilder_.getMessageList(); + } + } + /** + * + * + *
+       * Each instance represents a list of attribute values to ignore as facet
+       * values for a specific time range. The maximum number of instances per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 25.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + public int getIgnoredFacetValuesCount() { + if (ignoredFacetValuesBuilder_ == null) { + return ignoredFacetValues_.size(); + } else { + return ignoredFacetValuesBuilder_.getCount(); + } + } + /** + * + * + *
+       * Each instance represents a list of attribute values to ignore as facet
+       * values for a specific time range. The maximum number of instances per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 25.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + public com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues + getIgnoredFacetValues(int index) { + if (ignoredFacetValuesBuilder_ == null) { + return ignoredFacetValues_.get(index); + } else { + return ignoredFacetValuesBuilder_.getMessage(index); + } + } + /** + * + * + *
+       * Each instance represents a list of attribute values to ignore as facet
+       * values for a specific time range. The maximum number of instances per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 25.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + public Builder setIgnoredFacetValues( + int index, + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues value) { + if (ignoredFacetValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIgnoredFacetValuesIsMutable(); + ignoredFacetValues_.set(index, value); + onChanged(); + } else { + ignoredFacetValuesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Each instance represents a list of attribute values to ignore as facet
+       * values for a specific time range. The maximum number of instances per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 25.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + public Builder setIgnoredFacetValues( + int index, + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues.Builder + builderForValue) { + if (ignoredFacetValuesBuilder_ == null) { + ensureIgnoredFacetValuesIsMutable(); + ignoredFacetValues_.set(index, builderForValue.build()); + onChanged(); + } else { + ignoredFacetValuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Each instance represents a list of attribute values to ignore as facet
+       * values for a specific time range. The maximum number of instances per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 25.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + public Builder addIgnoredFacetValues( + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues value) { + if (ignoredFacetValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIgnoredFacetValuesIsMutable(); + ignoredFacetValues_.add(value); + onChanged(); + } else { + ignoredFacetValuesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+       * Each instance represents a list of attribute values to ignore as facet
+       * values for a specific time range. The maximum number of instances per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 25.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + public Builder addIgnoredFacetValues( + int index, + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues value) { + if (ignoredFacetValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIgnoredFacetValuesIsMutable(); + ignoredFacetValues_.add(index, value); + onChanged(); + } else { + ignoredFacetValuesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Each instance represents a list of attribute values to ignore as facet
+       * values for a specific time range. The maximum number of instances per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 25.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + public Builder addIgnoredFacetValues( + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues.Builder + builderForValue) { + if (ignoredFacetValuesBuilder_ == null) { + ensureIgnoredFacetValuesIsMutable(); + ignoredFacetValues_.add(builderForValue.build()); + onChanged(); + } else { + ignoredFacetValuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Each instance represents a list of attribute values to ignore as facet
+       * values for a specific time range. The maximum number of instances per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 25.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + public Builder addIgnoredFacetValues( + int index, + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues.Builder + builderForValue) { + if (ignoredFacetValuesBuilder_ == null) { + ensureIgnoredFacetValuesIsMutable(); + ignoredFacetValues_.add(index, builderForValue.build()); + onChanged(); + } else { + ignoredFacetValuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Each instance represents a list of attribute values to ignore as facet
+       * values for a specific time range. The maximum number of instances per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 25.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + public Builder addAllIgnoredFacetValues( + java.lang.Iterable< + ? extends + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig + .IgnoredFacetValues> + values) { + if (ignoredFacetValuesBuilder_ == null) { + ensureIgnoredFacetValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ignoredFacetValues_); + onChanged(); + } else { + ignoredFacetValuesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+       * Each instance represents a list of attribute values to ignore as facet
+       * values for a specific time range. The maximum number of instances per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 25.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + public Builder clearIgnoredFacetValues() { + if (ignoredFacetValuesBuilder_ == null) { + ignoredFacetValues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + ignoredFacetValuesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Each instance represents a list of attribute values to ignore as facet
+       * values for a specific time range. The maximum number of instances per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 25.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + public Builder removeIgnoredFacetValues(int index) { + if (ignoredFacetValuesBuilder_ == null) { + ensureIgnoredFacetValuesIsMutable(); + ignoredFacetValues_.remove(index); + onChanged(); + } else { + ignoredFacetValuesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+       * Each instance represents a list of attribute values to ignore as facet
+       * values for a specific time range. The maximum number of instances per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 25.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + public com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues.Builder + getIgnoredFacetValuesBuilder(int index) { + return getIgnoredFacetValuesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * Each instance represents a list of attribute values to ignore as facet
+       * values for a specific time range. The maximum number of instances per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 25.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + public com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig + .IgnoredFacetValuesOrBuilder + getIgnoredFacetValuesOrBuilder(int index) { + if (ignoredFacetValuesBuilder_ == null) { + return ignoredFacetValues_.get(index); + } else { + return ignoredFacetValuesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+       * Each instance represents a list of attribute values to ignore as facet
+       * values for a specific time range. The maximum number of instances per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 25.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + public java.util.List< + ? extends + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig + .IgnoredFacetValuesOrBuilder> + getIgnoredFacetValuesOrBuilderList() { + if (ignoredFacetValuesBuilder_ != null) { + return ignoredFacetValuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(ignoredFacetValues_); + } + } + /** + * + * + *
+       * Each instance represents a list of attribute values to ignore as facet
+       * values for a specific time range. The maximum number of instances per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 25.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + public com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues.Builder + addIgnoredFacetValuesBuilder() { + return getIgnoredFacetValuesFieldBuilder() + .addBuilder( + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues + .getDefaultInstance()); + } + /** + * + * + *
+       * Each instance represents a list of attribute values to ignore as facet
+       * values for a specific time range. The maximum number of instances per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 25.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + public com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues.Builder + addIgnoredFacetValuesBuilder(int index) { + return getIgnoredFacetValuesFieldBuilder() + .addBuilder( + index, + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues + .getDefaultInstance()); + } + /** + * + * + *
+       * Each instance represents a list of attribute values to ignore as facet
+       * values for a specific time range. The maximum number of instances per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 25.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + public java.util.List< + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues + .Builder> + getIgnoredFacetValuesBuilderList() { + return getIgnoredFacetValuesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues, + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues + .Builder, + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig + .IgnoredFacetValuesOrBuilder> + getIgnoredFacetValuesFieldBuilder() { + if (ignoredFacetValuesBuilder_ == null) { + ignoredFacetValuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues, + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.IgnoredFacetValues + .Builder, + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig + .IgnoredFacetValuesOrBuilder>( + ignoredFacetValues_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + ignoredFacetValues_ = null; + } + return ignoredFacetValuesBuilder_; + } + + private java.util.List< + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue> + mergedFacetValues_ = java.util.Collections.emptyList(); + + private void ensureMergedFacetValuesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + mergedFacetValues_ = + new java.util.ArrayList< + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue>( + mergedFacetValues_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue, + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue.Builder, + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig + .MergedFacetValueOrBuilder> + mergedFacetValuesBuilder_; + + /** + * + * + *
+       * Each instance replaces a list of facet values by a merged facet
+       * value. If a facet value is not in any list, then it will stay the same.
+       * To avoid conflicts, only paths of length 1 are accepted. In other words,
+       * if "dark_blue" merged into "BLUE", then the latter can't merge into
+       * "blues" because this would create a path of length 2. The maximum number
+       * of instances of MergedFacetValue per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 100.
+       * This feature is available only for textual custom attributes.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + public java.util.List< + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue> + getMergedFacetValuesList() { + if (mergedFacetValuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(mergedFacetValues_); + } else { + return mergedFacetValuesBuilder_.getMessageList(); + } + } + /** + * + * + *
+       * Each instance replaces a list of facet values by a merged facet
+       * value. If a facet value is not in any list, then it will stay the same.
+       * To avoid conflicts, only paths of length 1 are accepted. In other words,
+       * if "dark_blue" merged into "BLUE", then the latter can't merge into
+       * "blues" because this would create a path of length 2. The maximum number
+       * of instances of MergedFacetValue per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 100.
+       * This feature is available only for textual custom attributes.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + public int getMergedFacetValuesCount() { + if (mergedFacetValuesBuilder_ == null) { + return mergedFacetValues_.size(); + } else { + return mergedFacetValuesBuilder_.getCount(); + } + } + /** + * + * + *
+       * Each instance replaces a list of facet values by a merged facet
+       * value. If a facet value is not in any list, then it will stay the same.
+       * To avoid conflicts, only paths of length 1 are accepted. In other words,
+       * if "dark_blue" merged into "BLUE", then the latter can't merge into
+       * "blues" because this would create a path of length 2. The maximum number
+       * of instances of MergedFacetValue per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 100.
+       * This feature is available only for textual custom attributes.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + public com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue + getMergedFacetValues(int index) { + if (mergedFacetValuesBuilder_ == null) { + return mergedFacetValues_.get(index); + } else { + return mergedFacetValuesBuilder_.getMessage(index); + } + } + /** + * + * + *
+       * Each instance replaces a list of facet values by a merged facet
+       * value. If a facet value is not in any list, then it will stay the same.
+       * To avoid conflicts, only paths of length 1 are accepted. In other words,
+       * if "dark_blue" merged into "BLUE", then the latter can't merge into
+       * "blues" because this would create a path of length 2. The maximum number
+       * of instances of MergedFacetValue per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 100.
+       * This feature is available only for textual custom attributes.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + public Builder setMergedFacetValues( + int index, + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue value) { + if (mergedFacetValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMergedFacetValuesIsMutable(); + mergedFacetValues_.set(index, value); + onChanged(); + } else { + mergedFacetValuesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Each instance replaces a list of facet values by a merged facet
+       * value. If a facet value is not in any list, then it will stay the same.
+       * To avoid conflicts, only paths of length 1 are accepted. In other words,
+       * if "dark_blue" merged into "BLUE", then the latter can't merge into
+       * "blues" because this would create a path of length 2. The maximum number
+       * of instances of MergedFacetValue per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 100.
+       * This feature is available only for textual custom attributes.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + public Builder setMergedFacetValues( + int index, + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue.Builder + builderForValue) { + if (mergedFacetValuesBuilder_ == null) { + ensureMergedFacetValuesIsMutable(); + mergedFacetValues_.set(index, builderForValue.build()); + onChanged(); + } else { + mergedFacetValuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Each instance replaces a list of facet values by a merged facet
+       * value. If a facet value is not in any list, then it will stay the same.
+       * To avoid conflicts, only paths of length 1 are accepted. In other words,
+       * if "dark_blue" merged into "BLUE", then the latter can't merge into
+       * "blues" because this would create a path of length 2. The maximum number
+       * of instances of MergedFacetValue per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 100.
+       * This feature is available only for textual custom attributes.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + public Builder addMergedFacetValues( + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue value) { + if (mergedFacetValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMergedFacetValuesIsMutable(); + mergedFacetValues_.add(value); + onChanged(); + } else { + mergedFacetValuesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+       * Each instance replaces a list of facet values by a merged facet
+       * value. If a facet value is not in any list, then it will stay the same.
+       * To avoid conflicts, only paths of length 1 are accepted. In other words,
+       * if "dark_blue" merged into "BLUE", then the latter can't merge into
+       * "blues" because this would create a path of length 2. The maximum number
+       * of instances of MergedFacetValue per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 100.
+       * This feature is available only for textual custom attributes.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + public Builder addMergedFacetValues( + int index, + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue value) { + if (mergedFacetValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMergedFacetValuesIsMutable(); + mergedFacetValues_.add(index, value); + onChanged(); + } else { + mergedFacetValuesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Each instance replaces a list of facet values by a merged facet
+       * value. If a facet value is not in any list, then it will stay the same.
+       * To avoid conflicts, only paths of length 1 are accepted. In other words,
+       * if "dark_blue" merged into "BLUE", then the latter can't merge into
+       * "blues" because this would create a path of length 2. The maximum number
+       * of instances of MergedFacetValue per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 100.
+       * This feature is available only for textual custom attributes.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + public Builder addMergedFacetValues( + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue.Builder + builderForValue) { + if (mergedFacetValuesBuilder_ == null) { + ensureMergedFacetValuesIsMutable(); + mergedFacetValues_.add(builderForValue.build()); + onChanged(); + } else { + mergedFacetValuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Each instance replaces a list of facet values by a merged facet
+       * value. If a facet value is not in any list, then it will stay the same.
+       * To avoid conflicts, only paths of length 1 are accepted. In other words,
+       * if "dark_blue" merged into "BLUE", then the latter can't merge into
+       * "blues" because this would create a path of length 2. The maximum number
+       * of instances of MergedFacetValue per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 100.
+       * This feature is available only for textual custom attributes.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + public Builder addMergedFacetValues( + int index, + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue.Builder + builderForValue) { + if (mergedFacetValuesBuilder_ == null) { + ensureMergedFacetValuesIsMutable(); + mergedFacetValues_.add(index, builderForValue.build()); + onChanged(); + } else { + mergedFacetValuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Each instance replaces a list of facet values by a merged facet
+       * value. If a facet value is not in any list, then it will stay the same.
+       * To avoid conflicts, only paths of length 1 are accepted. In other words,
+       * if "dark_blue" merged into "BLUE", then the latter can't merge into
+       * "blues" because this would create a path of length 2. The maximum number
+       * of instances of MergedFacetValue per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 100.
+       * This feature is available only for textual custom attributes.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + public Builder addAllMergedFacetValues( + java.lang.Iterable< + ? extends + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue> + values) { + if (mergedFacetValuesBuilder_ == null) { + ensureMergedFacetValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mergedFacetValues_); + onChanged(); + } else { + mergedFacetValuesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+       * Each instance replaces a list of facet values by a merged facet
+       * value. If a facet value is not in any list, then it will stay the same.
+       * To avoid conflicts, only paths of length 1 are accepted. In other words,
+       * if "dark_blue" merged into "BLUE", then the latter can't merge into
+       * "blues" because this would create a path of length 2. The maximum number
+       * of instances of MergedFacetValue per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 100.
+       * This feature is available only for textual custom attributes.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + public Builder clearMergedFacetValues() { + if (mergedFacetValuesBuilder_ == null) { + mergedFacetValues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + mergedFacetValuesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Each instance replaces a list of facet values by a merged facet
+       * value. If a facet value is not in any list, then it will stay the same.
+       * To avoid conflicts, only paths of length 1 are accepted. In other words,
+       * if "dark_blue" merged into "BLUE", then the latter can't merge into
+       * "blues" because this would create a path of length 2. The maximum number
+       * of instances of MergedFacetValue per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 100.
+       * This feature is available only for textual custom attributes.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + public Builder removeMergedFacetValues(int index) { + if (mergedFacetValuesBuilder_ == null) { + ensureMergedFacetValuesIsMutable(); + mergedFacetValues_.remove(index); + onChanged(); + } else { + mergedFacetValuesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+       * Each instance replaces a list of facet values by a merged facet
+       * value. If a facet value is not in any list, then it will stay the same.
+       * To avoid conflicts, only paths of length 1 are accepted. In other words,
+       * if "dark_blue" merged into "BLUE", then the latter can't merge into
+       * "blues" because this would create a path of length 2. The maximum number
+       * of instances of MergedFacetValue per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 100.
+       * This feature is available only for textual custom attributes.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + public com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue.Builder + getMergedFacetValuesBuilder(int index) { + return getMergedFacetValuesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * Each instance replaces a list of facet values by a merged facet
+       * value. If a facet value is not in any list, then it will stay the same.
+       * To avoid conflicts, only paths of length 1 are accepted. In other words,
+       * if "dark_blue" merged into "BLUE", then the latter can't merge into
+       * "blues" because this would create a path of length 2. The maximum number
+       * of instances of MergedFacetValue per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 100.
+       * This feature is available only for textual custom attributes.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + public com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValueOrBuilder + getMergedFacetValuesOrBuilder(int index) { + if (mergedFacetValuesBuilder_ == null) { + return mergedFacetValues_.get(index); + } else { + return mergedFacetValuesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+       * Each instance replaces a list of facet values by a merged facet
+       * value. If a facet value is not in any list, then it will stay the same.
+       * To avoid conflicts, only paths of length 1 are accepted. In other words,
+       * if "dark_blue" merged into "BLUE", then the latter can't merge into
+       * "blues" because this would create a path of length 2. The maximum number
+       * of instances of MergedFacetValue per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 100.
+       * This feature is available only for textual custom attributes.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + public java.util.List< + ? extends + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig + .MergedFacetValueOrBuilder> + getMergedFacetValuesOrBuilderList() { + if (mergedFacetValuesBuilder_ != null) { + return mergedFacetValuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(mergedFacetValues_); + } + } + /** + * + * + *
+       * Each instance replaces a list of facet values by a merged facet
+       * value. If a facet value is not in any list, then it will stay the same.
+       * To avoid conflicts, only paths of length 1 are accepted. In other words,
+       * if "dark_blue" merged into "BLUE", then the latter can't merge into
+       * "blues" because this would create a path of length 2. The maximum number
+       * of instances of MergedFacetValue per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 100.
+       * This feature is available only for textual custom attributes.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + public com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue.Builder + addMergedFacetValuesBuilder() { + return getMergedFacetValuesFieldBuilder() + .addBuilder( + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue + .getDefaultInstance()); + } + /** + * + * + *
+       * Each instance replaces a list of facet values by a merged facet
+       * value. If a facet value is not in any list, then it will stay the same.
+       * To avoid conflicts, only paths of length 1 are accepted. In other words,
+       * if "dark_blue" merged into "BLUE", then the latter can't merge into
+       * "blues" because this would create a path of length 2. The maximum number
+       * of instances of MergedFacetValue per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 100.
+       * This feature is available only for textual custom attributes.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + public com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue.Builder + addMergedFacetValuesBuilder(int index) { + return getMergedFacetValuesFieldBuilder() + .addBuilder( + index, + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue + .getDefaultInstance()); + } + /** + * + * + *
+       * Each instance replaces a list of facet values by a merged facet
+       * value. If a facet value is not in any list, then it will stay the same.
+       * To avoid conflicts, only paths of length 1 are accepted. In other words,
+       * if "dark_blue" merged into "BLUE", then the latter can't merge into
+       * "blues" because this would create a path of length 2. The maximum number
+       * of instances of MergedFacetValue per
+       * [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 100.
+       * This feature is available only for textual custom attributes.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + public java.util.List< + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue.Builder> + getMergedFacetValuesBuilderList() { + return getMergedFacetValuesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue, + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue.Builder, + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig + .MergedFacetValueOrBuilder> + getMergedFacetValuesFieldBuilder() { + if (mergedFacetValuesBuilder_ == null) { + mergedFacetValuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue, + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue + .Builder, + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig + .MergedFacetValueOrBuilder>( + mergedFacetValues_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + mergedFacetValues_ = null; + } + return mergedFacetValuesBuilder_; + } + + private com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet mergedFacet_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet, + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet.Builder, + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetOrBuilder> + mergedFacetBuilder_; + /** + * + * + *
+       * Use this field only if you want to merge a facet key into another facet
+       * key.
+       * 
+ * + * + * .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet merged_facet = 4; + * + * + * @return Whether the mergedFacet field is set. + */ + public boolean hasMergedFacet() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+       * Use this field only if you want to merge a facet key into another facet
+       * key.
+       * 
+ * + * + * .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet merged_facet = 4; + * + * + * @return The mergedFacet. + */ + public com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet + getMergedFacet() { + if (mergedFacetBuilder_ == null) { + return mergedFacet_ == null + ? com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet + .getDefaultInstance() + : mergedFacet_; + } else { + return mergedFacetBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Use this field only if you want to merge a facet key into another facet
+       * key.
+       * 
+ * + * + * .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet merged_facet = 4; + * + */ + public Builder setMergedFacet( + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet value) { + if (mergedFacetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mergedFacet_ = value; + } else { + mergedFacetBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+       * Use this field only if you want to merge a facet key into another facet
+       * key.
+       * 
+ * + * + * .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet merged_facet = 4; + * + */ + public Builder setMergedFacet( + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet.Builder + builderForValue) { + if (mergedFacetBuilder_ == null) { + mergedFacet_ = builderForValue.build(); + } else { + mergedFacetBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+       * Use this field only if you want to merge a facet key into another facet
+       * key.
+       * 
+ * + * + * .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet merged_facet = 4; + * + */ + public Builder mergeMergedFacet( + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet value) { + if (mergedFacetBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && mergedFacet_ != null + && mergedFacet_ + != com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet + .getDefaultInstance()) { + getMergedFacetBuilder().mergeFrom(value); + } else { + mergedFacet_ = value; + } + } else { + mergedFacetBuilder_.mergeFrom(value); + } + if (mergedFacet_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
+       * Use this field only if you want to merge a facet key into another facet
+       * key.
+       * 
+ * + * + * .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet merged_facet = 4; + * + */ + public Builder clearMergedFacet() { + bitField0_ = (bitField0_ & ~0x00000008); + mergedFacet_ = null; + if (mergedFacetBuilder_ != null) { + mergedFacetBuilder_.dispose(); + mergedFacetBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * Use this field only if you want to merge a facet key into another facet
+       * key.
+       * 
+ * + * + * .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet merged_facet = 4; + * + */ + public com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet.Builder + getMergedFacetBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getMergedFacetFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Use this field only if you want to merge a facet key into another facet
+       * key.
+       * 
+ * + * + * .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet merged_facet = 4; + * + */ + public com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetOrBuilder + getMergedFacetOrBuilder() { + if (mergedFacetBuilder_ != null) { + return mergedFacetBuilder_.getMessageOrBuilder(); + } else { + return mergedFacet_ == null + ? com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet + .getDefaultInstance() + : mergedFacet_; + } + } + /** + * + * + *
+       * Use this field only if you want to merge a facet key into another facet
+       * key.
+       * 
+ * + * + * .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet merged_facet = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet, + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet.Builder, + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetOrBuilder> + getMergedFacetFieldBuilder() { + if (mergedFacetBuilder_ == null) { + mergedFacetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet, + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet.Builder, + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig + .MergedFacetOrBuilder>(getMergedFacet(), getParentForChildren(), isClean()); + mergedFacet_ = null; + } + return mergedFacetBuilder_; + } + + private com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig + rerankConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig, + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig.Builder, + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfigOrBuilder> + rerankConfigBuilder_; + /** + * + * + *
+       * Set this field only if you want to rerank based on facet values engaged
+       * by the user for the current key. This option is only possible for custom
+       * facetable textual keys.
+       * 
+ * + * + * .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig rerank_config = 5; + * + * + * @return Whether the rerankConfig field is set. + */ + public boolean hasRerankConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+       * Set this field only if you want to rerank based on facet values engaged
+       * by the user for the current key. This option is only possible for custom
+       * facetable textual keys.
+       * 
+ * + * + * .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig rerank_config = 5; + * + * + * @return The rerankConfig. + */ + public com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig + getRerankConfig() { + if (rerankConfigBuilder_ == null) { + return rerankConfig_ == null + ? com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig + .getDefaultInstance() + : rerankConfig_; + } else { + return rerankConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Set this field only if you want to rerank based on facet values engaged
+       * by the user for the current key. This option is only possible for custom
+       * facetable textual keys.
+       * 
+ * + * + * .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig rerank_config = 5; + * + */ + public Builder setRerankConfig( + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig value) { + if (rerankConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rerankConfig_ = value; + } else { + rerankConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+       * Set this field only if you want to rerank based on facet values engaged
+       * by the user for the current key. This option is only possible for custom
+       * facetable textual keys.
+       * 
+ * + * + * .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig rerank_config = 5; + * + */ + public Builder setRerankConfig( + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig.Builder + builderForValue) { + if (rerankConfigBuilder_ == null) { + rerankConfig_ = builderForValue.build(); + } else { + rerankConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+       * Set this field only if you want to rerank based on facet values engaged
+       * by the user for the current key. This option is only possible for custom
+       * facetable textual keys.
+       * 
+ * + * + * .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig rerank_config = 5; + * + */ + public Builder mergeRerankConfig( + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig value) { + if (rerankConfigBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && rerankConfig_ != null + && rerankConfig_ + != com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig + .getDefaultInstance()) { + getRerankConfigBuilder().mergeFrom(value); + } else { + rerankConfig_ = value; + } + } else { + rerankConfigBuilder_.mergeFrom(value); + } + if (rerankConfig_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
+       * Set this field only if you want to rerank based on facet values engaged
+       * by the user for the current key. This option is only possible for custom
+       * facetable textual keys.
+       * 
+ * + * + * .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig rerank_config = 5; + * + */ + public Builder clearRerankConfig() { + bitField0_ = (bitField0_ & ~0x00000010); + rerankConfig_ = null; + if (rerankConfigBuilder_ != null) { + rerankConfigBuilder_.dispose(); + rerankConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * Set this field only if you want to rerank based on facet values engaged
+       * by the user for the current key. This option is only possible for custom
+       * facetable textual keys.
+       * 
+ * + * + * .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig rerank_config = 5; + * + */ + public com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig.Builder + getRerankConfigBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getRerankConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Set this field only if you want to rerank based on facet values engaged
+       * by the user for the current key. This option is only possible for custom
+       * facetable textual keys.
+       * 
+ * + * + * .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig rerank_config = 5; + * + */ + public com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfigOrBuilder + getRerankConfigOrBuilder() { + if (rerankConfigBuilder_ != null) { + return rerankConfigBuilder_.getMessageOrBuilder(); + } else { + return rerankConfig_ == null + ? com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig + .getDefaultInstance() + : rerankConfig_; + } + } + /** + * + * + *
+       * Set this field only if you want to rerank based on facet values engaged
+       * by the user for the current key. This option is only possible for custom
+       * facetable textual keys.
+       * 
+ * + * + * .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig rerank_config = 5; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig, + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig.Builder, + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfigOrBuilder> + getRerankConfigFieldBuilder() { + if (rerankConfigBuilder_ == null) { + rerankConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig, + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.RerankConfig.Builder, + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig + .RerankConfigOrBuilder>(getRerankConfig(), getParentForChildren(), isClean()); + rerankConfig_ = null; + } + return rerankConfigBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig) + private static final com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig(); + } + + public static com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FacetConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; public static final int KEY_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -1199,7 +9093,9 @@ public com.google.cloud.retail.v2alpha.CatalogAttribute.AttributeType getType() * are indexed so that it can be filtered, faceted, or boosted in * [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search]. * - * Must be specified, otherwise throws INVALID_FORMAT error. + * Must be specified when + * [AttributesConfig.attribute_config_level][google.cloud.retail.v2alpha.AttributesConfig.attribute_config_level] + * is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. * * * .google.cloud.retail.v2alpha.CatalogAttribute.IndexableOption indexable_option = 5; @@ -1221,7 +9117,9 @@ public int getIndexableOptionValue() { * are indexed so that it can be filtered, faceted, or boosted in * [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search]. * - * Must be specified, otherwise throws INVALID_FORMAT error. + * Must be specified when + * [AttributesConfig.attribute_config_level][google.cloud.retail.v2alpha.AttributesConfig.attribute_config_level] + * is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. * * * .google.cloud.retail.v2alpha.CatalogAttribute.IndexableOption indexable_option = 5; @@ -1309,7 +9207,9 @@ public int getDynamicFacetableOptionValue() { * [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search], * as there are no text values associated to numerical attributes. * - * Must be specified, otherwise throws INVALID_FORMAT error. + * Must be specified, when + * [AttributesConfig.attribute_config_level][google.cloud.retail.v2alpha.AttributesConfig.attribute_config_level] + * is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. * * * .google.cloud.retail.v2alpha.CatalogAttribute.SearchableOption searchable_option = 7; @@ -1336,7 +9236,9 @@ public int getSearchableOptionValue() { * [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search], * as there are no text values associated to numerical attributes. * - * Must be specified, otherwise throws INVALID_FORMAT error. + * Must be specified, when + * [AttributesConfig.attribute_config_level][google.cloud.retail.v2alpha.AttributesConfig.attribute_config_level] + * is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. * * * .google.cloud.retail.v2alpha.CatalogAttribute.SearchableOption searchable_option = 7; @@ -1502,6 +9404,57 @@ public com.google.cloud.retail.v2alpha.CatalogAttribute.RetrievableOption getRet : result; } + public static final int FACET_CONFIG_FIELD_NUMBER = 13; + private com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig facetConfig_; + /** + * + * + *
+   * Contains facet options.
+   * 
+ * + * .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig facet_config = 13; + * + * @return Whether the facetConfig field is set. + */ + @java.lang.Override + public boolean hasFacetConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Contains facet options.
+   * 
+ * + * .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig facet_config = 13; + * + * @return The facetConfig. + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig getFacetConfig() { + return facetConfig_ == null + ? com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.getDefaultInstance() + : facetConfig_; + } + /** + * + * + *
+   * Contains facet options.
+   * 
+ * + * .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig facet_config = 13; + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfigOrBuilder + getFacetConfigOrBuilder() { + return facetConfig_ == null + ? com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.getDefaultInstance() + : facetConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1562,6 +9515,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(12, retrievableOption_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(13, getFacetConfig()); + } getUnknownFields().writeTo(output); } @@ -1618,6 +9574,9 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, retrievableOption_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getFacetConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1643,6 +9602,10 @@ public boolean equals(final java.lang.Object obj) { if (recommendationsFilteringOption_ != other.recommendationsFilteringOption_) return false; if (exactSearchableOption_ != other.exactSearchableOption_) return false; if (retrievableOption_ != other.retrievableOption_) return false; + if (hasFacetConfig() != other.hasFacetConfig()) return false; + if (hasFacetConfig()) { + if (!getFacetConfig().equals(other.getFacetConfig())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1672,6 +9635,10 @@ public int hashCode() { hash = (53 * hash) + exactSearchableOption_; hash = (37 * hash) + RETRIEVABLE_OPTION_FIELD_NUMBER; hash = (53 * hash) + retrievableOption_; + if (hasFacetConfig()) { + hash = (37 * hash) + FACET_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getFacetConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1802,10 +9769,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.retail.v2alpha.CatalogAttribute.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getFacetConfigFieldBuilder(); + } } @java.lang.Override @@ -1821,6 +9797,11 @@ public Builder clear() { recommendationsFilteringOption_ = 0; exactSearchableOption_ = 0; retrievableOption_ = 0; + facetConfig_ = null; + if (facetConfigBuilder_ != null) { + facetConfigBuilder_.dispose(); + facetConfigBuilder_ = null; + } return this; } @@ -1884,6 +9865,13 @@ private void buildPartial0(com.google.cloud.retail.v2alpha.CatalogAttribute resu if (((from_bitField0_ & 0x00000100) != 0)) { result.retrievableOption_ = retrievableOption_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000200) != 0)) { + result.facetConfig_ = + facetConfigBuilder_ == null ? facetConfig_ : facetConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1961,6 +9949,9 @@ public Builder mergeFrom(com.google.cloud.retail.v2alpha.CatalogAttribute other) if (other.retrievableOption_ != 0) { setRetrievableOptionValue(other.getRetrievableOptionValue()); } + if (other.hasFacetConfig()) { + mergeFacetConfig(other.getFacetConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2041,6 +10032,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000100; break; } // case 96 + case 106: + { + input.readMessage(getFacetConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 106 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2456,7 +10453,9 @@ public Builder clearType() { * are indexed so that it can be filtered, faceted, or boosted in * [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search]. * - * Must be specified, otherwise throws INVALID_FORMAT error. + * Must be specified when + * [AttributesConfig.attribute_config_level][google.cloud.retail.v2alpha.AttributesConfig.attribute_config_level] + * is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. * * * .google.cloud.retail.v2alpha.CatalogAttribute.IndexableOption indexable_option = 5; @@ -2478,7 +10477,9 @@ public int getIndexableOptionValue() { * are indexed so that it can be filtered, faceted, or boosted in * [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search]. * - * Must be specified, otherwise throws INVALID_FORMAT error. + * Must be specified when + * [AttributesConfig.attribute_config_level][google.cloud.retail.v2alpha.AttributesConfig.attribute_config_level] + * is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. * * * .google.cloud.retail.v2alpha.CatalogAttribute.IndexableOption indexable_option = 5; @@ -2503,7 +10504,9 @@ public Builder setIndexableOptionValue(int value) { * are indexed so that it can be filtered, faceted, or boosted in * [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search]. * - * Must be specified, otherwise throws INVALID_FORMAT error. + * Must be specified when + * [AttributesConfig.attribute_config_level][google.cloud.retail.v2alpha.AttributesConfig.attribute_config_level] + * is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. * * * .google.cloud.retail.v2alpha.CatalogAttribute.IndexableOption indexable_option = 5; @@ -2530,7 +10533,9 @@ public com.google.cloud.retail.v2alpha.CatalogAttribute.IndexableOption getIndex * are indexed so that it can be filtered, faceted, or boosted in * [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search]. * - * Must be specified, otherwise throws INVALID_FORMAT error. + * Must be specified when + * [AttributesConfig.attribute_config_level][google.cloud.retail.v2alpha.AttributesConfig.attribute_config_level] + * is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. * * * .google.cloud.retail.v2alpha.CatalogAttribute.IndexableOption indexable_option = 5; @@ -2559,7 +10564,9 @@ public Builder setIndexableOption( * are indexed so that it can be filtered, faceted, or boosted in * [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search]. * - * Must be specified, otherwise throws INVALID_FORMAT error. + * Must be specified when + * [AttributesConfig.attribute_config_level][google.cloud.retail.v2alpha.AttributesConfig.attribute_config_level] + * is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. * * * .google.cloud.retail.v2alpha.CatalogAttribute.IndexableOption indexable_option = 5; @@ -2720,7 +10727,9 @@ public Builder clearDynamicFacetableOption() { * [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search], * as there are no text values associated to numerical attributes. * - * Must be specified, otherwise throws INVALID_FORMAT error. + * Must be specified, when + * [AttributesConfig.attribute_config_level][google.cloud.retail.v2alpha.AttributesConfig.attribute_config_level] + * is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. * * * .google.cloud.retail.v2alpha.CatalogAttribute.SearchableOption searchable_option = 7; @@ -2747,7 +10756,9 @@ public int getSearchableOptionValue() { * [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search], * as there are no text values associated to numerical attributes. * - * Must be specified, otherwise throws INVALID_FORMAT error. + * Must be specified, when + * [AttributesConfig.attribute_config_level][google.cloud.retail.v2alpha.AttributesConfig.attribute_config_level] + * is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. * * * .google.cloud.retail.v2alpha.CatalogAttribute.SearchableOption searchable_option = 7; @@ -2777,7 +10788,9 @@ public Builder setSearchableOptionValue(int value) { * [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search], * as there are no text values associated to numerical attributes. * - * Must be specified, otherwise throws INVALID_FORMAT error. + * Must be specified, when + * [AttributesConfig.attribute_config_level][google.cloud.retail.v2alpha.AttributesConfig.attribute_config_level] + * is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. * * * .google.cloud.retail.v2alpha.CatalogAttribute.SearchableOption searchable_option = 7; @@ -2809,7 +10822,9 @@ public com.google.cloud.retail.v2alpha.CatalogAttribute.SearchableOption getSear * [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search], * as there are no text values associated to numerical attributes. * - * Must be specified, otherwise throws INVALID_FORMAT error. + * Must be specified, when + * [AttributesConfig.attribute_config_level][google.cloud.retail.v2alpha.AttributesConfig.attribute_config_level] + * is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. * * * .google.cloud.retail.v2alpha.CatalogAttribute.SearchableOption searchable_option = 7; @@ -2843,7 +10858,9 @@ public Builder setSearchableOption( * [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search], * as there are no text values associated to numerical attributes. * - * Must be specified, otherwise throws INVALID_FORMAT error. + * Must be specified, when + * [AttributesConfig.attribute_config_level][google.cloud.retail.v2alpha.AttributesConfig.attribute_config_level] + * is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. * * * .google.cloud.retail.v2alpha.CatalogAttribute.SearchableOption searchable_option = 7; @@ -3228,6 +11245,198 @@ public Builder clearRetrievableOption() { return this; } + private com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig facetConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig, + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.Builder, + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfigOrBuilder> + facetConfigBuilder_; + /** + * + * + *
+     * Contains facet options.
+     * 
+ * + * .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig facet_config = 13; + * + * @return Whether the facetConfig field is set. + */ + public boolean hasFacetConfig() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * + * + *
+     * Contains facet options.
+     * 
+ * + * .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig facet_config = 13; + * + * @return The facetConfig. + */ + public com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig getFacetConfig() { + if (facetConfigBuilder_ == null) { + return facetConfig_ == null + ? com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.getDefaultInstance() + : facetConfig_; + } else { + return facetConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Contains facet options.
+     * 
+ * + * .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig facet_config = 13; + */ + public Builder setFacetConfig( + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig value) { + if (facetConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + facetConfig_ = value; + } else { + facetConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * Contains facet options.
+     * 
+ * + * .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig facet_config = 13; + */ + public Builder setFacetConfig( + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.Builder builderForValue) { + if (facetConfigBuilder_ == null) { + facetConfig_ = builderForValue.build(); + } else { + facetConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * Contains facet options.
+     * 
+ * + * .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig facet_config = 13; + */ + public Builder mergeFacetConfig( + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig value) { + if (facetConfigBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && facetConfig_ != null + && facetConfig_ + != com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig + .getDefaultInstance()) { + getFacetConfigBuilder().mergeFrom(value); + } else { + facetConfig_ = value; + } + } else { + facetConfigBuilder_.mergeFrom(value); + } + if (facetConfig_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Contains facet options.
+     * 
+ * + * .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig facet_config = 13; + */ + public Builder clearFacetConfig() { + bitField0_ = (bitField0_ & ~0x00000200); + facetConfig_ = null; + if (facetConfigBuilder_ != null) { + facetConfigBuilder_.dispose(); + facetConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Contains facet options.
+     * 
+ * + * .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig facet_config = 13; + */ + public com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.Builder + getFacetConfigBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return getFacetConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Contains facet options.
+     * 
+ * + * .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig facet_config = 13; + */ + public com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfigOrBuilder + getFacetConfigOrBuilder() { + if (facetConfigBuilder_ != null) { + return facetConfigBuilder_.getMessageOrBuilder(); + } else { + return facetConfig_ == null + ? com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.getDefaultInstance() + : facetConfig_; + } + } + /** + * + * + *
+     * Contains facet options.
+     * 
+ * + * .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig facet_config = 13; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig, + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.Builder, + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfigOrBuilder> + getFacetConfigFieldBuilder() { + if (facetConfigBuilder_ == null) { + facetConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig, + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.Builder, + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfigOrBuilder>( + getFacetConfig(), getParentForChildren(), isClean()); + facetConfig_ = null; + } + return facetConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CatalogAttributeOrBuilder.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CatalogAttributeOrBuilder.java index cfdbf8c810bd..63adc77015aa 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CatalogAttributeOrBuilder.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CatalogAttributeOrBuilder.java @@ -146,7 +146,9 @@ public interface CatalogAttributeOrBuilder * are indexed so that it can be filtered, faceted, or boosted in * [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search]. * - * Must be specified, otherwise throws INVALID_FORMAT error. + * Must be specified when + * [AttributesConfig.attribute_config_level][google.cloud.retail.v2alpha.AttributesConfig.attribute_config_level] + * is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. * * * .google.cloud.retail.v2alpha.CatalogAttribute.IndexableOption indexable_option = 5; @@ -165,7 +167,9 @@ public interface CatalogAttributeOrBuilder * are indexed so that it can be filtered, faceted, or boosted in * [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search]. * - * Must be specified, otherwise throws INVALID_FORMAT error. + * Must be specified when + * [AttributesConfig.attribute_config_level][google.cloud.retail.v2alpha.AttributesConfig.attribute_config_level] + * is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. * * * .google.cloud.retail.v2alpha.CatalogAttribute.IndexableOption indexable_option = 5; @@ -230,7 +234,9 @@ public interface CatalogAttributeOrBuilder * [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search], * as there are no text values associated to numerical attributes. * - * Must be specified, otherwise throws INVALID_FORMAT error. + * Must be specified, when + * [AttributesConfig.attribute_config_level][google.cloud.retail.v2alpha.AttributesConfig.attribute_config_level] + * is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. * * * .google.cloud.retail.v2alpha.CatalogAttribute.SearchableOption searchable_option = 7; @@ -254,7 +260,9 @@ public interface CatalogAttributeOrBuilder * [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search], * as there are no text values associated to numerical attributes. * - * Must be specified, otherwise throws INVALID_FORMAT error. + * Must be specified, when + * [AttributesConfig.attribute_config_level][google.cloud.retail.v2alpha.AttributesConfig.attribute_config_level] + * is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. * * * .google.cloud.retail.v2alpha.CatalogAttribute.SearchableOption searchable_option = 7; @@ -371,4 +379,39 @@ public interface CatalogAttributeOrBuilder * @return The retrievableOption. */ com.google.cloud.retail.v2alpha.CatalogAttribute.RetrievableOption getRetrievableOption(); + + /** + * + * + *
+   * Contains facet options.
+   * 
+ * + * .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig facet_config = 13; + * + * @return Whether the facetConfig field is set. + */ + boolean hasFacetConfig(); + /** + * + * + *
+   * Contains facet options.
+   * 
+ * + * .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig facet_config = 13; + * + * @return The facetConfig. + */ + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig getFacetConfig(); + /** + * + * + *
+   * Contains facet options.
+   * 
+ * + * .google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig facet_config = 13; + */ + com.google.cloud.retail.v2alpha.CatalogAttribute.FacetConfigOrBuilder getFacetConfigOrBuilder(); } diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CatalogOrBuilder.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CatalogOrBuilder.java index 9a63969acbec..508b8c1b0584 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CatalogOrBuilder.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CatalogOrBuilder.java @@ -134,9 +134,9 @@ public interface CatalogOrBuilder * *
    * The Merchant Center linking configuration.
-   * Once a link is added, the data stream from Merchant Center to Cloud Retail
+   * After a link is added, the data stream from Merchant Center to Cloud Retail
    * will be enabled automatically. The requester must have access to the
-   * merchant center account in order to make changes to this field.
+   * Merchant Center account in order to make changes to this field.
    * 
* * @@ -151,9 +151,9 @@ public interface CatalogOrBuilder * *
    * The Merchant Center linking configuration.
-   * Once a link is added, the data stream from Merchant Center to Cloud Retail
+   * After a link is added, the data stream from Merchant Center to Cloud Retail
    * will be enabled automatically. The requester must have access to the
-   * merchant center account in order to make changes to this field.
+   * Merchant Center account in order to make changes to this field.
    * 
* * @@ -168,9 +168,9 @@ public interface CatalogOrBuilder * *
    * The Merchant Center linking configuration.
-   * Once a link is added, the data stream from Merchant Center to Cloud Retail
+   * After a link is added, the data stream from Merchant Center to Cloud Retail
    * will be enabled automatically. The requester must have access to the
-   * merchant center account in order to make changes to this field.
+   * Merchant Center account in order to make changes to this field.
    * 
* * diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CatalogProto.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CatalogProto.java index 1ce0c63b27cf..2332b30313c3 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CatalogProto.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CatalogProto.java @@ -36,6 +36,26 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_retail_v2alpha_CatalogAttribute_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_retail_v2alpha_CatalogAttribute_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2alpha_CatalogAttribute_FacetConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2alpha_CatalogAttribute_FacetConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2alpha_CatalogAttribute_FacetConfig_IgnoredFacetValues_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2alpha_CatalogAttribute_FacetConfig_IgnoredFacetValues_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2alpha_CatalogAttribute_FacetConfig_MergedFacetValue_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2alpha_CatalogAttribute_FacetConfig_MergedFacetValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2alpha_CatalogAttribute_FacetConfig_MergedFacet_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2alpha_CatalogAttribute_FacetConfig_MergedFacet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2alpha_CatalogAttribute_FacetConfig_RerankConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2alpha_CatalogAttribute_FacetConfig_RerankConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_retail_v2alpha_AttributesConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -78,96 +98,118 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/api/field_behavior.proto\032\031google/api/re" + "source.proto\032(google/cloud/retail/v2alph" + "a/common.proto\032/google/cloud/retail/v2al" - + "pha/import_config.proto\"^\n\022ProductLevelC" - + "onfig\022\036\n\026ingestion_product_type\030\001 \001(\t\022(\n" - + " merchant_center_product_id_field\030\002 \001(\t\"" - + "\304\n\n\020CatalogAttribute\022\020\n\003key\030\001 \001(\tB\003\340A\002\022\023" - + "\n\006in_use\030\t \001(\010B\003\340A\003\022N\n\004type\030\n \001(\0162;.goog" - + "le.cloud.retail.v2alpha.CatalogAttribute" - + ".AttributeTypeB\003\340A\003\022W\n\020indexable_option\030" - + "\005 \001(\0162=.google.cloud.retail.v2alpha.Cata" - + "logAttribute.IndexableOption\022f\n\030dynamic_" - + "facetable_option\030\006 \001(\0162D.google.cloud.re" - + "tail.v2alpha.CatalogAttribute.DynamicFac" - + "etableOption\022Y\n\021searchable_option\030\007 \001(\0162" - + ">.google.cloud.retail.v2alpha.CatalogAtt" - + "ribute.SearchableOption\022e\n recommendatio" - + "ns_filtering_option\030\010 \001(\0162;.google.cloud" - + ".retail.v2alpha.RecommendationsFiltering" - + "Option\022d\n\027exact_searchable_option\030\013 \001(\0162" - + "C.google.cloud.retail.v2alpha.CatalogAtt" - + "ribute.ExactSearchableOption\022[\n\022retrieva" - + "ble_option\030\014 \001(\0162?.google.cloud.retail.v" - + "2alpha.CatalogAttribute.RetrievableOptio" - + "n\"8\n\rAttributeType\022\013\n\007UNKNOWN\020\000\022\013\n\007TEXTU" - + "AL\020\001\022\r\n\tNUMERICAL\020\002\"b\n\017IndexableOption\022 " - + "\n\034INDEXABLE_OPTION_UNSPECIFIED\020\000\022\025\n\021INDE" - + "XABLE_ENABLED\020\001\022\026\n\022INDEXABLE_DISABLED\020\002\"" - + "\201\001\n\026DynamicFacetableOption\022(\n$DYNAMIC_FA" - + "CETABLE_OPTION_UNSPECIFIED\020\000\022\035\n\031DYNAMIC_" - + "FACETABLE_ENABLED\020\001\022\036\n\032DYNAMIC_FACETABLE" - + "_DISABLED\020\002\"f\n\020SearchableOption\022!\n\035SEARC" - + "HABLE_OPTION_UNSPECIFIED\020\000\022\026\n\022SEARCHABLE" - + "_ENABLED\020\001\022\027\n\023SEARCHABLE_DISABLED\020\002\"}\n\025E" - + "xactSearchableOption\022\'\n#EXACT_SEARCHABLE" - + "_OPTION_UNSPECIFIED\020\000\022\034\n\030EXACT_SEARCHABL" - + "E_ENABLED\020\001\022\035\n\031EXACT_SEARCHABLE_DISABLED" - + "\020\002\"j\n\021RetrievableOption\022\"\n\036RETRIEVABLE_O" - + "PTION_UNSPECIFIED\020\000\022\027\n\023RETRIEVABLE_ENABL" - + "ED\020\001\022\030\n\024RETRIEVABLE_DISABLED\020\002\"\305\003\n\020Attri" - + "butesConfig\022\024\n\004name\030\001 \001(\tB\006\340A\002\340A\005\022`\n\022cat" - + "alog_attributes\030\002 \003(\0132D.google.cloud.ret" - + "ail.v2alpha.AttributesConfig.CatalogAttr" - + "ibutesEntry\022V\n\026attribute_config_level\030\003 " - + "\001(\01621.google.cloud.retail.v2alpha.Attrib" - + "uteConfigLevelB\003\340A\003\032g\n\026CatalogAttributes" - + "Entry\022\013\n\003key\030\001 \001(\t\022<\n\005value\030\002 \001(\0132-.goog" - + "le.cloud.retail.v2alpha.CatalogAttribute" - + ":\0028\001:x\352Au\n&retail.googleapis.com/Attribu" - + "tesConfig\022Kprojects/{project}/locations/" - + "{location}/catalogs/{catalog}/attributes" - + "Config\"\250\005\n\020CompletionConfig\022\024\n\004name\030\001 \001(" - + "\tB\006\340A\002\340A\005\022\026\n\016matching_order\030\002 \001(\t\022\027\n\017max" - + "_suggestions\030\003 \001(\005\022\031\n\021min_prefix_length\030" - + "\004 \001(\005\022\025\n\rauto_learning\030\013 \001(\010\022]\n\030suggesti" - + "ons_input_config\030\005 \001(\01326.google.cloud.re" - + "tail.v2alpha.CompletionDataInputConfigB\003" - + "\340A\003\022.\n!last_suggestions_import_operation" - + "\030\006 \001(\tB\003\340A\003\022Z\n\025denylist_input_config\030\007 \001" - + "(\01326.google.cloud.retail.v2alpha.Complet" - + "ionDataInputConfigB\003\340A\003\022+\n\036last_denylist" - + "_import_operation\030\010 \001(\tB\003\340A\003\022[\n\026allowlis" - + "t_input_config\030\t \001(\01326.google.cloud.reta" - + "il.v2alpha.CompletionDataInputConfigB\003\340A" - + "\003\022,\n\037last_allowlist_import_operation\030\n \001" - + "(\tB\003\340A\003:x\352Au\n&retail.googleapis.com/Comp" - + "letionConfig\022Kprojects/{project}/locatio" - + "ns/{location}/catalogs/{catalog}/complet" - + "ionConfig\"\330\001\n\022MerchantCenterLink\022\'\n\032merc" - + "hant_center_account_id\030\001 \001(\003B\003\340A\002\022\021\n\tbra" - + "nch_id\030\002 \001(\t\022\024\n\014destinations\030\003 \003(\t\022\023\n\013re" - + "gion_code\030\004 \001(\t\022\025\n\rlanguage_code\030\005 \001(\t\022D" - + "\n\005feeds\030\006 \003(\01325.google.cloud.retail.v2al" - + "pha.MerchantCenterFeedFilter\"N\n\030Merchant" - + "CenterFeedFilter\022\027\n\017primary_feed_id\030\001 \001(" - + "\003\022\031\n\021primary_feed_name\030\002 \001(\t\"]\n\033Merchant" - + "CenterLinkingConfig\022>\n\005links\030\001 \003(\0132/.goo" - + "gle.cloud.retail.v2alpha.MerchantCenterL" - + "ink\"\323\002\n\007Catalog\022\024\n\004name\030\001 \001(\tB\006\340A\002\340A\005\022\034\n" - + "\014display_name\030\002 \001(\tB\006\340A\002\340A\005\022R\n\024product_l" - + "evel_config\030\004 \001(\0132/.google.cloud.retail." - + "v2alpha.ProductLevelConfigB\003\340A\002\022`\n\036merch" - + "ant_center_linking_config\030\006 \001(\01328.google" - + ".cloud.retail.v2alpha.MerchantCenterLink" - + "ingConfig:^\352A[\n\035retail.googleapis.com/Ca" - + "talog\022:projects/{project}/locations/{loc" - + "ation}/catalogs/{catalog}B\320\001\n\037com.google" - + ".cloud.retail.v2alphaB\014CatalogProtoP\001Z7c" - + "loud.google.com/go/retail/apiv2alpha/ret" - + "ailpb;retailpb\242\002\006RETAIL\252\002\033Google.Cloud.R" - + "etail.V2Alpha\312\002\033Google\\Cloud\\Retail\\V2al" - + "pha\352\002\036Google::Cloud::Retail::V2alphab\006pr" - + "oto3" + + "pha/import_config.proto\032\037google/protobuf" + + "/timestamp.proto\"^\n\022ProductLevelConfig\022\036" + + "\n\026ingestion_product_type\030\001 \001(\t\022(\n mercha" + + "nt_center_product_id_field\030\002 \001(\t\"\232\021\n\020Cat" + + "alogAttribute\022\020\n\003key\030\001 \001(\tB\003\340A\002\022\023\n\006in_us" + + "e\030\t \001(\010B\003\340A\003\022N\n\004type\030\n \001(\0162;.google.clou" + + "d.retail.v2alpha.CatalogAttribute.Attrib" + + "uteTypeB\003\340A\003\022W\n\020indexable_option\030\005 \001(\0162=" + + ".google.cloud.retail.v2alpha.CatalogAttr" + + "ibute.IndexableOption\022f\n\030dynamic_facetab" + + "le_option\030\006 \001(\0162D.google.cloud.retail.v2" + + "alpha.CatalogAttribute.DynamicFacetableO" + + "ption\022Y\n\021searchable_option\030\007 \001(\0162>.googl" + + "e.cloud.retail.v2alpha.CatalogAttribute." + + "SearchableOption\022e\n recommendations_filt" + + "ering_option\030\010 \001(\0162;.google.cloud.retail" + + ".v2alpha.RecommendationsFilteringOption\022" + + "d\n\027exact_searchable_option\030\013 \001(\0162C.googl" + + "e.cloud.retail.v2alpha.CatalogAttribute." + + "ExactSearchableOption\022[\n\022retrievable_opt" + + "ion\030\014 \001(\0162?.google.cloud.retail.v2alpha." + + "CatalogAttribute.RetrievableOption\022O\n\014fa" + + "cet_config\030\r \001(\01329.google.cloud.retail.v" + + "2alpha.CatalogAttribute.FacetConfig\032\202\006\n\013" + + "FacetConfig\022>\n\017facet_intervals\030\001 \003(\0132%.g" + + "oogle.cloud.retail.v2alpha.Interval\022j\n\024i" + + "gnored_facet_values\030\002 \003(\0132L.google.cloud" + + ".retail.v2alpha.CatalogAttribute.FacetCo" + + "nfig.IgnoredFacetValues\022g\n\023merged_facet_" + + "values\030\003 \003(\0132J.google.cloud.retail.v2alp" + + "ha.CatalogAttribute.FacetConfig.MergedFa" + + "cetValue\022[\n\014merged_facet\030\004 \001(\0132E.google." + + "cloud.retail.v2alpha.CatalogAttribute.Fa" + + "cetConfig.MergedFacet\022]\n\rrerank_config\030\005" + + " \001(\0132F.google.cloud.retail.v2alpha.Catal" + + "ogAttribute.FacetConfig.RerankConfig\032\202\001\n" + + "\022IgnoredFacetValues\022\016\n\006values\030\001 \003(\t\022.\n\ns" + + "tart_time\030\002 \001(\0132\032.google.protobuf.Timest" + + "amp\022,\n\010end_time\030\003 \001(\0132\032.google.protobuf." + + "Timestamp\0328\n\020MergedFacetValue\022\016\n\006values\030" + + "\001 \003(\t\022\024\n\014merged_value\030\002 \001(\t\032\'\n\013MergedFac" + + "et\022\030\n\020merged_facet_key\030\001 \001(\t\032:\n\014RerankCo" + + "nfig\022\024\n\014rerank_facet\030\001 \001(\010\022\024\n\014facet_valu" + + "es\030\002 \003(\t\"8\n\rAttributeType\022\013\n\007UNKNOWN\020\000\022\013" + + "\n\007TEXTUAL\020\001\022\r\n\tNUMERICAL\020\002\"b\n\017IndexableO" + + "ption\022 \n\034INDEXABLE_OPTION_UNSPECIFIED\020\000\022" + + "\025\n\021INDEXABLE_ENABLED\020\001\022\026\n\022INDEXABLE_DISA" + + "BLED\020\002\"\201\001\n\026DynamicFacetableOption\022(\n$DYN" + + "AMIC_FACETABLE_OPTION_UNSPECIFIED\020\000\022\035\n\031D" + + "YNAMIC_FACETABLE_ENABLED\020\001\022\036\n\032DYNAMIC_FA" + + "CETABLE_DISABLED\020\002\"f\n\020SearchableOption\022!" + + "\n\035SEARCHABLE_OPTION_UNSPECIFIED\020\000\022\026\n\022SEA" + + "RCHABLE_ENABLED\020\001\022\027\n\023SEARCHABLE_DISABLED" + + "\020\002\"}\n\025ExactSearchableOption\022\'\n#EXACT_SEA" + + "RCHABLE_OPTION_UNSPECIFIED\020\000\022\034\n\030EXACT_SE" + + "ARCHABLE_ENABLED\020\001\022\035\n\031EXACT_SEARCHABLE_D" + + "ISABLED\020\002\"j\n\021RetrievableOption\022\"\n\036RETRIE" + + "VABLE_OPTION_UNSPECIFIED\020\000\022\027\n\023RETRIEVABL" + + "E_ENABLED\020\001\022\030\n\024RETRIEVABLE_DISABLED\020\002\"\305\003" + + "\n\020AttributesConfig\022\024\n\004name\030\001 \001(\tB\006\340A\002\340A\005" + + "\022`\n\022catalog_attributes\030\002 \003(\0132D.google.cl" + + "oud.retail.v2alpha.AttributesConfig.Cata" + + "logAttributesEntry\022V\n\026attribute_config_l" + + "evel\030\003 \001(\01621.google.cloud.retail.v2alpha" + + ".AttributeConfigLevelB\003\340A\003\032g\n\026CatalogAtt" + + "ributesEntry\022\013\n\003key\030\001 \001(\t\022<\n\005value\030\002 \001(\013" + + "2-.google.cloud.retail.v2alpha.CatalogAt" + + "tribute:\0028\001:x\352Au\n&retail.googleapis.com/" + + "AttributesConfig\022Kprojects/{project}/loc" + + "ations/{location}/catalogs/{catalog}/att" + + "ributesConfig\"\250\005\n\020CompletionConfig\022\024\n\004na" + + "me\030\001 \001(\tB\006\340A\002\340A\005\022\026\n\016matching_order\030\002 \001(\t" + + "\022\027\n\017max_suggestions\030\003 \001(\005\022\031\n\021min_prefix_" + + "length\030\004 \001(\005\022\025\n\rauto_learning\030\013 \001(\010\022]\n\030s" + + "uggestions_input_config\030\005 \001(\01326.google.c" + + "loud.retail.v2alpha.CompletionDataInputC" + + "onfigB\003\340A\003\022.\n!last_suggestions_import_op" + + "eration\030\006 \001(\tB\003\340A\003\022Z\n\025denylist_input_con" + + "fig\030\007 \001(\01326.google.cloud.retail.v2alpha." + + "CompletionDataInputConfigB\003\340A\003\022+\n\036last_d" + + "enylist_import_operation\030\010 \001(\tB\003\340A\003\022[\n\026a" + + "llowlist_input_config\030\t \001(\01326.google.clo" + + "ud.retail.v2alpha.CompletionDataInputCon" + + "figB\003\340A\003\022,\n\037last_allowlist_import_operat" + + "ion\030\n \001(\tB\003\340A\003:x\352Au\n&retail.googleapis.c" + + "om/CompletionConfig\022Kprojects/{project}/" + + "locations/{location}/catalogs/{catalog}/" + + "completionConfig\"\330\001\n\022MerchantCenterLink\022" + + "\'\n\032merchant_center_account_id\030\001 \001(\003B\003\340A\002" + + "\022\021\n\tbranch_id\030\002 \001(\t\022\024\n\014destinations\030\003 \003(" + + "\t\022\023\n\013region_code\030\004 \001(\t\022\025\n\rlanguage_code\030" + + "\005 \001(\t\022D\n\005feeds\030\006 \003(\01325.google.cloud.reta" + + "il.v2alpha.MerchantCenterFeedFilter\"N\n\030M" + + "erchantCenterFeedFilter\022\027\n\017primary_feed_" + + "id\030\001 \001(\003\022\031\n\021primary_feed_name\030\002 \001(\t\"]\n\033M" + + "erchantCenterLinkingConfig\022>\n\005links\030\001 \003(" + + "\0132/.google.cloud.retail.v2alpha.Merchant" + + "CenterLink\"\323\002\n\007Catalog\022\024\n\004name\030\001 \001(\tB\006\340A" + + "\002\340A\005\022\034\n\014display_name\030\002 \001(\tB\006\340A\002\340A\005\022R\n\024pr" + + "oduct_level_config\030\004 \001(\0132/.google.cloud." + + "retail.v2alpha.ProductLevelConfigB\003\340A\002\022`" + + "\n\036merchant_center_linking_config\030\006 \001(\01328" + + ".google.cloud.retail.v2alpha.MerchantCen" + + "terLinkingConfig:^\352A[\n\035retail.googleapis" + + ".com/Catalog\022:projects/{project}/locatio" + + "ns/{location}/catalogs/{catalog}B\320\001\n\037com" + + ".google.cloud.retail.v2alphaB\014CatalogPro" + + "toP\001Z7cloud.google.com/go/retail/apiv2al" + + "pha/retailpb;retailpb\242\002\006RETAIL\252\002\033Google." + + "Cloud.Retail.V2Alpha\312\002\033Google\\Cloud\\Reta" + + "il\\V2alpha\352\002\036Google::Cloud::Retail::V2al" + + "phab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -177,6 +219,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(), com.google.cloud.retail.v2alpha.CommonProto.getDescriptor(), com.google.cloud.retail.v2alpha.ImportConfigProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_google_cloud_retail_v2alpha_ProductLevelConfig_descriptor = getDescriptor().getMessageTypes().get(0); @@ -201,6 +244,61 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RecommendationsFilteringOption", "ExactSearchableOption", "RetrievableOption", + "FacetConfig", + }); + internal_static_google_cloud_retail_v2alpha_CatalogAttribute_FacetConfig_descriptor = + internal_static_google_cloud_retail_v2alpha_CatalogAttribute_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_retail_v2alpha_CatalogAttribute_FacetConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2alpha_CatalogAttribute_FacetConfig_descriptor, + new java.lang.String[] { + "FacetIntervals", + "IgnoredFacetValues", + "MergedFacetValues", + "MergedFacet", + "RerankConfig", + }); + internal_static_google_cloud_retail_v2alpha_CatalogAttribute_FacetConfig_IgnoredFacetValues_descriptor = + internal_static_google_cloud_retail_v2alpha_CatalogAttribute_FacetConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_retail_v2alpha_CatalogAttribute_FacetConfig_IgnoredFacetValues_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2alpha_CatalogAttribute_FacetConfig_IgnoredFacetValues_descriptor, + new java.lang.String[] { + "Values", "StartTime", "EndTime", + }); + internal_static_google_cloud_retail_v2alpha_CatalogAttribute_FacetConfig_MergedFacetValue_descriptor = + internal_static_google_cloud_retail_v2alpha_CatalogAttribute_FacetConfig_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_retail_v2alpha_CatalogAttribute_FacetConfig_MergedFacetValue_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2alpha_CatalogAttribute_FacetConfig_MergedFacetValue_descriptor, + new java.lang.String[] { + "Values", "MergedValue", + }); + internal_static_google_cloud_retail_v2alpha_CatalogAttribute_FacetConfig_MergedFacet_descriptor = + internal_static_google_cloud_retail_v2alpha_CatalogAttribute_FacetConfig_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_retail_v2alpha_CatalogAttribute_FacetConfig_MergedFacet_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2alpha_CatalogAttribute_FacetConfig_MergedFacet_descriptor, + new java.lang.String[] { + "MergedFacetKey", + }); + internal_static_google_cloud_retail_v2alpha_CatalogAttribute_FacetConfig_RerankConfig_descriptor = + internal_static_google_cloud_retail_v2alpha_CatalogAttribute_FacetConfig_descriptor + .getNestedTypes() + .get(3); + internal_static_google_cloud_retail_v2alpha_CatalogAttribute_FacetConfig_RerankConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2alpha_CatalogAttribute_FacetConfig_RerankConfig_descriptor, + new java.lang.String[] { + "RerankFacet", "FacetValues", }); internal_static_google_cloud_retail_v2alpha_AttributesConfig_descriptor = getDescriptor().getMessageTypes().get(2); @@ -285,6 +383,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(); com.google.cloud.retail.v2alpha.CommonProto.getDescriptor(); com.google.cloud.retail.v2alpha.ImportConfigProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CommonProto.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CommonProto.java index 3c72e00ed4bd..d75dcb87273c 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CommonProto.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CommonProto.java @@ -76,6 +76,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_retail_v2alpha_Rule_IgnoreAction_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_retail_v2alpha_Rule_IgnoreAction_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2alpha_Rule_ForceReturnFacetAction_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2alpha_Rule_ForceReturnFacetAction_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2alpha_Rule_ForceReturnFacetAction_FacetPositionAdjustment_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2alpha_Rule_ForceReturnFacetAction_FacetPositionAdjustment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2alpha_Rule_RemoveFacetAction_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2alpha_Rule_RemoveFacetAction_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_retail_v2alpha_Audience_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -136,98 +148,110 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n(google/cloud/retail/v2alpha/common.pro" + "to\022\033google.cloud.retail.v2alpha\032\037google/" + "api/field_behavior.proto\032\037google/protobu" - + "f/timestamp.proto\"\272\002\n\tCondition\022E\n\013query" + + "f/timestamp.proto\"\323\002\n\tCondition\022E\n\013query" + "_terms\030\001 \003(\01320.google.cloud.retail.v2alp" + "ha.Condition.QueryTerm\022K\n\021active_time_ra" + "nge\030\003 \003(\01320.google.cloud.retail.v2alpha." - + "Condition.TimeRange\032.\n\tQueryTerm\022\r\n\005valu" - + "e\030\001 \001(\t\022\022\n\nfull_match\030\002 \001(\010\032i\n\tTimeRange" - + "\022.\n\nstart_time\030\001 \001(\0132\032.google.protobuf.T" - + "imestamp\022,\n\010end_time\030\002 \001(\0132\032.google.prot" - + "obuf.Timestamp\"\252\t\n\004Rule\022E\n\014boost_action\030" - + "\002 \001(\0132-.google.cloud.retail.v2alpha.Rule" - + ".BoostActionH\000\022K\n\017redirect_action\030\003 \001(\0132" - + "0.google.cloud.retail.v2alpha.Rule.Redir" - + "ectActionH\000\022X\n\026oneway_synonyms_action\030\006 " - + "\001(\01326.google.cloud.retail.v2alpha.Rule.O" - + "newaySynonymsActionH\000\022Y\n\027do_not_associat" - + "e_action\030\007 \001(\01326.google.cloud.retail.v2a" - + "lpha.Rule.DoNotAssociateActionH\000\022Q\n\022repl" - + "acement_action\030\010 \001(\01323.google.cloud.reta" - + "il.v2alpha.Rule.ReplacementActionH\000\022G\n\ri" - + "gnore_action\030\t \001(\0132..google.cloud.retail" - + ".v2alpha.Rule.IgnoreActionH\000\022G\n\rfilter_a" - + "ction\030\n \001(\0132..google.cloud.retail.v2alph" - + "a.Rule.FilterActionH\000\022X\n\026twoway_synonyms" - + "_action\030\013 \001(\01326.google.cloud.retail.v2al" - + "pha.Rule.TwowaySynonymsActionH\000\022>\n\tcondi" - + "tion\030\001 \001(\0132&.google.cloud.retail.v2alpha" - + ".ConditionB\003\340A\002\0325\n\013BoostAction\022\r\n\005boost\030" - + "\001 \001(\002\022\027\n\017products_filter\030\002 \001(\t\032\036\n\014Filter" - + "Action\022\016\n\006filter\030\001 \001(\t\032&\n\016RedirectAction" - + "\022\024\n\014redirect_uri\030\001 \001(\t\032(\n\024TwowaySynonyms" - + "Action\022\020\n\010synonyms\030\001 \003(\t\032S\n\024OnewaySynony" - + "msAction\022\023\n\013query_terms\030\003 \003(\t\022\020\n\010synonym" - + "s\030\004 \003(\t\022\024\n\014oneway_terms\030\002 \003(\t\032Z\n\024DoNotAs" - + "sociateAction\022\023\n\013query_terms\030\002 \003(\t\022\036\n\026do" - + "_not_associate_terms\030\003 \003(\t\022\r\n\005terms\030\001 \003(" - + "\t\032P\n\021ReplacementAction\022\023\n\013query_terms\030\002 " - + "\003(\t\022\030\n\020replacement_term\030\003 \001(\t\022\014\n\004term\030\001 " - + "\001(\t\032$\n\014IgnoreAction\022\024\n\014ignore_terms\030\001 \003(" - + "\tB\010\n\006action\"/\n\010Audience\022\017\n\007genders\030\001 \003(\t" - + "\022\022\n\nage_groups\030\002 \003(\t\"3\n\tColorInfo\022\026\n\016col" - + "or_families\030\001 \003(\t\022\016\n\006colors\030\002 \003(\t\"\206\001\n\017Cu" - + "stomAttribute\022\014\n\004text\030\001 \003(\t\022\017\n\007numbers\030\002" - + " \003(\001\022\033\n\nsearchable\030\003 \001(\010B\002\030\001H\000\210\001\001\022\032\n\tind" - + "exable\030\004 \001(\010B\002\030\001H\001\210\001\001B\r\n\013_searchableB\014\n\n" - + "_indexable\"2\n\017FulfillmentInfo\022\014\n\004type\030\001 " - + "\001(\t\022\021\n\tplace_ids\030\002 \003(\t\"8\n\005Image\022\020\n\003uri\030\001" - + " \001(\tB\003\340A\002\022\016\n\006height\030\002 \001(\005\022\r\n\005width\030\003 \001(\005" - + "\"x\n\010Interval\022\021\n\007minimum\030\001 \001(\001H\000\022\033\n\021exclu" - + "sive_minimum\030\002 \001(\001H\000\022\021\n\007maximum\030\003 \001(\001H\001\022" - + "\033\n\021exclusive_maximum\030\004 \001(\001H\001B\005\n\003minB\005\n\003m" - + "ax\"\231\003\n\tPriceInfo\022\025\n\rcurrency_code\030\001 \001(\t\022" - + "\r\n\005price\030\002 \001(\002\022\026\n\016original_price\030\003 \001(\002\022\014" - + "\n\004cost\030\004 \001(\002\0228\n\024price_effective_time\030\005 \001" - + "(\0132\032.google.protobuf.Timestamp\0225\n\021price_" - + "expire_time\030\006 \001(\0132\032.google.protobuf.Time" - + "stamp\022K\n\013price_range\030\007 \001(\01321.google.clou" - + "d.retail.v2alpha.PriceInfo.PriceRangeB\003\340" - + "A\003\032\201\001\n\nPriceRange\0224\n\005price\030\001 \001(\0132%.googl" - + "e.cloud.retail.v2alpha.Interval\022=\n\016origi" - + "nal_price\030\002 \001(\0132%.google.cloud.retail.v2" - + "alpha.Interval\"P\n\006Rating\022\024\n\014rating_count" - + "\030\001 \001(\005\022\026\n\016average_rating\030\002 \001(\002\022\030\n\020rating" - + "_histogram\030\003 \003(\005\"`\n\010UserInfo\022\017\n\007user_id\030" - + "\001 \001(\t\022\022\n\nip_address\030\002 \001(\t\022\022\n\nuser_agent\030" - + "\003 \001(\t\022\033\n\023direct_user_request\030\004 \001(\010\"\260\002\n\016L" - + "ocalInventory\022\020\n\010place_id\030\001 \001(\t\022:\n\nprice" - + "_info\030\002 \001(\0132&.google.cloud.retail.v2alph" - + "a.PriceInfo\022O\n\nattributes\030\003 \003(\0132;.google" - + ".cloud.retail.v2alpha.LocalInventory.Att" - + "ributesEntry\022\036\n\021fulfillment_types\030\004 \003(\tB" - + "\003\340A\004\032_\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022;\n\005" - + "value\030\002 \001(\0132,.google.cloud.retail.v2alph" - + "a.CustomAttribute:\0028\001*\206\001\n\024AttributeConfi" - + "gLevel\022&\n\"ATTRIBUTE_CONFIG_LEVEL_UNSPECI" - + "FIED\020\000\022\"\n\036PRODUCT_LEVEL_ATTRIBUTE_CONFIG" - + "\020\001\022\"\n\036CATALOG_LEVEL_ATTRIBUTE_CONFIG\020\002*i" - + "\n\014SolutionType\022\035\n\031SOLUTION_TYPE_UNSPECIF" - + "IED\020\000\022 \n\034SOLUTION_TYPE_RECOMMENDATION\020\001\022" - + "\030\n\024SOLUTION_TYPE_SEARCH\020\002*\241\001\n\036Recommenda" - + "tionsFilteringOption\0220\n,RECOMMENDATIONS_" - + "FILTERING_OPTION_UNSPECIFIED\020\000\022&\n\"RECOMM" - + "ENDATIONS_FILTERING_DISABLED\020\001\022%\n!RECOMM" - + "ENDATIONS_FILTERING_ENABLED\020\003*\213\001\n\025Search" - + "SolutionUseCase\022(\n$SEARCH_SOLUTION_USE_C" - + "ASE_UNSPECIFIED\020\000\022#\n\037SEARCH_SOLUTION_USE" - + "_CASE_SEARCH\020\001\022#\n\037SEARCH_SOLUTION_USE_CA" - + "SE_BROWSE\020\002B\317\001\n\037com.google.cloud.retail." - + "v2alphaB\013CommonProtoP\001Z7cloud.google.com" - + "/go/retail/apiv2alpha/retailpb;retailpb\242" - + "\002\006RETAIL\252\002\033Google.Cloud.Retail.V2Alpha\312\002" - + "\033Google\\Cloud\\Retail\\V2alpha\352\002\036Google::C" - + "loud::Retail::V2alphab\006proto3" + + "Condition.TimeRange\022\027\n\017page_categories\030\004" + + " \003(\t\032.\n\tQueryTerm\022\r\n\005value\030\001 \001(\t\022\022\n\nfull" + + "_match\030\002 \001(\010\032i\n\tTimeRange\022.\n\nstart_time\030" + + "\001 \001(\0132\032.google.protobuf.Timestamp\022,\n\010end" + + "_time\030\002 \001(\0132\032.google.protobuf.Timestamp\"" + + "\341\014\n\004Rule\022E\n\014boost_action\030\002 \001(\0132-.google." + + "cloud.retail.v2alpha.Rule.BoostActionH\000\022" + + "K\n\017redirect_action\030\003 \001(\01320.google.cloud." + + "retail.v2alpha.Rule.RedirectActionH\000\022X\n\026" + + "oneway_synonyms_action\030\006 \001(\01326.google.cl" + + "oud.retail.v2alpha.Rule.OnewaySynonymsAc" + + "tionH\000\022Y\n\027do_not_associate_action\030\007 \001(\0132" + + "6.google.cloud.retail.v2alpha.Rule.DoNot" + + "AssociateActionH\000\022Q\n\022replacement_action\030" + + "\010 \001(\01323.google.cloud.retail.v2alpha.Rule" + + ".ReplacementActionH\000\022G\n\rignore_action\030\t " + + "\001(\0132..google.cloud.retail.v2alpha.Rule.I" + + "gnoreActionH\000\022G\n\rfilter_action\030\n \001(\0132..g" + + "oogle.cloud.retail.v2alpha.Rule.FilterAc" + + "tionH\000\022X\n\026twoway_synonyms_action\030\013 \001(\01326" + + ".google.cloud.retail.v2alpha.Rule.Twoway" + + "SynonymsActionH\000\022]\n\031force_return_facet_a" + + "ction\030\014 \001(\01328.google.cloud.retail.v2alph" + + "a.Rule.ForceReturnFacetActionH\000\022R\n\023remov" + + "e_facet_action\030\r \001(\01323.google.cloud.reta" + + "il.v2alpha.Rule.RemoveFacetActionH\000\022>\n\tc" + + "ondition\030\001 \001(\0132&.google.cloud.retail.v2a" + + "lpha.ConditionB\003\340A\002\0325\n\013BoostAction\022\r\n\005bo" + + "ost\030\001 \001(\002\022\027\n\017products_filter\030\002 \001(\t\032\036\n\014Fi" + + "lterAction\022\016\n\006filter\030\001 \001(\t\032&\n\016RedirectAc" + + "tion\022\024\n\014redirect_uri\030\001 \001(\t\032(\n\024TwowaySyno" + + "nymsAction\022\020\n\010synonyms\030\001 \003(\t\032S\n\024OnewaySy" + + "nonymsAction\022\023\n\013query_terms\030\003 \003(\t\022\020\n\010syn" + + "onyms\030\004 \003(\t\022\024\n\014oneway_terms\030\002 \003(\t\032Z\n\024DoN" + + "otAssociateAction\022\023\n\013query_terms\030\002 \003(\t\022\036" + + "\n\026do_not_associate_terms\030\003 \003(\t\022\r\n\005terms\030" + + "\001 \003(\t\032P\n\021ReplacementAction\022\023\n\013query_term" + + "s\030\002 \003(\t\022\030\n\020replacement_term\030\003 \001(\t\022\014\n\004ter" + + "m\030\001 \001(\t\032$\n\014IgnoreAction\022\024\n\014ignore_terms\030" + + "\001 \003(\t\032\323\001\n\026ForceReturnFacetAction\022t\n\032face" + + "t_position_adjustments\030\001 \003(\0132P.google.cl" + + "oud.retail.v2alpha.Rule.ForceReturnFacet" + + "Action.FacetPositionAdjustment\032C\n\027FacetP" + + "ositionAdjustment\022\026\n\016attribute_name\030\001 \001(" + + "\t\022\020\n\010position\030\002 \001(\005\032,\n\021RemoveFacetAction" + + "\022\027\n\017attribute_names\030\001 \003(\tB\010\n\006action\"/\n\010A" + + "udience\022\017\n\007genders\030\001 \003(\t\022\022\n\nage_groups\030\002" + + " \003(\t\"3\n\tColorInfo\022\026\n\016color_families\030\001 \003(" + + "\t\022\016\n\006colors\030\002 \003(\t\"\206\001\n\017CustomAttribute\022\014\n" + + "\004text\030\001 \003(\t\022\017\n\007numbers\030\002 \003(\001\022\033\n\nsearchab" + + "le\030\003 \001(\010B\002\030\001H\000\210\001\001\022\032\n\tindexable\030\004 \001(\010B\002\030\001" + + "H\001\210\001\001B\r\n\013_searchableB\014\n\n_indexable\"2\n\017Fu" + + "lfillmentInfo\022\014\n\004type\030\001 \001(\t\022\021\n\tplace_ids" + + "\030\002 \003(\t\"8\n\005Image\022\020\n\003uri\030\001 \001(\tB\003\340A\002\022\016\n\006hei" + + "ght\030\002 \001(\005\022\r\n\005width\030\003 \001(\005\"x\n\010Interval\022\021\n\007" + + "minimum\030\001 \001(\001H\000\022\033\n\021exclusive_minimum\030\002 \001" + + "(\001H\000\022\021\n\007maximum\030\003 \001(\001H\001\022\033\n\021exclusive_max" + + "imum\030\004 \001(\001H\001B\005\n\003minB\005\n\003max\"\231\003\n\tPriceInfo" + + "\022\025\n\rcurrency_code\030\001 \001(\t\022\r\n\005price\030\002 \001(\002\022\026" + + "\n\016original_price\030\003 \001(\002\022\014\n\004cost\030\004 \001(\002\0228\n\024" + + "price_effective_time\030\005 \001(\0132\032.google.prot" + + "obuf.Timestamp\0225\n\021price_expire_time\030\006 \001(" + + "\0132\032.google.protobuf.Timestamp\022K\n\013price_r" + + "ange\030\007 \001(\01321.google.cloud.retail.v2alpha" + + ".PriceInfo.PriceRangeB\003\340A\003\032\201\001\n\nPriceRang" + + "e\0224\n\005price\030\001 \001(\0132%.google.cloud.retail.v" + + "2alpha.Interval\022=\n\016original_price\030\002 \001(\0132" + + "%.google.cloud.retail.v2alpha.Interval\"P" + + "\n\006Rating\022\024\n\014rating_count\030\001 \001(\005\022\026\n\016averag" + + "e_rating\030\002 \001(\002\022\030\n\020rating_histogram\030\003 \003(\005" + + "\"`\n\010UserInfo\022\017\n\007user_id\030\001 \001(\t\022\022\n\nip_addr" + + "ess\030\002 \001(\t\022\022\n\nuser_agent\030\003 \001(\t\022\033\n\023direct_" + + "user_request\030\004 \001(\010\"\260\002\n\016LocalInventory\022\020\n" + + "\010place_id\030\001 \001(\t\022:\n\nprice_info\030\002 \001(\0132&.go" + + "ogle.cloud.retail.v2alpha.PriceInfo\022O\n\na" + + "ttributes\030\003 \003(\0132;.google.cloud.retail.v2" + + "alpha.LocalInventory.AttributesEntry\022\036\n\021" + + "fulfillment_types\030\004 \003(\tB\003\340A\004\032_\n\017Attribut" + + "esEntry\022\013\n\003key\030\001 \001(\t\022;\n\005value\030\002 \001(\0132,.go" + + "ogle.cloud.retail.v2alpha.CustomAttribut" + + "e:\0028\001*\206\001\n\024AttributeConfigLevel\022&\n\"ATTRIB" + + "UTE_CONFIG_LEVEL_UNSPECIFIED\020\000\022\"\n\036PRODUC" + + "T_LEVEL_ATTRIBUTE_CONFIG\020\001\022\"\n\036CATALOG_LE" + + "VEL_ATTRIBUTE_CONFIG\020\002*i\n\014SolutionType\022\035" + + "\n\031SOLUTION_TYPE_UNSPECIFIED\020\000\022 \n\034SOLUTIO" + + "N_TYPE_RECOMMENDATION\020\001\022\030\n\024SOLUTION_TYPE" + + "_SEARCH\020\002*\241\001\n\036RecommendationsFilteringOp" + + "tion\0220\n,RECOMMENDATIONS_FILTERING_OPTION" + + "_UNSPECIFIED\020\000\022&\n\"RECOMMENDATIONS_FILTER" + + "ING_DISABLED\020\001\022%\n!RECOMMENDATIONS_FILTER" + + "ING_ENABLED\020\003*\213\001\n\025SearchSolutionUseCase\022" + + "(\n$SEARCH_SOLUTION_USE_CASE_UNSPECIFIED\020" + + "\000\022#\n\037SEARCH_SOLUTION_USE_CASE_SEARCH\020\001\022#" + + "\n\037SEARCH_SOLUTION_USE_CASE_BROWSE\020\002B\317\001\n\037" + + "com.google.cloud.retail.v2alphaB\013CommonP" + + "rotoP\001Z7cloud.google.com/go/retail/apiv2" + + "alpha/retailpb;retailpb\242\002\006RETAIL\252\002\033Googl" + + "e.Cloud.Retail.V2Alpha\312\002\033Google\\Cloud\\Re" + + "tail\\V2alpha\352\002\036Google::Cloud::Retail::V2" + + "alphab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -242,7 +266,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_retail_v2alpha_Condition_descriptor, new java.lang.String[] { - "QueryTerms", "ActiveTimeRange", + "QueryTerms", "ActiveTimeRange", "PageCategories", }); internal_static_google_cloud_retail_v2alpha_Condition_QueryTerm_descriptor = internal_static_google_cloud_retail_v2alpha_Condition_descriptor.getNestedTypes().get(0); @@ -274,6 +298,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IgnoreAction", "FilterAction", "TwowaySynonymsAction", + "ForceReturnFacetAction", + "RemoveFacetAction", "Condition", "Action", }); @@ -341,6 +367,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "IgnoreTerms", }); + internal_static_google_cloud_retail_v2alpha_Rule_ForceReturnFacetAction_descriptor = + internal_static_google_cloud_retail_v2alpha_Rule_descriptor.getNestedTypes().get(8); + internal_static_google_cloud_retail_v2alpha_Rule_ForceReturnFacetAction_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2alpha_Rule_ForceReturnFacetAction_descriptor, + new java.lang.String[] { + "FacetPositionAdjustments", + }); + internal_static_google_cloud_retail_v2alpha_Rule_ForceReturnFacetAction_FacetPositionAdjustment_descriptor = + internal_static_google_cloud_retail_v2alpha_Rule_ForceReturnFacetAction_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_retail_v2alpha_Rule_ForceReturnFacetAction_FacetPositionAdjustment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2alpha_Rule_ForceReturnFacetAction_FacetPositionAdjustment_descriptor, + new java.lang.String[] { + "AttributeName", "Position", + }); + internal_static_google_cloud_retail_v2alpha_Rule_RemoveFacetAction_descriptor = + internal_static_google_cloud_retail_v2alpha_Rule_descriptor.getNestedTypes().get(9); + internal_static_google_cloud_retail_v2alpha_Rule_RemoveFacetAction_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2alpha_Rule_RemoveFacetAction_descriptor, + new java.lang.String[] { + "AttributeNames", + }); internal_static_google_cloud_retail_v2alpha_Audience_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_google_cloud_retail_v2alpha_Audience_fieldAccessorTable = diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CompleteQueryRequest.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CompleteQueryRequest.java index 3c633b31de3a..32b8e169e64c 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CompleteQueryRequest.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CompleteQueryRequest.java @@ -551,10 +551,10 @@ public boolean getEnableAttributeSuggestions() { * * *
-   * The entity for customers that may run multiple different entities, domains,
-   * sites or regions, for example, `Google US`, `Google Ads`, `Waymo`,
+   * The entity for customers who run multiple entities, domains, sites, or
+   * regions, for example, `Google US`, `Google Ads`, `Waymo`,
    * `google.com`, `youtube.com`, etc.
-   * If this is set, it should be exactly matched with
+   * If this is set, it must be an exact match with
    * [UserEvent.entity][google.cloud.retail.v2alpha.UserEvent.entity] to get
    * per-entity autocomplete results.
    * 
@@ -579,10 +579,10 @@ public java.lang.String getEntity() { * * *
-   * The entity for customers that may run multiple different entities, domains,
-   * sites or regions, for example, `Google US`, `Google Ads`, `Waymo`,
+   * The entity for customers who run multiple entities, domains, sites, or
+   * regions, for example, `Google US`, `Google Ads`, `Waymo`,
    * `google.com`, `youtube.com`, etc.
-   * If this is set, it should be exactly matched with
+   * If this is set, it must be an exact match with
    * [UserEvent.entity][google.cloud.retail.v2alpha.UserEvent.entity] to get
    * per-entity autocomplete results.
    * 
@@ -2256,10 +2256,10 @@ public Builder clearEnableAttributeSuggestions() { * * *
-     * The entity for customers that may run multiple different entities, domains,
-     * sites or regions, for example, `Google US`, `Google Ads`, `Waymo`,
+     * The entity for customers who run multiple entities, domains, sites, or
+     * regions, for example, `Google US`, `Google Ads`, `Waymo`,
      * `google.com`, `youtube.com`, etc.
-     * If this is set, it should be exactly matched with
+     * If this is set, it must be an exact match with
      * [UserEvent.entity][google.cloud.retail.v2alpha.UserEvent.entity] to get
      * per-entity autocomplete results.
      * 
@@ -2283,10 +2283,10 @@ public java.lang.String getEntity() { * * *
-     * The entity for customers that may run multiple different entities, domains,
-     * sites or regions, for example, `Google US`, `Google Ads`, `Waymo`,
+     * The entity for customers who run multiple entities, domains, sites, or
+     * regions, for example, `Google US`, `Google Ads`, `Waymo`,
      * `google.com`, `youtube.com`, etc.
-     * If this is set, it should be exactly matched with
+     * If this is set, it must be an exact match with
      * [UserEvent.entity][google.cloud.retail.v2alpha.UserEvent.entity] to get
      * per-entity autocomplete results.
      * 
@@ -2310,10 +2310,10 @@ public com.google.protobuf.ByteString getEntityBytes() { * * *
-     * The entity for customers that may run multiple different entities, domains,
-     * sites or regions, for example, `Google US`, `Google Ads`, `Waymo`,
+     * The entity for customers who run multiple entities, domains, sites, or
+     * regions, for example, `Google US`, `Google Ads`, `Waymo`,
      * `google.com`, `youtube.com`, etc.
-     * If this is set, it should be exactly matched with
+     * If this is set, it must be an exact match with
      * [UserEvent.entity][google.cloud.retail.v2alpha.UserEvent.entity] to get
      * per-entity autocomplete results.
      * 
@@ -2336,10 +2336,10 @@ public Builder setEntity(java.lang.String value) { * * *
-     * The entity for customers that may run multiple different entities, domains,
-     * sites or regions, for example, `Google US`, `Google Ads`, `Waymo`,
+     * The entity for customers who run multiple entities, domains, sites, or
+     * regions, for example, `Google US`, `Google Ads`, `Waymo`,
      * `google.com`, `youtube.com`, etc.
-     * If this is set, it should be exactly matched with
+     * If this is set, it must be an exact match with
      * [UserEvent.entity][google.cloud.retail.v2alpha.UserEvent.entity] to get
      * per-entity autocomplete results.
      * 
@@ -2358,10 +2358,10 @@ public Builder clearEntity() { * * *
-     * The entity for customers that may run multiple different entities, domains,
-     * sites or regions, for example, `Google US`, `Google Ads`, `Waymo`,
+     * The entity for customers who run multiple entities, domains, sites, or
+     * regions, for example, `Google US`, `Google Ads`, `Waymo`,
      * `google.com`, `youtube.com`, etc.
-     * If this is set, it should be exactly matched with
+     * If this is set, it must be an exact match with
      * [UserEvent.entity][google.cloud.retail.v2alpha.UserEvent.entity] to get
      * per-entity autocomplete results.
      * 
diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CompleteQueryRequestOrBuilder.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CompleteQueryRequestOrBuilder.java index 4b6fb4554aa6..ea8956f43d61 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CompleteQueryRequestOrBuilder.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CompleteQueryRequestOrBuilder.java @@ -349,10 +349,10 @@ public interface CompleteQueryRequestOrBuilder * * *
-   * The entity for customers that may run multiple different entities, domains,
-   * sites or regions, for example, `Google US`, `Google Ads`, `Waymo`,
+   * The entity for customers who run multiple entities, domains, sites, or
+   * regions, for example, `Google US`, `Google Ads`, `Waymo`,
    * `google.com`, `youtube.com`, etc.
-   * If this is set, it should be exactly matched with
+   * If this is set, it must be an exact match with
    * [UserEvent.entity][google.cloud.retail.v2alpha.UserEvent.entity] to get
    * per-entity autocomplete results.
    * 
@@ -366,10 +366,10 @@ public interface CompleteQueryRequestOrBuilder * * *
-   * The entity for customers that may run multiple different entities, domains,
-   * sites or regions, for example, `Google US`, `Google Ads`, `Waymo`,
+   * The entity for customers who run multiple entities, domains, sites, or
+   * regions, for example, `Google US`, `Google Ads`, `Waymo`,
    * `google.com`, `youtube.com`, etc.
-   * If this is set, it should be exactly matched with
+   * If this is set, it must be an exact match with
    * [UserEvent.entity][google.cloud.retail.v2alpha.UserEvent.entity] to get
    * per-entity autocomplete results.
    * 
diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CompleteQueryResponse.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CompleteQueryResponse.java index 29eb87b5cc06..a25f6bfe6038 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CompleteQueryResponse.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CompleteQueryResponse.java @@ -214,8 +214,8 @@ com.google.cloud.retail.v2alpha.CustomAttribute getAttributesOrDefault( * Facet information for the suggestion term. Gives the number of items * resulting from a search with this suggestion term for each facet. * - * This is an experimental feature for limited customers. Please reach out - * to the support team if you would like to receive this information. + * This is an experimental feature for limited customers. If you want to + * receive this facet information, reach out to the Retail support team. * * * repeated .google.cloud.retail.v2alpha.SearchResponse.Facet facets = 3; @@ -228,8 +228,8 @@ com.google.cloud.retail.v2alpha.CustomAttribute getAttributesOrDefault( * Facet information for the suggestion term. Gives the number of items * resulting from a search with this suggestion term for each facet. * - * This is an experimental feature for limited customers. Please reach out - * to the support team if you would like to receive this information. + * This is an experimental feature for limited customers. If you want to + * receive this facet information, reach out to the Retail support team. * * * repeated .google.cloud.retail.v2alpha.SearchResponse.Facet facets = 3; @@ -242,8 +242,8 @@ com.google.cloud.retail.v2alpha.CustomAttribute getAttributesOrDefault( * Facet information for the suggestion term. Gives the number of items * resulting from a search with this suggestion term for each facet. * - * This is an experimental feature for limited customers. Please reach out - * to the support team if you would like to receive this information. + * This is an experimental feature for limited customers. If you want to + * receive this facet information, reach out to the Retail support team. * * * repeated .google.cloud.retail.v2alpha.SearchResponse.Facet facets = 3; @@ -256,8 +256,8 @@ com.google.cloud.retail.v2alpha.CustomAttribute getAttributesOrDefault( * Facet information for the suggestion term. Gives the number of items * resulting from a search with this suggestion term for each facet. * - * This is an experimental feature for limited customers. Please reach out - * to the support team if you would like to receive this information. + * This is an experimental feature for limited customers. If you want to + * receive this facet information, reach out to the Retail support team. * * * repeated .google.cloud.retail.v2alpha.SearchResponse.Facet facets = 3; @@ -271,8 +271,8 @@ com.google.cloud.retail.v2alpha.CustomAttribute getAttributesOrDefault( * Facet information for the suggestion term. Gives the number of items * resulting from a search with this suggestion term for each facet. * - * This is an experimental feature for limited customers. Please reach out - * to the support team if you would like to receive this information. + * This is an experimental feature for limited customers. If you want to + * receive this facet information, reach out to the Retail support team. * * * repeated .google.cloud.retail.v2alpha.SearchResponse.Facet facets = 3; @@ -285,8 +285,9 @@ com.google.cloud.retail.v2alpha.CustomAttribute getAttributesOrDefault( *
      * Total number of products associated with a search with this suggestion.
      *
-     * This is an experimental feature for limited customers. Please reach out
-     * to the support team if you would like to receive this information.
+     * This is an experimental feature for limited customers. If you want to
+     * receive this product count information, reach out to the Retail support
+     * team.
      * 
* * int32 total_product_count = 4; @@ -562,8 +563,8 @@ public com.google.cloud.retail.v2alpha.CustomAttribute getAttributesOrThrow( * Facet information for the suggestion term. Gives the number of items * resulting from a search with this suggestion term for each facet. * - * This is an experimental feature for limited customers. Please reach out - * to the support team if you would like to receive this information. + * This is an experimental feature for limited customers. If you want to + * receive this facet information, reach out to the Retail support team. * * * repeated .google.cloud.retail.v2alpha.SearchResponse.Facet facets = 3; @@ -579,8 +580,8 @@ public java.util.List getF * Facet information for the suggestion term. Gives the number of items * resulting from a search with this suggestion term for each facet. * - * This is an experimental feature for limited customers. Please reach out - * to the support team if you would like to receive this information. + * This is an experimental feature for limited customers. If you want to + * receive this facet information, reach out to the Retail support team. * * * repeated .google.cloud.retail.v2alpha.SearchResponse.Facet facets = 3; @@ -597,8 +598,8 @@ public java.util.List getF * Facet information for the suggestion term. Gives the number of items * resulting from a search with this suggestion term for each facet. * - * This is an experimental feature for limited customers. Please reach out - * to the support team if you would like to receive this information. + * This is an experimental feature for limited customers. If you want to + * receive this facet information, reach out to the Retail support team. * * * repeated .google.cloud.retail.v2alpha.SearchResponse.Facet facets = 3; @@ -614,8 +615,8 @@ public int getFacetsCount() { * Facet information for the suggestion term. Gives the number of items * resulting from a search with this suggestion term for each facet. * - * This is an experimental feature for limited customers. Please reach out - * to the support team if you would like to receive this information. + * This is an experimental feature for limited customers. If you want to + * receive this facet information, reach out to the Retail support team. * * * repeated .google.cloud.retail.v2alpha.SearchResponse.Facet facets = 3; @@ -631,8 +632,8 @@ public com.google.cloud.retail.v2alpha.SearchResponse.Facet getFacets(int index) * Facet information for the suggestion term. Gives the number of items * resulting from a search with this suggestion term for each facet. * - * This is an experimental feature for limited customers. Please reach out - * to the support team if you would like to receive this information. + * This is an experimental feature for limited customers. If you want to + * receive this facet information, reach out to the Retail support team. * * * repeated .google.cloud.retail.v2alpha.SearchResponse.Facet facets = 3; @@ -651,8 +652,9 @@ public com.google.cloud.retail.v2alpha.SearchResponse.FacetOrBuilder getFacetsOr *
      * Total number of products associated with a search with this suggestion.
      *
-     * This is an experimental feature for limited customers. Please reach out
-     * to the support team if you would like to receive this information.
+     * This is an experimental feature for limited customers. If you want to
+     * receive this product count information, reach out to the Retail support
+     * team.
      * 
* * int32 total_product_count = 4; @@ -1619,8 +1621,8 @@ private void ensureFacetsIsMutable() { * Facet information for the suggestion term. Gives the number of items * resulting from a search with this suggestion term for each facet. * - * This is an experimental feature for limited customers. Please reach out - * to the support team if you would like to receive this information. + * This is an experimental feature for limited customers. If you want to + * receive this facet information, reach out to the Retail support team. * * * repeated .google.cloud.retail.v2alpha.SearchResponse.Facet facets = 3; @@ -1639,8 +1641,8 @@ public java.util.List getF * Facet information for the suggestion term. Gives the number of items * resulting from a search with this suggestion term for each facet. * - * This is an experimental feature for limited customers. Please reach out - * to the support team if you would like to receive this information. + * This is an experimental feature for limited customers. If you want to + * receive this facet information, reach out to the Retail support team. * * * repeated .google.cloud.retail.v2alpha.SearchResponse.Facet facets = 3; @@ -1659,8 +1661,8 @@ public int getFacetsCount() { * Facet information for the suggestion term. Gives the number of items * resulting from a search with this suggestion term for each facet. * - * This is an experimental feature for limited customers. Please reach out - * to the support team if you would like to receive this information. + * This is an experimental feature for limited customers. If you want to + * receive this facet information, reach out to the Retail support team. * * * repeated .google.cloud.retail.v2alpha.SearchResponse.Facet facets = 3; @@ -1679,8 +1681,8 @@ public com.google.cloud.retail.v2alpha.SearchResponse.Facet getFacets(int index) * Facet information for the suggestion term. Gives the number of items * resulting from a search with this suggestion term for each facet. * - * This is an experimental feature for limited customers. Please reach out - * to the support team if you would like to receive this information. + * This is an experimental feature for limited customers. If you want to + * receive this facet information, reach out to the Retail support team. * * * repeated .google.cloud.retail.v2alpha.SearchResponse.Facet facets = 3; @@ -1706,8 +1708,8 @@ public Builder setFacets( * Facet information for the suggestion term. Gives the number of items * resulting from a search with this suggestion term for each facet. * - * This is an experimental feature for limited customers. Please reach out - * to the support team if you would like to receive this information. + * This is an experimental feature for limited customers. If you want to + * receive this facet information, reach out to the Retail support team. * * * repeated .google.cloud.retail.v2alpha.SearchResponse.Facet facets = 3; @@ -1730,8 +1732,8 @@ public Builder setFacets( * Facet information for the suggestion term. Gives the number of items * resulting from a search with this suggestion term for each facet. * - * This is an experimental feature for limited customers. Please reach out - * to the support team if you would like to receive this information. + * This is an experimental feature for limited customers. If you want to + * receive this facet information, reach out to the Retail support team. * * * repeated .google.cloud.retail.v2alpha.SearchResponse.Facet facets = 3; @@ -1756,8 +1758,8 @@ public Builder addFacets(com.google.cloud.retail.v2alpha.SearchResponse.Facet va * Facet information for the suggestion term. Gives the number of items * resulting from a search with this suggestion term for each facet. * - * This is an experimental feature for limited customers. Please reach out - * to the support team if you would like to receive this information. + * This is an experimental feature for limited customers. If you want to + * receive this facet information, reach out to the Retail support team. * * * repeated .google.cloud.retail.v2alpha.SearchResponse.Facet facets = 3; @@ -1783,8 +1785,8 @@ public Builder addFacets( * Facet information for the suggestion term. Gives the number of items * resulting from a search with this suggestion term for each facet. * - * This is an experimental feature for limited customers. Please reach out - * to the support team if you would like to receive this information. + * This is an experimental feature for limited customers. If you want to + * receive this facet information, reach out to the Retail support team. * * * repeated .google.cloud.retail.v2alpha.SearchResponse.Facet facets = 3; @@ -1807,8 +1809,8 @@ public Builder addFacets( * Facet information for the suggestion term. Gives the number of items * resulting from a search with this suggestion term for each facet. * - * This is an experimental feature for limited customers. Please reach out - * to the support team if you would like to receive this information. + * This is an experimental feature for limited customers. If you want to + * receive this facet information, reach out to the Retail support team. * * * repeated .google.cloud.retail.v2alpha.SearchResponse.Facet facets = 3; @@ -1831,8 +1833,8 @@ public Builder addFacets( * Facet information for the suggestion term. Gives the number of items * resulting from a search with this suggestion term for each facet. * - * This is an experimental feature for limited customers. Please reach out - * to the support team if you would like to receive this information. + * This is an experimental feature for limited customers. If you want to + * receive this facet information, reach out to the Retail support team. * * * repeated .google.cloud.retail.v2alpha.SearchResponse.Facet facets = 3; @@ -1856,8 +1858,8 @@ public Builder addAllFacets( * Facet information for the suggestion term. Gives the number of items * resulting from a search with this suggestion term for each facet. * - * This is an experimental feature for limited customers. Please reach out - * to the support team if you would like to receive this information. + * This is an experimental feature for limited customers. If you want to + * receive this facet information, reach out to the Retail support team. * * * repeated .google.cloud.retail.v2alpha.SearchResponse.Facet facets = 3; @@ -1879,8 +1881,8 @@ public Builder clearFacets() { * Facet information for the suggestion term. Gives the number of items * resulting from a search with this suggestion term for each facet. * - * This is an experimental feature for limited customers. Please reach out - * to the support team if you would like to receive this information. + * This is an experimental feature for limited customers. If you want to + * receive this facet information, reach out to the Retail support team. * * * repeated .google.cloud.retail.v2alpha.SearchResponse.Facet facets = 3; @@ -1902,8 +1904,8 @@ public Builder removeFacets(int index) { * Facet information for the suggestion term. Gives the number of items * resulting from a search with this suggestion term for each facet. * - * This is an experimental feature for limited customers. Please reach out - * to the support team if you would like to receive this information. + * This is an experimental feature for limited customers. If you want to + * receive this facet information, reach out to the Retail support team. * * * repeated .google.cloud.retail.v2alpha.SearchResponse.Facet facets = 3; @@ -1919,8 +1921,8 @@ public com.google.cloud.retail.v2alpha.SearchResponse.Facet.Builder getFacetsBui * Facet information for the suggestion term. Gives the number of items * resulting from a search with this suggestion term for each facet. * - * This is an experimental feature for limited customers. Please reach out - * to the support team if you would like to receive this information. + * This is an experimental feature for limited customers. If you want to + * receive this facet information, reach out to the Retail support team. * * * repeated .google.cloud.retail.v2alpha.SearchResponse.Facet facets = 3; @@ -1940,8 +1942,8 @@ public com.google.cloud.retail.v2alpha.SearchResponse.FacetOrBuilder getFacetsOr * Facet information for the suggestion term. Gives the number of items * resulting from a search with this suggestion term for each facet. * - * This is an experimental feature for limited customers. Please reach out - * to the support team if you would like to receive this information. + * This is an experimental feature for limited customers. If you want to + * receive this facet information, reach out to the Retail support team. * * * repeated .google.cloud.retail.v2alpha.SearchResponse.Facet facets = 3; @@ -1961,8 +1963,8 @@ public com.google.cloud.retail.v2alpha.SearchResponse.FacetOrBuilder getFacetsOr * Facet information for the suggestion term. Gives the number of items * resulting from a search with this suggestion term for each facet. * - * This is an experimental feature for limited customers. Please reach out - * to the support team if you would like to receive this information. + * This is an experimental feature for limited customers. If you want to + * receive this facet information, reach out to the Retail support team. * * * repeated .google.cloud.retail.v2alpha.SearchResponse.Facet facets = 3; @@ -1978,8 +1980,8 @@ public com.google.cloud.retail.v2alpha.SearchResponse.Facet.Builder addFacetsBui * Facet information for the suggestion term. Gives the number of items * resulting from a search with this suggestion term for each facet. * - * This is an experimental feature for limited customers. Please reach out - * to the support team if you would like to receive this information. + * This is an experimental feature for limited customers. If you want to + * receive this facet information, reach out to the Retail support team. * * * repeated .google.cloud.retail.v2alpha.SearchResponse.Facet facets = 3; @@ -1997,8 +1999,8 @@ public com.google.cloud.retail.v2alpha.SearchResponse.Facet.Builder addFacetsBui * Facet information for the suggestion term. Gives the number of items * resulting from a search with this suggestion term for each facet. * - * This is an experimental feature for limited customers. Please reach out - * to the support team if you would like to receive this information. + * This is an experimental feature for limited customers. If you want to + * receive this facet information, reach out to the Retail support team. * * * repeated .google.cloud.retail.v2alpha.SearchResponse.Facet facets = 3; @@ -2032,8 +2034,9 @@ public com.google.cloud.retail.v2alpha.SearchResponse.Facet.Builder addFacetsBui *
        * Total number of products associated with a search with this suggestion.
        *
-       * This is an experimental feature for limited customers. Please reach out
-       * to the support team if you would like to receive this information.
+       * This is an experimental feature for limited customers. If you want to
+       * receive this product count information, reach out to the Retail support
+       * team.
        * 
* * int32 total_product_count = 4; @@ -2050,8 +2053,9 @@ public int getTotalProductCount() { *
        * Total number of products associated with a search with this suggestion.
        *
-       * This is an experimental feature for limited customers. Please reach out
-       * to the support team if you would like to receive this information.
+       * This is an experimental feature for limited customers. If you want to
+       * receive this product count information, reach out to the Retail support
+       * team.
        * 
* * int32 total_product_count = 4; @@ -2072,8 +2076,9 @@ public Builder setTotalProductCount(int value) { *
        * Total number of products associated with a search with this suggestion.
        *
-       * This is an experimental feature for limited customers. Please reach out
-       * to the support team if you would like to receive this information.
+       * This is an experimental feature for limited customers. If you want to
+       * receive this product count information, reach out to the Retail support
+       * team.
        * 
* * int32 total_product_count = 4; @@ -2155,6 +2160,7 @@ public com.google.protobuf.Parser getParserForType() { } } + @java.lang.Deprecated public interface RecentSearchResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult) @@ -2189,11 +2195,12 @@ public interface RecentSearchResultOrBuilder * * *
-   * Recent search of this user.
+   * Deprecated: Recent search of this user.
    * 
* * Protobuf type {@code google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult} */ + @java.lang.Deprecated public static final class RecentSearchResult extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult) @@ -2453,7 +2460,7 @@ protected Builder newBuilderForType( * * *
-     * Recent search of this user.
+     * Deprecated: Recent search of this user.
      * 
* * Protobuf type {@code google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult} @@ -3755,9 +3762,9 @@ public com.google.protobuf.ByteString getAttributionTokenBytes() { * * *
-   * Matched recent searches of this user. The maximum number of recent searches
-   * is 10. This field is a restricted feature. Contact Retail Search support
-   * team if you are interested in enabling it.
+   * Deprecated. Matched recent searches of this user. The maximum number of
+   * recent searches is 10. This field is a restricted feature. If you want to
+   * enable it, contact Retail Search support.
    *
    * This feature is only available when
    * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2alpha.CompleteQueryRequest.visitor_id]
@@ -3779,10 +3786,11 @@ public com.google.protobuf.ByteString getAttributionTokenBytes() {
    * 
* * - * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ @java.lang.Override + @java.lang.Deprecated public java.util.List getRecentSearchResultsList() { return recentSearchResults_; @@ -3791,9 +3799,9 @@ public com.google.protobuf.ByteString getAttributionTokenBytes() { * * *
-   * Matched recent searches of this user. The maximum number of recent searches
-   * is 10. This field is a restricted feature. Contact Retail Search support
-   * team if you are interested in enabling it.
+   * Deprecated. Matched recent searches of this user. The maximum number of
+   * recent searches is 10. This field is a restricted feature. If you want to
+   * enable it, contact Retail Search support.
    *
    * This feature is only available when
    * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2alpha.CompleteQueryRequest.visitor_id]
@@ -3815,10 +3823,11 @@ public com.google.protobuf.ByteString getAttributionTokenBytes() {
    * 
* * - * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ @java.lang.Override + @java.lang.Deprecated public java.util.List< ? extends com.google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResultOrBuilder> @@ -3829,9 +3838,9 @@ public com.google.protobuf.ByteString getAttributionTokenBytes() { * * *
-   * Matched recent searches of this user. The maximum number of recent searches
-   * is 10. This field is a restricted feature. Contact Retail Search support
-   * team if you are interested in enabling it.
+   * Deprecated. Matched recent searches of this user. The maximum number of
+   * recent searches is 10. This field is a restricted feature. If you want to
+   * enable it, contact Retail Search support.
    *
    * This feature is only available when
    * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2alpha.CompleteQueryRequest.visitor_id]
@@ -3853,10 +3862,11 @@ public com.google.protobuf.ByteString getAttributionTokenBytes() {
    * 
* * - * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ @java.lang.Override + @java.lang.Deprecated public int getRecentSearchResultsCount() { return recentSearchResults_.size(); } @@ -3864,9 +3874,9 @@ public int getRecentSearchResultsCount() { * * *
-   * Matched recent searches of this user. The maximum number of recent searches
-   * is 10. This field is a restricted feature. Contact Retail Search support
-   * team if you are interested in enabling it.
+   * Deprecated. Matched recent searches of this user. The maximum number of
+   * recent searches is 10. This field is a restricted feature. If you want to
+   * enable it, contact Retail Search support.
    *
    * This feature is only available when
    * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2alpha.CompleteQueryRequest.visitor_id]
@@ -3888,10 +3898,11 @@ public int getRecentSearchResultsCount() {
    * 
* * - * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult getRecentSearchResults(int index) { return recentSearchResults_.get(index); @@ -3900,9 +3911,9 @@ public int getRecentSearchResultsCount() { * * *
-   * Matched recent searches of this user. The maximum number of recent searches
-   * is 10. This field is a restricted feature. Contact Retail Search support
-   * team if you are interested in enabling it.
+   * Deprecated. Matched recent searches of this user. The maximum number of
+   * recent searches is 10. This field is a restricted feature. If you want to
+   * enable it, contact Retail Search support.
    *
    * This feature is only available when
    * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2alpha.CompleteQueryRequest.visitor_id]
@@ -3924,10 +3935,11 @@ public int getRecentSearchResultsCount() {
    * 
* * - * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResultOrBuilder getRecentSearchResultsOrBuilder(int index) { return recentSearchResults_.get(index); @@ -5223,9 +5235,9 @@ private void ensureRecentSearchResultsIsMutable() { * * *
-     * Matched recent searches of this user. The maximum number of recent searches
-     * is 10. This field is a restricted feature. Contact Retail Search support
-     * team if you are interested in enabling it.
+     * Deprecated. Matched recent searches of this user. The maximum number of
+     * recent searches is 10. This field is a restricted feature. If you want to
+     * enable it, contact Retail Search support.
      *
      * This feature is only available when
      * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2alpha.CompleteQueryRequest.visitor_id]
@@ -5247,9 +5259,10 @@ private void ensureRecentSearchResultsIsMutable() {
      * 
* * - * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated public java.util.List getRecentSearchResultsList() { if (recentSearchResultsBuilder_ == null) { @@ -5262,9 +5275,9 @@ private void ensureRecentSearchResultsIsMutable() { * * *
-     * Matched recent searches of this user. The maximum number of recent searches
-     * is 10. This field is a restricted feature. Contact Retail Search support
-     * team if you are interested in enabling it.
+     * Deprecated. Matched recent searches of this user. The maximum number of
+     * recent searches is 10. This field is a restricted feature. If you want to
+     * enable it, contact Retail Search support.
      *
      * This feature is only available when
      * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2alpha.CompleteQueryRequest.visitor_id]
@@ -5286,9 +5299,10 @@ private void ensureRecentSearchResultsIsMutable() {
      * 
* * - * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated public int getRecentSearchResultsCount() { if (recentSearchResultsBuilder_ == null) { return recentSearchResults_.size(); @@ -5300,9 +5314,9 @@ public int getRecentSearchResultsCount() { * * *
-     * Matched recent searches of this user. The maximum number of recent searches
-     * is 10. This field is a restricted feature. Contact Retail Search support
-     * team if you are interested in enabling it.
+     * Deprecated. Matched recent searches of this user. The maximum number of
+     * recent searches is 10. This field is a restricted feature. If you want to
+     * enable it, contact Retail Search support.
      *
      * This feature is only available when
      * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2alpha.CompleteQueryRequest.visitor_id]
@@ -5324,9 +5338,10 @@ public int getRecentSearchResultsCount() {
      * 
* * - * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated public com.google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult getRecentSearchResults(int index) { if (recentSearchResultsBuilder_ == null) { @@ -5339,9 +5354,9 @@ public int getRecentSearchResultsCount() { * * *
-     * Matched recent searches of this user. The maximum number of recent searches
-     * is 10. This field is a restricted feature. Contact Retail Search support
-     * team if you are interested in enabling it.
+     * Deprecated. Matched recent searches of this user. The maximum number of
+     * recent searches is 10. This field is a restricted feature. If you want to
+     * enable it, contact Retail Search support.
      *
      * This feature is only available when
      * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2alpha.CompleteQueryRequest.visitor_id]
@@ -5363,9 +5378,10 @@ public int getRecentSearchResultsCount() {
      * 
* * - * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated public Builder setRecentSearchResults( int index, com.google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult value) { if (recentSearchResultsBuilder_ == null) { @@ -5384,9 +5400,9 @@ public Builder setRecentSearchResults( * * *
-     * Matched recent searches of this user. The maximum number of recent searches
-     * is 10. This field is a restricted feature. Contact Retail Search support
-     * team if you are interested in enabling it.
+     * Deprecated. Matched recent searches of this user. The maximum number of
+     * recent searches is 10. This field is a restricted feature. If you want to
+     * enable it, contact Retail Search support.
      *
      * This feature is only available when
      * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2alpha.CompleteQueryRequest.visitor_id]
@@ -5408,9 +5424,10 @@ public Builder setRecentSearchResults(
      * 
* * - * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated public Builder setRecentSearchResults( int index, com.google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult.Builder @@ -5428,9 +5445,9 @@ public Builder setRecentSearchResults( * * *
-     * Matched recent searches of this user. The maximum number of recent searches
-     * is 10. This field is a restricted feature. Contact Retail Search support
-     * team if you are interested in enabling it.
+     * Deprecated. Matched recent searches of this user. The maximum number of
+     * recent searches is 10. This field is a restricted feature. If you want to
+     * enable it, contact Retail Search support.
      *
      * This feature is only available when
      * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2alpha.CompleteQueryRequest.visitor_id]
@@ -5452,9 +5469,10 @@ public Builder setRecentSearchResults(
      * 
* * - * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated public Builder addRecentSearchResults( com.google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult value) { if (recentSearchResultsBuilder_ == null) { @@ -5473,9 +5491,9 @@ public Builder addRecentSearchResults( * * *
-     * Matched recent searches of this user. The maximum number of recent searches
-     * is 10. This field is a restricted feature. Contact Retail Search support
-     * team if you are interested in enabling it.
+     * Deprecated. Matched recent searches of this user. The maximum number of
+     * recent searches is 10. This field is a restricted feature. If you want to
+     * enable it, contact Retail Search support.
      *
      * This feature is only available when
      * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2alpha.CompleteQueryRequest.visitor_id]
@@ -5497,9 +5515,10 @@ public Builder addRecentSearchResults(
      * 
* * - * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated public Builder addRecentSearchResults( int index, com.google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult value) { if (recentSearchResultsBuilder_ == null) { @@ -5518,9 +5537,9 @@ public Builder addRecentSearchResults( * * *
-     * Matched recent searches of this user. The maximum number of recent searches
-     * is 10. This field is a restricted feature. Contact Retail Search support
-     * team if you are interested in enabling it.
+     * Deprecated. Matched recent searches of this user. The maximum number of
+     * recent searches is 10. This field is a restricted feature. If you want to
+     * enable it, contact Retail Search support.
      *
      * This feature is only available when
      * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2alpha.CompleteQueryRequest.visitor_id]
@@ -5542,9 +5561,10 @@ public Builder addRecentSearchResults(
      * 
* * - * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated public Builder addRecentSearchResults( com.google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult.Builder builderForValue) { @@ -5561,9 +5581,9 @@ public Builder addRecentSearchResults( * * *
-     * Matched recent searches of this user. The maximum number of recent searches
-     * is 10. This field is a restricted feature. Contact Retail Search support
-     * team if you are interested in enabling it.
+     * Deprecated. Matched recent searches of this user. The maximum number of
+     * recent searches is 10. This field is a restricted feature. If you want to
+     * enable it, contact Retail Search support.
      *
      * This feature is only available when
      * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2alpha.CompleteQueryRequest.visitor_id]
@@ -5585,9 +5605,10 @@ public Builder addRecentSearchResults(
      * 
* * - * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated public Builder addRecentSearchResults( int index, com.google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult.Builder @@ -5605,9 +5626,9 @@ public Builder addRecentSearchResults( * * *
-     * Matched recent searches of this user. The maximum number of recent searches
-     * is 10. This field is a restricted feature. Contact Retail Search support
-     * team if you are interested in enabling it.
+     * Deprecated. Matched recent searches of this user. The maximum number of
+     * recent searches is 10. This field is a restricted feature. If you want to
+     * enable it, contact Retail Search support.
      *
      * This feature is only available when
      * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2alpha.CompleteQueryRequest.visitor_id]
@@ -5629,9 +5650,10 @@ public Builder addRecentSearchResults(
      * 
* * - * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated public Builder addAllRecentSearchResults( java.lang.Iterable< ? extends com.google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult> @@ -5649,9 +5671,9 @@ public Builder addAllRecentSearchResults( * * *
-     * Matched recent searches of this user. The maximum number of recent searches
-     * is 10. This field is a restricted feature. Contact Retail Search support
-     * team if you are interested in enabling it.
+     * Deprecated. Matched recent searches of this user. The maximum number of
+     * recent searches is 10. This field is a restricted feature. If you want to
+     * enable it, contact Retail Search support.
      *
      * This feature is only available when
      * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2alpha.CompleteQueryRequest.visitor_id]
@@ -5673,9 +5695,10 @@ public Builder addAllRecentSearchResults(
      * 
* * - * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated public Builder clearRecentSearchResults() { if (recentSearchResultsBuilder_ == null) { recentSearchResults_ = java.util.Collections.emptyList(); @@ -5690,9 +5713,9 @@ public Builder clearRecentSearchResults() { * * *
-     * Matched recent searches of this user. The maximum number of recent searches
-     * is 10. This field is a restricted feature. Contact Retail Search support
-     * team if you are interested in enabling it.
+     * Deprecated. Matched recent searches of this user. The maximum number of
+     * recent searches is 10. This field is a restricted feature. If you want to
+     * enable it, contact Retail Search support.
      *
      * This feature is only available when
      * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2alpha.CompleteQueryRequest.visitor_id]
@@ -5714,9 +5737,10 @@ public Builder clearRecentSearchResults() {
      * 
* * - * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated public Builder removeRecentSearchResults(int index) { if (recentSearchResultsBuilder_ == null) { ensureRecentSearchResultsIsMutable(); @@ -5731,9 +5755,9 @@ public Builder removeRecentSearchResults(int index) { * * *
-     * Matched recent searches of this user. The maximum number of recent searches
-     * is 10. This field is a restricted feature. Contact Retail Search support
-     * team if you are interested in enabling it.
+     * Deprecated. Matched recent searches of this user. The maximum number of
+     * recent searches is 10. This field is a restricted feature. If you want to
+     * enable it, contact Retail Search support.
      *
      * This feature is only available when
      * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2alpha.CompleteQueryRequest.visitor_id]
@@ -5755,9 +5779,10 @@ public Builder removeRecentSearchResults(int index) {
      * 
* * - * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated public com.google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult.Builder getRecentSearchResultsBuilder(int index) { return getRecentSearchResultsFieldBuilder().getBuilder(index); @@ -5766,9 +5791,9 @@ public Builder removeRecentSearchResults(int index) { * * *
-     * Matched recent searches of this user. The maximum number of recent searches
-     * is 10. This field is a restricted feature. Contact Retail Search support
-     * team if you are interested in enabling it.
+     * Deprecated. Matched recent searches of this user. The maximum number of
+     * recent searches is 10. This field is a restricted feature. If you want to
+     * enable it, contact Retail Search support.
      *
      * This feature is only available when
      * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2alpha.CompleteQueryRequest.visitor_id]
@@ -5790,9 +5815,10 @@ public Builder removeRecentSearchResults(int index) {
      * 
* * - * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated public com.google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResultOrBuilder getRecentSearchResultsOrBuilder(int index) { if (recentSearchResultsBuilder_ == null) { @@ -5805,9 +5831,9 @@ public Builder removeRecentSearchResults(int index) { * * *
-     * Matched recent searches of this user. The maximum number of recent searches
-     * is 10. This field is a restricted feature. Contact Retail Search support
-     * team if you are interested in enabling it.
+     * Deprecated. Matched recent searches of this user. The maximum number of
+     * recent searches is 10. This field is a restricted feature. If you want to
+     * enable it, contact Retail Search support.
      *
      * This feature is only available when
      * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2alpha.CompleteQueryRequest.visitor_id]
@@ -5829,9 +5855,10 @@ public Builder removeRecentSearchResults(int index) {
      * 
* * - * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated public java.util.List< ? extends com.google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResultOrBuilder> @@ -5846,9 +5873,9 @@ public Builder removeRecentSearchResults(int index) { * * *
-     * Matched recent searches of this user. The maximum number of recent searches
-     * is 10. This field is a restricted feature. Contact Retail Search support
-     * team if you are interested in enabling it.
+     * Deprecated. Matched recent searches of this user. The maximum number of
+     * recent searches is 10. This field is a restricted feature. If you want to
+     * enable it, contact Retail Search support.
      *
      * This feature is only available when
      * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2alpha.CompleteQueryRequest.visitor_id]
@@ -5870,9 +5897,10 @@ public Builder removeRecentSearchResults(int index) {
      * 
* * - * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated public com.google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult.Builder addRecentSearchResultsBuilder() { return getRecentSearchResultsFieldBuilder() @@ -5884,9 +5912,9 @@ public Builder removeRecentSearchResults(int index) { * * *
-     * Matched recent searches of this user. The maximum number of recent searches
-     * is 10. This field is a restricted feature. Contact Retail Search support
-     * team if you are interested in enabling it.
+     * Deprecated. Matched recent searches of this user. The maximum number of
+     * recent searches is 10. This field is a restricted feature. If you want to
+     * enable it, contact Retail Search support.
      *
      * This feature is only available when
      * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2alpha.CompleteQueryRequest.visitor_id]
@@ -5908,9 +5936,10 @@ public Builder removeRecentSearchResults(int index) {
      * 
* * - * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated public com.google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult.Builder addRecentSearchResultsBuilder(int index) { return getRecentSearchResultsFieldBuilder() @@ -5923,9 +5952,9 @@ public Builder removeRecentSearchResults(int index) { * * *
-     * Matched recent searches of this user. The maximum number of recent searches
-     * is 10. This field is a restricted feature. Contact Retail Search support
-     * team if you are interested in enabling it.
+     * Deprecated. Matched recent searches of this user. The maximum number of
+     * recent searches is 10. This field is a restricted feature. If you want to
+     * enable it, contact Retail Search support.
      *
      * This feature is only available when
      * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2alpha.CompleteQueryRequest.visitor_id]
@@ -5947,9 +5976,10 @@ public Builder removeRecentSearchResults(int index) {
      * 
* * - * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated public java.util.List< com.google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult.Builder> getRecentSearchResultsBuilderList() { diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CompleteQueryResponseOrBuilder.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CompleteQueryResponseOrBuilder.java index 2d654cd2afdd..36c880a23744 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CompleteQueryResponseOrBuilder.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CompleteQueryResponseOrBuilder.java @@ -130,9 +130,9 @@ com.google.cloud.retail.v2alpha.CompleteQueryResponse.CompletionResult getComple * * *
-   * Matched recent searches of this user. The maximum number of recent searches
-   * is 10. This field is a restricted feature. Contact Retail Search support
-   * team if you are interested in enabling it.
+   * Deprecated. Matched recent searches of this user. The maximum number of
+   * recent searches is 10. This field is a restricted feature. If you want to
+   * enable it, contact Retail Search support.
    *
    * This feature is only available when
    * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2alpha.CompleteQueryRequest.visitor_id]
@@ -154,18 +154,19 @@ com.google.cloud.retail.v2alpha.CompleteQueryResponse.CompletionResult getComple
    * 
* * - * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated java.util.List getRecentSearchResultsList(); /** * * *
-   * Matched recent searches of this user. The maximum number of recent searches
-   * is 10. This field is a restricted feature. Contact Retail Search support
-   * team if you are interested in enabling it.
+   * Deprecated. Matched recent searches of this user. The maximum number of
+   * recent searches is 10. This field is a restricted feature. If you want to
+   * enable it, contact Retail Search support.
    *
    * This feature is only available when
    * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2alpha.CompleteQueryRequest.visitor_id]
@@ -187,18 +188,19 @@ com.google.cloud.retail.v2alpha.CompleteQueryResponse.CompletionResult getComple
    * 
* * - * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated com.google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult getRecentSearchResults( int index); /** * * *
-   * Matched recent searches of this user. The maximum number of recent searches
-   * is 10. This field is a restricted feature. Contact Retail Search support
-   * team if you are interested in enabling it.
+   * Deprecated. Matched recent searches of this user. The maximum number of
+   * recent searches is 10. This field is a restricted feature. If you want to
+   * enable it, contact Retail Search support.
    *
    * This feature is only available when
    * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2alpha.CompleteQueryRequest.visitor_id]
@@ -220,17 +222,18 @@ com.google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult getRece
    * 
* * - * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated int getRecentSearchResultsCount(); /** * * *
-   * Matched recent searches of this user. The maximum number of recent searches
-   * is 10. This field is a restricted feature. Contact Retail Search support
-   * team if you are interested in enabling it.
+   * Deprecated. Matched recent searches of this user. The maximum number of
+   * recent searches is 10. This field is a restricted feature. If you want to
+   * enable it, contact Retail Search support.
    *
    * This feature is only available when
    * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2alpha.CompleteQueryRequest.visitor_id]
@@ -252,9 +255,10 @@ com.google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult getRece
    * 
* * - * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated java.util.List< ? extends com.google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResultOrBuilder> @@ -263,9 +267,9 @@ com.google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult getRece * * *
-   * Matched recent searches of this user. The maximum number of recent searches
-   * is 10. This field is a restricted feature. Contact Retail Search support
-   * team if you are interested in enabling it.
+   * Deprecated. Matched recent searches of this user. The maximum number of
+   * recent searches is 10. This field is a restricted feature. If you want to
+   * enable it, contact Retail Search support.
    *
    * This feature is only available when
    * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2alpha.CompleteQueryRequest.visitor_id]
@@ -287,9 +291,10 @@ com.google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult getRece
    * 
* * - * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated com.google.cloud.retail.v2alpha.CompleteQueryResponse.RecentSearchResultOrBuilder getRecentSearchResultsOrBuilder(int index); diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CompletionConfig.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CompletionConfig.java index 29173e38c9c4..f7896dab0880 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CompletionConfig.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CompletionConfig.java @@ -330,8 +330,8 @@ public com.google.cloud.retail.v2alpha.CompletionDataInputConfig getSuggestionsI * Output only. Name of the LRO corresponding to the latest suggestion terms * list import. * - * Can use [GetOperation][google.longrunning.Operations.GetOperation] API to - * retrieve the latest state of the Long Running Operation. + * Can use [GetOperation][google.longrunning.Operations.GetOperation] API + * method to retrieve the latest state of the Long Running Operation. * * * @@ -359,8 +359,8 @@ public java.lang.String getLastSuggestionsImportOperation() { * Output only. Name of the LRO corresponding to the latest suggestion terms * list import. * - * Can use [GetOperation][google.longrunning.Operations.GetOperation] API to - * retrieve the latest state of the Long Running Operation. + * Can use [GetOperation][google.longrunning.Operations.GetOperation] API + * method to retrieve the latest state of the Long Running Operation. * * * @@ -1945,8 +1945,8 @@ public Builder clearSuggestionsInputConfig() { * Output only. Name of the LRO corresponding to the latest suggestion terms * list import. * - * Can use [GetOperation][google.longrunning.Operations.GetOperation] API to - * retrieve the latest state of the Long Running Operation. + * Can use [GetOperation][google.longrunning.Operations.GetOperation] API + * method to retrieve the latest state of the Long Running Operation. * * * @@ -1973,8 +1973,8 @@ public java.lang.String getLastSuggestionsImportOperation() { * Output only. Name of the LRO corresponding to the latest suggestion terms * list import. * - * Can use [GetOperation][google.longrunning.Operations.GetOperation] API to - * retrieve the latest state of the Long Running Operation. + * Can use [GetOperation][google.longrunning.Operations.GetOperation] API + * method to retrieve the latest state of the Long Running Operation. * * * @@ -2001,8 +2001,8 @@ public com.google.protobuf.ByteString getLastSuggestionsImportOperationBytes() { * Output only. Name of the LRO corresponding to the latest suggestion terms * list import. * - * Can use [GetOperation][google.longrunning.Operations.GetOperation] API to - * retrieve the latest state of the Long Running Operation. + * Can use [GetOperation][google.longrunning.Operations.GetOperation] API + * method to retrieve the latest state of the Long Running Operation. * * * @@ -2028,8 +2028,8 @@ public Builder setLastSuggestionsImportOperation(java.lang.String value) { * Output only. Name of the LRO corresponding to the latest suggestion terms * list import. * - * Can use [GetOperation][google.longrunning.Operations.GetOperation] API to - * retrieve the latest state of the Long Running Operation. + * Can use [GetOperation][google.longrunning.Operations.GetOperation] API + * method to retrieve the latest state of the Long Running Operation. * * * @@ -2051,8 +2051,8 @@ public Builder clearLastSuggestionsImportOperation() { * Output only. Name of the LRO corresponding to the latest suggestion terms * list import. * - * Can use [GetOperation][google.longrunning.Operations.GetOperation] API to - * retrieve the latest state of the Long Running Operation. + * Can use [GetOperation][google.longrunning.Operations.GetOperation] API + * method to retrieve the latest state of the Long Running Operation. * * * diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CompletionConfigOrBuilder.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CompletionConfigOrBuilder.java index 1e34911c5b91..d70ad122526c 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CompletionConfigOrBuilder.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CompletionConfigOrBuilder.java @@ -199,8 +199,8 @@ public interface CompletionConfigOrBuilder * Output only. Name of the LRO corresponding to the latest suggestion terms * list import. * - * Can use [GetOperation][google.longrunning.Operations.GetOperation] API to - * retrieve the latest state of the Long Running Operation. + * Can use [GetOperation][google.longrunning.Operations.GetOperation] API + * method to retrieve the latest state of the Long Running Operation. * * * @@ -217,8 +217,8 @@ public interface CompletionConfigOrBuilder * Output only. Name of the LRO corresponding to the latest suggestion terms * list import. * - * Can use [GetOperation][google.longrunning.Operations.GetOperation] API to - * retrieve the latest state of the Long Running Operation. + * Can use [GetOperation][google.longrunning.Operations.GetOperation] API + * method to retrieve the latest state of the Long Running Operation. * * * diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CompletionServiceProto.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CompletionServiceProto.java index 43d4b8545530..6f441eab9a92 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CompletionServiceProto.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CompletionServiceProto.java @@ -80,51 +80,51 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\nvisitor_id\030\007 \001(\t\022\026\n\016language_codes\030\003 \003(" + "\t\022\023\n\013device_type\030\004 \001(\t\022\017\n\007dataset\030\006 \001(\t\022" + "\027\n\017max_suggestions\030\005 \001(\005\022$\n\034enable_attri" - + "bute_suggestions\030\t \001(\010\022\016\n\006entity\030\n \001(\t\"\203" + + "bute_suggestions\030\t \001(\010\022\016\n\006entity\030\n \001(\t\"\213" + "\007\n\025CompleteQueryResponse\022_\n\022completion_r" + "esults\030\001 \003(\0132C.google.cloud.retail.v2alp" + "ha.CompleteQueryResponse.CompletionResul" - + "t\022\031\n\021attribution_token\030\002 \001(\t\022d\n\025recent_s" + + "t\022\031\n\021attribution_token\030\002 \001(\t\022h\n\025recent_s" + "earch_results\030\003 \003(\0132E.google.cloud.retai" + "l.v2alpha.CompleteQueryResponse.RecentSe" - + "archResult\022c\n\021attribute_results\030\004 \003(\0132H." - + "google.cloud.retail.v2alpha.CompleteQuer" - + "yResponse.AttributeResultsEntry\032\320\002\n\020Comp" - + "letionResult\022\022\n\nsuggestion\030\001 \001(\t\022g\n\nattr" - + "ibutes\030\002 \003(\0132S.google.cloud.retail.v2alp" - + "ha.CompleteQueryResponse.CompletionResul" - + "t.AttributesEntry\022A\n\006facets\030\003 \003(\01321.goog" - + "le.cloud.retail.v2alpha.SearchResponse.F" - + "acet\022\033\n\023total_product_count\030\004 \001(\005\032_\n\017Att" - + "ributesEntry\022\013\n\003key\030\001 \001(\t\022;\n\005value\030\002 \001(\013" - + "2,.google.cloud.retail.v2alpha.CustomAtt" - + "ribute:\0028\001\032+\n\022RecentSearchResult\022\025\n\rrece" - + "nt_search\030\001 \001(\t\032&\n\017AttributeResult\022\023\n\013su" - + "ggestions\030\001 \003(\t\032{\n\025AttributeResultsEntry" - + "\022\013\n\003key\030\001 \001(\t\022Q\n\005value\030\002 \001(\0132B.google.cl" - + "oud.retail.v2alpha.CompleteQueryResponse" - + ".AttributeResult:\0028\0012\325\004\n\021CompletionServi" - + "ce\022\302\001\n\rCompleteQuery\0221.google.cloud.reta" - + "il.v2alpha.CompleteQueryRequest\0322.google" - + ".cloud.retail.v2alpha.CompleteQueryRespo" - + "nse\"J\202\323\344\223\002D\022B/v2alpha/{catalog=projects/" - + "*/locations/*/catalogs/*}:completeQuery\022" - + "\257\002\n\024ImportCompletionData\0228.google.cloud." - + "retail.v2alpha.ImportCompletionDataReque" - + "st\032\035.google.longrunning.Operation\"\275\001\312Af\n" - + "8google.cloud.retail.v2alpha.ImportCompl" - + "etionDataResponse\022*google.cloud.retail.v" - + "2alpha.ImportMetadata\202\323\344\223\002N\"I/v2alpha/{p" - + "arent=projects/*/locations/*/catalogs/*}" - + "/completionData:import:\001*\032I\312A\025retail.goo" - + "gleapis.com\322A.https://www.googleapis.com" - + "/auth/cloud-platformB\332\001\n\037com.google.clou" - + "d.retail.v2alphaB\026CompletionServiceProto" - + "P\001Z7cloud.google.com/go/retail/apiv2alph" - + "a/retailpb;retailpb\242\002\006RETAIL\252\002\033Google.Cl" - + "oud.Retail.V2Alpha\312\002\033Google\\Cloud\\Retail" - + "\\V2alpha\352\002\036Google::Cloud::Retail::V2alph" - + "ab\006proto3" + + "archResultB\002\030\001\022c\n\021attribute_results\030\004 \003(" + + "\0132H.google.cloud.retail.v2alpha.Complete" + + "QueryResponse.AttributeResultsEntry\032\320\002\n\020" + + "CompletionResult\022\022\n\nsuggestion\030\001 \001(\t\022g\n\n" + + "attributes\030\002 \003(\0132S.google.cloud.retail.v" + + "2alpha.CompleteQueryResponse.CompletionR" + + "esult.AttributesEntry\022A\n\006facets\030\003 \003(\01321." + + "google.cloud.retail.v2alpha.SearchRespon" + + "se.Facet\022\033\n\023total_product_count\030\004 \001(\005\032_\n" + + "\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022;\n\005value\030\002" + + " \001(\0132,.google.cloud.retail.v2alpha.Custo" + + "mAttribute:\0028\001\032/\n\022RecentSearchResult\022\025\n\r" + + "recent_search\030\001 \001(\t:\002\030\001\032&\n\017AttributeResu" + + "lt\022\023\n\013suggestions\030\001 \003(\t\032{\n\025AttributeResu" + + "ltsEntry\022\013\n\003key\030\001 \001(\t\022Q\n\005value\030\002 \001(\0132B.g" + + "oogle.cloud.retail.v2alpha.CompleteQuery" + + "Response.AttributeResult:\0028\0012\325\004\n\021Complet" + + "ionService\022\302\001\n\rCompleteQuery\0221.google.cl" + + "oud.retail.v2alpha.CompleteQueryRequest\032" + + "2.google.cloud.retail.v2alpha.CompleteQu" + + "eryResponse\"J\202\323\344\223\002D\022B/v2alpha/{catalog=p" + + "rojects/*/locations/*/catalogs/*}:comple" + + "teQuery\022\257\002\n\024ImportCompletionData\0228.googl" + + "e.cloud.retail.v2alpha.ImportCompletionD" + + "ataRequest\032\035.google.longrunning.Operatio" + + "n\"\275\001\312Af\n8google.cloud.retail.v2alpha.Imp" + + "ortCompletionDataResponse\022*google.cloud." + + "retail.v2alpha.ImportMetadata\202\323\344\223\002N\"I/v2" + + "alpha/{parent=projects/*/locations/*/cat" + + "alogs/*}/completionData:import:\001*\032I\312A\025re" + + "tail.googleapis.com\322A.https://www.google" + + "apis.com/auth/cloud-platformB\332\001\n\037com.goo" + + "gle.cloud.retail.v2alphaB\026CompletionServ" + + "iceProtoP\001Z7cloud.google.com/go/retail/a" + + "piv2alpha/retailpb;retailpb\242\002\006RETAIL\252\002\033G" + + "oogle.Cloud.Retail.V2Alpha\312\002\033Google\\Clou" + + "d\\Retail\\V2alpha\352\002\036Google::Cloud::Retail" + + "::V2alphab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/Condition.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/Condition.java index cc6477c799eb..00aff0b853c6 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/Condition.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/Condition.java @@ -46,6 +46,7 @@ private Condition(com.google.protobuf.GeneratedMessageV3.Builder builder) { private Condition() { queryTerms_ = java.util.Collections.emptyList(); activeTimeRange_ = java.util.Collections.emptyList(); + pageCategories_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @@ -2068,6 +2069,82 @@ public com.google.cloud.retail.v2alpha.Condition.TimeRangeOrBuilder getActiveTim return activeTimeRange_.get(index); } + public static final int PAGE_CATEGORIES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList pageCategories_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * Used to support browse uses cases.
+   * A list (up to 10 entries) of categories or departments.
+   * The format should be the same as
+   * [UserEvent.page_categories][google.cloud.retail.v2alpha.UserEvent.page_categories];
+   * 
+ * + * repeated string page_categories = 4; + * + * @return A list containing the pageCategories. + */ + public com.google.protobuf.ProtocolStringList getPageCategoriesList() { + return pageCategories_; + } + /** + * + * + *
+   * Used to support browse uses cases.
+   * A list (up to 10 entries) of categories or departments.
+   * The format should be the same as
+   * [UserEvent.page_categories][google.cloud.retail.v2alpha.UserEvent.page_categories];
+   * 
+ * + * repeated string page_categories = 4; + * + * @return The count of pageCategories. + */ + public int getPageCategoriesCount() { + return pageCategories_.size(); + } + /** + * + * + *
+   * Used to support browse uses cases.
+   * A list (up to 10 entries) of categories or departments.
+   * The format should be the same as
+   * [UserEvent.page_categories][google.cloud.retail.v2alpha.UserEvent.page_categories];
+   * 
+ * + * repeated string page_categories = 4; + * + * @param index The index of the element to return. + * @return The pageCategories at the given index. + */ + public java.lang.String getPageCategories(int index) { + return pageCategories_.get(index); + } + /** + * + * + *
+   * Used to support browse uses cases.
+   * A list (up to 10 entries) of categories or departments.
+   * The format should be the same as
+   * [UserEvent.page_categories][google.cloud.retail.v2alpha.UserEvent.page_categories];
+   * 
+ * + * repeated string page_categories = 4; + * + * @param index The index of the value to return. + * @return The bytes of the pageCategories at the given index. + */ + public com.google.protobuf.ByteString getPageCategoriesBytes(int index) { + return pageCategories_.getByteString(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2088,6 +2165,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < activeTimeRange_.size(); i++) { output.writeMessage(3, activeTimeRange_.get(i)); } + for (int i = 0; i < pageCategories_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageCategories_.getRaw(i)); + } getUnknownFields().writeTo(output); } @@ -2103,6 +2183,14 @@ public int getSerializedSize() { for (int i = 0; i < activeTimeRange_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, activeTimeRange_.get(i)); } + { + int dataSize = 0; + for (int i = 0; i < pageCategories_.size(); i++) { + dataSize += computeStringSizeNoTag(pageCategories_.getRaw(i)); + } + size += dataSize; + size += 1 * getPageCategoriesList().size(); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2121,6 +2209,7 @@ public boolean equals(final java.lang.Object obj) { if (!getQueryTermsList().equals(other.getQueryTermsList())) return false; if (!getActiveTimeRangeList().equals(other.getActiveTimeRangeList())) return false; + if (!getPageCategoriesList().equals(other.getPageCategoriesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2140,6 +2229,10 @@ public int hashCode() { hash = (37 * hash) + ACTIVE_TIME_RANGE_FIELD_NUMBER; hash = (53 * hash) + getActiveTimeRangeList().hashCode(); } + if (getPageCategoriesCount() > 0) { + hash = (37 * hash) + PAGE_CATEGORIES_FIELD_NUMBER; + hash = (53 * hash) + getPageCategoriesList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2298,6 +2391,7 @@ public Builder clear() { activeTimeRangeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); + pageCategories_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -2356,6 +2450,10 @@ private void buildPartialRepeatedFields(com.google.cloud.retail.v2alpha.Conditio private void buildPartial0(com.google.cloud.retail.v2alpha.Condition result) { int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + pageCategories_.makeImmutable(); + result.pageCategories_ = pageCategories_; + } } @java.lang.Override @@ -2457,6 +2555,16 @@ public Builder mergeFrom(com.google.cloud.retail.v2alpha.Condition other) { } } } + if (!other.pageCategories_.isEmpty()) { + if (pageCategories_.isEmpty()) { + pageCategories_ = other.pageCategories_; + bitField0_ |= 0x00000004; + } else { + ensurePageCategoriesIsMutable(); + pageCategories_.addAll(other.pageCategories_); + } + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2511,6 +2619,13 @@ public Builder mergeFrom( } break; } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePageCategoriesIsMutable(); + pageCategories_.add(s); + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3322,6 +3437,207 @@ public com.google.cloud.retail.v2alpha.Condition.TimeRange.Builder addActiveTime return activeTimeRangeBuilder_; } + private com.google.protobuf.LazyStringArrayList pageCategories_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensurePageCategoriesIsMutable() { + if (!pageCategories_.isModifiable()) { + pageCategories_ = new com.google.protobuf.LazyStringArrayList(pageCategories_); + } + bitField0_ |= 0x00000004; + } + /** + * + * + *
+     * Used to support browse uses cases.
+     * A list (up to 10 entries) of categories or departments.
+     * The format should be the same as
+     * [UserEvent.page_categories][google.cloud.retail.v2alpha.UserEvent.page_categories];
+     * 
+ * + * repeated string page_categories = 4; + * + * @return A list containing the pageCategories. + */ + public com.google.protobuf.ProtocolStringList getPageCategoriesList() { + pageCategories_.makeImmutable(); + return pageCategories_; + } + /** + * + * + *
+     * Used to support browse uses cases.
+     * A list (up to 10 entries) of categories or departments.
+     * The format should be the same as
+     * [UserEvent.page_categories][google.cloud.retail.v2alpha.UserEvent.page_categories];
+     * 
+ * + * repeated string page_categories = 4; + * + * @return The count of pageCategories. + */ + public int getPageCategoriesCount() { + return pageCategories_.size(); + } + /** + * + * + *
+     * Used to support browse uses cases.
+     * A list (up to 10 entries) of categories or departments.
+     * The format should be the same as
+     * [UserEvent.page_categories][google.cloud.retail.v2alpha.UserEvent.page_categories];
+     * 
+ * + * repeated string page_categories = 4; + * + * @param index The index of the element to return. + * @return The pageCategories at the given index. + */ + public java.lang.String getPageCategories(int index) { + return pageCategories_.get(index); + } + /** + * + * + *
+     * Used to support browse uses cases.
+     * A list (up to 10 entries) of categories or departments.
+     * The format should be the same as
+     * [UserEvent.page_categories][google.cloud.retail.v2alpha.UserEvent.page_categories];
+     * 
+ * + * repeated string page_categories = 4; + * + * @param index The index of the value to return. + * @return The bytes of the pageCategories at the given index. + */ + public com.google.protobuf.ByteString getPageCategoriesBytes(int index) { + return pageCategories_.getByteString(index); + } + /** + * + * + *
+     * Used to support browse uses cases.
+     * A list (up to 10 entries) of categories or departments.
+     * The format should be the same as
+     * [UserEvent.page_categories][google.cloud.retail.v2alpha.UserEvent.page_categories];
+     * 
+ * + * repeated string page_categories = 4; + * + * @param index The index to set the value at. + * @param value The pageCategories to set. + * @return This builder for chaining. + */ + public Builder setPageCategories(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePageCategoriesIsMutable(); + pageCategories_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Used to support browse uses cases.
+     * A list (up to 10 entries) of categories or departments.
+     * The format should be the same as
+     * [UserEvent.page_categories][google.cloud.retail.v2alpha.UserEvent.page_categories];
+     * 
+ * + * repeated string page_categories = 4; + * + * @param value The pageCategories to add. + * @return This builder for chaining. + */ + public Builder addPageCategories(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePageCategoriesIsMutable(); + pageCategories_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Used to support browse uses cases.
+     * A list (up to 10 entries) of categories or departments.
+     * The format should be the same as
+     * [UserEvent.page_categories][google.cloud.retail.v2alpha.UserEvent.page_categories];
+     * 
+ * + * repeated string page_categories = 4; + * + * @param values The pageCategories to add. + * @return This builder for chaining. + */ + public Builder addAllPageCategories(java.lang.Iterable values) { + ensurePageCategoriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pageCategories_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Used to support browse uses cases.
+     * A list (up to 10 entries) of categories or departments.
+     * The format should be the same as
+     * [UserEvent.page_categories][google.cloud.retail.v2alpha.UserEvent.page_categories];
+     * 
+ * + * repeated string page_categories = 4; + * + * @return This builder for chaining. + */ + public Builder clearPageCategories() { + pageCategories_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * Used to support browse uses cases.
+     * A list (up to 10 entries) of categories or departments.
+     * The format should be the same as
+     * [UserEvent.page_categories][google.cloud.retail.v2alpha.UserEvent.page_categories];
+     * 
+ * + * repeated string page_categories = 4; + * + * @param value The bytes of the pageCategories to add. + * @return This builder for chaining. + */ + public Builder addPageCategoriesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePageCategoriesIsMutable(); + pageCategories_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ConditionOrBuilder.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ConditionOrBuilder.java index d08e71b536c1..0bf08a9da22b 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ConditionOrBuilder.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ConditionOrBuilder.java @@ -148,4 +148,67 @@ public interface ConditionOrBuilder */ com.google.cloud.retail.v2alpha.Condition.TimeRangeOrBuilder getActiveTimeRangeOrBuilder( int index); + + /** + * + * + *
+   * Used to support browse uses cases.
+   * A list (up to 10 entries) of categories or departments.
+   * The format should be the same as
+   * [UserEvent.page_categories][google.cloud.retail.v2alpha.UserEvent.page_categories];
+   * 
+ * + * repeated string page_categories = 4; + * + * @return A list containing the pageCategories. + */ + java.util.List getPageCategoriesList(); + /** + * + * + *
+   * Used to support browse uses cases.
+   * A list (up to 10 entries) of categories or departments.
+   * The format should be the same as
+   * [UserEvent.page_categories][google.cloud.retail.v2alpha.UserEvent.page_categories];
+   * 
+ * + * repeated string page_categories = 4; + * + * @return The count of pageCategories. + */ + int getPageCategoriesCount(); + /** + * + * + *
+   * Used to support browse uses cases.
+   * A list (up to 10 entries) of categories or departments.
+   * The format should be the same as
+   * [UserEvent.page_categories][google.cloud.retail.v2alpha.UserEvent.page_categories];
+   * 
+ * + * repeated string page_categories = 4; + * + * @param index The index of the element to return. + * @return The pageCategories at the given index. + */ + java.lang.String getPageCategories(int index); + /** + * + * + *
+   * Used to support browse uses cases.
+   * A list (up to 10 entries) of categories or departments.
+   * The format should be the same as
+   * [UserEvent.page_categories][google.cloud.retail.v2alpha.UserEvent.page_categories];
+   * 
+ * + * repeated string page_categories = 4; + * + * @param index The index of the value to return. + * @return The bytes of the pageCategories at the given index. + */ + com.google.protobuf.ByteString getPageCategoriesBytes(int index); } diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CreateMerchantCenterAccountLinkRequest.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CreateMerchantCenterAccountLinkRequest.java index e57f1452410d..b4dbbba8c3c2 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CreateMerchantCenterAccountLinkRequest.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CreateMerchantCenterAccountLinkRequest.java @@ -78,7 +78,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * Required. The branch resource where this MerchantCenterAccountLink will be
    * created. Format:
-   * projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}}
+   * `projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}`
    * 
* * @@ -105,7 +105,7 @@ public java.lang.String getParent() { *
    * Required. The branch resource where this MerchantCenterAccountLink will be
    * created. Format:
-   * projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}}
+   * `projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}`
    * 
* * @@ -616,7 +616,7 @@ public Builder mergeFrom( *
      * Required. The branch resource where this MerchantCenterAccountLink will be
      * created. Format:
-     * projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}}
+     * `projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}`
      * 
* * @@ -642,7 +642,7 @@ public java.lang.String getParent() { *
      * Required. The branch resource where this MerchantCenterAccountLink will be
      * created. Format:
-     * projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}}
+     * `projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}`
      * 
* * @@ -668,7 +668,7 @@ public com.google.protobuf.ByteString getParentBytes() { *
      * Required. The branch resource where this MerchantCenterAccountLink will be
      * created. Format:
-     * projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}}
+     * `projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}`
      * 
* * @@ -693,7 +693,7 @@ public Builder setParent(java.lang.String value) { *
      * Required. The branch resource where this MerchantCenterAccountLink will be
      * created. Format:
-     * projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}}
+     * `projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}`
      * 
* * @@ -714,7 +714,7 @@ public Builder clearParent() { *
      * Required. The branch resource where this MerchantCenterAccountLink will be
      * created. Format:
-     * projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}}
+     * `projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}`
      * 
* * diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CreateMerchantCenterAccountLinkRequestOrBuilder.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CreateMerchantCenterAccountLinkRequestOrBuilder.java index 6b4837ccb029..41d49e22ed96 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CreateMerchantCenterAccountLinkRequestOrBuilder.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CreateMerchantCenterAccountLinkRequestOrBuilder.java @@ -30,7 +30,7 @@ public interface CreateMerchantCenterAccountLinkRequestOrBuilder *
    * Required. The branch resource where this MerchantCenterAccountLink will be
    * created. Format:
-   * projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}}
+   * `projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}`
    * 
* * @@ -46,7 +46,7 @@ public interface CreateMerchantCenterAccountLinkRequestOrBuilder *
    * Required. The branch resource where this MerchantCenterAccountLink will be
    * created. Format:
-   * projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}}
+   * `projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}`
    * 
* * diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CustomAttribute.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CustomAttribute.java index b0416a5b7563..bfa20d88c3f7 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CustomAttribute.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CustomAttribute.java @@ -253,7 +253,7 @@ public double getNumbers(int index) { * optional bool searchable = 3 [deprecated = true]; * * @deprecated google.cloud.retail.v2alpha.CustomAttribute.searchable is deprecated. See - * google/cloud/retail/v2alpha/common.proto;l=426 + * google/cloud/retail/v2alpha/common.proto;l=511 * @return Whether the searchable field is set. */ @java.lang.Override @@ -284,7 +284,7 @@ public boolean hasSearchable() { * optional bool searchable = 3 [deprecated = true]; * * @deprecated google.cloud.retail.v2alpha.CustomAttribute.searchable is deprecated. See - * google/cloud/retail/v2alpha/common.proto;l=426 + * google/cloud/retail/v2alpha/common.proto;l=511 * @return The searchable. */ @java.lang.Override @@ -323,7 +323,7 @@ public boolean getSearchable() { * optional bool indexable = 4 [deprecated = true]; * * @deprecated google.cloud.retail.v2alpha.CustomAttribute.indexable is deprecated. See - * google/cloud/retail/v2alpha/common.proto;l=447 + * google/cloud/retail/v2alpha/common.proto;l=532 * @return Whether the indexable field is set. */ @java.lang.Override @@ -359,7 +359,7 @@ public boolean hasIndexable() { * optional bool indexable = 4 [deprecated = true]; * * @deprecated google.cloud.retail.v2alpha.CustomAttribute.indexable is deprecated. See - * google/cloud/retail/v2alpha/common.proto;l=447 + * google/cloud/retail/v2alpha/common.proto;l=532 * @return The indexable. */ @java.lang.Override @@ -1283,7 +1283,7 @@ public Builder clearNumbers() { * optional bool searchable = 3 [deprecated = true]; * * @deprecated google.cloud.retail.v2alpha.CustomAttribute.searchable is deprecated. See - * google/cloud/retail/v2alpha/common.proto;l=426 + * google/cloud/retail/v2alpha/common.proto;l=511 * @return Whether the searchable field is set. */ @java.lang.Override @@ -1314,7 +1314,7 @@ public boolean hasSearchable() { * optional bool searchable = 3 [deprecated = true]; * * @deprecated google.cloud.retail.v2alpha.CustomAttribute.searchable is deprecated. See - * google/cloud/retail/v2alpha/common.proto;l=426 + * google/cloud/retail/v2alpha/common.proto;l=511 * @return The searchable. */ @java.lang.Override @@ -1345,7 +1345,7 @@ public boolean getSearchable() { * optional bool searchable = 3 [deprecated = true]; * * @deprecated google.cloud.retail.v2alpha.CustomAttribute.searchable is deprecated. See - * google/cloud/retail/v2alpha/common.proto;l=426 + * google/cloud/retail/v2alpha/common.proto;l=511 * @param value The searchable to set. * @return This builder for chaining. */ @@ -1380,7 +1380,7 @@ public Builder setSearchable(boolean value) { * optional bool searchable = 3 [deprecated = true]; * * @deprecated google.cloud.retail.v2alpha.CustomAttribute.searchable is deprecated. See - * google/cloud/retail/v2alpha/common.proto;l=426 + * google/cloud/retail/v2alpha/common.proto;l=511 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1420,7 +1420,7 @@ public Builder clearSearchable() { * optional bool indexable = 4 [deprecated = true]; * * @deprecated google.cloud.retail.v2alpha.CustomAttribute.indexable is deprecated. See - * google/cloud/retail/v2alpha/common.proto;l=447 + * google/cloud/retail/v2alpha/common.proto;l=532 * @return Whether the indexable field is set. */ @java.lang.Override @@ -1456,7 +1456,7 @@ public boolean hasIndexable() { * optional bool indexable = 4 [deprecated = true]; * * @deprecated google.cloud.retail.v2alpha.CustomAttribute.indexable is deprecated. See - * google/cloud/retail/v2alpha/common.proto;l=447 + * google/cloud/retail/v2alpha/common.proto;l=532 * @return The indexable. */ @java.lang.Override @@ -1492,7 +1492,7 @@ public boolean getIndexable() { * optional bool indexable = 4 [deprecated = true]; * * @deprecated google.cloud.retail.v2alpha.CustomAttribute.indexable is deprecated. See - * google/cloud/retail/v2alpha/common.proto;l=447 + * google/cloud/retail/v2alpha/common.proto;l=532 * @param value The indexable to set. * @return This builder for chaining. */ @@ -1532,7 +1532,7 @@ public Builder setIndexable(boolean value) { * optional bool indexable = 4 [deprecated = true]; * * @deprecated google.cloud.retail.v2alpha.CustomAttribute.indexable is deprecated. See - * google/cloud/retail/v2alpha/common.proto;l=447 + * google/cloud/retail/v2alpha/common.proto;l=532 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CustomAttributeOrBuilder.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CustomAttributeOrBuilder.java index df068b98821d..05aa0dc4bc83 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CustomAttributeOrBuilder.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/CustomAttributeOrBuilder.java @@ -183,7 +183,7 @@ public interface CustomAttributeOrBuilder * optional bool searchable = 3 [deprecated = true]; * * @deprecated google.cloud.retail.v2alpha.CustomAttribute.searchable is deprecated. See - * google/cloud/retail/v2alpha/common.proto;l=426 + * google/cloud/retail/v2alpha/common.proto;l=511 * @return Whether the searchable field is set. */ @java.lang.Deprecated @@ -211,7 +211,7 @@ public interface CustomAttributeOrBuilder * optional bool searchable = 3 [deprecated = true]; * * @deprecated google.cloud.retail.v2alpha.CustomAttribute.searchable is deprecated. See - * google/cloud/retail/v2alpha/common.proto;l=426 + * google/cloud/retail/v2alpha/common.proto;l=511 * @return The searchable. */ @java.lang.Deprecated @@ -245,7 +245,7 @@ public interface CustomAttributeOrBuilder * optional bool indexable = 4 [deprecated = true]; * * @deprecated google.cloud.retail.v2alpha.CustomAttribute.indexable is deprecated. See - * google/cloud/retail/v2alpha/common.proto;l=447 + * google/cloud/retail/v2alpha/common.proto;l=532 * @return Whether the indexable field is set. */ @java.lang.Deprecated @@ -278,7 +278,7 @@ public interface CustomAttributeOrBuilder * optional bool indexable = 4 [deprecated = true]; * * @deprecated google.cloud.retail.v2alpha.CustomAttribute.indexable is deprecated. See - * google/cloud/retail/v2alpha/common.proto;l=447 + * google/cloud/retail/v2alpha/common.proto;l=532 * @return The indexable. */ @java.lang.Deprecated diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/DeleteMerchantCenterAccountLinkRequest.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/DeleteMerchantCenterAccountLinkRequest.java index bee3ce4d259c..3d7dc3b166e1 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/DeleteMerchantCenterAccountLinkRequest.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/DeleteMerchantCenterAccountLinkRequest.java @@ -76,7 +76,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. Full resource name. Format:
-   * projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/merchantCenterAccountLinks/{merchant_center_account_link_id}
+   * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/merchantCenterAccountLinks/{merchant_center_account_link_id}`
    * 
* * @@ -102,7 +102,7 @@ public java.lang.String getName() { * *
    * Required. Full resource name. Format:
-   * projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/merchantCenterAccountLinks/{merchant_center_account_link_id}
+   * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/merchantCenterAccountLinks/{merchant_center_account_link_id}`
    * 
* * @@ -484,7 +484,7 @@ public Builder mergeFrom( * *
      * Required. Full resource name. Format:
-     * projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/merchantCenterAccountLinks/{merchant_center_account_link_id}
+     * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/merchantCenterAccountLinks/{merchant_center_account_link_id}`
      * 
* * @@ -509,7 +509,7 @@ public java.lang.String getName() { * *
      * Required. Full resource name. Format:
-     * projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/merchantCenterAccountLinks/{merchant_center_account_link_id}
+     * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/merchantCenterAccountLinks/{merchant_center_account_link_id}`
      * 
* * @@ -534,7 +534,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Required. Full resource name. Format:
-     * projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/merchantCenterAccountLinks/{merchant_center_account_link_id}
+     * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/merchantCenterAccountLinks/{merchant_center_account_link_id}`
      * 
* * @@ -558,7 +558,7 @@ public Builder setName(java.lang.String value) { * *
      * Required. Full resource name. Format:
-     * projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/merchantCenterAccountLinks/{merchant_center_account_link_id}
+     * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/merchantCenterAccountLinks/{merchant_center_account_link_id}`
      * 
* * @@ -578,7 +578,7 @@ public Builder clearName() { * *
      * Required. Full resource name. Format:
-     * projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/merchantCenterAccountLinks/{merchant_center_account_link_id}
+     * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/merchantCenterAccountLinks/{merchant_center_account_link_id}`
      * 
* * diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/DeleteMerchantCenterAccountLinkRequestOrBuilder.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/DeleteMerchantCenterAccountLinkRequestOrBuilder.java index c8753b8ab255..baf6a5e7c1de 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/DeleteMerchantCenterAccountLinkRequestOrBuilder.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/DeleteMerchantCenterAccountLinkRequestOrBuilder.java @@ -29,7 +29,7 @@ public interface DeleteMerchantCenterAccountLinkRequestOrBuilder * *
    * Required. Full resource name. Format:
-   * projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/merchantCenterAccountLinks/{merchant_center_account_link_id}
+   * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/merchantCenterAccountLinks/{merchant_center_account_link_id}`
    * 
* * @@ -44,7 +44,7 @@ public interface DeleteMerchantCenterAccountLinkRequestOrBuilder * *
    * Required. Full resource name. Format:
-   * projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/merchantCenterAccountLinks/{merchant_center_account_link_id}
+   * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/merchantCenterAccountLinks/{merchant_center_account_link_id}`
    * 
* * diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/EnrollSolutionMetadata.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/EnrollSolutionMetadata.java new file mode 100644 index 000000000000..7289f4b6bfe3 --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/EnrollSolutionMetadata.java @@ -0,0 +1,435 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/retail/v2alpha/project_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.retail.v2alpha; + +/** + * + * + *
+ * Metadata related to the EnrollSolution method.
+ * This will be returned by the google.longrunning.Operation.metadata field.
+ * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.EnrollSolutionMetadata} + */ +public final class EnrollSolutionMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2alpha.EnrollSolutionMetadata) + EnrollSolutionMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use EnrollSolutionMetadata.newBuilder() to construct. + private EnrollSolutionMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EnrollSolutionMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EnrollSolutionMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_EnrollSolutionMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_EnrollSolutionMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.EnrollSolutionMetadata.class, + com.google.cloud.retail.v2alpha.EnrollSolutionMetadata.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.retail.v2alpha.EnrollSolutionMetadata)) { + return super.equals(obj); + } + com.google.cloud.retail.v2alpha.EnrollSolutionMetadata other = + (com.google.cloud.retail.v2alpha.EnrollSolutionMetadata) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2alpha.EnrollSolutionMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.EnrollSolutionMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.EnrollSolutionMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.EnrollSolutionMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.EnrollSolutionMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.EnrollSolutionMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.EnrollSolutionMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.EnrollSolutionMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.EnrollSolutionMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.EnrollSolutionMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.EnrollSolutionMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.EnrollSolutionMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.retail.v2alpha.EnrollSolutionMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Metadata related to the EnrollSolution method.
+   * This will be returned by the google.longrunning.Operation.metadata field.
+   * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.EnrollSolutionMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2alpha.EnrollSolutionMetadata) + com.google.cloud.retail.v2alpha.EnrollSolutionMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_EnrollSolutionMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_EnrollSolutionMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.EnrollSolutionMetadata.class, + com.google.cloud.retail.v2alpha.EnrollSolutionMetadata.Builder.class); + } + + // Construct using com.google.cloud.retail.v2alpha.EnrollSolutionMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_EnrollSolutionMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.EnrollSolutionMetadata getDefaultInstanceForType() { + return com.google.cloud.retail.v2alpha.EnrollSolutionMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.EnrollSolutionMetadata build() { + com.google.cloud.retail.v2alpha.EnrollSolutionMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.EnrollSolutionMetadata buildPartial() { + com.google.cloud.retail.v2alpha.EnrollSolutionMetadata result = + new com.google.cloud.retail.v2alpha.EnrollSolutionMetadata(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.retail.v2alpha.EnrollSolutionMetadata) { + return mergeFrom((com.google.cloud.retail.v2alpha.EnrollSolutionMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.retail.v2alpha.EnrollSolutionMetadata other) { + if (other == com.google.cloud.retail.v2alpha.EnrollSolutionMetadata.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2alpha.EnrollSolutionMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2alpha.EnrollSolutionMetadata) + private static final com.google.cloud.retail.v2alpha.EnrollSolutionMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.retail.v2alpha.EnrollSolutionMetadata(); + } + + public static com.google.cloud.retail.v2alpha.EnrollSolutionMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EnrollSolutionMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.EnrollSolutionMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/EnrollSolutionMetadataOrBuilder.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/EnrollSolutionMetadataOrBuilder.java new file mode 100644 index 000000000000..65a96ec391db --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/EnrollSolutionMetadataOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/retail/v2alpha/project_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.retail.v2alpha; + +public interface EnrollSolutionMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2alpha.EnrollSolutionMetadata) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/EnrollSolutionRequest.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/EnrollSolutionRequest.java new file mode 100644 index 000000000000..f10e91b8d58f --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/EnrollSolutionRequest.java @@ -0,0 +1,811 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/retail/v2alpha/project_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.retail.v2alpha; + +/** + * + * + *
+ * Request for EnrollSolution method.
+ * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.EnrollSolutionRequest} + */ +public final class EnrollSolutionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2alpha.EnrollSolutionRequest) + EnrollSolutionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use EnrollSolutionRequest.newBuilder() to construct. + private EnrollSolutionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EnrollSolutionRequest() { + project_ = ""; + solution_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EnrollSolutionRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_EnrollSolutionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_EnrollSolutionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.EnrollSolutionRequest.class, + com.google.cloud.retail.v2alpha.EnrollSolutionRequest.Builder.class); + } + + public static final int PROJECT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + /** + * + * + *
+   * Required. Full resource name of parent. Format:
+   * `projects/{project_number_or_id}`
+   * 
+ * + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Full resource name of parent. Format:
+   * `projects/{project_number_or_id}`
+   * 
+ * + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOLUTION_FIELD_NUMBER = 2; + private int solution_ = 0; + /** + * + * + *
+   * Required. Solution to enroll.
+   * 
+ * + * + * .google.cloud.retail.v2alpha.SolutionType solution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for solution. + */ + @java.lang.Override + public int getSolutionValue() { + return solution_; + } + /** + * + * + *
+   * Required. Solution to enroll.
+   * 
+ * + * + * .google.cloud.retail.v2alpha.SolutionType solution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The solution. + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.SolutionType getSolution() { + com.google.cloud.retail.v2alpha.SolutionType result = + com.google.cloud.retail.v2alpha.SolutionType.forNumber(solution_); + return result == null ? com.google.cloud.retail.v2alpha.SolutionType.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); + } + if (solution_ + != com.google.cloud.retail.v2alpha.SolutionType.SOLUTION_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, solution_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); + } + if (solution_ + != com.google.cloud.retail.v2alpha.SolutionType.SOLUTION_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, solution_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.retail.v2alpha.EnrollSolutionRequest)) { + return super.equals(obj); + } + com.google.cloud.retail.v2alpha.EnrollSolutionRequest other = + (com.google.cloud.retail.v2alpha.EnrollSolutionRequest) obj; + + if (!getProject().equals(other.getProject())) return false; + if (solution_ != other.solution_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + hash = (37 * hash) + SOLUTION_FIELD_NUMBER; + hash = (53 * hash) + solution_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2alpha.EnrollSolutionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.EnrollSolutionRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.EnrollSolutionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.EnrollSolutionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.EnrollSolutionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.EnrollSolutionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.EnrollSolutionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.EnrollSolutionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.EnrollSolutionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.EnrollSolutionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.EnrollSolutionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.EnrollSolutionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.retail.v2alpha.EnrollSolutionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request for EnrollSolution method.
+   * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.EnrollSolutionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2alpha.EnrollSolutionRequest) + com.google.cloud.retail.v2alpha.EnrollSolutionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_EnrollSolutionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_EnrollSolutionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.EnrollSolutionRequest.class, + com.google.cloud.retail.v2alpha.EnrollSolutionRequest.Builder.class); + } + + // Construct using com.google.cloud.retail.v2alpha.EnrollSolutionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + project_ = ""; + solution_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_EnrollSolutionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.EnrollSolutionRequest getDefaultInstanceForType() { + return com.google.cloud.retail.v2alpha.EnrollSolutionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.EnrollSolutionRequest build() { + com.google.cloud.retail.v2alpha.EnrollSolutionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.EnrollSolutionRequest buildPartial() { + com.google.cloud.retail.v2alpha.EnrollSolutionRequest result = + new com.google.cloud.retail.v2alpha.EnrollSolutionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.retail.v2alpha.EnrollSolutionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.solution_ = solution_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.retail.v2alpha.EnrollSolutionRequest) { + return mergeFrom((com.google.cloud.retail.v2alpha.EnrollSolutionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.retail.v2alpha.EnrollSolutionRequest other) { + if (other == com.google.cloud.retail.v2alpha.EnrollSolutionRequest.getDefaultInstance()) + return this; + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.solution_ != 0) { + setSolutionValue(other.getSolutionValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + solution_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object project_ = ""; + /** + * + * + *
+     * Required. Full resource name of parent. Format:
+     * `projects/{project_number_or_id}`
+     * 
+ * + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Full resource name of parent. Format:
+     * `projects/{project_number_or_id}`
+     * 
+ * + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Full resource name of parent. Format:
+     * `projects/{project_number_or_id}`
+     * 
+ * + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Full resource name of parent. Format:
+     * `projects/{project_number_or_id}`
+     * 
+ * + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Full resource name of parent. Format:
+     * `projects/{project_number_or_id}`
+     * 
+ * + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int solution_ = 0; + /** + * + * + *
+     * Required. Solution to enroll.
+     * 
+ * + * + * .google.cloud.retail.v2alpha.SolutionType solution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for solution. + */ + @java.lang.Override + public int getSolutionValue() { + return solution_; + } + /** + * + * + *
+     * Required. Solution to enroll.
+     * 
+ * + * + * .google.cloud.retail.v2alpha.SolutionType solution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for solution to set. + * @return This builder for chaining. + */ + public Builder setSolutionValue(int value) { + solution_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Solution to enroll.
+     * 
+ * + * + * .google.cloud.retail.v2alpha.SolutionType solution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The solution. + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.SolutionType getSolution() { + com.google.cloud.retail.v2alpha.SolutionType result = + com.google.cloud.retail.v2alpha.SolutionType.forNumber(solution_); + return result == null ? com.google.cloud.retail.v2alpha.SolutionType.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Required. Solution to enroll.
+     * 
+ * + * + * .google.cloud.retail.v2alpha.SolutionType solution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The solution to set. + * @return This builder for chaining. + */ + public Builder setSolution(com.google.cloud.retail.v2alpha.SolutionType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + solution_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Solution to enroll.
+     * 
+ * + * + * .google.cloud.retail.v2alpha.SolutionType solution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearSolution() { + bitField0_ = (bitField0_ & ~0x00000002); + solution_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2alpha.EnrollSolutionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2alpha.EnrollSolutionRequest) + private static final com.google.cloud.retail.v2alpha.EnrollSolutionRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.retail.v2alpha.EnrollSolutionRequest(); + } + + public static com.google.cloud.retail.v2alpha.EnrollSolutionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EnrollSolutionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.EnrollSolutionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/EnrollSolutionRequestOrBuilder.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/EnrollSolutionRequestOrBuilder.java new file mode 100644 index 000000000000..0198612c4e01 --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/EnrollSolutionRequestOrBuilder.java @@ -0,0 +1,86 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/retail/v2alpha/project_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.retail.v2alpha; + +public interface EnrollSolutionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2alpha.EnrollSolutionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Full resource name of parent. Format:
+   * `projects/{project_number_or_id}`
+   * 
+ * + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The project. + */ + java.lang.String getProject(); + /** + * + * + *
+   * Required. Full resource name of parent. Format:
+   * `projects/{project_number_or_id}`
+   * 
+ * + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * Required. Solution to enroll.
+   * 
+ * + * + * .google.cloud.retail.v2alpha.SolutionType solution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for solution. + */ + int getSolutionValue(); + /** + * + * + *
+   * Required. Solution to enroll.
+   * 
+ * + * + * .google.cloud.retail.v2alpha.SolutionType solution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The solution. + */ + com.google.cloud.retail.v2alpha.SolutionType getSolution(); +} diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/EnrollSolutionResponse.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/EnrollSolutionResponse.java new file mode 100644 index 000000000000..bc89b8583e2c --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/EnrollSolutionResponse.java @@ -0,0 +1,594 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/retail/v2alpha/project_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.retail.v2alpha; + +/** + * + * + *
+ * Response for EnrollSolution method.
+ * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.EnrollSolutionResponse} + */ +public final class EnrollSolutionResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2alpha.EnrollSolutionResponse) + EnrollSolutionResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use EnrollSolutionResponse.newBuilder() to construct. + private EnrollSolutionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EnrollSolutionResponse() { + enrolledSolution_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EnrollSolutionResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_EnrollSolutionResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_EnrollSolutionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.EnrollSolutionResponse.class, + com.google.cloud.retail.v2alpha.EnrollSolutionResponse.Builder.class); + } + + public static final int ENROLLED_SOLUTION_FIELD_NUMBER = 1; + private int enrolledSolution_ = 0; + /** + * + * + *
+   * Retail API solution that the project has enrolled.
+   * 
+ * + * .google.cloud.retail.v2alpha.SolutionType enrolled_solution = 1; + * + * @return The enum numeric value on the wire for enrolledSolution. + */ + @java.lang.Override + public int getEnrolledSolutionValue() { + return enrolledSolution_; + } + /** + * + * + *
+   * Retail API solution that the project has enrolled.
+   * 
+ * + * .google.cloud.retail.v2alpha.SolutionType enrolled_solution = 1; + * + * @return The enrolledSolution. + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.SolutionType getEnrolledSolution() { + com.google.cloud.retail.v2alpha.SolutionType result = + com.google.cloud.retail.v2alpha.SolutionType.forNumber(enrolledSolution_); + return result == null ? com.google.cloud.retail.v2alpha.SolutionType.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enrolledSolution_ + != com.google.cloud.retail.v2alpha.SolutionType.SOLUTION_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, enrolledSolution_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enrolledSolution_ + != com.google.cloud.retail.v2alpha.SolutionType.SOLUTION_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, enrolledSolution_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.retail.v2alpha.EnrollSolutionResponse)) { + return super.equals(obj); + } + com.google.cloud.retail.v2alpha.EnrollSolutionResponse other = + (com.google.cloud.retail.v2alpha.EnrollSolutionResponse) obj; + + if (enrolledSolution_ != other.enrolledSolution_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENROLLED_SOLUTION_FIELD_NUMBER; + hash = (53 * hash) + enrolledSolution_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2alpha.EnrollSolutionResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.EnrollSolutionResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.EnrollSolutionResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.EnrollSolutionResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.EnrollSolutionResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.EnrollSolutionResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.EnrollSolutionResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.EnrollSolutionResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.EnrollSolutionResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.EnrollSolutionResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.EnrollSolutionResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.EnrollSolutionResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.retail.v2alpha.EnrollSolutionResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response for EnrollSolution method.
+   * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.EnrollSolutionResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2alpha.EnrollSolutionResponse) + com.google.cloud.retail.v2alpha.EnrollSolutionResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_EnrollSolutionResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_EnrollSolutionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.EnrollSolutionResponse.class, + com.google.cloud.retail.v2alpha.EnrollSolutionResponse.Builder.class); + } + + // Construct using com.google.cloud.retail.v2alpha.EnrollSolutionResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enrolledSolution_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_EnrollSolutionResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.EnrollSolutionResponse getDefaultInstanceForType() { + return com.google.cloud.retail.v2alpha.EnrollSolutionResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.EnrollSolutionResponse build() { + com.google.cloud.retail.v2alpha.EnrollSolutionResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.EnrollSolutionResponse buildPartial() { + com.google.cloud.retail.v2alpha.EnrollSolutionResponse result = + new com.google.cloud.retail.v2alpha.EnrollSolutionResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.retail.v2alpha.EnrollSolutionResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enrolledSolution_ = enrolledSolution_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.retail.v2alpha.EnrollSolutionResponse) { + return mergeFrom((com.google.cloud.retail.v2alpha.EnrollSolutionResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.retail.v2alpha.EnrollSolutionResponse other) { + if (other == com.google.cloud.retail.v2alpha.EnrollSolutionResponse.getDefaultInstance()) + return this; + if (other.enrolledSolution_ != 0) { + setEnrolledSolutionValue(other.getEnrolledSolutionValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + enrolledSolution_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int enrolledSolution_ = 0; + /** + * + * + *
+     * Retail API solution that the project has enrolled.
+     * 
+ * + * .google.cloud.retail.v2alpha.SolutionType enrolled_solution = 1; + * + * @return The enum numeric value on the wire for enrolledSolution. + */ + @java.lang.Override + public int getEnrolledSolutionValue() { + return enrolledSolution_; + } + /** + * + * + *
+     * Retail API solution that the project has enrolled.
+     * 
+ * + * .google.cloud.retail.v2alpha.SolutionType enrolled_solution = 1; + * + * @param value The enum numeric value on the wire for enrolledSolution to set. + * @return This builder for chaining. + */ + public Builder setEnrolledSolutionValue(int value) { + enrolledSolution_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Retail API solution that the project has enrolled.
+     * 
+ * + * .google.cloud.retail.v2alpha.SolutionType enrolled_solution = 1; + * + * @return The enrolledSolution. + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.SolutionType getEnrolledSolution() { + com.google.cloud.retail.v2alpha.SolutionType result = + com.google.cloud.retail.v2alpha.SolutionType.forNumber(enrolledSolution_); + return result == null ? com.google.cloud.retail.v2alpha.SolutionType.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Retail API solution that the project has enrolled.
+     * 
+ * + * .google.cloud.retail.v2alpha.SolutionType enrolled_solution = 1; + * + * @param value The enrolledSolution to set. + * @return This builder for chaining. + */ + public Builder setEnrolledSolution(com.google.cloud.retail.v2alpha.SolutionType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + enrolledSolution_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Retail API solution that the project has enrolled.
+     * 
+ * + * .google.cloud.retail.v2alpha.SolutionType enrolled_solution = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnrolledSolution() { + bitField0_ = (bitField0_ & ~0x00000001); + enrolledSolution_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2alpha.EnrollSolutionResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2alpha.EnrollSolutionResponse) + private static final com.google.cloud.retail.v2alpha.EnrollSolutionResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.retail.v2alpha.EnrollSolutionResponse(); + } + + public static com.google.cloud.retail.v2alpha.EnrollSolutionResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EnrollSolutionResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.EnrollSolutionResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/EnrollSolutionResponseOrBuilder.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/EnrollSolutionResponseOrBuilder.java new file mode 100644 index 000000000000..2c74a0378e97 --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/EnrollSolutionResponseOrBuilder.java @@ -0,0 +1,51 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/retail/v2alpha/project_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.retail.v2alpha; + +public interface EnrollSolutionResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2alpha.EnrollSolutionResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Retail API solution that the project has enrolled.
+   * 
+ * + * .google.cloud.retail.v2alpha.SolutionType enrolled_solution = 1; + * + * @return The enum numeric value on the wire for enrolledSolution. + */ + int getEnrolledSolutionValue(); + /** + * + * + *
+   * Retail API solution that the project has enrolled.
+   * 
+ * + * .google.cloud.retail.v2alpha.SolutionType enrolled_solution = 1; + * + * @return The enrolledSolution. + */ + com.google.cloud.retail.v2alpha.SolutionType getEnrolledSolution(); +} diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ExperimentInfo.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ExperimentInfo.java index 2f3bcefdc636..60c9e5cbfb4d 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ExperimentInfo.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ExperimentInfo.java @@ -23,7 +23,8 @@ * * *
- * Metadata for active A/B testing [Experiments][].
+ * Metadata for active A/B testing
+ * [Experiment][google.cloud.retail.v2alpha.Experiment].
  * 
* * Protobuf type {@code google.cloud.retail.v2alpha.ExperimentInfo} @@ -104,8 +105,8 @@ public interface ServingConfigExperimentOrBuilder * *
      * The fully qualified resource name of the serving config
-     * [VariantArm.serving_config_id][] responsible for generating the search
-     * response. For example:
+     * [Experiment.VariantArm.serving_config_id][google.cloud.retail.v2alpha.Experiment.VariantArm.serving_config_id]
+     * responsible for generating the search response. For example:
      * `projects/*/locations/*/catalogs/*/servingConfigs/*`.
      * 
* @@ -119,8 +120,8 @@ public interface ServingConfigExperimentOrBuilder * *
      * The fully qualified resource name of the serving config
-     * [VariantArm.serving_config_id][] responsible for generating the search
-     * response. For example:
+     * [Experiment.VariantArm.serving_config_id][google.cloud.retail.v2alpha.Experiment.VariantArm.serving_config_id]
+     * responsible for generating the search response. For example:
      * `projects/*/locations/*/catalogs/*/servingConfigs/*`.
      * 
* @@ -241,8 +242,8 @@ public com.google.protobuf.ByteString getOriginalServingConfigBytes() { * *
      * The fully qualified resource name of the serving config
-     * [VariantArm.serving_config_id][] responsible for generating the search
-     * response. For example:
+     * [Experiment.VariantArm.serving_config_id][google.cloud.retail.v2alpha.Experiment.VariantArm.serving_config_id]
+     * responsible for generating the search response. For example:
      * `projects/*/locations/*/catalogs/*/servingConfigs/*`.
      * 
* @@ -267,8 +268,8 @@ public java.lang.String getExperimentServingConfig() { * *
      * The fully qualified resource name of the serving config
-     * [VariantArm.serving_config_id][] responsible for generating the search
-     * response. For example:
+     * [Experiment.VariantArm.serving_config_id][google.cloud.retail.v2alpha.Experiment.VariantArm.serving_config_id]
+     * responsible for generating the search response. For example:
      * `projects/*/locations/*/catalogs/*/servingConfigs/*`.
      * 
* @@ -800,8 +801,8 @@ public Builder setOriginalServingConfigBytes(com.google.protobuf.ByteString valu * *
        * The fully qualified resource name of the serving config
-       * [VariantArm.serving_config_id][] responsible for generating the search
-       * response. For example:
+       * [Experiment.VariantArm.serving_config_id][google.cloud.retail.v2alpha.Experiment.VariantArm.serving_config_id]
+       * responsible for generating the search response. For example:
        * `projects/*/locations/*/catalogs/*/servingConfigs/*`.
        * 
* @@ -826,8 +827,8 @@ public java.lang.String getExperimentServingConfig() { * *
        * The fully qualified resource name of the serving config
-       * [VariantArm.serving_config_id][] responsible for generating the search
-       * response. For example:
+       * [Experiment.VariantArm.serving_config_id][google.cloud.retail.v2alpha.Experiment.VariantArm.serving_config_id]
+       * responsible for generating the search response. For example:
        * `projects/*/locations/*/catalogs/*/servingConfigs/*`.
        * 
* @@ -852,8 +853,8 @@ public com.google.protobuf.ByteString getExperimentServingConfigBytes() { * *
        * The fully qualified resource name of the serving config
-       * [VariantArm.serving_config_id][] responsible for generating the search
-       * response. For example:
+       * [Experiment.VariantArm.serving_config_id][google.cloud.retail.v2alpha.Experiment.VariantArm.serving_config_id]
+       * responsible for generating the search response. For example:
        * `projects/*/locations/*/catalogs/*/servingConfigs/*`.
        * 
* @@ -877,8 +878,8 @@ public Builder setExperimentServingConfig(java.lang.String value) { * *
        * The fully qualified resource name of the serving config
-       * [VariantArm.serving_config_id][] responsible for generating the search
-       * response. For example:
+       * [Experiment.VariantArm.serving_config_id][google.cloud.retail.v2alpha.Experiment.VariantArm.serving_config_id]
+       * responsible for generating the search response. For example:
        * `projects/*/locations/*/catalogs/*/servingConfigs/*`.
        * 
* @@ -898,8 +899,8 @@ public Builder clearExperimentServingConfig() { * *
        * The fully qualified resource name of the serving config
-       * [VariantArm.serving_config_id][] responsible for generating the search
-       * response. For example:
+       * [Experiment.VariantArm.serving_config_id][google.cloud.retail.v2alpha.Experiment.VariantArm.serving_config_id]
+       * responsible for generating the search response. For example:
        * `projects/*/locations/*/catalogs/*/servingConfigs/*`.
        * 
* @@ -1347,7 +1348,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Metadata for active A/B testing [Experiments][].
+   * Metadata for active A/B testing
+   * [Experiment][google.cloud.retail.v2alpha.Experiment].
    * 
* * Protobuf type {@code google.cloud.retail.v2alpha.ExperimentInfo} diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/GetAlertConfigRequest.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/GetAlertConfigRequest.java new file mode 100644 index 000000000000..6bba6b28974f --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/GetAlertConfigRequest.java @@ -0,0 +1,651 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/retail/v2alpha/project_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.retail.v2alpha; + +/** + * + * + *
+ * Request for
+ * [ProjectService.GetAlertConfig][google.cloud.retail.v2alpha.ProjectService.GetAlertConfig]
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.GetAlertConfigRequest} + */ +public final class GetAlertConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2alpha.GetAlertConfigRequest) + GetAlertConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetAlertConfigRequest.newBuilder() to construct. + private GetAlertConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetAlertConfigRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetAlertConfigRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_GetAlertConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_GetAlertConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.GetAlertConfigRequest.class, + com.google.cloud.retail.v2alpha.GetAlertConfigRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Full AlertConfig resource name. Format:
+   * projects/{project_number}/alertConfig
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Full AlertConfig resource name. Format:
+   * projects/{project_number}/alertConfig
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.retail.v2alpha.GetAlertConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.retail.v2alpha.GetAlertConfigRequest other = + (com.google.cloud.retail.v2alpha.GetAlertConfigRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2alpha.GetAlertConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.GetAlertConfigRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.GetAlertConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.GetAlertConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.GetAlertConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.GetAlertConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.GetAlertConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.GetAlertConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.GetAlertConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.GetAlertConfigRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.GetAlertConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.GetAlertConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.retail.v2alpha.GetAlertConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request for
+   * [ProjectService.GetAlertConfig][google.cloud.retail.v2alpha.ProjectService.GetAlertConfig]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.GetAlertConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2alpha.GetAlertConfigRequest) + com.google.cloud.retail.v2alpha.GetAlertConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_GetAlertConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_GetAlertConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.GetAlertConfigRequest.class, + com.google.cloud.retail.v2alpha.GetAlertConfigRequest.Builder.class); + } + + // Construct using com.google.cloud.retail.v2alpha.GetAlertConfigRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_GetAlertConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.GetAlertConfigRequest getDefaultInstanceForType() { + return com.google.cloud.retail.v2alpha.GetAlertConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.GetAlertConfigRequest build() { + com.google.cloud.retail.v2alpha.GetAlertConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.GetAlertConfigRequest buildPartial() { + com.google.cloud.retail.v2alpha.GetAlertConfigRequest result = + new com.google.cloud.retail.v2alpha.GetAlertConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.retail.v2alpha.GetAlertConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.retail.v2alpha.GetAlertConfigRequest) { + return mergeFrom((com.google.cloud.retail.v2alpha.GetAlertConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.retail.v2alpha.GetAlertConfigRequest other) { + if (other == com.google.cloud.retail.v2alpha.GetAlertConfigRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. Full AlertConfig resource name. Format:
+     * projects/{project_number}/alertConfig
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Full AlertConfig resource name. Format:
+     * projects/{project_number}/alertConfig
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Full AlertConfig resource name. Format:
+     * projects/{project_number}/alertConfig
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Full AlertConfig resource name. Format:
+     * projects/{project_number}/alertConfig
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Full AlertConfig resource name. Format:
+     * projects/{project_number}/alertConfig
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2alpha.GetAlertConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2alpha.GetAlertConfigRequest) + private static final com.google.cloud.retail.v2alpha.GetAlertConfigRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.retail.v2alpha.GetAlertConfigRequest(); + } + + public static com.google.cloud.retail.v2alpha.GetAlertConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAlertConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.GetAlertConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/GetAlertConfigRequestOrBuilder.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/GetAlertConfigRequestOrBuilder.java new file mode 100644 index 000000000000..b711cc51937c --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/GetAlertConfigRequestOrBuilder.java @@ -0,0 +1,57 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/retail/v2alpha/project_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.retail.v2alpha; + +public interface GetAlertConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2alpha.GetAlertConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Full AlertConfig resource name. Format:
+   * projects/{project_number}/alertConfig
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Full AlertConfig resource name. Format:
+   * projects/{project_number}/alertConfig
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ActionParameter.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/GetBranchRequest.java similarity index 54% rename from java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ActionParameter.java rename to java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/GetBranchRequest.java index 968e650f9098..bc73e8acc40f 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ActionParameter.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/GetBranchRequest.java @@ -14,56 +14,58 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/dialogflow/cx/v3beta1/example.proto +// source: google/cloud/retail/v2alpha/branch_service.proto // Protobuf Java Version: 3.25.3 -package com.google.cloud.dialogflow.cx.v3beta1; +package com.google.cloud.retail.v2alpha; /** * * *
- * Parameter associated with action.
+ * Request for
+ * [BranchService.GetBranch][google.cloud.retail.v2alpha.BranchService.GetBranch]
+ * method.
  * 
* - * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.ActionParameter} + * Protobuf type {@code google.cloud.retail.v2alpha.GetBranchRequest} */ -public final class ActionParameter extends com.google.protobuf.GeneratedMessageV3 +public final class GetBranchRequest extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3beta1.ActionParameter) - ActionParameterOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2alpha.GetBranchRequest) + GetBranchRequestOrBuilder { private static final long serialVersionUID = 0L; - // Use ActionParameter.newBuilder() to construct. - private ActionParameter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use GetBranchRequest.newBuilder() to construct. + private GetBranchRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ActionParameter() { + private GetBranchRequest() { name_ = ""; + view_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ActionParameter(); + return new GetBranchRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.cx.v3beta1.ExampleProto - .internal_static_google_cloud_dialogflow_cx_v3beta1_ActionParameter_descriptor; + return com.google.cloud.retail.v2alpha.BranchServiceProto + .internal_static_google_cloud_retail_v2alpha_GetBranchRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.cx.v3beta1.ExampleProto - .internal_static_google_cloud_dialogflow_cx_v3beta1_ActionParameter_fieldAccessorTable + return com.google.cloud.retail.v2alpha.BranchServiceProto + .internal_static_google_cloud_retail_v2alpha_GetBranchRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.class, - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder.class); + com.google.cloud.retail.v2alpha.GetBranchRequest.class, + com.google.cloud.retail.v2alpha.GetBranchRequest.Builder.class); } - private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -72,10 +74,17 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. Name of the parameter.
+   * Required. The name of the branch to retrieve.
+   * Format:
+   * `projects/*/locations/global/catalogs/default_catalog/branches/some_branch_id`.
+   *
+   * "default_branch" can be used as a special branch_id, it returns the
+   * default branch that has been set for the catalog.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -95,10 +104,17 @@ public java.lang.String getName() { * * *
-   * Required. Name of the parameter.
+   * Required. The name of the branch to retrieve.
+   * Format:
+   * `projects/*/locations/global/catalogs/default_catalog/branches/some_branch_id`.
+   *
+   * "default_branch" can be used as a special branch_id, it returns the
+   * default branch that has been set for the catalog.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -115,50 +131,47 @@ public com.google.protobuf.ByteString getNameBytes() { } } - public static final int VALUE_FIELD_NUMBER = 2; - private com.google.protobuf.Value value_; + public static final int VIEW_FIELD_NUMBER = 2; + private int view_ = 0; /** * * *
-   * Required. Value of the parameter.
+   * The view to apply to the returned
+   * [Branch][google.cloud.retail.v2alpha.Branch]. Defaults to
+   * [Branch.BranchView.BASIC] if unspecified.
+   * See documentation of fields of [Branch][google.cloud.retail.v2alpha.Branch]
+   * to find what fields are excluded from BASIC view.
    * 
* - * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.retail.v2alpha.BranchView view = 2; * - * @return Whether the value field is set. + * @return The enum numeric value on the wire for view. */ @java.lang.Override - public boolean hasValue() { - return ((bitField0_ & 0x00000001) != 0); + public int getViewValue() { + return view_; } /** * * *
-   * Required. Value of the parameter.
+   * The view to apply to the returned
+   * [Branch][google.cloud.retail.v2alpha.Branch]. Defaults to
+   * [Branch.BranchView.BASIC] if unspecified.
+   * See documentation of fields of [Branch][google.cloud.retail.v2alpha.Branch]
+   * to find what fields are excluded from BASIC view.
    * 
* - * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The value. - */ - @java.lang.Override - public com.google.protobuf.Value getValue() { - return value_ == null ? com.google.protobuf.Value.getDefaultInstance() : value_; - } - /** - * - * - *
-   * Required. Value of the parameter.
-   * 
+ * .google.cloud.retail.v2alpha.BranchView view = 2; * - * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The view. */ @java.lang.Override - public com.google.protobuf.ValueOrBuilder getValueOrBuilder() { - return value_ == null ? com.google.protobuf.Value.getDefaultInstance() : value_; + public com.google.cloud.retail.v2alpha.BranchView getView() { + com.google.cloud.retail.v2alpha.BranchView result = + com.google.cloud.retail.v2alpha.BranchView.forNumber(view_); + return result == null ? com.google.cloud.retail.v2alpha.BranchView.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @@ -178,8 +191,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getValue()); + if (view_ != com.google.cloud.retail.v2alpha.BranchView.BRANCH_VIEW_UNSPECIFIED.getNumber()) { + output.writeEnum(2, view_); } getUnknownFields().writeTo(output); } @@ -193,8 +206,8 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getValue()); + if (view_ != com.google.cloud.retail.v2alpha.BranchView.BRANCH_VIEW_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, view_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -206,17 +219,14 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.cloud.dialogflow.cx.v3beta1.ActionParameter)) { + if (!(obj instanceof com.google.cloud.retail.v2alpha.GetBranchRequest)) { return super.equals(obj); } - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter other = - (com.google.cloud.dialogflow.cx.v3beta1.ActionParameter) obj; + com.google.cloud.retail.v2alpha.GetBranchRequest other = + (com.google.cloud.retail.v2alpha.GetBranchRequest) obj; if (!getName().equals(other.getName())) return false; - if (hasValue() != other.hasValue()) return false; - if (hasValue()) { - if (!getValue().equals(other.getValue())) return false; - } + if (view_ != other.view_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -230,80 +240,78 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - if (hasValue()) { - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - } + hash = (37 * hash) + VIEW_FIELD_NUMBER; + hash = (53 * hash) + view_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.dialogflow.cx.v3beta1.ActionParameter parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.retail.v2alpha.GetBranchRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.cx.v3beta1.ActionParameter parseFrom( + public static com.google.cloud.retail.v2alpha.GetBranchRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.cx.v3beta1.ActionParameter parseFrom( + public static com.google.cloud.retail.v2alpha.GetBranchRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.cx.v3beta1.ActionParameter parseFrom( + public static com.google.cloud.retail.v2alpha.GetBranchRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.cx.v3beta1.ActionParameter parseFrom(byte[] data) + public static com.google.cloud.retail.v2alpha.GetBranchRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.cx.v3beta1.ActionParameter parseFrom( + public static com.google.cloud.retail.v2alpha.GetBranchRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.cx.v3beta1.ActionParameter parseFrom( + public static com.google.cloud.retail.v2alpha.GetBranchRequest parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.cx.v3beta1.ActionParameter parseFrom( + public static com.google.cloud.retail.v2alpha.GetBranchRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.cx.v3beta1.ActionParameter parseDelimitedFrom( + public static com.google.cloud.retail.v2alpha.GetBranchRequest parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.cx.v3beta1.ActionParameter parseDelimitedFrom( + public static com.google.cloud.retail.v2alpha.GetBranchRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.cx.v3beta1.ActionParameter parseFrom( + public static com.google.cloud.retail.v2alpha.GetBranchRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.cx.v3beta1.ActionParameter parseFrom( + public static com.google.cloud.retail.v2alpha.GetBranchRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -320,8 +328,7 @@ public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder( - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter prototype) { + public static Builder newBuilder(com.google.cloud.retail.v2alpha.GetBranchRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -339,44 +346,37 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Parameter associated with action.
+   * Request for
+   * [BranchService.GetBranch][google.cloud.retail.v2alpha.BranchService.GetBranch]
+   * method.
    * 
* - * Protobuf type {@code google.cloud.dialogflow.cx.v3beta1.ActionParameter} + * Protobuf type {@code google.cloud.retail.v2alpha.GetBranchRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3beta1.ActionParameter) - com.google.cloud.dialogflow.cx.v3beta1.ActionParameterOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2alpha.GetBranchRequest) + com.google.cloud.retail.v2alpha.GetBranchRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.cx.v3beta1.ExampleProto - .internal_static_google_cloud_dialogflow_cx_v3beta1_ActionParameter_descriptor; + return com.google.cloud.retail.v2alpha.BranchServiceProto + .internal_static_google_cloud_retail_v2alpha_GetBranchRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.cx.v3beta1.ExampleProto - .internal_static_google_cloud_dialogflow_cx_v3beta1_ActionParameter_fieldAccessorTable + return com.google.cloud.retail.v2alpha.BranchServiceProto + .internal_static_google_cloud_retail_v2alpha_GetBranchRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.class, - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.Builder.class); + com.google.cloud.retail.v2alpha.GetBranchRequest.class, + com.google.cloud.retail.v2alpha.GetBranchRequest.Builder.class); } - // Construct using com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + // Construct using com.google.cloud.retail.v2alpha.GetBranchRequest.newBuilder() + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getValueFieldBuilder(); - } } @java.lang.Override @@ -384,28 +384,24 @@ public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; - value_ = null; - if (valueBuilder_ != null) { - valueBuilder_.dispose(); - valueBuilder_ = null; - } + view_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.cx.v3beta1.ExampleProto - .internal_static_google_cloud_dialogflow_cx_v3beta1_ActionParameter_descriptor; + return com.google.cloud.retail.v2alpha.BranchServiceProto + .internal_static_google_cloud_retail_v2alpha_GetBranchRequest_descriptor; } @java.lang.Override - public com.google.cloud.dialogflow.cx.v3beta1.ActionParameter getDefaultInstanceForType() { - return com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.getDefaultInstance(); + public com.google.cloud.retail.v2alpha.GetBranchRequest getDefaultInstanceForType() { + return com.google.cloud.retail.v2alpha.GetBranchRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.dialogflow.cx.v3beta1.ActionParameter build() { - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter result = buildPartial(); + public com.google.cloud.retail.v2alpha.GetBranchRequest build() { + com.google.cloud.retail.v2alpha.GetBranchRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -413,9 +409,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.ActionParameter build() { } @java.lang.Override - public com.google.cloud.dialogflow.cx.v3beta1.ActionParameter buildPartial() { - com.google.cloud.dialogflow.cx.v3beta1.ActionParameter result = - new com.google.cloud.dialogflow.cx.v3beta1.ActionParameter(this); + public com.google.cloud.retail.v2alpha.GetBranchRequest buildPartial() { + com.google.cloud.retail.v2alpha.GetBranchRequest result = + new com.google.cloud.retail.v2alpha.GetBranchRequest(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -423,17 +419,14 @@ public com.google.cloud.dialogflow.cx.v3beta1.ActionParameter buildPartial() { return result; } - private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.ActionParameter result) { + private void buildPartial0(com.google.cloud.retail.v2alpha.GetBranchRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } - int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.value_ = valueBuilder_ == null ? value_ : valueBuilder_.build(); - to_bitField0_ |= 0x00000001; + result.view_ = view_; } - result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -471,24 +464,24 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.dialogflow.cx.v3beta1.ActionParameter) { - return mergeFrom((com.google.cloud.dialogflow.cx.v3beta1.ActionParameter) other); + if (other instanceof com.google.cloud.retail.v2alpha.GetBranchRequest) { + return mergeFrom((com.google.cloud.retail.v2alpha.GetBranchRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ActionParameter other) { - if (other == com.google.cloud.dialogflow.cx.v3beta1.ActionParameter.getDefaultInstance()) + public Builder mergeFrom(com.google.cloud.retail.v2alpha.GetBranchRequest other) { + if (other == com.google.cloud.retail.v2alpha.GetBranchRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } - if (other.hasValue()) { - mergeValue(other.getValue()); + if (other.view_ != 0) { + setViewValue(other.getViewValue()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -522,12 +515,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 - case 18: + case 16: { - input.readMessage(getValueFieldBuilder().getBuilder(), extensionRegistry); + view_ = input.readEnum(); bitField0_ |= 0x00000002; break; - } // case 18 + } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -552,10 +545,17 @@ public Builder mergeFrom( * * *
-     * Required. Name of the parameter.
+     * Required. The name of the branch to retrieve.
+     * Format:
+     * `projects/*/locations/global/catalogs/default_catalog/branches/some_branch_id`.
+     *
+     * "default_branch" can be used as a special branch_id, it returns the
+     * default branch that has been set for the catalog.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -574,10 +574,17 @@ public java.lang.String getName() { * * *
-     * Required. Name of the parameter.
+     * Required. The name of the branch to retrieve.
+     * Format:
+     * `projects/*/locations/global/catalogs/default_catalog/branches/some_branch_id`.
+     *
+     * "default_branch" can be used as a special branch_id, it returns the
+     * default branch that has been set for the catalog.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -596,10 +603,17 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required. Name of the parameter.
+     * Required. The name of the branch to retrieve.
+     * Format:
+     * `projects/*/locations/global/catalogs/default_catalog/branches/some_branch_id`.
+     *
+     * "default_branch" can be used as a special branch_id, it returns the
+     * default branch that has been set for the catalog.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The name to set. * @return This builder for chaining. @@ -617,10 +631,17 @@ public Builder setName(java.lang.String value) { * * *
-     * Required. Name of the parameter.
+     * Required. The name of the branch to retrieve.
+     * Format:
+     * `projects/*/locations/global/catalogs/default_catalog/branches/some_branch_id`.
+     *
+     * "default_branch" can be used as a special branch_id, it returns the
+     * default branch that has been set for the catalog.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -634,10 +655,17 @@ public Builder clearName() { * * *
-     * Required. Name of the parameter.
+     * Required. The name of the branch to retrieve.
+     * Format:
+     * `projects/*/locations/global/catalogs/default_catalog/branches/some_branch_id`.
+     *
+     * "default_branch" can be used as a special branch_id, it returns the
+     * default branch that has been set for the catalog.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for name to set. * @return This builder for chaining. @@ -653,62 +681,44 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.Value value_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Value, - com.google.protobuf.Value.Builder, - com.google.protobuf.ValueOrBuilder> - valueBuilder_; + private int view_ = 0; /** * * *
-     * Required. Value of the parameter.
+     * The view to apply to the returned
+     * [Branch][google.cloud.retail.v2alpha.Branch]. Defaults to
+     * [Branch.BranchView.BASIC] if unspecified.
+     * See documentation of fields of [Branch][google.cloud.retail.v2alpha.Branch]
+     * to find what fields are excluded from BASIC view.
      * 
* - * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.retail.v2alpha.BranchView view = 2; * - * @return Whether the value field is set. + * @return The enum numeric value on the wire for view. */ - public boolean hasValue() { - return ((bitField0_ & 0x00000002) != 0); + @java.lang.Override + public int getViewValue() { + return view_; } /** * * *
-     * Required. Value of the parameter.
+     * The view to apply to the returned
+     * [Branch][google.cloud.retail.v2alpha.Branch]. Defaults to
+     * [Branch.BranchView.BASIC] if unspecified.
+     * See documentation of fields of [Branch][google.cloud.retail.v2alpha.Branch]
+     * to find what fields are excluded from BASIC view.
      * 
* - * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The value. - */ - public com.google.protobuf.Value getValue() { - if (valueBuilder_ == null) { - return value_ == null ? com.google.protobuf.Value.getDefaultInstance() : value_; - } else { - return valueBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. Value of the parameter.
-     * 
+ * .google.cloud.retail.v2alpha.BranchView view = 2; * - * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The enum numeric value on the wire for view to set. + * @return This builder for chaining. */ - public Builder setValue(com.google.protobuf.Value value) { - if (valueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - } else { - valueBuilder_.setMessage(value); - } + public Builder setViewValue(int value) { + view_ = value; bitField0_ |= 0x00000002; onChanged(); return this; @@ -717,120 +727,68 @@ public Builder setValue(com.google.protobuf.Value value) { * * *
-     * Required. Value of the parameter.
+     * The view to apply to the returned
+     * [Branch][google.cloud.retail.v2alpha.Branch]. Defaults to
+     * [Branch.BranchView.BASIC] if unspecified.
+     * See documentation of fields of [Branch][google.cloud.retail.v2alpha.Branch]
+     * to find what fields are excluded from BASIC view.
      * 
* - * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setValue(com.google.protobuf.Value.Builder builderForValue) { - if (valueBuilder_ == null) { - value_ = builderForValue.build(); - } else { - valueBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * + * .google.cloud.retail.v2alpha.BranchView view = 2; * - *
-     * Required. Value of the parameter.
-     * 
- * - * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The view. */ - public Builder mergeValue(com.google.protobuf.Value value) { - if (valueBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && value_ != null - && value_ != com.google.protobuf.Value.getDefaultInstance()) { - getValueBuilder().mergeFrom(value); - } else { - value_ = value; - } - } else { - valueBuilder_.mergeFrom(value); - } - if (value_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; + @java.lang.Override + public com.google.cloud.retail.v2alpha.BranchView getView() { + com.google.cloud.retail.v2alpha.BranchView result = + com.google.cloud.retail.v2alpha.BranchView.forNumber(view_); + return result == null ? com.google.cloud.retail.v2alpha.BranchView.UNRECOGNIZED : result; } /** * * *
-     * Required. Value of the parameter.
+     * The view to apply to the returned
+     * [Branch][google.cloud.retail.v2alpha.Branch]. Defaults to
+     * [Branch.BranchView.BASIC] if unspecified.
+     * See documentation of fields of [Branch][google.cloud.retail.v2alpha.Branch]
+     * to find what fields are excluded from BASIC view.
      * 
* - * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearValue() { - bitField0_ = (bitField0_ & ~0x00000002); - value_ = null; - if (valueBuilder_ != null) { - valueBuilder_.dispose(); - valueBuilder_ = null; - } - onChanged(); - return this; - } - /** - * + * .google.cloud.retail.v2alpha.BranchView view = 2; * - *
-     * Required. Value of the parameter.
-     * 
- * - * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The view to set. + * @return This builder for chaining. */ - public com.google.protobuf.Value.Builder getValueBuilder() { + public Builder setView(com.google.cloud.retail.v2alpha.BranchView value) { + if (value == null) { + throw new NullPointerException(); + } bitField0_ |= 0x00000002; + view_ = value.getNumber(); onChanged(); - return getValueFieldBuilder().getBuilder(); + return this; } /** * * *
-     * Required. Value of the parameter.
+     * The view to apply to the returned
+     * [Branch][google.cloud.retail.v2alpha.Branch]. Defaults to
+     * [Branch.BranchView.BASIC] if unspecified.
+     * See documentation of fields of [Branch][google.cloud.retail.v2alpha.Branch]
+     * to find what fields are excluded from BASIC view.
      * 
* - * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.ValueOrBuilder getValueOrBuilder() { - if (valueBuilder_ != null) { - return valueBuilder_.getMessageOrBuilder(); - } else { - return value_ == null ? com.google.protobuf.Value.getDefaultInstance() : value_; - } - } - /** - * - * - *
-     * Required. Value of the parameter.
-     * 
+ * .google.cloud.retail.v2alpha.BranchView view = 2; * - * .google.protobuf.Value value = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Value, - com.google.protobuf.Value.Builder, - com.google.protobuf.ValueOrBuilder> - getValueFieldBuilder() { - if (valueBuilder_ == null) { - valueBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Value, - com.google.protobuf.Value.Builder, - com.google.protobuf.ValueOrBuilder>(getValue(), getParentForChildren(), isClean()); - value_ = null; - } - return valueBuilder_; + public Builder clearView() { + bitField0_ = (bitField0_ & ~0x00000002); + view_ = 0; + onChanged(); + return this; } @java.lang.Override @@ -844,24 +802,24 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3beta1.ActionParameter) + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2alpha.GetBranchRequest) } - // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3beta1.ActionParameter) - private static final com.google.cloud.dialogflow.cx.v3beta1.ActionParameter DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2alpha.GetBranchRequest) + private static final com.google.cloud.retail.v2alpha.GetBranchRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3beta1.ActionParameter(); + DEFAULT_INSTANCE = new com.google.cloud.retail.v2alpha.GetBranchRequest(); } - public static com.google.cloud.dialogflow.cx.v3beta1.ActionParameter getDefaultInstance() { + public static com.google.cloud.retail.v2alpha.GetBranchRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public ActionParameter parsePartialFrom( + public GetBranchRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -880,17 +838,17 @@ public ActionParameter parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.dialogflow.cx.v3beta1.ActionParameter getDefaultInstanceForType() { + public com.google.cloud.retail.v2alpha.GetBranchRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/GetBranchRequestOrBuilder.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/GetBranchRequestOrBuilder.java new file mode 100644 index 000000000000..05f6d51db20f --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/GetBranchRequestOrBuilder.java @@ -0,0 +1,98 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/retail/v2alpha/branch_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.retail.v2alpha; + +public interface GetBranchRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2alpha.GetBranchRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the branch to retrieve.
+   * Format:
+   * `projects/*/locations/global/catalogs/default_catalog/branches/some_branch_id`.
+   *
+   * "default_branch" can be used as a special branch_id, it returns the
+   * default branch that has been set for the catalog.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the branch to retrieve.
+   * Format:
+   * `projects/*/locations/global/catalogs/default_catalog/branches/some_branch_id`.
+   *
+   * "default_branch" can be used as a special branch_id, it returns the
+   * default branch that has been set for the catalog.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The view to apply to the returned
+   * [Branch][google.cloud.retail.v2alpha.Branch]. Defaults to
+   * [Branch.BranchView.BASIC] if unspecified.
+   * See documentation of fields of [Branch][google.cloud.retail.v2alpha.Branch]
+   * to find what fields are excluded from BASIC view.
+   * 
+ * + * .google.cloud.retail.v2alpha.BranchView view = 2; + * + * @return The enum numeric value on the wire for view. + */ + int getViewValue(); + /** + * + * + *
+   * The view to apply to the returned
+   * [Branch][google.cloud.retail.v2alpha.Branch]. Defaults to
+   * [Branch.BranchView.BASIC] if unspecified.
+   * See documentation of fields of [Branch][google.cloud.retail.v2alpha.Branch]
+   * to find what fields are excluded from BASIC view.
+   * 
+ * + * .google.cloud.retail.v2alpha.BranchView view = 2; + * + * @return The view. + */ + com.google.cloud.retail.v2alpha.BranchView getView(); +} diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/GetLoggingConfigRequest.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/GetLoggingConfigRequest.java new file mode 100644 index 000000000000..b7911fe28070 --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/GetLoggingConfigRequest.java @@ -0,0 +1,651 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/retail/v2alpha/project_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.retail.v2alpha; + +/** + * + * + *
+ * Request for
+ * [ProjectService.GetLoggingConfig][google.cloud.retail.v2alpha.ProjectService.GetLoggingConfig]
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.GetLoggingConfigRequest} + */ +public final class GetLoggingConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2alpha.GetLoggingConfigRequest) + GetLoggingConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetLoggingConfigRequest.newBuilder() to construct. + private GetLoggingConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetLoggingConfigRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetLoggingConfigRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_GetLoggingConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_GetLoggingConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.GetLoggingConfigRequest.class, + com.google.cloud.retail.v2alpha.GetLoggingConfigRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Full LoggingConfig resource name. Format:
+   * projects/{project_number}/loggingConfig
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Full LoggingConfig resource name. Format:
+   * projects/{project_number}/loggingConfig
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.retail.v2alpha.GetLoggingConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.retail.v2alpha.GetLoggingConfigRequest other = + (com.google.cloud.retail.v2alpha.GetLoggingConfigRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2alpha.GetLoggingConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.GetLoggingConfigRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.GetLoggingConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.GetLoggingConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.GetLoggingConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.GetLoggingConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.GetLoggingConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.GetLoggingConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.GetLoggingConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.GetLoggingConfigRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.GetLoggingConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.GetLoggingConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.retail.v2alpha.GetLoggingConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request for
+   * [ProjectService.GetLoggingConfig][google.cloud.retail.v2alpha.ProjectService.GetLoggingConfig]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.GetLoggingConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2alpha.GetLoggingConfigRequest) + com.google.cloud.retail.v2alpha.GetLoggingConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_GetLoggingConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_GetLoggingConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.GetLoggingConfigRequest.class, + com.google.cloud.retail.v2alpha.GetLoggingConfigRequest.Builder.class); + } + + // Construct using com.google.cloud.retail.v2alpha.GetLoggingConfigRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_GetLoggingConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.GetLoggingConfigRequest getDefaultInstanceForType() { + return com.google.cloud.retail.v2alpha.GetLoggingConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.GetLoggingConfigRequest build() { + com.google.cloud.retail.v2alpha.GetLoggingConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.GetLoggingConfigRequest buildPartial() { + com.google.cloud.retail.v2alpha.GetLoggingConfigRequest result = + new com.google.cloud.retail.v2alpha.GetLoggingConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.retail.v2alpha.GetLoggingConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.retail.v2alpha.GetLoggingConfigRequest) { + return mergeFrom((com.google.cloud.retail.v2alpha.GetLoggingConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.retail.v2alpha.GetLoggingConfigRequest other) { + if (other == com.google.cloud.retail.v2alpha.GetLoggingConfigRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. Full LoggingConfig resource name. Format:
+     * projects/{project_number}/loggingConfig
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Full LoggingConfig resource name. Format:
+     * projects/{project_number}/loggingConfig
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Full LoggingConfig resource name. Format:
+     * projects/{project_number}/loggingConfig
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Full LoggingConfig resource name. Format:
+     * projects/{project_number}/loggingConfig
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Full LoggingConfig resource name. Format:
+     * projects/{project_number}/loggingConfig
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2alpha.GetLoggingConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2alpha.GetLoggingConfigRequest) + private static final com.google.cloud.retail.v2alpha.GetLoggingConfigRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.retail.v2alpha.GetLoggingConfigRequest(); + } + + public static com.google.cloud.retail.v2alpha.GetLoggingConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetLoggingConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.GetLoggingConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/GetLoggingConfigRequestOrBuilder.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/GetLoggingConfigRequestOrBuilder.java new file mode 100644 index 000000000000..71e2e299128a --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/GetLoggingConfigRequestOrBuilder.java @@ -0,0 +1,57 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/retail/v2alpha/project_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.retail.v2alpha; + +public interface GetLoggingConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2alpha.GetLoggingConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Full LoggingConfig resource name. Format:
+   * projects/{project_number}/loggingConfig
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Full LoggingConfig resource name. Format:
+   * projects/{project_number}/loggingConfig
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/GetProjectRequest.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/GetProjectRequest.java new file mode 100644 index 000000000000..63896366dee4 --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/GetProjectRequest.java @@ -0,0 +1,646 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/retail/v2alpha/project_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.retail.v2alpha; + +/** + * + * + *
+ * Request for GetProject method.
+ * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.GetProjectRequest} + */ +public final class GetProjectRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2alpha.GetProjectRequest) + GetProjectRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetProjectRequest.newBuilder() to construct. + private GetProjectRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetProjectRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetProjectRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_GetProjectRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_GetProjectRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.GetProjectRequest.class, + com.google.cloud.retail.v2alpha.GetProjectRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Full resource name of the project. Format:
+   * `projects/{project_number_or_id}/retailProject`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Full resource name of the project. Format:
+   * `projects/{project_number_or_id}/retailProject`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.retail.v2alpha.GetProjectRequest)) { + return super.equals(obj); + } + com.google.cloud.retail.v2alpha.GetProjectRequest other = + (com.google.cloud.retail.v2alpha.GetProjectRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2alpha.GetProjectRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.GetProjectRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.GetProjectRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.GetProjectRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.GetProjectRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.GetProjectRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.GetProjectRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.GetProjectRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.GetProjectRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.GetProjectRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.GetProjectRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.GetProjectRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.retail.v2alpha.GetProjectRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request for GetProject method.
+   * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.GetProjectRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2alpha.GetProjectRequest) + com.google.cloud.retail.v2alpha.GetProjectRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_GetProjectRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_GetProjectRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.GetProjectRequest.class, + com.google.cloud.retail.v2alpha.GetProjectRequest.Builder.class); + } + + // Construct using com.google.cloud.retail.v2alpha.GetProjectRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_GetProjectRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.GetProjectRequest getDefaultInstanceForType() { + return com.google.cloud.retail.v2alpha.GetProjectRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.GetProjectRequest build() { + com.google.cloud.retail.v2alpha.GetProjectRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.GetProjectRequest buildPartial() { + com.google.cloud.retail.v2alpha.GetProjectRequest result = + new com.google.cloud.retail.v2alpha.GetProjectRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.retail.v2alpha.GetProjectRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.retail.v2alpha.GetProjectRequest) { + return mergeFrom((com.google.cloud.retail.v2alpha.GetProjectRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.retail.v2alpha.GetProjectRequest other) { + if (other == com.google.cloud.retail.v2alpha.GetProjectRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. Full resource name of the project. Format:
+     * `projects/{project_number_or_id}/retailProject`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Full resource name of the project. Format:
+     * `projects/{project_number_or_id}/retailProject`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Full resource name of the project. Format:
+     * `projects/{project_number_or_id}/retailProject`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Full resource name of the project. Format:
+     * `projects/{project_number_or_id}/retailProject`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Full resource name of the project. Format:
+     * `projects/{project_number_or_id}/retailProject`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2alpha.GetProjectRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2alpha.GetProjectRequest) + private static final com.google.cloud.retail.v2alpha.GetProjectRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.retail.v2alpha.GetProjectRequest(); + } + + public static com.google.cloud.retail.v2alpha.GetProjectRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetProjectRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.GetProjectRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/GetProjectRequestOrBuilder.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/GetProjectRequestOrBuilder.java new file mode 100644 index 000000000000..adced94821ea --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/GetProjectRequestOrBuilder.java @@ -0,0 +1,57 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/retail/v2alpha/project_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.retail.v2alpha; + +public interface GetProjectRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2alpha.GetProjectRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Full resource name of the project. Format:
+   * `projects/{project_number_or_id}/retailProject`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Full resource name of the project. Format:
+   * `projects/{project_number_or_id}/retailProject`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ImportMetadata.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ImportMetadata.java index cacc40d3ecb5..76e5b0be0a4a 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ImportMetadata.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ImportMetadata.java @@ -211,7 +211,7 @@ public long getFailureCount() { * string request_id = 5 [deprecated = true]; * * @deprecated google.cloud.retail.v2alpha.ImportMetadata.request_id is deprecated. See - * google/cloud/retail/v2alpha/import_config.proto;l=339 + * google/cloud/retail/v2alpha/import_config.proto;l=345 * @return The requestId. */ @java.lang.Override @@ -237,7 +237,7 @@ public java.lang.String getRequestId() { * string request_id = 5 [deprecated = true]; * * @deprecated google.cloud.retail.v2alpha.ImportMetadata.request_id is deprecated. See - * google/cloud/retail/v2alpha/import_config.proto;l=339 + * google/cloud/retail/v2alpha/import_config.proto;l=345 * @return The bytes for requestId. */ @java.lang.Override @@ -1395,7 +1395,7 @@ public Builder clearFailureCount() { * string request_id = 5 [deprecated = true]; * * @deprecated google.cloud.retail.v2alpha.ImportMetadata.request_id is deprecated. See - * google/cloud/retail/v2alpha/import_config.proto;l=339 + * google/cloud/retail/v2alpha/import_config.proto;l=345 * @return The requestId. */ @java.lang.Deprecated @@ -1420,7 +1420,7 @@ public java.lang.String getRequestId() { * string request_id = 5 [deprecated = true]; * * @deprecated google.cloud.retail.v2alpha.ImportMetadata.request_id is deprecated. See - * google/cloud/retail/v2alpha/import_config.proto;l=339 + * google/cloud/retail/v2alpha/import_config.proto;l=345 * @return The bytes for requestId. */ @java.lang.Deprecated @@ -1445,7 +1445,7 @@ public com.google.protobuf.ByteString getRequestIdBytes() { * string request_id = 5 [deprecated = true]; * * @deprecated google.cloud.retail.v2alpha.ImportMetadata.request_id is deprecated. See - * google/cloud/retail/v2alpha/import_config.proto;l=339 + * google/cloud/retail/v2alpha/import_config.proto;l=345 * @param value The requestId to set. * @return This builder for chaining. */ @@ -1469,7 +1469,7 @@ public Builder setRequestId(java.lang.String value) { * string request_id = 5 [deprecated = true]; * * @deprecated google.cloud.retail.v2alpha.ImportMetadata.request_id is deprecated. See - * google/cloud/retail/v2alpha/import_config.proto;l=339 + * google/cloud/retail/v2alpha/import_config.proto;l=345 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1489,7 +1489,7 @@ public Builder clearRequestId() { * string request_id = 5 [deprecated = true]; * * @deprecated google.cloud.retail.v2alpha.ImportMetadata.request_id is deprecated. See - * google/cloud/retail/v2alpha/import_config.proto;l=339 + * google/cloud/retail/v2alpha/import_config.proto;l=345 * @param value The bytes for requestId to set. * @return This builder for chaining. */ diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ImportMetadataOrBuilder.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ImportMetadataOrBuilder.java index c9b04b13b4c8..9f961aba26ac 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ImportMetadataOrBuilder.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ImportMetadataOrBuilder.java @@ -133,7 +133,7 @@ public interface ImportMetadataOrBuilder * string request_id = 5 [deprecated = true]; * * @deprecated google.cloud.retail.v2alpha.ImportMetadata.request_id is deprecated. See - * google/cloud/retail/v2alpha/import_config.proto;l=339 + * google/cloud/retail/v2alpha/import_config.proto;l=345 * @return The requestId. */ @java.lang.Deprecated @@ -148,7 +148,7 @@ public interface ImportMetadataOrBuilder * string request_id = 5 [deprecated = true]; * * @deprecated google.cloud.retail.v2alpha.ImportMetadata.request_id is deprecated. See - * google/cloud/retail/v2alpha/import_config.proto;l=339 + * google/cloud/retail/v2alpha/import_config.proto;l=345 * @return The bytes for requestId. */ @java.lang.Deprecated diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ImportProductsRequest.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ImportProductsRequest.java index c0e8583f100a..cbe93e1e43f0 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ImportProductsRequest.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ImportProductsRequest.java @@ -465,7 +465,8 @@ public com.google.cloud.retail.v2alpha.ImportErrorsConfigOrBuilder getErrorsConf * *
    * Indicates which fields in the provided imported `products` to update. If
-   * not set, all fields are updated.
+   * not set, all fields are updated. If provided, only the existing product
+   * fields are updated. Missing products will not be created.
    * 
* * .google.protobuf.FieldMask update_mask = 4; @@ -481,7 +482,8 @@ public boolean hasUpdateMask() { * *
    * Indicates which fields in the provided imported `products` to update. If
-   * not set, all fields are updated.
+   * not set, all fields are updated. If provided, only the existing product
+   * fields are updated. Missing products will not be created.
    * 
* * .google.protobuf.FieldMask update_mask = 4; @@ -497,7 +499,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { * *
    * Indicates which fields in the provided imported `products` to update. If
-   * not set, all fields are updated.
+   * not set, all fields are updated. If provided, only the existing product
+   * fields are updated. Missing products will not be created.
    * 
* * .google.protobuf.FieldMask update_mask = 4; @@ -570,9 +573,14 @@ public int getReconciliationModeValue() { * Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`. It has * to be within the same project as * [ImportProductsRequest.parent][google.cloud.retail.v2alpha.ImportProductsRequest.parent]. - * Make sure that `service-<project - * number>@gcp-sa-retail.iam.gserviceaccount.com` has the - * `pubsub.topics.publish` IAM permission on the topic. + * Make sure that both + * `cloud-retail-customer-data-access@system.gserviceaccount.com` and + * `service-<project number>@gcp-sa-retail.iam.gserviceaccount.com` + * have the `pubsub.topics.publish` IAM permission on the topic. + * + * Only supported when + * [ImportProductsRequest.reconciliation_mode][google.cloud.retail.v2alpha.ImportProductsRequest.reconciliation_mode] + * is set to `FULL`. * * * string notification_pubsub_topic = 7; @@ -603,9 +611,14 @@ public java.lang.String getNotificationPubsubTopic() { * Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`. It has * to be within the same project as * [ImportProductsRequest.parent][google.cloud.retail.v2alpha.ImportProductsRequest.parent]. - * Make sure that `service-<project - * number>@gcp-sa-retail.iam.gserviceaccount.com` has the - * `pubsub.topics.publish` IAM permission on the topic. + * Make sure that both + * `cloud-retail-customer-data-access@system.gserviceaccount.com` and + * `service-<project number>@gcp-sa-retail.iam.gserviceaccount.com` + * have the `pubsub.topics.publish` IAM permission on the topic. + * + * Only supported when + * [ImportProductsRequest.reconciliation_mode][google.cloud.retail.v2alpha.ImportProductsRequest.reconciliation_mode] + * is set to `FULL`. * * * string notification_pubsub_topic = 7; @@ -1862,7 +1875,8 @@ public com.google.cloud.retail.v2alpha.ImportErrorsConfigOrBuilder getErrorsConf * *
      * Indicates which fields in the provided imported `products` to update. If
-     * not set, all fields are updated.
+     * not set, all fields are updated. If provided, only the existing product
+     * fields are updated. Missing products will not be created.
      * 
* * .google.protobuf.FieldMask update_mask = 4; @@ -1877,7 +1891,8 @@ public boolean hasUpdateMask() { * *
      * Indicates which fields in the provided imported `products` to update. If
-     * not set, all fields are updated.
+     * not set, all fields are updated. If provided, only the existing product
+     * fields are updated. Missing products will not be created.
      * 
* * .google.protobuf.FieldMask update_mask = 4; @@ -1898,7 +1913,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { * *
      * Indicates which fields in the provided imported `products` to update. If
-     * not set, all fields are updated.
+     * not set, all fields are updated. If provided, only the existing product
+     * fields are updated. Missing products will not be created.
      * 
* * .google.protobuf.FieldMask update_mask = 4; @@ -1921,7 +1937,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * *
      * Indicates which fields in the provided imported `products` to update. If
-     * not set, all fields are updated.
+     * not set, all fields are updated. If provided, only the existing product
+     * fields are updated. Missing products will not be created.
      * 
* * .google.protobuf.FieldMask update_mask = 4; @@ -1941,7 +1958,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * *
      * Indicates which fields in the provided imported `products` to update. If
-     * not set, all fields are updated.
+     * not set, all fields are updated. If provided, only the existing product
+     * fields are updated. Missing products will not be created.
      * 
* * .google.protobuf.FieldMask update_mask = 4; @@ -1969,7 +1987,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * *
      * Indicates which fields in the provided imported `products` to update. If
-     * not set, all fields are updated.
+     * not set, all fields are updated. If provided, only the existing product
+     * fields are updated. Missing products will not be created.
      * 
* * .google.protobuf.FieldMask update_mask = 4; @@ -1989,7 +2008,8 @@ public Builder clearUpdateMask() { * *
      * Indicates which fields in the provided imported `products` to update. If
-     * not set, all fields are updated.
+     * not set, all fields are updated. If provided, only the existing product
+     * fields are updated. Missing products will not be created.
      * 
* * .google.protobuf.FieldMask update_mask = 4; @@ -2004,7 +2024,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * *
      * Indicates which fields in the provided imported `products` to update. If
-     * not set, all fields are updated.
+     * not set, all fields are updated. If provided, only the existing product
+     * fields are updated. Missing products will not be created.
      * 
* * .google.protobuf.FieldMask update_mask = 4; @@ -2023,7 +2044,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * *
      * Indicates which fields in the provided imported `products` to update. If
-     * not set, all fields are updated.
+     * not set, all fields are updated. If provided, only the existing product
+     * fields are updated. Missing products will not be created.
      * 
* * .google.protobuf.FieldMask update_mask = 4; @@ -2173,9 +2195,14 @@ public Builder clearReconciliationMode() { * Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`. It has * to be within the same project as * [ImportProductsRequest.parent][google.cloud.retail.v2alpha.ImportProductsRequest.parent]. - * Make sure that `service-<project - * number>@gcp-sa-retail.iam.gserviceaccount.com` has the - * `pubsub.topics.publish` IAM permission on the topic. + * Make sure that both + * `cloud-retail-customer-data-access@system.gserviceaccount.com` and + * `service-<project number>@gcp-sa-retail.iam.gserviceaccount.com` + * have the `pubsub.topics.publish` IAM permission on the topic. + * + * Only supported when + * [ImportProductsRequest.reconciliation_mode][google.cloud.retail.v2alpha.ImportProductsRequest.reconciliation_mode] + * is set to `FULL`. * * * string notification_pubsub_topic = 7; @@ -2205,9 +2232,14 @@ public java.lang.String getNotificationPubsubTopic() { * Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`. It has * to be within the same project as * [ImportProductsRequest.parent][google.cloud.retail.v2alpha.ImportProductsRequest.parent]. - * Make sure that `service-<project - * number>@gcp-sa-retail.iam.gserviceaccount.com` has the - * `pubsub.topics.publish` IAM permission on the topic. + * Make sure that both + * `cloud-retail-customer-data-access@system.gserviceaccount.com` and + * `service-<project number>@gcp-sa-retail.iam.gserviceaccount.com` + * have the `pubsub.topics.publish` IAM permission on the topic. + * + * Only supported when + * [ImportProductsRequest.reconciliation_mode][google.cloud.retail.v2alpha.ImportProductsRequest.reconciliation_mode] + * is set to `FULL`. * * * string notification_pubsub_topic = 7; @@ -2237,9 +2269,14 @@ public com.google.protobuf.ByteString getNotificationPubsubTopicBytes() { * Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`. It has * to be within the same project as * [ImportProductsRequest.parent][google.cloud.retail.v2alpha.ImportProductsRequest.parent]. - * Make sure that `service-<project - * number>@gcp-sa-retail.iam.gserviceaccount.com` has the - * `pubsub.topics.publish` IAM permission on the topic. + * Make sure that both + * `cloud-retail-customer-data-access@system.gserviceaccount.com` and + * `service-<project number>@gcp-sa-retail.iam.gserviceaccount.com` + * have the `pubsub.topics.publish` IAM permission on the topic. + * + * Only supported when + * [ImportProductsRequest.reconciliation_mode][google.cloud.retail.v2alpha.ImportProductsRequest.reconciliation_mode] + * is set to `FULL`. * * * string notification_pubsub_topic = 7; @@ -2268,9 +2305,14 @@ public Builder setNotificationPubsubTopic(java.lang.String value) { * Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`. It has * to be within the same project as * [ImportProductsRequest.parent][google.cloud.retail.v2alpha.ImportProductsRequest.parent]. - * Make sure that `service-<project - * number>@gcp-sa-retail.iam.gserviceaccount.com` has the - * `pubsub.topics.publish` IAM permission on the topic. + * Make sure that both + * `cloud-retail-customer-data-access@system.gserviceaccount.com` and + * `service-<project number>@gcp-sa-retail.iam.gserviceaccount.com` + * have the `pubsub.topics.publish` IAM permission on the topic. + * + * Only supported when + * [ImportProductsRequest.reconciliation_mode][google.cloud.retail.v2alpha.ImportProductsRequest.reconciliation_mode] + * is set to `FULL`. * * * string notification_pubsub_topic = 7; @@ -2295,9 +2337,14 @@ public Builder clearNotificationPubsubTopic() { * Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`. It has * to be within the same project as * [ImportProductsRequest.parent][google.cloud.retail.v2alpha.ImportProductsRequest.parent]. - * Make sure that `service-<project - * number>@gcp-sa-retail.iam.gserviceaccount.com` has the - * `pubsub.topics.publish` IAM permission on the topic. + * Make sure that both + * `cloud-retail-customer-data-access@system.gserviceaccount.com` and + * `service-<project number>@gcp-sa-retail.iam.gserviceaccount.com` + * have the `pubsub.topics.publish` IAM permission on the topic. + * + * Only supported when + * [ImportProductsRequest.reconciliation_mode][google.cloud.retail.v2alpha.ImportProductsRequest.reconciliation_mode] + * is set to `FULL`. * * * string notification_pubsub_topic = 7; diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ImportProductsRequestOrBuilder.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ImportProductsRequestOrBuilder.java index 3fdaaa8f77da..97b4db4a6d53 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ImportProductsRequestOrBuilder.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ImportProductsRequestOrBuilder.java @@ -173,7 +173,8 @@ public interface ImportProductsRequestOrBuilder * *
    * Indicates which fields in the provided imported `products` to update. If
-   * not set, all fields are updated.
+   * not set, all fields are updated. If provided, only the existing product
+   * fields are updated. Missing products will not be created.
    * 
* * .google.protobuf.FieldMask update_mask = 4; @@ -186,7 +187,8 @@ public interface ImportProductsRequestOrBuilder * *
    * Indicates which fields in the provided imported `products` to update. If
-   * not set, all fields are updated.
+   * not set, all fields are updated. If provided, only the existing product
+   * fields are updated. Missing products will not be created.
    * 
* * .google.protobuf.FieldMask update_mask = 4; @@ -199,7 +201,8 @@ public interface ImportProductsRequestOrBuilder * *
    * Indicates which fields in the provided imported `products` to update. If
-   * not set, all fields are updated.
+   * not set, all fields are updated. If provided, only the existing product
+   * fields are updated. Missing products will not be created.
    * 
* * .google.protobuf.FieldMask update_mask = 4; @@ -251,9 +254,14 @@ public interface ImportProductsRequestOrBuilder * Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`. It has * to be within the same project as * [ImportProductsRequest.parent][google.cloud.retail.v2alpha.ImportProductsRequest.parent]. - * Make sure that `service-<project - * number>@gcp-sa-retail.iam.gserviceaccount.com` has the - * `pubsub.topics.publish` IAM permission on the topic. + * Make sure that both + * `cloud-retail-customer-data-access@system.gserviceaccount.com` and + * `service-<project number>@gcp-sa-retail.iam.gserviceaccount.com` + * have the `pubsub.topics.publish` IAM permission on the topic. + * + * Only supported when + * [ImportProductsRequest.reconciliation_mode][google.cloud.retail.v2alpha.ImportProductsRequest.reconciliation_mode] + * is set to `FULL`. * * * string notification_pubsub_topic = 7; @@ -273,9 +281,14 @@ public interface ImportProductsRequestOrBuilder * Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`. It has * to be within the same project as * [ImportProductsRequest.parent][google.cloud.retail.v2alpha.ImportProductsRequest.parent]. - * Make sure that `service-<project - * number>@gcp-sa-retail.iam.gserviceaccount.com` has the - * `pubsub.topics.publish` IAM permission on the topic. + * Make sure that both + * `cloud-retail-customer-data-access@system.gserviceaccount.com` and + * `service-<project number>@gcp-sa-retail.iam.gserviceaccount.com` + * have the `pubsub.topics.publish` IAM permission on the topic. + * + * Only supported when + * [ImportProductsRequest.reconciliation_mode][google.cloud.retail.v2alpha.ImportProductsRequest.reconciliation_mode] + * is set to `FULL`. * * * string notification_pubsub_topic = 7; diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ListBranchesRequest.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ListBranchesRequest.java new file mode 100644 index 000000000000..17d306edc5f9 --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ListBranchesRequest.java @@ -0,0 +1,819 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/retail/v2alpha/branch_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.retail.v2alpha; + +/** + * + * + *
+ * Request for
+ * [BranchService.ListBranches][google.cloud.retail.v2alpha.BranchService.ListBranches]
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.ListBranchesRequest} + */ +public final class ListBranchesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2alpha.ListBranchesRequest) + ListBranchesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListBranchesRequest.newBuilder() to construct. + private ListBranchesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListBranchesRequest() { + parent_ = ""; + view_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListBranchesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.BranchServiceProto + .internal_static_google_cloud_retail_v2alpha_ListBranchesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.BranchServiceProto + .internal_static_google_cloud_retail_v2alpha_ListBranchesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.ListBranchesRequest.class, + com.google.cloud.retail.v2alpha.ListBranchesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The parent catalog resource name.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The parent catalog resource name.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VIEW_FIELD_NUMBER = 2; + private int view_ = 0; + /** + * + * + *
+   * The view to apply to the returned
+   * [Branch][google.cloud.retail.v2alpha.Branch]. Defaults to
+   * [Branch.BranchView.BASIC] if unspecified.
+   * See documentation of fields of [Branch][google.cloud.retail.v2alpha.Branch]
+   * to find what fields are excluded from BASIC view.
+   * 
+ * + * .google.cloud.retail.v2alpha.BranchView view = 2; + * + * @return The enum numeric value on the wire for view. + */ + @java.lang.Override + public int getViewValue() { + return view_; + } + /** + * + * + *
+   * The view to apply to the returned
+   * [Branch][google.cloud.retail.v2alpha.Branch]. Defaults to
+   * [Branch.BranchView.BASIC] if unspecified.
+   * See documentation of fields of [Branch][google.cloud.retail.v2alpha.Branch]
+   * to find what fields are excluded from BASIC view.
+   * 
+ * + * .google.cloud.retail.v2alpha.BranchView view = 2; + * + * @return The view. + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.BranchView getView() { + com.google.cloud.retail.v2alpha.BranchView result = + com.google.cloud.retail.v2alpha.BranchView.forNumber(view_); + return result == null ? com.google.cloud.retail.v2alpha.BranchView.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (view_ != com.google.cloud.retail.v2alpha.BranchView.BRANCH_VIEW_UNSPECIFIED.getNumber()) { + output.writeEnum(2, view_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (view_ != com.google.cloud.retail.v2alpha.BranchView.BRANCH_VIEW_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, view_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.retail.v2alpha.ListBranchesRequest)) { + return super.equals(obj); + } + com.google.cloud.retail.v2alpha.ListBranchesRequest other = + (com.google.cloud.retail.v2alpha.ListBranchesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (view_ != other.view_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + VIEW_FIELD_NUMBER; + hash = (53 * hash) + view_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2alpha.ListBranchesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.ListBranchesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.ListBranchesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.ListBranchesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.ListBranchesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.ListBranchesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.ListBranchesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.ListBranchesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.ListBranchesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.ListBranchesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.ListBranchesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.ListBranchesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.retail.v2alpha.ListBranchesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request for
+   * [BranchService.ListBranches][google.cloud.retail.v2alpha.BranchService.ListBranches]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.ListBranchesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2alpha.ListBranchesRequest) + com.google.cloud.retail.v2alpha.ListBranchesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.BranchServiceProto + .internal_static_google_cloud_retail_v2alpha_ListBranchesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.BranchServiceProto + .internal_static_google_cloud_retail_v2alpha_ListBranchesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.ListBranchesRequest.class, + com.google.cloud.retail.v2alpha.ListBranchesRequest.Builder.class); + } + + // Construct using com.google.cloud.retail.v2alpha.ListBranchesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + view_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2alpha.BranchServiceProto + .internal_static_google_cloud_retail_v2alpha_ListBranchesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.ListBranchesRequest getDefaultInstanceForType() { + return com.google.cloud.retail.v2alpha.ListBranchesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.ListBranchesRequest build() { + com.google.cloud.retail.v2alpha.ListBranchesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.ListBranchesRequest buildPartial() { + com.google.cloud.retail.v2alpha.ListBranchesRequest result = + new com.google.cloud.retail.v2alpha.ListBranchesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.retail.v2alpha.ListBranchesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.view_ = view_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.retail.v2alpha.ListBranchesRequest) { + return mergeFrom((com.google.cloud.retail.v2alpha.ListBranchesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.retail.v2alpha.ListBranchesRequest other) { + if (other == com.google.cloud.retail.v2alpha.ListBranchesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.view_ != 0) { + setViewValue(other.getViewValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + view_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The parent catalog resource name.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The parent catalog resource name.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The parent catalog resource name.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent catalog resource name.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent catalog resource name.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int view_ = 0; + /** + * + * + *
+     * The view to apply to the returned
+     * [Branch][google.cloud.retail.v2alpha.Branch]. Defaults to
+     * [Branch.BranchView.BASIC] if unspecified.
+     * See documentation of fields of [Branch][google.cloud.retail.v2alpha.Branch]
+     * to find what fields are excluded from BASIC view.
+     * 
+ * + * .google.cloud.retail.v2alpha.BranchView view = 2; + * + * @return The enum numeric value on the wire for view. + */ + @java.lang.Override + public int getViewValue() { + return view_; + } + /** + * + * + *
+     * The view to apply to the returned
+     * [Branch][google.cloud.retail.v2alpha.Branch]. Defaults to
+     * [Branch.BranchView.BASIC] if unspecified.
+     * See documentation of fields of [Branch][google.cloud.retail.v2alpha.Branch]
+     * to find what fields are excluded from BASIC view.
+     * 
+ * + * .google.cloud.retail.v2alpha.BranchView view = 2; + * + * @param value The enum numeric value on the wire for view to set. + * @return This builder for chaining. + */ + public Builder setViewValue(int value) { + view_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The view to apply to the returned
+     * [Branch][google.cloud.retail.v2alpha.Branch]. Defaults to
+     * [Branch.BranchView.BASIC] if unspecified.
+     * See documentation of fields of [Branch][google.cloud.retail.v2alpha.Branch]
+     * to find what fields are excluded from BASIC view.
+     * 
+ * + * .google.cloud.retail.v2alpha.BranchView view = 2; + * + * @return The view. + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.BranchView getView() { + com.google.cloud.retail.v2alpha.BranchView result = + com.google.cloud.retail.v2alpha.BranchView.forNumber(view_); + return result == null ? com.google.cloud.retail.v2alpha.BranchView.UNRECOGNIZED : result; + } + /** + * + * + *
+     * The view to apply to the returned
+     * [Branch][google.cloud.retail.v2alpha.Branch]. Defaults to
+     * [Branch.BranchView.BASIC] if unspecified.
+     * See documentation of fields of [Branch][google.cloud.retail.v2alpha.Branch]
+     * to find what fields are excluded from BASIC view.
+     * 
+ * + * .google.cloud.retail.v2alpha.BranchView view = 2; + * + * @param value The view to set. + * @return This builder for chaining. + */ + public Builder setView(com.google.cloud.retail.v2alpha.BranchView value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + view_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The view to apply to the returned
+     * [Branch][google.cloud.retail.v2alpha.Branch]. Defaults to
+     * [Branch.BranchView.BASIC] if unspecified.
+     * See documentation of fields of [Branch][google.cloud.retail.v2alpha.Branch]
+     * to find what fields are excluded from BASIC view.
+     * 
+ * + * .google.cloud.retail.v2alpha.BranchView view = 2; + * + * @return This builder for chaining. + */ + public Builder clearView() { + bitField0_ = (bitField0_ & ~0x00000002); + view_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2alpha.ListBranchesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2alpha.ListBranchesRequest) + private static final com.google.cloud.retail.v2alpha.ListBranchesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.retail.v2alpha.ListBranchesRequest(); + } + + public static com.google.cloud.retail.v2alpha.ListBranchesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBranchesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.ListBranchesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ListBranchesRequestOrBuilder.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ListBranchesRequestOrBuilder.java new file mode 100644 index 000000000000..d8a74ee19755 --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ListBranchesRequestOrBuilder.java @@ -0,0 +1,88 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/retail/v2alpha/branch_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.retail.v2alpha; + +public interface ListBranchesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2alpha.ListBranchesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent catalog resource name.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The parent catalog resource name.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The view to apply to the returned
+   * [Branch][google.cloud.retail.v2alpha.Branch]. Defaults to
+   * [Branch.BranchView.BASIC] if unspecified.
+   * See documentation of fields of [Branch][google.cloud.retail.v2alpha.Branch]
+   * to find what fields are excluded from BASIC view.
+   * 
+ * + * .google.cloud.retail.v2alpha.BranchView view = 2; + * + * @return The enum numeric value on the wire for view. + */ + int getViewValue(); + /** + * + * + *
+   * The view to apply to the returned
+   * [Branch][google.cloud.retail.v2alpha.Branch]. Defaults to
+   * [Branch.BranchView.BASIC] if unspecified.
+   * See documentation of fields of [Branch][google.cloud.retail.v2alpha.Branch]
+   * to find what fields are excluded from BASIC view.
+   * 
+ * + * .google.cloud.retail.v2alpha.BranchView view = 2; + * + * @return The view. + */ + com.google.cloud.retail.v2alpha.BranchView getView(); +} diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ListBranchesResponse.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ListBranchesResponse.java new file mode 100644 index 000000000000..40d24cf8b563 --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ListBranchesResponse.java @@ -0,0 +1,939 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/retail/v2alpha/branch_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.retail.v2alpha; + +/** + * + * + *
+ * Response for
+ * [BranchService.ListBranches][google.cloud.retail.v2alpha.BranchService.ListBranches]
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.ListBranchesResponse} + */ +public final class ListBranchesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2alpha.ListBranchesResponse) + ListBranchesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListBranchesResponse.newBuilder() to construct. + private ListBranchesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListBranchesResponse() { + branches_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListBranchesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.BranchServiceProto + .internal_static_google_cloud_retail_v2alpha_ListBranchesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.BranchServiceProto + .internal_static_google_cloud_retail_v2alpha_ListBranchesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.ListBranchesResponse.class, + com.google.cloud.retail.v2alpha.ListBranchesResponse.Builder.class); + } + + public static final int BRANCHES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List branches_; + /** + * + * + *
+   * The Branches.
+   * 
+ * + * repeated .google.cloud.retail.v2alpha.Branch branches = 1; + */ + @java.lang.Override + public java.util.List getBranchesList() { + return branches_; + } + /** + * + * + *
+   * The Branches.
+   * 
+ * + * repeated .google.cloud.retail.v2alpha.Branch branches = 1; + */ + @java.lang.Override + public java.util.List + getBranchesOrBuilderList() { + return branches_; + } + /** + * + * + *
+   * The Branches.
+   * 
+ * + * repeated .google.cloud.retail.v2alpha.Branch branches = 1; + */ + @java.lang.Override + public int getBranchesCount() { + return branches_.size(); + } + /** + * + * + *
+   * The Branches.
+   * 
+ * + * repeated .google.cloud.retail.v2alpha.Branch branches = 1; + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.Branch getBranches(int index) { + return branches_.get(index); + } + /** + * + * + *
+   * The Branches.
+   * 
+ * + * repeated .google.cloud.retail.v2alpha.Branch branches = 1; + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.BranchOrBuilder getBranchesOrBuilder(int index) { + return branches_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < branches_.size(); i++) { + output.writeMessage(1, branches_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < branches_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, branches_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.retail.v2alpha.ListBranchesResponse)) { + return super.equals(obj); + } + com.google.cloud.retail.v2alpha.ListBranchesResponse other = + (com.google.cloud.retail.v2alpha.ListBranchesResponse) obj; + + if (!getBranchesList().equals(other.getBranchesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getBranchesCount() > 0) { + hash = (37 * hash) + BRANCHES_FIELD_NUMBER; + hash = (53 * hash) + getBranchesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2alpha.ListBranchesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.ListBranchesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.ListBranchesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.ListBranchesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.ListBranchesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.ListBranchesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.ListBranchesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.ListBranchesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.ListBranchesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.ListBranchesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.ListBranchesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.ListBranchesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.retail.v2alpha.ListBranchesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response for
+   * [BranchService.ListBranches][google.cloud.retail.v2alpha.BranchService.ListBranches]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.ListBranchesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2alpha.ListBranchesResponse) + com.google.cloud.retail.v2alpha.ListBranchesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.BranchServiceProto + .internal_static_google_cloud_retail_v2alpha_ListBranchesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.BranchServiceProto + .internal_static_google_cloud_retail_v2alpha_ListBranchesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.ListBranchesResponse.class, + com.google.cloud.retail.v2alpha.ListBranchesResponse.Builder.class); + } + + // Construct using com.google.cloud.retail.v2alpha.ListBranchesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (branchesBuilder_ == null) { + branches_ = java.util.Collections.emptyList(); + } else { + branches_ = null; + branchesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2alpha.BranchServiceProto + .internal_static_google_cloud_retail_v2alpha_ListBranchesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.ListBranchesResponse getDefaultInstanceForType() { + return com.google.cloud.retail.v2alpha.ListBranchesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.ListBranchesResponse build() { + com.google.cloud.retail.v2alpha.ListBranchesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.ListBranchesResponse buildPartial() { + com.google.cloud.retail.v2alpha.ListBranchesResponse result = + new com.google.cloud.retail.v2alpha.ListBranchesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.retail.v2alpha.ListBranchesResponse result) { + if (branchesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + branches_ = java.util.Collections.unmodifiableList(branches_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.branches_ = branches_; + } else { + result.branches_ = branchesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.retail.v2alpha.ListBranchesResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.retail.v2alpha.ListBranchesResponse) { + return mergeFrom((com.google.cloud.retail.v2alpha.ListBranchesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.retail.v2alpha.ListBranchesResponse other) { + if (other == com.google.cloud.retail.v2alpha.ListBranchesResponse.getDefaultInstance()) + return this; + if (branchesBuilder_ == null) { + if (!other.branches_.isEmpty()) { + if (branches_.isEmpty()) { + branches_ = other.branches_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBranchesIsMutable(); + branches_.addAll(other.branches_); + } + onChanged(); + } + } else { + if (!other.branches_.isEmpty()) { + if (branchesBuilder_.isEmpty()) { + branchesBuilder_.dispose(); + branchesBuilder_ = null; + branches_ = other.branches_; + bitField0_ = (bitField0_ & ~0x00000001); + branchesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBranchesFieldBuilder() + : null; + } else { + branchesBuilder_.addAllMessages(other.branches_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.retail.v2alpha.Branch m = + input.readMessage( + com.google.cloud.retail.v2alpha.Branch.parser(), extensionRegistry); + if (branchesBuilder_ == null) { + ensureBranchesIsMutable(); + branches_.add(m); + } else { + branchesBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List branches_ = + java.util.Collections.emptyList(); + + private void ensureBranchesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + branches_ = new java.util.ArrayList(branches_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2alpha.Branch, + com.google.cloud.retail.v2alpha.Branch.Builder, + com.google.cloud.retail.v2alpha.BranchOrBuilder> + branchesBuilder_; + + /** + * + * + *
+     * The Branches.
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.Branch branches = 1; + */ + public java.util.List getBranchesList() { + if (branchesBuilder_ == null) { + return java.util.Collections.unmodifiableList(branches_); + } else { + return branchesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The Branches.
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.Branch branches = 1; + */ + public int getBranchesCount() { + if (branchesBuilder_ == null) { + return branches_.size(); + } else { + return branchesBuilder_.getCount(); + } + } + /** + * + * + *
+     * The Branches.
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.Branch branches = 1; + */ + public com.google.cloud.retail.v2alpha.Branch getBranches(int index) { + if (branchesBuilder_ == null) { + return branches_.get(index); + } else { + return branchesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The Branches.
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.Branch branches = 1; + */ + public Builder setBranches(int index, com.google.cloud.retail.v2alpha.Branch value) { + if (branchesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBranchesIsMutable(); + branches_.set(index, value); + onChanged(); + } else { + branchesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The Branches.
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.Branch branches = 1; + */ + public Builder setBranches( + int index, com.google.cloud.retail.v2alpha.Branch.Builder builderForValue) { + if (branchesBuilder_ == null) { + ensureBranchesIsMutable(); + branches_.set(index, builderForValue.build()); + onChanged(); + } else { + branchesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Branches.
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.Branch branches = 1; + */ + public Builder addBranches(com.google.cloud.retail.v2alpha.Branch value) { + if (branchesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBranchesIsMutable(); + branches_.add(value); + onChanged(); + } else { + branchesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The Branches.
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.Branch branches = 1; + */ + public Builder addBranches(int index, com.google.cloud.retail.v2alpha.Branch value) { + if (branchesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBranchesIsMutable(); + branches_.add(index, value); + onChanged(); + } else { + branchesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The Branches.
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.Branch branches = 1; + */ + public Builder addBranches(com.google.cloud.retail.v2alpha.Branch.Builder builderForValue) { + if (branchesBuilder_ == null) { + ensureBranchesIsMutable(); + branches_.add(builderForValue.build()); + onChanged(); + } else { + branchesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Branches.
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.Branch branches = 1; + */ + public Builder addBranches( + int index, com.google.cloud.retail.v2alpha.Branch.Builder builderForValue) { + if (branchesBuilder_ == null) { + ensureBranchesIsMutable(); + branches_.add(index, builderForValue.build()); + onChanged(); + } else { + branchesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The Branches.
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.Branch branches = 1; + */ + public Builder addAllBranches( + java.lang.Iterable values) { + if (branchesBuilder_ == null) { + ensureBranchesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, branches_); + onChanged(); + } else { + branchesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The Branches.
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.Branch branches = 1; + */ + public Builder clearBranches() { + if (branchesBuilder_ == null) { + branches_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + branchesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The Branches.
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.Branch branches = 1; + */ + public Builder removeBranches(int index) { + if (branchesBuilder_ == null) { + ensureBranchesIsMutable(); + branches_.remove(index); + onChanged(); + } else { + branchesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The Branches.
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.Branch branches = 1; + */ + public com.google.cloud.retail.v2alpha.Branch.Builder getBranchesBuilder(int index) { + return getBranchesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The Branches.
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.Branch branches = 1; + */ + public com.google.cloud.retail.v2alpha.BranchOrBuilder getBranchesOrBuilder(int index) { + if (branchesBuilder_ == null) { + return branches_.get(index); + } else { + return branchesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The Branches.
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.Branch branches = 1; + */ + public java.util.List + getBranchesOrBuilderList() { + if (branchesBuilder_ != null) { + return branchesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(branches_); + } + } + /** + * + * + *
+     * The Branches.
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.Branch branches = 1; + */ + public com.google.cloud.retail.v2alpha.Branch.Builder addBranchesBuilder() { + return getBranchesFieldBuilder() + .addBuilder(com.google.cloud.retail.v2alpha.Branch.getDefaultInstance()); + } + /** + * + * + *
+     * The Branches.
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.Branch branches = 1; + */ + public com.google.cloud.retail.v2alpha.Branch.Builder addBranchesBuilder(int index) { + return getBranchesFieldBuilder() + .addBuilder(index, com.google.cloud.retail.v2alpha.Branch.getDefaultInstance()); + } + /** + * + * + *
+     * The Branches.
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.Branch branches = 1; + */ + public java.util.List getBranchesBuilderList() { + return getBranchesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2alpha.Branch, + com.google.cloud.retail.v2alpha.Branch.Builder, + com.google.cloud.retail.v2alpha.BranchOrBuilder> + getBranchesFieldBuilder() { + if (branchesBuilder_ == null) { + branchesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2alpha.Branch, + com.google.cloud.retail.v2alpha.Branch.Builder, + com.google.cloud.retail.v2alpha.BranchOrBuilder>( + branches_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + branches_ = null; + } + return branchesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2alpha.ListBranchesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2alpha.ListBranchesResponse) + private static final com.google.cloud.retail.v2alpha.ListBranchesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.retail.v2alpha.ListBranchesResponse(); + } + + public static com.google.cloud.retail.v2alpha.ListBranchesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBranchesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.ListBranchesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ListBranchesResponseOrBuilder.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ListBranchesResponseOrBuilder.java new file mode 100644 index 000000000000..91cf00b03da7 --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ListBranchesResponseOrBuilder.java @@ -0,0 +1,78 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/retail/v2alpha/branch_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.retail.v2alpha; + +public interface ListBranchesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2alpha.ListBranchesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The Branches.
+   * 
+ * + * repeated .google.cloud.retail.v2alpha.Branch branches = 1; + */ + java.util.List getBranchesList(); + /** + * + * + *
+   * The Branches.
+   * 
+ * + * repeated .google.cloud.retail.v2alpha.Branch branches = 1; + */ + com.google.cloud.retail.v2alpha.Branch getBranches(int index); + /** + * + * + *
+   * The Branches.
+   * 
+ * + * repeated .google.cloud.retail.v2alpha.Branch branches = 1; + */ + int getBranchesCount(); + /** + * + * + *
+   * The Branches.
+   * 
+ * + * repeated .google.cloud.retail.v2alpha.Branch branches = 1; + */ + java.util.List + getBranchesOrBuilderList(); + /** + * + * + *
+   * The Branches.
+   * 
+ * + * repeated .google.cloud.retail.v2alpha.Branch branches = 1; + */ + com.google.cloud.retail.v2alpha.BranchOrBuilder getBranchesOrBuilder(int index); +} diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ListEnrolledSolutionsRequest.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ListEnrolledSolutionsRequest.java new file mode 100644 index 000000000000..98a6f513dbea --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ListEnrolledSolutionsRequest.java @@ -0,0 +1,651 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/retail/v2alpha/project_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.retail.v2alpha; + +/** + * + * + *
+ * Request for ListEnrolledSolutions method.
+ * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest} + */ +public final class ListEnrolledSolutionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest) + ListEnrolledSolutionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListEnrolledSolutionsRequest.newBuilder() to construct. + private ListEnrolledSolutionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListEnrolledSolutionsRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListEnrolledSolutionsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_ListEnrolledSolutionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_ListEnrolledSolutionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest.class, + com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Full resource name of parent. Format:
+   * `projects/{project_number_or_id}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Full resource name of parent. Format:
+   * `projects/{project_number_or_id}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest)) { + return super.equals(obj); + } + com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest other = + (com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request for ListEnrolledSolutions method.
+   * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest) + com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_ListEnrolledSolutionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_ListEnrolledSolutionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest.class, + com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest.Builder.class); + } + + // Construct using com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_ListEnrolledSolutionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest + getDefaultInstanceForType() { + return com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest build() { + com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest buildPartial() { + com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest result = + new com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest) { + return mergeFrom((com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest other) { + if (other + == com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Full resource name of parent. Format:
+     * `projects/{project_number_or_id}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Full resource name of parent. Format:
+     * `projects/{project_number_or_id}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Full resource name of parent. Format:
+     * `projects/{project_number_or_id}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Full resource name of parent. Format:
+     * `projects/{project_number_or_id}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Full resource name of parent. Format:
+     * `projects/{project_number_or_id}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest) + private static final com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest(); + } + + public static com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListEnrolledSolutionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ListEnrolledSolutionsRequestOrBuilder.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ListEnrolledSolutionsRequestOrBuilder.java new file mode 100644 index 000000000000..388141f1df26 --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ListEnrolledSolutionsRequestOrBuilder.java @@ -0,0 +1,57 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/retail/v2alpha/project_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.retail.v2alpha; + +public interface ListEnrolledSolutionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Full resource name of parent. Format:
+   * `projects/{project_number_or_id}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Full resource name of parent. Format:
+   * `projects/{project_number_or_id}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); +} diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ListEnrolledSolutionsResponse.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ListEnrolledSolutionsResponse.java new file mode 100644 index 000000000000..bb7f56bf023c --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ListEnrolledSolutionsResponse.java @@ -0,0 +1,839 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/retail/v2alpha/project_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.retail.v2alpha; + +/** + * + * + *
+ * Response for ListEnrolledSolutions method.
+ * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse} + */ +public final class ListEnrolledSolutionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse) + ListEnrolledSolutionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListEnrolledSolutionsResponse.newBuilder() to construct. + private ListEnrolledSolutionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListEnrolledSolutionsResponse() { + enrolledSolutions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListEnrolledSolutionsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_ListEnrolledSolutionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_ListEnrolledSolutionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse.class, + com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse.Builder.class); + } + + public static final int ENROLLED_SOLUTIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List enrolledSolutions_; + + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.retail.v2alpha.SolutionType> + enrolledSolutions_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.retail.v2alpha.SolutionType>() { + public com.google.cloud.retail.v2alpha.SolutionType convert(java.lang.Integer from) { + com.google.cloud.retail.v2alpha.SolutionType result = + com.google.cloud.retail.v2alpha.SolutionType.forNumber(from); + return result == null + ? com.google.cloud.retail.v2alpha.SolutionType.UNRECOGNIZED + : result; + } + }; + /** + * + * + *
+   * Retail API solutions that the project has enrolled.
+   * 
+ * + * repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 1; + * + * @return A list containing the enrolledSolutions. + */ + @java.lang.Override + public java.util.List getEnrolledSolutionsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.retail.v2alpha.SolutionType>( + enrolledSolutions_, enrolledSolutions_converter_); + } + /** + * + * + *
+   * Retail API solutions that the project has enrolled.
+   * 
+ * + * repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 1; + * + * @return The count of enrolledSolutions. + */ + @java.lang.Override + public int getEnrolledSolutionsCount() { + return enrolledSolutions_.size(); + } + /** + * + * + *
+   * Retail API solutions that the project has enrolled.
+   * 
+ * + * repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 1; + * + * @param index The index of the element to return. + * @return The enrolledSolutions at the given index. + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.SolutionType getEnrolledSolutions(int index) { + return enrolledSolutions_converter_.convert(enrolledSolutions_.get(index)); + } + /** + * + * + *
+   * Retail API solutions that the project has enrolled.
+   * 
+ * + * repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 1; + * + * @return A list containing the enum numeric values on the wire for enrolledSolutions. + */ + @java.lang.Override + public java.util.List getEnrolledSolutionsValueList() { + return enrolledSolutions_; + } + /** + * + * + *
+   * Retail API solutions that the project has enrolled.
+   * 
+ * + * repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 1; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of enrolledSolutions at the given index. + */ + @java.lang.Override + public int getEnrolledSolutionsValue(int index) { + return enrolledSolutions_.get(index); + } + + private int enrolledSolutionsMemoizedSerializedSize; + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (getEnrolledSolutionsList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(enrolledSolutionsMemoizedSerializedSize); + } + for (int i = 0; i < enrolledSolutions_.size(); i++) { + output.writeEnumNoTag(enrolledSolutions_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < enrolledSolutions_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(enrolledSolutions_.get(i)); + } + size += dataSize; + if (!getEnrolledSolutionsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + enrolledSolutionsMemoizedSerializedSize = dataSize; + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse)) { + return super.equals(obj); + } + com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse other = + (com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse) obj; + + if (!enrolledSolutions_.equals(other.enrolledSolutions_)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getEnrolledSolutionsCount() > 0) { + hash = (37 * hash) + ENROLLED_SOLUTIONS_FIELD_NUMBER; + hash = (53 * hash) + enrolledSolutions_.hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response for ListEnrolledSolutions method.
+   * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse) + com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_ListEnrolledSolutionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_ListEnrolledSolutionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse.class, + com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse.Builder.class); + } + + // Construct using com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enrolledSolutions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_ListEnrolledSolutionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse + getDefaultInstanceForType() { + return com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse build() { + com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse buildPartial() { + com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse result = + new com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse result) { + if (((bitField0_ & 0x00000001) != 0)) { + enrolledSolutions_ = java.util.Collections.unmodifiableList(enrolledSolutions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.enrolledSolutions_ = enrolledSolutions_; + } + + private void buildPartial0( + com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse) { + return mergeFrom((com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse other) { + if (other + == com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse.getDefaultInstance()) + return this; + if (!other.enrolledSolutions_.isEmpty()) { + if (enrolledSolutions_.isEmpty()) { + enrolledSolutions_ = other.enrolledSolutions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEnrolledSolutionsIsMutable(); + enrolledSolutions_.addAll(other.enrolledSolutions_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int tmpRaw = input.readEnum(); + ensureEnrolledSolutionsIsMutable(); + enrolledSolutions_.add(tmpRaw); + break; + } // case 8 + case 10: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureEnrolledSolutionsIsMutable(); + enrolledSolutions_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List enrolledSolutions_ = + java.util.Collections.emptyList(); + + private void ensureEnrolledSolutionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + enrolledSolutions_ = new java.util.ArrayList(enrolledSolutions_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * Retail API solutions that the project has enrolled.
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 1; + * + * @return A list containing the enrolledSolutions. + */ + public java.util.List getEnrolledSolutionsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.retail.v2alpha.SolutionType>( + enrolledSolutions_, enrolledSolutions_converter_); + } + /** + * + * + *
+     * Retail API solutions that the project has enrolled.
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 1; + * + * @return The count of enrolledSolutions. + */ + public int getEnrolledSolutionsCount() { + return enrolledSolutions_.size(); + } + /** + * + * + *
+     * Retail API solutions that the project has enrolled.
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 1; + * + * @param index The index of the element to return. + * @return The enrolledSolutions at the given index. + */ + public com.google.cloud.retail.v2alpha.SolutionType getEnrolledSolutions(int index) { + return enrolledSolutions_converter_.convert(enrolledSolutions_.get(index)); + } + /** + * + * + *
+     * Retail API solutions that the project has enrolled.
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 1; + * + * @param index The index to set the value at. + * @param value The enrolledSolutions to set. + * @return This builder for chaining. + */ + public Builder setEnrolledSolutions( + int index, com.google.cloud.retail.v2alpha.SolutionType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnrolledSolutionsIsMutable(); + enrolledSolutions_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Retail API solutions that the project has enrolled.
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 1; + * + * @param value The enrolledSolutions to add. + * @return This builder for chaining. + */ + public Builder addEnrolledSolutions(com.google.cloud.retail.v2alpha.SolutionType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnrolledSolutionsIsMutable(); + enrolledSolutions_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Retail API solutions that the project has enrolled.
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 1; + * + * @param values The enrolledSolutions to add. + * @return This builder for chaining. + */ + public Builder addAllEnrolledSolutions( + java.lang.Iterable values) { + ensureEnrolledSolutionsIsMutable(); + for (com.google.cloud.retail.v2alpha.SolutionType value : values) { + enrolledSolutions_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * + * + *
+     * Retail API solutions that the project has enrolled.
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnrolledSolutions() { + enrolledSolutions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Retail API solutions that the project has enrolled.
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 1; + * + * @return A list containing the enum numeric values on the wire for enrolledSolutions. + */ + public java.util.List getEnrolledSolutionsValueList() { + return java.util.Collections.unmodifiableList(enrolledSolutions_); + } + /** + * + * + *
+     * Retail API solutions that the project has enrolled.
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 1; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of enrolledSolutions at the given index. + */ + public int getEnrolledSolutionsValue(int index) { + return enrolledSolutions_.get(index); + } + /** + * + * + *
+     * Retail API solutions that the project has enrolled.
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 1; + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for enrolledSolutions to set. + * @return This builder for chaining. + */ + public Builder setEnrolledSolutionsValue(int index, int value) { + ensureEnrolledSolutionsIsMutable(); + enrolledSolutions_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Retail API solutions that the project has enrolled.
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 1; + * + * @param value The enum numeric value on the wire for enrolledSolutions to add. + * @return This builder for chaining. + */ + public Builder addEnrolledSolutionsValue(int value) { + ensureEnrolledSolutionsIsMutable(); + enrolledSolutions_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Retail API solutions that the project has enrolled.
+     * 
+ * + * repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 1; + * + * @param values The enum numeric values on the wire for enrolledSolutions to add. + * @return This builder for chaining. + */ + public Builder addAllEnrolledSolutionsValue(java.lang.Iterable values) { + ensureEnrolledSolutionsIsMutable(); + for (int value : values) { + enrolledSolutions_.add(value); + } + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse) + private static final com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse(); + } + + public static com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListEnrolledSolutionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ListEnrolledSolutionsResponseOrBuilder.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ListEnrolledSolutionsResponseOrBuilder.java new file mode 100644 index 000000000000..5700163a013c --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ListEnrolledSolutionsResponseOrBuilder.java @@ -0,0 +1,89 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/retail/v2alpha/project_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.retail.v2alpha; + +public interface ListEnrolledSolutionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Retail API solutions that the project has enrolled.
+   * 
+ * + * repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 1; + * + * @return A list containing the enrolledSolutions. + */ + java.util.List getEnrolledSolutionsList(); + /** + * + * + *
+   * Retail API solutions that the project has enrolled.
+   * 
+ * + * repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 1; + * + * @return The count of enrolledSolutions. + */ + int getEnrolledSolutionsCount(); + /** + * + * + *
+   * Retail API solutions that the project has enrolled.
+   * 
+ * + * repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 1; + * + * @param index The index of the element to return. + * @return The enrolledSolutions at the given index. + */ + com.google.cloud.retail.v2alpha.SolutionType getEnrolledSolutions(int index); + /** + * + * + *
+   * Retail API solutions that the project has enrolled.
+   * 
+ * + * repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 1; + * + * @return A list containing the enum numeric values on the wire for enrolledSolutions. + */ + java.util.List getEnrolledSolutionsValueList(); + /** + * + * + *
+   * Retail API solutions that the project has enrolled.
+   * 
+ * + * repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 1; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of enrolledSolutions at the given index. + */ + int getEnrolledSolutionsValue(int index); +} diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ListMerchantCenterAccountLinksRequest.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ListMerchantCenterAccountLinksRequest.java index 43dad5c0144a..0a6bbee0e201 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ListMerchantCenterAccountLinksRequest.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ListMerchantCenterAccountLinksRequest.java @@ -77,7 +77,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * Required. The parent Catalog of the resource.
    * It must match this format:
-   * projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}
+   * `projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}`
    * 
* * @@ -104,7 +104,7 @@ public java.lang.String getParent() { *
    * Required. The parent Catalog of the resource.
    * It must match this format:
-   * projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}
+   * `projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}`
    * 
* * @@ -486,7 +486,7 @@ public Builder mergeFrom( *
      * Required. The parent Catalog of the resource.
      * It must match this format:
-     * projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}
+     * `projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}`
      * 
* * @@ -512,7 +512,7 @@ public java.lang.String getParent() { *
      * Required. The parent Catalog of the resource.
      * It must match this format:
-     * projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}
+     * `projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}`
      * 
* * @@ -538,7 +538,7 @@ public com.google.protobuf.ByteString getParentBytes() { *
      * Required. The parent Catalog of the resource.
      * It must match this format:
-     * projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}
+     * `projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}`
      * 
* * @@ -563,7 +563,7 @@ public Builder setParent(java.lang.String value) { *
      * Required. The parent Catalog of the resource.
      * It must match this format:
-     * projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}
+     * `projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}`
      * 
* * @@ -584,7 +584,7 @@ public Builder clearParent() { *
      * Required. The parent Catalog of the resource.
      * It must match this format:
-     * projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}
+     * `projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}`
      * 
* * diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ListMerchantCenterAccountLinksRequestOrBuilder.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ListMerchantCenterAccountLinksRequestOrBuilder.java index d11b7e12272f..92a989f16ca6 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ListMerchantCenterAccountLinksRequestOrBuilder.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ListMerchantCenterAccountLinksRequestOrBuilder.java @@ -30,7 +30,7 @@ public interface ListMerchantCenterAccountLinksRequestOrBuilder *
    * Required. The parent Catalog of the resource.
    * It must match this format:
-   * projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}
+   * `projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}`
    * 
* * @@ -46,7 +46,7 @@ public interface ListMerchantCenterAccountLinksRequestOrBuilder *
    * Required. The parent Catalog of the resource.
    * It must match this format:
-   * projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}
+   * `projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}`
    * 
* * diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/LoggingConfig.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/LoggingConfig.java new file mode 100644 index 000000000000..3a529ceb826f --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/LoggingConfig.java @@ -0,0 +1,3897 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/retail/v2alpha/project.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.retail.v2alpha; + +/** + * + * + *
+ * Project level logging config to control what level of log will be generated
+ * and written to Cloud Logging.
+ * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.LoggingConfig} + */ +public final class LoggingConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2alpha.LoggingConfig) + LoggingConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use LoggingConfig.newBuilder() to construct. + private LoggingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LoggingConfig() { + name_ = ""; + serviceLogGenerationRules_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LoggingConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.ProjectProto + .internal_static_google_cloud_retail_v2alpha_LoggingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.ProjectProto + .internal_static_google_cloud_retail_v2alpha_LoggingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.LoggingConfig.class, + com.google.cloud.retail.v2alpha.LoggingConfig.Builder.class); + } + + /** + * + * + *
+   * The setting to control log generation.
+   * 
+ * + * Protobuf enum {@code google.cloud.retail.v2alpha.LoggingConfig.LoggingLevel} + */ + public enum LoggingLevel implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value. Defaults to `LOG_FOR_WARNINGS_AND_ABOVE` if unset.
+     * 
+ * + * LOGGING_LEVEL_UNSPECIFIED = 0; + */ + LOGGING_LEVEL_UNSPECIFIED(0), + /** + * + * + *
+     * No log will be generated and sent to Cloud Logging.
+     * 
+ * + * LOGGING_DISABLED = 1; + */ + LOGGING_DISABLED(1), + /** + * + * + *
+     * Log for operations resulted in fatal error.
+     * 
+ * + * LOG_ERRORS_AND_ABOVE = 2; + */ + LOG_ERRORS_AND_ABOVE(2), + /** + * + * + *
+     * In addition to `LOG_ERRORS_AND_ABOVE`, also log for operations that have
+     * soft errors, quality suggestions.
+     * 
+ * + * LOG_WARNINGS_AND_ABOVE = 3; + */ + LOG_WARNINGS_AND_ABOVE(3), + /** + * + * + *
+     * Log all operations, including successful ones.
+     * 
+ * + * LOG_ALL = 4; + */ + LOG_ALL(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value. Defaults to `LOG_FOR_WARNINGS_AND_ABOVE` if unset.
+     * 
+ * + * LOGGING_LEVEL_UNSPECIFIED = 0; + */ + public static final int LOGGING_LEVEL_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * No log will be generated and sent to Cloud Logging.
+     * 
+ * + * LOGGING_DISABLED = 1; + */ + public static final int LOGGING_DISABLED_VALUE = 1; + /** + * + * + *
+     * Log for operations resulted in fatal error.
+     * 
+ * + * LOG_ERRORS_AND_ABOVE = 2; + */ + public static final int LOG_ERRORS_AND_ABOVE_VALUE = 2; + /** + * + * + *
+     * In addition to `LOG_ERRORS_AND_ABOVE`, also log for operations that have
+     * soft errors, quality suggestions.
+     * 
+ * + * LOG_WARNINGS_AND_ABOVE = 3; + */ + public static final int LOG_WARNINGS_AND_ABOVE_VALUE = 3; + /** + * + * + *
+     * Log all operations, including successful ones.
+     * 
+ * + * LOG_ALL = 4; + */ + public static final int LOG_ALL_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static LoggingLevel valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static LoggingLevel forNumber(int value) { + switch (value) { + case 0: + return LOGGING_LEVEL_UNSPECIFIED; + case 1: + return LOGGING_DISABLED; + case 2: + return LOG_ERRORS_AND_ABOVE; + case 3: + return LOG_WARNINGS_AND_ABOVE; + case 4: + return LOG_ALL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public LoggingLevel findValueByNumber(int number) { + return LoggingLevel.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.LoggingConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final LoggingLevel[] VALUES = values(); + + public static LoggingLevel valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private LoggingLevel(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.retail.v2alpha.LoggingConfig.LoggingLevel) + } + + public interface LogGenerationRuleOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The logging level.
+     *
+     * By default it is set to `LOG_WARNINGS_AND_ABOVE`.
+     * 
+ * + * .google.cloud.retail.v2alpha.LoggingConfig.LoggingLevel logging_level = 1; + * + * @return The enum numeric value on the wire for loggingLevel. + */ + int getLoggingLevelValue(); + /** + * + * + *
+     * The logging level.
+     *
+     * By default it is set to `LOG_WARNINGS_AND_ABOVE`.
+     * 
+ * + * .google.cloud.retail.v2alpha.LoggingConfig.LoggingLevel logging_level = 1; + * + * @return The loggingLevel. + */ + com.google.cloud.retail.v2alpha.LoggingConfig.LoggingLevel getLoggingLevel(); + + /** + * + * + *
+     * The log sample rate for INFO level log entries. You can use this to
+     * reduce the number of entries generated for INFO level logs.
+     *
+     * DO NOT set this field if the
+     * [logging_level][google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule.logging_level]
+     * is not
+     * [LoggingLevel.LOG_ALL][google.cloud.retail.v2alpha.LoggingConfig.LoggingLevel.LOG_ALL].
+     * Otherwise, an INVALID_ARGUMENT error is returned.
+     *
+     * Sample rate for INFO logs defaults to 1 when unset (generate and send all
+     * INFO logs to Cloud Logging). Its value must be greater than 0 and less
+     * than or equal to 1.
+     * 
+ * + * optional float info_log_sample_rate = 2; + * + * @return Whether the infoLogSampleRate field is set. + */ + boolean hasInfoLogSampleRate(); + /** + * + * + *
+     * The log sample rate for INFO level log entries. You can use this to
+     * reduce the number of entries generated for INFO level logs.
+     *
+     * DO NOT set this field if the
+     * [logging_level][google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule.logging_level]
+     * is not
+     * [LoggingLevel.LOG_ALL][google.cloud.retail.v2alpha.LoggingConfig.LoggingLevel.LOG_ALL].
+     * Otherwise, an INVALID_ARGUMENT error is returned.
+     *
+     * Sample rate for INFO logs defaults to 1 when unset (generate and send all
+     * INFO logs to Cloud Logging). Its value must be greater than 0 and less
+     * than or equal to 1.
+     * 
+ * + * optional float info_log_sample_rate = 2; + * + * @return The infoLogSampleRate. + */ + float getInfoLogSampleRate(); + } + /** + * + * + *
+   * The logging configurations for services supporting log generation.
+   * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule} + */ + public static final class LogGenerationRule extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule) + LogGenerationRuleOrBuilder { + private static final long serialVersionUID = 0L; + // Use LogGenerationRule.newBuilder() to construct. + private LogGenerationRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LogGenerationRule() { + loggingLevel_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LogGenerationRule(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.ProjectProto + .internal_static_google_cloud_retail_v2alpha_LoggingConfig_LogGenerationRule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.ProjectProto + .internal_static_google_cloud_retail_v2alpha_LoggingConfig_LogGenerationRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule.class, + com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule.Builder.class); + } + + private int bitField0_; + public static final int LOGGING_LEVEL_FIELD_NUMBER = 1; + private int loggingLevel_ = 0; + /** + * + * + *
+     * The logging level.
+     *
+     * By default it is set to `LOG_WARNINGS_AND_ABOVE`.
+     * 
+ * + * .google.cloud.retail.v2alpha.LoggingConfig.LoggingLevel logging_level = 1; + * + * @return The enum numeric value on the wire for loggingLevel. + */ + @java.lang.Override + public int getLoggingLevelValue() { + return loggingLevel_; + } + /** + * + * + *
+     * The logging level.
+     *
+     * By default it is set to `LOG_WARNINGS_AND_ABOVE`.
+     * 
+ * + * .google.cloud.retail.v2alpha.LoggingConfig.LoggingLevel logging_level = 1; + * + * @return The loggingLevel. + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.LoggingConfig.LoggingLevel getLoggingLevel() { + com.google.cloud.retail.v2alpha.LoggingConfig.LoggingLevel result = + com.google.cloud.retail.v2alpha.LoggingConfig.LoggingLevel.forNumber(loggingLevel_); + return result == null + ? com.google.cloud.retail.v2alpha.LoggingConfig.LoggingLevel.UNRECOGNIZED + : result; + } + + public static final int INFO_LOG_SAMPLE_RATE_FIELD_NUMBER = 2; + private float infoLogSampleRate_ = 0F; + /** + * + * + *
+     * The log sample rate for INFO level log entries. You can use this to
+     * reduce the number of entries generated for INFO level logs.
+     *
+     * DO NOT set this field if the
+     * [logging_level][google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule.logging_level]
+     * is not
+     * [LoggingLevel.LOG_ALL][google.cloud.retail.v2alpha.LoggingConfig.LoggingLevel.LOG_ALL].
+     * Otherwise, an INVALID_ARGUMENT error is returned.
+     *
+     * Sample rate for INFO logs defaults to 1 when unset (generate and send all
+     * INFO logs to Cloud Logging). Its value must be greater than 0 and less
+     * than or equal to 1.
+     * 
+ * + * optional float info_log_sample_rate = 2; + * + * @return Whether the infoLogSampleRate field is set. + */ + @java.lang.Override + public boolean hasInfoLogSampleRate() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The log sample rate for INFO level log entries. You can use this to
+     * reduce the number of entries generated for INFO level logs.
+     *
+     * DO NOT set this field if the
+     * [logging_level][google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule.logging_level]
+     * is not
+     * [LoggingLevel.LOG_ALL][google.cloud.retail.v2alpha.LoggingConfig.LoggingLevel.LOG_ALL].
+     * Otherwise, an INVALID_ARGUMENT error is returned.
+     *
+     * Sample rate for INFO logs defaults to 1 when unset (generate and send all
+     * INFO logs to Cloud Logging). Its value must be greater than 0 and less
+     * than or equal to 1.
+     * 
+ * + * optional float info_log_sample_rate = 2; + * + * @return The infoLogSampleRate. + */ + @java.lang.Override + public float getInfoLogSampleRate() { + return infoLogSampleRate_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (loggingLevel_ + != com.google.cloud.retail.v2alpha.LoggingConfig.LoggingLevel.LOGGING_LEVEL_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, loggingLevel_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeFloat(2, infoLogSampleRate_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (loggingLevel_ + != com.google.cloud.retail.v2alpha.LoggingConfig.LoggingLevel.LOGGING_LEVEL_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, loggingLevel_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, infoLogSampleRate_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule)) { + return super.equals(obj); + } + com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule other = + (com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule) obj; + + if (loggingLevel_ != other.loggingLevel_) return false; + if (hasInfoLogSampleRate() != other.hasInfoLogSampleRate()) return false; + if (hasInfoLogSampleRate()) { + if (java.lang.Float.floatToIntBits(getInfoLogSampleRate()) + != java.lang.Float.floatToIntBits(other.getInfoLogSampleRate())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LOGGING_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + loggingLevel_; + if (hasInfoLogSampleRate()) { + hash = (37 * hash) + INFO_LOG_SAMPLE_RATE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getInfoLogSampleRate()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * The logging configurations for services supporting log generation.
+     * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule) + com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRuleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.ProjectProto + .internal_static_google_cloud_retail_v2alpha_LoggingConfig_LogGenerationRule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.ProjectProto + .internal_static_google_cloud_retail_v2alpha_LoggingConfig_LogGenerationRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule.class, + com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule.Builder.class); + } + + // Construct using + // com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + loggingLevel_ = 0; + infoLogSampleRate_ = 0F; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2alpha.ProjectProto + .internal_static_google_cloud_retail_v2alpha_LoggingConfig_LogGenerationRule_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule + getDefaultInstanceForType() { + return com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule build() { + com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule buildPartial() { + com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule result = + new com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.loggingLevel_ = loggingLevel_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.infoLogSampleRate_ = infoLogSampleRate_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule) { + return mergeFrom((com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule other) { + if (other + == com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule.getDefaultInstance()) + return this; + if (other.loggingLevel_ != 0) { + setLoggingLevelValue(other.getLoggingLevelValue()); + } + if (other.hasInfoLogSampleRate()) { + setInfoLogSampleRate(other.getInfoLogSampleRate()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + loggingLevel_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 21: + { + infoLogSampleRate_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int loggingLevel_ = 0; + /** + * + * + *
+       * The logging level.
+       *
+       * By default it is set to `LOG_WARNINGS_AND_ABOVE`.
+       * 
+ * + * .google.cloud.retail.v2alpha.LoggingConfig.LoggingLevel logging_level = 1; + * + * @return The enum numeric value on the wire for loggingLevel. + */ + @java.lang.Override + public int getLoggingLevelValue() { + return loggingLevel_; + } + /** + * + * + *
+       * The logging level.
+       *
+       * By default it is set to `LOG_WARNINGS_AND_ABOVE`.
+       * 
+ * + * .google.cloud.retail.v2alpha.LoggingConfig.LoggingLevel logging_level = 1; + * + * @param value The enum numeric value on the wire for loggingLevel to set. + * @return This builder for chaining. + */ + public Builder setLoggingLevelValue(int value) { + loggingLevel_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * The logging level.
+       *
+       * By default it is set to `LOG_WARNINGS_AND_ABOVE`.
+       * 
+ * + * .google.cloud.retail.v2alpha.LoggingConfig.LoggingLevel logging_level = 1; + * + * @return The loggingLevel. + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.LoggingConfig.LoggingLevel getLoggingLevel() { + com.google.cloud.retail.v2alpha.LoggingConfig.LoggingLevel result = + com.google.cloud.retail.v2alpha.LoggingConfig.LoggingLevel.forNumber(loggingLevel_); + return result == null + ? com.google.cloud.retail.v2alpha.LoggingConfig.LoggingLevel.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * The logging level.
+       *
+       * By default it is set to `LOG_WARNINGS_AND_ABOVE`.
+       * 
+ * + * .google.cloud.retail.v2alpha.LoggingConfig.LoggingLevel logging_level = 1; + * + * @param value The loggingLevel to set. + * @return This builder for chaining. + */ + public Builder setLoggingLevel( + com.google.cloud.retail.v2alpha.LoggingConfig.LoggingLevel value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + loggingLevel_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * The logging level.
+       *
+       * By default it is set to `LOG_WARNINGS_AND_ABOVE`.
+       * 
+ * + * .google.cloud.retail.v2alpha.LoggingConfig.LoggingLevel logging_level = 1; + * + * @return This builder for chaining. + */ + public Builder clearLoggingLevel() { + bitField0_ = (bitField0_ & ~0x00000001); + loggingLevel_ = 0; + onChanged(); + return this; + } + + private float infoLogSampleRate_; + /** + * + * + *
+       * The log sample rate for INFO level log entries. You can use this to
+       * reduce the number of entries generated for INFO level logs.
+       *
+       * DO NOT set this field if the
+       * [logging_level][google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule.logging_level]
+       * is not
+       * [LoggingLevel.LOG_ALL][google.cloud.retail.v2alpha.LoggingConfig.LoggingLevel.LOG_ALL].
+       * Otherwise, an INVALID_ARGUMENT error is returned.
+       *
+       * Sample rate for INFO logs defaults to 1 when unset (generate and send all
+       * INFO logs to Cloud Logging). Its value must be greater than 0 and less
+       * than or equal to 1.
+       * 
+ * + * optional float info_log_sample_rate = 2; + * + * @return Whether the infoLogSampleRate field is set. + */ + @java.lang.Override + public boolean hasInfoLogSampleRate() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+       * The log sample rate for INFO level log entries. You can use this to
+       * reduce the number of entries generated for INFO level logs.
+       *
+       * DO NOT set this field if the
+       * [logging_level][google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule.logging_level]
+       * is not
+       * [LoggingLevel.LOG_ALL][google.cloud.retail.v2alpha.LoggingConfig.LoggingLevel.LOG_ALL].
+       * Otherwise, an INVALID_ARGUMENT error is returned.
+       *
+       * Sample rate for INFO logs defaults to 1 when unset (generate and send all
+       * INFO logs to Cloud Logging). Its value must be greater than 0 and less
+       * than or equal to 1.
+       * 
+ * + * optional float info_log_sample_rate = 2; + * + * @return The infoLogSampleRate. + */ + @java.lang.Override + public float getInfoLogSampleRate() { + return infoLogSampleRate_; + } + /** + * + * + *
+       * The log sample rate for INFO level log entries. You can use this to
+       * reduce the number of entries generated for INFO level logs.
+       *
+       * DO NOT set this field if the
+       * [logging_level][google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule.logging_level]
+       * is not
+       * [LoggingLevel.LOG_ALL][google.cloud.retail.v2alpha.LoggingConfig.LoggingLevel.LOG_ALL].
+       * Otherwise, an INVALID_ARGUMENT error is returned.
+       *
+       * Sample rate for INFO logs defaults to 1 when unset (generate and send all
+       * INFO logs to Cloud Logging). Its value must be greater than 0 and less
+       * than or equal to 1.
+       * 
+ * + * optional float info_log_sample_rate = 2; + * + * @param value The infoLogSampleRate to set. + * @return This builder for chaining. + */ + public Builder setInfoLogSampleRate(float value) { + + infoLogSampleRate_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * The log sample rate for INFO level log entries. You can use this to
+       * reduce the number of entries generated for INFO level logs.
+       *
+       * DO NOT set this field if the
+       * [logging_level][google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule.logging_level]
+       * is not
+       * [LoggingLevel.LOG_ALL][google.cloud.retail.v2alpha.LoggingConfig.LoggingLevel.LOG_ALL].
+       * Otherwise, an INVALID_ARGUMENT error is returned.
+       *
+       * Sample rate for INFO logs defaults to 1 when unset (generate and send all
+       * INFO logs to Cloud Logging). Its value must be greater than 0 and less
+       * than or equal to 1.
+       * 
+ * + * optional float info_log_sample_rate = 2; + * + * @return This builder for chaining. + */ + public Builder clearInfoLogSampleRate() { + bitField0_ = (bitField0_ & ~0x00000002); + infoLogSampleRate_ = 0F; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule) + private static final com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule(); + } + + public static com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LogGenerationRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ServiceLogGenerationRuleOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. Supported service names:
+     * "CatalogService",
+     * "CompletionService",
+     * "ControlService",
+     * "MerchantCenterStreaming",
+     * "ModelService",
+     * "PredictionService",
+     * "ProductService",
+     * "ServingConfigService",
+     * "UserEventService",
+     * 
+ * + * string service_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The serviceName. + */ + java.lang.String getServiceName(); + /** + * + * + *
+     * Required. Supported service names:
+     * "CatalogService",
+     * "CompletionService",
+     * "ControlService",
+     * "MerchantCenterStreaming",
+     * "ModelService",
+     * "PredictionService",
+     * "ProductService",
+     * "ServingConfigService",
+     * "UserEventService",
+     * 
+ * + * string service_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for serviceName. + */ + com.google.protobuf.ByteString getServiceNameBytes(); + + /** + * + * + *
+     * The log generation rule that applies to this service.
+     * 
+ * + * .google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule log_generation_rule = 3; + * + * + * @return Whether the logGenerationRule field is set. + */ + boolean hasLogGenerationRule(); + /** + * + * + *
+     * The log generation rule that applies to this service.
+     * 
+ * + * .google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule log_generation_rule = 3; + * + * + * @return The logGenerationRule. + */ + com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule getLogGenerationRule(); + /** + * + * + *
+     * The log generation rule that applies to this service.
+     * 
+ * + * .google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule log_generation_rule = 3; + * + */ + com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRuleOrBuilder + getLogGenerationRuleOrBuilder(); + } + /** + * + * + *
+   * The granular logging configurations for supported services.
+   * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule} + */ + public static final class ServiceLogGenerationRule extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule) + ServiceLogGenerationRuleOrBuilder { + private static final long serialVersionUID = 0L; + // Use ServiceLogGenerationRule.newBuilder() to construct. + private ServiceLogGenerationRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ServiceLogGenerationRule() { + serviceName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ServiceLogGenerationRule(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.ProjectProto + .internal_static_google_cloud_retail_v2alpha_LoggingConfig_ServiceLogGenerationRule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.ProjectProto + .internal_static_google_cloud_retail_v2alpha_LoggingConfig_ServiceLogGenerationRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule.class, + com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule.Builder.class); + } + + private int bitField0_; + public static final int SERVICE_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceName_ = ""; + /** + * + * + *
+     * Required. Supported service names:
+     * "CatalogService",
+     * "CompletionService",
+     * "ControlService",
+     * "MerchantCenterStreaming",
+     * "ModelService",
+     * "PredictionService",
+     * "ProductService",
+     * "ServingConfigService",
+     * "UserEventService",
+     * 
+ * + * string service_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The serviceName. + */ + @java.lang.Override + public java.lang.String getServiceName() { + java.lang.Object ref = serviceName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceName_ = s; + return s; + } + } + /** + * + * + *
+     * Required. Supported service names:
+     * "CatalogService",
+     * "CompletionService",
+     * "ControlService",
+     * "MerchantCenterStreaming",
+     * "ModelService",
+     * "PredictionService",
+     * "ProductService",
+     * "ServingConfigService",
+     * "UserEventService",
+     * 
+ * + * string service_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for serviceName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceNameBytes() { + java.lang.Object ref = serviceName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOG_GENERATION_RULE_FIELD_NUMBER = 3; + private com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule logGenerationRule_; + /** + * + * + *
+     * The log generation rule that applies to this service.
+     * 
+ * + * .google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule log_generation_rule = 3; + * + * + * @return Whether the logGenerationRule field is set. + */ + @java.lang.Override + public boolean hasLogGenerationRule() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The log generation rule that applies to this service.
+     * 
+ * + * .google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule log_generation_rule = 3; + * + * + * @return The logGenerationRule. + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule getLogGenerationRule() { + return logGenerationRule_ == null + ? com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule.getDefaultInstance() + : logGenerationRule_; + } + /** + * + * + *
+     * The log generation rule that applies to this service.
+     * 
+ * + * .google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule log_generation_rule = 3; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRuleOrBuilder + getLogGenerationRuleOrBuilder() { + return logGenerationRule_ == null + ? com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule.getDefaultInstance() + : logGenerationRule_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getLogGenerationRule()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serviceName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getLogGenerationRule()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule)) { + return super.equals(obj); + } + com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule other = + (com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule) obj; + + if (!getServiceName().equals(other.getServiceName())) return false; + if (hasLogGenerationRule() != other.hasLogGenerationRule()) return false; + if (hasLogGenerationRule()) { + if (!getLogGenerationRule().equals(other.getLogGenerationRule())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SERVICE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getServiceName().hashCode(); + if (hasLogGenerationRule()) { + hash = (37 * hash) + LOG_GENERATION_RULE_FIELD_NUMBER; + hash = (53 * hash) + getLogGenerationRule().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * The granular logging configurations for supported services.
+     * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule) + com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRuleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.ProjectProto + .internal_static_google_cloud_retail_v2alpha_LoggingConfig_ServiceLogGenerationRule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.ProjectProto + .internal_static_google_cloud_retail_v2alpha_LoggingConfig_ServiceLogGenerationRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule.class, + com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule.Builder + .class); + } + + // Construct using + // com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getLogGenerationRuleFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + serviceName_ = ""; + logGenerationRule_ = null; + if (logGenerationRuleBuilder_ != null) { + logGenerationRuleBuilder_.dispose(); + logGenerationRuleBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2alpha.ProjectProto + .internal_static_google_cloud_retail_v2alpha_LoggingConfig_ServiceLogGenerationRule_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule + getDefaultInstanceForType() { + return com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule build() { + com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule buildPartial() { + com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule result = + new com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.serviceName_ = serviceName_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.logGenerationRule_ = + logGenerationRuleBuilder_ == null + ? logGenerationRule_ + : logGenerationRuleBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule) { + return mergeFrom( + (com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule other) { + if (other + == com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule + .getDefaultInstance()) return this; + if (!other.getServiceName().isEmpty()) { + serviceName_ = other.serviceName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasLogGenerationRule()) { + mergeLogGenerationRule(other.getLogGenerationRule()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + serviceName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: + { + input.readMessage( + getLogGenerationRuleFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object serviceName_ = ""; + /** + * + * + *
+       * Required. Supported service names:
+       * "CatalogService",
+       * "CompletionService",
+       * "ControlService",
+       * "MerchantCenterStreaming",
+       * "ModelService",
+       * "PredictionService",
+       * "ProductService",
+       * "ServingConfigService",
+       * "UserEventService",
+       * 
+ * + * string service_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The serviceName. + */ + public java.lang.String getServiceName() { + java.lang.Object ref = serviceName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. Supported service names:
+       * "CatalogService",
+       * "CompletionService",
+       * "ControlService",
+       * "MerchantCenterStreaming",
+       * "ModelService",
+       * "PredictionService",
+       * "ProductService",
+       * "ServingConfigService",
+       * "UserEventService",
+       * 
+ * + * string service_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for serviceName. + */ + public com.google.protobuf.ByteString getServiceNameBytes() { + java.lang.Object ref = serviceName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. Supported service names:
+       * "CatalogService",
+       * "CompletionService",
+       * "ControlService",
+       * "MerchantCenterStreaming",
+       * "ModelService",
+       * "PredictionService",
+       * "ProductService",
+       * "ServingConfigService",
+       * "UserEventService",
+       * 
+ * + * string service_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The serviceName to set. + * @return This builder for chaining. + */ + public Builder setServiceName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serviceName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Supported service names:
+       * "CatalogService",
+       * "CompletionService",
+       * "ControlService",
+       * "MerchantCenterStreaming",
+       * "ModelService",
+       * "PredictionService",
+       * "ProductService",
+       * "ServingConfigService",
+       * "UserEventService",
+       * 
+ * + * string service_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearServiceName() { + serviceName_ = getDefaultInstance().getServiceName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Supported service names:
+       * "CatalogService",
+       * "CompletionService",
+       * "ControlService",
+       * "MerchantCenterStreaming",
+       * "ModelService",
+       * "PredictionService",
+       * "ProductService",
+       * "ServingConfigService",
+       * "UserEventService",
+       * 
+ * + * string service_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for serviceName to set. + * @return This builder for chaining. + */ + public Builder setServiceNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule logGenerationRule_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule, + com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule.Builder, + com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRuleOrBuilder> + logGenerationRuleBuilder_; + /** + * + * + *
+       * The log generation rule that applies to this service.
+       * 
+ * + * .google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule log_generation_rule = 3; + * + * + * @return Whether the logGenerationRule field is set. + */ + public boolean hasLogGenerationRule() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+       * The log generation rule that applies to this service.
+       * 
+ * + * .google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule log_generation_rule = 3; + * + * + * @return The logGenerationRule. + */ + public com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule + getLogGenerationRule() { + if (logGenerationRuleBuilder_ == null) { + return logGenerationRule_ == null + ? com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule.getDefaultInstance() + : logGenerationRule_; + } else { + return logGenerationRuleBuilder_.getMessage(); + } + } + /** + * + * + *
+       * The log generation rule that applies to this service.
+       * 
+ * + * .google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule log_generation_rule = 3; + * + */ + public Builder setLogGenerationRule( + com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule value) { + if (logGenerationRuleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + logGenerationRule_ = value; + } else { + logGenerationRuleBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * The log generation rule that applies to this service.
+       * 
+ * + * .google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule log_generation_rule = 3; + * + */ + public Builder setLogGenerationRule( + com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule.Builder builderForValue) { + if (logGenerationRuleBuilder_ == null) { + logGenerationRule_ = builderForValue.build(); + } else { + logGenerationRuleBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * The log generation rule that applies to this service.
+       * 
+ * + * .google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule log_generation_rule = 3; + * + */ + public Builder mergeLogGenerationRule( + com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule value) { + if (logGenerationRuleBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && logGenerationRule_ != null + && logGenerationRule_ + != com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule + .getDefaultInstance()) { + getLogGenerationRuleBuilder().mergeFrom(value); + } else { + logGenerationRule_ = value; + } + } else { + logGenerationRuleBuilder_.mergeFrom(value); + } + if (logGenerationRule_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+       * The log generation rule that applies to this service.
+       * 
+ * + * .google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule log_generation_rule = 3; + * + */ + public Builder clearLogGenerationRule() { + bitField0_ = (bitField0_ & ~0x00000002); + logGenerationRule_ = null; + if (logGenerationRuleBuilder_ != null) { + logGenerationRuleBuilder_.dispose(); + logGenerationRuleBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * The log generation rule that applies to this service.
+       * 
+ * + * .google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule log_generation_rule = 3; + * + */ + public com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule.Builder + getLogGenerationRuleBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getLogGenerationRuleFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * The log generation rule that applies to this service.
+       * 
+ * + * .google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule log_generation_rule = 3; + * + */ + public com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRuleOrBuilder + getLogGenerationRuleOrBuilder() { + if (logGenerationRuleBuilder_ != null) { + return logGenerationRuleBuilder_.getMessageOrBuilder(); + } else { + return logGenerationRule_ == null + ? com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule.getDefaultInstance() + : logGenerationRule_; + } + } + /** + * + * + *
+       * The log generation rule that applies to this service.
+       * 
+ * + * .google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule log_generation_rule = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule, + com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule.Builder, + com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRuleOrBuilder> + getLogGenerationRuleFieldBuilder() { + if (logGenerationRuleBuilder_ == null) { + logGenerationRuleBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule, + com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule.Builder, + com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRuleOrBuilder>( + getLogGenerationRule(), getParentForChildren(), isClean()); + logGenerationRule_ = null; + } + return logGenerationRuleBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule) + private static final com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule(); + } + + public static com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServiceLogGenerationRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Immutable. The name of the LoggingConfig singleton resource.
+   * Format: projects/*/loggingConfig
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Immutable. The name of the LoggingConfig singleton resource.
+   * Format: projects/*/loggingConfig
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEFAULT_LOG_GENERATION_RULE_FIELD_NUMBER = 2; + private com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule defaultLogGenerationRule_; + /** + * + * + *
+   * The log generation rule that applies by default to all services
+   * supporting log generation. It can be overridden by
+   * [ServiceLogGenerationRule][google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule]
+   * for service level control.
+   * 
+ * + * + * .google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule default_log_generation_rule = 2; + * + * + * @return Whether the defaultLogGenerationRule field is set. + */ + @java.lang.Override + public boolean hasDefaultLogGenerationRule() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * The log generation rule that applies by default to all services
+   * supporting log generation. It can be overridden by
+   * [ServiceLogGenerationRule][google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule]
+   * for service level control.
+   * 
+ * + * + * .google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule default_log_generation_rule = 2; + * + * + * @return The defaultLogGenerationRule. + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule + getDefaultLogGenerationRule() { + return defaultLogGenerationRule_ == null + ? com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule.getDefaultInstance() + : defaultLogGenerationRule_; + } + /** + * + * + *
+   * The log generation rule that applies by default to all services
+   * supporting log generation. It can be overridden by
+   * [ServiceLogGenerationRule][google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule]
+   * for service level control.
+   * 
+ * + * + * .google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule default_log_generation_rule = 2; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRuleOrBuilder + getDefaultLogGenerationRuleOrBuilder() { + return defaultLogGenerationRule_ == null + ? com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule.getDefaultInstance() + : defaultLogGenerationRule_; + } + + public static final int SERVICE_LOG_GENERATION_RULES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List + serviceLogGenerationRules_; + /** + * + * + *
+   * Controls logging configurations more granularly for each supported
+   * service.
+   *
+   * This overrides the
+   * [default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule]
+   * for the services specified. For those not mentioned, they will fallback to
+   * the default log generation rule.
+   * 
+ * + * + * repeated .google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule service_log_generation_rules = 4; + * + */ + @java.lang.Override + public java.util.List + getServiceLogGenerationRulesList() { + return serviceLogGenerationRules_; + } + /** + * + * + *
+   * Controls logging configurations more granularly for each supported
+   * service.
+   *
+   * This overrides the
+   * [default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule]
+   * for the services specified. For those not mentioned, they will fallback to
+   * the default log generation rule.
+   * 
+ * + * + * repeated .google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule service_log_generation_rules = 4; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRuleOrBuilder> + getServiceLogGenerationRulesOrBuilderList() { + return serviceLogGenerationRules_; + } + /** + * + * + *
+   * Controls logging configurations more granularly for each supported
+   * service.
+   *
+   * This overrides the
+   * [default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule]
+   * for the services specified. For those not mentioned, they will fallback to
+   * the default log generation rule.
+   * 
+ * + * + * repeated .google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule service_log_generation_rules = 4; + * + */ + @java.lang.Override + public int getServiceLogGenerationRulesCount() { + return serviceLogGenerationRules_.size(); + } + /** + * + * + *
+   * Controls logging configurations more granularly for each supported
+   * service.
+   *
+   * This overrides the
+   * [default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule]
+   * for the services specified. For those not mentioned, they will fallback to
+   * the default log generation rule.
+   * 
+ * + * + * repeated .google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule service_log_generation_rules = 4; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule + getServiceLogGenerationRules(int index) { + return serviceLogGenerationRules_.get(index); + } + /** + * + * + *
+   * Controls logging configurations more granularly for each supported
+   * service.
+   *
+   * This overrides the
+   * [default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule]
+   * for the services specified. For those not mentioned, they will fallback to
+   * the default log generation rule.
+   * 
+ * + * + * repeated .google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule service_log_generation_rules = 4; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRuleOrBuilder + getServiceLogGenerationRulesOrBuilder(int index) { + return serviceLogGenerationRules_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getDefaultLogGenerationRule()); + } + for (int i = 0; i < serviceLogGenerationRules_.size(); i++) { + output.writeMessage(4, serviceLogGenerationRules_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getDefaultLogGenerationRule()); + } + for (int i = 0; i < serviceLogGenerationRules_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, serviceLogGenerationRules_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.retail.v2alpha.LoggingConfig)) { + return super.equals(obj); + } + com.google.cloud.retail.v2alpha.LoggingConfig other = + (com.google.cloud.retail.v2alpha.LoggingConfig) obj; + + if (!getName().equals(other.getName())) return false; + if (hasDefaultLogGenerationRule() != other.hasDefaultLogGenerationRule()) return false; + if (hasDefaultLogGenerationRule()) { + if (!getDefaultLogGenerationRule().equals(other.getDefaultLogGenerationRule())) return false; + } + if (!getServiceLogGenerationRulesList().equals(other.getServiceLogGenerationRulesList())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasDefaultLogGenerationRule()) { + hash = (37 * hash) + DEFAULT_LOG_GENERATION_RULE_FIELD_NUMBER; + hash = (53 * hash) + getDefaultLogGenerationRule().hashCode(); + } + if (getServiceLogGenerationRulesCount() > 0) { + hash = (37 * hash) + SERVICE_LOG_GENERATION_RULES_FIELD_NUMBER; + hash = (53 * hash) + getServiceLogGenerationRulesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2alpha.LoggingConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.LoggingConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.LoggingConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.LoggingConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.LoggingConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.LoggingConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.LoggingConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.LoggingConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.LoggingConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.LoggingConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.LoggingConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.LoggingConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.retail.v2alpha.LoggingConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Project level logging config to control what level of log will be generated
+   * and written to Cloud Logging.
+   * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.LoggingConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2alpha.LoggingConfig) + com.google.cloud.retail.v2alpha.LoggingConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.ProjectProto + .internal_static_google_cloud_retail_v2alpha_LoggingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.ProjectProto + .internal_static_google_cloud_retail_v2alpha_LoggingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.LoggingConfig.class, + com.google.cloud.retail.v2alpha.LoggingConfig.Builder.class); + } + + // Construct using com.google.cloud.retail.v2alpha.LoggingConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDefaultLogGenerationRuleFieldBuilder(); + getServiceLogGenerationRulesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + defaultLogGenerationRule_ = null; + if (defaultLogGenerationRuleBuilder_ != null) { + defaultLogGenerationRuleBuilder_.dispose(); + defaultLogGenerationRuleBuilder_ = null; + } + if (serviceLogGenerationRulesBuilder_ == null) { + serviceLogGenerationRules_ = java.util.Collections.emptyList(); + } else { + serviceLogGenerationRules_ = null; + serviceLogGenerationRulesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2alpha.ProjectProto + .internal_static_google_cloud_retail_v2alpha_LoggingConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.LoggingConfig getDefaultInstanceForType() { + return com.google.cloud.retail.v2alpha.LoggingConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.LoggingConfig build() { + com.google.cloud.retail.v2alpha.LoggingConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.LoggingConfig buildPartial() { + com.google.cloud.retail.v2alpha.LoggingConfig result = + new com.google.cloud.retail.v2alpha.LoggingConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.retail.v2alpha.LoggingConfig result) { + if (serviceLogGenerationRulesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + serviceLogGenerationRules_ = + java.util.Collections.unmodifiableList(serviceLogGenerationRules_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.serviceLogGenerationRules_ = serviceLogGenerationRules_; + } else { + result.serviceLogGenerationRules_ = serviceLogGenerationRulesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.retail.v2alpha.LoggingConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.defaultLogGenerationRule_ = + defaultLogGenerationRuleBuilder_ == null + ? defaultLogGenerationRule_ + : defaultLogGenerationRuleBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.retail.v2alpha.LoggingConfig) { + return mergeFrom((com.google.cloud.retail.v2alpha.LoggingConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.retail.v2alpha.LoggingConfig other) { + if (other == com.google.cloud.retail.v2alpha.LoggingConfig.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDefaultLogGenerationRule()) { + mergeDefaultLogGenerationRule(other.getDefaultLogGenerationRule()); + } + if (serviceLogGenerationRulesBuilder_ == null) { + if (!other.serviceLogGenerationRules_.isEmpty()) { + if (serviceLogGenerationRules_.isEmpty()) { + serviceLogGenerationRules_ = other.serviceLogGenerationRules_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureServiceLogGenerationRulesIsMutable(); + serviceLogGenerationRules_.addAll(other.serviceLogGenerationRules_); + } + onChanged(); + } + } else { + if (!other.serviceLogGenerationRules_.isEmpty()) { + if (serviceLogGenerationRulesBuilder_.isEmpty()) { + serviceLogGenerationRulesBuilder_.dispose(); + serviceLogGenerationRulesBuilder_ = null; + serviceLogGenerationRules_ = other.serviceLogGenerationRules_; + bitField0_ = (bitField0_ & ~0x00000004); + serviceLogGenerationRulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getServiceLogGenerationRulesFieldBuilder() + : null; + } else { + serviceLogGenerationRulesBuilder_.addAllMessages(other.serviceLogGenerationRules_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getDefaultLogGenerationRuleFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 34: + { + com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule m = + input.readMessage( + com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule + .parser(), + extensionRegistry); + if (serviceLogGenerationRulesBuilder_ == null) { + ensureServiceLogGenerationRulesIsMutable(); + serviceLogGenerationRules_.add(m); + } else { + serviceLogGenerationRulesBuilder_.addMessage(m); + } + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. Immutable. The name of the LoggingConfig singleton resource.
+     * Format: projects/*/loggingConfig
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Immutable. The name of the LoggingConfig singleton resource.
+     * Format: projects/*/loggingConfig
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Immutable. The name of the LoggingConfig singleton resource.
+     * Format: projects/*/loggingConfig
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. The name of the LoggingConfig singleton resource.
+     * Format: projects/*/loggingConfig
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. The name of the LoggingConfig singleton resource.
+     * Format: projects/*/loggingConfig
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule + defaultLogGenerationRule_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule, + com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule.Builder, + com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRuleOrBuilder> + defaultLogGenerationRuleBuilder_; + /** + * + * + *
+     * The log generation rule that applies by default to all services
+     * supporting log generation. It can be overridden by
+     * [ServiceLogGenerationRule][google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule]
+     * for service level control.
+     * 
+ * + * + * .google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule default_log_generation_rule = 2; + * + * + * @return Whether the defaultLogGenerationRule field is set. + */ + public boolean hasDefaultLogGenerationRule() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * The log generation rule that applies by default to all services
+     * supporting log generation. It can be overridden by
+     * [ServiceLogGenerationRule][google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule]
+     * for service level control.
+     * 
+ * + * + * .google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule default_log_generation_rule = 2; + * + * + * @return The defaultLogGenerationRule. + */ + public com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule + getDefaultLogGenerationRule() { + if (defaultLogGenerationRuleBuilder_ == null) { + return defaultLogGenerationRule_ == null + ? com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule.getDefaultInstance() + : defaultLogGenerationRule_; + } else { + return defaultLogGenerationRuleBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The log generation rule that applies by default to all services
+     * supporting log generation. It can be overridden by
+     * [ServiceLogGenerationRule][google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule]
+     * for service level control.
+     * 
+ * + * + * .google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule default_log_generation_rule = 2; + * + */ + public Builder setDefaultLogGenerationRule( + com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule value) { + if (defaultLogGenerationRuleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + defaultLogGenerationRule_ = value; + } else { + defaultLogGenerationRuleBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The log generation rule that applies by default to all services
+     * supporting log generation. It can be overridden by
+     * [ServiceLogGenerationRule][google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule]
+     * for service level control.
+     * 
+ * + * + * .google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule default_log_generation_rule = 2; + * + */ + public Builder setDefaultLogGenerationRule( + com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule.Builder builderForValue) { + if (defaultLogGenerationRuleBuilder_ == null) { + defaultLogGenerationRule_ = builderForValue.build(); + } else { + defaultLogGenerationRuleBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The log generation rule that applies by default to all services
+     * supporting log generation. It can be overridden by
+     * [ServiceLogGenerationRule][google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule]
+     * for service level control.
+     * 
+ * + * + * .google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule default_log_generation_rule = 2; + * + */ + public Builder mergeDefaultLogGenerationRule( + com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule value) { + if (defaultLogGenerationRuleBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && defaultLogGenerationRule_ != null + && defaultLogGenerationRule_ + != com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule + .getDefaultInstance()) { + getDefaultLogGenerationRuleBuilder().mergeFrom(value); + } else { + defaultLogGenerationRule_ = value; + } + } else { + defaultLogGenerationRuleBuilder_.mergeFrom(value); + } + if (defaultLogGenerationRule_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * The log generation rule that applies by default to all services
+     * supporting log generation. It can be overridden by
+     * [ServiceLogGenerationRule][google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule]
+     * for service level control.
+     * 
+ * + * + * .google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule default_log_generation_rule = 2; + * + */ + public Builder clearDefaultLogGenerationRule() { + bitField0_ = (bitField0_ & ~0x00000002); + defaultLogGenerationRule_ = null; + if (defaultLogGenerationRuleBuilder_ != null) { + defaultLogGenerationRuleBuilder_.dispose(); + defaultLogGenerationRuleBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The log generation rule that applies by default to all services
+     * supporting log generation. It can be overridden by
+     * [ServiceLogGenerationRule][google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule]
+     * for service level control.
+     * 
+ * + * + * .google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule default_log_generation_rule = 2; + * + */ + public com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule.Builder + getDefaultLogGenerationRuleBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getDefaultLogGenerationRuleFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The log generation rule that applies by default to all services
+     * supporting log generation. It can be overridden by
+     * [ServiceLogGenerationRule][google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule]
+     * for service level control.
+     * 
+ * + * + * .google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule default_log_generation_rule = 2; + * + */ + public com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRuleOrBuilder + getDefaultLogGenerationRuleOrBuilder() { + if (defaultLogGenerationRuleBuilder_ != null) { + return defaultLogGenerationRuleBuilder_.getMessageOrBuilder(); + } else { + return defaultLogGenerationRule_ == null + ? com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule.getDefaultInstance() + : defaultLogGenerationRule_; + } + } + /** + * + * + *
+     * The log generation rule that applies by default to all services
+     * supporting log generation. It can be overridden by
+     * [ServiceLogGenerationRule][google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule]
+     * for service level control.
+     * 
+ * + * + * .google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule default_log_generation_rule = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule, + com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule.Builder, + com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRuleOrBuilder> + getDefaultLogGenerationRuleFieldBuilder() { + if (defaultLogGenerationRuleBuilder_ == null) { + defaultLogGenerationRuleBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule, + com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule.Builder, + com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRuleOrBuilder>( + getDefaultLogGenerationRule(), getParentForChildren(), isClean()); + defaultLogGenerationRule_ = null; + } + return defaultLogGenerationRuleBuilder_; + } + + private java.util.List + serviceLogGenerationRules_ = java.util.Collections.emptyList(); + + private void ensureServiceLogGenerationRulesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + serviceLogGenerationRules_ = + new java.util.ArrayList< + com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule>( + serviceLogGenerationRules_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule, + com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule.Builder, + com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRuleOrBuilder> + serviceLogGenerationRulesBuilder_; + + /** + * + * + *
+     * Controls logging configurations more granularly for each supported
+     * service.
+     *
+     * This overrides the
+     * [default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule]
+     * for the services specified. For those not mentioned, they will fallback to
+     * the default log generation rule.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule service_log_generation_rules = 4; + * + */ + public java.util.List + getServiceLogGenerationRulesList() { + if (serviceLogGenerationRulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(serviceLogGenerationRules_); + } else { + return serviceLogGenerationRulesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Controls logging configurations more granularly for each supported
+     * service.
+     *
+     * This overrides the
+     * [default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule]
+     * for the services specified. For those not mentioned, they will fallback to
+     * the default log generation rule.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule service_log_generation_rules = 4; + * + */ + public int getServiceLogGenerationRulesCount() { + if (serviceLogGenerationRulesBuilder_ == null) { + return serviceLogGenerationRules_.size(); + } else { + return serviceLogGenerationRulesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Controls logging configurations more granularly for each supported
+     * service.
+     *
+     * This overrides the
+     * [default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule]
+     * for the services specified. For those not mentioned, they will fallback to
+     * the default log generation rule.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule service_log_generation_rules = 4; + * + */ + public com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule + getServiceLogGenerationRules(int index) { + if (serviceLogGenerationRulesBuilder_ == null) { + return serviceLogGenerationRules_.get(index); + } else { + return serviceLogGenerationRulesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Controls logging configurations more granularly for each supported
+     * service.
+     *
+     * This overrides the
+     * [default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule]
+     * for the services specified. For those not mentioned, they will fallback to
+     * the default log generation rule.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule service_log_generation_rules = 4; + * + */ + public Builder setServiceLogGenerationRules( + int index, com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule value) { + if (serviceLogGenerationRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureServiceLogGenerationRulesIsMutable(); + serviceLogGenerationRules_.set(index, value); + onChanged(); + } else { + serviceLogGenerationRulesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Controls logging configurations more granularly for each supported
+     * service.
+     *
+     * This overrides the
+     * [default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule]
+     * for the services specified. For those not mentioned, they will fallback to
+     * the default log generation rule.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule service_log_generation_rules = 4; + * + */ + public Builder setServiceLogGenerationRules( + int index, + com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule.Builder + builderForValue) { + if (serviceLogGenerationRulesBuilder_ == null) { + ensureServiceLogGenerationRulesIsMutable(); + serviceLogGenerationRules_.set(index, builderForValue.build()); + onChanged(); + } else { + serviceLogGenerationRulesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Controls logging configurations more granularly for each supported
+     * service.
+     *
+     * This overrides the
+     * [default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule]
+     * for the services specified. For those not mentioned, they will fallback to
+     * the default log generation rule.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule service_log_generation_rules = 4; + * + */ + public Builder addServiceLogGenerationRules( + com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule value) { + if (serviceLogGenerationRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureServiceLogGenerationRulesIsMutable(); + serviceLogGenerationRules_.add(value); + onChanged(); + } else { + serviceLogGenerationRulesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Controls logging configurations more granularly for each supported
+     * service.
+     *
+     * This overrides the
+     * [default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule]
+     * for the services specified. For those not mentioned, they will fallback to
+     * the default log generation rule.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule service_log_generation_rules = 4; + * + */ + public Builder addServiceLogGenerationRules( + int index, com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule value) { + if (serviceLogGenerationRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureServiceLogGenerationRulesIsMutable(); + serviceLogGenerationRules_.add(index, value); + onChanged(); + } else { + serviceLogGenerationRulesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Controls logging configurations more granularly for each supported
+     * service.
+     *
+     * This overrides the
+     * [default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule]
+     * for the services specified. For those not mentioned, they will fallback to
+     * the default log generation rule.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule service_log_generation_rules = 4; + * + */ + public Builder addServiceLogGenerationRules( + com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule.Builder + builderForValue) { + if (serviceLogGenerationRulesBuilder_ == null) { + ensureServiceLogGenerationRulesIsMutable(); + serviceLogGenerationRules_.add(builderForValue.build()); + onChanged(); + } else { + serviceLogGenerationRulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Controls logging configurations more granularly for each supported
+     * service.
+     *
+     * This overrides the
+     * [default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule]
+     * for the services specified. For those not mentioned, they will fallback to
+     * the default log generation rule.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule service_log_generation_rules = 4; + * + */ + public Builder addServiceLogGenerationRules( + int index, + com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule.Builder + builderForValue) { + if (serviceLogGenerationRulesBuilder_ == null) { + ensureServiceLogGenerationRulesIsMutable(); + serviceLogGenerationRules_.add(index, builderForValue.build()); + onChanged(); + } else { + serviceLogGenerationRulesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Controls logging configurations more granularly for each supported
+     * service.
+     *
+     * This overrides the
+     * [default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule]
+     * for the services specified. For those not mentioned, they will fallback to
+     * the default log generation rule.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule service_log_generation_rules = 4; + * + */ + public Builder addAllServiceLogGenerationRules( + java.lang.Iterable< + ? extends com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule> + values) { + if (serviceLogGenerationRulesBuilder_ == null) { + ensureServiceLogGenerationRulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, serviceLogGenerationRules_); + onChanged(); + } else { + serviceLogGenerationRulesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Controls logging configurations more granularly for each supported
+     * service.
+     *
+     * This overrides the
+     * [default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule]
+     * for the services specified. For those not mentioned, they will fallback to
+     * the default log generation rule.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule service_log_generation_rules = 4; + * + */ + public Builder clearServiceLogGenerationRules() { + if (serviceLogGenerationRulesBuilder_ == null) { + serviceLogGenerationRules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + serviceLogGenerationRulesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Controls logging configurations more granularly for each supported
+     * service.
+     *
+     * This overrides the
+     * [default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule]
+     * for the services specified. For those not mentioned, they will fallback to
+     * the default log generation rule.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule service_log_generation_rules = 4; + * + */ + public Builder removeServiceLogGenerationRules(int index) { + if (serviceLogGenerationRulesBuilder_ == null) { + ensureServiceLogGenerationRulesIsMutable(); + serviceLogGenerationRules_.remove(index); + onChanged(); + } else { + serviceLogGenerationRulesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Controls logging configurations more granularly for each supported
+     * service.
+     *
+     * This overrides the
+     * [default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule]
+     * for the services specified. For those not mentioned, they will fallback to
+     * the default log generation rule.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule service_log_generation_rules = 4; + * + */ + public com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule.Builder + getServiceLogGenerationRulesBuilder(int index) { + return getServiceLogGenerationRulesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Controls logging configurations more granularly for each supported
+     * service.
+     *
+     * This overrides the
+     * [default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule]
+     * for the services specified. For those not mentioned, they will fallback to
+     * the default log generation rule.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule service_log_generation_rules = 4; + * + */ + public com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRuleOrBuilder + getServiceLogGenerationRulesOrBuilder(int index) { + if (serviceLogGenerationRulesBuilder_ == null) { + return serviceLogGenerationRules_.get(index); + } else { + return serviceLogGenerationRulesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Controls logging configurations more granularly for each supported
+     * service.
+     *
+     * This overrides the
+     * [default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule]
+     * for the services specified. For those not mentioned, they will fallback to
+     * the default log generation rule.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule service_log_generation_rules = 4; + * + */ + public java.util.List< + ? extends + com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRuleOrBuilder> + getServiceLogGenerationRulesOrBuilderList() { + if (serviceLogGenerationRulesBuilder_ != null) { + return serviceLogGenerationRulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(serviceLogGenerationRules_); + } + } + /** + * + * + *
+     * Controls logging configurations more granularly for each supported
+     * service.
+     *
+     * This overrides the
+     * [default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule]
+     * for the services specified. For those not mentioned, they will fallback to
+     * the default log generation rule.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule service_log_generation_rules = 4; + * + */ + public com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule.Builder + addServiceLogGenerationRulesBuilder() { + return getServiceLogGenerationRulesFieldBuilder() + .addBuilder( + com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule + .getDefaultInstance()); + } + /** + * + * + *
+     * Controls logging configurations more granularly for each supported
+     * service.
+     *
+     * This overrides the
+     * [default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule]
+     * for the services specified. For those not mentioned, they will fallback to
+     * the default log generation rule.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule service_log_generation_rules = 4; + * + */ + public com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule.Builder + addServiceLogGenerationRulesBuilder(int index) { + return getServiceLogGenerationRulesFieldBuilder() + .addBuilder( + index, + com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule + .getDefaultInstance()); + } + /** + * + * + *
+     * Controls logging configurations more granularly for each supported
+     * service.
+     *
+     * This overrides the
+     * [default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule]
+     * for the services specified. For those not mentioned, they will fallback to
+     * the default log generation rule.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule service_log_generation_rules = 4; + * + */ + public java.util.List< + com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule.Builder> + getServiceLogGenerationRulesBuilderList() { + return getServiceLogGenerationRulesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule, + com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule.Builder, + com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRuleOrBuilder> + getServiceLogGenerationRulesFieldBuilder() { + if (serviceLogGenerationRulesBuilder_ == null) { + serviceLogGenerationRulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule, + com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule.Builder, + com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRuleOrBuilder>( + serviceLogGenerationRules_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + serviceLogGenerationRules_ = null; + } + return serviceLogGenerationRulesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2alpha.LoggingConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2alpha.LoggingConfig) + private static final com.google.cloud.retail.v2alpha.LoggingConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.retail.v2alpha.LoggingConfig(); + } + + public static com.google.cloud.retail.v2alpha.LoggingConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LoggingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.LoggingConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/LoggingConfigName.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/LoggingConfigName.java new file mode 100644 index 000000000000..4c9b68e91279 --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/LoggingConfigName.java @@ -0,0 +1,168 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class LoggingConfigName implements ResourceName { + private static final PathTemplate PROJECT = + PathTemplate.createWithoutUrlEncoding("projects/{project}/loggingConfig"); + private volatile Map fieldValuesMap; + private final String project; + + @Deprecated + protected LoggingConfigName() { + project = null; + } + + private LoggingConfigName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + } + + public String getProject() { + return project; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static LoggingConfigName of(String project) { + return newBuilder().setProject(project).build(); + } + + public static String format(String project) { + return newBuilder().setProject(project).build().toString(); + } + + public static LoggingConfigName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT.validatedMatch( + formattedString, "LoggingConfigName.parse: formattedString not in valid format"); + return of(matchMap.get("project")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (LoggingConfigName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT.instantiate("project", project); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + LoggingConfigName that = ((LoggingConfigName) o); + return Objects.equals(this.project, that.project); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + return h; + } + + /** Builder for projects/{project}/loggingConfig. */ + public static class Builder { + private String project; + + protected Builder() {} + + public String getProject() { + return project; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + private Builder(LoggingConfigName loggingConfigName) { + this.project = loggingConfigName.project; + } + + public LoggingConfigName build() { + return new LoggingConfigName(this); + } + } +} diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/LoggingConfigOrBuilder.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/LoggingConfigOrBuilder.java new file mode 100644 index 000000000000..afeb8bc1f0e3 --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/LoggingConfigOrBuilder.java @@ -0,0 +1,204 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/retail/v2alpha/project.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.retail.v2alpha; + +public interface LoggingConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2alpha.LoggingConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Immutable. The name of the LoggingConfig singleton resource.
+   * Format: projects/*/loggingConfig
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Immutable. The name of the LoggingConfig singleton resource.
+   * Format: projects/*/loggingConfig
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The log generation rule that applies by default to all services
+   * supporting log generation. It can be overridden by
+   * [ServiceLogGenerationRule][google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule]
+   * for service level control.
+   * 
+ * + * + * .google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule default_log_generation_rule = 2; + * + * + * @return Whether the defaultLogGenerationRule field is set. + */ + boolean hasDefaultLogGenerationRule(); + /** + * + * + *
+   * The log generation rule that applies by default to all services
+   * supporting log generation. It can be overridden by
+   * [ServiceLogGenerationRule][google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule]
+   * for service level control.
+   * 
+ * + * + * .google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule default_log_generation_rule = 2; + * + * + * @return The defaultLogGenerationRule. + */ + com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule getDefaultLogGenerationRule(); + /** + * + * + *
+   * The log generation rule that applies by default to all services
+   * supporting log generation. It can be overridden by
+   * [ServiceLogGenerationRule][google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule]
+   * for service level control.
+   * 
+ * + * + * .google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule default_log_generation_rule = 2; + * + */ + com.google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRuleOrBuilder + getDefaultLogGenerationRuleOrBuilder(); + + /** + * + * + *
+   * Controls logging configurations more granularly for each supported
+   * service.
+   *
+   * This overrides the
+   * [default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule]
+   * for the services specified. For those not mentioned, they will fallback to
+   * the default log generation rule.
+   * 
+ * + * + * repeated .google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule service_log_generation_rules = 4; + * + */ + java.util.List + getServiceLogGenerationRulesList(); + /** + * + * + *
+   * Controls logging configurations more granularly for each supported
+   * service.
+   *
+   * This overrides the
+   * [default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule]
+   * for the services specified. For those not mentioned, they will fallback to
+   * the default log generation rule.
+   * 
+ * + * + * repeated .google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule service_log_generation_rules = 4; + * + */ + com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule + getServiceLogGenerationRules(int index); + /** + * + * + *
+   * Controls logging configurations more granularly for each supported
+   * service.
+   *
+   * This overrides the
+   * [default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule]
+   * for the services specified. For those not mentioned, they will fallback to
+   * the default log generation rule.
+   * 
+ * + * + * repeated .google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule service_log_generation_rules = 4; + * + */ + int getServiceLogGenerationRulesCount(); + /** + * + * + *
+   * Controls logging configurations more granularly for each supported
+   * service.
+   *
+   * This overrides the
+   * [default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule]
+   * for the services specified. For those not mentioned, they will fallback to
+   * the default log generation rule.
+   * 
+ * + * + * repeated .google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule service_log_generation_rules = 4; + * + */ + java.util.List< + ? extends com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRuleOrBuilder> + getServiceLogGenerationRulesOrBuilderList(); + /** + * + * + *
+   * Controls logging configurations more granularly for each supported
+   * service.
+   *
+   * This overrides the
+   * [default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule]
+   * for the services specified. For those not mentioned, they will fallback to
+   * the default log generation rule.
+   * 
+ * + * + * repeated .google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule service_log_generation_rules = 4; + * + */ + com.google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRuleOrBuilder + getServiceLogGenerationRulesOrBuilder(int index); +} diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/MerchantCenterAccountLink.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/MerchantCenterAccountLink.java index ecfd4fb3e4b0..679362ac7bc6 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/MerchantCenterAccountLink.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/MerchantCenterAccountLink.java @@ -24,8 +24,8 @@ * *
  * Represents a link between a Merchant Center account and a branch.
- * Once a link is established, products from the linked merchant center account
- * will be streamed to the linked branch.
+ * After a link is established, products from the linked Merchant Center account
+ * are streamed to the linked branch.
  * 
* * Protobuf type {@code google.cloud.retail.v2alpha.MerchantCenterAccountLink} @@ -49,6 +49,7 @@ private MerchantCenterAccountLink() { feedFilters_ = java.util.Collections.emptyList(); state_ = 0; projectId_ = ""; + source_ = ""; } @java.lang.Override @@ -1201,12 +1202,12 @@ public long getMerchantCenterAccountId() { * * *
-   * Required. The branch id (e.g. 0/1/2) within the catalog that products from
+   * Required. The branch ID (e.g. 0/1/2) within the catalog that products from
    * merchant_center_account_id are streamed to. When updating this field, an
    * empty value will use the currently configured default branch. However,
    * changing the default branch later on won't change the linked branch here.
    *
-   * A single branch id can only have one linked merchant center account id.
+   * A single branch ID can only have one linked Merchant Center account ID.
    * 
* * string branch_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1229,12 +1230,12 @@ public java.lang.String getBranchId() { * * *
-   * Required. The branch id (e.g. 0/1/2) within the catalog that products from
+   * Required. The branch ID (e.g. 0/1/2) within the catalog that products from
    * merchant_center_account_id are streamed to. When updating this field, an
    * empty value will use the currently configured default branch. However,
    * changing the default branch later on won't change the linked branch here.
    *
-   * A single branch id can only have one linked merchant center account id.
+   * A single branch ID can only have one linked Merchant Center account ID.
    * 
* * string branch_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1529,7 +1530,7 @@ public com.google.cloud.retail.v2alpha.MerchantCenterAccountLink.State getState( * * *
-   * Output only. GCP project ID.
+   * Output only. Google Cloud project ID.
    * 
* * string project_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1552,7 +1553,7 @@ public java.lang.String getProjectId() { * * *
-   * Output only. GCP project ID.
+   * Output only. Google Cloud project ID.
    * 
* * string project_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1572,6 +1573,59 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } + public static final int SOURCE_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object source_ = ""; + /** + * + * + *
+   * Optional. An optional arbitrary string that could be used as a tag for
+   * tracking link source.
+   * 
+ * + * string source = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The source. + */ + @java.lang.Override + public java.lang.String getSource() { + java.lang.Object ref = source_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + source_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. An optional arbitrary string that could be used as a tag for
+   * tracking link source.
+   * 
+ * + * string source = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for source. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1615,6 +1669,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, projectId_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(source_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, source_); + } getUnknownFields().writeTo(output); } @@ -1653,6 +1710,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, projectId_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(source_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, source_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1678,6 +1738,7 @@ public boolean equals(final java.lang.Object obj) { if (!getFeedFiltersList().equals(other.getFeedFiltersList())) return false; if (state_ != other.state_) return false; if (!getProjectId().equals(other.getProjectId())) return false; + if (!getSource().equals(other.getSource())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1709,6 +1770,8 @@ public int hashCode() { hash = (53 * hash) + state_; hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSource().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1815,8 +1878,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * Represents a link between a Merchant Center account and a branch.
-   * Once a link is established, products from the linked merchant center account
-   * will be streamed to the linked branch.
+   * After a link is established, products from the linked Merchant Center account
+   * are streamed to the linked branch.
    * 
* * Protobuf type {@code google.cloud.retail.v2alpha.MerchantCenterAccountLink} @@ -1866,6 +1929,7 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000040); state_ = 0; projectId_ = ""; + source_ = ""; return this; } @@ -1940,6 +2004,9 @@ private void buildPartial0(com.google.cloud.retail.v2alpha.MerchantCenterAccount if (((from_bitField0_ & 0x00000100) != 0)) { result.projectId_ = projectId_; } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.source_ = source_; + } } @java.lang.Override @@ -2051,6 +2118,11 @@ public Builder mergeFrom(com.google.cloud.retail.v2alpha.MerchantCenterAccountLi bitField0_ |= 0x00000100; onChanged(); } + if (!other.getSource().isEmpty()) { + source_ = other.source_; + bitField0_ |= 0x00000200; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2141,6 +2213,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000100; break; } // case 74 + case 82: + { + source_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 82 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2496,12 +2574,12 @@ public Builder clearMerchantCenterAccountId() { * * *
-     * Required. The branch id (e.g. 0/1/2) within the catalog that products from
+     * Required. The branch ID (e.g. 0/1/2) within the catalog that products from
      * merchant_center_account_id are streamed to. When updating this field, an
      * empty value will use the currently configured default branch. However,
      * changing the default branch later on won't change the linked branch here.
      *
-     * A single branch id can only have one linked merchant center account id.
+     * A single branch ID can only have one linked Merchant Center account ID.
      * 
* * string branch_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -2523,12 +2601,12 @@ public java.lang.String getBranchId() { * * *
-     * Required. The branch id (e.g. 0/1/2) within the catalog that products from
+     * Required. The branch ID (e.g. 0/1/2) within the catalog that products from
      * merchant_center_account_id are streamed to. When updating this field, an
      * empty value will use the currently configured default branch. However,
      * changing the default branch later on won't change the linked branch here.
      *
-     * A single branch id can only have one linked merchant center account id.
+     * A single branch ID can only have one linked Merchant Center account ID.
      * 
* * string branch_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -2550,12 +2628,12 @@ public com.google.protobuf.ByteString getBranchIdBytes() { * * *
-     * Required. The branch id (e.g. 0/1/2) within the catalog that products from
+     * Required. The branch ID (e.g. 0/1/2) within the catalog that products from
      * merchant_center_account_id are streamed to. When updating this field, an
      * empty value will use the currently configured default branch. However,
      * changing the default branch later on won't change the linked branch here.
      *
-     * A single branch id can only have one linked merchant center account id.
+     * A single branch ID can only have one linked Merchant Center account ID.
      * 
* * string branch_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -2576,12 +2654,12 @@ public Builder setBranchId(java.lang.String value) { * * *
-     * Required. The branch id (e.g. 0/1/2) within the catalog that products from
+     * Required. The branch ID (e.g. 0/1/2) within the catalog that products from
      * merchant_center_account_id are streamed to. When updating this field, an
      * empty value will use the currently configured default branch. However,
      * changing the default branch later on won't change the linked branch here.
      *
-     * A single branch id can only have one linked merchant center account id.
+     * A single branch ID can only have one linked Merchant Center account ID.
      * 
* * string branch_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -2598,12 +2676,12 @@ public Builder clearBranchId() { * * *
-     * Required. The branch id (e.g. 0/1/2) within the catalog that products from
+     * Required. The branch ID (e.g. 0/1/2) within the catalog that products from
      * merchant_center_account_id are streamed to. When updating this field, an
      * empty value will use the currently configured default branch. However,
      * changing the default branch later on won't change the linked branch here.
      *
-     * A single branch id can only have one linked merchant center account id.
+     * A single branch ID can only have one linked Merchant Center account ID.
      * 
* * string branch_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -3468,7 +3546,7 @@ public Builder clearState() { * * *
-     * Output only. GCP project ID.
+     * Output only. Google Cloud project ID.
      * 
* * string project_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -3490,7 +3568,7 @@ public java.lang.String getProjectId() { * * *
-     * Output only. GCP project ID.
+     * Output only. Google Cloud project ID.
      * 
* * string project_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -3512,7 +3590,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-     * Output only. GCP project ID.
+     * Output only. Google Cloud project ID.
      * 
* * string project_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -3533,7 +3611,7 @@ public Builder setProjectId(java.lang.String value) { * * *
-     * Output only. GCP project ID.
+     * Output only. Google Cloud project ID.
      * 
* * string project_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -3550,7 +3628,7 @@ public Builder clearProjectId() { * * *
-     * Output only. GCP project ID.
+     * Output only. Google Cloud project ID.
      * 
* * string project_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -3569,6 +3647,117 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object source_ = ""; + /** + * + * + *
+     * Optional. An optional arbitrary string that could be used as a tag for
+     * tracking link source.
+     * 
+ * + * string source = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The source. + */ + public java.lang.String getSource() { + java.lang.Object ref = source_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + source_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. An optional arbitrary string that could be used as a tag for
+     * tracking link source.
+     * 
+ * + * string source = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for source. + */ + public com.google.protobuf.ByteString getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. An optional arbitrary string that could be used as a tag for
+     * tracking link source.
+     * 
+ * + * string source = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The source to set. + * @return This builder for chaining. + */ + public Builder setSource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. An optional arbitrary string that could be used as a tag for
+     * tracking link source.
+     * 
+ * + * string source = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSource() { + source_ = getDefaultInstance().getSource(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. An optional arbitrary string that could be used as a tag for
+     * tracking link source.
+     * 
+ * + * string source = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for source to set. + * @return This builder for chaining. + */ + public Builder setSourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + source_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/MerchantCenterAccountLinkOrBuilder.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/MerchantCenterAccountLinkOrBuilder.java index 906f71814f40..bfb4d0cbb171 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/MerchantCenterAccountLinkOrBuilder.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/MerchantCenterAccountLinkOrBuilder.java @@ -117,12 +117,12 @@ public interface MerchantCenterAccountLinkOrBuilder * * *
-   * Required. The branch id (e.g. 0/1/2) within the catalog that products from
+   * Required. The branch ID (e.g. 0/1/2) within the catalog that products from
    * merchant_center_account_id are streamed to. When updating this field, an
    * empty value will use the currently configured default branch. However,
    * changing the default branch later on won't change the linked branch here.
    *
-   * A single branch id can only have one linked merchant center account id.
+   * A single branch ID can only have one linked Merchant Center account ID.
    * 
* * string branch_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -134,12 +134,12 @@ public interface MerchantCenterAccountLinkOrBuilder * * *
-   * Required. The branch id (e.g. 0/1/2) within the catalog that products from
+   * Required. The branch ID (e.g. 0/1/2) within the catalog that products from
    * merchant_center_account_id are streamed to. When updating this field, an
    * empty value will use the currently configured default branch. However,
    * changing the default branch later on won't change the linked branch here.
    *
-   * A single branch id can only have one linked merchant center account id.
+   * A single branch ID can only have one linked Merchant Center account ID.
    * 
* * string branch_id = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -333,7 +333,7 @@ com.google.cloud.retail.v2alpha.MerchantCenterAccountLink.MerchantCenterFeedFilt * * *
-   * Output only. GCP project ID.
+   * Output only. Google Cloud project ID.
    * 
* * string project_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -345,7 +345,7 @@ com.google.cloud.retail.v2alpha.MerchantCenterAccountLink.MerchantCenterFeedFilt * * *
-   * Output only. GCP project ID.
+   * Output only. Google Cloud project ID.
    * 
* * string project_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -353,4 +353,31 @@ com.google.cloud.retail.v2alpha.MerchantCenterAccountLink.MerchantCenterFeedFilt * @return The bytes for projectId. */ com.google.protobuf.ByteString getProjectIdBytes(); + + /** + * + * + *
+   * Optional. An optional arbitrary string that could be used as a tag for
+   * tracking link source.
+   * 
+ * + * string source = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The source. + */ + java.lang.String getSource(); + /** + * + * + *
+   * Optional. An optional arbitrary string that could be used as a tag for
+   * tracking link source.
+   * 
+ * + * string source = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for source. + */ + com.google.protobuf.ByteString getSourceBytes(); } diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/MerchantCenterAccountLinkProto.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/MerchantCenterAccountLinkProto.java index 8ae9e363302c..6c78ba544f13 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/MerchantCenterAccountLinkProto.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/MerchantCenterAccountLinkProto.java @@ -53,7 +53,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "enter_account_link.proto\022\033google.cloud.r" + "etail.v2alpha\032\037google/api/field_behavior" + ".proto\032\031google/api/resource.proto\032\037googl" - + "e/protobuf/timestamp.proto\"\306\005\n\031MerchantC" + + "e/protobuf/timestamp.proto\"\333\005\n\031MerchantC" + "enterAccountLink\022\024\n\004name\030\001 \001(\tB\006\340A\005\340A\003\022\022" + "\n\002id\030\010 \001(\tB\006\340A\005\340A\003\022\'\n\032merchant_center_ac" + "count_id\030\002 \001(\003B\003\340A\002\022\026\n\tbranch_id\030\003 \001(\tB\003" @@ -63,24 +63,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "Link.MerchantCenterFeedFilter\022P\n\005state\030\007" + " \001(\0162<.google.cloud.retail.v2alpha.Merch" + "antCenterAccountLink.StateB\003\340A\003\022\027\n\nproje" - + "ct_id\030\t \001(\tB\003\340A\003\032N\n\030MerchantCenterFeedFi" - + "lter\022\027\n\017primary_feed_id\030\001 \001(\003\022\031\n\021primary" - + "_feed_name\030\002 \001(\t\"C\n\005State\022\025\n\021STATE_UNSPE" - + "CIFIED\020\000\022\013\n\007PENDING\020\001\022\n\n\006ACTIVE\020\002\022\n\n\006FAI" - + "LED\020\003:\253\001\352A\247\001\n/retail.googleapis.com/Merc" - + "hantCenterAccountLink\022tprojects/{project" - + "}/locations/{location}/catalogs/{catalog" - + "}/merchantCenterAccountLinks/{merchant_c" - + "enter_account_link}\"\213\001\n\'CreateMerchantCe" - + "nterAccountLinkMetadata\022/\n\013create_time\030\001" - + " \001(\0132\032.google.protobuf.Timestamp\022/\n\013upda" - + "te_time\030\002 \001(\0132\032.google.protobuf.Timestam" - + "pB\342\001\n\037com.google.cloud.retail.v2alphaB\036M" - + "erchantCenterAccountLinkProtoP\001Z7cloud.g" - + "oogle.com/go/retail/apiv2alpha/retailpb;" - + "retailpb\242\002\006RETAIL\252\002\033Google.Cloud.Retail." - + "V2Alpha\312\002\033Google\\Cloud\\Retail\\V2alpha\352\002\036" - + "Google::Cloud::Retail::V2alphab\006proto3" + + "ct_id\030\t \001(\tB\003\340A\003\022\023\n\006source\030\n \001(\tB\003\340A\001\032N\n" + + "\030MerchantCenterFeedFilter\022\027\n\017primary_fee" + + "d_id\030\001 \001(\003\022\031\n\021primary_feed_name\030\002 \001(\t\"C\n" + + "\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007PENDING" + + "\020\001\022\n\n\006ACTIVE\020\002\022\n\n\006FAILED\020\003:\253\001\352A\247\001\n/retai" + + "l.googleapis.com/MerchantCenterAccountLi" + + "nk\022tprojects/{project}/locations/{locati" + + "on}/catalogs/{catalog}/merchantCenterAcc" + + "ountLinks/{merchant_center_account_link}" + + "\"\213\001\n\'CreateMerchantCenterAccountLinkMeta" + + "data\022/\n\013create_time\030\001 \001(\0132\032.google.proto" + + "buf.Timestamp\022/\n\013update_time\030\002 \001(\0132\032.goo" + + "gle.protobuf.TimestampB\342\001\n\037com.google.cl" + + "oud.retail.v2alphaB\036MerchantCenterAccoun" + + "tLinkProtoP\001Z7cloud.google.com/go/retail" + + "/apiv2alpha/retailpb;retailpb\242\002\006RETAIL\252\002" + + "\033Google.Cloud.Retail.V2Alpha\312\002\033Google\\Cl" + + "oud\\Retail\\V2alpha\352\002\036Google::Cloud::Reta" + + "il::V2alphab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -105,6 +106,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FeedFilters", "State", "ProjectId", + "Source", }); internal_static_google_cloud_retail_v2alpha_MerchantCenterAccountLink_MerchantCenterFeedFilter_descriptor = internal_static_google_cloud_retail_v2alpha_MerchantCenterAccountLink_descriptor diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/MerchantCenterLink.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/MerchantCenterLink.java index d39796cdc426..927ad445315a 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/MerchantCenterLink.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/MerchantCenterLink.java @@ -24,8 +24,8 @@ * *
  * Represents a link between a Merchant Center account and a branch.
- * Once a link is established, products from the linked merchant center account
- * will be streamed to the linked branch.
+ * After a link is established, products from the linked Merchant Center account
+ * are streamed to the linked branch.
  * 
* * Protobuf type {@code google.cloud.retail.v2alpha.MerchantCenterLink} @@ -75,7 +75,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The linked [Merchant center account
+   * Required. The linked [Merchant Center account
    * ID](https://developers.google.com/shopping-content/guides/accountstatuses).
    * The account must be a standalone account or a sub-account of a MCA.
    * 
@@ -102,7 +102,7 @@ public long getMerchantCenterAccountId() { * empty value will use the currently configured default branch. However, * changing the default branch later on won't change the linked branch here. * - * A single branch ID can only have one linked merchant center account ID. + * A single branch ID can only have one linked Merchant Center account ID. * * * string branch_id = 2; @@ -130,7 +130,7 @@ public java.lang.String getBranchId() { * empty value will use the currently configured default branch. However, * changing the default branch later on won't change the linked branch here. * - * A single branch ID can only have one linked merchant center account ID. + * A single branch ID can only have one linked Merchant Center account ID. * * * string branch_id = 2; @@ -666,8 +666,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * Represents a link between a Merchant Center account and a branch.
-   * Once a link is established, products from the linked merchant center account
-   * will be streamed to the linked branch.
+   * After a link is established, products from the linked Merchant Center account
+   * are streamed to the linked branch.
    * 
* * Protobuf type {@code google.cloud.retail.v2alpha.MerchantCenterLink} @@ -978,7 +978,7 @@ public Builder mergeFrom( * * *
-     * Required. The linked [Merchant center account
+     * Required. The linked [Merchant Center account
      * ID](https://developers.google.com/shopping-content/guides/accountstatuses).
      * The account must be a standalone account or a sub-account of a MCA.
      * 
@@ -995,7 +995,7 @@ public long getMerchantCenterAccountId() { * * *
-     * Required. The linked [Merchant center account
+     * Required. The linked [Merchant Center account
      * ID](https://developers.google.com/shopping-content/guides/accountstatuses).
      * The account must be a standalone account or a sub-account of a MCA.
      * 
@@ -1016,7 +1016,7 @@ public Builder setMerchantCenterAccountId(long value) { * * *
-     * Required. The linked [Merchant center account
+     * Required. The linked [Merchant Center account
      * ID](https://developers.google.com/shopping-content/guides/accountstatuses).
      * The account must be a standalone account or a sub-account of a MCA.
      * 
@@ -1042,7 +1042,7 @@ public Builder clearMerchantCenterAccountId() { * empty value will use the currently configured default branch. However, * changing the default branch later on won't change the linked branch here. * - * A single branch ID can only have one linked merchant center account ID. + * A single branch ID can only have one linked Merchant Center account ID. * * * string branch_id = 2; @@ -1069,7 +1069,7 @@ public java.lang.String getBranchId() { * empty value will use the currently configured default branch. However, * changing the default branch later on won't change the linked branch here. * - * A single branch ID can only have one linked merchant center account ID. + * A single branch ID can only have one linked Merchant Center account ID. * * * string branch_id = 2; @@ -1096,7 +1096,7 @@ public com.google.protobuf.ByteString getBranchIdBytes() { * empty value will use the currently configured default branch. However, * changing the default branch later on won't change the linked branch here. * - * A single branch ID can only have one linked merchant center account ID. + * A single branch ID can only have one linked Merchant Center account ID. * * * string branch_id = 2; @@ -1122,7 +1122,7 @@ public Builder setBranchId(java.lang.String value) { * empty value will use the currently configured default branch. However, * changing the default branch later on won't change the linked branch here. * - * A single branch ID can only have one linked merchant center account ID. + * A single branch ID can only have one linked Merchant Center account ID. * * * string branch_id = 2; @@ -1144,7 +1144,7 @@ public Builder clearBranchId() { * empty value will use the currently configured default branch. However, * changing the default branch later on won't change the linked branch here. * - * A single branch ID can only have one linked merchant center account ID. + * A single branch ID can only have one linked Merchant Center account ID. * * * string branch_id = 2; diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/MerchantCenterLinkOrBuilder.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/MerchantCenterLinkOrBuilder.java index 50f5fe3d282a..25a3bcf27949 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/MerchantCenterLinkOrBuilder.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/MerchantCenterLinkOrBuilder.java @@ -28,7 +28,7 @@ public interface MerchantCenterLinkOrBuilder * * *
-   * Required. The linked [Merchant center account
+   * Required. The linked [Merchant Center account
    * ID](https://developers.google.com/shopping-content/guides/accountstatuses).
    * The account must be a standalone account or a sub-account of a MCA.
    * 
@@ -48,7 +48,7 @@ public interface MerchantCenterLinkOrBuilder * empty value will use the currently configured default branch. However, * changing the default branch later on won't change the linked branch here. * - * A single branch ID can only have one linked merchant center account ID. + * A single branch ID can only have one linked Merchant Center account ID. * * * string branch_id = 2; @@ -65,7 +65,7 @@ public interface MerchantCenterLinkOrBuilder * empty value will use the currently configured default branch. However, * changing the default branch later on won't change the linked branch here. * - * A single branch ID can only have one linked merchant center account ID. + * A single branch ID can only have one linked Merchant Center account ID. * * * string branch_id = 2; diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/Model.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/Model.java index 1115ec9346d0..6998d6eead5f 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/Model.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/Model.java @@ -774,6 +774,174 @@ private DataState(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.retail.v2alpha.Model.DataState) } + /** + * + * + *
+   * Use single or multiple context products for recommendations.
+   * 
+ * + * Protobuf enum {@code google.cloud.retail.v2alpha.Model.ContextProductsType} + */ + public enum ContextProductsType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified default value, should never be explicitly set.
+     * Defaults to
+     * [MULTIPLE_CONTEXT_PRODUCTS][google.cloud.retail.v2alpha.Model.ContextProductsType.MULTIPLE_CONTEXT_PRODUCTS].
+     * 
+ * + * CONTEXT_PRODUCTS_TYPE_UNSPECIFIED = 0; + */ + CONTEXT_PRODUCTS_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Use only a single product as context for the recommendation. Typically
+     * used on pages like add-to-cart or product details.
+     * 
+ * + * SINGLE_CONTEXT_PRODUCT = 1; + */ + SINGLE_CONTEXT_PRODUCT(1), + /** + * + * + *
+     * Use one or multiple products as context for the recommendation. Typically
+     * used on shopping cart pages.
+     * 
+ * + * MULTIPLE_CONTEXT_PRODUCTS = 2; + */ + MULTIPLE_CONTEXT_PRODUCTS(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified default value, should never be explicitly set.
+     * Defaults to
+     * [MULTIPLE_CONTEXT_PRODUCTS][google.cloud.retail.v2alpha.Model.ContextProductsType.MULTIPLE_CONTEXT_PRODUCTS].
+     * 
+ * + * CONTEXT_PRODUCTS_TYPE_UNSPECIFIED = 0; + */ + public static final int CONTEXT_PRODUCTS_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Use only a single product as context for the recommendation. Typically
+     * used on pages like add-to-cart or product details.
+     * 
+ * + * SINGLE_CONTEXT_PRODUCT = 1; + */ + public static final int SINGLE_CONTEXT_PRODUCT_VALUE = 1; + /** + * + * + *
+     * Use one or multiple products as context for the recommendation. Typically
+     * used on shopping cart pages.
+     * 
+ * + * MULTIPLE_CONTEXT_PRODUCTS = 2; + */ + public static final int MULTIPLE_CONTEXT_PRODUCTS_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ContextProductsType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ContextProductsType forNumber(int value) { + switch (value) { + case 0: + return CONTEXT_PRODUCTS_TYPE_UNSPECIFIED; + case 1: + return SINGLE_CONTEXT_PRODUCT; + case 2: + return MULTIPLE_CONTEXT_PRODUCTS; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ContextProductsType findValueByNumber(int number) { + return ContextProductsType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.Model.getDescriptor().getEnumTypes().get(4); + } + + private static final ContextProductsType[] VALUES = values(); + + public static ContextProductsType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ContextProductsType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.retail.v2alpha.Model.ContextProductsType) + } + public interface PageOptimizationConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2alpha.Model.PageOptimizationConfig) @@ -6320,123 +6488,1732 @@ public com.google.cloud.retail.v2alpha.Model.ServingConfigList getDefaultInstanc } } - private int bitField0_; - private int trainingConfigCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object trainingConfig_; - - public enum TrainingConfigCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - PAGE_OPTIMIZATION_CONFIG(17), - TRAININGCONFIG_NOT_SET(0); - private final int value; + public interface FrequentlyBoughtTogetherFeaturesConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig) + com.google.protobuf.MessageOrBuilder { - private TrainingConfigCase(int value) { - this.value = value; - } /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. + * + * + *
+     * Optional. Specifies the context of the model when it is used in predict
+     * requests. Can only be set for the `frequently-bought-together` type. If
+     * it isn't specified, it defaults to
+     * [MULTIPLE_CONTEXT_PRODUCTS][google.cloud.retail.v2alpha.Model.ContextProductsType.MULTIPLE_CONTEXT_PRODUCTS].
+     * 
+ * + * + * .google.cloud.retail.v2alpha.Model.ContextProductsType context_products_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for contextProductsType. */ - @java.lang.Deprecated - public static TrainingConfigCase valueOf(int value) { - return forNumber(value); - } - - public static TrainingConfigCase forNumber(int value) { - switch (value) { - case 17: - return PAGE_OPTIMIZATION_CONFIG; - case 0: - return TRAININGCONFIG_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public TrainingConfigCase getTrainingConfigCase() { - return TrainingConfigCase.forNumber(trainingConfigCase_); - } - - public static final int PAGE_OPTIMIZATION_CONFIG_FIELD_NUMBER = 17; - /** - * - * - *
-   * Optional. The page optimization config.
-   * 
- * - * - * .google.cloud.retail.v2alpha.Model.PageOptimizationConfig page_optimization_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the pageOptimizationConfig field is set. - */ - @java.lang.Override - public boolean hasPageOptimizationConfig() { - return trainingConfigCase_ == 17; + int getContextProductsTypeValue(); + /** + * + * + *
+     * Optional. Specifies the context of the model when it is used in predict
+     * requests. Can only be set for the `frequently-bought-together` type. If
+     * it isn't specified, it defaults to
+     * [MULTIPLE_CONTEXT_PRODUCTS][google.cloud.retail.v2alpha.Model.ContextProductsType.MULTIPLE_CONTEXT_PRODUCTS].
+     * 
+ * + * + * .google.cloud.retail.v2alpha.Model.ContextProductsType context_products_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The contextProductsType. + */ + com.google.cloud.retail.v2alpha.Model.ContextProductsType getContextProductsType(); } /** * * *
-   * Optional. The page optimization config.
+   * Additional configs for the frequently-bought-together model type.
    * 
* - * - * .google.cloud.retail.v2alpha.Model.PageOptimizationConfig page_optimization_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The pageOptimizationConfig. + * Protobuf type {@code google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig} */ - @java.lang.Override - public com.google.cloud.retail.v2alpha.Model.PageOptimizationConfig getPageOptimizationConfig() { - if (trainingConfigCase_ == 17) { - return (com.google.cloud.retail.v2alpha.Model.PageOptimizationConfig) trainingConfig_; + public static final class FrequentlyBoughtTogetherFeaturesConfig + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig) + FrequentlyBoughtTogetherFeaturesConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use FrequentlyBoughtTogetherFeaturesConfig.newBuilder() to construct. + private FrequentlyBoughtTogetherFeaturesConfig( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); } - return com.google.cloud.retail.v2alpha.Model.PageOptimizationConfig.getDefaultInstance(); - } - /** - * - * - *
-   * Optional. The page optimization config.
-   * 
- * - * - * .google.cloud.retail.v2alpha.Model.PageOptimizationConfig page_optimization_config = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.retail.v2alpha.Model.PageOptimizationConfigOrBuilder - getPageOptimizationConfigOrBuilder() { - if (trainingConfigCase_ == 17) { - return (com.google.cloud.retail.v2alpha.Model.PageOptimizationConfig) trainingConfig_; + + private FrequentlyBoughtTogetherFeaturesConfig() { + contextProductsType_ = 0; } - return com.google.cloud.retail.v2alpha.Model.PageOptimizationConfig.getDefaultInstance(); - } - public static final int NAME_FIELD_NUMBER = 1; + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FrequentlyBoughtTogetherFeaturesConfig(); + } - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
-   * Required. The fully qualified resource name of the model.
-   *
-   * Format:
-   * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}`
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.retail.v2alpha.ModelProto
+          .internal_static_google_cloud_retail_v2alpha_Model_FrequentlyBoughtTogetherFeaturesConfig_descriptor;
+    }
+
+    @java.lang.Override
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+        internalGetFieldAccessorTable() {
+      return com.google.cloud.retail.v2alpha.ModelProto
+          .internal_static_google_cloud_retail_v2alpha_Model_FrequentlyBoughtTogetherFeaturesConfig_fieldAccessorTable
+          .ensureFieldAccessorsInitialized(
+              com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig.class,
+              com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig.Builder
+                  .class);
+    }
+
+    public static final int CONTEXT_PRODUCTS_TYPE_FIELD_NUMBER = 2;
+    private int contextProductsType_ = 0;
+    /**
+     *
+     *
+     * 
+     * Optional. Specifies the context of the model when it is used in predict
+     * requests. Can only be set for the `frequently-bought-together` type. If
+     * it isn't specified, it defaults to
+     * [MULTIPLE_CONTEXT_PRODUCTS][google.cloud.retail.v2alpha.Model.ContextProductsType.MULTIPLE_CONTEXT_PRODUCTS].
+     * 
+ * + * + * .google.cloud.retail.v2alpha.Model.ContextProductsType context_products_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for contextProductsType. + */ + @java.lang.Override + public int getContextProductsTypeValue() { + return contextProductsType_; + } + /** + * + * + *
+     * Optional. Specifies the context of the model when it is used in predict
+     * requests. Can only be set for the `frequently-bought-together` type. If
+     * it isn't specified, it defaults to
+     * [MULTIPLE_CONTEXT_PRODUCTS][google.cloud.retail.v2alpha.Model.ContextProductsType.MULTIPLE_CONTEXT_PRODUCTS].
+     * 
+ * + * + * .google.cloud.retail.v2alpha.Model.ContextProductsType context_products_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The contextProductsType. + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.Model.ContextProductsType getContextProductsType() { + com.google.cloud.retail.v2alpha.Model.ContextProductsType result = + com.google.cloud.retail.v2alpha.Model.ContextProductsType.forNumber(contextProductsType_); + return result == null + ? com.google.cloud.retail.v2alpha.Model.ContextProductsType.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (contextProductsType_ + != com.google.cloud.retail.v2alpha.Model.ContextProductsType + .CONTEXT_PRODUCTS_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, contextProductsType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (contextProductsType_ + != com.google.cloud.retail.v2alpha.Model.ContextProductsType + .CONTEXT_PRODUCTS_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, contextProductsType_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig)) { + return super.equals(obj); + } + com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig other = + (com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig) obj; + + if (contextProductsType_ != other.contextProductsType_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONTEXT_PRODUCTS_TYPE_FIELD_NUMBER; + hash = (53 * hash) + contextProductsType_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Additional configs for the frequently-bought-together model type.
+     * 
+ * + * Protobuf type {@code + * google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig) + com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.ModelProto + .internal_static_google_cloud_retail_v2alpha_Model_FrequentlyBoughtTogetherFeaturesConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.ModelProto + .internal_static_google_cloud_retail_v2alpha_Model_FrequentlyBoughtTogetherFeaturesConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig.class, + com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig.Builder + .class); + } + + // Construct using + // com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + contextProductsType_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2alpha.ModelProto + .internal_static_google_cloud_retail_v2alpha_Model_FrequentlyBoughtTogetherFeaturesConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig + getDefaultInstanceForType() { + return com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig build() { + com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig + buildPartial() { + com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig result = + new com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.contextProductsType_ = contextProductsType_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig) { + return mergeFrom( + (com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig other) { + if (other + == com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig + .getDefaultInstance()) return this; + if (other.contextProductsType_ != 0) { + setContextProductsTypeValue(other.getContextProductsTypeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 16: + { + contextProductsType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int contextProductsType_ = 0; + /** + * + * + *
+       * Optional. Specifies the context of the model when it is used in predict
+       * requests. Can only be set for the `frequently-bought-together` type. If
+       * it isn't specified, it defaults to
+       * [MULTIPLE_CONTEXT_PRODUCTS][google.cloud.retail.v2alpha.Model.ContextProductsType.MULTIPLE_CONTEXT_PRODUCTS].
+       * 
+ * + * + * .google.cloud.retail.v2alpha.Model.ContextProductsType context_products_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for contextProductsType. + */ + @java.lang.Override + public int getContextProductsTypeValue() { + return contextProductsType_; + } + /** + * + * + *
+       * Optional. Specifies the context of the model when it is used in predict
+       * requests. Can only be set for the `frequently-bought-together` type. If
+       * it isn't specified, it defaults to
+       * [MULTIPLE_CONTEXT_PRODUCTS][google.cloud.retail.v2alpha.Model.ContextProductsType.MULTIPLE_CONTEXT_PRODUCTS].
+       * 
+ * + * + * .google.cloud.retail.v2alpha.Model.ContextProductsType context_products_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for contextProductsType to set. + * @return This builder for chaining. + */ + public Builder setContextProductsTypeValue(int value) { + contextProductsType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Specifies the context of the model when it is used in predict
+       * requests. Can only be set for the `frequently-bought-together` type. If
+       * it isn't specified, it defaults to
+       * [MULTIPLE_CONTEXT_PRODUCTS][google.cloud.retail.v2alpha.Model.ContextProductsType.MULTIPLE_CONTEXT_PRODUCTS].
+       * 
+ * + * + * .google.cloud.retail.v2alpha.Model.ContextProductsType context_products_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The contextProductsType. + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.Model.ContextProductsType getContextProductsType() { + com.google.cloud.retail.v2alpha.Model.ContextProductsType result = + com.google.cloud.retail.v2alpha.Model.ContextProductsType.forNumber( + contextProductsType_); + return result == null + ? com.google.cloud.retail.v2alpha.Model.ContextProductsType.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Optional. Specifies the context of the model when it is used in predict
+       * requests. Can only be set for the `frequently-bought-together` type. If
+       * it isn't specified, it defaults to
+       * [MULTIPLE_CONTEXT_PRODUCTS][google.cloud.retail.v2alpha.Model.ContextProductsType.MULTIPLE_CONTEXT_PRODUCTS].
+       * 
+ * + * + * .google.cloud.retail.v2alpha.Model.ContextProductsType context_products_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The contextProductsType to set. + * @return This builder for chaining. + */ + public Builder setContextProductsType( + com.google.cloud.retail.v2alpha.Model.ContextProductsType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + contextProductsType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Specifies the context of the model when it is used in predict
+       * requests. Can only be set for the `frequently-bought-together` type. If
+       * it isn't specified, it defaults to
+       * [MULTIPLE_CONTEXT_PRODUCTS][google.cloud.retail.v2alpha.Model.ContextProductsType.MULTIPLE_CONTEXT_PRODUCTS].
+       * 
+ * + * + * .google.cloud.retail.v2alpha.Model.ContextProductsType context_products_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearContextProductsType() { + bitField0_ = (bitField0_ & ~0x00000001); + contextProductsType_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig) + private static final com.google.cloud.retail.v2alpha.Model + .FrequentlyBoughtTogetherFeaturesConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig(); + } + + public static com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FrequentlyBoughtTogetherFeaturesConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ModelFeaturesConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2alpha.Model.ModelFeaturesConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Additional configs for frequently-bought-together models.
+     * 
+ * + * + * .google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig frequently_bought_together_config = 1; + * + * + * @return Whether the frequentlyBoughtTogetherConfig field is set. + */ + boolean hasFrequentlyBoughtTogetherConfig(); + /** + * + * + *
+     * Additional configs for frequently-bought-together models.
+     * 
+ * + * + * .google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig frequently_bought_together_config = 1; + * + * + * @return The frequentlyBoughtTogetherConfig. + */ + com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig + getFrequentlyBoughtTogetherConfig(); + /** + * + * + *
+     * Additional configs for frequently-bought-together models.
+     * 
+ * + * + * .google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig frequently_bought_together_config = 1; + * + */ + com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfigOrBuilder + getFrequentlyBoughtTogetherConfigOrBuilder(); + + com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig.TypeDedicatedConfigCase + getTypeDedicatedConfigCase(); + } + /** + * + * + *
+   * Additional model features config.
+   * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.Model.ModelFeaturesConfig} + */ + public static final class ModelFeaturesConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2alpha.Model.ModelFeaturesConfig) + ModelFeaturesConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ModelFeaturesConfig.newBuilder() to construct. + private ModelFeaturesConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ModelFeaturesConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ModelFeaturesConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.ModelProto + .internal_static_google_cloud_retail_v2alpha_Model_ModelFeaturesConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.ModelProto + .internal_static_google_cloud_retail_v2alpha_Model_ModelFeaturesConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig.class, + com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig.Builder.class); + } + + private int typeDedicatedConfigCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object typeDedicatedConfig_; + + public enum TypeDedicatedConfigCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + FREQUENTLY_BOUGHT_TOGETHER_CONFIG(1), + TYPEDEDICATEDCONFIG_NOT_SET(0); + private final int value; + + private TypeDedicatedConfigCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TypeDedicatedConfigCase valueOf(int value) { + return forNumber(value); + } + + public static TypeDedicatedConfigCase forNumber(int value) { + switch (value) { + case 1: + return FREQUENTLY_BOUGHT_TOGETHER_CONFIG; + case 0: + return TYPEDEDICATEDCONFIG_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TypeDedicatedConfigCase getTypeDedicatedConfigCase() { + return TypeDedicatedConfigCase.forNumber(typeDedicatedConfigCase_); + } + + public static final int FREQUENTLY_BOUGHT_TOGETHER_CONFIG_FIELD_NUMBER = 1; + /** + * + * + *
+     * Additional configs for frequently-bought-together models.
+     * 
+ * + * + * .google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig frequently_bought_together_config = 1; + * + * + * @return Whether the frequentlyBoughtTogetherConfig field is set. + */ + @java.lang.Override + public boolean hasFrequentlyBoughtTogetherConfig() { + return typeDedicatedConfigCase_ == 1; + } + /** + * + * + *
+     * Additional configs for frequently-bought-together models.
+     * 
+ * + * + * .google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig frequently_bought_together_config = 1; + * + * + * @return The frequentlyBoughtTogetherConfig. + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig + getFrequentlyBoughtTogetherConfig() { + if (typeDedicatedConfigCase_ == 1) { + return (com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig) + typeDedicatedConfig_; + } + return com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig + .getDefaultInstance(); + } + /** + * + * + *
+     * Additional configs for frequently-bought-together models.
+     * 
+ * + * + * .google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig frequently_bought_together_config = 1; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfigOrBuilder + getFrequentlyBoughtTogetherConfigOrBuilder() { + if (typeDedicatedConfigCase_ == 1) { + return (com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig) + typeDedicatedConfig_; + } + return com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig + .getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (typeDedicatedConfigCase_ == 1) { + output.writeMessage( + 1, + (com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig) + typeDedicatedConfig_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (typeDedicatedConfigCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig) + typeDedicatedConfig_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig)) { + return super.equals(obj); + } + com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig other = + (com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig) obj; + + if (!getTypeDedicatedConfigCase().equals(other.getTypeDedicatedConfigCase())) return false; + switch (typeDedicatedConfigCase_) { + case 1: + if (!getFrequentlyBoughtTogetherConfig() + .equals(other.getFrequentlyBoughtTogetherConfig())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (typeDedicatedConfigCase_) { + case 1: + hash = (37 * hash) + FREQUENTLY_BOUGHT_TOGETHER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getFrequentlyBoughtTogetherConfig().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Additional model features config.
+     * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.Model.ModelFeaturesConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2alpha.Model.ModelFeaturesConfig) + com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.ModelProto + .internal_static_google_cloud_retail_v2alpha_Model_ModelFeaturesConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.ModelProto + .internal_static_google_cloud_retail_v2alpha_Model_ModelFeaturesConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig.class, + com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig.Builder.class); + } + + // Construct using com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (frequentlyBoughtTogetherConfigBuilder_ != null) { + frequentlyBoughtTogetherConfigBuilder_.clear(); + } + typeDedicatedConfigCase_ = 0; + typeDedicatedConfig_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2alpha.ModelProto + .internal_static_google_cloud_retail_v2alpha_Model_ModelFeaturesConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig getDefaultInstanceForType() { + return com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig build() { + com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig buildPartial() { + com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig result = + new com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig result) { + result.typeDedicatedConfigCase_ = typeDedicatedConfigCase_; + result.typeDedicatedConfig_ = this.typeDedicatedConfig_; + if (typeDedicatedConfigCase_ == 1 && frequentlyBoughtTogetherConfigBuilder_ != null) { + result.typeDedicatedConfig_ = frequentlyBoughtTogetherConfigBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig) { + return mergeFrom((com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig other) { + if (other == com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig.getDefaultInstance()) + return this; + switch (other.getTypeDedicatedConfigCase()) { + case FREQUENTLY_BOUGHT_TOGETHER_CONFIG: + { + mergeFrequentlyBoughtTogetherConfig(other.getFrequentlyBoughtTogetherConfig()); + break; + } + case TYPEDEDICATEDCONFIG_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getFrequentlyBoughtTogetherConfigFieldBuilder().getBuilder(), + extensionRegistry); + typeDedicatedConfigCase_ = 1; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int typeDedicatedConfigCase_ = 0; + private java.lang.Object typeDedicatedConfig_; + + public TypeDedicatedConfigCase getTypeDedicatedConfigCase() { + return TypeDedicatedConfigCase.forNumber(typeDedicatedConfigCase_); + } + + public Builder clearTypeDedicatedConfig() { + typeDedicatedConfigCase_ = 0; + typeDedicatedConfig_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig, + com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig.Builder, + com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfigOrBuilder> + frequentlyBoughtTogetherConfigBuilder_; + /** + * + * + *
+       * Additional configs for frequently-bought-together models.
+       * 
+ * + * + * .google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig frequently_bought_together_config = 1; + * + * + * @return Whether the frequentlyBoughtTogetherConfig field is set. + */ + @java.lang.Override + public boolean hasFrequentlyBoughtTogetherConfig() { + return typeDedicatedConfigCase_ == 1; + } + /** + * + * + *
+       * Additional configs for frequently-bought-together models.
+       * 
+ * + * + * .google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig frequently_bought_together_config = 1; + * + * + * @return The frequentlyBoughtTogetherConfig. + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig + getFrequentlyBoughtTogetherConfig() { + if (frequentlyBoughtTogetherConfigBuilder_ == null) { + if (typeDedicatedConfigCase_ == 1) { + return (com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig) + typeDedicatedConfig_; + } + return com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig + .getDefaultInstance(); + } else { + if (typeDedicatedConfigCase_ == 1) { + return frequentlyBoughtTogetherConfigBuilder_.getMessage(); + } + return com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig + .getDefaultInstance(); + } + } + /** + * + * + *
+       * Additional configs for frequently-bought-together models.
+       * 
+ * + * + * .google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig frequently_bought_together_config = 1; + * + */ + public Builder setFrequentlyBoughtTogetherConfig( + com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig value) { + if (frequentlyBoughtTogetherConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + typeDedicatedConfig_ = value; + onChanged(); + } else { + frequentlyBoughtTogetherConfigBuilder_.setMessage(value); + } + typeDedicatedConfigCase_ = 1; + return this; + } + /** + * + * + *
+       * Additional configs for frequently-bought-together models.
+       * 
+ * + * + * .google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig frequently_bought_together_config = 1; + * + */ + public Builder setFrequentlyBoughtTogetherConfig( + com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig.Builder + builderForValue) { + if (frequentlyBoughtTogetherConfigBuilder_ == null) { + typeDedicatedConfig_ = builderForValue.build(); + onChanged(); + } else { + frequentlyBoughtTogetherConfigBuilder_.setMessage(builderForValue.build()); + } + typeDedicatedConfigCase_ = 1; + return this; + } + /** + * + * + *
+       * Additional configs for frequently-bought-together models.
+       * 
+ * + * + * .google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig frequently_bought_together_config = 1; + * + */ + public Builder mergeFrequentlyBoughtTogetherConfig( + com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig value) { + if (frequentlyBoughtTogetherConfigBuilder_ == null) { + if (typeDedicatedConfigCase_ == 1 + && typeDedicatedConfig_ + != com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig + .getDefaultInstance()) { + typeDedicatedConfig_ = + com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig + .newBuilder( + (com.google.cloud.retail.v2alpha.Model + .FrequentlyBoughtTogetherFeaturesConfig) + typeDedicatedConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + typeDedicatedConfig_ = value; + } + onChanged(); + } else { + if (typeDedicatedConfigCase_ == 1) { + frequentlyBoughtTogetherConfigBuilder_.mergeFrom(value); + } else { + frequentlyBoughtTogetherConfigBuilder_.setMessage(value); + } + } + typeDedicatedConfigCase_ = 1; + return this; + } + /** + * + * + *
+       * Additional configs for frequently-bought-together models.
+       * 
+ * + * + * .google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig frequently_bought_together_config = 1; + * + */ + public Builder clearFrequentlyBoughtTogetherConfig() { + if (frequentlyBoughtTogetherConfigBuilder_ == null) { + if (typeDedicatedConfigCase_ == 1) { + typeDedicatedConfigCase_ = 0; + typeDedicatedConfig_ = null; + onChanged(); + } + } else { + if (typeDedicatedConfigCase_ == 1) { + typeDedicatedConfigCase_ = 0; + typeDedicatedConfig_ = null; + } + frequentlyBoughtTogetherConfigBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Additional configs for frequently-bought-together models.
+       * 
+ * + * + * .google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig frequently_bought_together_config = 1; + * + */ + public com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig.Builder + getFrequentlyBoughtTogetherConfigBuilder() { + return getFrequentlyBoughtTogetherConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Additional configs for frequently-bought-together models.
+       * 
+ * + * + * .google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig frequently_bought_together_config = 1; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfigOrBuilder + getFrequentlyBoughtTogetherConfigOrBuilder() { + if ((typeDedicatedConfigCase_ == 1) && (frequentlyBoughtTogetherConfigBuilder_ != null)) { + return frequentlyBoughtTogetherConfigBuilder_.getMessageOrBuilder(); + } else { + if (typeDedicatedConfigCase_ == 1) { + return (com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig) + typeDedicatedConfig_; + } + return com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig + .getDefaultInstance(); + } + } + /** + * + * + *
+       * Additional configs for frequently-bought-together models.
+       * 
+ * + * + * .google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig frequently_bought_together_config = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig, + com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig.Builder, + com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfigOrBuilder> + getFrequentlyBoughtTogetherConfigFieldBuilder() { + if (frequentlyBoughtTogetherConfigBuilder_ == null) { + if (!(typeDedicatedConfigCase_ == 1)) { + typeDedicatedConfig_ = + com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig + .getDefaultInstance(); + } + frequentlyBoughtTogetherConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig, + com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig + .Builder, + com.google.cloud.retail.v2alpha.Model + .FrequentlyBoughtTogetherFeaturesConfigOrBuilder>( + (com.google.cloud.retail.v2alpha.Model.FrequentlyBoughtTogetherFeaturesConfig) + typeDedicatedConfig_, + getParentForChildren(), + isClean()); + typeDedicatedConfig_ = null; + } + typeDedicatedConfigCase_ = 1; + onChanged(); + return frequentlyBoughtTogetherConfigBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2alpha.Model.ModelFeaturesConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2alpha.Model.ModelFeaturesConfig) + private static final com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig(); + } + + public static com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModelFeaturesConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int trainingConfigCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object trainingConfig_; + + public enum TrainingConfigCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + PAGE_OPTIMIZATION_CONFIG(17), + TRAININGCONFIG_NOT_SET(0); + private final int value; + + private TrainingConfigCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TrainingConfigCase valueOf(int value) { + return forNumber(value); + } + + public static TrainingConfigCase forNumber(int value) { + switch (value) { + case 17: + return PAGE_OPTIMIZATION_CONFIG; + case 0: + return TRAININGCONFIG_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TrainingConfigCase getTrainingConfigCase() { + return TrainingConfigCase.forNumber(trainingConfigCase_); + } + + public static final int PAGE_OPTIMIZATION_CONFIG_FIELD_NUMBER = 17; + /** + * + * + *
+   * Optional. The page optimization config.
+   * 
+ * + * + * .google.cloud.retail.v2alpha.Model.PageOptimizationConfig page_optimization_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the pageOptimizationConfig field is set. + */ + @java.lang.Override + public boolean hasPageOptimizationConfig() { + return trainingConfigCase_ == 17; + } + /** + * + * + *
+   * Optional. The page optimization config.
+   * 
+ * + * + * .google.cloud.retail.v2alpha.Model.PageOptimizationConfig page_optimization_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pageOptimizationConfig. + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.Model.PageOptimizationConfig getPageOptimizationConfig() { + if (trainingConfigCase_ == 17) { + return (com.google.cloud.retail.v2alpha.Model.PageOptimizationConfig) trainingConfig_; + } + return com.google.cloud.retail.v2alpha.Model.PageOptimizationConfig.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. The page optimization config.
+   * 
+ * + * + * .google.cloud.retail.v2alpha.Model.PageOptimizationConfig page_optimization_config = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.Model.PageOptimizationConfigOrBuilder + getPageOptimizationConfigOrBuilder() { + if (trainingConfigCase_ == 17) { + return (com.google.cloud.retail.v2alpha.Model.PageOptimizationConfig) trainingConfig_; + } + return com.google.cloud.retail.v2alpha.Model.PageOptimizationConfig.getDefaultInstance(); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The fully qualified resource name of the model.
+   *
+   * Format:
+   * `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}`
    * catalog_id has char limit of 50.
    * recommendation_model_id has char limit of 40.
    * 
@@ -7268,6 +9045,63 @@ public com.google.cloud.retail.v2alpha.Model.ServingConfigList getServingConfigL return servingConfigLists_.get(index); } + public static final int MODEL_FEATURES_CONFIG_FIELD_NUMBER = 22; + private com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig modelFeaturesConfig_; + /** + * + * + *
+   * Optional. Additional model features config.
+   * 
+ * + * + * .google.cloud.retail.v2alpha.Model.ModelFeaturesConfig model_features_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the modelFeaturesConfig field is set. + */ + @java.lang.Override + public boolean hasModelFeaturesConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+   * Optional. Additional model features config.
+   * 
+ * + * + * .google.cloud.retail.v2alpha.Model.ModelFeaturesConfig model_features_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modelFeaturesConfig. + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig getModelFeaturesConfig() { + return modelFeaturesConfig_ == null + ? com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig.getDefaultInstance() + : modelFeaturesConfig_; + } + /** + * + * + *
+   * Optional. Additional model features config.
+   * 
+ * + * + * .google.cloud.retail.v2alpha.Model.ModelFeaturesConfig model_features_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfigOrBuilder + getModelFeaturesConfigOrBuilder() { + return modelFeaturesConfig_ == null + ? com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig.getDefaultInstance() + : modelFeaturesConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -7339,6 +9173,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < servingConfigLists_.size(); i++) { output.writeMessage(19, servingConfigLists_.get(i)); } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(22, getModelFeaturesConfig()); + } getUnknownFields().writeTo(output); } @@ -7407,6 +9244,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, servingConfigLists_.get(i)); } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(22, getModelFeaturesConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -7445,6 +9286,10 @@ public boolean equals(final java.lang.Object obj) { if (dataState_ != other.dataState_) return false; if (filteringOption_ != other.filteringOption_) return false; if (!getServingConfigListsList().equals(other.getServingConfigListsList())) return false; + if (hasModelFeaturesConfig() != other.hasModelFeaturesConfig()) return false; + if (hasModelFeaturesConfig()) { + if (!getModelFeaturesConfig().equals(other.getModelFeaturesConfig())) return false; + } if (!getTrainingConfigCase().equals(other.getTrainingConfigCase())) return false; switch (trainingConfigCase_) { case 17: @@ -7500,6 +9345,10 @@ public int hashCode() { hash = (37 * hash) + SERVING_CONFIG_LISTS_FIELD_NUMBER; hash = (53 * hash) + getServingConfigListsList().hashCode(); } + if (hasModelFeaturesConfig()) { + hash = (37 * hash) + MODEL_FEATURES_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getModelFeaturesConfig().hashCode(); + } switch (trainingConfigCase_) { case 17: hash = (37 * hash) + PAGE_OPTIMIZATION_CONFIG_FIELD_NUMBER; @@ -7655,6 +9504,7 @@ private void maybeForceBuilderInitialization() { getUpdateTimeFieldBuilder(); getLastTuneTimeFieldBuilder(); getServingConfigListsFieldBuilder(); + getModelFeaturesConfigFieldBuilder(); } } @@ -7697,6 +9547,11 @@ public Builder clear() { servingConfigListsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00004000); + modelFeaturesConfig_ = null; + if (modelFeaturesConfigBuilder_ != null) { + modelFeaturesConfigBuilder_.dispose(); + modelFeaturesConfigBuilder_ = null; + } trainingConfigCase_ = 0; trainingConfig_ = null; return this; @@ -7793,6 +9648,13 @@ private void buildPartial0(com.google.cloud.retail.v2alpha.Model result) { if (((from_bitField0_ & 0x00002000) != 0)) { result.filteringOption_ = filteringOption_; } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.modelFeaturesConfig_ = + modelFeaturesConfigBuilder_ == null + ? modelFeaturesConfig_ + : modelFeaturesConfigBuilder_.build(); + to_bitField0_ |= 0x00000008; + } result.bitField0_ |= to_bitField0_; } @@ -7925,6 +9787,9 @@ public Builder mergeFrom(com.google.cloud.retail.v2alpha.Model other) { } } } + if (other.hasModelFeaturesConfig()) { + mergeModelFeaturesConfig(other.getModelFeaturesConfig()); + } switch (other.getTrainingConfigCase()) { case PAGE_OPTIMIZATION_CONFIG: { @@ -8061,6 +9926,13 @@ public Builder mergeFrom( } break; } // case 154 + case 178: + { + input.readMessage( + getModelFeaturesConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00008000; + break; + } // case 178 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -10761,6 +12633,215 @@ public Builder removeServingConfigLists(int index) { return servingConfigListsBuilder_; } + private com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig modelFeaturesConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig, + com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig.Builder, + com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfigOrBuilder> + modelFeaturesConfigBuilder_; + /** + * + * + *
+     * Optional. Additional model features config.
+     * 
+ * + * + * .google.cloud.retail.v2alpha.Model.ModelFeaturesConfig model_features_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the modelFeaturesConfig field is set. + */ + public boolean hasModelFeaturesConfig() { + return ((bitField0_ & 0x00008000) != 0); + } + /** + * + * + *
+     * Optional. Additional model features config.
+     * 
+ * + * + * .google.cloud.retail.v2alpha.Model.ModelFeaturesConfig model_features_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modelFeaturesConfig. + */ + public com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig getModelFeaturesConfig() { + if (modelFeaturesConfigBuilder_ == null) { + return modelFeaturesConfig_ == null + ? com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig.getDefaultInstance() + : modelFeaturesConfig_; + } else { + return modelFeaturesConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Additional model features config.
+     * 
+ * + * + * .google.cloud.retail.v2alpha.Model.ModelFeaturesConfig model_features_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setModelFeaturesConfig( + com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig value) { + if (modelFeaturesConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + modelFeaturesConfig_ = value; + } else { + modelFeaturesConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Additional model features config.
+     * 
+ * + * + * .google.cloud.retail.v2alpha.Model.ModelFeaturesConfig model_features_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setModelFeaturesConfig( + com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig.Builder builderForValue) { + if (modelFeaturesConfigBuilder_ == null) { + modelFeaturesConfig_ = builderForValue.build(); + } else { + modelFeaturesConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Additional model features config.
+     * 
+ * + * + * .google.cloud.retail.v2alpha.Model.ModelFeaturesConfig model_features_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeModelFeaturesConfig( + com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig value) { + if (modelFeaturesConfigBuilder_ == null) { + if (((bitField0_ & 0x00008000) != 0) + && modelFeaturesConfig_ != null + && modelFeaturesConfig_ + != com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig.getDefaultInstance()) { + getModelFeaturesConfigBuilder().mergeFrom(value); + } else { + modelFeaturesConfig_ = value; + } + } else { + modelFeaturesConfigBuilder_.mergeFrom(value); + } + if (modelFeaturesConfig_ != null) { + bitField0_ |= 0x00008000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Additional model features config.
+     * 
+ * + * + * .google.cloud.retail.v2alpha.Model.ModelFeaturesConfig model_features_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearModelFeaturesConfig() { + bitField0_ = (bitField0_ & ~0x00008000); + modelFeaturesConfig_ = null; + if (modelFeaturesConfigBuilder_ != null) { + modelFeaturesConfigBuilder_.dispose(); + modelFeaturesConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Additional model features config.
+     * 
+ * + * + * .google.cloud.retail.v2alpha.Model.ModelFeaturesConfig model_features_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig.Builder + getModelFeaturesConfigBuilder() { + bitField0_ |= 0x00008000; + onChanged(); + return getModelFeaturesConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Additional model features config.
+     * 
+ * + * + * .google.cloud.retail.v2alpha.Model.ModelFeaturesConfig model_features_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfigOrBuilder + getModelFeaturesConfigOrBuilder() { + if (modelFeaturesConfigBuilder_ != null) { + return modelFeaturesConfigBuilder_.getMessageOrBuilder(); + } else { + return modelFeaturesConfig_ == null + ? com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig.getDefaultInstance() + : modelFeaturesConfig_; + } + } + /** + * + * + *
+     * Optional. Additional model features config.
+     * 
+ * + * + * .google.cloud.retail.v2alpha.Model.ModelFeaturesConfig model_features_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig, + com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig.Builder, + com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfigOrBuilder> + getModelFeaturesConfigFieldBuilder() { + if (modelFeaturesConfigBuilder_ == null) { + modelFeaturesConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig, + com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig.Builder, + com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfigOrBuilder>( + getModelFeaturesConfig(), getParentForChildren(), isClean()); + modelFeaturesConfig_ = null; + } + return modelFeaturesConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ModelOrBuilder.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ModelOrBuilder.java index 62576d19383c..161a4504f77c 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ModelOrBuilder.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ModelOrBuilder.java @@ -664,5 +664,47 @@ public interface ModelOrBuilder com.google.cloud.retail.v2alpha.Model.ServingConfigListOrBuilder getServingConfigListsOrBuilder( int index); + /** + * + * + *
+   * Optional. Additional model features config.
+   * 
+ * + * + * .google.cloud.retail.v2alpha.Model.ModelFeaturesConfig model_features_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the modelFeaturesConfig field is set. + */ + boolean hasModelFeaturesConfig(); + /** + * + * + *
+   * Optional. Additional model features config.
+   * 
+ * + * + * .google.cloud.retail.v2alpha.Model.ModelFeaturesConfig model_features_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modelFeaturesConfig. + */ + com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfig getModelFeaturesConfig(); + /** + * + * + *
+   * Optional. Additional model features config.
+   * 
+ * + * + * .google.cloud.retail.v2alpha.Model.ModelFeaturesConfig model_features_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.retail.v2alpha.Model.ModelFeaturesConfigOrBuilder + getModelFeaturesConfigOrBuilder(); + com.google.cloud.retail.v2alpha.Model.TrainingConfigCase getTrainingConfigCase(); } diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ModelProto.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ModelProto.java index 0efa2ee8a110..c1161df670c3 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ModelProto.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ModelProto.java @@ -48,6 +48,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_retail_v2alpha_Model_ServingConfigList_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_retail_v2alpha_Model_ServingConfigList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2alpha_Model_FrequentlyBoughtTogetherFeaturesConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2alpha_Model_FrequentlyBoughtTogetherFeaturesConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2alpha_Model_ModelFeaturesConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2alpha_Model_ModelFeaturesConfig_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -62,7 +70,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "pi/field_behavior.proto\032\031google/api/reso" + "urce.proto\032(google/cloud/retail/v2alpha/" + "common.proto\032\037google/protobuf/timestamp." - + "proto\"\374\020\n\005Model\022b\n\030page_optimization_con" + + "proto\"\201\025\n\005Model\022b\n\030page_optimization_con" + "fig\030\021 \001(\01329.google.cloud.retail.v2alpha." + "Model.PageOptimizationConfigB\003\340A\001H\000\022\021\n\004n" + "ame\030\001 \001(\tB\003\340A\002\022\031\n\014display_name\030\002 \001(\tB\003\340A" @@ -84,44 +92,57 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".google.cloud.retail.v2alpha.Recommendat" + "ionsFilteringOptionB\003\340A\001\022W\n\024serving_conf" + "ig_lists\030\023 \003(\01324.google.cloud.retail.v2a" - + "lpha.Model.ServingConfigListB\003\340A\003\032\302\005\n\026Pa" - + "geOptimizationConfig\022)\n\034page_optimizatio" - + "n_event_type\030\001 \001(\tB\003\340A\002\022T\n\006panels\030\002 \003(\0132" - + "?.google.cloud.retail.v2alpha.Model.Page" - + "OptimizationConfig.PanelB\003\340A\002\022_\n\013restric" - + "tion\030\003 \001(\0162E.google.cloud.retail.v2alpha" - + ".Model.PageOptimizationConfig.Restrictio" - + "nB\003\340A\001\0325\n\tCandidate\022\033\n\021serving_config_id" - + "\030\001 \001(\tH\000B\013\n\tcandidate\032\345\001\n\005Panel\022\031\n\014displ" - + "ay_name\030\001 \001(\tB\003\340A\001\022\\\n\ncandidates\030\002 \003(\0132C" - + ".google.cloud.retail.v2alpha.Model.PageO" - + "ptimizationConfig.CandidateB\003\340A\002\022c\n\021defa" - + "ult_candidate\030\003 \001(\0132C.google.cloud.retai" - + "l.v2alpha.Model.PageOptimizationConfig.C" - + "andidateB\003\340A\002\"\246\001\n\013Restriction\022\033\n\027RESTRIC" - + "TION_UNSPECIFIED\020\000\022\022\n\016NO_RESTRICTION\020\001\022%" - + "\n!UNIQUE_SERVING_CONFIG_RESTRICTION\020\002\022\034\n" - + "\030UNIQUE_MODEL_RESTRICTION\020\003\022!\n\035UNIQUE_MO" - + "DEL_TYPE_RESTRICTION\020\004\0324\n\021ServingConfigL" - + "ist\022\037\n\022serving_config_ids\030\001 \003(\tB\003\340A\001\"R\n\014" - + "ServingState\022\035\n\031SERVING_STATE_UNSPECIFIE" - + "D\020\000\022\014\n\010INACTIVE\020\001\022\n\n\006ACTIVE\020\002\022\t\n\005TUNED\020\003" - + "\"I\n\rTrainingState\022\036\n\032TRAINING_STATE_UNSP" - + "ECIFIED\020\000\022\n\n\006PAUSED\020\001\022\014\n\010TRAINING\020\002\"\220\001\n\023" - + "PeriodicTuningState\022%\n!PERIODIC_TUNING_S" - + "TATE_UNSPECIFIED\020\000\022\034\n\030PERIODIC_TUNING_DI" - + "SABLED\020\001\022\027\n\023ALL_TUNING_DISABLED\020\003\022\033\n\027PER" - + "IODIC_TUNING_ENABLED\020\002\"D\n\tDataState\022\032\n\026D" - + "ATA_STATE_UNSPECIFIED\020\000\022\013\n\007DATA_OK\020\001\022\016\n\n" - + "DATA_ERROR\020\002:k\352Ah\n\033retail.googleapis.com" - + "/Model\022Iprojects/{project}/locations/{lo" - + "cation}/catalogs/{catalog}/models/{model" - + "}B\021\n\017training_configB\316\001\n\037com.google.clou" - + "d.retail.v2alphaB\nModelProtoP\001Z7cloud.go" - + "ogle.com/go/retail/apiv2alpha/retailpb;r" - + "etailpb\242\002\006RETAIL\252\002\033Google.Cloud.Retail.V" - + "2Alpha\312\002\033Google\\Cloud\\Retail\\V2alpha\352\002\036G" - + "oogle::Cloud::Retail::V2alphab\006proto3" + + "lpha.Model.ServingConfigListB\003\340A\003\022Z\n\025mod" + + "el_features_config\030\026 \001(\01326.google.cloud." + + "retail.v2alpha.Model.ModelFeaturesConfig" + + "B\003\340A\001\032\302\005\n\026PageOptimizationConfig\022)\n\034page" + + "_optimization_event_type\030\001 \001(\tB\003\340A\002\022T\n\006p" + + "anels\030\002 \003(\0132?.google.cloud.retail.v2alph" + + "a.Model.PageOptimizationConfig.PanelB\003\340A" + + "\002\022_\n\013restriction\030\003 \001(\0162E.google.cloud.re" + + "tail.v2alpha.Model.PageOptimizationConfi" + + "g.RestrictionB\003\340A\001\0325\n\tCandidate\022\033\n\021servi" + + "ng_config_id\030\001 \001(\tH\000B\013\n\tcandidate\032\345\001\n\005Pa" + + "nel\022\031\n\014display_name\030\001 \001(\tB\003\340A\001\022\\\n\ncandid" + + "ates\030\002 \003(\0132C.google.cloud.retail.v2alpha" + + ".Model.PageOptimizationConfig.CandidateB" + + "\003\340A\002\022c\n\021default_candidate\030\003 \001(\0132C.google" + + ".cloud.retail.v2alpha.Model.PageOptimiza" + + "tionConfig.CandidateB\003\340A\002\"\246\001\n\013Restrictio" + + "n\022\033\n\027RESTRICTION_UNSPECIFIED\020\000\022\022\n\016NO_RES" + + "TRICTION\020\001\022%\n!UNIQUE_SERVING_CONFIG_REST" + + "RICTION\020\002\022\034\n\030UNIQUE_MODEL_RESTRICTION\020\003\022" + + "!\n\035UNIQUE_MODEL_TYPE_RESTRICTION\020\004\0324\n\021Se" + + "rvingConfigList\022\037\n\022serving_config_ids\030\001 " + + "\003(\tB\003\340A\001\032\204\001\n&FrequentlyBoughtTogetherFea" + + "turesConfig\022Z\n\025context_products_type\030\002 \001" + + "(\01626.google.cloud.retail.v2alpha.Model.C" + + "ontextProductsTypeB\003\340A\001\032\246\001\n\023ModelFeature" + + "sConfig\022v\n!frequently_bought_together_co" + + "nfig\030\001 \001(\0132I.google.cloud.retail.v2alpha" + + ".Model.FrequentlyBoughtTogetherFeaturesC" + + "onfigH\000B\027\n\025type_dedicated_config\"R\n\014Serv" + + "ingState\022\035\n\031SERVING_STATE_UNSPECIFIED\020\000\022" + + "\014\n\010INACTIVE\020\001\022\n\n\006ACTIVE\020\002\022\t\n\005TUNED\020\003\"I\n\r" + + "TrainingState\022\036\n\032TRAINING_STATE_UNSPECIF" + + "IED\020\000\022\n\n\006PAUSED\020\001\022\014\n\010TRAINING\020\002\"\220\001\n\023Peri" + + "odicTuningState\022%\n!PERIODIC_TUNING_STATE" + + "_UNSPECIFIED\020\000\022\034\n\030PERIODIC_TUNING_DISABL" + + "ED\020\001\022\027\n\023ALL_TUNING_DISABLED\020\003\022\033\n\027PERIODI" + + "C_TUNING_ENABLED\020\002\"D\n\tDataState\022\032\n\026DATA_" + + "STATE_UNSPECIFIED\020\000\022\013\n\007DATA_OK\020\001\022\016\n\nDATA" + + "_ERROR\020\002\"w\n\023ContextProductsType\022%\n!CONTE" + + "XT_PRODUCTS_TYPE_UNSPECIFIED\020\000\022\032\n\026SINGLE" + + "_CONTEXT_PRODUCT\020\001\022\035\n\031MULTIPLE_CONTEXT_P" + + "RODUCTS\020\002:k\352Ah\n\033retail.googleapis.com/Mo" + + "del\022Iprojects/{project}/locations/{locat" + + "ion}/catalogs/{catalog}/models/{model}B\021" + + "\n\017training_configB\316\001\n\037com.google.cloud.r" + + "etail.v2alphaB\nModelProtoP\001Z7cloud.googl" + + "e.com/go/retail/apiv2alpha/retailpb;reta" + + "ilpb\242\002\006RETAIL\252\002\033Google.Cloud.Retail.V2Al" + + "pha\312\002\033Google\\Cloud\\Retail\\V2alpha\352\002\036Goog" + + "le::Cloud::Retail::V2alphab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -153,6 +174,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DataState", "FilteringOption", "ServingConfigLists", + "ModelFeaturesConfig", "TrainingConfig", }); internal_static_google_cloud_retail_v2alpha_Model_PageOptimizationConfig_descriptor = @@ -191,6 +213,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "ServingConfigIds", }); + internal_static_google_cloud_retail_v2alpha_Model_FrequentlyBoughtTogetherFeaturesConfig_descriptor = + internal_static_google_cloud_retail_v2alpha_Model_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_retail_v2alpha_Model_FrequentlyBoughtTogetherFeaturesConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2alpha_Model_FrequentlyBoughtTogetherFeaturesConfig_descriptor, + new java.lang.String[] { + "ContextProductsType", + }); + internal_static_google_cloud_retail_v2alpha_Model_ModelFeaturesConfig_descriptor = + internal_static_google_cloud_retail_v2alpha_Model_descriptor.getNestedTypes().get(3); + internal_static_google_cloud_retail_v2alpha_Model_ModelFeaturesConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2alpha_Model_ModelFeaturesConfig_descriptor, + new java.lang.String[] { + "FrequentlyBoughtTogetherConfig", "TypeDedicatedConfig", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/Product.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/Product.java index fe8724982f49..0e006ac007d6 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/Product.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/Product.java @@ -578,24 +578,22 @@ public ExpirationCase getExpirationCase() { * * *
-   * The timestamp when this product becomes unavailable for
-   * [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search].
-   * Note that this is only applicable to
-   * [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] and
-   * [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION],
-   * and ignored for
-   * [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]. In
-   * general, we suggest the users to delete the stale products explicitly,
-   * instead of using this field to determine staleness.
+   * Note that this field is applied in the following ways:
    *
-   * If it is set, the [Product][google.cloud.retail.v2alpha.Product] is not
-   * available for
-   * [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search]
-   * after [expire_time][google.cloud.retail.v2alpha.Product.expire_time].
-   * However, the product can still be retrieved by
-   * [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]
-   * and
-   * [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts].
+   * * If the [Product][google.cloud.retail.v2alpha.Product] is already
+   * expired when it is uploaded, this product
+   *   is not indexed for search.
+   *
+   * * If the [Product][google.cloud.retail.v2alpha.Product] is not expired
+   * when it is uploaded, only the
+   *   [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]'s and
+   *   [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION]'s
+   *   expireTime is respected, and
+   *   [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]'s
+   *   expireTime is not used.
+   *
+   * In general, we suggest the users to delete the stale
+   * products explicitly, instead of using this field to determine staleness.
    *
    * [expire_time][google.cloud.retail.v2alpha.Product.expire_time] must be
    * later than
@@ -619,24 +617,22 @@ public boolean hasExpireTime() {
    *
    *
    * 
-   * The timestamp when this product becomes unavailable for
-   * [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search].
-   * Note that this is only applicable to
-   * [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] and
-   * [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION],
-   * and ignored for
-   * [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]. In
-   * general, we suggest the users to delete the stale products explicitly,
-   * instead of using this field to determine staleness.
+   * Note that this field is applied in the following ways:
    *
-   * If it is set, the [Product][google.cloud.retail.v2alpha.Product] is not
-   * available for
-   * [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search]
-   * after [expire_time][google.cloud.retail.v2alpha.Product.expire_time].
-   * However, the product can still be retrieved by
-   * [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]
-   * and
-   * [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts].
+   * * If the [Product][google.cloud.retail.v2alpha.Product] is already
+   * expired when it is uploaded, this product
+   *   is not indexed for search.
+   *
+   * * If the [Product][google.cloud.retail.v2alpha.Product] is not expired
+   * when it is uploaded, only the
+   *   [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]'s and
+   *   [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION]'s
+   *   expireTime is respected, and
+   *   [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]'s
+   *   expireTime is not used.
+   *
+   * In general, we suggest the users to delete the stale
+   * products explicitly, instead of using this field to determine staleness.
    *
    * [expire_time][google.cloud.retail.v2alpha.Product.expire_time] must be
    * later than
@@ -663,24 +659,22 @@ public com.google.protobuf.Timestamp getExpireTime() {
    *
    *
    * 
-   * The timestamp when this product becomes unavailable for
-   * [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search].
-   * Note that this is only applicable to
-   * [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] and
-   * [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION],
-   * and ignored for
-   * [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]. In
-   * general, we suggest the users to delete the stale products explicitly,
-   * instead of using this field to determine staleness.
+   * Note that this field is applied in the following ways:
    *
-   * If it is set, the [Product][google.cloud.retail.v2alpha.Product] is not
-   * available for
-   * [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search]
-   * after [expire_time][google.cloud.retail.v2alpha.Product.expire_time].
-   * However, the product can still be retrieved by
-   * [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]
-   * and
-   * [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts].
+   * * If the [Product][google.cloud.retail.v2alpha.Product] is already
+   * expired when it is uploaded, this product
+   *   is not indexed for search.
+   *
+   * * If the [Product][google.cloud.retail.v2alpha.Product] is not expired
+   * when it is uploaded, only the
+   *   [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]'s and
+   *   [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION]'s
+   *   expireTime is respected, and
+   *   [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]'s
+   *   expireTime is not used.
+   *
+   * In general, we suggest the users to delete the stale
+   * products explicitly, instead of using this field to determine staleness.
    *
    * [expire_time][google.cloud.retail.v2alpha.Product.expire_time] must be
    * later than
@@ -1307,9 +1301,10 @@ public com.google.protobuf.ByteString getGtinBytes() {
    * INVALID_ARGUMENT error is returned.
    *
    * At most 250 values are allowed per
-   * [Product][google.cloud.retail.v2alpha.Product]. Empty values are not
-   * allowed. Each value must be a UTF-8 encoded string with a length limit of
-   * 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned.
+   * [Product][google.cloud.retail.v2alpha.Product] unless overridden through
+   * the Google Cloud console. Empty values are not allowed. Each value must be
+   * a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise,
+   * an INVALID_ARGUMENT error is returned.
    *
    * Corresponding properties: Google Merchant Center property
    * [google_product_category][mc_google_product_category]. Schema.org property
@@ -1355,9 +1350,10 @@ public com.google.protobuf.ProtocolStringList getCategoriesList() {
    * INVALID_ARGUMENT error is returned.
    *
    * At most 250 values are allowed per
-   * [Product][google.cloud.retail.v2alpha.Product]. Empty values are not
-   * allowed. Each value must be a UTF-8 encoded string with a length limit of
-   * 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned.
+   * [Product][google.cloud.retail.v2alpha.Product] unless overridden through
+   * the Google Cloud console. Empty values are not allowed. Each value must be
+   * a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise,
+   * an INVALID_ARGUMENT error is returned.
    *
    * Corresponding properties: Google Merchant Center property
    * [google_product_category][mc_google_product_category]. Schema.org property
@@ -1403,9 +1399,10 @@ public int getCategoriesCount() {
    * INVALID_ARGUMENT error is returned.
    *
    * At most 250 values are allowed per
-   * [Product][google.cloud.retail.v2alpha.Product]. Empty values are not
-   * allowed. Each value must be a UTF-8 encoded string with a length limit of
-   * 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned.
+   * [Product][google.cloud.retail.v2alpha.Product] unless overridden through
+   * the Google Cloud console. Empty values are not allowed. Each value must be
+   * a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise,
+   * an INVALID_ARGUMENT error is returned.
    *
    * Corresponding properties: Google Merchant Center property
    * [google_product_category][mc_google_product_category]. Schema.org property
@@ -1452,9 +1449,10 @@ public java.lang.String getCategories(int index) {
    * INVALID_ARGUMENT error is returned.
    *
    * At most 250 values are allowed per
-   * [Product][google.cloud.retail.v2alpha.Product]. Empty values are not
-   * allowed. Each value must be a UTF-8 encoded string with a length limit of
-   * 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned.
+   * [Product][google.cloud.retail.v2alpha.Product] unless overridden through
+   * the Google Cloud console. Empty values are not allowed. Each value must be
+   * a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise,
+   * an INVALID_ARGUMENT error is returned.
    *
    * Corresponding properties: Google Merchant Center property
    * [google_product_category][mc_google_product_category]. Schema.org property
@@ -1549,9 +1547,10 @@ public com.google.protobuf.ByteString getTitleBytes() {
    * 
    * The brands of the product.
    *
-   * A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded
-   * string with a length limit of 1,000 characters. Otherwise, an
-   * INVALID_ARGUMENT error is returned.
+   * A maximum of 30 brands are allowed unless overridden through the Google
+   * Cloud console. Each
+   * brand must be a UTF-8 encoded string with a length limit of 1,000
+   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
    *
    * Corresponding properties: Google Merchant Center property
    * [brand](https://support.google.com/merchants/answer/6324351). Schema.org
@@ -1571,9 +1570,10 @@ public com.google.protobuf.ProtocolStringList getBrandsList() {
    * 
    * The brands of the product.
    *
-   * A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded
-   * string with a length limit of 1,000 characters. Otherwise, an
-   * INVALID_ARGUMENT error is returned.
+   * A maximum of 30 brands are allowed unless overridden through the Google
+   * Cloud console. Each
+   * brand must be a UTF-8 encoded string with a length limit of 1,000
+   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
    *
    * Corresponding properties: Google Merchant Center property
    * [brand](https://support.google.com/merchants/answer/6324351). Schema.org
@@ -1593,9 +1593,10 @@ public int getBrandsCount() {
    * 
    * The brands of the product.
    *
-   * A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded
-   * string with a length limit of 1,000 characters. Otherwise, an
-   * INVALID_ARGUMENT error is returned.
+   * A maximum of 30 brands are allowed unless overridden through the Google
+   * Cloud console. Each
+   * brand must be a UTF-8 encoded string with a length limit of 1,000
+   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
    *
    * Corresponding properties: Google Merchant Center property
    * [brand](https://support.google.com/merchants/answer/6324351). Schema.org
@@ -1616,9 +1617,10 @@ public java.lang.String getBrands(int index) {
    * 
    * The brands of the product.
    *
-   * A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded
-   * string with a length limit of 1,000 characters. Otherwise, an
-   * INVALID_ARGUMENT error is returned.
+   * A maximum of 30 brands are allowed unless overridden through the Google
+   * Cloud console. Each
+   * brand must be a UTF-8 encoded string with a length limit of 1,000
+   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
    *
    * Corresponding properties: Google Merchant Center property
    * [brand](https://support.google.com/merchants/answer/6324351). Schema.org
@@ -3432,7 +3434,7 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
    * .google.protobuf.FieldMask retrievable_fields = 30 [deprecated = true];
    *
    * @deprecated google.cloud.retail.v2alpha.Product.retrievable_fields is deprecated. See
-   *     google/cloud/retail/v2alpha/product.proto;l=574
+   *     google/cloud/retail/v2alpha/product.proto;l=570
    * @return Whether the retrievableFields field is set.
    */
   @java.lang.Override
@@ -3510,7 +3512,7 @@ public boolean hasRetrievableFields() {
    * .google.protobuf.FieldMask retrievable_fields = 30 [deprecated = true];
    *
    * @deprecated google.cloud.retail.v2alpha.Product.retrievable_fields is deprecated. See
-   *     google/cloud/retail/v2alpha/product.proto;l=574
+   *     google/cloud/retail/v2alpha/product.proto;l=570
    * @return The retrievableFields.
    */
   @java.lang.Override
@@ -5507,24 +5509,22 @@ public Builder clearExpiration() {
      *
      *
      * 
-     * The timestamp when this product becomes unavailable for
-     * [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search].
-     * Note that this is only applicable to
-     * [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] and
-     * [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION],
-     * and ignored for
-     * [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]. In
-     * general, we suggest the users to delete the stale products explicitly,
-     * instead of using this field to determine staleness.
+     * Note that this field is applied in the following ways:
      *
-     * If it is set, the [Product][google.cloud.retail.v2alpha.Product] is not
-     * available for
-     * [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search]
-     * after [expire_time][google.cloud.retail.v2alpha.Product.expire_time].
-     * However, the product can still be retrieved by
-     * [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]
-     * and
-     * [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts].
+     * * If the [Product][google.cloud.retail.v2alpha.Product] is already
+     * expired when it is uploaded, this product
+     *   is not indexed for search.
+     *
+     * * If the [Product][google.cloud.retail.v2alpha.Product] is not expired
+     * when it is uploaded, only the
+     *   [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]'s and
+     *   [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION]'s
+     *   expireTime is respected, and
+     *   [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]'s
+     *   expireTime is not used.
+     *
+     * In general, we suggest the users to delete the stale
+     * products explicitly, instead of using this field to determine staleness.
      *
      * [expire_time][google.cloud.retail.v2alpha.Product.expire_time] must be
      * later than
@@ -5548,24 +5548,22 @@ public boolean hasExpireTime() {
      *
      *
      * 
-     * The timestamp when this product becomes unavailable for
-     * [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search].
-     * Note that this is only applicable to
-     * [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] and
-     * [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION],
-     * and ignored for
-     * [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]. In
-     * general, we suggest the users to delete the stale products explicitly,
-     * instead of using this field to determine staleness.
+     * Note that this field is applied in the following ways:
      *
-     * If it is set, the [Product][google.cloud.retail.v2alpha.Product] is not
-     * available for
-     * [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search]
-     * after [expire_time][google.cloud.retail.v2alpha.Product.expire_time].
-     * However, the product can still be retrieved by
-     * [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]
-     * and
-     * [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts].
+     * * If the [Product][google.cloud.retail.v2alpha.Product] is already
+     * expired when it is uploaded, this product
+     *   is not indexed for search.
+     *
+     * * If the [Product][google.cloud.retail.v2alpha.Product] is not expired
+     * when it is uploaded, only the
+     *   [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]'s and
+     *   [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION]'s
+     *   expireTime is respected, and
+     *   [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]'s
+     *   expireTime is not used.
+     *
+     * In general, we suggest the users to delete the stale
+     * products explicitly, instead of using this field to determine staleness.
      *
      * [expire_time][google.cloud.retail.v2alpha.Product.expire_time] must be
      * later than
@@ -5599,24 +5597,22 @@ public com.google.protobuf.Timestamp getExpireTime() {
      *
      *
      * 
-     * The timestamp when this product becomes unavailable for
-     * [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search].
-     * Note that this is only applicable to
-     * [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] and
-     * [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION],
-     * and ignored for
-     * [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]. In
-     * general, we suggest the users to delete the stale products explicitly,
-     * instead of using this field to determine staleness.
+     * Note that this field is applied in the following ways:
      *
-     * If it is set, the [Product][google.cloud.retail.v2alpha.Product] is not
-     * available for
-     * [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search]
-     * after [expire_time][google.cloud.retail.v2alpha.Product.expire_time].
-     * However, the product can still be retrieved by
-     * [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]
-     * and
-     * [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts].
+     * * If the [Product][google.cloud.retail.v2alpha.Product] is already
+     * expired when it is uploaded, this product
+     *   is not indexed for search.
+     *
+     * * If the [Product][google.cloud.retail.v2alpha.Product] is not expired
+     * when it is uploaded, only the
+     *   [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]'s and
+     *   [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION]'s
+     *   expireTime is respected, and
+     *   [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]'s
+     *   expireTime is not used.
+     *
+     * In general, we suggest the users to delete the stale
+     * products explicitly, instead of using this field to determine staleness.
      *
      * [expire_time][google.cloud.retail.v2alpha.Product.expire_time] must be
      * later than
@@ -5647,24 +5643,22 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) {
      *
      *
      * 
-     * The timestamp when this product becomes unavailable for
-     * [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search].
-     * Note that this is only applicable to
-     * [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] and
-     * [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION],
-     * and ignored for
-     * [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]. In
-     * general, we suggest the users to delete the stale products explicitly,
-     * instead of using this field to determine staleness.
+     * Note that this field is applied in the following ways:
      *
-     * If it is set, the [Product][google.cloud.retail.v2alpha.Product] is not
-     * available for
-     * [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search]
-     * after [expire_time][google.cloud.retail.v2alpha.Product.expire_time].
-     * However, the product can still be retrieved by
-     * [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]
-     * and
-     * [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts].
+     * * If the [Product][google.cloud.retail.v2alpha.Product] is already
+     * expired when it is uploaded, this product
+     *   is not indexed for search.
+     *
+     * * If the [Product][google.cloud.retail.v2alpha.Product] is not expired
+     * when it is uploaded, only the
+     *   [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]'s and
+     *   [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION]'s
+     *   expireTime is respected, and
+     *   [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]'s
+     *   expireTime is not used.
+     *
+     * In general, we suggest the users to delete the stale
+     * products explicitly, instead of using this field to determine staleness.
      *
      * [expire_time][google.cloud.retail.v2alpha.Product.expire_time] must be
      * later than
@@ -5692,24 +5686,22 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal
      *
      *
      * 
-     * The timestamp when this product becomes unavailable for
-     * [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search].
-     * Note that this is only applicable to
-     * [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] and
-     * [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION],
-     * and ignored for
-     * [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]. In
-     * general, we suggest the users to delete the stale products explicitly,
-     * instead of using this field to determine staleness.
+     * Note that this field is applied in the following ways:
      *
-     * If it is set, the [Product][google.cloud.retail.v2alpha.Product] is not
-     * available for
-     * [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search]
-     * after [expire_time][google.cloud.retail.v2alpha.Product.expire_time].
-     * However, the product can still be retrieved by
-     * [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]
-     * and
-     * [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts].
+     * * If the [Product][google.cloud.retail.v2alpha.Product] is already
+     * expired when it is uploaded, this product
+     *   is not indexed for search.
+     *
+     * * If the [Product][google.cloud.retail.v2alpha.Product] is not expired
+     * when it is uploaded, only the
+     *   [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]'s and
+     *   [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION]'s
+     *   expireTime is respected, and
+     *   [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]'s
+     *   expireTime is not used.
+     *
+     * In general, we suggest the users to delete the stale
+     * products explicitly, instead of using this field to determine staleness.
      *
      * [expire_time][google.cloud.retail.v2alpha.Product.expire_time] must be
      * later than
@@ -5749,24 +5741,22 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
      *
      *
      * 
-     * The timestamp when this product becomes unavailable for
-     * [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search].
-     * Note that this is only applicable to
-     * [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] and
-     * [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION],
-     * and ignored for
-     * [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]. In
-     * general, we suggest the users to delete the stale products explicitly,
-     * instead of using this field to determine staleness.
+     * Note that this field is applied in the following ways:
      *
-     * If it is set, the [Product][google.cloud.retail.v2alpha.Product] is not
-     * available for
-     * [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search]
-     * after [expire_time][google.cloud.retail.v2alpha.Product.expire_time].
-     * However, the product can still be retrieved by
-     * [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]
-     * and
-     * [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts].
+     * * If the [Product][google.cloud.retail.v2alpha.Product] is already
+     * expired when it is uploaded, this product
+     *   is not indexed for search.
+     *
+     * * If the [Product][google.cloud.retail.v2alpha.Product] is not expired
+     * when it is uploaded, only the
+     *   [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]'s and
+     *   [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION]'s
+     *   expireTime is respected, and
+     *   [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]'s
+     *   expireTime is not used.
+     *
+     * In general, we suggest the users to delete the stale
+     * products explicitly, instead of using this field to determine staleness.
      *
      * [expire_time][google.cloud.retail.v2alpha.Product.expire_time] must be
      * later than
@@ -5800,24 +5790,22 @@ public Builder clearExpireTime() {
      *
      *
      * 
-     * The timestamp when this product becomes unavailable for
-     * [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search].
-     * Note that this is only applicable to
-     * [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] and
-     * [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION],
-     * and ignored for
-     * [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]. In
-     * general, we suggest the users to delete the stale products explicitly,
-     * instead of using this field to determine staleness.
+     * Note that this field is applied in the following ways:
      *
-     * If it is set, the [Product][google.cloud.retail.v2alpha.Product] is not
-     * available for
-     * [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search]
-     * after [expire_time][google.cloud.retail.v2alpha.Product.expire_time].
-     * However, the product can still be retrieved by
-     * [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]
-     * and
-     * [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts].
+     * * If the [Product][google.cloud.retail.v2alpha.Product] is already
+     * expired when it is uploaded, this product
+     *   is not indexed for search.
+     *
+     * * If the [Product][google.cloud.retail.v2alpha.Product] is not expired
+     * when it is uploaded, only the
+     *   [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]'s and
+     *   [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION]'s
+     *   expireTime is respected, and
+     *   [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]'s
+     *   expireTime is not used.
+     *
+     * In general, we suggest the users to delete the stale
+     * products explicitly, instead of using this field to determine staleness.
      *
      * [expire_time][google.cloud.retail.v2alpha.Product.expire_time] must be
      * later than
@@ -5838,24 +5826,22 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() {
      *
      *
      * 
-     * The timestamp when this product becomes unavailable for
-     * [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search].
-     * Note that this is only applicable to
-     * [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] and
-     * [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION],
-     * and ignored for
-     * [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]. In
-     * general, we suggest the users to delete the stale products explicitly,
-     * instead of using this field to determine staleness.
+     * Note that this field is applied in the following ways:
      *
-     * If it is set, the [Product][google.cloud.retail.v2alpha.Product] is not
-     * available for
-     * [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search]
-     * after [expire_time][google.cloud.retail.v2alpha.Product.expire_time].
-     * However, the product can still be retrieved by
-     * [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]
-     * and
-     * [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts].
+     * * If the [Product][google.cloud.retail.v2alpha.Product] is already
+     * expired when it is uploaded, this product
+     *   is not indexed for search.
+     *
+     * * If the [Product][google.cloud.retail.v2alpha.Product] is not expired
+     * when it is uploaded, only the
+     *   [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]'s and
+     *   [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION]'s
+     *   expireTime is respected, and
+     *   [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]'s
+     *   expireTime is not used.
+     *
+     * In general, we suggest the users to delete the stale
+     * products explicitly, instead of using this field to determine staleness.
      *
      * [expire_time][google.cloud.retail.v2alpha.Product.expire_time] must be
      * later than
@@ -5884,24 +5870,22 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
      *
      *
      * 
-     * The timestamp when this product becomes unavailable for
-     * [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search].
-     * Note that this is only applicable to
-     * [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] and
-     * [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION],
-     * and ignored for
-     * [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]. In
-     * general, we suggest the users to delete the stale products explicitly,
-     * instead of using this field to determine staleness.
+     * Note that this field is applied in the following ways:
      *
-     * If it is set, the [Product][google.cloud.retail.v2alpha.Product] is not
-     * available for
-     * [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search]
-     * after [expire_time][google.cloud.retail.v2alpha.Product.expire_time].
-     * However, the product can still be retrieved by
-     * [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]
-     * and
-     * [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts].
+     * * If the [Product][google.cloud.retail.v2alpha.Product] is already
+     * expired when it is uploaded, this product
+     *   is not indexed for search.
+     *
+     * * If the [Product][google.cloud.retail.v2alpha.Product] is not expired
+     * when it is uploaded, only the
+     *   [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]'s and
+     *   [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION]'s
+     *   expireTime is respected, and
+     *   [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]'s
+     *   expireTime is not used.
+     *
+     * In general, we suggest the users to delete the stale
+     * products explicitly, instead of using this field to determine staleness.
      *
      * [expire_time][google.cloud.retail.v2alpha.Product.expire_time] must be
      * later than
@@ -7438,9 +7422,10 @@ private void ensureCategoriesIsMutable() {
      * INVALID_ARGUMENT error is returned.
      *
      * At most 250 values are allowed per
-     * [Product][google.cloud.retail.v2alpha.Product]. Empty values are not
-     * allowed. Each value must be a UTF-8 encoded string with a length limit of
-     * 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * [Product][google.cloud.retail.v2alpha.Product] unless overridden through
+     * the Google Cloud console. Empty values are not allowed. Each value must be
+     * a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise,
+     * an INVALID_ARGUMENT error is returned.
      *
      * Corresponding properties: Google Merchant Center property
      * [google_product_category][mc_google_product_category]. Schema.org property
@@ -7487,9 +7472,10 @@ public com.google.protobuf.ProtocolStringList getCategoriesList() {
      * INVALID_ARGUMENT error is returned.
      *
      * At most 250 values are allowed per
-     * [Product][google.cloud.retail.v2alpha.Product]. Empty values are not
-     * allowed. Each value must be a UTF-8 encoded string with a length limit of
-     * 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * [Product][google.cloud.retail.v2alpha.Product] unless overridden through
+     * the Google Cloud console. Empty values are not allowed. Each value must be
+     * a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise,
+     * an INVALID_ARGUMENT error is returned.
      *
      * Corresponding properties: Google Merchant Center property
      * [google_product_category][mc_google_product_category]. Schema.org property
@@ -7535,9 +7521,10 @@ public int getCategoriesCount() {
      * INVALID_ARGUMENT error is returned.
      *
      * At most 250 values are allowed per
-     * [Product][google.cloud.retail.v2alpha.Product]. Empty values are not
-     * allowed. Each value must be a UTF-8 encoded string with a length limit of
-     * 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * [Product][google.cloud.retail.v2alpha.Product] unless overridden through
+     * the Google Cloud console. Empty values are not allowed. Each value must be
+     * a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise,
+     * an INVALID_ARGUMENT error is returned.
      *
      * Corresponding properties: Google Merchant Center property
      * [google_product_category][mc_google_product_category]. Schema.org property
@@ -7584,9 +7571,10 @@ public java.lang.String getCategories(int index) {
      * INVALID_ARGUMENT error is returned.
      *
      * At most 250 values are allowed per
-     * [Product][google.cloud.retail.v2alpha.Product]. Empty values are not
-     * allowed. Each value must be a UTF-8 encoded string with a length limit of
-     * 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * [Product][google.cloud.retail.v2alpha.Product] unless overridden through
+     * the Google Cloud console. Empty values are not allowed. Each value must be
+     * a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise,
+     * an INVALID_ARGUMENT error is returned.
      *
      * Corresponding properties: Google Merchant Center property
      * [google_product_category][mc_google_product_category]. Schema.org property
@@ -7633,9 +7621,10 @@ public com.google.protobuf.ByteString getCategoriesBytes(int index) {
      * INVALID_ARGUMENT error is returned.
      *
      * At most 250 values are allowed per
-     * [Product][google.cloud.retail.v2alpha.Product]. Empty values are not
-     * allowed. Each value must be a UTF-8 encoded string with a length limit of
-     * 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * [Product][google.cloud.retail.v2alpha.Product] unless overridden through
+     * the Google Cloud console. Empty values are not allowed. Each value must be
+     * a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise,
+     * an INVALID_ARGUMENT error is returned.
      *
      * Corresponding properties: Google Merchant Center property
      * [google_product_category][mc_google_product_category]. Schema.org property
@@ -7690,9 +7679,10 @@ public Builder setCategories(int index, java.lang.String value) {
      * INVALID_ARGUMENT error is returned.
      *
      * At most 250 values are allowed per
-     * [Product][google.cloud.retail.v2alpha.Product]. Empty values are not
-     * allowed. Each value must be a UTF-8 encoded string with a length limit of
-     * 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * [Product][google.cloud.retail.v2alpha.Product] unless overridden through
+     * the Google Cloud console. Empty values are not allowed. Each value must be
+     * a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise,
+     * an INVALID_ARGUMENT error is returned.
      *
      * Corresponding properties: Google Merchant Center property
      * [google_product_category][mc_google_product_category]. Schema.org property
@@ -7746,9 +7736,10 @@ public Builder addCategories(java.lang.String value) {
      * INVALID_ARGUMENT error is returned.
      *
      * At most 250 values are allowed per
-     * [Product][google.cloud.retail.v2alpha.Product]. Empty values are not
-     * allowed. Each value must be a UTF-8 encoded string with a length limit of
-     * 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * [Product][google.cloud.retail.v2alpha.Product] unless overridden through
+     * the Google Cloud console. Empty values are not allowed. Each value must be
+     * a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise,
+     * an INVALID_ARGUMENT error is returned.
      *
      * Corresponding properties: Google Merchant Center property
      * [google_product_category][mc_google_product_category]. Schema.org property
@@ -7799,9 +7790,10 @@ public Builder addAllCategories(java.lang.Iterable values) {
      * INVALID_ARGUMENT error is returned.
      *
      * At most 250 values are allowed per
-     * [Product][google.cloud.retail.v2alpha.Product]. Empty values are not
-     * allowed. Each value must be a UTF-8 encoded string with a length limit of
-     * 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * [Product][google.cloud.retail.v2alpha.Product] unless overridden through
+     * the Google Cloud console. Empty values are not allowed. Each value must be
+     * a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise,
+     * an INVALID_ARGUMENT error is returned.
      *
      * Corresponding properties: Google Merchant Center property
      * [google_product_category][mc_google_product_category]. Schema.org property
@@ -7851,9 +7843,10 @@ public Builder clearCategories() {
      * INVALID_ARGUMENT error is returned.
      *
      * At most 250 values are allowed per
-     * [Product][google.cloud.retail.v2alpha.Product]. Empty values are not
-     * allowed. Each value must be a UTF-8 encoded string with a length limit of
-     * 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * [Product][google.cloud.retail.v2alpha.Product] unless overridden through
+     * the Google Cloud console. Empty values are not allowed. Each value must be
+     * a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise,
+     * an INVALID_ARGUMENT error is returned.
      *
      * Corresponding properties: Google Merchant Center property
      * [google_product_category][mc_google_product_category]. Schema.org property
@@ -8036,9 +8029,10 @@ private void ensureBrandsIsMutable() {
      * 
      * The brands of the product.
      *
-     * A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded
-     * string with a length limit of 1,000 characters. Otherwise, an
-     * INVALID_ARGUMENT error is returned.
+     * A maximum of 30 brands are allowed unless overridden through the Google
+     * Cloud console. Each
+     * brand must be a UTF-8 encoded string with a length limit of 1,000
+     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
      *
      * Corresponding properties: Google Merchant Center property
      * [brand](https://support.google.com/merchants/answer/6324351). Schema.org
@@ -8059,9 +8053,10 @@ public com.google.protobuf.ProtocolStringList getBrandsList() {
      * 
      * The brands of the product.
      *
-     * A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded
-     * string with a length limit of 1,000 characters. Otherwise, an
-     * INVALID_ARGUMENT error is returned.
+     * A maximum of 30 brands are allowed unless overridden through the Google
+     * Cloud console. Each
+     * brand must be a UTF-8 encoded string with a length limit of 1,000
+     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
      *
      * Corresponding properties: Google Merchant Center property
      * [brand](https://support.google.com/merchants/answer/6324351). Schema.org
@@ -8081,9 +8076,10 @@ public int getBrandsCount() {
      * 
      * The brands of the product.
      *
-     * A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded
-     * string with a length limit of 1,000 characters. Otherwise, an
-     * INVALID_ARGUMENT error is returned.
+     * A maximum of 30 brands are allowed unless overridden through the Google
+     * Cloud console. Each
+     * brand must be a UTF-8 encoded string with a length limit of 1,000
+     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
      *
      * Corresponding properties: Google Merchant Center property
      * [brand](https://support.google.com/merchants/answer/6324351). Schema.org
@@ -8104,9 +8100,10 @@ public java.lang.String getBrands(int index) {
      * 
      * The brands of the product.
      *
-     * A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded
-     * string with a length limit of 1,000 characters. Otherwise, an
-     * INVALID_ARGUMENT error is returned.
+     * A maximum of 30 brands are allowed unless overridden through the Google
+     * Cloud console. Each
+     * brand must be a UTF-8 encoded string with a length limit of 1,000
+     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
      *
      * Corresponding properties: Google Merchant Center property
      * [brand](https://support.google.com/merchants/answer/6324351). Schema.org
@@ -8127,9 +8124,10 @@ public com.google.protobuf.ByteString getBrandsBytes(int index) {
      * 
      * The brands of the product.
      *
-     * A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded
-     * string with a length limit of 1,000 characters. Otherwise, an
-     * INVALID_ARGUMENT error is returned.
+     * A maximum of 30 brands are allowed unless overridden through the Google
+     * Cloud console. Each
+     * brand must be a UTF-8 encoded string with a length limit of 1,000
+     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
      *
      * Corresponding properties: Google Merchant Center property
      * [brand](https://support.google.com/merchants/answer/6324351). Schema.org
@@ -8158,9 +8156,10 @@ public Builder setBrands(int index, java.lang.String value) {
      * 
      * The brands of the product.
      *
-     * A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded
-     * string with a length limit of 1,000 characters. Otherwise, an
-     * INVALID_ARGUMENT error is returned.
+     * A maximum of 30 brands are allowed unless overridden through the Google
+     * Cloud console. Each
+     * brand must be a UTF-8 encoded string with a length limit of 1,000
+     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
      *
      * Corresponding properties: Google Merchant Center property
      * [brand](https://support.google.com/merchants/answer/6324351). Schema.org
@@ -8188,9 +8187,10 @@ public Builder addBrands(java.lang.String value) {
      * 
      * The brands of the product.
      *
-     * A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded
-     * string with a length limit of 1,000 characters. Otherwise, an
-     * INVALID_ARGUMENT error is returned.
+     * A maximum of 30 brands are allowed unless overridden through the Google
+     * Cloud console. Each
+     * brand must be a UTF-8 encoded string with a length limit of 1,000
+     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
      *
      * Corresponding properties: Google Merchant Center property
      * [brand](https://support.google.com/merchants/answer/6324351). Schema.org
@@ -8215,9 +8215,10 @@ public Builder addAllBrands(java.lang.Iterable values) {
      * 
      * The brands of the product.
      *
-     * A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded
-     * string with a length limit of 1,000 characters. Otherwise, an
-     * INVALID_ARGUMENT error is returned.
+     * A maximum of 30 brands are allowed unless overridden through the Google
+     * Cloud console. Each
+     * brand must be a UTF-8 encoded string with a length limit of 1,000
+     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
      *
      * Corresponding properties: Google Merchant Center property
      * [brand](https://support.google.com/merchants/answer/6324351). Schema.org
@@ -8241,9 +8242,10 @@ public Builder clearBrands() {
      * 
      * The brands of the product.
      *
-     * A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded
-     * string with a length limit of 1,000 characters. Otherwise, an
-     * INVALID_ARGUMENT error is returned.
+     * A maximum of 30 brands are allowed unless overridden through the Google
+     * Cloud console. Each
+     * brand must be a UTF-8 encoded string with a length limit of 1,000
+     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
      *
      * Corresponding properties: Google Merchant Center property
      * [brand](https://support.google.com/merchants/answer/6324351). Schema.org
@@ -13575,7 +13577,7 @@ public com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder() {
      * .google.protobuf.FieldMask retrievable_fields = 30 [deprecated = true];
      *
      * @deprecated google.cloud.retail.v2alpha.Product.retrievable_fields is deprecated. See
-     *     google/cloud/retail/v2alpha/product.proto;l=574
+     *     google/cloud/retail/v2alpha/product.proto;l=570
      * @return Whether the retrievableFields field is set.
      */
     @java.lang.Deprecated
@@ -13652,7 +13654,7 @@ public boolean hasRetrievableFields() {
      * .google.protobuf.FieldMask retrievable_fields = 30 [deprecated = true];
      *
      * @deprecated google.cloud.retail.v2alpha.Product.retrievable_fields is deprecated. See
-     *     google/cloud/retail/v2alpha/product.proto;l=574
+     *     google/cloud/retail/v2alpha/product.proto;l=570
      * @return The retrievableFields.
      */
     @java.lang.Deprecated
diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProductOrBuilder.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProductOrBuilder.java
index 9970d65369a4..4969dbb166d8 100644
--- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProductOrBuilder.java
+++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProductOrBuilder.java
@@ -28,24 +28,22 @@ public interface ProductOrBuilder
    *
    *
    * 
-   * The timestamp when this product becomes unavailable for
-   * [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search].
-   * Note that this is only applicable to
-   * [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] and
-   * [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION],
-   * and ignored for
-   * [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]. In
-   * general, we suggest the users to delete the stale products explicitly,
-   * instead of using this field to determine staleness.
+   * Note that this field is applied in the following ways:
    *
-   * If it is set, the [Product][google.cloud.retail.v2alpha.Product] is not
-   * available for
-   * [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search]
-   * after [expire_time][google.cloud.retail.v2alpha.Product.expire_time].
-   * However, the product can still be retrieved by
-   * [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]
-   * and
-   * [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts].
+   * * If the [Product][google.cloud.retail.v2alpha.Product] is already
+   * expired when it is uploaded, this product
+   *   is not indexed for search.
+   *
+   * * If the [Product][google.cloud.retail.v2alpha.Product] is not expired
+   * when it is uploaded, only the
+   *   [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]'s and
+   *   [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION]'s
+   *   expireTime is respected, and
+   *   [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]'s
+   *   expireTime is not used.
+   *
+   * In general, we suggest the users to delete the stale
+   * products explicitly, instead of using this field to determine staleness.
    *
    * [expire_time][google.cloud.retail.v2alpha.Product.expire_time] must be
    * later than
@@ -66,24 +64,22 @@ public interface ProductOrBuilder
    *
    *
    * 
-   * The timestamp when this product becomes unavailable for
-   * [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search].
-   * Note that this is only applicable to
-   * [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] and
-   * [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION],
-   * and ignored for
-   * [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]. In
-   * general, we suggest the users to delete the stale products explicitly,
-   * instead of using this field to determine staleness.
+   * Note that this field is applied in the following ways:
    *
-   * If it is set, the [Product][google.cloud.retail.v2alpha.Product] is not
-   * available for
-   * [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search]
-   * after [expire_time][google.cloud.retail.v2alpha.Product.expire_time].
-   * However, the product can still be retrieved by
-   * [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]
-   * and
-   * [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts].
+   * * If the [Product][google.cloud.retail.v2alpha.Product] is already
+   * expired when it is uploaded, this product
+   *   is not indexed for search.
+   *
+   * * If the [Product][google.cloud.retail.v2alpha.Product] is not expired
+   * when it is uploaded, only the
+   *   [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]'s and
+   *   [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION]'s
+   *   expireTime is respected, and
+   *   [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]'s
+   *   expireTime is not used.
+   *
+   * In general, we suggest the users to delete the stale
+   * products explicitly, instead of using this field to determine staleness.
    *
    * [expire_time][google.cloud.retail.v2alpha.Product.expire_time] must be
    * later than
@@ -104,24 +100,22 @@ public interface ProductOrBuilder
    *
    *
    * 
-   * The timestamp when this product becomes unavailable for
-   * [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search].
-   * Note that this is only applicable to
-   * [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] and
-   * [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION],
-   * and ignored for
-   * [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]. In
-   * general, we suggest the users to delete the stale products explicitly,
-   * instead of using this field to determine staleness.
+   * Note that this field is applied in the following ways:
    *
-   * If it is set, the [Product][google.cloud.retail.v2alpha.Product] is not
-   * available for
-   * [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search]
-   * after [expire_time][google.cloud.retail.v2alpha.Product.expire_time].
-   * However, the product can still be retrieved by
-   * [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct]
-   * and
-   * [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts].
+   * * If the [Product][google.cloud.retail.v2alpha.Product] is already
+   * expired when it is uploaded, this product
+   *   is not indexed for search.
+   *
+   * * If the [Product][google.cloud.retail.v2alpha.Product] is not expired
+   * when it is uploaded, only the
+   *   [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]'s and
+   *   [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION]'s
+   *   expireTime is respected, and
+   *   [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]'s
+   *   expireTime is not used.
+   *
+   * In general, we suggest the users to delete the stale
+   * products explicitly, instead of using this field to determine staleness.
    *
    * [expire_time][google.cloud.retail.v2alpha.Product.expire_time] must be
    * later than
@@ -594,9 +588,10 @@ public interface ProductOrBuilder
    * INVALID_ARGUMENT error is returned.
    *
    * At most 250 values are allowed per
-   * [Product][google.cloud.retail.v2alpha.Product]. Empty values are not
-   * allowed. Each value must be a UTF-8 encoded string with a length limit of
-   * 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned.
+   * [Product][google.cloud.retail.v2alpha.Product] unless overridden through
+   * the Google Cloud console. Empty values are not allowed. Each value must be
+   * a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise,
+   * an INVALID_ARGUMENT error is returned.
    *
    * Corresponding properties: Google Merchant Center property
    * [google_product_category][mc_google_product_category]. Schema.org property
@@ -640,9 +635,10 @@ public interface ProductOrBuilder
    * INVALID_ARGUMENT error is returned.
    *
    * At most 250 values are allowed per
-   * [Product][google.cloud.retail.v2alpha.Product]. Empty values are not
-   * allowed. Each value must be a UTF-8 encoded string with a length limit of
-   * 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned.
+   * [Product][google.cloud.retail.v2alpha.Product] unless overridden through
+   * the Google Cloud console. Empty values are not allowed. Each value must be
+   * a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise,
+   * an INVALID_ARGUMENT error is returned.
    *
    * Corresponding properties: Google Merchant Center property
    * [google_product_category][mc_google_product_category]. Schema.org property
@@ -686,9 +682,10 @@ public interface ProductOrBuilder
    * INVALID_ARGUMENT error is returned.
    *
    * At most 250 values are allowed per
-   * [Product][google.cloud.retail.v2alpha.Product]. Empty values are not
-   * allowed. Each value must be a UTF-8 encoded string with a length limit of
-   * 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned.
+   * [Product][google.cloud.retail.v2alpha.Product] unless overridden through
+   * the Google Cloud console. Empty values are not allowed. Each value must be
+   * a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise,
+   * an INVALID_ARGUMENT error is returned.
    *
    * Corresponding properties: Google Merchant Center property
    * [google_product_category][mc_google_product_category]. Schema.org property
@@ -733,9 +730,10 @@ public interface ProductOrBuilder
    * INVALID_ARGUMENT error is returned.
    *
    * At most 250 values are allowed per
-   * [Product][google.cloud.retail.v2alpha.Product]. Empty values are not
-   * allowed. Each value must be a UTF-8 encoded string with a length limit of
-   * 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned.
+   * [Product][google.cloud.retail.v2alpha.Product] unless overridden through
+   * the Google Cloud console. Empty values are not allowed. Each value must be
+   * a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise,
+   * an INVALID_ARGUMENT error is returned.
    *
    * Corresponding properties: Google Merchant Center property
    * [google_product_category][mc_google_product_category]. Schema.org property
@@ -797,9 +795,10 @@ public interface ProductOrBuilder
    * 
    * The brands of the product.
    *
-   * A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded
-   * string with a length limit of 1,000 characters. Otherwise, an
-   * INVALID_ARGUMENT error is returned.
+   * A maximum of 30 brands are allowed unless overridden through the Google
+   * Cloud console. Each
+   * brand must be a UTF-8 encoded string with a length limit of 1,000
+   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
    *
    * Corresponding properties: Google Merchant Center property
    * [brand](https://support.google.com/merchants/answer/6324351). Schema.org
@@ -817,9 +816,10 @@ public interface ProductOrBuilder
    * 
    * The brands of the product.
    *
-   * A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded
-   * string with a length limit of 1,000 characters. Otherwise, an
-   * INVALID_ARGUMENT error is returned.
+   * A maximum of 30 brands are allowed unless overridden through the Google
+   * Cloud console. Each
+   * brand must be a UTF-8 encoded string with a length limit of 1,000
+   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
    *
    * Corresponding properties: Google Merchant Center property
    * [brand](https://support.google.com/merchants/answer/6324351). Schema.org
@@ -837,9 +837,10 @@ public interface ProductOrBuilder
    * 
    * The brands of the product.
    *
-   * A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded
-   * string with a length limit of 1,000 characters. Otherwise, an
-   * INVALID_ARGUMENT error is returned.
+   * A maximum of 30 brands are allowed unless overridden through the Google
+   * Cloud console. Each
+   * brand must be a UTF-8 encoded string with a length limit of 1,000
+   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
    *
    * Corresponding properties: Google Merchant Center property
    * [brand](https://support.google.com/merchants/answer/6324351). Schema.org
@@ -858,9 +859,10 @@ public interface ProductOrBuilder
    * 
    * The brands of the product.
    *
-   * A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded
-   * string with a length limit of 1,000 characters. Otherwise, an
-   * INVALID_ARGUMENT error is returned.
+   * A maximum of 30 brands are allowed unless overridden through the Google
+   * Cloud console. Each
+   * brand must be a UTF-8 encoded string with a length limit of 1,000
+   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
    *
    * Corresponding properties: Google Merchant Center property
    * [brand](https://support.google.com/merchants/answer/6324351). Schema.org
@@ -2331,7 +2333,7 @@ com.google.cloud.retail.v2alpha.CustomAttribute getAttributesOrDefault(
    * .google.protobuf.FieldMask retrievable_fields = 30 [deprecated = true];
    *
    * @deprecated google.cloud.retail.v2alpha.Product.retrievable_fields is deprecated. See
-   *     google/cloud/retail/v2alpha/product.proto;l=574
+   *     google/cloud/retail/v2alpha/product.proto;l=570
    * @return Whether the retrievableFields field is set.
    */
   @java.lang.Deprecated
@@ -2406,7 +2408,7 @@ com.google.cloud.retail.v2alpha.CustomAttribute getAttributesOrDefault(
    * .google.protobuf.FieldMask retrievable_fields = 30 [deprecated = true];
    *
    * @deprecated google.cloud.retail.v2alpha.Product.retrievable_fields is deprecated. See
-   *     google/cloud/retail/v2alpha/product.proto;l=574
+   *     google/cloud/retail/v2alpha/product.proto;l=570
    * @return The retrievableFields.
    */
   @java.lang.Deprecated
diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProductProto.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProductProto.java
index 9c37bb441f26..6f920420d9f1 100644
--- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProductProto.java
+++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProductProto.java
@@ -99,15 +99,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
           + "googleapis.com/Product\022_projects/{projec"
           + "t}/locations/{location}/catalogs/{catalo"
           + "g}/branches/{branch}/products/{product}B"
-          + "\014\n\nexpirationB\277\002\n\037com.google.cloud.retai"
+          + "\014\n\nexpirationB\320\001\n\037com.google.cloud.retai"
           + "l.v2alphaB\014ProductProtoP\001Z7cloud.google."
           + "com/go/retail/apiv2alpha/retailpb;retail"
           + "pb\242\002\006RETAIL\252\002\033Google.Cloud.Retail.V2Alph"
           + "a\312\002\033Google\\Cloud\\Retail\\V2alpha\352\002\036Google"
-          + "::Cloud::Retail::V2alpha\352Al\n\034retail.goog"
-          + "leapis.com/Branch\022Lprojects/{project}/lo"
-          + "cations/{location}/catalogs/{catalog}/br"
-          + "anches/{branch}b\006proto3"
+          + "::Cloud::Retail::V2alphab\006proto3"
     };
     descriptor =
         com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -176,7 +173,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
         com.google.protobuf.ExtensionRegistry.newInstance();
     registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
     registry.add(com.google.api.ResourceProto.resource);
-    registry.add(com.google.api.ResourceProto.resourceDefinition);
     com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
         descriptor, registry);
     com.google.api.FieldBehaviorProto.getDescriptor();
diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/Project.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/Project.java
new file mode 100644
index 000000000000..88164ffb92fd
--- /dev/null
+++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/Project.java
@@ -0,0 +1,1054 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/retail/v2alpha/project.proto
+
+// Protobuf Java Version: 3.25.3
+package com.google.cloud.retail.v2alpha;
+
+/**
+ *
+ *
+ * 
+ * Metadata that describes a Cloud Retail Project.
+ * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.Project} + */ +public final class Project extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2alpha.Project) + ProjectOrBuilder { + private static final long serialVersionUID = 0L; + // Use Project.newBuilder() to construct. + private Project(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Project() { + name_ = ""; + enrolledSolutions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Project(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.ProjectProto + .internal_static_google_cloud_retail_v2alpha_Project_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.ProjectProto + .internal_static_google_cloud_retail_v2alpha_Project_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.Project.class, + com.google.cloud.retail.v2alpha.Project.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. Full resource name of the retail project, such as
+   * `projects/{project_id_or_number}/retailProject`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Full resource name of the retail project, such as
+   * `projects/{project_id_or_number}/retailProject`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENROLLED_SOLUTIONS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List enrolledSolutions_; + + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.retail.v2alpha.SolutionType> + enrolledSolutions_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.retail.v2alpha.SolutionType>() { + public com.google.cloud.retail.v2alpha.SolutionType convert(java.lang.Integer from) { + com.google.cloud.retail.v2alpha.SolutionType result = + com.google.cloud.retail.v2alpha.SolutionType.forNumber(from); + return result == null + ? com.google.cloud.retail.v2alpha.SolutionType.UNRECOGNIZED + : result; + } + }; + /** + * + * + *
+   * Output only. Retail API solutions that the project has enrolled.
+   * 
+ * + * + * repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the enrolledSolutions. + */ + @java.lang.Override + public java.util.List getEnrolledSolutionsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.retail.v2alpha.SolutionType>( + enrolledSolutions_, enrolledSolutions_converter_); + } + /** + * + * + *
+   * Output only. Retail API solutions that the project has enrolled.
+   * 
+ * + * + * repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of enrolledSolutions. + */ + @java.lang.Override + public int getEnrolledSolutionsCount() { + return enrolledSolutions_.size(); + } + /** + * + * + *
+   * Output only. Retail API solutions that the project has enrolled.
+   * 
+ * + * + * repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The enrolledSolutions at the given index. + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.SolutionType getEnrolledSolutions(int index) { + return enrolledSolutions_converter_.convert(enrolledSolutions_.get(index)); + } + /** + * + * + *
+   * Output only. Retail API solutions that the project has enrolled.
+   * 
+ * + * + * repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the enum numeric values on the wire for enrolledSolutions. + */ + @java.lang.Override + public java.util.List getEnrolledSolutionsValueList() { + return enrolledSolutions_; + } + /** + * + * + *
+   * Output only. Retail API solutions that the project has enrolled.
+   * 
+ * + * + * repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of enrolledSolutions at the given index. + */ + @java.lang.Override + public int getEnrolledSolutionsValue(int index) { + return enrolledSolutions_.get(index); + } + + private int enrolledSolutionsMemoizedSerializedSize; + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (getEnrolledSolutionsList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(enrolledSolutionsMemoizedSerializedSize); + } + for (int i = 0; i < enrolledSolutions_.size(); i++) { + output.writeEnumNoTag(enrolledSolutions_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + { + int dataSize = 0; + for (int i = 0; i < enrolledSolutions_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(enrolledSolutions_.get(i)); + } + size += dataSize; + if (!getEnrolledSolutionsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + enrolledSolutionsMemoizedSerializedSize = dataSize; + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.retail.v2alpha.Project)) { + return super.equals(obj); + } + com.google.cloud.retail.v2alpha.Project other = (com.google.cloud.retail.v2alpha.Project) obj; + + if (!getName().equals(other.getName())) return false; + if (!enrolledSolutions_.equals(other.enrolledSolutions_)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (getEnrolledSolutionsCount() > 0) { + hash = (37 * hash) + ENROLLED_SOLUTIONS_FIELD_NUMBER; + hash = (53 * hash) + enrolledSolutions_.hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2alpha.Project parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.Project parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.Project parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.Project parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.Project parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.Project parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.Project parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.Project parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.Project parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.Project parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.Project parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.Project parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.retail.v2alpha.Project prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Metadata that describes a Cloud Retail Project.
+   * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.Project} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2alpha.Project) + com.google.cloud.retail.v2alpha.ProjectOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.ProjectProto + .internal_static_google_cloud_retail_v2alpha_Project_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.ProjectProto + .internal_static_google_cloud_retail_v2alpha_Project_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.Project.class, + com.google.cloud.retail.v2alpha.Project.Builder.class); + } + + // Construct using com.google.cloud.retail.v2alpha.Project.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + enrolledSolutions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2alpha.ProjectProto + .internal_static_google_cloud_retail_v2alpha_Project_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.Project getDefaultInstanceForType() { + return com.google.cloud.retail.v2alpha.Project.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.Project build() { + com.google.cloud.retail.v2alpha.Project result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.Project buildPartial() { + com.google.cloud.retail.v2alpha.Project result = + new com.google.cloud.retail.v2alpha.Project(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.retail.v2alpha.Project result) { + if (((bitField0_ & 0x00000002) != 0)) { + enrolledSolutions_ = java.util.Collections.unmodifiableList(enrolledSolutions_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.enrolledSolutions_ = enrolledSolutions_; + } + + private void buildPartial0(com.google.cloud.retail.v2alpha.Project result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.retail.v2alpha.Project) { + return mergeFrom((com.google.cloud.retail.v2alpha.Project) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.retail.v2alpha.Project other) { + if (other == com.google.cloud.retail.v2alpha.Project.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.enrolledSolutions_.isEmpty()) { + if (enrolledSolutions_.isEmpty()) { + enrolledSolutions_ = other.enrolledSolutions_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureEnrolledSolutionsIsMutable(); + enrolledSolutions_.addAll(other.enrolledSolutions_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + int tmpRaw = input.readEnum(); + ensureEnrolledSolutionsIsMutable(); + enrolledSolutions_.add(tmpRaw); + break; + } // case 16 + case 18: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureEnrolledSolutionsIsMutable(); + enrolledSolutions_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Full resource name of the retail project, such as
+     * `projects/{project_id_or_number}/retailProject`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Full resource name of the retail project, such as
+     * `projects/{project_id_or_number}/retailProject`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Full resource name of the retail project, such as
+     * `projects/{project_id_or_number}/retailProject`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Full resource name of the retail project, such as
+     * `projects/{project_id_or_number}/retailProject`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Full resource name of the retail project, such as
+     * `projects/{project_id_or_number}/retailProject`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List enrolledSolutions_ = + java.util.Collections.emptyList(); + + private void ensureEnrolledSolutionsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + enrolledSolutions_ = new java.util.ArrayList(enrolledSolutions_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Output only. Retail API solutions that the project has enrolled.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the enrolledSolutions. + */ + public java.util.List getEnrolledSolutionsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.retail.v2alpha.SolutionType>( + enrolledSolutions_, enrolledSolutions_converter_); + } + /** + * + * + *
+     * Output only. Retail API solutions that the project has enrolled.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of enrolledSolutions. + */ + public int getEnrolledSolutionsCount() { + return enrolledSolutions_.size(); + } + /** + * + * + *
+     * Output only. Retail API solutions that the project has enrolled.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The enrolledSolutions at the given index. + */ + public com.google.cloud.retail.v2alpha.SolutionType getEnrolledSolutions(int index) { + return enrolledSolutions_converter_.convert(enrolledSolutions_.get(index)); + } + /** + * + * + *
+     * Output only. Retail API solutions that the project has enrolled.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The enrolledSolutions to set. + * @return This builder for chaining. + */ + public Builder setEnrolledSolutions( + int index, com.google.cloud.retail.v2alpha.SolutionType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnrolledSolutionsIsMutable(); + enrolledSolutions_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Retail API solutions that the project has enrolled.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enrolledSolutions to add. + * @return This builder for chaining. + */ + public Builder addEnrolledSolutions(com.google.cloud.retail.v2alpha.SolutionType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnrolledSolutionsIsMutable(); + enrolledSolutions_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Retail API solutions that the project has enrolled.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The enrolledSolutions to add. + * @return This builder for chaining. + */ + public Builder addAllEnrolledSolutions( + java.lang.Iterable values) { + ensureEnrolledSolutionsIsMutable(); + for (com.google.cloud.retail.v2alpha.SolutionType value : values) { + enrolledSolutions_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Retail API solutions that the project has enrolled.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearEnrolledSolutions() { + enrolledSolutions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Retail API solutions that the project has enrolled.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the enum numeric values on the wire for enrolledSolutions. + */ + public java.util.List getEnrolledSolutionsValueList() { + return java.util.Collections.unmodifiableList(enrolledSolutions_); + } + /** + * + * + *
+     * Output only. Retail API solutions that the project has enrolled.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of enrolledSolutions at the given index. + */ + public int getEnrolledSolutionsValue(int index) { + return enrolledSolutions_.get(index); + } + /** + * + * + *
+     * Output only. Retail API solutions that the project has enrolled.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for enrolledSolutions to set. + * @return This builder for chaining. + */ + public Builder setEnrolledSolutionsValue(int index, int value) { + ensureEnrolledSolutionsIsMutable(); + enrolledSolutions_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Retail API solutions that the project has enrolled.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for enrolledSolutions to add. + * @return This builder for chaining. + */ + public Builder addEnrolledSolutionsValue(int value) { + ensureEnrolledSolutionsIsMutable(); + enrolledSolutions_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Retail API solutions that the project has enrolled.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The enum numeric values on the wire for enrolledSolutions to add. + * @return This builder for chaining. + */ + public Builder addAllEnrolledSolutionsValue(java.lang.Iterable values) { + ensureEnrolledSolutionsIsMutable(); + for (int value : values) { + enrolledSolutions_.add(value); + } + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2alpha.Project) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2alpha.Project) + private static final com.google.cloud.retail.v2alpha.Project DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.retail.v2alpha.Project(); + } + + public static com.google.cloud.retail.v2alpha.Project getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Project parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.Project getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProjectName.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProjectName.java new file mode 100644 index 000000000000..827c76754168 --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProjectName.java @@ -0,0 +1,168 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class ProjectName implements ResourceName { + private static final PathTemplate PROJECT = + PathTemplate.createWithoutUrlEncoding("projects/{project}"); + private volatile Map fieldValuesMap; + private final String project; + + @Deprecated + protected ProjectName() { + project = null; + } + + private ProjectName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + } + + public String getProject() { + return project; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ProjectName of(String project) { + return newBuilder().setProject(project).build(); + } + + public static String format(String project) { + return newBuilder().setProject(project).build().toString(); + } + + public static ProjectName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT.validatedMatch( + formattedString, "ProjectName.parse: formattedString not in valid format"); + return of(matchMap.get("project")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (ProjectName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT.instantiate("project", project); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ProjectName that = ((ProjectName) o); + return Objects.equals(this.project, that.project); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + return h; + } + + /** Builder for projects/{project}. */ + public static class Builder { + private String project; + + protected Builder() {} + + public String getProject() { + return project; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + private Builder(ProjectName projectName) { + this.project = projectName.project; + } + + public ProjectName build() { + return new ProjectName(this); + } + } +} diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProjectOrBuilder.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProjectOrBuilder.java new file mode 100644 index 000000000000..fb2e26d77dc9 --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProjectOrBuilder.java @@ -0,0 +1,126 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/retail/v2alpha/project.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.retail.v2alpha; + +public interface ProjectOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2alpha.Project) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Full resource name of the retail project, such as
+   * `projects/{project_id_or_number}/retailProject`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Full resource name of the retail project, such as
+   * `projects/{project_id_or_number}/retailProject`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. Retail API solutions that the project has enrolled.
+   * 
+ * + * + * repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the enrolledSolutions. + */ + java.util.List getEnrolledSolutionsList(); + /** + * + * + *
+   * Output only. Retail API solutions that the project has enrolled.
+   * 
+ * + * + * repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of enrolledSolutions. + */ + int getEnrolledSolutionsCount(); + /** + * + * + *
+   * Output only. Retail API solutions that the project has enrolled.
+   * 
+ * + * + * repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The enrolledSolutions at the given index. + */ + com.google.cloud.retail.v2alpha.SolutionType getEnrolledSolutions(int index); + /** + * + * + *
+   * Output only. Retail API solutions that the project has enrolled.
+   * 
+ * + * + * repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the enum numeric values on the wire for enrolledSolutions. + */ + java.util.List getEnrolledSolutionsValueList(); + /** + * + * + *
+   * Output only. Retail API solutions that the project has enrolled.
+   * 
+ * + * + * repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of enrolledSolutions at the given index. + */ + int getEnrolledSolutionsValue(int index); +} diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProjectProto.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProjectProto.java new file mode 100644 index 000000000000..f9cb9afa9f4b --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProjectProto.java @@ -0,0 +1,198 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/retail/v2alpha/project.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.retail.v2alpha; + +public final class ProjectProto { + private ProjectProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2alpha_LoggingConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2alpha_LoggingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2alpha_LoggingConfig_LogGenerationRule_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2alpha_LoggingConfig_LogGenerationRule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2alpha_LoggingConfig_ServiceLogGenerationRule_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2alpha_LoggingConfig_ServiceLogGenerationRule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2alpha_Project_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2alpha_Project_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2alpha_AlertConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2alpha_AlertConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2alpha_AlertConfig_AlertPolicy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2alpha_AlertConfig_AlertPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2alpha_AlertConfig_AlertPolicy_Recipient_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2alpha_AlertConfig_AlertPolicy_Recipient_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n)google/cloud/retail/v2alpha/project.pr" + + "oto\022\033google.cloud.retail.v2alpha\032\037google" + + "/api/field_behavior.proto\032\031google/api/re" + + "source.proto\032(google/cloud/retail/v2alph" + + "a/common.proto\"\375\005\n\rLoggingConfig\022\024\n\004name" + + "\030\001 \001(\tB\006\340A\002\340A\005\022a\n\033default_log_generation" + + "_rule\030\002 \001(\0132<.google.cloud.retail.v2alph" + + "a.LoggingConfig.LogGenerationRule\022i\n\034ser" + + "vice_log_generation_rules\030\004 \003(\0132C.google" + + ".cloud.retail.v2alpha.LoggingConfig.Serv" + + "iceLogGenerationRule\032\237\001\n\021LogGenerationRu" + + "le\022N\n\rlogging_level\030\001 \001(\01627.google.cloud" + + ".retail.v2alpha.LoggingConfig.LoggingLev" + + "el\022!\n\024info_log_sample_rate\030\002 \001(\002H\000\210\001\001B\027\n" + + "\025_info_log_sample_rate\032\220\001\n\030ServiceLogGen" + + "erationRule\022\031\n\014service_name\030\001 \001(\tB\003\340A\002\022Y" + + "\n\023log_generation_rule\030\003 \001(\0132<.google.clo" + + "ud.retail.v2alpha.LoggingConfig.LogGener" + + "ationRule\"\206\001\n\014LoggingLevel\022\035\n\031LOGGING_LE" + + "VEL_UNSPECIFIED\020\000\022\024\n\020LOGGING_DISABLED\020\001\022" + + "\030\n\024LOG_ERRORS_AND_ABOVE\020\002\022\032\n\026LOG_WARNING" + + "S_AND_ABOVE\020\003\022\013\n\007LOG_ALL\020\004:J\352AG\n#retail." + + "googleapis.com/LoggingConfig\022 projects/{" + + "project}/loggingConfig\"\264\001\n\007Project\022\021\n\004na" + + "me\030\001 \001(\tB\003\340A\003\022J\n\022enrolled_solutions\030\002 \003(" + + "\0162).google.cloud.retail.v2alpha.Solution" + + "TypeB\003\340A\003:J\352AG\n#retail.googleapis.com/Re" + + "tailProject\022 projects/{project}/retailPr" + + "oject\"\373\003\n\013AlertConfig\022\024\n\004name\030\001 \001(\tB\006\340A\002" + + "\340A\005\022L\n\016alert_policies\030\002 \003(\01324.google.clo" + + "ud.retail.v2alpha.AlertConfig.AlertPolic" + + "y\032\277\002\n\013AlertPolicy\022\023\n\013alert_group\030\001 \001(\t\022X" + + "\n\renroll_status\030\002 \001(\0162A.google.cloud.ret" + + "ail.v2alpha.AlertConfig.AlertPolicy.Enro" + + "llStatus\022R\n\nrecipients\030\003 \003(\0132>.google.cl" + + "oud.retail.v2alpha.AlertConfig.AlertPoli" + + "cy.Recipient\032\"\n\tRecipient\022\025\n\remail_addre" + + "ss\030\001 \001(\t\"I\n\014EnrollStatus\022\035\n\031ENROLL_STATU" + + "S_UNSPECIFIED\020\000\022\014\n\010ENROLLED\020\001\022\014\n\010DECLINE" + + "D\020\002:F\352AC\n!retail.googleapis.com/AlertCon" + + "fig\022\036projects/{project}/alertConfigB\320\001\n\037" + + "com.google.cloud.retail.v2alphaB\014Project" + + "ProtoP\001Z7cloud.google.com/go/retail/apiv" + + "2alpha/retailpb;retailpb\242\002\006RETAIL\252\002\033Goog" + + "le.Cloud.Retail.V2Alpha\312\002\033Google\\Cloud\\R" + + "etail\\V2alpha\352\002\036Google::Cloud::Retail::V" + + "2alphab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.retail.v2alpha.CommonProto.getDescriptor(), + }); + internal_static_google_cloud_retail_v2alpha_LoggingConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_retail_v2alpha_LoggingConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2alpha_LoggingConfig_descriptor, + new java.lang.String[] { + "Name", "DefaultLogGenerationRule", "ServiceLogGenerationRules", + }); + internal_static_google_cloud_retail_v2alpha_LoggingConfig_LogGenerationRule_descriptor = + internal_static_google_cloud_retail_v2alpha_LoggingConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_retail_v2alpha_LoggingConfig_LogGenerationRule_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2alpha_LoggingConfig_LogGenerationRule_descriptor, + new java.lang.String[] { + "LoggingLevel", "InfoLogSampleRate", + }); + internal_static_google_cloud_retail_v2alpha_LoggingConfig_ServiceLogGenerationRule_descriptor = + internal_static_google_cloud_retail_v2alpha_LoggingConfig_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_retail_v2alpha_LoggingConfig_ServiceLogGenerationRule_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2alpha_LoggingConfig_ServiceLogGenerationRule_descriptor, + new java.lang.String[] { + "ServiceName", "LogGenerationRule", + }); + internal_static_google_cloud_retail_v2alpha_Project_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_retail_v2alpha_Project_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2alpha_Project_descriptor, + new java.lang.String[] { + "Name", "EnrolledSolutions", + }); + internal_static_google_cloud_retail_v2alpha_AlertConfig_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_retail_v2alpha_AlertConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2alpha_AlertConfig_descriptor, + new java.lang.String[] { + "Name", "AlertPolicies", + }); + internal_static_google_cloud_retail_v2alpha_AlertConfig_AlertPolicy_descriptor = + internal_static_google_cloud_retail_v2alpha_AlertConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_retail_v2alpha_AlertConfig_AlertPolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2alpha_AlertConfig_AlertPolicy_descriptor, + new java.lang.String[] { + "AlertGroup", "EnrollStatus", "Recipients", + }); + internal_static_google_cloud_retail_v2alpha_AlertConfig_AlertPolicy_Recipient_descriptor = + internal_static_google_cloud_retail_v2alpha_AlertConfig_AlertPolicy_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_retail_v2alpha_AlertConfig_AlertPolicy_Recipient_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2alpha_AlertConfig_AlertPolicy_Recipient_descriptor, + new java.lang.String[] { + "EmailAddress", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.retail.v2alpha.CommonProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProjectServiceProto.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProjectServiceProto.java new file mode 100644 index 000000000000..74c0dd48974f --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ProjectServiceProto.java @@ -0,0 +1,292 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/retail/v2alpha/project_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.retail.v2alpha; + +public final class ProjectServiceProto { + private ProjectServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2alpha_GetProjectRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2alpha_GetProjectRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2alpha_AcceptTermsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2alpha_AcceptTermsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2alpha_EnrollSolutionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2alpha_EnrollSolutionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2alpha_EnrollSolutionResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2alpha_EnrollSolutionResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2alpha_EnrollSolutionMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2alpha_EnrollSolutionMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2alpha_ListEnrolledSolutionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2alpha_ListEnrolledSolutionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2alpha_ListEnrolledSolutionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2alpha_ListEnrolledSolutionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2alpha_GetLoggingConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2alpha_GetLoggingConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2alpha_UpdateLoggingConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2alpha_UpdateLoggingConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2alpha_GetAlertConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2alpha_GetAlertConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2alpha_UpdateAlertConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2alpha_UpdateAlertConfigRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n1google/cloud/retail/v2alpha/project_se" + + "rvice.proto\022\033google.cloud.retail.v2alpha" + + "\032\034google/api/annotations.proto\032\027google/a" + + "pi/client.proto\032\037google/api/field_behavi" + + "or.proto\032\031google/api/resource.proto\032(goo" + + "gle/cloud/retail/v2alpha/common.proto\032)g" + + "oogle/cloud/retail/v2alpha/project.proto" + + "\032#google/longrunning/operations.proto\032 g" + + "oogle/protobuf/field_mask.proto\"N\n\021GetPr" + + "ojectRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#reta" + + "il.googleapis.com/RetailProject\"R\n\022Accep" + + "tTermsRequest\022<\n\007project\030\001 \001(\tB+\340A\002\372A%\n#" + + "retail.googleapis.com/RetailProject\"\237\001\n\025" + + "EnrollSolutionRequest\022D\n\007project\030\001 \001(\tB3" + + "\340A\002\372A-\n+cloudresourcemanager.googleapis." + + "com/Project\022@\n\010solution\030\002 \001(\0162).google.c" + + "loud.retail.v2alpha.SolutionTypeB\003\340A\002\"^\n" + + "\026EnrollSolutionResponse\022D\n\021enrolled_solu" + + "tion\030\001 \001(\0162).google.cloud.retail.v2alpha" + + ".SolutionType\"\030\n\026EnrollSolutionMetadata\"" + + "c\n\034ListEnrolledSolutionsRequest\022C\n\006paren" + + "t\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager.go" + + "ogleapis.com/Project\"f\n\035ListEnrolledSolu" + + "tionsResponse\022E\n\022enrolled_solutions\030\001 \003(" + + "\0162).google.cloud.retail.v2alpha.Solution" + + "Type\"T\n\027GetLoggingConfigRequest\0229\n\004name\030" + + "\001 \001(\tB+\340A\002\372A%\n#retail.googleapis.com/Log" + + "gingConfig\"\226\001\n\032UpdateLoggingConfigReques" + + "t\022G\n\016logging_config\030\001 \001(\0132*.google.cloud" + + ".retail.v2alpha.LoggingConfigB\003\340A\002\022/\n\013up" + + "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM" + + "ask\"P\n\025GetAlertConfigRequest\0227\n\004name\030\001 \001" + + "(\tB)\340A\002\372A#\n!retail.googleapis.com/AlertC" + + "onfig\"\220\001\n\030UpdateAlertConfigRequest\022C\n\014al" + + "ert_config\030\001 \001(\0132(.google.cloud.retail.v" + + "2alpha.AlertConfigB\003\340A\002\022/\n\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMask2\253\r\n\016Pro" + + "jectService\022\233\001\n\nGetProject\022..google.clou" + + "d.retail.v2alpha.GetProjectRequest\032$.goo" + + "gle.cloud.retail.v2alpha.Project\"7\332A\004nam" + + "e\202\323\344\223\002*\022(/v2alpha/{name=projects/*/retai" + + "lProject}\022\262\001\n\013AcceptTerms\022/.google.cloud" + + ".retail.v2alpha.AcceptTermsRequest\032$.goo" + + "gle.cloud.retail.v2alpha.Project\"L\332A\007pro" + + "ject\202\323\344\223\002<\"7/v2alpha/{project=projects/*" + + "/retailProject}:acceptTerms:\001*\022\210\002\n\016Enrol" + + "lSolution\0222.google.cloud.retail.v2alpha." + + "EnrollSolutionRequest\032\035.google.longrunni" + + "ng.Operation\"\242\001\312Ah\n2google.cloud.retail." + + "v2alpha.EnrollSolutionResponse\0222google.c" + + "loud.retail.v2alpha.EnrollSolutionMetada" + + "ta\202\323\344\223\0021\",/v2alpha/{project=projects/*}:" + + "enrollSolution:\001*\022\317\001\n\025ListEnrolledSoluti" + + "ons\0229.google.cloud.retail.v2alpha.ListEn" + + "rolledSolutionsRequest\032:.google.cloud.re" + + "tail.v2alpha.ListEnrolledSolutionsRespon" + + "se\"?\332A\006parent\202\323\344\223\0020\022./v2alpha/{parent=pr" + + "ojects/*}:enrolledSolutions\022\255\001\n\020GetLoggi" + + "ngConfig\0224.google.cloud.retail.v2alpha.G" + + "etLoggingConfigRequest\032*.google.cloud.re" + + "tail.v2alpha.LoggingConfig\"7\332A\004name\202\323\344\223\002" + + "*\022(/v2alpha/{name=projects/*/loggingConf" + + "ig}\022\350\001\n\023UpdateLoggingConfig\0227.google.clo" + + "ud.retail.v2alpha.UpdateLoggingConfigReq" + + "uest\032*.google.cloud.retail.v2alpha.Loggi" + + "ngConfig\"l\332A\032logging_config,update_mask\202" + + "\323\344\223\002I27/v2alpha/{logging_config.name=pro" + + "jects/*/loggingConfig}:\016logging_config\022\245" + + "\001\n\016GetAlertConfig\0222.google.cloud.retail." + + "v2alpha.GetAlertConfigRequest\032(.google.c" + + "loud.retail.v2alpha.AlertConfig\"5\332A\004name" + + "\202\323\344\223\002(\022&/v2alpha/{name=projects/*/alertC" + + "onfig}\022\332\001\n\021UpdateAlertConfig\0225.google.cl" + + "oud.retail.v2alpha.UpdateAlertConfigRequ" + + "est\032(.google.cloud.retail.v2alpha.AlertC" + + "onfig\"d\332A\030alert_config,update_mask\202\323\344\223\002C" + + "23/v2alpha/{alert_config.name=projects/*" + + "/alertConfig}:\014alert_config\032I\312A\025retail.g" + + "oogleapis.com\322A.https://www.googleapis.c" + + "om/auth/cloud-platformB\327\001\n\037com.google.cl" + + "oud.retail.v2alphaB\023ProjectServiceProtoP" + + "\001Z7cloud.google.com/go/retail/apiv2alpha" + + "/retailpb;retailpb\242\002\006RETAIL\252\002\033Google.Clo" + + "ud.Retail.V2Alpha\312\002\033Google\\Cloud\\Retail\\" + + "V2alpha\352\002\036Google::Cloud::Retail::V2alpha" + + "b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.retail.v2alpha.CommonProto.getDescriptor(), + com.google.cloud.retail.v2alpha.ProjectProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_retail_v2alpha_GetProjectRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_retail_v2alpha_GetProjectRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2alpha_GetProjectRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_retail_v2alpha_AcceptTermsRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_retail_v2alpha_AcceptTermsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2alpha_AcceptTermsRequest_descriptor, + new java.lang.String[] { + "Project", + }); + internal_static_google_cloud_retail_v2alpha_EnrollSolutionRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_retail_v2alpha_EnrollSolutionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2alpha_EnrollSolutionRequest_descriptor, + new java.lang.String[] { + "Project", "Solution", + }); + internal_static_google_cloud_retail_v2alpha_EnrollSolutionResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_retail_v2alpha_EnrollSolutionResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2alpha_EnrollSolutionResponse_descriptor, + new java.lang.String[] { + "EnrolledSolution", + }); + internal_static_google_cloud_retail_v2alpha_EnrollSolutionMetadata_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_retail_v2alpha_EnrollSolutionMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2alpha_EnrollSolutionMetadata_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_retail_v2alpha_ListEnrolledSolutionsRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_retail_v2alpha_ListEnrolledSolutionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2alpha_ListEnrolledSolutionsRequest_descriptor, + new java.lang.String[] { + "Parent", + }); + internal_static_google_cloud_retail_v2alpha_ListEnrolledSolutionsResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_retail_v2alpha_ListEnrolledSolutionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2alpha_ListEnrolledSolutionsResponse_descriptor, + new java.lang.String[] { + "EnrolledSolutions", + }); + internal_static_google_cloud_retail_v2alpha_GetLoggingConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_retail_v2alpha_GetLoggingConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2alpha_GetLoggingConfigRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_retail_v2alpha_UpdateLoggingConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_retail_v2alpha_UpdateLoggingConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2alpha_UpdateLoggingConfigRequest_descriptor, + new java.lang.String[] { + "LoggingConfig", "UpdateMask", + }); + internal_static_google_cloud_retail_v2alpha_GetAlertConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_retail_v2alpha_GetAlertConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2alpha_GetAlertConfigRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_retail_v2alpha_UpdateAlertConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_retail_v2alpha_UpdateAlertConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2alpha_UpdateAlertConfigRequest_descriptor, + new java.lang.String[] { + "AlertConfig", "UpdateMask", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.retail.v2alpha.CommonProto.getDescriptor(); + com.google.cloud.retail.v2alpha.ProjectProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/Promotion.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/Promotion.java index 24fa4f655d9a..9aaa6930dea3 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/Promotion.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/Promotion.java @@ -78,8 +78,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT error is * returned. * - * Google Merchant Center property - * [promotion](https://support.google.com/merchants/answer/7050148). + * Corresponds to Google Merchant Center property + * [promotion_id](https://support.google.com/merchants/answer/7050148). *
* * string promotion_id = 1; @@ -109,8 +109,8 @@ public java.lang.String getPromotionId() { * id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT error is * returned. * - * Google Merchant Center property - * [promotion](https://support.google.com/merchants/answer/7050148). + * Corresponds to Google Merchant Center property + * [promotion_id](https://support.google.com/merchants/answer/7050148). *
* * string promotion_id = 1; @@ -483,8 +483,8 @@ public Builder mergeFrom( * id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT error is * returned. * - * Google Merchant Center property - * [promotion](https://support.google.com/merchants/answer/7050148). + * Corresponds to Google Merchant Center property + * [promotion_id](https://support.google.com/merchants/answer/7050148). *
* * string promotion_id = 1; @@ -513,8 +513,8 @@ public java.lang.String getPromotionId() { * id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT error is * returned. * - * Google Merchant Center property - * [promotion](https://support.google.com/merchants/answer/7050148). + * Corresponds to Google Merchant Center property + * [promotion_id](https://support.google.com/merchants/answer/7050148). *
* * string promotion_id = 1; @@ -543,8 +543,8 @@ public com.google.protobuf.ByteString getPromotionIdBytes() { * id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT error is * returned. * - * Google Merchant Center property - * [promotion](https://support.google.com/merchants/answer/7050148). + * Corresponds to Google Merchant Center property + * [promotion_id](https://support.google.com/merchants/answer/7050148). *
* * string promotion_id = 1; @@ -572,8 +572,8 @@ public Builder setPromotionId(java.lang.String value) { * id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT error is * returned. * - * Google Merchant Center property - * [promotion](https://support.google.com/merchants/answer/7050148). + * Corresponds to Google Merchant Center property + * [promotion_id](https://support.google.com/merchants/answer/7050148). *
* * string promotion_id = 1; @@ -597,8 +597,8 @@ public Builder clearPromotionId() { * id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT error is * returned. * - * Google Merchant Center property - * [promotion](https://support.google.com/merchants/answer/7050148). + * Corresponds to Google Merchant Center property + * [promotion_id](https://support.google.com/merchants/answer/7050148). *
* * string promotion_id = 1; diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/PromotionOrBuilder.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/PromotionOrBuilder.java index 1cc90e028aba..2b188fa15948 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/PromotionOrBuilder.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/PromotionOrBuilder.java @@ -35,8 +35,8 @@ public interface PromotionOrBuilder * id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT error is * returned. * - * Google Merchant Center property - * [promotion](https://support.google.com/merchants/answer/7050148). + * Corresponds to Google Merchant Center property + * [promotion_id](https://support.google.com/merchants/answer/7050148). *
* * string promotion_id = 1; @@ -55,8 +55,8 @@ public interface PromotionOrBuilder * id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT error is * returned. * - * Google Merchant Center property - * [promotion](https://support.google.com/merchants/answer/7050148). + * Corresponds to Google Merchant Center property + * [promotion_id](https://support.google.com/merchants/answer/7050148). *
* * string promotion_id = 1; diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/RetailProjectName.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/RetailProjectName.java new file mode 100644 index 000000000000..2ee9e20b306b --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/RetailProjectName.java @@ -0,0 +1,168 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class RetailProjectName implements ResourceName { + private static final PathTemplate PROJECT = + PathTemplate.createWithoutUrlEncoding("projects/{project}/retailProject"); + private volatile Map fieldValuesMap; + private final String project; + + @Deprecated + protected RetailProjectName() { + project = null; + } + + private RetailProjectName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + } + + public String getProject() { + return project; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static RetailProjectName of(String project) { + return newBuilder().setProject(project).build(); + } + + public static String format(String project) { + return newBuilder().setProject(project).build().toString(); + } + + public static RetailProjectName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT.validatedMatch( + formattedString, "RetailProjectName.parse: formattedString not in valid format"); + return of(matchMap.get("project")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (RetailProjectName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT.instantiate("project", project); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + RetailProjectName that = ((RetailProjectName) o); + return Objects.equals(this.project, that.project); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + return h; + } + + /** Builder for projects/{project}/retailProject. */ + public static class Builder { + private String project; + + protected Builder() {} + + public String getProject() { + return project; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + private Builder(RetailProjectName retailProjectName) { + this.project = retailProjectName.project; + } + + public RetailProjectName build() { + return new RetailProjectName(this); + } + } +} diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/Rule.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/Rule.java index 4014eab416ae..c70e7162049b 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/Rule.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/Rule.java @@ -1027,9 +1027,8 @@ public interface FilterActionOrBuilder * set. * * Filter syntax is identical to * [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter]. - * See more - * details at the Retail Search - * [user guide](/retail/search/docs/filter-and-order#filter). + * For more + * information, see [Filter](/retail/docs/filter-and-order#filter). * * To filter products with product ID "product_1" or "product_2", and * color * "Red" or "Blue":<br> @@ -1053,9 +1052,8 @@ public interface FilterActionOrBuilder * set. * * Filter syntax is identical to * [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter]. - * See more - * details at the Retail Search - * [user guide](/retail/search/docs/filter-and-order#filter). + * For more + * information, see [Filter](/retail/docs/filter-and-order#filter). * * To filter products with product ID "product_1" or "product_2", and * color * "Red" or "Blue":<br> @@ -1075,17 +1073,19 @@ public interface FilterActionOrBuilder * *
    * * Rule Condition:
-   *   - No
-   *   [Condition.query_terms][google.cloud.retail.v2alpha.Condition.query_terms]
-   *   provided is a global match.
-   *   - 1 or more
-   *   [Condition.query_terms][google.cloud.retail.v2alpha.Condition.query_terms]
-   *   provided are combined with OR operator.
+   *     - No
+   *     [Condition.query_terms][google.cloud.retail.v2alpha.Condition.query_terms]
+   *     provided is a global match.
+   *     - 1 or more
+   *     [Condition.query_terms][google.cloud.retail.v2alpha.Condition.query_terms]
+   *     provided are combined with OR operator.
+   *
    * * Action Input: The request query and filter that are applied to the
    * retrieved products, in addition to any filters already provided with the
    * SearchRequest. The AND operator is used to combine the query's existing
    * filters with the filter rule(s). NOTE: May result in 0 results when
    * filters conflict.
+   *
    * * Action Result: Filters the returned objects to be ONLY those that passed
    * the filter.
    * 
@@ -1141,9 +1141,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * set. * * Filter syntax is identical to * [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter]. - * See more - * details at the Retail Search - * [user guide](/retail/search/docs/filter-and-order#filter). + * For more + * information, see [Filter](/retail/docs/filter-and-order#filter). * * To filter products with product ID "product_1" or "product_2", and * color * "Red" or "Blue":<br> @@ -1178,9 +1177,8 @@ public java.lang.String getFilter() { * set. * * Filter syntax is identical to * [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter]. - * See more - * details at the Retail Search - * [user guide](/retail/search/docs/filter-and-order#filter). + * For more + * information, see [Filter](/retail/docs/filter-and-order#filter). * * To filter products with product ID "product_1" or "product_2", and * color * "Red" or "Blue":<br> @@ -1371,17 +1369,19 @@ protected Builder newBuilderForType( * *
      * * Rule Condition:
-     *   - No
-     *   [Condition.query_terms][google.cloud.retail.v2alpha.Condition.query_terms]
-     *   provided is a global match.
-     *   - 1 or more
-     *   [Condition.query_terms][google.cloud.retail.v2alpha.Condition.query_terms]
-     *   provided are combined with OR operator.
+     *     - No
+     *     [Condition.query_terms][google.cloud.retail.v2alpha.Condition.query_terms]
+     *     provided is a global match.
+     *     - 1 or more
+     *     [Condition.query_terms][google.cloud.retail.v2alpha.Condition.query_terms]
+     *     provided are combined with OR operator.
+     *
      * * Action Input: The request query and filter that are applied to the
      * retrieved products, in addition to any filters already provided with the
      * SearchRequest. The AND operator is used to combine the query's existing
      * filters with the filter rule(s). NOTE: May result in 0 results when
      * filters conflict.
+     *
      * * Action Result: Filters the returned objects to be ONLY those that passed
      * the filter.
      * 
@@ -1576,9 +1576,8 @@ public Builder mergeFrom( * set. * * Filter syntax is identical to * [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter]. - * See more - * details at the Retail Search - * [user guide](/retail/search/docs/filter-and-order#filter). + * For more + * information, see [Filter](/retail/docs/filter-and-order#filter). * * To filter products with product ID "product_1" or "product_2", and * color * "Red" or "Blue":<br> @@ -1612,9 +1611,8 @@ public java.lang.String getFilter() { * set. * * Filter syntax is identical to * [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter]. - * See more - * details at the Retail Search - * [user guide](/retail/search/docs/filter-and-order#filter). + * For more + * information, see [Filter](/retail/docs/filter-and-order#filter). * * To filter products with product ID "product_1" or "product_2", and * color * "Red" or "Blue":<br> @@ -1648,9 +1646,8 @@ public com.google.protobuf.ByteString getFilterBytes() { * set. * * Filter syntax is identical to * [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter]. - * See more - * details at the Retail Search - * [user guide](/retail/search/docs/filter-and-order#filter). + * For more + * information, see [Filter](/retail/docs/filter-and-order#filter). * * To filter products with product ID "product_1" or "product_2", and * color * "Red" or "Blue":<br> @@ -1683,9 +1680,8 @@ public Builder setFilter(java.lang.String value) { * set. * * Filter syntax is identical to * [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter]. - * See more - * details at the Retail Search - * [user guide](/retail/search/docs/filter-and-order#filter). + * For more + * information, see [Filter](/retail/docs/filter-and-order#filter). * * To filter products with product ID "product_1" or "product_2", and * color * "Red" or "Blue":<br> @@ -1714,9 +1710,8 @@ public Builder clearFilter() { * set. * * Filter syntax is identical to * [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter]. - * See more - * details at the Retail Search - * [user guide](/retail/search/docs/filter-and-order#filter). + * For more + * information, see [Filter](/retail/docs/filter-and-order#filter). * * To filter products with product ID "product_1" or "product_2", and * color * "Red" or "Blue":<br> @@ -1842,7 +1837,7 @@ public interface RedirectActionOrBuilder * Redirects a shopper to a specific page. * * * Rule Condition: - * - Must specify + * Must specify * [Condition.query_terms][google.cloud.retail.v2alpha.Condition.query_terms]. * * Action Input: Request Query * * Action Result: Redirects shopper to provided uri. @@ -2104,7 +2099,7 @@ protected Builder newBuilderForType( * Redirects a shopper to a specific page. * * * Rule Condition: - * - Must specify + * Must specify * [Condition.query_terms][google.cloud.retail.v2alpha.Condition.query_terms]. * * Action Input: Request Query * * Action Result: Redirects shopper to provided uri. @@ -8230,211 +8225,3095 @@ public com.google.cloud.retail.v2alpha.Rule.IgnoreAction getDefaultInstanceForTy } } - private int bitField0_; - private int actionCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object action_; - - public enum ActionCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - BOOST_ACTION(2), - REDIRECT_ACTION(3), - ONEWAY_SYNONYMS_ACTION(6), - DO_NOT_ASSOCIATE_ACTION(7), - REPLACEMENT_ACTION(8), - IGNORE_ACTION(9), - FILTER_ACTION(10), - TWOWAY_SYNONYMS_ACTION(11), - ACTION_NOT_SET(0); - private final int value; + public interface ForceReturnFacetActionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction) + com.google.protobuf.MessageOrBuilder { - private ActionCase(int value) { - this.value = value; - } /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. + * + * + *
+     * Each instance corresponds to a force return attribute for the given
+     * condition. There can't be more 3 instances here.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * */ - @java.lang.Deprecated - public static ActionCase valueOf(int value) { - return forNumber(value); - } - - public static ActionCase forNumber(int value) { - switch (value) { - case 2: - return BOOST_ACTION; - case 3: - return REDIRECT_ACTION; - case 6: - return ONEWAY_SYNONYMS_ACTION; - case 7: - return DO_NOT_ASSOCIATE_ACTION; - case 8: - return REPLACEMENT_ACTION; - case 9: - return IGNORE_ACTION; - case 10: - return FILTER_ACTION; - case 11: - return TWOWAY_SYNONYMS_ACTION; - case 0: - return ACTION_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public ActionCase getActionCase() { - return ActionCase.forNumber(actionCase_); + java.util.List< + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment> + getFacetPositionAdjustmentsList(); + /** + * + * + *
+     * Each instance corresponds to a force return attribute for the given
+     * condition. There can't be more 3 instances here.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment + getFacetPositionAdjustments(int index); + /** + * + * + *
+     * Each instance corresponds to a force return attribute for the given
+     * condition. There can't be more 3 instances here.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + int getFacetPositionAdjustmentsCount(); + /** + * + * + *
+     * Each instance corresponds to a force return attribute for the given
+     * condition. There can't be more 3 instances here.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction + .FacetPositionAdjustmentOrBuilder> + getFacetPositionAdjustmentsOrBuilderList(); + /** + * + * + *
+     * Each instance corresponds to a force return attribute for the given
+     * condition. There can't be more 3 instances here.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustmentOrBuilder + getFacetPositionAdjustmentsOrBuilder(int index); } - - public static final int BOOST_ACTION_FIELD_NUMBER = 2; /** * * *
-   * A boost action.
-   * 
- * - * .google.cloud.retail.v2alpha.Rule.BoostAction boost_action = 2; - * - * @return Whether the boostAction field is set. - */ - @java.lang.Override - public boolean hasBoostAction() { - return actionCase_ == 2; - } - /** + * Force returns an attribute/facet in the request around a certain position + * or above. * - * - *
-   * A boost action.
+   * * Rule Condition:
+   *   Must specify non-empty
+   *   [Condition.query_terms][google.cloud.retail.v2alpha.Condition.query_terms]
+   *   (for search only) or
+   *   [Condition.page_categories][google.cloud.retail.v2alpha.Condition.page_categories]
+   *   (for browse only), but can't specify both.
+   *
+   * * Action Inputs: attribute name, position
+   *
+   * * Action Result: Will force return a facet key around a certain position
+   * or above if the condition is satisfied.
+   *
+   * Example: Suppose the query is "shoes", the
+   * [Condition.query_terms][google.cloud.retail.v2alpha.Condition.query_terms]
+   * is "shoes", the
+   * [ForceReturnFacetAction.FacetPositionAdjustment.attribute_name][google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment.attribute_name]
+   * is "size" and the
+   * [ForceReturnFacetAction.FacetPositionAdjustment.position][google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment.position]
+   * is 8.
+   *
+   * Two cases: a) The facet key "size" is not already in the top 8 slots, then
+   * the facet "size" will appear at a position close to 8. b) The facet key
+   * "size" in among the top 8 positions in the request, then it will stay at
+   * its current rank.
    * 
* - * .google.cloud.retail.v2alpha.Rule.BoostAction boost_action = 2; - * - * @return The boostAction. + * Protobuf type {@code google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction} */ - @java.lang.Override - public com.google.cloud.retail.v2alpha.Rule.BoostAction getBoostAction() { - if (actionCase_ == 2) { - return (com.google.cloud.retail.v2alpha.Rule.BoostAction) action_; + public static final class ForceReturnFacetAction extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction) + ForceReturnFacetActionOrBuilder { + private static final long serialVersionUID = 0L; + // Use ForceReturnFacetAction.newBuilder() to construct. + private ForceReturnFacetAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); } - return com.google.cloud.retail.v2alpha.Rule.BoostAction.getDefaultInstance(); - } - /** - * - * - *
-   * A boost action.
-   * 
- * - * .google.cloud.retail.v2alpha.Rule.BoostAction boost_action = 2; - */ - @java.lang.Override - public com.google.cloud.retail.v2alpha.Rule.BoostActionOrBuilder getBoostActionOrBuilder() { - if (actionCase_ == 2) { - return (com.google.cloud.retail.v2alpha.Rule.BoostAction) action_; + + private ForceReturnFacetAction() { + facetPositionAdjustments_ = java.util.Collections.emptyList(); } - return com.google.cloud.retail.v2alpha.Rule.BoostAction.getDefaultInstance(); - } - public static final int REDIRECT_ACTION_FIELD_NUMBER = 3; - /** - * - * - *
-   * Redirects a shopper to a specific page.
-   * 
- * - * .google.cloud.retail.v2alpha.Rule.RedirectAction redirect_action = 3; - * - * @return Whether the redirectAction field is set. - */ - @java.lang.Override - public boolean hasRedirectAction() { - return actionCase_ == 3; - } - /** - * - * - *
-   * Redirects a shopper to a specific page.
-   * 
- * - * .google.cloud.retail.v2alpha.Rule.RedirectAction redirect_action = 3; - * - * @return The redirectAction. - */ - @java.lang.Override - public com.google.cloud.retail.v2alpha.Rule.RedirectAction getRedirectAction() { - if (actionCase_ == 3) { - return (com.google.cloud.retail.v2alpha.Rule.RedirectAction) action_; + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ForceReturnFacetAction(); } - return com.google.cloud.retail.v2alpha.Rule.RedirectAction.getDefaultInstance(); - } - /** - * - * - *
-   * Redirects a shopper to a specific page.
-   * 
- * - * .google.cloud.retail.v2alpha.Rule.RedirectAction redirect_action = 3; - */ - @java.lang.Override - public com.google.cloud.retail.v2alpha.Rule.RedirectActionOrBuilder getRedirectActionOrBuilder() { - if (actionCase_ == 3) { - return (com.google.cloud.retail.v2alpha.Rule.RedirectAction) action_; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.CommonProto + .internal_static_google_cloud_retail_v2alpha_Rule_ForceReturnFacetAction_descriptor; } - return com.google.cloud.retail.v2alpha.Rule.RedirectAction.getDefaultInstance(); - } - public static final int ONEWAY_SYNONYMS_ACTION_FIELD_NUMBER = 6; - /** - * - * - *
-   * Treats specific term as a synonym with a group of terms.
-   * Group of terms will not be treated as synonyms with the specific term.
-   * 
- * - * .google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; - * - * @return Whether the onewaySynonymsAction field is set. - */ - @java.lang.Override - public boolean hasOnewaySynonymsAction() { - return actionCase_ == 6; - } - /** - * - * - *
-   * Treats specific term as a synonym with a group of terms.
-   * Group of terms will not be treated as synonyms with the specific term.
-   * 
- * - * .google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; - * - * @return The onewaySynonymsAction. - */ - @java.lang.Override - public com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction getOnewaySynonymsAction() { - if (actionCase_ == 6) { - return (com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction) action_; + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.CommonProto + .internal_static_google_cloud_retail_v2alpha_Rule_ForceReturnFacetAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.class, + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.Builder.class); } - return com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction.getDefaultInstance(); + + public interface FacetPositionAdjustmentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * The attribute name to force return as a facet. Each attribute name
+       * should be a valid attribute name, be non-empty and contain at most 80
+       * characters long.
+       * 
+ * + * string attribute_name = 1; + * + * @return The attributeName. + */ + java.lang.String getAttributeName(); + /** + * + * + *
+       * The attribute name to force return as a facet. Each attribute name
+       * should be a valid attribute name, be non-empty and contain at most 80
+       * characters long.
+       * 
+ * + * string attribute_name = 1; + * + * @return The bytes for attributeName. + */ + com.google.protobuf.ByteString getAttributeNameBytes(); + + /** + * + * + *
+       * This is the position in the request as explained above. It should be
+       * strictly positive be at most 100.
+       * 
+ * + * int32 position = 2; + * + * @return The position. + */ + int getPosition(); + } + /** + * + * + *
+     * Each facet position adjustment consists of a single attribute name (i.e.
+     * facet key) along with a specified position.
+     * 
+ * + * Protobuf type {@code + * google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment} + */ + public static final class FacetPositionAdjustment extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment) + FacetPositionAdjustmentOrBuilder { + private static final long serialVersionUID = 0L; + // Use FacetPositionAdjustment.newBuilder() to construct. + private FacetPositionAdjustment(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FacetPositionAdjustment() { + attributeName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FacetPositionAdjustment(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.CommonProto + .internal_static_google_cloud_retail_v2alpha_Rule_ForceReturnFacetAction_FacetPositionAdjustment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.CommonProto + .internal_static_google_cloud_retail_v2alpha_Rule_ForceReturnFacetAction_FacetPositionAdjustment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment + .class, + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment + .Builder.class); + } + + public static final int ATTRIBUTE_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object attributeName_ = ""; + /** + * + * + *
+       * The attribute name to force return as a facet. Each attribute name
+       * should be a valid attribute name, be non-empty and contain at most 80
+       * characters long.
+       * 
+ * + * string attribute_name = 1; + * + * @return The attributeName. + */ + @java.lang.Override + public java.lang.String getAttributeName() { + java.lang.Object ref = attributeName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + attributeName_ = s; + return s; + } + } + /** + * + * + *
+       * The attribute name to force return as a facet. Each attribute name
+       * should be a valid attribute name, be non-empty and contain at most 80
+       * characters long.
+       * 
+ * + * string attribute_name = 1; + * + * @return The bytes for attributeName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAttributeNameBytes() { + java.lang.Object ref = attributeName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + attributeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POSITION_FIELD_NUMBER = 2; + private int position_ = 0; + /** + * + * + *
+       * This is the position in the request as explained above. It should be
+       * strictly positive be at most 100.
+       * 
+ * + * int32 position = 2; + * + * @return The position. + */ + @java.lang.Override + public int getPosition() { + return position_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attributeName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, attributeName_); + } + if (position_ != 0) { + output.writeInt32(2, position_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attributeName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, attributeName_); + } + if (position_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, position_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment)) { + return super.equals(obj); + } + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment other = + (com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment) + obj; + + if (!getAttributeName().equals(other.getAttributeName())) return false; + if (getPosition() != other.getPosition()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ATTRIBUTE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getAttributeName().hashCode(); + hash = (37 * hash) + POSITION_FIELD_NUMBER; + hash = (53 * hash) + getPosition(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction + .FacetPositionAdjustment + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction + .FacetPositionAdjustment + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction + .FacetPositionAdjustment + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction + .FacetPositionAdjustment + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction + .FacetPositionAdjustment + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction + .FacetPositionAdjustment + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction + .FacetPositionAdjustment + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction + .FacetPositionAdjustment + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction + .FacetPositionAdjustment + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction + .FacetPositionAdjustment + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction + .FacetPositionAdjustment + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction + .FacetPositionAdjustment + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+       * Each facet position adjustment consists of a single attribute name (i.e.
+       * facet key) along with a specified position.
+       * 
+ * + * Protobuf type {@code + * google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment) + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction + .FacetPositionAdjustmentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.CommonProto + .internal_static_google_cloud_retail_v2alpha_Rule_ForceReturnFacetAction_FacetPositionAdjustment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.CommonProto + .internal_static_google_cloud_retail_v2alpha_Rule_ForceReturnFacetAction_FacetPositionAdjustment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction + .FacetPositionAdjustment.class, + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction + .FacetPositionAdjustment.Builder.class); + } + + // Construct using + // com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + attributeName_ = ""; + position_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2alpha.CommonProto + .internal_static_google_cloud_retail_v2alpha_Rule_ForceReturnFacetAction_FacetPositionAdjustment_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment + getDefaultInstanceForType() { + return com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment + build() { + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment + buildPartial() { + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment + result = + new com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction + .FacetPositionAdjustment(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.attributeName_ = attributeName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.position_ = position_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment) { + return mergeFrom( + (com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction + .FacetPositionAdjustment) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment + other) { + if (other + == com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment + .getDefaultInstance()) return this; + if (!other.getAttributeName().isEmpty()) { + attributeName_ = other.attributeName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPosition() != 0) { + setPosition(other.getPosition()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + attributeName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + position_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object attributeName_ = ""; + /** + * + * + *
+         * The attribute name to force return as a facet. Each attribute name
+         * should be a valid attribute name, be non-empty and contain at most 80
+         * characters long.
+         * 
+ * + * string attribute_name = 1; + * + * @return The attributeName. + */ + public java.lang.String getAttributeName() { + java.lang.Object ref = attributeName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + attributeName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * The attribute name to force return as a facet. Each attribute name
+         * should be a valid attribute name, be non-empty and contain at most 80
+         * characters long.
+         * 
+ * + * string attribute_name = 1; + * + * @return The bytes for attributeName. + */ + public com.google.protobuf.ByteString getAttributeNameBytes() { + java.lang.Object ref = attributeName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + attributeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * The attribute name to force return as a facet. Each attribute name
+         * should be a valid attribute name, be non-empty and contain at most 80
+         * characters long.
+         * 
+ * + * string attribute_name = 1; + * + * @param value The attributeName to set. + * @return This builder for chaining. + */ + public Builder setAttributeName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + attributeName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * The attribute name to force return as a facet. Each attribute name
+         * should be a valid attribute name, be non-empty and contain at most 80
+         * characters long.
+         * 
+ * + * string attribute_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearAttributeName() { + attributeName_ = getDefaultInstance().getAttributeName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+         * The attribute name to force return as a facet. Each attribute name
+         * should be a valid attribute name, be non-empty and contain at most 80
+         * characters long.
+         * 
+ * + * string attribute_name = 1; + * + * @param value The bytes for attributeName to set. + * @return This builder for chaining. + */ + public Builder setAttributeNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + attributeName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int position_; + /** + * + * + *
+         * This is the position in the request as explained above. It should be
+         * strictly positive be at most 100.
+         * 
+ * + * int32 position = 2; + * + * @return The position. + */ + @java.lang.Override + public int getPosition() { + return position_; + } + /** + * + * + *
+         * This is the position in the request as explained above. It should be
+         * strictly positive be at most 100.
+         * 
+ * + * int32 position = 2; + * + * @param value The position to set. + * @return This builder for chaining. + */ + public Builder setPosition(int value) { + + position_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+         * This is the position in the request as explained above. It should be
+         * strictly positive be at most 100.
+         * 
+ * + * int32 position = 2; + * + * @return This builder for chaining. + */ + public Builder clearPosition() { + bitField0_ = (bitField0_ & ~0x00000002); + position_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment) + private static final com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction + .FacetPositionAdjustment + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction + .FacetPositionAdjustment(); + } + + public static com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction + .FacetPositionAdjustment + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FacetPositionAdjustment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int FACET_POSITION_ADJUSTMENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment> + facetPositionAdjustments_; + /** + * + * + *
+     * Each instance corresponds to a force return attribute for the given
+     * condition. There can't be more 3 instances here.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment> + getFacetPositionAdjustmentsList() { + return facetPositionAdjustments_; + } + /** + * + * + *
+     * Each instance corresponds to a force return attribute for the given
+     * condition. There can't be more 3 instances here.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction + .FacetPositionAdjustmentOrBuilder> + getFacetPositionAdjustmentsOrBuilderList() { + return facetPositionAdjustments_; + } + /** + * + * + *
+     * Each instance corresponds to a force return attribute for the given
+     * condition. There can't be more 3 instances here.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + @java.lang.Override + public int getFacetPositionAdjustmentsCount() { + return facetPositionAdjustments_.size(); + } + /** + * + * + *
+     * Each instance corresponds to a force return attribute for the given
+     * condition. There can't be more 3 instances here.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment + getFacetPositionAdjustments(int index) { + return facetPositionAdjustments_.get(index); + } + /** + * + * + *
+     * Each instance corresponds to a force return attribute for the given
+     * condition. There can't be more 3 instances here.
+     * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction + .FacetPositionAdjustmentOrBuilder + getFacetPositionAdjustmentsOrBuilder(int index) { + return facetPositionAdjustments_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < facetPositionAdjustments_.size(); i++) { + output.writeMessage(1, facetPositionAdjustments_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < facetPositionAdjustments_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, facetPositionAdjustments_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction)) { + return super.equals(obj); + } + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction other = + (com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction) obj; + + if (!getFacetPositionAdjustmentsList().equals(other.getFacetPositionAdjustmentsList())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getFacetPositionAdjustmentsCount() > 0) { + hash = (37 * hash) + FACET_POSITION_ADJUSTMENTS_FIELD_NUMBER; + hash = (53 * hash) + getFacetPositionAdjustmentsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Force returns an attribute/facet in the request around a certain position
+     * or above.
+     *
+     * * Rule Condition:
+     *   Must specify non-empty
+     *   [Condition.query_terms][google.cloud.retail.v2alpha.Condition.query_terms]
+     *   (for search only) or
+     *   [Condition.page_categories][google.cloud.retail.v2alpha.Condition.page_categories]
+     *   (for browse only), but can't specify both.
+     *
+     * * Action Inputs: attribute name, position
+     *
+     * * Action Result: Will force return a facet key around a certain position
+     * or above if the condition is satisfied.
+     *
+     * Example: Suppose the query is "shoes", the
+     * [Condition.query_terms][google.cloud.retail.v2alpha.Condition.query_terms]
+     * is "shoes", the
+     * [ForceReturnFacetAction.FacetPositionAdjustment.attribute_name][google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment.attribute_name]
+     * is "size" and the
+     * [ForceReturnFacetAction.FacetPositionAdjustment.position][google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment.position]
+     * is 8.
+     *
+     * Two cases: a) The facet key "size" is not already in the top 8 slots, then
+     * the facet "size" will appear at a position close to 8. b) The facet key
+     * "size" in among the top 8 positions in the request, then it will stay at
+     * its current rank.
+     * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction) + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetActionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.CommonProto + .internal_static_google_cloud_retail_v2alpha_Rule_ForceReturnFacetAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.CommonProto + .internal_static_google_cloud_retail_v2alpha_Rule_ForceReturnFacetAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.class, + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.Builder.class); + } + + // Construct using com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (facetPositionAdjustmentsBuilder_ == null) { + facetPositionAdjustments_ = java.util.Collections.emptyList(); + } else { + facetPositionAdjustments_ = null; + facetPositionAdjustmentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2alpha.CommonProto + .internal_static_google_cloud_retail_v2alpha_Rule_ForceReturnFacetAction_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction + getDefaultInstanceForType() { + return com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction build() { + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction buildPartial() { + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction result = + new com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction result) { + if (facetPositionAdjustmentsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + facetPositionAdjustments_ = + java.util.Collections.unmodifiableList(facetPositionAdjustments_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.facetPositionAdjustments_ = facetPositionAdjustments_; + } else { + result.facetPositionAdjustments_ = facetPositionAdjustmentsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction) { + return mergeFrom((com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction other) { + if (other + == com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.getDefaultInstance()) + return this; + if (facetPositionAdjustmentsBuilder_ == null) { + if (!other.facetPositionAdjustments_.isEmpty()) { + if (facetPositionAdjustments_.isEmpty()) { + facetPositionAdjustments_ = other.facetPositionAdjustments_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFacetPositionAdjustmentsIsMutable(); + facetPositionAdjustments_.addAll(other.facetPositionAdjustments_); + } + onChanged(); + } + } else { + if (!other.facetPositionAdjustments_.isEmpty()) { + if (facetPositionAdjustmentsBuilder_.isEmpty()) { + facetPositionAdjustmentsBuilder_.dispose(); + facetPositionAdjustmentsBuilder_ = null; + facetPositionAdjustments_ = other.facetPositionAdjustments_; + bitField0_ = (bitField0_ & ~0x00000001); + facetPositionAdjustmentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFacetPositionAdjustmentsFieldBuilder() + : null; + } else { + facetPositionAdjustmentsBuilder_.addAllMessages(other.facetPositionAdjustments_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction + .FacetPositionAdjustment + m = + input.readMessage( + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction + .FacetPositionAdjustment.parser(), + extensionRegistry); + if (facetPositionAdjustmentsBuilder_ == null) { + ensureFacetPositionAdjustmentsIsMutable(); + facetPositionAdjustments_.add(m); + } else { + facetPositionAdjustmentsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List< + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment> + facetPositionAdjustments_ = java.util.Collections.emptyList(); + + private void ensureFacetPositionAdjustmentsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + facetPositionAdjustments_ = + new java.util.ArrayList< + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction + .FacetPositionAdjustment>(facetPositionAdjustments_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment, + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment + .Builder, + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction + .FacetPositionAdjustmentOrBuilder> + facetPositionAdjustmentsBuilder_; + + /** + * + * + *
+       * Each instance corresponds to a force return attribute for the given
+       * condition. There can't be more 3 instances here.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + public java.util.List< + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment> + getFacetPositionAdjustmentsList() { + if (facetPositionAdjustmentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(facetPositionAdjustments_); + } else { + return facetPositionAdjustmentsBuilder_.getMessageList(); + } + } + /** + * + * + *
+       * Each instance corresponds to a force return attribute for the given
+       * condition. There can't be more 3 instances here.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + public int getFacetPositionAdjustmentsCount() { + if (facetPositionAdjustmentsBuilder_ == null) { + return facetPositionAdjustments_.size(); + } else { + return facetPositionAdjustmentsBuilder_.getCount(); + } + } + /** + * + * + *
+       * Each instance corresponds to a force return attribute for the given
+       * condition. There can't be more 3 instances here.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + public com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment + getFacetPositionAdjustments(int index) { + if (facetPositionAdjustmentsBuilder_ == null) { + return facetPositionAdjustments_.get(index); + } else { + return facetPositionAdjustmentsBuilder_.getMessage(index); + } + } + /** + * + * + *
+       * Each instance corresponds to a force return attribute for the given
+       * condition. There can't be more 3 instances here.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + public Builder setFacetPositionAdjustments( + int index, + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment + value) { + if (facetPositionAdjustmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFacetPositionAdjustmentsIsMutable(); + facetPositionAdjustments_.set(index, value); + onChanged(); + } else { + facetPositionAdjustmentsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Each instance corresponds to a force return attribute for the given
+       * condition. There can't be more 3 instances here.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + public Builder setFacetPositionAdjustments( + int index, + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment + .Builder + builderForValue) { + if (facetPositionAdjustmentsBuilder_ == null) { + ensureFacetPositionAdjustmentsIsMutable(); + facetPositionAdjustments_.set(index, builderForValue.build()); + onChanged(); + } else { + facetPositionAdjustmentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Each instance corresponds to a force return attribute for the given
+       * condition. There can't be more 3 instances here.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + public Builder addFacetPositionAdjustments( + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment + value) { + if (facetPositionAdjustmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFacetPositionAdjustmentsIsMutable(); + facetPositionAdjustments_.add(value); + onChanged(); + } else { + facetPositionAdjustmentsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+       * Each instance corresponds to a force return attribute for the given
+       * condition. There can't be more 3 instances here.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + public Builder addFacetPositionAdjustments( + int index, + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment + value) { + if (facetPositionAdjustmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFacetPositionAdjustmentsIsMutable(); + facetPositionAdjustments_.add(index, value); + onChanged(); + } else { + facetPositionAdjustmentsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Each instance corresponds to a force return attribute for the given
+       * condition. There can't be more 3 instances here.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + public Builder addFacetPositionAdjustments( + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment + .Builder + builderForValue) { + if (facetPositionAdjustmentsBuilder_ == null) { + ensureFacetPositionAdjustmentsIsMutable(); + facetPositionAdjustments_.add(builderForValue.build()); + onChanged(); + } else { + facetPositionAdjustmentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Each instance corresponds to a force return attribute for the given
+       * condition. There can't be more 3 instances here.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + public Builder addFacetPositionAdjustments( + int index, + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment + .Builder + builderForValue) { + if (facetPositionAdjustmentsBuilder_ == null) { + ensureFacetPositionAdjustmentsIsMutable(); + facetPositionAdjustments_.add(index, builderForValue.build()); + onChanged(); + } else { + facetPositionAdjustmentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Each instance corresponds to a force return attribute for the given
+       * condition. There can't be more 3 instances here.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + public Builder addAllFacetPositionAdjustments( + java.lang.Iterable< + ? extends + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction + .FacetPositionAdjustment> + values) { + if (facetPositionAdjustmentsBuilder_ == null) { + ensureFacetPositionAdjustmentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, facetPositionAdjustments_); + onChanged(); + } else { + facetPositionAdjustmentsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+       * Each instance corresponds to a force return attribute for the given
+       * condition. There can't be more 3 instances here.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + public Builder clearFacetPositionAdjustments() { + if (facetPositionAdjustmentsBuilder_ == null) { + facetPositionAdjustments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + facetPositionAdjustmentsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Each instance corresponds to a force return attribute for the given
+       * condition. There can't be more 3 instances here.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + public Builder removeFacetPositionAdjustments(int index) { + if (facetPositionAdjustmentsBuilder_ == null) { + ensureFacetPositionAdjustmentsIsMutable(); + facetPositionAdjustments_.remove(index); + onChanged(); + } else { + facetPositionAdjustmentsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+       * Each instance corresponds to a force return attribute for the given
+       * condition. There can't be more 3 instances here.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + public com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment + .Builder + getFacetPositionAdjustmentsBuilder(int index) { + return getFacetPositionAdjustmentsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * Each instance corresponds to a force return attribute for the given
+       * condition. There can't be more 3 instances here.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + public com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction + .FacetPositionAdjustmentOrBuilder + getFacetPositionAdjustmentsOrBuilder(int index) { + if (facetPositionAdjustmentsBuilder_ == null) { + return facetPositionAdjustments_.get(index); + } else { + return facetPositionAdjustmentsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+       * Each instance corresponds to a force return attribute for the given
+       * condition. There can't be more 3 instances here.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction + .FacetPositionAdjustmentOrBuilder> + getFacetPositionAdjustmentsOrBuilderList() { + if (facetPositionAdjustmentsBuilder_ != null) { + return facetPositionAdjustmentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(facetPositionAdjustments_); + } + } + /** + * + * + *
+       * Each instance corresponds to a force return attribute for the given
+       * condition. There can't be more 3 instances here.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + public com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment + .Builder + addFacetPositionAdjustmentsBuilder() { + return getFacetPositionAdjustmentsFieldBuilder() + .addBuilder( + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment + .getDefaultInstance()); + } + /** + * + * + *
+       * Each instance corresponds to a force return attribute for the given
+       * condition. There can't be more 3 instances here.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + public com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment + .Builder + addFacetPositionAdjustmentsBuilder(int index) { + return getFacetPositionAdjustmentsFieldBuilder() + .addBuilder( + index, + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment + .getDefaultInstance()); + } + /** + * + * + *
+       * Each instance corresponds to a force return attribute for the given
+       * condition. There can't be more 3 instances here.
+       * 
+ * + * + * repeated .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + public java.util.List< + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment + .Builder> + getFacetPositionAdjustmentsBuilderList() { + return getFacetPositionAdjustmentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment, + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment + .Builder, + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction + .FacetPositionAdjustmentOrBuilder> + getFacetPositionAdjustmentsFieldBuilder() { + if (facetPositionAdjustmentsBuilder_ == null) { + facetPositionAdjustmentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction + .FacetPositionAdjustment, + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction + .FacetPositionAdjustment.Builder, + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction + .FacetPositionAdjustmentOrBuilder>( + facetPositionAdjustments_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + facetPositionAdjustments_ = null; + } + return facetPositionAdjustmentsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction) + private static final com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction(); + } + + public static com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ForceReturnFacetAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface RemoveFacetActionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2alpha.Rule.RemoveFacetAction) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The attribute names (i.e. facet keys) to remove from the dynamic facets
+     * (if present in the request). There can't be more 3 attribute names.
+     * Each attribute name should be a valid attribute name, be non-empty and
+     * contain at most 80 characters.
+     * 
+ * + * repeated string attribute_names = 1; + * + * @return A list containing the attributeNames. + */ + java.util.List getAttributeNamesList(); + /** + * + * + *
+     * The attribute names (i.e. facet keys) to remove from the dynamic facets
+     * (if present in the request). There can't be more 3 attribute names.
+     * Each attribute name should be a valid attribute name, be non-empty and
+     * contain at most 80 characters.
+     * 
+ * + * repeated string attribute_names = 1; + * + * @return The count of attributeNames. + */ + int getAttributeNamesCount(); + /** + * + * + *
+     * The attribute names (i.e. facet keys) to remove from the dynamic facets
+     * (if present in the request). There can't be more 3 attribute names.
+     * Each attribute name should be a valid attribute name, be non-empty and
+     * contain at most 80 characters.
+     * 
+ * + * repeated string attribute_names = 1; + * + * @param index The index of the element to return. + * @return The attributeNames at the given index. + */ + java.lang.String getAttributeNames(int index); + /** + * + * + *
+     * The attribute names (i.e. facet keys) to remove from the dynamic facets
+     * (if present in the request). There can't be more 3 attribute names.
+     * Each attribute name should be a valid attribute name, be non-empty and
+     * contain at most 80 characters.
+     * 
+ * + * repeated string attribute_names = 1; + * + * @param index The index of the value to return. + * @return The bytes of the attributeNames at the given index. + */ + com.google.protobuf.ByteString getAttributeNamesBytes(int index); + } + /** + * + * + *
+   * Removes an attribute/facet in the request if is present.
+   *
+   * * Rule Condition:
+   *   Must specify non-empty
+   *   [Condition.query_terms][google.cloud.retail.v2alpha.Condition.query_terms]
+   *   (for search only) or
+   *   [Condition.page_categories][google.cloud.retail.v2alpha.Condition.page_categories]
+   *   (for browse only), but can't specify both.
+   *
+   * * Action Input: attribute name
+   *
+   * * Action Result: Will remove the attribute (as a facet) from the request
+   * if it is present.
+   *
+   * Example: Suppose the query is "shoes", the
+   * [Condition.query_terms][google.cloud.retail.v2alpha.Condition.query_terms]
+   * is "shoes" and the attribute name "size", then facet key "size" will be
+   * removed from the request (if it is present).
+   * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.Rule.RemoveFacetAction} + */ + public static final class RemoveFacetAction extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2alpha.Rule.RemoveFacetAction) + RemoveFacetActionOrBuilder { + private static final long serialVersionUID = 0L; + // Use RemoveFacetAction.newBuilder() to construct. + private RemoveFacetAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RemoveFacetAction() { + attributeNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RemoveFacetAction(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.CommonProto + .internal_static_google_cloud_retail_v2alpha_Rule_RemoveFacetAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.CommonProto + .internal_static_google_cloud_retail_v2alpha_Rule_RemoveFacetAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction.class, + com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction.Builder.class); + } + + public static final int ATTRIBUTE_NAMES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList attributeNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+     * The attribute names (i.e. facet keys) to remove from the dynamic facets
+     * (if present in the request). There can't be more 3 attribute names.
+     * Each attribute name should be a valid attribute name, be non-empty and
+     * contain at most 80 characters.
+     * 
+ * + * repeated string attribute_names = 1; + * + * @return A list containing the attributeNames. + */ + public com.google.protobuf.ProtocolStringList getAttributeNamesList() { + return attributeNames_; + } + /** + * + * + *
+     * The attribute names (i.e. facet keys) to remove from the dynamic facets
+     * (if present in the request). There can't be more 3 attribute names.
+     * Each attribute name should be a valid attribute name, be non-empty and
+     * contain at most 80 characters.
+     * 
+ * + * repeated string attribute_names = 1; + * + * @return The count of attributeNames. + */ + public int getAttributeNamesCount() { + return attributeNames_.size(); + } + /** + * + * + *
+     * The attribute names (i.e. facet keys) to remove from the dynamic facets
+     * (if present in the request). There can't be more 3 attribute names.
+     * Each attribute name should be a valid attribute name, be non-empty and
+     * contain at most 80 characters.
+     * 
+ * + * repeated string attribute_names = 1; + * + * @param index The index of the element to return. + * @return The attributeNames at the given index. + */ + public java.lang.String getAttributeNames(int index) { + return attributeNames_.get(index); + } + /** + * + * + *
+     * The attribute names (i.e. facet keys) to remove from the dynamic facets
+     * (if present in the request). There can't be more 3 attribute names.
+     * Each attribute name should be a valid attribute name, be non-empty and
+     * contain at most 80 characters.
+     * 
+ * + * repeated string attribute_names = 1; + * + * @param index The index of the value to return. + * @return The bytes of the attributeNames at the given index. + */ + public com.google.protobuf.ByteString getAttributeNamesBytes(int index) { + return attributeNames_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < attributeNames_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, attributeNames_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < attributeNames_.size(); i++) { + dataSize += computeStringSizeNoTag(attributeNames_.getRaw(i)); + } + size += dataSize; + size += 1 * getAttributeNamesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction)) { + return super.equals(obj); + } + com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction other = + (com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction) obj; + + if (!getAttributeNamesList().equals(other.getAttributeNamesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAttributeNamesCount() > 0) { + hash = (37 * hash) + ATTRIBUTE_NAMES_FIELD_NUMBER; + hash = (53 * hash) + getAttributeNamesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Removes an attribute/facet in the request if is present.
+     *
+     * * Rule Condition:
+     *   Must specify non-empty
+     *   [Condition.query_terms][google.cloud.retail.v2alpha.Condition.query_terms]
+     *   (for search only) or
+     *   [Condition.page_categories][google.cloud.retail.v2alpha.Condition.page_categories]
+     *   (for browse only), but can't specify both.
+     *
+     * * Action Input: attribute name
+     *
+     * * Action Result: Will remove the attribute (as a facet) from the request
+     * if it is present.
+     *
+     * Example: Suppose the query is "shoes", the
+     * [Condition.query_terms][google.cloud.retail.v2alpha.Condition.query_terms]
+     * is "shoes" and the attribute name "size", then facet key "size" will be
+     * removed from the request (if it is present).
+     * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.Rule.RemoveFacetAction} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2alpha.Rule.RemoveFacetAction) + com.google.cloud.retail.v2alpha.Rule.RemoveFacetActionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.CommonProto + .internal_static_google_cloud_retail_v2alpha_Rule_RemoveFacetAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.CommonProto + .internal_static_google_cloud_retail_v2alpha_Rule_RemoveFacetAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction.class, + com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction.Builder.class); + } + + // Construct using com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + attributeNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2alpha.CommonProto + .internal_static_google_cloud_retail_v2alpha_Rule_RemoveFacetAction_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction getDefaultInstanceForType() { + return com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction build() { + com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction buildPartial() { + com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction result = + new com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + attributeNames_.makeImmutable(); + result.attributeNames_ = attributeNames_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction) { + return mergeFrom((com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction other) { + if (other == com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction.getDefaultInstance()) + return this; + if (!other.attributeNames_.isEmpty()) { + if (attributeNames_.isEmpty()) { + attributeNames_ = other.attributeNames_; + bitField0_ |= 0x00000001; + } else { + ensureAttributeNamesIsMutable(); + attributeNames_.addAll(other.attributeNames_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAttributeNamesIsMutable(); + attributeNames_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList attributeNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAttributeNamesIsMutable() { + if (!attributeNames_.isModifiable()) { + attributeNames_ = new com.google.protobuf.LazyStringArrayList(attributeNames_); + } + bitField0_ |= 0x00000001; + } + /** + * + * + *
+       * The attribute names (i.e. facet keys) to remove from the dynamic facets
+       * (if present in the request). There can't be more 3 attribute names.
+       * Each attribute name should be a valid attribute name, be non-empty and
+       * contain at most 80 characters.
+       * 
+ * + * repeated string attribute_names = 1; + * + * @return A list containing the attributeNames. + */ + public com.google.protobuf.ProtocolStringList getAttributeNamesList() { + attributeNames_.makeImmutable(); + return attributeNames_; + } + /** + * + * + *
+       * The attribute names (i.e. facet keys) to remove from the dynamic facets
+       * (if present in the request). There can't be more 3 attribute names.
+       * Each attribute name should be a valid attribute name, be non-empty and
+       * contain at most 80 characters.
+       * 
+ * + * repeated string attribute_names = 1; + * + * @return The count of attributeNames. + */ + public int getAttributeNamesCount() { + return attributeNames_.size(); + } + /** + * + * + *
+       * The attribute names (i.e. facet keys) to remove from the dynamic facets
+       * (if present in the request). There can't be more 3 attribute names.
+       * Each attribute name should be a valid attribute name, be non-empty and
+       * contain at most 80 characters.
+       * 
+ * + * repeated string attribute_names = 1; + * + * @param index The index of the element to return. + * @return The attributeNames at the given index. + */ + public java.lang.String getAttributeNames(int index) { + return attributeNames_.get(index); + } + /** + * + * + *
+       * The attribute names (i.e. facet keys) to remove from the dynamic facets
+       * (if present in the request). There can't be more 3 attribute names.
+       * Each attribute name should be a valid attribute name, be non-empty and
+       * contain at most 80 characters.
+       * 
+ * + * repeated string attribute_names = 1; + * + * @param index The index of the value to return. + * @return The bytes of the attributeNames at the given index. + */ + public com.google.protobuf.ByteString getAttributeNamesBytes(int index) { + return attributeNames_.getByteString(index); + } + /** + * + * + *
+       * The attribute names (i.e. facet keys) to remove from the dynamic facets
+       * (if present in the request). There can't be more 3 attribute names.
+       * Each attribute name should be a valid attribute name, be non-empty and
+       * contain at most 80 characters.
+       * 
+ * + * repeated string attribute_names = 1; + * + * @param index The index to set the value at. + * @param value The attributeNames to set. + * @return This builder for chaining. + */ + public Builder setAttributeNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttributeNamesIsMutable(); + attributeNames_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * The attribute names (i.e. facet keys) to remove from the dynamic facets
+       * (if present in the request). There can't be more 3 attribute names.
+       * Each attribute name should be a valid attribute name, be non-empty and
+       * contain at most 80 characters.
+       * 
+ * + * repeated string attribute_names = 1; + * + * @param value The attributeNames to add. + * @return This builder for chaining. + */ + public Builder addAttributeNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttributeNamesIsMutable(); + attributeNames_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * The attribute names (i.e. facet keys) to remove from the dynamic facets
+       * (if present in the request). There can't be more 3 attribute names.
+       * Each attribute name should be a valid attribute name, be non-empty and
+       * contain at most 80 characters.
+       * 
+ * + * repeated string attribute_names = 1; + * + * @param values The attributeNames to add. + * @return This builder for chaining. + */ + public Builder addAllAttributeNames(java.lang.Iterable values) { + ensureAttributeNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, attributeNames_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * The attribute names (i.e. facet keys) to remove from the dynamic facets
+       * (if present in the request). There can't be more 3 attribute names.
+       * Each attribute name should be a valid attribute name, be non-empty and
+       * contain at most 80 characters.
+       * 
+ * + * repeated string attribute_names = 1; + * + * @return This builder for chaining. + */ + public Builder clearAttributeNames() { + attributeNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + /** + * + * + *
+       * The attribute names (i.e. facet keys) to remove from the dynamic facets
+       * (if present in the request). There can't be more 3 attribute names.
+       * Each attribute name should be a valid attribute name, be non-empty and
+       * contain at most 80 characters.
+       * 
+ * + * repeated string attribute_names = 1; + * + * @param value The bytes of the attributeNames to add. + * @return This builder for chaining. + */ + public Builder addAttributeNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAttributeNamesIsMutable(); + attributeNames_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2alpha.Rule.RemoveFacetAction) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2alpha.Rule.RemoveFacetAction) + private static final com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction(); + } + + public static com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RemoveFacetAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int actionCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object action_; + + public enum ActionCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + BOOST_ACTION(2), + REDIRECT_ACTION(3), + ONEWAY_SYNONYMS_ACTION(6), + DO_NOT_ASSOCIATE_ACTION(7), + REPLACEMENT_ACTION(8), + IGNORE_ACTION(9), + FILTER_ACTION(10), + TWOWAY_SYNONYMS_ACTION(11), + FORCE_RETURN_FACET_ACTION(12), + REMOVE_FACET_ACTION(13), + ACTION_NOT_SET(0); + private final int value; + + private ActionCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ActionCase valueOf(int value) { + return forNumber(value); + } + + public static ActionCase forNumber(int value) { + switch (value) { + case 2: + return BOOST_ACTION; + case 3: + return REDIRECT_ACTION; + case 6: + return ONEWAY_SYNONYMS_ACTION; + case 7: + return DO_NOT_ASSOCIATE_ACTION; + case 8: + return REPLACEMENT_ACTION; + case 9: + return IGNORE_ACTION; + case 10: + return FILTER_ACTION; + case 11: + return TWOWAY_SYNONYMS_ACTION; + case 12: + return FORCE_RETURN_FACET_ACTION; + case 13: + return REMOVE_FACET_ACTION; + case 0: + return ACTION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ActionCase getActionCase() { + return ActionCase.forNumber(actionCase_); + } + + public static final int BOOST_ACTION_FIELD_NUMBER = 2; + /** + * + * + *
+   * A boost action.
+   * 
+ * + * .google.cloud.retail.v2alpha.Rule.BoostAction boost_action = 2; + * + * @return Whether the boostAction field is set. + */ + @java.lang.Override + public boolean hasBoostAction() { + return actionCase_ == 2; + } + /** + * + * + *
+   * A boost action.
+   * 
+ * + * .google.cloud.retail.v2alpha.Rule.BoostAction boost_action = 2; + * + * @return The boostAction. + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.Rule.BoostAction getBoostAction() { + if (actionCase_ == 2) { + return (com.google.cloud.retail.v2alpha.Rule.BoostAction) action_; + } + return com.google.cloud.retail.v2alpha.Rule.BoostAction.getDefaultInstance(); + } + /** + * + * + *
+   * A boost action.
+   * 
+ * + * .google.cloud.retail.v2alpha.Rule.BoostAction boost_action = 2; + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.Rule.BoostActionOrBuilder getBoostActionOrBuilder() { + if (actionCase_ == 2) { + return (com.google.cloud.retail.v2alpha.Rule.BoostAction) action_; + } + return com.google.cloud.retail.v2alpha.Rule.BoostAction.getDefaultInstance(); + } + + public static final int REDIRECT_ACTION_FIELD_NUMBER = 3; + /** + * + * + *
+   * Redirects a shopper to a specific page.
+   * 
+ * + * .google.cloud.retail.v2alpha.Rule.RedirectAction redirect_action = 3; + * + * @return Whether the redirectAction field is set. + */ + @java.lang.Override + public boolean hasRedirectAction() { + return actionCase_ == 3; + } + /** + * + * + *
+   * Redirects a shopper to a specific page.
+   * 
+ * + * .google.cloud.retail.v2alpha.Rule.RedirectAction redirect_action = 3; + * + * @return The redirectAction. + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.Rule.RedirectAction getRedirectAction() { + if (actionCase_ == 3) { + return (com.google.cloud.retail.v2alpha.Rule.RedirectAction) action_; + } + return com.google.cloud.retail.v2alpha.Rule.RedirectAction.getDefaultInstance(); + } + /** + * + * + *
+   * Redirects a shopper to a specific page.
+   * 
+ * + * .google.cloud.retail.v2alpha.Rule.RedirectAction redirect_action = 3; + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.Rule.RedirectActionOrBuilder getRedirectActionOrBuilder() { + if (actionCase_ == 3) { + return (com.google.cloud.retail.v2alpha.Rule.RedirectAction) action_; + } + return com.google.cloud.retail.v2alpha.Rule.RedirectAction.getDefaultInstance(); + } + + public static final int ONEWAY_SYNONYMS_ACTION_FIELD_NUMBER = 6; + /** + * + * + *
+   * Treats specific term as a synonym with a group of terms.
+   * Group of terms will not be treated as synonyms with the specific term.
+   * 
+ * + * .google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; + * + * @return Whether the onewaySynonymsAction field is set. + */ + @java.lang.Override + public boolean hasOnewaySynonymsAction() { + return actionCase_ == 6; + } + /** + * + * + *
+   * Treats specific term as a synonym with a group of terms.
+   * Group of terms will not be treated as synonyms with the specific term.
+   * 
+ * + * .google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; + * + * @return The onewaySynonymsAction. + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction getOnewaySynonymsAction() { + if (actionCase_ == 6) { + return (com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction) action_; + } + return com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction.getDefaultInstance(); } /** * @@ -8691,32 +11570,139 @@ public boolean hasTwowaySynonymsAction() { * .google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; * * - * @return The twowaySynonymsAction. + * @return The twowaySynonymsAction. + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction getTwowaySynonymsAction() { + if (actionCase_ == 11) { + return (com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction) action_; + } + return com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction.getDefaultInstance(); + } + /** + * + * + *
+   * Treats a set of terms as synonyms of one another.
+   * 
+ * + * .google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsActionOrBuilder + getTwowaySynonymsActionOrBuilder() { + if (actionCase_ == 11) { + return (com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction) action_; + } + return com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction.getDefaultInstance(); + } + + public static final int FORCE_RETURN_FACET_ACTION_FIELD_NUMBER = 12; + /** + * + * + *
+   * Force returns an attribute as a facet in the request.
+   * 
+ * + * .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction force_return_facet_action = 12; + * + * + * @return Whether the forceReturnFacetAction field is set. + */ + @java.lang.Override + public boolean hasForceReturnFacetAction() { + return actionCase_ == 12; + } + /** + * + * + *
+   * Force returns an attribute as a facet in the request.
+   * 
+ * + * .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction force_return_facet_action = 12; + * + * + * @return The forceReturnFacetAction. + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction getForceReturnFacetAction() { + if (actionCase_ == 12) { + return (com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction) action_; + } + return com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.getDefaultInstance(); + } + /** + * + * + *
+   * Force returns an attribute as a facet in the request.
+   * 
+ * + * .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction force_return_facet_action = 12; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetActionOrBuilder + getForceReturnFacetActionOrBuilder() { + if (actionCase_ == 12) { + return (com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction) action_; + } + return com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.getDefaultInstance(); + } + + public static final int REMOVE_FACET_ACTION_FIELD_NUMBER = 13; + /** + * + * + *
+   * Remove an attribute as a facet in the request (if present).
+   * 
+ * + * .google.cloud.retail.v2alpha.Rule.RemoveFacetAction remove_facet_action = 13; + * + * @return Whether the removeFacetAction field is set. + */ + @java.lang.Override + public boolean hasRemoveFacetAction() { + return actionCase_ == 13; + } + /** + * + * + *
+   * Remove an attribute as a facet in the request (if present).
+   * 
+ * + * .google.cloud.retail.v2alpha.Rule.RemoveFacetAction remove_facet_action = 13; + * + * @return The removeFacetAction. */ @java.lang.Override - public com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction getTwowaySynonymsAction() { - if (actionCase_ == 11) { - return (com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction) action_; + public com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction getRemoveFacetAction() { + if (actionCase_ == 13) { + return (com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction) action_; } - return com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction.getDefaultInstance(); + return com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction.getDefaultInstance(); } /** * * *
-   * Treats a set of terms as synonyms of one another.
+   * Remove an attribute as a facet in the request (if present).
    * 
* - * .google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; - * + * .google.cloud.retail.v2alpha.Rule.RemoveFacetAction remove_facet_action = 13; */ @java.lang.Override - public com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsActionOrBuilder - getTwowaySynonymsActionOrBuilder() { - if (actionCase_ == 11) { - return (com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction) action_; + public com.google.cloud.retail.v2alpha.Rule.RemoveFacetActionOrBuilder + getRemoveFacetActionOrBuilder() { + if (actionCase_ == 13) { + return (com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction) action_; } - return com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction.getDefaultInstance(); + return com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction.getDefaultInstance(); } public static final int CONDITION_FIELD_NUMBER = 1; @@ -8819,6 +11805,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (actionCase_ == 11) { output.writeMessage(11, (com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction) action_); } + if (actionCase_ == 12) { + output.writeMessage( + 12, (com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction) action_); + } + if (actionCase_ == 13) { + output.writeMessage(13, (com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction) action_); + } getUnknownFields().writeTo(output); } @@ -8871,6 +11864,16 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 11, (com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction) action_); } + if (actionCase_ == 12) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, (com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction) action_); + } + if (actionCase_ == 13) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, (com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction) action_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -8916,6 +11919,12 @@ public boolean equals(final java.lang.Object obj) { case 11: if (!getTwowaySynonymsAction().equals(other.getTwowaySynonymsAction())) return false; break; + case 12: + if (!getForceReturnFacetAction().equals(other.getForceReturnFacetAction())) return false; + break; + case 13: + if (!getRemoveFacetAction().equals(other.getRemoveFacetAction())) return false; + break; case 0: default: } @@ -8967,6 +11976,14 @@ public int hashCode() { hash = (37 * hash) + TWOWAY_SYNONYMS_ACTION_FIELD_NUMBER; hash = (53 * hash) + getTwowaySynonymsAction().hashCode(); break; + case 12: + hash = (37 * hash) + FORCE_RETURN_FACET_ACTION_FIELD_NUMBER; + hash = (53 * hash) + getForceReturnFacetAction().hashCode(); + break; + case 13: + hash = (37 * hash) + REMOVE_FACET_ACTION_FIELD_NUMBER; + hash = (53 * hash) + getRemoveFacetAction().hashCode(); + break; case 0: default: } @@ -9094,453 +12111,922 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.retail.v2alpha.CommonProto - .internal_static_google_cloud_retail_v2alpha_Rule_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.retail.v2alpha.Rule.class, - com.google.cloud.retail.v2alpha.Rule.Builder.class); + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.CommonProto + .internal_static_google_cloud_retail_v2alpha_Rule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.Rule.class, + com.google.cloud.retail.v2alpha.Rule.Builder.class); + } + + // Construct using com.google.cloud.retail.v2alpha.Rule.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getConditionFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (boostActionBuilder_ != null) { + boostActionBuilder_.clear(); + } + if (redirectActionBuilder_ != null) { + redirectActionBuilder_.clear(); + } + if (onewaySynonymsActionBuilder_ != null) { + onewaySynonymsActionBuilder_.clear(); + } + if (doNotAssociateActionBuilder_ != null) { + doNotAssociateActionBuilder_.clear(); + } + if (replacementActionBuilder_ != null) { + replacementActionBuilder_.clear(); + } + if (ignoreActionBuilder_ != null) { + ignoreActionBuilder_.clear(); + } + if (filterActionBuilder_ != null) { + filterActionBuilder_.clear(); + } + if (twowaySynonymsActionBuilder_ != null) { + twowaySynonymsActionBuilder_.clear(); + } + if (forceReturnFacetActionBuilder_ != null) { + forceReturnFacetActionBuilder_.clear(); + } + if (removeFacetActionBuilder_ != null) { + removeFacetActionBuilder_.clear(); + } + condition_ = null; + if (conditionBuilder_ != null) { + conditionBuilder_.dispose(); + conditionBuilder_ = null; + } + actionCase_ = 0; + action_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2alpha.CommonProto + .internal_static_google_cloud_retail_v2alpha_Rule_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.Rule getDefaultInstanceForType() { + return com.google.cloud.retail.v2alpha.Rule.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.Rule build() { + com.google.cloud.retail.v2alpha.Rule result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.Rule buildPartial() { + com.google.cloud.retail.v2alpha.Rule result = new com.google.cloud.retail.v2alpha.Rule(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.retail.v2alpha.Rule result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000400) != 0)) { + result.condition_ = conditionBuilder_ == null ? condition_ : conditionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.retail.v2alpha.Rule result) { + result.actionCase_ = actionCase_; + result.action_ = this.action_; + if (actionCase_ == 2 && boostActionBuilder_ != null) { + result.action_ = boostActionBuilder_.build(); + } + if (actionCase_ == 3 && redirectActionBuilder_ != null) { + result.action_ = redirectActionBuilder_.build(); + } + if (actionCase_ == 6 && onewaySynonymsActionBuilder_ != null) { + result.action_ = onewaySynonymsActionBuilder_.build(); + } + if (actionCase_ == 7 && doNotAssociateActionBuilder_ != null) { + result.action_ = doNotAssociateActionBuilder_.build(); + } + if (actionCase_ == 8 && replacementActionBuilder_ != null) { + result.action_ = replacementActionBuilder_.build(); + } + if (actionCase_ == 9 && ignoreActionBuilder_ != null) { + result.action_ = ignoreActionBuilder_.build(); + } + if (actionCase_ == 10 && filterActionBuilder_ != null) { + result.action_ = filterActionBuilder_.build(); + } + if (actionCase_ == 11 && twowaySynonymsActionBuilder_ != null) { + result.action_ = twowaySynonymsActionBuilder_.build(); + } + if (actionCase_ == 12 && forceReturnFacetActionBuilder_ != null) { + result.action_ = forceReturnFacetActionBuilder_.build(); + } + if (actionCase_ == 13 && removeFacetActionBuilder_ != null) { + result.action_ = removeFacetActionBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.retail.v2alpha.Rule) { + return mergeFrom((com.google.cloud.retail.v2alpha.Rule) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.retail.v2alpha.Rule other) { + if (other == com.google.cloud.retail.v2alpha.Rule.getDefaultInstance()) return this; + if (other.hasCondition()) { + mergeCondition(other.getCondition()); + } + switch (other.getActionCase()) { + case BOOST_ACTION: + { + mergeBoostAction(other.getBoostAction()); + break; + } + case REDIRECT_ACTION: + { + mergeRedirectAction(other.getRedirectAction()); + break; + } + case ONEWAY_SYNONYMS_ACTION: + { + mergeOnewaySynonymsAction(other.getOnewaySynonymsAction()); + break; + } + case DO_NOT_ASSOCIATE_ACTION: + { + mergeDoNotAssociateAction(other.getDoNotAssociateAction()); + break; + } + case REPLACEMENT_ACTION: + { + mergeReplacementAction(other.getReplacementAction()); + break; + } + case IGNORE_ACTION: + { + mergeIgnoreAction(other.getIgnoreAction()); + break; + } + case FILTER_ACTION: + { + mergeFilterAction(other.getFilterAction()); + break; + } + case TWOWAY_SYNONYMS_ACTION: + { + mergeTwowaySynonymsAction(other.getTwowaySynonymsAction()); + break; + } + case FORCE_RETURN_FACET_ACTION: + { + mergeForceReturnFacetAction(other.getForceReturnFacetAction()); + break; + } + case REMOVE_FACET_ACTION: + { + mergeRemoveFacetAction(other.getRemoveFacetAction()); + break; + } + case ACTION_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } - // Construct using com.google.cloud.retail.v2alpha.Rule.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getConditionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 10 + case 18: + { + input.readMessage(getBoostActionFieldBuilder().getBuilder(), extensionRegistry); + actionCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getRedirectActionFieldBuilder().getBuilder(), extensionRegistry); + actionCase_ = 3; + break; + } // case 26 + case 50: + { + input.readMessage( + getOnewaySynonymsActionFieldBuilder().getBuilder(), extensionRegistry); + actionCase_ = 6; + break; + } // case 50 + case 58: + { + input.readMessage( + getDoNotAssociateActionFieldBuilder().getBuilder(), extensionRegistry); + actionCase_ = 7; + break; + } // case 58 + case 66: + { + input.readMessage( + getReplacementActionFieldBuilder().getBuilder(), extensionRegistry); + actionCase_ = 8; + break; + } // case 66 + case 74: + { + input.readMessage(getIgnoreActionFieldBuilder().getBuilder(), extensionRegistry); + actionCase_ = 9; + break; + } // case 74 + case 82: + { + input.readMessage(getFilterActionFieldBuilder().getBuilder(), extensionRegistry); + actionCase_ = 10; + break; + } // case 82 + case 90: + { + input.readMessage( + getTwowaySynonymsActionFieldBuilder().getBuilder(), extensionRegistry); + actionCase_ = 11; + break; + } // case 90 + case 98: + { + input.readMessage( + getForceReturnFacetActionFieldBuilder().getBuilder(), extensionRegistry); + actionCase_ = 12; + break; + } // case 98 + case 106: + { + input.readMessage( + getRemoveFacetActionFieldBuilder().getBuilder(), extensionRegistry); + actionCase_ = 13; + break; + } // case 106 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } + private int actionCase_ = 0; + private java.lang.Object action_; - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getConditionFieldBuilder(); - } + public ActionCase getActionCase() { + return ActionCase.forNumber(actionCase_); } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (boostActionBuilder_ != null) { - boostActionBuilder_.clear(); - } - if (redirectActionBuilder_ != null) { - redirectActionBuilder_.clear(); - } - if (onewaySynonymsActionBuilder_ != null) { - onewaySynonymsActionBuilder_.clear(); - } - if (doNotAssociateActionBuilder_ != null) { - doNotAssociateActionBuilder_.clear(); - } - if (replacementActionBuilder_ != null) { - replacementActionBuilder_.clear(); - } - if (ignoreActionBuilder_ != null) { - ignoreActionBuilder_.clear(); - } - if (filterActionBuilder_ != null) { - filterActionBuilder_.clear(); - } - if (twowaySynonymsActionBuilder_ != null) { - twowaySynonymsActionBuilder_.clear(); - } - condition_ = null; - if (conditionBuilder_ != null) { - conditionBuilder_.dispose(); - conditionBuilder_ = null; - } + public Builder clearAction() { actionCase_ = 0; action_ = null; + onChanged(); return this; } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.retail.v2alpha.CommonProto - .internal_static_google_cloud_retail_v2alpha_Rule_descriptor; - } - - @java.lang.Override - public com.google.cloud.retail.v2alpha.Rule getDefaultInstanceForType() { - return com.google.cloud.retail.v2alpha.Rule.getDefaultInstance(); - } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2alpha.Rule.BoostAction, + com.google.cloud.retail.v2alpha.Rule.BoostAction.Builder, + com.google.cloud.retail.v2alpha.Rule.BoostActionOrBuilder> + boostActionBuilder_; + /** + * + * + *
+     * A boost action.
+     * 
+ * + * .google.cloud.retail.v2alpha.Rule.BoostAction boost_action = 2; + * + * @return Whether the boostAction field is set. + */ @java.lang.Override - public com.google.cloud.retail.v2alpha.Rule build() { - com.google.cloud.retail.v2alpha.Rule result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + public boolean hasBoostAction() { + return actionCase_ == 2; } - + /** + * + * + *
+     * A boost action.
+     * 
+ * + * .google.cloud.retail.v2alpha.Rule.BoostAction boost_action = 2; + * + * @return The boostAction. + */ @java.lang.Override - public com.google.cloud.retail.v2alpha.Rule buildPartial() { - com.google.cloud.retail.v2alpha.Rule result = new com.google.cloud.retail.v2alpha.Rule(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.retail.v2alpha.Rule result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000100) != 0)) { - result.condition_ = conditionBuilder_ == null ? condition_ : conditionBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - private void buildPartialOneofs(com.google.cloud.retail.v2alpha.Rule result) { - result.actionCase_ = actionCase_; - result.action_ = this.action_; - if (actionCase_ == 2 && boostActionBuilder_ != null) { - result.action_ = boostActionBuilder_.build(); - } - if (actionCase_ == 3 && redirectActionBuilder_ != null) { - result.action_ = redirectActionBuilder_.build(); - } - if (actionCase_ == 6 && onewaySynonymsActionBuilder_ != null) { - result.action_ = onewaySynonymsActionBuilder_.build(); - } - if (actionCase_ == 7 && doNotAssociateActionBuilder_ != null) { - result.action_ = doNotAssociateActionBuilder_.build(); + public com.google.cloud.retail.v2alpha.Rule.BoostAction getBoostAction() { + if (boostActionBuilder_ == null) { + if (actionCase_ == 2) { + return (com.google.cloud.retail.v2alpha.Rule.BoostAction) action_; + } + return com.google.cloud.retail.v2alpha.Rule.BoostAction.getDefaultInstance(); + } else { + if (actionCase_ == 2) { + return boostActionBuilder_.getMessage(); + } + return com.google.cloud.retail.v2alpha.Rule.BoostAction.getDefaultInstance(); } - if (actionCase_ == 8 && replacementActionBuilder_ != null) { - result.action_ = replacementActionBuilder_.build(); + } + /** + * + * + *
+     * A boost action.
+     * 
+ * + * .google.cloud.retail.v2alpha.Rule.BoostAction boost_action = 2; + */ + public Builder setBoostAction(com.google.cloud.retail.v2alpha.Rule.BoostAction value) { + if (boostActionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + action_ = value; + onChanged(); + } else { + boostActionBuilder_.setMessage(value); } - if (actionCase_ == 9 && ignoreActionBuilder_ != null) { - result.action_ = ignoreActionBuilder_.build(); + actionCase_ = 2; + return this; + } + /** + * + * + *
+     * A boost action.
+     * 
+ * + * .google.cloud.retail.v2alpha.Rule.BoostAction boost_action = 2; + */ + public Builder setBoostAction( + com.google.cloud.retail.v2alpha.Rule.BoostAction.Builder builderForValue) { + if (boostActionBuilder_ == null) { + action_ = builderForValue.build(); + onChanged(); + } else { + boostActionBuilder_.setMessage(builderForValue.build()); } - if (actionCase_ == 10 && filterActionBuilder_ != null) { - result.action_ = filterActionBuilder_.build(); + actionCase_ = 2; + return this; + } + /** + * + * + *
+     * A boost action.
+     * 
+ * + * .google.cloud.retail.v2alpha.Rule.BoostAction boost_action = 2; + */ + public Builder mergeBoostAction(com.google.cloud.retail.v2alpha.Rule.BoostAction value) { + if (boostActionBuilder_ == null) { + if (actionCase_ == 2 + && action_ != com.google.cloud.retail.v2alpha.Rule.BoostAction.getDefaultInstance()) { + action_ = + com.google.cloud.retail.v2alpha.Rule.BoostAction.newBuilder( + (com.google.cloud.retail.v2alpha.Rule.BoostAction) action_) + .mergeFrom(value) + .buildPartial(); + } else { + action_ = value; + } + onChanged(); + } else { + if (actionCase_ == 2) { + boostActionBuilder_.mergeFrom(value); + } else { + boostActionBuilder_.setMessage(value); + } } - if (actionCase_ == 11 && twowaySynonymsActionBuilder_ != null) { - result.action_ = twowaySynonymsActionBuilder_.build(); + actionCase_ = 2; + return this; + } + /** + * + * + *
+     * A boost action.
+     * 
+ * + * .google.cloud.retail.v2alpha.Rule.BoostAction boost_action = 2; + */ + public Builder clearBoostAction() { + if (boostActionBuilder_ == null) { + if (actionCase_ == 2) { + actionCase_ = 0; + action_ = null; + onChanged(); + } + } else { + if (actionCase_ == 2) { + actionCase_ = 0; + action_ = null; + } + boostActionBuilder_.clear(); } + return this; } - - @java.lang.Override - public Builder clone() { - return super.clone(); + /** + * + * + *
+     * A boost action.
+     * 
+ * + * .google.cloud.retail.v2alpha.Rule.BoostAction boost_action = 2; + */ + public com.google.cloud.retail.v2alpha.Rule.BoostAction.Builder getBoostActionBuilder() { + return getBoostActionFieldBuilder().getBuilder(); } - + /** + * + * + *
+     * A boost action.
+     * 
+ * + * .google.cloud.retail.v2alpha.Rule.BoostAction boost_action = 2; + */ @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); + public com.google.cloud.retail.v2alpha.Rule.BoostActionOrBuilder getBoostActionOrBuilder() { + if ((actionCase_ == 2) && (boostActionBuilder_ != null)) { + return boostActionBuilder_.getMessageOrBuilder(); + } else { + if (actionCase_ == 2) { + return (com.google.cloud.retail.v2alpha.Rule.BoostAction) action_; + } + return com.google.cloud.retail.v2alpha.Rule.BoostAction.getDefaultInstance(); + } } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + /** + * + * + *
+     * A boost action.
+     * 
+ * + * .google.cloud.retail.v2alpha.Rule.BoostAction boost_action = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2alpha.Rule.BoostAction, + com.google.cloud.retail.v2alpha.Rule.BoostAction.Builder, + com.google.cloud.retail.v2alpha.Rule.BoostActionOrBuilder> + getBoostActionFieldBuilder() { + if (boostActionBuilder_ == null) { + if (!(actionCase_ == 2)) { + action_ = com.google.cloud.retail.v2alpha.Rule.BoostAction.getDefaultInstance(); + } + boostActionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2alpha.Rule.BoostAction, + com.google.cloud.retail.v2alpha.Rule.BoostAction.Builder, + com.google.cloud.retail.v2alpha.Rule.BoostActionOrBuilder>( + (com.google.cloud.retail.v2alpha.Rule.BoostAction) action_, + getParentForChildren(), + isClean()); + action_ = null; + } + actionCase_ = 2; + onChanged(); + return boostActionBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2alpha.Rule.RedirectAction, + com.google.cloud.retail.v2alpha.Rule.RedirectAction.Builder, + com.google.cloud.retail.v2alpha.Rule.RedirectActionOrBuilder> + redirectActionBuilder_; + /** + * + * + *
+     * Redirects a shopper to a specific page.
+     * 
+ * + * .google.cloud.retail.v2alpha.Rule.RedirectAction redirect_action = 3; + * + * @return Whether the redirectAction field is set. + */ @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + public boolean hasRedirectAction() { + return actionCase_ == 3; } - + /** + * + * + *
+     * Redirects a shopper to a specific page.
+     * 
+ * + * .google.cloud.retail.v2alpha.Rule.RedirectAction redirect_action = 3; + * + * @return The redirectAction. + */ @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + public com.google.cloud.retail.v2alpha.Rule.RedirectAction getRedirectAction() { + if (redirectActionBuilder_ == null) { + if (actionCase_ == 3) { + return (com.google.cloud.retail.v2alpha.Rule.RedirectAction) action_; + } + return com.google.cloud.retail.v2alpha.Rule.RedirectAction.getDefaultInstance(); + } else { + if (actionCase_ == 3) { + return redirectActionBuilder_.getMessage(); + } + return com.google.cloud.retail.v2alpha.Rule.RedirectAction.getDefaultInstance(); + } } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + /** + * + * + *
+     * Redirects a shopper to a specific page.
+     * 
+ * + * .google.cloud.retail.v2alpha.Rule.RedirectAction redirect_action = 3; + */ + public Builder setRedirectAction(com.google.cloud.retail.v2alpha.Rule.RedirectAction value) { + if (redirectActionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + action_ = value; + onChanged(); + } else { + redirectActionBuilder_.setMessage(value); + } + actionCase_ = 3; + return this; } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.retail.v2alpha.Rule) { - return mergeFrom((com.google.cloud.retail.v2alpha.Rule) other); + /** + * + * + *
+     * Redirects a shopper to a specific page.
+     * 
+ * + * .google.cloud.retail.v2alpha.Rule.RedirectAction redirect_action = 3; + */ + public Builder setRedirectAction( + com.google.cloud.retail.v2alpha.Rule.RedirectAction.Builder builderForValue) { + if (redirectActionBuilder_ == null) { + action_ = builderForValue.build(); + onChanged(); } else { - super.mergeFrom(other); - return this; + redirectActionBuilder_.setMessage(builderForValue.build()); } + actionCase_ = 3; + return this; } - - public Builder mergeFrom(com.google.cloud.retail.v2alpha.Rule other) { - if (other == com.google.cloud.retail.v2alpha.Rule.getDefaultInstance()) return this; - if (other.hasCondition()) { - mergeCondition(other.getCondition()); + /** + * + * + *
+     * Redirects a shopper to a specific page.
+     * 
+ * + * .google.cloud.retail.v2alpha.Rule.RedirectAction redirect_action = 3; + */ + public Builder mergeRedirectAction(com.google.cloud.retail.v2alpha.Rule.RedirectAction value) { + if (redirectActionBuilder_ == null) { + if (actionCase_ == 3 + && action_ + != com.google.cloud.retail.v2alpha.Rule.RedirectAction.getDefaultInstance()) { + action_ = + com.google.cloud.retail.v2alpha.Rule.RedirectAction.newBuilder( + (com.google.cloud.retail.v2alpha.Rule.RedirectAction) action_) + .mergeFrom(value) + .buildPartial(); + } else { + action_ = value; + } + onChanged(); + } else { + if (actionCase_ == 3) { + redirectActionBuilder_.mergeFrom(value); + } else { + redirectActionBuilder_.setMessage(value); + } } - switch (other.getActionCase()) { - case BOOST_ACTION: - { - mergeBoostAction(other.getBoostAction()); - break; - } - case REDIRECT_ACTION: - { - mergeRedirectAction(other.getRedirectAction()); - break; - } - case ONEWAY_SYNONYMS_ACTION: - { - mergeOnewaySynonymsAction(other.getOnewaySynonymsAction()); - break; - } - case DO_NOT_ASSOCIATE_ACTION: - { - mergeDoNotAssociateAction(other.getDoNotAssociateAction()); - break; - } - case REPLACEMENT_ACTION: - { - mergeReplacementAction(other.getReplacementAction()); - break; - } - case IGNORE_ACTION: - { - mergeIgnoreAction(other.getIgnoreAction()); - break; - } - case FILTER_ACTION: - { - mergeFilterAction(other.getFilterAction()); - break; - } - case TWOWAY_SYNONYMS_ACTION: - { - mergeTwowaySynonymsAction(other.getTwowaySynonymsAction()); - break; - } - case ACTION_NOT_SET: - { - break; - } + actionCase_ = 3; + return this; + } + /** + * + * + *
+     * Redirects a shopper to a specific page.
+     * 
+ * + * .google.cloud.retail.v2alpha.Rule.RedirectAction redirect_action = 3; + */ + public Builder clearRedirectAction() { + if (redirectActionBuilder_ == null) { + if (actionCase_ == 3) { + actionCase_ = 0; + action_ = null; + onChanged(); + } + } else { + if (actionCase_ == 3) { + actionCase_ = 0; + action_ = null; + } + redirectActionBuilder_.clear(); } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); return this; } - - @java.lang.Override - public final boolean isInitialized() { - return true; + /** + * + * + *
+     * Redirects a shopper to a specific page.
+     * 
+ * + * .google.cloud.retail.v2alpha.Rule.RedirectAction redirect_action = 3; + */ + public com.google.cloud.retail.v2alpha.Rule.RedirectAction.Builder getRedirectActionBuilder() { + return getRedirectActionFieldBuilder().getBuilder(); } - + /** + * + * + *
+     * Redirects a shopper to a specific page.
+     * 
+ * + * .google.cloud.retail.v2alpha.Rule.RedirectAction redirect_action = 3; + */ @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); + public com.google.cloud.retail.v2alpha.Rule.RedirectActionOrBuilder + getRedirectActionOrBuilder() { + if ((actionCase_ == 3) && (redirectActionBuilder_ != null)) { + return redirectActionBuilder_.getMessageOrBuilder(); + } else { + if (actionCase_ == 3) { + return (com.google.cloud.retail.v2alpha.Rule.RedirectAction) action_; + } + return com.google.cloud.retail.v2alpha.Rule.RedirectAction.getDefaultInstance(); } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getConditionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 10 - case 18: - { - input.readMessage(getBoostActionFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage(getRedirectActionFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 3; - break; - } // case 26 - case 50: - { - input.readMessage( - getOnewaySynonymsActionFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 6; - break; - } // case 50 - case 58: - { - input.readMessage( - getDoNotAssociateActionFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 7; - break; - } // case 58 - case 66: - { - input.readMessage( - getReplacementActionFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 8; - break; - } // case 66 - case 74: - { - input.readMessage(getIgnoreActionFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 9; - break; - } // case 74 - case 82: - { - input.readMessage(getFilterActionFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 10; - break; - } // case 82 - case 90: - { - input.readMessage( - getTwowaySynonymsActionFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 11; - break; - } // case 90 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int actionCase_ = 0; - private java.lang.Object action_; - - public ActionCase getActionCase() { - return ActionCase.forNumber(actionCase_); } - - public Builder clearAction() { - actionCase_ = 0; - action_ = null; + /** + * + * + *
+     * Redirects a shopper to a specific page.
+     * 
+ * + * .google.cloud.retail.v2alpha.Rule.RedirectAction redirect_action = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2alpha.Rule.RedirectAction, + com.google.cloud.retail.v2alpha.Rule.RedirectAction.Builder, + com.google.cloud.retail.v2alpha.Rule.RedirectActionOrBuilder> + getRedirectActionFieldBuilder() { + if (redirectActionBuilder_ == null) { + if (!(actionCase_ == 3)) { + action_ = com.google.cloud.retail.v2alpha.Rule.RedirectAction.getDefaultInstance(); + } + redirectActionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2alpha.Rule.RedirectAction, + com.google.cloud.retail.v2alpha.Rule.RedirectAction.Builder, + com.google.cloud.retail.v2alpha.Rule.RedirectActionOrBuilder>( + (com.google.cloud.retail.v2alpha.Rule.RedirectAction) action_, + getParentForChildren(), + isClean()); + action_ = null; + } + actionCase_ = 3; onChanged(); - return this; + return redirectActionBuilder_; } - private int bitField0_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2alpha.Rule.BoostAction, - com.google.cloud.retail.v2alpha.Rule.BoostAction.Builder, - com.google.cloud.retail.v2alpha.Rule.BoostActionOrBuilder> - boostActionBuilder_; + com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction, + com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction.Builder, + com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsActionOrBuilder> + onewaySynonymsActionBuilder_; /** * * *
-     * A boost action.
+     * Treats specific term as a synonym with a group of terms.
+     * Group of terms will not be treated as synonyms with the specific term.
      * 
* - * .google.cloud.retail.v2alpha.Rule.BoostAction boost_action = 2; + * .google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; + * * - * @return Whether the boostAction field is set. + * @return Whether the onewaySynonymsAction field is set. */ @java.lang.Override - public boolean hasBoostAction() { - return actionCase_ == 2; + public boolean hasOnewaySynonymsAction() { + return actionCase_ == 6; } /** * * *
-     * A boost action.
+     * Treats specific term as a synonym with a group of terms.
+     * Group of terms will not be treated as synonyms with the specific term.
      * 
* - * .google.cloud.retail.v2alpha.Rule.BoostAction boost_action = 2; + * .google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; + * * - * @return The boostAction. + * @return The onewaySynonymsAction. */ @java.lang.Override - public com.google.cloud.retail.v2alpha.Rule.BoostAction getBoostAction() { - if (boostActionBuilder_ == null) { - if (actionCase_ == 2) { - return (com.google.cloud.retail.v2alpha.Rule.BoostAction) action_; + public com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction getOnewaySynonymsAction() { + if (onewaySynonymsActionBuilder_ == null) { + if (actionCase_ == 6) { + return (com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction) action_; } - return com.google.cloud.retail.v2alpha.Rule.BoostAction.getDefaultInstance(); + return com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction.getDefaultInstance(); } else { - if (actionCase_ == 2) { - return boostActionBuilder_.getMessage(); + if (actionCase_ == 6) { + return onewaySynonymsActionBuilder_.getMessage(); } - return com.google.cloud.retail.v2alpha.Rule.BoostAction.getDefaultInstance(); + return com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction.getDefaultInstance(); } } /** * * *
-     * A boost action.
+     * Treats specific term as a synonym with a group of terms.
+     * Group of terms will not be treated as synonyms with the specific term.
      * 
* - * .google.cloud.retail.v2alpha.Rule.BoostAction boost_action = 2; + * .google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; + * */ - public Builder setBoostAction(com.google.cloud.retail.v2alpha.Rule.BoostAction value) { - if (boostActionBuilder_ == null) { + public Builder setOnewaySynonymsAction( + com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction value) { + if (onewaySynonymsActionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } action_ = value; onChanged(); } else { - boostActionBuilder_.setMessage(value); + onewaySynonymsActionBuilder_.setMessage(value); } - actionCase_ = 2; + actionCase_ = 6; return this; } /** * * *
-     * A boost action.
+     * Treats specific term as a synonym with a group of terms.
+     * Group of terms will not be treated as synonyms with the specific term.
      * 
* - * .google.cloud.retail.v2alpha.Rule.BoostAction boost_action = 2; + * .google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; + * */ - public Builder setBoostAction( - com.google.cloud.retail.v2alpha.Rule.BoostAction.Builder builderForValue) { - if (boostActionBuilder_ == null) { + public Builder setOnewaySynonymsAction( + com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction.Builder builderForValue) { + if (onewaySynonymsActionBuilder_ == null) { action_ = builderForValue.build(); onChanged(); } else { - boostActionBuilder_.setMessage(builderForValue.build()); + onewaySynonymsActionBuilder_.setMessage(builderForValue.build()); } - actionCase_ = 2; + actionCase_ = 6; return this; } /** * * *
-     * A boost action.
+     * Treats specific term as a synonym with a group of terms.
+     * Group of terms will not be treated as synonyms with the specific term.
      * 
* - * .google.cloud.retail.v2alpha.Rule.BoostAction boost_action = 2; + * .google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; + * */ - public Builder mergeBoostAction(com.google.cloud.retail.v2alpha.Rule.BoostAction value) { - if (boostActionBuilder_ == null) { - if (actionCase_ == 2 - && action_ != com.google.cloud.retail.v2alpha.Rule.BoostAction.getDefaultInstance()) { + public Builder mergeOnewaySynonymsAction( + com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction value) { + if (onewaySynonymsActionBuilder_ == null) { + if (actionCase_ == 6 + && action_ + != com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction.getDefaultInstance()) { action_ = - com.google.cloud.retail.v2alpha.Rule.BoostAction.newBuilder( - (com.google.cloud.retail.v2alpha.Rule.BoostAction) action_) + com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction.newBuilder( + (com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction) action_) .mergeFrom(value) .buildPartial(); } else { @@ -9548,37 +13034,39 @@ public Builder mergeBoostAction(com.google.cloud.retail.v2alpha.Rule.BoostAction } onChanged(); } else { - if (actionCase_ == 2) { - boostActionBuilder_.mergeFrom(value); + if (actionCase_ == 6) { + onewaySynonymsActionBuilder_.mergeFrom(value); } else { - boostActionBuilder_.setMessage(value); + onewaySynonymsActionBuilder_.setMessage(value); } } - actionCase_ = 2; + actionCase_ = 6; return this; } /** * * *
-     * A boost action.
+     * Treats specific term as a synonym with a group of terms.
+     * Group of terms will not be treated as synonyms with the specific term.
      * 
* - * .google.cloud.retail.v2alpha.Rule.BoostAction boost_action = 2; + * .google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; + * */ - public Builder clearBoostAction() { - if (boostActionBuilder_ == null) { - if (actionCase_ == 2) { + public Builder clearOnewaySynonymsAction() { + if (onewaySynonymsActionBuilder_ == null) { + if (actionCase_ == 6) { actionCase_ = 0; action_ = null; onChanged(); } } else { - if (actionCase_ == 2) { + if (actionCase_ == 6) { actionCase_ = 0; action_ = null; } - boostActionBuilder_.clear(); + onewaySynonymsActionBuilder_.clear(); } return this; } @@ -9586,171 +13074,186 @@ public Builder clearBoostAction() { * * *
-     * A boost action.
+     * Treats specific term as a synonym with a group of terms.
+     * Group of terms will not be treated as synonyms with the specific term.
      * 
* - * .google.cloud.retail.v2alpha.Rule.BoostAction boost_action = 2; + * .google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; + * */ - public com.google.cloud.retail.v2alpha.Rule.BoostAction.Builder getBoostActionBuilder() { - return getBoostActionFieldBuilder().getBuilder(); + public com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction.Builder + getOnewaySynonymsActionBuilder() { + return getOnewaySynonymsActionFieldBuilder().getBuilder(); } /** * * *
-     * A boost action.
+     * Treats specific term as a synonym with a group of terms.
+     * Group of terms will not be treated as synonyms with the specific term.
      * 
* - * .google.cloud.retail.v2alpha.Rule.BoostAction boost_action = 2; + * .google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; + * */ @java.lang.Override - public com.google.cloud.retail.v2alpha.Rule.BoostActionOrBuilder getBoostActionOrBuilder() { - if ((actionCase_ == 2) && (boostActionBuilder_ != null)) { - return boostActionBuilder_.getMessageOrBuilder(); + public com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsActionOrBuilder + getOnewaySynonymsActionOrBuilder() { + if ((actionCase_ == 6) && (onewaySynonymsActionBuilder_ != null)) { + return onewaySynonymsActionBuilder_.getMessageOrBuilder(); } else { - if (actionCase_ == 2) { - return (com.google.cloud.retail.v2alpha.Rule.BoostAction) action_; + if (actionCase_ == 6) { + return (com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction) action_; } - return com.google.cloud.retail.v2alpha.Rule.BoostAction.getDefaultInstance(); + return com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction.getDefaultInstance(); } } /** * * *
-     * A boost action.
+     * Treats specific term as a synonym with a group of terms.
+     * Group of terms will not be treated as synonyms with the specific term.
      * 
* - * .google.cloud.retail.v2alpha.Rule.BoostAction boost_action = 2; + * .google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2alpha.Rule.BoostAction, - com.google.cloud.retail.v2alpha.Rule.BoostAction.Builder, - com.google.cloud.retail.v2alpha.Rule.BoostActionOrBuilder> - getBoostActionFieldBuilder() { - if (boostActionBuilder_ == null) { - if (!(actionCase_ == 2)) { - action_ = com.google.cloud.retail.v2alpha.Rule.BoostAction.getDefaultInstance(); + com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction, + com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction.Builder, + com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsActionOrBuilder> + getOnewaySynonymsActionFieldBuilder() { + if (onewaySynonymsActionBuilder_ == null) { + if (!(actionCase_ == 6)) { + action_ = com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction.getDefaultInstance(); } - boostActionBuilder_ = + onewaySynonymsActionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2alpha.Rule.BoostAction, - com.google.cloud.retail.v2alpha.Rule.BoostAction.Builder, - com.google.cloud.retail.v2alpha.Rule.BoostActionOrBuilder>( - (com.google.cloud.retail.v2alpha.Rule.BoostAction) action_, + com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction, + com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction.Builder, + com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsActionOrBuilder>( + (com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction) action_, getParentForChildren(), isClean()); action_ = null; } - actionCase_ = 2; + actionCase_ = 6; onChanged(); - return boostActionBuilder_; + return onewaySynonymsActionBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2alpha.Rule.RedirectAction, - com.google.cloud.retail.v2alpha.Rule.RedirectAction.Builder, - com.google.cloud.retail.v2alpha.Rule.RedirectActionOrBuilder> - redirectActionBuilder_; + com.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction, + com.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction.Builder, + com.google.cloud.retail.v2alpha.Rule.DoNotAssociateActionOrBuilder> + doNotAssociateActionBuilder_; /** * * *
-     * Redirects a shopper to a specific page.
+     * Prevents term from being associated with other terms.
      * 
* - * .google.cloud.retail.v2alpha.Rule.RedirectAction redirect_action = 3; + * .google.cloud.retail.v2alpha.Rule.DoNotAssociateAction do_not_associate_action = 7; + * * - * @return Whether the redirectAction field is set. + * @return Whether the doNotAssociateAction field is set. */ @java.lang.Override - public boolean hasRedirectAction() { - return actionCase_ == 3; + public boolean hasDoNotAssociateAction() { + return actionCase_ == 7; } /** * * *
-     * Redirects a shopper to a specific page.
+     * Prevents term from being associated with other terms.
      * 
* - * .google.cloud.retail.v2alpha.Rule.RedirectAction redirect_action = 3; + * .google.cloud.retail.v2alpha.Rule.DoNotAssociateAction do_not_associate_action = 7; + * * - * @return The redirectAction. + * @return The doNotAssociateAction. */ @java.lang.Override - public com.google.cloud.retail.v2alpha.Rule.RedirectAction getRedirectAction() { - if (redirectActionBuilder_ == null) { - if (actionCase_ == 3) { - return (com.google.cloud.retail.v2alpha.Rule.RedirectAction) action_; + public com.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction getDoNotAssociateAction() { + if (doNotAssociateActionBuilder_ == null) { + if (actionCase_ == 7) { + return (com.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction) action_; } - return com.google.cloud.retail.v2alpha.Rule.RedirectAction.getDefaultInstance(); + return com.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction.getDefaultInstance(); } else { - if (actionCase_ == 3) { - return redirectActionBuilder_.getMessage(); + if (actionCase_ == 7) { + return doNotAssociateActionBuilder_.getMessage(); } - return com.google.cloud.retail.v2alpha.Rule.RedirectAction.getDefaultInstance(); + return com.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction.getDefaultInstance(); } } /** * * *
-     * Redirects a shopper to a specific page.
+     * Prevents term from being associated with other terms.
      * 
* - * .google.cloud.retail.v2alpha.Rule.RedirectAction redirect_action = 3; + * .google.cloud.retail.v2alpha.Rule.DoNotAssociateAction do_not_associate_action = 7; + * */ - public Builder setRedirectAction(com.google.cloud.retail.v2alpha.Rule.RedirectAction value) { - if (redirectActionBuilder_ == null) { + public Builder setDoNotAssociateAction( + com.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction value) { + if (doNotAssociateActionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } action_ = value; onChanged(); } else { - redirectActionBuilder_.setMessage(value); + doNotAssociateActionBuilder_.setMessage(value); } - actionCase_ = 3; + actionCase_ = 7; return this; } /** * * *
-     * Redirects a shopper to a specific page.
+     * Prevents term from being associated with other terms.
      * 
* - * .google.cloud.retail.v2alpha.Rule.RedirectAction redirect_action = 3; + * .google.cloud.retail.v2alpha.Rule.DoNotAssociateAction do_not_associate_action = 7; + * */ - public Builder setRedirectAction( - com.google.cloud.retail.v2alpha.Rule.RedirectAction.Builder builderForValue) { - if (redirectActionBuilder_ == null) { + public Builder setDoNotAssociateAction( + com.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction.Builder builderForValue) { + if (doNotAssociateActionBuilder_ == null) { action_ = builderForValue.build(); onChanged(); } else { - redirectActionBuilder_.setMessage(builderForValue.build()); + doNotAssociateActionBuilder_.setMessage(builderForValue.build()); } - actionCase_ = 3; + actionCase_ = 7; return this; } /** * * *
-     * Redirects a shopper to a specific page.
+     * Prevents term from being associated with other terms.
      * 
* - * .google.cloud.retail.v2alpha.Rule.RedirectAction redirect_action = 3; + * .google.cloud.retail.v2alpha.Rule.DoNotAssociateAction do_not_associate_action = 7; + * */ - public Builder mergeRedirectAction(com.google.cloud.retail.v2alpha.Rule.RedirectAction value) { - if (redirectActionBuilder_ == null) { - if (actionCase_ == 3 + public Builder mergeDoNotAssociateAction( + com.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction value) { + if (doNotAssociateActionBuilder_ == null) { + if (actionCase_ == 7 && action_ - != com.google.cloud.retail.v2alpha.Rule.RedirectAction.getDefaultInstance()) { + != com.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction.getDefaultInstance()) { action_ = - com.google.cloud.retail.v2alpha.Rule.RedirectAction.newBuilder( - (com.google.cloud.retail.v2alpha.Rule.RedirectAction) action_) + com.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction.newBuilder( + (com.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction) action_) .mergeFrom(value) .buildPartial(); } else { @@ -9758,37 +13261,38 @@ public Builder mergeRedirectAction(com.google.cloud.retail.v2alpha.Rule.Redirect } onChanged(); } else { - if (actionCase_ == 3) { - redirectActionBuilder_.mergeFrom(value); + if (actionCase_ == 7) { + doNotAssociateActionBuilder_.mergeFrom(value); } else { - redirectActionBuilder_.setMessage(value); + doNotAssociateActionBuilder_.setMessage(value); } } - actionCase_ = 3; + actionCase_ = 7; return this; } /** * * *
-     * Redirects a shopper to a specific page.
+     * Prevents term from being associated with other terms.
      * 
* - * .google.cloud.retail.v2alpha.Rule.RedirectAction redirect_action = 3; + * .google.cloud.retail.v2alpha.Rule.DoNotAssociateAction do_not_associate_action = 7; + * */ - public Builder clearRedirectAction() { - if (redirectActionBuilder_ == null) { - if (actionCase_ == 3) { + public Builder clearDoNotAssociateAction() { + if (doNotAssociateActionBuilder_ == null) { + if (actionCase_ == 7) { actionCase_ = 0; action_ = null; onChanged(); } } else { - if (actionCase_ == 3) { + if (actionCase_ == 7) { actionCase_ = 0; action_ = null; } - redirectActionBuilder_.clear(); + doNotAssociateActionBuilder_.clear(); } return this; } @@ -9796,184 +13300,178 @@ public Builder clearRedirectAction() { * * *
-     * Redirects a shopper to a specific page.
+     * Prevents term from being associated with other terms.
      * 
* - * .google.cloud.retail.v2alpha.Rule.RedirectAction redirect_action = 3; + * .google.cloud.retail.v2alpha.Rule.DoNotAssociateAction do_not_associate_action = 7; + * */ - public com.google.cloud.retail.v2alpha.Rule.RedirectAction.Builder getRedirectActionBuilder() { - return getRedirectActionFieldBuilder().getBuilder(); + public com.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction.Builder + getDoNotAssociateActionBuilder() { + return getDoNotAssociateActionFieldBuilder().getBuilder(); } /** * * *
-     * Redirects a shopper to a specific page.
+     * Prevents term from being associated with other terms.
      * 
* - * .google.cloud.retail.v2alpha.Rule.RedirectAction redirect_action = 3; + * .google.cloud.retail.v2alpha.Rule.DoNotAssociateAction do_not_associate_action = 7; + * */ @java.lang.Override - public com.google.cloud.retail.v2alpha.Rule.RedirectActionOrBuilder - getRedirectActionOrBuilder() { - if ((actionCase_ == 3) && (redirectActionBuilder_ != null)) { - return redirectActionBuilder_.getMessageOrBuilder(); + public com.google.cloud.retail.v2alpha.Rule.DoNotAssociateActionOrBuilder + getDoNotAssociateActionOrBuilder() { + if ((actionCase_ == 7) && (doNotAssociateActionBuilder_ != null)) { + return doNotAssociateActionBuilder_.getMessageOrBuilder(); } else { - if (actionCase_ == 3) { - return (com.google.cloud.retail.v2alpha.Rule.RedirectAction) action_; + if (actionCase_ == 7) { + return (com.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction) action_; } - return com.google.cloud.retail.v2alpha.Rule.RedirectAction.getDefaultInstance(); + return com.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction.getDefaultInstance(); } } /** * * *
-     * Redirects a shopper to a specific page.
+     * Prevents term from being associated with other terms.
      * 
* - * .google.cloud.retail.v2alpha.Rule.RedirectAction redirect_action = 3; + * .google.cloud.retail.v2alpha.Rule.DoNotAssociateAction do_not_associate_action = 7; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2alpha.Rule.RedirectAction, - com.google.cloud.retail.v2alpha.Rule.RedirectAction.Builder, - com.google.cloud.retail.v2alpha.Rule.RedirectActionOrBuilder> - getRedirectActionFieldBuilder() { - if (redirectActionBuilder_ == null) { - if (!(actionCase_ == 3)) { - action_ = com.google.cloud.retail.v2alpha.Rule.RedirectAction.getDefaultInstance(); + com.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction, + com.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction.Builder, + com.google.cloud.retail.v2alpha.Rule.DoNotAssociateActionOrBuilder> + getDoNotAssociateActionFieldBuilder() { + if (doNotAssociateActionBuilder_ == null) { + if (!(actionCase_ == 7)) { + action_ = com.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction.getDefaultInstance(); } - redirectActionBuilder_ = + doNotAssociateActionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2alpha.Rule.RedirectAction, - com.google.cloud.retail.v2alpha.Rule.RedirectAction.Builder, - com.google.cloud.retail.v2alpha.Rule.RedirectActionOrBuilder>( - (com.google.cloud.retail.v2alpha.Rule.RedirectAction) action_, + com.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction, + com.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction.Builder, + com.google.cloud.retail.v2alpha.Rule.DoNotAssociateActionOrBuilder>( + (com.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction) action_, getParentForChildren(), isClean()); action_ = null; } - actionCase_ = 3; + actionCase_ = 7; onChanged(); - return redirectActionBuilder_; + return doNotAssociateActionBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction, - com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction.Builder, - com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsActionOrBuilder> - onewaySynonymsActionBuilder_; + com.google.cloud.retail.v2alpha.Rule.ReplacementAction, + com.google.cloud.retail.v2alpha.Rule.ReplacementAction.Builder, + com.google.cloud.retail.v2alpha.Rule.ReplacementActionOrBuilder> + replacementActionBuilder_; /** * * *
-     * Treats specific term as a synonym with a group of terms.
-     * Group of terms will not be treated as synonyms with the specific term.
+     * Replaces specific terms in the query.
      * 
* - * .google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; - * + * .google.cloud.retail.v2alpha.Rule.ReplacementAction replacement_action = 8; * - * @return Whether the onewaySynonymsAction field is set. + * @return Whether the replacementAction field is set. */ @java.lang.Override - public boolean hasOnewaySynonymsAction() { - return actionCase_ == 6; + public boolean hasReplacementAction() { + return actionCase_ == 8; } /** * * *
-     * Treats specific term as a synonym with a group of terms.
-     * Group of terms will not be treated as synonyms with the specific term.
+     * Replaces specific terms in the query.
      * 
* - * .google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; - * + * .google.cloud.retail.v2alpha.Rule.ReplacementAction replacement_action = 8; * - * @return The onewaySynonymsAction. + * @return The replacementAction. */ @java.lang.Override - public com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction getOnewaySynonymsAction() { - if (onewaySynonymsActionBuilder_ == null) { - if (actionCase_ == 6) { - return (com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction) action_; + public com.google.cloud.retail.v2alpha.Rule.ReplacementAction getReplacementAction() { + if (replacementActionBuilder_ == null) { + if (actionCase_ == 8) { + return (com.google.cloud.retail.v2alpha.Rule.ReplacementAction) action_; } - return com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction.getDefaultInstance(); + return com.google.cloud.retail.v2alpha.Rule.ReplacementAction.getDefaultInstance(); } else { - if (actionCase_ == 6) { - return onewaySynonymsActionBuilder_.getMessage(); + if (actionCase_ == 8) { + return replacementActionBuilder_.getMessage(); } - return com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction.getDefaultInstance(); + return com.google.cloud.retail.v2alpha.Rule.ReplacementAction.getDefaultInstance(); } } /** * * *
-     * Treats specific term as a synonym with a group of terms.
-     * Group of terms will not be treated as synonyms with the specific term.
+     * Replaces specific terms in the query.
      * 
* - * .google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; - * + * .google.cloud.retail.v2alpha.Rule.ReplacementAction replacement_action = 8; */ - public Builder setOnewaySynonymsAction( - com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction value) { - if (onewaySynonymsActionBuilder_ == null) { + public Builder setReplacementAction( + com.google.cloud.retail.v2alpha.Rule.ReplacementAction value) { + if (replacementActionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } action_ = value; onChanged(); } else { - onewaySynonymsActionBuilder_.setMessage(value); + replacementActionBuilder_.setMessage(value); } - actionCase_ = 6; + actionCase_ = 8; return this; } /** * * *
-     * Treats specific term as a synonym with a group of terms.
-     * Group of terms will not be treated as synonyms with the specific term.
+     * Replaces specific terms in the query.
      * 
* - * .google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; - * + * .google.cloud.retail.v2alpha.Rule.ReplacementAction replacement_action = 8; */ - public Builder setOnewaySynonymsAction( - com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction.Builder builderForValue) { - if (onewaySynonymsActionBuilder_ == null) { + public Builder setReplacementAction( + com.google.cloud.retail.v2alpha.Rule.ReplacementAction.Builder builderForValue) { + if (replacementActionBuilder_ == null) { action_ = builderForValue.build(); onChanged(); } else { - onewaySynonymsActionBuilder_.setMessage(builderForValue.build()); + replacementActionBuilder_.setMessage(builderForValue.build()); } - actionCase_ = 6; + actionCase_ = 8; return this; } /** * * *
-     * Treats specific term as a synonym with a group of terms.
-     * Group of terms will not be treated as synonyms with the specific term.
+     * Replaces specific terms in the query.
      * 
* - * .google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; - * + * .google.cloud.retail.v2alpha.Rule.ReplacementAction replacement_action = 8; */ - public Builder mergeOnewaySynonymsAction( - com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction value) { - if (onewaySynonymsActionBuilder_ == null) { - if (actionCase_ == 6 + public Builder mergeReplacementAction( + com.google.cloud.retail.v2alpha.Rule.ReplacementAction value) { + if (replacementActionBuilder_ == null) { + if (actionCase_ == 8 && action_ - != com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction.getDefaultInstance()) { + != com.google.cloud.retail.v2alpha.Rule.ReplacementAction.getDefaultInstance()) { action_ = - com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction.newBuilder( - (com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction) action_) + com.google.cloud.retail.v2alpha.Rule.ReplacementAction.newBuilder( + (com.google.cloud.retail.v2alpha.Rule.ReplacementAction) action_) .mergeFrom(value) .buildPartial(); } else { @@ -9981,39 +13479,37 @@ public Builder mergeOnewaySynonymsAction( } onChanged(); } else { - if (actionCase_ == 6) { - onewaySynonymsActionBuilder_.mergeFrom(value); + if (actionCase_ == 8) { + replacementActionBuilder_.mergeFrom(value); } else { - onewaySynonymsActionBuilder_.setMessage(value); + replacementActionBuilder_.setMessage(value); } } - actionCase_ = 6; + actionCase_ = 8; return this; } /** * * *
-     * Treats specific term as a synonym with a group of terms.
-     * Group of terms will not be treated as synonyms with the specific term.
+     * Replaces specific terms in the query.
      * 
* - * .google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; - * + * .google.cloud.retail.v2alpha.Rule.ReplacementAction replacement_action = 8; */ - public Builder clearOnewaySynonymsAction() { - if (onewaySynonymsActionBuilder_ == null) { - if (actionCase_ == 6) { + public Builder clearReplacementAction() { + if (replacementActionBuilder_ == null) { + if (actionCase_ == 8) { actionCase_ = 0; action_ = null; onChanged(); } } else { - if (actionCase_ == 6) { + if (actionCase_ == 8) { actionCase_ = 0; action_ = null; } - onewaySynonymsActionBuilder_.clear(); + replacementActionBuilder_.clear(); } return this; } @@ -10021,186 +13517,172 @@ public Builder clearOnewaySynonymsAction() { * * *
-     * Treats specific term as a synonym with a group of terms.
-     * Group of terms will not be treated as synonyms with the specific term.
+     * Replaces specific terms in the query.
      * 
* - * .google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; - * + * .google.cloud.retail.v2alpha.Rule.ReplacementAction replacement_action = 8; */ - public com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction.Builder - getOnewaySynonymsActionBuilder() { - return getOnewaySynonymsActionFieldBuilder().getBuilder(); + public com.google.cloud.retail.v2alpha.Rule.ReplacementAction.Builder + getReplacementActionBuilder() { + return getReplacementActionFieldBuilder().getBuilder(); } /** * * *
-     * Treats specific term as a synonym with a group of terms.
-     * Group of terms will not be treated as synonyms with the specific term.
+     * Replaces specific terms in the query.
      * 
* - * .google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; - * + * .google.cloud.retail.v2alpha.Rule.ReplacementAction replacement_action = 8; */ @java.lang.Override - public com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsActionOrBuilder - getOnewaySynonymsActionOrBuilder() { - if ((actionCase_ == 6) && (onewaySynonymsActionBuilder_ != null)) { - return onewaySynonymsActionBuilder_.getMessageOrBuilder(); + public com.google.cloud.retail.v2alpha.Rule.ReplacementActionOrBuilder + getReplacementActionOrBuilder() { + if ((actionCase_ == 8) && (replacementActionBuilder_ != null)) { + return replacementActionBuilder_.getMessageOrBuilder(); } else { - if (actionCase_ == 6) { - return (com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction) action_; + if (actionCase_ == 8) { + return (com.google.cloud.retail.v2alpha.Rule.ReplacementAction) action_; } - return com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction.getDefaultInstance(); + return com.google.cloud.retail.v2alpha.Rule.ReplacementAction.getDefaultInstance(); } } /** * * *
-     * Treats specific term as a synonym with a group of terms.
-     * Group of terms will not be treated as synonyms with the specific term.
+     * Replaces specific terms in the query.
      * 
* - * .google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; - * + * .google.cloud.retail.v2alpha.Rule.ReplacementAction replacement_action = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction, - com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction.Builder, - com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsActionOrBuilder> - getOnewaySynonymsActionFieldBuilder() { - if (onewaySynonymsActionBuilder_ == null) { - if (!(actionCase_ == 6)) { - action_ = com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction.getDefaultInstance(); + com.google.cloud.retail.v2alpha.Rule.ReplacementAction, + com.google.cloud.retail.v2alpha.Rule.ReplacementAction.Builder, + com.google.cloud.retail.v2alpha.Rule.ReplacementActionOrBuilder> + getReplacementActionFieldBuilder() { + if (replacementActionBuilder_ == null) { + if (!(actionCase_ == 8)) { + action_ = com.google.cloud.retail.v2alpha.Rule.ReplacementAction.getDefaultInstance(); } - onewaySynonymsActionBuilder_ = + replacementActionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction, - com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction.Builder, - com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsActionOrBuilder>( - (com.google.cloud.retail.v2alpha.Rule.OnewaySynonymsAction) action_, + com.google.cloud.retail.v2alpha.Rule.ReplacementAction, + com.google.cloud.retail.v2alpha.Rule.ReplacementAction.Builder, + com.google.cloud.retail.v2alpha.Rule.ReplacementActionOrBuilder>( + (com.google.cloud.retail.v2alpha.Rule.ReplacementAction) action_, getParentForChildren(), isClean()); action_ = null; } - actionCase_ = 6; + actionCase_ = 8; onChanged(); - return onewaySynonymsActionBuilder_; + return replacementActionBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction, - com.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction.Builder, - com.google.cloud.retail.v2alpha.Rule.DoNotAssociateActionOrBuilder> - doNotAssociateActionBuilder_; + com.google.cloud.retail.v2alpha.Rule.IgnoreAction, + com.google.cloud.retail.v2alpha.Rule.IgnoreAction.Builder, + com.google.cloud.retail.v2alpha.Rule.IgnoreActionOrBuilder> + ignoreActionBuilder_; /** * * *
-     * Prevents term from being associated with other terms.
+     * Ignores specific terms from query during search.
      * 
* - * .google.cloud.retail.v2alpha.Rule.DoNotAssociateAction do_not_associate_action = 7; - * + * .google.cloud.retail.v2alpha.Rule.IgnoreAction ignore_action = 9; * - * @return Whether the doNotAssociateAction field is set. + * @return Whether the ignoreAction field is set. */ @java.lang.Override - public boolean hasDoNotAssociateAction() { - return actionCase_ == 7; + public boolean hasIgnoreAction() { + return actionCase_ == 9; } /** * * *
-     * Prevents term from being associated with other terms.
+     * Ignores specific terms from query during search.
      * 
* - * .google.cloud.retail.v2alpha.Rule.DoNotAssociateAction do_not_associate_action = 7; - * + * .google.cloud.retail.v2alpha.Rule.IgnoreAction ignore_action = 9; * - * @return The doNotAssociateAction. + * @return The ignoreAction. */ @java.lang.Override - public com.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction getDoNotAssociateAction() { - if (doNotAssociateActionBuilder_ == null) { - if (actionCase_ == 7) { - return (com.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction) action_; + public com.google.cloud.retail.v2alpha.Rule.IgnoreAction getIgnoreAction() { + if (ignoreActionBuilder_ == null) { + if (actionCase_ == 9) { + return (com.google.cloud.retail.v2alpha.Rule.IgnoreAction) action_; } - return com.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction.getDefaultInstance(); + return com.google.cloud.retail.v2alpha.Rule.IgnoreAction.getDefaultInstance(); } else { - if (actionCase_ == 7) { - return doNotAssociateActionBuilder_.getMessage(); + if (actionCase_ == 9) { + return ignoreActionBuilder_.getMessage(); } - return com.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction.getDefaultInstance(); + return com.google.cloud.retail.v2alpha.Rule.IgnoreAction.getDefaultInstance(); } } /** * * *
-     * Prevents term from being associated with other terms.
+     * Ignores specific terms from query during search.
      * 
* - * .google.cloud.retail.v2alpha.Rule.DoNotAssociateAction do_not_associate_action = 7; - * + * .google.cloud.retail.v2alpha.Rule.IgnoreAction ignore_action = 9; */ - public Builder setDoNotAssociateAction( - com.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction value) { - if (doNotAssociateActionBuilder_ == null) { + public Builder setIgnoreAction(com.google.cloud.retail.v2alpha.Rule.IgnoreAction value) { + if (ignoreActionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } action_ = value; onChanged(); } else { - doNotAssociateActionBuilder_.setMessage(value); + ignoreActionBuilder_.setMessage(value); } - actionCase_ = 7; + actionCase_ = 9; return this; } /** * * *
-     * Prevents term from being associated with other terms.
+     * Ignores specific terms from query during search.
      * 
* - * .google.cloud.retail.v2alpha.Rule.DoNotAssociateAction do_not_associate_action = 7; - * + * .google.cloud.retail.v2alpha.Rule.IgnoreAction ignore_action = 9; */ - public Builder setDoNotAssociateAction( - com.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction.Builder builderForValue) { - if (doNotAssociateActionBuilder_ == null) { + public Builder setIgnoreAction( + com.google.cloud.retail.v2alpha.Rule.IgnoreAction.Builder builderForValue) { + if (ignoreActionBuilder_ == null) { action_ = builderForValue.build(); onChanged(); } else { - doNotAssociateActionBuilder_.setMessage(builderForValue.build()); + ignoreActionBuilder_.setMessage(builderForValue.build()); } - actionCase_ = 7; + actionCase_ = 9; return this; } /** * * *
-     * Prevents term from being associated with other terms.
+     * Ignores specific terms from query during search.
      * 
* - * .google.cloud.retail.v2alpha.Rule.DoNotAssociateAction do_not_associate_action = 7; - * + * .google.cloud.retail.v2alpha.Rule.IgnoreAction ignore_action = 9; */ - public Builder mergeDoNotAssociateAction( - com.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction value) { - if (doNotAssociateActionBuilder_ == null) { - if (actionCase_ == 7 - && action_ - != com.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction.getDefaultInstance()) { + public Builder mergeIgnoreAction(com.google.cloud.retail.v2alpha.Rule.IgnoreAction value) { + if (ignoreActionBuilder_ == null) { + if (actionCase_ == 9 + && action_ != com.google.cloud.retail.v2alpha.Rule.IgnoreAction.getDefaultInstance()) { action_ = - com.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction.newBuilder( - (com.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction) action_) + com.google.cloud.retail.v2alpha.Rule.IgnoreAction.newBuilder( + (com.google.cloud.retail.v2alpha.Rule.IgnoreAction) action_) .mergeFrom(value) .buildPartial(); } else { @@ -10208,38 +13690,37 @@ public Builder mergeDoNotAssociateAction( } onChanged(); } else { - if (actionCase_ == 7) { - doNotAssociateActionBuilder_.mergeFrom(value); + if (actionCase_ == 9) { + ignoreActionBuilder_.mergeFrom(value); } else { - doNotAssociateActionBuilder_.setMessage(value); + ignoreActionBuilder_.setMessage(value); } } - actionCase_ = 7; + actionCase_ = 9; return this; } /** * * *
-     * Prevents term from being associated with other terms.
+     * Ignores specific terms from query during search.
      * 
* - * .google.cloud.retail.v2alpha.Rule.DoNotAssociateAction do_not_associate_action = 7; - * + * .google.cloud.retail.v2alpha.Rule.IgnoreAction ignore_action = 9; */ - public Builder clearDoNotAssociateAction() { - if (doNotAssociateActionBuilder_ == null) { - if (actionCase_ == 7) { + public Builder clearIgnoreAction() { + if (ignoreActionBuilder_ == null) { + if (actionCase_ == 9) { actionCase_ = 0; action_ = null; onChanged(); } } else { - if (actionCase_ == 7) { + if (actionCase_ == 9) { actionCase_ = 0; action_ = null; } - doNotAssociateActionBuilder_.clear(); + ignoreActionBuilder_.clear(); } return this; } @@ -10247,178 +13728,170 @@ public Builder clearDoNotAssociateAction() { * * *
-     * Prevents term from being associated with other terms.
+     * Ignores specific terms from query during search.
      * 
* - * .google.cloud.retail.v2alpha.Rule.DoNotAssociateAction do_not_associate_action = 7; - * + * .google.cloud.retail.v2alpha.Rule.IgnoreAction ignore_action = 9; */ - public com.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction.Builder - getDoNotAssociateActionBuilder() { - return getDoNotAssociateActionFieldBuilder().getBuilder(); + public com.google.cloud.retail.v2alpha.Rule.IgnoreAction.Builder getIgnoreActionBuilder() { + return getIgnoreActionFieldBuilder().getBuilder(); } /** * * *
-     * Prevents term from being associated with other terms.
+     * Ignores specific terms from query during search.
      * 
* - * .google.cloud.retail.v2alpha.Rule.DoNotAssociateAction do_not_associate_action = 7; - * + * .google.cloud.retail.v2alpha.Rule.IgnoreAction ignore_action = 9; */ @java.lang.Override - public com.google.cloud.retail.v2alpha.Rule.DoNotAssociateActionOrBuilder - getDoNotAssociateActionOrBuilder() { - if ((actionCase_ == 7) && (doNotAssociateActionBuilder_ != null)) { - return doNotAssociateActionBuilder_.getMessageOrBuilder(); + public com.google.cloud.retail.v2alpha.Rule.IgnoreActionOrBuilder getIgnoreActionOrBuilder() { + if ((actionCase_ == 9) && (ignoreActionBuilder_ != null)) { + return ignoreActionBuilder_.getMessageOrBuilder(); } else { - if (actionCase_ == 7) { - return (com.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction) action_; + if (actionCase_ == 9) { + return (com.google.cloud.retail.v2alpha.Rule.IgnoreAction) action_; } - return com.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction.getDefaultInstance(); + return com.google.cloud.retail.v2alpha.Rule.IgnoreAction.getDefaultInstance(); } } /** * * *
-     * Prevents term from being associated with other terms.
+     * Ignores specific terms from query during search.
      * 
* - * .google.cloud.retail.v2alpha.Rule.DoNotAssociateAction do_not_associate_action = 7; - * + * .google.cloud.retail.v2alpha.Rule.IgnoreAction ignore_action = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction, - com.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction.Builder, - com.google.cloud.retail.v2alpha.Rule.DoNotAssociateActionOrBuilder> - getDoNotAssociateActionFieldBuilder() { - if (doNotAssociateActionBuilder_ == null) { - if (!(actionCase_ == 7)) { - action_ = com.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction.getDefaultInstance(); + com.google.cloud.retail.v2alpha.Rule.IgnoreAction, + com.google.cloud.retail.v2alpha.Rule.IgnoreAction.Builder, + com.google.cloud.retail.v2alpha.Rule.IgnoreActionOrBuilder> + getIgnoreActionFieldBuilder() { + if (ignoreActionBuilder_ == null) { + if (!(actionCase_ == 9)) { + action_ = com.google.cloud.retail.v2alpha.Rule.IgnoreAction.getDefaultInstance(); } - doNotAssociateActionBuilder_ = + ignoreActionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction, - com.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction.Builder, - com.google.cloud.retail.v2alpha.Rule.DoNotAssociateActionOrBuilder>( - (com.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction) action_, + com.google.cloud.retail.v2alpha.Rule.IgnoreAction, + com.google.cloud.retail.v2alpha.Rule.IgnoreAction.Builder, + com.google.cloud.retail.v2alpha.Rule.IgnoreActionOrBuilder>( + (com.google.cloud.retail.v2alpha.Rule.IgnoreAction) action_, getParentForChildren(), isClean()); action_ = null; } - actionCase_ = 7; + actionCase_ = 9; onChanged(); - return doNotAssociateActionBuilder_; + return ignoreActionBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2alpha.Rule.ReplacementAction, - com.google.cloud.retail.v2alpha.Rule.ReplacementAction.Builder, - com.google.cloud.retail.v2alpha.Rule.ReplacementActionOrBuilder> - replacementActionBuilder_; + com.google.cloud.retail.v2alpha.Rule.FilterAction, + com.google.cloud.retail.v2alpha.Rule.FilterAction.Builder, + com.google.cloud.retail.v2alpha.Rule.FilterActionOrBuilder> + filterActionBuilder_; /** * * *
-     * Replaces specific terms in the query.
+     * Filters results.
      * 
* - * .google.cloud.retail.v2alpha.Rule.ReplacementAction replacement_action = 8; + * .google.cloud.retail.v2alpha.Rule.FilterAction filter_action = 10; * - * @return Whether the replacementAction field is set. + * @return Whether the filterAction field is set. */ @java.lang.Override - public boolean hasReplacementAction() { - return actionCase_ == 8; + public boolean hasFilterAction() { + return actionCase_ == 10; } /** * * *
-     * Replaces specific terms in the query.
+     * Filters results.
      * 
* - * .google.cloud.retail.v2alpha.Rule.ReplacementAction replacement_action = 8; + * .google.cloud.retail.v2alpha.Rule.FilterAction filter_action = 10; * - * @return The replacementAction. + * @return The filterAction. */ @java.lang.Override - public com.google.cloud.retail.v2alpha.Rule.ReplacementAction getReplacementAction() { - if (replacementActionBuilder_ == null) { - if (actionCase_ == 8) { - return (com.google.cloud.retail.v2alpha.Rule.ReplacementAction) action_; + public com.google.cloud.retail.v2alpha.Rule.FilterAction getFilterAction() { + if (filterActionBuilder_ == null) { + if (actionCase_ == 10) { + return (com.google.cloud.retail.v2alpha.Rule.FilterAction) action_; } - return com.google.cloud.retail.v2alpha.Rule.ReplacementAction.getDefaultInstance(); + return com.google.cloud.retail.v2alpha.Rule.FilterAction.getDefaultInstance(); } else { - if (actionCase_ == 8) { - return replacementActionBuilder_.getMessage(); + if (actionCase_ == 10) { + return filterActionBuilder_.getMessage(); } - return com.google.cloud.retail.v2alpha.Rule.ReplacementAction.getDefaultInstance(); + return com.google.cloud.retail.v2alpha.Rule.FilterAction.getDefaultInstance(); } } /** * * *
-     * Replaces specific terms in the query.
+     * Filters results.
      * 
* - * .google.cloud.retail.v2alpha.Rule.ReplacementAction replacement_action = 8; + * .google.cloud.retail.v2alpha.Rule.FilterAction filter_action = 10; */ - public Builder setReplacementAction( - com.google.cloud.retail.v2alpha.Rule.ReplacementAction value) { - if (replacementActionBuilder_ == null) { + public Builder setFilterAction(com.google.cloud.retail.v2alpha.Rule.FilterAction value) { + if (filterActionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } action_ = value; onChanged(); } else { - replacementActionBuilder_.setMessage(value); + filterActionBuilder_.setMessage(value); } - actionCase_ = 8; + actionCase_ = 10; return this; } /** * * *
-     * Replaces specific terms in the query.
+     * Filters results.
      * 
* - * .google.cloud.retail.v2alpha.Rule.ReplacementAction replacement_action = 8; + * .google.cloud.retail.v2alpha.Rule.FilterAction filter_action = 10; */ - public Builder setReplacementAction( - com.google.cloud.retail.v2alpha.Rule.ReplacementAction.Builder builderForValue) { - if (replacementActionBuilder_ == null) { + public Builder setFilterAction( + com.google.cloud.retail.v2alpha.Rule.FilterAction.Builder builderForValue) { + if (filterActionBuilder_ == null) { action_ = builderForValue.build(); onChanged(); } else { - replacementActionBuilder_.setMessage(builderForValue.build()); + filterActionBuilder_.setMessage(builderForValue.build()); } - actionCase_ = 8; + actionCase_ = 10; return this; } /** * * *
-     * Replaces specific terms in the query.
+     * Filters results.
      * 
* - * .google.cloud.retail.v2alpha.Rule.ReplacementAction replacement_action = 8; + * .google.cloud.retail.v2alpha.Rule.FilterAction filter_action = 10; */ - public Builder mergeReplacementAction( - com.google.cloud.retail.v2alpha.Rule.ReplacementAction value) { - if (replacementActionBuilder_ == null) { - if (actionCase_ == 8 - && action_ - != com.google.cloud.retail.v2alpha.Rule.ReplacementAction.getDefaultInstance()) { + public Builder mergeFilterAction(com.google.cloud.retail.v2alpha.Rule.FilterAction value) { + if (filterActionBuilder_ == null) { + if (actionCase_ == 10 + && action_ != com.google.cloud.retail.v2alpha.Rule.FilterAction.getDefaultInstance()) { action_ = - com.google.cloud.retail.v2alpha.Rule.ReplacementAction.newBuilder( - (com.google.cloud.retail.v2alpha.Rule.ReplacementAction) action_) + com.google.cloud.retail.v2alpha.Rule.FilterAction.newBuilder( + (com.google.cloud.retail.v2alpha.Rule.FilterAction) action_) .mergeFrom(value) .buildPartial(); } else { @@ -10426,37 +13899,37 @@ public Builder mergeReplacementAction( } onChanged(); } else { - if (actionCase_ == 8) { - replacementActionBuilder_.mergeFrom(value); + if (actionCase_ == 10) { + filterActionBuilder_.mergeFrom(value); } else { - replacementActionBuilder_.setMessage(value); + filterActionBuilder_.setMessage(value); } } - actionCase_ = 8; + actionCase_ = 10; return this; } /** * * *
-     * Replaces specific terms in the query.
+     * Filters results.
      * 
* - * .google.cloud.retail.v2alpha.Rule.ReplacementAction replacement_action = 8; + * .google.cloud.retail.v2alpha.Rule.FilterAction filter_action = 10; */ - public Builder clearReplacementAction() { - if (replacementActionBuilder_ == null) { - if (actionCase_ == 8) { + public Builder clearFilterAction() { + if (filterActionBuilder_ == null) { + if (actionCase_ == 10) { actionCase_ = 0; action_ = null; onChanged(); } } else { - if (actionCase_ == 8) { + if (actionCase_ == 10) { actionCase_ = 0; action_ = null; } - replacementActionBuilder_.clear(); + filterActionBuilder_.clear(); } return this; } @@ -10464,172 +13937,178 @@ public Builder clearReplacementAction() { * * *
-     * Replaces specific terms in the query.
+     * Filters results.
      * 
* - * .google.cloud.retail.v2alpha.Rule.ReplacementAction replacement_action = 8; + * .google.cloud.retail.v2alpha.Rule.FilterAction filter_action = 10; */ - public com.google.cloud.retail.v2alpha.Rule.ReplacementAction.Builder - getReplacementActionBuilder() { - return getReplacementActionFieldBuilder().getBuilder(); + public com.google.cloud.retail.v2alpha.Rule.FilterAction.Builder getFilterActionBuilder() { + return getFilterActionFieldBuilder().getBuilder(); } /** * * *
-     * Replaces specific terms in the query.
+     * Filters results.
      * 
* - * .google.cloud.retail.v2alpha.Rule.ReplacementAction replacement_action = 8; + * .google.cloud.retail.v2alpha.Rule.FilterAction filter_action = 10; */ @java.lang.Override - public com.google.cloud.retail.v2alpha.Rule.ReplacementActionOrBuilder - getReplacementActionOrBuilder() { - if ((actionCase_ == 8) && (replacementActionBuilder_ != null)) { - return replacementActionBuilder_.getMessageOrBuilder(); + public com.google.cloud.retail.v2alpha.Rule.FilterActionOrBuilder getFilterActionOrBuilder() { + if ((actionCase_ == 10) && (filterActionBuilder_ != null)) { + return filterActionBuilder_.getMessageOrBuilder(); } else { - if (actionCase_ == 8) { - return (com.google.cloud.retail.v2alpha.Rule.ReplacementAction) action_; + if (actionCase_ == 10) { + return (com.google.cloud.retail.v2alpha.Rule.FilterAction) action_; } - return com.google.cloud.retail.v2alpha.Rule.ReplacementAction.getDefaultInstance(); + return com.google.cloud.retail.v2alpha.Rule.FilterAction.getDefaultInstance(); } } /** * * *
-     * Replaces specific terms in the query.
+     * Filters results.
      * 
* - * .google.cloud.retail.v2alpha.Rule.ReplacementAction replacement_action = 8; + * .google.cloud.retail.v2alpha.Rule.FilterAction filter_action = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2alpha.Rule.ReplacementAction, - com.google.cloud.retail.v2alpha.Rule.ReplacementAction.Builder, - com.google.cloud.retail.v2alpha.Rule.ReplacementActionOrBuilder> - getReplacementActionFieldBuilder() { - if (replacementActionBuilder_ == null) { - if (!(actionCase_ == 8)) { - action_ = com.google.cloud.retail.v2alpha.Rule.ReplacementAction.getDefaultInstance(); + com.google.cloud.retail.v2alpha.Rule.FilterAction, + com.google.cloud.retail.v2alpha.Rule.FilterAction.Builder, + com.google.cloud.retail.v2alpha.Rule.FilterActionOrBuilder> + getFilterActionFieldBuilder() { + if (filterActionBuilder_ == null) { + if (!(actionCase_ == 10)) { + action_ = com.google.cloud.retail.v2alpha.Rule.FilterAction.getDefaultInstance(); } - replacementActionBuilder_ = + filterActionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2alpha.Rule.ReplacementAction, - com.google.cloud.retail.v2alpha.Rule.ReplacementAction.Builder, - com.google.cloud.retail.v2alpha.Rule.ReplacementActionOrBuilder>( - (com.google.cloud.retail.v2alpha.Rule.ReplacementAction) action_, + com.google.cloud.retail.v2alpha.Rule.FilterAction, + com.google.cloud.retail.v2alpha.Rule.FilterAction.Builder, + com.google.cloud.retail.v2alpha.Rule.FilterActionOrBuilder>( + (com.google.cloud.retail.v2alpha.Rule.FilterAction) action_, getParentForChildren(), isClean()); action_ = null; } - actionCase_ = 8; + actionCase_ = 10; onChanged(); - return replacementActionBuilder_; + return filterActionBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2alpha.Rule.IgnoreAction, - com.google.cloud.retail.v2alpha.Rule.IgnoreAction.Builder, - com.google.cloud.retail.v2alpha.Rule.IgnoreActionOrBuilder> - ignoreActionBuilder_; + com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction, + com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction.Builder, + com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsActionOrBuilder> + twowaySynonymsActionBuilder_; /** * * *
-     * Ignores specific terms from query during search.
+     * Treats a set of terms as synonyms of one another.
      * 
* - * .google.cloud.retail.v2alpha.Rule.IgnoreAction ignore_action = 9; + * .google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; + * * - * @return Whether the ignoreAction field is set. + * @return Whether the twowaySynonymsAction field is set. */ @java.lang.Override - public boolean hasIgnoreAction() { - return actionCase_ == 9; + public boolean hasTwowaySynonymsAction() { + return actionCase_ == 11; } /** * * *
-     * Ignores specific terms from query during search.
+     * Treats a set of terms as synonyms of one another.
      * 
* - * .google.cloud.retail.v2alpha.Rule.IgnoreAction ignore_action = 9; + * .google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; + * * - * @return The ignoreAction. + * @return The twowaySynonymsAction. */ @java.lang.Override - public com.google.cloud.retail.v2alpha.Rule.IgnoreAction getIgnoreAction() { - if (ignoreActionBuilder_ == null) { - if (actionCase_ == 9) { - return (com.google.cloud.retail.v2alpha.Rule.IgnoreAction) action_; + public com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction getTwowaySynonymsAction() { + if (twowaySynonymsActionBuilder_ == null) { + if (actionCase_ == 11) { + return (com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction) action_; } - return com.google.cloud.retail.v2alpha.Rule.IgnoreAction.getDefaultInstance(); + return com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction.getDefaultInstance(); } else { - if (actionCase_ == 9) { - return ignoreActionBuilder_.getMessage(); + if (actionCase_ == 11) { + return twowaySynonymsActionBuilder_.getMessage(); } - return com.google.cloud.retail.v2alpha.Rule.IgnoreAction.getDefaultInstance(); + return com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction.getDefaultInstance(); } } /** * * *
-     * Ignores specific terms from query during search.
+     * Treats a set of terms as synonyms of one another.
      * 
* - * .google.cloud.retail.v2alpha.Rule.IgnoreAction ignore_action = 9; + * .google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; + * */ - public Builder setIgnoreAction(com.google.cloud.retail.v2alpha.Rule.IgnoreAction value) { - if (ignoreActionBuilder_ == null) { + public Builder setTwowaySynonymsAction( + com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction value) { + if (twowaySynonymsActionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } action_ = value; onChanged(); } else { - ignoreActionBuilder_.setMessage(value); + twowaySynonymsActionBuilder_.setMessage(value); } - actionCase_ = 9; + actionCase_ = 11; return this; } /** * * *
-     * Ignores specific terms from query during search.
+     * Treats a set of terms as synonyms of one another.
      * 
* - * .google.cloud.retail.v2alpha.Rule.IgnoreAction ignore_action = 9; + * .google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; + * */ - public Builder setIgnoreAction( - com.google.cloud.retail.v2alpha.Rule.IgnoreAction.Builder builderForValue) { - if (ignoreActionBuilder_ == null) { + public Builder setTwowaySynonymsAction( + com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction.Builder builderForValue) { + if (twowaySynonymsActionBuilder_ == null) { action_ = builderForValue.build(); onChanged(); } else { - ignoreActionBuilder_.setMessage(builderForValue.build()); + twowaySynonymsActionBuilder_.setMessage(builderForValue.build()); } - actionCase_ = 9; + actionCase_ = 11; return this; } /** * * *
-     * Ignores specific terms from query during search.
+     * Treats a set of terms as synonyms of one another.
      * 
* - * .google.cloud.retail.v2alpha.Rule.IgnoreAction ignore_action = 9; + * .google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; + * */ - public Builder mergeIgnoreAction(com.google.cloud.retail.v2alpha.Rule.IgnoreAction value) { - if (ignoreActionBuilder_ == null) { - if (actionCase_ == 9 - && action_ != com.google.cloud.retail.v2alpha.Rule.IgnoreAction.getDefaultInstance()) { + public Builder mergeTwowaySynonymsAction( + com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction value) { + if (twowaySynonymsActionBuilder_ == null) { + if (actionCase_ == 11 + && action_ + != com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction.getDefaultInstance()) { action_ = - com.google.cloud.retail.v2alpha.Rule.IgnoreAction.newBuilder( - (com.google.cloud.retail.v2alpha.Rule.IgnoreAction) action_) + com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction.newBuilder( + (com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction) action_) .mergeFrom(value) .buildPartial(); } else { @@ -10637,37 +14116,38 @@ public Builder mergeIgnoreAction(com.google.cloud.retail.v2alpha.Rule.IgnoreActi } onChanged(); } else { - if (actionCase_ == 9) { - ignoreActionBuilder_.mergeFrom(value); + if (actionCase_ == 11) { + twowaySynonymsActionBuilder_.mergeFrom(value); } else { - ignoreActionBuilder_.setMessage(value); + twowaySynonymsActionBuilder_.setMessage(value); } } - actionCase_ = 9; + actionCase_ = 11; return this; } /** * * *
-     * Ignores specific terms from query during search.
+     * Treats a set of terms as synonyms of one another.
      * 
* - * .google.cloud.retail.v2alpha.Rule.IgnoreAction ignore_action = 9; + * .google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; + * */ - public Builder clearIgnoreAction() { - if (ignoreActionBuilder_ == null) { - if (actionCase_ == 9) { + public Builder clearTwowaySynonymsAction() { + if (twowaySynonymsActionBuilder_ == null) { + if (actionCase_ == 11) { actionCase_ = 0; action_ = null; onChanged(); } } else { - if (actionCase_ == 9) { + if (actionCase_ == 11) { actionCase_ = 0; action_ = null; } - ignoreActionBuilder_.clear(); + twowaySynonymsActionBuilder_.clear(); } return this; } @@ -10675,170 +14155,189 @@ public Builder clearIgnoreAction() { * * *
-     * Ignores specific terms from query during search.
+     * Treats a set of terms as synonyms of one another.
      * 
* - * .google.cloud.retail.v2alpha.Rule.IgnoreAction ignore_action = 9; + * .google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; + * */ - public com.google.cloud.retail.v2alpha.Rule.IgnoreAction.Builder getIgnoreActionBuilder() { - return getIgnoreActionFieldBuilder().getBuilder(); + public com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction.Builder + getTwowaySynonymsActionBuilder() { + return getTwowaySynonymsActionFieldBuilder().getBuilder(); } /** * * *
-     * Ignores specific terms from query during search.
+     * Treats a set of terms as synonyms of one another.
      * 
* - * .google.cloud.retail.v2alpha.Rule.IgnoreAction ignore_action = 9; + * .google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; + * */ @java.lang.Override - public com.google.cloud.retail.v2alpha.Rule.IgnoreActionOrBuilder getIgnoreActionOrBuilder() { - if ((actionCase_ == 9) && (ignoreActionBuilder_ != null)) { - return ignoreActionBuilder_.getMessageOrBuilder(); + public com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsActionOrBuilder + getTwowaySynonymsActionOrBuilder() { + if ((actionCase_ == 11) && (twowaySynonymsActionBuilder_ != null)) { + return twowaySynonymsActionBuilder_.getMessageOrBuilder(); } else { - if (actionCase_ == 9) { - return (com.google.cloud.retail.v2alpha.Rule.IgnoreAction) action_; + if (actionCase_ == 11) { + return (com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction) action_; } - return com.google.cloud.retail.v2alpha.Rule.IgnoreAction.getDefaultInstance(); + return com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction.getDefaultInstance(); } } /** * * *
-     * Ignores specific terms from query during search.
+     * Treats a set of terms as synonyms of one another.
      * 
* - * .google.cloud.retail.v2alpha.Rule.IgnoreAction ignore_action = 9; + * .google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2alpha.Rule.IgnoreAction, - com.google.cloud.retail.v2alpha.Rule.IgnoreAction.Builder, - com.google.cloud.retail.v2alpha.Rule.IgnoreActionOrBuilder> - getIgnoreActionFieldBuilder() { - if (ignoreActionBuilder_ == null) { - if (!(actionCase_ == 9)) { - action_ = com.google.cloud.retail.v2alpha.Rule.IgnoreAction.getDefaultInstance(); + com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction, + com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction.Builder, + com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsActionOrBuilder> + getTwowaySynonymsActionFieldBuilder() { + if (twowaySynonymsActionBuilder_ == null) { + if (!(actionCase_ == 11)) { + action_ = com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction.getDefaultInstance(); } - ignoreActionBuilder_ = + twowaySynonymsActionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2alpha.Rule.IgnoreAction, - com.google.cloud.retail.v2alpha.Rule.IgnoreAction.Builder, - com.google.cloud.retail.v2alpha.Rule.IgnoreActionOrBuilder>( - (com.google.cloud.retail.v2alpha.Rule.IgnoreAction) action_, + com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction, + com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction.Builder, + com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsActionOrBuilder>( + (com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction) action_, getParentForChildren(), isClean()); action_ = null; } - actionCase_ = 9; + actionCase_ = 11; onChanged(); - return ignoreActionBuilder_; + return twowaySynonymsActionBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2alpha.Rule.FilterAction, - com.google.cloud.retail.v2alpha.Rule.FilterAction.Builder, - com.google.cloud.retail.v2alpha.Rule.FilterActionOrBuilder> - filterActionBuilder_; + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction, + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.Builder, + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetActionOrBuilder> + forceReturnFacetActionBuilder_; /** * * *
-     * Filters results.
+     * Force returns an attribute as a facet in the request.
      * 
* - * .google.cloud.retail.v2alpha.Rule.FilterAction filter_action = 10; + * + * .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction force_return_facet_action = 12; + * * - * @return Whether the filterAction field is set. + * @return Whether the forceReturnFacetAction field is set. */ @java.lang.Override - public boolean hasFilterAction() { - return actionCase_ == 10; + public boolean hasForceReturnFacetAction() { + return actionCase_ == 12; } /** * * *
-     * Filters results.
+     * Force returns an attribute as a facet in the request.
      * 
* - * .google.cloud.retail.v2alpha.Rule.FilterAction filter_action = 10; + * + * .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction force_return_facet_action = 12; + * * - * @return The filterAction. + * @return The forceReturnFacetAction. */ @java.lang.Override - public com.google.cloud.retail.v2alpha.Rule.FilterAction getFilterAction() { - if (filterActionBuilder_ == null) { - if (actionCase_ == 10) { - return (com.google.cloud.retail.v2alpha.Rule.FilterAction) action_; + public com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction getForceReturnFacetAction() { + if (forceReturnFacetActionBuilder_ == null) { + if (actionCase_ == 12) { + return (com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction) action_; } - return com.google.cloud.retail.v2alpha.Rule.FilterAction.getDefaultInstance(); + return com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.getDefaultInstance(); } else { - if (actionCase_ == 10) { - return filterActionBuilder_.getMessage(); + if (actionCase_ == 12) { + return forceReturnFacetActionBuilder_.getMessage(); } - return com.google.cloud.retail.v2alpha.Rule.FilterAction.getDefaultInstance(); + return com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.getDefaultInstance(); } } /** * * *
-     * Filters results.
+     * Force returns an attribute as a facet in the request.
      * 
* - * .google.cloud.retail.v2alpha.Rule.FilterAction filter_action = 10; + * + * .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction force_return_facet_action = 12; + * */ - public Builder setFilterAction(com.google.cloud.retail.v2alpha.Rule.FilterAction value) { - if (filterActionBuilder_ == null) { + public Builder setForceReturnFacetAction( + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction value) { + if (forceReturnFacetActionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } action_ = value; onChanged(); } else { - filterActionBuilder_.setMessage(value); + forceReturnFacetActionBuilder_.setMessage(value); } - actionCase_ = 10; + actionCase_ = 12; return this; } /** * * *
-     * Filters results.
+     * Force returns an attribute as a facet in the request.
      * 
* - * .google.cloud.retail.v2alpha.Rule.FilterAction filter_action = 10; + * + * .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction force_return_facet_action = 12; + * */ - public Builder setFilterAction( - com.google.cloud.retail.v2alpha.Rule.FilterAction.Builder builderForValue) { - if (filterActionBuilder_ == null) { + public Builder setForceReturnFacetAction( + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.Builder builderForValue) { + if (forceReturnFacetActionBuilder_ == null) { action_ = builderForValue.build(); onChanged(); } else { - filterActionBuilder_.setMessage(builderForValue.build()); + forceReturnFacetActionBuilder_.setMessage(builderForValue.build()); } - actionCase_ = 10; + actionCase_ = 12; return this; } /** * * *
-     * Filters results.
+     * Force returns an attribute as a facet in the request.
      * 
* - * .google.cloud.retail.v2alpha.Rule.FilterAction filter_action = 10; + * + * .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction force_return_facet_action = 12; + * */ - public Builder mergeFilterAction(com.google.cloud.retail.v2alpha.Rule.FilterAction value) { - if (filterActionBuilder_ == null) { - if (actionCase_ == 10 - && action_ != com.google.cloud.retail.v2alpha.Rule.FilterAction.getDefaultInstance()) { + public Builder mergeForceReturnFacetAction( + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction value) { + if (forceReturnFacetActionBuilder_ == null) { + if (actionCase_ == 12 + && action_ + != com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction + .getDefaultInstance()) { action_ = - com.google.cloud.retail.v2alpha.Rule.FilterAction.newBuilder( - (com.google.cloud.retail.v2alpha.Rule.FilterAction) action_) + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.newBuilder( + (com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction) action_) .mergeFrom(value) .buildPartial(); } else { @@ -10846,37 +14345,39 @@ public Builder mergeFilterAction(com.google.cloud.retail.v2alpha.Rule.FilterActi } onChanged(); } else { - if (actionCase_ == 10) { - filterActionBuilder_.mergeFrom(value); + if (actionCase_ == 12) { + forceReturnFacetActionBuilder_.mergeFrom(value); } else { - filterActionBuilder_.setMessage(value); + forceReturnFacetActionBuilder_.setMessage(value); } } - actionCase_ = 10; + actionCase_ = 12; return this; } /** * * *
-     * Filters results.
+     * Force returns an attribute as a facet in the request.
      * 
* - * .google.cloud.retail.v2alpha.Rule.FilterAction filter_action = 10; + * + * .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction force_return_facet_action = 12; + * */ - public Builder clearFilterAction() { - if (filterActionBuilder_ == null) { - if (actionCase_ == 10) { + public Builder clearForceReturnFacetAction() { + if (forceReturnFacetActionBuilder_ == null) { + if (actionCase_ == 12) { actionCase_ = 0; action_ = null; onChanged(); } } else { - if (actionCase_ == 10) { + if (actionCase_ == 12) { actionCase_ = 0; action_ = null; } - filterActionBuilder_.clear(); + forceReturnFacetActionBuilder_.clear(); } return this; } @@ -10884,178 +14385,182 @@ public Builder clearFilterAction() { * * *
-     * Filters results.
+     * Force returns an attribute as a facet in the request.
      * 
* - * .google.cloud.retail.v2alpha.Rule.FilterAction filter_action = 10; + * + * .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction force_return_facet_action = 12; + * */ - public com.google.cloud.retail.v2alpha.Rule.FilterAction.Builder getFilterActionBuilder() { - return getFilterActionFieldBuilder().getBuilder(); + public com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.Builder + getForceReturnFacetActionBuilder() { + return getForceReturnFacetActionFieldBuilder().getBuilder(); } /** * * *
-     * Filters results.
+     * Force returns an attribute as a facet in the request.
      * 
* - * .google.cloud.retail.v2alpha.Rule.FilterAction filter_action = 10; + * + * .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction force_return_facet_action = 12; + * */ @java.lang.Override - public com.google.cloud.retail.v2alpha.Rule.FilterActionOrBuilder getFilterActionOrBuilder() { - if ((actionCase_ == 10) && (filterActionBuilder_ != null)) { - return filterActionBuilder_.getMessageOrBuilder(); + public com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetActionOrBuilder + getForceReturnFacetActionOrBuilder() { + if ((actionCase_ == 12) && (forceReturnFacetActionBuilder_ != null)) { + return forceReturnFacetActionBuilder_.getMessageOrBuilder(); } else { - if (actionCase_ == 10) { - return (com.google.cloud.retail.v2alpha.Rule.FilterAction) action_; + if (actionCase_ == 12) { + return (com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction) action_; } - return com.google.cloud.retail.v2alpha.Rule.FilterAction.getDefaultInstance(); + return com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.getDefaultInstance(); } } /** * * *
-     * Filters results.
+     * Force returns an attribute as a facet in the request.
      * 
* - * .google.cloud.retail.v2alpha.Rule.FilterAction filter_action = 10; + * + * .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction force_return_facet_action = 12; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2alpha.Rule.FilterAction, - com.google.cloud.retail.v2alpha.Rule.FilterAction.Builder, - com.google.cloud.retail.v2alpha.Rule.FilterActionOrBuilder> - getFilterActionFieldBuilder() { - if (filterActionBuilder_ == null) { - if (!(actionCase_ == 10)) { - action_ = com.google.cloud.retail.v2alpha.Rule.FilterAction.getDefaultInstance(); + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction, + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.Builder, + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetActionOrBuilder> + getForceReturnFacetActionFieldBuilder() { + if (forceReturnFacetActionBuilder_ == null) { + if (!(actionCase_ == 12)) { + action_ = + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.getDefaultInstance(); } - filterActionBuilder_ = + forceReturnFacetActionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2alpha.Rule.FilterAction, - com.google.cloud.retail.v2alpha.Rule.FilterAction.Builder, - com.google.cloud.retail.v2alpha.Rule.FilterActionOrBuilder>( - (com.google.cloud.retail.v2alpha.Rule.FilterAction) action_, + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction, + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.Builder, + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetActionOrBuilder>( + (com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction) action_, getParentForChildren(), isClean()); action_ = null; } - actionCase_ = 10; + actionCase_ = 12; onChanged(); - return filterActionBuilder_; + return forceReturnFacetActionBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction, - com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction.Builder, - com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsActionOrBuilder> - twowaySynonymsActionBuilder_; + com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction, + com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction.Builder, + com.google.cloud.retail.v2alpha.Rule.RemoveFacetActionOrBuilder> + removeFacetActionBuilder_; /** * * *
-     * Treats a set of terms as synonyms of one another.
+     * Remove an attribute as a facet in the request (if present).
      * 
* - * .google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; - * + * .google.cloud.retail.v2alpha.Rule.RemoveFacetAction remove_facet_action = 13; * - * @return Whether the twowaySynonymsAction field is set. + * @return Whether the removeFacetAction field is set. */ @java.lang.Override - public boolean hasTwowaySynonymsAction() { - return actionCase_ == 11; + public boolean hasRemoveFacetAction() { + return actionCase_ == 13; } /** * * *
-     * Treats a set of terms as synonyms of one another.
+     * Remove an attribute as a facet in the request (if present).
      * 
* - * .google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; - * + * .google.cloud.retail.v2alpha.Rule.RemoveFacetAction remove_facet_action = 13; * - * @return The twowaySynonymsAction. + * @return The removeFacetAction. */ @java.lang.Override - public com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction getTwowaySynonymsAction() { - if (twowaySynonymsActionBuilder_ == null) { - if (actionCase_ == 11) { - return (com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction) action_; + public com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction getRemoveFacetAction() { + if (removeFacetActionBuilder_ == null) { + if (actionCase_ == 13) { + return (com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction) action_; } - return com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction.getDefaultInstance(); + return com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction.getDefaultInstance(); } else { - if (actionCase_ == 11) { - return twowaySynonymsActionBuilder_.getMessage(); + if (actionCase_ == 13) { + return removeFacetActionBuilder_.getMessage(); } - return com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction.getDefaultInstance(); + return com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction.getDefaultInstance(); } } /** * * *
-     * Treats a set of terms as synonyms of one another.
+     * Remove an attribute as a facet in the request (if present).
      * 
* - * .google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; - * + * .google.cloud.retail.v2alpha.Rule.RemoveFacetAction remove_facet_action = 13; */ - public Builder setTwowaySynonymsAction( - com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction value) { - if (twowaySynonymsActionBuilder_ == null) { + public Builder setRemoveFacetAction( + com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction value) { + if (removeFacetActionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } action_ = value; onChanged(); } else { - twowaySynonymsActionBuilder_.setMessage(value); + removeFacetActionBuilder_.setMessage(value); } - actionCase_ = 11; + actionCase_ = 13; return this; } /** * * *
-     * Treats a set of terms as synonyms of one another.
+     * Remove an attribute as a facet in the request (if present).
      * 
* - * .google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; - * + * .google.cloud.retail.v2alpha.Rule.RemoveFacetAction remove_facet_action = 13; */ - public Builder setTwowaySynonymsAction( - com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction.Builder builderForValue) { - if (twowaySynonymsActionBuilder_ == null) { + public Builder setRemoveFacetAction( + com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction.Builder builderForValue) { + if (removeFacetActionBuilder_ == null) { action_ = builderForValue.build(); onChanged(); } else { - twowaySynonymsActionBuilder_.setMessage(builderForValue.build()); + removeFacetActionBuilder_.setMessage(builderForValue.build()); } - actionCase_ = 11; + actionCase_ = 13; return this; } /** * * *
-     * Treats a set of terms as synonyms of one another.
+     * Remove an attribute as a facet in the request (if present).
      * 
* - * .google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; - * + * .google.cloud.retail.v2alpha.Rule.RemoveFacetAction remove_facet_action = 13; */ - public Builder mergeTwowaySynonymsAction( - com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction value) { - if (twowaySynonymsActionBuilder_ == null) { - if (actionCase_ == 11 + public Builder mergeRemoveFacetAction( + com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction value) { + if (removeFacetActionBuilder_ == null) { + if (actionCase_ == 13 && action_ - != com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction.getDefaultInstance()) { + != com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction.getDefaultInstance()) { action_ = - com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction.newBuilder( - (com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction) action_) + com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction.newBuilder( + (com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction) action_) .mergeFrom(value) .buildPartial(); } else { @@ -11063,38 +14568,37 @@ public Builder mergeTwowaySynonymsAction( } onChanged(); } else { - if (actionCase_ == 11) { - twowaySynonymsActionBuilder_.mergeFrom(value); + if (actionCase_ == 13) { + removeFacetActionBuilder_.mergeFrom(value); } else { - twowaySynonymsActionBuilder_.setMessage(value); + removeFacetActionBuilder_.setMessage(value); } } - actionCase_ = 11; + actionCase_ = 13; return this; } /** * * *
-     * Treats a set of terms as synonyms of one another.
+     * Remove an attribute as a facet in the request (if present).
      * 
* - * .google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; - * + * .google.cloud.retail.v2alpha.Rule.RemoveFacetAction remove_facet_action = 13; */ - public Builder clearTwowaySynonymsAction() { - if (twowaySynonymsActionBuilder_ == null) { - if (actionCase_ == 11) { + public Builder clearRemoveFacetAction() { + if (removeFacetActionBuilder_ == null) { + if (actionCase_ == 13) { actionCase_ = 0; action_ = null; onChanged(); } } else { - if (actionCase_ == 11) { + if (actionCase_ == 13) { actionCase_ = 0; action_ = null; } - twowaySynonymsActionBuilder_.clear(); + removeFacetActionBuilder_.clear(); } return this; } @@ -11102,70 +14606,67 @@ public Builder clearTwowaySynonymsAction() { * * *
-     * Treats a set of terms as synonyms of one another.
+     * Remove an attribute as a facet in the request (if present).
      * 
* - * .google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; - * + * .google.cloud.retail.v2alpha.Rule.RemoveFacetAction remove_facet_action = 13; */ - public com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction.Builder - getTwowaySynonymsActionBuilder() { - return getTwowaySynonymsActionFieldBuilder().getBuilder(); + public com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction.Builder + getRemoveFacetActionBuilder() { + return getRemoveFacetActionFieldBuilder().getBuilder(); } /** * * *
-     * Treats a set of terms as synonyms of one another.
+     * Remove an attribute as a facet in the request (if present).
      * 
* - * .google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; - * + * .google.cloud.retail.v2alpha.Rule.RemoveFacetAction remove_facet_action = 13; */ @java.lang.Override - public com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsActionOrBuilder - getTwowaySynonymsActionOrBuilder() { - if ((actionCase_ == 11) && (twowaySynonymsActionBuilder_ != null)) { - return twowaySynonymsActionBuilder_.getMessageOrBuilder(); + public com.google.cloud.retail.v2alpha.Rule.RemoveFacetActionOrBuilder + getRemoveFacetActionOrBuilder() { + if ((actionCase_ == 13) && (removeFacetActionBuilder_ != null)) { + return removeFacetActionBuilder_.getMessageOrBuilder(); } else { - if (actionCase_ == 11) { - return (com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction) action_; + if (actionCase_ == 13) { + return (com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction) action_; } - return com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction.getDefaultInstance(); + return com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction.getDefaultInstance(); } } /** * * *
-     * Treats a set of terms as synonyms of one another.
+     * Remove an attribute as a facet in the request (if present).
      * 
* - * .google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; - * + * .google.cloud.retail.v2alpha.Rule.RemoveFacetAction remove_facet_action = 13; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction, - com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction.Builder, - com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsActionOrBuilder> - getTwowaySynonymsActionFieldBuilder() { - if (twowaySynonymsActionBuilder_ == null) { - if (!(actionCase_ == 11)) { - action_ = com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction.getDefaultInstance(); - } - twowaySynonymsActionBuilder_ = + com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction, + com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction.Builder, + com.google.cloud.retail.v2alpha.Rule.RemoveFacetActionOrBuilder> + getRemoveFacetActionFieldBuilder() { + if (removeFacetActionBuilder_ == null) { + if (!(actionCase_ == 13)) { + action_ = com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction.getDefaultInstance(); + } + removeFacetActionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction, - com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction.Builder, - com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsActionOrBuilder>( - (com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsAction) action_, + com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction, + com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction.Builder, + com.google.cloud.retail.v2alpha.Rule.RemoveFacetActionOrBuilder>( + (com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction) action_, getParentForChildren(), isClean()); action_ = null; } - actionCase_ = 11; + actionCase_ = 13; onChanged(); - return twowaySynonymsActionBuilder_; + return removeFacetActionBuilder_; } private com.google.cloud.retail.v2alpha.Condition condition_; @@ -11189,7 +14690,7 @@ public Builder clearTwowaySynonymsAction() { * @return Whether the condition field is set. */ public boolean hasCondition() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** * @@ -11235,7 +14736,7 @@ public Builder setCondition(com.google.cloud.retail.v2alpha.Condition value) { } else { conditionBuilder_.setMessage(value); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -11257,7 +14758,7 @@ public Builder setCondition(com.google.cloud.retail.v2alpha.Condition.Builder bu } else { conditionBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -11275,7 +14776,7 @@ public Builder setCondition(com.google.cloud.retail.v2alpha.Condition.Builder bu */ public Builder mergeCondition(com.google.cloud.retail.v2alpha.Condition value) { if (conditionBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) + if (((bitField0_ & 0x00000400) != 0) && condition_ != null && condition_ != com.google.cloud.retail.v2alpha.Condition.getDefaultInstance()) { getConditionBuilder().mergeFrom(value); @@ -11286,7 +14787,7 @@ public Builder mergeCondition(com.google.cloud.retail.v2alpha.Condition value) { conditionBuilder_.mergeFrom(value); } if (condition_ != null) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); } return this; @@ -11304,7 +14805,7 @@ public Builder mergeCondition(com.google.cloud.retail.v2alpha.Condition value) { * */ public Builder clearCondition() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000400); condition_ = null; if (conditionBuilder_ != null) { conditionBuilder_.dispose(); @@ -11326,7 +14827,7 @@ public Builder clearCondition() { * */ public com.google.cloud.retail.v2alpha.Condition.Builder getConditionBuilder() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); return getConditionFieldBuilder().getBuilder(); } diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/RuleOrBuilder.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/RuleOrBuilder.java index 502672d5abde..db126793ae92 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/RuleOrBuilder.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/RuleOrBuilder.java @@ -316,6 +316,80 @@ public interface RuleOrBuilder com.google.cloud.retail.v2alpha.Rule.TwowaySynonymsActionOrBuilder getTwowaySynonymsActionOrBuilder(); + /** + * + * + *
+   * Force returns an attribute as a facet in the request.
+   * 
+ * + * .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction force_return_facet_action = 12; + * + * + * @return Whether the forceReturnFacetAction field is set. + */ + boolean hasForceReturnFacetAction(); + /** + * + * + *
+   * Force returns an attribute as a facet in the request.
+   * 
+ * + * .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction force_return_facet_action = 12; + * + * + * @return The forceReturnFacetAction. + */ + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction getForceReturnFacetAction(); + /** + * + * + *
+   * Force returns an attribute as a facet in the request.
+   * 
+ * + * .google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction force_return_facet_action = 12; + * + */ + com.google.cloud.retail.v2alpha.Rule.ForceReturnFacetActionOrBuilder + getForceReturnFacetActionOrBuilder(); + + /** + * + * + *
+   * Remove an attribute as a facet in the request (if present).
+   * 
+ * + * .google.cloud.retail.v2alpha.Rule.RemoveFacetAction remove_facet_action = 13; + * + * @return Whether the removeFacetAction field is set. + */ + boolean hasRemoveFacetAction(); + /** + * + * + *
+   * Remove an attribute as a facet in the request (if present).
+   * 
+ * + * .google.cloud.retail.v2alpha.Rule.RemoveFacetAction remove_facet_action = 13; + * + * @return The removeFacetAction. + */ + com.google.cloud.retail.v2alpha.Rule.RemoveFacetAction getRemoveFacetAction(); + /** + * + * + *
+   * Remove an attribute as a facet in the request (if present).
+   * 
+ * + * .google.cloud.retail.v2alpha.Rule.RemoveFacetAction remove_facet_action = 13; + */ + com.google.cloud.retail.v2alpha.Rule.RemoveFacetActionOrBuilder getRemoveFacetActionOrBuilder(); + /** * * diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/SearchRequest.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/SearchRequest.java index 5cd66c507647..2fca878f089e 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/SearchRequest.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/SearchRequest.java @@ -738,15 +738,15 @@ public interface FacetSpecOrBuilder *
      * Enables dynamic position for this facet. If set to true, the position of
      * this facet among all facets in the response is determined by Google
-     * Retail Search. It will be ordered together with dynamic facets if dynamic
+     * Retail Search. It is ordered together with dynamic facets if dynamic
      * facets is enabled. If set to false, the position of this facet in the
-     * response will be the same as in the request, and it will be ranked before
+     * response is the same as in the request, and it is ranked before
      * the facets with dynamic position enable and all dynamic facets.
      *
      * For example, you may always want to have rating facet returned in
      * the response, but it's not necessarily to always display the rating facet
      * at the top. In that case, you can set enable_dynamic_position to true so
-     * that the position of rating facet in response will be determined by
+     * that the position of rating facet in response is determined by
      * Google Retail Search.
      *
      * Another example, assuming you have the following facets in the request:
@@ -757,13 +757,13 @@ public interface FacetSpecOrBuilder
      *
      * * "brands", enable_dynamic_position = false
      *
-     * And also you have a dynamic facets enable, which will generate a facet
-     * 'gender'. Then the final order of the facets in the response can be
+     * And also you have a dynamic facets enable, which generates a facet
+     * "gender". Then, the final order of the facets in the response can be
      * ("price", "brands", "rating", "gender") or ("price", "brands", "gender",
      * "rating") depends on how Google Retail Search orders "gender" and
-     * "rating" facets. However, notice that "price" and "brands" will always be
-     * ranked at 1st and 2nd position since their enable_dynamic_position are
-     * false.
+     * "rating" facets. However, notice that "price" and "brands" are always
+     * ranked at first and second position because their enable_dynamic_position
+     * values are false.
      * 
* * bool enable_dynamic_position = 4; @@ -935,13 +935,13 @@ public interface FacetKeyOrBuilder * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. *
* * repeated .google.cloud.retail.v2alpha.Interval intervals = 2; @@ -956,13 +956,13 @@ public interface FacetKeyOrBuilder * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. *
* * repeated .google.cloud.retail.v2alpha.Interval intervals = 2; @@ -977,13 +977,13 @@ public interface FacetKeyOrBuilder * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. *
* * repeated .google.cloud.retail.v2alpha.Interval intervals = 2; @@ -998,13 +998,13 @@ public interface FacetKeyOrBuilder * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. *
* * repeated .google.cloud.retail.v2alpha.Interval intervals = 2; @@ -1020,13 +1020,13 @@ public interface FacetKeyOrBuilder * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. *
* * repeated .google.cloud.retail.v2alpha.Interval intervals = 2; @@ -1187,7 +1187,7 @@ public interface FacetKeyOrBuilder * Only get facet values that start with the given string prefix. For * example, suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the - * "categories" facet will give only "Women > Shoe" and "Women > Dress". + * "categories" facet gives only "Women > Shoe" and "Women > Dress". * Only supported on textual fields. Maximum is 10. *
* @@ -1203,7 +1203,7 @@ public interface FacetKeyOrBuilder * Only get facet values that start with the given string prefix. For * example, suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the - * "categories" facet will give only "Women > Shoe" and "Women > Dress". + * "categories" facet gives only "Women > Shoe" and "Women > Dress". * Only supported on textual fields. Maximum is 10. *
* @@ -1219,7 +1219,7 @@ public interface FacetKeyOrBuilder * Only get facet values that start with the given string prefix. For * example, suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the - * "categories" facet will give only "Women > Shoe" and "Women > Dress". + * "categories" facet gives only "Women > Shoe" and "Women > Dress". * Only supported on textual fields. Maximum is 10. *
* @@ -1236,7 +1236,7 @@ public interface FacetKeyOrBuilder * Only get facet values that start with the given string prefix. For * example, suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the - * "categories" facet will give only "Women > Shoe" and "Women > Dress". + * "categories" facet gives only "Women > Shoe" and "Women > Dress". * Only supported on textual fields. Maximum is 10. *
* @@ -1254,7 +1254,7 @@ public interface FacetKeyOrBuilder * Only get facet values that contains the given strings. For example, * suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the - * "categories" facet will give only "Women > Shoe" and "Men > Shoe". + * "categories" facet gives only "Women > Shoe" and "Men > Shoe". * Only supported on textual fields. Maximum is 10. *
* @@ -1270,7 +1270,7 @@ public interface FacetKeyOrBuilder * Only get facet values that contains the given strings. For example, * suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the - * "categories" facet will give only "Women > Shoe" and "Men > Shoe". + * "categories" facet gives only "Women > Shoe" and "Men > Shoe". * Only supported on textual fields. Maximum is 10. *
* @@ -1286,7 +1286,7 @@ public interface FacetKeyOrBuilder * Only get facet values that contains the given strings. For example, * suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the - * "categories" facet will give only "Women > Shoe" and "Men > Shoe". + * "categories" facet gives only "Women > Shoe" and "Men > Shoe". * Only supported on textual fields. Maximum is 10. *
* @@ -1303,7 +1303,7 @@ public interface FacetKeyOrBuilder * Only get facet values that contains the given strings. For example, * suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the - * "categories" facet will give only "Women > Shoe" and "Men > Shoe". + * "categories" facet gives only "Women > Shoe" and "Men > Shoe". * Only supported on textual fields. Maximum is 10. *
* @@ -1400,7 +1400,7 @@ public interface FacetKeyOrBuilder * *
        * The query that is used to compute facet for the given facet key.
-       * When provided, it will override the default behavior of facet
+       * When provided, it overrides the default behavior of facet
        * computation. The query syntax is the same as a filter expression. See
        * [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter]
        * for detail syntax and limitations. Notice that there is no limitation
@@ -1410,9 +1410,9 @@ public interface FacetKeyOrBuilder
        *
        * In the response,
        * [SearchResponse.Facet.values.value][google.cloud.retail.v2alpha.SearchResponse.Facet.FacetValue.value]
-       * will be always "1" and
+       * is always "1" and
        * [SearchResponse.Facet.values.count][google.cloud.retail.v2alpha.SearchResponse.Facet.FacetValue.count]
-       * will be the number of results that match the query.
+       * is the number of results that match the query.
        *
        * For example, you can set a customized facet for "shipToStore",
        * where
@@ -1420,7 +1420,7 @@ public interface FacetKeyOrBuilder
        * is "customizedShipToStore", and
        * [FacetKey.query][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.query]
        * is "availability: ANY(\"IN_STOCK\") AND shipToStore: ANY(\"123\")".
-       * Then the facet will count the products that are both in stock and ship
+       * Then the facet counts the products that are both in stock and ship
        * to store "123".
        * 
* @@ -1434,7 +1434,7 @@ public interface FacetKeyOrBuilder * *
        * The query that is used to compute facet for the given facet key.
-       * When provided, it will override the default behavior of facet
+       * When provided, it overrides the default behavior of facet
        * computation. The query syntax is the same as a filter expression. See
        * [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter]
        * for detail syntax and limitations. Notice that there is no limitation
@@ -1444,9 +1444,9 @@ public interface FacetKeyOrBuilder
        *
        * In the response,
        * [SearchResponse.Facet.values.value][google.cloud.retail.v2alpha.SearchResponse.Facet.FacetValue.value]
-       * will be always "1" and
+       * is always "1" and
        * [SearchResponse.Facet.values.count][google.cloud.retail.v2alpha.SearchResponse.Facet.FacetValue.count]
-       * will be the number of results that match the query.
+       * is the number of results that match the query.
        *
        * For example, you can set a customized facet for "shipToStore",
        * where
@@ -1454,7 +1454,7 @@ public interface FacetKeyOrBuilder
        * is "customizedShipToStore", and
        * [FacetKey.query][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.query]
        * is "availability: ANY(\"IN_STOCK\") AND shipToStore: ANY(\"123\")".
-       * Then the facet will count the products that are both in stock and ship
+       * Then the facet counts the products that are both in stock and ship
        * to store "123".
        * 
* @@ -1672,13 +1672,13 @@ public com.google.protobuf.ByteString getKeyBytes() { * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. *
* * repeated .google.cloud.retail.v2alpha.Interval intervals = 2; @@ -1696,13 +1696,13 @@ public java.util.List getIntervalsList * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. *
* * repeated .google.cloud.retail.v2alpha.Interval intervals = 2; @@ -1721,13 +1721,13 @@ public java.util.List getIntervalsList * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. *
* * repeated .google.cloud.retail.v2alpha.Interval intervals = 2; @@ -1745,13 +1745,13 @@ public int getIntervalsCount() { * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. *
* * repeated .google.cloud.retail.v2alpha.Interval intervals = 2; @@ -1769,13 +1769,13 @@ public com.google.cloud.retail.v2alpha.Interval getIntervals(int index) { * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. *
* * repeated .google.cloud.retail.v2alpha.Interval intervals = 2; @@ -1957,7 +1957,7 @@ public com.google.protobuf.ByteString getRestrictedValuesBytes(int index) { * Only get facet values that start with the given string prefix. For * example, suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the - * "categories" facet will give only "Women > Shoe" and "Women > Dress". + * "categories" facet gives only "Women > Shoe" and "Women > Dress". * Only supported on textual fields. Maximum is 10. *
* @@ -1975,7 +1975,7 @@ public com.google.protobuf.ProtocolStringList getPrefixesList() { * Only get facet values that start with the given string prefix. For * example, suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the - * "categories" facet will give only "Women > Shoe" and "Women > Dress". + * "categories" facet gives only "Women > Shoe" and "Women > Dress". * Only supported on textual fields. Maximum is 10. *
* @@ -1993,7 +1993,7 @@ public int getPrefixesCount() { * Only get facet values that start with the given string prefix. For * example, suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the - * "categories" facet will give only "Women > Shoe" and "Women > Dress". + * "categories" facet gives only "Women > Shoe" and "Women > Dress". * Only supported on textual fields. Maximum is 10. *
* @@ -2012,7 +2012,7 @@ public java.lang.String getPrefixes(int index) { * Only get facet values that start with the given string prefix. For * example, suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the - * "categories" facet will give only "Women > Shoe" and "Women > Dress". + * "categories" facet gives only "Women > Shoe" and "Women > Dress". * Only supported on textual fields. Maximum is 10. *
* @@ -2037,7 +2037,7 @@ public com.google.protobuf.ByteString getPrefixesBytes(int index) { * Only get facet values that contains the given strings. For example, * suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the - * "categories" facet will give only "Women > Shoe" and "Men > Shoe". + * "categories" facet gives only "Women > Shoe" and "Men > Shoe". * Only supported on textual fields. Maximum is 10. *
* @@ -2055,7 +2055,7 @@ public com.google.protobuf.ProtocolStringList getContainsList() { * Only get facet values that contains the given strings. For example, * suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the - * "categories" facet will give only "Women > Shoe" and "Men > Shoe". + * "categories" facet gives only "Women > Shoe" and "Men > Shoe". * Only supported on textual fields. Maximum is 10. *
* @@ -2073,7 +2073,7 @@ public int getContainsCount() { * Only get facet values that contains the given strings. For example, * suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the - * "categories" facet will give only "Women > Shoe" and "Men > Shoe". + * "categories" facet gives only "Women > Shoe" and "Men > Shoe". * Only supported on textual fields. Maximum is 10. * * @@ -2092,7 +2092,7 @@ public java.lang.String getContains(int index) { * Only get facet values that contains the given strings. For example, * suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the - * "categories" facet will give only "Women > Shoe" and "Men > Shoe". + * "categories" facet gives only "Women > Shoe" and "Men > Shoe". * Only supported on textual fields. Maximum is 10. * * @@ -2226,7 +2226,7 @@ public com.google.protobuf.ByteString getOrderByBytes() { * *
        * The query that is used to compute facet for the given facet key.
-       * When provided, it will override the default behavior of facet
+       * When provided, it overrides the default behavior of facet
        * computation. The query syntax is the same as a filter expression. See
        * [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter]
        * for detail syntax and limitations. Notice that there is no limitation
@@ -2236,9 +2236,9 @@ public com.google.protobuf.ByteString getOrderByBytes() {
        *
        * In the response,
        * [SearchResponse.Facet.values.value][google.cloud.retail.v2alpha.SearchResponse.Facet.FacetValue.value]
-       * will be always "1" and
+       * is always "1" and
        * [SearchResponse.Facet.values.count][google.cloud.retail.v2alpha.SearchResponse.Facet.FacetValue.count]
-       * will be the number of results that match the query.
+       * is the number of results that match the query.
        *
        * For example, you can set a customized facet for "shipToStore",
        * where
@@ -2246,7 +2246,7 @@ public com.google.protobuf.ByteString getOrderByBytes() {
        * is "customizedShipToStore", and
        * [FacetKey.query][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.query]
        * is "availability: ANY(\"IN_STOCK\") AND shipToStore: ANY(\"123\")".
-       * Then the facet will count the products that are both in stock and ship
+       * Then the facet counts the products that are both in stock and ship
        * to store "123".
        * 
* @@ -2271,7 +2271,7 @@ public java.lang.String getQuery() { * *
        * The query that is used to compute facet for the given facet key.
-       * When provided, it will override the default behavior of facet
+       * When provided, it overrides the default behavior of facet
        * computation. The query syntax is the same as a filter expression. See
        * [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter]
        * for detail syntax and limitations. Notice that there is no limitation
@@ -2281,9 +2281,9 @@ public java.lang.String getQuery() {
        *
        * In the response,
        * [SearchResponse.Facet.values.value][google.cloud.retail.v2alpha.SearchResponse.Facet.FacetValue.value]
-       * will be always "1" and
+       * is always "1" and
        * [SearchResponse.Facet.values.count][google.cloud.retail.v2alpha.SearchResponse.Facet.FacetValue.count]
-       * will be the number of results that match the query.
+       * is the number of results that match the query.
        *
        * For example, you can set a customized facet for "shipToStore",
        * where
@@ -2291,7 +2291,7 @@ public java.lang.String getQuery() {
        * is "customizedShipToStore", and
        * [FacetKey.query][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.query]
        * is "availability: ANY(\"IN_STOCK\") AND shipToStore: ANY(\"123\")".
-       * Then the facet will count the products that are both in stock and ship
+       * Then the facet counts the products that are both in stock and ship
        * to store "123".
        * 
* @@ -3298,13 +3298,13 @@ private void ensureIntervalsIsMutable() { * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. * * * repeated .google.cloud.retail.v2alpha.Interval intervals = 2; @@ -3325,13 +3325,13 @@ public java.util.List getIntervalsList * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. * * * repeated .google.cloud.retail.v2alpha.Interval intervals = 2; @@ -3352,13 +3352,13 @@ public int getIntervalsCount() { * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. * * * repeated .google.cloud.retail.v2alpha.Interval intervals = 2; @@ -3379,13 +3379,13 @@ public com.google.cloud.retail.v2alpha.Interval getIntervals(int index) { * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. * * * repeated .google.cloud.retail.v2alpha.Interval intervals = 2; @@ -3412,13 +3412,13 @@ public Builder setIntervals(int index, com.google.cloud.retail.v2alpha.Interval * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. * * * repeated .google.cloud.retail.v2alpha.Interval intervals = 2; @@ -3443,13 +3443,13 @@ public Builder setIntervals( * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. * * * repeated .google.cloud.retail.v2alpha.Interval intervals = 2; @@ -3476,13 +3476,13 @@ public Builder addIntervals(com.google.cloud.retail.v2alpha.Interval value) { * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. * * * repeated .google.cloud.retail.v2alpha.Interval intervals = 2; @@ -3509,13 +3509,13 @@ public Builder addIntervals(int index, com.google.cloud.retail.v2alpha.Interval * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. * * * repeated .google.cloud.retail.v2alpha.Interval intervals = 2; @@ -3540,13 +3540,13 @@ public Builder addIntervals( * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. * * * repeated .google.cloud.retail.v2alpha.Interval intervals = 2; @@ -3571,13 +3571,13 @@ public Builder addIntervals( * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. * * * repeated .google.cloud.retail.v2alpha.Interval intervals = 2; @@ -3602,13 +3602,13 @@ public Builder addAllIntervals( * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. * * * repeated .google.cloud.retail.v2alpha.Interval intervals = 2; @@ -3632,13 +3632,13 @@ public Builder clearIntervals() { * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. * * * repeated .google.cloud.retail.v2alpha.Interval intervals = 2; @@ -3662,13 +3662,13 @@ public Builder removeIntervals(int index) { * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. * * * repeated .google.cloud.retail.v2alpha.Interval intervals = 2; @@ -3685,13 +3685,13 @@ public com.google.cloud.retail.v2alpha.Interval.Builder getIntervalsBuilder(int * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. * * * repeated .google.cloud.retail.v2alpha.Interval intervals = 2; @@ -3712,13 +3712,13 @@ public com.google.cloud.retail.v2alpha.IntervalOrBuilder getIntervalsOrBuilder(i * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. * * * repeated .google.cloud.retail.v2alpha.Interval intervals = 2; @@ -3740,13 +3740,13 @@ public com.google.cloud.retail.v2alpha.IntervalOrBuilder getIntervalsOrBuilder(i * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. * * * repeated .google.cloud.retail.v2alpha.Interval intervals = 2; @@ -3764,13 +3764,13 @@ public com.google.cloud.retail.v2alpha.Interval.Builder addIntervalsBuilder() { * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. * * * repeated .google.cloud.retail.v2alpha.Interval intervals = 2; @@ -3788,13 +3788,13 @@ public com.google.cloud.retail.v2alpha.Interval.Builder addIntervalsBuilder(int * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. * * * repeated .google.cloud.retail.v2alpha.Interval intervals = 2; @@ -4230,7 +4230,7 @@ private void ensurePrefixesIsMutable() { * Only get facet values that start with the given string prefix. For * example, suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the - * "categories" facet will give only "Women > Shoe" and "Women > Dress". + * "categories" facet gives only "Women > Shoe" and "Women > Dress". * Only supported on textual fields. Maximum is 10. * * @@ -4249,7 +4249,7 @@ public com.google.protobuf.ProtocolStringList getPrefixesList() { * Only get facet values that start with the given string prefix. For * example, suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the - * "categories" facet will give only "Women > Shoe" and "Women > Dress". + * "categories" facet gives only "Women > Shoe" and "Women > Dress". * Only supported on textual fields. Maximum is 10. * * @@ -4267,7 +4267,7 @@ public int getPrefixesCount() { * Only get facet values that start with the given string prefix. For * example, suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the - * "categories" facet will give only "Women > Shoe" and "Women > Dress". + * "categories" facet gives only "Women > Shoe" and "Women > Dress". * Only supported on textual fields. Maximum is 10. * * @@ -4286,7 +4286,7 @@ public java.lang.String getPrefixes(int index) { * Only get facet values that start with the given string prefix. For * example, suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the - * "categories" facet will give only "Women > Shoe" and "Women > Dress". + * "categories" facet gives only "Women > Shoe" and "Women > Dress". * Only supported on textual fields. Maximum is 10. * * @@ -4305,7 +4305,7 @@ public com.google.protobuf.ByteString getPrefixesBytes(int index) { * Only get facet values that start with the given string prefix. For * example, suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the - * "categories" facet will give only "Women > Shoe" and "Women > Dress". + * "categories" facet gives only "Women > Shoe" and "Women > Dress". * Only supported on textual fields. Maximum is 10. * * @@ -4332,7 +4332,7 @@ public Builder setPrefixes(int index, java.lang.String value) { * Only get facet values that start with the given string prefix. For * example, suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the - * "categories" facet will give only "Women > Shoe" and "Women > Dress". + * "categories" facet gives only "Women > Shoe" and "Women > Dress". * Only supported on textual fields. Maximum is 10. * * @@ -4358,7 +4358,7 @@ public Builder addPrefixes(java.lang.String value) { * Only get facet values that start with the given string prefix. For * example, suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the - * "categories" facet will give only "Women > Shoe" and "Women > Dress". + * "categories" facet gives only "Women > Shoe" and "Women > Dress". * Only supported on textual fields. Maximum is 10. * * @@ -4381,7 +4381,7 @@ public Builder addAllPrefixes(java.lang.Iterable values) { * Only get facet values that start with the given string prefix. For * example, suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the - * "categories" facet will give only "Women > Shoe" and "Women > Dress". + * "categories" facet gives only "Women > Shoe" and "Women > Dress". * Only supported on textual fields. Maximum is 10. * * @@ -4403,7 +4403,7 @@ public Builder clearPrefixes() { * Only get facet values that start with the given string prefix. For * example, suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the - * "categories" facet will give only "Women > Shoe" and "Women > Dress". + * "categories" facet gives only "Women > Shoe" and "Women > Dress". * Only supported on textual fields. Maximum is 10. * * @@ -4440,7 +4440,7 @@ private void ensureContainsIsMutable() { * Only get facet values that contains the given strings. For example, * suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the - * "categories" facet will give only "Women > Shoe" and "Men > Shoe". + * "categories" facet gives only "Women > Shoe" and "Men > Shoe". * Only supported on textual fields. Maximum is 10. * * @@ -4459,7 +4459,7 @@ public com.google.protobuf.ProtocolStringList getContainsList() { * Only get facet values that contains the given strings. For example, * suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the - * "categories" facet will give only "Women > Shoe" and "Men > Shoe". + * "categories" facet gives only "Women > Shoe" and "Men > Shoe". * Only supported on textual fields. Maximum is 10. * * @@ -4477,7 +4477,7 @@ public int getContainsCount() { * Only get facet values that contains the given strings. For example, * suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the - * "categories" facet will give only "Women > Shoe" and "Men > Shoe". + * "categories" facet gives only "Women > Shoe" and "Men > Shoe". * Only supported on textual fields. Maximum is 10. * * @@ -4496,7 +4496,7 @@ public java.lang.String getContains(int index) { * Only get facet values that contains the given strings. For example, * suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the - * "categories" facet will give only "Women > Shoe" and "Men > Shoe". + * "categories" facet gives only "Women > Shoe" and "Men > Shoe". * Only supported on textual fields. Maximum is 10. * * @@ -4515,7 +4515,7 @@ public com.google.protobuf.ByteString getContainsBytes(int index) { * Only get facet values that contains the given strings. For example, * suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the - * "categories" facet will give only "Women > Shoe" and "Men > Shoe". + * "categories" facet gives only "Women > Shoe" and "Men > Shoe". * Only supported on textual fields. Maximum is 10. * * @@ -4542,7 +4542,7 @@ public Builder setContains(int index, java.lang.String value) { * Only get facet values that contains the given strings. For example, * suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the - * "categories" facet will give only "Women > Shoe" and "Men > Shoe". + * "categories" facet gives only "Women > Shoe" and "Men > Shoe". * Only supported on textual fields. Maximum is 10. * * @@ -4568,7 +4568,7 @@ public Builder addContains(java.lang.String value) { * Only get facet values that contains the given strings. For example, * suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the - * "categories" facet will give only "Women > Shoe" and "Men > Shoe". + * "categories" facet gives only "Women > Shoe" and "Men > Shoe". * Only supported on textual fields. Maximum is 10. * * @@ -4591,7 +4591,7 @@ public Builder addAllContains(java.lang.Iterable values) { * Only get facet values that contains the given strings. For example, * suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the - * "categories" facet will give only "Women > Shoe" and "Men > Shoe". + * "categories" facet gives only "Women > Shoe" and "Men > Shoe". * Only supported on textual fields. Maximum is 10. * * @@ -4613,7 +4613,7 @@ public Builder clearContains() { * Only get facet values that contains the given strings. For example, * suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the - * "categories" facet will give only "Women > Shoe" and "Men > Shoe". + * "categories" facet gives only "Women > Shoe" and "Men > Shoe". * Only supported on textual fields. Maximum is 10. * * @@ -4907,7 +4907,7 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { * *
          * The query that is used to compute facet for the given facet key.
-         * When provided, it will override the default behavior of facet
+         * When provided, it overrides the default behavior of facet
          * computation. The query syntax is the same as a filter expression. See
          * [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter]
          * for detail syntax and limitations. Notice that there is no limitation
@@ -4917,9 +4917,9 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) {
          *
          * In the response,
          * [SearchResponse.Facet.values.value][google.cloud.retail.v2alpha.SearchResponse.Facet.FacetValue.value]
-         * will be always "1" and
+         * is always "1" and
          * [SearchResponse.Facet.values.count][google.cloud.retail.v2alpha.SearchResponse.Facet.FacetValue.count]
-         * will be the number of results that match the query.
+         * is the number of results that match the query.
          *
          * For example, you can set a customized facet for "shipToStore",
          * where
@@ -4927,7 +4927,7 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) {
          * is "customizedShipToStore", and
          * [FacetKey.query][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.query]
          * is "availability: ANY(\"IN_STOCK\") AND shipToStore: ANY(\"123\")".
-         * Then the facet will count the products that are both in stock and ship
+         * Then the facet counts the products that are both in stock and ship
          * to store "123".
          * 
* @@ -4951,7 +4951,7 @@ public java.lang.String getQuery() { * *
          * The query that is used to compute facet for the given facet key.
-         * When provided, it will override the default behavior of facet
+         * When provided, it overrides the default behavior of facet
          * computation. The query syntax is the same as a filter expression. See
          * [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter]
          * for detail syntax and limitations. Notice that there is no limitation
@@ -4961,9 +4961,9 @@ public java.lang.String getQuery() {
          *
          * In the response,
          * [SearchResponse.Facet.values.value][google.cloud.retail.v2alpha.SearchResponse.Facet.FacetValue.value]
-         * will be always "1" and
+         * is always "1" and
          * [SearchResponse.Facet.values.count][google.cloud.retail.v2alpha.SearchResponse.Facet.FacetValue.count]
-         * will be the number of results that match the query.
+         * is the number of results that match the query.
          *
          * For example, you can set a customized facet for "shipToStore",
          * where
@@ -4971,7 +4971,7 @@ public java.lang.String getQuery() {
          * is "customizedShipToStore", and
          * [FacetKey.query][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.query]
          * is "availability: ANY(\"IN_STOCK\") AND shipToStore: ANY(\"123\")".
-         * Then the facet will count the products that are both in stock and ship
+         * Then the facet counts the products that are both in stock and ship
          * to store "123".
          * 
* @@ -4995,7 +4995,7 @@ public com.google.protobuf.ByteString getQueryBytes() { * *
          * The query that is used to compute facet for the given facet key.
-         * When provided, it will override the default behavior of facet
+         * When provided, it overrides the default behavior of facet
          * computation. The query syntax is the same as a filter expression. See
          * [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter]
          * for detail syntax and limitations. Notice that there is no limitation
@@ -5005,9 +5005,9 @@ public com.google.protobuf.ByteString getQueryBytes() {
          *
          * In the response,
          * [SearchResponse.Facet.values.value][google.cloud.retail.v2alpha.SearchResponse.Facet.FacetValue.value]
-         * will be always "1" and
+         * is always "1" and
          * [SearchResponse.Facet.values.count][google.cloud.retail.v2alpha.SearchResponse.Facet.FacetValue.count]
-         * will be the number of results that match the query.
+         * is the number of results that match the query.
          *
          * For example, you can set a customized facet for "shipToStore",
          * where
@@ -5015,7 +5015,7 @@ public com.google.protobuf.ByteString getQueryBytes() {
          * is "customizedShipToStore", and
          * [FacetKey.query][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.query]
          * is "availability: ANY(\"IN_STOCK\") AND shipToStore: ANY(\"123\")".
-         * Then the facet will count the products that are both in stock and ship
+         * Then the facet counts the products that are both in stock and ship
          * to store "123".
          * 
* @@ -5038,7 +5038,7 @@ public Builder setQuery(java.lang.String value) { * *
          * The query that is used to compute facet for the given facet key.
-         * When provided, it will override the default behavior of facet
+         * When provided, it overrides the default behavior of facet
          * computation. The query syntax is the same as a filter expression. See
          * [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter]
          * for detail syntax and limitations. Notice that there is no limitation
@@ -5048,9 +5048,9 @@ public Builder setQuery(java.lang.String value) {
          *
          * In the response,
          * [SearchResponse.Facet.values.value][google.cloud.retail.v2alpha.SearchResponse.Facet.FacetValue.value]
-         * will be always "1" and
+         * is always "1" and
          * [SearchResponse.Facet.values.count][google.cloud.retail.v2alpha.SearchResponse.Facet.FacetValue.count]
-         * will be the number of results that match the query.
+         * is the number of results that match the query.
          *
          * For example, you can set a customized facet for "shipToStore",
          * where
@@ -5058,7 +5058,7 @@ public Builder setQuery(java.lang.String value) {
          * is "customizedShipToStore", and
          * [FacetKey.query][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.query]
          * is "availability: ANY(\"IN_STOCK\") AND shipToStore: ANY(\"123\")".
-         * Then the facet will count the products that are both in stock and ship
+         * Then the facet counts the products that are both in stock and ship
          * to store "123".
          * 
* @@ -5077,7 +5077,7 @@ public Builder clearQuery() { * *
          * The query that is used to compute facet for the given facet key.
-         * When provided, it will override the default behavior of facet
+         * When provided, it overrides the default behavior of facet
          * computation. The query syntax is the same as a filter expression. See
          * [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter]
          * for detail syntax and limitations. Notice that there is no limitation
@@ -5087,9 +5087,9 @@ public Builder clearQuery() {
          *
          * In the response,
          * [SearchResponse.Facet.values.value][google.cloud.retail.v2alpha.SearchResponse.Facet.FacetValue.value]
-         * will be always "1" and
+         * is always "1" and
          * [SearchResponse.Facet.values.count][google.cloud.retail.v2alpha.SearchResponse.Facet.FacetValue.count]
-         * will be the number of results that match the query.
+         * is the number of results that match the query.
          *
          * For example, you can set a customized facet for "shipToStore",
          * where
@@ -5097,7 +5097,7 @@ public Builder clearQuery() {
          * is "customizedShipToStore", and
          * [FacetKey.query][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.query]
          * is "availability: ANY(\"IN_STOCK\") AND shipToStore: ANY(\"123\")".
-         * Then the facet will count the products that are both in stock and ship
+         * Then the facet counts the products that are both in stock and ship
          * to store "123".
          * 
* @@ -5500,15 +5500,15 @@ public com.google.protobuf.ByteString getExcludedFilterKeysBytes(int index) { *
      * Enables dynamic position for this facet. If set to true, the position of
      * this facet among all facets in the response is determined by Google
-     * Retail Search. It will be ordered together with dynamic facets if dynamic
+     * Retail Search. It is ordered together with dynamic facets if dynamic
      * facets is enabled. If set to false, the position of this facet in the
-     * response will be the same as in the request, and it will be ranked before
+     * response is the same as in the request, and it is ranked before
      * the facets with dynamic position enable and all dynamic facets.
      *
      * For example, you may always want to have rating facet returned in
      * the response, but it's not necessarily to always display the rating facet
      * at the top. In that case, you can set enable_dynamic_position to true so
-     * that the position of rating facet in response will be determined by
+     * that the position of rating facet in response is determined by
      * Google Retail Search.
      *
      * Another example, assuming you have the following facets in the request:
@@ -5519,13 +5519,13 @@ public com.google.protobuf.ByteString getExcludedFilterKeysBytes(int index) {
      *
      * * "brands", enable_dynamic_position = false
      *
-     * And also you have a dynamic facets enable, which will generate a facet
-     * 'gender'. Then the final order of the facets in the response can be
+     * And also you have a dynamic facets enable, which generates a facet
+     * "gender". Then, the final order of the facets in the response can be
      * ("price", "brands", "rating", "gender") or ("price", "brands", "gender",
      * "rating") depends on how Google Retail Search orders "gender" and
-     * "rating" facets. However, notice that "price" and "brands" will always be
-     * ranked at 1st and 2nd position since their enable_dynamic_position are
-     * false.
+     * "rating" facets. However, notice that "price" and "brands" are always
+     * ranked at first and second position because their enable_dynamic_position
+     * values are false.
      * 
* * bool enable_dynamic_position = 4; @@ -6688,15 +6688,15 @@ public Builder addExcludedFilterKeysBytes(com.google.protobuf.ByteString value) *
        * Enables dynamic position for this facet. If set to true, the position of
        * this facet among all facets in the response is determined by Google
-       * Retail Search. It will be ordered together with dynamic facets if dynamic
+       * Retail Search. It is ordered together with dynamic facets if dynamic
        * facets is enabled. If set to false, the position of this facet in the
-       * response will be the same as in the request, and it will be ranked before
+       * response is the same as in the request, and it is ranked before
        * the facets with dynamic position enable and all dynamic facets.
        *
        * For example, you may always want to have rating facet returned in
        * the response, but it's not necessarily to always display the rating facet
        * at the top. In that case, you can set enable_dynamic_position to true so
-       * that the position of rating facet in response will be determined by
+       * that the position of rating facet in response is determined by
        * Google Retail Search.
        *
        * Another example, assuming you have the following facets in the request:
@@ -6707,13 +6707,13 @@ public Builder addExcludedFilterKeysBytes(com.google.protobuf.ByteString value)
        *
        * * "brands", enable_dynamic_position = false
        *
-       * And also you have a dynamic facets enable, which will generate a facet
-       * 'gender'. Then the final order of the facets in the response can be
+       * And also you have a dynamic facets enable, which generates a facet
+       * "gender". Then, the final order of the facets in the response can be
        * ("price", "brands", "rating", "gender") or ("price", "brands", "gender",
        * "rating") depends on how Google Retail Search orders "gender" and
-       * "rating" facets. However, notice that "price" and "brands" will always be
-       * ranked at 1st and 2nd position since their enable_dynamic_position are
-       * false.
+       * "rating" facets. However, notice that "price" and "brands" are always
+       * ranked at first and second position because their enable_dynamic_position
+       * values are false.
        * 
* * bool enable_dynamic_position = 4; @@ -6730,15 +6730,15 @@ public boolean getEnableDynamicPosition() { *
        * Enables dynamic position for this facet. If set to true, the position of
        * this facet among all facets in the response is determined by Google
-       * Retail Search. It will be ordered together with dynamic facets if dynamic
+       * Retail Search. It is ordered together with dynamic facets if dynamic
        * facets is enabled. If set to false, the position of this facet in the
-       * response will be the same as in the request, and it will be ranked before
+       * response is the same as in the request, and it is ranked before
        * the facets with dynamic position enable and all dynamic facets.
        *
        * For example, you may always want to have rating facet returned in
        * the response, but it's not necessarily to always display the rating facet
        * at the top. In that case, you can set enable_dynamic_position to true so
-       * that the position of rating facet in response will be determined by
+       * that the position of rating facet in response is determined by
        * Google Retail Search.
        *
        * Another example, assuming you have the following facets in the request:
@@ -6749,13 +6749,13 @@ public boolean getEnableDynamicPosition() {
        *
        * * "brands", enable_dynamic_position = false
        *
-       * And also you have a dynamic facets enable, which will generate a facet
-       * 'gender'. Then the final order of the facets in the response can be
+       * And also you have a dynamic facets enable, which generates a facet
+       * "gender". Then, the final order of the facets in the response can be
        * ("price", "brands", "rating", "gender") or ("price", "brands", "gender",
        * "rating") depends on how Google Retail Search orders "gender" and
-       * "rating" facets. However, notice that "price" and "brands" will always be
-       * ranked at 1st and 2nd position since their enable_dynamic_position are
-       * false.
+       * "rating" facets. However, notice that "price" and "brands" are always
+       * ranked at first and second position because their enable_dynamic_position
+       * values are false.
        * 
* * bool enable_dynamic_position = 4; @@ -6776,15 +6776,15 @@ public Builder setEnableDynamicPosition(boolean value) { *
        * Enables dynamic position for this facet. If set to true, the position of
        * this facet among all facets in the response is determined by Google
-       * Retail Search. It will be ordered together with dynamic facets if dynamic
+       * Retail Search. It is ordered together with dynamic facets if dynamic
        * facets is enabled. If set to false, the position of this facet in the
-       * response will be the same as in the request, and it will be ranked before
+       * response is the same as in the request, and it is ranked before
        * the facets with dynamic position enable and all dynamic facets.
        *
        * For example, you may always want to have rating facet returned in
        * the response, but it's not necessarily to always display the rating facet
        * at the top. In that case, you can set enable_dynamic_position to true so
-       * that the position of rating facet in response will be determined by
+       * that the position of rating facet in response is determined by
        * Google Retail Search.
        *
        * Another example, assuming you have the following facets in the request:
@@ -6795,13 +6795,13 @@ public Builder setEnableDynamicPosition(boolean value) {
        *
        * * "brands", enable_dynamic_position = false
        *
-       * And also you have a dynamic facets enable, which will generate a facet
-       * 'gender'. Then the final order of the facets in the response can be
+       * And also you have a dynamic facets enable, which generates a facet
+       * "gender". Then, the final order of the facets in the response can be
        * ("price", "brands", "rating", "gender") or ("price", "brands", "gender",
        * "rating") depends on how Google Retail Search orders "gender" and
-       * "rating" facets. However, notice that "price" and "brands" will always be
-       * ranked at 1st and 2nd position since their enable_dynamic_position are
-       * false.
+       * "rating" facets. However, notice that "price" and "brands" are always
+       * ranked at first and second position because their enable_dynamic_position
+       * values are false.
        * 
* * bool enable_dynamic_position = 4; @@ -12593,7 +12593,7 @@ public com.google.protobuf.Parser getParserForType() { * or the name of the legacy placement resource, such as * `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. * This field is used to identify the serving config name and the set - * of models that will be used to make the search. + * of models that are used to make the search. * * * string placement = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -12621,7 +12621,7 @@ public java.lang.String getPlacement() { * or the name of the legacy placement resource, such as * `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. * This field is used to identify the serving config name and the set - * of models that will be used to make the search. + * of models that are used to make the search. * * * string placement = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -13006,8 +13006,8 @@ public int getOffset() { *
    * The filter syntax consists of an expression language for constructing a
    * predicate from one or more fields of the products being filtered. Filter
-   * expression is case-sensitive. See more details at this [user
-   * guide](https://cloud.google.com/retail/docs/filter-and-order#filter).
+   * expression is case-sensitive. For more information, see
+   * [Filter](https://cloud.google.com/retail/docs/filter-and-order#filter).
    *
    * If this field is unrecognizable, an INVALID_ARGUMENT is returned.
    * 
@@ -13034,8 +13034,8 @@ public java.lang.String getFilter() { *
    * The filter syntax consists of an expression language for constructing a
    * predicate from one or more fields of the products being filtered. Filter
-   * expression is case-sensitive. See more details at this [user
-   * guide](https://cloud.google.com/retail/docs/filter-and-order#filter).
+   * expression is case-sensitive. For more information, see
+   * [Filter](https://cloud.google.com/retail/docs/filter-and-order#filter).
    *
    * If this field is unrecognizable, an INVALID_ARGUMENT is returned.
    * 
@@ -13069,15 +13069,14 @@ public com.google.protobuf.ByteString getFilterBytes() { * checking any filters on the search page. * * The filter applied to every search request when quality improvement such as - * query expansion is needed. For example, if a query does not have enough - * results, an expanded query with - * [SearchRequest.canonical_filter][google.cloud.retail.v2alpha.SearchRequest.canonical_filter] - * will be returned as a supplement of the original query. This field is - * strongly recommended to achieve high search quality. - * - * See - * [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter] - * for more details about filter syntax. + * query expansion is needed. In the case a query does not have a sufficient + * amount of results this filter will be used to determine whether or not to + * enable the query expansion flow. The original filter will still be used for + * the query expanded search. + * This field is strongly recommended to achieve high search quality. + * + * For more information about filter syntax, see + * [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter]. * * * string canonical_filter = 28; @@ -13104,15 +13103,14 @@ public java.lang.String getCanonicalFilter() { * checking any filters on the search page. * * The filter applied to every search request when quality improvement such as - * query expansion is needed. For example, if a query does not have enough - * results, an expanded query with - * [SearchRequest.canonical_filter][google.cloud.retail.v2alpha.SearchRequest.canonical_filter] - * will be returned as a supplement of the original query. This field is - * strongly recommended to achieve high search quality. - * - * See - * [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter] - * for more details about filter syntax. + * query expansion is needed. In the case a query does not have a sufficient + * amount of results this filter will be used to determine whether or not to + * enable the query expansion flow. The original filter will still be used for + * the query expanded search. + * This field is strongly recommended to achieve high search quality. + * + * For more information about filter syntax, see + * [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter]. * * * string canonical_filter = 28; @@ -13142,9 +13140,9 @@ public com.google.protobuf.ByteString getCanonicalFilterBytes() { *
    * The order in which products are returned. Products can be ordered by
    * a field in an [Product][google.cloud.retail.v2alpha.Product] object. Leave
-   * it unset if ordered by relevance. OrderBy expression is case-sensitive. See
-   * more details at this [user
-   * guide](https://cloud.google.com/retail/docs/filter-and-order#order).
+   * it unset if ordered by relevance. OrderBy expression is case-sensitive. For
+   * more information, see
+   * [Order](https://cloud.google.com/retail/docs/filter-and-order#order).
    *
    * If this field is unrecognizable, an INVALID_ARGUMENT is returned.
    * 
@@ -13171,9 +13169,9 @@ public java.lang.String getOrderBy() { *
    * The order in which products are returned. Products can be ordered by
    * a field in an [Product][google.cloud.retail.v2alpha.Product] object. Leave
-   * it unset if ordered by relevance. OrderBy expression is case-sensitive. See
-   * more details at this [user
-   * guide](https://cloud.google.com/retail/docs/filter-and-order#order).
+   * it unset if ordered by relevance. OrderBy expression is case-sensitive. For
+   * more information, see
+   * [Order](https://cloud.google.com/retail/docs/filter-and-order#order).
    *
    * If this field is unrecognizable, an INVALID_ARGUMENT is returned.
    * 
@@ -13301,7 +13299,7 @@ public com.google.cloud.retail.v2alpha.SearchRequest.FacetSpecOrBuilder getFacet *
* * @deprecated google.cloud.retail.v2alpha.SearchRequest.dynamic_facet_spec is deprecated. See - * google/cloud/retail/v2alpha/search_service.proto;l=622 + * google/cloud/retail/v2alpha/search_service.proto;l=621 * @return Whether the dynamicFacetSpec field is set. */ @java.lang.Override @@ -13325,7 +13323,7 @@ public boolean hasDynamicFacetSpec() { *
* * @deprecated google.cloud.retail.v2alpha.SearchRequest.dynamic_facet_spec is deprecated. See - * google/cloud/retail/v2alpha/search_service.proto;l=622 + * google/cloud/retail/v2alpha/search_service.proto;l=621 * @return The dynamicFacetSpec. */ @java.lang.Override @@ -13365,8 +13363,8 @@ public com.google.cloud.retail.v2alpha.SearchRequest.DynamicFacetSpec getDynamic * * *
-   * Boost specification to boost certain products. See more details at this
-   * [user guide](https://cloud.google.com/retail/docs/boosting).
+   * Boost specification to boost certain products. For more information, see
+   * [Boost results](https://cloud.google.com/retail/docs/boosting).
    *
    * Notice that if both
    * [ServingConfig.boost_control_ids][google.cloud.retail.v2alpha.ServingConfig.boost_control_ids]
@@ -13389,8 +13387,8 @@ public boolean hasBoostSpec() {
    *
    *
    * 
-   * Boost specification to boost certain products. See more details at this
-   * [user guide](https://cloud.google.com/retail/docs/boosting).
+   * Boost specification to boost certain products. For more information, see
+   * [Boost results](https://cloud.google.com/retail/docs/boosting).
    *
    * Notice that if both
    * [ServingConfig.boost_control_ids][google.cloud.retail.v2alpha.ServingConfig.boost_control_ids]
@@ -13415,8 +13413,8 @@ public com.google.cloud.retail.v2alpha.SearchRequest.BoostSpec getBoostSpec() {
    *
    *
    * 
-   * Boost specification to boost certain products. See more details at this
-   * [user guide](https://cloud.google.com/retail/docs/boosting).
+   * Boost specification to boost certain products. For more information, see
+   * [Boost results](https://cloud.google.com/retail/docs/boosting).
    *
    * Notice that if both
    * [ServingConfig.boost_control_ids][google.cloud.retail.v2alpha.ServingConfig.boost_control_ids]
@@ -13443,8 +13441,8 @@ public com.google.cloud.retail.v2alpha.SearchRequest.BoostSpecOrBuilder getBoost
    *
    * 
    * The query expansion specification that specifies the conditions under which
-   * query expansion will occur. See more details at this [user
-   * guide](https://cloud.google.com/retail/docs/result-size#query_expansion).
+   * query expansion occurs. For more information, see [Query
+   * expansion](https://cloud.google.com/retail/docs/result-size#query_expansion).
    * 
* * .google.cloud.retail.v2alpha.SearchRequest.QueryExpansionSpec query_expansion_spec = 14; @@ -13461,8 +13459,8 @@ public boolean hasQueryExpansionSpec() { * *
    * The query expansion specification that specifies the conditions under which
-   * query expansion will occur. See more details at this [user
-   * guide](https://cloud.google.com/retail/docs/result-size#query_expansion).
+   * query expansion occurs. For more information, see [Query
+   * expansion](https://cloud.google.com/retail/docs/result-size#query_expansion).
    * 
* * .google.cloud.retail.v2alpha.SearchRequest.QueryExpansionSpec query_expansion_spec = 14; @@ -13481,8 +13479,8 @@ public com.google.cloud.retail.v2alpha.SearchRequest.QueryExpansionSpec getQuery * *
    * The query expansion specification that specifies the conditions under which
-   * query expansion will occur. See more details at this [user
-   * guide](https://cloud.google.com/retail/docs/result-size#query_expansion).
+   * query expansion occurs. For more information, see [Query
+   * expansion](https://cloud.google.com/retail/docs/result-size#query_expansion).
    * 
* * .google.cloud.retail.v2alpha.SearchRequest.QueryExpansionSpec query_expansion_spec = 14; @@ -13507,8 +13505,8 @@ public com.google.cloud.retail.v2alpha.SearchRequest.QueryExpansionSpec getQuery * Defaults to * [RelevanceThreshold.HIGH][google.cloud.retail.v2alpha.SearchRequest.RelevanceThreshold.HIGH], * which means only the most relevant results are shown, and the least number - * of results are returned. See more details at this [user - * guide](https://cloud.google.com/retail/docs/result-size#relevance_thresholding). + * of results are returned. For more information, see [Adjust result + * size](https://cloud.google.com/retail/docs/result-size#relevance_thresholding). *
* * .google.cloud.retail.v2alpha.SearchRequest.RelevanceThreshold relevance_threshold = 15; @@ -13529,8 +13527,8 @@ public int getRelevanceThresholdValue() { * Defaults to * [RelevanceThreshold.HIGH][google.cloud.retail.v2alpha.SearchRequest.RelevanceThreshold.HIGH], * which means only the most relevant results are shown, and the least number - * of results are returned. See more details at this [user - * guide](https://cloud.google.com/retail/docs/result-size#relevance_thresholding). + * of results are returned. For more information, see [Adjust result + * size](https://cloud.google.com/retail/docs/result-size#relevance_thresholding). *
* * .google.cloud.retail.v2alpha.SearchRequest.RelevanceThreshold relevance_threshold = 15; @@ -14197,9 +14195,9 @@ public int getLabelsCount() { * key with multiple resources. * * Keys must start with a lowercase letter or international character. * - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. + * For more information, see [Requirements for + * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + * in the Resource Manager documentation. *
* * map<string, string> labels = 34; @@ -14235,9 +14233,9 @@ public java.util.Map getLabels() { * key with multiple resources. * * Keys must start with a lowercase letter or international character. * - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. + * For more information, see [Requirements for + * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + * in the Resource Manager documentation. * * * map<string, string> labels = 34; @@ -14264,9 +14262,9 @@ public java.util.Map getLabelsMap() { * key with multiple resources. * * Keys must start with a lowercase letter or international character. * - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. + * For more information, see [Requirements for + * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + * in the Resource Manager documentation. * * * map<string, string> labels = 34; @@ -14300,9 +14298,9 @@ public java.util.Map getLabelsMap() { * key with multiple resources. * * Keys must start with a lowercase letter or international character. * - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. + * For more information, see [Requirements for + * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + * in the Resource Manager documentation. * * * map<string, string> labels = 34; @@ -15515,7 +15513,7 @@ public Builder mergeFrom( * or the name of the legacy placement resource, such as * `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. * This field is used to identify the serving config name and the set - * of models that will be used to make the search. + * of models that are used to make the search. * * * string placement = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -15542,7 +15540,7 @@ public java.lang.String getPlacement() { * or the name of the legacy placement resource, such as * `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. * This field is used to identify the serving config name and the set - * of models that will be used to make the search. + * of models that are used to make the search. * * * string placement = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -15569,7 +15567,7 @@ public com.google.protobuf.ByteString getPlacementBytes() { * or the name of the legacy placement resource, such as * `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. * This field is used to identify the serving config name and the set - * of models that will be used to make the search. + * of models that are used to make the search. * * * string placement = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -15595,7 +15593,7 @@ public Builder setPlacement(java.lang.String value) { * or the name of the legacy placement resource, such as * `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. * This field is used to identify the serving config name and the set - * of models that will be used to make the search. + * of models that are used to make the search. * * * string placement = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -15617,7 +15615,7 @@ public Builder clearPlacement() { * or the name of the legacy placement resource, such as * `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. * This field is used to identify the serving config name and the set - * of models that will be used to make the search. + * of models that are used to make the search. * * * string placement = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -16526,8 +16524,8 @@ public Builder clearOffset() { *
      * The filter syntax consists of an expression language for constructing a
      * predicate from one or more fields of the products being filtered. Filter
-     * expression is case-sensitive. See more details at this [user
-     * guide](https://cloud.google.com/retail/docs/filter-and-order#filter).
+     * expression is case-sensitive. For more information, see
+     * [Filter](https://cloud.google.com/retail/docs/filter-and-order#filter).
      *
      * If this field is unrecognizable, an INVALID_ARGUMENT is returned.
      * 
@@ -16553,8 +16551,8 @@ public java.lang.String getFilter() { *
      * The filter syntax consists of an expression language for constructing a
      * predicate from one or more fields of the products being filtered. Filter
-     * expression is case-sensitive. See more details at this [user
-     * guide](https://cloud.google.com/retail/docs/filter-and-order#filter).
+     * expression is case-sensitive. For more information, see
+     * [Filter](https://cloud.google.com/retail/docs/filter-and-order#filter).
      *
      * If this field is unrecognizable, an INVALID_ARGUMENT is returned.
      * 
@@ -16580,8 +16578,8 @@ public com.google.protobuf.ByteString getFilterBytes() { *
      * The filter syntax consists of an expression language for constructing a
      * predicate from one or more fields of the products being filtered. Filter
-     * expression is case-sensitive. See more details at this [user
-     * guide](https://cloud.google.com/retail/docs/filter-and-order#filter).
+     * expression is case-sensitive. For more information, see
+     * [Filter](https://cloud.google.com/retail/docs/filter-and-order#filter).
      *
      * If this field is unrecognizable, an INVALID_ARGUMENT is returned.
      * 
@@ -16606,8 +16604,8 @@ public Builder setFilter(java.lang.String value) { *
      * The filter syntax consists of an expression language for constructing a
      * predicate from one or more fields of the products being filtered. Filter
-     * expression is case-sensitive. See more details at this [user
-     * guide](https://cloud.google.com/retail/docs/filter-and-order#filter).
+     * expression is case-sensitive. For more information, see
+     * [Filter](https://cloud.google.com/retail/docs/filter-and-order#filter).
      *
      * If this field is unrecognizable, an INVALID_ARGUMENT is returned.
      * 
@@ -16628,8 +16626,8 @@ public Builder clearFilter() { *
      * The filter syntax consists of an expression language for constructing a
      * predicate from one or more fields of the products being filtered. Filter
-     * expression is case-sensitive. See more details at this [user
-     * guide](https://cloud.google.com/retail/docs/filter-and-order#filter).
+     * expression is case-sensitive. For more information, see
+     * [Filter](https://cloud.google.com/retail/docs/filter-and-order#filter).
      *
      * If this field is unrecognizable, an INVALID_ARGUMENT is returned.
      * 
@@ -16659,15 +16657,14 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * checking any filters on the search page. * * The filter applied to every search request when quality improvement such as - * query expansion is needed. For example, if a query does not have enough - * results, an expanded query with - * [SearchRequest.canonical_filter][google.cloud.retail.v2alpha.SearchRequest.canonical_filter] - * will be returned as a supplement of the original query. This field is - * strongly recommended to achieve high search quality. - * - * See - * [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter] - * for more details about filter syntax. + * query expansion is needed. In the case a query does not have a sufficient + * amount of results this filter will be used to determine whether or not to + * enable the query expansion flow. The original filter will still be used for + * the query expanded search. + * This field is strongly recommended to achieve high search quality. + * + * For more information about filter syntax, see + * [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter]. * * * string canonical_filter = 28; @@ -16693,15 +16690,14 @@ public java.lang.String getCanonicalFilter() { * checking any filters on the search page. * * The filter applied to every search request when quality improvement such as - * query expansion is needed. For example, if a query does not have enough - * results, an expanded query with - * [SearchRequest.canonical_filter][google.cloud.retail.v2alpha.SearchRequest.canonical_filter] - * will be returned as a supplement of the original query. This field is - * strongly recommended to achieve high search quality. - * - * See - * [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter] - * for more details about filter syntax. + * query expansion is needed. In the case a query does not have a sufficient + * amount of results this filter will be used to determine whether or not to + * enable the query expansion flow. The original filter will still be used for + * the query expanded search. + * This field is strongly recommended to achieve high search quality. + * + * For more information about filter syntax, see + * [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter]. * * * string canonical_filter = 28; @@ -16727,15 +16723,14 @@ public com.google.protobuf.ByteString getCanonicalFilterBytes() { * checking any filters on the search page. * * The filter applied to every search request when quality improvement such as - * query expansion is needed. For example, if a query does not have enough - * results, an expanded query with - * [SearchRequest.canonical_filter][google.cloud.retail.v2alpha.SearchRequest.canonical_filter] - * will be returned as a supplement of the original query. This field is - * strongly recommended to achieve high search quality. - * - * See - * [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter] - * for more details about filter syntax. + * query expansion is needed. In the case a query does not have a sufficient + * amount of results this filter will be used to determine whether or not to + * enable the query expansion flow. The original filter will still be used for + * the query expanded search. + * This field is strongly recommended to achieve high search quality. + * + * For more information about filter syntax, see + * [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter]. * * * string canonical_filter = 28; @@ -16760,15 +16755,14 @@ public Builder setCanonicalFilter(java.lang.String value) { * checking any filters on the search page. * * The filter applied to every search request when quality improvement such as - * query expansion is needed. For example, if a query does not have enough - * results, an expanded query with - * [SearchRequest.canonical_filter][google.cloud.retail.v2alpha.SearchRequest.canonical_filter] - * will be returned as a supplement of the original query. This field is - * strongly recommended to achieve high search quality. - * - * See - * [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter] - * for more details about filter syntax. + * query expansion is needed. In the case a query does not have a sufficient + * amount of results this filter will be used to determine whether or not to + * enable the query expansion flow. The original filter will still be used for + * the query expanded search. + * This field is strongly recommended to achieve high search quality. + * + * For more information about filter syntax, see + * [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter]. * * * string canonical_filter = 28; @@ -16789,15 +16783,14 @@ public Builder clearCanonicalFilter() { * checking any filters on the search page. * * The filter applied to every search request when quality improvement such as - * query expansion is needed. For example, if a query does not have enough - * results, an expanded query with - * [SearchRequest.canonical_filter][google.cloud.retail.v2alpha.SearchRequest.canonical_filter] - * will be returned as a supplement of the original query. This field is - * strongly recommended to achieve high search quality. - * - * See - * [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter] - * for more details about filter syntax. + * query expansion is needed. In the case a query does not have a sufficient + * amount of results this filter will be used to determine whether or not to + * enable the query expansion flow. The original filter will still be used for + * the query expanded search. + * This field is strongly recommended to achieve high search quality. + * + * For more information about filter syntax, see + * [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter]. * * * string canonical_filter = 28; @@ -16823,9 +16816,9 @@ public Builder setCanonicalFilterBytes(com.google.protobuf.ByteString value) { *
      * The order in which products are returned. Products can be ordered by
      * a field in an [Product][google.cloud.retail.v2alpha.Product] object. Leave
-     * it unset if ordered by relevance. OrderBy expression is case-sensitive. See
-     * more details at this [user
-     * guide](https://cloud.google.com/retail/docs/filter-and-order#order).
+     * it unset if ordered by relevance. OrderBy expression is case-sensitive. For
+     * more information, see
+     * [Order](https://cloud.google.com/retail/docs/filter-and-order#order).
      *
      * If this field is unrecognizable, an INVALID_ARGUMENT is returned.
      * 
@@ -16851,9 +16844,9 @@ public java.lang.String getOrderBy() { *
      * The order in which products are returned. Products can be ordered by
      * a field in an [Product][google.cloud.retail.v2alpha.Product] object. Leave
-     * it unset if ordered by relevance. OrderBy expression is case-sensitive. See
-     * more details at this [user
-     * guide](https://cloud.google.com/retail/docs/filter-and-order#order).
+     * it unset if ordered by relevance. OrderBy expression is case-sensitive. For
+     * more information, see
+     * [Order](https://cloud.google.com/retail/docs/filter-and-order#order).
      *
      * If this field is unrecognizable, an INVALID_ARGUMENT is returned.
      * 
@@ -16879,9 +16872,9 @@ public com.google.protobuf.ByteString getOrderByBytes() { *
      * The order in which products are returned. Products can be ordered by
      * a field in an [Product][google.cloud.retail.v2alpha.Product] object. Leave
-     * it unset if ordered by relevance. OrderBy expression is case-sensitive. See
-     * more details at this [user
-     * guide](https://cloud.google.com/retail/docs/filter-and-order#order).
+     * it unset if ordered by relevance. OrderBy expression is case-sensitive. For
+     * more information, see
+     * [Order](https://cloud.google.com/retail/docs/filter-and-order#order).
      *
      * If this field is unrecognizable, an INVALID_ARGUMENT is returned.
      * 
@@ -16906,9 +16899,9 @@ public Builder setOrderBy(java.lang.String value) { *
      * The order in which products are returned. Products can be ordered by
      * a field in an [Product][google.cloud.retail.v2alpha.Product] object. Leave
-     * it unset if ordered by relevance. OrderBy expression is case-sensitive. See
-     * more details at this [user
-     * guide](https://cloud.google.com/retail/docs/filter-and-order#order).
+     * it unset if ordered by relevance. OrderBy expression is case-sensitive. For
+     * more information, see
+     * [Order](https://cloud.google.com/retail/docs/filter-and-order#order).
      *
      * If this field is unrecognizable, an INVALID_ARGUMENT is returned.
      * 
@@ -16929,9 +16922,9 @@ public Builder clearOrderBy() { *
      * The order in which products are returned. Products can be ordered by
      * a field in an [Product][google.cloud.retail.v2alpha.Product] object. Leave
-     * it unset if ordered by relevance. OrderBy expression is case-sensitive. See
-     * more details at this [user
-     * guide](https://cloud.google.com/retail/docs/filter-and-order#order).
+     * it unset if ordered by relevance. OrderBy expression is case-sensitive. For
+     * more information, see
+     * [Order](https://cloud.google.com/retail/docs/filter-and-order#order).
      *
      * If this field is unrecognizable, an INVALID_ARGUMENT is returned.
      * 
@@ -17391,7 +17384,7 @@ public com.google.cloud.retail.v2alpha.SearchRequest.FacetSpec.Builder addFacetS *
* * @deprecated google.cloud.retail.v2alpha.SearchRequest.dynamic_facet_spec is deprecated. See - * google/cloud/retail/v2alpha/search_service.proto;l=622 + * google/cloud/retail/v2alpha/search_service.proto;l=621 * @return Whether the dynamicFacetSpec field is set. */ @java.lang.Deprecated @@ -17414,7 +17407,7 @@ public boolean hasDynamicFacetSpec() { *
* * @deprecated google.cloud.retail.v2alpha.SearchRequest.dynamic_facet_spec is deprecated. See - * google/cloud/retail/v2alpha/search_service.proto;l=622 + * google/cloud/retail/v2alpha/search_service.proto;l=621 * @return The dynamicFacetSpec. */ @java.lang.Deprecated @@ -17637,8 +17630,8 @@ public Builder clearDynamicFacetSpec() { * * *
-     * Boost specification to boost certain products. See more details at this
-     * [user guide](https://cloud.google.com/retail/docs/boosting).
+     * Boost specification to boost certain products. For more information, see
+     * [Boost results](https://cloud.google.com/retail/docs/boosting).
      *
      * Notice that if both
      * [ServingConfig.boost_control_ids][google.cloud.retail.v2alpha.ServingConfig.boost_control_ids]
@@ -17660,8 +17653,8 @@ public boolean hasBoostSpec() {
      *
      *
      * 
-     * Boost specification to boost certain products. See more details at this
-     * [user guide](https://cloud.google.com/retail/docs/boosting).
+     * Boost specification to boost certain products. For more information, see
+     * [Boost results](https://cloud.google.com/retail/docs/boosting).
      *
      * Notice that if both
      * [ServingConfig.boost_control_ids][google.cloud.retail.v2alpha.ServingConfig.boost_control_ids]
@@ -17689,8 +17682,8 @@ public com.google.cloud.retail.v2alpha.SearchRequest.BoostSpec getBoostSpec() {
      *
      *
      * 
-     * Boost specification to boost certain products. See more details at this
-     * [user guide](https://cloud.google.com/retail/docs/boosting).
+     * Boost specification to boost certain products. For more information, see
+     * [Boost results](https://cloud.google.com/retail/docs/boosting).
      *
      * Notice that if both
      * [ServingConfig.boost_control_ids][google.cloud.retail.v2alpha.ServingConfig.boost_control_ids]
@@ -17720,8 +17713,8 @@ public Builder setBoostSpec(com.google.cloud.retail.v2alpha.SearchRequest.BoostS
      *
      *
      * 
-     * Boost specification to boost certain products. See more details at this
-     * [user guide](https://cloud.google.com/retail/docs/boosting).
+     * Boost specification to boost certain products. For more information, see
+     * [Boost results](https://cloud.google.com/retail/docs/boosting).
      *
      * Notice that if both
      * [ServingConfig.boost_control_ids][google.cloud.retail.v2alpha.ServingConfig.boost_control_ids]
@@ -17749,8 +17742,8 @@ public Builder setBoostSpec(
      *
      *
      * 
-     * Boost specification to boost certain products. See more details at this
-     * [user guide](https://cloud.google.com/retail/docs/boosting).
+     * Boost specification to boost certain products. For more information, see
+     * [Boost results](https://cloud.google.com/retail/docs/boosting).
      *
      * Notice that if both
      * [ServingConfig.boost_control_ids][google.cloud.retail.v2alpha.ServingConfig.boost_control_ids]
@@ -17786,8 +17779,8 @@ public Builder mergeBoostSpec(com.google.cloud.retail.v2alpha.SearchRequest.Boos
      *
      *
      * 
-     * Boost specification to boost certain products. See more details at this
-     * [user guide](https://cloud.google.com/retail/docs/boosting).
+     * Boost specification to boost certain products. For more information, see
+     * [Boost results](https://cloud.google.com/retail/docs/boosting).
      *
      * Notice that if both
      * [ServingConfig.boost_control_ids][google.cloud.retail.v2alpha.ServingConfig.boost_control_ids]
@@ -17814,8 +17807,8 @@ public Builder clearBoostSpec() {
      *
      *
      * 
-     * Boost specification to boost certain products. See more details at this
-     * [user guide](https://cloud.google.com/retail/docs/boosting).
+     * Boost specification to boost certain products. For more information, see
+     * [Boost results](https://cloud.google.com/retail/docs/boosting).
      *
      * Notice that if both
      * [ServingConfig.boost_control_ids][google.cloud.retail.v2alpha.ServingConfig.boost_control_ids]
@@ -17837,8 +17830,8 @@ public com.google.cloud.retail.v2alpha.SearchRequest.BoostSpec.Builder getBoostS
      *
      *
      * 
-     * Boost specification to boost certain products. See more details at this
-     * [user guide](https://cloud.google.com/retail/docs/boosting).
+     * Boost specification to boost certain products. For more information, see
+     * [Boost results](https://cloud.google.com/retail/docs/boosting).
      *
      * Notice that if both
      * [ServingConfig.boost_control_ids][google.cloud.retail.v2alpha.ServingConfig.boost_control_ids]
@@ -17865,8 +17858,8 @@ public com.google.cloud.retail.v2alpha.SearchRequest.BoostSpec.Builder getBoostS
      *
      *
      * 
-     * Boost specification to boost certain products. See more details at this
-     * [user guide](https://cloud.google.com/retail/docs/boosting).
+     * Boost specification to boost certain products. For more information, see
+     * [Boost results](https://cloud.google.com/retail/docs/boosting).
      *
      * Notice that if both
      * [ServingConfig.boost_control_ids][google.cloud.retail.v2alpha.ServingConfig.boost_control_ids]
@@ -17907,8 +17900,8 @@ public com.google.cloud.retail.v2alpha.SearchRequest.BoostSpec.Builder getBoostS
      *
      * 
      * The query expansion specification that specifies the conditions under which
-     * query expansion will occur. See more details at this [user
-     * guide](https://cloud.google.com/retail/docs/result-size#query_expansion).
+     * query expansion occurs. For more information, see [Query
+     * expansion](https://cloud.google.com/retail/docs/result-size#query_expansion).
      * 
* * @@ -17925,8 +17918,8 @@ public boolean hasQueryExpansionSpec() { * *
      * The query expansion specification that specifies the conditions under which
-     * query expansion will occur. See more details at this [user
-     * guide](https://cloud.google.com/retail/docs/result-size#query_expansion).
+     * query expansion occurs. For more information, see [Query
+     * expansion](https://cloud.google.com/retail/docs/result-size#query_expansion).
      * 
* * @@ -17950,8 +17943,8 @@ public boolean hasQueryExpansionSpec() { * *
      * The query expansion specification that specifies the conditions under which
-     * query expansion will occur. See more details at this [user
-     * guide](https://cloud.google.com/retail/docs/result-size#query_expansion).
+     * query expansion occurs. For more information, see [Query
+     * expansion](https://cloud.google.com/retail/docs/result-size#query_expansion).
      * 
* * @@ -17977,8 +17970,8 @@ public Builder setQueryExpansionSpec( * *
      * The query expansion specification that specifies the conditions under which
-     * query expansion will occur. See more details at this [user
-     * guide](https://cloud.google.com/retail/docs/result-size#query_expansion).
+     * query expansion occurs. For more information, see [Query
+     * expansion](https://cloud.google.com/retail/docs/result-size#query_expansion).
      * 
* * @@ -18001,8 +17994,8 @@ public Builder setQueryExpansionSpec( * *
      * The query expansion specification that specifies the conditions under which
-     * query expansion will occur. See more details at this [user
-     * guide](https://cloud.google.com/retail/docs/result-size#query_expansion).
+     * query expansion occurs. For more information, see [Query
+     * expansion](https://cloud.google.com/retail/docs/result-size#query_expansion).
      * 
* * @@ -18035,8 +18028,8 @@ public Builder mergeQueryExpansionSpec( * *
      * The query expansion specification that specifies the conditions under which
-     * query expansion will occur. See more details at this [user
-     * guide](https://cloud.google.com/retail/docs/result-size#query_expansion).
+     * query expansion occurs. For more information, see [Query
+     * expansion](https://cloud.google.com/retail/docs/result-size#query_expansion).
      * 
* * @@ -18058,8 +18051,8 @@ public Builder clearQueryExpansionSpec() { * *
      * The query expansion specification that specifies the conditions under which
-     * query expansion will occur. See more details at this [user
-     * guide](https://cloud.google.com/retail/docs/result-size#query_expansion).
+     * query expansion occurs. For more information, see [Query
+     * expansion](https://cloud.google.com/retail/docs/result-size#query_expansion).
      * 
* * @@ -18077,8 +18070,8 @@ public Builder clearQueryExpansionSpec() { * *
      * The query expansion specification that specifies the conditions under which
-     * query expansion will occur. See more details at this [user
-     * guide](https://cloud.google.com/retail/docs/result-size#query_expansion).
+     * query expansion occurs. For more information, see [Query
+     * expansion](https://cloud.google.com/retail/docs/result-size#query_expansion).
      * 
* * @@ -18100,8 +18093,8 @@ public Builder clearQueryExpansionSpec() { * *
      * The query expansion specification that specifies the conditions under which
-     * query expansion will occur. See more details at this [user
-     * guide](https://cloud.google.com/retail/docs/result-size#query_expansion).
+     * query expansion occurs. For more information, see [Query
+     * expansion](https://cloud.google.com/retail/docs/result-size#query_expansion).
      * 
* * @@ -18135,8 +18128,8 @@ public Builder clearQueryExpansionSpec() { * Defaults to * [RelevanceThreshold.HIGH][google.cloud.retail.v2alpha.SearchRequest.RelevanceThreshold.HIGH], * which means only the most relevant results are shown, and the least number - * of results are returned. See more details at this [user - * guide](https://cloud.google.com/retail/docs/result-size#relevance_thresholding). + * of results are returned. For more information, see [Adjust result + * size](https://cloud.google.com/retail/docs/result-size#relevance_thresholding). *
* * .google.cloud.retail.v2alpha.SearchRequest.RelevanceThreshold relevance_threshold = 15; @@ -18157,8 +18150,8 @@ public int getRelevanceThresholdValue() { * Defaults to * [RelevanceThreshold.HIGH][google.cloud.retail.v2alpha.SearchRequest.RelevanceThreshold.HIGH], * which means only the most relevant results are shown, and the least number - * of results are returned. See more details at this [user - * guide](https://cloud.google.com/retail/docs/result-size#relevance_thresholding). + * of results are returned. For more information, see [Adjust result + * size](https://cloud.google.com/retail/docs/result-size#relevance_thresholding). *
* * .google.cloud.retail.v2alpha.SearchRequest.RelevanceThreshold relevance_threshold = 15; @@ -18182,8 +18175,8 @@ public Builder setRelevanceThresholdValue(int value) { * Defaults to * [RelevanceThreshold.HIGH][google.cloud.retail.v2alpha.SearchRequest.RelevanceThreshold.HIGH], * which means only the most relevant results are shown, and the least number - * of results are returned. See more details at this [user - * guide](https://cloud.google.com/retail/docs/result-size#relevance_thresholding). + * of results are returned. For more information, see [Adjust result + * size](https://cloud.google.com/retail/docs/result-size#relevance_thresholding). *
* * .google.cloud.retail.v2alpha.SearchRequest.RelevanceThreshold relevance_threshold = 15; @@ -18210,8 +18203,8 @@ public Builder setRelevanceThresholdValue(int value) { * Defaults to * [RelevanceThreshold.HIGH][google.cloud.retail.v2alpha.SearchRequest.RelevanceThreshold.HIGH], * which means only the most relevant results are shown, and the least number - * of results are returned. See more details at this [user - * guide](https://cloud.google.com/retail/docs/result-size#relevance_thresholding). + * of results are returned. For more information, see [Adjust result + * size](https://cloud.google.com/retail/docs/result-size#relevance_thresholding). *
* * .google.cloud.retail.v2alpha.SearchRequest.RelevanceThreshold relevance_threshold = 15; @@ -18239,8 +18232,8 @@ public Builder setRelevanceThreshold( * Defaults to * [RelevanceThreshold.HIGH][google.cloud.retail.v2alpha.SearchRequest.RelevanceThreshold.HIGH], * which means only the most relevant results are shown, and the least number - * of results are returned. See more details at this [user - * guide](https://cloud.google.com/retail/docs/result-size#relevance_thresholding). + * of results are returned. For more information, see [Adjust result + * size](https://cloud.google.com/retail/docs/result-size#relevance_thresholding). *
* * .google.cloud.retail.v2alpha.SearchRequest.RelevanceThreshold relevance_threshold = 15; @@ -19836,9 +19829,9 @@ public int getLabelsCount() { * key with multiple resources. * * Keys must start with a lowercase letter or international character. * - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. + * For more information, see [Requirements for + * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + * in the Resource Manager documentation. *
* * map<string, string> labels = 34; @@ -19874,9 +19867,9 @@ public java.util.Map getLabels() { * key with multiple resources. * * Keys must start with a lowercase letter or international character. * - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. + * For more information, see [Requirements for + * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + * in the Resource Manager documentation. *
* * map<string, string> labels = 34; @@ -19903,9 +19896,9 @@ public java.util.Map getLabelsMap() { * key with multiple resources. * * Keys must start with a lowercase letter or international character. * - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. + * For more information, see [Requirements for + * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + * in the Resource Manager documentation. *
* * map<string, string> labels = 34; @@ -19939,9 +19932,9 @@ public java.util.Map getLabelsMap() { * key with multiple resources. * * Keys must start with a lowercase letter or international character. * - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. + * For more information, see [Requirements for + * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + * in the Resource Manager documentation. *
* * map<string, string> labels = 34; @@ -19981,9 +19974,9 @@ public Builder clearLabels() { * key with multiple resources. * * Keys must start with a lowercase letter or international character. * - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. + * For more information, see [Requirements for + * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + * in the Resource Manager documentation. * * * map<string, string> labels = 34; @@ -20019,9 +20012,9 @@ public java.util.Map getMutableLabels() { * key with multiple resources. * * Keys must start with a lowercase letter or international character. * - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. + * For more information, see [Requirements for + * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + * in the Resource Manager documentation. * * * map<string, string> labels = 34; @@ -20055,9 +20048,9 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { * key with multiple resources. * * Keys must start with a lowercase letter or international character. * - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. + * For more information, see [Requirements for + * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + * in the Resource Manager documentation. * * * map<string, string> labels = 34; diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/SearchRequestOrBuilder.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/SearchRequestOrBuilder.java index cf7301b24f25..6c6b20f22d72 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/SearchRequestOrBuilder.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/SearchRequestOrBuilder.java @@ -33,7 +33,7 @@ public interface SearchRequestOrBuilder * or the name of the legacy placement resource, such as * `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. * This field is used to identify the serving config name and the set - * of models that will be used to make the search. + * of models that are used to make the search. * * * string placement = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -50,7 +50,7 @@ public interface SearchRequestOrBuilder * or the name of the legacy placement resource, such as * `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. * This field is used to identify the serving config name and the set - * of models that will be used to make the search. + * of models that are used to make the search. * * * string placement = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -291,8 +291,8 @@ public interface SearchRequestOrBuilder *
    * The filter syntax consists of an expression language for constructing a
    * predicate from one or more fields of the products being filtered. Filter
-   * expression is case-sensitive. See more details at this [user
-   * guide](https://cloud.google.com/retail/docs/filter-and-order#filter).
+   * expression is case-sensitive. For more information, see
+   * [Filter](https://cloud.google.com/retail/docs/filter-and-order#filter).
    *
    * If this field is unrecognizable, an INVALID_ARGUMENT is returned.
    * 
@@ -308,8 +308,8 @@ public interface SearchRequestOrBuilder *
    * The filter syntax consists of an expression language for constructing a
    * predicate from one or more fields of the products being filtered. Filter
-   * expression is case-sensitive. See more details at this [user
-   * guide](https://cloud.google.com/retail/docs/filter-and-order#filter).
+   * expression is case-sensitive. For more information, see
+   * [Filter](https://cloud.google.com/retail/docs/filter-and-order#filter).
    *
    * If this field is unrecognizable, an INVALID_ARGUMENT is returned.
    * 
@@ -328,15 +328,14 @@ public interface SearchRequestOrBuilder * checking any filters on the search page. * * The filter applied to every search request when quality improvement such as - * query expansion is needed. For example, if a query does not have enough - * results, an expanded query with - * [SearchRequest.canonical_filter][google.cloud.retail.v2alpha.SearchRequest.canonical_filter] - * will be returned as a supplement of the original query. This field is - * strongly recommended to achieve high search quality. - * - * See - * [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter] - * for more details about filter syntax. + * query expansion is needed. In the case a query does not have a sufficient + * amount of results this filter will be used to determine whether or not to + * enable the query expansion flow. The original filter will still be used for + * the query expanded search. + * This field is strongly recommended to achieve high search quality. + * + * For more information about filter syntax, see + * [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter]. * * * string canonical_filter = 28; @@ -352,15 +351,14 @@ public interface SearchRequestOrBuilder * checking any filters on the search page. * * The filter applied to every search request when quality improvement such as - * query expansion is needed. For example, if a query does not have enough - * results, an expanded query with - * [SearchRequest.canonical_filter][google.cloud.retail.v2alpha.SearchRequest.canonical_filter] - * will be returned as a supplement of the original query. This field is - * strongly recommended to achieve high search quality. - * - * See - * [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter] - * for more details about filter syntax. + * query expansion is needed. In the case a query does not have a sufficient + * amount of results this filter will be used to determine whether or not to + * enable the query expansion flow. The original filter will still be used for + * the query expanded search. + * This field is strongly recommended to achieve high search quality. + * + * For more information about filter syntax, see + * [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter]. * * * string canonical_filter = 28; @@ -375,9 +373,9 @@ public interface SearchRequestOrBuilder *
    * The order in which products are returned. Products can be ordered by
    * a field in an [Product][google.cloud.retail.v2alpha.Product] object. Leave
-   * it unset if ordered by relevance. OrderBy expression is case-sensitive. See
-   * more details at this [user
-   * guide](https://cloud.google.com/retail/docs/filter-and-order#order).
+   * it unset if ordered by relevance. OrderBy expression is case-sensitive. For
+   * more information, see
+   * [Order](https://cloud.google.com/retail/docs/filter-and-order#order).
    *
    * If this field is unrecognizable, an INVALID_ARGUMENT is returned.
    * 
@@ -393,9 +391,9 @@ public interface SearchRequestOrBuilder *
    * The order in which products are returned. Products can be ordered by
    * a field in an [Product][google.cloud.retail.v2alpha.Product] object. Leave
-   * it unset if ordered by relevance. OrderBy expression is case-sensitive. See
-   * more details at this [user
-   * guide](https://cloud.google.com/retail/docs/filter-and-order#order).
+   * it unset if ordered by relevance. OrderBy expression is case-sensitive. For
+   * more information, see
+   * [Order](https://cloud.google.com/retail/docs/filter-and-order#order).
    *
    * If this field is unrecognizable, an INVALID_ARGUMENT is returned.
    * 
@@ -490,7 +488,7 @@ com.google.cloud.retail.v2alpha.SearchRequest.FacetSpecOrBuilder getFacetSpecsOr *
* * @deprecated google.cloud.retail.v2alpha.SearchRequest.dynamic_facet_spec is deprecated. See - * google/cloud/retail/v2alpha/search_service.proto;l=622 + * google/cloud/retail/v2alpha/search_service.proto;l=621 * @return Whether the dynamicFacetSpec field is set. */ @java.lang.Deprecated @@ -511,7 +509,7 @@ com.google.cloud.retail.v2alpha.SearchRequest.FacetSpecOrBuilder getFacetSpecsOr *
* * @deprecated google.cloud.retail.v2alpha.SearchRequest.dynamic_facet_spec is deprecated. See - * google/cloud/retail/v2alpha/search_service.proto;l=622 + * google/cloud/retail/v2alpha/search_service.proto;l=621 * @return The dynamicFacetSpec. */ @java.lang.Deprecated @@ -539,8 +537,8 @@ com.google.cloud.retail.v2alpha.SearchRequest.FacetSpecOrBuilder getFacetSpecsOr * * *
-   * Boost specification to boost certain products. See more details at this
-   * [user guide](https://cloud.google.com/retail/docs/boosting).
+   * Boost specification to boost certain products. For more information, see
+   * [Boost results](https://cloud.google.com/retail/docs/boosting).
    *
    * Notice that if both
    * [ServingConfig.boost_control_ids][google.cloud.retail.v2alpha.ServingConfig.boost_control_ids]
@@ -560,8 +558,8 @@ com.google.cloud.retail.v2alpha.SearchRequest.FacetSpecOrBuilder getFacetSpecsOr
    *
    *
    * 
-   * Boost specification to boost certain products. See more details at this
-   * [user guide](https://cloud.google.com/retail/docs/boosting).
+   * Boost specification to boost certain products. For more information, see
+   * [Boost results](https://cloud.google.com/retail/docs/boosting).
    *
    * Notice that if both
    * [ServingConfig.boost_control_ids][google.cloud.retail.v2alpha.ServingConfig.boost_control_ids]
@@ -581,8 +579,8 @@ com.google.cloud.retail.v2alpha.SearchRequest.FacetSpecOrBuilder getFacetSpecsOr
    *
    *
    * 
-   * Boost specification to boost certain products. See more details at this
-   * [user guide](https://cloud.google.com/retail/docs/boosting).
+   * Boost specification to boost certain products. For more information, see
+   * [Boost results](https://cloud.google.com/retail/docs/boosting).
    *
    * Notice that if both
    * [ServingConfig.boost_control_ids][google.cloud.retail.v2alpha.ServingConfig.boost_control_ids]
@@ -602,8 +600,8 @@ com.google.cloud.retail.v2alpha.SearchRequest.FacetSpecOrBuilder getFacetSpecsOr
    *
    * 
    * The query expansion specification that specifies the conditions under which
-   * query expansion will occur. See more details at this [user
-   * guide](https://cloud.google.com/retail/docs/result-size#query_expansion).
+   * query expansion occurs. For more information, see [Query
+   * expansion](https://cloud.google.com/retail/docs/result-size#query_expansion).
    * 
* * .google.cloud.retail.v2alpha.SearchRequest.QueryExpansionSpec query_expansion_spec = 14; @@ -617,8 +615,8 @@ com.google.cloud.retail.v2alpha.SearchRequest.FacetSpecOrBuilder getFacetSpecsOr * *
    * The query expansion specification that specifies the conditions under which
-   * query expansion will occur. See more details at this [user
-   * guide](https://cloud.google.com/retail/docs/result-size#query_expansion).
+   * query expansion occurs. For more information, see [Query
+   * expansion](https://cloud.google.com/retail/docs/result-size#query_expansion).
    * 
* * .google.cloud.retail.v2alpha.SearchRequest.QueryExpansionSpec query_expansion_spec = 14; @@ -632,8 +630,8 @@ com.google.cloud.retail.v2alpha.SearchRequest.FacetSpecOrBuilder getFacetSpecsOr * *
    * The query expansion specification that specifies the conditions under which
-   * query expansion will occur. See more details at this [user
-   * guide](https://cloud.google.com/retail/docs/result-size#query_expansion).
+   * query expansion occurs. For more information, see [Query
+   * expansion](https://cloud.google.com/retail/docs/result-size#query_expansion).
    * 
* * .google.cloud.retail.v2alpha.SearchRequest.QueryExpansionSpec query_expansion_spec = 14; @@ -651,8 +649,8 @@ com.google.cloud.retail.v2alpha.SearchRequest.FacetSpecOrBuilder getFacetSpecsOr * Defaults to * [RelevanceThreshold.HIGH][google.cloud.retail.v2alpha.SearchRequest.RelevanceThreshold.HIGH], * which means only the most relevant results are shown, and the least number - * of results are returned. See more details at this [user - * guide](https://cloud.google.com/retail/docs/result-size#relevance_thresholding). + * of results are returned. For more information, see [Adjust result + * size](https://cloud.google.com/retail/docs/result-size#relevance_thresholding). *
* * .google.cloud.retail.v2alpha.SearchRequest.RelevanceThreshold relevance_threshold = 15; @@ -670,8 +668,8 @@ com.google.cloud.retail.v2alpha.SearchRequest.FacetSpecOrBuilder getFacetSpecsOr * Defaults to * [RelevanceThreshold.HIGH][google.cloud.retail.v2alpha.SearchRequest.RelevanceThreshold.HIGH], * which means only the most relevant results are shown, and the least number - * of results are returned. See more details at this [user - * guide](https://cloud.google.com/retail/docs/result-size#relevance_thresholding). + * of results are returned. For more information, see [Adjust result + * size](https://cloud.google.com/retail/docs/result-size#relevance_thresholding). *
* * .google.cloud.retail.v2alpha.SearchRequest.RelevanceThreshold relevance_threshold = 15; @@ -1250,9 +1248,9 @@ com.google.cloud.retail.v2alpha.SearchRequest.FacetSpecOrBuilder getFacetSpecsOr * key with multiple resources. * * Keys must start with a lowercase letter or international character. * - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. + * For more information, see [Requirements for + * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + * in the Resource Manager documentation. *
* * map<string, string> labels = 34; @@ -1276,9 +1274,9 @@ com.google.cloud.retail.v2alpha.SearchRequest.FacetSpecOrBuilder getFacetSpecsOr * key with multiple resources. * * Keys must start with a lowercase letter or international character. * - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. + * For more information, see [Requirements for + * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + * in the Resource Manager documentation. * * * map<string, string> labels = 34; @@ -1305,9 +1303,9 @@ com.google.cloud.retail.v2alpha.SearchRequest.FacetSpecOrBuilder getFacetSpecsOr * key with multiple resources. * * Keys must start with a lowercase letter or international character. * - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. + * For more information, see [Requirements for + * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + * in the Resource Manager documentation. * * * map<string, string> labels = 34; @@ -1331,9 +1329,9 @@ com.google.cloud.retail.v2alpha.SearchRequest.FacetSpecOrBuilder getFacetSpecsOr * key with multiple resources. * * Keys must start with a lowercase letter or international character. * - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. + * For more information, see [Requirements for + * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + * in the Resource Manager documentation. * * * map<string, string> labels = 34; @@ -1361,9 +1359,9 @@ java.lang.String getLabelsOrDefault( * key with multiple resources. * * Keys must start with a lowercase letter or international character. * - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. + * For more information, see [Requirements for + * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + * in the Resource Manager documentation. * * * map<string, string> labels = 34; diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ServingConfig.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ServingConfig.java index f1219713ff2e..0cbe1ac02249 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ServingConfig.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ServingConfig.java @@ -1693,6 +1693,25 @@ public com.google.protobuf.ByteString getEnableCategoryFilterLevelBytes() { } } + public static final int IGNORE_RECS_DENYLIST_FIELD_NUMBER = 24; + private boolean ignoreRecsDenylist_ = false; + /** + * + * + *
+   * When the flag is enabled, the products in the denylist will not be filtered
+   * out in the recommendation filtering results.
+   * 
+ * + * bool ignore_recs_denylist = 24; + * + * @return The ignoreRecsDenylist. + */ + @java.lang.Override + public boolean getIgnoreRecsDenylist() { + return ignoreRecsDenylist_; + } + public static final int PERSONALIZATION_SPEC_FIELD_NUMBER = 21; private com.google.cloud.retail.v2alpha.SearchRequest.PersonalizationSpec personalizationSpec_; /** @@ -1987,6 +2006,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(21, getPersonalizationSpec()); } + if (ignoreRecsDenylist_ != false) { + output.writeBool(24, ignoreRecsDenylist_); + } getUnknownFields().writeTo(output); } @@ -2112,6 +2134,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getPersonalizationSpec()); } + if (ignoreRecsDenylist_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(24, ignoreRecsDenylist_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2151,6 +2176,7 @@ public boolean equals(final java.lang.Object obj) { if (!getDiversityLevel().equals(other.getDiversityLevel())) return false; if (diversityType_ != other.diversityType_) return false; if (!getEnableCategoryFilterLevel().equals(other.getEnableCategoryFilterLevel())) return false; + if (getIgnoreRecsDenylist() != other.getIgnoreRecsDenylist()) return false; if (hasPersonalizationSpec() != other.hasPersonalizationSpec()) return false; if (hasPersonalizationSpec()) { if (!getPersonalizationSpec().equals(other.getPersonalizationSpec())) return false; @@ -2221,6 +2247,8 @@ public int hashCode() { hash = (53 * hash) + diversityType_; hash = (37 * hash) + ENABLE_CATEGORY_FILTER_LEVEL_FIELD_NUMBER; hash = (53 * hash) + getEnableCategoryFilterLevel().hashCode(); + hash = (37 * hash) + IGNORE_RECS_DENYLIST_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIgnoreRecsDenylist()); if (hasPersonalizationSpec()) { hash = (37 * hash) + PERSONALIZATION_SPEC_FIELD_NUMBER; hash = (53 * hash) + getPersonalizationSpec().hashCode(); @@ -2400,13 +2428,14 @@ public Builder clear() { diversityLevel_ = ""; diversityType_ = 0; enableCategoryFilterLevel_ = ""; + ignoreRecsDenylist_ = false; personalizationSpec_ = null; if (personalizationSpecBuilder_ != null) { personalizationSpecBuilder_.dispose(); personalizationSpecBuilder_ = null; } solutionTypes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); return this; } @@ -2443,9 +2472,9 @@ public com.google.cloud.retail.v2alpha.ServingConfig buildPartial() { } private void buildPartialRepeatedFields(com.google.cloud.retail.v2alpha.ServingConfig result) { - if (((bitField0_ & 0x00040000) != 0)) { + if (((bitField0_ & 0x00080000) != 0)) { solutionTypes_ = java.util.Collections.unmodifiableList(solutionTypes_); - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); } result.solutionTypes_ = solutionTypes_; } @@ -2516,6 +2545,9 @@ private void buildPartial0(com.google.cloud.retail.v2alpha.ServingConfig result) result.enableCategoryFilterLevel_ = enableCategoryFilterLevel_; } if (((from_bitField0_ & 0x00020000) != 0)) { + result.ignoreRecsDenylist_ = ignoreRecsDenylist_; + } + if (((from_bitField0_ & 0x00040000) != 0)) { result.personalizationSpec_ = personalizationSpecBuilder_ == null ? personalizationSpec_ @@ -2696,13 +2728,16 @@ public Builder mergeFrom(com.google.cloud.retail.v2alpha.ServingConfig other) { bitField0_ |= 0x00010000; onChanged(); } + if (other.getIgnoreRecsDenylist() != false) { + setIgnoreRecsDenylist(other.getIgnoreRecsDenylist()); + } if (other.hasPersonalizationSpec()) { mergePersonalizationSpec(other.getPersonalizationSpec()); } if (!other.solutionTypes_.isEmpty()) { if (solutionTypes_.isEmpty()) { solutionTypes_ = other.solutionTypes_; - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); } else { ensureSolutionTypesIsMutable(); solutionTypes_.addAll(other.solutionTypes_); @@ -2870,9 +2905,15 @@ public Builder mergeFrom( { input.readMessage( getPersonalizationSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; break; } // case 170 + case 192: + { + ignoreRecsDenylist_ = input.readBool(); + bitField0_ |= 0x00020000; + break; + } // case 192 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -6522,6 +6563,62 @@ public Builder setEnableCategoryFilterLevelBytes(com.google.protobuf.ByteString return this; } + private boolean ignoreRecsDenylist_; + /** + * + * + *
+     * When the flag is enabled, the products in the denylist will not be filtered
+     * out in the recommendation filtering results.
+     * 
+ * + * bool ignore_recs_denylist = 24; + * + * @return The ignoreRecsDenylist. + */ + @java.lang.Override + public boolean getIgnoreRecsDenylist() { + return ignoreRecsDenylist_; + } + /** + * + * + *
+     * When the flag is enabled, the products in the denylist will not be filtered
+     * out in the recommendation filtering results.
+     * 
+ * + * bool ignore_recs_denylist = 24; + * + * @param value The ignoreRecsDenylist to set. + * @return This builder for chaining. + */ + public Builder setIgnoreRecsDenylist(boolean value) { + + ignoreRecsDenylist_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + * + * + *
+     * When the flag is enabled, the products in the denylist will not be filtered
+     * out in the recommendation filtering results.
+     * 
+ * + * bool ignore_recs_denylist = 24; + * + * @return This builder for chaining. + */ + public Builder clearIgnoreRecsDenylist() { + bitField0_ = (bitField0_ & ~0x00020000); + ignoreRecsDenylist_ = false; + onChanged(); + return this; + } + private com.google.cloud.retail.v2alpha.SearchRequest.PersonalizationSpec personalizationSpec_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.retail.v2alpha.SearchRequest.PersonalizationSpec, @@ -6556,7 +6653,7 @@ public Builder setEnableCategoryFilterLevelBytes(com.google.protobuf.ByteString * @return Whether the personalizationSpec field is set. */ public boolean hasPersonalizationSpec() { - return ((bitField0_ & 0x00020000) != 0); + return ((bitField0_ & 0x00040000) != 0); } /** * @@ -6630,7 +6727,7 @@ public Builder setPersonalizationSpec( } else { personalizationSpecBuilder_.setMessage(value); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -6666,7 +6763,7 @@ public Builder setPersonalizationSpec( } else { personalizationSpecBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -6698,7 +6795,7 @@ public Builder setPersonalizationSpec( public Builder mergePersonalizationSpec( com.google.cloud.retail.v2alpha.SearchRequest.PersonalizationSpec value) { if (personalizationSpecBuilder_ == null) { - if (((bitField0_ & 0x00020000) != 0) + if (((bitField0_ & 0x00040000) != 0) && personalizationSpec_ != null && personalizationSpec_ != com.google.cloud.retail.v2alpha.SearchRequest.PersonalizationSpec @@ -6711,7 +6808,7 @@ public Builder mergePersonalizationSpec( personalizationSpecBuilder_.mergeFrom(value); } if (personalizationSpec_ != null) { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); } return this; @@ -6742,7 +6839,7 @@ public Builder mergePersonalizationSpec( *
*/ public Builder clearPersonalizationSpec() { - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); personalizationSpec_ = null; if (personalizationSpecBuilder_ != null) { personalizationSpecBuilder_.dispose(); @@ -6778,7 +6875,7 @@ public Builder clearPersonalizationSpec() { */ public com.google.cloud.retail.v2alpha.SearchRequest.PersonalizationSpec.Builder getPersonalizationSpecBuilder() { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return getPersonalizationSpecFieldBuilder().getBuilder(); } @@ -6862,9 +6959,9 @@ public Builder clearPersonalizationSpec() { private java.util.List solutionTypes_ = java.util.Collections.emptyList(); private void ensureSolutionTypesIsMutable() { - if (!((bitField0_ & 0x00040000) != 0)) { + if (!((bitField0_ & 0x00080000) != 0)) { solutionTypes_ = new java.util.ArrayList(solutionTypes_); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; } } /** @@ -7010,7 +7107,7 @@ public Builder addAllSolutionTypes( */ public Builder clearSolutionTypes() { solutionTypes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); onChanged(); return this; } diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ServingConfigOrBuilder.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ServingConfigOrBuilder.java index b1820080cd98..898d43b1d3fc 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ServingConfigOrBuilder.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ServingConfigOrBuilder.java @@ -1179,6 +1179,20 @@ public interface ServingConfigOrBuilder */ com.google.protobuf.ByteString getEnableCategoryFilterLevelBytes(); + /** + * + * + *
+   * When the flag is enabled, the products in the denylist will not be filtered
+   * out in the recommendation filtering results.
+   * 
+ * + * bool ignore_recs_denylist = 24; + * + * @return The ignoreRecsDenylist. + */ + boolean getIgnoreRecsDenylist(); + /** * * diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ServingConfigProto.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ServingConfigProto.java index 6527edad43ce..5ee7554d733c 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ServingConfigProto.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/ServingConfigProto.java @@ -46,7 +46,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037google/api/field_behavior.proto\032\031google" + "/api/resource.proto\032(google/cloud/retail" + "/v2alpha/common.proto\0320google/cloud/reta" - + "il/v2alpha/search_service.proto\"\214\010\n\rServ" + + "il/v2alpha/search_service.proto\"\252\010\n\rServ" + "ingConfig\022\021\n\004name\030\001 \001(\tB\003\340A\005\022\031\n\014display_" + "name\030\002 \001(\tB\003\340A\002\022\020\n\010model_id\030\003 \001(\t\022\035\n\025pri" + "ce_reranking_level\030\004 \001(\t\022\031\n\021facet_contro" @@ -62,23 +62,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\n\017diversity_level\030\010 \001(\t\022P\n\016diversity_typ" + "e\030\024 \001(\01628.google.cloud.retail.v2alpha.Se" + "rvingConfig.DiversityType\022$\n\034enable_cate" - + "gory_filter_level\030\020 \001(\t\022\\\n\024personalizati" - + "on_spec\030\025 \001(\0132>.google.cloud.retail.v2al" - + "pha.SearchRequest.PersonalizationSpec\022I\n" - + "\016solution_types\030\023 \003(\0162).google.cloud.ret" - + "ail.v2alpha.SolutionTypeB\006\340A\002\340A\005\"d\n\rDive" - + "rsityType\022\036\n\032DIVERSITY_TYPE_UNSPECIFIED\020" - + "\000\022\030\n\024RULE_BASED_DIVERSITY\020\002\022\031\n\025DATA_DRIV" - + "EN_DIVERSITY\020\003:\205\001\352A\201\001\n#retail.googleapis" - + ".com/ServingConfig\022Zprojects/{project}/l" - + "ocations/{location}/catalogs/{catalog}/s" - + "ervingConfigs/{serving_config}B\326\001\n\037com.g" - + "oogle.cloud.retail.v2alphaB\022ServingConfi" - + "gProtoP\001Z7cloud.google.com/go/retail/api" - + "v2alpha/retailpb;retailpb\242\002\006RETAIL\252\002\033Goo" - + "gle.Cloud.Retail.V2Alpha\312\002\033Google\\Cloud\\" - + "Retail\\V2alpha\352\002\036Google::Cloud::Retail::" - + "V2alphab\006proto3" + + "gory_filter_level\030\020 \001(\t\022\034\n\024ignore_recs_d" + + "enylist\030\030 \001(\010\022\\\n\024personalization_spec\030\025 " + + "\001(\0132>.google.cloud.retail.v2alpha.Search" + + "Request.PersonalizationSpec\022I\n\016solution_" + + "types\030\023 \003(\0162).google.cloud.retail.v2alph" + + "a.SolutionTypeB\006\340A\002\340A\005\"d\n\rDiversityType\022" + + "\036\n\032DIVERSITY_TYPE_UNSPECIFIED\020\000\022\030\n\024RULE_" + + "BASED_DIVERSITY\020\002\022\031\n\025DATA_DRIVEN_DIVERSI" + + "TY\020\003:\205\001\352A\201\001\n#retail.googleapis.com/Servi" + + "ngConfig\022Zprojects/{project}/locations/{" + + "location}/catalogs/{catalog}/servingConf" + + "igs/{serving_config}B\326\001\n\037com.google.clou" + + "d.retail.v2alphaB\022ServingConfigProtoP\001Z7" + + "cloud.google.com/go/retail/apiv2alpha/re" + + "tailpb;retailpb\242\002\006RETAIL\252\002\033Google.Cloud." + + "Retail.V2Alpha\312\002\033Google\\Cloud\\Retail\\V2a" + + "lpha\352\002\036Google::Cloud::Retail::V2alphab\006p" + + "roto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -112,6 +113,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DiversityLevel", "DiversityType", "EnableCategoryFilterLevel", + "IgnoreRecsDenylist", "PersonalizationSpec", "SolutionTypes", }); diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/UpdateAlertConfigRequest.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/UpdateAlertConfigRequest.java new file mode 100644 index 000000000000..2dfc013bbccf --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/UpdateAlertConfigRequest.java @@ -0,0 +1,1136 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/retail/v2alpha/project_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.retail.v2alpha; + +/** + * + * + *
+ * Request for
+ * [ProjectService.UpdateAlertConfig][google.cloud.retail.v2alpha.ProjectService.UpdateAlertConfig]
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.UpdateAlertConfigRequest} + */ +public final class UpdateAlertConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2alpha.UpdateAlertConfigRequest) + UpdateAlertConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateAlertConfigRequest.newBuilder() to construct. + private UpdateAlertConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateAlertConfigRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateAlertConfigRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_UpdateAlertConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_UpdateAlertConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest.class, + com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest.Builder.class); + } + + private int bitField0_; + public static final int ALERT_CONFIG_FIELD_NUMBER = 1; + private com.google.cloud.retail.v2alpha.AlertConfig alertConfig_; + /** + * + * + *
+   * Required. The [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] to
+   * update.
+   *
+   * If the caller does not have permission to update the
+   * [AlertConfig][google.cloud.retail.v2alpha.AlertConfig], then a
+   * PERMISSION_DENIED error is returned.
+   *
+   * If the [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] to update
+   * does not exist, a NOT_FOUND error is returned.
+   * 
+ * + * + * .google.cloud.retail.v2alpha.AlertConfig alert_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the alertConfig field is set. + */ + @java.lang.Override + public boolean hasAlertConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. The [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] to
+   * update.
+   *
+   * If the caller does not have permission to update the
+   * [AlertConfig][google.cloud.retail.v2alpha.AlertConfig], then a
+   * PERMISSION_DENIED error is returned.
+   *
+   * If the [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] to update
+   * does not exist, a NOT_FOUND error is returned.
+   * 
+ * + * + * .google.cloud.retail.v2alpha.AlertConfig alert_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The alertConfig. + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.AlertConfig getAlertConfig() { + return alertConfig_ == null + ? com.google.cloud.retail.v2alpha.AlertConfig.getDefaultInstance() + : alertConfig_; + } + /** + * + * + *
+   * Required. The [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] to
+   * update.
+   *
+   * If the caller does not have permission to update the
+   * [AlertConfig][google.cloud.retail.v2alpha.AlertConfig], then a
+   * PERMISSION_DENIED error is returned.
+   *
+   * If the [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] to update
+   * does not exist, a NOT_FOUND error is returned.
+   * 
+ * + * + * .google.cloud.retail.v2alpha.AlertConfig alert_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.AlertConfigOrBuilder getAlertConfigOrBuilder() { + return alertConfig_ == null + ? com.google.cloud.retail.v2alpha.AlertConfig.getDefaultInstance() + : alertConfig_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Indicates which fields in the provided
+   * [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] to update. If not
+   * set, all supported fields are updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Indicates which fields in the provided
+   * [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] to update. If not
+   * set, all supported fields are updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Indicates which fields in the provided
+   * [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] to update. If not
+   * set, all supported fields are updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getAlertConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAlertConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest other = + (com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest) obj; + + if (hasAlertConfig() != other.hasAlertConfig()) return false; + if (hasAlertConfig()) { + if (!getAlertConfig().equals(other.getAlertConfig())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAlertConfig()) { + hash = (37 * hash) + ALERT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAlertConfig().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request for
+   * [ProjectService.UpdateAlertConfig][google.cloud.retail.v2alpha.ProjectService.UpdateAlertConfig]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.UpdateAlertConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2alpha.UpdateAlertConfigRequest) + com.google.cloud.retail.v2alpha.UpdateAlertConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_UpdateAlertConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_UpdateAlertConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest.class, + com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest.Builder.class); + } + + // Construct using com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getAlertConfigFieldBuilder(); + getUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + alertConfig_ = null; + if (alertConfigBuilder_ != null) { + alertConfigBuilder_.dispose(); + alertConfigBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_UpdateAlertConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest getDefaultInstanceForType() { + return com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest build() { + com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest buildPartial() { + com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest result = + new com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.alertConfig_ = + alertConfigBuilder_ == null ? alertConfig_ : alertConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest) { + return mergeFrom((com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest other) { + if (other == com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest.getDefaultInstance()) + return this; + if (other.hasAlertConfig()) { + mergeAlertConfig(other.getAlertConfig()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getAlertConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.retail.v2alpha.AlertConfig alertConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2alpha.AlertConfig, + com.google.cloud.retail.v2alpha.AlertConfig.Builder, + com.google.cloud.retail.v2alpha.AlertConfigOrBuilder> + alertConfigBuilder_; + /** + * + * + *
+     * Required. The [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] to
+     * update.
+     *
+     * If the caller does not have permission to update the
+     * [AlertConfig][google.cloud.retail.v2alpha.AlertConfig], then a
+     * PERMISSION_DENIED error is returned.
+     *
+     * If the [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] to update
+     * does not exist, a NOT_FOUND error is returned.
+     * 
+ * + * + * .google.cloud.retail.v2alpha.AlertConfig alert_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the alertConfig field is set. + */ + public boolean hasAlertConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] to
+     * update.
+     *
+     * If the caller does not have permission to update the
+     * [AlertConfig][google.cloud.retail.v2alpha.AlertConfig], then a
+     * PERMISSION_DENIED error is returned.
+     *
+     * If the [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] to update
+     * does not exist, a NOT_FOUND error is returned.
+     * 
+ * + * + * .google.cloud.retail.v2alpha.AlertConfig alert_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The alertConfig. + */ + public com.google.cloud.retail.v2alpha.AlertConfig getAlertConfig() { + if (alertConfigBuilder_ == null) { + return alertConfig_ == null + ? com.google.cloud.retail.v2alpha.AlertConfig.getDefaultInstance() + : alertConfig_; + } else { + return alertConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] to
+     * update.
+     *
+     * If the caller does not have permission to update the
+     * [AlertConfig][google.cloud.retail.v2alpha.AlertConfig], then a
+     * PERMISSION_DENIED error is returned.
+     *
+     * If the [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] to update
+     * does not exist, a NOT_FOUND error is returned.
+     * 
+ * + * + * .google.cloud.retail.v2alpha.AlertConfig alert_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAlertConfig(com.google.cloud.retail.v2alpha.AlertConfig value) { + if (alertConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + alertConfig_ = value; + } else { + alertConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] to
+     * update.
+     *
+     * If the caller does not have permission to update the
+     * [AlertConfig][google.cloud.retail.v2alpha.AlertConfig], then a
+     * PERMISSION_DENIED error is returned.
+     *
+     * If the [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] to update
+     * does not exist, a NOT_FOUND error is returned.
+     * 
+ * + * + * .google.cloud.retail.v2alpha.AlertConfig alert_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAlertConfig( + com.google.cloud.retail.v2alpha.AlertConfig.Builder builderForValue) { + if (alertConfigBuilder_ == null) { + alertConfig_ = builderForValue.build(); + } else { + alertConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] to
+     * update.
+     *
+     * If the caller does not have permission to update the
+     * [AlertConfig][google.cloud.retail.v2alpha.AlertConfig], then a
+     * PERMISSION_DENIED error is returned.
+     *
+     * If the [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] to update
+     * does not exist, a NOT_FOUND error is returned.
+     * 
+ * + * + * .google.cloud.retail.v2alpha.AlertConfig alert_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAlertConfig(com.google.cloud.retail.v2alpha.AlertConfig value) { + if (alertConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && alertConfig_ != null + && alertConfig_ != com.google.cloud.retail.v2alpha.AlertConfig.getDefaultInstance()) { + getAlertConfigBuilder().mergeFrom(value); + } else { + alertConfig_ = value; + } + } else { + alertConfigBuilder_.mergeFrom(value); + } + if (alertConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. The [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] to
+     * update.
+     *
+     * If the caller does not have permission to update the
+     * [AlertConfig][google.cloud.retail.v2alpha.AlertConfig], then a
+     * PERMISSION_DENIED error is returned.
+     *
+     * If the [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] to update
+     * does not exist, a NOT_FOUND error is returned.
+     * 
+ * + * + * .google.cloud.retail.v2alpha.AlertConfig alert_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAlertConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + alertConfig_ = null; + if (alertConfigBuilder_ != null) { + alertConfigBuilder_.dispose(); + alertConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] to
+     * update.
+     *
+     * If the caller does not have permission to update the
+     * [AlertConfig][google.cloud.retail.v2alpha.AlertConfig], then a
+     * PERMISSION_DENIED error is returned.
+     *
+     * If the [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] to update
+     * does not exist, a NOT_FOUND error is returned.
+     * 
+ * + * + * .google.cloud.retail.v2alpha.AlertConfig alert_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.retail.v2alpha.AlertConfig.Builder getAlertConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getAlertConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] to
+     * update.
+     *
+     * If the caller does not have permission to update the
+     * [AlertConfig][google.cloud.retail.v2alpha.AlertConfig], then a
+     * PERMISSION_DENIED error is returned.
+     *
+     * If the [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] to update
+     * does not exist, a NOT_FOUND error is returned.
+     * 
+ * + * + * .google.cloud.retail.v2alpha.AlertConfig alert_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.retail.v2alpha.AlertConfigOrBuilder getAlertConfigOrBuilder() { + if (alertConfigBuilder_ != null) { + return alertConfigBuilder_.getMessageOrBuilder(); + } else { + return alertConfig_ == null + ? com.google.cloud.retail.v2alpha.AlertConfig.getDefaultInstance() + : alertConfig_; + } + } + /** + * + * + *
+     * Required. The [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] to
+     * update.
+     *
+     * If the caller does not have permission to update the
+     * [AlertConfig][google.cloud.retail.v2alpha.AlertConfig], then a
+     * PERMISSION_DENIED error is returned.
+     *
+     * If the [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] to update
+     * does not exist, a NOT_FOUND error is returned.
+     * 
+ * + * + * .google.cloud.retail.v2alpha.AlertConfig alert_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2alpha.AlertConfig, + com.google.cloud.retail.v2alpha.AlertConfig.Builder, + com.google.cloud.retail.v2alpha.AlertConfigOrBuilder> + getAlertConfigFieldBuilder() { + if (alertConfigBuilder_ == null) { + alertConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2alpha.AlertConfig, + com.google.cloud.retail.v2alpha.AlertConfig.Builder, + com.google.cloud.retail.v2alpha.AlertConfigOrBuilder>( + getAlertConfig(), getParentForChildren(), isClean()); + alertConfig_ = null; + } + return alertConfigBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Indicates which fields in the provided
+     * [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] to update. If not
+     * set, all supported fields are updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Indicates which fields in the provided
+     * [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] to update. If not
+     * set, all supported fields are updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Indicates which fields in the provided
+     * [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] to update. If not
+     * set, all supported fields are updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Indicates which fields in the provided
+     * [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] to update. If not
+     * set, all supported fields are updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Indicates which fields in the provided
+     * [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] to update. If not
+     * set, all supported fields are updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Indicates which fields in the provided
+     * [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] to update. If not
+     * set, all supported fields are updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Indicates which fields in the provided
+     * [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] to update. If not
+     * set, all supported fields are updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Indicates which fields in the provided
+     * [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] to update. If not
+     * set, all supported fields are updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Indicates which fields in the provided
+     * [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] to update. If not
+     * set, all supported fields are updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2alpha.UpdateAlertConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2alpha.UpdateAlertConfigRequest) + private static final com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest(); + } + + public static com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateAlertConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/UpdateAlertConfigRequestOrBuilder.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/UpdateAlertConfigRequestOrBuilder.java new file mode 100644 index 000000000000..815d9a946c6f --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/UpdateAlertConfigRequestOrBuilder.java @@ -0,0 +1,132 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/retail/v2alpha/project_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.retail.v2alpha; + +public interface UpdateAlertConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2alpha.UpdateAlertConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] to
+   * update.
+   *
+   * If the caller does not have permission to update the
+   * [AlertConfig][google.cloud.retail.v2alpha.AlertConfig], then a
+   * PERMISSION_DENIED error is returned.
+   *
+   * If the [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] to update
+   * does not exist, a NOT_FOUND error is returned.
+   * 
+ * + * + * .google.cloud.retail.v2alpha.AlertConfig alert_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the alertConfig field is set. + */ + boolean hasAlertConfig(); + /** + * + * + *
+   * Required. The [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] to
+   * update.
+   *
+   * If the caller does not have permission to update the
+   * [AlertConfig][google.cloud.retail.v2alpha.AlertConfig], then a
+   * PERMISSION_DENIED error is returned.
+   *
+   * If the [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] to update
+   * does not exist, a NOT_FOUND error is returned.
+   * 
+ * + * + * .google.cloud.retail.v2alpha.AlertConfig alert_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The alertConfig. + */ + com.google.cloud.retail.v2alpha.AlertConfig getAlertConfig(); + /** + * + * + *
+   * Required. The [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] to
+   * update.
+   *
+   * If the caller does not have permission to update the
+   * [AlertConfig][google.cloud.retail.v2alpha.AlertConfig], then a
+   * PERMISSION_DENIED error is returned.
+   *
+   * If the [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] to update
+   * does not exist, a NOT_FOUND error is returned.
+   * 
+ * + * + * .google.cloud.retail.v2alpha.AlertConfig alert_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.retail.v2alpha.AlertConfigOrBuilder getAlertConfigOrBuilder(); + + /** + * + * + *
+   * Indicates which fields in the provided
+   * [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] to update. If not
+   * set, all supported fields are updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Indicates which fields in the provided
+   * [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] to update. If not
+   * set, all supported fields are updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Indicates which fields in the provided
+   * [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] to update. If not
+   * set, all supported fields are updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/UpdateLoggingConfigRequest.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/UpdateLoggingConfigRequest.java new file mode 100644 index 000000000000..feae96ac00f3 --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/UpdateLoggingConfigRequest.java @@ -0,0 +1,1197 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/retail/v2alpha/project_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.retail.v2alpha; + +/** + * + * + *
+ * Request for
+ * [ProjectService.UpdateLoggingConfig][google.cloud.retail.v2alpha.ProjectService.UpdateLoggingConfig]
+ * method.
+ * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.UpdateLoggingConfigRequest} + */ +public final class UpdateLoggingConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2alpha.UpdateLoggingConfigRequest) + UpdateLoggingConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateLoggingConfigRequest.newBuilder() to construct. + private UpdateLoggingConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateLoggingConfigRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateLoggingConfigRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_UpdateLoggingConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_UpdateLoggingConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest.class, + com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest.Builder.class); + } + + private int bitField0_; + public static final int LOGGING_CONFIG_FIELD_NUMBER = 1; + private com.google.cloud.retail.v2alpha.LoggingConfig loggingConfig_; + /** + * + * + *
+   * Required. The [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] to
+   * update.
+   *
+   * If the caller does not have permission to update the
+   * [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig], then a
+   * PERMISSION_DENIED error is returned.
+   *
+   * If the [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] to update
+   * does not exist, a NOT_FOUND error is returned.
+   * 
+ * + * + * .google.cloud.retail.v2alpha.LoggingConfig logging_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the loggingConfig field is set. + */ + @java.lang.Override + public boolean hasLoggingConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Required. The [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] to
+   * update.
+   *
+   * If the caller does not have permission to update the
+   * [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig], then a
+   * PERMISSION_DENIED error is returned.
+   *
+   * If the [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] to update
+   * does not exist, a NOT_FOUND error is returned.
+   * 
+ * + * + * .google.cloud.retail.v2alpha.LoggingConfig logging_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The loggingConfig. + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.LoggingConfig getLoggingConfig() { + return loggingConfig_ == null + ? com.google.cloud.retail.v2alpha.LoggingConfig.getDefaultInstance() + : loggingConfig_; + } + /** + * + * + *
+   * Required. The [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] to
+   * update.
+   *
+   * If the caller does not have permission to update the
+   * [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig], then a
+   * PERMISSION_DENIED error is returned.
+   *
+   * If the [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] to update
+   * does not exist, a NOT_FOUND error is returned.
+   * 
+ * + * + * .google.cloud.retail.v2alpha.LoggingConfig logging_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2alpha.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { + return loggingConfig_ == null + ? com.google.cloud.retail.v2alpha.LoggingConfig.getDefaultInstance() + : loggingConfig_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Indicates which fields in the provided
+   * [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] to update. The
+   * following are the only supported fields:
+   *
+   * * [LoggingConfig.default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule]
+   * * [LoggingConfig.service_log_generation_rules][google.cloud.retail.v2alpha.LoggingConfig.service_log_generation_rules]
+   *
+   * If not set, all supported fields are updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Indicates which fields in the provided
+   * [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] to update. The
+   * following are the only supported fields:
+   *
+   * * [LoggingConfig.default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule]
+   * * [LoggingConfig.service_log_generation_rules][google.cloud.retail.v2alpha.LoggingConfig.service_log_generation_rules]
+   *
+   * If not set, all supported fields are updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Indicates which fields in the provided
+   * [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] to update. The
+   * following are the only supported fields:
+   *
+   * * [LoggingConfig.default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule]
+   * * [LoggingConfig.service_log_generation_rules][google.cloud.retail.v2alpha.LoggingConfig.service_log_generation_rules]
+   *
+   * If not set, all supported fields are updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getLoggingConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getLoggingConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest other = + (com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest) obj; + + if (hasLoggingConfig() != other.hasLoggingConfig()) return false; + if (hasLoggingConfig()) { + if (!getLoggingConfig().equals(other.getLoggingConfig())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasLoggingConfig()) { + hash = (37 * hash) + LOGGING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getLoggingConfig().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request for
+   * [ProjectService.UpdateLoggingConfig][google.cloud.retail.v2alpha.ProjectService.UpdateLoggingConfig]
+   * method.
+   * 
+ * + * Protobuf type {@code google.cloud.retail.v2alpha.UpdateLoggingConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2alpha.UpdateLoggingConfigRequest) + com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_UpdateLoggingConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_UpdateLoggingConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest.class, + com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest.Builder.class); + } + + // Construct using com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getLoggingConfigFieldBuilder(); + getUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + loggingConfig_ = null; + if (loggingConfigBuilder_ != null) { + loggingConfigBuilder_.dispose(); + loggingConfigBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2alpha.ProjectServiceProto + .internal_static_google_cloud_retail_v2alpha_UpdateLoggingConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest getDefaultInstanceForType() { + return com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest build() { + com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest buildPartial() { + com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest result = + new com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.loggingConfig_ = + loggingConfigBuilder_ == null ? loggingConfig_ : loggingConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest) { + return mergeFrom((com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest other) { + if (other == com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest.getDefaultInstance()) + return this; + if (other.hasLoggingConfig()) { + mergeLoggingConfig(other.getLoggingConfig()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.retail.v2alpha.LoggingConfig loggingConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2alpha.LoggingConfig, + com.google.cloud.retail.v2alpha.LoggingConfig.Builder, + com.google.cloud.retail.v2alpha.LoggingConfigOrBuilder> + loggingConfigBuilder_; + /** + * + * + *
+     * Required. The [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] to
+     * update.
+     *
+     * If the caller does not have permission to update the
+     * [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig], then a
+     * PERMISSION_DENIED error is returned.
+     *
+     * If the [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] to update
+     * does not exist, a NOT_FOUND error is returned.
+     * 
+ * + * + * .google.cloud.retail.v2alpha.LoggingConfig logging_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the loggingConfig field is set. + */ + public boolean hasLoggingConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] to
+     * update.
+     *
+     * If the caller does not have permission to update the
+     * [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig], then a
+     * PERMISSION_DENIED error is returned.
+     *
+     * If the [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] to update
+     * does not exist, a NOT_FOUND error is returned.
+     * 
+ * + * + * .google.cloud.retail.v2alpha.LoggingConfig logging_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The loggingConfig. + */ + public com.google.cloud.retail.v2alpha.LoggingConfig getLoggingConfig() { + if (loggingConfigBuilder_ == null) { + return loggingConfig_ == null + ? com.google.cloud.retail.v2alpha.LoggingConfig.getDefaultInstance() + : loggingConfig_; + } else { + return loggingConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] to
+     * update.
+     *
+     * If the caller does not have permission to update the
+     * [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig], then a
+     * PERMISSION_DENIED error is returned.
+     *
+     * If the [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] to update
+     * does not exist, a NOT_FOUND error is returned.
+     * 
+ * + * + * .google.cloud.retail.v2alpha.LoggingConfig logging_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setLoggingConfig(com.google.cloud.retail.v2alpha.LoggingConfig value) { + if (loggingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + loggingConfig_ = value; + } else { + loggingConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] to
+     * update.
+     *
+     * If the caller does not have permission to update the
+     * [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig], then a
+     * PERMISSION_DENIED error is returned.
+     *
+     * If the [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] to update
+     * does not exist, a NOT_FOUND error is returned.
+     * 
+ * + * + * .google.cloud.retail.v2alpha.LoggingConfig logging_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setLoggingConfig( + com.google.cloud.retail.v2alpha.LoggingConfig.Builder builderForValue) { + if (loggingConfigBuilder_ == null) { + loggingConfig_ = builderForValue.build(); + } else { + loggingConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] to
+     * update.
+     *
+     * If the caller does not have permission to update the
+     * [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig], then a
+     * PERMISSION_DENIED error is returned.
+     *
+     * If the [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] to update
+     * does not exist, a NOT_FOUND error is returned.
+     * 
+ * + * + * .google.cloud.retail.v2alpha.LoggingConfig logging_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeLoggingConfig(com.google.cloud.retail.v2alpha.LoggingConfig value) { + if (loggingConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && loggingConfig_ != null + && loggingConfig_ + != com.google.cloud.retail.v2alpha.LoggingConfig.getDefaultInstance()) { + getLoggingConfigBuilder().mergeFrom(value); + } else { + loggingConfig_ = value; + } + } else { + loggingConfigBuilder_.mergeFrom(value); + } + if (loggingConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Required. The [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] to
+     * update.
+     *
+     * If the caller does not have permission to update the
+     * [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig], then a
+     * PERMISSION_DENIED error is returned.
+     *
+     * If the [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] to update
+     * does not exist, a NOT_FOUND error is returned.
+     * 
+ * + * + * .google.cloud.retail.v2alpha.LoggingConfig logging_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearLoggingConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + loggingConfig_ = null; + if (loggingConfigBuilder_ != null) { + loggingConfigBuilder_.dispose(); + loggingConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] to
+     * update.
+     *
+     * If the caller does not have permission to update the
+     * [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig], then a
+     * PERMISSION_DENIED error is returned.
+     *
+     * If the [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] to update
+     * does not exist, a NOT_FOUND error is returned.
+     * 
+ * + * + * .google.cloud.retail.v2alpha.LoggingConfig logging_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.retail.v2alpha.LoggingConfig.Builder getLoggingConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getLoggingConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] to
+     * update.
+     *
+     * If the caller does not have permission to update the
+     * [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig], then a
+     * PERMISSION_DENIED error is returned.
+     *
+     * If the [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] to update
+     * does not exist, a NOT_FOUND error is returned.
+     * 
+ * + * + * .google.cloud.retail.v2alpha.LoggingConfig logging_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.retail.v2alpha.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { + if (loggingConfigBuilder_ != null) { + return loggingConfigBuilder_.getMessageOrBuilder(); + } else { + return loggingConfig_ == null + ? com.google.cloud.retail.v2alpha.LoggingConfig.getDefaultInstance() + : loggingConfig_; + } + } + /** + * + * + *
+     * Required. The [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] to
+     * update.
+     *
+     * If the caller does not have permission to update the
+     * [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig], then a
+     * PERMISSION_DENIED error is returned.
+     *
+     * If the [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] to update
+     * does not exist, a NOT_FOUND error is returned.
+     * 
+ * + * + * .google.cloud.retail.v2alpha.LoggingConfig logging_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2alpha.LoggingConfig, + com.google.cloud.retail.v2alpha.LoggingConfig.Builder, + com.google.cloud.retail.v2alpha.LoggingConfigOrBuilder> + getLoggingConfigFieldBuilder() { + if (loggingConfigBuilder_ == null) { + loggingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2alpha.LoggingConfig, + com.google.cloud.retail.v2alpha.LoggingConfig.Builder, + com.google.cloud.retail.v2alpha.LoggingConfigOrBuilder>( + getLoggingConfig(), getParentForChildren(), isClean()); + loggingConfig_ = null; + } + return loggingConfigBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Indicates which fields in the provided
+     * [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] to update. The
+     * following are the only supported fields:
+     *
+     * * [LoggingConfig.default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule]
+     * * [LoggingConfig.service_log_generation_rules][google.cloud.retail.v2alpha.LoggingConfig.service_log_generation_rules]
+     *
+     * If not set, all supported fields are updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Indicates which fields in the provided
+     * [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] to update. The
+     * following are the only supported fields:
+     *
+     * * [LoggingConfig.default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule]
+     * * [LoggingConfig.service_log_generation_rules][google.cloud.retail.v2alpha.LoggingConfig.service_log_generation_rules]
+     *
+     * If not set, all supported fields are updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Indicates which fields in the provided
+     * [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] to update. The
+     * following are the only supported fields:
+     *
+     * * [LoggingConfig.default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule]
+     * * [LoggingConfig.service_log_generation_rules][google.cloud.retail.v2alpha.LoggingConfig.service_log_generation_rules]
+     *
+     * If not set, all supported fields are updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Indicates which fields in the provided
+     * [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] to update. The
+     * following are the only supported fields:
+     *
+     * * [LoggingConfig.default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule]
+     * * [LoggingConfig.service_log_generation_rules][google.cloud.retail.v2alpha.LoggingConfig.service_log_generation_rules]
+     *
+     * If not set, all supported fields are updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Indicates which fields in the provided
+     * [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] to update. The
+     * following are the only supported fields:
+     *
+     * * [LoggingConfig.default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule]
+     * * [LoggingConfig.service_log_generation_rules][google.cloud.retail.v2alpha.LoggingConfig.service_log_generation_rules]
+     *
+     * If not set, all supported fields are updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Indicates which fields in the provided
+     * [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] to update. The
+     * following are the only supported fields:
+     *
+     * * [LoggingConfig.default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule]
+     * * [LoggingConfig.service_log_generation_rules][google.cloud.retail.v2alpha.LoggingConfig.service_log_generation_rules]
+     *
+     * If not set, all supported fields are updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Indicates which fields in the provided
+     * [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] to update. The
+     * following are the only supported fields:
+     *
+     * * [LoggingConfig.default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule]
+     * * [LoggingConfig.service_log_generation_rules][google.cloud.retail.v2alpha.LoggingConfig.service_log_generation_rules]
+     *
+     * If not set, all supported fields are updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Indicates which fields in the provided
+     * [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] to update. The
+     * following are the only supported fields:
+     *
+     * * [LoggingConfig.default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule]
+     * * [LoggingConfig.service_log_generation_rules][google.cloud.retail.v2alpha.LoggingConfig.service_log_generation_rules]
+     *
+     * If not set, all supported fields are updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Indicates which fields in the provided
+     * [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] to update. The
+     * following are the only supported fields:
+     *
+     * * [LoggingConfig.default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule]
+     * * [LoggingConfig.service_log_generation_rules][google.cloud.retail.v2alpha.LoggingConfig.service_log_generation_rules]
+     *
+     * If not set, all supported fields are updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2alpha.UpdateLoggingConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2alpha.UpdateLoggingConfigRequest) + private static final com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest(); + } + + public static com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateLoggingConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/UpdateLoggingConfigRequestOrBuilder.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/UpdateLoggingConfigRequestOrBuilder.java new file mode 100644 index 000000000000..dc588eab4bd9 --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/UpdateLoggingConfigRequestOrBuilder.java @@ -0,0 +1,147 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/retail/v2alpha/project_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.retail.v2alpha; + +public interface UpdateLoggingConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2alpha.UpdateLoggingConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] to
+   * update.
+   *
+   * If the caller does not have permission to update the
+   * [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig], then a
+   * PERMISSION_DENIED error is returned.
+   *
+   * If the [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] to update
+   * does not exist, a NOT_FOUND error is returned.
+   * 
+ * + * + * .google.cloud.retail.v2alpha.LoggingConfig logging_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the loggingConfig field is set. + */ + boolean hasLoggingConfig(); + /** + * + * + *
+   * Required. The [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] to
+   * update.
+   *
+   * If the caller does not have permission to update the
+   * [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig], then a
+   * PERMISSION_DENIED error is returned.
+   *
+   * If the [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] to update
+   * does not exist, a NOT_FOUND error is returned.
+   * 
+ * + * + * .google.cloud.retail.v2alpha.LoggingConfig logging_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The loggingConfig. + */ + com.google.cloud.retail.v2alpha.LoggingConfig getLoggingConfig(); + /** + * + * + *
+   * Required. The [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] to
+   * update.
+   *
+   * If the caller does not have permission to update the
+   * [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig], then a
+   * PERMISSION_DENIED error is returned.
+   *
+   * If the [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] to update
+   * does not exist, a NOT_FOUND error is returned.
+   * 
+ * + * + * .google.cloud.retail.v2alpha.LoggingConfig logging_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.retail.v2alpha.LoggingConfigOrBuilder getLoggingConfigOrBuilder(); + + /** + * + * + *
+   * Indicates which fields in the provided
+   * [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] to update. The
+   * following are the only supported fields:
+   *
+   * * [LoggingConfig.default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule]
+   * * [LoggingConfig.service_log_generation_rules][google.cloud.retail.v2alpha.LoggingConfig.service_log_generation_rules]
+   *
+   * If not set, all supported fields are updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Indicates which fields in the provided
+   * [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] to update. The
+   * following are the only supported fields:
+   *
+   * * [LoggingConfig.default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule]
+   * * [LoggingConfig.service_log_generation_rules][google.cloud.retail.v2alpha.LoggingConfig.service_log_generation_rules]
+   *
+   * If not set, all supported fields are updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Indicates which fields in the provided
+   * [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] to update. The
+   * following are the only supported fields:
+   *
+   * * [LoggingConfig.default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule]
+   * * [LoggingConfig.service_log_generation_rules][google.cloud.retail.v2alpha.LoggingConfig.service_log_generation_rules]
+   *
+   * If not set, all supported fields are updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/UserEvent.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/UserEvent.java index 88d1c9e3ed91..13bad0f314dd 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/UserEvent.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/UserEvent.java @@ -102,6 +102,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl * Required. User event type. Allowed values are: * * * `add-to-cart`: Products being added to cart. + * * `remove-from-cart`: Products being removed from cart. * * `category-page-view`: Special pages such as sale or promotion pages * viewed. * * `detail-page-view`: Products detail page viewed. @@ -136,6 +137,7 @@ public java.lang.String getEventType() { * Required. User event type. Allowed values are: * * * `add-to-cart`: Products being added to cart. + * * `remove-from-cart`: Products being removed from cart. * * `category-page-view`: Special pages such as sale or promotion pages * viewed. * * `detail-page-view`: Products detail page viewed. @@ -1665,8 +1667,8 @@ public com.google.protobuf.ByteString getPageViewIdBytes() { * The entity for customers that may run multiple different entities, domains, * sites or regions, for example, `Google US`, `Google Ads`, `Waymo`, * `google.com`, `youtube.com`, etc. - * It is recommended to set this field to get better per-entity search, - * completion and prediction results. + * We recommend that you set this field to get better per-entity search, + * completion, and prediction results. * * * string entity = 23; @@ -1692,8 +1694,8 @@ public java.lang.String getEntity() { * The entity for customers that may run multiple different entities, domains, * sites or regions, for example, `Google US`, `Google Ads`, `Waymo`, * `google.com`, `youtube.com`, etc. - * It is recommended to set this field to get better per-entity search, - * completion and prediction results. + * We recommend that you set this field to get better per-entity search, + * completion, and prediction results. * * * string entity = 23; @@ -2707,6 +2709,7 @@ public Builder mergeFrom( * Required. User event type. Allowed values are: * * * `add-to-cart`: Products being added to cart. + * * `remove-from-cart`: Products being removed from cart. * * `category-page-view`: Special pages such as sale or promotion pages * viewed. * * `detail-page-view`: Products detail page viewed. @@ -2740,6 +2743,7 @@ public java.lang.String getEventType() { * Required. User event type. Allowed values are: * * * `add-to-cart`: Products being added to cart. + * * `remove-from-cart`: Products being removed from cart. * * `category-page-view`: Special pages such as sale or promotion pages * viewed. * * `detail-page-view`: Products detail page viewed. @@ -2773,6 +2777,7 @@ public com.google.protobuf.ByteString getEventTypeBytes() { * Required. User event type. Allowed values are: * * * `add-to-cart`: Products being added to cart. + * * `remove-from-cart`: Products being removed from cart. * * `category-page-view`: Special pages such as sale or promotion pages * viewed. * * `detail-page-view`: Products detail page viewed. @@ -2805,6 +2810,7 @@ public Builder setEventType(java.lang.String value) { * Required. User event type. Allowed values are: * * * `add-to-cart`: Products being added to cart. + * * `remove-from-cart`: Products being removed from cart. * * `category-page-view`: Special pages such as sale or promotion pages * viewed. * * `detail-page-view`: Products detail page viewed. @@ -2833,6 +2839,7 @@ public Builder clearEventType() { * Required. User event type. Allowed values are: * * * `add-to-cart`: Products being added to cart. + * * `remove-from-cart`: Products being removed from cart. * * `category-page-view`: Special pages such as sale or promotion pages * viewed. * * `detail-page-view`: Products detail page viewed. @@ -6827,8 +6834,8 @@ public Builder setPageViewIdBytes(com.google.protobuf.ByteString value) { * The entity for customers that may run multiple different entities, domains, * sites or regions, for example, `Google US`, `Google Ads`, `Waymo`, * `google.com`, `youtube.com`, etc. - * It is recommended to set this field to get better per-entity search, - * completion and prediction results. + * We recommend that you set this field to get better per-entity search, + * completion, and prediction results. * * * string entity = 23; @@ -6853,8 +6860,8 @@ public java.lang.String getEntity() { * The entity for customers that may run multiple different entities, domains, * sites or regions, for example, `Google US`, `Google Ads`, `Waymo`, * `google.com`, `youtube.com`, etc. - * It is recommended to set this field to get better per-entity search, - * completion and prediction results. + * We recommend that you set this field to get better per-entity search, + * completion, and prediction results. * * * string entity = 23; @@ -6879,8 +6886,8 @@ public com.google.protobuf.ByteString getEntityBytes() { * The entity for customers that may run multiple different entities, domains, * sites or regions, for example, `Google US`, `Google Ads`, `Waymo`, * `google.com`, `youtube.com`, etc. - * It is recommended to set this field to get better per-entity search, - * completion and prediction results. + * We recommend that you set this field to get better per-entity search, + * completion, and prediction results. * * * string entity = 23; @@ -6904,8 +6911,8 @@ public Builder setEntity(java.lang.String value) { * The entity for customers that may run multiple different entities, domains, * sites or regions, for example, `Google US`, `Google Ads`, `Waymo`, * `google.com`, `youtube.com`, etc. - * It is recommended to set this field to get better per-entity search, - * completion and prediction results. + * We recommend that you set this field to get better per-entity search, + * completion, and prediction results. * * * string entity = 23; @@ -6925,8 +6932,8 @@ public Builder clearEntity() { * The entity for customers that may run multiple different entities, domains, * sites or regions, for example, `Google US`, `Google Ads`, `Waymo`, * `google.com`, `youtube.com`, etc. - * It is recommended to set this field to get better per-entity search, - * completion and prediction results. + * We recommend that you set this field to get better per-entity search, + * completion, and prediction results. * * * string entity = 23; diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/UserEventOrBuilder.java b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/UserEventOrBuilder.java index d96228e4e51d..120bcf3e3a71 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/UserEventOrBuilder.java +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/java/com/google/cloud/retail/v2alpha/UserEventOrBuilder.java @@ -31,6 +31,7 @@ public interface UserEventOrBuilder * Required. User event type. Allowed values are: * * * `add-to-cart`: Products being added to cart. + * * `remove-from-cart`: Products being removed from cart. * * `category-page-view`: Special pages such as sale or promotion pages * viewed. * * `detail-page-view`: Products detail page viewed. @@ -54,6 +55,7 @@ public interface UserEventOrBuilder * Required. User event type. Allowed values are: * * * `add-to-cart`: Products being added to cart. + * * `remove-from-cart`: Products being removed from cart. * * `category-page-view`: Special pages such as sale or promotion pages * viewed. * * `detail-page-view`: Products detail page viewed. @@ -1166,8 +1168,8 @@ com.google.cloud.retail.v2alpha.CustomAttribute getAttributesOrDefault( * The entity for customers that may run multiple different entities, domains, * sites or regions, for example, `Google US`, `Google Ads`, `Waymo`, * `google.com`, `youtube.com`, etc. - * It is recommended to set this field to get better per-entity search, - * completion and prediction results. + * We recommend that you set this field to get better per-entity search, + * completion, and prediction results. * * * string entity = 23; @@ -1182,8 +1184,8 @@ com.google.cloud.retail.v2alpha.CustomAttribute getAttributesOrDefault( * The entity for customers that may run multiple different entities, domains, * sites or regions, for example, `Google US`, `Google Ads`, `Waymo`, * `google.com`, `youtube.com`, etc. - * It is recommended to set this field to get better per-entity search, - * completion and prediction results. + * We recommend that you set this field to get better per-entity search, + * completion, and prediction results. * * * string entity = 23; diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/branch.proto b/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/branch.proto new file mode 100644 index 000000000000..9667eae96749 --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/branch.proto @@ -0,0 +1,245 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.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. + +syntax = "proto3"; + +package google.cloud.retail.v2alpha; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/retail/v2alpha/product.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.Retail.V2Alpha"; +option go_package = "cloud.google.com/go/retail/apiv2alpha/retailpb;retailpb"; +option java_multiple_files = true; +option java_outer_classname = "BranchProto"; +option java_package = "com.google.cloud.retail.v2alpha"; +option objc_class_prefix = "RETAIL"; +option php_namespace = "Google\\Cloud\\Retail\\V2alpha"; +option ruby_package = "Google::Cloud::Retail::V2alpha"; + +// A view that specifies different level of fields of a +// [Branch][google.cloud.retail.v2alpha.Branch] to show in responses. +enum BranchView { + // The value when it's unspecified. This defaults to the BASIC view. + BRANCH_VIEW_UNSPECIFIED = 0; + + // Includes basic metadata about the branch, but not statistical fields. + // See documentation of fields of [Branch][google.cloud.retail.v2alpha.Branch] + // to find what fields are excluded from BASIC view. + BRANCH_VIEW_BASIC = 1; + + // Includes all fields of a [Branch][google.cloud.retail.v2alpha.Branch]. + BRANCH_VIEW_FULL = 2; +} + +// A data branch that stores [Product][google.cloud.retail.v2alpha.Product]s. +message Branch { + option (google.api.resource) = { + type: "retail.googleapis.com/Branch" + pattern: "projects/{project}/locations/{location}/catalogs/{catalog}/branches/{branch}" + }; + + // A statistic about the number of products in a branch. + message ProductCountStatistic { + // Scope of what products are included for this count. + enum ProductCountScope { + // Default value for enum. This value is not used in the API response. + PRODUCT_COUNT_SCOPE_UNSPECIFIED = 0; + + // Scope for all existing products in the branch. Useful for understanding + // how many products there are in a branch. + ALL_PRODUCTS = 1; + + // Scope for products created or updated in the last 24 hours. + LAST_24_HOUR_UPDATE = 2; + } + + // [ProductCountScope] of the [counts]. + ProductCountScope scope = 1; + + // The number of products in + // [scope][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.scope] + // broken down into different groups. + // + // The key is a group representing a set of products, and the value is the + // number of products in that group. + // Note: keys in this map may change over time. + // + // Possible keys: + // * "primary-in-stock", products have + // [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] + // type and + // [Product.Availability.IN_STOCK][google.cloud.retail.v2alpha.Product.Availability.IN_STOCK] + // availability. + // + // * "primary-out-of-stock", products have + // [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] + // type and + // [Product.Availability.OUT_OF_STOCK][google.cloud.retail.v2alpha.Product.Availability.OUT_OF_STOCK] + // availability. + // + // * "primary-preorder", products have + // [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] + // type and + // [Product.Availability.PREORDER][google.cloud.retail.v2alpha.Product.Availability.PREORDER] + // availability. + // + // * "primary-backorder", products have + // [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] + // type and + // [Product.Availability.BACKORDER][google.cloud.retail.v2alpha.Product.Availability.BACKORDER] + // availability. + // + // * "variant-in-stock", products have + // [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT] + // type and + // [Product.Availability.IN_STOCK][google.cloud.retail.v2alpha.Product.Availability.IN_STOCK] + // availability. + // + // * "variant-out-of-stock", products have + // [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT] + // type and + // [Product.Availability.OUT_OF_STOCK][google.cloud.retail.v2alpha.Product.Availability.OUT_OF_STOCK] + // availability. + // + // * "variant-preorder", products have + // [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT] + // type and + // [Product.Availability.PREORDER][google.cloud.retail.v2alpha.Product.Availability.PREORDER] + // availability. + // + // * "variant-backorder", products have + // [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT] + // type and + // [Product.Availability.BACKORDER][google.cloud.retail.v2alpha.Product.Availability.BACKORDER] + // availability. + // + // * "price-discounted", products have [Product.price_info.price] < + // [Product.price_info.original_price]. + map counts = 2; + } + + // Metric measured on a group of + // [Product][google.cloud.retail.v2alpha.Product]s against a certain quality + // requirement. Contains the number of products that pass the check and the + // number of products that don't. + message QualityMetric { + // The key that represents a quality requirement rule. + // + // Supported keys: + // * "has-valid-uri": product has a valid and accessible + // [uri][google.cloud.retail.v2alpha.Product.uri]. + // + // * "available-expire-time-conformance": + // [Product.available_time][google.cloud.retail.v2alpha.Product.available_time] + // is early than "now", and + // [Product.expire_time][google.cloud.retail.v2alpha.Product.expire_time] is + // greater than "now". + // + // * "has-searchable-attributes": product has at least one + // [attribute][google.cloud.retail.v2alpha.Product.attributes] set to + // searchable. + // + // * "has-description": product has non-empty + // [description][google.cloud.retail.v2alpha.Product.description]. + // + // * "has-at-least-bigram-title": Product + // [title][google.cloud.retail.v2alpha.Product.title] has at least two + // words. A comprehensive title helps to improve search quality. + // + // * "variant-has-image": the + // [variant][google.cloud.retail.v2alpha.Product.Type.VARIANT] products has + // at least one [image][google.cloud.retail.v2alpha.Product.images]. You may + // ignore this metric if all your products are at + // [primary][google.cloud.retail.v2alpha.Product.Type.PRIMARY] level. + // + // * "variant-has-price-info": the + // [variant][google.cloud.retail.v2alpha.Product.Type.VARIANT] products has + // [price_info][google.cloud.retail.v2alpha.Product.price_info] set. You may + // ignore this metric if all your products are at + // [primary][google.cloud.retail.v2alpha.Product.Type.PRIMARY] level. + // + // * "has-publish-time": product has non-empty + // [publish_time][google.cloud.retail.v2alpha.Product.publish_time]. + string requirement_key = 1; + + // Number of products passing the quality requirement check. We only check + // searchable products. + int32 qualified_product_count = 2; + + // Number of products failing the quality requirement check. We only check + // searchable products. + int32 unqualified_product_count = 3; + + // Value from 0 to 100 representing the suggested percentage of products + // that meet the quality requirements to get good search and recommendation + // performance. 100 * (qualified_product_count) / + // (qualified_product_count + unqualified_product_count) should be greater + // or equal to this suggestion. + double suggested_quality_percent_threshold = 4; + + // A list of a maximum of 100 sample products that do not qualify for + // this requirement. + // + // This field is only populated in the response to + // [BranchService.GetBranch][google.cloud.retail.v2alpha.BranchService.GetBranch] + // API, and is always empty for + // [BranchService.ListBranches][google.cloud.retail.v2alpha.BranchService.ListBranches]. + // + // Only the following fields are set in the + // [Product][google.cloud.retail.v2alpha.Product]. + // + // * [Product.name][google.cloud.retail.v2alpha.Product.name] + // * [Product.id][google.cloud.retail.v2alpha.Product.id] + // * [Product.title][google.cloud.retail.v2alpha.Product.title] + repeated Product unqualified_sample_products = 5; + } + + // Immutable. Full resource name of the branch, such as + // `projects/*/locations/global/catalogs/default_catalog/branches/branch_id`. + string name = 1 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. Human readable name of the branch to display in the UI. + string display_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Indicates whether this branch is set as the default branch of + // its parent catalog. + bool is_default = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp of last import through + // [ProductService.ImportProducts][google.cloud.retail.v2alpha.ProductService.ImportProducts]. + // Empty value means no import has been made to this branch. + google.protobuf.Timestamp last_product_import_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Statistics for number of products in the branch, provided for + // different + // [scopes][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope]. + // + // This field is not populated in [BranchView.BASIC][] view. + repeated ProductCountStatistic product_count_stats = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The quality metrics measured among products of this branch. + // + // See + // [QualityMetric.requirement_key][google.cloud.retail.v2alpha.Branch.QualityMetric.requirement_key] + // for supported metrics. Metrics could be missing if failed to retrieve. + // + // This field is not populated in [BranchView.BASIC][] view. + repeated QualityMetric quality_metrics = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/branch_service.proto b/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/branch_service.proto new file mode 100644 index 000000000000..79f95c361f6a --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/branch_service.proto @@ -0,0 +1,111 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.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. + +syntax = "proto3"; + +package google.cloud.retail.v2alpha; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/retail/v2alpha/branch.proto"; + +option csharp_namespace = "Google.Cloud.Retail.V2Alpha"; +option go_package = "cloud.google.com/go/retail/apiv2alpha/retailpb;retailpb"; +option java_multiple_files = true; +option java_outer_classname = "BranchServiceProto"; +option java_package = "com.google.cloud.retail.v2alpha"; +option objc_class_prefix = "RETAIL"; +option php_namespace = "Google\\Cloud\\Retail\\V2alpha"; +option ruby_package = "Google::Cloud::Retail::V2alpha"; + +// Service for [Branch][google.cloud.retail.v2alpha.Branch] Management +// +// [Branch][google.cloud.retail.v2alpha.Branch]es are automatically created when +// a [Catalog][google.cloud.retail.v2alpha.Catalog] is created. There are fixed +// three branches in each catalog, and may use +// [ListBranches][google.cloud.retail.v2alpha.BranchService.ListBranches] method +// to get the details of all branches. +service BranchService { + option (google.api.default_host) = "retail.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Lists all [Branch][google.cloud.retail.v2alpha.Branch]s under the specified + // parent [Catalog][google.cloud.retail.v2alpha.Catalog]. + rpc ListBranches(ListBranchesRequest) returns (ListBranchesResponse) { + option (google.api.http) = { + get: "/v2alpha/{parent=projects/*/locations/*/catalogs/*}/branches" + }; + option (google.api.method_signature) = "parent"; + } + + // Retrieves a [Branch][google.cloud.retail.v2alpha.Branch]. + rpc GetBranch(GetBranchRequest) returns (Branch) { + option (google.api.http) = { + get: "/v2alpha/{name=projects/*/locations/*/catalogs/*/branches/*}" + }; + option (google.api.method_signature) = "name"; + } +} + +// Request for +// [BranchService.ListBranches][google.cloud.retail.v2alpha.BranchService.ListBranches] +// method. +message ListBranchesRequest { + // Required. The parent catalog resource name. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "retail.googleapis.com/Catalog" } + ]; + + // The view to apply to the returned + // [Branch][google.cloud.retail.v2alpha.Branch]. Defaults to + // [Branch.BranchView.BASIC] if unspecified. + // See documentation of fields of [Branch][google.cloud.retail.v2alpha.Branch] + // to find what fields are excluded from BASIC view. + BranchView view = 2; +} + +// Response for +// [BranchService.ListBranches][google.cloud.retail.v2alpha.BranchService.ListBranches] +// method. +message ListBranchesResponse { + // The Branches. + repeated Branch branches = 1; +} + +// Request for +// [BranchService.GetBranch][google.cloud.retail.v2alpha.BranchService.GetBranch] +// method. +message GetBranchRequest { + // Required. The name of the branch to retrieve. + // Format: + // `projects/*/locations/global/catalogs/default_catalog/branches/some_branch_id`. + // + // "default_branch" can be used as a special branch_id, it returns the + // default branch that has been set for the catalog. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "retail.googleapis.com/Branch" } + ]; + + // The view to apply to the returned + // [Branch][google.cloud.retail.v2alpha.Branch]. Defaults to + // [Branch.BranchView.BASIC] if unspecified. + // See documentation of fields of [Branch][google.cloud.retail.v2alpha.Branch] + // to find what fields are excluded from BASIC view. + BranchView view = 2; +} diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/catalog.proto b/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/catalog.proto index 1f20308e7e3c..891b328e9c25 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/catalog.proto +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/catalog.proto @@ -20,6 +20,7 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/retail/v2alpha/common.proto"; import "google/cloud/retail/v2alpha/import_config.proto"; +import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Retail.V2Alpha"; option go_package = "cloud.google.com/go/retail/apiv2alpha/retailpb;retailpb"; @@ -87,6 +88,124 @@ message ProductLevelConfig { // Catalog level attribute config for an attribute. For example, if customers // want to enable/disable facet for a specific attribute. message CatalogAttribute { + // Possible options for the facet that corresponds to the current attribute + // config. + message FacetConfig { + // [Facet values][google.cloud.retail.v2alpha.SearchResponse.Facet.values] + // to ignore on [facets][google.cloud.retail.v2alpha.SearchResponse.Facet] + // during the specified time range for the given + // [SearchResponse.Facet.key][google.cloud.retail.v2alpha.SearchResponse.Facet.key] + // attribute. + message IgnoredFacetValues { + // List of facet values to ignore for the following time range. The facet + // values are the same as the attribute values. There is a limit of 10 + // values per instance of IgnoredFacetValues. Each value can have at most + // 128 characters. + repeated string values = 1; + + // Time range for the current list of facet values to ignore. + // If multiple time ranges are specified for an facet value for the + // current attribute, consider all of them. If both are empty, ignore + // always. If start time and end time are set, then start time + // must be before end time. + // If start time is not empty and end time is empty, then will ignore + // these facet values after the start time. + google.protobuf.Timestamp start_time = 2; + + // If start time is empty and end time is not empty, then ignore these + // facet values before end time. + google.protobuf.Timestamp end_time = 3; + } + + // Replaces a set of textual facet values by the same (possibly different) + // merged facet value. Each facet value should appear at most once as a + // value per + // [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute]. This + // feature is available only for textual custom attributes. + message MergedFacetValue { + // All the facet values that are replaces by the same + // [merged_value][google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value] + // that follows. The maximum number of values per MergedFacetValue is 25. + // Each value can have up to 128 characters. + repeated string values = 1; + + // All the previous values are replaced by this merged facet value. + // This merged_value must be non-empty and can have up to 128 characters. + string merged_value = 2; + } + + // The current facet key (i.e. attribute config) maps into the + // [merged_facet_key][google.cloud.retail.v2alpha.CatalogAttribute.FacetConfig.MergedFacet.merged_facet_key]. + // A facet key can have at most one child. The current facet key and the + // merged facet key need both to be textual custom attributes or both + // numerical custom attributes (same type). + message MergedFacet { + // The merged facet key should be a valid facet key that is different than + // the facet key of the current catalog attribute. We refer this is + // merged facet key as the child of the current catalog attribute. This + // merged facet key can't be a parent of another facet key (i.e. no + // directed path of length 2). This merged facet key needs to be either a + // textual custom attribute or a numerical custom attribute. + string merged_facet_key = 1; + } + + // Options to rerank based on facet values engaged by the user for the + // current key. That key needs to be a custom textual key and facetable. + // To use this control, you also need to pass all the facet keys engaged by + // the user in the request using the field [SearchRequest.FacetSpec]. In + // particular, if you don't pass the facet keys engaged that you want to + // rerank on, this control won't be effective. Moreover, to obtain better + // results, the facet values that you want to rerank on should be close to + // English (ideally made of words, underscores, and spaces). + message RerankConfig { + // If set to true, then we also rerank the dynamic facets based on the + // facet values engaged by the user for the current attribute key during + // serving. + bool rerank_facet = 1; + + // If empty, rerank on all facet values for the current key. Otherwise, + // will rerank on the facet values from this list only. + repeated string facet_values = 2; + } + + // If you don't set the facet + // [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.intervals] + // in the request to a numerical attribute, then we use the computed + // intervals with rounded bounds obtained from all its product numerical + // attribute values. The computed intervals might not be ideal for some + // attributes. Therefore, we give you the option to overwrite them with the + // facet_intervals field. The maximum of facet intervals per + // [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 40. + // Each interval must have a lower bound or an upper bound. If both bounds + // are provided, then the lower bound must be smaller or equal than the + // upper bound. + repeated Interval facet_intervals = 1; + + // Each instance represents a list of attribute values to ignore as facet + // values for a specific time range. The maximum number of instances per + // [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 25. + repeated IgnoredFacetValues ignored_facet_values = 2; + + // Each instance replaces a list of facet values by a merged facet + // value. If a facet value is not in any list, then it will stay the same. + // To avoid conflicts, only paths of length 1 are accepted. In other words, + // if "dark_blue" merged into "BLUE", then the latter can't merge into + // "blues" because this would create a path of length 2. The maximum number + // of instances of MergedFacetValue per + // [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] is 100. + // This feature is available only for textual custom attributes. + repeated MergedFacetValue merged_facet_values = 3; + + // Use this field only if you want to merge a facet key into another facet + // key. + MergedFacet merged_facet = 4; + + // Set this field only if you want to rerank based on facet values engaged + // by the user for the current key. This option is only possible for custom + // facetable textual keys. + RerankConfig rerank_config = 5; + } + // The type of an attribute. enum AttributeType { // The type of the attribute is unknown. @@ -211,7 +330,9 @@ message CatalogAttribute { // are indexed so that it can be filtered, faceted, or boosted in // [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search]. // - // Must be specified, otherwise throws INVALID_FORMAT error. + // Must be specified when + // [AttributesConfig.attribute_config_level][google.cloud.retail.v2alpha.AttributesConfig.attribute_config_level] + // is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. IndexableOption indexable_option = 5; // If DYNAMIC_FACETABLE_ENABLED, attribute values are available for dynamic @@ -233,7 +354,9 @@ message CatalogAttribute { // [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search], // as there are no text values associated to numerical attributes. // - // Must be specified, otherwise throws INVALID_FORMAT error. + // Must be specified, when + // [AttributesConfig.attribute_config_level][google.cloud.retail.v2alpha.AttributesConfig.attribute_config_level] + // is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. SearchableOption searchable_option = 7; // When @@ -255,6 +378,9 @@ message CatalogAttribute { // results. If unset, the server behavior defaults to // [RETRIEVABLE_DISABLED][google.cloud.retail.v2alpha.CatalogAttribute.RetrievableOption.RETRIEVABLE_DISABLED]. RetrievableOption retrievable_option = 12; + + // Contains facet options. + FacetConfig facet_config = 13; } // Catalog level attribute config. @@ -344,8 +470,8 @@ message CompletionConfig { // Output only. Name of the LRO corresponding to the latest suggestion terms // list import. // - // Can use [GetOperation][google.longrunning.Operations.GetOperation] API to - // retrieve the latest state of the Long Running Operation. + // Can use [GetOperation][google.longrunning.Operations.GetOperation] API + // method to retrieve the latest state of the Long Running Operation. string last_suggestions_import_operation = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -375,10 +501,10 @@ message CompletionConfig { } // Represents a link between a Merchant Center account and a branch. -// Once a link is established, products from the linked merchant center account -// will be streamed to the linked branch. +// After a link is established, products from the linked Merchant Center account +// are streamed to the linked branch. message MerchantCenterLink { - // Required. The linked [Merchant center account + // Required. The linked [Merchant Center account // ID](https://developers.google.com/shopping-content/guides/accountstatuses). // The account must be a standalone account or a sub-account of a MCA. int64 merchant_center_account_id = 1 [(google.api.field_behavior) = REQUIRED]; @@ -388,7 +514,7 @@ message MerchantCenterLink { // empty value will use the currently configured default branch. However, // changing the default branch later on won't change the linked branch here. // - // A single branch ID can only have one linked merchant center account ID. + // A single branch ID can only have one linked Merchant Center account ID. string branch_id = 2; // String representing the destination to import for, all if left empty. @@ -470,8 +596,8 @@ message Catalog { [(google.api.field_behavior) = REQUIRED]; // The Merchant Center linking configuration. - // Once a link is added, the data stream from Merchant Center to Cloud Retail + // After a link is added, the data stream from Merchant Center to Cloud Retail // will be enabled automatically. The requester must have access to the - // merchant center account in order to make changes to this field. + // Merchant Center account in order to make changes to this field. MerchantCenterLinkingConfig merchant_center_linking_config = 6; } diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/common.proto b/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/common.proto index a112dcdebe4d..1b6da16d9378 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/common.proto +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/common.proto @@ -124,6 +124,12 @@ message Condition { // Range of time(s) specifying when Condition is active. // Condition true if any time range matches. repeated TimeRange active_time_range = 3; + + // Used to support browse uses cases. + // A list (up to 10 entries) of categories or departments. + // The format should be the same as + // [UserEvent.page_categories][google.cloud.retail.v2alpha.UserEvent.page_categories]; + repeated string page_categories = 4; } // A rule is a condition-action pair @@ -173,17 +179,19 @@ message Rule { } // * Rule Condition: - // - No - // [Condition.query_terms][google.cloud.retail.v2alpha.Condition.query_terms] - // provided is a global match. - // - 1 or more - // [Condition.query_terms][google.cloud.retail.v2alpha.Condition.query_terms] - // provided are combined with OR operator. + // - No + // [Condition.query_terms][google.cloud.retail.v2alpha.Condition.query_terms] + // provided is a global match. + // - 1 or more + // [Condition.query_terms][google.cloud.retail.v2alpha.Condition.query_terms] + // provided are combined with OR operator. + // // * Action Input: The request query and filter that are applied to the // retrieved products, in addition to any filters already provided with the // SearchRequest. The AND operator is used to combine the query's existing // filters with the filter rule(s). NOTE: May result in 0 results when // filters conflict. + // // * Action Result: Filters the returned objects to be ONLY those that passed // the filter. message FilterAction { @@ -193,9 +201,8 @@ message Rule { // set. // * Filter syntax is identical to // [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter]. - // See more - // details at the Retail Search - // [user guide](/retail/search/docs/filter-and-order#filter). + // For more + // information, see [Filter](/retail/docs/filter-and-order#filter). // * To filter products with product ID "product_1" or "product_2", and // color // "Red" or "Blue":
@@ -208,7 +215,7 @@ message Rule { // Redirects a shopper to a specific page. // // * Rule Condition: - // - Must specify + // Must specify // [Condition.query_terms][google.cloud.retail.v2alpha.Condition.query_terms]. // * Action Input: Request Query // * Action Result: Redirects shopper to provided uri. @@ -290,6 +297,78 @@ message Rule { repeated string ignore_terms = 1; } + // Force returns an attribute/facet in the request around a certain position + // or above. + // + // * Rule Condition: + // Must specify non-empty + // [Condition.query_terms][google.cloud.retail.v2alpha.Condition.query_terms] + // (for search only) or + // [Condition.page_categories][google.cloud.retail.v2alpha.Condition.page_categories] + // (for browse only), but can't specify both. + // + // * Action Inputs: attribute name, position + // + // * Action Result: Will force return a facet key around a certain position + // or above if the condition is satisfied. + // + // Example: Suppose the query is "shoes", the + // [Condition.query_terms][google.cloud.retail.v2alpha.Condition.query_terms] + // is "shoes", the + // [ForceReturnFacetAction.FacetPositionAdjustment.attribute_name][google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment.attribute_name] + // is "size" and the + // [ForceReturnFacetAction.FacetPositionAdjustment.position][google.cloud.retail.v2alpha.Rule.ForceReturnFacetAction.FacetPositionAdjustment.position] + // is 8. + // + // Two cases: a) The facet key "size" is not already in the top 8 slots, then + // the facet "size" will appear at a position close to 8. b) The facet key + // "size" in among the top 8 positions in the request, then it will stay at + // its current rank. + message ForceReturnFacetAction { + // Each facet position adjustment consists of a single attribute name (i.e. + // facet key) along with a specified position. + message FacetPositionAdjustment { + // The attribute name to force return as a facet. Each attribute name + // should be a valid attribute name, be non-empty and contain at most 80 + // characters long. + string attribute_name = 1; + + // This is the position in the request as explained above. It should be + // strictly positive be at most 100. + int32 position = 2; + } + + // Each instance corresponds to a force return attribute for the given + // condition. There can't be more 3 instances here. + repeated FacetPositionAdjustment facet_position_adjustments = 1; + } + + // Removes an attribute/facet in the request if is present. + // + // * Rule Condition: + // Must specify non-empty + // [Condition.query_terms][google.cloud.retail.v2alpha.Condition.query_terms] + // (for search only) or + // [Condition.page_categories][google.cloud.retail.v2alpha.Condition.page_categories] + // (for browse only), but can't specify both. + // + // * Action Input: attribute name + // + // * Action Result: Will remove the attribute (as a facet) from the request + // if it is present. + // + // Example: Suppose the query is "shoes", the + // [Condition.query_terms][google.cloud.retail.v2alpha.Condition.query_terms] + // is "shoes" and the attribute name "size", then facet key "size" will be + // removed from the request (if it is present). + message RemoveFacetAction { + // The attribute names (i.e. facet keys) to remove from the dynamic facets + // (if present in the request). There can't be more 3 attribute names. + // Each attribute name should be a valid attribute name, be non-empty and + // contain at most 80 characters. + repeated string attribute_names = 1; + } + // An action must be provided. oneof action { // A boost action. @@ -316,6 +395,12 @@ message Rule { // Treats a set of terms as synonyms of one another. TwowaySynonymsAction twoway_synonyms_action = 11; + + // Force returns an attribute as a facet in the request. + ForceReturnFacetAction force_return_facet_action = 12; + + // Remove an attribute as a facet in the request (if present). + RemoveFacetAction remove_facet_action = 13; } // Required. The condition that triggers the rule. diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/completion_service.proto b/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/completion_service.proto index 3b90365b05b2..13a7ce610776 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/completion_service.proto +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/completion_service.proto @@ -157,10 +157,10 @@ message CompleteQueryRequest { // This field is only available for "cloud-retail" dataset. bool enable_attribute_suggestions = 9; - // The entity for customers that may run multiple different entities, domains, - // sites or regions, for example, `Google US`, `Google Ads`, `Waymo`, + // The entity for customers who run multiple entities, domains, sites, or + // regions, for example, `Google US`, `Google Ads`, `Waymo`, // `google.com`, `youtube.com`, etc. - // If this is set, it should be exactly matched with + // If this is set, it must be an exact match with // [UserEvent.entity][google.cloud.retail.v2alpha.UserEvent.entity] to get // per-entity autocomplete results. string entity = 10; @@ -187,19 +187,22 @@ message CompleteQueryResponse { // Facet information for the suggestion term. Gives the number of items // resulting from a search with this suggestion term for each facet. // - // This is an experimental feature for limited customers. Please reach out - // to the support team if you would like to receive this information. + // This is an experimental feature for limited customers. If you want to + // receive this facet information, reach out to the Retail support team. repeated SearchResponse.Facet facets = 3; // Total number of products associated with a search with this suggestion. // - // This is an experimental feature for limited customers. Please reach out - // to the support team if you would like to receive this information. + // This is an experimental feature for limited customers. If you want to + // receive this product count information, reach out to the Retail support + // team. int32 total_product_count = 4; } - // Recent search of this user. + // Deprecated: Recent search of this user. message RecentSearchResult { + option deprecated = true; + // The recent search query. string recent_search = 1; } @@ -220,9 +223,9 @@ message CompleteQueryResponse { // attribution of complete model performance. string attribution_token = 2; - // Matched recent searches of this user. The maximum number of recent searches - // is 10. This field is a restricted feature. Contact Retail Search support - // team if you are interested in enabling it. + // Deprecated. Matched recent searches of this user. The maximum number of + // recent searches is 10. This field is a restricted feature. If you want to + // enable it, contact Retail Search support. // // This feature is only available when // [CompleteQueryRequest.visitor_id][google.cloud.retail.v2alpha.CompleteQueryRequest.visitor_id] @@ -241,7 +244,7 @@ message CompleteQueryResponse { // // Recent searches are deduplicated. More recent searches will be reserved // when duplication happens. - repeated RecentSearchResult recent_search_results = 3; + repeated RecentSearchResult recent_search_results = 3 [deprecated = true]; // A map of matched attribute suggestions. This field is only available for // "cloud-retail" dataset. diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/import_config.proto b/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/import_config.proto index d0077e56865e..e82b7efb38d0 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/import_config.proto +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/import_config.proto @@ -196,7 +196,8 @@ message ImportProductsRequest { ImportErrorsConfig errors_config = 3; // Indicates which fields in the provided imported `products` to update. If - // not set, all fields are updated. + // not set, all fields are updated. If provided, only the existing product + // fields are updated. Missing products will not be created. google.protobuf.FieldMask update_mask = 4; // The mode of reconciliation between existing products and the products to be @@ -212,9 +213,14 @@ message ImportProductsRequest { // Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`. It has // to be within the same project as // [ImportProductsRequest.parent][google.cloud.retail.v2alpha.ImportProductsRequest.parent]. - // Make sure that `service-@gcp-sa-retail.iam.gserviceaccount.com` has the - // `pubsub.topics.publish` IAM permission on the topic. + // Make sure that both + // `cloud-retail-customer-data-access@system.gserviceaccount.com` and + // `service-@gcp-sa-retail.iam.gserviceaccount.com` + // have the `pubsub.topics.publish` IAM permission on the topic. + // + // Only supported when + // [ImportProductsRequest.reconciliation_mode][google.cloud.retail.v2alpha.ImportProductsRequest.reconciliation_mode] + // is set to `FULL`. string notification_pubsub_topic = 7; // If true, this performs the FULL import even if it would delete a large diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/merchant_center_account_link.proto b/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/merchant_center_account_link.proto index 9135ab84388b..6a979bf27912 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/merchant_center_account_link.proto +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/merchant_center_account_link.proto @@ -30,8 +30,8 @@ option php_namespace = "Google\\Cloud\\Retail\\V2alpha"; option ruby_package = "Google::Cloud::Retail::V2alpha"; // Represents a link between a Merchant Center account and a branch. -// Once a link is established, products from the linked merchant center account -// will be streamed to the linked branch. +// After a link is established, products from the linked Merchant Center account +// are streamed to the linked branch. message MerchantCenterAccountLink { option (google.api.resource) = { type: "retail.googleapis.com/MerchantCenterAccountLink" @@ -88,12 +88,12 @@ message MerchantCenterAccountLink { // The account must be a standalone account or a sub-account of a MCA. int64 merchant_center_account_id = 2 [(google.api.field_behavior) = REQUIRED]; - // Required. The branch id (e.g. 0/1/2) within the catalog that products from + // Required. The branch ID (e.g. 0/1/2) within the catalog that products from // merchant_center_account_id are streamed to. When updating this field, an // empty value will use the currently configured default branch. However, // changing the default branch later on won't change the linked branch here. // - // A single branch id can only have one linked merchant center account id. + // A single branch ID can only have one linked Merchant Center account ID. string branch_id = 3 [(google.api.field_behavior) = REQUIRED]; // The FeedLabel used to perform filtering. @@ -122,8 +122,12 @@ message MerchantCenterAccountLink { // Output only. Represents the state of the link. State state = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. GCP project ID. + // Output only. Google Cloud project ID. string project_id = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. An optional arbitrary string that could be used as a tag for + // tracking link source. + string source = 10 [(google.api.field_behavior) = OPTIONAL]; } // Common metadata related to the progress of the operations. diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/merchant_center_account_link_service.proto b/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/merchant_center_account_link_service.proto index d79defdec39a..2decfde2e311 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/merchant_center_account_link_service.proto +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/merchant_center_account_link_service.proto @@ -86,7 +86,7 @@ service MerchantCenterAccountLinkService { message ListMerchantCenterAccountLinksRequest { // Required. The parent Catalog of the resource. // It must match this format: - // projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID} + // `projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { type: "retail.googleapis.com/Catalog" } @@ -107,7 +107,7 @@ message ListMerchantCenterAccountLinksResponse { message CreateMerchantCenterAccountLinkRequest { // Required. The branch resource where this MerchantCenterAccountLink will be // created. Format: - // projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}} + // `projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { type: "retail.googleapis.com/Catalog" } @@ -130,7 +130,7 @@ message CreateMerchantCenterAccountLinkRequest { // method. message DeleteMerchantCenterAccountLinkRequest { // Required. Full resource name. Format: - // projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/merchantCenterAccountLinks/{merchant_center_account_link_id} + // `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/merchantCenterAccountLinks/{merchant_center_account_link_id}` string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/model.proto b/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/model.proto index 51d474797ef6..1a1791c7637c 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/model.proto +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/model.proto @@ -253,6 +253,25 @@ message Model { [(google.api.field_behavior) = OPTIONAL]; } + // Additional configs for the frequently-bought-together model type. + message FrequentlyBoughtTogetherFeaturesConfig { + // Optional. Specifies the context of the model when it is used in predict + // requests. Can only be set for the `frequently-bought-together` type. If + // it isn't specified, it defaults to + // [MULTIPLE_CONTEXT_PRODUCTS][google.cloud.retail.v2alpha.Model.ContextProductsType.MULTIPLE_CONTEXT_PRODUCTS]. + ContextProductsType context_products_type = 2 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Additional model features config. + message ModelFeaturesConfig { + oneof type_dedicated_config { + // Additional configs for frequently-bought-together models. + FrequentlyBoughtTogetherFeaturesConfig frequently_bought_together_config = + 1; + } + } + // The serving state of the model. enum ServingState { // Unspecified serving state. @@ -321,6 +340,22 @@ message Model { DATA_ERROR = 2; } + // Use single or multiple context products for recommendations. + enum ContextProductsType { + // Unspecified default value, should never be explicitly set. + // Defaults to + // [MULTIPLE_CONTEXT_PRODUCTS][google.cloud.retail.v2alpha.Model.ContextProductsType.MULTIPLE_CONTEXT_PRODUCTS]. + CONTEXT_PRODUCTS_TYPE_UNSPECIFIED = 0; + + // Use only a single product as context for the recommendation. Typically + // used on pages like add-to-cart or product details. + SINGLE_CONTEXT_PRODUCT = 1; + + // Use one or multiple products as context for the recommendation. Typically + // used on shopping cart pages. + MULTIPLE_CONTEXT_PRODUCTS = 2; + } + // Training configuration specific to a // [Model.type][google.cloud.retail.v2alpha.Model.type] - currently, only for // page optimization. @@ -448,4 +483,8 @@ message Model { // PageOptimizationConfig. repeated ServingConfigList serving_config_lists = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Additional model features config. + ModelFeaturesConfig model_features_config = 22 + [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/product.proto b/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/product.proto index 394f21912e76..88a391f1fe8f 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/product.proto +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/product.proto @@ -33,10 +33,6 @@ option java_package = "com.google.cloud.retail.v2alpha"; option objc_class_prefix = "RETAIL"; option php_namespace = "Google\\Cloud\\Retail\\V2alpha"; option ruby_package = "Google::Cloud::Retail::V2alpha"; -option (google.api.resource_definition) = { - type: "retail.googleapis.com/Branch" - pattern: "projects/{project}/locations/{location}/catalogs/{catalog}/branches/{branch}" -}; // Product captures all metadata information of items to be recommended or // searched. @@ -103,24 +99,22 @@ message Product { } oneof expiration { - // The timestamp when this product becomes unavailable for - // [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search]. - // Note that this is only applicable to - // [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] and - // [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION], - // and ignored for - // [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]. In - // general, we suggest the users to delete the stale products explicitly, - // instead of using this field to determine staleness. + // Note that this field is applied in the following ways: // - // If it is set, the [Product][google.cloud.retail.v2alpha.Product] is not - // available for - // [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search] - // after [expire_time][google.cloud.retail.v2alpha.Product.expire_time]. - // However, the product can still be retrieved by - // [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct] - // and - // [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts]. + // * If the [Product][google.cloud.retail.v2alpha.Product] is already + // expired when it is uploaded, this product + // is not indexed for search. + // + // * If the [Product][google.cloud.retail.v2alpha.Product] is not expired + // when it is uploaded, only the + // [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY]'s and + // [Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION]'s + // expireTime is respected, and + // [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT]'s + // expireTime is not used. + // + // In general, we suggest the users to delete the stale + // products explicitly, instead of using this field to determine staleness. // // [expire_time][google.cloud.retail.v2alpha.Product.expire_time] must be // later than @@ -264,9 +258,10 @@ message Product { // INVALID_ARGUMENT error is returned. // // At most 250 values are allowed per - // [Product][google.cloud.retail.v2alpha.Product]. Empty values are not - // allowed. Each value must be a UTF-8 encoded string with a length limit of - // 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. + // [Product][google.cloud.retail.v2alpha.Product] unless overridden through + // the Google Cloud console. Empty values are not allowed. Each value must be + // a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, + // an INVALID_ARGUMENT error is returned. // // Corresponding properties: Google Merchant Center property // [google_product_category][mc_google_product_category]. Schema.org property @@ -288,9 +283,10 @@ message Product { // The brands of the product. // - // A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded - // string with a length limit of 1,000 characters. Otherwise, an - // INVALID_ARGUMENT error is returned. + // A maximum of 30 brands are allowed unless overridden through the Google + // Cloud console. Each + // brand must be a UTF-8 encoded string with a length limit of 1,000 + // characters. Otherwise, an INVALID_ARGUMENT error is returned. // // Corresponding properties: Google Merchant Center property // [brand](https://support.google.com/merchants/answer/6324351). Schema.org diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/product_service.proto b/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/product_service.proto index 85f442a3a458..72c1edecfb95 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/product_service.proto +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/product_service.proto @@ -196,10 +196,11 @@ service ProductService { }; } - // It is recommended to use the + // We recommend that you use the // [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories] - // method instead of - // [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.AddFulfillmentPlaces]. + // method instead of the + // [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.AddFulfillmentPlaces] + // method. // [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories] // achieves the same results but provides more fine-grained control over // ingesting local inventory data. @@ -238,10 +239,11 @@ service ProductService { }; } - // It is recommended to use the + // We recommend that you use the // [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories] - // method instead of - // [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.RemoveFulfillmentPlaces]. + // method instead of the + // [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.RemoveFulfillmentPlaces] + // method. // [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories] // achieves the same results but provides more fine-grained control over // ingesting local inventory data. diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/project.proto b/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/project.proto new file mode 100644 index 000000000000..6b91fce278d8 --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/project.proto @@ -0,0 +1,188 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.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. + +syntax = "proto3"; + +package google.cloud.retail.v2alpha; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/retail/v2alpha/common.proto"; + +option csharp_namespace = "Google.Cloud.Retail.V2Alpha"; +option go_package = "cloud.google.com/go/retail/apiv2alpha/retailpb;retailpb"; +option java_multiple_files = true; +option java_outer_classname = "ProjectProto"; +option java_package = "com.google.cloud.retail.v2alpha"; +option objc_class_prefix = "RETAIL"; +option php_namespace = "Google\\Cloud\\Retail\\V2alpha"; +option ruby_package = "Google::Cloud::Retail::V2alpha"; + +// Project level logging config to control what level of log will be generated +// and written to Cloud Logging. +message LoggingConfig { + option (google.api.resource) = { + type: "retail.googleapis.com/LoggingConfig" + pattern: "projects/{project}/loggingConfig" + }; + + // The logging configurations for services supporting log generation. + message LogGenerationRule { + // The logging level. + // + // By default it is set to `LOG_WARNINGS_AND_ABOVE`. + LoggingLevel logging_level = 1; + + // The log sample rate for INFO level log entries. You can use this to + // reduce the number of entries generated for INFO level logs. + // + // DO NOT set this field if the + // [logging_level][google.cloud.retail.v2alpha.LoggingConfig.LogGenerationRule.logging_level] + // is not + // [LoggingLevel.LOG_ALL][google.cloud.retail.v2alpha.LoggingConfig.LoggingLevel.LOG_ALL]. + // Otherwise, an INVALID_ARGUMENT error is returned. + // + // Sample rate for INFO logs defaults to 1 when unset (generate and send all + // INFO logs to Cloud Logging). Its value must be greater than 0 and less + // than or equal to 1. + optional float info_log_sample_rate = 2; + } + + // The granular logging configurations for supported services. + message ServiceLogGenerationRule { + // Required. Supported service names: + // "CatalogService", + // "CompletionService", + // "ControlService", + // "MerchantCenterStreaming", + // "ModelService", + // "PredictionService", + // "ProductService", + // "ServingConfigService", + // "UserEventService", + string service_name = 1 [(google.api.field_behavior) = REQUIRED]; + + // The log generation rule that applies to this service. + LogGenerationRule log_generation_rule = 3; + } + + // The setting to control log generation. + enum LoggingLevel { + // Default value. Defaults to `LOG_FOR_WARNINGS_AND_ABOVE` if unset. + LOGGING_LEVEL_UNSPECIFIED = 0; + + // No log will be generated and sent to Cloud Logging. + LOGGING_DISABLED = 1; + + // Log for operations resulted in fatal error. + LOG_ERRORS_AND_ABOVE = 2; + + // In addition to `LOG_ERRORS_AND_ABOVE`, also log for operations that have + // soft errors, quality suggestions. + LOG_WARNINGS_AND_ABOVE = 3; + + // Log all operations, including successful ones. + LOG_ALL = 4; + } + + // Required. Immutable. The name of the LoggingConfig singleton resource. + // Format: projects/*/loggingConfig + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // The log generation rule that applies by default to all services + // supporting log generation. It can be overridden by + // [ServiceLogGenerationRule][google.cloud.retail.v2alpha.LoggingConfig.ServiceLogGenerationRule] + // for service level control. + LogGenerationRule default_log_generation_rule = 2; + + // Controls logging configurations more granularly for each supported + // service. + // + // This overrides the + // [default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule] + // for the services specified. For those not mentioned, they will fallback to + // the default log generation rule. + repeated ServiceLogGenerationRule service_log_generation_rules = 4; +} + +// Metadata that describes a Cloud Retail Project. +message Project { + option (google.api.resource) = { + type: "retail.googleapis.com/RetailProject" + pattern: "projects/{project}/retailProject" + }; + + // Output only. Full resource name of the retail project, such as + // `projects/{project_id_or_number}/retailProject`. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Retail API solutions that the project has enrolled. + repeated SolutionType enrolled_solutions = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Project level alert config. +message AlertConfig { + option (google.api.resource) = { + type: "retail.googleapis.com/AlertConfig" + pattern: "projects/{project}/alertConfig" + }; + + // Alert policy for a customer. + message AlertPolicy { + // Recipient contact information. + message Recipient { + // Email address of the recipient. + string email_address = 1; + } + + // The enrollment status enum for alert policy. + enum EnrollStatus { + // Default value. Used for customers who have not responded to the + // alert policy. + ENROLL_STATUS_UNSPECIFIED = 0; + + // Customer is enrolled in this policy. + ENROLLED = 1; + + // Customer declined this policy. + DECLINED = 2; + } + + // The feature that provides alerting capability. Supported value is + // only `search-data-quality` for now. + string alert_group = 1; + + // The enrollment status of a customer. + EnrollStatus enroll_status = 2; + + // Recipients for the alert policy. + // One alert policy should not exceed 20 recipients. + repeated Recipient recipients = 3; + } + + // Required. Immutable. The name of the AlertConfig singleton resource. + // Format: projects/*/alertConfig + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Alert policies for a customer. + // They must be unique by [AlertPolicy.alert_group] + repeated AlertPolicy alert_policies = 2; +} diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/project_service.proto b/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/project_service.proto new file mode 100644 index 000000000000..4e7959017372 --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/project_service.proto @@ -0,0 +1,273 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.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. + +syntax = "proto3"; + +package google.cloud.retail.v2alpha; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/retail/v2alpha/common.proto"; +import "google/cloud/retail/v2alpha/project.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Cloud.Retail.V2Alpha"; +option go_package = "cloud.google.com/go/retail/apiv2alpha/retailpb;retailpb"; +option java_multiple_files = true; +option java_outer_classname = "ProjectServiceProto"; +option java_package = "com.google.cloud.retail.v2alpha"; +option objc_class_prefix = "RETAIL"; +option php_namespace = "Google\\Cloud\\Retail\\V2alpha"; +option ruby_package = "Google::Cloud::Retail::V2alpha"; + +// Service for settings at Project level. +service ProjectService { + option (google.api.default_host) = "retail.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Gets the project. + // + // Throws `NOT_FOUND` if the project wasn't initialized for the Retail API + // service. + rpc GetProject(GetProjectRequest) returns (Project) { + option (google.api.http) = { + get: "/v2alpha/{name=projects/*/retailProject}" + }; + option (google.api.method_signature) = "name"; + } + + // Accepts service terms for this project. + // By making requests to this API, you agree to the terms of service linked + // below. + // https://cloud.google.com/retail/data-use-terms + rpc AcceptTerms(AcceptTermsRequest) returns (Project) { + option (google.api.http) = { + post: "/v2alpha/{project=projects/*/retailProject}:acceptTerms" + body: "*" + }; + option (google.api.method_signature) = "project"; + } + + // The method enrolls a solution of type [Retail + // Search][google.cloud.retail.v2alpha.SolutionType.SOLUTION_TYPE_SEARCH] + // into a project. + // + // The [Recommendations AI solution + // type][google.cloud.retail.v2alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION] + // is enrolled by default when your project enables Retail API, so you don't + // need to call the enrollSolution method for recommendations. + rpc EnrollSolution(EnrollSolutionRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v2alpha/{project=projects/*}:enrollSolution" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "google.cloud.retail.v2alpha.EnrollSolutionResponse" + metadata_type: "google.cloud.retail.v2alpha.EnrollSolutionMetadata" + }; + } + + // Lists all the retail API solutions the project has enrolled. + rpc ListEnrolledSolutions(ListEnrolledSolutionsRequest) + returns (ListEnrolledSolutionsResponse) { + option (google.api.http) = { + get: "/v2alpha/{parent=projects/*}:enrolledSolutions" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets the [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] of the + // requested project. + rpc GetLoggingConfig(GetLoggingConfigRequest) returns (LoggingConfig) { + option (google.api.http) = { + get: "/v2alpha/{name=projects/*/loggingConfig}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates the [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] of + // the requested project. + rpc UpdateLoggingConfig(UpdateLoggingConfigRequest) returns (LoggingConfig) { + option (google.api.http) = { + patch: "/v2alpha/{logging_config.name=projects/*/loggingConfig}" + body: "logging_config" + }; + option (google.api.method_signature) = "logging_config,update_mask"; + } + + // Get the [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] of the + // requested project. + rpc GetAlertConfig(GetAlertConfigRequest) returns (AlertConfig) { + option (google.api.http) = { + get: "/v2alpha/{name=projects/*/alertConfig}" + }; + option (google.api.method_signature) = "name"; + } + + // Update the alert config of the requested project. + rpc UpdateAlertConfig(UpdateAlertConfigRequest) returns (AlertConfig) { + option (google.api.http) = { + patch: "/v2alpha/{alert_config.name=projects/*/alertConfig}" + body: "alert_config" + }; + option (google.api.method_signature) = "alert_config,update_mask"; + } +} + +// Request for GetProject method. +message GetProjectRequest { + // Required. Full resource name of the project. Format: + // `projects/{project_number_or_id}/retailProject` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "retail.googleapis.com/RetailProject" + } + ]; +} + +// Request for AcceptTerms method. +message AcceptTermsRequest { + // Required. Full resource name of the project. Format: + // `projects/{project_number_or_id}/retailProject` + string project = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "retail.googleapis.com/RetailProject" + } + ]; +} + +// Request for EnrollSolution method. +message EnrollSolutionRequest { + // Required. Full resource name of parent. Format: + // `projects/{project_number_or_id}` + string project = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudresourcemanager.googleapis.com/Project" + } + ]; + + // Required. Solution to enroll. + SolutionType solution = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Response for EnrollSolution method. +message EnrollSolutionResponse { + // Retail API solution that the project has enrolled. + SolutionType enrolled_solution = 1; +} + +// Metadata related to the EnrollSolution method. +// This will be returned by the google.longrunning.Operation.metadata field. +message EnrollSolutionMetadata {} + +// Request for ListEnrolledSolutions method. +message ListEnrolledSolutionsRequest { + // Required. Full resource name of parent. Format: + // `projects/{project_number_or_id}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudresourcemanager.googleapis.com/Project" + } + ]; +} + +// Response for ListEnrolledSolutions method. +message ListEnrolledSolutionsResponse { + // Retail API solutions that the project has enrolled. + repeated SolutionType enrolled_solutions = 1; +} + +// Request for +// [ProjectService.GetLoggingConfig][google.cloud.retail.v2alpha.ProjectService.GetLoggingConfig] +// method. +message GetLoggingConfigRequest { + // Required. Full LoggingConfig resource name. Format: + // projects/{project_number}/loggingConfig + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "retail.googleapis.com/LoggingConfig" + } + ]; +} + +// Request for +// [ProjectService.UpdateLoggingConfig][google.cloud.retail.v2alpha.ProjectService.UpdateLoggingConfig] +// method. +message UpdateLoggingConfigRequest { + // Required. The [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] to + // update. + // + // If the caller does not have permission to update the + // [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig], then a + // PERMISSION_DENIED error is returned. + // + // If the [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] to update + // does not exist, a NOT_FOUND error is returned. + LoggingConfig logging_config = 1 [(google.api.field_behavior) = REQUIRED]; + + // Indicates which fields in the provided + // [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] to update. The + // following are the only supported fields: + // + // * [LoggingConfig.default_log_generation_rule][google.cloud.retail.v2alpha.LoggingConfig.default_log_generation_rule] + // * [LoggingConfig.service_log_generation_rules][google.cloud.retail.v2alpha.LoggingConfig.service_log_generation_rules] + // + // If not set, all supported fields are updated. + google.protobuf.FieldMask update_mask = 2; +} + +// Request for +// [ProjectService.GetAlertConfig][google.cloud.retail.v2alpha.ProjectService.GetAlertConfig] +// method. +message GetAlertConfigRequest { + // Required. Full AlertConfig resource name. Format: + // projects/{project_number}/alertConfig + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "retail.googleapis.com/AlertConfig" + } + ]; +} + +// Request for +// [ProjectService.UpdateAlertConfig][google.cloud.retail.v2alpha.ProjectService.UpdateAlertConfig] +// method. +message UpdateAlertConfigRequest { + // Required. The [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] to + // update. + // + // If the caller does not have permission to update the + // [AlertConfig][google.cloud.retail.v2alpha.AlertConfig], then a + // PERMISSION_DENIED error is returned. + // + // If the [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] to update + // does not exist, a NOT_FOUND error is returned. + AlertConfig alert_config = 1 [(google.api.field_behavior) = REQUIRED]; + + // Indicates which fields in the provided + // [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] to update. If not + // set, all supported fields are updated. + google.protobuf.FieldMask update_mask = 2; +} diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/promotion.proto b/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/promotion.proto index b458f4575fd3..b02a84e2117e 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/promotion.proto +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/promotion.proto @@ -34,7 +34,7 @@ message Promotion { // id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT error is // returned. // - // Google Merchant Center property - // [promotion](https://support.google.com/merchants/answer/7050148). + // Corresponds to Google Merchant Center property + // [promotion_id](https://support.google.com/merchants/answer/7050148). string promotion_id = 1; } diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/search_service.proto b/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/search_service.proto index fed0832394f6..bced414d8f6a 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/search_service.proto +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/search_service.proto @@ -119,13 +119,13 @@ message SearchRequest { // values. Maximum number of intervals is 40. // // For all numerical facet keys that appear in the list of products from - // the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + // the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are // computed from their distribution weekly. If the model assigns a high // score to a numerical facet key and its intervals are not specified in - // the search request, these percentiles will become the bounds - // for its intervals and will be returned in the response. If the + // the search request, these percentiles become the bounds + // for its intervals and are returned in the response. If the // facet key intervals are specified in the request, then the specified - // intervals will be returned instead. + // intervals are returned instead. repeated Interval intervals = 2; // Only get facet for the given restricted values. For example, when using @@ -158,14 +158,14 @@ message SearchRequest { // Only get facet values that start with the given string prefix. For // example, suppose "categories" has three values "Women > Shoe", // "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the - // "categories" facet will give only "Women > Shoe" and "Women > Dress". + // "categories" facet gives only "Women > Shoe" and "Women > Dress". // Only supported on textual fields. Maximum is 10. repeated string prefixes = 8; // Only get facet values that contains the given strings. For example, // suppose "categories" has three values "Women > Shoe", // "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the - // "categories" facet will give only "Women > Shoe" and "Men > Shoe". + // "categories" facet gives only "Women > Shoe" and "Men > Shoe". // Only supported on textual fields. Maximum is 10. repeated string contains = 9; @@ -198,7 +198,7 @@ message SearchRequest { string order_by = 4; // The query that is used to compute facet for the given facet key. - // When provided, it will override the default behavior of facet + // When provided, it overrides the default behavior of facet // computation. The query syntax is the same as a filter expression. See // [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter] // for detail syntax and limitations. Notice that there is no limitation @@ -208,9 +208,9 @@ message SearchRequest { // // In the response, // [SearchResponse.Facet.values.value][google.cloud.retail.v2alpha.SearchResponse.Facet.FacetValue.value] - // will be always "1" and + // is always "1" and // [SearchResponse.Facet.values.count][google.cloud.retail.v2alpha.SearchResponse.Facet.FacetValue.count] - // will be the number of results that match the query. + // is the number of results that match the query. // // For example, you can set a customized facet for "shipToStore", // where @@ -218,7 +218,7 @@ message SearchRequest { // is "customizedShipToStore", and // [FacetKey.query][google.cloud.retail.v2alpha.SearchRequest.FacetSpec.FacetKey.query] // is "availability: ANY(\"IN_STOCK\") AND shipToStore: ANY(\"123\")". - // Then the facet will count the products that are both in stock and ship + // Then the facet counts the products that are both in stock and ship // to store "123". string query = 5; @@ -269,15 +269,15 @@ message SearchRequest { // Enables dynamic position for this facet. If set to true, the position of // this facet among all facets in the response is determined by Google - // Retail Search. It will be ordered together with dynamic facets if dynamic + // Retail Search. It is ordered together with dynamic facets if dynamic // facets is enabled. If set to false, the position of this facet in the - // response will be the same as in the request, and it will be ranked before + // response is the same as in the request, and it is ranked before // the facets with dynamic position enable and all dynamic facets. // // For example, you may always want to have rating facet returned in // the response, but it's not necessarily to always display the rating facet // at the top. In that case, you can set enable_dynamic_position to true so - // that the position of rating facet in response will be determined by + // that the position of rating facet in response is determined by // Google Retail Search. // // Another example, assuming you have the following facets in the request: @@ -288,13 +288,13 @@ message SearchRequest { // // * "brands", enable_dynamic_position = false // - // And also you have a dynamic facets enable, which will generate a facet - // 'gender'. Then the final order of the facets in the response can be + // And also you have a dynamic facets enable, which generates a facet + // "gender". Then, the final order of the facets in the response can be // ("price", "brands", "rating", "gender") or ("price", "brands", "gender", // "rating") depends on how Google Retail Search orders "gender" and - // "rating" facets. However, notice that "price" and "brands" will always be - // ranked at 1st and 2nd position since their enable_dynamic_position are - // false. + // "rating" facets. However, notice that "price" and "brands" are always + // ranked at first and second position because their enable_dynamic_position + // values are false. bool enable_dynamic_position = 4; } @@ -513,7 +513,7 @@ message SearchRequest { // or the name of the legacy placement resource, such as // `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. // This field is used to identify the serving config name and the set - // of models that will be used to make the search. + // of models that are used to make the search. string placement = 1 [(google.api.field_behavior) = REQUIRED]; // The branch resource name, such as @@ -579,8 +579,8 @@ message SearchRequest { // The filter syntax consists of an expression language for constructing a // predicate from one or more fields of the products being filtered. Filter - // expression is case-sensitive. See more details at this [user - // guide](https://cloud.google.com/retail/docs/filter-and-order#filter). + // expression is case-sensitive. For more information, see + // [Filter](https://cloud.google.com/retail/docs/filter-and-order#filter). // // If this field is unrecognizable, an INVALID_ARGUMENT is returned. string filter = 10; @@ -589,22 +589,21 @@ message SearchRequest { // checking any filters on the search page. // // The filter applied to every search request when quality improvement such as - // query expansion is needed. For example, if a query does not have enough - // results, an expanded query with - // [SearchRequest.canonical_filter][google.cloud.retail.v2alpha.SearchRequest.canonical_filter] - // will be returned as a supplement of the original query. This field is - // strongly recommended to achieve high search quality. + // query expansion is needed. In the case a query does not have a sufficient + // amount of results this filter will be used to determine whether or not to + // enable the query expansion flow. The original filter will still be used for + // the query expanded search. + // This field is strongly recommended to achieve high search quality. // - // See - // [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter] - // for more details about filter syntax. + // For more information about filter syntax, see + // [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter]. string canonical_filter = 28; // The order in which products are returned. Products can be ordered by // a field in an [Product][google.cloud.retail.v2alpha.Product] object. Leave - // it unset if ordered by relevance. OrderBy expression is case-sensitive. See - // more details at this [user - // guide](https://cloud.google.com/retail/docs/filter-and-order#order). + // it unset if ordered by relevance. OrderBy expression is case-sensitive. For + // more information, see + // [Order](https://cloud.google.com/retail/docs/filter-and-order#order). // // If this field is unrecognizable, an INVALID_ARGUMENT is returned. string order_by = 11; @@ -622,8 +621,8 @@ message SearchRequest { // textual facets can be dynamically generated. DynamicFacetSpec dynamic_facet_spec = 21 [deprecated = true]; - // Boost specification to boost certain products. See more details at this - // [user guide](https://cloud.google.com/retail/docs/boosting). + // Boost specification to boost certain products. For more information, see + // [Boost results](https://cloud.google.com/retail/docs/boosting). // // Notice that if both // [ServingConfig.boost_control_ids][google.cloud.retail.v2alpha.ServingConfig.boost_control_ids] @@ -635,8 +634,8 @@ message SearchRequest { BoostSpec boost_spec = 13; // The query expansion specification that specifies the conditions under which - // query expansion will occur. See more details at this [user - // guide](https://cloud.google.com/retail/docs/result-size#query_expansion). + // query expansion occurs. For more information, see [Query + // expansion](https://cloud.google.com/retail/docs/result-size#query_expansion). QueryExpansionSpec query_expansion_spec = 14; // The relevance threshold of the search results. @@ -644,8 +643,8 @@ message SearchRequest { // Defaults to // [RelevanceThreshold.HIGH][google.cloud.retail.v2alpha.SearchRequest.RelevanceThreshold.HIGH], // which means only the most relevant results are shown, and the least number - // of results are returned. See more details at this [user - // guide](https://cloud.google.com/retail/docs/result-size#relevance_thresholding). + // of results are returned. For more information, see [Adjust result + // size](https://cloud.google.com/retail/docs/result-size#relevance_thresholding). RelevanceThreshold relevance_threshold = 15; // The keys to fetch and rollup the matching @@ -773,9 +772,9 @@ message SearchRequest { // key with multiple resources. // * Keys must start with a lowercase letter or international character. // - // See [Google Cloud - // Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - // for more details. + // For more information, see [Requirements for + // labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + // in the Resource Manager documentation. map labels = 34; // The spell correction specification that specifies the mode under @@ -995,7 +994,8 @@ message SearchResponse { repeated ExperimentInfo experiment_info = 17; } -// Metadata for active A/B testing [Experiments][]. +// Metadata for active A/B testing +// [Experiment][google.cloud.retail.v2alpha.Experiment]. message ExperimentInfo { // Metadata for active serving config A/B tests. message ServingConfigExperiment { @@ -1008,8 +1008,8 @@ message ExperimentInfo { }]; // The fully qualified resource name of the serving config - // [VariantArm.serving_config_id][] responsible for generating the search - // response. For example: + // [Experiment.VariantArm.serving_config_id][google.cloud.retail.v2alpha.Experiment.VariantArm.serving_config_id] + // responsible for generating the search response. For example: // `projects/*/locations/*/catalogs/*/servingConfigs/*`. string experiment_serving_config = 2 [(google.api.resource_reference) = { type: "retail.googleapis.com/ServingConfig" diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/serving_config.proto b/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/serving_config.proto index 10f3121aaecd..d8dc67794303 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/serving_config.proto +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/serving_config.proto @@ -255,6 +255,10 @@ message ServingConfig { // [SOLUTION_TYPE_RECOMMENDATION][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_RECOMMENDATION]. string enable_category_filter_level = 16; + // When the flag is enabled, the products in the denylist will not be filtered + // out in the recommendation filtering results. + bool ignore_recs_denylist = 24; + // The specification for personalization spec. // // Can only be set if diff --git a/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/user_event.proto b/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/user_event.proto index 71d9f4d06e7d..1b810fbbf557 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/user_event.proto +++ b/java-retail/proto-google-cloud-retail-v2alpha/src/main/proto/google/cloud/retail/v2alpha/user_event.proto @@ -37,6 +37,7 @@ message UserEvent { // Required. User event type. Allowed values are: // // * `add-to-cart`: Products being added to cart. + // * `remove-from-cart`: Products being removed from cart. // * `category-page-view`: Special pages such as sale or promotion pages // viewed. // * `detail-page-view`: Products detail page viewed. @@ -274,8 +275,8 @@ message UserEvent { // The entity for customers that may run multiple different entities, domains, // sites or regions, for example, `Google US`, `Google Ads`, `Waymo`, // `google.com`, `youtube.com`, etc. - // It is recommended to set this field to get better per-entity search, - // completion and prediction results. + // We recommend that you set this field to get better per-entity search, + // completion, and prediction results. string entity = 23; } diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/Catalog.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/Catalog.java index d8ef2b60f4ad..ed34d4ec1e57 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/Catalog.java +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/Catalog.java @@ -245,9 +245,9 @@ public com.google.cloud.retail.v2beta.ProductLevelConfig getProductLevelConfig() * *
    * The Merchant Center linking configuration.
-   * Once a link is added, the data stream from Merchant Center to Cloud Retail
+   * After a link is added, the data stream from Merchant Center to Cloud Retail
    * will be enabled automatically. The requester must have access to the
-   * merchant center account in order to make changes to this field.
+   * Merchant Center account in order to make changes to this field.
    * 
* * @@ -265,9 +265,9 @@ public boolean hasMerchantCenterLinkingConfig() { * *
    * The Merchant Center linking configuration.
-   * Once a link is added, the data stream from Merchant Center to Cloud Retail
+   * After a link is added, the data stream from Merchant Center to Cloud Retail
    * will be enabled automatically. The requester must have access to the
-   * merchant center account in order to make changes to this field.
+   * Merchant Center account in order to make changes to this field.
    * 
* * @@ -288,9 +288,9 @@ public boolean hasMerchantCenterLinkingConfig() { * *
    * The Merchant Center linking configuration.
-   * Once a link is added, the data stream from Merchant Center to Cloud Retail
+   * After a link is added, the data stream from Merchant Center to Cloud Retail
    * will be enabled automatically. The requester must have access to the
-   * merchant center account in order to make changes to this field.
+   * Merchant Center account in order to make changes to this field.
    * 
* * @@ -1222,9 +1222,9 @@ public Builder clearProductLevelConfig() { * *
      * The Merchant Center linking configuration.
-     * Once a link is added, the data stream from Merchant Center to Cloud Retail
+     * After a link is added, the data stream from Merchant Center to Cloud Retail
      * will be enabled automatically. The requester must have access to the
-     * merchant center account in order to make changes to this field.
+     * Merchant Center account in order to make changes to this field.
      * 
* * @@ -1241,9 +1241,9 @@ public boolean hasMerchantCenterLinkingConfig() { * *
      * The Merchant Center linking configuration.
-     * Once a link is added, the data stream from Merchant Center to Cloud Retail
+     * After a link is added, the data stream from Merchant Center to Cloud Retail
      * will be enabled automatically. The requester must have access to the
-     * merchant center account in order to make changes to this field.
+     * Merchant Center account in order to make changes to this field.
      * 
* * @@ -1267,9 +1267,9 @@ public boolean hasMerchantCenterLinkingConfig() { * *
      * The Merchant Center linking configuration.
-     * Once a link is added, the data stream from Merchant Center to Cloud Retail
+     * After a link is added, the data stream from Merchant Center to Cloud Retail
      * will be enabled automatically. The requester must have access to the
-     * merchant center account in order to make changes to this field.
+     * Merchant Center account in order to make changes to this field.
      * 
* * @@ -1295,9 +1295,9 @@ public Builder setMerchantCenterLinkingConfig( * *
      * The Merchant Center linking configuration.
-     * Once a link is added, the data stream from Merchant Center to Cloud Retail
+     * After a link is added, the data stream from Merchant Center to Cloud Retail
      * will be enabled automatically. The requester must have access to the
-     * merchant center account in order to make changes to this field.
+     * Merchant Center account in order to make changes to this field.
      * 
* * @@ -1320,9 +1320,9 @@ public Builder setMerchantCenterLinkingConfig( * *
      * The Merchant Center linking configuration.
-     * Once a link is added, the data stream from Merchant Center to Cloud Retail
+     * After a link is added, the data stream from Merchant Center to Cloud Retail
      * will be enabled automatically. The requester must have access to the
-     * merchant center account in order to make changes to this field.
+     * Merchant Center account in order to make changes to this field.
      * 
* * @@ -1355,9 +1355,9 @@ public Builder mergeMerchantCenterLinkingConfig( * *
      * The Merchant Center linking configuration.
-     * Once a link is added, the data stream from Merchant Center to Cloud Retail
+     * After a link is added, the data stream from Merchant Center to Cloud Retail
      * will be enabled automatically. The requester must have access to the
-     * merchant center account in order to make changes to this field.
+     * Merchant Center account in order to make changes to this field.
      * 
* * @@ -1379,9 +1379,9 @@ public Builder clearMerchantCenterLinkingConfig() { * *
      * The Merchant Center linking configuration.
-     * Once a link is added, the data stream from Merchant Center to Cloud Retail
+     * After a link is added, the data stream from Merchant Center to Cloud Retail
      * will be enabled automatically. The requester must have access to the
-     * merchant center account in order to make changes to this field.
+     * Merchant Center account in order to make changes to this field.
      * 
* * @@ -1399,9 +1399,9 @@ public Builder clearMerchantCenterLinkingConfig() { * *
      * The Merchant Center linking configuration.
-     * Once a link is added, the data stream from Merchant Center to Cloud Retail
+     * After a link is added, the data stream from Merchant Center to Cloud Retail
      * will be enabled automatically. The requester must have access to the
-     * merchant center account in order to make changes to this field.
+     * Merchant Center account in order to make changes to this field.
      * 
* * @@ -1423,9 +1423,9 @@ public Builder clearMerchantCenterLinkingConfig() { * *
      * The Merchant Center linking configuration.
-     * Once a link is added, the data stream from Merchant Center to Cloud Retail
+     * After a link is added, the data stream from Merchant Center to Cloud Retail
      * will be enabled automatically. The requester must have access to the
-     * merchant center account in order to make changes to this field.
+     * Merchant Center account in order to make changes to this field.
      * 
* * diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CatalogAttribute.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CatalogAttribute.java index 001690839ee7..b79ff76d7cf3 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CatalogAttribute.java +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CatalogAttribute.java @@ -1032,6 +1032,7892 @@ private RetrievableOption(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.retail.v2beta.CatalogAttribute.RetrievableOption) } + public interface FacetConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2beta.CatalogAttribute.FacetConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * If you don't set the facet
+     * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2beta.SearchRequest.FacetSpec.FacetKey.intervals]
+     * in the request to a numerical attribute, then we use the computed
+     * intervals with rounded bounds obtained from all its product numerical
+     * attribute values. The computed intervals might not be ideal for some
+     * attributes. Therefore, we give you the option to overwrite them with the
+     * facet_intervals field. The maximum of facet intervals per
+     * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 40.
+     * Each interval must have a lower bound or an upper bound. If both bounds
+     * are provided, then the lower bound must be smaller or equal than the
+     * upper bound.
+     * 
+ * + * repeated .google.cloud.retail.v2beta.Interval facet_intervals = 1; + */ + java.util.List getFacetIntervalsList(); + /** + * + * + *
+     * If you don't set the facet
+     * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2beta.SearchRequest.FacetSpec.FacetKey.intervals]
+     * in the request to a numerical attribute, then we use the computed
+     * intervals with rounded bounds obtained from all its product numerical
+     * attribute values. The computed intervals might not be ideal for some
+     * attributes. Therefore, we give you the option to overwrite them with the
+     * facet_intervals field. The maximum of facet intervals per
+     * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 40.
+     * Each interval must have a lower bound or an upper bound. If both bounds
+     * are provided, then the lower bound must be smaller or equal than the
+     * upper bound.
+     * 
+ * + * repeated .google.cloud.retail.v2beta.Interval facet_intervals = 1; + */ + com.google.cloud.retail.v2beta.Interval getFacetIntervals(int index); + /** + * + * + *
+     * If you don't set the facet
+     * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2beta.SearchRequest.FacetSpec.FacetKey.intervals]
+     * in the request to a numerical attribute, then we use the computed
+     * intervals with rounded bounds obtained from all its product numerical
+     * attribute values. The computed intervals might not be ideal for some
+     * attributes. Therefore, we give you the option to overwrite them with the
+     * facet_intervals field. The maximum of facet intervals per
+     * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 40.
+     * Each interval must have a lower bound or an upper bound. If both bounds
+     * are provided, then the lower bound must be smaller or equal than the
+     * upper bound.
+     * 
+ * + * repeated .google.cloud.retail.v2beta.Interval facet_intervals = 1; + */ + int getFacetIntervalsCount(); + /** + * + * + *
+     * If you don't set the facet
+     * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2beta.SearchRequest.FacetSpec.FacetKey.intervals]
+     * in the request to a numerical attribute, then we use the computed
+     * intervals with rounded bounds obtained from all its product numerical
+     * attribute values. The computed intervals might not be ideal for some
+     * attributes. Therefore, we give you the option to overwrite them with the
+     * facet_intervals field. The maximum of facet intervals per
+     * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 40.
+     * Each interval must have a lower bound or an upper bound. If both bounds
+     * are provided, then the lower bound must be smaller or equal than the
+     * upper bound.
+     * 
+ * + * repeated .google.cloud.retail.v2beta.Interval facet_intervals = 1; + */ + java.util.List + getFacetIntervalsOrBuilderList(); + /** + * + * + *
+     * If you don't set the facet
+     * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2beta.SearchRequest.FacetSpec.FacetKey.intervals]
+     * in the request to a numerical attribute, then we use the computed
+     * intervals with rounded bounds obtained from all its product numerical
+     * attribute values. The computed intervals might not be ideal for some
+     * attributes. Therefore, we give you the option to overwrite them with the
+     * facet_intervals field. The maximum of facet intervals per
+     * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 40.
+     * Each interval must have a lower bound or an upper bound. If both bounds
+     * are provided, then the lower bound must be smaller or equal than the
+     * upper bound.
+     * 
+ * + * repeated .google.cloud.retail.v2beta.Interval facet_intervals = 1; + */ + com.google.cloud.retail.v2beta.IntervalOrBuilder getFacetIntervalsOrBuilder(int index); + + /** + * + * + *
+     * Each instance represents a list of attribute values to ignore as facet
+     * values for a specific time range. The maximum number of instances per
+     * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 25.
+     * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + java.util.List + getIgnoredFacetValuesList(); + /** + * + * + *
+     * Each instance represents a list of attribute values to ignore as facet
+     * values for a specific time range. The maximum number of instances per
+     * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 25.
+     * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues + getIgnoredFacetValues(int index); + /** + * + * + *
+     * Each instance represents a list of attribute values to ignore as facet
+     * values for a specific time range. The maximum number of instances per
+     * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 25.
+     * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + int getIgnoredFacetValuesCount(); + /** + * + * + *
+     * Each instance represents a list of attribute values to ignore as facet
+     * values for a specific time range. The maximum number of instances per
+     * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 25.
+     * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + java.util.List< + ? extends + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig + .IgnoredFacetValuesOrBuilder> + getIgnoredFacetValuesOrBuilderList(); + /** + * + * + *
+     * Each instance represents a list of attribute values to ignore as facet
+     * values for a specific time range. The maximum number of instances per
+     * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 25.
+     * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValuesOrBuilder + getIgnoredFacetValuesOrBuilder(int index); + + /** + * + * + *
+     * Each instance replaces a list of facet values by a merged facet
+     * value. If a facet value is not in any list, then it will stay the same.
+     * To avoid conflicts, only paths of length 1 are accepted. In other words,
+     * if "dark_blue" merged into "BLUE", then the latter can't merge into
+     * "blues" because this would create a path of length 2. The maximum number
+     * of instances of MergedFacetValue per
+     * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 100.
+     * This feature is available only for textual custom attributes.
+     * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + java.util.List + getMergedFacetValuesList(); + /** + * + * + *
+     * Each instance replaces a list of facet values by a merged facet
+     * value. If a facet value is not in any list, then it will stay the same.
+     * To avoid conflicts, only paths of length 1 are accepted. In other words,
+     * if "dark_blue" merged into "BLUE", then the latter can't merge into
+     * "blues" because this would create a path of length 2. The maximum number
+     * of instances of MergedFacetValue per
+     * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 100.
+     * This feature is available only for textual custom attributes.
+     * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue + getMergedFacetValues(int index); + /** + * + * + *
+     * Each instance replaces a list of facet values by a merged facet
+     * value. If a facet value is not in any list, then it will stay the same.
+     * To avoid conflicts, only paths of length 1 are accepted. In other words,
+     * if "dark_blue" merged into "BLUE", then the latter can't merge into
+     * "blues" because this would create a path of length 2. The maximum number
+     * of instances of MergedFacetValue per
+     * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 100.
+     * This feature is available only for textual custom attributes.
+     * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + int getMergedFacetValuesCount(); + /** + * + * + *
+     * Each instance replaces a list of facet values by a merged facet
+     * value. If a facet value is not in any list, then it will stay the same.
+     * To avoid conflicts, only paths of length 1 are accepted. In other words,
+     * if "dark_blue" merged into "BLUE", then the latter can't merge into
+     * "blues" because this would create a path of length 2. The maximum number
+     * of instances of MergedFacetValue per
+     * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 100.
+     * This feature is available only for textual custom attributes.
+     * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + java.util.List< + ? extends + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig + .MergedFacetValueOrBuilder> + getMergedFacetValuesOrBuilderList(); + /** + * + * + *
+     * Each instance replaces a list of facet values by a merged facet
+     * value. If a facet value is not in any list, then it will stay the same.
+     * To avoid conflicts, only paths of length 1 are accepted. In other words,
+     * if "dark_blue" merged into "BLUE", then the latter can't merge into
+     * "blues" because this would create a path of length 2. The maximum number
+     * of instances of MergedFacetValue per
+     * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 100.
+     * This feature is available only for textual custom attributes.
+     * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValueOrBuilder + getMergedFacetValuesOrBuilder(int index); + + /** + * + * + *
+     * Use this field only if you want to merge a facet key into another facet
+     * key.
+     * 
+ * + * .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet merged_facet = 4; + * + * + * @return Whether the mergedFacet field is set. + */ + boolean hasMergedFacet(); + /** + * + * + *
+     * Use this field only if you want to merge a facet key into another facet
+     * key.
+     * 
+ * + * .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet merged_facet = 4; + * + * + * @return The mergedFacet. + */ + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet getMergedFacet(); + /** + * + * + *
+     * Use this field only if you want to merge a facet key into another facet
+     * key.
+     * 
+ * + * .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet merged_facet = 4; + * + */ + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetOrBuilder + getMergedFacetOrBuilder(); + + /** + * + * + *
+     * Set this field only if you want to rerank based on facet values engaged
+     * by the user for the current key. This option is only possible for custom
+     * facetable textual keys.
+     * 
+ * + * + * .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig rerank_config = 5; + * + * + * @return Whether the rerankConfig field is set. + */ + boolean hasRerankConfig(); + /** + * + * + *
+     * Set this field only if you want to rerank based on facet values engaged
+     * by the user for the current key. This option is only possible for custom
+     * facetable textual keys.
+     * 
+ * + * + * .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig rerank_config = 5; + * + * + * @return The rerankConfig. + */ + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig getRerankConfig(); + /** + * + * + *
+     * Set this field only if you want to rerank based on facet values engaged
+     * by the user for the current key. This option is only possible for custom
+     * facetable textual keys.
+     * 
+ * + * + * .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig rerank_config = 5; + * + */ + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfigOrBuilder + getRerankConfigOrBuilder(); + } + /** + * + * + *
+   * Possible options for the facet that corresponds to the current attribute
+   * config.
+   * 
+ * + * Protobuf type {@code google.cloud.retail.v2beta.CatalogAttribute.FacetConfig} + */ + public static final class FacetConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2beta.CatalogAttribute.FacetConfig) + FacetConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use FacetConfig.newBuilder() to construct. + private FacetConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FacetConfig() { + facetIntervals_ = java.util.Collections.emptyList(); + ignoredFacetValues_ = java.util.Collections.emptyList(); + mergedFacetValues_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FacetConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2beta.CatalogProto + .internal_static_google_cloud_retail_v2beta_CatalogAttribute_FacetConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2beta.CatalogProto + .internal_static_google_cloud_retail_v2beta_CatalogAttribute_FacetConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.class, + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.Builder.class); + } + + public interface IgnoredFacetValuesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * List of facet values to ignore for the following time range. The facet
+       * values are the same as the attribute values. There is a limit of 10
+       * values per instance of IgnoredFacetValues. Each value can have at most
+       * 128 characters.
+       * 
+ * + * repeated string values = 1; + * + * @return A list containing the values. + */ + java.util.List getValuesList(); + /** + * + * + *
+       * List of facet values to ignore for the following time range. The facet
+       * values are the same as the attribute values. There is a limit of 10
+       * values per instance of IgnoredFacetValues. Each value can have at most
+       * 128 characters.
+       * 
+ * + * repeated string values = 1; + * + * @return The count of values. + */ + int getValuesCount(); + /** + * + * + *
+       * List of facet values to ignore for the following time range. The facet
+       * values are the same as the attribute values. There is a limit of 10
+       * values per instance of IgnoredFacetValues. Each value can have at most
+       * 128 characters.
+       * 
+ * + * repeated string values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + java.lang.String getValues(int index); + /** + * + * + *
+       * List of facet values to ignore for the following time range. The facet
+       * values are the same as the attribute values. There is a limit of 10
+       * values per instance of IgnoredFacetValues. Each value can have at most
+       * 128 characters.
+       * 
+ * + * repeated string values = 1; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + com.google.protobuf.ByteString getValuesBytes(int index); + + /** + * + * + *
+       * Time range for the current list of facet values to ignore.
+       * If multiple time ranges are specified for an facet value for the
+       * current attribute, consider all of them. If both are empty, ignore
+       * always. If start time and end time are set, then start time
+       * must be before end time.
+       * If start time is not empty and end time is empty, then will ignore
+       * these facet values after the start time.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 2; + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + * + * + *
+       * Time range for the current list of facet values to ignore.
+       * If multiple time ranges are specified for an facet value for the
+       * current attribute, consider all of them. If both are empty, ignore
+       * always. If start time and end time are set, then start time
+       * must be before end time.
+       * If start time is not empty and end time is empty, then will ignore
+       * these facet values after the start time.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 2; + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + /** + * + * + *
+       * Time range for the current list of facet values to ignore.
+       * If multiple time ranges are specified for an facet value for the
+       * current attribute, consider all of them. If both are empty, ignore
+       * always. If start time and end time are set, then start time
+       * must be before end time.
+       * If start time is not empty and end time is empty, then will ignore
+       * these facet values after the start time.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
+       * If start time is empty and end time is not empty, then ignore these
+       * facet values before end time.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 3; + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + /** + * + * + *
+       * If start time is empty and end time is not empty, then ignore these
+       * facet values before end time.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 3; + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + /** + * + * + *
+       * If start time is empty and end time is not empty, then ignore these
+       * facet values before end time.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 3; + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + } + /** + * + * + *
+     * [Facet values][google.cloud.retail.v2beta.SearchResponse.Facet.values] to
+     * ignore on [facets][google.cloud.retail.v2beta.SearchResponse.Facet]
+     * during the specified time range for the given
+     * [SearchResponse.Facet.key][google.cloud.retail.v2beta.SearchResponse.Facet.key]
+     * attribute.
+     * 
+ * + * Protobuf type {@code + * google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues} + */ + public static final class IgnoredFacetValues extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues) + IgnoredFacetValuesOrBuilder { + private static final long serialVersionUID = 0L; + // Use IgnoredFacetValues.newBuilder() to construct. + private IgnoredFacetValues(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IgnoredFacetValues() { + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IgnoredFacetValues(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2beta.CatalogProto + .internal_static_google_cloud_retail_v2beta_CatalogAttribute_FacetConfig_IgnoredFacetValues_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2beta.CatalogProto + .internal_static_google_cloud_retail_v2beta_CatalogAttribute_FacetConfig_IgnoredFacetValues_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues + .class, + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues + .Builder.class); + } + + private int bitField0_; + public static final int VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+       * List of facet values to ignore for the following time range. The facet
+       * values are the same as the attribute values. There is a limit of 10
+       * values per instance of IgnoredFacetValues. Each value can have at most
+       * 128 characters.
+       * 
+ * + * repeated string values = 1; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + return values_; + } + /** + * + * + *
+       * List of facet values to ignore for the following time range. The facet
+       * values are the same as the attribute values. There is a limit of 10
+       * values per instance of IgnoredFacetValues. Each value can have at most
+       * 128 characters.
+       * 
+ * + * repeated string values = 1; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * + * + *
+       * List of facet values to ignore for the following time range. The facet
+       * values are the same as the attribute values. There is a limit of 10
+       * values per instance of IgnoredFacetValues. Each value can have at most
+       * 128 characters.
+       * 
+ * + * repeated string values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * + * + *
+       * List of facet values to ignore for the following time range. The facet
+       * values are the same as the attribute values. There is a limit of 10
+       * values per instance of IgnoredFacetValues. Each value can have at most
+       * 128 characters.
+       * 
+ * + * repeated string values = 1; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.getByteString(index); + } + + public static final int START_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp startTime_; + /** + * + * + *
+       * Time range for the current list of facet values to ignore.
+       * If multiple time ranges are specified for an facet value for the
+       * current attribute, consider all of them. If both are empty, ignore
+       * always. If start time and end time are set, then start time
+       * must be before end time.
+       * If start time is not empty and end time is empty, then will ignore
+       * these facet values after the start time.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 2; + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+       * Time range for the current list of facet values to ignore.
+       * If multiple time ranges are specified for an facet value for the
+       * current attribute, consider all of them. If both are empty, ignore
+       * always. If start time and end time are set, then start time
+       * must be before end time.
+       * If start time is not empty and end time is empty, then will ignore
+       * these facet values after the start time.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 2; + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + * + * + *
+       * Time range for the current list of facet values to ignore.
+       * If multiple time ranges are specified for an facet value for the
+       * current attribute, consider all of them. If both are empty, ignore
+       * always. If start time and end time are set, then start time
+       * must be before end time.
+       * If start time is not empty and end time is empty, then will ignore
+       * these facet values after the start time.
+       * 
+ * + * .google.protobuf.Timestamp start_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + public static final int END_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp endTime_; + /** + * + * + *
+       * If start time is empty and end time is not empty, then ignore these
+       * facet values before end time.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 3; + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+       * If start time is empty and end time is not empty, then ignore these
+       * facet values before end time.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 3; + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + * + * + *
+       * If start time is empty and end time is not empty, then ignore these
+       * facet values before end time.
+       * 
+ * + * .google.protobuf.Timestamp end_time = 3; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < values_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getEndTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < values_.size(); i++) { + dataSize += computeStringSizeNoTag(values_.getRaw(i)); + } + size += dataSize; + size += 1 * getValuesList().size(); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues)) { + return super.equals(obj); + } + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues other = + (com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues) obj; + + if (!getValuesList().equals(other.getValuesList())) return false; + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+       * [Facet values][google.cloud.retail.v2beta.SearchResponse.Facet.values] to
+       * ignore on [facets][google.cloud.retail.v2beta.SearchResponse.Facet]
+       * during the specified time range for the given
+       * [SearchResponse.Facet.key][google.cloud.retail.v2beta.SearchResponse.Facet.key]
+       * attribute.
+       * 
+ * + * Protobuf type {@code + * google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues) + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValuesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2beta.CatalogProto + .internal_static_google_cloud_retail_v2beta_CatalogAttribute_FacetConfig_IgnoredFacetValues_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2beta.CatalogProto + .internal_static_google_cloud_retail_v2beta_CatalogAttribute_FacetConfig_IgnoredFacetValues_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues + .class, + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues + .Builder.class); + } + + // Construct using + // com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getStartTimeFieldBuilder(); + getEndTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2beta.CatalogProto + .internal_static_google_cloud_retail_v2beta_CatalogAttribute_FacetConfig_IgnoredFacetValues_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues + getDefaultInstanceForType() { + return com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues + build() { + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues + buildPartial() { + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues result = + new com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + values_.makeImmutable(); + result.values_ = values_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues) { + return mergeFrom( + (com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues other) { + if (other + == com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues + .getDefaultInstance()) return this; + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ |= 0x00000001; + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + onChanged(); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureValuesIsMutable(); + values_.add(s); + break; + } // case 10 + case 18: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureValuesIsMutable() { + if (!values_.isModifiable()) { + values_ = new com.google.protobuf.LazyStringArrayList(values_); + } + bitField0_ |= 0x00000001; + } + /** + * + * + *
+         * List of facet values to ignore for the following time range. The facet
+         * values are the same as the attribute values. There is a limit of 10
+         * values per instance of IgnoredFacetValues. Each value can have at most
+         * 128 characters.
+         * 
+ * + * repeated string values = 1; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + values_.makeImmutable(); + return values_; + } + /** + * + * + *
+         * List of facet values to ignore for the following time range. The facet
+         * values are the same as the attribute values. There is a limit of 10
+         * values per instance of IgnoredFacetValues. Each value can have at most
+         * 128 characters.
+         * 
+ * + * repeated string values = 1; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * + * + *
+         * List of facet values to ignore for the following time range. The facet
+         * values are the same as the attribute values. There is a limit of 10
+         * values per instance of IgnoredFacetValues. Each value can have at most
+         * 128 characters.
+         * 
+ * + * repeated string values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * + * + *
+         * List of facet values to ignore for the following time range. The facet
+         * values are the same as the attribute values. There is a limit of 10
+         * values per instance of IgnoredFacetValues. Each value can have at most
+         * 128 characters.
+         * 
+ * + * repeated string values = 1; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.getByteString(index); + } + /** + * + * + *
+         * List of facet values to ignore for the following time range. The facet
+         * values are the same as the attribute values. There is a limit of 10
+         * values per instance of IgnoredFacetValues. Each value can have at most
+         * 128 characters.
+         * 
+ * + * repeated string values = 1; + * + * @param index The index to set the value at. + * @param value The values to set. + * @return This builder for chaining. + */ + public Builder setValues(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * List of facet values to ignore for the following time range. The facet
+         * values are the same as the attribute values. There is a limit of 10
+         * values per instance of IgnoredFacetValues. Each value can have at most
+         * 128 characters.
+         * 
+ * + * repeated string values = 1; + * + * @param value The values to add. + * @return This builder for chaining. + */ + public Builder addValues(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * List of facet values to ignore for the following time range. The facet
+         * values are the same as the attribute values. There is a limit of 10
+         * values per instance of IgnoredFacetValues. Each value can have at most
+         * 128 characters.
+         * 
+ * + * repeated string values = 1; + * + * @param values The values to add. + * @return This builder for chaining. + */ + public Builder addAllValues(java.lang.Iterable values) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * List of facet values to ignore for the following time range. The facet
+         * values are the same as the attribute values. There is a limit of 10
+         * values per instance of IgnoredFacetValues. Each value can have at most
+         * 128 characters.
+         * 
+ * + * repeated string values = 1; + * + * @return This builder for chaining. + */ + public Builder clearValues() { + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + /** + * + * + *
+         * List of facet values to ignore for the following time range. The facet
+         * values are the same as the attribute values. There is a limit of 10
+         * values per instance of IgnoredFacetValues. Each value can have at most
+         * 128 characters.
+         * 
+ * + * repeated string values = 1; + * + * @param value The bytes of the values to add. + * @return This builder for chaining. + */ + public Builder addValuesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValuesIsMutable(); + values_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + /** + * + * + *
+         * Time range for the current list of facet values to ignore.
+         * If multiple time ranges are specified for an facet value for the
+         * current attribute, consider all of them. If both are empty, ignore
+         * always. If start time and end time are set, then start time
+         * must be before end time.
+         * If start time is not empty and end time is empty, then will ignore
+         * these facet values after the start time.
+         * 
+ * + * .google.protobuf.Timestamp start_time = 2; + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+         * Time range for the current list of facet values to ignore.
+         * If multiple time ranges are specified for an facet value for the
+         * current attribute, consider all of them. If both are empty, ignore
+         * always. If start time and end time are set, then start time
+         * must be before end time.
+         * If start time is not empty and end time is empty, then will ignore
+         * these facet values after the start time.
+         * 
+ * + * .google.protobuf.Timestamp start_time = 2; + * + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+         * Time range for the current list of facet values to ignore.
+         * If multiple time ranges are specified for an facet value for the
+         * current attribute, consider all of them. If both are empty, ignore
+         * always. If start time and end time are set, then start time
+         * must be before end time.
+         * If start time is not empty and end time is empty, then will ignore
+         * these facet values after the start time.
+         * 
+ * + * .google.protobuf.Timestamp start_time = 2; + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+         * Time range for the current list of facet values to ignore.
+         * If multiple time ranges are specified for an facet value for the
+         * current attribute, consider all of them. If both are empty, ignore
+         * always. If start time and end time are set, then start time
+         * must be before end time.
+         * If start time is not empty and end time is empty, then will ignore
+         * these facet values after the start time.
+         * 
+ * + * .google.protobuf.Timestamp start_time = 2; + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+         * Time range for the current list of facet values to ignore.
+         * If multiple time ranges are specified for an facet value for the
+         * current attribute, consider all of them. If both are empty, ignore
+         * always. If start time and end time are set, then start time
+         * must be before end time.
+         * If start time is not empty and end time is empty, then will ignore
+         * these facet values after the start time.
+         * 
+ * + * .google.protobuf.Timestamp start_time = 2; + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+         * Time range for the current list of facet values to ignore.
+         * If multiple time ranges are specified for an facet value for the
+         * current attribute, consider all of them. If both are empty, ignore
+         * always. If start time and end time are set, then start time
+         * must be before end time.
+         * If start time is not empty and end time is empty, then will ignore
+         * these facet values after the start time.
+         * 
+ * + * .google.protobuf.Timestamp start_time = 2; + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000002); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+         * Time range for the current list of facet values to ignore.
+         * If multiple time ranges are specified for an facet value for the
+         * current attribute, consider all of them. If both are empty, ignore
+         * always. If start time and end time are set, then start time
+         * must be before end time.
+         * If start time is not empty and end time is empty, then will ignore
+         * these facet values after the start time.
+         * 
+ * + * .google.protobuf.Timestamp start_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+         * Time range for the current list of facet values to ignore.
+         * If multiple time ranges are specified for an facet value for the
+         * current attribute, consider all of them. If both are empty, ignore
+         * always. If start time and end time are set, then start time
+         * must be before end time.
+         * If start time is not empty and end time is empty, then will ignore
+         * these facet values after the start time.
+         * 
+ * + * .google.protobuf.Timestamp start_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : startTime_; + } + } + /** + * + * + *
+         * Time range for the current list of facet values to ignore.
+         * If multiple time ranges are specified for an facet value for the
+         * current attribute, consider all of them. If both are empty, ignore
+         * always. If start time and end time are set, then start time
+         * must be before end time.
+         * If start time is not empty and end time is empty, then will ignore
+         * these facet values after the start time.
+         * 
+ * + * .google.protobuf.Timestamp start_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + /** + * + * + *
+         * If start time is empty and end time is not empty, then ignore these
+         * facet values before end time.
+         * 
+ * + * .google.protobuf.Timestamp end_time = 3; + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+         * If start time is empty and end time is not empty, then ignore these
+         * facet values before end time.
+         * 
+ * + * .google.protobuf.Timestamp end_time = 3; + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+         * If start time is empty and end time is not empty, then ignore these
+         * facet values before end time.
+         * 
+ * + * .google.protobuf.Timestamp end_time = 3; + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+         * If start time is empty and end time is not empty, then ignore these
+         * facet values before end time.
+         * 
+ * + * .google.protobuf.Timestamp end_time = 3; + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+         * If start time is empty and end time is not empty, then ignore these
+         * facet values before end time.
+         * 
+ * + * .google.protobuf.Timestamp end_time = 3; + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
+         * If start time is empty and end time is not empty, then ignore these
+         * facet values before end time.
+         * 
+ * + * .google.protobuf.Timestamp end_time = 3; + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000004); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+         * If start time is empty and end time is not empty, then ignore these
+         * facet values before end time.
+         * 
+ * + * .google.protobuf.Timestamp end_time = 3; + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+         * If start time is empty and end time is not empty, then ignore these
+         * facet values before end time.
+         * 
+ * + * .google.protobuf.Timestamp end_time = 3; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + * + * + *
+         * If start time is empty and end time is not empty, then ignore these
+         * facet values before end time.
+         * 
+ * + * .google.protobuf.Timestamp end_time = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues) + private static final com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig + .IgnoredFacetValues + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues(); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IgnoredFacetValues parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface MergedFacetValueOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * All the facet values that are replaces by the same
+       * [merged_value][google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value]
+       * that follows. The maximum number of values per MergedFacetValue is 25.
+       * Each value can have up to 128 characters.
+       * 
+ * + * repeated string values = 1; + * + * @return A list containing the values. + */ + java.util.List getValuesList(); + /** + * + * + *
+       * All the facet values that are replaces by the same
+       * [merged_value][google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value]
+       * that follows. The maximum number of values per MergedFacetValue is 25.
+       * Each value can have up to 128 characters.
+       * 
+ * + * repeated string values = 1; + * + * @return The count of values. + */ + int getValuesCount(); + /** + * + * + *
+       * All the facet values that are replaces by the same
+       * [merged_value][google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value]
+       * that follows. The maximum number of values per MergedFacetValue is 25.
+       * Each value can have up to 128 characters.
+       * 
+ * + * repeated string values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + java.lang.String getValues(int index); + /** + * + * + *
+       * All the facet values that are replaces by the same
+       * [merged_value][google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value]
+       * that follows. The maximum number of values per MergedFacetValue is 25.
+       * Each value can have up to 128 characters.
+       * 
+ * + * repeated string values = 1; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + com.google.protobuf.ByteString getValuesBytes(int index); + + /** + * + * + *
+       * All the previous values are replaced by this merged facet value.
+       * This merged_value must be non-empty and can have up to 128 characters.
+       * 
+ * + * string merged_value = 2; + * + * @return The mergedValue. + */ + java.lang.String getMergedValue(); + /** + * + * + *
+       * All the previous values are replaced by this merged facet value.
+       * This merged_value must be non-empty and can have up to 128 characters.
+       * 
+ * + * string merged_value = 2; + * + * @return The bytes for mergedValue. + */ + com.google.protobuf.ByteString getMergedValueBytes(); + } + /** + * + * + *
+     * Replaces a set of textual facet values by the same (possibly different)
+     * merged facet value. Each facet value should appear at most once as a
+     * value per
+     * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute]. This
+     * feature is available only for textual custom attributes.
+     * 
+ * + * Protobuf type {@code + * google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue} + */ + public static final class MergedFacetValue extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue) + MergedFacetValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use MergedFacetValue.newBuilder() to construct. + private MergedFacetValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MergedFacetValue() { + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + mergedValue_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MergedFacetValue(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2beta.CatalogProto + .internal_static_google_cloud_retail_v2beta_CatalogAttribute_FacetConfig_MergedFacetValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2beta.CatalogProto + .internal_static_google_cloud_retail_v2beta_CatalogAttribute_FacetConfig_MergedFacetValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue.class, + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue.Builder + .class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+       * All the facet values that are replaces by the same
+       * [merged_value][google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value]
+       * that follows. The maximum number of values per MergedFacetValue is 25.
+       * Each value can have up to 128 characters.
+       * 
+ * + * repeated string values = 1; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + return values_; + } + /** + * + * + *
+       * All the facet values that are replaces by the same
+       * [merged_value][google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value]
+       * that follows. The maximum number of values per MergedFacetValue is 25.
+       * Each value can have up to 128 characters.
+       * 
+ * + * repeated string values = 1; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * + * + *
+       * All the facet values that are replaces by the same
+       * [merged_value][google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value]
+       * that follows. The maximum number of values per MergedFacetValue is 25.
+       * Each value can have up to 128 characters.
+       * 
+ * + * repeated string values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * + * + *
+       * All the facet values that are replaces by the same
+       * [merged_value][google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value]
+       * that follows. The maximum number of values per MergedFacetValue is 25.
+       * Each value can have up to 128 characters.
+       * 
+ * + * repeated string values = 1; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.getByteString(index); + } + + public static final int MERGED_VALUE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object mergedValue_ = ""; + /** + * + * + *
+       * All the previous values are replaced by this merged facet value.
+       * This merged_value must be non-empty and can have up to 128 characters.
+       * 
+ * + * string merged_value = 2; + * + * @return The mergedValue. + */ + @java.lang.Override + public java.lang.String getMergedValue() { + java.lang.Object ref = mergedValue_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mergedValue_ = s; + return s; + } + } + /** + * + * + *
+       * All the previous values are replaced by this merged facet value.
+       * This merged_value must be non-empty and can have up to 128 characters.
+       * 
+ * + * string merged_value = 2; + * + * @return The bytes for mergedValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMergedValueBytes() { + java.lang.Object ref = mergedValue_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mergedValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < values_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mergedValue_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, mergedValue_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < values_.size(); i++) { + dataSize += computeStringSizeNoTag(values_.getRaw(i)); + } + size += dataSize; + size += 1 * getValuesList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mergedValue_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, mergedValue_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue)) { + return super.equals(obj); + } + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue other = + (com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue) obj; + + if (!getValuesList().equals(other.getValuesList())) return false; + if (!getMergedValue().equals(other.getMergedValue())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (37 * hash) + MERGED_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getMergedValue().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+       * Replaces a set of textual facet values by the same (possibly different)
+       * merged facet value. Each facet value should appear at most once as a
+       * value per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute]. This
+       * feature is available only for textual custom attributes.
+       * 
+ * + * Protobuf type {@code + * google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue) + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2beta.CatalogProto + .internal_static_google_cloud_retail_v2beta_CatalogAttribute_FacetConfig_MergedFacetValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2beta.CatalogProto + .internal_static_google_cloud_retail_v2beta_CatalogAttribute_FacetConfig_MergedFacetValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue + .class, + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue + .Builder.class); + } + + // Construct using + // com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + mergedValue_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2beta.CatalogProto + .internal_static_google_cloud_retail_v2beta_CatalogAttribute_FacetConfig_MergedFacetValue_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue + getDefaultInstanceForType() { + return com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue + build() { + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue + buildPartial() { + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue result = + new com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + values_.makeImmutable(); + result.values_ = values_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.mergedValue_ = mergedValue_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue) { + return mergeFrom( + (com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue other) { + if (other + == com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue + .getDefaultInstance()) return this; + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ |= 0x00000001; + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + onChanged(); + } + if (!other.getMergedValue().isEmpty()) { + mergedValue_ = other.mergedValue_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureValuesIsMutable(); + values_.add(s); + break; + } // case 10 + case 18: + { + mergedValue_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureValuesIsMutable() { + if (!values_.isModifiable()) { + values_ = new com.google.protobuf.LazyStringArrayList(values_); + } + bitField0_ |= 0x00000001; + } + /** + * + * + *
+         * All the facet values that are replaces by the same
+         * [merged_value][google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value]
+         * that follows. The maximum number of values per MergedFacetValue is 25.
+         * Each value can have up to 128 characters.
+         * 
+ * + * repeated string values = 1; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + values_.makeImmutable(); + return values_; + } + /** + * + * + *
+         * All the facet values that are replaces by the same
+         * [merged_value][google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value]
+         * that follows. The maximum number of values per MergedFacetValue is 25.
+         * Each value can have up to 128 characters.
+         * 
+ * + * repeated string values = 1; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * + * + *
+         * All the facet values that are replaces by the same
+         * [merged_value][google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value]
+         * that follows. The maximum number of values per MergedFacetValue is 25.
+         * Each value can have up to 128 characters.
+         * 
+ * + * repeated string values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * + * + *
+         * All the facet values that are replaces by the same
+         * [merged_value][google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value]
+         * that follows. The maximum number of values per MergedFacetValue is 25.
+         * Each value can have up to 128 characters.
+         * 
+ * + * repeated string values = 1; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.getByteString(index); + } + /** + * + * + *
+         * All the facet values that are replaces by the same
+         * [merged_value][google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value]
+         * that follows. The maximum number of values per MergedFacetValue is 25.
+         * Each value can have up to 128 characters.
+         * 
+ * + * repeated string values = 1; + * + * @param index The index to set the value at. + * @param value The values to set. + * @return This builder for chaining. + */ + public Builder setValues(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * All the facet values that are replaces by the same
+         * [merged_value][google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value]
+         * that follows. The maximum number of values per MergedFacetValue is 25.
+         * Each value can have up to 128 characters.
+         * 
+ * + * repeated string values = 1; + * + * @param value The values to add. + * @return This builder for chaining. + */ + public Builder addValues(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * All the facet values that are replaces by the same
+         * [merged_value][google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value]
+         * that follows. The maximum number of values per MergedFacetValue is 25.
+         * Each value can have up to 128 characters.
+         * 
+ * + * repeated string values = 1; + * + * @param values The values to add. + * @return This builder for chaining. + */ + public Builder addAllValues(java.lang.Iterable values) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * All the facet values that are replaces by the same
+         * [merged_value][google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value]
+         * that follows. The maximum number of values per MergedFacetValue is 25.
+         * Each value can have up to 128 characters.
+         * 
+ * + * repeated string values = 1; + * + * @return This builder for chaining. + */ + public Builder clearValues() { + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + /** + * + * + *
+         * All the facet values that are replaces by the same
+         * [merged_value][google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value]
+         * that follows. The maximum number of values per MergedFacetValue is 25.
+         * Each value can have up to 128 characters.
+         * 
+ * + * repeated string values = 1; + * + * @param value The bytes of the values to add. + * @return This builder for chaining. + */ + public Builder addValuesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValuesIsMutable(); + values_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object mergedValue_ = ""; + /** + * + * + *
+         * All the previous values are replaced by this merged facet value.
+         * This merged_value must be non-empty and can have up to 128 characters.
+         * 
+ * + * string merged_value = 2; + * + * @return The mergedValue. + */ + public java.lang.String getMergedValue() { + java.lang.Object ref = mergedValue_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mergedValue_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * All the previous values are replaced by this merged facet value.
+         * This merged_value must be non-empty and can have up to 128 characters.
+         * 
+ * + * string merged_value = 2; + * + * @return The bytes for mergedValue. + */ + public com.google.protobuf.ByteString getMergedValueBytes() { + java.lang.Object ref = mergedValue_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mergedValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * All the previous values are replaced by this merged facet value.
+         * This merged_value must be non-empty and can have up to 128 characters.
+         * 
+ * + * string merged_value = 2; + * + * @param value The mergedValue to set. + * @return This builder for chaining. + */ + public Builder setMergedValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + mergedValue_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+         * All the previous values are replaced by this merged facet value.
+         * This merged_value must be non-empty and can have up to 128 characters.
+         * 
+ * + * string merged_value = 2; + * + * @return This builder for chaining. + */ + public Builder clearMergedValue() { + mergedValue_ = getDefaultInstance().getMergedValue(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+         * All the previous values are replaced by this merged facet value.
+         * This merged_value must be non-empty and can have up to 128 characters.
+         * 
+ * + * string merged_value = 2; + * + * @param value The bytes for mergedValue to set. + * @return This builder for chaining. + */ + public Builder setMergedValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mergedValue_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue) + private static final com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig + .MergedFacetValue + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue(); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MergedFacetValue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface MergedFacetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * The merged facet key should be a valid facet key that is different than
+       * the facet key of the current catalog attribute. We refer this is
+       * merged facet key as the child of the current catalog attribute. This
+       * merged facet key can't be a parent of another facet key (i.e. no
+       * directed path of length 2). This merged facet key needs to be either a
+       * textual custom attribute or a numerical custom attribute.
+       * 
+ * + * string merged_facet_key = 1; + * + * @return The mergedFacetKey. + */ + java.lang.String getMergedFacetKey(); + /** + * + * + *
+       * The merged facet key should be a valid facet key that is different than
+       * the facet key of the current catalog attribute. We refer this is
+       * merged facet key as the child of the current catalog attribute. This
+       * merged facet key can't be a parent of another facet key (i.e. no
+       * directed path of length 2). This merged facet key needs to be either a
+       * textual custom attribute or a numerical custom attribute.
+       * 
+ * + * string merged_facet_key = 1; + * + * @return The bytes for mergedFacetKey. + */ + com.google.protobuf.ByteString getMergedFacetKeyBytes(); + } + /** + * + * + *
+     * The current facet key (i.e. attribute config) maps into the
+     * [merged_facet_key][google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet.merged_facet_key].
+     * A facet key can have at most one child. The current facet key and the
+     * merged facet key need both to be textual custom attributes or both
+     * numerical custom attributes (same type).
+     * 
+ * + * Protobuf type {@code google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet} + */ + public static final class MergedFacet extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet) + MergedFacetOrBuilder { + private static final long serialVersionUID = 0L; + // Use MergedFacet.newBuilder() to construct. + private MergedFacet(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MergedFacet() { + mergedFacetKey_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MergedFacet(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2beta.CatalogProto + .internal_static_google_cloud_retail_v2beta_CatalogAttribute_FacetConfig_MergedFacet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2beta.CatalogProto + .internal_static_google_cloud_retail_v2beta_CatalogAttribute_FacetConfig_MergedFacet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet.class, + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet.Builder + .class); + } + + public static final int MERGED_FACET_KEY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object mergedFacetKey_ = ""; + /** + * + * + *
+       * The merged facet key should be a valid facet key that is different than
+       * the facet key of the current catalog attribute. We refer this is
+       * merged facet key as the child of the current catalog attribute. This
+       * merged facet key can't be a parent of another facet key (i.e. no
+       * directed path of length 2). This merged facet key needs to be either a
+       * textual custom attribute or a numerical custom attribute.
+       * 
+ * + * string merged_facet_key = 1; + * + * @return The mergedFacetKey. + */ + @java.lang.Override + public java.lang.String getMergedFacetKey() { + java.lang.Object ref = mergedFacetKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mergedFacetKey_ = s; + return s; + } + } + /** + * + * + *
+       * The merged facet key should be a valid facet key that is different than
+       * the facet key of the current catalog attribute. We refer this is
+       * merged facet key as the child of the current catalog attribute. This
+       * merged facet key can't be a parent of another facet key (i.e. no
+       * directed path of length 2). This merged facet key needs to be either a
+       * textual custom attribute or a numerical custom attribute.
+       * 
+ * + * string merged_facet_key = 1; + * + * @return The bytes for mergedFacetKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMergedFacetKeyBytes() { + java.lang.Object ref = mergedFacetKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mergedFacetKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mergedFacetKey_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mergedFacetKey_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mergedFacetKey_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mergedFacetKey_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet)) { + return super.equals(obj); + } + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet other = + (com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet) obj; + + if (!getMergedFacetKey().equals(other.getMergedFacetKey())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MERGED_FACET_KEY_FIELD_NUMBER; + hash = (53 * hash) + getMergedFacetKey().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+       * The current facet key (i.e. attribute config) maps into the
+       * [merged_facet_key][google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet.merged_facet_key].
+       * A facet key can have at most one child. The current facet key and the
+       * merged facet key need both to be textual custom attributes or both
+       * numerical custom attributes (same type).
+       * 
+ * + * Protobuf type {@code google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet) + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2beta.CatalogProto + .internal_static_google_cloud_retail_v2beta_CatalogAttribute_FacetConfig_MergedFacet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2beta.CatalogProto + .internal_static_google_cloud_retail_v2beta_CatalogAttribute_FacetConfig_MergedFacet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet.class, + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet.Builder + .class); + } + + // Construct using + // com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + mergedFacetKey_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2beta.CatalogProto + .internal_static_google_cloud_retail_v2beta_CatalogAttribute_FacetConfig_MergedFacet_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet + getDefaultInstanceForType() { + return com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet build() { + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet + buildPartial() { + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet result = + new com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.mergedFacetKey_ = mergedFacetKey_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet) { + return mergeFrom( + (com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet other) { + if (other + == com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet + .getDefaultInstance()) return this; + if (!other.getMergedFacetKey().isEmpty()) { + mergedFacetKey_ = other.mergedFacetKey_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + mergedFacetKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object mergedFacetKey_ = ""; + /** + * + * + *
+         * The merged facet key should be a valid facet key that is different than
+         * the facet key of the current catalog attribute. We refer this is
+         * merged facet key as the child of the current catalog attribute. This
+         * merged facet key can't be a parent of another facet key (i.e. no
+         * directed path of length 2). This merged facet key needs to be either a
+         * textual custom attribute or a numerical custom attribute.
+         * 
+ * + * string merged_facet_key = 1; + * + * @return The mergedFacetKey. + */ + public java.lang.String getMergedFacetKey() { + java.lang.Object ref = mergedFacetKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mergedFacetKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * The merged facet key should be a valid facet key that is different than
+         * the facet key of the current catalog attribute. We refer this is
+         * merged facet key as the child of the current catalog attribute. This
+         * merged facet key can't be a parent of another facet key (i.e. no
+         * directed path of length 2). This merged facet key needs to be either a
+         * textual custom attribute or a numerical custom attribute.
+         * 
+ * + * string merged_facet_key = 1; + * + * @return The bytes for mergedFacetKey. + */ + public com.google.protobuf.ByteString getMergedFacetKeyBytes() { + java.lang.Object ref = mergedFacetKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mergedFacetKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * The merged facet key should be a valid facet key that is different than
+         * the facet key of the current catalog attribute. We refer this is
+         * merged facet key as the child of the current catalog attribute. This
+         * merged facet key can't be a parent of another facet key (i.e. no
+         * directed path of length 2). This merged facet key needs to be either a
+         * textual custom attribute or a numerical custom attribute.
+         * 
+ * + * string merged_facet_key = 1; + * + * @param value The mergedFacetKey to set. + * @return This builder for chaining. + */ + public Builder setMergedFacetKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + mergedFacetKey_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * The merged facet key should be a valid facet key that is different than
+         * the facet key of the current catalog attribute. We refer this is
+         * merged facet key as the child of the current catalog attribute. This
+         * merged facet key can't be a parent of another facet key (i.e. no
+         * directed path of length 2). This merged facet key needs to be either a
+         * textual custom attribute or a numerical custom attribute.
+         * 
+ * + * string merged_facet_key = 1; + * + * @return This builder for chaining. + */ + public Builder clearMergedFacetKey() { + mergedFacetKey_ = getDefaultInstance().getMergedFacetKey(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+         * The merged facet key should be a valid facet key that is different than
+         * the facet key of the current catalog attribute. We refer this is
+         * merged facet key as the child of the current catalog attribute. This
+         * merged facet key can't be a parent of another facet key (i.e. no
+         * directed path of length 2). This merged facet key needs to be either a
+         * textual custom attribute or a numerical custom attribute.
+         * 
+ * + * string merged_facet_key = 1; + * + * @param value The bytes for mergedFacetKey to set. + * @return This builder for chaining. + */ + public Builder setMergedFacetKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mergedFacetKey_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet) + private static final com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet(); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MergedFacet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface RerankConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * If set to true, then we also rerank the dynamic facets based on the
+       * facet values engaged by the user for the current attribute key during
+       * serving.
+       * 
+ * + * bool rerank_facet = 1; + * + * @return The rerankFacet. + */ + boolean getRerankFacet(); + + /** + * + * + *
+       * If empty, rerank on all facet values for the current key. Otherwise,
+       * will rerank on the facet values from this list only.
+       * 
+ * + * repeated string facet_values = 2; + * + * @return A list containing the facetValues. + */ + java.util.List getFacetValuesList(); + /** + * + * + *
+       * If empty, rerank on all facet values for the current key. Otherwise,
+       * will rerank on the facet values from this list only.
+       * 
+ * + * repeated string facet_values = 2; + * + * @return The count of facetValues. + */ + int getFacetValuesCount(); + /** + * + * + *
+       * If empty, rerank on all facet values for the current key. Otherwise,
+       * will rerank on the facet values from this list only.
+       * 
+ * + * repeated string facet_values = 2; + * + * @param index The index of the element to return. + * @return The facetValues at the given index. + */ + java.lang.String getFacetValues(int index); + /** + * + * + *
+       * If empty, rerank on all facet values for the current key. Otherwise,
+       * will rerank on the facet values from this list only.
+       * 
+ * + * repeated string facet_values = 2; + * + * @param index The index of the value to return. + * @return The bytes of the facetValues at the given index. + */ + com.google.protobuf.ByteString getFacetValuesBytes(int index); + } + /** + * + * + *
+     * Options to rerank based on facet values engaged by the user for the
+     * current key. That key needs to be a custom textual key and facetable.
+     * To use this control, you also need to pass all the facet keys engaged by
+     * the user in the request using the field [SearchRequest.FacetSpec]. In
+     * particular, if you don't pass the facet keys engaged that you want to
+     * rerank on, this control won't be effective. Moreover, to obtain better
+     * results, the facet values that you want to rerank on should be close to
+     * English (ideally made of words, underscores, and spaces).
+     * 
+ * + * Protobuf type {@code google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig} + */ + public static final class RerankConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig) + RerankConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use RerankConfig.newBuilder() to construct. + private RerankConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RerankConfig() { + facetValues_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RerankConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2beta.CatalogProto + .internal_static_google_cloud_retail_v2beta_CatalogAttribute_FacetConfig_RerankConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2beta.CatalogProto + .internal_static_google_cloud_retail_v2beta_CatalogAttribute_FacetConfig_RerankConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig.class, + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig.Builder + .class); + } + + public static final int RERANK_FACET_FIELD_NUMBER = 1; + private boolean rerankFacet_ = false; + /** + * + * + *
+       * If set to true, then we also rerank the dynamic facets based on the
+       * facet values engaged by the user for the current attribute key during
+       * serving.
+       * 
+ * + * bool rerank_facet = 1; + * + * @return The rerankFacet. + */ + @java.lang.Override + public boolean getRerankFacet() { + return rerankFacet_; + } + + public static final int FACET_VALUES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList facetValues_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+       * If empty, rerank on all facet values for the current key. Otherwise,
+       * will rerank on the facet values from this list only.
+       * 
+ * + * repeated string facet_values = 2; + * + * @return A list containing the facetValues. + */ + public com.google.protobuf.ProtocolStringList getFacetValuesList() { + return facetValues_; + } + /** + * + * + *
+       * If empty, rerank on all facet values for the current key. Otherwise,
+       * will rerank on the facet values from this list only.
+       * 
+ * + * repeated string facet_values = 2; + * + * @return The count of facetValues. + */ + public int getFacetValuesCount() { + return facetValues_.size(); + } + /** + * + * + *
+       * If empty, rerank on all facet values for the current key. Otherwise,
+       * will rerank on the facet values from this list only.
+       * 
+ * + * repeated string facet_values = 2; + * + * @param index The index of the element to return. + * @return The facetValues at the given index. + */ + public java.lang.String getFacetValues(int index) { + return facetValues_.get(index); + } + /** + * + * + *
+       * If empty, rerank on all facet values for the current key. Otherwise,
+       * will rerank on the facet values from this list only.
+       * 
+ * + * repeated string facet_values = 2; + * + * @param index The index of the value to return. + * @return The bytes of the facetValues at the given index. + */ + public com.google.protobuf.ByteString getFacetValuesBytes(int index) { + return facetValues_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (rerankFacet_ != false) { + output.writeBool(1, rerankFacet_); + } + for (int i = 0; i < facetValues_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, facetValues_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (rerankFacet_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, rerankFacet_); + } + { + int dataSize = 0; + for (int i = 0; i < facetValues_.size(); i++) { + dataSize += computeStringSizeNoTag(facetValues_.getRaw(i)); + } + size += dataSize; + size += 1 * getFacetValuesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig)) { + return super.equals(obj); + } + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig other = + (com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig) obj; + + if (getRerankFacet() != other.getRerankFacet()) return false; + if (!getFacetValuesList().equals(other.getFacetValuesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RERANK_FACET_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRerankFacet()); + if (getFacetValuesCount() > 0) { + hash = (37 * hash) + FACET_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getFacetValuesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+       * Options to rerank based on facet values engaged by the user for the
+       * current key. That key needs to be a custom textual key and facetable.
+       * To use this control, you also need to pass all the facet keys engaged by
+       * the user in the request using the field [SearchRequest.FacetSpec]. In
+       * particular, if you don't pass the facet keys engaged that you want to
+       * rerank on, this control won't be effective. Moreover, to obtain better
+       * results, the facet values that you want to rerank on should be close to
+       * English (ideally made of words, underscores, and spaces).
+       * 
+ * + * Protobuf type {@code google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig) + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2beta.CatalogProto + .internal_static_google_cloud_retail_v2beta_CatalogAttribute_FacetConfig_RerankConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2beta.CatalogProto + .internal_static_google_cloud_retail_v2beta_CatalogAttribute_FacetConfig_RerankConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig.class, + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig.Builder + .class); + } + + // Construct using + // com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + rerankFacet_ = false; + facetValues_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2beta.CatalogProto + .internal_static_google_cloud_retail_v2beta_CatalogAttribute_FacetConfig_RerankConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig + getDefaultInstanceForType() { + return com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig build() { + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig + buildPartial() { + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig result = + new com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.rerankFacet_ = rerankFacet_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + facetValues_.makeImmutable(); + result.facetValues_ = facetValues_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig) { + return mergeFrom( + (com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig other) { + if (other + == com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig + .getDefaultInstance()) return this; + if (other.getRerankFacet() != false) { + setRerankFacet(other.getRerankFacet()); + } + if (!other.facetValues_.isEmpty()) { + if (facetValues_.isEmpty()) { + facetValues_ = other.facetValues_; + bitField0_ |= 0x00000002; + } else { + ensureFacetValuesIsMutable(); + facetValues_.addAll(other.facetValues_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + rerankFacet_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureFacetValuesIsMutable(); + facetValues_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean rerankFacet_; + /** + * + * + *
+         * If set to true, then we also rerank the dynamic facets based on the
+         * facet values engaged by the user for the current attribute key during
+         * serving.
+         * 
+ * + * bool rerank_facet = 1; + * + * @return The rerankFacet. + */ + @java.lang.Override + public boolean getRerankFacet() { + return rerankFacet_; + } + /** + * + * + *
+         * If set to true, then we also rerank the dynamic facets based on the
+         * facet values engaged by the user for the current attribute key during
+         * serving.
+         * 
+ * + * bool rerank_facet = 1; + * + * @param value The rerankFacet to set. + * @return This builder for chaining. + */ + public Builder setRerankFacet(boolean value) { + + rerankFacet_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * If set to true, then we also rerank the dynamic facets based on the
+         * facet values engaged by the user for the current attribute key during
+         * serving.
+         * 
+ * + * bool rerank_facet = 1; + * + * @return This builder for chaining. + */ + public Builder clearRerankFacet() { + bitField0_ = (bitField0_ & ~0x00000001); + rerankFacet_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList facetValues_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureFacetValuesIsMutable() { + if (!facetValues_.isModifiable()) { + facetValues_ = new com.google.protobuf.LazyStringArrayList(facetValues_); + } + bitField0_ |= 0x00000002; + } + /** + * + * + *
+         * If empty, rerank on all facet values for the current key. Otherwise,
+         * will rerank on the facet values from this list only.
+         * 
+ * + * repeated string facet_values = 2; + * + * @return A list containing the facetValues. + */ + public com.google.protobuf.ProtocolStringList getFacetValuesList() { + facetValues_.makeImmutable(); + return facetValues_; + } + /** + * + * + *
+         * If empty, rerank on all facet values for the current key. Otherwise,
+         * will rerank on the facet values from this list only.
+         * 
+ * + * repeated string facet_values = 2; + * + * @return The count of facetValues. + */ + public int getFacetValuesCount() { + return facetValues_.size(); + } + /** + * + * + *
+         * If empty, rerank on all facet values for the current key. Otherwise,
+         * will rerank on the facet values from this list only.
+         * 
+ * + * repeated string facet_values = 2; + * + * @param index The index of the element to return. + * @return The facetValues at the given index. + */ + public java.lang.String getFacetValues(int index) { + return facetValues_.get(index); + } + /** + * + * + *
+         * If empty, rerank on all facet values for the current key. Otherwise,
+         * will rerank on the facet values from this list only.
+         * 
+ * + * repeated string facet_values = 2; + * + * @param index The index of the value to return. + * @return The bytes of the facetValues at the given index. + */ + public com.google.protobuf.ByteString getFacetValuesBytes(int index) { + return facetValues_.getByteString(index); + } + /** + * + * + *
+         * If empty, rerank on all facet values for the current key. Otherwise,
+         * will rerank on the facet values from this list only.
+         * 
+ * + * repeated string facet_values = 2; + * + * @param index The index to set the value at. + * @param value The facetValues to set. + * @return This builder for chaining. + */ + public Builder setFacetValues(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFacetValuesIsMutable(); + facetValues_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+         * If empty, rerank on all facet values for the current key. Otherwise,
+         * will rerank on the facet values from this list only.
+         * 
+ * + * repeated string facet_values = 2; + * + * @param value The facetValues to add. + * @return This builder for chaining. + */ + public Builder addFacetValues(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFacetValuesIsMutable(); + facetValues_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+         * If empty, rerank on all facet values for the current key. Otherwise,
+         * will rerank on the facet values from this list only.
+         * 
+ * + * repeated string facet_values = 2; + * + * @param values The facetValues to add. + * @return This builder for chaining. + */ + public Builder addAllFacetValues(java.lang.Iterable values) { + ensureFacetValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, facetValues_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+         * If empty, rerank on all facet values for the current key. Otherwise,
+         * will rerank on the facet values from this list only.
+         * 
+ * + * repeated string facet_values = 2; + * + * @return This builder for chaining. + */ + public Builder clearFacetValues() { + facetValues_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + /** + * + * + *
+         * If empty, rerank on all facet values for the current key. Otherwise,
+         * will rerank on the facet values from this list only.
+         * 
+ * + * repeated string facet_values = 2; + * + * @param value The bytes of the facetValues to add. + * @return This builder for chaining. + */ + public Builder addFacetValuesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureFacetValuesIsMutable(); + facetValues_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig) + private static final com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig(); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RerankConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int FACET_INTERVALS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List facetIntervals_; + /** + * + * + *
+     * If you don't set the facet
+     * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2beta.SearchRequest.FacetSpec.FacetKey.intervals]
+     * in the request to a numerical attribute, then we use the computed
+     * intervals with rounded bounds obtained from all its product numerical
+     * attribute values. The computed intervals might not be ideal for some
+     * attributes. Therefore, we give you the option to overwrite them with the
+     * facet_intervals field. The maximum of facet intervals per
+     * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 40.
+     * Each interval must have a lower bound or an upper bound. If both bounds
+     * are provided, then the lower bound must be smaller or equal than the
+     * upper bound.
+     * 
+ * + * repeated .google.cloud.retail.v2beta.Interval facet_intervals = 1; + */ + @java.lang.Override + public java.util.List getFacetIntervalsList() { + return facetIntervals_; + } + /** + * + * + *
+     * If you don't set the facet
+     * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2beta.SearchRequest.FacetSpec.FacetKey.intervals]
+     * in the request to a numerical attribute, then we use the computed
+     * intervals with rounded bounds obtained from all its product numerical
+     * attribute values. The computed intervals might not be ideal for some
+     * attributes. Therefore, we give you the option to overwrite them with the
+     * facet_intervals field. The maximum of facet intervals per
+     * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 40.
+     * Each interval must have a lower bound or an upper bound. If both bounds
+     * are provided, then the lower bound must be smaller or equal than the
+     * upper bound.
+     * 
+ * + * repeated .google.cloud.retail.v2beta.Interval facet_intervals = 1; + */ + @java.lang.Override + public java.util.List + getFacetIntervalsOrBuilderList() { + return facetIntervals_; + } + /** + * + * + *
+     * If you don't set the facet
+     * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2beta.SearchRequest.FacetSpec.FacetKey.intervals]
+     * in the request to a numerical attribute, then we use the computed
+     * intervals with rounded bounds obtained from all its product numerical
+     * attribute values. The computed intervals might not be ideal for some
+     * attributes. Therefore, we give you the option to overwrite them with the
+     * facet_intervals field. The maximum of facet intervals per
+     * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 40.
+     * Each interval must have a lower bound or an upper bound. If both bounds
+     * are provided, then the lower bound must be smaller or equal than the
+     * upper bound.
+     * 
+ * + * repeated .google.cloud.retail.v2beta.Interval facet_intervals = 1; + */ + @java.lang.Override + public int getFacetIntervalsCount() { + return facetIntervals_.size(); + } + /** + * + * + *
+     * If you don't set the facet
+     * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2beta.SearchRequest.FacetSpec.FacetKey.intervals]
+     * in the request to a numerical attribute, then we use the computed
+     * intervals with rounded bounds obtained from all its product numerical
+     * attribute values. The computed intervals might not be ideal for some
+     * attributes. Therefore, we give you the option to overwrite them with the
+     * facet_intervals field. The maximum of facet intervals per
+     * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 40.
+     * Each interval must have a lower bound or an upper bound. If both bounds
+     * are provided, then the lower bound must be smaller or equal than the
+     * upper bound.
+     * 
+ * + * repeated .google.cloud.retail.v2beta.Interval facet_intervals = 1; + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.Interval getFacetIntervals(int index) { + return facetIntervals_.get(index); + } + /** + * + * + *
+     * If you don't set the facet
+     * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2beta.SearchRequest.FacetSpec.FacetKey.intervals]
+     * in the request to a numerical attribute, then we use the computed
+     * intervals with rounded bounds obtained from all its product numerical
+     * attribute values. The computed intervals might not be ideal for some
+     * attributes. Therefore, we give you the option to overwrite them with the
+     * facet_intervals field. The maximum of facet intervals per
+     * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 40.
+     * Each interval must have a lower bound or an upper bound. If both bounds
+     * are provided, then the lower bound must be smaller or equal than the
+     * upper bound.
+     * 
+ * + * repeated .google.cloud.retail.v2beta.Interval facet_intervals = 1; + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.IntervalOrBuilder getFacetIntervalsOrBuilder(int index) { + return facetIntervals_.get(index); + } + + public static final int IGNORED_FACET_VALUES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues> + ignoredFacetValues_; + /** + * + * + *
+     * Each instance represents a list of attribute values to ignore as facet
+     * values for a specific time range. The maximum number of instances per
+     * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 25.
+     * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues> + getIgnoredFacetValuesList() { + return ignoredFacetValues_; + } + /** + * + * + *
+     * Each instance represents a list of attribute values to ignore as facet
+     * values for a specific time range. The maximum number of instances per
+     * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 25.
+     * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig + .IgnoredFacetValuesOrBuilder> + getIgnoredFacetValuesOrBuilderList() { + return ignoredFacetValues_; + } + /** + * + * + *
+     * Each instance represents a list of attribute values to ignore as facet
+     * values for a specific time range. The maximum number of instances per
+     * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 25.
+     * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + @java.lang.Override + public int getIgnoredFacetValuesCount() { + return ignoredFacetValues_.size(); + } + /** + * + * + *
+     * Each instance represents a list of attribute values to ignore as facet
+     * values for a specific time range. The maximum number of instances per
+     * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 25.
+     * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues + getIgnoredFacetValues(int index) { + return ignoredFacetValues_.get(index); + } + /** + * + * + *
+     * Each instance represents a list of attribute values to ignore as facet
+     * values for a specific time range. The maximum number of instances per
+     * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 25.
+     * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValuesOrBuilder + getIgnoredFacetValuesOrBuilder(int index) { + return ignoredFacetValues_.get(index); + } + + public static final int MERGED_FACET_VALUES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue> + mergedFacetValues_; + /** + * + * + *
+     * Each instance replaces a list of facet values by a merged facet
+     * value. If a facet value is not in any list, then it will stay the same.
+     * To avoid conflicts, only paths of length 1 are accepted. In other words,
+     * if "dark_blue" merged into "BLUE", then the latter can't merge into
+     * "blues" because this would create a path of length 2. The maximum number
+     * of instances of MergedFacetValue per
+     * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 100.
+     * This feature is available only for textual custom attributes.
+     * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue> + getMergedFacetValuesList() { + return mergedFacetValues_; + } + /** + * + * + *
+     * Each instance replaces a list of facet values by a merged facet
+     * value. If a facet value is not in any list, then it will stay the same.
+     * To avoid conflicts, only paths of length 1 are accepted. In other words,
+     * if "dark_blue" merged into "BLUE", then the latter can't merge into
+     * "blues" because this would create a path of length 2. The maximum number
+     * of instances of MergedFacetValue per
+     * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 100.
+     * This feature is available only for textual custom attributes.
+     * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig + .MergedFacetValueOrBuilder> + getMergedFacetValuesOrBuilderList() { + return mergedFacetValues_; + } + /** + * + * + *
+     * Each instance replaces a list of facet values by a merged facet
+     * value. If a facet value is not in any list, then it will stay the same.
+     * To avoid conflicts, only paths of length 1 are accepted. In other words,
+     * if "dark_blue" merged into "BLUE", then the latter can't merge into
+     * "blues" because this would create a path of length 2. The maximum number
+     * of instances of MergedFacetValue per
+     * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 100.
+     * This feature is available only for textual custom attributes.
+     * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + @java.lang.Override + public int getMergedFacetValuesCount() { + return mergedFacetValues_.size(); + } + /** + * + * + *
+     * Each instance replaces a list of facet values by a merged facet
+     * value. If a facet value is not in any list, then it will stay the same.
+     * To avoid conflicts, only paths of length 1 are accepted. In other words,
+     * if "dark_blue" merged into "BLUE", then the latter can't merge into
+     * "blues" because this would create a path of length 2. The maximum number
+     * of instances of MergedFacetValue per
+     * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 100.
+     * This feature is available only for textual custom attributes.
+     * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue + getMergedFacetValues(int index) { + return mergedFacetValues_.get(index); + } + /** + * + * + *
+     * Each instance replaces a list of facet values by a merged facet
+     * value. If a facet value is not in any list, then it will stay the same.
+     * To avoid conflicts, only paths of length 1 are accepted. In other words,
+     * if "dark_blue" merged into "BLUE", then the latter can't merge into
+     * "blues" because this would create a path of length 2. The maximum number
+     * of instances of MergedFacetValue per
+     * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 100.
+     * This feature is available only for textual custom attributes.
+     * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValueOrBuilder + getMergedFacetValuesOrBuilder(int index) { + return mergedFacetValues_.get(index); + } + + public static final int MERGED_FACET_FIELD_NUMBER = 4; + private com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet mergedFacet_; + /** + * + * + *
+     * Use this field only if you want to merge a facet key into another facet
+     * key.
+     * 
+ * + * .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet merged_facet = 4; + * + * + * @return Whether the mergedFacet field is set. + */ + @java.lang.Override + public boolean hasMergedFacet() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Use this field only if you want to merge a facet key into another facet
+     * key.
+     * 
+ * + * .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet merged_facet = 4; + * + * + * @return The mergedFacet. + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet + getMergedFacet() { + return mergedFacet_ == null + ? com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet + .getDefaultInstance() + : mergedFacet_; + } + /** + * + * + *
+     * Use this field only if you want to merge a facet key into another facet
+     * key.
+     * 
+ * + * .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet merged_facet = 4; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetOrBuilder + getMergedFacetOrBuilder() { + return mergedFacet_ == null + ? com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet + .getDefaultInstance() + : mergedFacet_; + } + + public static final int RERANK_CONFIG_FIELD_NUMBER = 5; + private com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig rerankConfig_; + /** + * + * + *
+     * Set this field only if you want to rerank based on facet values engaged
+     * by the user for the current key. This option is only possible for custom
+     * facetable textual keys.
+     * 
+ * + * + * .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig rerank_config = 5; + * + * + * @return Whether the rerankConfig field is set. + */ + @java.lang.Override + public boolean hasRerankConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Set this field only if you want to rerank based on facet values engaged
+     * by the user for the current key. This option is only possible for custom
+     * facetable textual keys.
+     * 
+ * + * + * .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig rerank_config = 5; + * + * + * @return The rerankConfig. + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig + getRerankConfig() { + return rerankConfig_ == null + ? com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig + .getDefaultInstance() + : rerankConfig_; + } + /** + * + * + *
+     * Set this field only if you want to rerank based on facet values engaged
+     * by the user for the current key. This option is only possible for custom
+     * facetable textual keys.
+     * 
+ * + * + * .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig rerank_config = 5; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfigOrBuilder + getRerankConfigOrBuilder() { + return rerankConfig_ == null + ? com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig + .getDefaultInstance() + : rerankConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < facetIntervals_.size(); i++) { + output.writeMessage(1, facetIntervals_.get(i)); + } + for (int i = 0; i < ignoredFacetValues_.size(); i++) { + output.writeMessage(2, ignoredFacetValues_.get(i)); + } + for (int i = 0; i < mergedFacetValues_.size(); i++) { + output.writeMessage(3, mergedFacetValues_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getMergedFacet()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getRerankConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < facetIntervals_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, facetIntervals_.get(i)); + } + for (int i = 0; i < ignoredFacetValues_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, ignoredFacetValues_.get(i)); + } + for (int i = 0; i < mergedFacetValues_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, mergedFacetValues_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getMergedFacet()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getRerankConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig)) { + return super.equals(obj); + } + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig other = + (com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig) obj; + + if (!getFacetIntervalsList().equals(other.getFacetIntervalsList())) return false; + if (!getIgnoredFacetValuesList().equals(other.getIgnoredFacetValuesList())) return false; + if (!getMergedFacetValuesList().equals(other.getMergedFacetValuesList())) return false; + if (hasMergedFacet() != other.hasMergedFacet()) return false; + if (hasMergedFacet()) { + if (!getMergedFacet().equals(other.getMergedFacet())) return false; + } + if (hasRerankConfig() != other.hasRerankConfig()) return false; + if (hasRerankConfig()) { + if (!getRerankConfig().equals(other.getRerankConfig())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getFacetIntervalsCount() > 0) { + hash = (37 * hash) + FACET_INTERVALS_FIELD_NUMBER; + hash = (53 * hash) + getFacetIntervalsList().hashCode(); + } + if (getIgnoredFacetValuesCount() > 0) { + hash = (37 * hash) + IGNORED_FACET_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getIgnoredFacetValuesList().hashCode(); + } + if (getMergedFacetValuesCount() > 0) { + hash = (37 * hash) + MERGED_FACET_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getMergedFacetValuesList().hashCode(); + } + if (hasMergedFacet()) { + hash = (37 * hash) + MERGED_FACET_FIELD_NUMBER; + hash = (53 * hash) + getMergedFacet().hashCode(); + } + if (hasRerankConfig()) { + hash = (37 * hash) + RERANK_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getRerankConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Possible options for the facet that corresponds to the current attribute
+     * config.
+     * 
+ * + * Protobuf type {@code google.cloud.retail.v2beta.CatalogAttribute.FacetConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2beta.CatalogAttribute.FacetConfig) + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2beta.CatalogProto + .internal_static_google_cloud_retail_v2beta_CatalogAttribute_FacetConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2beta.CatalogProto + .internal_static_google_cloud_retail_v2beta_CatalogAttribute_FacetConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.class, + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.Builder.class); + } + + // Construct using com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getFacetIntervalsFieldBuilder(); + getIgnoredFacetValuesFieldBuilder(); + getMergedFacetValuesFieldBuilder(); + getMergedFacetFieldBuilder(); + getRerankConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (facetIntervalsBuilder_ == null) { + facetIntervals_ = java.util.Collections.emptyList(); + } else { + facetIntervals_ = null; + facetIntervalsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (ignoredFacetValuesBuilder_ == null) { + ignoredFacetValues_ = java.util.Collections.emptyList(); + } else { + ignoredFacetValues_ = null; + ignoredFacetValuesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (mergedFacetValuesBuilder_ == null) { + mergedFacetValues_ = java.util.Collections.emptyList(); + } else { + mergedFacetValues_ = null; + mergedFacetValuesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + mergedFacet_ = null; + if (mergedFacetBuilder_ != null) { + mergedFacetBuilder_.dispose(); + mergedFacetBuilder_ = null; + } + rerankConfig_ = null; + if (rerankConfigBuilder_ != null) { + rerankConfigBuilder_.dispose(); + rerankConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2beta.CatalogProto + .internal_static_google_cloud_retail_v2beta_CatalogAttribute_FacetConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig + getDefaultInstanceForType() { + return com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig build() { + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig buildPartial() { + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig result = + new com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig result) { + if (facetIntervalsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + facetIntervals_ = java.util.Collections.unmodifiableList(facetIntervals_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.facetIntervals_ = facetIntervals_; + } else { + result.facetIntervals_ = facetIntervalsBuilder_.build(); + } + if (ignoredFacetValuesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + ignoredFacetValues_ = java.util.Collections.unmodifiableList(ignoredFacetValues_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.ignoredFacetValues_ = ignoredFacetValues_; + } else { + result.ignoredFacetValues_ = ignoredFacetValuesBuilder_.build(); + } + if (mergedFacetValuesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + mergedFacetValues_ = java.util.Collections.unmodifiableList(mergedFacetValues_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.mergedFacetValues_ = mergedFacetValues_; + } else { + result.mergedFacetValues_ = mergedFacetValuesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.mergedFacet_ = + mergedFacetBuilder_ == null ? mergedFacet_ : mergedFacetBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.rerankConfig_ = + rerankConfigBuilder_ == null ? rerankConfig_ : rerankConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig) { + return mergeFrom((com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig other) { + if (other + == com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.getDefaultInstance()) + return this; + if (facetIntervalsBuilder_ == null) { + if (!other.facetIntervals_.isEmpty()) { + if (facetIntervals_.isEmpty()) { + facetIntervals_ = other.facetIntervals_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFacetIntervalsIsMutable(); + facetIntervals_.addAll(other.facetIntervals_); + } + onChanged(); + } + } else { + if (!other.facetIntervals_.isEmpty()) { + if (facetIntervalsBuilder_.isEmpty()) { + facetIntervalsBuilder_.dispose(); + facetIntervalsBuilder_ = null; + facetIntervals_ = other.facetIntervals_; + bitField0_ = (bitField0_ & ~0x00000001); + facetIntervalsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFacetIntervalsFieldBuilder() + : null; + } else { + facetIntervalsBuilder_.addAllMessages(other.facetIntervals_); + } + } + } + if (ignoredFacetValuesBuilder_ == null) { + if (!other.ignoredFacetValues_.isEmpty()) { + if (ignoredFacetValues_.isEmpty()) { + ignoredFacetValues_ = other.ignoredFacetValues_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureIgnoredFacetValuesIsMutable(); + ignoredFacetValues_.addAll(other.ignoredFacetValues_); + } + onChanged(); + } + } else { + if (!other.ignoredFacetValues_.isEmpty()) { + if (ignoredFacetValuesBuilder_.isEmpty()) { + ignoredFacetValuesBuilder_.dispose(); + ignoredFacetValuesBuilder_ = null; + ignoredFacetValues_ = other.ignoredFacetValues_; + bitField0_ = (bitField0_ & ~0x00000002); + ignoredFacetValuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getIgnoredFacetValuesFieldBuilder() + : null; + } else { + ignoredFacetValuesBuilder_.addAllMessages(other.ignoredFacetValues_); + } + } + } + if (mergedFacetValuesBuilder_ == null) { + if (!other.mergedFacetValues_.isEmpty()) { + if (mergedFacetValues_.isEmpty()) { + mergedFacetValues_ = other.mergedFacetValues_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureMergedFacetValuesIsMutable(); + mergedFacetValues_.addAll(other.mergedFacetValues_); + } + onChanged(); + } + } else { + if (!other.mergedFacetValues_.isEmpty()) { + if (mergedFacetValuesBuilder_.isEmpty()) { + mergedFacetValuesBuilder_.dispose(); + mergedFacetValuesBuilder_ = null; + mergedFacetValues_ = other.mergedFacetValues_; + bitField0_ = (bitField0_ & ~0x00000004); + mergedFacetValuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMergedFacetValuesFieldBuilder() + : null; + } else { + mergedFacetValuesBuilder_.addAllMessages(other.mergedFacetValues_); + } + } + } + if (other.hasMergedFacet()) { + mergeMergedFacet(other.getMergedFacet()); + } + if (other.hasRerankConfig()) { + mergeRerankConfig(other.getRerankConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.retail.v2beta.Interval m = + input.readMessage( + com.google.cloud.retail.v2beta.Interval.parser(), extensionRegistry); + if (facetIntervalsBuilder_ == null) { + ensureFacetIntervalsIsMutable(); + facetIntervals_.add(m); + } else { + facetIntervalsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues m = + input.readMessage( + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig + .IgnoredFacetValues.parser(), + extensionRegistry); + if (ignoredFacetValuesBuilder_ == null) { + ensureIgnoredFacetValuesIsMutable(); + ignoredFacetValues_.add(m); + } else { + ignoredFacetValuesBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue m = + input.readMessage( + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig + .MergedFacetValue.parser(), + extensionRegistry); + if (mergedFacetValuesBuilder_ == null) { + ensureMergedFacetValuesIsMutable(); + mergedFacetValues_.add(m); + } else { + mergedFacetValuesBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + input.readMessage(getMergedFacetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage(getRerankConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List facetIntervals_ = + java.util.Collections.emptyList(); + + private void ensureFacetIntervalsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + facetIntervals_ = + new java.util.ArrayList(facetIntervals_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2beta.Interval, + com.google.cloud.retail.v2beta.Interval.Builder, + com.google.cloud.retail.v2beta.IntervalOrBuilder> + facetIntervalsBuilder_; + + /** + * + * + *
+       * If you don't set the facet
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2beta.SearchRequest.FacetSpec.FacetKey.intervals]
+       * in the request to a numerical attribute, then we use the computed
+       * intervals with rounded bounds obtained from all its product numerical
+       * attribute values. The computed intervals might not be ideal for some
+       * attributes. Therefore, we give you the option to overwrite them with the
+       * facet_intervals field. The maximum of facet intervals per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 40.
+       * Each interval must have a lower bound or an upper bound. If both bounds
+       * are provided, then the lower bound must be smaller or equal than the
+       * upper bound.
+       * 
+ * + * repeated .google.cloud.retail.v2beta.Interval facet_intervals = 1; + */ + public java.util.List getFacetIntervalsList() { + if (facetIntervalsBuilder_ == null) { + return java.util.Collections.unmodifiableList(facetIntervals_); + } else { + return facetIntervalsBuilder_.getMessageList(); + } + } + /** + * + * + *
+       * If you don't set the facet
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2beta.SearchRequest.FacetSpec.FacetKey.intervals]
+       * in the request to a numerical attribute, then we use the computed
+       * intervals with rounded bounds obtained from all its product numerical
+       * attribute values. The computed intervals might not be ideal for some
+       * attributes. Therefore, we give you the option to overwrite them with the
+       * facet_intervals field. The maximum of facet intervals per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 40.
+       * Each interval must have a lower bound or an upper bound. If both bounds
+       * are provided, then the lower bound must be smaller or equal than the
+       * upper bound.
+       * 
+ * + * repeated .google.cloud.retail.v2beta.Interval facet_intervals = 1; + */ + public int getFacetIntervalsCount() { + if (facetIntervalsBuilder_ == null) { + return facetIntervals_.size(); + } else { + return facetIntervalsBuilder_.getCount(); + } + } + /** + * + * + *
+       * If you don't set the facet
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2beta.SearchRequest.FacetSpec.FacetKey.intervals]
+       * in the request to a numerical attribute, then we use the computed
+       * intervals with rounded bounds obtained from all its product numerical
+       * attribute values. The computed intervals might not be ideal for some
+       * attributes. Therefore, we give you the option to overwrite them with the
+       * facet_intervals field. The maximum of facet intervals per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 40.
+       * Each interval must have a lower bound or an upper bound. If both bounds
+       * are provided, then the lower bound must be smaller or equal than the
+       * upper bound.
+       * 
+ * + * repeated .google.cloud.retail.v2beta.Interval facet_intervals = 1; + */ + public com.google.cloud.retail.v2beta.Interval getFacetIntervals(int index) { + if (facetIntervalsBuilder_ == null) { + return facetIntervals_.get(index); + } else { + return facetIntervalsBuilder_.getMessage(index); + } + } + /** + * + * + *
+       * If you don't set the facet
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2beta.SearchRequest.FacetSpec.FacetKey.intervals]
+       * in the request to a numerical attribute, then we use the computed
+       * intervals with rounded bounds obtained from all its product numerical
+       * attribute values. The computed intervals might not be ideal for some
+       * attributes. Therefore, we give you the option to overwrite them with the
+       * facet_intervals field. The maximum of facet intervals per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 40.
+       * Each interval must have a lower bound or an upper bound. If both bounds
+       * are provided, then the lower bound must be smaller or equal than the
+       * upper bound.
+       * 
+ * + * repeated .google.cloud.retail.v2beta.Interval facet_intervals = 1; + */ + public Builder setFacetIntervals(int index, com.google.cloud.retail.v2beta.Interval value) { + if (facetIntervalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFacetIntervalsIsMutable(); + facetIntervals_.set(index, value); + onChanged(); + } else { + facetIntervalsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+       * If you don't set the facet
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2beta.SearchRequest.FacetSpec.FacetKey.intervals]
+       * in the request to a numerical attribute, then we use the computed
+       * intervals with rounded bounds obtained from all its product numerical
+       * attribute values. The computed intervals might not be ideal for some
+       * attributes. Therefore, we give you the option to overwrite them with the
+       * facet_intervals field. The maximum of facet intervals per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 40.
+       * Each interval must have a lower bound or an upper bound. If both bounds
+       * are provided, then the lower bound must be smaller or equal than the
+       * upper bound.
+       * 
+ * + * repeated .google.cloud.retail.v2beta.Interval facet_intervals = 1; + */ + public Builder setFacetIntervals( + int index, com.google.cloud.retail.v2beta.Interval.Builder builderForValue) { + if (facetIntervalsBuilder_ == null) { + ensureFacetIntervalsIsMutable(); + facetIntervals_.set(index, builderForValue.build()); + onChanged(); + } else { + facetIntervalsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * If you don't set the facet
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2beta.SearchRequest.FacetSpec.FacetKey.intervals]
+       * in the request to a numerical attribute, then we use the computed
+       * intervals with rounded bounds obtained from all its product numerical
+       * attribute values. The computed intervals might not be ideal for some
+       * attributes. Therefore, we give you the option to overwrite them with the
+       * facet_intervals field. The maximum of facet intervals per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 40.
+       * Each interval must have a lower bound or an upper bound. If both bounds
+       * are provided, then the lower bound must be smaller or equal than the
+       * upper bound.
+       * 
+ * + * repeated .google.cloud.retail.v2beta.Interval facet_intervals = 1; + */ + public Builder addFacetIntervals(com.google.cloud.retail.v2beta.Interval value) { + if (facetIntervalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFacetIntervalsIsMutable(); + facetIntervals_.add(value); + onChanged(); + } else { + facetIntervalsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+       * If you don't set the facet
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2beta.SearchRequest.FacetSpec.FacetKey.intervals]
+       * in the request to a numerical attribute, then we use the computed
+       * intervals with rounded bounds obtained from all its product numerical
+       * attribute values. The computed intervals might not be ideal for some
+       * attributes. Therefore, we give you the option to overwrite them with the
+       * facet_intervals field. The maximum of facet intervals per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 40.
+       * Each interval must have a lower bound or an upper bound. If both bounds
+       * are provided, then the lower bound must be smaller or equal than the
+       * upper bound.
+       * 
+ * + * repeated .google.cloud.retail.v2beta.Interval facet_intervals = 1; + */ + public Builder addFacetIntervals(int index, com.google.cloud.retail.v2beta.Interval value) { + if (facetIntervalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFacetIntervalsIsMutable(); + facetIntervals_.add(index, value); + onChanged(); + } else { + facetIntervalsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+       * If you don't set the facet
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2beta.SearchRequest.FacetSpec.FacetKey.intervals]
+       * in the request to a numerical attribute, then we use the computed
+       * intervals with rounded bounds obtained from all its product numerical
+       * attribute values. The computed intervals might not be ideal for some
+       * attributes. Therefore, we give you the option to overwrite them with the
+       * facet_intervals field. The maximum of facet intervals per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 40.
+       * Each interval must have a lower bound or an upper bound. If both bounds
+       * are provided, then the lower bound must be smaller or equal than the
+       * upper bound.
+       * 
+ * + * repeated .google.cloud.retail.v2beta.Interval facet_intervals = 1; + */ + public Builder addFacetIntervals( + com.google.cloud.retail.v2beta.Interval.Builder builderForValue) { + if (facetIntervalsBuilder_ == null) { + ensureFacetIntervalsIsMutable(); + facetIntervals_.add(builderForValue.build()); + onChanged(); + } else { + facetIntervalsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * If you don't set the facet
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2beta.SearchRequest.FacetSpec.FacetKey.intervals]
+       * in the request to a numerical attribute, then we use the computed
+       * intervals with rounded bounds obtained from all its product numerical
+       * attribute values. The computed intervals might not be ideal for some
+       * attributes. Therefore, we give you the option to overwrite them with the
+       * facet_intervals field. The maximum of facet intervals per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 40.
+       * Each interval must have a lower bound or an upper bound. If both bounds
+       * are provided, then the lower bound must be smaller or equal than the
+       * upper bound.
+       * 
+ * + * repeated .google.cloud.retail.v2beta.Interval facet_intervals = 1; + */ + public Builder addFacetIntervals( + int index, com.google.cloud.retail.v2beta.Interval.Builder builderForValue) { + if (facetIntervalsBuilder_ == null) { + ensureFacetIntervalsIsMutable(); + facetIntervals_.add(index, builderForValue.build()); + onChanged(); + } else { + facetIntervalsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * If you don't set the facet
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2beta.SearchRequest.FacetSpec.FacetKey.intervals]
+       * in the request to a numerical attribute, then we use the computed
+       * intervals with rounded bounds obtained from all its product numerical
+       * attribute values. The computed intervals might not be ideal for some
+       * attributes. Therefore, we give you the option to overwrite them with the
+       * facet_intervals field. The maximum of facet intervals per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 40.
+       * Each interval must have a lower bound or an upper bound. If both bounds
+       * are provided, then the lower bound must be smaller or equal than the
+       * upper bound.
+       * 
+ * + * repeated .google.cloud.retail.v2beta.Interval facet_intervals = 1; + */ + public Builder addAllFacetIntervals( + java.lang.Iterable values) { + if (facetIntervalsBuilder_ == null) { + ensureFacetIntervalsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, facetIntervals_); + onChanged(); + } else { + facetIntervalsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+       * If you don't set the facet
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2beta.SearchRequest.FacetSpec.FacetKey.intervals]
+       * in the request to a numerical attribute, then we use the computed
+       * intervals with rounded bounds obtained from all its product numerical
+       * attribute values. The computed intervals might not be ideal for some
+       * attributes. Therefore, we give you the option to overwrite them with the
+       * facet_intervals field. The maximum of facet intervals per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 40.
+       * Each interval must have a lower bound or an upper bound. If both bounds
+       * are provided, then the lower bound must be smaller or equal than the
+       * upper bound.
+       * 
+ * + * repeated .google.cloud.retail.v2beta.Interval facet_intervals = 1; + */ + public Builder clearFacetIntervals() { + if (facetIntervalsBuilder_ == null) { + facetIntervals_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + facetIntervalsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * If you don't set the facet
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2beta.SearchRequest.FacetSpec.FacetKey.intervals]
+       * in the request to a numerical attribute, then we use the computed
+       * intervals with rounded bounds obtained from all its product numerical
+       * attribute values. The computed intervals might not be ideal for some
+       * attributes. Therefore, we give you the option to overwrite them with the
+       * facet_intervals field. The maximum of facet intervals per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 40.
+       * Each interval must have a lower bound or an upper bound. If both bounds
+       * are provided, then the lower bound must be smaller or equal than the
+       * upper bound.
+       * 
+ * + * repeated .google.cloud.retail.v2beta.Interval facet_intervals = 1; + */ + public Builder removeFacetIntervals(int index) { + if (facetIntervalsBuilder_ == null) { + ensureFacetIntervalsIsMutable(); + facetIntervals_.remove(index); + onChanged(); + } else { + facetIntervalsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+       * If you don't set the facet
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2beta.SearchRequest.FacetSpec.FacetKey.intervals]
+       * in the request to a numerical attribute, then we use the computed
+       * intervals with rounded bounds obtained from all its product numerical
+       * attribute values. The computed intervals might not be ideal for some
+       * attributes. Therefore, we give you the option to overwrite them with the
+       * facet_intervals field. The maximum of facet intervals per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 40.
+       * Each interval must have a lower bound or an upper bound. If both bounds
+       * are provided, then the lower bound must be smaller or equal than the
+       * upper bound.
+       * 
+ * + * repeated .google.cloud.retail.v2beta.Interval facet_intervals = 1; + */ + public com.google.cloud.retail.v2beta.Interval.Builder getFacetIntervalsBuilder(int index) { + return getFacetIntervalsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * If you don't set the facet
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2beta.SearchRequest.FacetSpec.FacetKey.intervals]
+       * in the request to a numerical attribute, then we use the computed
+       * intervals with rounded bounds obtained from all its product numerical
+       * attribute values. The computed intervals might not be ideal for some
+       * attributes. Therefore, we give you the option to overwrite them with the
+       * facet_intervals field. The maximum of facet intervals per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 40.
+       * Each interval must have a lower bound or an upper bound. If both bounds
+       * are provided, then the lower bound must be smaller or equal than the
+       * upper bound.
+       * 
+ * + * repeated .google.cloud.retail.v2beta.Interval facet_intervals = 1; + */ + public com.google.cloud.retail.v2beta.IntervalOrBuilder getFacetIntervalsOrBuilder( + int index) { + if (facetIntervalsBuilder_ == null) { + return facetIntervals_.get(index); + } else { + return facetIntervalsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+       * If you don't set the facet
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2beta.SearchRequest.FacetSpec.FacetKey.intervals]
+       * in the request to a numerical attribute, then we use the computed
+       * intervals with rounded bounds obtained from all its product numerical
+       * attribute values. The computed intervals might not be ideal for some
+       * attributes. Therefore, we give you the option to overwrite them with the
+       * facet_intervals field. The maximum of facet intervals per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 40.
+       * Each interval must have a lower bound or an upper bound. If both bounds
+       * are provided, then the lower bound must be smaller or equal than the
+       * upper bound.
+       * 
+ * + * repeated .google.cloud.retail.v2beta.Interval facet_intervals = 1; + */ + public java.util.List + getFacetIntervalsOrBuilderList() { + if (facetIntervalsBuilder_ != null) { + return facetIntervalsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(facetIntervals_); + } + } + /** + * + * + *
+       * If you don't set the facet
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2beta.SearchRequest.FacetSpec.FacetKey.intervals]
+       * in the request to a numerical attribute, then we use the computed
+       * intervals with rounded bounds obtained from all its product numerical
+       * attribute values. The computed intervals might not be ideal for some
+       * attributes. Therefore, we give you the option to overwrite them with the
+       * facet_intervals field. The maximum of facet intervals per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 40.
+       * Each interval must have a lower bound or an upper bound. If both bounds
+       * are provided, then the lower bound must be smaller or equal than the
+       * upper bound.
+       * 
+ * + * repeated .google.cloud.retail.v2beta.Interval facet_intervals = 1; + */ + public com.google.cloud.retail.v2beta.Interval.Builder addFacetIntervalsBuilder() { + return getFacetIntervalsFieldBuilder() + .addBuilder(com.google.cloud.retail.v2beta.Interval.getDefaultInstance()); + } + /** + * + * + *
+       * If you don't set the facet
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2beta.SearchRequest.FacetSpec.FacetKey.intervals]
+       * in the request to a numerical attribute, then we use the computed
+       * intervals with rounded bounds obtained from all its product numerical
+       * attribute values. The computed intervals might not be ideal for some
+       * attributes. Therefore, we give you the option to overwrite them with the
+       * facet_intervals field. The maximum of facet intervals per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 40.
+       * Each interval must have a lower bound or an upper bound. If both bounds
+       * are provided, then the lower bound must be smaller or equal than the
+       * upper bound.
+       * 
+ * + * repeated .google.cloud.retail.v2beta.Interval facet_intervals = 1; + */ + public com.google.cloud.retail.v2beta.Interval.Builder addFacetIntervalsBuilder(int index) { + return getFacetIntervalsFieldBuilder() + .addBuilder(index, com.google.cloud.retail.v2beta.Interval.getDefaultInstance()); + } + /** + * + * + *
+       * If you don't set the facet
+       * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2beta.SearchRequest.FacetSpec.FacetKey.intervals]
+       * in the request to a numerical attribute, then we use the computed
+       * intervals with rounded bounds obtained from all its product numerical
+       * attribute values. The computed intervals might not be ideal for some
+       * attributes. Therefore, we give you the option to overwrite them with the
+       * facet_intervals field. The maximum of facet intervals per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 40.
+       * Each interval must have a lower bound or an upper bound. If both bounds
+       * are provided, then the lower bound must be smaller or equal than the
+       * upper bound.
+       * 
+ * + * repeated .google.cloud.retail.v2beta.Interval facet_intervals = 1; + */ + public java.util.List + getFacetIntervalsBuilderList() { + return getFacetIntervalsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2beta.Interval, + com.google.cloud.retail.v2beta.Interval.Builder, + com.google.cloud.retail.v2beta.IntervalOrBuilder> + getFacetIntervalsFieldBuilder() { + if (facetIntervalsBuilder_ == null) { + facetIntervalsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2beta.Interval, + com.google.cloud.retail.v2beta.Interval.Builder, + com.google.cloud.retail.v2beta.IntervalOrBuilder>( + facetIntervals_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + facetIntervals_ = null; + } + return facetIntervalsBuilder_; + } + + private java.util.List< + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues> + ignoredFacetValues_ = java.util.Collections.emptyList(); + + private void ensureIgnoredFacetValuesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + ignoredFacetValues_ = + new java.util.ArrayList< + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues>( + ignoredFacetValues_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues, + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues + .Builder, + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig + .IgnoredFacetValuesOrBuilder> + ignoredFacetValuesBuilder_; + + /** + * + * + *
+       * Each instance represents a list of attribute values to ignore as facet
+       * values for a specific time range. The maximum number of instances per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 25.
+       * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + public java.util.List< + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues> + getIgnoredFacetValuesList() { + if (ignoredFacetValuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(ignoredFacetValues_); + } else { + return ignoredFacetValuesBuilder_.getMessageList(); + } + } + /** + * + * + *
+       * Each instance represents a list of attribute values to ignore as facet
+       * values for a specific time range. The maximum number of instances per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 25.
+       * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + public int getIgnoredFacetValuesCount() { + if (ignoredFacetValuesBuilder_ == null) { + return ignoredFacetValues_.size(); + } else { + return ignoredFacetValuesBuilder_.getCount(); + } + } + /** + * + * + *
+       * Each instance represents a list of attribute values to ignore as facet
+       * values for a specific time range. The maximum number of instances per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 25.
+       * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + public com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues + getIgnoredFacetValues(int index) { + if (ignoredFacetValuesBuilder_ == null) { + return ignoredFacetValues_.get(index); + } else { + return ignoredFacetValuesBuilder_.getMessage(index); + } + } + /** + * + * + *
+       * Each instance represents a list of attribute values to ignore as facet
+       * values for a specific time range. The maximum number of instances per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 25.
+       * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + public Builder setIgnoredFacetValues( + int index, + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues value) { + if (ignoredFacetValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIgnoredFacetValuesIsMutable(); + ignoredFacetValues_.set(index, value); + onChanged(); + } else { + ignoredFacetValuesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Each instance represents a list of attribute values to ignore as facet
+       * values for a specific time range. The maximum number of instances per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 25.
+       * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + public Builder setIgnoredFacetValues( + int index, + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues.Builder + builderForValue) { + if (ignoredFacetValuesBuilder_ == null) { + ensureIgnoredFacetValuesIsMutable(); + ignoredFacetValues_.set(index, builderForValue.build()); + onChanged(); + } else { + ignoredFacetValuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Each instance represents a list of attribute values to ignore as facet
+       * values for a specific time range. The maximum number of instances per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 25.
+       * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + public Builder addIgnoredFacetValues( + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues value) { + if (ignoredFacetValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIgnoredFacetValuesIsMutable(); + ignoredFacetValues_.add(value); + onChanged(); + } else { + ignoredFacetValuesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+       * Each instance represents a list of attribute values to ignore as facet
+       * values for a specific time range. The maximum number of instances per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 25.
+       * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + public Builder addIgnoredFacetValues( + int index, + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues value) { + if (ignoredFacetValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIgnoredFacetValuesIsMutable(); + ignoredFacetValues_.add(index, value); + onChanged(); + } else { + ignoredFacetValuesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Each instance represents a list of attribute values to ignore as facet
+       * values for a specific time range. The maximum number of instances per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 25.
+       * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + public Builder addIgnoredFacetValues( + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues.Builder + builderForValue) { + if (ignoredFacetValuesBuilder_ == null) { + ensureIgnoredFacetValuesIsMutable(); + ignoredFacetValues_.add(builderForValue.build()); + onChanged(); + } else { + ignoredFacetValuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Each instance represents a list of attribute values to ignore as facet
+       * values for a specific time range. The maximum number of instances per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 25.
+       * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + public Builder addIgnoredFacetValues( + int index, + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues.Builder + builderForValue) { + if (ignoredFacetValuesBuilder_ == null) { + ensureIgnoredFacetValuesIsMutable(); + ignoredFacetValues_.add(index, builderForValue.build()); + onChanged(); + } else { + ignoredFacetValuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Each instance represents a list of attribute values to ignore as facet
+       * values for a specific time range. The maximum number of instances per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 25.
+       * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + public Builder addAllIgnoredFacetValues( + java.lang.Iterable< + ? extends + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig + .IgnoredFacetValues> + values) { + if (ignoredFacetValuesBuilder_ == null) { + ensureIgnoredFacetValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ignoredFacetValues_); + onChanged(); + } else { + ignoredFacetValuesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+       * Each instance represents a list of attribute values to ignore as facet
+       * values for a specific time range. The maximum number of instances per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 25.
+       * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + public Builder clearIgnoredFacetValues() { + if (ignoredFacetValuesBuilder_ == null) { + ignoredFacetValues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + ignoredFacetValuesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Each instance represents a list of attribute values to ignore as facet
+       * values for a specific time range. The maximum number of instances per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 25.
+       * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + public Builder removeIgnoredFacetValues(int index) { + if (ignoredFacetValuesBuilder_ == null) { + ensureIgnoredFacetValuesIsMutable(); + ignoredFacetValues_.remove(index); + onChanged(); + } else { + ignoredFacetValuesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+       * Each instance represents a list of attribute values to ignore as facet
+       * values for a specific time range. The maximum number of instances per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 25.
+       * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + public com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues.Builder + getIgnoredFacetValuesBuilder(int index) { + return getIgnoredFacetValuesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * Each instance represents a list of attribute values to ignore as facet
+       * values for a specific time range. The maximum number of instances per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 25.
+       * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + public com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValuesOrBuilder + getIgnoredFacetValuesOrBuilder(int index) { + if (ignoredFacetValuesBuilder_ == null) { + return ignoredFacetValues_.get(index); + } else { + return ignoredFacetValuesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+       * Each instance represents a list of attribute values to ignore as facet
+       * values for a specific time range. The maximum number of instances per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 25.
+       * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + public java.util.List< + ? extends + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig + .IgnoredFacetValuesOrBuilder> + getIgnoredFacetValuesOrBuilderList() { + if (ignoredFacetValuesBuilder_ != null) { + return ignoredFacetValuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(ignoredFacetValues_); + } + } + /** + * + * + *
+       * Each instance represents a list of attribute values to ignore as facet
+       * values for a specific time range. The maximum number of instances per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 25.
+       * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + public com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues.Builder + addIgnoredFacetValuesBuilder() { + return getIgnoredFacetValuesFieldBuilder() + .addBuilder( + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues + .getDefaultInstance()); + } + /** + * + * + *
+       * Each instance represents a list of attribute values to ignore as facet
+       * values for a specific time range. The maximum number of instances per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 25.
+       * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + public com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues.Builder + addIgnoredFacetValuesBuilder(int index) { + return getIgnoredFacetValuesFieldBuilder() + .addBuilder( + index, + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues + .getDefaultInstance()); + } + /** + * + * + *
+       * Each instance represents a list of attribute values to ignore as facet
+       * values for a specific time range. The maximum number of instances per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 25.
+       * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues ignored_facet_values = 2; + * + */ + public java.util.List< + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues + .Builder> + getIgnoredFacetValuesBuilderList() { + return getIgnoredFacetValuesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues, + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues + .Builder, + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig + .IgnoredFacetValuesOrBuilder> + getIgnoredFacetValuesFieldBuilder() { + if (ignoredFacetValuesBuilder_ == null) { + ignoredFacetValuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues, + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.IgnoredFacetValues + .Builder, + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig + .IgnoredFacetValuesOrBuilder>( + ignoredFacetValues_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + ignoredFacetValues_ = null; + } + return ignoredFacetValuesBuilder_; + } + + private java.util.List< + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue> + mergedFacetValues_ = java.util.Collections.emptyList(); + + private void ensureMergedFacetValuesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + mergedFacetValues_ = + new java.util.ArrayList< + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue>( + mergedFacetValues_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue, + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue.Builder, + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValueOrBuilder> + mergedFacetValuesBuilder_; + + /** + * + * + *
+       * Each instance replaces a list of facet values by a merged facet
+       * value. If a facet value is not in any list, then it will stay the same.
+       * To avoid conflicts, only paths of length 1 are accepted. In other words,
+       * if "dark_blue" merged into "BLUE", then the latter can't merge into
+       * "blues" because this would create a path of length 2. The maximum number
+       * of instances of MergedFacetValue per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 100.
+       * This feature is available only for textual custom attributes.
+       * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + public java.util.List< + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue> + getMergedFacetValuesList() { + if (mergedFacetValuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(mergedFacetValues_); + } else { + return mergedFacetValuesBuilder_.getMessageList(); + } + } + /** + * + * + *
+       * Each instance replaces a list of facet values by a merged facet
+       * value. If a facet value is not in any list, then it will stay the same.
+       * To avoid conflicts, only paths of length 1 are accepted. In other words,
+       * if "dark_blue" merged into "BLUE", then the latter can't merge into
+       * "blues" because this would create a path of length 2. The maximum number
+       * of instances of MergedFacetValue per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 100.
+       * This feature is available only for textual custom attributes.
+       * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + public int getMergedFacetValuesCount() { + if (mergedFacetValuesBuilder_ == null) { + return mergedFacetValues_.size(); + } else { + return mergedFacetValuesBuilder_.getCount(); + } + } + /** + * + * + *
+       * Each instance replaces a list of facet values by a merged facet
+       * value. If a facet value is not in any list, then it will stay the same.
+       * To avoid conflicts, only paths of length 1 are accepted. In other words,
+       * if "dark_blue" merged into "BLUE", then the latter can't merge into
+       * "blues" because this would create a path of length 2. The maximum number
+       * of instances of MergedFacetValue per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 100.
+       * This feature is available only for textual custom attributes.
+       * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + public com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue + getMergedFacetValues(int index) { + if (mergedFacetValuesBuilder_ == null) { + return mergedFacetValues_.get(index); + } else { + return mergedFacetValuesBuilder_.getMessage(index); + } + } + /** + * + * + *
+       * Each instance replaces a list of facet values by a merged facet
+       * value. If a facet value is not in any list, then it will stay the same.
+       * To avoid conflicts, only paths of length 1 are accepted. In other words,
+       * if "dark_blue" merged into "BLUE", then the latter can't merge into
+       * "blues" because this would create a path of length 2. The maximum number
+       * of instances of MergedFacetValue per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 100.
+       * This feature is available only for textual custom attributes.
+       * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + public Builder setMergedFacetValues( + int index, + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue value) { + if (mergedFacetValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMergedFacetValuesIsMutable(); + mergedFacetValues_.set(index, value); + onChanged(); + } else { + mergedFacetValuesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Each instance replaces a list of facet values by a merged facet
+       * value. If a facet value is not in any list, then it will stay the same.
+       * To avoid conflicts, only paths of length 1 are accepted. In other words,
+       * if "dark_blue" merged into "BLUE", then the latter can't merge into
+       * "blues" because this would create a path of length 2. The maximum number
+       * of instances of MergedFacetValue per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 100.
+       * This feature is available only for textual custom attributes.
+       * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + public Builder setMergedFacetValues( + int index, + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue.Builder + builderForValue) { + if (mergedFacetValuesBuilder_ == null) { + ensureMergedFacetValuesIsMutable(); + mergedFacetValues_.set(index, builderForValue.build()); + onChanged(); + } else { + mergedFacetValuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Each instance replaces a list of facet values by a merged facet
+       * value. If a facet value is not in any list, then it will stay the same.
+       * To avoid conflicts, only paths of length 1 are accepted. In other words,
+       * if "dark_blue" merged into "BLUE", then the latter can't merge into
+       * "blues" because this would create a path of length 2. The maximum number
+       * of instances of MergedFacetValue per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 100.
+       * This feature is available only for textual custom attributes.
+       * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + public Builder addMergedFacetValues( + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue value) { + if (mergedFacetValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMergedFacetValuesIsMutable(); + mergedFacetValues_.add(value); + onChanged(); + } else { + mergedFacetValuesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+       * Each instance replaces a list of facet values by a merged facet
+       * value. If a facet value is not in any list, then it will stay the same.
+       * To avoid conflicts, only paths of length 1 are accepted. In other words,
+       * if "dark_blue" merged into "BLUE", then the latter can't merge into
+       * "blues" because this would create a path of length 2. The maximum number
+       * of instances of MergedFacetValue per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 100.
+       * This feature is available only for textual custom attributes.
+       * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + public Builder addMergedFacetValues( + int index, + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue value) { + if (mergedFacetValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMergedFacetValuesIsMutable(); + mergedFacetValues_.add(index, value); + onChanged(); + } else { + mergedFacetValuesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Each instance replaces a list of facet values by a merged facet
+       * value. If a facet value is not in any list, then it will stay the same.
+       * To avoid conflicts, only paths of length 1 are accepted. In other words,
+       * if "dark_blue" merged into "BLUE", then the latter can't merge into
+       * "blues" because this would create a path of length 2. The maximum number
+       * of instances of MergedFacetValue per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 100.
+       * This feature is available only for textual custom attributes.
+       * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + public Builder addMergedFacetValues( + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue.Builder + builderForValue) { + if (mergedFacetValuesBuilder_ == null) { + ensureMergedFacetValuesIsMutable(); + mergedFacetValues_.add(builderForValue.build()); + onChanged(); + } else { + mergedFacetValuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Each instance replaces a list of facet values by a merged facet
+       * value. If a facet value is not in any list, then it will stay the same.
+       * To avoid conflicts, only paths of length 1 are accepted. In other words,
+       * if "dark_blue" merged into "BLUE", then the latter can't merge into
+       * "blues" because this would create a path of length 2. The maximum number
+       * of instances of MergedFacetValue per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 100.
+       * This feature is available only for textual custom attributes.
+       * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + public Builder addMergedFacetValues( + int index, + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue.Builder + builderForValue) { + if (mergedFacetValuesBuilder_ == null) { + ensureMergedFacetValuesIsMutable(); + mergedFacetValues_.add(index, builderForValue.build()); + onChanged(); + } else { + mergedFacetValuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Each instance replaces a list of facet values by a merged facet
+       * value. If a facet value is not in any list, then it will stay the same.
+       * To avoid conflicts, only paths of length 1 are accepted. In other words,
+       * if "dark_blue" merged into "BLUE", then the latter can't merge into
+       * "blues" because this would create a path of length 2. The maximum number
+       * of instances of MergedFacetValue per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 100.
+       * This feature is available only for textual custom attributes.
+       * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + public Builder addAllMergedFacetValues( + java.lang.Iterable< + ? extends + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue> + values) { + if (mergedFacetValuesBuilder_ == null) { + ensureMergedFacetValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mergedFacetValues_); + onChanged(); + } else { + mergedFacetValuesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+       * Each instance replaces a list of facet values by a merged facet
+       * value. If a facet value is not in any list, then it will stay the same.
+       * To avoid conflicts, only paths of length 1 are accepted. In other words,
+       * if "dark_blue" merged into "BLUE", then the latter can't merge into
+       * "blues" because this would create a path of length 2. The maximum number
+       * of instances of MergedFacetValue per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 100.
+       * This feature is available only for textual custom attributes.
+       * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + public Builder clearMergedFacetValues() { + if (mergedFacetValuesBuilder_ == null) { + mergedFacetValues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + mergedFacetValuesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Each instance replaces a list of facet values by a merged facet
+       * value. If a facet value is not in any list, then it will stay the same.
+       * To avoid conflicts, only paths of length 1 are accepted. In other words,
+       * if "dark_blue" merged into "BLUE", then the latter can't merge into
+       * "blues" because this would create a path of length 2. The maximum number
+       * of instances of MergedFacetValue per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 100.
+       * This feature is available only for textual custom attributes.
+       * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + public Builder removeMergedFacetValues(int index) { + if (mergedFacetValuesBuilder_ == null) { + ensureMergedFacetValuesIsMutable(); + mergedFacetValues_.remove(index); + onChanged(); + } else { + mergedFacetValuesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+       * Each instance replaces a list of facet values by a merged facet
+       * value. If a facet value is not in any list, then it will stay the same.
+       * To avoid conflicts, only paths of length 1 are accepted. In other words,
+       * if "dark_blue" merged into "BLUE", then the latter can't merge into
+       * "blues" because this would create a path of length 2. The maximum number
+       * of instances of MergedFacetValue per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 100.
+       * This feature is available only for textual custom attributes.
+       * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + public com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue.Builder + getMergedFacetValuesBuilder(int index) { + return getMergedFacetValuesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * Each instance replaces a list of facet values by a merged facet
+       * value. If a facet value is not in any list, then it will stay the same.
+       * To avoid conflicts, only paths of length 1 are accepted. In other words,
+       * if "dark_blue" merged into "BLUE", then the latter can't merge into
+       * "blues" because this would create a path of length 2. The maximum number
+       * of instances of MergedFacetValue per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 100.
+       * This feature is available only for textual custom attributes.
+       * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + public com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValueOrBuilder + getMergedFacetValuesOrBuilder(int index) { + if (mergedFacetValuesBuilder_ == null) { + return mergedFacetValues_.get(index); + } else { + return mergedFacetValuesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+       * Each instance replaces a list of facet values by a merged facet
+       * value. If a facet value is not in any list, then it will stay the same.
+       * To avoid conflicts, only paths of length 1 are accepted. In other words,
+       * if "dark_blue" merged into "BLUE", then the latter can't merge into
+       * "blues" because this would create a path of length 2. The maximum number
+       * of instances of MergedFacetValue per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 100.
+       * This feature is available only for textual custom attributes.
+       * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + public java.util.List< + ? extends + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig + .MergedFacetValueOrBuilder> + getMergedFacetValuesOrBuilderList() { + if (mergedFacetValuesBuilder_ != null) { + return mergedFacetValuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(mergedFacetValues_); + } + } + /** + * + * + *
+       * Each instance replaces a list of facet values by a merged facet
+       * value. If a facet value is not in any list, then it will stay the same.
+       * To avoid conflicts, only paths of length 1 are accepted. In other words,
+       * if "dark_blue" merged into "BLUE", then the latter can't merge into
+       * "blues" because this would create a path of length 2. The maximum number
+       * of instances of MergedFacetValue per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 100.
+       * This feature is available only for textual custom attributes.
+       * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + public com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue.Builder + addMergedFacetValuesBuilder() { + return getMergedFacetValuesFieldBuilder() + .addBuilder( + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue + .getDefaultInstance()); + } + /** + * + * + *
+       * Each instance replaces a list of facet values by a merged facet
+       * value. If a facet value is not in any list, then it will stay the same.
+       * To avoid conflicts, only paths of length 1 are accepted. In other words,
+       * if "dark_blue" merged into "BLUE", then the latter can't merge into
+       * "blues" because this would create a path of length 2. The maximum number
+       * of instances of MergedFacetValue per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 100.
+       * This feature is available only for textual custom attributes.
+       * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + public com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue.Builder + addMergedFacetValuesBuilder(int index) { + return getMergedFacetValuesFieldBuilder() + .addBuilder( + index, + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue + .getDefaultInstance()); + } + /** + * + * + *
+       * Each instance replaces a list of facet values by a merged facet
+       * value. If a facet value is not in any list, then it will stay the same.
+       * To avoid conflicts, only paths of length 1 are accepted. In other words,
+       * if "dark_blue" merged into "BLUE", then the latter can't merge into
+       * "blues" because this would create a path of length 2. The maximum number
+       * of instances of MergedFacetValue per
+       * [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 100.
+       * This feature is available only for textual custom attributes.
+       * 
+ * + * + * repeated .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue merged_facet_values = 3; + * + */ + public java.util.List< + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue.Builder> + getMergedFacetValuesBuilderList() { + return getMergedFacetValuesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue, + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue.Builder, + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValueOrBuilder> + getMergedFacetValuesFieldBuilder() { + if (mergedFacetValuesBuilder_ == null) { + mergedFacetValuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue, + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue + .Builder, + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig + .MergedFacetValueOrBuilder>( + mergedFacetValues_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + mergedFacetValues_ = null; + } + return mergedFacetValuesBuilder_; + } + + private com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet mergedFacet_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet, + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet.Builder, + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetOrBuilder> + mergedFacetBuilder_; + /** + * + * + *
+       * Use this field only if you want to merge a facet key into another facet
+       * key.
+       * 
+ * + * + * .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet merged_facet = 4; + * + * + * @return Whether the mergedFacet field is set. + */ + public boolean hasMergedFacet() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+       * Use this field only if you want to merge a facet key into another facet
+       * key.
+       * 
+ * + * + * .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet merged_facet = 4; + * + * + * @return The mergedFacet. + */ + public com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet + getMergedFacet() { + if (mergedFacetBuilder_ == null) { + return mergedFacet_ == null + ? com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet + .getDefaultInstance() + : mergedFacet_; + } else { + return mergedFacetBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Use this field only if you want to merge a facet key into another facet
+       * key.
+       * 
+ * + * + * .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet merged_facet = 4; + * + */ + public Builder setMergedFacet( + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet value) { + if (mergedFacetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mergedFacet_ = value; + } else { + mergedFacetBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+       * Use this field only if you want to merge a facet key into another facet
+       * key.
+       * 
+ * + * + * .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet merged_facet = 4; + * + */ + public Builder setMergedFacet( + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet.Builder + builderForValue) { + if (mergedFacetBuilder_ == null) { + mergedFacet_ = builderForValue.build(); + } else { + mergedFacetBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+       * Use this field only if you want to merge a facet key into another facet
+       * key.
+       * 
+ * + * + * .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet merged_facet = 4; + * + */ + public Builder mergeMergedFacet( + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet value) { + if (mergedFacetBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && mergedFacet_ != null + && mergedFacet_ + != com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet + .getDefaultInstance()) { + getMergedFacetBuilder().mergeFrom(value); + } else { + mergedFacet_ = value; + } + } else { + mergedFacetBuilder_.mergeFrom(value); + } + if (mergedFacet_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
+       * Use this field only if you want to merge a facet key into another facet
+       * key.
+       * 
+ * + * + * .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet merged_facet = 4; + * + */ + public Builder clearMergedFacet() { + bitField0_ = (bitField0_ & ~0x00000008); + mergedFacet_ = null; + if (mergedFacetBuilder_ != null) { + mergedFacetBuilder_.dispose(); + mergedFacetBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * Use this field only if you want to merge a facet key into another facet
+       * key.
+       * 
+ * + * + * .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet merged_facet = 4; + * + */ + public com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet.Builder + getMergedFacetBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getMergedFacetFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Use this field only if you want to merge a facet key into another facet
+       * key.
+       * 
+ * + * + * .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet merged_facet = 4; + * + */ + public com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetOrBuilder + getMergedFacetOrBuilder() { + if (mergedFacetBuilder_ != null) { + return mergedFacetBuilder_.getMessageOrBuilder(); + } else { + return mergedFacet_ == null + ? com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet + .getDefaultInstance() + : mergedFacet_; + } + } + /** + * + * + *
+       * Use this field only if you want to merge a facet key into another facet
+       * key.
+       * 
+ * + * + * .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet merged_facet = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet, + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet.Builder, + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetOrBuilder> + getMergedFacetFieldBuilder() { + if (mergedFacetBuilder_ == null) { + mergedFacetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet, + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet.Builder, + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetOrBuilder>( + getMergedFacet(), getParentForChildren(), isClean()); + mergedFacet_ = null; + } + return mergedFacetBuilder_; + } + + private com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig + rerankConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig, + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig.Builder, + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfigOrBuilder> + rerankConfigBuilder_; + /** + * + * + *
+       * Set this field only if you want to rerank based on facet values engaged
+       * by the user for the current key. This option is only possible for custom
+       * facetable textual keys.
+       * 
+ * + * + * .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig rerank_config = 5; + * + * + * @return Whether the rerankConfig field is set. + */ + public boolean hasRerankConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+       * Set this field only if you want to rerank based on facet values engaged
+       * by the user for the current key. This option is only possible for custom
+       * facetable textual keys.
+       * 
+ * + * + * .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig rerank_config = 5; + * + * + * @return The rerankConfig. + */ + public com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig + getRerankConfig() { + if (rerankConfigBuilder_ == null) { + return rerankConfig_ == null + ? com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig + .getDefaultInstance() + : rerankConfig_; + } else { + return rerankConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Set this field only if you want to rerank based on facet values engaged
+       * by the user for the current key. This option is only possible for custom
+       * facetable textual keys.
+       * 
+ * + * + * .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig rerank_config = 5; + * + */ + public Builder setRerankConfig( + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig value) { + if (rerankConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rerankConfig_ = value; + } else { + rerankConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+       * Set this field only if you want to rerank based on facet values engaged
+       * by the user for the current key. This option is only possible for custom
+       * facetable textual keys.
+       * 
+ * + * + * .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig rerank_config = 5; + * + */ + public Builder setRerankConfig( + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig.Builder + builderForValue) { + if (rerankConfigBuilder_ == null) { + rerankConfig_ = builderForValue.build(); + } else { + rerankConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+       * Set this field only if you want to rerank based on facet values engaged
+       * by the user for the current key. This option is only possible for custom
+       * facetable textual keys.
+       * 
+ * + * + * .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig rerank_config = 5; + * + */ + public Builder mergeRerankConfig( + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig value) { + if (rerankConfigBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && rerankConfig_ != null + && rerankConfig_ + != com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig + .getDefaultInstance()) { + getRerankConfigBuilder().mergeFrom(value); + } else { + rerankConfig_ = value; + } + } else { + rerankConfigBuilder_.mergeFrom(value); + } + if (rerankConfig_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
+       * Set this field only if you want to rerank based on facet values engaged
+       * by the user for the current key. This option is only possible for custom
+       * facetable textual keys.
+       * 
+ * + * + * .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig rerank_config = 5; + * + */ + public Builder clearRerankConfig() { + bitField0_ = (bitField0_ & ~0x00000010); + rerankConfig_ = null; + if (rerankConfigBuilder_ != null) { + rerankConfigBuilder_.dispose(); + rerankConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * Set this field only if you want to rerank based on facet values engaged
+       * by the user for the current key. This option is only possible for custom
+       * facetable textual keys.
+       * 
+ * + * + * .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig rerank_config = 5; + * + */ + public com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig.Builder + getRerankConfigBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getRerankConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Set this field only if you want to rerank based on facet values engaged
+       * by the user for the current key. This option is only possible for custom
+       * facetable textual keys.
+       * 
+ * + * + * .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig rerank_config = 5; + * + */ + public com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfigOrBuilder + getRerankConfigOrBuilder() { + if (rerankConfigBuilder_ != null) { + return rerankConfigBuilder_.getMessageOrBuilder(); + } else { + return rerankConfig_ == null + ? com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig + .getDefaultInstance() + : rerankConfig_; + } + } + /** + * + * + *
+       * Set this field only if you want to rerank based on facet values engaged
+       * by the user for the current key. This option is only possible for custom
+       * facetable textual keys.
+       * 
+ * + * + * .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig rerank_config = 5; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig, + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig.Builder, + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfigOrBuilder> + getRerankConfigFieldBuilder() { + if (rerankConfigBuilder_ == null) { + rerankConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig, + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.RerankConfig.Builder, + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig + .RerankConfigOrBuilder>(getRerankConfig(), getParentForChildren(), isClean()); + rerankConfig_ = null; + } + return rerankConfigBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2beta.CatalogAttribute.FacetConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2beta.CatalogAttribute.FacetConfig) + private static final com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig(); + } + + public static com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FacetConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; public static final int KEY_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -1198,7 +9084,9 @@ public com.google.cloud.retail.v2beta.CatalogAttribute.AttributeType getType() { * are indexed so that it can be filtered, faceted, or boosted in * [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search]. * - * Must be specified, otherwise throws INVALID_FORMAT error. + * Must be specified when + * [AttributesConfig.attribute_config_level][google.cloud.retail.v2beta.AttributesConfig.attribute_config_level] + * is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. * * * .google.cloud.retail.v2beta.CatalogAttribute.IndexableOption indexable_option = 5; @@ -1219,7 +9107,9 @@ public int getIndexableOptionValue() { * are indexed so that it can be filtered, faceted, or boosted in * [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search]. * - * Must be specified, otherwise throws INVALID_FORMAT error. + * Must be specified when + * [AttributesConfig.attribute_config_level][google.cloud.retail.v2beta.AttributesConfig.attribute_config_level] + * is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. * * * .google.cloud.retail.v2beta.CatalogAttribute.IndexableOption indexable_option = 5; @@ -1305,7 +9195,9 @@ public int getDynamicFacetableOptionValue() { * [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search], as * there are no text values associated to numerical attributes. * - * Must be specified, otherwise throws INVALID_FORMAT error. + * Must be specified, when + * [AttributesConfig.attribute_config_level][google.cloud.retail.v2beta.AttributesConfig.attribute_config_level] + * is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. * * * .google.cloud.retail.v2beta.CatalogAttribute.SearchableOption searchable_option = 7; @@ -1332,7 +9224,9 @@ public int getSearchableOptionValue() { * [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search], as * there are no text values associated to numerical attributes. * - * Must be specified, otherwise throws INVALID_FORMAT error. + * Must be specified, when + * [AttributesConfig.attribute_config_level][google.cloud.retail.v2beta.AttributesConfig.attribute_config_level] + * is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. * * * .google.cloud.retail.v2beta.CatalogAttribute.SearchableOption searchable_option = 7; @@ -1498,6 +9392,57 @@ public com.google.cloud.retail.v2beta.CatalogAttribute.RetrievableOption getRetr : result; } + public static final int FACET_CONFIG_FIELD_NUMBER = 13; + private com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig facetConfig_; + /** + * + * + *
+   * Contains facet options.
+   * 
+ * + * .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig facet_config = 13; + * + * @return Whether the facetConfig field is set. + */ + @java.lang.Override + public boolean hasFacetConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Contains facet options.
+   * 
+ * + * .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig facet_config = 13; + * + * @return The facetConfig. + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig getFacetConfig() { + return facetConfig_ == null + ? com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.getDefaultInstance() + : facetConfig_; + } + /** + * + * + *
+   * Contains facet options.
+   * 
+ * + * .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig facet_config = 13; + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfigOrBuilder + getFacetConfigOrBuilder() { + return facetConfig_ == null + ? com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.getDefaultInstance() + : facetConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1558,6 +9503,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(12, retrievableOption_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(13, getFacetConfig()); + } getUnknownFields().writeTo(output); } @@ -1614,6 +9562,9 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, retrievableOption_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getFacetConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1639,6 +9590,10 @@ public boolean equals(final java.lang.Object obj) { if (recommendationsFilteringOption_ != other.recommendationsFilteringOption_) return false; if (exactSearchableOption_ != other.exactSearchableOption_) return false; if (retrievableOption_ != other.retrievableOption_) return false; + if (hasFacetConfig() != other.hasFacetConfig()) return false; + if (hasFacetConfig()) { + if (!getFacetConfig().equals(other.getFacetConfig())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1668,6 +9623,10 @@ public int hashCode() { hash = (53 * hash) + exactSearchableOption_; hash = (37 * hash) + RETRIEVABLE_OPTION_FIELD_NUMBER; hash = (53 * hash) + retrievableOption_; + if (hasFacetConfig()) { + hash = (37 * hash) + FACET_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getFacetConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1798,10 +9757,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.retail.v2beta.CatalogAttribute.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getFacetConfigFieldBuilder(); + } } @java.lang.Override @@ -1817,6 +9785,11 @@ public Builder clear() { recommendationsFilteringOption_ = 0; exactSearchableOption_ = 0; retrievableOption_ = 0; + facetConfig_ = null; + if (facetConfigBuilder_ != null) { + facetConfigBuilder_.dispose(); + facetConfigBuilder_ = null; + } return this; } @@ -1880,6 +9853,13 @@ private void buildPartial0(com.google.cloud.retail.v2beta.CatalogAttribute resul if (((from_bitField0_ & 0x00000100) != 0)) { result.retrievableOption_ = retrievableOption_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000200) != 0)) { + result.facetConfig_ = + facetConfigBuilder_ == null ? facetConfig_ : facetConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -1957,6 +9937,9 @@ public Builder mergeFrom(com.google.cloud.retail.v2beta.CatalogAttribute other) if (other.retrievableOption_ != 0) { setRetrievableOptionValue(other.getRetrievableOptionValue()); } + if (other.hasFacetConfig()) { + mergeFacetConfig(other.getFacetConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2037,6 +10020,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000100; break; } // case 96 + case 106: + { + input.readMessage(getFacetConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 106 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2449,7 +10438,9 @@ public Builder clearType() { * are indexed so that it can be filtered, faceted, or boosted in * [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search]. * - * Must be specified, otherwise throws INVALID_FORMAT error. + * Must be specified when + * [AttributesConfig.attribute_config_level][google.cloud.retail.v2beta.AttributesConfig.attribute_config_level] + * is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. * * * .google.cloud.retail.v2beta.CatalogAttribute.IndexableOption indexable_option = 5; @@ -2471,7 +10462,9 @@ public int getIndexableOptionValue() { * are indexed so that it can be filtered, faceted, or boosted in * [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search]. * - * Must be specified, otherwise throws INVALID_FORMAT error. + * Must be specified when + * [AttributesConfig.attribute_config_level][google.cloud.retail.v2beta.AttributesConfig.attribute_config_level] + * is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. * * * .google.cloud.retail.v2beta.CatalogAttribute.IndexableOption indexable_option = 5; @@ -2496,7 +10489,9 @@ public Builder setIndexableOptionValue(int value) { * are indexed so that it can be filtered, faceted, or boosted in * [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search]. * - * Must be specified, otherwise throws INVALID_FORMAT error. + * Must be specified when + * [AttributesConfig.attribute_config_level][google.cloud.retail.v2beta.AttributesConfig.attribute_config_level] + * is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. * * * .google.cloud.retail.v2beta.CatalogAttribute.IndexableOption indexable_option = 5; @@ -2523,7 +10518,9 @@ public com.google.cloud.retail.v2beta.CatalogAttribute.IndexableOption getIndexa * are indexed so that it can be filtered, faceted, or boosted in * [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search]. * - * Must be specified, otherwise throws INVALID_FORMAT error. + * Must be specified when + * [AttributesConfig.attribute_config_level][google.cloud.retail.v2beta.AttributesConfig.attribute_config_level] + * is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. * * * .google.cloud.retail.v2beta.CatalogAttribute.IndexableOption indexable_option = 5; @@ -2552,7 +10549,9 @@ public Builder setIndexableOption( * are indexed so that it can be filtered, faceted, or boosted in * [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search]. * - * Must be specified, otherwise throws INVALID_FORMAT error. + * Must be specified when + * [AttributesConfig.attribute_config_level][google.cloud.retail.v2beta.AttributesConfig.attribute_config_level] + * is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. * * * .google.cloud.retail.v2beta.CatalogAttribute.IndexableOption indexable_option = 5; @@ -2713,7 +10712,9 @@ public Builder clearDynamicFacetableOption() { * [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search], as * there are no text values associated to numerical attributes. * - * Must be specified, otherwise throws INVALID_FORMAT error. + * Must be specified, when + * [AttributesConfig.attribute_config_level][google.cloud.retail.v2beta.AttributesConfig.attribute_config_level] + * is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. * * * .google.cloud.retail.v2beta.CatalogAttribute.SearchableOption searchable_option = 7; @@ -2740,7 +10741,9 @@ public int getSearchableOptionValue() { * [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search], as * there are no text values associated to numerical attributes. * - * Must be specified, otherwise throws INVALID_FORMAT error. + * Must be specified, when + * [AttributesConfig.attribute_config_level][google.cloud.retail.v2beta.AttributesConfig.attribute_config_level] + * is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. * * * .google.cloud.retail.v2beta.CatalogAttribute.SearchableOption searchable_option = 7; @@ -2770,7 +10773,9 @@ public Builder setSearchableOptionValue(int value) { * [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search], as * there are no text values associated to numerical attributes. * - * Must be specified, otherwise throws INVALID_FORMAT error. + * Must be specified, when + * [AttributesConfig.attribute_config_level][google.cloud.retail.v2beta.AttributesConfig.attribute_config_level] + * is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. * * * .google.cloud.retail.v2beta.CatalogAttribute.SearchableOption searchable_option = 7; @@ -2802,7 +10807,9 @@ public com.google.cloud.retail.v2beta.CatalogAttribute.SearchableOption getSearc * [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search], as * there are no text values associated to numerical attributes. * - * Must be specified, otherwise throws INVALID_FORMAT error. + * Must be specified, when + * [AttributesConfig.attribute_config_level][google.cloud.retail.v2beta.AttributesConfig.attribute_config_level] + * is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. * * * .google.cloud.retail.v2beta.CatalogAttribute.SearchableOption searchable_option = 7; @@ -2836,7 +10843,9 @@ public Builder setSearchableOption( * [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search], as * there are no text values associated to numerical attributes. * - * Must be specified, otherwise throws INVALID_FORMAT error. + * Must be specified, when + * [AttributesConfig.attribute_config_level][google.cloud.retail.v2beta.AttributesConfig.attribute_config_level] + * is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. * * * .google.cloud.retail.v2beta.CatalogAttribute.SearchableOption searchable_option = 7; @@ -3216,6 +11225,198 @@ public Builder clearRetrievableOption() { return this; } + private com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig facetConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig, + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.Builder, + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfigOrBuilder> + facetConfigBuilder_; + /** + * + * + *
+     * Contains facet options.
+     * 
+ * + * .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig facet_config = 13; + * + * @return Whether the facetConfig field is set. + */ + public boolean hasFacetConfig() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * + * + *
+     * Contains facet options.
+     * 
+ * + * .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig facet_config = 13; + * + * @return The facetConfig. + */ + public com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig getFacetConfig() { + if (facetConfigBuilder_ == null) { + return facetConfig_ == null + ? com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.getDefaultInstance() + : facetConfig_; + } else { + return facetConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Contains facet options.
+     * 
+ * + * .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig facet_config = 13; + */ + public Builder setFacetConfig( + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig value) { + if (facetConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + facetConfig_ = value; + } else { + facetConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * Contains facet options.
+     * 
+ * + * .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig facet_config = 13; + */ + public Builder setFacetConfig( + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.Builder builderForValue) { + if (facetConfigBuilder_ == null) { + facetConfig_ = builderForValue.build(); + } else { + facetConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * Contains facet options.
+     * 
+ * + * .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig facet_config = 13; + */ + public Builder mergeFacetConfig( + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig value) { + if (facetConfigBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && facetConfig_ != null + && facetConfig_ + != com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig + .getDefaultInstance()) { + getFacetConfigBuilder().mergeFrom(value); + } else { + facetConfig_ = value; + } + } else { + facetConfigBuilder_.mergeFrom(value); + } + if (facetConfig_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Contains facet options.
+     * 
+ * + * .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig facet_config = 13; + */ + public Builder clearFacetConfig() { + bitField0_ = (bitField0_ & ~0x00000200); + facetConfig_ = null; + if (facetConfigBuilder_ != null) { + facetConfigBuilder_.dispose(); + facetConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Contains facet options.
+     * 
+ * + * .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig facet_config = 13; + */ + public com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.Builder + getFacetConfigBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return getFacetConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Contains facet options.
+     * 
+ * + * .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig facet_config = 13; + */ + public com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfigOrBuilder + getFacetConfigOrBuilder() { + if (facetConfigBuilder_ != null) { + return facetConfigBuilder_.getMessageOrBuilder(); + } else { + return facetConfig_ == null + ? com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.getDefaultInstance() + : facetConfig_; + } + } + /** + * + * + *
+     * Contains facet options.
+     * 
+ * + * .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig facet_config = 13; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig, + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.Builder, + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfigOrBuilder> + getFacetConfigFieldBuilder() { + if (facetConfigBuilder_ == null) { + facetConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig, + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.Builder, + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfigOrBuilder>( + getFacetConfig(), getParentForChildren(), isClean()); + facetConfig_ = null; + } + return facetConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CatalogAttributeOrBuilder.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CatalogAttributeOrBuilder.java index a4af2e1d79db..880d61b82f1a 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CatalogAttributeOrBuilder.java +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CatalogAttributeOrBuilder.java @@ -145,7 +145,9 @@ public interface CatalogAttributeOrBuilder * are indexed so that it can be filtered, faceted, or boosted in * [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search]. * - * Must be specified, otherwise throws INVALID_FORMAT error. + * Must be specified when + * [AttributesConfig.attribute_config_level][google.cloud.retail.v2beta.AttributesConfig.attribute_config_level] + * is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. * * * .google.cloud.retail.v2beta.CatalogAttribute.IndexableOption indexable_option = 5; @@ -163,7 +165,9 @@ public interface CatalogAttributeOrBuilder * are indexed so that it can be filtered, faceted, or boosted in * [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search]. * - * Must be specified, otherwise throws INVALID_FORMAT error. + * Must be specified when + * [AttributesConfig.attribute_config_level][google.cloud.retail.v2beta.AttributesConfig.attribute_config_level] + * is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. * * * .google.cloud.retail.v2beta.CatalogAttribute.IndexableOption indexable_option = 5; @@ -227,7 +231,9 @@ public interface CatalogAttributeOrBuilder * [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search], as * there are no text values associated to numerical attributes. * - * Must be specified, otherwise throws INVALID_FORMAT error. + * Must be specified, when + * [AttributesConfig.attribute_config_level][google.cloud.retail.v2beta.AttributesConfig.attribute_config_level] + * is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. * * * .google.cloud.retail.v2beta.CatalogAttribute.SearchableOption searchable_option = 7; @@ -251,7 +257,9 @@ public interface CatalogAttributeOrBuilder * [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search], as * there are no text values associated to numerical attributes. * - * Must be specified, otherwise throws INVALID_FORMAT error. + * Must be specified, when + * [AttributesConfig.attribute_config_level][google.cloud.retail.v2beta.AttributesConfig.attribute_config_level] + * is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. * * * .google.cloud.retail.v2beta.CatalogAttribute.SearchableOption searchable_option = 7; @@ -367,4 +375,39 @@ public interface CatalogAttributeOrBuilder * @return The retrievableOption. */ com.google.cloud.retail.v2beta.CatalogAttribute.RetrievableOption getRetrievableOption(); + + /** + * + * + *
+   * Contains facet options.
+   * 
+ * + * .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig facet_config = 13; + * + * @return Whether the facetConfig field is set. + */ + boolean hasFacetConfig(); + /** + * + * + *
+   * Contains facet options.
+   * 
+ * + * .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig facet_config = 13; + * + * @return The facetConfig. + */ + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfig getFacetConfig(); + /** + * + * + *
+   * Contains facet options.
+   * 
+ * + * .google.cloud.retail.v2beta.CatalogAttribute.FacetConfig facet_config = 13; + */ + com.google.cloud.retail.v2beta.CatalogAttribute.FacetConfigOrBuilder getFacetConfigOrBuilder(); } diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CatalogOrBuilder.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CatalogOrBuilder.java index 3f946c279076..dab45ef4886e 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CatalogOrBuilder.java +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CatalogOrBuilder.java @@ -134,9 +134,9 @@ public interface CatalogOrBuilder * *
    * The Merchant Center linking configuration.
-   * Once a link is added, the data stream from Merchant Center to Cloud Retail
+   * After a link is added, the data stream from Merchant Center to Cloud Retail
    * will be enabled automatically. The requester must have access to the
-   * merchant center account in order to make changes to this field.
+   * Merchant Center account in order to make changes to this field.
    * 
* * @@ -151,9 +151,9 @@ public interface CatalogOrBuilder * *
    * The Merchant Center linking configuration.
-   * Once a link is added, the data stream from Merchant Center to Cloud Retail
+   * After a link is added, the data stream from Merchant Center to Cloud Retail
    * will be enabled automatically. The requester must have access to the
-   * merchant center account in order to make changes to this field.
+   * Merchant Center account in order to make changes to this field.
    * 
* * @@ -168,9 +168,9 @@ public interface CatalogOrBuilder * *
    * The Merchant Center linking configuration.
-   * Once a link is added, the data stream from Merchant Center to Cloud Retail
+   * After a link is added, the data stream from Merchant Center to Cloud Retail
    * will be enabled automatically. The requester must have access to the
-   * merchant center account in order to make changes to this field.
+   * Merchant Center account in order to make changes to this field.
    * 
* * diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CatalogProto.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CatalogProto.java index 66a3def9e2f2..77600423e5fe 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CatalogProto.java +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CatalogProto.java @@ -36,6 +36,26 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_retail_v2beta_CatalogAttribute_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_retail_v2beta_CatalogAttribute_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2beta_CatalogAttribute_FacetConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2beta_CatalogAttribute_FacetConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2beta_CatalogAttribute_FacetConfig_IgnoredFacetValues_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2beta_CatalogAttribute_FacetConfig_IgnoredFacetValues_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2beta_CatalogAttribute_FacetConfig_MergedFacetValue_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2beta_CatalogAttribute_FacetConfig_MergedFacetValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2beta_CatalogAttribute_FacetConfig_MergedFacet_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2beta_CatalogAttribute_FacetConfig_MergedFacet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2beta_CatalogAttribute_FacetConfig_RerankConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2beta_CatalogAttribute_FacetConfig_RerankConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_retail_v2beta_AttributesConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -78,95 +98,117 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "pi/field_behavior.proto\032\031google/api/reso" + "urce.proto\032\'google/cloud/retail/v2beta/c" + "ommon.proto\032.google/cloud/retail/v2beta/" - + "import_config.proto\"^\n\022ProductLevelConfi" - + "g\022\036\n\026ingestion_product_type\030\001 \001(\t\022(\n mer" - + "chant_center_product_id_field\030\002 \001(\t\"\275\n\n\020" - + "CatalogAttribute\022\020\n\003key\030\001 \001(\tB\003\340A\002\022\023\n\006in" - + "_use\030\t \001(\010B\003\340A\003\022M\n\004type\030\n \001(\0162:.google.c" - + "loud.retail.v2beta.CatalogAttribute.Attr" - + "ibuteTypeB\003\340A\003\022V\n\020indexable_option\030\005 \001(\016" - + "2<.google.cloud.retail.v2beta.CatalogAtt" - + "ribute.IndexableOption\022e\n\030dynamic_faceta" - + "ble_option\030\006 \001(\0162C.google.cloud.retail.v" - + "2beta.CatalogAttribute.DynamicFacetableO" - + "ption\022X\n\021searchable_option\030\007 \001(\0162=.googl" - + "e.cloud.retail.v2beta.CatalogAttribute.S" - + "earchableOption\022d\n recommendations_filte" - + "ring_option\030\010 \001(\0162:.google.cloud.retail." - + "v2beta.RecommendationsFilteringOption\022c\n" - + "\027exact_searchable_option\030\013 \001(\0162B.google." - + "cloud.retail.v2beta.CatalogAttribute.Exa" - + "ctSearchableOption\022Z\n\022retrievable_option" - + "\030\014 \001(\0162>.google.cloud.retail.v2beta.Cata" - + "logAttribute.RetrievableOption\"8\n\rAttrib" - + "uteType\022\013\n\007UNKNOWN\020\000\022\013\n\007TEXTUAL\020\001\022\r\n\tNUM" - + "ERICAL\020\002\"b\n\017IndexableOption\022 \n\034INDEXABLE" - + "_OPTION_UNSPECIFIED\020\000\022\025\n\021INDEXABLE_ENABL" - + "ED\020\001\022\026\n\022INDEXABLE_DISABLED\020\002\"\201\001\n\026Dynamic" - + "FacetableOption\022(\n$DYNAMIC_FACETABLE_OPT" - + "ION_UNSPECIFIED\020\000\022\035\n\031DYNAMIC_FACETABLE_E" - + "NABLED\020\001\022\036\n\032DYNAMIC_FACETABLE_DISABLED\020\002" - + "\"f\n\020SearchableOption\022!\n\035SEARCHABLE_OPTIO" - + "N_UNSPECIFIED\020\000\022\026\n\022SEARCHABLE_ENABLED\020\001\022" - + "\027\n\023SEARCHABLE_DISABLED\020\002\"}\n\025ExactSearcha" - + "bleOption\022\'\n#EXACT_SEARCHABLE_OPTION_UNS" - + "PECIFIED\020\000\022\034\n\030EXACT_SEARCHABLE_ENABLED\020\001" - + "\022\035\n\031EXACT_SEARCHABLE_DISABLED\020\002\"j\n\021Retri" - + "evableOption\022\"\n\036RETRIEVABLE_OPTION_UNSPE" - + "CIFIED\020\000\022\027\n\023RETRIEVABLE_ENABLED\020\001\022\030\n\024RET" - + "RIEVABLE_DISABLED\020\002\"\302\003\n\020AttributesConfig" - + "\022\024\n\004name\030\001 \001(\tB\006\340A\002\340A\005\022_\n\022catalog_attrib" - + "utes\030\002 \003(\0132C.google.cloud.retail.v2beta." - + "AttributesConfig.CatalogAttributesEntry\022" - + "U\n\026attribute_config_level\030\003 \001(\01620.google" - + ".cloud.retail.v2beta.AttributeConfigLeve" - + "lB\003\340A\003\032f\n\026CatalogAttributesEntry\022\013\n\003key\030" - + "\001 \001(\t\022;\n\005value\030\002 \001(\0132,.google.cloud.reta" - + "il.v2beta.CatalogAttribute:\0028\001:x\352Au\n&ret" - + "ail.googleapis.com/AttributesConfig\022Kpro" - + "jects/{project}/locations/{location}/cat" - + "alogs/{catalog}/attributesConfig\"\245\005\n\020Com" - + "pletionConfig\022\024\n\004name\030\001 \001(\tB\006\340A\002\340A\005\022\026\n\016m" - + "atching_order\030\002 \001(\t\022\027\n\017max_suggestions\030\003" - + " \001(\005\022\031\n\021min_prefix_length\030\004 \001(\005\022\025\n\rauto_" - + "learning\030\013 \001(\010\022\\\n\030suggestions_input_conf" - + "ig\030\005 \001(\01325.google.cloud.retail.v2beta.Co" - + "mpletionDataInputConfigB\003\340A\003\022.\n!last_sug" - + "gestions_import_operation\030\006 \001(\tB\003\340A\003\022Y\n\025" - + "denylist_input_config\030\007 \001(\01325.google.clo" - + "ud.retail.v2beta.CompletionDataInputConf" - + "igB\003\340A\003\022+\n\036last_denylist_import_operatio" - + "n\030\010 \001(\tB\003\340A\003\022Z\n\026allowlist_input_config\030\t" - + " \001(\01325.google.cloud.retail.v2beta.Comple" - + "tionDataInputConfigB\003\340A\003\022,\n\037last_allowli" - + "st_import_operation\030\n \001(\tB\003\340A\003:x\352Au\n&ret" - + "ail.googleapis.com/CompletionConfig\022Kpro" - + "jects/{project}/locations/{location}/cat" - + "alogs/{catalog}/completionConfig\"\327\001\n\022Mer" - + "chantCenterLink\022\'\n\032merchant_center_accou" - + "nt_id\030\001 \001(\003B\003\340A\002\022\021\n\tbranch_id\030\002 \001(\t\022\024\n\014d" - + "estinations\030\003 \003(\t\022\023\n\013region_code\030\004 \001(\t\022\025" - + "\n\rlanguage_code\030\005 \001(\t\022C\n\005feeds\030\006 \003(\01324.g" - + "oogle.cloud.retail.v2beta.MerchantCenter" - + "FeedFilter\"N\n\030MerchantCenterFeedFilter\022\027" - + "\n\017primary_feed_id\030\001 \001(\003\022\031\n\021primary_feed_" - + "name\030\002 \001(\t\"\\\n\033MerchantCenterLinkingConfi" - + "g\022=\n\005links\030\001 \003(\0132..google.cloud.retail.v" - + "2beta.MerchantCenterLink\"\321\002\n\007Catalog\022\024\n\004" - + "name\030\001 \001(\tB\006\340A\002\340A\005\022\034\n\014display_name\030\002 \001(\t" - + "B\006\340A\002\340A\005\022Q\n\024product_level_config\030\004 \001(\0132." - + ".google.cloud.retail.v2beta.ProductLevel" - + "ConfigB\003\340A\002\022_\n\036merchant_center_linking_c" - + "onfig\030\006 \001(\01327.google.cloud.retail.v2beta" - + ".MerchantCenterLinkingConfig:^\352A[\n\035retai" - + "l.googleapis.com/Catalog\022:projects/{proj" - + "ect}/locations/{location}/catalogs/{cata" - + "log}B\313\001\n\036com.google.cloud.retail.v2betaB" - + "\014CatalogProtoP\001Z6cloud.google.com/go/ret" - + "ail/apiv2beta/retailpb;retailpb\242\002\006RETAIL" - + "\252\002\032Google.Cloud.Retail.V2Beta\312\002\032Google\\C" - + "loud\\Retail\\V2beta\352\002\035Google::Cloud::Reta" - + "il::V2betab\006proto3" + + "import_config.proto\032\037google/protobuf/tim" + + "estamp.proto\"^\n\022ProductLevelConfig\022\036\n\026in" + + "gestion_product_type\030\001 \001(\t\022(\n merchant_c" + + "enter_product_id_field\030\002 \001(\t\"\215\021\n\020Catalog" + + "Attribute\022\020\n\003key\030\001 \001(\tB\003\340A\002\022\023\n\006in_use\030\t " + + "\001(\010B\003\340A\003\022M\n\004type\030\n \001(\0162:.google.cloud.re" + + "tail.v2beta.CatalogAttribute.AttributeTy" + + "peB\003\340A\003\022V\n\020indexable_option\030\005 \001(\0162<.goog" + + "le.cloud.retail.v2beta.CatalogAttribute." + + "IndexableOption\022e\n\030dynamic_facetable_opt" + + "ion\030\006 \001(\0162C.google.cloud.retail.v2beta.C" + + "atalogAttribute.DynamicFacetableOption\022X" + + "\n\021searchable_option\030\007 \001(\0162=.google.cloud" + + ".retail.v2beta.CatalogAttribute.Searchab" + + "leOption\022d\n recommendations_filtering_op" + + "tion\030\010 \001(\0162:.google.cloud.retail.v2beta." + + "RecommendationsFilteringOption\022c\n\027exact_" + + "searchable_option\030\013 \001(\0162B.google.cloud.r" + + "etail.v2beta.CatalogAttribute.ExactSearc" + + "hableOption\022Z\n\022retrievable_option\030\014 \001(\0162" + + ">.google.cloud.retail.v2beta.CatalogAttr" + + "ibute.RetrievableOption\022N\n\014facet_config\030" + + "\r \001(\01328.google.cloud.retail.v2beta.Catal" + + "ogAttribute.FacetConfig\032\375\005\n\013FacetConfig\022" + + "=\n\017facet_intervals\030\001 \003(\0132$.google.cloud." + + "retail.v2beta.Interval\022i\n\024ignored_facet_" + + "values\030\002 \003(\0132K.google.cloud.retail.v2bet" + + "a.CatalogAttribute.FacetConfig.IgnoredFa" + + "cetValues\022f\n\023merged_facet_values\030\003 \003(\0132I" + + ".google.cloud.retail.v2beta.CatalogAttri" + + "bute.FacetConfig.MergedFacetValue\022Z\n\014mer" + + "ged_facet\030\004 \001(\0132D.google.cloud.retail.v2" + + "beta.CatalogAttribute.FacetConfig.Merged" + + "Facet\022\\\n\rrerank_config\030\005 \001(\0132E.google.cl" + + "oud.retail.v2beta.CatalogAttribute.Facet" + + "Config.RerankConfig\032\202\001\n\022IgnoredFacetValu" + + "es\022\016\n\006values\030\001 \003(\t\022.\n\nstart_time\030\002 \001(\0132\032" + + ".google.protobuf.Timestamp\022,\n\010end_time\030\003" + + " \001(\0132\032.google.protobuf.Timestamp\0328\n\020Merg" + + "edFacetValue\022\016\n\006values\030\001 \003(\t\022\024\n\014merged_v" + + "alue\030\002 \001(\t\032\'\n\013MergedFacet\022\030\n\020merged_face" + + "t_key\030\001 \001(\t\032:\n\014RerankConfig\022\024\n\014rerank_fa" + + "cet\030\001 \001(\010\022\024\n\014facet_values\030\002 \003(\t\"8\n\rAttri" + + "buteType\022\013\n\007UNKNOWN\020\000\022\013\n\007TEXTUAL\020\001\022\r\n\tNU" + + "MERICAL\020\002\"b\n\017IndexableOption\022 \n\034INDEXABL" + + "E_OPTION_UNSPECIFIED\020\000\022\025\n\021INDEXABLE_ENAB" + + "LED\020\001\022\026\n\022INDEXABLE_DISABLED\020\002\"\201\001\n\026Dynami" + + "cFacetableOption\022(\n$DYNAMIC_FACETABLE_OP" + + "TION_UNSPECIFIED\020\000\022\035\n\031DYNAMIC_FACETABLE_" + + "ENABLED\020\001\022\036\n\032DYNAMIC_FACETABLE_DISABLED\020" + + "\002\"f\n\020SearchableOption\022!\n\035SEARCHABLE_OPTI" + + "ON_UNSPECIFIED\020\000\022\026\n\022SEARCHABLE_ENABLED\020\001" + + "\022\027\n\023SEARCHABLE_DISABLED\020\002\"}\n\025ExactSearch" + + "ableOption\022\'\n#EXACT_SEARCHABLE_OPTION_UN" + + "SPECIFIED\020\000\022\034\n\030EXACT_SEARCHABLE_ENABLED\020" + + "\001\022\035\n\031EXACT_SEARCHABLE_DISABLED\020\002\"j\n\021Retr" + + "ievableOption\022\"\n\036RETRIEVABLE_OPTION_UNSP" + + "ECIFIED\020\000\022\027\n\023RETRIEVABLE_ENABLED\020\001\022\030\n\024RE" + + "TRIEVABLE_DISABLED\020\002\"\302\003\n\020AttributesConfi" + + "g\022\024\n\004name\030\001 \001(\tB\006\340A\002\340A\005\022_\n\022catalog_attri" + + "butes\030\002 \003(\0132C.google.cloud.retail.v2beta" + + ".AttributesConfig.CatalogAttributesEntry" + + "\022U\n\026attribute_config_level\030\003 \001(\01620.googl" + + "e.cloud.retail.v2beta.AttributeConfigLev" + + "elB\003\340A\003\032f\n\026CatalogAttributesEntry\022\013\n\003key" + + "\030\001 \001(\t\022;\n\005value\030\002 \001(\0132,.google.cloud.ret" + + "ail.v2beta.CatalogAttribute:\0028\001:x\352Au\n&re" + + "tail.googleapis.com/AttributesConfig\022Kpr" + + "ojects/{project}/locations/{location}/ca" + + "talogs/{catalog}/attributesConfig\"\245\005\n\020Co" + + "mpletionConfig\022\024\n\004name\030\001 \001(\tB\006\340A\002\340A\005\022\026\n\016" + + "matching_order\030\002 \001(\t\022\027\n\017max_suggestions\030" + + "\003 \001(\005\022\031\n\021min_prefix_length\030\004 \001(\005\022\025\n\rauto" + + "_learning\030\013 \001(\010\022\\\n\030suggestions_input_con" + + "fig\030\005 \001(\01325.google.cloud.retail.v2beta.C" + + "ompletionDataInputConfigB\003\340A\003\022.\n!last_su" + + "ggestions_import_operation\030\006 \001(\tB\003\340A\003\022Y\n" + + "\025denylist_input_config\030\007 \001(\01325.google.cl" + + "oud.retail.v2beta.CompletionDataInputCon" + + "figB\003\340A\003\022+\n\036last_denylist_import_operati" + + "on\030\010 \001(\tB\003\340A\003\022Z\n\026allowlist_input_config\030" + + "\t \001(\01325.google.cloud.retail.v2beta.Compl" + + "etionDataInputConfigB\003\340A\003\022,\n\037last_allowl" + + "ist_import_operation\030\n \001(\tB\003\340A\003:x\352Au\n&re" + + "tail.googleapis.com/CompletionConfig\022Kpr" + + "ojects/{project}/locations/{location}/ca" + + "talogs/{catalog}/completionConfig\"\327\001\n\022Me" + + "rchantCenterLink\022\'\n\032merchant_center_acco" + + "unt_id\030\001 \001(\003B\003\340A\002\022\021\n\tbranch_id\030\002 \001(\t\022\024\n\014" + + "destinations\030\003 \003(\t\022\023\n\013region_code\030\004 \001(\t\022" + + "\025\n\rlanguage_code\030\005 \001(\t\022C\n\005feeds\030\006 \003(\01324." + + "google.cloud.retail.v2beta.MerchantCente" + + "rFeedFilter\"N\n\030MerchantCenterFeedFilter\022" + + "\027\n\017primary_feed_id\030\001 \001(\003\022\031\n\021primary_feed" + + "_name\030\002 \001(\t\"\\\n\033MerchantCenterLinkingConf" + + "ig\022=\n\005links\030\001 \003(\0132..google.cloud.retail." + + "v2beta.MerchantCenterLink\"\321\002\n\007Catalog\022\024\n" + + "\004name\030\001 \001(\tB\006\340A\002\340A\005\022\034\n\014display_name\030\002 \001(" + + "\tB\006\340A\002\340A\005\022Q\n\024product_level_config\030\004 \001(\0132" + + "..google.cloud.retail.v2beta.ProductLeve" + + "lConfigB\003\340A\002\022_\n\036merchant_center_linking_" + + "config\030\006 \001(\01327.google.cloud.retail.v2bet" + + "a.MerchantCenterLinkingConfig:^\352A[\n\035reta" + + "il.googleapis.com/Catalog\022:projects/{pro" + + "ject}/locations/{location}/catalogs/{cat" + + "alog}B\313\001\n\036com.google.cloud.retail.v2beta" + + "B\014CatalogProtoP\001Z6cloud.google.com/go/re" + + "tail/apiv2beta/retailpb;retailpb\242\002\006RETAI" + + "L\252\002\032Google.Cloud.Retail.V2Beta\312\002\032Google\\" + + "Cloud\\Retail\\V2beta\352\002\035Google::Cloud::Ret" + + "ail::V2betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -176,6 +218,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(), com.google.cloud.retail.v2beta.CommonProto.getDescriptor(), com.google.cloud.retail.v2beta.ImportConfigProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_google_cloud_retail_v2beta_ProductLevelConfig_descriptor = getDescriptor().getMessageTypes().get(0); @@ -200,6 +243,61 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RecommendationsFilteringOption", "ExactSearchableOption", "RetrievableOption", + "FacetConfig", + }); + internal_static_google_cloud_retail_v2beta_CatalogAttribute_FacetConfig_descriptor = + internal_static_google_cloud_retail_v2beta_CatalogAttribute_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_retail_v2beta_CatalogAttribute_FacetConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2beta_CatalogAttribute_FacetConfig_descriptor, + new java.lang.String[] { + "FacetIntervals", + "IgnoredFacetValues", + "MergedFacetValues", + "MergedFacet", + "RerankConfig", + }); + internal_static_google_cloud_retail_v2beta_CatalogAttribute_FacetConfig_IgnoredFacetValues_descriptor = + internal_static_google_cloud_retail_v2beta_CatalogAttribute_FacetConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_retail_v2beta_CatalogAttribute_FacetConfig_IgnoredFacetValues_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2beta_CatalogAttribute_FacetConfig_IgnoredFacetValues_descriptor, + new java.lang.String[] { + "Values", "StartTime", "EndTime", + }); + internal_static_google_cloud_retail_v2beta_CatalogAttribute_FacetConfig_MergedFacetValue_descriptor = + internal_static_google_cloud_retail_v2beta_CatalogAttribute_FacetConfig_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_retail_v2beta_CatalogAttribute_FacetConfig_MergedFacetValue_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2beta_CatalogAttribute_FacetConfig_MergedFacetValue_descriptor, + new java.lang.String[] { + "Values", "MergedValue", + }); + internal_static_google_cloud_retail_v2beta_CatalogAttribute_FacetConfig_MergedFacet_descriptor = + internal_static_google_cloud_retail_v2beta_CatalogAttribute_FacetConfig_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_retail_v2beta_CatalogAttribute_FacetConfig_MergedFacet_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2beta_CatalogAttribute_FacetConfig_MergedFacet_descriptor, + new java.lang.String[] { + "MergedFacetKey", + }); + internal_static_google_cloud_retail_v2beta_CatalogAttribute_FacetConfig_RerankConfig_descriptor = + internal_static_google_cloud_retail_v2beta_CatalogAttribute_FacetConfig_descriptor + .getNestedTypes() + .get(3); + internal_static_google_cloud_retail_v2beta_CatalogAttribute_FacetConfig_RerankConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2beta_CatalogAttribute_FacetConfig_RerankConfig_descriptor, + new java.lang.String[] { + "RerankFacet", "FacetValues", }); internal_static_google_cloud_retail_v2beta_AttributesConfig_descriptor = getDescriptor().getMessageTypes().get(2); @@ -284,6 +382,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(); com.google.cloud.retail.v2beta.CommonProto.getDescriptor(); com.google.cloud.retail.v2beta.ImportConfigProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CommonProto.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CommonProto.java index 7ba2ad87f112..5145f854064f 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CommonProto.java +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CommonProto.java @@ -76,6 +76,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_retail_v2beta_Rule_IgnoreAction_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_retail_v2beta_Rule_IgnoreAction_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2beta_Rule_ForceReturnFacetAction_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2beta_Rule_ForceReturnFacetAction_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2beta_Rule_ForceReturnFacetAction_FacetPositionAdjustment_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2beta_Rule_ForceReturnFacetAction_FacetPositionAdjustment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2beta_Rule_RemoveFacetAction_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2beta_Rule_RemoveFacetAction_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_retail_v2beta_Audience_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -136,98 +148,109 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n\'google/cloud/retail/v2beta/common.prot" + "o\022\032google.cloud.retail.v2beta\032\037google/ap" + "i/field_behavior.proto\032\037google/protobuf/" - + "timestamp.proto\"\270\002\n\tCondition\022D\n\013query_t" + + "timestamp.proto\"\321\002\n\tCondition\022D\n\013query_t" + "erms\030\001 \003(\0132/.google.cloud.retail.v2beta." + "Condition.QueryTerm\022J\n\021active_time_range" + "\030\003 \003(\0132/.google.cloud.retail.v2beta.Cond" - + "ition.TimeRange\032.\n\tQueryTerm\022\r\n\005value\030\001 " - + "\001(\t\022\022\n\nfull_match\030\002 \001(\010\032i\n\tTimeRange\022.\n\n" - + "start_time\030\001 \001(\0132\032.google.protobuf.Times" - + "tamp\022,\n\010end_time\030\002 \001(\0132\032.google.protobuf" - + ".Timestamp\"\241\t\n\004Rule\022D\n\014boost_action\030\002 \001(" - + "\0132,.google.cloud.retail.v2beta.Rule.Boos" - + "tActionH\000\022J\n\017redirect_action\030\003 \001(\0132/.goo" - + "gle.cloud.retail.v2beta.Rule.RedirectAct" - + "ionH\000\022W\n\026oneway_synonyms_action\030\006 \001(\01325." - + "google.cloud.retail.v2beta.Rule.OnewaySy" - + "nonymsActionH\000\022X\n\027do_not_associate_actio" - + "n\030\007 \001(\01325.google.cloud.retail.v2beta.Rul" - + "e.DoNotAssociateActionH\000\022P\n\022replacement_" - + "action\030\010 \001(\01322.google.cloud.retail.v2bet" - + "a.Rule.ReplacementActionH\000\022F\n\rignore_act" - + "ion\030\t \001(\0132-.google.cloud.retail.v2beta.R" - + "ule.IgnoreActionH\000\022F\n\rfilter_action\030\n \001(" - + "\0132-.google.cloud.retail.v2beta.Rule.Filt" - + "erActionH\000\022W\n\026twoway_synonyms_action\030\013 \001" - + "(\01325.google.cloud.retail.v2beta.Rule.Two" - + "waySynonymsActionH\000\022=\n\tcondition\030\001 \001(\0132%" - + ".google.cloud.retail.v2beta.ConditionB\003\340" - + "A\002\0325\n\013BoostAction\022\r\n\005boost\030\001 \001(\002\022\027\n\017prod" - + "ucts_filter\030\002 \001(\t\032\036\n\014FilterAction\022\016\n\006fil" - + "ter\030\001 \001(\t\032&\n\016RedirectAction\022\024\n\014redirect_" - + "uri\030\001 \001(\t\032(\n\024TwowaySynonymsAction\022\020\n\010syn" - + "onyms\030\001 \003(\t\032S\n\024OnewaySynonymsAction\022\023\n\013q" - + "uery_terms\030\003 \003(\t\022\020\n\010synonyms\030\004 \003(\t\022\024\n\014on" - + "eway_terms\030\002 \003(\t\032Z\n\024DoNotAssociateAction" - + "\022\023\n\013query_terms\030\002 \003(\t\022\036\n\026do_not_associat" - + "e_terms\030\003 \003(\t\022\r\n\005terms\030\001 \003(\t\032P\n\021Replacem" - + "entAction\022\023\n\013query_terms\030\002 \003(\t\022\030\n\020replac" - + "ement_term\030\003 \001(\t\022\014\n\004term\030\001 \001(\t\032$\n\014Ignore" - + "Action\022\024\n\014ignore_terms\030\001 \003(\tB\010\n\006action\"/" - + "\n\010Audience\022\017\n\007genders\030\001 \003(\t\022\022\n\nage_group" - + "s\030\002 \003(\t\"3\n\tColorInfo\022\026\n\016color_families\030\001" - + " \003(\t\022\016\n\006colors\030\002 \003(\t\"\206\001\n\017CustomAttribute" - + "\022\014\n\004text\030\001 \003(\t\022\017\n\007numbers\030\002 \003(\001\022\033\n\nsearc" - + "hable\030\003 \001(\010B\002\030\001H\000\210\001\001\022\032\n\tindexable\030\004 \001(\010B" - + "\002\030\001H\001\210\001\001B\r\n\013_searchableB\014\n\n_indexable\"2\n" - + "\017FulfillmentInfo\022\014\n\004type\030\001 \001(\t\022\021\n\tplace_" - + "ids\030\002 \003(\t\"8\n\005Image\022\020\n\003uri\030\001 \001(\tB\003\340A\002\022\016\n\006" - + "height\030\002 \001(\005\022\r\n\005width\030\003 \001(\005\"x\n\010Interval\022" - + "\021\n\007minimum\030\001 \001(\001H\000\022\033\n\021exclusive_minimum\030" - + "\002 \001(\001H\000\022\021\n\007maximum\030\003 \001(\001H\001\022\033\n\021exclusive_" - + "maximum\030\004 \001(\001H\001B\005\n\003minB\005\n\003max\"\225\003\n\tPriceI" - + "nfo\022\025\n\rcurrency_code\030\001 \001(\t\022\r\n\005price\030\002 \001(" - + "\002\022\026\n\016original_price\030\003 \001(\002\022\014\n\004cost\030\004 \001(\002\022" - + "8\n\024price_effective_time\030\005 \001(\0132\032.google.p" - + "rotobuf.Timestamp\0225\n\021price_expire_time\030\006" - + " \001(\0132\032.google.protobuf.Timestamp\022J\n\013pric" - + "e_range\030\007 \001(\01320.google.cloud.retail.v2be" - + "ta.PriceInfo.PriceRangeB\003\340A\003\032\177\n\nPriceRan" - + "ge\0223\n\005price\030\001 \001(\0132$.google.cloud.retail." - + "v2beta.Interval\022<\n\016original_price\030\002 \001(\0132" - + "$.google.cloud.retail.v2beta.Interval\"P\n" - + "\006Rating\022\024\n\014rating_count\030\001 \001(\005\022\026\n\016average" - + "_rating\030\002 \001(\002\022\030\n\020rating_histogram\030\003 \003(\005\"" - + "`\n\010UserInfo\022\017\n\007user_id\030\001 \001(\t\022\022\n\nip_addre" - + "ss\030\002 \001(\t\022\022\n\nuser_agent\030\003 \001(\t\022\033\n\023direct_u" - + "ser_request\030\004 \001(\010\"\255\002\n\016LocalInventory\022\020\n\010" - + "place_id\030\001 \001(\t\0229\n\nprice_info\030\002 \001(\0132%.goo" - + "gle.cloud.retail.v2beta.PriceInfo\022N\n\natt" - + "ributes\030\003 \003(\0132:.google.cloud.retail.v2be" - + "ta.LocalInventory.AttributesEntry\022\036\n\021ful" - + "fillment_types\030\004 \003(\tB\003\340A\004\032^\n\017AttributesE" - + "ntry\022\013\n\003key\030\001 \001(\t\022:\n\005value\030\002 \001(\0132+.googl" - + "e.cloud.retail.v2beta.CustomAttribute:\0028" - + "\001*\206\001\n\024AttributeConfigLevel\022&\n\"ATTRIBUTE_" - + "CONFIG_LEVEL_UNSPECIFIED\020\000\022\"\n\036PRODUCT_LE" - + "VEL_ATTRIBUTE_CONFIG\020\001\022\"\n\036CATALOG_LEVEL_" - + "ATTRIBUTE_CONFIG\020\002*i\n\014SolutionType\022\035\n\031SO" - + "LUTION_TYPE_UNSPECIFIED\020\000\022 \n\034SOLUTION_TY" - + "PE_RECOMMENDATION\020\001\022\030\n\024SOLUTION_TYPE_SEA" - + "RCH\020\002*\241\001\n\036RecommendationsFilteringOption" - + "\0220\n,RECOMMENDATIONS_FILTERING_OPTION_UNS" - + "PECIFIED\020\000\022&\n\"RECOMMENDATIONS_FILTERING_" - + "DISABLED\020\001\022%\n!RECOMMENDATIONS_FILTERING_" - + "ENABLED\020\003*\213\001\n\025SearchSolutionUseCase\022(\n$S" - + "EARCH_SOLUTION_USE_CASE_UNSPECIFIED\020\000\022#\n" - + "\037SEARCH_SOLUTION_USE_CASE_SEARCH\020\001\022#\n\037SE" - + "ARCH_SOLUTION_USE_CASE_BROWSE\020\002B\312\001\n\036com." - + "google.cloud.retail.v2betaB\013CommonProtoP" - + "\001Z6cloud.google.com/go/retail/apiv2beta/" - + "retailpb;retailpb\242\002\006RETAIL\252\002\032Google.Clou" - + "d.Retail.V2Beta\312\002\032Google\\Cloud\\Retail\\V2" - + "beta\352\002\035Google::Cloud::Retail::V2betab\006pr" - + "oto3" + + "ition.TimeRange\022\027\n\017page_categories\030\004 \003(\t" + + "\032.\n\tQueryTerm\022\r\n\005value\030\001 \001(\t\022\022\n\nfull_mat" + + "ch\030\002 \001(\010\032i\n\tTimeRange\022.\n\nstart_time\030\001 \001(" + + "\0132\032.google.protobuf.Timestamp\022,\n\010end_tim" + + "e\030\002 \001(\0132\032.google.protobuf.Timestamp\"\325\014\n\004" + + "Rule\022D\n\014boost_action\030\002 \001(\0132,.google.clou" + + "d.retail.v2beta.Rule.BoostActionH\000\022J\n\017re" + + "direct_action\030\003 \001(\0132/.google.cloud.retai" + + "l.v2beta.Rule.RedirectActionH\000\022W\n\026oneway" + + "_synonyms_action\030\006 \001(\01325.google.cloud.re" + + "tail.v2beta.Rule.OnewaySynonymsActionH\000\022" + + "X\n\027do_not_associate_action\030\007 \001(\01325.googl" + + "e.cloud.retail.v2beta.Rule.DoNotAssociat" + + "eActionH\000\022P\n\022replacement_action\030\010 \001(\01322." + + "google.cloud.retail.v2beta.Rule.Replacem" + + "entActionH\000\022F\n\rignore_action\030\t \001(\0132-.goo" + + "gle.cloud.retail.v2beta.Rule.IgnoreActio" + + "nH\000\022F\n\rfilter_action\030\n \001(\0132-.google.clou" + + "d.retail.v2beta.Rule.FilterActionH\000\022W\n\026t" + + "woway_synonyms_action\030\013 \001(\01325.google.clo" + + "ud.retail.v2beta.Rule.TwowaySynonymsActi" + + "onH\000\022\\\n\031force_return_facet_action\030\014 \001(\0132" + + "7.google.cloud.retail.v2beta.Rule.ForceR" + + "eturnFacetActionH\000\022Q\n\023remove_facet_actio" + + "n\030\r \001(\01322.google.cloud.retail.v2beta.Rul" + + "e.RemoveFacetActionH\000\022=\n\tcondition\030\001 \001(\013" + + "2%.google.cloud.retail.v2beta.ConditionB" + + "\003\340A\002\0325\n\013BoostAction\022\r\n\005boost\030\001 \001(\002\022\027\n\017pr" + + "oducts_filter\030\002 \001(\t\032\036\n\014FilterAction\022\016\n\006f" + + "ilter\030\001 \001(\t\032&\n\016RedirectAction\022\024\n\014redirec" + + "t_uri\030\001 \001(\t\032(\n\024TwowaySynonymsAction\022\020\n\010s" + + "ynonyms\030\001 \003(\t\032S\n\024OnewaySynonymsAction\022\023\n" + + "\013query_terms\030\003 \003(\t\022\020\n\010synonyms\030\004 \003(\t\022\024\n\014" + + "oneway_terms\030\002 \003(\t\032Z\n\024DoNotAssociateActi" + + "on\022\023\n\013query_terms\030\002 \003(\t\022\036\n\026do_not_associ" + + "ate_terms\030\003 \003(\t\022\r\n\005terms\030\001 \003(\t\032P\n\021Replac" + + "ementAction\022\023\n\013query_terms\030\002 \003(\t\022\030\n\020repl" + + "acement_term\030\003 \001(\t\022\014\n\004term\030\001 \001(\t\032$\n\014Igno" + + "reAction\022\024\n\014ignore_terms\030\001 \003(\t\032\322\001\n\026Force" + + "ReturnFacetAction\022s\n\032facet_position_adju" + + "stments\030\001 \003(\0132O.google.cloud.retail.v2be" + + "ta.Rule.ForceReturnFacetAction.FacetPosi" + + "tionAdjustment\032C\n\027FacetPositionAdjustmen" + + "t\022\026\n\016attribute_name\030\001 \001(\t\022\020\n\010position\030\002 " + + "\001(\005\032,\n\021RemoveFacetAction\022\027\n\017attribute_na" + + "mes\030\001 \003(\tB\010\n\006action\"/\n\010Audience\022\017\n\007gende" + + "rs\030\001 \003(\t\022\022\n\nage_groups\030\002 \003(\t\"3\n\tColorInf" + + "o\022\026\n\016color_families\030\001 \003(\t\022\016\n\006colors\030\002 \003(" + + "\t\"\206\001\n\017CustomAttribute\022\014\n\004text\030\001 \003(\t\022\017\n\007n" + + "umbers\030\002 \003(\001\022\033\n\nsearchable\030\003 \001(\010B\002\030\001H\000\210\001" + + "\001\022\032\n\tindexable\030\004 \001(\010B\002\030\001H\001\210\001\001B\r\n\013_search" + + "ableB\014\n\n_indexable\"2\n\017FulfillmentInfo\022\014\n" + + "\004type\030\001 \001(\t\022\021\n\tplace_ids\030\002 \003(\t\"8\n\005Image\022" + + "\020\n\003uri\030\001 \001(\tB\003\340A\002\022\016\n\006height\030\002 \001(\005\022\r\n\005wid" + + "th\030\003 \001(\005\"x\n\010Interval\022\021\n\007minimum\030\001 \001(\001H\000\022" + + "\033\n\021exclusive_minimum\030\002 \001(\001H\000\022\021\n\007maximum\030" + + "\003 \001(\001H\001\022\033\n\021exclusive_maximum\030\004 \001(\001H\001B\005\n\003" + + "minB\005\n\003max\"\225\003\n\tPriceInfo\022\025\n\rcurrency_cod" + + "e\030\001 \001(\t\022\r\n\005price\030\002 \001(\002\022\026\n\016original_price" + + "\030\003 \001(\002\022\014\n\004cost\030\004 \001(\002\0228\n\024price_effective_" + + "time\030\005 \001(\0132\032.google.protobuf.Timestamp\0225" + + "\n\021price_expire_time\030\006 \001(\0132\032.google.proto" + + "buf.Timestamp\022J\n\013price_range\030\007 \001(\01320.goo" + + "gle.cloud.retail.v2beta.PriceInfo.PriceR" + + "angeB\003\340A\003\032\177\n\nPriceRange\0223\n\005price\030\001 \001(\0132$" + + ".google.cloud.retail.v2beta.Interval\022<\n\016" + + "original_price\030\002 \001(\0132$.google.cloud.reta" + + "il.v2beta.Interval\"P\n\006Rating\022\024\n\014rating_c" + + "ount\030\001 \001(\005\022\026\n\016average_rating\030\002 \001(\002\022\030\n\020ra" + + "ting_histogram\030\003 \003(\005\"`\n\010UserInfo\022\017\n\007user" + + "_id\030\001 \001(\t\022\022\n\nip_address\030\002 \001(\t\022\022\n\nuser_ag" + + "ent\030\003 \001(\t\022\033\n\023direct_user_request\030\004 \001(\010\"\255" + + "\002\n\016LocalInventory\022\020\n\010place_id\030\001 \001(\t\0229\n\np" + + "rice_info\030\002 \001(\0132%.google.cloud.retail.v2" + + "beta.PriceInfo\022N\n\nattributes\030\003 \003(\0132:.goo" + + "gle.cloud.retail.v2beta.LocalInventory.A" + + "ttributesEntry\022\036\n\021fulfillment_types\030\004 \003(" + + "\tB\003\340A\004\032^\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022:" + + "\n\005value\030\002 \001(\0132+.google.cloud.retail.v2be" + + "ta.CustomAttribute:\0028\001*\206\001\n\024AttributeConf" + + "igLevel\022&\n\"ATTRIBUTE_CONFIG_LEVEL_UNSPEC" + + "IFIED\020\000\022\"\n\036PRODUCT_LEVEL_ATTRIBUTE_CONFI" + + "G\020\001\022\"\n\036CATALOG_LEVEL_ATTRIBUTE_CONFIG\020\002*" + + "i\n\014SolutionType\022\035\n\031SOLUTION_TYPE_UNSPECI" + + "FIED\020\000\022 \n\034SOLUTION_TYPE_RECOMMENDATION\020\001" + + "\022\030\n\024SOLUTION_TYPE_SEARCH\020\002*\241\001\n\036Recommend" + + "ationsFilteringOption\0220\n,RECOMMENDATIONS" + + "_FILTERING_OPTION_UNSPECIFIED\020\000\022&\n\"RECOM" + + "MENDATIONS_FILTERING_DISABLED\020\001\022%\n!RECOM" + + "MENDATIONS_FILTERING_ENABLED\020\003*\213\001\n\025Searc" + + "hSolutionUseCase\022(\n$SEARCH_SOLUTION_USE_" + + "CASE_UNSPECIFIED\020\000\022#\n\037SEARCH_SOLUTION_US" + + "E_CASE_SEARCH\020\001\022#\n\037SEARCH_SOLUTION_USE_C" + + "ASE_BROWSE\020\002B\312\001\n\036com.google.cloud.retail" + + ".v2betaB\013CommonProtoP\001Z6cloud.google.com" + + "/go/retail/apiv2beta/retailpb;retailpb\242\002" + + "\006RETAIL\252\002\032Google.Cloud.Retail.V2Beta\312\002\032G" + + "oogle\\Cloud\\Retail\\V2beta\352\002\035Google::Clou" + + "d::Retail::V2betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -242,7 +265,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_retail_v2beta_Condition_descriptor, new java.lang.String[] { - "QueryTerms", "ActiveTimeRange", + "QueryTerms", "ActiveTimeRange", "PageCategories", }); internal_static_google_cloud_retail_v2beta_Condition_QueryTerm_descriptor = internal_static_google_cloud_retail_v2beta_Condition_descriptor.getNestedTypes().get(0); @@ -274,6 +297,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IgnoreAction", "FilterAction", "TwowaySynonymsAction", + "ForceReturnFacetAction", + "RemoveFacetAction", "Condition", "Action", }); @@ -341,6 +366,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "IgnoreTerms", }); + internal_static_google_cloud_retail_v2beta_Rule_ForceReturnFacetAction_descriptor = + internal_static_google_cloud_retail_v2beta_Rule_descriptor.getNestedTypes().get(8); + internal_static_google_cloud_retail_v2beta_Rule_ForceReturnFacetAction_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2beta_Rule_ForceReturnFacetAction_descriptor, + new java.lang.String[] { + "FacetPositionAdjustments", + }); + internal_static_google_cloud_retail_v2beta_Rule_ForceReturnFacetAction_FacetPositionAdjustment_descriptor = + internal_static_google_cloud_retail_v2beta_Rule_ForceReturnFacetAction_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_retail_v2beta_Rule_ForceReturnFacetAction_FacetPositionAdjustment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2beta_Rule_ForceReturnFacetAction_FacetPositionAdjustment_descriptor, + new java.lang.String[] { + "AttributeName", "Position", + }); + internal_static_google_cloud_retail_v2beta_Rule_RemoveFacetAction_descriptor = + internal_static_google_cloud_retail_v2beta_Rule_descriptor.getNestedTypes().get(9); + internal_static_google_cloud_retail_v2beta_Rule_RemoveFacetAction_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2beta_Rule_RemoveFacetAction_descriptor, + new java.lang.String[] { + "AttributeNames", + }); internal_static_google_cloud_retail_v2beta_Audience_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_google_cloud_retail_v2beta_Audience_fieldAccessorTable = diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CompleteQueryRequest.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CompleteQueryRequest.java index 15da01ea9937..c7c2f109edaf 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CompleteQueryRequest.java +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CompleteQueryRequest.java @@ -523,6 +523,26 @@ public int getMaxSuggestions() { return maxSuggestions_; } + public static final int ENABLE_ATTRIBUTE_SUGGESTIONS_FIELD_NUMBER = 9; + private boolean enableAttributeSuggestions_ = false; + /** + * + * + *
+   * If true, attribute suggestions are enabled and provided in response.
+   *
+   * This field is only available for "cloud-retail" dataset.
+   * 
+ * + * bool enable_attribute_suggestions = 9; + * + * @return The enableAttributeSuggestions. + */ + @java.lang.Override + public boolean getEnableAttributeSuggestions() { + return enableAttributeSuggestions_; + } + public static final int ENTITY_FIELD_NUMBER = 10; @SuppressWarnings("serial") @@ -531,10 +551,10 @@ public int getMaxSuggestions() { * * *
-   * The entity for customers that may run multiple different entities, domains,
-   * sites or regions, for example, `Google US`, `Google Ads`, `Waymo`,
+   * The entity for customers who run multiple entities, domains, sites, or
+   * regions, for example, `Google US`, `Google Ads`, `Waymo`,
    * `google.com`, `youtube.com`, etc.
-   * If this is set, it should be exactly matched with
+   * If this is set, it must be an exact match with
    * [UserEvent.entity][google.cloud.retail.v2beta.UserEvent.entity] to get
    * per-entity autocomplete results.
    * 
@@ -559,10 +579,10 @@ public java.lang.String getEntity() { * * *
-   * The entity for customers that may run multiple different entities, domains,
-   * sites or regions, for example, `Google US`, `Google Ads`, `Waymo`,
+   * The entity for customers who run multiple entities, domains, sites, or
+   * regions, for example, `Google US`, `Google Ads`, `Waymo`,
    * `google.com`, `youtube.com`, etc.
-   * If this is set, it should be exactly matched with
+   * If this is set, it must be an exact match with
    * [UserEvent.entity][google.cloud.retail.v2beta.UserEvent.entity] to get
    * per-entity autocomplete results.
    * 
@@ -619,6 +639,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(visitorId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, visitorId_); } + if (enableAttributeSuggestions_ != false) { + output.writeBool(9, enableAttributeSuggestions_); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entity_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, entity_); } @@ -657,6 +680,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(visitorId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, visitorId_); } + if (enableAttributeSuggestions_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, enableAttributeSuggestions_); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entity_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, entity_); } @@ -683,6 +709,7 @@ public boolean equals(final java.lang.Object obj) { if (!getDeviceType().equals(other.getDeviceType())) return false; if (!getDataset().equals(other.getDataset())) return false; if (getMaxSuggestions() != other.getMaxSuggestions()) return false; + if (getEnableAttributeSuggestions() != other.getEnableAttributeSuggestions()) return false; if (!getEntity().equals(other.getEntity())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -711,6 +738,8 @@ public int hashCode() { hash = (53 * hash) + getDataset().hashCode(); hash = (37 * hash) + MAX_SUGGESTIONS_FIELD_NUMBER; hash = (53 * hash) + getMaxSuggestions(); + hash = (37 * hash) + ENABLE_ATTRIBUTE_SUGGESTIONS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableAttributeSuggestions()); hash = (37 * hash) + ENTITY_FIELD_NUMBER; hash = (53 * hash) + getEntity().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -859,6 +888,7 @@ public Builder clear() { deviceType_ = ""; dataset_ = ""; maxSuggestions_ = 0; + enableAttributeSuggestions_ = false; entity_ = ""; return this; } @@ -919,6 +949,9 @@ private void buildPartial0(com.google.cloud.retail.v2beta.CompleteQueryRequest r result.maxSuggestions_ = maxSuggestions_; } if (((from_bitField0_ & 0x00000080) != 0)) { + result.enableAttributeSuggestions_ = enableAttributeSuggestions_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { result.entity_ = entity_; } } @@ -1007,9 +1040,12 @@ public Builder mergeFrom(com.google.cloud.retail.v2beta.CompleteQueryRequest oth if (other.getMaxSuggestions() != 0) { setMaxSuggestions(other.getMaxSuggestions()); } + if (other.getEnableAttributeSuggestions() != false) { + setEnableAttributeSuggestions(other.getEnableAttributeSuggestions()); + } if (!other.getEntity().isEmpty()) { entity_ = other.entity_; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -1081,10 +1117,16 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 58 + case 72: + { + enableAttributeSuggestions_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 72 case 82: { entity_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 82 default: @@ -2150,15 +2192,74 @@ public Builder clearMaxSuggestions() { return this; } + private boolean enableAttributeSuggestions_; + /** + * + * + *
+     * If true, attribute suggestions are enabled and provided in response.
+     *
+     * This field is only available for "cloud-retail" dataset.
+     * 
+ * + * bool enable_attribute_suggestions = 9; + * + * @return The enableAttributeSuggestions. + */ + @java.lang.Override + public boolean getEnableAttributeSuggestions() { + return enableAttributeSuggestions_; + } + /** + * + * + *
+     * If true, attribute suggestions are enabled and provided in response.
+     *
+     * This field is only available for "cloud-retail" dataset.
+     * 
+ * + * bool enable_attribute_suggestions = 9; + * + * @param value The enableAttributeSuggestions to set. + * @return This builder for chaining. + */ + public Builder setEnableAttributeSuggestions(boolean value) { + + enableAttributeSuggestions_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * If true, attribute suggestions are enabled and provided in response.
+     *
+     * This field is only available for "cloud-retail" dataset.
+     * 
+ * + * bool enable_attribute_suggestions = 9; + * + * @return This builder for chaining. + */ + public Builder clearEnableAttributeSuggestions() { + bitField0_ = (bitField0_ & ~0x00000080); + enableAttributeSuggestions_ = false; + onChanged(); + return this; + } + private java.lang.Object entity_ = ""; /** * * *
-     * The entity for customers that may run multiple different entities, domains,
-     * sites or regions, for example, `Google US`, `Google Ads`, `Waymo`,
+     * The entity for customers who run multiple entities, domains, sites, or
+     * regions, for example, `Google US`, `Google Ads`, `Waymo`,
      * `google.com`, `youtube.com`, etc.
-     * If this is set, it should be exactly matched with
+     * If this is set, it must be an exact match with
      * [UserEvent.entity][google.cloud.retail.v2beta.UserEvent.entity] to get
      * per-entity autocomplete results.
      * 
@@ -2182,10 +2283,10 @@ public java.lang.String getEntity() { * * *
-     * The entity for customers that may run multiple different entities, domains,
-     * sites or regions, for example, `Google US`, `Google Ads`, `Waymo`,
+     * The entity for customers who run multiple entities, domains, sites, or
+     * regions, for example, `Google US`, `Google Ads`, `Waymo`,
      * `google.com`, `youtube.com`, etc.
-     * If this is set, it should be exactly matched with
+     * If this is set, it must be an exact match with
      * [UserEvent.entity][google.cloud.retail.v2beta.UserEvent.entity] to get
      * per-entity autocomplete results.
      * 
@@ -2209,10 +2310,10 @@ public com.google.protobuf.ByteString getEntityBytes() { * * *
-     * The entity for customers that may run multiple different entities, domains,
-     * sites or regions, for example, `Google US`, `Google Ads`, `Waymo`,
+     * The entity for customers who run multiple entities, domains, sites, or
+     * regions, for example, `Google US`, `Google Ads`, `Waymo`,
      * `google.com`, `youtube.com`, etc.
-     * If this is set, it should be exactly matched with
+     * If this is set, it must be an exact match with
      * [UserEvent.entity][google.cloud.retail.v2beta.UserEvent.entity] to get
      * per-entity autocomplete results.
      * 
@@ -2227,7 +2328,7 @@ public Builder setEntity(java.lang.String value) { throw new NullPointerException(); } entity_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2235,10 +2336,10 @@ public Builder setEntity(java.lang.String value) { * * *
-     * The entity for customers that may run multiple different entities, domains,
-     * sites or regions, for example, `Google US`, `Google Ads`, `Waymo`,
+     * The entity for customers who run multiple entities, domains, sites, or
+     * regions, for example, `Google US`, `Google Ads`, `Waymo`,
      * `google.com`, `youtube.com`, etc.
-     * If this is set, it should be exactly matched with
+     * If this is set, it must be an exact match with
      * [UserEvent.entity][google.cloud.retail.v2beta.UserEvent.entity] to get
      * per-entity autocomplete results.
      * 
@@ -2249,7 +2350,7 @@ public Builder setEntity(java.lang.String value) { */ public Builder clearEntity() { entity_ = getDefaultInstance().getEntity(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -2257,10 +2358,10 @@ public Builder clearEntity() { * * *
-     * The entity for customers that may run multiple different entities, domains,
-     * sites or regions, for example, `Google US`, `Google Ads`, `Waymo`,
+     * The entity for customers who run multiple entities, domains, sites, or
+     * regions, for example, `Google US`, `Google Ads`, `Waymo`,
      * `google.com`, `youtube.com`, etc.
-     * If this is set, it should be exactly matched with
+     * If this is set, it must be an exact match with
      * [UserEvent.entity][google.cloud.retail.v2beta.UserEvent.entity] to get
      * per-entity autocomplete results.
      * 
@@ -2276,7 +2377,7 @@ public Builder setEntityBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); entity_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CompleteQueryRequestOrBuilder.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CompleteQueryRequestOrBuilder.java index eb344d9e5bcd..cb6621a8bae7 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CompleteQueryRequestOrBuilder.java +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CompleteQueryRequestOrBuilder.java @@ -334,10 +334,25 @@ public interface CompleteQueryRequestOrBuilder * * *
-   * The entity for customers that may run multiple different entities, domains,
-   * sites or regions, for example, `Google US`, `Google Ads`, `Waymo`,
+   * If true, attribute suggestions are enabled and provided in response.
+   *
+   * This field is only available for "cloud-retail" dataset.
+   * 
+ * + * bool enable_attribute_suggestions = 9; + * + * @return The enableAttributeSuggestions. + */ + boolean getEnableAttributeSuggestions(); + + /** + * + * + *
+   * The entity for customers who run multiple entities, domains, sites, or
+   * regions, for example, `Google US`, `Google Ads`, `Waymo`,
    * `google.com`, `youtube.com`, etc.
-   * If this is set, it should be exactly matched with
+   * If this is set, it must be an exact match with
    * [UserEvent.entity][google.cloud.retail.v2beta.UserEvent.entity] to get
    * per-entity autocomplete results.
    * 
@@ -351,10 +366,10 @@ public interface CompleteQueryRequestOrBuilder * * *
-   * The entity for customers that may run multiple different entities, domains,
-   * sites or regions, for example, `Google US`, `Google Ads`, `Waymo`,
+   * The entity for customers who run multiple entities, domains, sites, or
+   * regions, for example, `Google US`, `Google Ads`, `Waymo`,
    * `google.com`, `youtube.com`, etc.
-   * If this is set, it should be exactly matched with
+   * If this is set, it must be an exact match with
    * [UserEvent.entity][google.cloud.retail.v2beta.UserEvent.entity] to get
    * per-entity autocomplete results.
    * 
diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CompleteQueryResponse.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CompleteQueryResponse.java index aca286170e7c..7137b2f7e11c 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CompleteQueryResponse.java +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CompleteQueryResponse.java @@ -1343,6 +1343,7 @@ public com.google.protobuf.Parser getParserForType() { } } + @java.lang.Deprecated public interface RecentSearchResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult) @@ -1377,11 +1378,12 @@ public interface RecentSearchResultOrBuilder * * *
-   * Recent search of this user.
+   * Deprecated: Recent search of this user.
    * 
* * Protobuf type {@code google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult} */ + @java.lang.Deprecated public static final class RecentSearchResult extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult) @@ -1636,7 +1638,7 @@ protected Builder newBuilderForType( * * *
-     * Recent search of this user.
+     * Deprecated: Recent search of this user.
      * 
* * Protobuf type {@code google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult} @@ -2160,9 +2162,9 @@ public com.google.protobuf.ByteString getAttributionTokenBytes() { * * *
-   * Matched recent searches of this user. The maximum number of recent searches
-   * is 10. This field is a restricted feature. Contact Retail Search support
-   * team if you are interested in enabling it.
+   * Deprecated. Matched recent searches of this user. The maximum number of
+   * recent searches is 10. This field is a restricted feature. If you want to
+   * enable it, contact Retail Search support.
    *
    * This feature is only available when
    * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2beta.CompleteQueryRequest.visitor_id]
@@ -2184,10 +2186,11 @@ public com.google.protobuf.ByteString getAttributionTokenBytes() {
    * 
* * - * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ @java.lang.Override + @java.lang.Deprecated public java.util.List getRecentSearchResultsList() { return recentSearchResults_; @@ -2196,9 +2199,9 @@ public com.google.protobuf.ByteString getAttributionTokenBytes() { * * *
-   * Matched recent searches of this user. The maximum number of recent searches
-   * is 10. This field is a restricted feature. Contact Retail Search support
-   * team if you are interested in enabling it.
+   * Deprecated. Matched recent searches of this user. The maximum number of
+   * recent searches is 10. This field is a restricted feature. If you want to
+   * enable it, contact Retail Search support.
    *
    * This feature is only available when
    * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2beta.CompleteQueryRequest.visitor_id]
@@ -2220,10 +2223,11 @@ public com.google.protobuf.ByteString getAttributionTokenBytes() {
    * 
* * - * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ @java.lang.Override + @java.lang.Deprecated public java.util.List< ? extends com.google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResultOrBuilder> @@ -2234,9 +2238,9 @@ public com.google.protobuf.ByteString getAttributionTokenBytes() { * * *
-   * Matched recent searches of this user. The maximum number of recent searches
-   * is 10. This field is a restricted feature. Contact Retail Search support
-   * team if you are interested in enabling it.
+   * Deprecated. Matched recent searches of this user. The maximum number of
+   * recent searches is 10. This field is a restricted feature. If you want to
+   * enable it, contact Retail Search support.
    *
    * This feature is only available when
    * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2beta.CompleteQueryRequest.visitor_id]
@@ -2258,10 +2262,11 @@ public com.google.protobuf.ByteString getAttributionTokenBytes() {
    * 
* * - * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ @java.lang.Override + @java.lang.Deprecated public int getRecentSearchResultsCount() { return recentSearchResults_.size(); } @@ -2269,9 +2274,9 @@ public int getRecentSearchResultsCount() { * * *
-   * Matched recent searches of this user. The maximum number of recent searches
-   * is 10. This field is a restricted feature. Contact Retail Search support
-   * team if you are interested in enabling it.
+   * Deprecated. Matched recent searches of this user. The maximum number of
+   * recent searches is 10. This field is a restricted feature. If you want to
+   * enable it, contact Retail Search support.
    *
    * This feature is only available when
    * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2beta.CompleteQueryRequest.visitor_id]
@@ -2293,10 +2298,11 @@ public int getRecentSearchResultsCount() {
    * 
* * - * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult getRecentSearchResults(int index) { return recentSearchResults_.get(index); @@ -2305,9 +2311,9 @@ public int getRecentSearchResultsCount() { * * *
-   * Matched recent searches of this user. The maximum number of recent searches
-   * is 10. This field is a restricted feature. Contact Retail Search support
-   * team if you are interested in enabling it.
+   * Deprecated. Matched recent searches of this user. The maximum number of
+   * recent searches is 10. This field is a restricted feature. If you want to
+   * enable it, contact Retail Search support.
    *
    * This feature is only available when
    * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2beta.CompleteQueryRequest.visitor_id]
@@ -2329,10 +2335,11 @@ public int getRecentSearchResultsCount() {
    * 
* * - * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResultOrBuilder getRecentSearchResultsOrBuilder(int index) { return recentSearchResults_.get(index); @@ -3403,9 +3410,9 @@ private void ensureRecentSearchResultsIsMutable() { * * *
-     * Matched recent searches of this user. The maximum number of recent searches
-     * is 10. This field is a restricted feature. Contact Retail Search support
-     * team if you are interested in enabling it.
+     * Deprecated. Matched recent searches of this user. The maximum number of
+     * recent searches is 10. This field is a restricted feature. If you want to
+     * enable it, contact Retail Search support.
      *
      * This feature is only available when
      * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2beta.CompleteQueryRequest.visitor_id]
@@ -3427,9 +3434,10 @@ private void ensureRecentSearchResultsIsMutable() {
      * 
* * - * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated public java.util.List getRecentSearchResultsList() { if (recentSearchResultsBuilder_ == null) { @@ -3442,9 +3450,9 @@ private void ensureRecentSearchResultsIsMutable() { * * *
-     * Matched recent searches of this user. The maximum number of recent searches
-     * is 10. This field is a restricted feature. Contact Retail Search support
-     * team if you are interested in enabling it.
+     * Deprecated. Matched recent searches of this user. The maximum number of
+     * recent searches is 10. This field is a restricted feature. If you want to
+     * enable it, contact Retail Search support.
      *
      * This feature is only available when
      * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2beta.CompleteQueryRequest.visitor_id]
@@ -3466,9 +3474,10 @@ private void ensureRecentSearchResultsIsMutable() {
      * 
* * - * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated public int getRecentSearchResultsCount() { if (recentSearchResultsBuilder_ == null) { return recentSearchResults_.size(); @@ -3480,9 +3489,9 @@ public int getRecentSearchResultsCount() { * * *
-     * Matched recent searches of this user. The maximum number of recent searches
-     * is 10. This field is a restricted feature. Contact Retail Search support
-     * team if you are interested in enabling it.
+     * Deprecated. Matched recent searches of this user. The maximum number of
+     * recent searches is 10. This field is a restricted feature. If you want to
+     * enable it, contact Retail Search support.
      *
      * This feature is only available when
      * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2beta.CompleteQueryRequest.visitor_id]
@@ -3504,9 +3513,10 @@ public int getRecentSearchResultsCount() {
      * 
* * - * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated public com.google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult getRecentSearchResults(int index) { if (recentSearchResultsBuilder_ == null) { @@ -3519,9 +3529,9 @@ public int getRecentSearchResultsCount() { * * *
-     * Matched recent searches of this user. The maximum number of recent searches
-     * is 10. This field is a restricted feature. Contact Retail Search support
-     * team if you are interested in enabling it.
+     * Deprecated. Matched recent searches of this user. The maximum number of
+     * recent searches is 10. This field is a restricted feature. If you want to
+     * enable it, contact Retail Search support.
      *
      * This feature is only available when
      * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2beta.CompleteQueryRequest.visitor_id]
@@ -3543,9 +3553,10 @@ public int getRecentSearchResultsCount() {
      * 
* * - * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated public Builder setRecentSearchResults( int index, com.google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult value) { if (recentSearchResultsBuilder_ == null) { @@ -3564,9 +3575,9 @@ public Builder setRecentSearchResults( * * *
-     * Matched recent searches of this user. The maximum number of recent searches
-     * is 10. This field is a restricted feature. Contact Retail Search support
-     * team if you are interested in enabling it.
+     * Deprecated. Matched recent searches of this user. The maximum number of
+     * recent searches is 10. This field is a restricted feature. If you want to
+     * enable it, contact Retail Search support.
      *
      * This feature is only available when
      * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2beta.CompleteQueryRequest.visitor_id]
@@ -3588,9 +3599,10 @@ public Builder setRecentSearchResults(
      * 
* * - * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated public Builder setRecentSearchResults( int index, com.google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult.Builder @@ -3608,9 +3620,9 @@ public Builder setRecentSearchResults( * * *
-     * Matched recent searches of this user. The maximum number of recent searches
-     * is 10. This field is a restricted feature. Contact Retail Search support
-     * team if you are interested in enabling it.
+     * Deprecated. Matched recent searches of this user. The maximum number of
+     * recent searches is 10. This field is a restricted feature. If you want to
+     * enable it, contact Retail Search support.
      *
      * This feature is only available when
      * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2beta.CompleteQueryRequest.visitor_id]
@@ -3632,9 +3644,10 @@ public Builder setRecentSearchResults(
      * 
* * - * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated public Builder addRecentSearchResults( com.google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult value) { if (recentSearchResultsBuilder_ == null) { @@ -3653,9 +3666,9 @@ public Builder addRecentSearchResults( * * *
-     * Matched recent searches of this user. The maximum number of recent searches
-     * is 10. This field is a restricted feature. Contact Retail Search support
-     * team if you are interested in enabling it.
+     * Deprecated. Matched recent searches of this user. The maximum number of
+     * recent searches is 10. This field is a restricted feature. If you want to
+     * enable it, contact Retail Search support.
      *
      * This feature is only available when
      * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2beta.CompleteQueryRequest.visitor_id]
@@ -3677,9 +3690,10 @@ public Builder addRecentSearchResults(
      * 
* * - * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated public Builder addRecentSearchResults( int index, com.google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult value) { if (recentSearchResultsBuilder_ == null) { @@ -3698,9 +3712,9 @@ public Builder addRecentSearchResults( * * *
-     * Matched recent searches of this user. The maximum number of recent searches
-     * is 10. This field is a restricted feature. Contact Retail Search support
-     * team if you are interested in enabling it.
+     * Deprecated. Matched recent searches of this user. The maximum number of
+     * recent searches is 10. This field is a restricted feature. If you want to
+     * enable it, contact Retail Search support.
      *
      * This feature is only available when
      * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2beta.CompleteQueryRequest.visitor_id]
@@ -3722,9 +3736,10 @@ public Builder addRecentSearchResults(
      * 
* * - * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated public Builder addRecentSearchResults( com.google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult.Builder builderForValue) { @@ -3741,9 +3756,9 @@ public Builder addRecentSearchResults( * * *
-     * Matched recent searches of this user. The maximum number of recent searches
-     * is 10. This field is a restricted feature. Contact Retail Search support
-     * team if you are interested in enabling it.
+     * Deprecated. Matched recent searches of this user. The maximum number of
+     * recent searches is 10. This field is a restricted feature. If you want to
+     * enable it, contact Retail Search support.
      *
      * This feature is only available when
      * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2beta.CompleteQueryRequest.visitor_id]
@@ -3765,9 +3780,10 @@ public Builder addRecentSearchResults(
      * 
* * - * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated public Builder addRecentSearchResults( int index, com.google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult.Builder @@ -3785,9 +3801,9 @@ public Builder addRecentSearchResults( * * *
-     * Matched recent searches of this user. The maximum number of recent searches
-     * is 10. This field is a restricted feature. Contact Retail Search support
-     * team if you are interested in enabling it.
+     * Deprecated. Matched recent searches of this user. The maximum number of
+     * recent searches is 10. This field is a restricted feature. If you want to
+     * enable it, contact Retail Search support.
      *
      * This feature is only available when
      * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2beta.CompleteQueryRequest.visitor_id]
@@ -3809,9 +3825,10 @@ public Builder addRecentSearchResults(
      * 
* * - * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated public Builder addAllRecentSearchResults( java.lang.Iterable< ? extends com.google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult> @@ -3829,9 +3846,9 @@ public Builder addAllRecentSearchResults( * * *
-     * Matched recent searches of this user. The maximum number of recent searches
-     * is 10. This field is a restricted feature. Contact Retail Search support
-     * team if you are interested in enabling it.
+     * Deprecated. Matched recent searches of this user. The maximum number of
+     * recent searches is 10. This field is a restricted feature. If you want to
+     * enable it, contact Retail Search support.
      *
      * This feature is only available when
      * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2beta.CompleteQueryRequest.visitor_id]
@@ -3853,9 +3870,10 @@ public Builder addAllRecentSearchResults(
      * 
* * - * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated public Builder clearRecentSearchResults() { if (recentSearchResultsBuilder_ == null) { recentSearchResults_ = java.util.Collections.emptyList(); @@ -3870,9 +3888,9 @@ public Builder clearRecentSearchResults() { * * *
-     * Matched recent searches of this user. The maximum number of recent searches
-     * is 10. This field is a restricted feature. Contact Retail Search support
-     * team if you are interested in enabling it.
+     * Deprecated. Matched recent searches of this user. The maximum number of
+     * recent searches is 10. This field is a restricted feature. If you want to
+     * enable it, contact Retail Search support.
      *
      * This feature is only available when
      * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2beta.CompleteQueryRequest.visitor_id]
@@ -3894,9 +3912,10 @@ public Builder clearRecentSearchResults() {
      * 
* * - * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated public Builder removeRecentSearchResults(int index) { if (recentSearchResultsBuilder_ == null) { ensureRecentSearchResultsIsMutable(); @@ -3911,9 +3930,9 @@ public Builder removeRecentSearchResults(int index) { * * *
-     * Matched recent searches of this user. The maximum number of recent searches
-     * is 10. This field is a restricted feature. Contact Retail Search support
-     * team if you are interested in enabling it.
+     * Deprecated. Matched recent searches of this user. The maximum number of
+     * recent searches is 10. This field is a restricted feature. If you want to
+     * enable it, contact Retail Search support.
      *
      * This feature is only available when
      * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2beta.CompleteQueryRequest.visitor_id]
@@ -3935,9 +3954,10 @@ public Builder removeRecentSearchResults(int index) {
      * 
* * - * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated public com.google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult.Builder getRecentSearchResultsBuilder(int index) { return getRecentSearchResultsFieldBuilder().getBuilder(index); @@ -3946,9 +3966,9 @@ public Builder removeRecentSearchResults(int index) { * * *
-     * Matched recent searches of this user. The maximum number of recent searches
-     * is 10. This field is a restricted feature. Contact Retail Search support
-     * team if you are interested in enabling it.
+     * Deprecated. Matched recent searches of this user. The maximum number of
+     * recent searches is 10. This field is a restricted feature. If you want to
+     * enable it, contact Retail Search support.
      *
      * This feature is only available when
      * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2beta.CompleteQueryRequest.visitor_id]
@@ -3970,9 +3990,10 @@ public Builder removeRecentSearchResults(int index) {
      * 
* * - * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated public com.google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResultOrBuilder getRecentSearchResultsOrBuilder(int index) { if (recentSearchResultsBuilder_ == null) { @@ -3985,9 +4006,9 @@ public Builder removeRecentSearchResults(int index) { * * *
-     * Matched recent searches of this user. The maximum number of recent searches
-     * is 10. This field is a restricted feature. Contact Retail Search support
-     * team if you are interested in enabling it.
+     * Deprecated. Matched recent searches of this user. The maximum number of
+     * recent searches is 10. This field is a restricted feature. If you want to
+     * enable it, contact Retail Search support.
      *
      * This feature is only available when
      * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2beta.CompleteQueryRequest.visitor_id]
@@ -4009,9 +4030,10 @@ public Builder removeRecentSearchResults(int index) {
      * 
* * - * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated public java.util.List< ? extends com.google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResultOrBuilder> @@ -4026,9 +4048,9 @@ public Builder removeRecentSearchResults(int index) { * * *
-     * Matched recent searches of this user. The maximum number of recent searches
-     * is 10. This field is a restricted feature. Contact Retail Search support
-     * team if you are interested in enabling it.
+     * Deprecated. Matched recent searches of this user. The maximum number of
+     * recent searches is 10. This field is a restricted feature. If you want to
+     * enable it, contact Retail Search support.
      *
      * This feature is only available when
      * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2beta.CompleteQueryRequest.visitor_id]
@@ -4050,9 +4072,10 @@ public Builder removeRecentSearchResults(int index) {
      * 
* * - * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated public com.google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult.Builder addRecentSearchResultsBuilder() { return getRecentSearchResultsFieldBuilder() @@ -4064,9 +4087,9 @@ public Builder removeRecentSearchResults(int index) { * * *
-     * Matched recent searches of this user. The maximum number of recent searches
-     * is 10. This field is a restricted feature. Contact Retail Search support
-     * team if you are interested in enabling it.
+     * Deprecated. Matched recent searches of this user. The maximum number of
+     * recent searches is 10. This field is a restricted feature. If you want to
+     * enable it, contact Retail Search support.
      *
      * This feature is only available when
      * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2beta.CompleteQueryRequest.visitor_id]
@@ -4088,9 +4111,10 @@ public Builder removeRecentSearchResults(int index) {
      * 
* * - * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated public com.google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult.Builder addRecentSearchResultsBuilder(int index) { return getRecentSearchResultsFieldBuilder() @@ -4103,9 +4127,9 @@ public Builder removeRecentSearchResults(int index) { * * *
-     * Matched recent searches of this user. The maximum number of recent searches
-     * is 10. This field is a restricted feature. Contact Retail Search support
-     * team if you are interested in enabling it.
+     * Deprecated. Matched recent searches of this user. The maximum number of
+     * recent searches is 10. This field is a restricted feature. If you want to
+     * enable it, contact Retail Search support.
      *
      * This feature is only available when
      * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2beta.CompleteQueryRequest.visitor_id]
@@ -4127,9 +4151,10 @@ public Builder removeRecentSearchResults(int index) {
      * 
* * - * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated public java.util.List< com.google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult.Builder> getRecentSearchResultsBuilderList() { diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CompleteQueryResponseOrBuilder.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CompleteQueryResponseOrBuilder.java index 5a1df242a870..1d45d5d29f94 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CompleteQueryResponseOrBuilder.java +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CompleteQueryResponseOrBuilder.java @@ -130,9 +130,9 @@ com.google.cloud.retail.v2beta.CompleteQueryResponse.CompletionResult getComplet * * *
-   * Matched recent searches of this user. The maximum number of recent searches
-   * is 10. This field is a restricted feature. Contact Retail Search support
-   * team if you are interested in enabling it.
+   * Deprecated. Matched recent searches of this user. The maximum number of
+   * recent searches is 10. This field is a restricted feature. If you want to
+   * enable it, contact Retail Search support.
    *
    * This feature is only available when
    * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2beta.CompleteQueryRequest.visitor_id]
@@ -154,18 +154,19 @@ com.google.cloud.retail.v2beta.CompleteQueryResponse.CompletionResult getComplet
    * 
* * - * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated java.util.List getRecentSearchResultsList(); /** * * *
-   * Matched recent searches of this user. The maximum number of recent searches
-   * is 10. This field is a restricted feature. Contact Retail Search support
-   * team if you are interested in enabling it.
+   * Deprecated. Matched recent searches of this user. The maximum number of
+   * recent searches is 10. This field is a restricted feature. If you want to
+   * enable it, contact Retail Search support.
    *
    * This feature is only available when
    * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2beta.CompleteQueryRequest.visitor_id]
@@ -187,18 +188,19 @@ com.google.cloud.retail.v2beta.CompleteQueryResponse.CompletionResult getComplet
    * 
* * - * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated com.google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult getRecentSearchResults( int index); /** * * *
-   * Matched recent searches of this user. The maximum number of recent searches
-   * is 10. This field is a restricted feature. Contact Retail Search support
-   * team if you are interested in enabling it.
+   * Deprecated. Matched recent searches of this user. The maximum number of
+   * recent searches is 10. This field is a restricted feature. If you want to
+   * enable it, contact Retail Search support.
    *
    * This feature is only available when
    * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2beta.CompleteQueryRequest.visitor_id]
@@ -220,17 +222,18 @@ com.google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult getRecen
    * 
* * - * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated int getRecentSearchResultsCount(); /** * * *
-   * Matched recent searches of this user. The maximum number of recent searches
-   * is 10. This field is a restricted feature. Contact Retail Search support
-   * team if you are interested in enabling it.
+   * Deprecated. Matched recent searches of this user. The maximum number of
+   * recent searches is 10. This field is a restricted feature. If you want to
+   * enable it, contact Retail Search support.
    *
    * This feature is only available when
    * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2beta.CompleteQueryRequest.visitor_id]
@@ -252,9 +255,10 @@ com.google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult getRecen
    * 
* * - * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated java.util.List< ? extends com.google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResultOrBuilder> @@ -263,9 +267,9 @@ com.google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult getRecen * * *
-   * Matched recent searches of this user. The maximum number of recent searches
-   * is 10. This field is a restricted feature. Contact Retail Search support
-   * team if you are interested in enabling it.
+   * Deprecated. Matched recent searches of this user. The maximum number of
+   * recent searches is 10. This field is a restricted feature. If you want to
+   * enable it, contact Retail Search support.
    *
    * This feature is only available when
    * [CompleteQueryRequest.visitor_id][google.cloud.retail.v2beta.CompleteQueryRequest.visitor_id]
@@ -287,9 +291,10 @@ com.google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult getRecen
    * 
* * - * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3; + * repeated .google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResult recent_search_results = 3 [deprecated = true]; * */ + @java.lang.Deprecated com.google.cloud.retail.v2beta.CompleteQueryResponse.RecentSearchResultOrBuilder getRecentSearchResultsOrBuilder(int index); } diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CompletionConfig.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CompletionConfig.java index bdd1f7358710..86330d5589b2 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CompletionConfig.java +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CompletionConfig.java @@ -330,8 +330,8 @@ public com.google.cloud.retail.v2beta.CompletionDataInputConfig getSuggestionsIn * Output only. Name of the LRO corresponding to the latest suggestion terms * list import. * - * Can use [GetOperation][google.longrunning.Operations.GetOperation] API to - * retrieve the latest state of the Long Running Operation. + * Can use [GetOperation][google.longrunning.Operations.GetOperation] API + * method to retrieve the latest state of the Long Running Operation. * * * @@ -359,8 +359,8 @@ public java.lang.String getLastSuggestionsImportOperation() { * Output only. Name of the LRO corresponding to the latest suggestion terms * list import. * - * Can use [GetOperation][google.longrunning.Operations.GetOperation] API to - * retrieve the latest state of the Long Running Operation. + * Can use [GetOperation][google.longrunning.Operations.GetOperation] API + * method to retrieve the latest state of the Long Running Operation. * * * @@ -1945,8 +1945,8 @@ public Builder clearSuggestionsInputConfig() { * Output only. Name of the LRO corresponding to the latest suggestion terms * list import. * - * Can use [GetOperation][google.longrunning.Operations.GetOperation] API to - * retrieve the latest state of the Long Running Operation. + * Can use [GetOperation][google.longrunning.Operations.GetOperation] API + * method to retrieve the latest state of the Long Running Operation. * * * @@ -1973,8 +1973,8 @@ public java.lang.String getLastSuggestionsImportOperation() { * Output only. Name of the LRO corresponding to the latest suggestion terms * list import. * - * Can use [GetOperation][google.longrunning.Operations.GetOperation] API to - * retrieve the latest state of the Long Running Operation. + * Can use [GetOperation][google.longrunning.Operations.GetOperation] API + * method to retrieve the latest state of the Long Running Operation. * * * @@ -2001,8 +2001,8 @@ public com.google.protobuf.ByteString getLastSuggestionsImportOperationBytes() { * Output only. Name of the LRO corresponding to the latest suggestion terms * list import. * - * Can use [GetOperation][google.longrunning.Operations.GetOperation] API to - * retrieve the latest state of the Long Running Operation. + * Can use [GetOperation][google.longrunning.Operations.GetOperation] API + * method to retrieve the latest state of the Long Running Operation. * * * @@ -2028,8 +2028,8 @@ public Builder setLastSuggestionsImportOperation(java.lang.String value) { * Output only. Name of the LRO corresponding to the latest suggestion terms * list import. * - * Can use [GetOperation][google.longrunning.Operations.GetOperation] API to - * retrieve the latest state of the Long Running Operation. + * Can use [GetOperation][google.longrunning.Operations.GetOperation] API + * method to retrieve the latest state of the Long Running Operation. * * * @@ -2051,8 +2051,8 @@ public Builder clearLastSuggestionsImportOperation() { * Output only. Name of the LRO corresponding to the latest suggestion terms * list import. * - * Can use [GetOperation][google.longrunning.Operations.GetOperation] API to - * retrieve the latest state of the Long Running Operation. + * Can use [GetOperation][google.longrunning.Operations.GetOperation] API + * method to retrieve the latest state of the Long Running Operation. * * * diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CompletionConfigOrBuilder.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CompletionConfigOrBuilder.java index 9e463ae3dd2a..eef612d1dea4 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CompletionConfigOrBuilder.java +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CompletionConfigOrBuilder.java @@ -199,8 +199,8 @@ public interface CompletionConfigOrBuilder * Output only. Name of the LRO corresponding to the latest suggestion terms * list import. * - * Can use [GetOperation][google.longrunning.Operations.GetOperation] API to - * retrieve the latest state of the Long Running Operation. + * Can use [GetOperation][google.longrunning.Operations.GetOperation] API + * method to retrieve the latest state of the Long Running Operation. * * * @@ -217,8 +217,8 @@ public interface CompletionConfigOrBuilder * Output only. Name of the LRO corresponding to the latest suggestion terms * list import. * - * Can use [GetOperation][google.longrunning.Operations.GetOperation] API to - * retrieve the latest state of the Long Running Operation. + * Can use [GetOperation][google.longrunning.Operations.GetOperation] API + * method to retrieve the latest state of the Long Running Operation. * * * diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CompletionServiceProto.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CompletionServiceProto.java index 48364264f6d7..5918ce212208 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CompletionServiceProto.java +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CompletionServiceProto.java @@ -65,46 +65,47 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ogle/cloud/retail/v2beta/common.proto\032.g" + "oogle/cloud/retail/v2beta/import_config." + "proto\032#google/longrunning/operations.pro" - + "to\"\335\001\n\024CompleteQueryRequest\0226\n\007catalog\030\001" + + "to\"\203\002\n\024CompleteQueryRequest\0226\n\007catalog\030\001" + " \001(\tB%\340A\002\372A\037\n\035retail.googleapis.com/Cata" + "log\022\022\n\005query\030\002 \001(\tB\003\340A\002\022\022\n\nvisitor_id\030\007 " + "\001(\t\022\026\n\016language_codes\030\003 \003(\t\022\023\n\013device_ty" + "pe\030\004 \001(\t\022\017\n\007dataset\030\006 \001(\t\022\027\n\017max_suggest" - + "ions\030\005 \001(\005\022\016\n\006entity\030\n \001(\t\"\225\004\n\025CompleteQ" - + "ueryResponse\022^\n\022completion_results\030\001 \003(\013" - + "2B.google.cloud.retail.v2beta.CompleteQu" - + "eryResponse.CompletionResult\022\031\n\021attribut" - + "ion_token\030\002 \001(\t\022c\n\025recent_search_results" - + "\030\003 \003(\0132D.google.cloud.retail.v2beta.Comp" - + "leteQueryResponse.RecentSearchResult\032\356\001\n" - + "\020CompletionResult\022\022\n\nsuggestion\030\001 \001(\t\022f\n" - + "\nattributes\030\002 \003(\0132R.google.cloud.retail." - + "v2beta.CompleteQueryResponse.CompletionR" - + "esult.AttributesEntry\032^\n\017AttributesEntry" - + "\022\013\n\003key\030\001 \001(\t\022:\n\005value\030\002 \001(\0132+.google.cl" - + "oud.retail.v2beta.CustomAttribute:\0028\001\032+\n" - + "\022RecentSearchResult\022\025\n\rrecent_search\030\001 \001" - + "(\t2\316\004\n\021CompletionService\022\277\001\n\rCompleteQue" - + "ry\0220.google.cloud.retail.v2beta.Complete" - + "QueryRequest\0321.google.cloud.retail.v2bet" - + "a.CompleteQueryResponse\"I\202\323\344\223\002C\022A/v2beta" - + "/{catalog=projects/*/locations/*/catalog" - + "s/*}:completeQuery\022\253\002\n\024ImportCompletionD" - + "ata\0227.google.cloud.retail.v2beta.ImportC" - + "ompletionDataRequest\032\035.google.longrunnin" - + "g.Operation\"\272\001\312Ad\n7google.cloud.retail.v" - + "2beta.ImportCompletionDataResponse\022)goog" - + "le.cloud.retail.v2beta.ImportMetadata\202\323\344" - + "\223\002M\"H/v2beta/{parent=projects/*/location" - + "s/*/catalogs/*}/completionData:import:\001*" - + "\032I\312A\025retail.googleapis.com\322A.https://www" - + ".googleapis.com/auth/cloud-platformB\325\001\n\036" - + "com.google.cloud.retail.v2betaB\026Completi" - + "onServiceProtoP\001Z6cloud.google.com/go/re" - + "tail/apiv2beta/retailpb;retailpb\242\002\006RETAI" - + "L\252\002\032Google.Cloud.Retail.V2Beta\312\002\032Google\\" - + "Cloud\\Retail\\V2beta\352\002\035Google::Cloud::Ret" - + "ail::V2betab\006proto3" + + "ions\030\005 \001(\005\022$\n\034enable_attribute_suggestio" + + "ns\030\t \001(\010\022\016\n\006entity\030\n \001(\t\"\235\004\n\025CompleteQue" + + "ryResponse\022^\n\022completion_results\030\001 \003(\0132B" + + ".google.cloud.retail.v2beta.CompleteQuer" + + "yResponse.CompletionResult\022\031\n\021attributio" + + "n_token\030\002 \001(\t\022g\n\025recent_search_results\030\003" + + " \003(\0132D.google.cloud.retail.v2beta.Comple" + + "teQueryResponse.RecentSearchResultB\002\030\001\032\356" + + "\001\n\020CompletionResult\022\022\n\nsuggestion\030\001 \001(\t\022" + + "f\n\nattributes\030\002 \003(\0132R.google.cloud.retai" + + "l.v2beta.CompleteQueryResponse.Completio" + + "nResult.AttributesEntry\032^\n\017AttributesEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022:\n\005value\030\002 \001(\0132+.google." + + "cloud.retail.v2beta.CustomAttribute:\0028\001\032" + + "/\n\022RecentSearchResult\022\025\n\rrecent_search\030\001" + + " \001(\t:\002\030\0012\316\004\n\021CompletionService\022\277\001\n\rCompl" + + "eteQuery\0220.google.cloud.retail.v2beta.Co" + + "mpleteQueryRequest\0321.google.cloud.retail" + + ".v2beta.CompleteQueryResponse\"I\202\323\344\223\002C\022A/" + + "v2beta/{catalog=projects/*/locations/*/c" + + "atalogs/*}:completeQuery\022\253\002\n\024ImportCompl" + + "etionData\0227.google.cloud.retail.v2beta.I" + + "mportCompletionDataRequest\032\035.google.long" + + "running.Operation\"\272\001\312Ad\n7google.cloud.re" + + "tail.v2beta.ImportCompletionDataResponse" + + "\022)google.cloud.retail.v2beta.ImportMetad" + + "ata\202\323\344\223\002M\"H/v2beta/{parent=projects/*/lo" + + "cations/*/catalogs/*}/completionData:imp" + + "ort:\001*\032I\312A\025retail.googleapis.com\322A.https" + + "://www.googleapis.com/auth/cloud-platfor" + + "mB\325\001\n\036com.google.cloud.retail.v2betaB\026Co" + + "mpletionServiceProtoP\001Z6cloud.google.com" + + "/go/retail/apiv2beta/retailpb;retailpb\242\002" + + "\006RETAIL\252\002\032Google.Cloud.Retail.V2Beta\312\002\032G" + + "oogle\\Cloud\\Retail\\V2beta\352\002\035Google::Clou" + + "d::Retail::V2betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -131,6 +132,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DeviceType", "Dataset", "MaxSuggestions", + "EnableAttributeSuggestions", "Entity", }); internal_static_google_cloud_retail_v2beta_CompleteQueryResponse_descriptor = diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/Condition.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/Condition.java index d29e9538e6d9..60afc167677b 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/Condition.java +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/Condition.java @@ -46,6 +46,7 @@ private Condition(com.google.protobuf.GeneratedMessageV3.Builder builder) { private Condition() { queryTerms_ = java.util.Collections.emptyList(); activeTimeRange_ = java.util.Collections.emptyList(); + pageCategories_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @@ -2066,6 +2067,82 @@ public com.google.cloud.retail.v2beta.Condition.TimeRangeOrBuilder getActiveTime return activeTimeRange_.get(index); } + public static final int PAGE_CATEGORIES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList pageCategories_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * Used to support browse uses cases.
+   * A list (up to 10 entries) of categories or departments.
+   * The format should be the same as
+   * [UserEvent.page_categories][google.cloud.retail.v2beta.UserEvent.page_categories];
+   * 
+ * + * repeated string page_categories = 4; + * + * @return A list containing the pageCategories. + */ + public com.google.protobuf.ProtocolStringList getPageCategoriesList() { + return pageCategories_; + } + /** + * + * + *
+   * Used to support browse uses cases.
+   * A list (up to 10 entries) of categories or departments.
+   * The format should be the same as
+   * [UserEvent.page_categories][google.cloud.retail.v2beta.UserEvent.page_categories];
+   * 
+ * + * repeated string page_categories = 4; + * + * @return The count of pageCategories. + */ + public int getPageCategoriesCount() { + return pageCategories_.size(); + } + /** + * + * + *
+   * Used to support browse uses cases.
+   * A list (up to 10 entries) of categories or departments.
+   * The format should be the same as
+   * [UserEvent.page_categories][google.cloud.retail.v2beta.UserEvent.page_categories];
+   * 
+ * + * repeated string page_categories = 4; + * + * @param index The index of the element to return. + * @return The pageCategories at the given index. + */ + public java.lang.String getPageCategories(int index) { + return pageCategories_.get(index); + } + /** + * + * + *
+   * Used to support browse uses cases.
+   * A list (up to 10 entries) of categories or departments.
+   * The format should be the same as
+   * [UserEvent.page_categories][google.cloud.retail.v2beta.UserEvent.page_categories];
+   * 
+ * + * repeated string page_categories = 4; + * + * @param index The index of the value to return. + * @return The bytes of the pageCategories at the given index. + */ + public com.google.protobuf.ByteString getPageCategoriesBytes(int index) { + return pageCategories_.getByteString(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2086,6 +2163,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < activeTimeRange_.size(); i++) { output.writeMessage(3, activeTimeRange_.get(i)); } + for (int i = 0; i < pageCategories_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageCategories_.getRaw(i)); + } getUnknownFields().writeTo(output); } @@ -2101,6 +2181,14 @@ public int getSerializedSize() { for (int i = 0; i < activeTimeRange_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, activeTimeRange_.get(i)); } + { + int dataSize = 0; + for (int i = 0; i < pageCategories_.size(); i++) { + dataSize += computeStringSizeNoTag(pageCategories_.getRaw(i)); + } + size += dataSize; + size += 1 * getPageCategoriesList().size(); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2118,6 +2206,7 @@ public boolean equals(final java.lang.Object obj) { if (!getQueryTermsList().equals(other.getQueryTermsList())) return false; if (!getActiveTimeRangeList().equals(other.getActiveTimeRangeList())) return false; + if (!getPageCategoriesList().equals(other.getPageCategoriesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2137,6 +2226,10 @@ public int hashCode() { hash = (37 * hash) + ACTIVE_TIME_RANGE_FIELD_NUMBER; hash = (53 * hash) + getActiveTimeRangeList().hashCode(); } + if (getPageCategoriesCount() > 0) { + hash = (37 * hash) + PAGE_CATEGORIES_FIELD_NUMBER; + hash = (53 * hash) + getPageCategoriesList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2295,6 +2388,7 @@ public Builder clear() { activeTimeRangeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); + pageCategories_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -2353,6 +2447,10 @@ private void buildPartialRepeatedFields(com.google.cloud.retail.v2beta.Condition private void buildPartial0(com.google.cloud.retail.v2beta.Condition result) { int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + pageCategories_.makeImmutable(); + result.pageCategories_ = pageCategories_; + } } @java.lang.Override @@ -2454,6 +2552,16 @@ public Builder mergeFrom(com.google.cloud.retail.v2beta.Condition other) { } } } + if (!other.pageCategories_.isEmpty()) { + if (pageCategories_.isEmpty()) { + pageCategories_ = other.pageCategories_; + bitField0_ |= 0x00000004; + } else { + ensurePageCategoriesIsMutable(); + pageCategories_.addAll(other.pageCategories_); + } + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2508,6 +2616,13 @@ public Builder mergeFrom( } break; } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePageCategoriesIsMutable(); + pageCategories_.add(s); + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3319,6 +3434,207 @@ public com.google.cloud.retail.v2beta.Condition.TimeRange.Builder addActiveTimeR return activeTimeRangeBuilder_; } + private com.google.protobuf.LazyStringArrayList pageCategories_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensurePageCategoriesIsMutable() { + if (!pageCategories_.isModifiable()) { + pageCategories_ = new com.google.protobuf.LazyStringArrayList(pageCategories_); + } + bitField0_ |= 0x00000004; + } + /** + * + * + *
+     * Used to support browse uses cases.
+     * A list (up to 10 entries) of categories or departments.
+     * The format should be the same as
+     * [UserEvent.page_categories][google.cloud.retail.v2beta.UserEvent.page_categories];
+     * 
+ * + * repeated string page_categories = 4; + * + * @return A list containing the pageCategories. + */ + public com.google.protobuf.ProtocolStringList getPageCategoriesList() { + pageCategories_.makeImmutable(); + return pageCategories_; + } + /** + * + * + *
+     * Used to support browse uses cases.
+     * A list (up to 10 entries) of categories or departments.
+     * The format should be the same as
+     * [UserEvent.page_categories][google.cloud.retail.v2beta.UserEvent.page_categories];
+     * 
+ * + * repeated string page_categories = 4; + * + * @return The count of pageCategories. + */ + public int getPageCategoriesCount() { + return pageCategories_.size(); + } + /** + * + * + *
+     * Used to support browse uses cases.
+     * A list (up to 10 entries) of categories or departments.
+     * The format should be the same as
+     * [UserEvent.page_categories][google.cloud.retail.v2beta.UserEvent.page_categories];
+     * 
+ * + * repeated string page_categories = 4; + * + * @param index The index of the element to return. + * @return The pageCategories at the given index. + */ + public java.lang.String getPageCategories(int index) { + return pageCategories_.get(index); + } + /** + * + * + *
+     * Used to support browse uses cases.
+     * A list (up to 10 entries) of categories or departments.
+     * The format should be the same as
+     * [UserEvent.page_categories][google.cloud.retail.v2beta.UserEvent.page_categories];
+     * 
+ * + * repeated string page_categories = 4; + * + * @param index The index of the value to return. + * @return The bytes of the pageCategories at the given index. + */ + public com.google.protobuf.ByteString getPageCategoriesBytes(int index) { + return pageCategories_.getByteString(index); + } + /** + * + * + *
+     * Used to support browse uses cases.
+     * A list (up to 10 entries) of categories or departments.
+     * The format should be the same as
+     * [UserEvent.page_categories][google.cloud.retail.v2beta.UserEvent.page_categories];
+     * 
+ * + * repeated string page_categories = 4; + * + * @param index The index to set the value at. + * @param value The pageCategories to set. + * @return This builder for chaining. + */ + public Builder setPageCategories(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePageCategoriesIsMutable(); + pageCategories_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Used to support browse uses cases.
+     * A list (up to 10 entries) of categories or departments.
+     * The format should be the same as
+     * [UserEvent.page_categories][google.cloud.retail.v2beta.UserEvent.page_categories];
+     * 
+ * + * repeated string page_categories = 4; + * + * @param value The pageCategories to add. + * @return This builder for chaining. + */ + public Builder addPageCategories(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePageCategoriesIsMutable(); + pageCategories_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Used to support browse uses cases.
+     * A list (up to 10 entries) of categories or departments.
+     * The format should be the same as
+     * [UserEvent.page_categories][google.cloud.retail.v2beta.UserEvent.page_categories];
+     * 
+ * + * repeated string page_categories = 4; + * + * @param values The pageCategories to add. + * @return This builder for chaining. + */ + public Builder addAllPageCategories(java.lang.Iterable values) { + ensurePageCategoriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pageCategories_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Used to support browse uses cases.
+     * A list (up to 10 entries) of categories or departments.
+     * The format should be the same as
+     * [UserEvent.page_categories][google.cloud.retail.v2beta.UserEvent.page_categories];
+     * 
+ * + * repeated string page_categories = 4; + * + * @return This builder for chaining. + */ + public Builder clearPageCategories() { + pageCategories_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * Used to support browse uses cases.
+     * A list (up to 10 entries) of categories or departments.
+     * The format should be the same as
+     * [UserEvent.page_categories][google.cloud.retail.v2beta.UserEvent.page_categories];
+     * 
+ * + * repeated string page_categories = 4; + * + * @param value The bytes of the pageCategories to add. + * @return This builder for chaining. + */ + public Builder addPageCategoriesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePageCategoriesIsMutable(); + pageCategories_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ConditionOrBuilder.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ConditionOrBuilder.java index 03b479ee1b79..eec6972a11fb 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ConditionOrBuilder.java +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ConditionOrBuilder.java @@ -148,4 +148,67 @@ public interface ConditionOrBuilder */ com.google.cloud.retail.v2beta.Condition.TimeRangeOrBuilder getActiveTimeRangeOrBuilder( int index); + + /** + * + * + *
+   * Used to support browse uses cases.
+   * A list (up to 10 entries) of categories or departments.
+   * The format should be the same as
+   * [UserEvent.page_categories][google.cloud.retail.v2beta.UserEvent.page_categories];
+   * 
+ * + * repeated string page_categories = 4; + * + * @return A list containing the pageCategories. + */ + java.util.List getPageCategoriesList(); + /** + * + * + *
+   * Used to support browse uses cases.
+   * A list (up to 10 entries) of categories or departments.
+   * The format should be the same as
+   * [UserEvent.page_categories][google.cloud.retail.v2beta.UserEvent.page_categories];
+   * 
+ * + * repeated string page_categories = 4; + * + * @return The count of pageCategories. + */ + int getPageCategoriesCount(); + /** + * + * + *
+   * Used to support browse uses cases.
+   * A list (up to 10 entries) of categories or departments.
+   * The format should be the same as
+   * [UserEvent.page_categories][google.cloud.retail.v2beta.UserEvent.page_categories];
+   * 
+ * + * repeated string page_categories = 4; + * + * @param index The index of the element to return. + * @return The pageCategories at the given index. + */ + java.lang.String getPageCategories(int index); + /** + * + * + *
+   * Used to support browse uses cases.
+   * A list (up to 10 entries) of categories or departments.
+   * The format should be the same as
+   * [UserEvent.page_categories][google.cloud.retail.v2beta.UserEvent.page_categories];
+   * 
+ * + * repeated string page_categories = 4; + * + * @param index The index of the value to return. + * @return The bytes of the pageCategories at the given index. + */ + com.google.protobuf.ByteString getPageCategoriesBytes(int index); } diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CustomAttribute.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CustomAttribute.java index f88c34bf7eec..2816c36a4304 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CustomAttribute.java +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CustomAttribute.java @@ -253,7 +253,7 @@ public double getNumbers(int index) { * optional bool searchable = 3 [deprecated = true]; * * @deprecated google.cloud.retail.v2beta.CustomAttribute.searchable is deprecated. See - * google/cloud/retail/v2beta/common.proto;l=426 + * google/cloud/retail/v2beta/common.proto;l=511 * @return Whether the searchable field is set. */ @java.lang.Override @@ -284,7 +284,7 @@ public boolean hasSearchable() { * optional bool searchable = 3 [deprecated = true]; * * @deprecated google.cloud.retail.v2beta.CustomAttribute.searchable is deprecated. See - * google/cloud/retail/v2beta/common.proto;l=426 + * google/cloud/retail/v2beta/common.proto;l=511 * @return The searchable. */ @java.lang.Override @@ -323,7 +323,7 @@ public boolean getSearchable() { * optional bool indexable = 4 [deprecated = true]; * * @deprecated google.cloud.retail.v2beta.CustomAttribute.indexable is deprecated. See - * google/cloud/retail/v2beta/common.proto;l=447 + * google/cloud/retail/v2beta/common.proto;l=532 * @return Whether the indexable field is set. */ @java.lang.Override @@ -359,7 +359,7 @@ public boolean hasIndexable() { * optional bool indexable = 4 [deprecated = true]; * * @deprecated google.cloud.retail.v2beta.CustomAttribute.indexable is deprecated. See - * google/cloud/retail/v2beta/common.proto;l=447 + * google/cloud/retail/v2beta/common.proto;l=532 * @return The indexable. */ @java.lang.Override @@ -1282,7 +1282,7 @@ public Builder clearNumbers() { * optional bool searchable = 3 [deprecated = true]; * * @deprecated google.cloud.retail.v2beta.CustomAttribute.searchable is deprecated. See - * google/cloud/retail/v2beta/common.proto;l=426 + * google/cloud/retail/v2beta/common.proto;l=511 * @return Whether the searchable field is set. */ @java.lang.Override @@ -1313,7 +1313,7 @@ public boolean hasSearchable() { * optional bool searchable = 3 [deprecated = true]; * * @deprecated google.cloud.retail.v2beta.CustomAttribute.searchable is deprecated. See - * google/cloud/retail/v2beta/common.proto;l=426 + * google/cloud/retail/v2beta/common.proto;l=511 * @return The searchable. */ @java.lang.Override @@ -1344,7 +1344,7 @@ public boolean getSearchable() { * optional bool searchable = 3 [deprecated = true]; * * @deprecated google.cloud.retail.v2beta.CustomAttribute.searchable is deprecated. See - * google/cloud/retail/v2beta/common.proto;l=426 + * google/cloud/retail/v2beta/common.proto;l=511 * @param value The searchable to set. * @return This builder for chaining. */ @@ -1379,7 +1379,7 @@ public Builder setSearchable(boolean value) { * optional bool searchable = 3 [deprecated = true]; * * @deprecated google.cloud.retail.v2beta.CustomAttribute.searchable is deprecated. See - * google/cloud/retail/v2beta/common.proto;l=426 + * google/cloud/retail/v2beta/common.proto;l=511 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1419,7 +1419,7 @@ public Builder clearSearchable() { * optional bool indexable = 4 [deprecated = true]; * * @deprecated google.cloud.retail.v2beta.CustomAttribute.indexable is deprecated. See - * google/cloud/retail/v2beta/common.proto;l=447 + * google/cloud/retail/v2beta/common.proto;l=532 * @return Whether the indexable field is set. */ @java.lang.Override @@ -1455,7 +1455,7 @@ public boolean hasIndexable() { * optional bool indexable = 4 [deprecated = true]; * * @deprecated google.cloud.retail.v2beta.CustomAttribute.indexable is deprecated. See - * google/cloud/retail/v2beta/common.proto;l=447 + * google/cloud/retail/v2beta/common.proto;l=532 * @return The indexable. */ @java.lang.Override @@ -1491,7 +1491,7 @@ public boolean getIndexable() { * optional bool indexable = 4 [deprecated = true]; * * @deprecated google.cloud.retail.v2beta.CustomAttribute.indexable is deprecated. See - * google/cloud/retail/v2beta/common.proto;l=447 + * google/cloud/retail/v2beta/common.proto;l=532 * @param value The indexable to set. * @return This builder for chaining. */ @@ -1531,7 +1531,7 @@ public Builder setIndexable(boolean value) { * optional bool indexable = 4 [deprecated = true]; * * @deprecated google.cloud.retail.v2beta.CustomAttribute.indexable is deprecated. See - * google/cloud/retail/v2beta/common.proto;l=447 + * google/cloud/retail/v2beta/common.proto;l=532 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CustomAttributeOrBuilder.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CustomAttributeOrBuilder.java index e9c1237ba8ce..f44d096ff263 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CustomAttributeOrBuilder.java +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/CustomAttributeOrBuilder.java @@ -183,7 +183,7 @@ public interface CustomAttributeOrBuilder * optional bool searchable = 3 [deprecated = true]; * * @deprecated google.cloud.retail.v2beta.CustomAttribute.searchable is deprecated. See - * google/cloud/retail/v2beta/common.proto;l=426 + * google/cloud/retail/v2beta/common.proto;l=511 * @return Whether the searchable field is set. */ @java.lang.Deprecated @@ -211,7 +211,7 @@ public interface CustomAttributeOrBuilder * optional bool searchable = 3 [deprecated = true]; * * @deprecated google.cloud.retail.v2beta.CustomAttribute.searchable is deprecated. See - * google/cloud/retail/v2beta/common.proto;l=426 + * google/cloud/retail/v2beta/common.proto;l=511 * @return The searchable. */ @java.lang.Deprecated @@ -245,7 +245,7 @@ public interface CustomAttributeOrBuilder * optional bool indexable = 4 [deprecated = true]; * * @deprecated google.cloud.retail.v2beta.CustomAttribute.indexable is deprecated. See - * google/cloud/retail/v2beta/common.proto;l=447 + * google/cloud/retail/v2beta/common.proto;l=532 * @return Whether the indexable field is set. */ @java.lang.Deprecated @@ -278,7 +278,7 @@ public interface CustomAttributeOrBuilder * optional bool indexable = 4 [deprecated = true]; * * @deprecated google.cloud.retail.v2beta.CustomAttribute.indexable is deprecated. See - * google/cloud/retail/v2beta/common.proto;l=447 + * google/cloud/retail/v2beta/common.proto;l=532 * @return The indexable. */ @java.lang.Deprecated diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ExperimentInfo.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ExperimentInfo.java index 4da023e47e75..db12df228ddb 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ExperimentInfo.java +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ExperimentInfo.java @@ -23,7 +23,7 @@ * * *
- * Metadata for active A/B testing [Experiments][].
+ * Metadata for active A/B testing [Experiment][].
  * 
* * Protobuf type {@code google.cloud.retail.v2beta.ExperimentInfo} @@ -104,8 +104,8 @@ public interface ServingConfigExperimentOrBuilder * *
      * The fully qualified resource name of the serving config
-     * [VariantArm.serving_config_id][] responsible for generating the search
-     * response. For example:
+     * [Experiment.VariantArm.serving_config_id][] responsible for generating
+     * the search response. For example:
      * `projects/*/locations/*/catalogs/*/servingConfigs/*`.
      * 
* @@ -119,8 +119,8 @@ public interface ServingConfigExperimentOrBuilder * *
      * The fully qualified resource name of the serving config
-     * [VariantArm.serving_config_id][] responsible for generating the search
-     * response. For example:
+     * [Experiment.VariantArm.serving_config_id][] responsible for generating
+     * the search response. For example:
      * `projects/*/locations/*/catalogs/*/servingConfigs/*`.
      * 
* @@ -241,8 +241,8 @@ public com.google.protobuf.ByteString getOriginalServingConfigBytes() { * *
      * The fully qualified resource name of the serving config
-     * [VariantArm.serving_config_id][] responsible for generating the search
-     * response. For example:
+     * [Experiment.VariantArm.serving_config_id][] responsible for generating
+     * the search response. For example:
      * `projects/*/locations/*/catalogs/*/servingConfigs/*`.
      * 
* @@ -267,8 +267,8 @@ public java.lang.String getExperimentServingConfig() { * *
      * The fully qualified resource name of the serving config
-     * [VariantArm.serving_config_id][] responsible for generating the search
-     * response. For example:
+     * [Experiment.VariantArm.serving_config_id][] responsible for generating
+     * the search response. For example:
      * `projects/*/locations/*/catalogs/*/servingConfigs/*`.
      * 
* @@ -799,8 +799,8 @@ public Builder setOriginalServingConfigBytes(com.google.protobuf.ByteString valu * *
        * The fully qualified resource name of the serving config
-       * [VariantArm.serving_config_id][] responsible for generating the search
-       * response. For example:
+       * [Experiment.VariantArm.serving_config_id][] responsible for generating
+       * the search response. For example:
        * `projects/*/locations/*/catalogs/*/servingConfigs/*`.
        * 
* @@ -825,8 +825,8 @@ public java.lang.String getExperimentServingConfig() { * *
        * The fully qualified resource name of the serving config
-       * [VariantArm.serving_config_id][] responsible for generating the search
-       * response. For example:
+       * [Experiment.VariantArm.serving_config_id][] responsible for generating
+       * the search response. For example:
        * `projects/*/locations/*/catalogs/*/servingConfigs/*`.
        * 
* @@ -851,8 +851,8 @@ public com.google.protobuf.ByteString getExperimentServingConfigBytes() { * *
        * The fully qualified resource name of the serving config
-       * [VariantArm.serving_config_id][] responsible for generating the search
-       * response. For example:
+       * [Experiment.VariantArm.serving_config_id][] responsible for generating
+       * the search response. For example:
        * `projects/*/locations/*/catalogs/*/servingConfigs/*`.
        * 
* @@ -876,8 +876,8 @@ public Builder setExperimentServingConfig(java.lang.String value) { * *
        * The fully qualified resource name of the serving config
-       * [VariantArm.serving_config_id][] responsible for generating the search
-       * response. For example:
+       * [Experiment.VariantArm.serving_config_id][] responsible for generating
+       * the search response. For example:
        * `projects/*/locations/*/catalogs/*/servingConfigs/*`.
        * 
* @@ -897,8 +897,8 @@ public Builder clearExperimentServingConfig() { * *
        * The fully qualified resource name of the serving config
-       * [VariantArm.serving_config_id][] responsible for generating the search
-       * response. For example:
+       * [Experiment.VariantArm.serving_config_id][] responsible for generating
+       * the search response. For example:
        * `projects/*/locations/*/catalogs/*/servingConfigs/*`.
        * 
* @@ -1346,7 +1346,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Metadata for active A/B testing [Experiments][].
+   * Metadata for active A/B testing [Experiment][].
    * 
* * Protobuf type {@code google.cloud.retail.v2beta.ExperimentInfo} diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ImportMetadata.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ImportMetadata.java index ccfcc05e8f18..76eb15bc464f 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ImportMetadata.java +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ImportMetadata.java @@ -211,7 +211,7 @@ public long getFailureCount() { * string request_id = 5 [deprecated = true]; * * @deprecated google.cloud.retail.v2beta.ImportMetadata.request_id is deprecated. See - * google/cloud/retail/v2beta/import_config.proto;l=330 + * google/cloud/retail/v2beta/import_config.proto;l=336 * @return The requestId. */ @java.lang.Override @@ -237,7 +237,7 @@ public java.lang.String getRequestId() { * string request_id = 5 [deprecated = true]; * * @deprecated google.cloud.retail.v2beta.ImportMetadata.request_id is deprecated. See - * google/cloud/retail/v2beta/import_config.proto;l=330 + * google/cloud/retail/v2beta/import_config.proto;l=336 * @return The bytes for requestId. */ @java.lang.Override @@ -1295,7 +1295,7 @@ public Builder clearFailureCount() { * string request_id = 5 [deprecated = true]; * * @deprecated google.cloud.retail.v2beta.ImportMetadata.request_id is deprecated. See - * google/cloud/retail/v2beta/import_config.proto;l=330 + * google/cloud/retail/v2beta/import_config.proto;l=336 * @return The requestId. */ @java.lang.Deprecated @@ -1320,7 +1320,7 @@ public java.lang.String getRequestId() { * string request_id = 5 [deprecated = true]; * * @deprecated google.cloud.retail.v2beta.ImportMetadata.request_id is deprecated. See - * google/cloud/retail/v2beta/import_config.proto;l=330 + * google/cloud/retail/v2beta/import_config.proto;l=336 * @return The bytes for requestId. */ @java.lang.Deprecated @@ -1345,7 +1345,7 @@ public com.google.protobuf.ByteString getRequestIdBytes() { * string request_id = 5 [deprecated = true]; * * @deprecated google.cloud.retail.v2beta.ImportMetadata.request_id is deprecated. See - * google/cloud/retail/v2beta/import_config.proto;l=330 + * google/cloud/retail/v2beta/import_config.proto;l=336 * @param value The requestId to set. * @return This builder for chaining. */ @@ -1369,7 +1369,7 @@ public Builder setRequestId(java.lang.String value) { * string request_id = 5 [deprecated = true]; * * @deprecated google.cloud.retail.v2beta.ImportMetadata.request_id is deprecated. See - * google/cloud/retail/v2beta/import_config.proto;l=330 + * google/cloud/retail/v2beta/import_config.proto;l=336 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1389,7 +1389,7 @@ public Builder clearRequestId() { * string request_id = 5 [deprecated = true]; * * @deprecated google.cloud.retail.v2beta.ImportMetadata.request_id is deprecated. See - * google/cloud/retail/v2beta/import_config.proto;l=330 + * google/cloud/retail/v2beta/import_config.proto;l=336 * @param value The bytes for requestId to set. * @return This builder for chaining. */ diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ImportMetadataOrBuilder.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ImportMetadataOrBuilder.java index 6e555154c5d9..c6c8c266a248 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ImportMetadataOrBuilder.java +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ImportMetadataOrBuilder.java @@ -133,7 +133,7 @@ public interface ImportMetadataOrBuilder * string request_id = 5 [deprecated = true]; * * @deprecated google.cloud.retail.v2beta.ImportMetadata.request_id is deprecated. See - * google/cloud/retail/v2beta/import_config.proto;l=330 + * google/cloud/retail/v2beta/import_config.proto;l=336 * @return The requestId. */ @java.lang.Deprecated @@ -148,7 +148,7 @@ public interface ImportMetadataOrBuilder * string request_id = 5 [deprecated = true]; * * @deprecated google.cloud.retail.v2beta.ImportMetadata.request_id is deprecated. See - * google/cloud/retail/v2beta/import_config.proto;l=330 + * google/cloud/retail/v2beta/import_config.proto;l=336 * @return The bytes for requestId. */ @java.lang.Deprecated diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ImportProductsRequest.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ImportProductsRequest.java index 342feb8b5cc6..7127b2a3405c 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ImportProductsRequest.java +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ImportProductsRequest.java @@ -465,7 +465,8 @@ public com.google.cloud.retail.v2beta.ImportErrorsConfigOrBuilder getErrorsConfi * *
    * Indicates which fields in the provided imported `products` to update. If
-   * not set, all fields are updated.
+   * not set, all fields are updated. If provided, only the existing product
+   * fields are updated. Missing products will not be created.
    * 
* * .google.protobuf.FieldMask update_mask = 4; @@ -481,7 +482,8 @@ public boolean hasUpdateMask() { * *
    * Indicates which fields in the provided imported `products` to update. If
-   * not set, all fields are updated.
+   * not set, all fields are updated. If provided, only the existing product
+   * fields are updated. Missing products will not be created.
    * 
* * .google.protobuf.FieldMask update_mask = 4; @@ -497,7 +499,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { * *
    * Indicates which fields in the provided imported `products` to update. If
-   * not set, all fields are updated.
+   * not set, all fields are updated. If provided, only the existing product
+   * fields are updated. Missing products will not be created.
    * 
* * .google.protobuf.FieldMask update_mask = 4; @@ -570,9 +573,14 @@ public int getReconciliationModeValue() { * Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`. It has * to be within the same project as * [ImportProductsRequest.parent][google.cloud.retail.v2beta.ImportProductsRequest.parent]. - * Make sure that `service-<project - * number>@gcp-sa-retail.iam.gserviceaccount.com` has the - * `pubsub.topics.publish` IAM permission on the topic. + * Make sure that both + * `cloud-retail-customer-data-access@system.gserviceaccount.com` and + * `service-<project number>@gcp-sa-retail.iam.gserviceaccount.com` + * have the `pubsub.topics.publish` IAM permission on the topic. + * + * Only supported when + * [ImportProductsRequest.reconciliation_mode][google.cloud.retail.v2beta.ImportProductsRequest.reconciliation_mode] + * is set to `FULL`. * * * string notification_pubsub_topic = 7; @@ -603,9 +611,14 @@ public java.lang.String getNotificationPubsubTopic() { * Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`. It has * to be within the same project as * [ImportProductsRequest.parent][google.cloud.retail.v2beta.ImportProductsRequest.parent]. - * Make sure that `service-<project - * number>@gcp-sa-retail.iam.gserviceaccount.com` has the - * `pubsub.topics.publish` IAM permission on the topic. + * Make sure that both + * `cloud-retail-customer-data-access@system.gserviceaccount.com` and + * `service-<project number>@gcp-sa-retail.iam.gserviceaccount.com` + * have the `pubsub.topics.publish` IAM permission on the topic. + * + * Only supported when + * [ImportProductsRequest.reconciliation_mode][google.cloud.retail.v2beta.ImportProductsRequest.reconciliation_mode] + * is set to `FULL`. * * * string notification_pubsub_topic = 7; @@ -1814,7 +1827,8 @@ public com.google.cloud.retail.v2beta.ImportErrorsConfigOrBuilder getErrorsConfi * *
      * Indicates which fields in the provided imported `products` to update. If
-     * not set, all fields are updated.
+     * not set, all fields are updated. If provided, only the existing product
+     * fields are updated. Missing products will not be created.
      * 
* * .google.protobuf.FieldMask update_mask = 4; @@ -1829,7 +1843,8 @@ public boolean hasUpdateMask() { * *
      * Indicates which fields in the provided imported `products` to update. If
-     * not set, all fields are updated.
+     * not set, all fields are updated. If provided, only the existing product
+     * fields are updated. Missing products will not be created.
      * 
* * .google.protobuf.FieldMask update_mask = 4; @@ -1850,7 +1865,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { * *
      * Indicates which fields in the provided imported `products` to update. If
-     * not set, all fields are updated.
+     * not set, all fields are updated. If provided, only the existing product
+     * fields are updated. Missing products will not be created.
      * 
* * .google.protobuf.FieldMask update_mask = 4; @@ -1873,7 +1889,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * *
      * Indicates which fields in the provided imported `products` to update. If
-     * not set, all fields are updated.
+     * not set, all fields are updated. If provided, only the existing product
+     * fields are updated. Missing products will not be created.
      * 
* * .google.protobuf.FieldMask update_mask = 4; @@ -1893,7 +1910,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * *
      * Indicates which fields in the provided imported `products` to update. If
-     * not set, all fields are updated.
+     * not set, all fields are updated. If provided, only the existing product
+     * fields are updated. Missing products will not be created.
      * 
* * .google.protobuf.FieldMask update_mask = 4; @@ -1921,7 +1939,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * *
      * Indicates which fields in the provided imported `products` to update. If
-     * not set, all fields are updated.
+     * not set, all fields are updated. If provided, only the existing product
+     * fields are updated. Missing products will not be created.
      * 
* * .google.protobuf.FieldMask update_mask = 4; @@ -1941,7 +1960,8 @@ public Builder clearUpdateMask() { * *
      * Indicates which fields in the provided imported `products` to update. If
-     * not set, all fields are updated.
+     * not set, all fields are updated. If provided, only the existing product
+     * fields are updated. Missing products will not be created.
      * 
* * .google.protobuf.FieldMask update_mask = 4; @@ -1956,7 +1976,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * *
      * Indicates which fields in the provided imported `products` to update. If
-     * not set, all fields are updated.
+     * not set, all fields are updated. If provided, only the existing product
+     * fields are updated. Missing products will not be created.
      * 
* * .google.protobuf.FieldMask update_mask = 4; @@ -1975,7 +1996,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * *
      * Indicates which fields in the provided imported `products` to update. If
-     * not set, all fields are updated.
+     * not set, all fields are updated. If provided, only the existing product
+     * fields are updated. Missing products will not be created.
      * 
* * .google.protobuf.FieldMask update_mask = 4; @@ -2125,9 +2147,14 @@ public Builder clearReconciliationMode() { * Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`. It has * to be within the same project as * [ImportProductsRequest.parent][google.cloud.retail.v2beta.ImportProductsRequest.parent]. - * Make sure that `service-<project - * number>@gcp-sa-retail.iam.gserviceaccount.com` has the - * `pubsub.topics.publish` IAM permission on the topic. + * Make sure that both + * `cloud-retail-customer-data-access@system.gserviceaccount.com` and + * `service-<project number>@gcp-sa-retail.iam.gserviceaccount.com` + * have the `pubsub.topics.publish` IAM permission on the topic. + * + * Only supported when + * [ImportProductsRequest.reconciliation_mode][google.cloud.retail.v2beta.ImportProductsRequest.reconciliation_mode] + * is set to `FULL`. * * * string notification_pubsub_topic = 7; @@ -2157,9 +2184,14 @@ public java.lang.String getNotificationPubsubTopic() { * Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`. It has * to be within the same project as * [ImportProductsRequest.parent][google.cloud.retail.v2beta.ImportProductsRequest.parent]. - * Make sure that `service-<project - * number>@gcp-sa-retail.iam.gserviceaccount.com` has the - * `pubsub.topics.publish` IAM permission on the topic. + * Make sure that both + * `cloud-retail-customer-data-access@system.gserviceaccount.com` and + * `service-<project number>@gcp-sa-retail.iam.gserviceaccount.com` + * have the `pubsub.topics.publish` IAM permission on the topic. + * + * Only supported when + * [ImportProductsRequest.reconciliation_mode][google.cloud.retail.v2beta.ImportProductsRequest.reconciliation_mode] + * is set to `FULL`. * * * string notification_pubsub_topic = 7; @@ -2189,9 +2221,14 @@ public com.google.protobuf.ByteString getNotificationPubsubTopicBytes() { * Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`. It has * to be within the same project as * [ImportProductsRequest.parent][google.cloud.retail.v2beta.ImportProductsRequest.parent]. - * Make sure that `service-<project - * number>@gcp-sa-retail.iam.gserviceaccount.com` has the - * `pubsub.topics.publish` IAM permission on the topic. + * Make sure that both + * `cloud-retail-customer-data-access@system.gserviceaccount.com` and + * `service-<project number>@gcp-sa-retail.iam.gserviceaccount.com` + * have the `pubsub.topics.publish` IAM permission on the topic. + * + * Only supported when + * [ImportProductsRequest.reconciliation_mode][google.cloud.retail.v2beta.ImportProductsRequest.reconciliation_mode] + * is set to `FULL`. * * * string notification_pubsub_topic = 7; @@ -2220,9 +2257,14 @@ public Builder setNotificationPubsubTopic(java.lang.String value) { * Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`. It has * to be within the same project as * [ImportProductsRequest.parent][google.cloud.retail.v2beta.ImportProductsRequest.parent]. - * Make sure that `service-<project - * number>@gcp-sa-retail.iam.gserviceaccount.com` has the - * `pubsub.topics.publish` IAM permission on the topic. + * Make sure that both + * `cloud-retail-customer-data-access@system.gserviceaccount.com` and + * `service-<project number>@gcp-sa-retail.iam.gserviceaccount.com` + * have the `pubsub.topics.publish` IAM permission on the topic. + * + * Only supported when + * [ImportProductsRequest.reconciliation_mode][google.cloud.retail.v2beta.ImportProductsRequest.reconciliation_mode] + * is set to `FULL`. * * * string notification_pubsub_topic = 7; @@ -2247,9 +2289,14 @@ public Builder clearNotificationPubsubTopic() { * Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`. It has * to be within the same project as * [ImportProductsRequest.parent][google.cloud.retail.v2beta.ImportProductsRequest.parent]. - * Make sure that `service-<project - * number>@gcp-sa-retail.iam.gserviceaccount.com` has the - * `pubsub.topics.publish` IAM permission on the topic. + * Make sure that both + * `cloud-retail-customer-data-access@system.gserviceaccount.com` and + * `service-<project number>@gcp-sa-retail.iam.gserviceaccount.com` + * have the `pubsub.topics.publish` IAM permission on the topic. + * + * Only supported when + * [ImportProductsRequest.reconciliation_mode][google.cloud.retail.v2beta.ImportProductsRequest.reconciliation_mode] + * is set to `FULL`. * * * string notification_pubsub_topic = 7; diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ImportProductsRequestOrBuilder.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ImportProductsRequestOrBuilder.java index 4c1a47f37c7f..7cc27060c7d0 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ImportProductsRequestOrBuilder.java +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ImportProductsRequestOrBuilder.java @@ -173,7 +173,8 @@ public interface ImportProductsRequestOrBuilder * *
    * Indicates which fields in the provided imported `products` to update. If
-   * not set, all fields are updated.
+   * not set, all fields are updated. If provided, only the existing product
+   * fields are updated. Missing products will not be created.
    * 
* * .google.protobuf.FieldMask update_mask = 4; @@ -186,7 +187,8 @@ public interface ImportProductsRequestOrBuilder * *
    * Indicates which fields in the provided imported `products` to update. If
-   * not set, all fields are updated.
+   * not set, all fields are updated. If provided, only the existing product
+   * fields are updated. Missing products will not be created.
    * 
* * .google.protobuf.FieldMask update_mask = 4; @@ -199,7 +201,8 @@ public interface ImportProductsRequestOrBuilder * *
    * Indicates which fields in the provided imported `products` to update. If
-   * not set, all fields are updated.
+   * not set, all fields are updated. If provided, only the existing product
+   * fields are updated. Missing products will not be created.
    * 
* * .google.protobuf.FieldMask update_mask = 4; @@ -251,9 +254,14 @@ public interface ImportProductsRequestOrBuilder * Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`. It has * to be within the same project as * [ImportProductsRequest.parent][google.cloud.retail.v2beta.ImportProductsRequest.parent]. - * Make sure that `service-<project - * number>@gcp-sa-retail.iam.gserviceaccount.com` has the - * `pubsub.topics.publish` IAM permission on the topic. + * Make sure that both + * `cloud-retail-customer-data-access@system.gserviceaccount.com` and + * `service-<project number>@gcp-sa-retail.iam.gserviceaccount.com` + * have the `pubsub.topics.publish` IAM permission on the topic. + * + * Only supported when + * [ImportProductsRequest.reconciliation_mode][google.cloud.retail.v2beta.ImportProductsRequest.reconciliation_mode] + * is set to `FULL`. * * * string notification_pubsub_topic = 7; @@ -273,9 +281,14 @@ public interface ImportProductsRequestOrBuilder * Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`. It has * to be within the same project as * [ImportProductsRequest.parent][google.cloud.retail.v2beta.ImportProductsRequest.parent]. - * Make sure that `service-<project - * number>@gcp-sa-retail.iam.gserviceaccount.com` has the - * `pubsub.topics.publish` IAM permission on the topic. + * Make sure that both + * `cloud-retail-customer-data-access@system.gserviceaccount.com` and + * `service-<project number>@gcp-sa-retail.iam.gserviceaccount.com` + * have the `pubsub.topics.publish` IAM permission on the topic. + * + * Only supported when + * [ImportProductsRequest.reconciliation_mode][google.cloud.retail.v2beta.ImportProductsRequest.reconciliation_mode] + * is set to `FULL`. * * * string notification_pubsub_topic = 7; diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/MerchantCenterLink.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/MerchantCenterLink.java index a20b6c5529a6..3e87a2b55a73 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/MerchantCenterLink.java +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/MerchantCenterLink.java @@ -24,8 +24,8 @@ * *
  * Represents a link between a Merchant Center account and a branch.
- * Once a link is established, products from the linked merchant center account
- * will be streamed to the linked branch.
+ * After a link is established, products from the linked Merchant Center account
+ * are streamed to the linked branch.
  * 
* * Protobuf type {@code google.cloud.retail.v2beta.MerchantCenterLink} @@ -75,7 +75,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The linked [Merchant center account
+   * Required. The linked [Merchant Center account
    * ID](https://developers.google.com/shopping-content/guides/accountstatuses).
    * The account must be a standalone account or a sub-account of a MCA.
    * 
@@ -102,7 +102,7 @@ public long getMerchantCenterAccountId() { * empty value will use the currently configured default branch. However, * changing the default branch later on won't change the linked branch here. * - * A single branch ID can only have one linked merchant center account ID. + * A single branch ID can only have one linked Merchant Center account ID. * * * string branch_id = 2; @@ -130,7 +130,7 @@ public java.lang.String getBranchId() { * empty value will use the currently configured default branch. However, * changing the default branch later on won't change the linked branch here. * - * A single branch ID can only have one linked merchant center account ID. + * A single branch ID can only have one linked Merchant Center account ID. * * * string branch_id = 2; @@ -666,8 +666,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * Represents a link between a Merchant Center account and a branch.
-   * Once a link is established, products from the linked merchant center account
-   * will be streamed to the linked branch.
+   * After a link is established, products from the linked Merchant Center account
+   * are streamed to the linked branch.
    * 
* * Protobuf type {@code google.cloud.retail.v2beta.MerchantCenterLink} @@ -978,7 +978,7 @@ public Builder mergeFrom( * * *
-     * Required. The linked [Merchant center account
+     * Required. The linked [Merchant Center account
      * ID](https://developers.google.com/shopping-content/guides/accountstatuses).
      * The account must be a standalone account or a sub-account of a MCA.
      * 
@@ -995,7 +995,7 @@ public long getMerchantCenterAccountId() { * * *
-     * Required. The linked [Merchant center account
+     * Required. The linked [Merchant Center account
      * ID](https://developers.google.com/shopping-content/guides/accountstatuses).
      * The account must be a standalone account or a sub-account of a MCA.
      * 
@@ -1016,7 +1016,7 @@ public Builder setMerchantCenterAccountId(long value) { * * *
-     * Required. The linked [Merchant center account
+     * Required. The linked [Merchant Center account
      * ID](https://developers.google.com/shopping-content/guides/accountstatuses).
      * The account must be a standalone account or a sub-account of a MCA.
      * 
@@ -1042,7 +1042,7 @@ public Builder clearMerchantCenterAccountId() { * empty value will use the currently configured default branch. However, * changing the default branch later on won't change the linked branch here. * - * A single branch ID can only have one linked merchant center account ID. + * A single branch ID can only have one linked Merchant Center account ID. * * * string branch_id = 2; @@ -1069,7 +1069,7 @@ public java.lang.String getBranchId() { * empty value will use the currently configured default branch. However, * changing the default branch later on won't change the linked branch here. * - * A single branch ID can only have one linked merchant center account ID. + * A single branch ID can only have one linked Merchant Center account ID. * * * string branch_id = 2; @@ -1096,7 +1096,7 @@ public com.google.protobuf.ByteString getBranchIdBytes() { * empty value will use the currently configured default branch. However, * changing the default branch later on won't change the linked branch here. * - * A single branch ID can only have one linked merchant center account ID. + * A single branch ID can only have one linked Merchant Center account ID. * * * string branch_id = 2; @@ -1122,7 +1122,7 @@ public Builder setBranchId(java.lang.String value) { * empty value will use the currently configured default branch. However, * changing the default branch later on won't change the linked branch here. * - * A single branch ID can only have one linked merchant center account ID. + * A single branch ID can only have one linked Merchant Center account ID. * * * string branch_id = 2; @@ -1144,7 +1144,7 @@ public Builder clearBranchId() { * empty value will use the currently configured default branch. However, * changing the default branch later on won't change the linked branch here. * - * A single branch ID can only have one linked merchant center account ID. + * A single branch ID can only have one linked Merchant Center account ID. * * * string branch_id = 2; diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/MerchantCenterLinkOrBuilder.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/MerchantCenterLinkOrBuilder.java index c53e9ce60043..30237e5ad4d1 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/MerchantCenterLinkOrBuilder.java +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/MerchantCenterLinkOrBuilder.java @@ -28,7 +28,7 @@ public interface MerchantCenterLinkOrBuilder * * *
-   * Required. The linked [Merchant center account
+   * Required. The linked [Merchant Center account
    * ID](https://developers.google.com/shopping-content/guides/accountstatuses).
    * The account must be a standalone account or a sub-account of a MCA.
    * 
@@ -48,7 +48,7 @@ public interface MerchantCenterLinkOrBuilder * empty value will use the currently configured default branch. However, * changing the default branch later on won't change the linked branch here. * - * A single branch ID can only have one linked merchant center account ID. + * A single branch ID can only have one linked Merchant Center account ID. * * * string branch_id = 2; @@ -65,7 +65,7 @@ public interface MerchantCenterLinkOrBuilder * empty value will use the currently configured default branch. However, * changing the default branch later on won't change the linked branch here. * - * A single branch ID can only have one linked merchant center account ID. + * A single branch ID can only have one linked Merchant Center account ID. * * * string branch_id = 2; diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/Model.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/Model.java index 72138a10505b..7e337bb447d6 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/Model.java +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/Model.java @@ -774,6 +774,174 @@ private DataState(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.retail.v2beta.Model.DataState) } + /** + * + * + *
+   * Use single or multiple context products for recommendations.
+   * 
+ * + * Protobuf enum {@code google.cloud.retail.v2beta.Model.ContextProductsType} + */ + public enum ContextProductsType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified default value, should never be explicitly set.
+     * Defaults to
+     * [MULTIPLE_CONTEXT_PRODUCTS][google.cloud.retail.v2beta.Model.ContextProductsType.MULTIPLE_CONTEXT_PRODUCTS].
+     * 
+ * + * CONTEXT_PRODUCTS_TYPE_UNSPECIFIED = 0; + */ + CONTEXT_PRODUCTS_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Use only a single product as context for the recommendation. Typically
+     * used on pages like add-to-cart or product details.
+     * 
+ * + * SINGLE_CONTEXT_PRODUCT = 1; + */ + SINGLE_CONTEXT_PRODUCT(1), + /** + * + * + *
+     * Use one or multiple products as context for the recommendation. Typically
+     * used on shopping cart pages.
+     * 
+ * + * MULTIPLE_CONTEXT_PRODUCTS = 2; + */ + MULTIPLE_CONTEXT_PRODUCTS(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified default value, should never be explicitly set.
+     * Defaults to
+     * [MULTIPLE_CONTEXT_PRODUCTS][google.cloud.retail.v2beta.Model.ContextProductsType.MULTIPLE_CONTEXT_PRODUCTS].
+     * 
+ * + * CONTEXT_PRODUCTS_TYPE_UNSPECIFIED = 0; + */ + public static final int CONTEXT_PRODUCTS_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Use only a single product as context for the recommendation. Typically
+     * used on pages like add-to-cart or product details.
+     * 
+ * + * SINGLE_CONTEXT_PRODUCT = 1; + */ + public static final int SINGLE_CONTEXT_PRODUCT_VALUE = 1; + /** + * + * + *
+     * Use one or multiple products as context for the recommendation. Typically
+     * used on shopping cart pages.
+     * 
+ * + * MULTIPLE_CONTEXT_PRODUCTS = 2; + */ + public static final int MULTIPLE_CONTEXT_PRODUCTS_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ContextProductsType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ContextProductsType forNumber(int value) { + switch (value) { + case 0: + return CONTEXT_PRODUCTS_TYPE_UNSPECIFIED; + case 1: + return SINGLE_CONTEXT_PRODUCT; + case 2: + return MULTIPLE_CONTEXT_PRODUCTS; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ContextProductsType findValueByNumber(int number) { + return ContextProductsType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.retail.v2beta.Model.getDescriptor().getEnumTypes().get(4); + } + + private static final ContextProductsType[] VALUES = values(); + + public static ContextProductsType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ContextProductsType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.retail.v2beta.Model.ContextProductsType) + } + public interface ServingConfigListOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2beta.Model.ServingConfigList) @@ -1401,112 +1569,1718 @@ public com.google.protobuf.ByteString getServingConfigIdsBytes(int index) { * `PAGE_OPTIMIZATION`. * * - * repeated string serving_config_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string serving_config_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The servingConfigIds to set. + * @return This builder for chaining. + */ + public Builder setServingConfigIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureServingConfigIdsIsMutable(); + servingConfigIds_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. A set of valid serving configs that may be used for
+       * `PAGE_OPTIMIZATION`.
+       * 
+ * + * repeated string serving_config_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The servingConfigIds to add. + * @return This builder for chaining. + */ + public Builder addServingConfigIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureServingConfigIdsIsMutable(); + servingConfigIds_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. A set of valid serving configs that may be used for
+       * `PAGE_OPTIMIZATION`.
+       * 
+ * + * repeated string serving_config_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The servingConfigIds to add. + * @return This builder for chaining. + */ + public Builder addAllServingConfigIds(java.lang.Iterable values) { + ensureServingConfigIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, servingConfigIds_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. A set of valid serving configs that may be used for
+       * `PAGE_OPTIMIZATION`.
+       * 
+ * + * repeated string serving_config_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearServingConfigIds() { + servingConfigIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. A set of valid serving configs that may be used for
+       * `PAGE_OPTIMIZATION`.
+       * 
+ * + * repeated string serving_config_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the servingConfigIds to add. + * @return This builder for chaining. + */ + public Builder addServingConfigIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureServingConfigIdsIsMutable(); + servingConfigIds_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2beta.Model.ServingConfigList) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2beta.Model.ServingConfigList) + private static final com.google.cloud.retail.v2beta.Model.ServingConfigList DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.retail.v2beta.Model.ServingConfigList(); + } + + public static com.google.cloud.retail.v2beta.Model.ServingConfigList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServingConfigList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.Model.ServingConfigList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface FrequentlyBoughtTogetherFeaturesConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. Specifies the context of the model when it is used in predict
+     * requests. Can only be set for the `frequently-bought-together` type. If
+     * it isn't specified, it defaults to
+     * [MULTIPLE_CONTEXT_PRODUCTS][google.cloud.retail.v2beta.Model.ContextProductsType.MULTIPLE_CONTEXT_PRODUCTS].
+     * 
+ * + * + * .google.cloud.retail.v2beta.Model.ContextProductsType context_products_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for contextProductsType. + */ + int getContextProductsTypeValue(); + /** + * + * + *
+     * Optional. Specifies the context of the model when it is used in predict
+     * requests. Can only be set for the `frequently-bought-together` type. If
+     * it isn't specified, it defaults to
+     * [MULTIPLE_CONTEXT_PRODUCTS][google.cloud.retail.v2beta.Model.ContextProductsType.MULTIPLE_CONTEXT_PRODUCTS].
+     * 
+ * + * + * .google.cloud.retail.v2beta.Model.ContextProductsType context_products_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The contextProductsType. + */ + com.google.cloud.retail.v2beta.Model.ContextProductsType getContextProductsType(); + } + /** + * + * + *
+   * Additional configs for the frequently-bought-together model type.
+   * 
+ * + * Protobuf type {@code google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig} + */ + public static final class FrequentlyBoughtTogetherFeaturesConfig + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig) + FrequentlyBoughtTogetherFeaturesConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use FrequentlyBoughtTogetherFeaturesConfig.newBuilder() to construct. + private FrequentlyBoughtTogetherFeaturesConfig( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FrequentlyBoughtTogetherFeaturesConfig() { + contextProductsType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FrequentlyBoughtTogetherFeaturesConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2beta.ModelProto + .internal_static_google_cloud_retail_v2beta_Model_FrequentlyBoughtTogetherFeaturesConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2beta.ModelProto + .internal_static_google_cloud_retail_v2beta_Model_FrequentlyBoughtTogetherFeaturesConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig.class, + com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig.Builder + .class); + } + + public static final int CONTEXT_PRODUCTS_TYPE_FIELD_NUMBER = 2; + private int contextProductsType_ = 0; + /** + * + * + *
+     * Optional. Specifies the context of the model when it is used in predict
+     * requests. Can only be set for the `frequently-bought-together` type. If
+     * it isn't specified, it defaults to
+     * [MULTIPLE_CONTEXT_PRODUCTS][google.cloud.retail.v2beta.Model.ContextProductsType.MULTIPLE_CONTEXT_PRODUCTS].
+     * 
+ * + * + * .google.cloud.retail.v2beta.Model.ContextProductsType context_products_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for contextProductsType. + */ + @java.lang.Override + public int getContextProductsTypeValue() { + return contextProductsType_; + } + /** + * + * + *
+     * Optional. Specifies the context of the model when it is used in predict
+     * requests. Can only be set for the `frequently-bought-together` type. If
+     * it isn't specified, it defaults to
+     * [MULTIPLE_CONTEXT_PRODUCTS][google.cloud.retail.v2beta.Model.ContextProductsType.MULTIPLE_CONTEXT_PRODUCTS].
+     * 
+ * + * + * .google.cloud.retail.v2beta.Model.ContextProductsType context_products_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The contextProductsType. + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.Model.ContextProductsType getContextProductsType() { + com.google.cloud.retail.v2beta.Model.ContextProductsType result = + com.google.cloud.retail.v2beta.Model.ContextProductsType.forNumber(contextProductsType_); + return result == null + ? com.google.cloud.retail.v2beta.Model.ContextProductsType.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (contextProductsType_ + != com.google.cloud.retail.v2beta.Model.ContextProductsType + .CONTEXT_PRODUCTS_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, contextProductsType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (contextProductsType_ + != com.google.cloud.retail.v2beta.Model.ContextProductsType + .CONTEXT_PRODUCTS_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, contextProductsType_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig)) { + return super.equals(obj); + } + com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig other = + (com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig) obj; + + if (contextProductsType_ != other.contextProductsType_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONTEXT_PRODUCTS_TYPE_FIELD_NUMBER; + hash = (53 * hash) + contextProductsType_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Additional configs for the frequently-bought-together model type.
+     * 
+ * + * Protobuf type {@code google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig) + com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2beta.ModelProto + .internal_static_google_cloud_retail_v2beta_Model_FrequentlyBoughtTogetherFeaturesConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2beta.ModelProto + .internal_static_google_cloud_retail_v2beta_Model_FrequentlyBoughtTogetherFeaturesConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig.class, + com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig.Builder + .class); + } + + // Construct using + // com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + contextProductsType_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2beta.ModelProto + .internal_static_google_cloud_retail_v2beta_Model_FrequentlyBoughtTogetherFeaturesConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig + getDefaultInstanceForType() { + return com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig build() { + com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig + buildPartial() { + com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig result = + new com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.contextProductsType_ = contextProductsType_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig) { + return mergeFrom( + (com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig other) { + if (other + == com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig + .getDefaultInstance()) return this; + if (other.contextProductsType_ != 0) { + setContextProductsTypeValue(other.getContextProductsTypeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 16: + { + contextProductsType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int contextProductsType_ = 0; + /** + * + * + *
+       * Optional. Specifies the context of the model when it is used in predict
+       * requests. Can only be set for the `frequently-bought-together` type. If
+       * it isn't specified, it defaults to
+       * [MULTIPLE_CONTEXT_PRODUCTS][google.cloud.retail.v2beta.Model.ContextProductsType.MULTIPLE_CONTEXT_PRODUCTS].
+       * 
+ * + * + * .google.cloud.retail.v2beta.Model.ContextProductsType context_products_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for contextProductsType. + */ + @java.lang.Override + public int getContextProductsTypeValue() { + return contextProductsType_; + } + /** + * + * + *
+       * Optional. Specifies the context of the model when it is used in predict
+       * requests. Can only be set for the `frequently-bought-together` type. If
+       * it isn't specified, it defaults to
+       * [MULTIPLE_CONTEXT_PRODUCTS][google.cloud.retail.v2beta.Model.ContextProductsType.MULTIPLE_CONTEXT_PRODUCTS].
+       * 
+ * + * + * .google.cloud.retail.v2beta.Model.ContextProductsType context_products_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for contextProductsType to set. + * @return This builder for chaining. + */ + public Builder setContextProductsTypeValue(int value) { + contextProductsType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Specifies the context of the model when it is used in predict
+       * requests. Can only be set for the `frequently-bought-together` type. If
+       * it isn't specified, it defaults to
+       * [MULTIPLE_CONTEXT_PRODUCTS][google.cloud.retail.v2beta.Model.ContextProductsType.MULTIPLE_CONTEXT_PRODUCTS].
+       * 
+ * + * + * .google.cloud.retail.v2beta.Model.ContextProductsType context_products_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The contextProductsType. + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.Model.ContextProductsType getContextProductsType() { + com.google.cloud.retail.v2beta.Model.ContextProductsType result = + com.google.cloud.retail.v2beta.Model.ContextProductsType.forNumber( + contextProductsType_); + return result == null + ? com.google.cloud.retail.v2beta.Model.ContextProductsType.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Optional. Specifies the context of the model when it is used in predict
+       * requests. Can only be set for the `frequently-bought-together` type. If
+       * it isn't specified, it defaults to
+       * [MULTIPLE_CONTEXT_PRODUCTS][google.cloud.retail.v2beta.Model.ContextProductsType.MULTIPLE_CONTEXT_PRODUCTS].
+       * 
+ * + * + * .google.cloud.retail.v2beta.Model.ContextProductsType context_products_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The contextProductsType to set. + * @return This builder for chaining. + */ + public Builder setContextProductsType( + com.google.cloud.retail.v2beta.Model.ContextProductsType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + contextProductsType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Specifies the context of the model when it is used in predict
+       * requests. Can only be set for the `frequently-bought-together` type. If
+       * it isn't specified, it defaults to
+       * [MULTIPLE_CONTEXT_PRODUCTS][google.cloud.retail.v2beta.Model.ContextProductsType.MULTIPLE_CONTEXT_PRODUCTS].
+       * 
+ * + * + * .google.cloud.retail.v2beta.Model.ContextProductsType context_products_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearContextProductsType() { + bitField0_ = (bitField0_ & ~0x00000001); + contextProductsType_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig) + private static final com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig(); + } + + public static com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FrequentlyBoughtTogetherFeaturesConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ModelFeaturesConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2beta.Model.ModelFeaturesConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Additional configs for frequently-bought-together models.
+     * 
+ * + * + * .google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig frequently_bought_together_config = 1; + * + * + * @return Whether the frequentlyBoughtTogetherConfig field is set. + */ + boolean hasFrequentlyBoughtTogetherConfig(); + /** + * + * + *
+     * Additional configs for frequently-bought-together models.
+     * 
+ * + * + * .google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig frequently_bought_together_config = 1; + * + * + * @return The frequentlyBoughtTogetherConfig. + */ + com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig + getFrequentlyBoughtTogetherConfig(); + /** + * + * + *
+     * Additional configs for frequently-bought-together models.
+     * 
+ * + * + * .google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig frequently_bought_together_config = 1; + * + */ + com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfigOrBuilder + getFrequentlyBoughtTogetherConfigOrBuilder(); + + com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig.TypeDedicatedConfigCase + getTypeDedicatedConfigCase(); + } + /** + * + * + *
+   * Additional model features config.
+   * 
+ * + * Protobuf type {@code google.cloud.retail.v2beta.Model.ModelFeaturesConfig} + */ + public static final class ModelFeaturesConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2beta.Model.ModelFeaturesConfig) + ModelFeaturesConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ModelFeaturesConfig.newBuilder() to construct. + private ModelFeaturesConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ModelFeaturesConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ModelFeaturesConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2beta.ModelProto + .internal_static_google_cloud_retail_v2beta_Model_ModelFeaturesConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2beta.ModelProto + .internal_static_google_cloud_retail_v2beta_Model_ModelFeaturesConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig.class, + com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig.Builder.class); + } + + private int typeDedicatedConfigCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object typeDedicatedConfig_; + + public enum TypeDedicatedConfigCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + FREQUENTLY_BOUGHT_TOGETHER_CONFIG(1), + TYPEDEDICATEDCONFIG_NOT_SET(0); + private final int value; + + private TypeDedicatedConfigCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TypeDedicatedConfigCase valueOf(int value) { + return forNumber(value); + } + + public static TypeDedicatedConfigCase forNumber(int value) { + switch (value) { + case 1: + return FREQUENTLY_BOUGHT_TOGETHER_CONFIG; + case 0: + return TYPEDEDICATEDCONFIG_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TypeDedicatedConfigCase getTypeDedicatedConfigCase() { + return TypeDedicatedConfigCase.forNumber(typeDedicatedConfigCase_); + } + + public static final int FREQUENTLY_BOUGHT_TOGETHER_CONFIG_FIELD_NUMBER = 1; + /** + * + * + *
+     * Additional configs for frequently-bought-together models.
+     * 
+ * + * + * .google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig frequently_bought_together_config = 1; + * + * + * @return Whether the frequentlyBoughtTogetherConfig field is set. + */ + @java.lang.Override + public boolean hasFrequentlyBoughtTogetherConfig() { + return typeDedicatedConfigCase_ == 1; + } + /** + * + * + *
+     * Additional configs for frequently-bought-together models.
+     * 
+ * + * + * .google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig frequently_bought_together_config = 1; + * + * + * @return The frequentlyBoughtTogetherConfig. + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig + getFrequentlyBoughtTogetherConfig() { + if (typeDedicatedConfigCase_ == 1) { + return (com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig) + typeDedicatedConfig_; + } + return com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig + .getDefaultInstance(); + } + /** + * + * + *
+     * Additional configs for frequently-bought-together models.
+     * 
+ * + * + * .google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig frequently_bought_together_config = 1; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfigOrBuilder + getFrequentlyBoughtTogetherConfigOrBuilder() { + if (typeDedicatedConfigCase_ == 1) { + return (com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig) + typeDedicatedConfig_; + } + return com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig + .getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (typeDedicatedConfigCase_ == 1) { + output.writeMessage( + 1, + (com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig) + typeDedicatedConfig_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (typeDedicatedConfigCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig) + typeDedicatedConfig_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig)) { + return super.equals(obj); + } + com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig other = + (com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig) obj; + + if (!getTypeDedicatedConfigCase().equals(other.getTypeDedicatedConfigCase())) return false; + switch (typeDedicatedConfigCase_) { + case 1: + if (!getFrequentlyBoughtTogetherConfig() + .equals(other.getFrequentlyBoughtTogetherConfig())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (typeDedicatedConfigCase_) { + case 1: + hash = (37 * hash) + FREQUENTLY_BOUGHT_TOGETHER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getFrequentlyBoughtTogetherConfig().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Additional model features config.
+     * 
+ * + * Protobuf type {@code google.cloud.retail.v2beta.Model.ModelFeaturesConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2beta.Model.ModelFeaturesConfig) + com.google.cloud.retail.v2beta.Model.ModelFeaturesConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2beta.ModelProto + .internal_static_google_cloud_retail_v2beta_Model_ModelFeaturesConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2beta.ModelProto + .internal_static_google_cloud_retail_v2beta_Model_ModelFeaturesConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig.class, + com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig.Builder.class); + } + + // Construct using com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (frequentlyBoughtTogetherConfigBuilder_ != null) { + frequentlyBoughtTogetherConfigBuilder_.clear(); + } + typeDedicatedConfigCase_ = 0; + typeDedicatedConfig_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2beta.ModelProto + .internal_static_google_cloud_retail_v2beta_Model_ModelFeaturesConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig getDefaultInstanceForType() { + return com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig build() { + com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig buildPartial() { + com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig result = + new com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig result) { + result.typeDedicatedConfigCase_ = typeDedicatedConfigCase_; + result.typeDedicatedConfig_ = this.typeDedicatedConfig_; + if (typeDedicatedConfigCase_ == 1 && frequentlyBoughtTogetherConfigBuilder_ != null) { + result.typeDedicatedConfig_ = frequentlyBoughtTogetherConfigBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig) { + return mergeFrom((com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig other) { + if (other == com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig.getDefaultInstance()) + return this; + switch (other.getTypeDedicatedConfigCase()) { + case FREQUENTLY_BOUGHT_TOGETHER_CONFIG: + { + mergeFrequentlyBoughtTogetherConfig(other.getFrequentlyBoughtTogetherConfig()); + break; + } + case TYPEDEDICATEDCONFIG_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getFrequentlyBoughtTogetherConfigFieldBuilder().getBuilder(), + extensionRegistry); + typeDedicatedConfigCase_ = 1; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int typeDedicatedConfigCase_ = 0; + private java.lang.Object typeDedicatedConfig_; + + public TypeDedicatedConfigCase getTypeDedicatedConfigCase() { + return TypeDedicatedConfigCase.forNumber(typeDedicatedConfigCase_); + } + + public Builder clearTypeDedicatedConfig() { + typeDedicatedConfigCase_ = 0; + typeDedicatedConfig_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig, + com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig.Builder, + com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfigOrBuilder> + frequentlyBoughtTogetherConfigBuilder_; + /** + * + * + *
+       * Additional configs for frequently-bought-together models.
+       * 
+ * + * + * .google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig frequently_bought_together_config = 1; + * + * + * @return Whether the frequentlyBoughtTogetherConfig field is set. + */ + @java.lang.Override + public boolean hasFrequentlyBoughtTogetherConfig() { + return typeDedicatedConfigCase_ == 1; + } + /** + * + * + *
+       * Additional configs for frequently-bought-together models.
+       * 
+ * + * + * .google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig frequently_bought_together_config = 1; + * + * + * @return The frequentlyBoughtTogetherConfig. + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig + getFrequentlyBoughtTogetherConfig() { + if (frequentlyBoughtTogetherConfigBuilder_ == null) { + if (typeDedicatedConfigCase_ == 1) { + return (com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig) + typeDedicatedConfig_; + } + return com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig + .getDefaultInstance(); + } else { + if (typeDedicatedConfigCase_ == 1) { + return frequentlyBoughtTogetherConfigBuilder_.getMessage(); + } + return com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig + .getDefaultInstance(); + } + } + /** + * + * + *
+       * Additional configs for frequently-bought-together models.
+       * 
+ * + * + * .google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig frequently_bought_together_config = 1; + * + */ + public Builder setFrequentlyBoughtTogetherConfig( + com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig value) { + if (frequentlyBoughtTogetherConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + typeDedicatedConfig_ = value; + onChanged(); + } else { + frequentlyBoughtTogetherConfigBuilder_.setMessage(value); + } + typeDedicatedConfigCase_ = 1; + return this; + } + /** + * + * + *
+       * Additional configs for frequently-bought-together models.
+       * 
+ * + * + * .google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig frequently_bought_together_config = 1; + * + */ + public Builder setFrequentlyBoughtTogetherConfig( + com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig.Builder + builderForValue) { + if (frequentlyBoughtTogetherConfigBuilder_ == null) { + typeDedicatedConfig_ = builderForValue.build(); + onChanged(); + } else { + frequentlyBoughtTogetherConfigBuilder_.setMessage(builderForValue.build()); + } + typeDedicatedConfigCase_ = 1; + return this; + } + /** + * + * + *
+       * Additional configs for frequently-bought-together models.
+       * 
+ * + * + * .google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig frequently_bought_together_config = 1; * - * - * @param index The index to set the value at. - * @param value The servingConfigIds to set. - * @return This builder for chaining. */ - public Builder setServingConfigIds(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder mergeFrequentlyBoughtTogetherConfig( + com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig value) { + if (frequentlyBoughtTogetherConfigBuilder_ == null) { + if (typeDedicatedConfigCase_ == 1 + && typeDedicatedConfig_ + != com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig + .getDefaultInstance()) { + typeDedicatedConfig_ = + com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig + .newBuilder( + (com.google.cloud.retail.v2beta.Model + .FrequentlyBoughtTogetherFeaturesConfig) + typeDedicatedConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + typeDedicatedConfig_ = value; + } + onChanged(); + } else { + if (typeDedicatedConfigCase_ == 1) { + frequentlyBoughtTogetherConfigBuilder_.mergeFrom(value); + } else { + frequentlyBoughtTogetherConfigBuilder_.setMessage(value); + } } - ensureServingConfigIdsIsMutable(); - servingConfigIds_.set(index, value); - bitField0_ |= 0x00000001; - onChanged(); + typeDedicatedConfigCase_ = 1; return this; } /** * * *
-       * Optional. A set of valid serving configs that may be used for
-       * `PAGE_OPTIMIZATION`.
+       * Additional configs for frequently-bought-together models.
        * 
* - * repeated string serving_config_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig frequently_bought_together_config = 1; * - * - * @param value The servingConfigIds to add. - * @return This builder for chaining. */ - public Builder addServingConfigIds(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearFrequentlyBoughtTogetherConfig() { + if (frequentlyBoughtTogetherConfigBuilder_ == null) { + if (typeDedicatedConfigCase_ == 1) { + typeDedicatedConfigCase_ = 0; + typeDedicatedConfig_ = null; + onChanged(); + } + } else { + if (typeDedicatedConfigCase_ == 1) { + typeDedicatedConfigCase_ = 0; + typeDedicatedConfig_ = null; + } + frequentlyBoughtTogetherConfigBuilder_.clear(); } - ensureServingConfigIdsIsMutable(); - servingConfigIds_.add(value); - bitField0_ |= 0x00000001; - onChanged(); return this; } /** * * *
-       * Optional. A set of valid serving configs that may be used for
-       * `PAGE_OPTIMIZATION`.
+       * Additional configs for frequently-bought-together models.
        * 
* - * repeated string serving_config_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig frequently_bought_together_config = 1; * - * - * @param values The servingConfigIds to add. - * @return This builder for chaining. */ - public Builder addAllServingConfigIds(java.lang.Iterable values) { - ensureServingConfigIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, servingConfigIds_); - bitField0_ |= 0x00000001; - onChanged(); - return this; + public com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig.Builder + getFrequentlyBoughtTogetherConfigBuilder() { + return getFrequentlyBoughtTogetherConfigFieldBuilder().getBuilder(); } /** * * *
-       * Optional. A set of valid serving configs that may be used for
-       * `PAGE_OPTIMIZATION`.
+       * Additional configs for frequently-bought-together models.
        * 
* - * repeated string serving_config_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig frequently_bought_together_config = 1; * - * - * @return This builder for chaining. */ - public Builder clearServingConfigIds() { - servingConfigIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; - onChanged(); - return this; + @java.lang.Override + public com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfigOrBuilder + getFrequentlyBoughtTogetherConfigOrBuilder() { + if ((typeDedicatedConfigCase_ == 1) && (frequentlyBoughtTogetherConfigBuilder_ != null)) { + return frequentlyBoughtTogetherConfigBuilder_.getMessageOrBuilder(); + } else { + if (typeDedicatedConfigCase_ == 1) { + return (com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig) + typeDedicatedConfig_; + } + return com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig + .getDefaultInstance(); + } } /** * * *
-       * Optional. A set of valid serving configs that may be used for
-       * `PAGE_OPTIMIZATION`.
+       * Additional configs for frequently-bought-together models.
        * 
* - * repeated string serving_config_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig frequently_bought_together_config = 1; * - * - * @param value The bytes of the servingConfigIds to add. - * @return This builder for chaining. */ - public Builder addServingConfigIdsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig, + com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig.Builder, + com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfigOrBuilder> + getFrequentlyBoughtTogetherConfigFieldBuilder() { + if (frequentlyBoughtTogetherConfigBuilder_ == null) { + if (!(typeDedicatedConfigCase_ == 1)) { + typeDedicatedConfig_ = + com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig + .getDefaultInstance(); + } + frequentlyBoughtTogetherConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig, + com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig + .Builder, + com.google.cloud.retail.v2beta.Model + .FrequentlyBoughtTogetherFeaturesConfigOrBuilder>( + (com.google.cloud.retail.v2beta.Model.FrequentlyBoughtTogetherFeaturesConfig) + typeDedicatedConfig_, + getParentForChildren(), + isClean()); + typeDedicatedConfig_ = null; } - checkByteStringIsUtf8(value); - ensureServingConfigIdsIsMutable(); - servingConfigIds_.add(value); - bitField0_ |= 0x00000001; + typeDedicatedConfigCase_ = 1; onChanged(); - return this; + return frequentlyBoughtTogetherConfigBuilder_; } @java.lang.Override @@ -1521,24 +3295,24 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2beta.Model.ServingConfigList) + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2beta.Model.ModelFeaturesConfig) } - // @@protoc_insertion_point(class_scope:google.cloud.retail.v2beta.Model.ServingConfigList) - private static final com.google.cloud.retail.v2beta.Model.ServingConfigList DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2beta.Model.ModelFeaturesConfig) + private static final com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.retail.v2beta.Model.ServingConfigList(); + DEFAULT_INSTANCE = new com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig(); } - public static com.google.cloud.retail.v2beta.Model.ServingConfigList getDefaultInstance() { + public static com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public ServingConfigList parsePartialFrom( + public ModelFeaturesConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1558,17 +3332,17 @@ public ServingConfigList parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.retail.v2beta.Model.ServingConfigList getDefaultInstanceForType() { + public com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } @@ -2415,6 +4189,63 @@ public com.google.cloud.retail.v2beta.Model.ServingConfigList getServingConfigLi return servingConfigLists_.get(index); } + public static final int MODEL_FEATURES_CONFIG_FIELD_NUMBER = 22; + private com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig modelFeaturesConfig_; + /** + * + * + *
+   * Optional. Additional model features config.
+   * 
+ * + * + * .google.cloud.retail.v2beta.Model.ModelFeaturesConfig model_features_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the modelFeaturesConfig field is set. + */ + @java.lang.Override + public boolean hasModelFeaturesConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+   * Optional. Additional model features config.
+   * 
+ * + * + * .google.cloud.retail.v2beta.Model.ModelFeaturesConfig model_features_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modelFeaturesConfig. + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig getModelFeaturesConfig() { + return modelFeaturesConfig_ == null + ? com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig.getDefaultInstance() + : modelFeaturesConfig_; + } + /** + * + * + *
+   * Optional. Additional model features config.
+   * 
+ * + * + * .google.cloud.retail.v2beta.Model.ModelFeaturesConfig model_features_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.Model.ModelFeaturesConfigOrBuilder + getModelFeaturesConfigOrBuilder() { + return modelFeaturesConfig_ == null + ? com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig.getDefaultInstance() + : modelFeaturesConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2482,6 +4313,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < servingConfigLists_.size(); i++) { output.writeMessage(19, servingConfigLists_.get(i)); } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(22, getModelFeaturesConfig()); + } getUnknownFields().writeTo(output); } @@ -2545,6 +4379,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, servingConfigLists_.get(i)); } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(22, getModelFeaturesConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2583,6 +4421,10 @@ public boolean equals(final java.lang.Object obj) { if (dataState_ != other.dataState_) return false; if (filteringOption_ != other.filteringOption_) return false; if (!getServingConfigListsList().equals(other.getServingConfigListsList())) return false; + if (hasModelFeaturesConfig() != other.hasModelFeaturesConfig()) return false; + if (hasModelFeaturesConfig()) { + if (!getModelFeaturesConfig().equals(other.getModelFeaturesConfig())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2630,6 +4472,10 @@ public int hashCode() { hash = (37 * hash) + SERVING_CONFIG_LISTS_FIELD_NUMBER; hash = (53 * hash) + getServingConfigListsList().hashCode(); } + if (hasModelFeaturesConfig()) { + hash = (37 * hash) + MODEL_FEATURES_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getModelFeaturesConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2777,6 +4623,7 @@ private void maybeForceBuilderInitialization() { getUpdateTimeFieldBuilder(); getLastTuneTimeFieldBuilder(); getServingConfigListsFieldBuilder(); + getModelFeaturesConfigFieldBuilder(); } } @@ -2816,6 +4663,11 @@ public Builder clear() { servingConfigListsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00002000); + modelFeaturesConfig_ = null; + if (modelFeaturesConfigBuilder_ != null) { + modelFeaturesConfigBuilder_.dispose(); + modelFeaturesConfigBuilder_ = null; + } return this; } @@ -2908,6 +4760,13 @@ private void buildPartial0(com.google.cloud.retail.v2beta.Model result) { if (((from_bitField0_ & 0x00001000) != 0)) { result.filteringOption_ = filteringOption_; } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.modelFeaturesConfig_ = + modelFeaturesConfigBuilder_ == null + ? modelFeaturesConfig_ + : modelFeaturesConfigBuilder_.build(); + to_bitField0_ |= 0x00000008; + } result.bitField0_ |= to_bitField0_; } @@ -3032,6 +4891,9 @@ public Builder mergeFrom(com.google.cloud.retail.v2beta.Model other) { } } } + if (other.hasModelFeaturesConfig()) { + mergeModelFeaturesConfig(other.getModelFeaturesConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3150,6 +5012,13 @@ public Builder mergeFrom( } break; } // case 154 + case 178: + { + input.readMessage( + getModelFeaturesConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00004000; + break; + } // case 178 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5595,6 +7464,215 @@ public Builder removeServingConfigLists(int index) { return servingConfigListsBuilder_; } + private com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig modelFeaturesConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig, + com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig.Builder, + com.google.cloud.retail.v2beta.Model.ModelFeaturesConfigOrBuilder> + modelFeaturesConfigBuilder_; + /** + * + * + *
+     * Optional. Additional model features config.
+     * 
+ * + * + * .google.cloud.retail.v2beta.Model.ModelFeaturesConfig model_features_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the modelFeaturesConfig field is set. + */ + public boolean hasModelFeaturesConfig() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + * + * + *
+     * Optional. Additional model features config.
+     * 
+ * + * + * .google.cloud.retail.v2beta.Model.ModelFeaturesConfig model_features_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modelFeaturesConfig. + */ + public com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig getModelFeaturesConfig() { + if (modelFeaturesConfigBuilder_ == null) { + return modelFeaturesConfig_ == null + ? com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig.getDefaultInstance() + : modelFeaturesConfig_; + } else { + return modelFeaturesConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Additional model features config.
+     * 
+ * + * + * .google.cloud.retail.v2beta.Model.ModelFeaturesConfig model_features_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setModelFeaturesConfig( + com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig value) { + if (modelFeaturesConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + modelFeaturesConfig_ = value; + } else { + modelFeaturesConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Additional model features config.
+     * 
+ * + * + * .google.cloud.retail.v2beta.Model.ModelFeaturesConfig model_features_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setModelFeaturesConfig( + com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig.Builder builderForValue) { + if (modelFeaturesConfigBuilder_ == null) { + modelFeaturesConfig_ = builderForValue.build(); + } else { + modelFeaturesConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Additional model features config.
+     * 
+ * + * + * .google.cloud.retail.v2beta.Model.ModelFeaturesConfig model_features_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeModelFeaturesConfig( + com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig value) { + if (modelFeaturesConfigBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0) + && modelFeaturesConfig_ != null + && modelFeaturesConfig_ + != com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig.getDefaultInstance()) { + getModelFeaturesConfigBuilder().mergeFrom(value); + } else { + modelFeaturesConfig_ = value; + } + } else { + modelFeaturesConfigBuilder_.mergeFrom(value); + } + if (modelFeaturesConfig_ != null) { + bitField0_ |= 0x00004000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Optional. Additional model features config.
+     * 
+ * + * + * .google.cloud.retail.v2beta.Model.ModelFeaturesConfig model_features_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearModelFeaturesConfig() { + bitField0_ = (bitField0_ & ~0x00004000); + modelFeaturesConfig_ = null; + if (modelFeaturesConfigBuilder_ != null) { + modelFeaturesConfigBuilder_.dispose(); + modelFeaturesConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Additional model features config.
+     * 
+ * + * + * .google.cloud.retail.v2beta.Model.ModelFeaturesConfig model_features_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig.Builder + getModelFeaturesConfigBuilder() { + bitField0_ |= 0x00004000; + onChanged(); + return getModelFeaturesConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Additional model features config.
+     * 
+ * + * + * .google.cloud.retail.v2beta.Model.ModelFeaturesConfig model_features_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.retail.v2beta.Model.ModelFeaturesConfigOrBuilder + getModelFeaturesConfigOrBuilder() { + if (modelFeaturesConfigBuilder_ != null) { + return modelFeaturesConfigBuilder_.getMessageOrBuilder(); + } else { + return modelFeaturesConfig_ == null + ? com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig.getDefaultInstance() + : modelFeaturesConfig_; + } + } + /** + * + * + *
+     * Optional. Additional model features config.
+     * 
+ * + * + * .google.cloud.retail.v2beta.Model.ModelFeaturesConfig model_features_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig, + com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig.Builder, + com.google.cloud.retail.v2beta.Model.ModelFeaturesConfigOrBuilder> + getModelFeaturesConfigFieldBuilder() { + if (modelFeaturesConfigBuilder_ == null) { + modelFeaturesConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig, + com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig.Builder, + com.google.cloud.retail.v2beta.Model.ModelFeaturesConfigOrBuilder>( + getModelFeaturesConfig(), getParentForChildren(), isClean()); + modelFeaturesConfig_ = null; + } + return modelFeaturesConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ModelOrBuilder.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ModelOrBuilder.java index e55b3299aa82..7589539e1aca 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ModelOrBuilder.java +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ModelOrBuilder.java @@ -621,4 +621,46 @@ public interface ModelOrBuilder */ com.google.cloud.retail.v2beta.Model.ServingConfigListOrBuilder getServingConfigListsOrBuilder( int index); + + /** + * + * + *
+   * Optional. Additional model features config.
+   * 
+ * + * + * .google.cloud.retail.v2beta.Model.ModelFeaturesConfig model_features_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the modelFeaturesConfig field is set. + */ + boolean hasModelFeaturesConfig(); + /** + * + * + *
+   * Optional. Additional model features config.
+   * 
+ * + * + * .google.cloud.retail.v2beta.Model.ModelFeaturesConfig model_features_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modelFeaturesConfig. + */ + com.google.cloud.retail.v2beta.Model.ModelFeaturesConfig getModelFeaturesConfig(); + /** + * + * + *
+   * Optional. Additional model features config.
+   * 
+ * + * + * .google.cloud.retail.v2beta.Model.ModelFeaturesConfig model_features_config = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.retail.v2beta.Model.ModelFeaturesConfigOrBuilder + getModelFeaturesConfigOrBuilder(); } diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ModelProto.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ModelProto.java index 55ab702d3db7..a1a09f59c4f1 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ModelProto.java +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ModelProto.java @@ -36,6 +36,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_retail_v2beta_Model_ServingConfigList_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_retail_v2beta_Model_ServingConfigList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2beta_Model_FrequentlyBoughtTogetherFeaturesConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2beta_Model_FrequentlyBoughtTogetherFeaturesConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2beta_Model_ModelFeaturesConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2beta_Model_ModelFeaturesConfig_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -50,7 +58,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/field_behavior.proto\032\031google/api/resour" + "ce.proto\032\'google/cloud/retail/v2beta/com" + "mon.proto\032\037google/protobuf/timestamp.pro" - + "to\"\272\n\n\005Model\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\031\n\014displ" + + "to\"\274\016\n\005Model\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\031\n\014displ" + "ay_name\030\002 \001(\tB\003\340A\002\022L\n\016training_state\030\003 \001" + "(\0162/.google.cloud.retail.v2beta.Model.Tr" + "ainingStateB\003\340A\001\022J\n\rserving_state\030\004 \001(\0162" @@ -70,25 +78,38 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".RecommendationsFilteringOptionB\003\340A\001\022V\n\024" + "serving_config_lists\030\023 \003(\01323.google.clou" + "d.retail.v2beta.Model.ServingConfigListB" - + "\003\340A\003\0324\n\021ServingConfigList\022\037\n\022serving_con" - + "fig_ids\030\001 \003(\tB\003\340A\001\"R\n\014ServingState\022\035\n\031SE" - + "RVING_STATE_UNSPECIFIED\020\000\022\014\n\010INACTIVE\020\001\022" - + "\n\n\006ACTIVE\020\002\022\t\n\005TUNED\020\003\"I\n\rTrainingState\022" - + "\036\n\032TRAINING_STATE_UNSPECIFIED\020\000\022\n\n\006PAUSE" - + "D\020\001\022\014\n\010TRAINING\020\002\"\220\001\n\023PeriodicTuningStat" - + "e\022%\n!PERIODIC_TUNING_STATE_UNSPECIFIED\020\000" - + "\022\034\n\030PERIODIC_TUNING_DISABLED\020\001\022\027\n\023ALL_TU" - + "NING_DISABLED\020\003\022\033\n\027PERIODIC_TUNING_ENABL" - + "ED\020\002\"D\n\tDataState\022\032\n\026DATA_STATE_UNSPECIF" - + "IED\020\000\022\013\n\007DATA_OK\020\001\022\016\n\nDATA_ERROR\020\002:k\352Ah\n" - + "\033retail.googleapis.com/Model\022Iprojects/{" - + "project}/locations/{location}/catalogs/{" - + "catalog}/models/{model}B\311\001\n\036com.google.c" - + "loud.retail.v2betaB\nModelProtoP\001Z6cloud." - + "google.com/go/retail/apiv2beta/retailpb;" - + "retailpb\242\002\006RETAIL\252\002\032Google.Cloud.Retail." - + "V2Beta\312\002\032Google\\Cloud\\Retail\\V2beta\352\002\035Go" - + "ogle::Cloud::Retail::V2betab\006proto3" + + "\003\340A\003\022Y\n\025model_features_config\030\026 \001(\01325.go" + + "ogle.cloud.retail.v2beta.Model.ModelFeat" + + "uresConfigB\003\340A\001\0324\n\021ServingConfigList\022\037\n\022" + + "serving_config_ids\030\001 \003(\tB\003\340A\001\032\203\001\n&Freque" + + "ntlyBoughtTogetherFeaturesConfig\022Y\n\025cont" + + "ext_products_type\030\002 \001(\01625.google.cloud.r" + + "etail.v2beta.Model.ContextProductsTypeB\003" + + "\340A\001\032\245\001\n\023ModelFeaturesConfig\022u\n!frequentl" + + "y_bought_together_config\030\001 \001(\0132H.google." + + "cloud.retail.v2beta.Model.FrequentlyBoug" + + "htTogetherFeaturesConfigH\000B\027\n\025type_dedic" + + "ated_config\"R\n\014ServingState\022\035\n\031SERVING_S" + + "TATE_UNSPECIFIED\020\000\022\014\n\010INACTIVE\020\001\022\n\n\006ACTI" + + "VE\020\002\022\t\n\005TUNED\020\003\"I\n\rTrainingState\022\036\n\032TRAI" + + "NING_STATE_UNSPECIFIED\020\000\022\n\n\006PAUSED\020\001\022\014\n\010" + + "TRAINING\020\002\"\220\001\n\023PeriodicTuningState\022%\n!PE" + + "RIODIC_TUNING_STATE_UNSPECIFIED\020\000\022\034\n\030PER" + + "IODIC_TUNING_DISABLED\020\001\022\027\n\023ALL_TUNING_DI" + + "SABLED\020\003\022\033\n\027PERIODIC_TUNING_ENABLED\020\002\"D\n" + + "\tDataState\022\032\n\026DATA_STATE_UNSPECIFIED\020\000\022\013" + + "\n\007DATA_OK\020\001\022\016\n\nDATA_ERROR\020\002\"w\n\023ContextPr" + + "oductsType\022%\n!CONTEXT_PRODUCTS_TYPE_UNSP" + + "ECIFIED\020\000\022\032\n\026SINGLE_CONTEXT_PRODUCT\020\001\022\035\n" + + "\031MULTIPLE_CONTEXT_PRODUCTS\020\002:k\352Ah\n\033retai" + + "l.googleapis.com/Model\022Iprojects/{projec" + + "t}/locations/{location}/catalogs/{catalo" + + "g}/models/{model}B\311\001\n\036com.google.cloud.r" + + "etail.v2betaB\nModelProtoP\001Z6cloud.google" + + ".com/go/retail/apiv2beta/retailpb;retail" + + "pb\242\002\006RETAIL\252\002\032Google.Cloud.Retail.V2Beta" + + "\312\002\032Google\\Cloud\\Retail\\V2beta\352\002\035Google::" + + "Cloud::Retail::V2betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -119,6 +140,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DataState", "FilteringOption", "ServingConfigLists", + "ModelFeaturesConfig", }); internal_static_google_cloud_retail_v2beta_Model_ServingConfigList_descriptor = internal_static_google_cloud_retail_v2beta_Model_descriptor.getNestedTypes().get(0); @@ -128,6 +150,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "ServingConfigIds", }); + internal_static_google_cloud_retail_v2beta_Model_FrequentlyBoughtTogetherFeaturesConfig_descriptor = + internal_static_google_cloud_retail_v2beta_Model_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_retail_v2beta_Model_FrequentlyBoughtTogetherFeaturesConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2beta_Model_FrequentlyBoughtTogetherFeaturesConfig_descriptor, + new java.lang.String[] { + "ContextProductsType", + }); + internal_static_google_cloud_retail_v2beta_Model_ModelFeaturesConfig_descriptor = + internal_static_google_cloud_retail_v2beta_Model_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_retail_v2beta_Model_ModelFeaturesConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2beta_Model_ModelFeaturesConfig_descriptor, + new java.lang.String[] { + "FrequentlyBoughtTogetherConfig", "TypeDedicatedConfig", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/Product.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/Product.java index 280723db98dd..7f599e57af28 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/Product.java +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/Product.java @@ -578,24 +578,22 @@ public ExpirationCase getExpirationCase() { * * *
-   * The timestamp when this product becomes unavailable for
-   * [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search].
-   * Note that this is only applicable to
-   * [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] and
-   * [Type.COLLECTION][google.cloud.retail.v2beta.Product.Type.COLLECTION],
-   * and ignored for
-   * [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT]. In
-   * general, we suggest the users to delete the stale products explicitly,
-   * instead of using this field to determine staleness.
+   * Note that this field is applied in the following ways:
    *
-   * If it is set, the [Product][google.cloud.retail.v2beta.Product] is not
-   * available for
-   * [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search]
-   * after [expire_time][google.cloud.retail.v2beta.Product.expire_time].
-   * However, the product can still be retrieved by
-   * [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct]
-   * and
-   * [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts].
+   * * If the [Product][google.cloud.retail.v2beta.Product] is already expired
+   * when it is uploaded, this product
+   *   is not indexed for search.
+   *
+   * * If the [Product][google.cloud.retail.v2beta.Product] is not expired
+   * when it is uploaded, only the
+   *   [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY]'s and
+   *   [Type.COLLECTION][google.cloud.retail.v2beta.Product.Type.COLLECTION]'s
+   *   expireTime is respected, and
+   *   [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT]'s
+   *   expireTime is not used.
+   *
+   * In general, we suggest the users to delete the stale
+   * products explicitly, instead of using this field to determine staleness.
    *
    * [expire_time][google.cloud.retail.v2beta.Product.expire_time] must be
    * later than
@@ -619,24 +617,22 @@ public boolean hasExpireTime() {
    *
    *
    * 
-   * The timestamp when this product becomes unavailable for
-   * [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search].
-   * Note that this is only applicable to
-   * [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] and
-   * [Type.COLLECTION][google.cloud.retail.v2beta.Product.Type.COLLECTION],
-   * and ignored for
-   * [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT]. In
-   * general, we suggest the users to delete the stale products explicitly,
-   * instead of using this field to determine staleness.
+   * Note that this field is applied in the following ways:
    *
-   * If it is set, the [Product][google.cloud.retail.v2beta.Product] is not
-   * available for
-   * [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search]
-   * after [expire_time][google.cloud.retail.v2beta.Product.expire_time].
-   * However, the product can still be retrieved by
-   * [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct]
-   * and
-   * [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts].
+   * * If the [Product][google.cloud.retail.v2beta.Product] is already expired
+   * when it is uploaded, this product
+   *   is not indexed for search.
+   *
+   * * If the [Product][google.cloud.retail.v2beta.Product] is not expired
+   * when it is uploaded, only the
+   *   [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY]'s and
+   *   [Type.COLLECTION][google.cloud.retail.v2beta.Product.Type.COLLECTION]'s
+   *   expireTime is respected, and
+   *   [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT]'s
+   *   expireTime is not used.
+   *
+   * In general, we suggest the users to delete the stale
+   * products explicitly, instead of using this field to determine staleness.
    *
    * [expire_time][google.cloud.retail.v2beta.Product.expire_time] must be
    * later than
@@ -663,24 +659,22 @@ public com.google.protobuf.Timestamp getExpireTime() {
    *
    *
    * 
-   * The timestamp when this product becomes unavailable for
-   * [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search].
-   * Note that this is only applicable to
-   * [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] and
-   * [Type.COLLECTION][google.cloud.retail.v2beta.Product.Type.COLLECTION],
-   * and ignored for
-   * [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT]. In
-   * general, we suggest the users to delete the stale products explicitly,
-   * instead of using this field to determine staleness.
+   * Note that this field is applied in the following ways:
    *
-   * If it is set, the [Product][google.cloud.retail.v2beta.Product] is not
-   * available for
-   * [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search]
-   * after [expire_time][google.cloud.retail.v2beta.Product.expire_time].
-   * However, the product can still be retrieved by
-   * [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct]
-   * and
-   * [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts].
+   * * If the [Product][google.cloud.retail.v2beta.Product] is already expired
+   * when it is uploaded, this product
+   *   is not indexed for search.
+   *
+   * * If the [Product][google.cloud.retail.v2beta.Product] is not expired
+   * when it is uploaded, only the
+   *   [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY]'s and
+   *   [Type.COLLECTION][google.cloud.retail.v2beta.Product.Type.COLLECTION]'s
+   *   expireTime is respected, and
+   *   [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT]'s
+   *   expireTime is not used.
+   *
+   * In general, we suggest the users to delete the stale
+   * products explicitly, instead of using this field to determine staleness.
    *
    * [expire_time][google.cloud.retail.v2beta.Product.expire_time] must be
    * later than
@@ -1304,9 +1298,10 @@ public com.google.protobuf.ByteString getGtinBytes() {
    * error is returned.
    *
    * At most 250 values are allowed per
-   * [Product][google.cloud.retail.v2beta.Product]. Empty values are not
-   * allowed. Each value must be a UTF-8 encoded string with a length limit of
-   * 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned.
+   * [Product][google.cloud.retail.v2beta.Product] unless overridden through the
+   * Google Cloud console. Empty values are not allowed. Each value must be a
+   * UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an
+   * INVALID_ARGUMENT error is returned.
    *
    * Corresponding properties: Google Merchant Center property
    * [google_product_category][mc_google_product_category]. Schema.org property
@@ -1352,9 +1347,10 @@ public com.google.protobuf.ProtocolStringList getCategoriesList() {
    * error is returned.
    *
    * At most 250 values are allowed per
-   * [Product][google.cloud.retail.v2beta.Product]. Empty values are not
-   * allowed. Each value must be a UTF-8 encoded string with a length limit of
-   * 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned.
+   * [Product][google.cloud.retail.v2beta.Product] unless overridden through the
+   * Google Cloud console. Empty values are not allowed. Each value must be a
+   * UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an
+   * INVALID_ARGUMENT error is returned.
    *
    * Corresponding properties: Google Merchant Center property
    * [google_product_category][mc_google_product_category]. Schema.org property
@@ -1400,9 +1396,10 @@ public int getCategoriesCount() {
    * error is returned.
    *
    * At most 250 values are allowed per
-   * [Product][google.cloud.retail.v2beta.Product]. Empty values are not
-   * allowed. Each value must be a UTF-8 encoded string with a length limit of
-   * 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned.
+   * [Product][google.cloud.retail.v2beta.Product] unless overridden through the
+   * Google Cloud console. Empty values are not allowed. Each value must be a
+   * UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an
+   * INVALID_ARGUMENT error is returned.
    *
    * Corresponding properties: Google Merchant Center property
    * [google_product_category][mc_google_product_category]. Schema.org property
@@ -1449,9 +1446,10 @@ public java.lang.String getCategories(int index) {
    * error is returned.
    *
    * At most 250 values are allowed per
-   * [Product][google.cloud.retail.v2beta.Product]. Empty values are not
-   * allowed. Each value must be a UTF-8 encoded string with a length limit of
-   * 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned.
+   * [Product][google.cloud.retail.v2beta.Product] unless overridden through the
+   * Google Cloud console. Empty values are not allowed. Each value must be a
+   * UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an
+   * INVALID_ARGUMENT error is returned.
    *
    * Corresponding properties: Google Merchant Center property
    * [google_product_category][mc_google_product_category]. Schema.org property
@@ -1546,9 +1544,10 @@ public com.google.protobuf.ByteString getTitleBytes() {
    * 
    * The brands of the product.
    *
-   * A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded
-   * string with a length limit of 1,000 characters. Otherwise, an
-   * INVALID_ARGUMENT error is returned.
+   * A maximum of 30 brands are allowed unless overridden through the Google
+   * Cloud console. Each
+   * brand must be a UTF-8 encoded string with a length limit of 1,000
+   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
    *
    * Corresponding properties: Google Merchant Center property
    * [brand](https://support.google.com/merchants/answer/6324351). Schema.org
@@ -1568,9 +1567,10 @@ public com.google.protobuf.ProtocolStringList getBrandsList() {
    * 
    * The brands of the product.
    *
-   * A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded
-   * string with a length limit of 1,000 characters. Otherwise, an
-   * INVALID_ARGUMENT error is returned.
+   * A maximum of 30 brands are allowed unless overridden through the Google
+   * Cloud console. Each
+   * brand must be a UTF-8 encoded string with a length limit of 1,000
+   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
    *
    * Corresponding properties: Google Merchant Center property
    * [brand](https://support.google.com/merchants/answer/6324351). Schema.org
@@ -1590,9 +1590,10 @@ public int getBrandsCount() {
    * 
    * The brands of the product.
    *
-   * A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded
-   * string with a length limit of 1,000 characters. Otherwise, an
-   * INVALID_ARGUMENT error is returned.
+   * A maximum of 30 brands are allowed unless overridden through the Google
+   * Cloud console. Each
+   * brand must be a UTF-8 encoded string with a length limit of 1,000
+   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
    *
    * Corresponding properties: Google Merchant Center property
    * [brand](https://support.google.com/merchants/answer/6324351). Schema.org
@@ -1613,9 +1614,10 @@ public java.lang.String getBrands(int index) {
    * 
    * The brands of the product.
    *
-   * A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded
-   * string with a length limit of 1,000 characters. Otherwise, an
-   * INVALID_ARGUMENT error is returned.
+   * A maximum of 30 brands are allowed unless overridden through the Google
+   * Cloud console. Each
+   * brand must be a UTF-8 encoded string with a length limit of 1,000
+   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
    *
    * Corresponding properties: Google Merchant Center property
    * [brand](https://support.google.com/merchants/answer/6324351). Schema.org
@@ -5501,24 +5503,22 @@ public Builder clearExpiration() {
      *
      *
      * 
-     * The timestamp when this product becomes unavailable for
-     * [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search].
-     * Note that this is only applicable to
-     * [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] and
-     * [Type.COLLECTION][google.cloud.retail.v2beta.Product.Type.COLLECTION],
-     * and ignored for
-     * [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT]. In
-     * general, we suggest the users to delete the stale products explicitly,
-     * instead of using this field to determine staleness.
+     * Note that this field is applied in the following ways:
      *
-     * If it is set, the [Product][google.cloud.retail.v2beta.Product] is not
-     * available for
-     * [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search]
-     * after [expire_time][google.cloud.retail.v2beta.Product.expire_time].
-     * However, the product can still be retrieved by
-     * [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct]
-     * and
-     * [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts].
+     * * If the [Product][google.cloud.retail.v2beta.Product] is already expired
+     * when it is uploaded, this product
+     *   is not indexed for search.
+     *
+     * * If the [Product][google.cloud.retail.v2beta.Product] is not expired
+     * when it is uploaded, only the
+     *   [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY]'s and
+     *   [Type.COLLECTION][google.cloud.retail.v2beta.Product.Type.COLLECTION]'s
+     *   expireTime is respected, and
+     *   [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT]'s
+     *   expireTime is not used.
+     *
+     * In general, we suggest the users to delete the stale
+     * products explicitly, instead of using this field to determine staleness.
      *
      * [expire_time][google.cloud.retail.v2beta.Product.expire_time] must be
      * later than
@@ -5542,24 +5542,22 @@ public boolean hasExpireTime() {
      *
      *
      * 
-     * The timestamp when this product becomes unavailable for
-     * [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search].
-     * Note that this is only applicable to
-     * [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] and
-     * [Type.COLLECTION][google.cloud.retail.v2beta.Product.Type.COLLECTION],
-     * and ignored for
-     * [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT]. In
-     * general, we suggest the users to delete the stale products explicitly,
-     * instead of using this field to determine staleness.
+     * Note that this field is applied in the following ways:
      *
-     * If it is set, the [Product][google.cloud.retail.v2beta.Product] is not
-     * available for
-     * [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search]
-     * after [expire_time][google.cloud.retail.v2beta.Product.expire_time].
-     * However, the product can still be retrieved by
-     * [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct]
-     * and
-     * [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts].
+     * * If the [Product][google.cloud.retail.v2beta.Product] is already expired
+     * when it is uploaded, this product
+     *   is not indexed for search.
+     *
+     * * If the [Product][google.cloud.retail.v2beta.Product] is not expired
+     * when it is uploaded, only the
+     *   [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY]'s and
+     *   [Type.COLLECTION][google.cloud.retail.v2beta.Product.Type.COLLECTION]'s
+     *   expireTime is respected, and
+     *   [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT]'s
+     *   expireTime is not used.
+     *
+     * In general, we suggest the users to delete the stale
+     * products explicitly, instead of using this field to determine staleness.
      *
      * [expire_time][google.cloud.retail.v2beta.Product.expire_time] must be
      * later than
@@ -5593,24 +5591,22 @@ public com.google.protobuf.Timestamp getExpireTime() {
      *
      *
      * 
-     * The timestamp when this product becomes unavailable for
-     * [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search].
-     * Note that this is only applicable to
-     * [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] and
-     * [Type.COLLECTION][google.cloud.retail.v2beta.Product.Type.COLLECTION],
-     * and ignored for
-     * [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT]. In
-     * general, we suggest the users to delete the stale products explicitly,
-     * instead of using this field to determine staleness.
+     * Note that this field is applied in the following ways:
      *
-     * If it is set, the [Product][google.cloud.retail.v2beta.Product] is not
-     * available for
-     * [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search]
-     * after [expire_time][google.cloud.retail.v2beta.Product.expire_time].
-     * However, the product can still be retrieved by
-     * [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct]
-     * and
-     * [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts].
+     * * If the [Product][google.cloud.retail.v2beta.Product] is already expired
+     * when it is uploaded, this product
+     *   is not indexed for search.
+     *
+     * * If the [Product][google.cloud.retail.v2beta.Product] is not expired
+     * when it is uploaded, only the
+     *   [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY]'s and
+     *   [Type.COLLECTION][google.cloud.retail.v2beta.Product.Type.COLLECTION]'s
+     *   expireTime is respected, and
+     *   [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT]'s
+     *   expireTime is not used.
+     *
+     * In general, we suggest the users to delete the stale
+     * products explicitly, instead of using this field to determine staleness.
      *
      * [expire_time][google.cloud.retail.v2beta.Product.expire_time] must be
      * later than
@@ -5641,24 +5637,22 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) {
      *
      *
      * 
-     * The timestamp when this product becomes unavailable for
-     * [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search].
-     * Note that this is only applicable to
-     * [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] and
-     * [Type.COLLECTION][google.cloud.retail.v2beta.Product.Type.COLLECTION],
-     * and ignored for
-     * [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT]. In
-     * general, we suggest the users to delete the stale products explicitly,
-     * instead of using this field to determine staleness.
+     * Note that this field is applied in the following ways:
      *
-     * If it is set, the [Product][google.cloud.retail.v2beta.Product] is not
-     * available for
-     * [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search]
-     * after [expire_time][google.cloud.retail.v2beta.Product.expire_time].
-     * However, the product can still be retrieved by
-     * [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct]
-     * and
-     * [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts].
+     * * If the [Product][google.cloud.retail.v2beta.Product] is already expired
+     * when it is uploaded, this product
+     *   is not indexed for search.
+     *
+     * * If the [Product][google.cloud.retail.v2beta.Product] is not expired
+     * when it is uploaded, only the
+     *   [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY]'s and
+     *   [Type.COLLECTION][google.cloud.retail.v2beta.Product.Type.COLLECTION]'s
+     *   expireTime is respected, and
+     *   [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT]'s
+     *   expireTime is not used.
+     *
+     * In general, we suggest the users to delete the stale
+     * products explicitly, instead of using this field to determine staleness.
      *
      * [expire_time][google.cloud.retail.v2beta.Product.expire_time] must be
      * later than
@@ -5686,24 +5680,22 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal
      *
      *
      * 
-     * The timestamp when this product becomes unavailable for
-     * [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search].
-     * Note that this is only applicable to
-     * [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] and
-     * [Type.COLLECTION][google.cloud.retail.v2beta.Product.Type.COLLECTION],
-     * and ignored for
-     * [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT]. In
-     * general, we suggest the users to delete the stale products explicitly,
-     * instead of using this field to determine staleness.
+     * Note that this field is applied in the following ways:
      *
-     * If it is set, the [Product][google.cloud.retail.v2beta.Product] is not
-     * available for
-     * [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search]
-     * after [expire_time][google.cloud.retail.v2beta.Product.expire_time].
-     * However, the product can still be retrieved by
-     * [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct]
-     * and
-     * [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts].
+     * * If the [Product][google.cloud.retail.v2beta.Product] is already expired
+     * when it is uploaded, this product
+     *   is not indexed for search.
+     *
+     * * If the [Product][google.cloud.retail.v2beta.Product] is not expired
+     * when it is uploaded, only the
+     *   [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY]'s and
+     *   [Type.COLLECTION][google.cloud.retail.v2beta.Product.Type.COLLECTION]'s
+     *   expireTime is respected, and
+     *   [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT]'s
+     *   expireTime is not used.
+     *
+     * In general, we suggest the users to delete the stale
+     * products explicitly, instead of using this field to determine staleness.
      *
      * [expire_time][google.cloud.retail.v2beta.Product.expire_time] must be
      * later than
@@ -5743,24 +5735,22 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
      *
      *
      * 
-     * The timestamp when this product becomes unavailable for
-     * [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search].
-     * Note that this is only applicable to
-     * [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] and
-     * [Type.COLLECTION][google.cloud.retail.v2beta.Product.Type.COLLECTION],
-     * and ignored for
-     * [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT]. In
-     * general, we suggest the users to delete the stale products explicitly,
-     * instead of using this field to determine staleness.
+     * Note that this field is applied in the following ways:
      *
-     * If it is set, the [Product][google.cloud.retail.v2beta.Product] is not
-     * available for
-     * [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search]
-     * after [expire_time][google.cloud.retail.v2beta.Product.expire_time].
-     * However, the product can still be retrieved by
-     * [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct]
-     * and
-     * [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts].
+     * * If the [Product][google.cloud.retail.v2beta.Product] is already expired
+     * when it is uploaded, this product
+     *   is not indexed for search.
+     *
+     * * If the [Product][google.cloud.retail.v2beta.Product] is not expired
+     * when it is uploaded, only the
+     *   [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY]'s and
+     *   [Type.COLLECTION][google.cloud.retail.v2beta.Product.Type.COLLECTION]'s
+     *   expireTime is respected, and
+     *   [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT]'s
+     *   expireTime is not used.
+     *
+     * In general, we suggest the users to delete the stale
+     * products explicitly, instead of using this field to determine staleness.
      *
      * [expire_time][google.cloud.retail.v2beta.Product.expire_time] must be
      * later than
@@ -5794,24 +5784,22 @@ public Builder clearExpireTime() {
      *
      *
      * 
-     * The timestamp when this product becomes unavailable for
-     * [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search].
-     * Note that this is only applicable to
-     * [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] and
-     * [Type.COLLECTION][google.cloud.retail.v2beta.Product.Type.COLLECTION],
-     * and ignored for
-     * [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT]. In
-     * general, we suggest the users to delete the stale products explicitly,
-     * instead of using this field to determine staleness.
+     * Note that this field is applied in the following ways:
      *
-     * If it is set, the [Product][google.cloud.retail.v2beta.Product] is not
-     * available for
-     * [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search]
-     * after [expire_time][google.cloud.retail.v2beta.Product.expire_time].
-     * However, the product can still be retrieved by
-     * [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct]
-     * and
-     * [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts].
+     * * If the [Product][google.cloud.retail.v2beta.Product] is already expired
+     * when it is uploaded, this product
+     *   is not indexed for search.
+     *
+     * * If the [Product][google.cloud.retail.v2beta.Product] is not expired
+     * when it is uploaded, only the
+     *   [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY]'s and
+     *   [Type.COLLECTION][google.cloud.retail.v2beta.Product.Type.COLLECTION]'s
+     *   expireTime is respected, and
+     *   [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT]'s
+     *   expireTime is not used.
+     *
+     * In general, we suggest the users to delete the stale
+     * products explicitly, instead of using this field to determine staleness.
      *
      * [expire_time][google.cloud.retail.v2beta.Product.expire_time] must be
      * later than
@@ -5832,24 +5820,22 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() {
      *
      *
      * 
-     * The timestamp when this product becomes unavailable for
-     * [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search].
-     * Note that this is only applicable to
-     * [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] and
-     * [Type.COLLECTION][google.cloud.retail.v2beta.Product.Type.COLLECTION],
-     * and ignored for
-     * [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT]. In
-     * general, we suggest the users to delete the stale products explicitly,
-     * instead of using this field to determine staleness.
+     * Note that this field is applied in the following ways:
      *
-     * If it is set, the [Product][google.cloud.retail.v2beta.Product] is not
-     * available for
-     * [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search]
-     * after [expire_time][google.cloud.retail.v2beta.Product.expire_time].
-     * However, the product can still be retrieved by
-     * [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct]
-     * and
-     * [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts].
+     * * If the [Product][google.cloud.retail.v2beta.Product] is already expired
+     * when it is uploaded, this product
+     *   is not indexed for search.
+     *
+     * * If the [Product][google.cloud.retail.v2beta.Product] is not expired
+     * when it is uploaded, only the
+     *   [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY]'s and
+     *   [Type.COLLECTION][google.cloud.retail.v2beta.Product.Type.COLLECTION]'s
+     *   expireTime is respected, and
+     *   [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT]'s
+     *   expireTime is not used.
+     *
+     * In general, we suggest the users to delete the stale
+     * products explicitly, instead of using this field to determine staleness.
      *
      * [expire_time][google.cloud.retail.v2beta.Product.expire_time] must be
      * later than
@@ -5878,24 +5864,22 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
      *
      *
      * 
-     * The timestamp when this product becomes unavailable for
-     * [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search].
-     * Note that this is only applicable to
-     * [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] and
-     * [Type.COLLECTION][google.cloud.retail.v2beta.Product.Type.COLLECTION],
-     * and ignored for
-     * [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT]. In
-     * general, we suggest the users to delete the stale products explicitly,
-     * instead of using this field to determine staleness.
+     * Note that this field is applied in the following ways:
      *
-     * If it is set, the [Product][google.cloud.retail.v2beta.Product] is not
-     * available for
-     * [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search]
-     * after [expire_time][google.cloud.retail.v2beta.Product.expire_time].
-     * However, the product can still be retrieved by
-     * [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct]
-     * and
-     * [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts].
+     * * If the [Product][google.cloud.retail.v2beta.Product] is already expired
+     * when it is uploaded, this product
+     *   is not indexed for search.
+     *
+     * * If the [Product][google.cloud.retail.v2beta.Product] is not expired
+     * when it is uploaded, only the
+     *   [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY]'s and
+     *   [Type.COLLECTION][google.cloud.retail.v2beta.Product.Type.COLLECTION]'s
+     *   expireTime is respected, and
+     *   [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT]'s
+     *   expireTime is not used.
+     *
+     * In general, we suggest the users to delete the stale
+     * products explicitly, instead of using this field to determine staleness.
      *
      * [expire_time][google.cloud.retail.v2beta.Product.expire_time] must be
      * later than
@@ -7423,9 +7407,10 @@ private void ensureCategoriesIsMutable() {
      * error is returned.
      *
      * At most 250 values are allowed per
-     * [Product][google.cloud.retail.v2beta.Product]. Empty values are not
-     * allowed. Each value must be a UTF-8 encoded string with a length limit of
-     * 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * [Product][google.cloud.retail.v2beta.Product] unless overridden through the
+     * Google Cloud console. Empty values are not allowed. Each value must be a
+     * UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an
+     * INVALID_ARGUMENT error is returned.
      *
      * Corresponding properties: Google Merchant Center property
      * [google_product_category][mc_google_product_category]. Schema.org property
@@ -7472,9 +7457,10 @@ public com.google.protobuf.ProtocolStringList getCategoriesList() {
      * error is returned.
      *
      * At most 250 values are allowed per
-     * [Product][google.cloud.retail.v2beta.Product]. Empty values are not
-     * allowed. Each value must be a UTF-8 encoded string with a length limit of
-     * 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * [Product][google.cloud.retail.v2beta.Product] unless overridden through the
+     * Google Cloud console. Empty values are not allowed. Each value must be a
+     * UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an
+     * INVALID_ARGUMENT error is returned.
      *
      * Corresponding properties: Google Merchant Center property
      * [google_product_category][mc_google_product_category]. Schema.org property
@@ -7520,9 +7506,10 @@ public int getCategoriesCount() {
      * error is returned.
      *
      * At most 250 values are allowed per
-     * [Product][google.cloud.retail.v2beta.Product]. Empty values are not
-     * allowed. Each value must be a UTF-8 encoded string with a length limit of
-     * 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * [Product][google.cloud.retail.v2beta.Product] unless overridden through the
+     * Google Cloud console. Empty values are not allowed. Each value must be a
+     * UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an
+     * INVALID_ARGUMENT error is returned.
      *
      * Corresponding properties: Google Merchant Center property
      * [google_product_category][mc_google_product_category]. Schema.org property
@@ -7569,9 +7556,10 @@ public java.lang.String getCategories(int index) {
      * error is returned.
      *
      * At most 250 values are allowed per
-     * [Product][google.cloud.retail.v2beta.Product]. Empty values are not
-     * allowed. Each value must be a UTF-8 encoded string with a length limit of
-     * 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * [Product][google.cloud.retail.v2beta.Product] unless overridden through the
+     * Google Cloud console. Empty values are not allowed. Each value must be a
+     * UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an
+     * INVALID_ARGUMENT error is returned.
      *
      * Corresponding properties: Google Merchant Center property
      * [google_product_category][mc_google_product_category]. Schema.org property
@@ -7618,9 +7606,10 @@ public com.google.protobuf.ByteString getCategoriesBytes(int index) {
      * error is returned.
      *
      * At most 250 values are allowed per
-     * [Product][google.cloud.retail.v2beta.Product]. Empty values are not
-     * allowed. Each value must be a UTF-8 encoded string with a length limit of
-     * 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * [Product][google.cloud.retail.v2beta.Product] unless overridden through the
+     * Google Cloud console. Empty values are not allowed. Each value must be a
+     * UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an
+     * INVALID_ARGUMENT error is returned.
      *
      * Corresponding properties: Google Merchant Center property
      * [google_product_category][mc_google_product_category]. Schema.org property
@@ -7675,9 +7664,10 @@ public Builder setCategories(int index, java.lang.String value) {
      * error is returned.
      *
      * At most 250 values are allowed per
-     * [Product][google.cloud.retail.v2beta.Product]. Empty values are not
-     * allowed. Each value must be a UTF-8 encoded string with a length limit of
-     * 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * [Product][google.cloud.retail.v2beta.Product] unless overridden through the
+     * Google Cloud console. Empty values are not allowed. Each value must be a
+     * UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an
+     * INVALID_ARGUMENT error is returned.
      *
      * Corresponding properties: Google Merchant Center property
      * [google_product_category][mc_google_product_category]. Schema.org property
@@ -7731,9 +7721,10 @@ public Builder addCategories(java.lang.String value) {
      * error is returned.
      *
      * At most 250 values are allowed per
-     * [Product][google.cloud.retail.v2beta.Product]. Empty values are not
-     * allowed. Each value must be a UTF-8 encoded string with a length limit of
-     * 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * [Product][google.cloud.retail.v2beta.Product] unless overridden through the
+     * Google Cloud console. Empty values are not allowed. Each value must be a
+     * UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an
+     * INVALID_ARGUMENT error is returned.
      *
      * Corresponding properties: Google Merchant Center property
      * [google_product_category][mc_google_product_category]. Schema.org property
@@ -7784,9 +7775,10 @@ public Builder addAllCategories(java.lang.Iterable values) {
      * error is returned.
      *
      * At most 250 values are allowed per
-     * [Product][google.cloud.retail.v2beta.Product]. Empty values are not
-     * allowed. Each value must be a UTF-8 encoded string with a length limit of
-     * 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * [Product][google.cloud.retail.v2beta.Product] unless overridden through the
+     * Google Cloud console. Empty values are not allowed. Each value must be a
+     * UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an
+     * INVALID_ARGUMENT error is returned.
      *
      * Corresponding properties: Google Merchant Center property
      * [google_product_category][mc_google_product_category]. Schema.org property
@@ -7836,9 +7828,10 @@ public Builder clearCategories() {
      * error is returned.
      *
      * At most 250 values are allowed per
-     * [Product][google.cloud.retail.v2beta.Product]. Empty values are not
-     * allowed. Each value must be a UTF-8 encoded string with a length limit of
-     * 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned.
+     * [Product][google.cloud.retail.v2beta.Product] unless overridden through the
+     * Google Cloud console. Empty values are not allowed. Each value must be a
+     * UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an
+     * INVALID_ARGUMENT error is returned.
      *
      * Corresponding properties: Google Merchant Center property
      * [google_product_category][mc_google_product_category]. Schema.org property
@@ -8021,9 +8014,10 @@ private void ensureBrandsIsMutable() {
      * 
      * The brands of the product.
      *
-     * A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded
-     * string with a length limit of 1,000 characters. Otherwise, an
-     * INVALID_ARGUMENT error is returned.
+     * A maximum of 30 brands are allowed unless overridden through the Google
+     * Cloud console. Each
+     * brand must be a UTF-8 encoded string with a length limit of 1,000
+     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
      *
      * Corresponding properties: Google Merchant Center property
      * [brand](https://support.google.com/merchants/answer/6324351). Schema.org
@@ -8044,9 +8038,10 @@ public com.google.protobuf.ProtocolStringList getBrandsList() {
      * 
      * The brands of the product.
      *
-     * A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded
-     * string with a length limit of 1,000 characters. Otherwise, an
-     * INVALID_ARGUMENT error is returned.
+     * A maximum of 30 brands are allowed unless overridden through the Google
+     * Cloud console. Each
+     * brand must be a UTF-8 encoded string with a length limit of 1,000
+     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
      *
      * Corresponding properties: Google Merchant Center property
      * [brand](https://support.google.com/merchants/answer/6324351). Schema.org
@@ -8066,9 +8061,10 @@ public int getBrandsCount() {
      * 
      * The brands of the product.
      *
-     * A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded
-     * string with a length limit of 1,000 characters. Otherwise, an
-     * INVALID_ARGUMENT error is returned.
+     * A maximum of 30 brands are allowed unless overridden through the Google
+     * Cloud console. Each
+     * brand must be a UTF-8 encoded string with a length limit of 1,000
+     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
      *
      * Corresponding properties: Google Merchant Center property
      * [brand](https://support.google.com/merchants/answer/6324351). Schema.org
@@ -8089,9 +8085,10 @@ public java.lang.String getBrands(int index) {
      * 
      * The brands of the product.
      *
-     * A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded
-     * string with a length limit of 1,000 characters. Otherwise, an
-     * INVALID_ARGUMENT error is returned.
+     * A maximum of 30 brands are allowed unless overridden through the Google
+     * Cloud console. Each
+     * brand must be a UTF-8 encoded string with a length limit of 1,000
+     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
      *
      * Corresponding properties: Google Merchant Center property
      * [brand](https://support.google.com/merchants/answer/6324351). Schema.org
@@ -8112,9 +8109,10 @@ public com.google.protobuf.ByteString getBrandsBytes(int index) {
      * 
      * The brands of the product.
      *
-     * A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded
-     * string with a length limit of 1,000 characters. Otherwise, an
-     * INVALID_ARGUMENT error is returned.
+     * A maximum of 30 brands are allowed unless overridden through the Google
+     * Cloud console. Each
+     * brand must be a UTF-8 encoded string with a length limit of 1,000
+     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
      *
      * Corresponding properties: Google Merchant Center property
      * [brand](https://support.google.com/merchants/answer/6324351). Schema.org
@@ -8143,9 +8141,10 @@ public Builder setBrands(int index, java.lang.String value) {
      * 
      * The brands of the product.
      *
-     * A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded
-     * string with a length limit of 1,000 characters. Otherwise, an
-     * INVALID_ARGUMENT error is returned.
+     * A maximum of 30 brands are allowed unless overridden through the Google
+     * Cloud console. Each
+     * brand must be a UTF-8 encoded string with a length limit of 1,000
+     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
      *
      * Corresponding properties: Google Merchant Center property
      * [brand](https://support.google.com/merchants/answer/6324351). Schema.org
@@ -8173,9 +8172,10 @@ public Builder addBrands(java.lang.String value) {
      * 
      * The brands of the product.
      *
-     * A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded
-     * string with a length limit of 1,000 characters. Otherwise, an
-     * INVALID_ARGUMENT error is returned.
+     * A maximum of 30 brands are allowed unless overridden through the Google
+     * Cloud console. Each
+     * brand must be a UTF-8 encoded string with a length limit of 1,000
+     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
      *
      * Corresponding properties: Google Merchant Center property
      * [brand](https://support.google.com/merchants/answer/6324351). Schema.org
@@ -8200,9 +8200,10 @@ public Builder addAllBrands(java.lang.Iterable values) {
      * 
      * The brands of the product.
      *
-     * A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded
-     * string with a length limit of 1,000 characters. Otherwise, an
-     * INVALID_ARGUMENT error is returned.
+     * A maximum of 30 brands are allowed unless overridden through the Google
+     * Cloud console. Each
+     * brand must be a UTF-8 encoded string with a length limit of 1,000
+     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
      *
      * Corresponding properties: Google Merchant Center property
      * [brand](https://support.google.com/merchants/answer/6324351). Schema.org
@@ -8226,9 +8227,10 @@ public Builder clearBrands() {
      * 
      * The brands of the product.
      *
-     * A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded
-     * string with a length limit of 1,000 characters. Otherwise, an
-     * INVALID_ARGUMENT error is returned.
+     * A maximum of 30 brands are allowed unless overridden through the Google
+     * Cloud console. Each
+     * brand must be a UTF-8 encoded string with a length limit of 1,000
+     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
      *
      * Corresponding properties: Google Merchant Center property
      * [brand](https://support.google.com/merchants/answer/6324351). Schema.org
diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ProductOrBuilder.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ProductOrBuilder.java
index 0d32f2c745f2..b03b793fb459 100644
--- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ProductOrBuilder.java
+++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ProductOrBuilder.java
@@ -28,24 +28,22 @@ public interface ProductOrBuilder
    *
    *
    * 
-   * The timestamp when this product becomes unavailable for
-   * [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search].
-   * Note that this is only applicable to
-   * [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] and
-   * [Type.COLLECTION][google.cloud.retail.v2beta.Product.Type.COLLECTION],
-   * and ignored for
-   * [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT]. In
-   * general, we suggest the users to delete the stale products explicitly,
-   * instead of using this field to determine staleness.
+   * Note that this field is applied in the following ways:
    *
-   * If it is set, the [Product][google.cloud.retail.v2beta.Product] is not
-   * available for
-   * [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search]
-   * after [expire_time][google.cloud.retail.v2beta.Product.expire_time].
-   * However, the product can still be retrieved by
-   * [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct]
-   * and
-   * [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts].
+   * * If the [Product][google.cloud.retail.v2beta.Product] is already expired
+   * when it is uploaded, this product
+   *   is not indexed for search.
+   *
+   * * If the [Product][google.cloud.retail.v2beta.Product] is not expired
+   * when it is uploaded, only the
+   *   [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY]'s and
+   *   [Type.COLLECTION][google.cloud.retail.v2beta.Product.Type.COLLECTION]'s
+   *   expireTime is respected, and
+   *   [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT]'s
+   *   expireTime is not used.
+   *
+   * In general, we suggest the users to delete the stale
+   * products explicitly, instead of using this field to determine staleness.
    *
    * [expire_time][google.cloud.retail.v2beta.Product.expire_time] must be
    * later than
@@ -66,24 +64,22 @@ public interface ProductOrBuilder
    *
    *
    * 
-   * The timestamp when this product becomes unavailable for
-   * [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search].
-   * Note that this is only applicable to
-   * [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] and
-   * [Type.COLLECTION][google.cloud.retail.v2beta.Product.Type.COLLECTION],
-   * and ignored for
-   * [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT]. In
-   * general, we suggest the users to delete the stale products explicitly,
-   * instead of using this field to determine staleness.
+   * Note that this field is applied in the following ways:
    *
-   * If it is set, the [Product][google.cloud.retail.v2beta.Product] is not
-   * available for
-   * [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search]
-   * after [expire_time][google.cloud.retail.v2beta.Product.expire_time].
-   * However, the product can still be retrieved by
-   * [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct]
-   * and
-   * [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts].
+   * * If the [Product][google.cloud.retail.v2beta.Product] is already expired
+   * when it is uploaded, this product
+   *   is not indexed for search.
+   *
+   * * If the [Product][google.cloud.retail.v2beta.Product] is not expired
+   * when it is uploaded, only the
+   *   [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY]'s and
+   *   [Type.COLLECTION][google.cloud.retail.v2beta.Product.Type.COLLECTION]'s
+   *   expireTime is respected, and
+   *   [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT]'s
+   *   expireTime is not used.
+   *
+   * In general, we suggest the users to delete the stale
+   * products explicitly, instead of using this field to determine staleness.
    *
    * [expire_time][google.cloud.retail.v2beta.Product.expire_time] must be
    * later than
@@ -104,24 +100,22 @@ public interface ProductOrBuilder
    *
    *
    * 
-   * The timestamp when this product becomes unavailable for
-   * [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search].
-   * Note that this is only applicable to
-   * [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] and
-   * [Type.COLLECTION][google.cloud.retail.v2beta.Product.Type.COLLECTION],
-   * and ignored for
-   * [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT]. In
-   * general, we suggest the users to delete the stale products explicitly,
-   * instead of using this field to determine staleness.
+   * Note that this field is applied in the following ways:
    *
-   * If it is set, the [Product][google.cloud.retail.v2beta.Product] is not
-   * available for
-   * [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search]
-   * after [expire_time][google.cloud.retail.v2beta.Product.expire_time].
-   * However, the product can still be retrieved by
-   * [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct]
-   * and
-   * [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts].
+   * * If the [Product][google.cloud.retail.v2beta.Product] is already expired
+   * when it is uploaded, this product
+   *   is not indexed for search.
+   *
+   * * If the [Product][google.cloud.retail.v2beta.Product] is not expired
+   * when it is uploaded, only the
+   *   [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY]'s and
+   *   [Type.COLLECTION][google.cloud.retail.v2beta.Product.Type.COLLECTION]'s
+   *   expireTime is respected, and
+   *   [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT]'s
+   *   expireTime is not used.
+   *
+   * In general, we suggest the users to delete the stale
+   * products explicitly, instead of using this field to determine staleness.
    *
    * [expire_time][google.cloud.retail.v2beta.Product.expire_time] must be
    * later than
@@ -591,9 +585,10 @@ public interface ProductOrBuilder
    * error is returned.
    *
    * At most 250 values are allowed per
-   * [Product][google.cloud.retail.v2beta.Product]. Empty values are not
-   * allowed. Each value must be a UTF-8 encoded string with a length limit of
-   * 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned.
+   * [Product][google.cloud.retail.v2beta.Product] unless overridden through the
+   * Google Cloud console. Empty values are not allowed. Each value must be a
+   * UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an
+   * INVALID_ARGUMENT error is returned.
    *
    * Corresponding properties: Google Merchant Center property
    * [google_product_category][mc_google_product_category]. Schema.org property
@@ -637,9 +632,10 @@ public interface ProductOrBuilder
    * error is returned.
    *
    * At most 250 values are allowed per
-   * [Product][google.cloud.retail.v2beta.Product]. Empty values are not
-   * allowed. Each value must be a UTF-8 encoded string with a length limit of
-   * 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned.
+   * [Product][google.cloud.retail.v2beta.Product] unless overridden through the
+   * Google Cloud console. Empty values are not allowed. Each value must be a
+   * UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an
+   * INVALID_ARGUMENT error is returned.
    *
    * Corresponding properties: Google Merchant Center property
    * [google_product_category][mc_google_product_category]. Schema.org property
@@ -683,9 +679,10 @@ public interface ProductOrBuilder
    * error is returned.
    *
    * At most 250 values are allowed per
-   * [Product][google.cloud.retail.v2beta.Product]. Empty values are not
-   * allowed. Each value must be a UTF-8 encoded string with a length limit of
-   * 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned.
+   * [Product][google.cloud.retail.v2beta.Product] unless overridden through the
+   * Google Cloud console. Empty values are not allowed. Each value must be a
+   * UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an
+   * INVALID_ARGUMENT error is returned.
    *
    * Corresponding properties: Google Merchant Center property
    * [google_product_category][mc_google_product_category]. Schema.org property
@@ -730,9 +727,10 @@ public interface ProductOrBuilder
    * error is returned.
    *
    * At most 250 values are allowed per
-   * [Product][google.cloud.retail.v2beta.Product]. Empty values are not
-   * allowed. Each value must be a UTF-8 encoded string with a length limit of
-   * 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned.
+   * [Product][google.cloud.retail.v2beta.Product] unless overridden through the
+   * Google Cloud console. Empty values are not allowed. Each value must be a
+   * UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an
+   * INVALID_ARGUMENT error is returned.
    *
    * Corresponding properties: Google Merchant Center property
    * [google_product_category][mc_google_product_category]. Schema.org property
@@ -794,9 +792,10 @@ public interface ProductOrBuilder
    * 
    * The brands of the product.
    *
-   * A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded
-   * string with a length limit of 1,000 characters. Otherwise, an
-   * INVALID_ARGUMENT error is returned.
+   * A maximum of 30 brands are allowed unless overridden through the Google
+   * Cloud console. Each
+   * brand must be a UTF-8 encoded string with a length limit of 1,000
+   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
    *
    * Corresponding properties: Google Merchant Center property
    * [brand](https://support.google.com/merchants/answer/6324351). Schema.org
@@ -814,9 +813,10 @@ public interface ProductOrBuilder
    * 
    * The brands of the product.
    *
-   * A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded
-   * string with a length limit of 1,000 characters. Otherwise, an
-   * INVALID_ARGUMENT error is returned.
+   * A maximum of 30 brands are allowed unless overridden through the Google
+   * Cloud console. Each
+   * brand must be a UTF-8 encoded string with a length limit of 1,000
+   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
    *
    * Corresponding properties: Google Merchant Center property
    * [brand](https://support.google.com/merchants/answer/6324351). Schema.org
@@ -834,9 +834,10 @@ public interface ProductOrBuilder
    * 
    * The brands of the product.
    *
-   * A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded
-   * string with a length limit of 1,000 characters. Otherwise, an
-   * INVALID_ARGUMENT error is returned.
+   * A maximum of 30 brands are allowed unless overridden through the Google
+   * Cloud console. Each
+   * brand must be a UTF-8 encoded string with a length limit of 1,000
+   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
    *
    * Corresponding properties: Google Merchant Center property
    * [brand](https://support.google.com/merchants/answer/6324351). Schema.org
@@ -855,9 +856,10 @@ public interface ProductOrBuilder
    * 
    * The brands of the product.
    *
-   * A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded
-   * string with a length limit of 1,000 characters. Otherwise, an
-   * INVALID_ARGUMENT error is returned.
+   * A maximum of 30 brands are allowed unless overridden through the Google
+   * Cloud console. Each
+   * brand must be a UTF-8 encoded string with a length limit of 1,000
+   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
    *
    * Corresponding properties: Google Merchant Center property
    * [brand](https://support.google.com/merchants/answer/6324351). Schema.org
diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ProductServiceProto.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ProductServiceProto.java
index ee64becc4257..aca53228f7a3 100644
--- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ProductServiceProto.java
+++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ProductServiceProto.java
@@ -129,147 +129,156 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
           + "e/cloud/retail/v2beta/common.proto\032.goog"
           + "le/cloud/retail/v2beta/import_config.pro"
           + "to\032(google/cloud/retail/v2beta/product.p"
-          + "roto\032#google/longrunning/operations.prot"
-          + "o\032\033google/protobuf/empty.proto\032 google/p"
-          + "rotobuf/field_mask.proto\032\037google/protobu"
-          + "f/timestamp.proto\"\240\001\n\024CreateProductReque"
-          + "st\0224\n\006parent\030\001 \001(\tB$\340A\002\372A\036\n\034retail.googl"
-          + "eapis.com/Branch\0229\n\007product\030\002 \001(\0132#.goog"
-          + "le.cloud.retail.v2beta.ProductB\003\340A\002\022\027\n\np"
-          + "roduct_id\030\003 \001(\tB\003\340A\002\"H\n\021GetProductReques"
+          + "roto\032-google/cloud/retail/v2beta/purge_c"
+          + "onfig.proto\032#google/longrunning/operatio"
+          + "ns.proto\032\033google/protobuf/empty.proto\032 g"
+          + "oogle/protobuf/field_mask.proto\032\037google/"
+          + "protobuf/timestamp.proto\"\240\001\n\024CreateProdu"
+          + "ctRequest\0224\n\006parent\030\001 \001(\tB$\340A\002\372A\036\n\034retai"
+          + "l.googleapis.com/Branch\0229\n\007product\030\002 \001(\013"
+          + "2#.google.cloud.retail.v2beta.ProductB\003\340"
+          + "A\002\022\027\n\nproduct_id\030\003 \001(\tB\003\340A\002\"H\n\021GetProduc"
+          + "tRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035retail.g"
+          + "oogleapis.com/Product\"\231\001\n\024UpdateProductR"
+          + "equest\0229\n\007product\030\001 \001(\0132#.google.cloud.r"
+          + "etail.v2beta.ProductB\003\340A\002\022/\n\013update_mask"
+          + "\030\002 \001(\0132\032.google.protobuf.FieldMask\022\025\n\ral"
+          + "low_missing\030\003 \001(\010\"K\n\024DeleteProductReques"
           + "t\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035retail.googleap"
-          + "is.com/Product\"\231\001\n\024UpdateProductRequest\022"
-          + "9\n\007product\030\001 \001(\0132#.google.cloud.retail.v"
-          + "2beta.ProductB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132"
-          + "\032.google.protobuf.FieldMask\022\025\n\rallow_mis"
-          + "sing\030\003 \001(\010\"K\n\024DeleteProductRequest\0223\n\004na"
-          + "me\030\001 \001(\tB%\340A\002\372A\037\n\035retail.googleapis.com/"
-          + "Product\"\261\001\n\023ListProductsRequest\0224\n\006paren"
-          + "t\030\001 \001(\tB$\340A\002\372A\036\n\034retail.googleapis.com/B"
-          + "ranch\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003"
-          + " \001(\t\022\016\n\006filter\030\004 \001(\t\022-\n\tread_mask\030\005 \001(\0132"
-          + "\032.google.protobuf.FieldMask\"f\n\024ListProdu"
-          + "ctsResponse\0225\n\010products\030\001 \003(\0132#.google.c"
-          + "loud.retail.v2beta.Product\022\027\n\017next_page_"
-          + "token\030\002 \001(\t\"\305\001\n\023SetInventoryRequest\022;\n\ti"
-          + "nventory\030\001 \001(\0132#.google.cloud.retail.v2b"
-          + "eta.ProductB\003\340A\002\022,\n\010set_mask\030\002 \001(\0132\032.goo"
-          + "gle.protobuf.FieldMask\022,\n\010set_time\030\003 \001(\013"
-          + "2\032.google.protobuf.Timestamp\022\025\n\rallow_mi"
-          + "ssing\030\004 \001(\010\"\026\n\024SetInventoryMetadata\"\026\n\024S"
-          + "etInventoryResponse\"\305\001\n\033AddFulfillmentPl"
-          + "acesRequest\0226\n\007product\030\001 \001(\tB%\340A\002\372A\037\n\035re"
-          + "tail.googleapis.com/Product\022\021\n\004type\030\002 \001("
-          + "\tB\003\340A\002\022\026\n\tplace_ids\030\003 \003(\tB\003\340A\002\022,\n\010add_ti"
-          + "me\030\004 \001(\0132\032.google.protobuf.Timestamp\022\025\n\r"
-          + "allow_missing\030\005 \001(\010\"\036\n\034AddFulfillmentPla"
-          + "cesMetadata\"\036\n\034AddFulfillmentPlacesRespo"
-          + "nse\"\223\002\n\032AddLocalInventoriesRequest\0226\n\007pr"
-          + "oduct\030\001 \001(\tB%\340A\002\372A\037\n\035retail.googleapis.c"
-          + "om/Product\022J\n\021local_inventories\030\002 \003(\0132*."
-          + "google.cloud.retail.v2beta.LocalInventor"
-          + "yB\003\340A\002\022,\n\010add_mask\030\004 \001(\0132\032.google.protob"
-          + "uf.FieldMask\022,\n\010add_time\030\005 \001(\0132\032.google."
-          + "protobuf.Timestamp\022\025\n\rallow_missing\030\006 \001("
-          + "\010\"\035\n\033AddLocalInventoriesMetadata\"\035\n\033AddL"
-          + "ocalInventoriesResponse\"\267\001\n\035RemoveLocalI"
-          + "nventoriesRequest\0226\n\007product\030\001 \001(\tB%\340A\002\372"
-          + "A\037\n\035retail.googleapis.com/Product\022\026\n\tpla"
-          + "ce_ids\030\002 \003(\tB\003\340A\002\022/\n\013remove_time\030\005 \001(\0132\032"
-          + ".google.protobuf.Timestamp\022\025\n\rallow_miss"
-          + "ing\030\003 \001(\010\" \n\036RemoveLocalInventoriesMetad"
-          + "ata\" \n\036RemoveLocalInventoriesResponse\"\313\001"
-          + "\n\036RemoveFulfillmentPlacesRequest\0226\n\007prod"
-          + "uct\030\001 \001(\tB%\340A\002\372A\037\n\035retail.googleapis.com"
-          + "/Product\022\021\n\004type\030\002 \001(\tB\003\340A\002\022\026\n\tplace_ids"
-          + "\030\003 \003(\tB\003\340A\002\022/\n\013remove_time\030\004 \001(\0132\032.googl"
-          + "e.protobuf.Timestamp\022\025\n\rallow_missing\030\005 "
-          + "\001(\010\"!\n\037RemoveFulfillmentPlacesMetadata\"!"
-          + "\n\037RemoveFulfillmentPlacesResponse2\306\030\n\016Pr"
-          + "oductService\022\333\001\n\rCreateProduct\0220.google."
-          + "cloud.retail.v2beta.CreateProductRequest"
-          + "\032#.google.cloud.retail.v2beta.Product\"s\332"
-          + "A\031parent,product,product_id\202\323\344\223\002Q\"F/v2be"
-          + "ta/{parent=projects/*/locations/*/catalo"
-          + "gs/*/branches/*}/products:\007product\022\270\001\n\nG"
-          + "etProduct\022-.google.cloud.retail.v2beta.G"
-          + "etProductRequest\032#.google.cloud.retail.v"
-          + "2beta.Product\"V\332A\004name\202\323\344\223\002I\022G/v2beta/{n"
-          + "ame=projects/*/locations/*/catalogs/*/br"
-          + "anches/*/products/**}\022\312\001\n\014ListProducts\022/"
-          + ".google.cloud.retail.v2beta.ListProducts"
-          + "Request\0320.google.cloud.retail.v2beta.Lis"
-          + "tProductsResponse\"W\332A\006parent\202\323\344\223\002H\022F/v2b"
-          + "eta/{parent=projects/*/locations/*/catal"
-          + "ogs/*/branches/*}/products\022\336\001\n\rUpdatePro"
-          + "duct\0220.google.cloud.retail.v2beta.Update"
-          + "ProductRequest\032#.google.cloud.retail.v2b"
-          + "eta.Product\"v\332A\023product,update_mask\202\323\344\223\002"
-          + "Z2O/v2beta/{product.name=projects/*/loca"
-          + "tions/*/catalogs/*/branches/*/products/*"
-          + "*}:\007product\022\261\001\n\rDeleteProduct\0220.google.c"
-          + "loud.retail.v2beta.DeleteProductRequest\032"
-          + "\026.google.protobuf.Empty\"V\332A\004name\202\323\344\223\002I*G"
-          + "/v2beta/{name=projects/*/locations/*/cat"
-          + "alogs/*/branches/*/products/**}\022\236\002\n\016Impo"
-          + "rtProducts\0221.google.cloud.retail.v2beta."
-          + "ImportProductsRequest\032\035.google.longrunni"
-          + "ng.Operation\"\271\001\312A^\n1google.cloud.retail."
-          + "v2beta.ImportProductsResponse\022)google.cl"
-          + "oud.retail.v2beta.ImportMetadata\202\323\344\223\002R\"M"
-          + "/v2beta/{parent=projects/*/locations/*/c"
-          + "atalogs/*/branches/*}/products:import:\001*"
-          + "\022\304\002\n\014SetInventory\022/.google.cloud.retail."
-          + "v2beta.SetInventoryRequest\032\035.google.long"
-          + "running.Operation\"\343\001\312Ab\n/google.cloud.re"
-          + "tail.v2beta.SetInventoryResponse\022/google"
-          + ".cloud.retail.v2beta.SetInventoryMetadat"
-          + "a\332A\022inventory,set_mask\202\323\344\223\002c\"^/v2beta/{i"
-          + "nventory.name=projects/*/locations/*/cat"
-          + "alogs/*/branches/*/products/**}:setInven"
-          + "tory:\001*\022\332\002\n\024AddFulfillmentPlaces\0227.googl"
-          + "e.cloud.retail.v2beta.AddFulfillmentPlac"
+          + "is.com/Product\"\261\001\n\023ListProductsRequest\0224"
+          + "\n\006parent\030\001 \001(\tB$\340A\002\372A\036\n\034retail.googleapi"
+          + "s.com/Branch\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_"
+          + "token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022-\n\tread_mask"
+          + "\030\005 \001(\0132\032.google.protobuf.FieldMask\"f\n\024Li"
+          + "stProductsResponse\0225\n\010products\030\001 \003(\0132#.g"
+          + "oogle.cloud.retail.v2beta.Product\022\027\n\017nex"
+          + "t_page_token\030\002 \001(\t\"\305\001\n\023SetInventoryReque"
+          + "st\022;\n\tinventory\030\001 \001(\0132#.google.cloud.ret"
+          + "ail.v2beta.ProductB\003\340A\002\022,\n\010set_mask\030\002 \001("
+          + "\0132\032.google.protobuf.FieldMask\022,\n\010set_tim"
+          + "e\030\003 \001(\0132\032.google.protobuf.Timestamp\022\025\n\ra"
+          + "llow_missing\030\004 \001(\010\"\026\n\024SetInventoryMetada"
+          + "ta\"\026\n\024SetInventoryResponse\"\305\001\n\033AddFulfil"
+          + "lmentPlacesRequest\0226\n\007product\030\001 \001(\tB%\340A\002"
+          + "\372A\037\n\035retail.googleapis.com/Product\022\021\n\004ty"
+          + "pe\030\002 \001(\tB\003\340A\002\022\026\n\tplace_ids\030\003 \003(\tB\003\340A\002\022,\n"
+          + "\010add_time\030\004 \001(\0132\032.google.protobuf.Timest"
+          + "amp\022\025\n\rallow_missing\030\005 \001(\010\"\036\n\034AddFulfill"
+          + "mentPlacesMetadata\"\036\n\034AddFulfillmentPlac"
+          + "esResponse\"\223\002\n\032AddLocalInventoriesReques"
+          + "t\0226\n\007product\030\001 \001(\tB%\340A\002\372A\037\n\035retail.googl"
+          + "eapis.com/Product\022J\n\021local_inventories\030\002"
+          + " \003(\0132*.google.cloud.retail.v2beta.LocalI"
+          + "nventoryB\003\340A\002\022,\n\010add_mask\030\004 \001(\0132\032.google"
+          + ".protobuf.FieldMask\022,\n\010add_time\030\005 \001(\0132\032."
+          + "google.protobuf.Timestamp\022\025\n\rallow_missi"
+          + "ng\030\006 \001(\010\"\035\n\033AddLocalInventoriesMetadata\""
+          + "\035\n\033AddLocalInventoriesResponse\"\267\001\n\035Remov"
+          + "eLocalInventoriesRequest\0226\n\007product\030\001 \001("
+          + "\tB%\340A\002\372A\037\n\035retail.googleapis.com/Product"
+          + "\022\026\n\tplace_ids\030\002 \003(\tB\003\340A\002\022/\n\013remove_time\030"
+          + "\005 \001(\0132\032.google.protobuf.Timestamp\022\025\n\rall"
+          + "ow_missing\030\003 \001(\010\" \n\036RemoveLocalInventori"
+          + "esMetadata\" \n\036RemoveLocalInventoriesResp"
+          + "onse\"\313\001\n\036RemoveFulfillmentPlacesRequest\022"
+          + "6\n\007product\030\001 \001(\tB%\340A\002\372A\037\n\035retail.googlea"
+          + "pis.com/Product\022\021\n\004type\030\002 \001(\tB\003\340A\002\022\026\n\tpl"
+          + "ace_ids\030\003 \003(\tB\003\340A\002\022/\n\013remove_time\030\004 \001(\0132"
+          + "\032.google.protobuf.Timestamp\022\025\n\rallow_mis"
+          + "sing\030\005 \001(\010\"!\n\037RemoveFulfillmentPlacesMet"
+          + "adata\"!\n\037RemoveFulfillmentPlacesResponse"
+          + "2\352\032\n\016ProductService\022\333\001\n\rCreateProduct\0220."
+          + "google.cloud.retail.v2beta.CreateProduct"
+          + "Request\032#.google.cloud.retail.v2beta.Pro"
+          + "duct\"s\332A\031parent,product,product_id\202\323\344\223\002Q"
+          + "\"F/v2beta/{parent=projects/*/locations/*"
+          + "/catalogs/*/branches/*}/products:\007produc"
+          + "t\022\270\001\n\nGetProduct\022-.google.cloud.retail.v"
+          + "2beta.GetProductRequest\032#.google.cloud.r"
+          + "etail.v2beta.Product\"V\332A\004name\202\323\344\223\002I\022G/v2"
+          + "beta/{name=projects/*/locations/*/catalo"
+          + "gs/*/branches/*/products/**}\022\312\001\n\014ListPro"
+          + "ducts\022/.google.cloud.retail.v2beta.ListP"
+          + "roductsRequest\0320.google.cloud.retail.v2b"
+          + "eta.ListProductsResponse\"W\332A\006parent\202\323\344\223\002"
+          + "H\022F/v2beta/{parent=projects/*/locations/"
+          + "*/catalogs/*/branches/*}/products\022\336\001\n\rUp"
+          + "dateProduct\0220.google.cloud.retail.v2beta"
+          + ".UpdateProductRequest\032#.google.cloud.ret"
+          + "ail.v2beta.Product\"v\332A\023product,update_ma"
+          + "sk\202\323\344\223\002Z2O/v2beta/{product.name=projects"
+          + "/*/locations/*/catalogs/*/branches/*/pro"
+          + "ducts/**}:\007product\022\261\001\n\rDeleteProduct\0220.g"
+          + "oogle.cloud.retail.v2beta.DeleteProductR"
+          + "equest\032\026.google.protobuf.Empty\"V\332A\004name\202"
+          + "\323\344\223\002I*G/v2beta/{name=projects/*/location"
+          + "s/*/catalogs/*/branches/*/products/**}\022\241"
+          + "\002\n\rPurgeProducts\0220.google.cloud.retail.v"
+          + "2beta.PurgeProductsRequest\032\035.google.long"
+          + "running.Operation\"\276\001\312Ad\n0google.cloud.re"
+          + "tail.v2beta.PurgeProductsResponse\0220googl"
+          + "e.cloud.retail.v2beta.PurgeProductsMetad"
+          + "ata\202\323\344\223\002Q\"L/v2beta/{parent=projects/*/lo"
+          + "cations/*/catalogs/*/branches/*}/product"
+          + "s:purge:\001*\022\236\002\n\016ImportProducts\0221.google.c"
+          + "loud.retail.v2beta.ImportProductsRequest"
+          + "\032\035.google.longrunning.Operation\"\271\001\312A^\n1g"
+          + "oogle.cloud.retail.v2beta.ImportProducts"
+          + "Response\022)google.cloud.retail.v2beta.Imp"
+          + "ortMetadata\202\323\344\223\002R\"M/v2beta/{parent=proje"
+          + "cts/*/locations/*/catalogs/*/branches/*}"
+          + "/products:import:\001*\022\304\002\n\014SetInventory\022/.g"
+          + "oogle.cloud.retail.v2beta.SetInventoryRe"
+          + "quest\032\035.google.longrunning.Operation\"\343\001\312"
+          + "Ab\n/google.cloud.retail.v2beta.SetInvent"
+          + "oryResponse\022/google.cloud.retail.v2beta."
+          + "SetInventoryMetadata\332A\022inventory,set_mas"
+          + "k\202\323\344\223\002c\"^/v2beta/{inventory.name=project"
+          + "s/*/locations/*/catalogs/*/branches/*/pr"
+          + "oducts/**}:setInventory:\001*\022\332\002\n\024AddFulfil"
+          + "lmentPlaces\0227.google.cloud.retail.v2beta"
+          + ".AddFulfillmentPlacesRequest\032\035.google.lo"
+          + "ngrunning.Operation\"\351\001\312Ar\n7google.cloud."
+          + "retail.v2beta.AddFulfillmentPlacesRespon"
+          + "se\0227google.cloud.retail.v2beta.AddFulfil"
+          + "lmentPlacesMetadata\332A\007product\202\323\344\223\002d\"_/v2"
+          + "beta/{product=projects/*/locations/*/cat"
+          + "alogs/*/branches/*/products/**}:addFulfi"
+          + "llmentPlaces:\001*\022\351\002\n\027RemoveFulfillmentPla"
+          + "ces\022:.google.cloud.retail.v2beta.RemoveF"
+          + "ulfillmentPlacesRequest\032\035.google.longrun"
+          + "ning.Operation\"\362\001\312Ax\n:google.cloud.retai"
+          + "l.v2beta.RemoveFulfillmentPlacesResponse"
+          + "\022:google.cloud.retail.v2beta.RemoveFulfi"
+          + "llmentPlacesMetadata\332A\007product\202\323\344\223\002g\"b/v"
+          + "2beta/{product=projects/*/locations/*/ca"
+          + "talogs/*/branches/*/products/**}:removeF"
+          + "ulfillmentPlaces:\001*\022\325\002\n\023AddLocalInventor"
+          + "ies\0226.google.cloud.retail.v2beta.AddLoca"
+          + "lInventoriesRequest\032\035.google.longrunning"
+          + ".Operation\"\346\001\312Ap\n6google.cloud.retail.v2"
+          + "beta.AddLocalInventoriesResponse\0226google"
+          + ".cloud.retail.v2beta.AddLocalInventories"
+          + "Metadata\332A\007product\202\323\344\223\002c\"^/v2beta/{produ"
+          + "ct=projects/*/locations/*/catalogs/*/bra"
+          + "nches/*/products/**}:addLocalInventories"
+          + ":\001*\022\344\002\n\026RemoveLocalInventories\0229.google."
+          + "cloud.retail.v2beta.RemoveLocalInventori"
           + "esRequest\032\035.google.longrunning.Operation"
-          + "\"\351\001\312Ar\n7google.cloud.retail.v2beta.AddFu"
-          + "lfillmentPlacesResponse\0227google.cloud.re"
-          + "tail.v2beta.AddFulfillmentPlacesMetadata"
-          + "\332A\007product\202\323\344\223\002d\"_/v2beta/{product=proje"
-          + "cts/*/locations/*/catalogs/*/branches/*/"
-          + "products/**}:addFulfillmentPlaces:\001*\022\351\002\n"
-          + "\027RemoveFulfillmentPlaces\022:.google.cloud."
-          + "retail.v2beta.RemoveFulfillmentPlacesReq"
-          + "uest\032\035.google.longrunning.Operation\"\362\001\312A"
-          + "x\n:google.cloud.retail.v2beta.RemoveFulf"
-          + "illmentPlacesResponse\022:google.cloud.reta"
-          + "il.v2beta.RemoveFulfillmentPlacesMetadat"
-          + "a\332A\007product\202\323\344\223\002g\"b/v2beta/{product=proj"
-          + "ects/*/locations/*/catalogs/*/branches/*"
-          + "/products/**}:removeFulfillmentPlaces:\001*"
-          + "\022\325\002\n\023AddLocalInventories\0226.google.cloud."
-          + "retail.v2beta.AddLocalInventoriesRequest"
-          + "\032\035.google.longrunning.Operation\"\346\001\312Ap\n6g"
-          + "oogle.cloud.retail.v2beta.AddLocalInvent"
-          + "oriesResponse\0226google.cloud.retail.v2bet"
-          + "a.AddLocalInventoriesMetadata\332A\007product\202"
-          + "\323\344\223\002c\"^/v2beta/{product=projects/*/locat"
-          + "ions/*/catalogs/*/branches/*/products/**"
-          + "}:addLocalInventories:\001*\022\344\002\n\026RemoveLocal"
-          + "Inventories\0229.google.cloud.retail.v2beta"
-          + ".RemoveLocalInventoriesRequest\032\035.google."
-          + "longrunning.Operation\"\357\001\312Av\n9google.clou"
-          + "d.retail.v2beta.RemoveLocalInventoriesRe"
-          + "sponse\0229google.cloud.retail.v2beta.Remov"
-          + "eLocalInventoriesMetadata\332A\007product\202\323\344\223\002"
-          + "f\"a/v2beta/{product=projects/*/locations"
-          + "/*/catalogs/*/branches/*/products/**}:re"
-          + "moveLocalInventories:\001*\032I\312A\025retail.googl"
-          + "eapis.com\322A.https://www.googleapis.com/a"
-          + "uth/cloud-platformB\322\001\n\036com.google.cloud."
-          + "retail.v2betaB\023ProductServiceProtoP\001Z6cl"
-          + "oud.google.com/go/retail/apiv2beta/retai"
-          + "lpb;retailpb\242\002\006RETAIL\252\002\032Google.Cloud.Ret"
-          + "ail.V2Beta\312\002\032Google\\Cloud\\Retail\\V2beta\352"
-          + "\002\035Google::Cloud::Retail::V2betab\006proto3"
+          + "\"\357\001\312Av\n9google.cloud.retail.v2beta.Remov"
+          + "eLocalInventoriesResponse\0229google.cloud."
+          + "retail.v2beta.RemoveLocalInventoriesMeta"
+          + "data\332A\007product\202\323\344\223\002f\"a/v2beta/{product=p"
+          + "rojects/*/locations/*/catalogs/*/branche"
+          + "s/*/products/**}:removeLocalInventories:"
+          + "\001*\032I\312A\025retail.googleapis.com\322A.https://w"
+          + "ww.googleapis.com/auth/cloud-platformB\322\001"
+          + "\n\036com.google.cloud.retail.v2betaB\023Produc"
+          + "tServiceProtoP\001Z6cloud.google.com/go/ret"
+          + "ail/apiv2beta/retailpb;retailpb\242\002\006RETAIL"
+          + "\252\002\032Google.Cloud.Retail.V2Beta\312\002\032Google\\C"
+          + "loud\\Retail\\V2beta\352\002\035Google::Cloud::Reta"
+          + "il::V2betab\006proto3"
     };
     descriptor =
         com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -282,6 +291,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
               com.google.cloud.retail.v2beta.CommonProto.getDescriptor(),
               com.google.cloud.retail.v2beta.ImportConfigProto.getDescriptor(),
               com.google.cloud.retail.v2beta.ProductProto.getDescriptor(),
+              com.google.cloud.retail.v2beta.PurgeConfigProto.getDescriptor(),
               com.google.longrunning.OperationsProto.getDescriptor(),
               com.google.protobuf.EmptyProto.getDescriptor(),
               com.google.protobuf.FieldMaskProto.getDescriptor(),
@@ -453,6 +463,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
     com.google.cloud.retail.v2beta.CommonProto.getDescriptor();
     com.google.cloud.retail.v2beta.ImportConfigProto.getDescriptor();
     com.google.cloud.retail.v2beta.ProductProto.getDescriptor();
+    com.google.cloud.retail.v2beta.PurgeConfigProto.getDescriptor();
     com.google.longrunning.OperationsProto.getDescriptor();
     com.google.protobuf.EmptyProto.getDescriptor();
     com.google.protobuf.FieldMaskProto.getDescriptor();
diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/Promotion.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/Promotion.java
index c6f93d97c3a5..fc1954cf67cf 100644
--- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/Promotion.java
+++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/Promotion.java
@@ -78,8 +78,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT error is
    * returned.
    *
-   * Google Merchant Center property
-   * [promotion](https://support.google.com/merchants/answer/7050148).
+   * Corresponds to Google Merchant Center property
+   * [promotion_id](https://support.google.com/merchants/answer/7050148).
    * 
* * string promotion_id = 1; @@ -109,8 +109,8 @@ public java.lang.String getPromotionId() { * id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT error is * returned. * - * Google Merchant Center property - * [promotion](https://support.google.com/merchants/answer/7050148). + * Corresponds to Google Merchant Center property + * [promotion_id](https://support.google.com/merchants/answer/7050148). *
* * string promotion_id = 1; @@ -482,8 +482,8 @@ public Builder mergeFrom( * id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT error is * returned. * - * Google Merchant Center property - * [promotion](https://support.google.com/merchants/answer/7050148). + * Corresponds to Google Merchant Center property + * [promotion_id](https://support.google.com/merchants/answer/7050148). *
* * string promotion_id = 1; @@ -512,8 +512,8 @@ public java.lang.String getPromotionId() { * id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT error is * returned. * - * Google Merchant Center property - * [promotion](https://support.google.com/merchants/answer/7050148). + * Corresponds to Google Merchant Center property + * [promotion_id](https://support.google.com/merchants/answer/7050148). *
* * string promotion_id = 1; @@ -542,8 +542,8 @@ public com.google.protobuf.ByteString getPromotionIdBytes() { * id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT error is * returned. * - * Google Merchant Center property - * [promotion](https://support.google.com/merchants/answer/7050148). + * Corresponds to Google Merchant Center property + * [promotion_id](https://support.google.com/merchants/answer/7050148). *
* * string promotion_id = 1; @@ -571,8 +571,8 @@ public Builder setPromotionId(java.lang.String value) { * id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT error is * returned. * - * Google Merchant Center property - * [promotion](https://support.google.com/merchants/answer/7050148). + * Corresponds to Google Merchant Center property + * [promotion_id](https://support.google.com/merchants/answer/7050148). *
* * string promotion_id = 1; @@ -596,8 +596,8 @@ public Builder clearPromotionId() { * id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT error is * returned. * - * Google Merchant Center property - * [promotion](https://support.google.com/merchants/answer/7050148). + * Corresponds to Google Merchant Center property + * [promotion_id](https://support.google.com/merchants/answer/7050148). *
* * string promotion_id = 1; diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/PromotionOrBuilder.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/PromotionOrBuilder.java index 44a056f3ca72..11a7481b32ce 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/PromotionOrBuilder.java +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/PromotionOrBuilder.java @@ -35,8 +35,8 @@ public interface PromotionOrBuilder * id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT error is * returned. * - * Google Merchant Center property - * [promotion](https://support.google.com/merchants/answer/7050148). + * Corresponds to Google Merchant Center property + * [promotion_id](https://support.google.com/merchants/answer/7050148). *
* * string promotion_id = 1; @@ -55,8 +55,8 @@ public interface PromotionOrBuilder * id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT error is * returned. * - * Google Merchant Center property - * [promotion](https://support.google.com/merchants/answer/7050148). + * Corresponds to Google Merchant Center property + * [promotion_id](https://support.google.com/merchants/answer/7050148). *
* * string promotion_id = 1; diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/PurgeConfigProto.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/PurgeConfigProto.java index f48d892f8490..21af09b7463a 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/PurgeConfigProto.java +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/PurgeConfigProto.java @@ -32,6 +32,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_retail_v2beta_PurgeMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_retail_v2beta_PurgeMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2beta_PurgeProductsMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2beta_PurgeProductsMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2beta_PurgeProductsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2beta_PurgeProductsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_retail_v2beta_PurgeProductsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_retail_v2beta_PurgeProductsResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_retail_v2beta_PurgeUserEventsRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -52,17 +64,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n-google/cloud/retail/v2beta/purge_confi" + "g.proto\022\032google.cloud.retail.v2beta\032\037goo" + "gle/api/field_behavior.proto\032\031google/api" - + "/resource.proto\"\017\n\rPurgeMetadata\"s\n\026Purg" - + "eUserEventsRequest\0225\n\006parent\030\001 \001(\tB%\340A\002\372" - + "A\037\n\035retail.googleapis.com/Catalog\022\023\n\006fil" - + "ter\030\002 \001(\tB\003\340A\002\022\r\n\005force\030\003 \001(\010\"6\n\027PurgeUs" - + "erEventsResponse\022\033\n\023purged_events_count\030" - + "\001 \001(\003B\317\001\n\036com.google.cloud.retail.v2beta" - + "B\020PurgeConfigProtoP\001Z6cloud.google.com/g" - + "o/retail/apiv2beta/retailpb;retailpb\242\002\006R" - + "ETAIL\252\002\032Google.Cloud.Retail.V2Beta\312\002\032Goo" - + "gle\\Cloud\\Retail\\V2beta\352\002\035Google::Cloud:" - + ":Retail::V2betab\006proto3" + + "/resource.proto\032\037google/protobuf/timesta" + + "mp.proto\"\017\n\rPurgeMetadata\"\247\001\n\025PurgeProdu" + + "ctsMetadata\022/\n\013create_time\030\001 \001(\0132\032.googl" + + "e.protobuf.Timestamp\022/\n\013update_time\030\002 \001(" + + "\0132\032.google.protobuf.Timestamp\022\025\n\rsuccess" + + "_count\030\003 \001(\003\022\025\n\rfailure_count\030\004 \001(\003\"p\n\024P" + + "urgeProductsRequest\0224\n\006parent\030\001 \001(\tB$\340A\002" + + "\372A\036\n\034retail.googleapis.com/Branch\022\023\n\006fil" + + "ter\030\002 \001(\tB\003\340A\002\022\r\n\005force\030\003 \001(\010\"f\n\025PurgePr" + + "oductsResponse\022\023\n\013purge_count\030\001 \001(\003\0228\n\014p" + + "urge_sample\030\002 \003(\tB\"\372A\037\n\035retail.googleapi" + + "s.com/Product\"s\n\026PurgeUserEventsRequest\022" + + "5\n\006parent\030\001 \001(\tB%\340A\002\372A\037\n\035retail.googleap" + + "is.com/Catalog\022\023\n\006filter\030\002 \001(\tB\003\340A\002\022\r\n\005f" + + "orce\030\003 \001(\010\"6\n\027PurgeUserEventsResponse\022\033\n" + + "\023purged_events_count\030\001 \001(\003B\317\001\n\036com.googl" + + "e.cloud.retail.v2betaB\020PurgeConfigProtoP" + + "\001Z6cloud.google.com/go/retail/apiv2beta/" + + "retailpb;retailpb\242\002\006RETAIL\252\002\032Google.Clou" + + "d.Retail.V2Beta\312\002\032Google\\Cloud\\Retail\\V2" + + "beta\352\002\035Google::Cloud::Retail::V2betab\006pr" + + "oto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -70,6 +93,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_google_cloud_retail_v2beta_PurgeMetadata_descriptor = getDescriptor().getMessageTypes().get(0); @@ -77,8 +101,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_retail_v2beta_PurgeMetadata_descriptor, new java.lang.String[] {}); - internal_static_google_cloud_retail_v2beta_PurgeUserEventsRequest_descriptor = + internal_static_google_cloud_retail_v2beta_PurgeProductsMetadata_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_retail_v2beta_PurgeProductsMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2beta_PurgeProductsMetadata_descriptor, + new java.lang.String[] { + "CreateTime", "UpdateTime", "SuccessCount", "FailureCount", + }); + internal_static_google_cloud_retail_v2beta_PurgeProductsRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_retail_v2beta_PurgeProductsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2beta_PurgeProductsRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "Force", + }); + internal_static_google_cloud_retail_v2beta_PurgeProductsResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_retail_v2beta_PurgeProductsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_retail_v2beta_PurgeProductsResponse_descriptor, + new java.lang.String[] { + "PurgeCount", "PurgeSample", + }); + internal_static_google_cloud_retail_v2beta_PurgeUserEventsRequest_descriptor = + getDescriptor().getMessageTypes().get(4); internal_static_google_cloud_retail_v2beta_PurgeUserEventsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_retail_v2beta_PurgeUserEventsRequest_descriptor, @@ -86,7 +134,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Filter", "Force", }); internal_static_google_cloud_retail_v2beta_PurgeUserEventsResponse_descriptor = - getDescriptor().getMessageTypes().get(2); + getDescriptor().getMessageTypes().get(5); internal_static_google_cloud_retail_v2beta_PurgeUserEventsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_retail_v2beta_PurgeUserEventsResponse_descriptor, @@ -101,6 +149,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { descriptor, registry); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/PurgeProductsMetadata.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/PurgeProductsMetadata.java new file mode 100644 index 000000000000..1ff852935245 --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/PurgeProductsMetadata.java @@ -0,0 +1,1181 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/retail/v2beta/purge_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.retail.v2beta; + +/** + * + * + *
+ * Metadata related to the progress of the PurgeProducts operation.
+ * This will be returned by the google.longrunning.Operation.metadata field.
+ * 
+ * + * Protobuf type {@code google.cloud.retail.v2beta.PurgeProductsMetadata} + */ +public final class PurgeProductsMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2beta.PurgeProductsMetadata) + PurgeProductsMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use PurgeProductsMetadata.newBuilder() to construct. + private PurgeProductsMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PurgeProductsMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PurgeProductsMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2beta.PurgeConfigProto + .internal_static_google_cloud_retail_v2beta_PurgeProductsMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2beta.PurgeConfigProto + .internal_static_google_cloud_retail_v2beta_PurgeProductsMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2beta.PurgeProductsMetadata.class, + com.google.cloud.retail.v2beta.PurgeProductsMetadata.Builder.class); + } + + private int bitField0_; + public static final int CREATE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Operation last update time. If the operation is done, this is also the
+   * finish time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 2; + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * Operation last update time. If the operation is done, this is also the
+   * finish time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 2; + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * Operation last update time. If the operation is done, this is also the
+   * finish time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int SUCCESS_COUNT_FIELD_NUMBER = 3; + private long successCount_ = 0L; + /** + * + * + *
+   * Count of entries that were deleted successfully.
+   * 
+ * + * int64 success_count = 3; + * + * @return The successCount. + */ + @java.lang.Override + public long getSuccessCount() { + return successCount_; + } + + public static final int FAILURE_COUNT_FIELD_NUMBER = 4; + private long failureCount_ = 0L; + /** + * + * + *
+   * Count of entries that encountered errors while processing.
+   * 
+ * + * int64 failure_count = 4; + * + * @return The failureCount. + */ + @java.lang.Override + public long getFailureCount() { + return failureCount_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateTime()); + } + if (successCount_ != 0L) { + output.writeInt64(3, successCount_); + } + if (failureCount_ != 0L) { + output.writeInt64(4, failureCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateTime()); + } + if (successCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, successCount_); + } + if (failureCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, failureCount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.retail.v2beta.PurgeProductsMetadata)) { + return super.equals(obj); + } + com.google.cloud.retail.v2beta.PurgeProductsMetadata other = + (com.google.cloud.retail.v2beta.PurgeProductsMetadata) obj; + + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (getSuccessCount() != other.getSuccessCount()) return false; + if (getFailureCount() != other.getFailureCount()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + SUCCESS_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSuccessCount()); + hash = (37 * hash) + FAILURE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailureCount()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2beta.PurgeProductsMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.PurgeProductsMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.PurgeProductsMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.PurgeProductsMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.PurgeProductsMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.PurgeProductsMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.PurgeProductsMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.PurgeProductsMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.PurgeProductsMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.PurgeProductsMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.PurgeProductsMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.PurgeProductsMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.retail.v2beta.PurgeProductsMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Metadata related to the progress of the PurgeProducts operation.
+   * This will be returned by the google.longrunning.Operation.metadata field.
+   * 
+ * + * Protobuf type {@code google.cloud.retail.v2beta.PurgeProductsMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2beta.PurgeProductsMetadata) + com.google.cloud.retail.v2beta.PurgeProductsMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2beta.PurgeConfigProto + .internal_static_google_cloud_retail_v2beta_PurgeProductsMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2beta.PurgeConfigProto + .internal_static_google_cloud_retail_v2beta_PurgeProductsMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2beta.PurgeProductsMetadata.class, + com.google.cloud.retail.v2beta.PurgeProductsMetadata.Builder.class); + } + + // Construct using com.google.cloud.retail.v2beta.PurgeProductsMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + successCount_ = 0L; + failureCount_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2beta.PurgeConfigProto + .internal_static_google_cloud_retail_v2beta_PurgeProductsMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.PurgeProductsMetadata getDefaultInstanceForType() { + return com.google.cloud.retail.v2beta.PurgeProductsMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.PurgeProductsMetadata build() { + com.google.cloud.retail.v2beta.PurgeProductsMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.PurgeProductsMetadata buildPartial() { + com.google.cloud.retail.v2beta.PurgeProductsMetadata result = + new com.google.cloud.retail.v2beta.PurgeProductsMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.retail.v2beta.PurgeProductsMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.successCount_ = successCount_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.failureCount_ = failureCount_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.retail.v2beta.PurgeProductsMetadata) { + return mergeFrom((com.google.cloud.retail.v2beta.PurgeProductsMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.retail.v2beta.PurgeProductsMetadata other) { + if (other == com.google.cloud.retail.v2beta.PurgeProductsMetadata.getDefaultInstance()) + return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.getSuccessCount() != 0L) { + setSuccessCount(other.getSuccessCount()); + } + if (other.getFailureCount() != 0L) { + setFailureCount(other.getFailureCount()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + successCount_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + failureCount_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000001); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Operation create time.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
+     * Operation last update time. If the operation is done, this is also the
+     * finish time.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private long successCount_; + /** + * + * + *
+     * Count of entries that were deleted successfully.
+     * 
+ * + * int64 success_count = 3; + * + * @return The successCount. + */ + @java.lang.Override + public long getSuccessCount() { + return successCount_; + } + /** + * + * + *
+     * Count of entries that were deleted successfully.
+     * 
+ * + * int64 success_count = 3; + * + * @param value The successCount to set. + * @return This builder for chaining. + */ + public Builder setSuccessCount(long value) { + + successCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Count of entries that were deleted successfully.
+     * 
+ * + * int64 success_count = 3; + * + * @return This builder for chaining. + */ + public Builder clearSuccessCount() { + bitField0_ = (bitField0_ & ~0x00000004); + successCount_ = 0L; + onChanged(); + return this; + } + + private long failureCount_; + /** + * + * + *
+     * Count of entries that encountered errors while processing.
+     * 
+ * + * int64 failure_count = 4; + * + * @return The failureCount. + */ + @java.lang.Override + public long getFailureCount() { + return failureCount_; + } + /** + * + * + *
+     * Count of entries that encountered errors while processing.
+     * 
+ * + * int64 failure_count = 4; + * + * @param value The failureCount to set. + * @return This builder for chaining. + */ + public Builder setFailureCount(long value) { + + failureCount_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Count of entries that encountered errors while processing.
+     * 
+ * + * int64 failure_count = 4; + * + * @return This builder for chaining. + */ + public Builder clearFailureCount() { + bitField0_ = (bitField0_ & ~0x00000008); + failureCount_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2beta.PurgeProductsMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2beta.PurgeProductsMetadata) + private static final com.google.cloud.retail.v2beta.PurgeProductsMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.retail.v2beta.PurgeProductsMetadata(); + } + + public static com.google.cloud.retail.v2beta.PurgeProductsMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PurgeProductsMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.PurgeProductsMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/PurgeProductsMetadataOrBuilder.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/PurgeProductsMetadataOrBuilder.java new file mode 100644 index 000000000000..c5bf8ebb895c --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/PurgeProductsMetadataOrBuilder.java @@ -0,0 +1,125 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/retail/v2beta/purge_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.retail.v2beta; + +public interface PurgeProductsMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2beta.PurgeProductsMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Operation create time.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Operation last update time. If the operation is done, this is also the
+   * finish time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 2; + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Operation last update time. If the operation is done, this is also the
+   * finish time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 2; + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Operation last update time. If the operation is done, this is also the
+   * finish time.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Count of entries that were deleted successfully.
+   * 
+ * + * int64 success_count = 3; + * + * @return The successCount. + */ + long getSuccessCount(); + + /** + * + * + *
+   * Count of entries that encountered errors while processing.
+   * 
+ * + * int64 failure_count = 4; + * + * @return The failureCount. + */ + long getFailureCount(); +} diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/PurgeProductsRequest.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/PurgeProductsRequest.java new file mode 100644 index 000000000000..ccaa4a08ce09 --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/PurgeProductsRequest.java @@ -0,0 +1,1209 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/retail/v2beta/purge_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.retail.v2beta; + +/** + * + * + *
+ * Request message for PurgeProducts method.
+ * 
+ * + * Protobuf type {@code google.cloud.retail.v2beta.PurgeProductsRequest} + */ +public final class PurgeProductsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2beta.PurgeProductsRequest) + PurgeProductsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use PurgeProductsRequest.newBuilder() to construct. + private PurgeProductsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PurgeProductsRequest() { + parent_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PurgeProductsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2beta.PurgeConfigProto + .internal_static_google_cloud_retail_v2beta_PurgeProductsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2beta.PurgeConfigProto + .internal_static_google_cloud_retail_v2beta_PurgeProductsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2beta.PurgeProductsRequest.class, + com.google.cloud.retail.v2beta.PurgeProductsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The resource name of the branch under which the products are
+   * created. The format is
+   * `projects/${projectId}/locations/global/catalogs/${catalogId}/branches/${branchId}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the branch under which the products are
+   * created. The format is
+   * `projects/${projectId}/locations/global/catalogs/${catalogId}/branches/${branchId}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
+   * Required. The filter string to specify the products to be deleted with a
+   * length limit of 5,000 characters.
+   *
+   * Empty string filter is not allowed. "*" implies delete all items in a
+   * branch.
+   *
+   * The eligible fields for filtering are:
+   *
+   * * `availability`: Double quoted
+   * [Product.availability][google.cloud.retail.v2beta.Product.availability]
+   * string.
+   * * `create_time` : in ISO 8601 "zulu" format.
+   *
+   * Supported syntax:
+   *
+   * * Comparators (">", "<", ">=", "<=", "=").
+   *   Examples:
+   *   * create_time <= "2015-02-13T17:05:46Z"
+   *   * availability = "IN_STOCK"
+   *
+   * * Conjunctions ("AND")
+   *   Examples:
+   *   * create_time <= "2015-02-13T17:05:46Z" AND availability = "PREORDER"
+   *
+   * * Disjunctions ("OR")
+   *   Examples:
+   *   * create_time <= "2015-02-13T17:05:46Z" OR availability = "IN_STOCK"
+   *
+   * * Can support nested queries.
+   *   Examples:
+   *   * (create_time <= "2015-02-13T17:05:46Z" AND availability = "PREORDER")
+   *   OR (create_time >= "2015-02-14T13:03:32Z" AND availability = "IN_STOCK")
+   *
+   * * Filter Limits:
+   *   * Filter should not contain more than 6 conditions.
+   *   * Max nesting depth should not exceed 2 levels.
+   *
+   * Examples queries:
+   * * Delete back order products created before a timestamp.
+   *   create_time <= "2015-02-13T17:05:46Z" OR availability = "BACKORDER"
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The filter string to specify the products to be deleted with a
+   * length limit of 5,000 characters.
+   *
+   * Empty string filter is not allowed. "*" implies delete all items in a
+   * branch.
+   *
+   * The eligible fields for filtering are:
+   *
+   * * `availability`: Double quoted
+   * [Product.availability][google.cloud.retail.v2beta.Product.availability]
+   * string.
+   * * `create_time` : in ISO 8601 "zulu" format.
+   *
+   * Supported syntax:
+   *
+   * * Comparators (">", "<", ">=", "<=", "=").
+   *   Examples:
+   *   * create_time <= "2015-02-13T17:05:46Z"
+   *   * availability = "IN_STOCK"
+   *
+   * * Conjunctions ("AND")
+   *   Examples:
+   *   * create_time <= "2015-02-13T17:05:46Z" AND availability = "PREORDER"
+   *
+   * * Disjunctions ("OR")
+   *   Examples:
+   *   * create_time <= "2015-02-13T17:05:46Z" OR availability = "IN_STOCK"
+   *
+   * * Can support nested queries.
+   *   Examples:
+   *   * (create_time <= "2015-02-13T17:05:46Z" AND availability = "PREORDER")
+   *   OR (create_time >= "2015-02-14T13:03:32Z" AND availability = "IN_STOCK")
+   *
+   * * Filter Limits:
+   *   * Filter should not contain more than 6 conditions.
+   *   * Max nesting depth should not exceed 2 levels.
+   *
+   * Examples queries:
+   * * Delete back order products created before a timestamp.
+   *   create_time <= "2015-02-13T17:05:46Z" OR availability = "BACKORDER"
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FORCE_FIELD_NUMBER = 3; + private boolean force_ = false; + /** + * + * + *
+   * Actually perform the purge.
+   * If `force` is set to false, the method will return the expected purge count
+   * without deleting any products.
+   * 
+ * + * bool force = 3; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); + } + if (force_ != false) { + output.writeBool(3, force_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); + } + if (force_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, force_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.retail.v2beta.PurgeProductsRequest)) { + return super.equals(obj); + } + com.google.cloud.retail.v2beta.PurgeProductsRequest other = + (com.google.cloud.retail.v2beta.PurgeProductsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (getForce() != other.getForce()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + FORCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2beta.PurgeProductsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.PurgeProductsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.PurgeProductsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.PurgeProductsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.PurgeProductsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.PurgeProductsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.PurgeProductsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.PurgeProductsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.PurgeProductsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.PurgeProductsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.PurgeProductsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.PurgeProductsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.retail.v2beta.PurgeProductsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for PurgeProducts method.
+   * 
+ * + * Protobuf type {@code google.cloud.retail.v2beta.PurgeProductsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2beta.PurgeProductsRequest) + com.google.cloud.retail.v2beta.PurgeProductsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2beta.PurgeConfigProto + .internal_static_google_cloud_retail_v2beta_PurgeProductsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2beta.PurgeConfigProto + .internal_static_google_cloud_retail_v2beta_PurgeProductsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2beta.PurgeProductsRequest.class, + com.google.cloud.retail.v2beta.PurgeProductsRequest.Builder.class); + } + + // Construct using com.google.cloud.retail.v2beta.PurgeProductsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + filter_ = ""; + force_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2beta.PurgeConfigProto + .internal_static_google_cloud_retail_v2beta_PurgeProductsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.PurgeProductsRequest getDefaultInstanceForType() { + return com.google.cloud.retail.v2beta.PurgeProductsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.PurgeProductsRequest build() { + com.google.cloud.retail.v2beta.PurgeProductsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.PurgeProductsRequest buildPartial() { + com.google.cloud.retail.v2beta.PurgeProductsRequest result = + new com.google.cloud.retail.v2beta.PurgeProductsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.retail.v2beta.PurgeProductsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.force_ = force_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.retail.v2beta.PurgeProductsRequest) { + return mergeFrom((com.google.cloud.retail.v2beta.PurgeProductsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.retail.v2beta.PurgeProductsRequest other) { + if (other == com.google.cloud.retail.v2beta.PurgeProductsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getForce() != false) { + setForce(other.getForce()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + force_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the branch under which the products are
+     * created. The format is
+     * `projects/${projectId}/locations/global/catalogs/${catalogId}/branches/${branchId}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the branch under which the products are
+     * created. The format is
+     * `projects/${projectId}/locations/global/catalogs/${catalogId}/branches/${branchId}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the branch under which the products are
+     * created. The format is
+     * `projects/${projectId}/locations/global/catalogs/${catalogId}/branches/${branchId}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the branch under which the products are
+     * created. The format is
+     * `projects/${projectId}/locations/global/catalogs/${catalogId}/branches/${branchId}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the branch under which the products are
+     * created. The format is
+     * `projects/${projectId}/locations/global/catalogs/${catalogId}/branches/${branchId}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * Required. The filter string to specify the products to be deleted with a
+     * length limit of 5,000 characters.
+     *
+     * Empty string filter is not allowed. "*" implies delete all items in a
+     * branch.
+     *
+     * The eligible fields for filtering are:
+     *
+     * * `availability`: Double quoted
+     * [Product.availability][google.cloud.retail.v2beta.Product.availability]
+     * string.
+     * * `create_time` : in ISO 8601 "zulu" format.
+     *
+     * Supported syntax:
+     *
+     * * Comparators (">", "<", ">=", "<=", "=").
+     *   Examples:
+     *   * create_time <= "2015-02-13T17:05:46Z"
+     *   * availability = "IN_STOCK"
+     *
+     * * Conjunctions ("AND")
+     *   Examples:
+     *   * create_time <= "2015-02-13T17:05:46Z" AND availability = "PREORDER"
+     *
+     * * Disjunctions ("OR")
+     *   Examples:
+     *   * create_time <= "2015-02-13T17:05:46Z" OR availability = "IN_STOCK"
+     *
+     * * Can support nested queries.
+     *   Examples:
+     *   * (create_time <= "2015-02-13T17:05:46Z" AND availability = "PREORDER")
+     *   OR (create_time >= "2015-02-14T13:03:32Z" AND availability = "IN_STOCK")
+     *
+     * * Filter Limits:
+     *   * Filter should not contain more than 6 conditions.
+     *   * Max nesting depth should not exceed 2 levels.
+     *
+     * Examples queries:
+     * * Delete back order products created before a timestamp.
+     *   create_time <= "2015-02-13T17:05:46Z" OR availability = "BACKORDER"
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The filter string to specify the products to be deleted with a
+     * length limit of 5,000 characters.
+     *
+     * Empty string filter is not allowed. "*" implies delete all items in a
+     * branch.
+     *
+     * The eligible fields for filtering are:
+     *
+     * * `availability`: Double quoted
+     * [Product.availability][google.cloud.retail.v2beta.Product.availability]
+     * string.
+     * * `create_time` : in ISO 8601 "zulu" format.
+     *
+     * Supported syntax:
+     *
+     * * Comparators (">", "<", ">=", "<=", "=").
+     *   Examples:
+     *   * create_time <= "2015-02-13T17:05:46Z"
+     *   * availability = "IN_STOCK"
+     *
+     * * Conjunctions ("AND")
+     *   Examples:
+     *   * create_time <= "2015-02-13T17:05:46Z" AND availability = "PREORDER"
+     *
+     * * Disjunctions ("OR")
+     *   Examples:
+     *   * create_time <= "2015-02-13T17:05:46Z" OR availability = "IN_STOCK"
+     *
+     * * Can support nested queries.
+     *   Examples:
+     *   * (create_time <= "2015-02-13T17:05:46Z" AND availability = "PREORDER")
+     *   OR (create_time >= "2015-02-14T13:03:32Z" AND availability = "IN_STOCK")
+     *
+     * * Filter Limits:
+     *   * Filter should not contain more than 6 conditions.
+     *   * Max nesting depth should not exceed 2 levels.
+     *
+     * Examples queries:
+     * * Delete back order products created before a timestamp.
+     *   create_time <= "2015-02-13T17:05:46Z" OR availability = "BACKORDER"
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The filter string to specify the products to be deleted with a
+     * length limit of 5,000 characters.
+     *
+     * Empty string filter is not allowed. "*" implies delete all items in a
+     * branch.
+     *
+     * The eligible fields for filtering are:
+     *
+     * * `availability`: Double quoted
+     * [Product.availability][google.cloud.retail.v2beta.Product.availability]
+     * string.
+     * * `create_time` : in ISO 8601 "zulu" format.
+     *
+     * Supported syntax:
+     *
+     * * Comparators (">", "<", ">=", "<=", "=").
+     *   Examples:
+     *   * create_time <= "2015-02-13T17:05:46Z"
+     *   * availability = "IN_STOCK"
+     *
+     * * Conjunctions ("AND")
+     *   Examples:
+     *   * create_time <= "2015-02-13T17:05:46Z" AND availability = "PREORDER"
+     *
+     * * Disjunctions ("OR")
+     *   Examples:
+     *   * create_time <= "2015-02-13T17:05:46Z" OR availability = "IN_STOCK"
+     *
+     * * Can support nested queries.
+     *   Examples:
+     *   * (create_time <= "2015-02-13T17:05:46Z" AND availability = "PREORDER")
+     *   OR (create_time >= "2015-02-14T13:03:32Z" AND availability = "IN_STOCK")
+     *
+     * * Filter Limits:
+     *   * Filter should not contain more than 6 conditions.
+     *   * Max nesting depth should not exceed 2 levels.
+     *
+     * Examples queries:
+     * * Delete back order products created before a timestamp.
+     *   create_time <= "2015-02-13T17:05:46Z" OR availability = "BACKORDER"
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The filter string to specify the products to be deleted with a
+     * length limit of 5,000 characters.
+     *
+     * Empty string filter is not allowed. "*" implies delete all items in a
+     * branch.
+     *
+     * The eligible fields for filtering are:
+     *
+     * * `availability`: Double quoted
+     * [Product.availability][google.cloud.retail.v2beta.Product.availability]
+     * string.
+     * * `create_time` : in ISO 8601 "zulu" format.
+     *
+     * Supported syntax:
+     *
+     * * Comparators (">", "<", ">=", "<=", "=").
+     *   Examples:
+     *   * create_time <= "2015-02-13T17:05:46Z"
+     *   * availability = "IN_STOCK"
+     *
+     * * Conjunctions ("AND")
+     *   Examples:
+     *   * create_time <= "2015-02-13T17:05:46Z" AND availability = "PREORDER"
+     *
+     * * Disjunctions ("OR")
+     *   Examples:
+     *   * create_time <= "2015-02-13T17:05:46Z" OR availability = "IN_STOCK"
+     *
+     * * Can support nested queries.
+     *   Examples:
+     *   * (create_time <= "2015-02-13T17:05:46Z" AND availability = "PREORDER")
+     *   OR (create_time >= "2015-02-14T13:03:32Z" AND availability = "IN_STOCK")
+     *
+     * * Filter Limits:
+     *   * Filter should not contain more than 6 conditions.
+     *   * Max nesting depth should not exceed 2 levels.
+     *
+     * Examples queries:
+     * * Delete back order products created before a timestamp.
+     *   create_time <= "2015-02-13T17:05:46Z" OR availability = "BACKORDER"
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The filter string to specify the products to be deleted with a
+     * length limit of 5,000 characters.
+     *
+     * Empty string filter is not allowed. "*" implies delete all items in a
+     * branch.
+     *
+     * The eligible fields for filtering are:
+     *
+     * * `availability`: Double quoted
+     * [Product.availability][google.cloud.retail.v2beta.Product.availability]
+     * string.
+     * * `create_time` : in ISO 8601 "zulu" format.
+     *
+     * Supported syntax:
+     *
+     * * Comparators (">", "<", ">=", "<=", "=").
+     *   Examples:
+     *   * create_time <= "2015-02-13T17:05:46Z"
+     *   * availability = "IN_STOCK"
+     *
+     * * Conjunctions ("AND")
+     *   Examples:
+     *   * create_time <= "2015-02-13T17:05:46Z" AND availability = "PREORDER"
+     *
+     * * Disjunctions ("OR")
+     *   Examples:
+     *   * create_time <= "2015-02-13T17:05:46Z" OR availability = "IN_STOCK"
+     *
+     * * Can support nested queries.
+     *   Examples:
+     *   * (create_time <= "2015-02-13T17:05:46Z" AND availability = "PREORDER")
+     *   OR (create_time >= "2015-02-14T13:03:32Z" AND availability = "IN_STOCK")
+     *
+     * * Filter Limits:
+     *   * Filter should not contain more than 6 conditions.
+     *   * Max nesting depth should not exceed 2 levels.
+     *
+     * Examples queries:
+     * * Delete back order products created before a timestamp.
+     *   create_time <= "2015-02-13T17:05:46Z" OR availability = "BACKORDER"
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean force_; + /** + * + * + *
+     * Actually perform the purge.
+     * If `force` is set to false, the method will return the expected purge count
+     * without deleting any products.
+     * 
+ * + * bool force = 3; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + /** + * + * + *
+     * Actually perform the purge.
+     * If `force` is set to false, the method will return the expected purge count
+     * without deleting any products.
+     * 
+ * + * bool force = 3; + * + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Actually perform the purge.
+     * If `force` is set to false, the method will return the expected purge count
+     * without deleting any products.
+     * 
+ * + * bool force = 3; + * + * @return This builder for chaining. + */ + public Builder clearForce() { + bitField0_ = (bitField0_ & ~0x00000004); + force_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2beta.PurgeProductsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2beta.PurgeProductsRequest) + private static final com.google.cloud.retail.v2beta.PurgeProductsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.retail.v2beta.PurgeProductsRequest(); + } + + public static com.google.cloud.retail.v2beta.PurgeProductsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PurgeProductsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.PurgeProductsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/PurgeProductsRequestOrBuilder.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/PurgeProductsRequestOrBuilder.java new file mode 100644 index 000000000000..7a4db3ba69b9 --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/PurgeProductsRequestOrBuilder.java @@ -0,0 +1,177 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/retail/v2beta/purge_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.retail.v2beta; + +public interface PurgeProductsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2beta.PurgeProductsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the branch under which the products are
+   * created. The format is
+   * `projects/${projectId}/locations/global/catalogs/${catalogId}/branches/${branchId}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The resource name of the branch under which the products are
+   * created. The format is
+   * `projects/${projectId}/locations/global/catalogs/${catalogId}/branches/${branchId}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The filter string to specify the products to be deleted with a
+   * length limit of 5,000 characters.
+   *
+   * Empty string filter is not allowed. "*" implies delete all items in a
+   * branch.
+   *
+   * The eligible fields for filtering are:
+   *
+   * * `availability`: Double quoted
+   * [Product.availability][google.cloud.retail.v2beta.Product.availability]
+   * string.
+   * * `create_time` : in ISO 8601 "zulu" format.
+   *
+   * Supported syntax:
+   *
+   * * Comparators (">", "<", ">=", "<=", "=").
+   *   Examples:
+   *   * create_time <= "2015-02-13T17:05:46Z"
+   *   * availability = "IN_STOCK"
+   *
+   * * Conjunctions ("AND")
+   *   Examples:
+   *   * create_time <= "2015-02-13T17:05:46Z" AND availability = "PREORDER"
+   *
+   * * Disjunctions ("OR")
+   *   Examples:
+   *   * create_time <= "2015-02-13T17:05:46Z" OR availability = "IN_STOCK"
+   *
+   * * Can support nested queries.
+   *   Examples:
+   *   * (create_time <= "2015-02-13T17:05:46Z" AND availability = "PREORDER")
+   *   OR (create_time >= "2015-02-14T13:03:32Z" AND availability = "IN_STOCK")
+   *
+   * * Filter Limits:
+   *   * Filter should not contain more than 6 conditions.
+   *   * Max nesting depth should not exceed 2 levels.
+   *
+   * Examples queries:
+   * * Delete back order products created before a timestamp.
+   *   create_time <= "2015-02-13T17:05:46Z" OR availability = "BACKORDER"
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Required. The filter string to specify the products to be deleted with a
+   * length limit of 5,000 characters.
+   *
+   * Empty string filter is not allowed. "*" implies delete all items in a
+   * branch.
+   *
+   * The eligible fields for filtering are:
+   *
+   * * `availability`: Double quoted
+   * [Product.availability][google.cloud.retail.v2beta.Product.availability]
+   * string.
+   * * `create_time` : in ISO 8601 "zulu" format.
+   *
+   * Supported syntax:
+   *
+   * * Comparators (">", "<", ">=", "<=", "=").
+   *   Examples:
+   *   * create_time <= "2015-02-13T17:05:46Z"
+   *   * availability = "IN_STOCK"
+   *
+   * * Conjunctions ("AND")
+   *   Examples:
+   *   * create_time <= "2015-02-13T17:05:46Z" AND availability = "PREORDER"
+   *
+   * * Disjunctions ("OR")
+   *   Examples:
+   *   * create_time <= "2015-02-13T17:05:46Z" OR availability = "IN_STOCK"
+   *
+   * * Can support nested queries.
+   *   Examples:
+   *   * (create_time <= "2015-02-13T17:05:46Z" AND availability = "PREORDER")
+   *   OR (create_time >= "2015-02-14T13:03:32Z" AND availability = "IN_STOCK")
+   *
+   * * Filter Limits:
+   *   * Filter should not contain more than 6 conditions.
+   *   * Max nesting depth should not exceed 2 levels.
+   *
+   * Examples queries:
+   * * Delete back order products created before a timestamp.
+   *   create_time <= "2015-02-13T17:05:46Z" OR availability = "BACKORDER"
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Actually perform the purge.
+   * If `force` is set to false, the method will return the expected purge count
+   * without deleting any products.
+   * 
+ * + * bool force = 3; + * + * @return The force. + */ + boolean getForce(); +} diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/PurgeProductsResponse.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/PurgeProductsResponse.java new file mode 100644 index 000000000000..420da49cfc6e --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/PurgeProductsResponse.java @@ -0,0 +1,843 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/retail/v2beta/purge_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.retail.v2beta; + +/** + * + * + *
+ * Response of the PurgeProductsRequest. If the long running operation is
+ * successfully done, then this message is returned by the
+ * google.longrunning.Operations.response field.
+ * 
+ * + * Protobuf type {@code google.cloud.retail.v2beta.PurgeProductsResponse} + */ +public final class PurgeProductsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2beta.PurgeProductsResponse) + PurgeProductsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use PurgeProductsResponse.newBuilder() to construct. + private PurgeProductsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PurgeProductsResponse() { + purgeSample_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PurgeProductsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2beta.PurgeConfigProto + .internal_static_google_cloud_retail_v2beta_PurgeProductsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2beta.PurgeConfigProto + .internal_static_google_cloud_retail_v2beta_PurgeProductsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2beta.PurgeProductsResponse.class, + com.google.cloud.retail.v2beta.PurgeProductsResponse.Builder.class); + } + + public static final int PURGE_COUNT_FIELD_NUMBER = 1; + private long purgeCount_ = 0L; + /** + * + * + *
+   * The total count of products purged as a result of the operation.
+   * 
+ * + * int64 purge_count = 1; + * + * @return The purgeCount. + */ + @java.lang.Override + public long getPurgeCount() { + return purgeCount_; + } + + public static final int PURGE_SAMPLE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList purgeSample_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * A sample of the product names that will be deleted.
+   * Only populated if `force` is set to false. A max of 100 names will be
+   * returned and the names are chosen at random.
+   * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @return A list containing the purgeSample. + */ + public com.google.protobuf.ProtocolStringList getPurgeSampleList() { + return purgeSample_; + } + /** + * + * + *
+   * A sample of the product names that will be deleted.
+   * Only populated if `force` is set to false. A max of 100 names will be
+   * returned and the names are chosen at random.
+   * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @return The count of purgeSample. + */ + public int getPurgeSampleCount() { + return purgeSample_.size(); + } + /** + * + * + *
+   * A sample of the product names that will be deleted.
+   * Only populated if `force` is set to false. A max of 100 names will be
+   * returned and the names are chosen at random.
+   * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the element to return. + * @return The purgeSample at the given index. + */ + public java.lang.String getPurgeSample(int index) { + return purgeSample_.get(index); + } + /** + * + * + *
+   * A sample of the product names that will be deleted.
+   * Only populated if `force` is set to false. A max of 100 names will be
+   * returned and the names are chosen at random.
+   * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the value to return. + * @return The bytes of the purgeSample at the given index. + */ + public com.google.protobuf.ByteString getPurgeSampleBytes(int index) { + return purgeSample_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (purgeCount_ != 0L) { + output.writeInt64(1, purgeCount_); + } + for (int i = 0; i < purgeSample_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, purgeSample_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (purgeCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, purgeCount_); + } + { + int dataSize = 0; + for (int i = 0; i < purgeSample_.size(); i++) { + dataSize += computeStringSizeNoTag(purgeSample_.getRaw(i)); + } + size += dataSize; + size += 1 * getPurgeSampleList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.retail.v2beta.PurgeProductsResponse)) { + return super.equals(obj); + } + com.google.cloud.retail.v2beta.PurgeProductsResponse other = + (com.google.cloud.retail.v2beta.PurgeProductsResponse) obj; + + if (getPurgeCount() != other.getPurgeCount()) return false; + if (!getPurgeSampleList().equals(other.getPurgeSampleList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PURGE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPurgeCount()); + if (getPurgeSampleCount() > 0) { + hash = (37 * hash) + PURGE_SAMPLE_FIELD_NUMBER; + hash = (53 * hash) + getPurgeSampleList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2beta.PurgeProductsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.PurgeProductsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.PurgeProductsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.PurgeProductsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.PurgeProductsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.PurgeProductsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.PurgeProductsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.PurgeProductsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.PurgeProductsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.PurgeProductsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.PurgeProductsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.PurgeProductsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.retail.v2beta.PurgeProductsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response of the PurgeProductsRequest. If the long running operation is
+   * successfully done, then this message is returned by the
+   * google.longrunning.Operations.response field.
+   * 
+ * + * Protobuf type {@code google.cloud.retail.v2beta.PurgeProductsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2beta.PurgeProductsResponse) + com.google.cloud.retail.v2beta.PurgeProductsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2beta.PurgeConfigProto + .internal_static_google_cloud_retail_v2beta_PurgeProductsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2beta.PurgeConfigProto + .internal_static_google_cloud_retail_v2beta_PurgeProductsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2beta.PurgeProductsResponse.class, + com.google.cloud.retail.v2beta.PurgeProductsResponse.Builder.class); + } + + // Construct using com.google.cloud.retail.v2beta.PurgeProductsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + purgeCount_ = 0L; + purgeSample_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2beta.PurgeConfigProto + .internal_static_google_cloud_retail_v2beta_PurgeProductsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.PurgeProductsResponse getDefaultInstanceForType() { + return com.google.cloud.retail.v2beta.PurgeProductsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.PurgeProductsResponse build() { + com.google.cloud.retail.v2beta.PurgeProductsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.PurgeProductsResponse buildPartial() { + com.google.cloud.retail.v2beta.PurgeProductsResponse result = + new com.google.cloud.retail.v2beta.PurgeProductsResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.retail.v2beta.PurgeProductsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.purgeCount_ = purgeCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + purgeSample_.makeImmutable(); + result.purgeSample_ = purgeSample_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.retail.v2beta.PurgeProductsResponse) { + return mergeFrom((com.google.cloud.retail.v2beta.PurgeProductsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.retail.v2beta.PurgeProductsResponse other) { + if (other == com.google.cloud.retail.v2beta.PurgeProductsResponse.getDefaultInstance()) + return this; + if (other.getPurgeCount() != 0L) { + setPurgeCount(other.getPurgeCount()); + } + if (!other.purgeSample_.isEmpty()) { + if (purgeSample_.isEmpty()) { + purgeSample_ = other.purgeSample_; + bitField0_ |= 0x00000002; + } else { + ensurePurgeSampleIsMutable(); + purgeSample_.addAll(other.purgeSample_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + purgeCount_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePurgeSampleIsMutable(); + purgeSample_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private long purgeCount_; + /** + * + * + *
+     * The total count of products purged as a result of the operation.
+     * 
+ * + * int64 purge_count = 1; + * + * @return The purgeCount. + */ + @java.lang.Override + public long getPurgeCount() { + return purgeCount_; + } + /** + * + * + *
+     * The total count of products purged as a result of the operation.
+     * 
+ * + * int64 purge_count = 1; + * + * @param value The purgeCount to set. + * @return This builder for chaining. + */ + public Builder setPurgeCount(long value) { + + purgeCount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The total count of products purged as a result of the operation.
+     * 
+ * + * int64 purge_count = 1; + * + * @return This builder for chaining. + */ + public Builder clearPurgeCount() { + bitField0_ = (bitField0_ & ~0x00000001); + purgeCount_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList purgeSample_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensurePurgeSampleIsMutable() { + if (!purgeSample_.isModifiable()) { + purgeSample_ = new com.google.protobuf.LazyStringArrayList(purgeSample_); + } + bitField0_ |= 0x00000002; + } + /** + * + * + *
+     * A sample of the product names that will be deleted.
+     * Only populated if `force` is set to false. A max of 100 names will be
+     * returned and the names are chosen at random.
+     * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @return A list containing the purgeSample. + */ + public com.google.protobuf.ProtocolStringList getPurgeSampleList() { + purgeSample_.makeImmutable(); + return purgeSample_; + } + /** + * + * + *
+     * A sample of the product names that will be deleted.
+     * Only populated if `force` is set to false. A max of 100 names will be
+     * returned and the names are chosen at random.
+     * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @return The count of purgeSample. + */ + public int getPurgeSampleCount() { + return purgeSample_.size(); + } + /** + * + * + *
+     * A sample of the product names that will be deleted.
+     * Only populated if `force` is set to false. A max of 100 names will be
+     * returned and the names are chosen at random.
+     * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the element to return. + * @return The purgeSample at the given index. + */ + public java.lang.String getPurgeSample(int index) { + return purgeSample_.get(index); + } + /** + * + * + *
+     * A sample of the product names that will be deleted.
+     * Only populated if `force` is set to false. A max of 100 names will be
+     * returned and the names are chosen at random.
+     * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the value to return. + * @return The bytes of the purgeSample at the given index. + */ + public com.google.protobuf.ByteString getPurgeSampleBytes(int index) { + return purgeSample_.getByteString(index); + } + /** + * + * + *
+     * A sample of the product names that will be deleted.
+     * Only populated if `force` is set to false. A max of 100 names will be
+     * returned and the names are chosen at random.
+     * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @param index The index to set the value at. + * @param value The purgeSample to set. + * @return This builder for chaining. + */ + public Builder setPurgeSample(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePurgeSampleIsMutable(); + purgeSample_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A sample of the product names that will be deleted.
+     * Only populated if `force` is set to false. A max of 100 names will be
+     * returned and the names are chosen at random.
+     * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The purgeSample to add. + * @return This builder for chaining. + */ + public Builder addPurgeSample(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePurgeSampleIsMutable(); + purgeSample_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A sample of the product names that will be deleted.
+     * Only populated if `force` is set to false. A max of 100 names will be
+     * returned and the names are chosen at random.
+     * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @param values The purgeSample to add. + * @return This builder for chaining. + */ + public Builder addAllPurgeSample(java.lang.Iterable values) { + ensurePurgeSampleIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, purgeSample_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A sample of the product names that will be deleted.
+     * Only populated if `force` is set to false. A max of 100 names will be
+     * returned and the names are chosen at random.
+     * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearPurgeSample() { + purgeSample_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * A sample of the product names that will be deleted.
+     * Only populated if `force` is set to false. A max of 100 names will be
+     * returned and the names are chosen at random.
+     * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes of the purgeSample to add. + * @return This builder for chaining. + */ + public Builder addPurgeSampleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePurgeSampleIsMutable(); + purgeSample_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2beta.PurgeProductsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2beta.PurgeProductsResponse) + private static final com.google.cloud.retail.v2beta.PurgeProductsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.retail.v2beta.PurgeProductsResponse(); + } + + public static com.google.cloud.retail.v2beta.PurgeProductsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PurgeProductsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.PurgeProductsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/PurgeProductsResponseOrBuilder.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/PurgeProductsResponseOrBuilder.java new file mode 100644 index 000000000000..74404c9e4daf --- /dev/null +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/PurgeProductsResponseOrBuilder.java @@ -0,0 +1,98 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/retail/v2beta/purge_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.retail.v2beta; + +public interface PurgeProductsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2beta.PurgeProductsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The total count of products purged as a result of the operation.
+   * 
+ * + * int64 purge_count = 1; + * + * @return The purgeCount. + */ + long getPurgeCount(); + + /** + * + * + *
+   * A sample of the product names that will be deleted.
+   * Only populated if `force` is set to false. A max of 100 names will be
+   * returned and the names are chosen at random.
+   * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @return A list containing the purgeSample. + */ + java.util.List getPurgeSampleList(); + /** + * + * + *
+   * A sample of the product names that will be deleted.
+   * Only populated if `force` is set to false. A max of 100 names will be
+   * returned and the names are chosen at random.
+   * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @return The count of purgeSample. + */ + int getPurgeSampleCount(); + /** + * + * + *
+   * A sample of the product names that will be deleted.
+   * Only populated if `force` is set to false. A max of 100 names will be
+   * returned and the names are chosen at random.
+   * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the element to return. + * @return The purgeSample at the given index. + */ + java.lang.String getPurgeSample(int index); + /** + * + * + *
+   * A sample of the product names that will be deleted.
+   * Only populated if `force` is set to false. A max of 100 names will be
+   * returned and the names are chosen at random.
+   * 
+ * + * repeated string purge_sample = 2 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the value to return. + * @return The bytes of the purgeSample at the given index. + */ + com.google.protobuf.ByteString getPurgeSampleBytes(int index); +} diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/Rule.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/Rule.java index 0a1dd2c0e424..f013125dfe18 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/Rule.java +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/Rule.java @@ -1027,9 +1027,8 @@ public interface FilterActionOrBuilder * set. * * Filter syntax is identical to * [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter]. - * See more - * details at the Retail Search - * [user guide](/retail/search/docs/filter-and-order#filter). + * For more + * information, see [Filter](/retail/docs/filter-and-order#filter). * * To filter products with product ID "product_1" or "product_2", and * color * "Red" or "Blue":<br> @@ -1053,9 +1052,8 @@ public interface FilterActionOrBuilder * set. * * Filter syntax is identical to * [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter]. - * See more - * details at the Retail Search - * [user guide](/retail/search/docs/filter-and-order#filter). + * For more + * information, see [Filter](/retail/docs/filter-and-order#filter). * * To filter products with product ID "product_1" or "product_2", and * color * "Red" or "Blue":<br> @@ -1075,17 +1073,19 @@ public interface FilterActionOrBuilder * *
    * * Rule Condition:
-   *   - No
-   *   [Condition.query_terms][google.cloud.retail.v2beta.Condition.query_terms]
-   *   provided is a global match.
-   *   - 1 or more
-   *   [Condition.query_terms][google.cloud.retail.v2beta.Condition.query_terms]
-   *   provided are combined with OR operator.
+   *     - No
+   *     [Condition.query_terms][google.cloud.retail.v2beta.Condition.query_terms]
+   *     provided is a global match.
+   *     - 1 or more
+   *     [Condition.query_terms][google.cloud.retail.v2beta.Condition.query_terms]
+   *     provided are combined with OR operator.
+   *
    * * Action Input: The request query and filter that are applied to the
    * retrieved products, in addition to any filters already provided with the
    * SearchRequest. The AND operator is used to combine the query's existing
    * filters with the filter rule(s). NOTE: May result in 0 results when
    * filters conflict.
+   *
    * * Action Result: Filters the returned objects to be ONLY those that passed
    * the filter.
    * 
@@ -1141,9 +1141,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * set. * * Filter syntax is identical to * [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter]. - * See more - * details at the Retail Search - * [user guide](/retail/search/docs/filter-and-order#filter). + * For more + * information, see [Filter](/retail/docs/filter-and-order#filter). * * To filter products with product ID "product_1" or "product_2", and * color * "Red" or "Blue":<br> @@ -1178,9 +1177,8 @@ public java.lang.String getFilter() { * set. * * Filter syntax is identical to * [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter]. - * See more - * details at the Retail Search - * [user guide](/retail/search/docs/filter-and-order#filter). + * For more + * information, see [Filter](/retail/docs/filter-and-order#filter). * * To filter products with product ID "product_1" or "product_2", and * color * "Red" or "Blue":<br> @@ -1371,17 +1369,19 @@ protected Builder newBuilderForType( * *
      * * Rule Condition:
-     *   - No
-     *   [Condition.query_terms][google.cloud.retail.v2beta.Condition.query_terms]
-     *   provided is a global match.
-     *   - 1 or more
-     *   [Condition.query_terms][google.cloud.retail.v2beta.Condition.query_terms]
-     *   provided are combined with OR operator.
+     *     - No
+     *     [Condition.query_terms][google.cloud.retail.v2beta.Condition.query_terms]
+     *     provided is a global match.
+     *     - 1 or more
+     *     [Condition.query_terms][google.cloud.retail.v2beta.Condition.query_terms]
+     *     provided are combined with OR operator.
+     *
      * * Action Input: The request query and filter that are applied to the
      * retrieved products, in addition to any filters already provided with the
      * SearchRequest. The AND operator is used to combine the query's existing
      * filters with the filter rule(s). NOTE: May result in 0 results when
      * filters conflict.
+     *
      * * Action Result: Filters the returned objects to be ONLY those that passed
      * the filter.
      * 
@@ -1576,9 +1576,8 @@ public Builder mergeFrom( * set. * * Filter syntax is identical to * [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter]. - * See more - * details at the Retail Search - * [user guide](/retail/search/docs/filter-and-order#filter). + * For more + * information, see [Filter](/retail/docs/filter-and-order#filter). * * To filter products with product ID "product_1" or "product_2", and * color * "Red" or "Blue":<br> @@ -1612,9 +1611,8 @@ public java.lang.String getFilter() { * set. * * Filter syntax is identical to * [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter]. - * See more - * details at the Retail Search - * [user guide](/retail/search/docs/filter-and-order#filter). + * For more + * information, see [Filter](/retail/docs/filter-and-order#filter). * * To filter products with product ID "product_1" or "product_2", and * color * "Red" or "Blue":<br> @@ -1648,9 +1646,8 @@ public com.google.protobuf.ByteString getFilterBytes() { * set. * * Filter syntax is identical to * [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter]. - * See more - * details at the Retail Search - * [user guide](/retail/search/docs/filter-and-order#filter). + * For more + * information, see [Filter](/retail/docs/filter-and-order#filter). * * To filter products with product ID "product_1" or "product_2", and * color * "Red" or "Blue":<br> @@ -1683,9 +1680,8 @@ public Builder setFilter(java.lang.String value) { * set. * * Filter syntax is identical to * [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter]. - * See more - * details at the Retail Search - * [user guide](/retail/search/docs/filter-and-order#filter). + * For more + * information, see [Filter](/retail/docs/filter-and-order#filter). * * To filter products with product ID "product_1" or "product_2", and * color * "Red" or "Blue":<br> @@ -1714,9 +1710,8 @@ public Builder clearFilter() { * set. * * Filter syntax is identical to * [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter]. - * See more - * details at the Retail Search - * [user guide](/retail/search/docs/filter-and-order#filter). + * For more + * information, see [Filter](/retail/docs/filter-and-order#filter). * * To filter products with product ID "product_1" or "product_2", and * color * "Red" or "Blue":<br> @@ -1842,7 +1837,7 @@ public interface RedirectActionOrBuilder * Redirects a shopper to a specific page. * * * Rule Condition: - * - Must specify + * Must specify * [Condition.query_terms][google.cloud.retail.v2beta.Condition.query_terms]. * * Action Input: Request Query * * Action Result: Redirects shopper to provided uri. @@ -2103,7 +2098,7 @@ protected Builder newBuilderForType( * Redirects a shopper to a specific page. * * * Rule Condition: - * - Must specify + * Must specify * [Condition.query_terms][google.cloud.retail.v2beta.Condition.query_terms]. * * Action Input: Request Query * * Action Result: Redirects shopper to provided uri. @@ -8229,211 +8224,3090 @@ public com.google.cloud.retail.v2beta.Rule.IgnoreAction getDefaultInstanceForTyp } } - private int bitField0_; - private int actionCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object action_; - - public enum ActionCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - BOOST_ACTION(2), - REDIRECT_ACTION(3), - ONEWAY_SYNONYMS_ACTION(6), - DO_NOT_ASSOCIATE_ACTION(7), - REPLACEMENT_ACTION(8), - IGNORE_ACTION(9), - FILTER_ACTION(10), - TWOWAY_SYNONYMS_ACTION(11), - ACTION_NOT_SET(0); - private final int value; + public interface ForceReturnFacetActionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2beta.Rule.ForceReturnFacetAction) + com.google.protobuf.MessageOrBuilder { - private ActionCase(int value) { - this.value = value; - } /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. + * + * + *
+     * Each instance corresponds to a force return attribute for the given
+     * condition. There can't be more 3 instances here.
+     * 
+ * + * + * repeated .google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * */ - @java.lang.Deprecated - public static ActionCase valueOf(int value) { - return forNumber(value); - } - - public static ActionCase forNumber(int value) { - switch (value) { - case 2: - return BOOST_ACTION; - case 3: - return REDIRECT_ACTION; - case 6: - return ONEWAY_SYNONYMS_ACTION; - case 7: - return DO_NOT_ASSOCIATE_ACTION; - case 8: - return REPLACEMENT_ACTION; - case 9: - return IGNORE_ACTION; - case 10: - return FILTER_ACTION; - case 11: - return TWOWAY_SYNONYMS_ACTION; - case 0: - return ACTION_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public ActionCase getActionCase() { - return ActionCase.forNumber(actionCase_); + java.util.List< + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment> + getFacetPositionAdjustmentsList(); + /** + * + * + *
+     * Each instance corresponds to a force return attribute for the given
+     * condition. There can't be more 3 instances here.
+     * 
+ * + * + * repeated .google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment + getFacetPositionAdjustments(int index); + /** + * + * + *
+     * Each instance corresponds to a force return attribute for the given
+     * condition. There can't be more 3 instances here.
+     * 
+ * + * + * repeated .google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + int getFacetPositionAdjustmentsCount(); + /** + * + * + *
+     * Each instance corresponds to a force return attribute for the given
+     * condition. There can't be more 3 instances here.
+     * 
+ * + * + * repeated .google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction + .FacetPositionAdjustmentOrBuilder> + getFacetPositionAdjustmentsOrBuilderList(); + /** + * + * + *
+     * Each instance corresponds to a force return attribute for the given
+     * condition. There can't be more 3 instances here.
+     * 
+ * + * + * repeated .google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustmentOrBuilder + getFacetPositionAdjustmentsOrBuilder(int index); } - - public static final int BOOST_ACTION_FIELD_NUMBER = 2; /** * * *
-   * A boost action.
-   * 
- * - * .google.cloud.retail.v2beta.Rule.BoostAction boost_action = 2; - * - * @return Whether the boostAction field is set. - */ - @java.lang.Override - public boolean hasBoostAction() { - return actionCase_ == 2; - } - /** + * Force returns an attribute/facet in the request around a certain position + * or above. * - * - *
-   * A boost action.
+   * * Rule Condition:
+   *   Must specify non-empty
+   *   [Condition.query_terms][google.cloud.retail.v2beta.Condition.query_terms]
+   *   (for search only) or
+   *   [Condition.page_categories][google.cloud.retail.v2beta.Condition.page_categories]
+   *   (for browse only), but can't specify both.
+   *
+   * * Action Inputs: attribute name, position
+   *
+   * * Action Result: Will force return a facet key around a certain position
+   * or above if the condition is satisfied.
+   *
+   * Example: Suppose the query is "shoes", the
+   * [Condition.query_terms][google.cloud.retail.v2beta.Condition.query_terms]
+   * is "shoes", the
+   * [ForceReturnFacetAction.FacetPositionAdjustment.attribute_name][google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment.attribute_name]
+   * is "size" and the
+   * [ForceReturnFacetAction.FacetPositionAdjustment.position][google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment.position]
+   * is 8.
+   *
+   * Two cases: a) The facet key "size" is not already in the top 8 slots, then
+   * the facet "size" will appear at a position close to 8. b) The facet key
+   * "size" in among the top 8 positions in the request, then it will stay at
+   * its current rank.
    * 
* - * .google.cloud.retail.v2beta.Rule.BoostAction boost_action = 2; - * - * @return The boostAction. + * Protobuf type {@code google.cloud.retail.v2beta.Rule.ForceReturnFacetAction} */ - @java.lang.Override - public com.google.cloud.retail.v2beta.Rule.BoostAction getBoostAction() { - if (actionCase_ == 2) { - return (com.google.cloud.retail.v2beta.Rule.BoostAction) action_; + public static final class ForceReturnFacetAction extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2beta.Rule.ForceReturnFacetAction) + ForceReturnFacetActionOrBuilder { + private static final long serialVersionUID = 0L; + // Use ForceReturnFacetAction.newBuilder() to construct. + private ForceReturnFacetAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); } - return com.google.cloud.retail.v2beta.Rule.BoostAction.getDefaultInstance(); - } - /** - * - * - *
-   * A boost action.
-   * 
- * - * .google.cloud.retail.v2beta.Rule.BoostAction boost_action = 2; - */ - @java.lang.Override - public com.google.cloud.retail.v2beta.Rule.BoostActionOrBuilder getBoostActionOrBuilder() { - if (actionCase_ == 2) { - return (com.google.cloud.retail.v2beta.Rule.BoostAction) action_; + + private ForceReturnFacetAction() { + facetPositionAdjustments_ = java.util.Collections.emptyList(); } - return com.google.cloud.retail.v2beta.Rule.BoostAction.getDefaultInstance(); - } - public static final int REDIRECT_ACTION_FIELD_NUMBER = 3; - /** - * - * - *
-   * Redirects a shopper to a specific page.
-   * 
- * - * .google.cloud.retail.v2beta.Rule.RedirectAction redirect_action = 3; - * - * @return Whether the redirectAction field is set. - */ - @java.lang.Override - public boolean hasRedirectAction() { - return actionCase_ == 3; - } - /** - * - * - *
-   * Redirects a shopper to a specific page.
-   * 
- * - * .google.cloud.retail.v2beta.Rule.RedirectAction redirect_action = 3; - * - * @return The redirectAction. - */ - @java.lang.Override - public com.google.cloud.retail.v2beta.Rule.RedirectAction getRedirectAction() { - if (actionCase_ == 3) { - return (com.google.cloud.retail.v2beta.Rule.RedirectAction) action_; + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ForceReturnFacetAction(); } - return com.google.cloud.retail.v2beta.Rule.RedirectAction.getDefaultInstance(); - } - /** - * - * - *
-   * Redirects a shopper to a specific page.
-   * 
- * - * .google.cloud.retail.v2beta.Rule.RedirectAction redirect_action = 3; - */ - @java.lang.Override - public com.google.cloud.retail.v2beta.Rule.RedirectActionOrBuilder getRedirectActionOrBuilder() { - if (actionCase_ == 3) { - return (com.google.cloud.retail.v2beta.Rule.RedirectAction) action_; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2beta.CommonProto + .internal_static_google_cloud_retail_v2beta_Rule_ForceReturnFacetAction_descriptor; } - return com.google.cloud.retail.v2beta.Rule.RedirectAction.getDefaultInstance(); - } - public static final int ONEWAY_SYNONYMS_ACTION_FIELD_NUMBER = 6; - /** - * - * - *
-   * Treats specific term as a synonym with a group of terms.
-   * Group of terms will not be treated as synonyms with the specific term.
-   * 
- * - * .google.cloud.retail.v2beta.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; - * - * @return Whether the onewaySynonymsAction field is set. - */ - @java.lang.Override - public boolean hasOnewaySynonymsAction() { - return actionCase_ == 6; - } - /** - * - * - *
-   * Treats specific term as a synonym with a group of terms.
-   * Group of terms will not be treated as synonyms with the specific term.
-   * 
- * - * .google.cloud.retail.v2beta.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; - * - * @return The onewaySynonymsAction. - */ - @java.lang.Override - public com.google.cloud.retail.v2beta.Rule.OnewaySynonymsAction getOnewaySynonymsAction() { - if (actionCase_ == 6) { - return (com.google.cloud.retail.v2beta.Rule.OnewaySynonymsAction) action_; + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2beta.CommonProto + .internal_static_google_cloud_retail_v2beta_Rule_ForceReturnFacetAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.class, + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.Builder.class); } - return com.google.cloud.retail.v2beta.Rule.OnewaySynonymsAction.getDefaultInstance(); + + public interface FacetPositionAdjustmentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * The attribute name to force return as a facet. Each attribute name
+       * should be a valid attribute name, be non-empty and contain at most 80
+       * characters long.
+       * 
+ * + * string attribute_name = 1; + * + * @return The attributeName. + */ + java.lang.String getAttributeName(); + /** + * + * + *
+       * The attribute name to force return as a facet. Each attribute name
+       * should be a valid attribute name, be non-empty and contain at most 80
+       * characters long.
+       * 
+ * + * string attribute_name = 1; + * + * @return The bytes for attributeName. + */ + com.google.protobuf.ByteString getAttributeNameBytes(); + + /** + * + * + *
+       * This is the position in the request as explained above. It should be
+       * strictly positive be at most 100.
+       * 
+ * + * int32 position = 2; + * + * @return The position. + */ + int getPosition(); + } + /** + * + * + *
+     * Each facet position adjustment consists of a single attribute name (i.e.
+     * facet key) along with a specified position.
+     * 
+ * + * Protobuf type {@code + * google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment} + */ + public static final class FacetPositionAdjustment extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment) + FacetPositionAdjustmentOrBuilder { + private static final long serialVersionUID = 0L; + // Use FacetPositionAdjustment.newBuilder() to construct. + private FacetPositionAdjustment(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FacetPositionAdjustment() { + attributeName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FacetPositionAdjustment(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2beta.CommonProto + .internal_static_google_cloud_retail_v2beta_Rule_ForceReturnFacetAction_FacetPositionAdjustment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2beta.CommonProto + .internal_static_google_cloud_retail_v2beta_Rule_ForceReturnFacetAction_FacetPositionAdjustment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment + .class, + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment + .Builder.class); + } + + public static final int ATTRIBUTE_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object attributeName_ = ""; + /** + * + * + *
+       * The attribute name to force return as a facet. Each attribute name
+       * should be a valid attribute name, be non-empty and contain at most 80
+       * characters long.
+       * 
+ * + * string attribute_name = 1; + * + * @return The attributeName. + */ + @java.lang.Override + public java.lang.String getAttributeName() { + java.lang.Object ref = attributeName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + attributeName_ = s; + return s; + } + } + /** + * + * + *
+       * The attribute name to force return as a facet. Each attribute name
+       * should be a valid attribute name, be non-empty and contain at most 80
+       * characters long.
+       * 
+ * + * string attribute_name = 1; + * + * @return The bytes for attributeName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAttributeNameBytes() { + java.lang.Object ref = attributeName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + attributeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POSITION_FIELD_NUMBER = 2; + private int position_ = 0; + /** + * + * + *
+       * This is the position in the request as explained above. It should be
+       * strictly positive be at most 100.
+       * 
+ * + * int32 position = 2; + * + * @return The position. + */ + @java.lang.Override + public int getPosition() { + return position_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attributeName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, attributeName_); + } + if (position_ != 0) { + output.writeInt32(2, position_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attributeName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, attributeName_); + } + if (position_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, position_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment)) { + return super.equals(obj); + } + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment other = + (com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment) + obj; + + if (!getAttributeName().equals(other.getAttributeName())) return false; + if (getPosition() != other.getPosition()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ATTRIBUTE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getAttributeName().hashCode(); + hash = (37 * hash) + POSITION_FIELD_NUMBER; + hash = (53 * hash) + getPosition(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction + .FacetPositionAdjustment + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction + .FacetPositionAdjustment + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction + .FacetPositionAdjustment + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction + .FacetPositionAdjustment + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction + .FacetPositionAdjustment + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction + .FacetPositionAdjustment + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction + .FacetPositionAdjustment + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction + .FacetPositionAdjustment + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction + .FacetPositionAdjustment + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction + .FacetPositionAdjustment + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction + .FacetPositionAdjustment + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction + .FacetPositionAdjustment + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+       * Each facet position adjustment consists of a single attribute name (i.e.
+       * facet key) along with a specified position.
+       * 
+ * + * Protobuf type {@code + * google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment) + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction + .FacetPositionAdjustmentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2beta.CommonProto + .internal_static_google_cloud_retail_v2beta_Rule_ForceReturnFacetAction_FacetPositionAdjustment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2beta.CommonProto + .internal_static_google_cloud_retail_v2beta_Rule_ForceReturnFacetAction_FacetPositionAdjustment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment + .class, + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment + .Builder.class); + } + + // Construct using + // com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + attributeName_ = ""; + position_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2beta.CommonProto + .internal_static_google_cloud_retail_v2beta_Rule_ForceReturnFacetAction_FacetPositionAdjustment_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment + getDefaultInstanceForType() { + return com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment + build() { + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment + buildPartial() { + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment + result = + new com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction + .FacetPositionAdjustment(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.attributeName_ = attributeName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.position_ = position_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment) { + return mergeFrom( + (com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment + other) { + if (other + == com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment + .getDefaultInstance()) return this; + if (!other.getAttributeName().isEmpty()) { + attributeName_ = other.attributeName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPosition() != 0) { + setPosition(other.getPosition()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + attributeName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + position_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object attributeName_ = ""; + /** + * + * + *
+         * The attribute name to force return as a facet. Each attribute name
+         * should be a valid attribute name, be non-empty and contain at most 80
+         * characters long.
+         * 
+ * + * string attribute_name = 1; + * + * @return The attributeName. + */ + public java.lang.String getAttributeName() { + java.lang.Object ref = attributeName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + attributeName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * The attribute name to force return as a facet. Each attribute name
+         * should be a valid attribute name, be non-empty and contain at most 80
+         * characters long.
+         * 
+ * + * string attribute_name = 1; + * + * @return The bytes for attributeName. + */ + public com.google.protobuf.ByteString getAttributeNameBytes() { + java.lang.Object ref = attributeName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + attributeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * The attribute name to force return as a facet. Each attribute name
+         * should be a valid attribute name, be non-empty and contain at most 80
+         * characters long.
+         * 
+ * + * string attribute_name = 1; + * + * @param value The attributeName to set. + * @return This builder for chaining. + */ + public Builder setAttributeName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + attributeName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+         * The attribute name to force return as a facet. Each attribute name
+         * should be a valid attribute name, be non-empty and contain at most 80
+         * characters long.
+         * 
+ * + * string attribute_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearAttributeName() { + attributeName_ = getDefaultInstance().getAttributeName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+         * The attribute name to force return as a facet. Each attribute name
+         * should be a valid attribute name, be non-empty and contain at most 80
+         * characters long.
+         * 
+ * + * string attribute_name = 1; + * + * @param value The bytes for attributeName to set. + * @return This builder for chaining. + */ + public Builder setAttributeNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + attributeName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int position_; + /** + * + * + *
+         * This is the position in the request as explained above. It should be
+         * strictly positive be at most 100.
+         * 
+ * + * int32 position = 2; + * + * @return The position. + */ + @java.lang.Override + public int getPosition() { + return position_; + } + /** + * + * + *
+         * This is the position in the request as explained above. It should be
+         * strictly positive be at most 100.
+         * 
+ * + * int32 position = 2; + * + * @param value The position to set. + * @return This builder for chaining. + */ + public Builder setPosition(int value) { + + position_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+         * This is the position in the request as explained above. It should be
+         * strictly positive be at most 100.
+         * 
+ * + * int32 position = 2; + * + * @return This builder for chaining. + */ + public Builder clearPosition() { + bitField0_ = (bitField0_ & ~0x00000002); + position_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment) + private static final com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction + .FacetPositionAdjustment + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction + .FacetPositionAdjustment(); + } + + public static com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction + .FacetPositionAdjustment + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FacetPositionAdjustment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int FACET_POSITION_ADJUSTMENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment> + facetPositionAdjustments_; + /** + * + * + *
+     * Each instance corresponds to a force return attribute for the given
+     * condition. There can't be more 3 instances here.
+     * 
+ * + * + * repeated .google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment> + getFacetPositionAdjustmentsList() { + return facetPositionAdjustments_; + } + /** + * + * + *
+     * Each instance corresponds to a force return attribute for the given
+     * condition. There can't be more 3 instances here.
+     * 
+ * + * + * repeated .google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction + .FacetPositionAdjustmentOrBuilder> + getFacetPositionAdjustmentsOrBuilderList() { + return facetPositionAdjustments_; + } + /** + * + * + *
+     * Each instance corresponds to a force return attribute for the given
+     * condition. There can't be more 3 instances here.
+     * 
+ * + * + * repeated .google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + @java.lang.Override + public int getFacetPositionAdjustmentsCount() { + return facetPositionAdjustments_.size(); + } + /** + * + * + *
+     * Each instance corresponds to a force return attribute for the given
+     * condition. There can't be more 3 instances here.
+     * 
+ * + * + * repeated .google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment + getFacetPositionAdjustments(int index) { + return facetPositionAdjustments_.get(index); + } + /** + * + * + *
+     * Each instance corresponds to a force return attribute for the given
+     * condition. There can't be more 3 instances here.
+     * 
+ * + * + * repeated .google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction + .FacetPositionAdjustmentOrBuilder + getFacetPositionAdjustmentsOrBuilder(int index) { + return facetPositionAdjustments_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < facetPositionAdjustments_.size(); i++) { + output.writeMessage(1, facetPositionAdjustments_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < facetPositionAdjustments_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, facetPositionAdjustments_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction)) { + return super.equals(obj); + } + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction other = + (com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction) obj; + + if (!getFacetPositionAdjustmentsList().equals(other.getFacetPositionAdjustmentsList())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getFacetPositionAdjustmentsCount() > 0) { + hash = (37 * hash) + FACET_POSITION_ADJUSTMENTS_FIELD_NUMBER; + hash = (53 * hash) + getFacetPositionAdjustmentsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Force returns an attribute/facet in the request around a certain position
+     * or above.
+     *
+     * * Rule Condition:
+     *   Must specify non-empty
+     *   [Condition.query_terms][google.cloud.retail.v2beta.Condition.query_terms]
+     *   (for search only) or
+     *   [Condition.page_categories][google.cloud.retail.v2beta.Condition.page_categories]
+     *   (for browse only), but can't specify both.
+     *
+     * * Action Inputs: attribute name, position
+     *
+     * * Action Result: Will force return a facet key around a certain position
+     * or above if the condition is satisfied.
+     *
+     * Example: Suppose the query is "shoes", the
+     * [Condition.query_terms][google.cloud.retail.v2beta.Condition.query_terms]
+     * is "shoes", the
+     * [ForceReturnFacetAction.FacetPositionAdjustment.attribute_name][google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment.attribute_name]
+     * is "size" and the
+     * [ForceReturnFacetAction.FacetPositionAdjustment.position][google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment.position]
+     * is 8.
+     *
+     * Two cases: a) The facet key "size" is not already in the top 8 slots, then
+     * the facet "size" will appear at a position close to 8. b) The facet key
+     * "size" in among the top 8 positions in the request, then it will stay at
+     * its current rank.
+     * 
+ * + * Protobuf type {@code google.cloud.retail.v2beta.Rule.ForceReturnFacetAction} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2beta.Rule.ForceReturnFacetAction) + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetActionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2beta.CommonProto + .internal_static_google_cloud_retail_v2beta_Rule_ForceReturnFacetAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2beta.CommonProto + .internal_static_google_cloud_retail_v2beta_Rule_ForceReturnFacetAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.class, + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.Builder.class); + } + + // Construct using com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (facetPositionAdjustmentsBuilder_ == null) { + facetPositionAdjustments_ = java.util.Collections.emptyList(); + } else { + facetPositionAdjustments_ = null; + facetPositionAdjustmentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2beta.CommonProto + .internal_static_google_cloud_retail_v2beta_Rule_ForceReturnFacetAction_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction + getDefaultInstanceForType() { + return com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction build() { + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction buildPartial() { + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction result = + new com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction result) { + if (facetPositionAdjustmentsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + facetPositionAdjustments_ = + java.util.Collections.unmodifiableList(facetPositionAdjustments_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.facetPositionAdjustments_ = facetPositionAdjustments_; + } else { + result.facetPositionAdjustments_ = facetPositionAdjustmentsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction) { + return mergeFrom((com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction other) { + if (other + == com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.getDefaultInstance()) + return this; + if (facetPositionAdjustmentsBuilder_ == null) { + if (!other.facetPositionAdjustments_.isEmpty()) { + if (facetPositionAdjustments_.isEmpty()) { + facetPositionAdjustments_ = other.facetPositionAdjustments_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFacetPositionAdjustmentsIsMutable(); + facetPositionAdjustments_.addAll(other.facetPositionAdjustments_); + } + onChanged(); + } + } else { + if (!other.facetPositionAdjustments_.isEmpty()) { + if (facetPositionAdjustmentsBuilder_.isEmpty()) { + facetPositionAdjustmentsBuilder_.dispose(); + facetPositionAdjustmentsBuilder_ = null; + facetPositionAdjustments_ = other.facetPositionAdjustments_; + bitField0_ = (bitField0_ & ~0x00000001); + facetPositionAdjustmentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFacetPositionAdjustmentsFieldBuilder() + : null; + } else { + facetPositionAdjustmentsBuilder_.addAllMessages(other.facetPositionAdjustments_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment + m = + input.readMessage( + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction + .FacetPositionAdjustment.parser(), + extensionRegistry); + if (facetPositionAdjustmentsBuilder_ == null) { + ensureFacetPositionAdjustmentsIsMutable(); + facetPositionAdjustments_.add(m); + } else { + facetPositionAdjustmentsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List< + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment> + facetPositionAdjustments_ = java.util.Collections.emptyList(); + + private void ensureFacetPositionAdjustmentsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + facetPositionAdjustments_ = + new java.util.ArrayList< + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction + .FacetPositionAdjustment>(facetPositionAdjustments_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment, + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment + .Builder, + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction + .FacetPositionAdjustmentOrBuilder> + facetPositionAdjustmentsBuilder_; + + /** + * + * + *
+       * Each instance corresponds to a force return attribute for the given
+       * condition. There can't be more 3 instances here.
+       * 
+ * + * + * repeated .google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + public java.util.List< + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment> + getFacetPositionAdjustmentsList() { + if (facetPositionAdjustmentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(facetPositionAdjustments_); + } else { + return facetPositionAdjustmentsBuilder_.getMessageList(); + } + } + /** + * + * + *
+       * Each instance corresponds to a force return attribute for the given
+       * condition. There can't be more 3 instances here.
+       * 
+ * + * + * repeated .google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + public int getFacetPositionAdjustmentsCount() { + if (facetPositionAdjustmentsBuilder_ == null) { + return facetPositionAdjustments_.size(); + } else { + return facetPositionAdjustmentsBuilder_.getCount(); + } + } + /** + * + * + *
+       * Each instance corresponds to a force return attribute for the given
+       * condition. There can't be more 3 instances here.
+       * 
+ * + * + * repeated .google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + public com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment + getFacetPositionAdjustments(int index) { + if (facetPositionAdjustmentsBuilder_ == null) { + return facetPositionAdjustments_.get(index); + } else { + return facetPositionAdjustmentsBuilder_.getMessage(index); + } + } + /** + * + * + *
+       * Each instance corresponds to a force return attribute for the given
+       * condition. There can't be more 3 instances here.
+       * 
+ * + * + * repeated .google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + public Builder setFacetPositionAdjustments( + int index, + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment + value) { + if (facetPositionAdjustmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFacetPositionAdjustmentsIsMutable(); + facetPositionAdjustments_.set(index, value); + onChanged(); + } else { + facetPositionAdjustmentsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Each instance corresponds to a force return attribute for the given
+       * condition. There can't be more 3 instances here.
+       * 
+ * + * + * repeated .google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + public Builder setFacetPositionAdjustments( + int index, + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment.Builder + builderForValue) { + if (facetPositionAdjustmentsBuilder_ == null) { + ensureFacetPositionAdjustmentsIsMutable(); + facetPositionAdjustments_.set(index, builderForValue.build()); + onChanged(); + } else { + facetPositionAdjustmentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Each instance corresponds to a force return attribute for the given
+       * condition. There can't be more 3 instances here.
+       * 
+ * + * + * repeated .google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + public Builder addFacetPositionAdjustments( + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment + value) { + if (facetPositionAdjustmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFacetPositionAdjustmentsIsMutable(); + facetPositionAdjustments_.add(value); + onChanged(); + } else { + facetPositionAdjustmentsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+       * Each instance corresponds to a force return attribute for the given
+       * condition. There can't be more 3 instances here.
+       * 
+ * + * + * repeated .google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + public Builder addFacetPositionAdjustments( + int index, + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment + value) { + if (facetPositionAdjustmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFacetPositionAdjustmentsIsMutable(); + facetPositionAdjustments_.add(index, value); + onChanged(); + } else { + facetPositionAdjustmentsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+       * Each instance corresponds to a force return attribute for the given
+       * condition. There can't be more 3 instances here.
+       * 
+ * + * + * repeated .google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + public Builder addFacetPositionAdjustments( + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment.Builder + builderForValue) { + if (facetPositionAdjustmentsBuilder_ == null) { + ensureFacetPositionAdjustmentsIsMutable(); + facetPositionAdjustments_.add(builderForValue.build()); + onChanged(); + } else { + facetPositionAdjustmentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Each instance corresponds to a force return attribute for the given
+       * condition. There can't be more 3 instances here.
+       * 
+ * + * + * repeated .google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + public Builder addFacetPositionAdjustments( + int index, + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment.Builder + builderForValue) { + if (facetPositionAdjustmentsBuilder_ == null) { + ensureFacetPositionAdjustmentsIsMutable(); + facetPositionAdjustments_.add(index, builderForValue.build()); + onChanged(); + } else { + facetPositionAdjustmentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+       * Each instance corresponds to a force return attribute for the given
+       * condition. There can't be more 3 instances here.
+       * 
+ * + * + * repeated .google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + public Builder addAllFacetPositionAdjustments( + java.lang.Iterable< + ? extends + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction + .FacetPositionAdjustment> + values) { + if (facetPositionAdjustmentsBuilder_ == null) { + ensureFacetPositionAdjustmentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, facetPositionAdjustments_); + onChanged(); + } else { + facetPositionAdjustmentsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+       * Each instance corresponds to a force return attribute for the given
+       * condition. There can't be more 3 instances here.
+       * 
+ * + * + * repeated .google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + public Builder clearFacetPositionAdjustments() { + if (facetPositionAdjustmentsBuilder_ == null) { + facetPositionAdjustments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + facetPositionAdjustmentsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * Each instance corresponds to a force return attribute for the given
+       * condition. There can't be more 3 instances here.
+       * 
+ * + * + * repeated .google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + public Builder removeFacetPositionAdjustments(int index) { + if (facetPositionAdjustmentsBuilder_ == null) { + ensureFacetPositionAdjustmentsIsMutable(); + facetPositionAdjustments_.remove(index); + onChanged(); + } else { + facetPositionAdjustmentsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+       * Each instance corresponds to a force return attribute for the given
+       * condition. There can't be more 3 instances here.
+       * 
+ * + * + * repeated .google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + public com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment + .Builder + getFacetPositionAdjustmentsBuilder(int index) { + return getFacetPositionAdjustmentsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+       * Each instance corresponds to a force return attribute for the given
+       * condition. There can't be more 3 instances here.
+       * 
+ * + * + * repeated .google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + public com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction + .FacetPositionAdjustmentOrBuilder + getFacetPositionAdjustmentsOrBuilder(int index) { + if (facetPositionAdjustmentsBuilder_ == null) { + return facetPositionAdjustments_.get(index); + } else { + return facetPositionAdjustmentsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+       * Each instance corresponds to a force return attribute for the given
+       * condition. There can't be more 3 instances here.
+       * 
+ * + * + * repeated .google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction + .FacetPositionAdjustmentOrBuilder> + getFacetPositionAdjustmentsOrBuilderList() { + if (facetPositionAdjustmentsBuilder_ != null) { + return facetPositionAdjustmentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(facetPositionAdjustments_); + } + } + /** + * + * + *
+       * Each instance corresponds to a force return attribute for the given
+       * condition. There can't be more 3 instances here.
+       * 
+ * + * + * repeated .google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + public com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment + .Builder + addFacetPositionAdjustmentsBuilder() { + return getFacetPositionAdjustmentsFieldBuilder() + .addBuilder( + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment + .getDefaultInstance()); + } + /** + * + * + *
+       * Each instance corresponds to a force return attribute for the given
+       * condition. There can't be more 3 instances here.
+       * 
+ * + * + * repeated .google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + public com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment + .Builder + addFacetPositionAdjustmentsBuilder(int index) { + return getFacetPositionAdjustmentsFieldBuilder() + .addBuilder( + index, + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment + .getDefaultInstance()); + } + /** + * + * + *
+       * Each instance corresponds to a force return attribute for the given
+       * condition. There can't be more 3 instances here.
+       * 
+ * + * + * repeated .google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment facet_position_adjustments = 1; + * + */ + public java.util.List< + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment + .Builder> + getFacetPositionAdjustmentsBuilderList() { + return getFacetPositionAdjustmentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment, + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment + .Builder, + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction + .FacetPositionAdjustmentOrBuilder> + getFacetPositionAdjustmentsFieldBuilder() { + if (facetPositionAdjustmentsBuilder_ == null) { + facetPositionAdjustmentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction + .FacetPositionAdjustment, + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment + .Builder, + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction + .FacetPositionAdjustmentOrBuilder>( + facetPositionAdjustments_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + facetPositionAdjustments_ = null; + } + return facetPositionAdjustmentsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2beta.Rule.ForceReturnFacetAction) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2beta.Rule.ForceReturnFacetAction) + private static final com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction(); + } + + public static com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ForceReturnFacetAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface RemoveFacetActionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.retail.v2beta.Rule.RemoveFacetAction) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The attribute names (i.e. facet keys) to remove from the dynamic facets
+     * (if present in the request). There can't be more 3 attribute names.
+     * Each attribute name should be a valid attribute name, be non-empty and
+     * contain at most 80 characters.
+     * 
+ * + * repeated string attribute_names = 1; + * + * @return A list containing the attributeNames. + */ + java.util.List getAttributeNamesList(); + /** + * + * + *
+     * The attribute names (i.e. facet keys) to remove from the dynamic facets
+     * (if present in the request). There can't be more 3 attribute names.
+     * Each attribute name should be a valid attribute name, be non-empty and
+     * contain at most 80 characters.
+     * 
+ * + * repeated string attribute_names = 1; + * + * @return The count of attributeNames. + */ + int getAttributeNamesCount(); + /** + * + * + *
+     * The attribute names (i.e. facet keys) to remove from the dynamic facets
+     * (if present in the request). There can't be more 3 attribute names.
+     * Each attribute name should be a valid attribute name, be non-empty and
+     * contain at most 80 characters.
+     * 
+ * + * repeated string attribute_names = 1; + * + * @param index The index of the element to return. + * @return The attributeNames at the given index. + */ + java.lang.String getAttributeNames(int index); + /** + * + * + *
+     * The attribute names (i.e. facet keys) to remove from the dynamic facets
+     * (if present in the request). There can't be more 3 attribute names.
+     * Each attribute name should be a valid attribute name, be non-empty and
+     * contain at most 80 characters.
+     * 
+ * + * repeated string attribute_names = 1; + * + * @param index The index of the value to return. + * @return The bytes of the attributeNames at the given index. + */ + com.google.protobuf.ByteString getAttributeNamesBytes(int index); + } + /** + * + * + *
+   * Removes an attribute/facet in the request if is present.
+   *
+   * * Rule Condition:
+   *   Must specify non-empty
+   *   [Condition.query_terms][google.cloud.retail.v2beta.Condition.query_terms]
+   *   (for search only) or
+   *   [Condition.page_categories][google.cloud.retail.v2beta.Condition.page_categories]
+   *   (for browse only), but can't specify both.
+   *
+   * * Action Input: attribute name
+   *
+   * * Action Result: Will remove the attribute (as a facet) from the request
+   * if it is present.
+   *
+   * Example: Suppose the query is "shoes", the
+   * [Condition.query_terms][google.cloud.retail.v2beta.Condition.query_terms]
+   * is "shoes" and the attribute name "size", then facet key "size" will be
+   * removed from the request (if it is present).
+   * 
+ * + * Protobuf type {@code google.cloud.retail.v2beta.Rule.RemoveFacetAction} + */ + public static final class RemoveFacetAction extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.retail.v2beta.Rule.RemoveFacetAction) + RemoveFacetActionOrBuilder { + private static final long serialVersionUID = 0L; + // Use RemoveFacetAction.newBuilder() to construct. + private RemoveFacetAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RemoveFacetAction() { + attributeNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RemoveFacetAction(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2beta.CommonProto + .internal_static_google_cloud_retail_v2beta_Rule_RemoveFacetAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2beta.CommonProto + .internal_static_google_cloud_retail_v2beta_Rule_RemoveFacetAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2beta.Rule.RemoveFacetAction.class, + com.google.cloud.retail.v2beta.Rule.RemoveFacetAction.Builder.class); + } + + public static final int ATTRIBUTE_NAMES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList attributeNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+     * The attribute names (i.e. facet keys) to remove from the dynamic facets
+     * (if present in the request). There can't be more 3 attribute names.
+     * Each attribute name should be a valid attribute name, be non-empty and
+     * contain at most 80 characters.
+     * 
+ * + * repeated string attribute_names = 1; + * + * @return A list containing the attributeNames. + */ + public com.google.protobuf.ProtocolStringList getAttributeNamesList() { + return attributeNames_; + } + /** + * + * + *
+     * The attribute names (i.e. facet keys) to remove from the dynamic facets
+     * (if present in the request). There can't be more 3 attribute names.
+     * Each attribute name should be a valid attribute name, be non-empty and
+     * contain at most 80 characters.
+     * 
+ * + * repeated string attribute_names = 1; + * + * @return The count of attributeNames. + */ + public int getAttributeNamesCount() { + return attributeNames_.size(); + } + /** + * + * + *
+     * The attribute names (i.e. facet keys) to remove from the dynamic facets
+     * (if present in the request). There can't be more 3 attribute names.
+     * Each attribute name should be a valid attribute name, be non-empty and
+     * contain at most 80 characters.
+     * 
+ * + * repeated string attribute_names = 1; + * + * @param index The index of the element to return. + * @return The attributeNames at the given index. + */ + public java.lang.String getAttributeNames(int index) { + return attributeNames_.get(index); + } + /** + * + * + *
+     * The attribute names (i.e. facet keys) to remove from the dynamic facets
+     * (if present in the request). There can't be more 3 attribute names.
+     * Each attribute name should be a valid attribute name, be non-empty and
+     * contain at most 80 characters.
+     * 
+ * + * repeated string attribute_names = 1; + * + * @param index The index of the value to return. + * @return The bytes of the attributeNames at the given index. + */ + public com.google.protobuf.ByteString getAttributeNamesBytes(int index) { + return attributeNames_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < attributeNames_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, attributeNames_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < attributeNames_.size(); i++) { + dataSize += computeStringSizeNoTag(attributeNames_.getRaw(i)); + } + size += dataSize; + size += 1 * getAttributeNamesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.retail.v2beta.Rule.RemoveFacetAction)) { + return super.equals(obj); + } + com.google.cloud.retail.v2beta.Rule.RemoveFacetAction other = + (com.google.cloud.retail.v2beta.Rule.RemoveFacetAction) obj; + + if (!getAttributeNamesList().equals(other.getAttributeNamesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAttributeNamesCount() > 0) { + hash = (37 * hash) + ATTRIBUTE_NAMES_FIELD_NUMBER; + hash = (53 * hash) + getAttributeNamesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.retail.v2beta.Rule.RemoveFacetAction parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.Rule.RemoveFacetAction parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.Rule.RemoveFacetAction parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.Rule.RemoveFacetAction parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.Rule.RemoveFacetAction parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.retail.v2beta.Rule.RemoveFacetAction parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.Rule.RemoveFacetAction parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.Rule.RemoveFacetAction parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.Rule.RemoveFacetAction parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.Rule.RemoveFacetAction parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.retail.v2beta.Rule.RemoveFacetAction parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.retail.v2beta.Rule.RemoveFacetAction parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.retail.v2beta.Rule.RemoveFacetAction prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Removes an attribute/facet in the request if is present.
+     *
+     * * Rule Condition:
+     *   Must specify non-empty
+     *   [Condition.query_terms][google.cloud.retail.v2beta.Condition.query_terms]
+     *   (for search only) or
+     *   [Condition.page_categories][google.cloud.retail.v2beta.Condition.page_categories]
+     *   (for browse only), but can't specify both.
+     *
+     * * Action Input: attribute name
+     *
+     * * Action Result: Will remove the attribute (as a facet) from the request
+     * if it is present.
+     *
+     * Example: Suppose the query is "shoes", the
+     * [Condition.query_terms][google.cloud.retail.v2beta.Condition.query_terms]
+     * is "shoes" and the attribute name "size", then facet key "size" will be
+     * removed from the request (if it is present).
+     * 
+ * + * Protobuf type {@code google.cloud.retail.v2beta.Rule.RemoveFacetAction} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.retail.v2beta.Rule.RemoveFacetAction) + com.google.cloud.retail.v2beta.Rule.RemoveFacetActionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.retail.v2beta.CommonProto + .internal_static_google_cloud_retail_v2beta_Rule_RemoveFacetAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2beta.CommonProto + .internal_static_google_cloud_retail_v2beta_Rule_RemoveFacetAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2beta.Rule.RemoveFacetAction.class, + com.google.cloud.retail.v2beta.Rule.RemoveFacetAction.Builder.class); + } + + // Construct using com.google.cloud.retail.v2beta.Rule.RemoveFacetAction.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + attributeNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2beta.CommonProto + .internal_static_google_cloud_retail_v2beta_Rule_RemoveFacetAction_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.Rule.RemoveFacetAction getDefaultInstanceForType() { + return com.google.cloud.retail.v2beta.Rule.RemoveFacetAction.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.Rule.RemoveFacetAction build() { + com.google.cloud.retail.v2beta.Rule.RemoveFacetAction result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.Rule.RemoveFacetAction buildPartial() { + com.google.cloud.retail.v2beta.Rule.RemoveFacetAction result = + new com.google.cloud.retail.v2beta.Rule.RemoveFacetAction(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.retail.v2beta.Rule.RemoveFacetAction result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + attributeNames_.makeImmutable(); + result.attributeNames_ = attributeNames_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.retail.v2beta.Rule.RemoveFacetAction) { + return mergeFrom((com.google.cloud.retail.v2beta.Rule.RemoveFacetAction) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.retail.v2beta.Rule.RemoveFacetAction other) { + if (other == com.google.cloud.retail.v2beta.Rule.RemoveFacetAction.getDefaultInstance()) + return this; + if (!other.attributeNames_.isEmpty()) { + if (attributeNames_.isEmpty()) { + attributeNames_ = other.attributeNames_; + bitField0_ |= 0x00000001; + } else { + ensureAttributeNamesIsMutable(); + attributeNames_.addAll(other.attributeNames_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAttributeNamesIsMutable(); + attributeNames_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList attributeNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAttributeNamesIsMutable() { + if (!attributeNames_.isModifiable()) { + attributeNames_ = new com.google.protobuf.LazyStringArrayList(attributeNames_); + } + bitField0_ |= 0x00000001; + } + /** + * + * + *
+       * The attribute names (i.e. facet keys) to remove from the dynamic facets
+       * (if present in the request). There can't be more 3 attribute names.
+       * Each attribute name should be a valid attribute name, be non-empty and
+       * contain at most 80 characters.
+       * 
+ * + * repeated string attribute_names = 1; + * + * @return A list containing the attributeNames. + */ + public com.google.protobuf.ProtocolStringList getAttributeNamesList() { + attributeNames_.makeImmutable(); + return attributeNames_; + } + /** + * + * + *
+       * The attribute names (i.e. facet keys) to remove from the dynamic facets
+       * (if present in the request). There can't be more 3 attribute names.
+       * Each attribute name should be a valid attribute name, be non-empty and
+       * contain at most 80 characters.
+       * 
+ * + * repeated string attribute_names = 1; + * + * @return The count of attributeNames. + */ + public int getAttributeNamesCount() { + return attributeNames_.size(); + } + /** + * + * + *
+       * The attribute names (i.e. facet keys) to remove from the dynamic facets
+       * (if present in the request). There can't be more 3 attribute names.
+       * Each attribute name should be a valid attribute name, be non-empty and
+       * contain at most 80 characters.
+       * 
+ * + * repeated string attribute_names = 1; + * + * @param index The index of the element to return. + * @return The attributeNames at the given index. + */ + public java.lang.String getAttributeNames(int index) { + return attributeNames_.get(index); + } + /** + * + * + *
+       * The attribute names (i.e. facet keys) to remove from the dynamic facets
+       * (if present in the request). There can't be more 3 attribute names.
+       * Each attribute name should be a valid attribute name, be non-empty and
+       * contain at most 80 characters.
+       * 
+ * + * repeated string attribute_names = 1; + * + * @param index The index of the value to return. + * @return The bytes of the attributeNames at the given index. + */ + public com.google.protobuf.ByteString getAttributeNamesBytes(int index) { + return attributeNames_.getByteString(index); + } + /** + * + * + *
+       * The attribute names (i.e. facet keys) to remove from the dynamic facets
+       * (if present in the request). There can't be more 3 attribute names.
+       * Each attribute name should be a valid attribute name, be non-empty and
+       * contain at most 80 characters.
+       * 
+ * + * repeated string attribute_names = 1; + * + * @param index The index to set the value at. + * @param value The attributeNames to set. + * @return This builder for chaining. + */ + public Builder setAttributeNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttributeNamesIsMutable(); + attributeNames_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * The attribute names (i.e. facet keys) to remove from the dynamic facets
+       * (if present in the request). There can't be more 3 attribute names.
+       * Each attribute name should be a valid attribute name, be non-empty and
+       * contain at most 80 characters.
+       * 
+ * + * repeated string attribute_names = 1; + * + * @param value The attributeNames to add. + * @return This builder for chaining. + */ + public Builder addAttributeNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttributeNamesIsMutable(); + attributeNames_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * The attribute names (i.e. facet keys) to remove from the dynamic facets
+       * (if present in the request). There can't be more 3 attribute names.
+       * Each attribute name should be a valid attribute name, be non-empty and
+       * contain at most 80 characters.
+       * 
+ * + * repeated string attribute_names = 1; + * + * @param values The attributeNames to add. + * @return This builder for chaining. + */ + public Builder addAllAttributeNames(java.lang.Iterable values) { + ensureAttributeNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, attributeNames_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * The attribute names (i.e. facet keys) to remove from the dynamic facets
+       * (if present in the request). There can't be more 3 attribute names.
+       * Each attribute name should be a valid attribute name, be non-empty and
+       * contain at most 80 characters.
+       * 
+ * + * repeated string attribute_names = 1; + * + * @return This builder for chaining. + */ + public Builder clearAttributeNames() { + attributeNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + /** + * + * + *
+       * The attribute names (i.e. facet keys) to remove from the dynamic facets
+       * (if present in the request). There can't be more 3 attribute names.
+       * Each attribute name should be a valid attribute name, be non-empty and
+       * contain at most 80 characters.
+       * 
+ * + * repeated string attribute_names = 1; + * + * @param value The bytes of the attributeNames to add. + * @return This builder for chaining. + */ + public Builder addAttributeNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAttributeNamesIsMutable(); + attributeNames_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.retail.v2beta.Rule.RemoveFacetAction) + } + + // @@protoc_insertion_point(class_scope:google.cloud.retail.v2beta.Rule.RemoveFacetAction) + private static final com.google.cloud.retail.v2beta.Rule.RemoveFacetAction DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.retail.v2beta.Rule.RemoveFacetAction(); + } + + public static com.google.cloud.retail.v2beta.Rule.RemoveFacetAction getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RemoveFacetAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.Rule.RemoveFacetAction getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int actionCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object action_; + + public enum ActionCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + BOOST_ACTION(2), + REDIRECT_ACTION(3), + ONEWAY_SYNONYMS_ACTION(6), + DO_NOT_ASSOCIATE_ACTION(7), + REPLACEMENT_ACTION(8), + IGNORE_ACTION(9), + FILTER_ACTION(10), + TWOWAY_SYNONYMS_ACTION(11), + FORCE_RETURN_FACET_ACTION(12), + REMOVE_FACET_ACTION(13), + ACTION_NOT_SET(0); + private final int value; + + private ActionCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ActionCase valueOf(int value) { + return forNumber(value); + } + + public static ActionCase forNumber(int value) { + switch (value) { + case 2: + return BOOST_ACTION; + case 3: + return REDIRECT_ACTION; + case 6: + return ONEWAY_SYNONYMS_ACTION; + case 7: + return DO_NOT_ASSOCIATE_ACTION; + case 8: + return REPLACEMENT_ACTION; + case 9: + return IGNORE_ACTION; + case 10: + return FILTER_ACTION; + case 11: + return TWOWAY_SYNONYMS_ACTION; + case 12: + return FORCE_RETURN_FACET_ACTION; + case 13: + return REMOVE_FACET_ACTION; + case 0: + return ACTION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ActionCase getActionCase() { + return ActionCase.forNumber(actionCase_); + } + + public static final int BOOST_ACTION_FIELD_NUMBER = 2; + /** + * + * + *
+   * A boost action.
+   * 
+ * + * .google.cloud.retail.v2beta.Rule.BoostAction boost_action = 2; + * + * @return Whether the boostAction field is set. + */ + @java.lang.Override + public boolean hasBoostAction() { + return actionCase_ == 2; + } + /** + * + * + *
+   * A boost action.
+   * 
+ * + * .google.cloud.retail.v2beta.Rule.BoostAction boost_action = 2; + * + * @return The boostAction. + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.Rule.BoostAction getBoostAction() { + if (actionCase_ == 2) { + return (com.google.cloud.retail.v2beta.Rule.BoostAction) action_; + } + return com.google.cloud.retail.v2beta.Rule.BoostAction.getDefaultInstance(); + } + /** + * + * + *
+   * A boost action.
+   * 
+ * + * .google.cloud.retail.v2beta.Rule.BoostAction boost_action = 2; + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.Rule.BoostActionOrBuilder getBoostActionOrBuilder() { + if (actionCase_ == 2) { + return (com.google.cloud.retail.v2beta.Rule.BoostAction) action_; + } + return com.google.cloud.retail.v2beta.Rule.BoostAction.getDefaultInstance(); + } + + public static final int REDIRECT_ACTION_FIELD_NUMBER = 3; + /** + * + * + *
+   * Redirects a shopper to a specific page.
+   * 
+ * + * .google.cloud.retail.v2beta.Rule.RedirectAction redirect_action = 3; + * + * @return Whether the redirectAction field is set. + */ + @java.lang.Override + public boolean hasRedirectAction() { + return actionCase_ == 3; + } + /** + * + * + *
+   * Redirects a shopper to a specific page.
+   * 
+ * + * .google.cloud.retail.v2beta.Rule.RedirectAction redirect_action = 3; + * + * @return The redirectAction. + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.Rule.RedirectAction getRedirectAction() { + if (actionCase_ == 3) { + return (com.google.cloud.retail.v2beta.Rule.RedirectAction) action_; + } + return com.google.cloud.retail.v2beta.Rule.RedirectAction.getDefaultInstance(); + } + /** + * + * + *
+   * Redirects a shopper to a specific page.
+   * 
+ * + * .google.cloud.retail.v2beta.Rule.RedirectAction redirect_action = 3; + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.Rule.RedirectActionOrBuilder getRedirectActionOrBuilder() { + if (actionCase_ == 3) { + return (com.google.cloud.retail.v2beta.Rule.RedirectAction) action_; + } + return com.google.cloud.retail.v2beta.Rule.RedirectAction.getDefaultInstance(); + } + + public static final int ONEWAY_SYNONYMS_ACTION_FIELD_NUMBER = 6; + /** + * + * + *
+   * Treats specific term as a synonym with a group of terms.
+   * Group of terms will not be treated as synonyms with the specific term.
+   * 
+ * + * .google.cloud.retail.v2beta.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; + * + * @return Whether the onewaySynonymsAction field is set. + */ + @java.lang.Override + public boolean hasOnewaySynonymsAction() { + return actionCase_ == 6; + } + /** + * + * + *
+   * Treats specific term as a synonym with a group of terms.
+   * Group of terms will not be treated as synonyms with the specific term.
+   * 
+ * + * .google.cloud.retail.v2beta.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; + * + * @return The onewaySynonymsAction. + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.Rule.OnewaySynonymsAction getOnewaySynonymsAction() { + if (actionCase_ == 6) { + return (com.google.cloud.retail.v2beta.Rule.OnewaySynonymsAction) action_; + } + return com.google.cloud.retail.v2beta.Rule.OnewaySynonymsAction.getDefaultInstance(); } /** * @@ -8647,69 +11521,176 @@ public com.google.cloud.retail.v2beta.Rule.FilterAction getFilterAction() { * * *
-   * Filters results.
+   * Filters results.
+   * 
+ * + * .google.cloud.retail.v2beta.Rule.FilterAction filter_action = 10; + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.Rule.FilterActionOrBuilder getFilterActionOrBuilder() { + if (actionCase_ == 10) { + return (com.google.cloud.retail.v2beta.Rule.FilterAction) action_; + } + return com.google.cloud.retail.v2beta.Rule.FilterAction.getDefaultInstance(); + } + + public static final int TWOWAY_SYNONYMS_ACTION_FIELD_NUMBER = 11; + /** + * + * + *
+   * Treats a set of terms as synonyms of one another.
+   * 
+ * + * .google.cloud.retail.v2beta.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; + * + * @return Whether the twowaySynonymsAction field is set. + */ + @java.lang.Override + public boolean hasTwowaySynonymsAction() { + return actionCase_ == 11; + } + /** + * + * + *
+   * Treats a set of terms as synonyms of one another.
+   * 
+ * + * .google.cloud.retail.v2beta.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; + * + * @return The twowaySynonymsAction. + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction getTwowaySynonymsAction() { + if (actionCase_ == 11) { + return (com.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction) action_; + } + return com.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction.getDefaultInstance(); + } + /** + * + * + *
+   * Treats a set of terms as synonyms of one another.
+   * 
+ * + * .google.cloud.retail.v2beta.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.Rule.TwowaySynonymsActionOrBuilder + getTwowaySynonymsActionOrBuilder() { + if (actionCase_ == 11) { + return (com.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction) action_; + } + return com.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction.getDefaultInstance(); + } + + public static final int FORCE_RETURN_FACET_ACTION_FIELD_NUMBER = 12; + /** + * + * + *
+   * Force returns an attribute as a facet in the request.
+   * 
+ * + * .google.cloud.retail.v2beta.Rule.ForceReturnFacetAction force_return_facet_action = 12; + * + * + * @return Whether the forceReturnFacetAction field is set. + */ + @java.lang.Override + public boolean hasForceReturnFacetAction() { + return actionCase_ == 12; + } + /** + * + * + *
+   * Force returns an attribute as a facet in the request.
+   * 
+ * + * .google.cloud.retail.v2beta.Rule.ForceReturnFacetAction force_return_facet_action = 12; + * + * + * @return The forceReturnFacetAction. + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction getForceReturnFacetAction() { + if (actionCase_ == 12) { + return (com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction) action_; + } + return com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.getDefaultInstance(); + } + /** + * + * + *
+   * Force returns an attribute as a facet in the request.
    * 
* - * .google.cloud.retail.v2beta.Rule.FilterAction filter_action = 10; + * .google.cloud.retail.v2beta.Rule.ForceReturnFacetAction force_return_facet_action = 12; + * */ @java.lang.Override - public com.google.cloud.retail.v2beta.Rule.FilterActionOrBuilder getFilterActionOrBuilder() { - if (actionCase_ == 10) { - return (com.google.cloud.retail.v2beta.Rule.FilterAction) action_; + public com.google.cloud.retail.v2beta.Rule.ForceReturnFacetActionOrBuilder + getForceReturnFacetActionOrBuilder() { + if (actionCase_ == 12) { + return (com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction) action_; } - return com.google.cloud.retail.v2beta.Rule.FilterAction.getDefaultInstance(); + return com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.getDefaultInstance(); } - public static final int TWOWAY_SYNONYMS_ACTION_FIELD_NUMBER = 11; + public static final int REMOVE_FACET_ACTION_FIELD_NUMBER = 13; /** * * *
-   * Treats a set of terms as synonyms of one another.
+   * Remove an attribute as a facet in the request (if present).
    * 
* - * .google.cloud.retail.v2beta.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; + * .google.cloud.retail.v2beta.Rule.RemoveFacetAction remove_facet_action = 13; * - * @return Whether the twowaySynonymsAction field is set. + * @return Whether the removeFacetAction field is set. */ @java.lang.Override - public boolean hasTwowaySynonymsAction() { - return actionCase_ == 11; + public boolean hasRemoveFacetAction() { + return actionCase_ == 13; } /** * * *
-   * Treats a set of terms as synonyms of one another.
+   * Remove an attribute as a facet in the request (if present).
    * 
* - * .google.cloud.retail.v2beta.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; + * .google.cloud.retail.v2beta.Rule.RemoveFacetAction remove_facet_action = 13; * - * @return The twowaySynonymsAction. + * @return The removeFacetAction. */ @java.lang.Override - public com.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction getTwowaySynonymsAction() { - if (actionCase_ == 11) { - return (com.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction) action_; + public com.google.cloud.retail.v2beta.Rule.RemoveFacetAction getRemoveFacetAction() { + if (actionCase_ == 13) { + return (com.google.cloud.retail.v2beta.Rule.RemoveFacetAction) action_; } - return com.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction.getDefaultInstance(); + return com.google.cloud.retail.v2beta.Rule.RemoveFacetAction.getDefaultInstance(); } /** * * *
-   * Treats a set of terms as synonyms of one another.
+   * Remove an attribute as a facet in the request (if present).
    * 
* - * .google.cloud.retail.v2beta.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; + * .google.cloud.retail.v2beta.Rule.RemoveFacetAction remove_facet_action = 13; */ @java.lang.Override - public com.google.cloud.retail.v2beta.Rule.TwowaySynonymsActionOrBuilder - getTwowaySynonymsActionOrBuilder() { - if (actionCase_ == 11) { - return (com.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction) action_; + public com.google.cloud.retail.v2beta.Rule.RemoveFacetActionOrBuilder + getRemoveFacetActionOrBuilder() { + if (actionCase_ == 13) { + return (com.google.cloud.retail.v2beta.Rule.RemoveFacetAction) action_; } - return com.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction.getDefaultInstance(); + return com.google.cloud.retail.v2beta.Rule.RemoveFacetAction.getDefaultInstance(); } public static final int CONDITION_FIELD_NUMBER = 1; @@ -8812,6 +11793,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (actionCase_ == 11) { output.writeMessage(11, (com.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction) action_); } + if (actionCase_ == 12) { + output.writeMessage(12, (com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction) action_); + } + if (actionCase_ == 13) { + output.writeMessage(13, (com.google.cloud.retail.v2beta.Rule.RemoveFacetAction) action_); + } getUnknownFields().writeTo(output); } @@ -8864,6 +11851,16 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 11, (com.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction) action_); } + if (actionCase_ == 12) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, (com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction) action_); + } + if (actionCase_ == 13) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, (com.google.cloud.retail.v2beta.Rule.RemoveFacetAction) action_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -8909,6 +11906,12 @@ public boolean equals(final java.lang.Object obj) { case 11: if (!getTwowaySynonymsAction().equals(other.getTwowaySynonymsAction())) return false; break; + case 12: + if (!getForceReturnFacetAction().equals(other.getForceReturnFacetAction())) return false; + break; + case 13: + if (!getRemoveFacetAction().equals(other.getRemoveFacetAction())) return false; + break; case 0: default: } @@ -8960,6 +11963,14 @@ public int hashCode() { hash = (37 * hash) + TWOWAY_SYNONYMS_ACTION_FIELD_NUMBER; hash = (53 * hash) + getTwowaySynonymsAction().hashCode(); break; + case 12: + hash = (37 * hash) + FORCE_RETURN_FACET_ACTION_FIELD_NUMBER; + hash = (53 * hash) + getForceReturnFacetAction().hashCode(); + break; + case 13: + hash = (37 * hash) + REMOVE_FACET_ACTION_FIELD_NUMBER; + hash = (53 * hash) + getRemoveFacetAction().hashCode(); + break; case 0: default: } @@ -9087,453 +12098,921 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.retail.v2beta.CommonProto - .internal_static_google_cloud_retail_v2beta_Rule_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.retail.v2beta.Rule.class, - com.google.cloud.retail.v2beta.Rule.Builder.class); + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.retail.v2beta.CommonProto + .internal_static_google_cloud_retail_v2beta_Rule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.retail.v2beta.Rule.class, + com.google.cloud.retail.v2beta.Rule.Builder.class); + } + + // Construct using com.google.cloud.retail.v2beta.Rule.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getConditionFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (boostActionBuilder_ != null) { + boostActionBuilder_.clear(); + } + if (redirectActionBuilder_ != null) { + redirectActionBuilder_.clear(); + } + if (onewaySynonymsActionBuilder_ != null) { + onewaySynonymsActionBuilder_.clear(); + } + if (doNotAssociateActionBuilder_ != null) { + doNotAssociateActionBuilder_.clear(); + } + if (replacementActionBuilder_ != null) { + replacementActionBuilder_.clear(); + } + if (ignoreActionBuilder_ != null) { + ignoreActionBuilder_.clear(); + } + if (filterActionBuilder_ != null) { + filterActionBuilder_.clear(); + } + if (twowaySynonymsActionBuilder_ != null) { + twowaySynonymsActionBuilder_.clear(); + } + if (forceReturnFacetActionBuilder_ != null) { + forceReturnFacetActionBuilder_.clear(); + } + if (removeFacetActionBuilder_ != null) { + removeFacetActionBuilder_.clear(); + } + condition_ = null; + if (conditionBuilder_ != null) { + conditionBuilder_.dispose(); + conditionBuilder_ = null; + } + actionCase_ = 0; + action_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.retail.v2beta.CommonProto + .internal_static_google_cloud_retail_v2beta_Rule_descriptor; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.Rule getDefaultInstanceForType() { + return com.google.cloud.retail.v2beta.Rule.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.Rule build() { + com.google.cloud.retail.v2beta.Rule result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.retail.v2beta.Rule buildPartial() { + com.google.cloud.retail.v2beta.Rule result = new com.google.cloud.retail.v2beta.Rule(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.retail.v2beta.Rule result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000400) != 0)) { + result.condition_ = conditionBuilder_ == null ? condition_ : conditionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.retail.v2beta.Rule result) { + result.actionCase_ = actionCase_; + result.action_ = this.action_; + if (actionCase_ == 2 && boostActionBuilder_ != null) { + result.action_ = boostActionBuilder_.build(); + } + if (actionCase_ == 3 && redirectActionBuilder_ != null) { + result.action_ = redirectActionBuilder_.build(); + } + if (actionCase_ == 6 && onewaySynonymsActionBuilder_ != null) { + result.action_ = onewaySynonymsActionBuilder_.build(); + } + if (actionCase_ == 7 && doNotAssociateActionBuilder_ != null) { + result.action_ = doNotAssociateActionBuilder_.build(); + } + if (actionCase_ == 8 && replacementActionBuilder_ != null) { + result.action_ = replacementActionBuilder_.build(); + } + if (actionCase_ == 9 && ignoreActionBuilder_ != null) { + result.action_ = ignoreActionBuilder_.build(); + } + if (actionCase_ == 10 && filterActionBuilder_ != null) { + result.action_ = filterActionBuilder_.build(); + } + if (actionCase_ == 11 && twowaySynonymsActionBuilder_ != null) { + result.action_ = twowaySynonymsActionBuilder_.build(); + } + if (actionCase_ == 12 && forceReturnFacetActionBuilder_ != null) { + result.action_ = forceReturnFacetActionBuilder_.build(); + } + if (actionCase_ == 13 && removeFacetActionBuilder_ != null) { + result.action_ = removeFacetActionBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.retail.v2beta.Rule) { + return mergeFrom((com.google.cloud.retail.v2beta.Rule) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.retail.v2beta.Rule other) { + if (other == com.google.cloud.retail.v2beta.Rule.getDefaultInstance()) return this; + if (other.hasCondition()) { + mergeCondition(other.getCondition()); + } + switch (other.getActionCase()) { + case BOOST_ACTION: + { + mergeBoostAction(other.getBoostAction()); + break; + } + case REDIRECT_ACTION: + { + mergeRedirectAction(other.getRedirectAction()); + break; + } + case ONEWAY_SYNONYMS_ACTION: + { + mergeOnewaySynonymsAction(other.getOnewaySynonymsAction()); + break; + } + case DO_NOT_ASSOCIATE_ACTION: + { + mergeDoNotAssociateAction(other.getDoNotAssociateAction()); + break; + } + case REPLACEMENT_ACTION: + { + mergeReplacementAction(other.getReplacementAction()); + break; + } + case IGNORE_ACTION: + { + mergeIgnoreAction(other.getIgnoreAction()); + break; + } + case FILTER_ACTION: + { + mergeFilterAction(other.getFilterAction()); + break; + } + case TWOWAY_SYNONYMS_ACTION: + { + mergeTwowaySynonymsAction(other.getTwowaySynonymsAction()); + break; + } + case FORCE_RETURN_FACET_ACTION: + { + mergeForceReturnFacetAction(other.getForceReturnFacetAction()); + break; + } + case REMOVE_FACET_ACTION: + { + mergeRemoveFacetAction(other.getRemoveFacetAction()); + break; + } + case ACTION_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } - // Construct using com.google.cloud.retail.v2beta.Rule.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getConditionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 10 + case 18: + { + input.readMessage(getBoostActionFieldBuilder().getBuilder(), extensionRegistry); + actionCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getRedirectActionFieldBuilder().getBuilder(), extensionRegistry); + actionCase_ = 3; + break; + } // case 26 + case 50: + { + input.readMessage( + getOnewaySynonymsActionFieldBuilder().getBuilder(), extensionRegistry); + actionCase_ = 6; + break; + } // case 50 + case 58: + { + input.readMessage( + getDoNotAssociateActionFieldBuilder().getBuilder(), extensionRegistry); + actionCase_ = 7; + break; + } // case 58 + case 66: + { + input.readMessage( + getReplacementActionFieldBuilder().getBuilder(), extensionRegistry); + actionCase_ = 8; + break; + } // case 66 + case 74: + { + input.readMessage(getIgnoreActionFieldBuilder().getBuilder(), extensionRegistry); + actionCase_ = 9; + break; + } // case 74 + case 82: + { + input.readMessage(getFilterActionFieldBuilder().getBuilder(), extensionRegistry); + actionCase_ = 10; + break; + } // case 82 + case 90: + { + input.readMessage( + getTwowaySynonymsActionFieldBuilder().getBuilder(), extensionRegistry); + actionCase_ = 11; + break; + } // case 90 + case 98: + { + input.readMessage( + getForceReturnFacetActionFieldBuilder().getBuilder(), extensionRegistry); + actionCase_ = 12; + break; + } // case 98 + case 106: + { + input.readMessage( + getRemoveFacetActionFieldBuilder().getBuilder(), extensionRegistry); + actionCase_ = 13; + break; + } // case 106 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } + private int actionCase_ = 0; + private java.lang.Object action_; - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getConditionFieldBuilder(); - } + public ActionCase getActionCase() { + return ActionCase.forNumber(actionCase_); } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (boostActionBuilder_ != null) { - boostActionBuilder_.clear(); - } - if (redirectActionBuilder_ != null) { - redirectActionBuilder_.clear(); - } - if (onewaySynonymsActionBuilder_ != null) { - onewaySynonymsActionBuilder_.clear(); - } - if (doNotAssociateActionBuilder_ != null) { - doNotAssociateActionBuilder_.clear(); - } - if (replacementActionBuilder_ != null) { - replacementActionBuilder_.clear(); - } - if (ignoreActionBuilder_ != null) { - ignoreActionBuilder_.clear(); - } - if (filterActionBuilder_ != null) { - filterActionBuilder_.clear(); - } - if (twowaySynonymsActionBuilder_ != null) { - twowaySynonymsActionBuilder_.clear(); - } - condition_ = null; - if (conditionBuilder_ != null) { - conditionBuilder_.dispose(); - conditionBuilder_ = null; - } + public Builder clearAction() { actionCase_ = 0; action_ = null; + onChanged(); return this; } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.retail.v2beta.CommonProto - .internal_static_google_cloud_retail_v2beta_Rule_descriptor; - } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.Rule.BoostAction, + com.google.cloud.retail.v2beta.Rule.BoostAction.Builder, + com.google.cloud.retail.v2beta.Rule.BoostActionOrBuilder> + boostActionBuilder_; + /** + * + * + *
+     * A boost action.
+     * 
+ * + * .google.cloud.retail.v2beta.Rule.BoostAction boost_action = 2; + * + * @return Whether the boostAction field is set. + */ @java.lang.Override - public com.google.cloud.retail.v2beta.Rule getDefaultInstanceForType() { - return com.google.cloud.retail.v2beta.Rule.getDefaultInstance(); + public boolean hasBoostAction() { + return actionCase_ == 2; } - + /** + * + * + *
+     * A boost action.
+     * 
+ * + * .google.cloud.retail.v2beta.Rule.BoostAction boost_action = 2; + * + * @return The boostAction. + */ @java.lang.Override - public com.google.cloud.retail.v2beta.Rule build() { - com.google.cloud.retail.v2beta.Rule result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + public com.google.cloud.retail.v2beta.Rule.BoostAction getBoostAction() { + if (boostActionBuilder_ == null) { + if (actionCase_ == 2) { + return (com.google.cloud.retail.v2beta.Rule.BoostAction) action_; + } + return com.google.cloud.retail.v2beta.Rule.BoostAction.getDefaultInstance(); + } else { + if (actionCase_ == 2) { + return boostActionBuilder_.getMessage(); + } + return com.google.cloud.retail.v2beta.Rule.BoostAction.getDefaultInstance(); } - return result; } - - @java.lang.Override - public com.google.cloud.retail.v2beta.Rule buildPartial() { - com.google.cloud.retail.v2beta.Rule result = new com.google.cloud.retail.v2beta.Rule(this); - if (bitField0_ != 0) { - buildPartial0(result); + /** + * + * + *
+     * A boost action.
+     * 
+ * + * .google.cloud.retail.v2beta.Rule.BoostAction boost_action = 2; + */ + public Builder setBoostAction(com.google.cloud.retail.v2beta.Rule.BoostAction value) { + if (boostActionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + action_ = value; + onChanged(); + } else { + boostActionBuilder_.setMessage(value); } - buildPartialOneofs(result); - onBuilt(); - return result; + actionCase_ = 2; + return this; } - - private void buildPartial0(com.google.cloud.retail.v2beta.Rule result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000100) != 0)) { - result.condition_ = conditionBuilder_ == null ? condition_ : conditionBuilder_.build(); - to_bitField0_ |= 0x00000001; + /** + * + * + *
+     * A boost action.
+     * 
+ * + * .google.cloud.retail.v2beta.Rule.BoostAction boost_action = 2; + */ + public Builder setBoostAction( + com.google.cloud.retail.v2beta.Rule.BoostAction.Builder builderForValue) { + if (boostActionBuilder_ == null) { + action_ = builderForValue.build(); + onChanged(); + } else { + boostActionBuilder_.setMessage(builderForValue.build()); } - result.bitField0_ |= to_bitField0_; + actionCase_ = 2; + return this; } - - private void buildPartialOneofs(com.google.cloud.retail.v2beta.Rule result) { - result.actionCase_ = actionCase_; - result.action_ = this.action_; - if (actionCase_ == 2 && boostActionBuilder_ != null) { - result.action_ = boostActionBuilder_.build(); - } - if (actionCase_ == 3 && redirectActionBuilder_ != null) { - result.action_ = redirectActionBuilder_.build(); - } - if (actionCase_ == 6 && onewaySynonymsActionBuilder_ != null) { - result.action_ = onewaySynonymsActionBuilder_.build(); - } - if (actionCase_ == 7 && doNotAssociateActionBuilder_ != null) { - result.action_ = doNotAssociateActionBuilder_.build(); - } - if (actionCase_ == 8 && replacementActionBuilder_ != null) { - result.action_ = replacementActionBuilder_.build(); - } - if (actionCase_ == 9 && ignoreActionBuilder_ != null) { - result.action_ = ignoreActionBuilder_.build(); - } - if (actionCase_ == 10 && filterActionBuilder_ != null) { - result.action_ = filterActionBuilder_.build(); - } - if (actionCase_ == 11 && twowaySynonymsActionBuilder_ != null) { - result.action_ = twowaySynonymsActionBuilder_.build(); + /** + * + * + *
+     * A boost action.
+     * 
+ * + * .google.cloud.retail.v2beta.Rule.BoostAction boost_action = 2; + */ + public Builder mergeBoostAction(com.google.cloud.retail.v2beta.Rule.BoostAction value) { + if (boostActionBuilder_ == null) { + if (actionCase_ == 2 + && action_ != com.google.cloud.retail.v2beta.Rule.BoostAction.getDefaultInstance()) { + action_ = + com.google.cloud.retail.v2beta.Rule.BoostAction.newBuilder( + (com.google.cloud.retail.v2beta.Rule.BoostAction) action_) + .mergeFrom(value) + .buildPartial(); + } else { + action_ = value; + } + onChanged(); + } else { + if (actionCase_ == 2) { + boostActionBuilder_.mergeFrom(value); + } else { + boostActionBuilder_.setMessage(value); + } } + actionCase_ = 2; + return this; } - - @java.lang.Override - public Builder clone() { - return super.clone(); + /** + * + * + *
+     * A boost action.
+     * 
+ * + * .google.cloud.retail.v2beta.Rule.BoostAction boost_action = 2; + */ + public Builder clearBoostAction() { + if (boostActionBuilder_ == null) { + if (actionCase_ == 2) { + actionCase_ = 0; + action_ = null; + onChanged(); + } + } else { + if (actionCase_ == 2) { + actionCase_ = 0; + action_ = null; + } + boostActionBuilder_.clear(); + } + return this; } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); + /** + * + * + *
+     * A boost action.
+     * 
+ * + * .google.cloud.retail.v2beta.Rule.BoostAction boost_action = 2; + */ + public com.google.cloud.retail.v2beta.Rule.BoostAction.Builder getBoostActionBuilder() { + return getBoostActionFieldBuilder().getBuilder(); } - + /** + * + * + *
+     * A boost action.
+     * 
+ * + * .google.cloud.retail.v2beta.Rule.BoostAction boost_action = 2; + */ @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + public com.google.cloud.retail.v2beta.Rule.BoostActionOrBuilder getBoostActionOrBuilder() { + if ((actionCase_ == 2) && (boostActionBuilder_ != null)) { + return boostActionBuilder_.getMessageOrBuilder(); + } else { + if (actionCase_ == 2) { + return (com.google.cloud.retail.v2beta.Rule.BoostAction) action_; + } + return com.google.cloud.retail.v2beta.Rule.BoostAction.getDefaultInstance(); + } } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + /** + * + * + *
+     * A boost action.
+     * 
+ * + * .google.cloud.retail.v2beta.Rule.BoostAction boost_action = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.Rule.BoostAction, + com.google.cloud.retail.v2beta.Rule.BoostAction.Builder, + com.google.cloud.retail.v2beta.Rule.BoostActionOrBuilder> + getBoostActionFieldBuilder() { + if (boostActionBuilder_ == null) { + if (!(actionCase_ == 2)) { + action_ = com.google.cloud.retail.v2beta.Rule.BoostAction.getDefaultInstance(); + } + boostActionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.Rule.BoostAction, + com.google.cloud.retail.v2beta.Rule.BoostAction.Builder, + com.google.cloud.retail.v2beta.Rule.BoostActionOrBuilder>( + (com.google.cloud.retail.v2beta.Rule.BoostAction) action_, + getParentForChildren(), + isClean()); + action_ = null; + } + actionCase_ = 2; + onChanged(); + return boostActionBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.Rule.RedirectAction, + com.google.cloud.retail.v2beta.Rule.RedirectAction.Builder, + com.google.cloud.retail.v2beta.Rule.RedirectActionOrBuilder> + redirectActionBuilder_; + /** + * + * + *
+     * Redirects a shopper to a specific page.
+     * 
+ * + * .google.cloud.retail.v2beta.Rule.RedirectAction redirect_action = 3; + * + * @return Whether the redirectAction field is set. + */ @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + public boolean hasRedirectAction() { + return actionCase_ == 3; } - + /** + * + * + *
+     * Redirects a shopper to a specific page.
+     * 
+ * + * .google.cloud.retail.v2beta.Rule.RedirectAction redirect_action = 3; + * + * @return The redirectAction. + */ @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + public com.google.cloud.retail.v2beta.Rule.RedirectAction getRedirectAction() { + if (redirectActionBuilder_ == null) { + if (actionCase_ == 3) { + return (com.google.cloud.retail.v2beta.Rule.RedirectAction) action_; + } + return com.google.cloud.retail.v2beta.Rule.RedirectAction.getDefaultInstance(); + } else { + if (actionCase_ == 3) { + return redirectActionBuilder_.getMessage(); + } + return com.google.cloud.retail.v2beta.Rule.RedirectAction.getDefaultInstance(); + } } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.retail.v2beta.Rule) { - return mergeFrom((com.google.cloud.retail.v2beta.Rule) other); + /** + * + * + *
+     * Redirects a shopper to a specific page.
+     * 
+ * + * .google.cloud.retail.v2beta.Rule.RedirectAction redirect_action = 3; + */ + public Builder setRedirectAction(com.google.cloud.retail.v2beta.Rule.RedirectAction value) { + if (redirectActionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + action_ = value; + onChanged(); } else { - super.mergeFrom(other); - return this; + redirectActionBuilder_.setMessage(value); } + actionCase_ = 3; + return this; } - - public Builder mergeFrom(com.google.cloud.retail.v2beta.Rule other) { - if (other == com.google.cloud.retail.v2beta.Rule.getDefaultInstance()) return this; - if (other.hasCondition()) { - mergeCondition(other.getCondition()); - } - switch (other.getActionCase()) { - case BOOST_ACTION: - { - mergeBoostAction(other.getBoostAction()); - break; - } - case REDIRECT_ACTION: - { - mergeRedirectAction(other.getRedirectAction()); - break; - } - case ONEWAY_SYNONYMS_ACTION: - { - mergeOnewaySynonymsAction(other.getOnewaySynonymsAction()); - break; - } - case DO_NOT_ASSOCIATE_ACTION: - { - mergeDoNotAssociateAction(other.getDoNotAssociateAction()); - break; - } - case REPLACEMENT_ACTION: - { - mergeReplacementAction(other.getReplacementAction()); - break; - } - case IGNORE_ACTION: - { - mergeIgnoreAction(other.getIgnoreAction()); - break; - } - case FILTER_ACTION: - { - mergeFilterAction(other.getFilterAction()); - break; - } - case TWOWAY_SYNONYMS_ACTION: - { - mergeTwowaySynonymsAction(other.getTwowaySynonymsAction()); - break; - } - case ACTION_NOT_SET: - { - break; - } + /** + * + * + *
+     * Redirects a shopper to a specific page.
+     * 
+ * + * .google.cloud.retail.v2beta.Rule.RedirectAction redirect_action = 3; + */ + public Builder setRedirectAction( + com.google.cloud.retail.v2beta.Rule.RedirectAction.Builder builderForValue) { + if (redirectActionBuilder_ == null) { + action_ = builderForValue.build(); + onChanged(); + } else { + redirectActionBuilder_.setMessage(builderForValue.build()); } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); + actionCase_ = 3; return this; } - - @java.lang.Override - public final boolean isInitialized() { - return true; + /** + * + * + *
+     * Redirects a shopper to a specific page.
+     * 
+ * + * .google.cloud.retail.v2beta.Rule.RedirectAction redirect_action = 3; + */ + public Builder mergeRedirectAction(com.google.cloud.retail.v2beta.Rule.RedirectAction value) { + if (redirectActionBuilder_ == null) { + if (actionCase_ == 3 + && action_ != com.google.cloud.retail.v2beta.Rule.RedirectAction.getDefaultInstance()) { + action_ = + com.google.cloud.retail.v2beta.Rule.RedirectAction.newBuilder( + (com.google.cloud.retail.v2beta.Rule.RedirectAction) action_) + .mergeFrom(value) + .buildPartial(); + } else { + action_ = value; + } + onChanged(); + } else { + if (actionCase_ == 3) { + redirectActionBuilder_.mergeFrom(value); + } else { + redirectActionBuilder_.setMessage(value); + } + } + actionCase_ = 3; + return this; } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); + /** + * + * + *
+     * Redirects a shopper to a specific page.
+     * 
+ * + * .google.cloud.retail.v2beta.Rule.RedirectAction redirect_action = 3; + */ + public Builder clearRedirectAction() { + if (redirectActionBuilder_ == null) { + if (actionCase_ == 3) { + actionCase_ = 0; + action_ = null; + onChanged(); + } + } else { + if (actionCase_ == 3) { + actionCase_ = 0; + action_ = null; + } + redirectActionBuilder_.clear(); } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getConditionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 10 - case 18: - { - input.readMessage(getBoostActionFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage(getRedirectActionFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 3; - break; - } // case 26 - case 50: - { - input.readMessage( - getOnewaySynonymsActionFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 6; - break; - } // case 50 - case 58: - { - input.readMessage( - getDoNotAssociateActionFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 7; - break; - } // case 58 - case 66: - { - input.readMessage( - getReplacementActionFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 8; - break; - } // case 66 - case 74: - { - input.readMessage(getIgnoreActionFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 9; - break; - } // case 74 - case 82: - { - input.readMessage(getFilterActionFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 10; - break; - } // case 82 - case 90: - { - input.readMessage( - getTwowaySynonymsActionFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 11; - break; - } // case 90 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally return this; } - - private int actionCase_ = 0; - private java.lang.Object action_; - - public ActionCase getActionCase() { - return ActionCase.forNumber(actionCase_); + /** + * + * + *
+     * Redirects a shopper to a specific page.
+     * 
+ * + * .google.cloud.retail.v2beta.Rule.RedirectAction redirect_action = 3; + */ + public com.google.cloud.retail.v2beta.Rule.RedirectAction.Builder getRedirectActionBuilder() { + return getRedirectActionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Redirects a shopper to a specific page.
+     * 
+ * + * .google.cloud.retail.v2beta.Rule.RedirectAction redirect_action = 3; + */ + @java.lang.Override + public com.google.cloud.retail.v2beta.Rule.RedirectActionOrBuilder + getRedirectActionOrBuilder() { + if ((actionCase_ == 3) && (redirectActionBuilder_ != null)) { + return redirectActionBuilder_.getMessageOrBuilder(); + } else { + if (actionCase_ == 3) { + return (com.google.cloud.retail.v2beta.Rule.RedirectAction) action_; + } + return com.google.cloud.retail.v2beta.Rule.RedirectAction.getDefaultInstance(); + } } - - public Builder clearAction() { - actionCase_ = 0; - action_ = null; + /** + * + * + *
+     * Redirects a shopper to a specific page.
+     * 
+ * + * .google.cloud.retail.v2beta.Rule.RedirectAction redirect_action = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.Rule.RedirectAction, + com.google.cloud.retail.v2beta.Rule.RedirectAction.Builder, + com.google.cloud.retail.v2beta.Rule.RedirectActionOrBuilder> + getRedirectActionFieldBuilder() { + if (redirectActionBuilder_ == null) { + if (!(actionCase_ == 3)) { + action_ = com.google.cloud.retail.v2beta.Rule.RedirectAction.getDefaultInstance(); + } + redirectActionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.retail.v2beta.Rule.RedirectAction, + com.google.cloud.retail.v2beta.Rule.RedirectAction.Builder, + com.google.cloud.retail.v2beta.Rule.RedirectActionOrBuilder>( + (com.google.cloud.retail.v2beta.Rule.RedirectAction) action_, + getParentForChildren(), + isClean()); + action_ = null; + } + actionCase_ = 3; onChanged(); - return this; + return redirectActionBuilder_; } - private int bitField0_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2beta.Rule.BoostAction, - com.google.cloud.retail.v2beta.Rule.BoostAction.Builder, - com.google.cloud.retail.v2beta.Rule.BoostActionOrBuilder> - boostActionBuilder_; + com.google.cloud.retail.v2beta.Rule.OnewaySynonymsAction, + com.google.cloud.retail.v2beta.Rule.OnewaySynonymsAction.Builder, + com.google.cloud.retail.v2beta.Rule.OnewaySynonymsActionOrBuilder> + onewaySynonymsActionBuilder_; /** * * *
-     * A boost action.
+     * Treats specific term as a synonym with a group of terms.
+     * Group of terms will not be treated as synonyms with the specific term.
      * 
* - * .google.cloud.retail.v2beta.Rule.BoostAction boost_action = 2; + * .google.cloud.retail.v2beta.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; + * * - * @return Whether the boostAction field is set. + * @return Whether the onewaySynonymsAction field is set. */ @java.lang.Override - public boolean hasBoostAction() { - return actionCase_ == 2; + public boolean hasOnewaySynonymsAction() { + return actionCase_ == 6; } /** * * *
-     * A boost action.
+     * Treats specific term as a synonym with a group of terms.
+     * Group of terms will not be treated as synonyms with the specific term.
      * 
* - * .google.cloud.retail.v2beta.Rule.BoostAction boost_action = 2; + * .google.cloud.retail.v2beta.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; + * * - * @return The boostAction. + * @return The onewaySynonymsAction. */ @java.lang.Override - public com.google.cloud.retail.v2beta.Rule.BoostAction getBoostAction() { - if (boostActionBuilder_ == null) { - if (actionCase_ == 2) { - return (com.google.cloud.retail.v2beta.Rule.BoostAction) action_; + public com.google.cloud.retail.v2beta.Rule.OnewaySynonymsAction getOnewaySynonymsAction() { + if (onewaySynonymsActionBuilder_ == null) { + if (actionCase_ == 6) { + return (com.google.cloud.retail.v2beta.Rule.OnewaySynonymsAction) action_; } - return com.google.cloud.retail.v2beta.Rule.BoostAction.getDefaultInstance(); + return com.google.cloud.retail.v2beta.Rule.OnewaySynonymsAction.getDefaultInstance(); } else { - if (actionCase_ == 2) { - return boostActionBuilder_.getMessage(); + if (actionCase_ == 6) { + return onewaySynonymsActionBuilder_.getMessage(); } - return com.google.cloud.retail.v2beta.Rule.BoostAction.getDefaultInstance(); + return com.google.cloud.retail.v2beta.Rule.OnewaySynonymsAction.getDefaultInstance(); } } /** * * *
-     * A boost action.
+     * Treats specific term as a synonym with a group of terms.
+     * Group of terms will not be treated as synonyms with the specific term.
      * 
* - * .google.cloud.retail.v2beta.Rule.BoostAction boost_action = 2; + * .google.cloud.retail.v2beta.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; + * */ - public Builder setBoostAction(com.google.cloud.retail.v2beta.Rule.BoostAction value) { - if (boostActionBuilder_ == null) { + public Builder setOnewaySynonymsAction( + com.google.cloud.retail.v2beta.Rule.OnewaySynonymsAction value) { + if (onewaySynonymsActionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } action_ = value; onChanged(); } else { - boostActionBuilder_.setMessage(value); + onewaySynonymsActionBuilder_.setMessage(value); } - actionCase_ = 2; + actionCase_ = 6; return this; } /** * * *
-     * A boost action.
+     * Treats specific term as a synonym with a group of terms.
+     * Group of terms will not be treated as synonyms with the specific term.
      * 
* - * .google.cloud.retail.v2beta.Rule.BoostAction boost_action = 2; + * .google.cloud.retail.v2beta.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; + * */ - public Builder setBoostAction( - com.google.cloud.retail.v2beta.Rule.BoostAction.Builder builderForValue) { - if (boostActionBuilder_ == null) { + public Builder setOnewaySynonymsAction( + com.google.cloud.retail.v2beta.Rule.OnewaySynonymsAction.Builder builderForValue) { + if (onewaySynonymsActionBuilder_ == null) { action_ = builderForValue.build(); onChanged(); } else { - boostActionBuilder_.setMessage(builderForValue.build()); + onewaySynonymsActionBuilder_.setMessage(builderForValue.build()); } - actionCase_ = 2; + actionCase_ = 6; return this; } /** * * *
-     * A boost action.
+     * Treats specific term as a synonym with a group of terms.
+     * Group of terms will not be treated as synonyms with the specific term.
      * 
* - * .google.cloud.retail.v2beta.Rule.BoostAction boost_action = 2; + * .google.cloud.retail.v2beta.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; + * */ - public Builder mergeBoostAction(com.google.cloud.retail.v2beta.Rule.BoostAction value) { - if (boostActionBuilder_ == null) { - if (actionCase_ == 2 - && action_ != com.google.cloud.retail.v2beta.Rule.BoostAction.getDefaultInstance()) { + public Builder mergeOnewaySynonymsAction( + com.google.cloud.retail.v2beta.Rule.OnewaySynonymsAction value) { + if (onewaySynonymsActionBuilder_ == null) { + if (actionCase_ == 6 + && action_ + != com.google.cloud.retail.v2beta.Rule.OnewaySynonymsAction.getDefaultInstance()) { action_ = - com.google.cloud.retail.v2beta.Rule.BoostAction.newBuilder( - (com.google.cloud.retail.v2beta.Rule.BoostAction) action_) + com.google.cloud.retail.v2beta.Rule.OnewaySynonymsAction.newBuilder( + (com.google.cloud.retail.v2beta.Rule.OnewaySynonymsAction) action_) .mergeFrom(value) .buildPartial(); } else { @@ -9541,37 +13020,39 @@ public Builder mergeBoostAction(com.google.cloud.retail.v2beta.Rule.BoostAction } onChanged(); } else { - if (actionCase_ == 2) { - boostActionBuilder_.mergeFrom(value); + if (actionCase_ == 6) { + onewaySynonymsActionBuilder_.mergeFrom(value); } else { - boostActionBuilder_.setMessage(value); + onewaySynonymsActionBuilder_.setMessage(value); } } - actionCase_ = 2; + actionCase_ = 6; return this; } /** * * *
-     * A boost action.
+     * Treats specific term as a synonym with a group of terms.
+     * Group of terms will not be treated as synonyms with the specific term.
      * 
* - * .google.cloud.retail.v2beta.Rule.BoostAction boost_action = 2; + * .google.cloud.retail.v2beta.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; + * */ - public Builder clearBoostAction() { - if (boostActionBuilder_ == null) { - if (actionCase_ == 2) { + public Builder clearOnewaySynonymsAction() { + if (onewaySynonymsActionBuilder_ == null) { + if (actionCase_ == 6) { actionCase_ = 0; action_ = null; onChanged(); } } else { - if (actionCase_ == 2) { + if (actionCase_ == 6) { actionCase_ = 0; action_ = null; } - boostActionBuilder_.clear(); + onewaySynonymsActionBuilder_.clear(); } return this; } @@ -9579,170 +13060,186 @@ public Builder clearBoostAction() { * * *
-     * A boost action.
+     * Treats specific term as a synonym with a group of terms.
+     * Group of terms will not be treated as synonyms with the specific term.
      * 
* - * .google.cloud.retail.v2beta.Rule.BoostAction boost_action = 2; + * .google.cloud.retail.v2beta.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; + * */ - public com.google.cloud.retail.v2beta.Rule.BoostAction.Builder getBoostActionBuilder() { - return getBoostActionFieldBuilder().getBuilder(); + public com.google.cloud.retail.v2beta.Rule.OnewaySynonymsAction.Builder + getOnewaySynonymsActionBuilder() { + return getOnewaySynonymsActionFieldBuilder().getBuilder(); } /** * * *
-     * A boost action.
+     * Treats specific term as a synonym with a group of terms.
+     * Group of terms will not be treated as synonyms with the specific term.
      * 
* - * .google.cloud.retail.v2beta.Rule.BoostAction boost_action = 2; + * .google.cloud.retail.v2beta.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; + * */ @java.lang.Override - public com.google.cloud.retail.v2beta.Rule.BoostActionOrBuilder getBoostActionOrBuilder() { - if ((actionCase_ == 2) && (boostActionBuilder_ != null)) { - return boostActionBuilder_.getMessageOrBuilder(); + public com.google.cloud.retail.v2beta.Rule.OnewaySynonymsActionOrBuilder + getOnewaySynonymsActionOrBuilder() { + if ((actionCase_ == 6) && (onewaySynonymsActionBuilder_ != null)) { + return onewaySynonymsActionBuilder_.getMessageOrBuilder(); } else { - if (actionCase_ == 2) { - return (com.google.cloud.retail.v2beta.Rule.BoostAction) action_; + if (actionCase_ == 6) { + return (com.google.cloud.retail.v2beta.Rule.OnewaySynonymsAction) action_; } - return com.google.cloud.retail.v2beta.Rule.BoostAction.getDefaultInstance(); + return com.google.cloud.retail.v2beta.Rule.OnewaySynonymsAction.getDefaultInstance(); } } /** * * *
-     * A boost action.
+     * Treats specific term as a synonym with a group of terms.
+     * Group of terms will not be treated as synonyms with the specific term.
      * 
* - * .google.cloud.retail.v2beta.Rule.BoostAction boost_action = 2; + * .google.cloud.retail.v2beta.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2beta.Rule.BoostAction, - com.google.cloud.retail.v2beta.Rule.BoostAction.Builder, - com.google.cloud.retail.v2beta.Rule.BoostActionOrBuilder> - getBoostActionFieldBuilder() { - if (boostActionBuilder_ == null) { - if (!(actionCase_ == 2)) { - action_ = com.google.cloud.retail.v2beta.Rule.BoostAction.getDefaultInstance(); + com.google.cloud.retail.v2beta.Rule.OnewaySynonymsAction, + com.google.cloud.retail.v2beta.Rule.OnewaySynonymsAction.Builder, + com.google.cloud.retail.v2beta.Rule.OnewaySynonymsActionOrBuilder> + getOnewaySynonymsActionFieldBuilder() { + if (onewaySynonymsActionBuilder_ == null) { + if (!(actionCase_ == 6)) { + action_ = com.google.cloud.retail.v2beta.Rule.OnewaySynonymsAction.getDefaultInstance(); } - boostActionBuilder_ = + onewaySynonymsActionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2beta.Rule.BoostAction, - com.google.cloud.retail.v2beta.Rule.BoostAction.Builder, - com.google.cloud.retail.v2beta.Rule.BoostActionOrBuilder>( - (com.google.cloud.retail.v2beta.Rule.BoostAction) action_, + com.google.cloud.retail.v2beta.Rule.OnewaySynonymsAction, + com.google.cloud.retail.v2beta.Rule.OnewaySynonymsAction.Builder, + com.google.cloud.retail.v2beta.Rule.OnewaySynonymsActionOrBuilder>( + (com.google.cloud.retail.v2beta.Rule.OnewaySynonymsAction) action_, getParentForChildren(), isClean()); action_ = null; } - actionCase_ = 2; + actionCase_ = 6; onChanged(); - return boostActionBuilder_; + return onewaySynonymsActionBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2beta.Rule.RedirectAction, - com.google.cloud.retail.v2beta.Rule.RedirectAction.Builder, - com.google.cloud.retail.v2beta.Rule.RedirectActionOrBuilder> - redirectActionBuilder_; + com.google.cloud.retail.v2beta.Rule.DoNotAssociateAction, + com.google.cloud.retail.v2beta.Rule.DoNotAssociateAction.Builder, + com.google.cloud.retail.v2beta.Rule.DoNotAssociateActionOrBuilder> + doNotAssociateActionBuilder_; /** * * *
-     * Redirects a shopper to a specific page.
+     * Prevents term from being associated with other terms.
      * 
* - * .google.cloud.retail.v2beta.Rule.RedirectAction redirect_action = 3; + * .google.cloud.retail.v2beta.Rule.DoNotAssociateAction do_not_associate_action = 7; + * * - * @return Whether the redirectAction field is set. + * @return Whether the doNotAssociateAction field is set. */ @java.lang.Override - public boolean hasRedirectAction() { - return actionCase_ == 3; + public boolean hasDoNotAssociateAction() { + return actionCase_ == 7; } /** * * *
-     * Redirects a shopper to a specific page.
+     * Prevents term from being associated with other terms.
      * 
* - * .google.cloud.retail.v2beta.Rule.RedirectAction redirect_action = 3; + * .google.cloud.retail.v2beta.Rule.DoNotAssociateAction do_not_associate_action = 7; + * * - * @return The redirectAction. + * @return The doNotAssociateAction. */ @java.lang.Override - public com.google.cloud.retail.v2beta.Rule.RedirectAction getRedirectAction() { - if (redirectActionBuilder_ == null) { - if (actionCase_ == 3) { - return (com.google.cloud.retail.v2beta.Rule.RedirectAction) action_; + public com.google.cloud.retail.v2beta.Rule.DoNotAssociateAction getDoNotAssociateAction() { + if (doNotAssociateActionBuilder_ == null) { + if (actionCase_ == 7) { + return (com.google.cloud.retail.v2beta.Rule.DoNotAssociateAction) action_; } - return com.google.cloud.retail.v2beta.Rule.RedirectAction.getDefaultInstance(); + return com.google.cloud.retail.v2beta.Rule.DoNotAssociateAction.getDefaultInstance(); } else { - if (actionCase_ == 3) { - return redirectActionBuilder_.getMessage(); + if (actionCase_ == 7) { + return doNotAssociateActionBuilder_.getMessage(); } - return com.google.cloud.retail.v2beta.Rule.RedirectAction.getDefaultInstance(); + return com.google.cloud.retail.v2beta.Rule.DoNotAssociateAction.getDefaultInstance(); } } /** * * *
-     * Redirects a shopper to a specific page.
+     * Prevents term from being associated with other terms.
      * 
* - * .google.cloud.retail.v2beta.Rule.RedirectAction redirect_action = 3; + * .google.cloud.retail.v2beta.Rule.DoNotAssociateAction do_not_associate_action = 7; + * */ - public Builder setRedirectAction(com.google.cloud.retail.v2beta.Rule.RedirectAction value) { - if (redirectActionBuilder_ == null) { + public Builder setDoNotAssociateAction( + com.google.cloud.retail.v2beta.Rule.DoNotAssociateAction value) { + if (doNotAssociateActionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } action_ = value; onChanged(); } else { - redirectActionBuilder_.setMessage(value); + doNotAssociateActionBuilder_.setMessage(value); } - actionCase_ = 3; + actionCase_ = 7; return this; } /** * * *
-     * Redirects a shopper to a specific page.
+     * Prevents term from being associated with other terms.
      * 
* - * .google.cloud.retail.v2beta.Rule.RedirectAction redirect_action = 3; + * .google.cloud.retail.v2beta.Rule.DoNotAssociateAction do_not_associate_action = 7; + * */ - public Builder setRedirectAction( - com.google.cloud.retail.v2beta.Rule.RedirectAction.Builder builderForValue) { - if (redirectActionBuilder_ == null) { + public Builder setDoNotAssociateAction( + com.google.cloud.retail.v2beta.Rule.DoNotAssociateAction.Builder builderForValue) { + if (doNotAssociateActionBuilder_ == null) { action_ = builderForValue.build(); onChanged(); } else { - redirectActionBuilder_.setMessage(builderForValue.build()); + doNotAssociateActionBuilder_.setMessage(builderForValue.build()); } - actionCase_ = 3; + actionCase_ = 7; return this; } /** * * *
-     * Redirects a shopper to a specific page.
+     * Prevents term from being associated with other terms.
      * 
* - * .google.cloud.retail.v2beta.Rule.RedirectAction redirect_action = 3; + * .google.cloud.retail.v2beta.Rule.DoNotAssociateAction do_not_associate_action = 7; + * */ - public Builder mergeRedirectAction(com.google.cloud.retail.v2beta.Rule.RedirectAction value) { - if (redirectActionBuilder_ == null) { - if (actionCase_ == 3 - && action_ != com.google.cloud.retail.v2beta.Rule.RedirectAction.getDefaultInstance()) { + public Builder mergeDoNotAssociateAction( + com.google.cloud.retail.v2beta.Rule.DoNotAssociateAction value) { + if (doNotAssociateActionBuilder_ == null) { + if (actionCase_ == 7 + && action_ + != com.google.cloud.retail.v2beta.Rule.DoNotAssociateAction.getDefaultInstance()) { action_ = - com.google.cloud.retail.v2beta.Rule.RedirectAction.newBuilder( - (com.google.cloud.retail.v2beta.Rule.RedirectAction) action_) + com.google.cloud.retail.v2beta.Rule.DoNotAssociateAction.newBuilder( + (com.google.cloud.retail.v2beta.Rule.DoNotAssociateAction) action_) .mergeFrom(value) .buildPartial(); } else { @@ -9750,37 +13247,38 @@ public Builder mergeRedirectAction(com.google.cloud.retail.v2beta.Rule.RedirectA } onChanged(); } else { - if (actionCase_ == 3) { - redirectActionBuilder_.mergeFrom(value); + if (actionCase_ == 7) { + doNotAssociateActionBuilder_.mergeFrom(value); } else { - redirectActionBuilder_.setMessage(value); + doNotAssociateActionBuilder_.setMessage(value); } } - actionCase_ = 3; + actionCase_ = 7; return this; } /** * * *
-     * Redirects a shopper to a specific page.
+     * Prevents term from being associated with other terms.
      * 
* - * .google.cloud.retail.v2beta.Rule.RedirectAction redirect_action = 3; + * .google.cloud.retail.v2beta.Rule.DoNotAssociateAction do_not_associate_action = 7; + * */ - public Builder clearRedirectAction() { - if (redirectActionBuilder_ == null) { - if (actionCase_ == 3) { + public Builder clearDoNotAssociateAction() { + if (doNotAssociateActionBuilder_ == null) { + if (actionCase_ == 7) { actionCase_ = 0; action_ = null; onChanged(); } } else { - if (actionCase_ == 3) { + if (actionCase_ == 7) { actionCase_ = 0; action_ = null; } - redirectActionBuilder_.clear(); + doNotAssociateActionBuilder_.clear(); } return this; } @@ -9788,184 +13286,178 @@ public Builder clearRedirectAction() { * * *
-     * Redirects a shopper to a specific page.
+     * Prevents term from being associated with other terms.
      * 
* - * .google.cloud.retail.v2beta.Rule.RedirectAction redirect_action = 3; + * .google.cloud.retail.v2beta.Rule.DoNotAssociateAction do_not_associate_action = 7; + * */ - public com.google.cloud.retail.v2beta.Rule.RedirectAction.Builder getRedirectActionBuilder() { - return getRedirectActionFieldBuilder().getBuilder(); + public com.google.cloud.retail.v2beta.Rule.DoNotAssociateAction.Builder + getDoNotAssociateActionBuilder() { + return getDoNotAssociateActionFieldBuilder().getBuilder(); } /** * * *
-     * Redirects a shopper to a specific page.
+     * Prevents term from being associated with other terms.
      * 
* - * .google.cloud.retail.v2beta.Rule.RedirectAction redirect_action = 3; + * .google.cloud.retail.v2beta.Rule.DoNotAssociateAction do_not_associate_action = 7; + * */ @java.lang.Override - public com.google.cloud.retail.v2beta.Rule.RedirectActionOrBuilder - getRedirectActionOrBuilder() { - if ((actionCase_ == 3) && (redirectActionBuilder_ != null)) { - return redirectActionBuilder_.getMessageOrBuilder(); + public com.google.cloud.retail.v2beta.Rule.DoNotAssociateActionOrBuilder + getDoNotAssociateActionOrBuilder() { + if ((actionCase_ == 7) && (doNotAssociateActionBuilder_ != null)) { + return doNotAssociateActionBuilder_.getMessageOrBuilder(); } else { - if (actionCase_ == 3) { - return (com.google.cloud.retail.v2beta.Rule.RedirectAction) action_; + if (actionCase_ == 7) { + return (com.google.cloud.retail.v2beta.Rule.DoNotAssociateAction) action_; } - return com.google.cloud.retail.v2beta.Rule.RedirectAction.getDefaultInstance(); + return com.google.cloud.retail.v2beta.Rule.DoNotAssociateAction.getDefaultInstance(); } } /** * * *
-     * Redirects a shopper to a specific page.
+     * Prevents term from being associated with other terms.
      * 
* - * .google.cloud.retail.v2beta.Rule.RedirectAction redirect_action = 3; + * .google.cloud.retail.v2beta.Rule.DoNotAssociateAction do_not_associate_action = 7; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2beta.Rule.RedirectAction, - com.google.cloud.retail.v2beta.Rule.RedirectAction.Builder, - com.google.cloud.retail.v2beta.Rule.RedirectActionOrBuilder> - getRedirectActionFieldBuilder() { - if (redirectActionBuilder_ == null) { - if (!(actionCase_ == 3)) { - action_ = com.google.cloud.retail.v2beta.Rule.RedirectAction.getDefaultInstance(); + com.google.cloud.retail.v2beta.Rule.DoNotAssociateAction, + com.google.cloud.retail.v2beta.Rule.DoNotAssociateAction.Builder, + com.google.cloud.retail.v2beta.Rule.DoNotAssociateActionOrBuilder> + getDoNotAssociateActionFieldBuilder() { + if (doNotAssociateActionBuilder_ == null) { + if (!(actionCase_ == 7)) { + action_ = com.google.cloud.retail.v2beta.Rule.DoNotAssociateAction.getDefaultInstance(); } - redirectActionBuilder_ = + doNotAssociateActionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2beta.Rule.RedirectAction, - com.google.cloud.retail.v2beta.Rule.RedirectAction.Builder, - com.google.cloud.retail.v2beta.Rule.RedirectActionOrBuilder>( - (com.google.cloud.retail.v2beta.Rule.RedirectAction) action_, + com.google.cloud.retail.v2beta.Rule.DoNotAssociateAction, + com.google.cloud.retail.v2beta.Rule.DoNotAssociateAction.Builder, + com.google.cloud.retail.v2beta.Rule.DoNotAssociateActionOrBuilder>( + (com.google.cloud.retail.v2beta.Rule.DoNotAssociateAction) action_, getParentForChildren(), isClean()); action_ = null; } - actionCase_ = 3; + actionCase_ = 7; onChanged(); - return redirectActionBuilder_; + return doNotAssociateActionBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2beta.Rule.OnewaySynonymsAction, - com.google.cloud.retail.v2beta.Rule.OnewaySynonymsAction.Builder, - com.google.cloud.retail.v2beta.Rule.OnewaySynonymsActionOrBuilder> - onewaySynonymsActionBuilder_; + com.google.cloud.retail.v2beta.Rule.ReplacementAction, + com.google.cloud.retail.v2beta.Rule.ReplacementAction.Builder, + com.google.cloud.retail.v2beta.Rule.ReplacementActionOrBuilder> + replacementActionBuilder_; /** * * *
-     * Treats specific term as a synonym with a group of terms.
-     * Group of terms will not be treated as synonyms with the specific term.
+     * Replaces specific terms in the query.
      * 
* - * .google.cloud.retail.v2beta.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; - * + * .google.cloud.retail.v2beta.Rule.ReplacementAction replacement_action = 8; * - * @return Whether the onewaySynonymsAction field is set. + * @return Whether the replacementAction field is set. */ @java.lang.Override - public boolean hasOnewaySynonymsAction() { - return actionCase_ == 6; + public boolean hasReplacementAction() { + return actionCase_ == 8; } /** * * *
-     * Treats specific term as a synonym with a group of terms.
-     * Group of terms will not be treated as synonyms with the specific term.
+     * Replaces specific terms in the query.
      * 
* - * .google.cloud.retail.v2beta.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; - * + * .google.cloud.retail.v2beta.Rule.ReplacementAction replacement_action = 8; * - * @return The onewaySynonymsAction. + * @return The replacementAction. */ @java.lang.Override - public com.google.cloud.retail.v2beta.Rule.OnewaySynonymsAction getOnewaySynonymsAction() { - if (onewaySynonymsActionBuilder_ == null) { - if (actionCase_ == 6) { - return (com.google.cloud.retail.v2beta.Rule.OnewaySynonymsAction) action_; + public com.google.cloud.retail.v2beta.Rule.ReplacementAction getReplacementAction() { + if (replacementActionBuilder_ == null) { + if (actionCase_ == 8) { + return (com.google.cloud.retail.v2beta.Rule.ReplacementAction) action_; } - return com.google.cloud.retail.v2beta.Rule.OnewaySynonymsAction.getDefaultInstance(); + return com.google.cloud.retail.v2beta.Rule.ReplacementAction.getDefaultInstance(); } else { - if (actionCase_ == 6) { - return onewaySynonymsActionBuilder_.getMessage(); + if (actionCase_ == 8) { + return replacementActionBuilder_.getMessage(); } - return com.google.cloud.retail.v2beta.Rule.OnewaySynonymsAction.getDefaultInstance(); + return com.google.cloud.retail.v2beta.Rule.ReplacementAction.getDefaultInstance(); } } /** * * *
-     * Treats specific term as a synonym with a group of terms.
-     * Group of terms will not be treated as synonyms with the specific term.
+     * Replaces specific terms in the query.
      * 
* - * .google.cloud.retail.v2beta.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; - * + * .google.cloud.retail.v2beta.Rule.ReplacementAction replacement_action = 8; */ - public Builder setOnewaySynonymsAction( - com.google.cloud.retail.v2beta.Rule.OnewaySynonymsAction value) { - if (onewaySynonymsActionBuilder_ == null) { + public Builder setReplacementAction( + com.google.cloud.retail.v2beta.Rule.ReplacementAction value) { + if (replacementActionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } action_ = value; onChanged(); } else { - onewaySynonymsActionBuilder_.setMessage(value); + replacementActionBuilder_.setMessage(value); } - actionCase_ = 6; + actionCase_ = 8; return this; } /** * * *
-     * Treats specific term as a synonym with a group of terms.
-     * Group of terms will not be treated as synonyms with the specific term.
+     * Replaces specific terms in the query.
      * 
* - * .google.cloud.retail.v2beta.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; - * + * .google.cloud.retail.v2beta.Rule.ReplacementAction replacement_action = 8; */ - public Builder setOnewaySynonymsAction( - com.google.cloud.retail.v2beta.Rule.OnewaySynonymsAction.Builder builderForValue) { - if (onewaySynonymsActionBuilder_ == null) { + public Builder setReplacementAction( + com.google.cloud.retail.v2beta.Rule.ReplacementAction.Builder builderForValue) { + if (replacementActionBuilder_ == null) { action_ = builderForValue.build(); onChanged(); } else { - onewaySynonymsActionBuilder_.setMessage(builderForValue.build()); + replacementActionBuilder_.setMessage(builderForValue.build()); } - actionCase_ = 6; + actionCase_ = 8; return this; } /** * * *
-     * Treats specific term as a synonym with a group of terms.
-     * Group of terms will not be treated as synonyms with the specific term.
+     * Replaces specific terms in the query.
      * 
* - * .google.cloud.retail.v2beta.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; - * + * .google.cloud.retail.v2beta.Rule.ReplacementAction replacement_action = 8; */ - public Builder mergeOnewaySynonymsAction( - com.google.cloud.retail.v2beta.Rule.OnewaySynonymsAction value) { - if (onewaySynonymsActionBuilder_ == null) { - if (actionCase_ == 6 + public Builder mergeReplacementAction( + com.google.cloud.retail.v2beta.Rule.ReplacementAction value) { + if (replacementActionBuilder_ == null) { + if (actionCase_ == 8 && action_ - != com.google.cloud.retail.v2beta.Rule.OnewaySynonymsAction.getDefaultInstance()) { + != com.google.cloud.retail.v2beta.Rule.ReplacementAction.getDefaultInstance()) { action_ = - com.google.cloud.retail.v2beta.Rule.OnewaySynonymsAction.newBuilder( - (com.google.cloud.retail.v2beta.Rule.OnewaySynonymsAction) action_) + com.google.cloud.retail.v2beta.Rule.ReplacementAction.newBuilder( + (com.google.cloud.retail.v2beta.Rule.ReplacementAction) action_) .mergeFrom(value) .buildPartial(); } else { @@ -9973,39 +13465,37 @@ public Builder mergeOnewaySynonymsAction( } onChanged(); } else { - if (actionCase_ == 6) { - onewaySynonymsActionBuilder_.mergeFrom(value); + if (actionCase_ == 8) { + replacementActionBuilder_.mergeFrom(value); } else { - onewaySynonymsActionBuilder_.setMessage(value); + replacementActionBuilder_.setMessage(value); } } - actionCase_ = 6; + actionCase_ = 8; return this; } /** * * *
-     * Treats specific term as a synonym with a group of terms.
-     * Group of terms will not be treated as synonyms with the specific term.
+     * Replaces specific terms in the query.
      * 
* - * .google.cloud.retail.v2beta.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; - * + * .google.cloud.retail.v2beta.Rule.ReplacementAction replacement_action = 8; */ - public Builder clearOnewaySynonymsAction() { - if (onewaySynonymsActionBuilder_ == null) { - if (actionCase_ == 6) { + public Builder clearReplacementAction() { + if (replacementActionBuilder_ == null) { + if (actionCase_ == 8) { actionCase_ = 0; action_ = null; onChanged(); } } else { - if (actionCase_ == 6) { + if (actionCase_ == 8) { actionCase_ = 0; action_ = null; } - onewaySynonymsActionBuilder_.clear(); + replacementActionBuilder_.clear(); } return this; } @@ -10013,186 +13503,172 @@ public Builder clearOnewaySynonymsAction() { * * *
-     * Treats specific term as a synonym with a group of terms.
-     * Group of terms will not be treated as synonyms with the specific term.
+     * Replaces specific terms in the query.
      * 
* - * .google.cloud.retail.v2beta.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; - * + * .google.cloud.retail.v2beta.Rule.ReplacementAction replacement_action = 8; */ - public com.google.cloud.retail.v2beta.Rule.OnewaySynonymsAction.Builder - getOnewaySynonymsActionBuilder() { - return getOnewaySynonymsActionFieldBuilder().getBuilder(); + public com.google.cloud.retail.v2beta.Rule.ReplacementAction.Builder + getReplacementActionBuilder() { + return getReplacementActionFieldBuilder().getBuilder(); } /** * * *
-     * Treats specific term as a synonym with a group of terms.
-     * Group of terms will not be treated as synonyms with the specific term.
+     * Replaces specific terms in the query.
      * 
* - * .google.cloud.retail.v2beta.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; - * + * .google.cloud.retail.v2beta.Rule.ReplacementAction replacement_action = 8; */ @java.lang.Override - public com.google.cloud.retail.v2beta.Rule.OnewaySynonymsActionOrBuilder - getOnewaySynonymsActionOrBuilder() { - if ((actionCase_ == 6) && (onewaySynonymsActionBuilder_ != null)) { - return onewaySynonymsActionBuilder_.getMessageOrBuilder(); + public com.google.cloud.retail.v2beta.Rule.ReplacementActionOrBuilder + getReplacementActionOrBuilder() { + if ((actionCase_ == 8) && (replacementActionBuilder_ != null)) { + return replacementActionBuilder_.getMessageOrBuilder(); } else { - if (actionCase_ == 6) { - return (com.google.cloud.retail.v2beta.Rule.OnewaySynonymsAction) action_; + if (actionCase_ == 8) { + return (com.google.cloud.retail.v2beta.Rule.ReplacementAction) action_; } - return com.google.cloud.retail.v2beta.Rule.OnewaySynonymsAction.getDefaultInstance(); + return com.google.cloud.retail.v2beta.Rule.ReplacementAction.getDefaultInstance(); } } /** * * *
-     * Treats specific term as a synonym with a group of terms.
-     * Group of terms will not be treated as synonyms with the specific term.
+     * Replaces specific terms in the query.
      * 
* - * .google.cloud.retail.v2beta.Rule.OnewaySynonymsAction oneway_synonyms_action = 6; - * + * .google.cloud.retail.v2beta.Rule.ReplacementAction replacement_action = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2beta.Rule.OnewaySynonymsAction, - com.google.cloud.retail.v2beta.Rule.OnewaySynonymsAction.Builder, - com.google.cloud.retail.v2beta.Rule.OnewaySynonymsActionOrBuilder> - getOnewaySynonymsActionFieldBuilder() { - if (onewaySynonymsActionBuilder_ == null) { - if (!(actionCase_ == 6)) { - action_ = com.google.cloud.retail.v2beta.Rule.OnewaySynonymsAction.getDefaultInstance(); + com.google.cloud.retail.v2beta.Rule.ReplacementAction, + com.google.cloud.retail.v2beta.Rule.ReplacementAction.Builder, + com.google.cloud.retail.v2beta.Rule.ReplacementActionOrBuilder> + getReplacementActionFieldBuilder() { + if (replacementActionBuilder_ == null) { + if (!(actionCase_ == 8)) { + action_ = com.google.cloud.retail.v2beta.Rule.ReplacementAction.getDefaultInstance(); } - onewaySynonymsActionBuilder_ = + replacementActionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2beta.Rule.OnewaySynonymsAction, - com.google.cloud.retail.v2beta.Rule.OnewaySynonymsAction.Builder, - com.google.cloud.retail.v2beta.Rule.OnewaySynonymsActionOrBuilder>( - (com.google.cloud.retail.v2beta.Rule.OnewaySynonymsAction) action_, + com.google.cloud.retail.v2beta.Rule.ReplacementAction, + com.google.cloud.retail.v2beta.Rule.ReplacementAction.Builder, + com.google.cloud.retail.v2beta.Rule.ReplacementActionOrBuilder>( + (com.google.cloud.retail.v2beta.Rule.ReplacementAction) action_, getParentForChildren(), isClean()); action_ = null; } - actionCase_ = 6; + actionCase_ = 8; onChanged(); - return onewaySynonymsActionBuilder_; + return replacementActionBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2beta.Rule.DoNotAssociateAction, - com.google.cloud.retail.v2beta.Rule.DoNotAssociateAction.Builder, - com.google.cloud.retail.v2beta.Rule.DoNotAssociateActionOrBuilder> - doNotAssociateActionBuilder_; + com.google.cloud.retail.v2beta.Rule.IgnoreAction, + com.google.cloud.retail.v2beta.Rule.IgnoreAction.Builder, + com.google.cloud.retail.v2beta.Rule.IgnoreActionOrBuilder> + ignoreActionBuilder_; /** * * *
-     * Prevents term from being associated with other terms.
+     * Ignores specific terms from query during search.
      * 
* - * .google.cloud.retail.v2beta.Rule.DoNotAssociateAction do_not_associate_action = 7; - * + * .google.cloud.retail.v2beta.Rule.IgnoreAction ignore_action = 9; * - * @return Whether the doNotAssociateAction field is set. + * @return Whether the ignoreAction field is set. */ @java.lang.Override - public boolean hasDoNotAssociateAction() { - return actionCase_ == 7; + public boolean hasIgnoreAction() { + return actionCase_ == 9; } /** * * *
-     * Prevents term from being associated with other terms.
+     * Ignores specific terms from query during search.
      * 
* - * .google.cloud.retail.v2beta.Rule.DoNotAssociateAction do_not_associate_action = 7; - * + * .google.cloud.retail.v2beta.Rule.IgnoreAction ignore_action = 9; * - * @return The doNotAssociateAction. + * @return The ignoreAction. */ @java.lang.Override - public com.google.cloud.retail.v2beta.Rule.DoNotAssociateAction getDoNotAssociateAction() { - if (doNotAssociateActionBuilder_ == null) { - if (actionCase_ == 7) { - return (com.google.cloud.retail.v2beta.Rule.DoNotAssociateAction) action_; + public com.google.cloud.retail.v2beta.Rule.IgnoreAction getIgnoreAction() { + if (ignoreActionBuilder_ == null) { + if (actionCase_ == 9) { + return (com.google.cloud.retail.v2beta.Rule.IgnoreAction) action_; } - return com.google.cloud.retail.v2beta.Rule.DoNotAssociateAction.getDefaultInstance(); + return com.google.cloud.retail.v2beta.Rule.IgnoreAction.getDefaultInstance(); } else { - if (actionCase_ == 7) { - return doNotAssociateActionBuilder_.getMessage(); + if (actionCase_ == 9) { + return ignoreActionBuilder_.getMessage(); } - return com.google.cloud.retail.v2beta.Rule.DoNotAssociateAction.getDefaultInstance(); + return com.google.cloud.retail.v2beta.Rule.IgnoreAction.getDefaultInstance(); } } /** * * *
-     * Prevents term from being associated with other terms.
+     * Ignores specific terms from query during search.
      * 
* - * .google.cloud.retail.v2beta.Rule.DoNotAssociateAction do_not_associate_action = 7; - * + * .google.cloud.retail.v2beta.Rule.IgnoreAction ignore_action = 9; */ - public Builder setDoNotAssociateAction( - com.google.cloud.retail.v2beta.Rule.DoNotAssociateAction value) { - if (doNotAssociateActionBuilder_ == null) { + public Builder setIgnoreAction(com.google.cloud.retail.v2beta.Rule.IgnoreAction value) { + if (ignoreActionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } action_ = value; onChanged(); } else { - doNotAssociateActionBuilder_.setMessage(value); + ignoreActionBuilder_.setMessage(value); } - actionCase_ = 7; + actionCase_ = 9; return this; } /** * * *
-     * Prevents term from being associated with other terms.
+     * Ignores specific terms from query during search.
      * 
* - * .google.cloud.retail.v2beta.Rule.DoNotAssociateAction do_not_associate_action = 7; - * + * .google.cloud.retail.v2beta.Rule.IgnoreAction ignore_action = 9; */ - public Builder setDoNotAssociateAction( - com.google.cloud.retail.v2beta.Rule.DoNotAssociateAction.Builder builderForValue) { - if (doNotAssociateActionBuilder_ == null) { + public Builder setIgnoreAction( + com.google.cloud.retail.v2beta.Rule.IgnoreAction.Builder builderForValue) { + if (ignoreActionBuilder_ == null) { action_ = builderForValue.build(); onChanged(); } else { - doNotAssociateActionBuilder_.setMessage(builderForValue.build()); + ignoreActionBuilder_.setMessage(builderForValue.build()); } - actionCase_ = 7; + actionCase_ = 9; return this; } /** * * *
-     * Prevents term from being associated with other terms.
+     * Ignores specific terms from query during search.
      * 
* - * .google.cloud.retail.v2beta.Rule.DoNotAssociateAction do_not_associate_action = 7; - * + * .google.cloud.retail.v2beta.Rule.IgnoreAction ignore_action = 9; */ - public Builder mergeDoNotAssociateAction( - com.google.cloud.retail.v2beta.Rule.DoNotAssociateAction value) { - if (doNotAssociateActionBuilder_ == null) { - if (actionCase_ == 7 - && action_ - != com.google.cloud.retail.v2beta.Rule.DoNotAssociateAction.getDefaultInstance()) { + public Builder mergeIgnoreAction(com.google.cloud.retail.v2beta.Rule.IgnoreAction value) { + if (ignoreActionBuilder_ == null) { + if (actionCase_ == 9 + && action_ != com.google.cloud.retail.v2beta.Rule.IgnoreAction.getDefaultInstance()) { action_ = - com.google.cloud.retail.v2beta.Rule.DoNotAssociateAction.newBuilder( - (com.google.cloud.retail.v2beta.Rule.DoNotAssociateAction) action_) + com.google.cloud.retail.v2beta.Rule.IgnoreAction.newBuilder( + (com.google.cloud.retail.v2beta.Rule.IgnoreAction) action_) .mergeFrom(value) .buildPartial(); } else { @@ -10200,38 +13676,37 @@ public Builder mergeDoNotAssociateAction( } onChanged(); } else { - if (actionCase_ == 7) { - doNotAssociateActionBuilder_.mergeFrom(value); + if (actionCase_ == 9) { + ignoreActionBuilder_.mergeFrom(value); } else { - doNotAssociateActionBuilder_.setMessage(value); + ignoreActionBuilder_.setMessage(value); } } - actionCase_ = 7; + actionCase_ = 9; return this; } /** * * *
-     * Prevents term from being associated with other terms.
+     * Ignores specific terms from query during search.
      * 
* - * .google.cloud.retail.v2beta.Rule.DoNotAssociateAction do_not_associate_action = 7; - * + * .google.cloud.retail.v2beta.Rule.IgnoreAction ignore_action = 9; */ - public Builder clearDoNotAssociateAction() { - if (doNotAssociateActionBuilder_ == null) { - if (actionCase_ == 7) { + public Builder clearIgnoreAction() { + if (ignoreActionBuilder_ == null) { + if (actionCase_ == 9) { actionCase_ = 0; action_ = null; onChanged(); } } else { - if (actionCase_ == 7) { + if (actionCase_ == 9) { actionCase_ = 0; action_ = null; } - doNotAssociateActionBuilder_.clear(); + ignoreActionBuilder_.clear(); } return this; } @@ -10239,178 +13714,170 @@ public Builder clearDoNotAssociateAction() { * * *
-     * Prevents term from being associated with other terms.
+     * Ignores specific terms from query during search.
      * 
* - * .google.cloud.retail.v2beta.Rule.DoNotAssociateAction do_not_associate_action = 7; - * + * .google.cloud.retail.v2beta.Rule.IgnoreAction ignore_action = 9; */ - public com.google.cloud.retail.v2beta.Rule.DoNotAssociateAction.Builder - getDoNotAssociateActionBuilder() { - return getDoNotAssociateActionFieldBuilder().getBuilder(); + public com.google.cloud.retail.v2beta.Rule.IgnoreAction.Builder getIgnoreActionBuilder() { + return getIgnoreActionFieldBuilder().getBuilder(); } /** * * *
-     * Prevents term from being associated with other terms.
+     * Ignores specific terms from query during search.
      * 
* - * .google.cloud.retail.v2beta.Rule.DoNotAssociateAction do_not_associate_action = 7; - * + * .google.cloud.retail.v2beta.Rule.IgnoreAction ignore_action = 9; */ @java.lang.Override - public com.google.cloud.retail.v2beta.Rule.DoNotAssociateActionOrBuilder - getDoNotAssociateActionOrBuilder() { - if ((actionCase_ == 7) && (doNotAssociateActionBuilder_ != null)) { - return doNotAssociateActionBuilder_.getMessageOrBuilder(); + public com.google.cloud.retail.v2beta.Rule.IgnoreActionOrBuilder getIgnoreActionOrBuilder() { + if ((actionCase_ == 9) && (ignoreActionBuilder_ != null)) { + return ignoreActionBuilder_.getMessageOrBuilder(); } else { - if (actionCase_ == 7) { - return (com.google.cloud.retail.v2beta.Rule.DoNotAssociateAction) action_; + if (actionCase_ == 9) { + return (com.google.cloud.retail.v2beta.Rule.IgnoreAction) action_; } - return com.google.cloud.retail.v2beta.Rule.DoNotAssociateAction.getDefaultInstance(); + return com.google.cloud.retail.v2beta.Rule.IgnoreAction.getDefaultInstance(); } } /** * * *
-     * Prevents term from being associated with other terms.
+     * Ignores specific terms from query during search.
      * 
* - * .google.cloud.retail.v2beta.Rule.DoNotAssociateAction do_not_associate_action = 7; - * + * .google.cloud.retail.v2beta.Rule.IgnoreAction ignore_action = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2beta.Rule.DoNotAssociateAction, - com.google.cloud.retail.v2beta.Rule.DoNotAssociateAction.Builder, - com.google.cloud.retail.v2beta.Rule.DoNotAssociateActionOrBuilder> - getDoNotAssociateActionFieldBuilder() { - if (doNotAssociateActionBuilder_ == null) { - if (!(actionCase_ == 7)) { - action_ = com.google.cloud.retail.v2beta.Rule.DoNotAssociateAction.getDefaultInstance(); + com.google.cloud.retail.v2beta.Rule.IgnoreAction, + com.google.cloud.retail.v2beta.Rule.IgnoreAction.Builder, + com.google.cloud.retail.v2beta.Rule.IgnoreActionOrBuilder> + getIgnoreActionFieldBuilder() { + if (ignoreActionBuilder_ == null) { + if (!(actionCase_ == 9)) { + action_ = com.google.cloud.retail.v2beta.Rule.IgnoreAction.getDefaultInstance(); } - doNotAssociateActionBuilder_ = + ignoreActionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2beta.Rule.DoNotAssociateAction, - com.google.cloud.retail.v2beta.Rule.DoNotAssociateAction.Builder, - com.google.cloud.retail.v2beta.Rule.DoNotAssociateActionOrBuilder>( - (com.google.cloud.retail.v2beta.Rule.DoNotAssociateAction) action_, + com.google.cloud.retail.v2beta.Rule.IgnoreAction, + com.google.cloud.retail.v2beta.Rule.IgnoreAction.Builder, + com.google.cloud.retail.v2beta.Rule.IgnoreActionOrBuilder>( + (com.google.cloud.retail.v2beta.Rule.IgnoreAction) action_, getParentForChildren(), isClean()); action_ = null; } - actionCase_ = 7; + actionCase_ = 9; onChanged(); - return doNotAssociateActionBuilder_; + return ignoreActionBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2beta.Rule.ReplacementAction, - com.google.cloud.retail.v2beta.Rule.ReplacementAction.Builder, - com.google.cloud.retail.v2beta.Rule.ReplacementActionOrBuilder> - replacementActionBuilder_; + com.google.cloud.retail.v2beta.Rule.FilterAction, + com.google.cloud.retail.v2beta.Rule.FilterAction.Builder, + com.google.cloud.retail.v2beta.Rule.FilterActionOrBuilder> + filterActionBuilder_; /** * * *
-     * Replaces specific terms in the query.
+     * Filters results.
      * 
* - * .google.cloud.retail.v2beta.Rule.ReplacementAction replacement_action = 8; + * .google.cloud.retail.v2beta.Rule.FilterAction filter_action = 10; * - * @return Whether the replacementAction field is set. + * @return Whether the filterAction field is set. */ @java.lang.Override - public boolean hasReplacementAction() { - return actionCase_ == 8; + public boolean hasFilterAction() { + return actionCase_ == 10; } /** * * *
-     * Replaces specific terms in the query.
+     * Filters results.
      * 
* - * .google.cloud.retail.v2beta.Rule.ReplacementAction replacement_action = 8; + * .google.cloud.retail.v2beta.Rule.FilterAction filter_action = 10; * - * @return The replacementAction. + * @return The filterAction. */ @java.lang.Override - public com.google.cloud.retail.v2beta.Rule.ReplacementAction getReplacementAction() { - if (replacementActionBuilder_ == null) { - if (actionCase_ == 8) { - return (com.google.cloud.retail.v2beta.Rule.ReplacementAction) action_; + public com.google.cloud.retail.v2beta.Rule.FilterAction getFilterAction() { + if (filterActionBuilder_ == null) { + if (actionCase_ == 10) { + return (com.google.cloud.retail.v2beta.Rule.FilterAction) action_; } - return com.google.cloud.retail.v2beta.Rule.ReplacementAction.getDefaultInstance(); + return com.google.cloud.retail.v2beta.Rule.FilterAction.getDefaultInstance(); } else { - if (actionCase_ == 8) { - return replacementActionBuilder_.getMessage(); + if (actionCase_ == 10) { + return filterActionBuilder_.getMessage(); } - return com.google.cloud.retail.v2beta.Rule.ReplacementAction.getDefaultInstance(); + return com.google.cloud.retail.v2beta.Rule.FilterAction.getDefaultInstance(); } } /** * * *
-     * Replaces specific terms in the query.
+     * Filters results.
      * 
* - * .google.cloud.retail.v2beta.Rule.ReplacementAction replacement_action = 8; + * .google.cloud.retail.v2beta.Rule.FilterAction filter_action = 10; */ - public Builder setReplacementAction( - com.google.cloud.retail.v2beta.Rule.ReplacementAction value) { - if (replacementActionBuilder_ == null) { + public Builder setFilterAction(com.google.cloud.retail.v2beta.Rule.FilterAction value) { + if (filterActionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } action_ = value; onChanged(); } else { - replacementActionBuilder_.setMessage(value); + filterActionBuilder_.setMessage(value); } - actionCase_ = 8; + actionCase_ = 10; return this; } /** * * *
-     * Replaces specific terms in the query.
+     * Filters results.
      * 
* - * .google.cloud.retail.v2beta.Rule.ReplacementAction replacement_action = 8; + * .google.cloud.retail.v2beta.Rule.FilterAction filter_action = 10; */ - public Builder setReplacementAction( - com.google.cloud.retail.v2beta.Rule.ReplacementAction.Builder builderForValue) { - if (replacementActionBuilder_ == null) { + public Builder setFilterAction( + com.google.cloud.retail.v2beta.Rule.FilterAction.Builder builderForValue) { + if (filterActionBuilder_ == null) { action_ = builderForValue.build(); onChanged(); } else { - replacementActionBuilder_.setMessage(builderForValue.build()); + filterActionBuilder_.setMessage(builderForValue.build()); } - actionCase_ = 8; + actionCase_ = 10; return this; } /** * * *
-     * Replaces specific terms in the query.
+     * Filters results.
      * 
* - * .google.cloud.retail.v2beta.Rule.ReplacementAction replacement_action = 8; + * .google.cloud.retail.v2beta.Rule.FilterAction filter_action = 10; */ - public Builder mergeReplacementAction( - com.google.cloud.retail.v2beta.Rule.ReplacementAction value) { - if (replacementActionBuilder_ == null) { - if (actionCase_ == 8 - && action_ - != com.google.cloud.retail.v2beta.Rule.ReplacementAction.getDefaultInstance()) { + public Builder mergeFilterAction(com.google.cloud.retail.v2beta.Rule.FilterAction value) { + if (filterActionBuilder_ == null) { + if (actionCase_ == 10 + && action_ != com.google.cloud.retail.v2beta.Rule.FilterAction.getDefaultInstance()) { action_ = - com.google.cloud.retail.v2beta.Rule.ReplacementAction.newBuilder( - (com.google.cloud.retail.v2beta.Rule.ReplacementAction) action_) + com.google.cloud.retail.v2beta.Rule.FilterAction.newBuilder( + (com.google.cloud.retail.v2beta.Rule.FilterAction) action_) .mergeFrom(value) .buildPartial(); } else { @@ -10418,37 +13885,37 @@ public Builder mergeReplacementAction( } onChanged(); } else { - if (actionCase_ == 8) { - replacementActionBuilder_.mergeFrom(value); + if (actionCase_ == 10) { + filterActionBuilder_.mergeFrom(value); } else { - replacementActionBuilder_.setMessage(value); + filterActionBuilder_.setMessage(value); } } - actionCase_ = 8; + actionCase_ = 10; return this; } /** * * *
-     * Replaces specific terms in the query.
+     * Filters results.
      * 
* - * .google.cloud.retail.v2beta.Rule.ReplacementAction replacement_action = 8; + * .google.cloud.retail.v2beta.Rule.FilterAction filter_action = 10; */ - public Builder clearReplacementAction() { - if (replacementActionBuilder_ == null) { - if (actionCase_ == 8) { + public Builder clearFilterAction() { + if (filterActionBuilder_ == null) { + if (actionCase_ == 10) { actionCase_ = 0; action_ = null; onChanged(); } } else { - if (actionCase_ == 8) { + if (actionCase_ == 10) { actionCase_ = 0; action_ = null; } - replacementActionBuilder_.clear(); + filterActionBuilder_.clear(); } return this; } @@ -10456,172 +13923,178 @@ public Builder clearReplacementAction() { * * *
-     * Replaces specific terms in the query.
+     * Filters results.
      * 
* - * .google.cloud.retail.v2beta.Rule.ReplacementAction replacement_action = 8; + * .google.cloud.retail.v2beta.Rule.FilterAction filter_action = 10; */ - public com.google.cloud.retail.v2beta.Rule.ReplacementAction.Builder - getReplacementActionBuilder() { - return getReplacementActionFieldBuilder().getBuilder(); + public com.google.cloud.retail.v2beta.Rule.FilterAction.Builder getFilterActionBuilder() { + return getFilterActionFieldBuilder().getBuilder(); } /** * * *
-     * Replaces specific terms in the query.
+     * Filters results.
      * 
* - * .google.cloud.retail.v2beta.Rule.ReplacementAction replacement_action = 8; + * .google.cloud.retail.v2beta.Rule.FilterAction filter_action = 10; */ @java.lang.Override - public com.google.cloud.retail.v2beta.Rule.ReplacementActionOrBuilder - getReplacementActionOrBuilder() { - if ((actionCase_ == 8) && (replacementActionBuilder_ != null)) { - return replacementActionBuilder_.getMessageOrBuilder(); + public com.google.cloud.retail.v2beta.Rule.FilterActionOrBuilder getFilterActionOrBuilder() { + if ((actionCase_ == 10) && (filterActionBuilder_ != null)) { + return filterActionBuilder_.getMessageOrBuilder(); } else { - if (actionCase_ == 8) { - return (com.google.cloud.retail.v2beta.Rule.ReplacementAction) action_; + if (actionCase_ == 10) { + return (com.google.cloud.retail.v2beta.Rule.FilterAction) action_; } - return com.google.cloud.retail.v2beta.Rule.ReplacementAction.getDefaultInstance(); + return com.google.cloud.retail.v2beta.Rule.FilterAction.getDefaultInstance(); } } /** * * *
-     * Replaces specific terms in the query.
+     * Filters results.
      * 
* - * .google.cloud.retail.v2beta.Rule.ReplacementAction replacement_action = 8; + * .google.cloud.retail.v2beta.Rule.FilterAction filter_action = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2beta.Rule.ReplacementAction, - com.google.cloud.retail.v2beta.Rule.ReplacementAction.Builder, - com.google.cloud.retail.v2beta.Rule.ReplacementActionOrBuilder> - getReplacementActionFieldBuilder() { - if (replacementActionBuilder_ == null) { - if (!(actionCase_ == 8)) { - action_ = com.google.cloud.retail.v2beta.Rule.ReplacementAction.getDefaultInstance(); + com.google.cloud.retail.v2beta.Rule.FilterAction, + com.google.cloud.retail.v2beta.Rule.FilterAction.Builder, + com.google.cloud.retail.v2beta.Rule.FilterActionOrBuilder> + getFilterActionFieldBuilder() { + if (filterActionBuilder_ == null) { + if (!(actionCase_ == 10)) { + action_ = com.google.cloud.retail.v2beta.Rule.FilterAction.getDefaultInstance(); } - replacementActionBuilder_ = + filterActionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2beta.Rule.ReplacementAction, - com.google.cloud.retail.v2beta.Rule.ReplacementAction.Builder, - com.google.cloud.retail.v2beta.Rule.ReplacementActionOrBuilder>( - (com.google.cloud.retail.v2beta.Rule.ReplacementAction) action_, + com.google.cloud.retail.v2beta.Rule.FilterAction, + com.google.cloud.retail.v2beta.Rule.FilterAction.Builder, + com.google.cloud.retail.v2beta.Rule.FilterActionOrBuilder>( + (com.google.cloud.retail.v2beta.Rule.FilterAction) action_, getParentForChildren(), isClean()); action_ = null; } - actionCase_ = 8; + actionCase_ = 10; onChanged(); - return replacementActionBuilder_; + return filterActionBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2beta.Rule.IgnoreAction, - com.google.cloud.retail.v2beta.Rule.IgnoreAction.Builder, - com.google.cloud.retail.v2beta.Rule.IgnoreActionOrBuilder> - ignoreActionBuilder_; + com.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction, + com.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction.Builder, + com.google.cloud.retail.v2beta.Rule.TwowaySynonymsActionOrBuilder> + twowaySynonymsActionBuilder_; /** * * *
-     * Ignores specific terms from query during search.
+     * Treats a set of terms as synonyms of one another.
      * 
* - * .google.cloud.retail.v2beta.Rule.IgnoreAction ignore_action = 9; + * .google.cloud.retail.v2beta.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; + * * - * @return Whether the ignoreAction field is set. + * @return Whether the twowaySynonymsAction field is set. */ @java.lang.Override - public boolean hasIgnoreAction() { - return actionCase_ == 9; + public boolean hasTwowaySynonymsAction() { + return actionCase_ == 11; } /** * * *
-     * Ignores specific terms from query during search.
+     * Treats a set of terms as synonyms of one another.
      * 
* - * .google.cloud.retail.v2beta.Rule.IgnoreAction ignore_action = 9; + * .google.cloud.retail.v2beta.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; + * * - * @return The ignoreAction. + * @return The twowaySynonymsAction. */ @java.lang.Override - public com.google.cloud.retail.v2beta.Rule.IgnoreAction getIgnoreAction() { - if (ignoreActionBuilder_ == null) { - if (actionCase_ == 9) { - return (com.google.cloud.retail.v2beta.Rule.IgnoreAction) action_; + public com.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction getTwowaySynonymsAction() { + if (twowaySynonymsActionBuilder_ == null) { + if (actionCase_ == 11) { + return (com.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction) action_; } - return com.google.cloud.retail.v2beta.Rule.IgnoreAction.getDefaultInstance(); + return com.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction.getDefaultInstance(); } else { - if (actionCase_ == 9) { - return ignoreActionBuilder_.getMessage(); + if (actionCase_ == 11) { + return twowaySynonymsActionBuilder_.getMessage(); } - return com.google.cloud.retail.v2beta.Rule.IgnoreAction.getDefaultInstance(); + return com.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction.getDefaultInstance(); } } /** * * *
-     * Ignores specific terms from query during search.
+     * Treats a set of terms as synonyms of one another.
      * 
* - * .google.cloud.retail.v2beta.Rule.IgnoreAction ignore_action = 9; + * .google.cloud.retail.v2beta.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; + * */ - public Builder setIgnoreAction(com.google.cloud.retail.v2beta.Rule.IgnoreAction value) { - if (ignoreActionBuilder_ == null) { + public Builder setTwowaySynonymsAction( + com.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction value) { + if (twowaySynonymsActionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } action_ = value; onChanged(); } else { - ignoreActionBuilder_.setMessage(value); + twowaySynonymsActionBuilder_.setMessage(value); } - actionCase_ = 9; + actionCase_ = 11; return this; } /** * * *
-     * Ignores specific terms from query during search.
+     * Treats a set of terms as synonyms of one another.
      * 
* - * .google.cloud.retail.v2beta.Rule.IgnoreAction ignore_action = 9; + * .google.cloud.retail.v2beta.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; + * */ - public Builder setIgnoreAction( - com.google.cloud.retail.v2beta.Rule.IgnoreAction.Builder builderForValue) { - if (ignoreActionBuilder_ == null) { + public Builder setTwowaySynonymsAction( + com.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction.Builder builderForValue) { + if (twowaySynonymsActionBuilder_ == null) { action_ = builderForValue.build(); onChanged(); } else { - ignoreActionBuilder_.setMessage(builderForValue.build()); + twowaySynonymsActionBuilder_.setMessage(builderForValue.build()); } - actionCase_ = 9; + actionCase_ = 11; return this; } /** * * *
-     * Ignores specific terms from query during search.
+     * Treats a set of terms as synonyms of one another.
      * 
* - * .google.cloud.retail.v2beta.Rule.IgnoreAction ignore_action = 9; + * .google.cloud.retail.v2beta.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; + * */ - public Builder mergeIgnoreAction(com.google.cloud.retail.v2beta.Rule.IgnoreAction value) { - if (ignoreActionBuilder_ == null) { - if (actionCase_ == 9 - && action_ != com.google.cloud.retail.v2beta.Rule.IgnoreAction.getDefaultInstance()) { + public Builder mergeTwowaySynonymsAction( + com.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction value) { + if (twowaySynonymsActionBuilder_ == null) { + if (actionCase_ == 11 + && action_ + != com.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction.getDefaultInstance()) { action_ = - com.google.cloud.retail.v2beta.Rule.IgnoreAction.newBuilder( - (com.google.cloud.retail.v2beta.Rule.IgnoreAction) action_) + com.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction.newBuilder( + (com.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction) action_) .mergeFrom(value) .buildPartial(); } else { @@ -10629,37 +14102,38 @@ public Builder mergeIgnoreAction(com.google.cloud.retail.v2beta.Rule.IgnoreActio } onChanged(); } else { - if (actionCase_ == 9) { - ignoreActionBuilder_.mergeFrom(value); + if (actionCase_ == 11) { + twowaySynonymsActionBuilder_.mergeFrom(value); } else { - ignoreActionBuilder_.setMessage(value); + twowaySynonymsActionBuilder_.setMessage(value); } } - actionCase_ = 9; + actionCase_ = 11; return this; } /** * * *
-     * Ignores specific terms from query during search.
+     * Treats a set of terms as synonyms of one another.
      * 
* - * .google.cloud.retail.v2beta.Rule.IgnoreAction ignore_action = 9; + * .google.cloud.retail.v2beta.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; + * */ - public Builder clearIgnoreAction() { - if (ignoreActionBuilder_ == null) { - if (actionCase_ == 9) { + public Builder clearTwowaySynonymsAction() { + if (twowaySynonymsActionBuilder_ == null) { + if (actionCase_ == 11) { actionCase_ = 0; action_ = null; onChanged(); } } else { - if (actionCase_ == 9) { + if (actionCase_ == 11) { actionCase_ = 0; action_ = null; } - ignoreActionBuilder_.clear(); + twowaySynonymsActionBuilder_.clear(); } return this; } @@ -10667,170 +14141,184 @@ public Builder clearIgnoreAction() { * * *
-     * Ignores specific terms from query during search.
+     * Treats a set of terms as synonyms of one another.
      * 
* - * .google.cloud.retail.v2beta.Rule.IgnoreAction ignore_action = 9; + * .google.cloud.retail.v2beta.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; + * */ - public com.google.cloud.retail.v2beta.Rule.IgnoreAction.Builder getIgnoreActionBuilder() { - return getIgnoreActionFieldBuilder().getBuilder(); + public com.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction.Builder + getTwowaySynonymsActionBuilder() { + return getTwowaySynonymsActionFieldBuilder().getBuilder(); } /** * * *
-     * Ignores specific terms from query during search.
+     * Treats a set of terms as synonyms of one another.
      * 
* - * .google.cloud.retail.v2beta.Rule.IgnoreAction ignore_action = 9; + * .google.cloud.retail.v2beta.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; + * */ @java.lang.Override - public com.google.cloud.retail.v2beta.Rule.IgnoreActionOrBuilder getIgnoreActionOrBuilder() { - if ((actionCase_ == 9) && (ignoreActionBuilder_ != null)) { - return ignoreActionBuilder_.getMessageOrBuilder(); + public com.google.cloud.retail.v2beta.Rule.TwowaySynonymsActionOrBuilder + getTwowaySynonymsActionOrBuilder() { + if ((actionCase_ == 11) && (twowaySynonymsActionBuilder_ != null)) { + return twowaySynonymsActionBuilder_.getMessageOrBuilder(); } else { - if (actionCase_ == 9) { - return (com.google.cloud.retail.v2beta.Rule.IgnoreAction) action_; + if (actionCase_ == 11) { + return (com.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction) action_; } - return com.google.cloud.retail.v2beta.Rule.IgnoreAction.getDefaultInstance(); + return com.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction.getDefaultInstance(); } } /** * * *
-     * Ignores specific terms from query during search.
+     * Treats a set of terms as synonyms of one another.
      * 
* - * .google.cloud.retail.v2beta.Rule.IgnoreAction ignore_action = 9; + * .google.cloud.retail.v2beta.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2beta.Rule.IgnoreAction, - com.google.cloud.retail.v2beta.Rule.IgnoreAction.Builder, - com.google.cloud.retail.v2beta.Rule.IgnoreActionOrBuilder> - getIgnoreActionFieldBuilder() { - if (ignoreActionBuilder_ == null) { - if (!(actionCase_ == 9)) { - action_ = com.google.cloud.retail.v2beta.Rule.IgnoreAction.getDefaultInstance(); + com.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction, + com.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction.Builder, + com.google.cloud.retail.v2beta.Rule.TwowaySynonymsActionOrBuilder> + getTwowaySynonymsActionFieldBuilder() { + if (twowaySynonymsActionBuilder_ == null) { + if (!(actionCase_ == 11)) { + action_ = com.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction.getDefaultInstance(); } - ignoreActionBuilder_ = + twowaySynonymsActionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2beta.Rule.IgnoreAction, - com.google.cloud.retail.v2beta.Rule.IgnoreAction.Builder, - com.google.cloud.retail.v2beta.Rule.IgnoreActionOrBuilder>( - (com.google.cloud.retail.v2beta.Rule.IgnoreAction) action_, + com.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction, + com.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction.Builder, + com.google.cloud.retail.v2beta.Rule.TwowaySynonymsActionOrBuilder>( + (com.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction) action_, getParentForChildren(), isClean()); action_ = null; } - actionCase_ = 9; + actionCase_ = 11; onChanged(); - return ignoreActionBuilder_; + return twowaySynonymsActionBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2beta.Rule.FilterAction, - com.google.cloud.retail.v2beta.Rule.FilterAction.Builder, - com.google.cloud.retail.v2beta.Rule.FilterActionOrBuilder> - filterActionBuilder_; + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction, + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.Builder, + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetActionOrBuilder> + forceReturnFacetActionBuilder_; /** * * *
-     * Filters results.
+     * Force returns an attribute as a facet in the request.
      * 
* - * .google.cloud.retail.v2beta.Rule.FilterAction filter_action = 10; + * .google.cloud.retail.v2beta.Rule.ForceReturnFacetAction force_return_facet_action = 12; + * * - * @return Whether the filterAction field is set. + * @return Whether the forceReturnFacetAction field is set. */ @java.lang.Override - public boolean hasFilterAction() { - return actionCase_ == 10; + public boolean hasForceReturnFacetAction() { + return actionCase_ == 12; } /** * * *
-     * Filters results.
+     * Force returns an attribute as a facet in the request.
      * 
* - * .google.cloud.retail.v2beta.Rule.FilterAction filter_action = 10; + * .google.cloud.retail.v2beta.Rule.ForceReturnFacetAction force_return_facet_action = 12; + * * - * @return The filterAction. + * @return The forceReturnFacetAction. */ @java.lang.Override - public com.google.cloud.retail.v2beta.Rule.FilterAction getFilterAction() { - if (filterActionBuilder_ == null) { - if (actionCase_ == 10) { - return (com.google.cloud.retail.v2beta.Rule.FilterAction) action_; + public com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction getForceReturnFacetAction() { + if (forceReturnFacetActionBuilder_ == null) { + if (actionCase_ == 12) { + return (com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction) action_; } - return com.google.cloud.retail.v2beta.Rule.FilterAction.getDefaultInstance(); + return com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.getDefaultInstance(); } else { - if (actionCase_ == 10) { - return filterActionBuilder_.getMessage(); + if (actionCase_ == 12) { + return forceReturnFacetActionBuilder_.getMessage(); } - return com.google.cloud.retail.v2beta.Rule.FilterAction.getDefaultInstance(); + return com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.getDefaultInstance(); } } /** * * *
-     * Filters results.
+     * Force returns an attribute as a facet in the request.
      * 
* - * .google.cloud.retail.v2beta.Rule.FilterAction filter_action = 10; + * .google.cloud.retail.v2beta.Rule.ForceReturnFacetAction force_return_facet_action = 12; + * */ - public Builder setFilterAction(com.google.cloud.retail.v2beta.Rule.FilterAction value) { - if (filterActionBuilder_ == null) { + public Builder setForceReturnFacetAction( + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction value) { + if (forceReturnFacetActionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } action_ = value; onChanged(); } else { - filterActionBuilder_.setMessage(value); + forceReturnFacetActionBuilder_.setMessage(value); } - actionCase_ = 10; + actionCase_ = 12; return this; } /** * * *
-     * Filters results.
+     * Force returns an attribute as a facet in the request.
      * 
* - * .google.cloud.retail.v2beta.Rule.FilterAction filter_action = 10; + * .google.cloud.retail.v2beta.Rule.ForceReturnFacetAction force_return_facet_action = 12; + * */ - public Builder setFilterAction( - com.google.cloud.retail.v2beta.Rule.FilterAction.Builder builderForValue) { - if (filterActionBuilder_ == null) { + public Builder setForceReturnFacetAction( + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.Builder builderForValue) { + if (forceReturnFacetActionBuilder_ == null) { action_ = builderForValue.build(); onChanged(); } else { - filterActionBuilder_.setMessage(builderForValue.build()); + forceReturnFacetActionBuilder_.setMessage(builderForValue.build()); } - actionCase_ = 10; + actionCase_ = 12; return this; } /** * * *
-     * Filters results.
+     * Force returns an attribute as a facet in the request.
      * 
* - * .google.cloud.retail.v2beta.Rule.FilterAction filter_action = 10; + * .google.cloud.retail.v2beta.Rule.ForceReturnFacetAction force_return_facet_action = 12; + * */ - public Builder mergeFilterAction(com.google.cloud.retail.v2beta.Rule.FilterAction value) { - if (filterActionBuilder_ == null) { - if (actionCase_ == 10 - && action_ != com.google.cloud.retail.v2beta.Rule.FilterAction.getDefaultInstance()) { + public Builder mergeForceReturnFacetAction( + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction value) { + if (forceReturnFacetActionBuilder_ == null) { + if (actionCase_ == 12 + && action_ + != com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction + .getDefaultInstance()) { action_ = - com.google.cloud.retail.v2beta.Rule.FilterAction.newBuilder( - (com.google.cloud.retail.v2beta.Rule.FilterAction) action_) + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.newBuilder( + (com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction) action_) .mergeFrom(value) .buildPartial(); } else { @@ -10838,37 +14326,38 @@ public Builder mergeFilterAction(com.google.cloud.retail.v2beta.Rule.FilterActio } onChanged(); } else { - if (actionCase_ == 10) { - filterActionBuilder_.mergeFrom(value); + if (actionCase_ == 12) { + forceReturnFacetActionBuilder_.mergeFrom(value); } else { - filterActionBuilder_.setMessage(value); + forceReturnFacetActionBuilder_.setMessage(value); } } - actionCase_ = 10; + actionCase_ = 12; return this; } /** * * *
-     * Filters results.
+     * Force returns an attribute as a facet in the request.
      * 
* - * .google.cloud.retail.v2beta.Rule.FilterAction filter_action = 10; + * .google.cloud.retail.v2beta.Rule.ForceReturnFacetAction force_return_facet_action = 12; + * */ - public Builder clearFilterAction() { - if (filterActionBuilder_ == null) { - if (actionCase_ == 10) { + public Builder clearForceReturnFacetAction() { + if (forceReturnFacetActionBuilder_ == null) { + if (actionCase_ == 12) { actionCase_ = 0; action_ = null; onChanged(); } } else { - if (actionCase_ == 10) { + if (actionCase_ == 12) { actionCase_ = 0; action_ = null; } - filterActionBuilder_.clear(); + forceReturnFacetActionBuilder_.clear(); } return this; } @@ -10876,178 +14365,178 @@ public Builder clearFilterAction() { * * *
-     * Filters results.
+     * Force returns an attribute as a facet in the request.
      * 
* - * .google.cloud.retail.v2beta.Rule.FilterAction filter_action = 10; + * .google.cloud.retail.v2beta.Rule.ForceReturnFacetAction force_return_facet_action = 12; + * */ - public com.google.cloud.retail.v2beta.Rule.FilterAction.Builder getFilterActionBuilder() { - return getFilterActionFieldBuilder().getBuilder(); + public com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.Builder + getForceReturnFacetActionBuilder() { + return getForceReturnFacetActionFieldBuilder().getBuilder(); } /** * * *
-     * Filters results.
+     * Force returns an attribute as a facet in the request.
      * 
* - * .google.cloud.retail.v2beta.Rule.FilterAction filter_action = 10; + * .google.cloud.retail.v2beta.Rule.ForceReturnFacetAction force_return_facet_action = 12; + * */ @java.lang.Override - public com.google.cloud.retail.v2beta.Rule.FilterActionOrBuilder getFilterActionOrBuilder() { - if ((actionCase_ == 10) && (filterActionBuilder_ != null)) { - return filterActionBuilder_.getMessageOrBuilder(); + public com.google.cloud.retail.v2beta.Rule.ForceReturnFacetActionOrBuilder + getForceReturnFacetActionOrBuilder() { + if ((actionCase_ == 12) && (forceReturnFacetActionBuilder_ != null)) { + return forceReturnFacetActionBuilder_.getMessageOrBuilder(); } else { - if (actionCase_ == 10) { - return (com.google.cloud.retail.v2beta.Rule.FilterAction) action_; + if (actionCase_ == 12) { + return (com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction) action_; } - return com.google.cloud.retail.v2beta.Rule.FilterAction.getDefaultInstance(); + return com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.getDefaultInstance(); } } /** * * *
-     * Filters results.
+     * Force returns an attribute as a facet in the request.
      * 
* - * .google.cloud.retail.v2beta.Rule.FilterAction filter_action = 10; + * .google.cloud.retail.v2beta.Rule.ForceReturnFacetAction force_return_facet_action = 12; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2beta.Rule.FilterAction, - com.google.cloud.retail.v2beta.Rule.FilterAction.Builder, - com.google.cloud.retail.v2beta.Rule.FilterActionOrBuilder> - getFilterActionFieldBuilder() { - if (filterActionBuilder_ == null) { - if (!(actionCase_ == 10)) { - action_ = com.google.cloud.retail.v2beta.Rule.FilterAction.getDefaultInstance(); - } - filterActionBuilder_ = + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction, + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.Builder, + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetActionOrBuilder> + getForceReturnFacetActionFieldBuilder() { + if (forceReturnFacetActionBuilder_ == null) { + if (!(actionCase_ == 12)) { + action_ = com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.getDefaultInstance(); + } + forceReturnFacetActionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2beta.Rule.FilterAction, - com.google.cloud.retail.v2beta.Rule.FilterAction.Builder, - com.google.cloud.retail.v2beta.Rule.FilterActionOrBuilder>( - (com.google.cloud.retail.v2beta.Rule.FilterAction) action_, + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction, + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.Builder, + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetActionOrBuilder>( + (com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction) action_, getParentForChildren(), isClean()); action_ = null; } - actionCase_ = 10; + actionCase_ = 12; onChanged(); - return filterActionBuilder_; + return forceReturnFacetActionBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction, - com.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction.Builder, - com.google.cloud.retail.v2beta.Rule.TwowaySynonymsActionOrBuilder> - twowaySynonymsActionBuilder_; + com.google.cloud.retail.v2beta.Rule.RemoveFacetAction, + com.google.cloud.retail.v2beta.Rule.RemoveFacetAction.Builder, + com.google.cloud.retail.v2beta.Rule.RemoveFacetActionOrBuilder> + removeFacetActionBuilder_; /** * * *
-     * Treats a set of terms as synonyms of one another.
+     * Remove an attribute as a facet in the request (if present).
      * 
* - * .google.cloud.retail.v2beta.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; - * + * .google.cloud.retail.v2beta.Rule.RemoveFacetAction remove_facet_action = 13; * - * @return Whether the twowaySynonymsAction field is set. + * @return Whether the removeFacetAction field is set. */ @java.lang.Override - public boolean hasTwowaySynonymsAction() { - return actionCase_ == 11; + public boolean hasRemoveFacetAction() { + return actionCase_ == 13; } /** * * *
-     * Treats a set of terms as synonyms of one another.
+     * Remove an attribute as a facet in the request (if present).
      * 
* - * .google.cloud.retail.v2beta.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; - * + * .google.cloud.retail.v2beta.Rule.RemoveFacetAction remove_facet_action = 13; * - * @return The twowaySynonymsAction. + * @return The removeFacetAction. */ @java.lang.Override - public com.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction getTwowaySynonymsAction() { - if (twowaySynonymsActionBuilder_ == null) { - if (actionCase_ == 11) { - return (com.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction) action_; + public com.google.cloud.retail.v2beta.Rule.RemoveFacetAction getRemoveFacetAction() { + if (removeFacetActionBuilder_ == null) { + if (actionCase_ == 13) { + return (com.google.cloud.retail.v2beta.Rule.RemoveFacetAction) action_; } - return com.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction.getDefaultInstance(); + return com.google.cloud.retail.v2beta.Rule.RemoveFacetAction.getDefaultInstance(); } else { - if (actionCase_ == 11) { - return twowaySynonymsActionBuilder_.getMessage(); + if (actionCase_ == 13) { + return removeFacetActionBuilder_.getMessage(); } - return com.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction.getDefaultInstance(); + return com.google.cloud.retail.v2beta.Rule.RemoveFacetAction.getDefaultInstance(); } } /** * * *
-     * Treats a set of terms as synonyms of one another.
+     * Remove an attribute as a facet in the request (if present).
      * 
* - * .google.cloud.retail.v2beta.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; - * + * .google.cloud.retail.v2beta.Rule.RemoveFacetAction remove_facet_action = 13; */ - public Builder setTwowaySynonymsAction( - com.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction value) { - if (twowaySynonymsActionBuilder_ == null) { + public Builder setRemoveFacetAction( + com.google.cloud.retail.v2beta.Rule.RemoveFacetAction value) { + if (removeFacetActionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } action_ = value; onChanged(); } else { - twowaySynonymsActionBuilder_.setMessage(value); + removeFacetActionBuilder_.setMessage(value); } - actionCase_ = 11; + actionCase_ = 13; return this; } /** * * *
-     * Treats a set of terms as synonyms of one another.
+     * Remove an attribute as a facet in the request (if present).
      * 
* - * .google.cloud.retail.v2beta.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; - * + * .google.cloud.retail.v2beta.Rule.RemoveFacetAction remove_facet_action = 13; */ - public Builder setTwowaySynonymsAction( - com.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction.Builder builderForValue) { - if (twowaySynonymsActionBuilder_ == null) { + public Builder setRemoveFacetAction( + com.google.cloud.retail.v2beta.Rule.RemoveFacetAction.Builder builderForValue) { + if (removeFacetActionBuilder_ == null) { action_ = builderForValue.build(); onChanged(); } else { - twowaySynonymsActionBuilder_.setMessage(builderForValue.build()); + removeFacetActionBuilder_.setMessage(builderForValue.build()); } - actionCase_ = 11; + actionCase_ = 13; return this; } /** * * *
-     * Treats a set of terms as synonyms of one another.
+     * Remove an attribute as a facet in the request (if present).
      * 
* - * .google.cloud.retail.v2beta.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; - * + * .google.cloud.retail.v2beta.Rule.RemoveFacetAction remove_facet_action = 13; */ - public Builder mergeTwowaySynonymsAction( - com.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction value) { - if (twowaySynonymsActionBuilder_ == null) { - if (actionCase_ == 11 + public Builder mergeRemoveFacetAction( + com.google.cloud.retail.v2beta.Rule.RemoveFacetAction value) { + if (removeFacetActionBuilder_ == null) { + if (actionCase_ == 13 && action_ - != com.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction.getDefaultInstance()) { + != com.google.cloud.retail.v2beta.Rule.RemoveFacetAction.getDefaultInstance()) { action_ = - com.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction.newBuilder( - (com.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction) action_) + com.google.cloud.retail.v2beta.Rule.RemoveFacetAction.newBuilder( + (com.google.cloud.retail.v2beta.Rule.RemoveFacetAction) action_) .mergeFrom(value) .buildPartial(); } else { @@ -11055,38 +14544,37 @@ public Builder mergeTwowaySynonymsAction( } onChanged(); } else { - if (actionCase_ == 11) { - twowaySynonymsActionBuilder_.mergeFrom(value); + if (actionCase_ == 13) { + removeFacetActionBuilder_.mergeFrom(value); } else { - twowaySynonymsActionBuilder_.setMessage(value); + removeFacetActionBuilder_.setMessage(value); } } - actionCase_ = 11; + actionCase_ = 13; return this; } /** * * *
-     * Treats a set of terms as synonyms of one another.
+     * Remove an attribute as a facet in the request (if present).
      * 
* - * .google.cloud.retail.v2beta.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; - * + * .google.cloud.retail.v2beta.Rule.RemoveFacetAction remove_facet_action = 13; */ - public Builder clearTwowaySynonymsAction() { - if (twowaySynonymsActionBuilder_ == null) { - if (actionCase_ == 11) { + public Builder clearRemoveFacetAction() { + if (removeFacetActionBuilder_ == null) { + if (actionCase_ == 13) { actionCase_ = 0; action_ = null; onChanged(); } } else { - if (actionCase_ == 11) { + if (actionCase_ == 13) { actionCase_ = 0; action_ = null; } - twowaySynonymsActionBuilder_.clear(); + removeFacetActionBuilder_.clear(); } return this; } @@ -11094,70 +14582,67 @@ public Builder clearTwowaySynonymsAction() { * * *
-     * Treats a set of terms as synonyms of one another.
+     * Remove an attribute as a facet in the request (if present).
      * 
* - * .google.cloud.retail.v2beta.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; - * + * .google.cloud.retail.v2beta.Rule.RemoveFacetAction remove_facet_action = 13; */ - public com.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction.Builder - getTwowaySynonymsActionBuilder() { - return getTwowaySynonymsActionFieldBuilder().getBuilder(); + public com.google.cloud.retail.v2beta.Rule.RemoveFacetAction.Builder + getRemoveFacetActionBuilder() { + return getRemoveFacetActionFieldBuilder().getBuilder(); } /** * * *
-     * Treats a set of terms as synonyms of one another.
+     * Remove an attribute as a facet in the request (if present).
      * 
* - * .google.cloud.retail.v2beta.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; - * + * .google.cloud.retail.v2beta.Rule.RemoveFacetAction remove_facet_action = 13; */ @java.lang.Override - public com.google.cloud.retail.v2beta.Rule.TwowaySynonymsActionOrBuilder - getTwowaySynonymsActionOrBuilder() { - if ((actionCase_ == 11) && (twowaySynonymsActionBuilder_ != null)) { - return twowaySynonymsActionBuilder_.getMessageOrBuilder(); + public com.google.cloud.retail.v2beta.Rule.RemoveFacetActionOrBuilder + getRemoveFacetActionOrBuilder() { + if ((actionCase_ == 13) && (removeFacetActionBuilder_ != null)) { + return removeFacetActionBuilder_.getMessageOrBuilder(); } else { - if (actionCase_ == 11) { - return (com.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction) action_; + if (actionCase_ == 13) { + return (com.google.cloud.retail.v2beta.Rule.RemoveFacetAction) action_; } - return com.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction.getDefaultInstance(); + return com.google.cloud.retail.v2beta.Rule.RemoveFacetAction.getDefaultInstance(); } } /** * * *
-     * Treats a set of terms as synonyms of one another.
+     * Remove an attribute as a facet in the request (if present).
      * 
* - * .google.cloud.retail.v2beta.Rule.TwowaySynonymsAction twoway_synonyms_action = 11; - * + * .google.cloud.retail.v2beta.Rule.RemoveFacetAction remove_facet_action = 13; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction, - com.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction.Builder, - com.google.cloud.retail.v2beta.Rule.TwowaySynonymsActionOrBuilder> - getTwowaySynonymsActionFieldBuilder() { - if (twowaySynonymsActionBuilder_ == null) { - if (!(actionCase_ == 11)) { - action_ = com.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction.getDefaultInstance(); - } - twowaySynonymsActionBuilder_ = + com.google.cloud.retail.v2beta.Rule.RemoveFacetAction, + com.google.cloud.retail.v2beta.Rule.RemoveFacetAction.Builder, + com.google.cloud.retail.v2beta.Rule.RemoveFacetActionOrBuilder> + getRemoveFacetActionFieldBuilder() { + if (removeFacetActionBuilder_ == null) { + if (!(actionCase_ == 13)) { + action_ = com.google.cloud.retail.v2beta.Rule.RemoveFacetAction.getDefaultInstance(); + } + removeFacetActionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction, - com.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction.Builder, - com.google.cloud.retail.v2beta.Rule.TwowaySynonymsActionOrBuilder>( - (com.google.cloud.retail.v2beta.Rule.TwowaySynonymsAction) action_, + com.google.cloud.retail.v2beta.Rule.RemoveFacetAction, + com.google.cloud.retail.v2beta.Rule.RemoveFacetAction.Builder, + com.google.cloud.retail.v2beta.Rule.RemoveFacetActionOrBuilder>( + (com.google.cloud.retail.v2beta.Rule.RemoveFacetAction) action_, getParentForChildren(), isClean()); action_ = null; } - actionCase_ = 11; + actionCase_ = 13; onChanged(); - return twowaySynonymsActionBuilder_; + return removeFacetActionBuilder_; } private com.google.cloud.retail.v2beta.Condition condition_; @@ -11181,7 +14666,7 @@ public Builder clearTwowaySynonymsAction() { * @return Whether the condition field is set. */ public boolean hasCondition() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** * @@ -11227,7 +14712,7 @@ public Builder setCondition(com.google.cloud.retail.v2beta.Condition value) { } else { conditionBuilder_.setMessage(value); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -11249,7 +14734,7 @@ public Builder setCondition(com.google.cloud.retail.v2beta.Condition.Builder bui } else { conditionBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -11267,7 +14752,7 @@ public Builder setCondition(com.google.cloud.retail.v2beta.Condition.Builder bui */ public Builder mergeCondition(com.google.cloud.retail.v2beta.Condition value) { if (conditionBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) + if (((bitField0_ & 0x00000400) != 0) && condition_ != null && condition_ != com.google.cloud.retail.v2beta.Condition.getDefaultInstance()) { getConditionBuilder().mergeFrom(value); @@ -11278,7 +14763,7 @@ public Builder mergeCondition(com.google.cloud.retail.v2beta.Condition value) { conditionBuilder_.mergeFrom(value); } if (condition_ != null) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); } return this; @@ -11296,7 +14781,7 @@ public Builder mergeCondition(com.google.cloud.retail.v2beta.Condition value) { * */ public Builder clearCondition() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000400); condition_ = null; if (conditionBuilder_ != null) { conditionBuilder_.dispose(); @@ -11318,7 +14803,7 @@ public Builder clearCondition() { * */ public com.google.cloud.retail.v2beta.Condition.Builder getConditionBuilder() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); return getConditionFieldBuilder().getBuilder(); } diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/RuleOrBuilder.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/RuleOrBuilder.java index 653f9cc9e29a..eb293c4a4168 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/RuleOrBuilder.java +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/RuleOrBuilder.java @@ -310,6 +310,80 @@ public interface RuleOrBuilder com.google.cloud.retail.v2beta.Rule.TwowaySynonymsActionOrBuilder getTwowaySynonymsActionOrBuilder(); + /** + * + * + *
+   * Force returns an attribute as a facet in the request.
+   * 
+ * + * .google.cloud.retail.v2beta.Rule.ForceReturnFacetAction force_return_facet_action = 12; + * + * + * @return Whether the forceReturnFacetAction field is set. + */ + boolean hasForceReturnFacetAction(); + /** + * + * + *
+   * Force returns an attribute as a facet in the request.
+   * 
+ * + * .google.cloud.retail.v2beta.Rule.ForceReturnFacetAction force_return_facet_action = 12; + * + * + * @return The forceReturnFacetAction. + */ + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetAction getForceReturnFacetAction(); + /** + * + * + *
+   * Force returns an attribute as a facet in the request.
+   * 
+ * + * .google.cloud.retail.v2beta.Rule.ForceReturnFacetAction force_return_facet_action = 12; + * + */ + com.google.cloud.retail.v2beta.Rule.ForceReturnFacetActionOrBuilder + getForceReturnFacetActionOrBuilder(); + + /** + * + * + *
+   * Remove an attribute as a facet in the request (if present).
+   * 
+ * + * .google.cloud.retail.v2beta.Rule.RemoveFacetAction remove_facet_action = 13; + * + * @return Whether the removeFacetAction field is set. + */ + boolean hasRemoveFacetAction(); + /** + * + * + *
+   * Remove an attribute as a facet in the request (if present).
+   * 
+ * + * .google.cloud.retail.v2beta.Rule.RemoveFacetAction remove_facet_action = 13; + * + * @return The removeFacetAction. + */ + com.google.cloud.retail.v2beta.Rule.RemoveFacetAction getRemoveFacetAction(); + /** + * + * + *
+   * Remove an attribute as a facet in the request (if present).
+   * 
+ * + * .google.cloud.retail.v2beta.Rule.RemoveFacetAction remove_facet_action = 13; + */ + com.google.cloud.retail.v2beta.Rule.RemoveFacetActionOrBuilder getRemoveFacetActionOrBuilder(); + /** * * diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/SearchRequest.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/SearchRequest.java index 9facd343f4ae..6820e4e0c252 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/SearchRequest.java +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/SearchRequest.java @@ -528,15 +528,15 @@ public interface FacetSpecOrBuilder *
      * Enables dynamic position for this facet. If set to true, the position of
      * this facet among all facets in the response is determined by Google
-     * Retail Search. It will be ordered together with dynamic facets if dynamic
+     * Retail Search. It is ordered together with dynamic facets if dynamic
      * facets is enabled. If set to false, the position of this facet in the
-     * response will be the same as in the request, and it will be ranked before
+     * response is the same as in the request, and it is ranked before
      * the facets with dynamic position enable and all dynamic facets.
      *
      * For example, you may always want to have rating facet returned in
      * the response, but it's not necessarily to always display the rating facet
      * at the top. In that case, you can set enable_dynamic_position to true so
-     * that the position of rating facet in response will be determined by
+     * that the position of rating facet in response is determined by
      * Google Retail Search.
      *
      * Another example, assuming you have the following facets in the request:
@@ -547,13 +547,13 @@ public interface FacetSpecOrBuilder
      *
      * * "brands", enable_dynamic_position = false
      *
-     * And also you have a dynamic facets enable, which will generate a facet
-     * 'gender'. Then the final order of the facets in the response can be
+     * And also you have a dynamic facets enable, which generates a facet
+     * "gender". Then, the final order of the facets in the response can be
      * ("price", "brands", "rating", "gender") or ("price", "brands", "gender",
      * "rating") depends on how Google Retail Search orders "gender" and
-     * "rating" facets. However, notice that "price" and "brands" will always be
-     * ranked at 1st and 2nd position since their enable_dynamic_position are
-     * false.
+     * "rating" facets. However, notice that "price" and "brands" are always
+     * ranked at first and second position because their enable_dynamic_position
+     * values are false.
      * 
* * bool enable_dynamic_position = 4; @@ -725,13 +725,13 @@ public interface FacetKeyOrBuilder * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. *
* * repeated .google.cloud.retail.v2beta.Interval intervals = 2; @@ -746,13 +746,13 @@ public interface FacetKeyOrBuilder * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. *
* * repeated .google.cloud.retail.v2beta.Interval intervals = 2; @@ -767,13 +767,13 @@ public interface FacetKeyOrBuilder * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. *
* * repeated .google.cloud.retail.v2beta.Interval intervals = 2; @@ -788,13 +788,13 @@ public interface FacetKeyOrBuilder * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. *
* * repeated .google.cloud.retail.v2beta.Interval intervals = 2; @@ -810,13 +810,13 @@ public interface FacetKeyOrBuilder * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. *
* * repeated .google.cloud.retail.v2beta.Interval intervals = 2; @@ -977,7 +977,7 @@ public interface FacetKeyOrBuilder * Only get facet values that start with the given string prefix. For * example, suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the - * "categories" facet will give only "Women > Shoe" and "Women > Dress". + * "categories" facet gives only "Women > Shoe" and "Women > Dress". * Only supported on textual fields. Maximum is 10. *
* @@ -993,7 +993,7 @@ public interface FacetKeyOrBuilder * Only get facet values that start with the given string prefix. For * example, suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the - * "categories" facet will give only "Women > Shoe" and "Women > Dress". + * "categories" facet gives only "Women > Shoe" and "Women > Dress". * Only supported on textual fields. Maximum is 10. *
* @@ -1009,7 +1009,7 @@ public interface FacetKeyOrBuilder * Only get facet values that start with the given string prefix. For * example, suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the - * "categories" facet will give only "Women > Shoe" and "Women > Dress". + * "categories" facet gives only "Women > Shoe" and "Women > Dress". * Only supported on textual fields. Maximum is 10. *
* @@ -1026,7 +1026,7 @@ public interface FacetKeyOrBuilder * Only get facet values that start with the given string prefix. For * example, suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the - * "categories" facet will give only "Women > Shoe" and "Women > Dress". + * "categories" facet gives only "Women > Shoe" and "Women > Dress". * Only supported on textual fields. Maximum is 10. *
* @@ -1044,7 +1044,7 @@ public interface FacetKeyOrBuilder * Only get facet values that contains the given strings. For example, * suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the - * "categories" facet will give only "Women > Shoe" and "Men > Shoe". + * "categories" facet gives only "Women > Shoe" and "Men > Shoe". * Only supported on textual fields. Maximum is 10. *
* @@ -1060,7 +1060,7 @@ public interface FacetKeyOrBuilder * Only get facet values that contains the given strings. For example, * suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the - * "categories" facet will give only "Women > Shoe" and "Men > Shoe". + * "categories" facet gives only "Women > Shoe" and "Men > Shoe". * Only supported on textual fields. Maximum is 10. *
* @@ -1076,7 +1076,7 @@ public interface FacetKeyOrBuilder * Only get facet values that contains the given strings. For example, * suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the - * "categories" facet will give only "Women > Shoe" and "Men > Shoe". + * "categories" facet gives only "Women > Shoe" and "Men > Shoe". * Only supported on textual fields. Maximum is 10. *
* @@ -1093,7 +1093,7 @@ public interface FacetKeyOrBuilder * Only get facet values that contains the given strings. For example, * suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the - * "categories" facet will give only "Women > Shoe" and "Men > Shoe". + * "categories" facet gives only "Women > Shoe" and "Men > Shoe". * Only supported on textual fields. Maximum is 10. *
* @@ -1190,7 +1190,7 @@ public interface FacetKeyOrBuilder * *
        * The query that is used to compute facet for the given facet key.
-       * When provided, it will override the default behavior of facet
+       * When provided, it overrides the default behavior of facet
        * computation. The query syntax is the same as a filter expression. See
        * [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter]
        * for detail syntax and limitations. Notice that there is no limitation
@@ -1200,9 +1200,9 @@ public interface FacetKeyOrBuilder
        *
        * In the response,
        * [SearchResponse.Facet.values.value][google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue.value]
-       * will be always "1" and
+       * is always "1" and
        * [SearchResponse.Facet.values.count][google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue.count]
-       * will be the number of results that match the query.
+       * is the number of results that match the query.
        *
        * For example, you can set a customized facet for "shipToStore",
        * where
@@ -1210,7 +1210,7 @@ public interface FacetKeyOrBuilder
        * is "customizedShipToStore", and
        * [FacetKey.query][google.cloud.retail.v2beta.SearchRequest.FacetSpec.FacetKey.query]
        * is "availability: ANY(\"IN_STOCK\") AND shipToStore: ANY(\"123\")".
-       * Then the facet will count the products that are both in stock and ship
+       * Then the facet counts the products that are both in stock and ship
        * to store "123".
        * 
* @@ -1224,7 +1224,7 @@ public interface FacetKeyOrBuilder * *
        * The query that is used to compute facet for the given facet key.
-       * When provided, it will override the default behavior of facet
+       * When provided, it overrides the default behavior of facet
        * computation. The query syntax is the same as a filter expression. See
        * [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter]
        * for detail syntax and limitations. Notice that there is no limitation
@@ -1234,9 +1234,9 @@ public interface FacetKeyOrBuilder
        *
        * In the response,
        * [SearchResponse.Facet.values.value][google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue.value]
-       * will be always "1" and
+       * is always "1" and
        * [SearchResponse.Facet.values.count][google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue.count]
-       * will be the number of results that match the query.
+       * is the number of results that match the query.
        *
        * For example, you can set a customized facet for "shipToStore",
        * where
@@ -1244,7 +1244,7 @@ public interface FacetKeyOrBuilder
        * is "customizedShipToStore", and
        * [FacetKey.query][google.cloud.retail.v2beta.SearchRequest.FacetSpec.FacetKey.query]
        * is "availability: ANY(\"IN_STOCK\") AND shipToStore: ANY(\"123\")".
-       * Then the facet will count the products that are both in stock and ship
+       * Then the facet counts the products that are both in stock and ship
        * to store "123".
        * 
* @@ -1462,13 +1462,13 @@ public com.google.protobuf.ByteString getKeyBytes() { * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. *
* * repeated .google.cloud.retail.v2beta.Interval intervals = 2; @@ -1486,13 +1486,13 @@ public java.util.List getIntervalsList( * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. *
* * repeated .google.cloud.retail.v2beta.Interval intervals = 2; @@ -1511,13 +1511,13 @@ public java.util.List getIntervalsList( * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. *
* * repeated .google.cloud.retail.v2beta.Interval intervals = 2; @@ -1535,13 +1535,13 @@ public int getIntervalsCount() { * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. *
* * repeated .google.cloud.retail.v2beta.Interval intervals = 2; @@ -1559,13 +1559,13 @@ public com.google.cloud.retail.v2beta.Interval getIntervals(int index) { * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. *
* * repeated .google.cloud.retail.v2beta.Interval intervals = 2; @@ -1747,7 +1747,7 @@ public com.google.protobuf.ByteString getRestrictedValuesBytes(int index) { * Only get facet values that start with the given string prefix. For * example, suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the - * "categories" facet will give only "Women > Shoe" and "Women > Dress". + * "categories" facet gives only "Women > Shoe" and "Women > Dress". * Only supported on textual fields. Maximum is 10. *
* @@ -1765,7 +1765,7 @@ public com.google.protobuf.ProtocolStringList getPrefixesList() { * Only get facet values that start with the given string prefix. For * example, suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the - * "categories" facet will give only "Women > Shoe" and "Women > Dress". + * "categories" facet gives only "Women > Shoe" and "Women > Dress". * Only supported on textual fields. Maximum is 10. *
* @@ -1783,7 +1783,7 @@ public int getPrefixesCount() { * Only get facet values that start with the given string prefix. For * example, suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the - * "categories" facet will give only "Women > Shoe" and "Women > Dress". + * "categories" facet gives only "Women > Shoe" and "Women > Dress". * Only supported on textual fields. Maximum is 10. *
* @@ -1802,7 +1802,7 @@ public java.lang.String getPrefixes(int index) { * Only get facet values that start with the given string prefix. For * example, suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the - * "categories" facet will give only "Women > Shoe" and "Women > Dress". + * "categories" facet gives only "Women > Shoe" and "Women > Dress". * Only supported on textual fields. Maximum is 10. *
* @@ -1827,7 +1827,7 @@ public com.google.protobuf.ByteString getPrefixesBytes(int index) { * Only get facet values that contains the given strings. For example, * suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the - * "categories" facet will give only "Women > Shoe" and "Men > Shoe". + * "categories" facet gives only "Women > Shoe" and "Men > Shoe". * Only supported on textual fields. Maximum is 10. *
* @@ -1845,7 +1845,7 @@ public com.google.protobuf.ProtocolStringList getContainsList() { * Only get facet values that contains the given strings. For example, * suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the - * "categories" facet will give only "Women > Shoe" and "Men > Shoe". + * "categories" facet gives only "Women > Shoe" and "Men > Shoe". * Only supported on textual fields. Maximum is 10. * * @@ -1863,7 +1863,7 @@ public int getContainsCount() { * Only get facet values that contains the given strings. For example, * suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the - * "categories" facet will give only "Women > Shoe" and "Men > Shoe". + * "categories" facet gives only "Women > Shoe" and "Men > Shoe". * Only supported on textual fields. Maximum is 10. * * @@ -1882,7 +1882,7 @@ public java.lang.String getContains(int index) { * Only get facet values that contains the given strings. For example, * suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the - * "categories" facet will give only "Women > Shoe" and "Men > Shoe". + * "categories" facet gives only "Women > Shoe" and "Men > Shoe". * Only supported on textual fields. Maximum is 10. * * @@ -2016,7 +2016,7 @@ public com.google.protobuf.ByteString getOrderByBytes() { * *
        * The query that is used to compute facet for the given facet key.
-       * When provided, it will override the default behavior of facet
+       * When provided, it overrides the default behavior of facet
        * computation. The query syntax is the same as a filter expression. See
        * [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter]
        * for detail syntax and limitations. Notice that there is no limitation
@@ -2026,9 +2026,9 @@ public com.google.protobuf.ByteString getOrderByBytes() {
        *
        * In the response,
        * [SearchResponse.Facet.values.value][google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue.value]
-       * will be always "1" and
+       * is always "1" and
        * [SearchResponse.Facet.values.count][google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue.count]
-       * will be the number of results that match the query.
+       * is the number of results that match the query.
        *
        * For example, you can set a customized facet for "shipToStore",
        * where
@@ -2036,7 +2036,7 @@ public com.google.protobuf.ByteString getOrderByBytes() {
        * is "customizedShipToStore", and
        * [FacetKey.query][google.cloud.retail.v2beta.SearchRequest.FacetSpec.FacetKey.query]
        * is "availability: ANY(\"IN_STOCK\") AND shipToStore: ANY(\"123\")".
-       * Then the facet will count the products that are both in stock and ship
+       * Then the facet counts the products that are both in stock and ship
        * to store "123".
        * 
* @@ -2061,7 +2061,7 @@ public java.lang.String getQuery() { * *
        * The query that is used to compute facet for the given facet key.
-       * When provided, it will override the default behavior of facet
+       * When provided, it overrides the default behavior of facet
        * computation. The query syntax is the same as a filter expression. See
        * [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter]
        * for detail syntax and limitations. Notice that there is no limitation
@@ -2071,9 +2071,9 @@ public java.lang.String getQuery() {
        *
        * In the response,
        * [SearchResponse.Facet.values.value][google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue.value]
-       * will be always "1" and
+       * is always "1" and
        * [SearchResponse.Facet.values.count][google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue.count]
-       * will be the number of results that match the query.
+       * is the number of results that match the query.
        *
        * For example, you can set a customized facet for "shipToStore",
        * where
@@ -2081,7 +2081,7 @@ public java.lang.String getQuery() {
        * is "customizedShipToStore", and
        * [FacetKey.query][google.cloud.retail.v2beta.SearchRequest.FacetSpec.FacetKey.query]
        * is "availability: ANY(\"IN_STOCK\") AND shipToStore: ANY(\"123\")".
-       * Then the facet will count the products that are both in stock and ship
+       * Then the facet counts the products that are both in stock and ship
        * to store "123".
        * 
* @@ -3088,13 +3088,13 @@ private void ensureIntervalsIsMutable() { * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. * * * repeated .google.cloud.retail.v2beta.Interval intervals = 2; @@ -3115,13 +3115,13 @@ public java.util.List getIntervalsList( * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. * * * repeated .google.cloud.retail.v2beta.Interval intervals = 2; @@ -3142,13 +3142,13 @@ public int getIntervalsCount() { * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. * * * repeated .google.cloud.retail.v2beta.Interval intervals = 2; @@ -3169,13 +3169,13 @@ public com.google.cloud.retail.v2beta.Interval getIntervals(int index) { * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. * * * repeated .google.cloud.retail.v2beta.Interval intervals = 2; @@ -3202,13 +3202,13 @@ public Builder setIntervals(int index, com.google.cloud.retail.v2beta.Interval v * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. * * * repeated .google.cloud.retail.v2beta.Interval intervals = 2; @@ -3233,13 +3233,13 @@ public Builder setIntervals( * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. * * * repeated .google.cloud.retail.v2beta.Interval intervals = 2; @@ -3266,13 +3266,13 @@ public Builder addIntervals(com.google.cloud.retail.v2beta.Interval value) { * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. * * * repeated .google.cloud.retail.v2beta.Interval intervals = 2; @@ -3299,13 +3299,13 @@ public Builder addIntervals(int index, com.google.cloud.retail.v2beta.Interval v * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. * * * repeated .google.cloud.retail.v2beta.Interval intervals = 2; @@ -3330,13 +3330,13 @@ public Builder addIntervals( * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. * * * repeated .google.cloud.retail.v2beta.Interval intervals = 2; @@ -3361,13 +3361,13 @@ public Builder addIntervals( * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. * * * repeated .google.cloud.retail.v2beta.Interval intervals = 2; @@ -3392,13 +3392,13 @@ public Builder addAllIntervals( * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. * * * repeated .google.cloud.retail.v2beta.Interval intervals = 2; @@ -3422,13 +3422,13 @@ public Builder clearIntervals() { * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. * * * repeated .google.cloud.retail.v2beta.Interval intervals = 2; @@ -3452,13 +3452,13 @@ public Builder removeIntervals(int index) { * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. * * * repeated .google.cloud.retail.v2beta.Interval intervals = 2; @@ -3475,13 +3475,13 @@ public com.google.cloud.retail.v2beta.Interval.Builder getIntervalsBuilder(int i * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. * * * repeated .google.cloud.retail.v2beta.Interval intervals = 2; @@ -3502,13 +3502,13 @@ public com.google.cloud.retail.v2beta.IntervalOrBuilder getIntervalsOrBuilder(in * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. * * * repeated .google.cloud.retail.v2beta.Interval intervals = 2; @@ -3530,13 +3530,13 @@ public com.google.cloud.retail.v2beta.IntervalOrBuilder getIntervalsOrBuilder(in * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. * * * repeated .google.cloud.retail.v2beta.Interval intervals = 2; @@ -3554,13 +3554,13 @@ public com.google.cloud.retail.v2beta.Interval.Builder addIntervalsBuilder() { * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. * * * repeated .google.cloud.retail.v2beta.Interval intervals = 2; @@ -3578,13 +3578,13 @@ public com.google.cloud.retail.v2beta.Interval.Builder addIntervalsBuilder(int i * values. Maximum number of intervals is 40. * * For all numerical facet keys that appear in the list of products from - * the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + * the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are * computed from their distribution weekly. If the model assigns a high * score to a numerical facet key and its intervals are not specified in - * the search request, these percentiles will become the bounds - * for its intervals and will be returned in the response. If the + * the search request, these percentiles become the bounds + * for its intervals and are returned in the response. If the * facet key intervals are specified in the request, then the specified - * intervals will be returned instead. + * intervals are returned instead. * * * repeated .google.cloud.retail.v2beta.Interval intervals = 2; @@ -4020,7 +4020,7 @@ private void ensurePrefixesIsMutable() { * Only get facet values that start with the given string prefix. For * example, suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the - * "categories" facet will give only "Women > Shoe" and "Women > Dress". + * "categories" facet gives only "Women > Shoe" and "Women > Dress". * Only supported on textual fields. Maximum is 10. * * @@ -4039,7 +4039,7 @@ public com.google.protobuf.ProtocolStringList getPrefixesList() { * Only get facet values that start with the given string prefix. For * example, suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the - * "categories" facet will give only "Women > Shoe" and "Women > Dress". + * "categories" facet gives only "Women > Shoe" and "Women > Dress". * Only supported on textual fields. Maximum is 10. * * @@ -4057,7 +4057,7 @@ public int getPrefixesCount() { * Only get facet values that start with the given string prefix. For * example, suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the - * "categories" facet will give only "Women > Shoe" and "Women > Dress". + * "categories" facet gives only "Women > Shoe" and "Women > Dress". * Only supported on textual fields. Maximum is 10. * * @@ -4076,7 +4076,7 @@ public java.lang.String getPrefixes(int index) { * Only get facet values that start with the given string prefix. For * example, suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the - * "categories" facet will give only "Women > Shoe" and "Women > Dress". + * "categories" facet gives only "Women > Shoe" and "Women > Dress". * Only supported on textual fields. Maximum is 10. * * @@ -4095,7 +4095,7 @@ public com.google.protobuf.ByteString getPrefixesBytes(int index) { * Only get facet values that start with the given string prefix. For * example, suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the - * "categories" facet will give only "Women > Shoe" and "Women > Dress". + * "categories" facet gives only "Women > Shoe" and "Women > Dress". * Only supported on textual fields. Maximum is 10. * * @@ -4122,7 +4122,7 @@ public Builder setPrefixes(int index, java.lang.String value) { * Only get facet values that start with the given string prefix. For * example, suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the - * "categories" facet will give only "Women > Shoe" and "Women > Dress". + * "categories" facet gives only "Women > Shoe" and "Women > Dress". * Only supported on textual fields. Maximum is 10. * * @@ -4148,7 +4148,7 @@ public Builder addPrefixes(java.lang.String value) { * Only get facet values that start with the given string prefix. For * example, suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the - * "categories" facet will give only "Women > Shoe" and "Women > Dress". + * "categories" facet gives only "Women > Shoe" and "Women > Dress". * Only supported on textual fields. Maximum is 10. * * @@ -4171,7 +4171,7 @@ public Builder addAllPrefixes(java.lang.Iterable values) { * Only get facet values that start with the given string prefix. For * example, suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the - * "categories" facet will give only "Women > Shoe" and "Women > Dress". + * "categories" facet gives only "Women > Shoe" and "Women > Dress". * Only supported on textual fields. Maximum is 10. * * @@ -4193,7 +4193,7 @@ public Builder clearPrefixes() { * Only get facet values that start with the given string prefix. For * example, suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the - * "categories" facet will give only "Women > Shoe" and "Women > Dress". + * "categories" facet gives only "Women > Shoe" and "Women > Dress". * Only supported on textual fields. Maximum is 10. * * @@ -4230,7 +4230,7 @@ private void ensureContainsIsMutable() { * Only get facet values that contains the given strings. For example, * suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the - * "categories" facet will give only "Women > Shoe" and "Men > Shoe". + * "categories" facet gives only "Women > Shoe" and "Men > Shoe". * Only supported on textual fields. Maximum is 10. * * @@ -4249,7 +4249,7 @@ public com.google.protobuf.ProtocolStringList getContainsList() { * Only get facet values that contains the given strings. For example, * suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the - * "categories" facet will give only "Women > Shoe" and "Men > Shoe". + * "categories" facet gives only "Women > Shoe" and "Men > Shoe". * Only supported on textual fields. Maximum is 10. * * @@ -4267,7 +4267,7 @@ public int getContainsCount() { * Only get facet values that contains the given strings. For example, * suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the - * "categories" facet will give only "Women > Shoe" and "Men > Shoe". + * "categories" facet gives only "Women > Shoe" and "Men > Shoe". * Only supported on textual fields. Maximum is 10. * * @@ -4286,7 +4286,7 @@ public java.lang.String getContains(int index) { * Only get facet values that contains the given strings. For example, * suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the - * "categories" facet will give only "Women > Shoe" and "Men > Shoe". + * "categories" facet gives only "Women > Shoe" and "Men > Shoe". * Only supported on textual fields. Maximum is 10. * * @@ -4305,7 +4305,7 @@ public com.google.protobuf.ByteString getContainsBytes(int index) { * Only get facet values that contains the given strings. For example, * suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the - * "categories" facet will give only "Women > Shoe" and "Men > Shoe". + * "categories" facet gives only "Women > Shoe" and "Men > Shoe". * Only supported on textual fields. Maximum is 10. * * @@ -4332,7 +4332,7 @@ public Builder setContains(int index, java.lang.String value) { * Only get facet values that contains the given strings. For example, * suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the - * "categories" facet will give only "Women > Shoe" and "Men > Shoe". + * "categories" facet gives only "Women > Shoe" and "Men > Shoe". * Only supported on textual fields. Maximum is 10. * * @@ -4358,7 +4358,7 @@ public Builder addContains(java.lang.String value) { * Only get facet values that contains the given strings. For example, * suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the - * "categories" facet will give only "Women > Shoe" and "Men > Shoe". + * "categories" facet gives only "Women > Shoe" and "Men > Shoe". * Only supported on textual fields. Maximum is 10. * * @@ -4381,7 +4381,7 @@ public Builder addAllContains(java.lang.Iterable values) { * Only get facet values that contains the given strings. For example, * suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the - * "categories" facet will give only "Women > Shoe" and "Men > Shoe". + * "categories" facet gives only "Women > Shoe" and "Men > Shoe". * Only supported on textual fields. Maximum is 10. * * @@ -4403,7 +4403,7 @@ public Builder clearContains() { * Only get facet values that contains the given strings. For example, * suppose "categories" has three values "Women > Shoe", * "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the - * "categories" facet will give only "Women > Shoe" and "Men > Shoe". + * "categories" facet gives only "Women > Shoe" and "Men > Shoe". * Only supported on textual fields. Maximum is 10. * * @@ -4697,7 +4697,7 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { * *
          * The query that is used to compute facet for the given facet key.
-         * When provided, it will override the default behavior of facet
+         * When provided, it overrides the default behavior of facet
          * computation. The query syntax is the same as a filter expression. See
          * [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter]
          * for detail syntax and limitations. Notice that there is no limitation
@@ -4707,9 +4707,9 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) {
          *
          * In the response,
          * [SearchResponse.Facet.values.value][google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue.value]
-         * will be always "1" and
+         * is always "1" and
          * [SearchResponse.Facet.values.count][google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue.count]
-         * will be the number of results that match the query.
+         * is the number of results that match the query.
          *
          * For example, you can set a customized facet for "shipToStore",
          * where
@@ -4717,7 +4717,7 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) {
          * is "customizedShipToStore", and
          * [FacetKey.query][google.cloud.retail.v2beta.SearchRequest.FacetSpec.FacetKey.query]
          * is "availability: ANY(\"IN_STOCK\") AND shipToStore: ANY(\"123\")".
-         * Then the facet will count the products that are both in stock and ship
+         * Then the facet counts the products that are both in stock and ship
          * to store "123".
          * 
* @@ -4741,7 +4741,7 @@ public java.lang.String getQuery() { * *
          * The query that is used to compute facet for the given facet key.
-         * When provided, it will override the default behavior of facet
+         * When provided, it overrides the default behavior of facet
          * computation. The query syntax is the same as a filter expression. See
          * [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter]
          * for detail syntax and limitations. Notice that there is no limitation
@@ -4751,9 +4751,9 @@ public java.lang.String getQuery() {
          *
          * In the response,
          * [SearchResponse.Facet.values.value][google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue.value]
-         * will be always "1" and
+         * is always "1" and
          * [SearchResponse.Facet.values.count][google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue.count]
-         * will be the number of results that match the query.
+         * is the number of results that match the query.
          *
          * For example, you can set a customized facet for "shipToStore",
          * where
@@ -4761,7 +4761,7 @@ public java.lang.String getQuery() {
          * is "customizedShipToStore", and
          * [FacetKey.query][google.cloud.retail.v2beta.SearchRequest.FacetSpec.FacetKey.query]
          * is "availability: ANY(\"IN_STOCK\") AND shipToStore: ANY(\"123\")".
-         * Then the facet will count the products that are both in stock and ship
+         * Then the facet counts the products that are both in stock and ship
          * to store "123".
          * 
* @@ -4785,7 +4785,7 @@ public com.google.protobuf.ByteString getQueryBytes() { * *
          * The query that is used to compute facet for the given facet key.
-         * When provided, it will override the default behavior of facet
+         * When provided, it overrides the default behavior of facet
          * computation. The query syntax is the same as a filter expression. See
          * [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter]
          * for detail syntax and limitations. Notice that there is no limitation
@@ -4795,9 +4795,9 @@ public com.google.protobuf.ByteString getQueryBytes() {
          *
          * In the response,
          * [SearchResponse.Facet.values.value][google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue.value]
-         * will be always "1" and
+         * is always "1" and
          * [SearchResponse.Facet.values.count][google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue.count]
-         * will be the number of results that match the query.
+         * is the number of results that match the query.
          *
          * For example, you can set a customized facet for "shipToStore",
          * where
@@ -4805,7 +4805,7 @@ public com.google.protobuf.ByteString getQueryBytes() {
          * is "customizedShipToStore", and
          * [FacetKey.query][google.cloud.retail.v2beta.SearchRequest.FacetSpec.FacetKey.query]
          * is "availability: ANY(\"IN_STOCK\") AND shipToStore: ANY(\"123\")".
-         * Then the facet will count the products that are both in stock and ship
+         * Then the facet counts the products that are both in stock and ship
          * to store "123".
          * 
* @@ -4828,7 +4828,7 @@ public Builder setQuery(java.lang.String value) { * *
          * The query that is used to compute facet for the given facet key.
-         * When provided, it will override the default behavior of facet
+         * When provided, it overrides the default behavior of facet
          * computation. The query syntax is the same as a filter expression. See
          * [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter]
          * for detail syntax and limitations. Notice that there is no limitation
@@ -4838,9 +4838,9 @@ public Builder setQuery(java.lang.String value) {
          *
          * In the response,
          * [SearchResponse.Facet.values.value][google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue.value]
-         * will be always "1" and
+         * is always "1" and
          * [SearchResponse.Facet.values.count][google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue.count]
-         * will be the number of results that match the query.
+         * is the number of results that match the query.
          *
          * For example, you can set a customized facet for "shipToStore",
          * where
@@ -4848,7 +4848,7 @@ public Builder setQuery(java.lang.String value) {
          * is "customizedShipToStore", and
          * [FacetKey.query][google.cloud.retail.v2beta.SearchRequest.FacetSpec.FacetKey.query]
          * is "availability: ANY(\"IN_STOCK\") AND shipToStore: ANY(\"123\")".
-         * Then the facet will count the products that are both in stock and ship
+         * Then the facet counts the products that are both in stock and ship
          * to store "123".
          * 
* @@ -4867,7 +4867,7 @@ public Builder clearQuery() { * *
          * The query that is used to compute facet for the given facet key.
-         * When provided, it will override the default behavior of facet
+         * When provided, it overrides the default behavior of facet
          * computation. The query syntax is the same as a filter expression. See
          * [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter]
          * for detail syntax and limitations. Notice that there is no limitation
@@ -4877,9 +4877,9 @@ public Builder clearQuery() {
          *
          * In the response,
          * [SearchResponse.Facet.values.value][google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue.value]
-         * will be always "1" and
+         * is always "1" and
          * [SearchResponse.Facet.values.count][google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue.count]
-         * will be the number of results that match the query.
+         * is the number of results that match the query.
          *
          * For example, you can set a customized facet for "shipToStore",
          * where
@@ -4887,7 +4887,7 @@ public Builder clearQuery() {
          * is "customizedShipToStore", and
          * [FacetKey.query][google.cloud.retail.v2beta.SearchRequest.FacetSpec.FacetKey.query]
          * is "availability: ANY(\"IN_STOCK\") AND shipToStore: ANY(\"123\")".
-         * Then the facet will count the products that are both in stock and ship
+         * Then the facet counts the products that are both in stock and ship
          * to store "123".
          * 
* @@ -5290,15 +5290,15 @@ public com.google.protobuf.ByteString getExcludedFilterKeysBytes(int index) { *
      * Enables dynamic position for this facet. If set to true, the position of
      * this facet among all facets in the response is determined by Google
-     * Retail Search. It will be ordered together with dynamic facets if dynamic
+     * Retail Search. It is ordered together with dynamic facets if dynamic
      * facets is enabled. If set to false, the position of this facet in the
-     * response will be the same as in the request, and it will be ranked before
+     * response is the same as in the request, and it is ranked before
      * the facets with dynamic position enable and all dynamic facets.
      *
      * For example, you may always want to have rating facet returned in
      * the response, but it's not necessarily to always display the rating facet
      * at the top. In that case, you can set enable_dynamic_position to true so
-     * that the position of rating facet in response will be determined by
+     * that the position of rating facet in response is determined by
      * Google Retail Search.
      *
      * Another example, assuming you have the following facets in the request:
@@ -5309,13 +5309,13 @@ public com.google.protobuf.ByteString getExcludedFilterKeysBytes(int index) {
      *
      * * "brands", enable_dynamic_position = false
      *
-     * And also you have a dynamic facets enable, which will generate a facet
-     * 'gender'. Then the final order of the facets in the response can be
+     * And also you have a dynamic facets enable, which generates a facet
+     * "gender". Then, the final order of the facets in the response can be
      * ("price", "brands", "rating", "gender") or ("price", "brands", "gender",
      * "rating") depends on how Google Retail Search orders "gender" and
-     * "rating" facets. However, notice that "price" and "brands" will always be
-     * ranked at 1st and 2nd position since their enable_dynamic_position are
-     * false.
+     * "rating" facets. However, notice that "price" and "brands" are always
+     * ranked at first and second position because their enable_dynamic_position
+     * values are false.
      * 
* * bool enable_dynamic_position = 4; @@ -6475,15 +6475,15 @@ public Builder addExcludedFilterKeysBytes(com.google.protobuf.ByteString value) *
        * Enables dynamic position for this facet. If set to true, the position of
        * this facet among all facets in the response is determined by Google
-       * Retail Search. It will be ordered together with dynamic facets if dynamic
+       * Retail Search. It is ordered together with dynamic facets if dynamic
        * facets is enabled. If set to false, the position of this facet in the
-       * response will be the same as in the request, and it will be ranked before
+       * response is the same as in the request, and it is ranked before
        * the facets with dynamic position enable and all dynamic facets.
        *
        * For example, you may always want to have rating facet returned in
        * the response, but it's not necessarily to always display the rating facet
        * at the top. In that case, you can set enable_dynamic_position to true so
-       * that the position of rating facet in response will be determined by
+       * that the position of rating facet in response is determined by
        * Google Retail Search.
        *
        * Another example, assuming you have the following facets in the request:
@@ -6494,13 +6494,13 @@ public Builder addExcludedFilterKeysBytes(com.google.protobuf.ByteString value)
        *
        * * "brands", enable_dynamic_position = false
        *
-       * And also you have a dynamic facets enable, which will generate a facet
-       * 'gender'. Then the final order of the facets in the response can be
+       * And also you have a dynamic facets enable, which generates a facet
+       * "gender". Then, the final order of the facets in the response can be
        * ("price", "brands", "rating", "gender") or ("price", "brands", "gender",
        * "rating") depends on how Google Retail Search orders "gender" and
-       * "rating" facets. However, notice that "price" and "brands" will always be
-       * ranked at 1st and 2nd position since their enable_dynamic_position are
-       * false.
+       * "rating" facets. However, notice that "price" and "brands" are always
+       * ranked at first and second position because their enable_dynamic_position
+       * values are false.
        * 
* * bool enable_dynamic_position = 4; @@ -6517,15 +6517,15 @@ public boolean getEnableDynamicPosition() { *
        * Enables dynamic position for this facet. If set to true, the position of
        * this facet among all facets in the response is determined by Google
-       * Retail Search. It will be ordered together with dynamic facets if dynamic
+       * Retail Search. It is ordered together with dynamic facets if dynamic
        * facets is enabled. If set to false, the position of this facet in the
-       * response will be the same as in the request, and it will be ranked before
+       * response is the same as in the request, and it is ranked before
        * the facets with dynamic position enable and all dynamic facets.
        *
        * For example, you may always want to have rating facet returned in
        * the response, but it's not necessarily to always display the rating facet
        * at the top. In that case, you can set enable_dynamic_position to true so
-       * that the position of rating facet in response will be determined by
+       * that the position of rating facet in response is determined by
        * Google Retail Search.
        *
        * Another example, assuming you have the following facets in the request:
@@ -6536,13 +6536,13 @@ public boolean getEnableDynamicPosition() {
        *
        * * "brands", enable_dynamic_position = false
        *
-       * And also you have a dynamic facets enable, which will generate a facet
-       * 'gender'. Then the final order of the facets in the response can be
+       * And also you have a dynamic facets enable, which generates a facet
+       * "gender". Then, the final order of the facets in the response can be
        * ("price", "brands", "rating", "gender") or ("price", "brands", "gender",
        * "rating") depends on how Google Retail Search orders "gender" and
-       * "rating" facets. However, notice that "price" and "brands" will always be
-       * ranked at 1st and 2nd position since their enable_dynamic_position are
-       * false.
+       * "rating" facets. However, notice that "price" and "brands" are always
+       * ranked at first and second position because their enable_dynamic_position
+       * values are false.
        * 
* * bool enable_dynamic_position = 4; @@ -6563,15 +6563,15 @@ public Builder setEnableDynamicPosition(boolean value) { *
        * Enables dynamic position for this facet. If set to true, the position of
        * this facet among all facets in the response is determined by Google
-       * Retail Search. It will be ordered together with dynamic facets if dynamic
+       * Retail Search. It is ordered together with dynamic facets if dynamic
        * facets is enabled. If set to false, the position of this facet in the
-       * response will be the same as in the request, and it will be ranked before
+       * response is the same as in the request, and it is ranked before
        * the facets with dynamic position enable and all dynamic facets.
        *
        * For example, you may always want to have rating facet returned in
        * the response, but it's not necessarily to always display the rating facet
        * at the top. In that case, you can set enable_dynamic_position to true so
-       * that the position of rating facet in response will be determined by
+       * that the position of rating facet in response is determined by
        * Google Retail Search.
        *
        * Another example, assuming you have the following facets in the request:
@@ -6582,13 +6582,13 @@ public Builder setEnableDynamicPosition(boolean value) {
        *
        * * "brands", enable_dynamic_position = false
        *
-       * And also you have a dynamic facets enable, which will generate a facet
-       * 'gender'. Then the final order of the facets in the response can be
+       * And also you have a dynamic facets enable, which generates a facet
+       * "gender". Then, the final order of the facets in the response can be
        * ("price", "brands", "rating", "gender") or ("price", "brands", "gender",
        * "rating") depends on how Google Retail Search orders "gender" and
-       * "rating" facets. However, notice that "price" and "brands" will always be
-       * ranked at 1st and 2nd position since their enable_dynamic_position are
-       * false.
+       * "rating" facets. However, notice that "price" and "brands" are always
+       * ranked at first and second position because their enable_dynamic_position
+       * values are false.
        * 
* * bool enable_dynamic_position = 4; @@ -12367,7 +12367,7 @@ public com.google.protobuf.Parser getParserForType() { * or the name of the legacy placement resource, such as * `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. * This field is used to identify the serving config name and the set - * of models that will be used to make the search. + * of models that are used to make the search. * * * string placement = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -12395,7 +12395,7 @@ public java.lang.String getPlacement() { * or the name of the legacy placement resource, such as * `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. * This field is used to identify the serving config name and the set - * of models that will be used to make the search. + * of models that are used to make the search. * * * string placement = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -12779,8 +12779,8 @@ public int getOffset() { *
    * The filter syntax consists of an expression language for constructing a
    * predicate from one or more fields of the products being filtered. Filter
-   * expression is case-sensitive. See more details at this [user
-   * guide](https://cloud.google.com/retail/docs/filter-and-order#filter).
+   * expression is case-sensitive. For more information, see
+   * [Filter](https://cloud.google.com/retail/docs/filter-and-order#filter).
    *
    * If this field is unrecognizable, an INVALID_ARGUMENT is returned.
    * 
@@ -12807,8 +12807,8 @@ public java.lang.String getFilter() { *
    * The filter syntax consists of an expression language for constructing a
    * predicate from one or more fields of the products being filtered. Filter
-   * expression is case-sensitive. See more details at this [user
-   * guide](https://cloud.google.com/retail/docs/filter-and-order#filter).
+   * expression is case-sensitive. For more information, see
+   * [Filter](https://cloud.google.com/retail/docs/filter-and-order#filter).
    *
    * If this field is unrecognizable, an INVALID_ARGUMENT is returned.
    * 
@@ -12842,14 +12842,14 @@ public com.google.protobuf.ByteString getFilterBytes() { * checking any filters on the search page. * * The filter applied to every search request when quality improvement such as - * query expansion is needed. For example, if a query does not have enough - * results, an expanded query with - * [SearchRequest.canonical_filter][google.cloud.retail.v2beta.SearchRequest.canonical_filter] - * will be returned as a supplement of the original query. This field is - * strongly recommended to achieve high search quality. - * - * See [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter] - * for more details about filter syntax. + * query expansion is needed. In the case a query does not have a sufficient + * amount of results this filter will be used to determine whether or not to + * enable the query expansion flow. The original filter will still be used for + * the query expanded search. + * This field is strongly recommended to achieve high search quality. + * + * For more information about filter syntax, see + * [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter]. * * * string canonical_filter = 28; @@ -12876,14 +12876,14 @@ public java.lang.String getCanonicalFilter() { * checking any filters on the search page. * * The filter applied to every search request when quality improvement such as - * query expansion is needed. For example, if a query does not have enough - * results, an expanded query with - * [SearchRequest.canonical_filter][google.cloud.retail.v2beta.SearchRequest.canonical_filter] - * will be returned as a supplement of the original query. This field is - * strongly recommended to achieve high search quality. - * - * See [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter] - * for more details about filter syntax. + * query expansion is needed. In the case a query does not have a sufficient + * amount of results this filter will be used to determine whether or not to + * enable the query expansion flow. The original filter will still be used for + * the query expanded search. + * This field is strongly recommended to achieve high search quality. + * + * For more information about filter syntax, see + * [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter]. * * * string canonical_filter = 28; @@ -12913,9 +12913,9 @@ public com.google.protobuf.ByteString getCanonicalFilterBytes() { *
    * The order in which products are returned. Products can be ordered by
    * a field in an [Product][google.cloud.retail.v2beta.Product] object. Leave
-   * it unset if ordered by relevance. OrderBy expression is case-sensitive. See
-   * more details at this [user
-   * guide](https://cloud.google.com/retail/docs/filter-and-order#order).
+   * it unset if ordered by relevance. OrderBy expression is case-sensitive. For
+   * more information, see
+   * [Order](https://cloud.google.com/retail/docs/filter-and-order#order).
    *
    * If this field is unrecognizable, an INVALID_ARGUMENT is returned.
    * 
@@ -12942,9 +12942,9 @@ public java.lang.String getOrderBy() { *
    * The order in which products are returned. Products can be ordered by
    * a field in an [Product][google.cloud.retail.v2beta.Product] object. Leave
-   * it unset if ordered by relevance. OrderBy expression is case-sensitive. See
-   * more details at this [user
-   * guide](https://cloud.google.com/retail/docs/filter-and-order#order).
+   * it unset if ordered by relevance. OrderBy expression is case-sensitive. For
+   * more information, see
+   * [Order](https://cloud.google.com/retail/docs/filter-and-order#order).
    *
    * If this field is unrecognizable, an INVALID_ARGUMENT is returned.
    * 
@@ -13136,8 +13136,8 @@ public com.google.cloud.retail.v2beta.SearchRequest.DynamicFacetSpec getDynamicF * * *
-   * Boost specification to boost certain products. See more details at this
-   * [user guide](https://cloud.google.com/retail/docs/boosting).
+   * Boost specification to boost certain products. For more information, see
+   * [Boost results](https://cloud.google.com/retail/docs/boosting).
    *
    * Notice that if both
    * [ServingConfig.boost_control_ids][google.cloud.retail.v2beta.ServingConfig.boost_control_ids]
@@ -13160,8 +13160,8 @@ public boolean hasBoostSpec() {
    *
    *
    * 
-   * Boost specification to boost certain products. See more details at this
-   * [user guide](https://cloud.google.com/retail/docs/boosting).
+   * Boost specification to boost certain products. For more information, see
+   * [Boost results](https://cloud.google.com/retail/docs/boosting).
    *
    * Notice that if both
    * [ServingConfig.boost_control_ids][google.cloud.retail.v2beta.ServingConfig.boost_control_ids]
@@ -13186,8 +13186,8 @@ public com.google.cloud.retail.v2beta.SearchRequest.BoostSpec getBoostSpec() {
    *
    *
    * 
-   * Boost specification to boost certain products. See more details at this
-   * [user guide](https://cloud.google.com/retail/docs/boosting).
+   * Boost specification to boost certain products. For more information, see
+   * [Boost results](https://cloud.google.com/retail/docs/boosting).
    *
    * Notice that if both
    * [ServingConfig.boost_control_ids][google.cloud.retail.v2beta.ServingConfig.boost_control_ids]
@@ -13214,8 +13214,8 @@ public com.google.cloud.retail.v2beta.SearchRequest.BoostSpecOrBuilder getBoostS
    *
    * 
    * The query expansion specification that specifies the conditions under which
-   * query expansion will occur. See more details at this [user
-   * guide](https://cloud.google.com/retail/docs/result-size#query_expansion).
+   * query expansion occurs. For more information, see [Query
+   * expansion](https://cloud.google.com/retail/docs/result-size#query_expansion).
    * 
* * .google.cloud.retail.v2beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 14; @@ -13232,8 +13232,8 @@ public boolean hasQueryExpansionSpec() { * *
    * The query expansion specification that specifies the conditions under which
-   * query expansion will occur. See more details at this [user
-   * guide](https://cloud.google.com/retail/docs/result-size#query_expansion).
+   * query expansion occurs. For more information, see [Query
+   * expansion](https://cloud.google.com/retail/docs/result-size#query_expansion).
    * 
* * .google.cloud.retail.v2beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 14; @@ -13252,8 +13252,8 @@ public com.google.cloud.retail.v2beta.SearchRequest.QueryExpansionSpec getQueryE * *
    * The query expansion specification that specifies the conditions under which
-   * query expansion will occur. See more details at this [user
-   * guide](https://cloud.google.com/retail/docs/result-size#query_expansion).
+   * query expansion occurs. For more information, see [Query
+   * expansion](https://cloud.google.com/retail/docs/result-size#query_expansion).
    * 
* * .google.cloud.retail.v2beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 14; @@ -13879,9 +13879,9 @@ public int getLabelsCount() { * key with multiple resources. * * Keys must start with a lowercase letter or international character. * - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. + * For more information, see [Requirements for + * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + * in the Resource Manager documentation. *
* * map<string, string> labels = 34; @@ -13917,9 +13917,9 @@ public java.util.Map getLabels() { * key with multiple resources. * * Keys must start with a lowercase letter or international character. * - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. + * For more information, see [Requirements for + * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + * in the Resource Manager documentation. *
* * map<string, string> labels = 34; @@ -13946,9 +13946,9 @@ public java.util.Map getLabelsMap() { * key with multiple resources. * * Keys must start with a lowercase letter or international character. * - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. + * For more information, see [Requirements for + * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + * in the Resource Manager documentation. *
* * map<string, string> labels = 34; @@ -13982,9 +13982,9 @@ public java.util.Map getLabelsMap() { * key with multiple resources. * * Keys must start with a lowercase letter or international character. * - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. + * For more information, see [Requirements for + * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + * in the Resource Manager documentation. * * * map<string, string> labels = 34; @@ -15168,7 +15168,7 @@ public Builder mergeFrom( * or the name of the legacy placement resource, such as * `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. * This field is used to identify the serving config name and the set - * of models that will be used to make the search. + * of models that are used to make the search. * * * string placement = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -15195,7 +15195,7 @@ public java.lang.String getPlacement() { * or the name of the legacy placement resource, such as * `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. * This field is used to identify the serving config name and the set - * of models that will be used to make the search. + * of models that are used to make the search. * * * string placement = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -15222,7 +15222,7 @@ public com.google.protobuf.ByteString getPlacementBytes() { * or the name of the legacy placement resource, such as * `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. * This field is used to identify the serving config name and the set - * of models that will be used to make the search. + * of models that are used to make the search. * * * string placement = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -15248,7 +15248,7 @@ public Builder setPlacement(java.lang.String value) { * or the name of the legacy placement resource, such as * `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. * This field is used to identify the serving config name and the set - * of models that will be used to make the search. + * of models that are used to make the search. * * * string placement = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -15270,7 +15270,7 @@ public Builder clearPlacement() { * or the name of the legacy placement resource, such as * `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. * This field is used to identify the serving config name and the set - * of models that will be used to make the search. + * of models that are used to make the search. * * * string placement = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -16176,8 +16176,8 @@ public Builder clearOffset() { *
      * The filter syntax consists of an expression language for constructing a
      * predicate from one or more fields of the products being filtered. Filter
-     * expression is case-sensitive. See more details at this [user
-     * guide](https://cloud.google.com/retail/docs/filter-and-order#filter).
+     * expression is case-sensitive. For more information, see
+     * [Filter](https://cloud.google.com/retail/docs/filter-and-order#filter).
      *
      * If this field is unrecognizable, an INVALID_ARGUMENT is returned.
      * 
@@ -16203,8 +16203,8 @@ public java.lang.String getFilter() { *
      * The filter syntax consists of an expression language for constructing a
      * predicate from one or more fields of the products being filtered. Filter
-     * expression is case-sensitive. See more details at this [user
-     * guide](https://cloud.google.com/retail/docs/filter-and-order#filter).
+     * expression is case-sensitive. For more information, see
+     * [Filter](https://cloud.google.com/retail/docs/filter-and-order#filter).
      *
      * If this field is unrecognizable, an INVALID_ARGUMENT is returned.
      * 
@@ -16230,8 +16230,8 @@ public com.google.protobuf.ByteString getFilterBytes() { *
      * The filter syntax consists of an expression language for constructing a
      * predicate from one or more fields of the products being filtered. Filter
-     * expression is case-sensitive. See more details at this [user
-     * guide](https://cloud.google.com/retail/docs/filter-and-order#filter).
+     * expression is case-sensitive. For more information, see
+     * [Filter](https://cloud.google.com/retail/docs/filter-and-order#filter).
      *
      * If this field is unrecognizable, an INVALID_ARGUMENT is returned.
      * 
@@ -16256,8 +16256,8 @@ public Builder setFilter(java.lang.String value) { *
      * The filter syntax consists of an expression language for constructing a
      * predicate from one or more fields of the products being filtered. Filter
-     * expression is case-sensitive. See more details at this [user
-     * guide](https://cloud.google.com/retail/docs/filter-and-order#filter).
+     * expression is case-sensitive. For more information, see
+     * [Filter](https://cloud.google.com/retail/docs/filter-and-order#filter).
      *
      * If this field is unrecognizable, an INVALID_ARGUMENT is returned.
      * 
@@ -16278,8 +16278,8 @@ public Builder clearFilter() { *
      * The filter syntax consists of an expression language for constructing a
      * predicate from one or more fields of the products being filtered. Filter
-     * expression is case-sensitive. See more details at this [user
-     * guide](https://cloud.google.com/retail/docs/filter-and-order#filter).
+     * expression is case-sensitive. For more information, see
+     * [Filter](https://cloud.google.com/retail/docs/filter-and-order#filter).
      *
      * If this field is unrecognizable, an INVALID_ARGUMENT is returned.
      * 
@@ -16309,14 +16309,14 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * checking any filters on the search page. * * The filter applied to every search request when quality improvement such as - * query expansion is needed. For example, if a query does not have enough - * results, an expanded query with - * [SearchRequest.canonical_filter][google.cloud.retail.v2beta.SearchRequest.canonical_filter] - * will be returned as a supplement of the original query. This field is - * strongly recommended to achieve high search quality. - * - * See [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter] - * for more details about filter syntax. + * query expansion is needed. In the case a query does not have a sufficient + * amount of results this filter will be used to determine whether or not to + * enable the query expansion flow. The original filter will still be used for + * the query expanded search. + * This field is strongly recommended to achieve high search quality. + * + * For more information about filter syntax, see + * [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter]. * * * string canonical_filter = 28; @@ -16342,14 +16342,14 @@ public java.lang.String getCanonicalFilter() { * checking any filters on the search page. * * The filter applied to every search request when quality improvement such as - * query expansion is needed. For example, if a query does not have enough - * results, an expanded query with - * [SearchRequest.canonical_filter][google.cloud.retail.v2beta.SearchRequest.canonical_filter] - * will be returned as a supplement of the original query. This field is - * strongly recommended to achieve high search quality. - * - * See [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter] - * for more details about filter syntax. + * query expansion is needed. In the case a query does not have a sufficient + * amount of results this filter will be used to determine whether or not to + * enable the query expansion flow. The original filter will still be used for + * the query expanded search. + * This field is strongly recommended to achieve high search quality. + * + * For more information about filter syntax, see + * [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter]. * * * string canonical_filter = 28; @@ -16375,14 +16375,14 @@ public com.google.protobuf.ByteString getCanonicalFilterBytes() { * checking any filters on the search page. * * The filter applied to every search request when quality improvement such as - * query expansion is needed. For example, if a query does not have enough - * results, an expanded query with - * [SearchRequest.canonical_filter][google.cloud.retail.v2beta.SearchRequest.canonical_filter] - * will be returned as a supplement of the original query. This field is - * strongly recommended to achieve high search quality. - * - * See [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter] - * for more details about filter syntax. + * query expansion is needed. In the case a query does not have a sufficient + * amount of results this filter will be used to determine whether or not to + * enable the query expansion flow. The original filter will still be used for + * the query expanded search. + * This field is strongly recommended to achieve high search quality. + * + * For more information about filter syntax, see + * [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter]. * * * string canonical_filter = 28; @@ -16407,14 +16407,14 @@ public Builder setCanonicalFilter(java.lang.String value) { * checking any filters on the search page. * * The filter applied to every search request when quality improvement such as - * query expansion is needed. For example, if a query does not have enough - * results, an expanded query with - * [SearchRequest.canonical_filter][google.cloud.retail.v2beta.SearchRequest.canonical_filter] - * will be returned as a supplement of the original query. This field is - * strongly recommended to achieve high search quality. - * - * See [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter] - * for more details about filter syntax. + * query expansion is needed. In the case a query does not have a sufficient + * amount of results this filter will be used to determine whether or not to + * enable the query expansion flow. The original filter will still be used for + * the query expanded search. + * This field is strongly recommended to achieve high search quality. + * + * For more information about filter syntax, see + * [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter]. * * * string canonical_filter = 28; @@ -16435,14 +16435,14 @@ public Builder clearCanonicalFilter() { * checking any filters on the search page. * * The filter applied to every search request when quality improvement such as - * query expansion is needed. For example, if a query does not have enough - * results, an expanded query with - * [SearchRequest.canonical_filter][google.cloud.retail.v2beta.SearchRequest.canonical_filter] - * will be returned as a supplement of the original query. This field is - * strongly recommended to achieve high search quality. - * - * See [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter] - * for more details about filter syntax. + * query expansion is needed. In the case a query does not have a sufficient + * amount of results this filter will be used to determine whether or not to + * enable the query expansion flow. The original filter will still be used for + * the query expanded search. + * This field is strongly recommended to achieve high search quality. + * + * For more information about filter syntax, see + * [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter]. * * * string canonical_filter = 28; @@ -16468,9 +16468,9 @@ public Builder setCanonicalFilterBytes(com.google.protobuf.ByteString value) { *
      * The order in which products are returned. Products can be ordered by
      * a field in an [Product][google.cloud.retail.v2beta.Product] object. Leave
-     * it unset if ordered by relevance. OrderBy expression is case-sensitive. See
-     * more details at this [user
-     * guide](https://cloud.google.com/retail/docs/filter-and-order#order).
+     * it unset if ordered by relevance. OrderBy expression is case-sensitive. For
+     * more information, see
+     * [Order](https://cloud.google.com/retail/docs/filter-and-order#order).
      *
      * If this field is unrecognizable, an INVALID_ARGUMENT is returned.
      * 
@@ -16496,9 +16496,9 @@ public java.lang.String getOrderBy() { *
      * The order in which products are returned. Products can be ordered by
      * a field in an [Product][google.cloud.retail.v2beta.Product] object. Leave
-     * it unset if ordered by relevance. OrderBy expression is case-sensitive. See
-     * more details at this [user
-     * guide](https://cloud.google.com/retail/docs/filter-and-order#order).
+     * it unset if ordered by relevance. OrderBy expression is case-sensitive. For
+     * more information, see
+     * [Order](https://cloud.google.com/retail/docs/filter-and-order#order).
      *
      * If this field is unrecognizable, an INVALID_ARGUMENT is returned.
      * 
@@ -16524,9 +16524,9 @@ public com.google.protobuf.ByteString getOrderByBytes() { *
      * The order in which products are returned. Products can be ordered by
      * a field in an [Product][google.cloud.retail.v2beta.Product] object. Leave
-     * it unset if ordered by relevance. OrderBy expression is case-sensitive. See
-     * more details at this [user
-     * guide](https://cloud.google.com/retail/docs/filter-and-order#order).
+     * it unset if ordered by relevance. OrderBy expression is case-sensitive. For
+     * more information, see
+     * [Order](https://cloud.google.com/retail/docs/filter-and-order#order).
      *
      * If this field is unrecognizable, an INVALID_ARGUMENT is returned.
      * 
@@ -16551,9 +16551,9 @@ public Builder setOrderBy(java.lang.String value) { *
      * The order in which products are returned. Products can be ordered by
      * a field in an [Product][google.cloud.retail.v2beta.Product] object. Leave
-     * it unset if ordered by relevance. OrderBy expression is case-sensitive. See
-     * more details at this [user
-     * guide](https://cloud.google.com/retail/docs/filter-and-order#order).
+     * it unset if ordered by relevance. OrderBy expression is case-sensitive. For
+     * more information, see
+     * [Order](https://cloud.google.com/retail/docs/filter-and-order#order).
      *
      * If this field is unrecognizable, an INVALID_ARGUMENT is returned.
      * 
@@ -16574,9 +16574,9 @@ public Builder clearOrderBy() { *
      * The order in which products are returned. Products can be ordered by
      * a field in an [Product][google.cloud.retail.v2beta.Product] object. Leave
-     * it unset if ordered by relevance. OrderBy expression is case-sensitive. See
-     * more details at this [user
-     * guide](https://cloud.google.com/retail/docs/filter-and-order#order).
+     * it unset if ordered by relevance. OrderBy expression is case-sensitive. For
+     * more information, see
+     * [Order](https://cloud.google.com/retail/docs/filter-and-order#order).
      *
      * If this field is unrecognizable, an INVALID_ARGUMENT is returned.
      * 
@@ -17279,8 +17279,8 @@ public Builder clearDynamicFacetSpec() { * * *
-     * Boost specification to boost certain products. See more details at this
-     * [user guide](https://cloud.google.com/retail/docs/boosting).
+     * Boost specification to boost certain products. For more information, see
+     * [Boost results](https://cloud.google.com/retail/docs/boosting).
      *
      * Notice that if both
      * [ServingConfig.boost_control_ids][google.cloud.retail.v2beta.ServingConfig.boost_control_ids]
@@ -17302,8 +17302,8 @@ public boolean hasBoostSpec() {
      *
      *
      * 
-     * Boost specification to boost certain products. See more details at this
-     * [user guide](https://cloud.google.com/retail/docs/boosting).
+     * Boost specification to boost certain products. For more information, see
+     * [Boost results](https://cloud.google.com/retail/docs/boosting).
      *
      * Notice that if both
      * [ServingConfig.boost_control_ids][google.cloud.retail.v2beta.ServingConfig.boost_control_ids]
@@ -17331,8 +17331,8 @@ public com.google.cloud.retail.v2beta.SearchRequest.BoostSpec getBoostSpec() {
      *
      *
      * 
-     * Boost specification to boost certain products. See more details at this
-     * [user guide](https://cloud.google.com/retail/docs/boosting).
+     * Boost specification to boost certain products. For more information, see
+     * [Boost results](https://cloud.google.com/retail/docs/boosting).
      *
      * Notice that if both
      * [ServingConfig.boost_control_ids][google.cloud.retail.v2beta.ServingConfig.boost_control_ids]
@@ -17362,8 +17362,8 @@ public Builder setBoostSpec(com.google.cloud.retail.v2beta.SearchRequest.BoostSp
      *
      *
      * 
-     * Boost specification to boost certain products. See more details at this
-     * [user guide](https://cloud.google.com/retail/docs/boosting).
+     * Boost specification to boost certain products. For more information, see
+     * [Boost results](https://cloud.google.com/retail/docs/boosting).
      *
      * Notice that if both
      * [ServingConfig.boost_control_ids][google.cloud.retail.v2beta.ServingConfig.boost_control_ids]
@@ -17391,8 +17391,8 @@ public Builder setBoostSpec(
      *
      *
      * 
-     * Boost specification to boost certain products. See more details at this
-     * [user guide](https://cloud.google.com/retail/docs/boosting).
+     * Boost specification to boost certain products. For more information, see
+     * [Boost results](https://cloud.google.com/retail/docs/boosting).
      *
      * Notice that if both
      * [ServingConfig.boost_control_ids][google.cloud.retail.v2beta.ServingConfig.boost_control_ids]
@@ -17428,8 +17428,8 @@ public Builder mergeBoostSpec(com.google.cloud.retail.v2beta.SearchRequest.Boost
      *
      *
      * 
-     * Boost specification to boost certain products. See more details at this
-     * [user guide](https://cloud.google.com/retail/docs/boosting).
+     * Boost specification to boost certain products. For more information, see
+     * [Boost results](https://cloud.google.com/retail/docs/boosting).
      *
      * Notice that if both
      * [ServingConfig.boost_control_ids][google.cloud.retail.v2beta.ServingConfig.boost_control_ids]
@@ -17456,8 +17456,8 @@ public Builder clearBoostSpec() {
      *
      *
      * 
-     * Boost specification to boost certain products. See more details at this
-     * [user guide](https://cloud.google.com/retail/docs/boosting).
+     * Boost specification to boost certain products. For more information, see
+     * [Boost results](https://cloud.google.com/retail/docs/boosting).
      *
      * Notice that if both
      * [ServingConfig.boost_control_ids][google.cloud.retail.v2beta.ServingConfig.boost_control_ids]
@@ -17479,8 +17479,8 @@ public com.google.cloud.retail.v2beta.SearchRequest.BoostSpec.Builder getBoostSp
      *
      *
      * 
-     * Boost specification to boost certain products. See more details at this
-     * [user guide](https://cloud.google.com/retail/docs/boosting).
+     * Boost specification to boost certain products. For more information, see
+     * [Boost results](https://cloud.google.com/retail/docs/boosting).
      *
      * Notice that if both
      * [ServingConfig.boost_control_ids][google.cloud.retail.v2beta.ServingConfig.boost_control_ids]
@@ -17506,8 +17506,8 @@ public com.google.cloud.retail.v2beta.SearchRequest.BoostSpecOrBuilder getBoostS
      *
      *
      * 
-     * Boost specification to boost certain products. See more details at this
-     * [user guide](https://cloud.google.com/retail/docs/boosting).
+     * Boost specification to boost certain products. For more information, see
+     * [Boost results](https://cloud.google.com/retail/docs/boosting).
      *
      * Notice that if both
      * [ServingConfig.boost_control_ids][google.cloud.retail.v2beta.ServingConfig.boost_control_ids]
@@ -17548,8 +17548,8 @@ public com.google.cloud.retail.v2beta.SearchRequest.BoostSpecOrBuilder getBoostS
      *
      * 
      * The query expansion specification that specifies the conditions under which
-     * query expansion will occur. See more details at this [user
-     * guide](https://cloud.google.com/retail/docs/result-size#query_expansion).
+     * query expansion occurs. For more information, see [Query
+     * expansion](https://cloud.google.com/retail/docs/result-size#query_expansion).
      * 
* * .google.cloud.retail.v2beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 14; @@ -17565,8 +17565,8 @@ public boolean hasQueryExpansionSpec() { * *
      * The query expansion specification that specifies the conditions under which
-     * query expansion will occur. See more details at this [user
-     * guide](https://cloud.google.com/retail/docs/result-size#query_expansion).
+     * query expansion occurs. For more information, see [Query
+     * expansion](https://cloud.google.com/retail/docs/result-size#query_expansion).
      * 
* * .google.cloud.retail.v2beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 14; @@ -17588,8 +17588,8 @@ public com.google.cloud.retail.v2beta.SearchRequest.QueryExpansionSpec getQueryE * *
      * The query expansion specification that specifies the conditions under which
-     * query expansion will occur. See more details at this [user
-     * guide](https://cloud.google.com/retail/docs/result-size#query_expansion).
+     * query expansion occurs. For more information, see [Query
+     * expansion](https://cloud.google.com/retail/docs/result-size#query_expansion).
      * 
* * .google.cloud.retail.v2beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 14; @@ -17614,8 +17614,8 @@ public Builder setQueryExpansionSpec( * *
      * The query expansion specification that specifies the conditions under which
-     * query expansion will occur. See more details at this [user
-     * guide](https://cloud.google.com/retail/docs/result-size#query_expansion).
+     * query expansion occurs. For more information, see [Query
+     * expansion](https://cloud.google.com/retail/docs/result-size#query_expansion).
      * 
* * .google.cloud.retail.v2beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 14; @@ -17637,8 +17637,8 @@ public Builder setQueryExpansionSpec( * *
      * The query expansion specification that specifies the conditions under which
-     * query expansion will occur. See more details at this [user
-     * guide](https://cloud.google.com/retail/docs/result-size#query_expansion).
+     * query expansion occurs. For more information, see [Query
+     * expansion](https://cloud.google.com/retail/docs/result-size#query_expansion).
      * 
* * .google.cloud.retail.v2beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 14; @@ -17670,8 +17670,8 @@ public Builder mergeQueryExpansionSpec( * *
      * The query expansion specification that specifies the conditions under which
-     * query expansion will occur. See more details at this [user
-     * guide](https://cloud.google.com/retail/docs/result-size#query_expansion).
+     * query expansion occurs. For more information, see [Query
+     * expansion](https://cloud.google.com/retail/docs/result-size#query_expansion).
      * 
* * .google.cloud.retail.v2beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 14; @@ -17692,8 +17692,8 @@ public Builder clearQueryExpansionSpec() { * *
      * The query expansion specification that specifies the conditions under which
-     * query expansion will occur. See more details at this [user
-     * guide](https://cloud.google.com/retail/docs/result-size#query_expansion).
+     * query expansion occurs. For more information, see [Query
+     * expansion](https://cloud.google.com/retail/docs/result-size#query_expansion).
      * 
* * .google.cloud.retail.v2beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 14; @@ -17710,8 +17710,8 @@ public Builder clearQueryExpansionSpec() { * *
      * The query expansion specification that specifies the conditions under which
-     * query expansion will occur. See more details at this [user
-     * guide](https://cloud.google.com/retail/docs/result-size#query_expansion).
+     * query expansion occurs. For more information, see [Query
+     * expansion](https://cloud.google.com/retail/docs/result-size#query_expansion).
      * 
* * .google.cloud.retail.v2beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 14; @@ -17732,8 +17732,8 @@ public Builder clearQueryExpansionSpec() { * *
      * The query expansion specification that specifies the conditions under which
-     * query expansion will occur. See more details at this [user
-     * guide](https://cloud.google.com/retail/docs/result-size#query_expansion).
+     * query expansion occurs. For more information, see [Query
+     * expansion](https://cloud.google.com/retail/docs/result-size#query_expansion).
      * 
* * .google.cloud.retail.v2beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 14; @@ -19256,9 +19256,9 @@ public int getLabelsCount() { * key with multiple resources. * * Keys must start with a lowercase letter or international character. * - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. + * For more information, see [Requirements for + * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + * in the Resource Manager documentation. *
* * map<string, string> labels = 34; @@ -19294,9 +19294,9 @@ public java.util.Map getLabels() { * key with multiple resources. * * Keys must start with a lowercase letter or international character. * - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. + * For more information, see [Requirements for + * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + * in the Resource Manager documentation. *
* * map<string, string> labels = 34; @@ -19323,9 +19323,9 @@ public java.util.Map getLabelsMap() { * key with multiple resources. * * Keys must start with a lowercase letter or international character. * - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. + * For more information, see [Requirements for + * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + * in the Resource Manager documentation. *
* * map<string, string> labels = 34; @@ -19359,9 +19359,9 @@ public java.util.Map getLabelsMap() { * key with multiple resources. * * Keys must start with a lowercase letter or international character. * - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. + * For more information, see [Requirements for + * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + * in the Resource Manager documentation. *
* * map<string, string> labels = 34; @@ -19401,9 +19401,9 @@ public Builder clearLabels() { * key with multiple resources. * * Keys must start with a lowercase letter or international character. * - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. + * For more information, see [Requirements for + * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + * in the Resource Manager documentation. *
* * map<string, string> labels = 34; @@ -19439,9 +19439,9 @@ public java.util.Map getMutableLabels() { * key with multiple resources. * * Keys must start with a lowercase letter or international character. * - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. + * For more information, see [Requirements for + * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + * in the Resource Manager documentation. *
* * map<string, string> labels = 34; @@ -19475,9 +19475,9 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { * key with multiple resources. * * Keys must start with a lowercase letter or international character. * - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. + * For more information, see [Requirements for + * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + * in the Resource Manager documentation. *
* * map<string, string> labels = 34; diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/SearchRequestOrBuilder.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/SearchRequestOrBuilder.java index 0e271d132b4c..eff549abb619 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/SearchRequestOrBuilder.java +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/SearchRequestOrBuilder.java @@ -33,7 +33,7 @@ public interface SearchRequestOrBuilder * or the name of the legacy placement resource, such as * `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. * This field is used to identify the serving config name and the set - * of models that will be used to make the search. + * of models that are used to make the search. *
* * string placement = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -50,7 +50,7 @@ public interface SearchRequestOrBuilder * or the name of the legacy placement resource, such as * `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. * This field is used to identify the serving config name and the set - * of models that will be used to make the search. + * of models that are used to make the search. *
* * string placement = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -290,8 +290,8 @@ public interface SearchRequestOrBuilder *
    * The filter syntax consists of an expression language for constructing a
    * predicate from one or more fields of the products being filtered. Filter
-   * expression is case-sensitive. See more details at this [user
-   * guide](https://cloud.google.com/retail/docs/filter-and-order#filter).
+   * expression is case-sensitive. For more information, see
+   * [Filter](https://cloud.google.com/retail/docs/filter-and-order#filter).
    *
    * If this field is unrecognizable, an INVALID_ARGUMENT is returned.
    * 
@@ -307,8 +307,8 @@ public interface SearchRequestOrBuilder *
    * The filter syntax consists of an expression language for constructing a
    * predicate from one or more fields of the products being filtered. Filter
-   * expression is case-sensitive. See more details at this [user
-   * guide](https://cloud.google.com/retail/docs/filter-and-order#filter).
+   * expression is case-sensitive. For more information, see
+   * [Filter](https://cloud.google.com/retail/docs/filter-and-order#filter).
    *
    * If this field is unrecognizable, an INVALID_ARGUMENT is returned.
    * 
@@ -327,14 +327,14 @@ public interface SearchRequestOrBuilder * checking any filters on the search page. * * The filter applied to every search request when quality improvement such as - * query expansion is needed. For example, if a query does not have enough - * results, an expanded query with - * [SearchRequest.canonical_filter][google.cloud.retail.v2beta.SearchRequest.canonical_filter] - * will be returned as a supplement of the original query. This field is - * strongly recommended to achieve high search quality. - * - * See [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter] - * for more details about filter syntax. + * query expansion is needed. In the case a query does not have a sufficient + * amount of results this filter will be used to determine whether or not to + * enable the query expansion flow. The original filter will still be used for + * the query expanded search. + * This field is strongly recommended to achieve high search quality. + * + * For more information about filter syntax, see + * [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter]. * * * string canonical_filter = 28; @@ -350,14 +350,14 @@ public interface SearchRequestOrBuilder * checking any filters on the search page. * * The filter applied to every search request when quality improvement such as - * query expansion is needed. For example, if a query does not have enough - * results, an expanded query with - * [SearchRequest.canonical_filter][google.cloud.retail.v2beta.SearchRequest.canonical_filter] - * will be returned as a supplement of the original query. This field is - * strongly recommended to achieve high search quality. - * - * See [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter] - * for more details about filter syntax. + * query expansion is needed. In the case a query does not have a sufficient + * amount of results this filter will be used to determine whether or not to + * enable the query expansion flow. The original filter will still be used for + * the query expanded search. + * This field is strongly recommended to achieve high search quality. + * + * For more information about filter syntax, see + * [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter]. * * * string canonical_filter = 28; @@ -372,9 +372,9 @@ public interface SearchRequestOrBuilder *
    * The order in which products are returned. Products can be ordered by
    * a field in an [Product][google.cloud.retail.v2beta.Product] object. Leave
-   * it unset if ordered by relevance. OrderBy expression is case-sensitive. See
-   * more details at this [user
-   * guide](https://cloud.google.com/retail/docs/filter-and-order#order).
+   * it unset if ordered by relevance. OrderBy expression is case-sensitive. For
+   * more information, see
+   * [Order](https://cloud.google.com/retail/docs/filter-and-order#order).
    *
    * If this field is unrecognizable, an INVALID_ARGUMENT is returned.
    * 
@@ -390,9 +390,9 @@ public interface SearchRequestOrBuilder *
    * The order in which products are returned. Products can be ordered by
    * a field in an [Product][google.cloud.retail.v2beta.Product] object. Leave
-   * it unset if ordered by relevance. OrderBy expression is case-sensitive. See
-   * more details at this [user
-   * guide](https://cloud.google.com/retail/docs/filter-and-order#order).
+   * it unset if ordered by relevance. OrderBy expression is case-sensitive. For
+   * more information, see
+   * [Order](https://cloud.google.com/retail/docs/filter-and-order#order).
    *
    * If this field is unrecognizable, an INVALID_ARGUMENT is returned.
    * 
@@ -535,8 +535,8 @@ public interface SearchRequestOrBuilder * * *
-   * Boost specification to boost certain products. See more details at this
-   * [user guide](https://cloud.google.com/retail/docs/boosting).
+   * Boost specification to boost certain products. For more information, see
+   * [Boost results](https://cloud.google.com/retail/docs/boosting).
    *
    * Notice that if both
    * [ServingConfig.boost_control_ids][google.cloud.retail.v2beta.ServingConfig.boost_control_ids]
@@ -556,8 +556,8 @@ public interface SearchRequestOrBuilder
    *
    *
    * 
-   * Boost specification to boost certain products. See more details at this
-   * [user guide](https://cloud.google.com/retail/docs/boosting).
+   * Boost specification to boost certain products. For more information, see
+   * [Boost results](https://cloud.google.com/retail/docs/boosting).
    *
    * Notice that if both
    * [ServingConfig.boost_control_ids][google.cloud.retail.v2beta.ServingConfig.boost_control_ids]
@@ -577,8 +577,8 @@ public interface SearchRequestOrBuilder
    *
    *
    * 
-   * Boost specification to boost certain products. See more details at this
-   * [user guide](https://cloud.google.com/retail/docs/boosting).
+   * Boost specification to boost certain products. For more information, see
+   * [Boost results](https://cloud.google.com/retail/docs/boosting).
    *
    * Notice that if both
    * [ServingConfig.boost_control_ids][google.cloud.retail.v2beta.ServingConfig.boost_control_ids]
@@ -598,8 +598,8 @@ public interface SearchRequestOrBuilder
    *
    * 
    * The query expansion specification that specifies the conditions under which
-   * query expansion will occur. See more details at this [user
-   * guide](https://cloud.google.com/retail/docs/result-size#query_expansion).
+   * query expansion occurs. For more information, see [Query
+   * expansion](https://cloud.google.com/retail/docs/result-size#query_expansion).
    * 
* * .google.cloud.retail.v2beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 14; @@ -613,8 +613,8 @@ public interface SearchRequestOrBuilder * *
    * The query expansion specification that specifies the conditions under which
-   * query expansion will occur. See more details at this [user
-   * guide](https://cloud.google.com/retail/docs/result-size#query_expansion).
+   * query expansion occurs. For more information, see [Query
+   * expansion](https://cloud.google.com/retail/docs/result-size#query_expansion).
    * 
* * .google.cloud.retail.v2beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 14; @@ -628,8 +628,8 @@ public interface SearchRequestOrBuilder * *
    * The query expansion specification that specifies the conditions under which
-   * query expansion will occur. See more details at this [user
-   * guide](https://cloud.google.com/retail/docs/result-size#query_expansion).
+   * query expansion occurs. For more information, see [Query
+   * expansion](https://cloud.google.com/retail/docs/result-size#query_expansion).
    * 
* * .google.cloud.retail.v2beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 14; @@ -1171,9 +1171,9 @@ public interface SearchRequestOrBuilder * key with multiple resources. * * Keys must start with a lowercase letter or international character. * - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. + * For more information, see [Requirements for + * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + * in the Resource Manager documentation. *
* * map<string, string> labels = 34; @@ -1197,9 +1197,9 @@ public interface SearchRequestOrBuilder * key with multiple resources. * * Keys must start with a lowercase letter or international character. * - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. + * For more information, see [Requirements for + * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + * in the Resource Manager documentation. *
* * map<string, string> labels = 34; @@ -1226,9 +1226,9 @@ public interface SearchRequestOrBuilder * key with multiple resources. * * Keys must start with a lowercase letter or international character. * - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. + * For more information, see [Requirements for + * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + * in the Resource Manager documentation. *
* * map<string, string> labels = 34; @@ -1252,9 +1252,9 @@ public interface SearchRequestOrBuilder * key with multiple resources. * * Keys must start with a lowercase letter or international character. * - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. + * For more information, see [Requirements for + * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + * in the Resource Manager documentation. * * * map<string, string> labels = 34; @@ -1282,9 +1282,9 @@ java.lang.String getLabelsOrDefault( * key with multiple resources. * * Keys must start with a lowercase letter or international character. * - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. + * For more information, see [Requirements for + * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + * in the Resource Manager documentation. * * * map<string, string> labels = 34; diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ServingConfig.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ServingConfig.java index 3be3eead3858..4b4a86add80d 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ServingConfig.java +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ServingConfig.java @@ -1690,6 +1690,25 @@ public com.google.protobuf.ByteString getEnableCategoryFilterLevelBytes() { } } + public static final int IGNORE_RECS_DENYLIST_FIELD_NUMBER = 24; + private boolean ignoreRecsDenylist_ = false; + /** + * + * + *
+   * When the flag is enabled, the products in the denylist will not be filtered
+   * out in the recommendation filtering results.
+   * 
+ * + * bool ignore_recs_denylist = 24; + * + * @return The ignoreRecsDenylist. + */ + @java.lang.Override + public boolean getIgnoreRecsDenylist() { + return ignoreRecsDenylist_; + } + public static final int PERSONALIZATION_SPEC_FIELD_NUMBER = 21; private com.google.cloud.retail.v2beta.SearchRequest.PersonalizationSpec personalizationSpec_; /** @@ -1983,6 +2002,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(21, getPersonalizationSpec()); } + if (ignoreRecsDenylist_ != false) { + output.writeBool(24, ignoreRecsDenylist_); + } getUnknownFields().writeTo(output); } @@ -2108,6 +2130,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getPersonalizationSpec()); } + if (ignoreRecsDenylist_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(24, ignoreRecsDenylist_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2147,6 +2172,7 @@ public boolean equals(final java.lang.Object obj) { if (!getDiversityLevel().equals(other.getDiversityLevel())) return false; if (diversityType_ != other.diversityType_) return false; if (!getEnableCategoryFilterLevel().equals(other.getEnableCategoryFilterLevel())) return false; + if (getIgnoreRecsDenylist() != other.getIgnoreRecsDenylist()) return false; if (hasPersonalizationSpec() != other.hasPersonalizationSpec()) return false; if (hasPersonalizationSpec()) { if (!getPersonalizationSpec().equals(other.getPersonalizationSpec())) return false; @@ -2217,6 +2243,8 @@ public int hashCode() { hash = (53 * hash) + diversityType_; hash = (37 * hash) + ENABLE_CATEGORY_FILTER_LEVEL_FIELD_NUMBER; hash = (53 * hash) + getEnableCategoryFilterLevel().hashCode(); + hash = (37 * hash) + IGNORE_RECS_DENYLIST_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIgnoreRecsDenylist()); if (hasPersonalizationSpec()) { hash = (37 * hash) + PERSONALIZATION_SPEC_FIELD_NUMBER; hash = (53 * hash) + getPersonalizationSpec().hashCode(); @@ -2396,13 +2424,14 @@ public Builder clear() { diversityLevel_ = ""; diversityType_ = 0; enableCategoryFilterLevel_ = ""; + ignoreRecsDenylist_ = false; personalizationSpec_ = null; if (personalizationSpecBuilder_ != null) { personalizationSpecBuilder_.dispose(); personalizationSpecBuilder_ = null; } solutionTypes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); return this; } @@ -2439,9 +2468,9 @@ public com.google.cloud.retail.v2beta.ServingConfig buildPartial() { } private void buildPartialRepeatedFields(com.google.cloud.retail.v2beta.ServingConfig result) { - if (((bitField0_ & 0x00040000) != 0)) { + if (((bitField0_ & 0x00080000) != 0)) { solutionTypes_ = java.util.Collections.unmodifiableList(solutionTypes_); - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); } result.solutionTypes_ = solutionTypes_; } @@ -2512,6 +2541,9 @@ private void buildPartial0(com.google.cloud.retail.v2beta.ServingConfig result) result.enableCategoryFilterLevel_ = enableCategoryFilterLevel_; } if (((from_bitField0_ & 0x00020000) != 0)) { + result.ignoreRecsDenylist_ = ignoreRecsDenylist_; + } + if (((from_bitField0_ & 0x00040000) != 0)) { result.personalizationSpec_ = personalizationSpecBuilder_ == null ? personalizationSpec_ @@ -2692,13 +2724,16 @@ public Builder mergeFrom(com.google.cloud.retail.v2beta.ServingConfig other) { bitField0_ |= 0x00010000; onChanged(); } + if (other.getIgnoreRecsDenylist() != false) { + setIgnoreRecsDenylist(other.getIgnoreRecsDenylist()); + } if (other.hasPersonalizationSpec()) { mergePersonalizationSpec(other.getPersonalizationSpec()); } if (!other.solutionTypes_.isEmpty()) { if (solutionTypes_.isEmpty()) { solutionTypes_ = other.solutionTypes_; - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); } else { ensureSolutionTypesIsMutable(); solutionTypes_.addAll(other.solutionTypes_); @@ -2866,9 +2901,15 @@ public Builder mergeFrom( { input.readMessage( getPersonalizationSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; break; } // case 170 + case 192: + { + ignoreRecsDenylist_ = input.readBool(); + bitField0_ |= 0x00020000; + break; + } // case 192 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -6518,6 +6559,62 @@ public Builder setEnableCategoryFilterLevelBytes(com.google.protobuf.ByteString return this; } + private boolean ignoreRecsDenylist_; + /** + * + * + *
+     * When the flag is enabled, the products in the denylist will not be filtered
+     * out in the recommendation filtering results.
+     * 
+ * + * bool ignore_recs_denylist = 24; + * + * @return The ignoreRecsDenylist. + */ + @java.lang.Override + public boolean getIgnoreRecsDenylist() { + return ignoreRecsDenylist_; + } + /** + * + * + *
+     * When the flag is enabled, the products in the denylist will not be filtered
+     * out in the recommendation filtering results.
+     * 
+ * + * bool ignore_recs_denylist = 24; + * + * @param value The ignoreRecsDenylist to set. + * @return This builder for chaining. + */ + public Builder setIgnoreRecsDenylist(boolean value) { + + ignoreRecsDenylist_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + * + * + *
+     * When the flag is enabled, the products in the denylist will not be filtered
+     * out in the recommendation filtering results.
+     * 
+ * + * bool ignore_recs_denylist = 24; + * + * @return This builder for chaining. + */ + public Builder clearIgnoreRecsDenylist() { + bitField0_ = (bitField0_ & ~0x00020000); + ignoreRecsDenylist_ = false; + onChanged(); + return this; + } + private com.google.cloud.retail.v2beta.SearchRequest.PersonalizationSpec personalizationSpec_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.retail.v2beta.SearchRequest.PersonalizationSpec, @@ -6552,7 +6649,7 @@ public Builder setEnableCategoryFilterLevelBytes(com.google.protobuf.ByteString * @return Whether the personalizationSpec field is set. */ public boolean hasPersonalizationSpec() { - return ((bitField0_ & 0x00020000) != 0); + return ((bitField0_ & 0x00040000) != 0); } /** * @@ -6626,7 +6723,7 @@ public Builder setPersonalizationSpec( } else { personalizationSpecBuilder_.setMessage(value); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -6662,7 +6759,7 @@ public Builder setPersonalizationSpec( } else { personalizationSpecBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -6694,7 +6791,7 @@ public Builder setPersonalizationSpec( public Builder mergePersonalizationSpec( com.google.cloud.retail.v2beta.SearchRequest.PersonalizationSpec value) { if (personalizationSpecBuilder_ == null) { - if (((bitField0_ & 0x00020000) != 0) + if (((bitField0_ & 0x00040000) != 0) && personalizationSpec_ != null && personalizationSpec_ != com.google.cloud.retail.v2beta.SearchRequest.PersonalizationSpec @@ -6707,7 +6804,7 @@ public Builder mergePersonalizationSpec( personalizationSpecBuilder_.mergeFrom(value); } if (personalizationSpec_ != null) { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); } return this; @@ -6738,7 +6835,7 @@ public Builder mergePersonalizationSpec( *
*/ public Builder clearPersonalizationSpec() { - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); personalizationSpec_ = null; if (personalizationSpecBuilder_ != null) { personalizationSpecBuilder_.dispose(); @@ -6774,7 +6871,7 @@ public Builder clearPersonalizationSpec() { */ public com.google.cloud.retail.v2beta.SearchRequest.PersonalizationSpec.Builder getPersonalizationSpecBuilder() { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return getPersonalizationSpecFieldBuilder().getBuilder(); } @@ -6858,9 +6955,9 @@ public Builder clearPersonalizationSpec() { private java.util.List solutionTypes_ = java.util.Collections.emptyList(); private void ensureSolutionTypesIsMutable() { - if (!((bitField0_ & 0x00040000) != 0)) { + if (!((bitField0_ & 0x00080000) != 0)) { solutionTypes_ = new java.util.ArrayList(solutionTypes_); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; } } /** @@ -7006,7 +7103,7 @@ public Builder addAllSolutionTypes( */ public Builder clearSolutionTypes() { solutionTypes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); onChanged(); return this; } diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ServingConfigOrBuilder.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ServingConfigOrBuilder.java index 17bf411bf499..97ac4206bfe2 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ServingConfigOrBuilder.java +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ServingConfigOrBuilder.java @@ -1176,6 +1176,20 @@ public interface ServingConfigOrBuilder */ com.google.protobuf.ByteString getEnableCategoryFilterLevelBytes(); + /** + * + * + *
+   * When the flag is enabled, the products in the denylist will not be filtered
+   * out in the recommendation filtering results.
+   * 
+ * + * bool ignore_recs_denylist = 24; + * + * @return The ignoreRecsDenylist. + */ + boolean getIgnoreRecsDenylist(); + /** * * diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ServingConfigProto.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ServingConfigProto.java index 9a5b3282946b..a1e77eeb3c23 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ServingConfigProto.java +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/ServingConfigProto.java @@ -46,7 +46,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oogle/api/field_behavior.proto\032\031google/a" + "pi/resource.proto\032\'google/cloud/retail/v" + "2beta/common.proto\032/google/cloud/retail/" - + "v2beta/search_service.proto\"\210\010\n\rServingC" + + "v2beta/search_service.proto\"\246\010\n\rServingC" + "onfig\022\021\n\004name\030\001 \001(\tB\003\340A\005\022\031\n\014display_name" + "\030\002 \001(\tB\003\340A\002\022\020\n\010model_id\030\003 \001(\t\022\035\n\025price_r" + "eranking_level\030\004 \001(\t\022\031\n\021facet_control_id" @@ -62,23 +62,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ersity_level\030\010 \001(\t\022O\n\016diversity_type\030\024 \001" + "(\01627.google.cloud.retail.v2beta.ServingC" + "onfig.DiversityType\022$\n\034enable_category_f" - + "ilter_level\030\020 \001(\t\022[\n\024personalization_spe" - + "c\030\025 \001(\0132=.google.cloud.retail.v2beta.Sea" - + "rchRequest.PersonalizationSpec\022H\n\016soluti" - + "on_types\030\023 \003(\0162(.google.cloud.retail.v2b" - + "eta.SolutionTypeB\006\340A\002\340A\005\"d\n\rDiversityTyp" - + "e\022\036\n\032DIVERSITY_TYPE_UNSPECIFIED\020\000\022\030\n\024RUL" - + "E_BASED_DIVERSITY\020\002\022\031\n\025DATA_DRIVEN_DIVER" - + "SITY\020\003:\205\001\352A\201\001\n#retail.googleapis.com/Ser" - + "vingConfig\022Zprojects/{project}/locations" - + "/{location}/catalogs/{catalog}/servingCo" - + "nfigs/{serving_config}B\321\001\n\036com.google.cl" - + "oud.retail.v2betaB\022ServingConfigProtoP\001Z" - + "6cloud.google.com/go/retail/apiv2beta/re" - + "tailpb;retailpb\242\002\006RETAIL\252\002\032Google.Cloud." - + "Retail.V2Beta\312\002\032Google\\Cloud\\Retail\\V2be" - + "ta\352\002\035Google::Cloud::Retail::V2betab\006prot" - + "o3" + + "ilter_level\030\020 \001(\t\022\034\n\024ignore_recs_denylis" + + "t\030\030 \001(\010\022[\n\024personalization_spec\030\025 \001(\0132=." + + "google.cloud.retail.v2beta.SearchRequest" + + ".PersonalizationSpec\022H\n\016solution_types\030\023" + + " \003(\0162(.google.cloud.retail.v2beta.Soluti" + + "onTypeB\006\340A\002\340A\005\"d\n\rDiversityType\022\036\n\032DIVER" + + "SITY_TYPE_UNSPECIFIED\020\000\022\030\n\024RULE_BASED_DI" + + "VERSITY\020\002\022\031\n\025DATA_DRIVEN_DIVERSITY\020\003:\205\001\352" + + "A\201\001\n#retail.googleapis.com/ServingConfig" + + "\022Zprojects/{project}/locations/{location" + + "}/catalogs/{catalog}/servingConfigs/{ser" + + "ving_config}B\321\001\n\036com.google.cloud.retail" + + ".v2betaB\022ServingConfigProtoP\001Z6cloud.goo" + + "gle.com/go/retail/apiv2beta/retailpb;ret" + + "ailpb\242\002\006RETAIL\252\002\032Google.Cloud.Retail.V2B" + + "eta\312\002\032Google\\Cloud\\Retail\\V2beta\352\002\035Googl" + + "e::Cloud::Retail::V2betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -112,6 +112,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DiversityLevel", "DiversityType", "EnableCategoryFilterLevel", + "IgnoreRecsDenylist", "PersonalizationSpec", "SolutionTypes", }); diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/UserEvent.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/UserEvent.java index 8667b363f39f..54645f865ad2 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/UserEvent.java +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/UserEvent.java @@ -102,6 +102,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl * Required. User event type. Allowed values are: * * * `add-to-cart`: Products being added to cart. + * * `remove-from-cart`: Products being removed from cart. * * `category-page-view`: Special pages such as sale or promotion pages * viewed. * * `detail-page-view`: Products detail page viewed. @@ -136,6 +137,7 @@ public java.lang.String getEventType() { * Required. User event type. Allowed values are: * * * `add-to-cart`: Products being added to cart. + * * `remove-from-cart`: Products being removed from cart. * * `category-page-view`: Special pages such as sale or promotion pages * viewed. * * `detail-page-view`: Products detail page viewed. @@ -1661,8 +1663,8 @@ public com.google.protobuf.ByteString getPageViewIdBytes() { * The entity for customers that may run multiple different entities, domains, * sites or regions, for example, `Google US`, `Google Ads`, `Waymo`, * `google.com`, `youtube.com`, etc. - * It is recommended to set this field to get better per-entity search, - * completion and prediction results. + * We recommend that you set this field to get better per-entity search, + * completion, and prediction results. * * * string entity = 23; @@ -1688,8 +1690,8 @@ public java.lang.String getEntity() { * The entity for customers that may run multiple different entities, domains, * sites or regions, for example, `Google US`, `Google Ads`, `Waymo`, * `google.com`, `youtube.com`, etc. - * It is recommended to set this field to get better per-entity search, - * completion and prediction results. + * We recommend that you set this field to get better per-entity search, + * completion, and prediction results. * * * string entity = 23; @@ -2701,6 +2703,7 @@ public Builder mergeFrom( * Required. User event type. Allowed values are: * * * `add-to-cart`: Products being added to cart. + * * `remove-from-cart`: Products being removed from cart. * * `category-page-view`: Special pages such as sale or promotion pages * viewed. * * `detail-page-view`: Products detail page viewed. @@ -2734,6 +2737,7 @@ public java.lang.String getEventType() { * Required. User event type. Allowed values are: * * * `add-to-cart`: Products being added to cart. + * * `remove-from-cart`: Products being removed from cart. * * `category-page-view`: Special pages such as sale or promotion pages * viewed. * * `detail-page-view`: Products detail page viewed. @@ -2767,6 +2771,7 @@ public com.google.protobuf.ByteString getEventTypeBytes() { * Required. User event type. Allowed values are: * * * `add-to-cart`: Products being added to cart. + * * `remove-from-cart`: Products being removed from cart. * * `category-page-view`: Special pages such as sale or promotion pages * viewed. * * `detail-page-view`: Products detail page viewed. @@ -2799,6 +2804,7 @@ public Builder setEventType(java.lang.String value) { * Required. User event type. Allowed values are: * * * `add-to-cart`: Products being added to cart. + * * `remove-from-cart`: Products being removed from cart. * * `category-page-view`: Special pages such as sale or promotion pages * viewed. * * `detail-page-view`: Products detail page viewed. @@ -2827,6 +2833,7 @@ public Builder clearEventType() { * Required. User event type. Allowed values are: * * * `add-to-cart`: Products being added to cart. + * * `remove-from-cart`: Products being removed from cart. * * `category-page-view`: Special pages such as sale or promotion pages * viewed. * * `detail-page-view`: Products detail page viewed. @@ -6812,8 +6819,8 @@ public Builder setPageViewIdBytes(com.google.protobuf.ByteString value) { * The entity for customers that may run multiple different entities, domains, * sites or regions, for example, `Google US`, `Google Ads`, `Waymo`, * `google.com`, `youtube.com`, etc. - * It is recommended to set this field to get better per-entity search, - * completion and prediction results. + * We recommend that you set this field to get better per-entity search, + * completion, and prediction results. * * * string entity = 23; @@ -6838,8 +6845,8 @@ public java.lang.String getEntity() { * The entity for customers that may run multiple different entities, domains, * sites or regions, for example, `Google US`, `Google Ads`, `Waymo`, * `google.com`, `youtube.com`, etc. - * It is recommended to set this field to get better per-entity search, - * completion and prediction results. + * We recommend that you set this field to get better per-entity search, + * completion, and prediction results. * * * string entity = 23; @@ -6864,8 +6871,8 @@ public com.google.protobuf.ByteString getEntityBytes() { * The entity for customers that may run multiple different entities, domains, * sites or regions, for example, `Google US`, `Google Ads`, `Waymo`, * `google.com`, `youtube.com`, etc. - * It is recommended to set this field to get better per-entity search, - * completion and prediction results. + * We recommend that you set this field to get better per-entity search, + * completion, and prediction results. * * * string entity = 23; @@ -6889,8 +6896,8 @@ public Builder setEntity(java.lang.String value) { * The entity for customers that may run multiple different entities, domains, * sites or regions, for example, `Google US`, `Google Ads`, `Waymo`, * `google.com`, `youtube.com`, etc. - * It is recommended to set this field to get better per-entity search, - * completion and prediction results. + * We recommend that you set this field to get better per-entity search, + * completion, and prediction results. * * * string entity = 23; @@ -6910,8 +6917,8 @@ public Builder clearEntity() { * The entity for customers that may run multiple different entities, domains, * sites or regions, for example, `Google US`, `Google Ads`, `Waymo`, * `google.com`, `youtube.com`, etc. - * It is recommended to set this field to get better per-entity search, - * completion and prediction results. + * We recommend that you set this field to get better per-entity search, + * completion, and prediction results. * * * string entity = 23; diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/UserEventOrBuilder.java b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/UserEventOrBuilder.java index ccc51e444723..696ed6054fd1 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/UserEventOrBuilder.java +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/java/com/google/cloud/retail/v2beta/UserEventOrBuilder.java @@ -31,6 +31,7 @@ public interface UserEventOrBuilder * Required. User event type. Allowed values are: * * * `add-to-cart`: Products being added to cart. + * * `remove-from-cart`: Products being removed from cart. * * `category-page-view`: Special pages such as sale or promotion pages * viewed. * * `detail-page-view`: Products detail page viewed. @@ -54,6 +55,7 @@ public interface UserEventOrBuilder * Required. User event type. Allowed values are: * * * `add-to-cart`: Products being added to cart. + * * `remove-from-cart`: Products being removed from cart. * * `category-page-view`: Special pages such as sale or promotion pages * viewed. * * `detail-page-view`: Products detail page viewed. @@ -1163,8 +1165,8 @@ com.google.cloud.retail.v2beta.CustomAttribute getAttributesOrDefault( * The entity for customers that may run multiple different entities, domains, * sites or regions, for example, `Google US`, `Google Ads`, `Waymo`, * `google.com`, `youtube.com`, etc. - * It is recommended to set this field to get better per-entity search, - * completion and prediction results. + * We recommend that you set this field to get better per-entity search, + * completion, and prediction results. * * * string entity = 23; @@ -1179,8 +1181,8 @@ com.google.cloud.retail.v2beta.CustomAttribute getAttributesOrDefault( * The entity for customers that may run multiple different entities, domains, * sites or regions, for example, `Google US`, `Google Ads`, `Waymo`, * `google.com`, `youtube.com`, etc. - * It is recommended to set this field to get better per-entity search, - * completion and prediction results. + * We recommend that you set this field to get better per-entity search, + * completion, and prediction results. * * * string entity = 23; diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/proto/google/cloud/retail/v2beta/catalog.proto b/java-retail/proto-google-cloud-retail-v2beta/src/main/proto/google/cloud/retail/v2beta/catalog.proto index f5164dfc97bf..c8bca58e65a8 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/proto/google/cloud/retail/v2beta/catalog.proto +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/proto/google/cloud/retail/v2beta/catalog.proto @@ -20,6 +20,7 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/retail/v2beta/common.proto"; import "google/cloud/retail/v2beta/import_config.proto"; +import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Retail.V2Beta"; option go_package = "cloud.google.com/go/retail/apiv2beta/retailpb;retailpb"; @@ -87,6 +88,124 @@ message ProductLevelConfig { // Catalog level attribute config for an attribute. For example, if customers // want to enable/disable facet for a specific attribute. message CatalogAttribute { + // Possible options for the facet that corresponds to the current attribute + // config. + message FacetConfig { + // [Facet values][google.cloud.retail.v2beta.SearchResponse.Facet.values] to + // ignore on [facets][google.cloud.retail.v2beta.SearchResponse.Facet] + // during the specified time range for the given + // [SearchResponse.Facet.key][google.cloud.retail.v2beta.SearchResponse.Facet.key] + // attribute. + message IgnoredFacetValues { + // List of facet values to ignore for the following time range. The facet + // values are the same as the attribute values. There is a limit of 10 + // values per instance of IgnoredFacetValues. Each value can have at most + // 128 characters. + repeated string values = 1; + + // Time range for the current list of facet values to ignore. + // If multiple time ranges are specified for an facet value for the + // current attribute, consider all of them. If both are empty, ignore + // always. If start time and end time are set, then start time + // must be before end time. + // If start time is not empty and end time is empty, then will ignore + // these facet values after the start time. + google.protobuf.Timestamp start_time = 2; + + // If start time is empty and end time is not empty, then ignore these + // facet values before end time. + google.protobuf.Timestamp end_time = 3; + } + + // Replaces a set of textual facet values by the same (possibly different) + // merged facet value. Each facet value should appear at most once as a + // value per + // [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute]. This + // feature is available only for textual custom attributes. + message MergedFacetValue { + // All the facet values that are replaces by the same + // [merged_value][google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacetValue.merged_value] + // that follows. The maximum number of values per MergedFacetValue is 25. + // Each value can have up to 128 characters. + repeated string values = 1; + + // All the previous values are replaced by this merged facet value. + // This merged_value must be non-empty and can have up to 128 characters. + string merged_value = 2; + } + + // The current facet key (i.e. attribute config) maps into the + // [merged_facet_key][google.cloud.retail.v2beta.CatalogAttribute.FacetConfig.MergedFacet.merged_facet_key]. + // A facet key can have at most one child. The current facet key and the + // merged facet key need both to be textual custom attributes or both + // numerical custom attributes (same type). + message MergedFacet { + // The merged facet key should be a valid facet key that is different than + // the facet key of the current catalog attribute. We refer this is + // merged facet key as the child of the current catalog attribute. This + // merged facet key can't be a parent of another facet key (i.e. no + // directed path of length 2). This merged facet key needs to be either a + // textual custom attribute or a numerical custom attribute. + string merged_facet_key = 1; + } + + // Options to rerank based on facet values engaged by the user for the + // current key. That key needs to be a custom textual key and facetable. + // To use this control, you also need to pass all the facet keys engaged by + // the user in the request using the field [SearchRequest.FacetSpec]. In + // particular, if you don't pass the facet keys engaged that you want to + // rerank on, this control won't be effective. Moreover, to obtain better + // results, the facet values that you want to rerank on should be close to + // English (ideally made of words, underscores, and spaces). + message RerankConfig { + // If set to true, then we also rerank the dynamic facets based on the + // facet values engaged by the user for the current attribute key during + // serving. + bool rerank_facet = 1; + + // If empty, rerank on all facet values for the current key. Otherwise, + // will rerank on the facet values from this list only. + repeated string facet_values = 2; + } + + // If you don't set the facet + // [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.retail.v2beta.SearchRequest.FacetSpec.FacetKey.intervals] + // in the request to a numerical attribute, then we use the computed + // intervals with rounded bounds obtained from all its product numerical + // attribute values. The computed intervals might not be ideal for some + // attributes. Therefore, we give you the option to overwrite them with the + // facet_intervals field. The maximum of facet intervals per + // [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 40. + // Each interval must have a lower bound or an upper bound. If both bounds + // are provided, then the lower bound must be smaller or equal than the + // upper bound. + repeated Interval facet_intervals = 1; + + // Each instance represents a list of attribute values to ignore as facet + // values for a specific time range. The maximum number of instances per + // [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 25. + repeated IgnoredFacetValues ignored_facet_values = 2; + + // Each instance replaces a list of facet values by a merged facet + // value. If a facet value is not in any list, then it will stay the same. + // To avoid conflicts, only paths of length 1 are accepted. In other words, + // if "dark_blue" merged into "BLUE", then the latter can't merge into + // "blues" because this would create a path of length 2. The maximum number + // of instances of MergedFacetValue per + // [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] is 100. + // This feature is available only for textual custom attributes. + repeated MergedFacetValue merged_facet_values = 3; + + // Use this field only if you want to merge a facet key into another facet + // key. + MergedFacet merged_facet = 4; + + // Set this field only if you want to rerank based on facet values engaged + // by the user for the current key. This option is only possible for custom + // facetable textual keys. + RerankConfig rerank_config = 5; + } + // The type of an attribute. enum AttributeType { // The type of the attribute is unknown. @@ -210,7 +329,9 @@ message CatalogAttribute { // are indexed so that it can be filtered, faceted, or boosted in // [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search]. // - // Must be specified, otherwise throws INVALID_FORMAT error. + // Must be specified when + // [AttributesConfig.attribute_config_level][google.cloud.retail.v2beta.AttributesConfig.attribute_config_level] + // is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. IndexableOption indexable_option = 5; // If DYNAMIC_FACETABLE_ENABLED, attribute values are available for dynamic @@ -232,7 +353,9 @@ message CatalogAttribute { // [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search], as // there are no text values associated to numerical attributes. // - // Must be specified, otherwise throws INVALID_FORMAT error. + // Must be specified, when + // [AttributesConfig.attribute_config_level][google.cloud.retail.v2beta.AttributesConfig.attribute_config_level] + // is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error. SearchableOption searchable_option = 7; // When @@ -254,6 +377,9 @@ message CatalogAttribute { // results. If unset, the server behavior defaults to // [RETRIEVABLE_DISABLED][google.cloud.retail.v2beta.CatalogAttribute.RetrievableOption.RETRIEVABLE_DISABLED]. RetrievableOption retrievable_option = 12; + + // Contains facet options. + FacetConfig facet_config = 13; } // Catalog level attribute config. @@ -343,8 +469,8 @@ message CompletionConfig { // Output only. Name of the LRO corresponding to the latest suggestion terms // list import. // - // Can use [GetOperation][google.longrunning.Operations.GetOperation] API to - // retrieve the latest state of the Long Running Operation. + // Can use [GetOperation][google.longrunning.Operations.GetOperation] API + // method to retrieve the latest state of the Long Running Operation. string last_suggestions_import_operation = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -374,10 +500,10 @@ message CompletionConfig { } // Represents a link between a Merchant Center account and a branch. -// Once a link is established, products from the linked merchant center account -// will be streamed to the linked branch. +// After a link is established, products from the linked Merchant Center account +// are streamed to the linked branch. message MerchantCenterLink { - // Required. The linked [Merchant center account + // Required. The linked [Merchant Center account // ID](https://developers.google.com/shopping-content/guides/accountstatuses). // The account must be a standalone account or a sub-account of a MCA. int64 merchant_center_account_id = 1 [(google.api.field_behavior) = REQUIRED]; @@ -387,7 +513,7 @@ message MerchantCenterLink { // empty value will use the currently configured default branch. However, // changing the default branch later on won't change the linked branch here. // - // A single branch ID can only have one linked merchant center account ID. + // A single branch ID can only have one linked Merchant Center account ID. string branch_id = 2; // String representing the destination to import for, all if left empty. @@ -469,8 +595,8 @@ message Catalog { [(google.api.field_behavior) = REQUIRED]; // The Merchant Center linking configuration. - // Once a link is added, the data stream from Merchant Center to Cloud Retail + // After a link is added, the data stream from Merchant Center to Cloud Retail // will be enabled automatically. The requester must have access to the - // merchant center account in order to make changes to this field. + // Merchant Center account in order to make changes to this field. MerchantCenterLinkingConfig merchant_center_linking_config = 6; } diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/proto/google/cloud/retail/v2beta/common.proto b/java-retail/proto-google-cloud-retail-v2beta/src/main/proto/google/cloud/retail/v2beta/common.proto index 09912ca5ac44..b0a522235d8c 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/proto/google/cloud/retail/v2beta/common.proto +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/proto/google/cloud/retail/v2beta/common.proto @@ -124,6 +124,12 @@ message Condition { // Range of time(s) specifying when Condition is active. // Condition true if any time range matches. repeated TimeRange active_time_range = 3; + + // Used to support browse uses cases. + // A list (up to 10 entries) of categories or departments. + // The format should be the same as + // [UserEvent.page_categories][google.cloud.retail.v2beta.UserEvent.page_categories]; + repeated string page_categories = 4; } // A rule is a condition-action pair @@ -173,17 +179,19 @@ message Rule { } // * Rule Condition: - // - No - // [Condition.query_terms][google.cloud.retail.v2beta.Condition.query_terms] - // provided is a global match. - // - 1 or more - // [Condition.query_terms][google.cloud.retail.v2beta.Condition.query_terms] - // provided are combined with OR operator. + // - No + // [Condition.query_terms][google.cloud.retail.v2beta.Condition.query_terms] + // provided is a global match. + // - 1 or more + // [Condition.query_terms][google.cloud.retail.v2beta.Condition.query_terms] + // provided are combined with OR operator. + // // * Action Input: The request query and filter that are applied to the // retrieved products, in addition to any filters already provided with the // SearchRequest. The AND operator is used to combine the query's existing // filters with the filter rule(s). NOTE: May result in 0 results when // filters conflict. + // // * Action Result: Filters the returned objects to be ONLY those that passed // the filter. message FilterAction { @@ -193,9 +201,8 @@ message Rule { // set. // * Filter syntax is identical to // [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter]. - // See more - // details at the Retail Search - // [user guide](/retail/search/docs/filter-and-order#filter). + // For more + // information, see [Filter](/retail/docs/filter-and-order#filter). // * To filter products with product ID "product_1" or "product_2", and // color // "Red" or "Blue":
@@ -208,7 +215,7 @@ message Rule { // Redirects a shopper to a specific page. // // * Rule Condition: - // - Must specify + // Must specify // [Condition.query_terms][google.cloud.retail.v2beta.Condition.query_terms]. // * Action Input: Request Query // * Action Result: Redirects shopper to provided uri. @@ -290,6 +297,78 @@ message Rule { repeated string ignore_terms = 1; } + // Force returns an attribute/facet in the request around a certain position + // or above. + // + // * Rule Condition: + // Must specify non-empty + // [Condition.query_terms][google.cloud.retail.v2beta.Condition.query_terms] + // (for search only) or + // [Condition.page_categories][google.cloud.retail.v2beta.Condition.page_categories] + // (for browse only), but can't specify both. + // + // * Action Inputs: attribute name, position + // + // * Action Result: Will force return a facet key around a certain position + // or above if the condition is satisfied. + // + // Example: Suppose the query is "shoes", the + // [Condition.query_terms][google.cloud.retail.v2beta.Condition.query_terms] + // is "shoes", the + // [ForceReturnFacetAction.FacetPositionAdjustment.attribute_name][google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment.attribute_name] + // is "size" and the + // [ForceReturnFacetAction.FacetPositionAdjustment.position][google.cloud.retail.v2beta.Rule.ForceReturnFacetAction.FacetPositionAdjustment.position] + // is 8. + // + // Two cases: a) The facet key "size" is not already in the top 8 slots, then + // the facet "size" will appear at a position close to 8. b) The facet key + // "size" in among the top 8 positions in the request, then it will stay at + // its current rank. + message ForceReturnFacetAction { + // Each facet position adjustment consists of a single attribute name (i.e. + // facet key) along with a specified position. + message FacetPositionAdjustment { + // The attribute name to force return as a facet. Each attribute name + // should be a valid attribute name, be non-empty and contain at most 80 + // characters long. + string attribute_name = 1; + + // This is the position in the request as explained above. It should be + // strictly positive be at most 100. + int32 position = 2; + } + + // Each instance corresponds to a force return attribute for the given + // condition. There can't be more 3 instances here. + repeated FacetPositionAdjustment facet_position_adjustments = 1; + } + + // Removes an attribute/facet in the request if is present. + // + // * Rule Condition: + // Must specify non-empty + // [Condition.query_terms][google.cloud.retail.v2beta.Condition.query_terms] + // (for search only) or + // [Condition.page_categories][google.cloud.retail.v2beta.Condition.page_categories] + // (for browse only), but can't specify both. + // + // * Action Input: attribute name + // + // * Action Result: Will remove the attribute (as a facet) from the request + // if it is present. + // + // Example: Suppose the query is "shoes", the + // [Condition.query_terms][google.cloud.retail.v2beta.Condition.query_terms] + // is "shoes" and the attribute name "size", then facet key "size" will be + // removed from the request (if it is present). + message RemoveFacetAction { + // The attribute names (i.e. facet keys) to remove from the dynamic facets + // (if present in the request). There can't be more 3 attribute names. + // Each attribute name should be a valid attribute name, be non-empty and + // contain at most 80 characters. + repeated string attribute_names = 1; + } + // An action must be provided. oneof action { // A boost action. @@ -316,6 +395,12 @@ message Rule { // Treats a set of terms as synonyms of one another. TwowaySynonymsAction twoway_synonyms_action = 11; + + // Force returns an attribute as a facet in the request. + ForceReturnFacetAction force_return_facet_action = 12; + + // Remove an attribute as a facet in the request (if present). + RemoveFacetAction remove_facet_action = 13; } // Required. The condition that triggers the rule. diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/proto/google/cloud/retail/v2beta/completion_service.proto b/java-retail/proto-google-cloud-retail-v2beta/src/main/proto/google/cloud/retail/v2beta/completion_service.proto index 3e05448b0d12..ebf7fdb25ed3 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/proto/google/cloud/retail/v2beta/completion_service.proto +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/proto/google/cloud/retail/v2beta/completion_service.proto @@ -151,10 +151,15 @@ message CompleteQueryRequest { // capped by 20. int32 max_suggestions = 5; - // The entity for customers that may run multiple different entities, domains, - // sites or regions, for example, `Google US`, `Google Ads`, `Waymo`, + // If true, attribute suggestions are enabled and provided in response. + // + // This field is only available for "cloud-retail" dataset. + bool enable_attribute_suggestions = 9; + + // The entity for customers who run multiple entities, domains, sites, or + // regions, for example, `Google US`, `Google Ads`, `Waymo`, // `google.com`, `youtube.com`, etc. - // If this is set, it should be exactly matched with + // If this is set, it must be an exact match with // [UserEvent.entity][google.cloud.retail.v2beta.UserEvent.entity] to get // per-entity autocomplete results. string entity = 10; @@ -179,8 +184,10 @@ message CompleteQueryResponse { map attributes = 2; } - // Recent search of this user. + // Deprecated: Recent search of this user. message RecentSearchResult { + option deprecated = true; + // The recent search query. string recent_search = 1; } @@ -195,9 +202,9 @@ message CompleteQueryResponse { // attribution of complete model performance. string attribution_token = 2; - // Matched recent searches of this user. The maximum number of recent searches - // is 10. This field is a restricted feature. Contact Retail Search support - // team if you are interested in enabling it. + // Deprecated. Matched recent searches of this user. The maximum number of + // recent searches is 10. This field is a restricted feature. If you want to + // enable it, contact Retail Search support. // // This feature is only available when // [CompleteQueryRequest.visitor_id][google.cloud.retail.v2beta.CompleteQueryRequest.visitor_id] @@ -216,5 +223,5 @@ message CompleteQueryResponse { // // Recent searches are deduplicated. More recent searches will be reserved // when duplication happens. - repeated RecentSearchResult recent_search_results = 3; + repeated RecentSearchResult recent_search_results = 3 [deprecated = true]; } diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/proto/google/cloud/retail/v2beta/import_config.proto b/java-retail/proto-google-cloud-retail-v2beta/src/main/proto/google/cloud/retail/v2beta/import_config.proto index 591039611ee6..f5e67023bcb8 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/proto/google/cloud/retail/v2beta/import_config.proto +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/proto/google/cloud/retail/v2beta/import_config.proto @@ -196,7 +196,8 @@ message ImportProductsRequest { ImportErrorsConfig errors_config = 3; // Indicates which fields in the provided imported `products` to update. If - // not set, all fields are updated. + // not set, all fields are updated. If provided, only the existing product + // fields are updated. Missing products will not be created. google.protobuf.FieldMask update_mask = 4; // The mode of reconciliation between existing products and the products to be @@ -212,9 +213,14 @@ message ImportProductsRequest { // Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`. It has // to be within the same project as // [ImportProductsRequest.parent][google.cloud.retail.v2beta.ImportProductsRequest.parent]. - // Make sure that `service-@gcp-sa-retail.iam.gserviceaccount.com` has the - // `pubsub.topics.publish` IAM permission on the topic. + // Make sure that both + // `cloud-retail-customer-data-access@system.gserviceaccount.com` and + // `service-@gcp-sa-retail.iam.gserviceaccount.com` + // have the `pubsub.topics.publish` IAM permission on the topic. + // + // Only supported when + // [ImportProductsRequest.reconciliation_mode][google.cloud.retail.v2beta.ImportProductsRequest.reconciliation_mode] + // is set to `FULL`. string notification_pubsub_topic = 7; } diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/proto/google/cloud/retail/v2beta/model.proto b/java-retail/proto-google-cloud-retail-v2beta/src/main/proto/google/cloud/retail/v2beta/model.proto index 3334fe81b611..e9916f6696b3 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/proto/google/cloud/retail/v2beta/model.proto +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/proto/google/cloud/retail/v2beta/model.proto @@ -50,6 +50,25 @@ message Model { [(google.api.field_behavior) = OPTIONAL]; } + // Additional configs for the frequently-bought-together model type. + message FrequentlyBoughtTogetherFeaturesConfig { + // Optional. Specifies the context of the model when it is used in predict + // requests. Can only be set for the `frequently-bought-together` type. If + // it isn't specified, it defaults to + // [MULTIPLE_CONTEXT_PRODUCTS][google.cloud.retail.v2beta.Model.ContextProductsType.MULTIPLE_CONTEXT_PRODUCTS]. + ContextProductsType context_products_type = 2 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Additional model features config. + message ModelFeaturesConfig { + oneof type_dedicated_config { + // Additional configs for frequently-bought-together models. + FrequentlyBoughtTogetherFeaturesConfig frequently_bought_together_config = + 1; + } + } + // The serving state of the model. enum ServingState { // Unspecified serving state. @@ -118,6 +137,22 @@ message Model { DATA_ERROR = 2; } + // Use single or multiple context products for recommendations. + enum ContextProductsType { + // Unspecified default value, should never be explicitly set. + // Defaults to + // [MULTIPLE_CONTEXT_PRODUCTS][google.cloud.retail.v2beta.Model.ContextProductsType.MULTIPLE_CONTEXT_PRODUCTS]. + CONTEXT_PRODUCTS_TYPE_UNSPECIFIED = 0; + + // Use only a single product as context for the recommendation. Typically + // used on pages like add-to-cart or product details. + SINGLE_CONTEXT_PRODUCT = 1; + + // Use one or multiple products as context for the recommendation. Typically + // used on shopping cart pages. + MULTIPLE_CONTEXT_PRODUCTS = 2; + } + // Required. The fully qualified resource name of the model. // // Format: @@ -236,4 +271,8 @@ message Model { // PageOptimizationConfig. repeated ServingConfigList serving_config_lists = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Additional model features config. + ModelFeaturesConfig model_features_config = 22 + [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/proto/google/cloud/retail/v2beta/product.proto b/java-retail/proto-google-cloud-retail-v2beta/src/main/proto/google/cloud/retail/v2beta/product.proto index 0d75f6e88054..31e076625f5e 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/proto/google/cloud/retail/v2beta/product.proto +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/proto/google/cloud/retail/v2beta/product.proto @@ -103,24 +103,22 @@ message Product { } oneof expiration { - // The timestamp when this product becomes unavailable for - // [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search]. - // Note that this is only applicable to - // [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] and - // [Type.COLLECTION][google.cloud.retail.v2beta.Product.Type.COLLECTION], - // and ignored for - // [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT]. In - // general, we suggest the users to delete the stale products explicitly, - // instead of using this field to determine staleness. + // Note that this field is applied in the following ways: // - // If it is set, the [Product][google.cloud.retail.v2beta.Product] is not - // available for - // [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search] - // after [expire_time][google.cloud.retail.v2beta.Product.expire_time]. - // However, the product can still be retrieved by - // [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct] - // and - // [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts]. + // * If the [Product][google.cloud.retail.v2beta.Product] is already expired + // when it is uploaded, this product + // is not indexed for search. + // + // * If the [Product][google.cloud.retail.v2beta.Product] is not expired + // when it is uploaded, only the + // [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY]'s and + // [Type.COLLECTION][google.cloud.retail.v2beta.Product.Type.COLLECTION]'s + // expireTime is respected, and + // [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT]'s + // expireTime is not used. + // + // In general, we suggest the users to delete the stale + // products explicitly, instead of using this field to determine staleness. // // [expire_time][google.cloud.retail.v2beta.Product.expire_time] must be // later than @@ -263,9 +261,10 @@ message Product { // error is returned. // // At most 250 values are allowed per - // [Product][google.cloud.retail.v2beta.Product]. Empty values are not - // allowed. Each value must be a UTF-8 encoded string with a length limit of - // 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. + // [Product][google.cloud.retail.v2beta.Product] unless overridden through the + // Google Cloud console. Empty values are not allowed. Each value must be a + // UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an + // INVALID_ARGUMENT error is returned. // // Corresponding properties: Google Merchant Center property // [google_product_category][mc_google_product_category]. Schema.org property @@ -287,9 +286,10 @@ message Product { // The brands of the product. // - // A maximum of 30 brands are allowed. Each brand must be a UTF-8 encoded - // string with a length limit of 1,000 characters. Otherwise, an - // INVALID_ARGUMENT error is returned. + // A maximum of 30 brands are allowed unless overridden through the Google + // Cloud console. Each + // brand must be a UTF-8 encoded string with a length limit of 1,000 + // characters. Otherwise, an INVALID_ARGUMENT error is returned. // // Corresponding properties: Google Merchant Center property // [brand](https://support.google.com/merchants/answer/6324351). Schema.org diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/proto/google/cloud/retail/v2beta/product_service.proto b/java-retail/proto-google-cloud-retail-v2beta/src/main/proto/google/cloud/retail/v2beta/product_service.proto index a569ef378b5e..77b59b5d48f3 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/proto/google/cloud/retail/v2beta/product_service.proto +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/proto/google/cloud/retail/v2beta/product_service.proto @@ -23,6 +23,7 @@ import "google/api/resource.proto"; import "google/cloud/retail/v2beta/common.proto"; import "google/cloud/retail/v2beta/import_config.proto"; import "google/cloud/retail/v2beta/product.proto"; +import "google/cloud/retail/v2beta/purge_config.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; @@ -86,6 +87,35 @@ service ProductService { option (google.api.method_signature) = "name"; } + // Permanently deletes all selected + // [Product][google.cloud.retail.v2beta.Product]s under a branch. + // + // This process is asynchronous. If the request is valid, the removal will be + // enqueued and processed offline. Depending on the number of + // [Product][google.cloud.retail.v2beta.Product]s, this operation could take + // hours to complete. Before the operation completes, some + // [Product][google.cloud.retail.v2beta.Product]s may still be returned by + // [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct] + // or + // [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts]. + // + // Depending on the number of [Product][google.cloud.retail.v2beta.Product]s, + // this operation could take hours to complete. To get a sample of + // [Product][google.cloud.retail.v2beta.Product]s that would be deleted, set + // [PurgeProductsRequest.force][google.cloud.retail.v2beta.PurgeProductsRequest.force] + // to false. + rpc PurgeProducts(PurgeProductsRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v2beta/{parent=projects/*/locations/*/catalogs/*/branches/*}/products:purge" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "google.cloud.retail.v2beta.PurgeProductsResponse" + metadata_type: "google.cloud.retail.v2beta.PurgeProductsMetadata" + }; + } + // Bulk import of multiple [Product][google.cloud.retail.v2beta.Product]s. // // Request processing may be synchronous. @@ -166,10 +196,11 @@ service ProductService { }; } - // It is recommended to use the + // We recommend that you use the // [ProductService.AddLocalInventories][google.cloud.retail.v2beta.ProductService.AddLocalInventories] - // method instead of - // [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.AddFulfillmentPlaces]. + // method instead of the + // [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.AddFulfillmentPlaces] + // method. // [ProductService.AddLocalInventories][google.cloud.retail.v2beta.ProductService.AddLocalInventories] // achieves the same results but provides more fine-grained control over // ingesting local inventory data. @@ -208,10 +239,11 @@ service ProductService { }; } - // It is recommended to use the + // We recommend that you use the // [ProductService.RemoveLocalInventories][google.cloud.retail.v2beta.ProductService.RemoveLocalInventories] - // method instead of - // [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.RemoveFulfillmentPlaces]. + // method instead of the + // [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.RemoveFulfillmentPlaces] + // method. // [ProductService.RemoveLocalInventories][google.cloud.retail.v2beta.ProductService.RemoveLocalInventories] // achieves the same results but provides more fine-grained control over // ingesting local inventory data. diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/proto/google/cloud/retail/v2beta/promotion.proto b/java-retail/proto-google-cloud-retail-v2beta/src/main/proto/google/cloud/retail/v2beta/promotion.proto index 2950797704e5..ebd30a2845bf 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/proto/google/cloud/retail/v2beta/promotion.proto +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/proto/google/cloud/retail/v2beta/promotion.proto @@ -34,7 +34,7 @@ message Promotion { // id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT error is // returned. // - // Google Merchant Center property - // [promotion](https://support.google.com/merchants/answer/7050148). + // Corresponds to Google Merchant Center property + // [promotion_id](https://support.google.com/merchants/answer/7050148). string promotion_id = 1; } diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/proto/google/cloud/retail/v2beta/purge_config.proto b/java-retail/proto-google-cloud-retail-v2beta/src/main/proto/google/cloud/retail/v2beta/purge_config.proto index 5c32819541da..037e3aed5894 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/proto/google/cloud/retail/v2beta/purge_config.proto +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/proto/google/cloud/retail/v2beta/purge_config.proto @@ -18,6 +18,7 @@ package google.cloud.retail.v2beta; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Retail.V2Beta"; option go_package = "cloud.google.com/go/retail/apiv2beta/retailpb;retailpb"; @@ -32,6 +33,96 @@ option ruby_package = "Google::Cloud::Retail::V2beta"; // This will be returned by the google.longrunning.Operation.metadata field. message PurgeMetadata {} +// Metadata related to the progress of the PurgeProducts operation. +// This will be returned by the google.longrunning.Operation.metadata field. +message PurgeProductsMetadata { + // Operation create time. + google.protobuf.Timestamp create_time = 1; + + // Operation last update time. If the operation is done, this is also the + // finish time. + google.protobuf.Timestamp update_time = 2; + + // Count of entries that were deleted successfully. + int64 success_count = 3; + + // Count of entries that encountered errors while processing. + int64 failure_count = 4; +} + +// Request message for PurgeProducts method. +message PurgeProductsRequest { + // Required. The resource name of the branch under which the products are + // created. The format is + // `projects/${projectId}/locations/global/catalogs/${catalogId}/branches/${branchId}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "retail.googleapis.com/Branch" } + ]; + + // Required. The filter string to specify the products to be deleted with a + // length limit of 5,000 characters. + // + // Empty string filter is not allowed. "*" implies delete all items in a + // branch. + // + // The eligible fields for filtering are: + // + // * `availability`: Double quoted + // [Product.availability][google.cloud.retail.v2beta.Product.availability] + // string. + // * `create_time` : in ISO 8601 "zulu" format. + // + // Supported syntax: + // + // * Comparators (">", "<", ">=", "<=", "="). + // Examples: + // * create_time <= "2015-02-13T17:05:46Z" + // * availability = "IN_STOCK" + // + // * Conjunctions ("AND") + // Examples: + // * create_time <= "2015-02-13T17:05:46Z" AND availability = "PREORDER" + // + // * Disjunctions ("OR") + // Examples: + // * create_time <= "2015-02-13T17:05:46Z" OR availability = "IN_STOCK" + // + // * Can support nested queries. + // Examples: + // * (create_time <= "2015-02-13T17:05:46Z" AND availability = "PREORDER") + // OR (create_time >= "2015-02-14T13:03:32Z" AND availability = "IN_STOCK") + // + // * Filter Limits: + // * Filter should not contain more than 6 conditions. + // * Max nesting depth should not exceed 2 levels. + // + // Examples queries: + // * Delete back order products created before a timestamp. + // create_time <= "2015-02-13T17:05:46Z" OR availability = "BACKORDER" + string filter = 2 [(google.api.field_behavior) = REQUIRED]; + + // Actually perform the purge. + // If `force` is set to false, the method will return the expected purge count + // without deleting any products. + bool force = 3; +} + +// Response of the PurgeProductsRequest. If the long running operation is +// successfully done, then this message is returned by the +// google.longrunning.Operations.response field. +message PurgeProductsResponse { + // The total count of products purged as a result of the operation. + int64 purge_count = 1; + + // A sample of the product names that will be deleted. + // Only populated if `force` is set to false. A max of 100 names will be + // returned and the names are chosen at random. + repeated string purge_sample = 2 [ + (google.api.resource_reference) = { type: "retail.googleapis.com/Product" } + ]; +} + // Request message for PurgeUserEvents method. message PurgeUserEventsRequest { // Required. The resource name of the catalog under which the events are diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/proto/google/cloud/retail/v2beta/search_service.proto b/java-retail/proto-google-cloud-retail-v2beta/src/main/proto/google/cloud/retail/v2beta/search_service.proto index bd5d66737287..5768df56df22 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/proto/google/cloud/retail/v2beta/search_service.proto +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/proto/google/cloud/retail/v2beta/search_service.proto @@ -119,13 +119,13 @@ message SearchRequest { // values. Maximum number of intervals is 40. // // For all numerical facet keys that appear in the list of products from - // the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are + // the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are // computed from their distribution weekly. If the model assigns a high // score to a numerical facet key and its intervals are not specified in - // the search request, these percentiles will become the bounds - // for its intervals and will be returned in the response. If the + // the search request, these percentiles become the bounds + // for its intervals and are returned in the response. If the // facet key intervals are specified in the request, then the specified - // intervals will be returned instead. + // intervals are returned instead. repeated Interval intervals = 2; // Only get facet for the given restricted values. For example, when using @@ -158,14 +158,14 @@ message SearchRequest { // Only get facet values that start with the given string prefix. For // example, suppose "categories" has three values "Women > Shoe", // "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the - // "categories" facet will give only "Women > Shoe" and "Women > Dress". + // "categories" facet gives only "Women > Shoe" and "Women > Dress". // Only supported on textual fields. Maximum is 10. repeated string prefixes = 8; // Only get facet values that contains the given strings. For example, // suppose "categories" has three values "Women > Shoe", // "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the - // "categories" facet will give only "Women > Shoe" and "Men > Shoe". + // "categories" facet gives only "Women > Shoe" and "Men > Shoe". // Only supported on textual fields. Maximum is 10. repeated string contains = 9; @@ -198,7 +198,7 @@ message SearchRequest { string order_by = 4; // The query that is used to compute facet for the given facet key. - // When provided, it will override the default behavior of facet + // When provided, it overrides the default behavior of facet // computation. The query syntax is the same as a filter expression. See // [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter] // for detail syntax and limitations. Notice that there is no limitation @@ -208,9 +208,9 @@ message SearchRequest { // // In the response, // [SearchResponse.Facet.values.value][google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue.value] - // will be always "1" and + // is always "1" and // [SearchResponse.Facet.values.count][google.cloud.retail.v2beta.SearchResponse.Facet.FacetValue.count] - // will be the number of results that match the query. + // is the number of results that match the query. // // For example, you can set a customized facet for "shipToStore", // where @@ -218,7 +218,7 @@ message SearchRequest { // is "customizedShipToStore", and // [FacetKey.query][google.cloud.retail.v2beta.SearchRequest.FacetSpec.FacetKey.query] // is "availability: ANY(\"IN_STOCK\") AND shipToStore: ANY(\"123\")". - // Then the facet will count the products that are both in stock and ship + // Then the facet counts the products that are both in stock and ship // to store "123". string query = 5; @@ -269,15 +269,15 @@ message SearchRequest { // Enables dynamic position for this facet. If set to true, the position of // this facet among all facets in the response is determined by Google - // Retail Search. It will be ordered together with dynamic facets if dynamic + // Retail Search. It is ordered together with dynamic facets if dynamic // facets is enabled. If set to false, the position of this facet in the - // response will be the same as in the request, and it will be ranked before + // response is the same as in the request, and it is ranked before // the facets with dynamic position enable and all dynamic facets. // // For example, you may always want to have rating facet returned in // the response, but it's not necessarily to always display the rating facet // at the top. In that case, you can set enable_dynamic_position to true so - // that the position of rating facet in response will be determined by + // that the position of rating facet in response is determined by // Google Retail Search. // // Another example, assuming you have the following facets in the request: @@ -288,13 +288,13 @@ message SearchRequest { // // * "brands", enable_dynamic_position = false // - // And also you have a dynamic facets enable, which will generate a facet - // 'gender'. Then the final order of the facets in the response can be + // And also you have a dynamic facets enable, which generates a facet + // "gender". Then, the final order of the facets in the response can be // ("price", "brands", "rating", "gender") or ("price", "brands", "gender", // "rating") depends on how Google Retail Search orders "gender" and - // "rating" facets. However, notice that "price" and "brands" will always be - // ranked at 1st and 2nd position since their enable_dynamic_position are - // false. + // "rating" facets. However, notice that "price" and "brands" are always + // ranked at first and second position because their enable_dynamic_position + // values are false. bool enable_dynamic_position = 4; } @@ -492,7 +492,7 @@ message SearchRequest { // or the name of the legacy placement resource, such as // `projects/*/locations/global/catalogs/default_catalog/placements/default_search`. // This field is used to identify the serving config name and the set - // of models that will be used to make the search. + // of models that are used to make the search. string placement = 1 [(google.api.field_behavior) = REQUIRED]; // The branch resource name, such as @@ -557,8 +557,8 @@ message SearchRequest { // The filter syntax consists of an expression language for constructing a // predicate from one or more fields of the products being filtered. Filter - // expression is case-sensitive. See more details at this [user - // guide](https://cloud.google.com/retail/docs/filter-and-order#filter). + // expression is case-sensitive. For more information, see + // [Filter](https://cloud.google.com/retail/docs/filter-and-order#filter). // // If this field is unrecognizable, an INVALID_ARGUMENT is returned. string filter = 10; @@ -567,21 +567,21 @@ message SearchRequest { // checking any filters on the search page. // // The filter applied to every search request when quality improvement such as - // query expansion is needed. For example, if a query does not have enough - // results, an expanded query with - // [SearchRequest.canonical_filter][google.cloud.retail.v2beta.SearchRequest.canonical_filter] - // will be returned as a supplement of the original query. This field is - // strongly recommended to achieve high search quality. + // query expansion is needed. In the case a query does not have a sufficient + // amount of results this filter will be used to determine whether or not to + // enable the query expansion flow. The original filter will still be used for + // the query expanded search. + // This field is strongly recommended to achieve high search quality. // - // See [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter] - // for more details about filter syntax. + // For more information about filter syntax, see + // [SearchRequest.filter][google.cloud.retail.v2beta.SearchRequest.filter]. string canonical_filter = 28; // The order in which products are returned. Products can be ordered by // a field in an [Product][google.cloud.retail.v2beta.Product] object. Leave - // it unset if ordered by relevance. OrderBy expression is case-sensitive. See - // more details at this [user - // guide](https://cloud.google.com/retail/docs/filter-and-order#order). + // it unset if ordered by relevance. OrderBy expression is case-sensitive. For + // more information, see + // [Order](https://cloud.google.com/retail/docs/filter-and-order#order). // // If this field is unrecognizable, an INVALID_ARGUMENT is returned. string order_by = 11; @@ -599,8 +599,8 @@ message SearchRequest { // textual facets can be dynamically generated. DynamicFacetSpec dynamic_facet_spec = 21 [deprecated = true]; - // Boost specification to boost certain products. See more details at this - // [user guide](https://cloud.google.com/retail/docs/boosting). + // Boost specification to boost certain products. For more information, see + // [Boost results](https://cloud.google.com/retail/docs/boosting). // // Notice that if both // [ServingConfig.boost_control_ids][google.cloud.retail.v2beta.ServingConfig.boost_control_ids] @@ -612,8 +612,8 @@ message SearchRequest { BoostSpec boost_spec = 13; // The query expansion specification that specifies the conditions under which - // query expansion will occur. See more details at this [user - // guide](https://cloud.google.com/retail/docs/result-size#query_expansion). + // query expansion occurs. For more information, see [Query + // expansion](https://cloud.google.com/retail/docs/result-size#query_expansion). QueryExpansionSpec query_expansion_spec = 14; // The keys to fetch and rollup the matching @@ -732,9 +732,9 @@ message SearchRequest { // key with multiple resources. // * Keys must start with a lowercase letter or international character. // - // See [Google Cloud - // Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - // for more details. + // For more information, see [Requirements for + // labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) + // in the Resource Manager documentation. map labels = 34; // The spell correction specification that specifies the mode under @@ -953,7 +953,7 @@ message SearchResponse { repeated ExperimentInfo experiment_info = 17; } -// Metadata for active A/B testing [Experiments][]. +// Metadata for active A/B testing [Experiment][]. message ExperimentInfo { // Metadata for active serving config A/B tests. message ServingConfigExperiment { @@ -966,8 +966,8 @@ message ExperimentInfo { }]; // The fully qualified resource name of the serving config - // [VariantArm.serving_config_id][] responsible for generating the search - // response. For example: + // [Experiment.VariantArm.serving_config_id][] responsible for generating + // the search response. For example: // `projects/*/locations/*/catalogs/*/servingConfigs/*`. string experiment_serving_config = 2 [(google.api.resource_reference) = { type: "retail.googleapis.com/ServingConfig" diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/proto/google/cloud/retail/v2beta/serving_config.proto b/java-retail/proto-google-cloud-retail-v2beta/src/main/proto/google/cloud/retail/v2beta/serving_config.proto index ccc70237a303..94d0675d826c 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/proto/google/cloud/retail/v2beta/serving_config.proto +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/proto/google/cloud/retail/v2beta/serving_config.proto @@ -255,6 +255,10 @@ message ServingConfig { // [SOLUTION_TYPE_RECOMMENDATION][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_RECOMMENDATION]. string enable_category_filter_level = 16; + // When the flag is enabled, the products in the denylist will not be filtered + // out in the recommendation filtering results. + bool ignore_recs_denylist = 24; + // The specification for personalization spec. // // Can only be set if diff --git a/java-retail/proto-google-cloud-retail-v2beta/src/main/proto/google/cloud/retail/v2beta/user_event.proto b/java-retail/proto-google-cloud-retail-v2beta/src/main/proto/google/cloud/retail/v2beta/user_event.proto index e1b52903495f..aab2ae31a2d2 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/src/main/proto/google/cloud/retail/v2beta/user_event.proto +++ b/java-retail/proto-google-cloud-retail-v2beta/src/main/proto/google/cloud/retail/v2beta/user_event.proto @@ -37,6 +37,7 @@ message UserEvent { // Required. User event type. Allowed values are: // // * `add-to-cart`: Products being added to cart. + // * `remove-from-cart`: Products being removed from cart. // * `category-page-view`: Special pages such as sale or promotion pages // viewed. // * `detail-page-view`: Products detail page viewed. @@ -272,8 +273,8 @@ message UserEvent { // The entity for customers that may run multiple different entities, domains, // sites or regions, for example, `Google US`, `Google Ads`, `Waymo`, // `google.com`, `youtube.com`, etc. - // It is recommended to set this field to get better per-entity search, - // completion and prediction results. + // We recommend that you set this field to get better per-entity search, + // completion, and prediction results. string entity = 23; } diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/completionservice/completequery/AsyncCompleteQuery.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/completionservice/completequery/AsyncCompleteQuery.java index 961829b59ebc..6cf9c5ba4a7d 100644 --- a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/completionservice/completequery/AsyncCompleteQuery.java +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/completionservice/completequery/AsyncCompleteQuery.java @@ -46,6 +46,7 @@ public static void asyncCompleteQuery() throws Exception { .setDeviceType("deviceType781190832") .setDataset("dataset1443214456") .setMaxSuggestions(618824852) + .setEnableAttributeSuggestions(true) .setEntity("entity-1298275357") .build(); ApiFuture future = diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/completionservice/completequery/SyncCompleteQuery.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/completionservice/completequery/SyncCompleteQuery.java index 92d57264fb9c..9cc6697d6900 100644 --- a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/completionservice/completequery/SyncCompleteQuery.java +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/completionservice/completequery/SyncCompleteQuery.java @@ -45,6 +45,7 @@ public static void syncCompleteQuery() throws Exception { .setDeviceType("deviceType781190832") .setDataset("dataset1443214456") .setMaxSuggestions(618824852) + .setEnableAttributeSuggestions(true) .setEntity("entity-1298275357") .build(); CompleteQueryResponse response = completionServiceClient.completeQuery(request); diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/productservice/purgeproducts/AsyncPurgeProducts.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/productservice/purgeproducts/AsyncPurgeProducts.java new file mode 100644 index 000000000000..1ed9d450c635 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/productservice/purgeproducts/AsyncPurgeProducts.java @@ -0,0 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2.samples; + +// [START retail_v2_generated_ProductService_PurgeProducts_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.retail.v2.BranchName; +import com.google.cloud.retail.v2.ProductServiceClient; +import com.google.cloud.retail.v2.PurgeProductsRequest; +import com.google.longrunning.Operation; + +public class AsyncPurgeProducts { + + public static void main(String[] args) throws Exception { + asyncPurgeProducts(); + } + + public static void asyncPurgeProducts() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ProductServiceClient productServiceClient = ProductServiceClient.create()) { + PurgeProductsRequest request = + PurgeProductsRequest.newBuilder() + .setParent( + BranchName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]").toString()) + .setFilter("filter-1274492040") + .setForce(true) + .build(); + ApiFuture future = + productServiceClient.purgeProductsCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END retail_v2_generated_ProductService_PurgeProducts_async] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/productservice/purgeproducts/AsyncPurgeProductsLRO.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/productservice/purgeproducts/AsyncPurgeProductsLRO.java new file mode 100644 index 000000000000..3f2a7d8a7aa3 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/productservice/purgeproducts/AsyncPurgeProductsLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2.samples; + +// [START retail_v2_generated_ProductService_PurgeProducts_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.retail.v2.BranchName; +import com.google.cloud.retail.v2.ProductServiceClient; +import com.google.cloud.retail.v2.PurgeProductsMetadata; +import com.google.cloud.retail.v2.PurgeProductsRequest; +import com.google.cloud.retail.v2.PurgeProductsResponse; + +public class AsyncPurgeProductsLRO { + + public static void main(String[] args) throws Exception { + asyncPurgeProductsLRO(); + } + + public static void asyncPurgeProductsLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ProductServiceClient productServiceClient = ProductServiceClient.create()) { + PurgeProductsRequest request = + PurgeProductsRequest.newBuilder() + .setParent( + BranchName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]").toString()) + .setFilter("filter-1274492040") + .setForce(true) + .build(); + OperationFuture future = + productServiceClient.purgeProductsOperationCallable().futureCall(request); + // Do something. + PurgeProductsResponse response = future.get(); + } + } +} +// [END retail_v2_generated_ProductService_PurgeProducts_LRO_async] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/productservice/purgeproducts/SyncPurgeProducts.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/productservice/purgeproducts/SyncPurgeProducts.java new file mode 100644 index 000000000000..3b1275cc5250 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2/productservice/purgeproducts/SyncPurgeProducts.java @@ -0,0 +1,49 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2.samples; + +// [START retail_v2_generated_ProductService_PurgeProducts_sync] +import com.google.cloud.retail.v2.BranchName; +import com.google.cloud.retail.v2.ProductServiceClient; +import com.google.cloud.retail.v2.PurgeProductsRequest; +import com.google.cloud.retail.v2.PurgeProductsResponse; + +public class SyncPurgeProducts { + + public static void main(String[] args) throws Exception { + syncPurgeProducts(); + } + + public static void syncPurgeProducts() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ProductServiceClient productServiceClient = ProductServiceClient.create()) { + PurgeProductsRequest request = + PurgeProductsRequest.newBuilder() + .setParent( + BranchName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]").toString()) + .setFilter("filter-1274492040") + .setForce(true) + .build(); + PurgeProductsResponse response = productServiceClient.purgeProductsAsync(request).get(); + } + } +} +// [END retail_v2_generated_ProductService_PurgeProducts_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/branchservice/create/SyncCreateSetCredentialsProvider.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/branchservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..b8f8e1e4cc6c --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/branchservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,44 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_BranchService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.retail.v2alpha.BranchServiceClient; +import com.google.cloud.retail.v2alpha.BranchServiceSettings; +import com.google.cloud.retail.v2alpha.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 and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + BranchServiceSettings branchServiceSettings = + BranchServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + BranchServiceClient branchServiceClient = BranchServiceClient.create(branchServiceSettings); + } +} +// [END retail_v2alpha_generated_BranchService_Create_SetCredentialsProvider_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/branchservice/create/SyncCreateSetCredentialsProvider1.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/branchservice/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 000000000000..5e9a32639df9 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/branchservice/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_BranchService_Create_SetCredentialsProvider1_sync] +import com.google.cloud.retail.v2alpha.BranchServiceClient; +import com.google.cloud.retail.v2alpha.BranchServiceSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + BranchServiceSettings branchServiceSettings = + BranchServiceSettings.newHttpJsonBuilder().build(); + BranchServiceClient branchServiceClient = BranchServiceClient.create(branchServiceSettings); + } +} +// [END retail_v2alpha_generated_BranchService_Create_SetCredentialsProvider1_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/branchservice/create/SyncCreateSetEndpoint.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/branchservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..b096fa0af56f --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/branchservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_BranchService_Create_SetEndpoint_sync] +import com.google.cloud.retail.v2alpha.BranchServiceClient; +import com.google.cloud.retail.v2alpha.BranchServiceSettings; +import com.google.cloud.retail.v2alpha.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 and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + BranchServiceSettings branchServiceSettings = + BranchServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + BranchServiceClient branchServiceClient = BranchServiceClient.create(branchServiceSettings); + } +} +// [END retail_v2alpha_generated_BranchService_Create_SetEndpoint_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/branchservice/getbranch/AsyncGetBranch.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/branchservice/getbranch/AsyncGetBranch.java new file mode 100644 index 000000000000..b4185a6b625d --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/branchservice/getbranch/AsyncGetBranch.java @@ -0,0 +1,51 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_BranchService_GetBranch_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.retail.v2alpha.Branch; +import com.google.cloud.retail.v2alpha.BranchName; +import com.google.cloud.retail.v2alpha.BranchServiceClient; +import com.google.cloud.retail.v2alpha.BranchView; +import com.google.cloud.retail.v2alpha.GetBranchRequest; + +public class AsyncGetBranch { + + public static void main(String[] args) throws Exception { + asyncGetBranch(); + } + + public static void asyncGetBranch() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BranchServiceClient branchServiceClient = BranchServiceClient.create()) { + GetBranchRequest request = + GetBranchRequest.newBuilder() + .setName(BranchName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]").toString()) + .setView(BranchView.forNumber(0)) + .build(); + ApiFuture future = branchServiceClient.getBranchCallable().futureCall(request); + // Do something. + Branch response = future.get(); + } + } +} +// [END retail_v2alpha_generated_BranchService_GetBranch_async] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/branchservice/getbranch/SyncGetBranch.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/branchservice/getbranch/SyncGetBranch.java new file mode 100644 index 000000000000..873442b22ccd --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/branchservice/getbranch/SyncGetBranch.java @@ -0,0 +1,48 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_BranchService_GetBranch_sync] +import com.google.cloud.retail.v2alpha.Branch; +import com.google.cloud.retail.v2alpha.BranchName; +import com.google.cloud.retail.v2alpha.BranchServiceClient; +import com.google.cloud.retail.v2alpha.BranchView; +import com.google.cloud.retail.v2alpha.GetBranchRequest; + +public class SyncGetBranch { + + public static void main(String[] args) throws Exception { + syncGetBranch(); + } + + public static void syncGetBranch() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BranchServiceClient branchServiceClient = BranchServiceClient.create()) { + GetBranchRequest request = + GetBranchRequest.newBuilder() + .setName(BranchName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]").toString()) + .setView(BranchView.forNumber(0)) + .build(); + Branch response = branchServiceClient.getBranch(request); + } + } +} +// [END retail_v2alpha_generated_BranchService_GetBranch_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/branchservice/getbranch/SyncGetBranchBranchname.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/branchservice/getbranch/SyncGetBranchBranchname.java new file mode 100644 index 000000000000..4ced16fb0b1d --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/branchservice/getbranch/SyncGetBranchBranchname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_BranchService_GetBranch_Branchname_sync] +import com.google.cloud.retail.v2alpha.Branch; +import com.google.cloud.retail.v2alpha.BranchName; +import com.google.cloud.retail.v2alpha.BranchServiceClient; + +public class SyncGetBranchBranchname { + + public static void main(String[] args) throws Exception { + syncGetBranchBranchname(); + } + + public static void syncGetBranchBranchname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BranchServiceClient branchServiceClient = BranchServiceClient.create()) { + BranchName name = BranchName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]"); + Branch response = branchServiceClient.getBranch(name); + } + } +} +// [END retail_v2alpha_generated_BranchService_GetBranch_Branchname_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/branchservice/getbranch/SyncGetBranchString.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/branchservice/getbranch/SyncGetBranchString.java new file mode 100644 index 000000000000..a6c3b18bb8fd --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/branchservice/getbranch/SyncGetBranchString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_BranchService_GetBranch_String_sync] +import com.google.cloud.retail.v2alpha.Branch; +import com.google.cloud.retail.v2alpha.BranchName; +import com.google.cloud.retail.v2alpha.BranchServiceClient; + +public class SyncGetBranchString { + + public static void main(String[] args) throws Exception { + syncGetBranchString(); + } + + public static void syncGetBranchString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BranchServiceClient branchServiceClient = BranchServiceClient.create()) { + String name = BranchName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]").toString(); + Branch response = branchServiceClient.getBranch(name); + } + } +} +// [END retail_v2alpha_generated_BranchService_GetBranch_String_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/branchservice/listbranches/AsyncListBranches.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/branchservice/listbranches/AsyncListBranches.java new file mode 100644 index 000000000000..606ebb995bcf --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/branchservice/listbranches/AsyncListBranches.java @@ -0,0 +1,52 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_BranchService_ListBranches_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.retail.v2alpha.BranchServiceClient; +import com.google.cloud.retail.v2alpha.BranchView; +import com.google.cloud.retail.v2alpha.CatalogName; +import com.google.cloud.retail.v2alpha.ListBranchesRequest; +import com.google.cloud.retail.v2alpha.ListBranchesResponse; + +public class AsyncListBranches { + + public static void main(String[] args) throws Exception { + asyncListBranches(); + } + + public static void asyncListBranches() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BranchServiceClient branchServiceClient = BranchServiceClient.create()) { + ListBranchesRequest request = + ListBranchesRequest.newBuilder() + .setParent(CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]").toString()) + .setView(BranchView.forNumber(0)) + .build(); + ApiFuture future = + branchServiceClient.listBranchesCallable().futureCall(request); + // Do something. + ListBranchesResponse response = future.get(); + } + } +} +// [END retail_v2alpha_generated_BranchService_ListBranches_async] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/branchservice/listbranches/SyncListBranches.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/branchservice/listbranches/SyncListBranches.java new file mode 100644 index 000000000000..9ee521037224 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/branchservice/listbranches/SyncListBranches.java @@ -0,0 +1,48 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_BranchService_ListBranches_sync] +import com.google.cloud.retail.v2alpha.BranchServiceClient; +import com.google.cloud.retail.v2alpha.BranchView; +import com.google.cloud.retail.v2alpha.CatalogName; +import com.google.cloud.retail.v2alpha.ListBranchesRequest; +import com.google.cloud.retail.v2alpha.ListBranchesResponse; + +public class SyncListBranches { + + public static void main(String[] args) throws Exception { + syncListBranches(); + } + + public static void syncListBranches() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BranchServiceClient branchServiceClient = BranchServiceClient.create()) { + ListBranchesRequest request = + ListBranchesRequest.newBuilder() + .setParent(CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]").toString()) + .setView(BranchView.forNumber(0)) + .build(); + ListBranchesResponse response = branchServiceClient.listBranches(request); + } + } +} +// [END retail_v2alpha_generated_BranchService_ListBranches_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/branchservice/listbranches/SyncListBranchesCatalogname.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/branchservice/listbranches/SyncListBranchesCatalogname.java new file mode 100644 index 000000000000..b1376f4e2b6b --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/branchservice/listbranches/SyncListBranchesCatalogname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_BranchService_ListBranches_Catalogname_sync] +import com.google.cloud.retail.v2alpha.BranchServiceClient; +import com.google.cloud.retail.v2alpha.CatalogName; +import com.google.cloud.retail.v2alpha.ListBranchesResponse; + +public class SyncListBranchesCatalogname { + + public static void main(String[] args) throws Exception { + syncListBranchesCatalogname(); + } + + public static void syncListBranchesCatalogname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BranchServiceClient branchServiceClient = BranchServiceClient.create()) { + CatalogName parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]"); + ListBranchesResponse response = branchServiceClient.listBranches(parent); + } + } +} +// [END retail_v2alpha_generated_BranchService_ListBranches_Catalogname_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/branchservice/listbranches/SyncListBranchesString.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/branchservice/listbranches/SyncListBranchesString.java new file mode 100644 index 000000000000..3aa8c4dc6819 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/branchservice/listbranches/SyncListBranchesString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_BranchService_ListBranches_String_sync] +import com.google.cloud.retail.v2alpha.BranchServiceClient; +import com.google.cloud.retail.v2alpha.CatalogName; +import com.google.cloud.retail.v2alpha.ListBranchesResponse; + +public class SyncListBranchesString { + + public static void main(String[] args) throws Exception { + syncListBranchesString(); + } + + public static void syncListBranchesString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (BranchServiceClient branchServiceClient = BranchServiceClient.create()) { + String parent = CatalogName.of("[PROJECT]", "[LOCATION]", "[CATALOG]").toString(); + ListBranchesResponse response = branchServiceClient.listBranches(parent); + } + } +} +// [END retail_v2alpha_generated_BranchService_ListBranches_String_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/branchservicesettings/listbranches/SyncListBranches.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/branchservicesettings/listbranches/SyncListBranches.java new file mode 100644 index 000000000000..a0b43d6e2615 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/branchservicesettings/listbranches/SyncListBranches.java @@ -0,0 +1,48 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_BranchServiceSettings_ListBranches_sync] +import com.google.cloud.retail.v2alpha.BranchServiceSettings; +import java.time.Duration; + +public class SyncListBranches { + + public static void main(String[] args) throws Exception { + syncListBranches(); + } + + public static void syncListBranches() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + BranchServiceSettings.Builder branchServiceSettingsBuilder = BranchServiceSettings.newBuilder(); + branchServiceSettingsBuilder + .listBranchesSettings() + .setRetrySettings( + branchServiceSettingsBuilder + .listBranchesSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + BranchServiceSettings branchServiceSettings = branchServiceSettingsBuilder.build(); + } +} +// [END retail_v2alpha_generated_BranchServiceSettings_ListBranches_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/acceptterms/AsyncAcceptTerms.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/acceptterms/AsyncAcceptTerms.java new file mode 100644 index 000000000000..c003a8d3c830 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/acceptterms/AsyncAcceptTerms.java @@ -0,0 +1,49 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_ProjectService_AcceptTerms_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.retail.v2alpha.AcceptTermsRequest; +import com.google.cloud.retail.v2alpha.Project; +import com.google.cloud.retail.v2alpha.ProjectServiceClient; +import com.google.cloud.retail.v2alpha.RetailProjectName; + +public class AsyncAcceptTerms { + + public static void main(String[] args) throws Exception { + asyncAcceptTerms(); + } + + public static void asyncAcceptTerms() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) { + AcceptTermsRequest request = + AcceptTermsRequest.newBuilder() + .setProject(RetailProjectName.of("[PROJECT]").toString()) + .build(); + ApiFuture future = projectServiceClient.acceptTermsCallable().futureCall(request); + // Do something. + Project response = future.get(); + } + } +} +// [END retail_v2alpha_generated_ProjectService_AcceptTerms_async] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/acceptterms/SyncAcceptTerms.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/acceptterms/SyncAcceptTerms.java new file mode 100644 index 000000000000..40f7c908b5ec --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/acceptterms/SyncAcceptTerms.java @@ -0,0 +1,46 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_ProjectService_AcceptTerms_sync] +import com.google.cloud.retail.v2alpha.AcceptTermsRequest; +import com.google.cloud.retail.v2alpha.Project; +import com.google.cloud.retail.v2alpha.ProjectServiceClient; +import com.google.cloud.retail.v2alpha.RetailProjectName; + +public class SyncAcceptTerms { + + public static void main(String[] args) throws Exception { + syncAcceptTerms(); + } + + public static void syncAcceptTerms() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) { + AcceptTermsRequest request = + AcceptTermsRequest.newBuilder() + .setProject(RetailProjectName.of("[PROJECT]").toString()) + .build(); + Project response = projectServiceClient.acceptTerms(request); + } + } +} +// [END retail_v2alpha_generated_ProjectService_AcceptTerms_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/acceptterms/SyncAcceptTermsRetailprojectname.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/acceptterms/SyncAcceptTermsRetailprojectname.java new file mode 100644 index 000000000000..3eb35245a7b5 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/acceptterms/SyncAcceptTermsRetailprojectname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_ProjectService_AcceptTerms_Retailprojectname_sync] +import com.google.cloud.retail.v2alpha.Project; +import com.google.cloud.retail.v2alpha.ProjectServiceClient; +import com.google.cloud.retail.v2alpha.RetailProjectName; + +public class SyncAcceptTermsRetailprojectname { + + public static void main(String[] args) throws Exception { + syncAcceptTermsRetailprojectname(); + } + + public static void syncAcceptTermsRetailprojectname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) { + RetailProjectName project = RetailProjectName.of("[PROJECT]"); + Project response = projectServiceClient.acceptTerms(project); + } + } +} +// [END retail_v2alpha_generated_ProjectService_AcceptTerms_Retailprojectname_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/acceptterms/SyncAcceptTermsString.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/acceptterms/SyncAcceptTermsString.java new file mode 100644 index 000000000000..5bd6d89077a9 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/acceptterms/SyncAcceptTermsString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_ProjectService_AcceptTerms_String_sync] +import com.google.cloud.retail.v2alpha.Project; +import com.google.cloud.retail.v2alpha.ProjectServiceClient; +import com.google.cloud.retail.v2alpha.RetailProjectName; + +public class SyncAcceptTermsString { + + public static void main(String[] args) throws Exception { + syncAcceptTermsString(); + } + + public static void syncAcceptTermsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) { + String project = RetailProjectName.of("[PROJECT]").toString(); + Project response = projectServiceClient.acceptTerms(project); + } + } +} +// [END retail_v2alpha_generated_ProjectService_AcceptTerms_String_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/create/SyncCreateSetCredentialsProvider.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..fb9c8cf2c8e2 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,44 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_ProjectService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.retail.v2alpha.ProjectServiceClient; +import com.google.cloud.retail.v2alpha.ProjectServiceSettings; +import com.google.cloud.retail.v2alpha.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 and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ProjectServiceSettings projectServiceSettings = + ProjectServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + ProjectServiceClient projectServiceClient = ProjectServiceClient.create(projectServiceSettings); + } +} +// [END retail_v2alpha_generated_ProjectService_Create_SetCredentialsProvider_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/create/SyncCreateSetCredentialsProvider1.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 000000000000..1ccb6159454d --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,40 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_ProjectService_Create_SetCredentialsProvider1_sync] +import com.google.cloud.retail.v2alpha.ProjectServiceClient; +import com.google.cloud.retail.v2alpha.ProjectServiceSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ProjectServiceSettings projectServiceSettings = + ProjectServiceSettings.newHttpJsonBuilder().build(); + ProjectServiceClient projectServiceClient = ProjectServiceClient.create(projectServiceSettings); + } +} +// [END retail_v2alpha_generated_ProjectService_Create_SetCredentialsProvider1_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/create/SyncCreateSetEndpoint.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..a7001e3e046c --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_ProjectService_Create_SetEndpoint_sync] +import com.google.cloud.retail.v2alpha.ProjectServiceClient; +import com.google.cloud.retail.v2alpha.ProjectServiceSettings; +import com.google.cloud.retail.v2alpha.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 and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ProjectServiceSettings projectServiceSettings = + ProjectServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + ProjectServiceClient projectServiceClient = ProjectServiceClient.create(projectServiceSettings); + } +} +// [END retail_v2alpha_generated_ProjectService_Create_SetEndpoint_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/enrollsolution/AsyncEnrollSolution.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/enrollsolution/AsyncEnrollSolution.java new file mode 100644 index 000000000000..5cea01edcb14 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/enrollsolution/AsyncEnrollSolution.java @@ -0,0 +1,52 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_ProjectService_EnrollSolution_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.retail.v2alpha.EnrollSolutionRequest; +import com.google.cloud.retail.v2alpha.ProjectName; +import com.google.cloud.retail.v2alpha.ProjectServiceClient; +import com.google.cloud.retail.v2alpha.SolutionType; +import com.google.longrunning.Operation; + +public class AsyncEnrollSolution { + + public static void main(String[] args) throws Exception { + asyncEnrollSolution(); + } + + public static void asyncEnrollSolution() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) { + EnrollSolutionRequest request = + EnrollSolutionRequest.newBuilder() + .setProject(ProjectName.of("[PROJECT]").toString()) + .setSolution(SolutionType.forNumber(0)) + .build(); + ApiFuture future = + projectServiceClient.enrollSolutionCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END retail_v2alpha_generated_ProjectService_EnrollSolution_async] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/enrollsolution/AsyncEnrollSolutionLRO.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/enrollsolution/AsyncEnrollSolutionLRO.java new file mode 100644 index 000000000000..7aff2e1865fc --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/enrollsolution/AsyncEnrollSolutionLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_ProjectService_EnrollSolution_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.retail.v2alpha.EnrollSolutionMetadata; +import com.google.cloud.retail.v2alpha.EnrollSolutionRequest; +import com.google.cloud.retail.v2alpha.EnrollSolutionResponse; +import com.google.cloud.retail.v2alpha.ProjectName; +import com.google.cloud.retail.v2alpha.ProjectServiceClient; +import com.google.cloud.retail.v2alpha.SolutionType; + +public class AsyncEnrollSolutionLRO { + + public static void main(String[] args) throws Exception { + asyncEnrollSolutionLRO(); + } + + public static void asyncEnrollSolutionLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) { + EnrollSolutionRequest request = + EnrollSolutionRequest.newBuilder() + .setProject(ProjectName.of("[PROJECT]").toString()) + .setSolution(SolutionType.forNumber(0)) + .build(); + OperationFuture future = + projectServiceClient.enrollSolutionOperationCallable().futureCall(request); + // Do something. + EnrollSolutionResponse response = future.get(); + } + } +} +// [END retail_v2alpha_generated_ProjectService_EnrollSolution_LRO_async] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/enrollsolution/SyncEnrollSolution.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/enrollsolution/SyncEnrollSolution.java new file mode 100644 index 000000000000..832806ff0a42 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/enrollsolution/SyncEnrollSolution.java @@ -0,0 +1,48 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_ProjectService_EnrollSolution_sync] +import com.google.cloud.retail.v2alpha.EnrollSolutionRequest; +import com.google.cloud.retail.v2alpha.EnrollSolutionResponse; +import com.google.cloud.retail.v2alpha.ProjectName; +import com.google.cloud.retail.v2alpha.ProjectServiceClient; +import com.google.cloud.retail.v2alpha.SolutionType; + +public class SyncEnrollSolution { + + public static void main(String[] args) throws Exception { + syncEnrollSolution(); + } + + public static void syncEnrollSolution() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) { + EnrollSolutionRequest request = + EnrollSolutionRequest.newBuilder() + .setProject(ProjectName.of("[PROJECT]").toString()) + .setSolution(SolutionType.forNumber(0)) + .build(); + EnrollSolutionResponse response = projectServiceClient.enrollSolutionAsync(request).get(); + } + } +} +// [END retail_v2alpha_generated_ProjectService_EnrollSolution_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/getalertconfig/AsyncGetAlertConfig.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/getalertconfig/AsyncGetAlertConfig.java new file mode 100644 index 000000000000..52a7db7fee70 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/getalertconfig/AsyncGetAlertConfig.java @@ -0,0 +1,50 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_ProjectService_GetAlertConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.retail.v2alpha.AlertConfig; +import com.google.cloud.retail.v2alpha.AlertConfigName; +import com.google.cloud.retail.v2alpha.GetAlertConfigRequest; +import com.google.cloud.retail.v2alpha.ProjectServiceClient; + +public class AsyncGetAlertConfig { + + public static void main(String[] args) throws Exception { + asyncGetAlertConfig(); + } + + public static void asyncGetAlertConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) { + GetAlertConfigRequest request = + GetAlertConfigRequest.newBuilder() + .setName(AlertConfigName.of("[PROJECT]").toString()) + .build(); + ApiFuture future = + projectServiceClient.getAlertConfigCallable().futureCall(request); + // Do something. + AlertConfig response = future.get(); + } + } +} +// [END retail_v2alpha_generated_ProjectService_GetAlertConfig_async] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/getalertconfig/SyncGetAlertConfig.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/getalertconfig/SyncGetAlertConfig.java new file mode 100644 index 000000000000..45e183d63502 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/getalertconfig/SyncGetAlertConfig.java @@ -0,0 +1,46 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_ProjectService_GetAlertConfig_sync] +import com.google.cloud.retail.v2alpha.AlertConfig; +import com.google.cloud.retail.v2alpha.AlertConfigName; +import com.google.cloud.retail.v2alpha.GetAlertConfigRequest; +import com.google.cloud.retail.v2alpha.ProjectServiceClient; + +public class SyncGetAlertConfig { + + public static void main(String[] args) throws Exception { + syncGetAlertConfig(); + } + + public static void syncGetAlertConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) { + GetAlertConfigRequest request = + GetAlertConfigRequest.newBuilder() + .setName(AlertConfigName.of("[PROJECT]").toString()) + .build(); + AlertConfig response = projectServiceClient.getAlertConfig(request); + } + } +} +// [END retail_v2alpha_generated_ProjectService_GetAlertConfig_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/getalertconfig/SyncGetAlertConfigAlertconfigname.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/getalertconfig/SyncGetAlertConfigAlertconfigname.java new file mode 100644 index 000000000000..583bb0074855 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/getalertconfig/SyncGetAlertConfigAlertconfigname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_ProjectService_GetAlertConfig_Alertconfigname_sync] +import com.google.cloud.retail.v2alpha.AlertConfig; +import com.google.cloud.retail.v2alpha.AlertConfigName; +import com.google.cloud.retail.v2alpha.ProjectServiceClient; + +public class SyncGetAlertConfigAlertconfigname { + + public static void main(String[] args) throws Exception { + syncGetAlertConfigAlertconfigname(); + } + + public static void syncGetAlertConfigAlertconfigname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) { + AlertConfigName name = AlertConfigName.of("[PROJECT]"); + AlertConfig response = projectServiceClient.getAlertConfig(name); + } + } +} +// [END retail_v2alpha_generated_ProjectService_GetAlertConfig_Alertconfigname_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/getalertconfig/SyncGetAlertConfigString.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/getalertconfig/SyncGetAlertConfigString.java new file mode 100644 index 000000000000..e296dc1c0e2f --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/getalertconfig/SyncGetAlertConfigString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_ProjectService_GetAlertConfig_String_sync] +import com.google.cloud.retail.v2alpha.AlertConfig; +import com.google.cloud.retail.v2alpha.AlertConfigName; +import com.google.cloud.retail.v2alpha.ProjectServiceClient; + +public class SyncGetAlertConfigString { + + public static void main(String[] args) throws Exception { + syncGetAlertConfigString(); + } + + public static void syncGetAlertConfigString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) { + String name = AlertConfigName.of("[PROJECT]").toString(); + AlertConfig response = projectServiceClient.getAlertConfig(name); + } + } +} +// [END retail_v2alpha_generated_ProjectService_GetAlertConfig_String_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/getloggingconfig/AsyncGetLoggingConfig.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/getloggingconfig/AsyncGetLoggingConfig.java new file mode 100644 index 000000000000..2b1bf28a66a3 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/getloggingconfig/AsyncGetLoggingConfig.java @@ -0,0 +1,50 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_ProjectService_GetLoggingConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.retail.v2alpha.GetLoggingConfigRequest; +import com.google.cloud.retail.v2alpha.LoggingConfig; +import com.google.cloud.retail.v2alpha.LoggingConfigName; +import com.google.cloud.retail.v2alpha.ProjectServiceClient; + +public class AsyncGetLoggingConfig { + + public static void main(String[] args) throws Exception { + asyncGetLoggingConfig(); + } + + public static void asyncGetLoggingConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) { + GetLoggingConfigRequest request = + GetLoggingConfigRequest.newBuilder() + .setName(LoggingConfigName.of("[PROJECT]").toString()) + .build(); + ApiFuture future = + projectServiceClient.getLoggingConfigCallable().futureCall(request); + // Do something. + LoggingConfig response = future.get(); + } + } +} +// [END retail_v2alpha_generated_ProjectService_GetLoggingConfig_async] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/getloggingconfig/SyncGetLoggingConfig.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/getloggingconfig/SyncGetLoggingConfig.java new file mode 100644 index 000000000000..6e819ee39d99 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/getloggingconfig/SyncGetLoggingConfig.java @@ -0,0 +1,46 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_ProjectService_GetLoggingConfig_sync] +import com.google.cloud.retail.v2alpha.GetLoggingConfigRequest; +import com.google.cloud.retail.v2alpha.LoggingConfig; +import com.google.cloud.retail.v2alpha.LoggingConfigName; +import com.google.cloud.retail.v2alpha.ProjectServiceClient; + +public class SyncGetLoggingConfig { + + public static void main(String[] args) throws Exception { + syncGetLoggingConfig(); + } + + public static void syncGetLoggingConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) { + GetLoggingConfigRequest request = + GetLoggingConfigRequest.newBuilder() + .setName(LoggingConfigName.of("[PROJECT]").toString()) + .build(); + LoggingConfig response = projectServiceClient.getLoggingConfig(request); + } + } +} +// [END retail_v2alpha_generated_ProjectService_GetLoggingConfig_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/getloggingconfig/SyncGetLoggingConfigLoggingconfigname.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/getloggingconfig/SyncGetLoggingConfigLoggingconfigname.java new file mode 100644 index 000000000000..74bab7cd675c --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/getloggingconfig/SyncGetLoggingConfigLoggingconfigname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_ProjectService_GetLoggingConfig_Loggingconfigname_sync] +import com.google.cloud.retail.v2alpha.LoggingConfig; +import com.google.cloud.retail.v2alpha.LoggingConfigName; +import com.google.cloud.retail.v2alpha.ProjectServiceClient; + +public class SyncGetLoggingConfigLoggingconfigname { + + public static void main(String[] args) throws Exception { + syncGetLoggingConfigLoggingconfigname(); + } + + public static void syncGetLoggingConfigLoggingconfigname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) { + LoggingConfigName name = LoggingConfigName.of("[PROJECT]"); + LoggingConfig response = projectServiceClient.getLoggingConfig(name); + } + } +} +// [END retail_v2alpha_generated_ProjectService_GetLoggingConfig_Loggingconfigname_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/getloggingconfig/SyncGetLoggingConfigString.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/getloggingconfig/SyncGetLoggingConfigString.java new file mode 100644 index 000000000000..bad6b045117b --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/getloggingconfig/SyncGetLoggingConfigString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_ProjectService_GetLoggingConfig_String_sync] +import com.google.cloud.retail.v2alpha.LoggingConfig; +import com.google.cloud.retail.v2alpha.LoggingConfigName; +import com.google.cloud.retail.v2alpha.ProjectServiceClient; + +public class SyncGetLoggingConfigString { + + public static void main(String[] args) throws Exception { + syncGetLoggingConfigString(); + } + + public static void syncGetLoggingConfigString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) { + String name = LoggingConfigName.of("[PROJECT]").toString(); + LoggingConfig response = projectServiceClient.getLoggingConfig(name); + } + } +} +// [END retail_v2alpha_generated_ProjectService_GetLoggingConfig_String_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/getproject/AsyncGetProject.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/getproject/AsyncGetProject.java new file mode 100644 index 000000000000..04e08a9ab1a8 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/getproject/AsyncGetProject.java @@ -0,0 +1,49 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_ProjectService_GetProject_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.retail.v2alpha.GetProjectRequest; +import com.google.cloud.retail.v2alpha.Project; +import com.google.cloud.retail.v2alpha.ProjectServiceClient; +import com.google.cloud.retail.v2alpha.RetailProjectName; + +public class AsyncGetProject { + + public static void main(String[] args) throws Exception { + asyncGetProject(); + } + + public static void asyncGetProject() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) { + GetProjectRequest request = + GetProjectRequest.newBuilder() + .setName(RetailProjectName.of("[PROJECT]").toString()) + .build(); + ApiFuture future = projectServiceClient.getProjectCallable().futureCall(request); + // Do something. + Project response = future.get(); + } + } +} +// [END retail_v2alpha_generated_ProjectService_GetProject_async] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/getproject/SyncGetProject.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/getproject/SyncGetProject.java new file mode 100644 index 000000000000..3ece47f967ff --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/getproject/SyncGetProject.java @@ -0,0 +1,46 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_ProjectService_GetProject_sync] +import com.google.cloud.retail.v2alpha.GetProjectRequest; +import com.google.cloud.retail.v2alpha.Project; +import com.google.cloud.retail.v2alpha.ProjectServiceClient; +import com.google.cloud.retail.v2alpha.RetailProjectName; + +public class SyncGetProject { + + public static void main(String[] args) throws Exception { + syncGetProject(); + } + + public static void syncGetProject() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) { + GetProjectRequest request = + GetProjectRequest.newBuilder() + .setName(RetailProjectName.of("[PROJECT]").toString()) + .build(); + Project response = projectServiceClient.getProject(request); + } + } +} +// [END retail_v2alpha_generated_ProjectService_GetProject_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/getproject/SyncGetProjectRetailprojectname.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/getproject/SyncGetProjectRetailprojectname.java new file mode 100644 index 000000000000..9e5f3c94cf94 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/getproject/SyncGetProjectRetailprojectname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_ProjectService_GetProject_Retailprojectname_sync] +import com.google.cloud.retail.v2alpha.Project; +import com.google.cloud.retail.v2alpha.ProjectServiceClient; +import com.google.cloud.retail.v2alpha.RetailProjectName; + +public class SyncGetProjectRetailprojectname { + + public static void main(String[] args) throws Exception { + syncGetProjectRetailprojectname(); + } + + public static void syncGetProjectRetailprojectname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) { + RetailProjectName name = RetailProjectName.of("[PROJECT]"); + Project response = projectServiceClient.getProject(name); + } + } +} +// [END retail_v2alpha_generated_ProjectService_GetProject_Retailprojectname_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/getproject/SyncGetProjectString.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/getproject/SyncGetProjectString.java new file mode 100644 index 000000000000..52be2f96eca8 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/getproject/SyncGetProjectString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_ProjectService_GetProject_String_sync] +import com.google.cloud.retail.v2alpha.Project; +import com.google.cloud.retail.v2alpha.ProjectServiceClient; +import com.google.cloud.retail.v2alpha.RetailProjectName; + +public class SyncGetProjectString { + + public static void main(String[] args) throws Exception { + syncGetProjectString(); + } + + public static void syncGetProjectString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) { + String name = RetailProjectName.of("[PROJECT]").toString(); + Project response = projectServiceClient.getProject(name); + } + } +} +// [END retail_v2alpha_generated_ProjectService_GetProject_String_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/listenrolledsolutions/AsyncListEnrolledSolutions.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/listenrolledsolutions/AsyncListEnrolledSolutions.java new file mode 100644 index 000000000000..52addf7fdfec --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/listenrolledsolutions/AsyncListEnrolledSolutions.java @@ -0,0 +1,50 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_ProjectService_ListEnrolledSolutions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest; +import com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse; +import com.google.cloud.retail.v2alpha.ProjectName; +import com.google.cloud.retail.v2alpha.ProjectServiceClient; + +public class AsyncListEnrolledSolutions { + + public static void main(String[] args) throws Exception { + asyncListEnrolledSolutions(); + } + + public static void asyncListEnrolledSolutions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) { + ListEnrolledSolutionsRequest request = + ListEnrolledSolutionsRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .build(); + ApiFuture future = + projectServiceClient.listEnrolledSolutionsCallable().futureCall(request); + // Do something. + ListEnrolledSolutionsResponse response = future.get(); + } + } +} +// [END retail_v2alpha_generated_ProjectService_ListEnrolledSolutions_async] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/listenrolledsolutions/SyncListEnrolledSolutions.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/listenrolledsolutions/SyncListEnrolledSolutions.java new file mode 100644 index 000000000000..c919e31d9d72 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/listenrolledsolutions/SyncListEnrolledSolutions.java @@ -0,0 +1,46 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_ProjectService_ListEnrolledSolutions_sync] +import com.google.cloud.retail.v2alpha.ListEnrolledSolutionsRequest; +import com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse; +import com.google.cloud.retail.v2alpha.ProjectName; +import com.google.cloud.retail.v2alpha.ProjectServiceClient; + +public class SyncListEnrolledSolutions { + + public static void main(String[] args) throws Exception { + syncListEnrolledSolutions(); + } + + public static void syncListEnrolledSolutions() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) { + ListEnrolledSolutionsRequest request = + ListEnrolledSolutionsRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .build(); + ListEnrolledSolutionsResponse response = projectServiceClient.listEnrolledSolutions(request); + } + } +} +// [END retail_v2alpha_generated_ProjectService_ListEnrolledSolutions_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/listenrolledsolutions/SyncListEnrolledSolutionsProjectname.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/listenrolledsolutions/SyncListEnrolledSolutionsProjectname.java new file mode 100644 index 000000000000..b33b1775b1ef --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/listenrolledsolutions/SyncListEnrolledSolutionsProjectname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_ProjectService_ListEnrolledSolutions_Projectname_sync] +import com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse; +import com.google.cloud.retail.v2alpha.ProjectName; +import com.google.cloud.retail.v2alpha.ProjectServiceClient; + +public class SyncListEnrolledSolutionsProjectname { + + public static void main(String[] args) throws Exception { + syncListEnrolledSolutionsProjectname(); + } + + public static void syncListEnrolledSolutionsProjectname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) { + ProjectName parent = ProjectName.of("[PROJECT]"); + ListEnrolledSolutionsResponse response = projectServiceClient.listEnrolledSolutions(parent); + } + } +} +// [END retail_v2alpha_generated_ProjectService_ListEnrolledSolutions_Projectname_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/listenrolledsolutions/SyncListEnrolledSolutionsString.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/listenrolledsolutions/SyncListEnrolledSolutionsString.java new file mode 100644 index 000000000000..fc28b4fc855c --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/listenrolledsolutions/SyncListEnrolledSolutionsString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_ProjectService_ListEnrolledSolutions_String_sync] +import com.google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse; +import com.google.cloud.retail.v2alpha.ProjectName; +import com.google.cloud.retail.v2alpha.ProjectServiceClient; + +public class SyncListEnrolledSolutionsString { + + public static void main(String[] args) throws Exception { + syncListEnrolledSolutionsString(); + } + + public static void syncListEnrolledSolutionsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) { + String parent = ProjectName.of("[PROJECT]").toString(); + ListEnrolledSolutionsResponse response = projectServiceClient.listEnrolledSolutions(parent); + } + } +} +// [END retail_v2alpha_generated_ProjectService_ListEnrolledSolutions_String_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/updatealertconfig/AsyncUpdateAlertConfig.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/updatealertconfig/AsyncUpdateAlertConfig.java new file mode 100644 index 000000000000..7a0d31404be6 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/updatealertconfig/AsyncUpdateAlertConfig.java @@ -0,0 +1,51 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_ProjectService_UpdateAlertConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.retail.v2alpha.AlertConfig; +import com.google.cloud.retail.v2alpha.ProjectServiceClient; +import com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateAlertConfig { + + public static void main(String[] args) throws Exception { + asyncUpdateAlertConfig(); + } + + public static void asyncUpdateAlertConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) { + UpdateAlertConfigRequest request = + UpdateAlertConfigRequest.newBuilder() + .setAlertConfig(AlertConfig.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + projectServiceClient.updateAlertConfigCallable().futureCall(request); + // Do something. + AlertConfig response = future.get(); + } + } +} +// [END retail_v2alpha_generated_ProjectService_UpdateAlertConfig_async] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/updatealertconfig/SyncUpdateAlertConfig.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/updatealertconfig/SyncUpdateAlertConfig.java new file mode 100644 index 000000000000..b5763813d901 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/updatealertconfig/SyncUpdateAlertConfig.java @@ -0,0 +1,47 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_ProjectService_UpdateAlertConfig_sync] +import com.google.cloud.retail.v2alpha.AlertConfig; +import com.google.cloud.retail.v2alpha.ProjectServiceClient; +import com.google.cloud.retail.v2alpha.UpdateAlertConfigRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateAlertConfig { + + public static void main(String[] args) throws Exception { + syncUpdateAlertConfig(); + } + + public static void syncUpdateAlertConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) { + UpdateAlertConfigRequest request = + UpdateAlertConfigRequest.newBuilder() + .setAlertConfig(AlertConfig.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + AlertConfig response = projectServiceClient.updateAlertConfig(request); + } + } +} +// [END retail_v2alpha_generated_ProjectService_UpdateAlertConfig_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/updatealertconfig/SyncUpdateAlertConfigAlertconfigFieldmask.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/updatealertconfig/SyncUpdateAlertConfigAlertconfigFieldmask.java new file mode 100644 index 000000000000..12d29d751b00 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/updatealertconfig/SyncUpdateAlertConfigAlertconfigFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_ProjectService_UpdateAlertConfig_AlertconfigFieldmask_sync] +import com.google.cloud.retail.v2alpha.AlertConfig; +import com.google.cloud.retail.v2alpha.ProjectServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateAlertConfigAlertconfigFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateAlertConfigAlertconfigFieldmask(); + } + + public static void syncUpdateAlertConfigAlertconfigFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) { + AlertConfig alertConfig = AlertConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + AlertConfig response = projectServiceClient.updateAlertConfig(alertConfig, updateMask); + } + } +} +// [END retail_v2alpha_generated_ProjectService_UpdateAlertConfig_AlertconfigFieldmask_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/updateloggingconfig/AsyncUpdateLoggingConfig.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/updateloggingconfig/AsyncUpdateLoggingConfig.java new file mode 100644 index 000000000000..df70b8f9f3a1 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/updateloggingconfig/AsyncUpdateLoggingConfig.java @@ -0,0 +1,51 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_ProjectService_UpdateLoggingConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.retail.v2alpha.LoggingConfig; +import com.google.cloud.retail.v2alpha.ProjectServiceClient; +import com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateLoggingConfig { + + public static void main(String[] args) throws Exception { + asyncUpdateLoggingConfig(); + } + + public static void asyncUpdateLoggingConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) { + UpdateLoggingConfigRequest request = + UpdateLoggingConfigRequest.newBuilder() + .setLoggingConfig(LoggingConfig.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + projectServiceClient.updateLoggingConfigCallable().futureCall(request); + // Do something. + LoggingConfig response = future.get(); + } + } +} +// [END retail_v2alpha_generated_ProjectService_UpdateLoggingConfig_async] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/updateloggingconfig/SyncUpdateLoggingConfig.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/updateloggingconfig/SyncUpdateLoggingConfig.java new file mode 100644 index 000000000000..7f7ebfbc1cde --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/updateloggingconfig/SyncUpdateLoggingConfig.java @@ -0,0 +1,47 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_ProjectService_UpdateLoggingConfig_sync] +import com.google.cloud.retail.v2alpha.LoggingConfig; +import com.google.cloud.retail.v2alpha.ProjectServiceClient; +import com.google.cloud.retail.v2alpha.UpdateLoggingConfigRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateLoggingConfig { + + public static void main(String[] args) throws Exception { + syncUpdateLoggingConfig(); + } + + public static void syncUpdateLoggingConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) { + UpdateLoggingConfigRequest request = + UpdateLoggingConfigRequest.newBuilder() + .setLoggingConfig(LoggingConfig.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + LoggingConfig response = projectServiceClient.updateLoggingConfig(request); + } + } +} +// [END retail_v2alpha_generated_ProjectService_UpdateLoggingConfig_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/updateloggingconfig/SyncUpdateLoggingConfigLoggingconfigFieldmask.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/updateloggingconfig/SyncUpdateLoggingConfigLoggingconfigFieldmask.java new file mode 100644 index 000000000000..ff68e6dce377 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservice/updateloggingconfig/SyncUpdateLoggingConfigLoggingconfigFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_ProjectService_UpdateLoggingConfig_LoggingconfigFieldmask_sync] +import com.google.cloud.retail.v2alpha.LoggingConfig; +import com.google.cloud.retail.v2alpha.ProjectServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateLoggingConfigLoggingconfigFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateLoggingConfigLoggingconfigFieldmask(); + } + + public static void syncUpdateLoggingConfigLoggingconfigFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ProjectServiceClient projectServiceClient = ProjectServiceClient.create()) { + LoggingConfig loggingConfig = LoggingConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + LoggingConfig response = projectServiceClient.updateLoggingConfig(loggingConfig, updateMask); + } + } +} +// [END retail_v2alpha_generated_ProjectService_UpdateLoggingConfig_LoggingconfigFieldmask_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservicesettings/getproject/SyncGetProject.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservicesettings/getproject/SyncGetProject.java new file mode 100644 index 000000000000..a822807ed97c --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/projectservicesettings/getproject/SyncGetProject.java @@ -0,0 +1,49 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.samples; + +// [START retail_v2alpha_generated_ProjectServiceSettings_GetProject_sync] +import com.google.cloud.retail.v2alpha.ProjectServiceSettings; +import java.time.Duration; + +public class SyncGetProject { + + public static void main(String[] args) throws Exception { + syncGetProject(); + } + + public static void syncGetProject() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ProjectServiceSettings.Builder projectServiceSettingsBuilder = + ProjectServiceSettings.newBuilder(); + projectServiceSettingsBuilder + .getProjectSettings() + .setRetrySettings( + projectServiceSettingsBuilder + .getProjectSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + ProjectServiceSettings projectServiceSettings = projectServiceSettingsBuilder.build(); + } +} +// [END retail_v2alpha_generated_ProjectServiceSettings_GetProject_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/stub/branchservicestubsettings/listbranches/SyncListBranches.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/stub/branchservicestubsettings/listbranches/SyncListBranches.java new file mode 100644 index 000000000000..4f1a29000101 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/stub/branchservicestubsettings/listbranches/SyncListBranches.java @@ -0,0 +1,49 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.stub.samples; + +// [START retail_v2alpha_generated_BranchServiceStubSettings_ListBranches_sync] +import com.google.cloud.retail.v2alpha.stub.BranchServiceStubSettings; +import java.time.Duration; + +public class SyncListBranches { + + public static void main(String[] args) throws Exception { + syncListBranches(); + } + + public static void syncListBranches() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + BranchServiceStubSettings.Builder branchServiceSettingsBuilder = + BranchServiceStubSettings.newBuilder(); + branchServiceSettingsBuilder + .listBranchesSettings() + .setRetrySettings( + branchServiceSettingsBuilder + .listBranchesSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + BranchServiceStubSettings branchServiceSettings = branchServiceSettingsBuilder.build(); + } +} +// [END retail_v2alpha_generated_BranchServiceStubSettings_ListBranches_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/stub/projectservicestubsettings/getproject/SyncGetProject.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/stub/projectservicestubsettings/getproject/SyncGetProject.java new file mode 100644 index 000000000000..ff1e5b3dac11 --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2alpha/stub/projectservicestubsettings/getproject/SyncGetProject.java @@ -0,0 +1,49 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2alpha.stub.samples; + +// [START retail_v2alpha_generated_ProjectServiceStubSettings_GetProject_sync] +import com.google.cloud.retail.v2alpha.stub.ProjectServiceStubSettings; +import java.time.Duration; + +public class SyncGetProject { + + public static void main(String[] args) throws Exception { + syncGetProject(); + } + + public static void syncGetProject() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + ProjectServiceStubSettings.Builder projectServiceSettingsBuilder = + ProjectServiceStubSettings.newBuilder(); + projectServiceSettingsBuilder + .getProjectSettings() + .setRetrySettings( + projectServiceSettingsBuilder + .getProjectSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + ProjectServiceStubSettings projectServiceSettings = projectServiceSettingsBuilder.build(); + } +} +// [END retail_v2alpha_generated_ProjectServiceStubSettings_GetProject_sync] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/completionservice/completequery/AsyncCompleteQuery.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/completionservice/completequery/AsyncCompleteQuery.java index 622d6462b5b2..02865189263d 100644 --- a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/completionservice/completequery/AsyncCompleteQuery.java +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/completionservice/completequery/AsyncCompleteQuery.java @@ -46,6 +46,7 @@ public static void asyncCompleteQuery() throws Exception { .setDeviceType("deviceType781190832") .setDataset("dataset1443214456") .setMaxSuggestions(618824852) + .setEnableAttributeSuggestions(true) .setEntity("entity-1298275357") .build(); ApiFuture future = diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/completionservice/completequery/SyncCompleteQuery.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/completionservice/completequery/SyncCompleteQuery.java index a01680d13026..d161ac427514 100644 --- a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/completionservice/completequery/SyncCompleteQuery.java +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/completionservice/completequery/SyncCompleteQuery.java @@ -45,6 +45,7 @@ public static void syncCompleteQuery() throws Exception { .setDeviceType("deviceType781190832") .setDataset("dataset1443214456") .setMaxSuggestions(618824852) + .setEnableAttributeSuggestions(true) .setEntity("entity-1298275357") .build(); CompleteQueryResponse response = completionServiceClient.completeQuery(request); diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/productservice/purgeproducts/AsyncPurgeProducts.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/productservice/purgeproducts/AsyncPurgeProducts.java new file mode 100644 index 000000000000..253cb19a492a --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/productservice/purgeproducts/AsyncPurgeProducts.java @@ -0,0 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2beta.samples; + +// [START retail_v2beta_generated_ProductService_PurgeProducts_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.retail.v2beta.BranchName; +import com.google.cloud.retail.v2beta.ProductServiceClient; +import com.google.cloud.retail.v2beta.PurgeProductsRequest; +import com.google.longrunning.Operation; + +public class AsyncPurgeProducts { + + public static void main(String[] args) throws Exception { + asyncPurgeProducts(); + } + + public static void asyncPurgeProducts() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ProductServiceClient productServiceClient = ProductServiceClient.create()) { + PurgeProductsRequest request = + PurgeProductsRequest.newBuilder() + .setParent( + BranchName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]").toString()) + .setFilter("filter-1274492040") + .setForce(true) + .build(); + ApiFuture future = + productServiceClient.purgeProductsCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END retail_v2beta_generated_ProductService_PurgeProducts_async] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/productservice/purgeproducts/AsyncPurgeProductsLRO.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/productservice/purgeproducts/AsyncPurgeProductsLRO.java new file mode 100644 index 000000000000..e23bac68f39f --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/productservice/purgeproducts/AsyncPurgeProductsLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2beta.samples; + +// [START retail_v2beta_generated_ProductService_PurgeProducts_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.retail.v2beta.BranchName; +import com.google.cloud.retail.v2beta.ProductServiceClient; +import com.google.cloud.retail.v2beta.PurgeProductsMetadata; +import com.google.cloud.retail.v2beta.PurgeProductsRequest; +import com.google.cloud.retail.v2beta.PurgeProductsResponse; + +public class AsyncPurgeProductsLRO { + + public static void main(String[] args) throws Exception { + asyncPurgeProductsLRO(); + } + + public static void asyncPurgeProductsLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ProductServiceClient productServiceClient = ProductServiceClient.create()) { + PurgeProductsRequest request = + PurgeProductsRequest.newBuilder() + .setParent( + BranchName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]").toString()) + .setFilter("filter-1274492040") + .setForce(true) + .build(); + OperationFuture future = + productServiceClient.purgeProductsOperationCallable().futureCall(request); + // Do something. + PurgeProductsResponse response = future.get(); + } + } +} +// [END retail_v2beta_generated_ProductService_PurgeProducts_LRO_async] diff --git a/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/productservice/purgeproducts/SyncPurgeProducts.java b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/productservice/purgeproducts/SyncPurgeProducts.java new file mode 100644 index 000000000000..e0104f55f99c --- /dev/null +++ b/java-retail/samples/snippets/generated/com/google/cloud/retail/v2beta/productservice/purgeproducts/SyncPurgeProducts.java @@ -0,0 +1,49 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.retail.v2beta.samples; + +// [START retail_v2beta_generated_ProductService_PurgeProducts_sync] +import com.google.cloud.retail.v2beta.BranchName; +import com.google.cloud.retail.v2beta.ProductServiceClient; +import com.google.cloud.retail.v2beta.PurgeProductsRequest; +import com.google.cloud.retail.v2beta.PurgeProductsResponse; + +public class SyncPurgeProducts { + + public static void main(String[] args) throws Exception { + syncPurgeProducts(); + } + + public static void syncPurgeProducts() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ProductServiceClient productServiceClient = ProductServiceClient.create()) { + PurgeProductsRequest request = + PurgeProductsRequest.newBuilder() + .setParent( + BranchName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]").toString()) + .setFilter("filter-1274492040") + .setForce(true) + .build(); + PurgeProductsResponse response = productServiceClient.purgeProductsAsync(request).get(); + } + } +} +// [END retail_v2beta_generated_ProductService_PurgeProducts_sync] diff --git a/java-securitycentermanagement/README.md b/java-securitycentermanagement/README.md index 61ff6b693569..909cdfc4ad41 100644 --- a/java-securitycentermanagement/README.md +++ b/java-securitycentermanagement/README.md @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-securitycentermanagement.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycentermanagement/0.12.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycentermanagement/0.13.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateSecurityCenterServiceRequest.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateSecurityCenterServiceRequest.java index f391688f7357..638684da2a62 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateSecurityCenterServiceRequest.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateSecurityCenterServiceRequest.java @@ -186,13 +186,13 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
-   * Optional. When set to true, only validations (including IAM checks) will
+   * Optional. When set to true, only validations (including IAM checks) will be
    * done for the request (service will not be updated). An OK response
-   * indicates the request is valid while an error response indicates the
-   * request is invalid. Note that a subsequent request to actually update the
-   * service could still fail because 1. the state could have changed (e.g. IAM
-   * permission lost) or
-   * 2. A failure occurred while trying to delete the module.
+   * indicates that the request is valid, while an error response indicates that
+   * the request is invalid. Note that a subsequent request to actually update
+   * the service could still fail for one of the following reasons:
+   * - The state could have changed (e.g. IAM permission lost).
+   * - A failure occurred while trying to delete the module.
    * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1089,13 +1089,13 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
-     * Optional. When set to true, only validations (including IAM checks) will
+     * Optional. When set to true, only validations (including IAM checks) will be
      * done for the request (service will not be updated). An OK response
-     * indicates the request is valid while an error response indicates the
-     * request is invalid. Note that a subsequent request to actually update the
-     * service could still fail because 1. the state could have changed (e.g. IAM
-     * permission lost) or
-     * 2. A failure occurred while trying to delete the module.
+     * indicates that the request is valid, while an error response indicates that
+     * the request is invalid. Note that a subsequent request to actually update
+     * the service could still fail for one of the following reasons:
+     * - The state could have changed (e.g. IAM permission lost).
+     * - A failure occurred while trying to delete the module.
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1110,13 +1110,13 @@ public boolean getValidateOnly() { * * *
-     * Optional. When set to true, only validations (including IAM checks) will
+     * Optional. When set to true, only validations (including IAM checks) will be
      * done for the request (service will not be updated). An OK response
-     * indicates the request is valid while an error response indicates the
-     * request is invalid. Note that a subsequent request to actually update the
-     * service could still fail because 1. the state could have changed (e.g. IAM
-     * permission lost) or
-     * 2. A failure occurred while trying to delete the module.
+     * indicates that the request is valid, while an error response indicates that
+     * the request is invalid. Note that a subsequent request to actually update
+     * the service could still fail for one of the following reasons:
+     * - The state could have changed (e.g. IAM permission lost).
+     * - A failure occurred while trying to delete the module.
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1135,13 +1135,13 @@ public Builder setValidateOnly(boolean value) { * * *
-     * Optional. When set to true, only validations (including IAM checks) will
+     * Optional. When set to true, only validations (including IAM checks) will be
      * done for the request (service will not be updated). An OK response
-     * indicates the request is valid while an error response indicates the
-     * request is invalid. Note that a subsequent request to actually update the
-     * service could still fail because 1. the state could have changed (e.g. IAM
-     * permission lost) or
-     * 2. A failure occurred while trying to delete the module.
+     * indicates that the request is valid, while an error response indicates that
+     * the request is invalid. Note that a subsequent request to actually update
+     * the service could still fail for one of the following reasons:
+     * - The state could have changed (e.g. IAM permission lost).
+     * - A failure occurred while trying to delete the module.
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateSecurityCenterServiceRequestOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateSecurityCenterServiceRequestOrBuilder.java index 9f27c9beac30..98c2205ca1ca 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateSecurityCenterServiceRequestOrBuilder.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/UpdateSecurityCenterServiceRequestOrBuilder.java @@ -117,13 +117,13 @@ public interface UpdateSecurityCenterServiceRequestOrBuilder * * *
-   * Optional. When set to true, only validations (including IAM checks) will
+   * Optional. When set to true, only validations (including IAM checks) will be
    * done for the request (service will not be updated). An OK response
-   * indicates the request is valid while an error response indicates the
-   * request is invalid. Note that a subsequent request to actually update the
-   * service could still fail because 1. the state could have changed (e.g. IAM
-   * permission lost) or
-   * 2. A failure occurred while trying to delete the module.
+   * indicates that the request is valid, while an error response indicates that
+   * the request is invalid. Note that a subsequent request to actually update
+   * the service could still fail for one of the following reasons:
+   * - The state could have changed (e.g. IAM permission lost).
+   * - A failure occurred while trying to delete the module.
    * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/proto/google/cloud/securitycentermanagement/v1/security_center_management.proto b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/proto/google/cloud/securitycentermanagement/v1/security_center_management.proto index bf63b1b53112..de29caf7655a 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/proto/google/cloud/securitycentermanagement/v1/security_center_management.proto +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/proto/google/cloud/securitycentermanagement/v1/security_center_management.proto @@ -1667,12 +1667,12 @@ message UpdateSecurityCenterServiceRequest { google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; - // Optional. When set to true, only validations (including IAM checks) will + // Optional. When set to true, only validations (including IAM checks) will be // done for the request (service will not be updated). An OK response - // indicates the request is valid while an error response indicates the - // request is invalid. Note that a subsequent request to actually update the - // service could still fail because 1. the state could have changed (e.g. IAM - // permission lost) or - // 2. A failure occurred while trying to delete the module. + // indicates that the request is valid, while an error response indicates that + // the request is invalid. Note that a subsequent request to actually update + // the service could still fail for one of the following reasons: + // - The state could have changed (e.g. IAM permission lost). + // - A failure occurred while trying to delete the module. bool validate_only = 3 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-shopping-merchant-accounts/README.md b/java-shopping-merchant-accounts/README.md index fda90499209b..20f1dce31ec4 100644 --- a/java-shopping-merchant-accounts/README.md +++ b/java-shopping-merchant-accounts/README.md @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-accounts.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-accounts/0.0.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-accounts/0.1.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/UserServiceClient.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/UserServiceClient.java index 1e92637d9996..155beecac7b5 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/UserServiceClient.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/UserServiceClient.java @@ -721,7 +721,7 @@ public final UnaryCallable updateUserCallable() { * } * * @param parent Required. The parent, which owns this collection of users. Format: - * `accounts/{account} + * `accounts/{account}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListUsersPagedResponse listUsers(AccountName parent) { @@ -751,7 +751,7 @@ public final ListUsersPagedResponse listUsers(AccountName parent) { * } * * @param parent Required. The parent, which owns this collection of users. Format: - * `accounts/{account} + * `accounts/{account}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListUsersPagedResponse listUsers(String parent) { diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/BusinessInfo.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/BusinessInfo.java index 9c43ecfc265f..910e7290d9c4 100644 --- a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/BusinessInfo.java +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/BusinessInfo.java @@ -176,10 +176,10 @@ public com.google.type.PostalAddressOrBuilder getAddressOrBuilder() { * * *
-   * Optional. The phone number of the business.
+   * Output only. The phone number of the business.
    * 
* - * optional .google.type.PhoneNumber phone = 3 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.type.PhoneNumber phone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the phone field is set. @@ -192,10 +192,10 @@ public boolean hasPhone() { * * *
-   * Optional. The phone number of the business.
+   * Output only. The phone number of the business.
    * 
* - * optional .google.type.PhoneNumber phone = 3 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.type.PhoneNumber phone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The phone. @@ -208,10 +208,10 @@ public com.google.type.PhoneNumber getPhone() { * * *
-   * Optional. The phone number of the business.
+   * Output only. The phone number of the business.
    * 
* - * optional .google.type.PhoneNumber phone = 3 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.type.PhoneNumber phone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override @@ -1137,10 +1137,11 @@ public com.google.type.PostalAddressOrBuilder getAddressOrBuilder() { * * *
-     * Optional. The phone number of the business.
+     * Output only. The phone number of the business.
      * 
* - * optional .google.type.PhoneNumber phone = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional .google.type.PhoneNumber phone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the phone field is set. @@ -1152,10 +1153,11 @@ public boolean hasPhone() { * * *
-     * Optional. The phone number of the business.
+     * Output only. The phone number of the business.
      * 
* - * optional .google.type.PhoneNumber phone = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional .google.type.PhoneNumber phone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The phone. @@ -1171,10 +1173,11 @@ public com.google.type.PhoneNumber getPhone() { * * *
-     * Optional. The phone number of the business.
+     * Output only. The phone number of the business.
      * 
* - * optional .google.type.PhoneNumber phone = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional .google.type.PhoneNumber phone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setPhone(com.google.type.PhoneNumber value) { @@ -1194,10 +1197,11 @@ public Builder setPhone(com.google.type.PhoneNumber value) { * * *
-     * Optional. The phone number of the business.
+     * Output only. The phone number of the business.
      * 
* - * optional .google.type.PhoneNumber phone = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional .google.type.PhoneNumber phone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setPhone(com.google.type.PhoneNumber.Builder builderForValue) { @@ -1214,10 +1218,11 @@ public Builder setPhone(com.google.type.PhoneNumber.Builder builderForValue) { * * *
-     * Optional. The phone number of the business.
+     * Output only. The phone number of the business.
      * 
* - * optional .google.type.PhoneNumber phone = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional .google.type.PhoneNumber phone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergePhone(com.google.type.PhoneNumber value) { @@ -1242,10 +1247,11 @@ public Builder mergePhone(com.google.type.PhoneNumber value) { * * *
-     * Optional. The phone number of the business.
+     * Output only. The phone number of the business.
      * 
* - * optional .google.type.PhoneNumber phone = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional .google.type.PhoneNumber phone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearPhone() { @@ -1262,10 +1268,11 @@ public Builder clearPhone() { * * *
-     * Optional. The phone number of the business.
+     * Output only. The phone number of the business.
      * 
* - * optional .google.type.PhoneNumber phone = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional .google.type.PhoneNumber phone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.type.PhoneNumber.Builder getPhoneBuilder() { @@ -1277,10 +1284,11 @@ public com.google.type.PhoneNumber.Builder getPhoneBuilder() { * * *
-     * Optional. The phone number of the business.
+     * Output only. The phone number of the business.
      * 
* - * optional .google.type.PhoneNumber phone = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional .google.type.PhoneNumber phone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.type.PhoneNumberOrBuilder getPhoneOrBuilder() { @@ -1294,10 +1302,11 @@ public com.google.type.PhoneNumberOrBuilder getPhoneOrBuilder() { * * *
-     * Optional. The phone number of the business.
+     * Output only. The phone number of the business.
      * 
* - * optional .google.type.PhoneNumber phone = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * optional .google.type.PhoneNumber phone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/BusinessInfoOrBuilder.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/BusinessInfoOrBuilder.java index f7ffec91bce3..7653dadbc7cb 100644 --- a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/BusinessInfoOrBuilder.java +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/BusinessInfoOrBuilder.java @@ -96,10 +96,10 @@ public interface BusinessInfoOrBuilder * * *
-   * Optional. The phone number of the business.
+   * Output only. The phone number of the business.
    * 
* - * optional .google.type.PhoneNumber phone = 3 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.type.PhoneNumber phone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the phone field is set. @@ -109,10 +109,10 @@ public interface BusinessInfoOrBuilder * * *
-   * Optional. The phone number of the business.
+   * Output only. The phone number of the business.
    * 
* - * optional .google.type.PhoneNumber phone = 3 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.type.PhoneNumber phone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The phone. @@ -122,10 +122,10 @@ public interface BusinessInfoOrBuilder * * *
-   * Optional. The phone number of the business.
+   * Output only. The phone number of the business.
    * 
* - * optional .google.type.PhoneNumber phone = 3 [(.google.api.field_behavior) = OPTIONAL]; + * optional .google.type.PhoneNumber phone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ com.google.type.PhoneNumberOrBuilder getPhoneOrBuilder(); diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/BusinessInfoProto.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/BusinessInfoProto.java index 4242bfff49b0..00164cfb03b6 100644 --- a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/BusinessInfoProto.java +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/BusinessInfoProto.java @@ -63,7 +63,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "address.proto\"\214\004\n\014BusinessInfo\022\021\n\004name\030\001" + " \001(\tB\003\340A\010\0225\n\007address\030\002 \001(\0132\032.google.type" + ".PostalAddressB\003\340A\001H\000\210\001\001\0221\n\005phone\030\003 \001(\0132" - + "\030.google.type.PhoneNumberB\003\340A\001H\001\210\001\001\022l\n\030p" + + "\030.google.type.PhoneNumberB\003\340A\003H\001\210\001\001\022l\n\030p" + "hone_verification_state\030\004 \001(\0162@.google.s" + "hopping.merchant.accounts.v1beta.PhoneVe" + "rificationStateB\003\340A\003H\002\210\001\001\022]\n\020customer_se" diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/ListUsersRequest.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/ListUsersRequest.java index 7f5b5e4cc0b4..f00add30095f 100644 --- a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/ListUsersRequest.java +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/ListUsersRequest.java @@ -73,7 +73,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The parent, which owns this collection of users.
-   * Format: `accounts/{account}
+   * Format: `accounts/{account}`
    * 
* * @@ -99,7 +99,7 @@ public java.lang.String getParent() { * *
    * Required. The parent, which owns this collection of users.
-   * Format: `accounts/{account}
+   * Format: `accounts/{account}`
    * 
* * @@ -598,7 +598,7 @@ public Builder mergeFrom( * *
      * Required. The parent, which owns this collection of users.
-     * Format: `accounts/{account}
+     * Format: `accounts/{account}`
      * 
* * @@ -623,7 +623,7 @@ public java.lang.String getParent() { * *
      * Required. The parent, which owns this collection of users.
-     * Format: `accounts/{account}
+     * Format: `accounts/{account}`
      * 
* * @@ -648,7 +648,7 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * Required. The parent, which owns this collection of users.
-     * Format: `accounts/{account}
+     * Format: `accounts/{account}`
      * 
* * @@ -672,7 +672,7 @@ public Builder setParent(java.lang.String value) { * *
      * Required. The parent, which owns this collection of users.
-     * Format: `accounts/{account}
+     * Format: `accounts/{account}`
      * 
* * @@ -692,7 +692,7 @@ public Builder clearParent() { * *
      * Required. The parent, which owns this collection of users.
-     * Format: `accounts/{account}
+     * Format: `accounts/{account}`
      * 
* * diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/ListUsersRequestOrBuilder.java b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/ListUsersRequestOrBuilder.java index 8443b0787133..320f88122a5f 100644 --- a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/ListUsersRequestOrBuilder.java +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/java/com/google/shopping/merchant/accounts/v1beta/ListUsersRequestOrBuilder.java @@ -29,7 +29,7 @@ public interface ListUsersRequestOrBuilder * *
    * Required. The parent, which owns this collection of users.
-   * Format: `accounts/{account}
+   * Format: `accounts/{account}`
    * 
* * @@ -44,7 +44,7 @@ public interface ListUsersRequestOrBuilder * *
    * Required. The parent, which owns this collection of users.
-   * Format: `accounts/{account}
+   * Format: `accounts/{account}`
    * 
* * diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/proto/google/shopping/merchant/accounts/v1beta/businessinfo.proto b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/proto/google/shopping/merchant/accounts/v1beta/businessinfo.proto index 9190e6fb9458..f2cfed816d6c 100644 --- a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/proto/google/shopping/merchant/accounts/v1beta/businessinfo.proto +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/proto/google/shopping/merchant/accounts/v1beta/businessinfo.proto @@ -72,9 +72,9 @@ message BusinessInfo { optional google.type.PostalAddress address = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The phone number of the business. + // Output only. The phone number of the business. optional google.type.PhoneNumber phone = 3 - [(google.api.field_behavior) = OPTIONAL]; + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The phone verification state of the business. optional PhoneVerificationState phone_verification_state = 4 diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/proto/google/shopping/merchant/accounts/v1beta/user.proto b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/proto/google/shopping/merchant/accounts/v1beta/user.proto index 842a46c8811f..7f4d2bb3cb84 100644 --- a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/proto/google/shopping/merchant/accounts/v1beta/user.proto +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/src/main/proto/google/shopping/merchant/accounts/v1beta/user.proto @@ -185,7 +185,7 @@ message UpdateUserRequest { // Request message for the `ListUsers` method. message ListUsersRequest { // Required. The parent, which owns this collection of users. - // Format: `accounts/{account} + // Format: `accounts/{account}` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/java-shopping-merchant-datasources/README.md b/java-shopping-merchant-datasources/README.md index 7a1931d129c4..01acaee8ebb9 100644 --- a/java-shopping-merchant-datasources/README.md +++ b/java-shopping-merchant-datasources/README.md @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-datasources.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-datasources/0.0.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-datasources/0.1.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/src/main/java/com/google/shopping/merchant/datasources/v1beta/DataSourcesProto.java b/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/src/main/java/com/google/shopping/merchant/datasources/v1beta/DataSourcesProto.java index d070247ac14d..ebe052666d3d 100644 --- a/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/src/main/java/com/google/shopping/merchant/datasources/v1beta/DataSourcesProto.java +++ b/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/src/main/java/com/google/shopping/merchant/datasources/v1beta/DataSourcesProto.java @@ -161,15 +161,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".protobuf.Empty\"D\202\323\344\223\002>\"9/datasources/v1" + "beta/{name=accounts/*/dataSources/*}:fet" + "ch:\001*\032G\312A\032merchantapi.googleapis.com\322A\'h" - + "ttps://www.googleapis.com/auth/contentB\260" - + "\002\n/com.google.shopping.merchant.datasour" + + "ttps://www.googleapis.com/auth/contentB\276" + + "\003\n/com.google.shopping.merchant.datasour" + "ces.v1betaB\020DataSourcesProtoP\001ZWcloud.go" + "ogle.com/go/shopping/merchant/datasource" - + "s/apiv1beta/datasourcespb;datasourcespb\352" - + "A8\n\"merchantapi.googleapis.com/Account\022\022" - + "accounts/{account}\352AT\n%merchantapi.googl" - + "eapis.com/Datasource\022+accounts/{account}" - + "/dataSources/{datasource}b\006proto3" + + "s/apiv1beta/datasourcespb;datasourcespb\252" + + "\002+Google.Shopping.Merchant.DataSources.V" + + "1Beta\312\002+Google\\Shopping\\Merchant\\DataSou" + + "rces\\V1beta\352\002/Google::Shopping::Merchant" + + "::DataSources::V1beta\352A8\n\"merchantapi.go" + + "ogleapis.com/Account\022\022accounts/{account}" + + "\352AT\n%merchantapi.googleapis.com/Datasour" + + "ce\022+accounts/{account}/dataSources/{data" + + "source}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/src/main/java/com/google/shopping/merchant/datasources/v1beta/DatasourcetypesProto.java b/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/src/main/java/com/google/shopping/merchant/datasources/v1beta/DatasourcetypesProto.java index 029b07c9422d..69c51a20b7ea 100644 --- a/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/src/main/java/com/google/shopping/merchant/datasources/v1beta/DatasourcetypesProto.java +++ b/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/src/main/java/com/google/shopping/merchant/datasources/v1beta/DatasourcetypesProto.java @@ -79,12 +79,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "urce\022\032\n\nfeed_label\030\004 \001(\tB\006\340A\002\340A\005\022 \n\020cont" + "ent_language\030\005 \001(\tB\006\340A\002\340A\005\"W\n\023PromotionD" + "ataSource\022\036\n\016target_country\030\001 \001(\tB\006\340A\002\340A" - + "\005\022 \n\020content_language\030\002 \001(\tB\006\340A\002\340A\005B\242\001\n/" + + "\005\022 \n\020content_language\030\002 \001(\tB\006\340A\002\340A\005B\260\002\n/" + "com.google.shopping.merchant.datasources" + ".v1betaB\024DatasourcetypesProtoP\001ZWcloud.g" + "oogle.com/go/shopping/merchant/datasourc" + "es/apiv1beta/datasourcespb;datasourcespb" - + "b\006proto3" + + "\252\002+Google.Shopping.Merchant.DataSources." + + "V1Beta\312\002+Google\\Shopping\\Merchant\\DataSo" + + "urces\\V1beta\352\002/Google::Shopping::Merchan" + + "t::DataSources::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/src/main/java/com/google/shopping/merchant/datasources/v1beta/FileInputsProto.java b/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/src/main/java/com/google/shopping/merchant/datasources/v1beta/FileInputsProto.java index b275ef896e44..4c3d69193231 100644 --- a/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/src/main/java/com/google/shopping/merchant/datasources/v1beta/FileInputsProto.java +++ b/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/src/main/java/com/google/shopping/merchant/datasources/v1beta/FileInputsProto.java @@ -69,12 +69,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022\023\n\017FREQUENCY_DAILY\020\001\022\024\n\020FREQUENCY_WEEKL" + "Y\020\002\022\025\n\021FREQUENCY_MONTHLY\020\003\"Z\n\rFileInputT" + "ype\022\037\n\033FILE_INPUT_TYPE_UNSPECIFIED\020\000\022\n\n\006" - + "UPLOAD\020\001\022\t\n\005FETCH\020\002\022\021\n\rGOOGLE_SHEETS\020\003B\235" - + "\001\n/com.google.shopping.merchant.datasour" + + "UPLOAD\020\001\022\t\n\005FETCH\020\002\022\021\n\rGOOGLE_SHEETS\020\003B\253" + + "\002\n/com.google.shopping.merchant.datasour" + "ces.v1betaB\017FileInputsProtoP\001ZWcloud.goo" + "gle.com/go/shopping/merchant/datasources" - + "/apiv1beta/datasourcespb;datasourcespbb\006" - + "proto3" + + "/apiv1beta/datasourcespb;datasourcespb\252\002" + + "+Google.Shopping.Merchant.DataSources.V1" + + "Beta\312\002+Google\\Shopping\\Merchant\\DataSour" + + "ces\\V1beta\352\002/Google::Shopping::Merchant:" + + ":DataSources::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/src/main/proto/google/shopping/merchant/datasources/v1beta/datasources.proto b/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/src/main/proto/google/shopping/merchant/datasources/v1beta/datasources.proto index 16b114e1b59b..b5d3410f78ac 100644 --- a/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/src/main/proto/google/shopping/merchant/datasources/v1beta/datasources.proto +++ b/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/src/main/proto/google/shopping/merchant/datasources/v1beta/datasources.proto @@ -25,10 +25,13 @@ import "google/protobuf/field_mask.proto"; import "google/shopping/merchant/datasources/v1beta/datasourcetypes.proto"; import "google/shopping/merchant/datasources/v1beta/fileinputs.proto"; +option csharp_namespace = "Google.Shopping.Merchant.DataSources.V1Beta"; option go_package = "cloud.google.com/go/shopping/merchant/datasources/apiv1beta/datasourcespb;datasourcespb"; option java_multiple_files = true; option java_outer_classname = "DataSourcesProto"; option java_package = "com.google.shopping.merchant.datasources.v1beta"; +option php_namespace = "Google\\Shopping\\Merchant\\DataSources\\V1beta"; +option ruby_package = "Google::Shopping::Merchant::DataSources::V1beta"; option (google.api.resource_definition) = { type: "merchantapi.googleapis.com/Account" pattern: "accounts/{account}" diff --git a/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/src/main/proto/google/shopping/merchant/datasources/v1beta/datasourcetypes.proto b/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/src/main/proto/google/shopping/merchant/datasources/v1beta/datasourcetypes.proto index 885c9e0354dd..684c4b855f7e 100644 --- a/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/src/main/proto/google/shopping/merchant/datasources/v1beta/datasourcetypes.proto +++ b/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/src/main/proto/google/shopping/merchant/datasources/v1beta/datasourcetypes.proto @@ -18,10 +18,13 @@ package google.shopping.merchant.datasources.v1beta; import "google/api/field_behavior.proto"; +option csharp_namespace = "Google.Shopping.Merchant.DataSources.V1Beta"; option go_package = "cloud.google.com/go/shopping/merchant/datasources/apiv1beta/datasourcespb;datasourcespb"; option java_multiple_files = true; option java_outer_classname = "DatasourcetypesProto"; option java_package = "com.google.shopping.merchant.datasources.v1beta"; +option php_namespace = "Google\\Shopping\\Merchant\\DataSources\\V1beta"; +option ruby_package = "Google::Shopping::Merchant::DataSources::V1beta"; // The primary data source for local and online products. message PrimaryProductDataSource { diff --git a/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/src/main/proto/google/shopping/merchant/datasources/v1beta/fileinputs.proto b/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/src/main/proto/google/shopping/merchant/datasources/v1beta/fileinputs.proto index a2636b9cf030..25e01db7feca 100644 --- a/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/src/main/proto/google/shopping/merchant/datasources/v1beta/fileinputs.proto +++ b/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/src/main/proto/google/shopping/merchant/datasources/v1beta/fileinputs.proto @@ -20,10 +20,13 @@ import "google/api/field_behavior.proto"; import "google/type/dayofweek.proto"; import "google/type/timeofday.proto"; +option csharp_namespace = "Google.Shopping.Merchant.DataSources.V1Beta"; option go_package = "cloud.google.com/go/shopping/merchant/datasources/apiv1beta/datasourcespb;datasourcespb"; option java_multiple_files = true; option java_outer_classname = "FileInputsProto"; option java_package = "com.google.shopping.merchant.datasources.v1beta"; +option php_namespace = "Google\\Shopping\\Merchant\\DataSources\\V1beta"; +option ruby_package = "Google::Shopping::Merchant::DataSources::V1beta"; // The data specific for file data sources. This field is empty for other // data source inputs. From 8e554b7cc967a8ec636567f889ffd304e4e3408d Mon Sep 17 00:00:00 2001 From: Joe Wang <106995533+JoeWang1127@users.noreply.github.com> Date: Thu, 13 Jun 2024 15:07:47 -0400 Subject: [PATCH 16/33] chore: add image_tag as a param (#10962) --- .github/scripts/hermetic_library_generation.sh | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/scripts/hermetic_library_generation.sh b/.github/scripts/hermetic_library_generation.sh index ee723878c0f5..f57ebb28bca9 100755 --- a/.github/scripts/hermetic_library_generation.sh +++ b/.github/scripts/hermetic_library_generation.sh @@ -21,7 +21,9 @@ set -e # The parameters of this script is: # 1. target_branch, the branch into which the pull request is merged. # 2. current_branch, the branch with which the pull request is associated. -# 3. [optional] generation_config, the path to the generation configuration, +# 3. [optional] image_tag, the tag of gcr.io/cloud-devrel-public-resources/java-library-generation. +# The value will be parsed from the generation configuration if not specified. +# 4. [optional] generation_config, the path to the generation configuration, # the default value is generation_config.yaml in the repository root. while [[ $# -gt 0 ]]; do key="$1" @@ -34,6 +36,10 @@ case "${key}" in current_branch="$2" shift ;; + --image_tag) + image_tag="$2" + shift + ;; --generation_config) generation_config="$2" shift @@ -56,6 +62,10 @@ if [ -z "${current_branch}" ]; then exit 1 fi +if [ -z "${image_tag}" ]; then + image_tag=$(grep "gapic_generator_version" "${generation_config}" | cut -d ':' -f 2 | xargs) +fi + if [ -z "${generation_config}" ]; then generation_config=generation_config.yaml echo "Use default generation config: ${generation_config}" @@ -78,9 +88,6 @@ fi git show "${target_branch}":"${generation_config}" > "${baseline_generation_config}" config_diff=$(diff "${generation_config}" "${baseline_generation_config}" || true) -# parse image tag from the generation configuration. -image_tag=$(grep "gapic_generator_version" "${generation_config}" | cut -d ':' -f 2 | xargs) - # run hermetic code generation docker image. docker run \ --rm \ From 63828c58f7bb83fc439d84e25846870e54a5026c Mon Sep 17 00:00:00 2001 From: Blake Li Date: Fri, 14 Jun 2024 08:47:02 -0400 Subject: [PATCH 17/33] chore: Move the logic of getting image_tag to after generation_config is populated. (#10964) --- .github/scripts/hermetic_library_generation.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/scripts/hermetic_library_generation.sh b/.github/scripts/hermetic_library_generation.sh index f57ebb28bca9..80c61c73d98b 100755 --- a/.github/scripts/hermetic_library_generation.sh +++ b/.github/scripts/hermetic_library_generation.sh @@ -62,15 +62,15 @@ if [ -z "${current_branch}" ]; then exit 1 fi -if [ -z "${image_tag}" ]; then - image_tag=$(grep "gapic_generator_version" "${generation_config}" | cut -d ':' -f 2 | xargs) -fi - if [ -z "${generation_config}" ]; then generation_config=generation_config.yaml echo "Use default generation config: ${generation_config}" fi +if [ -z "${image_tag}" ]; then + image_tag=$(grep "gapic_generator_version" "${generation_config}" | cut -d ':' -f 2 | xargs) +fi + workspace_name="/workspace" baseline_generation_config="baseline_generation_config.yaml" message="chore: generate libraries at $(date)" From acd80251763cfa0ece485ce676819277e3f32221 Mon Sep 17 00:00:00 2001 From: Joe Wang <106995533+JoeWang1127@users.noreply.github.com> Date: Fri, 14 Jun 2024 10:10:21 -0400 Subject: [PATCH 18/33] chore: fix typo in script name (#10965) --- .github/workflows/update_generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update_generation_config.yaml b/.github/workflows/update_generation_config.yaml index 70b513312b7a..3cf773992644 100644 --- a/.github/workflows/update_generation_config.yaml +++ b/.github/workflows/update_generation_config.yaml @@ -35,7 +35,7 @@ jobs: set -x [ -z "$(git config user.email)" ] && git config --global user.email "cloud-java-bot@google.com" [ -z "$(git config user.name)" ] && git config --global user.name "cloud-java-bot" - bash .github/scripts/update_generation_config.sh.sh \ + bash .github/scripts/update_generation_config.sh \ --base_branch "${base_branch}"\ --repo ${{ github.repository }} env: From 3e7752f3daef38affbf7b207f67619ea72f0a404 Mon Sep 17 00:00:00 2001 From: Joe Wang <106995533+JoeWang1127@users.noreply.github.com> Date: Fri, 14 Jun 2024 13:49:51 -0400 Subject: [PATCH 19/33] fix: bind maven local repository in docker environment (#10967) * fix: bind home dir in docker run * update config for testing * chore: generate libraries at Fri Jun 14 14:48:27 UTC 2024 * restore config * Revert "restore config" This reverts commit bb6370c9b8e9a15eb874c19cfb7f761b7e3356d5. * restore config * restore change * add comments --------- Co-authored-by: cloud-java-bot --- .github/scripts/hermetic_library_generation.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/scripts/hermetic_library_generation.sh b/.github/scripts/hermetic_library_generation.sh index 80c61c73d98b..84d69a971fda 100755 --- a/.github/scripts/hermetic_library_generation.sh +++ b/.github/scripts/hermetic_library_generation.sh @@ -17,6 +17,7 @@ set -e # 1. git # 2. gh # 3. docker +# 4. mvn # The parameters of this script is: # 1. target_branch, the branch into which the pull request is merged. @@ -88,12 +89,15 @@ fi git show "${target_branch}":"${generation_config}" > "${baseline_generation_config}" config_diff=$(diff "${generation_config}" "${baseline_generation_config}" || true) +# get .m2 folder so it's mapped into the docker container +m2_folder=$(dirname "$(mvn help:evaluate -Dexpression=settings.localRepository -q -DforceStdout)") + # run hermetic code generation docker image. docker run \ --rm \ -u "$(id -u):$(id -g)" \ -v "$(pwd):${workspace_name}" \ - -v "$HOME"/.m2:/home/.m2 \ + -v "${m2_folder}":/home/.m2 \ gcr.io/cloud-devrel-public-resources/java-library-generation:"${image_tag}" \ --baseline-generation-config-path="${workspace_name}/${baseline_generation_config}" \ --current-generation-config-path="${workspace_name}/${generation_config}" From 14f98251ee1f81d10bd23a21b515a34d2af1f98f Mon Sep 17 00:00:00 2001 From: "copybara-service[bot]" <56741989+copybara-service[bot]@users.noreply.github.com> Date: Mon, 17 Jun 2024 20:35:05 +0000 Subject: [PATCH 20/33] feat: [vertexai] infer location and project when user doesn't specify them. (#10868) PiperOrigin-RevId: 635997756 Co-authored-by: Yvonne Yu --- .../com/google/cloud/vertexai/Constants.java | 4 + .../com/google/cloud/vertexai/VertexAI.java | 67 ++++- .../vertexai/generativeai/ChatSession.java | 108 ++++--- .../generativeai/GenerativeModel.java | 13 +- .../google/cloud/vertexai/VertexAITest.java | 263 +++++++++++++++++- .../generativeai/ChatSessionTest.java | 20 +- .../it/ITGenerativeModelIntegrationTest.java | 16 +- 7 files changed, 435 insertions(+), 56 deletions(-) diff --git a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/Constants.java b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/Constants.java index 3175e0cfcac5..f81cc129cf56 100644 --- a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/Constants.java +++ b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/Constants.java @@ -20,6 +20,10 @@ public final class Constants { // Constants for VertexAI class public static final String USER_AGENT_HEADER = "model-builder"; + static final String DEFAULT_LOCATION = "us-central1"; + static final String GOOGLE_CLOUD_REGION = "GOOGLE_CLOUD_REGION"; + static final String CLOUD_ML_REGION = "CLOUD_ML_REGION"; + static final String GOOGLE_CLOUD_PROJECT = "GOOGLE_CLOUD_PROJECT"; private Constants() {} } diff --git a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/VertexAI.java b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/VertexAI.java index 30abfe14cc51..4071c676adb0 100644 --- a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/VertexAI.java +++ b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/VertexAI.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.FixedHeaderProvider; import com.google.api.gax.rpc.HeaderProvider; import com.google.auth.Credentials; +import com.google.auth.oauth2.GoogleCredentials; import com.google.cloud.vertexai.api.LlmUtilityServiceClient; import com.google.cloud.vertexai.api.LlmUtilityServiceSettings; import com.google.cloud.vertexai.api.PredictionServiceClient; @@ -67,6 +68,11 @@ public class VertexAI implements AutoCloseable { private final transient Supplier predictionClientSupplier; private final transient Supplier llmClientSupplier; + @InternalApi + static Optional getEnvironmentVariable(String envKey) { + return Optional.ofNullable(System.getenv(envKey)); + } + /** * Constructs a VertexAI instance. * @@ -85,6 +91,29 @@ public VertexAI(String projectId, String location) { /* llmClientSupplierOpt= */ Optional.empty()); } + /** + * Constructs a VertexAI instance. + * + *

Note: SDK infers location from runtime environment first. If there is no location + * inferred from runtime environment, SDK will default location to `us-central1`. + * + *

SDK will infer projectId from runtime environment and GoogleCredentials. + * + * @throws java.lang.IllegalArgumentException If there is not projectId inferred from either + * runtime environment or GoogleCredentials + */ + public VertexAI() { + this( + null, + null, + Transport.GRPC, + ImmutableList.of(), + /* credentials= */ Optional.empty(), + /* apiEndpoint= */ Optional.empty(), + /* predictionClientSupplierOpt= */ Optional.empty(), + /* llmClientSupplierOpt= */ Optional.empty()); + } + private VertexAI( String projectId, String location, @@ -98,12 +127,8 @@ private VertexAI( throw new IllegalArgumentException( "At most one of Credentials and scopes should be specified."); } - checkArgument(!Strings.isNullOrEmpty(projectId), "projectId can't be null or empty"); - checkArgument(!Strings.isNullOrEmpty(location), "location can't be null or empty"); checkNotNull(transport, "transport can't be null"); - - this.projectId = projectId; - this.location = location; + this.location = Strings.isNullOrEmpty(location) ? inferLocation() : location; this.transport = transport; if (credentials.isPresent()) { @@ -118,13 +143,15 @@ private VertexAI( .build(); } + this.projectId = Strings.isNullOrEmpty(projectId) ? inferProjectId() : projectId; this.predictionClientSupplier = Suppliers.memoize(predictionClientSupplierOpt.orElse(this::newPredictionServiceClient)); this.llmClientSupplier = Suppliers.memoize(llmClientSupplierOpt.orElse(this::newLlmUtilityClient)); - this.apiEndpoint = apiEndpoint.orElse(String.format("%s-aiplatform.googleapis.com", location)); + this.apiEndpoint = + apiEndpoint.orElse(String.format("%s-aiplatform.googleapis.com", this.location)); } /** Builder for {@link VertexAI}. */ @@ -141,8 +168,6 @@ public static class Builder { private Supplier llmClientSupplier; public VertexAI build() { - checkNotNull(projectId, "projectId must be set."); - checkNotNull(location, "location must be set."); return new VertexAI( projectId, @@ -339,6 +364,32 @@ private LlmUtilityServiceClient newLlmUtilityClient() { } } + private String inferProjectId() { + final String projectNotFoundErrorMessage = + ("Unable to infer your project. Please provide a project Id by one of the following:" + + "\n- Passing a constructor argument by using new VertexAI(String projectId, String" + + " location)" + + "\n- Setting project using 'gcloud config set project my-project'"); + final Optional projectIdOptional = + getEnvironmentVariable(Constants.GOOGLE_CLOUD_PROJECT); + if (projectIdOptional.isPresent()) { + return projectIdOptional.get(); + } + try { + return Optional.ofNullable((GoogleCredentials) this.credentialsProvider.getCredentials()) + .map((credentials) -> credentials.getQuotaProjectId()) + .orElseThrow(() -> new IllegalArgumentException(projectNotFoundErrorMessage)); + } catch (IOException e) { + throw new IllegalArgumentException(projectNotFoundErrorMessage, e); + } + } + + private String inferLocation() { + return getEnvironmentVariable(Constants.GOOGLE_CLOUD_REGION) + .orElse( + getEnvironmentVariable(Constants.CLOUD_ML_REGION).orElse(Constants.DEFAULT_LOCATION)); + } + private LlmUtilityServiceSettings getLlmUtilityServiceClientSettings() throws IOException { LlmUtilityServiceSettings.Builder settingsBuilder; if (transport == Transport.REST) { diff --git a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/ChatSession.java b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/ChatSession.java index 5d3e7dd4df12..9f5b07f1eb93 100644 --- a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/ChatSession.java +++ b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/ChatSession.java @@ -29,19 +29,24 @@ import com.google.cloud.vertexai.api.GenerationConfig; import com.google.cloud.vertexai.api.SafetySetting; import com.google.cloud.vertexai.api.Tool; +import com.google.cloud.vertexai.api.ToolConfig; import com.google.common.collect.ImmutableList; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.Optional; -/** Represents a conversation between the user and the model */ +/** + * Represents a conversation between the user and the model. + * + *

Note: this class is NOT thread-safe. + */ public final class ChatSession { private final GenerativeModel model; private final Optional rootChatSession; private final Optional automaticFunctionCallingResponder; - private List history = new ArrayList<>(); - private int previousHistorySize = 0; + private List history; + private int previousHistorySize; private Optional> currentResponseStream; private Optional currentResponse; @@ -50,7 +55,7 @@ public final class ChatSession { * GenerationConfig) inherits from the model. */ public ChatSession(GenerativeModel model) { - this(model, Optional.empty(), Optional.empty()); + this(model, new ArrayList<>(), 0, Optional.empty(), Optional.empty()); } /** @@ -58,6 +63,9 @@ public ChatSession(GenerativeModel model) { * Configurations of the chat (e.g., GenerationConfig) inherits from the model. * * @param model a {@link GenerativeModel} instance that generates contents in the chat. + * @param history a list of {@link Content} containing interleaving conversation between "user" + * and "model". + * @param previousHistorySize the size of the previous history. * @param rootChatSession a root {@link ChatSession} instance. All the chat history in the current * chat session will be merged to the root chat session. * @param automaticFunctionCallingResponder an {@link AutomaticFunctionCallingResponder} instance @@ -66,10 +74,14 @@ public ChatSession(GenerativeModel model) { */ private ChatSession( GenerativeModel model, + List history, + int previousHistorySize, Optional rootChatSession, Optional automaticFunctionCallingResponder) { checkNotNull(model, "model should not be null"); this.model = model; + this.history = history; + this.previousHistorySize = previousHistorySize; this.rootChatSession = rootChatSession; this.automaticFunctionCallingResponder = automaticFunctionCallingResponder; currentResponseStream = Optional.empty(); @@ -84,15 +96,12 @@ private ChatSession( * @return a new {@link ChatSession} instance with the specified GenerationConfig. */ public ChatSession withGenerationConfig(GenerationConfig generationConfig) { - ChatSession rootChat = rootChatSession.orElse(this); - ChatSession newChatSession = - new ChatSession( - model.withGenerationConfig(generationConfig), - Optional.of(rootChat), - automaticFunctionCallingResponder); - newChatSession.history = history; - newChatSession.previousHistorySize = previousHistorySize; - return newChatSession; + return new ChatSession( + model.withGenerationConfig(generationConfig), + history, + previousHistorySize, + Optional.of(rootChatSession.orElse(this)), + automaticFunctionCallingResponder); } /** @@ -103,15 +112,12 @@ public ChatSession withGenerationConfig(GenerationConfig generationConfig) { * @return a new {@link ChatSession} instance with the specified SafetySettings. */ public ChatSession withSafetySettings(List safetySettings) { - ChatSession rootChat = rootChatSession.orElse(this); - ChatSession newChatSession = - new ChatSession( - model.withSafetySettings(safetySettings), - Optional.of(rootChat), - automaticFunctionCallingResponder); - newChatSession.history = history; - newChatSession.previousHistorySize = previousHistorySize; - return newChatSession; + return new ChatSession( + model.withSafetySettings(safetySettings), + history, + previousHistorySize, + Optional.of(rootChatSession.orElse(this)), + automaticFunctionCallingResponder); } /** @@ -122,13 +128,44 @@ public ChatSession withSafetySettings(List safetySettings) { * @return a new {@link ChatSession} instance with the specified Tools. */ public ChatSession withTools(List tools) { - ChatSession rootChat = rootChatSession.orElse(this); - ChatSession newChatSession = - new ChatSession( - model.withTools(tools), Optional.of(rootChat), automaticFunctionCallingResponder); - newChatSession.history = history; - newChatSession.previousHistorySize = previousHistorySize; - return newChatSession; + return new ChatSession( + model.withTools(tools), + history, + previousHistorySize, + Optional.of(rootChatSession.orElse(this)), + automaticFunctionCallingResponder); + } + + /** + * Creates a copy of the current ChatSession with updated ToolConfig. + * + * @param toolConfig a {@link com.google.cloud.vertexai.api.ToolConfig} that will be used in the + * new ChatSession. + * @return a new {@link ChatSession} instance with the specified ToolConfigs. + */ + public ChatSession withToolConfig(ToolConfig toolConfig) { + return new ChatSession( + model.withToolConfig(toolConfig), + history, + previousHistorySize, + Optional.of(rootChatSession.orElse(this)), + automaticFunctionCallingResponder); + } + + /** + * Creates a copy of the current ChatSession with updated SystemInstruction. + * + * @param systemInstruction a {@link com.google.cloud.vertexai.api.Content} containing system + * instructions. + * @return a new {@link ChatSession} instance with the specified ToolConfigs. + */ + public ChatSession withSystemInstruction(Content systemInstruction) { + return new ChatSession( + model.withSystemInstruction(systemInstruction), + history, + previousHistorySize, + Optional.of(rootChatSession.orElse(this)), + automaticFunctionCallingResponder); } /** @@ -141,13 +178,12 @@ public ChatSession withTools(List tools) { */ public ChatSession withAutomaticFunctionCallingResponder( AutomaticFunctionCallingResponder automaticFunctionCallingResponder) { - ChatSession rootChat = rootChatSession.orElse(this); - ChatSession newChatSession = - new ChatSession( - model, Optional.of(rootChat), Optional.of(automaticFunctionCallingResponder)); - newChatSession.history = history; - newChatSession.previousHistorySize = previousHistorySize; - return newChatSession; + return new ChatSession( + model, + history, + previousHistorySize, + Optional.of(rootChatSession.orElse(this)), + Optional.of(automaticFunctionCallingResponder)); } /** diff --git a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/GenerativeModel.java b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/GenerativeModel.java index d88fdc5da081..ed86b5993607 100644 --- a/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/GenerativeModel.java +++ b/java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/GenerativeModel.java @@ -39,7 +39,13 @@ import java.util.List; import java.util.Optional; -/** This class holds a generative model that can complete what you provided. */ +/** + * This class holds a generative model that can complete what you provided. This class is + * thread-safe. + * + *

Note: The instances of {@link ChatSession} returned by {@link GenerativeModel#startChat()} are + * NOT thread-safe. + */ public final class GenerativeModel { private final String modelName; private final String resourceName; @@ -645,6 +651,11 @@ public Optional getSystemInstruction() { return systemInstruction; } + /** + * Returns a new {@link ChatSession} instance that can be used to start a chat with this model. + * + *

Note: the returned {@link ChatSession} instance is NOT thread-safe. + */ public ChatSession startChat() { return new ChatSession(this); } diff --git a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/VertexAITest.java b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/VertexAITest.java index 9ee2a14c7f79..4d7bfff73fc1 100644 --- a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/VertexAITest.java +++ b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/VertexAITest.java @@ -20,12 +20,15 @@ import static org.junit.Assert.assertThrows; import static org.mockito.ArgumentMatchers.any; import static org.mockito.Mockito.mockStatic; +import static org.mockito.Mockito.when; +import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.auth.oauth2.GoogleCredentials; import com.google.cloud.vertexai.api.PredictionServiceClient; import com.google.cloud.vertexai.api.PredictionServiceSettings; import com.google.common.collect.ImmutableList; import java.io.IOException; +import java.util.Optional; import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; @@ -43,25 +46,156 @@ public final class VertexAITest { private static final String TEST_ENDPOINT = "test_endpoint"; private static final String TEST_DEFAULT_ENDPOINT = String.format("%s-aiplatform.googleapis.com", TEST_LOCATION); + private static final Optional EMPTY_ENV_VAR_OPTIONAL = Optional.ofNullable(null); private VertexAI vertexAi; - @Rule public final MockitoRule mocksRule = MockitoJUnit.rule(); @Mock private GoogleCredentials mockGoogleCredentials; @Mock private PredictionServiceClient mockPredictionServiceClient; + @Mock private GoogleCredentialsProvider.Builder mockCredentialsProviderBuilder; + + @Mock private GoogleCredentialsProvider mockCredentialsProvider; + @Test public void testInstantiateVertexAI_usingConstructor_shouldContainRightFields() throws IOException { vertexAi = new VertexAI(TEST_PROJECT, TEST_LOCATION); + assertThat(vertexAi.getProjectId()).isEqualTo(TEST_PROJECT); assertThat(vertexAi.getLocation()).isEqualTo(TEST_LOCATION); assertThat(vertexAi.getTransport()).isEqualTo(Transport.GRPC); assertThat(vertexAi.getApiEndpoint()).isEqualTo(TEST_DEFAULT_ENDPOINT); } + @Test + public void + testInstantiateVertexAI_usingConstructorNoArgsProjectEnvVarSet_shouldContainRightFields() + throws IOException { + try (MockedStatic mockStaticVertexAI = mockStatic(VertexAI.class)) { + mockStaticVertexAI + .when(() -> VertexAI.getEnvironmentVariable("GOOGLE_CLOUD_REGION")) + .thenReturn(EMPTY_ENV_VAR_OPTIONAL); + mockStaticVertexAI + .when(() -> VertexAI.getEnvironmentVariable("CLOUD_ML_REGION")) + .thenReturn(EMPTY_ENV_VAR_OPTIONAL); + mockStaticVertexAI + .when(() -> VertexAI.getEnvironmentVariable("GOOGLE_CLOUD_PROJECT")) + .thenReturn(Optional.of(TEST_PROJECT)); + + vertexAi = new VertexAI(); + + assertThat(vertexAi.getProjectId()).isEqualTo(TEST_PROJECT); + assertThat(vertexAi.getLocation()).isEqualTo("us-central1"); + assertThat(vertexAi.getTransport()).isEqualTo(Transport.GRPC); + assertThat(vertexAi.getApiEndpoint()).isEqualTo("us-central1-aiplatform.googleapis.com"); + } + } + + @Test + public void + testInstantiateVertexAI_usingConstructorNoArgsProjectEnvVarNotSet_shouldContainRightFields() + throws IOException { + try (MockedStatic mockStaticVertexAI = mockStatic(VertexAI.class); + MockedStatic mockStaticPredictionServiceSettings = + mockStatic(PredictionServiceSettings.class); ) { + mockStaticVertexAI + .when(() -> VertexAI.getEnvironmentVariable("GOOGLE_CLOUD_REGION")) + .thenReturn(EMPTY_ENV_VAR_OPTIONAL); + mockStaticVertexAI + .when(() -> VertexAI.getEnvironmentVariable("CLOUD_ML_REGION")) + .thenReturn(EMPTY_ENV_VAR_OPTIONAL); + mockStaticVertexAI + .when(() -> VertexAI.getEnvironmentVariable("GOOGLE_CLOUD_PROJECT")) + .thenReturn(EMPTY_ENV_VAR_OPTIONAL); + mockStaticPredictionServiceSettings + .when(() -> PredictionServiceSettings.defaultCredentialsProviderBuilder()) + .thenReturn(mockCredentialsProviderBuilder); + when(mockCredentialsProviderBuilder.build()).thenReturn(mockCredentialsProvider); + when(mockCredentialsProvider.getCredentials()).thenReturn(mockGoogleCredentials); + when(mockGoogleCredentials.getQuotaProjectId()).thenReturn(TEST_PROJECT); + + vertexAi = new VertexAI(); + + assertThat(vertexAi.getProjectId()).isEqualTo(TEST_PROJECT); + assertThat(vertexAi.getLocation()).isEqualTo("us-central1"); + assertThat(vertexAi.getTransport()).isEqualTo(Transport.GRPC); + assertThat(vertexAi.getApiEndpoint()).isEqualTo("us-central1-aiplatform.googleapis.com"); + } + } + + @Test + public void + testConstructor_noArgsCredentialsProviderThrowsIOException_shouldThrowIllegalArgumentException() + throws IOException { + try (MockedStatic mockStatic = mockStatic(PredictionServiceSettings.class)) { + final String expectedErrorMessage = + ("Unable to infer your project. Please provide a project Id by one of the following:" + + "\n- Passing a constructor argument by using new VertexAI(String projectId, String" + + " location)" + + "\n- Setting project using 'gcloud config set project my-project'"); + mockStatic + .when(() -> PredictionServiceSettings.defaultCredentialsProviderBuilder()) + .thenReturn(mockCredentialsProviderBuilder); + when(mockCredentialsProviderBuilder.build()).thenReturn(mockCredentialsProvider); + when(mockCredentialsProvider.getCredentials()).thenThrow(new IOException("")); + + IllegalArgumentException thrown = + assertThrows(IllegalArgumentException.class, () -> new VertexAI()); + assertThat(thrown).hasMessageThat().contains(expectedErrorMessage); + } + } + + @Test + public void + testInstantiateVertexAI_usingConstructorLocationFromGOOGLE_CLOUD_REGION_shouldContainRightFields() + throws IOException { + try (MockedStatic mockStaticVertexAI = mockStatic(VertexAI.class)) { + mockStaticVertexAI + .when(() -> VertexAI.getEnvironmentVariable("GOOGLE_CLOUD_REGION")) + .thenReturn(Optional.of("us-central2")); + mockStaticVertexAI + .when(() -> VertexAI.getEnvironmentVariable("CLOUD_ML_REGION")) + .thenReturn(Optional.of("us-central3")); + mockStaticVertexAI + .when(() -> VertexAI.getEnvironmentVariable("GOOGLE_CLOUD_PROJECT")) + .thenReturn(Optional.of(TEST_PROJECT)); + + vertexAi = new VertexAI(); + + assertThat(vertexAi.getProjectId()).isEqualTo(TEST_PROJECT); + assertThat(vertexAi.getLocation()).isEqualTo("us-central2"); + assertThat(vertexAi.getTransport()).isEqualTo(Transport.GRPC); + assertThat(vertexAi.getApiEndpoint()).isEqualTo("us-central2-aiplatform.googleapis.com"); + } + } + + @Test + public void + testInstantiateVertexAI_usingConstructorLocationFromCLOUD_ML_REGION_shouldContainRightFields() + throws IOException { + try (MockedStatic mockStaticVertexAI = mockStatic(VertexAI.class)) { + mockStaticVertexAI + .when(() -> VertexAI.getEnvironmentVariable("GOOGLE_CLOUD_REGION")) + .thenReturn(EMPTY_ENV_VAR_OPTIONAL); + mockStaticVertexAI + .when(() -> VertexAI.getEnvironmentVariable("CLOUD_ML_REGION")) + .thenReturn(Optional.of("us-central2")); + mockStaticVertexAI + .when(() -> VertexAI.getEnvironmentVariable("GOOGLE_CLOUD_PROJECT")) + .thenReturn(Optional.of(TEST_PROJECT)); + + vertexAi = new VertexAI(); + + assertThat(vertexAi.getProjectId()).isEqualTo(TEST_PROJECT); + assertThat(vertexAi.getLocation()).isEqualTo("us-central2"); + assertThat(vertexAi.getTransport()).isEqualTo(Transport.GRPC); + assertThat(vertexAi.getApiEndpoint()).isEqualTo("us-central2-aiplatform.googleapis.com"); + } + } + @Test public void testInstantiateVertexAI_builderWithCredentials_shouldContainRightFields() throws IOException { @@ -71,6 +205,7 @@ public void testInstantiateVertexAI_builderWithCredentials_shouldContainRightFie .setLocation(TEST_LOCATION) .setCredentials(mockGoogleCredentials) .build(); + assertThat(vertexAi.getProjectId()).isEqualTo(TEST_PROJECT); assertThat(vertexAi.getLocation()).isEqualTo(TEST_LOCATION); assertThat(vertexAi.getTransport()).isEqualTo(Transport.GRPC); @@ -79,8 +214,132 @@ public void testInstantiateVertexAI_builderWithCredentials_shouldContainRightFie } @Test - public void testInstantiateVertexAI_builderWithScopes_throwsIlegalArgumentException() + public void testInstantiateVertexAI_builderNoArgsProjectEnvVarSet_shouldContainRightFields() + throws IOException { + try (MockedStatic mockStaticVertexAI = mockStatic(VertexAI.class)) { + mockStaticVertexAI + .when(() -> VertexAI.getEnvironmentVariable("GOOGLE_CLOUD_REGION")) + .thenReturn(EMPTY_ENV_VAR_OPTIONAL); + mockStaticVertexAI + .when(() -> VertexAI.getEnvironmentVariable("CLOUD_ML_REGION")) + .thenReturn(EMPTY_ENV_VAR_OPTIONAL); + mockStaticVertexAI + .when(() -> VertexAI.getEnvironmentVariable("GOOGLE_CLOUD_PROJECT")) + .thenReturn(Optional.of(TEST_PROJECT)); + + vertexAi = new VertexAI.Builder().build(); + + assertThat(vertexAi.getProjectId()).isEqualTo(TEST_PROJECT); + assertThat(vertexAi.getLocation()).isEqualTo("us-central1"); + assertThat(vertexAi.getTransport()).isEqualTo(Transport.GRPC); + assertThat(vertexAi.getApiEndpoint()).isEqualTo("us-central1-aiplatform.googleapis.com"); + } + } + + @Test + public void testInstantiateVertexAI_builderNoArgsProjectEnvVarNotSet_shouldContainRightFields() + throws IOException { + try (MockedStatic mockStaticVertexAI = mockStatic(VertexAI.class); + MockedStatic mockStaticPredictionServiceSettings = + mockStatic(PredictionServiceSettings.class); ) { + mockStaticVertexAI + .when(() -> VertexAI.getEnvironmentVariable("GOOGLE_CLOUD_REGION")) + .thenReturn(EMPTY_ENV_VAR_OPTIONAL); + mockStaticVertexAI + .when(() -> VertexAI.getEnvironmentVariable("CLOUD_ML_REGION")) + .thenReturn(EMPTY_ENV_VAR_OPTIONAL); + mockStaticVertexAI + .when(() -> VertexAI.getEnvironmentVariable("GOOGLE_CLOUD_PROJECT")) + .thenReturn(EMPTY_ENV_VAR_OPTIONAL); + mockStaticPredictionServiceSettings + .when(() -> PredictionServiceSettings.defaultCredentialsProviderBuilder()) + .thenReturn(mockCredentialsProviderBuilder); + when(mockCredentialsProviderBuilder.build()).thenReturn(mockCredentialsProvider); + when(mockCredentialsProvider.getCredentials()).thenReturn(mockGoogleCredentials); + when(mockGoogleCredentials.getQuotaProjectId()).thenReturn(TEST_PROJECT); + + vertexAi = new VertexAI.Builder().build(); + + assertThat(vertexAi.getProjectId()).isEqualTo(TEST_PROJECT); + assertThat(vertexAi.getLocation()).isEqualTo("us-central1"); + assertThat(vertexAi.getTransport()).isEqualTo(Transport.GRPC); + assertThat(vertexAi.getApiEndpoint()).isEqualTo("us-central1-aiplatform.googleapis.com"); + } + } + + @Test + public void + testBuilder_noArgsCredentialsProviderThrowsIOException_shouldThrowIllegalArgumentException() + throws IOException { + try (MockedStatic mockStaticPredictionServiceSettings = + mockStatic(PredictionServiceSettings.class)) { + final String expectedErrorMessage = + ("Unable to infer your project. Please provide a project Id by one of the following:" + + "\n- Passing a constructor argument by using new VertexAI(String projectId, String" + + " location)" + + "\n- Setting project using 'gcloud config set project my-project'"); + mockStaticPredictionServiceSettings + .when(() -> PredictionServiceSettings.defaultCredentialsProviderBuilder()) + .thenReturn(mockCredentialsProviderBuilder); + when(mockCredentialsProviderBuilder.build()).thenReturn(mockCredentialsProvider); + when(mockCredentialsProvider.getCredentials()).thenThrow(new IOException("")); + + IllegalArgumentException thrown = + assertThrows(IllegalArgumentException.class, () -> new VertexAI.Builder().build()); + assertThat(thrown).hasMessageThat().contains(expectedErrorMessage); + } + } + + @Test + public void + testInstantiateVertexAI_builderLocationFromGOOGLE_CLOUD_REGION_shouldContainRightFields() + throws IOException { + try (MockedStatic mockStaticVertexAI = mockStatic(VertexAI.class)) { + mockStaticVertexAI + .when(() -> VertexAI.getEnvironmentVariable("GOOGLE_CLOUD_REGION")) + .thenReturn(Optional.of("us-central2")); + mockStaticVertexAI + .when(() -> VertexAI.getEnvironmentVariable("CLOUD_ML_REGION")) + .thenReturn(Optional.of("us-central3")); + mockStaticVertexAI + .when(() -> VertexAI.getEnvironmentVariable("GOOGLE_CLOUD_PROJECT")) + .thenReturn(Optional.of(TEST_PROJECT)); + + vertexAi = new VertexAI.Builder().build(); + + assertThat(vertexAi.getProjectId()).isEqualTo(TEST_PROJECT); + assertThat(vertexAi.getLocation()).isEqualTo("us-central2"); + assertThat(vertexAi.getTransport()).isEqualTo(Transport.GRPC); + assertThat(vertexAi.getApiEndpoint()).isEqualTo("us-central2-aiplatform.googleapis.com"); + } + } + + @Test + public void testInstantiateVertexAI_builderLocationFromCLOUD_ML_REGION_shouldContainRightFields() throws IOException { + try (MockedStatic mockStaticVertexAI = mockStatic(VertexAI.class)) { + mockStaticVertexAI + .when(() -> VertexAI.getEnvironmentVariable("GOOGLE_CLOUD_REGION")) + .thenReturn(EMPTY_ENV_VAR_OPTIONAL); + mockStaticVertexAI + .when(() -> VertexAI.getEnvironmentVariable("CLOUD_ML_REGION")) + .thenReturn(Optional.of("us-central2")); + mockStaticVertexAI + .when(() -> VertexAI.getEnvironmentVariable("GOOGLE_CLOUD_PROJECT")) + .thenReturn(Optional.of(TEST_PROJECT)); + + vertexAi = new VertexAI.Builder().build(); + + assertThat(vertexAi.getProjectId()).isEqualTo(TEST_PROJECT); + assertThat(vertexAi.getLocation()).isEqualTo("us-central2"); + assertThat(vertexAi.getTransport()).isEqualTo(Transport.GRPC); + assertThat(vertexAi.getApiEndpoint()).isEqualTo("us-central2-aiplatform.googleapis.com"); + } + } + + @Test + public void testInstantiateVertexAI_builderWithScopes_throwsIlegalArgumentException() + throws IllegalArgumentException { IllegalArgumentException thrown = assertThrows( IllegalArgumentException.class, diff --git a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/ChatSessionTest.java b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/ChatSessionTest.java index 0537d96fb0dc..aa0c7bf911df 100644 --- a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/ChatSessionTest.java +++ b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/generativeai/ChatSessionTest.java @@ -29,6 +29,7 @@ import com.google.cloud.vertexai.api.Candidate.FinishReason; import com.google.cloud.vertexai.api.Content; import com.google.cloud.vertexai.api.FunctionCall; +import com.google.cloud.vertexai.api.FunctionCallingConfig; import com.google.cloud.vertexai.api.FunctionDeclaration; import com.google.cloud.vertexai.api.GenerateContentRequest; import com.google.cloud.vertexai.api.GenerateContentResponse; @@ -40,6 +41,7 @@ import com.google.cloud.vertexai.api.SafetySetting.HarmBlockThreshold; import com.google.cloud.vertexai.api.Schema; import com.google.cloud.vertexai.api.Tool; +import com.google.cloud.vertexai.api.ToolConfig; import com.google.cloud.vertexai.api.Type; import com.google.protobuf.Struct; import com.google.protobuf.Value; @@ -174,6 +176,16 @@ public final class ChatSessionTest { .build()) .addRequired("location"))) .build(); + private static final ToolConfig TOOL_CONFIG = + ToolConfig.newBuilder() + .setFunctionCallingConfig( + FunctionCallingConfig.newBuilder() + .setMode(FunctionCallingConfig.Mode.ANY) + .addAllowedFunctionNames("getCurrentWeather")) + .build(); + private static final Content SYSTEM_INSTRUCTION = + ContentMaker.fromString( + "You're a helpful assistant that starts all its answers with: \"COOL\""); @Rule public final MockitoRule mocksRule = MockitoJUnit.rule(); @@ -518,7 +530,9 @@ public void testChatSessionMergeHistoryToRootChatSession() throws Exception { rootChat .withGenerationConfig(GENERATION_CONFIG) .withSafetySettings(Arrays.asList(SAFETY_SETTING)) - .withTools(Arrays.asList(TOOL)); + .withTools(Arrays.asList(TOOL)) + .withToolConfig(TOOL_CONFIG) + .withSystemInstruction(SYSTEM_INSTRUCTION); response = childChat.sendMessage(SAMPLE_MESSAGE_2); // (Assert) root chat history should contain all 4 contents @@ -532,8 +546,12 @@ public void testChatSessionMergeHistoryToRootChatSession() throws Exception { ArgumentCaptor request = ArgumentCaptor.forClass(GenerateContentRequest.class); verify(mockUnaryCallable, times(2)).call(request.capture()); + Content expectedSystemInstruction = SYSTEM_INSTRUCTION.toBuilder().clearRole().build(); assertThat(request.getAllValues().get(1).getGenerationConfig()).isEqualTo(GENERATION_CONFIG); assertThat(request.getAllValues().get(1).getSafetySettings(0)).isEqualTo(SAFETY_SETTING); assertThat(request.getAllValues().get(1).getTools(0)).isEqualTo(TOOL); + assertThat(request.getAllValues().get(1).getToolConfig()).isEqualTo(TOOL_CONFIG); + assertThat(request.getAllValues().get(1).getSystemInstruction()) + .isEqualTo(expectedSystemInstruction); } } diff --git a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/it/ITGenerativeModelIntegrationTest.java b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/it/ITGenerativeModelIntegrationTest.java index 960037c77a1b..68a508c4682e 100644 --- a/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/it/ITGenerativeModelIntegrationTest.java +++ b/java-vertexai/google-cloud-vertexai/src/test/java/com/google/cloud/vertexai/it/ITGenerativeModelIntegrationTest.java @@ -130,12 +130,7 @@ private static void assertNonEmptyAndLogTextContentOfResponseStream( @Test public void generateContent_restTransport_nonEmptyCandidateList() throws IOException { - try (VertexAI vertexAiViaRest = - new VertexAI.Builder() - .setProjectId(PROJECT_ID) - .setLocation(LOCATION) - .setTransport(Transport.REST) - .build()) { + try (VertexAI vertexAiViaRest = new VertexAI.Builder().setTransport(Transport.REST).build()) { GenerativeModel textModelWithRest = new GenerativeModel(MODEL_NAME_TEXT, vertexAiViaRest); GenerateContentResponse response = textModelWithRest.generateContent(TEXT); @@ -145,9 +140,14 @@ public void generateContent_restTransport_nonEmptyCandidateList() throws IOExcep @Test public void generateContent_withPlainText_nonEmptyCandidateList() throws IOException { - GenerateContentResponse response = textModel.generateContent(TEXT); + try (final VertexAI vertexAiInferredArgs = new VertexAI()) { + final GenerativeModel textModel = + new GenerativeModel(MODEL_NAME_TEXT, vertexAiInferredArgs) + .withGenerationConfig(GenerationConfig.newBuilder().setTemperature(0).build()); + GenerateContentResponse response = textModel.generateContent(TEXT); - assertNonEmptyAndLogResponse(name.getMethodName(), TEXT, response); + assertNonEmptyAndLogResponse(name.getMethodName(), TEXT, response); + } } @Test From 9fac88153bf7c6cfbaf19de7e9ca4fd27d694327 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Sun, 23 Jun 2024 20:56:39 -0700 Subject: [PATCH 21/33] chore: regenerate client table in README (#10978) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 489dd23a61ad..bd17ea898040 100644 --- a/README.md +++ b/README.md @@ -190,10 +190,10 @@ Libraries are available on GitHub and Maven Central for developing Java applicat | [Media Translation API](https://github.com/googleapis/google-cloud-java/tree/main/java-mediatranslation) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-mediatranslation.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-mediatranslation&core=gav) | | [Meet API](https://github.com/googleapis/google-cloud-java/tree/main/java-meet) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-meet.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-meet&core=gav) | | [Memorystore for Redis API](https://github.com/googleapis/google-cloud-java/tree/main/java-redis-cluster) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-redis-cluster.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-redis-cluster&core=gav) | -| [Merchant API](https://github.com/googleapis/google-cloud-java/tree/main/java-shopping-merchant-promotions) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-promotions.svg)](https://search.maven.org/search?q=g:com.google.shopping%20AND%20a:google-shopping-merchant-promotions&core=gav) | -| [Merchant API](https://github.com/googleapis/google-cloud-java/tree/main/java-shopping-merchant-accounts) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-accounts.svg)](https://search.maven.org/search?q=g:com.google.shopping%20AND%20a:google-shopping-merchant-accounts&core=gav) | | [Merchant API](https://github.com/googleapis/google-cloud-java/tree/main/java-shopping-merchant-products) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-products.svg)](https://search.maven.org/search?q=g:com.google.shopping%20AND%20a:google-shopping-merchant-products&core=gav) | +| [Merchant API](https://github.com/googleapis/google-cloud-java/tree/main/java-shopping-merchant-accounts) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-accounts.svg)](https://search.maven.org/search?q=g:com.google.shopping%20AND%20a:google-shopping-merchant-accounts&core=gav) | | [Merchant API](https://github.com/googleapis/google-cloud-java/tree/main/java-shopping-merchant-reports) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-reports.svg)](https://search.maven.org/search?q=g:com.google.shopping%20AND%20a:google-shopping-merchant-reports&core=gav) | +| [Merchant API](https://github.com/googleapis/google-cloud-java/tree/main/java-shopping-merchant-promotions) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-promotions.svg)](https://search.maven.org/search?q=g:com.google.shopping%20AND%20a:google-shopping-merchant-promotions&core=gav) | | [Merchant API](https://github.com/googleapis/google-cloud-java/tree/main/java-shopping-merchant-inventories) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-inventories.svg)](https://search.maven.org/search?q=g:com.google.shopping%20AND%20a:google-shopping-merchant-inventories&core=gav) | | [Merchant API](https://github.com/googleapis/google-cloud-java/tree/main/java-shopping-merchant-datasources) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-datasources.svg)](https://search.maven.org/search?q=g:com.google.shopping%20AND%20a:google-shopping-merchant-datasources&core=gav) | | [Merchant Conversions API](https://github.com/googleapis/google-cloud-java/tree/main/java-shopping-merchant-conversions) | [![preview][preview-stability]][preview-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-conversions.svg)](https://search.maven.org/search?q=g:com.google.shopping%20AND%20a:google-shopping-merchant-conversions&core=gav) | From 666a3ac8cd0cb45da3555a1bef8dfe3edf57d257 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Tue, 25 Jun 2024 09:10:45 -0400 Subject: [PATCH 22/33] chore: Update generation configuration at Tue Jun 25 02:14:01 UTC 2024 (#10968) * chore: Update generation configuration at Fri Jun 14 18:07:41 UTC 2024 * chore: generate libraries at Fri Jun 14 18:10:57 UTC 2024 * chore: Update generation configuration at Tue Jun 18 02:14:03 UTC 2024 * chore: generate libraries at Tue Jun 18 02:16:53 UTC 2024 * chore: Update generation configuration at Wed Jun 19 02:14:18 UTC 2024 * chore: generate libraries at Wed Jun 19 02:17:10 UTC 2024 * chore: Update generation configuration at Thu Jun 20 02:13:15 UTC 2024 * chore: generate libraries at Thu Jun 20 02:16:02 UTC 2024 * chore: Update generation configuration at Fri Jun 21 02:13:21 UTC 2024 * chore: generate libraries at Fri Jun 21 02:16:25 UTC 2024 * chore: Update generation configuration at Sat Jun 22 02:12:50 UTC 2024 * chore: Update generation configuration at Tue Jun 25 02:14:01 UTC 2024 * chore: generate libraries at Tue Jun 25 02:16:52 UTC 2024 --- generation_config.yaml | 4 +- java-accessapproval/README.md | 4 +- java-accesscontextmanager/README.md | 4 +- java-admanager/README.md | 4 +- java-advisorynotifications/README.md | 4 +- java-aiplatform/README.md | 4 +- .../v1/stub/GrpcPredictionServiceStub.java | 12 - .../v1beta1/PredictionServiceClient.java | 44 + .../v1beta1/PredictionServiceSettings.java | 11 + .../aiplatform/v1beta1/gapic_metadata.json | 3 + .../stub/GrpcPredictionServiceStub.java | 31 + .../v1beta1/stub/PredictionServiceStub.java | 5 + .../stub/PredictionServiceStubSettings.java | 24 + .../reflect-config.json | 90 + .../v1/GenAiTuningServiceClientTest.java | 4 + .../v1/PipelineServiceClientTest.java | 4 + .../v1beta1/MockPredictionServiceImpl.java | 21 + .../v1beta1/PredictionServiceClientTest.java | 56 + .../v1beta1/PredictionServiceGrpc.java | 123 +- .../google/cloud/aiplatform/v1/Candidate.java | 22 + .../cloud/aiplatform/v1/ContentProto.java | 42 +- .../google/cloud/aiplatform/v1/Pipeline.java | 180 +- .../cloud/aiplatform/v1/PipelineJob.java | 93 + .../aiplatform/v1/PipelineJobOrBuilder.java | 13 + .../aiplatform/v1/PredictionServiceProto.java | 136 +- .../google/cloud/aiplatform/v1/TuningJob.java | 295 ++ .../aiplatform/v1/TuningJobOrBuilder.java | 41 + .../cloud/aiplatform/v1/TuningJobProto.java | 160 +- .../google/cloud/aiplatform/v1/content.proto | 3 + .../cloud/aiplatform/v1/pipeline_job.proto | 3 + .../aiplatform/v1/prediction_service.proto | 30 +- .../cloud/aiplatform/v1/tuning_job.proto | 6 + .../aiplatform/v1beta1/CachedContent.java | 28 +- .../v1beta1/CachedContentOrBuilder.java | 8 +- .../cloud/aiplatform/v1beta1/Candidate.java | 22 + .../aiplatform/v1beta1/ContentProto.java | 156 +- .../aiplatform/v1beta1/GroundingChunk.java | 3045 +++++++++++++++++ .../v1beta1/GroundingChunkOrBuilder.java | 102 + .../aiplatform/v1beta1/GroundingMetadata.java | 1059 ++++++ .../v1beta1/GroundingMetadataOrBuilder.java | 116 + .../aiplatform/v1beta1/GroundingSupport.java | 1262 +++++++ .../v1beta1/GroundingSupportOrBuilder.java | 152 + .../ModelMonitoringStatsDataPoint.java | 45 +- .../v1beta1/PredictionServiceProto.java | 467 +-- .../cloud/aiplatform/v1beta1/Segment.java | 185 +- .../aiplatform/v1beta1/SegmentOrBuilder.java | 25 + .../v1beta1/StreamRawPredictRequest.java | 926 +++++ .../StreamRawPredictRequestOrBuilder.java | 94 + .../aiplatform/v1beta1/VertexRagStore.java | 26 +- .../v1beta1/VertexRagStoreOrBuilder.java | 8 +- .../aiplatform/v1beta1/cached_content.proto | 4 +- .../cloud/aiplatform/v1beta1/content.proto | 60 + .../v1beta1/model_monitoring_stats.proto | 3 +- .../v1beta1/prediction_service.proto | 31 + .../cloud/aiplatform/v1beta1/tool.proto | 1 + .../AsyncStreamRawPredict.java | 55 + java-alloydb-connectors/.repo-metadata.json | 2 +- java-alloydb-connectors/README.md | 6 +- java-alloydb/README.md | 4 +- java-analytics-admin/README.md | 4 +- java-analytics-data/README.md | 4 +- java-analyticshub/README.md | 4 +- java-api-gateway/README.md | 4 +- java-apigee-connect/README.md | 4 +- java-apigee-registry/README.md | 4 +- java-apikeys/README.md | 4 +- java-appengine-admin/README.md | 4 +- java-apphub/README.md | 4 +- java-area120-tables/README.md | 4 +- java-artifact-registry/README.md | 4 +- java-asset/README.md | 4 +- java-assured-workloads/README.md | 4 +- java-automl/README.md | 4 +- java-backupdr/README.md | 4 +- .../v1/stub/HttpJsonBackupDRStub.java | 2 - .../reflect-config.json | 162 + .../v1/BackupDRClientHttpJsonTest.java | 9 + .../cloud/backupdr/v1/BackupDRClientTest.java | 9 + .../cloud/backupdr/v1/BackupDRProto.java | 219 +- .../cloud/backupdr/v1/ManagementServer.java | 386 +++ .../v1/ManagementServerOrBuilder.java | 54 + .../google/cloud/backupdr/v1/backupdr.proto | 8 + java-bare-metal-solution/README.md | 4 +- java-batch/README.md | 2 +- java-beyondcorp-appconnections/README.md | 4 +- java-beyondcorp-appconnectors/README.md | 4 +- java-beyondcorp-appgateways/README.md | 4 +- .../README.md | 4 +- java-beyondcorp-clientgateways/README.md | 4 +- java-biglake/README.md | 4 +- java-bigquery-data-exchange/README.md | 4 +- java-bigqueryconnection/README.md | 4 +- java-bigquerydatapolicy/README.md | 4 +- java-bigquerydatatransfer/README.md | 4 +- java-bigquerymigration/README.md | 4 +- java-bigqueryreservation/README.md | 4 +- java-billing/README.md | 4 +- .../cloud/billing/v1/CloudCatalogClient.java | 4 +- .../cloud/billing/v1/ListSkusRequest.java | 14 +- .../billing/v1/ListSkusRequestOrBuilder.java | 4 +- .../com/google/cloud/billing/v1/Service.java | 28 +- .../cloud/billing/v1/ServiceOrBuilder.java | 8 +- .../java/com/google/cloud/billing/v1/Sku.java | 32 +- .../google/cloud/billing/v1/SkuOrBuilder.java | 8 +- .../cloud/billing/v1/cloud_catalog.proto | 12 +- java-billingbudgets/README.md | 4 +- java-binary-authorization/README.md | 4 +- java-certificate-manager/README.md | 4 +- java-channel/README.md | 4 +- java-chat/README.md | 4 +- java-cloudbuild/README.md | 4 +- .../README.md | 4 +- java-cloudcontrolspartner/README.md | 4 +- .../v1/CloudControlsPartnerCoreClient.java | 29 +- .../v1/CloudControlsPartnerCoreSettings.java | 14 +- .../v1/stub/CloudControlsPartnerCoreStub.java | 2 + .../CloudControlsPartnerCoreStubSettings.java | 14 +- .../CloudControlsPartnerCoreClient.java | 61 +- .../CloudControlsPartnerCoreSettings.java | 14 +- .../CloudControlsPartnerMonitoringClient.java | 8 +- .../stub/CloudControlsPartnerCoreStub.java | 2 + .../CloudControlsPartnerCoreStubSettings.java | 14 +- .../v1/CloudControlsPartnerCoreGrpc.java | 16 +- .../v1beta/CloudControlsPartnerCoreGrpc.java | 16 +- .../cloudcontrolspartner/v1/CoreProto.java | 44 +- .../cloud/cloudcontrolspartner/v1/core.proto | 4 +- .../v1beta/AccessApprovalRequest.java | 14 +- .../AccessApprovalRequestOrBuilder.java | 4 +- .../v1beta/CoreProto.java | 48 +- .../cloudcontrolspartner/v1beta/Customer.java | 14 +- .../v1beta/CustomerOrBuilder.java | 4 +- .../v1beta/EkmConnections.java | 14 +- .../v1beta/EkmConnectionsOrBuilder.java | 4 +- .../v1beta/GetCustomerRequest.java | 14 +- .../v1beta/GetCustomerRequestOrBuilder.java | 4 +- .../v1beta/GetEkmConnectionsRequest.java | 14 +- .../GetEkmConnectionsRequestOrBuilder.java | 4 +- .../v1beta/GetPartnerPermissionsRequest.java | 14 +- ...GetPartnerPermissionsRequestOrBuilder.java | 4 +- .../v1beta/GetPartnerRequest.java | 21 +- .../v1beta/GetPartnerRequestOrBuilder.java | 6 +- .../v1beta/GetViolationRequest.java | 14 +- .../v1beta/GetViolationRequestOrBuilder.java | 4 +- .../v1beta/GetWorkloadRequest.java | 14 +- .../v1beta/GetWorkloadRequestOrBuilder.java | 4 +- .../ListAccessApprovalRequestsRequest.java | 14 +- ...ccessApprovalRequestsRequestOrBuilder.java | 4 +- .../v1beta/ListCustomersRequest.java | 14 +- .../v1beta/ListCustomersRequestOrBuilder.java | 4 +- .../v1beta/ListViolationsRequest.java | 14 +- .../ListViolationsRequestOrBuilder.java | 4 +- .../v1beta/ListWorkloadsRequest.java | 14 +- .../v1beta/ListWorkloadsRequestOrBuilder.java | 4 +- .../cloudcontrolspartner/v1beta/Partner.java | 14 +- .../v1beta/PartnerOrBuilder.java | 4 +- .../v1beta/PartnerPermissions.java | 14 +- .../v1beta/PartnerPermissionsOrBuilder.java | 4 +- .../v1beta/Violation.java | 56 +- .../v1beta/ViolationOrBuilder.java | 16 +- .../cloudcontrolspartner/v1beta/Workload.java | 14 +- .../v1beta/WorkloadOrBuilder.java | 4 +- .../v1beta/access_approval_requests.proto | 4 +- .../cloudcontrolspartner/v1beta/core.proto | 4 +- .../v1beta/customer_workloads.proto | 6 +- .../v1beta/customers.proto | 6 +- .../v1beta/ekm_connections.proto | 4 +- .../v1beta/partner_permissions.proto | 4 +- .../v1beta/partners.proto | 5 +- .../v1beta/violations.proto | 12 +- java-cloudquotas/README.md | 4 +- java-cloudsupport/README.md | 4 +- java-compute/README.md | 4 +- java-confidentialcomputing/README.md | 4 +- java-contact-center-insights/README.md | 4 +- java-container/README.md | 2 +- java-containeranalysis/README.md | 4 +- java-contentwarehouse/README.md | 4 +- java-data-fusion/README.md | 4 +- java-datacatalog/README.md | 4 +- java-dataflow/README.md | 4 +- java-dataform/README.md | 4 +- java-datalabeling/README.md | 4 +- java-datalineage/README.md | 4 +- java-dataplex/README.md | 4 +- .../dataplex/v1/DataScanServiceClient.java | 22 +- .../dataplex/v1/DataScanServiceGrpc.java | 16 +- .../cloud/dataplex/v1/CatalogProto.java | 468 +-- .../cloud/dataplex/v1/DataQualityRule.java | 56 +- .../dataplex/v1/DataQualityRuleOrBuilder.java | 6 +- .../dataplex/v1/DataQualityRuleResult.java | 24 +- .../v1/DataQualityRuleResultOrBuilder.java | 6 +- .../v1/DataQualityScanRuleResult.java | 88 +- .../DataQualityScanRuleResultOrBuilder.java | 4 +- .../google/cloud/dataplex/v1/EntrySource.java | 203 ++ .../dataplex/v1/EntrySourceOrBuilder.java | 31 + .../v1/GenerateDataQualityRulesRequest.java | 74 +- ...erateDataQualityRulesRequestOrBuilder.java | 20 +- .../v1/GenerateDataQualityRulesResponse.java | 73 +- ...rateDataQualityRulesResponseOrBuilder.java | 15 +- .../dataplex/v1/SearchEntriesResult.java | 261 +- .../v1/SearchEntriesResultOrBuilder.java | 48 +- .../google/cloud/dataplex/v1/catalog.proto | 15 +- .../cloud/dataplex/v1/data_quality.proto | 24 +- .../google/cloud/dataplex/v1/datascans.proto | 22 +- .../proto/google/cloud/dataplex/v1/logs.proto | 40 +- java-dataproc-metastore/README.md | 4 +- java-dataproc/README.md | 4 +- .../reflect-config.json | 27 + .../cloud/dataproc/v1/AutotuningConfig.java | 1047 ++++++ .../v1/AutotuningConfigOrBuilder.java | 99 + .../cloud/dataproc/v1/RuntimeConfig.java | 485 +++ .../dataproc/v1/RuntimeConfigOrBuilder.java | 68 + .../google/cloud/dataproc/v1/SharedProto.java | 234 +- .../google/cloud/dataproc/v1/shared.proto | 30 + java-datastream/README.md | 4 +- java-debugger-client/README.md | 4 +- java-deploy/README.md | 4 +- java-developerconnect/README.md | 4 +- java-dialogflow-cx/README.md | 2 +- java-dialogflow/README.md | 4 +- java-discoveryengine/README.md | 4 +- java-distributedcloudedge/README.md | 4 +- java-dlp/README.md | 4 +- java-dms/README.md | 4 +- java-document-ai/README.md | 4 +- .../v1/DocumentProcessorServiceClient.java | 22 +- .../v1/DocumentProcessorServiceGrpc.java | 24 +- .../v1/document_processor_service.proto | 6 +- java-domains/README.md | 4 +- java-edgenetwork/README.md | 4 +- java-enterpriseknowledgegraph/README.md | 4 +- java-errorreporting/README.md | 4 +- java-essential-contacts/README.md | 4 +- java-eventarc-publishing/README.md | 4 +- java-eventarc/README.md | 4 +- java-filestore/README.md | 4 +- java-functions/README.md | 4 +- java-gke-backup/README.md | 4 +- java-gke-connect-gateway/README.md | 4 +- java-gke-multi-cloud/README.md | 4 +- java-gkehub/README.md | 4 +- .../reflect-config.json | 63 + .../v1/ConfigManagementProto.java | 325 +- .../configmanagement/v1/ConfigSync.java | 770 ++++- .../v1/ConfigSyncDeploymentState.java | 157 + .../ConfigSyncDeploymentStateOrBuilder.java | 25 + .../configmanagement/v1/ConfigSyncError.java | 626 ++++ .../v1/ConfigSyncErrorOrBuilder.java | 51 + .../v1/ConfigSyncOrBuilder.java | 126 +- .../configmanagement/v1/ConfigSyncState.java | 1463 +++++++- .../v1/ConfigSyncStateOrBuilder.java | 134 + .../v1/ConfigSyncVersion.java | 182 + .../v1/ConfigSyncVersionOrBuilder.java | 25 + .../configmanagement/v1/DeploymentState.java | 22 + .../gkehub/configmanagement/v1/GitConfig.java | 42 +- .../v1/GitConfigOrBuilder.java | 12 +- .../configmanagement/v1/MembershipSpec.java | 551 +++ .../v1/MembershipSpecOrBuilder.java | 64 + .../configmanagement/v1/MembershipState.java | 49 +- .../v1/MembershipStateOrBuilder.java | 14 +- .../gkehub/configmanagement/v1/OciConfig.java | 1286 +++++++ .../v1/OciConfigOrBuilder.java | 145 + .../gkehub/configmanagement/v1/SyncState.java | 42 +- .../v1/SyncStateOrBuilder.java | 4 +- .../configmanagement/configmanagement.proto | 163 +- java-grafeas/README.md | 4 +- java-gsuite-addons/README.md | 4 +- java-iam-admin/README.md | 4 +- java-iam/.repo-metadata.json | 2 +- java-iam/README.md | 6 +- java-iamcredentials/README.md | 4 +- java-iap/README.md | 4 +- java-iap/pom.xml | 2 +- java-ids/README.md | 4 +- java-infra-manager/README.md | 4 +- java-iot/README.md | 4 +- java-kms/README.md | 4 +- .../reflect-config.json | 27 + ...eyManagementServiceClientHttpJsonTest.java | 9 + .../v1/KeyManagementServiceClientTest.java | 7 + .../com/google/cloud/kms/v1/AccessReason.java | 429 +++ .../com/google/cloud/kms/v1/CryptoKey.java | 392 +++ .../cloud/kms/v1/CryptoKeyOrBuilder.java | 63 + .../kms/v1/KeyAccessJustificationsPolicy.java | 909 +++++ ...eyAccessJustificationsPolicyOrBuilder.java | 109 + .../cloud/kms/v1/KmsResourcesProto.java | 297 +- .../proto/google/cloud/kms/v1/resources.proto | 92 + java-kmsinventory/README.md | 4 +- .../reflect-config.json | 27 + java-language/README.md | 4 +- java-life-sciences/README.md | 4 +- java-managed-identities/README.md | 4 +- java-managedkafka/README.md | 4 +- java-maps-addressvalidation/README.md | 4 +- java-maps-mapsplatformdatasets/README.md | 4 +- java-maps-places/README.md | 4 +- java-maps-routeoptimization/README.md | 4 +- java-maps-routing/README.md | 4 +- java-maps-solar/README.md | 4 +- java-mediatranslation/README.md | 4 +- java-meet/README.md | 4 +- java-memcache/README.md | 4 +- java-migrationcenter/README.md | 4 +- java-monitoring-dashboards/README.md | 4 +- java-monitoring-metricsscope/README.md | 4 +- java-monitoring/README.md | 4 +- .../reflect-config.json | 18 + .../com/google/monitoring/v3/AlertPolicy.java | 2074 +++++++++-- .../com/google/monitoring/v3/AlertProto.java | 215 +- .../proto/google/monitoring/v3/alert.proto | 18 + java-netapp/README.md | 4 +- java-network-management/README.md | 4 +- java-network-security/README.md | 4 +- java-networkconnectivity/README.md | 4 +- java-networkservices/README.md | 4 +- .../v1/NetworkServicesClient.java | 6 +- .../networkservices/v1/package-info.java | 2 + .../v1/NetworkServicesGrpc.java | 48 +- .../networkservices/v1/network_services.proto | 1 + java-notebooks/README.md | 4 +- java-optimization/README.md | 4 +- java-orchestration-airflow/README.md | 4 +- java-orgpolicy/.repo-metadata.json | 2 +- java-orgpolicy/README.md | 6 +- java-os-config/README.md | 4 +- java-os-login/README.md | 4 +- java-parallelstore/README.md | 4 +- java-phishingprotection/README.md | 4 +- java-policy-troubleshooter/README.md | 4 +- java-policysimulator/README.md | 4 +- java-private-catalog/README.md | 4 +- java-profiler/README.md | 4 +- java-publicca/README.md | 4 +- java-rapidmigrationassessment/README.md | 4 +- java-recaptchaenterprise/README.md | 4 +- java-recommendations-ai/README.md | 4 +- java-recommender/README.md | 4 +- java-redis-cluster/README.md | 2 +- java-redis/README.md | 4 +- java-resource-settings/README.md | 4 +- java-resourcemanager/README.md | 4 +- java-retail/README.md | 2 +- java-run/README.md | 4 +- java-scheduler/README.md | 4 +- java-secretmanager/README.md | 4 +- java-securesourcemanager/README.md | 4 +- java-security-private-ca/README.md | 4 +- java-securitycenter-settings/README.md | 4 +- java-securitycenter/README.md | 4 +- .../reflect-config.json | 45 + .../reflect-config.json | 45 + .../v1/SecurityCenterClientHttpJsonTest.java | 18 + .../v1/SecurityCenterClientTest.java | 14 + .../v2/SecurityCenterClientHttpJsonTest.java | 18 + .../v2/SecurityCenterClientTest.java | 14 + .../cloud/securitycenter/v1/Finding.java | 904 +++++ .../securitycenter/v1/FindingOrBuilder.java | 110 + .../securitycenter/v1/FindingOuterClass.java | 237 +- .../securitycenter/v1/GroupMembership.java | 921 +++++ .../v1/GroupMembershipOrBuilder.java | 76 + .../v1/GroupMembershipProto.java | 73 + .../securitycenter/v1/ToxicCombination.java | 850 +++++ .../v1/ToxicCombinationOrBuilder.java | 98 + .../v1/ToxicCombinationProto.java | 70 + .../cloud/securitycenter/v1/finding.proto | 20 + .../securitycenter/v1/group_membership.proto | 44 + .../securitycenter/v1/toxic_combination.proto | 41 + .../cloud/securitycenter/v2/Finding.java | 900 +++++ .../securitycenter/v2/FindingOrBuilder.java | 110 + .../cloud/securitycenter/v2/FindingProto.java | 247 +- .../securitycenter/v2/GroupMembership.java | 921 +++++ .../v2/GroupMembershipOrBuilder.java | 76 + .../v2/GroupMembershipProto.java | 73 + .../securitycenter/v2/ToxicCombination.java | 852 +++++ .../v2/ToxicCombinationOrBuilder.java | 98 + .../v2/ToxicCombinationProto.java | 70 + .../cloud/securitycenter/v2/finding.proto | 18 + .../securitycenter/v2/group_membership.proto | 44 + .../securitycenter/v2/toxic_combination.proto | 42 + java-securitycentermanagement/README.md | 2 +- .../v1/SecurityCenterManagementClient.java | 5 + .../HttpJsonSecurityCenterManagementStub.java | 8 + .../v1/GetSecurityCenterServiceRequest.java | 97 + ...SecurityCenterServiceRequestOrBuilder.java | 14 + .../v1/ListSecurityCenterServicesRequest.java | 97 + ...ecurityCenterServicesRequestOrBuilder.java | 14 + .../v1/SecurityCenterManagementProto.java | 944 ++--- .../v1/SecurityCenterService.java | 26 + .../v1/SimulatedFinding.java | 24 + .../v1/security_center_management.proto | 17 + .../AsyncGetSecurityCenterService.java | 1 + .../SyncGetSecurityCenterService.java | 1 + .../AsyncListSecurityCenterServices.java | 1 + .../AsyncListSecurityCenterServicesPaged.java | 1 + .../SyncListSecurityCenterServices.java | 1 + java-securityposture/README.md | 4 +- java-service-control/README.md | 4 +- java-service-management/README.md | 4 +- java-service-usage/README.md | 4 +- java-servicedirectory/README.md | 4 +- java-servicehealth/README.md | 4 +- java-shell/README.md | 4 +- java-shopping-css/README.md | 4 +- .../google/shopping/css/v1/Attributes.java | 24 +- .../shopping/css/v1/AttributesOrBuilder.java | 6 +- .../shopping/css/v1/CssProductStatus.java | 24 +- .../css/v1/CssProductStatusOrBuilder.java | 6 +- .../shopping/css/v1/css_product_common.proto | 4 +- java-shopping-merchant-accounts/README.md | 2 +- java-shopping-merchant-conversions/README.md | 4 +- java-shopping-merchant-datasources/README.md | 2 +- java-shopping-merchant-inventories/README.md | 4 +- java-shopping-merchant-lfp/README.md | 4 +- java-shopping-merchant-products/README.md | 4 +- java-shopping-merchant-products/pom.xml | 2 +- java-shopping-merchant-promotions/README.md | 4 +- java-shopping-merchant-promotions/pom.xml | 2 +- java-shopping-merchant-quota/README.md | 4 +- java-shopping-merchant-reports/README.md | 4 +- java-speech/README.md | 4 +- java-storage-transfer/README.md | 4 +- java-storageinsights/README.md | 4 +- java-talent/README.md | 4 +- java-tasks/README.md | 4 +- java-telcoautomation/README.md | 4 +- java-texttospeech/README.md | 4 +- java-tpu/README.md | 4 +- java-trace/README.md | 4 +- java-translate/README.md | 4 +- java-video-intelligence/README.md | 4 +- java-video-live-stream/README.md | 4 +- java-video-stitcher/README.md | 4 +- java-video-transcoder/README.md | 4 +- java-vision/README.md | 4 +- java-visionai/README.md | 4 +- java-vmmigration/README.md | 4 +- java-vmwareengine/README.md | 4 +- java-vpcaccess/README.md | 4 +- java-webrisk/README.md | 4 +- java-websecurityscanner/README.md | 4 +- java-workflow-executions/README.md | 4 +- java-workflows/README.md | 4 +- java-workspaceevents/README.md | 4 +- java-workstations/README.md | 4 +- 444 files changed, 31080 insertions(+), 3687 deletions(-) create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GroundingChunk.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GroundingChunkOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GroundingSupport.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GroundingSupportOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StreamRawPredictRequest.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StreamRawPredictRequestOrBuilder.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/predictionservice/streamrawpredict/AsyncStreamRawPredict.java create mode 100644 java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutotuningConfig.java create mode 100644 java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutotuningConfigOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncError.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncErrorOrBuilder.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/OciConfig.java create mode 100644 java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/OciConfigOrBuilder.java create mode 100644 java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AccessReason.java create mode 100644 java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyAccessJustificationsPolicy.java create mode 100644 java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyAccessJustificationsPolicyOrBuilder.java create mode 100644 java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupMembership.java create mode 100644 java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupMembershipOrBuilder.java create mode 100644 java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupMembershipProto.java create mode 100644 java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ToxicCombination.java create mode 100644 java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ToxicCombinationOrBuilder.java create mode 100644 java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ToxicCombinationProto.java create mode 100644 java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/group_membership.proto create mode 100644 java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/toxic_combination.proto create mode 100644 java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/GroupMembership.java create mode 100644 java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/GroupMembershipOrBuilder.java create mode 100644 java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/GroupMembershipProto.java create mode 100644 java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/ToxicCombination.java create mode 100644 java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/ToxicCombinationOrBuilder.java create mode 100644 java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/ToxicCombinationProto.java create mode 100644 java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/group_membership.proto create mode 100644 java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/toxic_combination.proto diff --git a/generation_config.yaml b/generation_config.yaml index f03239e7a11d..e8baee0bb250 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,7 +1,7 @@ gapic_generator_version: 2.41.0 protoc_version: '25.3' -googleapis_commitish: ac90fa9958bd6f7622674f52f77e4dc01d98bee8 -libraries_bom_version: 26.40.0 +googleapis_commitish: e4e39feea63b5f0d646fc193acbf536b5d292b64 +libraries_bom_version: 26.42.0 template_excludes: - .github/* - .kokoro/* diff --git a/java-accessapproval/README.md b/java-accessapproval/README.md index 04e7d5dfe66f..ff3d474523a1 100644 --- a/java-accessapproval/README.md +++ b/java-accessapproval/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-accessapproval.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-accessapproval/2.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-accessapproval/2.46.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-accesscontextmanager/README.md b/java-accesscontextmanager/README.md index 4073dc1d7ca7..31e90c78b857 100644 --- a/java-accesscontextmanager/README.md +++ b/java-accesscontextmanager/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-identity-accesscontextmanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-identity-accesscontextmanager/1.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-identity-accesscontextmanager/1.46.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-admanager/README.md b/java-admanager/README.md index a0af617427e3..1804b1c69d63 100644 --- a/java-admanager/README.md +++ b/java-admanager/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.api-ads/ad-manager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/ad-manager/0.3.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/ad-manager/0.4.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-advisorynotifications/README.md b/java-advisorynotifications/README.md index 9289e6875c12..5bcc6bb462b2 100644 --- a/java-advisorynotifications/README.md +++ b/java-advisorynotifications/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-advisorynotifications.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-advisorynotifications/0.33.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-advisorynotifications/0.34.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-aiplatform/README.md b/java-aiplatform/README.md index 8a7b1f5386dd..306b83e3722b 100644 --- a/java-aiplatform/README.md +++ b/java-aiplatform/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-aiplatform.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.46.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcPredictionServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcPredictionServiceStub.java index f5b971e6b75c..17d0c9562206 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcPredictionServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcPredictionServiceStub.java @@ -385,24 +385,12 @@ protected GrpcPredictionServiceStub( streamDirectPredictTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(streamDirectPredictMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("endpoint", String.valueOf(request.getEndpoint())); - return builder.build(); - }) .build(); GrpcCallSettings streamDirectRawPredictTransportSettings = GrpcCallSettings .newBuilder() .setMethodDescriptor(streamDirectRawPredictMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("endpoint", String.valueOf(request.getEndpoint())); - return builder.build(); - }) .build(); GrpcCallSettings streamingPredictTransportSettings = diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceClient.java index 787bb4053003..c9533e627ee2 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceClient.java @@ -125,6 +125,16 @@ * * * + *

StreamRawPredict + *

Perform a streaming online prediction with an arbitrary HTTP payload. + * + *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • streamRawPredictCallable() + *

+ * + * + * *

DirectPredict *

Perform an unary online prediction request to a gRPC model server for Vertex first-party products and frameworks. * @@ -813,6 +823,40 @@ public final UnaryCallable rawPredictCallable() { return stub.rawPredictCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Perform a streaming online prediction with an arbitrary HTTP payload. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) {
+   *   StreamRawPredictRequest request =
+   *       StreamRawPredictRequest.newBuilder()
+   *           .setEndpoint(
+   *               EndpointName.ofProjectLocationEndpointName(
+   *                       "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
+   *                   .toString())
+   *           .setHttpBody(HttpBody.newBuilder().build())
+   *           .build();
+   *   ServerStream stream =
+   *       predictionServiceClient.streamRawPredictCallable().call(request);
+   *   for (HttpBody response : stream) {
+   *     // Do something when a response is received.
+   *   }
+   * }
+   * }
+ */ + public final ServerStreamingCallable + streamRawPredictCallable() { + return stub.streamRawPredictCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Perform an unary online prediction request to a gRPC model server for Vertex first-party diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceSettings.java index c4ec8956e7dc..f1ac7d39c509 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceSettings.java @@ -97,6 +97,11 @@ public UnaryCallSettings rawPredictSettings() { return ((PredictionServiceStubSettings) getStubSettings()).rawPredictSettings(); } + /** Returns the object with the settings used for calls to streamRawPredict. */ + public ServerStreamingCallSettings streamRawPredictSettings() { + return ((PredictionServiceStubSettings) getStubSettings()).streamRawPredictSettings(); + } + /** Returns the object with the settings used for calls to directPredict. */ public UnaryCallSettings directPredictSettings() { return ((PredictionServiceStubSettings) getStubSettings()).directPredictSettings(); @@ -298,6 +303,12 @@ public UnaryCallSettings.Builder rawPredictSettings return getStubSettingsBuilder().rawPredictSettings(); } + /** Returns the builder for the settings used for calls to streamRawPredict. */ + public ServerStreamingCallSettings.Builder + streamRawPredictSettings() { + return getStubSettingsBuilder().streamRawPredictSettings(); + } + /** Returns the builder for the settings used for calls to directPredict. */ public UnaryCallSettings.Builder directPredictSettings() { diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json index 180f8caec982..c3ea5c12cead 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json @@ -1432,6 +1432,9 @@ "StreamGenerateContent": { "methods": ["streamGenerateContentCallable"] }, + "StreamRawPredict": { + "methods": ["streamRawPredictCallable"] + }, "StreamingPredict": { "methods": ["streamingPredictCallable"] }, diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcPredictionServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcPredictionServiceStub.java index 01a2e235f83e..7cef9fc8674d 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcPredictionServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcPredictionServiceStub.java @@ -47,6 +47,7 @@ import com.google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse; import com.google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest; import com.google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse; +import com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest; import com.google.cloud.aiplatform.v1beta1.StreamingPredictRequest; import com.google.cloud.aiplatform.v1beta1.StreamingPredictResponse; import com.google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest; @@ -92,6 +93,17 @@ public class GrpcPredictionServiceStub extends PredictionServiceStub { .setResponseMarshaller(ProtoUtils.marshaller(HttpBody.getDefaultInstance())) .build(); + private static final MethodDescriptor + streamRawPredictMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.SERVER_STREAMING) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.PredictionService/StreamRawPredict") + .setRequestMarshaller( + ProtoUtils.marshaller(StreamRawPredictRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(HttpBody.getDefaultInstance())) + .build(); + private static final MethodDescriptor directPredictMethodDescriptor = MethodDescriptor.newBuilder() @@ -278,6 +290,7 @@ public class GrpcPredictionServiceStub extends PredictionServiceStub { private final UnaryCallable predictCallable; private final UnaryCallable rawPredictCallable; + private final ServerStreamingCallable streamRawPredictCallable; private final UnaryCallable directPredictCallable; private final UnaryCallable directRawPredictCallable; @@ -371,6 +384,16 @@ protected GrpcPredictionServiceStub( return builder.build(); }) .build(); + GrpcCallSettings streamRawPredictTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(streamRawPredictMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("endpoint", String.valueOf(request.getEndpoint())); + return builder.build(); + }) + .build(); GrpcCallSettings directPredictTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(directPredictMethodDescriptor) @@ -534,6 +557,9 @@ protected GrpcPredictionServiceStub( this.rawPredictCallable = callableFactory.createUnaryCallable( rawPredictTransportSettings, settings.rawPredictSettings(), clientContext); + this.streamRawPredictCallable = + callableFactory.createServerStreamingCallable( + streamRawPredictTransportSettings, settings.streamRawPredictSettings(), clientContext); this.directPredictCallable = callableFactory.createUnaryCallable( directPredictTransportSettings, settings.directPredictSettings(), clientContext); @@ -619,6 +645,11 @@ public UnaryCallable rawPredictCallable() { return rawPredictCallable; } + @Override + public ServerStreamingCallable streamRawPredictCallable() { + return streamRawPredictCallable; + } + @Override public UnaryCallable directPredictCallable() { return directPredictCallable; diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PredictionServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PredictionServiceStub.java index c2b8f4733fa0..3169c08890b8 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PredictionServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PredictionServiceStub.java @@ -42,6 +42,7 @@ import com.google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse; import com.google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest; import com.google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse; +import com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest; import com.google.cloud.aiplatform.v1beta1.StreamingPredictRequest; import com.google.cloud.aiplatform.v1beta1.StreamingPredictResponse; import com.google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest; @@ -75,6 +76,10 @@ public UnaryCallable rawPredictCallable() { throw new UnsupportedOperationException("Not implemented: rawPredictCallable()"); } + public ServerStreamingCallable streamRawPredictCallable() { + throw new UnsupportedOperationException("Not implemented: streamRawPredictCallable()"); + } + public UnaryCallable directPredictCallable() { throw new UnsupportedOperationException("Not implemented: directPredictCallable()"); } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PredictionServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PredictionServiceStubSettings.java index 26f6a1607790..400a53cf151d 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PredictionServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/PredictionServiceStubSettings.java @@ -61,6 +61,7 @@ import com.google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse; import com.google.cloud.aiplatform.v1beta1.StreamDirectRawPredictRequest; import com.google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse; +import com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest; import com.google.cloud.aiplatform.v1beta1.StreamingPredictRequest; import com.google.cloud.aiplatform.v1beta1.StreamingPredictResponse; import com.google.cloud.aiplatform.v1beta1.StreamingRawPredictRequest; @@ -133,6 +134,8 @@ public class PredictionServiceStubSettings extends StubSettings predictSettings; private final UnaryCallSettings rawPredictSettings; + private final ServerStreamingCallSettings + streamRawPredictSettings; private final UnaryCallSettings directPredictSettings; private final UnaryCallSettings @@ -227,6 +230,11 @@ public UnaryCallSettings rawPredictSettings() { return rawPredictSettings; } + /** Returns the object with the settings used for calls to streamRawPredict. */ + public ServerStreamingCallSettings streamRawPredictSettings() { + return streamRawPredictSettings; + } + /** Returns the object with the settings used for calls to directPredict. */ public UnaryCallSettings directPredictSettings() { return directPredictSettings; @@ -404,6 +412,7 @@ protected PredictionServiceStubSettings(Builder settingsBuilder) throws IOExcept predictSettings = settingsBuilder.predictSettings().build(); rawPredictSettings = settingsBuilder.rawPredictSettings().build(); + streamRawPredictSettings = settingsBuilder.streamRawPredictSettings().build(); directPredictSettings = settingsBuilder.directPredictSettings().build(); directRawPredictSettings = settingsBuilder.directRawPredictSettings().build(); streamDirectPredictSettings = settingsBuilder.streamDirectPredictSettings().build(); @@ -428,6 +437,8 @@ public static class Builder extends StubSettings.Builder> unaryMethodSettingsBuilders; private final UnaryCallSettings.Builder predictSettings; private final UnaryCallSettings.Builder rawPredictSettings; + private final ServerStreamingCallSettings.Builder + streamRawPredictSettings; private final UnaryCallSettings.Builder directPredictSettings; private final UnaryCallSettings.Builder @@ -503,6 +514,7 @@ protected Builder(ClientContext clientContext) { predictSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); rawPredictSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + streamRawPredictSettings = ServerStreamingCallSettings.newBuilder(); directPredictSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); directRawPredictSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); streamDirectPredictSettings = StreamingCallSettings.newBuilder(); @@ -543,6 +555,7 @@ protected Builder(PredictionServiceStubSettings settings) { predictSettings = settings.predictSettings.toBuilder(); rawPredictSettings = settings.rawPredictSettings.toBuilder(); + streamRawPredictSettings = settings.streamRawPredictSettings.toBuilder(); directPredictSettings = settings.directPredictSettings.toBuilder(); directRawPredictSettings = settings.directRawPredictSettings.toBuilder(); streamDirectPredictSettings = settings.streamDirectPredictSettings.toBuilder(); @@ -600,6 +613,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .streamRawPredictSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .directPredictSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -693,6 +711,12 @@ public UnaryCallSettings.Builder rawPredictSettings return rawPredictSettings; } + /** Returns the builder for the settings used for calls to streamRawPredict. */ + public ServerStreamingCallSettings.Builder + streamRawPredictSettings() { + return streamRawPredictSettings; + } + /** Returns the builder for the settings used for calls to directPredict. */ public UnaryCallSettings.Builder directPredictSettings() { diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json index eadc9fe9f90a..5cbd7ed84b1b 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json +++ b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json @@ -8666,6 +8666,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.GroundingChunk", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.GroundingChunk$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.GroundingChunk$RetrievedContext", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.GroundingChunk$RetrievedContext$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.GroundingChunk$Web", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.GroundingChunk$Web$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.GroundingMetadata", "queryAllDeclaredConstructors": true, @@ -8684,6 +8738,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.GroundingSupport", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.GroundingSupport$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.HarmCategory", "queryAllDeclaredConstructors": true, @@ -17333,6 +17405,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.StreamingFetchFeatureValuesRequest", "queryAllDeclaredConstructors": true, diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/GenAiTuningServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/GenAiTuningServiceClientTest.java index 0a8b1843e1fe..8ae6ea995331 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/GenAiTuningServiceClientTest.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/GenAiTuningServiceClientTest.java @@ -123,6 +123,7 @@ public void createTuningJobTest() throws Exception { .toString()) .setTunedModel(TunedModel.newBuilder().build()) .setTuningDataStats(TuningDataStats.newBuilder().build()) + .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .build(); mockGenAiTuningService.addResponse(expectedResponse); @@ -178,6 +179,7 @@ public void createTuningJobTest2() throws Exception { .toString()) .setTunedModel(TunedModel.newBuilder().build()) .setTuningDataStats(TuningDataStats.newBuilder().build()) + .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .build(); mockGenAiTuningService.addResponse(expectedResponse); @@ -233,6 +235,7 @@ public void getTuningJobTest() throws Exception { .toString()) .setTunedModel(TunedModel.newBuilder().build()) .setTuningDataStats(TuningDataStats.newBuilder().build()) + .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .build(); mockGenAiTuningService.addResponse(expectedResponse); @@ -285,6 +288,7 @@ public void getTuningJobTest2() throws Exception { .toString()) .setTunedModel(TunedModel.newBuilder().build()) .setTuningDataStats(TuningDataStats.newBuilder().build()) + .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .build(); mockGenAiTuningService.addResponse(expectedResponse); diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/PipelineServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/PipelineServiceClientTest.java index d86d80209063..f407cdf69a2b 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/PipelineServiceClientTest.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/PipelineServiceClientTest.java @@ -617,6 +617,7 @@ public void createPipelineJobTest() throws Exception { .setTemplateUri("templateUri1769633426") .setTemplateMetadata(PipelineTemplateMetadata.newBuilder().build()) .setScheduleName("scheduleName1161977282") + .setPreflightValidations(true) .build(); mockPipelineService.addResponse(expectedResponse); @@ -679,6 +680,7 @@ public void createPipelineJobTest2() throws Exception { .setTemplateUri("templateUri1769633426") .setTemplateMetadata(PipelineTemplateMetadata.newBuilder().build()) .setScheduleName("scheduleName1161977282") + .setPreflightValidations(true) .build(); mockPipelineService.addResponse(expectedResponse); @@ -741,6 +743,7 @@ public void getPipelineJobTest() throws Exception { .setTemplateUri("templateUri1769633426") .setTemplateMetadata(PipelineTemplateMetadata.newBuilder().build()) .setScheduleName("scheduleName1161977282") + .setPreflightValidations(true) .build(); mockPipelineService.addResponse(expectedResponse); @@ -797,6 +800,7 @@ public void getPipelineJobTest2() throws Exception { .setTemplateUri("templateUri1769633426") .setTemplateMetadata(PipelineTemplateMetadata.newBuilder().build()) .setScheduleName("scheduleName1161977282") + .setPreflightValidations(true) .build(); mockPipelineService.addResponse(expectedResponse); diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockPredictionServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockPredictionServiceImpl.java index ec218ac285eb..c5ef04e965e8 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockPredictionServiceImpl.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockPredictionServiceImpl.java @@ -99,6 +99,27 @@ public void rawPredict(RawPredictRequest request, StreamObserver respo } } + @Override + public void streamRawPredict( + StreamRawPredictRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof HttpBody) { + requests.add(request); + responseObserver.onNext(((HttpBody) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method StreamRawPredict, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + HttpBody.class.getName(), + Exception.class.getName()))); + } + } + @Override public void directPredict( DirectPredictRequest request, StreamObserver responseObserver) { diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceClientTest.java index e3de895a9543..e50308e4bccc 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceClientTest.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceClientTest.java @@ -296,6 +296,62 @@ public void rawPredictExceptionTest2() throws Exception { } } + @Test + public void streamRawPredictTest() throws Exception { + HttpBody expectedResponse = + HttpBody.newBuilder() + .setContentType("contentType-389131437") + .setData(ByteString.EMPTY) + .addAllExtensions(new ArrayList()) + .build(); + mockPredictionService.addResponse(expectedResponse); + StreamRawPredictRequest request = + StreamRawPredictRequest.newBuilder() + .setEndpoint( + EndpointName.ofProjectLocationEndpointName("[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .setHttpBody(HttpBody.newBuilder().build()) + .build(); + + MockStreamObserver responseObserver = new MockStreamObserver<>(); + + ServerStreamingCallable callable = + client.streamRawPredictCallable(); + callable.serverStreamingCall(request, responseObserver); + + List actualResponses = responseObserver.future().get(); + Assert.assertEquals(1, actualResponses.size()); + Assert.assertEquals(expectedResponse, actualResponses.get(0)); + } + + @Test + public void streamRawPredictExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockPredictionService.addException(exception); + StreamRawPredictRequest request = + StreamRawPredictRequest.newBuilder() + .setEndpoint( + EndpointName.ofProjectLocationEndpointName("[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .setHttpBody(HttpBody.newBuilder().build()) + .build(); + + MockStreamObserver responseObserver = new MockStreamObserver<>(); + + ServerStreamingCallable callable = + client.streamRawPredictCallable(); + callable.serverStreamingCall(request, responseObserver); + + try { + List actualResponses = responseObserver.future().get(); + Assert.fail("No exception thrown"); + } catch (ExecutionException e) { + Assert.assertTrue(e.getCause() instanceof InvalidArgumentException); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + @Test public void directPredictTest() throws Exception { DirectPredictResponse expectedResponse = diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceGrpc.java index 74e47ceb1e8c..884519e0c5d3 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceGrpc.java @@ -125,6 +125,49 @@ private PredictionServiceGrpc() {} return getRawPredictMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest, com.google.api.HttpBody> + getStreamRawPredictMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StreamRawPredict", + requestType = com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest.class, + responseType = com.google.api.HttpBody.class, + methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest, com.google.api.HttpBody> + getStreamRawPredictMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest, com.google.api.HttpBody> + getStreamRawPredictMethod; + if ((getStreamRawPredictMethod = PredictionServiceGrpc.getStreamRawPredictMethod) == null) { + synchronized (PredictionServiceGrpc.class) { + if ((getStreamRawPredictMethod = PredictionServiceGrpc.getStreamRawPredictMethod) == null) { + PredictionServiceGrpc.getStreamRawPredictMethod = + getStreamRawPredictMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamRawPredict")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.api.HttpBody.getDefaultInstance())) + .setSchemaDescriptor( + new PredictionServiceMethodDescriptorSupplier("StreamRawPredict")) + .build(); + } + } + } + return getStreamRawPredictMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.aiplatform.v1beta1.DirectPredictRequest, com.google.cloud.aiplatform.v1beta1.DirectPredictResponse> @@ -785,6 +828,20 @@ default void rawPredict( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRawPredictMethod(), responseObserver); } + /** + * + * + *
+     * Perform a streaming online prediction with an arbitrary HTTP payload.
+     * 
+ */ + default void streamRawPredict( + com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStreamRawPredictMethod(), responseObserver); + } + /** * * @@ -1057,6 +1114,22 @@ public void rawPredict( getChannel().newCall(getRawPredictMethod(), getCallOptions()), request, responseObserver); } + /** + * + * + *
+     * Perform a streaming online prediction with an arbitrary HTTP payload.
+     * 
+ */ + public void streamRawPredict( + com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncServerStreamingCall( + getChannel().newCall(getStreamRawPredictMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -1327,6 +1400,19 @@ public com.google.api.HttpBody rawPredict( getChannel(), getRawPredictMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Perform a streaming online prediction with an arbitrary HTTP payload.
+     * 
+ */ + public java.util.Iterator streamRawPredict( + com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest request) { + return io.grpc.stub.ClientCalls.blockingServerStreamingCall( + getChannel(), getStreamRawPredictMethod(), getCallOptions(), request); + } + /** * * @@ -1582,18 +1668,19 @@ public com.google.common.util.concurrent.ListenableFuture implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1623,6 +1710,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.aiplatform.v1beta1.RawPredictRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_STREAM_RAW_PREDICT: + serviceImpl.streamRawPredict( + (com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_DIRECT_PREDICT: serviceImpl.directPredict( (com.google.cloud.aiplatform.v1beta1.DirectPredictRequest) request, @@ -1730,6 +1822,12 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.aiplatform.v1beta1.RawPredictRequest, com.google.api.HttpBody>( service, METHODID_RAW_PREDICT))) + .addMethod( + getStreamRawPredictMethod(), + io.grpc.stub.ServerCalls.asyncServerStreamingCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest, + com.google.api.HttpBody>(service, METHODID_STREAM_RAW_PREDICT))) .addMethod( getDirectPredictMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -1866,6 +1964,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .setSchemaDescriptor(new PredictionServiceFileDescriptorSupplier()) .addMethod(getPredictMethod()) .addMethod(getRawPredictMethod()) + .addMethod(getStreamRawPredictMethod()) .addMethod(getDirectPredictMethod()) .addMethod(getDirectRawPredictMethod()) .addMethod(getStreamDirectPredictMethod()) diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Candidate.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Candidate.java index b797f144c357..429b761d1ca5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Candidate.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Candidate.java @@ -172,6 +172,16 @@ public enum FinishReason implements com.google.protobuf.ProtocolMessageEnum { * SPII = 8; */ SPII(8), + /** + * + * + *
+     * The function call generated by the model is invalid.
+     * 
+ * + * MALFORMED_FUNCTION_CALL = 9; + */ + MALFORMED_FUNCTION_CALL(9), UNRECOGNIZED(-1), ; @@ -271,6 +281,16 @@ public enum FinishReason implements com.google.protobuf.ProtocolMessageEnum { * SPII = 8; */ public static final int SPII_VALUE = 8; + /** + * + * + *
+     * The function call generated by the model is invalid.
+     * 
+ * + * MALFORMED_FUNCTION_CALL = 9; + */ + public static final int MALFORMED_FUNCTION_CALL_VALUE = 9; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -314,6 +334,8 @@ public static FinishReason forNumber(int value) { return PROHIBITED_CONTENT; case 8: return SPII; + case 9: + return MALFORMED_FUNCTION_CALL; default: return null; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContentProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContentProto.java index d562aba31950..4c93494292d7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContentProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContentProto.java @@ -158,8 +158,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\n\013start_index\030\001 \001(\005B\003\340A\003\022\026\n\tend_index\030\002 " + "\001(\005B\003\340A\003\022\020\n\003uri\030\003 \001(\tB\003\340A\003\022\022\n\005title\030\004 \001(" + "\tB\003\340A\003\022\024\n\007license\030\005 \001(\tB\003\340A\003\0220\n\020publicat" - + "ion_date\030\006 \001(\0132\021.google.type.DateB\003\340A\003\"\346" - + "\004\n\tCandidate\022\022\n\005index\030\001 \001(\005B\003\340A\003\0229\n\007cont" + + "ion_date\030\006 \001(\0132\021.google.type.DateB\003\340A\003\"\203" + + "\005\n\tCandidate\022\022\n\005index\030\001 \001(\005B\003\340A\003\0229\n\007cont" + "ent\030\002 \001(\0132#.google.cloud.aiplatform.v1.C" + "ontentB\003\340A\003\022N\n\rfinish_reason\030\003 \001(\01622.goo" + "gle.cloud.aiplatform.v1.Candidate.Finish" @@ -169,28 +169,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "citation_metadata\030\006 \001(\0132,.google.cloud.a" + "iplatform.v1.CitationMetadataB\003\340A\003\022N\n\022gr" + "ounding_metadata\030\007 \001(\0132-.google.cloud.ai" - + "platform.v1.GroundingMetadataB\003\340A\003\"\237\001\n\014F" + + "platform.v1.GroundingMetadataB\003\340A\003\"\274\001\n\014F" + "inishReason\022\035\n\031FINISH_REASON_UNSPECIFIED" + "\020\000\022\010\n\004STOP\020\001\022\016\n\nMAX_TOKENS\020\002\022\n\n\006SAFETY\020\003" + "\022\016\n\nRECITATION\020\004\022\t\n\005OTHER\020\005\022\r\n\tBLOCKLIST" - + "\020\006\022\026\n\022PROHIBITED_CONTENT\020\007\022\010\n\004SPII\020\010B\021\n\017" - + "_finish_message\"\237\001\n\021GroundingMetadata\022\037\n" - + "\022web_search_queries\030\001 \003(\tB\003\340A\001\022R\n\022search" - + "_entry_point\030\004 \001(\0132,.google.cloud.aiplat" - + "form.v1.SearchEntryPointB\003\340A\001H\000\210\001\001B\025\n\023_s" - + "earch_entry_point\"H\n\020SearchEntryPoint\022\035\n" - + "\020rendered_content\030\001 \001(\tB\003\340A\001\022\025\n\010sdk_blob" - + "\030\002 \001(\014B\003\340A\001*\264\001\n\014HarmCategory\022\035\n\031HARM_CAT" - + "EGORY_UNSPECIFIED\020\000\022\035\n\031HARM_CATEGORY_HAT" - + "E_SPEECH\020\001\022#\n\037HARM_CATEGORY_DANGEROUS_CO" - + "NTENT\020\002\022\034\n\030HARM_CATEGORY_HARASSMENT\020\003\022#\n" - + "\037HARM_CATEGORY_SEXUALLY_EXPLICIT\020\004B\312\001\n\036c" - + "om.google.cloud.aiplatform.v1B\014ContentPr" - + "otoP\001Z>cloud.google.com/go/aiplatform/ap" - + "iv1/aiplatformpb;aiplatformpb\252\002\032Google.C" - + "loud.AIPlatform.V1\312\002\032Google\\Cloud\\AIPlat" - + "form\\V1\352\002\035Google::Cloud::AIPlatform::V1b" - + "\006proto3" + + "\020\006\022\026\n\022PROHIBITED_CONTENT\020\007\022\010\n\004SPII\020\010\022\033\n\027" + + "MALFORMED_FUNCTION_CALL\020\tB\021\n\017_finish_mes" + + "sage\"\237\001\n\021GroundingMetadata\022\037\n\022web_search" + + "_queries\030\001 \003(\tB\003\340A\001\022R\n\022search_entry_poin" + + "t\030\004 \001(\0132,.google.cloud.aiplatform.v1.Sea" + + "rchEntryPointB\003\340A\001H\000\210\001\001B\025\n\023_search_entry" + + "_point\"H\n\020SearchEntryPoint\022\035\n\020rendered_c" + + "ontent\030\001 \001(\tB\003\340A\001\022\025\n\010sdk_blob\030\002 \001(\014B\003\340A\001" + + "*\264\001\n\014HarmCategory\022\035\n\031HARM_CATEGORY_UNSPE" + + "CIFIED\020\000\022\035\n\031HARM_CATEGORY_HATE_SPEECH\020\001\022" + + "#\n\037HARM_CATEGORY_DANGEROUS_CONTENT\020\002\022\034\n\030" + + "HARM_CATEGORY_HARASSMENT\020\003\022#\n\037HARM_CATEG" + + "ORY_SEXUALLY_EXPLICIT\020\004B\312\001\n\036com.google.c" + + "loud.aiplatform.v1B\014ContentProtoP\001Z>clou" + + "d.google.com/go/aiplatform/apiv1/aiplatf" + + "ormpb;aiplatformpb\252\002\032Google.Cloud.AIPlat" + + "form.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035G" + + "oogle::Cloud::AIPlatform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Pipeline.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Pipeline.java index b0f7d40cd53f..081277ceab20 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Pipeline.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Pipeline.java @@ -118,7 +118,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/pipeline_state.proto\032&google/cloud/aipl" + "atform/v1/value.proto\032\034google/protobuf/s" + "truct.proto\032\037google/protobuf/timestamp.p" - + "roto\032\027google/rpc/status.proto\"\320\016\n\013Pipeli" + + "roto\032\027google/rpc/status.proto\"\364\016\n\013Pipeli" + "neJob\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\014display_name" + "\030\002 \001(\t\0224\n\013create_time\030\003 \001(\0132\032.google.pro" + "tobuf.TimestampB\003\340A\003\0223\n\nstart_time\030\004 \001(\013" @@ -142,95 +142,96 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031 \003(\t\022\024\n\014template_uri\030\023 \001(\t\022T\n\021template_" + "metadata\030\024 \001(\01324.google.cloud.aiplatform" + ".v1.PipelineTemplateMetadataB\003\340A\003\022\032\n\rsch" - + "edule_name\030\026 \001(\tB\003\340A\003\032\370\005\n\rRuntimeConfig\022" - + "]\n\nparameters\030\001 \003(\0132E.google.cloud.aipla" - + "tform.v1.PipelineJob.RuntimeConfig.Param" - + "etersEntryB\002\030\001\022!\n\024gcs_output_directory\030\002" - + " \001(\tB\003\340A\002\022d\n\020parameter_values\030\003 \003(\0132J.go" - + "ogle.cloud.aiplatform.v1.PipelineJob.Run" - + "timeConfig.ParameterValuesEntry\022I\n\016failu" - + "re_policy\030\004 \001(\01621.google.cloud.aiplatfor" - + "m.v1.PipelineFailurePolicy\022b\n\017input_arti" - + "facts\030\005 \003(\0132I.google.cloud.aiplatform.v1" - + ".PipelineJob.RuntimeConfig.InputArtifact" - + "sEntry\032.\n\rInputArtifact\022\025\n\013artifact_id\030\001" - + " \001(\tH\000B\006\n\004kind\032T\n\017ParametersEntry\022\013\n\003key" - + "\030\001 \001(\t\0220\n\005value\030\002 \001(\0132!.google.cloud.aip" - + "latform.v1.Value:\0028\001\032N\n\024ParameterValuesE" - + "ntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.googl" - + "e.protobuf.Value:\0028\001\032z\n\023InputArtifactsEn" - + "try\022\013\n\003key\030\001 \001(\t\022R\n\005value\030\002 \001(\0132C.google" + + "edule_name\030\026 \001(\tB\003\340A\003\022\"\n\025preflight_valid" + + "ations\030\032 \001(\010B\003\340A\001\032\370\005\n\rRuntimeConfig\022]\n\np" + + "arameters\030\001 \003(\0132E.google.cloud.aiplatfor" + + "m.v1.PipelineJob.RuntimeConfig.Parameter" + + "sEntryB\002\030\001\022!\n\024gcs_output_directory\030\002 \001(\t" + + "B\003\340A\002\022d\n\020parameter_values\030\003 \003(\0132J.google" + ".cloud.aiplatform.v1.PipelineJob.Runtime" - + "Config.InputArtifact:\0028\001\032-\n\013LabelsEntry\022" - + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:o\352Al\n%ai" - + "platform.googleapis.com/PipelineJob\022Cpro" - + "jects/{project}/locations/{location}/pip" - + "elineJobs/{pipeline_job}\"+\n\030PipelineTemp" - + "lateMetadata\022\017\n\007version\030\003 \001(\t\"\352\001\n\021Pipeli" - + "neJobDetail\022B\n\020pipeline_context\030\001 \001(\0132#." - + "google.cloud.aiplatform.v1.ContextB\003\340A\003\022" - + "F\n\024pipeline_run_context\030\002 \001(\0132#.google.c" - + "loud.aiplatform.v1.ContextB\003\340A\003\022I\n\014task_" - + "details\030\003 \003(\0132..google.cloud.aiplatform." - + "v1.PipelineTaskDetailB\003\340A\003\"\235\013\n\022PipelineT" - + "askDetail\022\024\n\007task_id\030\001 \001(\003B\003\340A\003\022\033\n\016paren" - + "t_task_id\030\014 \001(\003B\003\340A\003\022\026\n\ttask_name\030\002 \001(\tB" - + "\003\340A\003\0224\n\013create_time\030\003 \001(\0132\032.google.proto" - + "buf.TimestampB\003\340A\003\0223\n\nstart_time\030\004 \001(\0132\032" - + ".google.protobuf.TimestampB\003\340A\003\0221\n\010end_t" - + "ime\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340" - + "A\003\022T\n\017executor_detail\030\006 \001(\01326.google.clo" - + "ud.aiplatform.v1.PipelineTaskExecutorDet" - + "ailB\003\340A\003\022H\n\005state\030\007 \001(\01624.google.cloud.a" - + "iplatform.v1.PipelineTaskDetail.StateB\003\340" - + "A\003\022=\n\texecution\030\010 \001(\0132%.google.cloud.aip" - + "latform.v1.ExecutionB\003\340A\003\022&\n\005error\030\t \001(\013" - + "2\022.google.rpc.StatusB\003\340A\003\022d\n\024pipeline_ta" - + "sk_status\030\r \003(\0132A.google.cloud.aiplatfor" - + "m.v1.PipelineTaskDetail.PipelineTaskStat" - + "usB\003\340A\003\022O\n\006inputs\030\n \003(\0132:.google.cloud.a" - + "iplatform.v1.PipelineTaskDetail.InputsEn" - + "tryB\003\340A\003\022Q\n\007outputs\030\013 \003(\0132;.google.cloud" - + ".aiplatform.v1.PipelineTaskDetail.Output" - + "sEntryB\003\340A\003\032\274\001\n\022PipelineTaskStatus\0224\n\013up" - + "date_time\030\001 \001(\0132\032.google.protobuf.Timest" - + "ampB\003\340A\003\022H\n\005state\030\002 \001(\01624.google.cloud.a" - + "iplatform.v1.PipelineTaskDetail.StateB\003\340" - + "A\003\022&\n\005error\030\003 \001(\0132\022.google.rpc.StatusB\003\340" - + "A\003\032L\n\014ArtifactList\022<\n\tartifacts\030\001 \003(\0132$." - + "google.cloud.aiplatform.v1.ArtifactB\003\340A\003" - + "\032j\n\013InputsEntry\022\013\n\003key\030\001 \001(\t\022J\n\005value\030\002 " - + "\001(\0132;.google.cloud.aiplatform.v1.Pipelin" - + "eTaskDetail.ArtifactList:\0028\001\032k\n\014OutputsE" - + "ntry\022\013\n\003key\030\001 \001(\t\022J\n\005value\030\002 \001(\0132;.googl" - + "e.cloud.aiplatform.v1.PipelineTaskDetail" - + ".ArtifactList:\0028\001\"\246\001\n\005State\022\025\n\021STATE_UNS" - + "PECIFIED\020\000\022\013\n\007PENDING\020\001\022\013\n\007RUNNING\020\002\022\r\n\t" - + "SUCCEEDED\020\003\022\022\n\016CANCEL_PENDING\020\004\022\016\n\nCANCE" - + "LLING\020\005\022\r\n\tCANCELLED\020\006\022\n\n\006FAILED\020\007\022\013\n\007SK" - + "IPPED\020\010\022\021\n\rNOT_TRIGGERED\020\t\"\313\004\n\032PipelineT" - + "askExecutorDetail\022g\n\020container_detail\030\001 " - + "\001(\0132F.google.cloud.aiplatform.v1.Pipelin" - + "eTaskExecutorDetail.ContainerDetailB\003\340A\003" - + "H\000\022h\n\021custom_job_detail\030\002 \001(\0132F.google.c" - + "loud.aiplatform.v1.PipelineTaskExecutorD" - + "etail.CustomJobDetailB\003\340A\003H\000\032\347\001\n\017Contain" - + "erDetail\022=\n\010main_job\030\001 \001(\tB+\340A\003\372A%\n#aipl" - + "atform.googleapis.com/CustomJob\022J\n\025pre_c" - + "aching_check_job\030\002 \001(\tB+\340A\003\372A%\n#aiplatfo" - + "rm.googleapis.com/CustomJob\022\035\n\020failed_ma" - + "in_jobs\030\003 \003(\tB\003\340A\003\022*\n\035failed_pre_caching" - + "_check_jobs\030\004 \003(\tB\003\340A\003\032e\n\017CustomJobDetai" - + "l\0228\n\003job\030\001 \001(\tB+\340A\003\372A%\n#aiplatform.googl" - + "eapis.com/CustomJob\022\030\n\013failed_jobs\030\003 \003(\t" - + "B\003\340A\003B\t\n\007detailsB\227\002\n\036com.google.cloud.ai" - + "platform.v1B\010PipelineP\001Z>cloud.google.co" - + "m/go/aiplatform/apiv1/aiplatformpb;aipla" - + "tformpb\252\002\032Google.Cloud.AIPlatform.V1\312\002\032G" - + "oogle\\Cloud\\AIPlatform\\V1\352\002\035Google::Clou" - + "d::AIPlatform::V1\352AN\n\036compute.googleapis" - + ".com/Network\022,projects/{project}/global/" - + "networks/{network}b\006proto3" + + "Config.ParameterValuesEntry\022I\n\016failure_p" + + "olicy\030\004 \001(\01621.google.cloud.aiplatform.v1" + + ".PipelineFailurePolicy\022b\n\017input_artifact" + + "s\030\005 \003(\0132I.google.cloud.aiplatform.v1.Pip" + + "elineJob.RuntimeConfig.InputArtifactsEnt" + + "ry\032.\n\rInputArtifact\022\025\n\013artifact_id\030\001 \001(\t" + + "H\000B\006\n\004kind\032T\n\017ParametersEntry\022\013\n\003key\030\001 \001" + + "(\t\0220\n\005value\030\002 \001(\0132!.google.cloud.aiplatf" + + "orm.v1.Value:\0028\001\032N\n\024ParameterValuesEntry" + + "\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.pr" + + "otobuf.Value:\0028\001\032z\n\023InputArtifactsEntry\022" + + "\013\n\003key\030\001 \001(\t\022R\n\005value\030\002 \001(\0132C.google.clo" + + "ud.aiplatform.v1.PipelineJob.RuntimeConf" + + "ig.InputArtifact:\0028\001\032-\n\013LabelsEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:o\352Al\n%aiplat" + + "form.googleapis.com/PipelineJob\022Cproject" + + "s/{project}/locations/{location}/pipelin" + + "eJobs/{pipeline_job}\"+\n\030PipelineTemplate" + + "Metadata\022\017\n\007version\030\003 \001(\t\"\352\001\n\021PipelineJo" + + "bDetail\022B\n\020pipeline_context\030\001 \001(\0132#.goog" + + "le.cloud.aiplatform.v1.ContextB\003\340A\003\022F\n\024p" + + "ipeline_run_context\030\002 \001(\0132#.google.cloud" + + ".aiplatform.v1.ContextB\003\340A\003\022I\n\014task_deta" + + "ils\030\003 \003(\0132..google.cloud.aiplatform.v1.P" + + "ipelineTaskDetailB\003\340A\003\"\235\013\n\022PipelineTaskD" + + "etail\022\024\n\007task_id\030\001 \001(\003B\003\340A\003\022\033\n\016parent_ta" + + "sk_id\030\014 \001(\003B\003\340A\003\022\026\n\ttask_name\030\002 \001(\tB\003\340A\003" + + "\0224\n\013create_time\030\003 \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\0223\n\nstart_time\030\004 \001(\0132\032.goo" + + "gle.protobuf.TimestampB\003\340A\003\0221\n\010end_time\030" + + "\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022T" + + "\n\017executor_detail\030\006 \001(\01326.google.cloud.a" + + "iplatform.v1.PipelineTaskExecutorDetailB" + + "\003\340A\003\022H\n\005state\030\007 \001(\01624.google.cloud.aipla" + + "tform.v1.PipelineTaskDetail.StateB\003\340A\003\022=" + + "\n\texecution\030\010 \001(\0132%.google.cloud.aiplatf" + + "orm.v1.ExecutionB\003\340A\003\022&\n\005error\030\t \001(\0132\022.g" + + "oogle.rpc.StatusB\003\340A\003\022d\n\024pipeline_task_s" + + "tatus\030\r \003(\0132A.google.cloud.aiplatform.v1" + + ".PipelineTaskDetail.PipelineTaskStatusB\003" + + "\340A\003\022O\n\006inputs\030\n \003(\0132:.google.cloud.aipla" + + "tform.v1.PipelineTaskDetail.InputsEntryB" + + "\003\340A\003\022Q\n\007outputs\030\013 \003(\0132;.google.cloud.aip" + + "latform.v1.PipelineTaskDetail.OutputsEnt" + + "ryB\003\340A\003\032\274\001\n\022PipelineTaskStatus\0224\n\013update" + + "_time\030\001 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\022H\n\005state\030\002 \001(\01624.google.cloud.aipla" + + "tform.v1.PipelineTaskDetail.StateB\003\340A\003\022&" + + "\n\005error\030\003 \001(\0132\022.google.rpc.StatusB\003\340A\003\032L" + + "\n\014ArtifactList\022<\n\tartifacts\030\001 \003(\0132$.goog" + + "le.cloud.aiplatform.v1.ArtifactB\003\340A\003\032j\n\013" + + "InputsEntry\022\013\n\003key\030\001 \001(\t\022J\n\005value\030\002 \001(\0132" + + ";.google.cloud.aiplatform.v1.PipelineTas" + + "kDetail.ArtifactList:\0028\001\032k\n\014OutputsEntry" + + "\022\013\n\003key\030\001 \001(\t\022J\n\005value\030\002 \001(\0132;.google.cl" + + "oud.aiplatform.v1.PipelineTaskDetail.Art" + + "ifactList:\0028\001\"\246\001\n\005State\022\025\n\021STATE_UNSPECI" + + "FIED\020\000\022\013\n\007PENDING\020\001\022\013\n\007RUNNING\020\002\022\r\n\tSUCC" + + "EEDED\020\003\022\022\n\016CANCEL_PENDING\020\004\022\016\n\nCANCELLIN" + + "G\020\005\022\r\n\tCANCELLED\020\006\022\n\n\006FAILED\020\007\022\013\n\007SKIPPE" + + "D\020\010\022\021\n\rNOT_TRIGGERED\020\t\"\313\004\n\032PipelineTaskE" + + "xecutorDetail\022g\n\020container_detail\030\001 \001(\0132" + + "F.google.cloud.aiplatform.v1.PipelineTas" + + "kExecutorDetail.ContainerDetailB\003\340A\003H\000\022h" + + "\n\021custom_job_detail\030\002 \001(\0132F.google.cloud" + + ".aiplatform.v1.PipelineTaskExecutorDetai" + + "l.CustomJobDetailB\003\340A\003H\000\032\347\001\n\017ContainerDe" + + "tail\022=\n\010main_job\030\001 \001(\tB+\340A\003\372A%\n#aiplatfo" + + "rm.googleapis.com/CustomJob\022J\n\025pre_cachi" + + "ng_check_job\030\002 \001(\tB+\340A\003\372A%\n#aiplatform.g" + + "oogleapis.com/CustomJob\022\035\n\020failed_main_j" + + "obs\030\003 \003(\tB\003\340A\003\022*\n\035failed_pre_caching_che" + + "ck_jobs\030\004 \003(\tB\003\340A\003\032e\n\017CustomJobDetail\0228\n" + + "\003job\030\001 \001(\tB+\340A\003\372A%\n#aiplatform.googleapi" + + "s.com/CustomJob\022\030\n\013failed_jobs\030\003 \003(\tB\003\340A" + + "\003B\t\n\007detailsB\227\002\n\036com.google.cloud.aiplat" + + "form.v1B\010PipelineP\001Z>cloud.google.com/go" + + "/aiplatform/apiv1/aiplatformpb;aiplatfor" + + "mpb\252\002\032Google.Cloud.AIPlatform.V1\312\002\032Googl" + + "e\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::A" + + "IPlatform::V1\352AN\n\036compute.googleapis.com" + + "/Network\022,projects/{project}/global/netw" + + "orks/{network}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -274,6 +275,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TemplateUri", "TemplateMetadata", "ScheduleName", + "PreflightValidations", }); internal_static_google_cloud_aiplatform_v1_PipelineJob_RuntimeConfig_descriptor = internal_static_google_cloud_aiplatform_v1_PipelineJob_descriptor.getNestedTypes().get(0); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJob.java index 70a59406bdc0..39752d325450 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJob.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJob.java @@ -4765,6 +4765,24 @@ public com.google.protobuf.ByteString getScheduleNameBytes() { } } + public static final int PREFLIGHT_VALIDATIONS_FIELD_NUMBER = 26; + private boolean preflightValidations_ = false; + /** + * + * + *
+   * Optional. Whether to do component level validations before job creation.
+   * 
+ * + * bool preflight_validations = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The preflightValidations. + */ + @java.lang.Override + public boolean getPreflightValidations() { + return preflightValidations_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -4836,6 +4854,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < reservedIpRanges_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 25, reservedIpRanges_.getRaw(i)); } + if (preflightValidations_ != false) { + output.writeBool(26, preflightValidations_); + } getUnknownFields().writeTo(output); } @@ -4915,6 +4936,9 @@ public int getSerializedSize() { size += dataSize; size += 2 * getReservedIpRangesList().size(); } + if (preflightValidations_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(26, preflightValidations_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -4980,6 +5004,7 @@ public boolean equals(final java.lang.Object obj) { if (!getTemplateMetadata().equals(other.getTemplateMetadata())) return false; } if (!getScheduleName().equals(other.getScheduleName())) return false; + if (getPreflightValidations() != other.getPreflightValidations()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -5053,6 +5078,8 @@ public int hashCode() { } hash = (37 * hash) + SCHEDULE_NAME_FIELD_NUMBER; hash = (53 * hash) + getScheduleName().hashCode(); + hash = (37 * hash) + PREFLIGHT_VALIDATIONS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPreflightValidations()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -5291,6 +5318,7 @@ public Builder clear() { templateMetadataBuilder_ = null; } scheduleName_ = ""; + preflightValidations_ = false; return this; } @@ -5401,6 +5429,9 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.PipelineJob result) { if (((from_bitField0_ & 0x00040000) != 0)) { result.scheduleName_ = scheduleName_; } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.preflightValidations_ = preflightValidations_; + } result.bitField0_ |= to_bitField0_; } @@ -5524,6 +5555,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.PipelineJob other) { bitField0_ |= 0x00040000; onChanged(); } + if (other.getPreflightValidations() != false) { + setPreflightValidations(other.getPreflightValidations()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -5672,6 +5706,12 @@ public Builder mergeFrom( reservedIpRanges_.add(s); break; } // case 202 + case 208: + { + preflightValidations_ = input.readBool(); + bitField0_ |= 0x00080000; + break; + } // case 208 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -9000,6 +9040,59 @@ public Builder setScheduleNameBytes(com.google.protobuf.ByteString value) { return this; } + private boolean preflightValidations_; + /** + * + * + *
+     * Optional. Whether to do component level validations before job creation.
+     * 
+ * + * bool preflight_validations = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The preflightValidations. + */ + @java.lang.Override + public boolean getPreflightValidations() { + return preflightValidations_; + } + /** + * + * + *
+     * Optional. Whether to do component level validations before job creation.
+     * 
+ * + * bool preflight_validations = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The preflightValidations to set. + * @return This builder for chaining. + */ + public Builder setPreflightValidations(boolean value) { + + preflightValidations_ = value; + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Whether to do component level validations before job creation.
+     * 
+ * + * bool preflight_validations = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPreflightValidations() { + bitField0_ = (bitField0_ & ~0x00080000); + preflightValidations_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobOrBuilder.java index 183ebec7a99f..d333eacd8b4a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineJobOrBuilder.java @@ -824,4 +824,17 @@ java.lang.String getLabelsOrDefault( * @return The bytes for scheduleName. */ com.google.protobuf.ByteString getScheduleNameBytes(); + + /** + * + * + *
+   * Optional. Whether to do component level validations before job creation.
+   * 
+ * + * bool preflight_validations = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The preflightValidations. + */ + boolean getPreflightValidations(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceProto.java index 065beffe5003..f3bbd74455e7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PredictionServiceProto.java @@ -248,7 +248,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ROHIBITED_CONTENT\020\004\032f\n\rUsageMetadata\022\032\n\022" + "prompt_token_count\030\001 \001(\005\022\036\n\026candidates_t" + "oken_count\030\002 \001(\005\022\031\n\021total_token_count\030\003 " - + "\001(\0052\227\034\n\021PredictionService\022\224\002\n\007Predict\022*." + + "\001(\0052\232\030\n\021PredictionService\022\224\002\n\007Predict\022*." + "google.cloud.aiplatform.v1.PredictReques" + "t\032+.google.cloud.aiplatform.v1.PredictRe" + "sponse\"\257\001\332A\035endpoint,instances,parameter" @@ -269,81 +269,69 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ions/*/endpoints/*}:streamRawPredict:\001*Z" + "Q\"L/v1/{endpoint=projects/*/locations/*/" + "publishers/*/models/*}:streamRawPredict:" - + "\001*0\001\022\222\002\n\rDirectPredict\0220.google.cloud.ai" + + "\001*0\001\022\300\001\n\rDirectPredict\0220.google.cloud.ai" + "platform.v1.DirectPredictRequest\0321.googl" + "e.cloud.aiplatform.v1.DirectPredictRespo" - + "nse\"\233\001\202\323\344\223\002\224\001\"?/v1/{endpoint=projects/*/" - + "locations/*/endpoints/*}:directPredict:\001" - + "*ZN\"I/v1/{endpoint=projects/*/locations/" - + "*/publishers/*/models/*}:directPredict:\001" - + "*\022\241\002\n\020DirectRawPredict\0223.google.cloud.ai" - + "platform.v1.DirectRawPredictRequest\0324.go" - + "ogle.cloud.aiplatform.v1.DirectRawPredic" - + "tResponse\"\241\001\202\323\344\223\002\232\001\"B/v1/{endpoint=proje" - + "cts/*/locations/*/endpoints/*}:directRaw" - + "Predict:\001*ZQ\"L/v1/{endpoint=projects/*/l" - + "ocations/*/publishers/*/models/*}:direct" - + "RawPredict:\001*\022\264\002\n\023StreamDirectPredict\0226." - + "google.cloud.aiplatform.v1.StreamDirectP" - + "redictRequest\0327.google.cloud.aiplatform." - + "v1.StreamDirectPredictResponse\"\247\001\202\323\344\223\002\240\001" - + "\"E/v1/{endpoint=projects/*/locations/*/e" - + "ndpoints/*}:streamDirectPredict:\001*ZT\"O/v" - + "1/{endpoint=projects/*/locations/*/publi" - + "shers/*/models/*}:streamDirectPredict:\001*" - + "(\0010\001\022\303\002\n\026StreamDirectRawPredict\0229.google" - + ".cloud.aiplatform.v1.StreamDirectRawPred" - + "ictRequest\032:.google.cloud.aiplatform.v1." - + "StreamDirectRawPredictResponse\"\255\001\202\323\344\223\002\246\001" - + "\"H/v1/{endpoint=projects/*/locations/*/e" - + "ndpoints/*}:streamDirectRawPredict:\001*ZW\"" - + "R/v1/{endpoint=projects/*/locations/*/pu" - + "blishers/*/models/*}:streamDirectRawPred" - + "ict:\001*(\0010\001\022\203\001\n\020StreamingPredict\0223.google" - + ".cloud.aiplatform.v1.StreamingPredictReq" - + "uest\0324.google.cloud.aiplatform.v1.Stream" - + "ingPredictResponse\"\000(\0010\001\022\265\002\n\026ServerStrea" - + "mingPredict\0223.google.cloud.aiplatform.v1" - + ".StreamingPredictRequest\0324.google.cloud." - + "aiplatform.v1.StreamingPredictResponse\"\255" - + "\001\202\323\344\223\002\246\001\"H/v1/{endpoint=projects/*/locat" - + "ions/*/endpoints/*}:serverStreamingPredi" - + "ct:\001*ZW\"R/v1/{endpoint=projects/*/locati" - + "ons/*/publishers/*/models/*}:serverStrea" - + "mingPredict:\001*0\001\022\214\001\n\023StreamingRawPredict" - + "\0226.google.cloud.aiplatform.v1.StreamingR" - + "awPredictRequest\0327.google.cloud.aiplatfo" - + "rm.v1.StreamingRawPredictResponse\"\000(\0010\001\022" - + "\332\001\n\007Explain\022*.google.cloud.aiplatform.v1" - + ".ExplainRequest\032+.google.cloud.aiplatfor" - + "m.v1.ExplainResponse\"v\332A/endpoint,instan" - + "ces,parameters,deployed_model_id\202\323\344\223\002>\"9" - + "/v1/{endpoint=projects/*/locations/*/end" - + "points/*}:explain:\001*\022\247\002\n\017GenerateContent" - + "\0222.google.cloud.aiplatform.v1.GenerateCo" - + "ntentRequest\0323.google.cloud.aiplatform.v" - + "1.GenerateContentResponse\"\252\001\332A\016model,con" - + "tents\202\323\344\223\002\222\001\">/v1/{model=projects/*/loca" - + "tions/*/endpoints/*}:generateContent:\001*Z" - + "M\"H/v1/{model=projects/*/locations/*/pub" - + "lishers/*/models/*}:generateContent:\001*\022\273" - + "\002\n\025StreamGenerateContent\0222.google.cloud." - + "aiplatform.v1.GenerateContentRequest\0323.g" - + "oogle.cloud.aiplatform.v1.GenerateConten" - + "tResponse\"\266\001\332A\016model,contents\202\323\344\223\002\236\001\"D/v" - + "1/{model=projects/*/locations/*/endpoint" - + "s/*}:streamGenerateContent:\001*ZS\"N/v1/{mo" - + "del=projects/*/locations/*/publishers/*/" - + "models/*}:streamGenerateContent:\001*0\001\032\206\001\312" - + "A\031aiplatform.googleapis.com\322Aghttps://ww" - + "w.googleapis.com/auth/cloud-platform,htt" - + "ps://www.googleapis.com/auth/cloud-platf" - + "orm.read-onlyB\324\001\n\036com.google.cloud.aipla" - + "tform.v1B\026PredictionServiceProtoP\001Z>clou" - + "d.google.com/go/aiplatform/apiv1/aiplatf" - + "ormpb;aiplatformpb\252\002\032Google.Cloud.AIPlat" - + "form.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035G" - + "oogle::Cloud::AIPlatform::V1b\006proto3" + + "nse\"J\202\323\344\223\002D\"?/v1/{endpoint=projects/*/lo" + + "cations/*/endpoints/*}:directPredict:\001*\022" + + "\314\001\n\020DirectRawPredict\0223.google.cloud.aipl" + + "atform.v1.DirectRawPredictRequest\0324.goog" + + "le.cloud.aiplatform.v1.DirectRawPredictR" + + "esponse\"M\202\323\344\223\002G\"B/v1/{endpoint=projects/" + + "*/locations/*/endpoints/*}:directRawPred" + + "ict:\001*\022\214\001\n\023StreamDirectPredict\0226.google." + + "cloud.aiplatform.v1.StreamDirectPredictR" + + "equest\0327.google.cloud.aiplatform.v1.Stre" + + "amDirectPredictResponse\"\000(\0010\001\022\225\001\n\026Stream" + + "DirectRawPredict\0229.google.cloud.aiplatfo" + + "rm.v1.StreamDirectRawPredictRequest\032:.go" + + "ogle.cloud.aiplatform.v1.StreamDirectRaw" + + "PredictResponse\"\000(\0010\001\022\203\001\n\020StreamingPredi" + + "ct\0223.google.cloud.aiplatform.v1.Streamin" + + "gPredictRequest\0324.google.cloud.aiplatfor" + + "m.v1.StreamingPredictResponse\"\000(\0010\001\022\265\002\n\026" + + "ServerStreamingPredict\0223.google.cloud.ai" + + "platform.v1.StreamingPredictRequest\0324.go" + + "ogle.cloud.aiplatform.v1.StreamingPredic" + + "tResponse\"\255\001\202\323\344\223\002\246\001\"H/v1/{endpoint=proje" + + "cts/*/locations/*/endpoints/*}:serverStr" + + "eamingPredict:\001*ZW\"R/v1/{endpoint=projec" + + "ts/*/locations/*/publishers/*/models/*}:" + + "serverStreamingPredict:\001*0\001\022\214\001\n\023Streamin" + + "gRawPredict\0226.google.cloud.aiplatform.v1" + + ".StreamingRawPredictRequest\0327.google.clo" + + "ud.aiplatform.v1.StreamingRawPredictResp" + + "onse\"\000(\0010\001\022\332\001\n\007Explain\022*.google.cloud.ai" + + "platform.v1.ExplainRequest\032+.google.clou" + + "d.aiplatform.v1.ExplainResponse\"v\332A/endp" + + "oint,instances,parameters,deployed_model" + + "_id\202\323\344\223\002>\"9/v1/{endpoint=projects/*/loca" + + "tions/*/endpoints/*}:explain:\001*\022\247\002\n\017Gene" + + "rateContent\0222.google.cloud.aiplatform.v1" + + ".GenerateContentRequest\0323.google.cloud.a" + + "iplatform.v1.GenerateContentResponse\"\252\001\332" + + "A\016model,contents\202\323\344\223\002\222\001\">/v1/{model=proj" + + "ects/*/locations/*/endpoints/*}:generate" + + "Content:\001*ZM\"H/v1/{model=projects/*/loca" + + "tions/*/publishers/*/models/*}:generateC" + + "ontent:\001*\022\273\002\n\025StreamGenerateContent\0222.go" + + "ogle.cloud.aiplatform.v1.GenerateContent" + + "Request\0323.google.cloud.aiplatform.v1.Gen" + + "erateContentResponse\"\266\001\332A\016model,contents" + + "\202\323\344\223\002\236\001\"D/v1/{model=projects/*/locations" + + "/*/endpoints/*}:streamGenerateContent:\001*" + + "ZS\"N/v1/{model=projects/*/locations/*/pu" + + "blishers/*/models/*}:streamGenerateConte" + + "nt:\001*0\001\032\206\001\312A\031aiplatform.googleapis.com\322A" + + "ghttps://www.googleapis.com/auth/cloud-p" + + "latform,https://www.googleapis.com/auth/" + + "cloud-platform.read-onlyB\324\001\n\036com.google." + + "cloud.aiplatform.v1B\026PredictionServicePr" + + "otoP\001Z>cloud.google.com/go/aiplatform/ap" + + "iv1/aiplatformpb;aiplatformpb\252\002\032Google.C" + + "loud.AIPlatform.V1\312\002\032Google\\Cloud\\AIPlat" + + "form\\V1\352\002\035Google::Cloud::AIPlatform::V1b" + + "\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TuningJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TuningJob.java index 01856565b9fc..944a83ff9354 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TuningJob.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TuningJob.java @@ -1077,6 +1077,62 @@ public com.google.cloud.aiplatform.v1.TuningDataStatsOrBuilder getTuningDataStat : tuningDataStats_; } + public static final int ENCRYPTION_SPEC_FIELD_NUMBER = 16; + private com.google.cloud.aiplatform.v1.EncryptionSpec encryptionSpec_; + /** + * + * + *
+   * Customer-managed encryption key options for a TuningJob. If this is set,
+   * then all resources created by the TuningJob will be encrypted with the
+   * provided encryption key.
+   * 
+ * + * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 16; + * + * @return Whether the encryptionSpec field is set. + */ + @java.lang.Override + public boolean hasEncryptionSpec() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
+   * Customer-managed encryption key options for a TuningJob. If this is set,
+   * then all resources created by the TuningJob will be encrypted with the
+   * provided encryption key.
+   * 
+ * + * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 16; + * + * @return The encryptionSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.EncryptionSpec getEncryptionSpec() { + return encryptionSpec_ == null + ? com.google.cloud.aiplatform.v1.EncryptionSpec.getDefaultInstance() + : encryptionSpec_; + } + /** + * + * + *
+   * Customer-managed encryption key options for a TuningJob. If this is set,
+   * then all resources created by the TuningJob will be encrypted with the
+   * provided encryption key.
+   * 
+ * + * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 16; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.EncryptionSpecOrBuilder getEncryptionSpecOrBuilder() { + return encryptionSpec_ == null + ? com.google.cloud.aiplatform.v1.EncryptionSpec.getDefaultInstance() + : encryptionSpec_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1135,6 +1191,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000040) != 0)) { output.writeMessage(15, getTuningDataStats()); } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(16, getEncryptionSpec()); + } getUnknownFields().writeTo(output); } @@ -1198,6 +1257,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getTuningDataStats()); } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getEncryptionSpec()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1247,6 +1309,10 @@ public boolean equals(final java.lang.Object obj) { if (hasTuningDataStats()) { if (!getTuningDataStats().equals(other.getTuningDataStats())) return false; } + if (hasEncryptionSpec() != other.hasEncryptionSpec()) return false; + if (hasEncryptionSpec()) { + if (!getEncryptionSpec().equals(other.getEncryptionSpec())) return false; + } if (!getSourceModelCase().equals(other.getSourceModelCase())) return false; switch (sourceModelCase_) { case 4: @@ -1316,6 +1382,10 @@ public int hashCode() { hash = (37 * hash) + TUNING_DATA_STATS_FIELD_NUMBER; hash = (53 * hash) + getTuningDataStats().hashCode(); } + if (hasEncryptionSpec()) { + hash = (37 * hash) + ENCRYPTION_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getEncryptionSpec().hashCode(); + } switch (sourceModelCase_) { case 4: hash = (37 * hash) + BASE_MODEL_FIELD_NUMBER; @@ -1501,6 +1571,7 @@ private void maybeForceBuilderInitialization() { getErrorFieldBuilder(); getTunedModelFieldBuilder(); getTuningDataStatsFieldBuilder(); + getEncryptionSpecFieldBuilder(); } } @@ -1552,6 +1623,11 @@ public Builder clear() { tuningDataStatsBuilder_.dispose(); tuningDataStatsBuilder_ = null; } + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); + encryptionSpecBuilder_ = null; + } sourceModelCase_ = 0; sourceModel_ = null; tuningSpecCase_ = 0; @@ -1642,6 +1718,11 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.TuningJob result) { tuningDataStatsBuilder_ == null ? tuningDataStats_ : tuningDataStatsBuilder_.build(); to_bitField0_ |= 0x00000040; } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.encryptionSpec_ = + encryptionSpecBuilder_ == null ? encryptionSpec_ : encryptionSpecBuilder_.build(); + to_bitField0_ |= 0x00000080; + } result.bitField0_ |= to_bitField0_; } @@ -1746,6 +1827,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.TuningJob other) { if (other.hasTuningDataStats()) { mergeTuningDataStats(other.getTuningDataStats()); } + if (other.hasEncryptionSpec()) { + mergeEncryptionSpec(other.getEncryptionSpec()); + } switch (other.getSourceModelCase()) { case BASE_MODEL: { @@ -1894,6 +1978,12 @@ public Builder mergeFrom( bitField0_ |= 0x00004000; break; } // case 122 + case 130: + { + input.readMessage(getEncryptionSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00008000; + break; + } // case 130 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4545,6 +4635,211 @@ public com.google.cloud.aiplatform.v1.TuningDataStatsOrBuilder getTuningDataStat return tuningDataStatsBuilder_; } + private com.google.cloud.aiplatform.v1.EncryptionSpec encryptionSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.EncryptionSpec, + com.google.cloud.aiplatform.v1.EncryptionSpec.Builder, + com.google.cloud.aiplatform.v1.EncryptionSpecOrBuilder> + encryptionSpecBuilder_; + /** + * + * + *
+     * Customer-managed encryption key options for a TuningJob. If this is set,
+     * then all resources created by the TuningJob will be encrypted with the
+     * provided encryption key.
+     * 
+ * + * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 16; + * + * @return Whether the encryptionSpec field is set. + */ + public boolean hasEncryptionSpec() { + return ((bitField0_ & 0x00008000) != 0); + } + /** + * + * + *
+     * Customer-managed encryption key options for a TuningJob. If this is set,
+     * then all resources created by the TuningJob will be encrypted with the
+     * provided encryption key.
+     * 
+ * + * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 16; + * + * @return The encryptionSpec. + */ + public com.google.cloud.aiplatform.v1.EncryptionSpec getEncryptionSpec() { + if (encryptionSpecBuilder_ == null) { + return encryptionSpec_ == null + ? com.google.cloud.aiplatform.v1.EncryptionSpec.getDefaultInstance() + : encryptionSpec_; + } else { + return encryptionSpecBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Customer-managed encryption key options for a TuningJob. If this is set,
+     * then all resources created by the TuningJob will be encrypted with the
+     * provided encryption key.
+     * 
+ * + * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 16; + */ + public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec value) { + if (encryptionSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + encryptionSpec_ = value; + } else { + encryptionSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + * + * + *
+     * Customer-managed encryption key options for a TuningJob. If this is set,
+     * then all resources created by the TuningJob will be encrypted with the
+     * provided encryption key.
+     * 
+ * + * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 16; + */ + public Builder setEncryptionSpec( + com.google.cloud.aiplatform.v1.EncryptionSpec.Builder builderForValue) { + if (encryptionSpecBuilder_ == null) { + encryptionSpec_ = builderForValue.build(); + } else { + encryptionSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + * + * + *
+     * Customer-managed encryption key options for a TuningJob. If this is set,
+     * then all resources created by the TuningJob will be encrypted with the
+     * provided encryption key.
+     * 
+ * + * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 16; + */ + public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1.EncryptionSpec value) { + if (encryptionSpecBuilder_ == null) { + if (((bitField0_ & 0x00008000) != 0) + && encryptionSpec_ != null + && encryptionSpec_ + != com.google.cloud.aiplatform.v1.EncryptionSpec.getDefaultInstance()) { + getEncryptionSpecBuilder().mergeFrom(value); + } else { + encryptionSpec_ = value; + } + } else { + encryptionSpecBuilder_.mergeFrom(value); + } + if (encryptionSpec_ != null) { + bitField0_ |= 0x00008000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Customer-managed encryption key options for a TuningJob. If this is set,
+     * then all resources created by the TuningJob will be encrypted with the
+     * provided encryption key.
+     * 
+ * + * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 16; + */ + public Builder clearEncryptionSpec() { + bitField0_ = (bitField0_ & ~0x00008000); + encryptionSpec_ = null; + if (encryptionSpecBuilder_ != null) { + encryptionSpecBuilder_.dispose(); + encryptionSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Customer-managed encryption key options for a TuningJob. If this is set,
+     * then all resources created by the TuningJob will be encrypted with the
+     * provided encryption key.
+     * 
+ * + * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 16; + */ + public com.google.cloud.aiplatform.v1.EncryptionSpec.Builder getEncryptionSpecBuilder() { + bitField0_ |= 0x00008000; + onChanged(); + return getEncryptionSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Customer-managed encryption key options for a TuningJob. If this is set,
+     * then all resources created by the TuningJob will be encrypted with the
+     * provided encryption key.
+     * 
+ * + * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 16; + */ + public com.google.cloud.aiplatform.v1.EncryptionSpecOrBuilder getEncryptionSpecOrBuilder() { + if (encryptionSpecBuilder_ != null) { + return encryptionSpecBuilder_.getMessageOrBuilder(); + } else { + return encryptionSpec_ == null + ? com.google.cloud.aiplatform.v1.EncryptionSpec.getDefaultInstance() + : encryptionSpec_; + } + } + /** + * + * + *
+     * Customer-managed encryption key options for a TuningJob. If this is set,
+     * then all resources created by the TuningJob will be encrypted with the
+     * provided encryption key.
+     * 
+ * + * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 16; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.EncryptionSpec, + com.google.cloud.aiplatform.v1.EncryptionSpec.Builder, + com.google.cloud.aiplatform.v1.EncryptionSpecOrBuilder> + getEncryptionSpecFieldBuilder() { + if (encryptionSpecBuilder_ == null) { + encryptionSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.EncryptionSpec, + com.google.cloud.aiplatform.v1.EncryptionSpec.Builder, + com.google.cloud.aiplatform.v1.EncryptionSpecOrBuilder>( + getEncryptionSpec(), getParentForChildren(), isClean()); + encryptionSpec_ = null; + } + return encryptionSpecBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TuningJobOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TuningJobOrBuilder.java index 5be352c7ffb4..0c9b4ae2aed6 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TuningJobOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TuningJobOrBuilder.java @@ -645,6 +645,47 @@ java.lang.String getLabelsOrDefault( */ com.google.cloud.aiplatform.v1.TuningDataStatsOrBuilder getTuningDataStatsOrBuilder(); + /** + * + * + *
+   * Customer-managed encryption key options for a TuningJob. If this is set,
+   * then all resources created by the TuningJob will be encrypted with the
+   * provided encryption key.
+   * 
+ * + * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 16; + * + * @return Whether the encryptionSpec field is set. + */ + boolean hasEncryptionSpec(); + /** + * + * + *
+   * Customer-managed encryption key options for a TuningJob. If this is set,
+   * then all resources created by the TuningJob will be encrypted with the
+   * provided encryption key.
+   * 
+ * + * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 16; + * + * @return The encryptionSpec. + */ + com.google.cloud.aiplatform.v1.EncryptionSpec getEncryptionSpec(); + /** + * + * + *
+   * Customer-managed encryption key options for a TuningJob. If this is set,
+   * then all resources created by the TuningJob will be encrypted with the
+   * provided encryption key.
+   * 
+ * + * .google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 16; + */ + com.google.cloud.aiplatform.v1.EncryptionSpecOrBuilder getEncryptionSpecOrBuilder(); + com.google.cloud.aiplatform.v1.TuningJob.SourceModelCase getSourceModelCase(); com.google.cloud.aiplatform.v1.TuningJob.TuningSpecCase getTuningSpecCase(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TuningJobProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TuningJobProto.java index f2a08cd97059..e17e95629c87 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TuningJobProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/TuningJobProto.java @@ -77,83 +77,86 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "proto\022\032google.cloud.aiplatform.v1\032\037googl" + "e/api/field_behavior.proto\032\031google/api/r" + "esource.proto\032(google/cloud/aiplatform/v" - + "1/content.proto\032*google/cloud/aiplatform" - + "/v1/job_state.proto\032\037google/protobuf/tim" - + "estamp.proto\032\027google/rpc/status.proto\"\351\007" - + "\n\tTuningJob\022\024\n\nbase_model\030\004 \001(\tH\000\022R\n\026sup" - + "ervised_tuning_spec\030\005 \001(\01320.google.cloud" - + ".aiplatform.v1.SupervisedTuningSpecH\001\022\024\n" - + "\004name\030\001 \001(\tB\006\340A\010\340A\003\022%\n\030tuned_model_displ" - + "ay_name\030\002 \001(\tB\003\340A\001\022\030\n\013description\030\003 \001(\tB" - + "\003\340A\001\0228\n\005state\030\006 \001(\0162$.google.cloud.aipla" - + "tform.v1.JobStateB\003\340A\003\0224\n\013create_time\030\007 " - + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\0223\n\n" - + "start_time\030\010 \001(\0132\032.google.protobuf.Times" - + "tampB\003\340A\003\0221\n\010end_time\030\t \001(\0132\032.google.pro" - + "tobuf.TimestampB\003\340A\003\0224\n\013update_time\030\n \001(" - + "\0132\032.google.protobuf.TimestampB\003\340A\003\022&\n\005er" - + "ror\030\013 \001(\0132\022.google.rpc.StatusB\003\340A\003\022F\n\006la" - + "bels\030\014 \003(\01321.google.cloud.aiplatform.v1." - + "TuningJob.LabelsEntryB\003\340A\001\022=\n\nexperiment" - + "\030\r \001(\tB)\340A\003\372A#\n!aiplatform.googleapis.co" - + "m/Context\022@\n\013tuned_model\030\016 \001(\0132&.google." - + "cloud.aiplatform.v1.TunedModelB\003\340A\003\022K\n\021t" - + "uning_data_stats\030\017 \001(\0132+.google.cloud.ai" - + "platform.v1.TuningDataStatsB\003\340A\003\032-\n\013Labe" - + "lsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:" - + "\200\001\352A}\n#aiplatform.googleapis.com/TuningJ" - + "ob\022?projects/{project}/locations/{locati" - + "on}/tuningJobs/{tuning_job}*\ntuningJobs2" - + "\ttuningJobB\016\n\014source_modelB\r\n\013tuning_spe" - + "c\"\202\001\n\nTunedModel\0226\n\005model\030\001 \001(\tB\'\340A\003\372A!\n" - + "\037aiplatform.googleapis.com/Model\022<\n\010endp" - + "oint\030\002 \001(\tB*\340A\003\372A$\n\"aiplatform.googleapi" - + "s.com/Endpoint\"\327\002\n#SupervisedTuningDatas" - + "etDistribution\022\020\n\003sum\030\001 \001(\003B\003\340A\003\022\020\n\003min\030" - + "\002 \001(\001B\003\340A\003\022\020\n\003max\030\003 \001(\001B\003\340A\003\022\021\n\004mean\030\004 \001" - + "(\001B\003\340A\003\022\023\n\006median\030\005 \001(\001B\003\340A\003\022\017\n\002p5\030\006 \001(\001" - + "B\003\340A\003\022\020\n\003p95\030\007 \001(\001B\003\340A\003\022c\n\007buckets\030\010 \003(\013" - + "2M.google.cloud.aiplatform.v1.Supervised" - + "TuningDatasetDistribution.DatasetBucketB" - + "\003\340A\003\032J\n\rDatasetBucket\022\022\n\005count\030\001 \001(\001B\003\340A" - + "\003\022\021\n\004left\030\002 \001(\001B\003\340A\003\022\022\n\005right\030\003 \001(\001B\003\340A\003" - + "\"\327\004\n\031SupervisedTuningDataStats\022)\n\034tuning" - + "_dataset_example_count\030\001 \001(\003B\003\340A\003\022)\n\034tot" - + "al_tuning_character_count\030\002 \001(\003B\003\340A\003\022+\n\036" - + "total_billable_character_count\030\003 \001(\003B\003\340A" - + "\003\022\036\n\021tuning_step_count\030\004 \001(\003B\003\340A\003\022k\n\035use" - + "r_input_token_distribution\030\005 \001(\0132?.googl" - + "e.cloud.aiplatform.v1.SupervisedTuningDa" - + "tasetDistributionB\003\340A\003\022l\n\036user_output_to" - + "ken_distribution\030\006 \001(\0132?.google.cloud.ai" - + "platform.v1.SupervisedTuningDatasetDistr" - + "ibutionB\003\340A\003\022s\n%user_message_per_example" - + "_distribution\030\007 \001(\0132?.google.cloud.aipla" - + "tform.v1.SupervisedTuningDatasetDistribu" - + "tionB\003\340A\003\022G\n\025user_dataset_examples\030\010 \003(\013" - + "2#.google.cloud.aiplatform.v1.ContentB\003\340" - + "A\003\"\205\001\n\017TuningDataStats\022]\n\034supervised_tun" - + "ing_data_stats\030\001 \001(\01325.google.cloud.aipl" - + "atform.v1.SupervisedTuningDataStatsH\000B\023\n" - + "\021tuning_data_stats\"\307\002\n\031SupervisedHyperPa" - + "rameters\022\030\n\013epoch_count\030\001 \001(\003B\003\340A\001\022%\n\030le" - + "arning_rate_multiplier\030\002 \001(\001B\003\340A\001\022\\\n\014ada" - + "pter_size\030\003 \001(\0162A.google.cloud.aiplatfor" - + "m.v1.SupervisedHyperParameters.AdapterSi" - + "zeB\003\340A\001\"\212\001\n\013AdapterSize\022\034\n\030ADAPTER_SIZE_" - + "UNSPECIFIED\020\000\022\024\n\020ADAPTER_SIZE_ONE\020\001\022\025\n\021A" - + "DAPTER_SIZE_FOUR\020\002\022\026\n\022ADAPTER_SIZE_EIGHT" - + "\020\003\022\030\n\024ADAPTER_SIZE_SIXTEEN\020\004\"\264\001\n\024Supervi" - + "sedTuningSpec\022!\n\024training_dataset_uri\030\001 " - + "\001(\tB\003\340A\002\022#\n\026validation_dataset_uri\030\002 \001(\t" - + "B\003\340A\001\022T\n\020hyper_parameters\030\003 \001(\01325.google" - + ".cloud.aiplatform.v1.SupervisedHyperPara" - + "metersB\003\340A\001B\314\001\n\036com.google.cloud.aiplatf" - + "orm.v1B\016TuningJobProtoP\001Z>cloud.google.c" - + "om/go/aiplatform/apiv1/aiplatformpb;aipl" - + "atformpb\252\002\032Google.Cloud.AIPlatform.V1\312\002\032" - + "Google\\Cloud\\AIPlatform\\V1\352\002\035Google::Clo" - + "ud::AIPlatform::V1b\006proto3" + + "1/content.proto\0320google/cloud/aiplatform" + + "/v1/encryption_spec.proto\032*google/cloud/" + + "aiplatform/v1/job_state.proto\032\037google/pr" + + "otobuf/timestamp.proto\032\027google/rpc/statu" + + "s.proto\"\256\010\n\tTuningJob\022\024\n\nbase_model\030\004 \001(" + + "\tH\000\022R\n\026supervised_tuning_spec\030\005 \001(\01320.go" + + "ogle.cloud.aiplatform.v1.SupervisedTunin" + + "gSpecH\001\022\024\n\004name\030\001 \001(\tB\006\340A\010\340A\003\022%\n\030tuned_m" + + "odel_display_name\030\002 \001(\tB\003\340A\001\022\030\n\013descript" + + "ion\030\003 \001(\tB\003\340A\001\0228\n\005state\030\006 \001(\0162$.google.c" + + "loud.aiplatform.v1.JobStateB\003\340A\003\0224\n\013crea" + + "te_time\030\007 \001(\0132\032.google.protobuf.Timestam" + + "pB\003\340A\003\0223\n\nstart_time\030\010 \001(\0132\032.google.prot" + + "obuf.TimestampB\003\340A\003\0221\n\010end_time\030\t \001(\0132\032." + + "google.protobuf.TimestampB\003\340A\003\0224\n\013update" + + "_time\030\n \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\022&\n\005error\030\013 \001(\0132\022.google.rpc.StatusB" + + "\003\340A\003\022F\n\006labels\030\014 \003(\01321.google.cloud.aipl" + + "atform.v1.TuningJob.LabelsEntryB\003\340A\001\022=\n\n" + + "experiment\030\r \001(\tB)\340A\003\372A#\n!aiplatform.goo" + + "gleapis.com/Context\022@\n\013tuned_model\030\016 \001(\013" + + "2&.google.cloud.aiplatform.v1.TunedModel" + + "B\003\340A\003\022K\n\021tuning_data_stats\030\017 \001(\0132+.googl" + + "e.cloud.aiplatform.v1.TuningDataStatsB\003\340" + + "A\003\022C\n\017encryption_spec\030\020 \001(\0132*.google.clo" + + "ud.aiplatform.v1.EncryptionSpec\032-\n\013Label" + + "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\200" + + "\001\352A}\n#aiplatform.googleapis.com/TuningJo" + + "b\022?projects/{project}/locations/{locatio" + + "n}/tuningJobs/{tuning_job}*\ntuningJobs2\t" + + "tuningJobB\016\n\014source_modelB\r\n\013tuning_spec" + + "\"\202\001\n\nTunedModel\0226\n\005model\030\001 \001(\tB\'\340A\003\372A!\n\037" + + "aiplatform.googleapis.com/Model\022<\n\010endpo" + + "int\030\002 \001(\tB*\340A\003\372A$\n\"aiplatform.googleapis" + + ".com/Endpoint\"\327\002\n#SupervisedTuningDatase" + + "tDistribution\022\020\n\003sum\030\001 \001(\003B\003\340A\003\022\020\n\003min\030\002" + + " \001(\001B\003\340A\003\022\020\n\003max\030\003 \001(\001B\003\340A\003\022\021\n\004mean\030\004 \001(" + + "\001B\003\340A\003\022\023\n\006median\030\005 \001(\001B\003\340A\003\022\017\n\002p5\030\006 \001(\001B" + + "\003\340A\003\022\020\n\003p95\030\007 \001(\001B\003\340A\003\022c\n\007buckets\030\010 \003(\0132" + + "M.google.cloud.aiplatform.v1.SupervisedT" + + "uningDatasetDistribution.DatasetBucketB\003" + + "\340A\003\032J\n\rDatasetBucket\022\022\n\005count\030\001 \001(\001B\003\340A\003" + + "\022\021\n\004left\030\002 \001(\001B\003\340A\003\022\022\n\005right\030\003 \001(\001B\003\340A\003\"" + + "\327\004\n\031SupervisedTuningDataStats\022)\n\034tuning_" + + "dataset_example_count\030\001 \001(\003B\003\340A\003\022)\n\034tota" + + "l_tuning_character_count\030\002 \001(\003B\003\340A\003\022+\n\036t" + + "otal_billable_character_count\030\003 \001(\003B\003\340A\003" + + "\022\036\n\021tuning_step_count\030\004 \001(\003B\003\340A\003\022k\n\035user" + + "_input_token_distribution\030\005 \001(\0132?.google" + + ".cloud.aiplatform.v1.SupervisedTuningDat" + + "asetDistributionB\003\340A\003\022l\n\036user_output_tok" + + "en_distribution\030\006 \001(\0132?.google.cloud.aip" + + "latform.v1.SupervisedTuningDatasetDistri" + + "butionB\003\340A\003\022s\n%user_message_per_example_" + + "distribution\030\007 \001(\0132?.google.cloud.aiplat" + + "form.v1.SupervisedTuningDatasetDistribut" + + "ionB\003\340A\003\022G\n\025user_dataset_examples\030\010 \003(\0132" + + "#.google.cloud.aiplatform.v1.ContentB\003\340A" + + "\003\"\205\001\n\017TuningDataStats\022]\n\034supervised_tuni" + + "ng_data_stats\030\001 \001(\01325.google.cloud.aipla" + + "tform.v1.SupervisedTuningDataStatsH\000B\023\n\021" + + "tuning_data_stats\"\307\002\n\031SupervisedHyperPar" + + "ameters\022\030\n\013epoch_count\030\001 \001(\003B\003\340A\001\022%\n\030lea" + + "rning_rate_multiplier\030\002 \001(\001B\003\340A\001\022\\\n\014adap" + + "ter_size\030\003 \001(\0162A.google.cloud.aiplatform" + + ".v1.SupervisedHyperParameters.AdapterSiz" + + "eB\003\340A\001\"\212\001\n\013AdapterSize\022\034\n\030ADAPTER_SIZE_U" + + "NSPECIFIED\020\000\022\024\n\020ADAPTER_SIZE_ONE\020\001\022\025\n\021AD" + + "APTER_SIZE_FOUR\020\002\022\026\n\022ADAPTER_SIZE_EIGHT\020" + + "\003\022\030\n\024ADAPTER_SIZE_SIXTEEN\020\004\"\264\001\n\024Supervis" + + "edTuningSpec\022!\n\024training_dataset_uri\030\001 \001" + + "(\tB\003\340A\002\022#\n\026validation_dataset_uri\030\002 \001(\tB" + + "\003\340A\001\022T\n\020hyper_parameters\030\003 \001(\01325.google." + + "cloud.aiplatform.v1.SupervisedHyperParam" + + "etersB\003\340A\001B\314\001\n\036com.google.cloud.aiplatfo" + + "rm.v1B\016TuningJobProtoP\001Z>cloud.google.co" + + "m/go/aiplatform/apiv1/aiplatformpb;aipla" + + "tformpb\252\002\032Google.Cloud.AIPlatform.V1\312\002\032G" + + "oogle\\Cloud\\AIPlatform\\V1\352\002\035Google::Clou" + + "d::AIPlatform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -162,6 +165,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.aiplatform.v1.ContentProto.getDescriptor(), + com.google.cloud.aiplatform.v1.EncryptionSpecProto.getDescriptor(), com.google.cloud.aiplatform.v1.JobStateProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), com.google.rpc.StatusProto.getDescriptor(), @@ -187,6 +191,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Experiment", "TunedModel", "TuningDataStats", + "EncryptionSpec", "SourceModel", "TuningSpec", }); @@ -273,6 +278,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.aiplatform.v1.ContentProto.getDescriptor(); + com.google.cloud.aiplatform.v1.EncryptionSpecProto.getDescriptor(); com.google.cloud.aiplatform.v1.JobStateProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.rpc.StatusProto.getDescriptor(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/content.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/content.proto index 7f31baa2a0c3..82cdb3f63e74 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/content.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/content.proto @@ -346,6 +346,9 @@ message Candidate { // The token generation was stopped as the response was flagged for // Sensitive Personally Identifiable Information (SPII) contents. SPII = 8; + + // The function call generated by the model is invalid. + MALFORMED_FUNCTION_CALL = 9; } // Output only. Index of the candidate. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_job.proto index 3a0567aa0650..e31290cb963d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_job.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_job.proto @@ -213,6 +213,9 @@ message PipelineJob { // Output only. The schedule resource name. // Only returned if the Pipeline is created by Schedule API. string schedule_name = 22 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Whether to do component level validations before job creation. + bool preflight_validations = 26 [(google.api.field_behavior) = OPTIONAL]; } // Pipeline template metadata if diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/prediction_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/prediction_service.proto index 70ba277aef7f..9e609e918a41 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/prediction_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/prediction_service.proto @@ -98,10 +98,6 @@ service PredictionService { option (google.api.http) = { post: "/v1/{endpoint=projects/*/locations/*/endpoints/*}:directPredict" body: "*" - additional_bindings { - post: "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:directPredict" - body: "*" - } }; } @@ -112,40 +108,18 @@ service PredictionService { option (google.api.http) = { post: "/v1/{endpoint=projects/*/locations/*/endpoints/*}:directRawPredict" body: "*" - additional_bindings { - post: "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:directRawPredict" - body: "*" - } }; } // Perform a streaming online prediction request to a gRPC model server for // Vertex first-party products and frameworks. rpc StreamDirectPredict(stream StreamDirectPredictRequest) - returns (stream StreamDirectPredictResponse) { - option (google.api.http) = { - post: "/v1/{endpoint=projects/*/locations/*/endpoints/*}:streamDirectPredict" - body: "*" - additional_bindings { - post: "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:streamDirectPredict" - body: "*" - } - }; - } + returns (stream StreamDirectPredictResponse) {} // Perform a streaming online prediction request to a gRPC model server for // custom containers. rpc StreamDirectRawPredict(stream StreamDirectRawPredictRequest) - returns (stream StreamDirectRawPredictResponse) { - option (google.api.http) = { - post: "/v1/{endpoint=projects/*/locations/*/endpoints/*}:streamDirectRawPredict" - body: "*" - additional_bindings { - post: "/v1/{endpoint=projects/*/locations/*/publishers/*/models/*}:streamDirectRawPredict" - body: "*" - } - }; - } + returns (stream StreamDirectRawPredictResponse) {} // Perform a streaming online prediction request for Vertex first-party // products and frameworks. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tuning_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tuning_job.proto index 90d396093160..803df1820765 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tuning_job.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tuning_job.proto @@ -19,6 +19,7 @@ package google.cloud.aiplatform.v1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/aiplatform/v1/content.proto"; +import "google/cloud/aiplatform/v1/encryption_spec.proto"; import "google/cloud/aiplatform/v1/job_state.proto"; import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; @@ -125,6 +126,11 @@ message TuningJob { // [TuningJob][google.cloud.aiplatform.v1.TuningJob]. TuningDataStats tuning_data_stats = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Customer-managed encryption key options for a TuningJob. If this is set, + // then all resources created by the TuningJob will be encrypted with the + // provided encryption key. + EncryptionSpec encryption_spec = 16; } // The Model Registry Model and Online Prediction Endpoint assiociated with diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CachedContent.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CachedContent.java index 2521056237c8..05364bc996c9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CachedContent.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CachedContent.java @@ -236,8 +236,8 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { * * *
-   * Immutable. Identifier. The resource name of the cached content
-   * Format:
+   * Immutable. Identifier. The server-generated resource name of the cached
+   * content Format:
    * projects/{project}/locations/{location}/cachedContents/{cached_content}
    * 
* @@ -263,8 +263,8 @@ public java.lang.String getName() { * * *
-   * Immutable. Identifier. The resource name of the cached content
-   * Format:
+   * Immutable. Identifier. The server-generated resource name of the cached
+   * content Format:
    * projects/{project}/locations/{location}/cachedContents/{cached_content}
    * 
* @@ -1922,8 +1922,8 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { * * *
-     * Immutable. Identifier. The resource name of the cached content
-     * Format:
+     * Immutable. Identifier. The server-generated resource name of the cached
+     * content Format:
      * projects/{project}/locations/{location}/cachedContents/{cached_content}
      * 
* @@ -1948,8 +1948,8 @@ public java.lang.String getName() { * * *
-     * Immutable. Identifier. The resource name of the cached content
-     * Format:
+     * Immutable. Identifier. The server-generated resource name of the cached
+     * content Format:
      * projects/{project}/locations/{location}/cachedContents/{cached_content}
      * 
* @@ -1974,8 +1974,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Immutable. Identifier. The resource name of the cached content
-     * Format:
+     * Immutable. Identifier. The server-generated resource name of the cached
+     * content Format:
      * projects/{project}/locations/{location}/cachedContents/{cached_content}
      * 
* @@ -1999,8 +1999,8 @@ public Builder setName(java.lang.String value) { * * *
-     * Immutable. Identifier. The resource name of the cached content
-     * Format:
+     * Immutable. Identifier. The server-generated resource name of the cached
+     * content Format:
      * projects/{project}/locations/{location}/cachedContents/{cached_content}
      * 
* @@ -2020,8 +2020,8 @@ public Builder clearName() { * * *
-     * Immutable. Identifier. The resource name of the cached content
-     * Format:
+     * Immutable. Identifier. The server-generated resource name of the cached
+     * content Format:
      * projects/{project}/locations/{location}/cachedContents/{cached_content}
      * 
* diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CachedContentOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CachedContentOrBuilder.java index 7ced4a1c45d6..d0ceba2509f7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CachedContentOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CachedContentOrBuilder.java @@ -107,8 +107,8 @@ public interface CachedContentOrBuilder * * *
-   * Immutable. Identifier. The resource name of the cached content
-   * Format:
+   * Immutable. Identifier. The server-generated resource name of the cached
+   * content Format:
    * projects/{project}/locations/{location}/cachedContents/{cached_content}
    * 
* @@ -123,8 +123,8 @@ public interface CachedContentOrBuilder * * *
-   * Immutable. Identifier. The resource name of the cached content
-   * Format:
+   * Immutable. Identifier. The server-generated resource name of the cached
+   * content Format:
    * projects/{project}/locations/{location}/cachedContents/{cached_content}
    * 
* diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Candidate.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Candidate.java index 36629ad7d945..4c0f8c9fed5d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Candidate.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Candidate.java @@ -172,6 +172,16 @@ public enum FinishReason implements com.google.protobuf.ProtocolMessageEnum { * SPII = 8; */ SPII(8), + /** + * + * + *
+     * The function call generated by the model is invalid.
+     * 
+ * + * MALFORMED_FUNCTION_CALL = 9; + */ + MALFORMED_FUNCTION_CALL(9), UNRECOGNIZED(-1), ; @@ -271,6 +281,16 @@ public enum FinishReason implements com.google.protobuf.ProtocolMessageEnum { * SPII = 8; */ public static final int SPII_VALUE = 8; + /** + * + * + *
+     * The function call generated by the model is invalid.
+     * 
+ * + * MALFORMED_FUNCTION_CALL = 9; + */ + public static final int MALFORMED_FUNCTION_CALL_VALUE = 9; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -314,6 +334,8 @@ public static FinishReason forNumber(int value) { return PROHIBITED_CONTENT; case 8: return SPII; + case 9: + return MALFORMED_FUNCTION_CALL; default: return null; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContentProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContentProto.java index 90f911f75ee4..261251f036eb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContentProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContentProto.java @@ -76,6 +76,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_Segment_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_Segment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_GroundingChunk_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_GroundingChunk_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_GroundingChunk_Web_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_GroundingChunk_Web_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_GroundingChunk_RetrievedContext_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_GroundingChunk_RetrievedContext_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_GroundingSupport_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_GroundingSupport_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_GroundingAttribution_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -177,7 +193,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "d_index\030\002 \001(\005B\003\340A\003\022\020\n\003uri\030\003 \001(\tB\003\340A\003\022\022\n\005" + "title\030\004 \001(\tB\003\340A\003\022\024\n\007license\030\005 \001(\tB\003\340A\003\0220" + "\n\020publication_date\030\006 \001(\0132\021.google.type.D" - + "ateB\003\340A\003\"\377\004\n\tCandidate\022\022\n\005index\030\001 \001(\005B\003\340" + + "ateB\003\340A\003\"\234\005\n\tCandidate\022\022\n\005index\030\001 \001(\005B\003\340" + "A\003\022>\n\007content\030\002 \001(\0132(.google.cloud.aipla" + "tform.v1beta1.ContentB\003\340A\003\022S\n\rfinish_rea" + "son\030\003 \001(\01627.google.cloud.aiplatform.v1be" @@ -188,45 +204,62 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ta\030\006 \001(\01321.google.cloud.aiplatform.v1bet" + "a1.CitationMetadataB\003\340A\003\022S\n\022grounding_me" + "tadata\030\007 \001(\01322.google.cloud.aiplatform.v" - + "1beta1.GroundingMetadataB\003\340A\003\"\237\001\n\014Finish" + + "1beta1.GroundingMetadataB\003\340A\003\"\274\001\n\014Finish" + "Reason\022\035\n\031FINISH_REASON_UNSPECIFIED\020\000\022\010\n" + "\004STOP\020\001\022\016\n\nMAX_TOKENS\020\002\022\n\n\006SAFETY\020\003\022\016\n\nR" + "ECITATION\020\004\022\t\n\005OTHER\020\005\022\r\n\tBLOCKLIST\020\006\022\026\n" - + "\022PROHIBITED_CONTENT\020\007\022\010\n\004SPII\020\010B\021\n\017_fini" - + "sh_message\"T\n\007Segment\022\027\n\npart_index\030\001 \001(" - + "\005B\003\340A\003\022\030\n\013start_index\030\002 \001(\005B\003\340A\003\022\026\n\tend_" - + "index\030\003 \001(\005B\003\340A\003\"\277\003\n\024GroundingAttributio" - + "n\022M\n\003web\030\003 \001(\01329.google.cloud.aiplatform" - + ".v1beta1.GroundingAttribution.WebB\003\340A\001H\000" - + "\022h\n\021retrieved_context\030\004 \001(\0132F.google.clo" - + "ud.aiplatform.v1beta1.GroundingAttributi" - + "on.RetrievedContextB\003\340A\001H\000\022>\n\007segment\030\001 " - + "\001(\0132(.google.cloud.aiplatform.v1beta1.Se" - + "gmentB\003\340A\003\022%\n\020confidence_score\030\002 \001(\002B\006\340A" - + "\001\340A\003H\001\210\001\001\032+\n\003Web\022\020\n\003uri\030\001 \001(\tB\003\340A\003\022\022\n\005ti" - + "tle\030\002 \001(\tB\003\340A\003\0328\n\020RetrievedContext\022\020\n\003ur" - + "i\030\001 \001(\tB\003\340A\003\022\022\n\005title\030\002 \001(\tB\003\340A\003B\013\n\trefe" - + "renceB\023\n\021_confidence_score\"\240\002\n\021Grounding" - + "Metadata\022\037\n\022web_search_queries\030\001 \003(\tB\003\340A" - + "\001\022W\n\022search_entry_point\030\004 \001(\01321.google.c" - + "loud.aiplatform.v1beta1.SearchEntryPoint" - + "B\003\340A\001H\000\210\001\001\022\036\n\021retrieval_queries\030\003 \003(\tB\003\340" - + "A\001\022Z\n\026grounding_attributions\030\002 \003(\01325.goo" + + "\022PROHIBITED_CONTENT\020\007\022\010\n\004SPII\020\010\022\033\n\027MALFO" + + "RMED_FUNCTION_CALL\020\tB\021\n\017_finish_message\"" + + "g\n\007Segment\022\027\n\npart_index\030\001 \001(\005B\003\340A\003\022\030\n\013s" + + "tart_index\030\002 \001(\005B\003\340A\003\022\026\n\tend_index\030\003 \001(\005" + + "B\003\340A\003\022\021\n\004text\030\004 \001(\tB\003\340A\003\"\314\002\n\016GroundingCh" + + "unk\022B\n\003web\030\001 \001(\01323.google.cloud.aiplatfo" + + "rm.v1beta1.GroundingChunk.WebH\000\022]\n\021retri" + + "eved_context\030\002 \001(\0132@.google.cloud.aiplat" + + "form.v1beta1.GroundingChunk.RetrievedCon" + + "textH\000\032=\n\003Web\022\020\n\003uri\030\001 \001(\tH\000\210\001\001\022\022\n\005title" + + "\030\002 \001(\tH\001\210\001\001B\006\n\004_uriB\010\n\006_title\032J\n\020Retriev" + + "edContext\022\020\n\003uri\030\001 \001(\tH\000\210\001\001\022\022\n\005title\030\002 \001" + + "(\tH\001\210\001\001B\006\n\004_uriB\010\n\006_titleB\014\n\nchunk_type\"" + + "\232\001\n\020GroundingSupport\022>\n\007segment\030\001 \001(\0132(." + + "google.cloud.aiplatform.v1beta1.SegmentH" + + "\000\210\001\001\022\037\n\027grounding_chunk_indices\030\002 \003(\005\022\031\n" + + "\021confidence_scores\030\003 \003(\002B\n\n\010_segment\"\277\003\n" + + "\024GroundingAttribution\022M\n\003web\030\003 \001(\01329.goo" + "gle.cloud.aiplatform.v1beta1.GroundingAt" - + "tributionB\003\340A\001B\025\n\023_search_entry_point\"H\n" - + "\020SearchEntryPoint\022\035\n\020rendered_content\030\001 " - + "\001(\tB\003\340A\001\022\025\n\010sdk_blob\030\002 \001(\014B\003\340A\001*\264\001\n\014Harm" - + "Category\022\035\n\031HARM_CATEGORY_UNSPECIFIED\020\000\022" - + "\035\n\031HARM_CATEGORY_HATE_SPEECH\020\001\022#\n\037HARM_C" - + "ATEGORY_DANGEROUS_CONTENT\020\002\022\034\n\030HARM_CATE" - + "GORY_HARASSMENT\020\003\022#\n\037HARM_CATEGORY_SEXUA" - + "LLY_EXPLICIT\020\004B\343\001\n#com.google.cloud.aipl" - + "atform.v1beta1B\014ContentProtoP\001ZCcloud.go" - + "ogle.com/go/aiplatform/apiv1beta1/aiplat" - + "formpb;aiplatformpb\252\002\037Google.Cloud.AIPla" - + "tform.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\" - + "V1beta1\352\002\"Google::Cloud::AIPlatform::V1b" - + "eta1b\006proto3" + + "tribution.WebB\003\340A\001H\000\022h\n\021retrieved_contex" + + "t\030\004 \001(\0132F.google.cloud.aiplatform.v1beta" + + "1.GroundingAttribution.RetrievedContextB" + + "\003\340A\001H\000\022>\n\007segment\030\001 \001(\0132(.google.cloud.a" + + "iplatform.v1beta1.SegmentB\003\340A\003\022%\n\020confid" + + "ence_score\030\002 \001(\002B\006\340A\001\340A\003H\001\210\001\001\032+\n\003Web\022\020\n\003" + + "uri\030\001 \001(\tB\003\340A\003\022\022\n\005title\030\002 \001(\tB\003\340A\003\0328\n\020Re" + + "trievedContext\022\020\n\003uri\030\001 \001(\tB\003\340A\003\022\022\n\005titl" + + "e\030\002 \001(\tB\003\340A\003B\013\n\treferenceB\023\n\021_confidence" + + "_score\"\277\003\n\021GroundingMetadata\022\037\n\022web_sear" + + "ch_queries\030\001 \003(\tB\003\340A\001\022W\n\022search_entry_po" + + "int\030\004 \001(\01321.google.cloud.aiplatform.v1be" + + "ta1.SearchEntryPointB\003\340A\001H\000\210\001\001\022\036\n\021retrie" + + "val_queries\030\003 \003(\tB\003\340A\001\022Z\n\026grounding_attr" + + "ibutions\030\002 \003(\01325.google.cloud.aiplatform" + + ".v1beta1.GroundingAttributionB\003\340A\001\022I\n\020gr" + + "ounding_chunks\030\005 \003(\0132/.google.cloud.aipl" + + "atform.v1beta1.GroundingChunk\022R\n\022groundi" + + "ng_supports\030\006 \003(\01321.google.cloud.aiplatf" + + "orm.v1beta1.GroundingSupportB\003\340A\001B\025\n\023_se" + + "arch_entry_point\"H\n\020SearchEntryPoint\022\035\n\020" + + "rendered_content\030\001 \001(\tB\003\340A\001\022\025\n\010sdk_blob\030" + + "\002 \001(\014B\003\340A\001*\264\001\n\014HarmCategory\022\035\n\031HARM_CATE" + + "GORY_UNSPECIFIED\020\000\022\035\n\031HARM_CATEGORY_HATE" + + "_SPEECH\020\001\022#\n\037HARM_CATEGORY_DANGEROUS_CON" + + "TENT\020\002\022\034\n\030HARM_CATEGORY_HARASSMENT\020\003\022#\n\037" + + "HARM_CATEGORY_SEXUALLY_EXPLICIT\020\004B\343\001\n#co" + + "m.google.cloud.aiplatform.v1beta1B\014Conte" + + "ntProtoP\001ZCcloud.google.com/go/aiplatfor" + + "m/apiv1beta1/aiplatformpb;aiplatformpb\252\002" + + "\037Google.Cloud.AIPlatform.V1Beta1\312\002\037Googl" + + "e\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::Clo" + + "ud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -354,10 +387,46 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_Segment_descriptor, new java.lang.String[] { - "PartIndex", "StartIndex", "EndIndex", + "PartIndex", "StartIndex", "EndIndex", "Text", }); - internal_static_google_cloud_aiplatform_v1beta1_GroundingAttribution_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_GroundingChunk_descriptor = getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_aiplatform_v1beta1_GroundingChunk_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_GroundingChunk_descriptor, + new java.lang.String[] { + "Web", "RetrievedContext", "ChunkType", + }); + internal_static_google_cloud_aiplatform_v1beta1_GroundingChunk_Web_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_GroundingChunk_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1beta1_GroundingChunk_Web_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_GroundingChunk_Web_descriptor, + new java.lang.String[] { + "Uri", "Title", + }); + internal_static_google_cloud_aiplatform_v1beta1_GroundingChunk_RetrievedContext_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_GroundingChunk_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_aiplatform_v1beta1_GroundingChunk_RetrievedContext_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_GroundingChunk_RetrievedContext_descriptor, + new java.lang.String[] { + "Uri", "Title", + }); + internal_static_google_cloud_aiplatform_v1beta1_GroundingSupport_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_aiplatform_v1beta1_GroundingSupport_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_GroundingSupport_descriptor, + new java.lang.String[] { + "Segment", "GroundingChunkIndices", "ConfidenceScores", + }); + internal_static_google_cloud_aiplatform_v1beta1_GroundingAttribution_descriptor = + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_aiplatform_v1beta1_GroundingAttribution_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_GroundingAttribution_descriptor, @@ -385,15 +454,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Uri", "Title", }); internal_static_google_cloud_aiplatform_v1beta1_GroundingMetadata_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_aiplatform_v1beta1_GroundingMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_GroundingMetadata_descriptor, new java.lang.String[] { - "WebSearchQueries", "SearchEntryPoint", "RetrievalQueries", "GroundingAttributions", + "WebSearchQueries", + "SearchEntryPoint", + "RetrievalQueries", + "GroundingAttributions", + "GroundingChunks", + "GroundingSupports", }); internal_static_google_cloud_aiplatform_v1beta1_SearchEntryPoint_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_aiplatform_v1beta1_SearchEntryPoint_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_SearchEntryPoint_descriptor, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GroundingChunk.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GroundingChunk.java new file mode 100644 index 000000000000..3d4e5cdb76a0 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GroundingChunk.java @@ -0,0 +1,3045 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/content.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Grounding chunk.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GroundingChunk} + */ +public final class GroundingChunk extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.GroundingChunk) + GroundingChunkOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroundingChunk.newBuilder() to construct. + private GroundingChunk(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GroundingChunk() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GroundingChunk(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_GroundingChunk_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_GroundingChunk_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GroundingChunk.class, + com.google.cloud.aiplatform.v1beta1.GroundingChunk.Builder.class); + } + + public interface WebOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.GroundingChunk.Web) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * URI reference of the chunk.
+     * 
+ * + * optional string uri = 1; + * + * @return Whether the uri field is set. + */ + boolean hasUri(); + /** + * + * + *
+     * URI reference of the chunk.
+     * 
+ * + * optional string uri = 1; + * + * @return The uri. + */ + java.lang.String getUri(); + /** + * + * + *
+     * URI reference of the chunk.
+     * 
+ * + * optional string uri = 1; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
+     * Title of the chunk.
+     * 
+ * + * optional string title = 2; + * + * @return Whether the title field is set. + */ + boolean hasTitle(); + /** + * + * + *
+     * Title of the chunk.
+     * 
+ * + * optional string title = 2; + * + * @return The title. + */ + java.lang.String getTitle(); + /** + * + * + *
+     * Title of the chunk.
+     * 
+ * + * optional string title = 2; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + } + /** + * + * + *
+   * Chunk from the web.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GroundingChunk.Web} + */ + public static final class Web extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.GroundingChunk.Web) + WebOrBuilder { + private static final long serialVersionUID = 0L; + // Use Web.newBuilder() to construct. + private Web(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Web() { + uri_ = ""; + title_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Web(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_GroundingChunk_Web_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_GroundingChunk_Web_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web.class, + com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web.Builder.class); + } + + private int bitField0_; + public static final int URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + /** + * + * + *
+     * URI reference of the chunk.
+     * 
+ * + * optional string uri = 1; + * + * @return Whether the uri field is set. + */ + @java.lang.Override + public boolean hasUri() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * URI reference of the chunk.
+     * 
+ * + * optional string uri = 1; + * + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } + } + /** + * + * + *
+     * URI reference of the chunk.
+     * 
+ * + * optional string uri = 1; + * + * @return The bytes for uri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TITLE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; + /** + * + * + *
+     * Title of the chunk.
+     * 
+ * + * optional string title = 2; + * + * @return Whether the title field is set. + */ + @java.lang.Override + public boolean hasTitle() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Title of the chunk.
+     * 
+ * + * optional string title = 2; + * + * @return The title. + */ + @java.lang.Override + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } + } + /** + * + * + *
+     * Title of the chunk.
+     * 
+ * + * optional string title = 2; + * + * @return The bytes for title. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, title_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web other = + (com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web) obj; + + if (hasUri() != other.hasUri()) return false; + if (hasUri()) { + if (!getUri().equals(other.getUri())) return false; + } + if (hasTitle() != other.hasTitle()) return false; + if (hasTitle()) { + if (!getTitle().equals(other.getTitle())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUri()) { + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + } + if (hasTitle()) { + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Chunk from the web.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GroundingChunk.Web} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.GroundingChunk.Web) + com.google.cloud.aiplatform.v1beta1.GroundingChunk.WebOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_GroundingChunk_Web_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_GroundingChunk_Web_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web.class, + com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + uri_ = ""; + title_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_GroundingChunk_Web_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web build() { + com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web buildPartial() { + com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web result = + new com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.uri_ = uri_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.title_ = title_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web other) { + if (other == com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web.getDefaultInstance()) + return this; + if (other.hasUri()) { + uri_ = other.uri_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasTitle()) { + title_ = other.title_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object uri_ = ""; + /** + * + * + *
+       * URI reference of the chunk.
+       * 
+ * + * optional string uri = 1; + * + * @return Whether the uri field is set. + */ + public boolean hasUri() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+       * URI reference of the chunk.
+       * 
+ * + * optional string uri = 1; + * + * @return The uri. + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * URI reference of the chunk.
+       * 
+ * + * optional string uri = 1; + * + * @return The bytes for uri. + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * URI reference of the chunk.
+       * 
+ * + * optional string uri = 1; + * + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * URI reference of the chunk.
+       * 
+ * + * optional string uri = 1; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * URI reference of the chunk.
+       * 
+ * + * optional string uri = 1; + * + * @param value The bytes for uri to set. + * @return This builder for chaining. + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object title_ = ""; + /** + * + * + *
+       * Title of the chunk.
+       * 
+ * + * optional string title = 2; + * + * @return Whether the title field is set. + */ + public boolean hasTitle() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+       * Title of the chunk.
+       * 
+ * + * optional string title = 2; + * + * @return The title. + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Title of the chunk.
+       * 
+ * + * optional string title = 2; + * + * @return The bytes for title. + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Title of the chunk.
+       * 
+ * + * optional string title = 2; + * + * @param value The title to set. + * @return This builder for chaining. + */ + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + title_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Title of the chunk.
+       * 
+ * + * optional string title = 2; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * Title of the chunk.
+       * 
+ * + * optional string title = 2; + * + * @param value The bytes for title to set. + * @return This builder for chaining. + */ + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + title_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.GroundingChunk.Web) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.GroundingChunk.Web) + private static final com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web(); + } + + public static com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Web parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface RetrievedContextOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * URI reference of the attribution.
+     * 
+ * + * optional string uri = 1; + * + * @return Whether the uri field is set. + */ + boolean hasUri(); + /** + * + * + *
+     * URI reference of the attribution.
+     * 
+ * + * optional string uri = 1; + * + * @return The uri. + */ + java.lang.String getUri(); + /** + * + * + *
+     * URI reference of the attribution.
+     * 
+ * + * optional string uri = 1; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
+     * Title of the attribution.
+     * 
+ * + * optional string title = 2; + * + * @return Whether the title field is set. + */ + boolean hasTitle(); + /** + * + * + *
+     * Title of the attribution.
+     * 
+ * + * optional string title = 2; + * + * @return The title. + */ + java.lang.String getTitle(); + /** + * + * + *
+     * Title of the attribution.
+     * 
+ * + * optional string title = 2; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + } + /** + * + * + *
+   * Chunk from context retrieved by the retrieval tools.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext} + */ + public static final class RetrievedContext extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext) + RetrievedContextOrBuilder { + private static final long serialVersionUID = 0L; + // Use RetrievedContext.newBuilder() to construct. + private RetrievedContext(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RetrievedContext() { + uri_ = ""; + title_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RetrievedContext(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_GroundingChunk_RetrievedContext_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_GroundingChunk_RetrievedContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext.class, + com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext.Builder.class); + } + + private int bitField0_; + public static final int URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + /** + * + * + *
+     * URI reference of the attribution.
+     * 
+ * + * optional string uri = 1; + * + * @return Whether the uri field is set. + */ + @java.lang.Override + public boolean hasUri() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * URI reference of the attribution.
+     * 
+ * + * optional string uri = 1; + * + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } + } + /** + * + * + *
+     * URI reference of the attribution.
+     * 
+ * + * optional string uri = 1; + * + * @return The bytes for uri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TITLE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; + /** + * + * + *
+     * Title of the attribution.
+     * 
+ * + * optional string title = 2; + * + * @return Whether the title field is set. + */ + @java.lang.Override + public boolean hasTitle() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Title of the attribution.
+     * 
+ * + * optional string title = 2; + * + * @return The title. + */ + @java.lang.Override + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } + } + /** + * + * + *
+     * Title of the attribution.
+     * 
+ * + * optional string title = 2; + * + * @return The bytes for title. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, title_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext other = + (com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext) obj; + + if (hasUri() != other.hasUri()) return false; + if (hasUri()) { + if (!getUri().equals(other.getUri())) return false; + } + if (hasTitle() != other.hasTitle()) return false; + if (hasTitle()) { + if (!getTitle().equals(other.getTitle())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUri()) { + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + } + if (hasTitle()) { + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Chunk from context retrieved by the retrieval tools.
+     * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext) + com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContextOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_GroundingChunk_RetrievedContext_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_GroundingChunk_RetrievedContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext.class, + com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + uri_ = ""; + title_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_GroundingChunk_RetrievedContext_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext build() { + com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext buildPartial() { + com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext result = + new com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.uri_ = uri_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.title_ = title_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext other) { + if (other + == com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext + .getDefaultInstance()) return this; + if (other.hasUri()) { + uri_ = other.uri_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasTitle()) { + title_ = other.title_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object uri_ = ""; + /** + * + * + *
+       * URI reference of the attribution.
+       * 
+ * + * optional string uri = 1; + * + * @return Whether the uri field is set. + */ + public boolean hasUri() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+       * URI reference of the attribution.
+       * 
+ * + * optional string uri = 1; + * + * @return The uri. + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * URI reference of the attribution.
+       * 
+ * + * optional string uri = 1; + * + * @return The bytes for uri. + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * URI reference of the attribution.
+       * 
+ * + * optional string uri = 1; + * + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * URI reference of the attribution.
+       * 
+ * + * optional string uri = 1; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * URI reference of the attribution.
+       * 
+ * + * optional string uri = 1; + * + * @param value The bytes for uri to set. + * @return This builder for chaining. + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object title_ = ""; + /** + * + * + *
+       * Title of the attribution.
+       * 
+ * + * optional string title = 2; + * + * @return Whether the title field is set. + */ + public boolean hasTitle() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+       * Title of the attribution.
+       * 
+ * + * optional string title = 2; + * + * @return The title. + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Title of the attribution.
+       * 
+ * + * optional string title = 2; + * + * @return The bytes for title. + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Title of the attribution.
+       * 
+ * + * optional string title = 2; + * + * @param value The title to set. + * @return This builder for chaining. + */ + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + title_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Title of the attribution.
+       * 
+ * + * optional string title = 2; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * Title of the attribution.
+       * 
+ * + * optional string title = 2; + * + * @param value The bytes for title to set. + * @return This builder for chaining. + */ + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + title_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext) + private static final com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext(); + } + + public static com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RetrievedContext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int chunkTypeCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object chunkType_; + + public enum ChunkTypeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + WEB(1), + RETRIEVED_CONTEXT(2), + CHUNKTYPE_NOT_SET(0); + private final int value; + + private ChunkTypeCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ChunkTypeCase valueOf(int value) { + return forNumber(value); + } + + public static ChunkTypeCase forNumber(int value) { + switch (value) { + case 1: + return WEB; + case 2: + return RETRIEVED_CONTEXT; + case 0: + return CHUNKTYPE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ChunkTypeCase getChunkTypeCase() { + return ChunkTypeCase.forNumber(chunkTypeCase_); + } + + public static final int WEB_FIELD_NUMBER = 1; + /** + * + * + *
+   * Grounding chunk from the web.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GroundingChunk.Web web = 1; + * + * @return Whether the web field is set. + */ + @java.lang.Override + public boolean hasWeb() { + return chunkTypeCase_ == 1; + } + /** + * + * + *
+   * Grounding chunk from the web.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GroundingChunk.Web web = 1; + * + * @return The web. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web getWeb() { + if (chunkTypeCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web) chunkType_; + } + return com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web.getDefaultInstance(); + } + /** + * + * + *
+   * Grounding chunk from the web.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GroundingChunk.Web web = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GroundingChunk.WebOrBuilder getWebOrBuilder() { + if (chunkTypeCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web) chunkType_; + } + return com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web.getDefaultInstance(); + } + + public static final int RETRIEVED_CONTEXT_FIELD_NUMBER = 2; + /** + * + * + *
+   * Grounding chunk from context retrieved by the retrieval tools.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext retrieved_context = 2; + * + * + * @return Whether the retrievedContext field is set. + */ + @java.lang.Override + public boolean hasRetrievedContext() { + return chunkTypeCase_ == 2; + } + /** + * + * + *
+   * Grounding chunk from context retrieved by the retrieval tools.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext retrieved_context = 2; + * + * + * @return The retrievedContext. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext getRetrievedContext() { + if (chunkTypeCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext) chunkType_; + } + return com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext.getDefaultInstance(); + } + /** + * + * + *
+   * Grounding chunk from context retrieved by the retrieval tools.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext retrieved_context = 2; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContextOrBuilder + getRetrievedContextOrBuilder() { + if (chunkTypeCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext) chunkType_; + } + return com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (chunkTypeCase_ == 1) { + output.writeMessage(1, (com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web) chunkType_); + } + if (chunkTypeCase_ == 2) { + output.writeMessage( + 2, (com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext) chunkType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (chunkTypeCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web) chunkType_); + } + if (chunkTypeCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext) chunkType_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.GroundingChunk)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.GroundingChunk other = + (com.google.cloud.aiplatform.v1beta1.GroundingChunk) obj; + + if (!getChunkTypeCase().equals(other.getChunkTypeCase())) return false; + switch (chunkTypeCase_) { + case 1: + if (!getWeb().equals(other.getWeb())) return false; + break; + case 2: + if (!getRetrievedContext().equals(other.getRetrievedContext())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (chunkTypeCase_) { + case 1: + hash = (37 * hash) + WEB_FIELD_NUMBER; + hash = (53 * hash) + getWeb().hashCode(); + break; + case 2: + hash = (37 * hash) + RETRIEVED_CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + getRetrievedContext().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.GroundingChunk parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GroundingChunk parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GroundingChunk parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GroundingChunk parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GroundingChunk parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GroundingChunk parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GroundingChunk parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GroundingChunk parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GroundingChunk parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GroundingChunk parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GroundingChunk parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GroundingChunk parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1beta1.GroundingChunk prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Grounding chunk.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GroundingChunk} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.GroundingChunk) + com.google.cloud.aiplatform.v1beta1.GroundingChunkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_GroundingChunk_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_GroundingChunk_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GroundingChunk.class, + com.google.cloud.aiplatform.v1beta1.GroundingChunk.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.GroundingChunk.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (webBuilder_ != null) { + webBuilder_.clear(); + } + if (retrievedContextBuilder_ != null) { + retrievedContextBuilder_.clear(); + } + chunkTypeCase_ = 0; + chunkType_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_GroundingChunk_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GroundingChunk getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.GroundingChunk.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GroundingChunk build() { + com.google.cloud.aiplatform.v1beta1.GroundingChunk result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GroundingChunk buildPartial() { + com.google.cloud.aiplatform.v1beta1.GroundingChunk result = + new com.google.cloud.aiplatform.v1beta1.GroundingChunk(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.GroundingChunk result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1beta1.GroundingChunk result) { + result.chunkTypeCase_ = chunkTypeCase_; + result.chunkType_ = this.chunkType_; + if (chunkTypeCase_ == 1 && webBuilder_ != null) { + result.chunkType_ = webBuilder_.build(); + } + if (chunkTypeCase_ == 2 && retrievedContextBuilder_ != null) { + result.chunkType_ = retrievedContextBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.GroundingChunk) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.GroundingChunk) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GroundingChunk other) { + if (other == com.google.cloud.aiplatform.v1beta1.GroundingChunk.getDefaultInstance()) + return this; + switch (other.getChunkTypeCase()) { + case WEB: + { + mergeWeb(other.getWeb()); + break; + } + case RETRIEVED_CONTEXT: + { + mergeRetrievedContext(other.getRetrievedContext()); + break; + } + case CHUNKTYPE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getWebFieldBuilder().getBuilder(), extensionRegistry); + chunkTypeCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + getRetrievedContextFieldBuilder().getBuilder(), extensionRegistry); + chunkTypeCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int chunkTypeCase_ = 0; + private java.lang.Object chunkType_; + + public ChunkTypeCase getChunkTypeCase() { + return ChunkTypeCase.forNumber(chunkTypeCase_); + } + + public Builder clearChunkType() { + chunkTypeCase_ = 0; + chunkType_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web, + com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web.Builder, + com.google.cloud.aiplatform.v1beta1.GroundingChunk.WebOrBuilder> + webBuilder_; + /** + * + * + *
+     * Grounding chunk from the web.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GroundingChunk.Web web = 1; + * + * @return Whether the web field is set. + */ + @java.lang.Override + public boolean hasWeb() { + return chunkTypeCase_ == 1; + } + /** + * + * + *
+     * Grounding chunk from the web.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GroundingChunk.Web web = 1; + * + * @return The web. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web getWeb() { + if (webBuilder_ == null) { + if (chunkTypeCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web) chunkType_; + } + return com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web.getDefaultInstance(); + } else { + if (chunkTypeCase_ == 1) { + return webBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web.getDefaultInstance(); + } + } + /** + * + * + *
+     * Grounding chunk from the web.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GroundingChunk.Web web = 1; + */ + public Builder setWeb(com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web value) { + if (webBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + chunkType_ = value; + onChanged(); + } else { + webBuilder_.setMessage(value); + } + chunkTypeCase_ = 1; + return this; + } + /** + * + * + *
+     * Grounding chunk from the web.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GroundingChunk.Web web = 1; + */ + public Builder setWeb( + com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web.Builder builderForValue) { + if (webBuilder_ == null) { + chunkType_ = builderForValue.build(); + onChanged(); + } else { + webBuilder_.setMessage(builderForValue.build()); + } + chunkTypeCase_ = 1; + return this; + } + /** + * + * + *
+     * Grounding chunk from the web.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GroundingChunk.Web web = 1; + */ + public Builder mergeWeb(com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web value) { + if (webBuilder_ == null) { + if (chunkTypeCase_ == 1 + && chunkType_ + != com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web.getDefaultInstance()) { + chunkType_ = + com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web.newBuilder( + (com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web) chunkType_) + .mergeFrom(value) + .buildPartial(); + } else { + chunkType_ = value; + } + onChanged(); + } else { + if (chunkTypeCase_ == 1) { + webBuilder_.mergeFrom(value); + } else { + webBuilder_.setMessage(value); + } + } + chunkTypeCase_ = 1; + return this; + } + /** + * + * + *
+     * Grounding chunk from the web.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GroundingChunk.Web web = 1; + */ + public Builder clearWeb() { + if (webBuilder_ == null) { + if (chunkTypeCase_ == 1) { + chunkTypeCase_ = 0; + chunkType_ = null; + onChanged(); + } + } else { + if (chunkTypeCase_ == 1) { + chunkTypeCase_ = 0; + chunkType_ = null; + } + webBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Grounding chunk from the web.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GroundingChunk.Web web = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web.Builder getWebBuilder() { + return getWebFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Grounding chunk from the web.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GroundingChunk.Web web = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GroundingChunk.WebOrBuilder getWebOrBuilder() { + if ((chunkTypeCase_ == 1) && (webBuilder_ != null)) { + return webBuilder_.getMessageOrBuilder(); + } else { + if (chunkTypeCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web) chunkType_; + } + return com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web.getDefaultInstance(); + } + } + /** + * + * + *
+     * Grounding chunk from the web.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GroundingChunk.Web web = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web, + com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web.Builder, + com.google.cloud.aiplatform.v1beta1.GroundingChunk.WebOrBuilder> + getWebFieldBuilder() { + if (webBuilder_ == null) { + if (!(chunkTypeCase_ == 1)) { + chunkType_ = com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web.getDefaultInstance(); + } + webBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web, + com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web.Builder, + com.google.cloud.aiplatform.v1beta1.GroundingChunk.WebOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web) chunkType_, + getParentForChildren(), + isClean()); + chunkType_ = null; + } + chunkTypeCase_ = 1; + onChanged(); + return webBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext, + com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext.Builder, + com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContextOrBuilder> + retrievedContextBuilder_; + /** + * + * + *
+     * Grounding chunk from context retrieved by the retrieval tools.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext retrieved_context = 2; + * + * + * @return Whether the retrievedContext field is set. + */ + @java.lang.Override + public boolean hasRetrievedContext() { + return chunkTypeCase_ == 2; + } + /** + * + * + *
+     * Grounding chunk from context retrieved by the retrieval tools.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext retrieved_context = 2; + * + * + * @return The retrievedContext. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext + getRetrievedContext() { + if (retrievedContextBuilder_ == null) { + if (chunkTypeCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext) chunkType_; + } + return com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext + .getDefaultInstance(); + } else { + if (chunkTypeCase_ == 2) { + return retrievedContextBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Grounding chunk from context retrieved by the retrieval tools.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext retrieved_context = 2; + * + */ + public Builder setRetrievedContext( + com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext value) { + if (retrievedContextBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + chunkType_ = value; + onChanged(); + } else { + retrievedContextBuilder_.setMessage(value); + } + chunkTypeCase_ = 2; + return this; + } + /** + * + * + *
+     * Grounding chunk from context retrieved by the retrieval tools.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext retrieved_context = 2; + * + */ + public Builder setRetrievedContext( + com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext.Builder + builderForValue) { + if (retrievedContextBuilder_ == null) { + chunkType_ = builderForValue.build(); + onChanged(); + } else { + retrievedContextBuilder_.setMessage(builderForValue.build()); + } + chunkTypeCase_ = 2; + return this; + } + /** + * + * + *
+     * Grounding chunk from context retrieved by the retrieval tools.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext retrieved_context = 2; + * + */ + public Builder mergeRetrievedContext( + com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext value) { + if (retrievedContextBuilder_ == null) { + if (chunkTypeCase_ == 2 + && chunkType_ + != com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext + .getDefaultInstance()) { + chunkType_ = + com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext.newBuilder( + (com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext) + chunkType_) + .mergeFrom(value) + .buildPartial(); + } else { + chunkType_ = value; + } + onChanged(); + } else { + if (chunkTypeCase_ == 2) { + retrievedContextBuilder_.mergeFrom(value); + } else { + retrievedContextBuilder_.setMessage(value); + } + } + chunkTypeCase_ = 2; + return this; + } + /** + * + * + *
+     * Grounding chunk from context retrieved by the retrieval tools.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext retrieved_context = 2; + * + */ + public Builder clearRetrievedContext() { + if (retrievedContextBuilder_ == null) { + if (chunkTypeCase_ == 2) { + chunkTypeCase_ = 0; + chunkType_ = null; + onChanged(); + } + } else { + if (chunkTypeCase_ == 2) { + chunkTypeCase_ = 0; + chunkType_ = null; + } + retrievedContextBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Grounding chunk from context retrieved by the retrieval tools.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext retrieved_context = 2; + * + */ + public com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext.Builder + getRetrievedContextBuilder() { + return getRetrievedContextFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Grounding chunk from context retrieved by the retrieval tools.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext retrieved_context = 2; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContextOrBuilder + getRetrievedContextOrBuilder() { + if ((chunkTypeCase_ == 2) && (retrievedContextBuilder_ != null)) { + return retrievedContextBuilder_.getMessageOrBuilder(); + } else { + if (chunkTypeCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext) chunkType_; + } + return com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Grounding chunk from context retrieved by the retrieval tools.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext retrieved_context = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext, + com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext.Builder, + com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContextOrBuilder> + getRetrievedContextFieldBuilder() { + if (retrievedContextBuilder_ == null) { + if (!(chunkTypeCase_ == 2)) { + chunkType_ = + com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext + .getDefaultInstance(); + } + retrievedContextBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext, + com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext.Builder, + com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContextOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext) chunkType_, + getParentForChildren(), + isClean()); + chunkType_ = null; + } + chunkTypeCase_ = 2; + onChanged(); + return retrievedContextBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.GroundingChunk) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.GroundingChunk) + private static final com.google.cloud.aiplatform.v1beta1.GroundingChunk DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.GroundingChunk(); + } + + public static com.google.cloud.aiplatform.v1beta1.GroundingChunk getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroundingChunk parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GroundingChunk getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GroundingChunkOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GroundingChunkOrBuilder.java new file mode 100644 index 000000000000..03e4bf0e31e5 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GroundingChunkOrBuilder.java @@ -0,0 +1,102 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/content.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1beta1; + +public interface GroundingChunkOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.GroundingChunk) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Grounding chunk from the web.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GroundingChunk.Web web = 1; + * + * @return Whether the web field is set. + */ + boolean hasWeb(); + /** + * + * + *
+   * Grounding chunk from the web.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GroundingChunk.Web web = 1; + * + * @return The web. + */ + com.google.cloud.aiplatform.v1beta1.GroundingChunk.Web getWeb(); + /** + * + * + *
+   * Grounding chunk from the web.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GroundingChunk.Web web = 1; + */ + com.google.cloud.aiplatform.v1beta1.GroundingChunk.WebOrBuilder getWebOrBuilder(); + + /** + * + * + *
+   * Grounding chunk from context retrieved by the retrieval tools.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext retrieved_context = 2; + * + * + * @return Whether the retrievedContext field is set. + */ + boolean hasRetrievedContext(); + /** + * + * + *
+   * Grounding chunk from context retrieved by the retrieval tools.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext retrieved_context = 2; + * + * + * @return The retrievedContext. + */ + com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext getRetrievedContext(); + /** + * + * + *
+   * Grounding chunk from context retrieved by the retrieval tools.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContext retrieved_context = 2; + * + */ + com.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContextOrBuilder + getRetrievedContextOrBuilder(); + + com.google.cloud.aiplatform.v1beta1.GroundingChunk.ChunkTypeCase getChunkTypeCase(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GroundingMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GroundingMetadata.java index 5a30ebede4fe..f73dbfe14862 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GroundingMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GroundingMetadata.java @@ -42,6 +42,8 @@ private GroundingMetadata() { webSearchQueries_ = com.google.protobuf.LazyStringArrayList.emptyList(); retrievalQueries_ = com.google.protobuf.LazyStringArrayList.emptyList(); groundingAttributions_ = java.util.Collections.emptyList(); + groundingChunks_ = java.util.Collections.emptyList(); + groundingSupports_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -336,6 +338,162 @@ public com.google.cloud.aiplatform.v1beta1.GroundingAttribution getGroundingAttr return groundingAttributions_.get(index); } + public static final int GROUNDING_CHUNKS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List groundingChunks_; + /** + * + * + *
+   * List of supporting references retrieved from specified grounding source.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5; + */ + @java.lang.Override + public java.util.List + getGroundingChunksList() { + return groundingChunks_; + } + /** + * + * + *
+   * List of supporting references retrieved from specified grounding source.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5; + */ + @java.lang.Override + public java.util.List + getGroundingChunksOrBuilderList() { + return groundingChunks_; + } + /** + * + * + *
+   * List of supporting references retrieved from specified grounding source.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5; + */ + @java.lang.Override + public int getGroundingChunksCount() { + return groundingChunks_.size(); + } + /** + * + * + *
+   * List of supporting references retrieved from specified grounding source.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GroundingChunk getGroundingChunks(int index) { + return groundingChunks_.get(index); + } + /** + * + * + *
+   * List of supporting references retrieved from specified grounding source.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GroundingChunkOrBuilder getGroundingChunksOrBuilder( + int index) { + return groundingChunks_.get(index); + } + + public static final int GROUNDING_SUPPORTS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private java.util.List groundingSupports_; + /** + * + * + *
+   * Optional. List of grounding support.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getGroundingSupportsList() { + return groundingSupports_; + } + /** + * + * + *
+   * Optional. List of grounding support.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getGroundingSupportsOrBuilderList() { + return groundingSupports_; + } + /** + * + * + *
+   * Optional. List of grounding support.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getGroundingSupportsCount() { + return groundingSupports_.size(); + } + /** + * + * + *
+   * Optional. List of grounding support.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GroundingSupport getGroundingSupports(int index) { + return groundingSupports_.get(index); + } + /** + * + * + *
+   * Optional. List of grounding support.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GroundingSupportOrBuilder + getGroundingSupportsOrBuilder(int index) { + return groundingSupports_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -362,6 +520,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getSearchEntryPoint()); } + for (int i = 0; i < groundingChunks_.size(); i++) { + output.writeMessage(5, groundingChunks_.get(i)); + } + for (int i = 0; i < groundingSupports_.size(); i++) { + output.writeMessage(6, groundingSupports_.get(i)); + } getUnknownFields().writeTo(output); } @@ -395,6 +559,13 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSearchEntryPoint()); } + for (int i = 0; i < groundingChunks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, groundingChunks_.get(i)); + } + for (int i = 0; i < groundingSupports_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(6, groundingSupports_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -418,6 +589,8 @@ public boolean equals(final java.lang.Object obj) { } if (!getRetrievalQueriesList().equals(other.getRetrievalQueriesList())) return false; if (!getGroundingAttributionsList().equals(other.getGroundingAttributionsList())) return false; + if (!getGroundingChunksList().equals(other.getGroundingChunksList())) return false; + if (!getGroundingSupportsList().equals(other.getGroundingSupportsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -445,6 +618,14 @@ public int hashCode() { hash = (37 * hash) + GROUNDING_ATTRIBUTIONS_FIELD_NUMBER; hash = (53 * hash) + getGroundingAttributionsList().hashCode(); } + if (getGroundingChunksCount() > 0) { + hash = (37 * hash) + GROUNDING_CHUNKS_FIELD_NUMBER; + hash = (53 * hash) + getGroundingChunksList().hashCode(); + } + if (getGroundingSupportsCount() > 0) { + hash = (37 * hash) + GROUNDING_SUPPORTS_FIELD_NUMBER; + hash = (53 * hash) + getGroundingSupportsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -588,6 +769,8 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSearchEntryPointFieldBuilder(); getGroundingAttributionsFieldBuilder(); + getGroundingChunksFieldBuilder(); + getGroundingSupportsFieldBuilder(); } } @@ -609,6 +792,20 @@ public Builder clear() { groundingAttributionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); + if (groundingChunksBuilder_ == null) { + groundingChunks_ = java.util.Collections.emptyList(); + } else { + groundingChunks_ = null; + groundingChunksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + if (groundingSupportsBuilder_ == null) { + groundingSupports_ = java.util.Collections.emptyList(); + } else { + groundingSupports_ = null; + groundingSupportsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); return this; } @@ -655,6 +852,24 @@ private void buildPartialRepeatedFields( } else { result.groundingAttributions_ = groundingAttributionsBuilder_.build(); } + if (groundingChunksBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + groundingChunks_ = java.util.Collections.unmodifiableList(groundingChunks_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.groundingChunks_ = groundingChunks_; + } else { + result.groundingChunks_ = groundingChunksBuilder_.build(); + } + if (groundingSupportsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + groundingSupports_ = java.util.Collections.unmodifiableList(groundingSupports_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.groundingSupports_ = groundingSupports_; + } else { + result.groundingSupports_ = groundingSupportsBuilder_.build(); + } } private void buildPartial0(com.google.cloud.aiplatform.v1beta1.GroundingMetadata result) { @@ -772,6 +987,60 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GroundingMetadata o } } } + if (groundingChunksBuilder_ == null) { + if (!other.groundingChunks_.isEmpty()) { + if (groundingChunks_.isEmpty()) { + groundingChunks_ = other.groundingChunks_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureGroundingChunksIsMutable(); + groundingChunks_.addAll(other.groundingChunks_); + } + onChanged(); + } + } else { + if (!other.groundingChunks_.isEmpty()) { + if (groundingChunksBuilder_.isEmpty()) { + groundingChunksBuilder_.dispose(); + groundingChunksBuilder_ = null; + groundingChunks_ = other.groundingChunks_; + bitField0_ = (bitField0_ & ~0x00000010); + groundingChunksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getGroundingChunksFieldBuilder() + : null; + } else { + groundingChunksBuilder_.addAllMessages(other.groundingChunks_); + } + } + } + if (groundingSupportsBuilder_ == null) { + if (!other.groundingSupports_.isEmpty()) { + if (groundingSupports_.isEmpty()) { + groundingSupports_ = other.groundingSupports_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureGroundingSupportsIsMutable(); + groundingSupports_.addAll(other.groundingSupports_); + } + onChanged(); + } + } else { + if (!other.groundingSupports_.isEmpty()) { + if (groundingSupportsBuilder_.isEmpty()) { + groundingSupportsBuilder_.dispose(); + groundingSupportsBuilder_ = null; + groundingSupports_ = other.groundingSupports_; + bitField0_ = (bitField0_ & ~0x00000020); + groundingSupportsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getGroundingSupportsFieldBuilder() + : null; + } else { + groundingSupportsBuilder_.addAllMessages(other.groundingSupports_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -833,6 +1102,34 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 34 + case 42: + { + com.google.cloud.aiplatform.v1beta1.GroundingChunk m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.GroundingChunk.parser(), + extensionRegistry); + if (groundingChunksBuilder_ == null) { + ensureGroundingChunksIsMutable(); + groundingChunks_.add(m); + } else { + groundingChunksBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: + { + com.google.cloud.aiplatform.v1beta1.GroundingSupport m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.GroundingSupport.parser(), + extensionRegistry); + if (groundingSupportsBuilder_ == null) { + ensureGroundingSupportsIsMutable(); + groundingSupports_.add(m); + } else { + groundingSupportsBuilder_.addMessage(m); + } + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1823,6 +2120,768 @@ public Builder removeGroundingAttributions(int index) { return groundingAttributionsBuilder_; } + private java.util.List groundingChunks_ = + java.util.Collections.emptyList(); + + private void ensureGroundingChunksIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + groundingChunks_ = + new java.util.ArrayList( + groundingChunks_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GroundingChunk, + com.google.cloud.aiplatform.v1beta1.GroundingChunk.Builder, + com.google.cloud.aiplatform.v1beta1.GroundingChunkOrBuilder> + groundingChunksBuilder_; + + /** + * + * + *
+     * List of supporting references retrieved from specified grounding source.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5; + */ + public java.util.List + getGroundingChunksList() { + if (groundingChunksBuilder_ == null) { + return java.util.Collections.unmodifiableList(groundingChunks_); + } else { + return groundingChunksBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of supporting references retrieved from specified grounding source.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5; + */ + public int getGroundingChunksCount() { + if (groundingChunksBuilder_ == null) { + return groundingChunks_.size(); + } else { + return groundingChunksBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of supporting references retrieved from specified grounding source.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5; + */ + public com.google.cloud.aiplatform.v1beta1.GroundingChunk getGroundingChunks(int index) { + if (groundingChunksBuilder_ == null) { + return groundingChunks_.get(index); + } else { + return groundingChunksBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of supporting references retrieved from specified grounding source.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5; + */ + public Builder setGroundingChunks( + int index, com.google.cloud.aiplatform.v1beta1.GroundingChunk value) { + if (groundingChunksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroundingChunksIsMutable(); + groundingChunks_.set(index, value); + onChanged(); + } else { + groundingChunksBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of supporting references retrieved from specified grounding source.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5; + */ + public Builder setGroundingChunks( + int index, com.google.cloud.aiplatform.v1beta1.GroundingChunk.Builder builderForValue) { + if (groundingChunksBuilder_ == null) { + ensureGroundingChunksIsMutable(); + groundingChunks_.set(index, builderForValue.build()); + onChanged(); + } else { + groundingChunksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of supporting references retrieved from specified grounding source.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5; + */ + public Builder addGroundingChunks(com.google.cloud.aiplatform.v1beta1.GroundingChunk value) { + if (groundingChunksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroundingChunksIsMutable(); + groundingChunks_.add(value); + onChanged(); + } else { + groundingChunksBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of supporting references retrieved from specified grounding source.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5; + */ + public Builder addGroundingChunks( + int index, com.google.cloud.aiplatform.v1beta1.GroundingChunk value) { + if (groundingChunksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroundingChunksIsMutable(); + groundingChunks_.add(index, value); + onChanged(); + } else { + groundingChunksBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of supporting references retrieved from specified grounding source.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5; + */ + public Builder addGroundingChunks( + com.google.cloud.aiplatform.v1beta1.GroundingChunk.Builder builderForValue) { + if (groundingChunksBuilder_ == null) { + ensureGroundingChunksIsMutable(); + groundingChunks_.add(builderForValue.build()); + onChanged(); + } else { + groundingChunksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of supporting references retrieved from specified grounding source.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5; + */ + public Builder addGroundingChunks( + int index, com.google.cloud.aiplatform.v1beta1.GroundingChunk.Builder builderForValue) { + if (groundingChunksBuilder_ == null) { + ensureGroundingChunksIsMutable(); + groundingChunks_.add(index, builderForValue.build()); + onChanged(); + } else { + groundingChunksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of supporting references retrieved from specified grounding source.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5; + */ + public Builder addAllGroundingChunks( + java.lang.Iterable values) { + if (groundingChunksBuilder_ == null) { + ensureGroundingChunksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groundingChunks_); + onChanged(); + } else { + groundingChunksBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of supporting references retrieved from specified grounding source.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5; + */ + public Builder clearGroundingChunks() { + if (groundingChunksBuilder_ == null) { + groundingChunks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + groundingChunksBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of supporting references retrieved from specified grounding source.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5; + */ + public Builder removeGroundingChunks(int index) { + if (groundingChunksBuilder_ == null) { + ensureGroundingChunksIsMutable(); + groundingChunks_.remove(index); + onChanged(); + } else { + groundingChunksBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of supporting references retrieved from specified grounding source.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5; + */ + public com.google.cloud.aiplatform.v1beta1.GroundingChunk.Builder getGroundingChunksBuilder( + int index) { + return getGroundingChunksFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of supporting references retrieved from specified grounding source.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5; + */ + public com.google.cloud.aiplatform.v1beta1.GroundingChunkOrBuilder getGroundingChunksOrBuilder( + int index) { + if (groundingChunksBuilder_ == null) { + return groundingChunks_.get(index); + } else { + return groundingChunksBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of supporting references retrieved from specified grounding source.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5; + */ + public java.util.List + getGroundingChunksOrBuilderList() { + if (groundingChunksBuilder_ != null) { + return groundingChunksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(groundingChunks_); + } + } + /** + * + * + *
+     * List of supporting references retrieved from specified grounding source.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5; + */ + public com.google.cloud.aiplatform.v1beta1.GroundingChunk.Builder addGroundingChunksBuilder() { + return getGroundingChunksFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.GroundingChunk.getDefaultInstance()); + } + /** + * + * + *
+     * List of supporting references retrieved from specified grounding source.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5; + */ + public com.google.cloud.aiplatform.v1beta1.GroundingChunk.Builder addGroundingChunksBuilder( + int index) { + return getGroundingChunksFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1beta1.GroundingChunk.getDefaultInstance()); + } + /** + * + * + *
+     * List of supporting references retrieved from specified grounding source.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5; + */ + public java.util.List + getGroundingChunksBuilderList() { + return getGroundingChunksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GroundingChunk, + com.google.cloud.aiplatform.v1beta1.GroundingChunk.Builder, + com.google.cloud.aiplatform.v1beta1.GroundingChunkOrBuilder> + getGroundingChunksFieldBuilder() { + if (groundingChunksBuilder_ == null) { + groundingChunksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GroundingChunk, + com.google.cloud.aiplatform.v1beta1.GroundingChunk.Builder, + com.google.cloud.aiplatform.v1beta1.GroundingChunkOrBuilder>( + groundingChunks_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + groundingChunks_ = null; + } + return groundingChunksBuilder_; + } + + private java.util.List + groundingSupports_ = java.util.Collections.emptyList(); + + private void ensureGroundingSupportsIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + groundingSupports_ = + new java.util.ArrayList( + groundingSupports_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GroundingSupport, + com.google.cloud.aiplatform.v1beta1.GroundingSupport.Builder, + com.google.cloud.aiplatform.v1beta1.GroundingSupportOrBuilder> + groundingSupportsBuilder_; + + /** + * + * + *
+     * Optional. List of grounding support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getGroundingSupportsList() { + if (groundingSupportsBuilder_ == null) { + return java.util.Collections.unmodifiableList(groundingSupports_); + } else { + return groundingSupportsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional. List of grounding support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getGroundingSupportsCount() { + if (groundingSupportsBuilder_ == null) { + return groundingSupports_.size(); + } else { + return groundingSupportsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional. List of grounding support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.GroundingSupport getGroundingSupports(int index) { + if (groundingSupportsBuilder_ == null) { + return groundingSupports_.get(index); + } else { + return groundingSupportsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional. List of grounding support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGroundingSupports( + int index, com.google.cloud.aiplatform.v1beta1.GroundingSupport value) { + if (groundingSupportsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroundingSupportsIsMutable(); + groundingSupports_.set(index, value); + onChanged(); + } else { + groundingSupportsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. List of grounding support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGroundingSupports( + int index, com.google.cloud.aiplatform.v1beta1.GroundingSupport.Builder builderForValue) { + if (groundingSupportsBuilder_ == null) { + ensureGroundingSupportsIsMutable(); + groundingSupports_.set(index, builderForValue.build()); + onChanged(); + } else { + groundingSupportsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. List of grounding support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addGroundingSupports( + com.google.cloud.aiplatform.v1beta1.GroundingSupport value) { + if (groundingSupportsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroundingSupportsIsMutable(); + groundingSupports_.add(value); + onChanged(); + } else { + groundingSupportsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional. List of grounding support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addGroundingSupports( + int index, com.google.cloud.aiplatform.v1beta1.GroundingSupport value) { + if (groundingSupportsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroundingSupportsIsMutable(); + groundingSupports_.add(index, value); + onChanged(); + } else { + groundingSupportsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. List of grounding support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addGroundingSupports( + com.google.cloud.aiplatform.v1beta1.GroundingSupport.Builder builderForValue) { + if (groundingSupportsBuilder_ == null) { + ensureGroundingSupportsIsMutable(); + groundingSupports_.add(builderForValue.build()); + onChanged(); + } else { + groundingSupportsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. List of grounding support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addGroundingSupports( + int index, com.google.cloud.aiplatform.v1beta1.GroundingSupport.Builder builderForValue) { + if (groundingSupportsBuilder_ == null) { + ensureGroundingSupportsIsMutable(); + groundingSupports_.add(index, builderForValue.build()); + onChanged(); + } else { + groundingSupportsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. List of grounding support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllGroundingSupports( + java.lang.Iterable values) { + if (groundingSupportsBuilder_ == null) { + ensureGroundingSupportsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groundingSupports_); + onChanged(); + } else { + groundingSupportsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional. List of grounding support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearGroundingSupports() { + if (groundingSupportsBuilder_ == null) { + groundingSupports_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + groundingSupportsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. List of grounding support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeGroundingSupports(int index) { + if (groundingSupportsBuilder_ == null) { + ensureGroundingSupportsIsMutable(); + groundingSupports_.remove(index); + onChanged(); + } else { + groundingSupportsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional. List of grounding support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.GroundingSupport.Builder getGroundingSupportsBuilder( + int index) { + return getGroundingSupportsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional. List of grounding support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.GroundingSupportOrBuilder + getGroundingSupportsOrBuilder(int index) { + if (groundingSupportsBuilder_ == null) { + return groundingSupports_.get(index); + } else { + return groundingSupportsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional. List of grounding support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getGroundingSupportsOrBuilderList() { + if (groundingSupportsBuilder_ != null) { + return groundingSupportsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(groundingSupports_); + } + } + /** + * + * + *
+     * Optional. List of grounding support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.GroundingSupport.Builder + addGroundingSupportsBuilder() { + return getGroundingSupportsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.GroundingSupport.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. List of grounding support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.GroundingSupport.Builder addGroundingSupportsBuilder( + int index) { + return getGroundingSupportsFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1beta1.GroundingSupport.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. List of grounding support.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getGroundingSupportsBuilderList() { + return getGroundingSupportsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GroundingSupport, + com.google.cloud.aiplatform.v1beta1.GroundingSupport.Builder, + com.google.cloud.aiplatform.v1beta1.GroundingSupportOrBuilder> + getGroundingSupportsFieldBuilder() { + if (groundingSupportsBuilder_ == null) { + groundingSupportsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GroundingSupport, + com.google.cloud.aiplatform.v1beta1.GroundingSupport.Builder, + com.google.cloud.aiplatform.v1beta1.GroundingSupportOrBuilder>( + groundingSupports_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); + groundingSupports_ = null; + } + return groundingSupportsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GroundingMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GroundingMetadataOrBuilder.java index 45814fac9375..c459e3d6dbdc 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GroundingMetadataOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GroundingMetadataOrBuilder.java @@ -230,4 +230,120 @@ public interface GroundingMetadataOrBuilder */ com.google.cloud.aiplatform.v1beta1.GroundingAttributionOrBuilder getGroundingAttributionsOrBuilder(int index); + + /** + * + * + *
+   * List of supporting references retrieved from specified grounding source.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5; + */ + java.util.List getGroundingChunksList(); + /** + * + * + *
+   * List of supporting references retrieved from specified grounding source.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5; + */ + com.google.cloud.aiplatform.v1beta1.GroundingChunk getGroundingChunks(int index); + /** + * + * + *
+   * List of supporting references retrieved from specified grounding source.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5; + */ + int getGroundingChunksCount(); + /** + * + * + *
+   * List of supporting references retrieved from specified grounding source.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5; + */ + java.util.List + getGroundingChunksOrBuilderList(); + /** + * + * + *
+   * List of supporting references retrieved from specified grounding source.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1beta1.GroundingChunk grounding_chunks = 5; + */ + com.google.cloud.aiplatform.v1beta1.GroundingChunkOrBuilder getGroundingChunksOrBuilder( + int index); + + /** + * + * + *
+   * Optional. List of grounding support.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getGroundingSupportsList(); + /** + * + * + *
+   * Optional. List of grounding support.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.GroundingSupport getGroundingSupports(int index); + /** + * + * + *
+   * Optional. List of grounding support.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getGroundingSupportsCount(); + /** + * + * + *
+   * Optional. List of grounding support.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getGroundingSupportsOrBuilderList(); + /** + * + * + *
+   * Optional. List of grounding support.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.GroundingSupport grounding_supports = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.GroundingSupportOrBuilder getGroundingSupportsOrBuilder( + int index); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GroundingSupport.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GroundingSupport.java new file mode 100644 index 000000000000..509424c60e9c --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GroundingSupport.java @@ -0,0 +1,1262 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/content.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Grounding support.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GroundingSupport} + */ +public final class GroundingSupport extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.GroundingSupport) + GroundingSupportOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroundingSupport.newBuilder() to construct. + private GroundingSupport(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GroundingSupport() { + groundingChunkIndices_ = emptyIntList(); + confidenceScores_ = emptyFloatList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GroundingSupport(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_GroundingSupport_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_GroundingSupport_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GroundingSupport.class, + com.google.cloud.aiplatform.v1beta1.GroundingSupport.Builder.class); + } + + private int bitField0_; + public static final int SEGMENT_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.Segment segment_; + /** + * + * + *
+   * Segment of the content this support belongs to.
+   * 
+ * + * optional .google.cloud.aiplatform.v1beta1.Segment segment = 1; + * + * @return Whether the segment field is set. + */ + @java.lang.Override + public boolean hasSegment() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Segment of the content this support belongs to.
+   * 
+ * + * optional .google.cloud.aiplatform.v1beta1.Segment segment = 1; + * + * @return The segment. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Segment getSegment() { + return segment_ == null + ? com.google.cloud.aiplatform.v1beta1.Segment.getDefaultInstance() + : segment_; + } + /** + * + * + *
+   * Segment of the content this support belongs to.
+   * 
+ * + * optional .google.cloud.aiplatform.v1beta1.Segment segment = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SegmentOrBuilder getSegmentOrBuilder() { + return segment_ == null + ? com.google.cloud.aiplatform.v1beta1.Segment.getDefaultInstance() + : segment_; + } + + public static final int GROUNDING_CHUNK_INDICES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList groundingChunkIndices_ = emptyIntList(); + /** + * + * + *
+   * A list of indices (into 'grounding_chunk') specifying the
+   * citations associated with the claim. For instance [1,3,4] means
+   * that grounding_chunk[1], grounding_chunk[3],
+   * grounding_chunk[4] are the retrieved content attributed to the claim.
+   * 
+ * + * repeated int32 grounding_chunk_indices = 2; + * + * @return A list containing the groundingChunkIndices. + */ + @java.lang.Override + public java.util.List getGroundingChunkIndicesList() { + return groundingChunkIndices_; + } + /** + * + * + *
+   * A list of indices (into 'grounding_chunk') specifying the
+   * citations associated with the claim. For instance [1,3,4] means
+   * that grounding_chunk[1], grounding_chunk[3],
+   * grounding_chunk[4] are the retrieved content attributed to the claim.
+   * 
+ * + * repeated int32 grounding_chunk_indices = 2; + * + * @return The count of groundingChunkIndices. + */ + public int getGroundingChunkIndicesCount() { + return groundingChunkIndices_.size(); + } + /** + * + * + *
+   * A list of indices (into 'grounding_chunk') specifying the
+   * citations associated with the claim. For instance [1,3,4] means
+   * that grounding_chunk[1], grounding_chunk[3],
+   * grounding_chunk[4] are the retrieved content attributed to the claim.
+   * 
+ * + * repeated int32 grounding_chunk_indices = 2; + * + * @param index The index of the element to return. + * @return The groundingChunkIndices at the given index. + */ + public int getGroundingChunkIndices(int index) { + return groundingChunkIndices_.getInt(index); + } + + private int groundingChunkIndicesMemoizedSerializedSize = -1; + + public static final int CONFIDENCE_SCORES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.FloatList confidenceScores_ = emptyFloatList(); + /** + * + * + *
+   * Confidence score of the support references. Ranges from 0 to 1. 1 is the
+   * most confident. This list must have the same size as the
+   * grounding_chunk_indices.
+   * 
+ * + * repeated float confidence_scores = 3; + * + * @return A list containing the confidenceScores. + */ + @java.lang.Override + public java.util.List getConfidenceScoresList() { + return confidenceScores_; + } + /** + * + * + *
+   * Confidence score of the support references. Ranges from 0 to 1. 1 is the
+   * most confident. This list must have the same size as the
+   * grounding_chunk_indices.
+   * 
+ * + * repeated float confidence_scores = 3; + * + * @return The count of confidenceScores. + */ + public int getConfidenceScoresCount() { + return confidenceScores_.size(); + } + /** + * + * + *
+   * Confidence score of the support references. Ranges from 0 to 1. 1 is the
+   * most confident. This list must have the same size as the
+   * grounding_chunk_indices.
+   * 
+ * + * repeated float confidence_scores = 3; + * + * @param index The index of the element to return. + * @return The confidenceScores at the given index. + */ + public float getConfidenceScores(int index) { + return confidenceScores_.getFloat(index); + } + + private int confidenceScoresMemoizedSerializedSize = -1; + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getSegment()); + } + if (getGroundingChunkIndicesList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(groundingChunkIndicesMemoizedSerializedSize); + } + for (int i = 0; i < groundingChunkIndices_.size(); i++) { + output.writeInt32NoTag(groundingChunkIndices_.getInt(i)); + } + if (getConfidenceScoresList().size() > 0) { + output.writeUInt32NoTag(26); + output.writeUInt32NoTag(confidenceScoresMemoizedSerializedSize); + } + for (int i = 0; i < confidenceScores_.size(); i++) { + output.writeFloatNoTag(confidenceScores_.getFloat(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSegment()); + } + { + int dataSize = 0; + for (int i = 0; i < groundingChunkIndices_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag( + groundingChunkIndices_.getInt(i)); + } + size += dataSize; + if (!getGroundingChunkIndicesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + groundingChunkIndicesMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + dataSize = 4 * getConfidenceScoresList().size(); + size += dataSize; + if (!getConfidenceScoresList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + confidenceScoresMemoizedSerializedSize = dataSize; + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.GroundingSupport)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.GroundingSupport other = + (com.google.cloud.aiplatform.v1beta1.GroundingSupport) obj; + + if (hasSegment() != other.hasSegment()) return false; + if (hasSegment()) { + if (!getSegment().equals(other.getSegment())) return false; + } + if (!getGroundingChunkIndicesList().equals(other.getGroundingChunkIndicesList())) return false; + if (!getConfidenceScoresList().equals(other.getConfidenceScoresList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSegment()) { + hash = (37 * hash) + SEGMENT_FIELD_NUMBER; + hash = (53 * hash) + getSegment().hashCode(); + } + if (getGroundingChunkIndicesCount() > 0) { + hash = (37 * hash) + GROUNDING_CHUNK_INDICES_FIELD_NUMBER; + hash = (53 * hash) + getGroundingChunkIndicesList().hashCode(); + } + if (getConfidenceScoresCount() > 0) { + hash = (37 * hash) + CONFIDENCE_SCORES_FIELD_NUMBER; + hash = (53 * hash) + getConfidenceScoresList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.GroundingSupport parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GroundingSupport parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GroundingSupport parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GroundingSupport parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GroundingSupport parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GroundingSupport parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GroundingSupport parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GroundingSupport parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GroundingSupport parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GroundingSupport parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GroundingSupport parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GroundingSupport parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1beta1.GroundingSupport prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Grounding support.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GroundingSupport} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.GroundingSupport) + com.google.cloud.aiplatform.v1beta1.GroundingSupportOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_GroundingSupport_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_GroundingSupport_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GroundingSupport.class, + com.google.cloud.aiplatform.v1beta1.GroundingSupport.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.GroundingSupport.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSegmentFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + segment_ = null; + if (segmentBuilder_ != null) { + segmentBuilder_.dispose(); + segmentBuilder_ = null; + } + groundingChunkIndices_ = emptyIntList(); + confidenceScores_ = emptyFloatList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_GroundingSupport_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GroundingSupport getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.GroundingSupport.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GroundingSupport build() { + com.google.cloud.aiplatform.v1beta1.GroundingSupport result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GroundingSupport buildPartial() { + com.google.cloud.aiplatform.v1beta1.GroundingSupport result = + new com.google.cloud.aiplatform.v1beta1.GroundingSupport(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.GroundingSupport result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.segment_ = segmentBuilder_ == null ? segment_ : segmentBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + groundingChunkIndices_.makeImmutable(); + result.groundingChunkIndices_ = groundingChunkIndices_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + confidenceScores_.makeImmutable(); + result.confidenceScores_ = confidenceScores_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.GroundingSupport) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.GroundingSupport) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GroundingSupport other) { + if (other == com.google.cloud.aiplatform.v1beta1.GroundingSupport.getDefaultInstance()) + return this; + if (other.hasSegment()) { + mergeSegment(other.getSegment()); + } + if (!other.groundingChunkIndices_.isEmpty()) { + if (groundingChunkIndices_.isEmpty()) { + groundingChunkIndices_ = other.groundingChunkIndices_; + groundingChunkIndices_.makeImmutable(); + bitField0_ |= 0x00000002; + } else { + ensureGroundingChunkIndicesIsMutable(); + groundingChunkIndices_.addAll(other.groundingChunkIndices_); + } + onChanged(); + } + if (!other.confidenceScores_.isEmpty()) { + if (confidenceScores_.isEmpty()) { + confidenceScores_ = other.confidenceScores_; + confidenceScores_.makeImmutable(); + bitField0_ |= 0x00000004; + } else { + ensureConfidenceScoresIsMutable(); + confidenceScores_.addAll(other.confidenceScores_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getSegmentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + int v = input.readInt32(); + ensureGroundingChunkIndicesIsMutable(); + groundingChunkIndices_.addInt(v); + break; + } // case 16 + case 18: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureGroundingChunkIndicesIsMutable(); + while (input.getBytesUntilLimit() > 0) { + groundingChunkIndices_.addInt(input.readInt32()); + } + input.popLimit(limit); + break; + } // case 18 + case 29: + { + float v = input.readFloat(); + ensureConfidenceScoresIsMutable(); + confidenceScores_.addFloat(v); + break; + } // case 29 + case 26: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + int alloc = length > 4096 ? 4096 : length; + ensureConfidenceScoresIsMutable(alloc / 4); + while (input.getBytesUntilLimit() > 0) { + confidenceScores_.addFloat(input.readFloat()); + } + input.popLimit(limit); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.aiplatform.v1beta1.Segment segment_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Segment, + com.google.cloud.aiplatform.v1beta1.Segment.Builder, + com.google.cloud.aiplatform.v1beta1.SegmentOrBuilder> + segmentBuilder_; + /** + * + * + *
+     * Segment of the content this support belongs to.
+     * 
+ * + * optional .google.cloud.aiplatform.v1beta1.Segment segment = 1; + * + * @return Whether the segment field is set. + */ + public boolean hasSegment() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Segment of the content this support belongs to.
+     * 
+ * + * optional .google.cloud.aiplatform.v1beta1.Segment segment = 1; + * + * @return The segment. + */ + public com.google.cloud.aiplatform.v1beta1.Segment getSegment() { + if (segmentBuilder_ == null) { + return segment_ == null + ? com.google.cloud.aiplatform.v1beta1.Segment.getDefaultInstance() + : segment_; + } else { + return segmentBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Segment of the content this support belongs to.
+     * 
+ * + * optional .google.cloud.aiplatform.v1beta1.Segment segment = 1; + */ + public Builder setSegment(com.google.cloud.aiplatform.v1beta1.Segment value) { + if (segmentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + segment_ = value; + } else { + segmentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Segment of the content this support belongs to.
+     * 
+ * + * optional .google.cloud.aiplatform.v1beta1.Segment segment = 1; + */ + public Builder setSegment(com.google.cloud.aiplatform.v1beta1.Segment.Builder builderForValue) { + if (segmentBuilder_ == null) { + segment_ = builderForValue.build(); + } else { + segmentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Segment of the content this support belongs to.
+     * 
+ * + * optional .google.cloud.aiplatform.v1beta1.Segment segment = 1; + */ + public Builder mergeSegment(com.google.cloud.aiplatform.v1beta1.Segment value) { + if (segmentBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && segment_ != null + && segment_ != com.google.cloud.aiplatform.v1beta1.Segment.getDefaultInstance()) { + getSegmentBuilder().mergeFrom(value); + } else { + segment_ = value; + } + } else { + segmentBuilder_.mergeFrom(value); + } + if (segment_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Segment of the content this support belongs to.
+     * 
+ * + * optional .google.cloud.aiplatform.v1beta1.Segment segment = 1; + */ + public Builder clearSegment() { + bitField0_ = (bitField0_ & ~0x00000001); + segment_ = null; + if (segmentBuilder_ != null) { + segmentBuilder_.dispose(); + segmentBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Segment of the content this support belongs to.
+     * 
+ * + * optional .google.cloud.aiplatform.v1beta1.Segment segment = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Segment.Builder getSegmentBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getSegmentFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Segment of the content this support belongs to.
+     * 
+ * + * optional .google.cloud.aiplatform.v1beta1.Segment segment = 1; + */ + public com.google.cloud.aiplatform.v1beta1.SegmentOrBuilder getSegmentOrBuilder() { + if (segmentBuilder_ != null) { + return segmentBuilder_.getMessageOrBuilder(); + } else { + return segment_ == null + ? com.google.cloud.aiplatform.v1beta1.Segment.getDefaultInstance() + : segment_; + } + } + /** + * + * + *
+     * Segment of the content this support belongs to.
+     * 
+ * + * optional .google.cloud.aiplatform.v1beta1.Segment segment = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Segment, + com.google.cloud.aiplatform.v1beta1.Segment.Builder, + com.google.cloud.aiplatform.v1beta1.SegmentOrBuilder> + getSegmentFieldBuilder() { + if (segmentBuilder_ == null) { + segmentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Segment, + com.google.cloud.aiplatform.v1beta1.Segment.Builder, + com.google.cloud.aiplatform.v1beta1.SegmentOrBuilder>( + getSegment(), getParentForChildren(), isClean()); + segment_ = null; + } + return segmentBuilder_; + } + + private com.google.protobuf.Internal.IntList groundingChunkIndices_ = emptyIntList(); + + private void ensureGroundingChunkIndicesIsMutable() { + if (!groundingChunkIndices_.isModifiable()) { + groundingChunkIndices_ = makeMutableCopy(groundingChunkIndices_); + } + bitField0_ |= 0x00000002; + } + /** + * + * + *
+     * A list of indices (into 'grounding_chunk') specifying the
+     * citations associated with the claim. For instance [1,3,4] means
+     * that grounding_chunk[1], grounding_chunk[3],
+     * grounding_chunk[4] are the retrieved content attributed to the claim.
+     * 
+ * + * repeated int32 grounding_chunk_indices = 2; + * + * @return A list containing the groundingChunkIndices. + */ + public java.util.List getGroundingChunkIndicesList() { + groundingChunkIndices_.makeImmutable(); + return groundingChunkIndices_; + } + /** + * + * + *
+     * A list of indices (into 'grounding_chunk') specifying the
+     * citations associated with the claim. For instance [1,3,4] means
+     * that grounding_chunk[1], grounding_chunk[3],
+     * grounding_chunk[4] are the retrieved content attributed to the claim.
+     * 
+ * + * repeated int32 grounding_chunk_indices = 2; + * + * @return The count of groundingChunkIndices. + */ + public int getGroundingChunkIndicesCount() { + return groundingChunkIndices_.size(); + } + /** + * + * + *
+     * A list of indices (into 'grounding_chunk') specifying the
+     * citations associated with the claim. For instance [1,3,4] means
+     * that grounding_chunk[1], grounding_chunk[3],
+     * grounding_chunk[4] are the retrieved content attributed to the claim.
+     * 
+ * + * repeated int32 grounding_chunk_indices = 2; + * + * @param index The index of the element to return. + * @return The groundingChunkIndices at the given index. + */ + public int getGroundingChunkIndices(int index) { + return groundingChunkIndices_.getInt(index); + } + /** + * + * + *
+     * A list of indices (into 'grounding_chunk') specifying the
+     * citations associated with the claim. For instance [1,3,4] means
+     * that grounding_chunk[1], grounding_chunk[3],
+     * grounding_chunk[4] are the retrieved content attributed to the claim.
+     * 
+ * + * repeated int32 grounding_chunk_indices = 2; + * + * @param index The index to set the value at. + * @param value The groundingChunkIndices to set. + * @return This builder for chaining. + */ + public Builder setGroundingChunkIndices(int index, int value) { + + ensureGroundingChunkIndicesIsMutable(); + groundingChunkIndices_.setInt(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A list of indices (into 'grounding_chunk') specifying the
+     * citations associated with the claim. For instance [1,3,4] means
+     * that grounding_chunk[1], grounding_chunk[3],
+     * grounding_chunk[4] are the retrieved content attributed to the claim.
+     * 
+ * + * repeated int32 grounding_chunk_indices = 2; + * + * @param value The groundingChunkIndices to add. + * @return This builder for chaining. + */ + public Builder addGroundingChunkIndices(int value) { + + ensureGroundingChunkIndicesIsMutable(); + groundingChunkIndices_.addInt(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A list of indices (into 'grounding_chunk') specifying the
+     * citations associated with the claim. For instance [1,3,4] means
+     * that grounding_chunk[1], grounding_chunk[3],
+     * grounding_chunk[4] are the retrieved content attributed to the claim.
+     * 
+ * + * repeated int32 grounding_chunk_indices = 2; + * + * @param values The groundingChunkIndices to add. + * @return This builder for chaining. + */ + public Builder addAllGroundingChunkIndices( + java.lang.Iterable values) { + ensureGroundingChunkIndicesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groundingChunkIndices_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A list of indices (into 'grounding_chunk') specifying the
+     * citations associated with the claim. For instance [1,3,4] means
+     * that grounding_chunk[1], grounding_chunk[3],
+     * grounding_chunk[4] are the retrieved content attributed to the claim.
+     * 
+ * + * repeated int32 grounding_chunk_indices = 2; + * + * @return This builder for chaining. + */ + public Builder clearGroundingChunkIndices() { + groundingChunkIndices_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + private com.google.protobuf.Internal.FloatList confidenceScores_ = emptyFloatList(); + + private void ensureConfidenceScoresIsMutable() { + if (!confidenceScores_.isModifiable()) { + confidenceScores_ = makeMutableCopy(confidenceScores_); + } + bitField0_ |= 0x00000004; + } + + private void ensureConfidenceScoresIsMutable(int capacity) { + if (!confidenceScores_.isModifiable()) { + confidenceScores_ = makeMutableCopy(confidenceScores_, capacity); + } + bitField0_ |= 0x00000004; + } + /** + * + * + *
+     * Confidence score of the support references. Ranges from 0 to 1. 1 is the
+     * most confident. This list must have the same size as the
+     * grounding_chunk_indices.
+     * 
+ * + * repeated float confidence_scores = 3; + * + * @return A list containing the confidenceScores. + */ + public java.util.List getConfidenceScoresList() { + confidenceScores_.makeImmutable(); + return confidenceScores_; + } + /** + * + * + *
+     * Confidence score of the support references. Ranges from 0 to 1. 1 is the
+     * most confident. This list must have the same size as the
+     * grounding_chunk_indices.
+     * 
+ * + * repeated float confidence_scores = 3; + * + * @return The count of confidenceScores. + */ + public int getConfidenceScoresCount() { + return confidenceScores_.size(); + } + /** + * + * + *
+     * Confidence score of the support references. Ranges from 0 to 1. 1 is the
+     * most confident. This list must have the same size as the
+     * grounding_chunk_indices.
+     * 
+ * + * repeated float confidence_scores = 3; + * + * @param index The index of the element to return. + * @return The confidenceScores at the given index. + */ + public float getConfidenceScores(int index) { + return confidenceScores_.getFloat(index); + } + /** + * + * + *
+     * Confidence score of the support references. Ranges from 0 to 1. 1 is the
+     * most confident. This list must have the same size as the
+     * grounding_chunk_indices.
+     * 
+ * + * repeated float confidence_scores = 3; + * + * @param index The index to set the value at. + * @param value The confidenceScores to set. + * @return This builder for chaining. + */ + public Builder setConfidenceScores(int index, float value) { + + ensureConfidenceScoresIsMutable(); + confidenceScores_.setFloat(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Confidence score of the support references. Ranges from 0 to 1. 1 is the
+     * most confident. This list must have the same size as the
+     * grounding_chunk_indices.
+     * 
+ * + * repeated float confidence_scores = 3; + * + * @param value The confidenceScores to add. + * @return This builder for chaining. + */ + public Builder addConfidenceScores(float value) { + + ensureConfidenceScoresIsMutable(); + confidenceScores_.addFloat(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Confidence score of the support references. Ranges from 0 to 1. 1 is the
+     * most confident. This list must have the same size as the
+     * grounding_chunk_indices.
+     * 
+ * + * repeated float confidence_scores = 3; + * + * @param values The confidenceScores to add. + * @return This builder for chaining. + */ + public Builder addAllConfidenceScores(java.lang.Iterable values) { + ensureConfidenceScoresIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, confidenceScores_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Confidence score of the support references. Ranges from 0 to 1. 1 is the
+     * most confident. This list must have the same size as the
+     * grounding_chunk_indices.
+     * 
+ * + * repeated float confidence_scores = 3; + * + * @return This builder for chaining. + */ + public Builder clearConfidenceScores() { + confidenceScores_ = emptyFloatList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.GroundingSupport) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.GroundingSupport) + private static final com.google.cloud.aiplatform.v1beta1.GroundingSupport DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.GroundingSupport(); + } + + public static com.google.cloud.aiplatform.v1beta1.GroundingSupport getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroundingSupport parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GroundingSupport getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GroundingSupportOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GroundingSupportOrBuilder.java new file mode 100644 index 000000000000..f59de6bc28c8 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GroundingSupportOrBuilder.java @@ -0,0 +1,152 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/content.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1beta1; + +public interface GroundingSupportOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.GroundingSupport) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Segment of the content this support belongs to.
+   * 
+ * + * optional .google.cloud.aiplatform.v1beta1.Segment segment = 1; + * + * @return Whether the segment field is set. + */ + boolean hasSegment(); + /** + * + * + *
+   * Segment of the content this support belongs to.
+   * 
+ * + * optional .google.cloud.aiplatform.v1beta1.Segment segment = 1; + * + * @return The segment. + */ + com.google.cloud.aiplatform.v1beta1.Segment getSegment(); + /** + * + * + *
+   * Segment of the content this support belongs to.
+   * 
+ * + * optional .google.cloud.aiplatform.v1beta1.Segment segment = 1; + */ + com.google.cloud.aiplatform.v1beta1.SegmentOrBuilder getSegmentOrBuilder(); + + /** + * + * + *
+   * A list of indices (into 'grounding_chunk') specifying the
+   * citations associated with the claim. For instance [1,3,4] means
+   * that grounding_chunk[1], grounding_chunk[3],
+   * grounding_chunk[4] are the retrieved content attributed to the claim.
+   * 
+ * + * repeated int32 grounding_chunk_indices = 2; + * + * @return A list containing the groundingChunkIndices. + */ + java.util.List getGroundingChunkIndicesList(); + /** + * + * + *
+   * A list of indices (into 'grounding_chunk') specifying the
+   * citations associated with the claim. For instance [1,3,4] means
+   * that grounding_chunk[1], grounding_chunk[3],
+   * grounding_chunk[4] are the retrieved content attributed to the claim.
+   * 
+ * + * repeated int32 grounding_chunk_indices = 2; + * + * @return The count of groundingChunkIndices. + */ + int getGroundingChunkIndicesCount(); + /** + * + * + *
+   * A list of indices (into 'grounding_chunk') specifying the
+   * citations associated with the claim. For instance [1,3,4] means
+   * that grounding_chunk[1], grounding_chunk[3],
+   * grounding_chunk[4] are the retrieved content attributed to the claim.
+   * 
+ * + * repeated int32 grounding_chunk_indices = 2; + * + * @param index The index of the element to return. + * @return The groundingChunkIndices at the given index. + */ + int getGroundingChunkIndices(int index); + + /** + * + * + *
+   * Confidence score of the support references. Ranges from 0 to 1. 1 is the
+   * most confident. This list must have the same size as the
+   * grounding_chunk_indices.
+   * 
+ * + * repeated float confidence_scores = 3; + * + * @return A list containing the confidenceScores. + */ + java.util.List getConfidenceScoresList(); + /** + * + * + *
+   * Confidence score of the support references. Ranges from 0 to 1. 1 is the
+   * most confident. This list must have the same size as the
+   * grounding_chunk_indices.
+   * 
+ * + * repeated float confidence_scores = 3; + * + * @return The count of confidenceScores. + */ + int getConfidenceScoresCount(); + /** + * + * + *
+   * Confidence score of the support references. Ranges from 0 to 1. 1 is the
+   * most confident. This list must have the same size as the
+   * grounding_chunk_indices.
+   * 
+ * + * repeated float confidence_scores = 3; + * + * @param index The index of the element to return. + * @return The confidenceScores at the given index. + */ + float getConfidenceScores(int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringStatsDataPoint.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringStatsDataPoint.java index 970edb175742..747aaf4705e2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringStatsDataPoint.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelMonitoringStatsDataPoint.java @@ -195,7 +195,8 @@ public interface DistributionDataValueOrBuilder * * *
-       * tensorflow.metadata.v0.DatasetFeatureStatistics format.
+       * Predictive monitoring drift distribution in
+       * `tensorflow.metadata.v0.DatasetFeatureStatistics` format.
        * 
* * .google.protobuf.Value distribution = 1; @@ -207,7 +208,8 @@ public interface DistributionDataValueOrBuilder * * *
-       * tensorflow.metadata.v0.DatasetFeatureStatistics format.
+       * Predictive monitoring drift distribution in
+       * `tensorflow.metadata.v0.DatasetFeatureStatistics` format.
        * 
* * .google.protobuf.Value distribution = 1; @@ -219,7 +221,8 @@ public interface DistributionDataValueOrBuilder * * *
-       * tensorflow.metadata.v0.DatasetFeatureStatistics format.
+       * Predictive monitoring drift distribution in
+       * `tensorflow.metadata.v0.DatasetFeatureStatistics` format.
        * 
* * .google.protobuf.Value distribution = 1; @@ -296,7 +299,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-       * tensorflow.metadata.v0.DatasetFeatureStatistics format.
+       * Predictive monitoring drift distribution in
+       * `tensorflow.metadata.v0.DatasetFeatureStatistics` format.
        * 
* * .google.protobuf.Value distribution = 1; @@ -311,7 +315,8 @@ public boolean hasDistribution() { * * *
-       * tensorflow.metadata.v0.DatasetFeatureStatistics format.
+       * Predictive monitoring drift distribution in
+       * `tensorflow.metadata.v0.DatasetFeatureStatistics` format.
        * 
* * .google.protobuf.Value distribution = 1; @@ -328,7 +333,8 @@ public com.google.protobuf.Value getDistribution() { * * *
-       * tensorflow.metadata.v0.DatasetFeatureStatistics format.
+       * Predictive monitoring drift distribution in
+       * `tensorflow.metadata.v0.DatasetFeatureStatistics` format.
        * 
* * .google.protobuf.Value distribution = 1; @@ -827,7 +833,8 @@ public Builder mergeFrom( * * *
-         * tensorflow.metadata.v0.DatasetFeatureStatistics format.
+         * Predictive monitoring drift distribution in
+         * `tensorflow.metadata.v0.DatasetFeatureStatistics` format.
          * 
* * .google.protobuf.Value distribution = 1; @@ -841,7 +848,8 @@ public boolean hasDistribution() { * * *
-         * tensorflow.metadata.v0.DatasetFeatureStatistics format.
+         * Predictive monitoring drift distribution in
+         * `tensorflow.metadata.v0.DatasetFeatureStatistics` format.
          * 
* * .google.protobuf.Value distribution = 1; @@ -861,7 +869,8 @@ public com.google.protobuf.Value getDistribution() { * * *
-         * tensorflow.metadata.v0.DatasetFeatureStatistics format.
+         * Predictive monitoring drift distribution in
+         * `tensorflow.metadata.v0.DatasetFeatureStatistics` format.
          * 
* * .google.protobuf.Value distribution = 1; @@ -883,7 +892,8 @@ public Builder setDistribution(com.google.protobuf.Value value) { * * *
-         * tensorflow.metadata.v0.DatasetFeatureStatistics format.
+         * Predictive monitoring drift distribution in
+         * `tensorflow.metadata.v0.DatasetFeatureStatistics` format.
          * 
* * .google.protobuf.Value distribution = 1; @@ -902,7 +912,8 @@ public Builder setDistribution(com.google.protobuf.Value.Builder builderForValue * * *
-         * tensorflow.metadata.v0.DatasetFeatureStatistics format.
+         * Predictive monitoring drift distribution in
+         * `tensorflow.metadata.v0.DatasetFeatureStatistics` format.
          * 
* * .google.protobuf.Value distribution = 1; @@ -929,7 +940,8 @@ public Builder mergeDistribution(com.google.protobuf.Value value) { * * *
-         * tensorflow.metadata.v0.DatasetFeatureStatistics format.
+         * Predictive monitoring drift distribution in
+         * `tensorflow.metadata.v0.DatasetFeatureStatistics` format.
          * 
* * .google.protobuf.Value distribution = 1; @@ -948,7 +960,8 @@ public Builder clearDistribution() { * * *
-         * tensorflow.metadata.v0.DatasetFeatureStatistics format.
+         * Predictive monitoring drift distribution in
+         * `tensorflow.metadata.v0.DatasetFeatureStatistics` format.
          * 
* * .google.protobuf.Value distribution = 1; @@ -962,7 +975,8 @@ public com.google.protobuf.Value.Builder getDistributionBuilder() { * * *
-         * tensorflow.metadata.v0.DatasetFeatureStatistics format.
+         * Predictive monitoring drift distribution in
+         * `tensorflow.metadata.v0.DatasetFeatureStatistics` format.
          * 
* * .google.protobuf.Value distribution = 1; @@ -980,7 +994,8 @@ public com.google.protobuf.ValueOrBuilder getDistributionOrBuilder() { * * *
-         * tensorflow.metadata.v0.DatasetFeatureStatistics format.
+         * Predictive monitoring drift distribution in
+         * `tensorflow.metadata.v0.DatasetFeatureStatistics` format.
          * 
* * .google.protobuf.Value distribution = 1; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceProto.java index 0c9b7848a108..46a4ec4010fc 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PredictionServiceProto.java @@ -40,6 +40,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_RawPredictRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_RawPredictRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_StreamRawPredictRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_StreamRawPredictRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_DirectPredictRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -170,212 +174,223 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "A\003\"z\n\021RawPredictRequest\022<\n\010endpoint\030\001 \001(" + "\tB*\340A\002\372A$\n\"aiplatform.googleapis.com/End" + "point\022\'\n\thttp_body\030\002 \001(\0132\024.google.api.Ht" - + "tpBody\"\312\001\n\024DirectPredictRequest\022<\n\010endpo" - + "int\030\001 \001(\tB*\340A\002\372A$\n\"aiplatform.googleapis" - + ".com/Endpoint\0227\n\006inputs\030\002 \003(\0132\'.google.c" - + "loud.aiplatform.v1beta1.Tensor\022;\n\nparame" - + "ters\030\003 \001(\0132\'.google.cloud.aiplatform.v1b" - + "eta1.Tensor\"\216\001\n\025DirectPredictResponse\0228\n" - + "\007outputs\030\001 \003(\0132\'.google.cloud.aiplatform" - + ".v1beta1.Tensor\022;\n\nparameters\030\002 \001(\0132\'.go" - + "ogle.cloud.aiplatform.v1beta1.Tensor\"{\n\027" - + "DirectRawPredictRequest\022<\n\010endpoint\030\001 \001(" - + "\tB*\340A\002\372A$\n\"aiplatform.googleapis.com/End" - + "point\022\023\n\013method_name\030\002 \001(\t\022\r\n\005input\030\003 \001(" - + "\014\"*\n\030DirectRawPredictResponse\022\016\n\006output\030" - + "\001 \001(\014\"\332\001\n\032StreamDirectPredictRequest\022<\n\010" + + "tpBody\"\200\001\n\027StreamRawPredictRequest\022<\n\010en" + + "dpoint\030\001 \001(\tB*\340A\002\372A$\n\"aiplatform.googlea" + + "pis.com/Endpoint\022\'\n\thttp_body\030\002 \001(\0132\024.go" + + "ogle.api.HttpBody\"\312\001\n\024DirectPredictReque" + + "st\022<\n\010endpoint\030\001 \001(\tB*\340A\002\372A$\n\"aiplatform" + + ".googleapis.com/Endpoint\0227\n\006inputs\030\002 \003(\013" + + "2\'.google.cloud.aiplatform.v1beta1.Tenso" + + "r\022;\n\nparameters\030\003 \001(\0132\'.google.cloud.aip" + + "latform.v1beta1.Tensor\"\216\001\n\025DirectPredict" + + "Response\0228\n\007outputs\030\001 \003(\0132\'.google.cloud" + + ".aiplatform.v1beta1.Tensor\022;\n\nparameters" + + "\030\002 \001(\0132\'.google.cloud.aiplatform.v1beta1" + + ".Tensor\"{\n\027DirectRawPredictRequest\022<\n\010en" + + "dpoint\030\001 \001(\tB*\340A\002\372A$\n\"aiplatform.googlea" + + "pis.com/Endpoint\022\023\n\013method_name\030\002 \001(\t\022\r\n" + + "\005input\030\003 \001(\014\"*\n\030DirectRawPredictResponse" + + "\022\016\n\006output\030\001 \001(\014\"\332\001\n\032StreamDirectPredict" + + "Request\022<\n\010endpoint\030\001 \001(\tB*\340A\002\372A$\n\"aipla" + + "tform.googleapis.com/Endpoint\022<\n\006inputs\030" + + "\002 \003(\0132\'.google.cloud.aiplatform.v1beta1." + + "TensorB\003\340A\001\022@\n\nparameters\030\003 \001(\0132\'.google" + + ".cloud.aiplatform.v1beta1.TensorB\003\340A\001\"\224\001" + + "\n\033StreamDirectPredictResponse\0228\n\007outputs" + + "\030\001 \003(\0132\'.google.cloud.aiplatform.v1beta1" + + ".Tensor\022;\n\nparameters\030\002 \001(\0132\'.google.clo" + + "ud.aiplatform.v1beta1.Tensor\"\213\001\n\035StreamD" + + "irectRawPredictRequest\022<\n\010endpoint\030\001 \001(\t" + + "B*\340A\002\372A$\n\"aiplatform.googleapis.com/Endp" + + "oint\022\030\n\013method_name\030\002 \001(\tB\003\340A\001\022\022\n\005input\030" + + "\003 \001(\014B\003\340A\001\"0\n\036StreamDirectRawPredictResp" + + "onse\022\016\n\006output\030\001 \001(\014\"\315\001\n\027StreamingPredic" + + "tRequest\022<\n\010endpoint\030\001 \001(\tB*\340A\002\372A$\n\"aipl" + + "atform.googleapis.com/Endpoint\0227\n\006inputs" + + "\030\002 \003(\0132\'.google.cloud.aiplatform.v1beta1" + + ".Tensor\022;\n\nparameters\030\003 \001(\0132\'.google.clo" + + "ud.aiplatform.v1beta1.Tensor\"\221\001\n\030Streami" + + "ngPredictResponse\0228\n\007outputs\030\001 \003(\0132\'.goo" + + "gle.cloud.aiplatform.v1beta1.Tensor\022;\n\np" + + "arameters\030\002 \001(\0132\'.google.cloud.aiplatfor" + + "m.v1beta1.Tensor\"~\n\032StreamingRawPredictR" + + "equest\022<\n\010endpoint\030\001 \001(\tB*\340A\002\372A$\n\"aiplat" + + "form.googleapis.com/Endpoint\022\023\n\013method_n" + + "ame\030\002 \001(\t\022\r\n\005input\030\003 \001(\014\"-\n\033StreamingRaw" + + "PredictResponse\022\016\n\006output\030\001 \001(\014\"\263\004\n\016Expl" + + "ainRequest\022<\n\010endpoint\030\001 \001(\tB*\340A\002\372A$\n\"ai" + + "platform.googleapis.com/Endpoint\022.\n\tinst" + + "ances\030\002 \003(\0132\026.google.protobuf.ValueB\003\340A\002" + + "\022*\n\nparameters\030\004 \001(\0132\026.google.protobuf.V" + + "alue\022[\n\031explanation_spec_override\030\005 \001(\0132" + + "8.google.cloud.aiplatform.v1beta1.Explan" + + "ationSpecOverride\022\211\001\n$concurrent_explana" + + "tion_spec_override\030\006 \003(\0132V.google.cloud." + + "aiplatform.v1beta1.ExplainRequest.Concur" + + "rentExplanationSpecOverrideEntryB\003\340A\001\022\031\n" + + "\021deployed_model_id\030\003 \001(\t\032\202\001\n&ConcurrentE" + + "xplanationSpecOverrideEntry\022\013\n\003key\030\001 \001(\t" + + "\022G\n\005value\030\002 \001(\01328.google.cloud.aiplatfor" + + "m.v1beta1.ExplanationSpecOverride:\0028\001\"\361\003" + + "\n\017ExplainResponse\022B\n\014explanations\030\001 \003(\0132" + + ",.google.cloud.aiplatform.v1beta1.Explan" + + "ation\022m\n\027concurrent_explanations\030\004 \003(\0132L" + + ".google.cloud.aiplatform.v1beta1.Explain" + + "Response.ConcurrentExplanationsEntry\022\031\n\021" + + "deployed_model_id\030\002 \001(\t\022+\n\013predictions\030\003" + + " \003(\0132\026.google.protobuf.Value\032[\n\025Concurre" + + "ntExplanation\022B\n\014explanations\030\001 \003(\0132,.go" + + "ogle.cloud.aiplatform.v1beta1.Explanatio" + + "n\032\205\001\n\033ConcurrentExplanationsEntry\022\013\n\003key" + + "\030\001 \001(\t\022U\n\005value\030\002 \001(\0132F.google.cloud.aip" + + "latform.v1beta1.ExplainResponse.Concurre" + + "ntExplanation:\0028\001\"\327\001\n\022CountTokensRequest" + + "\022<\n\010endpoint\030\001 \001(\tB*\340A\002\372A$\n\"aiplatform.g" + + "oogleapis.com/Endpoint\022\022\n\005model\030\003 \001(\tB\003\340" + + "A\002\022.\n\tinstances\030\002 \003(\0132\026.google.protobuf." + + "ValueB\003\340A\002\022?\n\010contents\030\004 \003(\0132(.google.cl" + + "oud.aiplatform.v1beta1.ContentB\003\340A\002\"N\n\023C" + + "ountTokensResponse\022\024\n\014total_tokens\030\001 \001(\005" + + "\022!\n\031total_billable_characters\030\002 \001(\005\"\300\004\n\026" + + "GenerateContentRequest\022\022\n\005model\030\005 \001(\tB\003\340" + + "A\002\022?\n\010contents\030\002 \003(\0132(.google.cloud.aipl" + + "atform.v1beta1.ContentB\003\340A\002\022N\n\022system_in" + + "struction\030\010 \001(\0132(.google.cloud.aiplatfor" + + "m.v1beta1.ContentB\003\340A\001H\000\210\001\001\022G\n\016cached_co" + + "ntent\030\t \001(\tB/\340A\001\372A)\n\'aiplatform.googleap" + + "is.com/CachedContent\0229\n\005tools\030\006 \003(\0132%.go" + + "ogle.cloud.aiplatform.v1beta1.ToolB\003\340A\001\022" + + "E\n\013tool_config\030\007 \001(\0132+.google.cloud.aipl" + + "atform.v1beta1.ToolConfigB\003\340A\001\022L\n\017safety" + + "_settings\030\003 \003(\0132..google.cloud.aiplatfor" + + "m.v1beta1.SafetySettingB\003\340A\001\022Q\n\021generati" + + "on_config\030\004 \001(\01321.google.cloud.aiplatfor" + + "m.v1beta1.GenerationConfigB\003\340A\001B\025\n\023_syst" + + "em_instruction\"\360\005\n\027GenerateContentRespon" + + "se\022C\n\ncandidates\030\002 \003(\0132*.google.cloud.ai" + + "platform.v1beta1.CandidateB\003\340A\003\022e\n\017promp" + + "t_feedback\030\003 \001(\0132G.google.cloud.aiplatfo" + + "rm.v1beta1.GenerateContentResponse.Promp" + + "tFeedbackB\003\340A\003\022^\n\016usage_metadata\030\004 \001(\0132F" + + ".google.cloud.aiplatform.v1beta1.Generat" + + "eContentResponse.UsageMetadata\032\340\002\n\016Promp" + + "tFeedback\022p\n\014block_reason\030\001 \001(\0162U.google" + + ".cloud.aiplatform.v1beta1.GenerateConten" + + "tResponse.PromptFeedback.BlockedReasonB\003" + + "\340A\003\022J\n\016safety_ratings\030\002 \003(\0132-.google.clo" + + "ud.aiplatform.v1beta1.SafetyRatingB\003\340A\003\022" + + "!\n\024block_reason_message\030\003 \001(\tB\003\340A\003\"m\n\rBl" + + "ockedReason\022\036\n\032BLOCKED_REASON_UNSPECIFIE" + + "D\020\000\022\n\n\006SAFETY\020\001\022\t\n\005OTHER\020\002\022\r\n\tBLOCKLIST\020" + + "\003\022\026\n\022PROHIBITED_CONTENT\020\004\032f\n\rUsageMetada" + + "ta\022\032\n\022prompt_token_count\030\001 \001(\005\022\036\n\026candid" + + "ates_token_count\030\002 \001(\005\022\031\n\021total_token_co" + + "unt\030\003 \001(\005\"\204\001\n\026ChatCompletionsRequest\022<\n\010" + "endpoint\030\001 \001(\tB*\340A\002\372A$\n\"aiplatform.googl" - + "eapis.com/Endpoint\022<\n\006inputs\030\002 \003(\0132\'.goo" - + "gle.cloud.aiplatform.v1beta1.TensorB\003\340A\001" - + "\022@\n\nparameters\030\003 \001(\0132\'.google.cloud.aipl" - + "atform.v1beta1.TensorB\003\340A\001\"\224\001\n\033StreamDir" - + "ectPredictResponse\0228\n\007outputs\030\001 \003(\0132\'.go" - + "ogle.cloud.aiplatform.v1beta1.Tensor\022;\n\n" - + "parameters\030\002 \001(\0132\'.google.cloud.aiplatfo" - + "rm.v1beta1.Tensor\"\213\001\n\035StreamDirectRawPre" - + "dictRequest\022<\n\010endpoint\030\001 \001(\tB*\340A\002\372A$\n\"a" - + "iplatform.googleapis.com/Endpoint\022\030\n\013met" - + "hod_name\030\002 \001(\tB\003\340A\001\022\022\n\005input\030\003 \001(\014B\003\340A\001\"" - + "0\n\036StreamDirectRawPredictResponse\022\016\n\006out" - + "put\030\001 \001(\014\"\315\001\n\027StreamingPredictRequest\022<\n" - + "\010endpoint\030\001 \001(\tB*\340A\002\372A$\n\"aiplatform.goog" - + "leapis.com/Endpoint\0227\n\006inputs\030\002 \003(\0132\'.go" - + "ogle.cloud.aiplatform.v1beta1.Tensor\022;\n\n" - + "parameters\030\003 \001(\0132\'.google.cloud.aiplatfo" - + "rm.v1beta1.Tensor\"\221\001\n\030StreamingPredictRe" - + "sponse\0228\n\007outputs\030\001 \003(\0132\'.google.cloud.a" - + "iplatform.v1beta1.Tensor\022;\n\nparameters\030\002" - + " \001(\0132\'.google.cloud.aiplatform.v1beta1.T" - + "ensor\"~\n\032StreamingRawPredictRequest\022<\n\010e" - + "ndpoint\030\001 \001(\tB*\340A\002\372A$\n\"aiplatform.google" - + "apis.com/Endpoint\022\023\n\013method_name\030\002 \001(\t\022\r" - + "\n\005input\030\003 \001(\014\"-\n\033StreamingRawPredictResp" - + "onse\022\016\n\006output\030\001 \001(\014\"\263\004\n\016ExplainRequest\022" - + "<\n\010endpoint\030\001 \001(\tB*\340A\002\372A$\n\"aiplatform.go" - + "ogleapis.com/Endpoint\022.\n\tinstances\030\002 \003(\013" - + "2\026.google.protobuf.ValueB\003\340A\002\022*\n\nparamet" - + "ers\030\004 \001(\0132\026.google.protobuf.Value\022[\n\031exp" - + "lanation_spec_override\030\005 \001(\01328.google.cl" - + "oud.aiplatform.v1beta1.ExplanationSpecOv" - + "erride\022\211\001\n$concurrent_explanation_spec_o" - + "verride\030\006 \003(\0132V.google.cloud.aiplatform." - + "v1beta1.ExplainRequest.ConcurrentExplana" - + "tionSpecOverrideEntryB\003\340A\001\022\031\n\021deployed_m" - + "odel_id\030\003 \001(\t\032\202\001\n&ConcurrentExplanationS" - + "pecOverrideEntry\022\013\n\003key\030\001 \001(\t\022G\n\005value\030\002" - + " \001(\01328.google.cloud.aiplatform.v1beta1.E" - + "xplanationSpecOverride:\0028\001\"\361\003\n\017ExplainRe" - + "sponse\022B\n\014explanations\030\001 \003(\0132,.google.cl" - + "oud.aiplatform.v1beta1.Explanation\022m\n\027co" - + "ncurrent_explanations\030\004 \003(\0132L.google.clo" - + "ud.aiplatform.v1beta1.ExplainResponse.Co" - + "ncurrentExplanationsEntry\022\031\n\021deployed_mo" - + "del_id\030\002 \001(\t\022+\n\013predictions\030\003 \003(\0132\026.goog" - + "le.protobuf.Value\032[\n\025ConcurrentExplanati" - + "on\022B\n\014explanations\030\001 \003(\0132,.google.cloud." - + "aiplatform.v1beta1.Explanation\032\205\001\n\033Concu" - + "rrentExplanationsEntry\022\013\n\003key\030\001 \001(\t\022U\n\005v" - + "alue\030\002 \001(\0132F.google.cloud.aiplatform.v1b" - + "eta1.ExplainResponse.ConcurrentExplanati" - + "on:\0028\001\"\327\001\n\022CountTokensRequest\022<\n\010endpoin" - + "t\030\001 \001(\tB*\340A\002\372A$\n\"aiplatform.googleapis.c" - + "om/Endpoint\022\022\n\005model\030\003 \001(\tB\003\340A\002\022.\n\tinsta" - + "nces\030\002 \003(\0132\026.google.protobuf.ValueB\003\340A\002\022" - + "?\n\010contents\030\004 \003(\0132(.google.cloud.aiplatf" - + "orm.v1beta1.ContentB\003\340A\002\"N\n\023CountTokensR" - + "esponse\022\024\n\014total_tokens\030\001 \001(\005\022!\n\031total_b" - + "illable_characters\030\002 \001(\005\"\300\004\n\026GenerateCon" - + "tentRequest\022\022\n\005model\030\005 \001(\tB\003\340A\002\022?\n\010conte" - + "nts\030\002 \003(\0132(.google.cloud.aiplatform.v1be" - + "ta1.ContentB\003\340A\002\022N\n\022system_instruction\030\010" - + " \001(\0132(.google.cloud.aiplatform.v1beta1.C" - + "ontentB\003\340A\001H\000\210\001\001\022G\n\016cached_content\030\t \001(\t" - + "B/\340A\001\372A)\n\'aiplatform.googleapis.com/Cach" - + "edContent\0229\n\005tools\030\006 \003(\0132%.google.cloud." - + "aiplatform.v1beta1.ToolB\003\340A\001\022E\n\013tool_con" - + "fig\030\007 \001(\0132+.google.cloud.aiplatform.v1be" - + "ta1.ToolConfigB\003\340A\001\022L\n\017safety_settings\030\003" - + " \003(\0132..google.cloud.aiplatform.v1beta1.S" - + "afetySettingB\003\340A\001\022Q\n\021generation_config\030\004" - + " \001(\01321.google.cloud.aiplatform.v1beta1.G" - + "enerationConfigB\003\340A\001B\025\n\023_system_instruct" - + "ion\"\360\005\n\027GenerateContentResponse\022C\n\ncandi" - + "dates\030\002 \003(\0132*.google.cloud.aiplatform.v1" - + "beta1.CandidateB\003\340A\003\022e\n\017prompt_feedback\030" - + "\003 \001(\0132G.google.cloud.aiplatform.v1beta1." - + "GenerateContentResponse.PromptFeedbackB\003" - + "\340A\003\022^\n\016usage_metadata\030\004 \001(\0132F.google.clo" - + "ud.aiplatform.v1beta1.GenerateContentRes" - + "ponse.UsageMetadata\032\340\002\n\016PromptFeedback\022p" - + "\n\014block_reason\030\001 \001(\0162U.google.cloud.aipl" - + "atform.v1beta1.GenerateContentResponse.P" - + "romptFeedback.BlockedReasonB\003\340A\003\022J\n\016safe" - + "ty_ratings\030\002 \003(\0132-.google.cloud.aiplatfo" - + "rm.v1beta1.SafetyRatingB\003\340A\003\022!\n\024block_re" - + "ason_message\030\003 \001(\tB\003\340A\003\"m\n\rBlockedReason" - + "\022\036\n\032BLOCKED_REASON_UNSPECIFIED\020\000\022\n\n\006SAFE" - + "TY\020\001\022\t\n\005OTHER\020\002\022\r\n\tBLOCKLIST\020\003\022\026\n\022PROHIB" - + "ITED_CONTENT\020\004\032f\n\rUsageMetadata\022\032\n\022promp" - + "t_token_count\030\001 \001(\005\022\036\n\026candidates_token_" - + "count\030\002 \001(\005\022\031\n\021total_token_count\030\003 \001(\005\"\204" - + "\001\n\026ChatCompletionsRequest\022<\n\010endpoint\030\001 " - + "\001(\tB*\340A\002\372A$\n\"aiplatform.googleapis.com/E" - + "ndpoint\022,\n\thttp_body\030\002 \001(\0132\024.google.api." - + "HttpBodyB\003\340A\0012\275\033\n\021PredictionService\022\250\002\n\007" - + "Predict\022/.google.cloud.aiplatform.v1beta" - + "1.PredictRequest\0320.google.cloud.aiplatfo" - + "rm.v1beta1.PredictResponse\"\271\001\332A\035endpoint" - + ",instances,parameters\202\323\344\223\002\222\001\">/v1beta1/{" - + "endpoint=projects/*/locations/*/endpoint" - + "s/*}:predict:\001*ZM\"H/v1beta1/{endpoint=pr" + + "eapis.com/Endpoint\022,\n\thttp_body\030\002 \001(\0132\024." + + "google.api.HttpBodyB\003\340A\0012\347\035\n\021PredictionS" + + "ervice\022\250\002\n\007Predict\022/.google.cloud.aiplat" + + "form.v1beta1.PredictRequest\0320.google.clo" + + "ud.aiplatform.v1beta1.PredictResponse\"\271\001" + + "\332A\035endpoint,instances,parameters\202\323\344\223\002\222\001\"" + + ">/v1beta1/{endpoint=projects/*/locations" + + "/*/endpoints/*}:predict:\001*ZM\"H/v1beta1/{" + + "endpoint=projects/*/locations/*/publishe" + + "rs/*/models/*}:predict:\001*\022\215\002\n\nRawPredict" + + "\0222.google.cloud.aiplatform.v1beta1.RawPr" + + "edictRequest\032\024.google.api.HttpBody\"\264\001\332A\022" + + "endpoint,http_body\202\323\344\223\002\230\001\"A/v1beta1/{end" + + "point=projects/*/locations/*/endpoints/*" + + "}:rawPredict:\001*ZP\"K/v1beta1/{endpoint=pr" + "ojects/*/locations/*/publishers/*/models" - + "/*}:predict:\001*\022\215\002\n\nRawPredict\0222.google.c" - + "loud.aiplatform.v1beta1.RawPredictReques" - + "t\032\024.google.api.HttpBody\"\264\001\332A\022endpoint,ht" - + "tp_body\202\323\344\223\002\230\001\"A/v1beta1/{endpoint=proje" - + "cts/*/locations/*/endpoints/*}:rawPredic" - + "t:\001*ZP\"K/v1beta1/{endpoint=projects/*/lo" - + "cations/*/publishers/*/models/*}:rawPred" - + "ict:\001*\022\317\001\n\rDirectPredict\0225.google.cloud." - + "aiplatform.v1beta1.DirectPredictRequest\032" - + "6.google.cloud.aiplatform.v1beta1.Direct" - + "PredictResponse\"O\202\323\344\223\002I\"D/v1beta1/{endpo" - + "int=projects/*/locations/*/endpoints/*}:" - + "directPredict:\001*\022\333\001\n\020DirectRawPredict\0228." - + "google.cloud.aiplatform.v1beta1.DirectRa" - + "wPredictRequest\0329.google.cloud.aiplatfor" - + "m.v1beta1.DirectRawPredictResponse\"R\202\323\344\223" - + "\002L\"G/v1beta1/{endpoint=projects/*/locati" - + "ons/*/endpoints/*}:directRawPredict:\001*\022\226" - + "\001\n\023StreamDirectPredict\022;.google.cloud.ai" - + "platform.v1beta1.StreamDirectPredictRequ" - + "est\032<.google.cloud.aiplatform.v1beta1.St" - + "reamDirectPredictResponse\"\000(\0010\001\022\237\001\n\026Stre" - + "amDirectRawPredict\022>.google.cloud.aiplat" - + "form.v1beta1.StreamDirectRawPredictReque" - + "st\032?.google.cloud.aiplatform.v1beta1.Str" - + "eamDirectRawPredictResponse\"\000(\0010\001\022\215\001\n\020St" - + "reamingPredict\0228.google.cloud.aiplatform" - + ".v1beta1.StreamingPredictRequest\0329.googl" - + "e.cloud.aiplatform.v1beta1.StreamingPred" - + "ictResponse\"\000(\0010\001\022\311\002\n\026ServerStreamingPre" - + "dict\0228.google.cloud.aiplatform.v1beta1.S" - + "treamingPredictRequest\0329.google.cloud.ai" - + "platform.v1beta1.StreamingPredictRespons" - + "e\"\267\001\202\323\344\223\002\260\001\"M/v1beta1/{endpoint=projects" - + "/*/locations/*/endpoints/*}:serverStream" - + "ingPredict:\001*Z\\\"W/v1beta1/{endpoint=proj" - + "ects/*/locations/*/publishers/*/models/*" - + "}:serverStreamingPredict:\001*0\001\022\226\001\n\023Stream" - + "ingRawPredict\022;.google.cloud.aiplatform." - + "v1beta1.StreamingRawPredictRequest\032<.goo" - + "gle.cloud.aiplatform.v1beta1.StreamingRa" - + "wPredictResponse\"\000(\0010\001\022\351\001\n\007Explain\022/.goo" - + "gle.cloud.aiplatform.v1beta1.ExplainRequ" - + "est\0320.google.cloud.aiplatform.v1beta1.Ex" - + "plainResponse\"{\332A/endpoint,instances,par" - + "ameters,deployed_model_id\202\323\344\223\002C\">/v1beta" + + "/*}:rawPredict:\001*\022\247\002\n\020StreamRawPredict\0228" + + ".google.cloud.aiplatform.v1beta1.StreamR" + + "awPredictRequest\032\024.google.api.HttpBody\"\300" + + "\001\332A\022endpoint,http_body\202\323\344\223\002\244\001\"G/v1beta1/" + + "{endpoint=projects/*/locations/*/endpoin" + + "ts/*}:streamRawPredict:\001*ZV\"Q/v1beta1/{e" + + "ndpoint=projects/*/locations/*/publisher" + + "s/*/models/*}:streamRawPredict:\001*0\001\022\317\001\n\r" + + "DirectPredict\0225.google.cloud.aiplatform." + + "v1beta1.DirectPredictRequest\0326.google.cl" + + "oud.aiplatform.v1beta1.DirectPredictResp" + + "onse\"O\202\323\344\223\002I\"D/v1beta1/{endpoint=project" + + "s/*/locations/*/endpoints/*}:directPredi" + + "ct:\001*\022\333\001\n\020DirectRawPredict\0228.google.clou" + + "d.aiplatform.v1beta1.DirectRawPredictReq" + + "uest\0329.google.cloud.aiplatform.v1beta1.D" + + "irectRawPredictResponse\"R\202\323\344\223\002L\"G/v1beta" + "1/{endpoint=projects/*/locations/*/endpo" - + "ints/*}:explain:\001*\022\261\002\n\013CountTokens\0223.goo" - + "gle.cloud.aiplatform.v1beta1.CountTokens" - + "Request\0324.google.cloud.aiplatform.v1beta" - + "1.CountTokensResponse\"\266\001\332A\022endpoint,inst" - + "ances\202\323\344\223\002\232\001\"B/v1beta1/{endpoint=project" - + "s/*/locations/*/endpoints/*}:countTokens" - + ":\001*ZQ\"L/v1beta1/{endpoint=projects/*/loc" - + "ations/*/publishers/*/models/*}:countTok" - + "ens:\001*\022\273\002\n\017GenerateContent\0227.google.clou" - + "d.aiplatform.v1beta1.GenerateContentRequ" - + "est\0328.google.cloud.aiplatform.v1beta1.Ge" - + "nerateContentResponse\"\264\001\332A\016model,content" - + "s\202\323\344\223\002\234\001\"C/v1beta1/{model=projects/*/loc" - + "ations/*/endpoints/*}:generateContent:\001*" - + "ZR\"M/v1beta1/{model=projects/*/locations" - + "/*/publishers/*/models/*}:generateConten" - + "t:\001*\022\317\002\n\025StreamGenerateContent\0227.google." - + "cloud.aiplatform.v1beta1.GenerateContent" - + "Request\0328.google.cloud.aiplatform.v1beta" - + "1.GenerateContentResponse\"\300\001\332A\016model,con" - + "tents\202\323\344\223\002\250\001\"I/v1beta1/{model=projects/*" - + "/locations/*/endpoints/*}:streamGenerate" - + "Content:\001*ZX\"S/v1beta1/{model=projects/*" - + "/locations/*/publishers/*/models/*}:stre" - + "amGenerateContent:\001*0\001\022\323\001\n\017ChatCompletio" - + "ns\0227.google.cloud.aiplatform.v1beta1.Cha" - + "tCompletionsRequest\032\024.google.api.HttpBod" - + "y\"o\332A\022endpoint,http_body\202\323\344\223\002T\"G/v1beta1" - + "/{endpoint=projects/*/locations/*/endpoi" - + "nts/*}/chat/completions:\thttp_body0\001\032\206\001\312" - + "A\031aiplatform.googleapis.com\322Aghttps://ww" - + "w.googleapis.com/auth/cloud-platform,htt" - + "ps://www.googleapis.com/auth/cloud-platf" - + "orm.read-onlyB\355\001\n#com.google.cloud.aipla" - + "tform.v1beta1B\026PredictionServiceProtoP\001Z" - + "Ccloud.google.com/go/aiplatform/apiv1bet" - + "a1/aiplatformpb;aiplatformpb\252\002\037Google.Cl" - + "oud.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\AI" - + "Platform\\V1beta1\352\002\"Google::Cloud::AIPlat" - + "form::V1beta1b\006proto3" + + "ints/*}:directRawPredict:\001*\022\226\001\n\023StreamDi" + + "rectPredict\022;.google.cloud.aiplatform.v1" + + "beta1.StreamDirectPredictRequest\032<.googl" + + "e.cloud.aiplatform.v1beta1.StreamDirectP" + + "redictResponse\"\000(\0010\001\022\237\001\n\026StreamDirectRaw" + + "Predict\022>.google.cloud.aiplatform.v1beta" + + "1.StreamDirectRawPredictRequest\032?.google" + + ".cloud.aiplatform.v1beta1.StreamDirectRa" + + "wPredictResponse\"\000(\0010\001\022\215\001\n\020StreamingPred" + + "ict\0228.google.cloud.aiplatform.v1beta1.St" + + "reamingPredictRequest\0329.google.cloud.aip" + + "latform.v1beta1.StreamingPredictResponse" + + "\"\000(\0010\001\022\311\002\n\026ServerStreamingPredict\0228.goog" + + "le.cloud.aiplatform.v1beta1.StreamingPre" + + "dictRequest\0329.google.cloud.aiplatform.v1" + + "beta1.StreamingPredictResponse\"\267\001\202\323\344\223\002\260\001" + + "\"M/v1beta1/{endpoint=projects/*/location" + + "s/*/endpoints/*}:serverStreamingPredict:" + + "\001*Z\\\"W/v1beta1/{endpoint=projects/*/loca" + + "tions/*/publishers/*/models/*}:serverStr" + + "eamingPredict:\001*0\001\022\226\001\n\023StreamingRawPredi" + + "ct\022;.google.cloud.aiplatform.v1beta1.Str" + + "eamingRawPredictRequest\032<.google.cloud.a" + + "iplatform.v1beta1.StreamingRawPredictRes" + + "ponse\"\000(\0010\001\022\351\001\n\007Explain\022/.google.cloud.a" + + "iplatform.v1beta1.ExplainRequest\0320.googl" + + "e.cloud.aiplatform.v1beta1.ExplainRespon" + + "se\"{\332A/endpoint,instances,parameters,dep" + + "loyed_model_id\202\323\344\223\002C\">/v1beta1/{endpoint" + + "=projects/*/locations/*/endpoints/*}:exp" + + "lain:\001*\022\261\002\n\013CountTokens\0223.google.cloud.a" + + "iplatform.v1beta1.CountTokensRequest\0324.g" + + "oogle.cloud.aiplatform.v1beta1.CountToke" + + "nsResponse\"\266\001\332A\022endpoint,instances\202\323\344\223\002\232" + + "\001\"B/v1beta1/{endpoint=projects/*/locatio" + + "ns/*/endpoints/*}:countTokens:\001*ZQ\"L/v1b" + + "eta1/{endpoint=projects/*/locations/*/pu" + + "blishers/*/models/*}:countTokens:\001*\022\273\002\n\017" + + "GenerateContent\0227.google.cloud.aiplatfor" + + "m.v1beta1.GenerateContentRequest\0328.googl" + + "e.cloud.aiplatform.v1beta1.GenerateConte" + + "ntResponse\"\264\001\332A\016model,contents\202\323\344\223\002\234\001\"C/" + + "v1beta1/{model=projects/*/locations/*/en" + + "dpoints/*}:generateContent:\001*ZR\"M/v1beta" + + "1/{model=projects/*/locations/*/publishe" + + "rs/*/models/*}:generateContent:\001*\022\317\002\n\025St" + + "reamGenerateContent\0227.google.cloud.aipla" + + "tform.v1beta1.GenerateContentRequest\0328.g" + + "oogle.cloud.aiplatform.v1beta1.GenerateC" + + "ontentResponse\"\300\001\332A\016model,contents\202\323\344\223\002\250" + + "\001\"I/v1beta1/{model=projects/*/locations/" + + "*/endpoints/*}:streamGenerateContent:\001*Z" + + "X\"S/v1beta1/{model=projects/*/locations/" + + "*/publishers/*/models/*}:streamGenerateC" + + "ontent:\001*0\001\022\323\001\n\017ChatCompletions\0227.google" + + ".cloud.aiplatform.v1beta1.ChatCompletion" + + "sRequest\032\024.google.api.HttpBody\"o\332A\022endpo" + + "int,http_body\202\323\344\223\002T\"G/v1beta1/{endpoint=" + + "projects/*/locations/*/endpoints/*}/chat" + + "/completions:\thttp_body0\001\032\206\001\312A\031aiplatfor" + + "m.googleapis.com\322Aghttps://www.googleapi" + + "s.com/auth/cloud-platform,https://www.go" + + "ogleapis.com/auth/cloud-platform.read-on" + + "lyB\355\001\n#com.google.cloud.aiplatform.v1bet" + + "a1B\026PredictionServiceProtoP\001ZCcloud.goog" + + "le.com/go/aiplatform/apiv1beta1/aiplatfo" + + "rmpb;aiplatformpb\252\002\037Google.Cloud.AIPlatf" + + "orm.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1" + + "beta1\352\002\"Google::Cloud::AIPlatform::V1bet" + + "a1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -421,8 +436,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Endpoint", "HttpBody", }); - internal_static_google_cloud_aiplatform_v1beta1_DirectPredictRequest_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_StreamRawPredictRequest_descriptor = getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_aiplatform_v1beta1_StreamRawPredictRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_StreamRawPredictRequest_descriptor, + new java.lang.String[] { + "Endpoint", "HttpBody", + }); + internal_static_google_cloud_aiplatform_v1beta1_DirectPredictRequest_descriptor = + getDescriptor().getMessageTypes().get(4); internal_static_google_cloud_aiplatform_v1beta1_DirectPredictRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_DirectPredictRequest_descriptor, @@ -430,7 +453,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Endpoint", "Inputs", "Parameters", }); internal_static_google_cloud_aiplatform_v1beta1_DirectPredictResponse_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(5); internal_static_google_cloud_aiplatform_v1beta1_DirectPredictResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_DirectPredictResponse_descriptor, @@ -438,7 +461,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Outputs", "Parameters", }); internal_static_google_cloud_aiplatform_v1beta1_DirectRawPredictRequest_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(6); internal_static_google_cloud_aiplatform_v1beta1_DirectRawPredictRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_DirectRawPredictRequest_descriptor, @@ -446,7 +469,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Endpoint", "MethodName", "Input", }); internal_static_google_cloud_aiplatform_v1beta1_DirectRawPredictResponse_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(7); internal_static_google_cloud_aiplatform_v1beta1_DirectRawPredictResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_DirectRawPredictResponse_descriptor, @@ -454,7 +477,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Output", }); internal_static_google_cloud_aiplatform_v1beta1_StreamDirectPredictRequest_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(8); internal_static_google_cloud_aiplatform_v1beta1_StreamDirectPredictRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_StreamDirectPredictRequest_descriptor, @@ -462,7 +485,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Endpoint", "Inputs", "Parameters", }); internal_static_google_cloud_aiplatform_v1beta1_StreamDirectPredictResponse_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(9); internal_static_google_cloud_aiplatform_v1beta1_StreamDirectPredictResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_StreamDirectPredictResponse_descriptor, @@ -470,7 +493,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Outputs", "Parameters", }); internal_static_google_cloud_aiplatform_v1beta1_StreamDirectRawPredictRequest_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(10); internal_static_google_cloud_aiplatform_v1beta1_StreamDirectRawPredictRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_StreamDirectRawPredictRequest_descriptor, @@ -478,7 +501,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Endpoint", "MethodName", "Input", }); internal_static_google_cloud_aiplatform_v1beta1_StreamDirectRawPredictResponse_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_aiplatform_v1beta1_StreamDirectRawPredictResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_StreamDirectRawPredictResponse_descriptor, @@ -486,7 +509,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Output", }); internal_static_google_cloud_aiplatform_v1beta1_StreamingPredictRequest_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_aiplatform_v1beta1_StreamingPredictRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_StreamingPredictRequest_descriptor, @@ -494,7 +517,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Endpoint", "Inputs", "Parameters", }); internal_static_google_cloud_aiplatform_v1beta1_StreamingPredictResponse_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_aiplatform_v1beta1_StreamingPredictResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_StreamingPredictResponse_descriptor, @@ -502,7 +525,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Outputs", "Parameters", }); internal_static_google_cloud_aiplatform_v1beta1_StreamingRawPredictRequest_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_aiplatform_v1beta1_StreamingRawPredictRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_StreamingRawPredictRequest_descriptor, @@ -510,7 +533,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Endpoint", "MethodName", "Input", }); internal_static_google_cloud_aiplatform_v1beta1_StreamingRawPredictResponse_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_aiplatform_v1beta1_StreamingRawPredictResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_StreamingRawPredictResponse_descriptor, @@ -518,7 +541,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Output", }); internal_static_google_cloud_aiplatform_v1beta1_ExplainRequest_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_aiplatform_v1beta1_ExplainRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ExplainRequest_descriptor, @@ -541,7 +564,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_aiplatform_v1beta1_ExplainResponse_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_aiplatform_v1beta1_ExplainResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ExplainResponse_descriptor, @@ -569,7 +592,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_aiplatform_v1beta1_CountTokensRequest_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_aiplatform_v1beta1_CountTokensRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_CountTokensRequest_descriptor, @@ -577,7 +600,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Endpoint", "Model", "Instances", "Contents", }); internal_static_google_cloud_aiplatform_v1beta1_CountTokensResponse_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_aiplatform_v1beta1_CountTokensResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_CountTokensResponse_descriptor, @@ -585,7 +608,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TotalTokens", "TotalBillableCharacters", }); internal_static_google_cloud_aiplatform_v1beta1_GenerateContentRequest_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_aiplatform_v1beta1_GenerateContentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_GenerateContentRequest_descriptor, @@ -600,7 +623,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GenerationConfig", }); internal_static_google_cloud_aiplatform_v1beta1_GenerateContentResponse_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_aiplatform_v1beta1_GenerateContentResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_GenerateContentResponse_descriptor, @@ -628,7 +651,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PromptTokenCount", "CandidatesTokenCount", "TotalTokenCount", }); internal_static_google_cloud_aiplatform_v1beta1_ChatCompletionsRequest_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_aiplatform_v1beta1_ChatCompletionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ChatCompletionsRequest_descriptor, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Segment.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Segment.java index 088be6f79910..f985aed1b82c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Segment.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Segment.java @@ -38,7 +38,9 @@ private Segment(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Segment() {} + private Segment() { + text_ = ""; + } @java.lang.Override @SuppressWarnings({"unused"}) @@ -117,6 +119,57 @@ public int getEndIndex() { return endIndex_; } + public static final int TEXT_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object text_ = ""; + /** + * + * + *
+   * Output only. The text corresponding to the segment from the response.
+   * 
+ * + * string text = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The text. + */ + @java.lang.Override + public java.lang.String getText() { + java.lang.Object ref = text_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + text_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The text corresponding to the segment from the response.
+   * 
+ * + * string text = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for text. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = text_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + text_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -140,6 +193,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (endIndex_ != 0) { output.writeInt32(3, endIndex_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, text_); + } getUnknownFields().writeTo(output); } @@ -158,6 +214,9 @@ public int getSerializedSize() { if (endIndex_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, endIndex_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, text_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -177,6 +236,7 @@ public boolean equals(final java.lang.Object obj) { if (getPartIndex() != other.getPartIndex()) return false; if (getStartIndex() != other.getStartIndex()) return false; if (getEndIndex() != other.getEndIndex()) return false; + if (!getText().equals(other.getText())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -194,6 +254,8 @@ public int hashCode() { hash = (53 * hash) + getStartIndex(); hash = (37 * hash) + END_INDEX_FIELD_NUMBER; hash = (53 * hash) + getEndIndex(); + hash = (37 * hash) + TEXT_FIELD_NUMBER; + hash = (53 * hash) + getText().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -336,6 +398,7 @@ public Builder clear() { partIndex_ = 0; startIndex_ = 0; endIndex_ = 0; + text_ = ""; return this; } @@ -381,6 +444,9 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Segment result) { if (((from_bitField0_ & 0x00000004) != 0)) { result.endIndex_ = endIndex_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.text_ = text_; + } } @java.lang.Override @@ -437,6 +503,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Segment other) { if (other.getEndIndex() != 0) { setEndIndex(other.getEndIndex()); } + if (!other.getText().isEmpty()) { + text_ = other.text_; + bitField0_ |= 0x00000008; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -481,6 +552,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 24 + case 34: + { + text_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -665,6 +742,112 @@ public Builder clearEndIndex() { return this; } + private java.lang.Object text_ = ""; + /** + * + * + *
+     * Output only. The text corresponding to the segment from the response.
+     * 
+ * + * string text = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The text. + */ + public java.lang.String getText() { + java.lang.Object ref = text_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + text_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The text corresponding to the segment from the response.
+     * 
+ * + * string text = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for text. + */ + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = text_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + text_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The text corresponding to the segment from the response.
+     * 
+ * + * string text = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The text to set. + * @return This builder for chaining. + */ + public Builder setText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + text_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The text corresponding to the segment from the response.
+     * 
+ * + * string text = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearText() { + text_ = getDefaultInstance().getText(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The text corresponding to the segment from the response.
+     * 
+ * + * string text = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for text to set. + * @return This builder for chaining. + */ + public Builder setTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + text_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SegmentOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SegmentOrBuilder.java index 06c59a9ed72e..a71833fc0a37 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SegmentOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SegmentOrBuilder.java @@ -64,4 +64,29 @@ public interface SegmentOrBuilder * @return The endIndex. */ int getEndIndex(); + + /** + * + * + *
+   * Output only. The text corresponding to the segment from the response.
+   * 
+ * + * string text = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The text. + */ + java.lang.String getText(); + /** + * + * + *
+   * Output only. The text corresponding to the segment from the response.
+   * 
+ * + * string text = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for text. + */ + com.google.protobuf.ByteString getTextBytes(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StreamRawPredictRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StreamRawPredictRequest.java new file mode 100644 index 000000000000..83c6acee228b --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StreamRawPredictRequest.java @@ -0,0 +1,926 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/prediction_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Request message for
+ * [PredictionService.StreamRawPredict][google.cloud.aiplatform.v1beta1.PredictionService.StreamRawPredict].
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.StreamRawPredictRequest} + */ +public final class StreamRawPredictRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.StreamRawPredictRequest) + StreamRawPredictRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use StreamRawPredictRequest.newBuilder() to construct. + private StreamRawPredictRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StreamRawPredictRequest() { + endpoint_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StreamRawPredictRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_StreamRawPredictRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_StreamRawPredictRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest.class, + com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest.Builder.class); + } + + private int bitField0_; + public static final int ENDPOINT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object endpoint_ = ""; + /** + * + * + *
+   * Required. The name of the Endpoint requested to serve the prediction.
+   * Format:
+   * `projects/{project}/locations/{location}/endpoints/{endpoint}`
+   * 
+ * + * + * string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The endpoint. + */ + @java.lang.Override + public java.lang.String getEndpoint() { + java.lang.Object ref = endpoint_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + endpoint_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the Endpoint requested to serve the prediction.
+   * Format:
+   * `projects/{project}/locations/{location}/endpoints/{endpoint}`
+   * 
+ * + * + * string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for endpoint. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEndpointBytes() { + java.lang.Object ref = endpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + endpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HTTP_BODY_FIELD_NUMBER = 2; + private com.google.api.HttpBody httpBody_; + /** + * + * + *
+   * The prediction input. Supports HTTP headers and arbitrary data payload.
+   * 
+ * + * .google.api.HttpBody http_body = 2; + * + * @return Whether the httpBody field is set. + */ + @java.lang.Override + public boolean hasHttpBody() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * The prediction input. Supports HTTP headers and arbitrary data payload.
+   * 
+ * + * .google.api.HttpBody http_body = 2; + * + * @return The httpBody. + */ + @java.lang.Override + public com.google.api.HttpBody getHttpBody() { + return httpBody_ == null ? com.google.api.HttpBody.getDefaultInstance() : httpBody_; + } + /** + * + * + *
+   * The prediction input. Supports HTTP headers and arbitrary data payload.
+   * 
+ * + * .google.api.HttpBody http_body = 2; + */ + @java.lang.Override + public com.google.api.HttpBodyOrBuilder getHttpBodyOrBuilder() { + return httpBody_ == null ? com.google.api.HttpBody.getDefaultInstance() : httpBody_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpoint_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, endpoint_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getHttpBody()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpoint_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, endpoint_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getHttpBody()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest other = + (com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest) obj; + + if (!getEndpoint().equals(other.getEndpoint())) return false; + if (hasHttpBody() != other.hasHttpBody()) return false; + if (hasHttpBody()) { + if (!getHttpBody().equals(other.getHttpBody())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getEndpoint().hashCode(); + if (hasHttpBody()) { + hash = (37 * hash) + HTTP_BODY_FIELD_NUMBER; + hash = (53 * hash) + getHttpBody().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for
+   * [PredictionService.StreamRawPredict][google.cloud.aiplatform.v1beta1.PredictionService.StreamRawPredict].
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.StreamRawPredictRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.StreamRawPredictRequest) + com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_StreamRawPredictRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_StreamRawPredictRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest.class, + com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getHttpBodyFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + endpoint_ = ""; + httpBody_ = null; + if (httpBodyBuilder_ != null) { + httpBodyBuilder_.dispose(); + httpBodyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.PredictionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_StreamRawPredictRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest build() { + com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest result = + new com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.endpoint_ = endpoint_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.httpBody_ = httpBodyBuilder_ == null ? httpBody_ : httpBodyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest other) { + if (other == com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest.getDefaultInstance()) + return this; + if (!other.getEndpoint().isEmpty()) { + endpoint_ = other.endpoint_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasHttpBody()) { + mergeHttpBody(other.getHttpBody()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + endpoint_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getHttpBodyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object endpoint_ = ""; + /** + * + * + *
+     * Required. The name of the Endpoint requested to serve the prediction.
+     * Format:
+     * `projects/{project}/locations/{location}/endpoints/{endpoint}`
+     * 
+ * + * + * string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The endpoint. + */ + public java.lang.String getEndpoint() { + java.lang.Object ref = endpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + endpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the Endpoint requested to serve the prediction.
+     * Format:
+     * `projects/{project}/locations/{location}/endpoints/{endpoint}`
+     * 
+ * + * + * string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for endpoint. + */ + public com.google.protobuf.ByteString getEndpointBytes() { + java.lang.Object ref = endpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + endpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the Endpoint requested to serve the prediction.
+     * Format:
+     * `projects/{project}/locations/{location}/endpoints/{endpoint}`
+     * 
+ * + * + * string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The endpoint to set. + * @return This builder for chaining. + */ + public Builder setEndpoint(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + endpoint_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the Endpoint requested to serve the prediction.
+     * Format:
+     * `projects/{project}/locations/{location}/endpoints/{endpoint}`
+     * 
+ * + * + * string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearEndpoint() { + endpoint_ = getDefaultInstance().getEndpoint(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the Endpoint requested to serve the prediction.
+     * Format:
+     * `projects/{project}/locations/{location}/endpoints/{endpoint}`
+     * 
+ * + * + * string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for endpoint to set. + * @return This builder for chaining. + */ + public Builder setEndpointBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + endpoint_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.api.HttpBody httpBody_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.api.HttpBody, + com.google.api.HttpBody.Builder, + com.google.api.HttpBodyOrBuilder> + httpBodyBuilder_; + /** + * + * + *
+     * The prediction input. Supports HTTP headers and arbitrary data payload.
+     * 
+ * + * .google.api.HttpBody http_body = 2; + * + * @return Whether the httpBody field is set. + */ + public boolean hasHttpBody() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * The prediction input. Supports HTTP headers and arbitrary data payload.
+     * 
+ * + * .google.api.HttpBody http_body = 2; + * + * @return The httpBody. + */ + public com.google.api.HttpBody getHttpBody() { + if (httpBodyBuilder_ == null) { + return httpBody_ == null ? com.google.api.HttpBody.getDefaultInstance() : httpBody_; + } else { + return httpBodyBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The prediction input. Supports HTTP headers and arbitrary data payload.
+     * 
+ * + * .google.api.HttpBody http_body = 2; + */ + public Builder setHttpBody(com.google.api.HttpBody value) { + if (httpBodyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + httpBody_ = value; + } else { + httpBodyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The prediction input. Supports HTTP headers and arbitrary data payload.
+     * 
+ * + * .google.api.HttpBody http_body = 2; + */ + public Builder setHttpBody(com.google.api.HttpBody.Builder builderForValue) { + if (httpBodyBuilder_ == null) { + httpBody_ = builderForValue.build(); + } else { + httpBodyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The prediction input. Supports HTTP headers and arbitrary data payload.
+     * 
+ * + * .google.api.HttpBody http_body = 2; + */ + public Builder mergeHttpBody(com.google.api.HttpBody value) { + if (httpBodyBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && httpBody_ != null + && httpBody_ != com.google.api.HttpBody.getDefaultInstance()) { + getHttpBodyBuilder().mergeFrom(value); + } else { + httpBody_ = value; + } + } else { + httpBodyBuilder_.mergeFrom(value); + } + if (httpBody_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * The prediction input. Supports HTTP headers and arbitrary data payload.
+     * 
+ * + * .google.api.HttpBody http_body = 2; + */ + public Builder clearHttpBody() { + bitField0_ = (bitField0_ & ~0x00000002); + httpBody_ = null; + if (httpBodyBuilder_ != null) { + httpBodyBuilder_.dispose(); + httpBodyBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The prediction input. Supports HTTP headers and arbitrary data payload.
+     * 
+ * + * .google.api.HttpBody http_body = 2; + */ + public com.google.api.HttpBody.Builder getHttpBodyBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getHttpBodyFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The prediction input. Supports HTTP headers and arbitrary data payload.
+     * 
+ * + * .google.api.HttpBody http_body = 2; + */ + public com.google.api.HttpBodyOrBuilder getHttpBodyOrBuilder() { + if (httpBodyBuilder_ != null) { + return httpBodyBuilder_.getMessageOrBuilder(); + } else { + return httpBody_ == null ? com.google.api.HttpBody.getDefaultInstance() : httpBody_; + } + } + /** + * + * + *
+     * The prediction input. Supports HTTP headers and arbitrary data payload.
+     * 
+ * + * .google.api.HttpBody http_body = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.api.HttpBody, + com.google.api.HttpBody.Builder, + com.google.api.HttpBodyOrBuilder> + getHttpBodyFieldBuilder() { + if (httpBodyBuilder_ == null) { + httpBodyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.api.HttpBody, + com.google.api.HttpBody.Builder, + com.google.api.HttpBodyOrBuilder>(getHttpBody(), getParentForChildren(), isClean()); + httpBody_ = null; + } + return httpBodyBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.StreamRawPredictRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.StreamRawPredictRequest) + private static final com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamRawPredictRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StreamRawPredictRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StreamRawPredictRequestOrBuilder.java new file mode 100644 index 000000000000..3b4bea1534d4 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/StreamRawPredictRequestOrBuilder.java @@ -0,0 +1,94 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/prediction_service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.aiplatform.v1beta1; + +public interface StreamRawPredictRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.StreamRawPredictRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the Endpoint requested to serve the prediction.
+   * Format:
+   * `projects/{project}/locations/{location}/endpoints/{endpoint}`
+   * 
+ * + * + * string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The endpoint. + */ + java.lang.String getEndpoint(); + /** + * + * + *
+   * Required. The name of the Endpoint requested to serve the prediction.
+   * Format:
+   * `projects/{project}/locations/{location}/endpoints/{endpoint}`
+   * 
+ * + * + * string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for endpoint. + */ + com.google.protobuf.ByteString getEndpointBytes(); + + /** + * + * + *
+   * The prediction input. Supports HTTP headers and arbitrary data payload.
+   * 
+ * + * .google.api.HttpBody http_body = 2; + * + * @return Whether the httpBody field is set. + */ + boolean hasHttpBody(); + /** + * + * + *
+   * The prediction input. Supports HTTP headers and arbitrary data payload.
+   * 
+ * + * .google.api.HttpBody http_body = 2; + * + * @return The httpBody. + */ + com.google.api.HttpBody getHttpBody(); + /** + * + * + *
+   * The prediction input. Supports HTTP headers and arbitrary data payload.
+   * 
+ * + * .google.api.HttpBody http_body = 2; + */ + com.google.api.HttpBodyOrBuilder getHttpBodyOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagStore.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagStore.java index df33d06c7828..a794ab25da3d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagStore.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagStore.java @@ -1112,7 +1112,7 @@ public com.google.protobuf.Parser getParserForType() { *
* * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=201 + * google/cloud/aiplatform/v1beta1/tool.proto;l=202 * @return A list containing the ragCorpora. */ @java.lang.Deprecated @@ -1131,7 +1131,7 @@ public com.google.protobuf.ProtocolStringList getRagCorporaList() { *
* * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=201 + * google/cloud/aiplatform/v1beta1/tool.proto;l=202 * @return The count of ragCorpora. */ @java.lang.Deprecated @@ -1150,7 +1150,7 @@ public int getRagCorporaCount() { *
* * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=201 + * google/cloud/aiplatform/v1beta1/tool.proto;l=202 * @param index The index of the element to return. * @return The ragCorpora at the given index. */ @@ -1170,7 +1170,7 @@ public java.lang.String getRagCorpora(int index) { *
* * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=201 + * google/cloud/aiplatform/v1beta1/tool.proto;l=202 * @param index The index of the value to return. * @return The bytes of the ragCorpora at the given index. */ @@ -1861,7 +1861,7 @@ private void ensureRagCorporaIsMutable() { *
* * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=201 + * google/cloud/aiplatform/v1beta1/tool.proto;l=202 * @return A list containing the ragCorpora. */ @java.lang.Deprecated @@ -1881,7 +1881,7 @@ public com.google.protobuf.ProtocolStringList getRagCorporaList() { *
* * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=201 + * google/cloud/aiplatform/v1beta1/tool.proto;l=202 * @return The count of ragCorpora. */ @java.lang.Deprecated @@ -1900,7 +1900,7 @@ public int getRagCorporaCount() { *
* * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=201 + * google/cloud/aiplatform/v1beta1/tool.proto;l=202 * @param index The index of the element to return. * @return The ragCorpora at the given index. */ @@ -1920,7 +1920,7 @@ public java.lang.String getRagCorpora(int index) { *
* * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=201 + * google/cloud/aiplatform/v1beta1/tool.proto;l=202 * @param index The index of the value to return. * @return The bytes of the ragCorpora at the given index. */ @@ -1940,7 +1940,7 @@ public com.google.protobuf.ByteString getRagCorporaBytes(int index) { *
* * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=201 + * google/cloud/aiplatform/v1beta1/tool.proto;l=202 * @param index The index to set the value at. * @param value The ragCorpora to set. * @return This builder for chaining. @@ -1968,7 +1968,7 @@ public Builder setRagCorpora(int index, java.lang.String value) { *
* * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=201 + * google/cloud/aiplatform/v1beta1/tool.proto;l=202 * @param value The ragCorpora to add. * @return This builder for chaining. */ @@ -1995,7 +1995,7 @@ public Builder addRagCorpora(java.lang.String value) { *
* * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=201 + * google/cloud/aiplatform/v1beta1/tool.proto;l=202 * @param values The ragCorpora to add. * @return This builder for chaining. */ @@ -2019,7 +2019,7 @@ public Builder addAllRagCorpora(java.lang.Iterable values) { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=201 + * google/cloud/aiplatform/v1beta1/tool.proto;l=202 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2042,7 +2042,7 @@ public Builder clearRagCorpora() { * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=201 + * google/cloud/aiplatform/v1beta1/tool.proto;l=202 * @param value The bytes of the ragCorpora to add. * @return This builder for chaining. */ diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagStoreOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagStoreOrBuilder.java index d02e7fcdf91e..758cca65de52 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagStoreOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagStoreOrBuilder.java @@ -36,7 +36,7 @@ public interface VertexRagStoreOrBuilder * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=201 + * google/cloud/aiplatform/v1beta1/tool.proto;l=202 * @return A list containing the ragCorpora. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface VertexRagStoreOrBuilder * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=201 + * google/cloud/aiplatform/v1beta1/tool.proto;l=202 * @return The count of ragCorpora. */ @java.lang.Deprecated @@ -70,7 +70,7 @@ public interface VertexRagStoreOrBuilder * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=201 + * google/cloud/aiplatform/v1beta1/tool.proto;l=202 * @param index The index of the element to return. * @return The ragCorpora at the given index. */ @@ -88,7 +88,7 @@ public interface VertexRagStoreOrBuilder * * * @deprecated google.cloud.aiplatform.v1beta1.VertexRagStore.rag_corpora is deprecated. See - * google/cloud/aiplatform/v1beta1/tool.proto;l=201 + * google/cloud/aiplatform/v1beta1/tool.proto;l=202 * @param index The index of the value to return. * @return The bytes of the ragCorpora at the given index. */ diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/cached_content.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/cached_content.proto index ecb6e97a3d81..b57cdea1af7b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/cached_content.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/cached_content.proto @@ -54,8 +54,8 @@ message CachedContent { [(google.api.field_behavior) = INPUT_ONLY]; } - // Immutable. Identifier. The resource name of the cached content - // Format: + // Immutable. Identifier. The server-generated resource name of the cached + // content Format: // projects/{project}/locations/{location}/cachedContents/{cached_content} string name = 1 [ (google.api.field_behavior) = IDENTIFIER, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/content.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/content.proto index da636484727a..f139feb2b039 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/content.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/content.proto @@ -346,6 +346,9 @@ message Candidate { // The token generation was stopped as the response was flagged for // Sensitive Personally Identifiable Information (SPII) contents. SPII = 8; + + // The function call generated by the model is invalid. + MALFORMED_FUNCTION_CALL = 9; } // Output only. Index of the candidate. @@ -390,6 +393,56 @@ message Segment { // Output only. End index in the given Part, measured in bytes. Offset from // the start of the Part, exclusive, starting at zero. int32 end_index = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The text corresponding to the segment from the response. + string text = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Grounding chunk. +message GroundingChunk { + // Chunk from the web. + message Web { + // URI reference of the chunk. + optional string uri = 1; + + // Title of the chunk. + optional string title = 2; + } + + // Chunk from context retrieved by the retrieval tools. + message RetrievedContext { + // URI reference of the attribution. + optional string uri = 1; + + // Title of the attribution. + optional string title = 2; + } + + // Chunk type. + oneof chunk_type { + // Grounding chunk from the web. + Web web = 1; + + // Grounding chunk from context retrieved by the retrieval tools. + RetrievedContext retrieved_context = 2; + } +} + +// Grounding support. +message GroundingSupport { + // Segment of the content this support belongs to. + optional Segment segment = 1; + + // A list of indices (into 'grounding_chunk') specifying the + // citations associated with the claim. For instance [1,3,4] means + // that grounding_chunk[1], grounding_chunk[3], + // grounding_chunk[4] are the retrieved content attributed to the claim. + repeated int32 grounding_chunk_indices = 2; + + // Confidence score of the support references. Ranges from 0 to 1. 1 is the + // most confident. This list must have the same size as the + // grounding_chunk_indices. + repeated float confidence_scores = 3; } // Grounding attribution. @@ -449,6 +502,13 @@ message GroundingMetadata { // Optional. List of grounding attributions. repeated GroundingAttribution grounding_attributions = 2 [(google.api.field_behavior) = OPTIONAL]; + + // List of supporting references retrieved from specified grounding source. + repeated GroundingChunk grounding_chunks = 5; + + // Optional. List of grounding support. + repeated GroundingSupport grounding_supports = 6 + [(google.api.field_behavior) = OPTIONAL]; } // Google search entry point. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_monitoring_stats.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_monitoring_stats.proto index 081039f5ed72..23188e990bf3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_monitoring_stats.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_monitoring_stats.proto @@ -41,7 +41,8 @@ message ModelMonitoringStatsDataPoint { message TypedValue { // Summary statistics for a population of values. message DistributionDataValue { - // tensorflow.metadata.v0.DatasetFeatureStatistics format. + // Predictive monitoring drift distribution in + // `tensorflow.metadata.v0.DatasetFeatureStatistics` format. google.protobuf.Value distribution = 1; // Distribution distance deviation from the current dataset's statistics diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/prediction_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/prediction_service.proto index e36214291153..05650bd27c38 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/prediction_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/prediction_service.proto @@ -78,6 +78,20 @@ service PredictionService { option (google.api.method_signature) = "endpoint,http_body"; } + // Perform a streaming online prediction with an arbitrary HTTP payload. + rpc StreamRawPredict(StreamRawPredictRequest) + returns (stream google.api.HttpBody) { + option (google.api.http) = { + post: "/v1beta1/{endpoint=projects/*/locations/*/endpoints/*}:streamRawPredict" + body: "*" + additional_bindings { + post: "/v1beta1/{endpoint=projects/*/locations/*/publishers/*/models/*}:streamRawPredict" + body: "*" + } + }; + option (google.api.method_signature) = "endpoint,http_body"; + } + // Perform an unary online prediction request to a gRPC model server for // Vertex first-party products and frameworks. rpc DirectPredict(DirectPredictRequest) returns (DirectPredictResponse) { @@ -305,6 +319,23 @@ message RawPredictRequest { google.api.HttpBody http_body = 2; } +// Request message for +// [PredictionService.StreamRawPredict][google.cloud.aiplatform.v1beta1.PredictionService.StreamRawPredict]. +message StreamRawPredictRequest { + // Required. The name of the Endpoint requested to serve the prediction. + // Format: + // `projects/{project}/locations/{location}/endpoints/{endpoint}` + string endpoint = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Endpoint" + } + ]; + + // The prediction input. Supports HTTP headers and arbitrary data payload. + google.api.HttpBody http_body = 2; +} + // Request message for // [PredictionService.DirectPredict][google.cloud.aiplatform.v1beta1.PredictionService.DirectPredict]. message DirectPredictRequest { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tool.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tool.proto index 17d097253751..290001c42396 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tool.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tool.proto @@ -164,6 +164,7 @@ message FunctionResponse { // Defines a retrieval tool that model can call to access external knowledge. message Retrieval { + // The source of the retrieval. oneof source { // Set to use data source powered by Vertex AI Search. VertexAISearch vertex_ai_search = 2; diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/predictionservice/streamrawpredict/AsyncStreamRawPredict.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/predictionservice/streamrawpredict/AsyncStreamRawPredict.java new file mode 100644 index 000000000000..f8158263626a --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/predictionservice/streamrawpredict/AsyncStreamRawPredict.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_PredictionService_StreamRawPredict_async] +import com.google.api.HttpBody; +import com.google.api.gax.rpc.ServerStream; +import com.google.cloud.aiplatform.v1beta1.EndpointName; +import com.google.cloud.aiplatform.v1beta1.PredictionServiceClient; +import com.google.cloud.aiplatform.v1beta1.StreamRawPredictRequest; + +public class AsyncStreamRawPredict { + + public static void main(String[] args) throws Exception { + asyncStreamRawPredict(); + } + + public static void asyncStreamRawPredict() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (PredictionServiceClient predictionServiceClient = PredictionServiceClient.create()) { + StreamRawPredictRequest request = + StreamRawPredictRequest.newBuilder() + .setEndpoint( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .setHttpBody(HttpBody.newBuilder().build()) + .build(); + ServerStream stream = + predictionServiceClient.streamRawPredictCallable().call(request); + for (HttpBody response : stream) { + // Do something when a response is received. + } + } + } +} +// [END aiplatform_v1beta1_generated_PredictionService_StreamRawPredict_async] diff --git a/java-alloydb-connectors/.repo-metadata.json b/java-alloydb-connectors/.repo-metadata.json index f60e2bda0364..c57fa7faaf11 100644 --- a/java-alloydb-connectors/.repo-metadata.json +++ b/java-alloydb-connectors/.repo-metadata.json @@ -5,7 +5,7 @@ "api_description": "AlloyDB is a fully-managed, PostgreSQL-compatible database for demanding transactional workloads. It provides enterprise-grade performance and availability while maintaining 100% compatibility with open-source PostgreSQL.", "client_documentation": "https://cloud.google.com/java/docs/reference/google-cloud-alloydb-connectors/latest/overview", "release_level": "stable", - "transport": "both", + "transport": "grpc", "language": "java", "repo": "googleapis/google-cloud-java", "repo_short": "java-alloydb-connectors", diff --git a/java-alloydb-connectors/README.md b/java-alloydb-connectors/README.md index cd30c0598f02..59ee6cbba55e 100644 --- a/java-alloydb-connectors/README.md +++ b/java-alloydb-connectors/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -101,7 +101,7 @@ To get help, follow the instructions in the [shared Troubleshooting document][tr ## Transport -AlloyDB connectors uses both gRPC and HTTP/JSON for the transport layer. +AlloyDB connectors uses gRPC for the transport layer. ## Supported Java Versions @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-alloydb-connectors.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb-connectors/0.22.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb-connectors/0.23.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-alloydb/README.md b/java-alloydb/README.md index 8bfad3b8f35c..38f966a3fdca 100644 --- a/java-alloydb/README.md +++ b/java-alloydb/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-alloydb.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb/0.33.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb/0.34.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-analytics-admin/README.md b/java-analytics-admin/README.md index ada1fd61b6e4..c05454ef937e 100644 --- a/java-analytics-admin/README.md +++ b/java-analytics-admin/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.analytics/google-analytics-admin.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-admin/0.54.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-admin/0.55.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-analytics-data/README.md b/java-analytics-data/README.md index 3a71d1aaf6a6..d47443696e26 100644 --- a/java-analytics-data/README.md +++ b/java-analytics-data/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.analytics/google-analytics-data.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-data/0.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-data/0.56.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-analyticshub/README.md b/java-analyticshub/README.md index 178742c7c271..67ae73fea44c 100644 --- a/java-analyticshub/README.md +++ b/java-analyticshub/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-analyticshub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-analyticshub/0.41.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-analyticshub/0.42.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-api-gateway/README.md b/java-api-gateway/README.md index c9c7d26246e3..b6665ac55dca 100644 --- a/java-api-gateway/README.md +++ b/java-api-gateway/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-api-gateway.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-api-gateway/2.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-api-gateway/2.45.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-apigee-connect/README.md b/java-apigee-connect/README.md index ade378ca75c6..279ddd2e5073 100644 --- a/java-apigee-connect/README.md +++ b/java-apigee-connect/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apigee-connect.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-connect/2.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-connect/2.45.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-apigee-registry/README.md b/java-apigee-registry/README.md index 6b65ce808274..7102545681ec 100644 --- a/java-apigee-registry/README.md +++ b/java-apigee-registry/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apigee-registry.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-registry/0.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-registry/0.45.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-apikeys/README.md b/java-apikeys/README.md index 029ac3df11c1..44f4cd0987c7 100644 --- a/java-apikeys/README.md +++ b/java-apikeys/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apikeys.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apikeys/0.42.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apikeys/0.43.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-appengine-admin/README.md b/java-appengine-admin/README.md index 9f81922c41d8..8fdb36045ca0 100644 --- a/java-appengine-admin/README.md +++ b/java-appengine-admin/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-appengine-admin.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-appengine-admin/2.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-appengine-admin/2.45.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-apphub/README.md b/java-apphub/README.md index ea11c8efdebe..94eb1e60bfac 100644 --- a/java-apphub/README.md +++ b/java-apphub/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apphub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apphub/0.8.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apphub/0.9.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-area120-tables/README.md b/java-area120-tables/README.md index c751789ebd8a..1659bba3863c 100644 --- a/java-area120-tables/README.md +++ b/java-area120-tables/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.area120/google-area120-tables.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.area120/google-area120-tables/0.48.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.area120/google-area120-tables/0.49.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-artifact-registry/README.md b/java-artifact-registry/README.md index 9b6be0a9a0e9..08223e8413bb 100644 --- a/java-artifact-registry/README.md +++ b/java-artifact-registry/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-artifact-registry.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-artifact-registry/1.43.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-artifact-registry/1.44.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-asset/README.md b/java-asset/README.md index 21cbe11943ae..b156e0f7720f 100644 --- a/java-asset/README.md +++ b/java-asset/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-asset.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-asset/3.48.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-asset/3.49.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-assured-workloads/README.md b/java-assured-workloads/README.md index bd884e0c00f0..81c93f0ec48a 100644 --- a/java-assured-workloads/README.md +++ b/java-assured-workloads/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-assured-workloads.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-assured-workloads/2.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-assured-workloads/2.45.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-automl/README.md b/java-automl/README.md index a3b7dbc86904..6c0b15d41af8 100644 --- a/java-automl/README.md +++ b/java-automl/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -206,7 +206,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-automl.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-automl/2.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-automl/2.45.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-backupdr/README.md b/java-backupdr/README.md index 99b4ae786da3..1a26750ca509 100644 --- a/java-backupdr/README.md +++ b/java-backupdr/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-backupdr.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-backupdr/0.3.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-backupdr/0.4.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/HttpJsonBackupDRStub.java b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/HttpJsonBackupDRStub.java index 2916598da9ed..485aab212aef 100644 --- a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/HttpJsonBackupDRStub.java +++ b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/HttpJsonBackupDRStub.java @@ -393,8 +393,6 @@ public class HttpJsonBackupDRStub extends BackupDRStub { serializer.putPathParam(fields, "resource", request.getResource()); return fields; }) - .setAdditionalPaths( - "/v1/{resource=projects/*/locations/*/backupVaults/*}:testIamPermissions") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); diff --git a/java-backupdr/google-cloud-backupdr/src/main/resources/META-INF/native-image/com.google.cloud.backupdr.v1/reflect-config.json b/java-backupdr/google-cloud-backupdr/src/main/resources/META-INF/native-image/com.google.cloud.backupdr.v1/reflect-config.json index dfa0ad6347bb..7ca7409ccdab 100644 --- a/java-backupdr/google-cloud-backupdr/src/main/resources/META-INF/native-image/com.google.cloud.backupdr.v1/reflect-config.json +++ b/java-backupdr/google-cloud-backupdr/src/main/resources/META-INF/native-image/com.google.cloud.backupdr.v1/reflect-config.json @@ -1079,6 +1079,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.protobuf.BoolValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.BoolValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.BytesValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.BytesValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", "queryAllDeclaredConstructors": true, @@ -1808,6 +1844,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.protobuf.DoubleValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DoubleValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.Duration", "queryAllDeclaredConstructors": true, @@ -1862,6 +1916,78 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.protobuf.FloatValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.FloatValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Int32Value", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Int32Value$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Int64Value", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Int64Value$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.StringValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.StringValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.Timestamp", "queryAllDeclaredConstructors": true, @@ -1880,6 +2006,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.protobuf.UInt32Value", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.UInt32Value$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.UInt64Value", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.UInt64Value$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.rpc.Status", "queryAllDeclaredConstructors": true, diff --git a/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/BackupDRClientHttpJsonTest.java b/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/BackupDRClientHttpJsonTest.java index 224f55c753fe..20f798e859fc 100644 --- a/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/BackupDRClientHttpJsonTest.java +++ b/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/BackupDRClientHttpJsonTest.java @@ -44,6 +44,7 @@ import com.google.iam.v1.TestIamPermissionsResponse; import com.google.longrunning.Operation; import com.google.protobuf.Any; +import com.google.protobuf.BoolValue; import com.google.protobuf.ByteString; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; @@ -215,6 +216,8 @@ public void getManagementServerTest() throws Exception { .setWorkforceIdentityBasedOauth2ClientId( WorkforceIdentityBasedOAuth2ClientID.newBuilder().build()) .addAllBaProxyUri(new ArrayList()) + .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .build(); mockService.addResponse(expectedResponse); @@ -275,6 +278,8 @@ public void getManagementServerTest2() throws Exception { .setWorkforceIdentityBasedOauth2ClientId( WorkforceIdentityBasedOAuth2ClientID.newBuilder().build()) .addAllBaProxyUri(new ArrayList()) + .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .build(); mockService.addResponse(expectedResponse); @@ -335,6 +340,8 @@ public void createManagementServerTest() throws Exception { .setWorkforceIdentityBasedOauth2ClientId( WorkforceIdentityBasedOAuth2ClientID.newBuilder().build()) .addAllBaProxyUri(new ArrayList()) + .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -403,6 +410,8 @@ public void createManagementServerTest2() throws Exception { .setWorkforceIdentityBasedOauth2ClientId( WorkforceIdentityBasedOAuth2ClientID.newBuilder().build()) .addAllBaProxyUri(new ArrayList()) + .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .build(); Operation resultOperation = Operation.newBuilder() diff --git a/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/BackupDRClientTest.java b/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/BackupDRClientTest.java index f470e9dc982d..a683ecb337e9 100644 --- a/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/BackupDRClientTest.java +++ b/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/BackupDRClientTest.java @@ -43,6 +43,7 @@ import com.google.longrunning.Operation; import com.google.protobuf.AbstractMessage; import com.google.protobuf.Any; +import com.google.protobuf.BoolValue; import com.google.protobuf.ByteString; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; @@ -215,6 +216,8 @@ public void getManagementServerTest() throws Exception { .setWorkforceIdentityBasedOauth2ClientId( WorkforceIdentityBasedOAuth2ClientID.newBuilder().build()) .addAllBaProxyUri(new ArrayList()) + .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .build(); mockBackupDR.addResponse(expectedResponse); @@ -269,6 +272,8 @@ public void getManagementServerTest2() throws Exception { .setWorkforceIdentityBasedOauth2ClientId( WorkforceIdentityBasedOAuth2ClientID.newBuilder().build()) .addAllBaProxyUri(new ArrayList()) + .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .build(); mockBackupDR.addResponse(expectedResponse); @@ -321,6 +326,8 @@ public void createManagementServerTest() throws Exception { .setWorkforceIdentityBasedOauth2ClientId( WorkforceIdentityBasedOAuth2ClientID.newBuilder().build()) .addAllBaProxyUri(new ArrayList()) + .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -389,6 +396,8 @@ public void createManagementServerTest2() throws Exception { .setWorkforceIdentityBasedOauth2ClientId( WorkforceIdentityBasedOAuth2ClientID.newBuilder().build()) .addAllBaProxyUri(new ArrayList()) + .setSatisfiesPzs(BoolValue.newBuilder().build()) + .setSatisfiesPzi(true) .build(); Operation resultOperation = Operation.newBuilder() diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupDRProto.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupDRProto.java index 3617a4b2f8e6..7226d7200243 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupDRProto.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupDRProto.java @@ -96,112 +96,115 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "gle/api/resource.proto\032#google/longrunni" + "ng/operations.proto\032\033google/protobuf/emp" + "ty.proto\032\037google/protobuf/timestamp.prot" - + "o\"\276\001\n\rNetworkConfig\022\024\n\007network\030\001 \001(\tB\003\340A" - + "\001\022N\n\014peering_mode\030\002 \001(\01623.google.cloud.b" - + "ackupdr.v1.NetworkConfig.PeeringModeB\003\340A" - + "\001\"G\n\013PeeringMode\022\034\n\030PEERING_MODE_UNSPECI" - + "FIED\020\000\022\032\n\026PRIVATE_SERVICE_ACCESS\020\001\"6\n\rMa" - + "nagementURI\022\023\n\006web_ui\030\001 \001(\tB\003\340A\003\022\020\n\003api\030" - + "\002 \001(\tB\003\340A\003\"w\n#WorkforceIdentityBasedMana" - + "gementURI\022\'\n\032first_party_management_uri\030" - + "\001 \001(\tB\003\340A\003\022\'\n\032third_party_management_uri" - + "\030\002 \001(\tB\003\340A\003\"|\n$WorkforceIdentityBasedOAu" - + "th2ClientID\022)\n\034first_party_oauth2_client" - + "_id\030\001 \001(\tB\003\340A\003\022)\n\034third_party_oauth2_cli" - + "ent_id\030\002 \001(\tB\003\340A\003\"\375\t\n\020ManagementServer\022\024" - + "\n\004name\030\001 \001(\tB\006\340A\003\340A\010\022\030\n\013description\030\t \001(" - + "\tB\003\340A\001\022K\n\006labels\030\004 \003(\01326.google.cloud.ba" - + "ckupdr.v1.ManagementServer.LabelsEntryB\003" - + "\340A\001\0224\n\013create_time\030\002 \001(\0132\032.google.protob" - + "uf.TimestampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032" - + ".google.protobuf.TimestampB\003\340A\003\022J\n\004type\030" - + "\016 \001(\01627.google.cloud.backupdr.v1.Managem" - + "entServer.InstanceTypeB\003\340A\001\022D\n\016managemen" - + "t_uri\030\013 \001(\0132\'.google.cloud.backupdr.v1.M" - + "anagementURIB\003\340A\003\022s\n\'workforce_identity_" - + "based_management_uri\030\020 \001(\0132=.google.clou" - + "d.backupdr.v1.WorkforceIdentityBasedMana" - + "gementURIB\003\340A\003\022L\n\005state\030\007 \001(\01628.google.c" - + "loud.backupdr.v1.ManagementServer.Instan" - + "ceStateB\003\340A\003\022>\n\010networks\030\010 \003(\0132\'.google." - + "cloud.backupdr.v1.NetworkConfigB\003\340A\002\022\021\n\004" - + "etag\030\r \001(\tB\003\340A\001\022\035\n\020oauth2_client_id\030\017 \001(" - + "\tB\003\340A\003\022v\n)workforce_identity_based_oauth" - + "2_client_id\030\021 \001(\0132>.google.cloud.backupd" - + "r.v1.WorkforceIdentityBasedOAuth2ClientI" - + "DB\003\340A\003\022\031\n\014ba_proxy_uri\030\022 \003(\tB\003\340A\003\032-\n\013Lab" - + "elsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" - + "\"A\n\014InstanceType\022\035\n\031INSTANCE_TYPE_UNSPEC" - + "IFIED\020\000\022\022\n\016BACKUP_RESTORE\020\001\"\217\001\n\rInstance" - + "State\022\036\n\032INSTANCE_STATE_UNSPECIFIED\020\000\022\014\n" - + "\010CREATING\020\001\022\t\n\005READY\020\002\022\014\n\010UPDATING\020\003\022\014\n\010" - + "DELETING\020\004\022\r\n\tREPAIRING\020\005\022\017\n\013MAINTENANCE" - + "\020\006\022\t\n\005ERROR\020\007:\241\001\352A\235\001\n(backupdr.googleapi" - + "s.com/ManagementServer\022Lprojects/{projec" - + "t}/locations/{location}/managementServer" - + "s/{managementserver}*\021managementServers2" - + "\020managementServer\"\337\001\n\034ListManagementServ" - + "ersRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\022(back" - + "updr.googleapis.com/ManagementServer\022\026\n\t" - + "page_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\t" - + "B\003\340A\001\022\030\n\006filter\030\004 \001(\tB\003\340A\001H\000\210\001\001\022\032\n\010order" - + "_by\030\005 \001(\tB\003\340A\001H\001\210\001\001B\t\n\007_filterB\013\n\t_order" - + "_by\"\225\001\n\035ListManagementServersResponse\022F\n" - + "\022management_servers\030\001 \003(\0132*.google.cloud" - + ".backupdr.v1.ManagementServer\022\027\n\017next_pa" - + "ge_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\\\n\032G" - + "etManagementServerRequest\022>\n\004name\030\001 \001(\tB" - + "0\340A\002\372A*\n(backupdr.googleapis.com/Managem" - + "entServer\"\351\001\n\035CreateManagementServerRequ" - + "est\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\022(backupdr.go" - + "ogleapis.com/ManagementServer\022!\n\024managem" - + "ent_server_id\030\002 \001(\tB\003\340A\002\022J\n\021management_s" - + "erver\030\003 \001(\0132*.google.cloud.backupdr.v1.M" - + "anagementServerB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\t" - + "B\003\340A\001\"x\n\035DeleteManagementServerRequest\022>" - + "\n\004name\030\001 \001(\tB0\340A\002\372A*\n(backupdr.googleapi" - + "s.com/ManagementServer\022\027\n\nrequest_id\030\002 \001" - + "(\tB\003\340A\001\"\226\003\n\021OperationMetadata\0224\n\013create_" - + "time\030\001 \001(\0132\032.google.protobuf.TimestampB\003" - + "\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.protobuf." - + "TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004v" - + "erb\030\004 \001(\tB\003\340A\003\022\033\n\016status_message\030\005 \001(\tB\003" - + "\340A\003\022#\n\026requested_cancellation\030\006 \001(\010B\003\340A\003" - + "\022\030\n\013api_version\030\007 \001(\tB\003\340A\003\022]\n\017additional" - + "_info\030\010 \003(\0132?.google.cloud.backupdr.v1.O" - + "perationMetadata.AdditionalInfoEntryB\003\340A" - + "\003\0325\n\023AdditionalInfoEntry\022\013\n\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\0012\356\007\n\010BackupDR\022\320\001\n\025ListMa" - + "nagementServers\0226.google.cloud.backupdr." - + "v1.ListManagementServersRequest\0327.google" - + ".cloud.backupdr.v1.ListManagementServers" - + "Response\"F\332A\006parent\202\323\344\223\0027\0225/v1/{parent=p" - + "rojects/*/locations/*}/managementServers" - + "\022\275\001\n\023GetManagementServer\0224.google.cloud." - + "backupdr.v1.GetManagementServerRequest\032*" - + ".google.cloud.backupdr.v1.ManagementServ" - + "er\"D\332A\004name\202\323\344\223\0027\0225/v1/{name=projects/*/" - + "locations/*/managementServers/*}\022\233\002\n\026Cre" - + "ateManagementServer\0227.google.cloud.backu" - + "pdr.v1.CreateManagementServerRequest\032\035.g" - + "oogle.longrunning.Operation\"\250\001\312A%\n\020Manag" - + "ementServer\022\021OperationMetadata\332A-parent," - + "management_server,management_server_id\202\323" - + "\344\223\002J\"5/v1/{parent=projects/*/locations/*" - + "}/managementServers:\021management_server\022\343" - + "\001\n\026DeleteManagementServer\0227.google.cloud" - + ".backupdr.v1.DeleteManagementServerReque" - + "st\032\035.google.longrunning.Operation\"q\312A*\n\025" - + "google.protobuf.Empty\022\021OperationMetadata" - + "\332A\004name\202\323\344\223\0027*5/v1/{name=projects/*/loca" - + "tions/*/managementServers/*}\032K\312A\027backupd" - + "r.googleapis.com\322A.https://www.googleapi" - + "s.com/auth/cloud-platformB\275\001\n\034com.google" - + ".cloud.backupdr.v1B\rBackupDRProtoP\001Z8clo" - + "ud.google.com/go/backupdr/apiv1/backupdr" - + "pb;backupdrpb\252\002\030Google.Cloud.BackupDR.V1" - + "\312\002\030Google\\Cloud\\BackupDR\\V1\352\002\033Google::Cl" - + "oud::BackupDR::V1b\006proto3" + + "o\032\036google/protobuf/wrappers.proto\"\276\001\n\rNe" + + "tworkConfig\022\024\n\007network\030\001 \001(\tB\003\340A\001\022N\n\014pee" + + "ring_mode\030\002 \001(\01623.google.cloud.backupdr." + + "v1.NetworkConfig.PeeringModeB\003\340A\001\"G\n\013Pee" + + "ringMode\022\034\n\030PEERING_MODE_UNSPECIFIED\020\000\022\032" + + "\n\026PRIVATE_SERVICE_ACCESS\020\001\"6\n\rManagement" + + "URI\022\023\n\006web_ui\030\001 \001(\tB\003\340A\003\022\020\n\003api\030\002 \001(\tB\003\340" + + "A\003\"w\n#WorkforceIdentityBasedManagementUR" + + "I\022\'\n\032first_party_management_uri\030\001 \001(\tB\003\340" + + "A\003\022\'\n\032third_party_management_uri\030\002 \001(\tB\003" + + "\340A\003\"|\n$WorkforceIdentityBasedOAuth2Clien" + + "tID\022)\n\034first_party_oauth2_client_id\030\001 \001(" + + "\tB\003\340A\003\022)\n\034third_party_oauth2_client_id\030\002" + + " \001(\tB\003\340A\003\"\321\n\n\020ManagementServer\022\024\n\004name\030\001" + + " \001(\tB\006\340A\003\340A\010\022\030\n\013description\030\t \001(\tB\003\340A\001\022K" + + "\n\006labels\030\004 \003(\01326.google.cloud.backupdr.v" + + "1.ManagementServer.LabelsEntryB\003\340A\001\0224\n\013c" + + "reate_time\030\002 \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\003\022J\n\004type\030\016 \001(\01627." + + "google.cloud.backupdr.v1.ManagementServe" + + "r.InstanceTypeB\003\340A\001\022D\n\016management_uri\030\013 " + + "\001(\0132\'.google.cloud.backupdr.v1.Managemen" + + "tURIB\003\340A\003\022s\n\'workforce_identity_based_ma" + + "nagement_uri\030\020 \001(\0132=.google.cloud.backup" + + "dr.v1.WorkforceIdentityBasedManagementUR" + + "IB\003\340A\003\022L\n\005state\030\007 \001(\01628.google.cloud.bac" + + "kupdr.v1.ManagementServer.InstanceStateB" + + "\003\340A\003\022>\n\010networks\030\010 \003(\0132\'.google.cloud.ba" + + "ckupdr.v1.NetworkConfigB\003\340A\002\022\021\n\004etag\030\r \001" + + "(\tB\003\340A\001\022\035\n\020oauth2_client_id\030\017 \001(\tB\003\340A\003\022v" + + "\n)workforce_identity_based_oauth2_client" + + "_id\030\021 \001(\0132>.google.cloud.backupdr.v1.Wor" + + "kforceIdentityBasedOAuth2ClientIDB\003\340A\003\022\031" + + "\n\014ba_proxy_uri\030\022 \003(\tB\003\340A\003\0226\n\rsatisfies_p" + + "zs\030\023 \001(\0132\032.google.protobuf.BoolValueB\003\340A" + + "\003\022\032\n\rsatisfies_pzi\030\024 \001(\010B\003\340A\003\032-\n\013LabelsE" + + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"A\n\014" + + "InstanceType\022\035\n\031INSTANCE_TYPE_UNSPECIFIE" + + "D\020\000\022\022\n\016BACKUP_RESTORE\020\001\"\217\001\n\rInstanceStat" + + "e\022\036\n\032INSTANCE_STATE_UNSPECIFIED\020\000\022\014\n\010CRE" + + "ATING\020\001\022\t\n\005READY\020\002\022\014\n\010UPDATING\020\003\022\014\n\010DELE" + + "TING\020\004\022\r\n\tREPAIRING\020\005\022\017\n\013MAINTENANCE\020\006\022\t" + + "\n\005ERROR\020\007:\241\001\352A\235\001\n(backupdr.googleapis.co" + + "m/ManagementServer\022Lprojects/{project}/l" + + "ocations/{location}/managementServers/{m" + + "anagementserver}*\021managementServers2\020man" + + "agementServer\"\337\001\n\034ListManagementServersR" + + "equest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\022(backupdr" + + ".googleapis.com/ManagementServer\022\026\n\tpage" + + "_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A" + + "\001\022\030\n\006filter\030\004 \001(\tB\003\340A\001H\000\210\001\001\022\032\n\010order_by\030" + + "\005 \001(\tB\003\340A\001H\001\210\001\001B\t\n\007_filterB\013\n\t_order_by\"" + + "\225\001\n\035ListManagementServersResponse\022F\n\022man" + + "agement_servers\030\001 \003(\0132*.google.cloud.bac" + + "kupdr.v1.ManagementServer\022\027\n\017next_page_t" + + "oken\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\\\n\032GetMa" + + "nagementServerRequest\022>\n\004name\030\001 \001(\tB0\340A\002" + + "\372A*\n(backupdr.googleapis.com/ManagementS" + + "erver\"\351\001\n\035CreateManagementServerRequest\022" + + "@\n\006parent\030\001 \001(\tB0\340A\002\372A*\022(backupdr.google" + + "apis.com/ManagementServer\022!\n\024management_" + + "server_id\030\002 \001(\tB\003\340A\002\022J\n\021management_serve" + + "r\030\003 \001(\0132*.google.cloud.backupdr.v1.Manag" + + "ementServerB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A" + + "\001\"x\n\035DeleteManagementServerRequest\022>\n\004na" + + "me\030\001 \001(\tB0\340A\002\372A*\n(backupdr.googleapis.co" + + "m/ManagementServer\022\027\n\nrequest_id\030\002 \001(\tB\003" + + "\340A\001\"\226\003\n\021OperationMetadata\0224\n\013create_time" + + "\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + + "1\n\010end_time\030\002 \001(\0132\032.google.protobuf.Time" + + "stampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030" + + "\004 \001(\tB\003\340A\003\022\033\n\016status_message\030\005 \001(\tB\003\340A\003\022" + + "#\n\026requested_cancellation\030\006 \001(\010B\003\340A\003\022\030\n\013" + + "api_version\030\007 \001(\tB\003\340A\003\022]\n\017additional_inf" + + "o\030\010 \003(\0132?.google.cloud.backupdr.v1.Opera" + + "tionMetadata.AdditionalInfoEntryB\003\340A\003\0325\n" + + "\023AdditionalInfoEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + + "ue\030\002 \001(\t:\0028\0012\356\007\n\010BackupDR\022\320\001\n\025ListManage" + + "mentServers\0226.google.cloud.backupdr.v1.L" + + "istManagementServersRequest\0327.google.clo" + + "ud.backupdr.v1.ListManagementServersResp" + + "onse\"F\332A\006parent\202\323\344\223\0027\0225/v1/{parent=proje" + + "cts/*/locations/*}/managementServers\022\275\001\n" + + "\023GetManagementServer\0224.google.cloud.back" + + "updr.v1.GetManagementServerRequest\032*.goo" + + "gle.cloud.backupdr.v1.ManagementServer\"D" + + "\332A\004name\202\323\344\223\0027\0225/v1/{name=projects/*/loca" + + "tions/*/managementServers/*}\022\233\002\n\026CreateM" + + "anagementServer\0227.google.cloud.backupdr." + + "v1.CreateManagementServerRequest\032\035.googl" + + "e.longrunning.Operation\"\250\001\312A%\n\020Managemen" + + "tServer\022\021OperationMetadata\332A-parent,mana" + + "gement_server,management_server_id\202\323\344\223\002J" + + "\"5/v1/{parent=projects/*/locations/*}/ma" + + "nagementServers:\021management_server\022\343\001\n\026D" + + "eleteManagementServer\0227.google.cloud.bac" + + "kupdr.v1.DeleteManagementServerRequest\032\035" + + ".google.longrunning.Operation\"q\312A*\n\025goog" + + "le.protobuf.Empty\022\021OperationMetadata\332A\004n" + + "ame\202\323\344\223\0027*5/v1/{name=projects/*/location" + + "s/*/managementServers/*}\032K\312A\027backupdr.go" + + "ogleapis.com\322A.https://www.googleapis.co" + + "m/auth/cloud-platformB\275\001\n\034com.google.clo" + + "ud.backupdr.v1B\rBackupDRProtoP\001Z8cloud.g" + + "oogle.com/go/backupdr/apiv1/backupdrpb;b" + + "ackupdrpb\252\002\030Google.Cloud.BackupDR.V1\312\002\030G" + + "oogle\\Cloud\\BackupDR\\V1\352\002\033Google::Cloud:" + + ":BackupDR::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -214,6 +217,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.longrunning.OperationsProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), }); internal_static_google_cloud_backupdr_v1_NetworkConfig_descriptor = getDescriptor().getMessageTypes().get(0); @@ -267,6 +271,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Oauth2ClientId", "WorkforceIdentityBasedOauth2ClientId", "BaProxyUri", + "SatisfiesPzs", + "SatisfiesPzi", }); internal_static_google_cloud_backupdr_v1_ManagementServer_LabelsEntry_descriptor = internal_static_google_cloud_backupdr_v1_ManagementServer_descriptor @@ -362,6 +368,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.longrunning.OperationsProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ManagementServer.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ManagementServer.java index 5f2994f9f5b7..68f165130157 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ManagementServer.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ManagementServer.java @@ -1339,6 +1339,80 @@ public com.google.protobuf.ByteString getBaProxyUriBytes(int index) { return baProxyUri_.getByteString(index); } + public static final int SATISFIES_PZS_FIELD_NUMBER = 19; + private com.google.protobuf.BoolValue satisfiesPzs_; + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * + * .google.protobuf.BoolValue satisfies_pzs = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the satisfiesPzs field is set. + */ + @java.lang.Override + public boolean hasSatisfiesPzs() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * + * .google.protobuf.BoolValue satisfies_pzs = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public com.google.protobuf.BoolValue getSatisfiesPzs() { + return satisfiesPzs_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : satisfiesPzs_; + } + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * + * .google.protobuf.BoolValue satisfies_pzs = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder() { + return satisfiesPzs_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : satisfiesPzs_; + } + + public static final int SATISFIES_PZI_FIELD_NUMBER = 20; + private boolean satisfiesPzi_ = false; + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzi = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + @java.lang.Override + public boolean getSatisfiesPzi() { + return satisfiesPzi_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1398,6 +1472,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < baProxyUri_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 18, baProxyUri_.getRaw(i)); } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(19, getSatisfiesPzs()); + } + if (satisfiesPzi_ != false) { + output.writeBool(20, satisfiesPzi_); + } getUnknownFields().writeTo(output); } @@ -1469,6 +1549,12 @@ public int getSerializedSize() { size += dataSize; size += 2 * getBaProxyUriList().size(); } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getSatisfiesPzs()); + } + if (satisfiesPzi_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(20, satisfiesPzi_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1518,6 +1604,11 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getWorkforceIdentityBasedOauth2ClientId())) return false; } if (!getBaProxyUriList().equals(other.getBaProxyUriList())) return false; + if (hasSatisfiesPzs() != other.hasSatisfiesPzs()) return false; + if (hasSatisfiesPzs()) { + if (!getSatisfiesPzs().equals(other.getSatisfiesPzs())) return false; + } + if (getSatisfiesPzi() != other.getSatisfiesPzi()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1573,6 +1664,12 @@ public int hashCode() { hash = (37 * hash) + BA_PROXY_URI_FIELD_NUMBER; hash = (53 * hash) + getBaProxyUriList().hashCode(); } + if (hasSatisfiesPzs()) { + hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER; + hash = (53 * hash) + getSatisfiesPzs().hashCode(); + } + hash = (37 * hash) + SATISFIES_PZI_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzi()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1741,6 +1838,7 @@ private void maybeForceBuilderInitialization() { getWorkforceIdentityBasedManagementUriFieldBuilder(); getNetworksFieldBuilder(); getWorkforceIdentityBasedOauth2ClientIdFieldBuilder(); + getSatisfiesPzsFieldBuilder(); } } @@ -1788,6 +1886,12 @@ public Builder clear() { workforceIdentityBasedOauth2ClientIdBuilder_ = null; } baProxyUri_ = com.google.protobuf.LazyStringArrayList.emptyList(); + satisfiesPzs_ = null; + if (satisfiesPzsBuilder_ != null) { + satisfiesPzsBuilder_.dispose(); + satisfiesPzsBuilder_ = null; + } + satisfiesPzi_ = false; return this; } @@ -1891,6 +1995,14 @@ private void buildPartial0(com.google.cloud.backupdr.v1.ManagementServer result) baProxyUri_.makeImmutable(); result.baProxyUri_ = baProxyUri_; } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.satisfiesPzs_ = + satisfiesPzsBuilder_ == null ? satisfiesPzs_ : satisfiesPzsBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.satisfiesPzi_ = satisfiesPzi_; + } result.bitField0_ |= to_bitField0_; } @@ -2019,6 +2131,12 @@ public Builder mergeFrom(com.google.cloud.backupdr.v1.ManagementServer other) { } onChanged(); } + if (other.hasSatisfiesPzs()) { + mergeSatisfiesPzs(other.getSatisfiesPzs()); + } + if (other.getSatisfiesPzi() != false) { + setSatisfiesPzi(other.getSatisfiesPzi()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2147,6 +2265,18 @@ public Builder mergeFrom( baProxyUri_.add(s); break; } // case 146 + case 154: + { + input.readMessage(getSatisfiesPzsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00004000; + break; + } // case 154 + case 160: + { + satisfiesPzi_ = input.readBool(); + bitField0_ |= 0x00008000; + break; + } // case 160 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4656,6 +4786,262 @@ public Builder addBaProxyUriBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.BoolValue satisfiesPzs_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + satisfiesPzsBuilder_; + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * + * .google.protobuf.BoolValue satisfies_pzs = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the satisfiesPzs field is set. + */ + public boolean hasSatisfiesPzs() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * + * .google.protobuf.BoolValue satisfies_pzs = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The satisfiesPzs. + */ + public com.google.protobuf.BoolValue getSatisfiesPzs() { + if (satisfiesPzsBuilder_ == null) { + return satisfiesPzs_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : satisfiesPzs_; + } else { + return satisfiesPzsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * + * .google.protobuf.BoolValue satisfies_pzs = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSatisfiesPzs(com.google.protobuf.BoolValue value) { + if (satisfiesPzsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + satisfiesPzs_ = value; + } else { + satisfiesPzsBuilder_.setMessage(value); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * + * .google.protobuf.BoolValue satisfies_pzs = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSatisfiesPzs(com.google.protobuf.BoolValue.Builder builderForValue) { + if (satisfiesPzsBuilder_ == null) { + satisfiesPzs_ = builderForValue.build(); + } else { + satisfiesPzsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * + * .google.protobuf.BoolValue satisfies_pzs = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeSatisfiesPzs(com.google.protobuf.BoolValue value) { + if (satisfiesPzsBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0) + && satisfiesPzs_ != null + && satisfiesPzs_ != com.google.protobuf.BoolValue.getDefaultInstance()) { + getSatisfiesPzsBuilder().mergeFrom(value); + } else { + satisfiesPzs_ = value; + } + } else { + satisfiesPzsBuilder_.mergeFrom(value); + } + if (satisfiesPzs_ != null) { + bitField0_ |= 0x00004000; + onChanged(); + } + return this; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * + * .google.protobuf.BoolValue satisfies_pzs = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSatisfiesPzs() { + bitField0_ = (bitField0_ & ~0x00004000); + satisfiesPzs_ = null; + if (satisfiesPzsBuilder_ != null) { + satisfiesPzsBuilder_.dispose(); + satisfiesPzsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * + * .google.protobuf.BoolValue satisfies_pzs = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.BoolValue.Builder getSatisfiesPzsBuilder() { + bitField0_ |= 0x00004000; + onChanged(); + return getSatisfiesPzsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * + * .google.protobuf.BoolValue satisfies_pzs = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder() { + if (satisfiesPzsBuilder_ != null) { + return satisfiesPzsBuilder_.getMessageOrBuilder(); + } else { + return satisfiesPzs_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : satisfiesPzs_; + } + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * + * .google.protobuf.BoolValue satisfies_pzs = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + getSatisfiesPzsFieldBuilder() { + if (satisfiesPzsBuilder_ == null) { + satisfiesPzsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getSatisfiesPzs(), getParentForChildren(), isClean()); + satisfiesPzs_ = null; + } + return satisfiesPzsBuilder_; + } + + private boolean satisfiesPzi_; + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzi = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + @java.lang.Override + public boolean getSatisfiesPzi() { + return satisfiesPzi_; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzi = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The satisfiesPzi to set. + * @return This builder for chaining. + */ + public Builder setSatisfiesPzi(boolean value) { + + satisfiesPzi_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzi = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSatisfiesPzi() { + bitField0_ = (bitField0_ & ~0x00008000); + satisfiesPzi_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ManagementServerOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ManagementServerOrBuilder.java index b2775b7efb67..9fd2e0c3cca5 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ManagementServerOrBuilder.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/ManagementServerOrBuilder.java @@ -601,4 +601,58 @@ java.lang.String getLabelsOrDefault( * @return The bytes of the baProxyUri at the given index. */ com.google.protobuf.ByteString getBaProxyUriBytes(int index); + + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * + * .google.protobuf.BoolValue satisfies_pzs = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the satisfiesPzs field is set. + */ + boolean hasSatisfiesPzs(); + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * + * .google.protobuf.BoolValue satisfies_pzs = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The satisfiesPzs. + */ + com.google.protobuf.BoolValue getSatisfiesPzs(); + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * + * .google.protobuf.BoolValue satisfies_pzs = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.BoolValueOrBuilder getSatisfiesPzsOrBuilder(); + + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzi = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + boolean getSatisfiesPzi(); } diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupdr.proto b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupdr.proto index 4756903fbd42..42b798458b1e 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupdr.proto +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupdr.proto @@ -23,6 +23,7 @@ import "google/api/resource.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/timestamp.proto"; +import "google/protobuf/wrappers.proto"; option csharp_namespace = "Google.Cloud.BackupDR.V1"; option go_package = "cloud.google.com/go/backupdr/apiv1/backupdrpb;backupdrpb"; @@ -248,6 +249,13 @@ message ManagementServer { // Output only. The hostname or ip address of the exposed AGM endpoints, used // by BAs to connect to BA proxy. repeated string ba_proxy_uri = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + google.protobuf.BoolValue satisfies_pzs = 19 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzi = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Request message for listing management servers. diff --git a/java-bare-metal-solution/README.md b/java-bare-metal-solution/README.md index b8539126bca3..96c0c64d570d 100644 --- a/java-bare-metal-solution/README.md +++ b/java-bare-metal-solution/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bare-metal-solution.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bare-metal-solution/0.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bare-metal-solution/0.45.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-batch/README.md b/java-batch/README.md index fe6017132e60..b701caf063c2 100644 --- a/java-batch/README.md +++ b/java-batch/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import diff --git a/java-beyondcorp-appconnections/README.md b/java-beyondcorp-appconnections/README.md index c4b11109e75f..0089c2c7979c 100644 --- a/java-beyondcorp-appconnections/README.md +++ b/java-beyondcorp-appconnections/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-beyondcorp-appconnections.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnections/0.42.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnections/0.43.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-beyondcorp-appconnectors/README.md b/java-beyondcorp-appconnectors/README.md index 82a86fa6186e..12253c9c0c3f 100644 --- a/java-beyondcorp-appconnectors/README.md +++ b/java-beyondcorp-appconnectors/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-beyondcorp-appconnectors.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnectors/0.42.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnectors/0.43.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-beyondcorp-appgateways/README.md b/java-beyondcorp-appgateways/README.md index 3ee38c8933b2..3323f44094ca 100644 --- a/java-beyondcorp-appgateways/README.md +++ b/java-beyondcorp-appgateways/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-beyondcorp-appgateways.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appgateways/0.42.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appgateways/0.43.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-beyondcorp-clientconnectorservices/README.md b/java-beyondcorp-clientconnectorservices/README.md index 2f6dd7f96f24..32765f22c342 100644 --- a/java-beyondcorp-clientconnectorservices/README.md +++ b/java-beyondcorp-clientconnectorservices/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-beyondcorp-clientconnectorservices.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientconnectorservices/0.42.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientconnectorservices/0.43.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-beyondcorp-clientgateways/README.md b/java-beyondcorp-clientgateways/README.md index 26b97cec2d59..9b328334049e 100644 --- a/java-beyondcorp-clientgateways/README.md +++ b/java-beyondcorp-clientgateways/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-beyondcorp-clientgateways.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientgateways/0.42.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientgateways/0.43.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-biglake/README.md b/java-biglake/README.md index 3cc44090f150..d00851e7c052 100644 --- a/java-biglake/README.md +++ b/java-biglake/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-biglake.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-biglake/0.32.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-biglake/0.33.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigquery-data-exchange/README.md b/java-bigquery-data-exchange/README.md index 8bbc8e47a738..601a85348153 100644 --- a/java-bigquery-data-exchange/README.md +++ b/java-bigquery-data-exchange/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquery-data-exchange.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery-data-exchange/2.39.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery-data-exchange/2.40.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigqueryconnection/README.md b/java-bigqueryconnection/README.md index 3652adefe79f..4bf0452a1ed0 100644 --- a/java-bigqueryconnection/README.md +++ b/java-bigqueryconnection/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigqueryconnection.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryconnection/2.46.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryconnection/2.47.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigquerydatapolicy/README.md b/java-bigquerydatapolicy/README.md index 1674a5b8ee0d..cb01370d5dc7 100644 --- a/java-bigquerydatapolicy/README.md +++ b/java-bigquerydatapolicy/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquerydatapolicy.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatapolicy/0.41.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatapolicy/0.42.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigquerydatatransfer/README.md b/java-bigquerydatatransfer/README.md index a8cb212f820a..309d48e4a66a 100644 --- a/java-bigquerydatatransfer/README.md +++ b/java-bigquerydatatransfer/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquerydatatransfer.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatatransfer/2.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatatransfer/2.45.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigquerymigration/README.md b/java-bigquerymigration/README.md index 78ef0b3b2aa1..ceab1b30f2f3 100644 --- a/java-bigquerymigration/README.md +++ b/java-bigquerymigration/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquerymigration.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerymigration/0.47.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerymigration/0.48.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigqueryreservation/README.md b/java-bigqueryreservation/README.md index b75f29a2e4d7..7193b22a73ca 100644 --- a/java-bigqueryreservation/README.md +++ b/java-bigqueryreservation/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigqueryreservation.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryreservation/2.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryreservation/2.46.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-billing/README.md b/java-billing/README.md index 7d15fc791ca9..3327a37a6227 100644 --- a/java-billing/README.md +++ b/java-billing/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-billing.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billing/2.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billing/2.45.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogClient.java b/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogClient.java index d3d03623a2c8..bc7b18c7e9c6 100644 --- a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogClient.java +++ b/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogClient.java @@ -352,7 +352,7 @@ public final UnaryCallable listServic * } * } * - * @param parent Required. The name of the service. Example: "services/DA34-426B-A397" + * @param parent Required. The name of the service. Example: "services/6F81-5844-456A" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSkusPagedResponse listSkus(ServiceName parent) { @@ -381,7 +381,7 @@ public final ListSkusPagedResponse listSkus(ServiceName parent) { * } * } * - * @param parent Required. The name of the service. Example: "services/DA34-426B-A397" + * @param parent Required. The name of the service. Example: "services/6F81-5844-456A" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListSkusPagedResponse listSkus(String parent) { diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequest.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequest.java index 4e1095aab7cd..318aacdf1904 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequest.java +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequest.java @@ -75,7 +75,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. The name of the service.
-   * Example: "services/DA34-426B-A397"
+   * Example: "services/6F81-5844-456A"
    * 
* * @@ -101,7 +101,7 @@ public java.lang.String getParent() { * *
    * Required. The name of the service.
-   * Example: "services/DA34-426B-A397"
+   * Example: "services/6F81-5844-456A"
    * 
* * @@ -866,7 +866,7 @@ public Builder mergeFrom( * *
      * Required. The name of the service.
-     * Example: "services/DA34-426B-A397"
+     * Example: "services/6F81-5844-456A"
      * 
* * @@ -891,7 +891,7 @@ public java.lang.String getParent() { * *
      * Required. The name of the service.
-     * Example: "services/DA34-426B-A397"
+     * Example: "services/6F81-5844-456A"
      * 
* * @@ -916,7 +916,7 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * Required. The name of the service.
-     * Example: "services/DA34-426B-A397"
+     * Example: "services/6F81-5844-456A"
      * 
* * @@ -940,7 +940,7 @@ public Builder setParent(java.lang.String value) { * *
      * Required. The name of the service.
-     * Example: "services/DA34-426B-A397"
+     * Example: "services/6F81-5844-456A"
      * 
* * @@ -960,7 +960,7 @@ public Builder clearParent() { * *
      * Required. The name of the service.
-     * Example: "services/DA34-426B-A397"
+     * Example: "services/6F81-5844-456A"
      * 
* * diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequestOrBuilder.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequestOrBuilder.java index 5bd89f1020c5..767d289d3aac 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequestOrBuilder.java +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ListSkusRequestOrBuilder.java @@ -29,7 +29,7 @@ public interface ListSkusRequestOrBuilder * *
    * Required. The name of the service.
-   * Example: "services/DA34-426B-A397"
+   * Example: "services/6F81-5844-456A"
    * 
* * @@ -44,7 +44,7 @@ public interface ListSkusRequestOrBuilder * *
    * Required. The name of the service.
-   * Example: "services/DA34-426B-A397"
+   * Example: "services/6F81-5844-456A"
    * 
* * diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Service.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Service.java index b09a0cf23357..ef2c9a59fc65 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Service.java +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Service.java @@ -75,7 +75,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * The resource name for the service.
-   * Example: "services/DA34-426B-A397"
+   * Example: "services/6F81-5844-456A"
    * 
* * string name = 1; @@ -99,7 +99,7 @@ public java.lang.String getName() { * *
    * The resource name for the service.
-   * Example: "services/DA34-426B-A397"
+   * Example: "services/6F81-5844-456A"
    * 
* * string name = 1; @@ -128,7 +128,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
    * The identifier for the service.
-   * Example: "DA34-426B-A397"
+   * Example: "6F81-5844-456A"
    * 
* * string service_id = 2; @@ -152,7 +152,7 @@ public java.lang.String getServiceId() { * *
    * The identifier for the service.
-   * Example: "DA34-426B-A397"
+   * Example: "6F81-5844-456A"
    * 
* * string service_id = 2; @@ -692,7 +692,7 @@ public Builder mergeFrom( * *
      * The resource name for the service.
-     * Example: "services/DA34-426B-A397"
+     * Example: "services/6F81-5844-456A"
      * 
* * string name = 1; @@ -715,7 +715,7 @@ public java.lang.String getName() { * *
      * The resource name for the service.
-     * Example: "services/DA34-426B-A397"
+     * Example: "services/6F81-5844-456A"
      * 
* * string name = 1; @@ -738,7 +738,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * The resource name for the service.
-     * Example: "services/DA34-426B-A397"
+     * Example: "services/6F81-5844-456A"
      * 
* * string name = 1; @@ -760,7 +760,7 @@ public Builder setName(java.lang.String value) { * *
      * The resource name for the service.
-     * Example: "services/DA34-426B-A397"
+     * Example: "services/6F81-5844-456A"
      * 
* * string name = 1; @@ -778,7 +778,7 @@ public Builder clearName() { * *
      * The resource name for the service.
-     * Example: "services/DA34-426B-A397"
+     * Example: "services/6F81-5844-456A"
      * 
* * string name = 1; @@ -803,7 +803,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * *
      * The identifier for the service.
-     * Example: "DA34-426B-A397"
+     * Example: "6F81-5844-456A"
      * 
* * string service_id = 2; @@ -826,7 +826,7 @@ public java.lang.String getServiceId() { * *
      * The identifier for the service.
-     * Example: "DA34-426B-A397"
+     * Example: "6F81-5844-456A"
      * 
* * string service_id = 2; @@ -849,7 +849,7 @@ public com.google.protobuf.ByteString getServiceIdBytes() { * *
      * The identifier for the service.
-     * Example: "DA34-426B-A397"
+     * Example: "6F81-5844-456A"
      * 
* * string service_id = 2; @@ -871,7 +871,7 @@ public Builder setServiceId(java.lang.String value) { * *
      * The identifier for the service.
-     * Example: "DA34-426B-A397"
+     * Example: "6F81-5844-456A"
      * 
* * string service_id = 2; @@ -889,7 +889,7 @@ public Builder clearServiceId() { * *
      * The identifier for the service.
-     * Example: "DA34-426B-A397"
+     * Example: "6F81-5844-456A"
      * 
* * string service_id = 2; diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ServiceOrBuilder.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ServiceOrBuilder.java index a9f21110bf31..f690cabc9ffb 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ServiceOrBuilder.java +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/ServiceOrBuilder.java @@ -29,7 +29,7 @@ public interface ServiceOrBuilder * *
    * The resource name for the service.
-   * Example: "services/DA34-426B-A397"
+   * Example: "services/6F81-5844-456A"
    * 
* * string name = 1; @@ -42,7 +42,7 @@ public interface ServiceOrBuilder * *
    * The resource name for the service.
-   * Example: "services/DA34-426B-A397"
+   * Example: "services/6F81-5844-456A"
    * 
* * string name = 1; @@ -56,7 +56,7 @@ public interface ServiceOrBuilder * *
    * The identifier for the service.
-   * Example: "DA34-426B-A397"
+   * Example: "6F81-5844-456A"
    * 
* * string service_id = 2; @@ -69,7 +69,7 @@ public interface ServiceOrBuilder * *
    * The identifier for the service.
-   * Example: "DA34-426B-A397"
+   * Example: "6F81-5844-456A"
    * 
* * string service_id = 2; diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Sku.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Sku.java index 437f1a00531b..d0755ab3501c 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Sku.java +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/Sku.java @@ -23,7 +23,7 @@ * * *
- * Encapsulates a single SKU in Google Cloud Platform
+ * Encapsulates a single SKU in Google Cloud
  * 
* * Protobuf type {@code google.cloud.billing.v1.Sku} @@ -77,7 +77,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * The resource name for the SKU.
-   * Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"
+   * Example: "services/6F81-5844-456A/skus/D041-B8A1-6E0B"
    * 
* * string name = 1; @@ -101,7 +101,7 @@ public java.lang.String getName() { * *
    * The resource name for the SKU.
-   * Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"
+   * Example: "services/6F81-5844-456A/skus/D041-B8A1-6E0B"
    * 
* * string name = 1; @@ -130,7 +130,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
    * The identifier for the SKU.
-   * Example: "AA95-CD31-42FE"
+   * Example: "D041-B8A1-6E0B"
    * 
* * string sku_id = 2; @@ -154,7 +154,7 @@ public java.lang.String getSkuId() { * *
    * The identifier for the SKU.
-   * Example: "AA95-CD31-42FE"
+   * Example: "D041-B8A1-6E0B"
    * 
* * string sku_id = 2; @@ -766,7 +766,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Encapsulates a single SKU in Google Cloud Platform
+   * Encapsulates a single SKU in Google Cloud
    * 
* * Protobuf type {@code google.cloud.billing.v1.Sku} @@ -1125,7 +1125,7 @@ public Builder mergeFrom( * *
      * The resource name for the SKU.
-     * Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"
+     * Example: "services/6F81-5844-456A/skus/D041-B8A1-6E0B"
      * 
* * string name = 1; @@ -1148,7 +1148,7 @@ public java.lang.String getName() { * *
      * The resource name for the SKU.
-     * Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"
+     * Example: "services/6F81-5844-456A/skus/D041-B8A1-6E0B"
      * 
* * string name = 1; @@ -1171,7 +1171,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * The resource name for the SKU.
-     * Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"
+     * Example: "services/6F81-5844-456A/skus/D041-B8A1-6E0B"
      * 
* * string name = 1; @@ -1193,7 +1193,7 @@ public Builder setName(java.lang.String value) { * *
      * The resource name for the SKU.
-     * Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"
+     * Example: "services/6F81-5844-456A/skus/D041-B8A1-6E0B"
      * 
* * string name = 1; @@ -1211,7 +1211,7 @@ public Builder clearName() { * *
      * The resource name for the SKU.
-     * Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"
+     * Example: "services/6F81-5844-456A/skus/D041-B8A1-6E0B"
      * 
* * string name = 1; @@ -1236,7 +1236,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * *
      * The identifier for the SKU.
-     * Example: "AA95-CD31-42FE"
+     * Example: "D041-B8A1-6E0B"
      * 
* * string sku_id = 2; @@ -1259,7 +1259,7 @@ public java.lang.String getSkuId() { * *
      * The identifier for the SKU.
-     * Example: "AA95-CD31-42FE"
+     * Example: "D041-B8A1-6E0B"
      * 
* * string sku_id = 2; @@ -1282,7 +1282,7 @@ public com.google.protobuf.ByteString getSkuIdBytes() { * *
      * The identifier for the SKU.
-     * Example: "AA95-CD31-42FE"
+     * Example: "D041-B8A1-6E0B"
      * 
* * string sku_id = 2; @@ -1304,7 +1304,7 @@ public Builder setSkuId(java.lang.String value) { * *
      * The identifier for the SKU.
-     * Example: "AA95-CD31-42FE"
+     * Example: "D041-B8A1-6E0B"
      * 
* * string sku_id = 2; @@ -1322,7 +1322,7 @@ public Builder clearSkuId() { * *
      * The identifier for the SKU.
-     * Example: "AA95-CD31-42FE"
+     * Example: "D041-B8A1-6E0B"
      * 
* * string sku_id = 2; diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/SkuOrBuilder.java b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/SkuOrBuilder.java index 564e5ba919b3..3f2837242a8e 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/SkuOrBuilder.java +++ b/java-billing/proto-google-cloud-billing-v1/src/main/java/com/google/cloud/billing/v1/SkuOrBuilder.java @@ -29,7 +29,7 @@ public interface SkuOrBuilder * *
    * The resource name for the SKU.
-   * Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"
+   * Example: "services/6F81-5844-456A/skus/D041-B8A1-6E0B"
    * 
* * string name = 1; @@ -42,7 +42,7 @@ public interface SkuOrBuilder * *
    * The resource name for the SKU.
-   * Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE"
+   * Example: "services/6F81-5844-456A/skus/D041-B8A1-6E0B"
    * 
* * string name = 1; @@ -56,7 +56,7 @@ public interface SkuOrBuilder * *
    * The identifier for the SKU.
-   * Example: "AA95-CD31-42FE"
+   * Example: "D041-B8A1-6E0B"
    * 
* * string sku_id = 2; @@ -69,7 +69,7 @@ public interface SkuOrBuilder * *
    * The identifier for the SKU.
-   * Example: "AA95-CD31-42FE"
+   * Example: "D041-B8A1-6E0B"
    * 
* * string sku_id = 2; diff --git a/java-billing/proto-google-cloud-billing-v1/src/main/proto/google/cloud/billing/v1/cloud_catalog.proto b/java-billing/proto-google-cloud-billing-v1/src/main/proto/google/cloud/billing/v1/cloud_catalog.proto index 6eafe9da439d..5ddcec636fce 100644 --- a/java-billing/proto-google-cloud-billing-v1/src/main/proto/google/cloud/billing/v1/cloud_catalog.proto +++ b/java-billing/proto-google-cloud-billing-v1/src/main/proto/google/cloud/billing/v1/cloud_catalog.proto @@ -65,11 +65,11 @@ message Service { }; // The resource name for the service. - // Example: "services/DA34-426B-A397" + // Example: "services/6F81-5844-456A" string name = 1; // The identifier for the service. - // Example: "DA34-426B-A397" + // Example: "6F81-5844-456A" string service_id = 2; // A human readable display name for this service. @@ -80,7 +80,7 @@ message Service { string business_entity_name = 4; } -// Encapsulates a single SKU in Google Cloud Platform +// Encapsulates a single SKU in Google Cloud message Sku { option (google.api.resource) = { type: "cloudbilling.googleapis.com/Sku" @@ -88,11 +88,11 @@ message Sku { }; // The resource name for the SKU. - // Example: "services/DA34-426B-A397/skus/AA95-CD31-42FE" + // Example: "services/6F81-5844-456A/skus/D041-B8A1-6E0B" string name = 1; // The identifier for the SKU. - // Example: "AA95-CD31-42FE" + // Example: "D041-B8A1-6E0B" string sku_id = 2; // A human readable description of the SKU, has a maximum length of 256 @@ -313,7 +313,7 @@ message ListServicesResponse { // Request message for `ListSkus`. message ListSkusRequest { // Required. The name of the service. - // Example: "services/DA34-426B-A397" + // Example: "services/6F81-5844-456A" string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/java-billingbudgets/README.md b/java-billingbudgets/README.md index f2e73b8802b0..108ceab16556 100644 --- a/java-billingbudgets/README.md +++ b/java-billingbudgets/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-billingbudgets.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billingbudgets/2.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billingbudgets/2.45.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-binary-authorization/README.md b/java-binary-authorization/README.md index c1e4f49f33ae..6ade83ffb0ee 100644 --- a/java-binary-authorization/README.md +++ b/java-binary-authorization/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-binary-authorization.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-binary-authorization/1.43.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-binary-authorization/1.44.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-certificate-manager/README.md b/java-certificate-manager/README.md index 22e952d91f8b..d6b52e365fc9 100644 --- a/java-certificate-manager/README.md +++ b/java-certificate-manager/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-certificate-manager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-certificate-manager/0.47.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-certificate-manager/0.48.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-channel/README.md b/java-channel/README.md index ffc41ba5935d..fb47bd3c440e 100644 --- a/java-channel/README.md +++ b/java-channel/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-channel.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-channel/3.48.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-channel/3.49.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-chat/README.md b/java-chat/README.md index c0c04fb65fa2..e5087f95c1e8 100644 --- a/java-chat/README.md +++ b/java-chat/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-chat.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chat/0.8.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chat/0.9.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-cloudbuild/README.md b/java-cloudbuild/README.md index e54aeabf37f6..55c9e6d39eab 100644 --- a/java-cloudbuild/README.md +++ b/java-cloudbuild/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-build.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-build/3.46.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-build/3.47.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-cloudcommerceconsumerprocurement/README.md b/java-cloudcommerceconsumerprocurement/README.md index a1b4113ce80b..a827c0e02004 100644 --- a/java-cloudcommerceconsumerprocurement/README.md +++ b/java-cloudcommerceconsumerprocurement/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-cloudcommerceconsumerprocurement.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcommerceconsumerprocurement/0.42.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcommerceconsumerprocurement/0.43.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-cloudcontrolspartner/README.md b/java-cloudcontrolspartner/README.md index 879392ea46f8..e41e3930cbf1 100644 --- a/java-cloudcontrolspartner/README.md +++ b/java-cloudcontrolspartner/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-cloudcontrolspartner.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcontrolspartner/0.8.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcontrolspartner/0.9.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1/CloudControlsPartnerCoreClient.java b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1/CloudControlsPartnerCoreClient.java index 740b36c91725..24bfdd2207aa 100644 --- a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1/CloudControlsPartnerCoreClient.java +++ b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1/CloudControlsPartnerCoreClient.java @@ -182,7 +182,7 @@ * * *

ListAccessApprovalRequests - *

Lists access requests associated with a workload + *

Deprecated: Only returns access approval requests directly associated with an assured workload folder. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    @@ -1171,7 +1171,8 @@ public final PartnerPermissions getPartnerPermissions(GetPartnerPermissionsReque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists access requests associated with a workload + * Deprecated: Only returns access approval requests directly associated with an assured workload + * folder. * *

    Sample code: * @@ -1195,7 +1196,9 @@ public final PartnerPermissions getPartnerPermissions(GetPartnerPermissionsReque * @param parent Required. Parent resource Format: * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final ListAccessApprovalRequestsPagedResponse listAccessApprovalRequests( WorkloadName parent) { ListAccessApprovalRequestsRequest request = @@ -1207,7 +1210,8 @@ public final ListAccessApprovalRequestsPagedResponse listAccessApprovalRequests( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists access requests associated with a workload + * Deprecated: Only returns access approval requests directly associated with an assured workload + * folder. * *

    Sample code: * @@ -1231,7 +1235,9 @@ public final ListAccessApprovalRequestsPagedResponse listAccessApprovalRequests( * @param parent Required. Parent resource Format: * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final ListAccessApprovalRequestsPagedResponse listAccessApprovalRequests(String parent) { ListAccessApprovalRequestsRequest request = ListAccessApprovalRequestsRequest.newBuilder().setParent(parent).build(); @@ -1240,7 +1246,8 @@ public final ListAccessApprovalRequestsPagedResponse listAccessApprovalRequests( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists access requests associated with a workload + * Deprecated: Only returns access approval requests directly associated with an assured workload + * folder. * *

    Sample code: * @@ -1271,7 +1278,9 @@ public final ListAccessApprovalRequestsPagedResponse listAccessApprovalRequests( * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final ListAccessApprovalRequestsPagedResponse listAccessApprovalRequests( ListAccessApprovalRequestsRequest request) { return listAccessApprovalRequestsPagedCallable().call(request); @@ -1279,7 +1288,8 @@ public final ListAccessApprovalRequestsPagedResponse listAccessApprovalRequests( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists access requests associated with a workload + * Deprecated: Only returns access approval requests directly associated with an assured workload + * folder. * *

    Sample code: * @@ -1311,7 +1321,10 @@ public final ListAccessApprovalRequestsPagedResponse listAccessApprovalRequests( * } * } * } + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final UnaryCallable< ListAccessApprovalRequestsRequest, ListAccessApprovalRequestsPagedResponse> listAccessApprovalRequestsPagedCallable() { @@ -1320,7 +1333,8 @@ public final ListAccessApprovalRequestsPagedResponse listAccessApprovalRequests( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists access requests associated with a workload + * Deprecated: Only returns access approval requests directly associated with an assured workload + * folder. * *

    Sample code: * @@ -1357,7 +1371,10 @@ public final ListAccessApprovalRequestsPagedResponse listAccessApprovalRequests( * } * } * } + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final UnaryCallable listAccessApprovalRequestsCallable() { return stub.listAccessApprovalRequestsCallable(); diff --git a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1/CloudControlsPartnerCoreSettings.java b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1/CloudControlsPartnerCoreSettings.java index bea80d7afa91..f02176b41acf 100644 --- a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1/CloudControlsPartnerCoreSettings.java +++ b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1/CloudControlsPartnerCoreSettings.java @@ -114,7 +114,12 @@ public UnaryCallSettings getEkmConnect .getPartnerPermissionsSettings(); } - /** Returns the object with the settings used for calls to listAccessApprovalRequests. */ + /** + * Returns the object with the settings used for calls to listAccessApprovalRequests. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public PagedCallSettings< ListAccessApprovalRequestsRequest, ListAccessApprovalRequestsResponse, @@ -278,7 +283,12 @@ public UnaryCallSettings.Builder getCustomerSettin return getStubSettingsBuilder().getPartnerPermissionsSettings(); } - /** Returns the builder for the settings used for calls to listAccessApprovalRequests. */ + /** + * Returns the builder for the settings used for calls to listAccessApprovalRequests. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public PagedCallSettings.Builder< ListAccessApprovalRequestsRequest, ListAccessApprovalRequestsResponse, diff --git a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1/stub/CloudControlsPartnerCoreStub.java b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1/stub/CloudControlsPartnerCoreStub.java index f8d7e78df13d..887400d4a9d4 100644 --- a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1/stub/CloudControlsPartnerCoreStub.java +++ b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1/stub/CloudControlsPartnerCoreStub.java @@ -84,12 +84,14 @@ public UnaryCallable getEkmConnections throw new UnsupportedOperationException("Not implemented: getPartnerPermissionsCallable()"); } + @Deprecated public UnaryCallable listAccessApprovalRequestsPagedCallable() { throw new UnsupportedOperationException( "Not implemented: listAccessApprovalRequestsPagedCallable()"); } + @Deprecated public UnaryCallable listAccessApprovalRequestsCallable() { throw new UnsupportedOperationException( diff --git a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1/stub/CloudControlsPartnerCoreStubSettings.java b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1/stub/CloudControlsPartnerCoreStubSettings.java index 3da2b05f9a85..05bfc1d24213 100644 --- a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1/stub/CloudControlsPartnerCoreStubSettings.java +++ b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1/stub/CloudControlsPartnerCoreStubSettings.java @@ -352,7 +352,12 @@ public UnaryCallSettings getEkmConnect return getPartnerPermissionsSettings; } - /** Returns the object with the settings used for calls to listAccessApprovalRequests. */ + /** + * Returns the object with the settings used for calls to listAccessApprovalRequests. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public PagedCallSettings< ListAccessApprovalRequestsRequest, ListAccessApprovalRequestsResponse, @@ -716,7 +721,12 @@ public UnaryCallSettings.Builder getCustomerSettin return getPartnerPermissionsSettings; } - /** Returns the builder for the settings used for calls to listAccessApprovalRequests. */ + /** + * Returns the builder for the settings used for calls to listAccessApprovalRequests. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public PagedCallSettings.Builder< ListAccessApprovalRequestsRequest, ListAccessApprovalRequestsResponse, diff --git a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerCoreClient.java b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerCoreClient.java index c04ac327ffad..4a3f0c725b08 100644 --- a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerCoreClient.java +++ b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerCoreClient.java @@ -183,7 +183,7 @@ * * *

    ListAccessApprovalRequests - *

    Lists access requests associated with a workload + *

    Deprecated: Only returns access approval requests directly associated with an assured workload folder. * *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    *
      @@ -352,7 +352,7 @@ public CloudControlsPartnerCoreStub getStub() { * } * * @param name Required. Format: - * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload} + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Workload getWorkload(WorkloadName name) { @@ -382,7 +382,7 @@ public final Workload getWorkload(WorkloadName name) { * } * * @param name Required. Format: - * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload} + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Workload getWorkload(String name) { @@ -474,7 +474,7 @@ public final UnaryCallable getWorkloadCallable() { * } * * @param parent Required. Parent resource Format: - * organizations/{organization}/locations/{location}/customers/{customer} + * `organizations/{organization}/locations/{location}/customers/{customer}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListWorkloadsPagedResponse listWorkloads(CustomerName parent) { @@ -507,7 +507,7 @@ public final ListWorkloadsPagedResponse listWorkloads(CustomerName parent) { * } * * @param parent Required. Parent resource Format: - * organizations/{organization}/locations/{location}/customers/{customer} + * `organizations/{organization}/locations/{location}/customers/{customer}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListWorkloadsPagedResponse listWorkloads(String parent) { @@ -648,7 +648,7 @@ public final UnaryCallable listWork * } * * @param name Required. Format: - * organizations/{organization}/locations/{location}/customers/{customer} + * `organizations/{organization}/locations/{location}/customers/{customer}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Customer getCustomer(CustomerName name) { @@ -677,7 +677,7 @@ public final Customer getCustomer(CustomerName name) { * } * * @param name Required. Format: - * organizations/{organization}/locations/{location}/customers/{customer} + * `organizations/{organization}/locations/{location}/customers/{customer}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Customer getCustomer(String name) { @@ -765,7 +765,7 @@ public final UnaryCallable getCustomerCallable() { * } * * @param parent Required. Parent resource Format: - * organizations/{organization}/locations/{location} + * `organizations/{organization}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListCustomersPagedResponse listCustomers(OrganizationLocationName parent) { @@ -798,7 +798,7 @@ public final ListCustomersPagedResponse listCustomers(OrganizationLocationName p * } * * @param parent Required. Parent resource Format: - * organizations/{organization}/locations/{location} + * `organizations/{organization}/locations/{location}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListCustomersPagedResponse listCustomers(String parent) { @@ -940,7 +940,7 @@ public final UnaryCallable listCust * } * * @param name Required. Format: - * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final EkmConnections getEkmConnections(EkmConnectionsName name) { @@ -973,7 +973,7 @@ public final EkmConnections getEkmConnections(EkmConnectionsName name) { * } * * @param name Required. Format: - * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final EkmConnections getEkmConnections(String name) { @@ -1064,7 +1064,7 @@ public final UnaryCallable getEkmConne * } * * @param name Required. Name of the resource to get in the format: - * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final PartnerPermissions getPartnerPermissions(PartnerPermissionsName name) { @@ -1097,7 +1097,7 @@ public final PartnerPermissions getPartnerPermissions(PartnerPermissionsName nam * } * * @param name Required. Name of the resource to get in the format: - * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final PartnerPermissions getPartnerPermissions(String name) { @@ -1173,7 +1173,8 @@ public final PartnerPermissions getPartnerPermissions(GetPartnerPermissionsReque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists access requests associated with a workload + * Deprecated: Only returns access approval requests directly associated with an assured workload + * folder. * *

      Sample code: * @@ -1195,9 +1196,11 @@ public final PartnerPermissions getPartnerPermissions(GetPartnerPermissionsReque * } * * @param parent Required. Parent resource Format: - * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload} + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final ListAccessApprovalRequestsPagedResponse listAccessApprovalRequests( WorkloadName parent) { ListAccessApprovalRequestsRequest request = @@ -1209,7 +1212,8 @@ public final ListAccessApprovalRequestsPagedResponse listAccessApprovalRequests( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists access requests associated with a workload + * Deprecated: Only returns access approval requests directly associated with an assured workload + * folder. * *

      Sample code: * @@ -1231,9 +1235,11 @@ public final ListAccessApprovalRequestsPagedResponse listAccessApprovalRequests( * } * * @param parent Required. Parent resource Format: - * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload} + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final ListAccessApprovalRequestsPagedResponse listAccessApprovalRequests(String parent) { ListAccessApprovalRequestsRequest request = ListAccessApprovalRequestsRequest.newBuilder().setParent(parent).build(); @@ -1242,7 +1248,8 @@ public final ListAccessApprovalRequestsPagedResponse listAccessApprovalRequests( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists access requests associated with a workload + * Deprecated: Only returns access approval requests directly associated with an assured workload + * folder. * *

      Sample code: * @@ -1273,7 +1280,9 @@ public final ListAccessApprovalRequestsPagedResponse listAccessApprovalRequests( * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final ListAccessApprovalRequestsPagedResponse listAccessApprovalRequests( ListAccessApprovalRequestsRequest request) { return listAccessApprovalRequestsPagedCallable().call(request); @@ -1281,7 +1290,8 @@ public final ListAccessApprovalRequestsPagedResponse listAccessApprovalRequests( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists access requests associated with a workload + * Deprecated: Only returns access approval requests directly associated with an assured workload + * folder. * *

      Sample code: * @@ -1313,7 +1323,10 @@ public final ListAccessApprovalRequestsPagedResponse listAccessApprovalRequests( * } * } * } + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final UnaryCallable< ListAccessApprovalRequestsRequest, ListAccessApprovalRequestsPagedResponse> listAccessApprovalRequestsPagedCallable() { @@ -1322,7 +1335,8 @@ public final ListAccessApprovalRequestsPagedResponse listAccessApprovalRequests( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists access requests associated with a workload + * Deprecated: Only returns access approval requests directly associated with an assured workload + * folder. * *

      Sample code: * @@ -1359,7 +1373,10 @@ public final ListAccessApprovalRequestsPagedResponse listAccessApprovalRequests( * } * } * } + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final UnaryCallable listAccessApprovalRequestsCallable() { return stub.listAccessApprovalRequestsCallable(); @@ -1384,7 +1401,7 @@ public final ListAccessApprovalRequestsPagedResponse listAccessApprovalRequests( * } * } * - * @param name Required. Format: organizations/{organization}/locations/{location}/partner + * @param name Required. Format: `organizations/{organization}/locations/{location}/partner` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Partner getPartner(PartnerName name) { @@ -1412,7 +1429,7 @@ public final Partner getPartner(PartnerName name) { * } * } * - * @param name Required. Format: organizations/{organization}/locations/{location}/partner + * @param name Required. Format: `organizations/{organization}/locations/{location}/partner` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Partner getPartner(String name) { diff --git a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerCoreSettings.java b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerCoreSettings.java index 26004359884c..f41e6d0f49cd 100644 --- a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerCoreSettings.java +++ b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerCoreSettings.java @@ -115,7 +115,12 @@ public UnaryCallSettings getEkmConnect .getPartnerPermissionsSettings(); } - /** Returns the object with the settings used for calls to listAccessApprovalRequests. */ + /** + * Returns the object with the settings used for calls to listAccessApprovalRequests. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public PagedCallSettings< ListAccessApprovalRequestsRequest, ListAccessApprovalRequestsResponse, @@ -279,7 +284,12 @@ public UnaryCallSettings.Builder getCustomerSettin return getStubSettingsBuilder().getPartnerPermissionsSettings(); } - /** Returns the builder for the settings used for calls to listAccessApprovalRequests. */ + /** + * Returns the builder for the settings used for calls to listAccessApprovalRequests. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public PagedCallSettings.Builder< ListAccessApprovalRequestsRequest, ListAccessApprovalRequestsResponse, diff --git a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerMonitoringClient.java b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerMonitoringClient.java index 20bc992f8648..74827097d2b8 100644 --- a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerMonitoringClient.java +++ b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerMonitoringClient.java @@ -246,7 +246,7 @@ public CloudControlsPartnerMonitoringStub getStub() { * } * * @param parent Required. Parent resource Format - * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload} + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListViolationsPagedResponse listViolations(WorkloadName parent) { @@ -284,7 +284,7 @@ public final ListViolationsPagedResponse listViolations(WorkloadName parent) { * } * * @param parent Required. Parent resource Format - * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload} + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListViolationsPagedResponse listViolations(String parent) { @@ -447,7 +447,7 @@ public final ListViolationsPagedResponse listViolations(ListViolationsRequest re * } * * @param name Required. Format: - * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation} + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Violation getViolation(ViolationName name) { @@ -479,7 +479,7 @@ public final Violation getViolation(ViolationName name) { * } * * @param name Required. Format: - * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation} + * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Violation getViolation(String name) { diff --git a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/stub/CloudControlsPartnerCoreStub.java b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/stub/CloudControlsPartnerCoreStub.java index 7301475f1525..f1739794b1a1 100644 --- a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/stub/CloudControlsPartnerCoreStub.java +++ b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/stub/CloudControlsPartnerCoreStub.java @@ -86,12 +86,14 @@ public UnaryCallable getEkmConnections throw new UnsupportedOperationException("Not implemented: getPartnerPermissionsCallable()"); } + @Deprecated public UnaryCallable listAccessApprovalRequestsPagedCallable() { throw new UnsupportedOperationException( "Not implemented: listAccessApprovalRequestsPagedCallable()"); } + @Deprecated public UnaryCallable listAccessApprovalRequestsCallable() { throw new UnsupportedOperationException( diff --git a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/stub/CloudControlsPartnerCoreStubSettings.java b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/stub/CloudControlsPartnerCoreStubSettings.java index 0fd818091625..dbf6d4fe0d0f 100644 --- a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/stub/CloudControlsPartnerCoreStubSettings.java +++ b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/stub/CloudControlsPartnerCoreStubSettings.java @@ -353,7 +353,12 @@ public UnaryCallSettings getEkmConnect return getPartnerPermissionsSettings; } - /** Returns the object with the settings used for calls to listAccessApprovalRequests. */ + /** + * Returns the object with the settings used for calls to listAccessApprovalRequests. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public PagedCallSettings< ListAccessApprovalRequestsRequest, ListAccessApprovalRequestsResponse, @@ -717,7 +722,12 @@ public UnaryCallSettings.Builder getCustomerSettin return getPartnerPermissionsSettings; } - /** Returns the builder for the settings used for calls to listAccessApprovalRequests. */ + /** + * Returns the builder for the settings used for calls to listAccessApprovalRequests. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public PagedCallSettings.Builder< ListAccessApprovalRequestsRequest, ListAccessApprovalRequestsResponse, diff --git a/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1/src/main/java/com/google/cloud/cloudcontrolspartner/v1/CloudControlsPartnerCoreGrpc.java b/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1/src/main/java/com/google/cloud/cloudcontrolspartner/v1/CloudControlsPartnerCoreGrpc.java index ba6b515ab55c..eeae71e403ff 100644 --- a/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1/src/main/java/com/google/cloud/cloudcontrolspartner/v1/CloudControlsPartnerCoreGrpc.java +++ b/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1/src/main/java/com/google/cloud/cloudcontrolspartner/v1/CloudControlsPartnerCoreGrpc.java @@ -575,9 +575,11 @@ default void getPartnerPermissions( * * *

      -     * Lists access requests associated with a workload
      +     * Deprecated: Only returns access approval requests directly associated with
      +     * an assured workload folder.
            * 
      */ + @java.lang.Deprecated default void listAccessApprovalRequests( com.google.cloud.cloudcontrolspartner.v1.ListAccessApprovalRequestsRequest request, io.grpc.stub.StreamObserver< @@ -743,9 +745,11 @@ public void getPartnerPermissions( * * *
      -     * Lists access requests associated with a workload
      +     * Deprecated: Only returns access approval requests directly associated with
      +     * an assured workload folder.
            * 
      */ + @java.lang.Deprecated public void listAccessApprovalRequests( com.google.cloud.cloudcontrolspartner.v1.ListAccessApprovalRequestsRequest request, io.grpc.stub.StreamObserver< @@ -875,9 +879,11 @@ public com.google.cloud.cloudcontrolspartner.v1.PartnerPermissions getPartnerPer * * *
      -     * Lists access requests associated with a workload
      +     * Deprecated: Only returns access approval requests directly associated with
      +     * an assured workload folder.
            * 
      */ + @java.lang.Deprecated public com.google.cloud.cloudcontrolspartner.v1.ListAccessApprovalRequestsResponse listAccessApprovalRequests( com.google.cloud.cloudcontrolspartner.v1.ListAccessApprovalRequestsRequest request) { @@ -1010,9 +1016,11 @@ protected CloudControlsPartnerCoreFutureStub build( * * *
      -     * Lists access requests associated with a workload
      +     * Deprecated: Only returns access approval requests directly associated with
      +     * an assured workload folder.
            * 
      */ + @java.lang.Deprecated public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.cloudcontrolspartner.v1.ListAccessApprovalRequestsResponse> listAccessApprovalRequests( diff --git a/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerCoreGrpc.java b/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerCoreGrpc.java index 6d07e8b2e16a..7e4622db4c31 100644 --- a/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerCoreGrpc.java +++ b/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CloudControlsPartnerCoreGrpc.java @@ -578,9 +578,11 @@ default void getPartnerPermissions( * * *
      -     * Lists access requests associated with a workload
      +     * Deprecated: Only returns access approval requests directly associated with
      +     * an assured workload folder.
            * 
      */ + @java.lang.Deprecated default void listAccessApprovalRequests( com.google.cloud.cloudcontrolspartner.v1beta.ListAccessApprovalRequestsRequest request, io.grpc.stub.StreamObserver< @@ -748,9 +750,11 @@ public void getPartnerPermissions( * * *
      -     * Lists access requests associated with a workload
      +     * Deprecated: Only returns access approval requests directly associated with
      +     * an assured workload folder.
            * 
      */ + @java.lang.Deprecated public void listAccessApprovalRequests( com.google.cloud.cloudcontrolspartner.v1beta.ListAccessApprovalRequestsRequest request, io.grpc.stub.StreamObserver< @@ -880,9 +884,11 @@ public com.google.cloud.cloudcontrolspartner.v1beta.PartnerPermissions getPartne * * *
      -     * Lists access requests associated with a workload
      +     * Deprecated: Only returns access approval requests directly associated with
      +     * an assured workload folder.
            * 
      */ + @java.lang.Deprecated public com.google.cloud.cloudcontrolspartner.v1beta.ListAccessApprovalRequestsResponse listAccessApprovalRequests( com.google.cloud.cloudcontrolspartner.v1beta.ListAccessApprovalRequestsRequest @@ -1016,9 +1022,11 @@ protected CloudControlsPartnerCoreFutureStub build( * * *
      -     * Lists access requests associated with a workload
      +     * Deprecated: Only returns access approval requests directly associated with
      +     * an assured workload folder.
            * 
      */ + @java.lang.Deprecated public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.cloudcontrolspartner.v1beta.ListAccessApprovalRequestsResponse> listAccessApprovalRequests( diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/src/main/java/com/google/cloud/cloudcontrolspartner/v1/CoreProto.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/src/main/java/com/google/cloud/cloudcontrolspartner/v1/CoreProto.java index cd6bd82cc136..3c6e401339f8 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/src/main/java/com/google/cloud/cloudcontrolspartner/v1/CoreProto.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/src/main/java/com/google/cloud/cloudcontrolspartner/v1/CoreProto.java @@ -62,7 +62,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "B\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\t" + "B\003\340A\003\022\033\n\016status_message\030\005 \001(\tB\003\340A\003\022#\n\026re" + "quested_cancellation\030\006 \001(\010B\003\340A\003\022\030\n\013api_v" - + "ersion\030\007 \001(\tB\003\340A\0032\333\016\n\030CloudControlsPartn" + + "ersion\030\007 \001(\tB\003\340A\0032\336\016\n\030CloudControlsPartn" + "erCore\022\306\001\n\013GetWorkload\0228.google.cloud.cl" + "oudcontrolspartner.v1.GetWorkloadRequest" + "\032..google.cloud.cloudcontrolspartner.v1." @@ -95,31 +95,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "e.cloud.cloudcontrolspartner.v1.PartnerP" + "ermissions\"`\332A\004name\202\323\344\223\002S\022Q/v1/{name=org" + "anizations/*/locations/*/customers/*/wor" - + "kloads/*/partnerPermissions}\022\231\002\n\032ListAcc" + + "kloads/*/partnerPermissions}\022\234\002\n\032ListAcc" + "essApprovalRequests\022G.google.cloud.cloud" + "controlspartner.v1.ListAccessApprovalReq" + "uestsRequest\032H.google.cloud.cloudcontrol" + "spartner.v1.ListAccessApprovalRequestsRe" - + "sponse\"h\332A\006parent\202\323\344\223\002Y\022W/v1/{parent=org" - + "anizations/*/locations/*/customers/*/wor" - + "kloads/*}/accessApprovalRequests\022\263\001\n\nGet" - + "Partner\0227.google.cloud.cloudcontrolspart" - + "ner.v1.GetPartnerRequest\032-.google.cloud." - + "cloudcontrolspartner.v1.Partner\"=\332A\004name" - + "\202\323\344\223\0020\022./v1/{name=organizations/*/locati" - + "ons/*/partner}\032W\312A#cloudcontrolspartner." - + "googleapis.com\322A.https://www.googleapis." - + "com/auth/cloud-platformB\375\002\n(com.google.c" - + "loud.cloudcontrolspartner.v1B\tCoreProtoP" - + "\001Z\\cloud.google.com/go/cloudcontrolspart" - + "ner/apiv1/cloudcontrolspartnerpb;cloudco" - + "ntrolspartnerpb\252\002$Google.Cloud.CloudCont" - + "rolsPartner.V1\312\002$Google\\Cloud\\CloudContr" - + "olsPartner\\V1\352\002\'Google::Cloud::CloudCont" - + "rolsPartner::V1\352Am\n8cloudcontrolspartner" - + ".googleapis.com/OrganizationLocation\0221or" - + "ganizations/{organization}/locations/{lo" - + "cation}b\006proto3" + + "sponse\"k\210\002\001\332A\006parent\202\323\344\223\002Y\022W/v1/{parent=" + + "organizations/*/locations/*/customers/*/" + + "workloads/*}/accessApprovalRequests\022\263\001\n\n" + + "GetPartner\0227.google.cloud.cloudcontrolsp" + + "artner.v1.GetPartnerRequest\032-.google.clo" + + "ud.cloudcontrolspartner.v1.Partner\"=\332A\004n" + + "ame\202\323\344\223\0020\022./v1/{name=organizations/*/loc" + + "ations/*/partner}\032W\312A#cloudcontrolspartn" + + "er.googleapis.com\322A.https://www.googleap" + + "is.com/auth/cloud-platformB\375\002\n(com.googl" + + "e.cloud.cloudcontrolspartner.v1B\tCorePro" + + "toP\001Z\\cloud.google.com/go/cloudcontrolsp" + + "artner/apiv1/cloudcontrolspartnerpb;clou" + + "dcontrolspartnerpb\252\002$Google.Cloud.CloudC" + + "ontrolsPartner.V1\312\002$Google\\Cloud\\CloudCo" + + "ntrolsPartner\\V1\352\002\'Google::Cloud::CloudC" + + "ontrolsPartner::V1\352Am\n8cloudcontrolspart" + + "ner.googleapis.com/OrganizationLocation\022" + + "1organizations/{organization}/locations/" + + "{location}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/src/main/proto/google/cloud/cloudcontrolspartner/v1/core.proto b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/src/main/proto/google/cloud/cloudcontrolspartner/v1/core.proto index 65f76cf558bf..a4685e5d854b 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/src/main/proto/google/cloud/cloudcontrolspartner/v1/core.proto +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/src/main/proto/google/cloud/cloudcontrolspartner/v1/core.proto @@ -95,9 +95,11 @@ service CloudControlsPartnerCore { option (google.api.method_signature) = "name"; } - // Lists access requests associated with a workload + // Deprecated: Only returns access approval requests directly associated with + // an assured workload folder. rpc ListAccessApprovalRequests(ListAccessApprovalRequestsRequest) returns (ListAccessApprovalRequestsResponse) { + option deprecated = true; option (google.api.http) = { get: "/v1/{parent=organizations/*/locations/*/customers/*/workloads/*}/accessApprovalRequests" }; diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/AccessApprovalRequest.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/AccessApprovalRequest.java index a9399c615b13..0d59b44c3f6b 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/AccessApprovalRequest.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/AccessApprovalRequest.java @@ -73,7 +73,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
          * Identifier. Format:
      -   * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/accessApprovalRequests/{access_approval_request}.
      +   * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/accessApprovalRequests/{access_approval_request}`
          * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -97,7 +97,7 @@ public java.lang.String getName() { * *
          * Identifier. Format:
      -   * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/accessApprovalRequests/{access_approval_request}.
      +   * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/accessApprovalRequests/{access_approval_request}`
          * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -740,7 +740,7 @@ public Builder mergeFrom( * *
            * Identifier. Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/accessApprovalRequests/{access_approval_request}.
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/accessApprovalRequests/{access_approval_request}`
            * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -763,7 +763,7 @@ public java.lang.String getName() { * *
            * Identifier. Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/accessApprovalRequests/{access_approval_request}.
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/accessApprovalRequests/{access_approval_request}`
            * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -786,7 +786,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
            * Identifier. Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/accessApprovalRequests/{access_approval_request}.
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/accessApprovalRequests/{access_approval_request}`
            * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -808,7 +808,7 @@ public Builder setName(java.lang.String value) { * *
            * Identifier. Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/accessApprovalRequests/{access_approval_request}.
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/accessApprovalRequests/{access_approval_request}`
            * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -826,7 +826,7 @@ public Builder clearName() { * *
            * Identifier. Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/accessApprovalRequests/{access_approval_request}.
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/accessApprovalRequests/{access_approval_request}`
            * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/AccessApprovalRequestOrBuilder.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/AccessApprovalRequestOrBuilder.java index 89291dd863fc..8cd9af2f13b0 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/AccessApprovalRequestOrBuilder.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/AccessApprovalRequestOrBuilder.java @@ -29,7 +29,7 @@ public interface AccessApprovalRequestOrBuilder * *
          * Identifier. Format:
      -   * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/accessApprovalRequests/{access_approval_request}.
      +   * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/accessApprovalRequests/{access_approval_request}`
          * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -42,7 +42,7 @@ public interface AccessApprovalRequestOrBuilder * *
          * Identifier. Format:
      -   * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/accessApprovalRequests/{access_approval_request}.
      +   * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/accessApprovalRequests/{access_approval_request}`
          * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CoreProto.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CoreProto.java index 0a23520febaa..65fe49f851c3 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CoreProto.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CoreProto.java @@ -63,7 +63,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006target\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033\n" + "\016status_message\030\005 \001(\tB\003\340A\003\022#\n\026requested_" + "cancellation\030\006 \001(\010B\003\340A\003\022\030\n\013api_version\030\007" - + " \001(\tB\003\340A\0032\273\017\n\030CloudControlsPartnerCore\022\322" + + " \001(\tB\003\340A\0032\276\017\n\030CloudControlsPartnerCore\022\322" + "\001\n\013GetWorkload\022<.google.cloud.cloudcontr" + "olspartner.v1beta.GetWorkloadRequest\0322.g" + "oogle.cloud.cloudcontrolspartner.v1beta." @@ -98,32 +98,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "tner.v1beta.PartnerPermissions\"d\332A\004name\202" + "\323\344\223\002W\022U/v1beta/{name=organizations/*/loc" + "ations/*/customers/*/workloads/*/partner" - + "Permissions}\022\245\002\n\032ListAccessApprovalReque" + + "Permissions}\022\250\002\n\032ListAccessApprovalReque" + "sts\022K.google.cloud.cloudcontrolspartner." + "v1beta.ListAccessApprovalRequestsRequest" + "\032L.google.cloud.cloudcontrolspartner.v1b" - + "eta.ListAccessApprovalRequestsResponse\"l" - + "\332A\006parent\202\323\344\223\002]\022[/v1beta/{parent=organiz" - + "ations/*/locations/*/customers/*/workloa" - + "ds/*}/accessApprovalRequests\022\277\001\n\nGetPart" - + "ner\022;.google.cloud.cloudcontrolspartner." - + "v1beta.GetPartnerRequest\0321.google.cloud." - + "cloudcontrolspartner.v1beta.Partner\"A\332A\004" - + "name\202\323\344\223\0024\0222/v1beta/{name=organizations/" - + "*/locations/*/partner}\032W\312A#cloudcontrols" - + "partner.googleapis.com\322A.https://www.goo" - + "gleapis.com/auth/cloud-platformB\221\003\n,com." - + "google.cloud.cloudcontrolspartner.v1beta" - + "B\tCoreProtoP\001Z`cloud.google.com/go/cloud" - + "controlspartner/apiv1beta/cloudcontrolsp" - + "artnerpb;cloudcontrolspartnerpb\252\002(Google" - + ".Cloud.CloudControlsPartner.V1Beta\312\002(Goo" - + "gle\\Cloud\\CloudControlsPartner\\V1beta\352\002+" - + "Google::Cloud::CloudControlsPartner::V1b" - + "eta\352Am\n8cloudcontrolspartner.googleapis." - + "com/OrganizationLocation\0221organizations/" - + "{organization}/locations/{location}b\006pro" - + "to3" + + "eta.ListAccessApprovalRequestsResponse\"o" + + "\210\002\001\332A\006parent\202\323\344\223\002]\022[/v1beta/{parent=orga" + + "nizations/*/locations/*/customers/*/work" + + "loads/*}/accessApprovalRequests\022\277\001\n\nGetP" + + "artner\022;.google.cloud.cloudcontrolspartn" + + "er.v1beta.GetPartnerRequest\0321.google.clo" + + "ud.cloudcontrolspartner.v1beta.Partner\"A" + + "\332A\004name\202\323\344\223\0024\0222/v1beta/{name=organizatio" + + "ns/*/locations/*/partner}\032W\312A#cloudcontr" + + "olspartner.googleapis.com\322A.https://www." + + "googleapis.com/auth/cloud-platformB\221\003\n,c" + + "om.google.cloud.cloudcontrolspartner.v1b" + + "etaB\tCoreProtoP\001Z`cloud.google.com/go/cl" + + "oudcontrolspartner/apiv1beta/cloudcontro" + + "lspartnerpb;cloudcontrolspartnerpb\252\002(Goo" + + "gle.Cloud.CloudControlsPartner.V1Beta\312\002(" + + "Google\\Cloud\\CloudControlsPartner\\V1beta" + + "\352\002+Google::Cloud::CloudControlsPartner::" + + "V1beta\352Am\n8cloudcontrolspartner.googleap" + + "is.com/OrganizationLocation\0221organizatio" + + "ns/{organization}/locations/{location}b\006" + + "proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/Customer.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/Customer.java index 8160ed762036..f4198b6e2e6f 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/Customer.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/Customer.java @@ -74,7 +74,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
          * Identifier. Format:
      -   * organizations/{organization}/locations/{location}/customers/{customer}
      +   * `organizations/{organization}/locations/{location}/customers/{customer}`
          * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -98,7 +98,7 @@ public java.lang.String getName() { * *
          * Identifier. Format:
      -   * organizations/{organization}/locations/{location}/customers/{customer}
      +   * `organizations/{organization}/locations/{location}/customers/{customer}`
          * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -689,7 +689,7 @@ public Builder mergeFrom( * *
            * Identifier. Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}
      +     * `organizations/{organization}/locations/{location}/customers/{customer}`
            * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -712,7 +712,7 @@ public java.lang.String getName() { * *
            * Identifier. Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}
      +     * `organizations/{organization}/locations/{location}/customers/{customer}`
            * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -735,7 +735,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
            * Identifier. Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}
      +     * `organizations/{organization}/locations/{location}/customers/{customer}`
            * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -757,7 +757,7 @@ public Builder setName(java.lang.String value) { * *
            * Identifier. Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}
      +     * `organizations/{organization}/locations/{location}/customers/{customer}`
            * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -775,7 +775,7 @@ public Builder clearName() { * *
            * Identifier. Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}
      +     * `organizations/{organization}/locations/{location}/customers/{customer}`
            * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CustomerOrBuilder.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CustomerOrBuilder.java index de9e3f9ee335..babbd2597dd9 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CustomerOrBuilder.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/CustomerOrBuilder.java @@ -29,7 +29,7 @@ public interface CustomerOrBuilder * *
          * Identifier. Format:
      -   * organizations/{organization}/locations/{location}/customers/{customer}
      +   * `organizations/{organization}/locations/{location}/customers/{customer}`
          * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -42,7 +42,7 @@ public interface CustomerOrBuilder * *
          * Identifier. Format:
      -   * organizations/{organization}/locations/{location}/customers/{customer}
      +   * `organizations/{organization}/locations/{location}/customers/{customer}`
          * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/EkmConnections.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/EkmConnections.java index 8a7fdc64ccb3..85561993a54b 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/EkmConnections.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/EkmConnections.java @@ -73,7 +73,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
          * Identifier. Format:
      -   * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections
      +   * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections`
          * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -97,7 +97,7 @@ public java.lang.String getName() { * *
          * Identifier. Format:
      -   * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections
      +   * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections`
          * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -619,7 +619,7 @@ public Builder mergeFrom( * *
            * Identifier. Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections`
            * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -642,7 +642,7 @@ public java.lang.String getName() { * *
            * Identifier. Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections`
            * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -665,7 +665,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
            * Identifier. Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections`
            * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -687,7 +687,7 @@ public Builder setName(java.lang.String value) { * *
            * Identifier. Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections`
            * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -705,7 +705,7 @@ public Builder clearName() { * *
            * Identifier. Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections`
            * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/EkmConnectionsOrBuilder.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/EkmConnectionsOrBuilder.java index f4fd40f313d9..c1dc0ebf577a 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/EkmConnectionsOrBuilder.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/EkmConnectionsOrBuilder.java @@ -29,7 +29,7 @@ public interface EkmConnectionsOrBuilder * *
          * Identifier. Format:
      -   * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections
      +   * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections`
          * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -42,7 +42,7 @@ public interface EkmConnectionsOrBuilder * *
          * Identifier. Format:
      -   * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections
      +   * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections`
          * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/GetCustomerRequest.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/GetCustomerRequest.java index e7cdd152dd68..4ef379e78981 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/GetCustomerRequest.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/GetCustomerRequest.java @@ -72,7 +72,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
          * Required. Format:
      -   * organizations/{organization}/locations/{location}/customers/{customer}
      +   * `organizations/{organization}/locations/{location}/customers/{customer}`
          * 
      * * @@ -98,7 +98,7 @@ public java.lang.String getName() { * *
          * Required. Format:
      -   * organizations/{organization}/locations/{location}/customers/{customer}
      +   * `organizations/{organization}/locations/{location}/customers/{customer}`
          * 
      * * @@ -473,7 +473,7 @@ public Builder mergeFrom( * *
            * Required. Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}
      +     * `organizations/{organization}/locations/{location}/customers/{customer}`
            * 
      * * @@ -498,7 +498,7 @@ public java.lang.String getName() { * *
            * Required. Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}
      +     * `organizations/{organization}/locations/{location}/customers/{customer}`
            * 
      * * @@ -523,7 +523,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
            * Required. Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}
      +     * `organizations/{organization}/locations/{location}/customers/{customer}`
            * 
      * * @@ -547,7 +547,7 @@ public Builder setName(java.lang.String value) { * *
            * Required. Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}
      +     * `organizations/{organization}/locations/{location}/customers/{customer}`
            * 
      * * @@ -567,7 +567,7 @@ public Builder clearName() { * *
            * Required. Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}
      +     * `organizations/{organization}/locations/{location}/customers/{customer}`
            * 
      * * diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/GetCustomerRequestOrBuilder.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/GetCustomerRequestOrBuilder.java index ac60f180e1d8..9af4bdc7b4de 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/GetCustomerRequestOrBuilder.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/GetCustomerRequestOrBuilder.java @@ -29,7 +29,7 @@ public interface GetCustomerRequestOrBuilder * *
          * Required. Format:
      -   * organizations/{organization}/locations/{location}/customers/{customer}
      +   * `organizations/{organization}/locations/{location}/customers/{customer}`
          * 
      * * @@ -44,7 +44,7 @@ public interface GetCustomerRequestOrBuilder * *
          * Required. Format:
      -   * organizations/{organization}/locations/{location}/customers/{customer}
      +   * `organizations/{organization}/locations/{location}/customers/{customer}`
          * 
      * * diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/GetEkmConnectionsRequest.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/GetEkmConnectionsRequest.java index 5843e988826b..897f9da12b93 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/GetEkmConnectionsRequest.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/GetEkmConnectionsRequest.java @@ -72,7 +72,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
          * Required. Format:
      -   * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections
      +   * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections`
          * 
      * * @@ -98,7 +98,7 @@ public java.lang.String getName() { * *
          * Required. Format:
      -   * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections
      +   * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections`
          * 
      * * @@ -477,7 +477,7 @@ public Builder mergeFrom( * *
            * Required. Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections`
            * 
      * * @@ -502,7 +502,7 @@ public java.lang.String getName() { * *
            * Required. Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections`
            * 
      * * @@ -527,7 +527,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
            * Required. Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections`
            * 
      * * @@ -551,7 +551,7 @@ public Builder setName(java.lang.String value) { * *
            * Required. Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections`
            * 
      * * @@ -571,7 +571,7 @@ public Builder clearName() { * *
            * Required. Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections`
            * 
      * * diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/GetEkmConnectionsRequestOrBuilder.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/GetEkmConnectionsRequestOrBuilder.java index ab641a57cb70..fa2561fc42d2 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/GetEkmConnectionsRequestOrBuilder.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/GetEkmConnectionsRequestOrBuilder.java @@ -29,7 +29,7 @@ public interface GetEkmConnectionsRequestOrBuilder * *
          * Required. Format:
      -   * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections
      +   * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections`
          * 
      * * @@ -44,7 +44,7 @@ public interface GetEkmConnectionsRequestOrBuilder * *
          * Required. Format:
      -   * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections
      +   * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections`
          * 
      * * diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/GetPartnerPermissionsRequest.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/GetPartnerPermissionsRequest.java index a5bb7cb41ea0..635a8e302cfb 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/GetPartnerPermissionsRequest.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/GetPartnerPermissionsRequest.java @@ -73,7 +73,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
          * Required. Name of the resource to get in the format:
      -   * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions
      +   * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions`
          * 
      * * @@ -99,7 +99,7 @@ public java.lang.String getName() { * *
          * Required. Name of the resource to get in the format:
      -   * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions
      +   * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions`
          * 
      * * @@ -483,7 +483,7 @@ public Builder mergeFrom( * *
            * Required. Name of the resource to get in the format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions`
            * 
      * * @@ -508,7 +508,7 @@ public java.lang.String getName() { * *
            * Required. Name of the resource to get in the format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions`
            * 
      * * @@ -533,7 +533,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
            * Required. Name of the resource to get in the format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions`
            * 
      * * @@ -557,7 +557,7 @@ public Builder setName(java.lang.String value) { * *
            * Required. Name of the resource to get in the format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions`
            * 
      * * @@ -577,7 +577,7 @@ public Builder clearName() { * *
            * Required. Name of the resource to get in the format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions`
            * 
      * * diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/GetPartnerPermissionsRequestOrBuilder.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/GetPartnerPermissionsRequestOrBuilder.java index 708b2f191e8a..7869bb567f3f 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/GetPartnerPermissionsRequestOrBuilder.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/GetPartnerPermissionsRequestOrBuilder.java @@ -29,7 +29,7 @@ public interface GetPartnerPermissionsRequestOrBuilder * *
          * Required. Name of the resource to get in the format:
      -   * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions
      +   * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions`
          * 
      * * @@ -44,7 +44,7 @@ public interface GetPartnerPermissionsRequestOrBuilder * *
          * Required. Name of the resource to get in the format:
      -   * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions
      +   * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions`
          * 
      * * diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/GetPartnerRequest.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/GetPartnerRequest.java index 2ee14d0c3819..09f2e72ed9fb 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/GetPartnerRequest.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/GetPartnerRequest.java @@ -71,7 +71,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
      -   * Required. Format: organizations/{organization}/locations/{location}/partner
      +   * Required. Format:
      +   * `organizations/{organization}/locations/{location}/partner`
          * 
      * * @@ -96,7 +97,8 @@ public java.lang.String getName() { * * *
      -   * Required. Format: organizations/{organization}/locations/{location}/partner
      +   * Required. Format:
      +   * `organizations/{organization}/locations/{location}/partner`
          * 
      * * @@ -469,7 +471,8 @@ public Builder mergeFrom( * * *
      -     * Required. Format: organizations/{organization}/locations/{location}/partner
      +     * Required. Format:
      +     * `organizations/{organization}/locations/{location}/partner`
            * 
      * * @@ -493,7 +496,8 @@ public java.lang.String getName() { * * *
      -     * Required. Format: organizations/{organization}/locations/{location}/partner
      +     * Required. Format:
      +     * `organizations/{organization}/locations/{location}/partner`
            * 
      * * @@ -517,7 +521,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
      -     * Required. Format: organizations/{organization}/locations/{location}/partner
      +     * Required. Format:
      +     * `organizations/{organization}/locations/{location}/partner`
            * 
      * * @@ -540,7 +545,8 @@ public Builder setName(java.lang.String value) { * * *
      -     * Required. Format: organizations/{organization}/locations/{location}/partner
      +     * Required. Format:
      +     * `organizations/{organization}/locations/{location}/partner`
            * 
      * * @@ -559,7 +565,8 @@ public Builder clearName() { * * *
      -     * Required. Format: organizations/{organization}/locations/{location}/partner
      +     * Required. Format:
      +     * `organizations/{organization}/locations/{location}/partner`
            * 
      * * diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/GetPartnerRequestOrBuilder.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/GetPartnerRequestOrBuilder.java index dc15d11195c3..b8a438a74160 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/GetPartnerRequestOrBuilder.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/GetPartnerRequestOrBuilder.java @@ -28,7 +28,8 @@ public interface GetPartnerRequestOrBuilder * * *
      -   * Required. Format: organizations/{organization}/locations/{location}/partner
      +   * Required. Format:
      +   * `organizations/{organization}/locations/{location}/partner`
          * 
      * * @@ -42,7 +43,8 @@ public interface GetPartnerRequestOrBuilder * * *
      -   * Required. Format: organizations/{organization}/locations/{location}/partner
      +   * Required. Format:
      +   * `organizations/{organization}/locations/{location}/partner`
          * 
      * * diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/GetViolationRequest.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/GetViolationRequest.java index 994e50a373f7..802baf8eaffc 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/GetViolationRequest.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/GetViolationRequest.java @@ -72,7 +72,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
          * Required. Format:
      -   * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}
      +   * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}`
          * 
      * * @@ -98,7 +98,7 @@ public java.lang.String getName() { * *
          * Required. Format:
      -   * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}
      +   * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}`
          * 
      * * @@ -473,7 +473,7 @@ public Builder mergeFrom( * *
            * Required. Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}`
            * 
      * * @@ -498,7 +498,7 @@ public java.lang.String getName() { * *
            * Required. Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}`
            * 
      * * @@ -523,7 +523,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
            * Required. Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}`
            * 
      * * @@ -547,7 +547,7 @@ public Builder setName(java.lang.String value) { * *
            * Required. Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}`
            * 
      * * @@ -567,7 +567,7 @@ public Builder clearName() { * *
            * Required. Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}`
            * 
      * * diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/GetViolationRequestOrBuilder.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/GetViolationRequestOrBuilder.java index 8d9a44300845..8ec6359297df 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/GetViolationRequestOrBuilder.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/GetViolationRequestOrBuilder.java @@ -29,7 +29,7 @@ public interface GetViolationRequestOrBuilder * *
          * Required. Format:
      -   * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}
      +   * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}`
          * 
      * * @@ -44,7 +44,7 @@ public interface GetViolationRequestOrBuilder * *
          * Required. Format:
      -   * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}
      +   * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}`
          * 
      * * diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/GetWorkloadRequest.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/GetWorkloadRequest.java index a6a191cf9dac..ef9b87e5e557 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/GetWorkloadRequest.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/GetWorkloadRequest.java @@ -72,7 +72,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
          * Required. Format:
      -   * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}
      +   * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`
          * 
      * * @@ -98,7 +98,7 @@ public java.lang.String getName() { * *
          * Required. Format:
      -   * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}
      +   * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`
          * 
      * * @@ -473,7 +473,7 @@ public Builder mergeFrom( * *
            * Required. Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`
            * 
      * * @@ -498,7 +498,7 @@ public java.lang.String getName() { * *
            * Required. Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`
            * 
      * * @@ -523,7 +523,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
            * Required. Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`
            * 
      * * @@ -547,7 +547,7 @@ public Builder setName(java.lang.String value) { * *
            * Required. Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`
            * 
      * * @@ -567,7 +567,7 @@ public Builder clearName() { * *
            * Required. Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`
            * 
      * * diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/GetWorkloadRequestOrBuilder.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/GetWorkloadRequestOrBuilder.java index ddec5d140d06..4d91ba5e5611 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/GetWorkloadRequestOrBuilder.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/GetWorkloadRequestOrBuilder.java @@ -29,7 +29,7 @@ public interface GetWorkloadRequestOrBuilder * *
          * Required. Format:
      -   * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}
      +   * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`
          * 
      * * @@ -44,7 +44,7 @@ public interface GetWorkloadRequestOrBuilder * *
          * Required. Format:
      -   * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}
      +   * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`
          * 
      * * diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/ListAccessApprovalRequestsRequest.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/ListAccessApprovalRequestsRequest.java index cb19637c5ac5..f358e4508d6f 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/ListAccessApprovalRequestsRequest.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/ListAccessApprovalRequestsRequest.java @@ -78,7 +78,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
          * Required. Parent resource
          * Format:
      -   * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}
      +   * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`
          * 
      * * @@ -105,7 +105,7 @@ public java.lang.String getParent() { *
          * Required. Parent resource
          * Format:
      -   * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}
      +   * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`
          * 
      * * @@ -769,7 +769,7 @@ public Builder mergeFrom( *
            * Required. Parent resource
            * Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`
            * 
      * * @@ -795,7 +795,7 @@ public java.lang.String getParent() { *
            * Required. Parent resource
            * Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`
            * 
      * * @@ -821,7 +821,7 @@ public com.google.protobuf.ByteString getParentBytes() { *
            * Required. Parent resource
            * Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`
            * 
      * * @@ -846,7 +846,7 @@ public Builder setParent(java.lang.String value) { *
            * Required. Parent resource
            * Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`
            * 
      * * @@ -867,7 +867,7 @@ public Builder clearParent() { *
            * Required. Parent resource
            * Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`
            * 
      * * diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/ListAccessApprovalRequestsRequestOrBuilder.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/ListAccessApprovalRequestsRequestOrBuilder.java index 75e0d65c14db..f0d84b43921e 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/ListAccessApprovalRequestsRequestOrBuilder.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/ListAccessApprovalRequestsRequestOrBuilder.java @@ -30,7 +30,7 @@ public interface ListAccessApprovalRequestsRequestOrBuilder *
          * Required. Parent resource
          * Format:
      -   * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}
      +   * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`
          * 
      * * @@ -46,7 +46,7 @@ public interface ListAccessApprovalRequestsRequestOrBuilder *
          * Required. Parent resource
          * Format:
      -   * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}
      +   * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`
          * 
      * * diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/ListCustomersRequest.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/ListCustomersRequest.java index 041d69bcbb93..9af1b77aaaec 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/ListCustomersRequest.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/ListCustomersRequest.java @@ -75,7 +75,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
          * Required. Parent resource
      -   * Format: organizations/{organization}/locations/{location}
      +   * Format: `organizations/{organization}/locations/{location}`
          * 
      * * @@ -101,7 +101,7 @@ public java.lang.String getParent() { * *
          * Required. Parent resource
      -   * Format: organizations/{organization}/locations/{location}
      +   * Format: `organizations/{organization}/locations/{location}`
          * 
      * * @@ -746,7 +746,7 @@ public Builder mergeFrom( * *
            * Required. Parent resource
      -     * Format: organizations/{organization}/locations/{location}
      +     * Format: `organizations/{organization}/locations/{location}`
            * 
      * * @@ -771,7 +771,7 @@ public java.lang.String getParent() { * *
            * Required. Parent resource
      -     * Format: organizations/{organization}/locations/{location}
      +     * Format: `organizations/{organization}/locations/{location}`
            * 
      * * @@ -796,7 +796,7 @@ public com.google.protobuf.ByteString getParentBytes() { * *
            * Required. Parent resource
      -     * Format: organizations/{organization}/locations/{location}
      +     * Format: `organizations/{organization}/locations/{location}`
            * 
      * * @@ -820,7 +820,7 @@ public Builder setParent(java.lang.String value) { * *
            * Required. Parent resource
      -     * Format: organizations/{organization}/locations/{location}
      +     * Format: `organizations/{organization}/locations/{location}`
            * 
      * * @@ -840,7 +840,7 @@ public Builder clearParent() { * *
            * Required. Parent resource
      -     * Format: organizations/{organization}/locations/{location}
      +     * Format: `organizations/{organization}/locations/{location}`
            * 
      * * diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/ListCustomersRequestOrBuilder.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/ListCustomersRequestOrBuilder.java index 206c94c8b389..3fa2c2f902dc 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/ListCustomersRequestOrBuilder.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/ListCustomersRequestOrBuilder.java @@ -29,7 +29,7 @@ public interface ListCustomersRequestOrBuilder * *
          * Required. Parent resource
      -   * Format: organizations/{organization}/locations/{location}
      +   * Format: `organizations/{organization}/locations/{location}`
          * 
      * * @@ -44,7 +44,7 @@ public interface ListCustomersRequestOrBuilder * *
          * Required. Parent resource
      -   * Format: organizations/{organization}/locations/{location}
      +   * Format: `organizations/{organization}/locations/{location}`
          * 
      * * diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/ListViolationsRequest.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/ListViolationsRequest.java index bf2246c8834d..ab64661c7bc7 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/ListViolationsRequest.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/ListViolationsRequest.java @@ -77,7 +77,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
          * Required. Parent resource
          * Format
      -   * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}
      +   * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`
          * 
      * * @@ -104,7 +104,7 @@ public java.lang.String getParent() { *
          * Required. Parent resource
          * Format
      -   * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}
      +   * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`
          * 
      * * @@ -845,7 +845,7 @@ public Builder mergeFrom( *
            * Required. Parent resource
            * Format
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`
            * 
      * * @@ -871,7 +871,7 @@ public java.lang.String getParent() { *
            * Required. Parent resource
            * Format
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`
            * 
      * * @@ -897,7 +897,7 @@ public com.google.protobuf.ByteString getParentBytes() { *
            * Required. Parent resource
            * Format
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`
            * 
      * * @@ -922,7 +922,7 @@ public Builder setParent(java.lang.String value) { *
            * Required. Parent resource
            * Format
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`
            * 
      * * @@ -943,7 +943,7 @@ public Builder clearParent() { *
            * Required. Parent resource
            * Format
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`
            * 
      * * diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/ListViolationsRequestOrBuilder.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/ListViolationsRequestOrBuilder.java index 02ad47410efd..332e290efb14 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/ListViolationsRequestOrBuilder.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/ListViolationsRequestOrBuilder.java @@ -30,7 +30,7 @@ public interface ListViolationsRequestOrBuilder *
          * Required. Parent resource
          * Format
      -   * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}
      +   * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`
          * 
      * * @@ -46,7 +46,7 @@ public interface ListViolationsRequestOrBuilder *
          * Required. Parent resource
          * Format
      -   * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}
      +   * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`
          * 
      * * diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/ListWorkloadsRequest.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/ListWorkloadsRequest.java index 27793669703f..7938f8196cf6 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/ListWorkloadsRequest.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/ListWorkloadsRequest.java @@ -76,7 +76,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
          * Required. Parent resource
          * Format:
      -   * organizations/{organization}/locations/{location}/customers/{customer}
      +   * `organizations/{organization}/locations/{location}/customers/{customer}`
          * 
      * * @@ -103,7 +103,7 @@ public java.lang.String getParent() { *
          * Required. Parent resource
          * Format:
      -   * organizations/{organization}/locations/{location}/customers/{customer}
      +   * `organizations/{organization}/locations/{location}/customers/{customer}`
          * 
      * * @@ -749,7 +749,7 @@ public Builder mergeFrom( *
            * Required. Parent resource
            * Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}
      +     * `organizations/{organization}/locations/{location}/customers/{customer}`
            * 
      * * @@ -775,7 +775,7 @@ public java.lang.String getParent() { *
            * Required. Parent resource
            * Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}
      +     * `organizations/{organization}/locations/{location}/customers/{customer}`
            * 
      * * @@ -801,7 +801,7 @@ public com.google.protobuf.ByteString getParentBytes() { *
            * Required. Parent resource
            * Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}
      +     * `organizations/{organization}/locations/{location}/customers/{customer}`
            * 
      * * @@ -826,7 +826,7 @@ public Builder setParent(java.lang.String value) { *
            * Required. Parent resource
            * Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}
      +     * `organizations/{organization}/locations/{location}/customers/{customer}`
            * 
      * * @@ -847,7 +847,7 @@ public Builder clearParent() { *
            * Required. Parent resource
            * Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}
      +     * `organizations/{organization}/locations/{location}/customers/{customer}`
            * 
      * * diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/ListWorkloadsRequestOrBuilder.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/ListWorkloadsRequestOrBuilder.java index 5f1eea0e7e8f..2ff7e823b262 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/ListWorkloadsRequestOrBuilder.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/ListWorkloadsRequestOrBuilder.java @@ -30,7 +30,7 @@ public interface ListWorkloadsRequestOrBuilder *
          * Required. Parent resource
          * Format:
      -   * organizations/{organization}/locations/{location}/customers/{customer}
      +   * `organizations/{organization}/locations/{location}/customers/{customer}`
          * 
      * * @@ -46,7 +46,7 @@ public interface ListWorkloadsRequestOrBuilder *
          * Required. Parent resource
          * Format:
      -   * organizations/{organization}/locations/{location}/customers/{customer}
      +   * `organizations/{organization}/locations/{location}/customers/{customer}`
          * 
      * * diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/Partner.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/Partner.java index 4ad4fe0e0bb8..d4acda6bfaeb 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/Partner.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/Partner.java @@ -77,7 +77,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
          * Identifier. The resource name of the partner.
      -   * Format: organizations/{organization}/locations/{location}/partner
      +   * Format: `organizations/{organization}/locations/{location}/partner`
          * Example: "organizations/123456/locations/us-central1/partner"
          * 
      * @@ -102,7 +102,7 @@ public java.lang.String getName() { * *
          * Identifier. The resource name of the partner.
      -   * Format: organizations/{organization}/locations/{location}/partner
      +   * Format: `organizations/{organization}/locations/{location}/partner`
          * Example: "organizations/123456/locations/us-central1/partner"
          * 
      * @@ -1120,7 +1120,7 @@ public Builder mergeFrom( * *
            * Identifier. The resource name of the partner.
      -     * Format: organizations/{organization}/locations/{location}/partner
      +     * Format: `organizations/{organization}/locations/{location}/partner`
            * Example: "organizations/123456/locations/us-central1/partner"
            * 
      * @@ -1144,7 +1144,7 @@ public java.lang.String getName() { * *
            * Identifier. The resource name of the partner.
      -     * Format: organizations/{organization}/locations/{location}/partner
      +     * Format: `organizations/{organization}/locations/{location}/partner`
            * Example: "organizations/123456/locations/us-central1/partner"
            * 
      * @@ -1168,7 +1168,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
            * Identifier. The resource name of the partner.
      -     * Format: organizations/{organization}/locations/{location}/partner
      +     * Format: `organizations/{organization}/locations/{location}/partner`
            * Example: "organizations/123456/locations/us-central1/partner"
            * 
      * @@ -1191,7 +1191,7 @@ public Builder setName(java.lang.String value) { * *
            * Identifier. The resource name of the partner.
      -     * Format: organizations/{organization}/locations/{location}/partner
      +     * Format: `organizations/{organization}/locations/{location}/partner`
            * Example: "organizations/123456/locations/us-central1/partner"
            * 
      * @@ -1210,7 +1210,7 @@ public Builder clearName() { * *
            * Identifier. The resource name of the partner.
      -     * Format: organizations/{organization}/locations/{location}/partner
      +     * Format: `organizations/{organization}/locations/{location}/partner`
            * Example: "organizations/123456/locations/us-central1/partner"
            * 
      * diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/PartnerOrBuilder.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/PartnerOrBuilder.java index 4e6ec8bea75a..8bb7c2967c8b 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/PartnerOrBuilder.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/PartnerOrBuilder.java @@ -29,7 +29,7 @@ public interface PartnerOrBuilder * *
          * Identifier. The resource name of the partner.
      -   * Format: organizations/{organization}/locations/{location}/partner
      +   * Format: `organizations/{organization}/locations/{location}/partner`
          * Example: "organizations/123456/locations/us-central1/partner"
          * 
      * @@ -43,7 +43,7 @@ public interface PartnerOrBuilder * *
          * Identifier. The resource name of the partner.
      -   * Format: organizations/{organization}/locations/{location}/partner
      +   * Format: `organizations/{organization}/locations/{location}/partner`
          * Example: "organizations/123456/locations/us-central1/partner"
          * 
      * diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/PartnerPermissions.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/PartnerPermissions.java index db2442262fba..efa78b8ffe8d 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/PartnerPermissions.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/PartnerPermissions.java @@ -270,7 +270,7 @@ private Permission(int value) { * *
          * Identifier. Format:
      -   * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions
      +   * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions`
          * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -294,7 +294,7 @@ public java.lang.String getName() { * *
          * Identifier. Format:
      -   * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions
      +   * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions`
          * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -852,7 +852,7 @@ public Builder mergeFrom( * *
            * Identifier. Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions`
            * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -875,7 +875,7 @@ public java.lang.String getName() { * *
            * Identifier. Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions`
            * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -898,7 +898,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
            * Identifier. Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions`
            * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -920,7 +920,7 @@ public Builder setName(java.lang.String value) { * *
            * Identifier. Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions`
            * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -938,7 +938,7 @@ public Builder clearName() { * *
            * Identifier. Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions`
            * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/PartnerPermissionsOrBuilder.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/PartnerPermissionsOrBuilder.java index 25bcf4593414..8cd1357d2c26 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/PartnerPermissionsOrBuilder.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/PartnerPermissionsOrBuilder.java @@ -29,7 +29,7 @@ public interface PartnerPermissionsOrBuilder * *
          * Identifier. Format:
      -   * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions
      +   * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions`
          * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -42,7 +42,7 @@ public interface PartnerPermissionsOrBuilder * *
          * Identifier. Format:
      -   * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions
      +   * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions`
          * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/Violation.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/Violation.java index 389402b62bfe..1ba51c71aa57 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/Violation.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/Violation.java @@ -6104,7 +6104,7 @@ public com.google.protobuf.Parser getParserForType() { * *
          * Identifier. Format:
      -   * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}
      +   * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}`
          * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -6128,7 +6128,7 @@ public java.lang.String getName() { * *
          * Identifier. Format:
      -   * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}
      +   * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}`
          * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -6455,9 +6455,9 @@ public com.google.cloud.cloudcontrolspartner.v1beta.Violation.State getState() { *
          * Output only. Immutable. Name of the OrgPolicy which was modified with
          * non-compliant change and resulted this violation. Format:
      -   *  projects/{project_number}/policies/{constraint_name}
      -   *  folders/{folder_id}/policies/{constraint_name}
      -   *  organizations/{organization_id}/policies/{constraint_name}
      +   *  `projects/{project_number}/policies/{constraint_name}`
      +   *  `folders/{folder_id}/policies/{constraint_name}`
      +   *  `organizations/{organization_id}/policies/{constraint_name}`
          * 
      * * @@ -6484,9 +6484,9 @@ public java.lang.String getNonCompliantOrgPolicy() { *
          * Output only. Immutable. Name of the OrgPolicy which was modified with
          * non-compliant change and resulted this violation. Format:
      -   *  projects/{project_number}/policies/{constraint_name}
      -   *  folders/{folder_id}/policies/{constraint_name}
      -   *  organizations/{organization_id}/policies/{constraint_name}
      +   *  `projects/{project_number}/policies/{constraint_name}`
      +   *  `folders/{folder_id}/policies/{constraint_name}`
      +   *  `organizations/{organization_id}/policies/{constraint_name}`
          * 
      * * @@ -7196,7 +7196,7 @@ public Builder mergeFrom( * *
            * Identifier. Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}`
            * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -7219,7 +7219,7 @@ public java.lang.String getName() { * *
            * Identifier. Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}`
            * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -7242,7 +7242,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
            * Identifier. Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}`
            * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -7264,7 +7264,7 @@ public Builder setName(java.lang.String value) { * *
            * Identifier. Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}`
            * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -7282,7 +7282,7 @@ public Builder clearName() { * *
            * Identifier. Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}`
            * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -8237,9 +8237,9 @@ public Builder clearState() { *
            * Output only. Immutable. Name of the OrgPolicy which was modified with
            * non-compliant change and resulted this violation. Format:
      -     *  projects/{project_number}/policies/{constraint_name}
      -     *  folders/{folder_id}/policies/{constraint_name}
      -     *  organizations/{organization_id}/policies/{constraint_name}
      +     *  `projects/{project_number}/policies/{constraint_name}`
      +     *  `folders/{folder_id}/policies/{constraint_name}`
      +     *  `organizations/{organization_id}/policies/{constraint_name}`
            * 
      * * @@ -8265,9 +8265,9 @@ public java.lang.String getNonCompliantOrgPolicy() { *
            * Output only. Immutable. Name of the OrgPolicy which was modified with
            * non-compliant change and resulted this violation. Format:
      -     *  projects/{project_number}/policies/{constraint_name}
      -     *  folders/{folder_id}/policies/{constraint_name}
      -     *  organizations/{organization_id}/policies/{constraint_name}
      +     *  `projects/{project_number}/policies/{constraint_name}`
      +     *  `folders/{folder_id}/policies/{constraint_name}`
      +     *  `organizations/{organization_id}/policies/{constraint_name}`
            * 
      * * @@ -8293,9 +8293,9 @@ public com.google.protobuf.ByteString getNonCompliantOrgPolicyBytes() { *
            * Output only. Immutable. Name of the OrgPolicy which was modified with
            * non-compliant change and resulted this violation. Format:
      -     *  projects/{project_number}/policies/{constraint_name}
      -     *  folders/{folder_id}/policies/{constraint_name}
      -     *  organizations/{organization_id}/policies/{constraint_name}
      +     *  `projects/{project_number}/policies/{constraint_name}`
      +     *  `folders/{folder_id}/policies/{constraint_name}`
      +     *  `organizations/{organization_id}/policies/{constraint_name}`
            * 
      * * @@ -8320,9 +8320,9 @@ public Builder setNonCompliantOrgPolicy(java.lang.String value) { *
            * Output only. Immutable. Name of the OrgPolicy which was modified with
            * non-compliant change and resulted this violation. Format:
      -     *  projects/{project_number}/policies/{constraint_name}
      -     *  folders/{folder_id}/policies/{constraint_name}
      -     *  organizations/{organization_id}/policies/{constraint_name}
      +     *  `projects/{project_number}/policies/{constraint_name}`
      +     *  `folders/{folder_id}/policies/{constraint_name}`
      +     *  `organizations/{organization_id}/policies/{constraint_name}`
            * 
      * * @@ -8343,9 +8343,9 @@ public Builder clearNonCompliantOrgPolicy() { *
            * Output only. Immutable. Name of the OrgPolicy which was modified with
            * non-compliant change and resulted this violation. Format:
      -     *  projects/{project_number}/policies/{constraint_name}
      -     *  folders/{folder_id}/policies/{constraint_name}
      -     *  organizations/{organization_id}/policies/{constraint_name}
      +     *  `projects/{project_number}/policies/{constraint_name}`
      +     *  `folders/{folder_id}/policies/{constraint_name}`
      +     *  `organizations/{organization_id}/policies/{constraint_name}`
            * 
      * * diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/ViolationOrBuilder.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/ViolationOrBuilder.java index 07f56228af9d..96dab8dba819 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/ViolationOrBuilder.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/ViolationOrBuilder.java @@ -29,7 +29,7 @@ public interface ViolationOrBuilder * *
          * Identifier. Format:
      -   * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}
      +   * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}`
          * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -42,7 +42,7 @@ public interface ViolationOrBuilder * *
          * Identifier. Format:
      -   * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}
      +   * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}`
          * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -257,9 +257,9 @@ public interface ViolationOrBuilder *
          * Output only. Immutable. Name of the OrgPolicy which was modified with
          * non-compliant change and resulted this violation. Format:
      -   *  projects/{project_number}/policies/{constraint_name}
      -   *  folders/{folder_id}/policies/{constraint_name}
      -   *  organizations/{organization_id}/policies/{constraint_name}
      +   *  `projects/{project_number}/policies/{constraint_name}`
      +   *  `folders/{folder_id}/policies/{constraint_name}`
      +   *  `organizations/{organization_id}/policies/{constraint_name}`
          * 
      * * @@ -275,9 +275,9 @@ public interface ViolationOrBuilder *
          * Output only. Immutable. Name of the OrgPolicy which was modified with
          * non-compliant change and resulted this violation. Format:
      -   *  projects/{project_number}/policies/{constraint_name}
      -   *  folders/{folder_id}/policies/{constraint_name}
      -   *  organizations/{organization_id}/policies/{constraint_name}
      +   *  `projects/{project_number}/policies/{constraint_name}`
      +   *  `folders/{folder_id}/policies/{constraint_name}`
      +   *  `organizations/{organization_id}/policies/{constraint_name}`
          * 
      * * diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/Workload.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/Workload.java index 1e4ddf185eed..421cf4b67015 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/Workload.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/Workload.java @@ -328,7 +328,7 @@ private Partner(int value) { * *
          * Identifier. Format:
      -   * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}
      +   * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`
          * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -352,7 +352,7 @@ public java.lang.String getName() { * *
          * Identifier. Format:
      -   * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}
      +   * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`
          * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1280,7 +1280,7 @@ public Builder mergeFrom( * *
            * Identifier. Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`
            * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1303,7 +1303,7 @@ public java.lang.String getName() { * *
            * Identifier. Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`
            * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1326,7 +1326,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
            * Identifier. Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`
            * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1348,7 +1348,7 @@ public Builder setName(java.lang.String value) { * *
            * Identifier. Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`
            * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1366,7 +1366,7 @@ public Builder clearName() { * *
            * Identifier. Format:
      -     * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}
      +     * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`
            * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/WorkloadOrBuilder.java b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/WorkloadOrBuilder.java index 38e31d1bfac6..ad6915c242e4 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/WorkloadOrBuilder.java +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/WorkloadOrBuilder.java @@ -29,7 +29,7 @@ public interface WorkloadOrBuilder * *
          * Identifier. Format:
      -   * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}
      +   * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`
          * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -42,7 +42,7 @@ public interface WorkloadOrBuilder * *
          * Identifier. Format:
      -   * organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}
      +   * `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`
          * 
      * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/proto/google/cloud/cloudcontrolspartner/v1beta/access_approval_requests.proto b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/proto/google/cloud/cloudcontrolspartner/v1beta/access_approval_requests.proto index 881bbac4d328..d9720f356fd6 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/proto/google/cloud/cloudcontrolspartner/v1beta/access_approval_requests.proto +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/proto/google/cloud/cloudcontrolspartner/v1beta/access_approval_requests.proto @@ -38,7 +38,7 @@ message AccessApprovalRequest { }; // Identifier. Format: - // organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/accessApprovalRequests/{access_approval_request}. + // `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/accessApprovalRequests/{access_approval_request}` string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // The time at which approval was requested. @@ -56,7 +56,7 @@ message AccessApprovalRequest { message ListAccessApprovalRequestsRequest { // Required. Parent resource // Format: - // organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload} + // `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/proto/google/cloud/cloudcontrolspartner/v1beta/core.proto b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/proto/google/cloud/cloudcontrolspartner/v1beta/core.proto index 348654e4c572..d3fd49f43a85 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/proto/google/cloud/cloudcontrolspartner/v1beta/core.proto +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/proto/google/cloud/cloudcontrolspartner/v1beta/core.proto @@ -95,9 +95,11 @@ service CloudControlsPartnerCore { option (google.api.method_signature) = "name"; } - // Lists access requests associated with a workload + // Deprecated: Only returns access approval requests directly associated with + // an assured workload folder. rpc ListAccessApprovalRequests(ListAccessApprovalRequestsRequest) returns (ListAccessApprovalRequestsResponse) { + option deprecated = true; option (google.api.http) = { get: "/v1beta/{parent=organizations/*/locations/*/customers/*/workloads/*}/accessApprovalRequests" }; diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/proto/google/cloud/cloudcontrolspartner/v1beta/customer_workloads.proto b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/proto/google/cloud/cloudcontrolspartner/v1beta/customer_workloads.proto index f0c6aefd2aee..cf2717b14929 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/proto/google/cloud/cloudcontrolspartner/v1beta/customer_workloads.proto +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/proto/google/cloud/cloudcontrolspartner/v1beta/customer_workloads.proto @@ -66,7 +66,7 @@ message Workload { } // Identifier. Format: - // organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload} + // `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Output only. Folder id this workload is associated with @@ -99,7 +99,7 @@ message Workload { message ListWorkloadsRequest { // Required. Parent resource // Format: - // organizations/{organization}/locations/{location}/customers/{customer} + // `organizations/{organization}/locations/{location}/customers/{customer}` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -138,7 +138,7 @@ message ListWorkloadsResponse { // Message for getting a customer workload. message GetWorkloadRequest { // Required. Format: - // organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload} + // `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/proto/google/cloud/cloudcontrolspartner/v1beta/customers.proto b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/proto/google/cloud/cloudcontrolspartner/v1beta/customers.proto index 21badcd49612..005f8116cf02 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/proto/google/cloud/cloudcontrolspartner/v1beta/customers.proto +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/proto/google/cloud/cloudcontrolspartner/v1beta/customers.proto @@ -39,7 +39,7 @@ message Customer { }; // Identifier. Format: - // organizations/{organization}/locations/{location}/customers/{customer} + // `organizations/{organization}/locations/{location}/customers/{customer}` string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // The customer organization's display name. E.g. "google.com". @@ -55,7 +55,7 @@ message Customer { // Request to list customers message ListCustomersRequest { // Required. Parent resource - // Format: organizations/{organization}/locations/{location} + // Format: `organizations/{organization}/locations/{location}` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -94,7 +94,7 @@ message ListCustomersResponse { // Message for getting a customer message GetCustomerRequest { // Required. Format: - // organizations/{organization}/locations/{location}/customers/{customer} + // `organizations/{organization}/locations/{location}/customers/{customer}` string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/proto/google/cloud/cloudcontrolspartner/v1beta/ekm_connections.proto b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/proto/google/cloud/cloudcontrolspartner/v1beta/ekm_connections.proto index 93d0f097ee5e..d458c6c6e013 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/proto/google/cloud/cloudcontrolspartner/v1beta/ekm_connections.proto +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/proto/google/cloud/cloudcontrolspartner/v1beta/ekm_connections.proto @@ -35,7 +35,7 @@ message EkmConnections { }; // Identifier. Format: - // organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections + // `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections` string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // The EKM connections associated with the workload @@ -45,7 +45,7 @@ message EkmConnections { // Request for getting the EKM connections associated with a workload message GetEkmConnectionsRequest { // Required. Format: - // organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections + // `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections` string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/proto/google/cloud/cloudcontrolspartner/v1beta/partner_permissions.proto b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/proto/google/cloud/cloudcontrolspartner/v1beta/partner_permissions.proto index a31e6d7a0366..cf8200b16ad3 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/proto/google/cloud/cloudcontrolspartner/v1beta/partner_permissions.proto +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/proto/google/cloud/cloudcontrolspartner/v1beta/partner_permissions.proto @@ -52,7 +52,7 @@ message PartnerPermissions { } // Identifier. Format: - // organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions + // `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions` string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // The partner permissions granted for the workload @@ -62,7 +62,7 @@ message PartnerPermissions { // Request for getting the partner permissions granted for a workload message GetPartnerPermissionsRequest { // Required. Name of the resource to get in the format: - // organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions + // `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions` string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/proto/google/cloud/cloudcontrolspartner/v1beta/partners.proto b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/proto/google/cloud/cloudcontrolspartner/v1beta/partners.proto index 58ddddd0c9f8..822370ad58bc 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/proto/google/cloud/cloudcontrolspartner/v1beta/partners.proto +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/proto/google/cloud/cloudcontrolspartner/v1beta/partners.proto @@ -37,7 +37,7 @@ message Partner { }; // Identifier. The resource name of the partner. - // Format: organizations/{organization}/locations/{location}/partner + // Format: `organizations/{organization}/locations/{location}/partner` // Example: "organizations/123456/locations/us-central1/partner" string name = 1 [(google.api.field_behavior) = IDENTIFIER]; @@ -67,7 +67,8 @@ message Partner { // Message for getting a Partner message GetPartnerRequest { - // Required. Format: organizations/{organization}/locations/{location}/partner + // Required. Format: + // `organizations/{organization}/locations/{location}/partner` string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/proto/google/cloud/cloudcontrolspartner/v1beta/violations.proto b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/proto/google/cloud/cloudcontrolspartner/v1beta/violations.proto index a4cba5baea40..e159a29c50e4 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/proto/google/cloud/cloudcontrolspartner/v1beta/violations.proto +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/src/main/proto/google/cloud/cloudcontrolspartner/v1beta/violations.proto @@ -130,7 +130,7 @@ message Violation { } // Identifier. Format: - // organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation} + // `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}` string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Output only. Description for the Violation. @@ -159,9 +159,9 @@ message Violation { // Output only. Immutable. Name of the OrgPolicy which was modified with // non-compliant change and resulted this violation. Format: - // projects/{project_number}/policies/{constraint_name} - // folders/{folder_id}/policies/{constraint_name} - // organizations/{organization_id}/policies/{constraint_name} + // `projects/{project_number}/policies/{constraint_name}` + // `folders/{folder_id}/policies/{constraint_name}` + // `organizations/{organization_id}/policies/{constraint_name}` string non_compliant_org_policy = 8 [ (google.api.field_behavior) = OUTPUT_ONLY, (google.api.field_behavior) = IMMUTABLE @@ -178,7 +178,7 @@ message Violation { message ListViolationsRequest { // Required. Parent resource // Format - // organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload} + // `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -223,7 +223,7 @@ message ListViolationsResponse { // Message for getting a Violation message GetViolationRequest { // Required. Format: - // organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation} + // `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}` string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/java-cloudquotas/README.md b/java-cloudquotas/README.md index cd8cf9258d03..e91e2bdc07d9 100644 --- a/java-cloudquotas/README.md +++ b/java-cloudquotas/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -197,7 +197,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-cloudquotas.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudquotas/0.12.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudquotas/0.13.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-cloudsupport/README.md b/java-cloudsupport/README.md index 74e6bd715a00..7d009bc9adfc 100644 --- a/java-cloudsupport/README.md +++ b/java-cloudsupport/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-cloudsupport.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudsupport/0.28.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudsupport/0.29.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-compute/README.md b/java-compute/README.md index c3b93b003aa4..022dd3f55305 100644 --- a/java-compute/README.md +++ b/java-compute/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -258,7 +258,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-compute.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-compute/1.54.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-compute/1.55.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-confidentialcomputing/README.md b/java-confidentialcomputing/README.md index 53def74886b1..9c5fb647fa34 100644 --- a/java-confidentialcomputing/README.md +++ b/java-confidentialcomputing/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-confidentialcomputing.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-confidentialcomputing/0.30.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-confidentialcomputing/0.31.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-contact-center-insights/README.md b/java-contact-center-insights/README.md index 9ed7721460ad..1816174018be 100644 --- a/java-contact-center-insights/README.md +++ b/java-contact-center-insights/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-contact-center-insights.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contact-center-insights/2.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contact-center-insights/2.45.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-container/README.md b/java-container/README.md index 4936efdaaf5e..db7036d035cb 100644 --- a/java-container/README.md +++ b/java-container/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import diff --git a/java-containeranalysis/README.md b/java-containeranalysis/README.md index 2a08cd77af94..cf46c9c262ff 100644 --- a/java-containeranalysis/README.md +++ b/java-containeranalysis/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-containeranalysis.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-containeranalysis/2.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-containeranalysis/2.46.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-contentwarehouse/README.md b/java-contentwarehouse/README.md index d5ed9ef239d3..584b65c039ae 100644 --- a/java-contentwarehouse/README.md +++ b/java-contentwarehouse/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-contentwarehouse.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contentwarehouse/0.40.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contentwarehouse/0.41.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-data-fusion/README.md b/java-data-fusion/README.md index a16497683228..e73e5f55ae95 100644 --- a/java-data-fusion/README.md +++ b/java-data-fusion/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-data-fusion.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-data-fusion/1.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-data-fusion/1.45.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-datacatalog/README.md b/java-datacatalog/README.md index a333dd72eaf0..332cf92728bd 100644 --- a/java-datacatalog/README.md +++ b/java-datacatalog/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-datacatalog.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datacatalog/1.50.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datacatalog/1.51.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dataflow/README.md b/java-dataflow/README.md index 173ab4842d0d..bcd7f327e533 100644 --- a/java-dataflow/README.md +++ b/java-dataflow/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataflow.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataflow/0.48.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataflow/0.49.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dataform/README.md b/java-dataform/README.md index bb7047baaccc..2bc809d99df3 100644 --- a/java-dataform/README.md +++ b/java-dataform/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataform.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataform/0.43.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataform/0.44.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-datalabeling/README.md b/java-datalabeling/README.md index 7b7fe38ecede..1b7fc2a7c813 100644 --- a/java-datalabeling/README.md +++ b/java-datalabeling/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-datalabeling.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datalabeling/0.164.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datalabeling/0.165.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-datalineage/README.md b/java-datalineage/README.md index e586228d782e..fa0b0dedd16a 100644 --- a/java-datalineage/README.md +++ b/java-datalineage/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-datalineage.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datalineage/0.36.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datalineage/0.37.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dataplex/README.md b/java-dataplex/README.md index 73e24248374e..48c3b6baa78e 100644 --- a/java-dataplex/README.md +++ b/java-dataplex/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataplex.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataplex/1.42.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataplex/1.43.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/DataScanServiceClient.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/DataScanServiceClient.java index 15013e439177..b0e763e713ab 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/DataScanServiceClient.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/DataScanServiceClient.java @@ -233,7 +233,8 @@ * * *

      GenerateDataQualityRules - *

      Generates recommended DataQualityRule from a data profiling DataScan. + *

      Generates recommended data quality rules based on the results of a data profiling scan. + *

      Use the recommendations to build rules for a data quality scan. * *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      *
        @@ -1565,7 +1566,9 @@ public final ListDataScanJobsPagedResponse listDataScanJobs(ListDataScanJobsRequ // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Generates recommended DataQualityRule from a data profiling DataScan. + * Generates recommended data quality rules based on the results of a data profiling scan. + * + *

        Use the recommendations to build rules for a data quality scan. * *

        Sample code: * @@ -1582,10 +1585,11 @@ public final ListDataScanJobsPagedResponse listDataScanJobs(ListDataScanJobsRequ * } * } * - * @param name Required. The name should be either + * @param name Required. The name must be one of the following: *

          - *
        • the name of a datascan with at least one successful completed data profiling job, or - *
        • the name of a successful completed data profiling datascan job. + *
        • The name of a data scan with at least one successful, completed data profiling job + *
        • The name of a successful, completed data profiling job (a data scan job where the job + * type is data profiling) *
        * * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -1598,7 +1602,9 @@ public final GenerateDataQualityRulesResponse generateDataQualityRules(String na // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Generates recommended DataQualityRule from a data profiling DataScan. + * Generates recommended data quality rules based on the results of a data profiling scan. + * + *

        Use the recommendations to build rules for a data quality scan. * *

        Sample code: * @@ -1626,7 +1632,9 @@ public final GenerateDataQualityRulesResponse generateDataQualityRules( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Generates recommended DataQualityRule from a data profiling DataScan. + * Generates recommended data quality rules based on the results of a data profiling scan. + * + *

        Use the recommendations to build rules for a data quality scan. * *

        Sample code: * diff --git a/java-dataplex/grpc-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanServiceGrpc.java b/java-dataplex/grpc-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanServiceGrpc.java index 0e46cf2e232f..93ba3f3b569b 100644 --- a/java-dataplex/grpc-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanServiceGrpc.java +++ b/java-dataplex/grpc-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataScanServiceGrpc.java @@ -616,7 +616,9 @@ default void listDataScanJobs( * * *

        -     * Generates recommended DataQualityRule from a data profiling DataScan.
        +     * Generates recommended data quality rules based on the results of a data
        +     * profiling scan.
        +     * Use the recommendations to build rules for a data quality scan.
              * 
        */ default void generateDataQualityRules( @@ -801,7 +803,9 @@ public void listDataScanJobs( * * *
        -     * Generates recommended DataQualityRule from a data profiling DataScan.
        +     * Generates recommended data quality rules based on the results of a data
        +     * profiling scan.
        +     * Use the recommendations to build rules for a data quality scan.
              * 
        */ public void generateDataQualityRules( @@ -944,7 +948,9 @@ public com.google.cloud.dataplex.v1.ListDataScanJobsResponse listDataScanJobs( * * *
        -     * Generates recommended DataQualityRule from a data profiling DataScan.
        +     * Generates recommended data quality rules based on the results of a data
        +     * profiling scan.
        +     * Use the recommendations to build rules for a data quality scan.
              * 
        */ public com.google.cloud.dataplex.v1.GenerateDataQualityRulesResponse generateDataQualityRules( @@ -1087,7 +1093,9 @@ protected DataScanServiceFutureStub build( * * *
        -     * Generates recommended DataQualityRule from a data profiling DataScan.
        +     * Generates recommended data quality rules based on the results of a data
        +     * profiling scan.
        +     * Use the recommendations to build rules for a data quality scan.
              * 
        */ public com.google.common.util.concurrent.ListenableFuture< diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/CatalogProto.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/CatalogProto.java index 23a594e3b36b..2787b6e30b89 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/CatalogProto.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/CatalogProto.java @@ -347,7 +347,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ex.googleapis.com/Entry\022Qprojects/{proje" + "ct}/locations/{location}/entryGroups/{en" + "try_group}/entries/{entry}*\007entries2\005ent" - + "ry\"\272\003\n\013EntrySource\022\020\n\010resource\030\001 \001(\t\022\016\n\006" + + "ry\"\321\003\n\013EntrySource\022\020\n\010resource\030\001 \001(\t\022\016\n\006" + "system\030\002 \001(\t\022\020\n\010platform\030\003 \001(\t\022\024\n\014displa" + "y_name\030\005 \001(\t\022\023\n\013description\030\006 \001(\t\022A\n\006lab" + "els\030\007 \003(\01321.google.cloud.dataplex.v1.Ent" @@ -355,239 +355,240 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "..google.cloud.dataplex.v1.EntrySource.A" + "ncestorB\003\340A\005\022/\n\013create_time\030\n \001(\0132\032.goog" + "le.protobuf.Timestamp\022/\n\013update_time\030\013 \001" - + "(\0132\032.google.protobuf.Timestamp\0320\n\010Ancest" - + "or\022\021\n\004name\030\001 \001(\tB\003\340A\001\022\021\n\004type\030\002 \001(\tB\003\340A\001" - + "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " - + "\001(\t:\0028\001\"\315\001\n\027CreateEntryGroupRequest\0229\n\006p" - + "arent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapi" - + "s.com/Location\022\033\n\016entry_group_id\030\002 \001(\tB\003" - + "\340A\002\022>\n\013entry_group\030\003 \001(\0132$.google.cloud." - + "dataplex.v1.EntryGroupB\003\340A\002\022\032\n\rvalidate_" - + "only\030\004 \001(\010B\003\340A\001\"\253\001\n\027UpdateEntryGroupRequ" - + "est\022>\n\013entry_group\030\001 \001(\0132$.google.cloud." - + "dataplex.v1.EntryGroupB\003\340A\002\0224\n\013update_ma" - + "sk\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A" - + "\002\022\032\n\rvalidate_only\030\003 \001(\010B\003\340A\001\"f\n\027DeleteE" - + "ntryGroupRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"" - + "dataplex.googleapis.com/EntryGroup\022\021\n\004et" - + "ag\030\002 \001(\tB\003\340A\001\"\260\001\n\026ListEntryGroupsRequest" - + "\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.goog" - + "leapis.com/Location\022\026\n\tpage_size\030\002 \001(\005B\003" - + "\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004" - + " \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(\tB\003\340A\001\"\215\001\n\027Lis" - + "tEntryGroupsResponse\022:\n\014entry_groups\030\001 \003" - + "(\0132$.google.cloud.dataplex.v1.EntryGroup" - + "\022\027\n\017next_page_token\030\002 \001(\t\022\035\n\025unreachable" - + "_locations\030\003 \003(\t\"P\n\024GetEntryGroupRequest" - + "\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"dataplex.googlea" - + "pis.com/EntryGroup\"\311\001\n\026CreateEntryTypeRe" - + "quest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations" - + ".googleapis.com/Location\022\032\n\rentry_type_i" - + "d\030\002 \001(\tB\003\340A\002\022<\n\nentry_type\030\003 \001(\0132#.googl" - + "e.cloud.dataplex.v1.EntryTypeB\003\340A\002\022\032\n\rva" - + "lidate_only\030\004 \001(\010B\003\340A\001\"\250\001\n\026UpdateEntryTy" - + "peRequest\022<\n\nentry_type\030\001 \001(\0132#.google.c" - + "loud.dataplex.v1.EntryTypeB\003\340A\002\0224\n\013updat" - + "e_mask\030\002 \001(\0132\032.google.protobuf.FieldMask" - + "B\003\340A\002\022\032\n\rvalidate_only\030\003 \001(\010B\003\340A\001\"d\n\026Del" - + "eteEntryTypeRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A" - + "#\n!dataplex.googleapis.com/EntryType\022\021\n\004" - + "etag\030\002 \001(\tB\003\340A\001\"\257\001\n\025ListEntryTypesReques" - + "t\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.goo" - + "gleapis.com/Location\022\026\n\tpage_size\030\002 \001(\005B" - + "\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030" - + "\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(\tB\003\340A\001\"\212\001\n\026Li" - + "stEntryTypesResponse\0228\n\013entry_types\030\001 \003(" - + "\0132#.google.cloud.dataplex.v1.EntryType\022\027" - + "\n\017next_page_token\030\002 \001(\t\022\035\n\025unreachable_l" - + "ocations\030\003 \003(\t\"N\n\023GetEntryTypeRequest\0227\n" - + "\004name\030\001 \001(\tB)\340A\002\372A#\n!dataplex.googleapis" - + ".com/EntryType\"\315\001\n\027CreateAspectTypeReque" - + "st\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.go" - + "ogleapis.com/Location\022\033\n\016aspect_type_id\030" - + "\002 \001(\tB\003\340A\002\022>\n\013aspect_type\030\003 \001(\0132$.google" - + ".cloud.dataplex.v1.AspectTypeB\003\340A\002\022\032\n\rva" - + "lidate_only\030\004 \001(\010B\003\340A\001\"\253\001\n\027UpdateAspectT" - + "ypeRequest\022>\n\013aspect_type\030\001 \001(\0132$.google" - + ".cloud.dataplex.v1.AspectTypeB\003\340A\002\0224\n\013up" - + "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM" - + "askB\003\340A\002\022\032\n\rvalidate_only\030\003 \001(\010B\003\340A\001\"f\n\027" - + "DeleteAspectTypeRequest\0228\n\004name\030\001 \001(\tB*\340" - + "A\002\372A$\n\"dataplex.googleapis.com/AspectTyp" - + "e\022\021\n\004etag\030\002 \001(\tB\003\340A\001\"\260\001\n\026ListAspectTypes" - + "Request\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locatio" - + "ns.googleapis.com/Location\022\026\n\tpage_size\030" + + "(\0132\032.google.protobuf.Timestamp\022\025\n\010locati" + + "on\030\014 \001(\tB\003\340A\003\0320\n\010Ancestor\022\021\n\004name\030\001 \001(\tB" + + "\003\340A\001\022\021\n\004type\030\002 \001(\tB\003\340A\001\032-\n\013LabelsEntry\022\013" + + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\315\001\n\027Creat" + + "eEntryGroupRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372" + + "A#\n!locations.googleapis.com/Location\022\033\n" + + "\016entry_group_id\030\002 \001(\tB\003\340A\002\022>\n\013entry_grou" + + "p\030\003 \001(\0132$.google.cloud.dataplex.v1.Entry" + + "GroupB\003\340A\002\022\032\n\rvalidate_only\030\004 \001(\010B\003\340A\001\"\253" + + "\001\n\027UpdateEntryGroupRequest\022>\n\013entry_grou" + + "p\030\001 \001(\0132$.google.cloud.dataplex.v1.Entry" + + "GroupB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google" + + ".protobuf.FieldMaskB\003\340A\002\022\032\n\rvalidate_onl" + + "y\030\003 \001(\010B\003\340A\001\"f\n\027DeleteEntryGroupRequest\022" + + "8\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"dataplex.googleap" + + "is.com/EntryGroup\022\021\n\004etag\030\002 \001(\tB\003\340A\001\"\260\001\n" + + "\026ListEntryGroupsRequest\0229\n\006parent\030\001 \001(\tB" + + ")\340A\002\372A#\n!locations.googleapis.com/Locati" + + "on\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token" + + "\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010orde" + + "r_by\030\005 \001(\tB\003\340A\001\"\215\001\n\027ListEntryGroupsRespo" + + "nse\022:\n\014entry_groups\030\001 \003(\0132$.google.cloud" + + ".dataplex.v1.EntryGroup\022\027\n\017next_page_tok" + + "en\030\002 \001(\t\022\035\n\025unreachable_locations\030\003 \003(\t\"" + + "P\n\024GetEntryGroupRequest\0228\n\004name\030\001 \001(\tB*\340" + + "A\002\372A$\n\"dataplex.googleapis.com/EntryGrou" + + "p\"\311\001\n\026CreateEntryTypeRequest\0229\n\006parent\030\001" + + " \001(\tB)\340A\002\372A#\n!locations.googleapis.com/L" + + "ocation\022\032\n\rentry_type_id\030\002 \001(\tB\003\340A\002\022<\n\ne" + + "ntry_type\030\003 \001(\0132#.google.cloud.dataplex." + + "v1.EntryTypeB\003\340A\002\022\032\n\rvalidate_only\030\004 \001(\010" + + "B\003\340A\001\"\250\001\n\026UpdateEntryTypeRequest\022<\n\nentr" + + "y_type\030\001 \001(\0132#.google.cloud.dataplex.v1." + + "EntryTypeB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.go" + + "ogle.protobuf.FieldMaskB\003\340A\002\022\032\n\rvalidate" + + "_only\030\003 \001(\010B\003\340A\001\"d\n\026DeleteEntryTypeReque" + + "st\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!dataplex.googl" + + "eapis.com/EntryType\022\021\n\004etag\030\002 \001(\tB\003\340A\001\"\257" + + "\001\n\025ListEntryTypesRequest\0229\n\006parent\030\001 \001(\t" + + "B)\340A\002\372A#\n!locations.googleapis.com/Locat" + + "ion\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_toke" + + "n\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010ord" + + "er_by\030\005 \001(\tB\003\340A\001\"\212\001\n\026ListEntryTypesRespo" + + "nse\0228\n\013entry_types\030\001 \003(\0132#.google.cloud." + + "dataplex.v1.EntryType\022\027\n\017next_page_token" + + "\030\002 \001(\t\022\035\n\025unreachable_locations\030\003 \003(\t\"N\n" + + "\023GetEntryTypeRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372" + + "A#\n!dataplex.googleapis.com/EntryType\"\315\001" + + "\n\027CreateAspectTypeRequest\0229\n\006parent\030\001 \001(" + + "\tB)\340A\002\372A#\n!locations.googleapis.com/Loca" + + "tion\022\033\n\016aspect_type_id\030\002 \001(\tB\003\340A\002\022>\n\013asp" + + "ect_type\030\003 \001(\0132$.google.cloud.dataplex.v" + + "1.AspectTypeB\003\340A\002\022\032\n\rvalidate_only\030\004 \001(\010" + + "B\003\340A\001\"\253\001\n\027UpdateAspectTypeRequest\022>\n\013asp" + + "ect_type\030\001 \001(\0132$.google.cloud.dataplex.v" + + "1.AspectTypeB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032" + + ".google.protobuf.FieldMaskB\003\340A\002\022\032\n\rvalid" + + "ate_only\030\003 \001(\010B\003\340A\001\"f\n\027DeleteAspectTypeR" + + "equest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"dataplex.g" + + "oogleapis.com/AspectType\022\021\n\004etag\030\002 \001(\tB\003" + + "\340A\001\"\260\001\n\026ListAspectTypesRequest\0229\n\006parent" + + "\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.com" + + "/Location\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npag" + + "e_token\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022" + + "\025\n\010order_by\030\005 \001(\tB\003\340A\001\"\215\001\n\027ListAspectTyp" + + "esResponse\022:\n\014aspect_types\030\001 \003(\0132$.googl" + + "e.cloud.dataplex.v1.AspectType\022\027\n\017next_p" + + "age_token\030\002 \001(\t\022\035\n\025unreachable_locations" + + "\030\003 \003(\t\"P\n\024GetAspectTypeRequest\0228\n\004name\030\001" + + " \001(\tB*\340A\002\372A$\n\"dataplex.googleapis.com/As" + + "pectType\"\234\001\n\022CreateEntryRequest\022:\n\006paren" + + "t\030\001 \001(\tB*\340A\002\372A$\n\"dataplex.googleapis.com" + + "/EntryGroup\022\025\n\010entry_id\030\002 \001(\tB\003\340A\002\0223\n\005en" + + "try\030\003 \001(\0132\037.google.cloud.dataplex.v1.Ent" + + "ryB\003\340A\002\"\332\001\n\022UpdateEntryRequest\0223\n\005entry\030" + + "\001 \001(\0132\037.google.cloud.dataplex.v1.EntryB\003" + + "\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.protob" + + "uf.FieldMaskB\003\340A\001\022\032\n\rallow_missing\030\003 \001(\010" + + "B\003\340A\001\022#\n\026delete_missing_aspects\030\004 \001(\010B\003\340" + + "A\001\022\030\n\013aspect_keys\030\005 \003(\tB\003\340A\001\"I\n\022DeleteEn" + + "tryRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035datapl" + + "ex.googleapis.com/Entry\"\226\001\n\022ListEntriesR" + + "equest\022:\n\006parent\030\001 \001(\tB*\340A\002\372A$\n\"dataplex" + + ".googleapis.com/EntryGroup\022\026\n\tpage_size\030" + "\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n\006f" - + "ilter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(\tB\003\340A\001\"" - + "\215\001\n\027ListAspectTypesResponse\022:\n\014aspect_ty" - + "pes\030\001 \003(\0132$.google.cloud.dataplex.v1.Asp" - + "ectType\022\027\n\017next_page_token\030\002 \001(\t\022\035\n\025unre" - + "achable_locations\030\003 \003(\t\"P\n\024GetAspectType" - + "Request\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"dataplex." - + "googleapis.com/AspectType\"\234\001\n\022CreateEntr" - + "yRequest\022:\n\006parent\030\001 \001(\tB*\340A\002\372A$\n\"datapl" - + "ex.googleapis.com/EntryGroup\022\025\n\010entry_id" - + "\030\002 \001(\tB\003\340A\002\0223\n\005entry\030\003 \001(\0132\037.google.clou" - + "d.dataplex.v1.EntryB\003\340A\002\"\332\001\n\022UpdateEntry" - + "Request\0223\n\005entry\030\001 \001(\0132\037.google.cloud.da" - + "taplex.v1.EntryB\003\340A\002\0224\n\013update_mask\030\002 \001(" - + "\0132\032.google.protobuf.FieldMaskB\003\340A\001\022\032\n\ral" - + "low_missing\030\003 \001(\010B\003\340A\001\022#\n\026delete_missing" - + "_aspects\030\004 \001(\010B\003\340A\001\022\030\n\013aspect_keys\030\005 \003(\t" - + "B\003\340A\001\"I\n\022DeleteEntryRequest\0223\n\004name\030\001 \001(" - + "\tB%\340A\002\372A\037\n\035dataplex.googleapis.com/Entry" - + "\"\226\001\n\022ListEntriesRequest\022:\n\006parent\030\001 \001(\tB" - + "*\340A\002\372A$\n\"dataplex.googleapis.com/EntryGr" - + "oup\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_toke" - + "n\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\"`\n\023Lis" - + "tEntriesResponse\0220\n\007entries\030\001 \003(\0132\037.goog" - + "le.cloud.dataplex.v1.Entry\022\027\n\017next_page_" - + "token\030\002 \001(\t\"\255\001\n\017GetEntryRequest\0223\n\004name\030" - + "\001 \001(\tB%\340A\002\372A\037\n\035dataplex.googleapis.com/E" - + "ntry\0226\n\004view\030\002 \001(\0162#.google.cloud.datapl" - + "ex.v1.EntryViewB\003\340A\001\022\031\n\014aspect_types\030\003 \003" - + "(\tB\003\340A\001\022\022\n\005paths\030\004 \003(\tB\003\340A\001\"\304\001\n\022LookupEn" - + "tryRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\0226\n\004view\030\002 " - + "\001(\0162#.google.cloud.dataplex.v1.EntryView" - + "B\003\340A\001\022\031\n\014aspect_types\030\003 \003(\tB\003\340A\001\022\022\n\005path" - + "s\030\004 \003(\tB\003\340A\001\0224\n\005entry\030\005 \001(\tB%\340A\002\372A\037\n\035dat" - + "aplex.googleapis.com/Entry\"\231\001\n\024SearchEnt" - + "riesRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\022\n\005query\030" - + "\002 \001(\tB\003\340A\002\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\npa" - + "ge_token\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(\tB\003\340" - + "A\001\022\022\n\005scope\030\007 \001(\tB\003\340A\001\"\366\001\n\023SearchEntries" - + "Result\022\027\n\017linked_resource\030\010 \001(\t\0227\n\016datap" - + "lex_entry\030\t \001(\0132\037.google.cloud.dataplex." - + "v1.Entry\022H\n\010snippets\030\014 \001(\01326.google.clou" - + "d.dataplex.v1.SearchEntriesResult.Snippe" - + "ts\032C\n\010Snippets\0227\n\016dataplex_entry\030\001 \001(\0132\037" - + ".google.cloud.dataplex.v1.Entry\"\231\001\n\025Sear" - + "chEntriesResponse\022>\n\007results\030\001 \003(\0132-.goo" - + "gle.cloud.dataplex.v1.SearchEntriesResul" - + "t\022\022\n\ntotal_size\030\002 \001(\005\022\027\n\017next_page_token" - + "\030\003 \001(\t\022\023\n\013unreachable\030\004 \003(\t*Q\n\tEntryView" - + "\022\032\n\026ENTRY_VIEW_UNSPECIFIED\020\000\022\t\n\005BASIC\020\001\022" - + "\010\n\004FULL\020\002\022\n\n\006CUSTOM\020\003\022\007\n\003ALL\020\004*p\n\016Transf" - + "erStatus\022\037\n\033TRANSFER_STATUS_UNSPECIFIED\020" - + "\000\022\034\n\030TRANSFER_STATUS_MIGRATED\020\001\022\037\n\033TRANS" - + "FER_STATUS_TRANSFERRED\020\0022\202#\n\016CatalogServ" - + "ice\022\352\001\n\017CreateEntryType\0220.google.cloud.d" - + "ataplex.v1.CreateEntryTypeRequest\032\035.goog" - + "le.longrunning.Operation\"\205\001\312A\036\n\tEntryTyp" - + "e\022\021OperationMetadata\332A\037parent,entry_type" - + ",entry_type_id\202\323\344\223\002<\"./v1/{parent=projec" - + "ts/*/locations/*}/entryTypes:\nentry_type" - + "\022\354\001\n\017UpdateEntryType\0220.google.cloud.data" - + "plex.v1.UpdateEntryTypeRequest\032\035.google." - + "longrunning.Operation\"\207\001\312A\036\n\tEntryType\022\021" - + "OperationMetadata\332A\026entry_type,update_ma" - + "sk\202\323\344\223\002G29/v1/{entry_type.name=projects/" - + "*/locations/*/entryTypes/*}:\nentry_type\022" - + "\316\001\n\017DeleteEntryType\0220.google.cloud.datap" - + "lex.v1.DeleteEntryTypeRequest\032\035.google.l" - + "ongrunning.Operation\"j\312A*\n\025google.protob" - + "uf.Empty\022\021OperationMetadata\332A\004name\202\323\344\223\0020" - + "*./v1/{name=projects/*/locations/*/entry" - + "Types/*}\022\264\001\n\016ListEntryTypes\022/.google.clo" - + "ud.dataplex.v1.ListEntryTypesRequest\0320.g" - + "oogle.cloud.dataplex.v1.ListEntryTypesRe" - + "sponse\"?\332A\006parent\202\323\344\223\0020\022./v1/{parent=pro" - + "jects/*/locations/*}/entryTypes\022\241\001\n\014GetE" - + "ntryType\022-.google.cloud.dataplex.v1.GetE" - + "ntryTypeRequest\032#.google.cloud.dataplex." - + "v1.EntryType\"=\332A\004name\202\323\344\223\0020\022./v1/{name=p" - + "rojects/*/locations/*/entryTypes/*}\022\361\001\n\020" - + "CreateAspectType\0221.google.cloud.dataplex" - + ".v1.CreateAspectTypeRequest\032\035.google.lon" - + "grunning.Operation\"\212\001\312A\037\n\nAspectType\022\021Op" - + "erationMetadata\332A!parent,aspect_type,asp" - + "ect_type_id\202\323\344\223\002>\"//v1/{parent=projects/" - + "*/locations/*}/aspectTypes:\013aspect_type\022" - + "\363\001\n\020UpdateAspectType\0221.google.cloud.data" - + "plex.v1.UpdateAspectTypeRequest\032\035.google" - + ".longrunning.Operation\"\214\001\312A\037\n\nAspectType" - + "\022\021OperationMetadata\332A\027aspect_type,update" - + "_mask\202\323\344\223\002J2;/v1/{aspect_type.name=proje" - + "cts/*/locations/*/aspectTypes/*}:\013aspect" - + "_type\022\321\001\n\020DeleteAspectType\0221.google.clou" - + "d.dataplex.v1.DeleteAspectTypeRequest\032\035." - + "google.longrunning.Operation\"k\312A*\n\025googl" - + "e.protobuf.Empty\022\021OperationMetadata\332A\004na" - + "me\202\323\344\223\0021*//v1/{name=projects/*/locations" - + "/*/aspectTypes/*}\022\270\001\n\017ListAspectTypes\0220." - + "google.cloud.dataplex.v1.ListAspectTypes" - + "Request\0321.google.cloud.dataplex.v1.ListA" - + "spectTypesResponse\"@\332A\006parent\202\323\344\223\0021\022//v1" - + "/{parent=projects/*/locations/*}/aspectT" - + "ypes\022\245\001\n\rGetAspectType\022..google.cloud.da" - + "taplex.v1.GetAspectTypeRequest\032$.google." - + "cloud.dataplex.v1.AspectType\">\332A\004name\202\323\344" - + "\223\0021\022//v1/{name=projects/*/locations/*/as" - + "pectTypes/*}\022\361\001\n\020CreateEntryGroup\0221.goog" - + "le.cloud.dataplex.v1.CreateEntryGroupReq" - + "uest\032\035.google.longrunning.Operation\"\212\001\312A" - + "\037\n\nEntryGroup\022\021OperationMetadata\332A!paren" - + "t,entry_group,entry_group_id\202\323\344\223\002>\"//v1/" - + "{parent=projects/*/locations/*}/entryGro" - + "ups:\013entry_group\022\363\001\n\020UpdateEntryGroup\0221." - + "google.cloud.dataplex.v1.UpdateEntryGrou" - + "pRequest\032\035.google.longrunning.Operation\"" - + "\214\001\312A\037\n\nEntryGroup\022\021OperationMetadata\332A\027e" - + "ntry_group,update_mask\202\323\344\223\002J2;/v1/{entry" - + "_group.name=projects/*/locations/*/entry" - + "Groups/*}:\013entry_group\022\321\001\n\020DeleteEntryGr" - + "oup\0221.google.cloud.dataplex.v1.DeleteEnt" - + "ryGroupRequest\032\035.google.longrunning.Oper" - + "ation\"k\312A*\n\025google.protobuf.Empty\022\021Opera" - + "tionMetadata\332A\004name\202\323\344\223\0021*//v1/{name=pro" - + "jects/*/locations/*/entryGroups/*}\022\270\001\n\017L" - + "istEntryGroups\0220.google.cloud.dataplex.v" - + "1.ListEntryGroupsRequest\0321.google.cloud." - + "dataplex.v1.ListEntryGroupsResponse\"@\332A\006" - + "parent\202\323\344\223\0021\022//v1/{parent=projects/*/loc" - + "ations/*}/entryGroups\022\245\001\n\rGetEntryGroup\022" - + "..google.cloud.dataplex.v1.GetEntryGroup" - + "Request\032$.google.cloud.dataplex.v1.Entry" - + "Group\">\332A\004name\202\323\344\223\0021\022//v1/{name=projects" - + "/*/locations/*/entryGroups/*}\022\276\001\n\013Create" - + "Entry\022,.google.cloud.dataplex.v1.CreateE" - + "ntryRequest\032\037.google.cloud.dataplex.v1.E" - + "ntry\"`\332A\025parent,entry,entry_id\202\323\344\223\002B\"9/v" - + "1/{parent=projects/*/locations/*/entryGr" - + "oups/*}/entries:\005entry\022\301\001\n\013UpdateEntry\022," - + ".google.cloud.dataplex.v1.UpdateEntryReq" - + "uest\032\037.google.cloud.dataplex.v1.Entry\"c\332" - + "A\021entry,update_mask\202\323\344\223\002I2@/v1/{entry.na" - + "me=projects/*/locations/*/entryGroups/*/" - + "entries/**}:\005entry\022\247\001\n\013DeleteEntry\022,.goo" - + "gle.cloud.dataplex.v1.DeleteEntryRequest" - + "\032\037.google.cloud.dataplex.v1.Entry\"I\332A\004na" - + "me\202\323\344\223\002<*:/v1/{name=projects/*/locations" - + "/*/entryGroups/*/entries/**}\022\266\001\n\013ListEnt" - + "ries\022,.google.cloud.dataplex.v1.ListEntr" - + "iesRequest\032-.google.cloud.dataplex.v1.Li" - + "stEntriesResponse\"J\332A\006parent\202\323\344\223\002;\0229/v1/" - + "{parent=projects/*/locations/*/entryGrou" - + "ps/*}/entries\022\241\001\n\010GetEntry\022).google.clou" - + "d.dataplex.v1.GetEntryRequest\032\037.google.c" - + "loud.dataplex.v1.Entry\"I\332A\004name\202\323\344\223\002<\022:/" - + "v1/{name=projects/*/locations/*/entryGro" - + "ups/*/entries/**}\022\223\001\n\013LookupEntry\022,.goog" - + "le.cloud.dataplex.v1.LookupEntryRequest\032" - + "\037.google.cloud.dataplex.v1.Entry\"5\202\323\344\223\002/" - + "\022-/v1/{name=projects/*/locations/*}:look" - + "upEntry\022\266\001\n\rSearchEntries\022..google.cloud" - + ".dataplex.v1.SearchEntriesRequest\032/.goog" - + "le.cloud.dataplex.v1.SearchEntriesRespon" - + "se\"D\332A\nname,query\202\323\344\223\0021\"//v1/{name=proje" - + "cts/*/locations/*}:searchEntries\032K\312A\027dat" - + "aplex.googleapis.com\322A.https://www.googl" - + "eapis.com/auth/cloud-platformB\274\001\n\034com.go" - + "ogle.cloud.dataplex.v1B\014CatalogProtoP\001Z8" - + "cloud.google.com/go/dataplex/apiv1/datap" - + "lexpb;dataplexpb\252\002\030Google.Cloud.Dataplex" - + ".V1\312\002\030Google\\Cloud\\Dataplex\\V1\352\002\033Google:" - + ":Cloud::Dataplex::V1b\006proto3" + + "ilter\030\004 \001(\tB\003\340A\001\"`\n\023ListEntriesResponse\022" + + "0\n\007entries\030\001 \003(\0132\037.google.cloud.dataplex" + + ".v1.Entry\022\027\n\017next_page_token\030\002 \001(\t\"\255\001\n\017G" + + "etEntryRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035da" + + "taplex.googleapis.com/Entry\0226\n\004view\030\002 \001(" + + "\0162#.google.cloud.dataplex.v1.EntryViewB\003" + + "\340A\001\022\031\n\014aspect_types\030\003 \003(\tB\003\340A\001\022\022\n\005paths\030" + + "\004 \003(\tB\003\340A\001\"\304\001\n\022LookupEntryRequest\022\021\n\004nam" + + "e\030\001 \001(\tB\003\340A\002\0226\n\004view\030\002 \001(\0162#.google.clou" + + "d.dataplex.v1.EntryViewB\003\340A\001\022\031\n\014aspect_t" + + "ypes\030\003 \003(\tB\003\340A\001\022\022\n\005paths\030\004 \003(\tB\003\340A\001\0224\n\005e" + + "ntry\030\005 \001(\tB%\340A\002\372A\037\n\035dataplex.googleapis." + + "com/Entry\"\231\001\n\024SearchEntriesRequest\022\021\n\004na" + + "me\030\001 \001(\tB\003\340A\002\022\022\n\005query\030\002 \001(\tB\003\340A\002\022\026\n\tpag" + + "e_size\030\003 \001(\005B\003\340A\001\022\027\n\npage_token\030\004 \001(\tB\003\340" + + "A\001\022\025\n\010order_by\030\005 \001(\tB\003\340A\001\022\022\n\005scope\030\007 \001(\t" + + "B\003\340A\001\"\206\002\n\023SearchEntriesResult\022\033\n\017linked_" + + "resource\030\010 \001(\tB\002\030\001\0227\n\016dataplex_entry\030\t \001" + + "(\0132\037.google.cloud.dataplex.v1.Entry\022L\n\010s" + + "nippets\030\014 \001(\01326.google.cloud.dataplex.v1" + + ".SearchEntriesResult.SnippetsB\002\030\001\032K\n\010Sni" + + "ppets\022;\n\016dataplex_entry\030\001 \001(\0132\037.google.c" + + "loud.dataplex.v1.EntryB\002\030\001:\002\030\001\"\231\001\n\025Searc" + + "hEntriesResponse\022>\n\007results\030\001 \003(\0132-.goog" + + "le.cloud.dataplex.v1.SearchEntriesResult" + + "\022\022\n\ntotal_size\030\002 \001(\005\022\027\n\017next_page_token\030" + + "\003 \001(\t\022\023\n\013unreachable\030\004 \003(\t*Q\n\tEntryView\022" + + "\032\n\026ENTRY_VIEW_UNSPECIFIED\020\000\022\t\n\005BASIC\020\001\022\010" + + "\n\004FULL\020\002\022\n\n\006CUSTOM\020\003\022\007\n\003ALL\020\004*p\n\016Transfe" + + "rStatus\022\037\n\033TRANSFER_STATUS_UNSPECIFIED\020\000" + + "\022\034\n\030TRANSFER_STATUS_MIGRATED\020\001\022\037\n\033TRANSF" + + "ER_STATUS_TRANSFERRED\020\0022\202#\n\016CatalogServi" + + "ce\022\352\001\n\017CreateEntryType\0220.google.cloud.da" + + "taplex.v1.CreateEntryTypeRequest\032\035.googl" + + "e.longrunning.Operation\"\205\001\312A\036\n\tEntryType" + + "\022\021OperationMetadata\332A\037parent,entry_type," + + "entry_type_id\202\323\344\223\002<\"./v1/{parent=project" + + "s/*/locations/*}/entryTypes:\nentry_type\022" + + "\354\001\n\017UpdateEntryType\0220.google.cloud.datap" + + "lex.v1.UpdateEntryTypeRequest\032\035.google.l" + + "ongrunning.Operation\"\207\001\312A\036\n\tEntryType\022\021O" + + "perationMetadata\332A\026entry_type,update_mas" + + "k\202\323\344\223\002G29/v1/{entry_type.name=projects/*" + + "/locations/*/entryTypes/*}:\nentry_type\022\316" + + "\001\n\017DeleteEntryType\0220.google.cloud.datapl" + + "ex.v1.DeleteEntryTypeRequest\032\035.google.lo" + + "ngrunning.Operation\"j\312A*\n\025google.protobu" + + "f.Empty\022\021OperationMetadata\332A\004name\202\323\344\223\0020*" + + "./v1/{name=projects/*/locations/*/entryT" + + "ypes/*}\022\264\001\n\016ListEntryTypes\022/.google.clou" + + "d.dataplex.v1.ListEntryTypesRequest\0320.go" + + "ogle.cloud.dataplex.v1.ListEntryTypesRes" + + "ponse\"?\332A\006parent\202\323\344\223\0020\022./v1/{parent=proj" + + "ects/*/locations/*}/entryTypes\022\241\001\n\014GetEn" + + "tryType\022-.google.cloud.dataplex.v1.GetEn" + + "tryTypeRequest\032#.google.cloud.dataplex.v" + + "1.EntryType\"=\332A\004name\202\323\344\223\0020\022./v1/{name=pr" + + "ojects/*/locations/*/entryTypes/*}\022\361\001\n\020C" + + "reateAspectType\0221.google.cloud.dataplex." + + "v1.CreateAspectTypeRequest\032\035.google.long" + + "running.Operation\"\212\001\312A\037\n\nAspectType\022\021Ope" + + "rationMetadata\332A!parent,aspect_type,aspe" + + "ct_type_id\202\323\344\223\002>\"//v1/{parent=projects/*" + + "/locations/*}/aspectTypes:\013aspect_type\022\363" + + "\001\n\020UpdateAspectType\0221.google.cloud.datap" + + "lex.v1.UpdateAspectTypeRequest\032\035.google." + + "longrunning.Operation\"\214\001\312A\037\n\nAspectType\022" + + "\021OperationMetadata\332A\027aspect_type,update_" + + "mask\202\323\344\223\002J2;/v1/{aspect_type.name=projec" + + "ts/*/locations/*/aspectTypes/*}:\013aspect_" + + "type\022\321\001\n\020DeleteAspectType\0221.google.cloud" + + ".dataplex.v1.DeleteAspectTypeRequest\032\035.g" + + "oogle.longrunning.Operation\"k\312A*\n\025google" + + ".protobuf.Empty\022\021OperationMetadata\332A\004nam" + + "e\202\323\344\223\0021*//v1/{name=projects/*/locations/" + + "*/aspectTypes/*}\022\270\001\n\017ListAspectTypes\0220.g" + + "oogle.cloud.dataplex.v1.ListAspectTypesR" + + "equest\0321.google.cloud.dataplex.v1.ListAs" + + "pectTypesResponse\"@\332A\006parent\202\323\344\223\0021\022//v1/" + + "{parent=projects/*/locations/*}/aspectTy" + + "pes\022\245\001\n\rGetAspectType\022..google.cloud.dat" + + "aplex.v1.GetAspectTypeRequest\032$.google.c" + + "loud.dataplex.v1.AspectType\">\332A\004name\202\323\344\223" + + "\0021\022//v1/{name=projects/*/locations/*/asp" + + "ectTypes/*}\022\361\001\n\020CreateEntryGroup\0221.googl" + + "e.cloud.dataplex.v1.CreateEntryGroupRequ" + + "est\032\035.google.longrunning.Operation\"\212\001\312A\037" + + "\n\nEntryGroup\022\021OperationMetadata\332A!parent" + + ",entry_group,entry_group_id\202\323\344\223\002>\"//v1/{" + + "parent=projects/*/locations/*}/entryGrou" + + "ps:\013entry_group\022\363\001\n\020UpdateEntryGroup\0221.g" + + "oogle.cloud.dataplex.v1.UpdateEntryGroup" + + "Request\032\035.google.longrunning.Operation\"\214" + + "\001\312A\037\n\nEntryGroup\022\021OperationMetadata\332A\027en" + + "try_group,update_mask\202\323\344\223\002J2;/v1/{entry_" + + "group.name=projects/*/locations/*/entryG" + + "roups/*}:\013entry_group\022\321\001\n\020DeleteEntryGro" + + "up\0221.google.cloud.dataplex.v1.DeleteEntr" + + "yGroupRequest\032\035.google.longrunning.Opera" + + "tion\"k\312A*\n\025google.protobuf.Empty\022\021Operat" + + "ionMetadata\332A\004name\202\323\344\223\0021*//v1/{name=proj" + + "ects/*/locations/*/entryGroups/*}\022\270\001\n\017Li" + + "stEntryGroups\0220.google.cloud.dataplex.v1" + + ".ListEntryGroupsRequest\0321.google.cloud.d" + + "ataplex.v1.ListEntryGroupsResponse\"@\332A\006p" + + "arent\202\323\344\223\0021\022//v1/{parent=projects/*/loca" + + "tions/*}/entryGroups\022\245\001\n\rGetEntryGroup\022." + + ".google.cloud.dataplex.v1.GetEntryGroupR" + + "equest\032$.google.cloud.dataplex.v1.EntryG" + + "roup\">\332A\004name\202\323\344\223\0021\022//v1/{name=projects/" + + "*/locations/*/entryGroups/*}\022\276\001\n\013CreateE" + + "ntry\022,.google.cloud.dataplex.v1.CreateEn" + + "tryRequest\032\037.google.cloud.dataplex.v1.En" + + "try\"`\332A\025parent,entry,entry_id\202\323\344\223\002B\"9/v1" + + "/{parent=projects/*/locations/*/entryGro" + + "ups/*}/entries:\005entry\022\301\001\n\013UpdateEntry\022,." + + "google.cloud.dataplex.v1.UpdateEntryRequ" + + "est\032\037.google.cloud.dataplex.v1.Entry\"c\332A" + + "\021entry,update_mask\202\323\344\223\002I2@/v1/{entry.nam" + + "e=projects/*/locations/*/entryGroups/*/e" + + "ntries/**}:\005entry\022\247\001\n\013DeleteEntry\022,.goog" + + "le.cloud.dataplex.v1.DeleteEntryRequest\032" + + "\037.google.cloud.dataplex.v1.Entry\"I\332A\004nam" + + "e\202\323\344\223\002<*:/v1/{name=projects/*/locations/" + + "*/entryGroups/*/entries/**}\022\266\001\n\013ListEntr" + + "ies\022,.google.cloud.dataplex.v1.ListEntri" + + "esRequest\032-.google.cloud.dataplex.v1.Lis" + + "tEntriesResponse\"J\332A\006parent\202\323\344\223\002;\0229/v1/{" + + "parent=projects/*/locations/*/entryGroup" + + "s/*}/entries\022\241\001\n\010GetEntry\022).google.cloud" + + ".dataplex.v1.GetEntryRequest\032\037.google.cl" + + "oud.dataplex.v1.Entry\"I\332A\004name\202\323\344\223\002<\022:/v" + + "1/{name=projects/*/locations/*/entryGrou" + + "ps/*/entries/**}\022\223\001\n\013LookupEntry\022,.googl" + + "e.cloud.dataplex.v1.LookupEntryRequest\032\037" + + ".google.cloud.dataplex.v1.Entry\"5\202\323\344\223\002/\022" + + "-/v1/{name=projects/*/locations/*}:looku" + + "pEntry\022\266\001\n\rSearchEntries\022..google.cloud." + + "dataplex.v1.SearchEntriesRequest\032/.googl" + + "e.cloud.dataplex.v1.SearchEntriesRespons" + + "e\"D\332A\nname,query\202\323\344\223\0021\"//v1/{name=projec" + + "ts/*/locations/*}:searchEntries\032K\312A\027data" + + "plex.googleapis.com\322A.https://www.google" + + "apis.com/auth/cloud-platformB\274\001\n\034com.goo" + + "gle.cloud.dataplex.v1B\014CatalogProtoP\001Z8c" + + "loud.google.com/go/dataplex/apiv1/datapl" + + "expb;dataplexpb\252\002\030Google.Cloud.Dataplex." + + "V1\312\002\030Google\\Cloud\\Dataplex\\V1\352\002\033Google::" + + "Cloud::Dataplex::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -813,6 +814,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Ancestors", "CreateTime", "UpdateTime", + "Location", }); internal_static_google_cloud_dataplex_v1_EntrySource_Ancestor_descriptor = internal_static_google_cloud_dataplex_v1_EntrySource_descriptor.getNestedTypes().get(0); diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityRule.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityRule.java index 99fbae1527b4..c4bc3de43a39 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityRule.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityRule.java @@ -6407,17 +6407,19 @@ public interface SqlAssertionOrBuilder * * *
        -   * Queries for rows returned by the provided SQL statement. If any rows are
        -   * are returned, this rule fails.
        +   * A SQL statement that is evaluated to return rows that match an invalid
        +   * state. If any rows are are returned, this rule fails.
            *
        -   * The SQL statement needs to use BigQuery standard SQL syntax, and must not
        +   * The SQL statement must use BigQuery standard SQL syntax, and must not
            * contain any semicolons.
            *
        -   * ${data()} can be used to reference the rows being evaluated, i.e. the table
        -   * after all additional filters (row filters, incremental data filters,
        -   * sampling) are applied.
        +   * You can use the data reference parameter `${data()}` to reference the
        +   * source table with all of its precondition filters applied. Examples of
        +   * precondition filters include row filters, incremental data filters, and
        +   * sampling. For more information, see [Data reference
        +   * parameter](https://cloud.google.com/dataplex/docs/auto-data-quality-overview#data-reference-parameter).
            *
        -   * Example: SELECT * FROM ${data()} WHERE price < 0
        +   * Example: `SELECT * FROM ${data()} WHERE price < 0`
            * 
        * * Protobuf type {@code google.cloud.dataplex.v1.DataQualityRule.SqlAssertion} @@ -6673,17 +6675,19 @@ protected Builder newBuilderForType( * * *
        -     * Queries for rows returned by the provided SQL statement. If any rows are
        -     * are returned, this rule fails.
        +     * A SQL statement that is evaluated to return rows that match an invalid
        +     * state. If any rows are are returned, this rule fails.
              *
        -     * The SQL statement needs to use BigQuery standard SQL syntax, and must not
        +     * The SQL statement must use BigQuery standard SQL syntax, and must not
              * contain any semicolons.
              *
        -     * ${data()} can be used to reference the rows being evaluated, i.e. the table
        -     * after all additional filters (row filters, incremental data filters,
        -     * sampling) are applied.
        +     * You can use the data reference parameter `${data()}` to reference the
        +     * source table with all of its precondition filters applied. Examples of
        +     * precondition filters include row filters, incremental data filters, and
        +     * sampling. For more information, see [Data reference
        +     * parameter](https://cloud.google.com/dataplex/docs/auto-data-quality-overview#data-reference-parameter).
              *
        -     * Example: SELECT * FROM ${data()} WHERE price < 0
        +     * Example: `SELECT * FROM ${data()} WHERE price < 0`
              * 
        * * Protobuf type {@code google.cloud.dataplex.v1.DataQualityRule.SqlAssertion} @@ -7582,7 +7586,7 @@ public boolean hasTableConditionExpectation() { * *
            * Aggregate rule which evaluates the number of rows returned for the
        -   * provided statement.
        +   * provided statement. If any rows are returned, this rule fails.
            * 
        * * .google.cloud.dataplex.v1.DataQualityRule.SqlAssertion sql_assertion = 202; @@ -7598,7 +7602,7 @@ public boolean hasSqlAssertion() { * *
            * Aggregate rule which evaluates the number of rows returned for the
        -   * provided statement.
        +   * provided statement. If any rows are returned, this rule fails.
            * 
        * * .google.cloud.dataplex.v1.DataQualityRule.SqlAssertion sql_assertion = 202; @@ -7617,7 +7621,7 @@ public com.google.cloud.dataplex.v1.DataQualityRule.SqlAssertion getSqlAssertion * *
            * Aggregate rule which evaluates the number of rows returned for the
        -   * provided statement.
        +   * provided statement. If any rows are returned, this rule fails.
            * 
        * * .google.cloud.dataplex.v1.DataQualityRule.SqlAssertion sql_assertion = 202; @@ -10631,7 +10635,7 @@ public Builder clearTableConditionExpectation() { * *
              * Aggregate rule which evaluates the number of rows returned for the
        -     * provided statement.
        +     * provided statement. If any rows are returned, this rule fails.
              * 
        * * .google.cloud.dataplex.v1.DataQualityRule.SqlAssertion sql_assertion = 202; @@ -10647,7 +10651,7 @@ public boolean hasSqlAssertion() { * *
              * Aggregate rule which evaluates the number of rows returned for the
        -     * provided statement.
        +     * provided statement. If any rows are returned, this rule fails.
              * 
        * * .google.cloud.dataplex.v1.DataQualityRule.SqlAssertion sql_assertion = 202; @@ -10673,7 +10677,7 @@ public com.google.cloud.dataplex.v1.DataQualityRule.SqlAssertion getSqlAssertion * *
              * Aggregate rule which evaluates the number of rows returned for the
        -     * provided statement.
        +     * provided statement. If any rows are returned, this rule fails.
              * 
        * * .google.cloud.dataplex.v1.DataQualityRule.SqlAssertion sql_assertion = 202; @@ -10697,7 +10701,7 @@ public Builder setSqlAssertion( * *
              * Aggregate rule which evaluates the number of rows returned for the
        -     * provided statement.
        +     * provided statement. If any rows are returned, this rule fails.
              * 
        * * .google.cloud.dataplex.v1.DataQualityRule.SqlAssertion sql_assertion = 202; @@ -10718,7 +10722,7 @@ public Builder setSqlAssertion( * *
              * Aggregate rule which evaluates the number of rows returned for the
        -     * provided statement.
        +     * provided statement. If any rows are returned, this rule fails.
              * 
        * * .google.cloud.dataplex.v1.DataQualityRule.SqlAssertion sql_assertion = 202; @@ -10753,7 +10757,7 @@ public Builder mergeSqlAssertion( * *
              * Aggregate rule which evaluates the number of rows returned for the
        -     * provided statement.
        +     * provided statement. If any rows are returned, this rule fails.
              * 
        * * .google.cloud.dataplex.v1.DataQualityRule.SqlAssertion sql_assertion = 202; @@ -10779,7 +10783,7 @@ public Builder clearSqlAssertion() { * *
              * Aggregate rule which evaluates the number of rows returned for the
        -     * provided statement.
        +     * provided statement. If any rows are returned, this rule fails.
              * 
        * * .google.cloud.dataplex.v1.DataQualityRule.SqlAssertion sql_assertion = 202; @@ -10793,7 +10797,7 @@ public Builder clearSqlAssertion() { * *
              * Aggregate rule which evaluates the number of rows returned for the
        -     * provided statement.
        +     * provided statement. If any rows are returned, this rule fails.
              * 
        * * .google.cloud.dataplex.v1.DataQualityRule.SqlAssertion sql_assertion = 202; @@ -10815,7 +10819,7 @@ public Builder clearSqlAssertion() { * *
              * Aggregate rule which evaluates the number of rows returned for the
        -     * provided statement.
        +     * provided statement. If any rows are returned, this rule fails.
              * 
        * * .google.cloud.dataplex.v1.DataQualityRule.SqlAssertion sql_assertion = 202; diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityRuleOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityRuleOrBuilder.java index c22099c91481..b0a8d86d60c5 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityRuleOrBuilder.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityRuleOrBuilder.java @@ -363,7 +363,7 @@ public interface DataQualityRuleOrBuilder * *
            * Aggregate rule which evaluates the number of rows returned for the
        -   * provided statement.
        +   * provided statement. If any rows are returned, this rule fails.
            * 
        * * .google.cloud.dataplex.v1.DataQualityRule.SqlAssertion sql_assertion = 202; @@ -376,7 +376,7 @@ public interface DataQualityRuleOrBuilder * *
            * Aggregate rule which evaluates the number of rows returned for the
        -   * provided statement.
        +   * provided statement. If any rows are returned, this rule fails.
            * 
        * * .google.cloud.dataplex.v1.DataQualityRule.SqlAssertion sql_assertion = 202; @@ -389,7 +389,7 @@ public interface DataQualityRuleOrBuilder * *
            * Aggregate rule which evaluates the number of rows returned for the
        -   * provided statement.
        +   * provided statement. If any rows are returned, this rule fails.
            * 
        * * .google.cloud.dataplex.v1.DataQualityRule.SqlAssertion sql_assertion = 202; diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityRuleResult.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityRuleResult.java index 39d999646751..d5ce2a90acb5 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityRuleResult.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityRuleResult.java @@ -278,10 +278,10 @@ public com.google.protobuf.ByteString getFailingRowsQueryBytes() { * * *
        -   * Output only. The number of rows returned by the sql statement in the
        -   * SqlAssertion rule.
        +   * Output only. The number of rows returned by the SQL statement in a SQL
        +   * assertion rule.
            *
        -   * This field is only valid for SqlAssertion rules.
        +   * This field is only valid for SQL assertion rules.
            * 
        * * int64 assertion_row_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1424,10 +1424,10 @@ public Builder setFailingRowsQueryBytes(com.google.protobuf.ByteString value) { * * *
        -     * Output only. The number of rows returned by the sql statement in the
        -     * SqlAssertion rule.
        +     * Output only. The number of rows returned by the SQL statement in a SQL
        +     * assertion rule.
              *
        -     * This field is only valid for SqlAssertion rules.
        +     * This field is only valid for SQL assertion rules.
              * 
        * * int64 assertion_row_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1442,10 +1442,10 @@ public long getAssertionRowCount() { * * *
        -     * Output only. The number of rows returned by the sql statement in the
        -     * SqlAssertion rule.
        +     * Output only. The number of rows returned by the SQL statement in a SQL
        +     * assertion rule.
              *
        -     * This field is only valid for SqlAssertion rules.
        +     * This field is only valid for SQL assertion rules.
              * 
        * * int64 assertion_row_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1464,10 +1464,10 @@ public Builder setAssertionRowCount(long value) { * * *
        -     * Output only. The number of rows returned by the sql statement in the
        -     * SqlAssertion rule.
        +     * Output only. The number of rows returned by the SQL statement in a SQL
        +     * assertion rule.
              *
        -     * This field is only valid for SqlAssertion rules.
        +     * This field is only valid for SQL assertion rules.
              * 
        * * int64 assertion_row_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityRuleResultOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityRuleResultOrBuilder.java index a70876d6c942..14181995c2c5 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityRuleResultOrBuilder.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityRuleResultOrBuilder.java @@ -170,10 +170,10 @@ public interface DataQualityRuleResultOrBuilder * * *
        -   * Output only. The number of rows returned by the sql statement in the
        -   * SqlAssertion rule.
        +   * Output only. The number of rows returned by the SQL statement in a SQL
        +   * assertion rule.
            *
        -   * This field is only valid for SqlAssertion rules.
        +   * This field is only valid for SQL assertion rules.
            * 
        * * int64 assertion_row_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityScanRuleResult.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityScanRuleResult.java index 7f52174508c8..6d46c035b35c 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityScanRuleResult.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityScanRuleResult.java @@ -95,8 +95,8 @@ public enum RuleType implements com.google.protobuf.ProtocolMessageEnum { * * *
        -     * Please see
        -     * https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#nonnullexpectation.
        +     * See
        +     * [DataQualityRule.NonNullExpectation][google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation].
              * 
        * * NON_NULL_EXPECTATION = 1; @@ -106,8 +106,8 @@ public enum RuleType implements com.google.protobuf.ProtocolMessageEnum { * * *
        -     * Please see
        -     * https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#rangeexpectation.
        +     * See
        +     * [DataQualityRule.RangeExpectation][google.cloud.dataplex.v1.DataQualityRule.RangeExpectation].
              * 
        * * RANGE_EXPECTATION = 2; @@ -117,8 +117,8 @@ public enum RuleType implements com.google.protobuf.ProtocolMessageEnum { * * *
        -     * Please see
        -     * https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#regexexpectation.
        +     * See
        +     * [DataQualityRule.RegexExpectation][google.cloud.dataplex.v1.DataQualityRule.RegexExpectation].
              * 
        * * REGEX_EXPECTATION = 3; @@ -128,8 +128,8 @@ public enum RuleType implements com.google.protobuf.ProtocolMessageEnum { * * *
        -     * Please see
        -     * https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#rowconditionexpectation.
        +     * See
        +     * [DataQualityRule.RowConditionExpectation][google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation].
              * 
        * * ROW_CONDITION_EXPECTATION = 4; @@ -139,8 +139,8 @@ public enum RuleType implements com.google.protobuf.ProtocolMessageEnum { * * *
        -     * Please see
        -     * https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#setexpectation.
        +     * See
        +     * [DataQualityRule.SetExpectation][google.cloud.dataplex.v1.DataQualityRule.SetExpectation].
              * 
        * * SET_EXPECTATION = 5; @@ -150,8 +150,8 @@ public enum RuleType implements com.google.protobuf.ProtocolMessageEnum { * * *
        -     * Please see
        -     * https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#statisticrangeexpectation.
        +     * See
        +     * [DataQualityRule.StatisticRangeExpectation][google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation].
              * 
        * * STATISTIC_RANGE_EXPECTATION = 6; @@ -161,8 +161,8 @@ public enum RuleType implements com.google.protobuf.ProtocolMessageEnum { * * *
        -     * Please see
        -     * https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#tableconditionexpectation.
        +     * See
        +     * [DataQualityRule.TableConditionExpectation][google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation].
              * 
        * * TABLE_CONDITION_EXPECTATION = 7; @@ -172,8 +172,8 @@ public enum RuleType implements com.google.protobuf.ProtocolMessageEnum { * * *
        -     * Please see
        -     * https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#uniquenessexpectation.
        +     * See
        +     * [DataQualityRule.UniquenessExpectation][google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation].
              * 
        * * UNIQUENESS_EXPECTATION = 8; @@ -183,8 +183,8 @@ public enum RuleType implements com.google.protobuf.ProtocolMessageEnum { * * *
        -     * Please see
        -     * https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#sqlAssertion.
        +     * See
        +     * [DataQualityRule.SqlAssertion][google.cloud.dataplex.v1.DataQualityRule.SqlAssertion].
              * 
        * * SQL_ASSERTION = 9; @@ -207,8 +207,8 @@ public enum RuleType implements com.google.protobuf.ProtocolMessageEnum { * * *
        -     * Please see
        -     * https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#nonnullexpectation.
        +     * See
        +     * [DataQualityRule.NonNullExpectation][google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation].
              * 
        * * NON_NULL_EXPECTATION = 1; @@ -218,8 +218,8 @@ public enum RuleType implements com.google.protobuf.ProtocolMessageEnum { * * *
        -     * Please see
        -     * https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#rangeexpectation.
        +     * See
        +     * [DataQualityRule.RangeExpectation][google.cloud.dataplex.v1.DataQualityRule.RangeExpectation].
              * 
        * * RANGE_EXPECTATION = 2; @@ -229,8 +229,8 @@ public enum RuleType implements com.google.protobuf.ProtocolMessageEnum { * * *
        -     * Please see
        -     * https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#regexexpectation.
        +     * See
        +     * [DataQualityRule.RegexExpectation][google.cloud.dataplex.v1.DataQualityRule.RegexExpectation].
              * 
        * * REGEX_EXPECTATION = 3; @@ -240,8 +240,8 @@ public enum RuleType implements com.google.protobuf.ProtocolMessageEnum { * * *
        -     * Please see
        -     * https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#rowconditionexpectation.
        +     * See
        +     * [DataQualityRule.RowConditionExpectation][google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation].
              * 
        * * ROW_CONDITION_EXPECTATION = 4; @@ -251,8 +251,8 @@ public enum RuleType implements com.google.protobuf.ProtocolMessageEnum { * * *
        -     * Please see
        -     * https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#setexpectation.
        +     * See
        +     * [DataQualityRule.SetExpectation][google.cloud.dataplex.v1.DataQualityRule.SetExpectation].
              * 
        * * SET_EXPECTATION = 5; @@ -262,8 +262,8 @@ public enum RuleType implements com.google.protobuf.ProtocolMessageEnum { * * *
        -     * Please see
        -     * https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#statisticrangeexpectation.
        +     * See
        +     * [DataQualityRule.StatisticRangeExpectation][google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation].
              * 
        * * STATISTIC_RANGE_EXPECTATION = 6; @@ -273,8 +273,8 @@ public enum RuleType implements com.google.protobuf.ProtocolMessageEnum { * * *
        -     * Please see
        -     * https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#tableconditionexpectation.
        +     * See
        +     * [DataQualityRule.TableConditionExpectation][google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation].
              * 
        * * TABLE_CONDITION_EXPECTATION = 7; @@ -284,8 +284,8 @@ public enum RuleType implements com.google.protobuf.ProtocolMessageEnum { * * *
        -     * Please see
        -     * https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#uniquenessexpectation.
        +     * See
        +     * [DataQualityRule.UniquenessExpectation][google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation].
              * 
        * * UNIQUENESS_EXPECTATION = 8; @@ -295,8 +295,8 @@ public enum RuleType implements com.google.protobuf.ProtocolMessageEnum { * * *
        -     * Please see
        -     * https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#sqlAssertion.
        +     * See
        +     * [DataQualityRule.SqlAssertion][google.cloud.dataplex.v1.DataQualityRule.SqlAssertion].
              * 
        * * SQL_ASSERTION = 9; @@ -1169,8 +1169,8 @@ public long getNullRowCount() { * * *
        -   * The number of rows returned by the sql statement in the SqlAssertion rule.
        -   * This field is only valid for SqlAssertion rules.
        +   * The number of rows returned by the SQL statement in a SQL assertion rule.
        +   * This field is only valid for SQL assertion rules.
            * 
        * * int64 assertion_row_count = 13; @@ -2854,8 +2854,8 @@ public Builder clearNullRowCount() { * * *
        -     * The number of rows returned by the sql statement in the SqlAssertion rule.
        -     * This field is only valid for SqlAssertion rules.
        +     * The number of rows returned by the SQL statement in a SQL assertion rule.
        +     * This field is only valid for SQL assertion rules.
              * 
        * * int64 assertion_row_count = 13; @@ -2870,8 +2870,8 @@ public long getAssertionRowCount() { * * *
        -     * The number of rows returned by the sql statement in the SqlAssertion rule.
        -     * This field is only valid for SqlAssertion rules.
        +     * The number of rows returned by the SQL statement in a SQL assertion rule.
        +     * This field is only valid for SQL assertion rules.
              * 
        * * int64 assertion_row_count = 13; @@ -2890,8 +2890,8 @@ public Builder setAssertionRowCount(long value) { * * *
        -     * The number of rows returned by the sql statement in the SqlAssertion rule.
        -     * This field is only valid for SqlAssertion rules.
        +     * The number of rows returned by the SQL statement in a SQL assertion rule.
        +     * This field is only valid for SQL assertion rules.
              * 
        * * int64 assertion_row_count = 13; diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityScanRuleResultOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityScanRuleResultOrBuilder.java index b726090154b2..6f05dbdc6cbe 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityScanRuleResultOrBuilder.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/DataQualityScanRuleResultOrBuilder.java @@ -284,8 +284,8 @@ public interface DataQualityScanRuleResultOrBuilder * * *
        -   * The number of rows returned by the sql statement in the SqlAssertion rule.
        -   * This field is only valid for SqlAssertion rules.
        +   * The number of rows returned by the SQL statement in a SQL assertion rule.
        +   * This field is only valid for SQL assertion rules.
            * 
        * * int64 assertion_row_count = 13; diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EntrySource.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EntrySource.java index 771d25d4b182..e6fd1bcd6da3 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EntrySource.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EntrySource.java @@ -46,6 +46,7 @@ private EntrySource() { displayName_ = ""; description_ = ""; ancestors_ = java.util.Collections.emptyList(); + location_ = ""; } @java.lang.Override @@ -1477,6 +1478,63 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } + public static final int LOCATION_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private volatile java.lang.Object location_ = ""; + /** + * + * + *
        +   * Output only. Location of the resource in the source system. Entry will be
        +   * searchable by this location. By default, this should match the location of
        +   * the EntryGroup containing this entry. A different value allows capturing
        +   * source location for data external to GCP.
        +   * 
        + * + * string location = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The location. + */ + @java.lang.Override + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } + } + /** + * + * + *
        +   * Output only. Location of the resource in the source system. Entry will be
        +   * searchable by this location. By default, this should match the location of
        +   * the EntryGroup containing this entry. A different value allows capturing
        +   * source location for data external to GCP.
        +   * 
        + * + * string location = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for location. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1517,6 +1575,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(11, getUpdateTime()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, location_); + } getUnknownFields().writeTo(output); } @@ -1560,6 +1621,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getUpdateTime()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, location_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1590,6 +1654,7 @@ public boolean equals(final java.lang.Object obj) { if (hasUpdateTime()) { if (!getUpdateTime().equals(other.getUpdateTime())) return false; } + if (!getLocation().equals(other.getLocation())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1627,6 +1692,8 @@ public int hashCode() { hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getUpdateTime().hashCode(); } + hash = (37 * hash) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1823,6 +1890,7 @@ public Builder clear() { updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } + location_ = ""; return this; } @@ -1900,6 +1968,9 @@ private void buildPartial0(com.google.cloud.dataplex.v1.EntrySource result) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.location_ = location_; + } result.bitField0_ |= to_bitField0_; } @@ -2008,6 +2079,11 @@ public Builder mergeFrom(com.google.cloud.dataplex.v1.EntrySource other) { if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } + if (!other.getLocation().isEmpty()) { + location_ = other.location_; + bitField0_ |= 0x00000200; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2102,6 +2178,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000100; break; } // case 90 + case 98: + { + location_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 98 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3609,6 +3691,127 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return updateTimeBuilder_; } + private java.lang.Object location_ = ""; + /** + * + * + *
        +     * Output only. Location of the resource in the source system. Entry will be
        +     * searchable by this location. By default, this should match the location of
        +     * the EntryGroup containing this entry. A different value allows capturing
        +     * source location for data external to GCP.
        +     * 
        + * + * string location = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The location. + */ + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +     * Output only. Location of the resource in the source system. Entry will be
        +     * searchable by this location. By default, this should match the location of
        +     * the EntryGroup containing this entry. A different value allows capturing
        +     * source location for data external to GCP.
        +     * 
        + * + * string location = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for location. + */ + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +     * Output only. Location of the resource in the source system. Entry will be
        +     * searchable by this location. By default, this should match the location of
        +     * the EntryGroup containing this entry. A different value allows capturing
        +     * source location for data external to GCP.
        +     * 
        + * + * string location = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The location to set. + * @return This builder for chaining. + */ + public Builder setLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + location_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
        +     * Output only. Location of the resource in the source system. Entry will be
        +     * searchable by this location. By default, this should match the location of
        +     * the EntryGroup containing this entry. A different value allows capturing
        +     * source location for data external to GCP.
        +     * 
        + * + * string location = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearLocation() { + location_ = getDefaultInstance().getLocation(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + /** + * + * + *
        +     * Output only. Location of the resource in the source system. Entry will be
        +     * searchable by this location. By default, this should match the location of
        +     * the EntryGroup containing this entry. A different value allows capturing
        +     * source location for data external to GCP.
        +     * 
        + * + * string location = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for location to set. + * @return This builder for chaining. + */ + public Builder setLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + location_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EntrySourceOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EntrySourceOrBuilder.java index 4f3391306eaa..a1f1d393725a 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EntrySourceOrBuilder.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/EntrySourceOrBuilder.java @@ -353,4 +353,35 @@ java.lang.String getLabelsOrDefault( * .google.protobuf.Timestamp update_time = 11; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
        +   * Output only. Location of the resource in the source system. Entry will be
        +   * searchable by this location. By default, this should match the location of
        +   * the EntryGroup containing this entry. A different value allows capturing
        +   * source location for data external to GCP.
        +   * 
        + * + * string location = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The location. + */ + java.lang.String getLocation(); + /** + * + * + *
        +   * Output only. Location of the resource in the source system. Entry will be
        +   * searchable by this location. By default, this should match the location of
        +   * the EntryGroup containing this entry. A different value allows capturing
        +   * source location for data external to GCP.
        +   * 
        + * + * string location = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for location. + */ + com.google.protobuf.ByteString getLocationBytes(); } diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/GenerateDataQualityRulesRequest.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/GenerateDataQualityRulesRequest.java index 6bf468fa394c..64ba3eae6117 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/GenerateDataQualityRulesRequest.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/GenerateDataQualityRulesRequest.java @@ -23,7 +23,7 @@ * * *
        - * Generate recommended DataQualityRules request.
        + * Request details for generating data quality rule recommendations.
          * 
        * * Protobuf type {@code google.cloud.dataplex.v1.GenerateDataQualityRulesRequest} @@ -72,10 +72,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
        -   * Required. The name should be either
        -   * * the name of a datascan with at least one successful completed data
        -   * profiling job, or
        -   * * the name of a successful completed data profiling datascan job.
        +   * Required. The name must be one of the following:
        +   *
        +   * * The name of a data scan with at least one successful, completed data
        +   * profiling job
        +   * * The name of a successful, completed data profiling job (a data scan job
        +   * where the job type is data profiling)
            * 
        * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -98,10 +100,12 @@ public java.lang.String getName() { * * *
        -   * Required. The name should be either
        -   * * the name of a datascan with at least one successful completed data
        -   * profiling job, or
        -   * * the name of a successful completed data profiling datascan job.
        +   * Required. The name must be one of the following:
        +   *
        +   * * The name of a data scan with at least one successful, completed data
        +   * profiling job
        +   * * The name of a successful, completed data profiling job (a data scan job
        +   * where the job type is data profiling)
            * 
        * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -285,7 +289,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
        -   * Generate recommended DataQualityRules request.
        +   * Request details for generating data quality rule recommendations.
            * 
        * * Protobuf type {@code google.cloud.dataplex.v1.GenerateDataQualityRulesRequest} @@ -472,10 +476,12 @@ public Builder mergeFrom( * * *
        -     * Required. The name should be either
        -     * * the name of a datascan with at least one successful completed data
        -     * profiling job, or
        -     * * the name of a successful completed data profiling datascan job.
        +     * Required. The name must be one of the following:
        +     *
        +     * * The name of a data scan with at least one successful, completed data
        +     * profiling job
        +     * * The name of a successful, completed data profiling job (a data scan job
        +     * where the job type is data profiling)
              * 
        * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -497,10 +503,12 @@ public java.lang.String getName() { * * *
        -     * Required. The name should be either
        -     * * the name of a datascan with at least one successful completed data
        -     * profiling job, or
        -     * * the name of a successful completed data profiling datascan job.
        +     * Required. The name must be one of the following:
        +     *
        +     * * The name of a data scan with at least one successful, completed data
        +     * profiling job
        +     * * The name of a successful, completed data profiling job (a data scan job
        +     * where the job type is data profiling)
              * 
        * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -522,10 +530,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
        -     * Required. The name should be either
        -     * * the name of a datascan with at least one successful completed data
        -     * profiling job, or
        -     * * the name of a successful completed data profiling datascan job.
        +     * Required. The name must be one of the following:
        +     *
        +     * * The name of a data scan with at least one successful, completed data
        +     * profiling job
        +     * * The name of a successful, completed data profiling job (a data scan job
        +     * where the job type is data profiling)
              * 
        * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -546,10 +556,12 @@ public Builder setName(java.lang.String value) { * * *
        -     * Required. The name should be either
        -     * * the name of a datascan with at least one successful completed data
        -     * profiling job, or
        -     * * the name of a successful completed data profiling datascan job.
        +     * Required. The name must be one of the following:
        +     *
        +     * * The name of a data scan with at least one successful, completed data
        +     * profiling job
        +     * * The name of a successful, completed data profiling job (a data scan job
        +     * where the job type is data profiling)
              * 
        * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -566,10 +578,12 @@ public Builder clearName() { * * *
        -     * Required. The name should be either
        -     * * the name of a datascan with at least one successful completed data
        -     * profiling job, or
        -     * * the name of a successful completed data profiling datascan job.
        +     * Required. The name must be one of the following:
        +     *
        +     * * The name of a data scan with at least one successful, completed data
        +     * profiling job
        +     * * The name of a successful, completed data profiling job (a data scan job
        +     * where the job type is data profiling)
              * 
        * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/GenerateDataQualityRulesRequestOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/GenerateDataQualityRulesRequestOrBuilder.java index 20c5dd8903f2..96927bea705a 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/GenerateDataQualityRulesRequestOrBuilder.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/GenerateDataQualityRulesRequestOrBuilder.java @@ -28,10 +28,12 @@ public interface GenerateDataQualityRulesRequestOrBuilder * * *
        -   * Required. The name should be either
        -   * * the name of a datascan with at least one successful completed data
        -   * profiling job, or
        -   * * the name of a successful completed data profiling datascan job.
        +   * Required. The name must be one of the following:
        +   *
        +   * * The name of a data scan with at least one successful, completed data
        +   * profiling job
        +   * * The name of a successful, completed data profiling job (a data scan job
        +   * where the job type is data profiling)
            * 
        * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -43,10 +45,12 @@ public interface GenerateDataQualityRulesRequestOrBuilder * * *
        -   * Required. The name should be either
        -   * * the name of a datascan with at least one successful completed data
        -   * profiling job, or
        -   * * the name of a successful completed data profiling datascan job.
        +   * Required. The name must be one of the following:
        +   *
        +   * * The name of a data scan with at least one successful, completed data
        +   * profiling job
        +   * * The name of a successful, completed data profiling job (a data scan job
        +   * where the job type is data profiling)
            * 
        * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/GenerateDataQualityRulesResponse.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/GenerateDataQualityRulesResponse.java index c57ec232825c..9fc0a722c33b 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/GenerateDataQualityRulesResponse.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/GenerateDataQualityRulesResponse.java @@ -23,7 +23,7 @@ * * *
        - * Generate recommended DataQualityRules response.
        + * Response details for data quality rule recommendations.
          * 
        * * Protobuf type {@code google.cloud.dataplex.v1.GenerateDataQualityRulesResponse} @@ -72,7 +72,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
        -   * Generated recommended {@link DataQualityRule}s.
        +   * The data quality rules that Dataplex generates based on the results
        +   * of a data profiling scan.
            * 
        * * repeated .google.cloud.dataplex.v1.DataQualityRule rule = 1; @@ -85,7 +86,8 @@ public java.util.List getRuleList( * * *
        -   * Generated recommended {@link DataQualityRule}s.
        +   * The data quality rules that Dataplex generates based on the results
        +   * of a data profiling scan.
            * 
        * * repeated .google.cloud.dataplex.v1.DataQualityRule rule = 1; @@ -99,7 +101,8 @@ public java.util.List getRuleList( * * *
        -   * Generated recommended {@link DataQualityRule}s.
        +   * The data quality rules that Dataplex generates based on the results
        +   * of a data profiling scan.
            * 
        * * repeated .google.cloud.dataplex.v1.DataQualityRule rule = 1; @@ -112,7 +115,8 @@ public int getRuleCount() { * * *
        -   * Generated recommended {@link DataQualityRule}s.
        +   * The data quality rules that Dataplex generates based on the results
        +   * of a data profiling scan.
            * 
        * * repeated .google.cloud.dataplex.v1.DataQualityRule rule = 1; @@ -125,7 +129,8 @@ public com.google.cloud.dataplex.v1.DataQualityRule getRule(int index) { * * *
        -   * Generated recommended {@link DataQualityRule}s.
        +   * The data quality rules that Dataplex generates based on the results
        +   * of a data profiling scan.
            * 
        * * repeated .google.cloud.dataplex.v1.DataQualityRule rule = 1; @@ -301,7 +306,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
        -   * Generate recommended DataQualityRules response.
        +   * Response details for data quality rule recommendations.
            * 
        * * Protobuf type {@code google.cloud.dataplex.v1.GenerateDataQualityRulesResponse} @@ -549,7 +554,8 @@ private void ensureRuleIsMutable() { * * *
        -     * Generated recommended {@link DataQualityRule}s.
        +     * The data quality rules that Dataplex generates based on the results
        +     * of a data profiling scan.
              * 
        * * repeated .google.cloud.dataplex.v1.DataQualityRule rule = 1; @@ -565,7 +571,8 @@ public java.util.List getRuleList( * * *
        -     * Generated recommended {@link DataQualityRule}s.
        +     * The data quality rules that Dataplex generates based on the results
        +     * of a data profiling scan.
              * 
        * * repeated .google.cloud.dataplex.v1.DataQualityRule rule = 1; @@ -581,7 +588,8 @@ public int getRuleCount() { * * *
        -     * Generated recommended {@link DataQualityRule}s.
        +     * The data quality rules that Dataplex generates based on the results
        +     * of a data profiling scan.
              * 
        * * repeated .google.cloud.dataplex.v1.DataQualityRule rule = 1; @@ -597,7 +605,8 @@ public com.google.cloud.dataplex.v1.DataQualityRule getRule(int index) { * * *
        -     * Generated recommended {@link DataQualityRule}s.
        +     * The data quality rules that Dataplex generates based on the results
        +     * of a data profiling scan.
              * 
        * * repeated .google.cloud.dataplex.v1.DataQualityRule rule = 1; @@ -619,7 +628,8 @@ public Builder setRule(int index, com.google.cloud.dataplex.v1.DataQualityRule v * * *
        -     * Generated recommended {@link DataQualityRule}s.
        +     * The data quality rules that Dataplex generates based on the results
        +     * of a data profiling scan.
              * 
        * * repeated .google.cloud.dataplex.v1.DataQualityRule rule = 1; @@ -639,7 +649,8 @@ public Builder setRule( * * *
        -     * Generated recommended {@link DataQualityRule}s.
        +     * The data quality rules that Dataplex generates based on the results
        +     * of a data profiling scan.
              * 
        * * repeated .google.cloud.dataplex.v1.DataQualityRule rule = 1; @@ -661,7 +672,8 @@ public Builder addRule(com.google.cloud.dataplex.v1.DataQualityRule value) { * * *
        -     * Generated recommended {@link DataQualityRule}s.
        +     * The data quality rules that Dataplex generates based on the results
        +     * of a data profiling scan.
              * 
        * * repeated .google.cloud.dataplex.v1.DataQualityRule rule = 1; @@ -683,7 +695,8 @@ public Builder addRule(int index, com.google.cloud.dataplex.v1.DataQualityRule v * * *
        -     * Generated recommended {@link DataQualityRule}s.
        +     * The data quality rules that Dataplex generates based on the results
        +     * of a data profiling scan.
              * 
        * * repeated .google.cloud.dataplex.v1.DataQualityRule rule = 1; @@ -702,7 +715,8 @@ public Builder addRule(com.google.cloud.dataplex.v1.DataQualityRule.Builder buil * * *
        -     * Generated recommended {@link DataQualityRule}s.
        +     * The data quality rules that Dataplex generates based on the results
        +     * of a data profiling scan.
              * 
        * * repeated .google.cloud.dataplex.v1.DataQualityRule rule = 1; @@ -722,7 +736,8 @@ public Builder addRule( * * *
        -     * Generated recommended {@link DataQualityRule}s.
        +     * The data quality rules that Dataplex generates based on the results
        +     * of a data profiling scan.
              * 
        * * repeated .google.cloud.dataplex.v1.DataQualityRule rule = 1; @@ -742,7 +757,8 @@ public Builder addAllRule( * * *
        -     * Generated recommended {@link DataQualityRule}s.
        +     * The data quality rules that Dataplex generates based on the results
        +     * of a data profiling scan.
              * 
        * * repeated .google.cloud.dataplex.v1.DataQualityRule rule = 1; @@ -761,7 +777,8 @@ public Builder clearRule() { * * *
        -     * Generated recommended {@link DataQualityRule}s.
        +     * The data quality rules that Dataplex generates based on the results
        +     * of a data profiling scan.
              * 
        * * repeated .google.cloud.dataplex.v1.DataQualityRule rule = 1; @@ -780,7 +797,8 @@ public Builder removeRule(int index) { * * *
        -     * Generated recommended {@link DataQualityRule}s.
        +     * The data quality rules that Dataplex generates based on the results
        +     * of a data profiling scan.
              * 
        * * repeated .google.cloud.dataplex.v1.DataQualityRule rule = 1; @@ -792,7 +810,8 @@ public com.google.cloud.dataplex.v1.DataQualityRule.Builder getRuleBuilder(int i * * *
        -     * Generated recommended {@link DataQualityRule}s.
        +     * The data quality rules that Dataplex generates based on the results
        +     * of a data profiling scan.
              * 
        * * repeated .google.cloud.dataplex.v1.DataQualityRule rule = 1; @@ -808,7 +827,8 @@ public com.google.cloud.dataplex.v1.DataQualityRuleOrBuilder getRuleOrBuilder(in * * *
        -     * Generated recommended {@link DataQualityRule}s.
        +     * The data quality rules that Dataplex generates based on the results
        +     * of a data profiling scan.
              * 
        * * repeated .google.cloud.dataplex.v1.DataQualityRule rule = 1; @@ -825,7 +845,8 @@ public com.google.cloud.dataplex.v1.DataQualityRuleOrBuilder getRuleOrBuilder(in * * *
        -     * Generated recommended {@link DataQualityRule}s.
        +     * The data quality rules that Dataplex generates based on the results
        +     * of a data profiling scan.
              * 
        * * repeated .google.cloud.dataplex.v1.DataQualityRule rule = 1; @@ -838,7 +859,8 @@ public com.google.cloud.dataplex.v1.DataQualityRule.Builder addRuleBuilder() { * * *
        -     * Generated recommended {@link DataQualityRule}s.
        +     * The data quality rules that Dataplex generates based on the results
        +     * of a data profiling scan.
              * 
        * * repeated .google.cloud.dataplex.v1.DataQualityRule rule = 1; @@ -851,7 +873,8 @@ public com.google.cloud.dataplex.v1.DataQualityRule.Builder addRuleBuilder(int i * * *
        -     * Generated recommended {@link DataQualityRule}s.
        +     * The data quality rules that Dataplex generates based on the results
        +     * of a data profiling scan.
              * 
        * * repeated .google.cloud.dataplex.v1.DataQualityRule rule = 1; diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/GenerateDataQualityRulesResponseOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/GenerateDataQualityRulesResponseOrBuilder.java index 6c339e12ab6e..6a44d33c5f6b 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/GenerateDataQualityRulesResponseOrBuilder.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/GenerateDataQualityRulesResponseOrBuilder.java @@ -28,7 +28,8 @@ public interface GenerateDataQualityRulesResponseOrBuilder * * *
        -   * Generated recommended {@link DataQualityRule}s.
        +   * The data quality rules that Dataplex generates based on the results
        +   * of a data profiling scan.
            * 
        * * repeated .google.cloud.dataplex.v1.DataQualityRule rule = 1; @@ -38,7 +39,8 @@ public interface GenerateDataQualityRulesResponseOrBuilder * * *
        -   * Generated recommended {@link DataQualityRule}s.
        +   * The data quality rules that Dataplex generates based on the results
        +   * of a data profiling scan.
            * 
        * * repeated .google.cloud.dataplex.v1.DataQualityRule rule = 1; @@ -48,7 +50,8 @@ public interface GenerateDataQualityRulesResponseOrBuilder * * *
        -   * Generated recommended {@link DataQualityRule}s.
        +   * The data quality rules that Dataplex generates based on the results
        +   * of a data profiling scan.
            * 
        * * repeated .google.cloud.dataplex.v1.DataQualityRule rule = 1; @@ -58,7 +61,8 @@ public interface GenerateDataQualityRulesResponseOrBuilder * * *
        -   * Generated recommended {@link DataQualityRule}s.
        +   * The data quality rules that Dataplex generates based on the results
        +   * of a data profiling scan.
            * 
        * * repeated .google.cloud.dataplex.v1.DataQualityRule rule = 1; @@ -69,7 +73,8 @@ public interface GenerateDataQualityRulesResponseOrBuilder * * *
        -   * Generated recommended {@link DataQualityRule}s.
        +   * The data quality rules that Dataplex generates based on the results
        +   * of a data profiling scan.
            * 
        * * repeated .google.cloud.dataplex.v1.DataQualityRule rule = 1; diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/SearchEntriesResult.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/SearchEntriesResult.java index 2534119e24aa..f23f3d8404c2 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/SearchEntriesResult.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/SearchEntriesResult.java @@ -63,6 +63,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.dataplex.v1.SearchEntriesResult.Builder.class); } + @java.lang.Deprecated public interface SnippetsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.SearchEntriesResult.Snippets) @@ -75,10 +76,13 @@ public interface SnippetsOrBuilder * Entry * * - * .google.cloud.dataplex.v1.Entry dataplex_entry = 1; + * .google.cloud.dataplex.v1.Entry dataplex_entry = 1 [deprecated = true]; * + * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.Snippets.dataplex_entry is + * deprecated. See google/cloud/dataplex/v1/catalog.proto;l=1259 * @return Whether the dataplexEntry field is set. */ + @java.lang.Deprecated boolean hasDataplexEntry(); /** * @@ -87,10 +91,13 @@ public interface SnippetsOrBuilder * Entry * * - * .google.cloud.dataplex.v1.Entry dataplex_entry = 1; + * .google.cloud.dataplex.v1.Entry dataplex_entry = 1 [deprecated = true]; * + * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.Snippets.dataplex_entry is + * deprecated. See google/cloud/dataplex/v1/catalog.proto;l=1259 * @return The dataplexEntry. */ + @java.lang.Deprecated com.google.cloud.dataplex.v1.Entry getDataplexEntry(); /** * @@ -99,8 +106,9 @@ public interface SnippetsOrBuilder * Entry * * - * .google.cloud.dataplex.v1.Entry dataplex_entry = 1; + * .google.cloud.dataplex.v1.Entry dataplex_entry = 1 [deprecated = true]; */ + @java.lang.Deprecated com.google.cloud.dataplex.v1.EntryOrBuilder getDataplexEntryOrBuilder(); } /** @@ -113,6 +121,7 @@ public interface SnippetsOrBuilder * * Protobuf type {@code google.cloud.dataplex.v1.SearchEntriesResult.Snippets} */ + @java.lang.Deprecated public static final class Snippets extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.SearchEntriesResult.Snippets) @@ -156,11 +165,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Entry * * - * .google.cloud.dataplex.v1.Entry dataplex_entry = 1; + * .google.cloud.dataplex.v1.Entry dataplex_entry = 1 [deprecated = true]; * + * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.Snippets.dataplex_entry is + * deprecated. See google/cloud/dataplex/v1/catalog.proto;l=1259 * @return Whether the dataplexEntry field is set. */ @java.lang.Override + @java.lang.Deprecated public boolean hasDataplexEntry() { return ((bitField0_ & 0x00000001) != 0); } @@ -171,11 +183,14 @@ public boolean hasDataplexEntry() { * Entry * * - * .google.cloud.dataplex.v1.Entry dataplex_entry = 1; + * .google.cloud.dataplex.v1.Entry dataplex_entry = 1 [deprecated = true]; * + * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.Snippets.dataplex_entry is + * deprecated. See google/cloud/dataplex/v1/catalog.proto;l=1259 * @return The dataplexEntry. */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.dataplex.v1.Entry getDataplexEntry() { return dataplexEntry_ == null ? com.google.cloud.dataplex.v1.Entry.getDefaultInstance() @@ -188,9 +203,10 @@ public com.google.cloud.dataplex.v1.Entry getDataplexEntry() { * Entry * * - * .google.cloud.dataplex.v1.Entry dataplex_entry = 1; + * .google.cloud.dataplex.v1.Entry dataplex_entry = 1 [deprecated = true]; */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.dataplex.v1.EntryOrBuilder getDataplexEntryOrBuilder() { return dataplexEntry_ == null ? com.google.cloud.dataplex.v1.Entry.getDefaultInstance() @@ -578,10 +594,13 @@ public Builder mergeFrom( * Entry * * - * .google.cloud.dataplex.v1.Entry dataplex_entry = 1; + * .google.cloud.dataplex.v1.Entry dataplex_entry = 1 [deprecated = true]; * + * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.Snippets.dataplex_entry is + * deprecated. See google/cloud/dataplex/v1/catalog.proto;l=1259 * @return Whether the dataplexEntry field is set. */ + @java.lang.Deprecated public boolean hasDataplexEntry() { return ((bitField0_ & 0x00000001) != 0); } @@ -592,10 +611,13 @@ public boolean hasDataplexEntry() { * Entry * * - * .google.cloud.dataplex.v1.Entry dataplex_entry = 1; + * .google.cloud.dataplex.v1.Entry dataplex_entry = 1 [deprecated = true]; * + * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.Snippets.dataplex_entry is + * deprecated. See google/cloud/dataplex/v1/catalog.proto;l=1259 * @return The dataplexEntry. */ + @java.lang.Deprecated public com.google.cloud.dataplex.v1.Entry getDataplexEntry() { if (dataplexEntryBuilder_ == null) { return dataplexEntry_ == null @@ -612,8 +634,9 @@ public com.google.cloud.dataplex.v1.Entry getDataplexEntry() { * Entry * * - * .google.cloud.dataplex.v1.Entry dataplex_entry = 1; + * .google.cloud.dataplex.v1.Entry dataplex_entry = 1 [deprecated = true]; */ + @java.lang.Deprecated public Builder setDataplexEntry(com.google.cloud.dataplex.v1.Entry value) { if (dataplexEntryBuilder_ == null) { if (value == null) { @@ -634,8 +657,9 @@ public Builder setDataplexEntry(com.google.cloud.dataplex.v1.Entry value) { * Entry * * - * .google.cloud.dataplex.v1.Entry dataplex_entry = 1; + * .google.cloud.dataplex.v1.Entry dataplex_entry = 1 [deprecated = true]; */ + @java.lang.Deprecated public Builder setDataplexEntry(com.google.cloud.dataplex.v1.Entry.Builder builderForValue) { if (dataplexEntryBuilder_ == null) { dataplexEntry_ = builderForValue.build(); @@ -653,8 +677,9 @@ public Builder setDataplexEntry(com.google.cloud.dataplex.v1.Entry.Builder build * Entry * * - * .google.cloud.dataplex.v1.Entry dataplex_entry = 1; + * .google.cloud.dataplex.v1.Entry dataplex_entry = 1 [deprecated = true]; */ + @java.lang.Deprecated public Builder mergeDataplexEntry(com.google.cloud.dataplex.v1.Entry value) { if (dataplexEntryBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) @@ -680,8 +705,9 @@ public Builder mergeDataplexEntry(com.google.cloud.dataplex.v1.Entry value) { * Entry * * - * .google.cloud.dataplex.v1.Entry dataplex_entry = 1; + * .google.cloud.dataplex.v1.Entry dataplex_entry = 1 [deprecated = true]; */ + @java.lang.Deprecated public Builder clearDataplexEntry() { bitField0_ = (bitField0_ & ~0x00000001); dataplexEntry_ = null; @@ -699,8 +725,9 @@ public Builder clearDataplexEntry() { * Entry * * - * .google.cloud.dataplex.v1.Entry dataplex_entry = 1; + * .google.cloud.dataplex.v1.Entry dataplex_entry = 1 [deprecated = true]; */ + @java.lang.Deprecated public com.google.cloud.dataplex.v1.Entry.Builder getDataplexEntryBuilder() { bitField0_ |= 0x00000001; onChanged(); @@ -713,8 +740,9 @@ public com.google.cloud.dataplex.v1.Entry.Builder getDataplexEntryBuilder() { * Entry * * - * .google.cloud.dataplex.v1.Entry dataplex_entry = 1; + * .google.cloud.dataplex.v1.Entry dataplex_entry = 1 [deprecated = true]; */ + @java.lang.Deprecated public com.google.cloud.dataplex.v1.EntryOrBuilder getDataplexEntryOrBuilder() { if (dataplexEntryBuilder_ != null) { return dataplexEntryBuilder_.getMessageOrBuilder(); @@ -731,7 +759,7 @@ public com.google.cloud.dataplex.v1.EntryOrBuilder getDataplexEntryOrBuilder() { * Entry * * - * .google.cloud.dataplex.v1.Entry dataplex_entry = 1; + * .google.cloud.dataplex.v1.Entry dataplex_entry = 1 [deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.Entry, @@ -826,11 +854,14 @@ public com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets getDefaultInsta * Linked resource name. * * - * string linked_resource = 8; + * string linked_resource = 8 [deprecated = true]; * + * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.linked_resource is deprecated. See + * google/cloud/dataplex/v1/catalog.proto;l=1263 * @return The linkedResource. */ @java.lang.Override + @java.lang.Deprecated public java.lang.String getLinkedResource() { java.lang.Object ref = linkedResource_; if (ref instanceof java.lang.String) { @@ -849,11 +880,14 @@ public java.lang.String getLinkedResource() { * Linked resource name. * * - * string linked_resource = 8; + * string linked_resource = 8 [deprecated = true]; * + * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.linked_resource is deprecated. See + * google/cloud/dataplex/v1/catalog.proto;l=1263 * @return The bytes for linkedResource. */ @java.lang.Override + @java.lang.Deprecated public com.google.protobuf.ByteString getLinkedResourceBytes() { java.lang.Object ref = linkedResource_; if (ref instanceof java.lang.String) { @@ -869,12 +903,6 @@ public com.google.protobuf.ByteString getLinkedResourceBytes() { public static final int DATAPLEX_ENTRY_FIELD_NUMBER = 9; private com.google.cloud.dataplex.v1.Entry dataplexEntry_; /** - * - * - *
        -   * Entry format of the result.
        -   * 
        - * * .google.cloud.dataplex.v1.Entry dataplex_entry = 9; * * @return Whether the dataplexEntry field is set. @@ -884,12 +912,6 @@ public boolean hasDataplexEntry() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * - *
        -   * Entry format of the result.
        -   * 
        - * * .google.cloud.dataplex.v1.Entry dataplex_entry = 9; * * @return The dataplexEntry. @@ -900,15 +922,7 @@ public com.google.cloud.dataplex.v1.Entry getDataplexEntry() { ? com.google.cloud.dataplex.v1.Entry.getDefaultInstance() : dataplexEntry_; } - /** - * - * - *
        -   * Entry format of the result.
        -   * 
        - * - * .google.cloud.dataplex.v1.Entry dataplex_entry = 9; - */ + /** .google.cloud.dataplex.v1.Entry dataplex_entry = 9; */ @java.lang.Override public com.google.cloud.dataplex.v1.EntryOrBuilder getDataplexEntryOrBuilder() { return dataplexEntry_ == null @@ -925,11 +939,15 @@ public com.google.cloud.dataplex.v1.EntryOrBuilder getDataplexEntryOrBuilder() { * Snippets. * * - * .google.cloud.dataplex.v1.SearchEntriesResult.Snippets snippets = 12; + * .google.cloud.dataplex.v1.SearchEntriesResult.Snippets snippets = 12 [deprecated = true]; + * * + * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.snippets is deprecated. See + * google/cloud/dataplex/v1/catalog.proto;l=1268 * @return Whether the snippets field is set. */ @java.lang.Override + @java.lang.Deprecated public boolean hasSnippets() { return ((bitField0_ & 0x00000002) != 0); } @@ -940,11 +958,15 @@ public boolean hasSnippets() { * Snippets. * * - * .google.cloud.dataplex.v1.SearchEntriesResult.Snippets snippets = 12; + * .google.cloud.dataplex.v1.SearchEntriesResult.Snippets snippets = 12 [deprecated = true]; + * * + * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.snippets is deprecated. See + * google/cloud/dataplex/v1/catalog.proto;l=1268 * @return The snippets. */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets getSnippets() { return snippets_ == null ? com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets.getDefaultInstance() @@ -957,9 +979,11 @@ public com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets getSnippets() { * Snippets. * * - * .google.cloud.dataplex.v1.SearchEntriesResult.Snippets snippets = 12; + * .google.cloud.dataplex.v1.SearchEntriesResult.Snippets snippets = 12 [deprecated = true]; + * */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.dataplex.v1.SearchEntriesResult.SnippetsOrBuilder getSnippetsOrBuilder() { return snippets_ == null ? com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets.getDefaultInstance() @@ -1393,10 +1417,13 @@ public Builder mergeFrom( * Linked resource name. * * - * string linked_resource = 8; + * string linked_resource = 8 [deprecated = true]; * + * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.linked_resource is deprecated. See + * google/cloud/dataplex/v1/catalog.proto;l=1263 * @return The linkedResource. */ + @java.lang.Deprecated public java.lang.String getLinkedResource() { java.lang.Object ref = linkedResource_; if (!(ref instanceof java.lang.String)) { @@ -1415,10 +1442,13 @@ public java.lang.String getLinkedResource() { * Linked resource name. * * - * string linked_resource = 8; + * string linked_resource = 8 [deprecated = true]; * + * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.linked_resource is deprecated. See + * google/cloud/dataplex/v1/catalog.proto;l=1263 * @return The bytes for linkedResource. */ + @java.lang.Deprecated public com.google.protobuf.ByteString getLinkedResourceBytes() { java.lang.Object ref = linkedResource_; if (ref instanceof String) { @@ -1437,11 +1467,14 @@ public com.google.protobuf.ByteString getLinkedResourceBytes() { * Linked resource name. * * - * string linked_resource = 8; + * string linked_resource = 8 [deprecated = true]; * + * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.linked_resource is deprecated. See + * google/cloud/dataplex/v1/catalog.proto;l=1263 * @param value The linkedResource to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setLinkedResource(java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -1458,10 +1491,13 @@ public Builder setLinkedResource(java.lang.String value) { * Linked resource name. * * - * string linked_resource = 8; + * string linked_resource = 8 [deprecated = true]; * + * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.linked_resource is deprecated. See + * google/cloud/dataplex/v1/catalog.proto;l=1263 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearLinkedResource() { linkedResource_ = getDefaultInstance().getLinkedResource(); bitField0_ = (bitField0_ & ~0x00000001); @@ -1475,11 +1511,14 @@ public Builder clearLinkedResource() { * Linked resource name. * * - * string linked_resource = 8; + * string linked_resource = 8 [deprecated = true]; * + * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.linked_resource is deprecated. See + * google/cloud/dataplex/v1/catalog.proto;l=1263 * @param value The bytes for linkedResource to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setLinkedResourceBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); @@ -1498,12 +1537,6 @@ public Builder setLinkedResourceBytes(com.google.protobuf.ByteString value) { com.google.cloud.dataplex.v1.EntryOrBuilder> dataplexEntryBuilder_; /** - * - * - *
        -     * Entry format of the result.
        -     * 
        - * * .google.cloud.dataplex.v1.Entry dataplex_entry = 9; * * @return Whether the dataplexEntry field is set. @@ -1512,12 +1545,6 @@ public boolean hasDataplexEntry() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * - *
        -     * Entry format of the result.
        -     * 
        - * * .google.cloud.dataplex.v1.Entry dataplex_entry = 9; * * @return The dataplexEntry. @@ -1531,15 +1558,7 @@ public com.google.cloud.dataplex.v1.Entry getDataplexEntry() { return dataplexEntryBuilder_.getMessage(); } } - /** - * - * - *
        -     * Entry format of the result.
        -     * 
        - * - * .google.cloud.dataplex.v1.Entry dataplex_entry = 9; - */ + /** .google.cloud.dataplex.v1.Entry dataplex_entry = 9; */ public Builder setDataplexEntry(com.google.cloud.dataplex.v1.Entry value) { if (dataplexEntryBuilder_ == null) { if (value == null) { @@ -1553,15 +1572,7 @@ public Builder setDataplexEntry(com.google.cloud.dataplex.v1.Entry value) { onChanged(); return this; } - /** - * - * - *
        -     * Entry format of the result.
        -     * 
        - * - * .google.cloud.dataplex.v1.Entry dataplex_entry = 9; - */ + /** .google.cloud.dataplex.v1.Entry dataplex_entry = 9; */ public Builder setDataplexEntry(com.google.cloud.dataplex.v1.Entry.Builder builderForValue) { if (dataplexEntryBuilder_ == null) { dataplexEntry_ = builderForValue.build(); @@ -1572,15 +1583,7 @@ public Builder setDataplexEntry(com.google.cloud.dataplex.v1.Entry.Builder build onChanged(); return this; } - /** - * - * - *
        -     * Entry format of the result.
        -     * 
        - * - * .google.cloud.dataplex.v1.Entry dataplex_entry = 9; - */ + /** .google.cloud.dataplex.v1.Entry dataplex_entry = 9; */ public Builder mergeDataplexEntry(com.google.cloud.dataplex.v1.Entry value) { if (dataplexEntryBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) @@ -1599,15 +1602,7 @@ public Builder mergeDataplexEntry(com.google.cloud.dataplex.v1.Entry value) { } return this; } - /** - * - * - *
        -     * Entry format of the result.
        -     * 
        - * - * .google.cloud.dataplex.v1.Entry dataplex_entry = 9; - */ + /** .google.cloud.dataplex.v1.Entry dataplex_entry = 9; */ public Builder clearDataplexEntry() { bitField0_ = (bitField0_ & ~0x00000002); dataplexEntry_ = null; @@ -1618,29 +1613,13 @@ public Builder clearDataplexEntry() { onChanged(); return this; } - /** - * - * - *
        -     * Entry format of the result.
        -     * 
        - * - * .google.cloud.dataplex.v1.Entry dataplex_entry = 9; - */ + /** .google.cloud.dataplex.v1.Entry dataplex_entry = 9; */ public com.google.cloud.dataplex.v1.Entry.Builder getDataplexEntryBuilder() { bitField0_ |= 0x00000002; onChanged(); return getDataplexEntryFieldBuilder().getBuilder(); } - /** - * - * - *
        -     * Entry format of the result.
        -     * 
        - * - * .google.cloud.dataplex.v1.Entry dataplex_entry = 9; - */ + /** .google.cloud.dataplex.v1.Entry dataplex_entry = 9; */ public com.google.cloud.dataplex.v1.EntryOrBuilder getDataplexEntryOrBuilder() { if (dataplexEntryBuilder_ != null) { return dataplexEntryBuilder_.getMessageOrBuilder(); @@ -1650,15 +1629,7 @@ public com.google.cloud.dataplex.v1.EntryOrBuilder getDataplexEntryOrBuilder() { : dataplexEntry_; } } - /** - * - * - *
        -     * Entry format of the result.
        -     * 
        - * - * .google.cloud.dataplex.v1.Entry dataplex_entry = 9; - */ + /** .google.cloud.dataplex.v1.Entry dataplex_entry = 9; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.Entry, com.google.cloud.dataplex.v1.Entry.Builder, @@ -1689,10 +1660,15 @@ public com.google.cloud.dataplex.v1.EntryOrBuilder getDataplexEntryOrBuilder() { * Snippets. * * - * .google.cloud.dataplex.v1.SearchEntriesResult.Snippets snippets = 12; + * + * .google.cloud.dataplex.v1.SearchEntriesResult.Snippets snippets = 12 [deprecated = true]; + * * + * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.snippets is deprecated. See + * google/cloud/dataplex/v1/catalog.proto;l=1268 * @return Whether the snippets field is set. */ + @java.lang.Deprecated public boolean hasSnippets() { return ((bitField0_ & 0x00000004) != 0); } @@ -1703,10 +1679,15 @@ public boolean hasSnippets() { * Snippets. * * - * .google.cloud.dataplex.v1.SearchEntriesResult.Snippets snippets = 12; + * + * .google.cloud.dataplex.v1.SearchEntriesResult.Snippets snippets = 12 [deprecated = true]; + * * + * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.snippets is deprecated. See + * google/cloud/dataplex/v1/catalog.proto;l=1268 * @return The snippets. */ + @java.lang.Deprecated public com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets getSnippets() { if (snippetsBuilder_ == null) { return snippets_ == null @@ -1723,8 +1704,11 @@ public com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets getSnippets() { * Snippets. * * - * .google.cloud.dataplex.v1.SearchEntriesResult.Snippets snippets = 12; + * + * .google.cloud.dataplex.v1.SearchEntriesResult.Snippets snippets = 12 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder setSnippets(com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets value) { if (snippetsBuilder_ == null) { if (value == null) { @@ -1745,8 +1729,11 @@ public Builder setSnippets(com.google.cloud.dataplex.v1.SearchEntriesResult.Snip * Snippets. * * - * .google.cloud.dataplex.v1.SearchEntriesResult.Snippets snippets = 12; + * + * .google.cloud.dataplex.v1.SearchEntriesResult.Snippets snippets = 12 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder setSnippets( com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets.Builder builderForValue) { if (snippetsBuilder_ == null) { @@ -1765,8 +1752,11 @@ public Builder setSnippets( * Snippets. * * - * .google.cloud.dataplex.v1.SearchEntriesResult.Snippets snippets = 12; + * + * .google.cloud.dataplex.v1.SearchEntriesResult.Snippets snippets = 12 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder mergeSnippets(com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets value) { if (snippetsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) @@ -1793,8 +1783,11 @@ public Builder mergeSnippets(com.google.cloud.dataplex.v1.SearchEntriesResult.Sn * Snippets. * * - * .google.cloud.dataplex.v1.SearchEntriesResult.Snippets snippets = 12; + * + * .google.cloud.dataplex.v1.SearchEntriesResult.Snippets snippets = 12 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder clearSnippets() { bitField0_ = (bitField0_ & ~0x00000004); snippets_ = null; @@ -1812,8 +1805,11 @@ public Builder clearSnippets() { * Snippets. * * - * .google.cloud.dataplex.v1.SearchEntriesResult.Snippets snippets = 12; + * + * .google.cloud.dataplex.v1.SearchEntriesResult.Snippets snippets = 12 [deprecated = true]; + * */ + @java.lang.Deprecated public com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets.Builder getSnippetsBuilder() { bitField0_ |= 0x00000004; onChanged(); @@ -1826,8 +1822,11 @@ public com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets.Builder getSnip * Snippets. * * - * .google.cloud.dataplex.v1.SearchEntriesResult.Snippets snippets = 12; + * + * .google.cloud.dataplex.v1.SearchEntriesResult.Snippets snippets = 12 [deprecated = true]; + * */ + @java.lang.Deprecated public com.google.cloud.dataplex.v1.SearchEntriesResult.SnippetsOrBuilder getSnippetsOrBuilder() { if (snippetsBuilder_ != null) { @@ -1845,7 +1844,9 @@ public com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets.Builder getSnip * Snippets. * * - * .google.cloud.dataplex.v1.SearchEntriesResult.Snippets snippets = 12; + * + * .google.cloud.dataplex.v1.SearchEntriesResult.Snippets snippets = 12 [deprecated = true]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets, diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/SearchEntriesResultOrBuilder.java b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/SearchEntriesResultOrBuilder.java index edef2148e803..e8766bf0b94c 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/SearchEntriesResultOrBuilder.java +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/SearchEntriesResultOrBuilder.java @@ -31,10 +31,13 @@ public interface SearchEntriesResultOrBuilder * Linked resource name. * * - * string linked_resource = 8; + * string linked_resource = 8 [deprecated = true]; * + * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.linked_resource is deprecated. See + * google/cloud/dataplex/v1/catalog.proto;l=1263 * @return The linkedResource. */ + @java.lang.Deprecated java.lang.String getLinkedResource(); /** * @@ -43,45 +46,28 @@ public interface SearchEntriesResultOrBuilder * Linked resource name. * * - * string linked_resource = 8; + * string linked_resource = 8 [deprecated = true]; * + * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.linked_resource is deprecated. See + * google/cloud/dataplex/v1/catalog.proto;l=1263 * @return The bytes for linkedResource. */ + @java.lang.Deprecated com.google.protobuf.ByteString getLinkedResourceBytes(); /** - * - * - *
        -   * Entry format of the result.
        -   * 
        - * * .google.cloud.dataplex.v1.Entry dataplex_entry = 9; * * @return Whether the dataplexEntry field is set. */ boolean hasDataplexEntry(); /** - * - * - *
        -   * Entry format of the result.
        -   * 
        - * * .google.cloud.dataplex.v1.Entry dataplex_entry = 9; * * @return The dataplexEntry. */ com.google.cloud.dataplex.v1.Entry getDataplexEntry(); - /** - * - * - *
        -   * Entry format of the result.
        -   * 
        - * - * .google.cloud.dataplex.v1.Entry dataplex_entry = 9; - */ + /** .google.cloud.dataplex.v1.Entry dataplex_entry = 9; */ com.google.cloud.dataplex.v1.EntryOrBuilder getDataplexEntryOrBuilder(); /** @@ -91,10 +77,14 @@ public interface SearchEntriesResultOrBuilder * Snippets. * * - * .google.cloud.dataplex.v1.SearchEntriesResult.Snippets snippets = 12; + * .google.cloud.dataplex.v1.SearchEntriesResult.Snippets snippets = 12 [deprecated = true]; + * * + * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.snippets is deprecated. See + * google/cloud/dataplex/v1/catalog.proto;l=1268 * @return Whether the snippets field is set. */ + @java.lang.Deprecated boolean hasSnippets(); /** * @@ -103,10 +93,14 @@ public interface SearchEntriesResultOrBuilder * Snippets. * * - * .google.cloud.dataplex.v1.SearchEntriesResult.Snippets snippets = 12; + * .google.cloud.dataplex.v1.SearchEntriesResult.Snippets snippets = 12 [deprecated = true]; + * * + * @deprecated google.cloud.dataplex.v1.SearchEntriesResult.snippets is deprecated. See + * google/cloud/dataplex/v1/catalog.proto;l=1268 * @return The snippets. */ + @java.lang.Deprecated com.google.cloud.dataplex.v1.SearchEntriesResult.Snippets getSnippets(); /** * @@ -115,7 +109,9 @@ public interface SearchEntriesResultOrBuilder * Snippets. * * - * .google.cloud.dataplex.v1.SearchEntriesResult.Snippets snippets = 12; + * .google.cloud.dataplex.v1.SearchEntriesResult.Snippets snippets = 12 [deprecated = true]; + * */ + @java.lang.Deprecated com.google.cloud.dataplex.v1.SearchEntriesResult.SnippetsOrBuilder getSnippetsOrBuilder(); } diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/catalog.proto b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/catalog.proto index 0128dcac6b4b..423f67d44b6d 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/catalog.proto +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/catalog.proto @@ -713,6 +713,12 @@ message EntrySource { // The update time of the resource in the source system. google.protobuf.Timestamp update_time = 11; + + // Output only. Location of the resource in the source system. Entry will be + // searchable by this location. By default, this should match the location of + // the EntryGroup containing this entry. A different value allows capturing + // source location for data external to GCP. + string location = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Create EntryGroup Request @@ -1248,18 +1254,19 @@ message SearchEntriesResult { // Snippets for the entry, contains HTML-style highlighting for // matched tokens, will be used in UI. message Snippets { + option deprecated = true; + // Entry - Entry dataplex_entry = 1; + Entry dataplex_entry = 1 [deprecated = true]; } // Linked resource name. - string linked_resource = 8; + string linked_resource = 8 [deprecated = true]; - // Entry format of the result. Entry dataplex_entry = 9; // Snippets. - Snippets snippets = 12; + Snippets snippets = 12 [deprecated = true]; } message SearchEntriesResponse { diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/data_quality.proto b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/data_quality.proto index 3987f4d09ba9..7b81ef216271 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/data_quality.proto +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/data_quality.proto @@ -223,10 +223,10 @@ message DataQualityRuleResult { // This field is only valid for row-level type rules. string failing_rows_query = 10; - // Output only. The number of rows returned by the sql statement in the - // SqlAssertion rule. + // Output only. The number of rows returned by the SQL statement in a SQL + // assertion rule. // - // This field is only valid for SqlAssertion rules. + // This field is only valid for SQL assertion rules. int64 assertion_row_count = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; } @@ -370,17 +370,19 @@ message DataQualityRule { string sql_expression = 1 [(google.api.field_behavior) = OPTIONAL]; } - // Queries for rows returned by the provided SQL statement. If any rows are - // are returned, this rule fails. + // A SQL statement that is evaluated to return rows that match an invalid + // state. If any rows are are returned, this rule fails. // - // The SQL statement needs to use BigQuery standard SQL syntax, and must not + // The SQL statement must use BigQuery standard SQL syntax, and must not // contain any semicolons. // - // ${data()} can be used to reference the rows being evaluated, i.e. the table - // after all additional filters (row filters, incremental data filters, - // sampling) are applied. + // You can use the data reference parameter `${data()}` to reference the + // source table with all of its precondition filters applied. Examples of + // precondition filters include row filters, incremental data filters, and + // sampling. For more information, see [Data reference + // parameter](https://cloud.google.com/dataplex/docs/auto-data-quality-overview#data-reference-parameter). // - // Example: SELECT * FROM ${data()} WHERE price < 0 + // Example: `SELECT * FROM ${data()} WHERE price < 0` message SqlAssertion { // Optional. The SQL statement. string sql_statement = 1 [(google.api.field_behavior) = OPTIONAL]; @@ -419,7 +421,7 @@ message DataQualityRule { TableConditionExpectation table_condition_expectation = 201; // Aggregate rule which evaluates the number of rows returned for the - // provided statement. + // provided statement. If any rows are returned, this rule fails. SqlAssertion sql_assertion = 202; } diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/datascans.proto b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/datascans.proto index 5232b9511bec..b3b6fc909409 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/datascans.proto +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/datascans.proto @@ -126,7 +126,10 @@ service DataScanService { option (google.api.method_signature) = "parent"; } - // Generates recommended DataQualityRule from a data profiling DataScan. + // Generates recommended data quality rules based on the results of a data + // profiling scan. + // + // Use the recommendations to build rules for a data quality scan. rpc GenerateDataQualityRules(GenerateDataQualityRulesRequest) returns (GenerateDataQualityRulesResponse) { option (google.api.http) = { @@ -381,18 +384,21 @@ message ListDataScanJobsResponse { string next_page_token = 2; } -// Generate recommended DataQualityRules request. +// Request details for generating data quality rule recommendations. message GenerateDataQualityRulesRequest { - // Required. The name should be either - // * the name of a datascan with at least one successful completed data - // profiling job, or - // * the name of a successful completed data profiling datascan job. + // Required. The name must be one of the following: + // + // * The name of a data scan with at least one successful, completed data + // profiling job + // * The name of a successful, completed data profiling job (a data scan job + // where the job type is data profiling) string name = 1 [(google.api.field_behavior) = REQUIRED]; } -// Generate recommended DataQualityRules response. +// Response details for data quality rule recommendations. message GenerateDataQualityRulesResponse { - // Generated recommended {@link DataQualityRule}s. + // The data quality rules that Dataplex generates based on the results + // of a data profiling scan. repeated DataQualityRule rule = 1; } diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/logs.proto b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/logs.proto index 63919d8cb9c7..4c6dc08fb1d4 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/logs.proto +++ b/java-dataplex/proto-google-cloud-dataplex-v1/src/main/proto/google/cloud/dataplex/v1/logs.proto @@ -634,40 +634,40 @@ message DataQualityScanRuleResult { // An unspecified rule type. RULE_TYPE_UNSPECIFIED = 0; - // Please see - // https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#nonnullexpectation. + // See + // [DataQualityRule.NonNullExpectation][google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation]. NON_NULL_EXPECTATION = 1; - // Please see - // https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#rangeexpectation. + // See + // [DataQualityRule.RangeExpectation][google.cloud.dataplex.v1.DataQualityRule.RangeExpectation]. RANGE_EXPECTATION = 2; - // Please see - // https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#regexexpectation. + // See + // [DataQualityRule.RegexExpectation][google.cloud.dataplex.v1.DataQualityRule.RegexExpectation]. REGEX_EXPECTATION = 3; - // Please see - // https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#rowconditionexpectation. + // See + // [DataQualityRule.RowConditionExpectation][google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation]. ROW_CONDITION_EXPECTATION = 4; - // Please see - // https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#setexpectation. + // See + // [DataQualityRule.SetExpectation][google.cloud.dataplex.v1.DataQualityRule.SetExpectation]. SET_EXPECTATION = 5; - // Please see - // https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#statisticrangeexpectation. + // See + // [DataQualityRule.StatisticRangeExpectation][google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation]. STATISTIC_RANGE_EXPECTATION = 6; - // Please see - // https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#tableconditionexpectation. + // See + // [DataQualityRule.TableConditionExpectation][google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation]. TABLE_CONDITION_EXPECTATION = 7; - // Please see - // https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#uniquenessexpectation. + // See + // [DataQualityRule.UniquenessExpectation][google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation]. UNIQUENESS_EXPECTATION = 8; - // Please see - // https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#sqlAssertion. + // See + // [DataQualityRule.SqlAssertion][google.cloud.dataplex.v1.DataQualityRule.SqlAssertion]. SQL_ASSERTION = 9; } @@ -733,7 +733,7 @@ message DataQualityScanRuleResult { // The number of rows with null values in the specified column. int64 null_row_count = 12; - // The number of rows returned by the sql statement in the SqlAssertion rule. - // This field is only valid for SqlAssertion rules. + // The number of rows returned by the SQL statement in a SQL assertion rule. + // This field is only valid for SQL assertion rules. int64 assertion_row_count = 13; } diff --git a/java-dataproc-metastore/README.md b/java-dataproc-metastore/README.md index 02b348dedbb5..7124eb32a665 100644 --- a/java-dataproc-metastore/README.md +++ b/java-dataproc-metastore/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataproc-metastore.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc-metastore/2.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc-metastore/2.46.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dataproc/README.md b/java-dataproc/README.md index 87e8ab0e4bfb..b609d8e1821b 100644 --- a/java-dataproc/README.md +++ b/java-dataproc/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataproc.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc/4.41.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc/4.42.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dataproc/google-cloud-dataproc/src/main/resources/META-INF/native-image/com.google.cloud.dataproc.v1/reflect-config.json b/java-dataproc/google-cloud-dataproc/src/main/resources/META-INF/native-image/com.google.cloud.dataproc.v1/reflect-config.json index ae4cf5ffb58c..64c631f50ed3 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/resources/META-INF/native-image/com.google.cloud.dataproc.v1/reflect-config.json +++ b/java-dataproc/google-cloud-dataproc/src/main/resources/META-INF/native-image/com.google.cloud.dataproc.v1/reflect-config.json @@ -431,6 +431,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dataproc.v1.AutotuningConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataproc.v1.AutotuningConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataproc.v1.AutotuningConfig$Scenario", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dataproc.v1.AuxiliaryNodeGroup", "queryAllDeclaredConstructors": true, diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutotuningConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutotuningConfig.java new file mode 100644 index 000000000000..140f3be32133 --- /dev/null +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutotuningConfig.java @@ -0,0 +1,1047 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataproc/v1/shared.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.dataproc.v1; + +/** + * + * + *
        + * Autotuning configuration of the workload.
        + * 
        + * + * Protobuf type {@code google.cloud.dataproc.v1.AutotuningConfig} + */ +public final class AutotuningConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataproc.v1.AutotuningConfig) + AutotuningConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use AutotuningConfig.newBuilder() to construct. + private AutotuningConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AutotuningConfig() { + scenarios_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AutotuningConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_AutotuningConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_AutotuningConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.AutotuningConfig.class, + com.google.cloud.dataproc.v1.AutotuningConfig.Builder.class); + } + + /** + * + * + *
        +   * Scenario represents a specific goal that autotuning will attempt to achieve
        +   * by modifying workloads.
        +   * 
        + * + * Protobuf enum {@code google.cloud.dataproc.v1.AutotuningConfig.Scenario} + */ + public enum Scenario implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
        +     * Default value.
        +     * 
        + * + * SCENARIO_UNSPECIFIED = 0; + */ + SCENARIO_UNSPECIFIED(0), + /** + * + * + *
        +     * Scaling recommendations such as initialExecutors.
        +     * 
        + * + * SCALING = 2; + */ + SCALING(2), + /** + * + * + *
        +     * Adding hints for potential relation broadcasts.
        +     * 
        + * + * BROADCAST_HASH_JOIN = 3; + */ + BROADCAST_HASH_JOIN(3), + /** + * + * + *
        +     * Memory management for workloads.
        +     * 
        + * + * MEMORY = 4; + */ + MEMORY(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
        +     * Default value.
        +     * 
        + * + * SCENARIO_UNSPECIFIED = 0; + */ + public static final int SCENARIO_UNSPECIFIED_VALUE = 0; + /** + * + * + *
        +     * Scaling recommendations such as initialExecutors.
        +     * 
        + * + * SCALING = 2; + */ + public static final int SCALING_VALUE = 2; + /** + * + * + *
        +     * Adding hints for potential relation broadcasts.
        +     * 
        + * + * BROADCAST_HASH_JOIN = 3; + */ + public static final int BROADCAST_HASH_JOIN_VALUE = 3; + /** + * + * + *
        +     * Memory management for workloads.
        +     * 
        + * + * MEMORY = 4; + */ + public static final int MEMORY_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Scenario valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Scenario forNumber(int value) { + switch (value) { + case 0: + return SCENARIO_UNSPECIFIED; + case 2: + return SCALING; + case 3: + return BROADCAST_HASH_JOIN; + case 4: + return MEMORY; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Scenario findValueByNumber(int number) { + return Scenario.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dataproc.v1.AutotuningConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final Scenario[] VALUES = values(); + + public static Scenario valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Scenario(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dataproc.v1.AutotuningConfig.Scenario) + } + + public static final int SCENARIOS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List scenarios_; + + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.dataproc.v1.AutotuningConfig.Scenario> + scenarios_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.dataproc.v1.AutotuningConfig.Scenario>() { + public com.google.cloud.dataproc.v1.AutotuningConfig.Scenario convert( + java.lang.Integer from) { + com.google.cloud.dataproc.v1.AutotuningConfig.Scenario result = + com.google.cloud.dataproc.v1.AutotuningConfig.Scenario.forNumber(from); + return result == null + ? com.google.cloud.dataproc.v1.AutotuningConfig.Scenario.UNRECOGNIZED + : result; + } + }; + /** + * + * + *
        +   * Optional. Scenarios for which tunings are applied.
        +   * 
        + * + * + * repeated .google.cloud.dataproc.v1.AutotuningConfig.Scenario scenarios = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the scenarios. + */ + @java.lang.Override + public java.util.List getScenariosList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.dataproc.v1.AutotuningConfig.Scenario>( + scenarios_, scenarios_converter_); + } + /** + * + * + *
        +   * Optional. Scenarios for which tunings are applied.
        +   * 
        + * + * + * repeated .google.cloud.dataproc.v1.AutotuningConfig.Scenario scenarios = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of scenarios. + */ + @java.lang.Override + public int getScenariosCount() { + return scenarios_.size(); + } + /** + * + * + *
        +   * Optional. Scenarios for which tunings are applied.
        +   * 
        + * + * + * repeated .google.cloud.dataproc.v1.AutotuningConfig.Scenario scenarios = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The scenarios at the given index. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.AutotuningConfig.Scenario getScenarios(int index) { + return scenarios_converter_.convert(scenarios_.get(index)); + } + /** + * + * + *
        +   * Optional. Scenarios for which tunings are applied.
        +   * 
        + * + * + * repeated .google.cloud.dataproc.v1.AutotuningConfig.Scenario scenarios = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for scenarios. + */ + @java.lang.Override + public java.util.List getScenariosValueList() { + return scenarios_; + } + /** + * + * + *
        +   * Optional. Scenarios for which tunings are applied.
        +   * 
        + * + * + * repeated .google.cloud.dataproc.v1.AutotuningConfig.Scenario scenarios = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of scenarios at the given index. + */ + @java.lang.Override + public int getScenariosValue(int index) { + return scenarios_.get(index); + } + + private int scenariosMemoizedSerializedSize; + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (getScenariosList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(scenariosMemoizedSerializedSize); + } + for (int i = 0; i < scenarios_.size(); i++) { + output.writeEnumNoTag(scenarios_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < scenarios_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(scenarios_.get(i)); + } + size += dataSize; + if (!getScenariosList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + scenariosMemoizedSerializedSize = dataSize; + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataproc.v1.AutotuningConfig)) { + return super.equals(obj); + } + com.google.cloud.dataproc.v1.AutotuningConfig other = + (com.google.cloud.dataproc.v1.AutotuningConfig) obj; + + if (!scenarios_.equals(other.scenarios_)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getScenariosCount() > 0) { + hash = (37 * hash) + SCENARIOS_FIELD_NUMBER; + hash = (53 * hash) + scenarios_.hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataproc.v1.AutotuningConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.AutotuningConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.AutotuningConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.AutotuningConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.AutotuningConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataproc.v1.AutotuningConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.AutotuningConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.AutotuningConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.AutotuningConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.AutotuningConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataproc.v1.AutotuningConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataproc.v1.AutotuningConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dataproc.v1.AutotuningConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
        +   * Autotuning configuration of the workload.
        +   * 
        + * + * Protobuf type {@code google.cloud.dataproc.v1.AutotuningConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataproc.v1.AutotuningConfig) + com.google.cloud.dataproc.v1.AutotuningConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_AutotuningConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_AutotuningConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataproc.v1.AutotuningConfig.class, + com.google.cloud.dataproc.v1.AutotuningConfig.Builder.class); + } + + // Construct using com.google.cloud.dataproc.v1.AutotuningConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + scenarios_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataproc.v1.SharedProto + .internal_static_google_cloud_dataproc_v1_AutotuningConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.AutotuningConfig getDefaultInstanceForType() { + return com.google.cloud.dataproc.v1.AutotuningConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.AutotuningConfig build() { + com.google.cloud.dataproc.v1.AutotuningConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.AutotuningConfig buildPartial() { + com.google.cloud.dataproc.v1.AutotuningConfig result = + new com.google.cloud.dataproc.v1.AutotuningConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.dataproc.v1.AutotuningConfig result) { + if (((bitField0_ & 0x00000001) != 0)) { + scenarios_ = java.util.Collections.unmodifiableList(scenarios_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.scenarios_ = scenarios_; + } + + private void buildPartial0(com.google.cloud.dataproc.v1.AutotuningConfig result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataproc.v1.AutotuningConfig) { + return mergeFrom((com.google.cloud.dataproc.v1.AutotuningConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataproc.v1.AutotuningConfig other) { + if (other == com.google.cloud.dataproc.v1.AutotuningConfig.getDefaultInstance()) return this; + if (!other.scenarios_.isEmpty()) { + if (scenarios_.isEmpty()) { + scenarios_ = other.scenarios_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureScenariosIsMutable(); + scenarios_.addAll(other.scenarios_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 16: + { + int tmpRaw = input.readEnum(); + ensureScenariosIsMutable(); + scenarios_.add(tmpRaw); + break; + } // case 16 + case 18: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureScenariosIsMutable(); + scenarios_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List scenarios_ = java.util.Collections.emptyList(); + + private void ensureScenariosIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + scenarios_ = new java.util.ArrayList(scenarios_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
        +     * Optional. Scenarios for which tunings are applied.
        +     * 
        + * + * + * repeated .google.cloud.dataproc.v1.AutotuningConfig.Scenario scenarios = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the scenarios. + */ + public java.util.List + getScenariosList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.dataproc.v1.AutotuningConfig.Scenario>( + scenarios_, scenarios_converter_); + } + /** + * + * + *
        +     * Optional. Scenarios for which tunings are applied.
        +     * 
        + * + * + * repeated .google.cloud.dataproc.v1.AutotuningConfig.Scenario scenarios = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of scenarios. + */ + public int getScenariosCount() { + return scenarios_.size(); + } + /** + * + * + *
        +     * Optional. Scenarios for which tunings are applied.
        +     * 
        + * + * + * repeated .google.cloud.dataproc.v1.AutotuningConfig.Scenario scenarios = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The scenarios at the given index. + */ + public com.google.cloud.dataproc.v1.AutotuningConfig.Scenario getScenarios(int index) { + return scenarios_converter_.convert(scenarios_.get(index)); + } + /** + * + * + *
        +     * Optional. Scenarios for which tunings are applied.
        +     * 
        + * + * + * repeated .google.cloud.dataproc.v1.AutotuningConfig.Scenario scenarios = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The scenarios to set. + * @return This builder for chaining. + */ + public Builder setScenarios( + int index, com.google.cloud.dataproc.v1.AutotuningConfig.Scenario value) { + if (value == null) { + throw new NullPointerException(); + } + ensureScenariosIsMutable(); + scenarios_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Scenarios for which tunings are applied.
        +     * 
        + * + * + * repeated .google.cloud.dataproc.v1.AutotuningConfig.Scenario scenarios = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The scenarios to add. + * @return This builder for chaining. + */ + public Builder addScenarios(com.google.cloud.dataproc.v1.AutotuningConfig.Scenario value) { + if (value == null) { + throw new NullPointerException(); + } + ensureScenariosIsMutable(); + scenarios_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Scenarios for which tunings are applied.
        +     * 
        + * + * + * repeated .google.cloud.dataproc.v1.AutotuningConfig.Scenario scenarios = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The scenarios to add. + * @return This builder for chaining. + */ + public Builder addAllScenarios( + java.lang.Iterable + values) { + ensureScenariosIsMutable(); + for (com.google.cloud.dataproc.v1.AutotuningConfig.Scenario value : values) { + scenarios_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Scenarios for which tunings are applied.
        +     * 
        + * + * + * repeated .google.cloud.dataproc.v1.AutotuningConfig.Scenario scenarios = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearScenarios() { + scenarios_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Scenarios for which tunings are applied.
        +     * 
        + * + * + * repeated .google.cloud.dataproc.v1.AutotuningConfig.Scenario scenarios = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for scenarios. + */ + public java.util.List getScenariosValueList() { + return java.util.Collections.unmodifiableList(scenarios_); + } + /** + * + * + *
        +     * Optional. Scenarios for which tunings are applied.
        +     * 
        + * + * + * repeated .google.cloud.dataproc.v1.AutotuningConfig.Scenario scenarios = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of scenarios at the given index. + */ + public int getScenariosValue(int index) { + return scenarios_.get(index); + } + /** + * + * + *
        +     * Optional. Scenarios for which tunings are applied.
        +     * 
        + * + * + * repeated .google.cloud.dataproc.v1.AutotuningConfig.Scenario scenarios = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for scenarios to set. + * @return This builder for chaining. + */ + public Builder setScenariosValue(int index, int value) { + ensureScenariosIsMutable(); + scenarios_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Scenarios for which tunings are applied.
        +     * 
        + * + * + * repeated .google.cloud.dataproc.v1.AutotuningConfig.Scenario scenarios = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for scenarios to add. + * @return This builder for chaining. + */ + public Builder addScenariosValue(int value) { + ensureScenariosIsMutable(); + scenarios_.add(value); + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Scenarios for which tunings are applied.
        +     * 
        + * + * + * repeated .google.cloud.dataproc.v1.AutotuningConfig.Scenario scenarios = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The enum numeric values on the wire for scenarios to add. + * @return This builder for chaining. + */ + public Builder addAllScenariosValue(java.lang.Iterable values) { + ensureScenariosIsMutable(); + for (int value : values) { + scenarios_.add(value); + } + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.AutotuningConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataproc.v1.AutotuningConfig) + private static final com.google.cloud.dataproc.v1.AutotuningConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataproc.v1.AutotuningConfig(); + } + + public static com.google.cloud.dataproc.v1.AutotuningConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AutotuningConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataproc.v1.AutotuningConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutotuningConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutotuningConfigOrBuilder.java new file mode 100644 index 000000000000..812e6e327246 --- /dev/null +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/AutotuningConfigOrBuilder.java @@ -0,0 +1,99 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/dataproc/v1/shared.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.dataproc.v1; + +public interface AutotuningConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataproc.v1.AutotuningConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Optional. Scenarios for which tunings are applied.
        +   * 
        + * + * + * repeated .google.cloud.dataproc.v1.AutotuningConfig.Scenario scenarios = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the scenarios. + */ + java.util.List getScenariosList(); + /** + * + * + *
        +   * Optional. Scenarios for which tunings are applied.
        +   * 
        + * + * + * repeated .google.cloud.dataproc.v1.AutotuningConfig.Scenario scenarios = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of scenarios. + */ + int getScenariosCount(); + /** + * + * + *
        +   * Optional. Scenarios for which tunings are applied.
        +   * 
        + * + * + * repeated .google.cloud.dataproc.v1.AutotuningConfig.Scenario scenarios = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The scenarios at the given index. + */ + com.google.cloud.dataproc.v1.AutotuningConfig.Scenario getScenarios(int index); + /** + * + * + *
        +   * Optional. Scenarios for which tunings are applied.
        +   * 
        + * + * + * repeated .google.cloud.dataproc.v1.AutotuningConfig.Scenario scenarios = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for scenarios. + */ + java.util.List getScenariosValueList(); + /** + * + * + *
        +   * Optional. Scenarios for which tunings are applied.
        +   * 
        + * + * + * repeated .google.cloud.dataproc.v1.AutotuningConfig.Scenario scenarios = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of scenarios at the given index. + */ + int getScenariosValue(int index); +} diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfig.java index 72744b927ebe..fd033ac8ea65 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfig.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfig.java @@ -41,6 +41,7 @@ private RuntimeConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) private RuntimeConfig() { version_ = ""; containerImage_ = ""; + cohort_ = ""; } @java.lang.Override @@ -347,6 +348,115 @@ public com.google.cloud.dataproc.v1.RepositoryConfigOrBuilder getRepositoryConfi : repositoryConfig_; } + public static final int AUTOTUNING_CONFIG_FIELD_NUMBER = 6; + private com.google.cloud.dataproc.v1.AutotuningConfig autotuningConfig_; + /** + * + * + *
        +   * Optional. Autotuning configuration of the workload.
        +   * 
        + * + * + * .google.cloud.dataproc.v1.AutotuningConfig autotuning_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the autotuningConfig field is set. + */ + @java.lang.Override + public boolean hasAutotuningConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
        +   * Optional. Autotuning configuration of the workload.
        +   * 
        + * + * + * .google.cloud.dataproc.v1.AutotuningConfig autotuning_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The autotuningConfig. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.AutotuningConfig getAutotuningConfig() { + return autotuningConfig_ == null + ? com.google.cloud.dataproc.v1.AutotuningConfig.getDefaultInstance() + : autotuningConfig_; + } + /** + * + * + *
        +   * Optional. Autotuning configuration of the workload.
        +   * 
        + * + * + * .google.cloud.dataproc.v1.AutotuningConfig autotuning_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.AutotuningConfigOrBuilder getAutotuningConfigOrBuilder() { + return autotuningConfig_ == null + ? com.google.cloud.dataproc.v1.AutotuningConfig.getDefaultInstance() + : autotuningConfig_; + } + + public static final int COHORT_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object cohort_ = ""; + /** + * + * + *
        +   * Optional. Cohort identifier. Identifies families of the workloads having
        +   * the same shape, e.g. daily ETL jobs.
        +   * 
        + * + * string cohort = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The cohort. + */ + @java.lang.Override + public java.lang.String getCohort() { + java.lang.Object ref = cohort_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cohort_ = s; + return s; + } + } + /** + * + * + *
        +   * Optional. Cohort identifier. Identifies families of the workloads having
        +   * the same shape, e.g. daily ETL jobs.
        +   * 
        + * + * string cohort = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for cohort. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCohortBytes() { + java.lang.Object ref = cohort_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cohort_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -372,6 +482,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(5, getRepositoryConfig()); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getAutotuningConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cohort_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, cohort_); + } getUnknownFields().writeTo(output); } @@ -400,6 +516,12 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getRepositoryConfig()); } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getAutotuningConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cohort_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, cohort_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -423,6 +545,11 @@ public boolean equals(final java.lang.Object obj) { if (hasRepositoryConfig()) { if (!getRepositoryConfig().equals(other.getRepositoryConfig())) return false; } + if (hasAutotuningConfig() != other.hasAutotuningConfig()) return false; + if (hasAutotuningConfig()) { + if (!getAutotuningConfig().equals(other.getAutotuningConfig())) return false; + } + if (!getCohort().equals(other.getCohort())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -446,6 +573,12 @@ public int hashCode() { hash = (37 * hash) + REPOSITORY_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getRepositoryConfig().hashCode(); } + if (hasAutotuningConfig()) { + hash = (37 * hash) + AUTOTUNING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAutotuningConfig().hashCode(); + } + hash = (37 * hash) + COHORT_FIELD_NUMBER; + hash = (53 * hash) + getCohort().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -609,6 +742,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getRepositoryConfigFieldBuilder(); + getAutotuningConfigFieldBuilder(); } } @@ -624,6 +758,12 @@ public Builder clear() { repositoryConfigBuilder_.dispose(); repositoryConfigBuilder_ = null; } + autotuningConfig_ = null; + if (autotuningConfigBuilder_ != null) { + autotuningConfigBuilder_.dispose(); + autotuningConfigBuilder_ = null; + } + cohort_ = ""; return this; } @@ -676,6 +816,14 @@ private void buildPartial0(com.google.cloud.dataproc.v1.RuntimeConfig result) { repositoryConfigBuilder_ == null ? repositoryConfig_ : repositoryConfigBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.autotuningConfig_ = + autotuningConfigBuilder_ == null ? autotuningConfig_ : autotuningConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.cohort_ = cohort_; + } result.bitField0_ |= to_bitField0_; } @@ -739,6 +887,14 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.RuntimeConfig other) { if (other.hasRepositoryConfig()) { mergeRepositoryConfig(other.getRepositoryConfig()); } + if (other.hasAutotuningConfig()) { + mergeAutotuningConfig(other.getAutotuningConfig()); + } + if (!other.getCohort().isEmpty()) { + cohort_ = other.cohort_; + bitField0_ |= 0x00000020; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -796,6 +952,19 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 42 + case 50: + { + input.readMessage( + getAutotuningConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 50 + case 58: + { + cohort_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1417,6 +1586,322 @@ public com.google.cloud.dataproc.v1.RepositoryConfigOrBuilder getRepositoryConfi return repositoryConfigBuilder_; } + private com.google.cloud.dataproc.v1.AutotuningConfig autotuningConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.AutotuningConfig, + com.google.cloud.dataproc.v1.AutotuningConfig.Builder, + com.google.cloud.dataproc.v1.AutotuningConfigOrBuilder> + autotuningConfigBuilder_; + /** + * + * + *
        +     * Optional. Autotuning configuration of the workload.
        +     * 
        + * + * + * .google.cloud.dataproc.v1.AutotuningConfig autotuning_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the autotuningConfig field is set. + */ + public boolean hasAutotuningConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
        +     * Optional. Autotuning configuration of the workload.
        +     * 
        + * + * + * .google.cloud.dataproc.v1.AutotuningConfig autotuning_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The autotuningConfig. + */ + public com.google.cloud.dataproc.v1.AutotuningConfig getAutotuningConfig() { + if (autotuningConfigBuilder_ == null) { + return autotuningConfig_ == null + ? com.google.cloud.dataproc.v1.AutotuningConfig.getDefaultInstance() + : autotuningConfig_; + } else { + return autotuningConfigBuilder_.getMessage(); + } + } + /** + * + * + *
        +     * Optional. Autotuning configuration of the workload.
        +     * 
        + * + * + * .google.cloud.dataproc.v1.AutotuningConfig autotuning_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAutotuningConfig(com.google.cloud.dataproc.v1.AutotuningConfig value) { + if (autotuningConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + autotuningConfig_ = value; + } else { + autotuningConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Autotuning configuration of the workload.
        +     * 
        + * + * + * .google.cloud.dataproc.v1.AutotuningConfig autotuning_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAutotuningConfig( + com.google.cloud.dataproc.v1.AutotuningConfig.Builder builderForValue) { + if (autotuningConfigBuilder_ == null) { + autotuningConfig_ = builderForValue.build(); + } else { + autotuningConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Autotuning configuration of the workload.
        +     * 
        + * + * + * .google.cloud.dataproc.v1.AutotuningConfig autotuning_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAutotuningConfig(com.google.cloud.dataproc.v1.AutotuningConfig value) { + if (autotuningConfigBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && autotuningConfig_ != null + && autotuningConfig_ + != com.google.cloud.dataproc.v1.AutotuningConfig.getDefaultInstance()) { + getAutotuningConfigBuilder().mergeFrom(value); + } else { + autotuningConfig_ = value; + } + } else { + autotuningConfigBuilder_.mergeFrom(value); + } + if (autotuningConfig_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
        +     * Optional. Autotuning configuration of the workload.
        +     * 
        + * + * + * .google.cloud.dataproc.v1.AutotuningConfig autotuning_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAutotuningConfig() { + bitField0_ = (bitField0_ & ~0x00000010); + autotuningConfig_ = null; + if (autotuningConfigBuilder_ != null) { + autotuningConfigBuilder_.dispose(); + autotuningConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Autotuning configuration of the workload.
        +     * 
        + * + * + * .google.cloud.dataproc.v1.AutotuningConfig autotuning_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.AutotuningConfig.Builder getAutotuningConfigBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getAutotuningConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
        +     * Optional. Autotuning configuration of the workload.
        +     * 
        + * + * + * .google.cloud.dataproc.v1.AutotuningConfig autotuning_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dataproc.v1.AutotuningConfigOrBuilder getAutotuningConfigOrBuilder() { + if (autotuningConfigBuilder_ != null) { + return autotuningConfigBuilder_.getMessageOrBuilder(); + } else { + return autotuningConfig_ == null + ? com.google.cloud.dataproc.v1.AutotuningConfig.getDefaultInstance() + : autotuningConfig_; + } + } + /** + * + * + *
        +     * Optional. Autotuning configuration of the workload.
        +     * 
        + * + * + * .google.cloud.dataproc.v1.AutotuningConfig autotuning_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.AutotuningConfig, + com.google.cloud.dataproc.v1.AutotuningConfig.Builder, + com.google.cloud.dataproc.v1.AutotuningConfigOrBuilder> + getAutotuningConfigFieldBuilder() { + if (autotuningConfigBuilder_ == null) { + autotuningConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.dataproc.v1.AutotuningConfig, + com.google.cloud.dataproc.v1.AutotuningConfig.Builder, + com.google.cloud.dataproc.v1.AutotuningConfigOrBuilder>( + getAutotuningConfig(), getParentForChildren(), isClean()); + autotuningConfig_ = null; + } + return autotuningConfigBuilder_; + } + + private java.lang.Object cohort_ = ""; + /** + * + * + *
        +     * Optional. Cohort identifier. Identifies families of the workloads having
        +     * the same shape, e.g. daily ETL jobs.
        +     * 
        + * + * string cohort = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The cohort. + */ + public java.lang.String getCohort() { + java.lang.Object ref = cohort_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cohort_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
        +     * Optional. Cohort identifier. Identifies families of the workloads having
        +     * the same shape, e.g. daily ETL jobs.
        +     * 
        + * + * string cohort = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for cohort. + */ + public com.google.protobuf.ByteString getCohortBytes() { + java.lang.Object ref = cohort_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cohort_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
        +     * Optional. Cohort identifier. Identifies families of the workloads having
        +     * the same shape, e.g. daily ETL jobs.
        +     * 
        + * + * string cohort = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The cohort to set. + * @return This builder for chaining. + */ + public Builder setCohort(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cohort_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Cohort identifier. Identifies families of the workloads having
        +     * the same shape, e.g. daily ETL jobs.
        +     * 
        + * + * string cohort = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCohort() { + cohort_ = getDefaultInstance().getCohort(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
        +     * Optional. Cohort identifier. Identifies families of the workloads having
        +     * the same shape, e.g. daily ETL jobs.
        +     * 
        + * + * string cohort = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for cohort to set. + * @return This builder for chaining. + */ + public Builder setCohortBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cohort_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfigOrBuilder.java index b4726acafc49..6872f15c0a6e 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfigOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/RuntimeConfigOrBuilder.java @@ -184,4 +184,72 @@ java.lang.String getPropertiesOrDefault( *
        */ com.google.cloud.dataproc.v1.RepositoryConfigOrBuilder getRepositoryConfigOrBuilder(); + + /** + * + * + *
        +   * Optional. Autotuning configuration of the workload.
        +   * 
        + * + * + * .google.cloud.dataproc.v1.AutotuningConfig autotuning_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the autotuningConfig field is set. + */ + boolean hasAutotuningConfig(); + /** + * + * + *
        +   * Optional. Autotuning configuration of the workload.
        +   * 
        + * + * + * .google.cloud.dataproc.v1.AutotuningConfig autotuning_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The autotuningConfig. + */ + com.google.cloud.dataproc.v1.AutotuningConfig getAutotuningConfig(); + /** + * + * + *
        +   * Optional. Autotuning configuration of the workload.
        +   * 
        + * + * + * .google.cloud.dataproc.v1.AutotuningConfig autotuning_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dataproc.v1.AutotuningConfigOrBuilder getAutotuningConfigOrBuilder(); + + /** + * + * + *
        +   * Optional. Cohort identifier. Identifies families of the workloads having
        +   * the same shape, e.g. daily ETL jobs.
        +   * 
        + * + * string cohort = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The cohort. + */ + java.lang.String getCohort(); + /** + * + * + *
        +   * Optional. Cohort identifier. Identifies families of the workloads having
        +   * the same shape, e.g. daily ETL jobs.
        +   * 
        + * + * string cohort = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for cohort. + */ + com.google.protobuf.ByteString getCohortBytes(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SharedProto.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SharedProto.java index 0eb43ad5cc02..b4fb0cbdfe2c 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SharedProto.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/SharedProto.java @@ -108,6 +108,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dataproc_v1_GkeNodePoolConfig_GkeNodePoolAutoscalingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_AutotuningConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_AutotuningConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dataproc_v1_RepositoryConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -129,114 +133,121 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030google.cloud.dataproc.v1\032\037google/api/fi" + "eld_behavior.proto\032\031google/api/resource." + "proto\032\036google/protobuf/duration.proto\032\037g" - + "oogle/protobuf/timestamp.proto\"\224\002\n\rRunti" + + "oogle/protobuf/timestamp.proto\"\365\002\n\rRunti" + "meConfig\022\024\n\007version\030\001 \001(\tB\003\340A\001\022\034\n\017contai" + "ner_image\030\002 \001(\tB\003\340A\001\022P\n\nproperties\030\003 \003(\013" + "27.google.cloud.dataproc.v1.RuntimeConfi" + "g.PropertiesEntryB\003\340A\001\022J\n\021repository_con" + "fig\030\005 \001(\0132*.google.cloud.dataproc.v1.Rep" - + "ositoryConfigB\003\340A\001\0321\n\017PropertiesEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\253\001\n\021Enviro" - + "nmentConfig\022H\n\020execution_config\030\001 \001(\0132)." - + "google.cloud.dataproc.v1.ExecutionConfig" - + "B\003\340A\001\022L\n\022peripherals_config\030\002 \001(\0132+.goog" - + "le.cloud.dataproc.v1.PeripheralsConfigB\003" - + "\340A\001\"\242\002\n\017ExecutionConfig\022\034\n\017service_accou" - + "nt\030\002 \001(\tB\003\340A\001\022\032\n\013network_uri\030\004 \001(\tB\003\340A\001H" - + "\000\022\035\n\016subnetwork_uri\030\005 \001(\tB\003\340A\001H\000\022\031\n\014netw" - + "ork_tags\030\006 \003(\tB\003\340A\001\022\024\n\007kms_key\030\007 \001(\tB\003\340A" - + "\001\0220\n\010idle_ttl\030\010 \001(\0132\031.google.protobuf.Du" - + "rationB\003\340A\001\022+\n\003ttl\030\t \001(\0132\031.google.protob" - + "uf.DurationB\003\340A\001\022\033\n\016staging_bucket\030\n \001(\t" - + "B\003\340A\001B\t\n\007network\"9\n\030SparkHistoryServerCo" - + "nfig\022\035\n\020dataproc_cluster\030\001 \001(\tB\003\340A\001\"\266\001\n\021" - + "PeripheralsConfig\022C\n\021metastore_service\030\001" - + " \001(\tB(\340A\001\372A\"\n metastore.googleapis.com/S" - + "ervice\022\\\n\033spark_history_server_config\030\002 " - + "\001(\01322.google.cloud.dataproc.v1.SparkHist" - + "oryServerConfigB\003\340A\001\"\327\002\n\013RuntimeInfo\022L\n\t" - + "endpoints\030\001 \003(\01324.google.cloud.dataproc." - + "v1.RuntimeInfo.EndpointsEntryB\003\340A\003\022\027\n\nou" - + "tput_uri\030\002 \001(\tB\003\340A\003\022\"\n\025diagnostic_output" - + "_uri\030\003 \001(\tB\003\340A\003\022F\n\021approximate_usage\030\006 \001" - + "(\0132&.google.cloud.dataproc.v1.UsageMetri" - + "csB\003\340A\003\022C\n\rcurrent_usage\030\007 \001(\0132\'.google." - + "cloud.dataproc.v1.UsageSnapshotB\003\340A\003\0320\n\016" - + "EndpointsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" - + "(\t:\0028\001\"\236\001\n\014UsageMetrics\022\036\n\021milli_dcu_sec" - + "onds\030\001 \001(\003B\003\340A\001\022\'\n\032shuffle_storage_gb_se" - + "conds\030\002 \001(\003B\003\340A\001\022&\n\031milli_accelerator_se" - + "conds\030\003 \001(\003B\003\340A\001\022\035\n\020accelerator_type\030\004 \001" - + "(\tB\003\340A\001\"\210\002\n\rUsageSnapshot\022\026\n\tmilli_dcu\030\001" - + " \001(\003B\003\340A\001\022\037\n\022shuffle_storage_gb\030\002 \001(\003B\003\340" - + "A\001\022\036\n\021milli_dcu_premium\030\004 \001(\003B\003\340A\001\022\'\n\032sh" - + "uffle_storage_gb_premium\030\005 \001(\003B\003\340A\001\022\036\n\021m" - + "illi_accelerator\030\006 \001(\003B\003\340A\001\022\035\n\020accelerat" - + "or_type\030\007 \001(\tB\003\340A\001\0226\n\rsnapshot_time\030\003 \001(" - + "\0132\032.google.protobuf.TimestampB\003\340A\001\"\244\001\n\020G" - + "keClusterConfig\022D\n\022gke_cluster_target\030\002 " - + "\001(\tB(\340A\001\372A\"\n container.googleapis.com/Cl" - + "uster\022J\n\020node_pool_target\030\003 \003(\0132+.google" - + ".cloud.dataproc.v1.GkeNodePoolTargetB\003\340A" - + "\001\"\362\001\n\027KubernetesClusterConfig\022!\n\024kuberne" - + "tes_namespace\030\001 \001(\tB\003\340A\001\022M\n\022gke_cluster_" - + "config\030\002 \001(\0132*.google.cloud.dataproc.v1." - + "GkeClusterConfigB\003\340A\002H\000\022[\n\032kubernetes_so" - + "ftware_config\030\003 \001(\01322.google.cloud.datap" - + "roc.v1.KubernetesSoftwareConfigB\003\340A\001B\010\n\006" - + "config\"\303\002\n\030KubernetesSoftwareConfig\022c\n\021c" - + "omponent_version\030\001 \003(\0132H.google.cloud.da" - + "taproc.v1.KubernetesSoftwareConfig.Compo" - + "nentVersionEntry\022V\n\nproperties\030\002 \003(\0132B.g" + + "ositoryConfigB\003\340A\001\022J\n\021autotuning_config\030" + + "\006 \001(\0132*.google.cloud.dataproc.v1.Autotun" + + "ingConfigB\003\340A\001\022\023\n\006cohort\030\007 \001(\tB\003\340A\001\0321\n\017P" + + "ropertiesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + + "(\t:\0028\001\"\253\001\n\021EnvironmentConfig\022H\n\020executio" + + "n_config\030\001 \001(\0132).google.cloud.dataproc.v" + + "1.ExecutionConfigB\003\340A\001\022L\n\022peripherals_co" + + "nfig\030\002 \001(\0132+.google.cloud.dataproc.v1.Pe" + + "ripheralsConfigB\003\340A\001\"\242\002\n\017ExecutionConfig" + + "\022\034\n\017service_account\030\002 \001(\tB\003\340A\001\022\032\n\013networ" + + "k_uri\030\004 \001(\tB\003\340A\001H\000\022\035\n\016subnetwork_uri\030\005 \001" + + "(\tB\003\340A\001H\000\022\031\n\014network_tags\030\006 \003(\tB\003\340A\001\022\024\n\007" + + "kms_key\030\007 \001(\tB\003\340A\001\0220\n\010idle_ttl\030\010 \001(\0132\031.g" + + "oogle.protobuf.DurationB\003\340A\001\022+\n\003ttl\030\t \001(" + + "\0132\031.google.protobuf.DurationB\003\340A\001\022\033\n\016sta" + + "ging_bucket\030\n \001(\tB\003\340A\001B\t\n\007network\"9\n\030Spa" + + "rkHistoryServerConfig\022\035\n\020dataproc_cluste" + + "r\030\001 \001(\tB\003\340A\001\"\266\001\n\021PeripheralsConfig\022C\n\021me" + + "tastore_service\030\001 \001(\tB(\340A\001\372A\"\n metastore" + + ".googleapis.com/Service\022\\\n\033spark_history" + + "_server_config\030\002 \001(\01322.google.cloud.data" + + "proc.v1.SparkHistoryServerConfigB\003\340A\001\"\327\002" + + "\n\013RuntimeInfo\022L\n\tendpoints\030\001 \003(\01324.googl" + + "e.cloud.dataproc.v1.RuntimeInfo.Endpoint" + + "sEntryB\003\340A\003\022\027\n\noutput_uri\030\002 \001(\tB\003\340A\003\022\"\n\025" + + "diagnostic_output_uri\030\003 \001(\tB\003\340A\003\022F\n\021appr" + + "oximate_usage\030\006 \001(\0132&.google.cloud.datap" + + "roc.v1.UsageMetricsB\003\340A\003\022C\n\rcurrent_usag" + + "e\030\007 \001(\0132\'.google.cloud.dataproc.v1.Usage" + + "SnapshotB\003\340A\003\0320\n\016EndpointsEntry\022\013\n\003key\030\001" + + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\236\001\n\014UsageMetrics" + + "\022\036\n\021milli_dcu_seconds\030\001 \001(\003B\003\340A\001\022\'\n\032shuf" + + "fle_storage_gb_seconds\030\002 \001(\003B\003\340A\001\022&\n\031mil" + + "li_accelerator_seconds\030\003 \001(\003B\003\340A\001\022\035\n\020acc" + + "elerator_type\030\004 \001(\tB\003\340A\001\"\210\002\n\rUsageSnapsh" + + "ot\022\026\n\tmilli_dcu\030\001 \001(\003B\003\340A\001\022\037\n\022shuffle_st" + + "orage_gb\030\002 \001(\003B\003\340A\001\022\036\n\021milli_dcu_premium" + + "\030\004 \001(\003B\003\340A\001\022\'\n\032shuffle_storage_gb_premiu" + + "m\030\005 \001(\003B\003\340A\001\022\036\n\021milli_accelerator\030\006 \001(\003B" + + "\003\340A\001\022\035\n\020accelerator_type\030\007 \001(\tB\003\340A\001\0226\n\rs" + + "napshot_time\030\003 \001(\0132\032.google.protobuf.Tim" + + "estampB\003\340A\001\"\244\001\n\020GkeClusterConfig\022D\n\022gke_" + + "cluster_target\030\002 \001(\tB(\340A\001\372A\"\n container." + + "googleapis.com/Cluster\022J\n\020node_pool_targ" + + "et\030\003 \003(\0132+.google.cloud.dataproc.v1.GkeN" + + "odePoolTargetB\003\340A\001\"\362\001\n\027KubernetesCluster" + + "Config\022!\n\024kubernetes_namespace\030\001 \001(\tB\003\340A" + + "\001\022M\n\022gke_cluster_config\030\002 \001(\0132*.google.c" + + "loud.dataproc.v1.GkeClusterConfigB\003\340A\002H\000" + + "\022[\n\032kubernetes_software_config\030\003 \001(\01322.g" + "oogle.cloud.dataproc.v1.KubernetesSoftwa" - + "reConfig.PropertiesEntry\0327\n\025ComponentVer" - + "sionEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" - + "\001\0321\n\017PropertiesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" - + "ue\030\002 \001(\t:\0028\001\"\236\002\n\021GkeNodePoolTarget\022\026\n\tno" - + "de_pool\030\001 \001(\tB\003\340A\002\022D\n\005roles\030\002 \003(\01620.goog" - + "le.cloud.dataproc.v1.GkeNodePoolTarget.R" - + "oleB\003\340A\002\022J\n\020node_pool_config\030\003 \001(\0132+.goo" - + "gle.cloud.dataproc.v1.GkeNodePoolConfigB" - + "\003\340A\004\"_\n\004Role\022\024\n\020ROLE_UNSPECIFIED\020\000\022\013\n\007DE" - + "FAULT\020\001\022\016\n\nCONTROLLER\020\002\022\020\n\014SPARK_DRIVER\020" - + "\003\022\022\n\016SPARK_EXECUTOR\020\004\"\274\005\n\021GkeNodePoolCon" - + "fig\022N\n\006config\030\002 \001(\01329.google.cloud.datap" - + "roc.v1.GkeNodePoolConfig.GkeNodeConfigB\003" - + "\340A\001\022\026\n\tlocations\030\r \003(\tB\003\340A\001\022b\n\013autoscali" - + "ng\030\004 \001(\0132H.google.cloud.dataproc.v1.GkeN" - + "odePoolConfig.GkeNodePoolAutoscalingConf" - + "igB\003\340A\001\032\231\002\n\rGkeNodeConfig\022\031\n\014machine_typ" - + "e\030\001 \001(\tB\003\340A\001\022\034\n\017local_ssd_count\030\007 \001(\005B\003\340" - + "A\001\022\030\n\013preemptible\030\n \001(\010B\003\340A\001\022c\n\014accelera" - + "tors\030\013 \003(\0132H.google.cloud.dataproc.v1.Gk" - + "eNodePoolConfig.GkeNodePoolAcceleratorCo" - + "nfigB\003\340A\001\022\035\n\020min_cpu_platform\030\r \001(\tB\003\340A\001" - + "\022\036\n\021boot_disk_kms_key\030\027 \001(\tB\003\340A\001\022\021\n\004spot" - + "\030 \001(\010B\003\340A\001\032o\n\034GkeNodePoolAcceleratorCon" - + "fig\022\031\n\021accelerator_count\030\001 \001(\003\022\030\n\020accele" - + "rator_type\030\002 \001(\t\022\032\n\022gpu_partition_size\030\003" - + " \001(\t\032N\n\034GkeNodePoolAutoscalingConfig\022\026\n\016" - + "min_node_count\030\002 \001(\005\022\026\n\016max_node_count\030\003" - + " \001(\005\"g\n\020RepositoryConfig\022S\n\026pypi_reposit" - + "ory_config\030\001 \001(\0132..google.cloud.dataproc" - + ".v1.PyPiRepositoryConfigB\003\340A\001\"4\n\024PyPiRep" - + "ositoryConfig\022\034\n\017pypi_repository\030\001 \001(\tB\003" - + "\340A\001*\324\001\n\tComponent\022\031\n\025COMPONENT_UNSPECIFI" - + "ED\020\000\022\014\n\010ANACONDA\020\005\022\n\n\006DOCKER\020\r\022\t\n\005DRUID\020" - + "\t\022\t\n\005FLINK\020\016\022\t\n\005HBASE\020\013\022\020\n\014HIVE_WEBHCAT\020" - + "\003\022\010\n\004HUDI\020\022\022\013\n\007JUPYTER\020\001\022\n\n\006PRESTO\020\006\022\t\n\005" - + "TRINO\020\021\022\n\n\006RANGER\020\014\022\010\n\004SOLR\020\n\022\014\n\010ZEPPELI" - + "N\020\004\022\r\n\tZOOKEEPER\020\010*J\n\rFailureAction\022\036\n\032F" - + "AILURE_ACTION_UNSPECIFIED\020\000\022\r\n\tNO_ACTION" - + "\020\001\022\n\n\006DELETE\020\002B\254\002\n\034com.google.cloud.data" - + "proc.v1B\013SharedProtoP\001Z;cloud.google.com" - + "/go/dataproc/v2/apiv1/dataprocpb;datapro" - + "cpb\352A^\n container.googleapis.com/Cluster" - + "\022:projects/{project}/locations/{location" - + "}/clusters/{cluster}\352A^\n metastore.googl" - + "eapis.com/Service\022:projects/{project}/lo" - + "cations/{location}/services/{service}b\006p" - + "roto3" + + "reConfigB\003\340A\001B\010\n\006config\"\303\002\n\030KubernetesSo" + + "ftwareConfig\022c\n\021component_version\030\001 \003(\0132" + + "H.google.cloud.dataproc.v1.KubernetesSof" + + "twareConfig.ComponentVersionEntry\022V\n\npro" + + "perties\030\002 \003(\0132B.google.cloud.dataproc.v1" + + ".KubernetesSoftwareConfig.PropertiesEntr" + + "y\0327\n\025ComponentVersionEntry\022\013\n\003key\030\001 \001(\t\022" + + "\r\n\005value\030\002 \001(\t:\0028\001\0321\n\017PropertiesEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\236\002\n\021GkeNod" + + "ePoolTarget\022\026\n\tnode_pool\030\001 \001(\tB\003\340A\002\022D\n\005r" + + "oles\030\002 \003(\01620.google.cloud.dataproc.v1.Gk" + + "eNodePoolTarget.RoleB\003\340A\002\022J\n\020node_pool_c" + + "onfig\030\003 \001(\0132+.google.cloud.dataproc.v1.G" + + "keNodePoolConfigB\003\340A\004\"_\n\004Role\022\024\n\020ROLE_UN" + + "SPECIFIED\020\000\022\013\n\007DEFAULT\020\001\022\016\n\nCONTROLLER\020\002" + + "\022\020\n\014SPARK_DRIVER\020\003\022\022\n\016SPARK_EXECUTOR\020\004\"\274" + + "\005\n\021GkeNodePoolConfig\022N\n\006config\030\002 \001(\01329.g" + + "oogle.cloud.dataproc.v1.GkeNodePoolConfi" + + "g.GkeNodeConfigB\003\340A\001\022\026\n\tlocations\030\r \003(\tB" + + "\003\340A\001\022b\n\013autoscaling\030\004 \001(\0132H.google.cloud" + + ".dataproc.v1.GkeNodePoolConfig.GkeNodePo" + + "olAutoscalingConfigB\003\340A\001\032\231\002\n\rGkeNodeConf" + + "ig\022\031\n\014machine_type\030\001 \001(\tB\003\340A\001\022\034\n\017local_s" + + "sd_count\030\007 \001(\005B\003\340A\001\022\030\n\013preemptible\030\n \001(\010" + + "B\003\340A\001\022c\n\014accelerators\030\013 \003(\0132H.google.clo" + + "ud.dataproc.v1.GkeNodePoolConfig.GkeNode" + + "PoolAcceleratorConfigB\003\340A\001\022\035\n\020min_cpu_pl" + + "atform\030\r \001(\tB\003\340A\001\022\036\n\021boot_disk_kms_key\030\027" + + " \001(\tB\003\340A\001\022\021\n\004spot\030 \001(\010B\003\340A\001\032o\n\034GkeNodeP" + + "oolAcceleratorConfig\022\031\n\021accelerator_coun" + + "t\030\001 \001(\003\022\030\n\020accelerator_type\030\002 \001(\t\022\032\n\022gpu" + + "_partition_size\030\003 \001(\t\032N\n\034GkeNodePoolAuto" + + "scalingConfig\022\026\n\016min_node_count\030\002 \001(\005\022\026\n" + + "\016max_node_count\030\003 \001(\005\"\267\001\n\020AutotuningConf" + + "ig\022K\n\tscenarios\030\002 \003(\01623.google.cloud.dat" + + "aproc.v1.AutotuningConfig.ScenarioB\003\340A\001\"" + + "V\n\010Scenario\022\030\n\024SCENARIO_UNSPECIFIED\020\000\022\013\n" + + "\007SCALING\020\002\022\027\n\023BROADCAST_HASH_JOIN\020\003\022\n\n\006M" + + "EMORY\020\004\"g\n\020RepositoryConfig\022S\n\026pypi_repo" + + "sitory_config\030\001 \001(\0132..google.cloud.datap" + + "roc.v1.PyPiRepositoryConfigB\003\340A\001\"4\n\024PyPi" + + "RepositoryConfig\022\034\n\017pypi_repository\030\001 \001(" + + "\tB\003\340A\001*\324\001\n\tComponent\022\031\n\025COMPONENT_UNSPEC" + + "IFIED\020\000\022\014\n\010ANACONDA\020\005\022\n\n\006DOCKER\020\r\022\t\n\005DRU" + + "ID\020\t\022\t\n\005FLINK\020\016\022\t\n\005HBASE\020\013\022\020\n\014HIVE_WEBHC" + + "AT\020\003\022\010\n\004HUDI\020\022\022\013\n\007JUPYTER\020\001\022\n\n\006PRESTO\020\006\022" + + "\t\n\005TRINO\020\021\022\n\n\006RANGER\020\014\022\010\n\004SOLR\020\n\022\014\n\010ZEPP" + + "ELIN\020\004\022\r\n\tZOOKEEPER\020\010*J\n\rFailureAction\022\036" + + "\n\032FAILURE_ACTION_UNSPECIFIED\020\000\022\r\n\tNO_ACT" + + "ION\020\001\022\n\n\006DELETE\020\002B\254\002\n\034com.google.cloud.d" + + "ataproc.v1B\013SharedProtoP\001Z;cloud.google." + + "com/go/dataproc/v2/apiv1/dataprocpb;data" + + "procpb\352A^\n container.googleapis.com/Clus" + + "ter\022:projects/{project}/locations/{locat" + + "ion}/clusters/{cluster}\352A^\n metastore.go" + + "ogleapis.com/Service\022:projects/{project}" + + "/locations/{location}/services/{service}" + + "b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -253,7 +264,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_RuntimeConfig_descriptor, new java.lang.String[] { - "Version", "ContainerImage", "Properties", "RepositoryConfig", + "Version", + "ContainerImage", + "Properties", + "RepositoryConfig", + "AutotuningConfig", + "Cohort", }); internal_static_google_cloud_dataproc_v1_RuntimeConfig_PropertiesEntry_descriptor = internal_static_google_cloud_dataproc_v1_RuntimeConfig_descriptor.getNestedTypes().get(0); @@ -440,8 +456,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "MinNodeCount", "MaxNodeCount", }); - internal_static_google_cloud_dataproc_v1_RepositoryConfig_descriptor = + internal_static_google_cloud_dataproc_v1_AutotuningConfig_descriptor = getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_dataproc_v1_AutotuningConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_AutotuningConfig_descriptor, + new java.lang.String[] { + "Scenarios", + }); + internal_static_google_cloud_dataproc_v1_RepositoryConfig_descriptor = + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_dataproc_v1_RepositoryConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_RepositoryConfig_descriptor, @@ -449,7 +473,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PypiRepositoryConfig", }); internal_static_google_cloud_dataproc_v1_PyPiRepositoryConfig_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_dataproc_v1_PyPiRepositoryConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_PyPiRepositoryConfig_descriptor, diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/shared.proto b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/shared.proto index 06596ab1c448..01b9d6482bfe 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/shared.proto +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/shared.proto @@ -50,6 +50,14 @@ message RuntimeConfig { // Optional. Dependency repository configuration. RepositoryConfig repository_config = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Autotuning configuration of the workload. + AutotuningConfig autotuning_config = 6 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Cohort identifier. Identifies families of the workloads having + // the same shape, e.g. daily ETL jobs. + string cohort = 7 [(google.api.field_behavior) = OPTIONAL]; } // Environment configuration for a workload. @@ -464,6 +472,28 @@ message GkeNodePoolConfig { [(google.api.field_behavior) = OPTIONAL]; } +// Autotuning configuration of the workload. +message AutotuningConfig { + // Scenario represents a specific goal that autotuning will attempt to achieve + // by modifying workloads. + enum Scenario { + // Default value. + SCENARIO_UNSPECIFIED = 0; + + // Scaling recommendations such as initialExecutors. + SCALING = 2; + + // Adding hints for potential relation broadcasts. + BROADCAST_HASH_JOIN = 3; + + // Memory management for workloads. + MEMORY = 4; + } + + // Optional. Scenarios for which tunings are applied. + repeated Scenario scenarios = 2 [(google.api.field_behavior) = OPTIONAL]; +} + // Configuration for dependency repositories message RepositoryConfig { // Optional. Configuration for PyPi repository. diff --git a/java-datastream/README.md b/java-datastream/README.md index c9b3e20d2d96..fbea4a13f9f9 100644 --- a/java-datastream/README.md +++ b/java-datastream/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-datastream.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datastream/1.43.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datastream/1.44.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-debugger-client/README.md b/java-debugger-client/README.md index d9e999c2f134..38b67fb94f58 100644 --- a/java-debugger-client/README.md +++ b/java-debugger-client/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-debugger-client.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-debugger-client/1.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-debugger-client/1.45.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-deploy/README.md b/java-deploy/README.md index 8ba9a862eecd..71bebcda008c 100644 --- a/java-deploy/README.md +++ b/java-deploy/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-deploy.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-deploy/1.42.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-deploy/1.43.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-developerconnect/README.md b/java-developerconnect/README.md index d29a530c0831..97a988547a06 100644 --- a/java-developerconnect/README.md +++ b/java-developerconnect/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-developerconnect.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-developerconnect/0.1.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-developerconnect/0.2.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dialogflow-cx/README.md b/java-dialogflow-cx/README.md index 2dd9c43f7778..794e8b180cec 100644 --- a/java-dialogflow-cx/README.md +++ b/java-dialogflow-cx/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import diff --git a/java-dialogflow/README.md b/java-dialogflow/README.md index 8aa6d65df786..2a6c3ac5fef8 100644 --- a/java-dialogflow/README.md +++ b/java-dialogflow/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dialogflow.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow/4.50.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow/4.51.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-discoveryengine/README.md b/java-discoveryengine/README.md index af0bb108965b..af8381a7e19e 100644 --- a/java-discoveryengine/README.md +++ b/java-discoveryengine/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-discoveryengine.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-discoveryengine/0.40.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-discoveryengine/0.41.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-distributedcloudedge/README.md b/java-distributedcloudedge/README.md index ca169d24dd10..9f0afc953486 100644 --- a/java-distributedcloudedge/README.md +++ b/java-distributedcloudedge/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-distributedcloudedge.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-distributedcloudedge/0.41.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-distributedcloudedge/0.42.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dlp/README.md b/java-dlp/README.md index 6b6ffadf7f32..39eacf653924 100644 --- a/java-dlp/README.md +++ b/java-dlp/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dlp.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dlp/3.48.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dlp/3.49.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dms/README.md b/java-dms/README.md index 8fae8dd1b1b4..04b0dbed88a6 100644 --- a/java-dms/README.md +++ b/java-dms/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dms.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dms/2.43.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dms/2.44.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-document-ai/README.md b/java-document-ai/README.md index 82b0bc43d99d..faa32821ace4 100644 --- a/java-document-ai/README.md +++ b/java-document-ai/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-document-ai.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-document-ai/2.48.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-document-ai/2.49.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceClient.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceClient.java index 276b69e98213..887b177e44ef 100644 --- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceClient.java +++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceClient.java @@ -334,7 +334,7 @@ * * *

        CreateProcessor - *

        Creates a processor from the [ProcessorType][google.cloud.documentai.v1.ProcessorType] provided. The processor will be at `ENABLED` state by default after its creation. + *

        Creates a processor from the [ProcessorType][google.cloud.documentai.v1.ProcessorType] provided. The processor will be at `ENABLED` state by default after its creation. Note that this method requires the `documentai.processors.create` permission on the project, which is highly privileged. A user or service account with this permission can create new processors that can interact with any gcs bucket in your project. * *

        Request object method variants only take one parameter, a request object, which must be constructed before the call.

        *
          @@ -2676,7 +2676,10 @@ public final OperationFuture deleteProces // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a processor from the [ProcessorType][google.cloud.documentai.v1.ProcessorType] - * provided. The processor will be at `ENABLED` state by default after its creation. + * provided. The processor will be at `ENABLED` state by default after its creation. Note that + * this method requires the `documentai.processors.create` permission on the project, which is + * highly privileged. A user or service account with this permission can create new processors + * that can interact with any gcs bucket in your project. * *

          Sample code: * @@ -2715,7 +2718,10 @@ public final Processor createProcessor(LocationName parent, Processor processor) // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a processor from the [ProcessorType][google.cloud.documentai.v1.ProcessorType] - * provided. The processor will be at `ENABLED` state by default after its creation. + * provided. The processor will be at `ENABLED` state by default after its creation. Note that + * this method requires the `documentai.processors.create` permission on the project, which is + * highly privileged. A user or service account with this permission can create new processors + * that can interact with any gcs bucket in your project. * *

          Sample code: * @@ -2751,7 +2757,10 @@ public final Processor createProcessor(String parent, Processor processor) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a processor from the [ProcessorType][google.cloud.documentai.v1.ProcessorType] - * provided. The processor will be at `ENABLED` state by default after its creation. + * provided. The processor will be at `ENABLED` state by default after its creation. Note that + * this method requires the `documentai.processors.create` permission on the project, which is + * highly privileged. A user or service account with this permission can create new processors + * that can interact with any gcs bucket in your project. * *

          Sample code: * @@ -2782,7 +2791,10 @@ public final Processor createProcessor(CreateProcessorRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a processor from the [ProcessorType][google.cloud.documentai.v1.ProcessorType] - * provided. The processor will be at `ENABLED` state by default after its creation. + * provided. The processor will be at `ENABLED` state by default after its creation. Note that + * this method requires the `documentai.processors.create` permission on the project, which is + * highly privileged. A user or service account with this permission can create new processors + * that can interact with any gcs bucket in your project. * *

          Sample code: * diff --git a/java-document-ai/grpc-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceGrpc.java b/java-document-ai/grpc-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceGrpc.java index d33ac121bab0..437c1ea94dbd 100644 --- a/java-document-ai/grpc-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceGrpc.java +++ b/java-document-ai/grpc-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DocumentProcessorServiceGrpc.java @@ -1373,7 +1373,11 @@ default void undeployProcessorVersion( *

                * Creates a processor from the
                * [ProcessorType][google.cloud.documentai.v1.ProcessorType] provided. The
          -     * processor will be at `ENABLED` state by default after its creation.
          +     * processor will be at `ENABLED` state by default after its creation. Note
          +     * that this method requires the `documentai.processors.create` permission on
          +     * the project, which is highly privileged. A user or service account with
          +     * this permission can create new processors that can interact with any gcs
          +     * bucket in your project.
                * 
          */ default void createProcessor( @@ -1772,7 +1776,11 @@ public void undeployProcessorVersion( *
                * Creates a processor from the
                * [ProcessorType][google.cloud.documentai.v1.ProcessorType] provided. The
          -     * processor will be at `ENABLED` state by default after its creation.
          +     * processor will be at `ENABLED` state by default after its creation. Note
          +     * that this method requires the `documentai.processors.create` permission on
          +     * the project, which is highly privileged. A user or service account with
          +     * this permission can create new processors that can interact with any gcs
          +     * bucket in your project.
                * 
          */ public void createProcessor( @@ -2125,7 +2133,11 @@ public com.google.longrunning.Operation undeployProcessorVersion( *
                * Creates a processor from the
                * [ProcessorType][google.cloud.documentai.v1.ProcessorType] provided. The
          -     * processor will be at `ENABLED` state by default after its creation.
          +     * processor will be at `ENABLED` state by default after its creation. Note
          +     * that this method requires the `documentai.processors.create` permission on
          +     * the project, which is highly privileged. A user or service account with
          +     * this permission can create new processors that can interact with any gcs
          +     * bucket in your project.
                * 
          */ public com.google.cloud.documentai.v1.Processor createProcessor( @@ -2462,7 +2474,11 @@ protected DocumentProcessorServiceFutureStub build( *
                * Creates a processor from the
                * [ProcessorType][google.cloud.documentai.v1.ProcessorType] provided. The
          -     * processor will be at `ENABLED` state by default after its creation.
          +     * processor will be at `ENABLED` state by default after its creation. Note
          +     * that this method requires the `documentai.processors.create` permission on
          +     * the project, which is highly privileged. A user or service account with
          +     * this permission can create new processors that can interact with any gcs
          +     * bucket in your project.
                * 
          */ public com.google.common.util.concurrent.ListenableFuture< diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/document_processor_service.proto b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/document_processor_service.proto index a5571cc1879c..793a560086d9 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/document_processor_service.proto +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/document_processor_service.proto @@ -212,7 +212,11 @@ service DocumentProcessorService { // Creates a processor from the // [ProcessorType][google.cloud.documentai.v1.ProcessorType] provided. The - // processor will be at `ENABLED` state by default after its creation. + // processor will be at `ENABLED` state by default after its creation. Note + // that this method requires the `documentai.processors.create` permission on + // the project, which is highly privileged. A user or service account with + // this permission can create new processors that can interact with any gcs + // bucket in your project. rpc CreateProcessor(CreateProcessorRequest) returns (Processor) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*}/processors" diff --git a/java-domains/README.md b/java-domains/README.md index fb6ca7244142..e658a37ce0d7 100644 --- a/java-domains/README.md +++ b/java-domains/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-domains.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-domains/1.41.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-domains/1.42.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-edgenetwork/README.md b/java-edgenetwork/README.md index 72b9d4ee9dd5..3b812fc1462c 100644 --- a/java-edgenetwork/README.md +++ b/java-edgenetwork/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-edgenetwork.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-edgenetwork/0.12.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-edgenetwork/0.13.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-enterpriseknowledgegraph/README.md b/java-enterpriseknowledgegraph/README.md index b3a20e0ddb0d..4335067232c5 100644 --- a/java-enterpriseknowledgegraph/README.md +++ b/java-enterpriseknowledgegraph/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-enterpriseknowledgegraph.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-enterpriseknowledgegraph/0.40.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-enterpriseknowledgegraph/0.41.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-errorreporting/README.md b/java-errorreporting/README.md index 069de9d0338f..2a15852e0df3 100644 --- a/java-errorreporting/README.md +++ b/java-errorreporting/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-errorreporting.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-errorreporting/0.165.0-beta +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-errorreporting/0.166.0-beta [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-essential-contacts/README.md b/java-essential-contacts/README.md index 421a2b9e932e..c64b2c75f140 100644 --- a/java-essential-contacts/README.md +++ b/java-essential-contacts/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-essential-contacts.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-essential-contacts/2.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-essential-contacts/2.45.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-eventarc-publishing/README.md b/java-eventarc-publishing/README.md index bf9d317ea31e..21b33d88b96a 100644 --- a/java-eventarc-publishing/README.md +++ b/java-eventarc-publishing/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-eventarc-publishing.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc-publishing/0.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc-publishing/0.45.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-eventarc/README.md b/java-eventarc/README.md index fcbc602d2c7f..38aa1b670d2f 100644 --- a/java-eventarc/README.md +++ b/java-eventarc/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-eventarc.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc/1.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc/1.45.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-filestore/README.md b/java-filestore/README.md index 177ef2ad316a..1bd96ea1f7af 100644 --- a/java-filestore/README.md +++ b/java-filestore/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-filestore.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-filestore/1.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-filestore/1.46.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-functions/README.md b/java-functions/README.md index c98270bb3bb3..5f7833f271af 100644 --- a/java-functions/README.md +++ b/java-functions/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-functions.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-functions/2.46.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-functions/2.47.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-gke-backup/README.md b/java-gke-backup/README.md index 48c712720203..0759a6415c1d 100644 --- a/java-gke-backup/README.md +++ b/java-gke-backup/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gke-backup.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-backup/0.43.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-backup/0.44.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-gke-connect-gateway/README.md b/java-gke-connect-gateway/README.md index a38019549ba9..a2bc6aaa5429 100644 --- a/java-gke-connect-gateway/README.md +++ b/java-gke-connect-gateway/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gke-connect-gateway.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-connect-gateway/0.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-connect-gateway/0.46.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-gke-multi-cloud/README.md b/java-gke-multi-cloud/README.md index 22b1e39db575..e2defd1f15c0 100644 --- a/java-gke-multi-cloud/README.md +++ b/java-gke-multi-cloud/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gke-multi-cloud.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-multi-cloud/0.43.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-multi-cloud/0.44.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-gkehub/README.md b/java-gkehub/README.md index f14b730f7b66..a4b0b891bab4 100644 --- a/java-gkehub/README.md +++ b/java-gkehub/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gkehub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gkehub/1.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gkehub/1.45.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-gkehub/google-cloud-gkehub/src/main/resources/META-INF/native-image/com.google.cloud.gkehub.v1/reflect-config.json b/java-gkehub/google-cloud-gkehub/src/main/resources/META-INF/native-image/com.google.cloud.gkehub.v1/reflect-config.json index 7cfc44d32236..2c63be87022d 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/resources/META-INF/native-image/com.google.cloud.gkehub.v1/reflect-config.json +++ b/java-gkehub/google-cloud-gkehub/src/main/resources/META-INF/native-image/com.google.cloud.gkehub.v1/reflect-config.json @@ -413,6 +413,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState", "queryAllDeclaredConstructors": true, @@ -431,6 +449,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState$CRDState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion", "queryAllDeclaredConstructors": true, @@ -638,6 +674,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.gkehub.configmanagement.v1.MembershipSpec$Management", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.gkehub.configmanagement.v1.MembershipState", "queryAllDeclaredConstructors": true, @@ -656,6 +701,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.gkehub.configmanagement.v1.OciConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkehub.configmanagement.v1.OciConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.gkehub.configmanagement.v1.OperatorState", "queryAllDeclaredConstructors": true, diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigManagementProto.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigManagementProto.java index 57b079fe5213..516dcc5f77d0 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigManagementProto.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigManagementProto.java @@ -44,6 +44,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_gkehub_configmanagement_v1_GitConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_gkehub_configmanagement_v1_GitConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1_OciConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1_OciConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_gkehub_configmanagement_v1_PolicyController_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -76,6 +80,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncState_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncError_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncError_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncVersion_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -136,7 +144,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ub.configmanagement.v1.PolicyControllerS" + "tate\022e\n\032hierarchy_controller_state\030\007 \001(\013" + "2A.google.cloud.gkehub.configmanagement." - + "v1.HierarchyControllerState\"\243\002\n\016Membersh" + + "v1.HierarchyControllerState\"\347\003\n\016Membersh" + "ipSpec\022H\n\013config_sync\030\001 \001(\01323.google.clo" + "ud.gkehub.configmanagement.v1.ConfigSync" + "\022T\n\021policy_controller\030\002 \001(\01329.google.clo" @@ -144,105 +152,136 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "roller\022`\n\024hierarchy_controller\030\004 \001(\0132B.g" + "oogle.cloud.gkehub.configmanagement.v1.H" + "ierarchyControllerConfig\022\017\n\007version\030\n \001(" - + "\t\"d\n\nConfigSync\022?\n\003git\030\007 \001(\01322.google.cl" - + "oud.gkehub.configmanagement.v1.GitConfig" - + "\022\025\n\rsource_format\030\010 \001(\t\"\276\001\n\tGitConfig\022\021\n" - + "\tsync_repo\030\001 \001(\t\022\023\n\013sync_branch\030\002 \001(\t\022\022\n" - + "\npolicy_dir\030\003 \001(\t\022\026\n\016sync_wait_secs\030\004 \001(" - + "\003\022\020\n\010sync_rev\030\005 \001(\t\022\023\n\013secret_type\030\006 \001(\t" - + "\022\023\n\013https_proxy\030\007 \001(\t\022!\n\031gcp_service_acc" - + "ount_email\030\010 \001(\t\"\211\002\n\020PolicyController\022\017\n" - + "\007enabled\030\001 \001(\010\022\'\n\032template_library_insta" - + "lled\030\002 \001(\010H\000\210\001\001\022#\n\026audit_interval_second" - + "s\030\003 \001(\003H\001\210\001\001\022\035\n\025exemptable_namespaces\030\004 " - + "\003(\t\022!\n\031referential_rules_enabled\030\005 \001(\010\022\032" - + "\n\022log_denies_enabled\030\006 \001(\010B\035\n\033_template_" - + "library_installedB\031\n\027_audit_interval_sec" - + "onds\"x\n\031HierarchyControllerConfig\022\017\n\007ena" - + "bled\030\001 \001(\010\022\036\n\026enable_pod_tree_labels\030\002 \001" - + "(\010\022*\n\"enable_hierarchical_resource_quota" - + "\030\003 \001(\010\"\270\001\n\"HierarchyControllerDeployment" - + "State\022E\n\003hnc\030\001 \001(\01628.google.cloud.gkehub" - + ".configmanagement.v1.DeploymentState\022K\n\t" - + "extension\030\002 \001(\01628.google.cloud.gkehub.co" - + "nfigmanagement.v1.DeploymentState\"<\n\032Hie" - + "rarchyControllerVersion\022\013\n\003hnc\030\001 \001(\t\022\021\n\t" - + "extension\030\002 \001(\t\"\314\001\n\030HierarchyControllerS" - + "tate\022T\n\007version\030\001 \001(\0132C.google.cloud.gke" - + "hub.configmanagement.v1.HierarchyControl" - + "lerVersion\022Z\n\005state\030\002 \001(\0132K.google.cloud" - + ".gkehub.configmanagement.v1.HierarchyCon" - + "trollerDeploymentState\"\273\001\n\rOperatorState" - + "\022\017\n\007version\030\001 \001(\t\022R\n\020deployment_state\030\002 " - + "\001(\01628.google.cloud.gkehub.configmanageme" - + "nt.v1.DeploymentState\022E\n\006errors\030\003 \003(\01325." + + "\t\022\017\n\007cluster\030\013 \001(\t\022V\n\nmanagement\030\014 \001(\0162B" + + ".google.cloud.gkehub.configmanagement.v1" + + ".MembershipSpec.Management\"Y\n\nManagement" + + "\022\032\n\026MANAGEMENT_UNSPECIFIED\020\000\022\030\n\024MANAGEME" + + "NT_AUTOMATIC\020\001\022\025\n\021MANAGEMENT_MANUAL\020\002\"\211\002" + + "\n\nConfigSync\022?\n\003git\030\007 \001(\01322.google.cloud" + + ".gkehub.configmanagement.v1.GitConfig\022\025\n" + + "\rsource_format\030\010 \001(\t\022\024\n\007enabled\030\n \001(\010H\000\210" + + "\001\001\022\025\n\rprevent_drift\030\013 \001(\010\022?\n\003oci\030\014 \001(\01322" + + ".google.cloud.gkehub.configmanagement.v1" + + ".OciConfig\022)\n!metrics_gcp_service_accoun" + + "t_email\030\017 \001(\tB\n\n\010_enabled\"\276\001\n\tGitConfig\022" + + "\021\n\tsync_repo\030\001 \001(\t\022\023\n\013sync_branch\030\002 \001(\t\022" + + "\022\n\npolicy_dir\030\003 \001(\t\022\026\n\016sync_wait_secs\030\004 " + + "\001(\003\022\020\n\010sync_rev\030\005 \001(\t\022\023\n\013secret_type\030\006 \001" + + "(\t\022\023\n\013https_proxy\030\007 \001(\t\022!\n\031gcp_service_a" + + "ccount_email\030\010 \001(\t\"\202\001\n\tOciConfig\022\021\n\tsync" + + "_repo\030\001 \001(\t\022\022\n\npolicy_dir\030\002 \001(\t\022\026\n\016sync_" + + "wait_secs\030\003 \001(\003\022\023\n\013secret_type\030\004 \001(\t\022!\n\031" + + "gcp_service_account_email\030\005 \001(\t\"\211\002\n\020Poli" + + "cyController\022\017\n\007enabled\030\001 \001(\010\022\'\n\032templat" + + "e_library_installed\030\002 \001(\010H\000\210\001\001\022#\n\026audit_" + + "interval_seconds\030\003 \001(\003H\001\210\001\001\022\035\n\025exemptabl" + + "e_namespaces\030\004 \003(\t\022!\n\031referential_rules_" + + "enabled\030\005 \001(\010\022\032\n\022log_denies_enabled\030\006 \001(" + + "\010B\035\n\033_template_library_installedB\031\n\027_aud" + + "it_interval_seconds\"x\n\031HierarchyControll" + + "erConfig\022\017\n\007enabled\030\001 \001(\010\022\036\n\026enable_pod_" + + "tree_labels\030\002 \001(\010\022*\n\"enable_hierarchical" + + "_resource_quota\030\003 \001(\010\"\270\001\n\"HierarchyContr" + + "ollerDeploymentState\022E\n\003hnc\030\001 \001(\01628.goog" + + "le.cloud.gkehub.configmanagement.v1.Depl" + + "oymentState\022K\n\textension\030\002 \001(\01628.google." + + "cloud.gkehub.configmanagement.v1.Deploym" + + "entState\"<\n\032HierarchyControllerVersion\022\013" + + "\n\003hnc\030\001 \001(\t\022\021\n\textension\030\002 \001(\t\"\314\001\n\030Hiera" + + "rchyControllerState\022T\n\007version\030\001 \001(\0132C.g" + + "oogle.cloud.gkehub.configmanagement.v1.H" + + "ierarchyControllerVersion\022Z\n\005state\030\002 \001(\013" + + "2K.google.cloud.gkehub.configmanagement." + + "v1.HierarchyControllerDeploymentState\"\273\001" + + "\n\rOperatorState\022\017\n\007version\030\001 \001(\t\022R\n\020depl" + + "oyment_state\030\002 \001(\01628.google.cloud.gkehub" + + ".configmanagement.v1.DeploymentState\022E\n\006" + + "errors\030\003 \003(\01325.google.cloud.gkehub.confi" + + "gmanagement.v1.InstallError\"%\n\014InstallEr" + + "ror\022\025\n\rerror_message\030\001 \001(\t\"\304\006\n\017ConfigSyn" + + "cState\022K\n\007version\030\001 \001(\0132:.google.cloud.g" + + "kehub.configmanagement.v1.ConfigSyncVers" + + "ion\022\\\n\020deployment_state\030\002 \001(\0132B.google.c" + + "loud.gkehub.configmanagement.v1.ConfigSy" + + "ncDeploymentState\022F\n\nsync_state\030\003 \001(\01322." + + "google.cloud.gkehub.configmanagement.v1." + + "SyncState\022H\n\006errors\030\004 \003(\01328.google.cloud" + + ".gkehub.configmanagement.v1.ConfigSyncEr" + + "ror\022W\n\014rootsync_crd\030\005 \001(\0162A.google.cloud" + + ".gkehub.configmanagement.v1.ConfigSyncSt" + + "ate.CRDState\022W\n\014reposync_crd\030\006 \001(\0162A.goo" + + "gle.cloud.gkehub.configmanagement.v1.Con" + + "figSyncState.CRDState\022M\n\005state\030\007 \001(\0162>.g" + + "oogle.cloud.gkehub.configmanagement.v1.C" + + "onfigSyncState.State\"h\n\010CRDState\022\031\n\025CRD_" + + "STATE_UNSPECIFIED\020\000\022\021\n\rNOT_INSTALLED\020\001\022\r" + + "\n\tINSTALLED\020\002\022\017\n\013TERMINATING\020\003\022\016\n\nINSTAL" + + "LING\020\004\"\210\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022" + + "\035\n\031CONFIG_SYNC_NOT_INSTALLED\020\001\022\031\n\025CONFIG" + + "_SYNC_INSTALLED\020\002\022\025\n\021CONFIG_SYNC_ERROR\020\003" + + "\022\027\n\023CONFIG_SYNC_PENDING\020\004\"(\n\017ConfigSyncE" + + "rror\022\025\n\rerror_message\030\001 \001(\t\"\250\001\n\021ConfigSy" + + "ncVersion\022\020\n\010importer\030\001 \001(\t\022\016\n\006syncer\030\002 " + + "\001(\t\022\020\n\010git_sync\030\003 \001(\t\022\017\n\007monitor\030\004 \001(\t\022\032" + + "\n\022reconciler_manager\030\005 \001(\t\022\027\n\017root_recon" + + "ciler\030\006 \001(\t\022\031\n\021admission_webhook\030\007 \001(\t\"\306" + + "\004\n\031ConfigSyncDeploymentState\022J\n\010importer" + + "\030\001 \001(\01628.google.cloud.gkehub.configmanag" + + "ement.v1.DeploymentState\022H\n\006syncer\030\002 \001(\016" + + "28.google.cloud.gkehub.configmanagement." + + "v1.DeploymentState\022J\n\010git_sync\030\003 \001(\01628.g" + + "oogle.cloud.gkehub.configmanagement.v1.D" + + "eploymentState\022I\n\007monitor\030\004 \001(\01628.google" + + ".cloud.gkehub.configmanagement.v1.Deploy" + + "mentState\022T\n\022reconciler_manager\030\005 \001(\01628." + "google.cloud.gkehub.configmanagement.v1." - + "InstallError\"%\n\014InstallError\022\025\n\rerror_me" - + "ssage\030\001 \001(\t\"\204\002\n\017ConfigSyncState\022K\n\007versi" - + "on\030\001 \001(\0132:.google.cloud.gkehub.configman" - + "agement.v1.ConfigSyncVersion\022\\\n\020deployme" - + "nt_state\030\002 \001(\0132B.google.cloud.gkehub.con" - + "figmanagement.v1.ConfigSyncDeploymentSta" - + "te\022F\n\nsync_state\030\003 \001(\01322.google.cloud.gk" - + "ehub.configmanagement.v1.SyncState\"\215\001\n\021C" - + "onfigSyncVersion\022\020\n\010importer\030\001 \001(\t\022\016\n\006sy" - + "ncer\030\002 \001(\t\022\020\n\010git_sync\030\003 \001(\t\022\017\n\007monitor\030" - + "\004 \001(\t\022\032\n\022reconciler_manager\030\005 \001(\t\022\027\n\017roo" - + "t_reconciler\030\006 \001(\t\"\361\003\n\031ConfigSyncDeploym" - + "entState\022J\n\010importer\030\001 \001(\01628.google.clou" - + "d.gkehub.configmanagement.v1.DeploymentS" - + "tate\022H\n\006syncer\030\002 \001(\01628.google.cloud.gkeh" - + "ub.configmanagement.v1.DeploymentState\022J" - + "\n\010git_sync\030\003 \001(\01628.google.cloud.gkehub.c" - + "onfigmanagement.v1.DeploymentState\022I\n\007mo" - + "nitor\030\004 \001(\01628.google.cloud.gkehub.config" - + "management.v1.DeploymentState\022T\n\022reconci" - + "ler_manager\030\005 \001(\01628.google.cloud.gkehub." - + "configmanagement.v1.DeploymentState\022Q\n\017r" - + "oot_reconciler\030\006 \001(\01628.google.cloud.gkeh" - + "ub.configmanagement.v1.DeploymentState\"\273" - + "\003\n\tSyncState\022\024\n\014source_token\030\001 \001(\t\022\024\n\014im" - + "port_token\030\002 \001(\t\022\022\n\nsync_token\030\003 \001(\t\022\025\n\t" - + "last_sync\030\004 \001(\tB\002\030\001\0222\n\016last_sync_time\030\007 " - + "\001(\0132\032.google.protobuf.Timestamp\022I\n\004code\030" - + "\005 \001(\0162;.google.cloud.gkehub.configmanage" - + "ment.v1.SyncState.SyncCode\022B\n\006errors\030\006 \003" - + "(\01322.google.cloud.gkehub.configmanagemen" - + "t.v1.SyncError\"\223\001\n\010SyncCode\022\031\n\025SYNC_CODE" - + "_UNSPECIFIED\020\000\022\n\n\006SYNCED\020\001\022\013\n\007PENDING\020\002\022" - + "\t\n\005ERROR\020\003\022\022\n\016NOT_CONFIGURED\020\004\022\021\n\rNOT_IN" - + "STALLED\020\005\022\020\n\014UNAUTHORIZED\020\006\022\017\n\013UNREACHAB" - + "LE\020\007\"\201\001\n\tSyncError\022\014\n\004code\030\001 \001(\t\022\025\n\rerro" - + "r_message\030\002 \001(\t\022O\n\017error_resources\030\003 \003(\013" - + "26.google.cloud.gkehub.configmanagement." - + "v1.ErrorResource\"\250\001\n\rErrorResource\022\023\n\013so" - + "urce_path\030\001 \001(\t\022\025\n\rresource_name\030\002 \001(\t\022\032" - + "\n\022resource_namespace\030\003 \001(\t\022O\n\014resource_g" - + "vk\030\004 \001(\01329.google.cloud.gkehub.configman" - + "agement.v1.GroupVersionKind\"@\n\020GroupVers" - + "ionKind\022\r\n\005group\030\001 \001(\t\022\017\n\007version\030\002 \001(\t\022" - + "\014\n\004kind\030\003 \001(\t\"\310\001\n\025PolicyControllerState\022" - + "Q\n\007version\030\001 \001(\0132@.google.cloud.gkehub.c" - + "onfigmanagement.v1.PolicyControllerVersi" - + "on\022\\\n\020deployment_state\030\002 \001(\0132B.google.cl" - + "oud.gkehub.configmanagement.v1.Gatekeepe" - + "rDeploymentState\"*\n\027PolicyControllerVers" - + "ion\022\017\n\007version\030\001 \001(\t\"\326\001\n\031GatekeeperDeplo" - + "ymentState\022e\n#gatekeeper_controller_mana" - + "ger_state\030\001 \001(\01628.google.cloud.gkehub.co" - + "nfigmanagement.v1.DeploymentState\022R\n\020gat" - + "ekeeper_audit\030\002 \001(\01628.google.cloud.gkehu" - + "b.configmanagement.v1.DeploymentState*`\n" - + "\017DeploymentState\022 \n\034DEPLOYMENT_STATE_UNS" - + "PECIFIED\020\000\022\021\n\rNOT_INSTALLED\020\001\022\r\n\tINSTALL" - + "ED\020\002\022\t\n\005ERROR\020\003B\241\002\n+com.google.cloud.gke" - + "hub.configmanagement.v1B\025ConfigManagemen" - + "tProtoP\001ZWcloud.google.com/go/gkehub/con" - + "figmanagement/apiv1/configmanagementpb;c" - + "onfigmanagementpb\252\002\'Google.Cloud.GkeHub." - + "ConfigManagement.V1\312\002\'Google\\Cloud\\GkeHu" - + "b\\ConfigManagement\\V1\352\002+Google::Cloud::G" - + "keHub::ConfigManagement::V1b\006proto3" + + "DeploymentState\022Q\n\017root_reconciler\030\006 \001(\016" + + "28.google.cloud.gkehub.configmanagement." + + "v1.DeploymentState\022S\n\021admission_webhook\030" + + "\007 \001(\01628.google.cloud.gkehub.configmanage" + + "ment.v1.DeploymentState\"\273\003\n\tSyncState\022\024\n" + + "\014source_token\030\001 \001(\t\022\024\n\014import_token\030\002 \001(" + + "\t\022\022\n\nsync_token\030\003 \001(\t\022\025\n\tlast_sync\030\004 \001(\t" + + "B\002\030\001\0222\n\016last_sync_time\030\007 \001(\0132\032.google.pr" + + "otobuf.Timestamp\022I\n\004code\030\005 \001(\0162;.google." + + "cloud.gkehub.configmanagement.v1.SyncSta" + + "te.SyncCode\022B\n\006errors\030\006 \003(\01322.google.clo" + + "ud.gkehub.configmanagement.v1.SyncError\"" + + "\223\001\n\010SyncCode\022\031\n\025SYNC_CODE_UNSPECIFIED\020\000\022" + + "\n\n\006SYNCED\020\001\022\013\n\007PENDING\020\002\022\t\n\005ERROR\020\003\022\022\n\016N" + + "OT_CONFIGURED\020\004\022\021\n\rNOT_INSTALLED\020\005\022\020\n\014UN" + + "AUTHORIZED\020\006\022\017\n\013UNREACHABLE\020\007\"\201\001\n\tSyncEr" + + "ror\022\014\n\004code\030\001 \001(\t\022\025\n\rerror_message\030\002 \001(\t" + + "\022O\n\017error_resources\030\003 \003(\01326.google.cloud" + + ".gkehub.configmanagement.v1.ErrorResourc" + + "e\"\250\001\n\rErrorResource\022\023\n\013source_path\030\001 \001(\t" + + "\022\025\n\rresource_name\030\002 \001(\t\022\032\n\022resource_name" + + "space\030\003 \001(\t\022O\n\014resource_gvk\030\004 \001(\01329.goog" + + "le.cloud.gkehub.configmanagement.v1.Grou" + + "pVersionKind\"@\n\020GroupVersionKind\022\r\n\005grou" + + "p\030\001 \001(\t\022\017\n\007version\030\002 \001(\t\022\014\n\004kind\030\003 \001(\t\"\310" + + "\001\n\025PolicyControllerState\022Q\n\007version\030\001 \001(" + + "\0132@.google.cloud.gkehub.configmanagement" + + ".v1.PolicyControllerVersion\022\\\n\020deploymen" + + "t_state\030\002 \001(\0132B.google.cloud.gkehub.conf" + + "igmanagement.v1.GatekeeperDeploymentStat" + + "e\"*\n\027PolicyControllerVersion\022\017\n\007version\030" + + "\001 \001(\t\"\326\001\n\031GatekeeperDeploymentState\022e\n#g" + + "atekeeper_controller_manager_state\030\001 \001(\016" + + "28.google.cloud.gkehub.configmanagement." + + "v1.DeploymentState\022R\n\020gatekeeper_audit\030\002" + + " \001(\01628.google.cloud.gkehub.configmanagem" + + "ent.v1.DeploymentState*m\n\017DeploymentStat" + + "e\022 \n\034DEPLOYMENT_STATE_UNSPECIFIED\020\000\022\021\n\rN" + + "OT_INSTALLED\020\001\022\r\n\tINSTALLED\020\002\022\t\n\005ERROR\020\003" + + "\022\013\n\007PENDING\020\004B\241\002\n+com.google.cloud.gkehu" + + "b.configmanagement.v1B\025ConfigManagementP" + + "rotoP\001ZWcloud.google.com/go/gkehub/confi" + + "gmanagement/apiv1/configmanagementpb;con" + + "figmanagementpb\252\002\'Google.Cloud.GkeHub.Co" + + "nfigManagement.V1\312\002\'Google\\Cloud\\GkeHub\\" + + "ConfigManagement\\V1\352\002+Google::Cloud::Gke" + + "Hub::ConfigManagement::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -269,7 +308,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gkehub_configmanagement_v1_MembershipSpec_descriptor, new java.lang.String[] { - "ConfigSync", "PolicyController", "HierarchyController", "Version", + "ConfigSync", + "PolicyController", + "HierarchyController", + "Version", + "Cluster", + "Management", }); internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSync_descriptor = getDescriptor().getMessageTypes().get(2); @@ -277,7 +321,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSync_descriptor, new java.lang.String[] { - "Git", "SourceFormat", + "Git", + "SourceFormat", + "Enabled", + "PreventDrift", + "Oci", + "MetricsGcpServiceAccountEmail", }); internal_static_google_cloud_gkehub_configmanagement_v1_GitConfig_descriptor = getDescriptor().getMessageTypes().get(3); @@ -294,8 +343,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "HttpsProxy", "GcpServiceAccountEmail", }); - internal_static_google_cloud_gkehub_configmanagement_v1_PolicyController_descriptor = + internal_static_google_cloud_gkehub_configmanagement_v1_OciConfig_descriptor = getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_gkehub_configmanagement_v1_OciConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1_OciConfig_descriptor, + new java.lang.String[] { + "SyncRepo", "PolicyDir", "SyncWaitSecs", "SecretType", "GcpServiceAccountEmail", + }); + internal_static_google_cloud_gkehub_configmanagement_v1_PolicyController_descriptor = + getDescriptor().getMessageTypes().get(5); internal_static_google_cloud_gkehub_configmanagement_v1_PolicyController_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gkehub_configmanagement_v1_PolicyController_descriptor, @@ -308,7 +365,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LogDeniesEnabled", }); internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerConfig_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(6); internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerConfig_descriptor, @@ -316,7 +373,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Enabled", "EnablePodTreeLabels", "EnableHierarchicalResourceQuota", }); internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerDeploymentState_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(7); internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerDeploymentState_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerDeploymentState_descriptor, @@ -324,7 +381,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Hnc", "Extension", }); internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerVersion_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(8); internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerVersion_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerVersion_descriptor, @@ -332,7 +389,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Hnc", "Extension", }); internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerState_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(9); internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerState_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerState_descriptor, @@ -340,7 +397,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Version", "State", }); internal_static_google_cloud_gkehub_configmanagement_v1_OperatorState_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(10); internal_static_google_cloud_gkehub_configmanagement_v1_OperatorState_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gkehub_configmanagement_v1_OperatorState_descriptor, @@ -348,7 +405,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Version", "DeploymentState", "Errors", }); internal_static_google_cloud_gkehub_configmanagement_v1_InstallError_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_gkehub_configmanagement_v1_InstallError_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gkehub_configmanagement_v1_InstallError_descriptor, @@ -356,31 +413,57 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ErrorMessage", }); internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncState_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncState_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncState_descriptor, new java.lang.String[] { - "Version", "DeploymentState", "SyncState", + "Version", + "DeploymentState", + "SyncState", + "Errors", + "RootsyncCrd", + "ReposyncCrd", + "State", + }); + internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncError_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncError_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncError_descriptor, + new java.lang.String[] { + "ErrorMessage", }); internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncVersion_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncVersion_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncVersion_descriptor, new java.lang.String[] { - "Importer", "Syncer", "GitSync", "Monitor", "ReconcilerManager", "RootReconciler", + "Importer", + "Syncer", + "GitSync", + "Monitor", + "ReconcilerManager", + "RootReconciler", + "AdmissionWebhook", }); internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncDeploymentState_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncDeploymentState_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncDeploymentState_descriptor, new java.lang.String[] { - "Importer", "Syncer", "GitSync", "Monitor", "ReconcilerManager", "RootReconciler", + "Importer", + "Syncer", + "GitSync", + "Monitor", + "ReconcilerManager", + "RootReconciler", + "AdmissionWebhook", }); internal_static_google_cloud_gkehub_configmanagement_v1_SyncState_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_gkehub_configmanagement_v1_SyncState_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gkehub_configmanagement_v1_SyncState_descriptor, @@ -394,7 +477,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Errors", }); internal_static_google_cloud_gkehub_configmanagement_v1_SyncError_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_gkehub_configmanagement_v1_SyncError_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gkehub_configmanagement_v1_SyncError_descriptor, @@ -402,7 +485,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Code", "ErrorMessage", "ErrorResources", }); internal_static_google_cloud_gkehub_configmanagement_v1_ErrorResource_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_gkehub_configmanagement_v1_ErrorResource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gkehub_configmanagement_v1_ErrorResource_descriptor, @@ -410,7 +493,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SourcePath", "ResourceName", "ResourceNamespace", "ResourceGvk", }); internal_static_google_cloud_gkehub_configmanagement_v1_GroupVersionKind_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_gkehub_configmanagement_v1_GroupVersionKind_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gkehub_configmanagement_v1_GroupVersionKind_descriptor, @@ -418,7 +501,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Group", "Version", "Kind", }); internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerState_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerState_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerState_descriptor, @@ -426,7 +509,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Version", "DeploymentState", }); internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerVersion_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerVersion_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerVersion_descriptor, @@ -434,7 +517,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Version", }); internal_static_google_cloud_gkehub_configmanagement_v1_GatekeeperDeploymentState_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_gkehub_configmanagement_v1_GatekeeperDeploymentState_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gkehub_configmanagement_v1_GatekeeperDeploymentState_descriptor, diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSync.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSync.java index c20644eaab46..fc81bc18994d 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSync.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSync.java @@ -40,6 +40,7 @@ private ConfigSync(com.google.protobuf.GeneratedMessageV3.Builder builder) { private ConfigSync() { sourceFormat_ = ""; + metricsGcpServiceAccountEmail_ = ""; } @java.lang.Override @@ -123,7 +124,7 @@ public com.google.cloud.gkehub.configmanagement.v1.GitConfigOrBuilder getGitOrBu * *
              * Specifies whether the Config Sync Repo is
          -   * in “hierarchical” or “unstructured” mode.
          +   * in "hierarchical" or "unstructured" mode.
              * 
          * * string source_format = 8; @@ -147,7 +148,7 @@ public java.lang.String getSourceFormat() { * *
              * Specifies whether the Config Sync Repo is
          -   * in “hierarchical” or “unstructured” mode.
          +   * in "hierarchical" or "unstructured" mode.
              * 
          * * string source_format = 8; @@ -167,6 +168,182 @@ public com.google.protobuf.ByteString getSourceFormatBytes() { } } + public static final int ENABLED_FIELD_NUMBER = 10; + private boolean enabled_ = false; + /** + * + * + *
          +   * Enables the installation of ConfigSync.
          +   * If set to true, ConfigSync resources will be created and the other
          +   * ConfigSync fields will be applied if exist.
          +   * If set to false, all other ConfigSync fields will be ignored, ConfigSync
          +   * resources will be deleted.
          +   * If omitted, ConfigSync resources will be managed depends on the presence
          +   * of the git or oci field.
          +   * 
          + * + * optional bool enabled = 10; + * + * @return Whether the enabled field is set. + */ + @java.lang.Override + public boolean hasEnabled() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
          +   * Enables the installation of ConfigSync.
          +   * If set to true, ConfigSync resources will be created and the other
          +   * ConfigSync fields will be applied if exist.
          +   * If set to false, all other ConfigSync fields will be ignored, ConfigSync
          +   * resources will be deleted.
          +   * If omitted, ConfigSync resources will be managed depends on the presence
          +   * of the git or oci field.
          +   * 
          + * + * optional bool enabled = 10; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + public static final int PREVENT_DRIFT_FIELD_NUMBER = 11; + private boolean preventDrift_ = false; + /** + * + * + *
          +   * Set to true to enable the Config Sync admission webhook to prevent drifts.
          +   * If set to `false`, disables the Config Sync admission webhook and does not
          +   * prevent drifts.
          +   * 
          + * + * bool prevent_drift = 11; + * + * @return The preventDrift. + */ + @java.lang.Override + public boolean getPreventDrift() { + return preventDrift_; + } + + public static final int OCI_FIELD_NUMBER = 12; + private com.google.cloud.gkehub.configmanagement.v1.OciConfig oci_; + /** + * + * + *
          +   * OCI repo configuration for the cluster
          +   * 
          + * + * .google.cloud.gkehub.configmanagement.v1.OciConfig oci = 12; + * + * @return Whether the oci field is set. + */ + @java.lang.Override + public boolean hasOci() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
          +   * OCI repo configuration for the cluster
          +   * 
          + * + * .google.cloud.gkehub.configmanagement.v1.OciConfig oci = 12; + * + * @return The oci. + */ + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1.OciConfig getOci() { + return oci_ == null + ? com.google.cloud.gkehub.configmanagement.v1.OciConfig.getDefaultInstance() + : oci_; + } + /** + * + * + *
          +   * OCI repo configuration for the cluster
          +   * 
          + * + * .google.cloud.gkehub.configmanagement.v1.OciConfig oci = 12; + */ + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1.OciConfigOrBuilder getOciOrBuilder() { + return oci_ == null + ? com.google.cloud.gkehub.configmanagement.v1.OciConfig.getDefaultInstance() + : oci_; + } + + public static final int METRICS_GCP_SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER = 15; + + @SuppressWarnings("serial") + private volatile java.lang.Object metricsGcpServiceAccountEmail_ = ""; + /** + * + * + *
          +   * The Email of the Google Cloud Service Account (GSA) used for exporting
          +   * Config Sync metrics to Cloud Monitoring when Workload Identity is enabled.
          +   * The GSA should have the Monitoring Metric Writer
          +   * (roles/monitoring.metricWriter) IAM role.
          +   * The Kubernetes ServiceAccount `default` in the namespace
          +   * `config-management-monitoring` should be bound to the GSA.
          +   * 
          + * + * string metrics_gcp_service_account_email = 15; + * + * @return The metricsGcpServiceAccountEmail. + */ + @java.lang.Override + public java.lang.String getMetricsGcpServiceAccountEmail() { + java.lang.Object ref = metricsGcpServiceAccountEmail_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metricsGcpServiceAccountEmail_ = s; + return s; + } + } + /** + * + * + *
          +   * The Email of the Google Cloud Service Account (GSA) used for exporting
          +   * Config Sync metrics to Cloud Monitoring when Workload Identity is enabled.
          +   * The GSA should have the Monitoring Metric Writer
          +   * (roles/monitoring.metricWriter) IAM role.
          +   * The Kubernetes ServiceAccount `default` in the namespace
          +   * `config-management-monitoring` should be bound to the GSA.
          +   * 
          + * + * string metrics_gcp_service_account_email = 15; + * + * @return The bytes for metricsGcpServiceAccountEmail. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMetricsGcpServiceAccountEmailBytes() { + java.lang.Object ref = metricsGcpServiceAccountEmail_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metricsGcpServiceAccountEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -187,6 +364,19 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceFormat_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, sourceFormat_); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeBool(10, enabled_); + } + if (preventDrift_ != false) { + output.writeBool(11, preventDrift_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(12, getOci()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metricsGcpServiceAccountEmail_)) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 15, metricsGcpServiceAccountEmail_); + } getUnknownFields().writeTo(output); } @@ -202,6 +392,20 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceFormat_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, sourceFormat_); } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, enabled_); + } + if (preventDrift_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, preventDrift_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getOci()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metricsGcpServiceAccountEmail_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 15, metricsGcpServiceAccountEmail_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -223,6 +427,17 @@ public boolean equals(final java.lang.Object obj) { if (!getGit().equals(other.getGit())) return false; } if (!getSourceFormat().equals(other.getSourceFormat())) return false; + if (hasEnabled() != other.hasEnabled()) return false; + if (hasEnabled()) { + if (getEnabled() != other.getEnabled()) return false; + } + if (getPreventDrift() != other.getPreventDrift()) return false; + if (hasOci() != other.hasOci()) return false; + if (hasOci()) { + if (!getOci().equals(other.getOci())) return false; + } + if (!getMetricsGcpServiceAccountEmail().equals(other.getMetricsGcpServiceAccountEmail())) + return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -240,6 +455,18 @@ public int hashCode() { } hash = (37 * hash) + SOURCE_FORMAT_FIELD_NUMBER; hash = (53 * hash) + getSourceFormat().hashCode(); + if (hasEnabled()) { + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + } + hash = (37 * hash) + PREVENT_DRIFT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPreventDrift()); + if (hasOci()) { + hash = (37 * hash) + OCI_FIELD_NUMBER; + hash = (53 * hash) + getOci().hashCode(); + } + hash = (37 * hash) + METRICS_GCP_SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getMetricsGcpServiceAccountEmail().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -382,6 +609,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getGitFieldBuilder(); + getOciFieldBuilder(); } } @@ -395,6 +623,14 @@ public Builder clear() { gitBuilder_ = null; } sourceFormat_ = ""; + enabled_ = false; + preventDrift_ = false; + oci_ = null; + if (ociBuilder_ != null) { + ociBuilder_.dispose(); + ociBuilder_ = null; + } + metricsGcpServiceAccountEmail_ = ""; return this; } @@ -439,6 +675,20 @@ private void buildPartial0(com.google.cloud.gkehub.configmanagement.v1.ConfigSyn if (((from_bitField0_ & 0x00000002) != 0)) { result.sourceFormat_ = sourceFormat_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.enabled_ = enabled_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.preventDrift_ = preventDrift_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.oci_ = ociBuilder_ == null ? oci_ : ociBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.metricsGcpServiceAccountEmail_ = metricsGcpServiceAccountEmail_; + } result.bitField0_ |= to_bitField0_; } @@ -496,6 +746,20 @@ public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1.ConfigSync bitField0_ |= 0x00000002; onChanged(); } + if (other.hasEnabled()) { + setEnabled(other.getEnabled()); + } + if (other.getPreventDrift() != false) { + setPreventDrift(other.getPreventDrift()); + } + if (other.hasOci()) { + mergeOci(other.getOci()); + } + if (!other.getMetricsGcpServiceAccountEmail().isEmpty()) { + metricsGcpServiceAccountEmail_ = other.metricsGcpServiceAccountEmail_; + bitField0_ |= 0x00000020; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -534,6 +798,30 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 66 + case 80: + { + enabled_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 80 + case 88: + { + preventDrift_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 88 + case 98: + { + input.readMessage(getOciFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 98 + case 122: + { + metricsGcpServiceAccountEmail_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 122 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -745,7 +1033,7 @@ public com.google.cloud.gkehub.configmanagement.v1.GitConfigOrBuilder getGitOrBu * *
                * Specifies whether the Config Sync Repo is
          -     * in “hierarchical” or “unstructured” mode.
          +     * in "hierarchical" or "unstructured" mode.
                * 
          * * string source_format = 8; @@ -768,7 +1056,7 @@ public java.lang.String getSourceFormat() { * *
                * Specifies whether the Config Sync Repo is
          -     * in “hierarchical” or “unstructured” mode.
          +     * in "hierarchical" or "unstructured" mode.
                * 
          * * string source_format = 8; @@ -791,7 +1079,7 @@ public com.google.protobuf.ByteString getSourceFormatBytes() { * *
                * Specifies whether the Config Sync Repo is
          -     * in “hierarchical” or “unstructured” mode.
          +     * in "hierarchical" or "unstructured" mode.
                * 
          * * string source_format = 8; @@ -813,7 +1101,7 @@ public Builder setSourceFormat(java.lang.String value) { * *
                * Specifies whether the Config Sync Repo is
          -     * in “hierarchical” or “unstructured” mode.
          +     * in "hierarchical" or "unstructured" mode.
                * 
          * * string source_format = 8; @@ -831,7 +1119,7 @@ public Builder clearSourceFormat() { * *
                * Specifies whether the Config Sync Repo is
          -     * in “hierarchical” or “unstructured” mode.
          +     * in "hierarchical" or "unstructured" mode.
                * 
          * * string source_format = 8; @@ -850,6 +1138,474 @@ public Builder setSourceFormatBytes(com.google.protobuf.ByteString value) { return this; } + private boolean enabled_; + /** + * + * + *
          +     * Enables the installation of ConfigSync.
          +     * If set to true, ConfigSync resources will be created and the other
          +     * ConfigSync fields will be applied if exist.
          +     * If set to false, all other ConfigSync fields will be ignored, ConfigSync
          +     * resources will be deleted.
          +     * If omitted, ConfigSync resources will be managed depends on the presence
          +     * of the git or oci field.
          +     * 
          + * + * optional bool enabled = 10; + * + * @return Whether the enabled field is set. + */ + @java.lang.Override + public boolean hasEnabled() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
          +     * Enables the installation of ConfigSync.
          +     * If set to true, ConfigSync resources will be created and the other
          +     * ConfigSync fields will be applied if exist.
          +     * If set to false, all other ConfigSync fields will be ignored, ConfigSync
          +     * resources will be deleted.
          +     * If omitted, ConfigSync resources will be managed depends on the presence
          +     * of the git or oci field.
          +     * 
          + * + * optional bool enabled = 10; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
          +     * Enables the installation of ConfigSync.
          +     * If set to true, ConfigSync resources will be created and the other
          +     * ConfigSync fields will be applied if exist.
          +     * If set to false, all other ConfigSync fields will be ignored, ConfigSync
          +     * resources will be deleted.
          +     * If omitted, ConfigSync resources will be managed depends on the presence
          +     * of the git or oci field.
          +     * 
          + * + * optional bool enabled = 10; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Enables the installation of ConfigSync.
          +     * If set to true, ConfigSync resources will be created and the other
          +     * ConfigSync fields will be applied if exist.
          +     * If set to false, all other ConfigSync fields will be ignored, ConfigSync
          +     * resources will be deleted.
          +     * If omitted, ConfigSync resources will be managed depends on the presence
          +     * of the git or oci field.
          +     * 
          + * + * optional bool enabled = 10; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000004); + enabled_ = false; + onChanged(); + return this; + } + + private boolean preventDrift_; + /** + * + * + *
          +     * Set to true to enable the Config Sync admission webhook to prevent drifts.
          +     * If set to `false`, disables the Config Sync admission webhook and does not
          +     * prevent drifts.
          +     * 
          + * + * bool prevent_drift = 11; + * + * @return The preventDrift. + */ + @java.lang.Override + public boolean getPreventDrift() { + return preventDrift_; + } + /** + * + * + *
          +     * Set to true to enable the Config Sync admission webhook to prevent drifts.
          +     * If set to `false`, disables the Config Sync admission webhook and does not
          +     * prevent drifts.
          +     * 
          + * + * bool prevent_drift = 11; + * + * @param value The preventDrift to set. + * @return This builder for chaining. + */ + public Builder setPreventDrift(boolean value) { + + preventDrift_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * Set to true to enable the Config Sync admission webhook to prevent drifts.
          +     * If set to `false`, disables the Config Sync admission webhook and does not
          +     * prevent drifts.
          +     * 
          + * + * bool prevent_drift = 11; + * + * @return This builder for chaining. + */ + public Builder clearPreventDrift() { + bitField0_ = (bitField0_ & ~0x00000008); + preventDrift_ = false; + onChanged(); + return this; + } + + private com.google.cloud.gkehub.configmanagement.v1.OciConfig oci_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1.OciConfig, + com.google.cloud.gkehub.configmanagement.v1.OciConfig.Builder, + com.google.cloud.gkehub.configmanagement.v1.OciConfigOrBuilder> + ociBuilder_; + /** + * + * + *
          +     * OCI repo configuration for the cluster
          +     * 
          + * + * .google.cloud.gkehub.configmanagement.v1.OciConfig oci = 12; + * + * @return Whether the oci field is set. + */ + public boolean hasOci() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
          +     * OCI repo configuration for the cluster
          +     * 
          + * + * .google.cloud.gkehub.configmanagement.v1.OciConfig oci = 12; + * + * @return The oci. + */ + public com.google.cloud.gkehub.configmanagement.v1.OciConfig getOci() { + if (ociBuilder_ == null) { + return oci_ == null + ? com.google.cloud.gkehub.configmanagement.v1.OciConfig.getDefaultInstance() + : oci_; + } else { + return ociBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * OCI repo configuration for the cluster
          +     * 
          + * + * .google.cloud.gkehub.configmanagement.v1.OciConfig oci = 12; + */ + public Builder setOci(com.google.cloud.gkehub.configmanagement.v1.OciConfig value) { + if (ociBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oci_ = value; + } else { + ociBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
          +     * OCI repo configuration for the cluster
          +     * 
          + * + * .google.cloud.gkehub.configmanagement.v1.OciConfig oci = 12; + */ + public Builder setOci( + com.google.cloud.gkehub.configmanagement.v1.OciConfig.Builder builderForValue) { + if (ociBuilder_ == null) { + oci_ = builderForValue.build(); + } else { + ociBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
          +     * OCI repo configuration for the cluster
          +     * 
          + * + * .google.cloud.gkehub.configmanagement.v1.OciConfig oci = 12; + */ + public Builder mergeOci(com.google.cloud.gkehub.configmanagement.v1.OciConfig value) { + if (ociBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && oci_ != null + && oci_ != com.google.cloud.gkehub.configmanagement.v1.OciConfig.getDefaultInstance()) { + getOciBuilder().mergeFrom(value); + } else { + oci_ = value; + } + } else { + ociBuilder_.mergeFrom(value); + } + if (oci_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * OCI repo configuration for the cluster
          +     * 
          + * + * .google.cloud.gkehub.configmanagement.v1.OciConfig oci = 12; + */ + public Builder clearOci() { + bitField0_ = (bitField0_ & ~0x00000010); + oci_ = null; + if (ociBuilder_ != null) { + ociBuilder_.dispose(); + ociBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * OCI repo configuration for the cluster
          +     * 
          + * + * .google.cloud.gkehub.configmanagement.v1.OciConfig oci = 12; + */ + public com.google.cloud.gkehub.configmanagement.v1.OciConfig.Builder getOciBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getOciFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * OCI repo configuration for the cluster
          +     * 
          + * + * .google.cloud.gkehub.configmanagement.v1.OciConfig oci = 12; + */ + public com.google.cloud.gkehub.configmanagement.v1.OciConfigOrBuilder getOciOrBuilder() { + if (ociBuilder_ != null) { + return ociBuilder_.getMessageOrBuilder(); + } else { + return oci_ == null + ? com.google.cloud.gkehub.configmanagement.v1.OciConfig.getDefaultInstance() + : oci_; + } + } + /** + * + * + *
          +     * OCI repo configuration for the cluster
          +     * 
          + * + * .google.cloud.gkehub.configmanagement.v1.OciConfig oci = 12; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1.OciConfig, + com.google.cloud.gkehub.configmanagement.v1.OciConfig.Builder, + com.google.cloud.gkehub.configmanagement.v1.OciConfigOrBuilder> + getOciFieldBuilder() { + if (ociBuilder_ == null) { + ociBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1.OciConfig, + com.google.cloud.gkehub.configmanagement.v1.OciConfig.Builder, + com.google.cloud.gkehub.configmanagement.v1.OciConfigOrBuilder>( + getOci(), getParentForChildren(), isClean()); + oci_ = null; + } + return ociBuilder_; + } + + private java.lang.Object metricsGcpServiceAccountEmail_ = ""; + /** + * + * + *
          +     * The Email of the Google Cloud Service Account (GSA) used for exporting
          +     * Config Sync metrics to Cloud Monitoring when Workload Identity is enabled.
          +     * The GSA should have the Monitoring Metric Writer
          +     * (roles/monitoring.metricWriter) IAM role.
          +     * The Kubernetes ServiceAccount `default` in the namespace
          +     * `config-management-monitoring` should be bound to the GSA.
          +     * 
          + * + * string metrics_gcp_service_account_email = 15; + * + * @return The metricsGcpServiceAccountEmail. + */ + public java.lang.String getMetricsGcpServiceAccountEmail() { + java.lang.Object ref = metricsGcpServiceAccountEmail_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metricsGcpServiceAccountEmail_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * The Email of the Google Cloud Service Account (GSA) used for exporting
          +     * Config Sync metrics to Cloud Monitoring when Workload Identity is enabled.
          +     * The GSA should have the Monitoring Metric Writer
          +     * (roles/monitoring.metricWriter) IAM role.
          +     * The Kubernetes ServiceAccount `default` in the namespace
          +     * `config-management-monitoring` should be bound to the GSA.
          +     * 
          + * + * string metrics_gcp_service_account_email = 15; + * + * @return The bytes for metricsGcpServiceAccountEmail. + */ + public com.google.protobuf.ByteString getMetricsGcpServiceAccountEmailBytes() { + java.lang.Object ref = metricsGcpServiceAccountEmail_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metricsGcpServiceAccountEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * The Email of the Google Cloud Service Account (GSA) used for exporting
          +     * Config Sync metrics to Cloud Monitoring when Workload Identity is enabled.
          +     * The GSA should have the Monitoring Metric Writer
          +     * (roles/monitoring.metricWriter) IAM role.
          +     * The Kubernetes ServiceAccount `default` in the namespace
          +     * `config-management-monitoring` should be bound to the GSA.
          +     * 
          + * + * string metrics_gcp_service_account_email = 15; + * + * @param value The metricsGcpServiceAccountEmail to set. + * @return This builder for chaining. + */ + public Builder setMetricsGcpServiceAccountEmail(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + metricsGcpServiceAccountEmail_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
          +     * The Email of the Google Cloud Service Account (GSA) used for exporting
          +     * Config Sync metrics to Cloud Monitoring when Workload Identity is enabled.
          +     * The GSA should have the Monitoring Metric Writer
          +     * (roles/monitoring.metricWriter) IAM role.
          +     * The Kubernetes ServiceAccount `default` in the namespace
          +     * `config-management-monitoring` should be bound to the GSA.
          +     * 
          + * + * string metrics_gcp_service_account_email = 15; + * + * @return This builder for chaining. + */ + public Builder clearMetricsGcpServiceAccountEmail() { + metricsGcpServiceAccountEmail_ = getDefaultInstance().getMetricsGcpServiceAccountEmail(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
          +     * The Email of the Google Cloud Service Account (GSA) used for exporting
          +     * Config Sync metrics to Cloud Monitoring when Workload Identity is enabled.
          +     * The GSA should have the Monitoring Metric Writer
          +     * (roles/monitoring.metricWriter) IAM role.
          +     * The Kubernetes ServiceAccount `default` in the namespace
          +     * `config-management-monitoring` should be bound to the GSA.
          +     * 
          + * + * string metrics_gcp_service_account_email = 15; + * + * @param value The bytes for metricsGcpServiceAccountEmail to set. + * @return This builder for chaining. + */ + public Builder setMetricsGcpServiceAccountEmailBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + metricsGcpServiceAccountEmail_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncDeploymentState.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncDeploymentState.java index df2c9b6ac307..87b902bffbdf 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncDeploymentState.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncDeploymentState.java @@ -45,6 +45,7 @@ private ConfigSyncDeploymentState() { monitor_ = 0; reconcilerManager_ = 0; rootReconciler_ = 0; + admissionWebhook_ = 0; } @java.lang.Override @@ -290,6 +291,43 @@ public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getRootReconc : result; } + public static final int ADMISSION_WEBHOOK_FIELD_NUMBER = 7; + private int admissionWebhook_ = 0; + /** + * + * + *
          +   * Deployment state of admission-webhook
          +   * 
          + * + * .google.cloud.gkehub.configmanagement.v1.DeploymentState admission_webhook = 7; + * + * @return The enum numeric value on the wire for admissionWebhook. + */ + @java.lang.Override + public int getAdmissionWebhookValue() { + return admissionWebhook_; + } + /** + * + * + *
          +   * Deployment state of admission-webhook
          +   * 
          + * + * .google.cloud.gkehub.configmanagement.v1.DeploymentState admission_webhook = 7; + * + * @return The admissionWebhook. + */ + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getAdmissionWebhook() { + com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1.DeploymentState.forNumber(admissionWebhook_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -334,6 +372,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(6, rootReconciler_); } + if (admissionWebhook_ + != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(7, admissionWebhook_); + } getUnknownFields().writeTo(output); } @@ -373,6 +416,11 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, rootReconciler_); } + if (admissionWebhook_ + != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, admissionWebhook_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -395,6 +443,7 @@ public boolean equals(final java.lang.Object obj) { if (monitor_ != other.monitor_) return false; if (reconcilerManager_ != other.reconcilerManager_) return false; if (rootReconciler_ != other.rootReconciler_) return false; + if (admissionWebhook_ != other.admissionWebhook_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -418,6 +467,8 @@ public int hashCode() { hash = (53 * hash) + reconcilerManager_; hash = (37 * hash) + ROOT_RECONCILER_FIELD_NUMBER; hash = (53 * hash) + rootReconciler_; + hash = (37 * hash) + ADMISSION_WEBHOOK_FIELD_NUMBER; + hash = (53 * hash) + admissionWebhook_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -566,6 +617,7 @@ public Builder clear() { monitor_ = 0; reconcilerManager_ = 0; rootReconciler_ = 0; + admissionWebhook_ = 0; return this; } @@ -623,6 +675,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000020) != 0)) { result.rootReconciler_ = rootReconciler_; } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.admissionWebhook_ = admissionWebhook_; + } } @java.lang.Override @@ -692,6 +747,9 @@ public Builder mergeFrom( if (other.rootReconciler_ != 0) { setRootReconcilerValue(other.getRootReconcilerValue()); } + if (other.admissionWebhook_ != 0) { + setAdmissionWebhookValue(other.getAdmissionWebhookValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -754,6 +812,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000020; break; } // case 48 + case 56: + { + admissionWebhook_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 56 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1327,6 +1391,99 @@ public Builder clearRootReconciler() { return this; } + private int admissionWebhook_ = 0; + /** + * + * + *
          +     * Deployment state of admission-webhook
          +     * 
          + * + * .google.cloud.gkehub.configmanagement.v1.DeploymentState admission_webhook = 7; + * + * @return The enum numeric value on the wire for admissionWebhook. + */ + @java.lang.Override + public int getAdmissionWebhookValue() { + return admissionWebhook_; + } + /** + * + * + *
          +     * Deployment state of admission-webhook
          +     * 
          + * + * .google.cloud.gkehub.configmanagement.v1.DeploymentState admission_webhook = 7; + * + * @param value The enum numeric value on the wire for admissionWebhook to set. + * @return This builder for chaining. + */ + public Builder setAdmissionWebhookValue(int value) { + admissionWebhook_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
          +     * Deployment state of admission-webhook
          +     * 
          + * + * .google.cloud.gkehub.configmanagement.v1.DeploymentState admission_webhook = 7; + * + * @return The admissionWebhook. + */ + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getAdmissionWebhook() { + com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1.DeploymentState.forNumber(admissionWebhook_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED + : result; + } + /** + * + * + *
          +     * Deployment state of admission-webhook
          +     * 
          + * + * .google.cloud.gkehub.configmanagement.v1.DeploymentState admission_webhook = 7; + * + * @param value The admissionWebhook to set. + * @return This builder for chaining. + */ + public Builder setAdmissionWebhook( + com.google.cloud.gkehub.configmanagement.v1.DeploymentState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + admissionWebhook_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
          +     * Deployment state of admission-webhook
          +     * 
          + * + * .google.cloud.gkehub.configmanagement.v1.DeploymentState admission_webhook = 7; + * + * @return This builder for chaining. + */ + public Builder clearAdmissionWebhook() { + bitField0_ = (bitField0_ & ~0x00000040); + admissionWebhook_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncDeploymentStateOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncDeploymentStateOrBuilder.java index d673122b7f6b..74a0bcc06d96 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncDeploymentStateOrBuilder.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncDeploymentStateOrBuilder.java @@ -173,4 +173,29 @@ public interface ConfigSyncDeploymentStateOrBuilder * @return The rootReconciler. */ com.google.cloud.gkehub.configmanagement.v1.DeploymentState getRootReconciler(); + + /** + * + * + *
          +   * Deployment state of admission-webhook
          +   * 
          + * + * .google.cloud.gkehub.configmanagement.v1.DeploymentState admission_webhook = 7; + * + * @return The enum numeric value on the wire for admissionWebhook. + */ + int getAdmissionWebhookValue(); + /** + * + * + *
          +   * Deployment state of admission-webhook
          +   * 
          + * + * .google.cloud.gkehub.configmanagement.v1.DeploymentState admission_webhook = 7; + * + * @return The admissionWebhook. + */ + com.google.cloud.gkehub.configmanagement.v1.DeploymentState getAdmissionWebhook(); } diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncError.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncError.java new file mode 100644 index 000000000000..804f682c4ce8 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncError.java @@ -0,0 +1,626 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gkehub.configmanagement.v1; + +/** + * + * + *
          + * Errors pertaining to the installation of Config Sync
          + * 
          + * + * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.ConfigSyncError} + */ +public final class ConfigSyncError extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1.ConfigSyncError) + ConfigSyncErrorOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConfigSyncError.newBuilder() to construct. + private ConfigSyncError(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ConfigSyncError() { + errorMessage_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ConfigSyncError(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError.class, + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError.Builder.class); + } + + public static final int ERROR_MESSAGE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object errorMessage_ = ""; + /** + * + * + *
          +   * A string representing the user facing error message
          +   * 
          + * + * string error_message = 1; + * + * @return The errorMessage. + */ + @java.lang.Override + public java.lang.String getErrorMessage() { + java.lang.Object ref = errorMessage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + errorMessage_ = s; + return s; + } + } + /** + * + * + *
          +   * A string representing the user facing error message
          +   * 
          + * + * string error_message = 1; + * + * @return The bytes for errorMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getErrorMessageBytes() { + java.lang.Object ref = errorMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + errorMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, errorMessage_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, errorMessage_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError)) { + return super.equals(obj); + } + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError other = + (com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError) obj; + + if (!getErrorMessage().equals(other.getErrorMessage())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ERROR_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getErrorMessage().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * Errors pertaining to the installation of Config Sync
          +   * 
          + * + * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.ConfigSyncError} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1.ConfigSyncError) + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncErrorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError.class, + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError.Builder.class); + } + + // Construct using com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + errorMessage_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncError_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError getDefaultInstanceForType() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError build() { + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError buildPartial() { + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError result = + new com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.errorMessage_ = errorMessage_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError) { + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError other) { + if (other == com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError.getDefaultInstance()) + return this; + if (!other.getErrorMessage().isEmpty()) { + errorMessage_ = other.errorMessage_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + errorMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object errorMessage_ = ""; + /** + * + * + *
          +     * A string representing the user facing error message
          +     * 
          + * + * string error_message = 1; + * + * @return The errorMessage. + */ + public java.lang.String getErrorMessage() { + java.lang.Object ref = errorMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + errorMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * A string representing the user facing error message
          +     * 
          + * + * string error_message = 1; + * + * @return The bytes for errorMessage. + */ + public com.google.protobuf.ByteString getErrorMessageBytes() { + java.lang.Object ref = errorMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + errorMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * A string representing the user facing error message
          +     * 
          + * + * string error_message = 1; + * + * @param value The errorMessage to set. + * @return This builder for chaining. + */ + public Builder setErrorMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + errorMessage_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * A string representing the user facing error message
          +     * 
          + * + * string error_message = 1; + * + * @return This builder for chaining. + */ + public Builder clearErrorMessage() { + errorMessage_ = getDefaultInstance().getErrorMessage(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * A string representing the user facing error message
          +     * 
          + * + * string error_message = 1; + * + * @param value The bytes for errorMessage to set. + * @return This builder for chaining. + */ + public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + errorMessage_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1.ConfigSyncError) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1.ConfigSyncError) + private static final com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError(); + } + + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfigSyncError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncErrorOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncErrorOrBuilder.java new file mode 100644 index 000000000000..e2f181f60647 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncErrorOrBuilder.java @@ -0,0 +1,51 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gkehub.configmanagement.v1; + +public interface ConfigSyncErrorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1.ConfigSyncError) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * A string representing the user facing error message
          +   * 
          + * + * string error_message = 1; + * + * @return The errorMessage. + */ + java.lang.String getErrorMessage(); + /** + * + * + *
          +   * A string representing the user facing error message
          +   * 
          + * + * string error_message = 1; + * + * @return The bytes for errorMessage. + */ + com.google.protobuf.ByteString getErrorMessageBytes(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncOrBuilder.java index 938d32471808..cd8b09179bb4 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncOrBuilder.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncOrBuilder.java @@ -64,7 +64,7 @@ public interface ConfigSyncOrBuilder * *
              * Specifies whether the Config Sync Repo is
          -   * in “hierarchical” or “unstructured” mode.
          +   * in "hierarchical" or "unstructured" mode.
              * 
          * * string source_format = 8; @@ -77,7 +77,7 @@ public interface ConfigSyncOrBuilder * *
              * Specifies whether the Config Sync Repo is
          -   * in “hierarchical” or “unstructured” mode.
          +   * in "hierarchical" or "unstructured" mode.
              * 
          * * string source_format = 8; @@ -85,4 +85,126 @@ public interface ConfigSyncOrBuilder * @return The bytes for sourceFormat. */ com.google.protobuf.ByteString getSourceFormatBytes(); + + /** + * + * + *
          +   * Enables the installation of ConfigSync.
          +   * If set to true, ConfigSync resources will be created and the other
          +   * ConfigSync fields will be applied if exist.
          +   * If set to false, all other ConfigSync fields will be ignored, ConfigSync
          +   * resources will be deleted.
          +   * If omitted, ConfigSync resources will be managed depends on the presence
          +   * of the git or oci field.
          +   * 
          + * + * optional bool enabled = 10; + * + * @return Whether the enabled field is set. + */ + boolean hasEnabled(); + /** + * + * + *
          +   * Enables the installation of ConfigSync.
          +   * If set to true, ConfigSync resources will be created and the other
          +   * ConfigSync fields will be applied if exist.
          +   * If set to false, all other ConfigSync fields will be ignored, ConfigSync
          +   * resources will be deleted.
          +   * If omitted, ConfigSync resources will be managed depends on the presence
          +   * of the git or oci field.
          +   * 
          + * + * optional bool enabled = 10; + * + * @return The enabled. + */ + boolean getEnabled(); + + /** + * + * + *
          +   * Set to true to enable the Config Sync admission webhook to prevent drifts.
          +   * If set to `false`, disables the Config Sync admission webhook and does not
          +   * prevent drifts.
          +   * 
          + * + * bool prevent_drift = 11; + * + * @return The preventDrift. + */ + boolean getPreventDrift(); + + /** + * + * + *
          +   * OCI repo configuration for the cluster
          +   * 
          + * + * .google.cloud.gkehub.configmanagement.v1.OciConfig oci = 12; + * + * @return Whether the oci field is set. + */ + boolean hasOci(); + /** + * + * + *
          +   * OCI repo configuration for the cluster
          +   * 
          + * + * .google.cloud.gkehub.configmanagement.v1.OciConfig oci = 12; + * + * @return The oci. + */ + com.google.cloud.gkehub.configmanagement.v1.OciConfig getOci(); + /** + * + * + *
          +   * OCI repo configuration for the cluster
          +   * 
          + * + * .google.cloud.gkehub.configmanagement.v1.OciConfig oci = 12; + */ + com.google.cloud.gkehub.configmanagement.v1.OciConfigOrBuilder getOciOrBuilder(); + + /** + * + * + *
          +   * The Email of the Google Cloud Service Account (GSA) used for exporting
          +   * Config Sync metrics to Cloud Monitoring when Workload Identity is enabled.
          +   * The GSA should have the Monitoring Metric Writer
          +   * (roles/monitoring.metricWriter) IAM role.
          +   * The Kubernetes ServiceAccount `default` in the namespace
          +   * `config-management-monitoring` should be bound to the GSA.
          +   * 
          + * + * string metrics_gcp_service_account_email = 15; + * + * @return The metricsGcpServiceAccountEmail. + */ + java.lang.String getMetricsGcpServiceAccountEmail(); + /** + * + * + *
          +   * The Email of the Google Cloud Service Account (GSA) used for exporting
          +   * Config Sync metrics to Cloud Monitoring when Workload Identity is enabled.
          +   * The GSA should have the Monitoring Metric Writer
          +   * (roles/monitoring.metricWriter) IAM role.
          +   * The Kubernetes ServiceAccount `default` in the namespace
          +   * `config-management-monitoring` should be bound to the GSA.
          +   * 
          + * + * string metrics_gcp_service_account_email = 15; + * + * @return The bytes for metricsGcpServiceAccountEmail. + */ + com.google.protobuf.ByteString getMetricsGcpServiceAccountEmailBytes(); } diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncState.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncState.java index ff2011976d2f..254b466ee289 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncState.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncState.java @@ -38,7 +38,12 @@ private ConfigSyncState(com.google.protobuf.GeneratedMessageV3.Builder builde super(builder); } - private ConfigSyncState() {} + private ConfigSyncState() { + errors_ = java.util.Collections.emptyList(); + rootsyncCrd_ = 0; + reposyncCrd_ = 0; + state_ = 0; + } @java.lang.Override @SuppressWarnings({"unused"}) @@ -61,6 +66,404 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.Builder.class); } + /** + * + * + *
          +   * CRDState representing the state of a CRD
          +   * 
          + * + * Protobuf enum {@code google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState} + */ + public enum CRDState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
          +     * CRD's state cannot be determined
          +     * 
          + * + * CRD_STATE_UNSPECIFIED = 0; + */ + CRD_STATE_UNSPECIFIED(0), + /** + * + * + *
          +     * CRD is not installed
          +     * 
          + * + * NOT_INSTALLED = 1; + */ + NOT_INSTALLED(1), + /** + * + * + *
          +     * CRD is installed
          +     * 
          + * + * INSTALLED = 2; + */ + INSTALLED(2), + /** + * + * + *
          +     * CRD is terminating (i.e., it has been deleted and is cleaning up)
          +     * 
          + * + * TERMINATING = 3; + */ + TERMINATING(3), + /** + * + * + *
          +     * CRD is installing
          +     * 
          + * + * INSTALLING = 4; + */ + INSTALLING(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
          +     * CRD's state cannot be determined
          +     * 
          + * + * CRD_STATE_UNSPECIFIED = 0; + */ + public static final int CRD_STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
          +     * CRD is not installed
          +     * 
          + * + * NOT_INSTALLED = 1; + */ + public static final int NOT_INSTALLED_VALUE = 1; + /** + * + * + *
          +     * CRD is installed
          +     * 
          + * + * INSTALLED = 2; + */ + public static final int INSTALLED_VALUE = 2; + /** + * + * + *
          +     * CRD is terminating (i.e., it has been deleted and is cleaning up)
          +     * 
          + * + * TERMINATING = 3; + */ + public static final int TERMINATING_VALUE = 3; + /** + * + * + *
          +     * CRD is installing
          +     * 
          + * + * INSTALLING = 4; + */ + public static final int INSTALLING_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static CRDState valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static CRDState forNumber(int value) { + switch (value) { + case 0: + return CRD_STATE_UNSPECIFIED; + case 1: + return NOT_INSTALLED; + case 2: + return INSTALLED; + case 3: + return TERMINATING; + case 4: + return INSTALLING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CRDState findValueByNumber(int number) { + return CRDState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final CRDState[] VALUES = values(); + + public static CRDState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private CRDState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState) + } + + /** Protobuf enum {@code google.cloud.gkehub.configmanagement.v1.ConfigSyncState.State} */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
          +     * CS's state cannot be determined.
          +     * 
          + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
          +     * CS is not installed.
          +     * 
          + * + * CONFIG_SYNC_NOT_INSTALLED = 1; + */ + CONFIG_SYNC_NOT_INSTALLED(1), + /** + * + * + *
          +     * The expected CS version is installed successfully.
          +     * 
          + * + * CONFIG_SYNC_INSTALLED = 2; + */ + CONFIG_SYNC_INSTALLED(2), + /** + * + * + *
          +     * CS encounters errors.
          +     * 
          + * + * CONFIG_SYNC_ERROR = 3; + */ + CONFIG_SYNC_ERROR(3), + /** + * + * + *
          +     * CS is installing or terminating.
          +     * 
          + * + * CONFIG_SYNC_PENDING = 4; + */ + CONFIG_SYNC_PENDING(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
          +     * CS's state cannot be determined.
          +     * 
          + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
          +     * CS is not installed.
          +     * 
          + * + * CONFIG_SYNC_NOT_INSTALLED = 1; + */ + public static final int CONFIG_SYNC_NOT_INSTALLED_VALUE = 1; + /** + * + * + *
          +     * The expected CS version is installed successfully.
          +     * 
          + * + * CONFIG_SYNC_INSTALLED = 2; + */ + public static final int CONFIG_SYNC_INSTALLED_VALUE = 2; + /** + * + * + *
          +     * CS encounters errors.
          +     * 
          + * + * CONFIG_SYNC_ERROR = 3; + */ + public static final int CONFIG_SYNC_ERROR_VALUE = 3; + /** + * + * + *
          +     * CS is installing or terminating.
          +     * 
          + * + * CONFIG_SYNC_PENDING = 4; + */ + public static final int CONFIG_SYNC_PENDING_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return CONFIG_SYNC_NOT_INSTALLED; + case 2: + return CONFIG_SYNC_INSTALLED; + case 3: + return CONFIG_SYNC_ERROR; + case 4: + return CONFIG_SYNC_PENDING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.gkehub.configmanagement.v1.ConfigSyncState.State) + } + private int bitField0_; public static final int VERSION_FIELD_NUMBER = 1; private com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion version_; @@ -221,35 +624,248 @@ public com.google.cloud.gkehub.configmanagement.v1.SyncStateOrBuilder getSyncSta : syncState_; } - private byte memoizedIsInitialized = -1; + public static final int ERRORS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private java.util.List errors_; + /** + * + * + *
          +   * Errors pertaining to the installation of Config Sync.
          +   * 
          + * + * repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4; + */ @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; + public java.util.List + getErrorsList() { + return errors_; } - + /** + * + * + *
          +   * Errors pertaining to the installation of Config Sync.
          +   * 
          + * + * repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4; + */ @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getVersion()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getDeploymentState()); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(3, getSyncState()); - } - getUnknownFields().writeTo(output); + public java.util.List< + ? extends com.google.cloud.gkehub.configmanagement.v1.ConfigSyncErrorOrBuilder> + getErrorsOrBuilderList() { + return errors_; } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; + /** + * + * + *
          +   * Errors pertaining to the installation of Config Sync.
          +   * 
          + * + * repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4; + */ + @java.lang.Override + public int getErrorsCount() { + return errors_.size(); + } + /** + * + * + *
          +   * Errors pertaining to the installation of Config Sync.
          +   * 
          + * + * repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4; + */ + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError getErrors(int index) { + return errors_.get(index); + } + /** + * + * + *
          +   * Errors pertaining to the installation of Config Sync.
          +   * 
          + * + * repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4; + */ + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncErrorOrBuilder getErrorsOrBuilder( + int index) { + return errors_.get(index); + } + + public static final int ROOTSYNC_CRD_FIELD_NUMBER = 5; + private int rootsyncCrd_ = 0; + /** + * + * + *
          +   * The state of the RootSync CRD
          +   * 
          + * + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState rootsync_crd = 5; + * + * + * @return The enum numeric value on the wire for rootsyncCrd. + */ + @java.lang.Override + public int getRootsyncCrdValue() { + return rootsyncCrd_; + } + /** + * + * + *
          +   * The state of the RootSync CRD
          +   * 
          + * + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState rootsync_crd = 5; + * + * + * @return The rootsyncCrd. + */ + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState getRootsyncCrd() { + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState result = + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState.forNumber( + rootsyncCrd_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState.UNRECOGNIZED + : result; + } + + public static final int REPOSYNC_CRD_FIELD_NUMBER = 6; + private int reposyncCrd_ = 0; + /** + * + * + *
          +   * The state of the Reposync CRD
          +   * 
          + * + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState reposync_crd = 6; + * + * + * @return The enum numeric value on the wire for reposyncCrd. + */ + @java.lang.Override + public int getReposyncCrdValue() { + return reposyncCrd_; + } + /** + * + * + *
          +   * The state of the Reposync CRD
          +   * 
          + * + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState reposync_crd = 6; + * + * + * @return The reposyncCrd. + */ + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState getReposyncCrd() { + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState result = + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState.forNumber( + reposyncCrd_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState.UNRECOGNIZED + : result; + } + + public static final int STATE_FIELD_NUMBER = 7; + private int state_ = 0; + /** + * + * + *
          +   * The state of CS
          +   * This field summarizes the other fields in this message.
          +   * 
          + * + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.State state = 7; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
          +   * The state of CS
          +   * This field summarizes the other fields in this message.
          +   * 
          + * + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.State state = 7; + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.State getState() { + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.State result = + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.State.forNumber(state_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.State.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getVersion()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getDeploymentState()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getSyncState()); + } + for (int i = 0; i < errors_.size(); i++) { + output.writeMessage(4, errors_.get(i)); + } + if (rootsyncCrd_ + != com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState + .CRD_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, rootsyncCrd_); + } + if (reposyncCrd_ + != com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState + .CRD_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, reposyncCrd_); + } + if (state_ + != com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(7, state_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; if (size != -1) return size; size = 0; @@ -262,6 +878,26 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSyncState()); } + for (int i = 0; i < errors_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, errors_.get(i)); + } + if (rootsyncCrd_ + != com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState + .CRD_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, rootsyncCrd_); + } + if (reposyncCrd_ + != com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState + .CRD_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, reposyncCrd_); + } + if (state_ + != com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, state_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -290,6 +926,10 @@ public boolean equals(final java.lang.Object obj) { if (hasSyncState()) { if (!getSyncState().equals(other.getSyncState())) return false; } + if (!getErrorsList().equals(other.getErrorsList())) return false; + if (rootsyncCrd_ != other.rootsyncCrd_) return false; + if (reposyncCrd_ != other.reposyncCrd_) return false; + if (state_ != other.state_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -313,6 +953,16 @@ public int hashCode() { hash = (37 * hash) + SYNC_STATE_FIELD_NUMBER; hash = (53 * hash) + getSyncState().hashCode(); } + if (getErrorsCount() > 0) { + hash = (37 * hash) + ERRORS_FIELD_NUMBER; + hash = (53 * hash) + getErrorsList().hashCode(); + } + hash = (37 * hash) + ROOTSYNC_CRD_FIELD_NUMBER; + hash = (53 * hash) + rootsyncCrd_; + hash = (37 * hash) + REPOSYNC_CRD_FIELD_NUMBER; + hash = (53 * hash) + reposyncCrd_; + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -457,6 +1107,7 @@ private void maybeForceBuilderInitialization() { getVersionFieldBuilder(); getDeploymentStateFieldBuilder(); getSyncStateFieldBuilder(); + getErrorsFieldBuilder(); } } @@ -479,6 +1130,16 @@ public Builder clear() { syncStateBuilder_.dispose(); syncStateBuilder_ = null; } + if (errorsBuilder_ == null) { + errors_ = java.util.Collections.emptyList(); + } else { + errors_ = null; + errorsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + rootsyncCrd_ = 0; + reposyncCrd_ = 0; + state_ = 0; return this; } @@ -506,6 +1167,7 @@ public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState build() { public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState buildPartial() { com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState result = new com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -513,6 +1175,19 @@ public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState buildPartial( return result; } + private void buildPartialRepeatedFields( + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState result) { + if (errorsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + errors_ = java.util.Collections.unmodifiableList(errors_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.errors_ = errors_; + } else { + result.errors_ = errorsBuilder_.build(); + } + } + private void buildPartial0(com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; @@ -529,6 +1204,15 @@ private void buildPartial0(com.google.cloud.gkehub.configmanagement.v1.ConfigSyn result.syncState_ = syncStateBuilder_ == null ? syncState_ : syncStateBuilder_.build(); to_bitField0_ |= 0x00000004; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.rootsyncCrd_ = rootsyncCrd_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.reposyncCrd_ = reposyncCrd_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.state_ = state_; + } result.bitField0_ |= to_bitField0_; } @@ -587,6 +1271,42 @@ public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1.ConfigSyncS if (other.hasSyncState()) { mergeSyncState(other.getSyncState()); } + if (errorsBuilder_ == null) { + if (!other.errors_.isEmpty()) { + if (errors_.isEmpty()) { + errors_ = other.errors_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureErrorsIsMutable(); + errors_.addAll(other.errors_); + } + onChanged(); + } + } else { + if (!other.errors_.isEmpty()) { + if (errorsBuilder_.isEmpty()) { + errorsBuilder_.dispose(); + errorsBuilder_ = null; + errors_ = other.errors_; + bitField0_ = (bitField0_ & ~0x00000008); + errorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getErrorsFieldBuilder() + : null; + } else { + errorsBuilder_.addAllMessages(other.errors_); + } + } + } + if (other.rootsyncCrd_ != 0) { + setRootsyncCrdValue(other.getRootsyncCrdValue()); + } + if (other.reposyncCrd_ != 0) { + setReposyncCrdValue(other.getReposyncCrdValue()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -631,6 +1351,38 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 34: + { + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError m = + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError.parser(), + extensionRegistry); + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(m); + } else { + errorsBuilder_.addMessage(m); + } + break; + } // case 34 + case 40: + { + rootsyncCrd_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + reposyncCrd_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 56 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1251,6 +2003,667 @@ public com.google.cloud.gkehub.configmanagement.v1.SyncStateOrBuilder getSyncSta return syncStateBuilder_; } + private java.util.List errors_ = + java.util.Collections.emptyList(); + + private void ensureErrorsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + errors_ = + new java.util.ArrayList( + errors_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError, + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError.Builder, + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncErrorOrBuilder> + errorsBuilder_; + + /** + * + * + *
          +     * Errors pertaining to the installation of Config Sync.
          +     * 
          + * + * repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4; + */ + public java.util.List + getErrorsList() { + if (errorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(errors_); + } else { + return errorsBuilder_.getMessageList(); + } + } + /** + * + * + *
          +     * Errors pertaining to the installation of Config Sync.
          +     * 
          + * + * repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4; + */ + public int getErrorsCount() { + if (errorsBuilder_ == null) { + return errors_.size(); + } else { + return errorsBuilder_.getCount(); + } + } + /** + * + * + *
          +     * Errors pertaining to the installation of Config Sync.
          +     * 
          + * + * repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4; + */ + public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError getErrors(int index) { + if (errorsBuilder_ == null) { + return errors_.get(index); + } else { + return errorsBuilder_.getMessage(index); + } + } + /** + * + * + *
          +     * Errors pertaining to the installation of Config Sync.
          +     * 
          + * + * repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4; + */ + public Builder setErrors( + int index, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.set(index, value); + onChanged(); + } else { + errorsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
          +     * Errors pertaining to the installation of Config Sync.
          +     * 
          + * + * repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4; + */ + public Builder setErrors( + int index, + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.set(index, builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * Errors pertaining to the installation of Config Sync.
          +     * 
          + * + * repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4; + */ + public Builder addErrors(com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.add(value); + onChanged(); + } else { + errorsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
          +     * Errors pertaining to the installation of Config Sync.
          +     * 
          + * + * repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4; + */ + public Builder addErrors( + int index, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.add(index, value); + onChanged(); + } else { + errorsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
          +     * Errors pertaining to the installation of Config Sync.
          +     * 
          + * + * repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4; + */ + public Builder addErrors( + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * Errors pertaining to the installation of Config Sync.
          +     * 
          + * + * repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4; + */ + public Builder addErrors( + int index, + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(index, builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * Errors pertaining to the installation of Config Sync.
          +     * 
          + * + * repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4; + */ + public Builder addAllErrors( + java.lang.Iterable + values) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_); + onChanged(); + } else { + errorsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
          +     * Errors pertaining to the installation of Config Sync.
          +     * 
          + * + * repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4; + */ + public Builder clearErrors() { + if (errorsBuilder_ == null) { + errors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + errorsBuilder_.clear(); + } + return this; + } + /** + * + * + *
          +     * Errors pertaining to the installation of Config Sync.
          +     * 
          + * + * repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4; + */ + public Builder removeErrors(int index) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.remove(index); + onChanged(); + } else { + errorsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
          +     * Errors pertaining to the installation of Config Sync.
          +     * 
          + * + * repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4; + */ + public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError.Builder getErrorsBuilder( + int index) { + return getErrorsFieldBuilder().getBuilder(index); + } + /** + * + * + *
          +     * Errors pertaining to the installation of Config Sync.
          +     * 
          + * + * repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4; + */ + public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncErrorOrBuilder getErrorsOrBuilder( + int index) { + if (errorsBuilder_ == null) { + return errors_.get(index); + } else { + return errorsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
          +     * Errors pertaining to the installation of Config Sync.
          +     * 
          + * + * repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4; + */ + public java.util.List< + ? extends com.google.cloud.gkehub.configmanagement.v1.ConfigSyncErrorOrBuilder> + getErrorsOrBuilderList() { + if (errorsBuilder_ != null) { + return errorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(errors_); + } + } + /** + * + * + *
          +     * Errors pertaining to the installation of Config Sync.
          +     * 
          + * + * repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4; + */ + public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError.Builder addErrorsBuilder() { + return getErrorsFieldBuilder() + .addBuilder( + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError.getDefaultInstance()); + } + /** + * + * + *
          +     * Errors pertaining to the installation of Config Sync.
          +     * 
          + * + * repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4; + */ + public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError.Builder addErrorsBuilder( + int index) { + return getErrorsFieldBuilder() + .addBuilder( + index, + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError.getDefaultInstance()); + } + /** + * + * + *
          +     * Errors pertaining to the installation of Config Sync.
          +     * 
          + * + * repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4; + */ + public java.util.List + getErrorsBuilderList() { + return getErrorsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError, + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError.Builder, + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncErrorOrBuilder> + getErrorsFieldBuilder() { + if (errorsBuilder_ == null) { + errorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError, + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError.Builder, + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncErrorOrBuilder>( + errors_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + errors_ = null; + } + return errorsBuilder_; + } + + private int rootsyncCrd_ = 0; + /** + * + * + *
          +     * The state of the RootSync CRD
          +     * 
          + * + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState rootsync_crd = 5; + * + * + * @return The enum numeric value on the wire for rootsyncCrd. + */ + @java.lang.Override + public int getRootsyncCrdValue() { + return rootsyncCrd_; + } + /** + * + * + *
          +     * The state of the RootSync CRD
          +     * 
          + * + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState rootsync_crd = 5; + * + * + * @param value The enum numeric value on the wire for rootsyncCrd to set. + * @return This builder for chaining. + */ + public Builder setRootsyncCrdValue(int value) { + rootsyncCrd_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
          +     * The state of the RootSync CRD
          +     * 
          + * + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState rootsync_crd = 5; + * + * + * @return The rootsyncCrd. + */ + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState getRootsyncCrd() { + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState result = + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState.forNumber( + rootsyncCrd_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState.UNRECOGNIZED + : result; + } + /** + * + * + *
          +     * The state of the RootSync CRD
          +     * 
          + * + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState rootsync_crd = 5; + * + * + * @param value The rootsyncCrd to set. + * @return This builder for chaining. + */ + public Builder setRootsyncCrd( + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + rootsyncCrd_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
          +     * The state of the RootSync CRD
          +     * 
          + * + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState rootsync_crd = 5; + * + * + * @return This builder for chaining. + */ + public Builder clearRootsyncCrd() { + bitField0_ = (bitField0_ & ~0x00000010); + rootsyncCrd_ = 0; + onChanged(); + return this; + } + + private int reposyncCrd_ = 0; + /** + * + * + *
          +     * The state of the Reposync CRD
          +     * 
          + * + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState reposync_crd = 6; + * + * + * @return The enum numeric value on the wire for reposyncCrd. + */ + @java.lang.Override + public int getReposyncCrdValue() { + return reposyncCrd_; + } + /** + * + * + *
          +     * The state of the Reposync CRD
          +     * 
          + * + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState reposync_crd = 6; + * + * + * @param value The enum numeric value on the wire for reposyncCrd to set. + * @return This builder for chaining. + */ + public Builder setReposyncCrdValue(int value) { + reposyncCrd_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
          +     * The state of the Reposync CRD
          +     * 
          + * + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState reposync_crd = 6; + * + * + * @return The reposyncCrd. + */ + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState getReposyncCrd() { + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState result = + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState.forNumber( + reposyncCrd_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState.UNRECOGNIZED + : result; + } + /** + * + * + *
          +     * The state of the Reposync CRD
          +     * 
          + * + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState reposync_crd = 6; + * + * + * @param value The reposyncCrd to set. + * @return This builder for chaining. + */ + public Builder setReposyncCrd( + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + reposyncCrd_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
          +     * The state of the Reposync CRD
          +     * 
          + * + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState reposync_crd = 6; + * + * + * @return This builder for chaining. + */ + public Builder clearReposyncCrd() { + bitField0_ = (bitField0_ & ~0x00000020); + reposyncCrd_ = 0; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * + * + *
          +     * The state of CS
          +     * This field summarizes the other fields in this message.
          +     * 
          + * + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.State state = 7; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
          +     * The state of CS
          +     * This field summarizes the other fields in this message.
          +     * 
          + * + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.State state = 7; + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
          +     * The state of CS
          +     * This field summarizes the other fields in this message.
          +     * 
          + * + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.State state = 7; + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.State getState() { + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.State result = + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.State.forNumber(state_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.State.UNRECOGNIZED + : result; + } + /** + * + * + *
          +     * The state of CS
          +     * This field summarizes the other fields in this message.
          +     * 
          + * + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.State state = 7; + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState( + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
          +     * The state of CS
          +     * This field summarizes the other fields in this message.
          +     * 
          + * + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.State state = 7; + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000040); + state_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncStateOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncStateOrBuilder.java index 8dafde27f870..f9f170e21d6c 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncStateOrBuilder.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncStateOrBuilder.java @@ -135,4 +135,138 @@ public interface ConfigSyncStateOrBuilder * .google.cloud.gkehub.configmanagement.v1.SyncState sync_state = 3; */ com.google.cloud.gkehub.configmanagement.v1.SyncStateOrBuilder getSyncStateOrBuilder(); + + /** + * + * + *
          +   * Errors pertaining to the installation of Config Sync.
          +   * 
          + * + * repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4; + */ + java.util.List getErrorsList(); + /** + * + * + *
          +   * Errors pertaining to the installation of Config Sync.
          +   * 
          + * + * repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4; + */ + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncError getErrors(int index); + /** + * + * + *
          +   * Errors pertaining to the installation of Config Sync.
          +   * 
          + * + * repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4; + */ + int getErrorsCount(); + /** + * + * + *
          +   * Errors pertaining to the installation of Config Sync.
          +   * 
          + * + * repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4; + */ + java.util.List + getErrorsOrBuilderList(); + /** + * + * + *
          +   * Errors pertaining to the installation of Config Sync.
          +   * 
          + * + * repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4; + */ + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncErrorOrBuilder getErrorsOrBuilder( + int index); + + /** + * + * + *
          +   * The state of the RootSync CRD
          +   * 
          + * + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState rootsync_crd = 5; + * + * + * @return The enum numeric value on the wire for rootsyncCrd. + */ + int getRootsyncCrdValue(); + /** + * + * + *
          +   * The state of the RootSync CRD
          +   * 
          + * + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState rootsync_crd = 5; + * + * + * @return The rootsyncCrd. + */ + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState getRootsyncCrd(); + + /** + * + * + *
          +   * The state of the Reposync CRD
          +   * 
          + * + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState reposync_crd = 6; + * + * + * @return The enum numeric value on the wire for reposyncCrd. + */ + int getReposyncCrdValue(); + /** + * + * + *
          +   * The state of the Reposync CRD
          +   * 
          + * + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState reposync_crd = 6; + * + * + * @return The reposyncCrd. + */ + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState getReposyncCrd(); + + /** + * + * + *
          +   * The state of CS
          +   * This field summarizes the other fields in this message.
          +   * 
          + * + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.State state = 7; + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
          +   * The state of CS
          +   * This field summarizes the other fields in this message.
          +   * 
          + * + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.State state = 7; + * + * @return The state. + */ + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.State getState(); } diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncVersion.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncVersion.java index dbf2cae67157..fc927ec76b3b 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncVersion.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncVersion.java @@ -45,6 +45,7 @@ private ConfigSyncVersion() { monitor_ = ""; reconcilerManager_ = ""; rootReconciler_ = ""; + admissionWebhook_ = ""; } @java.lang.Override @@ -374,6 +375,57 @@ public com.google.protobuf.ByteString getRootReconcilerBytes() { } } + public static final int ADMISSION_WEBHOOK_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object admissionWebhook_ = ""; + /** + * + * + *
          +   * Version of the deployed admission_webhook pod
          +   * 
          + * + * string admission_webhook = 7; + * + * @return The admissionWebhook. + */ + @java.lang.Override + public java.lang.String getAdmissionWebhook() { + java.lang.Object ref = admissionWebhook_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + admissionWebhook_ = s; + return s; + } + } + /** + * + * + *
          +   * Version of the deployed admission_webhook pod
          +   * 
          + * + * string admission_webhook = 7; + * + * @return The bytes for admissionWebhook. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAdmissionWebhookBytes() { + java.lang.Object ref = admissionWebhook_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + admissionWebhook_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -406,6 +458,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rootReconciler_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, rootReconciler_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(admissionWebhook_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, admissionWebhook_); + } getUnknownFields().writeTo(output); } @@ -433,6 +488,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rootReconciler_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, rootReconciler_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(admissionWebhook_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, admissionWebhook_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -455,6 +513,7 @@ public boolean equals(final java.lang.Object obj) { if (!getMonitor().equals(other.getMonitor())) return false; if (!getReconcilerManager().equals(other.getReconcilerManager())) return false; if (!getRootReconciler().equals(other.getRootReconciler())) return false; + if (!getAdmissionWebhook().equals(other.getAdmissionWebhook())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -478,6 +537,8 @@ public int hashCode() { hash = (53 * hash) + getReconcilerManager().hashCode(); hash = (37 * hash) + ROOT_RECONCILER_FIELD_NUMBER; hash = (53 * hash) + getRootReconciler().hashCode(); + hash = (37 * hash) + ADMISSION_WEBHOOK_FIELD_NUMBER; + hash = (53 * hash) + getAdmissionWebhook().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -624,6 +685,7 @@ public Builder clear() { monitor_ = ""; reconcilerManager_ = ""; rootReconciler_ = ""; + admissionWebhook_ = ""; return this; } @@ -680,6 +742,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000020) != 0)) { result.rootReconciler_ = rootReconciler_; } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.admissionWebhook_ = admissionWebhook_; + } } @java.lang.Override @@ -759,6 +824,11 @@ public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1.ConfigSyncV bitField0_ |= 0x00000020; onChanged(); } + if (!other.getAdmissionWebhook().isEmpty()) { + admissionWebhook_ = other.admissionWebhook_; + bitField0_ |= 0x00000040; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -821,6 +891,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000020; break; } // case 50 + case 58: + { + admissionWebhook_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1476,6 +1552,112 @@ public Builder setRootReconcilerBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object admissionWebhook_ = ""; + /** + * + * + *
          +     * Version of the deployed admission_webhook pod
          +     * 
          + * + * string admission_webhook = 7; + * + * @return The admissionWebhook. + */ + public java.lang.String getAdmissionWebhook() { + java.lang.Object ref = admissionWebhook_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + admissionWebhook_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Version of the deployed admission_webhook pod
          +     * 
          + * + * string admission_webhook = 7; + * + * @return The bytes for admissionWebhook. + */ + public com.google.protobuf.ByteString getAdmissionWebhookBytes() { + java.lang.Object ref = admissionWebhook_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + admissionWebhook_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Version of the deployed admission_webhook pod
          +     * 
          + * + * string admission_webhook = 7; + * + * @param value The admissionWebhook to set. + * @return This builder for chaining. + */ + public Builder setAdmissionWebhook(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + admissionWebhook_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
          +     * Version of the deployed admission_webhook pod
          +     * 
          + * + * string admission_webhook = 7; + * + * @return This builder for chaining. + */ + public Builder clearAdmissionWebhook() { + admissionWebhook_ = getDefaultInstance().getAdmissionWebhook(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
          +     * Version of the deployed admission_webhook pod
          +     * 
          + * + * string admission_webhook = 7; + * + * @param value The bytes for admissionWebhook to set. + * @return This builder for chaining. + */ + public Builder setAdmissionWebhookBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + admissionWebhook_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncVersionOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncVersionOrBuilder.java index 0b74a338631e..f75c123a525e 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncVersionOrBuilder.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncVersionOrBuilder.java @@ -173,4 +173,29 @@ public interface ConfigSyncVersionOrBuilder * @return The bytes for rootReconciler. */ com.google.protobuf.ByteString getRootReconcilerBytes(); + + /** + * + * + *
          +   * Version of the deployed admission_webhook pod
          +   * 
          + * + * string admission_webhook = 7; + * + * @return The admissionWebhook. + */ + java.lang.String getAdmissionWebhook(); + /** + * + * + *
          +   * Version of the deployed admission_webhook pod
          +   * 
          + * + * string admission_webhook = 7; + * + * @return The bytes for admissionWebhook. + */ + com.google.protobuf.ByteString getAdmissionWebhookBytes(); } diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/DeploymentState.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/DeploymentState.java index dcdfbbd5e889..d2a90510c265 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/DeploymentState.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/DeploymentState.java @@ -69,6 +69,16 @@ public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { * ERROR = 3; */ ERROR(3), + /** + * + * + *
          +   * Deployment is installing or terminating
          +   * 
          + * + * PENDING = 4; + */ + PENDING(4), UNRECOGNIZED(-1), ; @@ -112,6 +122,16 @@ public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { * ERROR = 3; */ public static final int ERROR_VALUE = 3; + /** + * + * + *
          +   * Deployment is installing or terminating
          +   * 
          + * + * PENDING = 4; + */ + public static final int PENDING_VALUE = 4; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -145,6 +165,8 @@ public static DeploymentState forNumber(int value) { return INSTALLED; case 3: return ERROR; + case 4: + return PENDING; default: return null; } diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GitConfig.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GitConfig.java index 8ca4aeb43858..5addbda5209a 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GitConfig.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GitConfig.java @@ -301,7 +301,9 @@ public com.google.protobuf.ByteString getSyncRevBytes() { * * *
          -   * Type of secret configured for access to the Git repo.
          +   * Type of secret configured for access to the Git repo. Must be one of ssh,
          +   * cookiefile, gcenode, token, gcpserviceaccount or none. The
          +   * validation of this is case-sensitive. Required.
              * 
          * * string secret_type = 6; @@ -324,7 +326,9 @@ public java.lang.String getSecretType() { * * *
          -   * Type of secret configured for access to the Git repo.
          +   * Type of secret configured for access to the Git repo. Must be one of ssh,
          +   * cookiefile, gcenode, token, gcpserviceaccount or none. The
          +   * validation of this is case-sensitive. Required.
              * 
          * * string secret_type = 6; @@ -403,7 +407,7 @@ public com.google.protobuf.ByteString getHttpsProxyBytes() { * * *
          -   * The GCP Service Account Email used for auth when secret_type is
          +   * The Google Cloud Service Account Email used for auth when secret_type is
              * gcpServiceAccount.
              * 
          * @@ -427,7 +431,7 @@ public java.lang.String getGcpServiceAccountEmail() { * * *
          -   * The GCP Service Account Email used for auth when secret_type is
          +   * The Google Cloud Service Account Email used for auth when secret_type is
              * gcpServiceAccount.
              * 
          * @@ -1444,7 +1448,9 @@ public Builder setSyncRevBytes(com.google.protobuf.ByteString value) { * * *
          -     * Type of secret configured for access to the Git repo.
          +     * Type of secret configured for access to the Git repo. Must be one of ssh,
          +     * cookiefile, gcenode, token, gcpserviceaccount or none. The
          +     * validation of this is case-sensitive. Required.
                * 
          * * string secret_type = 6; @@ -1466,7 +1472,9 @@ public java.lang.String getSecretType() { * * *
          -     * Type of secret configured for access to the Git repo.
          +     * Type of secret configured for access to the Git repo. Must be one of ssh,
          +     * cookiefile, gcenode, token, gcpserviceaccount or none. The
          +     * validation of this is case-sensitive. Required.
                * 
          * * string secret_type = 6; @@ -1488,7 +1496,9 @@ public com.google.protobuf.ByteString getSecretTypeBytes() { * * *
          -     * Type of secret configured for access to the Git repo.
          +     * Type of secret configured for access to the Git repo. Must be one of ssh,
          +     * cookiefile, gcenode, token, gcpserviceaccount or none. The
          +     * validation of this is case-sensitive. Required.
                * 
          * * string secret_type = 6; @@ -1509,7 +1519,9 @@ public Builder setSecretType(java.lang.String value) { * * *
          -     * Type of secret configured for access to the Git repo.
          +     * Type of secret configured for access to the Git repo. Must be one of ssh,
          +     * cookiefile, gcenode, token, gcpserviceaccount or none. The
          +     * validation of this is case-sensitive. Required.
                * 
          * * string secret_type = 6; @@ -1526,7 +1538,9 @@ public Builder clearSecretType() { * * *
          -     * Type of secret configured for access to the Git repo.
          +     * Type of secret configured for access to the Git repo. Must be one of ssh,
          +     * cookiefile, gcenode, token, gcpserviceaccount or none. The
          +     * validation of this is case-sensitive. Required.
                * 
          * * string secret_type = 6; @@ -1656,7 +1670,7 @@ public Builder setHttpsProxyBytes(com.google.protobuf.ByteString value) { * * *
          -     * The GCP Service Account Email used for auth when secret_type is
          +     * The Google Cloud Service Account Email used for auth when secret_type is
                * gcpServiceAccount.
                * 
          * @@ -1679,7 +1693,7 @@ public java.lang.String getGcpServiceAccountEmail() { * * *
          -     * The GCP Service Account Email used for auth when secret_type is
          +     * The Google Cloud Service Account Email used for auth when secret_type is
                * gcpServiceAccount.
                * 
          * @@ -1702,7 +1716,7 @@ public com.google.protobuf.ByteString getGcpServiceAccountEmailBytes() { * * *
          -     * The GCP Service Account Email used for auth when secret_type is
          +     * The Google Cloud Service Account Email used for auth when secret_type is
                * gcpServiceAccount.
                * 
          * @@ -1724,7 +1738,7 @@ public Builder setGcpServiceAccountEmail(java.lang.String value) { * * *
          -     * The GCP Service Account Email used for auth when secret_type is
          +     * The Google Cloud Service Account Email used for auth when secret_type is
                * gcpServiceAccount.
                * 
          * @@ -1742,7 +1756,7 @@ public Builder clearGcpServiceAccountEmail() { * * *
          -     * The GCP Service Account Email used for auth when secret_type is
          +     * The Google Cloud Service Account Email used for auth when secret_type is
                * gcpServiceAccount.
                * 
          * diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GitConfigOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GitConfigOrBuilder.java index c296c7843061..a1cfa60167fc 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GitConfigOrBuilder.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GitConfigOrBuilder.java @@ -143,7 +143,9 @@ public interface GitConfigOrBuilder * * *
          -   * Type of secret configured for access to the Git repo.
          +   * Type of secret configured for access to the Git repo. Must be one of ssh,
          +   * cookiefile, gcenode, token, gcpserviceaccount or none. The
          +   * validation of this is case-sensitive. Required.
              * 
          * * string secret_type = 6; @@ -155,7 +157,9 @@ public interface GitConfigOrBuilder * * *
          -   * Type of secret configured for access to the Git repo.
          +   * Type of secret configured for access to the Git repo. Must be one of ssh,
          +   * cookiefile, gcenode, token, gcpserviceaccount or none. The
          +   * validation of this is case-sensitive. Required.
              * 
          * * string secret_type = 6; @@ -193,7 +197,7 @@ public interface GitConfigOrBuilder * * *
          -   * The GCP Service Account Email used for auth when secret_type is
          +   * The Google Cloud Service Account Email used for auth when secret_type is
              * gcpServiceAccount.
              * 
          * @@ -206,7 +210,7 @@ public interface GitConfigOrBuilder * * *
          -   * The GCP Service Account Email used for auth when secret_type is
          +   * The Google Cloud Service Account Email used for auth when secret_type is
              * gcpServiceAccount.
              * 
          * diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipSpec.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipSpec.java index 31d78937e8dc..669237ec4b6c 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipSpec.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipSpec.java @@ -41,6 +41,8 @@ private MembershipSpec(com.google.protobuf.GeneratedMessageV3.Builder builder private MembershipSpec() { version_ = ""; + cluster_ = ""; + management_ = 0; } @java.lang.Override @@ -64,6 +66,165 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Builder.class); } + /** + * + * + *
          +   * Whether to automatically manage the Feature.
          +   * 
          + * + * Protobuf enum {@code google.cloud.gkehub.configmanagement.v1.MembershipSpec.Management} + */ + public enum Management implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
          +     * Unspecified
          +     * 
          + * + * MANAGEMENT_UNSPECIFIED = 0; + */ + MANAGEMENT_UNSPECIFIED(0), + /** + * + * + *
          +     * Google will manage the Feature for the cluster.
          +     * 
          + * + * MANAGEMENT_AUTOMATIC = 1; + */ + MANAGEMENT_AUTOMATIC(1), + /** + * + * + *
          +     * User will manually manage the Feature for the cluster.
          +     * 
          + * + * MANAGEMENT_MANUAL = 2; + */ + MANAGEMENT_MANUAL(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
          +     * Unspecified
          +     * 
          + * + * MANAGEMENT_UNSPECIFIED = 0; + */ + public static final int MANAGEMENT_UNSPECIFIED_VALUE = 0; + /** + * + * + *
          +     * Google will manage the Feature for the cluster.
          +     * 
          + * + * MANAGEMENT_AUTOMATIC = 1; + */ + public static final int MANAGEMENT_AUTOMATIC_VALUE = 1; + /** + * + * + *
          +     * User will manually manage the Feature for the cluster.
          +     * 
          + * + * MANAGEMENT_MANUAL = 2; + */ + public static final int MANAGEMENT_MANUAL_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Management valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Management forNumber(int value) { + switch (value) { + case 0: + return MANAGEMENT_UNSPECIFIED; + case 1: + return MANAGEMENT_AUTOMATIC; + case 2: + return MANAGEMENT_MANUAL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Management findValueByNumber(int number) { + return Management.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Management[] VALUES = values(); + + public static Management valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Management(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.gkehub.configmanagement.v1.MembershipSpec.Management) + } + private int bitField0_; public static final int CONFIG_SYNC_FIELD_NUMBER = 1; private com.google.cloud.gkehub.configmanagement.v1.ConfigSync configSync_; @@ -276,6 +437,109 @@ public com.google.protobuf.ByteString getVersionBytes() { } } + public static final int CLUSTER_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object cluster_ = ""; + /** + * + * + *
          +   * The user-specified cluster name used by Config Sync cluster-name-selector
          +   * annotation or ClusterSelector, for applying configs to only a subset
          +   * of clusters.
          +   * Omit this field if the cluster's fleet membership name is used by Config
          +   * Sync cluster-name-selector annotation or ClusterSelector.
          +   * Set this field if a name different from the cluster's fleet membership name
          +   * is used by Config Sync cluster-name-selector annotation or ClusterSelector.
          +   * 
          + * + * string cluster = 11; + * + * @return The cluster. + */ + @java.lang.Override + public java.lang.String getCluster() { + java.lang.Object ref = cluster_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cluster_ = s; + return s; + } + } + /** + * + * + *
          +   * The user-specified cluster name used by Config Sync cluster-name-selector
          +   * annotation or ClusterSelector, for applying configs to only a subset
          +   * of clusters.
          +   * Omit this field if the cluster's fleet membership name is used by Config
          +   * Sync cluster-name-selector annotation or ClusterSelector.
          +   * Set this field if a name different from the cluster's fleet membership name
          +   * is used by Config Sync cluster-name-selector annotation or ClusterSelector.
          +   * 
          + * + * string cluster = 11; + * + * @return The bytes for cluster. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterBytes() { + java.lang.Object ref = cluster_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cluster_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MANAGEMENT_FIELD_NUMBER = 12; + private int management_ = 0; + /** + * + * + *
          +   * Enables automatic Feature management.
          +   * 
          + * + * .google.cloud.gkehub.configmanagement.v1.MembershipSpec.Management management = 12; + * + * + * @return The enum numeric value on the wire for management. + */ + @java.lang.Override + public int getManagementValue() { + return management_; + } + /** + * + * + *
          +   * Enables automatic Feature management.
          +   * 
          + * + * .google.cloud.gkehub.configmanagement.v1.MembershipSpec.Management management = 12; + * + * + * @return The management. + */ + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Management getManagement() { + com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Management result = + com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Management.forNumber( + management_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Management.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -302,6 +566,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, version_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cluster_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, cluster_); + } + if (management_ + != com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Management + .MANAGEMENT_UNSPECIFIED + .getNumber()) { + output.writeEnum(12, management_); + } getUnknownFields().writeTo(output); } @@ -323,6 +596,15 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, version_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cluster_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, cluster_); + } + if (management_ + != com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Management + .MANAGEMENT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, management_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -352,6 +634,8 @@ public boolean equals(final java.lang.Object obj) { if (!getHierarchyController().equals(other.getHierarchyController())) return false; } if (!getVersion().equals(other.getVersion())) return false; + if (!getCluster().equals(other.getCluster())) return false; + if (management_ != other.management_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -377,6 +661,10 @@ public int hashCode() { } hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); + hash = (37 * hash) + CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getCluster().hashCode(); + hash = (37 * hash) + MANAGEMENT_FIELD_NUMBER; + hash = (53 * hash) + management_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -545,6 +833,8 @@ public Builder clear() { hierarchyControllerBuilder_ = null; } version_ = ""; + cluster_ = ""; + management_ = 0; return this; } @@ -601,6 +891,12 @@ private void buildPartial0(com.google.cloud.gkehub.configmanagement.v1.Membershi if (((from_bitField0_ & 0x00000008) != 0)) { result.version_ = version_; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.cluster_ = cluster_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.management_ = management_; + } result.bitField0_ |= to_bitField0_; } @@ -664,6 +960,14 @@ public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1.MembershipS bitField0_ |= 0x00000008; onChanged(); } + if (!other.getCluster().isEmpty()) { + cluster_ = other.cluster_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.management_ != 0) { + setManagementValue(other.getManagementValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -716,6 +1020,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 82 + case 90: + { + cluster_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 90 + case 96: + { + management_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 96 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1436,6 +1752,241 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object cluster_ = ""; + /** + * + * + *
          +     * The user-specified cluster name used by Config Sync cluster-name-selector
          +     * annotation or ClusterSelector, for applying configs to only a subset
          +     * of clusters.
          +     * Omit this field if the cluster's fleet membership name is used by Config
          +     * Sync cluster-name-selector annotation or ClusterSelector.
          +     * Set this field if a name different from the cluster's fleet membership name
          +     * is used by Config Sync cluster-name-selector annotation or ClusterSelector.
          +     * 
          + * + * string cluster = 11; + * + * @return The cluster. + */ + public java.lang.String getCluster() { + java.lang.Object ref = cluster_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cluster_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * The user-specified cluster name used by Config Sync cluster-name-selector
          +     * annotation or ClusterSelector, for applying configs to only a subset
          +     * of clusters.
          +     * Omit this field if the cluster's fleet membership name is used by Config
          +     * Sync cluster-name-selector annotation or ClusterSelector.
          +     * Set this field if a name different from the cluster's fleet membership name
          +     * is used by Config Sync cluster-name-selector annotation or ClusterSelector.
          +     * 
          + * + * string cluster = 11; + * + * @return The bytes for cluster. + */ + public com.google.protobuf.ByteString getClusterBytes() { + java.lang.Object ref = cluster_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cluster_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * The user-specified cluster name used by Config Sync cluster-name-selector
          +     * annotation or ClusterSelector, for applying configs to only a subset
          +     * of clusters.
          +     * Omit this field if the cluster's fleet membership name is used by Config
          +     * Sync cluster-name-selector annotation or ClusterSelector.
          +     * Set this field if a name different from the cluster's fleet membership name
          +     * is used by Config Sync cluster-name-selector annotation or ClusterSelector.
          +     * 
          + * + * string cluster = 11; + * + * @param value The cluster to set. + * @return This builder for chaining. + */ + public Builder setCluster(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cluster_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
          +     * The user-specified cluster name used by Config Sync cluster-name-selector
          +     * annotation or ClusterSelector, for applying configs to only a subset
          +     * of clusters.
          +     * Omit this field if the cluster's fleet membership name is used by Config
          +     * Sync cluster-name-selector annotation or ClusterSelector.
          +     * Set this field if a name different from the cluster's fleet membership name
          +     * is used by Config Sync cluster-name-selector annotation or ClusterSelector.
          +     * 
          + * + * string cluster = 11; + * + * @return This builder for chaining. + */ + public Builder clearCluster() { + cluster_ = getDefaultInstance().getCluster(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
          +     * The user-specified cluster name used by Config Sync cluster-name-selector
          +     * annotation or ClusterSelector, for applying configs to only a subset
          +     * of clusters.
          +     * Omit this field if the cluster's fleet membership name is used by Config
          +     * Sync cluster-name-selector annotation or ClusterSelector.
          +     * Set this field if a name different from the cluster's fleet membership name
          +     * is used by Config Sync cluster-name-selector annotation or ClusterSelector.
          +     * 
          + * + * string cluster = 11; + * + * @param value The bytes for cluster to set. + * @return This builder for chaining. + */ + public Builder setClusterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cluster_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int management_ = 0; + /** + * + * + *
          +     * Enables automatic Feature management.
          +     * 
          + * + * .google.cloud.gkehub.configmanagement.v1.MembershipSpec.Management management = 12; + * + * + * @return The enum numeric value on the wire for management. + */ + @java.lang.Override + public int getManagementValue() { + return management_; + } + /** + * + * + *
          +     * Enables automatic Feature management.
          +     * 
          + * + * .google.cloud.gkehub.configmanagement.v1.MembershipSpec.Management management = 12; + * + * + * @param value The enum numeric value on the wire for management to set. + * @return This builder for chaining. + */ + public Builder setManagementValue(int value) { + management_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
          +     * Enables automatic Feature management.
          +     * 
          + * + * .google.cloud.gkehub.configmanagement.v1.MembershipSpec.Management management = 12; + * + * + * @return The management. + */ + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Management getManagement() { + com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Management result = + com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Management.forNumber( + management_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Management.UNRECOGNIZED + : result; + } + /** + * + * + *
          +     * Enables automatic Feature management.
          +     * 
          + * + * .google.cloud.gkehub.configmanagement.v1.MembershipSpec.Management management = 12; + * + * + * @param value The management to set. + * @return This builder for chaining. + */ + public Builder setManagement( + com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Management value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + management_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
          +     * Enables automatic Feature management.
          +     * 
          + * + * .google.cloud.gkehub.configmanagement.v1.MembershipSpec.Management management = 12; + * + * + * @return This builder for chaining. + */ + public Builder clearManagement() { + bitField0_ = (bitField0_ & ~0x00000020); + management_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipSpecOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipSpecOrBuilder.java index 21a03c2dc92f..6208a32c13e7 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipSpecOrBuilder.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipSpecOrBuilder.java @@ -161,4 +161,68 @@ public interface MembershipSpecOrBuilder * @return The bytes for version. */ com.google.protobuf.ByteString getVersionBytes(); + + /** + * + * + *
          +   * The user-specified cluster name used by Config Sync cluster-name-selector
          +   * annotation or ClusterSelector, for applying configs to only a subset
          +   * of clusters.
          +   * Omit this field if the cluster's fleet membership name is used by Config
          +   * Sync cluster-name-selector annotation or ClusterSelector.
          +   * Set this field if a name different from the cluster's fleet membership name
          +   * is used by Config Sync cluster-name-selector annotation or ClusterSelector.
          +   * 
          + * + * string cluster = 11; + * + * @return The cluster. + */ + java.lang.String getCluster(); + /** + * + * + *
          +   * The user-specified cluster name used by Config Sync cluster-name-selector
          +   * annotation or ClusterSelector, for applying configs to only a subset
          +   * of clusters.
          +   * Omit this field if the cluster's fleet membership name is used by Config
          +   * Sync cluster-name-selector annotation or ClusterSelector.
          +   * Set this field if a name different from the cluster's fleet membership name
          +   * is used by Config Sync cluster-name-selector annotation or ClusterSelector.
          +   * 
          + * + * string cluster = 11; + * + * @return The bytes for cluster. + */ + com.google.protobuf.ByteString getClusterBytes(); + + /** + * + * + *
          +   * Enables automatic Feature management.
          +   * 
          + * + * .google.cloud.gkehub.configmanagement.v1.MembershipSpec.Management management = 12; + * + * + * @return The enum numeric value on the wire for management. + */ + int getManagementValue(); + /** + * + * + *
          +   * Enables automatic Feature management.
          +   * 
          + * + * .google.cloud.gkehub.configmanagement.v1.MembershipSpec.Management management = 12; + * + * + * @return The management. + */ + com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Management getManagement(); } diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipState.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipState.java index 6c6c3554a8a6..1a51120a2a20 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipState.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipState.java @@ -72,11 +72,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
          -   * The user-defined name for the cluster used by ClusterSelectors to group
          -   * clusters together. This should match Membership's membership_name,
          -   * unless the user installed ACM on the cluster manually prior to enabling
          -   * the ACM hub feature.
          -   * Unique within a Anthos Config Management installation.
          +   * This field is set to the `cluster_name` field of the Membership Spec if it
          +   * is not empty. Otherwise, it is set to the cluster's fleet membership name.
              * 
          * * string cluster_name = 1; @@ -99,11 +96,8 @@ public java.lang.String getClusterName() { * * *
          -   * The user-defined name for the cluster used by ClusterSelectors to group
          -   * clusters together. This should match Membership's membership_name,
          -   * unless the user installed ACM on the cluster manually prior to enabling
          -   * the ACM hub feature.
          -   * Unique within a Anthos Config Management installation.
          +   * This field is set to the `cluster_name` field of the Membership Spec if it
          +   * is not empty. Otherwise, it is set to the cluster's fleet membership name.
              * 
          * * string cluster_name = 1; @@ -936,11 +930,8 @@ public Builder mergeFrom( * * *
          -     * The user-defined name for the cluster used by ClusterSelectors to group
          -     * clusters together. This should match Membership's membership_name,
          -     * unless the user installed ACM on the cluster manually prior to enabling
          -     * the ACM hub feature.
          -     * Unique within a Anthos Config Management installation.
          +     * This field is set to the `cluster_name` field of the Membership Spec if it
          +     * is not empty. Otherwise, it is set to the cluster's fleet membership name.
                * 
          * * string cluster_name = 1; @@ -962,11 +953,8 @@ public java.lang.String getClusterName() { * * *
          -     * The user-defined name for the cluster used by ClusterSelectors to group
          -     * clusters together. This should match Membership's membership_name,
          -     * unless the user installed ACM on the cluster manually prior to enabling
          -     * the ACM hub feature.
          -     * Unique within a Anthos Config Management installation.
          +     * This field is set to the `cluster_name` field of the Membership Spec if it
          +     * is not empty. Otherwise, it is set to the cluster's fleet membership name.
                * 
          * * string cluster_name = 1; @@ -988,11 +976,8 @@ public com.google.protobuf.ByteString getClusterNameBytes() { * * *
          -     * The user-defined name for the cluster used by ClusterSelectors to group
          -     * clusters together. This should match Membership's membership_name,
          -     * unless the user installed ACM on the cluster manually prior to enabling
          -     * the ACM hub feature.
          -     * Unique within a Anthos Config Management installation.
          +     * This field is set to the `cluster_name` field of the Membership Spec if it
          +     * is not empty. Otherwise, it is set to the cluster's fleet membership name.
                * 
          * * string cluster_name = 1; @@ -1013,11 +998,8 @@ public Builder setClusterName(java.lang.String value) { * * *
          -     * The user-defined name for the cluster used by ClusterSelectors to group
          -     * clusters together. This should match Membership's membership_name,
          -     * unless the user installed ACM on the cluster manually prior to enabling
          -     * the ACM hub feature.
          -     * Unique within a Anthos Config Management installation.
          +     * This field is set to the `cluster_name` field of the Membership Spec if it
          +     * is not empty. Otherwise, it is set to the cluster's fleet membership name.
                * 
          * * string cluster_name = 1; @@ -1034,11 +1016,8 @@ public Builder clearClusterName() { * * *
          -     * The user-defined name for the cluster used by ClusterSelectors to group
          -     * clusters together. This should match Membership's membership_name,
          -     * unless the user installed ACM on the cluster manually prior to enabling
          -     * the ACM hub feature.
          -     * Unique within a Anthos Config Management installation.
          +     * This field is set to the `cluster_name` field of the Membership Spec if it
          +     * is not empty. Otherwise, it is set to the cluster's fleet membership name.
                * 
          * * string cluster_name = 1; diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipStateOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipStateOrBuilder.java index c4c1a464a21c..f238f8f5b64c 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipStateOrBuilder.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipStateOrBuilder.java @@ -28,11 +28,8 @@ public interface MembershipStateOrBuilder * * *
          -   * The user-defined name for the cluster used by ClusterSelectors to group
          -   * clusters together. This should match Membership's membership_name,
          -   * unless the user installed ACM on the cluster manually prior to enabling
          -   * the ACM hub feature.
          -   * Unique within a Anthos Config Management installation.
          +   * This field is set to the `cluster_name` field of the Membership Spec if it
          +   * is not empty. Otherwise, it is set to the cluster's fleet membership name.
              * 
          * * string cluster_name = 1; @@ -44,11 +41,8 @@ public interface MembershipStateOrBuilder * * *
          -   * The user-defined name for the cluster used by ClusterSelectors to group
          -   * clusters together. This should match Membership's membership_name,
          -   * unless the user installed ACM on the cluster manually prior to enabling
          -   * the ACM hub feature.
          -   * Unique within a Anthos Config Management installation.
          +   * This field is set to the `cluster_name` field of the Membership Spec if it
          +   * is not empty. Otherwise, it is set to the cluster's fleet membership name.
              * 
          * * string cluster_name = 1; diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/OciConfig.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/OciConfig.java new file mode 100644 index 000000000000..6bd974eb4ed4 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/OciConfig.java @@ -0,0 +1,1286 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gkehub.configmanagement.v1; + +/** + * + * + *
          + * OCI repo configuration for a single cluster
          + * 
          + * + * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.OciConfig} + */ +public final class OciConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1.OciConfig) + OciConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use OciConfig.newBuilder() to construct. + private OciConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private OciConfig() { + syncRepo_ = ""; + policyDir_ = ""; + secretType_ = ""; + gcpServiceAccountEmail_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OciConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_OciConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_OciConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.configmanagement.v1.OciConfig.class, + com.google.cloud.gkehub.configmanagement.v1.OciConfig.Builder.class); + } + + public static final int SYNC_REPO_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object syncRepo_ = ""; + /** + * + * + *
          +   * The OCI image repository URL for the package to sync from.
          +   * e.g. `LOCATION-docker.pkg.dev/PROJECT_ID/REPOSITORY_NAME/PACKAGE_NAME`.
          +   * 
          + * + * string sync_repo = 1; + * + * @return The syncRepo. + */ + @java.lang.Override + public java.lang.String getSyncRepo() { + java.lang.Object ref = syncRepo_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + syncRepo_ = s; + return s; + } + } + /** + * + * + *
          +   * The OCI image repository URL for the package to sync from.
          +   * e.g. `LOCATION-docker.pkg.dev/PROJECT_ID/REPOSITORY_NAME/PACKAGE_NAME`.
          +   * 
          + * + * string sync_repo = 1; + * + * @return The bytes for syncRepo. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSyncRepoBytes() { + java.lang.Object ref = syncRepo_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + syncRepo_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POLICY_DIR_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object policyDir_ = ""; + /** + * + * + *
          +   * The absolute path of the directory that contains
          +   * the local resources.  Default: the root directory of the image.
          +   * 
          + * + * string policy_dir = 2; + * + * @return The policyDir. + */ + @java.lang.Override + public java.lang.String getPolicyDir() { + java.lang.Object ref = policyDir_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + policyDir_ = s; + return s; + } + } + /** + * + * + *
          +   * The absolute path of the directory that contains
          +   * the local resources.  Default: the root directory of the image.
          +   * 
          + * + * string policy_dir = 2; + * + * @return The bytes for policyDir. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPolicyDirBytes() { + java.lang.Object ref = policyDir_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + policyDir_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SYNC_WAIT_SECS_FIELD_NUMBER = 3; + private long syncWaitSecs_ = 0L; + /** + * + * + *
          +   * Period in seconds between consecutive syncs. Default: 15.
          +   * 
          + * + * int64 sync_wait_secs = 3; + * + * @return The syncWaitSecs. + */ + @java.lang.Override + public long getSyncWaitSecs() { + return syncWaitSecs_; + } + + public static final int SECRET_TYPE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object secretType_ = ""; + /** + * + * + *
          +   * Type of secret configured for access to the Git repo.
          +   * 
          + * + * string secret_type = 4; + * + * @return The secretType. + */ + @java.lang.Override + public java.lang.String getSecretType() { + java.lang.Object ref = secretType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + secretType_ = s; + return s; + } + } + /** + * + * + *
          +   * Type of secret configured for access to the Git repo.
          +   * 
          + * + * string secret_type = 4; + * + * @return The bytes for secretType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSecretTypeBytes() { + java.lang.Object ref = secretType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + secretType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GCP_SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object gcpServiceAccountEmail_ = ""; + /** + * + * + *
          +   * The Google Cloud Service Account Email used for auth when secret_type is
          +   * gcpServiceAccount.
          +   * 
          + * + * string gcp_service_account_email = 5; + * + * @return The gcpServiceAccountEmail. + */ + @java.lang.Override + public java.lang.String getGcpServiceAccountEmail() { + java.lang.Object ref = gcpServiceAccountEmail_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcpServiceAccountEmail_ = s; + return s; + } + } + /** + * + * + *
          +   * The Google Cloud Service Account Email used for auth when secret_type is
          +   * gcpServiceAccount.
          +   * 
          + * + * string gcp_service_account_email = 5; + * + * @return The bytes for gcpServiceAccountEmail. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGcpServiceAccountEmailBytes() { + java.lang.Object ref = gcpServiceAccountEmail_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcpServiceAccountEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(syncRepo_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, syncRepo_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyDir_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, policyDir_); + } + if (syncWaitSecs_ != 0L) { + output.writeInt64(3, syncWaitSecs_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secretType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, secretType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcpServiceAccountEmail_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, gcpServiceAccountEmail_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(syncRepo_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, syncRepo_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policyDir_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, policyDir_); + } + if (syncWaitSecs_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, syncWaitSecs_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secretType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, secretType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gcpServiceAccountEmail_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, gcpServiceAccountEmail_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1.OciConfig)) { + return super.equals(obj); + } + com.google.cloud.gkehub.configmanagement.v1.OciConfig other = + (com.google.cloud.gkehub.configmanagement.v1.OciConfig) obj; + + if (!getSyncRepo().equals(other.getSyncRepo())) return false; + if (!getPolicyDir().equals(other.getPolicyDir())) return false; + if (getSyncWaitSecs() != other.getSyncWaitSecs()) return false; + if (!getSecretType().equals(other.getSecretType())) return false; + if (!getGcpServiceAccountEmail().equals(other.getGcpServiceAccountEmail())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SYNC_REPO_FIELD_NUMBER; + hash = (53 * hash) + getSyncRepo().hashCode(); + hash = (37 * hash) + POLICY_DIR_FIELD_NUMBER; + hash = (53 * hash) + getPolicyDir().hashCode(); + hash = (37 * hash) + SYNC_WAIT_SECS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSyncWaitSecs()); + hash = (37 * hash) + SECRET_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getSecretType().hashCode(); + hash = (37 * hash) + GCP_SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getGcpServiceAccountEmail().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.configmanagement.v1.OciConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.configmanagement.v1.OciConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.configmanagement.v1.OciConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.configmanagement.v1.OciConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.configmanagement.v1.OciConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkehub.configmanagement.v1.OciConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkehub.configmanagement.v1.OciConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.configmanagement.v1.OciConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.configmanagement.v1.OciConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.configmanagement.v1.OciConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gkehub.configmanagement.v1.OciConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkehub.configmanagement.v1.OciConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1.OciConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * OCI repo configuration for a single cluster
          +   * 
          + * + * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.OciConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1.OciConfig) + com.google.cloud.gkehub.configmanagement.v1.OciConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_OciConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_OciConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.configmanagement.v1.OciConfig.class, + com.google.cloud.gkehub.configmanagement.v1.OciConfig.Builder.class); + } + + // Construct using com.google.cloud.gkehub.configmanagement.v1.OciConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + syncRepo_ = ""; + policyDir_ = ""; + syncWaitSecs_ = 0L; + secretType_ = ""; + gcpServiceAccountEmail_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_OciConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1.OciConfig getDefaultInstanceForType() { + return com.google.cloud.gkehub.configmanagement.v1.OciConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1.OciConfig build() { + com.google.cloud.gkehub.configmanagement.v1.OciConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1.OciConfig buildPartial() { + com.google.cloud.gkehub.configmanagement.v1.OciConfig result = + new com.google.cloud.gkehub.configmanagement.v1.OciConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkehub.configmanagement.v1.OciConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.syncRepo_ = syncRepo_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.policyDir_ = policyDir_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.syncWaitSecs_ = syncWaitSecs_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.secretType_ = secretType_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.gcpServiceAccountEmail_ = gcpServiceAccountEmail_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gkehub.configmanagement.v1.OciConfig) { + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.OciConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1.OciConfig other) { + if (other == com.google.cloud.gkehub.configmanagement.v1.OciConfig.getDefaultInstance()) + return this; + if (!other.getSyncRepo().isEmpty()) { + syncRepo_ = other.syncRepo_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getPolicyDir().isEmpty()) { + policyDir_ = other.policyDir_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getSyncWaitSecs() != 0L) { + setSyncWaitSecs(other.getSyncWaitSecs()); + } + if (!other.getSecretType().isEmpty()) { + secretType_ = other.secretType_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getGcpServiceAccountEmail().isEmpty()) { + gcpServiceAccountEmail_ = other.gcpServiceAccountEmail_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + syncRepo_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + policyDir_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + syncWaitSecs_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + secretType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + gcpServiceAccountEmail_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object syncRepo_ = ""; + /** + * + * + *
          +     * The OCI image repository URL for the package to sync from.
          +     * e.g. `LOCATION-docker.pkg.dev/PROJECT_ID/REPOSITORY_NAME/PACKAGE_NAME`.
          +     * 
          + * + * string sync_repo = 1; + * + * @return The syncRepo. + */ + public java.lang.String getSyncRepo() { + java.lang.Object ref = syncRepo_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + syncRepo_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * The OCI image repository URL for the package to sync from.
          +     * e.g. `LOCATION-docker.pkg.dev/PROJECT_ID/REPOSITORY_NAME/PACKAGE_NAME`.
          +     * 
          + * + * string sync_repo = 1; + * + * @return The bytes for syncRepo. + */ + public com.google.protobuf.ByteString getSyncRepoBytes() { + java.lang.Object ref = syncRepo_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + syncRepo_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * The OCI image repository URL for the package to sync from.
          +     * e.g. `LOCATION-docker.pkg.dev/PROJECT_ID/REPOSITORY_NAME/PACKAGE_NAME`.
          +     * 
          + * + * string sync_repo = 1; + * + * @param value The syncRepo to set. + * @return This builder for chaining. + */ + public Builder setSyncRepo(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + syncRepo_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * The OCI image repository URL for the package to sync from.
          +     * e.g. `LOCATION-docker.pkg.dev/PROJECT_ID/REPOSITORY_NAME/PACKAGE_NAME`.
          +     * 
          + * + * string sync_repo = 1; + * + * @return This builder for chaining. + */ + public Builder clearSyncRepo() { + syncRepo_ = getDefaultInstance().getSyncRepo(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * The OCI image repository URL for the package to sync from.
          +     * e.g. `LOCATION-docker.pkg.dev/PROJECT_ID/REPOSITORY_NAME/PACKAGE_NAME`.
          +     * 
          + * + * string sync_repo = 1; + * + * @param value The bytes for syncRepo to set. + * @return This builder for chaining. + */ + public Builder setSyncRepoBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + syncRepo_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object policyDir_ = ""; + /** + * + * + *
          +     * The absolute path of the directory that contains
          +     * the local resources.  Default: the root directory of the image.
          +     * 
          + * + * string policy_dir = 2; + * + * @return The policyDir. + */ + public java.lang.String getPolicyDir() { + java.lang.Object ref = policyDir_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + policyDir_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * The absolute path of the directory that contains
          +     * the local resources.  Default: the root directory of the image.
          +     * 
          + * + * string policy_dir = 2; + * + * @return The bytes for policyDir. + */ + public com.google.protobuf.ByteString getPolicyDirBytes() { + java.lang.Object ref = policyDir_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + policyDir_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * The absolute path of the directory that contains
          +     * the local resources.  Default: the root directory of the image.
          +     * 
          + * + * string policy_dir = 2; + * + * @param value The policyDir to set. + * @return This builder for chaining. + */ + public Builder setPolicyDir(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + policyDir_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * The absolute path of the directory that contains
          +     * the local resources.  Default: the root directory of the image.
          +     * 
          + * + * string policy_dir = 2; + * + * @return This builder for chaining. + */ + public Builder clearPolicyDir() { + policyDir_ = getDefaultInstance().getPolicyDir(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
          +     * The absolute path of the directory that contains
          +     * the local resources.  Default: the root directory of the image.
          +     * 
          + * + * string policy_dir = 2; + * + * @param value The bytes for policyDir to set. + * @return This builder for chaining. + */ + public Builder setPolicyDirBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + policyDir_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private long syncWaitSecs_; + /** + * + * + *
          +     * Period in seconds between consecutive syncs. Default: 15.
          +     * 
          + * + * int64 sync_wait_secs = 3; + * + * @return The syncWaitSecs. + */ + @java.lang.Override + public long getSyncWaitSecs() { + return syncWaitSecs_; + } + /** + * + * + *
          +     * Period in seconds between consecutive syncs. Default: 15.
          +     * 
          + * + * int64 sync_wait_secs = 3; + * + * @param value The syncWaitSecs to set. + * @return This builder for chaining. + */ + public Builder setSyncWaitSecs(long value) { + + syncWaitSecs_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Period in seconds between consecutive syncs. Default: 15.
          +     * 
          + * + * int64 sync_wait_secs = 3; + * + * @return This builder for chaining. + */ + public Builder clearSyncWaitSecs() { + bitField0_ = (bitField0_ & ~0x00000004); + syncWaitSecs_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object secretType_ = ""; + /** + * + * + *
          +     * Type of secret configured for access to the Git repo.
          +     * 
          + * + * string secret_type = 4; + * + * @return The secretType. + */ + public java.lang.String getSecretType() { + java.lang.Object ref = secretType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + secretType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Type of secret configured for access to the Git repo.
          +     * 
          + * + * string secret_type = 4; + * + * @return The bytes for secretType. + */ + public com.google.protobuf.ByteString getSecretTypeBytes() { + java.lang.Object ref = secretType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + secretType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Type of secret configured for access to the Git repo.
          +     * 
          + * + * string secret_type = 4; + * + * @param value The secretType to set. + * @return This builder for chaining. + */ + public Builder setSecretType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + secretType_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * Type of secret configured for access to the Git repo.
          +     * 
          + * + * string secret_type = 4; + * + * @return This builder for chaining. + */ + public Builder clearSecretType() { + secretType_ = getDefaultInstance().getSecretType(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
          +     * Type of secret configured for access to the Git repo.
          +     * 
          + * + * string secret_type = 4; + * + * @param value The bytes for secretType to set. + * @return This builder for chaining. + */ + public Builder setSecretTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + secretType_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object gcpServiceAccountEmail_ = ""; + /** + * + * + *
          +     * The Google Cloud Service Account Email used for auth when secret_type is
          +     * gcpServiceAccount.
          +     * 
          + * + * string gcp_service_account_email = 5; + * + * @return The gcpServiceAccountEmail. + */ + public java.lang.String getGcpServiceAccountEmail() { + java.lang.Object ref = gcpServiceAccountEmail_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcpServiceAccountEmail_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * The Google Cloud Service Account Email used for auth when secret_type is
          +     * gcpServiceAccount.
          +     * 
          + * + * string gcp_service_account_email = 5; + * + * @return The bytes for gcpServiceAccountEmail. + */ + public com.google.protobuf.ByteString getGcpServiceAccountEmailBytes() { + java.lang.Object ref = gcpServiceAccountEmail_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcpServiceAccountEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * The Google Cloud Service Account Email used for auth when secret_type is
          +     * gcpServiceAccount.
          +     * 
          + * + * string gcp_service_account_email = 5; + * + * @param value The gcpServiceAccountEmail to set. + * @return This builder for chaining. + */ + public Builder setGcpServiceAccountEmail(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gcpServiceAccountEmail_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
          +     * The Google Cloud Service Account Email used for auth when secret_type is
          +     * gcpServiceAccount.
          +     * 
          + * + * string gcp_service_account_email = 5; + * + * @return This builder for chaining. + */ + public Builder clearGcpServiceAccountEmail() { + gcpServiceAccountEmail_ = getDefaultInstance().getGcpServiceAccountEmail(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
          +     * The Google Cloud Service Account Email used for auth when secret_type is
          +     * gcpServiceAccount.
          +     * 
          + * + * string gcp_service_account_email = 5; + * + * @param value The bytes for gcpServiceAccountEmail to set. + * @return This builder for chaining. + */ + public Builder setGcpServiceAccountEmailBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcpServiceAccountEmail_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1.OciConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1.OciConfig) + private static final com.google.cloud.gkehub.configmanagement.v1.OciConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1.OciConfig(); + } + + public static com.google.cloud.gkehub.configmanagement.v1.OciConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OciConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1.OciConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/OciConfigOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/OciConfigOrBuilder.java new file mode 100644 index 000000000000..6f7ff47bbc62 --- /dev/null +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/OciConfigOrBuilder.java @@ -0,0 +1,145 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gkehub.configmanagement.v1; + +public interface OciConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1.OciConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * The OCI image repository URL for the package to sync from.
          +   * e.g. `LOCATION-docker.pkg.dev/PROJECT_ID/REPOSITORY_NAME/PACKAGE_NAME`.
          +   * 
          + * + * string sync_repo = 1; + * + * @return The syncRepo. + */ + java.lang.String getSyncRepo(); + /** + * + * + *
          +   * The OCI image repository URL for the package to sync from.
          +   * e.g. `LOCATION-docker.pkg.dev/PROJECT_ID/REPOSITORY_NAME/PACKAGE_NAME`.
          +   * 
          + * + * string sync_repo = 1; + * + * @return The bytes for syncRepo. + */ + com.google.protobuf.ByteString getSyncRepoBytes(); + + /** + * + * + *
          +   * The absolute path of the directory that contains
          +   * the local resources.  Default: the root directory of the image.
          +   * 
          + * + * string policy_dir = 2; + * + * @return The policyDir. + */ + java.lang.String getPolicyDir(); + /** + * + * + *
          +   * The absolute path of the directory that contains
          +   * the local resources.  Default: the root directory of the image.
          +   * 
          + * + * string policy_dir = 2; + * + * @return The bytes for policyDir. + */ + com.google.protobuf.ByteString getPolicyDirBytes(); + + /** + * + * + *
          +   * Period in seconds between consecutive syncs. Default: 15.
          +   * 
          + * + * int64 sync_wait_secs = 3; + * + * @return The syncWaitSecs. + */ + long getSyncWaitSecs(); + + /** + * + * + *
          +   * Type of secret configured for access to the Git repo.
          +   * 
          + * + * string secret_type = 4; + * + * @return The secretType. + */ + java.lang.String getSecretType(); + /** + * + * + *
          +   * Type of secret configured for access to the Git repo.
          +   * 
          + * + * string secret_type = 4; + * + * @return The bytes for secretType. + */ + com.google.protobuf.ByteString getSecretTypeBytes(); + + /** + * + * + *
          +   * The Google Cloud Service Account Email used for auth when secret_type is
          +   * gcpServiceAccount.
          +   * 
          + * + * string gcp_service_account_email = 5; + * + * @return The gcpServiceAccountEmail. + */ + java.lang.String getGcpServiceAccountEmail(); + /** + * + * + *
          +   * The Google Cloud Service Account Email used for auth when secret_type is
          +   * gcpServiceAccount.
          +   * 
          + * + * string gcp_service_account_email = 5; + * + * @return The bytes for gcpServiceAccountEmail. + */ + com.google.protobuf.ByteString getGcpServiceAccountEmailBytes(); +} diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncState.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncState.java index 7d420d6b44a7..b2fcc86db48a 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncState.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncState.java @@ -72,7 +72,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
          -   * An enum representing an ACM's status syncing configs to a cluster
          +   * An enum representing Config Sync's status of syncing configs to a cluster.
              * 
          * * Protobuf enum {@code google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode} @@ -82,7 +82,7 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { * * *
          -     * ACM cannot determine a sync code
          +     * Config Sync cannot determine a sync code
                * 
          * * SYNC_CODE_UNSPECIFIED = 0; @@ -92,7 +92,7 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { * * *
          -     * ACM successfully synced the git Repo with the cluster
          +     * Config Sync successfully synced the git Repo with the cluster
                * 
          * * SYNCED = 1; @@ -102,7 +102,7 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { * * *
          -     * ACM is in the progress of syncing a new change
          +     * Config Sync is in the progress of syncing a new change
                * 
          * * PENDING = 2; @@ -112,7 +112,7 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { * * *
          -     * Indicates an error configuring ACM, and user action is required
          +     * Indicates an error configuring Config Sync, and user action is required
                * 
          * * ERROR = 3; @@ -122,8 +122,7 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { * * *
          -     * ACM has been installed (operator manifest deployed),
          -     * but not configured.
          +     * Config Sync has been installed but not configured
                * 
          * * NOT_CONFIGURED = 4; @@ -133,7 +132,7 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { * * *
          -     * ACM has not been installed (no operator pod found)
          +     * Config Sync has not been installed
                * 
          * * NOT_INSTALLED = 5; @@ -166,7 +165,7 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { * * *
          -     * ACM cannot determine a sync code
          +     * Config Sync cannot determine a sync code
                * 
          * * SYNC_CODE_UNSPECIFIED = 0; @@ -176,7 +175,7 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { * * *
          -     * ACM successfully synced the git Repo with the cluster
          +     * Config Sync successfully synced the git Repo with the cluster
                * 
          * * SYNCED = 1; @@ -186,7 +185,7 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { * * *
          -     * ACM is in the progress of syncing a new change
          +     * Config Sync is in the progress of syncing a new change
                * 
          * * PENDING = 2; @@ -196,7 +195,7 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { * * *
          -     * Indicates an error configuring ACM, and user action is required
          +     * Indicates an error configuring Config Sync, and user action is required
                * 
          * * ERROR = 3; @@ -206,8 +205,7 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { * * *
          -     * ACM has been installed (operator manifest deployed),
          -     * but not configured.
          +     * Config Sync has been installed but not configured
                * 
          * * NOT_CONFIGURED = 4; @@ -217,7 +215,7 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { * * *
          -     * ACM has not been installed (no operator pod found)
          +     * Config Sync has not been installed
                * 
          * * NOT_INSTALLED = 5; @@ -509,7 +507,7 @@ public com.google.protobuf.ByteString getSyncTokenBytes() { * string last_sync = 4 [deprecated = true]; * * @deprecated google.cloud.gkehub.configmanagement.v1.SyncState.last_sync is deprecated. See - * google/cloud/gkehub/v1/configmanagement/configmanagement.proto;l=305 + * google/cloud/gkehub/v1/configmanagement/configmanagement.proto;l=436 * @return The lastSync. */ @java.lang.Override @@ -537,7 +535,7 @@ public java.lang.String getLastSync() { * string last_sync = 4 [deprecated = true]; * * @deprecated google.cloud.gkehub.configmanagement.v1.SyncState.last_sync is deprecated. See - * google/cloud/gkehub/v1/configmanagement/configmanagement.proto;l=305 + * google/cloud/gkehub/v1/configmanagement/configmanagement.proto;l=436 * @return The bytes for lastSync. */ @java.lang.Override @@ -1613,7 +1611,7 @@ public Builder setSyncTokenBytes(com.google.protobuf.ByteString value) { * string last_sync = 4 [deprecated = true]; * * @deprecated google.cloud.gkehub.configmanagement.v1.SyncState.last_sync is deprecated. See - * google/cloud/gkehub/v1/configmanagement/configmanagement.proto;l=305 + * google/cloud/gkehub/v1/configmanagement/configmanagement.proto;l=436 * @return The lastSync. */ @java.lang.Deprecated @@ -1640,7 +1638,7 @@ public java.lang.String getLastSync() { * string last_sync = 4 [deprecated = true]; * * @deprecated google.cloud.gkehub.configmanagement.v1.SyncState.last_sync is deprecated. See - * google/cloud/gkehub/v1/configmanagement/configmanagement.proto;l=305 + * google/cloud/gkehub/v1/configmanagement/configmanagement.proto;l=436 * @return The bytes for lastSync. */ @java.lang.Deprecated @@ -1667,7 +1665,7 @@ public com.google.protobuf.ByteString getLastSyncBytes() { * string last_sync = 4 [deprecated = true]; * * @deprecated google.cloud.gkehub.configmanagement.v1.SyncState.last_sync is deprecated. See - * google/cloud/gkehub/v1/configmanagement/configmanagement.proto;l=305 + * google/cloud/gkehub/v1/configmanagement/configmanagement.proto;l=436 * @param value The lastSync to set. * @return This builder for chaining. */ @@ -1693,7 +1691,7 @@ public Builder setLastSync(java.lang.String value) { * string last_sync = 4 [deprecated = true]; * * @deprecated google.cloud.gkehub.configmanagement.v1.SyncState.last_sync is deprecated. See - * google/cloud/gkehub/v1/configmanagement/configmanagement.proto;l=305 + * google/cloud/gkehub/v1/configmanagement/configmanagement.proto;l=436 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1715,7 +1713,7 @@ public Builder clearLastSync() { * string last_sync = 4 [deprecated = true]; * * @deprecated google.cloud.gkehub.configmanagement.v1.SyncState.last_sync is deprecated. See - * google/cloud/gkehub/v1/configmanagement/configmanagement.proto;l=305 + * google/cloud/gkehub/v1/configmanagement/configmanagement.proto;l=436 * @param value The bytes for lastSync to set. * @return This builder for chaining. */ diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncStateOrBuilder.java b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncStateOrBuilder.java index 3a7ca0e8026b..f5a2cafaccbb 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncStateOrBuilder.java +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncStateOrBuilder.java @@ -111,7 +111,7 @@ public interface SyncStateOrBuilder * string last_sync = 4 [deprecated = true]; * * @deprecated google.cloud.gkehub.configmanagement.v1.SyncState.last_sync is deprecated. See - * google/cloud/gkehub/v1/configmanagement/configmanagement.proto;l=305 + * google/cloud/gkehub/v1/configmanagement/configmanagement.proto;l=436 * @return The lastSync. */ @java.lang.Deprecated @@ -128,7 +128,7 @@ public interface SyncStateOrBuilder * string last_sync = 4 [deprecated = true]; * * @deprecated google.cloud.gkehub.configmanagement.v1.SyncState.last_sync is deprecated. See - * google/cloud/gkehub/v1/configmanagement/configmanagement.proto;l=305 + * google/cloud/gkehub/v1/configmanagement/configmanagement.proto;l=436 * @return The bytes for lastSync. */ @java.lang.Deprecated diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/configmanagement/configmanagement.proto b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/configmanagement/configmanagement.proto index 8d69e97d8ba6..dbfa47fdf393 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/configmanagement/configmanagement.proto +++ b/java-gkehub/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/configmanagement/configmanagement.proto @@ -39,15 +39,15 @@ enum DeploymentState { // Deployment was attempted to be installed, but has errors ERROR = 3; + + // Deployment is installing or terminating + PENDING = 4; } // **Anthos Config Management**: State for a single cluster. message MembershipState { - // The user-defined name for the cluster used by ClusterSelectors to group - // clusters together. This should match Membership's membership_name, - // unless the user installed ACM on the cluster manually prior to enabling - // the ACM hub feature. - // Unique within a Anthos Config Management installation. + // This field is set to the `cluster_name` field of the Membership Spec if it + // is not empty. Otherwise, it is set to the cluster's fleet membership name. string cluster_name = 1; // Membership configuration in the cluster. This represents the actual state @@ -71,6 +71,18 @@ message MembershipState { // **Anthos Config Management**: Configuration for a single cluster. // Intended to parallel the ConfigManagement CR. message MembershipSpec { + // Whether to automatically manage the Feature. + enum Management { + // Unspecified + MANAGEMENT_UNSPECIFIED = 0; + + // Google will manage the Feature for the cluster. + MANAGEMENT_AUTOMATIC = 1; + + // User will manually manage the Feature for the cluster. + MANAGEMENT_MANUAL = 2; + } + // Config Sync configuration for the cluster. ConfigSync config_sync = 1; @@ -82,6 +94,18 @@ message MembershipSpec { // Version of ACM installed. string version = 10; + + // The user-specified cluster name used by Config Sync cluster-name-selector + // annotation or ClusterSelector, for applying configs to only a subset + // of clusters. + // Omit this field if the cluster's fleet membership name is used by Config + // Sync cluster-name-selector annotation or ClusterSelector. + // Set this field if a name different from the cluster's fleet membership name + // is used by Config Sync cluster-name-selector annotation or ClusterSelector. + string cluster = 11; + + // Enables automatic Feature management. + Management management = 12; } // Configuration for Config Sync @@ -90,8 +114,33 @@ message ConfigSync { GitConfig git = 7; // Specifies whether the Config Sync Repo is - // in “hierarchical” or “unstructured” mode. + // in "hierarchical" or "unstructured" mode. string source_format = 8; + + // Enables the installation of ConfigSync. + // If set to true, ConfigSync resources will be created and the other + // ConfigSync fields will be applied if exist. + // If set to false, all other ConfigSync fields will be ignored, ConfigSync + // resources will be deleted. + // If omitted, ConfigSync resources will be managed depends on the presence + // of the git or oci field. + optional bool enabled = 10; + + // Set to true to enable the Config Sync admission webhook to prevent drifts. + // If set to `false`, disables the Config Sync admission webhook and does not + // prevent drifts. + bool prevent_drift = 11; + + // OCI repo configuration for the cluster + OciConfig oci = 12; + + // The Email of the Google Cloud Service Account (GSA) used for exporting + // Config Sync metrics to Cloud Monitoring when Workload Identity is enabled. + // The GSA should have the Monitoring Metric Writer + // (roles/monitoring.metricWriter) IAM role. + // The Kubernetes ServiceAccount `default` in the namespace + // `config-management-monitoring` should be bound to the GSA. + string metrics_gcp_service_account_email = 15; } // Git repo configuration for a single cluster. @@ -112,17 +161,40 @@ message GitConfig { // Git revision (tag or hash) to check out. Default HEAD. string sync_rev = 5; - // Type of secret configured for access to the Git repo. + // Type of secret configured for access to the Git repo. Must be one of ssh, + // cookiefile, gcenode, token, gcpserviceaccount or none. The + // validation of this is case-sensitive. Required. string secret_type = 6; // URL for the HTTPS proxy to be used when communicating with the Git repo. string https_proxy = 7; - // The GCP Service Account Email used for auth when secret_type is + // The Google Cloud Service Account Email used for auth when secret_type is // gcpServiceAccount. string gcp_service_account_email = 8; } +// OCI repo configuration for a single cluster +message OciConfig { + // The OCI image repository URL for the package to sync from. + // e.g. `LOCATION-docker.pkg.dev/PROJECT_ID/REPOSITORY_NAME/PACKAGE_NAME`. + string sync_repo = 1; + + // The absolute path of the directory that contains + // the local resources. Default: the root directory of the image. + string policy_dir = 2; + + // Period in seconds between consecutive syncs. Default: 15. + int64 sync_wait_secs = 3; + + // Type of secret configured for access to the Git repo. + string secret_type = 4; + + // The Google Cloud Service Account Email used for auth when secret_type is + // gcpServiceAccount. + string gcp_service_account_email = 5; +} + // Configuration for Policy Controller message PolicyController { // Enables the installation of Policy Controller. @@ -208,6 +280,41 @@ message InstallError { // State information for ConfigSync message ConfigSyncState { + // CRDState representing the state of a CRD + enum CRDState { + // CRD's state cannot be determined + CRD_STATE_UNSPECIFIED = 0; + + // CRD is not installed + NOT_INSTALLED = 1; + + // CRD is installed + INSTALLED = 2; + + // CRD is terminating (i.e., it has been deleted and is cleaning up) + TERMINATING = 3; + + // CRD is installing + INSTALLING = 4; + } + + enum State { + // CS's state cannot be determined. + STATE_UNSPECIFIED = 0; + + // CS is not installed. + CONFIG_SYNC_NOT_INSTALLED = 1; + + // The expected CS version is installed successfully. + CONFIG_SYNC_INSTALLED = 2; + + // CS encounters errors. + CONFIG_SYNC_ERROR = 3; + + // CS is installing or terminating. + CONFIG_SYNC_PENDING = 4; + } + // The version of ConfigSync deployed ConfigSyncVersion version = 1; @@ -217,6 +324,25 @@ message ConfigSyncState { // The state of ConfigSync's process to sync configs to a cluster SyncState sync_state = 3; + + // Errors pertaining to the installation of Config Sync. + repeated ConfigSyncError errors = 4; + + // The state of the RootSync CRD + CRDState rootsync_crd = 5; + + // The state of the Reposync CRD + CRDState reposync_crd = 6; + + // The state of CS + // This field summarizes the other fields in this message. + State state = 7; +} + +// Errors pertaining to the installation of Config Sync +message ConfigSyncError { + // A string representing the user facing error message + string error_message = 1; } // Specific versioning information pertaining to ConfigSync's Pods @@ -238,6 +364,9 @@ message ConfigSyncVersion { // Version of the deployed reconciler container in root-reconciler pod string root_reconciler = 6; + + // Version of the deployed admission_webhook pod + string admission_webhook = 7; } // The state of ConfigSync's deployment on a cluster @@ -259,29 +388,31 @@ message ConfigSyncDeploymentState { // Deployment state of root-reconciler DeploymentState root_reconciler = 6; + + // Deployment state of admission-webhook + DeploymentState admission_webhook = 7; } // State indicating an ACM's progress syncing configurations to a cluster message SyncState { - // An enum representing an ACM's status syncing configs to a cluster + // An enum representing Config Sync's status of syncing configs to a cluster. enum SyncCode { - // ACM cannot determine a sync code + // Config Sync cannot determine a sync code SYNC_CODE_UNSPECIFIED = 0; - // ACM successfully synced the git Repo with the cluster + // Config Sync successfully synced the git Repo with the cluster SYNCED = 1; - // ACM is in the progress of syncing a new change + // Config Sync is in the progress of syncing a new change PENDING = 2; - // Indicates an error configuring ACM, and user action is required + // Indicates an error configuring Config Sync, and user action is required ERROR = 3; - // ACM has been installed (operator manifest deployed), - // but not configured. + // Config Sync has been installed but not configured NOT_CONFIGURED = 4; - // ACM has not been installed (no operator pod found) + // Config Sync has not been installed NOT_INSTALLED = 5; // Error authorizing with the cluster diff --git a/java-grafeas/README.md b/java-grafeas/README.md index 3d656b5335c3..cbc7f3e15cda 100644 --- a/java-grafeas/README.md +++ b/java-grafeas/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/io.grafeas/grafeas.svg -[maven-version-link]: https://central.sonatype.com/artifact/io.grafeas/grafeas/2.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/io.grafeas/grafeas/2.46.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-gsuite-addons/README.md b/java-gsuite-addons/README.md index 7f191aeb0765..176299c4e588 100644 --- a/java-gsuite-addons/README.md +++ b/java-gsuite-addons/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gsuite-addons.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gsuite-addons/2.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gsuite-addons/2.45.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-iam-admin/README.md b/java-iam-admin/README.md index e738cdef6162..a6146d83058d 100644 --- a/java-iam-admin/README.md +++ b/java-iam-admin/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-iam-admin.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-admin/3.39.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-admin/3.40.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-iam/.repo-metadata.json b/java-iam/.repo-metadata.json index fa9ab8c76a75..57d009a58b16 100644 --- a/java-iam/.repo-metadata.json +++ b/java-iam/.repo-metadata.json @@ -5,7 +5,7 @@ "api_description": "n/a", "client_documentation": "https://cloud.google.com/java/docs/reference/proto-google-iam-v1/latest/history", "release_level": "stable", - "transport": "both", + "transport": "grpc", "language": "java", "repo": "googleapis/google-cloud-java", "repo_short": "java-iam", diff --git a/java-iam/README.md b/java-iam/README.md index 46f7d19e32d0..bc398290f8e9 100644 --- a/java-iam/README.md +++ b/java-iam/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -101,7 +101,7 @@ To get help, follow the instructions in the [shared Troubleshooting document][tr ## Transport -IAM uses both gRPC and HTTP/JSON for the transport layer. +IAM uses gRPC for the transport layer. ## Supported Java Versions @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-iam-policy.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-policy/1.42.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-policy/1.43.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-iamcredentials/README.md b/java-iamcredentials/README.md index 878b75902cfe..26e1e5c350fc 100644 --- a/java-iamcredentials/README.md +++ b/java-iamcredentials/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-iamcredentials.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iamcredentials/2.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iamcredentials/2.45.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-iap/README.md b/java-iap/README.md index a071fd42a427..384b8b812d0c 100644 --- a/java-iap/README.md +++ b/java-iap/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-iap.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iap/0.0.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iap/0.1.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-iap/pom.xml b/java-iap/pom.xml index 05a5d88eaaa7..d1c7fab91832 100644 --- a/java-iap/pom.xml +++ b/java-iap/pom.xml @@ -52,4 +52,4 @@ google-cloud-iap-bom - + diff --git a/java-ids/README.md b/java-ids/README.md index aaa584d56031..ef6c7609c81a 100644 --- a/java-ids/README.md +++ b/java-ids/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-ids.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-ids/1.43.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-ids/1.44.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-infra-manager/README.md b/java-infra-manager/README.md index 6bd698c45be0..da30cca7a36a 100644 --- a/java-infra-manager/README.md +++ b/java-infra-manager/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-infra-manager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-infra-manager/0.21.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-infra-manager/0.22.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-iot/README.md b/java-iot/README.md index c68bed34208b..96d7891533b4 100644 --- a/java-iot/README.md +++ b/java-iot/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-iot.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iot/2.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iot/2.45.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-kms/README.md b/java-kms/README.md index c85386f2a1e5..74b885149ed5 100644 --- a/java-kms/README.md +++ b/java-kms/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-kms.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kms/2.47.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kms/2.48.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-kms/google-cloud-kms/src/main/resources/META-INF/native-image/com.google.cloud.kms.v1/reflect-config.json b/java-kms/google-cloud-kms/src/main/resources/META-INF/native-image/com.google.cloud.kms.v1/reflect-config.json index e8dc0ea8afd7..973d7f0d850c 100644 --- a/java-kms/google-cloud-kms/src/main/resources/META-INF/native-image/com.google.cloud.kms.v1/reflect-config.json +++ b/java-kms/google-cloud-kms/src/main/resources/META-INF/native-image/com.google.cloud.kms.v1/reflect-config.json @@ -377,6 +377,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.kms.v1.AccessReason", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.kms.v1.AsymmetricDecryptRequest", "queryAllDeclaredConstructors": true, @@ -1160,6 +1169,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.kms.v1.KeyAccessJustificationsPolicy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.kms.v1.KeyAccessJustificationsPolicy$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.kms.v1.KeyHandle", "queryAllDeclaredConstructors": true, diff --git a/java-kms/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/KeyManagementServiceClientHttpJsonTest.java b/java-kms/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/KeyManagementServiceClientHttpJsonTest.java index fb94e8cc7637..4d55ed8aa807 100644 --- a/java-kms/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/KeyManagementServiceClientHttpJsonTest.java +++ b/java-kms/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/KeyManagementServiceClientHttpJsonTest.java @@ -611,6 +611,7 @@ public void getCryptoKeyTest() throws Exception { .setCryptoKeyBackend( CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") .toString()) + .setKeyAccessJustificationsPolicy(KeyAccessJustificationsPolicy.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -668,6 +669,7 @@ public void getCryptoKeyTest2() throws Exception { .setCryptoKeyBackend( CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") .toString()) + .setKeyAccessJustificationsPolicy(KeyAccessJustificationsPolicy.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -1165,6 +1167,7 @@ public void createCryptoKeyTest() throws Exception { .setImportOnly(true) .setDestroyScheduledDuration(Duration.newBuilder().build()) .setCryptoKeyBackend(KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]").toString()) + .setKeyAccessJustificationsPolicy(KeyAccessJustificationsPolicy.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -1223,6 +1226,7 @@ public void createCryptoKeyTest2() throws Exception { .setImportOnly(true) .setDestroyScheduledDuration(Duration.newBuilder().build()) .setCryptoKeyBackend(KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]").toString()) + .setKeyAccessJustificationsPolicy(KeyAccessJustificationsPolicy.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -1627,6 +1631,7 @@ public void updateCryptoKeyTest() throws Exception { .setCryptoKeyBackend( CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") .toString()) + .setKeyAccessJustificationsPolicy(KeyAccessJustificationsPolicy.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -1645,6 +1650,7 @@ public void updateCryptoKeyTest() throws Exception { .setCryptoKeyBackend( CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") .toString()) + .setKeyAccessJustificationsPolicy(KeyAccessJustificationsPolicy.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -1689,6 +1695,7 @@ public void updateCryptoKeyExceptionTest() throws Exception { .setCryptoKeyBackend( CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") .toString()) + .setKeyAccessJustificationsPolicy(KeyAccessJustificationsPolicy.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateCryptoKey(cryptoKey, updateMask); @@ -1828,6 +1835,7 @@ public void updateCryptoKeyPrimaryVersionTest() throws Exception { .setCryptoKeyBackend( CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") .toString()) + .setKeyAccessJustificationsPolicy(KeyAccessJustificationsPolicy.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -1887,6 +1895,7 @@ public void updateCryptoKeyPrimaryVersionTest2() throws Exception { .setCryptoKeyBackend( CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") .toString()) + .setKeyAccessJustificationsPolicy(KeyAccessJustificationsPolicy.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); diff --git a/java-kms/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/KeyManagementServiceClientTest.java b/java-kms/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/KeyManagementServiceClientTest.java index f42f2555e4ff..4b9ff67e869e 100644 --- a/java-kms/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/KeyManagementServiceClientTest.java +++ b/java-kms/google-cloud-kms/src/test/java/com/google/cloud/kms/v1/KeyManagementServiceClientTest.java @@ -559,6 +559,7 @@ public void getCryptoKeyTest() throws Exception { .setCryptoKeyBackend( CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") .toString()) + .setKeyAccessJustificationsPolicy(KeyAccessJustificationsPolicy.newBuilder().build()) .build(); mockKeyManagementService.addResponse(expectedResponse); @@ -610,6 +611,7 @@ public void getCryptoKeyTest2() throws Exception { .setCryptoKeyBackend( CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") .toString()) + .setKeyAccessJustificationsPolicy(KeyAccessJustificationsPolicy.newBuilder().build()) .build(); mockKeyManagementService.addResponse(expectedResponse); @@ -1049,6 +1051,7 @@ public void createCryptoKeyTest() throws Exception { .setImportOnly(true) .setDestroyScheduledDuration(Duration.newBuilder().build()) .setCryptoKeyBackend(KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]").toString()) + .setKeyAccessJustificationsPolicy(KeyAccessJustificationsPolicy.newBuilder().build()) .build(); mockKeyManagementService.addResponse(expectedResponse); @@ -1103,6 +1106,7 @@ public void createCryptoKeyTest2() throws Exception { .setImportOnly(true) .setDestroyScheduledDuration(Duration.newBuilder().build()) .setCryptoKeyBackend(KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]").toString()) + .setKeyAccessJustificationsPolicy(KeyAccessJustificationsPolicy.newBuilder().build()) .build(); mockKeyManagementService.addResponse(expectedResponse); @@ -1485,6 +1489,7 @@ public void updateCryptoKeyTest() throws Exception { .setCryptoKeyBackend( CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") .toString()) + .setKeyAccessJustificationsPolicy(KeyAccessJustificationsPolicy.newBuilder().build()) .build(); mockKeyManagementService.addResponse(expectedResponse); @@ -1600,6 +1605,7 @@ public void updateCryptoKeyPrimaryVersionTest() throws Exception { .setCryptoKeyBackend( CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") .toString()) + .setKeyAccessJustificationsPolicy(KeyAccessJustificationsPolicy.newBuilder().build()) .build(); mockKeyManagementService.addResponse(expectedResponse); @@ -1655,6 +1661,7 @@ public void updateCryptoKeyPrimaryVersionTest2() throws Exception { .setCryptoKeyBackend( CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") .toString()) + .setKeyAccessJustificationsPolicy(KeyAccessJustificationsPolicy.newBuilder().build()) .build(); mockKeyManagementService.addResponse(expectedResponse); diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AccessReason.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AccessReason.java new file mode 100644 index 000000000000..162f7274926d --- /dev/null +++ b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/AccessReason.java @@ -0,0 +1,429 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/kms/v1/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.kms.v1; + +/** + * + * + *
          + * Describes the reason for a data access. Please refer to
          + * https://cloud.google.com/assured-workloads/key-access-justifications/docs/justification-codes
          + * for the detailed semantic meaning of justification reason codes.
          + * 
          + * + * Protobuf enum {@code google.cloud.kms.v1.AccessReason} + */ +public enum AccessReason implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
          +   * Unspecified access reason.
          +   * 
          + * + * REASON_UNSPECIFIED = 0; + */ + REASON_UNSPECIFIED(0), + /** + * + * + *
          +   * Customer-initiated support.
          +   * 
          + * + * CUSTOMER_INITIATED_SUPPORT = 1; + */ + CUSTOMER_INITIATED_SUPPORT(1), + /** + * + * + *
          +   * Google-initiated access for system management and troubleshooting.
          +   * 
          + * + * GOOGLE_INITIATED_SERVICE = 2; + */ + GOOGLE_INITIATED_SERVICE(2), + /** + * + * + *
          +   * Google-initiated access in response to a legal request or legal process.
          +   * 
          + * + * THIRD_PARTY_DATA_REQUEST = 3; + */ + THIRD_PARTY_DATA_REQUEST(3), + /** + * + * + *
          +   * Google-initiated access for security, fraud, abuse, or compliance purposes.
          +   * 
          + * + * GOOGLE_INITIATED_REVIEW = 4; + */ + GOOGLE_INITIATED_REVIEW(4), + /** + * + * + *
          +   * Customer uses their account to perform any access to their own data which
          +   * their IAM policy authorizes.
          +   * 
          + * + * CUSTOMER_INITIATED_ACCESS = 5; + */ + CUSTOMER_INITIATED_ACCESS(5), + /** + * + * + *
          +   * Google systems access customer data to help optimize the structure of the
          +   * data or quality for future uses by the customer.
          +   * 
          + * + * GOOGLE_INITIATED_SYSTEM_OPERATION = 6; + */ + GOOGLE_INITIATED_SYSTEM_OPERATION(6), + /** + * + * + *
          +   * No reason is expected for this key request.
          +   * 
          + * + * REASON_NOT_EXPECTED = 7; + */ + REASON_NOT_EXPECTED(7), + /** + * + * + *
          +   * Customer uses their account to perform any access to their own data which
          +   * their IAM policy authorizes, and one of the following is true:
          +   *
          +   * * A Google administrator has reset the root-access account associated with
          +   *   the user's organization within the past 7 days.
          +   * * A Google-initiated emergency access operation has interacted with a
          +   *   resource in the same project or folder as the currently accessed resource
          +   *   within the past 7 days.
          +   * 
          + * + * MODIFIED_CUSTOMER_INITIATED_ACCESS = 8; + */ + MODIFIED_CUSTOMER_INITIATED_ACCESS(8), + /** + * + * + *
          +   * Google systems access customer data to help optimize the structure of the
          +   * data or quality for future uses by the customer, and one of the following
          +   * is true:
          +   *
          +   * * A Google administrator has reset the root-access account associated with
          +   *   the user's organization within the past 7 days.
          +   * * A Google-initiated emergency access operation has interacted with a
          +   *   resource in the same project or folder as the currently accessed resource
          +   *   within the past 7 days.
          +   * 
          + * + * MODIFIED_GOOGLE_INITIATED_SYSTEM_OPERATION = 9; + */ + MODIFIED_GOOGLE_INITIATED_SYSTEM_OPERATION(9), + /** + * + * + *
          +   * Google-initiated access to maintain system reliability.
          +   * 
          + * + * GOOGLE_RESPONSE_TO_PRODUCTION_ALERT = 10; + */ + GOOGLE_RESPONSE_TO_PRODUCTION_ALERT(10), + /** + * + * + *
          +   * One of the following operations is being executed while simultaneously
          +   * encountering an internal technical issue which prevented a more precise
          +   * justification code from being generated:
          +   *
          +   * * Your account has been used to perform any access to your own data which
          +   *   your IAM policy authorizes.
          +   * * An automated Google system operates on encrypted customer data which your
          +   *   IAM policy authorizes.
          +   * * Customer-initiated Google support access.
          +   * * Google-initiated support access to protect system reliability.
          +   * 
          + * + * CUSTOMER_AUTHORIZED_WORKFLOW_SERVICING = 11; + */ + CUSTOMER_AUTHORIZED_WORKFLOW_SERVICING(11), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
          +   * Unspecified access reason.
          +   * 
          + * + * REASON_UNSPECIFIED = 0; + */ + public static final int REASON_UNSPECIFIED_VALUE = 0; + /** + * + * + *
          +   * Customer-initiated support.
          +   * 
          + * + * CUSTOMER_INITIATED_SUPPORT = 1; + */ + public static final int CUSTOMER_INITIATED_SUPPORT_VALUE = 1; + /** + * + * + *
          +   * Google-initiated access for system management and troubleshooting.
          +   * 
          + * + * GOOGLE_INITIATED_SERVICE = 2; + */ + public static final int GOOGLE_INITIATED_SERVICE_VALUE = 2; + /** + * + * + *
          +   * Google-initiated access in response to a legal request or legal process.
          +   * 
          + * + * THIRD_PARTY_DATA_REQUEST = 3; + */ + public static final int THIRD_PARTY_DATA_REQUEST_VALUE = 3; + /** + * + * + *
          +   * Google-initiated access for security, fraud, abuse, or compliance purposes.
          +   * 
          + * + * GOOGLE_INITIATED_REVIEW = 4; + */ + public static final int GOOGLE_INITIATED_REVIEW_VALUE = 4; + /** + * + * + *
          +   * Customer uses their account to perform any access to their own data which
          +   * their IAM policy authorizes.
          +   * 
          + * + * CUSTOMER_INITIATED_ACCESS = 5; + */ + public static final int CUSTOMER_INITIATED_ACCESS_VALUE = 5; + /** + * + * + *
          +   * Google systems access customer data to help optimize the structure of the
          +   * data or quality for future uses by the customer.
          +   * 
          + * + * GOOGLE_INITIATED_SYSTEM_OPERATION = 6; + */ + public static final int GOOGLE_INITIATED_SYSTEM_OPERATION_VALUE = 6; + /** + * + * + *
          +   * No reason is expected for this key request.
          +   * 
          + * + * REASON_NOT_EXPECTED = 7; + */ + public static final int REASON_NOT_EXPECTED_VALUE = 7; + /** + * + * + *
          +   * Customer uses their account to perform any access to their own data which
          +   * their IAM policy authorizes, and one of the following is true:
          +   *
          +   * * A Google administrator has reset the root-access account associated with
          +   *   the user's organization within the past 7 days.
          +   * * A Google-initiated emergency access operation has interacted with a
          +   *   resource in the same project or folder as the currently accessed resource
          +   *   within the past 7 days.
          +   * 
          + * + * MODIFIED_CUSTOMER_INITIATED_ACCESS = 8; + */ + public static final int MODIFIED_CUSTOMER_INITIATED_ACCESS_VALUE = 8; + /** + * + * + *
          +   * Google systems access customer data to help optimize the structure of the
          +   * data or quality for future uses by the customer, and one of the following
          +   * is true:
          +   *
          +   * * A Google administrator has reset the root-access account associated with
          +   *   the user's organization within the past 7 days.
          +   * * A Google-initiated emergency access operation has interacted with a
          +   *   resource in the same project or folder as the currently accessed resource
          +   *   within the past 7 days.
          +   * 
          + * + * MODIFIED_GOOGLE_INITIATED_SYSTEM_OPERATION = 9; + */ + public static final int MODIFIED_GOOGLE_INITIATED_SYSTEM_OPERATION_VALUE = 9; + /** + * + * + *
          +   * Google-initiated access to maintain system reliability.
          +   * 
          + * + * GOOGLE_RESPONSE_TO_PRODUCTION_ALERT = 10; + */ + public static final int GOOGLE_RESPONSE_TO_PRODUCTION_ALERT_VALUE = 10; + /** + * + * + *
          +   * One of the following operations is being executed while simultaneously
          +   * encountering an internal technical issue which prevented a more precise
          +   * justification code from being generated:
          +   *
          +   * * Your account has been used to perform any access to your own data which
          +   *   your IAM policy authorizes.
          +   * * An automated Google system operates on encrypted customer data which your
          +   *   IAM policy authorizes.
          +   * * Customer-initiated Google support access.
          +   * * Google-initiated support access to protect system reliability.
          +   * 
          + * + * CUSTOMER_AUTHORIZED_WORKFLOW_SERVICING = 11; + */ + public static final int CUSTOMER_AUTHORIZED_WORKFLOW_SERVICING_VALUE = 11; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static AccessReason valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static AccessReason forNumber(int value) { + switch (value) { + case 0: + return REASON_UNSPECIFIED; + case 1: + return CUSTOMER_INITIATED_SUPPORT; + case 2: + return GOOGLE_INITIATED_SERVICE; + case 3: + return THIRD_PARTY_DATA_REQUEST; + case 4: + return GOOGLE_INITIATED_REVIEW; + case 5: + return CUSTOMER_INITIATED_ACCESS; + case 6: + return GOOGLE_INITIATED_SYSTEM_OPERATION; + case 7: + return REASON_NOT_EXPECTED; + case 8: + return MODIFIED_CUSTOMER_INITIATED_ACCESS; + case 9: + return MODIFIED_GOOGLE_INITIATED_SYSTEM_OPERATION; + case 10: + return GOOGLE_RESPONSE_TO_PRODUCTION_ALERT; + case 11: + return CUSTOMER_AUTHORIZED_WORKFLOW_SERVICING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AccessReason findValueByNumber(int number) { + return AccessReason.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.kms.v1.KmsResourcesProto.getDescriptor().getEnumTypes().get(1); + } + + private static final AccessReason[] VALUES = values(); + + public static AccessReason valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private AccessReason(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.kms.v1.AccessReason) +} diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKey.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKey.java index 2107716aa479..913e59152c9b 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKey.java +++ b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKey.java @@ -1139,6 +1139,84 @@ public com.google.protobuf.ByteString getCryptoKeyBackendBytes() { } } + public static final int KEY_ACCESS_JUSTIFICATIONS_POLICY_FIELD_NUMBER = 17; + private com.google.cloud.kms.v1.KeyAccessJustificationsPolicy keyAccessJustificationsPolicy_; + /** + * + * + *
          +   * Optional. The policy used for Key Access Justifications Policy Enforcement.
          +   * If this field is present and this key is enrolled in Key Access
          +   * Justifications Policy Enforcement, the policy will be evaluated in encrypt,
          +   * decrypt, and sign operations, and the operation will fail if rejected by
          +   * the policy. The policy is defined by specifying zero or more allowed
          +   * justification codes.
          +   * https://cloud.google.com/assured-workloads/key-access-justifications/docs/justification-codes
          +   * By default, this field is absent, and all justification codes are allowed.
          +   * 
          + * + * + * .google.cloud.kms.v1.KeyAccessJustificationsPolicy key_access_justifications_policy = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the keyAccessJustificationsPolicy field is set. + */ + @java.lang.Override + public boolean hasKeyAccessJustificationsPolicy() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
          +   * Optional. The policy used for Key Access Justifications Policy Enforcement.
          +   * If this field is present and this key is enrolled in Key Access
          +   * Justifications Policy Enforcement, the policy will be evaluated in encrypt,
          +   * decrypt, and sign operations, and the operation will fail if rejected by
          +   * the policy. The policy is defined by specifying zero or more allowed
          +   * justification codes.
          +   * https://cloud.google.com/assured-workloads/key-access-justifications/docs/justification-codes
          +   * By default, this field is absent, and all justification codes are allowed.
          +   * 
          + * + * + * .google.cloud.kms.v1.KeyAccessJustificationsPolicy key_access_justifications_policy = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The keyAccessJustificationsPolicy. + */ + @java.lang.Override + public com.google.cloud.kms.v1.KeyAccessJustificationsPolicy getKeyAccessJustificationsPolicy() { + return keyAccessJustificationsPolicy_ == null + ? com.google.cloud.kms.v1.KeyAccessJustificationsPolicy.getDefaultInstance() + : keyAccessJustificationsPolicy_; + } + /** + * + * + *
          +   * Optional. The policy used for Key Access Justifications Policy Enforcement.
          +   * If this field is present and this key is enrolled in Key Access
          +   * Justifications Policy Enforcement, the policy will be evaluated in encrypt,
          +   * decrypt, and sign operations, and the operation will fail if rejected by
          +   * the policy. The policy is defined by specifying zero or more allowed
          +   * justification codes.
          +   * https://cloud.google.com/assured-workloads/key-access-justifications/docs/justification-codes
          +   * By default, this field is absent, and all justification codes are allowed.
          +   * 
          + * + * + * .google.cloud.kms.v1.KeyAccessJustificationsPolicy key_access_justifications_policy = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.kms.v1.KeyAccessJustificationsPolicyOrBuilder + getKeyAccessJustificationsPolicyOrBuilder() { + return keyAccessJustificationsPolicy_ == null + ? com.google.cloud.kms.v1.KeyAccessJustificationsPolicy.getDefaultInstance() + : keyAccessJustificationsPolicy_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1187,6 +1265,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cryptoKeyBackend_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 15, cryptoKeyBackend_); } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(17, getKeyAccessJustificationsPolicy()); + } getUnknownFields().writeTo(output); } @@ -1242,6 +1323,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cryptoKeyBackend_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, cryptoKeyBackend_); } + if (((bitField0_ & 0x00000020) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 17, getKeyAccessJustificationsPolicy()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1282,6 +1368,12 @@ public boolean equals(final java.lang.Object obj) { if (!getDestroyScheduledDuration().equals(other.getDestroyScheduledDuration())) return false; } if (!getCryptoKeyBackend().equals(other.getCryptoKeyBackend())) return false; + if (hasKeyAccessJustificationsPolicy() != other.hasKeyAccessJustificationsPolicy()) + return false; + if (hasKeyAccessJustificationsPolicy()) { + if (!getKeyAccessJustificationsPolicy().equals(other.getKeyAccessJustificationsPolicy())) + return false; + } if (!getRotationScheduleCase().equals(other.getRotationScheduleCase())) return false; switch (rotationScheduleCase_) { case 8: @@ -1333,6 +1425,10 @@ public int hashCode() { } hash = (37 * hash) + CRYPTO_KEY_BACKEND_FIELD_NUMBER; hash = (53 * hash) + getCryptoKeyBackend().hashCode(); + if (hasKeyAccessJustificationsPolicy()) { + hash = (37 * hash) + KEY_ACCESS_JUSTIFICATIONS_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getKeyAccessJustificationsPolicy().hashCode(); + } switch (rotationScheduleCase_) { case 8: hash = (37 * hash) + ROTATION_PERIOD_FIELD_NUMBER; @@ -1512,6 +1608,7 @@ private void maybeForceBuilderInitialization() { getNextRotationTimeFieldBuilder(); getVersionTemplateFieldBuilder(); getDestroyScheduledDurationFieldBuilder(); + getKeyAccessJustificationsPolicyFieldBuilder(); } } @@ -1552,6 +1649,11 @@ public Builder clear() { destroyScheduledDurationBuilder_ = null; } cryptoKeyBackend_ = ""; + keyAccessJustificationsPolicy_ = null; + if (keyAccessJustificationsPolicyBuilder_ != null) { + keyAccessJustificationsPolicyBuilder_.dispose(); + keyAccessJustificationsPolicyBuilder_ = null; + } rotationScheduleCase_ = 0; rotationSchedule_ = null; return this; @@ -1632,6 +1734,13 @@ private void buildPartial0(com.google.cloud.kms.v1.CryptoKey result) { if (((from_bitField0_ & 0x00000400) != 0)) { result.cryptoKeyBackend_ = cryptoKeyBackend_; } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.keyAccessJustificationsPolicy_ = + keyAccessJustificationsPolicyBuilder_ == null + ? keyAccessJustificationsPolicy_ + : keyAccessJustificationsPolicyBuilder_.build(); + to_bitField0_ |= 0x00000020; + } result.bitField0_ |= to_bitField0_; } @@ -1721,6 +1830,9 @@ public Builder mergeFrom(com.google.cloud.kms.v1.CryptoKey other) { bitField0_ |= 0x00000400; onChanged(); } + if (other.hasKeyAccessJustificationsPolicy()) { + mergeKeyAccessJustificationsPolicy(other.getKeyAccessJustificationsPolicy()); + } switch (other.getRotationScheduleCase()) { case ROTATION_PERIOD: { @@ -1832,6 +1944,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000400; break; } // case 122 + case 138: + { + input.readMessage( + getKeyAccessJustificationsPolicyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 138 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4094,6 +4213,279 @@ public Builder setCryptoKeyBackendBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.kms.v1.KeyAccessJustificationsPolicy keyAccessJustificationsPolicy_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.kms.v1.KeyAccessJustificationsPolicy, + com.google.cloud.kms.v1.KeyAccessJustificationsPolicy.Builder, + com.google.cloud.kms.v1.KeyAccessJustificationsPolicyOrBuilder> + keyAccessJustificationsPolicyBuilder_; + /** + * + * + *
          +     * Optional. The policy used for Key Access Justifications Policy Enforcement.
          +     * If this field is present and this key is enrolled in Key Access
          +     * Justifications Policy Enforcement, the policy will be evaluated in encrypt,
          +     * decrypt, and sign operations, and the operation will fail if rejected by
          +     * the policy. The policy is defined by specifying zero or more allowed
          +     * justification codes.
          +     * https://cloud.google.com/assured-workloads/key-access-justifications/docs/justification-codes
          +     * By default, this field is absent, and all justification codes are allowed.
          +     * 
          + * + * + * .google.cloud.kms.v1.KeyAccessJustificationsPolicy key_access_justifications_policy = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the keyAccessJustificationsPolicy field is set. + */ + public boolean hasKeyAccessJustificationsPolicy() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + * + * + *
          +     * Optional. The policy used for Key Access Justifications Policy Enforcement.
          +     * If this field is present and this key is enrolled in Key Access
          +     * Justifications Policy Enforcement, the policy will be evaluated in encrypt,
          +     * decrypt, and sign operations, and the operation will fail if rejected by
          +     * the policy. The policy is defined by specifying zero or more allowed
          +     * justification codes.
          +     * https://cloud.google.com/assured-workloads/key-access-justifications/docs/justification-codes
          +     * By default, this field is absent, and all justification codes are allowed.
          +     * 
          + * + * + * .google.cloud.kms.v1.KeyAccessJustificationsPolicy key_access_justifications_policy = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The keyAccessJustificationsPolicy. + */ + public com.google.cloud.kms.v1.KeyAccessJustificationsPolicy + getKeyAccessJustificationsPolicy() { + if (keyAccessJustificationsPolicyBuilder_ == null) { + return keyAccessJustificationsPolicy_ == null + ? com.google.cloud.kms.v1.KeyAccessJustificationsPolicy.getDefaultInstance() + : keyAccessJustificationsPolicy_; + } else { + return keyAccessJustificationsPolicyBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Optional. The policy used for Key Access Justifications Policy Enforcement.
          +     * If this field is present and this key is enrolled in Key Access
          +     * Justifications Policy Enforcement, the policy will be evaluated in encrypt,
          +     * decrypt, and sign operations, and the operation will fail if rejected by
          +     * the policy. The policy is defined by specifying zero or more allowed
          +     * justification codes.
          +     * https://cloud.google.com/assured-workloads/key-access-justifications/docs/justification-codes
          +     * By default, this field is absent, and all justification codes are allowed.
          +     * 
          + * + * + * .google.cloud.kms.v1.KeyAccessJustificationsPolicy key_access_justifications_policy = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setKeyAccessJustificationsPolicy( + com.google.cloud.kms.v1.KeyAccessJustificationsPolicy value) { + if (keyAccessJustificationsPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + keyAccessJustificationsPolicy_ = value; + } else { + keyAccessJustificationsPolicyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. The policy used for Key Access Justifications Policy Enforcement.
          +     * If this field is present and this key is enrolled in Key Access
          +     * Justifications Policy Enforcement, the policy will be evaluated in encrypt,
          +     * decrypt, and sign operations, and the operation will fail if rejected by
          +     * the policy. The policy is defined by specifying zero or more allowed
          +     * justification codes.
          +     * https://cloud.google.com/assured-workloads/key-access-justifications/docs/justification-codes
          +     * By default, this field is absent, and all justification codes are allowed.
          +     * 
          + * + * + * .google.cloud.kms.v1.KeyAccessJustificationsPolicy key_access_justifications_policy = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setKeyAccessJustificationsPolicy( + com.google.cloud.kms.v1.KeyAccessJustificationsPolicy.Builder builderForValue) { + if (keyAccessJustificationsPolicyBuilder_ == null) { + keyAccessJustificationsPolicy_ = builderForValue.build(); + } else { + keyAccessJustificationsPolicyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. The policy used for Key Access Justifications Policy Enforcement.
          +     * If this field is present and this key is enrolled in Key Access
          +     * Justifications Policy Enforcement, the policy will be evaluated in encrypt,
          +     * decrypt, and sign operations, and the operation will fail if rejected by
          +     * the policy. The policy is defined by specifying zero or more allowed
          +     * justification codes.
          +     * https://cloud.google.com/assured-workloads/key-access-justifications/docs/justification-codes
          +     * By default, this field is absent, and all justification codes are allowed.
          +     * 
          + * + * + * .google.cloud.kms.v1.KeyAccessJustificationsPolicy key_access_justifications_policy = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeKeyAccessJustificationsPolicy( + com.google.cloud.kms.v1.KeyAccessJustificationsPolicy value) { + if (keyAccessJustificationsPolicyBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) + && keyAccessJustificationsPolicy_ != null + && keyAccessJustificationsPolicy_ + != com.google.cloud.kms.v1.KeyAccessJustificationsPolicy.getDefaultInstance()) { + getKeyAccessJustificationsPolicyBuilder().mergeFrom(value); + } else { + keyAccessJustificationsPolicy_ = value; + } + } else { + keyAccessJustificationsPolicyBuilder_.mergeFrom(value); + } + if (keyAccessJustificationsPolicy_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Optional. The policy used for Key Access Justifications Policy Enforcement.
          +     * If this field is present and this key is enrolled in Key Access
          +     * Justifications Policy Enforcement, the policy will be evaluated in encrypt,
          +     * decrypt, and sign operations, and the operation will fail if rejected by
          +     * the policy. The policy is defined by specifying zero or more allowed
          +     * justification codes.
          +     * https://cloud.google.com/assured-workloads/key-access-justifications/docs/justification-codes
          +     * By default, this field is absent, and all justification codes are allowed.
          +     * 
          + * + * + * .google.cloud.kms.v1.KeyAccessJustificationsPolicy key_access_justifications_policy = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearKeyAccessJustificationsPolicy() { + bitField0_ = (bitField0_ & ~0x00000800); + keyAccessJustificationsPolicy_ = null; + if (keyAccessJustificationsPolicyBuilder_ != null) { + keyAccessJustificationsPolicyBuilder_.dispose(); + keyAccessJustificationsPolicyBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. The policy used for Key Access Justifications Policy Enforcement.
          +     * If this field is present and this key is enrolled in Key Access
          +     * Justifications Policy Enforcement, the policy will be evaluated in encrypt,
          +     * decrypt, and sign operations, and the operation will fail if rejected by
          +     * the policy. The policy is defined by specifying zero or more allowed
          +     * justification codes.
          +     * https://cloud.google.com/assured-workloads/key-access-justifications/docs/justification-codes
          +     * By default, this field is absent, and all justification codes are allowed.
          +     * 
          + * + * + * .google.cloud.kms.v1.KeyAccessJustificationsPolicy key_access_justifications_policy = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.kms.v1.KeyAccessJustificationsPolicy.Builder + getKeyAccessJustificationsPolicyBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return getKeyAccessJustificationsPolicyFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Optional. The policy used for Key Access Justifications Policy Enforcement.
          +     * If this field is present and this key is enrolled in Key Access
          +     * Justifications Policy Enforcement, the policy will be evaluated in encrypt,
          +     * decrypt, and sign operations, and the operation will fail if rejected by
          +     * the policy. The policy is defined by specifying zero or more allowed
          +     * justification codes.
          +     * https://cloud.google.com/assured-workloads/key-access-justifications/docs/justification-codes
          +     * By default, this field is absent, and all justification codes are allowed.
          +     * 
          + * + * + * .google.cloud.kms.v1.KeyAccessJustificationsPolicy key_access_justifications_policy = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.kms.v1.KeyAccessJustificationsPolicyOrBuilder + getKeyAccessJustificationsPolicyOrBuilder() { + if (keyAccessJustificationsPolicyBuilder_ != null) { + return keyAccessJustificationsPolicyBuilder_.getMessageOrBuilder(); + } else { + return keyAccessJustificationsPolicy_ == null + ? com.google.cloud.kms.v1.KeyAccessJustificationsPolicy.getDefaultInstance() + : keyAccessJustificationsPolicy_; + } + } + /** + * + * + *
          +     * Optional. The policy used for Key Access Justifications Policy Enforcement.
          +     * If this field is present and this key is enrolled in Key Access
          +     * Justifications Policy Enforcement, the policy will be evaluated in encrypt,
          +     * decrypt, and sign operations, and the operation will fail if rejected by
          +     * the policy. The policy is defined by specifying zero or more allowed
          +     * justification codes.
          +     * https://cloud.google.com/assured-workloads/key-access-justifications/docs/justification-codes
          +     * By default, this field is absent, and all justification codes are allowed.
          +     * 
          + * + * + * .google.cloud.kms.v1.KeyAccessJustificationsPolicy key_access_justifications_policy = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.kms.v1.KeyAccessJustificationsPolicy, + com.google.cloud.kms.v1.KeyAccessJustificationsPolicy.Builder, + com.google.cloud.kms.v1.KeyAccessJustificationsPolicyOrBuilder> + getKeyAccessJustificationsPolicyFieldBuilder() { + if (keyAccessJustificationsPolicyBuilder_ == null) { + keyAccessJustificationsPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.kms.v1.KeyAccessJustificationsPolicy, + com.google.cloud.kms.v1.KeyAccessJustificationsPolicy.Builder, + com.google.cloud.kms.v1.KeyAccessJustificationsPolicyOrBuilder>( + getKeyAccessJustificationsPolicy(), getParentForChildren(), isClean()); + keyAccessJustificationsPolicy_ = null; + } + return keyAccessJustificationsPolicyBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyOrBuilder.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyOrBuilder.java index 7b7c0fdd4381..1f233d2fd127 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyOrBuilder.java +++ b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyOrBuilder.java @@ -576,5 +576,68 @@ java.lang.String getLabelsOrDefault( */ com.google.protobuf.ByteString getCryptoKeyBackendBytes(); + /** + * + * + *
          +   * Optional. The policy used for Key Access Justifications Policy Enforcement.
          +   * If this field is present and this key is enrolled in Key Access
          +   * Justifications Policy Enforcement, the policy will be evaluated in encrypt,
          +   * decrypt, and sign operations, and the operation will fail if rejected by
          +   * the policy. The policy is defined by specifying zero or more allowed
          +   * justification codes.
          +   * https://cloud.google.com/assured-workloads/key-access-justifications/docs/justification-codes
          +   * By default, this field is absent, and all justification codes are allowed.
          +   * 
          + * + * + * .google.cloud.kms.v1.KeyAccessJustificationsPolicy key_access_justifications_policy = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the keyAccessJustificationsPolicy field is set. + */ + boolean hasKeyAccessJustificationsPolicy(); + /** + * + * + *
          +   * Optional. The policy used for Key Access Justifications Policy Enforcement.
          +   * If this field is present and this key is enrolled in Key Access
          +   * Justifications Policy Enforcement, the policy will be evaluated in encrypt,
          +   * decrypt, and sign operations, and the operation will fail if rejected by
          +   * the policy. The policy is defined by specifying zero or more allowed
          +   * justification codes.
          +   * https://cloud.google.com/assured-workloads/key-access-justifications/docs/justification-codes
          +   * By default, this field is absent, and all justification codes are allowed.
          +   * 
          + * + * + * .google.cloud.kms.v1.KeyAccessJustificationsPolicy key_access_justifications_policy = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The keyAccessJustificationsPolicy. + */ + com.google.cloud.kms.v1.KeyAccessJustificationsPolicy getKeyAccessJustificationsPolicy(); + /** + * + * + *
          +   * Optional. The policy used for Key Access Justifications Policy Enforcement.
          +   * If this field is present and this key is enrolled in Key Access
          +   * Justifications Policy Enforcement, the policy will be evaluated in encrypt,
          +   * decrypt, and sign operations, and the operation will fail if rejected by
          +   * the policy. The policy is defined by specifying zero or more allowed
          +   * justification codes.
          +   * https://cloud.google.com/assured-workloads/key-access-justifications/docs/justification-codes
          +   * By default, this field is absent, and all justification codes are allowed.
          +   * 
          + * + * + * .google.cloud.kms.v1.KeyAccessJustificationsPolicy key_access_justifications_policy = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.kms.v1.KeyAccessJustificationsPolicyOrBuilder + getKeyAccessJustificationsPolicyOrBuilder(); + com.google.cloud.kms.v1.CryptoKey.RotationScheduleCase getRotationScheduleCase(); } diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyAccessJustificationsPolicy.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyAccessJustificationsPolicy.java new file mode 100644 index 000000000000..1e2c927d83b7 --- /dev/null +++ b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyAccessJustificationsPolicy.java @@ -0,0 +1,909 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/kms/v1/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.kms.v1; + +/** + * + * + *
          + * A
          + * [KeyAccessJustificationsPolicy][google.cloud.kms.v1.KeyAccessJustificationsPolicy]
          + * specifies zero or more allowed
          + * [AccessReason][google.cloud.kms.v1.AccessReason] values for encrypt, decrypt,
          + * and sign operations on a [CryptoKey][google.cloud.kms.v1.CryptoKey].
          + * 
          + * + * Protobuf type {@code google.cloud.kms.v1.KeyAccessJustificationsPolicy} + */ +public final class KeyAccessJustificationsPolicy extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.kms.v1.KeyAccessJustificationsPolicy) + KeyAccessJustificationsPolicyOrBuilder { + private static final long serialVersionUID = 0L; + // Use KeyAccessJustificationsPolicy.newBuilder() to construct. + private KeyAccessJustificationsPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private KeyAccessJustificationsPolicy() { + allowedAccessReasons_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new KeyAccessJustificationsPolicy(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.kms.v1.KmsResourcesProto + .internal_static_google_cloud_kms_v1_KeyAccessJustificationsPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.kms.v1.KmsResourcesProto + .internal_static_google_cloud_kms_v1_KeyAccessJustificationsPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.kms.v1.KeyAccessJustificationsPolicy.class, + com.google.cloud.kms.v1.KeyAccessJustificationsPolicy.Builder.class); + } + + public static final int ALLOWED_ACCESS_REASONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List allowedAccessReasons_; + + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.kms.v1.AccessReason> + allowedAccessReasons_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.cloud.kms.v1.AccessReason>() { + public com.google.cloud.kms.v1.AccessReason convert(java.lang.Integer from) { + com.google.cloud.kms.v1.AccessReason result = + com.google.cloud.kms.v1.AccessReason.forNumber(from); + return result == null ? com.google.cloud.kms.v1.AccessReason.UNRECOGNIZED : result; + } + }; + /** + * + * + *
          +   * The list of allowed reasons for access to a
          +   * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons
          +   * means all encrypt, decrypt, and sign operations for the
          +   * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will
          +   * fail.
          +   * 
          + * + * repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1; + * + * @return A list containing the allowedAccessReasons. + */ + @java.lang.Override + public java.util.List getAllowedAccessReasonsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.kms.v1.AccessReason>( + allowedAccessReasons_, allowedAccessReasons_converter_); + } + /** + * + * + *
          +   * The list of allowed reasons for access to a
          +   * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons
          +   * means all encrypt, decrypt, and sign operations for the
          +   * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will
          +   * fail.
          +   * 
          + * + * repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1; + * + * @return The count of allowedAccessReasons. + */ + @java.lang.Override + public int getAllowedAccessReasonsCount() { + return allowedAccessReasons_.size(); + } + /** + * + * + *
          +   * The list of allowed reasons for access to a
          +   * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons
          +   * means all encrypt, decrypt, and sign operations for the
          +   * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will
          +   * fail.
          +   * 
          + * + * repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1; + * + * @param index The index of the element to return. + * @return The allowedAccessReasons at the given index. + */ + @java.lang.Override + public com.google.cloud.kms.v1.AccessReason getAllowedAccessReasons(int index) { + return allowedAccessReasons_converter_.convert(allowedAccessReasons_.get(index)); + } + /** + * + * + *
          +   * The list of allowed reasons for access to a
          +   * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons
          +   * means all encrypt, decrypt, and sign operations for the
          +   * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will
          +   * fail.
          +   * 
          + * + * repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1; + * + * @return A list containing the enum numeric values on the wire for allowedAccessReasons. + */ + @java.lang.Override + public java.util.List getAllowedAccessReasonsValueList() { + return allowedAccessReasons_; + } + /** + * + * + *
          +   * The list of allowed reasons for access to a
          +   * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons
          +   * means all encrypt, decrypt, and sign operations for the
          +   * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will
          +   * fail.
          +   * 
          + * + * repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of allowedAccessReasons at the given index. + */ + @java.lang.Override + public int getAllowedAccessReasonsValue(int index) { + return allowedAccessReasons_.get(index); + } + + private int allowedAccessReasonsMemoizedSerializedSize; + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (getAllowedAccessReasonsList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(allowedAccessReasonsMemoizedSerializedSize); + } + for (int i = 0; i < allowedAccessReasons_.size(); i++) { + output.writeEnumNoTag(allowedAccessReasons_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < allowedAccessReasons_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag( + allowedAccessReasons_.get(i)); + } + size += dataSize; + if (!getAllowedAccessReasonsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + allowedAccessReasonsMemoizedSerializedSize = dataSize; + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.kms.v1.KeyAccessJustificationsPolicy)) { + return super.equals(obj); + } + com.google.cloud.kms.v1.KeyAccessJustificationsPolicy other = + (com.google.cloud.kms.v1.KeyAccessJustificationsPolicy) obj; + + if (!allowedAccessReasons_.equals(other.allowedAccessReasons_)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAllowedAccessReasonsCount() > 0) { + hash = (37 * hash) + ALLOWED_ACCESS_REASONS_FIELD_NUMBER; + hash = (53 * hash) + allowedAccessReasons_.hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.kms.v1.KeyAccessJustificationsPolicy parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.kms.v1.KeyAccessJustificationsPolicy parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.kms.v1.KeyAccessJustificationsPolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.kms.v1.KeyAccessJustificationsPolicy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.kms.v1.KeyAccessJustificationsPolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.kms.v1.KeyAccessJustificationsPolicy parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.kms.v1.KeyAccessJustificationsPolicy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.kms.v1.KeyAccessJustificationsPolicy parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.kms.v1.KeyAccessJustificationsPolicy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.kms.v1.KeyAccessJustificationsPolicy parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.kms.v1.KeyAccessJustificationsPolicy parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.kms.v1.KeyAccessJustificationsPolicy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.kms.v1.KeyAccessJustificationsPolicy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * A
          +   * [KeyAccessJustificationsPolicy][google.cloud.kms.v1.KeyAccessJustificationsPolicy]
          +   * specifies zero or more allowed
          +   * [AccessReason][google.cloud.kms.v1.AccessReason] values for encrypt, decrypt,
          +   * and sign operations on a [CryptoKey][google.cloud.kms.v1.CryptoKey].
          +   * 
          + * + * Protobuf type {@code google.cloud.kms.v1.KeyAccessJustificationsPolicy} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.kms.v1.KeyAccessJustificationsPolicy) + com.google.cloud.kms.v1.KeyAccessJustificationsPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.kms.v1.KmsResourcesProto + .internal_static_google_cloud_kms_v1_KeyAccessJustificationsPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.kms.v1.KmsResourcesProto + .internal_static_google_cloud_kms_v1_KeyAccessJustificationsPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.kms.v1.KeyAccessJustificationsPolicy.class, + com.google.cloud.kms.v1.KeyAccessJustificationsPolicy.Builder.class); + } + + // Construct using com.google.cloud.kms.v1.KeyAccessJustificationsPolicy.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + allowedAccessReasons_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.kms.v1.KmsResourcesProto + .internal_static_google_cloud_kms_v1_KeyAccessJustificationsPolicy_descriptor; + } + + @java.lang.Override + public com.google.cloud.kms.v1.KeyAccessJustificationsPolicy getDefaultInstanceForType() { + return com.google.cloud.kms.v1.KeyAccessJustificationsPolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.kms.v1.KeyAccessJustificationsPolicy build() { + com.google.cloud.kms.v1.KeyAccessJustificationsPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.kms.v1.KeyAccessJustificationsPolicy buildPartial() { + com.google.cloud.kms.v1.KeyAccessJustificationsPolicy result = + new com.google.cloud.kms.v1.KeyAccessJustificationsPolicy(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.kms.v1.KeyAccessJustificationsPolicy result) { + if (((bitField0_ & 0x00000001) != 0)) { + allowedAccessReasons_ = java.util.Collections.unmodifiableList(allowedAccessReasons_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.allowedAccessReasons_ = allowedAccessReasons_; + } + + private void buildPartial0(com.google.cloud.kms.v1.KeyAccessJustificationsPolicy result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.kms.v1.KeyAccessJustificationsPolicy) { + return mergeFrom((com.google.cloud.kms.v1.KeyAccessJustificationsPolicy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.kms.v1.KeyAccessJustificationsPolicy other) { + if (other == com.google.cloud.kms.v1.KeyAccessJustificationsPolicy.getDefaultInstance()) + return this; + if (!other.allowedAccessReasons_.isEmpty()) { + if (allowedAccessReasons_.isEmpty()) { + allowedAccessReasons_ = other.allowedAccessReasons_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAllowedAccessReasonsIsMutable(); + allowedAccessReasons_.addAll(other.allowedAccessReasons_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int tmpRaw = input.readEnum(); + ensureAllowedAccessReasonsIsMutable(); + allowedAccessReasons_.add(tmpRaw); + break; + } // case 8 + case 10: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureAllowedAccessReasonsIsMutable(); + allowedAccessReasons_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List allowedAccessReasons_ = + java.util.Collections.emptyList(); + + private void ensureAllowedAccessReasonsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + allowedAccessReasons_ = new java.util.ArrayList(allowedAccessReasons_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
          +     * The list of allowed reasons for access to a
          +     * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons
          +     * means all encrypt, decrypt, and sign operations for the
          +     * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will
          +     * fail.
          +     * 
          + * + * repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1; + * + * @return A list containing the allowedAccessReasons. + */ + public java.util.List getAllowedAccessReasonsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.cloud.kms.v1.AccessReason>( + allowedAccessReasons_, allowedAccessReasons_converter_); + } + /** + * + * + *
          +     * The list of allowed reasons for access to a
          +     * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons
          +     * means all encrypt, decrypt, and sign operations for the
          +     * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will
          +     * fail.
          +     * 
          + * + * repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1; + * + * @return The count of allowedAccessReasons. + */ + public int getAllowedAccessReasonsCount() { + return allowedAccessReasons_.size(); + } + /** + * + * + *
          +     * The list of allowed reasons for access to a
          +     * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons
          +     * means all encrypt, decrypt, and sign operations for the
          +     * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will
          +     * fail.
          +     * 
          + * + * repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1; + * + * @param index The index of the element to return. + * @return The allowedAccessReasons at the given index. + */ + public com.google.cloud.kms.v1.AccessReason getAllowedAccessReasons(int index) { + return allowedAccessReasons_converter_.convert(allowedAccessReasons_.get(index)); + } + /** + * + * + *
          +     * The list of allowed reasons for access to a
          +     * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons
          +     * means all encrypt, decrypt, and sign operations for the
          +     * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will
          +     * fail.
          +     * 
          + * + * repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1; + * + * @param index The index to set the value at. + * @param value The allowedAccessReasons to set. + * @return This builder for chaining. + */ + public Builder setAllowedAccessReasons(int index, com.google.cloud.kms.v1.AccessReason value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedAccessReasonsIsMutable(); + allowedAccessReasons_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
          +     * The list of allowed reasons for access to a
          +     * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons
          +     * means all encrypt, decrypt, and sign operations for the
          +     * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will
          +     * fail.
          +     * 
          + * + * repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1; + * + * @param value The allowedAccessReasons to add. + * @return This builder for chaining. + */ + public Builder addAllowedAccessReasons(com.google.cloud.kms.v1.AccessReason value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedAccessReasonsIsMutable(); + allowedAccessReasons_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
          +     * The list of allowed reasons for access to a
          +     * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons
          +     * means all encrypt, decrypt, and sign operations for the
          +     * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will
          +     * fail.
          +     * 
          + * + * repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1; + * + * @param values The allowedAccessReasons to add. + * @return This builder for chaining. + */ + public Builder addAllAllowedAccessReasons( + java.lang.Iterable values) { + ensureAllowedAccessReasonsIsMutable(); + for (com.google.cloud.kms.v1.AccessReason value : values) { + allowedAccessReasons_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * + * + *
          +     * The list of allowed reasons for access to a
          +     * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons
          +     * means all encrypt, decrypt, and sign operations for the
          +     * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will
          +     * fail.
          +     * 
          + * + * repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1; + * + * @return This builder for chaining. + */ + public Builder clearAllowedAccessReasons() { + allowedAccessReasons_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * The list of allowed reasons for access to a
          +     * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons
          +     * means all encrypt, decrypt, and sign operations for the
          +     * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will
          +     * fail.
          +     * 
          + * + * repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1; + * + * @return A list containing the enum numeric values on the wire for allowedAccessReasons. + */ + public java.util.List getAllowedAccessReasonsValueList() { + return java.util.Collections.unmodifiableList(allowedAccessReasons_); + } + /** + * + * + *
          +     * The list of allowed reasons for access to a
          +     * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons
          +     * means all encrypt, decrypt, and sign operations for the
          +     * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will
          +     * fail.
          +     * 
          + * + * repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of allowedAccessReasons at the given index. + */ + public int getAllowedAccessReasonsValue(int index) { + return allowedAccessReasons_.get(index); + } + /** + * + * + *
          +     * The list of allowed reasons for access to a
          +     * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons
          +     * means all encrypt, decrypt, and sign operations for the
          +     * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will
          +     * fail.
          +     * 
          + * + * repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1; + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for allowedAccessReasons to set. + * @return This builder for chaining. + */ + public Builder setAllowedAccessReasonsValue(int index, int value) { + ensureAllowedAccessReasonsIsMutable(); + allowedAccessReasons_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
          +     * The list of allowed reasons for access to a
          +     * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons
          +     * means all encrypt, decrypt, and sign operations for the
          +     * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will
          +     * fail.
          +     * 
          + * + * repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1; + * + * @param value The enum numeric value on the wire for allowedAccessReasons to add. + * @return This builder for chaining. + */ + public Builder addAllowedAccessReasonsValue(int value) { + ensureAllowedAccessReasonsIsMutable(); + allowedAccessReasons_.add(value); + onChanged(); + return this; + } + /** + * + * + *
          +     * The list of allowed reasons for access to a
          +     * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons
          +     * means all encrypt, decrypt, and sign operations for the
          +     * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will
          +     * fail.
          +     * 
          + * + * repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1; + * + * @param values The enum numeric values on the wire for allowedAccessReasons to add. + * @return This builder for chaining. + */ + public Builder addAllAllowedAccessReasonsValue(java.lang.Iterable values) { + ensureAllowedAccessReasonsIsMutable(); + for (int value : values) { + allowedAccessReasons_.add(value); + } + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.kms.v1.KeyAccessJustificationsPolicy) + } + + // @@protoc_insertion_point(class_scope:google.cloud.kms.v1.KeyAccessJustificationsPolicy) + private static final com.google.cloud.kms.v1.KeyAccessJustificationsPolicy DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.kms.v1.KeyAccessJustificationsPolicy(); + } + + public static com.google.cloud.kms.v1.KeyAccessJustificationsPolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KeyAccessJustificationsPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.kms.v1.KeyAccessJustificationsPolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyAccessJustificationsPolicyOrBuilder.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyAccessJustificationsPolicyOrBuilder.java new file mode 100644 index 000000000000..3024a227b167 --- /dev/null +++ b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyAccessJustificationsPolicyOrBuilder.java @@ -0,0 +1,109 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/kms/v1/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.kms.v1; + +public interface KeyAccessJustificationsPolicyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.kms.v1.KeyAccessJustificationsPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * The list of allowed reasons for access to a
          +   * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons
          +   * means all encrypt, decrypt, and sign operations for the
          +   * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will
          +   * fail.
          +   * 
          + * + * repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1; + * + * @return A list containing the allowedAccessReasons. + */ + java.util.List getAllowedAccessReasonsList(); + /** + * + * + *
          +   * The list of allowed reasons for access to a
          +   * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons
          +   * means all encrypt, decrypt, and sign operations for the
          +   * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will
          +   * fail.
          +   * 
          + * + * repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1; + * + * @return The count of allowedAccessReasons. + */ + int getAllowedAccessReasonsCount(); + /** + * + * + *
          +   * The list of allowed reasons for access to a
          +   * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons
          +   * means all encrypt, decrypt, and sign operations for the
          +   * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will
          +   * fail.
          +   * 
          + * + * repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1; + * + * @param index The index of the element to return. + * @return The allowedAccessReasons at the given index. + */ + com.google.cloud.kms.v1.AccessReason getAllowedAccessReasons(int index); + /** + * + * + *
          +   * The list of allowed reasons for access to a
          +   * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons
          +   * means all encrypt, decrypt, and sign operations for the
          +   * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will
          +   * fail.
          +   * 
          + * + * repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1; + * + * @return A list containing the enum numeric values on the wire for allowedAccessReasons. + */ + java.util.List getAllowedAccessReasonsValueList(); + /** + * + * + *
          +   * The list of allowed reasons for access to a
          +   * [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons
          +   * means all encrypt, decrypt, and sign operations for the
          +   * [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will
          +   * fail.
          +   * 
          + * + * repeated .google.cloud.kms.v1.AccessReason allowed_access_reasons = 1; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of allowedAccessReasons at the given index. + */ + int getAllowedAccessReasonsValue(int index); +} diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KmsResourcesProto.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KmsResourcesProto.java index 639f16c9802c..1fa830700ce9 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KmsResourcesProto.java +++ b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KmsResourcesProto.java @@ -72,6 +72,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_kms_v1_ExternalProtectionLevelOptions_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_kms_v1_ExternalProtectionLevelOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_kms_v1_KeyAccessJustificationsPolicy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_kms_v1_KeyAccessJustificationsPolicy_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -91,7 +95,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "tobuf.TimestampB\003\340A\003:a\352A^\n\037cloudkms.goog" + "leapis.com/KeyRing\022;projects/{project}/l" + "ocations/{location}/keyRings/{key_ring}\"" - + "\256\007\n\tCryptoKey\022\021\n\004name\030\001 \001(\tB\003\340A\003\022;\n\007prim" + + "\221\010\n\tCryptoKey\022\021\n\004name\030\001 \001(\tB\003\340A\003\022;\n\007prim" + "ary\030\002 \001(\0132%.google.cloud.kms.v1.CryptoKe" + "yVersionB\003\340A\003\022E\n\007purpose\030\003 \001(\0162/.google." + "cloud.kms.v1.CryptoKey.CryptoKeyPurposeB" @@ -105,139 +109,155 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "CryptoKey.LabelsEntry\022\030\n\013import_only\030\r \001" + "(\010B\003\340A\005\022B\n\032destroy_scheduled_duration\030\016 " + "\001(\0132\031.google.protobuf.DurationB\003\340A\005\022%\n\022c" - + "rypto_key_backend\030\017 \001(\tB\t\340A\005\372A\003\n\001*\032-\n\013La" - + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" - + "\001\"\232\001\n\020CryptoKeyPurpose\022\"\n\036CRYPTO_KEY_PUR" - + "POSE_UNSPECIFIED\020\000\022\023\n\017ENCRYPT_DECRYPT\020\001\022" - + "\023\n\017ASYMMETRIC_SIGN\020\005\022\026\n\022ASYMMETRIC_DECRY" - + "PT\020\006\022\027\n\023RAW_ENCRYPT_DECRYPT\020\007\022\007\n\003MAC\020\t:{" - + "\352Ax\n!cloudkms.googleapis.com/CryptoKey\022S" - + "projects/{project}/locations/{location}/" - + "keyRings/{key_ring}/cryptoKeys/{crypto_k" - + "ey}B\023\n\021rotation_schedule\"\263\001\n\030CryptoKeyVe" - + "rsionTemplate\022>\n\020protection_level\030\001 \001(\0162" - + "$.google.cloud.kms.v1.ProtectionLevel\022W\n" - + "\talgorithm\030\003 \001(\0162?.google.cloud.kms.v1.C" - + "ryptoKeyVersion.CryptoKeyVersionAlgorith" - + "mB\003\340A\002\"\261\003\n\027KeyOperationAttestation\022S\n\006fo" - + "rmat\030\004 \001(\0162>.google.cloud.kms.v1.KeyOper" - + "ationAttestation.AttestationFormatB\003\340A\003\022" - + "\024\n\007content\030\005 \001(\014B\003\340A\003\022X\n\013cert_chains\030\006 \001" - + "(\0132>.google.cloud.kms.v1.KeyOperationAtt" - + "estation.CertificateChainsB\003\340A\003\032d\n\021Certi" - + "ficateChains\022\024\n\014cavium_certs\030\001 \003(\t\022\031\n\021go" - + "ogle_card_certs\030\002 \003(\t\022\036\n\026google_partitio" - + "n_certs\030\003 \003(\t\"k\n\021AttestationFormat\022\"\n\036AT" - + "TESTATION_FORMAT_UNSPECIFIED\020\000\022\030\n\024CAVIUM" - + "_V1_COMPRESSED\020\003\022\030\n\024CAVIUM_V2_COMPRESSED" - + "\020\004\"\201\023\n\020CryptoKeyVersion\022\021\n\004name\030\001 \001(\tB\003\340" - + "A\003\022J\n\005state\030\003 \001(\0162;.google.cloud.kms.v1." - + "CryptoKeyVersion.CryptoKeyVersionState\022C" - + "\n\020protection_level\030\007 \001(\0162$.google.cloud." - + "kms.v1.ProtectionLevelB\003\340A\003\022W\n\talgorithm" - + "\030\n \001(\0162?.google.cloud.kms.v1.CryptoKeyVe" - + "rsion.CryptoKeyVersionAlgorithmB\003\340A\003\022F\n\013" - + "attestation\030\010 \001(\0132,.google.cloud.kms.v1." - + "KeyOperationAttestationB\003\340A\003\0224\n\013create_t" - + "ime\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340" - + "A\003\0226\n\rgenerate_time\030\013 \001(\0132\032.google.proto" - + "buf.TimestampB\003\340A\003\0225\n\014destroy_time\030\005 \001(\013" - + "2\032.google.protobuf.TimestampB\003\340A\003\022;\n\022des" - + "troy_event_time\030\006 \001(\0132\032.google.protobuf." - + "TimestampB\003\340A\003\022\027\n\nimport_job\030\016 \001(\tB\003\340A\003\022" - + "4\n\013import_time\030\017 \001(\0132\032.google.protobuf.T" - + "imestampB\003\340A\003\022\"\n\025import_failure_reason\030\020" - + " \001(\tB\003\340A\003\022&\n\031generation_failure_reason\030\023" - + " \001(\tB\003\340A\003\0220\n#external_destruction_failur" - + "e_reason\030\024 \001(\tB\003\340A\003\022^\n!external_protecti" - + "on_level_options\030\021 \001(\01323.google.cloud.km" - + "s.v1.ExternalProtectionLevelOptions\022\036\n\021r" - + "eimport_eligible\030\022 \001(\010B\003\340A\003\"\342\007\n\031CryptoKe" - + "yVersionAlgorithm\022,\n(CRYPTO_KEY_VERSION_" - + "ALGORITHM_UNSPECIFIED\020\000\022\037\n\033GOOGLE_SYMMET" - + "RIC_ENCRYPTION\020\001\022\017\n\013AES_128_GCM\020)\022\017\n\013AES" - + "_256_GCM\020\023\022\017\n\013AES_128_CBC\020*\022\017\n\013AES_256_C" - + "BC\020+\022\017\n\013AES_128_CTR\020,\022\017\n\013AES_256_CTR\020-\022\034" - + "\n\030RSA_SIGN_PSS_2048_SHA256\020\002\022\034\n\030RSA_SIGN" - + "_PSS_3072_SHA256\020\003\022\034\n\030RSA_SIGN_PSS_4096_" - + "SHA256\020\004\022\034\n\030RSA_SIGN_PSS_4096_SHA512\020\017\022\036" - + "\n\032RSA_SIGN_PKCS1_2048_SHA256\020\005\022\036\n\032RSA_SI" - + "GN_PKCS1_3072_SHA256\020\006\022\036\n\032RSA_SIGN_PKCS1" - + "_4096_SHA256\020\007\022\036\n\032RSA_SIGN_PKCS1_4096_SH" - + "A512\020\020\022\033\n\027RSA_SIGN_RAW_PKCS1_2048\020\034\022\033\n\027R" - + "SA_SIGN_RAW_PKCS1_3072\020\035\022\033\n\027RSA_SIGN_RAW" - + "_PKCS1_4096\020\036\022 \n\034RSA_DECRYPT_OAEP_2048_S" - + "HA256\020\010\022 \n\034RSA_DECRYPT_OAEP_3072_SHA256\020" - + "\t\022 \n\034RSA_DECRYPT_OAEP_4096_SHA256\020\n\022 \n\034R" - + "SA_DECRYPT_OAEP_4096_SHA512\020\021\022\036\n\032RSA_DEC" - + "RYPT_OAEP_2048_SHA1\020%\022\036\n\032RSA_DECRYPT_OAE" - + "P_3072_SHA1\020&\022\036\n\032RSA_DECRYPT_OAEP_4096_S" - + "HA1\020\'\022\027\n\023EC_SIGN_P256_SHA256\020\014\022\027\n\023EC_SIG" - + "N_P384_SHA384\020\r\022\034\n\030EC_SIGN_SECP256K1_SHA" - + "256\020\037\022\023\n\017EC_SIGN_ED25519\020(\022\017\n\013HMAC_SHA25" - + "6\020 \022\r\n\tHMAC_SHA1\020!\022\017\n\013HMAC_SHA384\020\"\022\017\n\013H" - + "MAC_SHA512\020#\022\017\n\013HMAC_SHA224\020$\022!\n\035EXTERNA" - + "L_SYMMETRIC_ENCRYPTION\020\022\"\233\002\n\025CryptoKeyVe" - + "rsionState\022(\n$CRYPTO_KEY_VERSION_STATE_U" - + "NSPECIFIED\020\000\022\026\n\022PENDING_GENERATION\020\005\022\013\n\007" - + "ENABLED\020\001\022\014\n\010DISABLED\020\002\022\r\n\tDESTROYED\020\003\022\025" - + "\n\021DESTROY_SCHEDULED\020\004\022\022\n\016PENDING_IMPORT\020" - + "\006\022\021\n\rIMPORT_FAILED\020\007\022\025\n\021GENERATION_FAILE" - + "D\020\010\022 \n\034PENDING_EXTERNAL_DESTRUCTION\020\t\022\037\n" - + "\033EXTERNAL_DESTRUCTION_FAILED\020\n\"I\n\024Crypto" - + "KeyVersionView\022\'\n#CRYPTO_KEY_VERSION_VIE" - + "W_UNSPECIFIED\020\000\022\010\n\004FULL\020\001:\252\001\352A\246\001\n(cloudk" - + "ms.googleapis.com/CryptoKeyVersion\022zproj" - + "ects/{project}/locations/{location}/keyR" - + "ings/{key_ring}/cryptoKeys/{crypto_key}/" - + "cryptoKeyVersions/{crypto_key_version}\"\234" - + "\003\n\tPublicKey\022\013\n\003pem\030\001 \001(\t\022R\n\talgorithm\030\002" - + " \001(\0162?.google.cloud.kms.v1.CryptoKeyVers" - + "ion.CryptoKeyVersionAlgorithm\022/\n\npem_crc" - + "32c\030\003 \001(\0132\033.google.protobuf.Int64Value\022\014" - + "\n\004name\030\004 \001(\t\022>\n\020protection_level\030\005 \001(\0162$" - + ".google.cloud.kms.v1.ProtectionLevel:\256\001\352" - + "A\252\001\n!cloudkms.googleapis.com/PublicKey\022\204" - + "\001projects/{project}/locations/{location}" - + "/keyRings/{key_ring}/cryptoKeys/{crypto_" - + "key}/cryptoKeyVersions/{crypto_key_versi" - + "on}/publicKey\"\324\010\n\tImportJob\022\021\n\004name\030\001 \001(" - + "\tB\003\340A\003\022J\n\rimport_method\030\002 \001(\0162+.google.c" - + "loud.kms.v1.ImportJob.ImportMethodB\006\340A\002\340" - + "A\005\022F\n\020protection_level\030\t \001(\0162$.google.cl" - + "oud.kms.v1.ProtectionLevelB\006\340A\002\340A\005\0224\n\013cr" - + "eate_time\030\003 \001(\0132\032.google.protobuf.Timest" - + "ampB\003\340A\003\0226\n\rgenerate_time\030\004 \001(\0132\032.google" - + ".protobuf.TimestampB\003\340A\003\0224\n\013expire_time\030" - + "\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022:" - + "\n\021expire_event_time\030\n \001(\0132\032.google.proto" - + "buf.TimestampB\003\340A\003\022A\n\005state\030\006 \001(\0162-.goog" - + "le.cloud.kms.v1.ImportJob.ImportJobState" - + "B\003\340A\003\022I\n\npublic_key\030\007 \001(\01320.google.cloud" - + ".kms.v1.ImportJob.WrappingPublicKeyB\003\340A\003" - + "\022F\n\013attestation\030\010 \001(\0132,.google.cloud.kms" - + ".v1.KeyOperationAttestationB\003\340A\003\032 \n\021Wrap" - + "pingPublicKey\022\013\n\003pem\030\001 \001(\t\"\345\001\n\014ImportMet" - + "hod\022\035\n\031IMPORT_METHOD_UNSPECIFIED\020\000\022\036\n\032RS" - + "A_OAEP_3072_SHA1_AES_256\020\001\022\036\n\032RSA_OAEP_4" - + "096_SHA1_AES_256\020\002\022 \n\034RSA_OAEP_3072_SHA2" - + "56_AES_256\020\003\022 \n\034RSA_OAEP_4096_SHA256_AES" - + "_256\020\004\022\030\n\024RSA_OAEP_3072_SHA256\020\005\022\030\n\024RSA_" - + "OAEP_4096_SHA256\020\006\"c\n\016ImportJobState\022 \n\034" - + "IMPORT_JOB_STATE_UNSPECIFIED\020\000\022\026\n\022PENDIN" - + "G_GENERATION\020\001\022\n\n\006ACTIVE\020\002\022\013\n\007EXPIRED\020\003:" - + "{\352Ax\n!cloudkms.googleapis.com/ImportJob\022" - + "Sprojects/{project}/locations/{location}" - + "/keyRings/{key_ring}/importJobs/{import_" - + "job}\"[\n\036ExternalProtectionLevelOptions\022\030" - + "\n\020external_key_uri\030\001 \001(\t\022\037\n\027ekm_connecti" - + "on_key_path\030\002 \001(\t*j\n\017ProtectionLevel\022 \n\034" - + "PROTECTION_LEVEL_UNSPECIFIED\020\000\022\014\n\010SOFTWA" - + "RE\020\001\022\007\n\003HSM\020\002\022\014\n\010EXTERNAL\020\003\022\020\n\014EXTERNAL_" - + "VPC\020\004B\210\001\n\027com.google.cloud.kms.v1B\021KmsRe" - + "sourcesProtoP\001Z)cloud.google.com/go/kms/" - + "apiv1/kmspb;kmspb\370\001\001\252\002\023Google.Cloud.Kms." - + "V1\312\002\023Google\\Cloud\\Kms\\V1b\006proto3" + + "rypto_key_backend\030\017 \001(\tB\t\340A\005\372A\003\n\001*\022a\n ke" + + "y_access_justifications_policy\030\021 \001(\01322.g" + + "oogle.cloud.kms.v1.KeyAccessJustificatio" + + "nsPolicyB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(" + + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\232\001\n\020CryptoKeyPurpos" + + "e\022\"\n\036CRYPTO_KEY_PURPOSE_UNSPECIFIED\020\000\022\023\n" + + "\017ENCRYPT_DECRYPT\020\001\022\023\n\017ASYMMETRIC_SIGN\020\005\022" + + "\026\n\022ASYMMETRIC_DECRYPT\020\006\022\027\n\023RAW_ENCRYPT_D" + + "ECRYPT\020\007\022\007\n\003MAC\020\t:{\352Ax\n!cloudkms.googlea" + + "pis.com/CryptoKey\022Sprojects/{project}/lo" + + "cations/{location}/keyRings/{key_ring}/c" + + "ryptoKeys/{crypto_key}B\023\n\021rotation_sched" + + "ule\"\263\001\n\030CryptoKeyVersionTemplate\022>\n\020prot" + + "ection_level\030\001 \001(\0162$.google.cloud.kms.v1" + + ".ProtectionLevel\022W\n\talgorithm\030\003 \001(\0162?.go" + + "ogle.cloud.kms.v1.CryptoKeyVersion.Crypt" + + "oKeyVersionAlgorithmB\003\340A\002\"\261\003\n\027KeyOperati" + + "onAttestation\022S\n\006format\030\004 \001(\0162>.google.c" + + "loud.kms.v1.KeyOperationAttestation.Atte" + + "stationFormatB\003\340A\003\022\024\n\007content\030\005 \001(\014B\003\340A\003" + + "\022X\n\013cert_chains\030\006 \001(\0132>.google.cloud.kms" + + ".v1.KeyOperationAttestation.CertificateC" + + "hainsB\003\340A\003\032d\n\021CertificateChains\022\024\n\014caviu" + + "m_certs\030\001 \003(\t\022\031\n\021google_card_certs\030\002 \003(\t" + + "\022\036\n\026google_partition_certs\030\003 \003(\t\"k\n\021Atte" + + "stationFormat\022\"\n\036ATTESTATION_FORMAT_UNSP" + + "ECIFIED\020\000\022\030\n\024CAVIUM_V1_COMPRESSED\020\003\022\030\n\024C" + + "AVIUM_V2_COMPRESSED\020\004\"\201\023\n\020CryptoKeyVersi" + + "on\022\021\n\004name\030\001 \001(\tB\003\340A\003\022J\n\005state\030\003 \001(\0162;.g" + + "oogle.cloud.kms.v1.CryptoKeyVersion.Cryp" + + "toKeyVersionState\022C\n\020protection_level\030\007 " + + "\001(\0162$.google.cloud.kms.v1.ProtectionLeve" + + "lB\003\340A\003\022W\n\talgorithm\030\n \001(\0162?.google.cloud" + + ".kms.v1.CryptoKeyVersion.CryptoKeyVersio" + + "nAlgorithmB\003\340A\003\022F\n\013attestation\030\010 \001(\0132,.g" + + "oogle.cloud.kms.v1.KeyOperationAttestati" + + "onB\003\340A\003\0224\n\013create_time\030\004 \001(\0132\032.google.pr" + + "otobuf.TimestampB\003\340A\003\0226\n\rgenerate_time\030\013" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0225\n" + + "\014destroy_time\030\005 \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\003\022;\n\022destroy_event_time\030\006 \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003\022\027\n\nimp" + + "ort_job\030\016 \001(\tB\003\340A\003\0224\n\013import_time\030\017 \001(\0132" + + "\032.google.protobuf.TimestampB\003\340A\003\022\"\n\025impo" + + "rt_failure_reason\030\020 \001(\tB\003\340A\003\022&\n\031generati" + + "on_failure_reason\030\023 \001(\tB\003\340A\003\0220\n#external" + + "_destruction_failure_reason\030\024 \001(\tB\003\340A\003\022^" + + "\n!external_protection_level_options\030\021 \001(" + + "\01323.google.cloud.kms.v1.ExternalProtecti" + + "onLevelOptions\022\036\n\021reimport_eligible\030\022 \001(" + + "\010B\003\340A\003\"\342\007\n\031CryptoKeyVersionAlgorithm\022,\n(" + + "CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED" + + "\020\000\022\037\n\033GOOGLE_SYMMETRIC_ENCRYPTION\020\001\022\017\n\013A" + + "ES_128_GCM\020)\022\017\n\013AES_256_GCM\020\023\022\017\n\013AES_128" + + "_CBC\020*\022\017\n\013AES_256_CBC\020+\022\017\n\013AES_128_CTR\020," + + "\022\017\n\013AES_256_CTR\020-\022\034\n\030RSA_SIGN_PSS_2048_S" + + "HA256\020\002\022\034\n\030RSA_SIGN_PSS_3072_SHA256\020\003\022\034\n" + + "\030RSA_SIGN_PSS_4096_SHA256\020\004\022\034\n\030RSA_SIGN_" + + "PSS_4096_SHA512\020\017\022\036\n\032RSA_SIGN_PKCS1_2048" + + "_SHA256\020\005\022\036\n\032RSA_SIGN_PKCS1_3072_SHA256\020" + + "\006\022\036\n\032RSA_SIGN_PKCS1_4096_SHA256\020\007\022\036\n\032RSA" + + "_SIGN_PKCS1_4096_SHA512\020\020\022\033\n\027RSA_SIGN_RA" + + "W_PKCS1_2048\020\034\022\033\n\027RSA_SIGN_RAW_PKCS1_307" + + "2\020\035\022\033\n\027RSA_SIGN_RAW_PKCS1_4096\020\036\022 \n\034RSA_" + + "DECRYPT_OAEP_2048_SHA256\020\010\022 \n\034RSA_DECRYP" + + "T_OAEP_3072_SHA256\020\t\022 \n\034RSA_DECRYPT_OAEP" + + "_4096_SHA256\020\n\022 \n\034RSA_DECRYPT_OAEP_4096_" + + "SHA512\020\021\022\036\n\032RSA_DECRYPT_OAEP_2048_SHA1\020%" + + "\022\036\n\032RSA_DECRYPT_OAEP_3072_SHA1\020&\022\036\n\032RSA_" + + "DECRYPT_OAEP_4096_SHA1\020\'\022\027\n\023EC_SIGN_P256" + + "_SHA256\020\014\022\027\n\023EC_SIGN_P384_SHA384\020\r\022\034\n\030EC" + + "_SIGN_SECP256K1_SHA256\020\037\022\023\n\017EC_SIGN_ED25" + + "519\020(\022\017\n\013HMAC_SHA256\020 \022\r\n\tHMAC_SHA1\020!\022\017\n" + + "\013HMAC_SHA384\020\"\022\017\n\013HMAC_SHA512\020#\022\017\n\013HMAC_" + + "SHA224\020$\022!\n\035EXTERNAL_SYMMETRIC_ENCRYPTIO" + + "N\020\022\"\233\002\n\025CryptoKeyVersionState\022(\n$CRYPTO_" + + "KEY_VERSION_STATE_UNSPECIFIED\020\000\022\026\n\022PENDI" + + "NG_GENERATION\020\005\022\013\n\007ENABLED\020\001\022\014\n\010DISABLED" + + "\020\002\022\r\n\tDESTROYED\020\003\022\025\n\021DESTROY_SCHEDULED\020\004" + + "\022\022\n\016PENDING_IMPORT\020\006\022\021\n\rIMPORT_FAILED\020\007\022" + + "\025\n\021GENERATION_FAILED\020\010\022 \n\034PENDING_EXTERN" + + "AL_DESTRUCTION\020\t\022\037\n\033EXTERNAL_DESTRUCTION" + + "_FAILED\020\n\"I\n\024CryptoKeyVersionView\022\'\n#CRY" + + "PTO_KEY_VERSION_VIEW_UNSPECIFIED\020\000\022\010\n\004FU" + + "LL\020\001:\252\001\352A\246\001\n(cloudkms.googleapis.com/Cry" + + "ptoKeyVersion\022zprojects/{project}/locati" + + "ons/{location}/keyRings/{key_ring}/crypt" + + "oKeys/{crypto_key}/cryptoKeyVersions/{cr" + + "ypto_key_version}\"\234\003\n\tPublicKey\022\013\n\003pem\030\001" + + " \001(\t\022R\n\talgorithm\030\002 \001(\0162?.google.cloud.k" + + "ms.v1.CryptoKeyVersion.CryptoKeyVersionA" + + "lgorithm\022/\n\npem_crc32c\030\003 \001(\0132\033.google.pr" + + "otobuf.Int64Value\022\014\n\004name\030\004 \001(\t\022>\n\020prote" + + "ction_level\030\005 \001(\0162$.google.cloud.kms.v1." + + "ProtectionLevel:\256\001\352A\252\001\n!cloudkms.googlea" + + "pis.com/PublicKey\022\204\001projects/{project}/l" + + "ocations/{location}/keyRings/{key_ring}/" + + "cryptoKeys/{crypto_key}/cryptoKeyVersion" + + "s/{crypto_key_version}/publicKey\"\324\010\n\tImp" + + "ortJob\022\021\n\004name\030\001 \001(\tB\003\340A\003\022J\n\rimport_meth" + + "od\030\002 \001(\0162+.google.cloud.kms.v1.ImportJob" + + ".ImportMethodB\006\340A\002\340A\005\022F\n\020protection_leve" + + "l\030\t \001(\0162$.google.cloud.kms.v1.Protection" + + "LevelB\006\340A\002\340A\005\0224\n\013create_time\030\003 \001(\0132\032.goo" + + "gle.protobuf.TimestampB\003\340A\003\0226\n\rgenerate_" + + "time\030\004 \001(\0132\032.google.protobuf.TimestampB\003" + + "\340A\003\0224\n\013expire_time\030\005 \001(\0132\032.google.protob" + + "uf.TimestampB\003\340A\003\022:\n\021expire_event_time\030\n" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022A\n" + + "\005state\030\006 \001(\0162-.google.cloud.kms.v1.Impor" + + "tJob.ImportJobStateB\003\340A\003\022I\n\npublic_key\030\007" + + " \001(\01320.google.cloud.kms.v1.ImportJob.Wra" + + "ppingPublicKeyB\003\340A\003\022F\n\013attestation\030\010 \001(\013" + + "2,.google.cloud.kms.v1.KeyOperationAttes" + + "tationB\003\340A\003\032 \n\021WrappingPublicKey\022\013\n\003pem\030" + + "\001 \001(\t\"\345\001\n\014ImportMethod\022\035\n\031IMPORT_METHOD_" + + "UNSPECIFIED\020\000\022\036\n\032RSA_OAEP_3072_SHA1_AES_" + + "256\020\001\022\036\n\032RSA_OAEP_4096_SHA1_AES_256\020\002\022 \n" + + "\034RSA_OAEP_3072_SHA256_AES_256\020\003\022 \n\034RSA_O" + + "AEP_4096_SHA256_AES_256\020\004\022\030\n\024RSA_OAEP_30" + + "72_SHA256\020\005\022\030\n\024RSA_OAEP_4096_SHA256\020\006\"c\n" + + "\016ImportJobState\022 \n\034IMPORT_JOB_STATE_UNSP" + + "ECIFIED\020\000\022\026\n\022PENDING_GENERATION\020\001\022\n\n\006ACT" + + "IVE\020\002\022\013\n\007EXPIRED\020\003:{\352Ax\n!cloudkms.google" + + "apis.com/ImportJob\022Sprojects/{project}/l" + + "ocations/{location}/keyRings/{key_ring}/" + + "importJobs/{import_job}\"[\n\036ExternalProte" + + "ctionLevelOptions\022\030\n\020external_key_uri\030\001 " + + "\001(\t\022\037\n\027ekm_connection_key_path\030\002 \001(\t\"b\n\035" + + "KeyAccessJustificationsPolicy\022A\n\026allowed" + + "_access_reasons\030\001 \003(\0162!.google.cloud.kms" + + ".v1.AccessReason*j\n\017ProtectionLevel\022 \n\034P" + + "ROTECTION_LEVEL_UNSPECIFIED\020\000\022\014\n\010SOFTWAR" + + "E\020\001\022\007\n\003HSM\020\002\022\014\n\010EXTERNAL\020\003\022\020\n\014EXTERNAL_V" + + "PC\020\004*\253\003\n\014AccessReason\022\026\n\022REASON_UNSPECIF" + + "IED\020\000\022\036\n\032CUSTOMER_INITIATED_SUPPORT\020\001\022\034\n" + + "\030GOOGLE_INITIATED_SERVICE\020\002\022\034\n\030THIRD_PAR" + + "TY_DATA_REQUEST\020\003\022\033\n\027GOOGLE_INITIATED_RE" + + "VIEW\020\004\022\035\n\031CUSTOMER_INITIATED_ACCESS\020\005\022%\n" + + "!GOOGLE_INITIATED_SYSTEM_OPERATION\020\006\022\027\n\023" + + "REASON_NOT_EXPECTED\020\007\022&\n\"MODIFIED_CUSTOM" + + "ER_INITIATED_ACCESS\020\010\022.\n*MODIFIED_GOOGLE" + + "_INITIATED_SYSTEM_OPERATION\020\t\022\'\n#GOOGLE_" + + "RESPONSE_TO_PRODUCTION_ALERT\020\n\022*\n&CUSTOM" + + "ER_AUTHORIZED_WORKFLOW_SERVICING\020\013B\210\001\n\027c" + + "om.google.cloud.kms.v1B\021KmsResourcesProt" + + "oP\001Z)cloud.google.com/go/kms/apiv1/kmspb" + + ";kmspb\370\001\001\252\002\023Google.Cloud.Kms.V1\312\002\023Google" + + "\\Cloud\\Kms\\V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -274,6 +294,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ImportOnly", "DestroyScheduledDuration", "CryptoKeyBackend", + "KeyAccessJustificationsPolicy", "RotationSchedule", }); internal_static_google_cloud_kms_v1_CryptoKey_LabelsEntry_descriptor = @@ -374,6 +395,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "ExternalKeyUri", "EkmConnectionKeyPath", }); + internal_static_google_cloud_kms_v1_KeyAccessJustificationsPolicy_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_kms_v1_KeyAccessJustificationsPolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_kms_v1_KeyAccessJustificationsPolicy_descriptor, + new java.lang.String[] { + "AllowedAccessReasons", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/resources.proto b/java-kms/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/resources.proto index 74bf64b23ef8..1995b8b5022d 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/resources.proto +++ b/java-kms/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/resources.proto @@ -202,6 +202,17 @@ message CryptoKey { (google.api.field_behavior) = IMMUTABLE, (google.api.resource_reference) = { type: "*" } ]; + + // Optional. The policy used for Key Access Justifications Policy Enforcement. + // If this field is present and this key is enrolled in Key Access + // Justifications Policy Enforcement, the policy will be evaluated in encrypt, + // decrypt, and sign operations, and the operation will fail if rejected by + // the policy. The policy is defined by specifying zero or more allowed + // justification codes. + // https://cloud.google.com/assured-workloads/key-access-justifications/docs/justification-codes + // By default, this field is absent, and all justification codes are allowed. + KeyAccessJustificationsPolicy key_access_justifications_policy = 17 + [(google.api.field_behavior) = OPTIONAL]; } // A [CryptoKeyVersionTemplate][google.cloud.kms.v1.CryptoKeyVersionTemplate] @@ -921,3 +932,84 @@ enum ProtectionLevel { // Crypto operations are performed in an EKM-over-VPC backend. EXTERNAL_VPC = 4; } + +// Describes the reason for a data access. Please refer to +// https://cloud.google.com/assured-workloads/key-access-justifications/docs/justification-codes +// for the detailed semantic meaning of justification reason codes. +enum AccessReason { + // Unspecified access reason. + REASON_UNSPECIFIED = 0; + + // Customer-initiated support. + CUSTOMER_INITIATED_SUPPORT = 1; + + // Google-initiated access for system management and troubleshooting. + GOOGLE_INITIATED_SERVICE = 2; + + // Google-initiated access in response to a legal request or legal process. + THIRD_PARTY_DATA_REQUEST = 3; + + // Google-initiated access for security, fraud, abuse, or compliance purposes. + GOOGLE_INITIATED_REVIEW = 4; + + // Customer uses their account to perform any access to their own data which + // their IAM policy authorizes. + CUSTOMER_INITIATED_ACCESS = 5; + + // Google systems access customer data to help optimize the structure of the + // data or quality for future uses by the customer. + GOOGLE_INITIATED_SYSTEM_OPERATION = 6; + + // No reason is expected for this key request. + REASON_NOT_EXPECTED = 7; + + // Customer uses their account to perform any access to their own data which + // their IAM policy authorizes, and one of the following is true: + // + // * A Google administrator has reset the root-access account associated with + // the user's organization within the past 7 days. + // * A Google-initiated emergency access operation has interacted with a + // resource in the same project or folder as the currently accessed resource + // within the past 7 days. + MODIFIED_CUSTOMER_INITIATED_ACCESS = 8; + + // Google systems access customer data to help optimize the structure of the + // data or quality for future uses by the customer, and one of the following + // is true: + // + // * A Google administrator has reset the root-access account associated with + // the user's organization within the past 7 days. + // * A Google-initiated emergency access operation has interacted with a + // resource in the same project or folder as the currently accessed resource + // within the past 7 days. + MODIFIED_GOOGLE_INITIATED_SYSTEM_OPERATION = 9; + + // Google-initiated access to maintain system reliability. + GOOGLE_RESPONSE_TO_PRODUCTION_ALERT = 10; + + // One of the following operations is being executed while simultaneously + // encountering an internal technical issue which prevented a more precise + // justification code from being generated: + // + // * Your account has been used to perform any access to your own data which + // your IAM policy authorizes. + // * An automated Google system operates on encrypted customer data which your + // IAM policy authorizes. + // * Customer-initiated Google support access. + // * Google-initiated support access to protect system reliability. + CUSTOMER_AUTHORIZED_WORKFLOW_SERVICING = 11; +} + +// A +// [KeyAccessJustificationsPolicy][google.cloud.kms.v1.KeyAccessJustificationsPolicy] +// specifies zero or more allowed +// [AccessReason][google.cloud.kms.v1.AccessReason] values for encrypt, decrypt, +// and sign operations on a [CryptoKey][google.cloud.kms.v1.CryptoKey]. +message KeyAccessJustificationsPolicy { + // The list of allowed reasons for access to a + // [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons + // means all encrypt, decrypt, and sign operations for the + // [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will + // fail. + repeated AccessReason allowed_access_reasons = 1; +} diff --git a/java-kmsinventory/README.md b/java-kmsinventory/README.md index 73c5e90bee60..7a0cf8be430e 100644 --- a/java-kmsinventory/README.md +++ b/java-kmsinventory/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-kmsinventory.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kmsinventory/0.33.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kmsinventory/0.34.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-kmsinventory/google-cloud-kmsinventory/src/main/resources/META-INF/native-image/com.google.cloud.kms.inventory.v1/reflect-config.json b/java-kmsinventory/google-cloud-kmsinventory/src/main/resources/META-INF/native-image/com.google.cloud.kms.inventory.v1/reflect-config.json index e9f99451901d..5cbcfcb3b2f2 100644 --- a/java-kmsinventory/google-cloud-kmsinventory/src/main/resources/META-INF/native-image/com.google.cloud.kms.inventory.v1/reflect-config.json +++ b/java-kmsinventory/google-cloud-kmsinventory/src/main/resources/META-INF/native-image/com.google.cloud.kms.inventory.v1/reflect-config.json @@ -503,6 +503,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.kms.v1.AccessReason", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.kms.v1.CryptoKey", "queryAllDeclaredConstructors": true, @@ -665,6 +674,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.kms.v1.KeyAccessJustificationsPolicy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.kms.v1.KeyAccessJustificationsPolicy$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.kms.v1.KeyOperationAttestation", "queryAllDeclaredConstructors": true, diff --git a/java-language/README.md b/java-language/README.md index b774c8b95921..c16af8023517 100644 --- a/java-language/README.md +++ b/java-language/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -227,7 +227,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-language.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-language/2.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-language/2.46.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-life-sciences/README.md b/java-life-sciences/README.md index c25c86eb21ff..4fc03ca2fed0 100644 --- a/java-life-sciences/README.md +++ b/java-life-sciences/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-life-sciences.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-life-sciences/0.46.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-life-sciences/0.47.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-managed-identities/README.md b/java-managed-identities/README.md index 47960dbb4592..92d4ea7b2396 100644 --- a/java-managed-identities/README.md +++ b/java-managed-identities/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-managed-identities.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-managed-identities/1.42.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-managed-identities/1.43.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-managedkafka/README.md b/java-managedkafka/README.md index e039529a650d..70217aba5440 100644 --- a/java-managedkafka/README.md +++ b/java-managedkafka/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-managedkafka.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-managedkafka/0.0.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-managedkafka/0.1.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-addressvalidation/README.md b/java-maps-addressvalidation/README.md index ead392be53cc..5fa9b482cc99 100644 --- a/java-maps-addressvalidation/README.md +++ b/java-maps-addressvalidation/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-addressvalidation.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-addressvalidation/0.38.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-addressvalidation/0.39.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-mapsplatformdatasets/README.md b/java-maps-mapsplatformdatasets/README.md index 499f05155cd2..3b0ae8d3f428 100644 --- a/java-maps-mapsplatformdatasets/README.md +++ b/java-maps-mapsplatformdatasets/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -202,7 +202,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-mapsplatformdatasets.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-mapsplatformdatasets/0.33.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-mapsplatformdatasets/0.34.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-places/README.md b/java-maps-places/README.md index 54326f444ea9..d38ae28d4633 100644 --- a/java-maps-places/README.md +++ b/java-maps-places/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-places.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-places/0.15.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-places/0.16.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-routeoptimization/README.md b/java-maps-routeoptimization/README.md index c74c80190a8e..a6bf302a2291 100644 --- a/java-maps-routeoptimization/README.md +++ b/java-maps-routeoptimization/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-routeoptimization.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-routeoptimization/0.2.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-routeoptimization/0.3.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-routing/README.md b/java-maps-routing/README.md index 96f6d9fa4f73..37d060f78317 100644 --- a/java-maps-routing/README.md +++ b/java-maps-routing/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-routing.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-routing/1.29.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-routing/1.30.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-solar/README.md b/java-maps-solar/README.md index d57c6b125252..67cab137d053 100644 --- a/java-maps-solar/README.md +++ b/java-maps-solar/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-solar.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-solar/0.3.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-solar/0.4.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-mediatranslation/README.md b/java-mediatranslation/README.md index 7342ad74bee5..4469e716e89f 100644 --- a/java-mediatranslation/README.md +++ b/java-mediatranslation/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-mediatranslation.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-mediatranslation/0.50.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-mediatranslation/0.51.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-meet/README.md b/java-meet/README.md index 497a025d26ae..02ae32c72f98 100644 --- a/java-meet/README.md +++ b/java-meet/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-meet.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-meet/0.11.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-meet/0.12.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-memcache/README.md b/java-memcache/README.md index 39b7012c0b2a..34f33166eda5 100644 --- a/java-memcache/README.md +++ b/java-memcache/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-memcache.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-memcache/2.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-memcache/2.45.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-migrationcenter/README.md b/java-migrationcenter/README.md index ba967f7fad3d..d502f13c4eec 100644 --- a/java-migrationcenter/README.md +++ b/java-migrationcenter/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-migrationcenter.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-migrationcenter/0.26.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-migrationcenter/0.27.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-monitoring-dashboards/README.md b/java-monitoring-dashboards/README.md index 142e34eb5b7f..1daf02c1163a 100644 --- a/java-monitoring-dashboards/README.md +++ b/java-monitoring-dashboards/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-monitoring-dashboard.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring-dashboard/2.46.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring-dashboard/2.47.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-monitoring-metricsscope/README.md b/java-monitoring-metricsscope/README.md index bf71e8758a83..c59f5f92056d 100644 --- a/java-monitoring-metricsscope/README.md +++ b/java-monitoring-metricsscope/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-monitoring-metricsscope.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring-metricsscope/0.38.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring-metricsscope/0.39.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-monitoring/README.md b/java-monitoring/README.md index d1b3e365ae28..e56c5f757cdf 100644 --- a/java-monitoring/README.md +++ b/java-monitoring/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-monitoring.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring/3.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring/3.46.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-monitoring/google-cloud-monitoring/src/main/resources/META-INF/native-image/com.google.cloud.monitoring.v3/reflect-config.json b/java-monitoring/google-cloud-monitoring/src/main/resources/META-INF/native-image/com.google.cloud.monitoring.v3/reflect-config.json index 8b989dabce83..2ea787b3bb9d 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/resources/META-INF/native-image/com.google.cloud.monitoring.v3/reflect-config.json +++ b/java-monitoring/google-cloud-monitoring/src/main/resources/META-INF/native-image/com.google.cloud.monitoring.v3/reflect-config.json @@ -944,6 +944,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.monitoring.v3.AlertPolicy$Documentation$Link", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.monitoring.v3.AlertPolicy$Documentation$Link$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.monitoring.v3.AlertPolicy$Severity", "queryAllDeclaredConstructors": true, diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicy.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicy.java index 0034664ec896..d931800f8668 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicy.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertPolicy.java @@ -579,6 +579,73 @@ public interface DocumentationOrBuilder * @return The bytes for subject. */ com.google.protobuf.ByteString getSubjectBytes(); + + /** + * + * + *
          +     * Optional. Links to content such as playbooks, repositories, and other
          +     * resources. This field can contain up to 3 entries.
          +     * 
          + * + * + * repeated .google.monitoring.v3.AlertPolicy.Documentation.Link links = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getLinksList(); + /** + * + * + *
          +     * Optional. Links to content such as playbooks, repositories, and other
          +     * resources. This field can contain up to 3 entries.
          +     * 
          + * + * + * repeated .google.monitoring.v3.AlertPolicy.Documentation.Link links = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.monitoring.v3.AlertPolicy.Documentation.Link getLinks(int index); + /** + * + * + *
          +     * Optional. Links to content such as playbooks, repositories, and other
          +     * resources. This field can contain up to 3 entries.
          +     * 
          + * + * + * repeated .google.monitoring.v3.AlertPolicy.Documentation.Link links = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getLinksCount(); + /** + * + * + *
          +     * Optional. Links to content such as playbooks, repositories, and other
          +     * resources. This field can contain up to 3 entries.
          +     * 
          + * + * + * repeated .google.monitoring.v3.AlertPolicy.Documentation.Link links = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getLinksOrBuilderList(); + /** + * + * + *
          +     * Optional. Links to content such as playbooks, repositories, and other
          +     * resources. This field can contain up to 3 entries.
          +     * 
          + * + * + * repeated .google.monitoring.v3.AlertPolicy.Documentation.Link links = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.monitoring.v3.AlertPolicy.Documentation.LinkOrBuilder getLinksOrBuilder(int index); } /** * @@ -600,31 +667,926 @@ private Documentation(com.google.protobuf.GeneratedMessageV3.Builder builder) super(builder); } - private Documentation() { - content_ = ""; - mimeType_ = ""; - subject_ = ""; - } + private Documentation() { + content_ = ""; + mimeType_ = ""; + subject_ = ""; + links_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Documentation(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.AlertProto + .internal_static_google_monitoring_v3_AlertPolicy_Documentation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.monitoring.v3.AlertProto + .internal_static_google_monitoring_v3_AlertPolicy_Documentation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.monitoring.v3.AlertPolicy.Documentation.class, + com.google.monitoring.v3.AlertPolicy.Documentation.Builder.class); + } + + public interface LinkOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.monitoring.v3.AlertPolicy.Documentation.Link) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +       * A short display name for the link. The display name must not be empty
          +       * or exceed 63 characters. Example: "playbook".
          +       * 
          + * + * string display_name = 1; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
          +       * A short display name for the link. The display name must not be empty
          +       * or exceed 63 characters. Example: "playbook".
          +       * 
          + * + * string display_name = 1; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
          +       * The url of a webpage.
          +       * A url can be templatized by using variables
          +       * in the path or the query parameters. The total length of a URL should
          +       * not exceed 2083 characters before and after variable expansion.
          +       * Example: "https://my_domain.com/playbook?name=${resource.name}"
          +       * 
          + * + * string url = 2; + * + * @return The url. + */ + java.lang.String getUrl(); + /** + * + * + *
          +       * The url of a webpage.
          +       * A url can be templatized by using variables
          +       * in the path or the query parameters. The total length of a URL should
          +       * not exceed 2083 characters before and after variable expansion.
          +       * Example: "https://my_domain.com/playbook?name=${resource.name}"
          +       * 
          + * + * string url = 2; + * + * @return The bytes for url. + */ + com.google.protobuf.ByteString getUrlBytes(); + } + /** + * + * + *
          +     * Links to content such as playbooks, repositories, and other resources.
          +     * 
          + * + * Protobuf type {@code google.monitoring.v3.AlertPolicy.Documentation.Link} + */ + public static final class Link extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.monitoring.v3.AlertPolicy.Documentation.Link) + LinkOrBuilder { + private static final long serialVersionUID = 0L; + // Use Link.newBuilder() to construct. + private Link(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Link() { + displayName_ = ""; + url_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Link(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.AlertProto + .internal_static_google_monitoring_v3_AlertPolicy_Documentation_Link_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.monitoring.v3.AlertProto + .internal_static_google_monitoring_v3_AlertPolicy_Documentation_Link_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.monitoring.v3.AlertPolicy.Documentation.Link.class, + com.google.monitoring.v3.AlertPolicy.Documentation.Link.Builder.class); + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
          +       * A short display name for the link. The display name must not be empty
          +       * or exceed 63 characters. Example: "playbook".
          +       * 
          + * + * string display_name = 1; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
          +       * A short display name for the link. The display name must not be empty
          +       * or exceed 63 characters. Example: "playbook".
          +       * 
          + * + * string display_name = 1; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int URL_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object url_ = ""; + /** + * + * + *
          +       * The url of a webpage.
          +       * A url can be templatized by using variables
          +       * in the path or the query parameters. The total length of a URL should
          +       * not exceed 2083 characters before and after variable expansion.
          +       * Example: "https://my_domain.com/playbook?name=${resource.name}"
          +       * 
          + * + * string url = 2; + * + * @return The url. + */ + @java.lang.Override + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + url_ = s; + return s; + } + } + /** + * + * + *
          +       * The url of a webpage.
          +       * A url can be templatized by using variables
          +       * in the path or the query parameters. The total length of a URL should
          +       * not exceed 2083 characters before and after variable expansion.
          +       * Example: "https://my_domain.com/playbook?name=${resource.name}"
          +       * 
          + * + * string url = 2; + * + * @return The bytes for url. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, url_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, url_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.monitoring.v3.AlertPolicy.Documentation.Link)) { + return super.equals(obj); + } + com.google.monitoring.v3.AlertPolicy.Documentation.Link other = + (com.google.monitoring.v3.AlertPolicy.Documentation.Link) obj; + + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getUrl().equals(other.getUrl())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + URL_FIELD_NUMBER; + hash = (53 * hash) + getUrl().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.monitoring.v3.AlertPolicy.Documentation.Link parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.monitoring.v3.AlertPolicy.Documentation.Link parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.monitoring.v3.AlertPolicy.Documentation.Link parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.monitoring.v3.AlertPolicy.Documentation.Link parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.monitoring.v3.AlertPolicy.Documentation.Link parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.monitoring.v3.AlertPolicy.Documentation.Link parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.monitoring.v3.AlertPolicy.Documentation.Link parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.monitoring.v3.AlertPolicy.Documentation.Link parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.monitoring.v3.AlertPolicy.Documentation.Link parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.monitoring.v3.AlertPolicy.Documentation.Link parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.monitoring.v3.AlertPolicy.Documentation.Link parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.monitoring.v3.AlertPolicy.Documentation.Link parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.monitoring.v3.AlertPolicy.Documentation.Link prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +       * Links to content such as playbooks, repositories, and other resources.
          +       * 
          + * + * Protobuf type {@code google.monitoring.v3.AlertPolicy.Documentation.Link} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.monitoring.v3.AlertPolicy.Documentation.Link) + com.google.monitoring.v3.AlertPolicy.Documentation.LinkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.monitoring.v3.AlertProto + .internal_static_google_monitoring_v3_AlertPolicy_Documentation_Link_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.monitoring.v3.AlertProto + .internal_static_google_monitoring_v3_AlertPolicy_Documentation_Link_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.monitoring.v3.AlertPolicy.Documentation.Link.class, + com.google.monitoring.v3.AlertPolicy.Documentation.Link.Builder.class); + } + + // Construct using com.google.monitoring.v3.AlertPolicy.Documentation.Link.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + displayName_ = ""; + url_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.monitoring.v3.AlertProto + .internal_static_google_monitoring_v3_AlertPolicy_Documentation_Link_descriptor; + } + + @java.lang.Override + public com.google.monitoring.v3.AlertPolicy.Documentation.Link getDefaultInstanceForType() { + return com.google.monitoring.v3.AlertPolicy.Documentation.Link.getDefaultInstance(); + } + + @java.lang.Override + public com.google.monitoring.v3.AlertPolicy.Documentation.Link build() { + com.google.monitoring.v3.AlertPolicy.Documentation.Link result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.monitoring.v3.AlertPolicy.Documentation.Link buildPartial() { + com.google.monitoring.v3.AlertPolicy.Documentation.Link result = + new com.google.monitoring.v3.AlertPolicy.Documentation.Link(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.monitoring.v3.AlertPolicy.Documentation.Link result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.url_ = url_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.monitoring.v3.AlertPolicy.Documentation.Link) { + return mergeFrom((com.google.monitoring.v3.AlertPolicy.Documentation.Link) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.monitoring.v3.AlertPolicy.Documentation.Link other) { + if (other == com.google.monitoring.v3.AlertPolicy.Documentation.Link.getDefaultInstance()) + return this; + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUrl().isEmpty()) { + url_ = other.url_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + url_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object displayName_ = ""; + /** + * + * + *
          +         * A short display name for the link. The display name must not be empty
          +         * or exceed 63 characters. Example: "playbook".
          +         * 
          + * + * string display_name = 1; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +         * A short display name for the link. The display name must not be empty
          +         * or exceed 63 characters. Example: "playbook".
          +         * 
          + * + * string display_name = 1; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +         * A short display name for the link. The display name must not be empty
          +         * or exceed 63 characters. Example: "playbook".
          +         * 
          + * + * string display_name = 1; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +         * A short display name for the link. The display name must not be empty
          +         * or exceed 63 characters. Example: "playbook".
          +         * 
          + * + * string display_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +         * A short display name for the link. The display name must not be empty
          +         * or exceed 63 characters. Example: "playbook".
          +         * 
          + * + * string display_name = 1; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object url_ = ""; + /** + * + * + *
          +         * The url of a webpage.
          +         * A url can be templatized by using variables
          +         * in the path or the query parameters. The total length of a URL should
          +         * not exceed 2083 characters before and after variable expansion.
          +         * Example: "https://my_domain.com/playbook?name=${resource.name}"
          +         * 
          + * + * string url = 2; + * + * @return The url. + */ + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + url_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +         * The url of a webpage.
          +         * A url can be templatized by using variables
          +         * in the path or the query parameters. The total length of a URL should
          +         * not exceed 2083 characters before and after variable expansion.
          +         * Example: "https://my_domain.com/playbook?name=${resource.name}"
          +         * 
          + * + * string url = 2; + * + * @return The bytes for url. + */ + public com.google.protobuf.ByteString getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +         * The url of a webpage.
          +         * A url can be templatized by using variables
          +         * in the path or the query parameters. The total length of a URL should
          +         * not exceed 2083 characters before and after variable expansion.
          +         * Example: "https://my_domain.com/playbook?name=${resource.name}"
          +         * 
          + * + * string url = 2; + * + * @param value The url to set. + * @return This builder for chaining. + */ + public Builder setUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + url_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +         * The url of a webpage.
          +         * A url can be templatized by using variables
          +         * in the path or the query parameters. The total length of a URL should
          +         * not exceed 2083 characters before and after variable expansion.
          +         * Example: "https://my_domain.com/playbook?name=${resource.name}"
          +         * 
          + * + * string url = 2; + * + * @return This builder for chaining. + */ + public Builder clearUrl() { + url_ = getDefaultInstance().getUrl(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
          +         * The url of a webpage.
          +         * A url can be templatized by using variables
          +         * in the path or the query parameters. The total length of a URL should
          +         * not exceed 2083 characters before and after variable expansion.
          +         * Example: "https://my_domain.com/playbook?name=${resource.name}"
          +         * 
          + * + * string url = 2; + * + * @param value The bytes for url to set. + * @return This builder for chaining. + */ + public Builder setUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + url_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Documentation(); - } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.monitoring.v3.AlertProto - .internal_static_google_monitoring_v3_AlertPolicy_Documentation_descriptor; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.monitoring.v3.AlertProto - .internal_static_google_monitoring_v3_AlertPolicy_Documentation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.monitoring.v3.AlertPolicy.Documentation.class, - com.google.monitoring.v3.AlertPolicy.Documentation.Builder.class); + // @@protoc_insertion_point(builder_scope:google.monitoring.v3.AlertPolicy.Documentation.Link) + } + + // @@protoc_insertion_point(class_scope:google.monitoring.v3.AlertPolicy.Documentation.Link) + private static final com.google.monitoring.v3.AlertPolicy.Documentation.Link DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.monitoring.v3.AlertPolicy.Documentation.Link(); + } + + public static com.google.monitoring.v3.AlertPolicy.Documentation.Link getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Link parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.monitoring.v3.AlertPolicy.Documentation.Link getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } public static final int CONTENT_FIELD_NUMBER = 1; @@ -816,6 +1778,94 @@ public com.google.protobuf.ByteString getSubjectBytes() { } } + public static final int LINKS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List links_; + /** + * + * + *
          +     * Optional. Links to content such as playbooks, repositories, and other
          +     * resources. This field can contain up to 3 entries.
          +     * 
          + * + * + * repeated .google.monitoring.v3.AlertPolicy.Documentation.Link links = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getLinksList() { + return links_; + } + /** + * + * + *
          +     * Optional. Links to content such as playbooks, repositories, and other
          +     * resources. This field can contain up to 3 entries.
          +     * 
          + * + * + * repeated .google.monitoring.v3.AlertPolicy.Documentation.Link links = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.monitoring.v3.AlertPolicy.Documentation.LinkOrBuilder> + getLinksOrBuilderList() { + return links_; + } + /** + * + * + *
          +     * Optional. Links to content such as playbooks, repositories, and other
          +     * resources. This field can contain up to 3 entries.
          +     * 
          + * + * + * repeated .google.monitoring.v3.AlertPolicy.Documentation.Link links = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getLinksCount() { + return links_.size(); + } + /** + * + * + *
          +     * Optional. Links to content such as playbooks, repositories, and other
          +     * resources. This field can contain up to 3 entries.
          +     * 
          + * + * + * repeated .google.monitoring.v3.AlertPolicy.Documentation.Link links = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.monitoring.v3.AlertPolicy.Documentation.Link getLinks(int index) { + return links_.get(index); + } + /** + * + * + *
          +     * Optional. Links to content such as playbooks, repositories, and other
          +     * resources. This field can contain up to 3 entries.
          +     * 
          + * + * + * repeated .google.monitoring.v3.AlertPolicy.Documentation.Link links = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.monitoring.v3.AlertPolicy.Documentation.LinkOrBuilder getLinksOrBuilder( + int index) { + return links_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -839,6 +1889,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subject_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, subject_); } + for (int i = 0; i < links_.size(); i++) { + output.writeMessage(4, links_.get(i)); + } getUnknownFields().writeTo(output); } @@ -857,6 +1910,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subject_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, subject_); } + for (int i = 0; i < links_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, links_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -876,6 +1932,7 @@ public boolean equals(final java.lang.Object obj) { if (!getContent().equals(other.getContent())) return false; if (!getMimeType().equals(other.getMimeType())) return false; if (!getSubject().equals(other.getSubject())) return false; + if (!getLinksList().equals(other.getLinksList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -893,6 +1950,10 @@ public int hashCode() { hash = (53 * hash) + getMimeType().hashCode(); hash = (37 * hash) + SUBJECT_FIELD_NUMBER; hash = (53 * hash) + getSubject().hashCode(); + if (getLinksCount() > 0) { + hash = (37 * hash) + LINKS_FIELD_NUMBER; + hash = (53 * hash) + getLinksList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1038,6 +2099,13 @@ public Builder clear() { content_ = ""; mimeType_ = ""; subject_ = ""; + if (linksBuilder_ == null) { + links_ = java.util.Collections.emptyList(); + } else { + links_ = null; + linksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); return this; } @@ -1065,6 +2133,7 @@ public com.google.monitoring.v3.AlertPolicy.Documentation build() { public com.google.monitoring.v3.AlertPolicy.Documentation buildPartial() { com.google.monitoring.v3.AlertPolicy.Documentation result = new com.google.monitoring.v3.AlertPolicy.Documentation(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -1072,6 +2141,19 @@ public com.google.monitoring.v3.AlertPolicy.Documentation buildPartial() { return result; } + private void buildPartialRepeatedFields( + com.google.monitoring.v3.AlertPolicy.Documentation result) { + if (linksBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + links_ = java.util.Collections.unmodifiableList(links_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.links_ = links_; + } else { + result.links_ = linksBuilder_.build(); + } + } + private void buildPartial0(com.google.monitoring.v3.AlertPolicy.Documentation result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -1148,6 +2230,33 @@ public Builder mergeFrom(com.google.monitoring.v3.AlertPolicy.Documentation othe bitField0_ |= 0x00000004; onChanged(); } + if (linksBuilder_ == null) { + if (!other.links_.isEmpty()) { + if (links_.isEmpty()) { + links_ = other.links_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureLinksIsMutable(); + links_.addAll(other.links_); + } + onChanged(); + } + } else { + if (!other.links_.isEmpty()) { + if (linksBuilder_.isEmpty()) { + linksBuilder_.dispose(); + linksBuilder_ = null; + links_ = other.links_; + bitField0_ = (bitField0_ & ~0x00000008); + linksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLinksFieldBuilder() + : null; + } else { + linksBuilder_.addAllMessages(other.links_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1192,6 +2301,20 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 34: + { + com.google.monitoring.v3.AlertPolicy.Documentation.Link m = + input.readMessage( + com.google.monitoring.v3.AlertPolicy.Documentation.Link.parser(), + extensionRegistry); + if (linksBuilder_ == null) { + ensureLinksIsMutable(); + links_.add(m); + } else { + linksBuilder_.addMessage(m); + } + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1209,30 +2332,280 @@ public Builder mergeFrom( return this; } - private int bitField0_; - - private java.lang.Object content_ = ""; + private int bitField0_; + + private java.lang.Object content_ = ""; + /** + * + * + *
          +       * The body of the documentation, interpreted according to `mime_type`.
          +       * The content may not exceed 8,192 Unicode characters and may not exceed
          +       * more than 10,240 bytes when encoded in UTF-8 format, whichever is
          +       * smaller. This text can be [templatized by using
          +       * variables](https://cloud.google.com/monitoring/alerts/doc-variables).
          +       * 
          + * + * string content = 1; + * + * @return The content. + */ + public java.lang.String getContent() { + java.lang.Object ref = content_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + content_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +       * The body of the documentation, interpreted according to `mime_type`.
          +       * The content may not exceed 8,192 Unicode characters and may not exceed
          +       * more than 10,240 bytes when encoded in UTF-8 format, whichever is
          +       * smaller. This text can be [templatized by using
          +       * variables](https://cloud.google.com/monitoring/alerts/doc-variables).
          +       * 
          + * + * string content = 1; + * + * @return The bytes for content. + */ + public com.google.protobuf.ByteString getContentBytes() { + java.lang.Object ref = content_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + content_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +       * The body of the documentation, interpreted according to `mime_type`.
          +       * The content may not exceed 8,192 Unicode characters and may not exceed
          +       * more than 10,240 bytes when encoded in UTF-8 format, whichever is
          +       * smaller. This text can be [templatized by using
          +       * variables](https://cloud.google.com/monitoring/alerts/doc-variables).
          +       * 
          + * + * string content = 1; + * + * @param value The content to set. + * @return This builder for chaining. + */ + public Builder setContent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +       * The body of the documentation, interpreted according to `mime_type`.
          +       * The content may not exceed 8,192 Unicode characters and may not exceed
          +       * more than 10,240 bytes when encoded in UTF-8 format, whichever is
          +       * smaller. This text can be [templatized by using
          +       * variables](https://cloud.google.com/monitoring/alerts/doc-variables).
          +       * 
          + * + * string content = 1; + * + * @return This builder for chaining. + */ + public Builder clearContent() { + content_ = getDefaultInstance().getContent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +       * The body of the documentation, interpreted according to `mime_type`.
          +       * The content may not exceed 8,192 Unicode characters and may not exceed
          +       * more than 10,240 bytes when encoded in UTF-8 format, whichever is
          +       * smaller. This text can be [templatized by using
          +       * variables](https://cloud.google.com/monitoring/alerts/doc-variables).
          +       * 
          + * + * string content = 1; + * + * @param value The bytes for content to set. + * @return This builder for chaining. + */ + public Builder setContentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + content_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object mimeType_ = ""; + /** + * + * + *
          +       * The format of the `content` field. Presently, only the value
          +       * `"text/markdown"` is supported. See
          +       * [Markdown](https://en.wikipedia.org/wiki/Markdown) for more information.
          +       * 
          + * + * string mime_type = 2; + * + * @return The mimeType. + */ + public java.lang.String getMimeType() { + java.lang.Object ref = mimeType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mimeType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +       * The format of the `content` field. Presently, only the value
          +       * `"text/markdown"` is supported. See
          +       * [Markdown](https://en.wikipedia.org/wiki/Markdown) for more information.
          +       * 
          + * + * string mime_type = 2; + * + * @return The bytes for mimeType. + */ + public com.google.protobuf.ByteString getMimeTypeBytes() { + java.lang.Object ref = mimeType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mimeType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +       * The format of the `content` field. Presently, only the value
          +       * `"text/markdown"` is supported. See
          +       * [Markdown](https://en.wikipedia.org/wiki/Markdown) for more information.
          +       * 
          + * + * string mime_type = 2; + * + * @param value The mimeType to set. + * @return This builder for chaining. + */ + public Builder setMimeType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + mimeType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +       * The format of the `content` field. Presently, only the value
          +       * `"text/markdown"` is supported. See
          +       * [Markdown](https://en.wikipedia.org/wiki/Markdown) for more information.
          +       * 
          + * + * string mime_type = 2; + * + * @return This builder for chaining. + */ + public Builder clearMimeType() { + mimeType_ = getDefaultInstance().getMimeType(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
          +       * The format of the `content` field. Presently, only the value
          +       * `"text/markdown"` is supported. See
          +       * [Markdown](https://en.wikipedia.org/wiki/Markdown) for more information.
          +       * 
          + * + * string mime_type = 2; + * + * @param value The bytes for mimeType to set. + * @return This builder for chaining. + */ + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object subject_ = ""; /** * * *
          -       * The body of the documentation, interpreted according to `mime_type`.
          -       * The content may not exceed 8,192 Unicode characters and may not exceed
          -       * more than 10,240 bytes when encoded in UTF-8 format, whichever is
          -       * smaller. This text can be [templatized by using
          +       * Optional. The subject line of the notification. The subject line may not
          +       * exceed 10,240 bytes. In notifications generated by this policy, the
          +       * contents of the subject line after variable expansion will be truncated
          +       * to 255 bytes or shorter at the latest UTF-8 character boundary. The
          +       * 255-byte limit is recommended by [this
          +       * thread](https://stackoverflow.com/questions/1592291/what-is-the-email-subject-length-limit).
          +       * It is both the limit imposed by some third-party ticketing products and
          +       * it is common to define textual fields in databases as VARCHAR(255).
          +       *
          +       * The contents of the subject line can be [templatized by using
                  * variables](https://cloud.google.com/monitoring/alerts/doc-variables).
          +       * If this field is missing or empty, a default subject line will be
          +       * generated.
                  * 
          * - * string content = 1; + * string subject = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The content. + * @return The subject. */ - public java.lang.String getContent() { - java.lang.Object ref = content_; + public java.lang.String getSubject() { + java.lang.Object ref = subject_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - content_ = s; + subject_ = s; return s; } else { return (java.lang.String) ref; @@ -1242,23 +2615,31 @@ public java.lang.String getContent() { * * *
          -       * The body of the documentation, interpreted according to `mime_type`.
          -       * The content may not exceed 8,192 Unicode characters and may not exceed
          -       * more than 10,240 bytes when encoded in UTF-8 format, whichever is
          -       * smaller. This text can be [templatized by using
          +       * Optional. The subject line of the notification. The subject line may not
          +       * exceed 10,240 bytes. In notifications generated by this policy, the
          +       * contents of the subject line after variable expansion will be truncated
          +       * to 255 bytes or shorter at the latest UTF-8 character boundary. The
          +       * 255-byte limit is recommended by [this
          +       * thread](https://stackoverflow.com/questions/1592291/what-is-the-email-subject-length-limit).
          +       * It is both the limit imposed by some third-party ticketing products and
          +       * it is common to define textual fields in databases as VARCHAR(255).
          +       *
          +       * The contents of the subject line can be [templatized by using
                  * variables](https://cloud.google.com/monitoring/alerts/doc-variables).
          +       * If this field is missing or empty, a default subject line will be
          +       * generated.
                  * 
          * - * string content = 1; + * string subject = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for content. + * @return The bytes for subject. */ - public com.google.protobuf.ByteString getContentBytes() { - java.lang.Object ref = content_; + public com.google.protobuf.ByteString getSubjectBytes() { + java.lang.Object ref = subject_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - content_ = b; + subject_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -1268,24 +2649,32 @@ public com.google.protobuf.ByteString getContentBytes() { * * *
          -       * The body of the documentation, interpreted according to `mime_type`.
          -       * The content may not exceed 8,192 Unicode characters and may not exceed
          -       * more than 10,240 bytes when encoded in UTF-8 format, whichever is
          -       * smaller. This text can be [templatized by using
          +       * Optional. The subject line of the notification. The subject line may not
          +       * exceed 10,240 bytes. In notifications generated by this policy, the
          +       * contents of the subject line after variable expansion will be truncated
          +       * to 255 bytes or shorter at the latest UTF-8 character boundary. The
          +       * 255-byte limit is recommended by [this
          +       * thread](https://stackoverflow.com/questions/1592291/what-is-the-email-subject-length-limit).
          +       * It is both the limit imposed by some third-party ticketing products and
          +       * it is common to define textual fields in databases as VARCHAR(255).
          +       *
          +       * The contents of the subject line can be [templatized by using
                  * variables](https://cloud.google.com/monitoring/alerts/doc-variables).
          +       * If this field is missing or empty, a default subject line will be
          +       * generated.
                  * 
          * - * string content = 1; + * string subject = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The content to set. + * @param value The subject to set. * @return This builder for chaining. */ - public Builder setContent(java.lang.String value) { + public Builder setSubject(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - content_ = value; - bitField0_ |= 0x00000001; + subject_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1293,330 +2682,483 @@ public Builder setContent(java.lang.String value) { * * *
          -       * The body of the documentation, interpreted according to `mime_type`.
          -       * The content may not exceed 8,192 Unicode characters and may not exceed
          -       * more than 10,240 bytes when encoded in UTF-8 format, whichever is
          -       * smaller. This text can be [templatized by using
          +       * Optional. The subject line of the notification. The subject line may not
          +       * exceed 10,240 bytes. In notifications generated by this policy, the
          +       * contents of the subject line after variable expansion will be truncated
          +       * to 255 bytes or shorter at the latest UTF-8 character boundary. The
          +       * 255-byte limit is recommended by [this
          +       * thread](https://stackoverflow.com/questions/1592291/what-is-the-email-subject-length-limit).
          +       * It is both the limit imposed by some third-party ticketing products and
          +       * it is common to define textual fields in databases as VARCHAR(255).
          +       *
          +       * The contents of the subject line can be [templatized by using
                  * variables](https://cloud.google.com/monitoring/alerts/doc-variables).
          +       * If this field is missing or empty, a default subject line will be
          +       * generated.
                  * 
          * - * string content = 1; + * string subject = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ - public Builder clearContent() { - content_ = getDefaultInstance().getContent(); - bitField0_ = (bitField0_ & ~0x00000001); + public Builder clearSubject() { + subject_ = getDefaultInstance().getSubject(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
          +       * Optional. The subject line of the notification. The subject line may not
          +       * exceed 10,240 bytes. In notifications generated by this policy, the
          +       * contents of the subject line after variable expansion will be truncated
          +       * to 255 bytes or shorter at the latest UTF-8 character boundary. The
          +       * 255-byte limit is recommended by [this
          +       * thread](https://stackoverflow.com/questions/1592291/what-is-the-email-subject-length-limit).
          +       * It is both the limit imposed by some third-party ticketing products and
          +       * it is common to define textual fields in databases as VARCHAR(255).
          +       *
          +       * The contents of the subject line can be [templatized by using
          +       * variables](https://cloud.google.com/monitoring/alerts/doc-variables).
          +       * If this field is missing or empty, a default subject line will be
          +       * generated.
          +       * 
          + * + * string subject = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for subject to set. + * @return This builder for chaining. + */ + public Builder setSubjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subject_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } + + private java.util.List links_ = + java.util.Collections.emptyList(); + + private void ensureLinksIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + links_ = + new java.util.ArrayList( + links_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.v3.AlertPolicy.Documentation.Link, + com.google.monitoring.v3.AlertPolicy.Documentation.Link.Builder, + com.google.monitoring.v3.AlertPolicy.Documentation.LinkOrBuilder> + linksBuilder_; + + /** + * + * + *
          +       * Optional. Links to content such as playbooks, repositories, and other
          +       * resources. This field can contain up to 3 entries.
          +       * 
          + * + * + * repeated .google.monitoring.v3.AlertPolicy.Documentation.Link links = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getLinksList() { + if (linksBuilder_ == null) { + return java.util.Collections.unmodifiableList(links_); + } else { + return linksBuilder_.getMessageList(); + } + } + /** + * + * + *
          +       * Optional. Links to content such as playbooks, repositories, and other
          +       * resources. This field can contain up to 3 entries.
          +       * 
          + * + * + * repeated .google.monitoring.v3.AlertPolicy.Documentation.Link links = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getLinksCount() { + if (linksBuilder_ == null) { + return links_.size(); + } else { + return linksBuilder_.getCount(); + } + } + /** + * + * + *
          +       * Optional. Links to content such as playbooks, repositories, and other
          +       * resources. This field can contain up to 3 entries.
          +       * 
          + * + * + * repeated .google.monitoring.v3.AlertPolicy.Documentation.Link links = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.monitoring.v3.AlertPolicy.Documentation.Link getLinks(int index) { + if (linksBuilder_ == null) { + return links_.get(index); + } else { + return linksBuilder_.getMessage(index); + } + } + /** + * + * + *
          +       * Optional. Links to content such as playbooks, repositories, and other
          +       * resources. This field can contain up to 3 entries.
          +       * 
          + * + * + * repeated .google.monitoring.v3.AlertPolicy.Documentation.Link links = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setLinks( + int index, com.google.monitoring.v3.AlertPolicy.Documentation.Link value) { + if (linksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLinksIsMutable(); + links_.set(index, value); + onChanged(); + } else { + linksBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
          +       * Optional. Links to content such as playbooks, repositories, and other
          +       * resources. This field can contain up to 3 entries.
          +       * 
          + * + * + * repeated .google.monitoring.v3.AlertPolicy.Documentation.Link links = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setLinks( + int index, + com.google.monitoring.v3.AlertPolicy.Documentation.Link.Builder builderForValue) { + if (linksBuilder_ == null) { + ensureLinksIsMutable(); + links_.set(index, builderForValue.build()); + onChanged(); + } else { + linksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
          +       * Optional. Links to content such as playbooks, repositories, and other
          +       * resources. This field can contain up to 3 entries.
          +       * 
          + * + * + * repeated .google.monitoring.v3.AlertPolicy.Documentation.Link links = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addLinks(com.google.monitoring.v3.AlertPolicy.Documentation.Link value) { + if (linksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLinksIsMutable(); + links_.add(value); + onChanged(); + } else { + linksBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
          +       * Optional. Links to content such as playbooks, repositories, and other
          +       * resources. This field can contain up to 3 entries.
          +       * 
          + * + * + * repeated .google.monitoring.v3.AlertPolicy.Documentation.Link links = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addLinks( + int index, com.google.monitoring.v3.AlertPolicy.Documentation.Link value) { + if (linksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLinksIsMutable(); + links_.add(index, value); + onChanged(); + } else { + linksBuilder_.addMessage(index, value); + } + return this; + } /** * * *
          -       * The body of the documentation, interpreted according to `mime_type`.
          -       * The content may not exceed 8,192 Unicode characters and may not exceed
          -       * more than 10,240 bytes when encoded in UTF-8 format, whichever is
          -       * smaller. This text can be [templatized by using
          -       * variables](https://cloud.google.com/monitoring/alerts/doc-variables).
          +       * Optional. Links to content such as playbooks, repositories, and other
          +       * resources. This field can contain up to 3 entries.
                  * 
          * - * string content = 1; - * - * @param value The bytes for content to set. - * @return This builder for chaining. + * + * repeated .google.monitoring.v3.AlertPolicy.Documentation.Link links = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setContentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder addLinks( + com.google.monitoring.v3.AlertPolicy.Documentation.Link.Builder builderForValue) { + if (linksBuilder_ == null) { + ensureLinksIsMutable(); + links_.add(builderForValue.build()); + onChanged(); + } else { + linksBuilder_.addMessage(builderForValue.build()); } - checkByteStringIsUtf8(value); - content_ = value; - bitField0_ |= 0x00000001; - onChanged(); return this; } - - private java.lang.Object mimeType_ = ""; /** * * *
          -       * The format of the `content` field. Presently, only the value
          -       * `"text/markdown"` is supported. See
          -       * [Markdown](https://en.wikipedia.org/wiki/Markdown) for more information.
          +       * Optional. Links to content such as playbooks, repositories, and other
          +       * resources. This field can contain up to 3 entries.
                  * 
          * - * string mime_type = 2; - * - * @return The mimeType. + * + * repeated .google.monitoring.v3.AlertPolicy.Documentation.Link links = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.lang.String getMimeType() { - java.lang.Object ref = mimeType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - mimeType_ = s; - return s; + public Builder addLinks( + int index, + com.google.monitoring.v3.AlertPolicy.Documentation.Link.Builder builderForValue) { + if (linksBuilder_ == null) { + ensureLinksIsMutable(); + links_.add(index, builderForValue.build()); + onChanged(); } else { - return (java.lang.String) ref; + linksBuilder_.addMessage(index, builderForValue.build()); } + return this; } /** * * *
          -       * The format of the `content` field. Presently, only the value
          -       * `"text/markdown"` is supported. See
          -       * [Markdown](https://en.wikipedia.org/wiki/Markdown) for more information.
          +       * Optional. Links to content such as playbooks, repositories, and other
          +       * resources. This field can contain up to 3 entries.
                  * 
          * - * string mime_type = 2; - * - * @return The bytes for mimeType. + * + * repeated .google.monitoring.v3.AlertPolicy.Documentation.Link links = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.protobuf.ByteString getMimeTypeBytes() { - java.lang.Object ref = mimeType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - mimeType_ = b; - return b; + public Builder addAllLinks( + java.lang.Iterable + values) { + if (linksBuilder_ == null) { + ensureLinksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, links_); + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + linksBuilder_.addAllMessages(values); } + return this; } /** * * *
          -       * The format of the `content` field. Presently, only the value
          -       * `"text/markdown"` is supported. See
          -       * [Markdown](https://en.wikipedia.org/wiki/Markdown) for more information.
          +       * Optional. Links to content such as playbooks, repositories, and other
          +       * resources. This field can contain up to 3 entries.
                  * 
          * - * string mime_type = 2; - * - * @param value The mimeType to set. - * @return This builder for chaining. + * + * repeated .google.monitoring.v3.AlertPolicy.Documentation.Link links = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setMimeType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearLinks() { + if (linksBuilder_ == null) { + links_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + linksBuilder_.clear(); } - mimeType_ = value; - bitField0_ |= 0x00000002; - onChanged(); return this; } /** * * *
          -       * The format of the `content` field. Presently, only the value
          -       * `"text/markdown"` is supported. See
          -       * [Markdown](https://en.wikipedia.org/wiki/Markdown) for more information.
          +       * Optional. Links to content such as playbooks, repositories, and other
          +       * resources. This field can contain up to 3 entries.
                  * 
          * - * string mime_type = 2; - * - * @return This builder for chaining. + * + * repeated .google.monitoring.v3.AlertPolicy.Documentation.Link links = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearMimeType() { - mimeType_ = getDefaultInstance().getMimeType(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); + public Builder removeLinks(int index) { + if (linksBuilder_ == null) { + ensureLinksIsMutable(); + links_.remove(index); + onChanged(); + } else { + linksBuilder_.remove(index); + } return this; } /** * * *
          -       * The format of the `content` field. Presently, only the value
          -       * `"text/markdown"` is supported. See
          -       * [Markdown](https://en.wikipedia.org/wiki/Markdown) for more information.
          +       * Optional. Links to content such as playbooks, repositories, and other
          +       * resources. This field can contain up to 3 entries.
                  * 
          * - * string mime_type = 2; - * - * @param value The bytes for mimeType to set. - * @return This builder for chaining. + * + * repeated .google.monitoring.v3.AlertPolicy.Documentation.Link links = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - mimeType_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; + public com.google.monitoring.v3.AlertPolicy.Documentation.Link.Builder getLinksBuilder( + int index) { + return getLinksFieldBuilder().getBuilder(index); } - - private java.lang.Object subject_ = ""; /** * * *
          -       * Optional. The subject line of the notification. The subject line may not
          -       * exceed 10,240 bytes. In notifications generated by this policy, the
          -       * contents of the subject line after variable expansion will be truncated
          -       * to 255 bytes or shorter at the latest UTF-8 character boundary. The
          -       * 255-byte limit is recommended by [this
          -       * thread](https://stackoverflow.com/questions/1592291/what-is-the-email-subject-length-limit).
          -       * It is both the limit imposed by some third-party ticketing products and
          -       * it is common to define textual fields in databases as VARCHAR(255).
          -       *
          -       * The contents of the subject line can be [templatized by using
          -       * variables](https://cloud.google.com/monitoring/alerts/doc-variables).
          -       * If this field is missing or empty, a default subject line will be
          -       * generated.
          +       * Optional. Links to content such as playbooks, repositories, and other
          +       * resources. This field can contain up to 3 entries.
                  * 
          * - * string subject = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The subject. + * + * repeated .google.monitoring.v3.AlertPolicy.Documentation.Link links = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.lang.String getSubject() { - java.lang.Object ref = subject_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - subject_ = s; - return s; + public com.google.monitoring.v3.AlertPolicy.Documentation.LinkOrBuilder getLinksOrBuilder( + int index) { + if (linksBuilder_ == null) { + return links_.get(index); } else { - return (java.lang.String) ref; + return linksBuilder_.getMessageOrBuilder(index); } } /** * * *
          -       * Optional. The subject line of the notification. The subject line may not
          -       * exceed 10,240 bytes. In notifications generated by this policy, the
          -       * contents of the subject line after variable expansion will be truncated
          -       * to 255 bytes or shorter at the latest UTF-8 character boundary. The
          -       * 255-byte limit is recommended by [this
          -       * thread](https://stackoverflow.com/questions/1592291/what-is-the-email-subject-length-limit).
          -       * It is both the limit imposed by some third-party ticketing products and
          -       * it is common to define textual fields in databases as VARCHAR(255).
          -       *
          -       * The contents of the subject line can be [templatized by using
          -       * variables](https://cloud.google.com/monitoring/alerts/doc-variables).
          -       * If this field is missing or empty, a default subject line will be
          -       * generated.
          +       * Optional. Links to content such as playbooks, repositories, and other
          +       * resources. This field can contain up to 3 entries.
                  * 
          * - * string subject = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for subject. + * + * repeated .google.monitoring.v3.AlertPolicy.Documentation.Link links = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.protobuf.ByteString getSubjectBytes() { - java.lang.Object ref = subject_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - subject_ = b; - return b; + public java.util.List< + ? extends com.google.monitoring.v3.AlertPolicy.Documentation.LinkOrBuilder> + getLinksOrBuilderList() { + if (linksBuilder_ != null) { + return linksBuilder_.getMessageOrBuilderList(); } else { - return (com.google.protobuf.ByteString) ref; + return java.util.Collections.unmodifiableList(links_); } } /** * * *
          -       * Optional. The subject line of the notification. The subject line may not
          -       * exceed 10,240 bytes. In notifications generated by this policy, the
          -       * contents of the subject line after variable expansion will be truncated
          -       * to 255 bytes or shorter at the latest UTF-8 character boundary. The
          -       * 255-byte limit is recommended by [this
          -       * thread](https://stackoverflow.com/questions/1592291/what-is-the-email-subject-length-limit).
          -       * It is both the limit imposed by some third-party ticketing products and
          -       * it is common to define textual fields in databases as VARCHAR(255).
          -       *
          -       * The contents of the subject line can be [templatized by using
          -       * variables](https://cloud.google.com/monitoring/alerts/doc-variables).
          -       * If this field is missing or empty, a default subject line will be
          -       * generated.
          +       * Optional. Links to content such as playbooks, repositories, and other
          +       * resources. This field can contain up to 3 entries.
                  * 
          * - * string subject = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The subject to set. - * @return This builder for chaining. + * + * repeated .google.monitoring.v3.AlertPolicy.Documentation.Link links = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setSubject(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - subject_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; + public com.google.monitoring.v3.AlertPolicy.Documentation.Link.Builder addLinksBuilder() { + return getLinksFieldBuilder() + .addBuilder( + com.google.monitoring.v3.AlertPolicy.Documentation.Link.getDefaultInstance()); } /** * * *
          -       * Optional. The subject line of the notification. The subject line may not
          -       * exceed 10,240 bytes. In notifications generated by this policy, the
          -       * contents of the subject line after variable expansion will be truncated
          -       * to 255 bytes or shorter at the latest UTF-8 character boundary. The
          -       * 255-byte limit is recommended by [this
          -       * thread](https://stackoverflow.com/questions/1592291/what-is-the-email-subject-length-limit).
          -       * It is both the limit imposed by some third-party ticketing products and
          -       * it is common to define textual fields in databases as VARCHAR(255).
          -       *
          -       * The contents of the subject line can be [templatized by using
          -       * variables](https://cloud.google.com/monitoring/alerts/doc-variables).
          -       * If this field is missing or empty, a default subject line will be
          -       * generated.
          +       * Optional. Links to content such as playbooks, repositories, and other
          +       * resources. This field can contain up to 3 entries.
                  * 
          * - * string subject = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. + * + * repeated .google.monitoring.v3.AlertPolicy.Documentation.Link links = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearSubject() { - subject_ = getDefaultInstance().getSubject(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; + public com.google.monitoring.v3.AlertPolicy.Documentation.Link.Builder addLinksBuilder( + int index) { + return getLinksFieldBuilder() + .addBuilder( + index, + com.google.monitoring.v3.AlertPolicy.Documentation.Link.getDefaultInstance()); } /** * * *
          -       * Optional. The subject line of the notification. The subject line may not
          -       * exceed 10,240 bytes. In notifications generated by this policy, the
          -       * contents of the subject line after variable expansion will be truncated
          -       * to 255 bytes or shorter at the latest UTF-8 character boundary. The
          -       * 255-byte limit is recommended by [this
          -       * thread](https://stackoverflow.com/questions/1592291/what-is-the-email-subject-length-limit).
          -       * It is both the limit imposed by some third-party ticketing products and
          -       * it is common to define textual fields in databases as VARCHAR(255).
          -       *
          -       * The contents of the subject line can be [templatized by using
          -       * variables](https://cloud.google.com/monitoring/alerts/doc-variables).
          -       * If this field is missing or empty, a default subject line will be
          -       * generated.
          +       * Optional. Links to content such as playbooks, repositories, and other
          +       * resources. This field can contain up to 3 entries.
                  * 
          * - * string subject = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for subject to set. - * @return This builder for chaining. + * + * repeated .google.monitoring.v3.AlertPolicy.Documentation.Link links = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setSubjectBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public java.util.List + getLinksBuilderList() { + return getLinksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.v3.AlertPolicy.Documentation.Link, + com.google.monitoring.v3.AlertPolicy.Documentation.Link.Builder, + com.google.monitoring.v3.AlertPolicy.Documentation.LinkOrBuilder> + getLinksFieldBuilder() { + if (linksBuilder_ == null) { + linksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.monitoring.v3.AlertPolicy.Documentation.Link, + com.google.monitoring.v3.AlertPolicy.Documentation.Link.Builder, + com.google.monitoring.v3.AlertPolicy.Documentation.LinkOrBuilder>( + links_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + links_ = null; } - checkByteStringIsUtf8(value); - subject_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; + return linksBuilder_; } @java.lang.Override diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertProto.java b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertProto.java index f37d671846ee..a0a7b49f20ce 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertProto.java +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/AlertProto.java @@ -36,6 +36,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_monitoring_v3_AlertPolicy_Documentation_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_monitoring_v3_AlertPolicy_Documentation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_monitoring_v3_AlertPolicy_Documentation_Link_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_monitoring_v3_AlertPolicy_Documentation_Link_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -108,7 +112,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "monitoring/v3/mutation_record.proto\032\036goo" + "gle/protobuf/duration.proto\032\036google/prot" + "obuf/wrappers.proto\032\027google/rpc/status.p" - + "roto\"\226#\n\013AlertPolicy\022\014\n\004name\030\001 \001(\t\022\024\n\014di" + + "roto\"\214$\n\013AlertPolicy\022\014\n\004name\030\001 \001(\t\022\024\n\014di" + "splay_name\030\002 \001(\t\022F\n\rdocumentation\030\r \001(\0132" + "/.google.monitoring.v3.AlertPolicy.Docum" + "entation\022F\n\013user_labels\030\020 \003(\01321.google.m" @@ -126,106 +130,109 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132/.google.monitoring.v3.AlertPolicy." + "AlertStrategy\022A\n\010severity\030\026 \001(\0162*.google" + ".monitoring.v3.AlertPolicy.SeverityB\003\340A\001" - + "\032I\n\rDocumentation\022\017\n\007content\030\001 \001(\t\022\021\n\tmi" - + "me_type\030\002 \001(\t\022\024\n\007subject\030\003 \001(\tB\003\340A\001\032\367\025\n\t" - + "Condition\022\014\n\004name\030\014 \001(\t\022\024\n\014display_name\030" - + "\006 \001(\t\022Z\n\023condition_threshold\030\001 \001(\0132;.goo" + + "\032\276\001\n\rDocumentation\022\017\n\007content\030\001 \001(\t\022\021\n\tm" + + "ime_type\030\002 \001(\t\022\024\n\007subject\030\003 \001(\tB\003\340A\001\022H\n\005" + + "links\030\004 \003(\01324.google.monitoring.v3.Alert" + + "Policy.Documentation.LinkB\003\340A\001\032)\n\004Link\022\024" + + "\n\014display_name\030\001 \001(\t\022\013\n\003url\030\002 \001(\t\032\367\025\n\tCo" + + "ndition\022\014\n\004name\030\014 \001(\t\022\024\n\014display_name\030\006 " + + "\001(\t\022Z\n\023condition_threshold\030\001 \001(\0132;.googl" + + "e.monitoring.v3.AlertPolicy.Condition.Me" + + "tricThresholdH\000\022U\n\020condition_absent\030\002 \001(" + + "\01329.google.monitoring.v3.AlertPolicy.Con" + + "dition.MetricAbsenceH\000\022U\n\025condition_matc" + + "hed_log\030\024 \001(\01324.google.monitoring.v3.Ale" + + "rtPolicy.Condition.LogMatchH\000\022{\n#conditi" + + "on_monitoring_query_language\030\023 \001(\0132L.goo" + "gle.monitoring.v3.AlertPolicy.Condition." - + "MetricThresholdH\000\022U\n\020condition_absent\030\002 " - + "\001(\01329.google.monitoring.v3.AlertPolicy.C" - + "ondition.MetricAbsenceH\000\022U\n\025condition_ma" - + "tched_log\030\024 \001(\01324.google.monitoring.v3.A" - + "lertPolicy.Condition.LogMatchH\000\022{\n#condi" - + "tion_monitoring_query_language\030\023 \001(\0132L.g" - + "oogle.monitoring.v3.AlertPolicy.Conditio" - + "n.MonitoringQueryLanguageConditionH\000\022{\n#" - + "condition_prometheus_query_language\030\025 \001(" - + "\0132L.google.monitoring.v3.AlertPolicy.Con" - + "dition.PrometheusQueryLanguageConditionH" - + "\000\0325\n\007Trigger\022\017\n\005count\030\001 \001(\005H\000\022\021\n\007percent" - + "\030\002 \001(\001H\000B\006\n\004type\032\236\005\n\017MetricThreshold\022\023\n\006" - + "filter\030\002 \001(\tB\003\340A\002\0227\n\014aggregations\030\010 \003(\0132" - + "!.google.monitoring.v3.Aggregation\022\032\n\022de" - + "nominator_filter\030\t \001(\t\022C\n\030denominator_ag" - + "gregations\030\n \003(\0132!.google.monitoring.v3." - + "Aggregation\022e\n\020forecast_options\030\014 \001(\0132K." - + "google.monitoring.v3.AlertPolicy.Conditi" - + "on.MetricThreshold.ForecastOptions\0228\n\nco" - + "mparison\030\004 \001(\0162$.google.monitoring.v3.Co" - + "mparisonType\022\027\n\017threshold_value\030\005 \001(\001\022+\n" - + "\010duration\030\006 \001(\0132\031.google.protobuf.Durati" - + "on\022D\n\007trigger\030\007 \001(\01323.google.monitoring." - + "v3.AlertPolicy.Condition.Trigger\022b\n\027eval" - + "uation_missing_data\030\013 \001(\0162A.google.monit" - + "oring.v3.AlertPolicy.Condition.Evaluatio" - + "nMissingData\032K\n\017ForecastOptions\0228\n\020forec" - + "ast_horizon\030\001 \001(\0132\031.google.protobuf.Dura" - + "tionB\003\340A\002\032\320\001\n\rMetricAbsence\022\023\n\006filter\030\001 " - + "\001(\tB\003\340A\002\0227\n\014aggregations\030\005 \003(\0132!.google." - + "monitoring.v3.Aggregation\022+\n\010duration\030\002 " - + "\001(\0132\031.google.protobuf.Duration\022D\n\007trigge" - + "r\030\003 \001(\01323.google.monitoring.v3.AlertPoli" - + "cy.Condition.Trigger\032\274\001\n\010LogMatch\022\023\n\006fil" - + "ter\030\001 \001(\tB\003\340A\002\022c\n\020label_extractors\030\002 \003(\013" - + "2I.google.monitoring.v3.AlertPolicy.Cond" - + "ition.LogMatch.LabelExtractorsEntry\0326\n\024L" - + "abelExtractorsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" - + "e\030\002 \001(\t:\0028\001\032\210\002\n MonitoringQueryLanguageC" - + "ondition\022\r\n\005query\030\001 \001(\t\022+\n\010duration\030\002 \001(" + + "MonitoringQueryLanguageConditionH\000\022{\n#co" + + "ndition_prometheus_query_language\030\025 \001(\0132" + + "L.google.monitoring.v3.AlertPolicy.Condi" + + "tion.PrometheusQueryLanguageConditionH\000\032" + + "5\n\007Trigger\022\017\n\005count\030\001 \001(\005H\000\022\021\n\007percent\030\002" + + " \001(\001H\000B\006\n\004type\032\236\005\n\017MetricThreshold\022\023\n\006fi" + + "lter\030\002 \001(\tB\003\340A\002\0227\n\014aggregations\030\010 \003(\0132!." + + "google.monitoring.v3.Aggregation\022\032\n\022deno" + + "minator_filter\030\t \001(\t\022C\n\030denominator_aggr" + + "egations\030\n \003(\0132!.google.monitoring.v3.Ag" + + "gregation\022e\n\020forecast_options\030\014 \001(\0132K.go" + + "ogle.monitoring.v3.AlertPolicy.Condition" + + ".MetricThreshold.ForecastOptions\0228\n\ncomp" + + "arison\030\004 \001(\0162$.google.monitoring.v3.Comp" + + "arisonType\022\027\n\017threshold_value\030\005 \001(\001\022+\n\010d" + + "uration\030\006 \001(\0132\031.google.protobuf.Duration" + + "\022D\n\007trigger\030\007 \001(\01323.google.monitoring.v3" + + ".AlertPolicy.Condition.Trigger\022b\n\027evalua" + + "tion_missing_data\030\013 \001(\0162A.google.monitor" + + "ing.v3.AlertPolicy.Condition.EvaluationM" + + "issingData\032K\n\017ForecastOptions\0228\n\020forecas" + + "t_horizon\030\001 \001(\0132\031.google.protobuf.Durati" + + "onB\003\340A\002\032\320\001\n\rMetricAbsence\022\023\n\006filter\030\001 \001(" + + "\tB\003\340A\002\0227\n\014aggregations\030\005 \003(\0132!.google.mo" + + "nitoring.v3.Aggregation\022+\n\010duration\030\002 \001(" + "\0132\031.google.protobuf.Duration\022D\n\007trigger\030" + "\003 \001(\01323.google.monitoring.v3.AlertPolicy" - + ".Condition.Trigger\022b\n\027evaluation_missing" - + "_data\030\004 \001(\0162A.google.monitoring.v3.Alert" - + "Policy.Condition.EvaluationMissingData\032\365" - + "\002\n PrometheusQueryLanguageCondition\022\022\n\005q" - + "uery\030\001 \001(\tB\003\340A\002\0220\n\010duration\030\002 \001(\0132\031.goog" - + "le.protobuf.DurationB\003\340A\001\022;\n\023evaluation_" - + "interval\030\003 \001(\0132\031.google.protobuf.Duratio" - + "nB\003\340A\001\022m\n\006labels\030\004 \003(\0132X.google.monitori" - + "ng.v3.AlertPolicy.Condition.PrometheusQu" - + "eryLanguageCondition.LabelsEntryB\003\340A\001\022\027\n" - + "\nrule_group\030\005 \001(\tB\003\340A\001\022\027\n\nalert_rule\030\006 \001" - + "(\tB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" - + "alue\030\002 \001(\t:\0028\001\"\255\001\n\025EvaluationMissingData" - + "\022\'\n#EVALUATION_MISSING_DATA_UNSPECIFIED\020" - + "\000\022$\n EVALUATION_MISSING_DATA_INACTIVE\020\001\022" - + "\"\n\036EVALUATION_MISSING_DATA_ACTIVE\020\002\022!\n\035E" - + "VALUATION_MISSING_DATA_NO_OP\020\003:\227\002\352A\223\002\n.m" - + "onitoring.googleapis.com/AlertPolicyCond" - + "ition\022Fprojects/{project}/alertPolicies/" - + "{alert_policy}/conditions/{condition}\022Po" - + "rganizations/{organization}/alertPolicie" - + "s/{alert_policy}/conditions/{condition}\022" - + "Dfolders/{folder}/alertPolicies/{alert_p" - + "olicy}/conditions/{condition}\022\001*B\013\n\tcond" - + "ition\032\327\003\n\rAlertStrategy\022f\n\027notification_" - + "rate_limit\030\001 \001(\0132E.google.monitoring.v3." - + "AlertPolicy.AlertStrategy.NotificationRa" - + "teLimit\022-\n\nauto_close\030\003 \001(\0132\031.google.pro" - + "tobuf.Duration\022r\n\035notification_channel_s" - + "trategy\030\004 \003(\0132K.google.monitoring.v3.Ale" - + "rtPolicy.AlertStrategy.NotificationChann" - + "elStrategy\032B\n\025NotificationRateLimit\022)\n\006p" - + "eriod\030\001 \001(\0132\031.google.protobuf.Duration\032w" - + "\n\033NotificationChannelStrategy\022\"\n\032notific" - + "ation_channel_names\030\001 \003(\t\0224\n\021renotify_in" - + "terval\030\002 \001(\0132\031.google.protobuf.Duration\032" - + "1\n\017UserLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" - + "\030\002 \001(\t:\0028\001\"a\n\025ConditionCombinerType\022\027\n\023C" - + "OMBINE_UNSPECIFIED\020\000\022\007\n\003AND\020\001\022\006\n\002OR\020\002\022\036\n" - + "\032AND_WITH_MATCHING_RESOURCE\020\003\"J\n\010Severit" - + "y\022\030\n\024SEVERITY_UNSPECIFIED\020\000\022\014\n\010CRITICAL\020" - + "\001\022\t\n\005ERROR\020\002\022\013\n\007WARNING\020\003:\311\001\352A\305\001\n%monito" - + "ring.googleapis.com/AlertPolicy\022/project" - + "s/{project}/alertPolicies/{alert_policy}" - + "\0229organizations/{organization}/alertPoli" - + "cies/{alert_policy}\022-folders/{folder}/al" - + "ertPolicies/{alert_policy}\022\001*B\305\001\n\030com.go" - + "ogle.monitoring.v3B\nAlertProtoP\001ZAcloud." - + "google.com/go/monitoring/apiv3/v2/monito" - + "ringpb;monitoringpb\252\002\032Google.Cloud.Monit" - + "oring.V3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002\035" - + "Google::Cloud::Monitoring::V3b\006proto3" + + ".Condition.Trigger\032\274\001\n\010LogMatch\022\023\n\006filte" + + "r\030\001 \001(\tB\003\340A\002\022c\n\020label_extractors\030\002 \003(\0132I" + + ".google.monitoring.v3.AlertPolicy.Condit" + + "ion.LogMatch.LabelExtractorsEntry\0326\n\024Lab" + + "elExtractorsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + + "\002 \001(\t:\0028\001\032\210\002\n MonitoringQueryLanguageCon" + + "dition\022\r\n\005query\030\001 \001(\t\022+\n\010duration\030\002 \001(\0132" + + "\031.google.protobuf.Duration\022D\n\007trigger\030\003 " + + "\001(\01323.google.monitoring.v3.AlertPolicy.C" + + "ondition.Trigger\022b\n\027evaluation_missing_d" + + "ata\030\004 \001(\0162A.google.monitoring.v3.AlertPo" + + "licy.Condition.EvaluationMissingData\032\365\002\n" + + " PrometheusQueryLanguageCondition\022\022\n\005que" + + "ry\030\001 \001(\tB\003\340A\002\0220\n\010duration\030\002 \001(\0132\031.google" + + ".protobuf.DurationB\003\340A\001\022;\n\023evaluation_in" + + "terval\030\003 \001(\0132\031.google.protobuf.DurationB" + + "\003\340A\001\022m\n\006labels\030\004 \003(\0132X.google.monitoring" + + ".v3.AlertPolicy.Condition.PrometheusQuer" + + "yLanguageCondition.LabelsEntryB\003\340A\001\022\027\n\nr" + + "ule_group\030\005 \001(\tB\003\340A\001\022\027\n\nalert_rule\030\006 \001(\t" + + "B\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + + "ue\030\002 \001(\t:\0028\001\"\255\001\n\025EvaluationMissingData\022\'" + + "\n#EVALUATION_MISSING_DATA_UNSPECIFIED\020\000\022" + + "$\n EVALUATION_MISSING_DATA_INACTIVE\020\001\022\"\n" + + "\036EVALUATION_MISSING_DATA_ACTIVE\020\002\022!\n\035EVA" + + "LUATION_MISSING_DATA_NO_OP\020\003:\227\002\352A\223\002\n.mon" + + "itoring.googleapis.com/AlertPolicyCondit" + + "ion\022Fprojects/{project}/alertPolicies/{a" + + "lert_policy}/conditions/{condition}\022Porg" + + "anizations/{organization}/alertPolicies/" + + "{alert_policy}/conditions/{condition}\022Df" + + "olders/{folder}/alertPolicies/{alert_pol" + + "icy}/conditions/{condition}\022\001*B\013\n\tcondit" + + "ion\032\327\003\n\rAlertStrategy\022f\n\027notification_ra" + + "te_limit\030\001 \001(\0132E.google.monitoring.v3.Al" + + "ertPolicy.AlertStrategy.NotificationRate" + + "Limit\022-\n\nauto_close\030\003 \001(\0132\031.google.proto" + + "buf.Duration\022r\n\035notification_channel_str" + + "ategy\030\004 \003(\0132K.google.monitoring.v3.Alert" + + "Policy.AlertStrategy.NotificationChannel" + + "Strategy\032B\n\025NotificationRateLimit\022)\n\006per" + + "iod\030\001 \001(\0132\031.google.protobuf.Duration\032w\n\033" + + "NotificationChannelStrategy\022\"\n\032notificat" + + "ion_channel_names\030\001 \003(\t\0224\n\021renotify_inte" + + "rval\030\002 \001(\0132\031.google.protobuf.Duration\0321\n" + + "\017UserLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" + + " \001(\t:\0028\001\"a\n\025ConditionCombinerType\022\027\n\023COM" + + "BINE_UNSPECIFIED\020\000\022\007\n\003AND\020\001\022\006\n\002OR\020\002\022\036\n\032A" + + "ND_WITH_MATCHING_RESOURCE\020\003\"J\n\010Severity\022" + + "\030\n\024SEVERITY_UNSPECIFIED\020\000\022\014\n\010CRITICAL\020\001\022" + + "\t\n\005ERROR\020\002\022\013\n\007WARNING\020\003:\311\001\352A\305\001\n%monitori" + + "ng.googleapis.com/AlertPolicy\022/projects/" + + "{project}/alertPolicies/{alert_policy}\0229" + + "organizations/{organization}/alertPolici" + + "es/{alert_policy}\022-folders/{folder}/aler" + + "tPolicies/{alert_policy}\022\001*B\305\001\n\030com.goog" + + "le.monitoring.v3B\nAlertProtoP\001ZAcloud.go" + + "ogle.com/go/monitoring/apiv3/v2/monitori" + + "ngpb;monitoringpb\252\002\032Google.Cloud.Monitor" + + "ing.V3\312\002\032Google\\Cloud\\Monitoring\\V3\352\002\035Go" + + "ogle::Cloud::Monitoring::V3b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -265,7 +272,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_monitoring_v3_AlertPolicy_Documentation_descriptor, new java.lang.String[] { - "Content", "MimeType", "Subject", + "Content", "MimeType", "Subject", "Links", + }); + internal_static_google_monitoring_v3_AlertPolicy_Documentation_Link_descriptor = + internal_static_google_monitoring_v3_AlertPolicy_Documentation_descriptor + .getNestedTypes() + .get(0); + internal_static_google_monitoring_v3_AlertPolicy_Documentation_Link_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_monitoring_v3_AlertPolicy_Documentation_Link_descriptor, + new java.lang.String[] { + "DisplayName", "Url", }); internal_static_google_monitoring_v3_AlertPolicy_Condition_descriptor = internal_static_google_monitoring_v3_AlertPolicy_descriptor.getNestedTypes().get(1); diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert.proto b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert.proto index 51ee298c5013..ba38d5bd3eaf 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert.proto +++ b/java-monitoring/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/alert.proto @@ -49,6 +49,20 @@ message AlertPolicy { // Documentation that is included in the notifications and incidents // pertaining to this policy. message Documentation { + // Links to content such as playbooks, repositories, and other resources. + message Link { + // A short display name for the link. The display name must not be empty + // or exceed 63 characters. Example: "playbook". + string display_name = 1; + + // The url of a webpage. + // A url can be templatized by using variables + // in the path or the query parameters. The total length of a URL should + // not exceed 2083 characters before and after variable expansion. + // Example: "https://my_domain.com/playbook?name=${resource.name}" + string url = 2; + } + // The body of the documentation, interpreted according to `mime_type`. // The content may not exceed 8,192 Unicode characters and may not exceed // more than 10,240 bytes when encoded in UTF-8 format, whichever is @@ -75,6 +89,10 @@ message AlertPolicy { // If this field is missing or empty, a default subject line will be // generated. string subject = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Links to content such as playbooks, repositories, and other + // resources. This field can contain up to 3 entries. + repeated Link links = 4 [(google.api.field_behavior) = OPTIONAL]; } // A condition is a true/false test that determines when an alerting policy diff --git a/java-netapp/README.md b/java-netapp/README.md index 77fe982ea588..936bd767486f 100644 --- a/java-netapp/README.md +++ b/java-netapp/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-netapp.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-netapp/0.23.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-netapp/0.24.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-network-management/README.md b/java-network-management/README.md index 7e3f2eba2b18..3b9a722039d4 100644 --- a/java-network-management/README.md +++ b/java-network-management/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-network-management.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-network-management/1.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-network-management/1.46.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-network-security/README.md b/java-network-security/README.md index e6661d294c7b..9a0cf77c61bd 100644 --- a/java-network-security/README.md +++ b/java-network-security/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-network-security.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-network-security/0.47.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-network-security/0.48.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-networkconnectivity/README.md b/java-networkconnectivity/README.md index 54a280141fec..f3c3bce27eea 100644 --- a/java-networkconnectivity/README.md +++ b/java-networkconnectivity/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-networkconnectivity.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-networkconnectivity/1.43.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-networkconnectivity/1.44.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-networkservices/README.md b/java-networkservices/README.md index 1472aa1f4b3d..71964d0cf8c9 100644 --- a/java-networkservices/README.md +++ b/java-networkservices/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-networkservices.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-networkservices/0.0.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-networkservices/0.1.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/NetworkServicesClient.java b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/NetworkServicesClient.java index 87cc8a1106c4..d3d03f86e964 100644 --- a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/NetworkServicesClient.java +++ b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/NetworkServicesClient.java @@ -50,8 +50,10 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * This class provides the ability to make remote calls to the backing service through method calls - * that map to API methods. Sample code to get started: + * Service Description: Service describing handlers for resources. + * + *

          This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: * *

          {@code
            * // This snippet has been automatically generated and should be regarded as a code template only.
          diff --git a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/package-info.java b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/package-info.java
          index e558e1404960..99099b088eef 100644
          --- a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/package-info.java
          +++ b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/package-info.java
          @@ -40,6 +40,8 @@
            *
            * 

          ======================= NetworkServicesClient ======================= * + *

          Service Description: Service describing handlers for resources. + * *

          Sample for NetworkServicesClient: * *

          {@code
          diff --git a/java-networkservices/grpc-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/NetworkServicesGrpc.java b/java-networkservices/grpc-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/NetworkServicesGrpc.java
          index 2d9be18d8ea7..42eecb0f660d 100644
          --- a/java-networkservices/grpc-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/NetworkServicesGrpc.java
          +++ b/java-networkservices/grpc-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/NetworkServicesGrpc.java
          @@ -17,7 +17,13 @@
           
           import static io.grpc.MethodDescriptor.generateFullMethodName;
           
          -/** */
          +/**
          + *
          + *
          + * 
          + * Service describing handlers for resources.
          + * 
          + */ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/cloud/networkservices/v1/network_services.proto") @@ -1885,7 +1891,13 @@ public NetworkServicesFutureStub newStub( return NetworkServicesFutureStub.newStub(factory, channel); } - /** */ + /** + * + * + *
          +   * Service describing handlers for resources.
          +   * 
          + */ public interface AsyncService { /** @@ -2444,7 +2456,13 @@ default void deleteMesh( } } - /** Base class for the server implementation of the service NetworkServices. */ + /** + * Base class for the server implementation of the service NetworkServices. + * + *
          +   * Service describing handlers for resources.
          +   * 
          + */ public abstract static class NetworkServicesImplBase implements io.grpc.BindableService, AsyncService { @@ -2454,7 +2472,13 @@ public final io.grpc.ServerServiceDefinition bindService() { } } - /** A stub to allow clients to do asynchronous rpc calls to service NetworkServices. */ + /** + * A stub to allow clients to do asynchronous rpc calls to service NetworkServices. + * + *
          +   * Service describing handlers for resources.
          +   * 
          + */ public static final class NetworkServicesStub extends io.grpc.stub.AbstractAsyncStub { private NetworkServicesStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { @@ -3094,7 +3118,13 @@ public void deleteMesh( } } - /** A stub to allow clients to do synchronous rpc calls to service NetworkServices. */ + /** + * A stub to allow clients to do synchronous rpc calls to service NetworkServices. + * + *
          +   * Service describing handlers for resources.
          +   * 
          + */ public static final class NetworkServicesBlockingStub extends io.grpc.stub.AbstractBlockingStub { private NetworkServicesBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { @@ -3615,7 +3645,13 @@ public com.google.longrunning.Operation deleteMesh( } } - /** A stub to allow clients to do ListenableFuture-style rpc calls to service NetworkServices. */ + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service NetworkServices. + * + *
          +   * Service describing handlers for resources.
          +   * 
          + */ public static final class NetworkServicesFutureStub extends io.grpc.stub.AbstractFutureStub { private NetworkServicesFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/network_services.proto b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/network_services.proto index 081227b5fa03..576bbcc6ce40 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/network_services.proto +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/network_services.proto @@ -35,6 +35,7 @@ option java_package = "com.google.cloud.networkservices.v1"; option php_namespace = "Google\\Cloud\\NetworkServices\\V1"; option ruby_package = "Google::Cloud::NetworkServices::V1"; +// Service describing handlers for resources. service NetworkServices { option (google.api.default_host) = "networkservices.googleapis.com"; option (google.api.oauth_scopes) = diff --git a/java-notebooks/README.md b/java-notebooks/README.md index b160f4c1f7ec..765df19b3b87 100644 --- a/java-notebooks/README.md +++ b/java-notebooks/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-notebooks.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-notebooks/1.42.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-notebooks/1.43.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-optimization/README.md b/java-optimization/README.md index 0229747e7497..2bcd408e5257 100644 --- a/java-optimization/README.md +++ b/java-optimization/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-optimization.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-optimization/1.42.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-optimization/1.43.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-orchestration-airflow/README.md b/java-orchestration-airflow/README.md index 9c694019f461..c0fffd343486 100644 --- a/java-orchestration-airflow/README.md +++ b/java-orchestration-airflow/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-orchestration-airflow.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-orchestration-airflow/1.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-orchestration-airflow/1.45.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-orgpolicy/.repo-metadata.json b/java-orgpolicy/.repo-metadata.json index 7a037d0e3a50..a95947db6c6b 100644 --- a/java-orgpolicy/.repo-metadata.json +++ b/java-orgpolicy/.repo-metadata.json @@ -5,7 +5,7 @@ "api_description": "n/a", "client_documentation": "https://cloud.google.com/java/docs/reference/proto-google-cloud-orgpolicy-v1/latest/overview", "release_level": "stable", - "transport": "both", + "transport": "grpc", "language": "java", "repo": "googleapis/google-cloud-java", "repo_short": "java-orgpolicy", diff --git a/java-orgpolicy/README.md b/java-orgpolicy/README.md index 47200be9e950..ac1a92721048 100644 --- a/java-orgpolicy/README.md +++ b/java-orgpolicy/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -101,7 +101,7 @@ To get help, follow the instructions in the [shared Troubleshooting document][tr ## Transport -Cloud Organization Policy uses both gRPC and HTTP/JSON for the transport layer. +Cloud Organization Policy uses gRPC for the transport layer. ## Supported Java Versions @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-orgpolicy.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-orgpolicy/2.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-orgpolicy/2.45.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-os-config/README.md b/java-os-config/README.md index d77e3f02ce0e..c52740944b3f 100644 --- a/java-os-config/README.md +++ b/java-os-config/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-os-config.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-os-config/2.46.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-os-config/2.47.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-os-login/README.md b/java-os-login/README.md index 172661088881..62fde30adb12 100644 --- a/java-os-login/README.md +++ b/java-os-login/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-os-login.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-os-login/2.43.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-os-login/2.44.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-parallelstore/README.md b/java-parallelstore/README.md index 74a3febbf0ec..46bef35aed30 100644 --- a/java-parallelstore/README.md +++ b/java-parallelstore/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-parallelstore.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-parallelstore/0.7.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-parallelstore/0.8.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-phishingprotection/README.md b/java-phishingprotection/README.md index 1ea77b2fd122..e3f5f7105d24 100644 --- a/java-phishingprotection/README.md +++ b/java-phishingprotection/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-phishingprotection.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-phishingprotection/0.75.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-phishingprotection/0.76.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-policy-troubleshooter/README.md b/java-policy-troubleshooter/README.md index e9c618a36e6d..8649beb8b388 100644 --- a/java-policy-troubleshooter/README.md +++ b/java-policy-troubleshooter/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-policy-troubleshooter.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-policy-troubleshooter/1.43.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-policy-troubleshooter/1.44.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-policysimulator/README.md b/java-policysimulator/README.md index d8fd861c2f97..f5cfdd27ac9b 100644 --- a/java-policysimulator/README.md +++ b/java-policysimulator/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-policysimulator.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-policysimulator/0.23.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-policysimulator/0.24.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-private-catalog/README.md b/java-private-catalog/README.md index 38338e7a10e0..c57ab5ab17e1 100644 --- a/java-private-catalog/README.md +++ b/java-private-catalog/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-private-catalog.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-private-catalog/0.46.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-private-catalog/0.47.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-profiler/README.md b/java-profiler/README.md index 42e22cb0226d..bfa4c0a934ae 100644 --- a/java-profiler/README.md +++ b/java-profiler/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-profiler.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-profiler/2.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-profiler/2.45.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-publicca/README.md b/java-publicca/README.md index 82c7b05633d8..b73bf93eb2c2 100644 --- a/java-publicca/README.md +++ b/java-publicca/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-publicca.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-publicca/0.41.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-publicca/0.42.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-rapidmigrationassessment/README.md b/java-rapidmigrationassessment/README.md index 372bb23a0842..8336e2840211 100644 --- a/java-rapidmigrationassessment/README.md +++ b/java-rapidmigrationassessment/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-rapidmigrationassessment.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-rapidmigrationassessment/0.27.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-rapidmigrationassessment/0.28.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-recaptchaenterprise/README.md b/java-recaptchaenterprise/README.md index 70e89dbad91d..293b5b68d5df 100644 --- a/java-recaptchaenterprise/README.md +++ b/java-recaptchaenterprise/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-recaptchaenterprise.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recaptchaenterprise/3.41.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recaptchaenterprise/3.42.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-recommendations-ai/README.md b/java-recommendations-ai/README.md index bab835863422..e1c7cb56eb1a 100644 --- a/java-recommendations-ai/README.md +++ b/java-recommendations-ai/README.md @@ -24,7 +24,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -202,7 +202,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-recommendations-ai.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recommendations-ai/0.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recommendations-ai/0.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-recommender/README.md b/java-recommender/README.md index b0707f0fc861..a79296edd6a9 100644 --- a/java-recommender/README.md +++ b/java-recommender/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-recommender.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recommender/2.46.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recommender/2.47.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-redis-cluster/README.md b/java-redis-cluster/README.md index 168fa5074c28..8af1d5e03cdf 100644 --- a/java-redis-cluster/README.md +++ b/java-redis-cluster/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import diff --git a/java-redis/README.md b/java-redis/README.md index c83c64310963..7352421eb20c 100644 --- a/java-redis/README.md +++ b/java-redis/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-redis.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-redis/2.47.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-redis/2.48.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-resource-settings/README.md b/java-resource-settings/README.md index 41b35cea7956..739622a82a7b 100644 --- a/java-resource-settings/README.md +++ b/java-resource-settings/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-resource-settings.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-resource-settings/1.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-resource-settings/1.45.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-resourcemanager/README.md b/java-resourcemanager/README.md index 112283083b22..31e103a295c5 100644 --- a/java-resourcemanager/README.md +++ b/java-resourcemanager/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -336,7 +336,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-resourcemanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-resourcemanager/1.46.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-resourcemanager/1.47.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-retail/README.md b/java-retail/README.md index 76ea0c4e8be3..b96dbb7a9de6 100644 --- a/java-retail/README.md +++ b/java-retail/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import diff --git a/java-run/README.md b/java-run/README.md index 38040d8adb1c..0e42898e6d96 100644 --- a/java-run/README.md +++ b/java-run/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-run.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-run/0.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-run/0.45.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-scheduler/README.md b/java-scheduler/README.md index e1e96d117255..baaf8798a969 100644 --- a/java-scheduler/README.md +++ b/java-scheduler/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-scheduler.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-scheduler/2.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-scheduler/2.45.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-secretmanager/README.md b/java-secretmanager/README.md index 43189b4e4ba1..0a2b83e191a6 100644 --- a/java-secretmanager/README.md +++ b/java-secretmanager/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-secretmanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-secretmanager/2.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-secretmanager/2.45.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-securesourcemanager/README.md b/java-securesourcemanager/README.md index a0374882215d..b69eb60e04b6 100644 --- a/java-securesourcemanager/README.md +++ b/java-securesourcemanager/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -196,7 +196,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-securesourcemanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securesourcemanager/0.14.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securesourcemanager/0.15.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-security-private-ca/README.md b/java-security-private-ca/README.md index ca933440768f..fd1942c42648 100644 --- a/java-security-private-ca/README.md +++ b/java-security-private-ca/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-security-private-ca.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-security-private-ca/2.46.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-security-private-ca/2.47.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-securitycenter-settings/README.md b/java-securitycenter-settings/README.md index d7cd7abbaf72..e2d51875c017 100644 --- a/java-securitycenter-settings/README.md +++ b/java-securitycenter-settings/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-securitycenter-settings.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter-settings/0.47.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter-settings/0.48.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-securitycenter/README.md b/java-securitycenter/README.md index f092ee87e681..da3b72d62c35 100644 --- a/java-securitycenter/README.md +++ b/java-securitycenter/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-securitycenter.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter/2.52.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter/2.53.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-securitycenter/google-cloud-securitycenter/src/main/resources/META-INF/native-image/com.google.cloud.securitycenter.v1/reflect-config.json b/java-securitycenter/google-cloud-securitycenter/src/main/resources/META-INF/native-image/com.google.cloud.securitycenter.v1/reflect-config.json index ac6e4e77af40..5ad435bb47da 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/main/resources/META-INF/native-image/com.google.cloud.securitycenter.v1/reflect-config.json +++ b/java-securitycenter/google-cloud-securitycenter/src/main/resources/META-INF/native-image/com.google.cloud.securitycenter.v1/reflect-config.json @@ -1583,6 +1583,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.securitycenter.v1.GroupMembership", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securitycenter.v1.GroupMembership$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securitycenter.v1.GroupMembership$GroupType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.securitycenter.v1.GroupResult", "queryAllDeclaredConstructors": true, @@ -2960,6 +2987,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.securitycenter.v1.ToxicCombination", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securitycenter.v1.ToxicCombination$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.securitycenter.v1.UpdateBigQueryExportRequest", "queryAllDeclaredConstructors": true, diff --git a/java-securitycenter/google-cloud-securitycenter/src/main/resources/META-INF/native-image/com.google.cloud.securitycenter.v2/reflect-config.json b/java-securitycenter/google-cloud-securitycenter/src/main/resources/META-INF/native-image/com.google.cloud.securitycenter.v2/reflect-config.json index b357e3c76eda..e5cf2734e664 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/main/resources/META-INF/native-image/com.google.cloud.securitycenter.v2/reflect-config.json +++ b/java-securitycenter/google-cloud-securitycenter/src/main/resources/META-INF/native-image/com.google.cloud.securitycenter.v2/reflect-config.json @@ -1511,6 +1511,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.securitycenter.v2.GroupMembership", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securitycenter.v2.GroupMembership$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securitycenter.v2.GroupMembership$GroupType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.securitycenter.v2.GroupResult", "queryAllDeclaredConstructors": true, @@ -2663,6 +2690,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.securitycenter.v2.ToxicCombination", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securitycenter.v2.ToxicCombination$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.securitycenter.v2.UpdateBigQueryExportRequest", "queryAllDeclaredConstructors": true, diff --git a/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientHttpJsonTest.java b/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientHttpJsonTest.java index a1934ce5499e..9591af99f304 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientHttpJsonTest.java +++ b/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientHttpJsonTest.java @@ -464,6 +464,8 @@ public void createFindingTest() throws Exception { .addAllLoadBalancers(new ArrayList()) .setCloudArmor(CloudArmor.newBuilder().build()) .setNotebook(Notebook.newBuilder().build()) + .setToxicCombination(ToxicCombination.newBuilder().build()) + .addAllGroupMemberships(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -556,6 +558,8 @@ public void createFindingTest2() throws Exception { .addAllLoadBalancers(new ArrayList()) .setCloudArmor(CloudArmor.newBuilder().build()) .setNotebook(Notebook.newBuilder().build()) + .setToxicCombination(ToxicCombination.newBuilder().build()) + .addAllGroupMemberships(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -3935,6 +3939,8 @@ public void setFindingStateTest() throws Exception { .addAllLoadBalancers(new ArrayList()) .setCloudArmor(CloudArmor.newBuilder().build()) .setNotebook(Notebook.newBuilder().build()) + .setToxicCombination(ToxicCombination.newBuilder().build()) + .addAllGroupMemberships(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -4029,6 +4035,8 @@ public void setFindingStateTest2() throws Exception { .addAllLoadBalancers(new ArrayList()) .setCloudArmor(CloudArmor.newBuilder().build()) .setNotebook(Notebook.newBuilder().build()) + .setToxicCombination(ToxicCombination.newBuilder().build()) + .addAllGroupMemberships(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -4121,6 +4129,8 @@ public void setMuteTest() throws Exception { .addAllLoadBalancers(new ArrayList()) .setCloudArmor(CloudArmor.newBuilder().build()) .setNotebook(Notebook.newBuilder().build()) + .setToxicCombination(ToxicCombination.newBuilder().build()) + .addAllGroupMemberships(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -4213,6 +4223,8 @@ public void setMuteTest2() throws Exception { .addAllLoadBalancers(new ArrayList()) .setCloudArmor(CloudArmor.newBuilder().build()) .setNotebook(Notebook.newBuilder().build()) + .setToxicCombination(ToxicCombination.newBuilder().build()) + .addAllGroupMemberships(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -4626,6 +4638,8 @@ public void updateFindingTest() throws Exception { .addAllLoadBalancers(new ArrayList()) .setCloudArmor(CloudArmor.newBuilder().build()) .setNotebook(Notebook.newBuilder().build()) + .setToxicCombination(ToxicCombination.newBuilder().build()) + .addAllGroupMemberships(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -4676,6 +4690,8 @@ public void updateFindingTest() throws Exception { .addAllLoadBalancers(new ArrayList()) .setCloudArmor(CloudArmor.newBuilder().build()) .setNotebook(Notebook.newBuilder().build()) + .setToxicCombination(ToxicCombination.newBuilder().build()) + .addAllGroupMemberships(new ArrayList()) .build(); Finding actualResponse = client.updateFinding(finding); @@ -4751,6 +4767,8 @@ public void updateFindingExceptionTest() throws Exception { .addAllLoadBalancers(new ArrayList()) .setCloudArmor(CloudArmor.newBuilder().build()) .setNotebook(Notebook.newBuilder().build()) + .setToxicCombination(ToxicCombination.newBuilder().build()) + .addAllGroupMemberships(new ArrayList()) .build(); client.updateFinding(finding); Assert.fail("No exception raised"); diff --git a/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientTest.java b/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientTest.java index 9b6c9b285ad4..a6c3362e9e94 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientTest.java +++ b/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientTest.java @@ -451,6 +451,8 @@ public void createFindingTest() throws Exception { .addAllLoadBalancers(new ArrayList()) .setCloudArmor(CloudArmor.newBuilder().build()) .setNotebook(Notebook.newBuilder().build()) + .setToxicCombination(ToxicCombination.newBuilder().build()) + .addAllGroupMemberships(new ArrayList()) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -539,6 +541,8 @@ public void createFindingTest2() throws Exception { .addAllLoadBalancers(new ArrayList()) .setCloudArmor(CloudArmor.newBuilder().build()) .setNotebook(Notebook.newBuilder().build()) + .setToxicCombination(ToxicCombination.newBuilder().build()) + .addAllGroupMemberships(new ArrayList()) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -3612,6 +3616,8 @@ public void setFindingStateTest() throws Exception { .addAllLoadBalancers(new ArrayList()) .setCloudArmor(CloudArmor.newBuilder().build()) .setNotebook(Notebook.newBuilder().build()) + .setToxicCombination(ToxicCombination.newBuilder().build()) + .addAllGroupMemberships(new ArrayList()) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -3702,6 +3708,8 @@ public void setFindingStateTest2() throws Exception { .addAllLoadBalancers(new ArrayList()) .setCloudArmor(CloudArmor.newBuilder().build()) .setNotebook(Notebook.newBuilder().build()) + .setToxicCombination(ToxicCombination.newBuilder().build()) + .addAllGroupMemberships(new ArrayList()) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -3790,6 +3798,8 @@ public void setMuteTest() throws Exception { .addAllLoadBalancers(new ArrayList()) .setCloudArmor(CloudArmor.newBuilder().build()) .setNotebook(Notebook.newBuilder().build()) + .setToxicCombination(ToxicCombination.newBuilder().build()) + .addAllGroupMemberships(new ArrayList()) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -3877,6 +3887,8 @@ public void setMuteTest2() throws Exception { .addAllLoadBalancers(new ArrayList()) .setCloudArmor(CloudArmor.newBuilder().build()) .setNotebook(Notebook.newBuilder().build()) + .setToxicCombination(ToxicCombination.newBuilder().build()) + .addAllGroupMemberships(new ArrayList()) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -4230,6 +4242,8 @@ public void updateFindingTest() throws Exception { .addAllLoadBalancers(new ArrayList()) .setCloudArmor(CloudArmor.newBuilder().build()) .setNotebook(Notebook.newBuilder().build()) + .setToxicCombination(ToxicCombination.newBuilder().build()) + .addAllGroupMemberships(new ArrayList()) .build(); mockSecurityCenter.addResponse(expectedResponse); diff --git a/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v2/SecurityCenterClientHttpJsonTest.java b/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v2/SecurityCenterClientHttpJsonTest.java index 888c5c438eed..a852bf55b2a9 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v2/SecurityCenterClientHttpJsonTest.java +++ b/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v2/SecurityCenterClientHttpJsonTest.java @@ -568,6 +568,8 @@ public void createFindingTest() throws Exception { .setSecurityPosture(SecurityPosture.newBuilder().build()) .addAllLogEntries(new ArrayList()) .addAllLoadBalancers(new ArrayList()) + .setToxicCombination(ToxicCombination.newBuilder().build()) + .addAllGroupMemberships(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -659,6 +661,8 @@ public void createFindingTest2() throws Exception { .setSecurityPosture(SecurityPosture.newBuilder().build()) .addAllLogEntries(new ArrayList()) .addAllLoadBalancers(new ArrayList()) + .setToxicCombination(ToxicCombination.newBuilder().build()) + .addAllGroupMemberships(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -4073,6 +4077,8 @@ public void setFindingStateTest() throws Exception { .setSecurityPosture(SecurityPosture.newBuilder().build()) .addAllLogEntries(new ArrayList()) .addAllLoadBalancers(new ArrayList()) + .setToxicCombination(ToxicCombination.newBuilder().build()) + .addAllGroupMemberships(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -4164,6 +4170,8 @@ public void setFindingStateTest2() throws Exception { .setSecurityPosture(SecurityPosture.newBuilder().build()) .addAllLogEntries(new ArrayList()) .addAllLoadBalancers(new ArrayList()) + .setToxicCombination(ToxicCombination.newBuilder().build()) + .addAllGroupMemberships(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -4351,6 +4359,8 @@ public void setMuteTest() throws Exception { .setSecurityPosture(SecurityPosture.newBuilder().build()) .addAllLogEntries(new ArrayList()) .addAllLoadBalancers(new ArrayList()) + .setToxicCombination(ToxicCombination.newBuilder().build()) + .addAllGroupMemberships(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -4442,6 +4452,8 @@ public void setMuteTest2() throws Exception { .setSecurityPosture(SecurityPosture.newBuilder().build()) .addAllLogEntries(new ArrayList()) .addAllLoadBalancers(new ArrayList()) + .setToxicCombination(ToxicCombination.newBuilder().build()) + .addAllGroupMemberships(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -4785,6 +4797,8 @@ public void updateFindingTest() throws Exception { .setSecurityPosture(SecurityPosture.newBuilder().build()) .addAllLogEntries(new ArrayList()) .addAllLoadBalancers(new ArrayList()) + .setToxicCombination(ToxicCombination.newBuilder().build()) + .addAllGroupMemberships(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -4834,6 +4848,8 @@ public void updateFindingTest() throws Exception { .setSecurityPosture(SecurityPosture.newBuilder().build()) .addAllLogEntries(new ArrayList()) .addAllLoadBalancers(new ArrayList()) + .setToxicCombination(ToxicCombination.newBuilder().build()) + .addAllGroupMemberships(new ArrayList()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -4909,6 +4925,8 @@ public void updateFindingExceptionTest() throws Exception { .setSecurityPosture(SecurityPosture.newBuilder().build()) .addAllLogEntries(new ArrayList()) .addAllLoadBalancers(new ArrayList()) + .setToxicCombination(ToxicCombination.newBuilder().build()) + .addAllGroupMemberships(new ArrayList()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateFinding(finding, updateMask); diff --git a/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v2/SecurityCenterClientTest.java b/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v2/SecurityCenterClientTest.java index 59371054c45f..38a58393c90d 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v2/SecurityCenterClientTest.java +++ b/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v2/SecurityCenterClientTest.java @@ -549,6 +549,8 @@ public void createFindingTest() throws Exception { .setSecurityPosture(SecurityPosture.newBuilder().build()) .addAllLogEntries(new ArrayList()) .addAllLoadBalancers(new ArrayList()) + .setToxicCombination(ToxicCombination.newBuilder().build()) + .addAllGroupMemberships(new ArrayList()) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -636,6 +638,8 @@ public void createFindingTest2() throws Exception { .setSecurityPosture(SecurityPosture.newBuilder().build()) .addAllLogEntries(new ArrayList()) .addAllLoadBalancers(new ArrayList()) + .setToxicCombination(ToxicCombination.newBuilder().build()) + .addAllGroupMemberships(new ArrayList()) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -3686,6 +3690,8 @@ public void setFindingStateTest() throws Exception { .setSecurityPosture(SecurityPosture.newBuilder().build()) .addAllLogEntries(new ArrayList()) .addAllLoadBalancers(new ArrayList()) + .setToxicCombination(ToxicCombination.newBuilder().build()) + .addAllGroupMemberships(new ArrayList()) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -3772,6 +3778,8 @@ public void setFindingStateTest2() throws Exception { .setSecurityPosture(SecurityPosture.newBuilder().build()) .addAllLogEntries(new ArrayList()) .addAllLoadBalancers(new ArrayList()) + .setToxicCombination(ToxicCombination.newBuilder().build()) + .addAllGroupMemberships(new ArrayList()) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -3944,6 +3952,8 @@ public void setMuteTest() throws Exception { .setSecurityPosture(SecurityPosture.newBuilder().build()) .addAllLogEntries(new ArrayList()) .addAllLoadBalancers(new ArrayList()) + .setToxicCombination(ToxicCombination.newBuilder().build()) + .addAllGroupMemberships(new ArrayList()) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -4030,6 +4040,8 @@ public void setMuteTest2() throws Exception { .setSecurityPosture(SecurityPosture.newBuilder().build()) .addAllLogEntries(new ArrayList()) .addAllLoadBalancers(new ArrayList()) + .setToxicCombination(ToxicCombination.newBuilder().build()) + .addAllGroupMemberships(new ArrayList()) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -4296,6 +4308,8 @@ public void updateFindingTest() throws Exception { .setSecurityPosture(SecurityPosture.newBuilder().build()) .addAllLogEntries(new ArrayList()) .addAllLoadBalancers(new ArrayList()) + .setToxicCombination(ToxicCombination.newBuilder().build()) + .addAllGroupMemberships(new ArrayList()) .build(); mockSecurityCenter.addResponse(expectedResponse); diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Finding.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Finding.java index 994718f7b22b..76a211823cc6 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Finding.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Finding.java @@ -69,6 +69,7 @@ private Finding() { orgPolicies_ = java.util.Collections.emptyList(); logEntries_ = java.util.Collections.emptyList(); loadBalancers_ = java.util.Collections.emptyList(); + groupMemberships_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -814,6 +815,19 @@ public enum FindingClass implements com.google.protobuf.ProtocolMessageEnum { * POSTURE_VIOLATION = 6; */ POSTURE_VIOLATION(6), + /** + * + * + *
          +     * Describes a group of security issues that, when the issues
          +     * occur together, represent a greater risk than when the issues occur
          +     * independently. A group of such issues is referred to as a toxic
          +     * combination.
          +     * 
          + * + * TOXIC_COMBINATION = 7; + */ + TOXIC_COMBINATION(7), UNRECOGNIZED(-1), ; @@ -890,6 +904,19 @@ public enum FindingClass implements com.google.protobuf.ProtocolMessageEnum { * POSTURE_VIOLATION = 6; */ public static final int POSTURE_VIOLATION_VALUE = 6; + /** + * + * + *
          +     * Describes a group of security issues that, when the issues
          +     * occur together, represent a greater risk than when the issues occur
          +     * independently. A group of such issues is referred to as a toxic
          +     * combination.
          +     * 
          + * + * TOXIC_COMBINATION = 7; + */ + public static final int TOXIC_COMBINATION_VALUE = 7; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -929,6 +956,8 @@ public static FindingClass forNumber(int value) { return SCC_ERROR; case 6: return POSTURE_VIOLATION; + case 7: + return TOXIC_COMBINATION; default: return null; } @@ -3848,6 +3877,152 @@ public com.google.cloud.securitycenter.v1.NotebookOrBuilder getNotebookOrBuilder : notebook_; } + public static final int TOXIC_COMBINATION_FIELD_NUMBER = 64; + private com.google.cloud.securitycenter.v1.ToxicCombination toxicCombination_; + /** + * + * + *
          +   * Contains details about a group of security issues that, when the issues
          +   * occur together, represent a greater risk than when the issues occur
          +   * independently. A group of such issues is referred to as a toxic
          +   * combination.
          +   * This field cannot be updated. Its value is ignored in all update requests.
          +   * 
          + * + * .google.cloud.securitycenter.v1.ToxicCombination toxic_combination = 64; + * + * @return Whether the toxicCombination field is set. + */ + @java.lang.Override + public boolean hasToxicCombination() { + return ((bitField0_ & 0x00080000) != 0); + } + /** + * + * + *
          +   * Contains details about a group of security issues that, when the issues
          +   * occur together, represent a greater risk than when the issues occur
          +   * independently. A group of such issues is referred to as a toxic
          +   * combination.
          +   * This field cannot be updated. Its value is ignored in all update requests.
          +   * 
          + * + * .google.cloud.securitycenter.v1.ToxicCombination toxic_combination = 64; + * + * @return The toxicCombination. + */ + @java.lang.Override + public com.google.cloud.securitycenter.v1.ToxicCombination getToxicCombination() { + return toxicCombination_ == null + ? com.google.cloud.securitycenter.v1.ToxicCombination.getDefaultInstance() + : toxicCombination_; + } + /** + * + * + *
          +   * Contains details about a group of security issues that, when the issues
          +   * occur together, represent a greater risk than when the issues occur
          +   * independently. A group of such issues is referred to as a toxic
          +   * combination.
          +   * This field cannot be updated. Its value is ignored in all update requests.
          +   * 
          + * + * .google.cloud.securitycenter.v1.ToxicCombination toxic_combination = 64; + */ + @java.lang.Override + public com.google.cloud.securitycenter.v1.ToxicCombinationOrBuilder + getToxicCombinationOrBuilder() { + return toxicCombination_ == null + ? com.google.cloud.securitycenter.v1.ToxicCombination.getDefaultInstance() + : toxicCombination_; + } + + public static final int GROUP_MEMBERSHIPS_FIELD_NUMBER = 65; + + @SuppressWarnings("serial") + private java.util.List groupMemberships_; + /** + * + * + *
          +   * Contains details about groups of which this finding is a member. A group is
          +   * a collection of findings that are related in some way.
          +   * This field cannot be updated. Its value is ignored in all update requests.
          +   * 
          + * + * repeated .google.cloud.securitycenter.v1.GroupMembership group_memberships = 65; + */ + @java.lang.Override + public java.util.List + getGroupMembershipsList() { + return groupMemberships_; + } + /** + * + * + *
          +   * Contains details about groups of which this finding is a member. A group is
          +   * a collection of findings that are related in some way.
          +   * This field cannot be updated. Its value is ignored in all update requests.
          +   * 
          + * + * repeated .google.cloud.securitycenter.v1.GroupMembership group_memberships = 65; + */ + @java.lang.Override + public java.util.List + getGroupMembershipsOrBuilderList() { + return groupMemberships_; + } + /** + * + * + *
          +   * Contains details about groups of which this finding is a member. A group is
          +   * a collection of findings that are related in some way.
          +   * This field cannot be updated. Its value is ignored in all update requests.
          +   * 
          + * + * repeated .google.cloud.securitycenter.v1.GroupMembership group_memberships = 65; + */ + @java.lang.Override + public int getGroupMembershipsCount() { + return groupMemberships_.size(); + } + /** + * + * + *
          +   * Contains details about groups of which this finding is a member. A group is
          +   * a collection of findings that are related in some way.
          +   * This field cannot be updated. Its value is ignored in all update requests.
          +   * 
          + * + * repeated .google.cloud.securitycenter.v1.GroupMembership group_memberships = 65; + */ + @java.lang.Override + public com.google.cloud.securitycenter.v1.GroupMembership getGroupMemberships(int index) { + return groupMemberships_.get(index); + } + /** + * + * + *
          +   * Contains details about groups of which this finding is a member. A group is
          +   * a collection of findings that are related in some way.
          +   * This field cannot be updated. Its value is ignored in all update requests.
          +   * 
          + * + * repeated .google.cloud.securitycenter.v1.GroupMembership group_memberships = 65; + */ + @java.lang.Override + public com.google.cloud.securitycenter.v1.GroupMembershipOrBuilder getGroupMembershipsOrBuilder( + int index) { + return groupMemberships_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -4000,6 +4175,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00040000) != 0)) { output.writeMessage(63, getNotebook()); } + if (((bitField0_ & 0x00080000) != 0)) { + output.writeMessage(64, getToxicCombination()); + } + for (int i = 0; i < groupMemberships_.size(); i++) { + output.writeMessage(65, groupMemberships_.get(i)); + } getUnknownFields().writeTo(output); } @@ -4177,6 +4358,13 @@ public int getSerializedSize() { if (((bitField0_ & 0x00040000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(63, getNotebook()); } + if (((bitField0_ & 0x00080000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(64, getToxicCombination()); + } + for (int i = 0; i < groupMemberships_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(65, groupMemberships_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -4296,6 +4484,11 @@ public boolean equals(final java.lang.Object obj) { if (hasNotebook()) { if (!getNotebook().equals(other.getNotebook())) return false; } + if (hasToxicCombination() != other.hasToxicCombination()) return false; + if (hasToxicCombination()) { + if (!getToxicCombination().equals(other.getToxicCombination())) return false; + } + if (!getGroupMembershipsList().equals(other.getGroupMembershipsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -4461,6 +4654,14 @@ public int hashCode() { hash = (37 * hash) + NOTEBOOK_FIELD_NUMBER; hash = (53 * hash) + getNotebook().hashCode(); } + if (hasToxicCombination()) { + hash = (37 * hash) + TOXIC_COMBINATION_FIELD_NUMBER; + hash = (53 * hash) + getToxicCombination().hashCode(); + } + if (getGroupMembershipsCount() > 0) { + hash = (37 * hash) + GROUP_MEMBERSHIPS_FIELD_NUMBER; + hash = (53 * hash) + getGroupMembershipsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -4665,6 +4866,8 @@ private void maybeForceBuilderInitialization() { getLoadBalancersFieldBuilder(); getCloudArmorFieldBuilder(); getNotebookFieldBuilder(); + getToxicCombinationFieldBuilder(); + getGroupMembershipsFieldBuilder(); } } @@ -4849,6 +5052,18 @@ public Builder clear() { notebookBuilder_.dispose(); notebookBuilder_ = null; } + toxicCombination_ = null; + if (toxicCombinationBuilder_ != null) { + toxicCombinationBuilder_.dispose(); + toxicCombinationBuilder_ = null; + } + if (groupMembershipsBuilder_ == null) { + groupMemberships_ = java.util.Collections.emptyList(); + } else { + groupMemberships_ = null; + groupMembershipsBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00008000); return this; } @@ -4969,6 +5184,15 @@ private void buildPartialRepeatedFields(com.google.cloud.securitycenter.v1.Findi } else { result.loadBalancers_ = loadBalancersBuilder_.build(); } + if (groupMembershipsBuilder_ == null) { + if (((bitField1_ & 0x00008000) != 0)) { + groupMemberships_ = java.util.Collections.unmodifiableList(groupMemberships_); + bitField1_ = (bitField1_ & ~0x00008000); + } + result.groupMemberships_ = groupMemberships_; + } else { + result.groupMemberships_ = groupMembershipsBuilder_.build(); + } } private void buildPartial0(com.google.cloud.securitycenter.v1.Finding result) { @@ -5129,6 +5353,11 @@ private void buildPartial1(com.google.cloud.securitycenter.v1.Finding result) { result.notebook_ = notebookBuilder_ == null ? notebook_ : notebookBuilder_.build(); to_bitField0_ |= 0x00040000; } + if (((from_bitField1_ & 0x00004000) != 0)) { + result.toxicCombination_ = + toxicCombinationBuilder_ == null ? toxicCombination_ : toxicCombinationBuilder_.build(); + to_bitField0_ |= 0x00080000; + } result.bitField0_ |= to_bitField0_; } @@ -5550,6 +5779,36 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.Finding other) { if (other.hasNotebook()) { mergeNotebook(other.getNotebook()); } + if (other.hasToxicCombination()) { + mergeToxicCombination(other.getToxicCombination()); + } + if (groupMembershipsBuilder_ == null) { + if (!other.groupMemberships_.isEmpty()) { + if (groupMemberships_.isEmpty()) { + groupMemberships_ = other.groupMemberships_; + bitField1_ = (bitField1_ & ~0x00008000); + } else { + ensureGroupMembershipsIsMutable(); + groupMemberships_.addAll(other.groupMemberships_); + } + onChanged(); + } + } else { + if (!other.groupMemberships_.isEmpty()) { + if (groupMembershipsBuilder_.isEmpty()) { + groupMembershipsBuilder_.dispose(); + groupMembershipsBuilder_ = null; + groupMemberships_ = other.groupMemberships_; + bitField1_ = (bitField1_ & ~0x00008000); + groupMembershipsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getGroupMembershipsFieldBuilder() + : null; + } else { + groupMembershipsBuilder_.addAllMessages(other.groupMemberships_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -5942,6 +6201,27 @@ public Builder mergeFrom( bitField1_ |= 0x00002000; break; } // case 506 + case 514: + { + input.readMessage( + getToxicCombinationFieldBuilder().getBuilder(), extensionRegistry); + bitField1_ |= 0x00004000; + break; + } // case 514 + case 522: + { + com.google.cloud.securitycenter.v1.GroupMembership m = + input.readMessage( + com.google.cloud.securitycenter.v1.GroupMembership.parser(), + extensionRegistry); + if (groupMembershipsBuilder_ == null) { + ensureGroupMembershipsIsMutable(); + groupMemberships_.add(m); + } else { + groupMembershipsBuilder_.addMessage(m); + } + break; + } // case 522 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -15494,6 +15774,630 @@ public com.google.cloud.securitycenter.v1.NotebookOrBuilder getNotebookOrBuilder return notebookBuilder_; } + private com.google.cloud.securitycenter.v1.ToxicCombination toxicCombination_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.ToxicCombination, + com.google.cloud.securitycenter.v1.ToxicCombination.Builder, + com.google.cloud.securitycenter.v1.ToxicCombinationOrBuilder> + toxicCombinationBuilder_; + /** + * + * + *
          +     * Contains details about a group of security issues that, when the issues
          +     * occur together, represent a greater risk than when the issues occur
          +     * independently. A group of such issues is referred to as a toxic
          +     * combination.
          +     * This field cannot be updated. Its value is ignored in all update requests.
          +     * 
          + * + * .google.cloud.securitycenter.v1.ToxicCombination toxic_combination = 64; + * + * @return Whether the toxicCombination field is set. + */ + public boolean hasToxicCombination() { + return ((bitField1_ & 0x00004000) != 0); + } + /** + * + * + *
          +     * Contains details about a group of security issues that, when the issues
          +     * occur together, represent a greater risk than when the issues occur
          +     * independently. A group of such issues is referred to as a toxic
          +     * combination.
          +     * This field cannot be updated. Its value is ignored in all update requests.
          +     * 
          + * + * .google.cloud.securitycenter.v1.ToxicCombination toxic_combination = 64; + * + * @return The toxicCombination. + */ + public com.google.cloud.securitycenter.v1.ToxicCombination getToxicCombination() { + if (toxicCombinationBuilder_ == null) { + return toxicCombination_ == null + ? com.google.cloud.securitycenter.v1.ToxicCombination.getDefaultInstance() + : toxicCombination_; + } else { + return toxicCombinationBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Contains details about a group of security issues that, when the issues
          +     * occur together, represent a greater risk than when the issues occur
          +     * independently. A group of such issues is referred to as a toxic
          +     * combination.
          +     * This field cannot be updated. Its value is ignored in all update requests.
          +     * 
          + * + * .google.cloud.securitycenter.v1.ToxicCombination toxic_combination = 64; + */ + public Builder setToxicCombination(com.google.cloud.securitycenter.v1.ToxicCombination value) { + if (toxicCombinationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toxicCombination_ = value; + } else { + toxicCombinationBuilder_.setMessage(value); + } + bitField1_ |= 0x00004000; + onChanged(); + return this; + } + /** + * + * + *
          +     * Contains details about a group of security issues that, when the issues
          +     * occur together, represent a greater risk than when the issues occur
          +     * independently. A group of such issues is referred to as a toxic
          +     * combination.
          +     * This field cannot be updated. Its value is ignored in all update requests.
          +     * 
          + * + * .google.cloud.securitycenter.v1.ToxicCombination toxic_combination = 64; + */ + public Builder setToxicCombination( + com.google.cloud.securitycenter.v1.ToxicCombination.Builder builderForValue) { + if (toxicCombinationBuilder_ == null) { + toxicCombination_ = builderForValue.build(); + } else { + toxicCombinationBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00004000; + onChanged(); + return this; + } + /** + * + * + *
          +     * Contains details about a group of security issues that, when the issues
          +     * occur together, represent a greater risk than when the issues occur
          +     * independently. A group of such issues is referred to as a toxic
          +     * combination.
          +     * This field cannot be updated. Its value is ignored in all update requests.
          +     * 
          + * + * .google.cloud.securitycenter.v1.ToxicCombination toxic_combination = 64; + */ + public Builder mergeToxicCombination( + com.google.cloud.securitycenter.v1.ToxicCombination value) { + if (toxicCombinationBuilder_ == null) { + if (((bitField1_ & 0x00004000) != 0) + && toxicCombination_ != null + && toxicCombination_ + != com.google.cloud.securitycenter.v1.ToxicCombination.getDefaultInstance()) { + getToxicCombinationBuilder().mergeFrom(value); + } else { + toxicCombination_ = value; + } + } else { + toxicCombinationBuilder_.mergeFrom(value); + } + if (toxicCombination_ != null) { + bitField1_ |= 0x00004000; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Contains details about a group of security issues that, when the issues
          +     * occur together, represent a greater risk than when the issues occur
          +     * independently. A group of such issues is referred to as a toxic
          +     * combination.
          +     * This field cannot be updated. Its value is ignored in all update requests.
          +     * 
          + * + * .google.cloud.securitycenter.v1.ToxicCombination toxic_combination = 64; + */ + public Builder clearToxicCombination() { + bitField1_ = (bitField1_ & ~0x00004000); + toxicCombination_ = null; + if (toxicCombinationBuilder_ != null) { + toxicCombinationBuilder_.dispose(); + toxicCombinationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Contains details about a group of security issues that, when the issues
          +     * occur together, represent a greater risk than when the issues occur
          +     * independently. A group of such issues is referred to as a toxic
          +     * combination.
          +     * This field cannot be updated. Its value is ignored in all update requests.
          +     * 
          + * + * .google.cloud.securitycenter.v1.ToxicCombination toxic_combination = 64; + */ + public com.google.cloud.securitycenter.v1.ToxicCombination.Builder + getToxicCombinationBuilder() { + bitField1_ |= 0x00004000; + onChanged(); + return getToxicCombinationFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Contains details about a group of security issues that, when the issues
          +     * occur together, represent a greater risk than when the issues occur
          +     * independently. A group of such issues is referred to as a toxic
          +     * combination.
          +     * This field cannot be updated. Its value is ignored in all update requests.
          +     * 
          + * + * .google.cloud.securitycenter.v1.ToxicCombination toxic_combination = 64; + */ + public com.google.cloud.securitycenter.v1.ToxicCombinationOrBuilder + getToxicCombinationOrBuilder() { + if (toxicCombinationBuilder_ != null) { + return toxicCombinationBuilder_.getMessageOrBuilder(); + } else { + return toxicCombination_ == null + ? com.google.cloud.securitycenter.v1.ToxicCombination.getDefaultInstance() + : toxicCombination_; + } + } + /** + * + * + *
          +     * Contains details about a group of security issues that, when the issues
          +     * occur together, represent a greater risk than when the issues occur
          +     * independently. A group of such issues is referred to as a toxic
          +     * combination.
          +     * This field cannot be updated. Its value is ignored in all update requests.
          +     * 
          + * + * .google.cloud.securitycenter.v1.ToxicCombination toxic_combination = 64; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.ToxicCombination, + com.google.cloud.securitycenter.v1.ToxicCombination.Builder, + com.google.cloud.securitycenter.v1.ToxicCombinationOrBuilder> + getToxicCombinationFieldBuilder() { + if (toxicCombinationBuilder_ == null) { + toxicCombinationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.ToxicCombination, + com.google.cloud.securitycenter.v1.ToxicCombination.Builder, + com.google.cloud.securitycenter.v1.ToxicCombinationOrBuilder>( + getToxicCombination(), getParentForChildren(), isClean()); + toxicCombination_ = null; + } + return toxicCombinationBuilder_; + } + + private java.util.List groupMemberships_ = + java.util.Collections.emptyList(); + + private void ensureGroupMembershipsIsMutable() { + if (!((bitField1_ & 0x00008000) != 0)) { + groupMemberships_ = + new java.util.ArrayList( + groupMemberships_); + bitField1_ |= 0x00008000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.GroupMembership, + com.google.cloud.securitycenter.v1.GroupMembership.Builder, + com.google.cloud.securitycenter.v1.GroupMembershipOrBuilder> + groupMembershipsBuilder_; + + /** + * + * + *
          +     * Contains details about groups of which this finding is a member. A group is
          +     * a collection of findings that are related in some way.
          +     * This field cannot be updated. Its value is ignored in all update requests.
          +     * 
          + * + * repeated .google.cloud.securitycenter.v1.GroupMembership group_memberships = 65; + */ + public java.util.List + getGroupMembershipsList() { + if (groupMembershipsBuilder_ == null) { + return java.util.Collections.unmodifiableList(groupMemberships_); + } else { + return groupMembershipsBuilder_.getMessageList(); + } + } + /** + * + * + *
          +     * Contains details about groups of which this finding is a member. A group is
          +     * a collection of findings that are related in some way.
          +     * This field cannot be updated. Its value is ignored in all update requests.
          +     * 
          + * + * repeated .google.cloud.securitycenter.v1.GroupMembership group_memberships = 65; + */ + public int getGroupMembershipsCount() { + if (groupMembershipsBuilder_ == null) { + return groupMemberships_.size(); + } else { + return groupMembershipsBuilder_.getCount(); + } + } + /** + * + * + *
          +     * Contains details about groups of which this finding is a member. A group is
          +     * a collection of findings that are related in some way.
          +     * This field cannot be updated. Its value is ignored in all update requests.
          +     * 
          + * + * repeated .google.cloud.securitycenter.v1.GroupMembership group_memberships = 65; + */ + public com.google.cloud.securitycenter.v1.GroupMembership getGroupMemberships(int index) { + if (groupMembershipsBuilder_ == null) { + return groupMemberships_.get(index); + } else { + return groupMembershipsBuilder_.getMessage(index); + } + } + /** + * + * + *
          +     * Contains details about groups of which this finding is a member. A group is
          +     * a collection of findings that are related in some way.
          +     * This field cannot be updated. Its value is ignored in all update requests.
          +     * 
          + * + * repeated .google.cloud.securitycenter.v1.GroupMembership group_memberships = 65; + */ + public Builder setGroupMemberships( + int index, com.google.cloud.securitycenter.v1.GroupMembership value) { + if (groupMembershipsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroupMembershipsIsMutable(); + groupMemberships_.set(index, value); + onChanged(); + } else { + groupMembershipsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
          +     * Contains details about groups of which this finding is a member. A group is
          +     * a collection of findings that are related in some way.
          +     * This field cannot be updated. Its value is ignored in all update requests.
          +     * 
          + * + * repeated .google.cloud.securitycenter.v1.GroupMembership group_memberships = 65; + */ + public Builder setGroupMemberships( + int index, com.google.cloud.securitycenter.v1.GroupMembership.Builder builderForValue) { + if (groupMembershipsBuilder_ == null) { + ensureGroupMembershipsIsMutable(); + groupMemberships_.set(index, builderForValue.build()); + onChanged(); + } else { + groupMembershipsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * Contains details about groups of which this finding is a member. A group is
          +     * a collection of findings that are related in some way.
          +     * This field cannot be updated. Its value is ignored in all update requests.
          +     * 
          + * + * repeated .google.cloud.securitycenter.v1.GroupMembership group_memberships = 65; + */ + public Builder addGroupMemberships(com.google.cloud.securitycenter.v1.GroupMembership value) { + if (groupMembershipsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroupMembershipsIsMutable(); + groupMemberships_.add(value); + onChanged(); + } else { + groupMembershipsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
          +     * Contains details about groups of which this finding is a member. A group is
          +     * a collection of findings that are related in some way.
          +     * This field cannot be updated. Its value is ignored in all update requests.
          +     * 
          + * + * repeated .google.cloud.securitycenter.v1.GroupMembership group_memberships = 65; + */ + public Builder addGroupMemberships( + int index, com.google.cloud.securitycenter.v1.GroupMembership value) { + if (groupMembershipsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroupMembershipsIsMutable(); + groupMemberships_.add(index, value); + onChanged(); + } else { + groupMembershipsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
          +     * Contains details about groups of which this finding is a member. A group is
          +     * a collection of findings that are related in some way.
          +     * This field cannot be updated. Its value is ignored in all update requests.
          +     * 
          + * + * repeated .google.cloud.securitycenter.v1.GroupMembership group_memberships = 65; + */ + public Builder addGroupMemberships( + com.google.cloud.securitycenter.v1.GroupMembership.Builder builderForValue) { + if (groupMembershipsBuilder_ == null) { + ensureGroupMembershipsIsMutable(); + groupMemberships_.add(builderForValue.build()); + onChanged(); + } else { + groupMembershipsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * Contains details about groups of which this finding is a member. A group is
          +     * a collection of findings that are related in some way.
          +     * This field cannot be updated. Its value is ignored in all update requests.
          +     * 
          + * + * repeated .google.cloud.securitycenter.v1.GroupMembership group_memberships = 65; + */ + public Builder addGroupMemberships( + int index, com.google.cloud.securitycenter.v1.GroupMembership.Builder builderForValue) { + if (groupMembershipsBuilder_ == null) { + ensureGroupMembershipsIsMutable(); + groupMemberships_.add(index, builderForValue.build()); + onChanged(); + } else { + groupMembershipsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * Contains details about groups of which this finding is a member. A group is
          +     * a collection of findings that are related in some way.
          +     * This field cannot be updated. Its value is ignored in all update requests.
          +     * 
          + * + * repeated .google.cloud.securitycenter.v1.GroupMembership group_memberships = 65; + */ + public Builder addAllGroupMemberships( + java.lang.Iterable values) { + if (groupMembershipsBuilder_ == null) { + ensureGroupMembershipsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groupMemberships_); + onChanged(); + } else { + groupMembershipsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
          +     * Contains details about groups of which this finding is a member. A group is
          +     * a collection of findings that are related in some way.
          +     * This field cannot be updated. Its value is ignored in all update requests.
          +     * 
          + * + * repeated .google.cloud.securitycenter.v1.GroupMembership group_memberships = 65; + */ + public Builder clearGroupMemberships() { + if (groupMembershipsBuilder_ == null) { + groupMemberships_ = java.util.Collections.emptyList(); + bitField1_ = (bitField1_ & ~0x00008000); + onChanged(); + } else { + groupMembershipsBuilder_.clear(); + } + return this; + } + /** + * + * + *
          +     * Contains details about groups of which this finding is a member. A group is
          +     * a collection of findings that are related in some way.
          +     * This field cannot be updated. Its value is ignored in all update requests.
          +     * 
          + * + * repeated .google.cloud.securitycenter.v1.GroupMembership group_memberships = 65; + */ + public Builder removeGroupMemberships(int index) { + if (groupMembershipsBuilder_ == null) { + ensureGroupMembershipsIsMutable(); + groupMemberships_.remove(index); + onChanged(); + } else { + groupMembershipsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
          +     * Contains details about groups of which this finding is a member. A group is
          +     * a collection of findings that are related in some way.
          +     * This field cannot be updated. Its value is ignored in all update requests.
          +     * 
          + * + * repeated .google.cloud.securitycenter.v1.GroupMembership group_memberships = 65; + */ + public com.google.cloud.securitycenter.v1.GroupMembership.Builder getGroupMembershipsBuilder( + int index) { + return getGroupMembershipsFieldBuilder().getBuilder(index); + } + /** + * + * + *
          +     * Contains details about groups of which this finding is a member. A group is
          +     * a collection of findings that are related in some way.
          +     * This field cannot be updated. Its value is ignored in all update requests.
          +     * 
          + * + * repeated .google.cloud.securitycenter.v1.GroupMembership group_memberships = 65; + */ + public com.google.cloud.securitycenter.v1.GroupMembershipOrBuilder getGroupMembershipsOrBuilder( + int index) { + if (groupMembershipsBuilder_ == null) { + return groupMemberships_.get(index); + } else { + return groupMembershipsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
          +     * Contains details about groups of which this finding is a member. A group is
          +     * a collection of findings that are related in some way.
          +     * This field cannot be updated. Its value is ignored in all update requests.
          +     * 
          + * + * repeated .google.cloud.securitycenter.v1.GroupMembership group_memberships = 65; + */ + public java.util.List + getGroupMembershipsOrBuilderList() { + if (groupMembershipsBuilder_ != null) { + return groupMembershipsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(groupMemberships_); + } + } + /** + * + * + *
          +     * Contains details about groups of which this finding is a member. A group is
          +     * a collection of findings that are related in some way.
          +     * This field cannot be updated. Its value is ignored in all update requests.
          +     * 
          + * + * repeated .google.cloud.securitycenter.v1.GroupMembership group_memberships = 65; + */ + public com.google.cloud.securitycenter.v1.GroupMembership.Builder addGroupMembershipsBuilder() { + return getGroupMembershipsFieldBuilder() + .addBuilder(com.google.cloud.securitycenter.v1.GroupMembership.getDefaultInstance()); + } + /** + * + * + *
          +     * Contains details about groups of which this finding is a member. A group is
          +     * a collection of findings that are related in some way.
          +     * This field cannot be updated. Its value is ignored in all update requests.
          +     * 
          + * + * repeated .google.cloud.securitycenter.v1.GroupMembership group_memberships = 65; + */ + public com.google.cloud.securitycenter.v1.GroupMembership.Builder addGroupMembershipsBuilder( + int index) { + return getGroupMembershipsFieldBuilder() + .addBuilder( + index, com.google.cloud.securitycenter.v1.GroupMembership.getDefaultInstance()); + } + /** + * + * + *
          +     * Contains details about groups of which this finding is a member. A group is
          +     * a collection of findings that are related in some way.
          +     * This field cannot be updated. Its value is ignored in all update requests.
          +     * 
          + * + * repeated .google.cloud.securitycenter.v1.GroupMembership group_memberships = 65; + */ + public java.util.List + getGroupMembershipsBuilderList() { + return getGroupMembershipsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.GroupMembership, + com.google.cloud.securitycenter.v1.GroupMembership.Builder, + com.google.cloud.securitycenter.v1.GroupMembershipOrBuilder> + getGroupMembershipsFieldBuilder() { + if (groupMembershipsBuilder_ == null) { + groupMembershipsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.GroupMembership, + com.google.cloud.securitycenter.v1.GroupMembership.Builder, + com.google.cloud.securitycenter.v1.GroupMembershipOrBuilder>( + groupMemberships_, + ((bitField1_ & 0x00008000) != 0), + getParentForChildren(), + isClean()); + groupMemberships_ = null; + } + return groupMembershipsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOrBuilder.java index 5af0cec4dec7..a7702211bade 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOrBuilder.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOrBuilder.java @@ -1967,4 +1967,114 @@ com.google.cloud.securitycenter.v1.ContactDetails getContactsOrDefault( * .google.cloud.securitycenter.v1.Notebook notebook = 63; */ com.google.cloud.securitycenter.v1.NotebookOrBuilder getNotebookOrBuilder(); + + /** + * + * + *
          +   * Contains details about a group of security issues that, when the issues
          +   * occur together, represent a greater risk than when the issues occur
          +   * independently. A group of such issues is referred to as a toxic
          +   * combination.
          +   * This field cannot be updated. Its value is ignored in all update requests.
          +   * 
          + * + * .google.cloud.securitycenter.v1.ToxicCombination toxic_combination = 64; + * + * @return Whether the toxicCombination field is set. + */ + boolean hasToxicCombination(); + /** + * + * + *
          +   * Contains details about a group of security issues that, when the issues
          +   * occur together, represent a greater risk than when the issues occur
          +   * independently. A group of such issues is referred to as a toxic
          +   * combination.
          +   * This field cannot be updated. Its value is ignored in all update requests.
          +   * 
          + * + * .google.cloud.securitycenter.v1.ToxicCombination toxic_combination = 64; + * + * @return The toxicCombination. + */ + com.google.cloud.securitycenter.v1.ToxicCombination getToxicCombination(); + /** + * + * + *
          +   * Contains details about a group of security issues that, when the issues
          +   * occur together, represent a greater risk than when the issues occur
          +   * independently. A group of such issues is referred to as a toxic
          +   * combination.
          +   * This field cannot be updated. Its value is ignored in all update requests.
          +   * 
          + * + * .google.cloud.securitycenter.v1.ToxicCombination toxic_combination = 64; + */ + com.google.cloud.securitycenter.v1.ToxicCombinationOrBuilder getToxicCombinationOrBuilder(); + + /** + * + * + *
          +   * Contains details about groups of which this finding is a member. A group is
          +   * a collection of findings that are related in some way.
          +   * This field cannot be updated. Its value is ignored in all update requests.
          +   * 
          + * + * repeated .google.cloud.securitycenter.v1.GroupMembership group_memberships = 65; + */ + java.util.List getGroupMembershipsList(); + /** + * + * + *
          +   * Contains details about groups of which this finding is a member. A group is
          +   * a collection of findings that are related in some way.
          +   * This field cannot be updated. Its value is ignored in all update requests.
          +   * 
          + * + * repeated .google.cloud.securitycenter.v1.GroupMembership group_memberships = 65; + */ + com.google.cloud.securitycenter.v1.GroupMembership getGroupMemberships(int index); + /** + * + * + *
          +   * Contains details about groups of which this finding is a member. A group is
          +   * a collection of findings that are related in some way.
          +   * This field cannot be updated. Its value is ignored in all update requests.
          +   * 
          + * + * repeated .google.cloud.securitycenter.v1.GroupMembership group_memberships = 65; + */ + int getGroupMembershipsCount(); + /** + * + * + *
          +   * Contains details about groups of which this finding is a member. A group is
          +   * a collection of findings that are related in some way.
          +   * This field cannot be updated. Its value is ignored in all update requests.
          +   * 
          + * + * repeated .google.cloud.securitycenter.v1.GroupMembership group_memberships = 65; + */ + java.util.List + getGroupMembershipsOrBuilderList(); + /** + * + * + *
          +   * Contains details about groups of which this finding is a member. A group is
          +   * a collection of findings that are related in some way.
          +   * This field cannot be updated. Its value is ignored in all update requests.
          +   * 
          + * + * repeated .google.cloud.securitycenter.v1.GroupMembership group_memberships = 65; + */ + com.google.cloud.securitycenter.v1.GroupMembershipOrBuilder getGroupMembershipsOrBuilder( + int index); } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java index 21b0d4a30314..9660e112dc63 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java @@ -74,118 +74,125 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "e/cloud/securitycenter/v1/exfiltration.p" + "roto\0324google/cloud/securitycenter/v1/ext" + "ernal_system.proto\032)google/cloud/securit" - + "ycenter/v1/file.proto\0320google/cloud/secu" - + "ritycenter/v1/iam_binding.proto\032.google/" - + "cloud/securitycenter/v1/indicator.proto\032" - + "3google/cloud/securitycenter/v1/kernel_r" - + "ootkit.proto\032/google/cloud/securitycente" - + "r/v1/kubernetes.proto\0322google/cloud/secu" - + "ritycenter/v1/load_balancer.proto\032.googl" - + "e/cloud/securitycenter/v1/log_entry.prot" - + "o\0321google/cloud/securitycenter/v1/mitre_" - + "attack.proto\032-google/cloud/securitycente" - + "r/v1/notebook.proto\032/google/cloud/securi" - + "tycenter/v1/org_policy.proto\032,google/clo" - + "ud/securitycenter/v1/process.proto\0323goog" - + "le/cloud/securitycenter/v1/security_mark" - + "s.proto\0325google/cloud/securitycenter/v1/" - + "security_posture.proto\0322google/cloud/sec" - + "uritycenter/v1/vulnerability.proto\032\034goog" - + "le/protobuf/struct.proto\032\037google/protobu" - + "f/timestamp.proto\"\237\033\n\007Finding\022\014\n\004name\030\001 " - + "\001(\t\022\016\n\006parent\030\002 \001(\t\022\025\n\rresource_name\030\003 \001" - + "(\t\022<\n\005state\030\004 \001(\0162-.google.cloud.securit" - + "ycenter.v1.Finding.State\022\020\n\010category\030\005 \001" - + "(\t\022\024\n\014external_uri\030\006 \001(\t\022X\n\021source_prope" - + "rties\030\007 \003(\0132=.google.cloud.securitycente" - + "r.v1.Finding.SourcePropertiesEntry\022J\n\016se" - + "curity_marks\030\010 \001(\0132-.google.cloud.securi" - + "tycenter.v1.SecurityMarksB\003\340A\003\022.\n\nevent_" - + "time\030\t \001(\0132\032.google.protobuf.Timestamp\022/" - + "\n\013create_time\030\n \001(\0132\032.google.protobuf.Ti" - + "mestamp\022B\n\010severity\030\014 \001(\01620.google.cloud" - + ".securitycenter.v1.Finding.Severity\022\026\n\016c" - + "anonical_name\030\016 \001(\t\022:\n\004mute\030\017 \001(\0162,.goog" - + "le.cloud.securitycenter.v1.Finding.Mute\022" - + "K\n\rfinding_class\030\021 \001(\01624.google.cloud.se" - + "curitycenter.v1.Finding.FindingClass\022<\n\t" - + "indicator\030\022 \001(\0132).google.cloud.securityc" - + "enter.v1.Indicator\022D\n\rvulnerability\030\024 \001(" - + "\0132-.google.cloud.securitycenter.v1.Vulne" - + "rability\0229\n\020mute_update_time\030\025 \001(\0132\032.goo" - + "gle.protobuf.TimestampB\003\340A\003\022[\n\020external_" - + "systems\030\026 \003(\0132<.google.cloud.securitycen" - + "ter.v1.Finding.ExternalSystemsEntryB\003\340A\003" - + "\022A\n\014mitre_attack\030\031 \001(\0132+.google.cloud.se" - + "curitycenter.v1.MitreAttack\0226\n\006access\030\032 " - + "\001(\0132&.google.cloud.securitycenter.v1.Acc" - + "ess\022?\n\013connections\030\037 \003(\0132*.google.cloud." - + "securitycenter.v1.Connection\022\026\n\016mute_ini" - + "tiator\030\034 \001(\t\022:\n\tprocesses\030\036 \003(\0132\'.google" - + ".cloud.securitycenter.v1.Process\022L\n\010cont" - + "acts\030! \003(\01325.google.cloud.securitycenter" - + ".v1.Finding.ContactsEntryB\003\340A\003\022?\n\013compli" - + "ances\030\" \003(\0132*.google.cloud.securitycente" - + "r.v1.Compliance\022 \n\023parent_display_name\030$" - + " \001(\tB\003\340A\003\022\023\n\013description\030% \001(\t\022B\n\014exfilt" - + "ration\030& \001(\0132,.google.cloud.securitycent" - + "er.v1.Exfiltration\022@\n\014iam_bindings\030\' \003(\013" - + "2*.google.cloud.securitycenter.v1.IamBin" - + "ding\022\022\n\nnext_steps\030( \001(\t\022\023\n\013module_name\030" - + ") \001(\t\022=\n\ncontainers\030* \003(\0132).google.cloud" - + ".securitycenter.v1.Container\022>\n\nkubernet" - + "es\030+ \001(\0132*.google.cloud.securitycenter.v" - + "1.Kubernetes\022:\n\010database\030, \001(\0132(.google." - + "cloud.securitycenter.v1.Database\0223\n\005file" - + "s\030. \003(\0132$.google.cloud.securitycenter.v1" - + ".File\022P\n\024cloud_dlp_inspection\0300 \001(\01322.go" - + "ogle.cloud.securitycenter.v1.CloudDlpIns" - + "pection\022S\n\026cloud_dlp_data_profile\0301 \001(\0132" - + "3.google.cloud.securitycenter.v1.CloudDl" - + "pDataProfile\022E\n\016kernel_rootkit\0302 \001(\0132-.g" - + "oogle.cloud.securitycenter.v1.KernelRoot" - + "kit\022?\n\014org_policies\0303 \003(\0132).google.cloud" - + ".securitycenter.v1.OrgPolicy\022@\n\013applicat" - + "ion\0305 \001(\0132+.google.cloud.securitycenter." - + "v1.Application\022X\n\030backup_disaster_recove" - + "ry\0307 \001(\01326.google.cloud.securitycenter.v" - + "1.BackupDisasterRecovery\022I\n\020security_pos" - + "ture\0308 \001(\0132/.google.cloud.securitycenter" - + ".v1.SecurityPosture\022=\n\013log_entries\0309 \003(\013" - + "2(.google.cloud.securitycenter.v1.LogEnt" - + "ry\022D\n\016load_balancers\030: \003(\0132,.google.clou" - + "d.securitycenter.v1.LoadBalancer\022?\n\013clou" - + "d_armor\030; \001(\0132*.google.cloud.securitycen" - + "ter.v1.CloudArmor\022:\n\010notebook\030? \001(\0132(.go" - + "ogle.cloud.securitycenter.v1.Notebook\032O\n" - + "\025SourcePropertiesEntry\022\013\n\003key\030\001 \001(\t\022%\n\005v" - + "alue\030\002 \001(\0132\026.google.protobuf.Value:\0028\001\032f" - + "\n\024ExternalSystemsEntry\022\013\n\003key\030\001 \001(\t\022=\n\005v" - + "alue\030\002 \001(\0132..google.cloud.securitycenter" - + ".v1.ExternalSystem:\0028\001\032_\n\rContactsEntry\022" - + "\013\n\003key\030\001 \001(\t\022=\n\005value\030\002 \001(\0132..google.clo" - + "ud.securitycenter.v1.ContactDetails:\0028\001\"" - + "8\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIV" - + "E\020\001\022\014\n\010INACTIVE\020\002\"Q\n\010Severity\022\030\n\024SEVERIT" - + "Y_UNSPECIFIED\020\000\022\014\n\010CRITICAL\020\001\022\010\n\004HIGH\020\002\022" - + "\n\n\006MEDIUM\020\003\022\007\n\003LOW\020\004\"C\n\004Mute\022\024\n\020MUTE_UNS" - + "PECIFIED\020\000\022\t\n\005MUTED\020\001\022\013\n\007UNMUTED\020\002\022\r\n\tUN" - + "DEFINED\020\004\"\231\001\n\014FindingClass\022\035\n\031FINDING_CL" - + "ASS_UNSPECIFIED\020\000\022\n\n\006THREAT\020\001\022\021\n\rVULNERA" - + "BILITY\020\002\022\024\n\020MISCONFIGURATION\020\003\022\017\n\013OBSERV" - + "ATION\020\004\022\r\n\tSCC_ERROR\020\005\022\025\n\021POSTURE_VIOLAT" - + "ION\020\006:\333\001\352A\327\001\n%securitycenter.googleapis." - + "com/Finding\022@organizations/{organization" - + "}/sources/{source}/findings/{finding}\0224f" - + "olders/{folder}/sources/{source}/finding" - + "s/{finding}\0226projects/{project}/sources/" - + "{source}/findings/{finding}B\330\001\n\"com.goog" - + "le.cloud.securitycenter.v1P\001ZJcloud.goog" - + "le.com/go/securitycenter/apiv1/securityc" - + "enterpb;securitycenterpb\252\002\036Google.Cloud." - + "SecurityCenter.V1\312\002\036Google\\Cloud\\Securit" - + "yCenter\\V1\352\002!Google::Cloud::SecurityCent" - + "er::V1b\006proto3" + + "ycenter/v1/file.proto\0325google/cloud/secu" + + "ritycenter/v1/group_membership.proto\0320go" + + "ogle/cloud/securitycenter/v1/iam_binding" + + ".proto\032.google/cloud/securitycenter/v1/i" + + "ndicator.proto\0323google/cloud/securitycen" + + "ter/v1/kernel_rootkit.proto\032/google/clou" + + "d/securitycenter/v1/kubernetes.proto\0322go" + + "ogle/cloud/securitycenter/v1/load_balanc" + + "er.proto\032.google/cloud/securitycenter/v1" + + "/log_entry.proto\0321google/cloud/securityc" + + "enter/v1/mitre_attack.proto\032-google/clou" + + "d/securitycenter/v1/notebook.proto\032/goog" + + "le/cloud/securitycenter/v1/org_policy.pr" + + "oto\032,google/cloud/securitycenter/v1/proc" + + "ess.proto\0323google/cloud/securitycenter/v" + + "1/security_marks.proto\0325google/cloud/sec" + + "uritycenter/v1/security_posture.proto\0326g" + + "oogle/cloud/securitycenter/v1/toxic_comb" + + "ination.proto\0322google/cloud/securitycent" + + "er/v1/vulnerability.proto\032\034google/protob" + + "uf/struct.proto\032\037google/protobuf/timesta" + + "mp.proto\"\317\034\n\007Finding\022\014\n\004name\030\001 \001(\t\022\016\n\006pa" + + "rent\030\002 \001(\t\022\025\n\rresource_name\030\003 \001(\t\022<\n\005sta" + + "te\030\004 \001(\0162-.google.cloud.securitycenter.v" + + "1.Finding.State\022\020\n\010category\030\005 \001(\t\022\024\n\014ext" + + "ernal_uri\030\006 \001(\t\022X\n\021source_properties\030\007 \003" + + "(\0132=.google.cloud.securitycenter.v1.Find" + + "ing.SourcePropertiesEntry\022J\n\016security_ma" + + "rks\030\010 \001(\0132-.google.cloud.securitycenter." + + "v1.SecurityMarksB\003\340A\003\022.\n\nevent_time\030\t \001(" + + "\0132\032.google.protobuf.Timestamp\022/\n\013create_" + + "time\030\n \001(\0132\032.google.protobuf.Timestamp\022B" + + "\n\010severity\030\014 \001(\01620.google.cloud.security" + + "center.v1.Finding.Severity\022\026\n\016canonical_" + + "name\030\016 \001(\t\022:\n\004mute\030\017 \001(\0162,.google.cloud." + + "securitycenter.v1.Finding.Mute\022K\n\rfindin" + + "g_class\030\021 \001(\01624.google.cloud.securitycen" + + "ter.v1.Finding.FindingClass\022<\n\tindicator" + + "\030\022 \001(\0132).google.cloud.securitycenter.v1." + + "Indicator\022D\n\rvulnerability\030\024 \001(\0132-.googl" + + "e.cloud.securitycenter.v1.Vulnerability\022" + + "9\n\020mute_update_time\030\025 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\022[\n\020external_systems\030\026" + + " \003(\0132<.google.cloud.securitycenter.v1.Fi" + + "nding.ExternalSystemsEntryB\003\340A\003\022A\n\014mitre" + + "_attack\030\031 \001(\0132+.google.cloud.securitycen" + + "ter.v1.MitreAttack\0226\n\006access\030\032 \001(\0132&.goo" + + "gle.cloud.securitycenter.v1.Access\022?\n\013co" + + "nnections\030\037 \003(\0132*.google.cloud.securityc" + + "enter.v1.Connection\022\026\n\016mute_initiator\030\034 " + + "\001(\t\022:\n\tprocesses\030\036 \003(\0132\'.google.cloud.se" + + "curitycenter.v1.Process\022L\n\010contacts\030! \003(" + + "\01325.google.cloud.securitycenter.v1.Findi" + + "ng.ContactsEntryB\003\340A\003\022?\n\013compliances\030\" \003" + + "(\0132*.google.cloud.securitycenter.v1.Comp" + + "liance\022 \n\023parent_display_name\030$ \001(\tB\003\340A\003" + + "\022\023\n\013description\030% \001(\t\022B\n\014exfiltration\030& " + + "\001(\0132,.google.cloud.securitycenter.v1.Exf" + + "iltration\022@\n\014iam_bindings\030\' \003(\0132*.google" + + ".cloud.securitycenter.v1.IamBinding\022\022\n\nn" + + "ext_steps\030( \001(\t\022\023\n\013module_name\030) \001(\t\022=\n\n" + + "containers\030* \003(\0132).google.cloud.security" + + "center.v1.Container\022>\n\nkubernetes\030+ \001(\0132" + + "*.google.cloud.securitycenter.v1.Kuberne" + + "tes\022:\n\010database\030, \001(\0132(.google.cloud.sec" + + "uritycenter.v1.Database\0223\n\005files\030. \003(\0132$" + + ".google.cloud.securitycenter.v1.File\022P\n\024" + + "cloud_dlp_inspection\0300 \001(\01322.google.clou" + + "d.securitycenter.v1.CloudDlpInspection\022S" + + "\n\026cloud_dlp_data_profile\0301 \001(\01323.google." + + "cloud.securitycenter.v1.CloudDlpDataProf" + + "ile\022E\n\016kernel_rootkit\0302 \001(\0132-.google.clo" + + "ud.securitycenter.v1.KernelRootkit\022?\n\014or" + + "g_policies\0303 \003(\0132).google.cloud.security" + + "center.v1.OrgPolicy\022@\n\013application\0305 \001(\013" + + "2+.google.cloud.securitycenter.v1.Applic" + + "ation\022X\n\030backup_disaster_recovery\0307 \001(\0132" + + "6.google.cloud.securitycenter.v1.BackupD" + + "isasterRecovery\022I\n\020security_posture\0308 \001(" + + "\0132/.google.cloud.securitycenter.v1.Secur" + + "ityPosture\022=\n\013log_entries\0309 \003(\0132(.google" + + ".cloud.securitycenter.v1.LogEntry\022D\n\016loa" + + "d_balancers\030: \003(\0132,.google.cloud.securit" + + "ycenter.v1.LoadBalancer\022?\n\013cloud_armor\030;" + + " \001(\0132*.google.cloud.securitycenter.v1.Cl" + + "oudArmor\022:\n\010notebook\030? \001(\0132(.google.clou" + + "d.securitycenter.v1.Notebook\022K\n\021toxic_co" + + "mbination\030@ \001(\01320.google.cloud.securityc" + + "enter.v1.ToxicCombination\022J\n\021group_membe" + + "rships\030A \003(\0132/.google.cloud.securitycent" + + "er.v1.GroupMembership\032O\n\025SourcePropertie" + + "sEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.goo" + + "gle.protobuf.Value:\0028\001\032f\n\024ExternalSystem" + + "sEntry\022\013\n\003key\030\001 \001(\t\022=\n\005value\030\002 \001(\0132..goo" + + "gle.cloud.securitycenter.v1.ExternalSyst" + + "em:\0028\001\032_\n\rContactsEntry\022\013\n\003key\030\001 \001(\t\022=\n\005" + + "value\030\002 \001(\0132..google.cloud.securitycente" + + "r.v1.ContactDetails:\0028\001\"8\n\005State\022\025\n\021STAT" + + "E_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010INACTIVE\020" + + "\002\"Q\n\010Severity\022\030\n\024SEVERITY_UNSPECIFIED\020\000\022" + + "\014\n\010CRITICAL\020\001\022\010\n\004HIGH\020\002\022\n\n\006MEDIUM\020\003\022\007\n\003L" + + "OW\020\004\"C\n\004Mute\022\024\n\020MUTE_UNSPECIFIED\020\000\022\t\n\005MU" + + "TED\020\001\022\013\n\007UNMUTED\020\002\022\r\n\tUNDEFINED\020\004\"\260\001\n\014Fi" + + "ndingClass\022\035\n\031FINDING_CLASS_UNSPECIFIED\020" + + "\000\022\n\n\006THREAT\020\001\022\021\n\rVULNERABILITY\020\002\022\024\n\020MISC" + + "ONFIGURATION\020\003\022\017\n\013OBSERVATION\020\004\022\r\n\tSCC_E" + + "RROR\020\005\022\025\n\021POSTURE_VIOLATION\020\006\022\025\n\021TOXIC_C" + + "OMBINATION\020\007:\333\001\352A\327\001\n%securitycenter.goog" + + "leapis.com/Finding\022@organizations/{organ" + + "ization}/sources/{source}/findings/{find" + + "ing}\0224folders/{folder}/sources/{source}/" + + "findings/{finding}\0226projects/{project}/s" + + "ources/{source}/findings/{finding}B\330\001\n\"c" + + "om.google.cloud.securitycenter.v1P\001ZJclo" + + "ud.google.com/go/securitycenter/apiv1/se" + + "curitycenterpb;securitycenterpb\252\002\036Google" + + ".Cloud.SecurityCenter.V1\312\002\036Google\\Cloud\\" + + "SecurityCenter\\V1\352\002!Google::Cloud::Secur" + + "ityCenter::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -207,6 +214,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.securitycenter.v1.ExfiltrationProto.getDescriptor(), com.google.cloud.securitycenter.v1.ExternalSystemProto.getDescriptor(), com.google.cloud.securitycenter.v1.FileProto.getDescriptor(), + com.google.cloud.securitycenter.v1.GroupMembershipProto.getDescriptor(), com.google.cloud.securitycenter.v1.IamBindingProto.getDescriptor(), com.google.cloud.securitycenter.v1.IndicatorProto.getDescriptor(), com.google.cloud.securitycenter.v1.KernelRootkitProto.getDescriptor(), @@ -219,6 +227,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.securitycenter.v1.ProcessProto.getDescriptor(), com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.getDescriptor(), com.google.cloud.securitycenter.v1.SecurityPostureProto.getDescriptor(), + com.google.cloud.securitycenter.v1.ToxicCombinationProto.getDescriptor(), com.google.cloud.securitycenter.v1.VulnerabilityProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), @@ -275,6 +284,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LoadBalancers", "CloudArmor", "Notebook", + "ToxicCombination", + "GroupMemberships", }); internal_static_google_cloud_securitycenter_v1_Finding_SourcePropertiesEntry_descriptor = internal_static_google_cloud_securitycenter_v1_Finding_descriptor.getNestedTypes().get(0); @@ -322,6 +333,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.securitycenter.v1.ExfiltrationProto.getDescriptor(); com.google.cloud.securitycenter.v1.ExternalSystemProto.getDescriptor(); com.google.cloud.securitycenter.v1.FileProto.getDescriptor(); + com.google.cloud.securitycenter.v1.GroupMembershipProto.getDescriptor(); com.google.cloud.securitycenter.v1.IamBindingProto.getDescriptor(); com.google.cloud.securitycenter.v1.IndicatorProto.getDescriptor(); com.google.cloud.securitycenter.v1.KernelRootkitProto.getDescriptor(); @@ -334,6 +346,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.securitycenter.v1.ProcessProto.getDescriptor(); com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.getDescriptor(); com.google.cloud.securitycenter.v1.SecurityPostureProto.getDescriptor(); + com.google.cloud.securitycenter.v1.ToxicCombinationProto.getDescriptor(); com.google.cloud.securitycenter.v1.VulnerabilityProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupMembership.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupMembership.java new file mode 100644 index 000000000000..420b4b9bf910 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupMembership.java @@ -0,0 +1,921 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/group_membership.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.securitycenter.v1; + +/** + * + * + *
          + * Contains details about groups of which this finding is a member. A group is a
          + * collection of findings that are related in some way.
          + * 
          + * + * Protobuf type {@code google.cloud.securitycenter.v1.GroupMembership} + */ +public final class GroupMembership extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.GroupMembership) + GroupMembershipOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupMembership.newBuilder() to construct. + private GroupMembership(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GroupMembership() { + groupType_ = 0; + groupId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GroupMembership(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.GroupMembershipProto + .internal_static_google_cloud_securitycenter_v1_GroupMembership_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.GroupMembershipProto + .internal_static_google_cloud_securitycenter_v1_GroupMembership_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.GroupMembership.class, + com.google.cloud.securitycenter.v1.GroupMembership.Builder.class); + } + + /** + * + * + *
          +   * Possible types of groups.
          +   * 
          + * + * Protobuf enum {@code google.cloud.securitycenter.v1.GroupMembership.GroupType} + */ + public enum GroupType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
          +     * Default value.
          +     * 
          + * + * GROUP_TYPE_UNSPECIFIED = 0; + */ + GROUP_TYPE_UNSPECIFIED(0), + /** + * + * + *
          +     * Group represents a toxic combination.
          +     * 
          + * + * GROUP_TYPE_TOXIC_COMBINATION = 1; + */ + GROUP_TYPE_TOXIC_COMBINATION(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
          +     * Default value.
          +     * 
          + * + * GROUP_TYPE_UNSPECIFIED = 0; + */ + public static final int GROUP_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
          +     * Group represents a toxic combination.
          +     * 
          + * + * GROUP_TYPE_TOXIC_COMBINATION = 1; + */ + public static final int GROUP_TYPE_TOXIC_COMBINATION_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static GroupType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static GroupType forNumber(int value) { + switch (value) { + case 0: + return GROUP_TYPE_UNSPECIFIED; + case 1: + return GROUP_TYPE_TOXIC_COMBINATION; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public GroupType findValueByNumber(int number) { + return GroupType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.GroupMembership.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final GroupType[] VALUES = values(); + + public static GroupType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private GroupType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.securitycenter.v1.GroupMembership.GroupType) + } + + public static final int GROUP_TYPE_FIELD_NUMBER = 1; + private int groupType_ = 0; + /** + * + * + *
          +   * Type of group.
          +   * 
          + * + * .google.cloud.securitycenter.v1.GroupMembership.GroupType group_type = 1; + * + * @return The enum numeric value on the wire for groupType. + */ + @java.lang.Override + public int getGroupTypeValue() { + return groupType_; + } + /** + * + * + *
          +   * Type of group.
          +   * 
          + * + * .google.cloud.securitycenter.v1.GroupMembership.GroupType group_type = 1; + * + * @return The groupType. + */ + @java.lang.Override + public com.google.cloud.securitycenter.v1.GroupMembership.GroupType getGroupType() { + com.google.cloud.securitycenter.v1.GroupMembership.GroupType result = + com.google.cloud.securitycenter.v1.GroupMembership.GroupType.forNumber(groupType_); + return result == null + ? com.google.cloud.securitycenter.v1.GroupMembership.GroupType.UNRECOGNIZED + : result; + } + + public static final int GROUP_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object groupId_ = ""; + /** + * + * + *
          +   * ID of the group.
          +   * 
          + * + * string group_id = 2; + * + * @return The groupId. + */ + @java.lang.Override + public java.lang.String getGroupId() { + java.lang.Object ref = groupId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + groupId_ = s; + return s; + } + } + /** + * + * + *
          +   * ID of the group.
          +   * 
          + * + * string group_id = 2; + * + * @return The bytes for groupId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGroupIdBytes() { + java.lang.Object ref = groupId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + groupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (groupType_ + != com.google.cloud.securitycenter.v1.GroupMembership.GroupType.GROUP_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, groupType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(groupId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, groupId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (groupType_ + != com.google.cloud.securitycenter.v1.GroupMembership.GroupType.GROUP_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, groupType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(groupId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, groupId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycenter.v1.GroupMembership)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.GroupMembership other = + (com.google.cloud.securitycenter.v1.GroupMembership) obj; + + if (groupType_ != other.groupType_) return false; + if (!getGroupId().equals(other.getGroupId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + GROUP_TYPE_FIELD_NUMBER; + hash = (53 * hash) + groupType_; + hash = (37 * hash) + GROUP_ID_FIELD_NUMBER; + hash = (53 * hash) + getGroupId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1.GroupMembership parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.GroupMembership parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.GroupMembership parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.GroupMembership parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.GroupMembership parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.GroupMembership parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.GroupMembership parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.GroupMembership parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.GroupMembership parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.GroupMembership parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.GroupMembership parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.GroupMembership parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.securitycenter.v1.GroupMembership prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * Contains details about groups of which this finding is a member. A group is a
          +   * collection of findings that are related in some way.
          +   * 
          + * + * Protobuf type {@code google.cloud.securitycenter.v1.GroupMembership} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.GroupMembership) + com.google.cloud.securitycenter.v1.GroupMembershipOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.GroupMembershipProto + .internal_static_google_cloud_securitycenter_v1_GroupMembership_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.GroupMembershipProto + .internal_static_google_cloud_securitycenter_v1_GroupMembership_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.GroupMembership.class, + com.google.cloud.securitycenter.v1.GroupMembership.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v1.GroupMembership.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + groupType_ = 0; + groupId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.GroupMembershipProto + .internal_static_google_cloud_securitycenter_v1_GroupMembership_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.GroupMembership getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.GroupMembership.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.GroupMembership build() { + com.google.cloud.securitycenter.v1.GroupMembership result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.GroupMembership buildPartial() { + com.google.cloud.securitycenter.v1.GroupMembership result = + new com.google.cloud.securitycenter.v1.GroupMembership(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.securitycenter.v1.GroupMembership result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.groupType_ = groupType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.groupId_ = groupId_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v1.GroupMembership) { + return mergeFrom((com.google.cloud.securitycenter.v1.GroupMembership) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v1.GroupMembership other) { + if (other == com.google.cloud.securitycenter.v1.GroupMembership.getDefaultInstance()) + return this; + if (other.groupType_ != 0) { + setGroupTypeValue(other.getGroupTypeValue()); + } + if (!other.getGroupId().isEmpty()) { + groupId_ = other.groupId_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + groupType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + groupId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int groupType_ = 0; + /** + * + * + *
          +     * Type of group.
          +     * 
          + * + * .google.cloud.securitycenter.v1.GroupMembership.GroupType group_type = 1; + * + * @return The enum numeric value on the wire for groupType. + */ + @java.lang.Override + public int getGroupTypeValue() { + return groupType_; + } + /** + * + * + *
          +     * Type of group.
          +     * 
          + * + * .google.cloud.securitycenter.v1.GroupMembership.GroupType group_type = 1; + * + * @param value The enum numeric value on the wire for groupType to set. + * @return This builder for chaining. + */ + public Builder setGroupTypeValue(int value) { + groupType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Type of group.
          +     * 
          + * + * .google.cloud.securitycenter.v1.GroupMembership.GroupType group_type = 1; + * + * @return The groupType. + */ + @java.lang.Override + public com.google.cloud.securitycenter.v1.GroupMembership.GroupType getGroupType() { + com.google.cloud.securitycenter.v1.GroupMembership.GroupType result = + com.google.cloud.securitycenter.v1.GroupMembership.GroupType.forNumber(groupType_); + return result == null + ? com.google.cloud.securitycenter.v1.GroupMembership.GroupType.UNRECOGNIZED + : result; + } + /** + * + * + *
          +     * Type of group.
          +     * 
          + * + * .google.cloud.securitycenter.v1.GroupMembership.GroupType group_type = 1; + * + * @param value The groupType to set. + * @return This builder for chaining. + */ + public Builder setGroupType( + com.google.cloud.securitycenter.v1.GroupMembership.GroupType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + groupType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
          +     * Type of group.
          +     * 
          + * + * .google.cloud.securitycenter.v1.GroupMembership.GroupType group_type = 1; + * + * @return This builder for chaining. + */ + public Builder clearGroupType() { + bitField0_ = (bitField0_ & ~0x00000001); + groupType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object groupId_ = ""; + /** + * + * + *
          +     * ID of the group.
          +     * 
          + * + * string group_id = 2; + * + * @return The groupId. + */ + public java.lang.String getGroupId() { + java.lang.Object ref = groupId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + groupId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * ID of the group.
          +     * 
          + * + * string group_id = 2; + * + * @return The bytes for groupId. + */ + public com.google.protobuf.ByteString getGroupIdBytes() { + java.lang.Object ref = groupId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + groupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * ID of the group.
          +     * 
          + * + * string group_id = 2; + * + * @param value The groupId to set. + * @return This builder for chaining. + */ + public Builder setGroupId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + groupId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * ID of the group.
          +     * 
          + * + * string group_id = 2; + * + * @return This builder for chaining. + */ + public Builder clearGroupId() { + groupId_ = getDefaultInstance().getGroupId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
          +     * ID of the group.
          +     * 
          + * + * string group_id = 2; + * + * @param value The bytes for groupId to set. + * @return This builder for chaining. + */ + public Builder setGroupIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + groupId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.GroupMembership) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.GroupMembership) + private static final com.google.cloud.securitycenter.v1.GroupMembership DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.GroupMembership(); + } + + public static com.google.cloud.securitycenter.v1.GroupMembership getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupMembership parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.GroupMembership getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupMembershipOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupMembershipOrBuilder.java new file mode 100644 index 000000000000..e08eade7dbe9 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupMembershipOrBuilder.java @@ -0,0 +1,76 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/group_membership.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.securitycenter.v1; + +public interface GroupMembershipOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.GroupMembership) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Type of group.
          +   * 
          + * + * .google.cloud.securitycenter.v1.GroupMembership.GroupType group_type = 1; + * + * @return The enum numeric value on the wire for groupType. + */ + int getGroupTypeValue(); + /** + * + * + *
          +   * Type of group.
          +   * 
          + * + * .google.cloud.securitycenter.v1.GroupMembership.GroupType group_type = 1; + * + * @return The groupType. + */ + com.google.cloud.securitycenter.v1.GroupMembership.GroupType getGroupType(); + + /** + * + * + *
          +   * ID of the group.
          +   * 
          + * + * string group_id = 2; + * + * @return The groupId. + */ + java.lang.String getGroupId(); + /** + * + * + *
          +   * ID of the group.
          +   * 
          + * + * string group_id = 2; + * + * @return The bytes for groupId. + */ + com.google.protobuf.ByteString getGroupIdBytes(); +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupMembershipProto.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupMembershipProto.java new file mode 100644 index 000000000000..37fc728c93b0 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupMembershipProto.java @@ -0,0 +1,73 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/group_membership.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.securitycenter.v1; + +public final class GroupMembershipProto { + private GroupMembershipProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_GroupMembership_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_GroupMembership_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n5google/cloud/securitycenter/v1/group_m" + + "embership.proto\022\036google.cloud.securityce" + + "nter.v1\"\275\001\n\017GroupMembership\022M\n\ngroup_typ" + + "e\030\001 \001(\01629.google.cloud.securitycenter.v1" + + ".GroupMembership.GroupType\022\020\n\010group_id\030\002" + + " \001(\t\"I\n\tGroupType\022\032\n\026GROUP_TYPE_UNSPECIF" + + "IED\020\000\022 \n\034GROUP_TYPE_TOXIC_COMBINATION\020\001B" + + "\356\001\n\"com.google.cloud.securitycenter.v1B\024" + + "GroupMembershipProtoP\001ZJcloud.google.com" + + "/go/securitycenter/apiv1/securitycenterp" + + "b;securitycenterpb\252\002\036Google.Cloud.Securi" + + "tyCenter.V1\312\002\036Google\\Cloud\\SecurityCente" + + "r\\V1\352\002!Google::Cloud::SecurityCenter::V1" + + "b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_cloud_securitycenter_v1_GroupMembership_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_GroupMembership_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_GroupMembership_descriptor, + new java.lang.String[] { + "GroupType", "GroupId", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ToxicCombination.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ToxicCombination.java new file mode 100644 index 000000000000..5dfcd43809c9 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ToxicCombination.java @@ -0,0 +1,850 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/toxic_combination.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.securitycenter.v1; + +/** + * + * + *
          + * Contains details about a group of security issues that, when the issues
          + * occur together, represent a greater risk than when the issues occur
          + * independently. A group of such issues is referred to as a toxic combination.
          + * 
          + * + * Protobuf type {@code google.cloud.securitycenter.v1.ToxicCombination} + */ +public final class ToxicCombination extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ToxicCombination) + ToxicCombinationOrBuilder { + private static final long serialVersionUID = 0L; + // Use ToxicCombination.newBuilder() to construct. + private ToxicCombination(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ToxicCombination() { + relatedFindings_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ToxicCombination(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.ToxicCombinationProto + .internal_static_google_cloud_securitycenter_v1_ToxicCombination_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.ToxicCombinationProto + .internal_static_google_cloud_securitycenter_v1_ToxicCombination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.ToxicCombination.class, + com.google.cloud.securitycenter.v1.ToxicCombination.Builder.class); + } + + public static final int ATTACK_EXPOSURE_SCORE_FIELD_NUMBER = 1; + private double attackExposureScore_ = 0D; + /** + * + * + *
          +   * The
          +   * [Attack exposure
          +   * score](https://cloud.google.com/security-command-center/docs/attack-exposure-learn#attack_exposure_scores)
          +   * of this toxic combination. The score is a measure of how much this toxic
          +   * combination exposes one or more high-value resources to potential attack.
          +   * 
          + * + * double attack_exposure_score = 1; + * + * @return The attackExposureScore. + */ + @java.lang.Override + public double getAttackExposureScore() { + return attackExposureScore_; + } + + public static final int RELATED_FINDINGS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList relatedFindings_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
          +   * List of resource names of findings associated with this toxic combination.
          +   * For example, `organizations/123/sources/456/findings/789`.
          +   * 
          + * + * repeated string related_findings = 2; + * + * @return A list containing the relatedFindings. + */ + public com.google.protobuf.ProtocolStringList getRelatedFindingsList() { + return relatedFindings_; + } + /** + * + * + *
          +   * List of resource names of findings associated with this toxic combination.
          +   * For example, `organizations/123/sources/456/findings/789`.
          +   * 
          + * + * repeated string related_findings = 2; + * + * @return The count of relatedFindings. + */ + public int getRelatedFindingsCount() { + return relatedFindings_.size(); + } + /** + * + * + *
          +   * List of resource names of findings associated with this toxic combination.
          +   * For example, `organizations/123/sources/456/findings/789`.
          +   * 
          + * + * repeated string related_findings = 2; + * + * @param index The index of the element to return. + * @return The relatedFindings at the given index. + */ + public java.lang.String getRelatedFindings(int index) { + return relatedFindings_.get(index); + } + /** + * + * + *
          +   * List of resource names of findings associated with this toxic combination.
          +   * For example, `organizations/123/sources/456/findings/789`.
          +   * 
          + * + * repeated string related_findings = 2; + * + * @param index The index of the value to return. + * @return The bytes of the relatedFindings at the given index. + */ + public com.google.protobuf.ByteString getRelatedFindingsBytes(int index) { + return relatedFindings_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (java.lang.Double.doubleToRawLongBits(attackExposureScore_) != 0) { + output.writeDouble(1, attackExposureScore_); + } + for (int i = 0; i < relatedFindings_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, relatedFindings_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (java.lang.Double.doubleToRawLongBits(attackExposureScore_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, attackExposureScore_); + } + { + int dataSize = 0; + for (int i = 0; i < relatedFindings_.size(); i++) { + dataSize += computeStringSizeNoTag(relatedFindings_.getRaw(i)); + } + size += dataSize; + size += 1 * getRelatedFindingsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycenter.v1.ToxicCombination)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.ToxicCombination other = + (com.google.cloud.securitycenter.v1.ToxicCombination) obj; + + if (java.lang.Double.doubleToLongBits(getAttackExposureScore()) + != java.lang.Double.doubleToLongBits(other.getAttackExposureScore())) return false; + if (!getRelatedFindingsList().equals(other.getRelatedFindingsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ATTACK_EXPOSURE_SCORE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getAttackExposureScore())); + if (getRelatedFindingsCount() > 0) { + hash = (37 * hash) + RELATED_FINDINGS_FIELD_NUMBER; + hash = (53 * hash) + getRelatedFindingsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1.ToxicCombination parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.ToxicCombination parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.ToxicCombination parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.ToxicCombination parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.ToxicCombination parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.ToxicCombination parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.ToxicCombination parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.ToxicCombination parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.ToxicCombination parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.ToxicCombination parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.ToxicCombination parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.ToxicCombination parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.securitycenter.v1.ToxicCombination prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * Contains details about a group of security issues that, when the issues
          +   * occur together, represent a greater risk than when the issues occur
          +   * independently. A group of such issues is referred to as a toxic combination.
          +   * 
          + * + * Protobuf type {@code google.cloud.securitycenter.v1.ToxicCombination} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ToxicCombination) + com.google.cloud.securitycenter.v1.ToxicCombinationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.ToxicCombinationProto + .internal_static_google_cloud_securitycenter_v1_ToxicCombination_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.ToxicCombinationProto + .internal_static_google_cloud_securitycenter_v1_ToxicCombination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.ToxicCombination.class, + com.google.cloud.securitycenter.v1.ToxicCombination.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v1.ToxicCombination.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + attackExposureScore_ = 0D; + relatedFindings_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.ToxicCombinationProto + .internal_static_google_cloud_securitycenter_v1_ToxicCombination_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.ToxicCombination getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.ToxicCombination.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.ToxicCombination build() { + com.google.cloud.securitycenter.v1.ToxicCombination result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.ToxicCombination buildPartial() { + com.google.cloud.securitycenter.v1.ToxicCombination result = + new com.google.cloud.securitycenter.v1.ToxicCombination(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.securitycenter.v1.ToxicCombination result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.attackExposureScore_ = attackExposureScore_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + relatedFindings_.makeImmutable(); + result.relatedFindings_ = relatedFindings_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v1.ToxicCombination) { + return mergeFrom((com.google.cloud.securitycenter.v1.ToxicCombination) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v1.ToxicCombination other) { + if (other == com.google.cloud.securitycenter.v1.ToxicCombination.getDefaultInstance()) + return this; + if (other.getAttackExposureScore() != 0D) { + setAttackExposureScore(other.getAttackExposureScore()); + } + if (!other.relatedFindings_.isEmpty()) { + if (relatedFindings_.isEmpty()) { + relatedFindings_ = other.relatedFindings_; + bitField0_ |= 0x00000002; + } else { + ensureRelatedFindingsIsMutable(); + relatedFindings_.addAll(other.relatedFindings_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 9: + { + attackExposureScore_ = input.readDouble(); + bitField0_ |= 0x00000001; + break; + } // case 9 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureRelatedFindingsIsMutable(); + relatedFindings_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private double attackExposureScore_; + /** + * + * + *
          +     * The
          +     * [Attack exposure
          +     * score](https://cloud.google.com/security-command-center/docs/attack-exposure-learn#attack_exposure_scores)
          +     * of this toxic combination. The score is a measure of how much this toxic
          +     * combination exposes one or more high-value resources to potential attack.
          +     * 
          + * + * double attack_exposure_score = 1; + * + * @return The attackExposureScore. + */ + @java.lang.Override + public double getAttackExposureScore() { + return attackExposureScore_; + } + /** + * + * + *
          +     * The
          +     * [Attack exposure
          +     * score](https://cloud.google.com/security-command-center/docs/attack-exposure-learn#attack_exposure_scores)
          +     * of this toxic combination. The score is a measure of how much this toxic
          +     * combination exposes one or more high-value resources to potential attack.
          +     * 
          + * + * double attack_exposure_score = 1; + * + * @param value The attackExposureScore to set. + * @return This builder for chaining. + */ + public Builder setAttackExposureScore(double value) { + + attackExposureScore_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * The
          +     * [Attack exposure
          +     * score](https://cloud.google.com/security-command-center/docs/attack-exposure-learn#attack_exposure_scores)
          +     * of this toxic combination. The score is a measure of how much this toxic
          +     * combination exposes one or more high-value resources to potential attack.
          +     * 
          + * + * double attack_exposure_score = 1; + * + * @return This builder for chaining. + */ + public Builder clearAttackExposureScore() { + bitField0_ = (bitField0_ & ~0x00000001); + attackExposureScore_ = 0D; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList relatedFindings_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureRelatedFindingsIsMutable() { + if (!relatedFindings_.isModifiable()) { + relatedFindings_ = new com.google.protobuf.LazyStringArrayList(relatedFindings_); + } + bitField0_ |= 0x00000002; + } + /** + * + * + *
          +     * List of resource names of findings associated with this toxic combination.
          +     * For example, `organizations/123/sources/456/findings/789`.
          +     * 
          + * + * repeated string related_findings = 2; + * + * @return A list containing the relatedFindings. + */ + public com.google.protobuf.ProtocolStringList getRelatedFindingsList() { + relatedFindings_.makeImmutable(); + return relatedFindings_; + } + /** + * + * + *
          +     * List of resource names of findings associated with this toxic combination.
          +     * For example, `organizations/123/sources/456/findings/789`.
          +     * 
          + * + * repeated string related_findings = 2; + * + * @return The count of relatedFindings. + */ + public int getRelatedFindingsCount() { + return relatedFindings_.size(); + } + /** + * + * + *
          +     * List of resource names of findings associated with this toxic combination.
          +     * For example, `organizations/123/sources/456/findings/789`.
          +     * 
          + * + * repeated string related_findings = 2; + * + * @param index The index of the element to return. + * @return The relatedFindings at the given index. + */ + public java.lang.String getRelatedFindings(int index) { + return relatedFindings_.get(index); + } + /** + * + * + *
          +     * List of resource names of findings associated with this toxic combination.
          +     * For example, `organizations/123/sources/456/findings/789`.
          +     * 
          + * + * repeated string related_findings = 2; + * + * @param index The index of the value to return. + * @return The bytes of the relatedFindings at the given index. + */ + public com.google.protobuf.ByteString getRelatedFindingsBytes(int index) { + return relatedFindings_.getByteString(index); + } + /** + * + * + *
          +     * List of resource names of findings associated with this toxic combination.
          +     * For example, `organizations/123/sources/456/findings/789`.
          +     * 
          + * + * repeated string related_findings = 2; + * + * @param index The index to set the value at. + * @param value The relatedFindings to set. + * @return This builder for chaining. + */ + public Builder setRelatedFindings(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRelatedFindingsIsMutable(); + relatedFindings_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * List of resource names of findings associated with this toxic combination.
          +     * For example, `organizations/123/sources/456/findings/789`.
          +     * 
          + * + * repeated string related_findings = 2; + * + * @param value The relatedFindings to add. + * @return This builder for chaining. + */ + public Builder addRelatedFindings(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRelatedFindingsIsMutable(); + relatedFindings_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * List of resource names of findings associated with this toxic combination.
          +     * For example, `organizations/123/sources/456/findings/789`.
          +     * 
          + * + * repeated string related_findings = 2; + * + * @param values The relatedFindings to add. + * @return This builder for chaining. + */ + public Builder addAllRelatedFindings(java.lang.Iterable values) { + ensureRelatedFindingsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, relatedFindings_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * List of resource names of findings associated with this toxic combination.
          +     * For example, `organizations/123/sources/456/findings/789`.
          +     * 
          + * + * repeated string related_findings = 2; + * + * @return This builder for chaining. + */ + public Builder clearRelatedFindings() { + relatedFindings_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + /** + * + * + *
          +     * List of resource names of findings associated with this toxic combination.
          +     * For example, `organizations/123/sources/456/findings/789`.
          +     * 
          + * + * repeated string related_findings = 2; + * + * @param value The bytes of the relatedFindings to add. + * @return This builder for chaining. + */ + public Builder addRelatedFindingsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRelatedFindingsIsMutable(); + relatedFindings_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.ToxicCombination) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ToxicCombination) + private static final com.google.cloud.securitycenter.v1.ToxicCombination DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.ToxicCombination(); + } + + public static com.google.cloud.securitycenter.v1.ToxicCombination getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ToxicCombination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.ToxicCombination getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ToxicCombinationOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ToxicCombinationOrBuilder.java new file mode 100644 index 000000000000..69ed5d1fee51 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ToxicCombinationOrBuilder.java @@ -0,0 +1,98 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/toxic_combination.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.securitycenter.v1; + +public interface ToxicCombinationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.ToxicCombination) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * The
          +   * [Attack exposure
          +   * score](https://cloud.google.com/security-command-center/docs/attack-exposure-learn#attack_exposure_scores)
          +   * of this toxic combination. The score is a measure of how much this toxic
          +   * combination exposes one or more high-value resources to potential attack.
          +   * 
          + * + * double attack_exposure_score = 1; + * + * @return The attackExposureScore. + */ + double getAttackExposureScore(); + + /** + * + * + *
          +   * List of resource names of findings associated with this toxic combination.
          +   * For example, `organizations/123/sources/456/findings/789`.
          +   * 
          + * + * repeated string related_findings = 2; + * + * @return A list containing the relatedFindings. + */ + java.util.List getRelatedFindingsList(); + /** + * + * + *
          +   * List of resource names of findings associated with this toxic combination.
          +   * For example, `organizations/123/sources/456/findings/789`.
          +   * 
          + * + * repeated string related_findings = 2; + * + * @return The count of relatedFindings. + */ + int getRelatedFindingsCount(); + /** + * + * + *
          +   * List of resource names of findings associated with this toxic combination.
          +   * For example, `organizations/123/sources/456/findings/789`.
          +   * 
          + * + * repeated string related_findings = 2; + * + * @param index The index of the element to return. + * @return The relatedFindings at the given index. + */ + java.lang.String getRelatedFindings(int index); + /** + * + * + *
          +   * List of resource names of findings associated with this toxic combination.
          +   * For example, `organizations/123/sources/456/findings/789`.
          +   * 
          + * + * repeated string related_findings = 2; + * + * @param index The index of the value to return. + * @return The bytes of the relatedFindings at the given index. + */ + com.google.protobuf.ByteString getRelatedFindingsBytes(int index); +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ToxicCombinationProto.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ToxicCombinationProto.java new file mode 100644 index 000000000000..e7eefdcfe6a3 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ToxicCombinationProto.java @@ -0,0 +1,70 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v1/toxic_combination.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.securitycenter.v1; + +public final class ToxicCombinationProto { + private ToxicCombinationProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_ToxicCombination_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_ToxicCombination_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n6google/cloud/securitycenter/v1/toxic_c" + + "ombination.proto\022\036google.cloud.securityc" + + "enter.v1\"K\n\020ToxicCombination\022\035\n\025attack_e" + + "xposure_score\030\001 \001(\001\022\030\n\020related_findings\030" + + "\002 \003(\tB\357\001\n\"com.google.cloud.securitycente" + + "r.v1B\025ToxicCombinationProtoP\001ZJcloud.goo" + + "gle.com/go/securitycenter/apiv1/security" + + "centerpb;securitycenterpb\252\002\036Google.Cloud" + + ".SecurityCenter.V1\312\002\036Google\\Cloud\\Securi" + + "tyCenter\\V1\352\002!Google::Cloud::SecurityCen" + + "ter::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_cloud_securitycenter_v1_ToxicCombination_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_ToxicCombination_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_ToxicCombination_descriptor, + new java.lang.String[] { + "AttackExposureScore", "RelatedFindings", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/finding.proto b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/finding.proto index 1ed2d4bdf3c8..8cf1857bc7b5 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/finding.proto +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/finding.proto @@ -32,6 +32,7 @@ import "google/cloud/securitycenter/v1/database.proto"; import "google/cloud/securitycenter/v1/exfiltration.proto"; import "google/cloud/securitycenter/v1/external_system.proto"; import "google/cloud/securitycenter/v1/file.proto"; +import "google/cloud/securitycenter/v1/group_membership.proto"; import "google/cloud/securitycenter/v1/iam_binding.proto"; import "google/cloud/securitycenter/v1/indicator.proto"; import "google/cloud/securitycenter/v1/kernel_rootkit.proto"; @@ -44,6 +45,7 @@ import "google/cloud/securitycenter/v1/org_policy.proto"; import "google/cloud/securitycenter/v1/process.proto"; import "google/cloud/securitycenter/v1/security_marks.proto"; import "google/cloud/securitycenter/v1/security_posture.proto"; +import "google/cloud/securitycenter/v1/toxic_combination.proto"; import "google/cloud/securitycenter/v1/vulnerability.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; @@ -183,6 +185,12 @@ message Finding { // Describes a potential security risk due to a change in the security // posture. POSTURE_VIOLATION = 6; + + // Describes a group of security issues that, when the issues + // occur together, represent a greater risk than when the issues occur + // independently. A group of such issues is referred to as a toxic + // combination. + TOXIC_COMBINATION = 7; } // The [relative resource @@ -395,4 +403,16 @@ message Finding { // Notebook associated with the finding. Notebook notebook = 63; + + // Contains details about a group of security issues that, when the issues + // occur together, represent a greater risk than when the issues occur + // independently. A group of such issues is referred to as a toxic + // combination. + // This field cannot be updated. Its value is ignored in all update requests. + ToxicCombination toxic_combination = 64; + + // Contains details about groups of which this finding is a member. A group is + // a collection of findings that are related in some way. + // This field cannot be updated. Its value is ignored in all update requests. + repeated GroupMembership group_memberships = 65; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/group_membership.proto b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/group_membership.proto new file mode 100644 index 000000000000..da364378a572 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/group_membership.proto @@ -0,0 +1,44 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.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. + +syntax = "proto3"; + +package google.cloud.securitycenter.v1; + +option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; +option go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb"; +option java_multiple_files = true; +option java_outer_classname = "GroupMembershipProto"; +option java_package = "com.google.cloud.securitycenter.v1"; +option php_namespace = "Google\\Cloud\\SecurityCenter\\V1"; +option ruby_package = "Google::Cloud::SecurityCenter::V1"; + +// Contains details about groups of which this finding is a member. A group is a +// collection of findings that are related in some way. +message GroupMembership { + // Possible types of groups. + enum GroupType { + // Default value. + GROUP_TYPE_UNSPECIFIED = 0; + + // Group represents a toxic combination. + GROUP_TYPE_TOXIC_COMBINATION = 1; + } + + // Type of group. + GroupType group_type = 1; + + // ID of the group. + string group_id = 2; +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/toxic_combination.proto b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/toxic_combination.proto new file mode 100644 index 000000000000..46e765ab1c09 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/toxic_combination.proto @@ -0,0 +1,41 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.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. + +syntax = "proto3"; + +package google.cloud.securitycenter.v1; + +option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; +option go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb"; +option java_multiple_files = true; +option java_outer_classname = "ToxicCombinationProto"; +option java_package = "com.google.cloud.securitycenter.v1"; +option php_namespace = "Google\\Cloud\\SecurityCenter\\V1"; +option ruby_package = "Google::Cloud::SecurityCenter::V1"; + +// Contains details about a group of security issues that, when the issues +// occur together, represent a greater risk than when the issues occur +// independently. A group of such issues is referred to as a toxic combination. +message ToxicCombination { + // The + // [Attack exposure + // score](https://cloud.google.com/security-command-center/docs/attack-exposure-learn#attack_exposure_scores) + // of this toxic combination. The score is a measure of how much this toxic + // combination exposes one or more high-value resources to potential attack. + double attack_exposure_score = 1; + + // List of resource names of findings associated with this toxic combination. + // For example, `organizations/123/sources/456/findings/789`. + repeated string related_findings = 2; +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/Finding.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/Finding.java index 4efd66790987..e6259e56fb5c 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/Finding.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/Finding.java @@ -69,6 +69,7 @@ private Finding() { orgPolicies_ = java.util.Collections.emptyList(); logEntries_ = java.util.Collections.emptyList(); loadBalancers_ = java.util.Collections.emptyList(); + groupMemberships_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -814,6 +815,17 @@ public enum FindingClass implements com.google.protobuf.ProtocolMessageEnum { * POSTURE_VIOLATION = 6; */ POSTURE_VIOLATION(6), + /** + * + * + *
          +     * Describes a combination of security issues that represent a more severe
          +     * security problem when taken together.
          +     * 
          + * + * TOXIC_COMBINATION = 7; + */ + TOXIC_COMBINATION(7), UNRECOGNIZED(-1), ; @@ -890,6 +902,17 @@ public enum FindingClass implements com.google.protobuf.ProtocolMessageEnum { * POSTURE_VIOLATION = 6; */ public static final int POSTURE_VIOLATION_VALUE = 6; + /** + * + * + *
          +     * Describes a combination of security issues that represent a more severe
          +     * security problem when taken together.
          +     * 
          + * + * TOXIC_COMBINATION = 7; + */ + public static final int TOXIC_COMBINATION_VALUE = 7; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -929,6 +952,8 @@ public static FindingClass forNumber(int value) { return SCC_ERROR; case 6: return POSTURE_VIOLATION; + case 7: + return TOXIC_COMBINATION; default: return null; } @@ -3858,6 +3883,152 @@ public com.google.cloud.securitycenter.v2.LoadBalancerOrBuilder getLoadBalancers return loadBalancers_.get(index); } + public static final int TOXIC_COMBINATION_FIELD_NUMBER = 56; + private com.google.cloud.securitycenter.v2.ToxicCombination toxicCombination_; + /** + * + * + *
          +   * Contains details about a group of security issues that, when the issues
          +   * occur together, represent a greater risk than when the issues occur
          +   * independently. A group of such issues is referred to as a toxic
          +   * combination.
          +   * This field cannot be updated. Its value is ignored in all update requests.
          +   * 
          + * + * .google.cloud.securitycenter.v2.ToxicCombination toxic_combination = 56; + * + * @return Whether the toxicCombination field is set. + */ + @java.lang.Override + public boolean hasToxicCombination() { + return ((bitField0_ & 0x00040000) != 0); + } + /** + * + * + *
          +   * Contains details about a group of security issues that, when the issues
          +   * occur together, represent a greater risk than when the issues occur
          +   * independently. A group of such issues is referred to as a toxic
          +   * combination.
          +   * This field cannot be updated. Its value is ignored in all update requests.
          +   * 
          + * + * .google.cloud.securitycenter.v2.ToxicCombination toxic_combination = 56; + * + * @return The toxicCombination. + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.ToxicCombination getToxicCombination() { + return toxicCombination_ == null + ? com.google.cloud.securitycenter.v2.ToxicCombination.getDefaultInstance() + : toxicCombination_; + } + /** + * + * + *
          +   * Contains details about a group of security issues that, when the issues
          +   * occur together, represent a greater risk than when the issues occur
          +   * independently. A group of such issues is referred to as a toxic
          +   * combination.
          +   * This field cannot be updated. Its value is ignored in all update requests.
          +   * 
          + * + * .google.cloud.securitycenter.v2.ToxicCombination toxic_combination = 56; + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.ToxicCombinationOrBuilder + getToxicCombinationOrBuilder() { + return toxicCombination_ == null + ? com.google.cloud.securitycenter.v2.ToxicCombination.getDefaultInstance() + : toxicCombination_; + } + + public static final int GROUP_MEMBERSHIPS_FIELD_NUMBER = 57; + + @SuppressWarnings("serial") + private java.util.List groupMemberships_; + /** + * + * + *
          +   * Contains details about groups of which this finding is a member. A group is
          +   * a collection of findings that are related in some way.
          +   * This field cannot be updated. Its value is ignored in all update requests.
          +   * 
          + * + * repeated .google.cloud.securitycenter.v2.GroupMembership group_memberships = 57; + */ + @java.lang.Override + public java.util.List + getGroupMembershipsList() { + return groupMemberships_; + } + /** + * + * + *
          +   * Contains details about groups of which this finding is a member. A group is
          +   * a collection of findings that are related in some way.
          +   * This field cannot be updated. Its value is ignored in all update requests.
          +   * 
          + * + * repeated .google.cloud.securitycenter.v2.GroupMembership group_memberships = 57; + */ + @java.lang.Override + public java.util.List + getGroupMembershipsOrBuilderList() { + return groupMemberships_; + } + /** + * + * + *
          +   * Contains details about groups of which this finding is a member. A group is
          +   * a collection of findings that are related in some way.
          +   * This field cannot be updated. Its value is ignored in all update requests.
          +   * 
          + * + * repeated .google.cloud.securitycenter.v2.GroupMembership group_memberships = 57; + */ + @java.lang.Override + public int getGroupMembershipsCount() { + return groupMemberships_.size(); + } + /** + * + * + *
          +   * Contains details about groups of which this finding is a member. A group is
          +   * a collection of findings that are related in some way.
          +   * This field cannot be updated. Its value is ignored in all update requests.
          +   * 
          + * + * repeated .google.cloud.securitycenter.v2.GroupMembership group_memberships = 57; + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.GroupMembership getGroupMemberships(int index) { + return groupMemberships_.get(index); + } + /** + * + * + *
          +   * Contains details about groups of which this finding is a member. A group is
          +   * a collection of findings that are related in some way.
          +   * This field cannot be updated. Its value is ignored in all update requests.
          +   * 
          + * + * repeated .google.cloud.securitycenter.v2.GroupMembership group_memberships = 57; + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.GroupMembershipOrBuilder getGroupMembershipsOrBuilder( + int index) { + return groupMemberships_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -4007,6 +4178,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < loadBalancers_.size(); i++) { output.writeMessage(50, loadBalancers_.get(i)); } + if (((bitField0_ & 0x00040000) != 0)) { + output.writeMessage(56, getToxicCombination()); + } + for (int i = 0; i < groupMemberships_.size(); i++) { + output.writeMessage(57, groupMemberships_.get(i)); + } getUnknownFields().writeTo(output); } @@ -4181,6 +4358,13 @@ public int getSerializedSize() { for (int i = 0; i < loadBalancers_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(50, loadBalancers_.get(i)); } + if (((bitField0_ & 0x00040000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(56, getToxicCombination()); + } + for (int i = 0; i < groupMemberships_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(57, groupMemberships_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -4296,6 +4480,11 @@ public boolean equals(final java.lang.Object obj) { } if (!getLogEntriesList().equals(other.getLogEntriesList())) return false; if (!getLoadBalancersList().equals(other.getLoadBalancersList())) return false; + if (hasToxicCombination() != other.hasToxicCombination()) return false; + if (hasToxicCombination()) { + if (!getToxicCombination().equals(other.getToxicCombination())) return false; + } + if (!getGroupMembershipsList().equals(other.getGroupMembershipsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -4457,6 +4646,14 @@ public int hashCode() { hash = (37 * hash) + LOAD_BALANCERS_FIELD_NUMBER; hash = (53 * hash) + getLoadBalancersList().hashCode(); } + if (hasToxicCombination()) { + hash = (37 * hash) + TOXIC_COMBINATION_FIELD_NUMBER; + hash = (53 * hash) + getToxicCombination().hashCode(); + } + if (getGroupMembershipsCount() > 0) { + hash = (37 * hash) + GROUP_MEMBERSHIPS_FIELD_NUMBER; + hash = (53 * hash) + getGroupMembershipsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -4660,6 +4857,8 @@ private void maybeForceBuilderInitialization() { getSecurityPostureFieldBuilder(); getLogEntriesFieldBuilder(); getLoadBalancersFieldBuilder(); + getToxicCombinationFieldBuilder(); + getGroupMembershipsFieldBuilder(); } } @@ -4839,6 +5038,18 @@ public Builder clear() { loadBalancersBuilder_.clear(); } bitField1_ = (bitField1_ & ~0x00001000); + toxicCombination_ = null; + if (toxicCombinationBuilder_ != null) { + toxicCombinationBuilder_.dispose(); + toxicCombinationBuilder_ = null; + } + if (groupMembershipsBuilder_ == null) { + groupMemberships_ = java.util.Collections.emptyList(); + } else { + groupMemberships_ = null; + groupMembershipsBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00004000); return this; } @@ -4959,6 +5170,15 @@ private void buildPartialRepeatedFields(com.google.cloud.securitycenter.v2.Findi } else { result.loadBalancers_ = loadBalancersBuilder_.build(); } + if (groupMembershipsBuilder_ == null) { + if (((bitField1_ & 0x00004000) != 0)) { + groupMemberships_ = java.util.Collections.unmodifiableList(groupMemberships_); + bitField1_ = (bitField1_ & ~0x00004000); + } + result.groupMemberships_ = groupMemberships_; + } else { + result.groupMemberships_ = groupMembershipsBuilder_.build(); + } } private void buildPartial0(com.google.cloud.securitycenter.v2.Finding result) { @@ -5116,6 +5336,11 @@ private void buildPartial1(com.google.cloud.securitycenter.v2.Finding result) { securityPostureBuilder_ == null ? securityPosture_ : securityPostureBuilder_.build(); to_bitField0_ |= 0x00020000; } + if (((from_bitField1_ & 0x00002000) != 0)) { + result.toxicCombination_ = + toxicCombinationBuilder_ == null ? toxicCombination_ : toxicCombinationBuilder_.build(); + to_bitField0_ |= 0x00040000; + } result.bitField0_ |= to_bitField0_; } @@ -5534,6 +5759,36 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v2.Finding other) { } } } + if (other.hasToxicCombination()) { + mergeToxicCombination(other.getToxicCombination()); + } + if (groupMembershipsBuilder_ == null) { + if (!other.groupMemberships_.isEmpty()) { + if (groupMemberships_.isEmpty()) { + groupMemberships_ = other.groupMemberships_; + bitField1_ = (bitField1_ & ~0x00004000); + } else { + ensureGroupMembershipsIsMutable(); + groupMemberships_.addAll(other.groupMemberships_); + } + onChanged(); + } + } else { + if (!other.groupMemberships_.isEmpty()) { + if (groupMembershipsBuilder_.isEmpty()) { + groupMembershipsBuilder_.dispose(); + groupMembershipsBuilder_ = null; + groupMemberships_ = other.groupMemberships_; + bitField1_ = (bitField1_ & ~0x00004000); + groupMembershipsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getGroupMembershipsFieldBuilder() + : null; + } else { + groupMembershipsBuilder_.addAllMessages(other.groupMemberships_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -5920,6 +6175,27 @@ public Builder mergeFrom( } break; } // case 402 + case 450: + { + input.readMessage( + getToxicCombinationFieldBuilder().getBuilder(), extensionRegistry); + bitField1_ |= 0x00002000; + break; + } // case 450 + case 458: + { + com.google.cloud.securitycenter.v2.GroupMembership m = + input.readMessage( + com.google.cloud.securitycenter.v2.GroupMembership.parser(), + extensionRegistry); + if (groupMembershipsBuilder_ == null) { + ensureGroupMembershipsIsMutable(); + groupMemberships_.add(m); + } else { + groupMembershipsBuilder_.addMessage(m); + } + break; + } // case 458 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -15449,6 +15725,630 @@ public com.google.cloud.securitycenter.v2.LoadBalancer.Builder addLoadBalancersB return loadBalancersBuilder_; } + private com.google.cloud.securitycenter.v2.ToxicCombination toxicCombination_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v2.ToxicCombination, + com.google.cloud.securitycenter.v2.ToxicCombination.Builder, + com.google.cloud.securitycenter.v2.ToxicCombinationOrBuilder> + toxicCombinationBuilder_; + /** + * + * + *
          +     * Contains details about a group of security issues that, when the issues
          +     * occur together, represent a greater risk than when the issues occur
          +     * independently. A group of such issues is referred to as a toxic
          +     * combination.
          +     * This field cannot be updated. Its value is ignored in all update requests.
          +     * 
          + * + * .google.cloud.securitycenter.v2.ToxicCombination toxic_combination = 56; + * + * @return Whether the toxicCombination field is set. + */ + public boolean hasToxicCombination() { + return ((bitField1_ & 0x00002000) != 0); + } + /** + * + * + *
          +     * Contains details about a group of security issues that, when the issues
          +     * occur together, represent a greater risk than when the issues occur
          +     * independently. A group of such issues is referred to as a toxic
          +     * combination.
          +     * This field cannot be updated. Its value is ignored in all update requests.
          +     * 
          + * + * .google.cloud.securitycenter.v2.ToxicCombination toxic_combination = 56; + * + * @return The toxicCombination. + */ + public com.google.cloud.securitycenter.v2.ToxicCombination getToxicCombination() { + if (toxicCombinationBuilder_ == null) { + return toxicCombination_ == null + ? com.google.cloud.securitycenter.v2.ToxicCombination.getDefaultInstance() + : toxicCombination_; + } else { + return toxicCombinationBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Contains details about a group of security issues that, when the issues
          +     * occur together, represent a greater risk than when the issues occur
          +     * independently. A group of such issues is referred to as a toxic
          +     * combination.
          +     * This field cannot be updated. Its value is ignored in all update requests.
          +     * 
          + * + * .google.cloud.securitycenter.v2.ToxicCombination toxic_combination = 56; + */ + public Builder setToxicCombination(com.google.cloud.securitycenter.v2.ToxicCombination value) { + if (toxicCombinationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toxicCombination_ = value; + } else { + toxicCombinationBuilder_.setMessage(value); + } + bitField1_ |= 0x00002000; + onChanged(); + return this; + } + /** + * + * + *
          +     * Contains details about a group of security issues that, when the issues
          +     * occur together, represent a greater risk than when the issues occur
          +     * independently. A group of such issues is referred to as a toxic
          +     * combination.
          +     * This field cannot be updated. Its value is ignored in all update requests.
          +     * 
          + * + * .google.cloud.securitycenter.v2.ToxicCombination toxic_combination = 56; + */ + public Builder setToxicCombination( + com.google.cloud.securitycenter.v2.ToxicCombination.Builder builderForValue) { + if (toxicCombinationBuilder_ == null) { + toxicCombination_ = builderForValue.build(); + } else { + toxicCombinationBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00002000; + onChanged(); + return this; + } + /** + * + * + *
          +     * Contains details about a group of security issues that, when the issues
          +     * occur together, represent a greater risk than when the issues occur
          +     * independently. A group of such issues is referred to as a toxic
          +     * combination.
          +     * This field cannot be updated. Its value is ignored in all update requests.
          +     * 
          + * + * .google.cloud.securitycenter.v2.ToxicCombination toxic_combination = 56; + */ + public Builder mergeToxicCombination( + com.google.cloud.securitycenter.v2.ToxicCombination value) { + if (toxicCombinationBuilder_ == null) { + if (((bitField1_ & 0x00002000) != 0) + && toxicCombination_ != null + && toxicCombination_ + != com.google.cloud.securitycenter.v2.ToxicCombination.getDefaultInstance()) { + getToxicCombinationBuilder().mergeFrom(value); + } else { + toxicCombination_ = value; + } + } else { + toxicCombinationBuilder_.mergeFrom(value); + } + if (toxicCombination_ != null) { + bitField1_ |= 0x00002000; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Contains details about a group of security issues that, when the issues
          +     * occur together, represent a greater risk than when the issues occur
          +     * independently. A group of such issues is referred to as a toxic
          +     * combination.
          +     * This field cannot be updated. Its value is ignored in all update requests.
          +     * 
          + * + * .google.cloud.securitycenter.v2.ToxicCombination toxic_combination = 56; + */ + public Builder clearToxicCombination() { + bitField1_ = (bitField1_ & ~0x00002000); + toxicCombination_ = null; + if (toxicCombinationBuilder_ != null) { + toxicCombinationBuilder_.dispose(); + toxicCombinationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Contains details about a group of security issues that, when the issues
          +     * occur together, represent a greater risk than when the issues occur
          +     * independently. A group of such issues is referred to as a toxic
          +     * combination.
          +     * This field cannot be updated. Its value is ignored in all update requests.
          +     * 
          + * + * .google.cloud.securitycenter.v2.ToxicCombination toxic_combination = 56; + */ + public com.google.cloud.securitycenter.v2.ToxicCombination.Builder + getToxicCombinationBuilder() { + bitField1_ |= 0x00002000; + onChanged(); + return getToxicCombinationFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Contains details about a group of security issues that, when the issues
          +     * occur together, represent a greater risk than when the issues occur
          +     * independently. A group of such issues is referred to as a toxic
          +     * combination.
          +     * This field cannot be updated. Its value is ignored in all update requests.
          +     * 
          + * + * .google.cloud.securitycenter.v2.ToxicCombination toxic_combination = 56; + */ + public com.google.cloud.securitycenter.v2.ToxicCombinationOrBuilder + getToxicCombinationOrBuilder() { + if (toxicCombinationBuilder_ != null) { + return toxicCombinationBuilder_.getMessageOrBuilder(); + } else { + return toxicCombination_ == null + ? com.google.cloud.securitycenter.v2.ToxicCombination.getDefaultInstance() + : toxicCombination_; + } + } + /** + * + * + *
          +     * Contains details about a group of security issues that, when the issues
          +     * occur together, represent a greater risk than when the issues occur
          +     * independently. A group of such issues is referred to as a toxic
          +     * combination.
          +     * This field cannot be updated. Its value is ignored in all update requests.
          +     * 
          + * + * .google.cloud.securitycenter.v2.ToxicCombination toxic_combination = 56; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v2.ToxicCombination, + com.google.cloud.securitycenter.v2.ToxicCombination.Builder, + com.google.cloud.securitycenter.v2.ToxicCombinationOrBuilder> + getToxicCombinationFieldBuilder() { + if (toxicCombinationBuilder_ == null) { + toxicCombinationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v2.ToxicCombination, + com.google.cloud.securitycenter.v2.ToxicCombination.Builder, + com.google.cloud.securitycenter.v2.ToxicCombinationOrBuilder>( + getToxicCombination(), getParentForChildren(), isClean()); + toxicCombination_ = null; + } + return toxicCombinationBuilder_; + } + + private java.util.List groupMemberships_ = + java.util.Collections.emptyList(); + + private void ensureGroupMembershipsIsMutable() { + if (!((bitField1_ & 0x00004000) != 0)) { + groupMemberships_ = + new java.util.ArrayList( + groupMemberships_); + bitField1_ |= 0x00004000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v2.GroupMembership, + com.google.cloud.securitycenter.v2.GroupMembership.Builder, + com.google.cloud.securitycenter.v2.GroupMembershipOrBuilder> + groupMembershipsBuilder_; + + /** + * + * + *
          +     * Contains details about groups of which this finding is a member. A group is
          +     * a collection of findings that are related in some way.
          +     * This field cannot be updated. Its value is ignored in all update requests.
          +     * 
          + * + * repeated .google.cloud.securitycenter.v2.GroupMembership group_memberships = 57; + */ + public java.util.List + getGroupMembershipsList() { + if (groupMembershipsBuilder_ == null) { + return java.util.Collections.unmodifiableList(groupMemberships_); + } else { + return groupMembershipsBuilder_.getMessageList(); + } + } + /** + * + * + *
          +     * Contains details about groups of which this finding is a member. A group is
          +     * a collection of findings that are related in some way.
          +     * This field cannot be updated. Its value is ignored in all update requests.
          +     * 
          + * + * repeated .google.cloud.securitycenter.v2.GroupMembership group_memberships = 57; + */ + public int getGroupMembershipsCount() { + if (groupMembershipsBuilder_ == null) { + return groupMemberships_.size(); + } else { + return groupMembershipsBuilder_.getCount(); + } + } + /** + * + * + *
          +     * Contains details about groups of which this finding is a member. A group is
          +     * a collection of findings that are related in some way.
          +     * This field cannot be updated. Its value is ignored in all update requests.
          +     * 
          + * + * repeated .google.cloud.securitycenter.v2.GroupMembership group_memberships = 57; + */ + public com.google.cloud.securitycenter.v2.GroupMembership getGroupMemberships(int index) { + if (groupMembershipsBuilder_ == null) { + return groupMemberships_.get(index); + } else { + return groupMembershipsBuilder_.getMessage(index); + } + } + /** + * + * + *
          +     * Contains details about groups of which this finding is a member. A group is
          +     * a collection of findings that are related in some way.
          +     * This field cannot be updated. Its value is ignored in all update requests.
          +     * 
          + * + * repeated .google.cloud.securitycenter.v2.GroupMembership group_memberships = 57; + */ + public Builder setGroupMemberships( + int index, com.google.cloud.securitycenter.v2.GroupMembership value) { + if (groupMembershipsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroupMembershipsIsMutable(); + groupMemberships_.set(index, value); + onChanged(); + } else { + groupMembershipsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
          +     * Contains details about groups of which this finding is a member. A group is
          +     * a collection of findings that are related in some way.
          +     * This field cannot be updated. Its value is ignored in all update requests.
          +     * 
          + * + * repeated .google.cloud.securitycenter.v2.GroupMembership group_memberships = 57; + */ + public Builder setGroupMemberships( + int index, com.google.cloud.securitycenter.v2.GroupMembership.Builder builderForValue) { + if (groupMembershipsBuilder_ == null) { + ensureGroupMembershipsIsMutable(); + groupMemberships_.set(index, builderForValue.build()); + onChanged(); + } else { + groupMembershipsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * Contains details about groups of which this finding is a member. A group is
          +     * a collection of findings that are related in some way.
          +     * This field cannot be updated. Its value is ignored in all update requests.
          +     * 
          + * + * repeated .google.cloud.securitycenter.v2.GroupMembership group_memberships = 57; + */ + public Builder addGroupMemberships(com.google.cloud.securitycenter.v2.GroupMembership value) { + if (groupMembershipsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroupMembershipsIsMutable(); + groupMemberships_.add(value); + onChanged(); + } else { + groupMembershipsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
          +     * Contains details about groups of which this finding is a member. A group is
          +     * a collection of findings that are related in some way.
          +     * This field cannot be updated. Its value is ignored in all update requests.
          +     * 
          + * + * repeated .google.cloud.securitycenter.v2.GroupMembership group_memberships = 57; + */ + public Builder addGroupMemberships( + int index, com.google.cloud.securitycenter.v2.GroupMembership value) { + if (groupMembershipsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroupMembershipsIsMutable(); + groupMemberships_.add(index, value); + onChanged(); + } else { + groupMembershipsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
          +     * Contains details about groups of which this finding is a member. A group is
          +     * a collection of findings that are related in some way.
          +     * This field cannot be updated. Its value is ignored in all update requests.
          +     * 
          + * + * repeated .google.cloud.securitycenter.v2.GroupMembership group_memberships = 57; + */ + public Builder addGroupMemberships( + com.google.cloud.securitycenter.v2.GroupMembership.Builder builderForValue) { + if (groupMembershipsBuilder_ == null) { + ensureGroupMembershipsIsMutable(); + groupMemberships_.add(builderForValue.build()); + onChanged(); + } else { + groupMembershipsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * Contains details about groups of which this finding is a member. A group is
          +     * a collection of findings that are related in some way.
          +     * This field cannot be updated. Its value is ignored in all update requests.
          +     * 
          + * + * repeated .google.cloud.securitycenter.v2.GroupMembership group_memberships = 57; + */ + public Builder addGroupMemberships( + int index, com.google.cloud.securitycenter.v2.GroupMembership.Builder builderForValue) { + if (groupMembershipsBuilder_ == null) { + ensureGroupMembershipsIsMutable(); + groupMemberships_.add(index, builderForValue.build()); + onChanged(); + } else { + groupMembershipsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * Contains details about groups of which this finding is a member. A group is
          +     * a collection of findings that are related in some way.
          +     * This field cannot be updated. Its value is ignored in all update requests.
          +     * 
          + * + * repeated .google.cloud.securitycenter.v2.GroupMembership group_memberships = 57; + */ + public Builder addAllGroupMemberships( + java.lang.Iterable values) { + if (groupMembershipsBuilder_ == null) { + ensureGroupMembershipsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groupMemberships_); + onChanged(); + } else { + groupMembershipsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
          +     * Contains details about groups of which this finding is a member. A group is
          +     * a collection of findings that are related in some way.
          +     * This field cannot be updated. Its value is ignored in all update requests.
          +     * 
          + * + * repeated .google.cloud.securitycenter.v2.GroupMembership group_memberships = 57; + */ + public Builder clearGroupMemberships() { + if (groupMembershipsBuilder_ == null) { + groupMemberships_ = java.util.Collections.emptyList(); + bitField1_ = (bitField1_ & ~0x00004000); + onChanged(); + } else { + groupMembershipsBuilder_.clear(); + } + return this; + } + /** + * + * + *
          +     * Contains details about groups of which this finding is a member. A group is
          +     * a collection of findings that are related in some way.
          +     * This field cannot be updated. Its value is ignored in all update requests.
          +     * 
          + * + * repeated .google.cloud.securitycenter.v2.GroupMembership group_memberships = 57; + */ + public Builder removeGroupMemberships(int index) { + if (groupMembershipsBuilder_ == null) { + ensureGroupMembershipsIsMutable(); + groupMemberships_.remove(index); + onChanged(); + } else { + groupMembershipsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
          +     * Contains details about groups of which this finding is a member. A group is
          +     * a collection of findings that are related in some way.
          +     * This field cannot be updated. Its value is ignored in all update requests.
          +     * 
          + * + * repeated .google.cloud.securitycenter.v2.GroupMembership group_memberships = 57; + */ + public com.google.cloud.securitycenter.v2.GroupMembership.Builder getGroupMembershipsBuilder( + int index) { + return getGroupMembershipsFieldBuilder().getBuilder(index); + } + /** + * + * + *
          +     * Contains details about groups of which this finding is a member. A group is
          +     * a collection of findings that are related in some way.
          +     * This field cannot be updated. Its value is ignored in all update requests.
          +     * 
          + * + * repeated .google.cloud.securitycenter.v2.GroupMembership group_memberships = 57; + */ + public com.google.cloud.securitycenter.v2.GroupMembershipOrBuilder getGroupMembershipsOrBuilder( + int index) { + if (groupMembershipsBuilder_ == null) { + return groupMemberships_.get(index); + } else { + return groupMembershipsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
          +     * Contains details about groups of which this finding is a member. A group is
          +     * a collection of findings that are related in some way.
          +     * This field cannot be updated. Its value is ignored in all update requests.
          +     * 
          + * + * repeated .google.cloud.securitycenter.v2.GroupMembership group_memberships = 57; + */ + public java.util.List + getGroupMembershipsOrBuilderList() { + if (groupMembershipsBuilder_ != null) { + return groupMembershipsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(groupMemberships_); + } + } + /** + * + * + *
          +     * Contains details about groups of which this finding is a member. A group is
          +     * a collection of findings that are related in some way.
          +     * This field cannot be updated. Its value is ignored in all update requests.
          +     * 
          + * + * repeated .google.cloud.securitycenter.v2.GroupMembership group_memberships = 57; + */ + public com.google.cloud.securitycenter.v2.GroupMembership.Builder addGroupMembershipsBuilder() { + return getGroupMembershipsFieldBuilder() + .addBuilder(com.google.cloud.securitycenter.v2.GroupMembership.getDefaultInstance()); + } + /** + * + * + *
          +     * Contains details about groups of which this finding is a member. A group is
          +     * a collection of findings that are related in some way.
          +     * This field cannot be updated. Its value is ignored in all update requests.
          +     * 
          + * + * repeated .google.cloud.securitycenter.v2.GroupMembership group_memberships = 57; + */ + public com.google.cloud.securitycenter.v2.GroupMembership.Builder addGroupMembershipsBuilder( + int index) { + return getGroupMembershipsFieldBuilder() + .addBuilder( + index, com.google.cloud.securitycenter.v2.GroupMembership.getDefaultInstance()); + } + /** + * + * + *
          +     * Contains details about groups of which this finding is a member. A group is
          +     * a collection of findings that are related in some way.
          +     * This field cannot be updated. Its value is ignored in all update requests.
          +     * 
          + * + * repeated .google.cloud.securitycenter.v2.GroupMembership group_memberships = 57; + */ + public java.util.List + getGroupMembershipsBuilderList() { + return getGroupMembershipsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v2.GroupMembership, + com.google.cloud.securitycenter.v2.GroupMembership.Builder, + com.google.cloud.securitycenter.v2.GroupMembershipOrBuilder> + getGroupMembershipsFieldBuilder() { + if (groupMembershipsBuilder_ == null) { + groupMembershipsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v2.GroupMembership, + com.google.cloud.securitycenter.v2.GroupMembership.Builder, + com.google.cloud.securitycenter.v2.GroupMembershipOrBuilder>( + groupMemberships_, + ((bitField1_ & 0x00004000) != 0), + getParentForChildren(), + isClean()); + groupMemberships_ = null; + } + return groupMembershipsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/FindingOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/FindingOrBuilder.java index 029ea814dbd4..1825e046a5ff 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/FindingOrBuilder.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/FindingOrBuilder.java @@ -1992,4 +1992,114 @@ com.google.cloud.securitycenter.v2.ContactDetails getContactsOrDefault( * repeated .google.cloud.securitycenter.v2.LoadBalancer load_balancers = 50; */ com.google.cloud.securitycenter.v2.LoadBalancerOrBuilder getLoadBalancersOrBuilder(int index); + + /** + * + * + *
          +   * Contains details about a group of security issues that, when the issues
          +   * occur together, represent a greater risk than when the issues occur
          +   * independently. A group of such issues is referred to as a toxic
          +   * combination.
          +   * This field cannot be updated. Its value is ignored in all update requests.
          +   * 
          + * + * .google.cloud.securitycenter.v2.ToxicCombination toxic_combination = 56; + * + * @return Whether the toxicCombination field is set. + */ + boolean hasToxicCombination(); + /** + * + * + *
          +   * Contains details about a group of security issues that, when the issues
          +   * occur together, represent a greater risk than when the issues occur
          +   * independently. A group of such issues is referred to as a toxic
          +   * combination.
          +   * This field cannot be updated. Its value is ignored in all update requests.
          +   * 
          + * + * .google.cloud.securitycenter.v2.ToxicCombination toxic_combination = 56; + * + * @return The toxicCombination. + */ + com.google.cloud.securitycenter.v2.ToxicCombination getToxicCombination(); + /** + * + * + *
          +   * Contains details about a group of security issues that, when the issues
          +   * occur together, represent a greater risk than when the issues occur
          +   * independently. A group of such issues is referred to as a toxic
          +   * combination.
          +   * This field cannot be updated. Its value is ignored in all update requests.
          +   * 
          + * + * .google.cloud.securitycenter.v2.ToxicCombination toxic_combination = 56; + */ + com.google.cloud.securitycenter.v2.ToxicCombinationOrBuilder getToxicCombinationOrBuilder(); + + /** + * + * + *
          +   * Contains details about groups of which this finding is a member. A group is
          +   * a collection of findings that are related in some way.
          +   * This field cannot be updated. Its value is ignored in all update requests.
          +   * 
          + * + * repeated .google.cloud.securitycenter.v2.GroupMembership group_memberships = 57; + */ + java.util.List getGroupMembershipsList(); + /** + * + * + *
          +   * Contains details about groups of which this finding is a member. A group is
          +   * a collection of findings that are related in some way.
          +   * This field cannot be updated. Its value is ignored in all update requests.
          +   * 
          + * + * repeated .google.cloud.securitycenter.v2.GroupMembership group_memberships = 57; + */ + com.google.cloud.securitycenter.v2.GroupMembership getGroupMemberships(int index); + /** + * + * + *
          +   * Contains details about groups of which this finding is a member. A group is
          +   * a collection of findings that are related in some way.
          +   * This field cannot be updated. Its value is ignored in all update requests.
          +   * 
          + * + * repeated .google.cloud.securitycenter.v2.GroupMembership group_memberships = 57; + */ + int getGroupMembershipsCount(); + /** + * + * + *
          +   * Contains details about groups of which this finding is a member. A group is
          +   * a collection of findings that are related in some way.
          +   * This field cannot be updated. Its value is ignored in all update requests.
          +   * 
          + * + * repeated .google.cloud.securitycenter.v2.GroupMembership group_memberships = 57; + */ + java.util.List + getGroupMembershipsOrBuilderList(); + /** + * + * + *
          +   * Contains details about groups of which this finding is a member. A group is
          +   * a collection of findings that are related in some way.
          +   * This field cannot be updated. Its value is ignored in all update requests.
          +   * 
          + * + * repeated .google.cloud.securitycenter.v2.GroupMembership group_memberships = 57; + */ + com.google.cloud.securitycenter.v2.GroupMembershipOrBuilder getGroupMembershipsOrBuilder( + int index); } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/FindingProto.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/FindingProto.java index 46b75135e81f..7927d66a93d6 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/FindingProto.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/FindingProto.java @@ -74,123 +74,130 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oogle/cloud/securitycenter/v2/exfiltrati" + "on.proto\0324google/cloud/securitycenter/v2" + "/external_system.proto\032)google/cloud/sec" - + "uritycenter/v2/file.proto\0320google/cloud/" - + "securitycenter/v2/iam_binding.proto\032.goo" - + "gle/cloud/securitycenter/v2/indicator.pr" - + "oto\0323google/cloud/securitycenter/v2/kern" - + "el_rootkit.proto\032/google/cloud/securityc" - + "enter/v2/kubernetes.proto\0322google/cloud/" - + "securitycenter/v2/load_balancer.proto\032.g" - + "oogle/cloud/securitycenter/v2/log_entry." - + "proto\0321google/cloud/securitycenter/v2/mi" - + "tre_attack.proto\032/google/cloud/securityc" - + "enter/v2/org_policy.proto\032,google/cloud/" - + "securitycenter/v2/process.proto\0323google/" - + "cloud/securitycenter/v2/security_marks.p" - + "roto\0325google/cloud/securitycenter/v2/sec" - + "urity_posture.proto\0322google/cloud/securi" - + "tycenter/v2/vulnerability.proto\032\034google/" - + "protobuf/struct.proto\032\037google/protobuf/t" - + "imestamp.proto\"\206\035\n\007Finding\022\014\n\004name\030\001 \001(\t" - + "\022\033\n\016canonical_name\030\002 \001(\tB\003\340A\003\022\016\n\006parent\030" - + "\003 \001(\t\022\032\n\rresource_name\030\004 \001(\tB\003\340A\005\022A\n\005sta" - + "te\030\006 \001(\0162-.google.cloud.securitycenter.v" - + "2.Finding.StateB\003\340A\003\022\025\n\010category\030\007 \001(\tB\003" - + "\340A\005\022\024\n\014external_uri\030\010 \001(\t\022X\n\021source_prop" - + "erties\030\t \003(\0132=.google.cloud.securitycent" - + "er.v2.Finding.SourcePropertiesEntry\022J\n\016s" - + "ecurity_marks\030\n \001(\0132-.google.cloud.secur" - + "itycenter.v2.SecurityMarksB\003\340A\003\022.\n\nevent" - + "_time\030\013 \001(\0132\032.google.protobuf.Timestamp\022" - + "4\n\013create_time\030\014 \001(\0132\032.google.protobuf.T" - + "imestampB\003\340A\003\022B\n\010severity\030\016 \001(\01620.google" - + ".cloud.securitycenter.v2.Finding.Severit" - + "y\022:\n\004mute\030\017 \001(\0162,.google.cloud.securityc" - + "enter.v2.Finding.Mute\022K\n\rfinding_class\030\020" - + " \001(\01624.google.cloud.securitycenter.v2.Fi" - + "nding.FindingClass\022<\n\tindicator\030\021 \001(\0132)." - + "google.cloud.securitycenter.v2.Indicator" - + "\022D\n\rvulnerability\030\022 \001(\0132-.google.cloud.s" - + "ecuritycenter.v2.Vulnerability\0229\n\020mute_u" - + "pdate_time\030\023 \001(\0132\032.google.protobuf.Times" - + "tampB\003\340A\003\022[\n\020external_systems\030\024 \003(\0132<.go" - + "ogle.cloud.securitycenter.v2.Finding.Ext" - + "ernalSystemsEntryB\003\340A\003\022A\n\014mitre_attack\030\025" - + " \001(\0132+.google.cloud.securitycenter.v2.Mi" - + "treAttack\0226\n\006access\030\026 \001(\0132&.google.cloud" - + ".securitycenter.v2.Access\022?\n\013connections" - + "\030\027 \003(\0132*.google.cloud.securitycenter.v2." - + "Connection\022\026\n\016mute_initiator\030\030 \001(\t\022:\n\tpr" - + "ocesses\030\031 \003(\0132\'.google.cloud.securitycen" - + "ter.v2.Process\022L\n\010contacts\030\032 \003(\01325.googl" - + "e.cloud.securitycenter.v2.Finding.Contac" - + "tsEntryB\003\340A\003\022?\n\013compliances\030\033 \003(\0132*.goog" - + "le.cloud.securitycenter.v2.Compliance\022 \n" - + "\023parent_display_name\030\035 \001(\tB\003\340A\003\022\023\n\013descr" - + "iption\030\036 \001(\t\022B\n\014exfiltration\030\037 \001(\0132,.goo" - + "gle.cloud.securitycenter.v2.Exfiltration" - + "\022@\n\014iam_bindings\030 \003(\0132*.google.cloud.se" - + "curitycenter.v2.IamBinding\022\022\n\nnext_steps" - + "\030! \001(\t\022\023\n\013module_name\030\" \001(\t\022=\n\ncontainer" - + "s\030# \003(\0132).google.cloud.securitycenter.v2" - + ".Container\022>\n\nkubernetes\030$ \001(\0132*.google." - + "cloud.securitycenter.v2.Kubernetes\022:\n\010da" - + "tabase\030% \001(\0132(.google.cloud.securitycent" - + "er.v2.Database\022G\n\017attack_exposure\030& \001(\0132" - + "..google.cloud.securitycenter.v2.AttackE" - + "xposure\0223\n\005files\030\' \003(\0132$.google.cloud.se" - + "curitycenter.v2.File\022P\n\024cloud_dlp_inspec" - + "tion\030( \001(\01322.google.cloud.securitycenter" - + ".v2.CloudDlpInspection\022S\n\026cloud_dlp_data" - + "_profile\030) \001(\01323.google.cloud.securityce" - + "nter.v2.CloudDlpDataProfile\022E\n\016kernel_ro" - + "otkit\030* \001(\0132-.google.cloud.securitycente" - + "r.v2.KernelRootkit\022?\n\014org_policies\030+ \003(\013" - + "2).google.cloud.securitycenter.v2.OrgPol" - + "icy\022@\n\013application\030- \001(\0132+.google.cloud." - + "securitycenter.v2.Application\022X\n\030backup_" - + "disaster_recovery\030/ \001(\01326.google.cloud.s" - + "ecuritycenter.v2.BackupDisasterRecovery\022" - + "I\n\020security_posture\0300 \001(\0132/.google.cloud" - + ".securitycenter.v2.SecurityPosture\022=\n\013lo" - + "g_entries\0301 \003(\0132(.google.cloud.securityc" - + "enter.v2.LogEntry\022D\n\016load_balancers\0302 \003(" - + "\0132,.google.cloud.securitycenter.v2.LoadB" - + "alancer\032O\n\025SourcePropertiesEntry\022\013\n\003key\030" - + "\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.protobuf.V" - + "alue:\0028\001\032f\n\024ExternalSystemsEntry\022\013\n\003key\030" - + "\001 \001(\t\022=\n\005value\030\002 \001(\0132..google.cloud.secu" - + "ritycenter.v2.ExternalSystem:\0028\001\032_\n\rCont" - + "actsEntry\022\013\n\003key\030\001 \001(\t\022=\n\005value\030\002 \001(\0132.." - + "google.cloud.securitycenter.v2.ContactDe" - + "tails:\0028\001\"8\n\005State\022\025\n\021STATE_UNSPECIFIED\020" - + "\000\022\n\n\006ACTIVE\020\001\022\014\n\010INACTIVE\020\002\"Q\n\010Severity\022" - + "\030\n\024SEVERITY_UNSPECIFIED\020\000\022\014\n\010CRITICAL\020\001\022" - + "\010\n\004HIGH\020\002\022\n\n\006MEDIUM\020\003\022\007\n\003LOW\020\004\"C\n\004Mute\022\024" - + "\n\020MUTE_UNSPECIFIED\020\000\022\t\n\005MUTED\020\001\022\013\n\007UNMUT" - + "ED\020\002\022\r\n\tUNDEFINED\020\003\"\231\001\n\014FindingClass\022\035\n\031" - + "FINDING_CLASS_UNSPECIFIED\020\000\022\n\n\006THREAT\020\001\022" - + "\021\n\rVULNERABILITY\020\002\022\024\n\020MISCONFIGURATION\020\003" - + "\022\017\n\013OBSERVATION\020\004\022\r\n\tSCC_ERROR\020\005\022\025\n\021POST" - + "URE_VIOLATION\020\006:\335\003\352A\331\003\n%securitycenter.g" - + "oogleapis.com/Finding\022@organizations/{or" - + "ganization}/sources/{source}/findings/{f" - + "inding}\022Uorganizations/{organization}/so" - + "urces/{source}/locations/{location}/find" - + "ings/{finding}\0224folders/{folder}/sources" - + "/{source}/findings/{finding}\022Ifolders/{f" - + "older}/sources/{source}/locations/{locat" - + "ion}/findings/{finding}\0226projects/{proje" - + "ct}/sources/{source}/findings/{finding}\022" - + "Kprojects/{project}/sources/{source}/loc" - + "ations/{location}/findings/{finding}*\010fi" - + "ndings2\007findingB\346\001\n\"com.google.cloud.sec" - + "uritycenter.v2B\014FindingProtoP\001ZJcloud.go" - + "ogle.com/go/securitycenter/apiv2/securit" - + "ycenterpb;securitycenterpb\252\002\036Google.Clou" - + "d.SecurityCenter.V2\312\002\036Google\\Cloud\\Secur" - + "ityCenter\\V2\352\002!Google::Cloud::SecurityCe" - + "nter::V2b\006proto3" + + "uritycenter/v2/file.proto\0325google/cloud/" + + "securitycenter/v2/group_membership.proto" + + "\0320google/cloud/securitycenter/v2/iam_bin" + + "ding.proto\032.google/cloud/securitycenter/" + + "v2/indicator.proto\0323google/cloud/securit" + + "ycenter/v2/kernel_rootkit.proto\032/google/" + + "cloud/securitycenter/v2/kubernetes.proto" + + "\0322google/cloud/securitycenter/v2/load_ba" + + "lancer.proto\032.google/cloud/securitycente" + + "r/v2/log_entry.proto\0321google/cloud/secur" + + "itycenter/v2/mitre_attack.proto\032/google/" + + "cloud/securitycenter/v2/org_policy.proto" + + "\032,google/cloud/securitycenter/v2/process" + + ".proto\0323google/cloud/securitycenter/v2/s" + + "ecurity_marks.proto\0325google/cloud/securi" + + "tycenter/v2/security_posture.proto\0326goog" + + "le/cloud/securitycenter/v2/toxic_combina" + + "tion.proto\0322google/cloud/securitycenter/" + + "v2/vulnerability.proto\032\034google/protobuf/" + + "struct.proto\032\037google/protobuf/timestamp." + + "proto\"\266\036\n\007Finding\022\014\n\004name\030\001 \001(\t\022\033\n\016canon" + + "ical_name\030\002 \001(\tB\003\340A\003\022\016\n\006parent\030\003 \001(\t\022\032\n\r" + + "resource_name\030\004 \001(\tB\003\340A\005\022A\n\005state\030\006 \001(\0162" + + "-.google.cloud.securitycenter.v2.Finding" + + ".StateB\003\340A\003\022\025\n\010category\030\007 \001(\tB\003\340A\005\022\024\n\014ex" + + "ternal_uri\030\010 \001(\t\022X\n\021source_properties\030\t " + + "\003(\0132=.google.cloud.securitycenter.v2.Fin" + + "ding.SourcePropertiesEntry\022J\n\016security_m" + + "arks\030\n \001(\0132-.google.cloud.securitycenter" + + ".v2.SecurityMarksB\003\340A\003\022.\n\nevent_time\030\013 \001" + + "(\0132\032.google.protobuf.Timestamp\0224\n\013create" + + "_time\030\014 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\022B\n\010severity\030\016 \001(\01620.google.cloud.se" + + "curitycenter.v2.Finding.Severity\022:\n\004mute" + + "\030\017 \001(\0162,.google.cloud.securitycenter.v2." + + "Finding.Mute\022K\n\rfinding_class\030\020 \001(\01624.go" + + "ogle.cloud.securitycenter.v2.Finding.Fin" + + "dingClass\022<\n\tindicator\030\021 \001(\0132).google.cl" + + "oud.securitycenter.v2.Indicator\022D\n\rvulne" + + "rability\030\022 \001(\0132-.google.cloud.securityce" + + "nter.v2.Vulnerability\0229\n\020mute_update_tim" + + "e\030\023 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + + "\022[\n\020external_systems\030\024 \003(\0132<.google.clou" + + "d.securitycenter.v2.Finding.ExternalSyst" + + "emsEntryB\003\340A\003\022A\n\014mitre_attack\030\025 \001(\0132+.go" + + "ogle.cloud.securitycenter.v2.MitreAttack" + + "\0226\n\006access\030\026 \001(\0132&.google.cloud.security" + + "center.v2.Access\022?\n\013connections\030\027 \003(\0132*." + + "google.cloud.securitycenter.v2.Connectio" + + "n\022\026\n\016mute_initiator\030\030 \001(\t\022:\n\tprocesses\030\031" + + " \003(\0132\'.google.cloud.securitycenter.v2.Pr" + + "ocess\022L\n\010contacts\030\032 \003(\01325.google.cloud.s" + + "ecuritycenter.v2.Finding.ContactsEntryB\003" + + "\340A\003\022?\n\013compliances\030\033 \003(\0132*.google.cloud." + + "securitycenter.v2.Compliance\022 \n\023parent_d" + + "isplay_name\030\035 \001(\tB\003\340A\003\022\023\n\013description\030\036 " + + "\001(\t\022B\n\014exfiltration\030\037 \001(\0132,.google.cloud" + + ".securitycenter.v2.Exfiltration\022@\n\014iam_b" + + "indings\030 \003(\0132*.google.cloud.securitycen" + + "ter.v2.IamBinding\022\022\n\nnext_steps\030! \001(\t\022\023\n" + + "\013module_name\030\" \001(\t\022=\n\ncontainers\030# \003(\0132)" + + ".google.cloud.securitycenter.v2.Containe" + + "r\022>\n\nkubernetes\030$ \001(\0132*.google.cloud.sec" + + "uritycenter.v2.Kubernetes\022:\n\010database\030% " + + "\001(\0132(.google.cloud.securitycenter.v2.Dat" + + "abase\022G\n\017attack_exposure\030& \001(\0132..google." + + "cloud.securitycenter.v2.AttackExposure\0223" + + "\n\005files\030\' \003(\0132$.google.cloud.securitycen" + + "ter.v2.File\022P\n\024cloud_dlp_inspection\030( \001(" + + "\01322.google.cloud.securitycenter.v2.Cloud" + + "DlpInspection\022S\n\026cloud_dlp_data_profile\030" + + ") \001(\01323.google.cloud.securitycenter.v2.C" + + "loudDlpDataProfile\022E\n\016kernel_rootkit\030* \001" + + "(\0132-.google.cloud.securitycenter.v2.Kern" + + "elRootkit\022?\n\014org_policies\030+ \003(\0132).google" + + ".cloud.securitycenter.v2.OrgPolicy\022@\n\013ap" + + "plication\030- \001(\0132+.google.cloud.securityc" + + "enter.v2.Application\022X\n\030backup_disaster_" + + "recovery\030/ \001(\01326.google.cloud.securityce" + + "nter.v2.BackupDisasterRecovery\022I\n\020securi" + + "ty_posture\0300 \001(\0132/.google.cloud.security" + + "center.v2.SecurityPosture\022=\n\013log_entries" + + "\0301 \003(\0132(.google.cloud.securitycenter.v2." + + "LogEntry\022D\n\016load_balancers\0302 \003(\0132,.googl" + + "e.cloud.securitycenter.v2.LoadBalancer\022K" + + "\n\021toxic_combination\0308 \001(\01320.google.cloud" + + ".securitycenter.v2.ToxicCombination\022J\n\021g" + + "roup_memberships\0309 \003(\0132/.google.cloud.se" + + "curitycenter.v2.GroupMembership\032O\n\025Sourc" + + "ePropertiesEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002" + + " \001(\0132\026.google.protobuf.Value:\0028\001\032f\n\024Exte" + + "rnalSystemsEntry\022\013\n\003key\030\001 \001(\t\022=\n\005value\030\002" + + " \001(\0132..google.cloud.securitycenter.v2.Ex" + + "ternalSystem:\0028\001\032_\n\rContactsEntry\022\013\n\003key" + + "\030\001 \001(\t\022=\n\005value\030\002 \001(\0132..google.cloud.sec" + + "uritycenter.v2.ContactDetails:\0028\001\"8\n\005Sta" + + "te\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n" + + "\010INACTIVE\020\002\"Q\n\010Severity\022\030\n\024SEVERITY_UNSP" + + "ECIFIED\020\000\022\014\n\010CRITICAL\020\001\022\010\n\004HIGH\020\002\022\n\n\006MED" + + "IUM\020\003\022\007\n\003LOW\020\004\"C\n\004Mute\022\024\n\020MUTE_UNSPECIFI" + + "ED\020\000\022\t\n\005MUTED\020\001\022\013\n\007UNMUTED\020\002\022\r\n\tUNDEFINE" + + "D\020\003\"\260\001\n\014FindingClass\022\035\n\031FINDING_CLASS_UN" + + "SPECIFIED\020\000\022\n\n\006THREAT\020\001\022\021\n\rVULNERABILITY" + + "\020\002\022\024\n\020MISCONFIGURATION\020\003\022\017\n\013OBSERVATION\020" + + "\004\022\r\n\tSCC_ERROR\020\005\022\025\n\021POSTURE_VIOLATION\020\006\022" + + "\025\n\021TOXIC_COMBINATION\020\007:\335\003\352A\331\003\n%securityc" + + "enter.googleapis.com/Finding\022@organizati" + + "ons/{organization}/sources/{source}/find" + + "ings/{finding}\022Uorganizations/{organizat" + + "ion}/sources/{source}/locations/{locatio" + + "n}/findings/{finding}\0224folders/{folder}/" + + "sources/{source}/findings/{finding}\022Ifol" + + "ders/{folder}/sources/{source}/locations" + + "/{location}/findings/{finding}\0226projects" + + "/{project}/sources/{source}/findings/{fi" + + "nding}\022Kprojects/{project}/sources/{sour" + + "ce}/locations/{location}/findings/{findi" + + "ng}*\010findings2\007findingB\346\001\n\"com.google.cl" + + "oud.securitycenter.v2B\014FindingProtoP\001ZJc" + + "loud.google.com/go/securitycenter/apiv2/" + + "securitycenterpb;securitycenterpb\252\002\036Goog" + + "le.Cloud.SecurityCenter.V2\312\002\036Google\\Clou" + + "d\\SecurityCenter\\V2\352\002!Google::Cloud::Sec" + + "urityCenter::V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -212,6 +219,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.securitycenter.v2.ExfiltrationProto.getDescriptor(), com.google.cloud.securitycenter.v2.ExternalSystemProto.getDescriptor(), com.google.cloud.securitycenter.v2.FileProto.getDescriptor(), + com.google.cloud.securitycenter.v2.GroupMembershipProto.getDescriptor(), com.google.cloud.securitycenter.v2.IamBindingProto.getDescriptor(), com.google.cloud.securitycenter.v2.IndicatorProto.getDescriptor(), com.google.cloud.securitycenter.v2.KernelRootkitProto.getDescriptor(), @@ -223,6 +231,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.securitycenter.v2.ProcessProto.getDescriptor(), com.google.cloud.securitycenter.v2.SecurityMarksProto.getDescriptor(), com.google.cloud.securitycenter.v2.SecurityPostureProto.getDescriptor(), + com.google.cloud.securitycenter.v2.ToxicCombinationProto.getDescriptor(), com.google.cloud.securitycenter.v2.VulnerabilityProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), @@ -278,6 +287,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SecurityPosture", "LogEntries", "LoadBalancers", + "ToxicCombination", + "GroupMemberships", }); internal_static_google_cloud_securitycenter_v2_Finding_SourcePropertiesEntry_descriptor = internal_static_google_cloud_securitycenter_v2_Finding_descriptor.getNestedTypes().get(0); @@ -325,6 +336,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.securitycenter.v2.ExfiltrationProto.getDescriptor(); com.google.cloud.securitycenter.v2.ExternalSystemProto.getDescriptor(); com.google.cloud.securitycenter.v2.FileProto.getDescriptor(); + com.google.cloud.securitycenter.v2.GroupMembershipProto.getDescriptor(); com.google.cloud.securitycenter.v2.IamBindingProto.getDescriptor(); com.google.cloud.securitycenter.v2.IndicatorProto.getDescriptor(); com.google.cloud.securitycenter.v2.KernelRootkitProto.getDescriptor(); @@ -336,6 +348,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.securitycenter.v2.ProcessProto.getDescriptor(); com.google.cloud.securitycenter.v2.SecurityMarksProto.getDescriptor(); com.google.cloud.securitycenter.v2.SecurityPostureProto.getDescriptor(); + com.google.cloud.securitycenter.v2.ToxicCombinationProto.getDescriptor(); com.google.cloud.securitycenter.v2.VulnerabilityProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/GroupMembership.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/GroupMembership.java new file mode 100644 index 000000000000..8328fa768387 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/GroupMembership.java @@ -0,0 +1,921 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v2/group_membership.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.securitycenter.v2; + +/** + * + * + *
          + * Contains details about groups of which this finding is a member. A group is a
          + * collection of findings that are related in some way.
          + * 
          + * + * Protobuf type {@code google.cloud.securitycenter.v2.GroupMembership} + */ +public final class GroupMembership extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v2.GroupMembership) + GroupMembershipOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupMembership.newBuilder() to construct. + private GroupMembership(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GroupMembership() { + groupType_ = 0; + groupId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GroupMembership(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v2.GroupMembershipProto + .internal_static_google_cloud_securitycenter_v2_GroupMembership_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v2.GroupMembershipProto + .internal_static_google_cloud_securitycenter_v2_GroupMembership_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v2.GroupMembership.class, + com.google.cloud.securitycenter.v2.GroupMembership.Builder.class); + } + + /** + * + * + *
          +   * Possible types of groups.
          +   * 
          + * + * Protobuf enum {@code google.cloud.securitycenter.v2.GroupMembership.GroupType} + */ + public enum GroupType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
          +     * Default value.
          +     * 
          + * + * GROUP_TYPE_UNSPECIFIED = 0; + */ + GROUP_TYPE_UNSPECIFIED(0), + /** + * + * + *
          +     * Group represents a toxic combination.
          +     * 
          + * + * GROUP_TYPE_TOXIC_COMBINATION = 1; + */ + GROUP_TYPE_TOXIC_COMBINATION(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
          +     * Default value.
          +     * 
          + * + * GROUP_TYPE_UNSPECIFIED = 0; + */ + public static final int GROUP_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
          +     * Group represents a toxic combination.
          +     * 
          + * + * GROUP_TYPE_TOXIC_COMBINATION = 1; + */ + public static final int GROUP_TYPE_TOXIC_COMBINATION_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static GroupType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static GroupType forNumber(int value) { + switch (value) { + case 0: + return GROUP_TYPE_UNSPECIFIED; + case 1: + return GROUP_TYPE_TOXIC_COMBINATION; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public GroupType findValueByNumber(int number) { + return GroupType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.securitycenter.v2.GroupMembership.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final GroupType[] VALUES = values(); + + public static GroupType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private GroupType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.securitycenter.v2.GroupMembership.GroupType) + } + + public static final int GROUP_TYPE_FIELD_NUMBER = 1; + private int groupType_ = 0; + /** + * + * + *
          +   * Type of group.
          +   * 
          + * + * .google.cloud.securitycenter.v2.GroupMembership.GroupType group_type = 1; + * + * @return The enum numeric value on the wire for groupType. + */ + @java.lang.Override + public int getGroupTypeValue() { + return groupType_; + } + /** + * + * + *
          +   * Type of group.
          +   * 
          + * + * .google.cloud.securitycenter.v2.GroupMembership.GroupType group_type = 1; + * + * @return The groupType. + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.GroupMembership.GroupType getGroupType() { + com.google.cloud.securitycenter.v2.GroupMembership.GroupType result = + com.google.cloud.securitycenter.v2.GroupMembership.GroupType.forNumber(groupType_); + return result == null + ? com.google.cloud.securitycenter.v2.GroupMembership.GroupType.UNRECOGNIZED + : result; + } + + public static final int GROUP_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object groupId_ = ""; + /** + * + * + *
          +   * ID of the group.
          +   * 
          + * + * string group_id = 2; + * + * @return The groupId. + */ + @java.lang.Override + public java.lang.String getGroupId() { + java.lang.Object ref = groupId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + groupId_ = s; + return s; + } + } + /** + * + * + *
          +   * ID of the group.
          +   * 
          + * + * string group_id = 2; + * + * @return The bytes for groupId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGroupIdBytes() { + java.lang.Object ref = groupId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + groupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (groupType_ + != com.google.cloud.securitycenter.v2.GroupMembership.GroupType.GROUP_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, groupType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(groupId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, groupId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (groupType_ + != com.google.cloud.securitycenter.v2.GroupMembership.GroupType.GROUP_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, groupType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(groupId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, groupId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycenter.v2.GroupMembership)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v2.GroupMembership other = + (com.google.cloud.securitycenter.v2.GroupMembership) obj; + + if (groupType_ != other.groupType_) return false; + if (!getGroupId().equals(other.getGroupId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + GROUP_TYPE_FIELD_NUMBER; + hash = (53 * hash) + groupType_; + hash = (37 * hash) + GROUP_ID_FIELD_NUMBER; + hash = (53 * hash) + getGroupId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v2.GroupMembership parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.GroupMembership parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.GroupMembership parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.GroupMembership parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.GroupMembership parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.GroupMembership parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.GroupMembership parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.GroupMembership parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.GroupMembership parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.GroupMembership parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.GroupMembership parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.GroupMembership parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.securitycenter.v2.GroupMembership prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * Contains details about groups of which this finding is a member. A group is a
          +   * collection of findings that are related in some way.
          +   * 
          + * + * Protobuf type {@code google.cloud.securitycenter.v2.GroupMembership} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v2.GroupMembership) + com.google.cloud.securitycenter.v2.GroupMembershipOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v2.GroupMembershipProto + .internal_static_google_cloud_securitycenter_v2_GroupMembership_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v2.GroupMembershipProto + .internal_static_google_cloud_securitycenter_v2_GroupMembership_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v2.GroupMembership.class, + com.google.cloud.securitycenter.v2.GroupMembership.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v2.GroupMembership.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + groupType_ = 0; + groupId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v2.GroupMembershipProto + .internal_static_google_cloud_securitycenter_v2_GroupMembership_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.GroupMembership getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v2.GroupMembership.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.GroupMembership build() { + com.google.cloud.securitycenter.v2.GroupMembership result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.GroupMembership buildPartial() { + com.google.cloud.securitycenter.v2.GroupMembership result = + new com.google.cloud.securitycenter.v2.GroupMembership(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.securitycenter.v2.GroupMembership result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.groupType_ = groupType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.groupId_ = groupId_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v2.GroupMembership) { + return mergeFrom((com.google.cloud.securitycenter.v2.GroupMembership) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v2.GroupMembership other) { + if (other == com.google.cloud.securitycenter.v2.GroupMembership.getDefaultInstance()) + return this; + if (other.groupType_ != 0) { + setGroupTypeValue(other.getGroupTypeValue()); + } + if (!other.getGroupId().isEmpty()) { + groupId_ = other.groupId_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + groupType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + groupId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int groupType_ = 0; + /** + * + * + *
          +     * Type of group.
          +     * 
          + * + * .google.cloud.securitycenter.v2.GroupMembership.GroupType group_type = 1; + * + * @return The enum numeric value on the wire for groupType. + */ + @java.lang.Override + public int getGroupTypeValue() { + return groupType_; + } + /** + * + * + *
          +     * Type of group.
          +     * 
          + * + * .google.cloud.securitycenter.v2.GroupMembership.GroupType group_type = 1; + * + * @param value The enum numeric value on the wire for groupType to set. + * @return This builder for chaining. + */ + public Builder setGroupTypeValue(int value) { + groupType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Type of group.
          +     * 
          + * + * .google.cloud.securitycenter.v2.GroupMembership.GroupType group_type = 1; + * + * @return The groupType. + */ + @java.lang.Override + public com.google.cloud.securitycenter.v2.GroupMembership.GroupType getGroupType() { + com.google.cloud.securitycenter.v2.GroupMembership.GroupType result = + com.google.cloud.securitycenter.v2.GroupMembership.GroupType.forNumber(groupType_); + return result == null + ? com.google.cloud.securitycenter.v2.GroupMembership.GroupType.UNRECOGNIZED + : result; + } + /** + * + * + *
          +     * Type of group.
          +     * 
          + * + * .google.cloud.securitycenter.v2.GroupMembership.GroupType group_type = 1; + * + * @param value The groupType to set. + * @return This builder for chaining. + */ + public Builder setGroupType( + com.google.cloud.securitycenter.v2.GroupMembership.GroupType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + groupType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
          +     * Type of group.
          +     * 
          + * + * .google.cloud.securitycenter.v2.GroupMembership.GroupType group_type = 1; + * + * @return This builder for chaining. + */ + public Builder clearGroupType() { + bitField0_ = (bitField0_ & ~0x00000001); + groupType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object groupId_ = ""; + /** + * + * + *
          +     * ID of the group.
          +     * 
          + * + * string group_id = 2; + * + * @return The groupId. + */ + public java.lang.String getGroupId() { + java.lang.Object ref = groupId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + groupId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * ID of the group.
          +     * 
          + * + * string group_id = 2; + * + * @return The bytes for groupId. + */ + public com.google.protobuf.ByteString getGroupIdBytes() { + java.lang.Object ref = groupId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + groupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * ID of the group.
          +     * 
          + * + * string group_id = 2; + * + * @param value The groupId to set. + * @return This builder for chaining. + */ + public Builder setGroupId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + groupId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * ID of the group.
          +     * 
          + * + * string group_id = 2; + * + * @return This builder for chaining. + */ + public Builder clearGroupId() { + groupId_ = getDefaultInstance().getGroupId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
          +     * ID of the group.
          +     * 
          + * + * string group_id = 2; + * + * @param value The bytes for groupId to set. + * @return This builder for chaining. + */ + public Builder setGroupIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + groupId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v2.GroupMembership) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v2.GroupMembership) + private static final com.google.cloud.securitycenter.v2.GroupMembership DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v2.GroupMembership(); + } + + public static com.google.cloud.securitycenter.v2.GroupMembership getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupMembership parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.GroupMembership getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/GroupMembershipOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/GroupMembershipOrBuilder.java new file mode 100644 index 000000000000..74c1ba0416d8 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/GroupMembershipOrBuilder.java @@ -0,0 +1,76 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v2/group_membership.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.securitycenter.v2; + +public interface GroupMembershipOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v2.GroupMembership) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Type of group.
          +   * 
          + * + * .google.cloud.securitycenter.v2.GroupMembership.GroupType group_type = 1; + * + * @return The enum numeric value on the wire for groupType. + */ + int getGroupTypeValue(); + /** + * + * + *
          +   * Type of group.
          +   * 
          + * + * .google.cloud.securitycenter.v2.GroupMembership.GroupType group_type = 1; + * + * @return The groupType. + */ + com.google.cloud.securitycenter.v2.GroupMembership.GroupType getGroupType(); + + /** + * + * + *
          +   * ID of the group.
          +   * 
          + * + * string group_id = 2; + * + * @return The groupId. + */ + java.lang.String getGroupId(); + /** + * + * + *
          +   * ID of the group.
          +   * 
          + * + * string group_id = 2; + * + * @return The bytes for groupId. + */ + com.google.protobuf.ByteString getGroupIdBytes(); +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/GroupMembershipProto.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/GroupMembershipProto.java new file mode 100644 index 000000000000..ffecd0cc8e56 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/GroupMembershipProto.java @@ -0,0 +1,73 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v2/group_membership.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.securitycenter.v2; + +public final class GroupMembershipProto { + private GroupMembershipProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v2_GroupMembership_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v2_GroupMembership_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n5google/cloud/securitycenter/v2/group_m" + + "embership.proto\022\036google.cloud.securityce" + + "nter.v2\"\275\001\n\017GroupMembership\022M\n\ngroup_typ" + + "e\030\001 \001(\01629.google.cloud.securitycenter.v2" + + ".GroupMembership.GroupType\022\020\n\010group_id\030\002" + + " \001(\t\"I\n\tGroupType\022\032\n\026GROUP_TYPE_UNSPECIF" + + "IED\020\000\022 \n\034GROUP_TYPE_TOXIC_COMBINATION\020\001B" + + "\356\001\n\"com.google.cloud.securitycenter.v2B\024" + + "GroupMembershipProtoP\001ZJcloud.google.com" + + "/go/securitycenter/apiv2/securitycenterp" + + "b;securitycenterpb\252\002\036Google.Cloud.Securi" + + "tyCenter.V2\312\002\036Google\\Cloud\\SecurityCente" + + "r\\V2\352\002!Google::Cloud::SecurityCenter::V2" + + "b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_cloud_securitycenter_v2_GroupMembership_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v2_GroupMembership_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v2_GroupMembership_descriptor, + new java.lang.String[] { + "GroupType", "GroupId", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/ToxicCombination.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/ToxicCombination.java new file mode 100644 index 000000000000..495e88323034 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/ToxicCombination.java @@ -0,0 +1,852 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v2/toxic_combination.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.securitycenter.v2; + +/** + * + * + *
          + * Contains details about a group of security issues that, when the issues
          + * occur together, represent a greater risk than when the issues occur
          + * independently. A group of such issues is referred to as a toxic
          + * combination.
          + * 
          + * + * Protobuf type {@code google.cloud.securitycenter.v2.ToxicCombination} + */ +public final class ToxicCombination extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v2.ToxicCombination) + ToxicCombinationOrBuilder { + private static final long serialVersionUID = 0L; + // Use ToxicCombination.newBuilder() to construct. + private ToxicCombination(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ToxicCombination() { + relatedFindings_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ToxicCombination(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v2.ToxicCombinationProto + .internal_static_google_cloud_securitycenter_v2_ToxicCombination_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v2.ToxicCombinationProto + .internal_static_google_cloud_securitycenter_v2_ToxicCombination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v2.ToxicCombination.class, + com.google.cloud.securitycenter.v2.ToxicCombination.Builder.class); + } + + public static final int ATTACK_EXPOSURE_SCORE_FIELD_NUMBER = 1; + private double attackExposureScore_ = 0D; + /** + * + * + *
          +   * The
          +   * [Attack exposure
          +   * score](https://cloud.google.com/security-command-center/docs/attack-exposure-learn#attack_exposure_scores)
          +   * of this toxic combination. The score is a measure of how much this toxic
          +   * combination exposes one or more high-value resources to potential attack.
          +   * 
          + * + * double attack_exposure_score = 1; + * + * @return The attackExposureScore. + */ + @java.lang.Override + public double getAttackExposureScore() { + return attackExposureScore_; + } + + public static final int RELATED_FINDINGS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList relatedFindings_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
          +   * List of resource names of findings associated with this toxic combination.
          +   * For example, `organizations/123/sources/456/findings/789`.
          +   * 
          + * + * repeated string related_findings = 2; + * + * @return A list containing the relatedFindings. + */ + public com.google.protobuf.ProtocolStringList getRelatedFindingsList() { + return relatedFindings_; + } + /** + * + * + *
          +   * List of resource names of findings associated with this toxic combination.
          +   * For example, `organizations/123/sources/456/findings/789`.
          +   * 
          + * + * repeated string related_findings = 2; + * + * @return The count of relatedFindings. + */ + public int getRelatedFindingsCount() { + return relatedFindings_.size(); + } + /** + * + * + *
          +   * List of resource names of findings associated with this toxic combination.
          +   * For example, `organizations/123/sources/456/findings/789`.
          +   * 
          + * + * repeated string related_findings = 2; + * + * @param index The index of the element to return. + * @return The relatedFindings at the given index. + */ + public java.lang.String getRelatedFindings(int index) { + return relatedFindings_.get(index); + } + /** + * + * + *
          +   * List of resource names of findings associated with this toxic combination.
          +   * For example, `organizations/123/sources/456/findings/789`.
          +   * 
          + * + * repeated string related_findings = 2; + * + * @param index The index of the value to return. + * @return The bytes of the relatedFindings at the given index. + */ + public com.google.protobuf.ByteString getRelatedFindingsBytes(int index) { + return relatedFindings_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (java.lang.Double.doubleToRawLongBits(attackExposureScore_) != 0) { + output.writeDouble(1, attackExposureScore_); + } + for (int i = 0; i < relatedFindings_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, relatedFindings_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (java.lang.Double.doubleToRawLongBits(attackExposureScore_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, attackExposureScore_); + } + { + int dataSize = 0; + for (int i = 0; i < relatedFindings_.size(); i++) { + dataSize += computeStringSizeNoTag(relatedFindings_.getRaw(i)); + } + size += dataSize; + size += 1 * getRelatedFindingsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycenter.v2.ToxicCombination)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v2.ToxicCombination other = + (com.google.cloud.securitycenter.v2.ToxicCombination) obj; + + if (java.lang.Double.doubleToLongBits(getAttackExposureScore()) + != java.lang.Double.doubleToLongBits(other.getAttackExposureScore())) return false; + if (!getRelatedFindingsList().equals(other.getRelatedFindingsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ATTACK_EXPOSURE_SCORE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getAttackExposureScore())); + if (getRelatedFindingsCount() > 0) { + hash = (37 * hash) + RELATED_FINDINGS_FIELD_NUMBER; + hash = (53 * hash) + getRelatedFindingsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v2.ToxicCombination parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.ToxicCombination parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.ToxicCombination parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.ToxicCombination parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.ToxicCombination parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v2.ToxicCombination parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.ToxicCombination parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.ToxicCombination parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.ToxicCombination parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.ToxicCombination parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v2.ToxicCombination parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v2.ToxicCombination parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.securitycenter.v2.ToxicCombination prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * Contains details about a group of security issues that, when the issues
          +   * occur together, represent a greater risk than when the issues occur
          +   * independently. A group of such issues is referred to as a toxic
          +   * combination.
          +   * 
          + * + * Protobuf type {@code google.cloud.securitycenter.v2.ToxicCombination} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v2.ToxicCombination) + com.google.cloud.securitycenter.v2.ToxicCombinationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v2.ToxicCombinationProto + .internal_static_google_cloud_securitycenter_v2_ToxicCombination_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v2.ToxicCombinationProto + .internal_static_google_cloud_securitycenter_v2_ToxicCombination_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v2.ToxicCombination.class, + com.google.cloud.securitycenter.v2.ToxicCombination.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v2.ToxicCombination.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + attackExposureScore_ = 0D; + relatedFindings_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v2.ToxicCombinationProto + .internal_static_google_cloud_securitycenter_v2_ToxicCombination_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.ToxicCombination getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v2.ToxicCombination.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.ToxicCombination build() { + com.google.cloud.securitycenter.v2.ToxicCombination result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.ToxicCombination buildPartial() { + com.google.cloud.securitycenter.v2.ToxicCombination result = + new com.google.cloud.securitycenter.v2.ToxicCombination(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.securitycenter.v2.ToxicCombination result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.attackExposureScore_ = attackExposureScore_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + relatedFindings_.makeImmutable(); + result.relatedFindings_ = relatedFindings_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.securitycenter.v2.ToxicCombination) { + return mergeFrom((com.google.cloud.securitycenter.v2.ToxicCombination) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v2.ToxicCombination other) { + if (other == com.google.cloud.securitycenter.v2.ToxicCombination.getDefaultInstance()) + return this; + if (other.getAttackExposureScore() != 0D) { + setAttackExposureScore(other.getAttackExposureScore()); + } + if (!other.relatedFindings_.isEmpty()) { + if (relatedFindings_.isEmpty()) { + relatedFindings_ = other.relatedFindings_; + bitField0_ |= 0x00000002; + } else { + ensureRelatedFindingsIsMutable(); + relatedFindings_.addAll(other.relatedFindings_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 9: + { + attackExposureScore_ = input.readDouble(); + bitField0_ |= 0x00000001; + break; + } // case 9 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureRelatedFindingsIsMutable(); + relatedFindings_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private double attackExposureScore_; + /** + * + * + *
          +     * The
          +     * [Attack exposure
          +     * score](https://cloud.google.com/security-command-center/docs/attack-exposure-learn#attack_exposure_scores)
          +     * of this toxic combination. The score is a measure of how much this toxic
          +     * combination exposes one or more high-value resources to potential attack.
          +     * 
          + * + * double attack_exposure_score = 1; + * + * @return The attackExposureScore. + */ + @java.lang.Override + public double getAttackExposureScore() { + return attackExposureScore_; + } + /** + * + * + *
          +     * The
          +     * [Attack exposure
          +     * score](https://cloud.google.com/security-command-center/docs/attack-exposure-learn#attack_exposure_scores)
          +     * of this toxic combination. The score is a measure of how much this toxic
          +     * combination exposes one or more high-value resources to potential attack.
          +     * 
          + * + * double attack_exposure_score = 1; + * + * @param value The attackExposureScore to set. + * @return This builder for chaining. + */ + public Builder setAttackExposureScore(double value) { + + attackExposureScore_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * The
          +     * [Attack exposure
          +     * score](https://cloud.google.com/security-command-center/docs/attack-exposure-learn#attack_exposure_scores)
          +     * of this toxic combination. The score is a measure of how much this toxic
          +     * combination exposes one or more high-value resources to potential attack.
          +     * 
          + * + * double attack_exposure_score = 1; + * + * @return This builder for chaining. + */ + public Builder clearAttackExposureScore() { + bitField0_ = (bitField0_ & ~0x00000001); + attackExposureScore_ = 0D; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList relatedFindings_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureRelatedFindingsIsMutable() { + if (!relatedFindings_.isModifiable()) { + relatedFindings_ = new com.google.protobuf.LazyStringArrayList(relatedFindings_); + } + bitField0_ |= 0x00000002; + } + /** + * + * + *
          +     * List of resource names of findings associated with this toxic combination.
          +     * For example, `organizations/123/sources/456/findings/789`.
          +     * 
          + * + * repeated string related_findings = 2; + * + * @return A list containing the relatedFindings. + */ + public com.google.protobuf.ProtocolStringList getRelatedFindingsList() { + relatedFindings_.makeImmutable(); + return relatedFindings_; + } + /** + * + * + *
          +     * List of resource names of findings associated with this toxic combination.
          +     * For example, `organizations/123/sources/456/findings/789`.
          +     * 
          + * + * repeated string related_findings = 2; + * + * @return The count of relatedFindings. + */ + public int getRelatedFindingsCount() { + return relatedFindings_.size(); + } + /** + * + * + *
          +     * List of resource names of findings associated with this toxic combination.
          +     * For example, `organizations/123/sources/456/findings/789`.
          +     * 
          + * + * repeated string related_findings = 2; + * + * @param index The index of the element to return. + * @return The relatedFindings at the given index. + */ + public java.lang.String getRelatedFindings(int index) { + return relatedFindings_.get(index); + } + /** + * + * + *
          +     * List of resource names of findings associated with this toxic combination.
          +     * For example, `organizations/123/sources/456/findings/789`.
          +     * 
          + * + * repeated string related_findings = 2; + * + * @param index The index of the value to return. + * @return The bytes of the relatedFindings at the given index. + */ + public com.google.protobuf.ByteString getRelatedFindingsBytes(int index) { + return relatedFindings_.getByteString(index); + } + /** + * + * + *
          +     * List of resource names of findings associated with this toxic combination.
          +     * For example, `organizations/123/sources/456/findings/789`.
          +     * 
          + * + * repeated string related_findings = 2; + * + * @param index The index to set the value at. + * @param value The relatedFindings to set. + * @return This builder for chaining. + */ + public Builder setRelatedFindings(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRelatedFindingsIsMutable(); + relatedFindings_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * List of resource names of findings associated with this toxic combination.
          +     * For example, `organizations/123/sources/456/findings/789`.
          +     * 
          + * + * repeated string related_findings = 2; + * + * @param value The relatedFindings to add. + * @return This builder for chaining. + */ + public Builder addRelatedFindings(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRelatedFindingsIsMutable(); + relatedFindings_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * List of resource names of findings associated with this toxic combination.
          +     * For example, `organizations/123/sources/456/findings/789`.
          +     * 
          + * + * repeated string related_findings = 2; + * + * @param values The relatedFindings to add. + * @return This builder for chaining. + */ + public Builder addAllRelatedFindings(java.lang.Iterable values) { + ensureRelatedFindingsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, relatedFindings_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * List of resource names of findings associated with this toxic combination.
          +     * For example, `organizations/123/sources/456/findings/789`.
          +     * 
          + * + * repeated string related_findings = 2; + * + * @return This builder for chaining. + */ + public Builder clearRelatedFindings() { + relatedFindings_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + /** + * + * + *
          +     * List of resource names of findings associated with this toxic combination.
          +     * For example, `organizations/123/sources/456/findings/789`.
          +     * 
          + * + * repeated string related_findings = 2; + * + * @param value The bytes of the relatedFindings to add. + * @return This builder for chaining. + */ + public Builder addRelatedFindingsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRelatedFindingsIsMutable(); + relatedFindings_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v2.ToxicCombination) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v2.ToxicCombination) + private static final com.google.cloud.securitycenter.v2.ToxicCombination DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v2.ToxicCombination(); + } + + public static com.google.cloud.securitycenter.v2.ToxicCombination getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ToxicCombination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v2.ToxicCombination getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/ToxicCombinationOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/ToxicCombinationOrBuilder.java new file mode 100644 index 000000000000..feb08250ad4e --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/ToxicCombinationOrBuilder.java @@ -0,0 +1,98 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v2/toxic_combination.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.securitycenter.v2; + +public interface ToxicCombinationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v2.ToxicCombination) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * The
          +   * [Attack exposure
          +   * score](https://cloud.google.com/security-command-center/docs/attack-exposure-learn#attack_exposure_scores)
          +   * of this toxic combination. The score is a measure of how much this toxic
          +   * combination exposes one or more high-value resources to potential attack.
          +   * 
          + * + * double attack_exposure_score = 1; + * + * @return The attackExposureScore. + */ + double getAttackExposureScore(); + + /** + * + * + *
          +   * List of resource names of findings associated with this toxic combination.
          +   * For example, `organizations/123/sources/456/findings/789`.
          +   * 
          + * + * repeated string related_findings = 2; + * + * @return A list containing the relatedFindings. + */ + java.util.List getRelatedFindingsList(); + /** + * + * + *
          +   * List of resource names of findings associated with this toxic combination.
          +   * For example, `organizations/123/sources/456/findings/789`.
          +   * 
          + * + * repeated string related_findings = 2; + * + * @return The count of relatedFindings. + */ + int getRelatedFindingsCount(); + /** + * + * + *
          +   * List of resource names of findings associated with this toxic combination.
          +   * For example, `organizations/123/sources/456/findings/789`.
          +   * 
          + * + * repeated string related_findings = 2; + * + * @param index The index of the element to return. + * @return The relatedFindings at the given index. + */ + java.lang.String getRelatedFindings(int index); + /** + * + * + *
          +   * List of resource names of findings associated with this toxic combination.
          +   * For example, `organizations/123/sources/456/findings/789`.
          +   * 
          + * + * repeated string related_findings = 2; + * + * @param index The index of the value to return. + * @return The bytes of the relatedFindings at the given index. + */ + com.google.protobuf.ByteString getRelatedFindingsBytes(int index); +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/ToxicCombinationProto.java b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/ToxicCombinationProto.java new file mode 100644 index 000000000000..3d98e2f079d4 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/java/com/google/cloud/securitycenter/v2/ToxicCombinationProto.java @@ -0,0 +1,70 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/securitycenter/v2/toxic_combination.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.securitycenter.v2; + +public final class ToxicCombinationProto { + private ToxicCombinationProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v2_ToxicCombination_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v2_ToxicCombination_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n6google/cloud/securitycenter/v2/toxic_c" + + "ombination.proto\022\036google.cloud.securityc" + + "enter.v2\"K\n\020ToxicCombination\022\035\n\025attack_e" + + "xposure_score\030\001 \001(\001\022\030\n\020related_findings\030" + + "\002 \003(\tB\357\001\n\"com.google.cloud.securitycente" + + "r.v2B\025ToxicCombinationProtoP\001ZJcloud.goo" + + "gle.com/go/securitycenter/apiv2/security" + + "centerpb;securitycenterpb\252\002\036Google.Cloud" + + ".SecurityCenter.V2\312\002\036Google\\Cloud\\Securi" + + "tyCenter\\V2\352\002!Google::Cloud::SecurityCen" + + "ter::V2b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_cloud_securitycenter_v2_ToxicCombination_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v2_ToxicCombination_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v2_ToxicCombination_descriptor, + new java.lang.String[] { + "AttackExposureScore", "RelatedFindings", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/finding.proto b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/finding.proto index 644ef36668cd..f14c6d69f677 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/finding.proto +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/finding.proto @@ -32,6 +32,7 @@ import "google/cloud/securitycenter/v2/database.proto"; import "google/cloud/securitycenter/v2/exfiltration.proto"; import "google/cloud/securitycenter/v2/external_system.proto"; import "google/cloud/securitycenter/v2/file.proto"; +import "google/cloud/securitycenter/v2/group_membership.proto"; import "google/cloud/securitycenter/v2/iam_binding.proto"; import "google/cloud/securitycenter/v2/indicator.proto"; import "google/cloud/securitycenter/v2/kernel_rootkit.proto"; @@ -43,6 +44,7 @@ import "google/cloud/securitycenter/v2/org_policy.proto"; import "google/cloud/securitycenter/v2/process.proto"; import "google/cloud/securitycenter/v2/security_marks.proto"; import "google/cloud/securitycenter/v2/security_posture.proto"; +import "google/cloud/securitycenter/v2/toxic_combination.proto"; import "google/cloud/securitycenter/v2/vulnerability.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; @@ -188,6 +190,10 @@ message Finding { // Describes a potential security risk due to a change in the security // posture. POSTURE_VIOLATION = 6; + + // Describes a combination of security issues that represent a more severe + // security problem when taken together. + TOXIC_COMBINATION = 7; } // The [relative resource @@ -424,4 +430,16 @@ message Finding { // The load balancers associated with the finding. repeated LoadBalancer load_balancers = 50; + + // Contains details about a group of security issues that, when the issues + // occur together, represent a greater risk than when the issues occur + // independently. A group of such issues is referred to as a toxic + // combination. + // This field cannot be updated. Its value is ignored in all update requests. + ToxicCombination toxic_combination = 56; + + // Contains details about groups of which this finding is a member. A group is + // a collection of findings that are related in some way. + // This field cannot be updated. Its value is ignored in all update requests. + repeated GroupMembership group_memberships = 57; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/group_membership.proto b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/group_membership.proto new file mode 100644 index 000000000000..4db02d2f2bd8 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/group_membership.proto @@ -0,0 +1,44 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.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. + +syntax = "proto3"; + +package google.cloud.securitycenter.v2; + +option csharp_namespace = "Google.Cloud.SecurityCenter.V2"; +option go_package = "cloud.google.com/go/securitycenter/apiv2/securitycenterpb;securitycenterpb"; +option java_multiple_files = true; +option java_outer_classname = "GroupMembershipProto"; +option java_package = "com.google.cloud.securitycenter.v2"; +option php_namespace = "Google\\Cloud\\SecurityCenter\\V2"; +option ruby_package = "Google::Cloud::SecurityCenter::V2"; + +// Contains details about groups of which this finding is a member. A group is a +// collection of findings that are related in some way. +message GroupMembership { + // Possible types of groups. + enum GroupType { + // Default value. + GROUP_TYPE_UNSPECIFIED = 0; + + // Group represents a toxic combination. + GROUP_TYPE_TOXIC_COMBINATION = 1; + } + + // Type of group. + GroupType group_type = 1; + + // ID of the group. + string group_id = 2; +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/toxic_combination.proto b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/toxic_combination.proto new file mode 100644 index 000000000000..bef08e01540a --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/src/main/proto/google/cloud/securitycenter/v2/toxic_combination.proto @@ -0,0 +1,42 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.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. + +syntax = "proto3"; + +package google.cloud.securitycenter.v2; + +option csharp_namespace = "Google.Cloud.SecurityCenter.V2"; +option go_package = "cloud.google.com/go/securitycenter/apiv2/securitycenterpb;securitycenterpb"; +option java_multiple_files = true; +option java_outer_classname = "ToxicCombinationProto"; +option java_package = "com.google.cloud.securitycenter.v2"; +option php_namespace = "Google\\Cloud\\SecurityCenter\\V2"; +option ruby_package = "Google::Cloud::SecurityCenter::V2"; + +// Contains details about a group of security issues that, when the issues +// occur together, represent a greater risk than when the issues occur +// independently. A group of such issues is referred to as a toxic +// combination. +message ToxicCombination { + // The + // [Attack exposure + // score](https://cloud.google.com/security-command-center/docs/attack-exposure-learn#attack_exposure_scores) + // of this toxic combination. The score is a measure of how much this toxic + // combination exposes one or more high-value resources to potential attack. + double attack_exposure_score = 1; + + // List of resource names of findings associated with this toxic combination. + // For example, `organizations/123/sources/456/findings/789`. + repeated string related_findings = 2; +} diff --git a/java-securitycentermanagement/README.md b/java-securitycentermanagement/README.md index 909cdfc4ad41..b8043ed7e956 100644 --- a/java-securitycentermanagement/README.md +++ b/java-securitycentermanagement/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import diff --git a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClient.java b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClient.java index fd8f8d391849..149a0ff77c4b 100644 --- a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClient.java +++ b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementClient.java @@ -4383,6 +4383,7 @@ public final SecurityCenterService getSecurityCenterService(String name) { * SecurityCenterServiceName.ofProjectLocationServiceName( * "[PROJECT]", "[LOCATION]", "[SERVICE]") * .toString()) + * .setShowEligibleModulesOnly(true) * .build(); * SecurityCenterService response = * securityCenterManagementClient.getSecurityCenterService(request); @@ -4417,6 +4418,7 @@ public final SecurityCenterService getSecurityCenterService( * SecurityCenterServiceName.ofProjectLocationServiceName( * "[PROJECT]", "[LOCATION]", "[SERVICE]") * .toString()) + * .setShowEligibleModulesOnly(true) * .build(); * ApiFuture future = * securityCenterManagementClient.getSecurityCenterServiceCallable().futureCall(request); @@ -4594,6 +4596,7 @@ public final ListSecurityCenterServicesPagedResponse listSecurityCenterServices( * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setShowEligibleModulesOnly(true) * .build(); * for (SecurityCenterService element : * securityCenterManagementClient.listSecurityCenterServices(request).iterateAll()) { @@ -4629,6 +4632,7 @@ public final ListSecurityCenterServicesPagedResponse listSecurityCenterServices( * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setShowEligibleModulesOnly(true) * .build(); * ApiFuture future = * securityCenterManagementClient @@ -4666,6 +4670,7 @@ public final ListSecurityCenterServicesPagedResponse listSecurityCenterServices( * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setShowEligibleModulesOnly(true) * .build(); * while (true) { * ListSecurityCenterServicesResponse response = diff --git a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/HttpJsonSecurityCenterManagementStub.java b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/HttpJsonSecurityCenterManagementStub.java index 10356e614dfd..3e5fcdb60131 100644 --- a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/HttpJsonSecurityCenterManagementStub.java +++ b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/HttpJsonSecurityCenterManagementStub.java @@ -989,6 +989,10 @@ public class HttpJsonSecurityCenterManagementStub extends SecurityCenterManageme Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, + "showEligibleModulesOnly", + request.getShowEligibleModulesOnly()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) @@ -1031,6 +1035,10 @@ public class HttpJsonSecurityCenterManagementStub extends SecurityCenterManageme ProtoRestSerializer.create(); serializer.putQueryParam(fields, "pageSize", request.getPageSize()); serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam( + fields, + "showEligibleModulesOnly", + request.getShowEligibleModulesOnly()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetSecurityCenterServiceRequest.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetSecurityCenterServiceRequest.java index bb59bf28cbbe..97b745fcc3bf 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetSecurityCenterServiceRequest.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetSecurityCenterServiceRequest.java @@ -148,6 +148,25 @@ public com.google.protobuf.ByteString getNameBytes() { } } + public static final int SHOW_ELIGIBLE_MODULES_ONLY_FIELD_NUMBER = 2; + private boolean showEligibleModulesOnly_ = false; + /** + * + * + *
          +   * Flag that, when set, will be used to filter the ModuleSettings that are
          +   * in scope. The default setting is that all modules will be shown.
          +   * 
          + * + * bool show_eligible_modules_only = 2; + * + * @return The showEligibleModulesOnly. + */ + @java.lang.Override + public boolean getShowEligibleModulesOnly() { + return showEligibleModulesOnly_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -165,6 +184,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } + if (showEligibleModulesOnly_ != false) { + output.writeBool(2, showEligibleModulesOnly_); + } getUnknownFields().writeTo(output); } @@ -177,6 +199,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } + if (showEligibleModulesOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, showEligibleModulesOnly_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -195,6 +220,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.securitycentermanagement.v1.GetSecurityCenterServiceRequest) obj; if (!getName().equals(other.getName())) return false; + if (getShowEligibleModulesOnly() != other.getShowEligibleModulesOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -208,6 +234,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + SHOW_ELIGIBLE_MODULES_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getShowEligibleModulesOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -357,6 +385,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; + showEligibleModulesOnly_ = false; return this; } @@ -401,6 +430,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.showEligibleModulesOnly_ = showEligibleModulesOnly_; + } } @java.lang.Override @@ -458,6 +490,9 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; onChanged(); } + if (other.getShowEligibleModulesOnly() != false) { + setShowEligibleModulesOnly(other.getShowEligibleModulesOnly()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -490,6 +525,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 + case 16: + { + showEligibleModulesOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -695,6 +736,62 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } + private boolean showEligibleModulesOnly_; + /** + * + * + *
          +     * Flag that, when set, will be used to filter the ModuleSettings that are
          +     * in scope. The default setting is that all modules will be shown.
          +     * 
          + * + * bool show_eligible_modules_only = 2; + * + * @return The showEligibleModulesOnly. + */ + @java.lang.Override + public boolean getShowEligibleModulesOnly() { + return showEligibleModulesOnly_; + } + /** + * + * + *
          +     * Flag that, when set, will be used to filter the ModuleSettings that are
          +     * in scope. The default setting is that all modules will be shown.
          +     * 
          + * + * bool show_eligible_modules_only = 2; + * + * @param value The showEligibleModulesOnly to set. + * @return This builder for chaining. + */ + public Builder setShowEligibleModulesOnly(boolean value) { + + showEligibleModulesOnly_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Flag that, when set, will be used to filter the ModuleSettings that are
          +     * in scope. The default setting is that all modules will be shown.
          +     * 
          + * + * bool show_eligible_modules_only = 2; + * + * @return This builder for chaining. + */ + public Builder clearShowEligibleModulesOnly() { + bitField0_ = (bitField0_ & ~0x00000002); + showEligibleModulesOnly_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetSecurityCenterServiceRequestOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetSecurityCenterServiceRequestOrBuilder.java index 899a020a3608..fe0a4f543a54 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetSecurityCenterServiceRequestOrBuilder.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/GetSecurityCenterServiceRequestOrBuilder.java @@ -80,4 +80,18 @@ public interface GetSecurityCenterServiceRequestOrBuilder * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
          +   * Flag that, when set, will be used to filter the ModuleSettings that are
          +   * in scope. The default setting is that all modules will be shown.
          +   * 
          + * + * bool show_eligible_modules_only = 2; + * + * @return The showEligibleModulesOnly. + */ + boolean getShowEligibleModulesOnly(); } diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityCenterServicesRequest.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityCenterServicesRequest.java index f92541f59a93..01c84abbd96a 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityCenterServicesRequest.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityCenterServicesRequest.java @@ -203,6 +203,25 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } + public static final int SHOW_ELIGIBLE_MODULES_ONLY_FIELD_NUMBER = 4; + private boolean showEligibleModulesOnly_ = false; + /** + * + * + *
          +   * Flag that, when set, will be used to filter the ModuleSettings that are
          +   * in scope. The default setting is that all modules will be shown.
          +   * 
          + * + * bool show_eligible_modules_only = 4; + * + * @return The showEligibleModulesOnly. + */ + @java.lang.Override + public boolean getShowEligibleModulesOnly() { + return showEligibleModulesOnly_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -226,6 +245,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } + if (showEligibleModulesOnly_ != false) { + output.writeBool(4, showEligibleModulesOnly_); + } getUnknownFields().writeTo(output); } @@ -244,6 +266,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } + if (showEligibleModulesOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, showEligibleModulesOnly_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -265,6 +290,7 @@ public boolean equals(final java.lang.Object obj) { if (!getParent().equals(other.getParent())) return false; if (getPageSize() != other.getPageSize()) return false; if (!getPageToken().equals(other.getPageToken())) return false; + if (getShowEligibleModulesOnly() != other.getShowEligibleModulesOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -282,6 +308,8 @@ public int hashCode() { hash = (53 * hash) + getPageSize(); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + SHOW_ELIGIBLE_MODULES_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getShowEligibleModulesOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -434,6 +462,7 @@ public Builder clear() { parent_ = ""; pageSize_ = 0; pageToken_ = ""; + showEligibleModulesOnly_ = false; return this; } @@ -484,6 +513,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000004) != 0)) { result.pageToken_ = pageToken_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.showEligibleModulesOnly_ = showEligibleModulesOnly_; + } } @java.lang.Override @@ -550,6 +582,9 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; onChanged(); } + if (other.getShowEligibleModulesOnly() != false) { + setShowEligibleModulesOnly(other.getShowEligibleModulesOnly()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -594,6 +629,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 32: + { + showEligibleModulesOnly_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -921,6 +962,62 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { return this; } + private boolean showEligibleModulesOnly_; + /** + * + * + *
          +     * Flag that, when set, will be used to filter the ModuleSettings that are
          +     * in scope. The default setting is that all modules will be shown.
          +     * 
          + * + * bool show_eligible_modules_only = 4; + * + * @return The showEligibleModulesOnly. + */ + @java.lang.Override + public boolean getShowEligibleModulesOnly() { + return showEligibleModulesOnly_; + } + /** + * + * + *
          +     * Flag that, when set, will be used to filter the ModuleSettings that are
          +     * in scope. The default setting is that all modules will be shown.
          +     * 
          + * + * bool show_eligible_modules_only = 4; + * + * @param value The showEligibleModulesOnly to set. + * @return This builder for chaining. + */ + public Builder setShowEligibleModulesOnly(boolean value) { + + showEligibleModulesOnly_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * Flag that, when set, will be used to filter the ModuleSettings that are
          +     * in scope. The default setting is that all modules will be shown.
          +     * 
          + * + * bool show_eligible_modules_only = 4; + * + * @return This builder for chaining. + */ + public Builder clearShowEligibleModulesOnly() { + bitField0_ = (bitField0_ & ~0x00000008); + showEligibleModulesOnly_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityCenterServicesRequestOrBuilder.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityCenterServicesRequestOrBuilder.java index 95f0ec4534a5..c1d60e30b124 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityCenterServicesRequestOrBuilder.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/ListSecurityCenterServicesRequestOrBuilder.java @@ -103,4 +103,18 @@ public interface ListSecurityCenterServicesRequestOrBuilder * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
          +   * Flag that, when set, will be used to filter the ModuleSettings that are
          +   * in scope. The default setting is that all modules will be shown.
          +   * 
          + * + * bool show_eligible_modules_only = 4; + * + * @return The showEligibleModulesOnly. + */ + boolean getShowEligibleModulesOnly(); } diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementProto.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementProto.java index b462cfd2d897..a6dc38638aca 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementProto.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SecurityCenterManagementProto.java @@ -235,7 +235,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "pty.proto\032 google/protobuf/field_mask.pr" + "oto\032\034google/protobuf/struct.proto\032\037googl" + "e/protobuf/timestamp.proto\032\027google/rpc/s" - + "tatus.proto\032\026google/type/expr.proto\"\255\n\n\025" + + "tatus.proto\032\026google/type/expr.proto\"\276\n\n\025" + "SecurityCenterService\022\021\n\004name\030\001 \001(\tB\003\340A\010" + "\022w\n\031intended_enablement_state\030\002 \001(\0162O.go" + "ogle.cloud.securitycentermanagement.v1.S" @@ -258,182 +258,183 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ulesEntry\022\013\n\003key\030\001 \001(\t\022]\n\005value\030\002 \001(\0132N." + "google.cloud.securitycentermanagement.v1" + ".SecurityCenterService.ModuleSettings:\0028" - + "\001\"]\n\017EnablementState\022 \n\034ENABLEMENT_STATE" + + "\001\"n\n\017EnablementState\022 \n\034ENABLEMENT_STATE" + "_UNSPECIFIED\020\000\022\r\n\tINHERITED\020\001\022\013\n\007ENABLED" - + "\020\002\022\014\n\010DISABLED\020\003:\330\002\352A\324\002\n=securitycenterm" - + "anagement.googleapis.com/SecurityCenterS" - + "ervice\022Hprojects/{project}/locations/{lo" - + "cation}/securityCenterServices/{service}" - + "\022Ffolders/{folder}/locations/{location}/" - + "securityCenterServices/{service}\022Rorgani" - + "zations/{organization}/locations/{locati" - + "on}/securityCenterServices/{service}*\026se" - + "curityCenterServices2\025securityCenterServ" - + "ice\"\356\007\n,EffectiveSecurityHealthAnalytics" - + "CustomModule\022\021\n\004name\030\001 \001(\tB\003\340A\010\022R\n\rcusto" - + "m_config\030\002 \001(\01326.google.cloud.securityce" - + "ntermanagement.v1.CustomConfigB\003\340A\003\022\205\001\n\020" - + "enablement_state\030\003 \001(\0162f.google.cloud.se" - + "curitycentermanagement.v1.EffectiveSecur" - + "ityHealthAnalyticsCustomModule.Enablemen" - + "tStateB\003\340A\003\022\031\n\014display_name\030\004 \001(\tB\003\340A\003\"N" - + "\n\017EnablementState\022 \n\034ENABLEMENT_STATE_UN" - + "SPECIFIED\020\000\022\013\n\007ENABLED\020\001\022\014\n\010DISABLED\020\002:\343" - + "\004\352A\337\004\nTsecuritycentermanagement.googleap" - + "is.com/EffectiveSecurityHealthAnalyticsC" - + "ustomModule\022\223\001organizations/{organizatio" - + "n}/locations/{location}/effectiveSecurit" - + "yHealthAnalyticsCustomModules/{effective" - + "_security_health_analytics_custom_module" - + "}\022\211\001projects/{project}/locations/{locati" - + "on}/effectiveSecurityHealthAnalyticsCust" - + "omModules/{effective_security_health_ana" - + "lytics_custom_module}\022\207\001folders/{folder}" - + "/locations/{location}/effectiveSecurityH" - + "ealthAnalyticsCustomModules/{effective_s" - + "ecurity_health_analytics_custom_module}*" - + "-effectiveSecurityHealthAnalyticsCustomM" - + "odules2,effectiveSecurityHealthAnalytics" - + "CustomModule\"\331\001\n8ListEffectiveSecurityHe" - + "althAnalyticsCustomModulesRequest\022l\n\006par" - + "ent\030\001 \001(\tB\\\340A\002\372AV\022Tsecuritycentermanagem" - + "ent.googleapis.com/EffectiveSecurityHeal" - + "thAnalyticsCustomModule\022\026\n\tpage_size\030\002 \001" - + "(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"\351\001\n9Lis" - + "tEffectiveSecurityHealthAnalyticsCustomM" - + "odulesResponse\022\222\001\n2effective_security_he" - + "alth_analytics_custom_modules\030\001 \003(\0132V.go" - + "ogle.cloud.securitycentermanagement.v1.E" + + "\020\002\022\014\n\010DISABLED\020\003\022\017\n\013INGEST_ONLY\020\004:\330\002\352A\324\002" + + "\n=securitycentermanagement.googleapis.co" + + "m/SecurityCenterService\022Hprojects/{proje" + + "ct}/locations/{location}/securityCenterS" + + "ervices/{service}\022Ffolders/{folder}/loca" + + "tions/{location}/securityCenterServices/" + + "{service}\022Rorganizations/{organization}/" + + "locations/{location}/securityCenterServi" + + "ces/{service}*\026securityCenterServices2\025s" + + "ecurityCenterService\"\356\007\n,EffectiveSecuri" + + "tyHealthAnalyticsCustomModule\022\021\n\004name\030\001 " + + "\001(\tB\003\340A\010\022R\n\rcustom_config\030\002 \001(\01326.google" + + ".cloud.securitycentermanagement.v1.Custo" + + "mConfigB\003\340A\003\022\205\001\n\020enablement_state\030\003 \001(\0162" + + "f.google.cloud.securitycentermanagement." + + "v1.EffectiveSecurityHealthAnalyticsCusto" + + "mModule.EnablementStateB\003\340A\003\022\031\n\014display_" + + "name\030\004 \001(\tB\003\340A\003\"N\n\017EnablementState\022 \n\034EN" + + "ABLEMENT_STATE_UNSPECIFIED\020\000\022\013\n\007ENABLED\020" + + "\001\022\014\n\010DISABLED\020\002:\343\004\352A\337\004\nTsecuritycenterma" + + "nagement.googleapis.com/EffectiveSecurit" + + "yHealthAnalyticsCustomModule\022\223\001organizat" + + "ions/{organization}/locations/{location}" + + "/effectiveSecurityHealthAnalyticsCustomM" + + "odules/{effective_security_health_analyt" + + "ics_custom_module}\022\211\001projects/{project}/" + + "locations/{location}/effectiveSecurityHe" + + "althAnalyticsCustomModules/{effective_se" + + "curity_health_analytics_custom_module}\022\207" + + "\001folders/{folder}/locations/{location}/e" + "ffectiveSecurityHealthAnalyticsCustomMod" - + "ule\022\027\n\017next_page_token\030\002 \001(\t\"\244\001\n6GetEffe" + + "ules/{effective_security_health_analytic" + + "s_custom_module}*-effectiveSecurityHealt" + + "hAnalyticsCustomModules2,effectiveSecuri" + + "tyHealthAnalyticsCustomModule\"\331\001\n8ListEf" + + "fectiveSecurityHealthAnalyticsCustomModu" + + "lesRequest\022l\n\006parent\030\001 \001(\tB\\\340A\002\372AV\022Tsecu" + + "ritycentermanagement.googleapis.com/Effe" + "ctiveSecurityHealthAnalyticsCustomModule" - + "Request\022j\n\004name\030\001 \001(\tB\\\340A\002\372AV\nTsecurityc" - + "entermanagement.googleapis.com/Effective" - + "SecurityHealthAnalyticsCustomModule\"\322\010\n#" - + "SecurityHealthAnalyticsCustomModule\022\021\n\004n" - + "ame\030\001 \001(\tB\003\340A\010\022\031\n\014display_name\030\002 \001(\tB\003\340A" - + "\001\022|\n\020enablement_state\030\003 \001(\0162].google.clo" - + "ud.securitycentermanagement.v1.SecurityH" - + "ealthAnalyticsCustomModule.EnablementSta" - + "teB\003\340A\001\0224\n\013update_time\030\004 \001(\0132\032.google.pr" - + "otobuf.TimestampB\003\340A\003\022\030\n\013last_editor\030\005 \001" - + "(\tB\003\340A\003\022l\n\017ancestor_module\030\006 \001(\tBS\340A\003\372AM" + + "\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003" + + " \001(\tB\003\340A\001\"\351\001\n9ListEffectiveSecurityHealt" + + "hAnalyticsCustomModulesResponse\022\222\001\n2effe" + + "ctive_security_health_analytics_custom_m" + + "odules\030\001 \003(\0132V.google.cloud.securitycent" + + "ermanagement.v1.EffectiveSecurityHealthA" + + "nalyticsCustomModule\022\027\n\017next_page_token\030" + + "\002 \001(\t\"\244\001\n6GetEffectiveSecurityHealthAnal" + + "yticsCustomModuleRequest\022j\n\004name\030\001 \001(\tB\\" + + "\340A\002\372AV\nTsecuritycentermanagement.googlea" + + "pis.com/EffectiveSecurityHealthAnalytics" + + "CustomModule\"\322\010\n#SecurityHealthAnalytics" + + "CustomModule\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\031\n\014displ" + + "ay_name\030\002 \001(\tB\003\340A\001\022|\n\020enablement_state\030\003" + + " \001(\0162].google.cloud.securitycentermanage" + + "ment.v1.SecurityHealthAnalyticsCustomMod" + + "ule.EnablementStateB\003\340A\001\0224\n\013update_time\030" + + "\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\030" + + "\n\013last_editor\030\005 \001(\tB\003\340A\003\022l\n\017ancestor_mod" + + "ule\030\006 \001(\tBS\340A\003\372AM\nKsecuritycentermanagem" + + "ent.googleapis.com/SecurityHealthAnalyti" + + "csCustomModule\022R\n\rcustom_config\030\007 \001(\01326." + + "google.cloud.securitycentermanagement.v1" + + ".CustomConfigB\003\340A\001\"]\n\017EnablementState\022 \n" + + "\034ENABLEMENT_STATE_UNSPECIFIED\020\000\022\013\n\007ENABL" + + "ED\020\001\022\014\n\010DISABLED\020\002\022\r\n\tINHERITED\020\003:\215\004\352A\211\004" + "\nKsecuritycentermanagement.googleapis.co" - + "m/SecurityHealthAnalyticsCustomModule\022R\n" - + "\rcustom_config\030\007 \001(\01326.google.cloud.secu" - + "ritycentermanagement.v1.CustomConfigB\003\340A" - + "\001\"]\n\017EnablementState\022 \n\034ENABLEMENT_STATE" - + "_UNSPECIFIED\020\000\022\013\n\007ENABLED\020\001\022\014\n\010DISABLED\020" - + "\002\022\r\n\tINHERITED\020\003:\215\004\352A\211\004\nKsecuritycenterm" - + "anagement.googleapis.com/SecurityHealthA" - + "nalyticsCustomModule\022\200\001organizations/{or" - + "ganization}/locations/{location}/securit" - + "yHealthAnalyticsCustomModules/{security_" - + "health_analytics_custom_module}\022vproject" - + "s/{project}/locations/{location}/securit" - + "yHealthAnalyticsCustomModules/{security_" - + "health_analytics_custom_module}\022tfolders" - + "/{folder}/locations/{location}/securityH" - + "ealthAnalyticsCustomModules/{security_he" - + "alth_analytics_custom_module}*$securityH" - + "ealthAnalyticsCustomModules2#securityHea" - + "lthAnalyticsCustomModule\"\353\005\n\014CustomConfi" - + "g\022)\n\tpredicate\030\001 \001(\0132\021.google.type.ExprB" - + "\003\340A\001\022c\n\rcustom_output\030\002 \001(\0132G.google.clo" - + "ud.securitycentermanagement.v1.CustomCon" - + "fig.CustomOutputSpecB\003\340A\001\022g\n\021resource_se" - + "lector\030\003 \001(\0132G.google.cloud.securitycent" - + "ermanagement.v1.CustomConfig.ResourceSel" - + "ectorB\003\340A\001\022V\n\010severity\030\004 \001(\0162?.google.cl" - + "oud.securitycentermanagement.v1.CustomCo" - + "nfig.SeverityB\003\340A\001\022\030\n\013description\030\005 \001(\tB" - + "\003\340A\001\022\033\n\016recommendation\030\006 \001(\tB\003\340A\001\032\316\001\n\020Cu" - + "stomOutputSpec\022i\n\nproperties\030\001 \003(\0132P.goo" - + "gle.cloud.securitycentermanagement.v1.Cu" - + "stomConfig.CustomOutputSpec.PropertyB\003\340A" - + "\001\032O\n\010Property\022\021\n\004name\030\001 \001(\tB\003\340A\001\0220\n\020valu" - + "e_expression\030\002 \001(\0132\021.google.type.ExprB\003\340" - + "A\001\032/\n\020ResourceSelector\022\033\n\016resource_types" - + "\030\001 \003(\tB\003\340A\001\"Q\n\010Severity\022\030\n\024SEVERITY_UNSP" - + "ECIFIED\020\000\022\014\n\010CRITICAL\020\001\022\010\n\004HIGH\020\002\022\n\n\006MED" - + "IUM\020\003\022\007\n\003LOW\020\004\"\307\001\n/ListSecurityHealthAna" - + "lyticsCustomModulesRequest\022c\n\006parent\030\001 \001" - + "(\tBS\340A\002\372AM\022Ksecuritycentermanagement.goo" - + "gleapis.com/SecurityHealthAnalyticsCusto" - + "mModule\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_" - + "token\030\003 \001(\tB\003\340A\001\"\314\001\n0ListSecurityHealthA" - + "nalyticsCustomModulesResponse\022\177\n(securit" - + "y_health_analytics_custom_modules\030\001 \003(\0132" - + "M.google.cloud.securitycentermanagement." - + "v1.SecurityHealthAnalyticsCustomModule\022\027" - + "\n\017next_page_token\030\002 \001(\t\"\321\001\n9ListDescenda" - + "ntSecurityHealthAnalyticsCustomModulesRe" - + "quest\022c\n\006parent\030\001 \001(\tBS\340A\002\372AM\022Ksecurityc" - + "entermanagement.googleapis.com/SecurityH" - + "ealthAnalyticsCustomModule\022\026\n\tpage_size\030" - + "\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"\326\001\n:" - + "ListDescendantSecurityHealthAnalyticsCus" - + "tomModulesResponse\022\177\n(security_health_an" - + "alytics_custom_modules\030\001 \003(\0132M.google.cl" - + "oud.securitycentermanagement.v1.Security" - + "HealthAnalyticsCustomModule\022\027\n\017next_page" - + "_token\030\002 \001(\t\"\222\001\n-GetSecurityHealthAnalyt" - + "icsCustomModuleRequest\022a\n\004name\030\001 \001(\tBS\340A" - + "\002\372AM\nKsecuritycentermanagement.googleapi" - + "s.com/SecurityHealthAnalyticsCustomModul" - + "e\"\271\002\n0CreateSecurityHealthAnalyticsCusto" - + "mModuleRequest\022c\n\006parent\030\001 \001(\tBS\340A\002\372AM\022K" - + "securitycentermanagement.googleapis.com/" - + "SecurityHealthAnalyticsCustomModule\022\203\001\n\'" - + "security_health_analytics_custom_module\030" - + "\002 \001(\0132M.google.cloud.securitycentermanag" + + "m/SecurityHealthAnalyticsCustomModule\022\200\001" + + "organizations/{organization}/locations/{" + + "location}/securityHealthAnalyticsCustomM" + + "odules/{security_health_analytics_custom" + + "_module}\022vprojects/{project}/locations/{" + + "location}/securityHealthAnalyticsCustomM" + + "odules/{security_health_analytics_custom" + + "_module}\022tfolders/{folder}/locations/{lo" + + "cation}/securityHealthAnalyticsCustomMod" + + "ules/{security_health_analytics_custom_m" + + "odule}*$securityHealthAnalyticsCustomMod" + + "ules2#securityHealthAnalyticsCustomModul" + + "e\"\353\005\n\014CustomConfig\022)\n\tpredicate\030\001 \001(\0132\021." + + "google.type.ExprB\003\340A\001\022c\n\rcustom_output\030\002" + + " \001(\0132G.google.cloud.securitycentermanage" + + "ment.v1.CustomConfig.CustomOutputSpecB\003\340" + + "A\001\022g\n\021resource_selector\030\003 \001(\0132G.google.c" + + "loud.securitycentermanagement.v1.CustomC" + + "onfig.ResourceSelectorB\003\340A\001\022V\n\010severity\030" + + "\004 \001(\0162?.google.cloud.securitycentermanag" + + "ement.v1.CustomConfig.SeverityB\003\340A\001\022\030\n\013d" + + "escription\030\005 \001(\tB\003\340A\001\022\033\n\016recommendation\030" + + "\006 \001(\tB\003\340A\001\032\316\001\n\020CustomOutputSpec\022i\n\nprope" + + "rties\030\001 \003(\0132P.google.cloud.securitycente" + + "rmanagement.v1.CustomConfig.CustomOutput" + + "Spec.PropertyB\003\340A\001\032O\n\010Property\022\021\n\004name\030\001" + + " \001(\tB\003\340A\001\0220\n\020value_expression\030\002 \001(\0132\021.go" + + "ogle.type.ExprB\003\340A\001\032/\n\020ResourceSelector\022" + + "\033\n\016resource_types\030\001 \003(\tB\003\340A\001\"Q\n\010Severity" + + "\022\030\n\024SEVERITY_UNSPECIFIED\020\000\022\014\n\010CRITICAL\020\001" + + "\022\010\n\004HIGH\020\002\022\n\n\006MEDIUM\020\003\022\007\n\003LOW\020\004\"\307\001\n/List" + + "SecurityHealthAnalyticsCustomModulesRequ" + + "est\022c\n\006parent\030\001 \001(\tBS\340A\002\372AM\022Ksecuritycen" + + "termanagement.googleapis.com/SecurityHea" + + "lthAnalyticsCustomModule\022\026\n\tpage_size\030\002 " + + "\001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"\314\001\n0Li" + + "stSecurityHealthAnalyticsCustomModulesRe" + + "sponse\022\177\n(security_health_analytics_cust" + + "om_modules\030\001 \003(\0132M.google.cloud.security" + + "centermanagement.v1.SecurityHealthAnalyt" + + "icsCustomModule\022\027\n\017next_page_token\030\002 \001(\t" + + "\"\321\001\n9ListDescendantSecurityHealthAnalyti" + + "csCustomModulesRequest\022c\n\006parent\030\001 \001(\tBS" + + "\340A\002\372AM\022Ksecuritycentermanagement.googlea" + + "pis.com/SecurityHealthAnalyticsCustomMod" + + "ule\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_toke" + + "n\030\003 \001(\tB\003\340A\001\"\326\001\n:ListDescendantSecurityH" + + "ealthAnalyticsCustomModulesResponse\022\177\n(s" + + "ecurity_health_analytics_custom_modules\030" + + "\001 \003(\0132M.google.cloud.securitycentermanag" + "ement.v1.SecurityHealthAnalyticsCustomMo" - + "duleB\003\340A\002\022\032\n\rvalidate_only\030\003 \001(\010B\003\340A\001\"\212\002" - + "\n0UpdateSecurityHealthAnalyticsCustomMod" - + "uleRequest\0224\n\013update_mask\030\001 \001(\0132\032.google" - + ".protobuf.FieldMaskB\003\340A\002\022\203\001\n\'security_he" - + "alth_analytics_custom_module\030\002 \001(\0132M.goo" - + "gle.cloud.securitycentermanagement.v1.Se" - + "curityHealthAnalyticsCustomModuleB\003\340A\002\022\032" - + "\n\rvalidate_only\030\003 \001(\010B\003\340A\001\"\261\001\n0DeleteSec" + + "dule\022\027\n\017next_page_token\030\002 \001(\t\"\222\001\n-GetSec" + "urityHealthAnalyticsCustomModuleRequest\022" + "a\n\004name\030\001 \001(\tBS\340A\002\372AM\nKsecuritycenterman" + "agement.googleapis.com/SecurityHealthAna" - + "lyticsCustomModule\022\032\n\rvalidate_only\030\002 \001(" - + "\010B\003\340A\001\"\301\003\n2SimulateSecurityHealthAnalyti" - + "csCustomModuleRequest\022\023\n\006parent\030\001 \001(\tB\003\340" - + "A\002\022R\n\rcustom_config\030\002 \001(\01326.google.cloud" - + ".securitycentermanagement.v1.CustomConfi" - + "gB\003\340A\002\022\205\001\n\010resource\030\003 \001(\0132n.google.cloud" - + ".securitycentermanagement.v1.SimulateSec" - + "urityHealthAnalyticsCustomModuleRequest." - + "SimulatedResourceB\003\340A\002\032\231\001\n\021SimulatedReso" - + "urce\022\032\n\rresource_type\030\001 \001(\tB\003\340A\002\0223\n\rreso" - + "urce_data\030\002 \001(\0132\027.google.protobuf.Struct" - + "B\003\340A\001\0223\n\017iam_policy_data\030\003 \001(\0132\025.google." - + "iam.v1.PolicyB\003\340A\001\"\363\010\n\020SimulatedFinding\022" - + "\021\n\004name\030\001 \001(\tB\003\340A\010\022\016\n\006parent\030\002 \001(\t\022\025\n\rre" - + "source_name\030\003 \001(\t\022\020\n\010category\030\004 \001(\t\022T\n\005s" - + "tate\030\005 \001(\0162@.google.cloud.securitycenter" - + "management.v1.SimulatedFinding.StateB\003\340A" - + "\003\022k\n\021source_properties\030\006 \003(\0132P.google.cl" - + "oud.securitycentermanagement.v1.Simulate" - + "dFinding.SourcePropertiesEntry\022.\n\nevent_" - + "time\030\007 \001(\0132\032.google.protobuf.Timestamp\022U" - + "\n\010severity\030\010 \001(\0162C.google.cloud.security" - + "centermanagement.v1.SimulatedFinding.Sev" - + "erity\022^\n\rfinding_class\030\t \001(\0162G.google.cl" - + "oud.securitycentermanagement.v1.Simulate" - + "dFinding.FindingClass\032O\n\025SourcePropertie" - + "sEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.goo" - + "gle.protobuf.Value:\0028\001\"8\n\005State\022\025\n\021STATE" - + "_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010INACTIVE\020\002" - + "\"Q\n\010Severity\022\030\n\024SEVERITY_UNSPECIFIED\020\000\022\014" - + "\n\010CRITICAL\020\001\022\010\n\004HIGH\020\002\022\n\n\006MEDIUM\020\003\022\007\n\003LO" - + "W\020\004\"\231\001\n\014FindingClass\022\035\n\031FINDING_CLASS_UN" - + "SPECIFIED\020\000\022\n\n\006THREAT\020\001\022\021\n\rVULNERABILITY" - + "\020\002\022\024\n\020MISCONFIGURATION\020\003\022\017\n\013OBSERVATION\020" - + "\004\022\r\n\tSCC_ERROR\020\005\022\025\n\021POSTURE_VIOLATION\020\006:" + + "lyticsCustomModule\"\271\002\n0CreateSecurityHea" + + "lthAnalyticsCustomModuleRequest\022c\n\006paren" + + "t\030\001 \001(\tBS\340A\002\372AM\022Ksecuritycentermanagemen" + + "t.googleapis.com/SecurityHealthAnalytics" + + "CustomModule\022\203\001\n\'security_health_analyti" + + "cs_custom_module\030\002 \001(\0132M.google.cloud.se" + + "curitycentermanagement.v1.SecurityHealth" + + "AnalyticsCustomModuleB\003\340A\002\022\032\n\rvalidate_o" + + "nly\030\003 \001(\010B\003\340A\001\"\212\002\n0UpdateSecurityHealthA" + + "nalyticsCustomModuleRequest\0224\n\013update_ma" + + "sk\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A" + + "\002\022\203\001\n\'security_health_analytics_custom_m" + + "odule\030\002 \001(\0132M.google.cloud.securitycente" + + "rmanagement.v1.SecurityHealthAnalyticsCu" + + "stomModuleB\003\340A\002\022\032\n\rvalidate_only\030\003 \001(\010B\003" + + "\340A\001\"\261\001\n0DeleteSecurityHealthAnalyticsCus" + + "tomModuleRequest\022a\n\004name\030\001 \001(\tBS\340A\002\372AM\nK" + + "securitycentermanagement.googleapis.com/" + + "SecurityHealthAnalyticsCustomModule\022\032\n\rv" + + "alidate_only\030\002 \001(\010B\003\340A\001\"\301\003\n2SimulateSecu" + + "rityHealthAnalyticsCustomModuleRequest\022\023" + + "\n\006parent\030\001 \001(\tB\003\340A\002\022R\n\rcustom_config\030\002 \001" + + "(\01326.google.cloud.securitycentermanageme" + + "nt.v1.CustomConfigB\003\340A\002\022\205\001\n\010resource\030\003 \001" + + "(\0132n.google.cloud.securitycentermanageme" + + "nt.v1.SimulateSecurityHealthAnalyticsCus" + + "tomModuleRequest.SimulatedResourceB\003\340A\002\032" + + "\231\001\n\021SimulatedResource\022\032\n\rresource_type\030\001" + + " \001(\tB\003\340A\002\0223\n\rresource_data\030\002 \001(\0132\027.googl" + + "e.protobuf.StructB\003\340A\001\0223\n\017iam_policy_dat" + + "a\030\003 \001(\0132\025.google.iam.v1.PolicyB\003\340A\001\"\212\t\n\020" + + "SimulatedFinding\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\016\n\006p" + + "arent\030\002 \001(\t\022\025\n\rresource_name\030\003 \001(\t\022\020\n\010ca" + + "tegory\030\004 \001(\t\022T\n\005state\030\005 \001(\0162@.google.clo" + + "ud.securitycentermanagement.v1.Simulated" + + "Finding.StateB\003\340A\003\022k\n\021source_properties\030" + + "\006 \003(\0132P.google.cloud.securitycentermanag" + + "ement.v1.SimulatedFinding.SourceProperti" + + "esEntry\022.\n\nevent_time\030\007 \001(\0132\032.google.pro" + + "tobuf.Timestamp\022U\n\010severity\030\010 \001(\0162C.goog" + + "le.cloud.securitycentermanagement.v1.Sim" + + "ulatedFinding.Severity\022^\n\rfinding_class\030" + + "\t \001(\0162G.google.cloud.securitycentermanag" + + "ement.v1.SimulatedFinding.FindingClass\032O" + + "\n\025SourcePropertiesEntry\022\013\n\003key\030\001 \001(\t\022%\n\005" + + "value\030\002 \001(\0132\026.google.protobuf.Value:\0028\001\"" + + "8\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIV" + + "E\020\001\022\014\n\010INACTIVE\020\002\"Q\n\010Severity\022\030\n\024SEVERIT" + + "Y_UNSPECIFIED\020\000\022\014\n\010CRITICAL\020\001\022\010\n\004HIGH\020\002\022" + + "\n\n\006MEDIUM\020\003\022\007\n\003LOW\020\004\"\260\001\n\014FindingClass\022\035\n" + + "\031FINDING_CLASS_UNSPECIFIED\020\000\022\n\n\006THREAT\020\001" + + "\022\021\n\rVULNERABILITY\020\002\022\024\n\020MISCONFIGURATION\020" + + "\003\022\017\n\013OBSERVATION\020\004\022\r\n\tSCC_ERROR\020\005\022\025\n\021POS" + + "TURE_VIOLATION\020\006\022\025\n\021TOXIC_COMBINATION\020\007:" + "\356\001\352A\352\001\n%securitycenter.googleapis.com/Fi" + "nding\022@organizations/{organization}/sour" + "ces/{source}/findings/{finding}\0224folders" @@ -577,312 +578,313 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".ValidateEventThreatDetectionCustomModul" + "eResponse.PositionH\001\210\001\001B\010\n\006_startB\006\n\004_en" + "d\0326\n\010Position\022\023\n\013line_number\030\001 \001(\005\022\025\n\rco" - + "lumn_number\030\002 \001(\005\"v\n\037GetSecurityCenterSe" - + "rviceRequest\022S\n\004name\030\001 \001(\tBE\340A\002\372A?\n=secu" - + "ritycentermanagement.googleapis.com/Secu" - + "rityCenterService\"\253\001\n!ListSecurityCenter" - + "ServicesRequest\022U\n\006parent\030\001 \001(\tBE\340A\002\372A?\022" - + "=securitycentermanagement.googleapis.com" - + "/SecurityCenterService\022\026\n\tpage_size\030\002 \001(" - + "\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"\240\001\n\"List" - + "SecurityCenterServicesResponse\022a\n\030securi" - + "ty_center_services\030\001 \003(\0132?.google.cloud." - + "securitycentermanagement.v1.SecurityCent" - + "erService\022\027\n\017next_page_token\030\002 \001(\t\"\335\001\n\"U" - + "pdateSecurityCenterServiceRequest\022e\n\027sec" - + "urity_center_service\030\001 \001(\0132?.google.clou" - + "d.securitycentermanagement.v1.SecurityCe" - + "nterServiceB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032." - + "google.protobuf.FieldMaskB\003\340A\002\022\032\n\rvalida" - + "te_only\030\003 \001(\010B\003\340A\0012\316U\n\030SecurityCenterMan" - + "agement\022\220\004\n1ListEffectiveSecurityHealthA" - + "nalyticsCustomModules\022b.google.cloud.sec" - + "uritycentermanagement.v1.ListEffectiveSe" - + "curityHealthAnalyticsCustomModulesReques" - + "t\032c.google.cloud.securitycentermanagemen" - + "t.v1.ListEffectiveSecurityHealthAnalytic" - + "sCustomModulesResponse\"\221\002\332A\006parent\202\323\344\223\002\201" - + "\002\022Q/v1/{parent=projects/*/locations/*}/e" - + "ffectiveSecurityHealthAnalyticsCustomMod" - + "ulesZR\022P/v1/{parent=folders/*/locations/" - + "*}/effectiveSecurityHealthAnalyticsCusto" - + "mModulesZX\022V/v1/{parent=organizations/*/" - + "locations/*}/effectiveSecurityHealthAnal" - + "yticsCustomModules\022\375\003\n/GetEffectiveSecur" - + "ityHealthAnalyticsCustomModule\022`.google." - + "cloud.securitycentermanagement.v1.GetEff" - + "ectiveSecurityHealthAnalyticsCustomModul" - + "eRequest\032V.google.cloud.securitycenterma" - + "nagement.v1.EffectiveSecurityHealthAnaly" - + "ticsCustomModule\"\217\002\332A\004name\202\323\344\223\002\201\002\022Q/v1/{" - + "name=projects/*/locations/*/effectiveSec" - + "urityHealthAnalyticsCustomModules/*}ZR\022P" - + "/v1/{name=folders/*/locations/*/effectiv" - + "eSecurityHealthAnalyticsCustomModules/*}" - + "ZX\022V/v1/{name=organizations/*/locations/" - + "*/effectiveSecurityHealthAnalyticsCustom" - + "Modules/*}\022\332\003\n(ListSecurityHealthAnalyti" - + "csCustomModules\022Y.google.cloud.securityc" - + "entermanagement.v1.ListSecurityHealthAna" - + "lyticsCustomModulesRequest\032Z.google.clou", - "d.securitycentermanagement.v1.ListSecuri" - + "tyHealthAnalyticsCustomModulesResponse\"\366" - + "\001\332A\006parent\202\323\344\223\002\346\001\022H/v1/{parent=projects/" - + "*/locations/*}/securityHealthAnalyticsCu" - + "stomModulesZI\022G/v1/{parent=folders/*/loc" - + "ations/*}/securityHealthAnalyticsCustomM" - + "odulesZO\022M/v1/{parent=organizations/*/lo" - + "cations/*}/securityHealthAnalyticsCustom" - + "Modules\022\245\004\n2ListDescendantSecurityHealth" - + "AnalyticsCustomModules\022c.google.cloud.se" - + "curitycentermanagement.v1.ListDescendant" - + "SecurityHealthAnalyticsCustomModulesRequ" - + "est\032d.google.cloud.securitycentermanagem" - + "ent.v1.ListDescendantSecurityHealthAnaly" - + "ticsCustomModulesResponse\"\243\002\332A\006parent\202\323\344" - + "\223\002\223\002\022W/v1/{parent=projects/*/locations/*" - + "}/securityHealthAnalyticsCustomModules:l" - + "istDescendantZX\022V/v1/{parent=folders/*/l" - + "ocations/*}/securityHealthAnalyticsCusto" - + "mModules:listDescendantZ^\022\\/v1/{parent=o" - + "rganizations/*/locations/*}/securityHeal" - + "thAnalyticsCustomModules:listDescendant\022" - + "\307\003\n&GetSecurityHealthAnalyticsCustomModu" - + "le\022W.google.cloud.securitycentermanageme" - + "nt.v1.GetSecurityHealthAnalyticsCustomMo" - + "duleRequest\032M.google.cloud.securitycente" - + "rmanagement.v1.SecurityHealthAnalyticsCu" - + "stomModule\"\364\001\332A\004name\202\323\344\223\002\346\001\022H/v1/{name=p" - + "rojects/*/locations/*/securityHealthAnal" - + "yticsCustomModules/*}ZI\022G/v1/{name=folde" - + "rs/*/locations/*/securityHealthAnalytics" - + "CustomModules/*}ZO\022M/v1/{name=organizati" - + "ons/*/locations/*/securityHealthAnalytic" - + "sCustomModules/*}\022\362\004\n)CreateSecurityHeal" - + "thAnalyticsCustomModule\022Z.google.cloud.s" - + "ecuritycentermanagement.v1.CreateSecurit" - + "yHealthAnalyticsCustomModuleRequest\032M.go" - + "ogle.cloud.securitycentermanagement.v1.S" - + "ecurityHealthAnalyticsCustomModule\"\231\003\332A." - + "parent,security_health_analytics_custom_" - + "module\202\323\344\223\002\341\002\"H/v1/{parent=projects/*/lo" - + "cations/*}/securityHealthAnalyticsCustom" - + "Modules:\'security_health_analytics_custo" - + "m_moduleZr\"G/v1/{parent=folders/*/locati" - + "ons/*}/securityHealthAnalyticsCustomModu" - + "les:\'security_health_analytics_custom_mo" - + "duleZx\"M/v1/{parent=organizations/*/loca" - + "tions/*}/securityHealthAnalyticsCustomMo" - + "dules:\'security_health_analytics_custom_" - + "module\022\361\005\n)UpdateSecurityHealthAnalytics" - + "CustomModule\022Z.google.cloud.securitycent" - + "ermanagement.v1.UpdateSecurityHealthAnal" - + "yticsCustomModuleRequest\032M.google.cloud." - + "securitycentermanagement.v1.SecurityHeal" - + "thAnalyticsCustomModule\"\230\004\332A3security_he" - + "alth_analytics_custom_module,update_mask" - + "\202\323\344\223\002\333\0032p/v1/{security_health_analytics_" - + "custom_module.name=projects/*/locations/" - + "*/securityHealthAnalyticsCustomModules/*" - + "}:\'security_health_analytics_custom_modu" - + "leZ\232\0012o/v1/{security_health_analytics_cu" - + "stom_module.name=folders/*/locations/*/s" - + "ecurityHealthAnalyticsCustomModules/*}:\'" - + "security_health_analytics_custom_moduleZ" - + "\240\0012u/v1/{security_health_analytics_custo" - + "m_module.name=organizations/*/locations/" - + "*/securityHealthAnalyticsCustomModules/*" - + "}:\'security_health_analytics_custom_modu" - + "le\022\226\003\n)DeleteSecurityHealthAnalyticsCust" - + "omModule\022Z.google.cloud.securitycenterma" - + "nagement.v1.DeleteSecurityHealthAnalytic" - + "sCustomModuleRequest\032\026.google.protobuf.E" - + "mpty\"\364\001\332A\004name\202\323\344\223\002\346\001*H/v1/{name=project" - + "s/*/locations/*/securityHealthAnalyticsC" - + "ustomModules/*}ZI*G/v1/{name=folders/*/l" + + "lumn_number\030\002 \001(\005\"\232\001\n\037GetSecurityCenterS" + + "erviceRequest\022S\n\004name\030\001 \001(\tBE\340A\002\372A?\n=sec" + + "uritycentermanagement.googleapis.com/Sec" + + "urityCenterService\022\"\n\032show_eligible_modu" + + "les_only\030\002 \001(\010\"\317\001\n!ListSecurityCenterSer" + + "vicesRequest\022U\n\006parent\030\001 \001(\tBE\340A\002\372A?\022=se" + + "curitycentermanagement.googleapis.com/Se" + + "curityCenterService\022\026\n\tpage_size\030\002 \001(\005B\003" + + "\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\"\n\032show_eli" + + "gible_modules_only\030\004 \001(\010\"\240\001\n\"ListSecurit" + + "yCenterServicesResponse\022a\n\030security_cent" + + "er_services\030\001 \003(\0132?.google.cloud.securit" + + "ycentermanagement.v1.SecurityCenterServi" + + "ce\022\027\n\017next_page_token\030\002 \001(\t\"\335\001\n\"UpdateSe" + + "curityCenterServiceRequest\022e\n\027security_c" + + "enter_service\030\001 \001(\0132?.google.cloud.secur" + + "itycentermanagement.v1.SecurityCenterSer" + + "viceB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google." + + "protobuf.FieldMaskB\003\340A\002\022\032\n\rvalidate_only" + + "\030\003 \001(\010B\003\340A\0012\316U\n\030SecurityCenterManagement" + + "\022\220\004\n1ListEffectiveSecurityHealthAnalytic" + + "sCustomModules\022b.google.cloud.securityce" + + "ntermanagement.v1.ListEffectiveSecurityH" + + "ealthAnalyticsCustomModulesRequest\032c.goo" + + "gle.cloud.securitycentermanagement.v1.Li" + + "stEffectiveSecurityHealthAnalyticsCustom" + + "ModulesResponse\"\221\002\332A\006parent\202\323\344\223\002\201\002\022Q/v1/" + + "{parent=projects/*/locations/*}/effectiv" + + "eSecurityHealthAnalyticsCustomModulesZR\022" + + "P/v1/{parent=folders/*/locations/*}/effe" + + "ctiveSecurityHealthAnalyticsCustomModule" + + "sZX\022V/v1/{parent=organizations/*/locatio" + + "ns/*}/effectiveSecurityHealthAnalyticsCu" + + "stomModules\022\375\003\n/GetEffectiveSecurityHeal" + + "thAnalyticsCustomModule\022`.google.cloud.s" + + "ecuritycentermanagement.v1.GetEffectiveS" + + "ecurityHealthAnalyticsCustomModuleReques" + + "t\032V.google.cloud.securitycentermanagemen" + + "t.v1.EffectiveSecurityHealthAnalyticsCus" + + "tomModule\"\217\002\332A\004name\202\323\344\223\002\201\002\022Q/v1/{name=pr" + + "ojects/*/locations/*/effectiveSecurityHe" + + "althAnalyticsCustomModules/*}ZR\022P/v1/{na" + + "me=folders/*/locations/*/effectiveSecuri" + + "tyHealthAnalyticsCustomModules/*}ZX\022V/v1" + + "/{name=organizations/*/locations/*/effec" + + "tiveSecurityHealthAnalyticsCustomModules" + + "/*}\022\332\003\n(ListSecurityHealthAnalyticsCusto", + "mModules\022Y.google.cloud.securitycenterma" + + "nagement.v1.ListSecurityHealthAnalyticsC" + + "ustomModulesRequest\032Z.google.cloud.secur" + + "itycentermanagement.v1.ListSecurityHealt" + + "hAnalyticsCustomModulesResponse\"\366\001\332A\006par" + + "ent\202\323\344\223\002\346\001\022H/v1/{parent=projects/*/locat" + + "ions/*}/securityHealthAnalyticsCustomMod" + + "ulesZI\022G/v1/{parent=folders/*/locations/" + + "*}/securityHealthAnalyticsCustomModulesZ" + + "O\022M/v1/{parent=organizations/*/locations" + + "/*}/securityHealthAnalyticsCustomModules" + + "\022\245\004\n2ListDescendantSecurityHealthAnalyti" + + "csCustomModules\022c.google.cloud.securityc" + + "entermanagement.v1.ListDescendantSecurit" + + "yHealthAnalyticsCustomModulesRequest\032d.g" + + "oogle.cloud.securitycentermanagement.v1." + + "ListDescendantSecurityHealthAnalyticsCus" + + "tomModulesResponse\"\243\002\332A\006parent\202\323\344\223\002\223\002\022W/" + + "v1/{parent=projects/*/locations/*}/secur" + + "ityHealthAnalyticsCustomModules:listDesc" + + "endantZX\022V/v1/{parent=folders/*/location" + + "s/*}/securityHealthAnalyticsCustomModule" + + "s:listDescendantZ^\022\\/v1/{parent=organiza" + + "tions/*/locations/*}/securityHealthAnaly" + + "ticsCustomModules:listDescendant\022\307\003\n&Get" + + "SecurityHealthAnalyticsCustomModule\022W.go" + + "ogle.cloud.securitycentermanagement.v1.G" + + "etSecurityHealthAnalyticsCustomModuleReq" + + "uest\032M.google.cloud.securitycentermanage" + + "ment.v1.SecurityHealthAnalyticsCustomMod" + + "ule\"\364\001\332A\004name\202\323\344\223\002\346\001\022H/v1/{name=projects" + + "/*/locations/*/securityHealthAnalyticsCu" + + "stomModules/*}ZI\022G/v1/{name=folders/*/lo" + + "cations/*/securityHealthAnalyticsCustomM" + + "odules/*}ZO\022M/v1/{name=organizations/*/l" + "ocations/*/securityHealthAnalyticsCustom" - + "Modules/*}ZO*M/v1/{name=organizations/*/" - + "locations/*/securityHealthAnalyticsCusto" - + "mModules/*}\022\236\004\n+SimulateSecurityHealthAn" - + "alyticsCustomModule\022\\.google.cloud.secur" - + "itycentermanagement.v1.SimulateSecurityH" - + "ealthAnalyticsCustomModuleRequest\032].goog" - + "le.cloud.securitycentermanagement.v1.Sim" - + "ulateSecurityHealthAnalyticsCustomModule" - + "Response\"\261\002\332A\035parent,custom_config,resou" - + "rce\202\323\344\223\002\212\002\"Q/v1/{parent=projects/*/locat" + + "Modules/*}\022\362\004\n)CreateSecurityHealthAnaly" + + "ticsCustomModule\022Z.google.cloud.security" + + "centermanagement.v1.CreateSecurityHealth" + + "AnalyticsCustomModuleRequest\032M.google.cl" + + "oud.securitycentermanagement.v1.Security" + + "HealthAnalyticsCustomModule\"\231\003\332A.parent," + + "security_health_analytics_custom_module\202" + + "\323\344\223\002\341\002\"H/v1/{parent=projects/*/locations" + + "/*}/securityHealthAnalyticsCustomModules" + + ":\'security_health_analytics_custom_modul" + + "eZr\"G/v1/{parent=folders/*/locations/*}/" + + "securityHealthAnalyticsCustomModules:\'se" + + "curity_health_analytics_custom_moduleZx\"" + + "M/v1/{parent=organizations/*/locations/*" + + "}/securityHealthAnalyticsCustomModules:\'" + + "security_health_analytics_custom_module\022" + + "\361\005\n)UpdateSecurityHealthAnalyticsCustomM" + + "odule\022Z.google.cloud.securitycentermanag" + + "ement.v1.UpdateSecurityHealthAnalyticsCu" + + "stomModuleRequest\032M.google.cloud.securit" + + "ycentermanagement.v1.SecurityHealthAnaly" + + "ticsCustomModule\"\230\004\332A3security_health_an" + + "alytics_custom_module,update_mask\202\323\344\223\002\333\003" + + "2p/v1/{security_health_analytics_custom_" + + "module.name=projects/*/locations/*/secur" + + "ityHealthAnalyticsCustomModules/*}:\'secu" + + "rity_health_analytics_custom_moduleZ\232\0012o" + + "/v1/{security_health_analytics_custom_mo" + + "dule.name=folders/*/locations/*/security" + + "HealthAnalyticsCustomModules/*}:\'securit" + + "y_health_analytics_custom_moduleZ\240\0012u/v1" + + "/{security_health_analytics_custom_modul" + + "e.name=organizations/*/locations/*/secur" + + "ityHealthAnalyticsCustomModules/*}:\'secu" + + "rity_health_analytics_custom_module\022\226\003\n)" + + "DeleteSecurityHealthAnalyticsCustomModul" + + "e\022Z.google.cloud.securitycentermanagemen" + + "t.v1.DeleteSecurityHealthAnalyticsCustom" + + "ModuleRequest\032\026.google.protobuf.Empty\"\364\001" + + "\332A\004name\202\323\344\223\002\346\001*H/v1/{name=projects/*/loc" + + "ations/*/securityHealthAnalyticsCustomMo" + + "dules/*}ZI*G/v1/{name=folders/*/location" + + "s/*/securityHealthAnalyticsCustomModules" + + "/*}ZO*M/v1/{name=organizations/*/locatio" + + "ns/*/securityHealthAnalyticsCustomModule" + + "s/*}\022\236\004\n+SimulateSecurityHealthAnalytics" + + "CustomModule\022\\.google.cloud.securitycent" + + "ermanagement.v1.SimulateSecurityHealthAn" + + "alyticsCustomModuleRequest\032].google.clou" + + "d.securitycentermanagement.v1.SimulateSe" + + "curityHealthAnalyticsCustomModuleRespons" + + "e\"\261\002\332A\035parent,custom_config,resource\202\323\344\223" + + "\002\212\002\"Q/v1/{parent=projects/*/locations/*}" + + "/securityHealthAnalyticsCustomModules:si" + + "mulate:\001*ZU\"P/v1/{parent=folders/*/locat" + "ions/*}/securityHealthAnalyticsCustomMod" - + "ules:simulate:\001*ZU\"P/v1/{parent=folders/" - + "*/locations/*}/securityHealthAnalyticsCu" - + "stomModules:simulate:\001*Z[\"V/v1/{parent=o" - + "rganizations/*/locations/*}/securityHeal" - + "thAnalyticsCustomModules:simulate:\001*\022\376\003\n" - + ".ListEffectiveEventThreatDetectionCustom" - + "Modules\022_.google.cloud.securitycenterman" - + "agement.v1.ListEffectiveEventThreatDetec" - + "tionCustomModulesRequest\032`.google.cloud." - + "securitycentermanagement.v1.ListEffectiv" - + "eEventThreatDetectionCustomModulesRespon" - + "se\"\210\002\332A\006parent\202\323\344\223\002\370\001\022N/v1/{parent=proje" - + "cts/*/locations/*}/effectiveEventThreatD" - + "etectionCustomModulesZO\022M/v1/{parent=fol" - + "ders/*/locations/*}/effectiveEventThreat" - + "DetectionCustomModulesZU\022S/v1/{parent=or" - + "ganizations/*/locations/*}/effectiveEven" - + "tThreatDetectionCustomModules\022\353\003\n,GetEff" - + "ectiveEventThreatDetectionCustomModule\022]" - + ".google.cloud.securitycentermanagement.v" - + "1.GetEffectiveEventThreatDetectionCustom" - + "ModuleRequest\032S.google.cloud.securitycen" - + "termanagement.v1.EffectiveEventThreatDet" - + "ectionCustomModule\"\206\002\332A\004name\202\323\344\223\002\370\001\022N/v1" - + "/{name=projects/*/locations/*/effectiveE" - + "ventThreatDetectionCustomModules/*}ZO\022M/" - + "v1/{name=folders/*/locations/*/effective" - + "EventThreatDetectionCustomModules/*}ZU\022S" - + "/v1/{name=organizations/*/locations/*/ef" + + "ules:simulate:\001*Z[\"V/v1/{parent=organiza" + + "tions/*/locations/*}/securityHealthAnaly" + + "ticsCustomModules:simulate:\001*\022\376\003\n.ListEf" + "fectiveEventThreatDetectionCustomModules" - + "/*}\022\310\003\n%ListEventThreatDetectionCustomMo" - + "dules\022V.google.cloud.securitycentermanag" - + "ement.v1.ListEventThreatDetectionCustomM" - + "odulesRequest\032W.google.cloud.securitycen" - + "termanagement.v1.ListEventThreatDetectio" - + "nCustomModulesResponse\"\355\001\332A\006parent\202\323\344\223\002\335" - + "\001\022E/v1/{parent=projects/*/locations/*}/e" - + "ventThreatDetectionCustomModulesZF\022D/v1/" - + "{parent=folders/*/locations/*}/eventThre" - + "atDetectionCustomModulesZL\022J/v1/{parent=" - + "organizations/*/locations/*}/eventThreat" - + "DetectionCustomModules\022\223\004\n/ListDescendan" - + "tEventThreatDetectionCustomModules\022`.goo" - + "gle.cloud.securitycentermanagement.v1.Li" - + "stDescendantEventThreatDetectionCustomMo" - + "dulesRequest\032a.google.cloud.securitycent" - + "ermanagement.v1.ListDescendantEventThrea" - + "tDetectionCustomModulesResponse\"\232\002\332A\006par" - + "ent\202\323\344\223\002\212\002\022T/v1/{parent=projects/*/locat" + + "\022_.google.cloud.securitycentermanagement" + + ".v1.ListEffectiveEventThreatDetectionCus" + + "tomModulesRequest\032`.google.cloud.securit" + + "ycentermanagement.v1.ListEffectiveEventT" + + "hreatDetectionCustomModulesResponse\"\210\002\332A" + + "\006parent\202\323\344\223\002\370\001\022N/v1/{parent=projects/*/l" + + "ocations/*}/effectiveEventThreatDetectio" + + "nCustomModulesZO\022M/v1/{parent=folders/*/" + + "locations/*}/effectiveEventThreatDetecti" + + "onCustomModulesZU\022S/v1/{parent=organizat" + + "ions/*/locations/*}/effectiveEventThreat" + + "DetectionCustomModules\022\353\003\n,GetEffectiveE" + + "ventThreatDetectionCustomModule\022].google" + + ".cloud.securitycentermanagement.v1.GetEf" + + "fectiveEventThreatDetectionCustomModuleR" + + "equest\032S.google.cloud.securitycentermana" + + "gement.v1.EffectiveEventThreatDetectionC" + + "ustomModule\"\206\002\332A\004name\202\323\344\223\002\370\001\022N/v1/{name=" + + "projects/*/locations/*/effectiveEventThr" + + "eatDetectionCustomModules/*}ZO\022M/v1/{nam" + + "e=folders/*/locations/*/effectiveEventTh" + + "reatDetectionCustomModules/*}ZU\022S/v1/{na" + + "me=organizations/*/locations/*/effective" + + "EventThreatDetectionCustomModules/*}\022\310\003\n" + + "%ListEventThreatDetectionCustomModules\022V" + + ".google.cloud.securitycentermanagement.v" + + "1.ListEventThreatDetectionCustomModulesR" + + "equest\032W.google.cloud.securitycentermana" + + "gement.v1.ListEventThreatDetectionCustom" + + "ModulesResponse\"\355\001\332A\006parent\202\323\344\223\002\335\001\022E/v1/" + + "{parent=projects/*/locations/*}/eventThr" + + "eatDetectionCustomModulesZF\022D/v1/{parent" + + "=folders/*/locations/*}/eventThreatDetec" + + "tionCustomModulesZL\022J/v1/{parent=organiz" + + "ations/*/locations/*}/eventThreatDetecti" + + "onCustomModules\022\223\004\n/ListDescendantEventT" + + "hreatDetectionCustomModules\022`.google.clo" + + "ud.securitycentermanagement.v1.ListDesce" + + "ndantEventThreatDetectionCustomModulesRe" + + "quest\032a.google.cloud.securitycentermanag" + + "ement.v1.ListDescendantEventThreatDetect" + + "ionCustomModulesResponse\"\232\002\332A\006parent\202\323\344\223" + + "\002\212\002\022T/v1/{parent=projects/*/locations/*}" + + "/eventThreatDetectionCustomModules:listD" + + "escendantZU\022S/v1/{parent=folders/*/locat" + "ions/*}/eventThreatDetectionCustomModule" - + "s:listDescendantZU\022S/v1/{parent=folders/" + + "s:listDescendantZ[\022Y/v1/{parent=organiza" + + "tions/*/locations/*}/eventThreatDetectio" + + "nCustomModules:listDescendant\022\265\003\n#GetEve" + + "ntThreatDetectionCustomModule\022T.google.c" + + "loud.securitycentermanagement.v1.GetEven" + + "tThreatDetectionCustomModuleRequest\032J.go" + + "ogle.cloud.securitycentermanagement.v1.E" + + "ventThreatDetectionCustomModule\"\353\001\332A\004nam" + + "e\202\323\344\223\002\335\001\022E/v1/{name=projects/*/locations" + + "/*/eventThreatDetectionCustomModules/*}Z" + + "F\022D/v1/{name=folders/*/locations/*/event" + + "ThreatDetectionCustomModules/*}ZL\022J/v1/{" + + "name=organizations/*/locations/*/eventTh" + + "reatDetectionCustomModules/*}\022\324\004\n&Create" + + "EventThreatDetectionCustomModule\022W.googl" + + "e.cloud.securitycentermanagement.v1.Crea" + + "teEventThreatDetectionCustomModuleReques" + + "t\032J.google.cloud.securitycentermanagemen" + + "t.v1.EventThreatDetectionCustomModule\"\204\003" + + "\332A+parent,event_threat_detection_custom_" + + "module\202\323\344\223\002\317\002\"E/v1/{parent=projects/*/lo" + + "cations/*}/eventThreatDetectionCustomMod" + + "ules:$event_threat_detection_custom_modu" + + "leZl\"D/v1/{parent=folders/*/locations/*}" + + "/eventThreatDetectionCustomModules:$even" + + "t_threat_detection_custom_moduleZr\"J/v1/" + + "{parent=organizations/*/locations/*}/eve" + + "ntThreatDetectionCustomModules:$event_th" + + "reat_detection_custom_module\022\312\005\n&UpdateE" + + "ventThreatDetectionCustomModule\022W.google" + + ".cloud.securitycentermanagement.v1.Updat" + + "eEventThreatDetectionCustomModuleRequest" + + "\032J.google.cloud.securitycentermanagement" + + ".v1.EventThreatDetectionCustomModule\"\372\003\332" + + "A0event_threat_detection_custom_module,u" + + "pdate_mask\202\323\344\223\002\300\0032j/v1/{event_threat_det" + + "ection_custom_module.name=projects/*/loc" + + "ations/*/eventThreatDetectionCustomModul" + + "es/*}:$event_threat_detection_custom_mod" + + "uleZ\221\0012i/v1/{event_threat_detection_cust" + + "om_module.name=folders/*/locations/*/eve" + + "ntThreatDetectionCustomModules/*}:$event" + + "_threat_detection_custom_moduleZ\227\0012o/v1/" + + "{event_threat_detection_custom_module.na" + + "me=organizations/*/locations/*/eventThre" + + "atDetectionCustomModules/*}:$event_threa" + + "t_detection_custom_module\022\207\003\n&DeleteEven" + + "tThreatDetectionCustomModule\022W.google.cl" + + "oud.securitycentermanagement.v1.DeleteEv" + + "entThreatDetectionCustomModuleRequest\032\026." + + "google.protobuf.Empty\"\353\001\332A\004name\202\323\344\223\002\335\001*E" + + "/v1/{name=projects/*/locations/*/eventTh" + + "reatDetectionCustomModules/*}ZF*D/v1/{na" + + "me=folders/*/locations/*/eventThreatDete" + + "ctionCustomModules/*}ZL*J/v1/{name=organ" + + "izations/*/locations/*/eventThreatDetect" + + "ionCustomModules/*}\022\354\003\n(ValidateEventThr" + + "eatDetectionCustomModule\022Y.google.cloud." + + "securitycentermanagement.v1.ValidateEven" + + "tThreatDetectionCustomModuleRequest\032Z.go" + + "ogle.cloud.securitycentermanagement.v1.V" + + "alidateEventThreatDetectionCustomModuleR" + + "esponse\"\210\002\202\323\344\223\002\201\002\"N/v1/{parent=projects/" + "*/locations/*}/eventThreatDetectionCusto" - + "mModules:listDescendantZ[\022Y/v1/{parent=o" - + "rganizations/*/locations/*}/eventThreatD" - + "etectionCustomModules:listDescendant\022\265\003\n" - + "#GetEventThreatDetectionCustomModule\022T.g" + + "mModules:validate:\001*ZR\"M/v1/{parent=fold" + + "ers/*/locations/*}/eventThreatDetectionC" + + "ustomModules:validate:\001*ZX\"S/v1/{parent=" + + "organizations/*/locations/*}/eventThreat" + + "DetectionCustomModules:validate:\001*\022\363\002\n\030G" + + "etSecurityCenterService\022I.google.cloud.s" + + "ecuritycentermanagement.v1.GetSecurityCe" + + "nterServiceRequest\032?.google.cloud.securi" + + "tycentermanagement.v1.SecurityCenterServ" + + "ice\"\312\001\332A\004name\202\323\344\223\002\274\001\022:/v1/{name=projects" + + "/*/locations/*/securityCenterServices/*}" + + "Z;\0229/v1/{name=folders/*/locations/*/secu" + + "rityCenterServices/*}ZA\022?/v1/{name=organ" + + "izations/*/locations/*/securityCenterSer" + + "vices/*}\022\206\003\n\032ListSecurityCenterServices\022" + + "K.google.cloud.securitycentermanagement." + + "v1.ListSecurityCenterServicesRequest\032L.g" + "oogle.cloud.securitycentermanagement.v1." - + "GetEventThreatDetectionCustomModuleReque" - + "st\032J.google.cloud.securitycentermanageme" - + "nt.v1.EventThreatDetectionCustomModule\"\353" - + "\001\332A\004name\202\323\344\223\002\335\001\022E/v1/{name=projects/*/lo" - + "cations/*/eventThreatDetectionCustomModu" - + "les/*}ZF\022D/v1/{name=folders/*/locations/" - + "*/eventThreatDetectionCustomModules/*}ZL" - + "\022J/v1/{name=organizations/*/locations/*/" - + "eventThreatDetectionCustomModules/*}\022\324\004\n" - + "&CreateEventThreatDetectionCustomModule\022" - + "W.google.cloud.securitycentermanagement." - + "v1.CreateEventThreatDetectionCustomModul" - + "eRequest\032J.google.cloud.securitycenterma" - + "nagement.v1.EventThreatDetectionCustomMo" - + "dule\"\204\003\332A+parent,event_threat_detection_" - + "custom_module\202\323\344\223\002\317\002\"E/v1/{parent=projec" - + "ts/*/locations/*}/eventThreatDetectionCu" - + "stomModules:$event_threat_detection_cust" - + "om_moduleZl\"D/v1/{parent=folders/*/locat" - + "ions/*}/eventThreatDetectionCustomModule" - + "s:$event_threat_detection_custom_moduleZ" - + "r\"J/v1/{parent=organizations/*/locations" - + "/*}/eventThreatDetectionCustomModules:$e" - + "vent_threat_detection_custom_module\022\312\005\n&" - + "UpdateEventThreatDetectionCustomModule\022W" - + ".google.cloud.securitycentermanagement.v" - + "1.UpdateEventThreatDetectionCustomModule" - + "Request\032J.google.cloud.securitycenterman" - + "agement.v1.EventThreatDetectionCustomMod" - + "ule\"\372\003\332A0event_threat_detection_custom_m" - + "odule,update_mask\202\323\344\223\002\300\0032j/v1/{event_thr" - + "eat_detection_custom_module.name=project" - + "s/*/locations/*/eventThreatDetectionCust" - + "omModules/*}:$event_threat_detection_cus" - + "tom_moduleZ\221\0012i/v1/{event_threat_detecti" - + "on_custom_module.name=folders/*/location" - + "s/*/eventThreatDetectionCustomModules/*}" - + ":$event_threat_detection_custom_moduleZ\227" - + "\0012o/v1/{event_threat_detection_custom_mo" - + "dule.name=organizations/*/locations/*/ev" - + "entThreatDetectionCustomModules/*}:$even" - + "t_threat_detection_custom_module\022\207\003\n&Del" - + "eteEventThreatDetectionCustomModule\022W.go" - + "ogle.cloud.securitycentermanagement.v1.D" - + "eleteEventThreatDetectionCustomModuleReq" - + "uest\032\026.google.protobuf.Empty\"\353\001\332A\004name\202\323" - + "\344\223\002\335\001*E/v1/{name=projects/*/locations/*/" - + "eventThreatDetectionCustomModules/*}ZF*D" - + "/v1/{name=folders/*/locations/*/eventThr" - + "eatDetectionCustomModules/*}ZL*J/v1/{nam" - + "e=organizations/*/locations/*/eventThrea" - + "tDetectionCustomModules/*}\022\354\003\n(ValidateE" - + "ventThreatDetectionCustomModule\022Y.google" - + ".cloud.securitycentermanagement.v1.Valid" - + "ateEventThreatDetectionCustomModuleReque" - + "st\032Z.google.cloud.securitycentermanageme" - + "nt.v1.ValidateEventThreatDetectionCustom" - + "ModuleResponse\"\210\002\202\323\344\223\002\201\002\"N/v1/{parent=pr" - + "ojects/*/locations/*}/eventThreatDetecti" - + "onCustomModules:validate:\001*ZR\"M/v1/{pare" - + "nt=folders/*/locations/*}/eventThreatDet" - + "ectionCustomModules:validate:\001*ZX\"S/v1/{" - + "parent=organizations/*/locations/*}/even" - + "tThreatDetectionCustomModules:validate:\001" - + "*\022\363\002\n\030GetSecurityCenterService\022I.google." - + "cloud.securitycentermanagement.v1.GetSec" - + "urityCenterServiceRequest\032?.google.cloud" - + ".securitycentermanagement.v1.SecurityCen" - + "terService\"\312\001\332A\004name\202\323\344\223\002\274\001\022:/v1/{name=p" - + "rojects/*/locations/*/securityCenterServ" - + "ices/*}Z;\0229/v1/{name=folders/*/locations" - + "/*/securityCenterServices/*}ZA\022?/v1/{nam" - + "e=organizations/*/locations/*/securityCe" - + "nterServices/*}\022\206\003\n\032ListSecurityCenterSe" - + "rvices\022K.google.cloud.securitycentermana" - + "gement.v1.ListSecurityCenterServicesRequ" - + "est\032L.google.cloud.securitycentermanagem" - + "ent.v1.ListSecurityCenterServicesRespons" - + "e\"\314\001\332A\006parent\202\323\344\223\002\274\001\022:/v1/{parent=projec" - + "ts/*/locations/*}/securityCenterServices" - + "Z;\0229/v1/{parent=folders/*/locations/*}/s" - + "ecurityCenterServicesZA\022?/v1/{parent=org" - + "anizations/*/locations/*}/securityCenter" - + "Services\022\253\004\n\033UpdateSecurityCenterService" - + "\022L.google.cloud.securitycentermanagement" - + ".v1.UpdateSecurityCenterServiceRequest\032?" - + ".google.cloud.securitycentermanagement.v" - + "1.SecurityCenterService\"\374\002\332A#security_ce" - + "nter_service,update_mask\202\323\344\223\002\317\0022R/v1/{se" - + "curity_center_service.name=projects/*/lo" - + "cations/*/securityCenterServices/*}:\027sec" - + "urity_center_serviceZl2Q/v1/{security_ce" - + "nter_service.name=folders/*/locations/*/" - + "securityCenterServices/*}:\027security_cent" - + "er_serviceZr2W/v1/{security_center_servi" - + "ce.name=organizations/*/locations/*/secu" - + "rityCenterServices/*}:\027security_center_s" - + "ervice\032[\312A\'securitycentermanagement.goog" - + "leapis.com\322A.https://www.googleapis.com/" - + "auth/cloud-platformB\223\004\n,com.google.cloud" - + ".securitycentermanagement.v1B\035SecurityCe" - + "nterManagementProtoP\001Zhcloud.google.com/" - + "go/securitycentermanagement/apiv1/securi" - + "tycentermanagementpb;securitycentermanag" - + "ementpb\252\002(Google.Cloud.SecurityCenterMan" - + "agement.V1\312\002(Google\\Cloud\\SecurityCenter" - + "Management\\V1\352\002+Google::Cloud::SecurityC" - + "enterManagement::V1\352Aq\nDISABLED = 3;
          */ DISABLED(3), + /** + * + * + *
          +     * SCC is configured to ingest findings from this service but not enable
          +     * this service. Not a valid intended_enablement_state (that is, this is a
          +     * readonly state).
          +     * 
          + * + * INGEST_ONLY = 4; + */ + INGEST_ONLY(4), UNRECOGNIZED(-1), ; @@ -178,6 +190,18 @@ public enum EnablementState implements com.google.protobuf.ProtocolMessageEnum { * DISABLED = 3; */ public static final int DISABLED_VALUE = 3; + /** + * + * + *
          +     * SCC is configured to ingest findings from this service but not enable
          +     * this service. Not a valid intended_enablement_state (that is, this is a
          +     * readonly state).
          +     * 
          + * + * INGEST_ONLY = 4; + */ + public static final int INGEST_ONLY_VALUE = 4; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -211,6 +235,8 @@ public static EnablementState forNumber(int value) { return ENABLED; case 3: return DISABLED; + case 4: + return INGEST_ONLY; default: return null; } diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulatedFinding.java b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulatedFinding.java index ff5ea29f9c22..26ab9a380bd9 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulatedFinding.java +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/java/com/google/cloud/securitycentermanagement/v1/SimulatedFinding.java @@ -613,6 +613,17 @@ public enum FindingClass implements com.google.protobuf.ProtocolMessageEnum { * POSTURE_VIOLATION = 6; */ POSTURE_VIOLATION(6), + /** + * + * + *
          +     * Describes a combination of security issues that represent a more severe
          +     * security problem when taken together.
          +     * 
          + * + * TOXIC_COMBINATION = 7; + */ + TOXIC_COMBINATION(7), UNRECOGNIZED(-1), ; @@ -689,6 +700,17 @@ public enum FindingClass implements com.google.protobuf.ProtocolMessageEnum { * POSTURE_VIOLATION = 6; */ public static final int POSTURE_VIOLATION_VALUE = 6; + /** + * + * + *
          +     * Describes a combination of security issues that represent a more severe
          +     * security problem when taken together.
          +     * 
          + * + * TOXIC_COMBINATION = 7; + */ + public static final int TOXIC_COMBINATION_VALUE = 7; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -728,6 +750,8 @@ public static FindingClass forNumber(int value) { return SCC_ERROR; case 6: return POSTURE_VIOLATION; + case 7: + return TOXIC_COMBINATION; default: return null; } diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/proto/google/cloud/securitycentermanagement/v1/security_center_management.proto b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/proto/google/cloud/securitycentermanagement/v1/security_center_management.proto index de29caf7655a..dca152b5bc48 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/proto/google/cloud/securitycentermanagement/v1/security_center_management.proto +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/src/main/proto/google/cloud/securitycentermanagement/v1/security_center_management.proto @@ -493,6 +493,11 @@ message SecurityCenterService { // State is disabled. DISABLED = 3; + + // SCC is configured to ingest findings from this service but not enable + // this service. Not a valid intended_enablement_state (that is, this is a + // readonly state). + INGEST_ONLY = 4; } // Identifier. The name of the service. @@ -1103,6 +1108,10 @@ message SimulatedFinding { // Describes a potential security risk due to a change in the security // posture. POSTURE_VIOLATION = 6; + + // Describes a combination of security issues that represent a more severe + // security problem when taken together. + TOXIC_COMBINATION = 7; } // Identifier. The [relative resource @@ -1619,6 +1628,10 @@ message GetSecurityCenterServiceRequest { type: "securitycentermanagement.googleapis.com/SecurityCenterService" } ]; + + // Flag that, when set, will be used to filter the ModuleSettings that are + // in scope. The default setting is that all modules will be shown. + bool show_eligible_modules_only = 2; } // Request message for listing Security Command Center services. @@ -1643,6 +1656,10 @@ message ListSecurityCenterServicesRequest { // Optional. The value returned by the last call indicating a continuation. string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Flag that, when set, will be used to filter the ModuleSettings that are + // in scope. The default setting is that all modules will be shown. + bool show_eligible_modules_only = 4; } // Response message for listing Security Command Center services. diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecuritycenterservice/AsyncGetSecurityCenterService.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecuritycenterservice/AsyncGetSecurityCenterService.java index 3a8c0e67f4db..30ac075790bb 100644 --- a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecuritycenterservice/AsyncGetSecurityCenterService.java +++ b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecuritycenterservice/AsyncGetSecurityCenterService.java @@ -43,6 +43,7 @@ public static void asyncGetSecurityCenterService() throws Exception { SecurityCenterServiceName.ofProjectLocationServiceName( "[PROJECT]", "[LOCATION]", "[SERVICE]") .toString()) + .setShowEligibleModulesOnly(true) .build(); ApiFuture future = securityCenterManagementClient.getSecurityCenterServiceCallable().futureCall(request); diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecuritycenterservice/SyncGetSecurityCenterService.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecuritycenterservice/SyncGetSecurityCenterService.java index e2feb13a98b7..f0727c1e616b 100644 --- a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecuritycenterservice/SyncGetSecurityCenterService.java +++ b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/getsecuritycenterservice/SyncGetSecurityCenterService.java @@ -42,6 +42,7 @@ public static void syncGetSecurityCenterService() throws Exception { SecurityCenterServiceName.ofProjectLocationServiceName( "[PROJECT]", "[LOCATION]", "[SERVICE]") .toString()) + .setShowEligibleModulesOnly(true) .build(); SecurityCenterService response = securityCenterManagementClient.getSecurityCenterService(request); diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecuritycenterservices/AsyncListSecurityCenterServices.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecuritycenterservices/AsyncListSecurityCenterServices.java index 7cbaf01a402a..fd3ffa590d5e 100644 --- a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecuritycenterservices/AsyncListSecurityCenterServices.java +++ b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecuritycenterservices/AsyncListSecurityCenterServices.java @@ -42,6 +42,7 @@ public static void asyncListSecurityCenterServices() throws Exception { .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") + .setShowEligibleModulesOnly(true) .build(); ApiFuture future = securityCenterManagementClient diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecuritycenterservices/AsyncListSecurityCenterServicesPaged.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecuritycenterservices/AsyncListSecurityCenterServicesPaged.java index a5381c6360a9..de56d00e3d47 100644 --- a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecuritycenterservices/AsyncListSecurityCenterServicesPaged.java +++ b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecuritycenterservices/AsyncListSecurityCenterServicesPaged.java @@ -43,6 +43,7 @@ public static void asyncListSecurityCenterServicesPaged() throws Exception { .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") + .setShowEligibleModulesOnly(true) .build(); while (true) { ListSecurityCenterServicesResponse response = diff --git a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecuritycenterservices/SyncListSecurityCenterServices.java b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecuritycenterservices/SyncListSecurityCenterServices.java index bcf8a409066d..2183be06ca00 100644 --- a/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecuritycenterservices/SyncListSecurityCenterServices.java +++ b/java-securitycentermanagement/samples/snippets/generated/com/google/cloud/securitycentermanagement/v1/securitycentermanagement/listsecuritycenterservices/SyncListSecurityCenterServices.java @@ -41,6 +41,7 @@ public static void syncListSecurityCenterServices() throws Exception { .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") + .setShowEligibleModulesOnly(true) .build(); for (SecurityCenterService element : securityCenterManagementClient.listSecurityCenterServices(request).iterateAll()) { diff --git a/java-securityposture/README.md b/java-securityposture/README.md index 81175d18d7ab..09ff2eb795cc 100644 --- a/java-securityposture/README.md +++ b/java-securityposture/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-securityposture.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securityposture/0.9.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securityposture/0.10.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-service-control/README.md b/java-service-control/README.md index 27cbf395f50a..28550d2a688a 100644 --- a/java-service-control/README.md +++ b/java-service-control/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-service-control.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-control/1.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-control/1.45.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-service-management/README.md b/java-service-management/README.md index bdda7d94dc64..8297ce1e4eb8 100644 --- a/java-service-management/README.md +++ b/java-service-management/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-service-management.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-management/3.42.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-management/3.43.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-service-usage/README.md b/java-service-usage/README.md index 88f4b9a45be5..cb8b54564fe5 100644 --- a/java-service-usage/README.md +++ b/java-service-usage/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-service-usage.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-usage/2.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-usage/2.45.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-servicedirectory/README.md b/java-servicedirectory/README.md index 478582bf9a28..00fbea67e71d 100644 --- a/java-servicedirectory/README.md +++ b/java-servicedirectory/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-servicedirectory.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-servicedirectory/2.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-servicedirectory/2.46.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-servicehealth/README.md b/java-servicehealth/README.md index b453d49b3743..88f26b50c541 100644 --- a/java-servicehealth/README.md +++ b/java-servicehealth/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-servicehealth.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-servicehealth/0.11.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-servicehealth/0.12.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shell/README.md b/java-shell/README.md index 7a0b918fad14..9eed7513b828 100644 --- a/java-shell/README.md +++ b/java-shell/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-shell.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-shell/2.43.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-shell/2.44.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-css/README.md b/java-shopping-css/README.md index ec37d784a29d..2e14f51019e2 100644 --- a/java-shopping-css/README.md +++ b/java-shopping-css/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-css.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-css/0.12.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-css/0.13.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/Attributes.java b/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/Attributes.java index 4371aa524ef4..b7cfa80e4180 100644 --- a/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/Attributes.java +++ b/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/Attributes.java @@ -2484,7 +2484,7 @@ public com.google.shopping.css.v1.CertificationOrBuilder getCertificationsOrBuil * Date on which the item should expire, as specified upon insertion, in * [ISO * 8601](http://en.wikipedia.org/wiki/ISO_8601) format. The actual - * expiration date in Google Shopping is exposed in `productstatuses` as + * expiration date is exposed in `productstatuses` as * [googleExpirationDate](https://support.google.com/merchants/answer/6324499) * and might be earlier if `expirationDate` is too far in the future. * Note: It may take 2+ days from the expiration date for the item to @@ -2506,7 +2506,7 @@ public boolean hasExpirationDate() { * Date on which the item should expire, as specified upon insertion, in * [ISO * 8601](http://en.wikipedia.org/wiki/ISO_8601) format. The actual - * expiration date in Google Shopping is exposed in `productstatuses` as + * expiration date is exposed in `productstatuses` as * [googleExpirationDate](https://support.google.com/merchants/answer/6324499) * and might be earlier if `expirationDate` is too far in the future. * Note: It may take 2+ days from the expiration date for the item to @@ -2530,7 +2530,7 @@ public com.google.protobuf.Timestamp getExpirationDate() { * Date on which the item should expire, as specified upon insertion, in * [ISO * 8601](http://en.wikipedia.org/wiki/ISO_8601) format. The actual - * expiration date in Google Shopping is exposed in `productstatuses` as + * expiration date is exposed in `productstatuses` as * [googleExpirationDate](https://support.google.com/merchants/answer/6324499) * and might be earlier if `expirationDate` is too far in the future. * Note: It may take 2+ days from the expiration date for the item to @@ -10870,7 +10870,7 @@ public com.google.shopping.css.v1.Certification.Builder addCertificationsBuilder * Date on which the item should expire, as specified upon insertion, in * [ISO * 8601](http://en.wikipedia.org/wiki/ISO_8601) format. The actual - * expiration date in Google Shopping is exposed in `productstatuses` as + * expiration date is exposed in `productstatuses` as * [googleExpirationDate](https://support.google.com/merchants/answer/6324499) * and might be earlier if `expirationDate` is too far in the future. * Note: It may take 2+ days from the expiration date for the item to @@ -10891,7 +10891,7 @@ public boolean hasExpirationDate() { * Date on which the item should expire, as specified upon insertion, in * [ISO * 8601](http://en.wikipedia.org/wiki/ISO_8601) format. The actual - * expiration date in Google Shopping is exposed in `productstatuses` as + * expiration date is exposed in `productstatuses` as * [googleExpirationDate](https://support.google.com/merchants/answer/6324499) * and might be earlier if `expirationDate` is too far in the future. * Note: It may take 2+ days from the expiration date for the item to @@ -10918,7 +10918,7 @@ public com.google.protobuf.Timestamp getExpirationDate() { * Date on which the item should expire, as specified upon insertion, in * [ISO * 8601](http://en.wikipedia.org/wiki/ISO_8601) format. The actual - * expiration date in Google Shopping is exposed in `productstatuses` as + * expiration date is exposed in `productstatuses` as * [googleExpirationDate](https://support.google.com/merchants/answer/6324499) * and might be earlier if `expirationDate` is too far in the future. * Note: It may take 2+ days from the expiration date for the item to @@ -10947,7 +10947,7 @@ public Builder setExpirationDate(com.google.protobuf.Timestamp value) { * Date on which the item should expire, as specified upon insertion, in * [ISO * 8601](http://en.wikipedia.org/wiki/ISO_8601) format. The actual - * expiration date in Google Shopping is exposed in `productstatuses` as + * expiration date is exposed in `productstatuses` as * [googleExpirationDate](https://support.google.com/merchants/answer/6324499) * and might be earlier if `expirationDate` is too far in the future. * Note: It may take 2+ days from the expiration date for the item to @@ -10973,7 +10973,7 @@ public Builder setExpirationDate(com.google.protobuf.Timestamp.Builder builderFo * Date on which the item should expire, as specified upon insertion, in * [ISO * 8601](http://en.wikipedia.org/wiki/ISO_8601) format. The actual - * expiration date in Google Shopping is exposed in `productstatuses` as + * expiration date is exposed in `productstatuses` as * [googleExpirationDate](https://support.google.com/merchants/answer/6324499) * and might be earlier if `expirationDate` is too far in the future. * Note: It may take 2+ days from the expiration date for the item to @@ -11007,7 +11007,7 @@ public Builder mergeExpirationDate(com.google.protobuf.Timestamp value) { * Date on which the item should expire, as specified upon insertion, in * [ISO * 8601](http://en.wikipedia.org/wiki/ISO_8601) format. The actual - * expiration date in Google Shopping is exposed in `productstatuses` as + * expiration date is exposed in `productstatuses` as * [googleExpirationDate](https://support.google.com/merchants/answer/6324499) * and might be earlier if `expirationDate` is too far in the future. * Note: It may take 2+ days from the expiration date for the item to @@ -11033,7 +11033,7 @@ public Builder clearExpirationDate() { * Date on which the item should expire, as specified upon insertion, in * [ISO * 8601](http://en.wikipedia.org/wiki/ISO_8601) format. The actual - * expiration date in Google Shopping is exposed in `productstatuses` as + * expiration date is exposed in `productstatuses` as * [googleExpirationDate](https://support.google.com/merchants/answer/6324499) * and might be earlier if `expirationDate` is too far in the future. * Note: It may take 2+ days from the expiration date for the item to @@ -11054,7 +11054,7 @@ public com.google.protobuf.Timestamp.Builder getExpirationDateBuilder() { * Date on which the item should expire, as specified upon insertion, in * [ISO * 8601](http://en.wikipedia.org/wiki/ISO_8601) format. The actual - * expiration date in Google Shopping is exposed in `productstatuses` as + * expiration date is exposed in `productstatuses` as * [googleExpirationDate](https://support.google.com/merchants/answer/6324499) * and might be earlier if `expirationDate` is too far in the future. * Note: It may take 2+ days from the expiration date for the item to @@ -11079,7 +11079,7 @@ public com.google.protobuf.TimestampOrBuilder getExpirationDateOrBuilder() { * Date on which the item should expire, as specified upon insertion, in * [ISO * 8601](http://en.wikipedia.org/wiki/ISO_8601) format. The actual - * expiration date in Google Shopping is exposed in `productstatuses` as + * expiration date is exposed in `productstatuses` as * [googleExpirationDate](https://support.google.com/merchants/answer/6324499) * and might be earlier if `expirationDate` is too far in the future. * Note: It may take 2+ days from the expiration date for the item to diff --git a/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/AttributesOrBuilder.java b/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/AttributesOrBuilder.java index 13a3fa4e2773..fe9e567433eb 100644 --- a/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/AttributesOrBuilder.java +++ b/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/AttributesOrBuilder.java @@ -1564,7 +1564,7 @@ public interface AttributesOrBuilder * Date on which the item should expire, as specified upon insertion, in * [ISO * 8601](http://en.wikipedia.org/wiki/ISO_8601) format. The actual - * expiration date in Google Shopping is exposed in `productstatuses` as + * expiration date is exposed in `productstatuses` as * [googleExpirationDate](https://support.google.com/merchants/answer/6324499) * and might be earlier if `expirationDate` is too far in the future. * Note: It may take 2+ days from the expiration date for the item to @@ -1583,7 +1583,7 @@ public interface AttributesOrBuilder * Date on which the item should expire, as specified upon insertion, in * [ISO * 8601](http://en.wikipedia.org/wiki/ISO_8601) format. The actual - * expiration date in Google Shopping is exposed in `productstatuses` as + * expiration date is exposed in `productstatuses` as * [googleExpirationDate](https://support.google.com/merchants/answer/6324499) * and might be earlier if `expirationDate` is too far in the future. * Note: It may take 2+ days from the expiration date for the item to @@ -1602,7 +1602,7 @@ public interface AttributesOrBuilder * Date on which the item should expire, as specified upon insertion, in * [ISO * 8601](http://en.wikipedia.org/wiki/ISO_8601) format. The actual - * expiration date in Google Shopping is exposed in `productstatuses` as + * expiration date is exposed in `productstatuses` as * [googleExpirationDate](https://support.google.com/merchants/answer/6324499) * and might be earlier if `expirationDate` is too far in the future. * Note: It may take 2+ days from the expiration date for the item to diff --git a/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/CssProductStatus.java b/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/CssProductStatus.java index 375e2360f782..63d4e32d6f34 100644 --- a/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/CssProductStatus.java +++ b/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/CssProductStatus.java @@ -4471,7 +4471,7 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateDateOrBuilder() { * * *
          -   * Date on which the item expires in Google Shopping, in [ISO
          +   * Date on which the item expires, in [ISO
              * 8601](http://en.wikipedia.org/wiki/ISO_8601) format.
              * 
          * @@ -4487,7 +4487,7 @@ public boolean hasGoogleExpirationDate() { * * *
          -   * Date on which the item expires in Google Shopping, in [ISO
          +   * Date on which the item expires, in [ISO
              * 8601](http://en.wikipedia.org/wiki/ISO_8601) format.
              * 
          * @@ -4505,7 +4505,7 @@ public com.google.protobuf.Timestamp getGoogleExpirationDate() { * * *
          -   * Date on which the item expires in Google Shopping, in [ISO
          +   * Date on which the item expires, in [ISO
              * 8601](http://en.wikipedia.org/wiki/ISO_8601) format.
              * 
          * @@ -6289,7 +6289,7 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateDateOrBuilder() { * * *
          -     * Date on which the item expires in Google Shopping, in [ISO
          +     * Date on which the item expires, in [ISO
                * 8601](http://en.wikipedia.org/wiki/ISO_8601) format.
                * 
          * @@ -6304,7 +6304,7 @@ public boolean hasGoogleExpirationDate() { * * *
          -     * Date on which the item expires in Google Shopping, in [ISO
          +     * Date on which the item expires, in [ISO
                * 8601](http://en.wikipedia.org/wiki/ISO_8601) format.
                * 
          * @@ -6325,7 +6325,7 @@ public com.google.protobuf.Timestamp getGoogleExpirationDate() { * * *
          -     * Date on which the item expires in Google Shopping, in [ISO
          +     * Date on which the item expires, in [ISO
                * 8601](http://en.wikipedia.org/wiki/ISO_8601) format.
                * 
          * @@ -6348,7 +6348,7 @@ public Builder setGoogleExpirationDate(com.google.protobuf.Timestamp value) { * * *
          -     * Date on which the item expires in Google Shopping, in [ISO
          +     * Date on which the item expires, in [ISO
                * 8601](http://en.wikipedia.org/wiki/ISO_8601) format.
                * 
          * @@ -6368,7 +6368,7 @@ public Builder setGoogleExpirationDate(com.google.protobuf.Timestamp.Builder bui * * *
          -     * Date on which the item expires in Google Shopping, in [ISO
          +     * Date on which the item expires, in [ISO
                * 8601](http://en.wikipedia.org/wiki/ISO_8601) format.
                * 
          * @@ -6396,7 +6396,7 @@ public Builder mergeGoogleExpirationDate(com.google.protobuf.Timestamp value) { * * *
          -     * Date on which the item expires in Google Shopping, in [ISO
          +     * Date on which the item expires, in [ISO
                * 8601](http://en.wikipedia.org/wiki/ISO_8601) format.
                * 
          * @@ -6416,7 +6416,7 @@ public Builder clearGoogleExpirationDate() { * * *
          -     * Date on which the item expires in Google Shopping, in [ISO
          +     * Date on which the item expires, in [ISO
                * 8601](http://en.wikipedia.org/wiki/ISO_8601) format.
                * 
          * @@ -6431,7 +6431,7 @@ public com.google.protobuf.Timestamp.Builder getGoogleExpirationDateBuilder() { * * *
          -     * Date on which the item expires in Google Shopping, in [ISO
          +     * Date on which the item expires, in [ISO
                * 8601](http://en.wikipedia.org/wiki/ISO_8601) format.
                * 
          * @@ -6450,7 +6450,7 @@ public com.google.protobuf.TimestampOrBuilder getGoogleExpirationDateOrBuilder() * * *
          -     * Date on which the item expires in Google Shopping, in [ISO
          +     * Date on which the item expires, in [ISO
                * 8601](http://en.wikipedia.org/wiki/ISO_8601) format.
                * 
          * diff --git a/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/CssProductStatusOrBuilder.java b/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/CssProductStatusOrBuilder.java index 09fda2a3c833..cc7c867eb9e8 100644 --- a/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/CssProductStatusOrBuilder.java +++ b/java-shopping-css/proto-google-shopping-css-v1/src/main/java/com/google/shopping/css/v1/CssProductStatusOrBuilder.java @@ -227,7 +227,7 @@ com.google.shopping.css.v1.CssProductStatus.ItemLevelIssueOrBuilder getItemLevel * * *
          -   * Date on which the item expires in Google Shopping, in [ISO
          +   * Date on which the item expires, in [ISO
              * 8601](http://en.wikipedia.org/wiki/ISO_8601) format.
              * 
          * @@ -240,7 +240,7 @@ com.google.shopping.css.v1.CssProductStatus.ItemLevelIssueOrBuilder getItemLevel * * *
          -   * Date on which the item expires in Google Shopping, in [ISO
          +   * Date on which the item expires, in [ISO
              * 8601](http://en.wikipedia.org/wiki/ISO_8601) format.
              * 
          * @@ -253,7 +253,7 @@ com.google.shopping.css.v1.CssProductStatus.ItemLevelIssueOrBuilder getItemLevel * * *
          -   * Date on which the item expires in Google Shopping, in [ISO
          +   * Date on which the item expires, in [ISO
              * 8601](http://en.wikipedia.org/wiki/ISO_8601) format.
              * 
          * diff --git a/java-shopping-css/proto-google-shopping-css-v1/src/main/proto/google/shopping/css/v1/css_product_common.proto b/java-shopping-css/proto-google-shopping-css-v1/src/main/proto/google/shopping/css/v1/css_product_common.proto index 756645604785..574ba45191ab 100644 --- a/java-shopping-css/proto-google-shopping-css-v1/src/main/proto/google/shopping/css/v1/css_product_common.proto +++ b/java-shopping-css/proto-google-shopping-css-v1/src/main/proto/google/shopping/css/v1/css_product_common.proto @@ -172,7 +172,7 @@ message Attributes { // Date on which the item should expire, as specified upon insertion, in // [ISO // 8601](http://en.wikipedia.org/wiki/ISO_8601) format. The actual - // expiration date in Google Shopping is exposed in `productstatuses` as + // expiration date is exposed in `productstatuses` as // [googleExpirationDate](https://support.google.com/merchants/answer/6324499) // and might be earlier if `expirationDate` is too far in the future. // Note: It may take 2+ days from the expiration date for the item to @@ -325,7 +325,7 @@ message CssProductStatus { // 8601](http://en.wikipedia.org/wiki/ISO_8601) format. google.protobuf.Timestamp last_update_date = 6; - // Date on which the item expires in Google Shopping, in [ISO + // Date on which the item expires, in [ISO // 8601](http://en.wikipedia.org/wiki/ISO_8601) format. google.protobuf.Timestamp google_expiration_date = 7; } diff --git a/java-shopping-merchant-accounts/README.md b/java-shopping-merchant-accounts/README.md index 20f1dce31ec4..5ab9856045db 100644 --- a/java-shopping-merchant-accounts/README.md +++ b/java-shopping-merchant-accounts/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import diff --git a/java-shopping-merchant-conversions/README.md b/java-shopping-merchant-conversions/README.md index 9c55e23a7bfc..0a414524ae07 100644 --- a/java-shopping-merchant-conversions/README.md +++ b/java-shopping-merchant-conversions/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-conversions.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-conversions/0.3.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-conversions/0.4.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-datasources/README.md b/java-shopping-merchant-datasources/README.md index 01acaee8ebb9..97a34b26b0cb 100644 --- a/java-shopping-merchant-datasources/README.md +++ b/java-shopping-merchant-datasources/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import diff --git a/java-shopping-merchant-inventories/README.md b/java-shopping-merchant-inventories/README.md index dbbbd9df0499..e228897e26bc 100644 --- a/java-shopping-merchant-inventories/README.md +++ b/java-shopping-merchant-inventories/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-inventories.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-inventories/0.20.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-inventories/0.21.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-lfp/README.md b/java-shopping-merchant-lfp/README.md index 5c25a65275ff..43d50007fd6e 100644 --- a/java-shopping-merchant-lfp/README.md +++ b/java-shopping-merchant-lfp/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-lfp.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-lfp/0.3.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-lfp/0.4.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-products/README.md b/java-shopping-merchant-products/README.md index 11ee0c5e86e6..de35c8666049 100644 --- a/java-shopping-merchant-products/README.md +++ b/java-shopping-merchant-products/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-products.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-products/0.0.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-products/0.1.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-products/pom.xml b/java-shopping-merchant-products/pom.xml index 0bab8c481741..7381ed82416e 100644 --- a/java-shopping-merchant-products/pom.xml +++ b/java-shopping-merchant-products/pom.xml @@ -52,4 +52,4 @@ google-shopping-merchant-products-bom - + diff --git a/java-shopping-merchant-promotions/README.md b/java-shopping-merchant-promotions/README.md index dcb155f30f08..1199369a4990 100644 --- a/java-shopping-merchant-promotions/README.md +++ b/java-shopping-merchant-promotions/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-promotions.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-promotions/0.0.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-promotions/0.1.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-promotions/pom.xml b/java-shopping-merchant-promotions/pom.xml index d26604c2a297..7dc6dad0fd13 100644 --- a/java-shopping-merchant-promotions/pom.xml +++ b/java-shopping-merchant-promotions/pom.xml @@ -52,4 +52,4 @@ google-shopping-merchant-promotions-bom - + diff --git a/java-shopping-merchant-quota/README.md b/java-shopping-merchant-quota/README.md index fab2839ba67d..edd04e4336ee 100644 --- a/java-shopping-merchant-quota/README.md +++ b/java-shopping-merchant-quota/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-quota.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-quota/0.7.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-quota/0.8.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-reports/README.md b/java-shopping-merchant-reports/README.md index 746cac581a42..7b125ab5d66e 100644 --- a/java-shopping-merchant-reports/README.md +++ b/java-shopping-merchant-reports/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-reports.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-reports/0.20.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-reports/0.21.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-speech/README.md b/java-speech/README.md index 2e3698855e82..b7b96fedc9cd 100644 --- a/java-speech/README.md +++ b/java-speech/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -231,7 +231,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-speech.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-speech/4.39.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-speech/4.40.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-storage-transfer/README.md b/java-storage-transfer/README.md index 6198cd51a4e8..7f711ea84ea4 100644 --- a/java-storage-transfer/README.md +++ b/java-storage-transfer/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-storage-transfer.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storage-transfer/1.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storage-transfer/1.45.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-storageinsights/README.md b/java-storageinsights/README.md index 24040bb6b9eb..907806d1cad4 100644 --- a/java-storageinsights/README.md +++ b/java-storageinsights/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-storageinsights.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storageinsights/0.29.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storageinsights/0.30.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-talent/README.md b/java-talent/README.md index 6e9d582efb4f..d1cc588d2500 100644 --- a/java-talent/README.md +++ b/java-talent/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-talent.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-talent/2.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-talent/2.46.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-tasks/README.md b/java-tasks/README.md index f0dcd61b29b9..e00bde751d75 100644 --- a/java-tasks/README.md +++ b/java-tasks/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-tasks.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-tasks/2.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-tasks/2.45.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-telcoautomation/README.md b/java-telcoautomation/README.md index 448193d1bd0e..a7b2906d0a01 100644 --- a/java-telcoautomation/README.md +++ b/java-telcoautomation/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-telcoautomation.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-telcoautomation/0.14.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-telcoautomation/0.15.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-texttospeech/README.md b/java-texttospeech/README.md index ece1246a7382..2b373a91c3c2 100644 --- a/java-texttospeech/README.md +++ b/java-texttospeech/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-texttospeech.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-texttospeech/2.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-texttospeech/2.46.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-tpu/README.md b/java-tpu/README.md index 84efd607b3de..c559d0d2be3a 100644 --- a/java-tpu/README.md +++ b/java-tpu/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-tpu.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-tpu/2.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-tpu/2.46.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-trace/README.md b/java-trace/README.md index 9831d3224dcb..caf42d818f94 100644 --- a/java-trace/README.md +++ b/java-trace/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-trace.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-trace/2.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-trace/2.45.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-translate/README.md b/java-translate/README.md index c03fb413340d..038a1708e415 100644 --- a/java-translate/README.md +++ b/java-translate/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -272,7 +272,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-translate.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-translate/2.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-translate/2.45.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-video-intelligence/README.md b/java-video-intelligence/README.md index 3ec64cf99009..9a473130dc1b 100644 --- a/java-video-intelligence/README.md +++ b/java-video-intelligence/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-video-intelligence.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-intelligence/2.43.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-intelligence/2.44.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-video-live-stream/README.md b/java-video-live-stream/README.md index 6c059845699f..bc273df55d6d 100644 --- a/java-video-live-stream/README.md +++ b/java-video-live-stream/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-live-stream.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-live-stream/0.46.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-live-stream/0.47.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-video-stitcher/README.md b/java-video-stitcher/README.md index 308c27c5c578..7b8af1d59bf6 100644 --- a/java-video-stitcher/README.md +++ b/java-video-stitcher/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-video-stitcher.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-stitcher/0.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-stitcher/0.45.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-video-transcoder/README.md b/java-video-transcoder/README.md index bb3330b4c9e5..347c9f697b36 100644 --- a/java-video-transcoder/README.md +++ b/java-video-transcoder/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-video-transcoder.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-transcoder/1.43.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-transcoder/1.44.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-vision/README.md b/java-vision/README.md index 55a35a1b5ec7..5f532702db0e 100644 --- a/java-vision/README.md +++ b/java-vision/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-vision.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vision/3.42.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vision/3.43.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-visionai/README.md b/java-visionai/README.md index 9f7c488730e0..1921a2873143 100644 --- a/java-visionai/README.md +++ b/java-visionai/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-visionai.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-visionai/0.1.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-visionai/0.2.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-vmmigration/README.md b/java-vmmigration/README.md index 9eab5ae4d62f..a134ee2e6f1b 100644 --- a/java-vmmigration/README.md +++ b/java-vmmigration/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-vmmigration.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vmmigration/1.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vmmigration/1.45.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-vmwareengine/README.md b/java-vmwareengine/README.md index 0c9d26c52c72..7a3aabbc5157 100644 --- a/java-vmwareengine/README.md +++ b/java-vmwareengine/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-vmwareengine.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vmwareengine/0.38.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vmwareengine/0.39.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-vpcaccess/README.md b/java-vpcaccess/README.md index fe78a1ef0585..5c31e143f863 100644 --- a/java-vpcaccess/README.md +++ b/java-vpcaccess/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-vpcaccess.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vpcaccess/2.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vpcaccess/2.46.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-webrisk/README.md b/java-webrisk/README.md index 5bea32d474d3..2c470aece360 100644 --- a/java-webrisk/README.md +++ b/java-webrisk/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-webrisk.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-webrisk/2.43.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-webrisk/2.44.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-websecurityscanner/README.md b/java-websecurityscanner/README.md index 4414280e69cc..e652bae539f2 100644 --- a/java-websecurityscanner/README.md +++ b/java-websecurityscanner/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-websecurityscanner.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-websecurityscanner/2.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-websecurityscanner/2.45.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-workflow-executions/README.md b/java-workflow-executions/README.md index 1ccbd441db09..7cc0dc6ad286 100644 --- a/java-workflow-executions/README.md +++ b/java-workflow-executions/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-workflow-executions.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workflow-executions/2.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workflow-executions/2.45.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-workflows/README.md b/java-workflows/README.md index d9ed10359daf..e70eb6a3bb3c 100644 --- a/java-workflows/README.md +++ b/java-workflows/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-workflows.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workflows/2.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workflows/2.45.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-workspaceevents/README.md b/java-workspaceevents/README.md index 46276d944cd4..f38e93f39365 100644 --- a/java-workspaceevents/README.md +++ b/java-workspaceevents/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-workspaceevents.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workspaceevents/0.8.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workspaceevents/0.9.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-workstations/README.md b/java-workstations/README.md index d3a70702d116..43e734c7b71b 100644 --- a/java-workstations/README.md +++ b/java-workstations/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-workstations.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workstations/0.32.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workstations/0.33.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles From 548faff710ef4647c47c71327c174f7dca8335ec Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 25 Jun 2024 22:10:01 +0200 Subject: [PATCH 23/33] chore(deps): update dependency com.google.api:gapic-generator-java to v2.42.0 (#10985) --- .github/workflows/ci.yaml | 2 +- .github/workflows/generated_files_sync.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a0865a30aac2..d92c8fce74d4 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -130,7 +130,7 @@ jobs: gcr.io/cloud-devrel-public-resources/java-library-generation:"${library_generation_image_tag}" \ /src/cli/entry_point.py validate-generation-config env: - library_generation_image_tag: 2.41.0 + library_generation_image_tag: 2.42.0 workspace_name: /workspace # TODO: Uncomment the needed Github Actions diff --git a/.github/workflows/generated_files_sync.yaml b/.github/workflows/generated_files_sync.yaml index 3b11bd1b6f8e..a26008ecaf8d 100644 --- a/.github/workflows/generated_files_sync.yaml +++ b/.github/workflows/generated_files_sync.yaml @@ -20,7 +20,7 @@ on: pull_request: name: generation diff env: - library_generation_image_tag: 2.41.0 + library_generation_image_tag: 2.42.0 jobs: root-pom: # root pom.xml does not have diff from generated one From aa8113c022208cfb93ac9881b997d22b7c4d9046 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 25 Jun 2024 22:11:40 +0200 Subject: [PATCH 24/33] fix(deps): update dependency com.google.cloud:google-cloud-storage to v2.40.0 (#10817) --- google-cloud-jar-parent/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google-cloud-jar-parent/pom.xml b/google-cloud-jar-parent/pom.xml index 478d347a95d0..bfb4d187d012 100644 --- a/google-cloud-jar-parent/pom.xml +++ b/google-cloud-jar-parent/pom.xml @@ -46,7 +46,7 @@ com.google.cloud google-cloud-storage - 2.37.0 + 2.40.0 com.google.apis From c3927a2765b4d74617bf1e670d2536f4e37fb51f Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 25 Jun 2024 22:12:57 +0200 Subject: [PATCH 25/33] chore(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.6.0 (#10973) --- google-cloud-jar-parent/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google-cloud-jar-parent/pom.xml b/google-cloud-jar-parent/pom.xml index bfb4d187d012..6e6282486940 100644 --- a/google-cloud-jar-parent/pom.xml +++ b/google-cloud-jar-parent/pom.xml @@ -221,7 +221,7 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.5.0 + 3.6.0 From a8b378acdb1e157ba8b0e1e818e03feb9b0865ca Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 25 Jun 2024 22:13:28 +0200 Subject: [PATCH 26/33] chore(deps): update dependency com.google.cloud:libraries-bom to v26.42.0 (#10960) --- java-dns/README.md | 2 +- java-notification/README.md | 2 +- java-vertexai/README.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java-dns/README.md b/java-dns/README.md index f40537f3091e..569799109137 100644 --- a/java-dns/README.md +++ b/java-dns/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import diff --git a/java-notification/README.md b/java-notification/README.md index 0cbca8ca22d5..5fe9293cc9ae 100644 --- a/java-notification/README.md +++ b/java-notification/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import diff --git a/java-vertexai/README.md b/java-vertexai/README.md index 798b300d44ef..565e545b88f1 100644 --- a/java-vertexai/README.md +++ b/java-vertexai/README.md @@ -18,7 +18,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.40.0 + 26.42.0 pom import From 522796fdd7a3406572876fd2987d9cb866cdcc3b Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 25 Jun 2024 22:14:56 +0200 Subject: [PATCH 27/33] chore(deps): update googleapis/java-cloud-bom action to v26.42.0 (#10959) --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d92c8fce74d4..a2937964b7ee 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -112,7 +112,7 @@ jobs: run: | mvn install -B -ntp -T 1C -DskipTests -Dclirr.skip -Dcheckstyle.skip - name: Validate gapic-libraries-bom - uses: googleapis/java-cloud-bom/tests/validate-bom@v26.40.0 + uses: googleapis/java-cloud-bom/tests/validate-bom@v26.42.0 with: bom-path: gapic-libraries-bom/pom.xml generation-config-check: From d9101350e3b98c588e4607d00be95bab86d43e00 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Wed, 26 Jun 2024 01:04:11 +0200 Subject: [PATCH 28/33] chore(deps): update dependency com.google.cloud:sdk-platform-java-config to v3.32.0 (#10986) --- .github/workflows/unmanaged_dependency_check.yaml | 2 +- .kokoro/nightly/graalvm-native-17.cfg | 2 +- .kokoro/nightly/graalvm-native-a.cfg | 2 +- .kokoro/nightly/graalvm-native-b.cfg | 2 +- .kokoro/nightly/graalvm-native.cfg | 2 +- .kokoro/nightly/graalvm-sub-jobs/native-17/common.cfg | 2 +- .kokoro/nightly/graalvm-sub-jobs/native-a/common.cfg | 2 +- .kokoro/nightly/graalvm-sub-jobs/native-b/common.cfg | 2 +- .kokoro/nightly/graalvm-sub-jobs/native/common.cfg | 2 +- .kokoro/presubmit/graalvm-native-17-presubmit.cfg | 2 +- .kokoro/presubmit/graalvm-native-a-presubmit.cfg | 2 +- .kokoro/presubmit/graalvm-native-b-presubmit.cfg | 2 +- .kokoro/presubmit/graalvm-native-presubmit.cfg | 2 +- google-cloud-pom-parent/pom.xml | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/unmanaged_dependency_check.yaml b/.github/workflows/unmanaged_dependency_check.yaml index 3b29db54148d..3b427766731b 100644 --- a/.github/workflows/unmanaged_dependency_check.yaml +++ b/.github/workflows/unmanaged_dependency_check.yaml @@ -14,6 +14,6 @@ jobs: shell: bash run: mvn install -B -ntp -T 1C -DskipTests -Dclirr.skip -Dcheckstyle.skip - name: Unmanaged dependency check - uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.31.0 + uses: googleapis/sdk-platform-java/java-shared-dependencies/unmanaged-dependency-check@google-cloud-shared-dependencies/v3.32.0 with: bom-path: gapic-libraries-bom/pom.xml diff --git a/.kokoro/nightly/graalvm-native-17.cfg b/.kokoro/nightly/graalvm-native-17.cfg index d9f41b8038fc..aacb77361d47 100644 --- a/.kokoro/nightly/graalvm-native-17.cfg +++ b/.kokoro/nightly/graalvm-native-17.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.31.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.32.0" } env_vars: { diff --git a/.kokoro/nightly/graalvm-native-a.cfg b/.kokoro/nightly/graalvm-native-a.cfg index b31a74c367c6..955bd8502576 100644 --- a/.kokoro/nightly/graalvm-native-a.cfg +++ b/.kokoro/nightly/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.31.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.32.0" } env_vars: { diff --git a/.kokoro/nightly/graalvm-native-b.cfg b/.kokoro/nightly/graalvm-native-b.cfg index d9f41b8038fc..aacb77361d47 100644 --- a/.kokoro/nightly/graalvm-native-b.cfg +++ b/.kokoro/nightly/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.31.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.32.0" } env_vars: { diff --git a/.kokoro/nightly/graalvm-native.cfg b/.kokoro/nightly/graalvm-native.cfg index b31a74c367c6..955bd8502576 100644 --- a/.kokoro/nightly/graalvm-native.cfg +++ b/.kokoro/nightly/graalvm-native.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.31.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.32.0" } env_vars: { diff --git a/.kokoro/nightly/graalvm-sub-jobs/native-17/common.cfg b/.kokoro/nightly/graalvm-sub-jobs/native-17/common.cfg index b9bf9946cf79..5834a56bc2af 100644 --- a/.kokoro/nightly/graalvm-sub-jobs/native-17/common.cfg +++ b/.kokoro/nightly/graalvm-sub-jobs/native-17/common.cfg @@ -24,7 +24,7 @@ env_vars: { env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.31.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.32.0" } env_vars: { diff --git a/.kokoro/nightly/graalvm-sub-jobs/native-a/common.cfg b/.kokoro/nightly/graalvm-sub-jobs/native-a/common.cfg index 4e0afb2296f0..15adcacac695 100644 --- a/.kokoro/nightly/graalvm-sub-jobs/native-a/common.cfg +++ b/.kokoro/nightly/graalvm-sub-jobs/native-a/common.cfg @@ -29,7 +29,7 @@ env_vars: { env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.31.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.32.0" } # TODO: remove this after we've migrated all tests and scripts diff --git a/.kokoro/nightly/graalvm-sub-jobs/native-b/common.cfg b/.kokoro/nightly/graalvm-sub-jobs/native-b/common.cfg index b9bf9946cf79..5834a56bc2af 100644 --- a/.kokoro/nightly/graalvm-sub-jobs/native-b/common.cfg +++ b/.kokoro/nightly/graalvm-sub-jobs/native-b/common.cfg @@ -24,7 +24,7 @@ env_vars: { env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.31.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.32.0" } env_vars: { diff --git a/.kokoro/nightly/graalvm-sub-jobs/native/common.cfg b/.kokoro/nightly/graalvm-sub-jobs/native/common.cfg index 4e0afb2296f0..15adcacac695 100644 --- a/.kokoro/nightly/graalvm-sub-jobs/native/common.cfg +++ b/.kokoro/nightly/graalvm-sub-jobs/native/common.cfg @@ -29,7 +29,7 @@ env_vars: { env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.31.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.32.0" } # TODO: remove this after we've migrated all tests and scripts diff --git a/.kokoro/presubmit/graalvm-native-17-presubmit.cfg b/.kokoro/presubmit/graalvm-native-17-presubmit.cfg index c32ed988a976..5717a1198a20 100644 --- a/.kokoro/presubmit/graalvm-native-17-presubmit.cfg +++ b/.kokoro/presubmit/graalvm-native-17-presubmit.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.31.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.32.0" } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-a-presubmit.cfg b/.kokoro/presubmit/graalvm-native-a-presubmit.cfg index 5a5fcdec3585..b64bb392fca1 100644 --- a/.kokoro/presubmit/graalvm-native-a-presubmit.cfg +++ b/.kokoro/presubmit/graalvm-native-a-presubmit.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.31.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.32.0" } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-b-presubmit.cfg b/.kokoro/presubmit/graalvm-native-b-presubmit.cfg index c32ed988a976..5717a1198a20 100644 --- a/.kokoro/presubmit/graalvm-native-b-presubmit.cfg +++ b/.kokoro/presubmit/graalvm-native-b-presubmit.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.31.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.32.0" } env_vars: { diff --git a/.kokoro/presubmit/graalvm-native-presubmit.cfg b/.kokoro/presubmit/graalvm-native-presubmit.cfg index 5a5fcdec3585..b64bb392fca1 100644 --- a/.kokoro/presubmit/graalvm-native-presubmit.cfg +++ b/.kokoro/presubmit/graalvm-native-presubmit.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.31.0" + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.32.0" } env_vars: { diff --git a/google-cloud-pom-parent/pom.xml b/google-cloud-pom-parent/pom.xml index 1f53c4b94e4e..30806f165227 100644 --- a/google-cloud-pom-parent/pom.xml +++ b/google-cloud-pom-parent/pom.xml @@ -15,7 +15,7 @@ com.google.cloud sdk-platform-java-config - 3.31.0 + 3.32.0 From 564c3692bc8d22f4f5acdcbfb60be0582bd08d53 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Tue, 25 Jun 2024 21:03:01 -0400 Subject: [PATCH 29/33] chore: Update generation configuration at Tue Jun 25 23:10:13 UTC 2024 (#10988) * chore: Update generation configuration at Tue Jun 25 23:10:13 UTC 2024 * chore: generate libraries at Tue Jun 25 23:13:25 UTC 2024 --- generation_config.yaml | 4 +- .../cloud/batch/v1/AllocationPolicy.java | 157 ++- .../cloud/batch/v1/JobNotification.java | 126 +- .../batch/v1/JobNotificationOrBuilder.java | 36 +- .../com/google/cloud/batch/v1/JobProto.java | 74 +- .../com/google/cloud/batch/v1/Volume.java | 286 +++-- .../cloud/batch/v1/VolumeOrBuilder.java | 88 +- .../proto/google/cloud/batch/v1/job.proto | 26 +- .../proto/google/cloud/batch/v1/volume.proto | 22 +- .../cloud/batch/v1alpha/AllocationPolicy.java | 162 +-- .../v1alpha/AllocationPolicyOrBuilder.java | 26 +- .../cloud/batch/v1alpha/JobNotification.java | 126 +- .../v1alpha/JobNotificationOrBuilder.java | 36 +- .../com/google/cloud/batch/v1alpha/PD.java | 8 +- .../cloud/batch/v1alpha/PDOrBuilder.java | 2 +- .../google/cloud/batch/v1alpha/Volume.java | 286 +++-- .../cloud/batch/v1alpha/VolumeOrBuilder.java | 88 +- .../google/cloud/batch/v1alpha/job.proto | 22 +- .../google/cloud/batch/v1alpha/volume.proto | 22 +- java-iam/.repo-metadata.json | 2 +- java-iam/README.md | 2 +- java-notebooks/.repo-metadata.json | 2 +- java-notebooks/README.md | 2 +- java-orgpolicy/.repo-metadata.json | 2 +- java-orgpolicy/README.md | 2 +- .../reflect-config.json | 45 + .../RecaptchaEnterpriseServiceClientTest.java | 3 + .../recaptchaenterprise/v1/Assessment.java | 328 +++++ .../v1/AssessmentOrBuilder.java | 48 + .../google/recaptchaenterprise/v1/Event.java | 8 +- .../v1/EventOrBuilder.java | 2 +- .../v1/PhoneFraudAssessment.java | 757 +++++++++++ .../v1/PhoneFraudAssessmentOrBuilder.java | 67 + .../v1/RecaptchaEnterpriseProto.java | 978 +++++++------- .../v1/RelatedAccountGroupMembership.java | 8 +- ...elatedAccountGroupMembershipOrBuilder.java | 2 +- ...RelatedAccountGroupMembershipsRequest.java | 8 +- ...countGroupMembershipsRequestOrBuilder.java | 2 +- .../v1/SmsTollFraudVerdict.java | 1121 +++++++++++++++++ .../v1/SmsTollFraudVerdictOrBuilder.java | 114 ++ .../v1/recaptchaenterprise.proto | 33 + java-tpu/.repo-metadata.json | 2 +- java-tpu/README.md | 2 +- 43 files changed, 4076 insertions(+), 1061 deletions(-) create mode 100644 java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/PhoneFraudAssessment.java create mode 100644 java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/PhoneFraudAssessmentOrBuilder.java create mode 100644 java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SmsTollFraudVerdict.java create mode 100644 java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SmsTollFraudVerdictOrBuilder.java diff --git a/generation_config.yaml b/generation_config.yaml index e8baee0bb250..0cd02c1f647a 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,6 +1,6 @@ -gapic_generator_version: 2.41.0 +gapic_generator_version: 2.42.0 protoc_version: '25.3' -googleapis_commitish: e4e39feea63b5f0d646fc193acbf536b5d292b64 +googleapis_commitish: 46eb6505cc4b8340d304510d7226de96bafe9314 libraries_bom_version: 26.42.0 template_excludes: - .github/* diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicy.java b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicy.java index 286eddb0360f..0b51545f7ae0 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicy.java +++ b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicy.java @@ -1371,7 +1371,9 @@ public interface DiskOrBuilder * Disk type as shown in `gcloud compute disk-types list`. * For example, local SSD uses type "local-ssd". * Persistent disks and boot disks use "pd-balanced", "pd-extreme", "pd-ssd" - * or "pd-standard". + * or "pd-standard". If not specified, "pd-standard" will be used as the + * default type for non-boot disks, "pd-balanced" will be used as the + * default type for boot disks. *
          * * string type = 1; @@ -1386,7 +1388,9 @@ public interface DiskOrBuilder * Disk type as shown in `gcloud compute disk-types list`. * For example, local SSD uses type "local-ssd". * Persistent disks and boot disks use "pd-balanced", "pd-extreme", "pd-ssd" - * or "pd-standard". + * or "pd-standard". If not specified, "pd-standard" will be used as the + * default type for non-boot disks, "pd-balanced" will be used as the + * default type for boot disks. *
          * * string type = 1; @@ -1757,7 +1761,9 @@ public com.google.protobuf.ByteString getSnapshotBytes() { * Disk type as shown in `gcloud compute disk-types list`. * For example, local SSD uses type "local-ssd". * Persistent disks and boot disks use "pd-balanced", "pd-extreme", "pd-ssd" - * or "pd-standard". + * or "pd-standard". If not specified, "pd-standard" will be used as the + * default type for non-boot disks, "pd-balanced" will be used as the + * default type for boot disks. * * * string type = 1; @@ -1783,7 +1789,9 @@ public java.lang.String getType() { * Disk type as shown in `gcloud compute disk-types list`. * For example, local SSD uses type "local-ssd". * Persistent disks and boot disks use "pd-balanced", "pd-extreme", "pd-ssd" - * or "pd-standard". + * or "pd-standard". If not specified, "pd-standard" will be used as the + * default type for non-boot disks, "pd-balanced" will be used as the + * default type for boot disks. * * * string type = 1; @@ -2756,7 +2764,9 @@ public Builder setSnapshotBytes(com.google.protobuf.ByteString value) { * Disk type as shown in `gcloud compute disk-types list`. * For example, local SSD uses type "local-ssd". * Persistent disks and boot disks use "pd-balanced", "pd-extreme", "pd-ssd" - * or "pd-standard". + * or "pd-standard". If not specified, "pd-standard" will be used as the + * default type for non-boot disks, "pd-balanced" will be used as the + * default type for boot disks. * * * string type = 1; @@ -2781,7 +2791,9 @@ public java.lang.String getType() { * Disk type as shown in `gcloud compute disk-types list`. * For example, local SSD uses type "local-ssd". * Persistent disks and boot disks use "pd-balanced", "pd-extreme", "pd-ssd" - * or "pd-standard". + * or "pd-standard". If not specified, "pd-standard" will be used as the + * default type for non-boot disks, "pd-balanced" will be used as the + * default type for boot disks. * * * string type = 1; @@ -2806,7 +2818,9 @@ public com.google.protobuf.ByteString getTypeBytes() { * Disk type as shown in `gcloud compute disk-types list`. * For example, local SSD uses type "local-ssd". * Persistent disks and boot disks use "pd-balanced", "pd-extreme", "pd-ssd" - * or "pd-standard". + * or "pd-standard". If not specified, "pd-standard" will be used as the + * default type for non-boot disks, "pd-balanced" will be used as the + * default type for boot disks. * * * string type = 1; @@ -2830,7 +2844,9 @@ public Builder setType(java.lang.String value) { * Disk type as shown in `gcloud compute disk-types list`. * For example, local SSD uses type "local-ssd". * Persistent disks and boot disks use "pd-balanced", "pd-extreme", "pd-ssd" - * or "pd-standard". + * or "pd-standard". If not specified, "pd-standard" will be used as the + * default type for non-boot disks, "pd-balanced" will be used as the + * default type for boot disks. * * * string type = 1; @@ -2850,7 +2866,9 @@ public Builder clearType() { * Disk type as shown in `gcloud compute disk-types list`. * For example, local SSD uses type "local-ssd". * Persistent disks and boot disks use "pd-balanced", "pd-extreme", "pd-ssd" - * or "pd-standard". + * or "pd-standard". If not specified, "pd-standard" will be used as the + * default type for non-boot disks, "pd-balanced" will be used as the + * default type for boot disks. * * * string type = 1; @@ -4469,7 +4487,7 @@ public interface AcceleratorOrBuilder * bool install_gpu_drivers = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1.AllocationPolicy.Accelerator.install_gpu_drivers is - * deprecated. See google/cloud/batch/v1/job.proto;l=360 + * deprecated. See google/cloud/batch/v1/job.proto;l=370 * @return The installGpuDrivers. */ @java.lang.Deprecated @@ -4640,7 +4658,7 @@ public long getCount() { * bool install_gpu_drivers = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1.AllocationPolicy.Accelerator.install_gpu_drivers is - * deprecated. See google/cloud/batch/v1/job.proto;l=360 + * deprecated. See google/cloud/batch/v1/job.proto;l=370 * @return The installGpuDrivers. */ @java.lang.Override @@ -5302,7 +5320,7 @@ public Builder clearCount() { * bool install_gpu_drivers = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1.AllocationPolicy.Accelerator.install_gpu_drivers is - * deprecated. See google/cloud/batch/v1/job.proto;l=360 + * deprecated. See google/cloud/batch/v1/job.proto;l=370 * @return The installGpuDrivers. */ @java.lang.Override @@ -5320,7 +5338,7 @@ public boolean getInstallGpuDrivers() { * bool install_gpu_drivers = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1.AllocationPolicy.Accelerator.install_gpu_drivers is - * deprecated. See google/cloud/batch/v1/job.proto;l=360 + * deprecated. See google/cloud/batch/v1/job.proto;l=370 * @param value The installGpuDrivers to set. * @return This builder for chaining. */ @@ -5342,7 +5360,7 @@ public Builder setInstallGpuDrivers(boolean value) { * bool install_gpu_drivers = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1.AllocationPolicy.Accelerator.install_gpu_drivers is - * deprecated. See google/cloud/batch/v1/job.proto;l=360 + * deprecated. See google/cloud/batch/v1/job.proto;l=370 * @return This builder for chaining. */ @java.lang.Deprecated @@ -8525,6 +8543,20 @@ public interface InstancePolicyOrTemplateOrBuilder */ boolean getInstallGpuDrivers(); + /** + * + * + *
          +     * Optional. Set this field true if you want Batch to install Ops Agent on
          +     * your behalf. Default is false.
          +     * 
          + * + * bool install_ops_agent = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The installOpsAgent. + */ + boolean getInstallOpsAgent(); + com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.PolicyTemplateCase getPolicyTemplateCase(); } @@ -8776,6 +8808,25 @@ public boolean getInstallGpuDrivers() { return installGpuDrivers_; } + public static final int INSTALL_OPS_AGENT_FIELD_NUMBER = 4; + private boolean installOpsAgent_ = false; + /** + * + * + *
          +     * Optional. Set this field true if you want Batch to install Ops Agent on
          +     * your behalf. Default is false.
          +     * 
          + * + * bool install_ops_agent = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The installOpsAgent. + */ + @java.lang.Override + public boolean getInstallOpsAgent() { + return installOpsAgent_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -8800,6 +8851,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (installGpuDrivers_ != false) { output.writeBool(3, installGpuDrivers_); } + if (installOpsAgent_ != false) { + output.writeBool(4, installOpsAgent_); + } getUnknownFields().writeTo(output); } @@ -8820,6 +8874,9 @@ public int getSerializedSize() { if (installGpuDrivers_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, installGpuDrivers_); } + if (installOpsAgent_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, installOpsAgent_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -8837,6 +8894,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate) obj; if (getInstallGpuDrivers() != other.getInstallGpuDrivers()) return false; + if (getInstallOpsAgent() != other.getInstallOpsAgent()) return false; if (!getPolicyTemplateCase().equals(other.getPolicyTemplateCase())) return false; switch (policyTemplateCase_) { case 1: @@ -8861,6 +8919,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + INSTALL_GPU_DRIVERS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInstallGpuDrivers()); + hash = (37 * hash) + INSTALL_OPS_AGENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInstallOpsAgent()); switch (policyTemplateCase_) { case 1: hash = (37 * hash) + POLICY_FIELD_NUMBER; @@ -9024,6 +9084,7 @@ public Builder clear() { policyBuilder_.clear(); } installGpuDrivers_ = false; + installOpsAgent_ = false; policyTemplateCase_ = 0; policyTemplate_ = null; return this; @@ -9069,6 +9130,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000004) != 0)) { result.installGpuDrivers_ = installGpuDrivers_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.installOpsAgent_ = installOpsAgent_; + } } private void buildPartialOneofs( @@ -9134,6 +9198,9 @@ public Builder mergeFrom( if (other.getInstallGpuDrivers() != false) { setInstallGpuDrivers(other.getInstallGpuDrivers()); } + if (other.getInstallOpsAgent() != false) { + setInstallOpsAgent(other.getInstallOpsAgent()); + } switch (other.getPolicyTemplateCase()) { case POLICY: { @@ -9197,6 +9264,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 24 + case 32: + { + installOpsAgent_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -9669,6 +9742,62 @@ public Builder clearInstallGpuDrivers() { return this; } + private boolean installOpsAgent_; + /** + * + * + *
          +       * Optional. Set this field true if you want Batch to install Ops Agent on
          +       * your behalf. Default is false.
          +       * 
          + * + * bool install_ops_agent = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The installOpsAgent. + */ + @java.lang.Override + public boolean getInstallOpsAgent() { + return installOpsAgent_; + } + /** + * + * + *
          +       * Optional. Set this field true if you want Batch to install Ops Agent on
          +       * your behalf. Default is false.
          +       * 
          + * + * bool install_ops_agent = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The installOpsAgent to set. + * @return This builder for chaining. + */ + public Builder setInstallOpsAgent(boolean value) { + + installOpsAgent_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +       * Optional. Set this field true if you want Batch to install Ops Agent on
          +       * your behalf. Default is false.
          +       * 
          + * + * bool install_ops_agent = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearInstallOpsAgent() { + bitField0_ = (bitField0_ & ~0x00000008); + installOpsAgent_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobNotification.java b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobNotification.java index bd81844d374a..f18cdb816bc9 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobNotification.java +++ b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobNotification.java @@ -1198,11 +1198,19 @@ public com.google.cloud.batch.v1.JobNotification.Message getDefaultInstanceForTy * * *
          -   * The Pub/Sub topic where notifications like the job state changes
          -   * will be published. The topic must exist in the same project as
          -   * the job and billings will be charged to this project.
          -   * If not specified, no Pub/Sub messages will be sent.
          -   * Topic format: `projects/{project}/topics/{topic}`.
          +   * The Pub/Sub topic where notifications for the job, like state
          +   * changes, will be published. If undefined, no Pub/Sub notifications
          +   * are sent for this job.
          +   *
          +   * Specify the topic using the following format:
          +   * `projects/{project}/topics/{topic}`.
          +   * Notably, if you want to specify a Pub/Sub topic that is in a
          +   * different project than the job, your administrator must grant your
          +   * project's Batch service agent permission to publish to that topic.
          +   *
          +   * For more information about configuring Pub/Sub notifications for
          +   * a job, see
          +   * https://cloud.google.com/batch/docs/enable-notifications.
              * 
          * * string pubsub_topic = 1; @@ -1225,11 +1233,19 @@ public java.lang.String getPubsubTopic() { * * *
          -   * The Pub/Sub topic where notifications like the job state changes
          -   * will be published. The topic must exist in the same project as
          -   * the job and billings will be charged to this project.
          -   * If not specified, no Pub/Sub messages will be sent.
          -   * Topic format: `projects/{project}/topics/{topic}`.
          +   * The Pub/Sub topic where notifications for the job, like state
          +   * changes, will be published. If undefined, no Pub/Sub notifications
          +   * are sent for this job.
          +   *
          +   * Specify the topic using the following format:
          +   * `projects/{project}/topics/{topic}`.
          +   * Notably, if you want to specify a Pub/Sub topic that is in a
          +   * different project than the job, your administrator must grant your
          +   * project's Batch service agent permission to publish to that topic.
          +   *
          +   * For more information about configuring Pub/Sub notifications for
          +   * a job, see
          +   * https://cloud.google.com/batch/docs/enable-notifications.
              * 
          * * string pubsub_topic = 1; @@ -1691,11 +1707,19 @@ public Builder mergeFrom( * * *
          -     * The Pub/Sub topic where notifications like the job state changes
          -     * will be published. The topic must exist in the same project as
          -     * the job and billings will be charged to this project.
          -     * If not specified, no Pub/Sub messages will be sent.
          -     * Topic format: `projects/{project}/topics/{topic}`.
          +     * The Pub/Sub topic where notifications for the job, like state
          +     * changes, will be published. If undefined, no Pub/Sub notifications
          +     * are sent for this job.
          +     *
          +     * Specify the topic using the following format:
          +     * `projects/{project}/topics/{topic}`.
          +     * Notably, if you want to specify a Pub/Sub topic that is in a
          +     * different project than the job, your administrator must grant your
          +     * project's Batch service agent permission to publish to that topic.
          +     *
          +     * For more information about configuring Pub/Sub notifications for
          +     * a job, see
          +     * https://cloud.google.com/batch/docs/enable-notifications.
                * 
          * * string pubsub_topic = 1; @@ -1717,11 +1741,19 @@ public java.lang.String getPubsubTopic() { * * *
          -     * The Pub/Sub topic where notifications like the job state changes
          -     * will be published. The topic must exist in the same project as
          -     * the job and billings will be charged to this project.
          -     * If not specified, no Pub/Sub messages will be sent.
          -     * Topic format: `projects/{project}/topics/{topic}`.
          +     * The Pub/Sub topic where notifications for the job, like state
          +     * changes, will be published. If undefined, no Pub/Sub notifications
          +     * are sent for this job.
          +     *
          +     * Specify the topic using the following format:
          +     * `projects/{project}/topics/{topic}`.
          +     * Notably, if you want to specify a Pub/Sub topic that is in a
          +     * different project than the job, your administrator must grant your
          +     * project's Batch service agent permission to publish to that topic.
          +     *
          +     * For more information about configuring Pub/Sub notifications for
          +     * a job, see
          +     * https://cloud.google.com/batch/docs/enable-notifications.
                * 
          * * string pubsub_topic = 1; @@ -1743,11 +1775,19 @@ public com.google.protobuf.ByteString getPubsubTopicBytes() { * * *
          -     * The Pub/Sub topic where notifications like the job state changes
          -     * will be published. The topic must exist in the same project as
          -     * the job and billings will be charged to this project.
          -     * If not specified, no Pub/Sub messages will be sent.
          -     * Topic format: `projects/{project}/topics/{topic}`.
          +     * The Pub/Sub topic where notifications for the job, like state
          +     * changes, will be published. If undefined, no Pub/Sub notifications
          +     * are sent for this job.
          +     *
          +     * Specify the topic using the following format:
          +     * `projects/{project}/topics/{topic}`.
          +     * Notably, if you want to specify a Pub/Sub topic that is in a
          +     * different project than the job, your administrator must grant your
          +     * project's Batch service agent permission to publish to that topic.
          +     *
          +     * For more information about configuring Pub/Sub notifications for
          +     * a job, see
          +     * https://cloud.google.com/batch/docs/enable-notifications.
                * 
          * * string pubsub_topic = 1; @@ -1768,11 +1808,19 @@ public Builder setPubsubTopic(java.lang.String value) { * * *
          -     * The Pub/Sub topic where notifications like the job state changes
          -     * will be published. The topic must exist in the same project as
          -     * the job and billings will be charged to this project.
          -     * If not specified, no Pub/Sub messages will be sent.
          -     * Topic format: `projects/{project}/topics/{topic}`.
          +     * The Pub/Sub topic where notifications for the job, like state
          +     * changes, will be published. If undefined, no Pub/Sub notifications
          +     * are sent for this job.
          +     *
          +     * Specify the topic using the following format:
          +     * `projects/{project}/topics/{topic}`.
          +     * Notably, if you want to specify a Pub/Sub topic that is in a
          +     * different project than the job, your administrator must grant your
          +     * project's Batch service agent permission to publish to that topic.
          +     *
          +     * For more information about configuring Pub/Sub notifications for
          +     * a job, see
          +     * https://cloud.google.com/batch/docs/enable-notifications.
                * 
          * * string pubsub_topic = 1; @@ -1789,11 +1837,19 @@ public Builder clearPubsubTopic() { * * *
          -     * The Pub/Sub topic where notifications like the job state changes
          -     * will be published. The topic must exist in the same project as
          -     * the job and billings will be charged to this project.
          -     * If not specified, no Pub/Sub messages will be sent.
          -     * Topic format: `projects/{project}/topics/{topic}`.
          +     * The Pub/Sub topic where notifications for the job, like state
          +     * changes, will be published. If undefined, no Pub/Sub notifications
          +     * are sent for this job.
          +     *
          +     * Specify the topic using the following format:
          +     * `projects/{project}/topics/{topic}`.
          +     * Notably, if you want to specify a Pub/Sub topic that is in a
          +     * different project than the job, your administrator must grant your
          +     * project's Batch service agent permission to publish to that topic.
          +     *
          +     * For more information about configuring Pub/Sub notifications for
          +     * a job, see
          +     * https://cloud.google.com/batch/docs/enable-notifications.
                * 
          * * string pubsub_topic = 1; diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobNotificationOrBuilder.java b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobNotificationOrBuilder.java index 52a78bcf5c7a..74891c042da2 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobNotificationOrBuilder.java +++ b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobNotificationOrBuilder.java @@ -28,11 +28,19 @@ public interface JobNotificationOrBuilder * * *
          -   * The Pub/Sub topic where notifications like the job state changes
          -   * will be published. The topic must exist in the same project as
          -   * the job and billings will be charged to this project.
          -   * If not specified, no Pub/Sub messages will be sent.
          -   * Topic format: `projects/{project}/topics/{topic}`.
          +   * The Pub/Sub topic where notifications for the job, like state
          +   * changes, will be published. If undefined, no Pub/Sub notifications
          +   * are sent for this job.
          +   *
          +   * Specify the topic using the following format:
          +   * `projects/{project}/topics/{topic}`.
          +   * Notably, if you want to specify a Pub/Sub topic that is in a
          +   * different project than the job, your administrator must grant your
          +   * project's Batch service agent permission to publish to that topic.
          +   *
          +   * For more information about configuring Pub/Sub notifications for
          +   * a job, see
          +   * https://cloud.google.com/batch/docs/enable-notifications.
              * 
          * * string pubsub_topic = 1; @@ -44,11 +52,19 @@ public interface JobNotificationOrBuilder * * *
          -   * The Pub/Sub topic where notifications like the job state changes
          -   * will be published. The topic must exist in the same project as
          -   * the job and billings will be charged to this project.
          -   * If not specified, no Pub/Sub messages will be sent.
          -   * Topic format: `projects/{project}/topics/{topic}`.
          +   * The Pub/Sub topic where notifications for the job, like state
          +   * changes, will be published. If undefined, no Pub/Sub notifications
          +   * are sent for this job.
          +   *
          +   * Specify the topic using the following format:
          +   * `projects/{project}/topics/{topic}`.
          +   * Notably, if you want to specify a Pub/Sub topic that is in a
          +   * different project than the job, your administrator must grant your
          +   * project's Batch service agent permission to publish to that topic.
          +   *
          +   * For more information about configuring Pub/Sub notifications for
          +   * a job, see
          +   * https://cloud.google.com/batch/docs/enable-notifications.
              * 
          * * string pubsub_topic = 1; diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobProto.java b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobProto.java index 67605de683be..6f7275f349e1 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobProto.java +++ b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobProto.java @@ -195,7 +195,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "sk_state\030\003 \001(\0162\'.google.cloud.batch.v1.T" + "askStatus.State\"K\n\004Type\022\024\n\020TYPE_UNSPECIF" + "IED\020\000\022\025\n\021JOB_STATE_CHANGED\020\001\022\026\n\022TASK_STA" - + "TE_CHANGED\020\002\"\274\016\n\020AllocationPolicy\022H\n\010loc" + + "TE_CHANGED\020\002\"\334\016\n\020AllocationPolicy\022H\n\010loc" + "ation\030\001 \001(\01326.google.cloud.batch.v1.Allo" + "cationPolicy.LocationPolicy\022S\n\tinstances" + "\030\010 \003(\0132@.google.cloud.batch.v1.Allocatio" @@ -227,42 +227,42 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ud.batch.v1.AllocationPolicy.Disk\022C\n\005dis" + "ks\030\006 \003(\01324.google.cloud.batch.v1.Allocat" + "ionPolicy.AttachedDisk\022\030\n\013reservation\030\007 " - + "\001(\tB\003\340A\001\032\261\001\n\030InstancePolicyOrTemplate\022H\n" + + "\001(\tB\003\340A\001\032\321\001\n\030InstancePolicyOrTemplate\022H\n" + "\006policy\030\001 \001(\01326.google.cloud.batch.v1.Al" + "locationPolicy.InstancePolicyH\000\022\033\n\021insta" + "nce_template\030\002 \001(\tH\000\022\033\n\023install_gpu_driv" - + "ers\030\003 \001(\010B\021\n\017policy_template\032W\n\020NetworkI" - + "nterface\022\017\n\007network\030\001 \001(\t\022\022\n\nsubnetwork\030" - + "\002 \001(\t\022\036\n\026no_external_ip_address\030\003 \001(\010\032e\n" - + "\rNetworkPolicy\022T\n\022network_interfaces\030\001 \003" - + "(\01328.google.cloud.batch.v1.AllocationPol" - + "icy.NetworkInterface\032<\n\017PlacementPolicy\022" - + "\023\n\013collocation\030\001 \001(\t\022\024\n\014max_distance\030\002 \001" - + "(\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" - + "\002 \001(\t:\0028\001\"`\n\021ProvisioningModel\022\"\n\036PROVIS" - + "IONING_MODEL_UNSPECIFIED\020\000\022\014\n\010STANDARD\020\001" - + "\022\010\n\004SPOT\020\002\022\017\n\013PREEMPTIBLE\020\003\"\313\004\n\tTaskGrou" - + "p\022\021\n\004name\030\001 \001(\tB\003\340A\003\0227\n\ttask_spec\030\003 \001(\0132" - + "\037.google.cloud.batch.v1.TaskSpecB\003\340A\002\022\022\n" - + "\ntask_count\030\004 \001(\003\022\023\n\013parallelism\030\005 \001(\003\022L" - + "\n\021scheduling_policy\030\006 \001(\01621.google.cloud" - + ".batch.v1.TaskGroup.SchedulingPolicy\022=\n\021" - + "task_environments\030\t \003(\0132\".google.cloud.b" - + "atch.v1.Environment\022\033\n\023task_count_per_no" - + "de\030\n \001(\003\022\032\n\022require_hosts_file\030\013 \001(\010\022\026\n\016" - + "permissive_ssh\030\014 \001(\010\022\034\n\017run_as_non_root\030" - + "\016 \001(\010B\003\340A\001\"\\\n\020SchedulingPolicy\022!\n\035SCHEDU" - + "LING_POLICY_UNSPECIFIED\020\000\022\027\n\023AS_SOON_AS_" - + "POSSIBLE\020\001\022\014\n\010IN_ORDER\020\002:o\352Al\n\036batch.goo" - + "gleapis.com/TaskGroup\022Jprojects/{project" - + "}/locations/{location}/jobs/{job}/taskGr" - + "oups/{task_group}\"/\n\016ServiceAccount\022\r\n\005e" - + "mail\030\001 \001(\t\022\016\n\006scopes\030\002 \003(\tB\251\001\n\031com.googl" - + "e.cloud.batch.v1B\010JobProtoP\001Z/cloud.goog" - + "le.com/go/batch/apiv1/batchpb;batchpb\242\002\003" - + "GCB\252\002\025Google.Cloud.Batch.V1\312\002\025Google\\Clo" - + "ud\\Batch\\V1\352\002\030Google::Cloud::Batch::V1b\006" - + "proto3" + + "ers\030\003 \001(\010\022\036\n\021install_ops_agent\030\004 \001(\010B\003\340A" + + "\001B\021\n\017policy_template\032W\n\020NetworkInterface" + + "\022\017\n\007network\030\001 \001(\t\022\022\n\nsubnetwork\030\002 \001(\t\022\036\n" + + "\026no_external_ip_address\030\003 \001(\010\032e\n\rNetwork" + + "Policy\022T\n\022network_interfaces\030\001 \003(\01328.goo" + + "gle.cloud.batch.v1.AllocationPolicy.Netw" + + "orkInterface\032<\n\017PlacementPolicy\022\023\n\013collo" + + "cation\030\001 \001(\t\022\024\n\014max_distance\030\002 \001(\003\032-\n\013La" + + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001\"`\n\021ProvisioningModel\022\"\n\036PROVISIONING_M" + + "ODEL_UNSPECIFIED\020\000\022\014\n\010STANDARD\020\001\022\010\n\004SPOT" + + "\020\002\022\017\n\013PREEMPTIBLE\020\003\"\313\004\n\tTaskGroup\022\021\n\004nam" + + "e\030\001 \001(\tB\003\340A\003\0227\n\ttask_spec\030\003 \001(\0132\037.google" + + ".cloud.batch.v1.TaskSpecB\003\340A\002\022\022\n\ntask_co" + + "unt\030\004 \001(\003\022\023\n\013parallelism\030\005 \001(\003\022L\n\021schedu" + + "ling_policy\030\006 \001(\01621.google.cloud.batch.v" + + "1.TaskGroup.SchedulingPolicy\022=\n\021task_env" + + "ironments\030\t \003(\0132\".google.cloud.batch.v1." + + "Environment\022\033\n\023task_count_per_node\030\n \001(\003" + + "\022\032\n\022require_hosts_file\030\013 \001(\010\022\026\n\016permissi" + + "ve_ssh\030\014 \001(\010\022\034\n\017run_as_non_root\030\016 \001(\010B\003\340" + + "A\001\"\\\n\020SchedulingPolicy\022!\n\035SCHEDULING_POL" + + "ICY_UNSPECIFIED\020\000\022\027\n\023AS_SOON_AS_POSSIBLE" + + "\020\001\022\014\n\010IN_ORDER\020\002:o\352Al\n\036batch.googleapis." + + "com/TaskGroup\022Jprojects/{project}/locati" + + "ons/{location}/jobs/{job}/taskGroups/{ta" + + "sk_group}\"/\n\016ServiceAccount\022\r\n\005email\030\001 \001" + + "(\t\022\016\n\006scopes\030\002 \003(\tB\251\001\n\031com.google.cloud." + + "batch.v1B\010JobProtoP\001Z/cloud.google.com/g" + + "o/batch/apiv1/batchpb;batchpb\242\002\003GCB\252\002\025Go" + + "ogle.Cloud.Batch.V1\312\002\025Google\\Cloud\\Batch" + + "\\V1\352\002\030Google::Cloud::Batch::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -433,7 +433,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_batch_v1_AllocationPolicy_InstancePolicyOrTemplate_descriptor, new java.lang.String[] { - "Policy", "InstanceTemplate", "InstallGpuDrivers", "PolicyTemplate", + "Policy", + "InstanceTemplate", + "InstallGpuDrivers", + "InstallOpsAgent", + "PolicyTemplate", }); internal_static_google_cloud_batch_v1_AllocationPolicy_NetworkInterface_descriptor = internal_static_google_cloud_batch_v1_AllocationPolicy_descriptor.getNestedTypes().get(6); diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Volume.java b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Volume.java index a0330d1dc8b5..fea3c2f87a1c 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Volume.java +++ b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Volume.java @@ -362,15 +362,19 @@ public com.google.protobuf.ByteString getMountPathBytes() { * * *
          -   * For Google Cloud Storage (GCS), mount options are the options supported by
          -   * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
          -   * For existing persistent disks, mount options provided by the
          -   * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
          -   * writing are supported. This is due to restrictions of multi-writer mode
          -   * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          -   * For other attached disks and Network File System (NFS), mount options are
          -   * these supported by the mount command
          -   * (https://man7.org/linux/man-pages/man8/mount.8.html).
          +   * Mount options vary based on the type of storage volume:
          +   *
          +   * * For a Cloud Storage bucket, all the mount options provided
          +   * by
          +   *   the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli)
          +   *   are supported.
          +   * * For an existing persistent disk, all mount options provided by the
          +   *   [`mount` command](https://man7.org/linux/man-pages/man8/mount.8.html)
          +   *   except writing are supported. This is due to restrictions of
          +   *   [multi-writer
          +   *   mode](https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          +   * * For any other disk or a Network File System (NFS), all the
          +   *   mount options provided by the `mount` command are supported.
              * 
          * * repeated string mount_options = 5; @@ -384,15 +388,19 @@ public com.google.protobuf.ProtocolStringList getMountOptionsList() { * * *
          -   * For Google Cloud Storage (GCS), mount options are the options supported by
          -   * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
          -   * For existing persistent disks, mount options provided by the
          -   * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
          -   * writing are supported. This is due to restrictions of multi-writer mode
          -   * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          -   * For other attached disks and Network File System (NFS), mount options are
          -   * these supported by the mount command
          -   * (https://man7.org/linux/man-pages/man8/mount.8.html).
          +   * Mount options vary based on the type of storage volume:
          +   *
          +   * * For a Cloud Storage bucket, all the mount options provided
          +   * by
          +   *   the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli)
          +   *   are supported.
          +   * * For an existing persistent disk, all mount options provided by the
          +   *   [`mount` command](https://man7.org/linux/man-pages/man8/mount.8.html)
          +   *   except writing are supported. This is due to restrictions of
          +   *   [multi-writer
          +   *   mode](https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          +   * * For any other disk or a Network File System (NFS), all the
          +   *   mount options provided by the `mount` command are supported.
              * 
          * * repeated string mount_options = 5; @@ -406,15 +414,19 @@ public int getMountOptionsCount() { * * *
          -   * For Google Cloud Storage (GCS), mount options are the options supported by
          -   * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
          -   * For existing persistent disks, mount options provided by the
          -   * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
          -   * writing are supported. This is due to restrictions of multi-writer mode
          -   * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          -   * For other attached disks and Network File System (NFS), mount options are
          -   * these supported by the mount command
          -   * (https://man7.org/linux/man-pages/man8/mount.8.html).
          +   * Mount options vary based on the type of storage volume:
          +   *
          +   * * For a Cloud Storage bucket, all the mount options provided
          +   * by
          +   *   the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli)
          +   *   are supported.
          +   * * For an existing persistent disk, all mount options provided by the
          +   *   [`mount` command](https://man7.org/linux/man-pages/man8/mount.8.html)
          +   *   except writing are supported. This is due to restrictions of
          +   *   [multi-writer
          +   *   mode](https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          +   * * For any other disk or a Network File System (NFS), all the
          +   *   mount options provided by the `mount` command are supported.
              * 
          * * repeated string mount_options = 5; @@ -429,15 +441,19 @@ public java.lang.String getMountOptions(int index) { * * *
          -   * For Google Cloud Storage (GCS), mount options are the options supported by
          -   * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
          -   * For existing persistent disks, mount options provided by the
          -   * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
          -   * writing are supported. This is due to restrictions of multi-writer mode
          -   * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          -   * For other attached disks and Network File System (NFS), mount options are
          -   * these supported by the mount command
          -   * (https://man7.org/linux/man-pages/man8/mount.8.html).
          +   * Mount options vary based on the type of storage volume:
          +   *
          +   * * For a Cloud Storage bucket, all the mount options provided
          +   * by
          +   *   the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli)
          +   *   are supported.
          +   * * For an existing persistent disk, all mount options provided by the
          +   *   [`mount` command](https://man7.org/linux/man-pages/man8/mount.8.html)
          +   *   except writing are supported. This is due to restrictions of
          +   *   [multi-writer
          +   *   mode](https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          +   * * For any other disk or a Network File System (NFS), all the
          +   *   mount options provided by the `mount` command are supported.
              * 
          * * repeated string mount_options = 5; @@ -1657,15 +1673,19 @@ private void ensureMountOptionsIsMutable() { * * *
          -     * For Google Cloud Storage (GCS), mount options are the options supported by
          -     * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
          -     * For existing persistent disks, mount options provided by the
          -     * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
          -     * writing are supported. This is due to restrictions of multi-writer mode
          -     * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          -     * For other attached disks and Network File System (NFS), mount options are
          -     * these supported by the mount command
          -     * (https://man7.org/linux/man-pages/man8/mount.8.html).
          +     * Mount options vary based on the type of storage volume:
          +     *
          +     * * For a Cloud Storage bucket, all the mount options provided
          +     * by
          +     *   the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli)
          +     *   are supported.
          +     * * For an existing persistent disk, all mount options provided by the
          +     *   [`mount` command](https://man7.org/linux/man-pages/man8/mount.8.html)
          +     *   except writing are supported. This is due to restrictions of
          +     *   [multi-writer
          +     *   mode](https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          +     * * For any other disk or a Network File System (NFS), all the
          +     *   mount options provided by the `mount` command are supported.
                * 
          * * repeated string mount_options = 5; @@ -1680,15 +1700,19 @@ public com.google.protobuf.ProtocolStringList getMountOptionsList() { * * *
          -     * For Google Cloud Storage (GCS), mount options are the options supported by
          -     * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
          -     * For existing persistent disks, mount options provided by the
          -     * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
          -     * writing are supported. This is due to restrictions of multi-writer mode
          -     * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          -     * For other attached disks and Network File System (NFS), mount options are
          -     * these supported by the mount command
          -     * (https://man7.org/linux/man-pages/man8/mount.8.html).
          +     * Mount options vary based on the type of storage volume:
          +     *
          +     * * For a Cloud Storage bucket, all the mount options provided
          +     * by
          +     *   the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli)
          +     *   are supported.
          +     * * For an existing persistent disk, all mount options provided by the
          +     *   [`mount` command](https://man7.org/linux/man-pages/man8/mount.8.html)
          +     *   except writing are supported. This is due to restrictions of
          +     *   [multi-writer
          +     *   mode](https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          +     * * For any other disk or a Network File System (NFS), all the
          +     *   mount options provided by the `mount` command are supported.
                * 
          * * repeated string mount_options = 5; @@ -1702,15 +1726,19 @@ public int getMountOptionsCount() { * * *
          -     * For Google Cloud Storage (GCS), mount options are the options supported by
          -     * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
          -     * For existing persistent disks, mount options provided by the
          -     * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
          -     * writing are supported. This is due to restrictions of multi-writer mode
          -     * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          -     * For other attached disks and Network File System (NFS), mount options are
          -     * these supported by the mount command
          -     * (https://man7.org/linux/man-pages/man8/mount.8.html).
          +     * Mount options vary based on the type of storage volume:
          +     *
          +     * * For a Cloud Storage bucket, all the mount options provided
          +     * by
          +     *   the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli)
          +     *   are supported.
          +     * * For an existing persistent disk, all mount options provided by the
          +     *   [`mount` command](https://man7.org/linux/man-pages/man8/mount.8.html)
          +     *   except writing are supported. This is due to restrictions of
          +     *   [multi-writer
          +     *   mode](https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          +     * * For any other disk or a Network File System (NFS), all the
          +     *   mount options provided by the `mount` command are supported.
                * 
          * * repeated string mount_options = 5; @@ -1725,15 +1753,19 @@ public java.lang.String getMountOptions(int index) { * * *
          -     * For Google Cloud Storage (GCS), mount options are the options supported by
          -     * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
          -     * For existing persistent disks, mount options provided by the
          -     * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
          -     * writing are supported. This is due to restrictions of multi-writer mode
          -     * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          -     * For other attached disks and Network File System (NFS), mount options are
          -     * these supported by the mount command
          -     * (https://man7.org/linux/man-pages/man8/mount.8.html).
          +     * Mount options vary based on the type of storage volume:
          +     *
          +     * * For a Cloud Storage bucket, all the mount options provided
          +     * by
          +     *   the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli)
          +     *   are supported.
          +     * * For an existing persistent disk, all mount options provided by the
          +     *   [`mount` command](https://man7.org/linux/man-pages/man8/mount.8.html)
          +     *   except writing are supported. This is due to restrictions of
          +     *   [multi-writer
          +     *   mode](https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          +     * * For any other disk or a Network File System (NFS), all the
          +     *   mount options provided by the `mount` command are supported.
                * 
          * * repeated string mount_options = 5; @@ -1748,15 +1780,19 @@ public com.google.protobuf.ByteString getMountOptionsBytes(int index) { * * *
          -     * For Google Cloud Storage (GCS), mount options are the options supported by
          -     * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
          -     * For existing persistent disks, mount options provided by the
          -     * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
          -     * writing are supported. This is due to restrictions of multi-writer mode
          -     * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          -     * For other attached disks and Network File System (NFS), mount options are
          -     * these supported by the mount command
          -     * (https://man7.org/linux/man-pages/man8/mount.8.html).
          +     * Mount options vary based on the type of storage volume:
          +     *
          +     * * For a Cloud Storage bucket, all the mount options provided
          +     * by
          +     *   the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli)
          +     *   are supported.
          +     * * For an existing persistent disk, all mount options provided by the
          +     *   [`mount` command](https://man7.org/linux/man-pages/man8/mount.8.html)
          +     *   except writing are supported. This is due to restrictions of
          +     *   [multi-writer
          +     *   mode](https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          +     * * For any other disk or a Network File System (NFS), all the
          +     *   mount options provided by the `mount` command are supported.
                * 
          * * repeated string mount_options = 5; @@ -1779,15 +1815,19 @@ public Builder setMountOptions(int index, java.lang.String value) { * * *
          -     * For Google Cloud Storage (GCS), mount options are the options supported by
          -     * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
          -     * For existing persistent disks, mount options provided by the
          -     * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
          -     * writing are supported. This is due to restrictions of multi-writer mode
          -     * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          -     * For other attached disks and Network File System (NFS), mount options are
          -     * these supported by the mount command
          -     * (https://man7.org/linux/man-pages/man8/mount.8.html).
          +     * Mount options vary based on the type of storage volume:
          +     *
          +     * * For a Cloud Storage bucket, all the mount options provided
          +     * by
          +     *   the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli)
          +     *   are supported.
          +     * * For an existing persistent disk, all mount options provided by the
          +     *   [`mount` command](https://man7.org/linux/man-pages/man8/mount.8.html)
          +     *   except writing are supported. This is due to restrictions of
          +     *   [multi-writer
          +     *   mode](https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          +     * * For any other disk or a Network File System (NFS), all the
          +     *   mount options provided by the `mount` command are supported.
                * 
          * * repeated string mount_options = 5; @@ -1809,15 +1849,19 @@ public Builder addMountOptions(java.lang.String value) { * * *
          -     * For Google Cloud Storage (GCS), mount options are the options supported by
          -     * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
          -     * For existing persistent disks, mount options provided by the
          -     * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
          -     * writing are supported. This is due to restrictions of multi-writer mode
          -     * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          -     * For other attached disks and Network File System (NFS), mount options are
          -     * these supported by the mount command
          -     * (https://man7.org/linux/man-pages/man8/mount.8.html).
          +     * Mount options vary based on the type of storage volume:
          +     *
          +     * * For a Cloud Storage bucket, all the mount options provided
          +     * by
          +     *   the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli)
          +     *   are supported.
          +     * * For an existing persistent disk, all mount options provided by the
          +     *   [`mount` command](https://man7.org/linux/man-pages/man8/mount.8.html)
          +     *   except writing are supported. This is due to restrictions of
          +     *   [multi-writer
          +     *   mode](https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          +     * * For any other disk or a Network File System (NFS), all the
          +     *   mount options provided by the `mount` command are supported.
                * 
          * * repeated string mount_options = 5; @@ -1836,15 +1880,19 @@ public Builder addAllMountOptions(java.lang.Iterable values) { * * *
          -     * For Google Cloud Storage (GCS), mount options are the options supported by
          -     * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
          -     * For existing persistent disks, mount options provided by the
          -     * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
          -     * writing are supported. This is due to restrictions of multi-writer mode
          -     * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          -     * For other attached disks and Network File System (NFS), mount options are
          -     * these supported by the mount command
          -     * (https://man7.org/linux/man-pages/man8/mount.8.html).
          +     * Mount options vary based on the type of storage volume:
          +     *
          +     * * For a Cloud Storage bucket, all the mount options provided
          +     * by
          +     *   the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli)
          +     *   are supported.
          +     * * For an existing persistent disk, all mount options provided by the
          +     *   [`mount` command](https://man7.org/linux/man-pages/man8/mount.8.html)
          +     *   except writing are supported. This is due to restrictions of
          +     *   [multi-writer
          +     *   mode](https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          +     * * For any other disk or a Network File System (NFS), all the
          +     *   mount options provided by the `mount` command are supported.
                * 
          * * repeated string mount_options = 5; @@ -1862,15 +1910,19 @@ public Builder clearMountOptions() { * * *
          -     * For Google Cloud Storage (GCS), mount options are the options supported by
          -     * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
          -     * For existing persistent disks, mount options provided by the
          -     * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
          -     * writing are supported. This is due to restrictions of multi-writer mode
          -     * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          -     * For other attached disks and Network File System (NFS), mount options are
          -     * these supported by the mount command
          -     * (https://man7.org/linux/man-pages/man8/mount.8.html).
          +     * Mount options vary based on the type of storage volume:
          +     *
          +     * * For a Cloud Storage bucket, all the mount options provided
          +     * by
          +     *   the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli)
          +     *   are supported.
          +     * * For an existing persistent disk, all mount options provided by the
          +     *   [`mount` command](https://man7.org/linux/man-pages/man8/mount.8.html)
          +     *   except writing are supported. This is due to restrictions of
          +     *   [multi-writer
          +     *   mode](https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          +     * * For any other disk or a Network File System (NFS), all the
          +     *   mount options provided by the `mount` command are supported.
                * 
          * * repeated string mount_options = 5; diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/VolumeOrBuilder.java b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/VolumeOrBuilder.java index ba830253f7a6..469cecaf5884 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/VolumeOrBuilder.java +++ b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/VolumeOrBuilder.java @@ -175,15 +175,19 @@ public interface VolumeOrBuilder * * *
          -   * For Google Cloud Storage (GCS), mount options are the options supported by
          -   * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
          -   * For existing persistent disks, mount options provided by the
          -   * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
          -   * writing are supported. This is due to restrictions of multi-writer mode
          -   * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          -   * For other attached disks and Network File System (NFS), mount options are
          -   * these supported by the mount command
          -   * (https://man7.org/linux/man-pages/man8/mount.8.html).
          +   * Mount options vary based on the type of storage volume:
          +   *
          +   * * For a Cloud Storage bucket, all the mount options provided
          +   * by
          +   *   the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli)
          +   *   are supported.
          +   * * For an existing persistent disk, all mount options provided by the
          +   *   [`mount` command](https://man7.org/linux/man-pages/man8/mount.8.html)
          +   *   except writing are supported. This is due to restrictions of
          +   *   [multi-writer
          +   *   mode](https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          +   * * For any other disk or a Network File System (NFS), all the
          +   *   mount options provided by the `mount` command are supported.
              * 
          * * repeated string mount_options = 5; @@ -195,15 +199,19 @@ public interface VolumeOrBuilder * * *
          -   * For Google Cloud Storage (GCS), mount options are the options supported by
          -   * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
          -   * For existing persistent disks, mount options provided by the
          -   * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
          -   * writing are supported. This is due to restrictions of multi-writer mode
          -   * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          -   * For other attached disks and Network File System (NFS), mount options are
          -   * these supported by the mount command
          -   * (https://man7.org/linux/man-pages/man8/mount.8.html).
          +   * Mount options vary based on the type of storage volume:
          +   *
          +   * * For a Cloud Storage bucket, all the mount options provided
          +   * by
          +   *   the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli)
          +   *   are supported.
          +   * * For an existing persistent disk, all mount options provided by the
          +   *   [`mount` command](https://man7.org/linux/man-pages/man8/mount.8.html)
          +   *   except writing are supported. This is due to restrictions of
          +   *   [multi-writer
          +   *   mode](https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          +   * * For any other disk or a Network File System (NFS), all the
          +   *   mount options provided by the `mount` command are supported.
              * 
          * * repeated string mount_options = 5; @@ -215,15 +223,19 @@ public interface VolumeOrBuilder * * *
          -   * For Google Cloud Storage (GCS), mount options are the options supported by
          -   * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
          -   * For existing persistent disks, mount options provided by the
          -   * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
          -   * writing are supported. This is due to restrictions of multi-writer mode
          -   * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          -   * For other attached disks and Network File System (NFS), mount options are
          -   * these supported by the mount command
          -   * (https://man7.org/linux/man-pages/man8/mount.8.html).
          +   * Mount options vary based on the type of storage volume:
          +   *
          +   * * For a Cloud Storage bucket, all the mount options provided
          +   * by
          +   *   the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli)
          +   *   are supported.
          +   * * For an existing persistent disk, all mount options provided by the
          +   *   [`mount` command](https://man7.org/linux/man-pages/man8/mount.8.html)
          +   *   except writing are supported. This is due to restrictions of
          +   *   [multi-writer
          +   *   mode](https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          +   * * For any other disk or a Network File System (NFS), all the
          +   *   mount options provided by the `mount` command are supported.
              * 
          * * repeated string mount_options = 5; @@ -236,15 +248,19 @@ public interface VolumeOrBuilder * * *
          -   * For Google Cloud Storage (GCS), mount options are the options supported by
          -   * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
          -   * For existing persistent disks, mount options provided by the
          -   * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
          -   * writing are supported. This is due to restrictions of multi-writer mode
          -   * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          -   * For other attached disks and Network File System (NFS), mount options are
          -   * these supported by the mount command
          -   * (https://man7.org/linux/man-pages/man8/mount.8.html).
          +   * Mount options vary based on the type of storage volume:
          +   *
          +   * * For a Cloud Storage bucket, all the mount options provided
          +   * by
          +   *   the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli)
          +   *   are supported.
          +   * * For an existing persistent disk, all mount options provided by the
          +   *   [`mount` command](https://man7.org/linux/man-pages/man8/mount.8.html)
          +   *   except writing are supported. This is due to restrictions of
          +   *   [multi-writer
          +   *   mode](https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          +   * * For any other disk or a Network File System (NFS), all the
          +   *   mount options provided by the `mount` command are supported.
              * 
          * * repeated string mount_options = 5; diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/job.proto b/java-batch/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/job.proto index b7d0729895a4..194fb056059c 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/job.proto +++ b/java-batch/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/job.proto @@ -233,11 +233,19 @@ message JobNotification { TASK_STATE_CHANGED = 2; } - // The Pub/Sub topic where notifications like the job state changes - // will be published. The topic must exist in the same project as - // the job and billings will be charged to this project. - // If not specified, no Pub/Sub messages will be sent. - // Topic format: `projects/{project}/topics/{topic}`. + // The Pub/Sub topic where notifications for the job, like state + // changes, will be published. If undefined, no Pub/Sub notifications + // are sent for this job. + // + // Specify the topic using the following format: + // `projects/{project}/topics/{topic}`. + // Notably, if you want to specify a Pub/Sub topic that is in a + // different project than the job, your administrator must grant your + // project's Batch service agent permission to publish to that topic. + // + // For more information about configuring Pub/Sub notifications for + // a job, see + // https://cloud.google.com/batch/docs/enable-notifications. string pubsub_topic = 1; // The attribute requirements of messages to be sent to this Pub/Sub topic. @@ -299,7 +307,9 @@ message AllocationPolicy { // Disk type as shown in `gcloud compute disk-types list`. // For example, local SSD uses type "local-ssd". // Persistent disks and boot disks use "pd-balanced", "pd-extreme", "pd-ssd" - // or "pd-standard". + // or "pd-standard". If not specified, "pd-standard" will be used as the + // default type for non-boot disks, "pd-balanced" will be used as the + // default type for boot disks. string type = 1; // Disk size in GB. @@ -430,6 +440,10 @@ message AllocationPolicy { // non Container-Optimized Image cases, following // https://github.com/GoogleCloudPlatform/compute-gpu-installation/blob/main/linux/install_gpu_driver.py. bool install_gpu_drivers = 3; + + // Optional. Set this field true if you want Batch to install Ops Agent on + // your behalf. Default is false. + bool install_ops_agent = 4 [(google.api.field_behavior) = OPTIONAL]; } // A network interface. diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/volume.proto b/java-batch/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/volume.proto index 2c7aef1b64c4..9bf8126f6340 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/volume.proto +++ b/java-batch/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/volume.proto @@ -47,15 +47,19 @@ message Volume { // The mount path for the volume, e.g. /mnt/disks/share. string mount_path = 4; - // For Google Cloud Storage (GCS), mount options are the options supported by - // the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse). - // For existing persistent disks, mount options provided by the - // mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except - // writing are supported. This is due to restrictions of multi-writer mode - // (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms). - // For other attached disks and Network File System (NFS), mount options are - // these supported by the mount command - // (https://man7.org/linux/man-pages/man8/mount.8.html). + // Mount options vary based on the type of storage volume: + // + // * For a Cloud Storage bucket, all the mount options provided + // by + // the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli) + // are supported. + // * For an existing persistent disk, all mount options provided by the + // [`mount` command](https://man7.org/linux/man-pages/man8/mount.8.html) + // except writing are supported. This is due to restrictions of + // [multi-writer + // mode](https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms). + // * For any other disk or a Network File System (NFS), all the + // mount options provided by the `mount` command are supported. repeated string mount_options = 5; } diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/AllocationPolicy.java b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/AllocationPolicy.java index 2a4b185d5992..1aaaf10bc972 100644 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/AllocationPolicy.java +++ b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/AllocationPolicy.java @@ -1743,7 +1743,9 @@ public interface DiskOrBuilder * Disk type as shown in `gcloud compute disk-types list`. * For example, local SSD uses type "local-ssd". * Persistent disks and boot disks use "pd-balanced", "pd-extreme", "pd-ssd" - * or "pd-standard". + * or "pd-standard". If not specified, "pd-standard" will be used as the + * default type for non-boot disks, "pd-balanced" will be used as the + * default type for boot disks. * * * string type = 1; @@ -1758,7 +1760,9 @@ public interface DiskOrBuilder * Disk type as shown in `gcloud compute disk-types list`. * For example, local SSD uses type "local-ssd". * Persistent disks and boot disks use "pd-balanced", "pd-extreme", "pd-ssd" - * or "pd-standard". + * or "pd-standard". If not specified, "pd-standard" will be used as the + * default type for non-boot disks, "pd-balanced" will be used as the + * default type for boot disks. * * * string type = 1; @@ -2129,7 +2133,9 @@ public com.google.protobuf.ByteString getSnapshotBytes() { * Disk type as shown in `gcloud compute disk-types list`. * For example, local SSD uses type "local-ssd". * Persistent disks and boot disks use "pd-balanced", "pd-extreme", "pd-ssd" - * or "pd-standard". + * or "pd-standard". If not specified, "pd-standard" will be used as the + * default type for non-boot disks, "pd-balanced" will be used as the + * default type for boot disks. * * * string type = 1; @@ -2155,7 +2161,9 @@ public java.lang.String getType() { * Disk type as shown in `gcloud compute disk-types list`. * For example, local SSD uses type "local-ssd". * Persistent disks and boot disks use "pd-balanced", "pd-extreme", "pd-ssd" - * or "pd-standard". + * or "pd-standard". If not specified, "pd-standard" will be used as the + * default type for non-boot disks, "pd-balanced" will be used as the + * default type for boot disks. * * * string type = 1; @@ -3129,7 +3137,9 @@ public Builder setSnapshotBytes(com.google.protobuf.ByteString value) { * Disk type as shown in `gcloud compute disk-types list`. * For example, local SSD uses type "local-ssd". * Persistent disks and boot disks use "pd-balanced", "pd-extreme", "pd-ssd" - * or "pd-standard". + * or "pd-standard". If not specified, "pd-standard" will be used as the + * default type for non-boot disks, "pd-balanced" will be used as the + * default type for boot disks. * * * string type = 1; @@ -3154,7 +3164,9 @@ public java.lang.String getType() { * Disk type as shown in `gcloud compute disk-types list`. * For example, local SSD uses type "local-ssd". * Persistent disks and boot disks use "pd-balanced", "pd-extreme", "pd-ssd" - * or "pd-standard". + * or "pd-standard". If not specified, "pd-standard" will be used as the + * default type for non-boot disks, "pd-balanced" will be used as the + * default type for boot disks. * * * string type = 1; @@ -3179,7 +3191,9 @@ public com.google.protobuf.ByteString getTypeBytes() { * Disk type as shown in `gcloud compute disk-types list`. * For example, local SSD uses type "local-ssd". * Persistent disks and boot disks use "pd-balanced", "pd-extreme", "pd-ssd" - * or "pd-standard". + * or "pd-standard". If not specified, "pd-standard" will be used as the + * default type for non-boot disks, "pd-balanced" will be used as the + * default type for boot disks. * * * string type = 1; @@ -3203,7 +3217,9 @@ public Builder setType(java.lang.String value) { * Disk type as shown in `gcloud compute disk-types list`. * For example, local SSD uses type "local-ssd". * Persistent disks and boot disks use "pd-balanced", "pd-extreme", "pd-ssd" - * or "pd-standard". + * or "pd-standard". If not specified, "pd-standard" will be used as the + * default type for non-boot disks, "pd-balanced" will be used as the + * default type for boot disks. * * * string type = 1; @@ -3223,7 +3239,9 @@ public Builder clearType() { * Disk type as shown in `gcloud compute disk-types list`. * For example, local SSD uses type "local-ssd". * Persistent disks and boot disks use "pd-balanced", "pd-extreme", "pd-ssd" - * or "pd-standard". + * or "pd-standard". If not specified, "pd-standard" will be used as the + * default type for non-boot disks, "pd-balanced" will be used as the + * default type for boot disks. * * * string type = 1; @@ -4848,7 +4866,7 @@ public interface AcceleratorOrBuilder * bool install_gpu_drivers = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.Accelerator.install_gpu_drivers is - * deprecated. See google/cloud/batch/v1alpha/job.proto;l=424 + * deprecated. See google/cloud/batch/v1alpha/job.proto;l=434 * @return The installGpuDrivers. */ @java.lang.Deprecated @@ -5019,7 +5037,7 @@ public long getCount() { * bool install_gpu_drivers = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.Accelerator.install_gpu_drivers is - * deprecated. See google/cloud/batch/v1alpha/job.proto;l=424 + * deprecated. See google/cloud/batch/v1alpha/job.proto;l=434 * @return The installGpuDrivers. */ @java.lang.Override @@ -5684,7 +5702,7 @@ public Builder clearCount() { * bool install_gpu_drivers = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.Accelerator.install_gpu_drivers is - * deprecated. See google/cloud/batch/v1alpha/job.proto;l=424 + * deprecated. See google/cloud/batch/v1alpha/job.proto;l=434 * @return The installGpuDrivers. */ @java.lang.Override @@ -5702,7 +5720,7 @@ public boolean getInstallGpuDrivers() { * bool install_gpu_drivers = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.Accelerator.install_gpu_drivers is - * deprecated. See google/cloud/batch/v1alpha/job.proto;l=424 + * deprecated. See google/cloud/batch/v1alpha/job.proto;l=434 * @param value The installGpuDrivers to set. * @return This builder for chaining. */ @@ -5724,7 +5742,7 @@ public Builder setInstallGpuDrivers(boolean value) { * bool install_gpu_drivers = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.Accelerator.install_gpu_drivers is - * deprecated. See google/cloud/batch/v1alpha/job.proto;l=424 + * deprecated. See google/cloud/batch/v1alpha/job.proto;l=434 * @return This builder for chaining. */ @java.lang.Deprecated @@ -5951,7 +5969,7 @@ public interface InstancePolicyOrBuilder * repeated string allowed_machine_types = 1 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types - * is deprecated. See google/cloud/batch/v1alpha/job.proto;l=440 + * is deprecated. See google/cloud/batch/v1alpha/job.proto;l=450 * @return A list containing the allowedMachineTypes. */ @java.lang.Deprecated @@ -5966,7 +5984,7 @@ public interface InstancePolicyOrBuilder * repeated string allowed_machine_types = 1 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types - * is deprecated. See google/cloud/batch/v1alpha/job.proto;l=440 + * is deprecated. See google/cloud/batch/v1alpha/job.proto;l=450 * @return The count of allowedMachineTypes. */ @java.lang.Deprecated @@ -5981,7 +5999,7 @@ public interface InstancePolicyOrBuilder * repeated string allowed_machine_types = 1 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types - * is deprecated. See google/cloud/batch/v1alpha/job.proto;l=440 + * is deprecated. See google/cloud/batch/v1alpha/job.proto;l=450 * @param index The index of the element to return. * @return The allowedMachineTypes at the given index. */ @@ -5997,7 +6015,7 @@ public interface InstancePolicyOrBuilder * repeated string allowed_machine_types = 1 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types - * is deprecated. See google/cloud/batch/v1alpha/job.proto;l=440 + * is deprecated. See google/cloud/batch/v1alpha/job.proto;l=450 * @param index The index of the value to return. * @return The bytes of the allowedMachineTypes at the given index. */ @@ -6352,7 +6370,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated string allowed_machine_types = 1 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types - * is deprecated. See google/cloud/batch/v1alpha/job.proto;l=440 + * is deprecated. See google/cloud/batch/v1alpha/job.proto;l=450 * @return A list containing the allowedMachineTypes. */ @java.lang.Deprecated @@ -6369,7 +6387,7 @@ public com.google.protobuf.ProtocolStringList getAllowedMachineTypesList() { * repeated string allowed_machine_types = 1 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types - * is deprecated. See google/cloud/batch/v1alpha/job.proto;l=440 + * is deprecated. See google/cloud/batch/v1alpha/job.proto;l=450 * @return The count of allowedMachineTypes. */ @java.lang.Deprecated @@ -6386,7 +6404,7 @@ public int getAllowedMachineTypesCount() { * repeated string allowed_machine_types = 1 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types - * is deprecated. See google/cloud/batch/v1alpha/job.proto;l=440 + * is deprecated. See google/cloud/batch/v1alpha/job.proto;l=450 * @param index The index of the element to return. * @return The allowedMachineTypes at the given index. */ @@ -6404,7 +6422,7 @@ public java.lang.String getAllowedMachineTypes(int index) { * repeated string allowed_machine_types = 1 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types - * is deprecated. See google/cloud/batch/v1alpha/job.proto;l=440 + * is deprecated. See google/cloud/batch/v1alpha/job.proto;l=450 * @param index The index of the value to return. * @return The bytes of the allowedMachineTypes at the given index. */ @@ -7516,7 +7534,7 @@ private void ensureAllowedMachineTypesIsMutable() { * * @deprecated * google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is - * deprecated. See google/cloud/batch/v1alpha/job.proto;l=440 + * deprecated. See google/cloud/batch/v1alpha/job.proto;l=450 * @return A list containing the allowedMachineTypes. */ @java.lang.Deprecated @@ -7535,7 +7553,7 @@ public com.google.protobuf.ProtocolStringList getAllowedMachineTypesList() { * * @deprecated * google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is - * deprecated. See google/cloud/batch/v1alpha/job.proto;l=440 + * deprecated. See google/cloud/batch/v1alpha/job.proto;l=450 * @return The count of allowedMachineTypes. */ @java.lang.Deprecated @@ -7553,7 +7571,7 @@ public int getAllowedMachineTypesCount() { * * @deprecated * google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is - * deprecated. See google/cloud/batch/v1alpha/job.proto;l=440 + * deprecated. See google/cloud/batch/v1alpha/job.proto;l=450 * @param index The index of the element to return. * @return The allowedMachineTypes at the given index. */ @@ -7572,7 +7590,7 @@ public java.lang.String getAllowedMachineTypes(int index) { * * @deprecated * google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is - * deprecated. See google/cloud/batch/v1alpha/job.proto;l=440 + * deprecated. See google/cloud/batch/v1alpha/job.proto;l=450 * @param index The index of the value to return. * @return The bytes of the allowedMachineTypes at the given index. */ @@ -7591,7 +7609,7 @@ public com.google.protobuf.ByteString getAllowedMachineTypesBytes(int index) { * * @deprecated * google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is - * deprecated. See google/cloud/batch/v1alpha/job.proto;l=440 + * deprecated. See google/cloud/batch/v1alpha/job.proto;l=450 * @param index The index to set the value at. * @param value The allowedMachineTypes to set. * @return This builder for chaining. @@ -7618,7 +7636,7 @@ public Builder setAllowedMachineTypes(int index, java.lang.String value) { * * @deprecated * google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is - * deprecated. See google/cloud/batch/v1alpha/job.proto;l=440 + * deprecated. See google/cloud/batch/v1alpha/job.proto;l=450 * @param value The allowedMachineTypes to add. * @return This builder for chaining. */ @@ -7644,7 +7662,7 @@ public Builder addAllowedMachineTypes(java.lang.String value) { * * @deprecated * google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is - * deprecated. See google/cloud/batch/v1alpha/job.proto;l=440 + * deprecated. See google/cloud/batch/v1alpha/job.proto;l=450 * @param values The allowedMachineTypes to add. * @return This builder for chaining. */ @@ -7667,7 +7685,7 @@ public Builder addAllAllowedMachineTypes(java.lang.Iterable va * * @deprecated * google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is - * deprecated. See google/cloud/batch/v1alpha/job.proto;l=440 + * deprecated. See google/cloud/batch/v1alpha/job.proto;l=450 * @return This builder for chaining. */ @java.lang.Deprecated @@ -7689,7 +7707,7 @@ public Builder clearAllowedMachineTypes() { * * @deprecated * google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy.allowed_machine_types is - * deprecated. See google/cloud/batch/v1alpha/job.proto;l=440 + * deprecated. See google/cloud/batch/v1alpha/job.proto;l=450 * @param value The bytes of the allowedMachineTypes to add. * @return This builder for chaining. */ @@ -13769,7 +13787,7 @@ public com.google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy getLocatio * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=584 + * google/cloud/batch/v1alpha/job.proto;l=594 * @return Whether the instance field is set. */ @java.lang.Override @@ -13789,7 +13807,7 @@ public boolean hasInstance() { * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=584 + * google/cloud/batch/v1alpha/job.proto;l=594 * @return The instance. */ @java.lang.Override @@ -13926,7 +13944,7 @@ public com.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate * repeated string instance_templates = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=591 + * google/cloud/batch/v1alpha/job.proto;l=601 * @return A list containing the instanceTemplates. */ @java.lang.Deprecated @@ -13943,7 +13961,7 @@ public com.google.protobuf.ProtocolStringList getInstanceTemplatesList() { * repeated string instance_templates = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=591 + * google/cloud/batch/v1alpha/job.proto;l=601 * @return The count of instanceTemplates. */ @java.lang.Deprecated @@ -13960,7 +13978,7 @@ public int getInstanceTemplatesCount() { * repeated string instance_templates = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=591 + * google/cloud/batch/v1alpha/job.proto;l=601 * @param index The index of the element to return. * @return The instanceTemplates at the given index. */ @@ -13978,7 +13996,7 @@ public java.lang.String getInstanceTemplates(int index) { * repeated string instance_templates = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=591 + * google/cloud/batch/v1alpha/job.proto;l=601 * @param index The index of the value to return. * @return The bytes of the instanceTemplates at the given index. */ @@ -14019,7 +14037,7 @@ public com.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel convert * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=594 + * google/cloud/batch/v1alpha/job.proto;l=604 * @return A list containing the provisioningModels. */ @java.lang.Override @@ -14042,7 +14060,7 @@ public com.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel convert * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=594 + * google/cloud/batch/v1alpha/job.proto;l=604 * @return The count of provisioningModels. */ @java.lang.Override @@ -14062,7 +14080,7 @@ public int getProvisioningModelsCount() { * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=594 + * google/cloud/batch/v1alpha/job.proto;l=604 * @param index The index of the element to return. * @return The provisioningModels at the given index. */ @@ -14084,7 +14102,7 @@ public com.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel getProv * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=594 + * google/cloud/batch/v1alpha/job.proto;l=604 * @return A list containing the enum numeric values on the wire for provisioningModels. */ @java.lang.Override @@ -14104,7 +14122,7 @@ public java.util.List getProvisioningModelsValueList() { * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=594 + * google/cloud/batch/v1alpha/job.proto;l=604 * @param index The index of the value to return. * @return The enum numeric value on the wire of provisioningModels at the given index. */ @@ -14130,7 +14148,7 @@ public int getProvisioningModelsValue(int index) { * string service_account_email = 5 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=597 + * See google/cloud/batch/v1alpha/job.proto;l=607 * @return The serviceAccountEmail. */ @java.lang.Override @@ -14156,7 +14174,7 @@ public java.lang.String getServiceAccountEmail() { * string service_account_email = 5 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=597 + * See google/cloud/batch/v1alpha/job.proto;l=607 * @return The bytes for serviceAccountEmail. */ @java.lang.Override @@ -15573,7 +15591,7 @@ public Builder clearLocation() { * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=584 + * google/cloud/batch/v1alpha/job.proto;l=594 * @return Whether the instance field is set. */ @java.lang.Deprecated @@ -15592,7 +15610,7 @@ public boolean hasInstance() { * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=584 + * google/cloud/batch/v1alpha/job.proto;l=594 * @return The instance. */ @java.lang.Deprecated @@ -16227,7 +16245,7 @@ private void ensureInstanceTemplatesIsMutable() { * repeated string instance_templates = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=591 + * google/cloud/batch/v1alpha/job.proto;l=601 * @return A list containing the instanceTemplates. */ @java.lang.Deprecated @@ -16245,7 +16263,7 @@ public com.google.protobuf.ProtocolStringList getInstanceTemplatesList() { * repeated string instance_templates = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=591 + * google/cloud/batch/v1alpha/job.proto;l=601 * @return The count of instanceTemplates. */ @java.lang.Deprecated @@ -16262,7 +16280,7 @@ public int getInstanceTemplatesCount() { * repeated string instance_templates = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=591 + * google/cloud/batch/v1alpha/job.proto;l=601 * @param index The index of the element to return. * @return The instanceTemplates at the given index. */ @@ -16280,7 +16298,7 @@ public java.lang.String getInstanceTemplates(int index) { * repeated string instance_templates = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=591 + * google/cloud/batch/v1alpha/job.proto;l=601 * @param index The index of the value to return. * @return The bytes of the instanceTemplates at the given index. */ @@ -16298,7 +16316,7 @@ public com.google.protobuf.ByteString getInstanceTemplatesBytes(int index) { * repeated string instance_templates = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=591 + * google/cloud/batch/v1alpha/job.proto;l=601 * @param index The index to set the value at. * @param value The instanceTemplates to set. * @return This builder for chaining. @@ -16324,7 +16342,7 @@ public Builder setInstanceTemplates(int index, java.lang.String value) { * repeated string instance_templates = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=591 + * google/cloud/batch/v1alpha/job.proto;l=601 * @param value The instanceTemplates to add. * @return This builder for chaining. */ @@ -16349,7 +16367,7 @@ public Builder addInstanceTemplates(java.lang.String value) { * repeated string instance_templates = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=591 + * google/cloud/batch/v1alpha/job.proto;l=601 * @param values The instanceTemplates to add. * @return This builder for chaining. */ @@ -16371,7 +16389,7 @@ public Builder addAllInstanceTemplates(java.lang.Iterable valu * repeated string instance_templates = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=591 + * google/cloud/batch/v1alpha/job.proto;l=601 * @return This builder for chaining. */ @java.lang.Deprecated @@ -16392,7 +16410,7 @@ public Builder clearInstanceTemplates() { * repeated string instance_templates = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=591 + * google/cloud/batch/v1alpha/job.proto;l=601 * @param value The bytes of the instanceTemplates to add. * @return This builder for chaining. */ @@ -16430,7 +16448,7 @@ private void ensureProvisioningModelsIsMutable() { * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=594 + * See google/cloud/batch/v1alpha/job.proto;l=604 * @return A list containing the provisioningModels. */ @java.lang.Deprecated @@ -16452,7 +16470,7 @@ private void ensureProvisioningModelsIsMutable() { * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=594 + * See google/cloud/batch/v1alpha/job.proto;l=604 * @return The count of provisioningModels. */ @java.lang.Deprecated @@ -16471,7 +16489,7 @@ public int getProvisioningModelsCount() { * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=594 + * See google/cloud/batch/v1alpha/job.proto;l=604 * @param index The index of the element to return. * @return The provisioningModels at the given index. */ @@ -16492,7 +16510,7 @@ public com.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel getProv * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=594 + * See google/cloud/batch/v1alpha/job.proto;l=604 * @param index The index to set the value at. * @param value The provisioningModels to set. * @return This builder for chaining. @@ -16520,7 +16538,7 @@ public Builder setProvisioningModels( * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=594 + * See google/cloud/batch/v1alpha/job.proto;l=604 * @param value The provisioningModels to add. * @return This builder for chaining. */ @@ -16547,7 +16565,7 @@ public Builder addProvisioningModels( * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=594 + * See google/cloud/batch/v1alpha/job.proto;l=604 * @param values The provisioningModels to add. * @return This builder for chaining. */ @@ -16575,7 +16593,7 @@ public Builder addAllProvisioningModels( * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=594 + * See google/cloud/batch/v1alpha/job.proto;l=604 * @return This builder for chaining. */ @java.lang.Deprecated @@ -16597,7 +16615,7 @@ public Builder clearProvisioningModels() { * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=594 + * See google/cloud/batch/v1alpha/job.proto;l=604 * @return A list containing the enum numeric values on the wire for provisioningModels. */ @java.lang.Deprecated @@ -16616,7 +16634,7 @@ public java.util.List getProvisioningModelsValueList() { * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=594 + * See google/cloud/batch/v1alpha/job.proto;l=604 * @param index The index of the value to return. * @return The enum numeric value on the wire of provisioningModels at the given index. */ @@ -16636,7 +16654,7 @@ public int getProvisioningModelsValue(int index) { * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=594 + * See google/cloud/batch/v1alpha/job.proto;l=604 * @param index The index to set the value at. * @param value The enum numeric value on the wire for provisioningModels to set. * @return This builder for chaining. @@ -16660,7 +16678,7 @@ public Builder setProvisioningModelsValue(int index, int value) { * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=594 + * See google/cloud/batch/v1alpha/job.proto;l=604 * @param value The enum numeric value on the wire for provisioningModels to add. * @return This builder for chaining. */ @@ -16683,7 +16701,7 @@ public Builder addProvisioningModelsValue(int value) { * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=594 + * See google/cloud/batch/v1alpha/job.proto;l=604 * @param values The enum numeric values on the wire for provisioningModels to add. * @return This builder for chaining. */ @@ -16708,7 +16726,7 @@ public Builder addAllProvisioningModelsValue(java.lang.Iterablestring service_account_email = 5 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=597 + * See google/cloud/batch/v1alpha/job.proto;l=607 * @return The serviceAccountEmail. */ @java.lang.Deprecated @@ -16733,7 +16751,7 @@ public java.lang.String getServiceAccountEmail() { * string service_account_email = 5 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=597 + * See google/cloud/batch/v1alpha/job.proto;l=607 * @return The bytes for serviceAccountEmail. */ @java.lang.Deprecated @@ -16758,7 +16776,7 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() { * string service_account_email = 5 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=597 + * See google/cloud/batch/v1alpha/job.proto;l=607 * @param value The serviceAccountEmail to set. * @return This builder for chaining. */ @@ -16782,7 +16800,7 @@ public Builder setServiceAccountEmail(java.lang.String value) { * string service_account_email = 5 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=597 + * See google/cloud/batch/v1alpha/job.proto;l=607 * @return This builder for chaining. */ @java.lang.Deprecated @@ -16802,7 +16820,7 @@ public Builder clearServiceAccountEmail() { * string service_account_email = 5 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=597 + * See google/cloud/batch/v1alpha/job.proto;l=607 * @param value The bytes for serviceAccountEmail to set. * @return This builder for chaining. */ diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/AllocationPolicyOrBuilder.java b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/AllocationPolicyOrBuilder.java index 74411469ae70..28faa53a0626 100644 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/AllocationPolicyOrBuilder.java +++ b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/AllocationPolicyOrBuilder.java @@ -71,7 +71,7 @@ public interface AllocationPolicyOrBuilder * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=584 + * google/cloud/batch/v1alpha/job.proto;l=594 * @return Whether the instance field is set. */ @java.lang.Deprecated @@ -88,7 +88,7 @@ public interface AllocationPolicyOrBuilder * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=584 + * google/cloud/batch/v1alpha/job.proto;l=594 * @return The instance. */ @java.lang.Deprecated @@ -188,7 +188,7 @@ public interface AllocationPolicyOrBuilder * repeated string instance_templates = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=591 + * google/cloud/batch/v1alpha/job.proto;l=601 * @return A list containing the instanceTemplates. */ @java.lang.Deprecated @@ -203,7 +203,7 @@ public interface AllocationPolicyOrBuilder * repeated string instance_templates = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=591 + * google/cloud/batch/v1alpha/job.proto;l=601 * @return The count of instanceTemplates. */ @java.lang.Deprecated @@ -218,7 +218,7 @@ public interface AllocationPolicyOrBuilder * repeated string instance_templates = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=591 + * google/cloud/batch/v1alpha/job.proto;l=601 * @param index The index of the element to return. * @return The instanceTemplates at the given index. */ @@ -234,7 +234,7 @@ public interface AllocationPolicyOrBuilder * repeated string instance_templates = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=591 + * google/cloud/batch/v1alpha/job.proto;l=601 * @param index The index of the value to return. * @return The bytes of the instanceTemplates at the given index. */ @@ -253,7 +253,7 @@ public interface AllocationPolicyOrBuilder * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=594 + * google/cloud/batch/v1alpha/job.proto;l=604 * @return A list containing the provisioningModels. */ @java.lang.Deprecated @@ -271,7 +271,7 @@ public interface AllocationPolicyOrBuilder * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=594 + * google/cloud/batch/v1alpha/job.proto;l=604 * @return The count of provisioningModels. */ @java.lang.Deprecated @@ -288,7 +288,7 @@ public interface AllocationPolicyOrBuilder * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=594 + * google/cloud/batch/v1alpha/job.proto;l=604 * @param index The index of the element to return. * @return The provisioningModels at the given index. */ @@ -307,7 +307,7 @@ com.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel getProvisionin * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=594 + * google/cloud/batch/v1alpha/job.proto;l=604 * @return A list containing the enum numeric values on the wire for provisioningModels. */ @java.lang.Deprecated @@ -324,7 +324,7 @@ com.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel getProvisionin * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=594 + * google/cloud/batch/v1alpha/job.proto;l=604 * @param index The index of the value to return. * @return The enum numeric value on the wire of provisioningModels at the given index. */ @@ -341,7 +341,7 @@ com.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel getProvisionin * string service_account_email = 5 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=597 + * See google/cloud/batch/v1alpha/job.proto;l=607 * @return The serviceAccountEmail. */ @java.lang.Deprecated @@ -356,7 +356,7 @@ com.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel getProvisionin * string service_account_email = 5 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=597 + * See google/cloud/batch/v1alpha/job.proto;l=607 * @return The bytes for serviceAccountEmail. */ @java.lang.Deprecated diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/JobNotification.java b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/JobNotification.java index f4da76ef22da..071b000ef1ad 100644 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/JobNotification.java +++ b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/JobNotification.java @@ -1209,11 +1209,19 @@ public com.google.cloud.batch.v1alpha.JobNotification.Message getDefaultInstance * * *
          -   * The Pub/Sub topic where notifications like the job state changes
          -   * will be published. The topic must exist in the same project as
          -   * the job and billings will be charged to this project.
          -   * If not specified, no Pub/Sub messages will be sent.
          -   * Topic format: `projects/{project}/topics/{topic}`.
          +   * The Pub/Sub topic where notifications for the job, like state
          +   * changes, will be published. If undefined, no Pub/Sub notifications
          +   * are sent for this job.
          +   *
          +   * Specify the topic using the following format:
          +   * `projects/{project}/topics/{topic}`.
          +   * Notably, if you want to specify a Pub/Sub topic that is in a
          +   * different project than the job, your administrator must grant your
          +   * project's Batch service agent permission to publish to that topic.
          +   *
          +   * For more information about configuring Pub/Sub notifications for
          +   * a job, see
          +   * https://cloud.google.com/batch/docs/enable-notifications.
              * 
          * * string pubsub_topic = 1; @@ -1236,11 +1244,19 @@ public java.lang.String getPubsubTopic() { * * *
          -   * The Pub/Sub topic where notifications like the job state changes
          -   * will be published. The topic must exist in the same project as
          -   * the job and billings will be charged to this project.
          -   * If not specified, no Pub/Sub messages will be sent.
          -   * Topic format: `projects/{project}/topics/{topic}`.
          +   * The Pub/Sub topic where notifications for the job, like state
          +   * changes, will be published. If undefined, no Pub/Sub notifications
          +   * are sent for this job.
          +   *
          +   * Specify the topic using the following format:
          +   * `projects/{project}/topics/{topic}`.
          +   * Notably, if you want to specify a Pub/Sub topic that is in a
          +   * different project than the job, your administrator must grant your
          +   * project's Batch service agent permission to publish to that topic.
          +   *
          +   * For more information about configuring Pub/Sub notifications for
          +   * a job, see
          +   * https://cloud.google.com/batch/docs/enable-notifications.
              * 
          * * string pubsub_topic = 1; @@ -1702,11 +1718,19 @@ public Builder mergeFrom( * * *
          -     * The Pub/Sub topic where notifications like the job state changes
          -     * will be published. The topic must exist in the same project as
          -     * the job and billings will be charged to this project.
          -     * If not specified, no Pub/Sub messages will be sent.
          -     * Topic format: `projects/{project}/topics/{topic}`.
          +     * The Pub/Sub topic where notifications for the job, like state
          +     * changes, will be published. If undefined, no Pub/Sub notifications
          +     * are sent for this job.
          +     *
          +     * Specify the topic using the following format:
          +     * `projects/{project}/topics/{topic}`.
          +     * Notably, if you want to specify a Pub/Sub topic that is in a
          +     * different project than the job, your administrator must grant your
          +     * project's Batch service agent permission to publish to that topic.
          +     *
          +     * For more information about configuring Pub/Sub notifications for
          +     * a job, see
          +     * https://cloud.google.com/batch/docs/enable-notifications.
                * 
          * * string pubsub_topic = 1; @@ -1728,11 +1752,19 @@ public java.lang.String getPubsubTopic() { * * *
          -     * The Pub/Sub topic where notifications like the job state changes
          -     * will be published. The topic must exist in the same project as
          -     * the job and billings will be charged to this project.
          -     * If not specified, no Pub/Sub messages will be sent.
          -     * Topic format: `projects/{project}/topics/{topic}`.
          +     * The Pub/Sub topic where notifications for the job, like state
          +     * changes, will be published. If undefined, no Pub/Sub notifications
          +     * are sent for this job.
          +     *
          +     * Specify the topic using the following format:
          +     * `projects/{project}/topics/{topic}`.
          +     * Notably, if you want to specify a Pub/Sub topic that is in a
          +     * different project than the job, your administrator must grant your
          +     * project's Batch service agent permission to publish to that topic.
          +     *
          +     * For more information about configuring Pub/Sub notifications for
          +     * a job, see
          +     * https://cloud.google.com/batch/docs/enable-notifications.
                * 
          * * string pubsub_topic = 1; @@ -1754,11 +1786,19 @@ public com.google.protobuf.ByteString getPubsubTopicBytes() { * * *
          -     * The Pub/Sub topic where notifications like the job state changes
          -     * will be published. The topic must exist in the same project as
          -     * the job and billings will be charged to this project.
          -     * If not specified, no Pub/Sub messages will be sent.
          -     * Topic format: `projects/{project}/topics/{topic}`.
          +     * The Pub/Sub topic where notifications for the job, like state
          +     * changes, will be published. If undefined, no Pub/Sub notifications
          +     * are sent for this job.
          +     *
          +     * Specify the topic using the following format:
          +     * `projects/{project}/topics/{topic}`.
          +     * Notably, if you want to specify a Pub/Sub topic that is in a
          +     * different project than the job, your administrator must grant your
          +     * project's Batch service agent permission to publish to that topic.
          +     *
          +     * For more information about configuring Pub/Sub notifications for
          +     * a job, see
          +     * https://cloud.google.com/batch/docs/enable-notifications.
                * 
          * * string pubsub_topic = 1; @@ -1779,11 +1819,19 @@ public Builder setPubsubTopic(java.lang.String value) { * * *
          -     * The Pub/Sub topic where notifications like the job state changes
          -     * will be published. The topic must exist in the same project as
          -     * the job and billings will be charged to this project.
          -     * If not specified, no Pub/Sub messages will be sent.
          -     * Topic format: `projects/{project}/topics/{topic}`.
          +     * The Pub/Sub topic where notifications for the job, like state
          +     * changes, will be published. If undefined, no Pub/Sub notifications
          +     * are sent for this job.
          +     *
          +     * Specify the topic using the following format:
          +     * `projects/{project}/topics/{topic}`.
          +     * Notably, if you want to specify a Pub/Sub topic that is in a
          +     * different project than the job, your administrator must grant your
          +     * project's Batch service agent permission to publish to that topic.
          +     *
          +     * For more information about configuring Pub/Sub notifications for
          +     * a job, see
          +     * https://cloud.google.com/batch/docs/enable-notifications.
                * 
          * * string pubsub_topic = 1; @@ -1800,11 +1848,19 @@ public Builder clearPubsubTopic() { * * *
          -     * The Pub/Sub topic where notifications like the job state changes
          -     * will be published. The topic must exist in the same project as
          -     * the job and billings will be charged to this project.
          -     * If not specified, no Pub/Sub messages will be sent.
          -     * Topic format: `projects/{project}/topics/{topic}`.
          +     * The Pub/Sub topic where notifications for the job, like state
          +     * changes, will be published. If undefined, no Pub/Sub notifications
          +     * are sent for this job.
          +     *
          +     * Specify the topic using the following format:
          +     * `projects/{project}/topics/{topic}`.
          +     * Notably, if you want to specify a Pub/Sub topic that is in a
          +     * different project than the job, your administrator must grant your
          +     * project's Batch service agent permission to publish to that topic.
          +     *
          +     * For more information about configuring Pub/Sub notifications for
          +     * a job, see
          +     * https://cloud.google.com/batch/docs/enable-notifications.
                * 
          * * string pubsub_topic = 1; diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/JobNotificationOrBuilder.java b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/JobNotificationOrBuilder.java index 6446feb066c4..f0768635b2c4 100644 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/JobNotificationOrBuilder.java +++ b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/JobNotificationOrBuilder.java @@ -28,11 +28,19 @@ public interface JobNotificationOrBuilder * * *
          -   * The Pub/Sub topic where notifications like the job state changes
          -   * will be published. The topic must exist in the same project as
          -   * the job and billings will be charged to this project.
          -   * If not specified, no Pub/Sub messages will be sent.
          -   * Topic format: `projects/{project}/topics/{topic}`.
          +   * The Pub/Sub topic where notifications for the job, like state
          +   * changes, will be published. If undefined, no Pub/Sub notifications
          +   * are sent for this job.
          +   *
          +   * Specify the topic using the following format:
          +   * `projects/{project}/topics/{topic}`.
          +   * Notably, if you want to specify a Pub/Sub topic that is in a
          +   * different project than the job, your administrator must grant your
          +   * project's Batch service agent permission to publish to that topic.
          +   *
          +   * For more information about configuring Pub/Sub notifications for
          +   * a job, see
          +   * https://cloud.google.com/batch/docs/enable-notifications.
              * 
          * * string pubsub_topic = 1; @@ -44,11 +52,19 @@ public interface JobNotificationOrBuilder * * *
          -   * The Pub/Sub topic where notifications like the job state changes
          -   * will be published. The topic must exist in the same project as
          -   * the job and billings will be charged to this project.
          -   * If not specified, no Pub/Sub messages will be sent.
          -   * Topic format: `projects/{project}/topics/{topic}`.
          +   * The Pub/Sub topic where notifications for the job, like state
          +   * changes, will be published. If undefined, no Pub/Sub notifications
          +   * are sent for this job.
          +   *
          +   * Specify the topic using the following format:
          +   * `projects/{project}/topics/{topic}`.
          +   * Notably, if you want to specify a Pub/Sub topic that is in a
          +   * different project than the job, your administrator must grant your
          +   * project's Batch service agent permission to publish to that topic.
          +   *
          +   * For more information about configuring Pub/Sub notifications for
          +   * a job, see
          +   * https://cloud.google.com/batch/docs/enable-notifications.
              * 
          * * string pubsub_topic = 1; diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/PD.java b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/PD.java index 1d618af8e81a..999954f4cd7e 100644 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/PD.java +++ b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/PD.java @@ -181,7 +181,7 @@ public com.google.protobuf.ByteString getDeviceBytes() { * bool existing = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.PD.existing is deprecated. See - * google/cloud/batch/v1alpha/volume.proto;l=85 + * google/cloud/batch/v1alpha/volume.proto;l=89 * @return The existing. */ @java.lang.Override @@ -800,7 +800,7 @@ public Builder setDeviceBytes(com.google.protobuf.ByteString value) { * bool existing = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.PD.existing is deprecated. See - * google/cloud/batch/v1alpha/volume.proto;l=85 + * google/cloud/batch/v1alpha/volume.proto;l=89 * @return The existing. */ @java.lang.Override @@ -821,7 +821,7 @@ public boolean getExisting() { * bool existing = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.PD.existing is deprecated. See - * google/cloud/batch/v1alpha/volume.proto;l=85 + * google/cloud/batch/v1alpha/volume.proto;l=89 * @param value The existing to set. * @return This builder for chaining. */ @@ -846,7 +846,7 @@ public Builder setExisting(boolean value) { * bool existing = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.PD.existing is deprecated. See - * google/cloud/batch/v1alpha/volume.proto;l=85 + * google/cloud/batch/v1alpha/volume.proto;l=89 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/PDOrBuilder.java b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/PDOrBuilder.java index 8a1233347101..c2c40307e25d 100644 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/PDOrBuilder.java +++ b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/PDOrBuilder.java @@ -87,7 +87,7 @@ public interface PDOrBuilder * bool existing = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.PD.existing is deprecated. See - * google/cloud/batch/v1alpha/volume.proto;l=85 + * google/cloud/batch/v1alpha/volume.proto;l=89 * @return The existing. */ @java.lang.Deprecated diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/Volume.java b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/Volume.java index 016ed339303b..a2b0c9e84605 100644 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/Volume.java +++ b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/Volume.java @@ -425,15 +425,19 @@ public com.google.protobuf.ByteString getMountPathBytes() { * * *
          -   * For Google Cloud Storage (GCS), mount options are the options supported by
          -   * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
          -   * For existing persistent disks, mount options provided by the
          -   * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
          -   * writing are supported. This is due to restrictions of multi-writer mode
          -   * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          -   * For other attached disks and Network File System (NFS), mount options are
          -   * these supported by the mount command
          -   * (https://man7.org/linux/man-pages/man8/mount.8.html).
          +   * Mount options vary based on the type of storage volume:
          +   *
          +   * * For a Cloud Storage bucket, all the mount options provided
          +   * by
          +   *   the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli)
          +   *   are supported.
          +   * * For an existing persistent disk, all mount options provided by the
          +   *   [`mount` command](https://man7.org/linux/man-pages/man8/mount.8.html)
          +   *   except writing are supported. This is due to restrictions of
          +   *   [multi-writer
          +   *   mode](https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          +   * * For any other disk or a Network File System (NFS), all the
          +   *   mount options provided by the `mount` command are supported.
              * 
          * * repeated string mount_options = 5; @@ -447,15 +451,19 @@ public com.google.protobuf.ProtocolStringList getMountOptionsList() { * * *
          -   * For Google Cloud Storage (GCS), mount options are the options supported by
          -   * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
          -   * For existing persistent disks, mount options provided by the
          -   * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
          -   * writing are supported. This is due to restrictions of multi-writer mode
          -   * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          -   * For other attached disks and Network File System (NFS), mount options are
          -   * these supported by the mount command
          -   * (https://man7.org/linux/man-pages/man8/mount.8.html).
          +   * Mount options vary based on the type of storage volume:
          +   *
          +   * * For a Cloud Storage bucket, all the mount options provided
          +   * by
          +   *   the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli)
          +   *   are supported.
          +   * * For an existing persistent disk, all mount options provided by the
          +   *   [`mount` command](https://man7.org/linux/man-pages/man8/mount.8.html)
          +   *   except writing are supported. This is due to restrictions of
          +   *   [multi-writer
          +   *   mode](https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          +   * * For any other disk or a Network File System (NFS), all the
          +   *   mount options provided by the `mount` command are supported.
              * 
          * * repeated string mount_options = 5; @@ -469,15 +477,19 @@ public int getMountOptionsCount() { * * *
          -   * For Google Cloud Storage (GCS), mount options are the options supported by
          -   * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
          -   * For existing persistent disks, mount options provided by the
          -   * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
          -   * writing are supported. This is due to restrictions of multi-writer mode
          -   * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          -   * For other attached disks and Network File System (NFS), mount options are
          -   * these supported by the mount command
          -   * (https://man7.org/linux/man-pages/man8/mount.8.html).
          +   * Mount options vary based on the type of storage volume:
          +   *
          +   * * For a Cloud Storage bucket, all the mount options provided
          +   * by
          +   *   the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli)
          +   *   are supported.
          +   * * For an existing persistent disk, all mount options provided by the
          +   *   [`mount` command](https://man7.org/linux/man-pages/man8/mount.8.html)
          +   *   except writing are supported. This is due to restrictions of
          +   *   [multi-writer
          +   *   mode](https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          +   * * For any other disk or a Network File System (NFS), all the
          +   *   mount options provided by the `mount` command are supported.
              * 
          * * repeated string mount_options = 5; @@ -492,15 +504,19 @@ public java.lang.String getMountOptions(int index) { * * *
          -   * For Google Cloud Storage (GCS), mount options are the options supported by
          -   * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
          -   * For existing persistent disks, mount options provided by the
          -   * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
          -   * writing are supported. This is due to restrictions of multi-writer mode
          -   * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          -   * For other attached disks and Network File System (NFS), mount options are
          -   * these supported by the mount command
          -   * (https://man7.org/linux/man-pages/man8/mount.8.html).
          +   * Mount options vary based on the type of storage volume:
          +   *
          +   * * For a Cloud Storage bucket, all the mount options provided
          +   * by
          +   *   the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli)
          +   *   are supported.
          +   * * For an existing persistent disk, all mount options provided by the
          +   *   [`mount` command](https://man7.org/linux/man-pages/man8/mount.8.html)
          +   *   except writing are supported. This is due to restrictions of
          +   *   [multi-writer
          +   *   mode](https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          +   * * For any other disk or a Network File System (NFS), all the
          +   *   mount options provided by the `mount` command are supported.
              * 
          * * repeated string mount_options = 5; @@ -1976,15 +1992,19 @@ private void ensureMountOptionsIsMutable() { * * *
          -     * For Google Cloud Storage (GCS), mount options are the options supported by
          -     * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
          -     * For existing persistent disks, mount options provided by the
          -     * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
          -     * writing are supported. This is due to restrictions of multi-writer mode
          -     * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          -     * For other attached disks and Network File System (NFS), mount options are
          -     * these supported by the mount command
          -     * (https://man7.org/linux/man-pages/man8/mount.8.html).
          +     * Mount options vary based on the type of storage volume:
          +     *
          +     * * For a Cloud Storage bucket, all the mount options provided
          +     * by
          +     *   the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli)
          +     *   are supported.
          +     * * For an existing persistent disk, all mount options provided by the
          +     *   [`mount` command](https://man7.org/linux/man-pages/man8/mount.8.html)
          +     *   except writing are supported. This is due to restrictions of
          +     *   [multi-writer
          +     *   mode](https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          +     * * For any other disk or a Network File System (NFS), all the
          +     *   mount options provided by the `mount` command are supported.
                * 
          * * repeated string mount_options = 5; @@ -1999,15 +2019,19 @@ public com.google.protobuf.ProtocolStringList getMountOptionsList() { * * *
          -     * For Google Cloud Storage (GCS), mount options are the options supported by
          -     * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
          -     * For existing persistent disks, mount options provided by the
          -     * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
          -     * writing are supported. This is due to restrictions of multi-writer mode
          -     * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          -     * For other attached disks and Network File System (NFS), mount options are
          -     * these supported by the mount command
          -     * (https://man7.org/linux/man-pages/man8/mount.8.html).
          +     * Mount options vary based on the type of storage volume:
          +     *
          +     * * For a Cloud Storage bucket, all the mount options provided
          +     * by
          +     *   the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli)
          +     *   are supported.
          +     * * For an existing persistent disk, all mount options provided by the
          +     *   [`mount` command](https://man7.org/linux/man-pages/man8/mount.8.html)
          +     *   except writing are supported. This is due to restrictions of
          +     *   [multi-writer
          +     *   mode](https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          +     * * For any other disk or a Network File System (NFS), all the
          +     *   mount options provided by the `mount` command are supported.
                * 
          * * repeated string mount_options = 5; @@ -2021,15 +2045,19 @@ public int getMountOptionsCount() { * * *
          -     * For Google Cloud Storage (GCS), mount options are the options supported by
          -     * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
          -     * For existing persistent disks, mount options provided by the
          -     * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
          -     * writing are supported. This is due to restrictions of multi-writer mode
          -     * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          -     * For other attached disks and Network File System (NFS), mount options are
          -     * these supported by the mount command
          -     * (https://man7.org/linux/man-pages/man8/mount.8.html).
          +     * Mount options vary based on the type of storage volume:
          +     *
          +     * * For a Cloud Storage bucket, all the mount options provided
          +     * by
          +     *   the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli)
          +     *   are supported.
          +     * * For an existing persistent disk, all mount options provided by the
          +     *   [`mount` command](https://man7.org/linux/man-pages/man8/mount.8.html)
          +     *   except writing are supported. This is due to restrictions of
          +     *   [multi-writer
          +     *   mode](https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          +     * * For any other disk or a Network File System (NFS), all the
          +     *   mount options provided by the `mount` command are supported.
                * 
          * * repeated string mount_options = 5; @@ -2044,15 +2072,19 @@ public java.lang.String getMountOptions(int index) { * * *
          -     * For Google Cloud Storage (GCS), mount options are the options supported by
          -     * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
          -     * For existing persistent disks, mount options provided by the
          -     * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
          -     * writing are supported. This is due to restrictions of multi-writer mode
          -     * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          -     * For other attached disks and Network File System (NFS), mount options are
          -     * these supported by the mount command
          -     * (https://man7.org/linux/man-pages/man8/mount.8.html).
          +     * Mount options vary based on the type of storage volume:
          +     *
          +     * * For a Cloud Storage bucket, all the mount options provided
          +     * by
          +     *   the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli)
          +     *   are supported.
          +     * * For an existing persistent disk, all mount options provided by the
          +     *   [`mount` command](https://man7.org/linux/man-pages/man8/mount.8.html)
          +     *   except writing are supported. This is due to restrictions of
          +     *   [multi-writer
          +     *   mode](https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          +     * * For any other disk or a Network File System (NFS), all the
          +     *   mount options provided by the `mount` command are supported.
                * 
          * * repeated string mount_options = 5; @@ -2067,15 +2099,19 @@ public com.google.protobuf.ByteString getMountOptionsBytes(int index) { * * *
          -     * For Google Cloud Storage (GCS), mount options are the options supported by
          -     * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
          -     * For existing persistent disks, mount options provided by the
          -     * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
          -     * writing are supported. This is due to restrictions of multi-writer mode
          -     * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          -     * For other attached disks and Network File System (NFS), mount options are
          -     * these supported by the mount command
          -     * (https://man7.org/linux/man-pages/man8/mount.8.html).
          +     * Mount options vary based on the type of storage volume:
          +     *
          +     * * For a Cloud Storage bucket, all the mount options provided
          +     * by
          +     *   the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli)
          +     *   are supported.
          +     * * For an existing persistent disk, all mount options provided by the
          +     *   [`mount` command](https://man7.org/linux/man-pages/man8/mount.8.html)
          +     *   except writing are supported. This is due to restrictions of
          +     *   [multi-writer
          +     *   mode](https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          +     * * For any other disk or a Network File System (NFS), all the
          +     *   mount options provided by the `mount` command are supported.
                * 
          * * repeated string mount_options = 5; @@ -2098,15 +2134,19 @@ public Builder setMountOptions(int index, java.lang.String value) { * * *
          -     * For Google Cloud Storage (GCS), mount options are the options supported by
          -     * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
          -     * For existing persistent disks, mount options provided by the
          -     * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
          -     * writing are supported. This is due to restrictions of multi-writer mode
          -     * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          -     * For other attached disks and Network File System (NFS), mount options are
          -     * these supported by the mount command
          -     * (https://man7.org/linux/man-pages/man8/mount.8.html).
          +     * Mount options vary based on the type of storage volume:
          +     *
          +     * * For a Cloud Storage bucket, all the mount options provided
          +     * by
          +     *   the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli)
          +     *   are supported.
          +     * * For an existing persistent disk, all mount options provided by the
          +     *   [`mount` command](https://man7.org/linux/man-pages/man8/mount.8.html)
          +     *   except writing are supported. This is due to restrictions of
          +     *   [multi-writer
          +     *   mode](https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          +     * * For any other disk or a Network File System (NFS), all the
          +     *   mount options provided by the `mount` command are supported.
                * 
          * * repeated string mount_options = 5; @@ -2128,15 +2168,19 @@ public Builder addMountOptions(java.lang.String value) { * * *
          -     * For Google Cloud Storage (GCS), mount options are the options supported by
          -     * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
          -     * For existing persistent disks, mount options provided by the
          -     * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
          -     * writing are supported. This is due to restrictions of multi-writer mode
          -     * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          -     * For other attached disks and Network File System (NFS), mount options are
          -     * these supported by the mount command
          -     * (https://man7.org/linux/man-pages/man8/mount.8.html).
          +     * Mount options vary based on the type of storage volume:
          +     *
          +     * * For a Cloud Storage bucket, all the mount options provided
          +     * by
          +     *   the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli)
          +     *   are supported.
          +     * * For an existing persistent disk, all mount options provided by the
          +     *   [`mount` command](https://man7.org/linux/man-pages/man8/mount.8.html)
          +     *   except writing are supported. This is due to restrictions of
          +     *   [multi-writer
          +     *   mode](https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          +     * * For any other disk or a Network File System (NFS), all the
          +     *   mount options provided by the `mount` command are supported.
                * 
          * * repeated string mount_options = 5; @@ -2155,15 +2199,19 @@ public Builder addAllMountOptions(java.lang.Iterable values) { * * *
          -     * For Google Cloud Storage (GCS), mount options are the options supported by
          -     * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
          -     * For existing persistent disks, mount options provided by the
          -     * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
          -     * writing are supported. This is due to restrictions of multi-writer mode
          -     * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          -     * For other attached disks and Network File System (NFS), mount options are
          -     * these supported by the mount command
          -     * (https://man7.org/linux/man-pages/man8/mount.8.html).
          +     * Mount options vary based on the type of storage volume:
          +     *
          +     * * For a Cloud Storage bucket, all the mount options provided
          +     * by
          +     *   the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli)
          +     *   are supported.
          +     * * For an existing persistent disk, all mount options provided by the
          +     *   [`mount` command](https://man7.org/linux/man-pages/man8/mount.8.html)
          +     *   except writing are supported. This is due to restrictions of
          +     *   [multi-writer
          +     *   mode](https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          +     * * For any other disk or a Network File System (NFS), all the
          +     *   mount options provided by the `mount` command are supported.
                * 
          * * repeated string mount_options = 5; @@ -2181,15 +2229,19 @@ public Builder clearMountOptions() { * * *
          -     * For Google Cloud Storage (GCS), mount options are the options supported by
          -     * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
          -     * For existing persistent disks, mount options provided by the
          -     * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
          -     * writing are supported. This is due to restrictions of multi-writer mode
          -     * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          -     * For other attached disks and Network File System (NFS), mount options are
          -     * these supported by the mount command
          -     * (https://man7.org/linux/man-pages/man8/mount.8.html).
          +     * Mount options vary based on the type of storage volume:
          +     *
          +     * * For a Cloud Storage bucket, all the mount options provided
          +     * by
          +     *   the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli)
          +     *   are supported.
          +     * * For an existing persistent disk, all mount options provided by the
          +     *   [`mount` command](https://man7.org/linux/man-pages/man8/mount.8.html)
          +     *   except writing are supported. This is due to restrictions of
          +     *   [multi-writer
          +     *   mode](https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          +     * * For any other disk or a Network File System (NFS), all the
          +     *   mount options provided by the `mount` command are supported.
                * 
          * * repeated string mount_options = 5; diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/VolumeOrBuilder.java b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/VolumeOrBuilder.java index 3b61db001b30..7c9bc6213947 100644 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/VolumeOrBuilder.java +++ b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/VolumeOrBuilder.java @@ -217,15 +217,19 @@ public interface VolumeOrBuilder * * *
          -   * For Google Cloud Storage (GCS), mount options are the options supported by
          -   * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
          -   * For existing persistent disks, mount options provided by the
          -   * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
          -   * writing are supported. This is due to restrictions of multi-writer mode
          -   * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          -   * For other attached disks and Network File System (NFS), mount options are
          -   * these supported by the mount command
          -   * (https://man7.org/linux/man-pages/man8/mount.8.html).
          +   * Mount options vary based on the type of storage volume:
          +   *
          +   * * For a Cloud Storage bucket, all the mount options provided
          +   * by
          +   *   the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli)
          +   *   are supported.
          +   * * For an existing persistent disk, all mount options provided by the
          +   *   [`mount` command](https://man7.org/linux/man-pages/man8/mount.8.html)
          +   *   except writing are supported. This is due to restrictions of
          +   *   [multi-writer
          +   *   mode](https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          +   * * For any other disk or a Network File System (NFS), all the
          +   *   mount options provided by the `mount` command are supported.
              * 
          * * repeated string mount_options = 5; @@ -237,15 +241,19 @@ public interface VolumeOrBuilder * * *
          -   * For Google Cloud Storage (GCS), mount options are the options supported by
          -   * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
          -   * For existing persistent disks, mount options provided by the
          -   * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
          -   * writing are supported. This is due to restrictions of multi-writer mode
          -   * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          -   * For other attached disks and Network File System (NFS), mount options are
          -   * these supported by the mount command
          -   * (https://man7.org/linux/man-pages/man8/mount.8.html).
          +   * Mount options vary based on the type of storage volume:
          +   *
          +   * * For a Cloud Storage bucket, all the mount options provided
          +   * by
          +   *   the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli)
          +   *   are supported.
          +   * * For an existing persistent disk, all mount options provided by the
          +   *   [`mount` command](https://man7.org/linux/man-pages/man8/mount.8.html)
          +   *   except writing are supported. This is due to restrictions of
          +   *   [multi-writer
          +   *   mode](https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          +   * * For any other disk or a Network File System (NFS), all the
          +   *   mount options provided by the `mount` command are supported.
              * 
          * * repeated string mount_options = 5; @@ -257,15 +265,19 @@ public interface VolumeOrBuilder * * *
          -   * For Google Cloud Storage (GCS), mount options are the options supported by
          -   * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
          -   * For existing persistent disks, mount options provided by the
          -   * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
          -   * writing are supported. This is due to restrictions of multi-writer mode
          -   * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          -   * For other attached disks and Network File System (NFS), mount options are
          -   * these supported by the mount command
          -   * (https://man7.org/linux/man-pages/man8/mount.8.html).
          +   * Mount options vary based on the type of storage volume:
          +   *
          +   * * For a Cloud Storage bucket, all the mount options provided
          +   * by
          +   *   the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli)
          +   *   are supported.
          +   * * For an existing persistent disk, all mount options provided by the
          +   *   [`mount` command](https://man7.org/linux/man-pages/man8/mount.8.html)
          +   *   except writing are supported. This is due to restrictions of
          +   *   [multi-writer
          +   *   mode](https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          +   * * For any other disk or a Network File System (NFS), all the
          +   *   mount options provided by the `mount` command are supported.
              * 
          * * repeated string mount_options = 5; @@ -278,15 +290,19 @@ public interface VolumeOrBuilder * * *
          -   * For Google Cloud Storage (GCS), mount options are the options supported by
          -   * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
          -   * For existing persistent disks, mount options provided by the
          -   * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
          -   * writing are supported. This is due to restrictions of multi-writer mode
          -   * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          -   * For other attached disks and Network File System (NFS), mount options are
          -   * these supported by the mount command
          -   * (https://man7.org/linux/man-pages/man8/mount.8.html).
          +   * Mount options vary based on the type of storage volume:
          +   *
          +   * * For a Cloud Storage bucket, all the mount options provided
          +   * by
          +   *   the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli)
          +   *   are supported.
          +   * * For an existing persistent disk, all mount options provided by the
          +   *   [`mount` command](https://man7.org/linux/man-pages/man8/mount.8.html)
          +   *   except writing are supported. This is due to restrictions of
          +   *   [multi-writer
          +   *   mode](https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
          +   * * For any other disk or a Network File System (NFS), all the
          +   *   mount options provided by the `mount` command are supported.
              * 
          * * repeated string mount_options = 5; diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/proto/google/cloud/batch/v1alpha/job.proto b/java-batch/proto-google-cloud-batch-v1alpha/src/main/proto/google/cloud/batch/v1alpha/job.proto index 253adfdc0b23..7d9ea0396506 100644 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/proto/google/cloud/batch/v1alpha/job.proto +++ b/java-batch/proto-google-cloud-batch-v1alpha/src/main/proto/google/cloud/batch/v1alpha/job.proto @@ -292,11 +292,19 @@ message JobNotification { TASK_STATE_CHANGED = 2; } - // The Pub/Sub topic where notifications like the job state changes - // will be published. The topic must exist in the same project as - // the job and billings will be charged to this project. - // If not specified, no Pub/Sub messages will be sent. - // Topic format: `projects/{project}/topics/{topic}`. + // The Pub/Sub topic where notifications for the job, like state + // changes, will be published. If undefined, no Pub/Sub notifications + // are sent for this job. + // + // Specify the topic using the following format: + // `projects/{project}/topics/{topic}`. + // Notably, if you want to specify a Pub/Sub topic that is in a + // different project than the job, your administrator must grant your + // project's Batch service agent permission to publish to that topic. + // + // For more information about configuring Pub/Sub notifications for + // a job, see + // https://cloud.google.com/batch/docs/enable-notifications. string pubsub_topic = 1; // The attribute requirements of messages to be sent to this Pub/Sub topic. @@ -363,7 +371,9 @@ message AllocationPolicy { // Disk type as shown in `gcloud compute disk-types list`. // For example, local SSD uses type "local-ssd". // Persistent disks and boot disks use "pd-balanced", "pd-extreme", "pd-ssd" - // or "pd-standard". + // or "pd-standard". If not specified, "pd-standard" will be used as the + // default type for non-boot disks, "pd-balanced" will be used as the + // default type for boot disks. string type = 1; // Disk size in GB. diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/proto/google/cloud/batch/v1alpha/volume.proto b/java-batch/proto-google-cloud-batch-v1alpha/src/main/proto/google/cloud/batch/v1alpha/volume.proto index e6632d3add48..9256ef6faa4f 100644 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/proto/google/cloud/batch/v1alpha/volume.proto +++ b/java-batch/proto-google-cloud-batch-v1alpha/src/main/proto/google/cloud/batch/v1alpha/volume.proto @@ -50,15 +50,19 @@ message Volume { // The mount path for the volume, e.g. /mnt/disks/share. string mount_path = 4; - // For Google Cloud Storage (GCS), mount options are the options supported by - // the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse). - // For existing persistent disks, mount options provided by the - // mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except - // writing are supported. This is due to restrictions of multi-writer mode - // (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms). - // For other attached disks and Network File System (NFS), mount options are - // these supported by the mount command - // (https://man7.org/linux/man-pages/man8/mount.8.html). + // Mount options vary based on the type of storage volume: + // + // * For a Cloud Storage bucket, all the mount options provided + // by + // the [`gcsfuse` tool](https://cloud.google.com/storage/docs/gcsfuse-cli) + // are supported. + // * For an existing persistent disk, all mount options provided by the + // [`mount` command](https://man7.org/linux/man-pages/man8/mount.8.html) + // except writing are supported. This is due to restrictions of + // [multi-writer + // mode](https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms). + // * For any other disk or a Network File System (NFS), all the + // mount options provided by the `mount` command are supported. repeated string mount_options = 5; } diff --git a/java-iam/.repo-metadata.json b/java-iam/.repo-metadata.json index 57d009a58b16..fa9ab8c76a75 100644 --- a/java-iam/.repo-metadata.json +++ b/java-iam/.repo-metadata.json @@ -5,7 +5,7 @@ "api_description": "n/a", "client_documentation": "https://cloud.google.com/java/docs/reference/proto-google-iam-v1/latest/history", "release_level": "stable", - "transport": "grpc", + "transport": "both", "language": "java", "repo": "googleapis/google-cloud-java", "repo_short": "java-iam", diff --git a/java-iam/README.md b/java-iam/README.md index bc398290f8e9..c9dd87fdf58a 100644 --- a/java-iam/README.md +++ b/java-iam/README.md @@ -101,7 +101,7 @@ To get help, follow the instructions in the [shared Troubleshooting document][tr ## Transport -IAM uses gRPC for the transport layer. +IAM uses both gRPC and HTTP/JSON for the transport layer. ## Supported Java Versions diff --git a/java-notebooks/.repo-metadata.json b/java-notebooks/.repo-metadata.json index 37d0c7bb824b..2a4373ef3c72 100644 --- a/java-notebooks/.repo-metadata.json +++ b/java-notebooks/.repo-metadata.json @@ -5,7 +5,7 @@ "api_description": "is a managed service that offers an integrated and secure JupyterLab environment for data scientists and machine learning developers to experiment, develop, and deploy models into production. Users can create instances running JupyterLab that come pre-installed with the latest data science and machine learning frameworks in a single click.", "client_documentation": "https://cloud.google.com/java/docs/reference/google-cloud-notebooks/latest/overview", "release_level": "stable", - "transport": "grpc", + "transport": "both", "language": "java", "repo": "googleapis/google-cloud-java", "repo_short": "java-notebooks", diff --git a/java-notebooks/README.md b/java-notebooks/README.md index 765df19b3b87..b6a74ffef4bc 100644 --- a/java-notebooks/README.md +++ b/java-notebooks/README.md @@ -101,7 +101,7 @@ To get help, follow the instructions in the [shared Troubleshooting document][tr ## Transport -AI Platform Notebooks uses gRPC for the transport layer. +AI Platform Notebooks uses both gRPC and HTTP/JSON for the transport layer. ## Supported Java Versions diff --git a/java-orgpolicy/.repo-metadata.json b/java-orgpolicy/.repo-metadata.json index a95947db6c6b..7a037d0e3a50 100644 --- a/java-orgpolicy/.repo-metadata.json +++ b/java-orgpolicy/.repo-metadata.json @@ -5,7 +5,7 @@ "api_description": "n/a", "client_documentation": "https://cloud.google.com/java/docs/reference/proto-google-cloud-orgpolicy-v1/latest/overview", "release_level": "stable", - "transport": "grpc", + "transport": "both", "language": "java", "repo": "googleapis/google-cloud-java", "repo_short": "java-orgpolicy", diff --git a/java-orgpolicy/README.md b/java-orgpolicy/README.md index ac1a92721048..1d5bb770e89a 100644 --- a/java-orgpolicy/README.md +++ b/java-orgpolicy/README.md @@ -101,7 +101,7 @@ To get help, follow the instructions in the [shared Troubleshooting document][tr ## Transport -Cloud Organization Policy uses gRPC for the transport layer. +Cloud Organization Policy uses both gRPC and HTTP/JSON for the transport layer. ## Supported Java Versions diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/resources/META-INF/native-image/com.google.cloud.recaptchaenterprise.v1/reflect-config.json b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/resources/META-INF/native-image/com.google.cloud.recaptchaenterprise.v1/reflect-config.json index 9f5bfd2c1aa5..2602a19c0609 100644 --- a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/resources/META-INF/native-image/com.google.cloud.recaptchaenterprise.v1/reflect-config.json +++ b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/resources/META-INF/native-image/com.google.cloud.recaptchaenterprise.v1/reflect-config.json @@ -2105,6 +2105,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.recaptchaenterprise.v1.PhoneFraudAssessment", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.recaptchaenterprise.v1.PhoneFraudAssessment$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification", "queryAllDeclaredConstructors": true, @@ -2330,6 +2348,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.recaptchaenterprise.v1.SmsTollFraudVerdict", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.recaptchaenterprise.v1.SmsTollFraudVerdict$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.recaptchaenterprise.v1.SmsTollFraudVerdict$SmsTollFraudReason", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.recaptchaenterprise.v1.TestingOptions", "queryAllDeclaredConstructors": true, diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1/RecaptchaEnterpriseServiceClientTest.java b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1/RecaptchaEnterpriseServiceClientTest.java index 9ceea8e7ab53..ed125699c3b9 100644 --- a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1/RecaptchaEnterpriseServiceClientTest.java +++ b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/test/java/com/google/cloud/recaptchaenterprise/v1/RecaptchaEnterpriseServiceClientTest.java @@ -70,6 +70,7 @@ import com.google.recaptchaenterprise.v1.Metrics; import com.google.recaptchaenterprise.v1.MetricsName; import com.google.recaptchaenterprise.v1.MigrateKeyRequest; +import com.google.recaptchaenterprise.v1.PhoneFraudAssessment; import com.google.recaptchaenterprise.v1.PrivatePasswordLeakVerification; import com.google.recaptchaenterprise.v1.ProjectName; import com.google.recaptchaenterprise.v1.RelatedAccountGroup; @@ -157,6 +158,7 @@ public void createAssessmentTest() throws Exception { .setFirewallPolicyAssessment(FirewallPolicyAssessment.newBuilder().build()) .setFraudPreventionAssessment(FraudPreventionAssessment.newBuilder().build()) .setFraudSignals(FraudSignals.newBuilder().build()) + .setPhoneFraudAssessment(PhoneFraudAssessment.newBuilder().build()) .build(); mockRecaptchaEnterpriseService.addResponse(expectedResponse); @@ -208,6 +210,7 @@ public void createAssessmentTest2() throws Exception { .setFirewallPolicyAssessment(FirewallPolicyAssessment.newBuilder().build()) .setFraudPreventionAssessment(FraudPreventionAssessment.newBuilder().build()) .setFraudSignals(FraudSignals.newBuilder().build()) + .setPhoneFraudAssessment(PhoneFraudAssessment.newBuilder().build()) .build(); mockRecaptchaEnterpriseService.addResponse(expectedResponse); diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Assessment.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Assessment.java index a7003779199f..a50bef192f5c 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Assessment.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Assessment.java @@ -651,6 +651,69 @@ public com.google.recaptchaenterprise.v1.FraudSignalsOrBuilder getFraudSignalsOr : fraudSignals_; } + public static final int PHONE_FRAUD_ASSESSMENT_FIELD_NUMBER = 12; + private com.google.recaptchaenterprise.v1.PhoneFraudAssessment phoneFraudAssessment_; + /** + * + * + *
          +   * Output only. Assessment returned when a site key, a token, and a phone
          +   * number as `user_id` are provided. Account defender and SMS toll fraud
          +   * protection need to be enabled.
          +   * 
          + * + * + * .google.cloud.recaptchaenterprise.v1.PhoneFraudAssessment phone_fraud_assessment = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the phoneFraudAssessment field is set. + */ + @java.lang.Override + public boolean hasPhoneFraudAssessment() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * + * + *
          +   * Output only. Assessment returned when a site key, a token, and a phone
          +   * number as `user_id` are provided. Account defender and SMS toll fraud
          +   * protection need to be enabled.
          +   * 
          + * + * + * .google.cloud.recaptchaenterprise.v1.PhoneFraudAssessment phone_fraud_assessment = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The phoneFraudAssessment. + */ + @java.lang.Override + public com.google.recaptchaenterprise.v1.PhoneFraudAssessment getPhoneFraudAssessment() { + return phoneFraudAssessment_ == null + ? com.google.recaptchaenterprise.v1.PhoneFraudAssessment.getDefaultInstance() + : phoneFraudAssessment_; + } + /** + * + * + *
          +   * Output only. Assessment returned when a site key, a token, and a phone
          +   * number as `user_id` are provided. Account defender and SMS toll fraud
          +   * protection need to be enabled.
          +   * 
          + * + * + * .google.cloud.recaptchaenterprise.v1.PhoneFraudAssessment phone_fraud_assessment = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.recaptchaenterprise.v1.PhoneFraudAssessmentOrBuilder + getPhoneFraudAssessmentOrBuilder() { + return phoneFraudAssessment_ == null + ? com.google.recaptchaenterprise.v1.PhoneFraudAssessment.getDefaultInstance() + : phoneFraudAssessment_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -692,6 +755,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000080) != 0)) { output.writeMessage(11, getFraudPreventionAssessment()); } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeMessage(12, getPhoneFraudAssessment()); + } if (((bitField0_ & 0x00000100) != 0)) { output.writeMessage(13, getFraudSignals()); } @@ -739,6 +805,10 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 11, getFraudPreventionAssessment()); } + if (((bitField0_ & 0x00000200) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(12, getPhoneFraudAssessment()); + } if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getFraudSignals()); } @@ -799,6 +869,10 @@ public boolean equals(final java.lang.Object obj) { if (hasFraudSignals()) { if (!getFraudSignals().equals(other.getFraudSignals())) return false; } + if (hasPhoneFraudAssessment() != other.hasPhoneFraudAssessment()) return false; + if (hasPhoneFraudAssessment()) { + if (!getPhoneFraudAssessment().equals(other.getPhoneFraudAssessment())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -848,6 +922,10 @@ public int hashCode() { hash = (37 * hash) + FRAUD_SIGNALS_FIELD_NUMBER; hash = (53 * hash) + getFraudSignals().hashCode(); } + if (hasPhoneFraudAssessment()) { + hash = (37 * hash) + PHONE_FRAUD_ASSESSMENT_FIELD_NUMBER; + hash = (53 * hash) + getPhoneFraudAssessment().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -997,6 +1075,7 @@ private void maybeForceBuilderInitialization() { getFirewallPolicyAssessmentFieldBuilder(); getFraudPreventionAssessmentFieldBuilder(); getFraudSignalsFieldBuilder(); + getPhoneFraudAssessmentFieldBuilder(); } } @@ -1050,6 +1129,11 @@ public Builder clear() { fraudSignalsBuilder_.dispose(); fraudSignalsBuilder_ = null; } + phoneFraudAssessment_ = null; + if (phoneFraudAssessmentBuilder_ != null) { + phoneFraudAssessmentBuilder_.dispose(); + phoneFraudAssessmentBuilder_ = null; + } return this; } @@ -1144,6 +1228,13 @@ private void buildPartial0(com.google.recaptchaenterprise.v1.Assessment result) fraudSignalsBuilder_ == null ? fraudSignals_ : fraudSignalsBuilder_.build(); to_bitField0_ |= 0x00000100; } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.phoneFraudAssessment_ = + phoneFraudAssessmentBuilder_ == null + ? phoneFraudAssessment_ + : phoneFraudAssessmentBuilder_.build(); + to_bitField0_ |= 0x00000200; + } result.bitField0_ |= to_bitField0_; } @@ -1224,6 +1315,9 @@ public Builder mergeFrom(com.google.recaptchaenterprise.v1.Assessment other) { if (other.hasFraudSignals()) { mergeFraudSignals(other.getFraudSignals()); } + if (other.hasPhoneFraudAssessment()) { + mergePhoneFraudAssessment(other.getPhoneFraudAssessment()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1310,6 +1404,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000100; break; } // case 90 + case 98: + { + input.readMessage( + getPhoneFraudAssessmentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 98 case 106: { input.readMessage(getFraudSignalsFieldBuilder().getBuilder(), extensionRegistry); @@ -3392,6 +3493,233 @@ public com.google.recaptchaenterprise.v1.FraudSignalsOrBuilder getFraudSignalsOr return fraudSignalsBuilder_; } + private com.google.recaptchaenterprise.v1.PhoneFraudAssessment phoneFraudAssessment_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.PhoneFraudAssessment, + com.google.recaptchaenterprise.v1.PhoneFraudAssessment.Builder, + com.google.recaptchaenterprise.v1.PhoneFraudAssessmentOrBuilder> + phoneFraudAssessmentBuilder_; + /** + * + * + *
          +     * Output only. Assessment returned when a site key, a token, and a phone
          +     * number as `user_id` are provided. Account defender and SMS toll fraud
          +     * protection need to be enabled.
          +     * 
          + * + * + * .google.cloud.recaptchaenterprise.v1.PhoneFraudAssessment phone_fraud_assessment = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the phoneFraudAssessment field is set. + */ + public boolean hasPhoneFraudAssessment() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + * + * + *
          +     * Output only. Assessment returned when a site key, a token, and a phone
          +     * number as `user_id` are provided. Account defender and SMS toll fraud
          +     * protection need to be enabled.
          +     * 
          + * + * + * .google.cloud.recaptchaenterprise.v1.PhoneFraudAssessment phone_fraud_assessment = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The phoneFraudAssessment. + */ + public com.google.recaptchaenterprise.v1.PhoneFraudAssessment getPhoneFraudAssessment() { + if (phoneFraudAssessmentBuilder_ == null) { + return phoneFraudAssessment_ == null + ? com.google.recaptchaenterprise.v1.PhoneFraudAssessment.getDefaultInstance() + : phoneFraudAssessment_; + } else { + return phoneFraudAssessmentBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Output only. Assessment returned when a site key, a token, and a phone
          +     * number as `user_id` are provided. Account defender and SMS toll fraud
          +     * protection need to be enabled.
          +     * 
          + * + * + * .google.cloud.recaptchaenterprise.v1.PhoneFraudAssessment phone_fraud_assessment = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPhoneFraudAssessment( + com.google.recaptchaenterprise.v1.PhoneFraudAssessment value) { + if (phoneFraudAssessmentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + phoneFraudAssessment_ = value; + } else { + phoneFraudAssessmentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Assessment returned when a site key, a token, and a phone
          +     * number as `user_id` are provided. Account defender and SMS toll fraud
          +     * protection need to be enabled.
          +     * 
          + * + * + * .google.cloud.recaptchaenterprise.v1.PhoneFraudAssessment phone_fraud_assessment = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPhoneFraudAssessment( + com.google.recaptchaenterprise.v1.PhoneFraudAssessment.Builder builderForValue) { + if (phoneFraudAssessmentBuilder_ == null) { + phoneFraudAssessment_ = builderForValue.build(); + } else { + phoneFraudAssessmentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Assessment returned when a site key, a token, and a phone
          +     * number as `user_id` are provided. Account defender and SMS toll fraud
          +     * protection need to be enabled.
          +     * 
          + * + * + * .google.cloud.recaptchaenterprise.v1.PhoneFraudAssessment phone_fraud_assessment = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergePhoneFraudAssessment( + com.google.recaptchaenterprise.v1.PhoneFraudAssessment value) { + if (phoneFraudAssessmentBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && phoneFraudAssessment_ != null + && phoneFraudAssessment_ + != com.google.recaptchaenterprise.v1.PhoneFraudAssessment.getDefaultInstance()) { + getPhoneFraudAssessmentBuilder().mergeFrom(value); + } else { + phoneFraudAssessment_ = value; + } + } else { + phoneFraudAssessmentBuilder_.mergeFrom(value); + } + if (phoneFraudAssessment_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Output only. Assessment returned when a site key, a token, and a phone
          +     * number as `user_id` are provided. Account defender and SMS toll fraud
          +     * protection need to be enabled.
          +     * 
          + * + * + * .google.cloud.recaptchaenterprise.v1.PhoneFraudAssessment phone_fraud_assessment = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearPhoneFraudAssessment() { + bitField0_ = (bitField0_ & ~0x00000400); + phoneFraudAssessment_ = null; + if (phoneFraudAssessmentBuilder_ != null) { + phoneFraudAssessmentBuilder_.dispose(); + phoneFraudAssessmentBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Assessment returned when a site key, a token, and a phone
          +     * number as `user_id` are provided. Account defender and SMS toll fraud
          +     * protection need to be enabled.
          +     * 
          + * + * + * .google.cloud.recaptchaenterprise.v1.PhoneFraudAssessment phone_fraud_assessment = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.recaptchaenterprise.v1.PhoneFraudAssessment.Builder + getPhoneFraudAssessmentBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return getPhoneFraudAssessmentFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Output only. Assessment returned when a site key, a token, and a phone
          +     * number as `user_id` are provided. Account defender and SMS toll fraud
          +     * protection need to be enabled.
          +     * 
          + * + * + * .google.cloud.recaptchaenterprise.v1.PhoneFraudAssessment phone_fraud_assessment = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.recaptchaenterprise.v1.PhoneFraudAssessmentOrBuilder + getPhoneFraudAssessmentOrBuilder() { + if (phoneFraudAssessmentBuilder_ != null) { + return phoneFraudAssessmentBuilder_.getMessageOrBuilder(); + } else { + return phoneFraudAssessment_ == null + ? com.google.recaptchaenterprise.v1.PhoneFraudAssessment.getDefaultInstance() + : phoneFraudAssessment_; + } + } + /** + * + * + *
          +     * Output only. Assessment returned when a site key, a token, and a phone
          +     * number as `user_id` are provided. Account defender and SMS toll fraud
          +     * protection need to be enabled.
          +     * 
          + * + * + * .google.cloud.recaptchaenterprise.v1.PhoneFraudAssessment phone_fraud_assessment = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.PhoneFraudAssessment, + com.google.recaptchaenterprise.v1.PhoneFraudAssessment.Builder, + com.google.recaptchaenterprise.v1.PhoneFraudAssessmentOrBuilder> + getPhoneFraudAssessmentFieldBuilder() { + if (phoneFraudAssessmentBuilder_ == null) { + phoneFraudAssessmentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.PhoneFraudAssessment, + com.google.recaptchaenterprise.v1.PhoneFraudAssessment.Builder, + com.google.recaptchaenterprise.v1.PhoneFraudAssessmentOrBuilder>( + getPhoneFraudAssessment(), getParentForChildren(), isClean()); + phoneFraudAssessment_ = null; + } + return phoneFraudAssessmentBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AssessmentOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AssessmentOrBuilder.java index 8c29e71af98e..c04c42a343a1 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AssessmentOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AssessmentOrBuilder.java @@ -450,4 +450,52 @@ public interface AssessmentOrBuilder * */ com.google.recaptchaenterprise.v1.FraudSignalsOrBuilder getFraudSignalsOrBuilder(); + + /** + * + * + *
          +   * Output only. Assessment returned when a site key, a token, and a phone
          +   * number as `user_id` are provided. Account defender and SMS toll fraud
          +   * protection need to be enabled.
          +   * 
          + * + * + * .google.cloud.recaptchaenterprise.v1.PhoneFraudAssessment phone_fraud_assessment = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the phoneFraudAssessment field is set. + */ + boolean hasPhoneFraudAssessment(); + /** + * + * + *
          +   * Output only. Assessment returned when a site key, a token, and a phone
          +   * number as `user_id` are provided. Account defender and SMS toll fraud
          +   * protection need to be enabled.
          +   * 
          + * + * + * .google.cloud.recaptchaenterprise.v1.PhoneFraudAssessment phone_fraud_assessment = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The phoneFraudAssessment. + */ + com.google.recaptchaenterprise.v1.PhoneFraudAssessment getPhoneFraudAssessment(); + /** + * + * + *
          +   * Output only. Assessment returned when a site key, a token, and a phone
          +   * number as `user_id` are provided. Account defender and SMS toll fraud
          +   * protection need to be enabled.
          +   * 
          + * + * + * .google.cloud.recaptchaenterprise.v1.PhoneFraudAssessment phone_fraud_assessment = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.recaptchaenterprise.v1.PhoneFraudAssessmentOrBuilder + getPhoneFraudAssessmentOrBuilder(); } diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Event.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Event.java index 9e6ac07a470a..fac9ac70ca75 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Event.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/Event.java @@ -530,7 +530,7 @@ public com.google.protobuf.ByteString getExpectedActionBytes() { * * * @deprecated google.cloud.recaptchaenterprise.v1.Event.hashed_account_id is deprecated. See - * google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=700 + * google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=706 * @return The hashedAccountId. */ @java.lang.Override @@ -2231,7 +2231,7 @@ public Builder setExpectedActionBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.cloud.recaptchaenterprise.v1.Event.hashed_account_id is deprecated. See - * google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=700 + * google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=706 * @return The hashedAccountId. */ @java.lang.Override @@ -2253,7 +2253,7 @@ public com.google.protobuf.ByteString getHashedAccountId() { * * * @deprecated google.cloud.recaptchaenterprise.v1.Event.hashed_account_id is deprecated. See - * google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=700 + * google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=706 * @param value The hashedAccountId to set. * @return This builder for chaining. */ @@ -2281,7 +2281,7 @@ public Builder setHashedAccountId(com.google.protobuf.ByteString value) { * * * @deprecated google.cloud.recaptchaenterprise.v1.Event.hashed_account_id is deprecated. See - * google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=700 + * google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=706 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/EventOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/EventOrBuilder.java index 16acc47f86fc..91b2e49bb167 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/EventOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/EventOrBuilder.java @@ -178,7 +178,7 @@ public interface EventOrBuilder * * * @deprecated google.cloud.recaptchaenterprise.v1.Event.hashed_account_id is deprecated. See - * google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=700 + * google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=706 * @return The hashedAccountId. */ @java.lang.Deprecated diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/PhoneFraudAssessment.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/PhoneFraudAssessment.java new file mode 100644 index 000000000000..f8f0685e43ca --- /dev/null +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/PhoneFraudAssessment.java @@ -0,0 +1,757 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto + +// Protobuf Java Version: 3.25.3 +package com.google.recaptchaenterprise.v1; + +/** + * + * + *
          + * Assessment for Phone Fraud
          + * 
          + * + * Protobuf type {@code google.cloud.recaptchaenterprise.v1.PhoneFraudAssessment} + */ +public final class PhoneFraudAssessment extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.PhoneFraudAssessment) + PhoneFraudAssessmentOrBuilder { + private static final long serialVersionUID = 0L; + // Use PhoneFraudAssessment.newBuilder() to construct. + private PhoneFraudAssessment(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PhoneFraudAssessment() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PhoneFraudAssessment(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_PhoneFraudAssessment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_PhoneFraudAssessment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.recaptchaenterprise.v1.PhoneFraudAssessment.class, + com.google.recaptchaenterprise.v1.PhoneFraudAssessment.Builder.class); + } + + private int bitField0_; + public static final int SMS_TOLL_FRAUD_VERDICT_FIELD_NUMBER = 1; + private com.google.recaptchaenterprise.v1.SmsTollFraudVerdict smsTollFraudVerdict_; + /** + * + * + *
          +   * Output only. Assessment of this phone event for risk of SMS toll fraud.
          +   * 
          + * + * + * .google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict sms_toll_fraud_verdict = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the smsTollFraudVerdict field is set. + */ + @java.lang.Override + public boolean hasSmsTollFraudVerdict() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
          +   * Output only. Assessment of this phone event for risk of SMS toll fraud.
          +   * 
          + * + * + * .google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict sms_toll_fraud_verdict = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The smsTollFraudVerdict. + */ + @java.lang.Override + public com.google.recaptchaenterprise.v1.SmsTollFraudVerdict getSmsTollFraudVerdict() { + return smsTollFraudVerdict_ == null + ? com.google.recaptchaenterprise.v1.SmsTollFraudVerdict.getDefaultInstance() + : smsTollFraudVerdict_; + } + /** + * + * + *
          +   * Output only. Assessment of this phone event for risk of SMS toll fraud.
          +   * 
          + * + * + * .google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict sms_toll_fraud_verdict = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.recaptchaenterprise.v1.SmsTollFraudVerdictOrBuilder + getSmsTollFraudVerdictOrBuilder() { + return smsTollFraudVerdict_ == null + ? com.google.recaptchaenterprise.v1.SmsTollFraudVerdict.getDefaultInstance() + : smsTollFraudVerdict_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getSmsTollFraudVerdict()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSmsTollFraudVerdict()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.recaptchaenterprise.v1.PhoneFraudAssessment)) { + return super.equals(obj); + } + com.google.recaptchaenterprise.v1.PhoneFraudAssessment other = + (com.google.recaptchaenterprise.v1.PhoneFraudAssessment) obj; + + if (hasSmsTollFraudVerdict() != other.hasSmsTollFraudVerdict()) return false; + if (hasSmsTollFraudVerdict()) { + if (!getSmsTollFraudVerdict().equals(other.getSmsTollFraudVerdict())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSmsTollFraudVerdict()) { + hash = (37 * hash) + SMS_TOLL_FRAUD_VERDICT_FIELD_NUMBER; + hash = (53 * hash) + getSmsTollFraudVerdict().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.recaptchaenterprise.v1.PhoneFraudAssessment parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.recaptchaenterprise.v1.PhoneFraudAssessment parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.recaptchaenterprise.v1.PhoneFraudAssessment parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.recaptchaenterprise.v1.PhoneFraudAssessment parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.recaptchaenterprise.v1.PhoneFraudAssessment parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.recaptchaenterprise.v1.PhoneFraudAssessment parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.recaptchaenterprise.v1.PhoneFraudAssessment parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.recaptchaenterprise.v1.PhoneFraudAssessment parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.recaptchaenterprise.v1.PhoneFraudAssessment parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.recaptchaenterprise.v1.PhoneFraudAssessment parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.recaptchaenterprise.v1.PhoneFraudAssessment parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.recaptchaenterprise.v1.PhoneFraudAssessment parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1.PhoneFraudAssessment prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * Assessment for Phone Fraud
          +   * 
          + * + * Protobuf type {@code google.cloud.recaptchaenterprise.v1.PhoneFraudAssessment} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.PhoneFraudAssessment) + com.google.recaptchaenterprise.v1.PhoneFraudAssessmentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_PhoneFraudAssessment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_PhoneFraudAssessment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.recaptchaenterprise.v1.PhoneFraudAssessment.class, + com.google.recaptchaenterprise.v1.PhoneFraudAssessment.Builder.class); + } + + // Construct using com.google.recaptchaenterprise.v1.PhoneFraudAssessment.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSmsTollFraudVerdictFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + smsTollFraudVerdict_ = null; + if (smsTollFraudVerdictBuilder_ != null) { + smsTollFraudVerdictBuilder_.dispose(); + smsTollFraudVerdictBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_PhoneFraudAssessment_descriptor; + } + + @java.lang.Override + public com.google.recaptchaenterprise.v1.PhoneFraudAssessment getDefaultInstanceForType() { + return com.google.recaptchaenterprise.v1.PhoneFraudAssessment.getDefaultInstance(); + } + + @java.lang.Override + public com.google.recaptchaenterprise.v1.PhoneFraudAssessment build() { + com.google.recaptchaenterprise.v1.PhoneFraudAssessment result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.recaptchaenterprise.v1.PhoneFraudAssessment buildPartial() { + com.google.recaptchaenterprise.v1.PhoneFraudAssessment result = + new com.google.recaptchaenterprise.v1.PhoneFraudAssessment(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.recaptchaenterprise.v1.PhoneFraudAssessment result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.smsTollFraudVerdict_ = + smsTollFraudVerdictBuilder_ == null + ? smsTollFraudVerdict_ + : smsTollFraudVerdictBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.recaptchaenterprise.v1.PhoneFraudAssessment) { + return mergeFrom((com.google.recaptchaenterprise.v1.PhoneFraudAssessment) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.recaptchaenterprise.v1.PhoneFraudAssessment other) { + if (other == com.google.recaptchaenterprise.v1.PhoneFraudAssessment.getDefaultInstance()) + return this; + if (other.hasSmsTollFraudVerdict()) { + mergeSmsTollFraudVerdict(other.getSmsTollFraudVerdict()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getSmsTollFraudVerdictFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.recaptchaenterprise.v1.SmsTollFraudVerdict smsTollFraudVerdict_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.SmsTollFraudVerdict, + com.google.recaptchaenterprise.v1.SmsTollFraudVerdict.Builder, + com.google.recaptchaenterprise.v1.SmsTollFraudVerdictOrBuilder> + smsTollFraudVerdictBuilder_; + /** + * + * + *
          +     * Output only. Assessment of this phone event for risk of SMS toll fraud.
          +     * 
          + * + * + * .google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict sms_toll_fraud_verdict = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the smsTollFraudVerdict field is set. + */ + public boolean hasSmsTollFraudVerdict() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
          +     * Output only. Assessment of this phone event for risk of SMS toll fraud.
          +     * 
          + * + * + * .google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict sms_toll_fraud_verdict = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The smsTollFraudVerdict. + */ + public com.google.recaptchaenterprise.v1.SmsTollFraudVerdict getSmsTollFraudVerdict() { + if (smsTollFraudVerdictBuilder_ == null) { + return smsTollFraudVerdict_ == null + ? com.google.recaptchaenterprise.v1.SmsTollFraudVerdict.getDefaultInstance() + : smsTollFraudVerdict_; + } else { + return smsTollFraudVerdictBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Output only. Assessment of this phone event for risk of SMS toll fraud.
          +     * 
          + * + * + * .google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict sms_toll_fraud_verdict = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSmsTollFraudVerdict( + com.google.recaptchaenterprise.v1.SmsTollFraudVerdict value) { + if (smsTollFraudVerdictBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + smsTollFraudVerdict_ = value; + } else { + smsTollFraudVerdictBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Assessment of this phone event for risk of SMS toll fraud.
          +     * 
          + * + * + * .google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict sms_toll_fraud_verdict = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSmsTollFraudVerdict( + com.google.recaptchaenterprise.v1.SmsTollFraudVerdict.Builder builderForValue) { + if (smsTollFraudVerdictBuilder_ == null) { + smsTollFraudVerdict_ = builderForValue.build(); + } else { + smsTollFraudVerdictBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Assessment of this phone event for risk of SMS toll fraud.
          +     * 
          + * + * + * .google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict sms_toll_fraud_verdict = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeSmsTollFraudVerdict( + com.google.recaptchaenterprise.v1.SmsTollFraudVerdict value) { + if (smsTollFraudVerdictBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && smsTollFraudVerdict_ != null + && smsTollFraudVerdict_ + != com.google.recaptchaenterprise.v1.SmsTollFraudVerdict.getDefaultInstance()) { + getSmsTollFraudVerdictBuilder().mergeFrom(value); + } else { + smsTollFraudVerdict_ = value; + } + } else { + smsTollFraudVerdictBuilder_.mergeFrom(value); + } + if (smsTollFraudVerdict_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Output only. Assessment of this phone event for risk of SMS toll fraud.
          +     * 
          + * + * + * .google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict sms_toll_fraud_verdict = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSmsTollFraudVerdict() { + bitField0_ = (bitField0_ & ~0x00000001); + smsTollFraudVerdict_ = null; + if (smsTollFraudVerdictBuilder_ != null) { + smsTollFraudVerdictBuilder_.dispose(); + smsTollFraudVerdictBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Assessment of this phone event for risk of SMS toll fraud.
          +     * 
          + * + * + * .google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict sms_toll_fraud_verdict = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.recaptchaenterprise.v1.SmsTollFraudVerdict.Builder + getSmsTollFraudVerdictBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getSmsTollFraudVerdictFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Output only. Assessment of this phone event for risk of SMS toll fraud.
          +     * 
          + * + * + * .google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict sms_toll_fraud_verdict = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.recaptchaenterprise.v1.SmsTollFraudVerdictOrBuilder + getSmsTollFraudVerdictOrBuilder() { + if (smsTollFraudVerdictBuilder_ != null) { + return smsTollFraudVerdictBuilder_.getMessageOrBuilder(); + } else { + return smsTollFraudVerdict_ == null + ? com.google.recaptchaenterprise.v1.SmsTollFraudVerdict.getDefaultInstance() + : smsTollFraudVerdict_; + } + } + /** + * + * + *
          +     * Output only. Assessment of this phone event for risk of SMS toll fraud.
          +     * 
          + * + * + * .google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict sms_toll_fraud_verdict = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.SmsTollFraudVerdict, + com.google.recaptchaenterprise.v1.SmsTollFraudVerdict.Builder, + com.google.recaptchaenterprise.v1.SmsTollFraudVerdictOrBuilder> + getSmsTollFraudVerdictFieldBuilder() { + if (smsTollFraudVerdictBuilder_ == null) { + smsTollFraudVerdictBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.SmsTollFraudVerdict, + com.google.recaptchaenterprise.v1.SmsTollFraudVerdict.Builder, + com.google.recaptchaenterprise.v1.SmsTollFraudVerdictOrBuilder>( + getSmsTollFraudVerdict(), getParentForChildren(), isClean()); + smsTollFraudVerdict_ = null; + } + return smsTollFraudVerdictBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.PhoneFraudAssessment) + } + + // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.PhoneFraudAssessment) + private static final com.google.recaptchaenterprise.v1.PhoneFraudAssessment DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.PhoneFraudAssessment(); + } + + public static com.google.recaptchaenterprise.v1.PhoneFraudAssessment getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PhoneFraudAssessment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.recaptchaenterprise.v1.PhoneFraudAssessment getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/PhoneFraudAssessmentOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/PhoneFraudAssessmentOrBuilder.java new file mode 100644 index 000000000000..97c975af0d59 --- /dev/null +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/PhoneFraudAssessmentOrBuilder.java @@ -0,0 +1,67 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto + +// Protobuf Java Version: 3.25.3 +package com.google.recaptchaenterprise.v1; + +public interface PhoneFraudAssessmentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.PhoneFraudAssessment) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Output only. Assessment of this phone event for risk of SMS toll fraud.
          +   * 
          + * + * + * .google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict sms_toll_fraud_verdict = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the smsTollFraudVerdict field is set. + */ + boolean hasSmsTollFraudVerdict(); + /** + * + * + *
          +   * Output only. Assessment of this phone event for risk of SMS toll fraud.
          +   * 
          + * + * + * .google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict sms_toll_fraud_verdict = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The smsTollFraudVerdict. + */ + com.google.recaptchaenterprise.v1.SmsTollFraudVerdict getSmsTollFraudVerdict(); + /** + * + * + *
          +   * Output only. Assessment of this phone event for risk of SMS toll fraud.
          +   * 
          + * + * + * .google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict sms_toll_fraud_verdict = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.recaptchaenterprise.v1.SmsTollFraudVerdictOrBuilder getSmsTollFraudVerdictOrBuilder(); +} diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RecaptchaEnterpriseProto.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RecaptchaEnterpriseProto.java index 8cbd91057a27..22d549f3e99f 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RecaptchaEnterpriseProto.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RecaptchaEnterpriseProto.java @@ -128,6 +128,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_CardSignals_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_recaptchaenterprise_v1_FraudSignals_CardSignals_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_SmsTollFraudVerdict_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_SmsTollFraudVerdict_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_PhoneFraudAssessment_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_PhoneFraudAssessment_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_recaptchaenterprise_v1_AccountDefenderAssessment_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -415,7 +423,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_user_credentials_hash\030\002 \001(\014B\003\340A\001\022*\n\035enc" + "rypted_leak_match_prefixes\030\003 \003(\014B\003\340A\003\022.\n" + "!reencrypted_user_credentials_hash\030\004 \001(\014" - + "B\003\340A\003\"\343\007\n\nAssessment\022\024\n\004name\030\001 \001(\tB\006\340A\003\340" + + "B\003\340A\003\"\303\010\n\nAssessment\022\024\n\004name\030\001 \001(\tB\006\340A\003\340" + "A\010\022>\n\005event\030\002 \001(\0132*.google.cloud.recaptc" + "haenterprise.v1.EventB\003\340A\001\022M\n\rrisk_analy" + "sis\030\003 \001(\01321.google.cloud.recaptchaenterp" @@ -437,437 +445,448 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "terprise.v1.FraudPreventionAssessmentB\003\340" + "A\003\022M\n\rfraud_signals\030\r \001(\01321.google.cloud" + ".recaptchaenterprise.v1.FraudSignalsB\003\340A" - + "\003:x\352Au\n-recaptchaenterprise.googleapis.c" - + "om/Assessment\022+projects/{project}/assess" - + "ments/{assessment}*\013assessments2\nassessm" - + "ent\"\236\005\n\005Event\022\022\n\005token\030\001 \001(\tB\003\340A\001\022\025\n\010sit" - + "e_key\030\002 \001(\tB\003\340A\001\022\027\n\nuser_agent\030\003 \001(\tB\003\340A" - + "\001\022$\n\017user_ip_address\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\004\022" - + "\034\n\017expected_action\030\005 \001(\tB\003\340A\001\022 \n\021hashed_" - + "account_id\030\006 \001(\014B\005\030\001\340A\001\022\024\n\007express\030\016 \001(\010" - + "B\003\340A\001\022\032\n\rrequested_uri\030\010 \001(\tB\003\340A\001\022!\n\024waf" - + "_token_assessment\030\t \001(\010B\003\340A\001\022\020\n\003ja3\030\n \001(" - + "\tB\003\340A\001\022\024\n\007headers\030\013 \003(\tB\003\340A\001\022\'\n\032firewall" - + "_policy_evaluation\030\014 \001(\010B\003\340A\001\022S\n\020transac" - + "tion_data\030\r \001(\01324.google.cloud.recaptcha" - + "enterprise.v1.TransactionDataB\003\340A\001\022E\n\tus" - + "er_info\030\017 \001(\0132-.google.cloud.recaptchaen" - + "terprise.v1.UserInfoB\003\340A\001\022Y\n\020fraud_preve" - + "ntion\030\021 \001(\0162:.google.cloud.recaptchaente" - + "rprise.v1.Event.FraudPreventionB\003\340A\001\"N\n\017" - + "FraudPrevention\022 \n\034FRAUD_PREVENTION_UNSP" - + "ECIFIED\020\000\022\013\n\007ENABLED\020\001\022\014\n\010DISABLED\020\002\"\240\n\n" - + "\017TransactionData\022\033\n\016transaction_id\030\013 \001(\t" - + "H\000\210\001\001\022\033\n\016payment_method\030\001 \001(\tB\003\340A\001\022\025\n\010ca" - + "rd_bin\030\002 \001(\tB\003\340A\001\022\033\n\016card_last_four\030\003 \001(" - + "\tB\003\340A\001\022\032\n\rcurrency_code\030\004 \001(\tB\003\340A\001\022\022\n\005va" - + "lue\030\005 \001(\001B\003\340A\001\022\033\n\016shipping_value\030\014 \001(\001B\003" - + "\340A\001\022[\n\020shipping_address\030\006 \001(\0132<.google.c" - + "loud.recaptchaenterprise.v1.TransactionD" - + "ata.AddressB\003\340A\001\022Z\n\017billing_address\030\007 \001(" - + "\0132<.google.cloud.recaptchaenterprise.v1." - + "TransactionData.AddressB\003\340A\001\022L\n\004user\030\010 \001" - + "(\01329.google.cloud.recaptchaenterprise.v1" - + ".TransactionData.UserB\003\340A\001\022Q\n\tmerchants\030" - + "\r \003(\01329.google.cloud.recaptchaenterprise" - + ".v1.TransactionData.UserB\003\340A\001\022M\n\005items\030\016" - + " \003(\01329.google.cloud.recaptchaenterprise." - + "v1.TransactionData.ItemB\003\340A\001\022[\n\014gateway_" - + "info\030\n \001(\0132@.google.cloud.recaptchaenter" - + "prise.v1.TransactionData.GatewayInfoB\003\340A" - + "\001\032\244\001\n\007Address\022\026\n\trecipient\030\001 \001(\tB\003\340A\001\022\024\n" - + "\007address\030\002 \003(\tB\003\340A\001\022\025\n\010locality\030\003 \001(\tB\003\340" - + "A\001\022 \n\023administrative_area\030\004 \001(\tB\003\340A\001\022\030\n\013" - + "region_code\030\005 \001(\tB\003\340A\001\022\030\n\013postal_code\030\006 " - + "\001(\tB\003\340A\001\032\242\001\n\004User\022\027\n\naccount_id\030\006 \001(\tB\003\340" - + "A\001\022\030\n\013creation_ms\030\001 \001(\003B\003\340A\001\022\022\n\005email\030\002 " - + "\001(\tB\003\340A\001\022\033\n\016email_verified\030\003 \001(\010B\003\340A\001\022\031\n" - + "\014phone_number\030\004 \001(\tB\003\340A\001\022\033\n\016phone_verifi" - + "ed\030\005 \001(\010B\003\340A\001\032f\n\004Item\022\021\n\004name\030\001 \001(\tB\003\340A\001" - + "\022\022\n\005value\030\002 \001(\001B\003\340A\001\022\025\n\010quantity\030\003 \001(\003B\003" - + "\340A\001\022 \n\023merchant_account_id\030\004 \001(\tB\003\340A\001\032\204\001" - + "\n\013GatewayInfo\022\021\n\004name\030\001 \001(\tB\003\340A\001\022\"\n\025gate" - + "way_response_code\030\002 \001(\tB\003\340A\001\022\036\n\021avs_resp" - + "onse_code\030\003 \001(\tB\003\340A\001\022\036\n\021cvv_response_cod" - + "e\030\004 \001(\tB\003\340A\001B\021\n\017_transaction_id\"\245\001\n\010User" - + "Info\022<\n\023create_account_time\030\001 \001(\0132\032.goog" - + "le.protobuf.TimestampB\003\340A\001\022\027\n\naccount_id" - + "\030\002 \001(\tB\003\340A\001\022B\n\010user_ids\030\003 \003(\0132+.google.c" - + "loud.recaptchaenterprise.v1.UserIdB\003\340A\001\"" - + "`\n\006UserId\022\024\n\005email\030\001 \001(\tB\003\340A\001H\000\022\033\n\014phone" - + "_number\030\002 \001(\tB\003\340A\001H\000\022\027\n\010username\030\003 \001(\tB\003" - + "\340A\001H\000B\n\n\010id_oneof\"\223\003\n\014RiskAnalysis\022\022\n\005sc" - + "ore\030\001 \001(\002B\003\340A\003\022\\\n\007reasons\030\002 \003(\0162F.google" - + ".cloud.recaptchaenterprise.v1.RiskAnalys" - + "is.ClassificationReasonB\003\340A\003\022%\n\030extended" - + "_verdict_reasons\030\003 \003(\tB\003\340A\003\"\351\001\n\024Classifi" - + "cationReason\022%\n!CLASSIFICATION_REASON_UN" - + "SPECIFIED\020\000\022\016\n\nAUTOMATION\020\001\022\032\n\026UNEXPECTE" - + "D_ENVIRONMENT\020\002\022\024\n\020TOO_MUCH_TRAFFIC\020\003\022\035\n" - + "\031UNEXPECTED_USAGE_PATTERNS\020\004\022\030\n\024LOW_CONF" - + "IDENCE_SCORE\020\005\022\025\n\021SUSPECTED_CARDING\020\006\022\030\n" - + "\024SUSPECTED_CHARGEBACK\020\007\"\273\003\n\017TokenPropert" - + "ies\022\022\n\005valid\030\001 \001(\010B\003\340A\003\022_\n\016invalid_reaso" - + "n\030\002 \001(\0162B.google.cloud.recaptchaenterpri" - + "se.v1.TokenProperties.InvalidReasonB\003\340A\003" - + "\0224\n\013create_time\030\003 \001(\0132\032.google.protobuf." - + "TimestampB\003\340A\003\022\025\n\010hostname\030\004 \001(\tB\003\340A\003\022!\n" - + "\024android_package_name\030\010 \001(\tB\003\340A\003\022\032\n\rios_" - + "bundle_id\030\t \001(\tB\003\340A\003\022\023\n\006action\030\005 \001(\tB\003\340A" - + "\003\"\221\001\n\rInvalidReason\022\036\n\032INVALID_REASON_UN" - + "SPECIFIED\020\000\022\032\n\026UNKNOWN_INVALID_REASON\020\001\022" - + "\r\n\tMALFORMED\020\002\022\013\n\007EXPIRED\020\003\022\010\n\004DUPE\020\004\022\013\n" - + "\007MISSING\020\005\022\021\n\rBROWSER_ERROR\020\006\"\263\004\n\031FraudP" - + "reventionAssessment\022\035\n\020transaction_risk\030" - + "\001 \001(\002B\003\340A\003\022~\n\031stolen_instrument_verdict\030" - + "\002 \001(\0132V.google.cloud.recaptchaenterprise" - + ".v1.FraudPreventionAssessment.StolenInst" - + "rumentVerdictB\003\340A\003\022t\n\024card_testing_verdi" - + "ct\030\003 \001(\0132Q.google.cloud.recaptchaenterpr" - + "ise.v1.FraudPreventionAssessment.CardTes" - + "tingVerdictB\003\340A\003\022|\n\030behavioral_trust_ver" - + "dict\030\004 \001(\0132U.google.cloud.recaptchaenter" - + "prise.v1.FraudPreventionAssessment.Behav" - + "ioralTrustVerdictB\003\340A\003\032,\n\027StolenInstrume" - + "ntVerdict\022\021\n\004risk\030\001 \001(\002B\003\340A\003\032\'\n\022CardTest" - + "ingVerdict\022\021\n\004risk\030\001 \001(\002B\003\340A\003\032,\n\026Behavio" - + "ralTrustVerdict\022\022\n\005trust\030\001 \001(\002B\003\340A\003\"\343\003\n\014" - + "FraudSignals\022X\n\014user_signals\030\001 \001(\0132=.goo" - + "gle.cloud.recaptchaenterprise.v1.FraudSi" - + "gnals.UserSignalsB\003\340A\003\022X\n\014card_signals\030\002" - + " \001(\0132=.google.cloud.recaptchaenterprise." - + "v1.FraudSignals.CardSignalsB\003\340A\003\032P\n\013User" - + "Signals\022$\n\027active_days_lower_bound\030\001 \001(\005" - + "B\003\340A\003\022\033\n\016synthetic_risk\030\002 \001(\002B\003\340A\003\032\314\001\n\013C" - + "ardSignals\022a\n\013card_labels\030\001 \003(\0162G.google" - + ".cloud.recaptchaenterprise.v1.FraudSigna" - + "ls.CardSignals.CardLabelB\003\340A\003\"Z\n\tCardLab" - + "el\022\032\n\026CARD_LABEL_UNSPECIFIED\020\000\022\013\n\007PREPAI" - + "D\020\001\022\013\n\007VIRTUAL\020\002\022\027\n\023UNEXPECTED_LOCATION\020" - + "\003\"\273\002\n\031AccountDefenderAssessment\022h\n\006label" - + "s\030\001 \003(\0162S.google.cloud.recaptchaenterpri" - + "se.v1.AccountDefenderAssessment.AccountD" - + "efenderLabelB\003\340A\003\"\263\001\n\024AccountDefenderLab" - + "el\022&\n\"ACCOUNT_DEFENDER_LABEL_UNSPECIFIED" - + "\020\000\022\021\n\rPROFILE_MATCH\020\001\022\035\n\031SUSPICIOUS_LOGI" - + "N_ACTIVITY\020\002\022\037\n\033SUSPICIOUS_ACCOUNT_CREAT" - + "ION\020\003\022 \n\034RELATED_ACCOUNTS_NUMBER_HIGH\020\004\"" - + "\223\001\n\020CreateKeyRequest\022C\n\006parent\030\001 \001(\tB3\340A" - + "\002\372A-\n+cloudresourcemanager.googleapis.co" - + "m/Project\022:\n\003key\030\002 \001(\0132(.google.cloud.re" - + "captchaenterprise.v1.KeyB\003\340A\002\"\207\001\n\017ListKe" - + "ysRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloud" - + "resourcemanager.googleapis.com/Project\022\026" - + "\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001" - + "(\tB\003\340A\001\"c\n\020ListKeysResponse\0226\n\004keys\030\001 \003(" - + "\0132(.google.cloud.recaptchaenterprise.v1." - + "Key\022\027\n\017next_page_token\030\002 \001(\t\"]\n\036Retrieve" - + "LegacySecretKeyRequest\022;\n\003key\030\001 \001(\tB.\340A\002" - + "\372A(\n&recaptchaenterprise.googleapis.com/" - + "Key\"M\n\rGetKeyRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372" - + "A(\n&recaptchaenterprise.googleapis.com/K" - + "ey\"\204\001\n\020UpdateKeyRequest\022:\n\003key\030\001 \001(\0132(.g" - + "oogle.cloud.recaptchaenterprise.v1.KeyB\003" - + "\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.protob" - + "uf.FieldMaskB\003\340A\001\"P\n\020DeleteKeyRequest\022<\n" - + "\004name\030\001 \001(\tB.\340A\002\372A(\n&recaptchaenterprise" - + ".googleapis.com/Key\"\265\001\n\033CreateFirewallPo" - + "licyRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+clo" - + "udresourcemanager.googleapis.com/Project" - + "\022Q\n\017firewall_policy\030\002 \001(\01323.google.cloud" - + ".recaptchaenterprise.v1.FirewallPolicyB\003" - + "\340A\002\"\223\001\n\033ListFirewallPoliciesRequest\022C\n\006p" - + "arent\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanage" - + "r.googleapis.com/Project\022\026\n\tpage_size\030\002 " - + "\001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"\207\001\n\034Li" - + "stFirewallPoliciesResponse\022N\n\021firewall_p" - + "olicies\030\001 \003(\01323.google.cloud.recaptchaen" - + "terprise.v1.FirewallPolicy\022\027\n\017next_page_" - + "token\030\002 \001(\t\"c\n\030GetFirewallPolicyRequest\022" - + "G\n\004name\030\001 \001(\tB9\340A\002\372A3\n1recaptchaenterpri" - + "se.googleapis.com/FirewallPolicy\"\246\001\n\033Upd" - + "ateFirewallPolicyRequest\022Q\n\017firewall_pol" - + "icy\030\001 \001(\01323.google.cloud.recaptchaenterp" - + "rise.v1.FirewallPolicyB\003\340A\002\0224\n\013update_ma" - + "sk\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A" - + "\001\"f\n\033DeleteFirewallPolicyRequest\022G\n\004name" - + "\030\001 \001(\tB9\340A\002\372A3\n1recaptchaenterprise.goog" - + "leapis.com/FirewallPolicy\"\257\001\n\036ReorderFir" - + "ewallPoliciesRequest\022C\n\006parent\030\001 \001(\tB3\340A" - + "\002\372A-\n+cloudresourcemanager.googleapis.co" - + "m/Project\022H\n\005names\030\002 \003(\tB9\340A\002\372A3\n1recapt" - + "chaenterprise.googleapis.com/FirewallPol" - + "icy\"!\n\037ReorderFirewallPoliciesResponse\"r" - + "\n\021MigrateKeyRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A" - + "(\n&recaptchaenterprise.googleapis.com/Ke" - + "y\022\037\n\022skip_billing_check\030\002 \001(\010B\003\340A\001\"U\n\021Ge" - + "tMetricsRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*r" - + "ecaptchaenterprise.googleapis.com/Metric" - + "s\"\325\002\n\007Metrics\022\024\n\004name\030\004 \001(\tB\006\340A\010\340A\003\022.\n\ns" - + "tart_time\030\001 \001(\0132\032.google.protobuf.Timest" - + "amp\022H\n\rscore_metrics\030\002 \003(\01321.google.clou" - + "d.recaptchaenterprise.v1.ScoreMetrics\022P\n" - + "\021challenge_metrics\030\003 \003(\01325.google.cloud." - + "recaptchaenterprise.v1.ChallengeMetrics:" - + "h\352Ae\n*recaptchaenterprise.googleapis.com" - + "/Metrics\022%projects/{project}/keys/{key}/" - + "metrics*\007metrics2\007metrics\"<\n\037RetrieveLeg" - + "acySecretKeyResponse\022\031\n\021legacy_secret_ke" - + "y\030\001 \001(\t\"\336\005\n\003Key\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\031\n\014di" - + "splay_name\030\002 \001(\tB\003\340A\002\022K\n\014web_settings\030\003 " - + "\001(\01323.google.cloud.recaptchaenterprise.v" - + "1.WebKeySettingsH\000\022S\n\020android_settings\030\004" - + " \001(\01327.google.cloud.recaptchaenterprise." - + "v1.AndroidKeySettingsH\000\022K\n\014ios_settings\030" - + "\005 \001(\01323.google.cloud.recaptchaenterprise" - + ".v1.IOSKeySettingsH\000\022I\n\006labels\030\006 \003(\01324.g" - + "oogle.cloud.recaptchaenterprise.v1.Key.L" - + "abelsEntryB\003\340A\001\0224\n\013create_time\030\007 \001(\0132\032.g" - + "oogle.protobuf.TimestampB\003\340A\003\022Q\n\017testing" - + "_options\030\t \001(\01323.google.cloud.recaptchae" - + "nterprise.v1.TestingOptionsB\003\340A\001\022K\n\014waf_" - + "settings\030\n \001(\01320.google.cloud.recaptchae" - + "nterprise.v1.WafSettingsB\003\340A\001\032-\n\013LabelsE" - + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:U\352A" - + "R\n&recaptchaenterprise.googleapis.com/Ke" - + "y\022\035projects/{project}/keys/{key}*\004keys2\003" - + "keyB\023\n\021platform_settings\"\362\001\n\016TestingOpti" - + "ons\022\032\n\rtesting_score\030\001 \001(\002B\003\340A\001\022d\n\021testi" - + "ng_challenge\030\002 \001(\0162D.google.cloud.recapt" - + "chaenterprise.v1.TestingOptions.TestingC" - + "hallengeB\003\340A\001\"^\n\020TestingChallenge\022!\n\035TES" - + "TING_CHALLENGE_UNSPECIFIED\020\000\022\r\n\tNOCAPTCH" - + "A\020\001\022\030\n\024UNSOLVABLE_CHALLENGE\020\002\"\244\004\n\016WebKey" - + "Settings\022\036\n\021allow_all_domains\030\003 \001(\010B\003\340A\001" - + "\022\034\n\017allowed_domains\030\001 \003(\tB\003\340A\001\022\036\n\021allow_" - + "amp_traffic\030\002 \001(\010B\003\340A\001\022b\n\020integration_ty" - + "pe\030\004 \001(\0162C.google.cloud.recaptchaenterpr" - + "ise.v1.WebKeySettings.IntegrationTypeB\003\340" - + "A\002\022{\n\035challenge_security_preference\030\005 \001(" - + "\0162O.google.cloud.recaptchaenterprise.v1." - + "WebKeySettings.ChallengeSecurityPreferen" - + "ceB\003\340A\001\"[\n\017IntegrationType\022 \n\034INTEGRATIO" - + "N_TYPE_UNSPECIFIED\020\000\022\t\n\005SCORE\020\001\022\014\n\010CHECK" - + "BOX\020\002\022\r\n\tINVISIBLE\020\003\"v\n\033ChallengeSecurit" - + "yPreference\022-\n)CHALLENGE_SECURITY_PREFER" - + "ENCE_UNSPECIFIED\020\000\022\r\n\tUSABILITY\020\001\022\013\n\007BAL" - + "ANCE\020\002\022\014\n\010SECURITY\020\003\"\226\001\n\022AndroidKeySetti" - + "ngs\022$\n\027allow_all_package_names\030\002 \001(\010B\003\340A" - + "\001\022\"\n\025allowed_package_names\030\001 \003(\tB\003\340A\001\0226\n" - + ")support_non_google_app_store_distributi" - + "on\030\003 \001(\010B\003\340A\001\"\254\001\n\016IOSKeySettings\022!\n\024allo" - + "w_all_bundle_ids\030\002 \001(\010B\003\340A\001\022\037\n\022allowed_b" - + "undle_ids\030\001 \003(\tB\003\340A\001\022V\n\022apple_developer_" - + "id\030\003 \001(\01325.google.cloud.recaptchaenterpr" - + "ise.v1.AppleDeveloperIdB\003\340A\001\"Z\n\020AppleDev" - + "eloperId\022\033\n\013private_key\030\001 \001(\tB\006\340A\002\340A\004\022\023\n" - + "\006key_id\030\002 \001(\tB\003\340A\002\022\024\n\007team_id\030\003 \001(\tB\003\340A\002" - + "\"\251\001\n\021ScoreDistribution\022_\n\rscore_buckets\030" - + "\001 \003(\0132H.google.cloud.recaptchaenterprise" - + ".v1.ScoreDistribution.ScoreBucketsEntry\032" - + "3\n\021ScoreBucketsEntry\022\013\n\003key\030\001 \001(\005\022\r\n\005val" - + "ue\030\002 \001(\003:\0028\001\"\253\002\n\014ScoreMetrics\022O\n\017overall" - + "_metrics\030\001 \001(\01326.google.cloud.recaptchae" - + "nterprise.v1.ScoreDistribution\022\\\n\016action" - + "_metrics\030\002 \003(\0132D.google.cloud.recaptchae" - + "nterprise.v1.ScoreMetrics.ActionMetricsE" - + "ntry\032l\n\022ActionMetricsEntry\022\013\n\003key\030\001 \001(\t\022" - + "E\n\005value\030\002 \001(\01326.google.cloud.recaptchae" - + "nterprise.v1.ScoreDistribution:\0028\001\"o\n\020Ch" - + "allengeMetrics\022\026\n\016pageload_count\030\001 \001(\003\022\027" - + "\n\017nocaptcha_count\030\002 \001(\003\022\024\n\014failed_count\030" - + "\003 \001(\003\022\024\n\014passed_count\030\004 \001(\003\"\225\001\n\030Firewall" - + "PolicyAssessment\022&\n\005error\030\005 \001(\0132\022.google" - + ".rpc.StatusB\003\340A\003\022Q\n\017firewall_policy\030\010 \001(" - + "\01323.google.cloud.recaptchaenterprise.v1." - + "FirewallPolicyB\003\340A\003\"\202\006\n\016FirewallAction\022P" - + "\n\005allow\030\001 \001(\0132?.google.cloud.recaptchaen" - + "terprise.v1.FirewallAction.AllowActionH\000" - + "\022P\n\005block\030\002 \001(\0132?.google.cloud.recaptcha" - + "enterprise.v1.FirewallAction.BlockAction" - + "H\000\022t\n\030include_recaptcha_script\030\006 \001(\0132P.g" - + "oogle.cloud.recaptchaenterprise.v1.Firew" - + "allAction.IncludeRecaptchaScriptActionH\000" - + "\022V\n\010redirect\030\005 \001(\0132B.google.cloud.recapt" - + "chaenterprise.v1.FirewallAction.Redirect" - + "ActionH\000\022Z\n\nsubstitute\030\003 \001(\0132D.google.cl" - + "oud.recaptchaenterprise.v1.FirewallActio" - + "n.SubstituteActionH\000\022Y\n\nset_header\030\004 \001(\013" - + "2C.google.cloud.recaptchaenterprise.v1.F" - + "irewallAction.SetHeaderActionH\000\032\r\n\013Allow" - + "Action\032\r\n\013BlockAction\032\036\n\034IncludeRecaptch" - + "aScriptAction\032\020\n\016RedirectAction\032%\n\020Subst" - + "ituteAction\022\021\n\004path\030\001 \001(\tB\003\340A\001\0327\n\017SetHea" - + "derAction\022\020\n\003key\030\001 \001(\tB\003\340A\001\022\022\n\005value\030\002 \001" - + "(\tB\003\340A\001B\027\n\025firewall_action_oneof\"\305\002\n\016Fir" - + "ewallPolicy\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\030\n\013descri" - + "ption\030\002 \001(\tB\003\340A\001\022\021\n\004path\030\004 \001(\tB\003\340A\001\022\026\n\tc" - + "ondition\030\005 \001(\tB\003\340A\001\022I\n\007actions\030\006 \003(\01323.g" - + "oogle.cloud.recaptchaenterprise.v1.Firew" - + "allActionB\003\340A\001:\217\001\352A\213\001\n1recaptchaenterpri" - + "se.googleapis.com/FirewallPolicy\0224projec" - + "ts/{project}/firewallpolicies/{firewallp" - + "olicy}*\020firewallPolicies2\016firewallPolicy" - + "\"\266\001\n)ListRelatedAccountGroupMembershipsR" - + "equest\022X\n\006parent\030\001 \001(\tBH\340A\002\372AB\022@recaptch" - + "aenterprise.googleapis.com/RelatedAccoun" - + "tGroupMembership\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001" - + "\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"\264\001\n*ListRelate" - + "dAccountGroupMembershipsResponse\022m\n!rela" - + "ted_account_group_memberships\030\001 \003(\0132B.go" - + "ogle.cloud.recaptchaenterprise.v1.Relate" - + "dAccountGroupMembership\022\027\n\017next_page_tok" - + "en\030\002 \001(\t\"\242\001\n\037ListRelatedAccountGroupsReq" - + "uest\022N\n\006parent\030\001 \001(\tB>\340A\002\372A8\0226recaptchae" - + "nterprise.googleapis.com/RelatedAccountG" - + "roup\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_tok" - + "en\030\003 \001(\tB\003\340A\001\"\225\001\n ListRelatedAccountGrou" - + "psResponse\022X\n\026related_account_groups\030\001 \003" - + "(\01328.google.cloud.recaptchaenterprise.v1" - + ".RelatedAccountGroup\022\027\n\017next_page_token\030" - + "\002 \001(\t\"\337\001\n+SearchRelatedAccountGroupMembe" - + "rshipsRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+" - + "cloudresourcemanager.googleapis.com/Proj" - + "ect\022\027\n\naccount_id\030\005 \001(\tB\003\340A\001\022 \n\021hashed_a" - + "ccount_id\030\002 \001(\014B\005\030\001\340A\001\022\026\n\tpage_size\030\003 \001(" - + "\005B\003\340A\001\022\027\n\npage_token\030\004 \001(\tB\003\340A\001\"\266\001\n,Sear" - + "chRelatedAccountGroupMembershipsResponse" - + "\022m\n!related_account_group_memberships\030\001 " - + "\003(\0132B.google.cloud.recaptchaenterprise.v" - + "1.RelatedAccountGroupMembership\022\027\n\017next_" - + "page_token\030\002 \001(\t\"\310\002\n\035RelatedAccountGroup" - + "Membership\022\024\n\004name\030\001 \001(\tB\006\340A\010\340A\002\022\022\n\nacco", - "unt_id\030\004 \001(\t\022\035\n\021hashed_account_id\030\002 \001(\014B" - + "\002\030\001:\335\001\352A\331\001\n@recaptchaenterprise.googleap" - + "is.com/RelatedAccountGroupMembership\022Vpr" - + "ojects/{project}/relatedaccountgroups/{r" - + "elatedaccountgroup}/memberships/{members" - + "hip}*\036relatedAccountGroupMemberships2\035re" - + "latedAccountGroupMembership\"\324\001\n\023RelatedA" - + "ccountGroup\022\024\n\004name\030\001 \001(\tB\006\340A\010\340A\002:\246\001\352A\242\001" - + "\n6recaptchaenterprise.googleapis.com/Rel" - + "atedAccountGroup\022=projects/{project}/rel" - + "atedaccountgroups/{relatedaccountgroup}*" - + "\024relatedAccountGroups2\023relatedAccountGro" - + "up\"\373\002\n\013WafSettings\022U\n\013waf_service\030\001 \001(\0162" - + ";.google.cloud.recaptchaenterprise.v1.Wa" - + "fSettings.WafServiceB\003\340A\002\022U\n\013waf_feature" - + "\030\002 \001(\0162;.google.cloud.recaptchaenterpris" - + "e.v1.WafSettings.WafFeatureB\003\340A\002\"o\n\nWafF" - + "eature\022\033\n\027WAF_FEATURE_UNSPECIFIED\020\000\022\022\n\016C" - + "HALLENGE_PAGE\020\001\022\021\n\rSESSION_TOKEN\020\002\022\020\n\014AC" - + "TION_TOKEN\020\003\022\013\n\007EXPRESS\020\005\"M\n\nWafService\022" - + "\033\n\027WAF_SERVICE_UNSPECIFIED\020\000\022\006\n\002CA\020\001\022\n\n\006" - + "FASTLY\020\003\022\016\n\nCLOUDFLARE\020\0042\331\037\n\032RecaptchaEn" - + "terpriseService\022\316\001\n\020CreateAssessment\022<.g" - + "oogle.cloud.recaptchaenterprise.v1.Creat" - + "eAssessmentRequest\032/.google.cloud.recapt" - + "chaenterprise.v1.Assessment\"K\332A\021parent,a" - + "ssessment\202\323\344\223\0021\"#/v1/{parent=projects/*}" - + "/assessments:\nassessment\022\340\001\n\022AnnotateAss" - + "essment\022>.google.cloud.recaptchaenterpri" - + "se.v1.AnnotateAssessmentRequest\032?.google" - + ".cloud.recaptchaenterprise.v1.AnnotateAs" - + "sessmentResponse\"I\332A\017name,annotation\202\323\344\223" - + "\0021\",/v1/{name=projects/*/assessments/*}:" - + "annotate:\001*\022\244\001\n\tCreateKey\0225.google.cloud" - + ".recaptchaenterprise.v1.CreateKeyRequest" - + "\032(.google.cloud.recaptchaenterprise.v1.K" - + "ey\"6\332A\nparent,key\202\323\344\223\002#\"\034/v1/{parent=pro" - + "jects/*}/keys:\003key\022\246\001\n\010ListKeys\0224.google" - + ".cloud.recaptchaenterprise.v1.ListKeysRe" - + "quest\0325.google.cloud.recaptchaenterprise" - + ".v1.ListKeysResponse\"-\332A\006parent\202\323\344\223\002\036\022\034/" - + "v1/{parent=projects/*}/keys\022\347\001\n\027Retrieve" - + "LegacySecretKey\022C.google.cloud.recaptcha" - + "enterprise.v1.RetrieveLegacySecretKeyReq" - + "uest\032D.google.cloud.recaptchaenterprise." - + "v1.RetrieveLegacySecretKeyResponse\"A\332A\003k" - + "ey\202\323\344\223\0025\0223/v1/{key=projects/*/keys/*}:re" - + "trieveLegacySecretKey\022\223\001\n\006GetKey\0222.googl" - + "e.cloud.recaptchaenterprise.v1.GetKeyReq" + + "\003\022^\n\026phone_fraud_assessment\030\014 \001(\01329.goog" + + "le.cloud.recaptchaenterprise.v1.PhoneFra" + + "udAssessmentB\003\340A\003:x\352Au\n-recaptchaenterpr" + + "ise.googleapis.com/Assessment\022+projects/" + + "{project}/assessments/{assessment}*\013asse" + + "ssments2\nassessment\"\236\005\n\005Event\022\022\n\005token\030\001" + + " \001(\tB\003\340A\001\022\025\n\010site_key\030\002 \001(\tB\003\340A\001\022\027\n\nuser" + + "_agent\030\003 \001(\tB\003\340A\001\022$\n\017user_ip_address\030\004 \001" + + "(\tB\013\340A\001\342\214\317\327\010\002\010\004\022\034\n\017expected_action\030\005 \001(\t" + + "B\003\340A\001\022 \n\021hashed_account_id\030\006 \001(\014B\005\030\001\340A\001\022" + + "\024\n\007express\030\016 \001(\010B\003\340A\001\022\032\n\rrequested_uri\030\010" + + " \001(\tB\003\340A\001\022!\n\024waf_token_assessment\030\t \001(\010B" + + "\003\340A\001\022\020\n\003ja3\030\n \001(\tB\003\340A\001\022\024\n\007headers\030\013 \003(\tB" + + "\003\340A\001\022\'\n\032firewall_policy_evaluation\030\014 \001(\010" + + "B\003\340A\001\022S\n\020transaction_data\030\r \001(\01324.google" + + ".cloud.recaptchaenterprise.v1.Transactio" + + "nDataB\003\340A\001\022E\n\tuser_info\030\017 \001(\0132-.google.c" + + "loud.recaptchaenterprise.v1.UserInfoB\003\340A" + + "\001\022Y\n\020fraud_prevention\030\021 \001(\0162:.google.clo" + + "ud.recaptchaenterprise.v1.Event.FraudPre" + + "ventionB\003\340A\001\"N\n\017FraudPrevention\022 \n\034FRAUD" + + "_PREVENTION_UNSPECIFIED\020\000\022\013\n\007ENABLED\020\001\022\014" + + "\n\010DISABLED\020\002\"\240\n\n\017TransactionData\022\033\n\016tran" + + "saction_id\030\013 \001(\tH\000\210\001\001\022\033\n\016payment_method\030" + + "\001 \001(\tB\003\340A\001\022\025\n\010card_bin\030\002 \001(\tB\003\340A\001\022\033\n\016car" + + "d_last_four\030\003 \001(\tB\003\340A\001\022\032\n\rcurrency_code\030" + + "\004 \001(\tB\003\340A\001\022\022\n\005value\030\005 \001(\001B\003\340A\001\022\033\n\016shippi" + + "ng_value\030\014 \001(\001B\003\340A\001\022[\n\020shipping_address\030" + + "\006 \001(\0132<.google.cloud.recaptchaenterprise" + + ".v1.TransactionData.AddressB\003\340A\001\022Z\n\017bill" + + "ing_address\030\007 \001(\0132<.google.cloud.recaptc" + + "haenterprise.v1.TransactionData.AddressB" + + "\003\340A\001\022L\n\004user\030\010 \001(\01329.google.cloud.recapt" + + "chaenterprise.v1.TransactionData.UserB\003\340" + + "A\001\022Q\n\tmerchants\030\r \003(\01329.google.cloud.rec" + + "aptchaenterprise.v1.TransactionData.User" + + "B\003\340A\001\022M\n\005items\030\016 \003(\01329.google.cloud.reca" + + "ptchaenterprise.v1.TransactionData.ItemB" + + "\003\340A\001\022[\n\014gateway_info\030\n \001(\0132@.google.clou" + + "d.recaptchaenterprise.v1.TransactionData" + + ".GatewayInfoB\003\340A\001\032\244\001\n\007Address\022\026\n\trecipie" + + "nt\030\001 \001(\tB\003\340A\001\022\024\n\007address\030\002 \003(\tB\003\340A\001\022\025\n\010l" + + "ocality\030\003 \001(\tB\003\340A\001\022 \n\023administrative_are" + + "a\030\004 \001(\tB\003\340A\001\022\030\n\013region_code\030\005 \001(\tB\003\340A\001\022\030" + + "\n\013postal_code\030\006 \001(\tB\003\340A\001\032\242\001\n\004User\022\027\n\nacc" + + "ount_id\030\006 \001(\tB\003\340A\001\022\030\n\013creation_ms\030\001 \001(\003B" + + "\003\340A\001\022\022\n\005email\030\002 \001(\tB\003\340A\001\022\033\n\016email_verifi" + + "ed\030\003 \001(\010B\003\340A\001\022\031\n\014phone_number\030\004 \001(\tB\003\340A\001" + + "\022\033\n\016phone_verified\030\005 \001(\010B\003\340A\001\032f\n\004Item\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\001\022\022\n\005value\030\002 \001(\001B\003\340A\001\022\025\n\010" + + "quantity\030\003 \001(\003B\003\340A\001\022 \n\023merchant_account_" + + "id\030\004 \001(\tB\003\340A\001\032\204\001\n\013GatewayInfo\022\021\n\004name\030\001 " + + "\001(\tB\003\340A\001\022\"\n\025gateway_response_code\030\002 \001(\tB" + + "\003\340A\001\022\036\n\021avs_response_code\030\003 \001(\tB\003\340A\001\022\036\n\021" + + "cvv_response_code\030\004 \001(\tB\003\340A\001B\021\n\017_transac" + + "tion_id\"\245\001\n\010UserInfo\022<\n\023create_account_t" + + "ime\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340" + + "A\001\022\027\n\naccount_id\030\002 \001(\tB\003\340A\001\022B\n\010user_ids\030" + + "\003 \003(\0132+.google.cloud.recaptchaenterprise" + + ".v1.UserIdB\003\340A\001\"`\n\006UserId\022\024\n\005email\030\001 \001(\t" + + "B\003\340A\001H\000\022\033\n\014phone_number\030\002 \001(\tB\003\340A\001H\000\022\027\n\010" + + "username\030\003 \001(\tB\003\340A\001H\000B\n\n\010id_oneof\"\223\003\n\014Ri" + + "skAnalysis\022\022\n\005score\030\001 \001(\002B\003\340A\003\022\\\n\007reason" + + "s\030\002 \003(\0162F.google.cloud.recaptchaenterpri" + + "se.v1.RiskAnalysis.ClassificationReasonB" + + "\003\340A\003\022%\n\030extended_verdict_reasons\030\003 \003(\tB\003" + + "\340A\003\"\351\001\n\024ClassificationReason\022%\n!CLASSIFI" + + "CATION_REASON_UNSPECIFIED\020\000\022\016\n\nAUTOMATIO" + + "N\020\001\022\032\n\026UNEXPECTED_ENVIRONMENT\020\002\022\024\n\020TOO_M" + + "UCH_TRAFFIC\020\003\022\035\n\031UNEXPECTED_USAGE_PATTER" + + "NS\020\004\022\030\n\024LOW_CONFIDENCE_SCORE\020\005\022\025\n\021SUSPEC" + + "TED_CARDING\020\006\022\030\n\024SUSPECTED_CHARGEBACK\020\007\"" + + "\273\003\n\017TokenProperties\022\022\n\005valid\030\001 \001(\010B\003\340A\003\022" + + "_\n\016invalid_reason\030\002 \001(\0162B.google.cloud.r" + + "ecaptchaenterprise.v1.TokenProperties.In" + + "validReasonB\003\340A\003\0224\n\013create_time\030\003 \001(\0132\032." + + "google.protobuf.TimestampB\003\340A\003\022\025\n\010hostna" + + "me\030\004 \001(\tB\003\340A\003\022!\n\024android_package_name\030\010 " + + "\001(\tB\003\340A\003\022\032\n\rios_bundle_id\030\t \001(\tB\003\340A\003\022\023\n\006" + + "action\030\005 \001(\tB\003\340A\003\"\221\001\n\rInvalidReason\022\036\n\032I" + + "NVALID_REASON_UNSPECIFIED\020\000\022\032\n\026UNKNOWN_I" + + "NVALID_REASON\020\001\022\r\n\tMALFORMED\020\002\022\013\n\007EXPIRE" + + "D\020\003\022\010\n\004DUPE\020\004\022\013\n\007MISSING\020\005\022\021\n\rBROWSER_ER" + + "ROR\020\006\"\263\004\n\031FraudPreventionAssessment\022\035\n\020t" + + "ransaction_risk\030\001 \001(\002B\003\340A\003\022~\n\031stolen_ins" + + "trument_verdict\030\002 \001(\0132V.google.cloud.rec" + + "aptchaenterprise.v1.FraudPreventionAsses" + + "sment.StolenInstrumentVerdictB\003\340A\003\022t\n\024ca" + + "rd_testing_verdict\030\003 \001(\0132Q.google.cloud." + + "recaptchaenterprise.v1.FraudPreventionAs" + + "sessment.CardTestingVerdictB\003\340A\003\022|\n\030beha" + + "vioral_trust_verdict\030\004 \001(\0132U.google.clou" + + "d.recaptchaenterprise.v1.FraudPrevention" + + "Assessment.BehavioralTrustVerdictB\003\340A\003\032," + + "\n\027StolenInstrumentVerdict\022\021\n\004risk\030\001 \001(\002B" + + "\003\340A\003\032\'\n\022CardTestingVerdict\022\021\n\004risk\030\001 \001(\002" + + "B\003\340A\003\032,\n\026BehavioralTrustVerdict\022\022\n\005trust" + + "\030\001 \001(\002B\003\340A\003\"\343\003\n\014FraudSignals\022X\n\014user_sig" + + "nals\030\001 \001(\0132=.google.cloud.recaptchaenter" + + "prise.v1.FraudSignals.UserSignalsB\003\340A\003\022X" + + "\n\014card_signals\030\002 \001(\0132=.google.cloud.reca" + + "ptchaenterprise.v1.FraudSignals.CardSign" + + "alsB\003\340A\003\032P\n\013UserSignals\022$\n\027active_days_l" + + "ower_bound\030\001 \001(\005B\003\340A\003\022\033\n\016synthetic_risk\030" + + "\002 \001(\002B\003\340A\003\032\314\001\n\013CardSignals\022a\n\013card_label" + + "s\030\001 \003(\0162G.google.cloud.recaptchaenterpri" + + "se.v1.FraudSignals.CardSignals.CardLabel" + + "B\003\340A\003\"Z\n\tCardLabel\022\032\n\026CARD_LABEL_UNSPECI" + + "FIED\020\000\022\013\n\007PREPAID\020\001\022\013\n\007VIRTUAL\020\002\022\027\n\023UNEX" + + "PECTED_LOCATION\020\003\"\342\001\n\023SmsTollFraudVerdic" + + "t\022\021\n\004risk\030\001 \001(\002B\003\340A\003\022a\n\007reasons\030\002 \003(\0162K." + + "google.cloud.recaptchaenterprise.v1.SmsT" + + "ollFraudVerdict.SmsTollFraudReasonB\003\340A\003\"" + + "U\n\022SmsTollFraudReason\022%\n!SMS_TOLL_FRAUD_" + + "REASON_UNSPECIFIED\020\000\022\030\n\024INVALID_PHONE_NU" + + "MBER\020\001\"u\n\024PhoneFraudAssessment\022]\n\026sms_to" + + "ll_fraud_verdict\030\001 \001(\01328.google.cloud.re" + + "captchaenterprise.v1.SmsTollFraudVerdict" + + "B\003\340A\003\"\273\002\n\031AccountDefenderAssessment\022h\n\006l" + + "abels\030\001 \003(\0162S.google.cloud.recaptchaente" + + "rprise.v1.AccountDefenderAssessment.Acco" + + "untDefenderLabelB\003\340A\003\"\263\001\n\024AccountDefende" + + "rLabel\022&\n\"ACCOUNT_DEFENDER_LABEL_UNSPECI" + + "FIED\020\000\022\021\n\rPROFILE_MATCH\020\001\022\035\n\031SUSPICIOUS_" + + "LOGIN_ACTIVITY\020\002\022\037\n\033SUSPICIOUS_ACCOUNT_C" + + "REATION\020\003\022 \n\034RELATED_ACCOUNTS_NUMBER_HIG" + + "H\020\004\"\223\001\n\020CreateKeyRequest\022C\n\006parent\030\001 \001(\t" + + "B3\340A\002\372A-\n+cloudresourcemanager.googleapi" + + "s.com/Project\022:\n\003key\030\002 \001(\0132(.google.clou" + + "d.recaptchaenterprise.v1.KeyB\003\340A\002\"\207\001\n\017Li" + + "stKeysRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+c" + + "loudresourcemanager.googleapis.com/Proje" + + "ct\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token" + + "\030\003 \001(\tB\003\340A\001\"c\n\020ListKeysResponse\0226\n\004keys\030" + + "\001 \003(\0132(.google.cloud.recaptchaenterprise" + + ".v1.Key\022\027\n\017next_page_token\030\002 \001(\t\"]\n\036Retr" + + "ieveLegacySecretKeyRequest\022;\n\003key\030\001 \001(\tB" + + ".\340A\002\372A(\n&recaptchaenterprise.googleapis." + + "com/Key\"M\n\rGetKeyRequest\022<\n\004name\030\001 \001(\tB." + + "\340A\002\372A(\n&recaptchaenterprise.googleapis.c" + + "om/Key\"\204\001\n\020UpdateKeyRequest\022:\n\003key\030\001 \001(\013" + + "2(.google.cloud.recaptchaenterprise.v1.K" + + "eyB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.pr" + + "otobuf.FieldMaskB\003\340A\001\"P\n\020DeleteKeyReques" + + "t\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&recaptchaenterp" + + "rise.googleapis.com/Key\"\265\001\n\033CreateFirewa" + + "llPolicyRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n" + + "+cloudresourcemanager.googleapis.com/Pro" + + "ject\022Q\n\017firewall_policy\030\002 \001(\01323.google.c" + + "loud.recaptchaenterprise.v1.FirewallPoli" + + "cyB\003\340A\002\"\223\001\n\033ListFirewallPoliciesRequest\022" + + "C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcema" + + "nager.googleapis.com/Project\022\026\n\tpage_siz" + + "e\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"\207\001" + + "\n\034ListFirewallPoliciesResponse\022N\n\021firewa" + + "ll_policies\030\001 \003(\01323.google.cloud.recaptc" + + "haenterprise.v1.FirewallPolicy\022\027\n\017next_p" + + "age_token\030\002 \001(\t\"c\n\030GetFirewallPolicyRequ" + + "est\022G\n\004name\030\001 \001(\tB9\340A\002\372A3\n1recaptchaente" + + "rprise.googleapis.com/FirewallPolicy\"\246\001\n" + + "\033UpdateFirewallPolicyRequest\022Q\n\017firewall" + + "_policy\030\001 \001(\01323.google.cloud.recaptchaen" + + "terprise.v1.FirewallPolicyB\003\340A\002\0224\n\013updat" + + "e_mask\030\002 \001(\0132\032.google.protobuf.FieldMask" + + "B\003\340A\001\"f\n\033DeleteFirewallPolicyRequest\022G\n\004" + + "name\030\001 \001(\tB9\340A\002\372A3\n1recaptchaenterprise." + + "googleapis.com/FirewallPolicy\"\257\001\n\036Reorde" + + "rFirewallPoliciesRequest\022C\n\006parent\030\001 \001(\t" + + "B3\340A\002\372A-\n+cloudresourcemanager.googleapi" + + "s.com/Project\022H\n\005names\030\002 \003(\tB9\340A\002\372A3\n1re" + + "captchaenterprise.googleapis.com/Firewal" + + "lPolicy\"!\n\037ReorderFirewallPoliciesRespon" + + "se\"r\n\021MigrateKeyRequest\022<\n\004name\030\001 \001(\tB.\340" + + "A\002\372A(\n&recaptchaenterprise.googleapis.co" + + "m/Key\022\037\n\022skip_billing_check\030\002 \001(\010B\003\340A\001\"U" + + "\n\021GetMetricsRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A" + + ",\n*recaptchaenterprise.googleapis.com/Me" + + "trics\"\325\002\n\007Metrics\022\024\n\004name\030\004 \001(\tB\006\340A\010\340A\003\022" + + ".\n\nstart_time\030\001 \001(\0132\032.google.protobuf.Ti" + + "mestamp\022H\n\rscore_metrics\030\002 \003(\01321.google." + + "cloud.recaptchaenterprise.v1.ScoreMetric" + + "s\022P\n\021challenge_metrics\030\003 \003(\01325.google.cl" + + "oud.recaptchaenterprise.v1.ChallengeMetr" + + "ics:h\352Ae\n*recaptchaenterprise.googleapis" + + ".com/Metrics\022%projects/{project}/keys/{k" + + "ey}/metrics*\007metrics2\007metrics\"<\n\037Retriev" + + "eLegacySecretKeyResponse\022\031\n\021legacy_secre" + + "t_key\030\001 \001(\t\"\336\005\n\003Key\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\031" + + "\n\014display_name\030\002 \001(\tB\003\340A\002\022K\n\014web_setting" + + "s\030\003 \001(\01323.google.cloud.recaptchaenterpri" + + "se.v1.WebKeySettingsH\000\022S\n\020android_settin" + + "gs\030\004 \001(\01327.google.cloud.recaptchaenterpr" + + "ise.v1.AndroidKeySettingsH\000\022K\n\014ios_setti" + + "ngs\030\005 \001(\01323.google.cloud.recaptchaenterp" + + "rise.v1.IOSKeySettingsH\000\022I\n\006labels\030\006 \003(\013" + + "24.google.cloud.recaptchaenterprise.v1.K" + + "ey.LabelsEntryB\003\340A\001\0224\n\013create_time\030\007 \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003\022Q\n\017tes" + + "ting_options\030\t \001(\01323.google.cloud.recapt" + + "chaenterprise.v1.TestingOptionsB\003\340A\001\022K\n\014" + + "waf_settings\030\n \001(\01320.google.cloud.recapt" + + "chaenterprise.v1.WafSettingsB\003\340A\001\032-\n\013Lab" + + "elsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + + ":U\352AR\n&recaptchaenterprise.googleapis.co" + + "m/Key\022\035projects/{project}/keys/{key}*\004ke" + + "ys2\003keyB\023\n\021platform_settings\"\362\001\n\016Testing" + + "Options\022\032\n\rtesting_score\030\001 \001(\002B\003\340A\001\022d\n\021t" + + "esting_challenge\030\002 \001(\0162D.google.cloud.re" + + "captchaenterprise.v1.TestingOptions.Test" + + "ingChallengeB\003\340A\001\"^\n\020TestingChallenge\022!\n" + + "\035TESTING_CHALLENGE_UNSPECIFIED\020\000\022\r\n\tNOCA" + + "PTCHA\020\001\022\030\n\024UNSOLVABLE_CHALLENGE\020\002\"\244\004\n\016We" + + "bKeySettings\022\036\n\021allow_all_domains\030\003 \001(\010B" + + "\003\340A\001\022\034\n\017allowed_domains\030\001 \003(\tB\003\340A\001\022\036\n\021al" + + "low_amp_traffic\030\002 \001(\010B\003\340A\001\022b\n\020integratio" + + "n_type\030\004 \001(\0162C.google.cloud.recaptchaent" + + "erprise.v1.WebKeySettings.IntegrationTyp" + + "eB\003\340A\002\022{\n\035challenge_security_preference\030" + + "\005 \001(\0162O.google.cloud.recaptchaenterprise" + + ".v1.WebKeySettings.ChallengeSecurityPref" + + "erenceB\003\340A\001\"[\n\017IntegrationType\022 \n\034INTEGR" + + "ATION_TYPE_UNSPECIFIED\020\000\022\t\n\005SCORE\020\001\022\014\n\010C" + + "HECKBOX\020\002\022\r\n\tINVISIBLE\020\003\"v\n\033ChallengeSec" + + "urityPreference\022-\n)CHALLENGE_SECURITY_PR" + + "EFERENCE_UNSPECIFIED\020\000\022\r\n\tUSABILITY\020\001\022\013\n" + + "\007BALANCE\020\002\022\014\n\010SECURITY\020\003\"\226\001\n\022AndroidKeyS" + + "ettings\022$\n\027allow_all_package_names\030\002 \001(\010" + + "B\003\340A\001\022\"\n\025allowed_package_names\030\001 \003(\tB\003\340A" + + "\001\0226\n)support_non_google_app_store_distri" + + "bution\030\003 \001(\010B\003\340A\001\"\254\001\n\016IOSKeySettings\022!\n\024" + + "allow_all_bundle_ids\030\002 \001(\010B\003\340A\001\022\037\n\022allow" + + "ed_bundle_ids\030\001 \003(\tB\003\340A\001\022V\n\022apple_develo" + + "per_id\030\003 \001(\01325.google.cloud.recaptchaent" + + "erprise.v1.AppleDeveloperIdB\003\340A\001\"Z\n\020Appl" + + "eDeveloperId\022\033\n\013private_key\030\001 \001(\tB\006\340A\002\340A" + + "\004\022\023\n\006key_id\030\002 \001(\tB\003\340A\002\022\024\n\007team_id\030\003 \001(\tB" + + "\003\340A\002\"\251\001\n\021ScoreDistribution\022_\n\rscore_buck" + + "ets\030\001 \003(\0132H.google.cloud.recaptchaenterp" + + "rise.v1.ScoreDistribution.ScoreBucketsEn" + + "try\0323\n\021ScoreBucketsEntry\022\013\n\003key\030\001 \001(\005\022\r\n" + + "\005value\030\002 \001(\003:\0028\001\"\253\002\n\014ScoreMetrics\022O\n\017ove" + + "rall_metrics\030\001 \001(\01326.google.cloud.recapt" + + "chaenterprise.v1.ScoreDistribution\022\\\n\016ac" + + "tion_metrics\030\002 \003(\0132D.google.cloud.recapt" + + "chaenterprise.v1.ScoreMetrics.ActionMetr" + + "icsEntry\032l\n\022ActionMetricsEntry\022\013\n\003key\030\001 " + + "\001(\t\022E\n\005value\030\002 \001(\01326.google.cloud.recapt" + + "chaenterprise.v1.ScoreDistribution:\0028\001\"o" + + "\n\020ChallengeMetrics\022\026\n\016pageload_count\030\001 \001" + + "(\003\022\027\n\017nocaptcha_count\030\002 \001(\003\022\024\n\014failed_co" + + "unt\030\003 \001(\003\022\024\n\014passed_count\030\004 \001(\003\"\225\001\n\030Fire" + + "wallPolicyAssessment\022&\n\005error\030\005 \001(\0132\022.go" + + "ogle.rpc.StatusB\003\340A\003\022Q\n\017firewall_policy\030" + + "\010 \001(\01323.google.cloud.recaptchaenterprise" + + ".v1.FirewallPolicyB\003\340A\003\"\202\006\n\016FirewallActi" + + "on\022P\n\005allow\030\001 \001(\0132?.google.cloud.recaptc" + + "haenterprise.v1.FirewallAction.AllowActi" + + "onH\000\022P\n\005block\030\002 \001(\0132?.google.cloud.recap" + + "tchaenterprise.v1.FirewallAction.BlockAc" + + "tionH\000\022t\n\030include_recaptcha_script\030\006 \001(\013" + + "2P.google.cloud.recaptchaenterprise.v1.F" + + "irewallAction.IncludeRecaptchaScriptActi" + + "onH\000\022V\n\010redirect\030\005 \001(\0132B.google.cloud.re" + + "captchaenterprise.v1.FirewallAction.Redi" + + "rectActionH\000\022Z\n\nsubstitute\030\003 \001(\0132D.googl" + + "e.cloud.recaptchaenterprise.v1.FirewallA" + + "ction.SubstituteActionH\000\022Y\n\nset_header\030\004" + + " \001(\0132C.google.cloud.recaptchaenterprise." + + "v1.FirewallAction.SetHeaderActionH\000\032\r\n\013A" + + "llowAction\032\r\n\013BlockAction\032\036\n\034IncludeReca" + + "ptchaScriptAction\032\020\n\016RedirectAction\032%\n\020S" + + "ubstituteAction\022\021\n\004path\030\001 \001(\tB\003\340A\001\0327\n\017Se" + + "tHeaderAction\022\020\n\003key\030\001 \001(\tB\003\340A\001\022\022\n\005value" + + "\030\002 \001(\tB\003\340A\001B\027\n\025firewall_action_oneof\"\305\002\n" + + "\016FirewallPolicy\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\030\n\013de" + + "scription\030\002 \001(\tB\003\340A\001\022\021\n\004path\030\004 \001(\tB\003\340A\001\022" + + "\026\n\tcondition\030\005 \001(\tB\003\340A\001\022I\n\007actions\030\006 \003(\013" + + "23.google.cloud.recaptchaenterprise.v1.F" + + "irewallActionB\003\340A\001:\217\001\352A\213\001\n1recaptchaente" + + "rprise.googleapis.com/FirewallPolicy\0224pr" + + "ojects/{project}/firewallpolicies/{firew" + + "allpolicy}*\020firewallPolicies2\016firewallPo" + + "licy\"\266\001\n)ListRelatedAccountGroupMembersh" + + "ipsRequest\022X\n\006parent\030\001 \001(\tBH\340A\002\372AB\022@reca" + + "ptchaenterprise.googleapis.com/RelatedAc" + + "countGroupMembership\022\026\n\tpage_size\030\002 \001(\005B" + + "\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"\264\001\n*ListRe" + + "latedAccountGroupMembershipsResponse\022m\n!" + + "related_account_group_memberships\030\001 \003(\0132" + + "B.google.cloud.recaptchaenterprise.v1.Re" + + "latedAccountGroupMembership\022\027\n\017next_page" + + "_token\030\002 \001(\t\"\242\001\n\037ListRelatedAccountGroup" + + "sRequest\022N\n\006parent\030\001 \001(\tB>\340A\002\372A8\0226recapt" + + "chaenterprise.googleapis.com/RelatedAcco" + + "untGroup\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage" + + "_token\030\003 \001(\tB\003\340A\001\"\225\001\n ListRelatedAccount" + + "GroupsResponse\022X\n\026related_account_groups" + + "\030\001 \003(\01328.google.cloud.recaptchaenterpris" + + "e.v1.RelatedAccountGroup\022\027\n\017next_page_to" + + "ken\030\002 \001(\t\"\337\001\n+SearchRelatedAccountGroupM", + "embershipsRequest\022D\n\007project\030\001 \001(\tB3\340A\002\372" + + "A-\n+cloudresourcemanager.googleapis.com/" + + "Project\022\027\n\naccount_id\030\005 \001(\tB\003\340A\001\022 \n\021hash" + + "ed_account_id\030\002 \001(\014B\005\030\001\340A\001\022\026\n\tpage_size\030" + + "\003 \001(\005B\003\340A\001\022\027\n\npage_token\030\004 \001(\tB\003\340A\001\"\266\001\n," + + "SearchRelatedAccountGroupMembershipsResp" + + "onse\022m\n!related_account_group_membership" + + "s\030\001 \003(\0132B.google.cloud.recaptchaenterpri" + + "se.v1.RelatedAccountGroupMembership\022\027\n\017n" + + "ext_page_token\030\002 \001(\t\"\310\002\n\035RelatedAccountG" + + "roupMembership\022\024\n\004name\030\001 \001(\tB\006\340A\010\340A\002\022\022\n\n" + + "account_id\030\004 \001(\t\022\035\n\021hashed_account_id\030\002 " + + "\001(\014B\002\030\001:\335\001\352A\331\001\n@recaptchaenterprise.goog" + + "leapis.com/RelatedAccountGroupMembership" + + "\022Vprojects/{project}/relatedaccountgroup" + + "s/{relatedaccountgroup}/memberships/{mem" + + "bership}*\036relatedAccountGroupMemberships" + + "2\035relatedAccountGroupMembership\"\324\001\n\023Rela" + + "tedAccountGroup\022\024\n\004name\030\001 \001(\tB\006\340A\010\340A\002:\246\001" + + "\352A\242\001\n6recaptchaenterprise.googleapis.com" + + "/RelatedAccountGroup\022=projects/{project}" + + "/relatedaccountgroups/{relatedaccountgro" + + "up}*\024relatedAccountGroups2\023relatedAccoun" + + "tGroup\"\373\002\n\013WafSettings\022U\n\013waf_service\030\001 " + + "\001(\0162;.google.cloud.recaptchaenterprise.v" + + "1.WafSettings.WafServiceB\003\340A\002\022U\n\013waf_fea" + + "ture\030\002 \001(\0162;.google.cloud.recaptchaenter" + + "prise.v1.WafSettings.WafFeatureB\003\340A\002\"o\n\n" + + "WafFeature\022\033\n\027WAF_FEATURE_UNSPECIFIED\020\000\022" + + "\022\n\016CHALLENGE_PAGE\020\001\022\021\n\rSESSION_TOKEN\020\002\022\020" + + "\n\014ACTION_TOKEN\020\003\022\013\n\007EXPRESS\020\005\"M\n\nWafServ" + + "ice\022\033\n\027WAF_SERVICE_UNSPECIFIED\020\000\022\006\n\002CA\020\001" + + "\022\n\n\006FASTLY\020\003\022\016\n\nCLOUDFLARE\020\0042\331\037\n\032Recaptc" + + "haEnterpriseService\022\316\001\n\020CreateAssessment" + + "\022<.google.cloud.recaptchaenterprise.v1.C" + + "reateAssessmentRequest\032/.google.cloud.re" + + "captchaenterprise.v1.Assessment\"K\332A\021pare" + + "nt,assessment\202\323\344\223\0021\"#/v1/{parent=project" + + "s/*}/assessments:\nassessment\022\340\001\n\022Annotat" + + "eAssessment\022>.google.cloud.recaptchaente" + + "rprise.v1.AnnotateAssessmentRequest\032?.go" + + "ogle.cloud.recaptchaenterprise.v1.Annota" + + "teAssessmentResponse\"I\332A\017name,annotation" + + "\202\323\344\223\0021\",/v1/{name=projects/*/assessments" + + "/*}:annotate:\001*\022\244\001\n\tCreateKey\0225.google.c" + + "loud.recaptchaenterprise.v1.CreateKeyReq" + + "uest\032(.google.cloud.recaptchaenterprise." + + "v1.Key\"6\332A\nparent,key\202\323\344\223\002#\"\034/v1/{parent" + + "=projects/*}/keys:\003key\022\246\001\n\010ListKeys\0224.go" + + "ogle.cloud.recaptchaenterprise.v1.ListKe" + + "ysRequest\0325.google.cloud.recaptchaenterp" + + "rise.v1.ListKeysResponse\"-\332A\006parent\202\323\344\223\002" + + "\036\022\034/v1/{parent=projects/*}/keys\022\347\001\n\027Retr" + + "ieveLegacySecretKey\022C.google.cloud.recap" + + "tchaenterprise.v1.RetrieveLegacySecretKe" + + "yRequest\032D.google.cloud.recaptchaenterpr" + + "ise.v1.RetrieveLegacySecretKeyResponse\"A" + + "\332A\003key\202\323\344\223\0025\0223/v1/{key=projects/*/keys/*" + + "}:retrieveLegacySecretKey\022\223\001\n\006GetKey\0222.g" + + "oogle.cloud.recaptchaenterprise.v1.GetKe" + + "yRequest\032(.google.cloud.recaptchaenterpr" + + "ise.v1.Key\"+\332A\004name\202\323\344\223\002\036\022\034/v1/{name=pro" + + "jects/*/keys/*}\022\255\001\n\tUpdateKey\0225.google.c" + + "loud.recaptchaenterprise.v1.UpdateKeyReq" + "uest\032(.google.cloud.recaptchaenterprise." - + "v1.Key\"+\332A\004name\202\323\344\223\002\036\022\034/v1/{name=project" - + "s/*/keys/*}\022\255\001\n\tUpdateKey\0225.google.cloud" - + ".recaptchaenterprise.v1.UpdateKeyRequest" + + "v1.Key\"?\332A\017key,update_mask\202\323\344\223\002\'2 /v1/{k" + + "ey.name=projects/*/keys/*}:\003key\022\207\001\n\tDele" + + "teKey\0225.google.cloud.recaptchaenterprise" + + ".v1.DeleteKeyRequest\032\026.google.protobuf.E" + + "mpty\"+\332A\004name\202\323\344\223\002\036*\034/v1/{name=projects/" + + "*/keys/*}\022\237\001\n\nMigrateKey\0226.google.cloud." + + "recaptchaenterprise.v1.MigrateKeyRequest" + "\032(.google.cloud.recaptchaenterprise.v1.K" - + "ey\"?\332A\017key,update_mask\202\323\344\223\002\'2 /v1/{key.n" - + "ame=projects/*/keys/*}:\003key\022\207\001\n\tDeleteKe" - + "y\0225.google.cloud.recaptchaenterprise.v1." - + "DeleteKeyRequest\032\026.google.protobuf.Empty" - + "\"+\332A\004name\202\323\344\223\002\036*\034/v1/{name=projects/*/ke" - + "ys/*}\022\237\001\n\nMigrateKey\0226.google.cloud.reca" - + "ptchaenterprise.v1.MigrateKeyRequest\032(.g" - + "oogle.cloud.recaptchaenterprise.v1.Key\"/" - + "\202\323\344\223\002)\"$/v1/{name=projects/*/keys/*}:mig" - + "rate:\001*\022\247\001\n\nGetMetrics\0226.google.cloud.re" - + "captchaenterprise.v1.GetMetricsRequest\032," - + ".google.cloud.recaptchaenterprise.v1.Met" - + "rics\"3\332A\004name\202\323\344\223\002&\022$/v1/{name=projects/" - + "*/keys/*/metrics}\022\351\001\n\024CreateFirewallPoli" - + "cy\022@.google.cloud.recaptchaenterprise.v1" - + ".CreateFirewallPolicyRequest\0323.google.cl" - + "oud.recaptchaenterprise.v1.FirewallPolic" - + "y\"Z\332A\026parent,firewall_policy\202\323\344\223\002;\"(/v1/" - + "{parent=projects/*}/firewallpolicies:\017fi" - + "rewall_policy\022\326\001\n\024ListFirewallPolicies\022@" - + ".google.cloud.recaptchaenterprise.v1.Lis" - + "tFirewallPoliciesRequest\032A.google.cloud." - + "recaptchaenterprise.v1.ListFirewallPolic" - + "iesResponse\"9\332A\006parent\202\323\344\223\002*\022(/v1/{paren" - + "t=projects/*}/firewallpolicies\022\300\001\n\021GetFi" - + "rewallPolicy\022=.google.cloud.recaptchaent" - + "erprise.v1.GetFirewallPolicyRequest\0323.go" - + "ogle.cloud.recaptchaenterprise.v1.Firewa" - + "llPolicy\"7\332A\004name\202\323\344\223\002*\022(/v1/{name=proje" - + "cts/*/firewallpolicies/*}\022\376\001\n\024UpdateFire" - + "wallPolicy\022@.google.cloud.recaptchaenter" - + "prise.v1.UpdateFirewallPolicyRequest\0323.g" - + "oogle.cloud.recaptchaenterprise.v1.Firew" - + "allPolicy\"o\332A\033firewall_policy,update_mas" - + "k\202\323\344\223\002K28/v1/{firewall_policy.name=proje" - + "cts/*/firewallpolicies/*}:\017firewall_poli" - + "cy\022\251\001\n\024DeleteFirewallPolicy\022@.google.clo" - + "ud.recaptchaenterprise.v1.DeleteFirewall" - + "PolicyRequest\032\026.google.protobuf.Empty\"7\332" - + "A\004name\202\323\344\223\002**(/v1/{name=projects/*/firew" - + "allpolicies/*}\022\360\001\n\027ReorderFirewallPolici" - + "es\022C.google.cloud.recaptchaenterprise.v1" - + ".ReorderFirewallPoliciesRequest\032D.google" - + ".cloud.recaptchaenterprise.v1.ReorderFir" - + "ewallPoliciesResponse\"J\332A\014parent,names\202\323" - + "\344\223\0025\"0/v1/{parent=projects/*}/firewallpo" - + "licies:reorder:\001*\022\346\001\n\030ListRelatedAccount" - + "Groups\022D.google.cloud.recaptchaenterpris" - + "e.v1.ListRelatedAccountGroupsRequest\032E.g" - + "oogle.cloud.recaptchaenterprise.v1.ListR" - + "elatedAccountGroupsResponse\"=\332A\006parent\202\323" - + "\344\223\002.\022,/v1/{parent=projects/*}/relatedacc" - + "ountgroups\022\222\002\n\"ListRelatedAccountGroupMe" - + "mberships\022N.google.cloud.recaptchaenterp" - + "rise.v1.ListRelatedAccountGroupMembershi" - + "psRequest\032O.google.cloud.recaptchaenterp" - + "rise.v1.ListRelatedAccountGroupMembershi" - + "psResponse\"K\332A\006parent\202\323\344\223\002<\022:/v1/{parent" - + "=projects/*/relatedaccountgroups/*}/memb" - + "erships\022\262\002\n$SearchRelatedAccountGroupMem" - + "berships\022P.google.cloud.recaptchaenterpr" - + "ise.v1.SearchRelatedAccountGroupMembersh" - + "ipsRequest\032Q.google.cloud.recaptchaenter" - + "prise.v1.SearchRelatedAccountGroupMember" - + "shipsResponse\"e\332A\031project,hashed_account" - + "_id\202\323\344\223\002C\">/v1/{project=projects/*}/rela" - + "tedaccountgroupmemberships:search:\001*\032V\312A" - + "\"recaptchaenterprise.googleapis.com\322A.ht" - + "tps://www.googleapis.com/auth/cloud-plat" - + "formB\231\002\n!com.google.recaptchaenterprise." - + "v1B\030RecaptchaEnterpriseProtoP\001Z\\cloud.go" - + "ogle.com/go/recaptchaenterprise/v2/apiv1" - + "/recaptchaenterprisepb;recaptchaenterpri" - + "sepb\242\002\004GCRE\252\002#Google.Cloud.RecaptchaEnte" - + "rprise.V1\312\002#Google\\Cloud\\RecaptchaEnterp" - + "rise\\V1\352\002&Google::Cloud::RecaptchaEnterp" - + "rise::V1b\006proto3" + + "ey\"/\202\323\344\223\002)\"$/v1/{name=projects/*/keys/*}" + + ":migrate:\001*\022\247\001\n\nGetMetrics\0226.google.clou" + + "d.recaptchaenterprise.v1.GetMetricsReque" + + "st\032,.google.cloud.recaptchaenterprise.v1" + + ".Metrics\"3\332A\004name\202\323\344\223\002&\022$/v1/{name=proje" + + "cts/*/keys/*/metrics}\022\351\001\n\024CreateFirewall" + + "Policy\022@.google.cloud.recaptchaenterpris" + + "e.v1.CreateFirewallPolicyRequest\0323.googl" + + "e.cloud.recaptchaenterprise.v1.FirewallP" + + "olicy\"Z\332A\026parent,firewall_policy\202\323\344\223\002;\"(" + + "/v1/{parent=projects/*}/firewallpolicies" + + ":\017firewall_policy\022\326\001\n\024ListFirewallPolici" + + "es\022@.google.cloud.recaptchaenterprise.v1" + + ".ListFirewallPoliciesRequest\032A.google.cl" + + "oud.recaptchaenterprise.v1.ListFirewallP" + + "oliciesResponse\"9\332A\006parent\202\323\344\223\002*\022(/v1/{p" + + "arent=projects/*}/firewallpolicies\022\300\001\n\021G" + + "etFirewallPolicy\022=.google.cloud.recaptch" + + "aenterprise.v1.GetFirewallPolicyRequest\032" + + "3.google.cloud.recaptchaenterprise.v1.Fi" + + "rewallPolicy\"7\332A\004name\202\323\344\223\002*\022(/v1/{name=p" + + "rojects/*/firewallpolicies/*}\022\376\001\n\024Update" + + "FirewallPolicy\022@.google.cloud.recaptchae" + + "nterprise.v1.UpdateFirewallPolicyRequest" + + "\0323.google.cloud.recaptchaenterprise.v1.F" + + "irewallPolicy\"o\332A\033firewall_policy,update" + + "_mask\202\323\344\223\002K28/v1/{firewall_policy.name=p" + + "rojects/*/firewallpolicies/*}:\017firewall_" + + "policy\022\251\001\n\024DeleteFirewallPolicy\022@.google" + + ".cloud.recaptchaenterprise.v1.DeleteFire" + + "wallPolicyRequest\032\026.google.protobuf.Empt" + + "y\"7\332A\004name\202\323\344\223\002**(/v1/{name=projects/*/f" + + "irewallpolicies/*}\022\360\001\n\027ReorderFirewallPo" + + "licies\022C.google.cloud.recaptchaenterpris" + + "e.v1.ReorderFirewallPoliciesRequest\032D.go" + + "ogle.cloud.recaptchaenterprise.v1.Reorde" + + "rFirewallPoliciesResponse\"J\332A\014parent,nam" + + "es\202\323\344\223\0025\"0/v1/{parent=projects/*}/firewa" + + "llpolicies:reorder:\001*\022\346\001\n\030ListRelatedAcc" + + "ountGroups\022D.google.cloud.recaptchaenter" + + "prise.v1.ListRelatedAccountGroupsRequest" + + "\032E.google.cloud.recaptchaenterprise.v1.L" + + "istRelatedAccountGroupsResponse\"=\332A\006pare" + + "nt\202\323\344\223\002.\022,/v1/{parent=projects/*}/relate" + + "daccountgroups\022\222\002\n\"ListRelatedAccountGro" + + "upMemberships\022N.google.cloud.recaptchaen" + + "terprise.v1.ListRelatedAccountGroupMembe" + + "rshipsRequest\032O.google.cloud.recaptchaen" + + "terprise.v1.ListRelatedAccountGroupMembe" + + "rshipsResponse\"K\332A\006parent\202\323\344\223\002<\022:/v1/{pa" + + "rent=projects/*/relatedaccountgroups/*}/" + + "memberships\022\262\002\n$SearchRelatedAccountGrou" + + "pMemberships\022P.google.cloud.recaptchaent" + + "erprise.v1.SearchRelatedAccountGroupMemb" + + "ershipsRequest\032Q.google.cloud.recaptchae" + + "nterprise.v1.SearchRelatedAccountGroupMe" + + "mbershipsResponse\"e\332A\031project,hashed_acc" + + "ount_id\202\323\344\223\002C\">/v1/{project=projects/*}/" + + "relatedaccountgroupmemberships:search:\001*" + + "\032V\312A\"recaptchaenterprise.googleapis.com\322" + + "A.https://www.googleapis.com/auth/cloud-" + + "platformB\231\002\n!com.google.recaptchaenterpr" + + "ise.v1B\030RecaptchaEnterpriseProtoP\001Z\\clou" + + "d.google.com/go/recaptchaenterprise/v2/a" + + "piv1/recaptchaenterprisepb;recaptchaente" + + "rprisepb\242\002\004GCRE\252\002#Google.Cloud.Recaptcha" + + "Enterprise.V1\312\002#Google\\Cloud\\RecaptchaEn" + + "terprise\\V1\352\002&Google::Cloud::RecaptchaEn" + + "terprise::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -956,6 +975,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirewallPolicyAssessment", "FraudPreventionAssessment", "FraudSignals", + "PhoneFraudAssessment", }); internal_static_google_cloud_recaptchaenterprise_v1_Event_descriptor = getDescriptor().getMessageTypes().get(8); @@ -1146,8 +1166,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "CardLabels", }); - internal_static_google_cloud_recaptchaenterprise_v1_AccountDefenderAssessment_descriptor = + internal_static_google_cloud_recaptchaenterprise_v1_SmsTollFraudVerdict_descriptor = getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_recaptchaenterprise_v1_SmsTollFraudVerdict_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_SmsTollFraudVerdict_descriptor, + new java.lang.String[] { + "Risk", "Reasons", + }); + internal_static_google_cloud_recaptchaenterprise_v1_PhoneFraudAssessment_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_recaptchaenterprise_v1_PhoneFraudAssessment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_PhoneFraudAssessment_descriptor, + new java.lang.String[] { + "SmsTollFraudVerdict", + }); + internal_static_google_cloud_recaptchaenterprise_v1_AccountDefenderAssessment_descriptor = + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_recaptchaenterprise_v1_AccountDefenderAssessment_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_AccountDefenderAssessment_descriptor, @@ -1155,7 +1191,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Labels", }); internal_static_google_cloud_recaptchaenterprise_v1_CreateKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_recaptchaenterprise_v1_CreateKeyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_CreateKeyRequest_descriptor, @@ -1163,7 +1199,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Key", }); internal_static_google_cloud_recaptchaenterprise_v1_ListKeysRequest_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_recaptchaenterprise_v1_ListKeysRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_ListKeysRequest_descriptor, @@ -1171,7 +1207,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_cloud_recaptchaenterprise_v1_ListKeysResponse_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_recaptchaenterprise_v1_ListKeysResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_ListKeysResponse_descriptor, @@ -1179,7 +1215,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Keys", "NextPageToken", }); internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyRequest_descriptor, @@ -1187,7 +1223,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", }); internal_static_google_cloud_recaptchaenterprise_v1_GetKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_recaptchaenterprise_v1_GetKeyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_GetKeyRequest_descriptor, @@ -1195,7 +1231,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_recaptchaenterprise_v1_UpdateKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_recaptchaenterprise_v1_UpdateKeyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_UpdateKeyRequest_descriptor, @@ -1203,7 +1239,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "UpdateMask", }); internal_static_google_cloud_recaptchaenterprise_v1_DeleteKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_recaptchaenterprise_v1_DeleteKeyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_DeleteKeyRequest_descriptor, @@ -1211,7 +1247,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_recaptchaenterprise_v1_CreateFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_recaptchaenterprise_v1_CreateFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_CreateFirewallPolicyRequest_descriptor, @@ -1219,7 +1255,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "FirewallPolicy", }); internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesRequest_descriptor, @@ -1227,7 +1263,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesResponse_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(28); internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_ListFirewallPoliciesResponse_descriptor, @@ -1235,7 +1271,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirewallPolicies", "NextPageToken", }); internal_static_google_cloud_recaptchaenterprise_v1_GetFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(29); internal_static_google_cloud_recaptchaenterprise_v1_GetFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_GetFirewallPolicyRequest_descriptor, @@ -1243,7 +1279,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_recaptchaenterprise_v1_UpdateFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(30); internal_static_google_cloud_recaptchaenterprise_v1_UpdateFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_UpdateFirewallPolicyRequest_descriptor, @@ -1251,7 +1287,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirewallPolicy", "UpdateMask", }); internal_static_google_cloud_recaptchaenterprise_v1_DeleteFirewallPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(31); internal_static_google_cloud_recaptchaenterprise_v1_DeleteFirewallPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_DeleteFirewallPolicyRequest_descriptor, @@ -1259,7 +1295,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_recaptchaenterprise_v1_ReorderFirewallPoliciesRequest_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(32); internal_static_google_cloud_recaptchaenterprise_v1_ReorderFirewallPoliciesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_ReorderFirewallPoliciesRequest_descriptor, @@ -1267,13 +1303,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Names", }); internal_static_google_cloud_recaptchaenterprise_v1_ReorderFirewallPoliciesResponse_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(33); internal_static_google_cloud_recaptchaenterprise_v1_ReorderFirewallPoliciesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_ReorderFirewallPoliciesResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_recaptchaenterprise_v1_MigrateKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(34); internal_static_google_cloud_recaptchaenterprise_v1_MigrateKeyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_MigrateKeyRequest_descriptor, @@ -1281,7 +1317,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "SkipBillingCheck", }); internal_static_google_cloud_recaptchaenterprise_v1_GetMetricsRequest_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(35); internal_static_google_cloud_recaptchaenterprise_v1_GetMetricsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_GetMetricsRequest_descriptor, @@ -1289,7 +1325,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_recaptchaenterprise_v1_Metrics_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(36); internal_static_google_cloud_recaptchaenterprise_v1_Metrics_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_Metrics_descriptor, @@ -1297,7 +1333,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "StartTime", "ScoreMetrics", "ChallengeMetrics", }); internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyResponse_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(37); internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_RetrieveLegacySecretKeyResponse_descriptor, @@ -1305,7 +1341,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LegacySecretKey", }); internal_static_google_cloud_recaptchaenterprise_v1_Key_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(38); internal_static_google_cloud_recaptchaenterprise_v1_Key_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_Key_descriptor, @@ -1330,7 +1366,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_recaptchaenterprise_v1_TestingOptions_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(39); internal_static_google_cloud_recaptchaenterprise_v1_TestingOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_TestingOptions_descriptor, @@ -1338,7 +1374,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TestingScore", "TestingChallenge", }); internal_static_google_cloud_recaptchaenterprise_v1_WebKeySettings_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(40); internal_static_google_cloud_recaptchaenterprise_v1_WebKeySettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_WebKeySettings_descriptor, @@ -1350,7 +1386,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ChallengeSecurityPreference", }); internal_static_google_cloud_recaptchaenterprise_v1_AndroidKeySettings_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageTypes().get(41); internal_static_google_cloud_recaptchaenterprise_v1_AndroidKeySettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_AndroidKeySettings_descriptor, @@ -1358,7 +1394,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AllowAllPackageNames", "AllowedPackageNames", "SupportNonGoogleAppStoreDistribution", }); internal_static_google_cloud_recaptchaenterprise_v1_IOSKeySettings_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageTypes().get(42); internal_static_google_cloud_recaptchaenterprise_v1_IOSKeySettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_IOSKeySettings_descriptor, @@ -1366,7 +1402,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AllowAllBundleIds", "AllowedBundleIds", "AppleDeveloperId", }); internal_static_google_cloud_recaptchaenterprise_v1_AppleDeveloperId_descriptor = - getDescriptor().getMessageTypes().get(41); + getDescriptor().getMessageTypes().get(43); internal_static_google_cloud_recaptchaenterprise_v1_AppleDeveloperId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_AppleDeveloperId_descriptor, @@ -1374,7 +1410,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PrivateKey", "KeyId", "TeamId", }); internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_descriptor = - getDescriptor().getMessageTypes().get(42); + getDescriptor().getMessageTypes().get(44); internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_ScoreDistribution_descriptor, @@ -1392,7 +1428,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_descriptor = - getDescriptor().getMessageTypes().get(43); + getDescriptor().getMessageTypes().get(45); internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_ScoreMetrics_descriptor, @@ -1410,7 +1446,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_recaptchaenterprise_v1_ChallengeMetrics_descriptor = - getDescriptor().getMessageTypes().get(44); + getDescriptor().getMessageTypes().get(46); internal_static_google_cloud_recaptchaenterprise_v1_ChallengeMetrics_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_ChallengeMetrics_descriptor, @@ -1418,7 +1454,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PageloadCount", "NocaptchaCount", "FailedCount", "PassedCount", }); internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicyAssessment_descriptor = - getDescriptor().getMessageTypes().get(45); + getDescriptor().getMessageTypes().get(47); internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicyAssessment_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicyAssessment_descriptor, @@ -1426,7 +1462,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Error", "FirewallPolicy", }); internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_descriptor = - getDescriptor().getMessageTypes().get(46); + getDescriptor().getMessageTypes().get(48); internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_descriptor, @@ -1492,7 +1528,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicy_descriptor = - getDescriptor().getMessageTypes().get(47); + getDescriptor().getMessageTypes().get(49); internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_FirewallPolicy_descriptor, @@ -1500,7 +1536,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Description", "Path", "Condition", "Actions", }); internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsRequest_descriptor = - getDescriptor().getMessageTypes().get(48); + getDescriptor().getMessageTypes().get(50); internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsRequest_descriptor, @@ -1508,7 +1544,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsResponse_descriptor = - getDescriptor().getMessageTypes().get(49); + getDescriptor().getMessageTypes().get(51); internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupMembershipsResponse_descriptor, @@ -1516,7 +1552,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RelatedAccountGroupMemberships", "NextPageToken", }); internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsRequest_descriptor = - getDescriptor().getMessageTypes().get(50); + getDescriptor().getMessageTypes().get(52); internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsRequest_descriptor, @@ -1524,7 +1560,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsResponse_descriptor = - getDescriptor().getMessageTypes().get(51); + getDescriptor().getMessageTypes().get(53); internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_ListRelatedAccountGroupsResponse_descriptor, @@ -1532,7 +1568,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RelatedAccountGroups", "NextPageToken", }); internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsRequest_descriptor = - getDescriptor().getMessageTypes().get(52); + getDescriptor().getMessageTypes().get(54); internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsRequest_descriptor, @@ -1540,7 +1576,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Project", "AccountId", "HashedAccountId", "PageSize", "PageToken", }); internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsResponse_descriptor = - getDescriptor().getMessageTypes().get(53); + getDescriptor().getMessageTypes().get(55); internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_SearchRelatedAccountGroupMembershipsResponse_descriptor, @@ -1548,7 +1584,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RelatedAccountGroupMemberships", "NextPageToken", }); internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroupMembership_descriptor = - getDescriptor().getMessageTypes().get(54); + getDescriptor().getMessageTypes().get(56); internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroupMembership_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroupMembership_descriptor, @@ -1556,7 +1592,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "AccountId", "HashedAccountId", }); internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroup_descriptor = - getDescriptor().getMessageTypes().get(55); + getDescriptor().getMessageTypes().get(57); internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_RelatedAccountGroup_descriptor, @@ -1564,7 +1600,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_recaptchaenterprise_v1_WafSettings_descriptor = - getDescriptor().getMessageTypes().get(56); + getDescriptor().getMessageTypes().get(58); internal_static_google_cloud_recaptchaenterprise_v1_WafSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_WafSettings_descriptor, diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembership.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembership.java index 798be0705cd0..f4d8242092f7 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembership.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembership.java @@ -192,7 +192,7 @@ public com.google.protobuf.ByteString getAccountIdBytes() { * bytes hashed_account_id = 2 [deprecated = true]; * * @deprecated google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership.hashed_account_id - * is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1913 + * is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1946 * @return The hashedAccountId. */ @java.lang.Override @@ -846,7 +846,7 @@ public Builder setAccountIdBytes(com.google.protobuf.ByteString value) { * * @deprecated * google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership.hashed_account_id is - * deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1913 + * deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1946 * @return The hashedAccountId. */ @java.lang.Override @@ -868,7 +868,7 @@ public com.google.protobuf.ByteString getHashedAccountId() { * * @deprecated * google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership.hashed_account_id is - * deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1913 + * deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1946 * @param value The hashedAccountId to set. * @return This builder for chaining. */ @@ -896,7 +896,7 @@ public Builder setHashedAccountId(com.google.protobuf.ByteString value) { * * @deprecated * google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership.hashed_account_id is - * deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1913 + * deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1946 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembershipOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembershipOrBuilder.java index a2bc3cefc347..3bf1e0dadbb3 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembershipOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembershipOrBuilder.java @@ -97,7 +97,7 @@ public interface RelatedAccountGroupMembershipOrBuilder * bytes hashed_account_id = 2 [deprecated = true]; * * @deprecated google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership.hashed_account_id - * is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1913 + * is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1946 * @return The hashedAccountId. */ @java.lang.Deprecated diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsRequest.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsRequest.java index 564a6d5046b5..a60276b187bc 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsRequest.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsRequest.java @@ -204,7 +204,7 @@ public com.google.protobuf.ByteString getAccountIdBytes() { * * @deprecated * google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest.hashed_account_id - * is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1860 + * is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1893 * @return The hashedAccountId. */ @java.lang.Override @@ -1016,7 +1016,7 @@ public Builder setAccountIdBytes(com.google.protobuf.ByteString value) { * * @deprecated * google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest.hashed_account_id - * is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1860 + * is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1893 * @return The hashedAccountId. */ @java.lang.Override @@ -1041,7 +1041,7 @@ public com.google.protobuf.ByteString getHashedAccountId() { * * @deprecated * google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest.hashed_account_id - * is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1860 + * is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1893 * @param value The hashedAccountId to set. * @return This builder for chaining. */ @@ -1072,7 +1072,7 @@ public Builder setHashedAccountId(com.google.protobuf.ByteString value) { * * @deprecated * google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest.hashed_account_id - * is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1860 + * is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1893 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsRequestOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsRequestOrBuilder.java index 45cbfe28661d..3e7f859b3aa5 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsRequestOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsRequestOrBuilder.java @@ -104,7 +104,7 @@ public interface SearchRelatedAccountGroupMembershipsRequestOrBuilder * * @deprecated * google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest.hashed_account_id - * is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1860 + * is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1893 * @return The hashedAccountId. */ @java.lang.Deprecated diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SmsTollFraudVerdict.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SmsTollFraudVerdict.java new file mode 100644 index 000000000000..3f984f2d2474 --- /dev/null +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SmsTollFraudVerdict.java @@ -0,0 +1,1121 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto + +// Protobuf Java Version: 3.25.3 +package com.google.recaptchaenterprise.v1; + +/** + * + * + *
          + * Information about SMS toll fraud.
          + * 
          + * + * Protobuf type {@code google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict} + */ +public final class SmsTollFraudVerdict extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict) + SmsTollFraudVerdictOrBuilder { + private static final long serialVersionUID = 0L; + // Use SmsTollFraudVerdict.newBuilder() to construct. + private SmsTollFraudVerdict(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SmsTollFraudVerdict() { + reasons_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SmsTollFraudVerdict(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_SmsTollFraudVerdict_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_SmsTollFraudVerdict_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.recaptchaenterprise.v1.SmsTollFraudVerdict.class, + com.google.recaptchaenterprise.v1.SmsTollFraudVerdict.Builder.class); + } + + /** + * + * + *
          +   * Reasons contributing to the SMS toll fraud verdict.
          +   * 
          + * + * Protobuf enum {@code + * google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict.SmsTollFraudReason} + */ + public enum SmsTollFraudReason implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
          +     * Default unspecified reason
          +     * 
          + * + * SMS_TOLL_FRAUD_REASON_UNSPECIFIED = 0; + */ + SMS_TOLL_FRAUD_REASON_UNSPECIFIED(0), + /** + * + * + *
          +     * The provided phone number was invalid
          +     * 
          + * + * INVALID_PHONE_NUMBER = 1; + */ + INVALID_PHONE_NUMBER(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
          +     * Default unspecified reason
          +     * 
          + * + * SMS_TOLL_FRAUD_REASON_UNSPECIFIED = 0; + */ + public static final int SMS_TOLL_FRAUD_REASON_UNSPECIFIED_VALUE = 0; + /** + * + * + *
          +     * The provided phone number was invalid
          +     * 
          + * + * INVALID_PHONE_NUMBER = 1; + */ + public static final int INVALID_PHONE_NUMBER_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SmsTollFraudReason valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static SmsTollFraudReason forNumber(int value) { + switch (value) { + case 0: + return SMS_TOLL_FRAUD_REASON_UNSPECIFIED; + case 1: + return INVALID_PHONE_NUMBER; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SmsTollFraudReason findValueByNumber(int number) { + return SmsTollFraudReason.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.SmsTollFraudVerdict.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final SmsTollFraudReason[] VALUES = values(); + + public static SmsTollFraudReason valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private SmsTollFraudReason(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict.SmsTollFraudReason) + } + + public static final int RISK_FIELD_NUMBER = 1; + private float risk_ = 0F; + /** + * + * + *
          +   * Output only. Probability of an SMS event being fraudulent.
          +   * Values are from 0.0 (lowest) to 1.0 (highest).
          +   * 
          + * + * float risk = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The risk. + */ + @java.lang.Override + public float getRisk() { + return risk_; + } + + public static final int REASONS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List reasons_; + + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, + com.google.recaptchaenterprise.v1.SmsTollFraudVerdict.SmsTollFraudReason> + reasons_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, + com.google.recaptchaenterprise.v1.SmsTollFraudVerdict.SmsTollFraudReason>() { + public com.google.recaptchaenterprise.v1.SmsTollFraudVerdict.SmsTollFraudReason convert( + java.lang.Integer from) { + com.google.recaptchaenterprise.v1.SmsTollFraudVerdict.SmsTollFraudReason result = + com.google.recaptchaenterprise.v1.SmsTollFraudVerdict.SmsTollFraudReason + .forNumber(from); + return result == null + ? com.google.recaptchaenterprise.v1.SmsTollFraudVerdict.SmsTollFraudReason + .UNRECOGNIZED + : result; + } + }; + /** + * + * + *
          +   * Output only. Reasons contributing to the SMS toll fraud verdict.
          +   * 
          + * + * + * repeated .google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict.SmsTollFraudReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the reasons. + */ + @java.lang.Override + public java.util.List + getReasonsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, + com.google.recaptchaenterprise.v1.SmsTollFraudVerdict.SmsTollFraudReason>( + reasons_, reasons_converter_); + } + /** + * + * + *
          +   * Output only. Reasons contributing to the SMS toll fraud verdict.
          +   * 
          + * + * + * repeated .google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict.SmsTollFraudReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of reasons. + */ + @java.lang.Override + public int getReasonsCount() { + return reasons_.size(); + } + /** + * + * + *
          +   * Output only. Reasons contributing to the SMS toll fraud verdict.
          +   * 
          + * + * + * repeated .google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict.SmsTollFraudReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The reasons at the given index. + */ + @java.lang.Override + public com.google.recaptchaenterprise.v1.SmsTollFraudVerdict.SmsTollFraudReason getReasons( + int index) { + return reasons_converter_.convert(reasons_.get(index)); + } + /** + * + * + *
          +   * Output only. Reasons contributing to the SMS toll fraud verdict.
          +   * 
          + * + * + * repeated .google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict.SmsTollFraudReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the enum numeric values on the wire for reasons. + */ + @java.lang.Override + public java.util.List getReasonsValueList() { + return reasons_; + } + /** + * + * + *
          +   * Output only. Reasons contributing to the SMS toll fraud verdict.
          +   * 
          + * + * + * repeated .google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict.SmsTollFraudReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of reasons at the given index. + */ + @java.lang.Override + public int getReasonsValue(int index) { + return reasons_.get(index); + } + + private int reasonsMemoizedSerializedSize; + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (java.lang.Float.floatToRawIntBits(risk_) != 0) { + output.writeFloat(1, risk_); + } + if (getReasonsList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(reasonsMemoizedSerializedSize); + } + for (int i = 0; i < reasons_.size(); i++) { + output.writeEnumNoTag(reasons_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (java.lang.Float.floatToRawIntBits(risk_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, risk_); + } + { + int dataSize = 0; + for (int i = 0; i < reasons_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(reasons_.get(i)); + } + size += dataSize; + if (!getReasonsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + reasonsMemoizedSerializedSize = dataSize; + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.recaptchaenterprise.v1.SmsTollFraudVerdict)) { + return super.equals(obj); + } + com.google.recaptchaenterprise.v1.SmsTollFraudVerdict other = + (com.google.recaptchaenterprise.v1.SmsTollFraudVerdict) obj; + + if (java.lang.Float.floatToIntBits(getRisk()) + != java.lang.Float.floatToIntBits(other.getRisk())) return false; + if (!reasons_.equals(other.reasons_)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RISK_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getRisk()); + if (getReasonsCount() > 0) { + hash = (37 * hash) + REASONS_FIELD_NUMBER; + hash = (53 * hash) + reasons_.hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.recaptchaenterprise.v1.SmsTollFraudVerdict parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.recaptchaenterprise.v1.SmsTollFraudVerdict parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.recaptchaenterprise.v1.SmsTollFraudVerdict parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.recaptchaenterprise.v1.SmsTollFraudVerdict parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.recaptchaenterprise.v1.SmsTollFraudVerdict parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.recaptchaenterprise.v1.SmsTollFraudVerdict parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.recaptchaenterprise.v1.SmsTollFraudVerdict parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.recaptchaenterprise.v1.SmsTollFraudVerdict parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.recaptchaenterprise.v1.SmsTollFraudVerdict parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.recaptchaenterprise.v1.SmsTollFraudVerdict parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.recaptchaenterprise.v1.SmsTollFraudVerdict parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.recaptchaenterprise.v1.SmsTollFraudVerdict parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.recaptchaenterprise.v1.SmsTollFraudVerdict prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * Information about SMS toll fraud.
          +   * 
          + * + * Protobuf type {@code google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict) + com.google.recaptchaenterprise.v1.SmsTollFraudVerdictOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_SmsTollFraudVerdict_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_SmsTollFraudVerdict_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.recaptchaenterprise.v1.SmsTollFraudVerdict.class, + com.google.recaptchaenterprise.v1.SmsTollFraudVerdict.Builder.class); + } + + // Construct using com.google.recaptchaenterprise.v1.SmsTollFraudVerdict.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + risk_ = 0F; + reasons_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_SmsTollFraudVerdict_descriptor; + } + + @java.lang.Override + public com.google.recaptchaenterprise.v1.SmsTollFraudVerdict getDefaultInstanceForType() { + return com.google.recaptchaenterprise.v1.SmsTollFraudVerdict.getDefaultInstance(); + } + + @java.lang.Override + public com.google.recaptchaenterprise.v1.SmsTollFraudVerdict build() { + com.google.recaptchaenterprise.v1.SmsTollFraudVerdict result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.recaptchaenterprise.v1.SmsTollFraudVerdict buildPartial() { + com.google.recaptchaenterprise.v1.SmsTollFraudVerdict result = + new com.google.recaptchaenterprise.v1.SmsTollFraudVerdict(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.recaptchaenterprise.v1.SmsTollFraudVerdict result) { + if (((bitField0_ & 0x00000002) != 0)) { + reasons_ = java.util.Collections.unmodifiableList(reasons_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.reasons_ = reasons_; + } + + private void buildPartial0(com.google.recaptchaenterprise.v1.SmsTollFraudVerdict result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.risk_ = risk_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.recaptchaenterprise.v1.SmsTollFraudVerdict) { + return mergeFrom((com.google.recaptchaenterprise.v1.SmsTollFraudVerdict) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.recaptchaenterprise.v1.SmsTollFraudVerdict other) { + if (other == com.google.recaptchaenterprise.v1.SmsTollFraudVerdict.getDefaultInstance()) + return this; + if (other.getRisk() != 0F) { + setRisk(other.getRisk()); + } + if (!other.reasons_.isEmpty()) { + if (reasons_.isEmpty()) { + reasons_ = other.reasons_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureReasonsIsMutable(); + reasons_.addAll(other.reasons_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 13: + { + risk_ = input.readFloat(); + bitField0_ |= 0x00000001; + break; + } // case 13 + case 16: + { + int tmpRaw = input.readEnum(); + ensureReasonsIsMutable(); + reasons_.add(tmpRaw); + break; + } // case 16 + case 18: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureReasonsIsMutable(); + reasons_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private float risk_; + /** + * + * + *
          +     * Output only. Probability of an SMS event being fraudulent.
          +     * Values are from 0.0 (lowest) to 1.0 (highest).
          +     * 
          + * + * float risk = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The risk. + */ + @java.lang.Override + public float getRisk() { + return risk_; + } + /** + * + * + *
          +     * Output only. Probability of an SMS event being fraudulent.
          +     * Values are from 0.0 (lowest) to 1.0 (highest).
          +     * 
          + * + * float risk = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The risk to set. + * @return This builder for chaining. + */ + public Builder setRisk(float value) { + + risk_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Probability of an SMS event being fraudulent.
          +     * Values are from 0.0 (lowest) to 1.0 (highest).
          +     * 
          + * + * float risk = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRisk() { + bitField0_ = (bitField0_ & ~0x00000001); + risk_ = 0F; + onChanged(); + return this; + } + + private java.util.List reasons_ = java.util.Collections.emptyList(); + + private void ensureReasonsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + reasons_ = new java.util.ArrayList(reasons_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
          +     * Output only. Reasons contributing to the SMS toll fraud verdict.
          +     * 
          + * + * + * repeated .google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict.SmsTollFraudReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the reasons. + */ + public java.util.List + getReasonsList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, + com.google.recaptchaenterprise.v1.SmsTollFraudVerdict.SmsTollFraudReason>( + reasons_, reasons_converter_); + } + /** + * + * + *
          +     * Output only. Reasons contributing to the SMS toll fraud verdict.
          +     * 
          + * + * + * repeated .google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict.SmsTollFraudReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of reasons. + */ + public int getReasonsCount() { + return reasons_.size(); + } + /** + * + * + *
          +     * Output only. Reasons contributing to the SMS toll fraud verdict.
          +     * 
          + * + * + * repeated .google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict.SmsTollFraudReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The reasons at the given index. + */ + public com.google.recaptchaenterprise.v1.SmsTollFraudVerdict.SmsTollFraudReason getReasons( + int index) { + return reasons_converter_.convert(reasons_.get(index)); + } + /** + * + * + *
          +     * Output only. Reasons contributing to the SMS toll fraud verdict.
          +     * 
          + * + * + * repeated .google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict.SmsTollFraudReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The reasons to set. + * @return This builder for chaining. + */ + public Builder setReasons( + int index, com.google.recaptchaenterprise.v1.SmsTollFraudVerdict.SmsTollFraudReason value) { + if (value == null) { + throw new NullPointerException(); + } + ensureReasonsIsMutable(); + reasons_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Reasons contributing to the SMS toll fraud verdict.
          +     * 
          + * + * + * repeated .google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict.SmsTollFraudReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The reasons to add. + * @return This builder for chaining. + */ + public Builder addReasons( + com.google.recaptchaenterprise.v1.SmsTollFraudVerdict.SmsTollFraudReason value) { + if (value == null) { + throw new NullPointerException(); + } + ensureReasonsIsMutable(); + reasons_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Reasons contributing to the SMS toll fraud verdict.
          +     * 
          + * + * + * repeated .google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict.SmsTollFraudReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The reasons to add. + * @return This builder for chaining. + */ + public Builder addAllReasons( + java.lang.Iterable< + ? extends com.google.recaptchaenterprise.v1.SmsTollFraudVerdict.SmsTollFraudReason> + values) { + ensureReasonsIsMutable(); + for (com.google.recaptchaenterprise.v1.SmsTollFraudVerdict.SmsTollFraudReason value : + values) { + reasons_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Reasons contributing to the SMS toll fraud verdict.
          +     * 
          + * + * + * repeated .google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict.SmsTollFraudReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearReasons() { + reasons_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Reasons contributing to the SMS toll fraud verdict.
          +     * 
          + * + * + * repeated .google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict.SmsTollFraudReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the enum numeric values on the wire for reasons. + */ + public java.util.List getReasonsValueList() { + return java.util.Collections.unmodifiableList(reasons_); + } + /** + * + * + *
          +     * Output only. Reasons contributing to the SMS toll fraud verdict.
          +     * 
          + * + * + * repeated .google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict.SmsTollFraudReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of reasons at the given index. + */ + public int getReasonsValue(int index) { + return reasons_.get(index); + } + /** + * + * + *
          +     * Output only. Reasons contributing to the SMS toll fraud verdict.
          +     * 
          + * + * + * repeated .google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict.SmsTollFraudReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for reasons to set. + * @return This builder for chaining. + */ + public Builder setReasonsValue(int index, int value) { + ensureReasonsIsMutable(); + reasons_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Reasons contributing to the SMS toll fraud verdict.
          +     * 
          + * + * + * repeated .google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict.SmsTollFraudReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for reasons to add. + * @return This builder for chaining. + */ + public Builder addReasonsValue(int value) { + ensureReasonsIsMutable(); + reasons_.add(value); + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Reasons contributing to the SMS toll fraud verdict.
          +     * 
          + * + * + * repeated .google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict.SmsTollFraudReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The enum numeric values on the wire for reasons to add. + * @return This builder for chaining. + */ + public Builder addAllReasonsValue(java.lang.Iterable values) { + ensureReasonsIsMutable(); + for (int value : values) { + reasons_.add(value); + } + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict) + } + + // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict) + private static final com.google.recaptchaenterprise.v1.SmsTollFraudVerdict DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.recaptchaenterprise.v1.SmsTollFraudVerdict(); + } + + public static com.google.recaptchaenterprise.v1.SmsTollFraudVerdict getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SmsTollFraudVerdict parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.recaptchaenterprise.v1.SmsTollFraudVerdict getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SmsTollFraudVerdictOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SmsTollFraudVerdictOrBuilder.java new file mode 100644 index 000000000000..57f9216f4602 --- /dev/null +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SmsTollFraudVerdictOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto + +// Protobuf Java Version: 3.25.3 +package com.google.recaptchaenterprise.v1; + +public interface SmsTollFraudVerdictOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Output only. Probability of an SMS event being fraudulent.
          +   * Values are from 0.0 (lowest) to 1.0 (highest).
          +   * 
          + * + * float risk = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The risk. + */ + float getRisk(); + + /** + * + * + *
          +   * Output only. Reasons contributing to the SMS toll fraud verdict.
          +   * 
          + * + * + * repeated .google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict.SmsTollFraudReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the reasons. + */ + java.util.List + getReasonsList(); + /** + * + * + *
          +   * Output only. Reasons contributing to the SMS toll fraud verdict.
          +   * 
          + * + * + * repeated .google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict.SmsTollFraudReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of reasons. + */ + int getReasonsCount(); + /** + * + * + *
          +   * Output only. Reasons contributing to the SMS toll fraud verdict.
          +   * 
          + * + * + * repeated .google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict.SmsTollFraudReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The reasons at the given index. + */ + com.google.recaptchaenterprise.v1.SmsTollFraudVerdict.SmsTollFraudReason getReasons(int index); + /** + * + * + *
          +   * Output only. Reasons contributing to the SMS toll fraud verdict.
          +   * 
          + * + * + * repeated .google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict.SmsTollFraudReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the enum numeric values on the wire for reasons. + */ + java.util.List getReasonsValueList(); + /** + * + * + *
          +   * Output only. Reasons contributing to the SMS toll fraud verdict.
          +   * 
          + * + * + * repeated .google.cloud.recaptchaenterprise.v1.SmsTollFraudVerdict.SmsTollFraudReason reasons = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of reasons at the given index. + */ + int getReasonsValue(int index); +} diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/proto/google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/proto/google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto index c8163ccace7b..be727b9e9441 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/proto/google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/proto/google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto @@ -649,6 +649,12 @@ message Assessment { // Output only. Fraud Signals specific to the users involved in a payment // transaction. FraudSignals fraud_signals = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Assessment returned when a site key, a token, and a phone + // number as `user_id` are provided. Account defender and SMS toll fraud + // protection need to be enabled. + PhoneFraudAssessment phone_fraud_assessment = 12 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // The event being assessed. @@ -1116,6 +1122,33 @@ message FraudSignals { CardSignals card_signals = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } +// Information about SMS toll fraud. +message SmsTollFraudVerdict { + // Reasons contributing to the SMS toll fraud verdict. + enum SmsTollFraudReason { + // Default unspecified reason + SMS_TOLL_FRAUD_REASON_UNSPECIFIED = 0; + + // The provided phone number was invalid + INVALID_PHONE_NUMBER = 1; + } + + // Output only. Probability of an SMS event being fraudulent. + // Values are from 0.0 (lowest) to 1.0 (highest). + float risk = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reasons contributing to the SMS toll fraud verdict. + repeated SmsTollFraudReason reasons = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Assessment for Phone Fraud +message PhoneFraudAssessment { + // Output only. Assessment of this phone event for risk of SMS toll fraud. + SmsTollFraudVerdict sms_toll_fraud_verdict = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // Account defender risk assessment. message AccountDefenderAssessment { // Labels returned by account defender for this request. diff --git a/java-tpu/.repo-metadata.json b/java-tpu/.repo-metadata.json index 005cd9f1c4fd..9e09e391742c 100644 --- a/java-tpu/.repo-metadata.json +++ b/java-tpu/.repo-metadata.json @@ -5,7 +5,7 @@ "api_description": "are Google's custom-developed application-specific integrated circuits (ASICs) used to accelerate machine learning workloads.", "client_documentation": "https://cloud.google.com/java/docs/reference/google-cloud-tpu/latest/overview", "release_level": "stable", - "transport": "grpc", + "transport": "both", "language": "java", "repo": "googleapis/google-cloud-java", "repo_short": "java-tpu", diff --git a/java-tpu/README.md b/java-tpu/README.md index c559d0d2be3a..9886f10cdd5e 100644 --- a/java-tpu/README.md +++ b/java-tpu/README.md @@ -101,7 +101,7 @@ To get help, follow the instructions in the [shared Troubleshooting document][tr ## Transport -Cloud TPU uses gRPC for the transport layer. +Cloud TPU uses both gRPC and HTTP/JSON for the transport layer. ## Supported Java Versions From 5a2e219452e1f57e2c26c8bd4edd2d8311d0a849 Mon Sep 17 00:00:00 2001 From: Blake Li Date: Wed, 26 Jun 2024 08:07:14 -0400 Subject: [PATCH 30/33] chore: Remove protoc_version and templates_exclude from generation_config.yaml (#10989) --- generation_config.yaml | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/generation_config.yaml b/generation_config.yaml index 0cd02c1f647a..1acd5542d06d 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,19 +1,6 @@ gapic_generator_version: 2.42.0 -protoc_version: '25.3' googleapis_commitish: 46eb6505cc4b8340d304510d7226de96bafe9314 libraries_bom_version: 26.42.0 -template_excludes: -- .github/* -- .kokoro/* -- samples/* -- CODE_OF_CONDUCT.md -- CONTRIBUTING.md -- LICENSE -- SECURITY.md -- java.header -- license-checks.xml -- renovate.json -- .gitignore # the libraries are ordered with respect to library name, which is # java-{library.library_name} or java-{library.api-shortname} when From c3cdc2a29e3d2f78e9e0550c24a30532db81c16a Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Wed, 26 Jun 2024 13:47:16 -0400 Subject: [PATCH 31/33] feat: [gdchardwaremanagement] new module for gdchardwaremanagement (#10990) * feat: [gdchardwaremanagement] new module for gdchardwaremanagement * chore: generate libraries at Wed Jun 26 17:26:02 UTC 2024 --- gapic-libraries-bom/pom.xml | 7 + generation_config.yaml | 145 +- .../.OwlBot-hermetic.yaml | 35 + .../.repo-metadata.json | 17 + java-gdchardwaremanagement/README.md | 225 + .../pom.xml | 43 + .../pom.xml | 113 + .../v1alpha/GDCHardwareManagementClient.java | 6728 +++++++++++++++++ .../GDCHardwareManagementSettings.java | 811 ++ .../v1alpha/gapic_metadata.json | 123 + .../v1alpha/package-info.java | 44 + .../stub/GDCHardwareManagementStub.java | 381 + .../GDCHardwareManagementStubSettings.java | 2476 ++++++ ...cGDCHardwareManagementCallableFactory.java | 115 + .../stub/GrpcGDCHardwareManagementStub.java | 1565 ++++ ...nGDCHardwareManagementCallableFactory.java | 103 + .../HttpJsonGDCHardwareManagementStub.java | 2719 +++++++ .../reflect-config.json | 2810 +++++++ ...CHardwareManagementClientHttpJsonTest.java | 3704 +++++++++ .../GDCHardwareManagementClientTest.java | 3298 ++++++++ .../v1alpha/MockGDCHardwareManagement.java | 59 + .../MockGDCHardwareManagementImpl.java | 740 ++ .../v1alpha/MockLocations.java | 59 + .../v1alpha/MockLocationsImpl.java | 105 + .../pom.xml | 45 + .../v1alpha/GDCHardwareManagementGrpc.java | 4170 ++++++++++ java-gdchardwaremanagement/owlbot.py | 36 + java-gdchardwaremanagement/pom.xml | 55 + .../clirr-ignored-differences.xml | 19 + .../pom.xml | 37 + .../v1alpha/ChangeLogEntry.java | 1479 ++++ .../v1alpha/ChangeLogEntryName.java | 269 + .../v1alpha/ChangeLogEntryOrBuilder.java | 186 + .../v1alpha/Comment.java | 1671 ++++ .../v1alpha/CommentName.java | 257 + .../v1alpha/CommentOrBuilder.java | 215 + .../v1alpha/Contact.java | 2031 +++++ .../v1alpha/ContactOrBuilder.java | 229 + .../v1alpha/CreateCommentRequest.java | 1383 ++++ .../CreateCommentRequestOrBuilder.java | 164 + .../v1alpha/CreateHardwareGroupRequest.java | 1397 ++++ .../CreateHardwareGroupRequestOrBuilder.java | 164 + .../v1alpha/CreateHardwareRequest.java | 1194 +++ .../CreateHardwareRequestOrBuilder.java | 137 + .../v1alpha/CreateOrderRequest.java | 1381 ++++ .../v1alpha/CreateOrderRequestOrBuilder.java | 164 + .../v1alpha/CreateSiteRequest.java | 1378 ++++ .../v1alpha/CreateSiteRequestOrBuilder.java | 164 + .../v1alpha/CreateZoneRequest.java | 1392 ++++ .../v1alpha/CreateZoneRequestOrBuilder.java | 168 + .../v1alpha/DeleteHardwareGroupRequest.java | 861 +++ .../DeleteHardwareGroupRequestOrBuilder.java | 86 + .../v1alpha/DeleteHardwareRequest.java | 861 +++ .../DeleteHardwareRequestOrBuilder.java | 88 + .../v1alpha/DeleteOrderRequest.java | 950 +++ .../v1alpha/DeleteOrderRequestOrBuilder.java | 100 + .../v1alpha/DeleteZoneRequest.java | 857 +++ .../v1alpha/DeleteZoneRequestOrBuilder.java | 88 + .../v1alpha/Dimensions.java | 725 ++ .../v1alpha/DimensionsOrBuilder.java | 65 + .../v1alpha/GetChangeLogEntryRequest.java | 669 ++ .../GetChangeLogEntryRequestOrBuilder.java | 59 + .../v1alpha/GetCommentRequest.java | 661 ++ .../v1alpha/GetCommentRequestOrBuilder.java | 59 + .../v1alpha/GetHardwareGroupRequest.java | 666 ++ .../GetHardwareGroupRequestOrBuilder.java | 59 + .../v1alpha/GetHardwareRequest.java | 656 ++ .../v1alpha/GetHardwareRequestOrBuilder.java | 57 + .../v1alpha/GetOrderRequest.java | 646 ++ .../v1alpha/GetOrderRequestOrBuilder.java | 55 + .../v1alpha/GetSiteRequest.java | 651 ++ .../v1alpha/GetSiteRequestOrBuilder.java | 57 + .../v1alpha/GetSkuRequest.java | 651 ++ .../v1alpha/GetSkuRequestOrBuilder.java | 57 + .../v1alpha/GetZoneRequest.java | 651 ++ .../v1alpha/GetZoneRequestOrBuilder.java | 57 + .../v1alpha/Hardware.java | 5004 ++++++++++++ .../v1alpha/HardwareConfig.java | 933 +++ .../v1alpha/HardwareConfigOrBuilder.java | 103 + .../v1alpha/HardwareGroup.java | 3134 ++++++++ .../v1alpha/HardwareGroupName.java | 261 + .../v1alpha/HardwareGroupOrBuilder.java | 390 + .../v1alpha/HardwareInstallationInfo.java | 1782 +++++ .../HardwareInstallationInfoOrBuilder.java | 191 + .../v1alpha/HardwareLocation.java | 1423 ++++ .../v1alpha/HardwareLocationOrBuilder.java | 152 + .../v1alpha/HardwareName.java | 223 + .../v1alpha/HardwareOrBuilder.java | 661 ++ .../v1alpha/HardwarePhysicalInfo.java | 1790 +++++ .../HardwarePhysicalInfoOrBuilder.java | 144 + .../v1alpha/ListChangeLogEntriesRequest.java | 1313 ++++ .../ListChangeLogEntriesRequestOrBuilder.java | 146 + .../v1alpha/ListChangeLogEntriesResponse.java | 1493 ++++ ...ListChangeLogEntriesResponseOrBuilder.java | 166 + .../v1alpha/ListCommentsRequest.java | 1301 ++++ .../v1alpha/ListCommentsRequestOrBuilder.java | 146 + .../v1alpha/ListCommentsResponse.java | 1420 ++++ .../ListCommentsResponseOrBuilder.java | 154 + .../v1alpha/ListHardwareGroupsRequest.java | 1306 ++++ .../ListHardwareGroupsRequestOrBuilder.java | 146 + .../v1alpha/ListHardwareGroupsResponse.java | 1464 ++++ .../ListHardwareGroupsResponseOrBuilder.java | 161 + .../v1alpha/ListHardwareRequest.java | 1301 ++++ .../v1alpha/ListHardwareRequestOrBuilder.java | 146 + .../v1alpha/ListHardwareResponse.java | 1423 ++++ .../ListHardwareResponseOrBuilder.java | 154 + .../v1alpha/ListOrdersRequest.java | 1297 ++++ .../v1alpha/ListOrdersRequestOrBuilder.java | 146 + .../v1alpha/ListOrdersResponse.java | 1415 ++++ .../v1alpha/ListOrdersResponseOrBuilder.java | 154 + .../v1alpha/ListSitesRequest.java | 1297 ++++ .../v1alpha/ListSitesRequestOrBuilder.java | 146 + .../v1alpha/ListSitesResponse.java | 1408 ++++ .../v1alpha/ListSitesResponseOrBuilder.java | 154 + .../v1alpha/ListSkusRequest.java | 1296 ++++ .../v1alpha/ListSkusRequestOrBuilder.java | 146 + .../v1alpha/ListSkusResponse.java | 1406 ++++ .../v1alpha/ListSkusResponseOrBuilder.java | 154 + .../v1alpha/ListZonesRequest.java | 1297 ++++ .../v1alpha/ListZonesRequestOrBuilder.java | 146 + .../v1alpha/ListZonesResponse.java | 1408 ++++ .../v1alpha/ListZonesResponseOrBuilder.java | 154 + .../v1alpha/LocationName.java | 192 + .../v1alpha/OperationMetadata.java | 1856 +++++ .../v1alpha/OperationMetadataOrBuilder.java | 219 + .../gdchardwaremanagement/v1alpha/Order.java | 5180 +++++++++++++ .../v1alpha/OrderName.java | 223 + .../v1alpha/OrderOrBuilder.java | 645 ++ .../v1alpha/OrganizationContact.java | 1675 ++++ .../v1alpha/OrganizationContactOrBuilder.java | 178 + .../v1alpha/PowerSupply.java | 179 + .../v1alpha/RackSpace.java | 629 ++ .../v1alpha/RackSpaceOrBuilder.java | 52 + .../v1alpha/ResourcesProto.java | 773 ++ .../v1alpha/ServiceProto.java | 969 +++ .../v1alpha/SignalZoneStateRequest.java | 1200 +++ .../SignalZoneStateRequestOrBuilder.java | 118 + .../gdchardwaremanagement/v1alpha/Site.java | 3233 ++++++++ .../v1alpha/SiteName.java | 217 + .../v1alpha/SiteOrBuilder.java | 419 + .../gdchardwaremanagement/v1alpha/Sku.java | 3168 ++++++++ .../v1alpha/SkuConfig.java | 1172 +++ .../v1alpha/SkuConfigOrBuilder.java | 126 + .../v1alpha/SkuInstance.java | 1276 ++++ .../v1alpha/SkuInstanceOrBuilder.java | 149 + .../v1alpha/SkuName.java | 216 + .../v1alpha/SkuOrBuilder.java | 373 + .../v1alpha/SubmitOrderRequest.java | 845 +++ .../v1alpha/SubmitOrderRequestOrBuilder.java | 84 + .../gdchardwaremanagement/v1alpha/Subnet.java | 836 ++ .../v1alpha/SubnetOrBuilder.java | 84 + .../v1alpha/TimePeriod.java | 1374 ++++ .../v1alpha/TimePeriodOrBuilder.java | 164 + .../v1alpha/UpdateHardwareGroupRequest.java | 1287 ++++ .../UpdateHardwareGroupRequestOrBuilder.java | 144 + .../v1alpha/UpdateHardwareRequest.java | 1261 +++ .../UpdateHardwareRequestOrBuilder.java | 141 + .../v1alpha/UpdateOrderRequest.java | 1259 +++ .../v1alpha/UpdateOrderRequestOrBuilder.java | 141 + .../v1alpha/UpdateSiteRequest.java | 1256 +++ .../v1alpha/UpdateSiteRequestOrBuilder.java | 141 + .../v1alpha/UpdateZoneRequest.java | 1270 ++++ .../v1alpha/UpdateZoneRequestOrBuilder.java | 145 + .../gdchardwaremanagement/v1alpha/Zone.java | 3416 +++++++++ .../v1alpha/ZoneName.java | 217 + .../v1alpha/ZoneNetworkConfig.java | 1770 +++++ .../v1alpha/ZoneNetworkConfigOrBuilder.java | 225 + .../v1alpha/ZoneOrBuilder.java | 407 + .../v1alpha/resources.proto | 944 +++ .../v1alpha/service.proto | 1212 +++ .../SyncCreateSetCredentialsProvider.java | 45 + .../SyncCreateSetCredentialsProvider1.java | 41 + .../create/SyncCreateSetEndpoint.java | 42 + .../createcomment/AsyncCreateComment.java | 55 + .../createcomment/AsyncCreateCommentLRO.java | 55 + .../createcomment/SyncCreateComment.java | 50 + ...ncCreateCommentOrdernameCommentString.java | 46 + .../SyncCreateCommentStringCommentString.java | 46 + .../createhardware/AsyncCreateHardware.java | 54 + .../AsyncCreateHardwareLRO.java | 54 + .../createhardware/SyncCreateHardware.java | 49 + ...ateHardwareLocationnameHardwareString.java | 46 + ...yncCreateHardwareStringHardwareString.java | 46 + .../AsyncCreateHardwareGroup.java | 55 + .../AsyncCreateHardwareGroupLRO.java | 55 + .../SyncCreateHardwareGroup.java | 50 + ...wareGroupOrdernameHardwaregroupString.java | 48 + ...ardwareGroupStringHardwaregroupString.java | 48 + .../createorder/AsyncCreateOrder.java | 55 + .../createorder/AsyncCreateOrderLRO.java | 55 + .../createorder/SyncCreateOrder.java | 50 + ...yncCreateOrderLocationnameOrderString.java | 45 + .../SyncCreateOrderStringOrderString.java | 45 + .../createsite/AsyncCreateSite.java | 55 + .../createsite/AsyncCreateSiteLRO.java | 55 + .../createsite/SyncCreateSite.java | 50 + .../SyncCreateSiteLocationnameSiteString.java | 45 + .../SyncCreateSiteStringSiteString.java | 45 + .../createzone/AsyncCreateZone.java | 55 + .../createzone/AsyncCreateZoneLRO.java | 55 + .../createzone/SyncCreateZone.java | 50 + .../SyncCreateZoneLocationnameZoneString.java | 45 + .../SyncCreateZoneStringZoneString.java | 45 + .../deletehardware/AsyncDeleteHardware.java | 52 + .../AsyncDeleteHardwareLRO.java | 53 + .../deletehardware/SyncDeleteHardware.java | 48 + .../SyncDeleteHardwareHardwarename.java | 43 + .../SyncDeleteHardwareString.java | 43 + .../AsyncDeleteHardwareGroup.java | 54 + .../AsyncDeleteHardwareGroupLRO.java | 55 + .../SyncDeleteHardwareGroup.java | 50 + ...cDeleteHardwareGroupHardwaregroupname.java | 44 + .../SyncDeleteHardwareGroupString.java | 44 + .../deleteorder/AsyncDeleteOrder.java | 53 + .../deleteorder/AsyncDeleteOrderLRO.java | 54 + .../deleteorder/SyncDeleteOrder.java | 49 + .../deleteorder/SyncDeleteOrderOrdername.java | 43 + .../deleteorder/SyncDeleteOrderString.java | 43 + .../deletezone/AsyncDeleteZone.java | 52 + .../deletezone/AsyncDeleteZoneLRO.java | 53 + .../deletezone/SyncDeleteZone.java | 48 + .../deletezone/SyncDeleteZoneString.java | 43 + .../deletezone/SyncDeleteZoneZonename.java | 43 + .../AsyncGetChangeLogEntry.java | 53 + .../SyncGetChangeLogEntry.java | 49 + ...ncGetChangeLogEntryChangelogentryname.java | 44 + .../SyncGetChangeLogEntryString.java | 45 + .../getcomment/AsyncGetComment.java | 51 + .../getcomment/SyncGetComment.java | 47 + .../getcomment/SyncGetCommentCommentname.java | 43 + .../getcomment/SyncGetCommentString.java | 43 + .../gethardware/AsyncGetHardware.java | 51 + .../gethardware/SyncGetHardware.java | 47 + .../SyncGetHardwareHardwarename.java | 43 + .../gethardware/SyncGetHardwareString.java | 43 + .../AsyncGetHardwareGroup.java | 53 + .../SyncGetHardwareGroup.java | 49 + ...SyncGetHardwareGroupHardwaregroupname.java | 44 + .../SyncGetHardwareGroupString.java | 44 + .../getlocation/AsyncGetLocation.java | 47 + .../getlocation/SyncGetLocation.java | 43 + .../getorder/AsyncGetOrder.java | 50 + .../getorder/SyncGetOrder.java | 47 + .../getorder/SyncGetOrderOrdername.java | 43 + .../getorder/SyncGetOrderString.java | 43 + .../getsite/AsyncGetSite.java | 50 + .../getsite/SyncGetSite.java | 47 + .../getsite/SyncGetSiteSitename.java | 43 + .../getsite/SyncGetSiteString.java | 43 + .../getsku/AsyncGetSku.java | 50 + .../getsku/SyncGetSku.java | 47 + .../getsku/SyncGetSkuSkuname.java | 43 + .../getsku/SyncGetSkuString.java | 43 + .../getzone/AsyncGetZone.java | 50 + .../getzone/SyncGetZone.java | 47 + .../getzone/SyncGetZoneString.java | 43 + .../getzone/SyncGetZoneZonename.java | 43 + .../AsyncListChangeLogEntries.java | 57 + .../AsyncListChangeLogEntriesPaged.java | 65 + .../SyncListChangeLogEntries.java | 54 + .../SyncListChangeLogEntriesOrdername.java | 46 + .../SyncListChangeLogEntriesString.java | 46 + .../listcomments/AsyncListComments.java | 57 + .../listcomments/AsyncListCommentsPaged.java | 65 + .../listcomments/SyncListComments.java | 53 + .../SyncListCommentsOrdername.java | 45 + .../listcomments/SyncListCommentsString.java | 45 + .../listhardware/AsyncListHardware.java | 57 + .../listhardware/AsyncListHardwarePaged.java | 65 + .../listhardware/SyncListHardware.java | 53 + .../SyncListHardwareLocationname.java | 45 + .../listhardware/SyncListHardwareString.java | 45 + .../AsyncListHardwareGroups.java | 57 + .../AsyncListHardwareGroupsPaged.java | 65 + .../SyncListHardwareGroups.java | 54 + .../SyncListHardwareGroupsOrdername.java | 46 + .../SyncListHardwareGroupsString.java | 46 + .../listlocations/AsyncListLocations.java | 55 + .../AsyncListLocationsPaged.java | 63 + .../listlocations/SyncListLocations.java | 51 + .../listorders/AsyncListOrders.java | 57 + .../listorders/AsyncListOrdersPaged.java | 65 + .../listorders/SyncListOrders.java | 53 + .../SyncListOrdersLocationname.java | 45 + .../listorders/SyncListOrdersString.java | 45 + .../listsites/AsyncListSites.java | 57 + .../listsites/AsyncListSitesPaged.java | 64 + .../listsites/SyncListSites.java | 53 + .../listsites/SyncListSitesLocationname.java | 45 + .../listsites/SyncListSitesString.java | 45 + .../listskus/AsyncListSkus.java | 57 + .../listskus/AsyncListSkusPaged.java | 64 + .../listskus/SyncListSkus.java | 53 + .../listskus/SyncListSkusLocationname.java | 45 + .../listskus/SyncListSkusString.java | 45 + .../listzones/AsyncListZones.java | 57 + .../listzones/AsyncListZonesPaged.java | 64 + .../listzones/SyncListZones.java | 53 + .../listzones/SyncListZonesLocationname.java | 45 + .../listzones/SyncListZonesString.java | 45 + .../signalzonestate/AsyncSignalZoneState.java | 52 + .../AsyncSignalZoneStateLRO.java | 53 + .../signalzonestate/SyncSignalZoneState.java | 48 + ...ringSignalzonestaterequeststatesignal.java | 46 + ...nameSignalzonestaterequeststatesignal.java | 47 + .../submitorder/AsyncSubmitOrder.java | 52 + .../submitorder/AsyncSubmitOrderLRO.java | 53 + .../submitorder/SyncSubmitOrder.java | 48 + .../submitorder/SyncSubmitOrderOrdername.java | 43 + .../submitorder/SyncSubmitOrderString.java | 43 + .../updatehardware/AsyncUpdateHardware.java | 54 + .../AsyncUpdateHardwareLRO.java | 54 + .../updatehardware/SyncUpdateHardware.java | 49 + .../SyncUpdateHardwareHardwareFieldmask.java | 45 + .../AsyncUpdateHardwareGroup.java | 54 + .../AsyncUpdateHardwareGroupLRO.java | 54 + .../SyncUpdateHardwareGroup.java | 49 + ...teHardwareGroupHardwaregroupFieldmask.java | 45 + .../updateorder/AsyncUpdateOrder.java | 54 + .../updateorder/AsyncUpdateOrderLRO.java | 54 + .../updateorder/SyncUpdateOrder.java | 49 + .../SyncUpdateOrderOrderFieldmask.java | 44 + .../updatesite/AsyncUpdateSite.java | 54 + .../updatesite/AsyncUpdateSiteLRO.java | 54 + .../updatesite/SyncUpdateSite.java | 49 + .../SyncUpdateSiteSiteFieldmask.java | 44 + .../updatezone/AsyncUpdateZone.java | 54 + .../updatezone/AsyncUpdateZoneLRO.java | 54 + .../updatezone/SyncUpdateZone.java | 49 + .../SyncUpdateZoneZoneFieldmask.java | 44 + .../getorder/SyncGetOrder.java | 50 + .../getorder/SyncGetOrder.java | 50 + pom.xml | 1 + versions.txt | 3 + 334 files changed, 148115 insertions(+), 63 deletions(-) create mode 100644 java-gdchardwaremanagement/.OwlBot-hermetic.yaml create mode 100644 java-gdchardwaremanagement/.repo-metadata.json create mode 100644 java-gdchardwaremanagement/README.md create mode 100644 java-gdchardwaremanagement/google-cloud-gdchardwaremanagement-bom/pom.xml create mode 100644 java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/pom.xml create mode 100644 java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementClient.java create mode 100644 java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementSettings.java create mode 100644 java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/gapic_metadata.json create mode 100644 java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/package-info.java create mode 100644 java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/GDCHardwareManagementStub.java create mode 100644 java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/GDCHardwareManagementStubSettings.java create mode 100644 java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/GrpcGDCHardwareManagementCallableFactory.java create mode 100644 java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/GrpcGDCHardwareManagementStub.java create mode 100644 java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/HttpJsonGDCHardwareManagementCallableFactory.java create mode 100644 java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/HttpJsonGDCHardwareManagementStub.java create mode 100644 java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/resources/META-INF/native-image/com.google.cloud.gdchardwaremanagement.v1alpha/reflect-config.json create mode 100644 java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/test/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementClientHttpJsonTest.java create mode 100644 java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/test/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementClientTest.java create mode 100644 java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/test/java/com/google/cloud/gdchardwaremanagement/v1alpha/MockGDCHardwareManagement.java create mode 100644 java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/test/java/com/google/cloud/gdchardwaremanagement/v1alpha/MockGDCHardwareManagementImpl.java create mode 100644 java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/test/java/com/google/cloud/gdchardwaremanagement/v1alpha/MockLocations.java create mode 100644 java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/test/java/com/google/cloud/gdchardwaremanagement/v1alpha/MockLocationsImpl.java create mode 100644 java-gdchardwaremanagement/grpc-google-cloud-gdchardwaremanagement-v1alpha/pom.xml create mode 100644 java-gdchardwaremanagement/grpc-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementGrpc.java create mode 100644 java-gdchardwaremanagement/owlbot.py create mode 100644 java-gdchardwaremanagement/pom.xml create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/clirr-ignored-differences.xml create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/pom.xml create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ChangeLogEntry.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ChangeLogEntryName.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ChangeLogEntryOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Comment.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CommentName.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CommentOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Contact.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ContactOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CreateCommentRequest.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CreateCommentRequestOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CreateHardwareGroupRequest.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CreateHardwareGroupRequestOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CreateHardwareRequest.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CreateHardwareRequestOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CreateOrderRequest.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CreateOrderRequestOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CreateSiteRequest.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CreateSiteRequestOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CreateZoneRequest.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CreateZoneRequestOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/DeleteHardwareGroupRequest.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/DeleteHardwareGroupRequestOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/DeleteHardwareRequest.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/DeleteHardwareRequestOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/DeleteOrderRequest.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/DeleteOrderRequestOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/DeleteZoneRequest.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/DeleteZoneRequestOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Dimensions.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/DimensionsOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetChangeLogEntryRequest.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetChangeLogEntryRequestOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetCommentRequest.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetCommentRequestOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetHardwareGroupRequest.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetHardwareGroupRequestOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetHardwareRequest.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetHardwareRequestOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetOrderRequest.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetOrderRequestOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetSiteRequest.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetSiteRequestOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetSkuRequest.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetSkuRequestOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetZoneRequest.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetZoneRequestOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Hardware.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareConfig.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareConfigOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareGroup.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareGroupName.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareGroupOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareInstallationInfo.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareInstallationInfoOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareLocation.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareLocationOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareName.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwarePhysicalInfo.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwarePhysicalInfoOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListChangeLogEntriesRequest.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListChangeLogEntriesRequestOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListChangeLogEntriesResponse.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListChangeLogEntriesResponseOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListCommentsRequest.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListCommentsRequestOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListCommentsResponse.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListCommentsResponseOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListHardwareGroupsRequest.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListHardwareGroupsRequestOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListHardwareGroupsResponse.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListHardwareGroupsResponseOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListHardwareRequest.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListHardwareRequestOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListHardwareResponse.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListHardwareResponseOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListOrdersRequest.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListOrdersRequestOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListOrdersResponse.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListOrdersResponseOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSitesRequest.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSitesRequestOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSitesResponse.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSitesResponseOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSkusRequest.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSkusRequestOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSkusResponse.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSkusResponseOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListZonesRequest.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListZonesRequestOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListZonesResponse.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListZonesResponseOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/LocationName.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/OperationMetadata.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/OperationMetadataOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Order.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/OrderName.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/OrderOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/OrganizationContact.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/OrganizationContactOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/PowerSupply.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/RackSpace.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/RackSpaceOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ResourcesProto.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ServiceProto.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SignalZoneStateRequest.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SignalZoneStateRequestOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Site.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SiteName.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SiteOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Sku.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SkuConfig.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SkuConfigOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SkuInstance.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SkuInstanceOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SkuName.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SkuOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SubmitOrderRequest.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SubmitOrderRequestOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Subnet.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SubnetOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/TimePeriod.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/TimePeriodOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/UpdateHardwareGroupRequest.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/UpdateHardwareGroupRequestOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/UpdateHardwareRequest.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/UpdateHardwareRequestOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/UpdateOrderRequest.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/UpdateOrderRequestOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/UpdateSiteRequest.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/UpdateSiteRequestOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/UpdateZoneRequest.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/UpdateZoneRequestOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Zone.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ZoneName.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ZoneNetworkConfig.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ZoneNetworkConfigOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ZoneOrBuilder.java create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/proto/google/cloud/gdchardwaremanagement/v1alpha/resources.proto create mode 100644 java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/proto/google/cloud/gdchardwaremanagement/v1alpha/service.proto create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/create/SyncCreateSetCredentialsProvider.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/create/SyncCreateSetCredentialsProvider1.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/create/SyncCreateSetEndpoint.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createcomment/AsyncCreateComment.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createcomment/AsyncCreateCommentLRO.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createcomment/SyncCreateComment.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createcomment/SyncCreateCommentOrdernameCommentString.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createcomment/SyncCreateCommentStringCommentString.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createhardware/AsyncCreateHardware.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createhardware/AsyncCreateHardwareLRO.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createhardware/SyncCreateHardware.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createhardware/SyncCreateHardwareLocationnameHardwareString.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createhardware/SyncCreateHardwareStringHardwareString.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createhardwaregroup/AsyncCreateHardwareGroup.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createhardwaregroup/AsyncCreateHardwareGroupLRO.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createhardwaregroup/SyncCreateHardwareGroup.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createhardwaregroup/SyncCreateHardwareGroupOrdernameHardwaregroupString.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createhardwaregroup/SyncCreateHardwareGroupStringHardwaregroupString.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createorder/AsyncCreateOrder.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createorder/AsyncCreateOrderLRO.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createorder/SyncCreateOrder.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createorder/SyncCreateOrderLocationnameOrderString.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createorder/SyncCreateOrderStringOrderString.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createsite/AsyncCreateSite.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createsite/AsyncCreateSiteLRO.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createsite/SyncCreateSite.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createsite/SyncCreateSiteLocationnameSiteString.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createsite/SyncCreateSiteStringSiteString.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createzone/AsyncCreateZone.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createzone/AsyncCreateZoneLRO.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createzone/SyncCreateZone.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createzone/SyncCreateZoneLocationnameZoneString.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createzone/SyncCreateZoneStringZoneString.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletehardware/AsyncDeleteHardware.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletehardware/AsyncDeleteHardwareLRO.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletehardware/SyncDeleteHardware.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletehardware/SyncDeleteHardwareHardwarename.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletehardware/SyncDeleteHardwareString.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletehardwaregroup/AsyncDeleteHardwareGroup.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletehardwaregroup/AsyncDeleteHardwareGroupLRO.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletehardwaregroup/SyncDeleteHardwareGroup.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletehardwaregroup/SyncDeleteHardwareGroupHardwaregroupname.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletehardwaregroup/SyncDeleteHardwareGroupString.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deleteorder/AsyncDeleteOrder.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deleteorder/AsyncDeleteOrderLRO.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deleteorder/SyncDeleteOrder.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deleteorder/SyncDeleteOrderOrdername.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deleteorder/SyncDeleteOrderString.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletezone/AsyncDeleteZone.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletezone/AsyncDeleteZoneLRO.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletezone/SyncDeleteZone.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletezone/SyncDeleteZoneString.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletezone/SyncDeleteZoneZonename.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getchangelogentry/AsyncGetChangeLogEntry.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getchangelogentry/SyncGetChangeLogEntry.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getchangelogentry/SyncGetChangeLogEntryChangelogentryname.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getchangelogentry/SyncGetChangeLogEntryString.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getcomment/AsyncGetComment.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getcomment/SyncGetComment.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getcomment/SyncGetCommentCommentname.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getcomment/SyncGetCommentString.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/gethardware/AsyncGetHardware.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/gethardware/SyncGetHardware.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/gethardware/SyncGetHardwareHardwarename.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/gethardware/SyncGetHardwareString.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/gethardwaregroup/AsyncGetHardwareGroup.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/gethardwaregroup/SyncGetHardwareGroup.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/gethardwaregroup/SyncGetHardwareGroupHardwaregroupname.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/gethardwaregroup/SyncGetHardwareGroupString.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getlocation/AsyncGetLocation.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getlocation/SyncGetLocation.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getorder/AsyncGetOrder.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getorder/SyncGetOrder.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getorder/SyncGetOrderOrdername.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getorder/SyncGetOrderString.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getsite/AsyncGetSite.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getsite/SyncGetSite.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getsite/SyncGetSiteSitename.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getsite/SyncGetSiteString.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getsku/AsyncGetSku.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getsku/SyncGetSku.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getsku/SyncGetSkuSkuname.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getsku/SyncGetSkuString.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getzone/AsyncGetZone.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getzone/SyncGetZone.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getzone/SyncGetZoneString.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getzone/SyncGetZoneZonename.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listchangelogentries/AsyncListChangeLogEntries.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listchangelogentries/AsyncListChangeLogEntriesPaged.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listchangelogentries/SyncListChangeLogEntries.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listchangelogentries/SyncListChangeLogEntriesOrdername.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listchangelogentries/SyncListChangeLogEntriesString.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listcomments/AsyncListComments.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listcomments/AsyncListCommentsPaged.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listcomments/SyncListComments.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listcomments/SyncListCommentsOrdername.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listcomments/SyncListCommentsString.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listhardware/AsyncListHardware.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listhardware/AsyncListHardwarePaged.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listhardware/SyncListHardware.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listhardware/SyncListHardwareLocationname.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listhardware/SyncListHardwareString.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listhardwaregroups/AsyncListHardwareGroups.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listhardwaregroups/AsyncListHardwareGroupsPaged.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listhardwaregroups/SyncListHardwareGroups.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listhardwaregroups/SyncListHardwareGroupsOrdername.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listhardwaregroups/SyncListHardwareGroupsString.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listlocations/AsyncListLocations.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listlocations/AsyncListLocationsPaged.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listlocations/SyncListLocations.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listorders/AsyncListOrders.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listorders/AsyncListOrdersPaged.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listorders/SyncListOrders.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listorders/SyncListOrdersLocationname.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listorders/SyncListOrdersString.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listsites/AsyncListSites.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listsites/AsyncListSitesPaged.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listsites/SyncListSites.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listsites/SyncListSitesLocationname.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listsites/SyncListSitesString.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listskus/AsyncListSkus.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listskus/AsyncListSkusPaged.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listskus/SyncListSkus.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listskus/SyncListSkusLocationname.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listskus/SyncListSkusString.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listzones/AsyncListZones.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listzones/AsyncListZonesPaged.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listzones/SyncListZones.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listzones/SyncListZonesLocationname.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listzones/SyncListZonesString.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/signalzonestate/AsyncSignalZoneState.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/signalzonestate/AsyncSignalZoneStateLRO.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/signalzonestate/SyncSignalZoneState.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/signalzonestate/SyncSignalZoneStateStringSignalzonestaterequeststatesignal.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/signalzonestate/SyncSignalZoneStateZonenameSignalzonestaterequeststatesignal.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/submitorder/AsyncSubmitOrder.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/submitorder/AsyncSubmitOrderLRO.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/submitorder/SyncSubmitOrder.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/submitorder/SyncSubmitOrderOrdername.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/submitorder/SyncSubmitOrderString.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatehardware/AsyncUpdateHardware.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatehardware/AsyncUpdateHardwareLRO.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatehardware/SyncUpdateHardware.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatehardware/SyncUpdateHardwareHardwareFieldmask.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatehardwaregroup/AsyncUpdateHardwareGroup.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatehardwaregroup/AsyncUpdateHardwareGroupLRO.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatehardwaregroup/SyncUpdateHardwareGroup.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatehardwaregroup/SyncUpdateHardwareGroupHardwaregroupFieldmask.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updateorder/AsyncUpdateOrder.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updateorder/AsyncUpdateOrderLRO.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updateorder/SyncUpdateOrder.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updateorder/SyncUpdateOrderOrderFieldmask.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatesite/AsyncUpdateSite.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatesite/AsyncUpdateSiteLRO.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatesite/SyncUpdateSite.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatesite/SyncUpdateSiteSiteFieldmask.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatezone/AsyncUpdateZone.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatezone/AsyncUpdateZoneLRO.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatezone/SyncUpdateZone.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatezone/SyncUpdateZoneZoneFieldmask.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagementsettings/getorder/SyncGetOrder.java create mode 100644 java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/stub/gdchardwaremanagementstubsettings/getorder/SyncGetOrder.java diff --git a/gapic-libraries-bom/pom.xml b/gapic-libraries-bom/pom.xml index 1d42d53ed4a2..b431a5212134 100644 --- a/gapic-libraries-bom/pom.xml +++ b/gapic-libraries-bom/pom.xml @@ -586,6 +586,13 @@ pom import + + com.google.cloud + google-cloud-gdchardwaremanagement-bom + 0.0.1-SNAPSHOT + pom + import + com.google.cloud google-cloud-gke-backup-bom diff --git a/generation_config.yaml b/generation_config.yaml index 1acd5542d06d..6e71f84549aa 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -958,6 +958,25 @@ libraries: - proto_path: google/cloud/functions/v2alpha - proto_path: google/cloud/functions/v2beta +- api_shortname: gdchardwaremanagement + name_pretty: GDC Hardware Management API + product_documentation: https://cloud.google.com/distributed-cloud/edge/latest/docs + api_description: Google Distributed Cloud connected allows you to run Kubernetes + clusters on dedicated hardware provided and maintained by Google that is separate + from the Google Cloud data center. + client_documentation: + https://cloud.google.com/java/docs/reference/google-cloud-gdchardwaremanagement/latest/overview + release_level: preview + distribution_name: com.google.cloud:google-cloud-gdchardwaremanagement + api_id: gdchardwaremanagement.googleapis.com + library_type: GAPIC_AUTO + group_id: com.google.cloud + cloud_api: true + GAPICs: + - proto_path: google/cloud/gdchardwaremanagement/v1alpha + requires_billing: true + rpc_documentation: + https://cloud.google.com/distributed-cloud/edge/latest/docs/reference/hardware/rpc - api_shortname: gke-backup name_pretty: Backup for GKE product_documentation: 'https://cloud.google.com/kubernetes-engine/docs/add-on/backup-for-gke/concepts/backup-for-gke ' @@ -1112,69 +1131,6 @@ libraries: issue_tracker: https://issuetracker.google.com/issues?q=status:open%20componentid:310170 GAPICs: - proto_path: google/cloud/iot/v1 -- api_shortname: merchantapi - name_pretty: Merchant API - product_documentation: https://developers.google.com/merchant/api - api_description: Programmatically manage your Merchant Center accounts. - client_documentation: - https://cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/overview - release_level: preview - distribution_name: com.google.shopping:google-shopping-merchant-products - api_id: merchantapi.googleapis.com - library_type: GAPIC_AUTO - group_id: com.google.shopping - cloud_api: false - GAPICs: - - proto_path: google/shopping/merchant/products/v1beta - library_name: shopping-merchant-products -- api_shortname: merchantapi - name_pretty: Merchant API - product_documentation: https://developers.google.com/merchant/api - api_description: Programmatically manage your Merchant Center accounts. - client_documentation: - https://cloud.google.com/java/docs/reference/google-shopping-merchant-datasources/latest/overview - release_level: preview - distribution_name: com.google.shopping:google-shopping-merchant-datasources - api_id: merchantapi.googleapis.com - library_type: GAPIC_AUTO - group_id: com.google.shopping - cloud_api: false - GAPICs: - - proto_path: google/shopping/merchant/datasources/v1beta - library_name: shopping-merchant-datasources - requires_billing: true -- api_shortname: merchantapi - name_pretty: Merchant API - product_documentation: https://developers.google.com/merchant/api - api_description: Programmatically manage your Merchant Center accounts. - client_documentation: - https://cloud.google.com/java/docs/reference/google-shopping-merchant-accounts/latest/overview - release_level: preview - distribution_name: com.google.shopping:google-shopping-merchant-accounts - api_id: merchantapi.googleapis.com - library_type: GAPIC_AUTO - group_id: com.google.shopping - cloud_api: false - GAPICs: - - proto_path: google/shopping/merchant/accounts/v1beta - library_name: shopping-merchant-accounts - requires_billing: true -- api_shortname: merchantapi - name_pretty: Merchant API - product_documentation: https://developers.google.com/merchant/api - api_description: Programmatically manage your Merchant Center accounts. - client_documentation: - https://cloud.google.com/java/docs/reference/google-shopping-merchant-promotions/latest/overview - release_level: preview - distribution_name: com.google.shopping:google-shopping-merchant-promotions - api_id: merchantapi.googleapis.com - library_type: GAPIC_AUTO - group_id: com.google.shopping - cloud_api: false - GAPICs: - - proto_path: google/shopping/merchant/promotions/v1beta - library_name: shopping-merchant-promotions - requires_billing: true - api_shortname: cloudkms name_pretty: Cloud Key Management Service product_documentation: https://cloud.google.com/kms @@ -1939,6 +1895,22 @@ libraries: - proto_path: google/shopping/css/v1 # duplicated api_shortname +- api_shortname: merchantapi + name_pretty: Merchant API + product_documentation: https://developers.google.com/merchant/api + api_description: Programmatically manage your Merchant Center accounts. + client_documentation: + https://cloud.google.com/java/docs/reference/google-shopping-merchant-accounts/latest/overview + release_level: preview + distribution_name: com.google.shopping:google-shopping-merchant-accounts + api_id: merchantapi.googleapis.com + library_type: GAPIC_AUTO + group_id: com.google.shopping + cloud_api: false + GAPICs: + - proto_path: google/shopping/merchant/accounts/v1beta + library_name: shopping-merchant-accounts + requires_billing: true - api_shortname: shopping-merchant-conversions name_pretty: Merchant Conversions API product_documentation: https://developers.google.com/merchant/api @@ -1955,6 +1927,22 @@ libraries: - proto_path: google/shopping/merchant/conversions/v1beta requires_billing: true +- api_shortname: merchantapi + name_pretty: Merchant API + product_documentation: https://developers.google.com/merchant/api + api_description: Programmatically manage your Merchant Center accounts. + client_documentation: + https://cloud.google.com/java/docs/reference/google-shopping-merchant-datasources/latest/overview + release_level: preview + distribution_name: com.google.shopping:google-shopping-merchant-datasources + api_id: merchantapi.googleapis.com + library_type: GAPIC_AUTO + group_id: com.google.shopping + cloud_api: false + GAPICs: + - proto_path: google/shopping/merchant/datasources/v1beta + library_name: shopping-merchant-datasources + requires_billing: true - api_shortname: merchantapi name_pretty: Merchant API product_documentation: https://developers.google.com/merchant/api @@ -1981,6 +1969,37 @@ libraries: - proto_path: google/shopping/merchant/lfp/v1beta requires_billing: true +- api_shortname: merchantapi + name_pretty: Merchant API + product_documentation: https://developers.google.com/merchant/api + api_description: Programmatically manage your Merchant Center accounts. + client_documentation: + https://cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/overview + release_level: preview + distribution_name: com.google.shopping:google-shopping-merchant-products + api_id: merchantapi.googleapis.com + library_type: GAPIC_AUTO + group_id: com.google.shopping + cloud_api: false + GAPICs: + - proto_path: google/shopping/merchant/products/v1beta + library_name: shopping-merchant-products +- api_shortname: merchantapi + name_pretty: Merchant API + product_documentation: https://developers.google.com/merchant/api + api_description: Programmatically manage your Merchant Center accounts. + client_documentation: + https://cloud.google.com/java/docs/reference/google-shopping-merchant-promotions/latest/overview + release_level: preview + distribution_name: com.google.shopping:google-shopping-merchant-promotions + api_id: merchantapi.googleapis.com + library_type: GAPIC_AUTO + group_id: com.google.shopping + cloud_api: false + GAPICs: + - proto_path: google/shopping/merchant/promotions/v1beta + library_name: shopping-merchant-promotions + requires_billing: true - api_shortname: shopping-merchant-quota name_pretty: Merchant Quota API product_documentation: https://developers.google.com/merchant/api diff --git a/java-gdchardwaremanagement/.OwlBot-hermetic.yaml b/java-gdchardwaremanagement/.OwlBot-hermetic.yaml new file mode 100644 index 000000000000..792ebbba21b4 --- /dev/null +++ b/java-gdchardwaremanagement/.OwlBot-hermetic.yaml @@ -0,0 +1,35 @@ +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.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. + + +deep-remove-regex: +- "/java-gdchardwaremanagement/grpc-google-.*/src" +- "/java-gdchardwaremanagement/proto-google-.*/src" +- "/java-gdchardwaremanagement/google-.*/src" +- "/java-gdchardwaremanagement/samples/snippets/generated" + +deep-preserve-regex: +- "/java-gdchardwaremanagement/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + +deep-copy-regex: +- source: "/google/cloud/gdchardwaremanagement/(v.*)/.*-java/proto-google-.*/src" + dest: "/owl-bot-staging/java-gdchardwaremanagement/$1/proto-google-cloud-gdchardwaremanagement-$1/src" +- source: "/google/cloud/gdchardwaremanagement/(v.*)/.*-java/grpc-google-.*/src" + dest: "/owl-bot-staging/java-gdchardwaremanagement/$1/grpc-google-cloud-gdchardwaremanagement-$1/src" +- source: "/google/cloud/gdchardwaremanagement/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-gdchardwaremanagement/$1/google-cloud-gdchardwaremanagement/src" +- source: "/google/cloud/gdchardwaremanagement/(v.*)/.*-java/samples/snippets/generated" + dest: "/owl-bot-staging/java-gdchardwaremanagement/$1/samples/snippets/generated" + +api-name: gdchardwaremanagement \ No newline at end of file diff --git a/java-gdchardwaremanagement/.repo-metadata.json b/java-gdchardwaremanagement/.repo-metadata.json new file mode 100644 index 000000000000..8aab0b1e4844 --- /dev/null +++ b/java-gdchardwaremanagement/.repo-metadata.json @@ -0,0 +1,17 @@ +{ + "api_shortname": "gdchardwaremanagement", + "name_pretty": "GDC Hardware Management API", + "product_documentation": "https://cloud.google.com/distributed-cloud/edge/latest/docs", + "api_description": "Google Distributed Cloud connected allows you to run Kubernetes clusters on dedicated hardware provided and maintained by Google that is separate from the Google Cloud data center.", + "client_documentation": "https://cloud.google.com/java/docs/reference/google-cloud-gdchardwaremanagement/latest/overview", + "release_level": "preview", + "transport": "both", + "language": "java", + "repo": "googleapis/google-cloud-java", + "repo_short": "java-gdchardwaremanagement", + "distribution_name": "com.google.cloud:google-cloud-gdchardwaremanagement", + "api_id": "gdchardwaremanagement.googleapis.com", + "library_type": "GAPIC_AUTO", + "requires_billing": true, + "rpc_documentation": "https://cloud.google.com/distributed-cloud/edge/latest/docs/reference/hardware/rpc" +} \ No newline at end of file diff --git a/java-gdchardwaremanagement/README.md b/java-gdchardwaremanagement/README.md new file mode 100644 index 000000000000..beaee56f7b25 --- /dev/null +++ b/java-gdchardwaremanagement/README.md @@ -0,0 +1,225 @@ +# Google GDC Hardware Management API Client for Java + +Java idiomatic client for [GDC Hardware Management API][product-docs]. + +[![Maven][maven-version-image]][maven-version-link] +![Stability][stability-image] + +- [Product Documentation][product-docs] +- [Client Library Documentation][javadocs] + +> Note: This client is a work-in-progress, and may occasionally +> make backwards-incompatible changes. + + +## Quickstart + + +If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: + +```xml + + + + com.google.cloud + libraries-bom + 26.42.0 + pom + import + + + + + + + com.google.cloud + google-cloud-gdchardwaremanagement + +``` + +If you are using Maven without the BOM, add this to your dependencies: + + + +```xml + + com.google.cloud + google-cloud-gdchardwaremanagement + 0.0.0 + +``` + +If you are using Gradle without BOM, add this to your dependencies: + +```Groovy +implementation 'com.google.cloud:google-cloud-gdchardwaremanagement:0.0.0' +``` + +If you are using SBT, add this to your dependencies: + +```Scala +libraryDependencies += "com.google.cloud" % "google-cloud-gdchardwaremanagement" % "0.0.0" +``` + + +## Authentication + +See the [Authentication][authentication] section in the base directory's README. + +## Authorization + +The client application making API calls must be granted [authorization scopes][auth-scopes] required for the desired GDC Hardware Management API APIs, and the authenticated principal must have the [IAM role(s)][predefined-iam-roles] required to access GCP resources using the GDC Hardware Management API API calls. + +## Getting Started + +### Prerequisites + +You will need a [Google Cloud Platform Console][developer-console] project with the GDC Hardware Management API [API enabled][enable-api]. +You will need to [enable billing][enable-billing] to use Google GDC Hardware Management API. +[Follow these instructions][create-project] to get your project set up. You will also need to set up the local development environment by +[installing the Google Cloud Command Line Interface][cloud-cli] and running the following commands in command line: +`gcloud auth login` and `gcloud config set project [YOUR PROJECT ID]`. + +### Installation and setup + +You'll need to obtain the `google-cloud-gdchardwaremanagement` library. See the [Quickstart](#quickstart) section +to add `google-cloud-gdchardwaremanagement` as a dependency in your code. + +## About GDC Hardware Management API + + +[GDC Hardware Management API][product-docs] Google Distributed Cloud connected allows you to run Kubernetes clusters on dedicated hardware provided and maintained by Google that is separate from the Google Cloud data center. + +See the [GDC Hardware Management API client library docs][javadocs] to learn how to +use this GDC Hardware Management API Client Library. + + + + + + +## Troubleshooting + +To get help, follow the instructions in the [shared Troubleshooting document][troubleshooting]. + +## Transport + +GDC Hardware Management API uses both gRPC and HTTP/JSON for the transport layer. + +## Supported Java Versions + +Java 8 or above is required for using this client. + +Google's Java client libraries, +[Google Cloud Client Libraries][cloudlibs] +and +[Google Cloud API Libraries][apilibs], +follow the +[Oracle Java SE support roadmap][oracle] +(see the Oracle Java SE Product Releases section). + +### For new development + +In general, new feature development occurs with support for the lowest Java +LTS version covered by Oracle's Premier Support (which typically lasts 5 years +from initial General Availability). If the minimum required JVM for a given +library is changed, it is accompanied by a [semver][semver] major release. + +Java 11 and (in September 2021) Java 17 are the best choices for new +development. + +### Keeping production systems current + +Google tests its client libraries with all current LTS versions covered by +Oracle's Extended Support (which typically lasts 8 years from initial +General Availability). + +#### Legacy support + +Google's client libraries support legacy versions of Java runtimes with long +term stable libraries that don't receive feature updates on a best efforts basis +as it may not be possible to backport all patches. + +Google provides updates on a best efforts basis to apps that continue to use +Java 7, though apps might need to upgrade to current versions of the library +that supports their JVM. + +#### Where to find specific information + +The latest versions and the supported Java versions are identified on +the individual GitHub repository `github.com/GoogleAPIs/java-SERVICENAME` +and on [google-cloud-java][g-c-j]. + +## Versioning + + +This library follows [Semantic Versioning](http://semver.org/). + + +It is currently in major version zero (``0.y.z``), which means that anything may change at any time +and the public API should not be considered stable. + + +## Contributing + + +Contributions to this library are always welcome and highly encouraged. + +See [CONTRIBUTING][contributing] for more information how to get started. + +Please note that this project is released with a Contributor Code of Conduct. By participating in +this project you agree to abide by its terms. See [Code of Conduct][code-of-conduct] for more +information. + + +## License + +Apache 2.0 - See [LICENSE][license] for more information. + +## CI Status + +Java Version | Status +------------ | ------ +Java 8 | [![Kokoro CI][kokoro-badge-image-2]][kokoro-badge-link-2] +Java 8 OSX | [![Kokoro CI][kokoro-badge-image-3]][kokoro-badge-link-3] +Java 8 Windows | [![Kokoro CI][kokoro-badge-image-4]][kokoro-badge-link-4] +Java 11 | [![Kokoro CI][kokoro-badge-image-5]][kokoro-badge-link-5] + +Java is a registered trademark of Oracle and/or its affiliates. + +[product-docs]: https://cloud.google.com/distributed-cloud/edge/latest/docs +[javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-gdchardwaremanagement/latest/overview +[kokoro-badge-image-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java7.svg +[kokoro-badge-link-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java7.html +[kokoro-badge-image-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8.svg +[kokoro-badge-link-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8.html +[kokoro-badge-image-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8-osx.svg +[kokoro-badge-link-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8-osx.html +[kokoro-badge-image-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8-win.svg +[kokoro-badge-link-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8-win.html +[kokoro-badge-image-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.svg +[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html +[stability-image]: https://img.shields.io/badge/stability-preview-yellow +[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gdchardwaremanagement.svg +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gdchardwaremanagement/0.0.0 +[authentication]: https://github.com/googleapis/google-cloud-java#authentication +[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes +[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles +[iam-policy]: https://cloud.google.com/iam/docs/overview#cloud-iam-policy +[developer-console]: https://console.developers.google.com/ +[create-project]: https://cloud.google.com/resource-manager/docs/creating-managing-projects +[cloud-cli]: https://cloud.google.com/cli +[troubleshooting]: https://github.com/googleapis/google-cloud-java/blob/main/TROUBLESHOOTING.md +[contributing]: https://github.com/googleapis/google-cloud-java/blob/main/CONTRIBUTING.md +[code-of-conduct]: https://github.com/googleapis/google-cloud-java/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct +[license]: https://github.com/googleapis/google-cloud-java/blob/main/LICENSE +[enable-billing]: https://cloud.google.com/apis/docs/getting-started#enabling_billing +[enable-api]: https://console.cloud.google.com/flows/enableapi?apiid=gdchardwaremanagement.googleapis.com +[libraries-bom]: https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM +[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png + +[semver]: https://semver.org/ +[cloudlibs]: https://cloud.google.com/apis/docs/client-libraries-explained +[apilibs]: https://cloud.google.com/apis/docs/client-libraries-explained#google_api_client_libraries +[oracle]: https://www.oracle.com/java/technologies/java-se-support-roadmap.html +[g-c-j]: http://github.com/googleapis/google-cloud-java diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement-bom/pom.xml b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement-bom/pom.xml new file mode 100644 index 000000000000..40b6b5412c4b --- /dev/null +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement-bom/pom.xml @@ -0,0 +1,43 @@ + + + 4.0.0 + com.google.cloud + google-cloud-gdchardwaremanagement-bom + 0.0.1-SNAPSHOT + pom + + com.google.cloud + google-cloud-pom-parent + 1.40.0-SNAPSHOT + ../../google-cloud-pom-parent/pom.xml + + + Google GDC Hardware Management API BOM + + BOM for GDC Hardware Management API + + + + true + + + + + + com.google.cloud + google-cloud-gdchardwaremanagement + 0.0.1-SNAPSHOT + + + com.google.api.grpc + grpc-google-cloud-gdchardwaremanagement-v1alpha + 0.0.1-SNAPSHOT + + + com.google.api.grpc + proto-google-cloud-gdchardwaremanagement-v1alpha + 0.0.1-SNAPSHOT + + + + diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/pom.xml b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/pom.xml new file mode 100644 index 000000000000..2fe6b0c86c6c --- /dev/null +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/pom.xml @@ -0,0 +1,113 @@ + + + 4.0.0 + com.google.cloud + google-cloud-gdchardwaremanagement + 0.0.1-SNAPSHOT + jar + Google GDC Hardware Management API + GDC Hardware Management API Google Distributed Cloud connected allows you to run Kubernetes clusters on dedicated hardware provided and maintained by Google that is separate from the Google Cloud data center. + + com.google.cloud + google-cloud-gdchardwaremanagement-parent + 0.0.1-SNAPSHOT + + + google-cloud-gdchardwaremanagement + + + + io.grpc + grpc-api + + + io.grpc + grpc-stub + + + io.grpc + grpc-protobuf + + + com.google.api + api-common + + + com.google.protobuf + protobuf-java + + + com.google.api.grpc + proto-google-common-protos + + + + com.google.api.grpc + proto-google-cloud-gdchardwaremanagement-v1alpha + + + com.google.guava + guava + + + com.google.api + gax + + + com.google.api + gax-grpc + + + com.google.api + gax-httpjson + + + com.google.api.grpc + grpc-google-common-protos + + + com.google.api.grpc + proto-google-iam-v1 + + + com.google.api.grpc + grpc-google-iam-v1 + + + org.threeten + threetenbp + + + + + junit + junit + test + + + + com.google.api.grpc + grpc-google-cloud-gdchardwaremanagement-v1alpha + test + + + + com.google.api + gax + testlib + test + + + com.google.api + gax-grpc + testlib + test + + + com.google.api + gax-httpjson + testlib + test + + + diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementClient.java b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementClient.java new file mode 100644 index 000000000000..b3c69ed25205 --- /dev/null +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementClient.java @@ -0,0 +1,6728 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.gdchardwaremanagement.v1alpha.stub.GDCHardwareManagementStub; +import com.google.cloud.gdchardwaremanagement.v1alpha.stub.GDCHardwareManagementStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: The GDC Hardware Management service. + * + *

          This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

          {@code
          + * // This snippet has been automatically generated and should be regarded as a code template only.
          + * // It will require modifications to work:
          + * // - It may require correct/in-range values for request initialization.
          + * // - It may require specifying regional endpoints when creating the service client as shown in
          + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          + * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          + *     GDCHardwareManagementClient.create()) {
          + *   OrderName name = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]");
          + *   Order response = gDCHardwareManagementClient.getOrder(name);
          + * }
          + * }
          + * + *

          Note: close() needs to be called on the GDCHardwareManagementClient object to clean up + * resources such as threads. In the example above, try-with-resources is used, which automatically + * calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
          Methods
          MethodDescriptionMethod Variants

          ListOrders

          Lists orders in a given project and location.

          + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • listOrders(ListOrdersRequest request) + *

          + *

          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

          + *
            + *
          • listOrders(LocationName parent) + *

          • listOrders(String parent) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • listOrdersPagedCallable() + *

          • listOrdersCallable() + *

          + *

          GetOrder

          Gets details of an order.

          + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • getOrder(GetOrderRequest request) + *

          + *

          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

          + *
            + *
          • getOrder(OrderName name) + *

          • getOrder(String name) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • getOrderCallable() + *

          + *

          CreateOrder

          Creates a new order in a given project and location.

          + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • createOrderAsync(CreateOrderRequest request) + *

          + *

          Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

          + *
            + *
          • createOrderAsync(LocationName parent, Order order, String orderId) + *

          • createOrderAsync(String parent, Order order, String orderId) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • createOrderOperationCallable() + *

          • createOrderCallable() + *

          + *

          UpdateOrder

          Updates the parameters of an order.

          + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • updateOrderAsync(UpdateOrderRequest request) + *

          + *

          Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

          + *
            + *
          • updateOrderAsync(Order order, FieldMask updateMask) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • updateOrderOperationCallable() + *

          • updateOrderCallable() + *

          + *

          DeleteOrder

          Deletes an order.

          + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • deleteOrderAsync(DeleteOrderRequest request) + *

          + *

          Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

          + *
            + *
          • deleteOrderAsync(OrderName name) + *

          • deleteOrderAsync(String name) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • deleteOrderOperationCallable() + *

          • deleteOrderCallable() + *

          + *

          SubmitOrder

          Submits an order.

          + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • submitOrderAsync(SubmitOrderRequest request) + *

          + *

          Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

          + *
            + *
          • submitOrderAsync(OrderName name) + *

          • submitOrderAsync(String name) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • submitOrderOperationCallable() + *

          • submitOrderCallable() + *

          + *

          ListSites

          Lists sites in a given project and location.

          + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • listSites(ListSitesRequest request) + *

          + *

          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

          + *
            + *
          • listSites(LocationName parent) + *

          • listSites(String parent) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • listSitesPagedCallable() + *

          • listSitesCallable() + *

          + *

          GetSite

          Gets details of a site.

          + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • getSite(GetSiteRequest request) + *

          + *

          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

          + *
            + *
          • getSite(SiteName name) + *

          • getSite(String name) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • getSiteCallable() + *

          + *

          CreateSite

          Creates a new site in a given project and location.

          + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • createSiteAsync(CreateSiteRequest request) + *

          + *

          Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

          + *
            + *
          • createSiteAsync(LocationName parent, Site site, String siteId) + *

          • createSiteAsync(String parent, Site site, String siteId) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • createSiteOperationCallable() + *

          • createSiteCallable() + *

          + *

          UpdateSite

          Updates the parameters of a site.

          + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • updateSiteAsync(UpdateSiteRequest request) + *

          + *

          Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

          + *
            + *
          • updateSiteAsync(Site site, FieldMask updateMask) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • updateSiteOperationCallable() + *

          • updateSiteCallable() + *

          + *

          ListHardwareGroups

          Lists hardware groups in a given order.

          + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • listHardwareGroups(ListHardwareGroupsRequest request) + *

          + *

          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

          + *
            + *
          • listHardwareGroups(OrderName parent) + *

          • listHardwareGroups(String parent) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • listHardwareGroupsPagedCallable() + *

          • listHardwareGroupsCallable() + *

          + *

          GetHardwareGroup

          Gets details of a hardware group.

          + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • getHardwareGroup(GetHardwareGroupRequest request) + *

          + *

          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

          + *
            + *
          • getHardwareGroup(HardwareGroupName name) + *

          • getHardwareGroup(String name) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • getHardwareGroupCallable() + *

          + *

          CreateHardwareGroup

          Creates a new hardware group in a given order.

          + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • createHardwareGroupAsync(CreateHardwareGroupRequest request) + *

          + *

          Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

          + *
            + *
          • createHardwareGroupAsync(OrderName parent, HardwareGroup hardwareGroup, String hardwareGroupId) + *

          • createHardwareGroupAsync(String parent, HardwareGroup hardwareGroup, String hardwareGroupId) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • createHardwareGroupOperationCallable() + *

          • createHardwareGroupCallable() + *

          + *

          UpdateHardwareGroup

          Updates the parameters of a hardware group.

          + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • updateHardwareGroupAsync(UpdateHardwareGroupRequest request) + *

          + *

          Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

          + *
            + *
          • updateHardwareGroupAsync(HardwareGroup hardwareGroup, FieldMask updateMask) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • updateHardwareGroupOperationCallable() + *

          • updateHardwareGroupCallable() + *

          + *

          DeleteHardwareGroup

          Deletes a hardware group.

          + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • deleteHardwareGroupAsync(DeleteHardwareGroupRequest request) + *

          + *

          Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

          + *
            + *
          • deleteHardwareGroupAsync(HardwareGroupName name) + *

          • deleteHardwareGroupAsync(String name) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • deleteHardwareGroupOperationCallable() + *

          • deleteHardwareGroupCallable() + *

          + *

          ListHardware

          Lists hardware in a given project and location.

          + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • listHardware(ListHardwareRequest request) + *

          + *

          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

          + *
            + *
          • listHardware(LocationName parent) + *

          • listHardware(String parent) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • listHardwarePagedCallable() + *

          • listHardwareCallable() + *

          + *

          GetHardware

          Gets hardware details.

          + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • getHardware(GetHardwareRequest request) + *

          + *

          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

          + *
            + *
          • getHardware(HardwareName name) + *

          • getHardware(String name) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • getHardwareCallable() + *

          + *

          CreateHardware

          Creates new hardware in a given project and location.

          + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • createHardwareAsync(CreateHardwareRequest request) + *

          + *

          Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

          + *
            + *
          • createHardwareAsync(LocationName parent, Hardware hardware, String hardwareId) + *

          • createHardwareAsync(String parent, Hardware hardware, String hardwareId) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • createHardwareOperationCallable() + *

          • createHardwareCallable() + *

          + *

          UpdateHardware

          Updates hardware parameters.

          + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • updateHardwareAsync(UpdateHardwareRequest request) + *

          + *

          Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

          + *
            + *
          • updateHardwareAsync(Hardware hardware, FieldMask updateMask) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • updateHardwareOperationCallable() + *

          • updateHardwareCallable() + *

          + *

          DeleteHardware

          Deletes hardware.

          + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • deleteHardwareAsync(DeleteHardwareRequest request) + *

          + *

          Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

          + *
            + *
          • deleteHardwareAsync(HardwareName name) + *

          • deleteHardwareAsync(String name) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • deleteHardwareOperationCallable() + *

          • deleteHardwareCallable() + *

          + *

          ListComments

          Lists the comments on an order.

          + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • listComments(ListCommentsRequest request) + *

          + *

          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

          + *
            + *
          • listComments(OrderName parent) + *

          • listComments(String parent) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • listCommentsPagedCallable() + *

          • listCommentsCallable() + *

          + *

          GetComment

          Gets the content of a comment.

          + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • getComment(GetCommentRequest request) + *

          + *

          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

          + *
            + *
          • getComment(CommentName name) + *

          • getComment(String name) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • getCommentCallable() + *

          + *

          CreateComment

          Creates a new comment on an order.

          + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • createCommentAsync(CreateCommentRequest request) + *

          + *

          Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

          + *
            + *
          • createCommentAsync(OrderName parent, Comment comment, String commentId) + *

          • createCommentAsync(String parent, Comment comment, String commentId) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • createCommentOperationCallable() + *

          • createCommentCallable() + *

          + *

          ListChangeLogEntries

          Lists the changes made to an order.

          + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • listChangeLogEntries(ListChangeLogEntriesRequest request) + *

          + *

          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

          + *
            + *
          • listChangeLogEntries(OrderName parent) + *

          • listChangeLogEntries(String parent) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • listChangeLogEntriesPagedCallable() + *

          • listChangeLogEntriesCallable() + *

          + *

          GetChangeLogEntry

          Gets details of a change to an order.

          + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • getChangeLogEntry(GetChangeLogEntryRequest request) + *

          + *

          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

          + *
            + *
          • getChangeLogEntry(ChangeLogEntryName name) + *

          • getChangeLogEntry(String name) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • getChangeLogEntryCallable() + *

          + *

          ListSkus

          Lists SKUs for a given project and location.

          + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • listSkus(ListSkusRequest request) + *

          + *

          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

          + *
            + *
          • listSkus(LocationName parent) + *

          • listSkus(String parent) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • listSkusPagedCallable() + *

          • listSkusCallable() + *

          + *

          GetSku

          Gets details of an SKU.

          + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • getSku(GetSkuRequest request) + *

          + *

          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

          + *
            + *
          • getSku(SkuName name) + *

          • getSku(String name) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • getSkuCallable() + *

          + *

          ListZones

          Lists zones in a given project and location.

          + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • listZones(ListZonesRequest request) + *

          + *

          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

          + *
            + *
          • listZones(LocationName parent) + *

          • listZones(String parent) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • listZonesPagedCallable() + *

          • listZonesCallable() + *

          + *

          GetZone

          Gets details of a zone.

          + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • getZone(GetZoneRequest request) + *

          + *

          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

          + *
            + *
          • getZone(ZoneName name) + *

          • getZone(String name) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • getZoneCallable() + *

          + *

          CreateZone

          Creates a new zone in a given project and location.

          + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • createZoneAsync(CreateZoneRequest request) + *

          + *

          Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

          + *
            + *
          • createZoneAsync(LocationName parent, Zone zone, String zoneId) + *

          • createZoneAsync(String parent, Zone zone, String zoneId) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • createZoneOperationCallable() + *

          • createZoneCallable() + *

          + *

          UpdateZone

          Updates the parameters of a zone.

          + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • updateZoneAsync(UpdateZoneRequest request) + *

          + *

          Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

          + *
            + *
          • updateZoneAsync(Zone zone, FieldMask updateMask) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • updateZoneOperationCallable() + *

          • updateZoneCallable() + *

          + *

          DeleteZone

          Deletes a zone.

          + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • deleteZoneAsync(DeleteZoneRequest request) + *

          + *

          Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

          + *
            + *
          • deleteZoneAsync(ZoneName name) + *

          • deleteZoneAsync(String name) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • deleteZoneOperationCallable() + *

          • deleteZoneCallable() + *

          + *

          SignalZoneState

          Signals the state of a zone.

          + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • signalZoneStateAsync(SignalZoneStateRequest request) + *

          + *

          Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

          + *
            + *
          • signalZoneStateAsync(ZoneName name, SignalZoneStateRequest.StateSignal stateSignal) + *

          • signalZoneStateAsync(String name, SignalZoneStateRequest.StateSignal stateSignal) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • signalZoneStateOperationCallable() + *

          • signalZoneStateCallable() + *

          + *

          ListLocations

          Lists information about the supported locations for this service.

          + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • listLocations(ListLocationsRequest request) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • listLocationsPagedCallable() + *

          • listLocationsCallable() + *

          + *

          GetLocation

          Gets information about a location.

          + *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          + *
            + *
          • getLocation(GetLocationRequest request) + *

          + *

          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

          + *
            + *
          • getLocationCallable() + *

          + *
          + * + *

          See the individual methods for example code. + * + *

          Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

          This class can be customized by passing in a custom instance of GDCHardwareManagementSettings + * to create(). For example: + * + *

          To customize credentials: + * + *

          {@code
          + * // This snippet has been automatically generated and should be regarded as a code template only.
          + * // It will require modifications to work:
          + * // - It may require correct/in-range values for request initialization.
          + * // - It may require specifying regional endpoints when creating the service client as shown in
          + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          + * GDCHardwareManagementSettings gDCHardwareManagementSettings =
          + *     GDCHardwareManagementSettings.newBuilder()
          + *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
          + *         .build();
          + * GDCHardwareManagementClient gDCHardwareManagementClient =
          + *     GDCHardwareManagementClient.create(gDCHardwareManagementSettings);
          + * }
          + * + *

          To customize the endpoint: + * + *

          {@code
          + * // This snippet has been automatically generated and should be regarded as a code template only.
          + * // It will require modifications to work:
          + * // - It may require correct/in-range values for request initialization.
          + * // - It may require specifying regional endpoints when creating the service client as shown in
          + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          + * GDCHardwareManagementSettings gDCHardwareManagementSettings =
          + *     GDCHardwareManagementSettings.newBuilder().setEndpoint(myEndpoint).build();
          + * GDCHardwareManagementClient gDCHardwareManagementClient =
          + *     GDCHardwareManagementClient.create(gDCHardwareManagementSettings);
          + * }
          + * + *

          To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

          {@code
          + * // This snippet has been automatically generated and should be regarded as a code template only.
          + * // It will require modifications to work:
          + * // - It may require correct/in-range values for request initialization.
          + * // - It may require specifying regional endpoints when creating the service client as shown in
          + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          + * GDCHardwareManagementSettings gDCHardwareManagementSettings =
          + *     GDCHardwareManagementSettings.newHttpJsonBuilder().build();
          + * GDCHardwareManagementClient gDCHardwareManagementClient =
          + *     GDCHardwareManagementClient.create(gDCHardwareManagementSettings);
          + * }
          + * + *

          Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GDCHardwareManagementClient implements BackgroundResource { + private final GDCHardwareManagementSettings settings; + private final GDCHardwareManagementStub stub; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; + + /** Constructs an instance of GDCHardwareManagementClient with default settings. */ + public static final GDCHardwareManagementClient create() throws IOException { + return create(GDCHardwareManagementSettings.newBuilder().build()); + } + + /** + * Constructs an instance of GDCHardwareManagementClient, using the given settings. The channels + * are created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final GDCHardwareManagementClient create(GDCHardwareManagementSettings settings) + throws IOException { + return new GDCHardwareManagementClient(settings); + } + + /** + * Constructs an instance of GDCHardwareManagementClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(GDCHardwareManagementSettings). + */ + public static final GDCHardwareManagementClient create(GDCHardwareManagementStub stub) { + return new GDCHardwareManagementClient(stub); + } + + /** + * Constructs an instance of GDCHardwareManagementClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GDCHardwareManagementClient(GDCHardwareManagementSettings settings) throws IOException { + this.settings = settings; + this.stub = ((GDCHardwareManagementStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + protected GDCHardwareManagementClient(GDCHardwareManagementStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + public final GDCHardwareManagementSettings getSettings() { + return settings; + } + + public GDCHardwareManagementStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final com.google.longrunning.OperationsClient getOperationsClient() { + return operationsClient; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists orders in a given project and location. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
          +   *   for (Order element : gDCHardwareManagementClient.listOrders(parent).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + * + * @param parent Required. The project and location to list orders in. Format: + * `projects/{project}/locations/{location}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListOrdersPagedResponse listOrders(LocationName parent) { + ListOrdersRequest request = + ListOrdersRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); + return listOrders(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists orders in a given project and location. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
          +   *   for (Order element : gDCHardwareManagementClient.listOrders(parent).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + * + * @param parent Required. The project and location to list orders in. Format: + * `projects/{project}/locations/{location}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListOrdersPagedResponse listOrders(String parent) { + ListOrdersRequest request = ListOrdersRequest.newBuilder().setParent(parent).build(); + return listOrders(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists orders in a given project and location. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   ListOrdersRequest request =
          +   *       ListOrdersRequest.newBuilder()
          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .setFilter("filter-1274492040")
          +   *           .setOrderBy("orderBy-1207110587")
          +   *           .build();
          +   *   for (Order element : gDCHardwareManagementClient.listOrders(request).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListOrdersPagedResponse listOrders(ListOrdersRequest request) { + return listOrdersPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists orders in a given project and location. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   ListOrdersRequest request =
          +   *       ListOrdersRequest.newBuilder()
          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .setFilter("filter-1274492040")
          +   *           .setOrderBy("orderBy-1207110587")
          +   *           .build();
          +   *   ApiFuture future =
          +   *       gDCHardwareManagementClient.listOrdersPagedCallable().futureCall(request);
          +   *   // Do something.
          +   *   for (Order element : future.get().iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + */ + public final UnaryCallable listOrdersPagedCallable() { + return stub.listOrdersPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists orders in a given project and location. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   ListOrdersRequest request =
          +   *       ListOrdersRequest.newBuilder()
          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .setFilter("filter-1274492040")
          +   *           .setOrderBy("orderBy-1207110587")
          +   *           .build();
          +   *   while (true) {
          +   *     ListOrdersResponse response =
          +   *         gDCHardwareManagementClient.listOrdersCallable().call(request);
          +   *     for (Order element : response.getOrdersList()) {
          +   *       // doThingsWith(element);
          +   *     }
          +   *     String nextPageToken = response.getNextPageToken();
          +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
          +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
          +   *     } else {
          +   *       break;
          +   *     }
          +   *   }
          +   * }
          +   * }
          + */ + public final UnaryCallable listOrdersCallable() { + return stub.listOrdersCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of an order. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   OrderName name = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]");
          +   *   Order response = gDCHardwareManagementClient.getOrder(name);
          +   * }
          +   * }
          + * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Order getOrder(OrderName name) { + GetOrderRequest request = + GetOrderRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getOrder(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of an order. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   String name = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString();
          +   *   Order response = gDCHardwareManagementClient.getOrder(name);
          +   * }
          +   * }
          + * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Order getOrder(String name) { + GetOrderRequest request = GetOrderRequest.newBuilder().setName(name).build(); + return getOrder(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of an order. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   GetOrderRequest request =
          +   *       GetOrderRequest.newBuilder()
          +   *           .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
          +   *           .build();
          +   *   Order response = gDCHardwareManagementClient.getOrder(request);
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Order getOrder(GetOrderRequest request) { + return getOrderCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of an order. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   GetOrderRequest request =
          +   *       GetOrderRequest.newBuilder()
          +   *           .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
          +   *           .build();
          +   *   ApiFuture future = gDCHardwareManagementClient.getOrderCallable().futureCall(request);
          +   *   // Do something.
          +   *   Order response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable getOrderCallable() { + return stub.getOrderCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new order in a given project and location. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
          +   *   Order order = Order.newBuilder().build();
          +   *   String orderId = "orderId-1207110391";
          +   *   Order response = gDCHardwareManagementClient.createOrderAsync(parent, order, orderId).get();
          +   * }
          +   * }
          + * + * @param parent Required. The project and location to create the order in. Format: + * `projects/{project}/locations/{location}` + * @param order Required. The order to create. + * @param orderId Optional. ID used to uniquely identify the Order within its parent scope. This + * field should contain at most 63 characters and must start with lowercase characters. Only + * lowercase characters, numbers and `-` are accepted. The `-` character cannot be the first + * or the last one. A system generated ID will be used if the field is not set. + *

          The order.name field in the request will be ignored. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createOrderAsync( + LocationName parent, Order order, String orderId) { + CreateOrderRequest request = + CreateOrderRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setOrder(order) + .setOrderId(orderId) + .build(); + return createOrderAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new order in a given project and location. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
          +   *   Order order = Order.newBuilder().build();
          +   *   String orderId = "orderId-1207110391";
          +   *   Order response = gDCHardwareManagementClient.createOrderAsync(parent, order, orderId).get();
          +   * }
          +   * }
          + * + * @param parent Required. The project and location to create the order in. Format: + * `projects/{project}/locations/{location}` + * @param order Required. The order to create. + * @param orderId Optional. ID used to uniquely identify the Order within its parent scope. This + * field should contain at most 63 characters and must start with lowercase characters. Only + * lowercase characters, numbers and `-` are accepted. The `-` character cannot be the first + * or the last one. A system generated ID will be used if the field is not set. + *

          The order.name field in the request will be ignored. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createOrderAsync( + String parent, Order order, String orderId) { + CreateOrderRequest request = + CreateOrderRequest.newBuilder() + .setParent(parent) + .setOrder(order) + .setOrderId(orderId) + .build(); + return createOrderAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new order in a given project and location. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   CreateOrderRequest request =
          +   *       CreateOrderRequest.newBuilder()
          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
          +   *           .setOrderId("orderId-1207110391")
          +   *           .setOrder(Order.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   Order response = gDCHardwareManagementClient.createOrderAsync(request).get();
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createOrderAsync( + CreateOrderRequest request) { + return createOrderOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new order in a given project and location. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   CreateOrderRequest request =
          +   *       CreateOrderRequest.newBuilder()
          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
          +   *           .setOrderId("orderId-1207110391")
          +   *           .setOrder(Order.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   OperationFuture future =
          +   *       gDCHardwareManagementClient.createOrderOperationCallable().futureCall(request);
          +   *   // Do something.
          +   *   Order response = future.get();
          +   * }
          +   * }
          + */ + public final OperationCallable + createOrderOperationCallable() { + return stub.createOrderOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new order in a given project and location. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   CreateOrderRequest request =
          +   *       CreateOrderRequest.newBuilder()
          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
          +   *           .setOrderId("orderId-1207110391")
          +   *           .setOrder(Order.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   ApiFuture future =
          +   *       gDCHardwareManagementClient.createOrderCallable().futureCall(request);
          +   *   // Do something.
          +   *   Operation response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable createOrderCallable() { + return stub.createOrderCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of an order. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   Order order = Order.newBuilder().build();
          +   *   FieldMask updateMask = FieldMask.newBuilder().build();
          +   *   Order response = gDCHardwareManagementClient.updateOrderAsync(order, updateMask).get();
          +   * }
          +   * }
          + * + * @param order Required. The order to update. + * @param updateMask Required. A mask to specify the fields in the Order to overwrite with this + * update. The fields specified in the update_mask are relative to the order, not the full + * request. A field will be overwritten if it is in the mask. If you don't provide a mask then + * all fields will be overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateOrderAsync( + Order order, FieldMask updateMask) { + UpdateOrderRequest request = + UpdateOrderRequest.newBuilder().setOrder(order).setUpdateMask(updateMask).build(); + return updateOrderAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of an order. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   UpdateOrderRequest request =
          +   *       UpdateOrderRequest.newBuilder()
          +   *           .setUpdateMask(FieldMask.newBuilder().build())
          +   *           .setOrder(Order.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   Order response = gDCHardwareManagementClient.updateOrderAsync(request).get();
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateOrderAsync( + UpdateOrderRequest request) { + return updateOrderOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of an order. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   UpdateOrderRequest request =
          +   *       UpdateOrderRequest.newBuilder()
          +   *           .setUpdateMask(FieldMask.newBuilder().build())
          +   *           .setOrder(Order.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   OperationFuture future =
          +   *       gDCHardwareManagementClient.updateOrderOperationCallable().futureCall(request);
          +   *   // Do something.
          +   *   Order response = future.get();
          +   * }
          +   * }
          + */ + public final OperationCallable + updateOrderOperationCallable() { + return stub.updateOrderOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of an order. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   UpdateOrderRequest request =
          +   *       UpdateOrderRequest.newBuilder()
          +   *           .setUpdateMask(FieldMask.newBuilder().build())
          +   *           .setOrder(Order.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   ApiFuture future =
          +   *       gDCHardwareManagementClient.updateOrderCallable().futureCall(request);
          +   *   // Do something.
          +   *   Operation response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable updateOrderCallable() { + return stub.updateOrderCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an order. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   OrderName name = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]");
          +   *   gDCHardwareManagementClient.deleteOrderAsync(name).get();
          +   * }
          +   * }
          + * + * @param name Required. The name of the order. Format: + * `projects/{project}/locations/{location}/orders/{order}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteOrderAsync(OrderName name) { + DeleteOrderRequest request = + DeleteOrderRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteOrderAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an order. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   String name = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString();
          +   *   gDCHardwareManagementClient.deleteOrderAsync(name).get();
          +   * }
          +   * }
          + * + * @param name Required. The name of the order. Format: + * `projects/{project}/locations/{location}/orders/{order}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteOrderAsync(String name) { + DeleteOrderRequest request = DeleteOrderRequest.newBuilder().setName(name).build(); + return deleteOrderAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an order. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   DeleteOrderRequest request =
          +   *       DeleteOrderRequest.newBuilder()
          +   *           .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
          +   *           .setRequestId("requestId693933066")
          +   *           .setForce(true)
          +   *           .build();
          +   *   gDCHardwareManagementClient.deleteOrderAsync(request).get();
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteOrderAsync( + DeleteOrderRequest request) { + return deleteOrderOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an order. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   DeleteOrderRequest request =
          +   *       DeleteOrderRequest.newBuilder()
          +   *           .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
          +   *           .setRequestId("requestId693933066")
          +   *           .setForce(true)
          +   *           .build();
          +   *   OperationFuture future =
          +   *       gDCHardwareManagementClient.deleteOrderOperationCallable().futureCall(request);
          +   *   // Do something.
          +   *   future.get();
          +   * }
          +   * }
          + */ + public final OperationCallable + deleteOrderOperationCallable() { + return stub.deleteOrderOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an order. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   DeleteOrderRequest request =
          +   *       DeleteOrderRequest.newBuilder()
          +   *           .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
          +   *           .setRequestId("requestId693933066")
          +   *           .setForce(true)
          +   *           .build();
          +   *   ApiFuture future =
          +   *       gDCHardwareManagementClient.deleteOrderCallable().futureCall(request);
          +   *   // Do something.
          +   *   future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable deleteOrderCallable() { + return stub.deleteOrderCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Submits an order. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   OrderName name = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]");
          +   *   Order response = gDCHardwareManagementClient.submitOrderAsync(name).get();
          +   * }
          +   * }
          + * + * @param name Required. The name of the order. Format: + * `projects/{project}/locations/{location}/orders/{order}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture submitOrderAsync(OrderName name) { + SubmitOrderRequest request = + SubmitOrderRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return submitOrderAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Submits an order. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   String name = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString();
          +   *   Order response = gDCHardwareManagementClient.submitOrderAsync(name).get();
          +   * }
          +   * }
          + * + * @param name Required. The name of the order. Format: + * `projects/{project}/locations/{location}/orders/{order}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture submitOrderAsync(String name) { + SubmitOrderRequest request = SubmitOrderRequest.newBuilder().setName(name).build(); + return submitOrderAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Submits an order. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   SubmitOrderRequest request =
          +   *       SubmitOrderRequest.newBuilder()
          +   *           .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   Order response = gDCHardwareManagementClient.submitOrderAsync(request).get();
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture submitOrderAsync( + SubmitOrderRequest request) { + return submitOrderOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Submits an order. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   SubmitOrderRequest request =
          +   *       SubmitOrderRequest.newBuilder()
          +   *           .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   OperationFuture future =
          +   *       gDCHardwareManagementClient.submitOrderOperationCallable().futureCall(request);
          +   *   // Do something.
          +   *   Order response = future.get();
          +   * }
          +   * }
          + */ + public final OperationCallable + submitOrderOperationCallable() { + return stub.submitOrderOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Submits an order. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   SubmitOrderRequest request =
          +   *       SubmitOrderRequest.newBuilder()
          +   *           .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   ApiFuture future =
          +   *       gDCHardwareManagementClient.submitOrderCallable().futureCall(request);
          +   *   // Do something.
          +   *   Operation response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable submitOrderCallable() { + return stub.submitOrderCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists sites in a given project and location. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
          +   *   for (Site element : gDCHardwareManagementClient.listSites(parent).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + * + * @param parent Required. The project and location to list sites in. Format: + * `projects/{project}/locations/{location}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSitesPagedResponse listSites(LocationName parent) { + ListSitesRequest request = + ListSitesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); + return listSites(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists sites in a given project and location. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
          +   *   for (Site element : gDCHardwareManagementClient.listSites(parent).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + * + * @param parent Required. The project and location to list sites in. Format: + * `projects/{project}/locations/{location}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSitesPagedResponse listSites(String parent) { + ListSitesRequest request = ListSitesRequest.newBuilder().setParent(parent).build(); + return listSites(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists sites in a given project and location. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   ListSitesRequest request =
          +   *       ListSitesRequest.newBuilder()
          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .setFilter("filter-1274492040")
          +   *           .setOrderBy("orderBy-1207110587")
          +   *           .build();
          +   *   for (Site element : gDCHardwareManagementClient.listSites(request).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSitesPagedResponse listSites(ListSitesRequest request) { + return listSitesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists sites in a given project and location. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   ListSitesRequest request =
          +   *       ListSitesRequest.newBuilder()
          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .setFilter("filter-1274492040")
          +   *           .setOrderBy("orderBy-1207110587")
          +   *           .build();
          +   *   ApiFuture future =
          +   *       gDCHardwareManagementClient.listSitesPagedCallable().futureCall(request);
          +   *   // Do something.
          +   *   for (Site element : future.get().iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + */ + public final UnaryCallable listSitesPagedCallable() { + return stub.listSitesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists sites in a given project and location. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   ListSitesRequest request =
          +   *       ListSitesRequest.newBuilder()
          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .setFilter("filter-1274492040")
          +   *           .setOrderBy("orderBy-1207110587")
          +   *           .build();
          +   *   while (true) {
          +   *     ListSitesResponse response = gDCHardwareManagementClient.listSitesCallable().call(request);
          +   *     for (Site element : response.getSitesList()) {
          +   *       // doThingsWith(element);
          +   *     }
          +   *     String nextPageToken = response.getNextPageToken();
          +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
          +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
          +   *     } else {
          +   *       break;
          +   *     }
          +   *   }
          +   * }
          +   * }
          + */ + public final UnaryCallable listSitesCallable() { + return stub.listSitesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a site. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   SiteName name = SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]");
          +   *   Site response = gDCHardwareManagementClient.getSite(name);
          +   * }
          +   * }
          + * + * @param name Required. The name of the site. Format: + * `projects/{project}/locations/{location}/sites/{site}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Site getSite(SiteName name) { + GetSiteRequest request = + GetSiteRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getSite(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a site. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   String name = SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString();
          +   *   Site response = gDCHardwareManagementClient.getSite(name);
          +   * }
          +   * }
          + * + * @param name Required. The name of the site. Format: + * `projects/{project}/locations/{location}/sites/{site}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Site getSite(String name) { + GetSiteRequest request = GetSiteRequest.newBuilder().setName(name).build(); + return getSite(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a site. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   GetSiteRequest request =
          +   *       GetSiteRequest.newBuilder()
          +   *           .setName(SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString())
          +   *           .build();
          +   *   Site response = gDCHardwareManagementClient.getSite(request);
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Site getSite(GetSiteRequest request) { + return getSiteCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a site. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   GetSiteRequest request =
          +   *       GetSiteRequest.newBuilder()
          +   *           .setName(SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString())
          +   *           .build();
          +   *   ApiFuture future = gDCHardwareManagementClient.getSiteCallable().futureCall(request);
          +   *   // Do something.
          +   *   Site response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable getSiteCallable() { + return stub.getSiteCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new site in a given project and location. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
          +   *   Site site = Site.newBuilder().build();
          +   *   String siteId = "siteId-902090046";
          +   *   Site response = gDCHardwareManagementClient.createSiteAsync(parent, site, siteId).get();
          +   * }
          +   * }
          + * + * @param parent Required. The project and location to create the site in. Format: + * `projects/{project}/locations/{location}` + * @param site Required. The site to create. + * @param siteId Optional. ID used to uniquely identify the Site within its parent scope. This + * field should contain at most 63 characters and must start with lowercase characters. Only + * lowercase characters, numbers and `-` are accepted. The `-` character cannot be the first + * or the last one. A system generated ID will be used if the field is not set. + *

          The site.name field in the request will be ignored. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createSiteAsync( + LocationName parent, Site site, String siteId) { + CreateSiteRequest request = + CreateSiteRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setSite(site) + .setSiteId(siteId) + .build(); + return createSiteAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new site in a given project and location. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
          +   *   Site site = Site.newBuilder().build();
          +   *   String siteId = "siteId-902090046";
          +   *   Site response = gDCHardwareManagementClient.createSiteAsync(parent, site, siteId).get();
          +   * }
          +   * }
          + * + * @param parent Required. The project and location to create the site in. Format: + * `projects/{project}/locations/{location}` + * @param site Required. The site to create. + * @param siteId Optional. ID used to uniquely identify the Site within its parent scope. This + * field should contain at most 63 characters and must start with lowercase characters. Only + * lowercase characters, numbers and `-` are accepted. The `-` character cannot be the first + * or the last one. A system generated ID will be used if the field is not set. + *

          The site.name field in the request will be ignored. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createSiteAsync( + String parent, Site site, String siteId) { + CreateSiteRequest request = + CreateSiteRequest.newBuilder().setParent(parent).setSite(site).setSiteId(siteId).build(); + return createSiteAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new site in a given project and location. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   CreateSiteRequest request =
          +   *       CreateSiteRequest.newBuilder()
          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
          +   *           .setSiteId("siteId-902090046")
          +   *           .setSite(Site.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   Site response = gDCHardwareManagementClient.createSiteAsync(request).get();
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createSiteAsync(CreateSiteRequest request) { + return createSiteOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new site in a given project and location. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   CreateSiteRequest request =
          +   *       CreateSiteRequest.newBuilder()
          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
          +   *           .setSiteId("siteId-902090046")
          +   *           .setSite(Site.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   OperationFuture future =
          +   *       gDCHardwareManagementClient.createSiteOperationCallable().futureCall(request);
          +   *   // Do something.
          +   *   Site response = future.get();
          +   * }
          +   * }
          + */ + public final OperationCallable + createSiteOperationCallable() { + return stub.createSiteOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new site in a given project and location. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   CreateSiteRequest request =
          +   *       CreateSiteRequest.newBuilder()
          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
          +   *           .setSiteId("siteId-902090046")
          +   *           .setSite(Site.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   ApiFuture future =
          +   *       gDCHardwareManagementClient.createSiteCallable().futureCall(request);
          +   *   // Do something.
          +   *   Operation response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable createSiteCallable() { + return stub.createSiteCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a site. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   Site site = Site.newBuilder().build();
          +   *   FieldMask updateMask = FieldMask.newBuilder().build();
          +   *   Site response = gDCHardwareManagementClient.updateSiteAsync(site, updateMask).get();
          +   * }
          +   * }
          + * + * @param site Required. The site to update. + * @param updateMask Required. A mask to specify the fields in the Site to overwrite with this + * update. The fields specified in the update_mask are relative to the site, not the full + * request. A field will be overwritten if it is in the mask. If you don't provide a mask then + * all fields will be overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateSiteAsync( + Site site, FieldMask updateMask) { + UpdateSiteRequest request = + UpdateSiteRequest.newBuilder().setSite(site).setUpdateMask(updateMask).build(); + return updateSiteAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a site. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   UpdateSiteRequest request =
          +   *       UpdateSiteRequest.newBuilder()
          +   *           .setUpdateMask(FieldMask.newBuilder().build())
          +   *           .setSite(Site.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   Site response = gDCHardwareManagementClient.updateSiteAsync(request).get();
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateSiteAsync(UpdateSiteRequest request) { + return updateSiteOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a site. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   UpdateSiteRequest request =
          +   *       UpdateSiteRequest.newBuilder()
          +   *           .setUpdateMask(FieldMask.newBuilder().build())
          +   *           .setSite(Site.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   OperationFuture future =
          +   *       gDCHardwareManagementClient.updateSiteOperationCallable().futureCall(request);
          +   *   // Do something.
          +   *   Site response = future.get();
          +   * }
          +   * }
          + */ + public final OperationCallable + updateSiteOperationCallable() { + return stub.updateSiteOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a site. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   UpdateSiteRequest request =
          +   *       UpdateSiteRequest.newBuilder()
          +   *           .setUpdateMask(FieldMask.newBuilder().build())
          +   *           .setSite(Site.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   ApiFuture future =
          +   *       gDCHardwareManagementClient.updateSiteCallable().futureCall(request);
          +   *   // Do something.
          +   *   Operation response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable updateSiteCallable() { + return stub.updateSiteCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists hardware groups in a given order. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   OrderName parent = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]");
          +   *   for (HardwareGroup element :
          +   *       gDCHardwareManagementClient.listHardwareGroups(parent).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + * + * @param parent Required. The order to list hardware groups in. Format: + * `projects/{project}/locations/{location}/orders/{order}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListHardwareGroupsPagedResponse listHardwareGroups(OrderName parent) { + ListHardwareGroupsRequest request = + ListHardwareGroupsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listHardwareGroups(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists hardware groups in a given order. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   String parent = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString();
          +   *   for (HardwareGroup element :
          +   *       gDCHardwareManagementClient.listHardwareGroups(parent).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + * + * @param parent Required. The order to list hardware groups in. Format: + * `projects/{project}/locations/{location}/orders/{order}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListHardwareGroupsPagedResponse listHardwareGroups(String parent) { + ListHardwareGroupsRequest request = + ListHardwareGroupsRequest.newBuilder().setParent(parent).build(); + return listHardwareGroups(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists hardware groups in a given order. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   ListHardwareGroupsRequest request =
          +   *       ListHardwareGroupsRequest.newBuilder()
          +   *           .setParent(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .setFilter("filter-1274492040")
          +   *           .setOrderBy("orderBy-1207110587")
          +   *           .build();
          +   *   for (HardwareGroup element :
          +   *       gDCHardwareManagementClient.listHardwareGroups(request).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListHardwareGroupsPagedResponse listHardwareGroups( + ListHardwareGroupsRequest request) { + return listHardwareGroupsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists hardware groups in a given order. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   ListHardwareGroupsRequest request =
          +   *       ListHardwareGroupsRequest.newBuilder()
          +   *           .setParent(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .setFilter("filter-1274492040")
          +   *           .setOrderBy("orderBy-1207110587")
          +   *           .build();
          +   *   ApiFuture future =
          +   *       gDCHardwareManagementClient.listHardwareGroupsPagedCallable().futureCall(request);
          +   *   // Do something.
          +   *   for (HardwareGroup element : future.get().iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + */ + public final UnaryCallable + listHardwareGroupsPagedCallable() { + return stub.listHardwareGroupsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists hardware groups in a given order. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   ListHardwareGroupsRequest request =
          +   *       ListHardwareGroupsRequest.newBuilder()
          +   *           .setParent(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .setFilter("filter-1274492040")
          +   *           .setOrderBy("orderBy-1207110587")
          +   *           .build();
          +   *   while (true) {
          +   *     ListHardwareGroupsResponse response =
          +   *         gDCHardwareManagementClient.listHardwareGroupsCallable().call(request);
          +   *     for (HardwareGroup element : response.getHardwareGroupsList()) {
          +   *       // doThingsWith(element);
          +   *     }
          +   *     String nextPageToken = response.getNextPageToken();
          +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
          +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
          +   *     } else {
          +   *       break;
          +   *     }
          +   *   }
          +   * }
          +   * }
          + */ + public final UnaryCallable + listHardwareGroupsCallable() { + return stub.listHardwareGroupsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a hardware group. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   HardwareGroupName name =
          +   *       HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]");
          +   *   HardwareGroup response = gDCHardwareManagementClient.getHardwareGroup(name);
          +   * }
          +   * }
          + * + * @param name Required. The name of the hardware group. Format: + * `projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final HardwareGroup getHardwareGroup(HardwareGroupName name) { + GetHardwareGroupRequest request = + GetHardwareGroupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getHardwareGroup(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a hardware group. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   String name =
          +   *       HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]").toString();
          +   *   HardwareGroup response = gDCHardwareManagementClient.getHardwareGroup(name);
          +   * }
          +   * }
          + * + * @param name Required. The name of the hardware group. Format: + * `projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final HardwareGroup getHardwareGroup(String name) { + GetHardwareGroupRequest request = GetHardwareGroupRequest.newBuilder().setName(name).build(); + return getHardwareGroup(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a hardware group. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   GetHardwareGroupRequest request =
          +   *       GetHardwareGroupRequest.newBuilder()
          +   *           .setName(
          +   *               HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]")
          +   *                   .toString())
          +   *           .build();
          +   *   HardwareGroup response = gDCHardwareManagementClient.getHardwareGroup(request);
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final HardwareGroup getHardwareGroup(GetHardwareGroupRequest request) { + return getHardwareGroupCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a hardware group. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   GetHardwareGroupRequest request =
          +   *       GetHardwareGroupRequest.newBuilder()
          +   *           .setName(
          +   *               HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]")
          +   *                   .toString())
          +   *           .build();
          +   *   ApiFuture future =
          +   *       gDCHardwareManagementClient.getHardwareGroupCallable().futureCall(request);
          +   *   // Do something.
          +   *   HardwareGroup response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable getHardwareGroupCallable() { + return stub.getHardwareGroupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new hardware group in a given order. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   OrderName parent = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]");
          +   *   HardwareGroup hardwareGroup = HardwareGroup.newBuilder().build();
          +   *   String hardwareGroupId = "hardwareGroupId-1961682702";
          +   *   HardwareGroup response =
          +   *       gDCHardwareManagementClient
          +   *           .createHardwareGroupAsync(parent, hardwareGroup, hardwareGroupId)
          +   *           .get();
          +   * }
          +   * }
          + * + * @param parent Required. The order to create the hardware group in. Format: + * `projects/{project}/locations/{location}/orders/{order}` + * @param hardwareGroup Required. The hardware group to create. + * @param hardwareGroupId Optional. ID used to uniquely identify the HardwareGroup within its + * parent scope. This field should contain at most 63 characters and must start with lowercase + * characters. Only lowercase characters, numbers and `-` are accepted. The `-` character + * cannot be the first or the last one. A system generated ID will be used if the field is not + * set. + *

          The hardware_group.name field in the request will be ignored. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createHardwareGroupAsync( + OrderName parent, HardwareGroup hardwareGroup, String hardwareGroupId) { + CreateHardwareGroupRequest request = + CreateHardwareGroupRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setHardwareGroup(hardwareGroup) + .setHardwareGroupId(hardwareGroupId) + .build(); + return createHardwareGroupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new hardware group in a given order. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   String parent = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString();
          +   *   HardwareGroup hardwareGroup = HardwareGroup.newBuilder().build();
          +   *   String hardwareGroupId = "hardwareGroupId-1961682702";
          +   *   HardwareGroup response =
          +   *       gDCHardwareManagementClient
          +   *           .createHardwareGroupAsync(parent, hardwareGroup, hardwareGroupId)
          +   *           .get();
          +   * }
          +   * }
          + * + * @param parent Required. The order to create the hardware group in. Format: + * `projects/{project}/locations/{location}/orders/{order}` + * @param hardwareGroup Required. The hardware group to create. + * @param hardwareGroupId Optional. ID used to uniquely identify the HardwareGroup within its + * parent scope. This field should contain at most 63 characters and must start with lowercase + * characters. Only lowercase characters, numbers and `-` are accepted. The `-` character + * cannot be the first or the last one. A system generated ID will be used if the field is not + * set. + *

          The hardware_group.name field in the request will be ignored. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createHardwareGroupAsync( + String parent, HardwareGroup hardwareGroup, String hardwareGroupId) { + CreateHardwareGroupRequest request = + CreateHardwareGroupRequest.newBuilder() + .setParent(parent) + .setHardwareGroup(hardwareGroup) + .setHardwareGroupId(hardwareGroupId) + .build(); + return createHardwareGroupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new hardware group in a given order. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   CreateHardwareGroupRequest request =
          +   *       CreateHardwareGroupRequest.newBuilder()
          +   *           .setParent(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
          +   *           .setHardwareGroupId("hardwareGroupId-1961682702")
          +   *           .setHardwareGroup(HardwareGroup.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   HardwareGroup response = gDCHardwareManagementClient.createHardwareGroupAsync(request).get();
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createHardwareGroupAsync( + CreateHardwareGroupRequest request) { + return createHardwareGroupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new hardware group in a given order. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   CreateHardwareGroupRequest request =
          +   *       CreateHardwareGroupRequest.newBuilder()
          +   *           .setParent(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
          +   *           .setHardwareGroupId("hardwareGroupId-1961682702")
          +   *           .setHardwareGroup(HardwareGroup.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   OperationFuture future =
          +   *       gDCHardwareManagementClient.createHardwareGroupOperationCallable().futureCall(request);
          +   *   // Do something.
          +   *   HardwareGroup response = future.get();
          +   * }
          +   * }
          + */ + public final OperationCallable + createHardwareGroupOperationCallable() { + return stub.createHardwareGroupOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new hardware group in a given order. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   CreateHardwareGroupRequest request =
          +   *       CreateHardwareGroupRequest.newBuilder()
          +   *           .setParent(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
          +   *           .setHardwareGroupId("hardwareGroupId-1961682702")
          +   *           .setHardwareGroup(HardwareGroup.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   ApiFuture future =
          +   *       gDCHardwareManagementClient.createHardwareGroupCallable().futureCall(request);
          +   *   // Do something.
          +   *   Operation response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable createHardwareGroupCallable() { + return stub.createHardwareGroupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a hardware group. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   HardwareGroup hardwareGroup = HardwareGroup.newBuilder().build();
          +   *   FieldMask updateMask = FieldMask.newBuilder().build();
          +   *   HardwareGroup response =
          +   *       gDCHardwareManagementClient.updateHardwareGroupAsync(hardwareGroup, updateMask).get();
          +   * }
          +   * }
          + * + * @param hardwareGroup Required. The hardware group to update. + * @param updateMask Required. A mask to specify the fields in the HardwareGroup to overwrite with + * this update. The fields specified in the update_mask are relative to the hardware group, + * not the full request. A field will be overwritten if it is in the mask. If you don't + * provide a mask then all fields will be overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateHardwareGroupAsync( + HardwareGroup hardwareGroup, FieldMask updateMask) { + UpdateHardwareGroupRequest request = + UpdateHardwareGroupRequest.newBuilder() + .setHardwareGroup(hardwareGroup) + .setUpdateMask(updateMask) + .build(); + return updateHardwareGroupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a hardware group. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   UpdateHardwareGroupRequest request =
          +   *       UpdateHardwareGroupRequest.newBuilder()
          +   *           .setUpdateMask(FieldMask.newBuilder().build())
          +   *           .setHardwareGroup(HardwareGroup.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   HardwareGroup response = gDCHardwareManagementClient.updateHardwareGroupAsync(request).get();
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateHardwareGroupAsync( + UpdateHardwareGroupRequest request) { + return updateHardwareGroupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a hardware group. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   UpdateHardwareGroupRequest request =
          +   *       UpdateHardwareGroupRequest.newBuilder()
          +   *           .setUpdateMask(FieldMask.newBuilder().build())
          +   *           .setHardwareGroup(HardwareGroup.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   OperationFuture future =
          +   *       gDCHardwareManagementClient.updateHardwareGroupOperationCallable().futureCall(request);
          +   *   // Do something.
          +   *   HardwareGroup response = future.get();
          +   * }
          +   * }
          + */ + public final OperationCallable + updateHardwareGroupOperationCallable() { + return stub.updateHardwareGroupOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a hardware group. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   UpdateHardwareGroupRequest request =
          +   *       UpdateHardwareGroupRequest.newBuilder()
          +   *           .setUpdateMask(FieldMask.newBuilder().build())
          +   *           .setHardwareGroup(HardwareGroup.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   ApiFuture future =
          +   *       gDCHardwareManagementClient.updateHardwareGroupCallable().futureCall(request);
          +   *   // Do something.
          +   *   Operation response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable updateHardwareGroupCallable() { + return stub.updateHardwareGroupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a hardware group. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   HardwareGroupName name =
          +   *       HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]");
          +   *   gDCHardwareManagementClient.deleteHardwareGroupAsync(name).get();
          +   * }
          +   * }
          + * + * @param name Required. The name of the hardware group. Format: + * `projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteHardwareGroupAsync( + HardwareGroupName name) { + DeleteHardwareGroupRequest request = + DeleteHardwareGroupRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteHardwareGroupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a hardware group. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   String name =
          +   *       HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]").toString();
          +   *   gDCHardwareManagementClient.deleteHardwareGroupAsync(name).get();
          +   * }
          +   * }
          + * + * @param name Required. The name of the hardware group. Format: + * `projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteHardwareGroupAsync(String name) { + DeleteHardwareGroupRequest request = + DeleteHardwareGroupRequest.newBuilder().setName(name).build(); + return deleteHardwareGroupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a hardware group. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   DeleteHardwareGroupRequest request =
          +   *       DeleteHardwareGroupRequest.newBuilder()
          +   *           .setName(
          +   *               HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]")
          +   *                   .toString())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   gDCHardwareManagementClient.deleteHardwareGroupAsync(request).get();
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteHardwareGroupAsync( + DeleteHardwareGroupRequest request) { + return deleteHardwareGroupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a hardware group. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   DeleteHardwareGroupRequest request =
          +   *       DeleteHardwareGroupRequest.newBuilder()
          +   *           .setName(
          +   *               HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]")
          +   *                   .toString())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   OperationFuture future =
          +   *       gDCHardwareManagementClient.deleteHardwareGroupOperationCallable().futureCall(request);
          +   *   // Do something.
          +   *   future.get();
          +   * }
          +   * }
          + */ + public final OperationCallable + deleteHardwareGroupOperationCallable() { + return stub.deleteHardwareGroupOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a hardware group. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   DeleteHardwareGroupRequest request =
          +   *       DeleteHardwareGroupRequest.newBuilder()
          +   *           .setName(
          +   *               HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]")
          +   *                   .toString())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   ApiFuture future =
          +   *       gDCHardwareManagementClient.deleteHardwareGroupCallable().futureCall(request);
          +   *   // Do something.
          +   *   future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable deleteHardwareGroupCallable() { + return stub.deleteHardwareGroupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists hardware in a given project and location. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
          +   *   for (Hardware element : gDCHardwareManagementClient.listHardware(parent).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + * + * @param parent Required. The project and location to list hardware in. Format: + * `projects/{project}/locations/{location}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListHardwarePagedResponse listHardware(LocationName parent) { + ListHardwareRequest request = + ListHardwareRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listHardware(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists hardware in a given project and location. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
          +   *   for (Hardware element : gDCHardwareManagementClient.listHardware(parent).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + * + * @param parent Required. The project and location to list hardware in. Format: + * `projects/{project}/locations/{location}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListHardwarePagedResponse listHardware(String parent) { + ListHardwareRequest request = ListHardwareRequest.newBuilder().setParent(parent).build(); + return listHardware(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists hardware in a given project and location. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   ListHardwareRequest request =
          +   *       ListHardwareRequest.newBuilder()
          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .setFilter("filter-1274492040")
          +   *           .setOrderBy("orderBy-1207110587")
          +   *           .build();
          +   *   for (Hardware element : gDCHardwareManagementClient.listHardware(request).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListHardwarePagedResponse listHardware(ListHardwareRequest request) { + return listHardwarePagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists hardware in a given project and location. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   ListHardwareRequest request =
          +   *       ListHardwareRequest.newBuilder()
          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .setFilter("filter-1274492040")
          +   *           .setOrderBy("orderBy-1207110587")
          +   *           .build();
          +   *   ApiFuture future =
          +   *       gDCHardwareManagementClient.listHardwarePagedCallable().futureCall(request);
          +   *   // Do something.
          +   *   for (Hardware element : future.get().iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + */ + public final UnaryCallable + listHardwarePagedCallable() { + return stub.listHardwarePagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists hardware in a given project and location. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   ListHardwareRequest request =
          +   *       ListHardwareRequest.newBuilder()
          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .setFilter("filter-1274492040")
          +   *           .setOrderBy("orderBy-1207110587")
          +   *           .build();
          +   *   while (true) {
          +   *     ListHardwareResponse response =
          +   *         gDCHardwareManagementClient.listHardwareCallable().call(request);
          +   *     for (Hardware element : response.getHardwareList()) {
          +   *       // doThingsWith(element);
          +   *     }
          +   *     String nextPageToken = response.getNextPageToken();
          +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
          +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
          +   *     } else {
          +   *       break;
          +   *     }
          +   *   }
          +   * }
          +   * }
          + */ + public final UnaryCallable listHardwareCallable() { + return stub.listHardwareCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets hardware details. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   HardwareName name = HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]");
          +   *   Hardware response = gDCHardwareManagementClient.getHardware(name);
          +   * }
          +   * }
          + * + * @param name Required. The name of the hardware. Format: + * `projects/{project}/locations/{location}/hardware/{hardware}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Hardware getHardware(HardwareName name) { + GetHardwareRequest request = + GetHardwareRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getHardware(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets hardware details. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   String name = HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]").toString();
          +   *   Hardware response = gDCHardwareManagementClient.getHardware(name);
          +   * }
          +   * }
          + * + * @param name Required. The name of the hardware. Format: + * `projects/{project}/locations/{location}/hardware/{hardware}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Hardware getHardware(String name) { + GetHardwareRequest request = GetHardwareRequest.newBuilder().setName(name).build(); + return getHardware(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets hardware details. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   GetHardwareRequest request =
          +   *       GetHardwareRequest.newBuilder()
          +   *           .setName(HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]").toString())
          +   *           .build();
          +   *   Hardware response = gDCHardwareManagementClient.getHardware(request);
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Hardware getHardware(GetHardwareRequest request) { + return getHardwareCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets hardware details. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   GetHardwareRequest request =
          +   *       GetHardwareRequest.newBuilder()
          +   *           .setName(HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]").toString())
          +   *           .build();
          +   *   ApiFuture future =
          +   *       gDCHardwareManagementClient.getHardwareCallable().futureCall(request);
          +   *   // Do something.
          +   *   Hardware response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable getHardwareCallable() { + return stub.getHardwareCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates new hardware in a given project and location. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
          +   *   Hardware hardware = Hardware.newBuilder().build();
          +   *   String hardwareId = "hardwareId680924451";
          +   *   Hardware response =
          +   *       gDCHardwareManagementClient.createHardwareAsync(parent, hardware, hardwareId).get();
          +   * }
          +   * }
          + * + * @param parent Required. The project and location to create hardware in. Format: + * `projects/{project}/locations/{location}` + * @param hardware Required. The resource to create. + * @param hardwareId Optional. ID used to uniquely identify the Hardware within its parent scope. + * This field should contain at most 63 characters and must start with lowercase characters. + * Only lowercase characters, numbers and `-` are accepted. The `-` character cannot be the + * first or the last one. A system generated ID will be used if the field is not set. + *

          The hardware.name field in the request will be ignored. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createHardwareAsync( + LocationName parent, Hardware hardware, String hardwareId) { + CreateHardwareRequest request = + CreateHardwareRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setHardware(hardware) + .setHardwareId(hardwareId) + .build(); + return createHardwareAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates new hardware in a given project and location. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
          +   *   Hardware hardware = Hardware.newBuilder().build();
          +   *   String hardwareId = "hardwareId680924451";
          +   *   Hardware response =
          +   *       gDCHardwareManagementClient.createHardwareAsync(parent, hardware, hardwareId).get();
          +   * }
          +   * }
          + * + * @param parent Required. The project and location to create hardware in. Format: + * `projects/{project}/locations/{location}` + * @param hardware Required. The resource to create. + * @param hardwareId Optional. ID used to uniquely identify the Hardware within its parent scope. + * This field should contain at most 63 characters and must start with lowercase characters. + * Only lowercase characters, numbers and `-` are accepted. The `-` character cannot be the + * first or the last one. A system generated ID will be used if the field is not set. + *

          The hardware.name field in the request will be ignored. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createHardwareAsync( + String parent, Hardware hardware, String hardwareId) { + CreateHardwareRequest request = + CreateHardwareRequest.newBuilder() + .setParent(parent) + .setHardware(hardware) + .setHardwareId(hardwareId) + .build(); + return createHardwareAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates new hardware in a given project and location. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   CreateHardwareRequest request =
          +   *       CreateHardwareRequest.newBuilder()
          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
          +   *           .setHardwareId("hardwareId680924451")
          +   *           .setHardware(Hardware.newBuilder().build())
          +   *           .build();
          +   *   Hardware response = gDCHardwareManagementClient.createHardwareAsync(request).get();
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createHardwareAsync( + CreateHardwareRequest request) { + return createHardwareOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates new hardware in a given project and location. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   CreateHardwareRequest request =
          +   *       CreateHardwareRequest.newBuilder()
          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
          +   *           .setHardwareId("hardwareId680924451")
          +   *           .setHardware(Hardware.newBuilder().build())
          +   *           .build();
          +   *   OperationFuture future =
          +   *       gDCHardwareManagementClient.createHardwareOperationCallable().futureCall(request);
          +   *   // Do something.
          +   *   Hardware response = future.get();
          +   * }
          +   * }
          + */ + public final OperationCallable + createHardwareOperationCallable() { + return stub.createHardwareOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates new hardware in a given project and location. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   CreateHardwareRequest request =
          +   *       CreateHardwareRequest.newBuilder()
          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
          +   *           .setHardwareId("hardwareId680924451")
          +   *           .setHardware(Hardware.newBuilder().build())
          +   *           .build();
          +   *   ApiFuture future =
          +   *       gDCHardwareManagementClient.createHardwareCallable().futureCall(request);
          +   *   // Do something.
          +   *   Operation response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable createHardwareCallable() { + return stub.createHardwareCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates hardware parameters. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   Hardware hardware = Hardware.newBuilder().build();
          +   *   FieldMask updateMask = FieldMask.newBuilder().build();
          +   *   Hardware response =
          +   *       gDCHardwareManagementClient.updateHardwareAsync(hardware, updateMask).get();
          +   * }
          +   * }
          + * + * @param hardware Required. The hardware to update. + * @param updateMask Required. A mask to specify the fields in the Hardware to overwrite with this + * update. The fields specified in the update_mask are relative to the hardware, not the full + * request. A field will be overwritten if it is in the mask. If you don't provide a mask then + * all fields will be overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateHardwareAsync( + Hardware hardware, FieldMask updateMask) { + UpdateHardwareRequest request = + UpdateHardwareRequest.newBuilder().setHardware(hardware).setUpdateMask(updateMask).build(); + return updateHardwareAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates hardware parameters. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   UpdateHardwareRequest request =
          +   *       UpdateHardwareRequest.newBuilder()
          +   *           .setUpdateMask(FieldMask.newBuilder().build())
          +   *           .setHardware(Hardware.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   Hardware response = gDCHardwareManagementClient.updateHardwareAsync(request).get();
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateHardwareAsync( + UpdateHardwareRequest request) { + return updateHardwareOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates hardware parameters. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   UpdateHardwareRequest request =
          +   *       UpdateHardwareRequest.newBuilder()
          +   *           .setUpdateMask(FieldMask.newBuilder().build())
          +   *           .setHardware(Hardware.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   OperationFuture future =
          +   *       gDCHardwareManagementClient.updateHardwareOperationCallable().futureCall(request);
          +   *   // Do something.
          +   *   Hardware response = future.get();
          +   * }
          +   * }
          + */ + public final OperationCallable + updateHardwareOperationCallable() { + return stub.updateHardwareOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates hardware parameters. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   UpdateHardwareRequest request =
          +   *       UpdateHardwareRequest.newBuilder()
          +   *           .setUpdateMask(FieldMask.newBuilder().build())
          +   *           .setHardware(Hardware.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   ApiFuture future =
          +   *       gDCHardwareManagementClient.updateHardwareCallable().futureCall(request);
          +   *   // Do something.
          +   *   Operation response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable updateHardwareCallable() { + return stub.updateHardwareCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes hardware. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   HardwareName name = HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]");
          +   *   gDCHardwareManagementClient.deleteHardwareAsync(name).get();
          +   * }
          +   * }
          + * + * @param name Required. The name of the hardware. Format: + * `projects/{project}/locations/{location}/hardware/{hardware}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteHardwareAsync(HardwareName name) { + DeleteHardwareRequest request = + DeleteHardwareRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteHardwareAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes hardware. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   String name = HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]").toString();
          +   *   gDCHardwareManagementClient.deleteHardwareAsync(name).get();
          +   * }
          +   * }
          + * + * @param name Required. The name of the hardware. Format: + * `projects/{project}/locations/{location}/hardware/{hardware}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteHardwareAsync(String name) { + DeleteHardwareRequest request = DeleteHardwareRequest.newBuilder().setName(name).build(); + return deleteHardwareAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes hardware. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   DeleteHardwareRequest request =
          +   *       DeleteHardwareRequest.newBuilder()
          +   *           .setName(HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]").toString())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   gDCHardwareManagementClient.deleteHardwareAsync(request).get();
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteHardwareAsync( + DeleteHardwareRequest request) { + return deleteHardwareOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes hardware. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   DeleteHardwareRequest request =
          +   *       DeleteHardwareRequest.newBuilder()
          +   *           .setName(HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]").toString())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   OperationFuture future =
          +   *       gDCHardwareManagementClient.deleteHardwareOperationCallable().futureCall(request);
          +   *   // Do something.
          +   *   future.get();
          +   * }
          +   * }
          + */ + public final OperationCallable + deleteHardwareOperationCallable() { + return stub.deleteHardwareOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes hardware. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   DeleteHardwareRequest request =
          +   *       DeleteHardwareRequest.newBuilder()
          +   *           .setName(HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]").toString())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   ApiFuture future =
          +   *       gDCHardwareManagementClient.deleteHardwareCallable().futureCall(request);
          +   *   // Do something.
          +   *   future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable deleteHardwareCallable() { + return stub.deleteHardwareCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the comments on an order. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   OrderName parent = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]");
          +   *   for (Comment element : gDCHardwareManagementClient.listComments(parent).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + * + * @param parent Required. The order to list comments on. Format: + * `projects/{project}/locations/{location}/orders/{order}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCommentsPagedResponse listComments(OrderName parent) { + ListCommentsRequest request = + ListCommentsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listComments(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the comments on an order. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   String parent = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString();
          +   *   for (Comment element : gDCHardwareManagementClient.listComments(parent).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + * + * @param parent Required. The order to list comments on. Format: + * `projects/{project}/locations/{location}/orders/{order}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCommentsPagedResponse listComments(String parent) { + ListCommentsRequest request = ListCommentsRequest.newBuilder().setParent(parent).build(); + return listComments(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the comments on an order. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   ListCommentsRequest request =
          +   *       ListCommentsRequest.newBuilder()
          +   *           .setParent(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .setFilter("filter-1274492040")
          +   *           .setOrderBy("orderBy-1207110587")
          +   *           .build();
          +   *   for (Comment element : gDCHardwareManagementClient.listComments(request).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCommentsPagedResponse listComments(ListCommentsRequest request) { + return listCommentsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the comments on an order. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   ListCommentsRequest request =
          +   *       ListCommentsRequest.newBuilder()
          +   *           .setParent(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .setFilter("filter-1274492040")
          +   *           .setOrderBy("orderBy-1207110587")
          +   *           .build();
          +   *   ApiFuture future =
          +   *       gDCHardwareManagementClient.listCommentsPagedCallable().futureCall(request);
          +   *   // Do something.
          +   *   for (Comment element : future.get().iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + */ + public final UnaryCallable + listCommentsPagedCallable() { + return stub.listCommentsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the comments on an order. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   ListCommentsRequest request =
          +   *       ListCommentsRequest.newBuilder()
          +   *           .setParent(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .setFilter("filter-1274492040")
          +   *           .setOrderBy("orderBy-1207110587")
          +   *           .build();
          +   *   while (true) {
          +   *     ListCommentsResponse response =
          +   *         gDCHardwareManagementClient.listCommentsCallable().call(request);
          +   *     for (Comment element : response.getCommentsList()) {
          +   *       // doThingsWith(element);
          +   *     }
          +   *     String nextPageToken = response.getNextPageToken();
          +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
          +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
          +   *     } else {
          +   *       break;
          +   *     }
          +   *   }
          +   * }
          +   * }
          + */ + public final UnaryCallable listCommentsCallable() { + return stub.listCommentsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the content of a comment. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   CommentName name = CommentName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[COMMENT]");
          +   *   Comment response = gDCHardwareManagementClient.getComment(name);
          +   * }
          +   * }
          + * + * @param name Required. The name of the comment. Format: + * `projects/{project}/locations/{location}/orders/{order}/comments/{comment}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Comment getComment(CommentName name) { + GetCommentRequest request = + GetCommentRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getComment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the content of a comment. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   String name = CommentName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[COMMENT]").toString();
          +   *   Comment response = gDCHardwareManagementClient.getComment(name);
          +   * }
          +   * }
          + * + * @param name Required. The name of the comment. Format: + * `projects/{project}/locations/{location}/orders/{order}/comments/{comment}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Comment getComment(String name) { + GetCommentRequest request = GetCommentRequest.newBuilder().setName(name).build(); + return getComment(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the content of a comment. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   GetCommentRequest request =
          +   *       GetCommentRequest.newBuilder()
          +   *           .setName(CommentName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[COMMENT]").toString())
          +   *           .build();
          +   *   Comment response = gDCHardwareManagementClient.getComment(request);
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Comment getComment(GetCommentRequest request) { + return getCommentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the content of a comment. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   GetCommentRequest request =
          +   *       GetCommentRequest.newBuilder()
          +   *           .setName(CommentName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[COMMENT]").toString())
          +   *           .build();
          +   *   ApiFuture future =
          +   *       gDCHardwareManagementClient.getCommentCallable().futureCall(request);
          +   *   // Do something.
          +   *   Comment response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable getCommentCallable() { + return stub.getCommentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new comment on an order. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   OrderName parent = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]");
          +   *   Comment comment = Comment.newBuilder().build();
          +   *   String commentId = "commentId-1495016486";
          +   *   Comment response =
          +   *       gDCHardwareManagementClient.createCommentAsync(parent, comment, commentId).get();
          +   * }
          +   * }
          + * + * @param parent Required. The order to create the comment on. Format: + * `projects/{project}/locations/{location}/orders/{order}` + * @param comment Required. The comment to create. + * @param commentId Optional. ID used to uniquely identify the Comment within its parent scope. + * This field should contain at most 63 characters and must start with lowercase characters. + * Only lowercase characters, numbers and `-` are accepted. The `-` character cannot be the + * first or the last one. A system generated ID will be used if the field is not set. + *

          The comment.name field in the request will be ignored. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createCommentAsync( + OrderName parent, Comment comment, String commentId) { + CreateCommentRequest request = + CreateCommentRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setComment(comment) + .setCommentId(commentId) + .build(); + return createCommentAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new comment on an order. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   String parent = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString();
          +   *   Comment comment = Comment.newBuilder().build();
          +   *   String commentId = "commentId-1495016486";
          +   *   Comment response =
          +   *       gDCHardwareManagementClient.createCommentAsync(parent, comment, commentId).get();
          +   * }
          +   * }
          + * + * @param parent Required. The order to create the comment on. Format: + * `projects/{project}/locations/{location}/orders/{order}` + * @param comment Required. The comment to create. + * @param commentId Optional. ID used to uniquely identify the Comment within its parent scope. + * This field should contain at most 63 characters and must start with lowercase characters. + * Only lowercase characters, numbers and `-` are accepted. The `-` character cannot be the + * first or the last one. A system generated ID will be used if the field is not set. + *

          The comment.name field in the request will be ignored. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createCommentAsync( + String parent, Comment comment, String commentId) { + CreateCommentRequest request = + CreateCommentRequest.newBuilder() + .setParent(parent) + .setComment(comment) + .setCommentId(commentId) + .build(); + return createCommentAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new comment on an order. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   CreateCommentRequest request =
          +   *       CreateCommentRequest.newBuilder()
          +   *           .setParent(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
          +   *           .setCommentId("commentId-1495016486")
          +   *           .setComment(Comment.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   Comment response = gDCHardwareManagementClient.createCommentAsync(request).get();
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createCommentAsync( + CreateCommentRequest request) { + return createCommentOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new comment on an order. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   CreateCommentRequest request =
          +   *       CreateCommentRequest.newBuilder()
          +   *           .setParent(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
          +   *           .setCommentId("commentId-1495016486")
          +   *           .setComment(Comment.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   OperationFuture future =
          +   *       gDCHardwareManagementClient.createCommentOperationCallable().futureCall(request);
          +   *   // Do something.
          +   *   Comment response = future.get();
          +   * }
          +   * }
          + */ + public final OperationCallable + createCommentOperationCallable() { + return stub.createCommentOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new comment on an order. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   CreateCommentRequest request =
          +   *       CreateCommentRequest.newBuilder()
          +   *           .setParent(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
          +   *           .setCommentId("commentId-1495016486")
          +   *           .setComment(Comment.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   ApiFuture future =
          +   *       gDCHardwareManagementClient.createCommentCallable().futureCall(request);
          +   *   // Do something.
          +   *   Operation response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable createCommentCallable() { + return stub.createCommentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the changes made to an order. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   OrderName parent = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]");
          +   *   for (ChangeLogEntry element :
          +   *       gDCHardwareManagementClient.listChangeLogEntries(parent).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + * + * @param parent Required. The order to list change log entries for. Format: + * `projects/{project}/locations/{location}/orders/{order}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListChangeLogEntriesPagedResponse listChangeLogEntries(OrderName parent) { + ListChangeLogEntriesRequest request = + ListChangeLogEntriesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listChangeLogEntries(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the changes made to an order. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   String parent = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString();
          +   *   for (ChangeLogEntry element :
          +   *       gDCHardwareManagementClient.listChangeLogEntries(parent).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + * + * @param parent Required. The order to list change log entries for. Format: + * `projects/{project}/locations/{location}/orders/{order}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListChangeLogEntriesPagedResponse listChangeLogEntries(String parent) { + ListChangeLogEntriesRequest request = + ListChangeLogEntriesRequest.newBuilder().setParent(parent).build(); + return listChangeLogEntries(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the changes made to an order. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   ListChangeLogEntriesRequest request =
          +   *       ListChangeLogEntriesRequest.newBuilder()
          +   *           .setParent(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .setFilter("filter-1274492040")
          +   *           .setOrderBy("orderBy-1207110587")
          +   *           .build();
          +   *   for (ChangeLogEntry element :
          +   *       gDCHardwareManagementClient.listChangeLogEntries(request).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListChangeLogEntriesPagedResponse listChangeLogEntries( + ListChangeLogEntriesRequest request) { + return listChangeLogEntriesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the changes made to an order. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   ListChangeLogEntriesRequest request =
          +   *       ListChangeLogEntriesRequest.newBuilder()
          +   *           .setParent(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .setFilter("filter-1274492040")
          +   *           .setOrderBy("orderBy-1207110587")
          +   *           .build();
          +   *   ApiFuture future =
          +   *       gDCHardwareManagementClient.listChangeLogEntriesPagedCallable().futureCall(request);
          +   *   // Do something.
          +   *   for (ChangeLogEntry element : future.get().iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + */ + public final UnaryCallable + listChangeLogEntriesPagedCallable() { + return stub.listChangeLogEntriesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the changes made to an order. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   ListChangeLogEntriesRequest request =
          +   *       ListChangeLogEntriesRequest.newBuilder()
          +   *           .setParent(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .setFilter("filter-1274492040")
          +   *           .setOrderBy("orderBy-1207110587")
          +   *           .build();
          +   *   while (true) {
          +   *     ListChangeLogEntriesResponse response =
          +   *         gDCHardwareManagementClient.listChangeLogEntriesCallable().call(request);
          +   *     for (ChangeLogEntry element : response.getChangeLogEntriesList()) {
          +   *       // doThingsWith(element);
          +   *     }
          +   *     String nextPageToken = response.getNextPageToken();
          +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
          +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
          +   *     } else {
          +   *       break;
          +   *     }
          +   *   }
          +   * }
          +   * }
          + */ + public final UnaryCallable + listChangeLogEntriesCallable() { + return stub.listChangeLogEntriesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a change to an order. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   ChangeLogEntryName name =
          +   *       ChangeLogEntryName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[CHANGE_LOG_ENTRY]");
          +   *   ChangeLogEntry response = gDCHardwareManagementClient.getChangeLogEntry(name);
          +   * }
          +   * }
          + * + * @param name Required. The name of the change log entry. Format: + * `projects/{project}/locations/{location}/orders/{order}/changeLogEntries/{change_log_entry}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ChangeLogEntry getChangeLogEntry(ChangeLogEntryName name) { + GetChangeLogEntryRequest request = + GetChangeLogEntryRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getChangeLogEntry(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a change to an order. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   String name =
          +   *       ChangeLogEntryName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[CHANGE_LOG_ENTRY]")
          +   *           .toString();
          +   *   ChangeLogEntry response = gDCHardwareManagementClient.getChangeLogEntry(name);
          +   * }
          +   * }
          + * + * @param name Required. The name of the change log entry. Format: + * `projects/{project}/locations/{location}/orders/{order}/changeLogEntries/{change_log_entry}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ChangeLogEntry getChangeLogEntry(String name) { + GetChangeLogEntryRequest request = GetChangeLogEntryRequest.newBuilder().setName(name).build(); + return getChangeLogEntry(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a change to an order. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   GetChangeLogEntryRequest request =
          +   *       GetChangeLogEntryRequest.newBuilder()
          +   *           .setName(
          +   *               ChangeLogEntryName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[CHANGE_LOG_ENTRY]")
          +   *                   .toString())
          +   *           .build();
          +   *   ChangeLogEntry response = gDCHardwareManagementClient.getChangeLogEntry(request);
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ChangeLogEntry getChangeLogEntry(GetChangeLogEntryRequest request) { + return getChangeLogEntryCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a change to an order. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   GetChangeLogEntryRequest request =
          +   *       GetChangeLogEntryRequest.newBuilder()
          +   *           .setName(
          +   *               ChangeLogEntryName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[CHANGE_LOG_ENTRY]")
          +   *                   .toString())
          +   *           .build();
          +   *   ApiFuture future =
          +   *       gDCHardwareManagementClient.getChangeLogEntryCallable().futureCall(request);
          +   *   // Do something.
          +   *   ChangeLogEntry response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable getChangeLogEntryCallable() { + return stub.getChangeLogEntryCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists SKUs for a given project and location. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
          +   *   for (Sku element : gDCHardwareManagementClient.listSkus(parent).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + * + * @param parent Required. The project and location to list SKUs in. Format: + * `projects/{project}/locations/{location}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSkusPagedResponse listSkus(LocationName parent) { + ListSkusRequest request = + ListSkusRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); + return listSkus(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists SKUs for a given project and location. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
          +   *   for (Sku element : gDCHardwareManagementClient.listSkus(parent).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + * + * @param parent Required. The project and location to list SKUs in. Format: + * `projects/{project}/locations/{location}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSkusPagedResponse listSkus(String parent) { + ListSkusRequest request = ListSkusRequest.newBuilder().setParent(parent).build(); + return listSkus(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists SKUs for a given project and location. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   ListSkusRequest request =
          +   *       ListSkusRequest.newBuilder()
          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .setFilter("filter-1274492040")
          +   *           .setOrderBy("orderBy-1207110587")
          +   *           .build();
          +   *   for (Sku element : gDCHardwareManagementClient.listSkus(request).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSkusPagedResponse listSkus(ListSkusRequest request) { + return listSkusPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists SKUs for a given project and location. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   ListSkusRequest request =
          +   *       ListSkusRequest.newBuilder()
          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .setFilter("filter-1274492040")
          +   *           .setOrderBy("orderBy-1207110587")
          +   *           .build();
          +   *   ApiFuture future =
          +   *       gDCHardwareManagementClient.listSkusPagedCallable().futureCall(request);
          +   *   // Do something.
          +   *   for (Sku element : future.get().iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + */ + public final UnaryCallable listSkusPagedCallable() { + return stub.listSkusPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists SKUs for a given project and location. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   ListSkusRequest request =
          +   *       ListSkusRequest.newBuilder()
          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .setFilter("filter-1274492040")
          +   *           .setOrderBy("orderBy-1207110587")
          +   *           .build();
          +   *   while (true) {
          +   *     ListSkusResponse response = gDCHardwareManagementClient.listSkusCallable().call(request);
          +   *     for (Sku element : response.getSkusList()) {
          +   *       // doThingsWith(element);
          +   *     }
          +   *     String nextPageToken = response.getNextPageToken();
          +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
          +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
          +   *     } else {
          +   *       break;
          +   *     }
          +   *   }
          +   * }
          +   * }
          + */ + public final UnaryCallable listSkusCallable() { + return stub.listSkusCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of an SKU. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   SkuName name = SkuName.of("[PROJECT]", "[LOCATION]", "[SKU]");
          +   *   Sku response = gDCHardwareManagementClient.getSku(name);
          +   * }
          +   * }
          + * + * @param name Required. The name of the SKU. Format: + * `projects/{project}/locations/{location}/skus/{sku}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Sku getSku(SkuName name) { + GetSkuRequest request = + GetSkuRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getSku(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of an SKU. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   String name = SkuName.of("[PROJECT]", "[LOCATION]", "[SKU]").toString();
          +   *   Sku response = gDCHardwareManagementClient.getSku(name);
          +   * }
          +   * }
          + * + * @param name Required. The name of the SKU. Format: + * `projects/{project}/locations/{location}/skus/{sku}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Sku getSku(String name) { + GetSkuRequest request = GetSkuRequest.newBuilder().setName(name).build(); + return getSku(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of an SKU. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   GetSkuRequest request =
          +   *       GetSkuRequest.newBuilder()
          +   *           .setName(SkuName.of("[PROJECT]", "[LOCATION]", "[SKU]").toString())
          +   *           .build();
          +   *   Sku response = gDCHardwareManagementClient.getSku(request);
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Sku getSku(GetSkuRequest request) { + return getSkuCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of an SKU. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   GetSkuRequest request =
          +   *       GetSkuRequest.newBuilder()
          +   *           .setName(SkuName.of("[PROJECT]", "[LOCATION]", "[SKU]").toString())
          +   *           .build();
          +   *   ApiFuture future = gDCHardwareManagementClient.getSkuCallable().futureCall(request);
          +   *   // Do something.
          +   *   Sku response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable getSkuCallable() { + return stub.getSkuCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists zones in a given project and location. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
          +   *   for (Zone element : gDCHardwareManagementClient.listZones(parent).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + * + * @param parent Required. The project and location to list zones in. Format: + * `projects/{project}/locations/{location}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListZonesPagedResponse listZones(LocationName parent) { + ListZonesRequest request = + ListZonesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); + return listZones(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists zones in a given project and location. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
          +   *   for (Zone element : gDCHardwareManagementClient.listZones(parent).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + * + * @param parent Required. The project and location to list zones in. Format: + * `projects/{project}/locations/{location}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListZonesPagedResponse listZones(String parent) { + ListZonesRequest request = ListZonesRequest.newBuilder().setParent(parent).build(); + return listZones(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists zones in a given project and location. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   ListZonesRequest request =
          +   *       ListZonesRequest.newBuilder()
          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .setFilter("filter-1274492040")
          +   *           .setOrderBy("orderBy-1207110587")
          +   *           .build();
          +   *   for (Zone element : gDCHardwareManagementClient.listZones(request).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListZonesPagedResponse listZones(ListZonesRequest request) { + return listZonesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists zones in a given project and location. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   ListZonesRequest request =
          +   *       ListZonesRequest.newBuilder()
          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .setFilter("filter-1274492040")
          +   *           .setOrderBy("orderBy-1207110587")
          +   *           .build();
          +   *   ApiFuture future =
          +   *       gDCHardwareManagementClient.listZonesPagedCallable().futureCall(request);
          +   *   // Do something.
          +   *   for (Zone element : future.get().iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + */ + public final UnaryCallable listZonesPagedCallable() { + return stub.listZonesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists zones in a given project and location. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   ListZonesRequest request =
          +   *       ListZonesRequest.newBuilder()
          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .setFilter("filter-1274492040")
          +   *           .setOrderBy("orderBy-1207110587")
          +   *           .build();
          +   *   while (true) {
          +   *     ListZonesResponse response = gDCHardwareManagementClient.listZonesCallable().call(request);
          +   *     for (Zone element : response.getZonesList()) {
          +   *       // doThingsWith(element);
          +   *     }
          +   *     String nextPageToken = response.getNextPageToken();
          +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
          +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
          +   *     } else {
          +   *       break;
          +   *     }
          +   *   }
          +   * }
          +   * }
          + */ + public final UnaryCallable listZonesCallable() { + return stub.listZonesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a zone. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   ZoneName name = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]");
          +   *   Zone response = gDCHardwareManagementClient.getZone(name);
          +   * }
          +   * }
          + * + * @param name Required. The name of the zone. Format: + * `projects/{project}/locations/{location}/zones/{zone}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Zone getZone(ZoneName name) { + GetZoneRequest request = + GetZoneRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getZone(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a zone. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   String name = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString();
          +   *   Zone response = gDCHardwareManagementClient.getZone(name);
          +   * }
          +   * }
          + * + * @param name Required. The name of the zone. Format: + * `projects/{project}/locations/{location}/zones/{zone}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Zone getZone(String name) { + GetZoneRequest request = GetZoneRequest.newBuilder().setName(name).build(); + return getZone(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a zone. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   GetZoneRequest request =
          +   *       GetZoneRequest.newBuilder()
          +   *           .setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
          +   *           .build();
          +   *   Zone response = gDCHardwareManagementClient.getZone(request);
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Zone getZone(GetZoneRequest request) { + return getZoneCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a zone. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   GetZoneRequest request =
          +   *       GetZoneRequest.newBuilder()
          +   *           .setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
          +   *           .build();
          +   *   ApiFuture future = gDCHardwareManagementClient.getZoneCallable().futureCall(request);
          +   *   // Do something.
          +   *   Zone response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable getZoneCallable() { + return stub.getZoneCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new zone in a given project and location. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
          +   *   Zone zone = Zone.newBuilder().build();
          +   *   String zoneId = "zoneId-696323609";
          +   *   Zone response = gDCHardwareManagementClient.createZoneAsync(parent, zone, zoneId).get();
          +   * }
          +   * }
          + * + * @param parent Required. The project and location to create the zone in. Format: + * `projects/{project}/locations/{location}` + * @param zone Required. The zone to create. + * @param zoneId Optional. ID used to uniquely identify the Zone within its parent scope. This + * field should contain at most 63 characters and must start with lowercase characters. Only + * lowercase characters, numbers and `-` are accepted. The `-` character cannot be the first + * or the last one. A system generated ID will be used if the field is not set. + *

          The zone.name field in the request will be ignored. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createZoneAsync( + LocationName parent, Zone zone, String zoneId) { + CreateZoneRequest request = + CreateZoneRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setZone(zone) + .setZoneId(zoneId) + .build(); + return createZoneAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new zone in a given project and location. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
          +   *   Zone zone = Zone.newBuilder().build();
          +   *   String zoneId = "zoneId-696323609";
          +   *   Zone response = gDCHardwareManagementClient.createZoneAsync(parent, zone, zoneId).get();
          +   * }
          +   * }
          + * + * @param parent Required. The project and location to create the zone in. Format: + * `projects/{project}/locations/{location}` + * @param zone Required. The zone to create. + * @param zoneId Optional. ID used to uniquely identify the Zone within its parent scope. This + * field should contain at most 63 characters and must start with lowercase characters. Only + * lowercase characters, numbers and `-` are accepted. The `-` character cannot be the first + * or the last one. A system generated ID will be used if the field is not set. + *

          The zone.name field in the request will be ignored. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createZoneAsync( + String parent, Zone zone, String zoneId) { + CreateZoneRequest request = + CreateZoneRequest.newBuilder().setParent(parent).setZone(zone).setZoneId(zoneId).build(); + return createZoneAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new zone in a given project and location. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   CreateZoneRequest request =
          +   *       CreateZoneRequest.newBuilder()
          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
          +   *           .setZoneId("zoneId-696323609")
          +   *           .setZone(Zone.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   Zone response = gDCHardwareManagementClient.createZoneAsync(request).get();
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createZoneAsync(CreateZoneRequest request) { + return createZoneOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new zone in a given project and location. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   CreateZoneRequest request =
          +   *       CreateZoneRequest.newBuilder()
          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
          +   *           .setZoneId("zoneId-696323609")
          +   *           .setZone(Zone.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   OperationFuture future =
          +   *       gDCHardwareManagementClient.createZoneOperationCallable().futureCall(request);
          +   *   // Do something.
          +   *   Zone response = future.get();
          +   * }
          +   * }
          + */ + public final OperationCallable + createZoneOperationCallable() { + return stub.createZoneOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new zone in a given project and location. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   CreateZoneRequest request =
          +   *       CreateZoneRequest.newBuilder()
          +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
          +   *           .setZoneId("zoneId-696323609")
          +   *           .setZone(Zone.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   ApiFuture future =
          +   *       gDCHardwareManagementClient.createZoneCallable().futureCall(request);
          +   *   // Do something.
          +   *   Operation response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable createZoneCallable() { + return stub.createZoneCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a zone. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   Zone zone = Zone.newBuilder().build();
          +   *   FieldMask updateMask = FieldMask.newBuilder().build();
          +   *   Zone response = gDCHardwareManagementClient.updateZoneAsync(zone, updateMask).get();
          +   * }
          +   * }
          + * + * @param zone Required. The zone to update. + * @param updateMask Required. A mask to specify the fields in the Zone to overwrite with this + * update. The fields specified in the update_mask are relative to the zone, not the full + * request. A field will be overwritten if it is in the mask. If you don't provide a mask then + * all fields will be overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateZoneAsync( + Zone zone, FieldMask updateMask) { + UpdateZoneRequest request = + UpdateZoneRequest.newBuilder().setZone(zone).setUpdateMask(updateMask).build(); + return updateZoneAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a zone. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   UpdateZoneRequest request =
          +   *       UpdateZoneRequest.newBuilder()
          +   *           .setUpdateMask(FieldMask.newBuilder().build())
          +   *           .setZone(Zone.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   Zone response = gDCHardwareManagementClient.updateZoneAsync(request).get();
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateZoneAsync(UpdateZoneRequest request) { + return updateZoneOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a zone. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   UpdateZoneRequest request =
          +   *       UpdateZoneRequest.newBuilder()
          +   *           .setUpdateMask(FieldMask.newBuilder().build())
          +   *           .setZone(Zone.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   OperationFuture future =
          +   *       gDCHardwareManagementClient.updateZoneOperationCallable().futureCall(request);
          +   *   // Do something.
          +   *   Zone response = future.get();
          +   * }
          +   * }
          + */ + public final OperationCallable + updateZoneOperationCallable() { + return stub.updateZoneOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a zone. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   UpdateZoneRequest request =
          +   *       UpdateZoneRequest.newBuilder()
          +   *           .setUpdateMask(FieldMask.newBuilder().build())
          +   *           .setZone(Zone.newBuilder().build())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   ApiFuture future =
          +   *       gDCHardwareManagementClient.updateZoneCallable().futureCall(request);
          +   *   // Do something.
          +   *   Operation response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable updateZoneCallable() { + return stub.updateZoneCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a zone. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   ZoneName name = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]");
          +   *   gDCHardwareManagementClient.deleteZoneAsync(name).get();
          +   * }
          +   * }
          + * + * @param name Required. The name of the zone. Format: + * `projects/{project}/locations/{location}/zones/{zone}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteZoneAsync(ZoneName name) { + DeleteZoneRequest request = + DeleteZoneRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteZoneAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a zone. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   String name = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString();
          +   *   gDCHardwareManagementClient.deleteZoneAsync(name).get();
          +   * }
          +   * }
          + * + * @param name Required. The name of the zone. Format: + * `projects/{project}/locations/{location}/zones/{zone}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteZoneAsync(String name) { + DeleteZoneRequest request = DeleteZoneRequest.newBuilder().setName(name).build(); + return deleteZoneAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a zone. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   DeleteZoneRequest request =
          +   *       DeleteZoneRequest.newBuilder()
          +   *           .setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   gDCHardwareManagementClient.deleteZoneAsync(request).get();
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteZoneAsync( + DeleteZoneRequest request) { + return deleteZoneOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a zone. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   DeleteZoneRequest request =
          +   *       DeleteZoneRequest.newBuilder()
          +   *           .setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   OperationFuture future =
          +   *       gDCHardwareManagementClient.deleteZoneOperationCallable().futureCall(request);
          +   *   // Do something.
          +   *   future.get();
          +   * }
          +   * }
          + */ + public final OperationCallable + deleteZoneOperationCallable() { + return stub.deleteZoneOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a zone. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   DeleteZoneRequest request =
          +   *       DeleteZoneRequest.newBuilder()
          +   *           .setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   ApiFuture future =
          +   *       gDCHardwareManagementClient.deleteZoneCallable().futureCall(request);
          +   *   // Do something.
          +   *   future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable deleteZoneCallable() { + return stub.deleteZoneCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Signals the state of a zone. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   ZoneName name = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]");
          +   *   SignalZoneStateRequest.StateSignal stateSignal =
          +   *       SignalZoneStateRequest.StateSignal.forNumber(0);
          +   *   Zone response = gDCHardwareManagementClient.signalZoneStateAsync(name, stateSignal).get();
          +   * }
          +   * }
          + * + * @param name Required. The name of the zone. Format: + * `projects/{project}/locations/{location}/zones/{zone}` + * @param stateSignal Required. The state signal to send for this zone. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture signalZoneStateAsync( + ZoneName name, SignalZoneStateRequest.StateSignal stateSignal) { + SignalZoneStateRequest request = + SignalZoneStateRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setStateSignal(stateSignal) + .build(); + return signalZoneStateAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Signals the state of a zone. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   String name = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString();
          +   *   SignalZoneStateRequest.StateSignal stateSignal =
          +   *       SignalZoneStateRequest.StateSignal.forNumber(0);
          +   *   Zone response = gDCHardwareManagementClient.signalZoneStateAsync(name, stateSignal).get();
          +   * }
          +   * }
          + * + * @param name Required. The name of the zone. Format: + * `projects/{project}/locations/{location}/zones/{zone}` + * @param stateSignal Required. The state signal to send for this zone. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture signalZoneStateAsync( + String name, SignalZoneStateRequest.StateSignal stateSignal) { + SignalZoneStateRequest request = + SignalZoneStateRequest.newBuilder().setName(name).setStateSignal(stateSignal).build(); + return signalZoneStateAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Signals the state of a zone. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   SignalZoneStateRequest request =
          +   *       SignalZoneStateRequest.newBuilder()
          +   *           .setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   Zone response = gDCHardwareManagementClient.signalZoneStateAsync(request).get();
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture signalZoneStateAsync( + SignalZoneStateRequest request) { + return signalZoneStateOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Signals the state of a zone. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   SignalZoneStateRequest request =
          +   *       SignalZoneStateRequest.newBuilder()
          +   *           .setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   OperationFuture future =
          +   *       gDCHardwareManagementClient.signalZoneStateOperationCallable().futureCall(request);
          +   *   // Do something.
          +   *   Zone response = future.get();
          +   * }
          +   * }
          + */ + public final OperationCallable + signalZoneStateOperationCallable() { + return stub.signalZoneStateOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Signals the state of a zone. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   SignalZoneStateRequest request =
          +   *       SignalZoneStateRequest.newBuilder()
          +   *           .setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString())
          +   *           .setRequestId("requestId693933066")
          +   *           .build();
          +   *   ApiFuture future =
          +   *       gDCHardwareManagementClient.signalZoneStateCallable().futureCall(request);
          +   *   // Do something.
          +   *   Operation response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable signalZoneStateCallable() { + return stub.signalZoneStateCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   ListLocationsRequest request =
          +   *       ListLocationsRequest.newBuilder()
          +   *           .setName("name3373707")
          +   *           .setFilter("filter-1274492040")
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .build();
          +   *   for (Location element : gDCHardwareManagementClient.listLocations(request).iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   ListLocationsRequest request =
          +   *       ListLocationsRequest.newBuilder()
          +   *           .setName("name3373707")
          +   *           .setFilter("filter-1274492040")
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .build();
          +   *   ApiFuture future =
          +   *       gDCHardwareManagementClient.listLocationsPagedCallable().futureCall(request);
          +   *   // Do something.
          +   *   for (Location element : future.get().iterateAll()) {
          +   *     // doThingsWith(element);
          +   *   }
          +   * }
          +   * }
          + */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   ListLocationsRequest request =
          +   *       ListLocationsRequest.newBuilder()
          +   *           .setName("name3373707")
          +   *           .setFilter("filter-1274492040")
          +   *           .setPageSize(883849137)
          +   *           .setPageToken("pageToken873572522")
          +   *           .build();
          +   *   while (true) {
          +   *     ListLocationsResponse response =
          +   *         gDCHardwareManagementClient.listLocationsCallable().call(request);
          +   *     for (Location element : response.getLocationsList()) {
          +   *       // doThingsWith(element);
          +   *     }
          +   *     String nextPageToken = response.getNextPageToken();
          +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
          +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
          +   *     } else {
          +   *       break;
          +   *     }
          +   *   }
          +   * }
          +   * }
          + */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
          +   *   Location response = gDCHardwareManagementClient.getLocation(request);
          +   * }
          +   * }
          + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

          Sample code: + * + *

          {@code
          +   * // This snippet has been automatically generated and should be regarded as a code template only.
          +   * // It will require modifications to work:
          +   * // - It may require correct/in-range values for request initialization.
          +   * // - It may require specifying regional endpoints when creating the service client as shown in
          +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          +   * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          +   *     GDCHardwareManagementClient.create()) {
          +   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
          +   *   ApiFuture future =
          +   *       gDCHardwareManagementClient.getLocationCallable().futureCall(request);
          +   *   // Do something.
          +   *   Location response = future.get();
          +   * }
          +   * }
          + */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListOrdersPagedResponse + extends AbstractPagedListResponse< + ListOrdersRequest, + ListOrdersResponse, + Order, + ListOrdersPage, + ListOrdersFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListOrdersPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListOrdersPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListOrdersPagedResponse(ListOrdersPage page) { + super(page, ListOrdersFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListOrdersPage + extends AbstractPage { + + private ListOrdersPage( + PageContext context, + ListOrdersResponse response) { + super(context, response); + } + + private static ListOrdersPage createEmptyPage() { + return new ListOrdersPage(null, null); + } + + @Override + protected ListOrdersPage createPage( + PageContext context, + ListOrdersResponse response) { + return new ListOrdersPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListOrdersFixedSizeCollection + extends AbstractFixedSizeCollection< + ListOrdersRequest, + ListOrdersResponse, + Order, + ListOrdersPage, + ListOrdersFixedSizeCollection> { + + private ListOrdersFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListOrdersFixedSizeCollection createEmptyCollection() { + return new ListOrdersFixedSizeCollection(null, 0); + } + + @Override + protected ListOrdersFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListOrdersFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListSitesPagedResponse + extends AbstractPagedListResponse< + ListSitesRequest, ListSitesResponse, Site, ListSitesPage, ListSitesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListSitesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListSitesPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListSitesPagedResponse(ListSitesPage page) { + super(page, ListSitesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListSitesPage + extends AbstractPage { + + private ListSitesPage( + PageContext context, + ListSitesResponse response) { + super(context, response); + } + + private static ListSitesPage createEmptyPage() { + return new ListSitesPage(null, null); + } + + @Override + protected ListSitesPage createPage( + PageContext context, + ListSitesResponse response) { + return new ListSitesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListSitesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListSitesRequest, ListSitesResponse, Site, ListSitesPage, ListSitesFixedSizeCollection> { + + private ListSitesFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListSitesFixedSizeCollection createEmptyCollection() { + return new ListSitesFixedSizeCollection(null, 0); + } + + @Override + protected ListSitesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListSitesFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListHardwareGroupsPagedResponse + extends AbstractPagedListResponse< + ListHardwareGroupsRequest, + ListHardwareGroupsResponse, + HardwareGroup, + ListHardwareGroupsPage, + ListHardwareGroupsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListHardwareGroupsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListHardwareGroupsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListHardwareGroupsPagedResponse(ListHardwareGroupsPage page) { + super(page, ListHardwareGroupsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListHardwareGroupsPage + extends AbstractPage< + ListHardwareGroupsRequest, + ListHardwareGroupsResponse, + HardwareGroup, + ListHardwareGroupsPage> { + + private ListHardwareGroupsPage( + PageContext context, + ListHardwareGroupsResponse response) { + super(context, response); + } + + private static ListHardwareGroupsPage createEmptyPage() { + return new ListHardwareGroupsPage(null, null); + } + + @Override + protected ListHardwareGroupsPage createPage( + PageContext context, + ListHardwareGroupsResponse response) { + return new ListHardwareGroupsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListHardwareGroupsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListHardwareGroupsRequest, + ListHardwareGroupsResponse, + HardwareGroup, + ListHardwareGroupsPage, + ListHardwareGroupsFixedSizeCollection> { + + private ListHardwareGroupsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListHardwareGroupsFixedSizeCollection createEmptyCollection() { + return new ListHardwareGroupsFixedSizeCollection(null, 0); + } + + @Override + protected ListHardwareGroupsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListHardwareGroupsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListHardwarePagedResponse + extends AbstractPagedListResponse< + ListHardwareRequest, + ListHardwareResponse, + Hardware, + ListHardwarePage, + ListHardwareFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListHardwarePage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListHardwarePagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListHardwarePagedResponse(ListHardwarePage page) { + super(page, ListHardwareFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListHardwarePage + extends AbstractPage { + + private ListHardwarePage( + PageContext context, + ListHardwareResponse response) { + super(context, response); + } + + private static ListHardwarePage createEmptyPage() { + return new ListHardwarePage(null, null); + } + + @Override + protected ListHardwarePage createPage( + PageContext context, + ListHardwareResponse response) { + return new ListHardwarePage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListHardwareFixedSizeCollection + extends AbstractFixedSizeCollection< + ListHardwareRequest, + ListHardwareResponse, + Hardware, + ListHardwarePage, + ListHardwareFixedSizeCollection> { + + private ListHardwareFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListHardwareFixedSizeCollection createEmptyCollection() { + return new ListHardwareFixedSizeCollection(null, 0); + } + + @Override + protected ListHardwareFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListHardwareFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListCommentsPagedResponse + extends AbstractPagedListResponse< + ListCommentsRequest, + ListCommentsResponse, + Comment, + ListCommentsPage, + ListCommentsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListCommentsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListCommentsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListCommentsPagedResponse(ListCommentsPage page) { + super(page, ListCommentsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListCommentsPage + extends AbstractPage { + + private ListCommentsPage( + PageContext context, + ListCommentsResponse response) { + super(context, response); + } + + private static ListCommentsPage createEmptyPage() { + return new ListCommentsPage(null, null); + } + + @Override + protected ListCommentsPage createPage( + PageContext context, + ListCommentsResponse response) { + return new ListCommentsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListCommentsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListCommentsRequest, + ListCommentsResponse, + Comment, + ListCommentsPage, + ListCommentsFixedSizeCollection> { + + private ListCommentsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListCommentsFixedSizeCollection createEmptyCollection() { + return new ListCommentsFixedSizeCollection(null, 0); + } + + @Override + protected ListCommentsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListCommentsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListChangeLogEntriesPagedResponse + extends AbstractPagedListResponse< + ListChangeLogEntriesRequest, + ListChangeLogEntriesResponse, + ChangeLogEntry, + ListChangeLogEntriesPage, + ListChangeLogEntriesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListChangeLogEntriesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListChangeLogEntriesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListChangeLogEntriesPagedResponse(ListChangeLogEntriesPage page) { + super(page, ListChangeLogEntriesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListChangeLogEntriesPage + extends AbstractPage< + ListChangeLogEntriesRequest, + ListChangeLogEntriesResponse, + ChangeLogEntry, + ListChangeLogEntriesPage> { + + private ListChangeLogEntriesPage( + PageContext + context, + ListChangeLogEntriesResponse response) { + super(context, response); + } + + private static ListChangeLogEntriesPage createEmptyPage() { + return new ListChangeLogEntriesPage(null, null); + } + + @Override + protected ListChangeLogEntriesPage createPage( + PageContext + context, + ListChangeLogEntriesResponse response) { + return new ListChangeLogEntriesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListChangeLogEntriesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListChangeLogEntriesRequest, + ListChangeLogEntriesResponse, + ChangeLogEntry, + ListChangeLogEntriesPage, + ListChangeLogEntriesFixedSizeCollection> { + + private ListChangeLogEntriesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListChangeLogEntriesFixedSizeCollection createEmptyCollection() { + return new ListChangeLogEntriesFixedSizeCollection(null, 0); + } + + @Override + protected ListChangeLogEntriesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListChangeLogEntriesFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListSkusPagedResponse + extends AbstractPagedListResponse< + ListSkusRequest, ListSkusResponse, Sku, ListSkusPage, ListSkusFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListSkusPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListSkusPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListSkusPagedResponse(ListSkusPage page) { + super(page, ListSkusFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListSkusPage + extends AbstractPage { + + private ListSkusPage( + PageContext context, ListSkusResponse response) { + super(context, response); + } + + private static ListSkusPage createEmptyPage() { + return new ListSkusPage(null, null); + } + + @Override + protected ListSkusPage createPage( + PageContext context, ListSkusResponse response) { + return new ListSkusPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListSkusFixedSizeCollection + extends AbstractFixedSizeCollection< + ListSkusRequest, ListSkusResponse, Sku, ListSkusPage, ListSkusFixedSizeCollection> { + + private ListSkusFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListSkusFixedSizeCollection createEmptyCollection() { + return new ListSkusFixedSizeCollection(null, 0); + } + + @Override + protected ListSkusFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListSkusFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListZonesPagedResponse + extends AbstractPagedListResponse< + ListZonesRequest, ListZonesResponse, Zone, ListZonesPage, ListZonesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListZonesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListZonesPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListZonesPagedResponse(ListZonesPage page) { + super(page, ListZonesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListZonesPage + extends AbstractPage { + + private ListZonesPage( + PageContext context, + ListZonesResponse response) { + super(context, response); + } + + private static ListZonesPage createEmptyPage() { + return new ListZonesPage(null, null); + } + + @Override + protected ListZonesPage createPage( + PageContext context, + ListZonesResponse response) { + return new ListZonesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListZonesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListZonesRequest, ListZonesResponse, Zone, ListZonesPage, ListZonesFixedSizeCollection> { + + private ListZonesFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListZonesFixedSizeCollection createEmptyCollection() { + return new ListZonesFixedSizeCollection(null, 0); + } + + @Override + protected ListZonesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListZonesFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementSettings.java b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementSettings.java new file mode 100644 index 000000000000..8ea02ce899cd --- /dev/null +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementSettings.java @@ -0,0 +1,811 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha; + +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListChangeLogEntriesPagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListCommentsPagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListHardwareGroupsPagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListHardwarePagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListLocationsPagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListOrdersPagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListSitesPagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListSkusPagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListZonesPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.gdchardwaremanagement.v1alpha.stub.GDCHardwareManagementStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link GDCHardwareManagementClient}. + * + *

          The default instance has everything set to sensible defaults: + * + *

            + *
          • The default service address (gdchardwaremanagement.googleapis.com) and default port (443) + * are used. + *
          • Credentials are acquired automatically through Application Default Credentials. + *
          • Retries are configured for idempotent methods but not for non-idempotent methods. + *
          + * + *

          The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

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

          {@code
          + * // This snippet has been automatically generated and should be regarded as a code template only.
          + * // It will require modifications to work:
          + * // - It may require correct/in-range values for request initialization.
          + * // - It may require specifying regional endpoints when creating the service client as shown in
          + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          + * GDCHardwareManagementSettings.Builder gDCHardwareManagementSettingsBuilder =
          + *     GDCHardwareManagementSettings.newBuilder();
          + * gDCHardwareManagementSettingsBuilder
          + *     .getOrderSettings()
          + *     .setRetrySettings(
          + *         gDCHardwareManagementSettingsBuilder
          + *             .getOrderSettings()
          + *             .getRetrySettings()
          + *             .toBuilder()
          + *             .setTotalTimeout(Duration.ofSeconds(30))
          + *             .build());
          + * GDCHardwareManagementSettings gDCHardwareManagementSettings =
          + *     gDCHardwareManagementSettingsBuilder.build();
          + * }
          + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GDCHardwareManagementSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to listOrders. */ + public PagedCallSettings + listOrdersSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()).listOrdersSettings(); + } + + /** Returns the object with the settings used for calls to getOrder. */ + public UnaryCallSettings getOrderSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()).getOrderSettings(); + } + + /** Returns the object with the settings used for calls to createOrder. */ + public UnaryCallSettings createOrderSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()).createOrderSettings(); + } + + /** Returns the object with the settings used for calls to createOrder. */ + public OperationCallSettings + createOrderOperationSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()).createOrderOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateOrder. */ + public UnaryCallSettings updateOrderSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()).updateOrderSettings(); + } + + /** Returns the object with the settings used for calls to updateOrder. */ + public OperationCallSettings + updateOrderOperationSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()).updateOrderOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteOrder. */ + public UnaryCallSettings deleteOrderSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()).deleteOrderSettings(); + } + + /** Returns the object with the settings used for calls to deleteOrder. */ + public OperationCallSettings + deleteOrderOperationSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()).deleteOrderOperationSettings(); + } + + /** Returns the object with the settings used for calls to submitOrder. */ + public UnaryCallSettings submitOrderSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()).submitOrderSettings(); + } + + /** Returns the object with the settings used for calls to submitOrder. */ + public OperationCallSettings + submitOrderOperationSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()).submitOrderOperationSettings(); + } + + /** Returns the object with the settings used for calls to listSites. */ + public PagedCallSettings + listSitesSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()).listSitesSettings(); + } + + /** Returns the object with the settings used for calls to getSite. */ + public UnaryCallSettings getSiteSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()).getSiteSettings(); + } + + /** Returns the object with the settings used for calls to createSite. */ + public UnaryCallSettings createSiteSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()).createSiteSettings(); + } + + /** Returns the object with the settings used for calls to createSite. */ + public OperationCallSettings + createSiteOperationSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()).createSiteOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateSite. */ + public UnaryCallSettings updateSiteSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()).updateSiteSettings(); + } + + /** Returns the object with the settings used for calls to updateSite. */ + public OperationCallSettings + updateSiteOperationSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()).updateSiteOperationSettings(); + } + + /** Returns the object with the settings used for calls to listHardwareGroups. */ + public PagedCallSettings< + ListHardwareGroupsRequest, ListHardwareGroupsResponse, ListHardwareGroupsPagedResponse> + listHardwareGroupsSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()).listHardwareGroupsSettings(); + } + + /** Returns the object with the settings used for calls to getHardwareGroup. */ + public UnaryCallSettings getHardwareGroupSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()).getHardwareGroupSettings(); + } + + /** Returns the object with the settings used for calls to createHardwareGroup. */ + public UnaryCallSettings createHardwareGroupSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()).createHardwareGroupSettings(); + } + + /** Returns the object with the settings used for calls to createHardwareGroup. */ + public OperationCallSettings + createHardwareGroupOperationSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()) + .createHardwareGroupOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateHardwareGroup. */ + public UnaryCallSettings updateHardwareGroupSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()).updateHardwareGroupSettings(); + } + + /** Returns the object with the settings used for calls to updateHardwareGroup. */ + public OperationCallSettings + updateHardwareGroupOperationSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()) + .updateHardwareGroupOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteHardwareGroup. */ + public UnaryCallSettings deleteHardwareGroupSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()).deleteHardwareGroupSettings(); + } + + /** Returns the object with the settings used for calls to deleteHardwareGroup. */ + public OperationCallSettings + deleteHardwareGroupOperationSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()) + .deleteHardwareGroupOperationSettings(); + } + + /** Returns the object with the settings used for calls to listHardware. */ + public PagedCallSettings + listHardwareSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()).listHardwareSettings(); + } + + /** Returns the object with the settings used for calls to getHardware. */ + public UnaryCallSettings getHardwareSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()).getHardwareSettings(); + } + + /** Returns the object with the settings used for calls to createHardware. */ + public UnaryCallSettings createHardwareSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()).createHardwareSettings(); + } + + /** Returns the object with the settings used for calls to createHardware. */ + public OperationCallSettings + createHardwareOperationSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()) + .createHardwareOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateHardware. */ + public UnaryCallSettings updateHardwareSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()).updateHardwareSettings(); + } + + /** Returns the object with the settings used for calls to updateHardware. */ + public OperationCallSettings + updateHardwareOperationSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()) + .updateHardwareOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteHardware. */ + public UnaryCallSettings deleteHardwareSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()).deleteHardwareSettings(); + } + + /** Returns the object with the settings used for calls to deleteHardware. */ + public OperationCallSettings + deleteHardwareOperationSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()) + .deleteHardwareOperationSettings(); + } + + /** Returns the object with the settings used for calls to listComments. */ + public PagedCallSettings + listCommentsSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()).listCommentsSettings(); + } + + /** Returns the object with the settings used for calls to getComment. */ + public UnaryCallSettings getCommentSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()).getCommentSettings(); + } + + /** Returns the object with the settings used for calls to createComment. */ + public UnaryCallSettings createCommentSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()).createCommentSettings(); + } + + /** Returns the object with the settings used for calls to createComment. */ + public OperationCallSettings + createCommentOperationSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()).createCommentOperationSettings(); + } + + /** Returns the object with the settings used for calls to listChangeLogEntries. */ + public PagedCallSettings< + ListChangeLogEntriesRequest, + ListChangeLogEntriesResponse, + ListChangeLogEntriesPagedResponse> + listChangeLogEntriesSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()).listChangeLogEntriesSettings(); + } + + /** Returns the object with the settings used for calls to getChangeLogEntry. */ + public UnaryCallSettings getChangeLogEntrySettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()).getChangeLogEntrySettings(); + } + + /** Returns the object with the settings used for calls to listSkus. */ + public PagedCallSettings + listSkusSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()).listSkusSettings(); + } + + /** Returns the object with the settings used for calls to getSku. */ + public UnaryCallSettings getSkuSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()).getSkuSettings(); + } + + /** Returns the object with the settings used for calls to listZones. */ + public PagedCallSettings + listZonesSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()).listZonesSettings(); + } + + /** Returns the object with the settings used for calls to getZone. */ + public UnaryCallSettings getZoneSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()).getZoneSettings(); + } + + /** Returns the object with the settings used for calls to createZone. */ + public UnaryCallSettings createZoneSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()).createZoneSettings(); + } + + /** Returns the object with the settings used for calls to createZone. */ + public OperationCallSettings + createZoneOperationSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()).createZoneOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateZone. */ + public UnaryCallSettings updateZoneSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()).updateZoneSettings(); + } + + /** Returns the object with the settings used for calls to updateZone. */ + public OperationCallSettings + updateZoneOperationSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()).updateZoneOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteZone. */ + public UnaryCallSettings deleteZoneSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()).deleteZoneSettings(); + } + + /** Returns the object with the settings used for calls to deleteZone. */ + public OperationCallSettings + deleteZoneOperationSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()).deleteZoneOperationSettings(); + } + + /** Returns the object with the settings used for calls to signalZoneState. */ + public UnaryCallSettings signalZoneStateSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()).signalZoneStateSettings(); + } + + /** Returns the object with the settings used for calls to signalZoneState. */ + public OperationCallSettings + signalZoneStateOperationSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()) + .signalZoneStateOperationSettings(); + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()).listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return ((GDCHardwareManagementStubSettings) getStubSettings()).getLocationSettings(); + } + + public static final GDCHardwareManagementSettings create(GDCHardwareManagementStubSettings stub) + throws IOException { + return new GDCHardwareManagementSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return GDCHardwareManagementStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return GDCHardwareManagementStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return GDCHardwareManagementStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GDCHardwareManagementStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return GDCHardwareManagementStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return GDCHardwareManagementStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return GDCHardwareManagementStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return GDCHardwareManagementStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected GDCHardwareManagementSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for GDCHardwareManagementSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(GDCHardwareManagementStubSettings.newBuilder(clientContext)); + } + + protected Builder(GDCHardwareManagementSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(GDCHardwareManagementStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(GDCHardwareManagementStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(GDCHardwareManagementStubSettings.newHttpJsonBuilder()); + } + + public GDCHardwareManagementStubSettings.Builder getStubSettingsBuilder() { + return ((GDCHardwareManagementStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

          Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to listOrders. */ + public PagedCallSettings.Builder + listOrdersSettings() { + return getStubSettingsBuilder().listOrdersSettings(); + } + + /** Returns the builder for the settings used for calls to getOrder. */ + public UnaryCallSettings.Builder getOrderSettings() { + return getStubSettingsBuilder().getOrderSettings(); + } + + /** Returns the builder for the settings used for calls to createOrder. */ + public UnaryCallSettings.Builder createOrderSettings() { + return getStubSettingsBuilder().createOrderSettings(); + } + + /** Returns the builder for the settings used for calls to createOrder. */ + public OperationCallSettings.Builder + createOrderOperationSettings() { + return getStubSettingsBuilder().createOrderOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateOrder. */ + public UnaryCallSettings.Builder updateOrderSettings() { + return getStubSettingsBuilder().updateOrderSettings(); + } + + /** Returns the builder for the settings used for calls to updateOrder. */ + public OperationCallSettings.Builder + updateOrderOperationSettings() { + return getStubSettingsBuilder().updateOrderOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteOrder. */ + public UnaryCallSettings.Builder deleteOrderSettings() { + return getStubSettingsBuilder().deleteOrderSettings(); + } + + /** Returns the builder for the settings used for calls to deleteOrder. */ + public OperationCallSettings.Builder + deleteOrderOperationSettings() { + return getStubSettingsBuilder().deleteOrderOperationSettings(); + } + + /** Returns the builder for the settings used for calls to submitOrder. */ + public UnaryCallSettings.Builder submitOrderSettings() { + return getStubSettingsBuilder().submitOrderSettings(); + } + + /** Returns the builder for the settings used for calls to submitOrder. */ + public OperationCallSettings.Builder + submitOrderOperationSettings() { + return getStubSettingsBuilder().submitOrderOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listSites. */ + public PagedCallSettings.Builder + listSitesSettings() { + return getStubSettingsBuilder().listSitesSettings(); + } + + /** Returns the builder for the settings used for calls to getSite. */ + public UnaryCallSettings.Builder getSiteSettings() { + return getStubSettingsBuilder().getSiteSettings(); + } + + /** Returns the builder for the settings used for calls to createSite. */ + public UnaryCallSettings.Builder createSiteSettings() { + return getStubSettingsBuilder().createSiteSettings(); + } + + /** Returns the builder for the settings used for calls to createSite. */ + public OperationCallSettings.Builder + createSiteOperationSettings() { + return getStubSettingsBuilder().createSiteOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateSite. */ + public UnaryCallSettings.Builder updateSiteSettings() { + return getStubSettingsBuilder().updateSiteSettings(); + } + + /** Returns the builder for the settings used for calls to updateSite. */ + public OperationCallSettings.Builder + updateSiteOperationSettings() { + return getStubSettingsBuilder().updateSiteOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listHardwareGroups. */ + public PagedCallSettings.Builder< + ListHardwareGroupsRequest, ListHardwareGroupsResponse, ListHardwareGroupsPagedResponse> + listHardwareGroupsSettings() { + return getStubSettingsBuilder().listHardwareGroupsSettings(); + } + + /** Returns the builder for the settings used for calls to getHardwareGroup. */ + public UnaryCallSettings.Builder + getHardwareGroupSettings() { + return getStubSettingsBuilder().getHardwareGroupSettings(); + } + + /** Returns the builder for the settings used for calls to createHardwareGroup. */ + public UnaryCallSettings.Builder + createHardwareGroupSettings() { + return getStubSettingsBuilder().createHardwareGroupSettings(); + } + + /** Returns the builder for the settings used for calls to createHardwareGroup. */ + public OperationCallSettings.Builder< + CreateHardwareGroupRequest, HardwareGroup, OperationMetadata> + createHardwareGroupOperationSettings() { + return getStubSettingsBuilder().createHardwareGroupOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateHardwareGroup. */ + public UnaryCallSettings.Builder + updateHardwareGroupSettings() { + return getStubSettingsBuilder().updateHardwareGroupSettings(); + } + + /** Returns the builder for the settings used for calls to updateHardwareGroup. */ + public OperationCallSettings.Builder< + UpdateHardwareGroupRequest, HardwareGroup, OperationMetadata> + updateHardwareGroupOperationSettings() { + return getStubSettingsBuilder().updateHardwareGroupOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteHardwareGroup. */ + public UnaryCallSettings.Builder + deleteHardwareGroupSettings() { + return getStubSettingsBuilder().deleteHardwareGroupSettings(); + } + + /** Returns the builder for the settings used for calls to deleteHardwareGroup. */ + public OperationCallSettings.Builder + deleteHardwareGroupOperationSettings() { + return getStubSettingsBuilder().deleteHardwareGroupOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listHardware. */ + public PagedCallSettings.Builder< + ListHardwareRequest, ListHardwareResponse, ListHardwarePagedResponse> + listHardwareSettings() { + return getStubSettingsBuilder().listHardwareSettings(); + } + + /** Returns the builder for the settings used for calls to getHardware. */ + public UnaryCallSettings.Builder getHardwareSettings() { + return getStubSettingsBuilder().getHardwareSettings(); + } + + /** Returns the builder for the settings used for calls to createHardware. */ + public UnaryCallSettings.Builder createHardwareSettings() { + return getStubSettingsBuilder().createHardwareSettings(); + } + + /** Returns the builder for the settings used for calls to createHardware. */ + public OperationCallSettings.Builder + createHardwareOperationSettings() { + return getStubSettingsBuilder().createHardwareOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateHardware. */ + public UnaryCallSettings.Builder updateHardwareSettings() { + return getStubSettingsBuilder().updateHardwareSettings(); + } + + /** Returns the builder for the settings used for calls to updateHardware. */ + public OperationCallSettings.Builder + updateHardwareOperationSettings() { + return getStubSettingsBuilder().updateHardwareOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteHardware. */ + public UnaryCallSettings.Builder deleteHardwareSettings() { + return getStubSettingsBuilder().deleteHardwareSettings(); + } + + /** Returns the builder for the settings used for calls to deleteHardware. */ + public OperationCallSettings.Builder + deleteHardwareOperationSettings() { + return getStubSettingsBuilder().deleteHardwareOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listComments. */ + public PagedCallSettings.Builder< + ListCommentsRequest, ListCommentsResponse, ListCommentsPagedResponse> + listCommentsSettings() { + return getStubSettingsBuilder().listCommentsSettings(); + } + + /** Returns the builder for the settings used for calls to getComment. */ + public UnaryCallSettings.Builder getCommentSettings() { + return getStubSettingsBuilder().getCommentSettings(); + } + + /** Returns the builder for the settings used for calls to createComment. */ + public UnaryCallSettings.Builder createCommentSettings() { + return getStubSettingsBuilder().createCommentSettings(); + } + + /** Returns the builder for the settings used for calls to createComment. */ + public OperationCallSettings.Builder + createCommentOperationSettings() { + return getStubSettingsBuilder().createCommentOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listChangeLogEntries. */ + public PagedCallSettings.Builder< + ListChangeLogEntriesRequest, + ListChangeLogEntriesResponse, + ListChangeLogEntriesPagedResponse> + listChangeLogEntriesSettings() { + return getStubSettingsBuilder().listChangeLogEntriesSettings(); + } + + /** Returns the builder for the settings used for calls to getChangeLogEntry. */ + public UnaryCallSettings.Builder + getChangeLogEntrySettings() { + return getStubSettingsBuilder().getChangeLogEntrySettings(); + } + + /** Returns the builder for the settings used for calls to listSkus. */ + public PagedCallSettings.Builder + listSkusSettings() { + return getStubSettingsBuilder().listSkusSettings(); + } + + /** Returns the builder for the settings used for calls to getSku. */ + public UnaryCallSettings.Builder getSkuSettings() { + return getStubSettingsBuilder().getSkuSettings(); + } + + /** Returns the builder for the settings used for calls to listZones. */ + public PagedCallSettings.Builder + listZonesSettings() { + return getStubSettingsBuilder().listZonesSettings(); + } + + /** Returns the builder for the settings used for calls to getZone. */ + public UnaryCallSettings.Builder getZoneSettings() { + return getStubSettingsBuilder().getZoneSettings(); + } + + /** Returns the builder for the settings used for calls to createZone. */ + public UnaryCallSettings.Builder createZoneSettings() { + return getStubSettingsBuilder().createZoneSettings(); + } + + /** Returns the builder for the settings used for calls to createZone. */ + public OperationCallSettings.Builder + createZoneOperationSettings() { + return getStubSettingsBuilder().createZoneOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateZone. */ + public UnaryCallSettings.Builder updateZoneSettings() { + return getStubSettingsBuilder().updateZoneSettings(); + } + + /** Returns the builder for the settings used for calls to updateZone. */ + public OperationCallSettings.Builder + updateZoneOperationSettings() { + return getStubSettingsBuilder().updateZoneOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteZone. */ + public UnaryCallSettings.Builder deleteZoneSettings() { + return getStubSettingsBuilder().deleteZoneSettings(); + } + + /** Returns the builder for the settings used for calls to deleteZone. */ + public OperationCallSettings.Builder + deleteZoneOperationSettings() { + return getStubSettingsBuilder().deleteZoneOperationSettings(); + } + + /** Returns the builder for the settings used for calls to signalZoneState. */ + public UnaryCallSettings.Builder signalZoneStateSettings() { + return getStubSettingsBuilder().signalZoneStateSettings(); + } + + /** Returns the builder for the settings used for calls to signalZoneState. */ + public OperationCallSettings.Builder + signalZoneStateOperationSettings() { + return getStubSettingsBuilder().signalZoneStateOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return getStubSettingsBuilder().listLocationsSettings(); + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getStubSettingsBuilder().getLocationSettings(); + } + + @Override + public GDCHardwareManagementSettings build() throws IOException { + return new GDCHardwareManagementSettings(this); + } + } +} diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/gapic_metadata.json b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/gapic_metadata.json new file mode 100644 index 000000000000..cee147eabcd3 --- /dev/null +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/gapic_metadata.json @@ -0,0 +1,123 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "java", + "protoPackage": "google.cloud.gdchardwaremanagement.v1alpha", + "libraryPackage": "com.google.cloud.gdchardwaremanagement.v1alpha", + "services": { + "GDCHardwareManagement": { + "clients": { + "grpc": { + "libraryClient": "GDCHardwareManagementClient", + "rpcs": { + "CreateComment": { + "methods": ["createCommentAsync", "createCommentAsync", "createCommentAsync", "createCommentOperationCallable", "createCommentCallable"] + }, + "CreateHardware": { + "methods": ["createHardwareAsync", "createHardwareAsync", "createHardwareAsync", "createHardwareOperationCallable", "createHardwareCallable"] + }, + "CreateHardwareGroup": { + "methods": ["createHardwareGroupAsync", "createHardwareGroupAsync", "createHardwareGroupAsync", "createHardwareGroupOperationCallable", "createHardwareGroupCallable"] + }, + "CreateOrder": { + "methods": ["createOrderAsync", "createOrderAsync", "createOrderAsync", "createOrderOperationCallable", "createOrderCallable"] + }, + "CreateSite": { + "methods": ["createSiteAsync", "createSiteAsync", "createSiteAsync", "createSiteOperationCallable", "createSiteCallable"] + }, + "CreateZone": { + "methods": ["createZoneAsync", "createZoneAsync", "createZoneAsync", "createZoneOperationCallable", "createZoneCallable"] + }, + "DeleteHardware": { + "methods": ["deleteHardwareAsync", "deleteHardwareAsync", "deleteHardwareAsync", "deleteHardwareOperationCallable", "deleteHardwareCallable"] + }, + "DeleteHardwareGroup": { + "methods": ["deleteHardwareGroupAsync", "deleteHardwareGroupAsync", "deleteHardwareGroupAsync", "deleteHardwareGroupOperationCallable", "deleteHardwareGroupCallable"] + }, + "DeleteOrder": { + "methods": ["deleteOrderAsync", "deleteOrderAsync", "deleteOrderAsync", "deleteOrderOperationCallable", "deleteOrderCallable"] + }, + "DeleteZone": { + "methods": ["deleteZoneAsync", "deleteZoneAsync", "deleteZoneAsync", "deleteZoneOperationCallable", "deleteZoneCallable"] + }, + "GetChangeLogEntry": { + "methods": ["getChangeLogEntry", "getChangeLogEntry", "getChangeLogEntry", "getChangeLogEntryCallable"] + }, + "GetComment": { + "methods": ["getComment", "getComment", "getComment", "getCommentCallable"] + }, + "GetHardware": { + "methods": ["getHardware", "getHardware", "getHardware", "getHardwareCallable"] + }, + "GetHardwareGroup": { + "methods": ["getHardwareGroup", "getHardwareGroup", "getHardwareGroup", "getHardwareGroupCallable"] + }, + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, + "GetOrder": { + "methods": ["getOrder", "getOrder", "getOrder", "getOrderCallable"] + }, + "GetSite": { + "methods": ["getSite", "getSite", "getSite", "getSiteCallable"] + }, + "GetSku": { + "methods": ["getSku", "getSku", "getSku", "getSkuCallable"] + }, + "GetZone": { + "methods": ["getZone", "getZone", "getZone", "getZoneCallable"] + }, + "ListChangeLogEntries": { + "methods": ["listChangeLogEntries", "listChangeLogEntries", "listChangeLogEntries", "listChangeLogEntriesPagedCallable", "listChangeLogEntriesCallable"] + }, + "ListComments": { + "methods": ["listComments", "listComments", "listComments", "listCommentsPagedCallable", "listCommentsCallable"] + }, + "ListHardware": { + "methods": ["listHardware", "listHardware", "listHardware", "listHardwarePagedCallable", "listHardwareCallable"] + }, + "ListHardwareGroups": { + "methods": ["listHardwareGroups", "listHardwareGroups", "listHardwareGroups", "listHardwareGroupsPagedCallable", "listHardwareGroupsCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + }, + "ListOrders": { + "methods": ["listOrders", "listOrders", "listOrders", "listOrdersPagedCallable", "listOrdersCallable"] + }, + "ListSites": { + "methods": ["listSites", "listSites", "listSites", "listSitesPagedCallable", "listSitesCallable"] + }, + "ListSkus": { + "methods": ["listSkus", "listSkus", "listSkus", "listSkusPagedCallable", "listSkusCallable"] + }, + "ListZones": { + "methods": ["listZones", "listZones", "listZones", "listZonesPagedCallable", "listZonesCallable"] + }, + "SignalZoneState": { + "methods": ["signalZoneStateAsync", "signalZoneStateAsync", "signalZoneStateAsync", "signalZoneStateOperationCallable", "signalZoneStateCallable"] + }, + "SubmitOrder": { + "methods": ["submitOrderAsync", "submitOrderAsync", "submitOrderAsync", "submitOrderOperationCallable", "submitOrderCallable"] + }, + "UpdateHardware": { + "methods": ["updateHardwareAsync", "updateHardwareAsync", "updateHardwareOperationCallable", "updateHardwareCallable"] + }, + "UpdateHardwareGroup": { + "methods": ["updateHardwareGroupAsync", "updateHardwareGroupAsync", "updateHardwareGroupOperationCallable", "updateHardwareGroupCallable"] + }, + "UpdateOrder": { + "methods": ["updateOrderAsync", "updateOrderAsync", "updateOrderOperationCallable", "updateOrderCallable"] + }, + "UpdateSite": { + "methods": ["updateSiteAsync", "updateSiteAsync", "updateSiteOperationCallable", "updateSiteCallable"] + }, + "UpdateZone": { + "methods": ["updateZoneAsync", "updateZoneAsync", "updateZoneOperationCallable", "updateZoneCallable"] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/package-info.java b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/package-info.java new file mode 100644 index 000000000000..6406236643ef --- /dev/null +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/package-info.java @@ -0,0 +1,44 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * A client to GDC Hardware Management API + * + *

          The interfaces provided are listed below, along with usage samples. + * + *

          ======================= GDCHardwareManagementClient ======================= + * + *

          Service Description: The GDC Hardware Management service. + * + *

          Sample for GDCHardwareManagementClient: + * + *

          {@code
          + * // This snippet has been automatically generated and should be regarded as a code template only.
          + * // It will require modifications to work:
          + * // - It may require correct/in-range values for request initialization.
          + * // - It may require specifying regional endpoints when creating the service client as shown in
          + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          + * try (GDCHardwareManagementClient gDCHardwareManagementClient =
          + *     GDCHardwareManagementClient.create()) {
          + *   OrderName name = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]");
          + *   Order response = gDCHardwareManagementClient.getOrder(name);
          + * }
          + * }
          + */ +@Generated("by gapic-generator-java") +package com.google.cloud.gdchardwaremanagement.v1alpha; + +import javax.annotation.Generated; diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/GDCHardwareManagementStub.java b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/GDCHardwareManagementStub.java new file mode 100644 index 000000000000..96cb865bfe3e --- /dev/null +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/GDCHardwareManagementStub.java @@ -0,0 +1,381 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.stub; + +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListChangeLogEntriesPagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListCommentsPagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListHardwareGroupsPagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListHardwarePagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListLocationsPagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListOrdersPagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListSitesPagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListSkusPagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListZonesPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry; +import com.google.cloud.gdchardwaremanagement.v1alpha.Comment; +import com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.Hardware; +import com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse; +import com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata; +import com.google.cloud.gdchardwaremanagement.v1alpha.Order; +import com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.Site; +import com.google.cloud.gdchardwaremanagement.v1alpha.Sku; +import com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.Zone; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the GDCHardwareManagement service API. + * + *

          This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class GDCHardwareManagementStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; + } + + public UnaryCallable listOrdersPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listOrdersPagedCallable()"); + } + + public UnaryCallable listOrdersCallable() { + throw new UnsupportedOperationException("Not implemented: listOrdersCallable()"); + } + + public UnaryCallable getOrderCallable() { + throw new UnsupportedOperationException("Not implemented: getOrderCallable()"); + } + + public OperationCallable + createOrderOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createOrderOperationCallable()"); + } + + public UnaryCallable createOrderCallable() { + throw new UnsupportedOperationException("Not implemented: createOrderCallable()"); + } + + public OperationCallable + updateOrderOperationCallable() { + throw new UnsupportedOperationException("Not implemented: updateOrderOperationCallable()"); + } + + public UnaryCallable updateOrderCallable() { + throw new UnsupportedOperationException("Not implemented: updateOrderCallable()"); + } + + public OperationCallable + deleteOrderOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteOrderOperationCallable()"); + } + + public UnaryCallable deleteOrderCallable() { + throw new UnsupportedOperationException("Not implemented: deleteOrderCallable()"); + } + + public OperationCallable + submitOrderOperationCallable() { + throw new UnsupportedOperationException("Not implemented: submitOrderOperationCallable()"); + } + + public UnaryCallable submitOrderCallable() { + throw new UnsupportedOperationException("Not implemented: submitOrderCallable()"); + } + + public UnaryCallable listSitesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listSitesPagedCallable()"); + } + + public UnaryCallable listSitesCallable() { + throw new UnsupportedOperationException("Not implemented: listSitesCallable()"); + } + + public UnaryCallable getSiteCallable() { + throw new UnsupportedOperationException("Not implemented: getSiteCallable()"); + } + + public OperationCallable + createSiteOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createSiteOperationCallable()"); + } + + public UnaryCallable createSiteCallable() { + throw new UnsupportedOperationException("Not implemented: createSiteCallable()"); + } + + public OperationCallable + updateSiteOperationCallable() { + throw new UnsupportedOperationException("Not implemented: updateSiteOperationCallable()"); + } + + public UnaryCallable updateSiteCallable() { + throw new UnsupportedOperationException("Not implemented: updateSiteCallable()"); + } + + public UnaryCallable + listHardwareGroupsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listHardwareGroupsPagedCallable()"); + } + + public UnaryCallable + listHardwareGroupsCallable() { + throw new UnsupportedOperationException("Not implemented: listHardwareGroupsCallable()"); + } + + public UnaryCallable getHardwareGroupCallable() { + throw new UnsupportedOperationException("Not implemented: getHardwareGroupCallable()"); + } + + public OperationCallable + createHardwareGroupOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createHardwareGroupOperationCallable()"); + } + + public UnaryCallable createHardwareGroupCallable() { + throw new UnsupportedOperationException("Not implemented: createHardwareGroupCallable()"); + } + + public OperationCallable + updateHardwareGroupOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateHardwareGroupOperationCallable()"); + } + + public UnaryCallable updateHardwareGroupCallable() { + throw new UnsupportedOperationException("Not implemented: updateHardwareGroupCallable()"); + } + + public OperationCallable + deleteHardwareGroupOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteHardwareGroupOperationCallable()"); + } + + public UnaryCallable deleteHardwareGroupCallable() { + throw new UnsupportedOperationException("Not implemented: deleteHardwareGroupCallable()"); + } + + public UnaryCallable listHardwarePagedCallable() { + throw new UnsupportedOperationException("Not implemented: listHardwarePagedCallable()"); + } + + public UnaryCallable listHardwareCallable() { + throw new UnsupportedOperationException("Not implemented: listHardwareCallable()"); + } + + public UnaryCallable getHardwareCallable() { + throw new UnsupportedOperationException("Not implemented: getHardwareCallable()"); + } + + public OperationCallable + createHardwareOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createHardwareOperationCallable()"); + } + + public UnaryCallable createHardwareCallable() { + throw new UnsupportedOperationException("Not implemented: createHardwareCallable()"); + } + + public OperationCallable + updateHardwareOperationCallable() { + throw new UnsupportedOperationException("Not implemented: updateHardwareOperationCallable()"); + } + + public UnaryCallable updateHardwareCallable() { + throw new UnsupportedOperationException("Not implemented: updateHardwareCallable()"); + } + + public OperationCallable + deleteHardwareOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteHardwareOperationCallable()"); + } + + public UnaryCallable deleteHardwareCallable() { + throw new UnsupportedOperationException("Not implemented: deleteHardwareCallable()"); + } + + public UnaryCallable listCommentsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listCommentsPagedCallable()"); + } + + public UnaryCallable listCommentsCallable() { + throw new UnsupportedOperationException("Not implemented: listCommentsCallable()"); + } + + public UnaryCallable getCommentCallable() { + throw new UnsupportedOperationException("Not implemented: getCommentCallable()"); + } + + public OperationCallable + createCommentOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createCommentOperationCallable()"); + } + + public UnaryCallable createCommentCallable() { + throw new UnsupportedOperationException("Not implemented: createCommentCallable()"); + } + + public UnaryCallable + listChangeLogEntriesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listChangeLogEntriesPagedCallable()"); + } + + public UnaryCallable + listChangeLogEntriesCallable() { + throw new UnsupportedOperationException("Not implemented: listChangeLogEntriesCallable()"); + } + + public UnaryCallable getChangeLogEntryCallable() { + throw new UnsupportedOperationException("Not implemented: getChangeLogEntryCallable()"); + } + + public UnaryCallable listSkusPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listSkusPagedCallable()"); + } + + public UnaryCallable listSkusCallable() { + throw new UnsupportedOperationException("Not implemented: listSkusCallable()"); + } + + public UnaryCallable getSkuCallable() { + throw new UnsupportedOperationException("Not implemented: getSkuCallable()"); + } + + public UnaryCallable listZonesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listZonesPagedCallable()"); + } + + public UnaryCallable listZonesCallable() { + throw new UnsupportedOperationException("Not implemented: listZonesCallable()"); + } + + public UnaryCallable getZoneCallable() { + throw new UnsupportedOperationException("Not implemented: getZoneCallable()"); + } + + public OperationCallable + createZoneOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createZoneOperationCallable()"); + } + + public UnaryCallable createZoneCallable() { + throw new UnsupportedOperationException("Not implemented: createZoneCallable()"); + } + + public OperationCallable + updateZoneOperationCallable() { + throw new UnsupportedOperationException("Not implemented: updateZoneOperationCallable()"); + } + + public UnaryCallable updateZoneCallable() { + throw new UnsupportedOperationException("Not implemented: updateZoneCallable()"); + } + + public OperationCallable + deleteZoneOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteZoneOperationCallable()"); + } + + public UnaryCallable deleteZoneCallable() { + throw new UnsupportedOperationException("Not implemented: deleteZoneCallable()"); + } + + public OperationCallable + signalZoneStateOperationCallable() { + throw new UnsupportedOperationException("Not implemented: signalZoneStateOperationCallable()"); + } + + public UnaryCallable signalZoneStateCallable() { + throw new UnsupportedOperationException("Not implemented: signalZoneStateCallable()"); + } + + public UnaryCallable + listLocationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); + } + + public UnaryCallable listLocationsCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); + } + + public UnaryCallable getLocationCallable() { + throw new UnsupportedOperationException("Not implemented: getLocationCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/GDCHardwareManagementStubSettings.java b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/GDCHardwareManagementStubSettings.java new file mode 100644 index 000000000000..45957a3ad14e --- /dev/null +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/GDCHardwareManagementStubSettings.java @@ -0,0 +1,2476 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.stub; + +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListChangeLogEntriesPagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListCommentsPagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListHardwareGroupsPagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListHardwarePagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListLocationsPagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListOrdersPagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListSitesPagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListSkusPagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListZonesPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry; +import com.google.cloud.gdchardwaremanagement.v1alpha.Comment; +import com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.Hardware; +import com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse; +import com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata; +import com.google.cloud.gdchardwaremanagement.v1alpha.Order; +import com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.Site; +import com.google.cloud.gdchardwaremanagement.v1alpha.Sku; +import com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.Zone; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link GDCHardwareManagementStub}. + * + *

          The default instance has everything set to sensible defaults: + * + *

            + *
          • The default service address (gdchardwaremanagement.googleapis.com) and default port (443) + * are used. + *
          • Credentials are acquired automatically through Application Default Credentials. + *
          • Retries are configured for idempotent methods but not for non-idempotent methods. + *
          + * + *

          The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

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

          {@code
          + * // This snippet has been automatically generated and should be regarded as a code template only.
          + * // It will require modifications to work:
          + * // - It may require correct/in-range values for request initialization.
          + * // - It may require specifying regional endpoints when creating the service client as shown in
          + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          + * GDCHardwareManagementStubSettings.Builder gDCHardwareManagementSettingsBuilder =
          + *     GDCHardwareManagementStubSettings.newBuilder();
          + * gDCHardwareManagementSettingsBuilder
          + *     .getOrderSettings()
          + *     .setRetrySettings(
          + *         gDCHardwareManagementSettingsBuilder
          + *             .getOrderSettings()
          + *             .getRetrySettings()
          + *             .toBuilder()
          + *             .setTotalTimeout(Duration.ofSeconds(30))
          + *             .build());
          + * GDCHardwareManagementStubSettings gDCHardwareManagementSettings =
          + *     gDCHardwareManagementSettingsBuilder.build();
          + * }
          + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GDCHardwareManagementStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final PagedCallSettings + listOrdersSettings; + private final UnaryCallSettings getOrderSettings; + private final UnaryCallSettings createOrderSettings; + private final OperationCallSettings + createOrderOperationSettings; + private final UnaryCallSettings updateOrderSettings; + private final OperationCallSettings + updateOrderOperationSettings; + private final UnaryCallSettings deleteOrderSettings; + private final OperationCallSettings + deleteOrderOperationSettings; + private final UnaryCallSettings submitOrderSettings; + private final OperationCallSettings + submitOrderOperationSettings; + private final PagedCallSettings + listSitesSettings; + private final UnaryCallSettings getSiteSettings; + private final UnaryCallSettings createSiteSettings; + private final OperationCallSettings + createSiteOperationSettings; + private final UnaryCallSettings updateSiteSettings; + private final OperationCallSettings + updateSiteOperationSettings; + private final PagedCallSettings< + ListHardwareGroupsRequest, ListHardwareGroupsResponse, ListHardwareGroupsPagedResponse> + listHardwareGroupsSettings; + private final UnaryCallSettings getHardwareGroupSettings; + private final UnaryCallSettings + createHardwareGroupSettings; + private final OperationCallSettings + createHardwareGroupOperationSettings; + private final UnaryCallSettings + updateHardwareGroupSettings; + private final OperationCallSettings + updateHardwareGroupOperationSettings; + private final UnaryCallSettings + deleteHardwareGroupSettings; + private final OperationCallSettings + deleteHardwareGroupOperationSettings; + private final PagedCallSettings< + ListHardwareRequest, ListHardwareResponse, ListHardwarePagedResponse> + listHardwareSettings; + private final UnaryCallSettings getHardwareSettings; + private final UnaryCallSettings createHardwareSettings; + private final OperationCallSettings + createHardwareOperationSettings; + private final UnaryCallSettings updateHardwareSettings; + private final OperationCallSettings + updateHardwareOperationSettings; + private final UnaryCallSettings deleteHardwareSettings; + private final OperationCallSettings + deleteHardwareOperationSettings; + private final PagedCallSettings< + ListCommentsRequest, ListCommentsResponse, ListCommentsPagedResponse> + listCommentsSettings; + private final UnaryCallSettings getCommentSettings; + private final UnaryCallSettings createCommentSettings; + private final OperationCallSettings + createCommentOperationSettings; + private final PagedCallSettings< + ListChangeLogEntriesRequest, + ListChangeLogEntriesResponse, + ListChangeLogEntriesPagedResponse> + listChangeLogEntriesSettings; + private final UnaryCallSettings + getChangeLogEntrySettings; + private final PagedCallSettings + listSkusSettings; + private final UnaryCallSettings getSkuSettings; + private final PagedCallSettings + listZonesSettings; + private final UnaryCallSettings getZoneSettings; + private final UnaryCallSettings createZoneSettings; + private final OperationCallSettings + createZoneOperationSettings; + private final UnaryCallSettings updateZoneSettings; + private final OperationCallSettings + updateZoneOperationSettings; + private final UnaryCallSettings deleteZoneSettings; + private final OperationCallSettings + deleteZoneOperationSettings; + private final UnaryCallSettings signalZoneStateSettings; + private final OperationCallSettings + signalZoneStateOperationSettings; + private final PagedCallSettings< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings getLocationSettings; + + private static final PagedListDescriptor + LIST_ORDERS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListOrdersRequest injectToken(ListOrdersRequest payload, String token) { + return ListOrdersRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListOrdersRequest injectPageSize(ListOrdersRequest payload, int pageSize) { + return ListOrdersRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListOrdersRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListOrdersResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListOrdersResponse payload) { + return payload.getOrdersList() == null + ? ImmutableList.of() + : payload.getOrdersList(); + } + }; + + private static final PagedListDescriptor + LIST_SITES_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListSitesRequest injectToken(ListSitesRequest payload, String token) { + return ListSitesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListSitesRequest injectPageSize(ListSitesRequest payload, int pageSize) { + return ListSitesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListSitesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListSitesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListSitesResponse payload) { + return payload.getSitesList() == null + ? ImmutableList.of() + : payload.getSitesList(); + } + }; + + private static final PagedListDescriptor< + ListHardwareGroupsRequest, ListHardwareGroupsResponse, HardwareGroup> + LIST_HARDWARE_GROUPS_PAGE_STR_DESC = + new PagedListDescriptor< + ListHardwareGroupsRequest, ListHardwareGroupsResponse, HardwareGroup>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListHardwareGroupsRequest injectToken( + ListHardwareGroupsRequest payload, String token) { + return ListHardwareGroupsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListHardwareGroupsRequest injectPageSize( + ListHardwareGroupsRequest payload, int pageSize) { + return ListHardwareGroupsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListHardwareGroupsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListHardwareGroupsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListHardwareGroupsResponse payload) { + return payload.getHardwareGroupsList() == null + ? ImmutableList.of() + : payload.getHardwareGroupsList(); + } + }; + + private static final PagedListDescriptor + LIST_HARDWARE_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListHardwareRequest injectToken(ListHardwareRequest payload, String token) { + return ListHardwareRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListHardwareRequest injectPageSize(ListHardwareRequest payload, int pageSize) { + return ListHardwareRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListHardwareRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListHardwareResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListHardwareResponse payload) { + return payload.getHardwareList() == null + ? ImmutableList.of() + : payload.getHardwareList(); + } + }; + + private static final PagedListDescriptor + LIST_COMMENTS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListCommentsRequest injectToken(ListCommentsRequest payload, String token) { + return ListCommentsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListCommentsRequest injectPageSize(ListCommentsRequest payload, int pageSize) { + return ListCommentsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListCommentsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListCommentsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListCommentsResponse payload) { + return payload.getCommentsList() == null + ? ImmutableList.of() + : payload.getCommentsList(); + } + }; + + private static final PagedListDescriptor< + ListChangeLogEntriesRequest, ListChangeLogEntriesResponse, ChangeLogEntry> + LIST_CHANGE_LOG_ENTRIES_PAGE_STR_DESC = + new PagedListDescriptor< + ListChangeLogEntriesRequest, ListChangeLogEntriesResponse, ChangeLogEntry>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListChangeLogEntriesRequest injectToken( + ListChangeLogEntriesRequest payload, String token) { + return ListChangeLogEntriesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListChangeLogEntriesRequest injectPageSize( + ListChangeLogEntriesRequest payload, int pageSize) { + return ListChangeLogEntriesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListChangeLogEntriesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListChangeLogEntriesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListChangeLogEntriesResponse payload) { + return payload.getChangeLogEntriesList() == null + ? ImmutableList.of() + : payload.getChangeLogEntriesList(); + } + }; + + private static final PagedListDescriptor + LIST_SKUS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListSkusRequest injectToken(ListSkusRequest payload, String token) { + return ListSkusRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListSkusRequest injectPageSize(ListSkusRequest payload, int pageSize) { + return ListSkusRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListSkusRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListSkusResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListSkusResponse payload) { + return payload.getSkusList() == null + ? ImmutableList.of() + : payload.getSkusList(); + } + }; + + private static final PagedListDescriptor + LIST_ZONES_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListZonesRequest injectToken(ListZonesRequest payload, String token) { + return ListZonesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListZonesRequest injectPageSize(ListZonesRequest payload, int pageSize) { + return ListZonesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListZonesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListZonesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListZonesResponse payload) { + return payload.getZonesList() == null + ? ImmutableList.of() + : payload.getZonesList(); + } + }; + + private static final PagedListDescriptor + LIST_LOCATIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) { + return ListLocationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) { + return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLocationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLocationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLocationsResponse payload) { + return payload.getLocationsList() == null + ? ImmutableList.of() + : payload.getLocationsList(); + } + }; + + private static final PagedListResponseFactory< + ListOrdersRequest, ListOrdersResponse, ListOrdersPagedResponse> + LIST_ORDERS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListOrdersRequest, ListOrdersResponse, ListOrdersPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListOrdersRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_ORDERS_PAGE_STR_DESC, request, context); + return ListOrdersPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListSitesRequest, ListSitesResponse, ListSitesPagedResponse> + LIST_SITES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListSitesRequest, ListSitesResponse, ListSitesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListSitesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_SITES_PAGE_STR_DESC, request, context); + return ListSitesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListHardwareGroupsRequest, ListHardwareGroupsResponse, ListHardwareGroupsPagedResponse> + LIST_HARDWARE_GROUPS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListHardwareGroupsRequest, + ListHardwareGroupsResponse, + ListHardwareGroupsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListHardwareGroupsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_HARDWARE_GROUPS_PAGE_STR_DESC, request, context); + return ListHardwareGroupsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListHardwareRequest, ListHardwareResponse, ListHardwarePagedResponse> + LIST_HARDWARE_PAGE_STR_FACT = + new PagedListResponseFactory< + ListHardwareRequest, ListHardwareResponse, ListHardwarePagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListHardwareRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_HARDWARE_PAGE_STR_DESC, request, context); + return ListHardwarePagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListCommentsRequest, ListCommentsResponse, ListCommentsPagedResponse> + LIST_COMMENTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListCommentsRequest, ListCommentsResponse, ListCommentsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListCommentsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_COMMENTS_PAGE_STR_DESC, request, context); + return ListCommentsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListChangeLogEntriesRequest, + ListChangeLogEntriesResponse, + ListChangeLogEntriesPagedResponse> + LIST_CHANGE_LOG_ENTRIES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListChangeLogEntriesRequest, + ListChangeLogEntriesResponse, + ListChangeLogEntriesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListChangeLogEntriesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_CHANGE_LOG_ENTRIES_PAGE_STR_DESC, request, context); + return ListChangeLogEntriesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListSkusRequest, ListSkusResponse, ListSkusPagedResponse> + LIST_SKUS_PAGE_STR_FACT = + new PagedListResponseFactory() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListSkusRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_SKUS_PAGE_STR_DESC, request, context); + return ListSkusPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListZonesRequest, ListZonesResponse, ListZonesPagedResponse> + LIST_ZONES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListZonesRequest, ListZonesResponse, ListZonesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListZonesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_ZONES_PAGE_STR_DESC, request, context); + return ListZonesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + LIST_LOCATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLocationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); + return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to listOrders. */ + public PagedCallSettings + listOrdersSettings() { + return listOrdersSettings; + } + + /** Returns the object with the settings used for calls to getOrder. */ + public UnaryCallSettings getOrderSettings() { + return getOrderSettings; + } + + /** Returns the object with the settings used for calls to createOrder. */ + public UnaryCallSettings createOrderSettings() { + return createOrderSettings; + } + + /** Returns the object with the settings used for calls to createOrder. */ + public OperationCallSettings + createOrderOperationSettings() { + return createOrderOperationSettings; + } + + /** Returns the object with the settings used for calls to updateOrder. */ + public UnaryCallSettings updateOrderSettings() { + return updateOrderSettings; + } + + /** Returns the object with the settings used for calls to updateOrder. */ + public OperationCallSettings + updateOrderOperationSettings() { + return updateOrderOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteOrder. */ + public UnaryCallSettings deleteOrderSettings() { + return deleteOrderSettings; + } + + /** Returns the object with the settings used for calls to deleteOrder. */ + public OperationCallSettings + deleteOrderOperationSettings() { + return deleteOrderOperationSettings; + } + + /** Returns the object with the settings used for calls to submitOrder. */ + public UnaryCallSettings submitOrderSettings() { + return submitOrderSettings; + } + + /** Returns the object with the settings used for calls to submitOrder. */ + public OperationCallSettings + submitOrderOperationSettings() { + return submitOrderOperationSettings; + } + + /** Returns the object with the settings used for calls to listSites. */ + public PagedCallSettings + listSitesSettings() { + return listSitesSettings; + } + + /** Returns the object with the settings used for calls to getSite. */ + public UnaryCallSettings getSiteSettings() { + return getSiteSettings; + } + + /** Returns the object with the settings used for calls to createSite. */ + public UnaryCallSettings createSiteSettings() { + return createSiteSettings; + } + + /** Returns the object with the settings used for calls to createSite. */ + public OperationCallSettings + createSiteOperationSettings() { + return createSiteOperationSettings; + } + + /** Returns the object with the settings used for calls to updateSite. */ + public UnaryCallSettings updateSiteSettings() { + return updateSiteSettings; + } + + /** Returns the object with the settings used for calls to updateSite. */ + public OperationCallSettings + updateSiteOperationSettings() { + return updateSiteOperationSettings; + } + + /** Returns the object with the settings used for calls to listHardwareGroups. */ + public PagedCallSettings< + ListHardwareGroupsRequest, ListHardwareGroupsResponse, ListHardwareGroupsPagedResponse> + listHardwareGroupsSettings() { + return listHardwareGroupsSettings; + } + + /** Returns the object with the settings used for calls to getHardwareGroup. */ + public UnaryCallSettings getHardwareGroupSettings() { + return getHardwareGroupSettings; + } + + /** Returns the object with the settings used for calls to createHardwareGroup. */ + public UnaryCallSettings createHardwareGroupSettings() { + return createHardwareGroupSettings; + } + + /** Returns the object with the settings used for calls to createHardwareGroup. */ + public OperationCallSettings + createHardwareGroupOperationSettings() { + return createHardwareGroupOperationSettings; + } + + /** Returns the object with the settings used for calls to updateHardwareGroup. */ + public UnaryCallSettings updateHardwareGroupSettings() { + return updateHardwareGroupSettings; + } + + /** Returns the object with the settings used for calls to updateHardwareGroup. */ + public OperationCallSettings + updateHardwareGroupOperationSettings() { + return updateHardwareGroupOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteHardwareGroup. */ + public UnaryCallSettings deleteHardwareGroupSettings() { + return deleteHardwareGroupSettings; + } + + /** Returns the object with the settings used for calls to deleteHardwareGroup. */ + public OperationCallSettings + deleteHardwareGroupOperationSettings() { + return deleteHardwareGroupOperationSettings; + } + + /** Returns the object with the settings used for calls to listHardware. */ + public PagedCallSettings + listHardwareSettings() { + return listHardwareSettings; + } + + /** Returns the object with the settings used for calls to getHardware. */ + public UnaryCallSettings getHardwareSettings() { + return getHardwareSettings; + } + + /** Returns the object with the settings used for calls to createHardware. */ + public UnaryCallSettings createHardwareSettings() { + return createHardwareSettings; + } + + /** Returns the object with the settings used for calls to createHardware. */ + public OperationCallSettings + createHardwareOperationSettings() { + return createHardwareOperationSettings; + } + + /** Returns the object with the settings used for calls to updateHardware. */ + public UnaryCallSettings updateHardwareSettings() { + return updateHardwareSettings; + } + + /** Returns the object with the settings used for calls to updateHardware. */ + public OperationCallSettings + updateHardwareOperationSettings() { + return updateHardwareOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteHardware. */ + public UnaryCallSettings deleteHardwareSettings() { + return deleteHardwareSettings; + } + + /** Returns the object with the settings used for calls to deleteHardware. */ + public OperationCallSettings + deleteHardwareOperationSettings() { + return deleteHardwareOperationSettings; + } + + /** Returns the object with the settings used for calls to listComments. */ + public PagedCallSettings + listCommentsSettings() { + return listCommentsSettings; + } + + /** Returns the object with the settings used for calls to getComment. */ + public UnaryCallSettings getCommentSettings() { + return getCommentSettings; + } + + /** Returns the object with the settings used for calls to createComment. */ + public UnaryCallSettings createCommentSettings() { + return createCommentSettings; + } + + /** Returns the object with the settings used for calls to createComment. */ + public OperationCallSettings + createCommentOperationSettings() { + return createCommentOperationSettings; + } + + /** Returns the object with the settings used for calls to listChangeLogEntries. */ + public PagedCallSettings< + ListChangeLogEntriesRequest, + ListChangeLogEntriesResponse, + ListChangeLogEntriesPagedResponse> + listChangeLogEntriesSettings() { + return listChangeLogEntriesSettings; + } + + /** Returns the object with the settings used for calls to getChangeLogEntry. */ + public UnaryCallSettings getChangeLogEntrySettings() { + return getChangeLogEntrySettings; + } + + /** Returns the object with the settings used for calls to listSkus. */ + public PagedCallSettings + listSkusSettings() { + return listSkusSettings; + } + + /** Returns the object with the settings used for calls to getSku. */ + public UnaryCallSettings getSkuSettings() { + return getSkuSettings; + } + + /** Returns the object with the settings used for calls to listZones. */ + public PagedCallSettings + listZonesSettings() { + return listZonesSettings; + } + + /** Returns the object with the settings used for calls to getZone. */ + public UnaryCallSettings getZoneSettings() { + return getZoneSettings; + } + + /** Returns the object with the settings used for calls to createZone. */ + public UnaryCallSettings createZoneSettings() { + return createZoneSettings; + } + + /** Returns the object with the settings used for calls to createZone. */ + public OperationCallSettings + createZoneOperationSettings() { + return createZoneOperationSettings; + } + + /** Returns the object with the settings used for calls to updateZone. */ + public UnaryCallSettings updateZoneSettings() { + return updateZoneSettings; + } + + /** Returns the object with the settings used for calls to updateZone. */ + public OperationCallSettings + updateZoneOperationSettings() { + return updateZoneOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteZone. */ + public UnaryCallSettings deleteZoneSettings() { + return deleteZoneSettings; + } + + /** Returns the object with the settings used for calls to deleteZone. */ + public OperationCallSettings + deleteZoneOperationSettings() { + return deleteZoneOperationSettings; + } + + /** Returns the object with the settings used for calls to signalZoneState. */ + public UnaryCallSettings signalZoneStateSettings() { + return signalZoneStateSettings; + } + + /** Returns the object with the settings used for calls to signalZoneState. */ + public OperationCallSettings + signalZoneStateOperationSettings() { + return signalZoneStateOperationSettings; + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return getLocationSettings; + } + + public GDCHardwareManagementStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcGDCHardwareManagementStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonGDCHardwareManagementStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "gdchardwaremanagement"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "gdchardwaremanagement.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "gdchardwaremanagement.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(GDCHardwareManagementStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(GDCHardwareManagementStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return GDCHardwareManagementStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected GDCHardwareManagementStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + listOrdersSettings = settingsBuilder.listOrdersSettings().build(); + getOrderSettings = settingsBuilder.getOrderSettings().build(); + createOrderSettings = settingsBuilder.createOrderSettings().build(); + createOrderOperationSettings = settingsBuilder.createOrderOperationSettings().build(); + updateOrderSettings = settingsBuilder.updateOrderSettings().build(); + updateOrderOperationSettings = settingsBuilder.updateOrderOperationSettings().build(); + deleteOrderSettings = settingsBuilder.deleteOrderSettings().build(); + deleteOrderOperationSettings = settingsBuilder.deleteOrderOperationSettings().build(); + submitOrderSettings = settingsBuilder.submitOrderSettings().build(); + submitOrderOperationSettings = settingsBuilder.submitOrderOperationSettings().build(); + listSitesSettings = settingsBuilder.listSitesSettings().build(); + getSiteSettings = settingsBuilder.getSiteSettings().build(); + createSiteSettings = settingsBuilder.createSiteSettings().build(); + createSiteOperationSettings = settingsBuilder.createSiteOperationSettings().build(); + updateSiteSettings = settingsBuilder.updateSiteSettings().build(); + updateSiteOperationSettings = settingsBuilder.updateSiteOperationSettings().build(); + listHardwareGroupsSettings = settingsBuilder.listHardwareGroupsSettings().build(); + getHardwareGroupSettings = settingsBuilder.getHardwareGroupSettings().build(); + createHardwareGroupSettings = settingsBuilder.createHardwareGroupSettings().build(); + createHardwareGroupOperationSettings = + settingsBuilder.createHardwareGroupOperationSettings().build(); + updateHardwareGroupSettings = settingsBuilder.updateHardwareGroupSettings().build(); + updateHardwareGroupOperationSettings = + settingsBuilder.updateHardwareGroupOperationSettings().build(); + deleteHardwareGroupSettings = settingsBuilder.deleteHardwareGroupSettings().build(); + deleteHardwareGroupOperationSettings = + settingsBuilder.deleteHardwareGroupOperationSettings().build(); + listHardwareSettings = settingsBuilder.listHardwareSettings().build(); + getHardwareSettings = settingsBuilder.getHardwareSettings().build(); + createHardwareSettings = settingsBuilder.createHardwareSettings().build(); + createHardwareOperationSettings = settingsBuilder.createHardwareOperationSettings().build(); + updateHardwareSettings = settingsBuilder.updateHardwareSettings().build(); + updateHardwareOperationSettings = settingsBuilder.updateHardwareOperationSettings().build(); + deleteHardwareSettings = settingsBuilder.deleteHardwareSettings().build(); + deleteHardwareOperationSettings = settingsBuilder.deleteHardwareOperationSettings().build(); + listCommentsSettings = settingsBuilder.listCommentsSettings().build(); + getCommentSettings = settingsBuilder.getCommentSettings().build(); + createCommentSettings = settingsBuilder.createCommentSettings().build(); + createCommentOperationSettings = settingsBuilder.createCommentOperationSettings().build(); + listChangeLogEntriesSettings = settingsBuilder.listChangeLogEntriesSettings().build(); + getChangeLogEntrySettings = settingsBuilder.getChangeLogEntrySettings().build(); + listSkusSettings = settingsBuilder.listSkusSettings().build(); + getSkuSettings = settingsBuilder.getSkuSettings().build(); + listZonesSettings = settingsBuilder.listZonesSettings().build(); + getZoneSettings = settingsBuilder.getZoneSettings().build(); + createZoneSettings = settingsBuilder.createZoneSettings().build(); + createZoneOperationSettings = settingsBuilder.createZoneOperationSettings().build(); + updateZoneSettings = settingsBuilder.updateZoneSettings().build(); + updateZoneOperationSettings = settingsBuilder.updateZoneOperationSettings().build(); + deleteZoneSettings = settingsBuilder.deleteZoneSettings().build(); + deleteZoneOperationSettings = settingsBuilder.deleteZoneOperationSettings().build(); + signalZoneStateSettings = settingsBuilder.signalZoneStateSettings().build(); + signalZoneStateOperationSettings = settingsBuilder.signalZoneStateOperationSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); + } + + /** Builder for GDCHardwareManagementStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final PagedCallSettings.Builder< + ListOrdersRequest, ListOrdersResponse, ListOrdersPagedResponse> + listOrdersSettings; + private final UnaryCallSettings.Builder getOrderSettings; + private final UnaryCallSettings.Builder createOrderSettings; + private final OperationCallSettings.Builder + createOrderOperationSettings; + private final UnaryCallSettings.Builder updateOrderSettings; + private final OperationCallSettings.Builder + updateOrderOperationSettings; + private final UnaryCallSettings.Builder deleteOrderSettings; + private final OperationCallSettings.Builder + deleteOrderOperationSettings; + private final UnaryCallSettings.Builder submitOrderSettings; + private final OperationCallSettings.Builder + submitOrderOperationSettings; + private final PagedCallSettings.Builder< + ListSitesRequest, ListSitesResponse, ListSitesPagedResponse> + listSitesSettings; + private final UnaryCallSettings.Builder getSiteSettings; + private final UnaryCallSettings.Builder createSiteSettings; + private final OperationCallSettings.Builder + createSiteOperationSettings; + private final UnaryCallSettings.Builder updateSiteSettings; + private final OperationCallSettings.Builder + updateSiteOperationSettings; + private final PagedCallSettings.Builder< + ListHardwareGroupsRequest, ListHardwareGroupsResponse, ListHardwareGroupsPagedResponse> + listHardwareGroupsSettings; + private final UnaryCallSettings.Builder + getHardwareGroupSettings; + private final UnaryCallSettings.Builder + createHardwareGroupSettings; + private final OperationCallSettings.Builder< + CreateHardwareGroupRequest, HardwareGroup, OperationMetadata> + createHardwareGroupOperationSettings; + private final UnaryCallSettings.Builder + updateHardwareGroupSettings; + private final OperationCallSettings.Builder< + UpdateHardwareGroupRequest, HardwareGroup, OperationMetadata> + updateHardwareGroupOperationSettings; + private final UnaryCallSettings.Builder + deleteHardwareGroupSettings; + private final OperationCallSettings.Builder< + DeleteHardwareGroupRequest, Empty, OperationMetadata> + deleteHardwareGroupOperationSettings; + private final PagedCallSettings.Builder< + ListHardwareRequest, ListHardwareResponse, ListHardwarePagedResponse> + listHardwareSettings; + private final UnaryCallSettings.Builder getHardwareSettings; + private final UnaryCallSettings.Builder + createHardwareSettings; + private final OperationCallSettings.Builder + createHardwareOperationSettings; + private final UnaryCallSettings.Builder + updateHardwareSettings; + private final OperationCallSettings.Builder + updateHardwareOperationSettings; + private final UnaryCallSettings.Builder + deleteHardwareSettings; + private final OperationCallSettings.Builder + deleteHardwareOperationSettings; + private final PagedCallSettings.Builder< + ListCommentsRequest, ListCommentsResponse, ListCommentsPagedResponse> + listCommentsSettings; + private final UnaryCallSettings.Builder getCommentSettings; + private final UnaryCallSettings.Builder createCommentSettings; + private final OperationCallSettings.Builder + createCommentOperationSettings; + private final PagedCallSettings.Builder< + ListChangeLogEntriesRequest, + ListChangeLogEntriesResponse, + ListChangeLogEntriesPagedResponse> + listChangeLogEntriesSettings; + private final UnaryCallSettings.Builder + getChangeLogEntrySettings; + private final PagedCallSettings.Builder< + ListSkusRequest, ListSkusResponse, ListSkusPagedResponse> + listSkusSettings; + private final UnaryCallSettings.Builder getSkuSettings; + private final PagedCallSettings.Builder< + ListZonesRequest, ListZonesResponse, ListZonesPagedResponse> + listZonesSettings; + private final UnaryCallSettings.Builder getZoneSettings; + private final UnaryCallSettings.Builder createZoneSettings; + private final OperationCallSettings.Builder + createZoneOperationSettings; + private final UnaryCallSettings.Builder updateZoneSettings; + private final OperationCallSettings.Builder + updateZoneOperationSettings; + private final UnaryCallSettings.Builder deleteZoneSettings; + private final OperationCallSettings.Builder + deleteZoneOperationSettings; + private final UnaryCallSettings.Builder + signalZoneStateSettings; + private final OperationCallSettings.Builder + signalZoneStateOperationSettings; + private final PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings.Builder getLocationSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + definitions.put( + "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(10000L)) + .setInitialRpcTimeout(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(60000L)) + .setTotalTimeout(Duration.ofMillis(60000L)) + .build(); + definitions.put("retry_policy_0_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeout(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(60000L)) + .setTotalTimeout(Duration.ofMillis(60000L)) + .build(); + definitions.put("no_retry_1_params", settings); + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + listOrdersSettings = PagedCallSettings.newBuilder(LIST_ORDERS_PAGE_STR_FACT); + getOrderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createOrderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createOrderOperationSettings = OperationCallSettings.newBuilder(); + updateOrderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateOrderOperationSettings = OperationCallSettings.newBuilder(); + deleteOrderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteOrderOperationSettings = OperationCallSettings.newBuilder(); + submitOrderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + submitOrderOperationSettings = OperationCallSettings.newBuilder(); + listSitesSettings = PagedCallSettings.newBuilder(LIST_SITES_PAGE_STR_FACT); + getSiteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createSiteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createSiteOperationSettings = OperationCallSettings.newBuilder(); + updateSiteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateSiteOperationSettings = OperationCallSettings.newBuilder(); + listHardwareGroupsSettings = PagedCallSettings.newBuilder(LIST_HARDWARE_GROUPS_PAGE_STR_FACT); + getHardwareGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createHardwareGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createHardwareGroupOperationSettings = OperationCallSettings.newBuilder(); + updateHardwareGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateHardwareGroupOperationSettings = OperationCallSettings.newBuilder(); + deleteHardwareGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteHardwareGroupOperationSettings = OperationCallSettings.newBuilder(); + listHardwareSettings = PagedCallSettings.newBuilder(LIST_HARDWARE_PAGE_STR_FACT); + getHardwareSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createHardwareSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createHardwareOperationSettings = OperationCallSettings.newBuilder(); + updateHardwareSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateHardwareOperationSettings = OperationCallSettings.newBuilder(); + deleteHardwareSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteHardwareOperationSettings = OperationCallSettings.newBuilder(); + listCommentsSettings = PagedCallSettings.newBuilder(LIST_COMMENTS_PAGE_STR_FACT); + getCommentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createCommentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createCommentOperationSettings = OperationCallSettings.newBuilder(); + listChangeLogEntriesSettings = + PagedCallSettings.newBuilder(LIST_CHANGE_LOG_ENTRIES_PAGE_STR_FACT); + getChangeLogEntrySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listSkusSettings = PagedCallSettings.newBuilder(LIST_SKUS_PAGE_STR_FACT); + getSkuSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listZonesSettings = PagedCallSettings.newBuilder(LIST_ZONES_PAGE_STR_FACT); + getZoneSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createZoneSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createZoneOperationSettings = OperationCallSettings.newBuilder(); + updateZoneSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateZoneOperationSettings = OperationCallSettings.newBuilder(); + deleteZoneSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteZoneOperationSettings = OperationCallSettings.newBuilder(); + signalZoneStateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + signalZoneStateOperationSettings = OperationCallSettings.newBuilder(); + listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); + getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listOrdersSettings, + getOrderSettings, + createOrderSettings, + updateOrderSettings, + deleteOrderSettings, + submitOrderSettings, + listSitesSettings, + getSiteSettings, + createSiteSettings, + updateSiteSettings, + listHardwareGroupsSettings, + getHardwareGroupSettings, + createHardwareGroupSettings, + updateHardwareGroupSettings, + deleteHardwareGroupSettings, + listHardwareSettings, + getHardwareSettings, + createHardwareSettings, + updateHardwareSettings, + deleteHardwareSettings, + listCommentsSettings, + getCommentSettings, + createCommentSettings, + listChangeLogEntriesSettings, + getChangeLogEntrySettings, + listSkusSettings, + getSkuSettings, + listZonesSettings, + getZoneSettings, + createZoneSettings, + updateZoneSettings, + deleteZoneSettings, + signalZoneStateSettings, + listLocationsSettings, + getLocationSettings); + initDefaults(this); + } + + protected Builder(GDCHardwareManagementStubSettings settings) { + super(settings); + + listOrdersSettings = settings.listOrdersSettings.toBuilder(); + getOrderSettings = settings.getOrderSettings.toBuilder(); + createOrderSettings = settings.createOrderSettings.toBuilder(); + createOrderOperationSettings = settings.createOrderOperationSettings.toBuilder(); + updateOrderSettings = settings.updateOrderSettings.toBuilder(); + updateOrderOperationSettings = settings.updateOrderOperationSettings.toBuilder(); + deleteOrderSettings = settings.deleteOrderSettings.toBuilder(); + deleteOrderOperationSettings = settings.deleteOrderOperationSettings.toBuilder(); + submitOrderSettings = settings.submitOrderSettings.toBuilder(); + submitOrderOperationSettings = settings.submitOrderOperationSettings.toBuilder(); + listSitesSettings = settings.listSitesSettings.toBuilder(); + getSiteSettings = settings.getSiteSettings.toBuilder(); + createSiteSettings = settings.createSiteSettings.toBuilder(); + createSiteOperationSettings = settings.createSiteOperationSettings.toBuilder(); + updateSiteSettings = settings.updateSiteSettings.toBuilder(); + updateSiteOperationSettings = settings.updateSiteOperationSettings.toBuilder(); + listHardwareGroupsSettings = settings.listHardwareGroupsSettings.toBuilder(); + getHardwareGroupSettings = settings.getHardwareGroupSettings.toBuilder(); + createHardwareGroupSettings = settings.createHardwareGroupSettings.toBuilder(); + createHardwareGroupOperationSettings = + settings.createHardwareGroupOperationSettings.toBuilder(); + updateHardwareGroupSettings = settings.updateHardwareGroupSettings.toBuilder(); + updateHardwareGroupOperationSettings = + settings.updateHardwareGroupOperationSettings.toBuilder(); + deleteHardwareGroupSettings = settings.deleteHardwareGroupSettings.toBuilder(); + deleteHardwareGroupOperationSettings = + settings.deleteHardwareGroupOperationSettings.toBuilder(); + listHardwareSettings = settings.listHardwareSettings.toBuilder(); + getHardwareSettings = settings.getHardwareSettings.toBuilder(); + createHardwareSettings = settings.createHardwareSettings.toBuilder(); + createHardwareOperationSettings = settings.createHardwareOperationSettings.toBuilder(); + updateHardwareSettings = settings.updateHardwareSettings.toBuilder(); + updateHardwareOperationSettings = settings.updateHardwareOperationSettings.toBuilder(); + deleteHardwareSettings = settings.deleteHardwareSettings.toBuilder(); + deleteHardwareOperationSettings = settings.deleteHardwareOperationSettings.toBuilder(); + listCommentsSettings = settings.listCommentsSettings.toBuilder(); + getCommentSettings = settings.getCommentSettings.toBuilder(); + createCommentSettings = settings.createCommentSettings.toBuilder(); + createCommentOperationSettings = settings.createCommentOperationSettings.toBuilder(); + listChangeLogEntriesSettings = settings.listChangeLogEntriesSettings.toBuilder(); + getChangeLogEntrySettings = settings.getChangeLogEntrySettings.toBuilder(); + listSkusSettings = settings.listSkusSettings.toBuilder(); + getSkuSettings = settings.getSkuSettings.toBuilder(); + listZonesSettings = settings.listZonesSettings.toBuilder(); + getZoneSettings = settings.getZoneSettings.toBuilder(); + createZoneSettings = settings.createZoneSettings.toBuilder(); + createZoneOperationSettings = settings.createZoneOperationSettings.toBuilder(); + updateZoneSettings = settings.updateZoneSettings.toBuilder(); + updateZoneOperationSettings = settings.updateZoneOperationSettings.toBuilder(); + deleteZoneSettings = settings.deleteZoneSettings.toBuilder(); + deleteZoneOperationSettings = settings.deleteZoneOperationSettings.toBuilder(); + signalZoneStateSettings = settings.signalZoneStateSettings.toBuilder(); + signalZoneStateOperationSettings = settings.signalZoneStateOperationSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + getLocationSettings = settings.getLocationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listOrdersSettings, + getOrderSettings, + createOrderSettings, + updateOrderSettings, + deleteOrderSettings, + submitOrderSettings, + listSitesSettings, + getSiteSettings, + createSiteSettings, + updateSiteSettings, + listHardwareGroupsSettings, + getHardwareGroupSettings, + createHardwareGroupSettings, + updateHardwareGroupSettings, + deleteHardwareGroupSettings, + listHardwareSettings, + getHardwareSettings, + createHardwareSettings, + updateHardwareSettings, + deleteHardwareSettings, + listCommentsSettings, + getCommentSettings, + createCommentSettings, + listChangeLogEntriesSettings, + getChangeLogEntrySettings, + listSkusSettings, + getSkuSettings, + listZonesSettings, + getZoneSettings, + createZoneSettings, + updateZoneSettings, + deleteZoneSettings, + signalZoneStateSettings, + listLocationsSettings, + getLocationSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .listOrdersSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getOrderSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createOrderSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .updateOrderSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteOrderSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .submitOrderSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listSitesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getSiteSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createSiteSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .updateSiteSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listHardwareGroupsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getHardwareGroupSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createHardwareGroupSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .updateHardwareGroupSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteHardwareGroupSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listHardwareSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getHardwareSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createHardwareSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .updateHardwareSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteHardwareSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listCommentsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getCommentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createCommentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .listChangeLogEntriesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getChangeLogEntrySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listSkusSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getSkuSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listZonesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getZoneSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createZoneSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .updateZoneSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteZoneSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .signalZoneStateSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listLocationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getLocationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createOrderOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Order.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .updateOrderOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Order.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteOrderOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .submitOrderOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Order.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .createSiteOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer(ProtoOperationTransformers.ResponseTransformer.create(Site.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .updateSiteOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer(ProtoOperationTransformers.ResponseTransformer.create(Site.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .createHardwareGroupOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(HardwareGroup.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .updateHardwareGroupOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(HardwareGroup.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteHardwareGroupOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .createHardwareOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Hardware.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .updateHardwareOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Hardware.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteHardwareOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .createCommentOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Comment.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .createZoneOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer(ProtoOperationTransformers.ResponseTransformer.create(Zone.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .updateZoneOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer(ProtoOperationTransformers.ResponseTransformer.create(Zone.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteZoneOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .signalZoneStateOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer(ProtoOperationTransformers.ResponseTransformer.create(Zone.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

          Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to listOrders. */ + public PagedCallSettings.Builder + listOrdersSettings() { + return listOrdersSettings; + } + + /** Returns the builder for the settings used for calls to getOrder. */ + public UnaryCallSettings.Builder getOrderSettings() { + return getOrderSettings; + } + + /** Returns the builder for the settings used for calls to createOrder. */ + public UnaryCallSettings.Builder createOrderSettings() { + return createOrderSettings; + } + + /** Returns the builder for the settings used for calls to createOrder. */ + public OperationCallSettings.Builder + createOrderOperationSettings() { + return createOrderOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateOrder. */ + public UnaryCallSettings.Builder updateOrderSettings() { + return updateOrderSettings; + } + + /** Returns the builder for the settings used for calls to updateOrder. */ + public OperationCallSettings.Builder + updateOrderOperationSettings() { + return updateOrderOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteOrder. */ + public UnaryCallSettings.Builder deleteOrderSettings() { + return deleteOrderSettings; + } + + /** Returns the builder for the settings used for calls to deleteOrder. */ + public OperationCallSettings.Builder + deleteOrderOperationSettings() { + return deleteOrderOperationSettings; + } + + /** Returns the builder for the settings used for calls to submitOrder. */ + public UnaryCallSettings.Builder submitOrderSettings() { + return submitOrderSettings; + } + + /** Returns the builder for the settings used for calls to submitOrder. */ + public OperationCallSettings.Builder + submitOrderOperationSettings() { + return submitOrderOperationSettings; + } + + /** Returns the builder for the settings used for calls to listSites. */ + public PagedCallSettings.Builder + listSitesSettings() { + return listSitesSettings; + } + + /** Returns the builder for the settings used for calls to getSite. */ + public UnaryCallSettings.Builder getSiteSettings() { + return getSiteSettings; + } + + /** Returns the builder for the settings used for calls to createSite. */ + public UnaryCallSettings.Builder createSiteSettings() { + return createSiteSettings; + } + + /** Returns the builder for the settings used for calls to createSite. */ + public OperationCallSettings.Builder + createSiteOperationSettings() { + return createSiteOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateSite. */ + public UnaryCallSettings.Builder updateSiteSettings() { + return updateSiteSettings; + } + + /** Returns the builder for the settings used for calls to updateSite. */ + public OperationCallSettings.Builder + updateSiteOperationSettings() { + return updateSiteOperationSettings; + } + + /** Returns the builder for the settings used for calls to listHardwareGroups. */ + public PagedCallSettings.Builder< + ListHardwareGroupsRequest, ListHardwareGroupsResponse, ListHardwareGroupsPagedResponse> + listHardwareGroupsSettings() { + return listHardwareGroupsSettings; + } + + /** Returns the builder for the settings used for calls to getHardwareGroup. */ + public UnaryCallSettings.Builder + getHardwareGroupSettings() { + return getHardwareGroupSettings; + } + + /** Returns the builder for the settings used for calls to createHardwareGroup. */ + public UnaryCallSettings.Builder + createHardwareGroupSettings() { + return createHardwareGroupSettings; + } + + /** Returns the builder for the settings used for calls to createHardwareGroup. */ + public OperationCallSettings.Builder< + CreateHardwareGroupRequest, HardwareGroup, OperationMetadata> + createHardwareGroupOperationSettings() { + return createHardwareGroupOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateHardwareGroup. */ + public UnaryCallSettings.Builder + updateHardwareGroupSettings() { + return updateHardwareGroupSettings; + } + + /** Returns the builder for the settings used for calls to updateHardwareGroup. */ + public OperationCallSettings.Builder< + UpdateHardwareGroupRequest, HardwareGroup, OperationMetadata> + updateHardwareGroupOperationSettings() { + return updateHardwareGroupOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteHardwareGroup. */ + public UnaryCallSettings.Builder + deleteHardwareGroupSettings() { + return deleteHardwareGroupSettings; + } + + /** Returns the builder for the settings used for calls to deleteHardwareGroup. */ + public OperationCallSettings.Builder + deleteHardwareGroupOperationSettings() { + return deleteHardwareGroupOperationSettings; + } + + /** Returns the builder for the settings used for calls to listHardware. */ + public PagedCallSettings.Builder< + ListHardwareRequest, ListHardwareResponse, ListHardwarePagedResponse> + listHardwareSettings() { + return listHardwareSettings; + } + + /** Returns the builder for the settings used for calls to getHardware. */ + public UnaryCallSettings.Builder getHardwareSettings() { + return getHardwareSettings; + } + + /** Returns the builder for the settings used for calls to createHardware. */ + public UnaryCallSettings.Builder createHardwareSettings() { + return createHardwareSettings; + } + + /** Returns the builder for the settings used for calls to createHardware. */ + public OperationCallSettings.Builder + createHardwareOperationSettings() { + return createHardwareOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateHardware. */ + public UnaryCallSettings.Builder updateHardwareSettings() { + return updateHardwareSettings; + } + + /** Returns the builder for the settings used for calls to updateHardware. */ + public OperationCallSettings.Builder + updateHardwareOperationSettings() { + return updateHardwareOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteHardware. */ + public UnaryCallSettings.Builder deleteHardwareSettings() { + return deleteHardwareSettings; + } + + /** Returns the builder for the settings used for calls to deleteHardware. */ + public OperationCallSettings.Builder + deleteHardwareOperationSettings() { + return deleteHardwareOperationSettings; + } + + /** Returns the builder for the settings used for calls to listComments. */ + public PagedCallSettings.Builder< + ListCommentsRequest, ListCommentsResponse, ListCommentsPagedResponse> + listCommentsSettings() { + return listCommentsSettings; + } + + /** Returns the builder for the settings used for calls to getComment. */ + public UnaryCallSettings.Builder getCommentSettings() { + return getCommentSettings; + } + + /** Returns the builder for the settings used for calls to createComment. */ + public UnaryCallSettings.Builder createCommentSettings() { + return createCommentSettings; + } + + /** Returns the builder for the settings used for calls to createComment. */ + public OperationCallSettings.Builder + createCommentOperationSettings() { + return createCommentOperationSettings; + } + + /** Returns the builder for the settings used for calls to listChangeLogEntries. */ + public PagedCallSettings.Builder< + ListChangeLogEntriesRequest, + ListChangeLogEntriesResponse, + ListChangeLogEntriesPagedResponse> + listChangeLogEntriesSettings() { + return listChangeLogEntriesSettings; + } + + /** Returns the builder for the settings used for calls to getChangeLogEntry. */ + public UnaryCallSettings.Builder + getChangeLogEntrySettings() { + return getChangeLogEntrySettings; + } + + /** Returns the builder for the settings used for calls to listSkus. */ + public PagedCallSettings.Builder + listSkusSettings() { + return listSkusSettings; + } + + /** Returns the builder for the settings used for calls to getSku. */ + public UnaryCallSettings.Builder getSkuSettings() { + return getSkuSettings; + } + + /** Returns the builder for the settings used for calls to listZones. */ + public PagedCallSettings.Builder + listZonesSettings() { + return listZonesSettings; + } + + /** Returns the builder for the settings used for calls to getZone. */ + public UnaryCallSettings.Builder getZoneSettings() { + return getZoneSettings; + } + + /** Returns the builder for the settings used for calls to createZone. */ + public UnaryCallSettings.Builder createZoneSettings() { + return createZoneSettings; + } + + /** Returns the builder for the settings used for calls to createZone. */ + public OperationCallSettings.Builder + createZoneOperationSettings() { + return createZoneOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateZone. */ + public UnaryCallSettings.Builder updateZoneSettings() { + return updateZoneSettings; + } + + /** Returns the builder for the settings used for calls to updateZone. */ + public OperationCallSettings.Builder + updateZoneOperationSettings() { + return updateZoneOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteZone. */ + public UnaryCallSettings.Builder deleteZoneSettings() { + return deleteZoneSettings; + } + + /** Returns the builder for the settings used for calls to deleteZone. */ + public OperationCallSettings.Builder + deleteZoneOperationSettings() { + return deleteZoneOperationSettings; + } + + /** Returns the builder for the settings used for calls to signalZoneState. */ + public UnaryCallSettings.Builder signalZoneStateSettings() { + return signalZoneStateSettings; + } + + /** Returns the builder for the settings used for calls to signalZoneState. */ + public OperationCallSettings.Builder + signalZoneStateOperationSettings() { + return signalZoneStateOperationSettings; + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getLocationSettings; + } + + @Override + public GDCHardwareManagementStubSettings build() throws IOException { + return new GDCHardwareManagementStubSettings(this); + } + } +} diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/GrpcGDCHardwareManagementCallableFactory.java b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/GrpcGDCHardwareManagementCallableFactory.java new file mode 100644 index 000000000000..2974ff1e78c2 --- /dev/null +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/GrpcGDCHardwareManagementCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the GDCHardwareManagement service API. + * + *

          This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcGDCHardwareManagementCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/GrpcGDCHardwareManagementStub.java b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/GrpcGDCHardwareManagementStub.java new file mode 100644 index 000000000000..91132e332108 --- /dev/null +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/GrpcGDCHardwareManagementStub.java @@ -0,0 +1,1565 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.stub; + +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListChangeLogEntriesPagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListCommentsPagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListHardwareGroupsPagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListHardwarePagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListLocationsPagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListOrdersPagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListSitesPagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListSkusPagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListZonesPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry; +import com.google.cloud.gdchardwaremanagement.v1alpha.Comment; +import com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.Hardware; +import com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse; +import com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata; +import com.google.cloud.gdchardwaremanagement.v1alpha.Order; +import com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.Site; +import com.google.cloud.gdchardwaremanagement.v1alpha.Sku; +import com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.Zone; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the GDCHardwareManagement service API. + * + *

          This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcGDCHardwareManagementStub extends GDCHardwareManagementStub { + private static final MethodDescriptor + listOrdersMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/ListOrders") + .setRequestMarshaller(ProtoUtils.marshaller(ListOrdersRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ListOrdersResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getOrderMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/GetOrder") + .setRequestMarshaller(ProtoUtils.marshaller(GetOrderRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Order.getDefaultInstance())) + .build(); + + private static final MethodDescriptor createOrderMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/CreateOrder") + .setRequestMarshaller(ProtoUtils.marshaller(CreateOrderRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor updateOrderMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/UpdateOrder") + .setRequestMarshaller(ProtoUtils.marshaller(UpdateOrderRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor deleteOrderMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/DeleteOrder") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteOrderRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor submitOrderMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/SubmitOrder") + .setRequestMarshaller(ProtoUtils.marshaller(SubmitOrderRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listSitesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/ListSites") + .setRequestMarshaller(ProtoUtils.marshaller(ListSitesRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ListSitesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getSiteMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/GetSite") + .setRequestMarshaller(ProtoUtils.marshaller(GetSiteRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Site.getDefaultInstance())) + .build(); + + private static final MethodDescriptor createSiteMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/CreateSite") + .setRequestMarshaller(ProtoUtils.marshaller(CreateSiteRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor updateSiteMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/UpdateSite") + .setRequestMarshaller(ProtoUtils.marshaller(UpdateSiteRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listHardwareGroupsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/ListHardwareGroups") + .setRequestMarshaller( + ProtoUtils.marshaller(ListHardwareGroupsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListHardwareGroupsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getHardwareGroupMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/GetHardwareGroup") + .setRequestMarshaller( + ProtoUtils.marshaller(GetHardwareGroupRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(HardwareGroup.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createHardwareGroupMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/CreateHardwareGroup") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateHardwareGroupRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateHardwareGroupMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/UpdateHardwareGroup") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateHardwareGroupRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteHardwareGroupMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/DeleteHardwareGroup") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteHardwareGroupRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listHardwareMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/ListHardware") + .setRequestMarshaller(ProtoUtils.marshaller(ListHardwareRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListHardwareResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getHardwareMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/GetHardware") + .setRequestMarshaller(ProtoUtils.marshaller(GetHardwareRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Hardware.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createHardwareMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/CreateHardware") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateHardwareRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateHardwareMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/UpdateHardware") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateHardwareRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteHardwareMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/DeleteHardware") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteHardwareRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listCommentsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/ListComments") + .setRequestMarshaller(ProtoUtils.marshaller(ListCommentsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListCommentsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getCommentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/GetComment") + .setRequestMarshaller(ProtoUtils.marshaller(GetCommentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Comment.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createCommentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/CreateComment") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateCommentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listChangeLogEntriesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/ListChangeLogEntries") + .setRequestMarshaller( + ProtoUtils.marshaller(ListChangeLogEntriesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListChangeLogEntriesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getChangeLogEntryMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/GetChangeLogEntry") + .setRequestMarshaller( + ProtoUtils.marshaller(GetChangeLogEntryRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ChangeLogEntry.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listSkusMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/ListSkus") + .setRequestMarshaller(ProtoUtils.marshaller(ListSkusRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ListSkusResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getSkuMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/GetSku") + .setRequestMarshaller(ProtoUtils.marshaller(GetSkuRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Sku.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listZonesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/ListZones") + .setRequestMarshaller(ProtoUtils.marshaller(ListZonesRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ListZonesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getZoneMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/GetZone") + .setRequestMarshaller(ProtoUtils.marshaller(GetZoneRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Zone.getDefaultInstance())) + .build(); + + private static final MethodDescriptor createZoneMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/CreateZone") + .setRequestMarshaller(ProtoUtils.marshaller(CreateZoneRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor updateZoneMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/UpdateZone") + .setRequestMarshaller(ProtoUtils.marshaller(UpdateZoneRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor deleteZoneMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/DeleteZone") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteZoneRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + signalZoneStateMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/SignalZoneState") + .setRequestMarshaller( + ProtoUtils.marshaller(SignalZoneStateRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listLocationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getLocationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) + .build(); + + private final UnaryCallable listOrdersCallable; + private final UnaryCallable listOrdersPagedCallable; + private final UnaryCallable getOrderCallable; + private final UnaryCallable createOrderCallable; + private final OperationCallable + createOrderOperationCallable; + private final UnaryCallable updateOrderCallable; + private final OperationCallable + updateOrderOperationCallable; + private final UnaryCallable deleteOrderCallable; + private final OperationCallable + deleteOrderOperationCallable; + private final UnaryCallable submitOrderCallable; + private final OperationCallable + submitOrderOperationCallable; + private final UnaryCallable listSitesCallable; + private final UnaryCallable listSitesPagedCallable; + private final UnaryCallable getSiteCallable; + private final UnaryCallable createSiteCallable; + private final OperationCallable + createSiteOperationCallable; + private final UnaryCallable updateSiteCallable; + private final OperationCallable + updateSiteOperationCallable; + private final UnaryCallable + listHardwareGroupsCallable; + private final UnaryCallable + listHardwareGroupsPagedCallable; + private final UnaryCallable getHardwareGroupCallable; + private final UnaryCallable createHardwareGroupCallable; + private final OperationCallable + createHardwareGroupOperationCallable; + private final UnaryCallable updateHardwareGroupCallable; + private final OperationCallable + updateHardwareGroupOperationCallable; + private final UnaryCallable deleteHardwareGroupCallable; + private final OperationCallable + deleteHardwareGroupOperationCallable; + private final UnaryCallable listHardwareCallable; + private final UnaryCallable + listHardwarePagedCallable; + private final UnaryCallable getHardwareCallable; + private final UnaryCallable createHardwareCallable; + private final OperationCallable + createHardwareOperationCallable; + private final UnaryCallable updateHardwareCallable; + private final OperationCallable + updateHardwareOperationCallable; + private final UnaryCallable deleteHardwareCallable; + private final OperationCallable + deleteHardwareOperationCallable; + private final UnaryCallable listCommentsCallable; + private final UnaryCallable + listCommentsPagedCallable; + private final UnaryCallable getCommentCallable; + private final UnaryCallable createCommentCallable; + private final OperationCallable + createCommentOperationCallable; + private final UnaryCallable + listChangeLogEntriesCallable; + private final UnaryCallable + listChangeLogEntriesPagedCallable; + private final UnaryCallable getChangeLogEntryCallable; + private final UnaryCallable listSkusCallable; + private final UnaryCallable listSkusPagedCallable; + private final UnaryCallable getSkuCallable; + private final UnaryCallable listZonesCallable; + private final UnaryCallable listZonesPagedCallable; + private final UnaryCallable getZoneCallable; + private final UnaryCallable createZoneCallable; + private final OperationCallable + createZoneOperationCallable; + private final UnaryCallable updateZoneCallable; + private final OperationCallable + updateZoneOperationCallable; + private final UnaryCallable deleteZoneCallable; + private final OperationCallable + deleteZoneOperationCallable; + private final UnaryCallable signalZoneStateCallable; + private final OperationCallable + signalZoneStateOperationCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcGDCHardwareManagementStub create( + GDCHardwareManagementStubSettings settings) throws IOException { + return new GrpcGDCHardwareManagementStub(settings, ClientContext.create(settings)); + } + + public static final GrpcGDCHardwareManagementStub create(ClientContext clientContext) + throws IOException { + return new GrpcGDCHardwareManagementStub( + GDCHardwareManagementStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcGDCHardwareManagementStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcGDCHardwareManagementStub( + GDCHardwareManagementStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcGDCHardwareManagementStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcGDCHardwareManagementStub( + GDCHardwareManagementStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcGDCHardwareManagementCallableFactory()); + } + + /** + * Constructs an instance of GrpcGDCHardwareManagementStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcGDCHardwareManagementStub( + GDCHardwareManagementStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings listOrdersTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listOrdersMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getOrderTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getOrderMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createOrderTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createOrderMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateOrderTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateOrderMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("order.name", String.valueOf(request.getOrder().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteOrderTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteOrderMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings submitOrderTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(submitOrderMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listSitesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listSitesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getSiteTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getSiteMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createSiteTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createSiteMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateSiteTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateSiteMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("site.name", String.valueOf(request.getSite().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listHardwareGroupsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listHardwareGroupsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getHardwareGroupTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getHardwareGroupMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createHardwareGroupTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createHardwareGroupMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateHardwareGroupTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateHardwareGroupMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "hardware_group.name", String.valueOf(request.getHardwareGroup().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteHardwareGroupTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteHardwareGroupMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listHardwareTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listHardwareMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getHardwareTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getHardwareMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createHardwareTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createHardwareMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateHardwareTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateHardwareMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("hardware.name", String.valueOf(request.getHardware().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteHardwareTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteHardwareMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listCommentsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listCommentsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getCommentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getCommentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createCommentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createCommentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listChangeLogEntriesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listChangeLogEntriesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getChangeLogEntryTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getChangeLogEntryMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listSkusTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listSkusMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getSkuTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getSkuMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listZonesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listZonesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getZoneTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getZoneMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createZoneTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createZoneMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateZoneTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateZoneMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("zone.name", String.valueOf(request.getZone().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteZoneTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteZoneMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings signalZoneStateTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(signalZoneStateMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getLocationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.listOrdersCallable = + callableFactory.createUnaryCallable( + listOrdersTransportSettings, settings.listOrdersSettings(), clientContext); + this.listOrdersPagedCallable = + callableFactory.createPagedCallable( + listOrdersTransportSettings, settings.listOrdersSettings(), clientContext); + this.getOrderCallable = + callableFactory.createUnaryCallable( + getOrderTransportSettings, settings.getOrderSettings(), clientContext); + this.createOrderCallable = + callableFactory.createUnaryCallable( + createOrderTransportSettings, settings.createOrderSettings(), clientContext); + this.createOrderOperationCallable = + callableFactory.createOperationCallable( + createOrderTransportSettings, + settings.createOrderOperationSettings(), + clientContext, + operationsStub); + this.updateOrderCallable = + callableFactory.createUnaryCallable( + updateOrderTransportSettings, settings.updateOrderSettings(), clientContext); + this.updateOrderOperationCallable = + callableFactory.createOperationCallable( + updateOrderTransportSettings, + settings.updateOrderOperationSettings(), + clientContext, + operationsStub); + this.deleteOrderCallable = + callableFactory.createUnaryCallable( + deleteOrderTransportSettings, settings.deleteOrderSettings(), clientContext); + this.deleteOrderOperationCallable = + callableFactory.createOperationCallable( + deleteOrderTransportSettings, + settings.deleteOrderOperationSettings(), + clientContext, + operationsStub); + this.submitOrderCallable = + callableFactory.createUnaryCallable( + submitOrderTransportSettings, settings.submitOrderSettings(), clientContext); + this.submitOrderOperationCallable = + callableFactory.createOperationCallable( + submitOrderTransportSettings, + settings.submitOrderOperationSettings(), + clientContext, + operationsStub); + this.listSitesCallable = + callableFactory.createUnaryCallable( + listSitesTransportSettings, settings.listSitesSettings(), clientContext); + this.listSitesPagedCallable = + callableFactory.createPagedCallable( + listSitesTransportSettings, settings.listSitesSettings(), clientContext); + this.getSiteCallable = + callableFactory.createUnaryCallable( + getSiteTransportSettings, settings.getSiteSettings(), clientContext); + this.createSiteCallable = + callableFactory.createUnaryCallable( + createSiteTransportSettings, settings.createSiteSettings(), clientContext); + this.createSiteOperationCallable = + callableFactory.createOperationCallable( + createSiteTransportSettings, + settings.createSiteOperationSettings(), + clientContext, + operationsStub); + this.updateSiteCallable = + callableFactory.createUnaryCallable( + updateSiteTransportSettings, settings.updateSiteSettings(), clientContext); + this.updateSiteOperationCallable = + callableFactory.createOperationCallable( + updateSiteTransportSettings, + settings.updateSiteOperationSettings(), + clientContext, + operationsStub); + this.listHardwareGroupsCallable = + callableFactory.createUnaryCallable( + listHardwareGroupsTransportSettings, + settings.listHardwareGroupsSettings(), + clientContext); + this.listHardwareGroupsPagedCallable = + callableFactory.createPagedCallable( + listHardwareGroupsTransportSettings, + settings.listHardwareGroupsSettings(), + clientContext); + this.getHardwareGroupCallable = + callableFactory.createUnaryCallable( + getHardwareGroupTransportSettings, settings.getHardwareGroupSettings(), clientContext); + this.createHardwareGroupCallable = + callableFactory.createUnaryCallable( + createHardwareGroupTransportSettings, + settings.createHardwareGroupSettings(), + clientContext); + this.createHardwareGroupOperationCallable = + callableFactory.createOperationCallable( + createHardwareGroupTransportSettings, + settings.createHardwareGroupOperationSettings(), + clientContext, + operationsStub); + this.updateHardwareGroupCallable = + callableFactory.createUnaryCallable( + updateHardwareGroupTransportSettings, + settings.updateHardwareGroupSettings(), + clientContext); + this.updateHardwareGroupOperationCallable = + callableFactory.createOperationCallable( + updateHardwareGroupTransportSettings, + settings.updateHardwareGroupOperationSettings(), + clientContext, + operationsStub); + this.deleteHardwareGroupCallable = + callableFactory.createUnaryCallable( + deleteHardwareGroupTransportSettings, + settings.deleteHardwareGroupSettings(), + clientContext); + this.deleteHardwareGroupOperationCallable = + callableFactory.createOperationCallable( + deleteHardwareGroupTransportSettings, + settings.deleteHardwareGroupOperationSettings(), + clientContext, + operationsStub); + this.listHardwareCallable = + callableFactory.createUnaryCallable( + listHardwareTransportSettings, settings.listHardwareSettings(), clientContext); + this.listHardwarePagedCallable = + callableFactory.createPagedCallable( + listHardwareTransportSettings, settings.listHardwareSettings(), clientContext); + this.getHardwareCallable = + callableFactory.createUnaryCallable( + getHardwareTransportSettings, settings.getHardwareSettings(), clientContext); + this.createHardwareCallable = + callableFactory.createUnaryCallable( + createHardwareTransportSettings, settings.createHardwareSettings(), clientContext); + this.createHardwareOperationCallable = + callableFactory.createOperationCallable( + createHardwareTransportSettings, + settings.createHardwareOperationSettings(), + clientContext, + operationsStub); + this.updateHardwareCallable = + callableFactory.createUnaryCallable( + updateHardwareTransportSettings, settings.updateHardwareSettings(), clientContext); + this.updateHardwareOperationCallable = + callableFactory.createOperationCallable( + updateHardwareTransportSettings, + settings.updateHardwareOperationSettings(), + clientContext, + operationsStub); + this.deleteHardwareCallable = + callableFactory.createUnaryCallable( + deleteHardwareTransportSettings, settings.deleteHardwareSettings(), clientContext); + this.deleteHardwareOperationCallable = + callableFactory.createOperationCallable( + deleteHardwareTransportSettings, + settings.deleteHardwareOperationSettings(), + clientContext, + operationsStub); + this.listCommentsCallable = + callableFactory.createUnaryCallable( + listCommentsTransportSettings, settings.listCommentsSettings(), clientContext); + this.listCommentsPagedCallable = + callableFactory.createPagedCallable( + listCommentsTransportSettings, settings.listCommentsSettings(), clientContext); + this.getCommentCallable = + callableFactory.createUnaryCallable( + getCommentTransportSettings, settings.getCommentSettings(), clientContext); + this.createCommentCallable = + callableFactory.createUnaryCallable( + createCommentTransportSettings, settings.createCommentSettings(), clientContext); + this.createCommentOperationCallable = + callableFactory.createOperationCallable( + createCommentTransportSettings, + settings.createCommentOperationSettings(), + clientContext, + operationsStub); + this.listChangeLogEntriesCallable = + callableFactory.createUnaryCallable( + listChangeLogEntriesTransportSettings, + settings.listChangeLogEntriesSettings(), + clientContext); + this.listChangeLogEntriesPagedCallable = + callableFactory.createPagedCallable( + listChangeLogEntriesTransportSettings, + settings.listChangeLogEntriesSettings(), + clientContext); + this.getChangeLogEntryCallable = + callableFactory.createUnaryCallable( + getChangeLogEntryTransportSettings, + settings.getChangeLogEntrySettings(), + clientContext); + this.listSkusCallable = + callableFactory.createUnaryCallable( + listSkusTransportSettings, settings.listSkusSettings(), clientContext); + this.listSkusPagedCallable = + callableFactory.createPagedCallable( + listSkusTransportSettings, settings.listSkusSettings(), clientContext); + this.getSkuCallable = + callableFactory.createUnaryCallable( + getSkuTransportSettings, settings.getSkuSettings(), clientContext); + this.listZonesCallable = + callableFactory.createUnaryCallable( + listZonesTransportSettings, settings.listZonesSettings(), clientContext); + this.listZonesPagedCallable = + callableFactory.createPagedCallable( + listZonesTransportSettings, settings.listZonesSettings(), clientContext); + this.getZoneCallable = + callableFactory.createUnaryCallable( + getZoneTransportSettings, settings.getZoneSettings(), clientContext); + this.createZoneCallable = + callableFactory.createUnaryCallable( + createZoneTransportSettings, settings.createZoneSettings(), clientContext); + this.createZoneOperationCallable = + callableFactory.createOperationCallable( + createZoneTransportSettings, + settings.createZoneOperationSettings(), + clientContext, + operationsStub); + this.updateZoneCallable = + callableFactory.createUnaryCallable( + updateZoneTransportSettings, settings.updateZoneSettings(), clientContext); + this.updateZoneOperationCallable = + callableFactory.createOperationCallable( + updateZoneTransportSettings, + settings.updateZoneOperationSettings(), + clientContext, + operationsStub); + this.deleteZoneCallable = + callableFactory.createUnaryCallable( + deleteZoneTransportSettings, settings.deleteZoneSettings(), clientContext); + this.deleteZoneOperationCallable = + callableFactory.createOperationCallable( + deleteZoneTransportSettings, + settings.deleteZoneOperationSettings(), + clientContext, + operationsStub); + this.signalZoneStateCallable = + callableFactory.createUnaryCallable( + signalZoneStateTransportSettings, settings.signalZoneStateSettings(), clientContext); + this.signalZoneStateOperationCallable = + callableFactory.createOperationCallable( + signalZoneStateTransportSettings, + settings.signalZoneStateOperationSettings(), + clientContext, + operationsStub); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable listOrdersCallable() { + return listOrdersCallable; + } + + @Override + public UnaryCallable listOrdersPagedCallable() { + return listOrdersPagedCallable; + } + + @Override + public UnaryCallable getOrderCallable() { + return getOrderCallable; + } + + @Override + public UnaryCallable createOrderCallable() { + return createOrderCallable; + } + + @Override + public OperationCallable + createOrderOperationCallable() { + return createOrderOperationCallable; + } + + @Override + public UnaryCallable updateOrderCallable() { + return updateOrderCallable; + } + + @Override + public OperationCallable + updateOrderOperationCallable() { + return updateOrderOperationCallable; + } + + @Override + public UnaryCallable deleteOrderCallable() { + return deleteOrderCallable; + } + + @Override + public OperationCallable + deleteOrderOperationCallable() { + return deleteOrderOperationCallable; + } + + @Override + public UnaryCallable submitOrderCallable() { + return submitOrderCallable; + } + + @Override + public OperationCallable + submitOrderOperationCallable() { + return submitOrderOperationCallable; + } + + @Override + public UnaryCallable listSitesCallable() { + return listSitesCallable; + } + + @Override + public UnaryCallable listSitesPagedCallable() { + return listSitesPagedCallable; + } + + @Override + public UnaryCallable getSiteCallable() { + return getSiteCallable; + } + + @Override + public UnaryCallable createSiteCallable() { + return createSiteCallable; + } + + @Override + public OperationCallable + createSiteOperationCallable() { + return createSiteOperationCallable; + } + + @Override + public UnaryCallable updateSiteCallable() { + return updateSiteCallable; + } + + @Override + public OperationCallable + updateSiteOperationCallable() { + return updateSiteOperationCallable; + } + + @Override + public UnaryCallable + listHardwareGroupsCallable() { + return listHardwareGroupsCallable; + } + + @Override + public UnaryCallable + listHardwareGroupsPagedCallable() { + return listHardwareGroupsPagedCallable; + } + + @Override + public UnaryCallable getHardwareGroupCallable() { + return getHardwareGroupCallable; + } + + @Override + public UnaryCallable createHardwareGroupCallable() { + return createHardwareGroupCallable; + } + + @Override + public OperationCallable + createHardwareGroupOperationCallable() { + return createHardwareGroupOperationCallable; + } + + @Override + public UnaryCallable updateHardwareGroupCallable() { + return updateHardwareGroupCallable; + } + + @Override + public OperationCallable + updateHardwareGroupOperationCallable() { + return updateHardwareGroupOperationCallable; + } + + @Override + public UnaryCallable deleteHardwareGroupCallable() { + return deleteHardwareGroupCallable; + } + + @Override + public OperationCallable + deleteHardwareGroupOperationCallable() { + return deleteHardwareGroupOperationCallable; + } + + @Override + public UnaryCallable listHardwareCallable() { + return listHardwareCallable; + } + + @Override + public UnaryCallable listHardwarePagedCallable() { + return listHardwarePagedCallable; + } + + @Override + public UnaryCallable getHardwareCallable() { + return getHardwareCallable; + } + + @Override + public UnaryCallable createHardwareCallable() { + return createHardwareCallable; + } + + @Override + public OperationCallable + createHardwareOperationCallable() { + return createHardwareOperationCallable; + } + + @Override + public UnaryCallable updateHardwareCallable() { + return updateHardwareCallable; + } + + @Override + public OperationCallable + updateHardwareOperationCallable() { + return updateHardwareOperationCallable; + } + + @Override + public UnaryCallable deleteHardwareCallable() { + return deleteHardwareCallable; + } + + @Override + public OperationCallable + deleteHardwareOperationCallable() { + return deleteHardwareOperationCallable; + } + + @Override + public UnaryCallable listCommentsCallable() { + return listCommentsCallable; + } + + @Override + public UnaryCallable listCommentsPagedCallable() { + return listCommentsPagedCallable; + } + + @Override + public UnaryCallable getCommentCallable() { + return getCommentCallable; + } + + @Override + public UnaryCallable createCommentCallable() { + return createCommentCallable; + } + + @Override + public OperationCallable + createCommentOperationCallable() { + return createCommentOperationCallable; + } + + @Override + public UnaryCallable + listChangeLogEntriesCallable() { + return listChangeLogEntriesCallable; + } + + @Override + public UnaryCallable + listChangeLogEntriesPagedCallable() { + return listChangeLogEntriesPagedCallable; + } + + @Override + public UnaryCallable getChangeLogEntryCallable() { + return getChangeLogEntryCallable; + } + + @Override + public UnaryCallable listSkusCallable() { + return listSkusCallable; + } + + @Override + public UnaryCallable listSkusPagedCallable() { + return listSkusPagedCallable; + } + + @Override + public UnaryCallable getSkuCallable() { + return getSkuCallable; + } + + @Override + public UnaryCallable listZonesCallable() { + return listZonesCallable; + } + + @Override + public UnaryCallable listZonesPagedCallable() { + return listZonesPagedCallable; + } + + @Override + public UnaryCallable getZoneCallable() { + return getZoneCallable; + } + + @Override + public UnaryCallable createZoneCallable() { + return createZoneCallable; + } + + @Override + public OperationCallable + createZoneOperationCallable() { + return createZoneOperationCallable; + } + + @Override + public UnaryCallable updateZoneCallable() { + return updateZoneCallable; + } + + @Override + public OperationCallable + updateZoneOperationCallable() { + return updateZoneOperationCallable; + } + + @Override + public UnaryCallable deleteZoneCallable() { + return deleteZoneCallable; + } + + @Override + public OperationCallable + deleteZoneOperationCallable() { + return deleteZoneOperationCallable; + } + + @Override + public UnaryCallable signalZoneStateCallable() { + return signalZoneStateCallable; + } + + @Override + public OperationCallable + signalZoneStateOperationCallable() { + return signalZoneStateOperationCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/HttpJsonGDCHardwareManagementCallableFactory.java b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/HttpJsonGDCHardwareManagementCallableFactory.java new file mode 100644 index 000000000000..5979afbc39c5 --- /dev/null +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/HttpJsonGDCHardwareManagementCallableFactory.java @@ -0,0 +1,103 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the GDCHardwareManagement service API. + * + *

          This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonGDCHardwareManagementCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/HttpJsonGDCHardwareManagementStub.java b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/HttpJsonGDCHardwareManagementStub.java new file mode 100644 index 000000000000..347808ab8abb --- /dev/null +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/HttpJsonGDCHardwareManagementStub.java @@ -0,0 +1,2719 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.stub; + +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListChangeLogEntriesPagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListCommentsPagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListHardwareGroupsPagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListHardwarePagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListLocationsPagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListOrdersPagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListSitesPagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListSkusPagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListZonesPagedResponse; + +import com.google.api.HttpRule; +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry; +import com.google.cloud.gdchardwaremanagement.v1alpha.Comment; +import com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.Hardware; +import com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse; +import com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata; +import com.google.cloud.gdchardwaremanagement.v1alpha.Order; +import com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.Site; +import com.google.cloud.gdchardwaremanagement.v1alpha.Sku; +import com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.Zone; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.ImmutableMap; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the GDCHardwareManagement service API. + * + *

          This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonGDCHardwareManagementStub extends GDCHardwareManagementStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(Empty.getDescriptor()) + .add(Order.getDescriptor()) + .add(HardwareGroup.getDescriptor()) + .add(Site.getDescriptor()) + .add(Hardware.getDescriptor()) + .add(OperationMetadata.getDescriptor()) + .add(Zone.getDescriptor()) + .add(Comment.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + listOrdersMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/ListOrders") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{parent=projects/*/locations/*}/orders", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListOrdersResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getOrderMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/GetOrder") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{name=projects/*/locations/*/orders/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Order.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createOrderMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/CreateOrder") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{parent=projects/*/locations/*}/orders", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "orderId", request.getOrderId()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("order", request.getOrder(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateOrderRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateOrderMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/UpdateOrder") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{order.name=projects/*/locations/*/orders/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "order.name", request.getOrder().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("order", request.getOrder(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateOrderRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteOrderMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/DeleteOrder") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{name=projects/*/locations/*/orders/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "force", request.getForce()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteOrderRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + submitOrderMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/SubmitOrder") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{name=projects/*/locations/*/orders/*}:submit", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (SubmitOrderRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + listSitesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/ListSites") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{parent=projects/*/locations/*}/sites", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListSitesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getSiteMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/GetSite") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{name=projects/*/locations/*/sites/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Site.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createSiteMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/CreateSite") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{parent=projects/*/locations/*}/sites", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "siteId", request.getSiteId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("site", request.getSite(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateSiteRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateSiteMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/UpdateSite") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{site.name=projects/*/locations/*/sites/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "site.name", request.getSite().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("site", request.getSite(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateSiteRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + listHardwareGroupsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/ListHardwareGroups") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{parent=projects/*/locations/*/orders/*}/hardwareGroups", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListHardwareGroupsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getHardwareGroupMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/GetHardwareGroup") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{name=projects/*/locations/*/orders/*/hardwareGroups/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(HardwareGroup.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createHardwareGroupMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/CreateHardwareGroup") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{parent=projects/*/locations/*/orders/*}/hardwareGroups", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "hardwareGroupId", request.getHardwareGroupId()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("hardwareGroup", request.getHardwareGroup(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateHardwareGroupRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateHardwareGroupMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/UpdateHardwareGroup") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{hardwareGroup.name=projects/*/locations/*/orders/*/hardwareGroups/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "hardwareGroup.name", request.getHardwareGroup().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("hardwareGroup", request.getHardwareGroup(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateHardwareGroupRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteHardwareGroupMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/DeleteHardwareGroup") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{name=projects/*/locations/*/orders/*/hardwareGroups/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteHardwareGroupRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + listHardwareMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/ListHardware") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{parent=projects/*/locations/*}/hardware", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListHardwareResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getHardwareMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/GetHardware") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{name=projects/*/locations/*/hardware/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Hardware.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createHardwareMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/CreateHardware") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{parent=projects/*/locations/*}/hardware", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "hardwareId", request.getHardwareId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("hardware", request.getHardware(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateHardwareRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateHardwareMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/UpdateHardware") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{hardware.name=projects/*/locations/*/hardware/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "hardware.name", request.getHardware().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("hardware", request.getHardware(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateHardwareRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteHardwareMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/DeleteHardware") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{name=projects/*/locations/*/hardware/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteHardwareRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + listCommentsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/ListComments") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{parent=projects/*/locations/*/orders/*}/comments", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListCommentsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getCommentMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/GetComment") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{name=projects/*/locations/*/orders/*/comments/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Comment.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createCommentMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/CreateComment") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{parent=projects/*/locations/*/orders/*}/comments", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "commentId", request.getCommentId()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("comment", request.getComment(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateCommentRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor< + ListChangeLogEntriesRequest, ListChangeLogEntriesResponse> + listChangeLogEntriesMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/ListChangeLogEntries") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{parent=projects/*/locations/*/orders/*}/changeLogEntries", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListChangeLogEntriesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getChangeLogEntryMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/GetChangeLogEntry") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{name=projects/*/locations/*/orders/*/changeLogEntries/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ChangeLogEntry.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listSkusMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/ListSkus") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{parent=projects/*/locations/*}/skus", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListSkusResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getSkuMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/GetSku") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{name=projects/*/locations/*/skus/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Sku.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listZonesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/ListZones") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{parent=projects/*/locations/*}/zones", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListZonesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getZoneMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/GetZone") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{name=projects/*/locations/*/zones/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Zone.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createZoneMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/CreateZone") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{parent=projects/*/locations/*}/zones", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "zoneId", request.getZoneId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("zone", request.getZone(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateZoneRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateZoneMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/UpdateZone") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{zone.name=projects/*/locations/*/zones/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "zone.name", request.getZone().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("zone", request.getZone(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateZoneRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteZoneMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/DeleteZone") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{name=projects/*/locations/*/zones/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteZoneRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + signalZoneStateMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement/SignalZoneState") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{name=projects/*/locations/*/zones/*}:signal", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (SignalZoneStateRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + listLocationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{name=projects/*}/locations", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListLocationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getLocationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{name=projects/*/locations/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Location.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable listOrdersCallable; + private final UnaryCallable listOrdersPagedCallable; + private final UnaryCallable getOrderCallable; + private final UnaryCallable createOrderCallable; + private final OperationCallable + createOrderOperationCallable; + private final UnaryCallable updateOrderCallable; + private final OperationCallable + updateOrderOperationCallable; + private final UnaryCallable deleteOrderCallable; + private final OperationCallable + deleteOrderOperationCallable; + private final UnaryCallable submitOrderCallable; + private final OperationCallable + submitOrderOperationCallable; + private final UnaryCallable listSitesCallable; + private final UnaryCallable listSitesPagedCallable; + private final UnaryCallable getSiteCallable; + private final UnaryCallable createSiteCallable; + private final OperationCallable + createSiteOperationCallable; + private final UnaryCallable updateSiteCallable; + private final OperationCallable + updateSiteOperationCallable; + private final UnaryCallable + listHardwareGroupsCallable; + private final UnaryCallable + listHardwareGroupsPagedCallable; + private final UnaryCallable getHardwareGroupCallable; + private final UnaryCallable createHardwareGroupCallable; + private final OperationCallable + createHardwareGroupOperationCallable; + private final UnaryCallable updateHardwareGroupCallable; + private final OperationCallable + updateHardwareGroupOperationCallable; + private final UnaryCallable deleteHardwareGroupCallable; + private final OperationCallable + deleteHardwareGroupOperationCallable; + private final UnaryCallable listHardwareCallable; + private final UnaryCallable + listHardwarePagedCallable; + private final UnaryCallable getHardwareCallable; + private final UnaryCallable createHardwareCallable; + private final OperationCallable + createHardwareOperationCallable; + private final UnaryCallable updateHardwareCallable; + private final OperationCallable + updateHardwareOperationCallable; + private final UnaryCallable deleteHardwareCallable; + private final OperationCallable + deleteHardwareOperationCallable; + private final UnaryCallable listCommentsCallable; + private final UnaryCallable + listCommentsPagedCallable; + private final UnaryCallable getCommentCallable; + private final UnaryCallable createCommentCallable; + private final OperationCallable + createCommentOperationCallable; + private final UnaryCallable + listChangeLogEntriesCallable; + private final UnaryCallable + listChangeLogEntriesPagedCallable; + private final UnaryCallable getChangeLogEntryCallable; + private final UnaryCallable listSkusCallable; + private final UnaryCallable listSkusPagedCallable; + private final UnaryCallable getSkuCallable; + private final UnaryCallable listZonesCallable; + private final UnaryCallable listZonesPagedCallable; + private final UnaryCallable getZoneCallable; + private final UnaryCallable createZoneCallable; + private final OperationCallable + createZoneOperationCallable; + private final UnaryCallable updateZoneCallable; + private final OperationCallable + updateZoneOperationCallable; + private final UnaryCallable deleteZoneCallable; + private final OperationCallable + deleteZoneOperationCallable; + private final UnaryCallable signalZoneStateCallable; + private final OperationCallable + signalZoneStateOperationCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonGDCHardwareManagementStub create( + GDCHardwareManagementStubSettings settings) throws IOException { + return new HttpJsonGDCHardwareManagementStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonGDCHardwareManagementStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonGDCHardwareManagementStub( + GDCHardwareManagementStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonGDCHardwareManagementStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonGDCHardwareManagementStub( + GDCHardwareManagementStubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonGDCHardwareManagementStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonGDCHardwareManagementStub( + GDCHardwareManagementStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonGDCHardwareManagementCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonGDCHardwareManagementStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonGDCHardwareManagementStub( + GDCHardwareManagementStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create( + clientContext, + callableFactory, + typeRegistry, + ImmutableMap.builder() + .put( + "google.longrunning.Operations.CancelOperation", + HttpRule.newBuilder() + .setPost("/v1alpha/{name=projects/*/locations/*/operations/*}:cancel") + .build()) + .put( + "google.longrunning.Operations.DeleteOperation", + HttpRule.newBuilder() + .setDelete("/v1alpha/{name=projects/*/locations/*/operations/*}") + .build()) + .put( + "google.longrunning.Operations.GetOperation", + HttpRule.newBuilder() + .setGet("/v1alpha/{name=projects/*/locations/*/operations/*}") + .build()) + .put( + "google.longrunning.Operations.ListOperations", + HttpRule.newBuilder() + .setGet("/v1alpha/{name=projects/*/locations/*}/operations") + .build()) + .build()); + + HttpJsonCallSettings listOrdersTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listOrdersMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getOrderTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getOrderMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createOrderTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createOrderMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateOrderTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateOrderMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("order.name", String.valueOf(request.getOrder().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteOrderTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteOrderMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings submitOrderTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(submitOrderMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings listSitesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listSitesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getSiteTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getSiteMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createSiteTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createSiteMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateSiteTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateSiteMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("site.name", String.valueOf(request.getSite().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listHardwareGroupsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listHardwareGroupsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getHardwareGroupTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getHardwareGroupMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + createHardwareGroupTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createHardwareGroupMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + updateHardwareGroupTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateHardwareGroupMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "hardware_group.name", + String.valueOf(request.getHardwareGroup().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + deleteHardwareGroupTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteHardwareGroupMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings listHardwareTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listHardwareMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getHardwareTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getHardwareMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createHardwareTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createHardwareMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateHardwareTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateHardwareMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("hardware.name", String.valueOf(request.getHardware().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteHardwareTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteHardwareMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings listCommentsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listCommentsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getCommentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getCommentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createCommentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createCommentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listChangeLogEntriesTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listChangeLogEntriesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + getChangeLogEntryTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getChangeLogEntryMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings listSkusTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listSkusMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getSkuTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getSkuMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings listZonesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listZonesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getZoneTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getZoneMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createZoneTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createZoneMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateZoneTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateZoneMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("zone.name", String.valueOf(request.getZone().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteZoneTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteZoneMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings signalZoneStateTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(signalZoneStateMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listLocationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getLocationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.listOrdersCallable = + callableFactory.createUnaryCallable( + listOrdersTransportSettings, settings.listOrdersSettings(), clientContext); + this.listOrdersPagedCallable = + callableFactory.createPagedCallable( + listOrdersTransportSettings, settings.listOrdersSettings(), clientContext); + this.getOrderCallable = + callableFactory.createUnaryCallable( + getOrderTransportSettings, settings.getOrderSettings(), clientContext); + this.createOrderCallable = + callableFactory.createUnaryCallable( + createOrderTransportSettings, settings.createOrderSettings(), clientContext); + this.createOrderOperationCallable = + callableFactory.createOperationCallable( + createOrderTransportSettings, + settings.createOrderOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateOrderCallable = + callableFactory.createUnaryCallable( + updateOrderTransportSettings, settings.updateOrderSettings(), clientContext); + this.updateOrderOperationCallable = + callableFactory.createOperationCallable( + updateOrderTransportSettings, + settings.updateOrderOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteOrderCallable = + callableFactory.createUnaryCallable( + deleteOrderTransportSettings, settings.deleteOrderSettings(), clientContext); + this.deleteOrderOperationCallable = + callableFactory.createOperationCallable( + deleteOrderTransportSettings, + settings.deleteOrderOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.submitOrderCallable = + callableFactory.createUnaryCallable( + submitOrderTransportSettings, settings.submitOrderSettings(), clientContext); + this.submitOrderOperationCallable = + callableFactory.createOperationCallable( + submitOrderTransportSettings, + settings.submitOrderOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listSitesCallable = + callableFactory.createUnaryCallable( + listSitesTransportSettings, settings.listSitesSettings(), clientContext); + this.listSitesPagedCallable = + callableFactory.createPagedCallable( + listSitesTransportSettings, settings.listSitesSettings(), clientContext); + this.getSiteCallable = + callableFactory.createUnaryCallable( + getSiteTransportSettings, settings.getSiteSettings(), clientContext); + this.createSiteCallable = + callableFactory.createUnaryCallable( + createSiteTransportSettings, settings.createSiteSettings(), clientContext); + this.createSiteOperationCallable = + callableFactory.createOperationCallable( + createSiteTransportSettings, + settings.createSiteOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateSiteCallable = + callableFactory.createUnaryCallable( + updateSiteTransportSettings, settings.updateSiteSettings(), clientContext); + this.updateSiteOperationCallable = + callableFactory.createOperationCallable( + updateSiteTransportSettings, + settings.updateSiteOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listHardwareGroupsCallable = + callableFactory.createUnaryCallable( + listHardwareGroupsTransportSettings, + settings.listHardwareGroupsSettings(), + clientContext); + this.listHardwareGroupsPagedCallable = + callableFactory.createPagedCallable( + listHardwareGroupsTransportSettings, + settings.listHardwareGroupsSettings(), + clientContext); + this.getHardwareGroupCallable = + callableFactory.createUnaryCallable( + getHardwareGroupTransportSettings, settings.getHardwareGroupSettings(), clientContext); + this.createHardwareGroupCallable = + callableFactory.createUnaryCallable( + createHardwareGroupTransportSettings, + settings.createHardwareGroupSettings(), + clientContext); + this.createHardwareGroupOperationCallable = + callableFactory.createOperationCallable( + createHardwareGroupTransportSettings, + settings.createHardwareGroupOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateHardwareGroupCallable = + callableFactory.createUnaryCallable( + updateHardwareGroupTransportSettings, + settings.updateHardwareGroupSettings(), + clientContext); + this.updateHardwareGroupOperationCallable = + callableFactory.createOperationCallable( + updateHardwareGroupTransportSettings, + settings.updateHardwareGroupOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteHardwareGroupCallable = + callableFactory.createUnaryCallable( + deleteHardwareGroupTransportSettings, + settings.deleteHardwareGroupSettings(), + clientContext); + this.deleteHardwareGroupOperationCallable = + callableFactory.createOperationCallable( + deleteHardwareGroupTransportSettings, + settings.deleteHardwareGroupOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listHardwareCallable = + callableFactory.createUnaryCallable( + listHardwareTransportSettings, settings.listHardwareSettings(), clientContext); + this.listHardwarePagedCallable = + callableFactory.createPagedCallable( + listHardwareTransportSettings, settings.listHardwareSettings(), clientContext); + this.getHardwareCallable = + callableFactory.createUnaryCallable( + getHardwareTransportSettings, settings.getHardwareSettings(), clientContext); + this.createHardwareCallable = + callableFactory.createUnaryCallable( + createHardwareTransportSettings, settings.createHardwareSettings(), clientContext); + this.createHardwareOperationCallable = + callableFactory.createOperationCallable( + createHardwareTransportSettings, + settings.createHardwareOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateHardwareCallable = + callableFactory.createUnaryCallable( + updateHardwareTransportSettings, settings.updateHardwareSettings(), clientContext); + this.updateHardwareOperationCallable = + callableFactory.createOperationCallable( + updateHardwareTransportSettings, + settings.updateHardwareOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteHardwareCallable = + callableFactory.createUnaryCallable( + deleteHardwareTransportSettings, settings.deleteHardwareSettings(), clientContext); + this.deleteHardwareOperationCallable = + callableFactory.createOperationCallable( + deleteHardwareTransportSettings, + settings.deleteHardwareOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listCommentsCallable = + callableFactory.createUnaryCallable( + listCommentsTransportSettings, settings.listCommentsSettings(), clientContext); + this.listCommentsPagedCallable = + callableFactory.createPagedCallable( + listCommentsTransportSettings, settings.listCommentsSettings(), clientContext); + this.getCommentCallable = + callableFactory.createUnaryCallable( + getCommentTransportSettings, settings.getCommentSettings(), clientContext); + this.createCommentCallable = + callableFactory.createUnaryCallable( + createCommentTransportSettings, settings.createCommentSettings(), clientContext); + this.createCommentOperationCallable = + callableFactory.createOperationCallable( + createCommentTransportSettings, + settings.createCommentOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listChangeLogEntriesCallable = + callableFactory.createUnaryCallable( + listChangeLogEntriesTransportSettings, + settings.listChangeLogEntriesSettings(), + clientContext); + this.listChangeLogEntriesPagedCallable = + callableFactory.createPagedCallable( + listChangeLogEntriesTransportSettings, + settings.listChangeLogEntriesSettings(), + clientContext); + this.getChangeLogEntryCallable = + callableFactory.createUnaryCallable( + getChangeLogEntryTransportSettings, + settings.getChangeLogEntrySettings(), + clientContext); + this.listSkusCallable = + callableFactory.createUnaryCallable( + listSkusTransportSettings, settings.listSkusSettings(), clientContext); + this.listSkusPagedCallable = + callableFactory.createPagedCallable( + listSkusTransportSettings, settings.listSkusSettings(), clientContext); + this.getSkuCallable = + callableFactory.createUnaryCallable( + getSkuTransportSettings, settings.getSkuSettings(), clientContext); + this.listZonesCallable = + callableFactory.createUnaryCallable( + listZonesTransportSettings, settings.listZonesSettings(), clientContext); + this.listZonesPagedCallable = + callableFactory.createPagedCallable( + listZonesTransportSettings, settings.listZonesSettings(), clientContext); + this.getZoneCallable = + callableFactory.createUnaryCallable( + getZoneTransportSettings, settings.getZoneSettings(), clientContext); + this.createZoneCallable = + callableFactory.createUnaryCallable( + createZoneTransportSettings, settings.createZoneSettings(), clientContext); + this.createZoneOperationCallable = + callableFactory.createOperationCallable( + createZoneTransportSettings, + settings.createZoneOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateZoneCallable = + callableFactory.createUnaryCallable( + updateZoneTransportSettings, settings.updateZoneSettings(), clientContext); + this.updateZoneOperationCallable = + callableFactory.createOperationCallable( + updateZoneTransportSettings, + settings.updateZoneOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteZoneCallable = + callableFactory.createUnaryCallable( + deleteZoneTransportSettings, settings.deleteZoneSettings(), clientContext); + this.deleteZoneOperationCallable = + callableFactory.createOperationCallable( + deleteZoneTransportSettings, + settings.deleteZoneOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.signalZoneStateCallable = + callableFactory.createUnaryCallable( + signalZoneStateTransportSettings, settings.signalZoneStateSettings(), clientContext); + this.signalZoneStateOperationCallable = + callableFactory.createOperationCallable( + signalZoneStateTransportSettings, + settings.signalZoneStateOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(listOrdersMethodDescriptor); + methodDescriptors.add(getOrderMethodDescriptor); + methodDescriptors.add(createOrderMethodDescriptor); + methodDescriptors.add(updateOrderMethodDescriptor); + methodDescriptors.add(deleteOrderMethodDescriptor); + methodDescriptors.add(submitOrderMethodDescriptor); + methodDescriptors.add(listSitesMethodDescriptor); + methodDescriptors.add(getSiteMethodDescriptor); + methodDescriptors.add(createSiteMethodDescriptor); + methodDescriptors.add(updateSiteMethodDescriptor); + methodDescriptors.add(listHardwareGroupsMethodDescriptor); + methodDescriptors.add(getHardwareGroupMethodDescriptor); + methodDescriptors.add(createHardwareGroupMethodDescriptor); + methodDescriptors.add(updateHardwareGroupMethodDescriptor); + methodDescriptors.add(deleteHardwareGroupMethodDescriptor); + methodDescriptors.add(listHardwareMethodDescriptor); + methodDescriptors.add(getHardwareMethodDescriptor); + methodDescriptors.add(createHardwareMethodDescriptor); + methodDescriptors.add(updateHardwareMethodDescriptor); + methodDescriptors.add(deleteHardwareMethodDescriptor); + methodDescriptors.add(listCommentsMethodDescriptor); + methodDescriptors.add(getCommentMethodDescriptor); + methodDescriptors.add(createCommentMethodDescriptor); + methodDescriptors.add(listChangeLogEntriesMethodDescriptor); + methodDescriptors.add(getChangeLogEntryMethodDescriptor); + methodDescriptors.add(listSkusMethodDescriptor); + methodDescriptors.add(getSkuMethodDescriptor); + methodDescriptors.add(listZonesMethodDescriptor); + methodDescriptors.add(getZoneMethodDescriptor); + methodDescriptors.add(createZoneMethodDescriptor); + methodDescriptors.add(updateZoneMethodDescriptor); + methodDescriptors.add(deleteZoneMethodDescriptor); + methodDescriptors.add(signalZoneStateMethodDescriptor); + methodDescriptors.add(listLocationsMethodDescriptor); + methodDescriptors.add(getLocationMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable listOrdersCallable() { + return listOrdersCallable; + } + + @Override + public UnaryCallable listOrdersPagedCallable() { + return listOrdersPagedCallable; + } + + @Override + public UnaryCallable getOrderCallable() { + return getOrderCallable; + } + + @Override + public UnaryCallable createOrderCallable() { + return createOrderCallable; + } + + @Override + public OperationCallable + createOrderOperationCallable() { + return createOrderOperationCallable; + } + + @Override + public UnaryCallable updateOrderCallable() { + return updateOrderCallable; + } + + @Override + public OperationCallable + updateOrderOperationCallable() { + return updateOrderOperationCallable; + } + + @Override + public UnaryCallable deleteOrderCallable() { + return deleteOrderCallable; + } + + @Override + public OperationCallable + deleteOrderOperationCallable() { + return deleteOrderOperationCallable; + } + + @Override + public UnaryCallable submitOrderCallable() { + return submitOrderCallable; + } + + @Override + public OperationCallable + submitOrderOperationCallable() { + return submitOrderOperationCallable; + } + + @Override + public UnaryCallable listSitesCallable() { + return listSitesCallable; + } + + @Override + public UnaryCallable listSitesPagedCallable() { + return listSitesPagedCallable; + } + + @Override + public UnaryCallable getSiteCallable() { + return getSiteCallable; + } + + @Override + public UnaryCallable createSiteCallable() { + return createSiteCallable; + } + + @Override + public OperationCallable + createSiteOperationCallable() { + return createSiteOperationCallable; + } + + @Override + public UnaryCallable updateSiteCallable() { + return updateSiteCallable; + } + + @Override + public OperationCallable + updateSiteOperationCallable() { + return updateSiteOperationCallable; + } + + @Override + public UnaryCallable + listHardwareGroupsCallable() { + return listHardwareGroupsCallable; + } + + @Override + public UnaryCallable + listHardwareGroupsPagedCallable() { + return listHardwareGroupsPagedCallable; + } + + @Override + public UnaryCallable getHardwareGroupCallable() { + return getHardwareGroupCallable; + } + + @Override + public UnaryCallable createHardwareGroupCallable() { + return createHardwareGroupCallable; + } + + @Override + public OperationCallable + createHardwareGroupOperationCallable() { + return createHardwareGroupOperationCallable; + } + + @Override + public UnaryCallable updateHardwareGroupCallable() { + return updateHardwareGroupCallable; + } + + @Override + public OperationCallable + updateHardwareGroupOperationCallable() { + return updateHardwareGroupOperationCallable; + } + + @Override + public UnaryCallable deleteHardwareGroupCallable() { + return deleteHardwareGroupCallable; + } + + @Override + public OperationCallable + deleteHardwareGroupOperationCallable() { + return deleteHardwareGroupOperationCallable; + } + + @Override + public UnaryCallable listHardwareCallable() { + return listHardwareCallable; + } + + @Override + public UnaryCallable listHardwarePagedCallable() { + return listHardwarePagedCallable; + } + + @Override + public UnaryCallable getHardwareCallable() { + return getHardwareCallable; + } + + @Override + public UnaryCallable createHardwareCallable() { + return createHardwareCallable; + } + + @Override + public OperationCallable + createHardwareOperationCallable() { + return createHardwareOperationCallable; + } + + @Override + public UnaryCallable updateHardwareCallable() { + return updateHardwareCallable; + } + + @Override + public OperationCallable + updateHardwareOperationCallable() { + return updateHardwareOperationCallable; + } + + @Override + public UnaryCallable deleteHardwareCallable() { + return deleteHardwareCallable; + } + + @Override + public OperationCallable + deleteHardwareOperationCallable() { + return deleteHardwareOperationCallable; + } + + @Override + public UnaryCallable listCommentsCallable() { + return listCommentsCallable; + } + + @Override + public UnaryCallable listCommentsPagedCallable() { + return listCommentsPagedCallable; + } + + @Override + public UnaryCallable getCommentCallable() { + return getCommentCallable; + } + + @Override + public UnaryCallable createCommentCallable() { + return createCommentCallable; + } + + @Override + public OperationCallable + createCommentOperationCallable() { + return createCommentOperationCallable; + } + + @Override + public UnaryCallable + listChangeLogEntriesCallable() { + return listChangeLogEntriesCallable; + } + + @Override + public UnaryCallable + listChangeLogEntriesPagedCallable() { + return listChangeLogEntriesPagedCallable; + } + + @Override + public UnaryCallable getChangeLogEntryCallable() { + return getChangeLogEntryCallable; + } + + @Override + public UnaryCallable listSkusCallable() { + return listSkusCallable; + } + + @Override + public UnaryCallable listSkusPagedCallable() { + return listSkusPagedCallable; + } + + @Override + public UnaryCallable getSkuCallable() { + return getSkuCallable; + } + + @Override + public UnaryCallable listZonesCallable() { + return listZonesCallable; + } + + @Override + public UnaryCallable listZonesPagedCallable() { + return listZonesPagedCallable; + } + + @Override + public UnaryCallable getZoneCallable() { + return getZoneCallable; + } + + @Override + public UnaryCallable createZoneCallable() { + return createZoneCallable; + } + + @Override + public OperationCallable + createZoneOperationCallable() { + return createZoneOperationCallable; + } + + @Override + public UnaryCallable updateZoneCallable() { + return updateZoneCallable; + } + + @Override + public OperationCallable + updateZoneOperationCallable() { + return updateZoneOperationCallable; + } + + @Override + public UnaryCallable deleteZoneCallable() { + return deleteZoneCallable; + } + + @Override + public OperationCallable + deleteZoneOperationCallable() { + return deleteZoneOperationCallable; + } + + @Override + public UnaryCallable signalZoneStateCallable() { + return signalZoneStateCallable; + } + + @Override + public OperationCallable + signalZoneStateOperationCallable() { + return signalZoneStateOperationCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/resources/META-INF/native-image/com.google.cloud.gdchardwaremanagement.v1alpha/reflect-config.json b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/resources/META-INF/native-image/com.google.cloud.gdchardwaremanagement.v1alpha/reflect-config.json new file mode 100644 index 000000000000..fa4b51d078ba --- /dev/null +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/resources/META-INF/native-image/com.google.cloud.gdchardwaremanagement.v1alpha/reflect-config.json @@ -0,0 +1,2810 @@ +[ + { + "name": "com.google.api.ClientLibraryDestination", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibraryOrganization", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldBehavior", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldInfo$Format", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.LaunchStage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$History", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Style", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.Comment", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.Comment$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.Contact", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.Contact$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.Hardware", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.Hardware$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.Hardware$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo$RackType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo$Amperes", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo$NetworkUplinkType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo$PowerReceptacleType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo$Voltage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.Order", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.Order$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.Order$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.Order$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.PowerSupply", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest$StateSignal", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.Site", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.Site$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.Sku", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.Sku$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.Sku$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.Subnet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.Subnet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.Zone", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.Zone$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.Zone$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.GetLocationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.GetLocationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.Location", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.Location$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.CancelOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.CancelOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.DeleteOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.DeleteOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.GetOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.GetOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.Operation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.Operation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.OperationInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.OperationInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.WaitOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.WaitOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Any", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Any$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$Edition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$VerificationState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$EnumType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$FieldPresence", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$JsonFormat", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$MessageEncoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$RepeatedFieldEncoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Utf8Validation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Label", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$CType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$JSType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionRetention", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionTargetType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$OptimizeMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Semantic", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$IdempotencyLevel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.FieldMask", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.FieldMask$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.Status", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.Status$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.Date", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.Date$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.DateTime", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.DateTime$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.DayOfWeek", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.PostalAddress", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.PostalAddress$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.TimeOfDay", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.TimeOfDay$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.TimeZone", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.TimeZone$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + } +] \ No newline at end of file diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/test/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementClientHttpJsonTest.java b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/test/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementClientHttpJsonTest.java new file mode 100644 index 000000000000..35faf4ea98b7 --- /dev/null +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/test/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementClientHttpJsonTest.java @@ -0,0 +1,3704 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha; + +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListChangeLogEntriesPagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListCommentsPagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListHardwareGroupsPagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListHardwarePagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListLocationsPagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListOrdersPagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListSitesPagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListSkusPagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListZonesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.gdchardwaremanagement.v1alpha.stub.HttpJsonGDCHardwareManagementStub; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import com.google.type.Date; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class GDCHardwareManagementClientHttpJsonTest { + private static MockHttpService mockService; + private static GDCHardwareManagementClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonGDCHardwareManagementStub.getMethodDescriptors(), + GDCHardwareManagementSettings.getDefaultEndpoint()); + GDCHardwareManagementSettings settings = + GDCHardwareManagementSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + GDCHardwareManagementSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = GDCHardwareManagementClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void listOrdersTest() throws Exception { + Order responsesElement = Order.newBuilder().build(); + ListOrdersResponse expectedResponse = + ListOrdersResponse.newBuilder() + .setNextPageToken("") + .addAllOrders(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListOrdersPagedResponse pagedListResponse = client.listOrders(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getOrdersList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listOrdersExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listOrders(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listOrdersTest2() throws Exception { + Order responsesElement = Order.newBuilder().build(); + ListOrdersResponse expectedResponse = + ListOrdersResponse.newBuilder() + .setNextPageToken("") + .addAllOrders(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListOrdersPagedResponse pagedListResponse = client.listOrders(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getOrdersList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listOrdersExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listOrders(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getOrderTest() throws Exception { + Order expectedResponse = + Order.newBuilder() + .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOrganizationContact(OrganizationContact.newBuilder().build()) + .addAllTargetWorkloads(new ArrayList()) + .setCustomerMotivation("customerMotivation419733780") + .setFulfillmentTime(Timestamp.newBuilder().build()) + .setRegionCode("regionCode-1991004415") + .setOrderFormUri("orderFormUri212580058") + .setSubmitTime(Timestamp.newBuilder().build()) + .setBillingId("billingId1828026614") + .addAllExistingHardware(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + OrderName name = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]"); + + Order actualResponse = client.getOrder(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getOrderExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrderName name = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]"); + client.getOrder(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getOrderTest2() throws Exception { + Order expectedResponse = + Order.newBuilder() + .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOrganizationContact(OrganizationContact.newBuilder().build()) + .addAllTargetWorkloads(new ArrayList()) + .setCustomerMotivation("customerMotivation419733780") + .setFulfillmentTime(Timestamp.newBuilder().build()) + .setRegionCode("regionCode-1991004415") + .setOrderFormUri("orderFormUri212580058") + .setSubmitTime(Timestamp.newBuilder().build()) + .setBillingId("billingId1828026614") + .addAllExistingHardware(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-6539/locations/location-6539/orders/order-6539"; + + Order actualResponse = client.getOrder(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getOrderExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-6539/locations/location-6539/orders/order-6539"; + client.getOrder(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createOrderTest() throws Exception { + Order expectedResponse = + Order.newBuilder() + .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOrganizationContact(OrganizationContact.newBuilder().build()) + .addAllTargetWorkloads(new ArrayList()) + .setCustomerMotivation("customerMotivation419733780") + .setFulfillmentTime(Timestamp.newBuilder().build()) + .setRegionCode("regionCode-1991004415") + .setOrderFormUri("orderFormUri212580058") + .setSubmitTime(Timestamp.newBuilder().build()) + .setBillingId("billingId1828026614") + .addAllExistingHardware(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createOrderTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Order order = Order.newBuilder().build(); + String orderId = "orderId-1207110391"; + + Order actualResponse = client.createOrderAsync(parent, order, orderId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createOrderExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Order order = Order.newBuilder().build(); + String orderId = "orderId-1207110391"; + client.createOrderAsync(parent, order, orderId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createOrderTest2() throws Exception { + Order expectedResponse = + Order.newBuilder() + .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOrganizationContact(OrganizationContact.newBuilder().build()) + .addAllTargetWorkloads(new ArrayList()) + .setCustomerMotivation("customerMotivation419733780") + .setFulfillmentTime(Timestamp.newBuilder().build()) + .setRegionCode("regionCode-1991004415") + .setOrderFormUri("orderFormUri212580058") + .setSubmitTime(Timestamp.newBuilder().build()) + .setBillingId("billingId1828026614") + .addAllExistingHardware(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createOrderTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + Order order = Order.newBuilder().build(); + String orderId = "orderId-1207110391"; + + Order actualResponse = client.createOrderAsync(parent, order, orderId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createOrderExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + Order order = Order.newBuilder().build(); + String orderId = "orderId-1207110391"; + client.createOrderAsync(parent, order, orderId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateOrderTest() throws Exception { + Order expectedResponse = + Order.newBuilder() + .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOrganizationContact(OrganizationContact.newBuilder().build()) + .addAllTargetWorkloads(new ArrayList()) + .setCustomerMotivation("customerMotivation419733780") + .setFulfillmentTime(Timestamp.newBuilder().build()) + .setRegionCode("regionCode-1991004415") + .setOrderFormUri("orderFormUri212580058") + .setSubmitTime(Timestamp.newBuilder().build()) + .setBillingId("billingId1828026614") + .addAllExistingHardware(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateOrderTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + Order order = + Order.newBuilder() + .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOrganizationContact(OrganizationContact.newBuilder().build()) + .addAllTargetWorkloads(new ArrayList()) + .setCustomerMotivation("customerMotivation419733780") + .setFulfillmentTime(Timestamp.newBuilder().build()) + .setRegionCode("regionCode-1991004415") + .setOrderFormUri("orderFormUri212580058") + .setSubmitTime(Timestamp.newBuilder().build()) + .setBillingId("billingId1828026614") + .addAllExistingHardware(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Order actualResponse = client.updateOrderAsync(order, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateOrderExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Order order = + Order.newBuilder() + .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOrganizationContact(OrganizationContact.newBuilder().build()) + .addAllTargetWorkloads(new ArrayList()) + .setCustomerMotivation("customerMotivation419733780") + .setFulfillmentTime(Timestamp.newBuilder().build()) + .setRegionCode("regionCode-1991004415") + .setOrderFormUri("orderFormUri212580058") + .setSubmitTime(Timestamp.newBuilder().build()) + .setBillingId("billingId1828026614") + .addAllExistingHardware(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateOrderAsync(order, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteOrderTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteOrderTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + OrderName name = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]"); + + client.deleteOrderAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteOrderExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrderName name = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]"); + client.deleteOrderAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteOrderTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteOrderTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-6539/locations/location-6539/orders/order-6539"; + + client.deleteOrderAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteOrderExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-6539/locations/location-6539/orders/order-6539"; + client.deleteOrderAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void submitOrderTest() throws Exception { + Order expectedResponse = + Order.newBuilder() + .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOrganizationContact(OrganizationContact.newBuilder().build()) + .addAllTargetWorkloads(new ArrayList()) + .setCustomerMotivation("customerMotivation419733780") + .setFulfillmentTime(Timestamp.newBuilder().build()) + .setRegionCode("regionCode-1991004415") + .setOrderFormUri("orderFormUri212580058") + .setSubmitTime(Timestamp.newBuilder().build()) + .setBillingId("billingId1828026614") + .addAllExistingHardware(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("submitOrderTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + OrderName name = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]"); + + Order actualResponse = client.submitOrderAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void submitOrderExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrderName name = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]"); + client.submitOrderAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void submitOrderTest2() throws Exception { + Order expectedResponse = + Order.newBuilder() + .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOrganizationContact(OrganizationContact.newBuilder().build()) + .addAllTargetWorkloads(new ArrayList()) + .setCustomerMotivation("customerMotivation419733780") + .setFulfillmentTime(Timestamp.newBuilder().build()) + .setRegionCode("regionCode-1991004415") + .setOrderFormUri("orderFormUri212580058") + .setSubmitTime(Timestamp.newBuilder().build()) + .setBillingId("billingId1828026614") + .addAllExistingHardware(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("submitOrderTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-6539/locations/location-6539/orders/order-6539"; + + Order actualResponse = client.submitOrderAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void submitOrderExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-6539/locations/location-6539/orders/order-6539"; + client.submitOrderAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listSitesTest() throws Exception { + Site responsesElement = Site.newBuilder().build(); + ListSitesResponse expectedResponse = + ListSitesResponse.newBuilder() + .setNextPageToken("") + .addAllSites(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListSitesPagedResponse pagedListResponse = client.listSites(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSitesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listSitesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listSites(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSitesTest2() throws Exception { + Site responsesElement = Site.newBuilder().build(); + ListSitesResponse expectedResponse = + ListSitesResponse.newBuilder() + .setNextPageToken("") + .addAllSites(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListSitesPagedResponse pagedListResponse = client.listSites(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSitesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listSitesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listSites(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSiteTest() throws Exception { + Site expectedResponse = + Site.newBuilder() + .setName(SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOrganizationContact(OrganizationContact.newBuilder().build()) + .setGoogleMapsPinUri("googleMapsPinUri123053095") + .addAllAccessTimes(new ArrayList()) + .setNotes("notes105008833") + .build(); + mockService.addResponse(expectedResponse); + + SiteName name = SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]"); + + Site actualResponse = client.getSite(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getSiteExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SiteName name = SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]"); + client.getSite(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSiteTest2() throws Exception { + Site expectedResponse = + Site.newBuilder() + .setName(SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOrganizationContact(OrganizationContact.newBuilder().build()) + .setGoogleMapsPinUri("googleMapsPinUri123053095") + .addAllAccessTimes(new ArrayList()) + .setNotes("notes105008833") + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-546/locations/location-546/sites/site-546"; + + Site actualResponse = client.getSite(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getSiteExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-546/locations/location-546/sites/site-546"; + client.getSite(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSiteTest() throws Exception { + Site expectedResponse = + Site.newBuilder() + .setName(SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOrganizationContact(OrganizationContact.newBuilder().build()) + .setGoogleMapsPinUri("googleMapsPinUri123053095") + .addAllAccessTimes(new ArrayList()) + .setNotes("notes105008833") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createSiteTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Site site = Site.newBuilder().build(); + String siteId = "siteId-902090046"; + + Site actualResponse = client.createSiteAsync(parent, site, siteId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createSiteExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Site site = Site.newBuilder().build(); + String siteId = "siteId-902090046"; + client.createSiteAsync(parent, site, siteId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createSiteTest2() throws Exception { + Site expectedResponse = + Site.newBuilder() + .setName(SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOrganizationContact(OrganizationContact.newBuilder().build()) + .setGoogleMapsPinUri("googleMapsPinUri123053095") + .addAllAccessTimes(new ArrayList()) + .setNotes("notes105008833") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createSiteTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + Site site = Site.newBuilder().build(); + String siteId = "siteId-902090046"; + + Site actualResponse = client.createSiteAsync(parent, site, siteId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createSiteExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + Site site = Site.newBuilder().build(); + String siteId = "siteId-902090046"; + client.createSiteAsync(parent, site, siteId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateSiteTest() throws Exception { + Site expectedResponse = + Site.newBuilder() + .setName(SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOrganizationContact(OrganizationContact.newBuilder().build()) + .setGoogleMapsPinUri("googleMapsPinUri123053095") + .addAllAccessTimes(new ArrayList()) + .setNotes("notes105008833") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateSiteTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + Site site = + Site.newBuilder() + .setName(SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOrganizationContact(OrganizationContact.newBuilder().build()) + .setGoogleMapsPinUri("googleMapsPinUri123053095") + .addAllAccessTimes(new ArrayList()) + .setNotes("notes105008833") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Site actualResponse = client.updateSiteAsync(site, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateSiteExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Site site = + Site.newBuilder() + .setName(SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOrganizationContact(OrganizationContact.newBuilder().build()) + .setGoogleMapsPinUri("googleMapsPinUri123053095") + .addAllAccessTimes(new ArrayList()) + .setNotes("notes105008833") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateSiteAsync(site, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listHardwareGroupsTest() throws Exception { + HardwareGroup responsesElement = HardwareGroup.newBuilder().build(); + ListHardwareGroupsResponse expectedResponse = + ListHardwareGroupsResponse.newBuilder() + .setNextPageToken("") + .addAllHardwareGroups(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + OrderName parent = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]"); + + ListHardwareGroupsPagedResponse pagedListResponse = client.listHardwareGroups(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getHardwareGroupsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listHardwareGroupsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrderName parent = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]"); + client.listHardwareGroups(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listHardwareGroupsTest2() throws Exception { + HardwareGroup responsesElement = HardwareGroup.newBuilder().build(); + ListHardwareGroupsResponse expectedResponse = + ListHardwareGroupsResponse.newBuilder() + .setNextPageToken("") + .addAllHardwareGroups(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-7558/locations/location-7558/orders/order-7558"; + + ListHardwareGroupsPagedResponse pagedListResponse = client.listHardwareGroups(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getHardwareGroupsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listHardwareGroupsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-7558/locations/location-7558/orders/order-7558"; + client.listHardwareGroups(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getHardwareGroupTest() throws Exception { + HardwareGroup expectedResponse = + HardwareGroup.newBuilder() + .setName( + HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setHardwareCount(1025608696) + .setConfig(HardwareConfig.newBuilder().build()) + .setSite(SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString()) + .setZone(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) + .setRequestedInstallationDate(Date.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + HardwareGroupName name = + HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]"); + + HardwareGroup actualResponse = client.getHardwareGroup(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getHardwareGroupExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + HardwareGroupName name = + HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]"); + client.getHardwareGroup(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getHardwareGroupTest2() throws Exception { + HardwareGroup expectedResponse = + HardwareGroup.newBuilder() + .setName( + HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setHardwareCount(1025608696) + .setConfig(HardwareConfig.newBuilder().build()) + .setSite(SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString()) + .setZone(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) + .setRequestedInstallationDate(Date.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-5233/locations/location-5233/orders/order-5233/hardwareGroups/hardwareGroup-5233"; + + HardwareGroup actualResponse = client.getHardwareGroup(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getHardwareGroupExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-5233/locations/location-5233/orders/order-5233/hardwareGroups/hardwareGroup-5233"; + client.getHardwareGroup(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createHardwareGroupTest() throws Exception { + HardwareGroup expectedResponse = + HardwareGroup.newBuilder() + .setName( + HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setHardwareCount(1025608696) + .setConfig(HardwareConfig.newBuilder().build()) + .setSite(SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString()) + .setZone(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) + .setRequestedInstallationDate(Date.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createHardwareGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + OrderName parent = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]"); + HardwareGroup hardwareGroup = HardwareGroup.newBuilder().build(); + String hardwareGroupId = "hardwareGroupId-1961682702"; + + HardwareGroup actualResponse = + client.createHardwareGroupAsync(parent, hardwareGroup, hardwareGroupId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createHardwareGroupExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrderName parent = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]"); + HardwareGroup hardwareGroup = HardwareGroup.newBuilder().build(); + String hardwareGroupId = "hardwareGroupId-1961682702"; + client.createHardwareGroupAsync(parent, hardwareGroup, hardwareGroupId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createHardwareGroupTest2() throws Exception { + HardwareGroup expectedResponse = + HardwareGroup.newBuilder() + .setName( + HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setHardwareCount(1025608696) + .setConfig(HardwareConfig.newBuilder().build()) + .setSite(SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString()) + .setZone(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) + .setRequestedInstallationDate(Date.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createHardwareGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-7558/locations/location-7558/orders/order-7558"; + HardwareGroup hardwareGroup = HardwareGroup.newBuilder().build(); + String hardwareGroupId = "hardwareGroupId-1961682702"; + + HardwareGroup actualResponse = + client.createHardwareGroupAsync(parent, hardwareGroup, hardwareGroupId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createHardwareGroupExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-7558/locations/location-7558/orders/order-7558"; + HardwareGroup hardwareGroup = HardwareGroup.newBuilder().build(); + String hardwareGroupId = "hardwareGroupId-1961682702"; + client.createHardwareGroupAsync(parent, hardwareGroup, hardwareGroupId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateHardwareGroupTest() throws Exception { + HardwareGroup expectedResponse = + HardwareGroup.newBuilder() + .setName( + HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setHardwareCount(1025608696) + .setConfig(HardwareConfig.newBuilder().build()) + .setSite(SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString()) + .setZone(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) + .setRequestedInstallationDate(Date.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateHardwareGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + HardwareGroup hardwareGroup = + HardwareGroup.newBuilder() + .setName( + HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setHardwareCount(1025608696) + .setConfig(HardwareConfig.newBuilder().build()) + .setSite(SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString()) + .setZone(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) + .setRequestedInstallationDate(Date.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + HardwareGroup actualResponse = client.updateHardwareGroupAsync(hardwareGroup, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateHardwareGroupExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + HardwareGroup hardwareGroup = + HardwareGroup.newBuilder() + .setName( + HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setHardwareCount(1025608696) + .setConfig(HardwareConfig.newBuilder().build()) + .setSite(SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString()) + .setZone(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) + .setRequestedInstallationDate(Date.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateHardwareGroupAsync(hardwareGroup, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteHardwareGroupTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteHardwareGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + HardwareGroupName name = + HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]"); + + client.deleteHardwareGroupAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteHardwareGroupExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + HardwareGroupName name = + HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]"); + client.deleteHardwareGroupAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteHardwareGroupTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteHardwareGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-5233/locations/location-5233/orders/order-5233/hardwareGroups/hardwareGroup-5233"; + + client.deleteHardwareGroupAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteHardwareGroupExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-5233/locations/location-5233/orders/order-5233/hardwareGroups/hardwareGroup-5233"; + client.deleteHardwareGroupAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listHardwareTest() throws Exception { + Hardware responsesElement = Hardware.newBuilder().build(); + ListHardwareResponse expectedResponse = + ListHardwareResponse.newBuilder() + .setNextPageToken("") + .addAllHardware(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListHardwarePagedResponse pagedListResponse = client.listHardware(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getHardwareList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listHardwareExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listHardware(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listHardwareTest2() throws Exception { + Hardware responsesElement = Hardware.newBuilder().build(); + ListHardwareResponse expectedResponse = + ListHardwareResponse.newBuilder() + .setNextPageToken("") + .addAllHardware(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListHardwarePagedResponse pagedListResponse = client.listHardware(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getHardwareList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listHardwareExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listHardware(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getHardwareTest() throws Exception { + Hardware expectedResponse = + Hardware.newBuilder() + .setName(HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOrder(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setHardwareGroup( + HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]") + .toString()) + .setSite(SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString()) + .setCiqUri("ciqUri-1360259935") + .setConfig(HardwareConfig.newBuilder().build()) + .setEstimatedInstallationDate(Date.newBuilder().build()) + .setPhysicalInfo(HardwarePhysicalInfo.newBuilder().build()) + .setInstallationInfo(HardwareInstallationInfo.newBuilder().build()) + .setZone(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) + .setRequestedInstallationDate(Date.newBuilder().build()) + .setActualInstallationDate(Date.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + HardwareName name = HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]"); + + Hardware actualResponse = client.getHardware(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getHardwareExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + HardwareName name = HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]"); + client.getHardware(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getHardwareTest2() throws Exception { + Hardware expectedResponse = + Hardware.newBuilder() + .setName(HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOrder(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setHardwareGroup( + HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]") + .toString()) + .setSite(SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString()) + .setCiqUri("ciqUri-1360259935") + .setConfig(HardwareConfig.newBuilder().build()) + .setEstimatedInstallationDate(Date.newBuilder().build()) + .setPhysicalInfo(HardwarePhysicalInfo.newBuilder().build()) + .setInstallationInfo(HardwareInstallationInfo.newBuilder().build()) + .setZone(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) + .setRequestedInstallationDate(Date.newBuilder().build()) + .setActualInstallationDate(Date.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-1800/locations/location-1800/hardware/hardwar-1800"; + + Hardware actualResponse = client.getHardware(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getHardwareExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-1800/locations/location-1800/hardware/hardwar-1800"; + client.getHardware(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createHardwareTest() throws Exception { + Hardware expectedResponse = + Hardware.newBuilder() + .setName(HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOrder(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setHardwareGroup( + HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]") + .toString()) + .setSite(SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString()) + .setCiqUri("ciqUri-1360259935") + .setConfig(HardwareConfig.newBuilder().build()) + .setEstimatedInstallationDate(Date.newBuilder().build()) + .setPhysicalInfo(HardwarePhysicalInfo.newBuilder().build()) + .setInstallationInfo(HardwareInstallationInfo.newBuilder().build()) + .setZone(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) + .setRequestedInstallationDate(Date.newBuilder().build()) + .setActualInstallationDate(Date.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createHardwareTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Hardware hardware = Hardware.newBuilder().build(); + String hardwareId = "hardwareId680924451"; + + Hardware actualResponse = client.createHardwareAsync(parent, hardware, hardwareId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createHardwareExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Hardware hardware = Hardware.newBuilder().build(); + String hardwareId = "hardwareId680924451"; + client.createHardwareAsync(parent, hardware, hardwareId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createHardwareTest2() throws Exception { + Hardware expectedResponse = + Hardware.newBuilder() + .setName(HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOrder(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setHardwareGroup( + HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]") + .toString()) + .setSite(SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString()) + .setCiqUri("ciqUri-1360259935") + .setConfig(HardwareConfig.newBuilder().build()) + .setEstimatedInstallationDate(Date.newBuilder().build()) + .setPhysicalInfo(HardwarePhysicalInfo.newBuilder().build()) + .setInstallationInfo(HardwareInstallationInfo.newBuilder().build()) + .setZone(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) + .setRequestedInstallationDate(Date.newBuilder().build()) + .setActualInstallationDate(Date.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createHardwareTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + Hardware hardware = Hardware.newBuilder().build(); + String hardwareId = "hardwareId680924451"; + + Hardware actualResponse = client.createHardwareAsync(parent, hardware, hardwareId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createHardwareExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + Hardware hardware = Hardware.newBuilder().build(); + String hardwareId = "hardwareId680924451"; + client.createHardwareAsync(parent, hardware, hardwareId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateHardwareTest() throws Exception { + Hardware expectedResponse = + Hardware.newBuilder() + .setName(HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOrder(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setHardwareGroup( + HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]") + .toString()) + .setSite(SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString()) + .setCiqUri("ciqUri-1360259935") + .setConfig(HardwareConfig.newBuilder().build()) + .setEstimatedInstallationDate(Date.newBuilder().build()) + .setPhysicalInfo(HardwarePhysicalInfo.newBuilder().build()) + .setInstallationInfo(HardwareInstallationInfo.newBuilder().build()) + .setZone(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) + .setRequestedInstallationDate(Date.newBuilder().build()) + .setActualInstallationDate(Date.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateHardwareTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + Hardware hardware = + Hardware.newBuilder() + .setName(HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOrder(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setHardwareGroup( + HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]") + .toString()) + .setSite(SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString()) + .setCiqUri("ciqUri-1360259935") + .setConfig(HardwareConfig.newBuilder().build()) + .setEstimatedInstallationDate(Date.newBuilder().build()) + .setPhysicalInfo(HardwarePhysicalInfo.newBuilder().build()) + .setInstallationInfo(HardwareInstallationInfo.newBuilder().build()) + .setZone(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) + .setRequestedInstallationDate(Date.newBuilder().build()) + .setActualInstallationDate(Date.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Hardware actualResponse = client.updateHardwareAsync(hardware, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateHardwareExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Hardware hardware = + Hardware.newBuilder() + .setName(HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOrder(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setHardwareGroup( + HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]") + .toString()) + .setSite(SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString()) + .setCiqUri("ciqUri-1360259935") + .setConfig(HardwareConfig.newBuilder().build()) + .setEstimatedInstallationDate(Date.newBuilder().build()) + .setPhysicalInfo(HardwarePhysicalInfo.newBuilder().build()) + .setInstallationInfo(HardwareInstallationInfo.newBuilder().build()) + .setZone(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) + .setRequestedInstallationDate(Date.newBuilder().build()) + .setActualInstallationDate(Date.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateHardwareAsync(hardware, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteHardwareTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteHardwareTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + HardwareName name = HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]"); + + client.deleteHardwareAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteHardwareExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + HardwareName name = HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]"); + client.deleteHardwareAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteHardwareTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteHardwareTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-1800/locations/location-1800/hardware/hardwar-1800"; + + client.deleteHardwareAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteHardwareExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-1800/locations/location-1800/hardware/hardwar-1800"; + client.deleteHardwareAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listCommentsTest() throws Exception { + Comment responsesElement = Comment.newBuilder().build(); + ListCommentsResponse expectedResponse = + ListCommentsResponse.newBuilder() + .setNextPageToken("") + .addAllComments(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + OrderName parent = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]"); + + ListCommentsPagedResponse pagedListResponse = client.listComments(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCommentsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listCommentsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrderName parent = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]"); + client.listComments(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCommentsTest2() throws Exception { + Comment responsesElement = Comment.newBuilder().build(); + ListCommentsResponse expectedResponse = + ListCommentsResponse.newBuilder() + .setNextPageToken("") + .addAllComments(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-7558/locations/location-7558/orders/order-7558"; + + ListCommentsPagedResponse pagedListResponse = client.listComments(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCommentsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listCommentsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-7558/locations/location-7558/orders/order-7558"; + client.listComments(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCommentTest() throws Exception { + Comment expectedResponse = + Comment.newBuilder() + .setName(CommentName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[COMMENT]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthor("author-1406328437") + .setText("text3556653") + .build(); + mockService.addResponse(expectedResponse); + + CommentName name = CommentName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[COMMENT]"); + + Comment actualResponse = client.getComment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getCommentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CommentName name = CommentName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[COMMENT]"); + client.getComment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCommentTest2() throws Exception { + Comment expectedResponse = + Comment.newBuilder() + .setName(CommentName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[COMMENT]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthor("author-1406328437") + .setText("text3556653") + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-6823/locations/location-6823/orders/order-6823/comments/comment-6823"; + + Comment actualResponse = client.getComment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getCommentExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-6823/locations/location-6823/orders/order-6823/comments/comment-6823"; + client.getComment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createCommentTest() throws Exception { + Comment expectedResponse = + Comment.newBuilder() + .setName(CommentName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[COMMENT]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthor("author-1406328437") + .setText("text3556653") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createCommentTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + OrderName parent = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]"); + Comment comment = Comment.newBuilder().build(); + String commentId = "commentId-1495016486"; + + Comment actualResponse = client.createCommentAsync(parent, comment, commentId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createCommentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrderName parent = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]"); + Comment comment = Comment.newBuilder().build(); + String commentId = "commentId-1495016486"; + client.createCommentAsync(parent, comment, commentId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createCommentTest2() throws Exception { + Comment expectedResponse = + Comment.newBuilder() + .setName(CommentName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[COMMENT]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthor("author-1406328437") + .setText("text3556653") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createCommentTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-7558/locations/location-7558/orders/order-7558"; + Comment comment = Comment.newBuilder().build(); + String commentId = "commentId-1495016486"; + + Comment actualResponse = client.createCommentAsync(parent, comment, commentId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createCommentExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-7558/locations/location-7558/orders/order-7558"; + Comment comment = Comment.newBuilder().build(); + String commentId = "commentId-1495016486"; + client.createCommentAsync(parent, comment, commentId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listChangeLogEntriesTest() throws Exception { + ChangeLogEntry responsesElement = ChangeLogEntry.newBuilder().build(); + ListChangeLogEntriesResponse expectedResponse = + ListChangeLogEntriesResponse.newBuilder() + .setNextPageToken("") + .addAllChangeLogEntries(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + OrderName parent = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]"); + + ListChangeLogEntriesPagedResponse pagedListResponse = client.listChangeLogEntries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getChangeLogEntriesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listChangeLogEntriesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrderName parent = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]"); + client.listChangeLogEntries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listChangeLogEntriesTest2() throws Exception { + ChangeLogEntry responsesElement = ChangeLogEntry.newBuilder().build(); + ListChangeLogEntriesResponse expectedResponse = + ListChangeLogEntriesResponse.newBuilder() + .setNextPageToken("") + .addAllChangeLogEntries(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-7558/locations/location-7558/orders/order-7558"; + + ListChangeLogEntriesPagedResponse pagedListResponse = client.listChangeLogEntries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getChangeLogEntriesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listChangeLogEntriesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-7558/locations/location-7558/orders/order-7558"; + client.listChangeLogEntries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getChangeLogEntryTest() throws Exception { + ChangeLogEntry expectedResponse = + ChangeLogEntry.newBuilder() + .setName( + ChangeLogEntryName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[CHANGE_LOG_ENTRY]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setLog("log107332") + .build(); + mockService.addResponse(expectedResponse); + + ChangeLogEntryName name = + ChangeLogEntryName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[CHANGE_LOG_ENTRY]"); + + ChangeLogEntry actualResponse = client.getChangeLogEntry(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getChangeLogEntryExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ChangeLogEntryName name = + ChangeLogEntryName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[CHANGE_LOG_ENTRY]"); + client.getChangeLogEntry(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getChangeLogEntryTest2() throws Exception { + ChangeLogEntry expectedResponse = + ChangeLogEntry.newBuilder() + .setName( + ChangeLogEntryName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[CHANGE_LOG_ENTRY]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setLog("log107332") + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-8433/locations/location-8433/orders/order-8433/changeLogEntries/changeLogEntrie-8433"; + + ChangeLogEntry actualResponse = client.getChangeLogEntry(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getChangeLogEntryExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-8433/locations/location-8433/orders/order-8433/changeLogEntries/changeLogEntrie-8433"; + client.getChangeLogEntry(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSkusTest() throws Exception { + Sku responsesElement = Sku.newBuilder().build(); + ListSkusResponse expectedResponse = + ListSkusResponse.newBuilder() + .setNextPageToken("") + .addAllSkus(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListSkusPagedResponse pagedListResponse = client.listSkus(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSkusList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listSkusExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listSkus(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSkusTest2() throws Exception { + Sku responsesElement = Sku.newBuilder().build(); + ListSkusResponse expectedResponse = + ListSkusResponse.newBuilder() + .setNextPageToken("") + .addAllSkus(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListSkusPagedResponse pagedListResponse = client.listSkus(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSkusList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listSkusExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listSkus(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSkuTest() throws Exception { + Sku expectedResponse = + Sku.newBuilder() + .setName(SkuName.of("[PROJECT]", "[LOCATION]", "[SKU]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setConfig(SkuConfig.newBuilder().build()) + .addAllInstances(new ArrayList()) + .setDescription("description-1724546052") + .setRevisionId("revisionId-1507445162") + .setIsActive(true) + .setVcpuCount(936475650) + .build(); + mockService.addResponse(expectedResponse); + + SkuName name = SkuName.of("[PROJECT]", "[LOCATION]", "[SKU]"); + + Sku actualResponse = client.getSku(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getSkuExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SkuName name = SkuName.of("[PROJECT]", "[LOCATION]", "[SKU]"); + client.getSku(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSkuTest2() throws Exception { + Sku expectedResponse = + Sku.newBuilder() + .setName(SkuName.of("[PROJECT]", "[LOCATION]", "[SKU]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setConfig(SkuConfig.newBuilder().build()) + .addAllInstances(new ArrayList()) + .setDescription("description-1724546052") + .setRevisionId("revisionId-1507445162") + .setIsActive(true) + .setVcpuCount(936475650) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-9002/locations/location-9002/skus/sku-9002"; + + Sku actualResponse = client.getSku(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getSkuExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-9002/locations/location-9002/skus/sku-9002"; + client.getSku(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listZonesTest() throws Exception { + Zone responsesElement = Zone.newBuilder().build(); + ListZonesResponse expectedResponse = + ListZonesResponse.newBuilder() + .setNextPageToken("") + .addAllZones(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListZonesPagedResponse pagedListResponse = client.listZones(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getZonesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listZonesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listZones(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listZonesTest2() throws Exception { + Zone responsesElement = Zone.newBuilder().build(); + ListZonesResponse expectedResponse = + ListZonesResponse.newBuilder() + .setNextPageToken("") + .addAllZones(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListZonesPagedResponse pagedListResponse = client.listZones(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getZonesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listZonesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listZones(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getZoneTest() throws Exception { + Zone expectedResponse = + Zone.newBuilder() + .setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .addAllContacts(new ArrayList()) + .setCiqUri("ciqUri-1360259935") + .setNetworkConfig(ZoneNetworkConfig.newBuilder().build()) + .setGloballyUniqueId("globallyUniqueId-1207923364") + .build(); + mockService.addResponse(expectedResponse); + + ZoneName name = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]"); + + Zone actualResponse = client.getZone(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getZoneExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ZoneName name = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]"); + client.getZone(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getZoneTest2() throws Exception { + Zone expectedResponse = + Zone.newBuilder() + .setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .addAllContacts(new ArrayList()) + .setCiqUri("ciqUri-1360259935") + .setNetworkConfig(ZoneNetworkConfig.newBuilder().build()) + .setGloballyUniqueId("globallyUniqueId-1207923364") + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-4499/locations/location-4499/zones/zone-4499"; + + Zone actualResponse = client.getZone(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getZoneExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-4499/locations/location-4499/zones/zone-4499"; + client.getZone(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createZoneTest() throws Exception { + Zone expectedResponse = + Zone.newBuilder() + .setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .addAllContacts(new ArrayList()) + .setCiqUri("ciqUri-1360259935") + .setNetworkConfig(ZoneNetworkConfig.newBuilder().build()) + .setGloballyUniqueId("globallyUniqueId-1207923364") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createZoneTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Zone zone = Zone.newBuilder().build(); + String zoneId = "zoneId-696323609"; + + Zone actualResponse = client.createZoneAsync(parent, zone, zoneId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createZoneExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Zone zone = Zone.newBuilder().build(); + String zoneId = "zoneId-696323609"; + client.createZoneAsync(parent, zone, zoneId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createZoneTest2() throws Exception { + Zone expectedResponse = + Zone.newBuilder() + .setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .addAllContacts(new ArrayList()) + .setCiqUri("ciqUri-1360259935") + .setNetworkConfig(ZoneNetworkConfig.newBuilder().build()) + .setGloballyUniqueId("globallyUniqueId-1207923364") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createZoneTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + Zone zone = Zone.newBuilder().build(); + String zoneId = "zoneId-696323609"; + + Zone actualResponse = client.createZoneAsync(parent, zone, zoneId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createZoneExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + Zone zone = Zone.newBuilder().build(); + String zoneId = "zoneId-696323609"; + client.createZoneAsync(parent, zone, zoneId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateZoneTest() throws Exception { + Zone expectedResponse = + Zone.newBuilder() + .setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .addAllContacts(new ArrayList()) + .setCiqUri("ciqUri-1360259935") + .setNetworkConfig(ZoneNetworkConfig.newBuilder().build()) + .setGloballyUniqueId("globallyUniqueId-1207923364") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateZoneTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + Zone zone = + Zone.newBuilder() + .setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .addAllContacts(new ArrayList()) + .setCiqUri("ciqUri-1360259935") + .setNetworkConfig(ZoneNetworkConfig.newBuilder().build()) + .setGloballyUniqueId("globallyUniqueId-1207923364") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Zone actualResponse = client.updateZoneAsync(zone, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateZoneExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Zone zone = + Zone.newBuilder() + .setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .addAllContacts(new ArrayList()) + .setCiqUri("ciqUri-1360259935") + .setNetworkConfig(ZoneNetworkConfig.newBuilder().build()) + .setGloballyUniqueId("globallyUniqueId-1207923364") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateZoneAsync(zone, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteZoneTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteZoneTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ZoneName name = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]"); + + client.deleteZoneAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteZoneExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ZoneName name = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]"); + client.deleteZoneAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteZoneTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteZoneTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-4499/locations/location-4499/zones/zone-4499"; + + client.deleteZoneAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteZoneExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-4499/locations/location-4499/zones/zone-4499"; + client.deleteZoneAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void signalZoneStateTest() throws Exception { + Zone expectedResponse = + Zone.newBuilder() + .setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .addAllContacts(new ArrayList()) + .setCiqUri("ciqUri-1360259935") + .setNetworkConfig(ZoneNetworkConfig.newBuilder().build()) + .setGloballyUniqueId("globallyUniqueId-1207923364") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("signalZoneStateTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ZoneName name = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]"); + SignalZoneStateRequest.StateSignal stateSignal = + SignalZoneStateRequest.StateSignal.forNumber(0); + + Zone actualResponse = client.signalZoneStateAsync(name, stateSignal).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void signalZoneStateExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ZoneName name = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]"); + SignalZoneStateRequest.StateSignal stateSignal = + SignalZoneStateRequest.StateSignal.forNumber(0); + client.signalZoneStateAsync(name, stateSignal).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void signalZoneStateTest2() throws Exception { + Zone expectedResponse = + Zone.newBuilder() + .setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .addAllContacts(new ArrayList()) + .setCiqUri("ciqUri-1360259935") + .setNetworkConfig(ZoneNetworkConfig.newBuilder().build()) + .setGloballyUniqueId("globallyUniqueId-1207923364") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("signalZoneStateTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-4499/locations/location-4499/zones/zone-4499"; + SignalZoneStateRequest.StateSignal stateSignal = + SignalZoneStateRequest.StateSignal.forNumber(0); + + Zone actualResponse = client.signalZoneStateAsync(name, stateSignal).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void signalZoneStateExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-4499/locations/location-4499/zones/zone-4499"; + SignalZoneStateRequest.StateSignal stateSignal = + SignalZoneStateRequest.StateSignal.forNumber(0); + client.signalZoneStateAsync(name, stateSignal).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getLocationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/test/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementClientTest.java b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/test/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementClientTest.java new file mode 100644 index 000000000000..0023df391c16 --- /dev/null +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/test/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementClientTest.java @@ -0,0 +1,3298 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha; + +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListChangeLogEntriesPagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListCommentsPagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListHardwareGroupsPagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListHardwarePagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListLocationsPagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListOrdersPagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListSitesPagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListSkusPagedResponse; +import static com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient.ListZonesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import com.google.type.Date; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class GDCHardwareManagementClientTest { + private static MockGDCHardwareManagement mockGDCHardwareManagement; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private GDCHardwareManagementClient client; + + @BeforeClass + public static void startStaticServer() { + mockGDCHardwareManagement = new MockGDCHardwareManagement(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockGDCHardwareManagement, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + GDCHardwareManagementSettings settings = + GDCHardwareManagementSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = GDCHardwareManagementClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void listOrdersTest() throws Exception { + Order responsesElement = Order.newBuilder().build(); + ListOrdersResponse expectedResponse = + ListOrdersResponse.newBuilder() + .setNextPageToken("") + .addAllOrders(Arrays.asList(responsesElement)) + .build(); + mockGDCHardwareManagement.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListOrdersPagedResponse pagedListResponse = client.listOrders(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getOrdersList().get(0), resources.get(0)); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListOrdersRequest actualRequest = ((ListOrdersRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listOrdersExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listOrders(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listOrdersTest2() throws Exception { + Order responsesElement = Order.newBuilder().build(); + ListOrdersResponse expectedResponse = + ListOrdersResponse.newBuilder() + .setNextPageToken("") + .addAllOrders(Arrays.asList(responsesElement)) + .build(); + mockGDCHardwareManagement.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListOrdersPagedResponse pagedListResponse = client.listOrders(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getOrdersList().get(0), resources.get(0)); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListOrdersRequest actualRequest = ((ListOrdersRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listOrdersExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + String parent = "parent-995424086"; + client.listOrders(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getOrderTest() throws Exception { + Order expectedResponse = + Order.newBuilder() + .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOrganizationContact(OrganizationContact.newBuilder().build()) + .addAllTargetWorkloads(new ArrayList()) + .setCustomerMotivation("customerMotivation419733780") + .setFulfillmentTime(Timestamp.newBuilder().build()) + .setRegionCode("regionCode-1991004415") + .setOrderFormUri("orderFormUri212580058") + .setSubmitTime(Timestamp.newBuilder().build()) + .setBillingId("billingId1828026614") + .addAllExistingHardware(new ArrayList()) + .build(); + mockGDCHardwareManagement.addResponse(expectedResponse); + + OrderName name = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]"); + + Order actualResponse = client.getOrder(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetOrderRequest actualRequest = ((GetOrderRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getOrderExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + OrderName name = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]"); + client.getOrder(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getOrderTest2() throws Exception { + Order expectedResponse = + Order.newBuilder() + .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOrganizationContact(OrganizationContact.newBuilder().build()) + .addAllTargetWorkloads(new ArrayList()) + .setCustomerMotivation("customerMotivation419733780") + .setFulfillmentTime(Timestamp.newBuilder().build()) + .setRegionCode("regionCode-1991004415") + .setOrderFormUri("orderFormUri212580058") + .setSubmitTime(Timestamp.newBuilder().build()) + .setBillingId("billingId1828026614") + .addAllExistingHardware(new ArrayList()) + .build(); + mockGDCHardwareManagement.addResponse(expectedResponse); + + String name = "name3373707"; + + Order actualResponse = client.getOrder(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetOrderRequest actualRequest = ((GetOrderRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getOrderExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + String name = "name3373707"; + client.getOrder(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createOrderTest() throws Exception { + Order expectedResponse = + Order.newBuilder() + .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOrganizationContact(OrganizationContact.newBuilder().build()) + .addAllTargetWorkloads(new ArrayList()) + .setCustomerMotivation("customerMotivation419733780") + .setFulfillmentTime(Timestamp.newBuilder().build()) + .setRegionCode("regionCode-1991004415") + .setOrderFormUri("orderFormUri212580058") + .setSubmitTime(Timestamp.newBuilder().build()) + .setBillingId("billingId1828026614") + .addAllExistingHardware(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createOrderTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGDCHardwareManagement.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Order order = Order.newBuilder().build(); + String orderId = "orderId-1207110391"; + + Order actualResponse = client.createOrderAsync(parent, order, orderId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateOrderRequest actualRequest = ((CreateOrderRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(order, actualRequest.getOrder()); + Assert.assertEquals(orderId, actualRequest.getOrderId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createOrderExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Order order = Order.newBuilder().build(); + String orderId = "orderId-1207110391"; + client.createOrderAsync(parent, order, orderId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createOrderTest2() throws Exception { + Order expectedResponse = + Order.newBuilder() + .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOrganizationContact(OrganizationContact.newBuilder().build()) + .addAllTargetWorkloads(new ArrayList()) + .setCustomerMotivation("customerMotivation419733780") + .setFulfillmentTime(Timestamp.newBuilder().build()) + .setRegionCode("regionCode-1991004415") + .setOrderFormUri("orderFormUri212580058") + .setSubmitTime(Timestamp.newBuilder().build()) + .setBillingId("billingId1828026614") + .addAllExistingHardware(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createOrderTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGDCHardwareManagement.addResponse(resultOperation); + + String parent = "parent-995424086"; + Order order = Order.newBuilder().build(); + String orderId = "orderId-1207110391"; + + Order actualResponse = client.createOrderAsync(parent, order, orderId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateOrderRequest actualRequest = ((CreateOrderRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(order, actualRequest.getOrder()); + Assert.assertEquals(orderId, actualRequest.getOrderId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createOrderExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + String parent = "parent-995424086"; + Order order = Order.newBuilder().build(); + String orderId = "orderId-1207110391"; + client.createOrderAsync(parent, order, orderId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updateOrderTest() throws Exception { + Order expectedResponse = + Order.newBuilder() + .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOrganizationContact(OrganizationContact.newBuilder().build()) + .addAllTargetWorkloads(new ArrayList()) + .setCustomerMotivation("customerMotivation419733780") + .setFulfillmentTime(Timestamp.newBuilder().build()) + .setRegionCode("regionCode-1991004415") + .setOrderFormUri("orderFormUri212580058") + .setSubmitTime(Timestamp.newBuilder().build()) + .setBillingId("billingId1828026614") + .addAllExistingHardware(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateOrderTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGDCHardwareManagement.addResponse(resultOperation); + + Order order = Order.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Order actualResponse = client.updateOrderAsync(order, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateOrderRequest actualRequest = ((UpdateOrderRequest) actualRequests.get(0)); + + Assert.assertEquals(order, actualRequest.getOrder()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateOrderExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + Order order = Order.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateOrderAsync(order, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteOrderTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteOrderTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGDCHardwareManagement.addResponse(resultOperation); + + OrderName name = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]"); + + client.deleteOrderAsync(name).get(); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteOrderRequest actualRequest = ((DeleteOrderRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteOrderExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + OrderName name = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]"); + client.deleteOrderAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteOrderTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteOrderTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGDCHardwareManagement.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteOrderAsync(name).get(); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteOrderRequest actualRequest = ((DeleteOrderRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteOrderExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + String name = "name3373707"; + client.deleteOrderAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void submitOrderTest() throws Exception { + Order expectedResponse = + Order.newBuilder() + .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOrganizationContact(OrganizationContact.newBuilder().build()) + .addAllTargetWorkloads(new ArrayList()) + .setCustomerMotivation("customerMotivation419733780") + .setFulfillmentTime(Timestamp.newBuilder().build()) + .setRegionCode("regionCode-1991004415") + .setOrderFormUri("orderFormUri212580058") + .setSubmitTime(Timestamp.newBuilder().build()) + .setBillingId("billingId1828026614") + .addAllExistingHardware(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("submitOrderTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGDCHardwareManagement.addResponse(resultOperation); + + OrderName name = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]"); + + Order actualResponse = client.submitOrderAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SubmitOrderRequest actualRequest = ((SubmitOrderRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void submitOrderExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + OrderName name = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]"); + client.submitOrderAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void submitOrderTest2() throws Exception { + Order expectedResponse = + Order.newBuilder() + .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOrganizationContact(OrganizationContact.newBuilder().build()) + .addAllTargetWorkloads(new ArrayList()) + .setCustomerMotivation("customerMotivation419733780") + .setFulfillmentTime(Timestamp.newBuilder().build()) + .setRegionCode("regionCode-1991004415") + .setOrderFormUri("orderFormUri212580058") + .setSubmitTime(Timestamp.newBuilder().build()) + .setBillingId("billingId1828026614") + .addAllExistingHardware(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("submitOrderTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGDCHardwareManagement.addResponse(resultOperation); + + String name = "name3373707"; + + Order actualResponse = client.submitOrderAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SubmitOrderRequest actualRequest = ((SubmitOrderRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void submitOrderExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + String name = "name3373707"; + client.submitOrderAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listSitesTest() throws Exception { + Site responsesElement = Site.newBuilder().build(); + ListSitesResponse expectedResponse = + ListSitesResponse.newBuilder() + .setNextPageToken("") + .addAllSites(Arrays.asList(responsesElement)) + .build(); + mockGDCHardwareManagement.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListSitesPagedResponse pagedListResponse = client.listSites(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSitesList().get(0), resources.get(0)); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSitesRequest actualRequest = ((ListSitesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSitesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listSites(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSitesTest2() throws Exception { + Site responsesElement = Site.newBuilder().build(); + ListSitesResponse expectedResponse = + ListSitesResponse.newBuilder() + .setNextPageToken("") + .addAllSites(Arrays.asList(responsesElement)) + .build(); + mockGDCHardwareManagement.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListSitesPagedResponse pagedListResponse = client.listSites(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSitesList().get(0), resources.get(0)); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSitesRequest actualRequest = ((ListSitesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSitesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + String parent = "parent-995424086"; + client.listSites(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSiteTest() throws Exception { + Site expectedResponse = + Site.newBuilder() + .setName(SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOrganizationContact(OrganizationContact.newBuilder().build()) + .setGoogleMapsPinUri("googleMapsPinUri123053095") + .addAllAccessTimes(new ArrayList()) + .setNotes("notes105008833") + .build(); + mockGDCHardwareManagement.addResponse(expectedResponse); + + SiteName name = SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]"); + + Site actualResponse = client.getSite(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSiteRequest actualRequest = ((GetSiteRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSiteExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + SiteName name = SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]"); + client.getSite(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSiteTest2() throws Exception { + Site expectedResponse = + Site.newBuilder() + .setName(SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOrganizationContact(OrganizationContact.newBuilder().build()) + .setGoogleMapsPinUri("googleMapsPinUri123053095") + .addAllAccessTimes(new ArrayList()) + .setNotes("notes105008833") + .build(); + mockGDCHardwareManagement.addResponse(expectedResponse); + + String name = "name3373707"; + + Site actualResponse = client.getSite(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSiteRequest actualRequest = ((GetSiteRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSiteExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + String name = "name3373707"; + client.getSite(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSiteTest() throws Exception { + Site expectedResponse = + Site.newBuilder() + .setName(SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOrganizationContact(OrganizationContact.newBuilder().build()) + .setGoogleMapsPinUri("googleMapsPinUri123053095") + .addAllAccessTimes(new ArrayList()) + .setNotes("notes105008833") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createSiteTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGDCHardwareManagement.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Site site = Site.newBuilder().build(); + String siteId = "siteId-902090046"; + + Site actualResponse = client.createSiteAsync(parent, site, siteId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateSiteRequest actualRequest = ((CreateSiteRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(site, actualRequest.getSite()); + Assert.assertEquals(siteId, actualRequest.getSiteId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createSiteExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Site site = Site.newBuilder().build(); + String siteId = "siteId-902090046"; + client.createSiteAsync(parent, site, siteId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createSiteTest2() throws Exception { + Site expectedResponse = + Site.newBuilder() + .setName(SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOrganizationContact(OrganizationContact.newBuilder().build()) + .setGoogleMapsPinUri("googleMapsPinUri123053095") + .addAllAccessTimes(new ArrayList()) + .setNotes("notes105008833") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createSiteTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGDCHardwareManagement.addResponse(resultOperation); + + String parent = "parent-995424086"; + Site site = Site.newBuilder().build(); + String siteId = "siteId-902090046"; + + Site actualResponse = client.createSiteAsync(parent, site, siteId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateSiteRequest actualRequest = ((CreateSiteRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(site, actualRequest.getSite()); + Assert.assertEquals(siteId, actualRequest.getSiteId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createSiteExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + String parent = "parent-995424086"; + Site site = Site.newBuilder().build(); + String siteId = "siteId-902090046"; + client.createSiteAsync(parent, site, siteId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updateSiteTest() throws Exception { + Site expectedResponse = + Site.newBuilder() + .setName(SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOrganizationContact(OrganizationContact.newBuilder().build()) + .setGoogleMapsPinUri("googleMapsPinUri123053095") + .addAllAccessTimes(new ArrayList()) + .setNotes("notes105008833") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateSiteTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGDCHardwareManagement.addResponse(resultOperation); + + Site site = Site.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Site actualResponse = client.updateSiteAsync(site, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateSiteRequest actualRequest = ((UpdateSiteRequest) actualRequests.get(0)); + + Assert.assertEquals(site, actualRequest.getSite()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateSiteExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + Site site = Site.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateSiteAsync(site, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listHardwareGroupsTest() throws Exception { + HardwareGroup responsesElement = HardwareGroup.newBuilder().build(); + ListHardwareGroupsResponse expectedResponse = + ListHardwareGroupsResponse.newBuilder() + .setNextPageToken("") + .addAllHardwareGroups(Arrays.asList(responsesElement)) + .build(); + mockGDCHardwareManagement.addResponse(expectedResponse); + + OrderName parent = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]"); + + ListHardwareGroupsPagedResponse pagedListResponse = client.listHardwareGroups(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getHardwareGroupsList().get(0), resources.get(0)); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListHardwareGroupsRequest actualRequest = ((ListHardwareGroupsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listHardwareGroupsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + OrderName parent = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]"); + client.listHardwareGroups(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listHardwareGroupsTest2() throws Exception { + HardwareGroup responsesElement = HardwareGroup.newBuilder().build(); + ListHardwareGroupsResponse expectedResponse = + ListHardwareGroupsResponse.newBuilder() + .setNextPageToken("") + .addAllHardwareGroups(Arrays.asList(responsesElement)) + .build(); + mockGDCHardwareManagement.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListHardwareGroupsPagedResponse pagedListResponse = client.listHardwareGroups(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getHardwareGroupsList().get(0), resources.get(0)); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListHardwareGroupsRequest actualRequest = ((ListHardwareGroupsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listHardwareGroupsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + String parent = "parent-995424086"; + client.listHardwareGroups(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getHardwareGroupTest() throws Exception { + HardwareGroup expectedResponse = + HardwareGroup.newBuilder() + .setName( + HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setHardwareCount(1025608696) + .setConfig(HardwareConfig.newBuilder().build()) + .setSite(SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString()) + .setZone(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) + .setRequestedInstallationDate(Date.newBuilder().build()) + .build(); + mockGDCHardwareManagement.addResponse(expectedResponse); + + HardwareGroupName name = + HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]"); + + HardwareGroup actualResponse = client.getHardwareGroup(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetHardwareGroupRequest actualRequest = ((GetHardwareGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getHardwareGroupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + HardwareGroupName name = + HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]"); + client.getHardwareGroup(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getHardwareGroupTest2() throws Exception { + HardwareGroup expectedResponse = + HardwareGroup.newBuilder() + .setName( + HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setHardwareCount(1025608696) + .setConfig(HardwareConfig.newBuilder().build()) + .setSite(SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString()) + .setZone(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) + .setRequestedInstallationDate(Date.newBuilder().build()) + .build(); + mockGDCHardwareManagement.addResponse(expectedResponse); + + String name = "name3373707"; + + HardwareGroup actualResponse = client.getHardwareGroup(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetHardwareGroupRequest actualRequest = ((GetHardwareGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getHardwareGroupExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + String name = "name3373707"; + client.getHardwareGroup(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createHardwareGroupTest() throws Exception { + HardwareGroup expectedResponse = + HardwareGroup.newBuilder() + .setName( + HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setHardwareCount(1025608696) + .setConfig(HardwareConfig.newBuilder().build()) + .setSite(SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString()) + .setZone(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) + .setRequestedInstallationDate(Date.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createHardwareGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGDCHardwareManagement.addResponse(resultOperation); + + OrderName parent = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]"); + HardwareGroup hardwareGroup = HardwareGroup.newBuilder().build(); + String hardwareGroupId = "hardwareGroupId-1961682702"; + + HardwareGroup actualResponse = + client.createHardwareGroupAsync(parent, hardwareGroup, hardwareGroupId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateHardwareGroupRequest actualRequest = ((CreateHardwareGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(hardwareGroup, actualRequest.getHardwareGroup()); + Assert.assertEquals(hardwareGroupId, actualRequest.getHardwareGroupId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createHardwareGroupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + OrderName parent = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]"); + HardwareGroup hardwareGroup = HardwareGroup.newBuilder().build(); + String hardwareGroupId = "hardwareGroupId-1961682702"; + client.createHardwareGroupAsync(parent, hardwareGroup, hardwareGroupId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createHardwareGroupTest2() throws Exception { + HardwareGroup expectedResponse = + HardwareGroup.newBuilder() + .setName( + HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setHardwareCount(1025608696) + .setConfig(HardwareConfig.newBuilder().build()) + .setSite(SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString()) + .setZone(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) + .setRequestedInstallationDate(Date.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createHardwareGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGDCHardwareManagement.addResponse(resultOperation); + + String parent = "parent-995424086"; + HardwareGroup hardwareGroup = HardwareGroup.newBuilder().build(); + String hardwareGroupId = "hardwareGroupId-1961682702"; + + HardwareGroup actualResponse = + client.createHardwareGroupAsync(parent, hardwareGroup, hardwareGroupId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateHardwareGroupRequest actualRequest = ((CreateHardwareGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(hardwareGroup, actualRequest.getHardwareGroup()); + Assert.assertEquals(hardwareGroupId, actualRequest.getHardwareGroupId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createHardwareGroupExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + String parent = "parent-995424086"; + HardwareGroup hardwareGroup = HardwareGroup.newBuilder().build(); + String hardwareGroupId = "hardwareGroupId-1961682702"; + client.createHardwareGroupAsync(parent, hardwareGroup, hardwareGroupId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updateHardwareGroupTest() throws Exception { + HardwareGroup expectedResponse = + HardwareGroup.newBuilder() + .setName( + HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setHardwareCount(1025608696) + .setConfig(HardwareConfig.newBuilder().build()) + .setSite(SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString()) + .setZone(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) + .setRequestedInstallationDate(Date.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateHardwareGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGDCHardwareManagement.addResponse(resultOperation); + + HardwareGroup hardwareGroup = HardwareGroup.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + HardwareGroup actualResponse = client.updateHardwareGroupAsync(hardwareGroup, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateHardwareGroupRequest actualRequest = ((UpdateHardwareGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(hardwareGroup, actualRequest.getHardwareGroup()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateHardwareGroupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + HardwareGroup hardwareGroup = HardwareGroup.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateHardwareGroupAsync(hardwareGroup, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteHardwareGroupTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteHardwareGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGDCHardwareManagement.addResponse(resultOperation); + + HardwareGroupName name = + HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]"); + + client.deleteHardwareGroupAsync(name).get(); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteHardwareGroupRequest actualRequest = ((DeleteHardwareGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteHardwareGroupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + HardwareGroupName name = + HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]"); + client.deleteHardwareGroupAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteHardwareGroupTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteHardwareGroupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGDCHardwareManagement.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteHardwareGroupAsync(name).get(); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteHardwareGroupRequest actualRequest = ((DeleteHardwareGroupRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteHardwareGroupExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + String name = "name3373707"; + client.deleteHardwareGroupAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listHardwareTest() throws Exception { + Hardware responsesElement = Hardware.newBuilder().build(); + ListHardwareResponse expectedResponse = + ListHardwareResponse.newBuilder() + .setNextPageToken("") + .addAllHardware(Arrays.asList(responsesElement)) + .build(); + mockGDCHardwareManagement.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListHardwarePagedResponse pagedListResponse = client.listHardware(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getHardwareList().get(0), resources.get(0)); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListHardwareRequest actualRequest = ((ListHardwareRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listHardwareExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listHardware(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listHardwareTest2() throws Exception { + Hardware responsesElement = Hardware.newBuilder().build(); + ListHardwareResponse expectedResponse = + ListHardwareResponse.newBuilder() + .setNextPageToken("") + .addAllHardware(Arrays.asList(responsesElement)) + .build(); + mockGDCHardwareManagement.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListHardwarePagedResponse pagedListResponse = client.listHardware(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getHardwareList().get(0), resources.get(0)); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListHardwareRequest actualRequest = ((ListHardwareRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listHardwareExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + String parent = "parent-995424086"; + client.listHardware(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getHardwareTest() throws Exception { + Hardware expectedResponse = + Hardware.newBuilder() + .setName(HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOrder(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setHardwareGroup( + HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]") + .toString()) + .setSite(SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString()) + .setCiqUri("ciqUri-1360259935") + .setConfig(HardwareConfig.newBuilder().build()) + .setEstimatedInstallationDate(Date.newBuilder().build()) + .setPhysicalInfo(HardwarePhysicalInfo.newBuilder().build()) + .setInstallationInfo(HardwareInstallationInfo.newBuilder().build()) + .setZone(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) + .setRequestedInstallationDate(Date.newBuilder().build()) + .setActualInstallationDate(Date.newBuilder().build()) + .build(); + mockGDCHardwareManagement.addResponse(expectedResponse); + + HardwareName name = HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]"); + + Hardware actualResponse = client.getHardware(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetHardwareRequest actualRequest = ((GetHardwareRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getHardwareExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + HardwareName name = HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]"); + client.getHardware(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getHardwareTest2() throws Exception { + Hardware expectedResponse = + Hardware.newBuilder() + .setName(HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOrder(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setHardwareGroup( + HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]") + .toString()) + .setSite(SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString()) + .setCiqUri("ciqUri-1360259935") + .setConfig(HardwareConfig.newBuilder().build()) + .setEstimatedInstallationDate(Date.newBuilder().build()) + .setPhysicalInfo(HardwarePhysicalInfo.newBuilder().build()) + .setInstallationInfo(HardwareInstallationInfo.newBuilder().build()) + .setZone(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) + .setRequestedInstallationDate(Date.newBuilder().build()) + .setActualInstallationDate(Date.newBuilder().build()) + .build(); + mockGDCHardwareManagement.addResponse(expectedResponse); + + String name = "name3373707"; + + Hardware actualResponse = client.getHardware(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetHardwareRequest actualRequest = ((GetHardwareRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getHardwareExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + String name = "name3373707"; + client.getHardware(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createHardwareTest() throws Exception { + Hardware expectedResponse = + Hardware.newBuilder() + .setName(HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOrder(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setHardwareGroup( + HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]") + .toString()) + .setSite(SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString()) + .setCiqUri("ciqUri-1360259935") + .setConfig(HardwareConfig.newBuilder().build()) + .setEstimatedInstallationDate(Date.newBuilder().build()) + .setPhysicalInfo(HardwarePhysicalInfo.newBuilder().build()) + .setInstallationInfo(HardwareInstallationInfo.newBuilder().build()) + .setZone(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) + .setRequestedInstallationDate(Date.newBuilder().build()) + .setActualInstallationDate(Date.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createHardwareTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGDCHardwareManagement.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Hardware hardware = Hardware.newBuilder().build(); + String hardwareId = "hardwareId680924451"; + + Hardware actualResponse = client.createHardwareAsync(parent, hardware, hardwareId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateHardwareRequest actualRequest = ((CreateHardwareRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(hardware, actualRequest.getHardware()); + Assert.assertEquals(hardwareId, actualRequest.getHardwareId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createHardwareExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Hardware hardware = Hardware.newBuilder().build(); + String hardwareId = "hardwareId680924451"; + client.createHardwareAsync(parent, hardware, hardwareId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createHardwareTest2() throws Exception { + Hardware expectedResponse = + Hardware.newBuilder() + .setName(HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOrder(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setHardwareGroup( + HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]") + .toString()) + .setSite(SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString()) + .setCiqUri("ciqUri-1360259935") + .setConfig(HardwareConfig.newBuilder().build()) + .setEstimatedInstallationDate(Date.newBuilder().build()) + .setPhysicalInfo(HardwarePhysicalInfo.newBuilder().build()) + .setInstallationInfo(HardwareInstallationInfo.newBuilder().build()) + .setZone(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) + .setRequestedInstallationDate(Date.newBuilder().build()) + .setActualInstallationDate(Date.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createHardwareTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGDCHardwareManagement.addResponse(resultOperation); + + String parent = "parent-995424086"; + Hardware hardware = Hardware.newBuilder().build(); + String hardwareId = "hardwareId680924451"; + + Hardware actualResponse = client.createHardwareAsync(parent, hardware, hardwareId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateHardwareRequest actualRequest = ((CreateHardwareRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(hardware, actualRequest.getHardware()); + Assert.assertEquals(hardwareId, actualRequest.getHardwareId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createHardwareExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + String parent = "parent-995424086"; + Hardware hardware = Hardware.newBuilder().build(); + String hardwareId = "hardwareId680924451"; + client.createHardwareAsync(parent, hardware, hardwareId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updateHardwareTest() throws Exception { + Hardware expectedResponse = + Hardware.newBuilder() + .setName(HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setOrder(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setHardwareGroup( + HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]") + .toString()) + .setSite(SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString()) + .setCiqUri("ciqUri-1360259935") + .setConfig(HardwareConfig.newBuilder().build()) + .setEstimatedInstallationDate(Date.newBuilder().build()) + .setPhysicalInfo(HardwarePhysicalInfo.newBuilder().build()) + .setInstallationInfo(HardwareInstallationInfo.newBuilder().build()) + .setZone(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) + .setRequestedInstallationDate(Date.newBuilder().build()) + .setActualInstallationDate(Date.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateHardwareTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGDCHardwareManagement.addResponse(resultOperation); + + Hardware hardware = Hardware.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Hardware actualResponse = client.updateHardwareAsync(hardware, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateHardwareRequest actualRequest = ((UpdateHardwareRequest) actualRequests.get(0)); + + Assert.assertEquals(hardware, actualRequest.getHardware()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateHardwareExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + Hardware hardware = Hardware.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateHardwareAsync(hardware, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteHardwareTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteHardwareTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGDCHardwareManagement.addResponse(resultOperation); + + HardwareName name = HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]"); + + client.deleteHardwareAsync(name).get(); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteHardwareRequest actualRequest = ((DeleteHardwareRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteHardwareExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + HardwareName name = HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]"); + client.deleteHardwareAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteHardwareTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteHardwareTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGDCHardwareManagement.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteHardwareAsync(name).get(); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteHardwareRequest actualRequest = ((DeleteHardwareRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteHardwareExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + String name = "name3373707"; + client.deleteHardwareAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listCommentsTest() throws Exception { + Comment responsesElement = Comment.newBuilder().build(); + ListCommentsResponse expectedResponse = + ListCommentsResponse.newBuilder() + .setNextPageToken("") + .addAllComments(Arrays.asList(responsesElement)) + .build(); + mockGDCHardwareManagement.addResponse(expectedResponse); + + OrderName parent = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]"); + + ListCommentsPagedResponse pagedListResponse = client.listComments(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCommentsList().get(0), resources.get(0)); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListCommentsRequest actualRequest = ((ListCommentsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listCommentsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + OrderName parent = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]"); + client.listComments(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCommentsTest2() throws Exception { + Comment responsesElement = Comment.newBuilder().build(); + ListCommentsResponse expectedResponse = + ListCommentsResponse.newBuilder() + .setNextPageToken("") + .addAllComments(Arrays.asList(responsesElement)) + .build(); + mockGDCHardwareManagement.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListCommentsPagedResponse pagedListResponse = client.listComments(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCommentsList().get(0), resources.get(0)); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListCommentsRequest actualRequest = ((ListCommentsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listCommentsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + String parent = "parent-995424086"; + client.listComments(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCommentTest() throws Exception { + Comment expectedResponse = + Comment.newBuilder() + .setName(CommentName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[COMMENT]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthor("author-1406328437") + .setText("text3556653") + .build(); + mockGDCHardwareManagement.addResponse(expectedResponse); + + CommentName name = CommentName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[COMMENT]"); + + Comment actualResponse = client.getComment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetCommentRequest actualRequest = ((GetCommentRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getCommentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + CommentName name = CommentName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[COMMENT]"); + client.getComment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCommentTest2() throws Exception { + Comment expectedResponse = + Comment.newBuilder() + .setName(CommentName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[COMMENT]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthor("author-1406328437") + .setText("text3556653") + .build(); + mockGDCHardwareManagement.addResponse(expectedResponse); + + String name = "name3373707"; + + Comment actualResponse = client.getComment(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetCommentRequest actualRequest = ((GetCommentRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getCommentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + String name = "name3373707"; + client.getComment(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createCommentTest() throws Exception { + Comment expectedResponse = + Comment.newBuilder() + .setName(CommentName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[COMMENT]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthor("author-1406328437") + .setText("text3556653") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createCommentTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGDCHardwareManagement.addResponse(resultOperation); + + OrderName parent = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]"); + Comment comment = Comment.newBuilder().build(); + String commentId = "commentId-1495016486"; + + Comment actualResponse = client.createCommentAsync(parent, comment, commentId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateCommentRequest actualRequest = ((CreateCommentRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(comment, actualRequest.getComment()); + Assert.assertEquals(commentId, actualRequest.getCommentId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createCommentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + OrderName parent = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]"); + Comment comment = Comment.newBuilder().build(); + String commentId = "commentId-1495016486"; + client.createCommentAsync(parent, comment, commentId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createCommentTest2() throws Exception { + Comment expectedResponse = + Comment.newBuilder() + .setName(CommentName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[COMMENT]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthor("author-1406328437") + .setText("text3556653") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createCommentTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGDCHardwareManagement.addResponse(resultOperation); + + String parent = "parent-995424086"; + Comment comment = Comment.newBuilder().build(); + String commentId = "commentId-1495016486"; + + Comment actualResponse = client.createCommentAsync(parent, comment, commentId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateCommentRequest actualRequest = ((CreateCommentRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(comment, actualRequest.getComment()); + Assert.assertEquals(commentId, actualRequest.getCommentId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createCommentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + String parent = "parent-995424086"; + Comment comment = Comment.newBuilder().build(); + String commentId = "commentId-1495016486"; + client.createCommentAsync(parent, comment, commentId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listChangeLogEntriesTest() throws Exception { + ChangeLogEntry responsesElement = ChangeLogEntry.newBuilder().build(); + ListChangeLogEntriesResponse expectedResponse = + ListChangeLogEntriesResponse.newBuilder() + .setNextPageToken("") + .addAllChangeLogEntries(Arrays.asList(responsesElement)) + .build(); + mockGDCHardwareManagement.addResponse(expectedResponse); + + OrderName parent = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]"); + + ListChangeLogEntriesPagedResponse pagedListResponse = client.listChangeLogEntries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getChangeLogEntriesList().get(0), resources.get(0)); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListChangeLogEntriesRequest actualRequest = + ((ListChangeLogEntriesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listChangeLogEntriesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + OrderName parent = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]"); + client.listChangeLogEntries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listChangeLogEntriesTest2() throws Exception { + ChangeLogEntry responsesElement = ChangeLogEntry.newBuilder().build(); + ListChangeLogEntriesResponse expectedResponse = + ListChangeLogEntriesResponse.newBuilder() + .setNextPageToken("") + .addAllChangeLogEntries(Arrays.asList(responsesElement)) + .build(); + mockGDCHardwareManagement.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListChangeLogEntriesPagedResponse pagedListResponse = client.listChangeLogEntries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getChangeLogEntriesList().get(0), resources.get(0)); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListChangeLogEntriesRequest actualRequest = + ((ListChangeLogEntriesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listChangeLogEntriesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + String parent = "parent-995424086"; + client.listChangeLogEntries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getChangeLogEntryTest() throws Exception { + ChangeLogEntry expectedResponse = + ChangeLogEntry.newBuilder() + .setName( + ChangeLogEntryName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[CHANGE_LOG_ENTRY]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setLog("log107332") + .build(); + mockGDCHardwareManagement.addResponse(expectedResponse); + + ChangeLogEntryName name = + ChangeLogEntryName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[CHANGE_LOG_ENTRY]"); + + ChangeLogEntry actualResponse = client.getChangeLogEntry(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetChangeLogEntryRequest actualRequest = ((GetChangeLogEntryRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getChangeLogEntryExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + ChangeLogEntryName name = + ChangeLogEntryName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[CHANGE_LOG_ENTRY]"); + client.getChangeLogEntry(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getChangeLogEntryTest2() throws Exception { + ChangeLogEntry expectedResponse = + ChangeLogEntry.newBuilder() + .setName( + ChangeLogEntryName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[CHANGE_LOG_ENTRY]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setLog("log107332") + .build(); + mockGDCHardwareManagement.addResponse(expectedResponse); + + String name = "name3373707"; + + ChangeLogEntry actualResponse = client.getChangeLogEntry(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetChangeLogEntryRequest actualRequest = ((GetChangeLogEntryRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getChangeLogEntryExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + String name = "name3373707"; + client.getChangeLogEntry(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSkusTest() throws Exception { + Sku responsesElement = Sku.newBuilder().build(); + ListSkusResponse expectedResponse = + ListSkusResponse.newBuilder() + .setNextPageToken("") + .addAllSkus(Arrays.asList(responsesElement)) + .build(); + mockGDCHardwareManagement.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListSkusPagedResponse pagedListResponse = client.listSkus(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSkusList().get(0), resources.get(0)); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSkusRequest actualRequest = ((ListSkusRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSkusExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listSkus(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSkusTest2() throws Exception { + Sku responsesElement = Sku.newBuilder().build(); + ListSkusResponse expectedResponse = + ListSkusResponse.newBuilder() + .setNextPageToken("") + .addAllSkus(Arrays.asList(responsesElement)) + .build(); + mockGDCHardwareManagement.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListSkusPagedResponse pagedListResponse = client.listSkus(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSkusList().get(0), resources.get(0)); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSkusRequest actualRequest = ((ListSkusRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSkusExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + String parent = "parent-995424086"; + client.listSkus(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSkuTest() throws Exception { + Sku expectedResponse = + Sku.newBuilder() + .setName(SkuName.of("[PROJECT]", "[LOCATION]", "[SKU]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setConfig(SkuConfig.newBuilder().build()) + .addAllInstances(new ArrayList()) + .setDescription("description-1724546052") + .setRevisionId("revisionId-1507445162") + .setIsActive(true) + .setVcpuCount(936475650) + .build(); + mockGDCHardwareManagement.addResponse(expectedResponse); + + SkuName name = SkuName.of("[PROJECT]", "[LOCATION]", "[SKU]"); + + Sku actualResponse = client.getSku(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSkuRequest actualRequest = ((GetSkuRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSkuExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + SkuName name = SkuName.of("[PROJECT]", "[LOCATION]", "[SKU]"); + client.getSku(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSkuTest2() throws Exception { + Sku expectedResponse = + Sku.newBuilder() + .setName(SkuName.of("[PROJECT]", "[LOCATION]", "[SKU]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setConfig(SkuConfig.newBuilder().build()) + .addAllInstances(new ArrayList()) + .setDescription("description-1724546052") + .setRevisionId("revisionId-1507445162") + .setIsActive(true) + .setVcpuCount(936475650) + .build(); + mockGDCHardwareManagement.addResponse(expectedResponse); + + String name = "name3373707"; + + Sku actualResponse = client.getSku(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSkuRequest actualRequest = ((GetSkuRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSkuExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + String name = "name3373707"; + client.getSku(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listZonesTest() throws Exception { + Zone responsesElement = Zone.newBuilder().build(); + ListZonesResponse expectedResponse = + ListZonesResponse.newBuilder() + .setNextPageToken("") + .addAllZones(Arrays.asList(responsesElement)) + .build(); + mockGDCHardwareManagement.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListZonesPagedResponse pagedListResponse = client.listZones(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getZonesList().get(0), resources.get(0)); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListZonesRequest actualRequest = ((ListZonesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listZonesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listZones(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listZonesTest2() throws Exception { + Zone responsesElement = Zone.newBuilder().build(); + ListZonesResponse expectedResponse = + ListZonesResponse.newBuilder() + .setNextPageToken("") + .addAllZones(Arrays.asList(responsesElement)) + .build(); + mockGDCHardwareManagement.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListZonesPagedResponse pagedListResponse = client.listZones(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getZonesList().get(0), resources.get(0)); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListZonesRequest actualRequest = ((ListZonesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listZonesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + String parent = "parent-995424086"; + client.listZones(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getZoneTest() throws Exception { + Zone expectedResponse = + Zone.newBuilder() + .setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .addAllContacts(new ArrayList()) + .setCiqUri("ciqUri-1360259935") + .setNetworkConfig(ZoneNetworkConfig.newBuilder().build()) + .setGloballyUniqueId("globallyUniqueId-1207923364") + .build(); + mockGDCHardwareManagement.addResponse(expectedResponse); + + ZoneName name = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]"); + + Zone actualResponse = client.getZone(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetZoneRequest actualRequest = ((GetZoneRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getZoneExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + ZoneName name = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]"); + client.getZone(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getZoneTest2() throws Exception { + Zone expectedResponse = + Zone.newBuilder() + .setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .addAllContacts(new ArrayList()) + .setCiqUri("ciqUri-1360259935") + .setNetworkConfig(ZoneNetworkConfig.newBuilder().build()) + .setGloballyUniqueId("globallyUniqueId-1207923364") + .build(); + mockGDCHardwareManagement.addResponse(expectedResponse); + + String name = "name3373707"; + + Zone actualResponse = client.getZone(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetZoneRequest actualRequest = ((GetZoneRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getZoneExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + String name = "name3373707"; + client.getZone(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createZoneTest() throws Exception { + Zone expectedResponse = + Zone.newBuilder() + .setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .addAllContacts(new ArrayList()) + .setCiqUri("ciqUri-1360259935") + .setNetworkConfig(ZoneNetworkConfig.newBuilder().build()) + .setGloballyUniqueId("globallyUniqueId-1207923364") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createZoneTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGDCHardwareManagement.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Zone zone = Zone.newBuilder().build(); + String zoneId = "zoneId-696323609"; + + Zone actualResponse = client.createZoneAsync(parent, zone, zoneId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateZoneRequest actualRequest = ((CreateZoneRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(zone, actualRequest.getZone()); + Assert.assertEquals(zoneId, actualRequest.getZoneId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createZoneExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Zone zone = Zone.newBuilder().build(); + String zoneId = "zoneId-696323609"; + client.createZoneAsync(parent, zone, zoneId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createZoneTest2() throws Exception { + Zone expectedResponse = + Zone.newBuilder() + .setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .addAllContacts(new ArrayList()) + .setCiqUri("ciqUri-1360259935") + .setNetworkConfig(ZoneNetworkConfig.newBuilder().build()) + .setGloballyUniqueId("globallyUniqueId-1207923364") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createZoneTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGDCHardwareManagement.addResponse(resultOperation); + + String parent = "parent-995424086"; + Zone zone = Zone.newBuilder().build(); + String zoneId = "zoneId-696323609"; + + Zone actualResponse = client.createZoneAsync(parent, zone, zoneId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateZoneRequest actualRequest = ((CreateZoneRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(zone, actualRequest.getZone()); + Assert.assertEquals(zoneId, actualRequest.getZoneId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createZoneExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + String parent = "parent-995424086"; + Zone zone = Zone.newBuilder().build(); + String zoneId = "zoneId-696323609"; + client.createZoneAsync(parent, zone, zoneId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updateZoneTest() throws Exception { + Zone expectedResponse = + Zone.newBuilder() + .setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .addAllContacts(new ArrayList()) + .setCiqUri("ciqUri-1360259935") + .setNetworkConfig(ZoneNetworkConfig.newBuilder().build()) + .setGloballyUniqueId("globallyUniqueId-1207923364") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateZoneTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGDCHardwareManagement.addResponse(resultOperation); + + Zone zone = Zone.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Zone actualResponse = client.updateZoneAsync(zone, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateZoneRequest actualRequest = ((UpdateZoneRequest) actualRequests.get(0)); + + Assert.assertEquals(zone, actualRequest.getZone()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateZoneExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + Zone zone = Zone.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateZoneAsync(zone, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteZoneTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteZoneTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGDCHardwareManagement.addResponse(resultOperation); + + ZoneName name = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]"); + + client.deleteZoneAsync(name).get(); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteZoneRequest actualRequest = ((DeleteZoneRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteZoneExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + ZoneName name = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]"); + client.deleteZoneAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteZoneTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteZoneTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGDCHardwareManagement.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteZoneAsync(name).get(); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteZoneRequest actualRequest = ((DeleteZoneRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteZoneExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + String name = "name3373707"; + client.deleteZoneAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void signalZoneStateTest() throws Exception { + Zone expectedResponse = + Zone.newBuilder() + .setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .addAllContacts(new ArrayList()) + .setCiqUri("ciqUri-1360259935") + .setNetworkConfig(ZoneNetworkConfig.newBuilder().build()) + .setGloballyUniqueId("globallyUniqueId-1207923364") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("signalZoneStateTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGDCHardwareManagement.addResponse(resultOperation); + + ZoneName name = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]"); + SignalZoneStateRequest.StateSignal stateSignal = + SignalZoneStateRequest.StateSignal.forNumber(0); + + Zone actualResponse = client.signalZoneStateAsync(name, stateSignal).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SignalZoneStateRequest actualRequest = ((SignalZoneStateRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(stateSignal, actualRequest.getStateSignal()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void signalZoneStateExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + ZoneName name = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]"); + SignalZoneStateRequest.StateSignal stateSignal = + SignalZoneStateRequest.StateSignal.forNumber(0); + client.signalZoneStateAsync(name, stateSignal).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void signalZoneStateTest2() throws Exception { + Zone expectedResponse = + Zone.newBuilder() + .setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .addAllContacts(new ArrayList()) + .setCiqUri("ciqUri-1360259935") + .setNetworkConfig(ZoneNetworkConfig.newBuilder().build()) + .setGloballyUniqueId("globallyUniqueId-1207923364") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("signalZoneStateTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGDCHardwareManagement.addResponse(resultOperation); + + String name = "name3373707"; + SignalZoneStateRequest.StateSignal stateSignal = + SignalZoneStateRequest.StateSignal.forNumber(0); + + Zone actualResponse = client.signalZoneStateAsync(name, stateSignal).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGDCHardwareManagement.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SignalZoneStateRequest actualRequest = ((SignalZoneStateRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(stateSignal, actualRequest.getStateSignal()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void signalZoneStateExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGDCHardwareManagement.addException(exception); + + try { + String name = "name3373707"; + SignalZoneStateRequest.StateSignal stateSignal = + SignalZoneStateRequest.StateSignal.forNumber(0); + client.signalZoneStateAsync(name, stateSignal).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockLocations.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockLocations.addResponse(expectedResponse); + + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLocationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/test/java/com/google/cloud/gdchardwaremanagement/v1alpha/MockGDCHardwareManagement.java b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/test/java/com/google/cloud/gdchardwaremanagement/v1alpha/MockGDCHardwareManagement.java new file mode 100644 index 000000000000..db90cbb4deb4 --- /dev/null +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/test/java/com/google/cloud/gdchardwaremanagement/v1alpha/MockGDCHardwareManagement.java @@ -0,0 +1,59 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockGDCHardwareManagement implements MockGrpcService { + private final MockGDCHardwareManagementImpl serviceImpl; + + public MockGDCHardwareManagement() { + serviceImpl = new MockGDCHardwareManagementImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/test/java/com/google/cloud/gdchardwaremanagement/v1alpha/MockGDCHardwareManagementImpl.java b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/test/java/com/google/cloud/gdchardwaremanagement/v1alpha/MockGDCHardwareManagementImpl.java new file mode 100644 index 000000000000..0f4568dc843a --- /dev/null +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/test/java/com/google/cloud/gdchardwaremanagement/v1alpha/MockGDCHardwareManagementImpl.java @@ -0,0 +1,740 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementGrpc.GDCHardwareManagementImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockGDCHardwareManagementImpl extends GDCHardwareManagementImplBase { + private List requests; + private Queue responses; + + public MockGDCHardwareManagementImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void listOrders( + ListOrdersRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListOrdersResponse) { + requests.add(request); + responseObserver.onNext(((ListOrdersResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListOrders, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListOrdersResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getOrder(GetOrderRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Order) { + requests.add(request); + responseObserver.onNext(((Order) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetOrder, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Order.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createOrder(CreateOrderRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateOrder, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateOrder(UpdateOrderRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateOrder, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteOrder(DeleteOrderRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteOrder, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void submitOrder(SubmitOrderRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method SubmitOrder, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listSites( + ListSitesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListSitesResponse) { + requests.add(request); + responseObserver.onNext(((ListSitesResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListSites, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListSitesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getSite(GetSiteRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Site) { + requests.add(request); + responseObserver.onNext(((Site) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetSite, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Site.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createSite(CreateSiteRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateSite, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateSite(UpdateSiteRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateSite, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listHardwareGroups( + ListHardwareGroupsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListHardwareGroupsResponse) { + requests.add(request); + responseObserver.onNext(((ListHardwareGroupsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListHardwareGroups, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListHardwareGroupsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getHardwareGroup( + GetHardwareGroupRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof HardwareGroup) { + requests.add(request); + responseObserver.onNext(((HardwareGroup) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetHardwareGroup, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + HardwareGroup.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createHardwareGroup( + CreateHardwareGroupRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateHardwareGroup, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateHardwareGroup( + UpdateHardwareGroupRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateHardwareGroup, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteHardwareGroup( + DeleteHardwareGroupRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteHardwareGroup, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listHardware( + ListHardwareRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListHardwareResponse) { + requests.add(request); + responseObserver.onNext(((ListHardwareResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListHardware, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListHardwareResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getHardware(GetHardwareRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Hardware) { + requests.add(request); + responseObserver.onNext(((Hardware) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetHardware, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Hardware.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createHardware( + CreateHardwareRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateHardware, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateHardware( + UpdateHardwareRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateHardware, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteHardware( + DeleteHardwareRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteHardware, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listComments( + ListCommentsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListCommentsResponse) { + requests.add(request); + responseObserver.onNext(((ListCommentsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListComments, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListCommentsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getComment(GetCommentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Comment) { + requests.add(request); + responseObserver.onNext(((Comment) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetComment, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Comment.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createComment( + CreateCommentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateComment, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listChangeLogEntries( + ListChangeLogEntriesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListChangeLogEntriesResponse) { + requests.add(request); + responseObserver.onNext(((ListChangeLogEntriesResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListChangeLogEntries, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListChangeLogEntriesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getChangeLogEntry( + GetChangeLogEntryRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ChangeLogEntry) { + requests.add(request); + responseObserver.onNext(((ChangeLogEntry) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetChangeLogEntry, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ChangeLogEntry.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listSkus(ListSkusRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListSkusResponse) { + requests.add(request); + responseObserver.onNext(((ListSkusResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListSkus, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListSkusResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getSku(GetSkuRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Sku) { + requests.add(request); + responseObserver.onNext(((Sku) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetSku, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Sku.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listZones( + ListZonesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListZonesResponse) { + requests.add(request); + responseObserver.onNext(((ListZonesResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListZones, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListZonesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getZone(GetZoneRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Zone) { + requests.add(request); + responseObserver.onNext(((Zone) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetZone, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Zone.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createZone(CreateZoneRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateZone, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateZone(UpdateZoneRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateZone, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteZone(DeleteZoneRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteZone, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void signalZoneState( + SignalZoneStateRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method SignalZoneState, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/test/java/com/google/cloud/gdchardwaremanagement/v1alpha/MockLocations.java b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/test/java/com/google/cloud/gdchardwaremanagement/v1alpha/MockLocations.java new file mode 100644 index 000000000000..e45db63c6c74 --- /dev/null +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/test/java/com/google/cloud/gdchardwaremanagement/v1alpha/MockLocations.java @@ -0,0 +1,59 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockLocations implements MockGrpcService { + private final MockLocationsImpl serviceImpl; + + public MockLocations() { + serviceImpl = new MockLocationsImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/test/java/com/google/cloud/gdchardwaremanagement/v1alpha/MockLocationsImpl.java b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/test/java/com/google/cloud/gdchardwaremanagement/v1alpha/MockLocationsImpl.java new file mode 100644 index 000000000000..b74469ce6abe --- /dev/null +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/test/java/com/google/cloud/gdchardwaremanagement/v1alpha/MockLocationsImpl.java @@ -0,0 +1,105 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.location.LocationsGrpc.LocationsImplBase; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockLocationsImpl extends LocationsImplBase { + private List requests; + private Queue responses; + + public MockLocationsImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void listLocations( + ListLocationsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListLocationsResponse) { + requests.add(request); + responseObserver.onNext(((ListLocationsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListLocations, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListLocationsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getLocation(GetLocationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Location) { + requests.add(request); + responseObserver.onNext(((Location) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetLocation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Location.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-gdchardwaremanagement/grpc-google-cloud-gdchardwaremanagement-v1alpha/pom.xml b/java-gdchardwaremanagement/grpc-google-cloud-gdchardwaremanagement-v1alpha/pom.xml new file mode 100644 index 000000000000..aef6da376b29 --- /dev/null +++ b/java-gdchardwaremanagement/grpc-google-cloud-gdchardwaremanagement-v1alpha/pom.xml @@ -0,0 +1,45 @@ + + 4.0.0 + com.google.api.grpc + grpc-google-cloud-gdchardwaremanagement-v1alpha + 0.0.1-SNAPSHOT + grpc-google-cloud-gdchardwaremanagement-v1alpha + GRPC library for google-cloud-gdchardwaremanagement + + com.google.cloud + google-cloud-gdchardwaremanagement-parent + 0.0.1-SNAPSHOT + + + + io.grpc + grpc-api + + + io.grpc + grpc-stub + + + io.grpc + grpc-protobuf + + + com.google.protobuf + protobuf-java + + + com.google.api.grpc + proto-google-common-protos + + + com.google.api.grpc + proto-google-cloud-gdchardwaremanagement-v1alpha + + + com.google.guava + guava + + + diff --git a/java-gdchardwaremanagement/grpc-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementGrpc.java b/java-gdchardwaremanagement/grpc-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementGrpc.java new file mode 100644 index 000000000000..46d75c9e302e --- /dev/null +++ b/java-gdchardwaremanagement/grpc-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GDCHardwareManagementGrpc.java @@ -0,0 +1,4170 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.gdchardwaremanagement.v1alpha; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
          + * The GDC Hardware Management service.
          + * 
          + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/gdchardwaremanagement/v1alpha/service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class GDCHardwareManagementGrpc { + + private GDCHardwareManagementGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse> + getListOrdersMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListOrders", + requestType = com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest.class, + responseType = com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse> + getListOrdersMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse> + getListOrdersMethod; + if ((getListOrdersMethod = GDCHardwareManagementGrpc.getListOrdersMethod) == null) { + synchronized (GDCHardwareManagementGrpc.class) { + if ((getListOrdersMethod = GDCHardwareManagementGrpc.getListOrdersMethod) == null) { + GDCHardwareManagementGrpc.getListOrdersMethod = + getListOrdersMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListOrders")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new GDCHardwareManagementMethodDescriptorSupplier("ListOrders")) + .build(); + } + } + } + return getListOrdersMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.Order> + getGetOrderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetOrder", + requestType = com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest.class, + responseType = com.google.cloud.gdchardwaremanagement.v1alpha.Order.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.Order> + getGetOrderMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.Order> + getGetOrderMethod; + if ((getGetOrderMethod = GDCHardwareManagementGrpc.getGetOrderMethod) == null) { + synchronized (GDCHardwareManagementGrpc.class) { + if ((getGetOrderMethod = GDCHardwareManagementGrpc.getGetOrderMethod) == null) { + GDCHardwareManagementGrpc.getGetOrderMethod = + getGetOrderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetOrder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gdchardwaremanagement.v1alpha.Order + .getDefaultInstance())) + .setSchemaDescriptor( + new GDCHardwareManagementMethodDescriptorSupplier("GetOrder")) + .build(); + } + } + } + return getGetOrderMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest, + com.google.longrunning.Operation> + getCreateOrderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateOrder", + requestType = com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest, + com.google.longrunning.Operation> + getCreateOrderMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest, + com.google.longrunning.Operation> + getCreateOrderMethod; + if ((getCreateOrderMethod = GDCHardwareManagementGrpc.getCreateOrderMethod) == null) { + synchronized (GDCHardwareManagementGrpc.class) { + if ((getCreateOrderMethod = GDCHardwareManagementGrpc.getCreateOrderMethod) == null) { + GDCHardwareManagementGrpc.getCreateOrderMethod = + getCreateOrderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateOrder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new GDCHardwareManagementMethodDescriptorSupplier("CreateOrder")) + .build(); + } + } + } + return getCreateOrderMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest, + com.google.longrunning.Operation> + getUpdateOrderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateOrder", + requestType = com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest, + com.google.longrunning.Operation> + getUpdateOrderMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest, + com.google.longrunning.Operation> + getUpdateOrderMethod; + if ((getUpdateOrderMethod = GDCHardwareManagementGrpc.getUpdateOrderMethod) == null) { + synchronized (GDCHardwareManagementGrpc.class) { + if ((getUpdateOrderMethod = GDCHardwareManagementGrpc.getUpdateOrderMethod) == null) { + GDCHardwareManagementGrpc.getUpdateOrderMethod = + getUpdateOrderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateOrder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new GDCHardwareManagementMethodDescriptorSupplier("UpdateOrder")) + .build(); + } + } + } + return getUpdateOrderMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest, + com.google.longrunning.Operation> + getDeleteOrderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteOrder", + requestType = com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest, + com.google.longrunning.Operation> + getDeleteOrderMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest, + com.google.longrunning.Operation> + getDeleteOrderMethod; + if ((getDeleteOrderMethod = GDCHardwareManagementGrpc.getDeleteOrderMethod) == null) { + synchronized (GDCHardwareManagementGrpc.class) { + if ((getDeleteOrderMethod = GDCHardwareManagementGrpc.getDeleteOrderMethod) == null) { + GDCHardwareManagementGrpc.getDeleteOrderMethod = + getDeleteOrderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteOrder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new GDCHardwareManagementMethodDescriptorSupplier("DeleteOrder")) + .build(); + } + } + } + return getDeleteOrderMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest, + com.google.longrunning.Operation> + getSubmitOrderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SubmitOrder", + requestType = com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest, + com.google.longrunning.Operation> + getSubmitOrderMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest, + com.google.longrunning.Operation> + getSubmitOrderMethod; + if ((getSubmitOrderMethod = GDCHardwareManagementGrpc.getSubmitOrderMethod) == null) { + synchronized (GDCHardwareManagementGrpc.class) { + if ((getSubmitOrderMethod = GDCHardwareManagementGrpc.getSubmitOrderMethod) == null) { + GDCHardwareManagementGrpc.getSubmitOrderMethod = + getSubmitOrderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SubmitOrder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new GDCHardwareManagementMethodDescriptorSupplier("SubmitOrder")) + .build(); + } + } + } + return getSubmitOrderMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse> + getListSitesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSites", + requestType = com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest.class, + responseType = com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse> + getListSitesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse> + getListSitesMethod; + if ((getListSitesMethod = GDCHardwareManagementGrpc.getListSitesMethod) == null) { + synchronized (GDCHardwareManagementGrpc.class) { + if ((getListSitesMethod = GDCHardwareManagementGrpc.getListSitesMethod) == null) { + GDCHardwareManagementGrpc.getListSitesMethod = + getListSitesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSites")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new GDCHardwareManagementMethodDescriptorSupplier("ListSites")) + .build(); + } + } + } + return getListSitesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.Site> + getGetSiteMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSite", + requestType = com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest.class, + responseType = com.google.cloud.gdchardwaremanagement.v1alpha.Site.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.Site> + getGetSiteMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.Site> + getGetSiteMethod; + if ((getGetSiteMethod = GDCHardwareManagementGrpc.getGetSiteMethod) == null) { + synchronized (GDCHardwareManagementGrpc.class) { + if ((getGetSiteMethod = GDCHardwareManagementGrpc.getGetSiteMethod) == null) { + GDCHardwareManagementGrpc.getGetSiteMethod = + getGetSiteMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSite")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gdchardwaremanagement.v1alpha.Site + .getDefaultInstance())) + .setSchemaDescriptor( + new GDCHardwareManagementMethodDescriptorSupplier("GetSite")) + .build(); + } + } + } + return getGetSiteMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest, + com.google.longrunning.Operation> + getCreateSiteMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSite", + requestType = com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest, + com.google.longrunning.Operation> + getCreateSiteMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest, + com.google.longrunning.Operation> + getCreateSiteMethod; + if ((getCreateSiteMethod = GDCHardwareManagementGrpc.getCreateSiteMethod) == null) { + synchronized (GDCHardwareManagementGrpc.class) { + if ((getCreateSiteMethod = GDCHardwareManagementGrpc.getCreateSiteMethod) == null) { + GDCHardwareManagementGrpc.getCreateSiteMethod = + getCreateSiteMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSite")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new GDCHardwareManagementMethodDescriptorSupplier("CreateSite")) + .build(); + } + } + } + return getCreateSiteMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest, + com.google.longrunning.Operation> + getUpdateSiteMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSite", + requestType = com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest, + com.google.longrunning.Operation> + getUpdateSiteMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest, + com.google.longrunning.Operation> + getUpdateSiteMethod; + if ((getUpdateSiteMethod = GDCHardwareManagementGrpc.getUpdateSiteMethod) == null) { + synchronized (GDCHardwareManagementGrpc.class) { + if ((getUpdateSiteMethod = GDCHardwareManagementGrpc.getUpdateSiteMethod) == null) { + GDCHardwareManagementGrpc.getUpdateSiteMethod = + getUpdateSiteMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSite")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new GDCHardwareManagementMethodDescriptorSupplier("UpdateSite")) + .build(); + } + } + } + return getUpdateSiteMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse> + getListHardwareGroupsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListHardwareGroups", + requestType = com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest.class, + responseType = + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse> + getListHardwareGroupsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse> + getListHardwareGroupsMethod; + if ((getListHardwareGroupsMethod = GDCHardwareManagementGrpc.getListHardwareGroupsMethod) + == null) { + synchronized (GDCHardwareManagementGrpc.class) { + if ((getListHardwareGroupsMethod = GDCHardwareManagementGrpc.getListHardwareGroupsMethod) + == null) { + GDCHardwareManagementGrpc.getListHardwareGroupsMethod = + getListHardwareGroupsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListHardwareGroups")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gdchardwaremanagement.v1alpha + .ListHardwareGroupsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gdchardwaremanagement.v1alpha + .ListHardwareGroupsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new GDCHardwareManagementMethodDescriptorSupplier("ListHardwareGroups")) + .build(); + } + } + } + return getListHardwareGroupsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup> + getGetHardwareGroupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetHardwareGroup", + requestType = com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest.class, + responseType = com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup> + getGetHardwareGroupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup> + getGetHardwareGroupMethod; + if ((getGetHardwareGroupMethod = GDCHardwareManagementGrpc.getGetHardwareGroupMethod) == null) { + synchronized (GDCHardwareManagementGrpc.class) { + if ((getGetHardwareGroupMethod = GDCHardwareManagementGrpc.getGetHardwareGroupMethod) + == null) { + GDCHardwareManagementGrpc.getGetHardwareGroupMethod = + getGetHardwareGroupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetHardwareGroup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup + .getDefaultInstance())) + .setSchemaDescriptor( + new GDCHardwareManagementMethodDescriptorSupplier("GetHardwareGroup")) + .build(); + } + } + } + return getGetHardwareGroupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest, + com.google.longrunning.Operation> + getCreateHardwareGroupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateHardwareGroup", + requestType = com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest, + com.google.longrunning.Operation> + getCreateHardwareGroupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest, + com.google.longrunning.Operation> + getCreateHardwareGroupMethod; + if ((getCreateHardwareGroupMethod = GDCHardwareManagementGrpc.getCreateHardwareGroupMethod) + == null) { + synchronized (GDCHardwareManagementGrpc.class) { + if ((getCreateHardwareGroupMethod = GDCHardwareManagementGrpc.getCreateHardwareGroupMethod) + == null) { + GDCHardwareManagementGrpc.getCreateHardwareGroupMethod = + getCreateHardwareGroupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateHardwareGroup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gdchardwaremanagement.v1alpha + .CreateHardwareGroupRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new GDCHardwareManagementMethodDescriptorSupplier("CreateHardwareGroup")) + .build(); + } + } + } + return getCreateHardwareGroupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest, + com.google.longrunning.Operation> + getUpdateHardwareGroupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateHardwareGroup", + requestType = com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest, + com.google.longrunning.Operation> + getUpdateHardwareGroupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest, + com.google.longrunning.Operation> + getUpdateHardwareGroupMethod; + if ((getUpdateHardwareGroupMethod = GDCHardwareManagementGrpc.getUpdateHardwareGroupMethod) + == null) { + synchronized (GDCHardwareManagementGrpc.class) { + if ((getUpdateHardwareGroupMethod = GDCHardwareManagementGrpc.getUpdateHardwareGroupMethod) + == null) { + GDCHardwareManagementGrpc.getUpdateHardwareGroupMethod = + getUpdateHardwareGroupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateHardwareGroup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gdchardwaremanagement.v1alpha + .UpdateHardwareGroupRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new GDCHardwareManagementMethodDescriptorSupplier("UpdateHardwareGroup")) + .build(); + } + } + } + return getUpdateHardwareGroupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest, + com.google.longrunning.Operation> + getDeleteHardwareGroupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteHardwareGroup", + requestType = com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest, + com.google.longrunning.Operation> + getDeleteHardwareGroupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest, + com.google.longrunning.Operation> + getDeleteHardwareGroupMethod; + if ((getDeleteHardwareGroupMethod = GDCHardwareManagementGrpc.getDeleteHardwareGroupMethod) + == null) { + synchronized (GDCHardwareManagementGrpc.class) { + if ((getDeleteHardwareGroupMethod = GDCHardwareManagementGrpc.getDeleteHardwareGroupMethod) + == null) { + GDCHardwareManagementGrpc.getDeleteHardwareGroupMethod = + getDeleteHardwareGroupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteHardwareGroup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gdchardwaremanagement.v1alpha + .DeleteHardwareGroupRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new GDCHardwareManagementMethodDescriptorSupplier("DeleteHardwareGroup")) + .build(); + } + } + } + return getDeleteHardwareGroupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse> + getListHardwareMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListHardware", + requestType = com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest.class, + responseType = com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse> + getListHardwareMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse> + getListHardwareMethod; + if ((getListHardwareMethod = GDCHardwareManagementGrpc.getListHardwareMethod) == null) { + synchronized (GDCHardwareManagementGrpc.class) { + if ((getListHardwareMethod = GDCHardwareManagementGrpc.getListHardwareMethod) == null) { + GDCHardwareManagementGrpc.getListHardwareMethod = + getListHardwareMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListHardware")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new GDCHardwareManagementMethodDescriptorSupplier("ListHardware")) + .build(); + } + } + } + return getListHardwareMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware> + getGetHardwareMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetHardware", + requestType = com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest.class, + responseType = com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware> + getGetHardwareMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware> + getGetHardwareMethod; + if ((getGetHardwareMethod = GDCHardwareManagementGrpc.getGetHardwareMethod) == null) { + synchronized (GDCHardwareManagementGrpc.class) { + if ((getGetHardwareMethod = GDCHardwareManagementGrpc.getGetHardwareMethod) == null) { + GDCHardwareManagementGrpc.getGetHardwareMethod = + getGetHardwareMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetHardware")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware + .getDefaultInstance())) + .setSchemaDescriptor( + new GDCHardwareManagementMethodDescriptorSupplier("GetHardware")) + .build(); + } + } + } + return getGetHardwareMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest, + com.google.longrunning.Operation> + getCreateHardwareMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateHardware", + requestType = com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest, + com.google.longrunning.Operation> + getCreateHardwareMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest, + com.google.longrunning.Operation> + getCreateHardwareMethod; + if ((getCreateHardwareMethod = GDCHardwareManagementGrpc.getCreateHardwareMethod) == null) { + synchronized (GDCHardwareManagementGrpc.class) { + if ((getCreateHardwareMethod = GDCHardwareManagementGrpc.getCreateHardwareMethod) == null) { + GDCHardwareManagementGrpc.getCreateHardwareMethod = + getCreateHardwareMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateHardware")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new GDCHardwareManagementMethodDescriptorSupplier("CreateHardware")) + .build(); + } + } + } + return getCreateHardwareMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest, + com.google.longrunning.Operation> + getUpdateHardwareMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateHardware", + requestType = com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest, + com.google.longrunning.Operation> + getUpdateHardwareMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest, + com.google.longrunning.Operation> + getUpdateHardwareMethod; + if ((getUpdateHardwareMethod = GDCHardwareManagementGrpc.getUpdateHardwareMethod) == null) { + synchronized (GDCHardwareManagementGrpc.class) { + if ((getUpdateHardwareMethod = GDCHardwareManagementGrpc.getUpdateHardwareMethod) == null) { + GDCHardwareManagementGrpc.getUpdateHardwareMethod = + getUpdateHardwareMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateHardware")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new GDCHardwareManagementMethodDescriptorSupplier("UpdateHardware")) + .build(); + } + } + } + return getUpdateHardwareMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest, + com.google.longrunning.Operation> + getDeleteHardwareMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteHardware", + requestType = com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest, + com.google.longrunning.Operation> + getDeleteHardwareMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest, + com.google.longrunning.Operation> + getDeleteHardwareMethod; + if ((getDeleteHardwareMethod = GDCHardwareManagementGrpc.getDeleteHardwareMethod) == null) { + synchronized (GDCHardwareManagementGrpc.class) { + if ((getDeleteHardwareMethod = GDCHardwareManagementGrpc.getDeleteHardwareMethod) == null) { + GDCHardwareManagementGrpc.getDeleteHardwareMethod = + getDeleteHardwareMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteHardware")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new GDCHardwareManagementMethodDescriptorSupplier("DeleteHardware")) + .build(); + } + } + } + return getDeleteHardwareMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse> + getListCommentsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListComments", + requestType = com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest.class, + responseType = com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse> + getListCommentsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse> + getListCommentsMethod; + if ((getListCommentsMethod = GDCHardwareManagementGrpc.getListCommentsMethod) == null) { + synchronized (GDCHardwareManagementGrpc.class) { + if ((getListCommentsMethod = GDCHardwareManagementGrpc.getListCommentsMethod) == null) { + GDCHardwareManagementGrpc.getListCommentsMethod = + getListCommentsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListComments")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new GDCHardwareManagementMethodDescriptorSupplier("ListComments")) + .build(); + } + } + } + return getListCommentsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.Comment> + getGetCommentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetComment", + requestType = com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest.class, + responseType = com.google.cloud.gdchardwaremanagement.v1alpha.Comment.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.Comment> + getGetCommentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.Comment> + getGetCommentMethod; + if ((getGetCommentMethod = GDCHardwareManagementGrpc.getGetCommentMethod) == null) { + synchronized (GDCHardwareManagementGrpc.class) { + if ((getGetCommentMethod = GDCHardwareManagementGrpc.getGetCommentMethod) == null) { + GDCHardwareManagementGrpc.getGetCommentMethod = + getGetCommentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetComment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gdchardwaremanagement.v1alpha.Comment + .getDefaultInstance())) + .setSchemaDescriptor( + new GDCHardwareManagementMethodDescriptorSupplier("GetComment")) + .build(); + } + } + } + return getGetCommentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest, + com.google.longrunning.Operation> + getCreateCommentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateComment", + requestType = com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest, + com.google.longrunning.Operation> + getCreateCommentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest, + com.google.longrunning.Operation> + getCreateCommentMethod; + if ((getCreateCommentMethod = GDCHardwareManagementGrpc.getCreateCommentMethod) == null) { + synchronized (GDCHardwareManagementGrpc.class) { + if ((getCreateCommentMethod = GDCHardwareManagementGrpc.getCreateCommentMethod) == null) { + GDCHardwareManagementGrpc.getCreateCommentMethod = + getCreateCommentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateComment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new GDCHardwareManagementMethodDescriptorSupplier("CreateComment")) + .build(); + } + } + } + return getCreateCommentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse> + getListChangeLogEntriesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListChangeLogEntries", + requestType = + com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest.class, + responseType = + com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse> + getListChangeLogEntriesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse> + getListChangeLogEntriesMethod; + if ((getListChangeLogEntriesMethod = GDCHardwareManagementGrpc.getListChangeLogEntriesMethod) + == null) { + synchronized (GDCHardwareManagementGrpc.class) { + if ((getListChangeLogEntriesMethod = + GDCHardwareManagementGrpc.getListChangeLogEntriesMethod) + == null) { + GDCHardwareManagementGrpc.getListChangeLogEntriesMethod = + getListChangeLogEntriesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListChangeLogEntries")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gdchardwaremanagement.v1alpha + .ListChangeLogEntriesRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gdchardwaremanagement.v1alpha + .ListChangeLogEntriesResponse.getDefaultInstance())) + .setSchemaDescriptor( + new GDCHardwareManagementMethodDescriptorSupplier("ListChangeLogEntries")) + .build(); + } + } + } + return getListChangeLogEntriesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry> + getGetChangeLogEntryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetChangeLogEntry", + requestType = com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest.class, + responseType = com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry> + getGetChangeLogEntryMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry> + getGetChangeLogEntryMethod; + if ((getGetChangeLogEntryMethod = GDCHardwareManagementGrpc.getGetChangeLogEntryMethod) + == null) { + synchronized (GDCHardwareManagementGrpc.class) { + if ((getGetChangeLogEntryMethod = GDCHardwareManagementGrpc.getGetChangeLogEntryMethod) + == null) { + GDCHardwareManagementGrpc.getGetChangeLogEntryMethod = + getGetChangeLogEntryMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetChangeLogEntry")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gdchardwaremanagement.v1alpha + .GetChangeLogEntryRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry + .getDefaultInstance())) + .setSchemaDescriptor( + new GDCHardwareManagementMethodDescriptorSupplier("GetChangeLogEntry")) + .build(); + } + } + } + return getGetChangeLogEntryMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse> + getListSkusMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSkus", + requestType = com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest.class, + responseType = com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse> + getListSkusMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse> + getListSkusMethod; + if ((getListSkusMethod = GDCHardwareManagementGrpc.getListSkusMethod) == null) { + synchronized (GDCHardwareManagementGrpc.class) { + if ((getListSkusMethod = GDCHardwareManagementGrpc.getListSkusMethod) == null) { + GDCHardwareManagementGrpc.getListSkusMethod = + getListSkusMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSkus")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new GDCHardwareManagementMethodDescriptorSupplier("ListSkus")) + .build(); + } + } + } + return getListSkusMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.Sku> + getGetSkuMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSku", + requestType = com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest.class, + responseType = com.google.cloud.gdchardwaremanagement.v1alpha.Sku.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.Sku> + getGetSkuMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.Sku> + getGetSkuMethod; + if ((getGetSkuMethod = GDCHardwareManagementGrpc.getGetSkuMethod) == null) { + synchronized (GDCHardwareManagementGrpc.class) { + if ((getGetSkuMethod = GDCHardwareManagementGrpc.getGetSkuMethod) == null) { + GDCHardwareManagementGrpc.getGetSkuMethod = + getGetSkuMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSku")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gdchardwaremanagement.v1alpha.Sku + .getDefaultInstance())) + .setSchemaDescriptor( + new GDCHardwareManagementMethodDescriptorSupplier("GetSku")) + .build(); + } + } + } + return getGetSkuMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse> + getListZonesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListZones", + requestType = com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest.class, + responseType = com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse> + getListZonesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse> + getListZonesMethod; + if ((getListZonesMethod = GDCHardwareManagementGrpc.getListZonesMethod) == null) { + synchronized (GDCHardwareManagementGrpc.class) { + if ((getListZonesMethod = GDCHardwareManagementGrpc.getListZonesMethod) == null) { + GDCHardwareManagementGrpc.getListZonesMethod = + getListZonesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListZones")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new GDCHardwareManagementMethodDescriptorSupplier("ListZones")) + .build(); + } + } + } + return getListZonesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.Zone> + getGetZoneMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetZone", + requestType = com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest.class, + responseType = com.google.cloud.gdchardwaremanagement.v1alpha.Zone.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.Zone> + getGetZoneMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.Zone> + getGetZoneMethod; + if ((getGetZoneMethod = GDCHardwareManagementGrpc.getGetZoneMethod) == null) { + synchronized (GDCHardwareManagementGrpc.class) { + if ((getGetZoneMethod = GDCHardwareManagementGrpc.getGetZoneMethod) == null) { + GDCHardwareManagementGrpc.getGetZoneMethod = + getGetZoneMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetZone")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gdchardwaremanagement.v1alpha.Zone + .getDefaultInstance())) + .setSchemaDescriptor( + new GDCHardwareManagementMethodDescriptorSupplier("GetZone")) + .build(); + } + } + } + return getGetZoneMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest, + com.google.longrunning.Operation> + getCreateZoneMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateZone", + requestType = com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest, + com.google.longrunning.Operation> + getCreateZoneMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest, + com.google.longrunning.Operation> + getCreateZoneMethod; + if ((getCreateZoneMethod = GDCHardwareManagementGrpc.getCreateZoneMethod) == null) { + synchronized (GDCHardwareManagementGrpc.class) { + if ((getCreateZoneMethod = GDCHardwareManagementGrpc.getCreateZoneMethod) == null) { + GDCHardwareManagementGrpc.getCreateZoneMethod = + getCreateZoneMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateZone")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new GDCHardwareManagementMethodDescriptorSupplier("CreateZone")) + .build(); + } + } + } + return getCreateZoneMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest, + com.google.longrunning.Operation> + getUpdateZoneMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateZone", + requestType = com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest, + com.google.longrunning.Operation> + getUpdateZoneMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest, + com.google.longrunning.Operation> + getUpdateZoneMethod; + if ((getUpdateZoneMethod = GDCHardwareManagementGrpc.getUpdateZoneMethod) == null) { + synchronized (GDCHardwareManagementGrpc.class) { + if ((getUpdateZoneMethod = GDCHardwareManagementGrpc.getUpdateZoneMethod) == null) { + GDCHardwareManagementGrpc.getUpdateZoneMethod = + getUpdateZoneMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateZone")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new GDCHardwareManagementMethodDescriptorSupplier("UpdateZone")) + .build(); + } + } + } + return getUpdateZoneMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest, + com.google.longrunning.Operation> + getDeleteZoneMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteZone", + requestType = com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest, + com.google.longrunning.Operation> + getDeleteZoneMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest, + com.google.longrunning.Operation> + getDeleteZoneMethod; + if ((getDeleteZoneMethod = GDCHardwareManagementGrpc.getDeleteZoneMethod) == null) { + synchronized (GDCHardwareManagementGrpc.class) { + if ((getDeleteZoneMethod = GDCHardwareManagementGrpc.getDeleteZoneMethod) == null) { + GDCHardwareManagementGrpc.getDeleteZoneMethod = + getDeleteZoneMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteZone")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new GDCHardwareManagementMethodDescriptorSupplier("DeleteZone")) + .build(); + } + } + } + return getDeleteZoneMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest, + com.google.longrunning.Operation> + getSignalZoneStateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SignalZoneState", + requestType = com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest, + com.google.longrunning.Operation> + getSignalZoneStateMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest, + com.google.longrunning.Operation> + getSignalZoneStateMethod; + if ((getSignalZoneStateMethod = GDCHardwareManagementGrpc.getSignalZoneStateMethod) == null) { + synchronized (GDCHardwareManagementGrpc.class) { + if ((getSignalZoneStateMethod = GDCHardwareManagementGrpc.getSignalZoneStateMethod) + == null) { + GDCHardwareManagementGrpc.getSignalZoneStateMethod = + getSignalZoneStateMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SignalZoneState")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new GDCHardwareManagementMethodDescriptorSupplier("SignalZoneState")) + .build(); + } + } + } + return getSignalZoneStateMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static GDCHardwareManagementStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public GDCHardwareManagementStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GDCHardwareManagementStub(channel, callOptions); + } + }; + return GDCHardwareManagementStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static GDCHardwareManagementBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public GDCHardwareManagementBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GDCHardwareManagementBlockingStub(channel, callOptions); + } + }; + return GDCHardwareManagementBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static GDCHardwareManagementFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public GDCHardwareManagementFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GDCHardwareManagementFutureStub(channel, callOptions); + } + }; + return GDCHardwareManagementFutureStub.newStub(factory, channel); + } + + /** + * + * + *
          +   * The GDC Hardware Management service.
          +   * 
          + */ + public interface AsyncService { + + /** + * + * + *
          +     * Lists orders in a given project and location.
          +     * 
          + */ + default void listOrders( + com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListOrdersMethod(), responseObserver); + } + + /** + * + * + *
          +     * Gets details of an order.
          +     * 
          + */ + default void getOrder( + com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetOrderMethod(), responseObserver); + } + + /** + * + * + *
          +     * Creates a new order in a given project and location.
          +     * 
          + */ + default void createOrder( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateOrderMethod(), responseObserver); + } + + /** + * + * + *
          +     * Updates the parameters of an order.
          +     * 
          + */ + default void updateOrder( + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateOrderMethod(), responseObserver); + } + + /** + * + * + *
          +     * Deletes an order.
          +     * 
          + */ + default void deleteOrder( + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteOrderMethod(), responseObserver); + } + + /** + * + * + *
          +     * Submits an order.
          +     * 
          + */ + default void submitOrder( + com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSubmitOrderMethod(), responseObserver); + } + + /** + * + * + *
          +     * Lists sites in a given project and location.
          +     * 
          + */ + default void listSites( + com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSitesMethod(), responseObserver); + } + + /** + * + * + *
          +     * Gets details of a site.
          +     * 
          + */ + default void getSite( + com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSiteMethod(), responseObserver); + } + + /** + * + * + *
          +     * Creates a new site in a given project and location.
          +     * 
          + */ + default void createSite( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSiteMethod(), responseObserver); + } + + /** + * + * + *
          +     * Updates the parameters of a site.
          +     * 
          + */ + default void updateSite( + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSiteMethod(), responseObserver); + } + + /** + * + * + *
          +     * Lists hardware groups in a given order.
          +     * 
          + */ + default void listHardwareGroups( + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListHardwareGroupsMethod(), responseObserver); + } + + /** + * + * + *
          +     * Gets details of a hardware group.
          +     * 
          + */ + default void getHardwareGroup( + com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetHardwareGroupMethod(), responseObserver); + } + + /** + * + * + *
          +     * Creates a new hardware group in a given order.
          +     * 
          + */ + default void createHardwareGroup( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateHardwareGroupMethod(), responseObserver); + } + + /** + * + * + *
          +     * Updates the parameters of a hardware group.
          +     * 
          + */ + default void updateHardwareGroup( + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateHardwareGroupMethod(), responseObserver); + } + + /** + * + * + *
          +     * Deletes a hardware group.
          +     * 
          + */ + default void deleteHardwareGroup( + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteHardwareGroupMethod(), responseObserver); + } + + /** + * + * + *
          +     * Lists hardware in a given project and location.
          +     * 
          + */ + default void listHardware( + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListHardwareMethod(), responseObserver); + } + + /** + * + * + *
          +     * Gets hardware details.
          +     * 
          + */ + default void getHardware( + com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetHardwareMethod(), responseObserver); + } + + /** + * + * + *
          +     * Creates new hardware in a given project and location.
          +     * 
          + */ + default void createHardware( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateHardwareMethod(), responseObserver); + } + + /** + * + * + *
          +     * Updates hardware parameters.
          +     * 
          + */ + default void updateHardware( + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateHardwareMethod(), responseObserver); + } + + /** + * + * + *
          +     * Deletes hardware.
          +     * 
          + */ + default void deleteHardware( + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteHardwareMethod(), responseObserver); + } + + /** + * + * + *
          +     * Lists the comments on an order.
          +     * 
          + */ + default void listComments( + com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListCommentsMethod(), responseObserver); + } + + /** + * + * + *
          +     * Gets the content of a comment.
          +     * 
          + */ + default void getComment( + com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCommentMethod(), responseObserver); + } + + /** + * + * + *
          +     * Creates a new comment on an order.
          +     * 
          + */ + default void createComment( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateCommentMethod(), responseObserver); + } + + /** + * + * + *
          +     * Lists the changes made to an order.
          +     * 
          + */ + default void listChangeLogEntries( + com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListChangeLogEntriesMethod(), responseObserver); + } + + /** + * + * + *
          +     * Gets details of a change to an order.
          +     * 
          + */ + default void getChangeLogEntry( + com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetChangeLogEntryMethod(), responseObserver); + } + + /** + * + * + *
          +     * Lists SKUs for a given project and location.
          +     * 
          + */ + default void listSkus( + com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSkusMethod(), responseObserver); + } + + /** + * + * + *
          +     * Gets details of an SKU.
          +     * 
          + */ + default void getSku( + com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSkuMethod(), responseObserver); + } + + /** + * + * + *
          +     * Lists zones in a given project and location.
          +     * 
          + */ + default void listZones( + com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListZonesMethod(), responseObserver); + } + + /** + * + * + *
          +     * Gets details of a zone.
          +     * 
          + */ + default void getZone( + com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetZoneMethod(), responseObserver); + } + + /** + * + * + *
          +     * Creates a new zone in a given project and location.
          +     * 
          + */ + default void createZone( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateZoneMethod(), responseObserver); + } + + /** + * + * + *
          +     * Updates the parameters of a zone.
          +     * 
          + */ + default void updateZone( + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateZoneMethod(), responseObserver); + } + + /** + * + * + *
          +     * Deletes a zone.
          +     * 
          + */ + default void deleteZone( + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteZoneMethod(), responseObserver); + } + + /** + * + * + *
          +     * Signals the state of a zone.
          +     * 
          + */ + default void signalZoneState( + com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSignalZoneStateMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service GDCHardwareManagement. + * + *
          +   * The GDC Hardware Management service.
          +   * 
          + */ + public abstract static class GDCHardwareManagementImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return GDCHardwareManagementGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service GDCHardwareManagement. + * + *
          +   * The GDC Hardware Management service.
          +   * 
          + */ + public static final class GDCHardwareManagementStub + extends io.grpc.stub.AbstractAsyncStub { + private GDCHardwareManagementStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected GDCHardwareManagementStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GDCHardwareManagementStub(channel, callOptions); + } + + /** + * + * + *
          +     * Lists orders in a given project and location.
          +     * 
          + */ + public void listOrders( + com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListOrdersMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
          +     * Gets details of an order.
          +     * 
          + */ + public void getOrder( + com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetOrderMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
          +     * Creates a new order in a given project and location.
          +     * 
          + */ + public void createOrder( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateOrderMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Updates the parameters of an order.
          +     * 
          + */ + public void updateOrder( + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateOrderMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Deletes an order.
          +     * 
          + */ + public void deleteOrder( + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteOrderMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Submits an order.
          +     * 
          + */ + public void submitOrder( + com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSubmitOrderMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Lists sites in a given project and location.
          +     * 
          + */ + public void listSites( + com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSitesMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
          +     * Gets details of a site.
          +     * 
          + */ + public void getSite( + com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSiteMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
          +     * Creates a new site in a given project and location.
          +     * 
          + */ + public void createSite( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSiteMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
          +     * Updates the parameters of a site.
          +     * 
          + */ + public void updateSite( + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSiteMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
          +     * Lists hardware groups in a given order.
          +     * 
          + */ + public void listHardwareGroups( + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListHardwareGroupsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Gets details of a hardware group.
          +     * 
          + */ + public void getHardwareGroup( + com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetHardwareGroupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Creates a new hardware group in a given order.
          +     * 
          + */ + public void createHardwareGroup( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateHardwareGroupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Updates the parameters of a hardware group.
          +     * 
          + */ + public void updateHardwareGroup( + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateHardwareGroupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Deletes a hardware group.
          +     * 
          + */ + public void deleteHardwareGroup( + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteHardwareGroupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Lists hardware in a given project and location.
          +     * 
          + */ + public void listHardware( + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListHardwareMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Gets hardware details.
          +     * 
          + */ + public void getHardware( + com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetHardwareMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Creates new hardware in a given project and location.
          +     * 
          + */ + public void createHardware( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateHardwareMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Updates hardware parameters.
          +     * 
          + */ + public void updateHardware( + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateHardwareMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Deletes hardware.
          +     * 
          + */ + public void deleteHardware( + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteHardwareMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Lists the comments on an order.
          +     * 
          + */ + public void listComments( + com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCommentsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Gets the content of a comment.
          +     * 
          + */ + public void getComment( + com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetCommentMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
          +     * Creates a new comment on an order.
          +     * 
          + */ + public void createComment( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateCommentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Lists the changes made to an order.
          +     * 
          + */ + public void listChangeLogEntries( + com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListChangeLogEntriesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Gets details of a change to an order.
          +     * 
          + */ + public void getChangeLogEntry( + com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetChangeLogEntryMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
          +     * Lists SKUs for a given project and location.
          +     * 
          + */ + public void listSkus( + com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSkusMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
          +     * Gets details of an SKU.
          +     * 
          + */ + public void getSku( + com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSkuMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
          +     * Lists zones in a given project and location.
          +     * 
          + */ + public void listZones( + com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListZonesMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
          +     * Gets details of a zone.
          +     * 
          + */ + public void getZone( + com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetZoneMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
          +     * Creates a new zone in a given project and location.
          +     * 
          + */ + public void createZone( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateZoneMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
          +     * Updates the parameters of a zone.
          +     * 
          + */ + public void updateZone( + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateZoneMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
          +     * Deletes a zone.
          +     * 
          + */ + public void deleteZone( + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteZoneMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
          +     * Signals the state of a zone.
          +     * 
          + */ + public void signalZoneState( + com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSignalZoneStateMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service GDCHardwareManagement. + * + *
          +   * The GDC Hardware Management service.
          +   * 
          + */ + public static final class GDCHardwareManagementBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private GDCHardwareManagementBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected GDCHardwareManagementBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GDCHardwareManagementBlockingStub(channel, callOptions); + } + + /** + * + * + *
          +     * Lists orders in a given project and location.
          +     * 
          + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse listOrders( + com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListOrdersMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Gets details of an order.
          +     * 
          + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Order getOrder( + com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetOrderMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Creates a new order in a given project and location.
          +     * 
          + */ + public com.google.longrunning.Operation createOrder( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateOrderMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Updates the parameters of an order.
          +     * 
          + */ + public com.google.longrunning.Operation updateOrder( + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateOrderMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Deletes an order.
          +     * 
          + */ + public com.google.longrunning.Operation deleteOrder( + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteOrderMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Submits an order.
          +     * 
          + */ + public com.google.longrunning.Operation submitOrder( + com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSubmitOrderMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Lists sites in a given project and location.
          +     * 
          + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse listSites( + com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSitesMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Gets details of a site.
          +     * 
          + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Site getSite( + com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSiteMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Creates a new site in a given project and location.
          +     * 
          + */ + public com.google.longrunning.Operation createSite( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSiteMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Updates the parameters of a site.
          +     * 
          + */ + public com.google.longrunning.Operation updateSite( + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSiteMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Lists hardware groups in a given order.
          +     * 
          + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse + listHardwareGroups( + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListHardwareGroupsMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Gets details of a hardware group.
          +     * 
          + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup getHardwareGroup( + com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetHardwareGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Creates a new hardware group in a given order.
          +     * 
          + */ + public com.google.longrunning.Operation createHardwareGroup( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateHardwareGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Updates the parameters of a hardware group.
          +     * 
          + */ + public com.google.longrunning.Operation updateHardwareGroup( + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateHardwareGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Deletes a hardware group.
          +     * 
          + */ + public com.google.longrunning.Operation deleteHardwareGroup( + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteHardwareGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Lists hardware in a given project and location.
          +     * 
          + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse listHardware( + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListHardwareMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Gets hardware details.
          +     * 
          + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware getHardware( + com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetHardwareMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Creates new hardware in a given project and location.
          +     * 
          + */ + public com.google.longrunning.Operation createHardware( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateHardwareMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Updates hardware parameters.
          +     * 
          + */ + public com.google.longrunning.Operation updateHardware( + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateHardwareMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Deletes hardware.
          +     * 
          + */ + public com.google.longrunning.Operation deleteHardware( + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteHardwareMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Lists the comments on an order.
          +     * 
          + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse listComments( + com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCommentsMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Gets the content of a comment.
          +     * 
          + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Comment getComment( + com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCommentMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Creates a new comment on an order.
          +     * 
          + */ + public com.google.longrunning.Operation createComment( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCommentMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Lists the changes made to an order.
          +     * 
          + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse + listChangeLogEntries( + com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListChangeLogEntriesMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Gets details of a change to an order.
          +     * 
          + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry getChangeLogEntry( + com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetChangeLogEntryMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Lists SKUs for a given project and location.
          +     * 
          + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse listSkus( + com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSkusMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Gets details of an SKU.
          +     * 
          + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Sku getSku( + com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSkuMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Lists zones in a given project and location.
          +     * 
          + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse listZones( + com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListZonesMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Gets details of a zone.
          +     * 
          + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Zone getZone( + com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetZoneMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Creates a new zone in a given project and location.
          +     * 
          + */ + public com.google.longrunning.Operation createZone( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateZoneMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Updates the parameters of a zone.
          +     * 
          + */ + public com.google.longrunning.Operation updateZone( + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateZoneMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Deletes a zone.
          +     * 
          + */ + public com.google.longrunning.Operation deleteZone( + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteZoneMethod(), getCallOptions(), request); + } + + /** + * + * + *
          +     * Signals the state of a zone.
          +     * 
          + */ + public com.google.longrunning.Operation signalZoneState( + com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSignalZoneStateMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service + * GDCHardwareManagement. + * + *
          +   * The GDC Hardware Management service.
          +   * 
          + */ + public static final class GDCHardwareManagementFutureStub + extends io.grpc.stub.AbstractFutureStub { + private GDCHardwareManagementFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected GDCHardwareManagementFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GDCHardwareManagementFutureStub(channel, callOptions); + } + + /** + * + * + *
          +     * Lists orders in a given project and location.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse> + listOrders(com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListOrdersMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Gets details of an order.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gdchardwaremanagement.v1alpha.Order> + getOrder(com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetOrderMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Creates a new order in a given project and location.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture + createOrder(com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateOrderMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Updates the parameters of an order.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture + updateOrder(com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateOrderMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Deletes an order.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture + deleteOrder(com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteOrderMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Submits an order.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture + submitOrder(com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSubmitOrderMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Lists sites in a given project and location.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse> + listSites(com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSitesMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Gets details of a site.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gdchardwaremanagement.v1alpha.Site> + getSite(com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSiteMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Creates a new site in a given project and location.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture + createSite(com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSiteMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Updates the parameters of a site.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture + updateSite(com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSiteMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Lists hardware groups in a given order.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse> + listHardwareGroups( + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListHardwareGroupsMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Gets details of a hardware group.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup> + getHardwareGroup( + com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetHardwareGroupMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Creates a new hardware group in a given order.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture + createHardwareGroup( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateHardwareGroupMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Updates the parameters of a hardware group.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture + updateHardwareGroup( + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateHardwareGroupMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Deletes a hardware group.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture + deleteHardwareGroup( + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteHardwareGroupMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Lists hardware in a given project and location.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse> + listHardware(com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListHardwareMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Gets hardware details.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware> + getHardware(com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetHardwareMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Creates new hardware in a given project and location.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture + createHardware( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateHardwareMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Updates hardware parameters.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture + updateHardware( + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateHardwareMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Deletes hardware.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture + deleteHardware( + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteHardwareMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Lists the comments on an order.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse> + listComments(com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCommentsMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Gets the content of a comment.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gdchardwaremanagement.v1alpha.Comment> + getComment(com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetCommentMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Creates a new comment on an order.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture + createComment(com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateCommentMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Lists the changes made to an order.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse> + listChangeLogEntries( + com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListChangeLogEntriesMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Gets details of a change to an order.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry> + getChangeLogEntry( + com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetChangeLogEntryMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Lists SKUs for a given project and location.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse> + listSkus(com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSkusMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Gets details of an SKU.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gdchardwaremanagement.v1alpha.Sku> + getSku(com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSkuMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Lists zones in a given project and location.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse> + listZones(com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListZonesMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Gets details of a zone.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gdchardwaremanagement.v1alpha.Zone> + getZone(com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetZoneMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Creates a new zone in a given project and location.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture + createZone(com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateZoneMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Updates the parameters of a zone.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture + updateZone(com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateZoneMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Deletes a zone.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture + deleteZone(com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteZoneMethod(), getCallOptions()), request); + } + + /** + * + * + *
          +     * Signals the state of a zone.
          +     * 
          + */ + public com.google.common.util.concurrent.ListenableFuture + signalZoneState( + com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSignalZoneStateMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_ORDERS = 0; + private static final int METHODID_GET_ORDER = 1; + private static final int METHODID_CREATE_ORDER = 2; + private static final int METHODID_UPDATE_ORDER = 3; + private static final int METHODID_DELETE_ORDER = 4; + private static final int METHODID_SUBMIT_ORDER = 5; + private static final int METHODID_LIST_SITES = 6; + private static final int METHODID_GET_SITE = 7; + private static final int METHODID_CREATE_SITE = 8; + private static final int METHODID_UPDATE_SITE = 9; + private static final int METHODID_LIST_HARDWARE_GROUPS = 10; + private static final int METHODID_GET_HARDWARE_GROUP = 11; + private static final int METHODID_CREATE_HARDWARE_GROUP = 12; + private static final int METHODID_UPDATE_HARDWARE_GROUP = 13; + private static final int METHODID_DELETE_HARDWARE_GROUP = 14; + private static final int METHODID_LIST_HARDWARE = 15; + private static final int METHODID_GET_HARDWARE = 16; + private static final int METHODID_CREATE_HARDWARE = 17; + private static final int METHODID_UPDATE_HARDWARE = 18; + private static final int METHODID_DELETE_HARDWARE = 19; + private static final int METHODID_LIST_COMMENTS = 20; + private static final int METHODID_GET_COMMENT = 21; + private static final int METHODID_CREATE_COMMENT = 22; + private static final int METHODID_LIST_CHANGE_LOG_ENTRIES = 23; + private static final int METHODID_GET_CHANGE_LOG_ENTRY = 24; + private static final int METHODID_LIST_SKUS = 25; + private static final int METHODID_GET_SKU = 26; + private static final int METHODID_LIST_ZONES = 27; + private static final int METHODID_GET_ZONE = 28; + private static final int METHODID_CREATE_ZONE = 29; + private static final int METHODID_UPDATE_ZONE = 30; + private static final int METHODID_DELETE_ZONE = 31; + private static final int METHODID_SIGNAL_ZONE_STATE = 32; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_ORDERS: + serviceImpl.listOrders( + (com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse>) + responseObserver); + break; + case METHODID_GET_ORDER: + serviceImpl.getOrder( + (com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_ORDER: + serviceImpl.createOrder( + (com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_ORDER: + serviceImpl.updateOrder( + (com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_ORDER: + serviceImpl.deleteOrder( + (com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SUBMIT_ORDER: + serviceImpl.submitOrder( + (com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SITES: + serviceImpl.listSites( + (com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse>) + responseObserver); + break; + case METHODID_GET_SITE: + serviceImpl.getSite( + (com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_SITE: + serviceImpl.createSite( + (com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SITE: + serviceImpl.updateSite( + (com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_HARDWARE_GROUPS: + serviceImpl.listHardwareGroups( + (com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse>) + responseObserver); + break; + case METHODID_GET_HARDWARE_GROUP: + serviceImpl.getHardwareGroup( + (com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup>) + responseObserver); + break; + case METHODID_CREATE_HARDWARE_GROUP: + serviceImpl.createHardwareGroup( + (com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_HARDWARE_GROUP: + serviceImpl.updateHardwareGroup( + (com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_HARDWARE_GROUP: + serviceImpl.deleteHardwareGroup( + (com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_HARDWARE: + serviceImpl.listHardware( + (com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse>) + responseObserver); + break; + case METHODID_GET_HARDWARE: + serviceImpl.getHardware( + (com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_HARDWARE: + serviceImpl.createHardware( + (com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_HARDWARE: + serviceImpl.updateHardware( + (com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_HARDWARE: + serviceImpl.deleteHardware( + (com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_COMMENTS: + serviceImpl.listComments( + (com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse>) + responseObserver); + break; + case METHODID_GET_COMMENT: + serviceImpl.getComment( + (com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_COMMENT: + serviceImpl.createComment( + (com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_CHANGE_LOG_ENTRIES: + serviceImpl.listChangeLogEntries( + (com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse>) + responseObserver); + break; + case METHODID_GET_CHANGE_LOG_ENTRY: + serviceImpl.getChangeLogEntry( + (com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry>) + responseObserver); + break; + case METHODID_LIST_SKUS: + serviceImpl.listSkus( + (com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse>) + responseObserver); + break; + case METHODID_GET_SKU: + serviceImpl.getSku( + (com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_ZONES: + serviceImpl.listZones( + (com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse>) + responseObserver); + break; + case METHODID_GET_ZONE: + serviceImpl.getZone( + (com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_ZONE: + serviceImpl.createZone( + (com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_ZONE: + serviceImpl.updateZone( + (com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_ZONE: + serviceImpl.deleteZone( + (com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SIGNAL_ZONE_STATE: + serviceImpl.signalZoneState( + (com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListOrdersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse>( + service, METHODID_LIST_ORDERS))) + .addMethod( + getGetOrderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.Order>( + service, METHODID_GET_ORDER))) + .addMethod( + getCreateOrderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_ORDER))) + .addMethod( + getUpdateOrderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_ORDER))) + .addMethod( + getDeleteOrderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_ORDER))) + .addMethod( + getSubmitOrderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest, + com.google.longrunning.Operation>(service, METHODID_SUBMIT_ORDER))) + .addMethod( + getListSitesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse>( + service, METHODID_LIST_SITES))) + .addMethod( + getGetSiteMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.Site>( + service, METHODID_GET_SITE))) + .addMethod( + getCreateSiteMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_SITE))) + .addMethod( + getUpdateSiteMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_SITE))) + .addMethod( + getListHardwareGroupsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse>( + service, METHODID_LIST_HARDWARE_GROUPS))) + .addMethod( + getGetHardwareGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup>( + service, METHODID_GET_HARDWARE_GROUP))) + .addMethod( + getCreateHardwareGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_HARDWARE_GROUP))) + .addMethod( + getUpdateHardwareGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_HARDWARE_GROUP))) + .addMethod( + getDeleteHardwareGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_HARDWARE_GROUP))) + .addMethod( + getListHardwareMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse>( + service, METHODID_LIST_HARDWARE))) + .addMethod( + getGetHardwareMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware>( + service, METHODID_GET_HARDWARE))) + .addMethod( + getCreateHardwareMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_HARDWARE))) + .addMethod( + getUpdateHardwareMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_HARDWARE))) + .addMethod( + getDeleteHardwareMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_HARDWARE))) + .addMethod( + getListCommentsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse>( + service, METHODID_LIST_COMMENTS))) + .addMethod( + getGetCommentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.Comment>( + service, METHODID_GET_COMMENT))) + .addMethod( + getCreateCommentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_COMMENT))) + .addMethod( + getListChangeLogEntriesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse>( + service, METHODID_LIST_CHANGE_LOG_ENTRIES))) + .addMethod( + getGetChangeLogEntryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry>( + service, METHODID_GET_CHANGE_LOG_ENTRY))) + .addMethod( + getListSkusMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse>( + service, METHODID_LIST_SKUS))) + .addMethod( + getGetSkuMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.Sku>(service, METHODID_GET_SKU))) + .addMethod( + getListZonesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse>( + service, METHODID_LIST_ZONES))) + .addMethod( + getGetZoneMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest, + com.google.cloud.gdchardwaremanagement.v1alpha.Zone>( + service, METHODID_GET_ZONE))) + .addMethod( + getCreateZoneMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_ZONE))) + .addMethod( + getUpdateZoneMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_ZONE))) + .addMethod( + getDeleteZoneMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_ZONE))) + .addMethod( + getSignalZoneStateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest, + com.google.longrunning.Operation>(service, METHODID_SIGNAL_ZONE_STATE))) + .build(); + } + + private abstract static class GDCHardwareManagementBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + GDCHardwareManagementBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("GDCHardwareManagement"); + } + } + + private static final class GDCHardwareManagementFileDescriptorSupplier + extends GDCHardwareManagementBaseDescriptorSupplier { + GDCHardwareManagementFileDescriptorSupplier() {} + } + + private static final class GDCHardwareManagementMethodDescriptorSupplier + extends GDCHardwareManagementBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + GDCHardwareManagementMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (GDCHardwareManagementGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new GDCHardwareManagementFileDescriptorSupplier()) + .addMethod(getListOrdersMethod()) + .addMethod(getGetOrderMethod()) + .addMethod(getCreateOrderMethod()) + .addMethod(getUpdateOrderMethod()) + .addMethod(getDeleteOrderMethod()) + .addMethod(getSubmitOrderMethod()) + .addMethod(getListSitesMethod()) + .addMethod(getGetSiteMethod()) + .addMethod(getCreateSiteMethod()) + .addMethod(getUpdateSiteMethod()) + .addMethod(getListHardwareGroupsMethod()) + .addMethod(getGetHardwareGroupMethod()) + .addMethod(getCreateHardwareGroupMethod()) + .addMethod(getUpdateHardwareGroupMethod()) + .addMethod(getDeleteHardwareGroupMethod()) + .addMethod(getListHardwareMethod()) + .addMethod(getGetHardwareMethod()) + .addMethod(getCreateHardwareMethod()) + .addMethod(getUpdateHardwareMethod()) + .addMethod(getDeleteHardwareMethod()) + .addMethod(getListCommentsMethod()) + .addMethod(getGetCommentMethod()) + .addMethod(getCreateCommentMethod()) + .addMethod(getListChangeLogEntriesMethod()) + .addMethod(getGetChangeLogEntryMethod()) + .addMethod(getListSkusMethod()) + .addMethod(getGetSkuMethod()) + .addMethod(getListZonesMethod()) + .addMethod(getGetZoneMethod()) + .addMethod(getCreateZoneMethod()) + .addMethod(getUpdateZoneMethod()) + .addMethod(getDeleteZoneMethod()) + .addMethod(getSignalZoneStateMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-gdchardwaremanagement/owlbot.py b/java-gdchardwaremanagement/owlbot.py new file mode 100644 index 000000000000..2ba11e6bba67 --- /dev/null +++ b/java-gdchardwaremanagement/owlbot.py @@ -0,0 +1,36 @@ +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import synthtool as s +from synthtool.languages import java + + +for library in s.get_staging_dirs(): + # put any special-case replacements here + s.move(library) + +s.remove_staging_dirs() +java.common_templates(monorepo=True, excludes=[ + ".github/*", + ".kokoro/*", + "samples/*", + "CODE_OF_CONDUCT.md", + "CONTRIBUTING.md", + "LICENSE", + "SECURITY.md", + "java.header", + "license-checks.xml", + "renovate.json", + ".gitignore" +]) \ No newline at end of file diff --git a/java-gdchardwaremanagement/pom.xml b/java-gdchardwaremanagement/pom.xml new file mode 100644 index 000000000000..6e0f336a1e1d --- /dev/null +++ b/java-gdchardwaremanagement/pom.xml @@ -0,0 +1,55 @@ + + + 4.0.0 + com.google.cloud + google-cloud-gdchardwaremanagement-parent + pom + 0.0.1-SNAPSHOT + Google GDC Hardware Management API Parent + + Java idiomatic client for Google Cloud Platform services. + + + + com.google.cloud + google-cloud-jar-parent + 1.40.0-SNAPSHOT + ../google-cloud-jar-parent/pom.xml + + + + UTF-8 + UTF-8 + github + google-cloud-gdchardwaremanagement-parent + + + + + + com.google.cloud + google-cloud-gdchardwaremanagement + 0.0.1-SNAPSHOT + + + com.google.api.grpc + grpc-google-cloud-gdchardwaremanagement-v1alpha + 0.0.1-SNAPSHOT + + + com.google.api.grpc + proto-google-cloud-gdchardwaremanagement-v1alpha + 0.0.1-SNAPSHOT + + + + + + + google-cloud-gdchardwaremanagement + grpc-google-cloud-gdchardwaremanagement-v1alpha + proto-google-cloud-gdchardwaremanagement-v1alpha + google-cloud-gdchardwaremanagement-bom + + + diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/clirr-ignored-differences.xml b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/clirr-ignored-differences.xml new file mode 100644 index 000000000000..ac5c9b57bf71 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/clirr-ignored-differences.xml @@ -0,0 +1,19 @@ + + + + + 7012 + com/google/cloud/gdchardwaremanagement/v1alpha/*OrBuilder + * get*(*) + + + 7012 + com/google/cloud/gdchardwaremanagement/v1alpha/*OrBuilder + boolean contains*(*) + + + 7012 + com/google/cloud/gdchardwaremanagement/v1alpha/*OrBuilder + boolean has*(*) + + diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/pom.xml b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/pom.xml new file mode 100644 index 000000000000..aabcfdae325b --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/pom.xml @@ -0,0 +1,37 @@ + + 4.0.0 + com.google.api.grpc + proto-google-cloud-gdchardwaremanagement-v1alpha + 0.0.1-SNAPSHOT + proto-google-cloud-gdchardwaremanagement-v1alpha + Proto library for google-cloud-gdchardwaremanagement + + com.google.cloud + google-cloud-gdchardwaremanagement-parent + 0.0.1-SNAPSHOT + + + + com.google.protobuf + protobuf-java + + + com.google.api.grpc + proto-google-common-protos + + + com.google.api.grpc + proto-google-iam-v1 + + + com.google.api + api-common + + + com.google.guava + guava + + + diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ChangeLogEntry.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ChangeLogEntry.java new file mode 100644 index 000000000000..30cc9de35347 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ChangeLogEntry.java @@ -0,0 +1,1479 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * A log entry of a change made to an order.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry} + */ +public final class ChangeLogEntry extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry) + ChangeLogEntryOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChangeLogEntry.newBuilder() to construct. + private ChangeLogEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ChangeLogEntry() { + name_ = ""; + log_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ChangeLogEntry(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ChangeLogEntry_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 3: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ChangeLogEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry.class, + com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
          +   * Identifier. Name of this change log entry.
          +   * Format:
          +   * `projects/{project}/locations/{location}/orders/{order}/changeLogEntries/{change_log_entry}`
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
          +   * Identifier. Name of this change log entry.
          +   * Format:
          +   * `projects/{project}/locations/{location}/orders/{order}/changeLogEntries/{change_log_entry}`
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
          +   * Output only. Time when this change log entry was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
          +   * Output only. Time when this change log entry was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
          +   * Output only. Time when this change log entry was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int LABELS_FIELD_NUMBER = 3; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ChangeLogEntry_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
          +   * Optional. Labels associated with this change log entry as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
          +   * Optional. Labels associated with this change log entry as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
          +   * Optional. Labels associated with this change log entry as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
          +   * Optional. Labels associated with this change log entry as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int LOG_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object log_ = ""; + /** + * + * + *
          +   * Output only. Content of this log entry.
          +   * 
          + * + * string log = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The log. + */ + @java.lang.Override + public java.lang.String getLog() { + java.lang.Object ref = log_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + log_ = s; + return s; + } + } + /** + * + * + *
          +   * Output only. Content of this log entry.
          +   * 
          + * + * string log = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for log. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLogBytes() { + java.lang.Object ref = log_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + log_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getCreateTime()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 3); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(log_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, log_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, labels__); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(log_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, log_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry other = + (com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getLog().equals(other.getLog())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + LOG_FIELD_NUMBER; + hash = (53 * hash) + getLog().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * A log entry of a change made to an order.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry) + com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ChangeLogEntry_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 3: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 3: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ChangeLogEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry.class, + com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry.Builder.class); + } + + // Construct using com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + log_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ChangeLogEntry_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry build() { + com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry result = + new com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.log_ = log_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry) { + return mergeFrom((com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000004; + if (!other.getLog().isEmpty()) { + log_ = other.log_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + log_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
          +     * Identifier. Name of this change log entry.
          +     * Format:
          +     * `projects/{project}/locations/{location}/orders/{order}/changeLogEntries/{change_log_entry}`
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Identifier. Name of this change log entry.
          +     * Format:
          +     * `projects/{project}/locations/{location}/orders/{order}/changeLogEntries/{change_log_entry}`
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Identifier. Name of this change log entry.
          +     * Format:
          +     * `projects/{project}/locations/{location}/orders/{order}/changeLogEntries/{change_log_entry}`
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Identifier. Name of this change log entry.
          +     * Format:
          +     * `projects/{project}/locations/{location}/orders/{order}/changeLogEntries/{change_log_entry}`
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * Identifier. Name of this change log entry.
          +     * Format:
          +     * `projects/{project}/locations/{location}/orders/{order}/changeLogEntries/{change_log_entry}`
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
          +     * Output only. Time when this change log entry was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
          +     * Output only. Time when this change log entry was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Output only. Time when this change log entry was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Time when this change log entry was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Time when this change log entry was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Output only. Time when this change log entry was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Time when this change log entry was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Output only. Time when this change log entry was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
          +     * Output only. Time when this change log entry was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000004; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
          +     * Optional. Labels associated with this change log entry as key value pairs.
          +     * For more information about labels, see [Create and manage
          +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +     * 
          + * + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
          +     * Optional. Labels associated with this change log entry as key value pairs.
          +     * For more information about labels, see [Create and manage
          +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +     * 
          + * + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
          +     * Optional. Labels associated with this change log entry as key value pairs.
          +     * For more information about labels, see [Create and manage
          +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +     * 
          + * + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
          +     * Optional. Labels associated with this change log entry as key value pairs.
          +     * For more information about labels, see [Create and manage
          +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +     * 
          + * + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000004); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + /** + * + * + *
          +     * Optional. Labels associated with this change log entry as key value pairs.
          +     * For more information about labels, see [Create and manage
          +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +     * 
          + * + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000004; + return internalGetMutableLabels().getMutableMap(); + } + /** + * + * + *
          +     * Optional. Labels associated with this change log entry as key value pairs.
          +     * For more information about labels, see [Create and manage
          +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +     * 
          + * + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000004; + return this; + } + /** + * + * + *
          +     * Optional. Labels associated with this change log entry as key value pairs.
          +     * For more information about labels, see [Create and manage
          +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +     * 
          + * + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000004; + return this; + } + + private java.lang.Object log_ = ""; + /** + * + * + *
          +     * Output only. Content of this log entry.
          +     * 
          + * + * string log = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The log. + */ + public java.lang.String getLog() { + java.lang.Object ref = log_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + log_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Output only. Content of this log entry.
          +     * 
          + * + * string log = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for log. + */ + public com.google.protobuf.ByteString getLogBytes() { + java.lang.Object ref = log_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + log_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Output only. Content of this log entry.
          +     * 
          + * + * string log = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The log to set. + * @return This builder for chaining. + */ + public Builder setLog(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + log_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Content of this log entry.
          +     * 
          + * + * string log = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearLog() { + log_ = getDefaultInstance().getLog(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Content of this log entry.
          +     * 
          + * + * string log = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for log to set. + * @return This builder for chaining. + */ + public Builder setLogBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + log_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChangeLogEntry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ChangeLogEntryName.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ChangeLogEntryName.java new file mode 100644 index 000000000000..a2e5668b55ce --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ChangeLogEntryName.java @@ -0,0 +1,269 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class ChangeLogEntryName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_ORDER_CHANGE_LOG_ENTRY = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/orders/{order}/changeLogEntries/{change_log_entry}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String order; + private final String changeLogEntry; + + @Deprecated + protected ChangeLogEntryName() { + project = null; + location = null; + order = null; + changeLogEntry = null; + } + + private ChangeLogEntryName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + order = Preconditions.checkNotNull(builder.getOrder()); + changeLogEntry = Preconditions.checkNotNull(builder.getChangeLogEntry()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getOrder() { + return order; + } + + public String getChangeLogEntry() { + return changeLogEntry; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ChangeLogEntryName of( + String project, String location, String order, String changeLogEntry) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setOrder(order) + .setChangeLogEntry(changeLogEntry) + .build(); + } + + public static String format( + String project, String location, String order, String changeLogEntry) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setOrder(order) + .setChangeLogEntry(changeLogEntry) + .build() + .toString(); + } + + public static ChangeLogEntryName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_ORDER_CHANGE_LOG_ENTRY.validatedMatch( + formattedString, "ChangeLogEntryName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("order"), + matchMap.get("change_log_entry")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (ChangeLogEntryName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_ORDER_CHANGE_LOG_ENTRY.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (order != null) { + fieldMapBuilder.put("order", order); + } + if (changeLogEntry != null) { + fieldMapBuilder.put("change_log_entry", changeLogEntry); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_ORDER_CHANGE_LOG_ENTRY.instantiate( + "project", + project, + "location", + location, + "order", + order, + "change_log_entry", + changeLogEntry); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ChangeLogEntryName that = ((ChangeLogEntryName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.order, that.order) + && Objects.equals(this.changeLogEntry, that.changeLogEntry); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(order); + h *= 1000003; + h ^= Objects.hashCode(changeLogEntry); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/orders/{order}/changeLogEntries/{change_log_entry}. + */ + public static class Builder { + private String project; + private String location; + private String order; + private String changeLogEntry; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getOrder() { + return order; + } + + public String getChangeLogEntry() { + return changeLogEntry; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setOrder(String order) { + this.order = order; + return this; + } + + public Builder setChangeLogEntry(String changeLogEntry) { + this.changeLogEntry = changeLogEntry; + return this; + } + + private Builder(ChangeLogEntryName changeLogEntryName) { + this.project = changeLogEntryName.project; + this.location = changeLogEntryName.location; + this.order = changeLogEntryName.order; + this.changeLogEntry = changeLogEntryName.changeLogEntry; + } + + public ChangeLogEntryName build() { + return new ChangeLogEntryName(this); + } + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ChangeLogEntryOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ChangeLogEntryOrBuilder.java new file mode 100644 index 000000000000..32d0b4dd1eb0 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ChangeLogEntryOrBuilder.java @@ -0,0 +1,186 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface ChangeLogEntryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Identifier. Name of this change log entry.
          +   * Format:
          +   * `projects/{project}/locations/{location}/orders/{order}/changeLogEntries/{change_log_entry}`
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
          +   * Identifier. Name of this change log entry.
          +   * Format:
          +   * `projects/{project}/locations/{location}/orders/{order}/changeLogEntries/{change_log_entry}`
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
          +   * Output only. Time when this change log entry was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
          +   * Output only. Time when this change log entry was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
          +   * Output only. Time when this change log entry was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
          +   * Optional. Labels associated with this change log entry as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + /** + * + * + *
          +   * Optional. Labels associated with this change log entry as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + /** + * + * + *
          +   * Optional. Labels associated with this change log entry as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
          +   * Optional. Labels associated with this change log entry as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
          +   * Optional. Labels associated with this change log entry as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
          +   * Output only. Content of this log entry.
          +   * 
          + * + * string log = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The log. + */ + java.lang.String getLog(); + /** + * + * + *
          +   * Output only. Content of this log entry.
          +   * 
          + * + * string log = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for log. + */ + com.google.protobuf.ByteString getLogBytes(); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Comment.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Comment.java new file mode 100644 index 000000000000..faf5ff8b1954 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Comment.java @@ -0,0 +1,1671 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * A comment on an order.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.Comment} + */ +public final class Comment extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.Comment) + CommentOrBuilder { + private static final long serialVersionUID = 0L; + // Use Comment.newBuilder() to construct. + private Comment(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Comment() { + name_ = ""; + author_ = ""; + text_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Comment(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Comment_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 3: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Comment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.Comment.class, + com.google.cloud.gdchardwaremanagement.v1alpha.Comment.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
          +   * Identifier. Name of this comment.
          +   * Format:
          +   * `projects/{project}/locations/{location}/orders/{order}/comments/{comment}`
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
          +   * Identifier. Name of this comment.
          +   * Format:
          +   * `projects/{project}/locations/{location}/orders/{order}/comments/{comment}`
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
          +   * Output only. Time when this comment was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
          +   * Output only. Time when this comment was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
          +   * Output only. Time when this comment was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int LABELS_FIELD_NUMBER = 3; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Comment_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
          +   * Optional. Labels associated with this comment as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
          +   * Optional. Labels associated with this comment as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
          +   * Optional. Labels associated with this comment as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
          +   * Optional. Labels associated with this comment as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int AUTHOR_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object author_ = ""; + /** + * + * + *
          +   * Output only. Username of the author of this comment. This is auto-populated
          +   * from the credentials used during creation of the comment.
          +   * 
          + * + * string author = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The author. + */ + @java.lang.Override + public java.lang.String getAuthor() { + java.lang.Object ref = author_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + author_ = s; + return s; + } + } + /** + * + * + *
          +   * Output only. Username of the author of this comment. This is auto-populated
          +   * from the credentials used during creation of the comment.
          +   * 
          + * + * string author = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for author. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAuthorBytes() { + java.lang.Object ref = author_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + author_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TEXT_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object text_ = ""; + /** + * + * + *
          +   * Required. Text of this comment. The length of text must be <= 1000
          +   * characters.
          +   * 
          + * + * string text = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The text. + */ + @java.lang.Override + public java.lang.String getText() { + java.lang.Object ref = text_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + text_ = s; + return s; + } + } + /** + * + * + *
          +   * Required. Text of this comment. The length of text must be <= 1000
          +   * characters.
          +   * 
          + * + * string text = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for text. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = text_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + text_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getCreateTime()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 3); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(author_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, author_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, text_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, labels__); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(author_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, author_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, text_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.Comment)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.Comment other = + (com.google.cloud.gdchardwaremanagement.v1alpha.Comment) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getAuthor().equals(other.getAuthor())) return false; + if (!getText().equals(other.getText())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + AUTHOR_FIELD_NUMBER; + hash = (53 * hash) + getAuthor().hashCode(); + hash = (37 * hash) + TEXT_FIELD_NUMBER; + hash = (53 * hash) + getText().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Comment parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Comment parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Comment parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Comment parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Comment parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Comment parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Comment parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Comment parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Comment parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Comment parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Comment parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Comment parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.Comment prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * A comment on an order.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.Comment} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.Comment) + com.google.cloud.gdchardwaremanagement.v1alpha.CommentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Comment_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 3: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 3: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Comment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.Comment.class, + com.google.cloud.gdchardwaremanagement.v1alpha.Comment.Builder.class); + } + + // Construct using com.google.cloud.gdchardwaremanagement.v1alpha.Comment.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + author_ = ""; + text_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Comment_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Comment getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.Comment.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Comment build() { + com.google.cloud.gdchardwaremanagement.v1alpha.Comment result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Comment buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.Comment result = + new com.google.cloud.gdchardwaremanagement.v1alpha.Comment(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gdchardwaremanagement.v1alpha.Comment result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.author_ = author_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.text_ = text_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.Comment) { + return mergeFrom((com.google.cloud.gdchardwaremanagement.v1alpha.Comment) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gdchardwaremanagement.v1alpha.Comment other) { + if (other == com.google.cloud.gdchardwaremanagement.v1alpha.Comment.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000004; + if (!other.getAuthor().isEmpty()) { + author_ = other.author_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getText().isEmpty()) { + text_ = other.text_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + author_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + text_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
          +     * Identifier. Name of this comment.
          +     * Format:
          +     * `projects/{project}/locations/{location}/orders/{order}/comments/{comment}`
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Identifier. Name of this comment.
          +     * Format:
          +     * `projects/{project}/locations/{location}/orders/{order}/comments/{comment}`
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Identifier. Name of this comment.
          +     * Format:
          +     * `projects/{project}/locations/{location}/orders/{order}/comments/{comment}`
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Identifier. Name of this comment.
          +     * Format:
          +     * `projects/{project}/locations/{location}/orders/{order}/comments/{comment}`
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * Identifier. Name of this comment.
          +     * Format:
          +     * `projects/{project}/locations/{location}/orders/{order}/comments/{comment}`
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
          +     * Output only. Time when this comment was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
          +     * Output only. Time when this comment was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Output only. Time when this comment was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Time when this comment was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Time when this comment was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Output only. Time when this comment was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Time when this comment was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Output only. Time when this comment was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
          +     * Output only. Time when this comment was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000004; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
          +     * Optional. Labels associated with this comment as key value pairs.
          +     * For more information about labels, see [Create and manage
          +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +     * 
          + * + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
          +     * Optional. Labels associated with this comment as key value pairs.
          +     * For more information about labels, see [Create and manage
          +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +     * 
          + * + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
          +     * Optional. Labels associated with this comment as key value pairs.
          +     * For more information about labels, see [Create and manage
          +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +     * 
          + * + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
          +     * Optional. Labels associated with this comment as key value pairs.
          +     * For more information about labels, see [Create and manage
          +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +     * 
          + * + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000004); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + /** + * + * + *
          +     * Optional. Labels associated with this comment as key value pairs.
          +     * For more information about labels, see [Create and manage
          +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +     * 
          + * + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000004; + return internalGetMutableLabels().getMutableMap(); + } + /** + * + * + *
          +     * Optional. Labels associated with this comment as key value pairs.
          +     * For more information about labels, see [Create and manage
          +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +     * 
          + * + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000004; + return this; + } + /** + * + * + *
          +     * Optional. Labels associated with this comment as key value pairs.
          +     * For more information about labels, see [Create and manage
          +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +     * 
          + * + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000004; + return this; + } + + private java.lang.Object author_ = ""; + /** + * + * + *
          +     * Output only. Username of the author of this comment. This is auto-populated
          +     * from the credentials used during creation of the comment.
          +     * 
          + * + * string author = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The author. + */ + public java.lang.String getAuthor() { + java.lang.Object ref = author_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + author_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Output only. Username of the author of this comment. This is auto-populated
          +     * from the credentials used during creation of the comment.
          +     * 
          + * + * string author = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for author. + */ + public com.google.protobuf.ByteString getAuthorBytes() { + java.lang.Object ref = author_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + author_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Output only. Username of the author of this comment. This is auto-populated
          +     * from the credentials used during creation of the comment.
          +     * 
          + * + * string author = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The author to set. + * @return This builder for chaining. + */ + public Builder setAuthor(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + author_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Username of the author of this comment. This is auto-populated
          +     * from the credentials used during creation of the comment.
          +     * 
          + * + * string author = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearAuthor() { + author_ = getDefaultInstance().getAuthor(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Username of the author of this comment. This is auto-populated
          +     * from the credentials used during creation of the comment.
          +     * 
          + * + * string author = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for author to set. + * @return This builder for chaining. + */ + public Builder setAuthorBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + author_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object text_ = ""; + /** + * + * + *
          +     * Required. Text of this comment. The length of text must be <= 1000
          +     * characters.
          +     * 
          + * + * string text = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The text. + */ + public java.lang.String getText() { + java.lang.Object ref = text_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + text_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Required. Text of this comment. The length of text must be <= 1000
          +     * characters.
          +     * 
          + * + * string text = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for text. + */ + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = text_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + text_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Required. Text of this comment. The length of text must be <= 1000
          +     * characters.
          +     * 
          + * + * string text = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The text to set. + * @return This builder for chaining. + */ + public Builder setText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + text_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Text of this comment. The length of text must be <= 1000
          +     * characters.
          +     * 
          + * + * string text = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearText() { + text_ = getDefaultInstance().getText(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Text of this comment. The length of text must be <= 1000
          +     * characters.
          +     * 
          + * + * string text = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for text to set. + * @return This builder for chaining. + */ + public Builder setTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + text_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.Comment) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.Comment) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.Comment DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.Comment(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Comment getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Comment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Comment getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CommentName.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CommentName.java new file mode 100644 index 000000000000..3d306c3535de --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CommentName.java @@ -0,0 +1,257 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class CommentName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_ORDER_COMMENT = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/orders/{order}/comments/{comment}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String order; + private final String comment; + + @Deprecated + protected CommentName() { + project = null; + location = null; + order = null; + comment = null; + } + + private CommentName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + order = Preconditions.checkNotNull(builder.getOrder()); + comment = Preconditions.checkNotNull(builder.getComment()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getOrder() { + return order; + } + + public String getComment() { + return comment; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static CommentName of(String project, String location, String order, String comment) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setOrder(order) + .setComment(comment) + .build(); + } + + public static String format(String project, String location, String order, String comment) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setOrder(order) + .setComment(comment) + .build() + .toString(); + } + + public static CommentName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_ORDER_COMMENT.validatedMatch( + formattedString, "CommentName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("order"), + matchMap.get("comment")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (CommentName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_ORDER_COMMENT.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (order != null) { + fieldMapBuilder.put("order", order); + } + if (comment != null) { + fieldMapBuilder.put("comment", comment); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_ORDER_COMMENT.instantiate( + "project", project, "location", location, "order", order, "comment", comment); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + CommentName that = ((CommentName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.order, that.order) + && Objects.equals(this.comment, that.comment); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(order); + h *= 1000003; + h ^= Objects.hashCode(comment); + return h; + } + + /** Builder for projects/{project}/locations/{location}/orders/{order}/comments/{comment}. */ + public static class Builder { + private String project; + private String location; + private String order; + private String comment; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getOrder() { + return order; + } + + public String getComment() { + return comment; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setOrder(String order) { + this.order = order; + return this; + } + + public Builder setComment(String comment) { + this.comment = comment; + return this; + } + + private Builder(CommentName commentName) { + this.project = commentName.project; + this.location = commentName.location; + this.order = commentName.order; + this.comment = commentName.comment; + } + + public CommentName build() { + return new CommentName(this); + } + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CommentOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CommentOrBuilder.java new file mode 100644 index 000000000000..c1ed32f30319 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CommentOrBuilder.java @@ -0,0 +1,215 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface CommentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.Comment) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Identifier. Name of this comment.
          +   * Format:
          +   * `projects/{project}/locations/{location}/orders/{order}/comments/{comment}`
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
          +   * Identifier. Name of this comment.
          +   * Format:
          +   * `projects/{project}/locations/{location}/orders/{order}/comments/{comment}`
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
          +   * Output only. Time when this comment was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
          +   * Output only. Time when this comment was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
          +   * Output only. Time when this comment was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
          +   * Optional. Labels associated with this comment as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + /** + * + * + *
          +   * Optional. Labels associated with this comment as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + /** + * + * + *
          +   * Optional. Labels associated with this comment as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
          +   * Optional. Labels associated with this comment as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
          +   * Optional. Labels associated with this comment as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
          +   * Output only. Username of the author of this comment. This is auto-populated
          +   * from the credentials used during creation of the comment.
          +   * 
          + * + * string author = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The author. + */ + java.lang.String getAuthor(); + /** + * + * + *
          +   * Output only. Username of the author of this comment. This is auto-populated
          +   * from the credentials used during creation of the comment.
          +   * 
          + * + * string author = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for author. + */ + com.google.protobuf.ByteString getAuthorBytes(); + + /** + * + * + *
          +   * Required. Text of this comment. The length of text must be <= 1000
          +   * characters.
          +   * 
          + * + * string text = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The text. + */ + java.lang.String getText(); + /** + * + * + *
          +   * Required. Text of this comment. The length of text must be <= 1000
          +   * characters.
          +   * 
          + * + * string text = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for text. + */ + com.google.protobuf.ByteString getTextBytes(); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Contact.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Contact.java new file mode 100644 index 000000000000..5b15ac107abf --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Contact.java @@ -0,0 +1,2031 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * Contact details of a point of contact.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.Contact} + */ +public final class Contact extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.Contact) + ContactOrBuilder { + private static final long serialVersionUID = 0L; + // Use Contact.newBuilder() to construct. + private Contact(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Contact() { + givenName_ = ""; + familyName_ = ""; + email_ = ""; + phone_ = ""; + reachableTimes_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Contact(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Contact_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Contact_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.Contact.class, + com.google.cloud.gdchardwaremanagement.v1alpha.Contact.Builder.class); + } + + private int bitField0_; + public static final int GIVEN_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object givenName_ = ""; + /** + * + * + *
          +   * Required. Given name of the contact.
          +   * 
          + * + * string given_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The givenName. + */ + @java.lang.Override + public java.lang.String getGivenName() { + java.lang.Object ref = givenName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + givenName_ = s; + return s; + } + } + /** + * + * + *
          +   * Required. Given name of the contact.
          +   * 
          + * + * string given_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for givenName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGivenNameBytes() { + java.lang.Object ref = givenName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + givenName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FAMILY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object familyName_ = ""; + /** + * + * + *
          +   * Optional. Family name of the contact.
          +   * 
          + * + * string family_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The familyName. + */ + @java.lang.Override + public java.lang.String getFamilyName() { + java.lang.Object ref = familyName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + familyName_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. Family name of the contact.
          +   * 
          + * + * string family_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for familyName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFamilyNameBytes() { + java.lang.Object ref = familyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + familyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EMAIL_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object email_ = ""; + /** + * + * + *
          +   * Required. Email of the contact.
          +   * 
          + * + * string email = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The email. + */ + @java.lang.Override + public java.lang.String getEmail() { + java.lang.Object ref = email_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + email_ = s; + return s; + } + } + /** + * + * + *
          +   * Required. Email of the contact.
          +   * 
          + * + * string email = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for email. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEmailBytes() { + java.lang.Object ref = email_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + email_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PHONE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object phone_ = ""; + /** + * + * + *
          +   * Required. Phone number of the contact.
          +   * 
          + * + * string phone = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The phone. + */ + @java.lang.Override + public java.lang.String getPhone() { + java.lang.Object ref = phone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + phone_ = s; + return s; + } + } + /** + * + * + *
          +   * Required. Phone number of the contact.
          +   * 
          + * + * string phone = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for phone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPhoneBytes() { + java.lang.Object ref = phone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + phone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TIME_ZONE_FIELD_NUMBER = 5; + private com.google.type.TimeZone timeZone_; + /** + * + * + *
          +   * Optional. Time zone of the contact.
          +   * 
          + * + * .google.type.TimeZone time_zone = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the timeZone field is set. + */ + @java.lang.Override + public boolean hasTimeZone() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
          +   * Optional. Time zone of the contact.
          +   * 
          + * + * .google.type.TimeZone time_zone = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The timeZone. + */ + @java.lang.Override + public com.google.type.TimeZone getTimeZone() { + return timeZone_ == null ? com.google.type.TimeZone.getDefaultInstance() : timeZone_; + } + /** + * + * + *
          +   * Optional. Time zone of the contact.
          +   * 
          + * + * .google.type.TimeZone time_zone = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.type.TimeZoneOrBuilder getTimeZoneOrBuilder() { + return timeZone_ == null ? com.google.type.TimeZone.getDefaultInstance() : timeZone_; + } + + public static final int REACHABLE_TIMES_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private java.util.List reachableTimes_; + /** + * + * + *
          +   * Optional. The time periods when the contact is reachable.
          +   * If this field is empty, the contact is reachable at all times.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getReachableTimesList() { + return reachableTimes_; + } + /** + * + * + *
          +   * Optional. The time periods when the contact is reachable.
          +   * If this field is empty, the contact is reachable at all times.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriodOrBuilder> + getReachableTimesOrBuilderList() { + return reachableTimes_; + } + /** + * + * + *
          +   * Optional. The time periods when the contact is reachable.
          +   * If this field is empty, the contact is reachable at all times.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getReachableTimesCount() { + return reachableTimes_.size(); + } + /** + * + * + *
          +   * Optional. The time periods when the contact is reachable.
          +   * If this field is empty, the contact is reachable at all times.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod getReachableTimes(int index) { + return reachableTimes_.get(index); + } + /** + * + * + *
          +   * Optional. The time periods when the contact is reachable.
          +   * If this field is empty, the contact is reachable at all times.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriodOrBuilder + getReachableTimesOrBuilder(int index) { + return reachableTimes_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(givenName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, givenName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(familyName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, familyName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, email_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(phone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, phone_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getTimeZone()); + } + for (int i = 0; i < reachableTimes_.size(); i++) { + output.writeMessage(6, reachableTimes_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(givenName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, givenName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(familyName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, familyName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, email_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(phone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, phone_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getTimeZone()); + } + for (int i = 0; i < reachableTimes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, reachableTimes_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.Contact)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.Contact other = + (com.google.cloud.gdchardwaremanagement.v1alpha.Contact) obj; + + if (!getGivenName().equals(other.getGivenName())) return false; + if (!getFamilyName().equals(other.getFamilyName())) return false; + if (!getEmail().equals(other.getEmail())) return false; + if (!getPhone().equals(other.getPhone())) return false; + if (hasTimeZone() != other.hasTimeZone()) return false; + if (hasTimeZone()) { + if (!getTimeZone().equals(other.getTimeZone())) return false; + } + if (!getReachableTimesList().equals(other.getReachableTimesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + GIVEN_NAME_FIELD_NUMBER; + hash = (53 * hash) + getGivenName().hashCode(); + hash = (37 * hash) + FAMILY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getFamilyName().hashCode(); + hash = (37 * hash) + EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getEmail().hashCode(); + hash = (37 * hash) + PHONE_FIELD_NUMBER; + hash = (53 * hash) + getPhone().hashCode(); + if (hasTimeZone()) { + hash = (37 * hash) + TIME_ZONE_FIELD_NUMBER; + hash = (53 * hash) + getTimeZone().hashCode(); + } + if (getReachableTimesCount() > 0) { + hash = (37 * hash) + REACHABLE_TIMES_FIELD_NUMBER; + hash = (53 * hash) + getReachableTimesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Contact parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Contact parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Contact parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Contact parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Contact parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Contact parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Contact parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Contact parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Contact parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Contact parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Contact parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Contact parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.Contact prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * Contact details of a point of contact.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.Contact} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.Contact) + com.google.cloud.gdchardwaremanagement.v1alpha.ContactOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Contact_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Contact_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.Contact.class, + com.google.cloud.gdchardwaremanagement.v1alpha.Contact.Builder.class); + } + + // Construct using com.google.cloud.gdchardwaremanagement.v1alpha.Contact.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTimeZoneFieldBuilder(); + getReachableTimesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + givenName_ = ""; + familyName_ = ""; + email_ = ""; + phone_ = ""; + timeZone_ = null; + if (timeZoneBuilder_ != null) { + timeZoneBuilder_.dispose(); + timeZoneBuilder_ = null; + } + if (reachableTimesBuilder_ == null) { + reachableTimes_ = java.util.Collections.emptyList(); + } else { + reachableTimes_ = null; + reachableTimesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Contact_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Contact getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.Contact.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Contact build() { + com.google.cloud.gdchardwaremanagement.v1alpha.Contact result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Contact buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.Contact result = + new com.google.cloud.gdchardwaremanagement.v1alpha.Contact(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.gdchardwaremanagement.v1alpha.Contact result) { + if (reachableTimesBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + reachableTimes_ = java.util.Collections.unmodifiableList(reachableTimes_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.reachableTimes_ = reachableTimes_; + } else { + result.reachableTimes_ = reachableTimesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.gdchardwaremanagement.v1alpha.Contact result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.givenName_ = givenName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.familyName_ = familyName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.email_ = email_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.phone_ = phone_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.timeZone_ = timeZoneBuilder_ == null ? timeZone_ : timeZoneBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.Contact) { + return mergeFrom((com.google.cloud.gdchardwaremanagement.v1alpha.Contact) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gdchardwaremanagement.v1alpha.Contact other) { + if (other == com.google.cloud.gdchardwaremanagement.v1alpha.Contact.getDefaultInstance()) + return this; + if (!other.getGivenName().isEmpty()) { + givenName_ = other.givenName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getFamilyName().isEmpty()) { + familyName_ = other.familyName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getEmail().isEmpty()) { + email_ = other.email_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getPhone().isEmpty()) { + phone_ = other.phone_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasTimeZone()) { + mergeTimeZone(other.getTimeZone()); + } + if (reachableTimesBuilder_ == null) { + if (!other.reachableTimes_.isEmpty()) { + if (reachableTimes_.isEmpty()) { + reachableTimes_ = other.reachableTimes_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureReachableTimesIsMutable(); + reachableTimes_.addAll(other.reachableTimes_); + } + onChanged(); + } + } else { + if (!other.reachableTimes_.isEmpty()) { + if (reachableTimesBuilder_.isEmpty()) { + reachableTimesBuilder_.dispose(); + reachableTimesBuilder_ = null; + reachableTimes_ = other.reachableTimes_; + bitField0_ = (bitField0_ & ~0x00000020); + reachableTimesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getReachableTimesFieldBuilder() + : null; + } else { + reachableTimesBuilder_.addAllMessages(other.reachableTimes_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + givenName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + familyName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + email_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + phone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage(getTimeZoneFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod m = + input.readMessage( + com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod.parser(), + extensionRegistry); + if (reachableTimesBuilder_ == null) { + ensureReachableTimesIsMutable(); + reachableTimes_.add(m); + } else { + reachableTimesBuilder_.addMessage(m); + } + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object givenName_ = ""; + /** + * + * + *
          +     * Required. Given name of the contact.
          +     * 
          + * + * string given_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The givenName. + */ + public java.lang.String getGivenName() { + java.lang.Object ref = givenName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + givenName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Required. Given name of the contact.
          +     * 
          + * + * string given_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for givenName. + */ + public com.google.protobuf.ByteString getGivenNameBytes() { + java.lang.Object ref = givenName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + givenName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Required. Given name of the contact.
          +     * 
          + * + * string given_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The givenName to set. + * @return This builder for chaining. + */ + public Builder setGivenName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + givenName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Given name of the contact.
          +     * 
          + * + * string given_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearGivenName() { + givenName_ = getDefaultInstance().getGivenName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Given name of the contact.
          +     * 
          + * + * string given_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for givenName to set. + * @return This builder for chaining. + */ + public Builder setGivenNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + givenName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object familyName_ = ""; + /** + * + * + *
          +     * Optional. Family name of the contact.
          +     * 
          + * + * string family_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The familyName. + */ + public java.lang.String getFamilyName() { + java.lang.Object ref = familyName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + familyName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. Family name of the contact.
          +     * 
          + * + * string family_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for familyName. + */ + public com.google.protobuf.ByteString getFamilyNameBytes() { + java.lang.Object ref = familyName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + familyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. Family name of the contact.
          +     * 
          + * + * string family_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The familyName to set. + * @return This builder for chaining. + */ + public Builder setFamilyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + familyName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Family name of the contact.
          +     * 
          + * + * string family_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFamilyName() { + familyName_ = getDefaultInstance().getFamilyName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Family name of the contact.
          +     * 
          + * + * string family_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for familyName to set. + * @return This builder for chaining. + */ + public Builder setFamilyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + familyName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object email_ = ""; + /** + * + * + *
          +     * Required. Email of the contact.
          +     * 
          + * + * string email = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The email. + */ + public java.lang.String getEmail() { + java.lang.Object ref = email_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + email_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Required. Email of the contact.
          +     * 
          + * + * string email = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for email. + */ + public com.google.protobuf.ByteString getEmailBytes() { + java.lang.Object ref = email_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + email_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Required. Email of the contact.
          +     * 
          + * + * string email = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The email to set. + * @return This builder for chaining. + */ + public Builder setEmail(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + email_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Email of the contact.
          +     * 
          + * + * string email = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearEmail() { + email_ = getDefaultInstance().getEmail(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Email of the contact.
          +     * 
          + * + * string email = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for email to set. + * @return This builder for chaining. + */ + public Builder setEmailBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + email_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object phone_ = ""; + /** + * + * + *
          +     * Required. Phone number of the contact.
          +     * 
          + * + * string phone = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The phone. + */ + public java.lang.String getPhone() { + java.lang.Object ref = phone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + phone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Required. Phone number of the contact.
          +     * 
          + * + * string phone = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for phone. + */ + public com.google.protobuf.ByteString getPhoneBytes() { + java.lang.Object ref = phone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + phone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Required. Phone number of the contact.
          +     * 
          + * + * string phone = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The phone to set. + * @return This builder for chaining. + */ + public Builder setPhone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + phone_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Phone number of the contact.
          +     * 
          + * + * string phone = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPhone() { + phone_ = getDefaultInstance().getPhone(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Phone number of the contact.
          +     * 
          + * + * string phone = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for phone to set. + * @return This builder for chaining. + */ + public Builder setPhoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + phone_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.type.TimeZone timeZone_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeZone, + com.google.type.TimeZone.Builder, + com.google.type.TimeZoneOrBuilder> + timeZoneBuilder_; + /** + * + * + *
          +     * Optional. Time zone of the contact.
          +     * 
          + * + * .google.type.TimeZone time_zone = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the timeZone field is set. + */ + public boolean hasTimeZone() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
          +     * Optional. Time zone of the contact.
          +     * 
          + * + * .google.type.TimeZone time_zone = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The timeZone. + */ + public com.google.type.TimeZone getTimeZone() { + if (timeZoneBuilder_ == null) { + return timeZone_ == null ? com.google.type.TimeZone.getDefaultInstance() : timeZone_; + } else { + return timeZoneBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Optional. Time zone of the contact.
          +     * 
          + * + * .google.type.TimeZone time_zone = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setTimeZone(com.google.type.TimeZone value) { + if (timeZoneBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + timeZone_ = value; + } else { + timeZoneBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Time zone of the contact.
          +     * 
          + * + * .google.type.TimeZone time_zone = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setTimeZone(com.google.type.TimeZone.Builder builderForValue) { + if (timeZoneBuilder_ == null) { + timeZone_ = builderForValue.build(); + } else { + timeZoneBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Time zone of the contact.
          +     * 
          + * + * .google.type.TimeZone time_zone = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeTimeZone(com.google.type.TimeZone value) { + if (timeZoneBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && timeZone_ != null + && timeZone_ != com.google.type.TimeZone.getDefaultInstance()) { + getTimeZoneBuilder().mergeFrom(value); + } else { + timeZone_ = value; + } + } else { + timeZoneBuilder_.mergeFrom(value); + } + if (timeZone_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Optional. Time zone of the contact.
          +     * 
          + * + * .google.type.TimeZone time_zone = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearTimeZone() { + bitField0_ = (bitField0_ & ~0x00000010); + timeZone_ = null; + if (timeZoneBuilder_ != null) { + timeZoneBuilder_.dispose(); + timeZoneBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Time zone of the contact.
          +     * 
          + * + * .google.type.TimeZone time_zone = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.type.TimeZone.Builder getTimeZoneBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getTimeZoneFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Optional. Time zone of the contact.
          +     * 
          + * + * .google.type.TimeZone time_zone = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.type.TimeZoneOrBuilder getTimeZoneOrBuilder() { + if (timeZoneBuilder_ != null) { + return timeZoneBuilder_.getMessageOrBuilder(); + } else { + return timeZone_ == null ? com.google.type.TimeZone.getDefaultInstance() : timeZone_; + } + } + /** + * + * + *
          +     * Optional. Time zone of the contact.
          +     * 
          + * + * .google.type.TimeZone time_zone = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeZone, + com.google.type.TimeZone.Builder, + com.google.type.TimeZoneOrBuilder> + getTimeZoneFieldBuilder() { + if (timeZoneBuilder_ == null) { + timeZoneBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeZone, + com.google.type.TimeZone.Builder, + com.google.type.TimeZoneOrBuilder>( + getTimeZone(), getParentForChildren(), isClean()); + timeZone_ = null; + } + return timeZoneBuilder_; + } + + private java.util.List + reachableTimes_ = java.util.Collections.emptyList(); + + private void ensureReachableTimesIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + reachableTimes_ = + new java.util.ArrayList( + reachableTimes_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod, + com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriodOrBuilder> + reachableTimesBuilder_; + + /** + * + * + *
          +     * Optional. The time periods when the contact is reachable.
          +     * If this field is empty, the contact is reachable at all times.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getReachableTimesList() { + if (reachableTimesBuilder_ == null) { + return java.util.Collections.unmodifiableList(reachableTimes_); + } else { + return reachableTimesBuilder_.getMessageList(); + } + } + /** + * + * + *
          +     * Optional. The time periods when the contact is reachable.
          +     * If this field is empty, the contact is reachable at all times.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getReachableTimesCount() { + if (reachableTimesBuilder_ == null) { + return reachableTimes_.size(); + } else { + return reachableTimesBuilder_.getCount(); + } + } + /** + * + * + *
          +     * Optional. The time periods when the contact is reachable.
          +     * If this field is empty, the contact is reachable at all times.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod getReachableTimes(int index) { + if (reachableTimesBuilder_ == null) { + return reachableTimes_.get(index); + } else { + return reachableTimesBuilder_.getMessage(index); + } + } + /** + * + * + *
          +     * Optional. The time periods when the contact is reachable.
          +     * If this field is empty, the contact is reachable at all times.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setReachableTimes( + int index, com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod value) { + if (reachableTimesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReachableTimesIsMutable(); + reachableTimes_.set(index, value); + onChanged(); + } else { + reachableTimesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
          +     * Optional. The time periods when the contact is reachable.
          +     * If this field is empty, the contact is reachable at all times.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setReachableTimes( + int index, + com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod.Builder builderForValue) { + if (reachableTimesBuilder_ == null) { + ensureReachableTimesIsMutable(); + reachableTimes_.set(index, builderForValue.build()); + onChanged(); + } else { + reachableTimesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * Optional. The time periods when the contact is reachable.
          +     * If this field is empty, the contact is reachable at all times.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addReachableTimes( + com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod value) { + if (reachableTimesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReachableTimesIsMutable(); + reachableTimes_.add(value); + onChanged(); + } else { + reachableTimesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
          +     * Optional. The time periods when the contact is reachable.
          +     * If this field is empty, the contact is reachable at all times.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addReachableTimes( + int index, com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod value) { + if (reachableTimesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReachableTimesIsMutable(); + reachableTimes_.add(index, value); + onChanged(); + } else { + reachableTimesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
          +     * Optional. The time periods when the contact is reachable.
          +     * If this field is empty, the contact is reachable at all times.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addReachableTimes( + com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod.Builder builderForValue) { + if (reachableTimesBuilder_ == null) { + ensureReachableTimesIsMutable(); + reachableTimes_.add(builderForValue.build()); + onChanged(); + } else { + reachableTimesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * Optional. The time periods when the contact is reachable.
          +     * If this field is empty, the contact is reachable at all times.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addReachableTimes( + int index, + com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod.Builder builderForValue) { + if (reachableTimesBuilder_ == null) { + ensureReachableTimesIsMutable(); + reachableTimes_.add(index, builderForValue.build()); + onChanged(); + } else { + reachableTimesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * Optional. The time periods when the contact is reachable.
          +     * If this field is empty, the contact is reachable at all times.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllReachableTimes( + java.lang.Iterable + values) { + if (reachableTimesBuilder_ == null) { + ensureReachableTimesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, reachableTimes_); + onChanged(); + } else { + reachableTimesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
          +     * Optional. The time periods when the contact is reachable.
          +     * If this field is empty, the contact is reachable at all times.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearReachableTimes() { + if (reachableTimesBuilder_ == null) { + reachableTimes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + reachableTimesBuilder_.clear(); + } + return this; + } + /** + * + * + *
          +     * Optional. The time periods when the contact is reachable.
          +     * If this field is empty, the contact is reachable at all times.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeReachableTimes(int index) { + if (reachableTimesBuilder_ == null) { + ensureReachableTimesIsMutable(); + reachableTimes_.remove(index); + onChanged(); + } else { + reachableTimesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
          +     * Optional. The time periods when the contact is reachable.
          +     * If this field is empty, the contact is reachable at all times.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod.Builder + getReachableTimesBuilder(int index) { + return getReachableTimesFieldBuilder().getBuilder(index); + } + /** + * + * + *
          +     * Optional. The time periods when the contact is reachable.
          +     * If this field is empty, the contact is reachable at all times.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriodOrBuilder + getReachableTimesOrBuilder(int index) { + if (reachableTimesBuilder_ == null) { + return reachableTimes_.get(index); + } else { + return reachableTimesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
          +     * Optional. The time periods when the contact is reachable.
          +     * If this field is empty, the contact is reachable at all times.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriodOrBuilder> + getReachableTimesOrBuilderList() { + if (reachableTimesBuilder_ != null) { + return reachableTimesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(reachableTimes_); + } + } + /** + * + * + *
          +     * Optional. The time periods when the contact is reachable.
          +     * If this field is empty, the contact is reachable at all times.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod.Builder + addReachableTimesBuilder() { + return getReachableTimesFieldBuilder() + .addBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod.getDefaultInstance()); + } + /** + * + * + *
          +     * Optional. The time periods when the contact is reachable.
          +     * If this field is empty, the contact is reachable at all times.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod.Builder + addReachableTimesBuilder(int index) { + return getReachableTimesFieldBuilder() + .addBuilder( + index, + com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod.getDefaultInstance()); + } + /** + * + * + *
          +     * Optional. The time periods when the contact is reachable.
          +     * If this field is empty, the contact is reachable at all times.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getReachableTimesBuilderList() { + return getReachableTimesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod, + com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriodOrBuilder> + getReachableTimesFieldBuilder() { + if (reachableTimesBuilder_ == null) { + reachableTimesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod, + com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriodOrBuilder>( + reachableTimes_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); + reachableTimes_ = null; + } + return reachableTimesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.Contact) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.Contact) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.Contact DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.Contact(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Contact getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Contact parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Contact getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ContactOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ContactOrBuilder.java new file mode 100644 index 000000000000..3dbe8227dcae --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ContactOrBuilder.java @@ -0,0 +1,229 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface ContactOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.Contact) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. Given name of the contact.
          +   * 
          + * + * string given_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The givenName. + */ + java.lang.String getGivenName(); + /** + * + * + *
          +   * Required. Given name of the contact.
          +   * 
          + * + * string given_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for givenName. + */ + com.google.protobuf.ByteString getGivenNameBytes(); + + /** + * + * + *
          +   * Optional. Family name of the contact.
          +   * 
          + * + * string family_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The familyName. + */ + java.lang.String getFamilyName(); + /** + * + * + *
          +   * Optional. Family name of the contact.
          +   * 
          + * + * string family_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for familyName. + */ + com.google.protobuf.ByteString getFamilyNameBytes(); + + /** + * + * + *
          +   * Required. Email of the contact.
          +   * 
          + * + * string email = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The email. + */ + java.lang.String getEmail(); + /** + * + * + *
          +   * Required. Email of the contact.
          +   * 
          + * + * string email = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for email. + */ + com.google.protobuf.ByteString getEmailBytes(); + + /** + * + * + *
          +   * Required. Phone number of the contact.
          +   * 
          + * + * string phone = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The phone. + */ + java.lang.String getPhone(); + /** + * + * + *
          +   * Required. Phone number of the contact.
          +   * 
          + * + * string phone = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for phone. + */ + com.google.protobuf.ByteString getPhoneBytes(); + + /** + * + * + *
          +   * Optional. Time zone of the contact.
          +   * 
          + * + * .google.type.TimeZone time_zone = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the timeZone field is set. + */ + boolean hasTimeZone(); + /** + * + * + *
          +   * Optional. Time zone of the contact.
          +   * 
          + * + * .google.type.TimeZone time_zone = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The timeZone. + */ + com.google.type.TimeZone getTimeZone(); + /** + * + * + *
          +   * Optional. Time zone of the contact.
          +   * 
          + * + * .google.type.TimeZone time_zone = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.type.TimeZoneOrBuilder getTimeZoneOrBuilder(); + + /** + * + * + *
          +   * Optional. The time periods when the contact is reachable.
          +   * If this field is empty, the contact is reachable at all times.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getReachableTimesList(); + /** + * + * + *
          +   * Optional. The time periods when the contact is reachable.
          +   * If this field is empty, the contact is reachable at all times.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod getReachableTimes(int index); + /** + * + * + *
          +   * Optional. The time periods when the contact is reachable.
          +   * If this field is empty, the contact is reachable at all times.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getReachableTimesCount(); + /** + * + * + *
          +   * Optional. The time periods when the contact is reachable.
          +   * If this field is empty, the contact is reachable at all times.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getReachableTimesOrBuilderList(); + /** + * + * + *
          +   * Optional. The time periods when the contact is reachable.
          +   * If this field is empty, the contact is reachable at all times.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriodOrBuilder getReachableTimesOrBuilder( + int index); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CreateCommentRequest.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CreateCommentRequest.java new file mode 100644 index 000000000000..29bc774d7149 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CreateCommentRequest.java @@ -0,0 +1,1383 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * A request to create a comment.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest} + */ +public final class CreateCommentRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest) + CreateCommentRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateCommentRequest.newBuilder() to construct. + private CreateCommentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateCommentRequest() { + parent_ = ""; + commentId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateCommentRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateCommentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateCommentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
          +   * Required. The order to create the comment on.
          +   * Format: `projects/{project}/locations/{location}/orders/{order}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
          +   * Required. The order to create the comment on.
          +   * Format: `projects/{project}/locations/{location}/orders/{order}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMMENT_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object commentId_ = ""; + /** + * + * + *
          +   * Optional. ID used to uniquely identify the Comment within its parent scope.
          +   * This field should contain at most 63 characters and must start with
          +   * lowercase characters.
          +   * Only lowercase characters, numbers and `-` are accepted.
          +   * The `-` character cannot be the first or the last one.
          +   * A system generated ID will be used if the field is not set.
          +   *
          +   * The comment.name field in the request will be ignored.
          +   * 
          + * + * string comment_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The commentId. + */ + @java.lang.Override + public java.lang.String getCommentId() { + java.lang.Object ref = commentId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + commentId_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. ID used to uniquely identify the Comment within its parent scope.
          +   * This field should contain at most 63 characters and must start with
          +   * lowercase characters.
          +   * Only lowercase characters, numbers and `-` are accepted.
          +   * The `-` character cannot be the first or the last one.
          +   * A system generated ID will be used if the field is not set.
          +   *
          +   * The comment.name field in the request will be ignored.
          +   * 
          + * + * string comment_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for commentId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCommentIdBytes() { + java.lang.Object ref = commentId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + commentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMMENT_FIELD_NUMBER = 3; + private com.google.cloud.gdchardwaremanagement.v1alpha.Comment comment_; + /** + * + * + *
          +   * Required. The comment to create.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Comment comment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the comment field is set. + */ + @java.lang.Override + public boolean hasComment() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
          +   * Required. The comment to create.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Comment comment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The comment. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Comment getComment() { + return comment_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Comment.getDefaultInstance() + : comment_; + } + /** + * + * + *
          +   * Required. The comment to create.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Comment comment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.CommentOrBuilder getCommentOrBuilder() { + return comment_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Comment.getDefaultInstance() + : comment_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(commentId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, commentId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getComment()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(commentId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, commentId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getComment()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest other = + (com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getCommentId().equals(other.getCommentId())) return false; + if (hasComment() != other.hasComment()) return false; + if (hasComment()) { + if (!getComment().equals(other.getComment())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + COMMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getCommentId().hashCode(); + if (hasComment()) { + hash = (37 * hash) + COMMENT_FIELD_NUMBER; + hash = (53 * hash) + getComment().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * A request to create a comment.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest) + com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateCommentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateCommentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest.Builder.class); + } + + // Construct using + // com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCommentFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + commentId_ = ""; + comment_ = null; + if (commentBuilder_ != null) { + commentBuilder_.dispose(); + commentBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateCommentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest build() { + com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest result = + new com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.commentId_ = commentId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.comment_ = commentBuilder_ == null ? comment_ : commentBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest) { + return mergeFrom( + (com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getCommentId().isEmpty()) { + commentId_ = other.commentId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasComment()) { + mergeComment(other.getComment()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + commentId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getCommentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
          +     * Required. The order to create the comment on.
          +     * Format: `projects/{project}/locations/{location}/orders/{order}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Required. The order to create the comment on.
          +     * Format: `projects/{project}/locations/{location}/orders/{order}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Required. The order to create the comment on.
          +     * Format: `projects/{project}/locations/{location}/orders/{order}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The order to create the comment on.
          +     * Format: `projects/{project}/locations/{location}/orders/{order}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The order to create the comment on.
          +     * Format: `projects/{project}/locations/{location}/orders/{order}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object commentId_ = ""; + /** + * + * + *
          +     * Optional. ID used to uniquely identify the Comment within its parent scope.
          +     * This field should contain at most 63 characters and must start with
          +     * lowercase characters.
          +     * Only lowercase characters, numbers and `-` are accepted.
          +     * The `-` character cannot be the first or the last one.
          +     * A system generated ID will be used if the field is not set.
          +     *
          +     * The comment.name field in the request will be ignored.
          +     * 
          + * + * string comment_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The commentId. + */ + public java.lang.String getCommentId() { + java.lang.Object ref = commentId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + commentId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. ID used to uniquely identify the Comment within its parent scope.
          +     * This field should contain at most 63 characters and must start with
          +     * lowercase characters.
          +     * Only lowercase characters, numbers and `-` are accepted.
          +     * The `-` character cannot be the first or the last one.
          +     * A system generated ID will be used if the field is not set.
          +     *
          +     * The comment.name field in the request will be ignored.
          +     * 
          + * + * string comment_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for commentId. + */ + public com.google.protobuf.ByteString getCommentIdBytes() { + java.lang.Object ref = commentId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + commentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. ID used to uniquely identify the Comment within its parent scope.
          +     * This field should contain at most 63 characters and must start with
          +     * lowercase characters.
          +     * Only lowercase characters, numbers and `-` are accepted.
          +     * The `-` character cannot be the first or the last one.
          +     * A system generated ID will be used if the field is not set.
          +     *
          +     * The comment.name field in the request will be ignored.
          +     * 
          + * + * string comment_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The commentId to set. + * @return This builder for chaining. + */ + public Builder setCommentId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + commentId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. ID used to uniquely identify the Comment within its parent scope.
          +     * This field should contain at most 63 characters and must start with
          +     * lowercase characters.
          +     * Only lowercase characters, numbers and `-` are accepted.
          +     * The `-` character cannot be the first or the last one.
          +     * A system generated ID will be used if the field is not set.
          +     *
          +     * The comment.name field in the request will be ignored.
          +     * 
          + * + * string comment_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCommentId() { + commentId_ = getDefaultInstance().getCommentId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. ID used to uniquely identify the Comment within its parent scope.
          +     * This field should contain at most 63 characters and must start with
          +     * lowercase characters.
          +     * Only lowercase characters, numbers and `-` are accepted.
          +     * The `-` character cannot be the first or the last one.
          +     * A system generated ID will be used if the field is not set.
          +     *
          +     * The comment.name field in the request will be ignored.
          +     * 
          + * + * string comment_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for commentId to set. + * @return This builder for chaining. + */ + public Builder setCommentIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + commentId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.gdchardwaremanagement.v1alpha.Comment comment_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Comment, + com.google.cloud.gdchardwaremanagement.v1alpha.Comment.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.CommentOrBuilder> + commentBuilder_; + /** + * + * + *
          +     * Required. The comment to create.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Comment comment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the comment field is set. + */ + public boolean hasComment() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
          +     * Required. The comment to create.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Comment comment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The comment. + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Comment getComment() { + if (commentBuilder_ == null) { + return comment_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Comment.getDefaultInstance() + : comment_; + } else { + return commentBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Required. The comment to create.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Comment comment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setComment(com.google.cloud.gdchardwaremanagement.v1alpha.Comment value) { + if (commentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + comment_ = value; + } else { + commentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The comment to create.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Comment comment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setComment( + com.google.cloud.gdchardwaremanagement.v1alpha.Comment.Builder builderForValue) { + if (commentBuilder_ == null) { + comment_ = builderForValue.build(); + } else { + commentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The comment to create.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Comment comment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeComment(com.google.cloud.gdchardwaremanagement.v1alpha.Comment value) { + if (commentBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && comment_ != null + && comment_ + != com.google.cloud.gdchardwaremanagement.v1alpha.Comment.getDefaultInstance()) { + getCommentBuilder().mergeFrom(value); + } else { + comment_ = value; + } + } else { + commentBuilder_.mergeFrom(value); + } + if (comment_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Required. The comment to create.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Comment comment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearComment() { + bitField0_ = (bitField0_ & ~0x00000004); + comment_ = null; + if (commentBuilder_ != null) { + commentBuilder_.dispose(); + commentBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The comment to create.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Comment comment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Comment.Builder getCommentBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getCommentFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Required. The comment to create.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Comment comment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.CommentOrBuilder getCommentOrBuilder() { + if (commentBuilder_ != null) { + return commentBuilder_.getMessageOrBuilder(); + } else { + return comment_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Comment.getDefaultInstance() + : comment_; + } + } + /** + * + * + *
          +     * Required. The comment to create.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Comment comment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Comment, + com.google.cloud.gdchardwaremanagement.v1alpha.Comment.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.CommentOrBuilder> + getCommentFieldBuilder() { + if (commentBuilder_ == null) { + commentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Comment, + com.google.cloud.gdchardwaremanagement.v1alpha.Comment.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.CommentOrBuilder>( + getComment(), getParentForChildren(), isClean()); + comment_ = null; + } + return commentBuilder_; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateCommentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CreateCommentRequestOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CreateCommentRequestOrBuilder.java new file mode 100644 index 000000000000..e653afc3e6df --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CreateCommentRequestOrBuilder.java @@ -0,0 +1,164 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface CreateCommentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The order to create the comment on.
          +   * Format: `projects/{project}/locations/{location}/orders/{order}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
          +   * Required. The order to create the comment on.
          +   * Format: `projects/{project}/locations/{location}/orders/{order}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
          +   * Optional. ID used to uniquely identify the Comment within its parent scope.
          +   * This field should contain at most 63 characters and must start with
          +   * lowercase characters.
          +   * Only lowercase characters, numbers and `-` are accepted.
          +   * The `-` character cannot be the first or the last one.
          +   * A system generated ID will be used if the field is not set.
          +   *
          +   * The comment.name field in the request will be ignored.
          +   * 
          + * + * string comment_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The commentId. + */ + java.lang.String getCommentId(); + /** + * + * + *
          +   * Optional. ID used to uniquely identify the Comment within its parent scope.
          +   * This field should contain at most 63 characters and must start with
          +   * lowercase characters.
          +   * Only lowercase characters, numbers and `-` are accepted.
          +   * The `-` character cannot be the first or the last one.
          +   * A system generated ID will be used if the field is not set.
          +   *
          +   * The comment.name field in the request will be ignored.
          +   * 
          + * + * string comment_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for commentId. + */ + com.google.protobuf.ByteString getCommentIdBytes(); + + /** + * + * + *
          +   * Required. The comment to create.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Comment comment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the comment field is set. + */ + boolean hasComment(); + /** + * + * + *
          +   * Required. The comment to create.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Comment comment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The comment. + */ + com.google.cloud.gdchardwaremanagement.v1alpha.Comment getComment(); + /** + * + * + *
          +   * Required. The comment to create.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Comment comment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gdchardwaremanagement.v1alpha.CommentOrBuilder getCommentOrBuilder(); + + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CreateHardwareGroupRequest.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CreateHardwareGroupRequest.java new file mode 100644 index 000000000000..24d61fb3cc97 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CreateHardwareGroupRequest.java @@ -0,0 +1,1397 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * A request to create a hardware group.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest} + */ +public final class CreateHardwareGroupRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest) + CreateHardwareGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateHardwareGroupRequest.newBuilder() to construct. + private CreateHardwareGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateHardwareGroupRequest() { + parent_ = ""; + hardwareGroupId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateHardwareGroupRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateHardwareGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateHardwareGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest.Builder + .class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
          +   * Required. The order to create the hardware group in.
          +   * Format: `projects/{project}/locations/{location}/orders/{order}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
          +   * Required. The order to create the hardware group in.
          +   * Format: `projects/{project}/locations/{location}/orders/{order}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HARDWARE_GROUP_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object hardwareGroupId_ = ""; + /** + * + * + *
          +   * Optional. ID used to uniquely identify the HardwareGroup within its parent
          +   * scope. This field should contain at most 63 characters and must start with
          +   * lowercase characters.
          +   * Only lowercase characters, numbers and `-` are accepted.
          +   * The `-` character cannot be the first or the last one.
          +   * A system generated ID will be used if the field is not set.
          +   *
          +   * The hardware_group.name field in the request will be ignored.
          +   * 
          + * + * string hardware_group_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The hardwareGroupId. + */ + @java.lang.Override + public java.lang.String getHardwareGroupId() { + java.lang.Object ref = hardwareGroupId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hardwareGroupId_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. ID used to uniquely identify the HardwareGroup within its parent
          +   * scope. This field should contain at most 63 characters and must start with
          +   * lowercase characters.
          +   * Only lowercase characters, numbers and `-` are accepted.
          +   * The `-` character cannot be the first or the last one.
          +   * A system generated ID will be used if the field is not set.
          +   *
          +   * The hardware_group.name field in the request will be ignored.
          +   * 
          + * + * string hardware_group_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for hardwareGroupId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHardwareGroupIdBytes() { + java.lang.Object ref = hardwareGroupId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hardwareGroupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HARDWARE_GROUP_FIELD_NUMBER = 3; + private com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardwareGroup_; + /** + * + * + *
          +   * Required. The hardware group to create.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the hardwareGroup field is set. + */ + @java.lang.Override + public boolean hasHardwareGroup() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
          +   * Required. The hardware group to create.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The hardwareGroup. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup getHardwareGroup() { + return hardwareGroup_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.getDefaultInstance() + : hardwareGroup_; + } + /** + * + * + *
          +   * Required. The hardware group to create.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroupOrBuilder + getHardwareGroupOrBuilder() { + return hardwareGroup_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.getDefaultInstance() + : hardwareGroup_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hardwareGroupId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, hardwareGroupId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getHardwareGroup()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hardwareGroupId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, hardwareGroupId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getHardwareGroup()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest other = + (com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getHardwareGroupId().equals(other.getHardwareGroupId())) return false; + if (hasHardwareGroup() != other.hasHardwareGroup()) return false; + if (hasHardwareGroup()) { + if (!getHardwareGroup().equals(other.getHardwareGroup())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + HARDWARE_GROUP_ID_FIELD_NUMBER; + hash = (53 * hash) + getHardwareGroupId().hashCode(); + if (hasHardwareGroup()) { + hash = (37 * hash) + HARDWARE_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getHardwareGroup().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * A request to create a hardware group.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest) + com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateHardwareGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateHardwareGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getHardwareGroupFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + hardwareGroupId_ = ""; + hardwareGroup_ = null; + if (hardwareGroupBuilder_ != null) { + hardwareGroupBuilder_.dispose(); + hardwareGroupBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateHardwareGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest build() { + com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest + buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest result = + new com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.hardwareGroupId_ = hardwareGroupId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.hardwareGroup_ = + hardwareGroupBuilder_ == null ? hardwareGroup_ : hardwareGroupBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest) { + return mergeFrom( + (com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getHardwareGroupId().isEmpty()) { + hardwareGroupId_ = other.hardwareGroupId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasHardwareGroup()) { + mergeHardwareGroup(other.getHardwareGroup()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + hardwareGroupId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getHardwareGroupFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
          +     * Required. The order to create the hardware group in.
          +     * Format: `projects/{project}/locations/{location}/orders/{order}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Required. The order to create the hardware group in.
          +     * Format: `projects/{project}/locations/{location}/orders/{order}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Required. The order to create the hardware group in.
          +     * Format: `projects/{project}/locations/{location}/orders/{order}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The order to create the hardware group in.
          +     * Format: `projects/{project}/locations/{location}/orders/{order}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The order to create the hardware group in.
          +     * Format: `projects/{project}/locations/{location}/orders/{order}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object hardwareGroupId_ = ""; + /** + * + * + *
          +     * Optional. ID used to uniquely identify the HardwareGroup within its parent
          +     * scope. This field should contain at most 63 characters and must start with
          +     * lowercase characters.
          +     * Only lowercase characters, numbers and `-` are accepted.
          +     * The `-` character cannot be the first or the last one.
          +     * A system generated ID will be used if the field is not set.
          +     *
          +     * The hardware_group.name field in the request will be ignored.
          +     * 
          + * + * string hardware_group_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The hardwareGroupId. + */ + public java.lang.String getHardwareGroupId() { + java.lang.Object ref = hardwareGroupId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hardwareGroupId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. ID used to uniquely identify the HardwareGroup within its parent
          +     * scope. This field should contain at most 63 characters and must start with
          +     * lowercase characters.
          +     * Only lowercase characters, numbers and `-` are accepted.
          +     * The `-` character cannot be the first or the last one.
          +     * A system generated ID will be used if the field is not set.
          +     *
          +     * The hardware_group.name field in the request will be ignored.
          +     * 
          + * + * string hardware_group_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for hardwareGroupId. + */ + public com.google.protobuf.ByteString getHardwareGroupIdBytes() { + java.lang.Object ref = hardwareGroupId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hardwareGroupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. ID used to uniquely identify the HardwareGroup within its parent
          +     * scope. This field should contain at most 63 characters and must start with
          +     * lowercase characters.
          +     * Only lowercase characters, numbers and `-` are accepted.
          +     * The `-` character cannot be the first or the last one.
          +     * A system generated ID will be used if the field is not set.
          +     *
          +     * The hardware_group.name field in the request will be ignored.
          +     * 
          + * + * string hardware_group_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The hardwareGroupId to set. + * @return This builder for chaining. + */ + public Builder setHardwareGroupId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + hardwareGroupId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. ID used to uniquely identify the HardwareGroup within its parent
          +     * scope. This field should contain at most 63 characters and must start with
          +     * lowercase characters.
          +     * Only lowercase characters, numbers and `-` are accepted.
          +     * The `-` character cannot be the first or the last one.
          +     * A system generated ID will be used if the field is not set.
          +     *
          +     * The hardware_group.name field in the request will be ignored.
          +     * 
          + * + * string hardware_group_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearHardwareGroupId() { + hardwareGroupId_ = getDefaultInstance().getHardwareGroupId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. ID used to uniquely identify the HardwareGroup within its parent
          +     * scope. This field should contain at most 63 characters and must start with
          +     * lowercase characters.
          +     * Only lowercase characters, numbers and `-` are accepted.
          +     * The `-` character cannot be the first or the last one.
          +     * A system generated ID will be used if the field is not set.
          +     *
          +     * The hardware_group.name field in the request will be ignored.
          +     * 
          + * + * string hardware_group_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for hardwareGroupId to set. + * @return This builder for chaining. + */ + public Builder setHardwareGroupIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + hardwareGroupId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardwareGroup_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroupOrBuilder> + hardwareGroupBuilder_; + /** + * + * + *
          +     * Required. The hardware group to create.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the hardwareGroup field is set. + */ + public boolean hasHardwareGroup() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
          +     * Required. The hardware group to create.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The hardwareGroup. + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup getHardwareGroup() { + if (hardwareGroupBuilder_ == null) { + return hardwareGroup_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.getDefaultInstance() + : hardwareGroup_; + } else { + return hardwareGroupBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Required. The hardware group to create.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setHardwareGroup( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup value) { + if (hardwareGroupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + hardwareGroup_ = value; + } else { + hardwareGroupBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The hardware group to create.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setHardwareGroup( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.Builder builderForValue) { + if (hardwareGroupBuilder_ == null) { + hardwareGroup_ = builderForValue.build(); + } else { + hardwareGroupBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The hardware group to create.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeHardwareGroup( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup value) { + if (hardwareGroupBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && hardwareGroup_ != null + && hardwareGroup_ + != com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup + .getDefaultInstance()) { + getHardwareGroupBuilder().mergeFrom(value); + } else { + hardwareGroup_ = value; + } + } else { + hardwareGroupBuilder_.mergeFrom(value); + } + if (hardwareGroup_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Required. The hardware group to create.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearHardwareGroup() { + bitField0_ = (bitField0_ & ~0x00000004); + hardwareGroup_ = null; + if (hardwareGroupBuilder_ != null) { + hardwareGroupBuilder_.dispose(); + hardwareGroupBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The hardware group to create.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.Builder + getHardwareGroupBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getHardwareGroupFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Required. The hardware group to create.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroupOrBuilder + getHardwareGroupOrBuilder() { + if (hardwareGroupBuilder_ != null) { + return hardwareGroupBuilder_.getMessageOrBuilder(); + } else { + return hardwareGroup_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.getDefaultInstance() + : hardwareGroup_; + } + } + /** + * + * + *
          +     * Required. The hardware group to create.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroupOrBuilder> + getHardwareGroupFieldBuilder() { + if (hardwareGroupBuilder_ == null) { + hardwareGroupBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroupOrBuilder>( + getHardwareGroup(), getParentForChildren(), isClean()); + hardwareGroup_ = null; + } + return hardwareGroupBuilder_; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateHardwareGroupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CreateHardwareGroupRequestOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CreateHardwareGroupRequestOrBuilder.java new file mode 100644 index 000000000000..45d053a73576 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CreateHardwareGroupRequestOrBuilder.java @@ -0,0 +1,164 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface CreateHardwareGroupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The order to create the hardware group in.
          +   * Format: `projects/{project}/locations/{location}/orders/{order}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
          +   * Required. The order to create the hardware group in.
          +   * Format: `projects/{project}/locations/{location}/orders/{order}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
          +   * Optional. ID used to uniquely identify the HardwareGroup within its parent
          +   * scope. This field should contain at most 63 characters and must start with
          +   * lowercase characters.
          +   * Only lowercase characters, numbers and `-` are accepted.
          +   * The `-` character cannot be the first or the last one.
          +   * A system generated ID will be used if the field is not set.
          +   *
          +   * The hardware_group.name field in the request will be ignored.
          +   * 
          + * + * string hardware_group_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The hardwareGroupId. + */ + java.lang.String getHardwareGroupId(); + /** + * + * + *
          +   * Optional. ID used to uniquely identify the HardwareGroup within its parent
          +   * scope. This field should contain at most 63 characters and must start with
          +   * lowercase characters.
          +   * Only lowercase characters, numbers and `-` are accepted.
          +   * The `-` character cannot be the first or the last one.
          +   * A system generated ID will be used if the field is not set.
          +   *
          +   * The hardware_group.name field in the request will be ignored.
          +   * 
          + * + * string hardware_group_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for hardwareGroupId. + */ + com.google.protobuf.ByteString getHardwareGroupIdBytes(); + + /** + * + * + *
          +   * Required. The hardware group to create.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the hardwareGroup field is set. + */ + boolean hasHardwareGroup(); + /** + * + * + *
          +   * Required. The hardware group to create.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The hardwareGroup. + */ + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup getHardwareGroup(); + /** + * + * + *
          +   * Required. The hardware group to create.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroupOrBuilder getHardwareGroupOrBuilder(); + + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CreateHardwareRequest.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CreateHardwareRequest.java new file mode 100644 index 000000000000..321704e11066 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CreateHardwareRequest.java @@ -0,0 +1,1194 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * A request to create hardware.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest} + */ +public final class CreateHardwareRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest) + CreateHardwareRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateHardwareRequest.newBuilder() to construct. + private CreateHardwareRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateHardwareRequest() { + parent_ = ""; + hardwareId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateHardwareRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateHardwareRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateHardwareRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
          +   * Required. The project and location to create hardware in.
          +   * Format: `projects/{project}/locations/{location}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
          +   * Required. The project and location to create hardware in.
          +   * Format: `projects/{project}/locations/{location}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HARDWARE_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object hardwareId_ = ""; + /** + * + * + *
          +   * Optional. ID used to uniquely identify the Hardware within its parent
          +   * scope. This field should contain at most 63 characters and must start with
          +   * lowercase characters.
          +   * Only lowercase characters, numbers and `-` are accepted.
          +   * The `-` character cannot be the first or the last one.
          +   * A system generated ID will be used if the field is not set.
          +   *
          +   * The hardware.name field in the request will be ignored.
          +   * 
          + * + * string hardware_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The hardwareId. + */ + @java.lang.Override + public java.lang.String getHardwareId() { + java.lang.Object ref = hardwareId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hardwareId_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. ID used to uniquely identify the Hardware within its parent
          +   * scope. This field should contain at most 63 characters and must start with
          +   * lowercase characters.
          +   * Only lowercase characters, numbers and `-` are accepted.
          +   * The `-` character cannot be the first or the last one.
          +   * A system generated ID will be used if the field is not set.
          +   *
          +   * The hardware.name field in the request will be ignored.
          +   * 
          + * + * string hardware_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for hardwareId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHardwareIdBytes() { + java.lang.Object ref = hardwareId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hardwareId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HARDWARE_FIELD_NUMBER = 3; + private com.google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware_; + /** + * + * + *
          +   * Required. The resource to create.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the hardware field is set. + */ + @java.lang.Override + public boolean hasHardware() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
          +   * Required. The resource to create.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The hardware. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware getHardware() { + return hardware_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.getDefaultInstance() + : hardware_; + } + /** + * + * + *
          +   * Required. The resource to create.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareOrBuilder getHardwareOrBuilder() { + return hardware_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.getDefaultInstance() + : hardware_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hardwareId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, hardwareId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getHardware()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hardwareId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, hardwareId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getHardware()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest other = + (com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getHardwareId().equals(other.getHardwareId())) return false; + if (hasHardware() != other.hasHardware()) return false; + if (hasHardware()) { + if (!getHardware().equals(other.getHardware())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + HARDWARE_ID_FIELD_NUMBER; + hash = (53 * hash) + getHardwareId().hashCode(); + if (hasHardware()) { + hash = (37 * hash) + HARDWARE_FIELD_NUMBER; + hash = (53 * hash) + getHardware().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * A request to create hardware.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest) + com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateHardwareRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateHardwareRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest.Builder.class); + } + + // Construct using + // com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getHardwareFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + hardwareId_ = ""; + hardware_ = null; + if (hardwareBuilder_ != null) { + hardwareBuilder_.dispose(); + hardwareBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateHardwareRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest build() { + com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest result = + new com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.hardwareId_ = hardwareId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.hardware_ = hardwareBuilder_ == null ? hardware_ : hardwareBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest) { + return mergeFrom( + (com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getHardwareId().isEmpty()) { + hardwareId_ = other.hardwareId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasHardware()) { + mergeHardware(other.getHardware()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + hardwareId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getHardwareFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
          +     * Required. The project and location to create hardware in.
          +     * Format: `projects/{project}/locations/{location}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Required. The project and location to create hardware in.
          +     * Format: `projects/{project}/locations/{location}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Required. The project and location to create hardware in.
          +     * Format: `projects/{project}/locations/{location}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The project and location to create hardware in.
          +     * Format: `projects/{project}/locations/{location}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The project and location to create hardware in.
          +     * Format: `projects/{project}/locations/{location}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object hardwareId_ = ""; + /** + * + * + *
          +     * Optional. ID used to uniquely identify the Hardware within its parent
          +     * scope. This field should contain at most 63 characters and must start with
          +     * lowercase characters.
          +     * Only lowercase characters, numbers and `-` are accepted.
          +     * The `-` character cannot be the first or the last one.
          +     * A system generated ID will be used if the field is not set.
          +     *
          +     * The hardware.name field in the request will be ignored.
          +     * 
          + * + * string hardware_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The hardwareId. + */ + public java.lang.String getHardwareId() { + java.lang.Object ref = hardwareId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hardwareId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. ID used to uniquely identify the Hardware within its parent
          +     * scope. This field should contain at most 63 characters and must start with
          +     * lowercase characters.
          +     * Only lowercase characters, numbers and `-` are accepted.
          +     * The `-` character cannot be the first or the last one.
          +     * A system generated ID will be used if the field is not set.
          +     *
          +     * The hardware.name field in the request will be ignored.
          +     * 
          + * + * string hardware_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for hardwareId. + */ + public com.google.protobuf.ByteString getHardwareIdBytes() { + java.lang.Object ref = hardwareId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hardwareId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. ID used to uniquely identify the Hardware within its parent
          +     * scope. This field should contain at most 63 characters and must start with
          +     * lowercase characters.
          +     * Only lowercase characters, numbers and `-` are accepted.
          +     * The `-` character cannot be the first or the last one.
          +     * A system generated ID will be used if the field is not set.
          +     *
          +     * The hardware.name field in the request will be ignored.
          +     * 
          + * + * string hardware_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The hardwareId to set. + * @return This builder for chaining. + */ + public Builder setHardwareId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + hardwareId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. ID used to uniquely identify the Hardware within its parent
          +     * scope. This field should contain at most 63 characters and must start with
          +     * lowercase characters.
          +     * Only lowercase characters, numbers and `-` are accepted.
          +     * The `-` character cannot be the first or the last one.
          +     * A system generated ID will be used if the field is not set.
          +     *
          +     * The hardware.name field in the request will be ignored.
          +     * 
          + * + * string hardware_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearHardwareId() { + hardwareId_ = getDefaultInstance().getHardwareId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. ID used to uniquely identify the Hardware within its parent
          +     * scope. This field should contain at most 63 characters and must start with
          +     * lowercase characters.
          +     * Only lowercase characters, numbers and `-` are accepted.
          +     * The `-` character cannot be the first or the last one.
          +     * A system generated ID will be used if the field is not set.
          +     *
          +     * The hardware.name field in the request will be ignored.
          +     * 
          + * + * string hardware_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for hardwareId to set. + * @return This builder for chaining. + */ + public Builder setHardwareIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + hardwareId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware, + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareOrBuilder> + hardwareBuilder_; + /** + * + * + *
          +     * Required. The resource to create.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the hardware field is set. + */ + public boolean hasHardware() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
          +     * Required. The resource to create.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The hardware. + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware getHardware() { + if (hardwareBuilder_ == null) { + return hardware_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.getDefaultInstance() + : hardware_; + } else { + return hardwareBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Required. The resource to create.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setHardware(com.google.cloud.gdchardwaremanagement.v1alpha.Hardware value) { + if (hardwareBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + hardware_ = value; + } else { + hardwareBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The resource to create.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setHardware( + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.Builder builderForValue) { + if (hardwareBuilder_ == null) { + hardware_ = builderForValue.build(); + } else { + hardwareBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The resource to create.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeHardware(com.google.cloud.gdchardwaremanagement.v1alpha.Hardware value) { + if (hardwareBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && hardware_ != null + && hardware_ + != com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.getDefaultInstance()) { + getHardwareBuilder().mergeFrom(value); + } else { + hardware_ = value; + } + } else { + hardwareBuilder_.mergeFrom(value); + } + if (hardware_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Required. The resource to create.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearHardware() { + bitField0_ = (bitField0_ & ~0x00000004); + hardware_ = null; + if (hardwareBuilder_ != null) { + hardwareBuilder_.dispose(); + hardwareBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The resource to create.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.Builder getHardwareBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getHardwareFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Required. The resource to create.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareOrBuilder getHardwareOrBuilder() { + if (hardwareBuilder_ != null) { + return hardwareBuilder_.getMessageOrBuilder(); + } else { + return hardware_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.getDefaultInstance() + : hardware_; + } + } + /** + * + * + *
          +     * Required. The resource to create.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware, + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareOrBuilder> + getHardwareFieldBuilder() { + if (hardwareBuilder_ == null) { + hardwareBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware, + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareOrBuilder>( + getHardware(), getParentForChildren(), isClean()); + hardware_ = null; + } + return hardwareBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateHardwareRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CreateHardwareRequestOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CreateHardwareRequestOrBuilder.java new file mode 100644 index 000000000000..c5f36ca3e169 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CreateHardwareRequestOrBuilder.java @@ -0,0 +1,137 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface CreateHardwareRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The project and location to create hardware in.
          +   * Format: `projects/{project}/locations/{location}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
          +   * Required. The project and location to create hardware in.
          +   * Format: `projects/{project}/locations/{location}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
          +   * Optional. ID used to uniquely identify the Hardware within its parent
          +   * scope. This field should contain at most 63 characters and must start with
          +   * lowercase characters.
          +   * Only lowercase characters, numbers and `-` are accepted.
          +   * The `-` character cannot be the first or the last one.
          +   * A system generated ID will be used if the field is not set.
          +   *
          +   * The hardware.name field in the request will be ignored.
          +   * 
          + * + * string hardware_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The hardwareId. + */ + java.lang.String getHardwareId(); + /** + * + * + *
          +   * Optional. ID used to uniquely identify the Hardware within its parent
          +   * scope. This field should contain at most 63 characters and must start with
          +   * lowercase characters.
          +   * Only lowercase characters, numbers and `-` are accepted.
          +   * The `-` character cannot be the first or the last one.
          +   * A system generated ID will be used if the field is not set.
          +   *
          +   * The hardware.name field in the request will be ignored.
          +   * 
          + * + * string hardware_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for hardwareId. + */ + com.google.protobuf.ByteString getHardwareIdBytes(); + + /** + * + * + *
          +   * Required. The resource to create.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the hardware field is set. + */ + boolean hasHardware(); + /** + * + * + *
          +   * Required. The resource to create.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The hardware. + */ + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware getHardware(); + /** + * + * + *
          +   * Required. The resource to create.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareOrBuilder getHardwareOrBuilder(); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CreateOrderRequest.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CreateOrderRequest.java new file mode 100644 index 000000000000..a5a033444e7c --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CreateOrderRequest.java @@ -0,0 +1,1381 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * A request to create an order.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest} + */ +public final class CreateOrderRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest) + CreateOrderRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateOrderRequest.newBuilder() to construct. + private CreateOrderRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateOrderRequest() { + parent_ = ""; + orderId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateOrderRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateOrderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateOrderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
          +   * Required. The project and location to create the order in.
          +   * Format: `projects/{project}/locations/{location}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
          +   * Required. The project and location to create the order in.
          +   * Format: `projects/{project}/locations/{location}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderId_ = ""; + /** + * + * + *
          +   * Optional. ID used to uniquely identify the Order within its parent scope.
          +   * This field should contain at most 63 characters and must start with
          +   * lowercase characters.
          +   * Only lowercase characters, numbers and `-` are accepted.
          +   * The `-` character cannot be the first or the last one.
          +   * A system generated ID will be used if the field is not set.
          +   *
          +   * The order.name field in the request will be ignored.
          +   * 
          + * + * string order_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderId. + */ + @java.lang.Override + public java.lang.String getOrderId() { + java.lang.Object ref = orderId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderId_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. ID used to uniquely identify the Order within its parent scope.
          +   * This field should contain at most 63 characters and must start with
          +   * lowercase characters.
          +   * Only lowercase characters, numbers and `-` are accepted.
          +   * The `-` character cannot be the first or the last one.
          +   * A system generated ID will be used if the field is not set.
          +   *
          +   * The order.name field in the request will be ignored.
          +   * 
          + * + * string order_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderIdBytes() { + java.lang.Object ref = orderId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_FIELD_NUMBER = 3; + private com.google.cloud.gdchardwaremanagement.v1alpha.Order order_; + /** + * + * + *
          +   * Required. The order to create.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Order order = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the order field is set. + */ + @java.lang.Override + public boolean hasOrder() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
          +   * Required. The order to create.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Order order = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The order. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Order getOrder() { + return order_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Order.getDefaultInstance() + : order_; + } + /** + * + * + *
          +   * Required. The order to create.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Order order = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.OrderOrBuilder getOrderOrBuilder() { + return order_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Order.getDefaultInstance() + : order_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, orderId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getOrder()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, orderId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOrder()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest other = + (com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getOrderId().equals(other.getOrderId())) return false; + if (hasOrder() != other.hasOrder()) return false; + if (hasOrder()) { + if (!getOrder().equals(other.getOrder())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + ORDER_ID_FIELD_NUMBER; + hash = (53 * hash) + getOrderId().hashCode(); + if (hasOrder()) { + hash = (37 * hash) + ORDER_FIELD_NUMBER; + hash = (53 * hash) + getOrder().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * A request to create an order.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest) + com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateOrderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateOrderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest.Builder.class); + } + + // Construct using + // com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getOrderFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + orderId_ = ""; + order_ = null; + if (orderBuilder_ != null) { + orderBuilder_.dispose(); + orderBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateOrderRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest build() { + com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest result = + new com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.orderId_ = orderId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.order_ = orderBuilder_ == null ? order_ : orderBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest) { + return mergeFrom((com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getOrderId().isEmpty()) { + orderId_ = other.orderId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasOrder()) { + mergeOrder(other.getOrder()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + orderId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getOrderFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
          +     * Required. The project and location to create the order in.
          +     * Format: `projects/{project}/locations/{location}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Required. The project and location to create the order in.
          +     * Format: `projects/{project}/locations/{location}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Required. The project and location to create the order in.
          +     * Format: `projects/{project}/locations/{location}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The project and location to create the order in.
          +     * Format: `projects/{project}/locations/{location}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The project and location to create the order in.
          +     * Format: `projects/{project}/locations/{location}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object orderId_ = ""; + /** + * + * + *
          +     * Optional. ID used to uniquely identify the Order within its parent scope.
          +     * This field should contain at most 63 characters and must start with
          +     * lowercase characters.
          +     * Only lowercase characters, numbers and `-` are accepted.
          +     * The `-` character cannot be the first or the last one.
          +     * A system generated ID will be used if the field is not set.
          +     *
          +     * The order.name field in the request will be ignored.
          +     * 
          + * + * string order_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderId. + */ + public java.lang.String getOrderId() { + java.lang.Object ref = orderId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. ID used to uniquely identify the Order within its parent scope.
          +     * This field should contain at most 63 characters and must start with
          +     * lowercase characters.
          +     * Only lowercase characters, numbers and `-` are accepted.
          +     * The `-` character cannot be the first or the last one.
          +     * A system generated ID will be used if the field is not set.
          +     *
          +     * The order.name field in the request will be ignored.
          +     * 
          + * + * string order_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderId. + */ + public com.google.protobuf.ByteString getOrderIdBytes() { + java.lang.Object ref = orderId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. ID used to uniquely identify the Order within its parent scope.
          +     * This field should contain at most 63 characters and must start with
          +     * lowercase characters.
          +     * Only lowercase characters, numbers and `-` are accepted.
          +     * The `-` character cannot be the first or the last one.
          +     * A system generated ID will be used if the field is not set.
          +     *
          +     * The order.name field in the request will be ignored.
          +     * 
          + * + * string order_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderId to set. + * @return This builder for chaining. + */ + public Builder setOrderId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. ID used to uniquely identify the Order within its parent scope.
          +     * This field should contain at most 63 characters and must start with
          +     * lowercase characters.
          +     * Only lowercase characters, numbers and `-` are accepted.
          +     * The `-` character cannot be the first or the last one.
          +     * A system generated ID will be used if the field is not set.
          +     *
          +     * The order.name field in the request will be ignored.
          +     * 
          + * + * string order_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderId() { + orderId_ = getDefaultInstance().getOrderId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. ID used to uniquely identify the Order within its parent scope.
          +     * This field should contain at most 63 characters and must start with
          +     * lowercase characters.
          +     * Only lowercase characters, numbers and `-` are accepted.
          +     * The `-` character cannot be the first or the last one.
          +     * A system generated ID will be used if the field is not set.
          +     *
          +     * The order.name field in the request will be ignored.
          +     * 
          + * + * string order_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderId to set. + * @return This builder for chaining. + */ + public Builder setOrderIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.gdchardwaremanagement.v1alpha.Order order_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Order, + com.google.cloud.gdchardwaremanagement.v1alpha.Order.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.OrderOrBuilder> + orderBuilder_; + /** + * + * + *
          +     * Required. The order to create.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Order order = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the order field is set. + */ + public boolean hasOrder() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
          +     * Required. The order to create.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Order order = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The order. + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Order getOrder() { + if (orderBuilder_ == null) { + return order_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Order.getDefaultInstance() + : order_; + } else { + return orderBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Required. The order to create.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Order order = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setOrder(com.google.cloud.gdchardwaremanagement.v1alpha.Order value) { + if (orderBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + order_ = value; + } else { + orderBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The order to create.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Order order = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setOrder( + com.google.cloud.gdchardwaremanagement.v1alpha.Order.Builder builderForValue) { + if (orderBuilder_ == null) { + order_ = builderForValue.build(); + } else { + orderBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The order to create.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Order order = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeOrder(com.google.cloud.gdchardwaremanagement.v1alpha.Order value) { + if (orderBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && order_ != null + && order_ + != com.google.cloud.gdchardwaremanagement.v1alpha.Order.getDefaultInstance()) { + getOrderBuilder().mergeFrom(value); + } else { + order_ = value; + } + } else { + orderBuilder_.mergeFrom(value); + } + if (order_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Required. The order to create.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Order order = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearOrder() { + bitField0_ = (bitField0_ & ~0x00000004); + order_ = null; + if (orderBuilder_ != null) { + orderBuilder_.dispose(); + orderBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The order to create.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Order order = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Order.Builder getOrderBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getOrderFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Required. The order to create.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Order order = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.OrderOrBuilder getOrderOrBuilder() { + if (orderBuilder_ != null) { + return orderBuilder_.getMessageOrBuilder(); + } else { + return order_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Order.getDefaultInstance() + : order_; + } + } + /** + * + * + *
          +     * Required. The order to create.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Order order = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Order, + com.google.cloud.gdchardwaremanagement.v1alpha.Order.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.OrderOrBuilder> + getOrderFieldBuilder() { + if (orderBuilder_ == null) { + orderBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Order, + com.google.cloud.gdchardwaremanagement.v1alpha.Order.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.OrderOrBuilder>( + getOrder(), getParentForChildren(), isClean()); + order_ = null; + } + return orderBuilder_; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateOrderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CreateOrderRequestOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CreateOrderRequestOrBuilder.java new file mode 100644 index 000000000000..b775c7f9ec15 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CreateOrderRequestOrBuilder.java @@ -0,0 +1,164 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface CreateOrderRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The project and location to create the order in.
          +   * Format: `projects/{project}/locations/{location}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
          +   * Required. The project and location to create the order in.
          +   * Format: `projects/{project}/locations/{location}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
          +   * Optional. ID used to uniquely identify the Order within its parent scope.
          +   * This field should contain at most 63 characters and must start with
          +   * lowercase characters.
          +   * Only lowercase characters, numbers and `-` are accepted.
          +   * The `-` character cannot be the first or the last one.
          +   * A system generated ID will be used if the field is not set.
          +   *
          +   * The order.name field in the request will be ignored.
          +   * 
          + * + * string order_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderId. + */ + java.lang.String getOrderId(); + /** + * + * + *
          +   * Optional. ID used to uniquely identify the Order within its parent scope.
          +   * This field should contain at most 63 characters and must start with
          +   * lowercase characters.
          +   * Only lowercase characters, numbers and `-` are accepted.
          +   * The `-` character cannot be the first or the last one.
          +   * A system generated ID will be used if the field is not set.
          +   *
          +   * The order.name field in the request will be ignored.
          +   * 
          + * + * string order_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderId. + */ + com.google.protobuf.ByteString getOrderIdBytes(); + + /** + * + * + *
          +   * Required. The order to create.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Order order = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the order field is set. + */ + boolean hasOrder(); + /** + * + * + *
          +   * Required. The order to create.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Order order = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The order. + */ + com.google.cloud.gdchardwaremanagement.v1alpha.Order getOrder(); + /** + * + * + *
          +   * Required. The order to create.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Order order = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gdchardwaremanagement.v1alpha.OrderOrBuilder getOrderOrBuilder(); + + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CreateSiteRequest.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CreateSiteRequest.java new file mode 100644 index 000000000000..b101a24a6b7a --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CreateSiteRequest.java @@ -0,0 +1,1378 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * A request to create a site.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest} + */ +public final class CreateSiteRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest) + CreateSiteRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateSiteRequest.newBuilder() to construct. + private CreateSiteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateSiteRequest() { + parent_ = ""; + siteId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateSiteRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateSiteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateSiteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
          +   * Required. The project and location to create the site in.
          +   * Format: `projects/{project}/locations/{location}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
          +   * Required. The project and location to create the site in.
          +   * Format: `projects/{project}/locations/{location}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SITE_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object siteId_ = ""; + /** + * + * + *
          +   * Optional. ID used to uniquely identify the Site within its parent scope.
          +   * This field should contain at most 63 characters and must start with
          +   * lowercase characters.
          +   * Only lowercase characters, numbers and `-` are accepted.
          +   * The `-` character cannot be the first or the last one.
          +   * A system generated ID will be used if the field is not set.
          +   *
          +   * The site.name field in the request will be ignored.
          +   * 
          + * + * string site_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The siteId. + */ + @java.lang.Override + public java.lang.String getSiteId() { + java.lang.Object ref = siteId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + siteId_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. ID used to uniquely identify the Site within its parent scope.
          +   * This field should contain at most 63 characters and must start with
          +   * lowercase characters.
          +   * Only lowercase characters, numbers and `-` are accepted.
          +   * The `-` character cannot be the first or the last one.
          +   * A system generated ID will be used if the field is not set.
          +   *
          +   * The site.name field in the request will be ignored.
          +   * 
          + * + * string site_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for siteId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSiteIdBytes() { + java.lang.Object ref = siteId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + siteId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SITE_FIELD_NUMBER = 3; + private com.google.cloud.gdchardwaremanagement.v1alpha.Site site_; + /** + * + * + *
          +   * Required. The site to create.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Site site = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the site field is set. + */ + @java.lang.Override + public boolean hasSite() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
          +   * Required. The site to create.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Site site = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The site. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Site getSite() { + return site_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Site.getDefaultInstance() + : site_; + } + /** + * + * + *
          +   * Required. The site to create.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Site site = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.SiteOrBuilder getSiteOrBuilder() { + return site_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Site.getDefaultInstance() + : site_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(siteId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, siteId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getSite()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(siteId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, siteId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSite()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest other = + (com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getSiteId().equals(other.getSiteId())) return false; + if (hasSite() != other.hasSite()) return false; + if (hasSite()) { + if (!getSite().equals(other.getSite())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + SITE_ID_FIELD_NUMBER; + hash = (53 * hash) + getSiteId().hashCode(); + if (hasSite()) { + hash = (37 * hash) + SITE_FIELD_NUMBER; + hash = (53 * hash) + getSite().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * A request to create a site.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest) + com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateSiteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateSiteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest.Builder.class); + } + + // Construct using com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSiteFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + siteId_ = ""; + site_ = null; + if (siteBuilder_ != null) { + siteBuilder_.dispose(); + siteBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateSiteRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest build() { + com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest result = + new com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.siteId_ = siteId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.site_ = siteBuilder_ == null ? site_ : siteBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest) { + return mergeFrom((com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSiteId().isEmpty()) { + siteId_ = other.siteId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasSite()) { + mergeSite(other.getSite()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + siteId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getSiteFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
          +     * Required. The project and location to create the site in.
          +     * Format: `projects/{project}/locations/{location}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Required. The project and location to create the site in.
          +     * Format: `projects/{project}/locations/{location}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Required. The project and location to create the site in.
          +     * Format: `projects/{project}/locations/{location}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The project and location to create the site in.
          +     * Format: `projects/{project}/locations/{location}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The project and location to create the site in.
          +     * Format: `projects/{project}/locations/{location}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object siteId_ = ""; + /** + * + * + *
          +     * Optional. ID used to uniquely identify the Site within its parent scope.
          +     * This field should contain at most 63 characters and must start with
          +     * lowercase characters.
          +     * Only lowercase characters, numbers and `-` are accepted.
          +     * The `-` character cannot be the first or the last one.
          +     * A system generated ID will be used if the field is not set.
          +     *
          +     * The site.name field in the request will be ignored.
          +     * 
          + * + * string site_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The siteId. + */ + public java.lang.String getSiteId() { + java.lang.Object ref = siteId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + siteId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. ID used to uniquely identify the Site within its parent scope.
          +     * This field should contain at most 63 characters and must start with
          +     * lowercase characters.
          +     * Only lowercase characters, numbers and `-` are accepted.
          +     * The `-` character cannot be the first or the last one.
          +     * A system generated ID will be used if the field is not set.
          +     *
          +     * The site.name field in the request will be ignored.
          +     * 
          + * + * string site_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for siteId. + */ + public com.google.protobuf.ByteString getSiteIdBytes() { + java.lang.Object ref = siteId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + siteId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. ID used to uniquely identify the Site within its parent scope.
          +     * This field should contain at most 63 characters and must start with
          +     * lowercase characters.
          +     * Only lowercase characters, numbers and `-` are accepted.
          +     * The `-` character cannot be the first or the last one.
          +     * A system generated ID will be used if the field is not set.
          +     *
          +     * The site.name field in the request will be ignored.
          +     * 
          + * + * string site_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The siteId to set. + * @return This builder for chaining. + */ + public Builder setSiteId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + siteId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. ID used to uniquely identify the Site within its parent scope.
          +     * This field should contain at most 63 characters and must start with
          +     * lowercase characters.
          +     * Only lowercase characters, numbers and `-` are accepted.
          +     * The `-` character cannot be the first or the last one.
          +     * A system generated ID will be used if the field is not set.
          +     *
          +     * The site.name field in the request will be ignored.
          +     * 
          + * + * string site_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSiteId() { + siteId_ = getDefaultInstance().getSiteId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. ID used to uniquely identify the Site within its parent scope.
          +     * This field should contain at most 63 characters and must start with
          +     * lowercase characters.
          +     * Only lowercase characters, numbers and `-` are accepted.
          +     * The `-` character cannot be the first or the last one.
          +     * A system generated ID will be used if the field is not set.
          +     *
          +     * The site.name field in the request will be ignored.
          +     * 
          + * + * string site_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for siteId to set. + * @return This builder for chaining. + */ + public Builder setSiteIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + siteId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.gdchardwaremanagement.v1alpha.Site site_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Site, + com.google.cloud.gdchardwaremanagement.v1alpha.Site.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.SiteOrBuilder> + siteBuilder_; + /** + * + * + *
          +     * Required. The site to create.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Site site = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the site field is set. + */ + public boolean hasSite() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
          +     * Required. The site to create.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Site site = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The site. + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Site getSite() { + if (siteBuilder_ == null) { + return site_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Site.getDefaultInstance() + : site_; + } else { + return siteBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Required. The site to create.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Site site = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSite(com.google.cloud.gdchardwaremanagement.v1alpha.Site value) { + if (siteBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + site_ = value; + } else { + siteBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The site to create.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Site site = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSite( + com.google.cloud.gdchardwaremanagement.v1alpha.Site.Builder builderForValue) { + if (siteBuilder_ == null) { + site_ = builderForValue.build(); + } else { + siteBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The site to create.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Site site = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSite(com.google.cloud.gdchardwaremanagement.v1alpha.Site value) { + if (siteBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && site_ != null + && site_ != com.google.cloud.gdchardwaremanagement.v1alpha.Site.getDefaultInstance()) { + getSiteBuilder().mergeFrom(value); + } else { + site_ = value; + } + } else { + siteBuilder_.mergeFrom(value); + } + if (site_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Required. The site to create.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Site site = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSite() { + bitField0_ = (bitField0_ & ~0x00000004); + site_ = null; + if (siteBuilder_ != null) { + siteBuilder_.dispose(); + siteBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The site to create.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Site site = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Site.Builder getSiteBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getSiteFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Required. The site to create.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Site site = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.SiteOrBuilder getSiteOrBuilder() { + if (siteBuilder_ != null) { + return siteBuilder_.getMessageOrBuilder(); + } else { + return site_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Site.getDefaultInstance() + : site_; + } + } + /** + * + * + *
          +     * Required. The site to create.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Site site = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Site, + com.google.cloud.gdchardwaremanagement.v1alpha.Site.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.SiteOrBuilder> + getSiteFieldBuilder() { + if (siteBuilder_ == null) { + siteBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Site, + com.google.cloud.gdchardwaremanagement.v1alpha.Site.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.SiteOrBuilder>( + getSite(), getParentForChildren(), isClean()); + site_ = null; + } + return siteBuilder_; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSiteRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CreateSiteRequestOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CreateSiteRequestOrBuilder.java new file mode 100644 index 000000000000..9e0eef2f8c24 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CreateSiteRequestOrBuilder.java @@ -0,0 +1,164 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface CreateSiteRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The project and location to create the site in.
          +   * Format: `projects/{project}/locations/{location}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
          +   * Required. The project and location to create the site in.
          +   * Format: `projects/{project}/locations/{location}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
          +   * Optional. ID used to uniquely identify the Site within its parent scope.
          +   * This field should contain at most 63 characters and must start with
          +   * lowercase characters.
          +   * Only lowercase characters, numbers and `-` are accepted.
          +   * The `-` character cannot be the first or the last one.
          +   * A system generated ID will be used if the field is not set.
          +   *
          +   * The site.name field in the request will be ignored.
          +   * 
          + * + * string site_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The siteId. + */ + java.lang.String getSiteId(); + /** + * + * + *
          +   * Optional. ID used to uniquely identify the Site within its parent scope.
          +   * This field should contain at most 63 characters and must start with
          +   * lowercase characters.
          +   * Only lowercase characters, numbers and `-` are accepted.
          +   * The `-` character cannot be the first or the last one.
          +   * A system generated ID will be used if the field is not set.
          +   *
          +   * The site.name field in the request will be ignored.
          +   * 
          + * + * string site_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for siteId. + */ + com.google.protobuf.ByteString getSiteIdBytes(); + + /** + * + * + *
          +   * Required. The site to create.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Site site = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the site field is set. + */ + boolean hasSite(); + /** + * + * + *
          +   * Required. The site to create.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Site site = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The site. + */ + com.google.cloud.gdchardwaremanagement.v1alpha.Site getSite(); + /** + * + * + *
          +   * Required. The site to create.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Site site = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gdchardwaremanagement.v1alpha.SiteOrBuilder getSiteOrBuilder(); + + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CreateZoneRequest.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CreateZoneRequest.java new file mode 100644 index 000000000000..3c5ae8c4260c --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CreateZoneRequest.java @@ -0,0 +1,1392 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * A request to create a zone.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest} + */ +public final class CreateZoneRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest) + CreateZoneRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateZoneRequest.newBuilder() to construct. + private CreateZoneRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateZoneRequest() { + parent_ = ""; + zoneId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateZoneRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateZoneRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateZoneRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
          +   * Required. The project and location to create the zone in.
          +   * Format: `projects/{project}/locations/{location}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
          +   * Required. The project and location to create the zone in.
          +   * Format: `projects/{project}/locations/{location}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object zoneId_ = ""; + /** + * + * + *
          +   * Optional. ID used to uniquely identify the Zone within its parent scope.
          +   * This field should contain at most 63 characters and must start with
          +   * lowercase characters.
          +   * Only lowercase characters, numbers and `-` are accepted.
          +   * The `-` character cannot be the first or the last one.
          +   * A system generated ID will be used if the field is not set.
          +   *
          +   * The zone.name field in the request will be ignored.
          +   * 
          + * + * string zone_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The zoneId. + */ + @java.lang.Override + public java.lang.String getZoneId() { + java.lang.Object ref = zoneId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zoneId_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. ID used to uniquely identify the Zone within its parent scope.
          +   * This field should contain at most 63 characters and must start with
          +   * lowercase characters.
          +   * Only lowercase characters, numbers and `-` are accepted.
          +   * The `-` character cannot be the first or the last one.
          +   * A system generated ID will be used if the field is not set.
          +   *
          +   * The zone.name field in the request will be ignored.
          +   * 
          + * + * string zone_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for zoneId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getZoneIdBytes() { + java.lang.Object ref = zoneId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zoneId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 3; + private com.google.cloud.gdchardwaremanagement.v1alpha.Zone zone_; + /** + * + * + *
          +   * Required. The zone to create.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Zone zone = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the zone field is set. + */ + @java.lang.Override + public boolean hasZone() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
          +   * Required. The zone to create.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Zone zone = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The zone. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Zone getZone() { + return zone_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Zone.getDefaultInstance() + : zone_; + } + /** + * + * + *
          +   * Required. The zone to create.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Zone zone = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ZoneOrBuilder getZoneOrBuilder() { + return zone_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Zone.getDefaultInstance() + : zone_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zoneId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zoneId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getZone()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zoneId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zoneId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getZone()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest other = + (com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getZoneId().equals(other.getZoneId())) return false; + if (hasZone() != other.hasZone()) return false; + if (hasZone()) { + if (!getZone().equals(other.getZone())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + ZONE_ID_FIELD_NUMBER; + hash = (53 * hash) + getZoneId().hashCode(); + if (hasZone()) { + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * A request to create a zone.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest) + com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateZoneRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateZoneRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest.Builder.class); + } + + // Construct using com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getZoneFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + zoneId_ = ""; + zone_ = null; + if (zoneBuilder_ != null) { + zoneBuilder_.dispose(); + zoneBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateZoneRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest build() { + com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest result = + new com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zoneId_ = zoneId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.zone_ = zoneBuilder_ == null ? zone_ : zoneBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest) { + return mergeFrom((com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getZoneId().isEmpty()) { + zoneId_ = other.zoneId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasZone()) { + mergeZone(other.getZone()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + zoneId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getZoneFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
          +     * Required. The project and location to create the zone in.
          +     * Format: `projects/{project}/locations/{location}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Required. The project and location to create the zone in.
          +     * Format: `projects/{project}/locations/{location}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Required. The project and location to create the zone in.
          +     * Format: `projects/{project}/locations/{location}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The project and location to create the zone in.
          +     * Format: `projects/{project}/locations/{location}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The project and location to create the zone in.
          +     * Format: `projects/{project}/locations/{location}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object zoneId_ = ""; + /** + * + * + *
          +     * Optional. ID used to uniquely identify the Zone within its parent scope.
          +     * This field should contain at most 63 characters and must start with
          +     * lowercase characters.
          +     * Only lowercase characters, numbers and `-` are accepted.
          +     * The `-` character cannot be the first or the last one.
          +     * A system generated ID will be used if the field is not set.
          +     *
          +     * The zone.name field in the request will be ignored.
          +     * 
          + * + * string zone_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The zoneId. + */ + public java.lang.String getZoneId() { + java.lang.Object ref = zoneId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zoneId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. ID used to uniquely identify the Zone within its parent scope.
          +     * This field should contain at most 63 characters and must start with
          +     * lowercase characters.
          +     * Only lowercase characters, numbers and `-` are accepted.
          +     * The `-` character cannot be the first or the last one.
          +     * A system generated ID will be used if the field is not set.
          +     *
          +     * The zone.name field in the request will be ignored.
          +     * 
          + * + * string zone_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for zoneId. + */ + public com.google.protobuf.ByteString getZoneIdBytes() { + java.lang.Object ref = zoneId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zoneId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. ID used to uniquely identify the Zone within its parent scope.
          +     * This field should contain at most 63 characters and must start with
          +     * lowercase characters.
          +     * Only lowercase characters, numbers and `-` are accepted.
          +     * The `-` character cannot be the first or the last one.
          +     * A system generated ID will be used if the field is not set.
          +     *
          +     * The zone.name field in the request will be ignored.
          +     * 
          + * + * string zone_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The zoneId to set. + * @return This builder for chaining. + */ + public Builder setZoneId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + zoneId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. ID used to uniquely identify the Zone within its parent scope.
          +     * This field should contain at most 63 characters and must start with
          +     * lowercase characters.
          +     * Only lowercase characters, numbers and `-` are accepted.
          +     * The `-` character cannot be the first or the last one.
          +     * A system generated ID will be used if the field is not set.
          +     *
          +     * The zone.name field in the request will be ignored.
          +     * 
          + * + * string zone_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearZoneId() { + zoneId_ = getDefaultInstance().getZoneId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. ID used to uniquely identify the Zone within its parent scope.
          +     * This field should contain at most 63 characters and must start with
          +     * lowercase characters.
          +     * Only lowercase characters, numbers and `-` are accepted.
          +     * The `-` character cannot be the first or the last one.
          +     * A system generated ID will be used if the field is not set.
          +     *
          +     * The zone.name field in the request will be ignored.
          +     * 
          + * + * string zone_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for zoneId to set. + * @return This builder for chaining. + */ + public Builder setZoneIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + zoneId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.gdchardwaremanagement.v1alpha.Zone zone_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Zone, + com.google.cloud.gdchardwaremanagement.v1alpha.Zone.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.ZoneOrBuilder> + zoneBuilder_; + /** + * + * + *
          +     * Required. The zone to create.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Zone zone = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the zone field is set. + */ + public boolean hasZone() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
          +     * Required. The zone to create.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Zone zone = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The zone. + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Zone getZone() { + if (zoneBuilder_ == null) { + return zone_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Zone.getDefaultInstance() + : zone_; + } else { + return zoneBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Required. The zone to create.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Zone zone = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setZone(com.google.cloud.gdchardwaremanagement.v1alpha.Zone value) { + if (zoneBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + zone_ = value; + } else { + zoneBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The zone to create.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Zone zone = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setZone( + com.google.cloud.gdchardwaremanagement.v1alpha.Zone.Builder builderForValue) { + if (zoneBuilder_ == null) { + zone_ = builderForValue.build(); + } else { + zoneBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The zone to create.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Zone zone = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeZone(com.google.cloud.gdchardwaremanagement.v1alpha.Zone value) { + if (zoneBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && zone_ != null + && zone_ != com.google.cloud.gdchardwaremanagement.v1alpha.Zone.getDefaultInstance()) { + getZoneBuilder().mergeFrom(value); + } else { + zone_ = value; + } + } else { + zoneBuilder_.mergeFrom(value); + } + if (zone_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Required. The zone to create.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Zone zone = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearZone() { + bitField0_ = (bitField0_ & ~0x00000004); + zone_ = null; + if (zoneBuilder_ != null) { + zoneBuilder_.dispose(); + zoneBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The zone to create.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Zone zone = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Zone.Builder getZoneBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getZoneFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Required. The zone to create.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Zone zone = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.ZoneOrBuilder getZoneOrBuilder() { + if (zoneBuilder_ != null) { + return zoneBuilder_.getMessageOrBuilder(); + } else { + return zone_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Zone.getDefaultInstance() + : zone_; + } + } + /** + * + * + *
          +     * Required. The zone to create.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Zone zone = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Zone, + com.google.cloud.gdchardwaremanagement.v1alpha.Zone.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.ZoneOrBuilder> + getZoneFieldBuilder() { + if (zoneBuilder_ == null) { + zoneBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Zone, + com.google.cloud.gdchardwaremanagement.v1alpha.Zone.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.ZoneOrBuilder>( + getZone(), getParentForChildren(), isClean()); + zone_ = null; + } + return zoneBuilder_; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateZoneRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CreateZoneRequestOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CreateZoneRequestOrBuilder.java new file mode 100644 index 000000000000..2e936980b81e --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/CreateZoneRequestOrBuilder.java @@ -0,0 +1,168 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface CreateZoneRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The project and location to create the zone in.
          +   * Format: `projects/{project}/locations/{location}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
          +   * Required. The project and location to create the zone in.
          +   * Format: `projects/{project}/locations/{location}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
          +   * Optional. ID used to uniquely identify the Zone within its parent scope.
          +   * This field should contain at most 63 characters and must start with
          +   * lowercase characters.
          +   * Only lowercase characters, numbers and `-` are accepted.
          +   * The `-` character cannot be the first or the last one.
          +   * A system generated ID will be used if the field is not set.
          +   *
          +   * The zone.name field in the request will be ignored.
          +   * 
          + * + * string zone_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The zoneId. + */ + java.lang.String getZoneId(); + /** + * + * + *
          +   * Optional. ID used to uniquely identify the Zone within its parent scope.
          +   * This field should contain at most 63 characters and must start with
          +   * lowercase characters.
          +   * Only lowercase characters, numbers and `-` are accepted.
          +   * The `-` character cannot be the first or the last one.
          +   * A system generated ID will be used if the field is not set.
          +   *
          +   * The zone.name field in the request will be ignored.
          +   * 
          + * + * string zone_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for zoneId. + */ + com.google.protobuf.ByteString getZoneIdBytes(); + + /** + * + * + *
          +   * Required. The zone to create.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Zone zone = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the zone field is set. + */ + boolean hasZone(); + /** + * + * + *
          +   * Required. The zone to create.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Zone zone = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The zone. + */ + com.google.cloud.gdchardwaremanagement.v1alpha.Zone getZone(); + /** + * + * + *
          +   * Required. The zone to create.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Zone zone = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gdchardwaremanagement.v1alpha.ZoneOrBuilder getZoneOrBuilder(); + + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/DeleteHardwareGroupRequest.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/DeleteHardwareGroupRequest.java new file mode 100644 index 000000000000..ea0a378432ee --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/DeleteHardwareGroupRequest.java @@ -0,0 +1,861 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * A request to delete a hardware group.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest} + */ +public final class DeleteHardwareGroupRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest) + DeleteHardwareGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteHardwareGroupRequest.newBuilder() to construct. + private DeleteHardwareGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteHardwareGroupRequest() { + name_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteHardwareGroupRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteHardwareGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteHardwareGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
          +   * Required. The name of the hardware group.
          +   * Format:
          +   * `projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
          +   * Required. The name of the hardware group.
          +   * Format:
          +   * `projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest other = + (com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * A request to delete a hardware group.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest) + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteHardwareGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteHardwareGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteHardwareGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest build() { + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest + buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest result = + new com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest) { + return mergeFrom( + (com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
          +     * Required. The name of the hardware group.
          +     * Format:
          +     * `projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Required. The name of the hardware group.
          +     * Format:
          +     * `projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Required. The name of the hardware group.
          +     * Format:
          +     * `projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The name of the hardware group.
          +     * Format:
          +     * `projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The name of the hardware group.
          +     * Format:
          +     * `projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteHardwareGroupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/DeleteHardwareGroupRequestOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/DeleteHardwareGroupRequestOrBuilder.java new file mode 100644 index 000000000000..766a9c3a3800 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/DeleteHardwareGroupRequestOrBuilder.java @@ -0,0 +1,86 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface DeleteHardwareGroupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The name of the hardware group.
          +   * Format:
          +   * `projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
          +   * Required. The name of the hardware group.
          +   * Format:
          +   * `projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/DeleteHardwareRequest.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/DeleteHardwareRequest.java new file mode 100644 index 000000000000..61a0e0b1c404 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/DeleteHardwareRequest.java @@ -0,0 +1,861 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * A request to delete hardware.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest} + */ +public final class DeleteHardwareRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest) + DeleteHardwareRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteHardwareRequest.newBuilder() to construct. + private DeleteHardwareRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteHardwareRequest() { + name_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteHardwareRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteHardwareRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteHardwareRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
          +   * Required. The name of the hardware.
          +   * Format: `projects/{project}/locations/{location}/hardware/{hardware}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
          +   * Required. The name of the hardware.
          +   * Format: `projects/{project}/locations/{location}/hardware/{hardware}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest other = + (com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * A request to delete hardware.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest) + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteHardwareRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteHardwareRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest.Builder.class); + } + + // Construct using + // com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteHardwareRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest build() { + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest result = + new com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest) { + return mergeFrom( + (com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
          +     * Required. The name of the hardware.
          +     * Format: `projects/{project}/locations/{location}/hardware/{hardware}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Required. The name of the hardware.
          +     * Format: `projects/{project}/locations/{location}/hardware/{hardware}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Required. The name of the hardware.
          +     * Format: `projects/{project}/locations/{location}/hardware/{hardware}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The name of the hardware.
          +     * Format: `projects/{project}/locations/{location}/hardware/{hardware}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The name of the hardware.
          +     * Format: `projects/{project}/locations/{location}/hardware/{hardware}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteHardwareRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/DeleteHardwareRequestOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/DeleteHardwareRequestOrBuilder.java new file mode 100644 index 000000000000..de3c0758ce7c --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/DeleteHardwareRequestOrBuilder.java @@ -0,0 +1,88 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface DeleteHardwareRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The name of the hardware.
          +   * Format: `projects/{project}/locations/{location}/hardware/{hardware}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
          +   * Required. The name of the hardware.
          +   * Format: `projects/{project}/locations/{location}/hardware/{hardware}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/DeleteOrderRequest.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/DeleteOrderRequest.java new file mode 100644 index 000000000000..dbf88686ff80 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/DeleteOrderRequest.java @@ -0,0 +1,950 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * A request to delete an order.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest} + */ +public final class DeleteOrderRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest) + DeleteOrderRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteOrderRequest.newBuilder() to construct. + private DeleteOrderRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteOrderRequest() { + name_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteOrderRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteOrderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteOrderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
          +   * Required. The name of the order.
          +   * Format: `projects/{project}/locations/{location}/orders/{order}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
          +   * Required. The name of the order.
          +   * Format: `projects/{project}/locations/{location}/orders/{order}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FORCE_FIELD_NUMBER = 3; + private boolean force_ = false; + /** + * + * + *
          +   * Optional. An option to delete any nested resources in the Order, such as a
          +   * HardwareGroup. If true, any nested resources for this Order will also be
          +   * deleted. Otherwise, the request will only succeed if the Order has no
          +   * nested resources.
          +   * 
          + * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); + } + if (force_ != false) { + output.writeBool(3, force_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); + } + if (force_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, force_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest other = + (com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (getForce() != other.getForce()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (37 * hash) + FORCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * A request to delete an order.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest) + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteOrderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteOrderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest.Builder.class); + } + + // Construct using + // com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + force_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteOrderRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest build() { + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest result = + new com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.force_ = force_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest) { + return mergeFrom((com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getForce() != false) { + setForce(other.getForce()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + force_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
          +     * Required. The name of the order.
          +     * Format: `projects/{project}/locations/{location}/orders/{order}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Required. The name of the order.
          +     * Format: `projects/{project}/locations/{location}/orders/{order}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Required. The name of the order.
          +     * Format: `projects/{project}/locations/{location}/orders/{order}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The name of the order.
          +     * Format: `projects/{project}/locations/{location}/orders/{order}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The name of the order.
          +     * Format: `projects/{project}/locations/{location}/orders/{order}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean force_; + /** + * + * + *
          +     * Optional. An option to delete any nested resources in the Order, such as a
          +     * HardwareGroup. If true, any nested resources for this Order will also be
          +     * deleted. Otherwise, the request will only succeed if the Order has no
          +     * nested resources.
          +     * 
          + * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + /** + * + * + *
          +     * Optional. An option to delete any nested resources in the Order, such as a
          +     * HardwareGroup. If true, any nested resources for this Order will also be
          +     * deleted. Otherwise, the request will only succeed if the Order has no
          +     * nested resources.
          +     * 
          + * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. An option to delete any nested resources in the Order, such as a
          +     * HardwareGroup. If true, any nested resources for this Order will also be
          +     * deleted. Otherwise, the request will only succeed if the Order has no
          +     * nested resources.
          +     * 
          + * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearForce() { + bitField0_ = (bitField0_ & ~0x00000004); + force_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteOrderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/DeleteOrderRequestOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/DeleteOrderRequestOrBuilder.java new file mode 100644 index 000000000000..05252b917ee8 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/DeleteOrderRequestOrBuilder.java @@ -0,0 +1,100 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface DeleteOrderRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The name of the order.
          +   * Format: `projects/{project}/locations/{location}/orders/{order}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
          +   * Required. The name of the order.
          +   * Format: `projects/{project}/locations/{location}/orders/{order}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
          +   * Optional. An option to delete any nested resources in the Order, such as a
          +   * HardwareGroup. If true, any nested resources for this Order will also be
          +   * deleted. Otherwise, the request will only succeed if the Order has no
          +   * nested resources.
          +   * 
          + * + * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + boolean getForce(); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/DeleteZoneRequest.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/DeleteZoneRequest.java new file mode 100644 index 000000000000..f28eec7b5e74 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/DeleteZoneRequest.java @@ -0,0 +1,857 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * A request to delete a zone.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest} + */ +public final class DeleteZoneRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest) + DeleteZoneRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteZoneRequest.newBuilder() to construct. + private DeleteZoneRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteZoneRequest() { + name_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteZoneRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteZoneRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteZoneRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
          +   * Required. The name of the zone.
          +   * Format: `projects/{project}/locations/{location}/zones/{zone}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
          +   * Required. The name of the zone.
          +   * Format: `projects/{project}/locations/{location}/zones/{zone}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest other = + (com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * A request to delete a zone.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest) + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteZoneRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteZoneRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest.Builder.class); + } + + // Construct using com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteZoneRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest build() { + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest result = + new com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest) { + return mergeFrom((com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
          +     * Required. The name of the zone.
          +     * Format: `projects/{project}/locations/{location}/zones/{zone}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Required. The name of the zone.
          +     * Format: `projects/{project}/locations/{location}/zones/{zone}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Required. The name of the zone.
          +     * Format: `projects/{project}/locations/{location}/zones/{zone}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The name of the zone.
          +     * Format: `projects/{project}/locations/{location}/zones/{zone}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The name of the zone.
          +     * Format: `projects/{project}/locations/{location}/zones/{zone}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteZoneRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/DeleteZoneRequestOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/DeleteZoneRequestOrBuilder.java new file mode 100644 index 000000000000..534142a4fd47 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/DeleteZoneRequestOrBuilder.java @@ -0,0 +1,88 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface DeleteZoneRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The name of the zone.
          +   * Format: `projects/{project}/locations/{location}/zones/{zone}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
          +   * Required. The name of the zone.
          +   * Format: `projects/{project}/locations/{location}/zones/{zone}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Dimensions.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Dimensions.java new file mode 100644 index 000000000000..a96bfa0ebc02 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Dimensions.java @@ -0,0 +1,725 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * Represents the dimensions of an object.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.Dimensions} + */ +public final class Dimensions extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.Dimensions) + DimensionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use Dimensions.newBuilder() to construct. + private Dimensions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Dimensions() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Dimensions(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Dimensions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Dimensions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions.class, + com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions.Builder.class); + } + + public static final int WIDTH_INCHES_FIELD_NUMBER = 1; + private float widthInches_ = 0F; + /** + * + * + *
          +   * Required. Width in inches.
          +   * 
          + * + * float width_inches = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The widthInches. + */ + @java.lang.Override + public float getWidthInches() { + return widthInches_; + } + + public static final int HEIGHT_INCHES_FIELD_NUMBER = 2; + private float heightInches_ = 0F; + /** + * + * + *
          +   * Required. Height in inches.
          +   * 
          + * + * float height_inches = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The heightInches. + */ + @java.lang.Override + public float getHeightInches() { + return heightInches_; + } + + public static final int DEPTH_INCHES_FIELD_NUMBER = 3; + private float depthInches_ = 0F; + /** + * + * + *
          +   * Required. Depth in inches.
          +   * 
          + * + * float depth_inches = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The depthInches. + */ + @java.lang.Override + public float getDepthInches() { + return depthInches_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (java.lang.Float.floatToRawIntBits(widthInches_) != 0) { + output.writeFloat(1, widthInches_); + } + if (java.lang.Float.floatToRawIntBits(heightInches_) != 0) { + output.writeFloat(2, heightInches_); + } + if (java.lang.Float.floatToRawIntBits(depthInches_) != 0) { + output.writeFloat(3, depthInches_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (java.lang.Float.floatToRawIntBits(widthInches_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, widthInches_); + } + if (java.lang.Float.floatToRawIntBits(heightInches_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, heightInches_); + } + if (java.lang.Float.floatToRawIntBits(depthInches_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, depthInches_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions other = + (com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions) obj; + + if (java.lang.Float.floatToIntBits(getWidthInches()) + != java.lang.Float.floatToIntBits(other.getWidthInches())) return false; + if (java.lang.Float.floatToIntBits(getHeightInches()) + != java.lang.Float.floatToIntBits(other.getHeightInches())) return false; + if (java.lang.Float.floatToIntBits(getDepthInches()) + != java.lang.Float.floatToIntBits(other.getDepthInches())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + WIDTH_INCHES_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getWidthInches()); + hash = (37 * hash) + HEIGHT_INCHES_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getHeightInches()); + hash = (37 * hash) + DEPTH_INCHES_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getDepthInches()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * Represents the dimensions of an object.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.Dimensions} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.Dimensions) + com.google.cloud.gdchardwaremanagement.v1alpha.DimensionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Dimensions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Dimensions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions.class, + com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions.Builder.class); + } + + // Construct using com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + widthInches_ = 0F; + heightInches_ = 0F; + depthInches_ = 0F; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Dimensions_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions build() { + com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions result = + new com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.widthInches_ = widthInches_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.heightInches_ = heightInches_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.depthInches_ = depthInches_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions) { + return mergeFrom((com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions other) { + if (other == com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions.getDefaultInstance()) + return this; + if (other.getWidthInches() != 0F) { + setWidthInches(other.getWidthInches()); + } + if (other.getHeightInches() != 0F) { + setHeightInches(other.getHeightInches()); + } + if (other.getDepthInches() != 0F) { + setDepthInches(other.getDepthInches()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 13: + { + widthInches_ = input.readFloat(); + bitField0_ |= 0x00000001; + break; + } // case 13 + case 21: + { + heightInches_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + case 29: + { + depthInches_ = input.readFloat(); + bitField0_ |= 0x00000004; + break; + } // case 29 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private float widthInches_; + /** + * + * + *
          +     * Required. Width in inches.
          +     * 
          + * + * float width_inches = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The widthInches. + */ + @java.lang.Override + public float getWidthInches() { + return widthInches_; + } + /** + * + * + *
          +     * Required. Width in inches.
          +     * 
          + * + * float width_inches = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The widthInches to set. + * @return This builder for chaining. + */ + public Builder setWidthInches(float value) { + + widthInches_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Width in inches.
          +     * 
          + * + * float width_inches = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearWidthInches() { + bitField0_ = (bitField0_ & ~0x00000001); + widthInches_ = 0F; + onChanged(); + return this; + } + + private float heightInches_; + /** + * + * + *
          +     * Required. Height in inches.
          +     * 
          + * + * float height_inches = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The heightInches. + */ + @java.lang.Override + public float getHeightInches() { + return heightInches_; + } + /** + * + * + *
          +     * Required. Height in inches.
          +     * 
          + * + * float height_inches = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The heightInches to set. + * @return This builder for chaining. + */ + public Builder setHeightInches(float value) { + + heightInches_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Height in inches.
          +     * 
          + * + * float height_inches = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearHeightInches() { + bitField0_ = (bitField0_ & ~0x00000002); + heightInches_ = 0F; + onChanged(); + return this; + } + + private float depthInches_; + /** + * + * + *
          +     * Required. Depth in inches.
          +     * 
          + * + * float depth_inches = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The depthInches. + */ + @java.lang.Override + public float getDepthInches() { + return depthInches_; + } + /** + * + * + *
          +     * Required. Depth in inches.
          +     * 
          + * + * float depth_inches = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The depthInches to set. + * @return This builder for chaining. + */ + public Builder setDepthInches(float value) { + + depthInches_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Depth in inches.
          +     * 
          + * + * float depth_inches = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDepthInches() { + bitField0_ = (bitField0_ & ~0x00000004); + depthInches_ = 0F; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.Dimensions) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.Dimensions) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Dimensions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/DimensionsOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/DimensionsOrBuilder.java new file mode 100644 index 000000000000..b707913ac98e --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/DimensionsOrBuilder.java @@ -0,0 +1,65 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface DimensionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.Dimensions) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. Width in inches.
          +   * 
          + * + * float width_inches = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The widthInches. + */ + float getWidthInches(); + + /** + * + * + *
          +   * Required. Height in inches.
          +   * 
          + * + * float height_inches = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The heightInches. + */ + float getHeightInches(); + + /** + * + * + *
          +   * Required. Depth in inches.
          +   * 
          + * + * float depth_inches = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The depthInches. + */ + float getDepthInches(); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetChangeLogEntryRequest.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetChangeLogEntryRequest.java new file mode 100644 index 000000000000..9a593f7c895d --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetChangeLogEntryRequest.java @@ -0,0 +1,669 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * A request to get a change log entry.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest} + */ +public final class GetChangeLogEntryRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest) + GetChangeLogEntryRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetChangeLogEntryRequest.newBuilder() to construct. + private GetChangeLogEntryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetChangeLogEntryRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetChangeLogEntryRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetChangeLogEntryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetChangeLogEntryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
          +   * Required. The name of the change log entry.
          +   * Format:
          +   * `projects/{project}/locations/{location}/orders/{order}/changeLogEntries/{change_log_entry}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
          +   * Required. The name of the change log entry.
          +   * Format:
          +   * `projects/{project}/locations/{location}/orders/{order}/changeLogEntries/{change_log_entry}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest other = + (com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * A request to get a change log entry.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest) + com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetChangeLogEntryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetChangeLogEntryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetChangeLogEntryRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest build() { + com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest result = + new com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest) { + return mergeFrom( + (com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
          +     * Required. The name of the change log entry.
          +     * Format:
          +     * `projects/{project}/locations/{location}/orders/{order}/changeLogEntries/{change_log_entry}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Required. The name of the change log entry.
          +     * Format:
          +     * `projects/{project}/locations/{location}/orders/{order}/changeLogEntries/{change_log_entry}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Required. The name of the change log entry.
          +     * Format:
          +     * `projects/{project}/locations/{location}/orders/{order}/changeLogEntries/{change_log_entry}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The name of the change log entry.
          +     * Format:
          +     * `projects/{project}/locations/{location}/orders/{order}/changeLogEntries/{change_log_entry}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The name of the change log entry.
          +     * Format:
          +     * `projects/{project}/locations/{location}/orders/{order}/changeLogEntries/{change_log_entry}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetChangeLogEntryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetChangeLogEntryRequestOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetChangeLogEntryRequestOrBuilder.java new file mode 100644 index 000000000000..6cac014866ec --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetChangeLogEntryRequestOrBuilder.java @@ -0,0 +1,59 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface GetChangeLogEntryRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The name of the change log entry.
          +   * Format:
          +   * `projects/{project}/locations/{location}/orders/{order}/changeLogEntries/{change_log_entry}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
          +   * Required. The name of the change log entry.
          +   * Format:
          +   * `projects/{project}/locations/{location}/orders/{order}/changeLogEntries/{change_log_entry}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetCommentRequest.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetCommentRequest.java new file mode 100644 index 000000000000..ddf65c7f22f4 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetCommentRequest.java @@ -0,0 +1,661 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * A request to get a comment.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest} + */ +public final class GetCommentRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest) + GetCommentRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetCommentRequest.newBuilder() to construct. + private GetCommentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetCommentRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetCommentRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetCommentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetCommentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
          +   * Required. The name of the comment.
          +   * Format:
          +   * `projects/{project}/locations/{location}/orders/{order}/comments/{comment}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
          +   * Required. The name of the comment.
          +   * Format:
          +   * `projects/{project}/locations/{location}/orders/{order}/comments/{comment}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest other = + (com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * A request to get a comment.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest) + com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetCommentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetCommentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest.Builder.class); + } + + // Construct using com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetCommentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest build() { + com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest result = + new com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest) { + return mergeFrom((com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
          +     * Required. The name of the comment.
          +     * Format:
          +     * `projects/{project}/locations/{location}/orders/{order}/comments/{comment}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Required. The name of the comment.
          +     * Format:
          +     * `projects/{project}/locations/{location}/orders/{order}/comments/{comment}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Required. The name of the comment.
          +     * Format:
          +     * `projects/{project}/locations/{location}/orders/{order}/comments/{comment}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The name of the comment.
          +     * Format:
          +     * `projects/{project}/locations/{location}/orders/{order}/comments/{comment}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The name of the comment.
          +     * Format:
          +     * `projects/{project}/locations/{location}/orders/{order}/comments/{comment}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCommentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetCommentRequestOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetCommentRequestOrBuilder.java new file mode 100644 index 000000000000..0359d7ed9f89 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetCommentRequestOrBuilder.java @@ -0,0 +1,59 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface GetCommentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The name of the comment.
          +   * Format:
          +   * `projects/{project}/locations/{location}/orders/{order}/comments/{comment}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
          +   * Required. The name of the comment.
          +   * Format:
          +   * `projects/{project}/locations/{location}/orders/{order}/comments/{comment}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetHardwareGroupRequest.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetHardwareGroupRequest.java new file mode 100644 index 000000000000..67a548c39be5 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetHardwareGroupRequest.java @@ -0,0 +1,666 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * A request to get a hardware group.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest} + */ +public final class GetHardwareGroupRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest) + GetHardwareGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetHardwareGroupRequest.newBuilder() to construct. + private GetHardwareGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetHardwareGroupRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetHardwareGroupRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetHardwareGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetHardwareGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
          +   * Required. The name of the hardware group.
          +   * Format:
          +   * `projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
          +   * Required. The name of the hardware group.
          +   * Format:
          +   * `projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest other = + (com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * A request to get a hardware group.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest) + com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetHardwareGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetHardwareGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest.Builder.class); + } + + // Construct using + // com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetHardwareGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest build() { + com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest result = + new com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest) { + return mergeFrom( + (com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
          +     * Required. The name of the hardware group.
          +     * Format:
          +     * `projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Required. The name of the hardware group.
          +     * Format:
          +     * `projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Required. The name of the hardware group.
          +     * Format:
          +     * `projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The name of the hardware group.
          +     * Format:
          +     * `projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The name of the hardware group.
          +     * Format:
          +     * `projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetHardwareGroupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetHardwareGroupRequestOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetHardwareGroupRequestOrBuilder.java new file mode 100644 index 000000000000..ec668bd09464 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetHardwareGroupRequestOrBuilder.java @@ -0,0 +1,59 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface GetHardwareGroupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The name of the hardware group.
          +   * Format:
          +   * `projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
          +   * Required. The name of the hardware group.
          +   * Format:
          +   * `projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetHardwareRequest.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetHardwareRequest.java new file mode 100644 index 000000000000..45470adee7ad --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetHardwareRequest.java @@ -0,0 +1,656 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * A request to get hardware.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest} + */ +public final class GetHardwareRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest) + GetHardwareRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetHardwareRequest.newBuilder() to construct. + private GetHardwareRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetHardwareRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetHardwareRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetHardwareRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetHardwareRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
          +   * Required. The name of the hardware.
          +   * Format: `projects/{project}/locations/{location}/hardware/{hardware}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
          +   * Required. The name of the hardware.
          +   * Format: `projects/{project}/locations/{location}/hardware/{hardware}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest other = + (com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * A request to get hardware.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest) + com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetHardwareRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetHardwareRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest.Builder.class); + } + + // Construct using + // com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetHardwareRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest build() { + com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest result = + new com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest) { + return mergeFrom((com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
          +     * Required. The name of the hardware.
          +     * Format: `projects/{project}/locations/{location}/hardware/{hardware}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Required. The name of the hardware.
          +     * Format: `projects/{project}/locations/{location}/hardware/{hardware}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Required. The name of the hardware.
          +     * Format: `projects/{project}/locations/{location}/hardware/{hardware}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The name of the hardware.
          +     * Format: `projects/{project}/locations/{location}/hardware/{hardware}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The name of the hardware.
          +     * Format: `projects/{project}/locations/{location}/hardware/{hardware}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetHardwareRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetHardwareRequestOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetHardwareRequestOrBuilder.java new file mode 100644 index 000000000000..4726e7d16606 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetHardwareRequestOrBuilder.java @@ -0,0 +1,57 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface GetHardwareRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The name of the hardware.
          +   * Format: `projects/{project}/locations/{location}/hardware/{hardware}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
          +   * Required. The name of the hardware.
          +   * Format: `projects/{project}/locations/{location}/hardware/{hardware}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetOrderRequest.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetOrderRequest.java new file mode 100644 index 000000000000..9f098ebf0fdd --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetOrderRequest.java @@ -0,0 +1,646 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * A request to get an order.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest} + */ +public final class GetOrderRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest) + GetOrderRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetOrderRequest.newBuilder() to construct. + private GetOrderRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetOrderRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetOrderRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetOrderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetOrderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
          +   * Required. Name of the resource
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
          +   * Required. Name of the resource
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest other = + (com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * A request to get an order.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest) + com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetOrderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetOrderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest.Builder.class); + } + + // Construct using com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetOrderRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest build() { + com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest result = + new com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest) { + return mergeFrom((com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
          +     * Required. Name of the resource
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Required. Name of the resource
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Required. Name of the resource
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Name of the resource
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Name of the resource
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetOrderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetOrderRequestOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetOrderRequestOrBuilder.java new file mode 100644 index 000000000000..a7d8d430c2d4 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetOrderRequestOrBuilder.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface GetOrderRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. Name of the resource
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
          +   * Required. Name of the resource
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetSiteRequest.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetSiteRequest.java new file mode 100644 index 000000000000..663b35c17952 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetSiteRequest.java @@ -0,0 +1,651 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * A request to get a site.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest} + */ +public final class GetSiteRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest) + GetSiteRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetSiteRequest.newBuilder() to construct. + private GetSiteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetSiteRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetSiteRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetSiteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetSiteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
          +   * Required. The name of the site.
          +   * Format: `projects/{project}/locations/{location}/sites/{site}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
          +   * Required. The name of the site.
          +   * Format: `projects/{project}/locations/{location}/sites/{site}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest other = + (com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * A request to get a site.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest) + com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetSiteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetSiteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest.Builder.class); + } + + // Construct using com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetSiteRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest build() { + com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest result = + new com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest) { + return mergeFrom((com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
          +     * Required. The name of the site.
          +     * Format: `projects/{project}/locations/{location}/sites/{site}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Required. The name of the site.
          +     * Format: `projects/{project}/locations/{location}/sites/{site}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Required. The name of the site.
          +     * Format: `projects/{project}/locations/{location}/sites/{site}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The name of the site.
          +     * Format: `projects/{project}/locations/{location}/sites/{site}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The name of the site.
          +     * Format: `projects/{project}/locations/{location}/sites/{site}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSiteRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetSiteRequestOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetSiteRequestOrBuilder.java new file mode 100644 index 000000000000..8356e86a9acd --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetSiteRequestOrBuilder.java @@ -0,0 +1,57 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface GetSiteRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The name of the site.
          +   * Format: `projects/{project}/locations/{location}/sites/{site}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
          +   * Required. The name of the site.
          +   * Format: `projects/{project}/locations/{location}/sites/{site}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetSkuRequest.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetSkuRequest.java new file mode 100644 index 000000000000..6f1272c6721f --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetSkuRequest.java @@ -0,0 +1,651 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * A request to get an SKU.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest} + */ +public final class GetSkuRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest) + GetSkuRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetSkuRequest.newBuilder() to construct. + private GetSkuRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetSkuRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetSkuRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetSkuRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetSkuRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
          +   * Required. The name of the SKU.
          +   * Format: `projects/{project}/locations/{location}/skus/{sku}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
          +   * Required. The name of the SKU.
          +   * Format: `projects/{project}/locations/{location}/skus/{sku}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest other = + (com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * A request to get an SKU.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest) + com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetSkuRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetSkuRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest.Builder.class); + } + + // Construct using com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetSkuRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest build() { + com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest result = + new com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest) { + return mergeFrom((com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
          +     * Required. The name of the SKU.
          +     * Format: `projects/{project}/locations/{location}/skus/{sku}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Required. The name of the SKU.
          +     * Format: `projects/{project}/locations/{location}/skus/{sku}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Required. The name of the SKU.
          +     * Format: `projects/{project}/locations/{location}/skus/{sku}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The name of the SKU.
          +     * Format: `projects/{project}/locations/{location}/skus/{sku}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The name of the SKU.
          +     * Format: `projects/{project}/locations/{location}/skus/{sku}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSkuRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetSkuRequestOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetSkuRequestOrBuilder.java new file mode 100644 index 000000000000..7062bc83118a --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetSkuRequestOrBuilder.java @@ -0,0 +1,57 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface GetSkuRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The name of the SKU.
          +   * Format: `projects/{project}/locations/{location}/skus/{sku}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
          +   * Required. The name of the SKU.
          +   * Format: `projects/{project}/locations/{location}/skus/{sku}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetZoneRequest.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetZoneRequest.java new file mode 100644 index 000000000000..68431f991042 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetZoneRequest.java @@ -0,0 +1,651 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * A request to get a zone.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest} + */ +public final class GetZoneRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest) + GetZoneRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetZoneRequest.newBuilder() to construct. + private GetZoneRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetZoneRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetZoneRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetZoneRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetZoneRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
          +   * Required. The name of the zone.
          +   * Format: `projects/{project}/locations/{location}/zones/{zone}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
          +   * Required. The name of the zone.
          +   * Format: `projects/{project}/locations/{location}/zones/{zone}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest other = + (com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * A request to get a zone.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest) + com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetZoneRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetZoneRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest.Builder.class); + } + + // Construct using com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetZoneRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest build() { + com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest result = + new com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest) { + return mergeFrom((com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
          +     * Required. The name of the zone.
          +     * Format: `projects/{project}/locations/{location}/zones/{zone}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Required. The name of the zone.
          +     * Format: `projects/{project}/locations/{location}/zones/{zone}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Required. The name of the zone.
          +     * Format: `projects/{project}/locations/{location}/zones/{zone}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The name of the zone.
          +     * Format: `projects/{project}/locations/{location}/zones/{zone}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The name of the zone.
          +     * Format: `projects/{project}/locations/{location}/zones/{zone}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetZoneRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetZoneRequestOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetZoneRequestOrBuilder.java new file mode 100644 index 000000000000..af7703991835 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/GetZoneRequestOrBuilder.java @@ -0,0 +1,57 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface GetZoneRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The name of the zone.
          +   * Format: `projects/{project}/locations/{location}/zones/{zone}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
          +   * Required. The name of the zone.
          +   * Format: `projects/{project}/locations/{location}/zones/{zone}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Hardware.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Hardware.java new file mode 100644 index 000000000000..f4e2eb0fc01a --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Hardware.java @@ -0,0 +1,5004 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * An instance of hardware installed at a site.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.Hardware} + */ +public final class Hardware extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.Hardware) + HardwareOrBuilder { + private static final long serialVersionUID = 0L; + // Use Hardware.newBuilder() to construct. + private Hardware(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Hardware() { + name_ = ""; + displayName_ = ""; + order_ = ""; + hardwareGroup_ = ""; + site_ = ""; + state_ = 0; + ciqUri_ = ""; + zone_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Hardware(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 5: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.class, + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.Builder.class); + } + + /** + * + * + *
          +   * Valid states for hardware.
          +   * 
          + * + * Protobuf enum {@code google.cloud.gdchardwaremanagement.v1alpha.Hardware.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
          +     * State of the Hardware is unspecified.
          +     * 
          + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
          +     * More information is required from the customer to make progress.
          +     * 
          + * + * ADDITIONAL_INFO_NEEDED = 1; + */ + ADDITIONAL_INFO_NEEDED(1), + /** + * + * + *
          +     * Google has initiated building hardware for this Hardware.
          +     * 
          + * + * BUILDING = 2; + */ + BUILDING(2), + /** + * + * + *
          +     * The hardware has been built and is being shipped.
          +     * 
          + * + * SHIPPING = 3; + */ + SHIPPING(3), + /** + * + * + *
          +     * The hardware is being installed.
          +     * 
          + * + * INSTALLING = 4; + */ + INSTALLING(4), + /** + * + * + *
          +     * The hardware has been installed.
          +     * 
          + * + * INSTALLED = 5; + */ + INSTALLED(5), + /** + * + * + *
          +     * An error occurred and customer intervention is required.
          +     * 
          + * + * FAILED = 6; + */ + FAILED(6), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
          +     * State of the Hardware is unspecified.
          +     * 
          + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
          +     * More information is required from the customer to make progress.
          +     * 
          + * + * ADDITIONAL_INFO_NEEDED = 1; + */ + public static final int ADDITIONAL_INFO_NEEDED_VALUE = 1; + /** + * + * + *
          +     * Google has initiated building hardware for this Hardware.
          +     * 
          + * + * BUILDING = 2; + */ + public static final int BUILDING_VALUE = 2; + /** + * + * + *
          +     * The hardware has been built and is being shipped.
          +     * 
          + * + * SHIPPING = 3; + */ + public static final int SHIPPING_VALUE = 3; + /** + * + * + *
          +     * The hardware is being installed.
          +     * 
          + * + * INSTALLING = 4; + */ + public static final int INSTALLING_VALUE = 4; + /** + * + * + *
          +     * The hardware has been installed.
          +     * 
          + * + * INSTALLED = 5; + */ + public static final int INSTALLED_VALUE = 5; + /** + * + * + *
          +     * An error occurred and customer intervention is required.
          +     * 
          + * + * FAILED = 6; + */ + public static final int FAILED_VALUE = 6; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ADDITIONAL_INFO_NEEDED; + case 2: + return BUILDING; + case 3: + return SHIPPING; + case 4: + return INSTALLING; + case 5: + return INSTALLED; + case 6: + return FAILED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.gdchardwaremanagement.v1alpha.Hardware.State) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
          +   * Identifier. Name of this hardware.
          +   * Format: `projects/{project}/locations/{location}/hardware/{hardware}`
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
          +   * Identifier. Name of this hardware.
          +   * Format: `projects/{project}/locations/{location}/hardware/{hardware}`
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
          +   * Optional. Display name for this hardware.
          +   * 
          + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. Display name for this hardware.
          +   * 
          + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
          +   * Output only. Time when this hardware was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
          +   * Output only. Time when this hardware was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
          +   * Output only. Time when this hardware was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
          +   * Output only. Time when this hardware was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
          +   * Output only. Time when this hardware was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
          +   * Output only. Time when this hardware was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int LABELS_FIELD_NUMBER = 5; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
          +   * Optional. Labels associated with this hardware as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
          +   * Optional. Labels associated with this hardware as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
          +   * Optional. Labels associated with this hardware as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
          +   * Optional. Labels associated with this hardware as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int ORDER_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object order_ = ""; + /** + * + * + *
          +   * Required. Name of the order that this hardware belongs to.
          +   * Format: `projects/{project}/locations/{location}/orders/{order}`
          +   * 
          + * + * + * string order = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The order. + */ + @java.lang.Override + public java.lang.String getOrder() { + java.lang.Object ref = order_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + order_ = s; + return s; + } + } + /** + * + * + *
          +   * Required. Name of the order that this hardware belongs to.
          +   * Format: `projects/{project}/locations/{location}/orders/{order}`
          +   * 
          + * + * + * string order = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for order. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderBytes() { + java.lang.Object ref = order_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + order_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HARDWARE_GROUP_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object hardwareGroup_ = ""; + /** + * + * + *
          +   * Output only. Name for the hardware group that this hardware belongs to.
          +   * Format:
          +   * `projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}`
          +   * 
          + * + * + * string hardware_group = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The hardwareGroup. + */ + @java.lang.Override + public java.lang.String getHardwareGroup() { + java.lang.Object ref = hardwareGroup_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hardwareGroup_ = s; + return s; + } + } + /** + * + * + *
          +   * Output only. Name for the hardware group that this hardware belongs to.
          +   * Format:
          +   * `projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}`
          +   * 
          + * + * + * string hardware_group = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for hardwareGroup. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHardwareGroupBytes() { + java.lang.Object ref = hardwareGroup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hardwareGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SITE_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object site_ = ""; + /** + * + * + *
          +   * Required. Name for the site that this hardware belongs to.
          +   * Format: `projects/{project}/locations/{location}/sites/{site}`
          +   * 
          + * + * + * string site = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The site. + */ + @java.lang.Override + public java.lang.String getSite() { + java.lang.Object ref = site_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + site_ = s; + return s; + } + } + /** + * + * + *
          +   * Required. Name for the site that this hardware belongs to.
          +   * Format: `projects/{project}/locations/{location}/sites/{site}`
          +   * 
          + * + * + * string site = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for site. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSiteBytes() { + java.lang.Object ref = site_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + site_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 9; + private int state_ = 0; + /** + * + * + *
          +   * Output only. Current state for this hardware.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Hardware.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
          +   * Output only. Current state for this hardware.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Hardware.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.State getState() { + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.State result = + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.State.forNumber(state_); + return result == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.State.UNRECOGNIZED + : result; + } + + public static final int CIQ_URI_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object ciqUri_ = ""; + /** + * + * + *
          +   * Output only. Link to the Customer Intake Questionnaire (CIQ) sheet for this
          +   * Hardware.
          +   * 
          + * + * string ciq_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ciqUri. + */ + @java.lang.Override + public java.lang.String getCiqUri() { + java.lang.Object ref = ciqUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ciqUri_ = s; + return s; + } + } + /** + * + * + *
          +   * Output only. Link to the Customer Intake Questionnaire (CIQ) sheet for this
          +   * Hardware.
          +   * 
          + * + * string ciq_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ciqUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCiqUriBytes() { + java.lang.Object ref = ciqUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ciqUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONFIG_FIELD_NUMBER = 11; + private com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig config_; + /** + * + * + *
          +   * Required. Configuration for this hardware.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig config = 11 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the config field is set. + */ + @java.lang.Override + public boolean hasConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
          +   * Required. Configuration for this hardware.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig config = 11 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The config. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig getConfig() { + return config_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig.getDefaultInstance() + : config_; + } + /** + * + * + *
          +   * Required. Configuration for this hardware.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig config = 11 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfigOrBuilder + getConfigOrBuilder() { + return config_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig.getDefaultInstance() + : config_; + } + + public static final int ESTIMATED_INSTALLATION_DATE_FIELD_NUMBER = 12; + private com.google.type.Date estimatedInstallationDate_; + /** + * + * + *
          +   * Output only. Estimated installation date for this hardware.
          +   * 
          + * + * + * .google.type.Date estimated_installation_date = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the estimatedInstallationDate field is set. + */ + @java.lang.Override + public boolean hasEstimatedInstallationDate() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
          +   * Output only. Estimated installation date for this hardware.
          +   * 
          + * + * + * .google.type.Date estimated_installation_date = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The estimatedInstallationDate. + */ + @java.lang.Override + public com.google.type.Date getEstimatedInstallationDate() { + return estimatedInstallationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : estimatedInstallationDate_; + } + /** + * + * + *
          +   * Output only. Estimated installation date for this hardware.
          +   * 
          + * + * + * .google.type.Date estimated_installation_date = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.type.DateOrBuilder getEstimatedInstallationDateOrBuilder() { + return estimatedInstallationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : estimatedInstallationDate_; + } + + public static final int PHYSICAL_INFO_FIELD_NUMBER = 13; + private com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo physicalInfo_; + /** + * + * + *
          +   * Optional. Physical properties of this hardware.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo physical_info = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the physicalInfo field is set. + */ + @java.lang.Override + public boolean hasPhysicalInfo() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
          +   * Optional. Physical properties of this hardware.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo physical_info = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The physicalInfo. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo getPhysicalInfo() { + return physicalInfo_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.getDefaultInstance() + : physicalInfo_; + } + /** + * + * + *
          +   * Optional. Physical properties of this hardware.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo physical_info = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfoOrBuilder + getPhysicalInfoOrBuilder() { + return physicalInfo_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.getDefaultInstance() + : physicalInfo_; + } + + public static final int INSTALLATION_INFO_FIELD_NUMBER = 14; + private com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo installationInfo_; + /** + * + * + *
          +   * Optional. Information for installation of this hardware.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo installation_info = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the installationInfo field is set. + */ + @java.lang.Override + public boolean hasInstallationInfo() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
          +   * Optional. Information for installation of this hardware.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo installation_info = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The installationInfo. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo + getInstallationInfo() { + return installationInfo_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo + .getDefaultInstance() + : installationInfo_; + } + /** + * + * + *
          +   * Optional. Information for installation of this hardware.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo installation_info = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfoOrBuilder + getInstallationInfoOrBuilder() { + return installationInfo_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo + .getDefaultInstance() + : installationInfo_; + } + + public static final int ZONE_FIELD_NUMBER = 15; + + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + /** + * + * + *
          +   * Required. Name for the zone that this hardware belongs to.
          +   * Format: `projects/{project}/locations/{location}/zones/{zone}`
          +   * 
          + * + * + * string zone = 15 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The zone. + */ + @java.lang.Override + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + * + * + *
          +   * Required. Name for the zone that this hardware belongs to.
          +   * Format: `projects/{project}/locations/{location}/zones/{zone}`
          +   * 
          + * + * + * string zone = 15 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for zone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUESTED_INSTALLATION_DATE_FIELD_NUMBER = 16; + private com.google.type.Date requestedInstallationDate_; + /** + * + * + *
          +   * Optional. Requested installation date for this hardware. This is
          +   * auto-populated when the order is accepted, if the hardware's HardwareGroup
          +   * specifies this. It can also be filled in by the customer.
          +   * 
          + * + * + * .google.type.Date requested_installation_date = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the requestedInstallationDate field is set. + */ + @java.lang.Override + public boolean hasRequestedInstallationDate() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
          +   * Optional. Requested installation date for this hardware. This is
          +   * auto-populated when the order is accepted, if the hardware's HardwareGroup
          +   * specifies this. It can also be filled in by the customer.
          +   * 
          + * + * + * .google.type.Date requested_installation_date = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The requestedInstallationDate. + */ + @java.lang.Override + public com.google.type.Date getRequestedInstallationDate() { + return requestedInstallationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : requestedInstallationDate_; + } + /** + * + * + *
          +   * Optional. Requested installation date for this hardware. This is
          +   * auto-populated when the order is accepted, if the hardware's HardwareGroup
          +   * specifies this. It can also be filled in by the customer.
          +   * 
          + * + * + * .google.type.Date requested_installation_date = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.type.DateOrBuilder getRequestedInstallationDateOrBuilder() { + return requestedInstallationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : requestedInstallationDate_; + } + + public static final int ACTUAL_INSTALLATION_DATE_FIELD_NUMBER = 17; + private com.google.type.Date actualInstallationDate_; + /** + * + * + *
          +   * Output only. Actual installation date for this hardware. Filled in by
          +   * Google.
          +   * 
          + * + * + * .google.type.Date actual_installation_date = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the actualInstallationDate field is set. + */ + @java.lang.Override + public boolean hasActualInstallationDate() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
          +   * Output only. Actual installation date for this hardware. Filled in by
          +   * Google.
          +   * 
          + * + * + * .google.type.Date actual_installation_date = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The actualInstallationDate. + */ + @java.lang.Override + public com.google.type.Date getActualInstallationDate() { + return actualInstallationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : actualInstallationDate_; + } + /** + * + * + *
          +   * Output only. Actual installation date for this hardware. Filled in by
          +   * Google.
          +   * 
          + * + * + * .google.type.Date actual_installation_date = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.type.DateOrBuilder getActualInstallationDateOrBuilder() { + return actualInstallationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : actualInstallationDate_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getUpdateTime()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 5); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(order_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, order_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hardwareGroup_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, hardwareGroup_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(site_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, site_); + } + if (state_ + != com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(9, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ciqUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, ciqUri_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(11, getConfig()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(12, getEstimatedInstallationDate()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(13, getPhysicalInfo()); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(14, getInstallationInfo()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 15, zone_); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(16, getRequestedInstallationDate()); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(17, getActualInstallationDate()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, labels__); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(order_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, order_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hardwareGroup_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, hardwareGroup_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(site_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, site_); + } + if (state_ + != com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ciqUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, ciqUri_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getConfig()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, getEstimatedInstallationDate()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getPhysicalInfo()); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getInstallationInfo()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, zone_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 16, getRequestedInstallationDate()); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(17, getActualInstallationDate()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.Hardware)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware other = + (com.google.cloud.gdchardwaremanagement.v1alpha.Hardware) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getOrder().equals(other.getOrder())) return false; + if (!getHardwareGroup().equals(other.getHardwareGroup())) return false; + if (!getSite().equals(other.getSite())) return false; + if (state_ != other.state_) return false; + if (!getCiqUri().equals(other.getCiqUri())) return false; + if (hasConfig() != other.hasConfig()) return false; + if (hasConfig()) { + if (!getConfig().equals(other.getConfig())) return false; + } + if (hasEstimatedInstallationDate() != other.hasEstimatedInstallationDate()) return false; + if (hasEstimatedInstallationDate()) { + if (!getEstimatedInstallationDate().equals(other.getEstimatedInstallationDate())) + return false; + } + if (hasPhysicalInfo() != other.hasPhysicalInfo()) return false; + if (hasPhysicalInfo()) { + if (!getPhysicalInfo().equals(other.getPhysicalInfo())) return false; + } + if (hasInstallationInfo() != other.hasInstallationInfo()) return false; + if (hasInstallationInfo()) { + if (!getInstallationInfo().equals(other.getInstallationInfo())) return false; + } + if (!getZone().equals(other.getZone())) return false; + if (hasRequestedInstallationDate() != other.hasRequestedInstallationDate()) return false; + if (hasRequestedInstallationDate()) { + if (!getRequestedInstallationDate().equals(other.getRequestedInstallationDate())) + return false; + } + if (hasActualInstallationDate() != other.hasActualInstallationDate()) return false; + if (hasActualInstallationDate()) { + if (!getActualInstallationDate().equals(other.getActualInstallationDate())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + ORDER_FIELD_NUMBER; + hash = (53 * hash) + getOrder().hashCode(); + hash = (37 * hash) + HARDWARE_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getHardwareGroup().hashCode(); + hash = (37 * hash) + SITE_FIELD_NUMBER; + hash = (53 * hash) + getSite().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + CIQ_URI_FIELD_NUMBER; + hash = (53 * hash) + getCiqUri().hashCode(); + if (hasConfig()) { + hash = (37 * hash) + CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getConfig().hashCode(); + } + if (hasEstimatedInstallationDate()) { + hash = (37 * hash) + ESTIMATED_INSTALLATION_DATE_FIELD_NUMBER; + hash = (53 * hash) + getEstimatedInstallationDate().hashCode(); + } + if (hasPhysicalInfo()) { + hash = (37 * hash) + PHYSICAL_INFO_FIELD_NUMBER; + hash = (53 * hash) + getPhysicalInfo().hashCode(); + } + if (hasInstallationInfo()) { + hash = (37 * hash) + INSTALLATION_INFO_FIELD_NUMBER; + hash = (53 * hash) + getInstallationInfo().hashCode(); + } + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + if (hasRequestedInstallationDate()) { + hash = (37 * hash) + REQUESTED_INSTALLATION_DATE_FIELD_NUMBER; + hash = (53 * hash) + getRequestedInstallationDate().hashCode(); + } + if (hasActualInstallationDate()) { + hash = (37 * hash) + ACTUAL_INSTALLATION_DATE_FIELD_NUMBER; + hash = (53 * hash) + getActualInstallationDate().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Hardware parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Hardware parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Hardware parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Hardware parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Hardware parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Hardware parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Hardware parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Hardware parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Hardware parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Hardware parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Hardware parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Hardware parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * An instance of hardware installed at a site.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.Hardware} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.Hardware) + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 5: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 5: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.class, + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.Builder.class); + } + + // Construct using com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + getConfigFieldBuilder(); + getEstimatedInstallationDateFieldBuilder(); + getPhysicalInfoFieldBuilder(); + getInstallationInfoFieldBuilder(); + getRequestedInstallationDateFieldBuilder(); + getActualInstallationDateFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + order_ = ""; + hardwareGroup_ = ""; + site_ = ""; + state_ = 0; + ciqUri_ = ""; + config_ = null; + if (configBuilder_ != null) { + configBuilder_.dispose(); + configBuilder_ = null; + } + estimatedInstallationDate_ = null; + if (estimatedInstallationDateBuilder_ != null) { + estimatedInstallationDateBuilder_.dispose(); + estimatedInstallationDateBuilder_ = null; + } + physicalInfo_ = null; + if (physicalInfoBuilder_ != null) { + physicalInfoBuilder_.dispose(); + physicalInfoBuilder_ = null; + } + installationInfo_ = null; + if (installationInfoBuilder_ != null) { + installationInfoBuilder_.dispose(); + installationInfoBuilder_ = null; + } + zone_ = ""; + requestedInstallationDate_ = null; + if (requestedInstallationDateBuilder_ != null) { + requestedInstallationDateBuilder_.dispose(); + requestedInstallationDateBuilder_ = null; + } + actualInstallationDate_ = null; + if (actualInstallationDateBuilder_ != null) { + actualInstallationDateBuilder_.dispose(); + actualInstallationDateBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware build() { + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware result = + new com.google.cloud.gdchardwaremanagement.v1alpha.Hardware(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gdchardwaremanagement.v1alpha.Hardware result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.order_ = order_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.hardwareGroup_ = hardwareGroup_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.site_ = site_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.ciqUri_ = ciqUri_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.config_ = configBuilder_ == null ? config_ : configBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.estimatedInstallationDate_ = + estimatedInstallationDateBuilder_ == null + ? estimatedInstallationDate_ + : estimatedInstallationDateBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.physicalInfo_ = + physicalInfoBuilder_ == null ? physicalInfo_ : physicalInfoBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.installationInfo_ = + installationInfoBuilder_ == null ? installationInfo_ : installationInfoBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.requestedInstallationDate_ = + requestedInstallationDateBuilder_ == null + ? requestedInstallationDate_ + : requestedInstallationDateBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.actualInstallationDate_ = + actualInstallationDateBuilder_ == null + ? actualInstallationDate_ + : actualInstallationDateBuilder_.build(); + to_bitField0_ |= 0x00000080; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.Hardware) { + return mergeFrom((com.google.cloud.gdchardwaremanagement.v1alpha.Hardware) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gdchardwaremanagement.v1alpha.Hardware other) { + if (other == com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000010; + if (!other.getOrder().isEmpty()) { + order_ = other.order_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getHardwareGroup().isEmpty()) { + hardwareGroup_ = other.hardwareGroup_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.getSite().isEmpty()) { + site_ = other.site_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getCiqUri().isEmpty()) { + ciqUri_ = other.ciqUri_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (other.hasConfig()) { + mergeConfig(other.getConfig()); + } + if (other.hasEstimatedInstallationDate()) { + mergeEstimatedInstallationDate(other.getEstimatedInstallationDate()); + } + if (other.hasPhysicalInfo()) { + mergePhysicalInfo(other.getPhysicalInfo()); + } + if (other.hasInstallationInfo()) { + mergeInstallationInfo(other.getInstallationInfo()); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00004000; + onChanged(); + } + if (other.hasRequestedInstallationDate()) { + mergeRequestedInstallationDate(other.getRequestedInstallationDate()); + } + if (other.hasActualInstallationDate()) { + mergeActualInstallationDate(other.getActualInstallationDate()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + order_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + hardwareGroup_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + site_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 72: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 82: + { + ciqUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: + { + input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: + { + input.readMessage( + getEstimatedInstallationDateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 98 + case 106: + { + input.readMessage(getPhysicalInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 106 + case 114: + { + input.readMessage( + getInstallationInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00002000; + break; + } // case 114 + case 122: + { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00004000; + break; + } // case 122 + case 130: + { + input.readMessage( + getRequestedInstallationDateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00008000; + break; + } // case 130 + case 138: + { + input.readMessage( + getActualInstallationDateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00010000; + break; + } // case 138 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
          +     * Identifier. Name of this hardware.
          +     * Format: `projects/{project}/locations/{location}/hardware/{hardware}`
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Identifier. Name of this hardware.
          +     * Format: `projects/{project}/locations/{location}/hardware/{hardware}`
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Identifier. Name of this hardware.
          +     * Format: `projects/{project}/locations/{location}/hardware/{hardware}`
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Identifier. Name of this hardware.
          +     * Format: `projects/{project}/locations/{location}/hardware/{hardware}`
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * Identifier. Name of this hardware.
          +     * Format: `projects/{project}/locations/{location}/hardware/{hardware}`
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
          +     * Optional. Display name for this hardware.
          +     * 
          + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. Display name for this hardware.
          +     * 
          + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. Display name for this hardware.
          +     * 
          + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Display name for this hardware.
          +     * 
          + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Display name for this hardware.
          +     * 
          + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
          +     * Output only. Time when this hardware was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
          +     * Output only. Time when this hardware was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Output only. Time when this hardware was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Time when this hardware was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Time when this hardware was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Output only. Time when this hardware was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Time when this hardware was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Output only. Time when this hardware was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
          +     * Output only. Time when this hardware was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
          +     * Output only. Time when this hardware was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
          +     * Output only. Time when this hardware was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Output only. Time when this hardware was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Time when this hardware was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Time when this hardware was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Output only. Time when this hardware was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Time when this hardware was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Output only. Time when this hardware was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
          +     * Output only. Time when this hardware was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000010; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
          +     * Optional. Labels associated with this hardware as key value pairs.
          +     * For more information about labels, see [Create and manage
          +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +     * 
          + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
          +     * Optional. Labels associated with this hardware as key value pairs.
          +     * For more information about labels, see [Create and manage
          +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +     * 
          + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
          +     * Optional. Labels associated with this hardware as key value pairs.
          +     * For more information about labels, see [Create and manage
          +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +     * 
          + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
          +     * Optional. Labels associated with this hardware as key value pairs.
          +     * For more information about labels, see [Create and manage
          +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +     * 
          + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000010); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + /** + * + * + *
          +     * Optional. Labels associated with this hardware as key value pairs.
          +     * For more information about labels, see [Create and manage
          +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +     * 
          + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000010; + return internalGetMutableLabels().getMutableMap(); + } + /** + * + * + *
          +     * Optional. Labels associated with this hardware as key value pairs.
          +     * For more information about labels, see [Create and manage
          +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +     * 
          + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000010; + return this; + } + /** + * + * + *
          +     * Optional. Labels associated with this hardware as key value pairs.
          +     * For more information about labels, see [Create and manage
          +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +     * 
          + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000010; + return this; + } + + private java.lang.Object order_ = ""; + /** + * + * + *
          +     * Required. Name of the order that this hardware belongs to.
          +     * Format: `projects/{project}/locations/{location}/orders/{order}`
          +     * 
          + * + * + * string order = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The order. + */ + public java.lang.String getOrder() { + java.lang.Object ref = order_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + order_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Required. Name of the order that this hardware belongs to.
          +     * Format: `projects/{project}/locations/{location}/orders/{order}`
          +     * 
          + * + * + * string order = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for order. + */ + public com.google.protobuf.ByteString getOrderBytes() { + java.lang.Object ref = order_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + order_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Required. Name of the order that this hardware belongs to.
          +     * Format: `projects/{project}/locations/{location}/orders/{order}`
          +     * 
          + * + * + * string order = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The order to set. + * @return This builder for chaining. + */ + public Builder setOrder(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + order_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Name of the order that this hardware belongs to.
          +     * Format: `projects/{project}/locations/{location}/orders/{order}`
          +     * 
          + * + * + * string order = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearOrder() { + order_ = getDefaultInstance().getOrder(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Name of the order that this hardware belongs to.
          +     * Format: `projects/{project}/locations/{location}/orders/{order}`
          +     * 
          + * + * + * string order = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for order to set. + * @return This builder for chaining. + */ + public Builder setOrderBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + order_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object hardwareGroup_ = ""; + /** + * + * + *
          +     * Output only. Name for the hardware group that this hardware belongs to.
          +     * Format:
          +     * `projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}`
          +     * 
          + * + * + * string hardware_group = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The hardwareGroup. + */ + public java.lang.String getHardwareGroup() { + java.lang.Object ref = hardwareGroup_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hardwareGroup_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Output only. Name for the hardware group that this hardware belongs to.
          +     * Format:
          +     * `projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}`
          +     * 
          + * + * + * string hardware_group = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for hardwareGroup. + */ + public com.google.protobuf.ByteString getHardwareGroupBytes() { + java.lang.Object ref = hardwareGroup_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hardwareGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Output only. Name for the hardware group that this hardware belongs to.
          +     * Format:
          +     * `projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}`
          +     * 
          + * + * + * string hardware_group = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The hardwareGroup to set. + * @return This builder for chaining. + */ + public Builder setHardwareGroup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + hardwareGroup_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Name for the hardware group that this hardware belongs to.
          +     * Format:
          +     * `projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}`
          +     * 
          + * + * + * string hardware_group = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearHardwareGroup() { + hardwareGroup_ = getDefaultInstance().getHardwareGroup(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Name for the hardware group that this hardware belongs to.
          +     * Format:
          +     * `projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}`
          +     * 
          + * + * + * string hardware_group = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for hardwareGroup to set. + * @return This builder for chaining. + */ + public Builder setHardwareGroupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + hardwareGroup_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object site_ = ""; + /** + * + * + *
          +     * Required. Name for the site that this hardware belongs to.
          +     * Format: `projects/{project}/locations/{location}/sites/{site}`
          +     * 
          + * + * + * string site = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The site. + */ + public java.lang.String getSite() { + java.lang.Object ref = site_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + site_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Required. Name for the site that this hardware belongs to.
          +     * Format: `projects/{project}/locations/{location}/sites/{site}`
          +     * 
          + * + * + * string site = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for site. + */ + public com.google.protobuf.ByteString getSiteBytes() { + java.lang.Object ref = site_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + site_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Required. Name for the site that this hardware belongs to.
          +     * Format: `projects/{project}/locations/{location}/sites/{site}`
          +     * 
          + * + * + * string site = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The site to set. + * @return This builder for chaining. + */ + public Builder setSite(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + site_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Name for the site that this hardware belongs to.
          +     * Format: `projects/{project}/locations/{location}/sites/{site}`
          +     * 
          + * + * + * string site = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearSite() { + site_ = getDefaultInstance().getSite(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Name for the site that this hardware belongs to.
          +     * Format: `projects/{project}/locations/{location}/sites/{site}`
          +     * 
          + * + * + * string site = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for site to set. + * @return This builder for chaining. + */ + public Builder setSiteBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + site_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * + * + *
          +     * Output only. Current state for this hardware.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Hardware.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
          +     * Output only. Current state for this hardware.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Hardware.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Current state for this hardware.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Hardware.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.State getState() { + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.State result = + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.State.forNumber(state_); + return result == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.State.UNRECOGNIZED + : result; + } + /** + * + * + *
          +     * Output only. Current state for this hardware.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Hardware.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000100; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Current state for this hardware.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Hardware.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000100); + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object ciqUri_ = ""; + /** + * + * + *
          +     * Output only. Link to the Customer Intake Questionnaire (CIQ) sheet for this
          +     * Hardware.
          +     * 
          + * + * string ciq_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ciqUri. + */ + public java.lang.String getCiqUri() { + java.lang.Object ref = ciqUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ciqUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Output only. Link to the Customer Intake Questionnaire (CIQ) sheet for this
          +     * Hardware.
          +     * 
          + * + * string ciq_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ciqUri. + */ + public com.google.protobuf.ByteString getCiqUriBytes() { + java.lang.Object ref = ciqUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ciqUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Output only. Link to the Customer Intake Questionnaire (CIQ) sheet for this
          +     * Hardware.
          +     * 
          + * + * string ciq_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The ciqUri to set. + * @return This builder for chaining. + */ + public Builder setCiqUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ciqUri_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Link to the Customer Intake Questionnaire (CIQ) sheet for this
          +     * Hardware.
          +     * 
          + * + * string ciq_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearCiqUri() { + ciqUri_ = getDefaultInstance().getCiqUri(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Link to the Customer Intake Questionnaire (CIQ) sheet for this
          +     * Hardware.
          +     * 
          + * + * string ciq_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for ciqUri to set. + * @return This builder for chaining. + */ + public Builder setCiqUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ciqUri_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig config_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfigOrBuilder> + configBuilder_; + /** + * + * + *
          +     * Required. Configuration for this hardware.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig config = 11 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the config field is set. + */ + public boolean hasConfig() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + * + * + *
          +     * Required. Configuration for this hardware.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig config = 11 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The config. + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig getConfig() { + if (configBuilder_ == null) { + return config_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig.getDefaultInstance() + : config_; + } else { + return configBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Required. Configuration for this hardware.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig config = 11 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setConfig(com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig value) { + if (configBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + config_ = value; + } else { + configBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Configuration for this hardware.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig config = 11 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setConfig( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig.Builder builderForValue) { + if (configBuilder_ == null) { + config_ = builderForValue.build(); + } else { + configBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Configuration for this hardware.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig config = 11 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeConfig( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig value) { + if (configBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && config_ != null + && config_ + != com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig + .getDefaultInstance()) { + getConfigBuilder().mergeFrom(value); + } else { + config_ = value; + } + } else { + configBuilder_.mergeFrom(value); + } + if (config_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Required. Configuration for this hardware.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig config = 11 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearConfig() { + bitField0_ = (bitField0_ & ~0x00000400); + config_ = null; + if (configBuilder_ != null) { + configBuilder_.dispose(); + configBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Configuration for this hardware.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig config = 11 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig.Builder + getConfigBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return getConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Required. Configuration for this hardware.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig config = 11 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfigOrBuilder + getConfigOrBuilder() { + if (configBuilder_ != null) { + return configBuilder_.getMessageOrBuilder(); + } else { + return config_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig.getDefaultInstance() + : config_; + } + } + /** + * + * + *
          +     * Required. Configuration for this hardware.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig config = 11 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfigOrBuilder> + getConfigFieldBuilder() { + if (configBuilder_ == null) { + configBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfigOrBuilder>( + getConfig(), getParentForChildren(), isClean()); + config_ = null; + } + return configBuilder_; + } + + private com.google.type.Date estimatedInstallationDate_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + estimatedInstallationDateBuilder_; + /** + * + * + *
          +     * Output only. Estimated installation date for this hardware.
          +     * 
          + * + * + * .google.type.Date estimated_installation_date = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the estimatedInstallationDate field is set. + */ + public boolean hasEstimatedInstallationDate() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + * + * + *
          +     * Output only. Estimated installation date for this hardware.
          +     * 
          + * + * + * .google.type.Date estimated_installation_date = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The estimatedInstallationDate. + */ + public com.google.type.Date getEstimatedInstallationDate() { + if (estimatedInstallationDateBuilder_ == null) { + return estimatedInstallationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : estimatedInstallationDate_; + } else { + return estimatedInstallationDateBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Output only. Estimated installation date for this hardware.
          +     * 
          + * + * + * .google.type.Date estimated_installation_date = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEstimatedInstallationDate(com.google.type.Date value) { + if (estimatedInstallationDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + estimatedInstallationDate_ = value; + } else { + estimatedInstallationDateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Estimated installation date for this hardware.
          +     * 
          + * + * + * .google.type.Date estimated_installation_date = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEstimatedInstallationDate(com.google.type.Date.Builder builderForValue) { + if (estimatedInstallationDateBuilder_ == null) { + estimatedInstallationDate_ = builderForValue.build(); + } else { + estimatedInstallationDateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Estimated installation date for this hardware.
          +     * 
          + * + * + * .google.type.Date estimated_installation_date = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEstimatedInstallationDate(com.google.type.Date value) { + if (estimatedInstallationDateBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) + && estimatedInstallationDate_ != null + && estimatedInstallationDate_ != com.google.type.Date.getDefaultInstance()) { + getEstimatedInstallationDateBuilder().mergeFrom(value); + } else { + estimatedInstallationDate_ = value; + } + } else { + estimatedInstallationDateBuilder_.mergeFrom(value); + } + if (estimatedInstallationDate_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Output only. Estimated installation date for this hardware.
          +     * 
          + * + * + * .google.type.Date estimated_installation_date = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEstimatedInstallationDate() { + bitField0_ = (bitField0_ & ~0x00000800); + estimatedInstallationDate_ = null; + if (estimatedInstallationDateBuilder_ != null) { + estimatedInstallationDateBuilder_.dispose(); + estimatedInstallationDateBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Estimated installation date for this hardware.
          +     * 
          + * + * + * .google.type.Date estimated_installation_date = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.type.Date.Builder getEstimatedInstallationDateBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return getEstimatedInstallationDateFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Output only. Estimated installation date for this hardware.
          +     * 
          + * + * + * .google.type.Date estimated_installation_date = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.type.DateOrBuilder getEstimatedInstallationDateOrBuilder() { + if (estimatedInstallationDateBuilder_ != null) { + return estimatedInstallationDateBuilder_.getMessageOrBuilder(); + } else { + return estimatedInstallationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : estimatedInstallationDate_; + } + } + /** + * + * + *
          +     * Output only. Estimated installation date for this hardware.
          +     * 
          + * + * + * .google.type.Date estimated_installation_date = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getEstimatedInstallationDateFieldBuilder() { + if (estimatedInstallationDateBuilder_ == null) { + estimatedInstallationDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getEstimatedInstallationDate(), getParentForChildren(), isClean()); + estimatedInstallationDate_ = null; + } + return estimatedInstallationDateBuilder_; + } + + private com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo physicalInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfoOrBuilder> + physicalInfoBuilder_; + /** + * + * + *
          +     * Optional. Physical properties of this hardware.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo physical_info = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the physicalInfo field is set. + */ + public boolean hasPhysicalInfo() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + * + * + *
          +     * Optional. Physical properties of this hardware.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo physical_info = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The physicalInfo. + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo getPhysicalInfo() { + if (physicalInfoBuilder_ == null) { + return physicalInfo_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo + .getDefaultInstance() + : physicalInfo_; + } else { + return physicalInfoBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Optional. Physical properties of this hardware.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo physical_info = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPhysicalInfo( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo value) { + if (physicalInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + physicalInfo_ = value; + } else { + physicalInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Physical properties of this hardware.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo physical_info = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPhysicalInfo( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Builder + builderForValue) { + if (physicalInfoBuilder_ == null) { + physicalInfo_ = builderForValue.build(); + } else { + physicalInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Physical properties of this hardware.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo physical_info = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergePhysicalInfo( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo value) { + if (physicalInfoBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0) + && physicalInfo_ != null + && physicalInfo_ + != com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo + .getDefaultInstance()) { + getPhysicalInfoBuilder().mergeFrom(value); + } else { + physicalInfo_ = value; + } + } else { + physicalInfoBuilder_.mergeFrom(value); + } + if (physicalInfo_ != null) { + bitField0_ |= 0x00001000; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Optional. Physical properties of this hardware.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo physical_info = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPhysicalInfo() { + bitField0_ = (bitField0_ & ~0x00001000); + physicalInfo_ = null; + if (physicalInfoBuilder_ != null) { + physicalInfoBuilder_.dispose(); + physicalInfoBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Physical properties of this hardware.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo physical_info = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Builder + getPhysicalInfoBuilder() { + bitField0_ |= 0x00001000; + onChanged(); + return getPhysicalInfoFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Optional. Physical properties of this hardware.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo physical_info = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfoOrBuilder + getPhysicalInfoOrBuilder() { + if (physicalInfoBuilder_ != null) { + return physicalInfoBuilder_.getMessageOrBuilder(); + } else { + return physicalInfo_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo + .getDefaultInstance() + : physicalInfo_; + } + } + /** + * + * + *
          +     * Optional. Physical properties of this hardware.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo physical_info = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfoOrBuilder> + getPhysicalInfoFieldBuilder() { + if (physicalInfoBuilder_ == null) { + physicalInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfoOrBuilder>( + getPhysicalInfo(), getParentForChildren(), isClean()); + physicalInfo_ = null; + } + return physicalInfoBuilder_; + } + + private com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo + installationInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfoOrBuilder> + installationInfoBuilder_; + /** + * + * + *
          +     * Optional. Information for installation of this hardware.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo installation_info = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the installationInfo field is set. + */ + public boolean hasInstallationInfo() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + * + * + *
          +     * Optional. Information for installation of this hardware.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo installation_info = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The installationInfo. + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo + getInstallationInfo() { + if (installationInfoBuilder_ == null) { + return installationInfo_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo + .getDefaultInstance() + : installationInfo_; + } else { + return installationInfoBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Optional. Information for installation of this hardware.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo installation_info = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInstallationInfo( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo value) { + if (installationInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + installationInfo_ = value; + } else { + installationInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Information for installation of this hardware.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo installation_info = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInstallationInfo( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo.Builder + builderForValue) { + if (installationInfoBuilder_ == null) { + installationInfo_ = builderForValue.build(); + } else { + installationInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Information for installation of this hardware.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo installation_info = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeInstallationInfo( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo value) { + if (installationInfoBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0) + && installationInfo_ != null + && installationInfo_ + != com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo + .getDefaultInstance()) { + getInstallationInfoBuilder().mergeFrom(value); + } else { + installationInfo_ = value; + } + } else { + installationInfoBuilder_.mergeFrom(value); + } + if (installationInfo_ != null) { + bitField0_ |= 0x00002000; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Optional. Information for installation of this hardware.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo installation_info = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearInstallationInfo() { + bitField0_ = (bitField0_ & ~0x00002000); + installationInfo_ = null; + if (installationInfoBuilder_ != null) { + installationInfoBuilder_.dispose(); + installationInfoBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Information for installation of this hardware.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo installation_info = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo.Builder + getInstallationInfoBuilder() { + bitField0_ |= 0x00002000; + onChanged(); + return getInstallationInfoFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Optional. Information for installation of this hardware.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo installation_info = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfoOrBuilder + getInstallationInfoOrBuilder() { + if (installationInfoBuilder_ != null) { + return installationInfoBuilder_.getMessageOrBuilder(); + } else { + return installationInfo_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo + .getDefaultInstance() + : installationInfo_; + } + } + /** + * + * + *
          +     * Optional. Information for installation of this hardware.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo installation_info = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfoOrBuilder> + getInstallationInfoFieldBuilder() { + if (installationInfoBuilder_ == null) { + installationInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfoOrBuilder>( + getInstallationInfo(), getParentForChildren(), isClean()); + installationInfo_ = null; + } + return installationInfoBuilder_; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
          +     * Required. Name for the zone that this hardware belongs to.
          +     * Format: `projects/{project}/locations/{location}/zones/{zone}`
          +     * 
          + * + * + * string zone = 15 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The zone. + */ + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Required. Name for the zone that this hardware belongs to.
          +     * Format: `projects/{project}/locations/{location}/zones/{zone}`
          +     * 
          + * + * + * string zone = 15 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for zone. + */ + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Required. Name for the zone that this hardware belongs to.
          +     * Format: `projects/{project}/locations/{location}/zones/{zone}`
          +     * 
          + * + * + * string zone = 15 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The zone to set. + * @return This builder for chaining. + */ + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + zone_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Name for the zone that this hardware belongs to.
          +     * Format: `projects/{project}/locations/{location}/zones/{zone}`
          +     * 
          + * + * + * string zone = 15 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Name for the zone that this hardware belongs to.
          +     * Format: `projects/{project}/locations/{location}/zones/{zone}`
          +     * 
          + * + * + * string zone = 15 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + zone_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + private com.google.type.Date requestedInstallationDate_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + requestedInstallationDateBuilder_; + /** + * + * + *
          +     * Optional. Requested installation date for this hardware. This is
          +     * auto-populated when the order is accepted, if the hardware's HardwareGroup
          +     * specifies this. It can also be filled in by the customer.
          +     * 
          + * + * + * .google.type.Date requested_installation_date = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the requestedInstallationDate field is set. + */ + public boolean hasRequestedInstallationDate() { + return ((bitField0_ & 0x00008000) != 0); + } + /** + * + * + *
          +     * Optional. Requested installation date for this hardware. This is
          +     * auto-populated when the order is accepted, if the hardware's HardwareGroup
          +     * specifies this. It can also be filled in by the customer.
          +     * 
          + * + * + * .google.type.Date requested_installation_date = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The requestedInstallationDate. + */ + public com.google.type.Date getRequestedInstallationDate() { + if (requestedInstallationDateBuilder_ == null) { + return requestedInstallationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : requestedInstallationDate_; + } else { + return requestedInstallationDateBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Optional. Requested installation date for this hardware. This is
          +     * auto-populated when the order is accepted, if the hardware's HardwareGroup
          +     * specifies this. It can also be filled in by the customer.
          +     * 
          + * + * + * .google.type.Date requested_installation_date = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRequestedInstallationDate(com.google.type.Date value) { + if (requestedInstallationDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + requestedInstallationDate_ = value; + } else { + requestedInstallationDateBuilder_.setMessage(value); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Requested installation date for this hardware. This is
          +     * auto-populated when the order is accepted, if the hardware's HardwareGroup
          +     * specifies this. It can also be filled in by the customer.
          +     * 
          + * + * + * .google.type.Date requested_installation_date = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRequestedInstallationDate(com.google.type.Date.Builder builderForValue) { + if (requestedInstallationDateBuilder_ == null) { + requestedInstallationDate_ = builderForValue.build(); + } else { + requestedInstallationDateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Requested installation date for this hardware. This is
          +     * auto-populated when the order is accepted, if the hardware's HardwareGroup
          +     * specifies this. It can also be filled in by the customer.
          +     * 
          + * + * + * .google.type.Date requested_installation_date = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRequestedInstallationDate(com.google.type.Date value) { + if (requestedInstallationDateBuilder_ == null) { + if (((bitField0_ & 0x00008000) != 0) + && requestedInstallationDate_ != null + && requestedInstallationDate_ != com.google.type.Date.getDefaultInstance()) { + getRequestedInstallationDateBuilder().mergeFrom(value); + } else { + requestedInstallationDate_ = value; + } + } else { + requestedInstallationDateBuilder_.mergeFrom(value); + } + if (requestedInstallationDate_ != null) { + bitField0_ |= 0x00008000; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Optional. Requested installation date for this hardware. This is
          +     * auto-populated when the order is accepted, if the hardware's HardwareGroup
          +     * specifies this. It can also be filled in by the customer.
          +     * 
          + * + * + * .google.type.Date requested_installation_date = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRequestedInstallationDate() { + bitField0_ = (bitField0_ & ~0x00008000); + requestedInstallationDate_ = null; + if (requestedInstallationDateBuilder_ != null) { + requestedInstallationDateBuilder_.dispose(); + requestedInstallationDateBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Requested installation date for this hardware. This is
          +     * auto-populated when the order is accepted, if the hardware's HardwareGroup
          +     * specifies this. It can also be filled in by the customer.
          +     * 
          + * + * + * .google.type.Date requested_installation_date = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.type.Date.Builder getRequestedInstallationDateBuilder() { + bitField0_ |= 0x00008000; + onChanged(); + return getRequestedInstallationDateFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Optional. Requested installation date for this hardware. This is
          +     * auto-populated when the order is accepted, if the hardware's HardwareGroup
          +     * specifies this. It can also be filled in by the customer.
          +     * 
          + * + * + * .google.type.Date requested_installation_date = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.type.DateOrBuilder getRequestedInstallationDateOrBuilder() { + if (requestedInstallationDateBuilder_ != null) { + return requestedInstallationDateBuilder_.getMessageOrBuilder(); + } else { + return requestedInstallationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : requestedInstallationDate_; + } + } + /** + * + * + *
          +     * Optional. Requested installation date for this hardware. This is
          +     * auto-populated when the order is accepted, if the hardware's HardwareGroup
          +     * specifies this. It can also be filled in by the customer.
          +     * 
          + * + * + * .google.type.Date requested_installation_date = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getRequestedInstallationDateFieldBuilder() { + if (requestedInstallationDateBuilder_ == null) { + requestedInstallationDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getRequestedInstallationDate(), getParentForChildren(), isClean()); + requestedInstallationDate_ = null; + } + return requestedInstallationDateBuilder_; + } + + private com.google.type.Date actualInstallationDate_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + actualInstallationDateBuilder_; + /** + * + * + *
          +     * Output only. Actual installation date for this hardware. Filled in by
          +     * Google.
          +     * 
          + * + * + * .google.type.Date actual_installation_date = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the actualInstallationDate field is set. + */ + public boolean hasActualInstallationDate() { + return ((bitField0_ & 0x00010000) != 0); + } + /** + * + * + *
          +     * Output only. Actual installation date for this hardware. Filled in by
          +     * Google.
          +     * 
          + * + * + * .google.type.Date actual_installation_date = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The actualInstallationDate. + */ + public com.google.type.Date getActualInstallationDate() { + if (actualInstallationDateBuilder_ == null) { + return actualInstallationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : actualInstallationDate_; + } else { + return actualInstallationDateBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Output only. Actual installation date for this hardware. Filled in by
          +     * Google.
          +     * 
          + * + * + * .google.type.Date actual_installation_date = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setActualInstallationDate(com.google.type.Date value) { + if (actualInstallationDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + actualInstallationDate_ = value; + } else { + actualInstallationDateBuilder_.setMessage(value); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Actual installation date for this hardware. Filled in by
          +     * Google.
          +     * 
          + * + * + * .google.type.Date actual_installation_date = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setActualInstallationDate(com.google.type.Date.Builder builderForValue) { + if (actualInstallationDateBuilder_ == null) { + actualInstallationDate_ = builderForValue.build(); + } else { + actualInstallationDateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Actual installation date for this hardware. Filled in by
          +     * Google.
          +     * 
          + * + * + * .google.type.Date actual_installation_date = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeActualInstallationDate(com.google.type.Date value) { + if (actualInstallationDateBuilder_ == null) { + if (((bitField0_ & 0x00010000) != 0) + && actualInstallationDate_ != null + && actualInstallationDate_ != com.google.type.Date.getDefaultInstance()) { + getActualInstallationDateBuilder().mergeFrom(value); + } else { + actualInstallationDate_ = value; + } + } else { + actualInstallationDateBuilder_.mergeFrom(value); + } + if (actualInstallationDate_ != null) { + bitField0_ |= 0x00010000; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Output only. Actual installation date for this hardware. Filled in by
          +     * Google.
          +     * 
          + * + * + * .google.type.Date actual_installation_date = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearActualInstallationDate() { + bitField0_ = (bitField0_ & ~0x00010000); + actualInstallationDate_ = null; + if (actualInstallationDateBuilder_ != null) { + actualInstallationDateBuilder_.dispose(); + actualInstallationDateBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Actual installation date for this hardware. Filled in by
          +     * Google.
          +     * 
          + * + * + * .google.type.Date actual_installation_date = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.type.Date.Builder getActualInstallationDateBuilder() { + bitField0_ |= 0x00010000; + onChanged(); + return getActualInstallationDateFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Output only. Actual installation date for this hardware. Filled in by
          +     * Google.
          +     * 
          + * + * + * .google.type.Date actual_installation_date = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.type.DateOrBuilder getActualInstallationDateOrBuilder() { + if (actualInstallationDateBuilder_ != null) { + return actualInstallationDateBuilder_.getMessageOrBuilder(); + } else { + return actualInstallationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : actualInstallationDate_; + } + } + /** + * + * + *
          +     * Output only. Actual installation date for this hardware. Filled in by
          +     * Google.
          +     * 
          + * + * + * .google.type.Date actual_installation_date = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getActualInstallationDateFieldBuilder() { + if (actualInstallationDateBuilder_ == null) { + actualInstallationDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getActualInstallationDate(), getParentForChildren(), isClean()); + actualInstallationDate_ = null; + } + return actualInstallationDateBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.Hardware) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.Hardware) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.Hardware DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.Hardware(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Hardware getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Hardware parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareConfig.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareConfig.java new file mode 100644 index 000000000000..16ecf9d58d13 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareConfig.java @@ -0,0 +1,933 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * Configuration for GDC hardware.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig} + */ +public final class HardwareConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig) + HardwareConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use HardwareConfig.newBuilder() to construct. + private HardwareConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private HardwareConfig() { + sku_ = ""; + powerSupply_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new HardwareConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwareConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwareConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig.class, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig.Builder.class); + } + + public static final int SKU_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object sku_ = ""; + /** + * + * + *
          +   * Required. Reference to the SKU for this hardware. This can point to a
          +   * specific SKU revision in the form of `resource_name@revision_id` as defined
          +   * in [AIP-162](https://google.aip.dev/162). If no revision_id is specified,
          +   * it refers to the latest revision.
          +   * 
          + * + * + * string sku = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The sku. + */ + @java.lang.Override + public java.lang.String getSku() { + java.lang.Object ref = sku_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sku_ = s; + return s; + } + } + /** + * + * + *
          +   * Required. Reference to the SKU for this hardware. This can point to a
          +   * specific SKU revision in the form of `resource_name@revision_id` as defined
          +   * in [AIP-162](https://google.aip.dev/162). If no revision_id is specified,
          +   * it refers to the latest revision.
          +   * 
          + * + * + * string sku = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for sku. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSkuBytes() { + java.lang.Object ref = sku_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sku_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POWER_SUPPLY_FIELD_NUMBER = 2; + private int powerSupply_ = 0; + /** + * + * + *
          +   * Required. Power supply type for this hardware.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.PowerSupply power_supply = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for powerSupply. + */ + @java.lang.Override + public int getPowerSupplyValue() { + return powerSupply_; + } + /** + * + * + *
          +   * Required. Power supply type for this hardware.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.PowerSupply power_supply = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The powerSupply. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.PowerSupply getPowerSupply() { + com.google.cloud.gdchardwaremanagement.v1alpha.PowerSupply result = + com.google.cloud.gdchardwaremanagement.v1alpha.PowerSupply.forNumber(powerSupply_); + return result == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.PowerSupply.UNRECOGNIZED + : result; + } + + public static final int SUBSCRIPTION_DURATION_MONTHS_FIELD_NUMBER = 3; + private int subscriptionDurationMonths_ = 0; + /** + * + * + *
          +   * Optional. Subscription duration for the hardware in months.
          +   * 
          + * + * int32 subscription_duration_months = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The subscriptionDurationMonths. + */ + @java.lang.Override + public int getSubscriptionDurationMonths() { + return subscriptionDurationMonths_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sku_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sku_); + } + if (powerSupply_ + != com.google.cloud.gdchardwaremanagement.v1alpha.PowerSupply.POWER_SUPPLY_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, powerSupply_); + } + if (subscriptionDurationMonths_ != 0) { + output.writeInt32(3, subscriptionDurationMonths_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sku_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sku_); + } + if (powerSupply_ + != com.google.cloud.gdchardwaremanagement.v1alpha.PowerSupply.POWER_SUPPLY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, powerSupply_); + } + if (subscriptionDurationMonths_ != 0) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size(3, subscriptionDurationMonths_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig other = + (com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig) obj; + + if (!getSku().equals(other.getSku())) return false; + if (powerSupply_ != other.powerSupply_) return false; + if (getSubscriptionDurationMonths() != other.getSubscriptionDurationMonths()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SKU_FIELD_NUMBER; + hash = (53 * hash) + getSku().hashCode(); + hash = (37 * hash) + POWER_SUPPLY_FIELD_NUMBER; + hash = (53 * hash) + powerSupply_; + hash = (37 * hash) + SUBSCRIPTION_DURATION_MONTHS_FIELD_NUMBER; + hash = (53 * hash) + getSubscriptionDurationMonths(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * Configuration for GDC hardware.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig) + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwareConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwareConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig.class, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig.Builder.class); + } + + // Construct using com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sku_ = ""; + powerSupply_ = 0; + subscriptionDurationMonths_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwareConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig build() { + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig result = + new com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sku_ = sku_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.powerSupply_ = powerSupply_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.subscriptionDurationMonths_ = subscriptionDurationMonths_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig) { + return mergeFrom((com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig.getDefaultInstance()) + return this; + if (!other.getSku().isEmpty()) { + sku_ = other.sku_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.powerSupply_ != 0) { + setPowerSupplyValue(other.getPowerSupplyValue()); + } + if (other.getSubscriptionDurationMonths() != 0) { + setSubscriptionDurationMonths(other.getSubscriptionDurationMonths()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + sku_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + powerSupply_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + subscriptionDurationMonths_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object sku_ = ""; + /** + * + * + *
          +     * Required. Reference to the SKU for this hardware. This can point to a
          +     * specific SKU revision in the form of `resource_name@revision_id` as defined
          +     * in [AIP-162](https://google.aip.dev/162). If no revision_id is specified,
          +     * it refers to the latest revision.
          +     * 
          + * + * + * string sku = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The sku. + */ + public java.lang.String getSku() { + java.lang.Object ref = sku_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sku_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Required. Reference to the SKU for this hardware. This can point to a
          +     * specific SKU revision in the form of `resource_name@revision_id` as defined
          +     * in [AIP-162](https://google.aip.dev/162). If no revision_id is specified,
          +     * it refers to the latest revision.
          +     * 
          + * + * + * string sku = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for sku. + */ + public com.google.protobuf.ByteString getSkuBytes() { + java.lang.Object ref = sku_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sku_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Required. Reference to the SKU for this hardware. This can point to a
          +     * specific SKU revision in the form of `resource_name@revision_id` as defined
          +     * in [AIP-162](https://google.aip.dev/162). If no revision_id is specified,
          +     * it refers to the latest revision.
          +     * 
          + * + * + * string sku = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The sku to set. + * @return This builder for chaining. + */ + public Builder setSku(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sku_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Reference to the SKU for this hardware. This can point to a
          +     * specific SKU revision in the form of `resource_name@revision_id` as defined
          +     * in [AIP-162](https://google.aip.dev/162). If no revision_id is specified,
          +     * it refers to the latest revision.
          +     * 
          + * + * + * string sku = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearSku() { + sku_ = getDefaultInstance().getSku(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Reference to the SKU for this hardware. This can point to a
          +     * specific SKU revision in the form of `resource_name@revision_id` as defined
          +     * in [AIP-162](https://google.aip.dev/162). If no revision_id is specified,
          +     * it refers to the latest revision.
          +     * 
          + * + * + * string sku = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for sku to set. + * @return This builder for chaining. + */ + public Builder setSkuBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sku_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int powerSupply_ = 0; + /** + * + * + *
          +     * Required. Power supply type for this hardware.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.PowerSupply power_supply = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for powerSupply. + */ + @java.lang.Override + public int getPowerSupplyValue() { + return powerSupply_; + } + /** + * + * + *
          +     * Required. Power supply type for this hardware.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.PowerSupply power_supply = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for powerSupply to set. + * @return This builder for chaining. + */ + public Builder setPowerSupplyValue(int value) { + powerSupply_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Power supply type for this hardware.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.PowerSupply power_supply = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The powerSupply. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.PowerSupply getPowerSupply() { + com.google.cloud.gdchardwaremanagement.v1alpha.PowerSupply result = + com.google.cloud.gdchardwaremanagement.v1alpha.PowerSupply.forNumber(powerSupply_); + return result == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.PowerSupply.UNRECOGNIZED + : result; + } + /** + * + * + *
          +     * Required. Power supply type for this hardware.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.PowerSupply power_supply = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The powerSupply to set. + * @return This builder for chaining. + */ + public Builder setPowerSupply( + com.google.cloud.gdchardwaremanagement.v1alpha.PowerSupply value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + powerSupply_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Power supply type for this hardware.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.PowerSupply power_supply = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearPowerSupply() { + bitField0_ = (bitField0_ & ~0x00000002); + powerSupply_ = 0; + onChanged(); + return this; + } + + private int subscriptionDurationMonths_; + /** + * + * + *
          +     * Optional. Subscription duration for the hardware in months.
          +     * 
          + * + * int32 subscription_duration_months = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The subscriptionDurationMonths. + */ + @java.lang.Override + public int getSubscriptionDurationMonths() { + return subscriptionDurationMonths_; + } + /** + * + * + *
          +     * Optional. Subscription duration for the hardware in months.
          +     * 
          + * + * int32 subscription_duration_months = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The subscriptionDurationMonths to set. + * @return This builder for chaining. + */ + public Builder setSubscriptionDurationMonths(int value) { + + subscriptionDurationMonths_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Subscription duration for the hardware in months.
          +     * 
          + * + * int32 subscription_duration_months = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearSubscriptionDurationMonths() { + bitField0_ = (bitField0_ & ~0x00000004); + subscriptionDurationMonths_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HardwareConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareConfigOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareConfigOrBuilder.java new file mode 100644 index 000000000000..049965cbe1a7 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareConfigOrBuilder.java @@ -0,0 +1,103 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface HardwareConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. Reference to the SKU for this hardware. This can point to a
          +   * specific SKU revision in the form of `resource_name@revision_id` as defined
          +   * in [AIP-162](https://google.aip.dev/162). If no revision_id is specified,
          +   * it refers to the latest revision.
          +   * 
          + * + * + * string sku = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The sku. + */ + java.lang.String getSku(); + /** + * + * + *
          +   * Required. Reference to the SKU for this hardware. This can point to a
          +   * specific SKU revision in the form of `resource_name@revision_id` as defined
          +   * in [AIP-162](https://google.aip.dev/162). If no revision_id is specified,
          +   * it refers to the latest revision.
          +   * 
          + * + * + * string sku = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for sku. + */ + com.google.protobuf.ByteString getSkuBytes(); + + /** + * + * + *
          +   * Required. Power supply type for this hardware.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.PowerSupply power_supply = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for powerSupply. + */ + int getPowerSupplyValue(); + /** + * + * + *
          +   * Required. Power supply type for this hardware.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.PowerSupply power_supply = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The powerSupply. + */ + com.google.cloud.gdchardwaremanagement.v1alpha.PowerSupply getPowerSupply(); + + /** + * + * + *
          +   * Optional. Subscription duration for the hardware in months.
          +   * 
          + * + * int32 subscription_duration_months = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The subscriptionDurationMonths. + */ + int getSubscriptionDurationMonths(); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareGroup.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareGroup.java new file mode 100644 index 000000000000..995f83f08970 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareGroup.java @@ -0,0 +1,3134 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * A group of hardware that is part of the same order, has the same SKU, and is
          + * delivered to the same site.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup} + */ +public final class HardwareGroup extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup) + HardwareGroupOrBuilder { + private static final long serialVersionUID = 0L; + // Use HardwareGroup.newBuilder() to construct. + private HardwareGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private HardwareGroup() { + name_ = ""; + site_ = ""; + state_ = 0; + zone_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new HardwareGroup(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwareGroup_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwareGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.class, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.Builder.class); + } + + /** + * + * + *
          +   * Valid states of a HardwareGroup.
          +   * 
          + * + * Protobuf enum {@code google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
          +     * State of the HardwareGroup is unspecified.
          +     * 
          + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
          +     * More information is required from the customer to make progress.
          +     * 
          + * + * ADDITIONAL_INFO_NEEDED = 1; + */ + ADDITIONAL_INFO_NEEDED(1), + /** + * + * + *
          +     * Google has initiated building hardware for this HardwareGroup.
          +     * 
          + * + * BUILDING = 2; + */ + BUILDING(2), + /** + * + * + *
          +     * The hardware has been built and is being shipped.
          +     * 
          + * + * SHIPPING = 3; + */ + SHIPPING(3), + /** + * + * + *
          +     * The hardware is being installed.
          +     * 
          + * + * INSTALLING = 4; + */ + INSTALLING(4), + /** + * + * + *
          +     * Some hardware in the HardwareGroup have been installed.
          +     * 
          + * + * PARTIALLY_INSTALLED = 5; + */ + PARTIALLY_INSTALLED(5), + /** + * + * + *
          +     * All hardware in the HardwareGroup have been installed.
          +     * 
          + * + * INSTALLED = 6; + */ + INSTALLED(6), + /** + * + * + *
          +     * An error occurred and customer intervention is required.
          +     * 
          + * + * FAILED = 7; + */ + FAILED(7), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
          +     * State of the HardwareGroup is unspecified.
          +     * 
          + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
          +     * More information is required from the customer to make progress.
          +     * 
          + * + * ADDITIONAL_INFO_NEEDED = 1; + */ + public static final int ADDITIONAL_INFO_NEEDED_VALUE = 1; + /** + * + * + *
          +     * Google has initiated building hardware for this HardwareGroup.
          +     * 
          + * + * BUILDING = 2; + */ + public static final int BUILDING_VALUE = 2; + /** + * + * + *
          +     * The hardware has been built and is being shipped.
          +     * 
          + * + * SHIPPING = 3; + */ + public static final int SHIPPING_VALUE = 3; + /** + * + * + *
          +     * The hardware is being installed.
          +     * 
          + * + * INSTALLING = 4; + */ + public static final int INSTALLING_VALUE = 4; + /** + * + * + *
          +     * Some hardware in the HardwareGroup have been installed.
          +     * 
          + * + * PARTIALLY_INSTALLED = 5; + */ + public static final int PARTIALLY_INSTALLED_VALUE = 5; + /** + * + * + *
          +     * All hardware in the HardwareGroup have been installed.
          +     * 
          + * + * INSTALLED = 6; + */ + public static final int INSTALLED_VALUE = 6; + /** + * + * + *
          +     * An error occurred and customer intervention is required.
          +     * 
          + * + * FAILED = 7; + */ + public static final int FAILED_VALUE = 7; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ADDITIONAL_INFO_NEEDED; + case 2: + return BUILDING; + case 3: + return SHIPPING; + case 4: + return INSTALLING; + case 5: + return PARTIALLY_INSTALLED; + case 6: + return INSTALLED; + case 7: + return FAILED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.State) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
          +   * Identifier. Name of this hardware group.
          +   * Format:
          +   * `projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}`
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
          +   * Identifier. Name of this hardware group.
          +   * Format:
          +   * `projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}`
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
          +   * Output only. Time when this hardware group was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
          +   * Output only. Time when this hardware group was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
          +   * Output only. Time when this hardware group was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
          +   * Output only. Time when this hardware group was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
          +   * Output only. Time when this hardware group was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
          +   * Output only. Time when this hardware group was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int LABELS_FIELD_NUMBER = 4; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwareGroup_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
          +   * Optional. Labels associated with this hardware group as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
          +   * Optional. Labels associated with this hardware group as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
          +   * Optional. Labels associated with this hardware group as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
          +   * Optional. Labels associated with this hardware group as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int HARDWARE_COUNT_FIELD_NUMBER = 5; + private int hardwareCount_ = 0; + /** + * + * + *
          +   * Required. Number of hardware in this HardwareGroup.
          +   * 
          + * + * int32 hardware_count = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The hardwareCount. + */ + @java.lang.Override + public int getHardwareCount() { + return hardwareCount_; + } + + public static final int CONFIG_FIELD_NUMBER = 6; + private com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig config_; + /** + * + * + *
          +   * Required. Configuration for hardware in this HardwareGroup.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the config field is set. + */ + @java.lang.Override + public boolean hasConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
          +   * Required. Configuration for hardware in this HardwareGroup.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The config. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig getConfig() { + return config_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig.getDefaultInstance() + : config_; + } + /** + * + * + *
          +   * Required. Configuration for hardware in this HardwareGroup.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfigOrBuilder + getConfigOrBuilder() { + return config_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig.getDefaultInstance() + : config_; + } + + public static final int SITE_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object site_ = ""; + /** + * + * + *
          +   * Required. Name of the site where the hardware in this HardwareGroup will be
          +   * delivered.
          +   * Format: `projects/{project}/locations/{location}/sites/{site}`
          +   * 
          + * + * + * string site = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The site. + */ + @java.lang.Override + public java.lang.String getSite() { + java.lang.Object ref = site_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + site_ = s; + return s; + } + } + /** + * + * + *
          +   * Required. Name of the site where the hardware in this HardwareGroup will be
          +   * delivered.
          +   * Format: `projects/{project}/locations/{location}/sites/{site}`
          +   * 
          + * + * + * string site = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for site. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSiteBytes() { + java.lang.Object ref = site_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + site_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 8; + private int state_ = 0; + /** + * + * + *
          +   * Output only. Current state of this HardwareGroup.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
          +   * Output only. Current state of this HardwareGroup.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.State getState() { + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.State result = + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.State.forNumber(state_); + return result == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.State.UNRECOGNIZED + : result; + } + + public static final int ZONE_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + /** + * + * + *
          +   * Optional. Name of the zone that the hardware in this HardwareGroup belongs
          +   * to. Format: `projects/{project}/locations/{location}/zones/{zone}`
          +   * 
          + * + * + * string zone = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The zone. + */ + @java.lang.Override + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. Name of the zone that the hardware in this HardwareGroup belongs
          +   * to. Format: `projects/{project}/locations/{location}/zones/{zone}`
          +   * 
          + * + * + * string zone = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for zone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUESTED_INSTALLATION_DATE_FIELD_NUMBER = 10; + private com.google.type.Date requestedInstallationDate_; + /** + * + * + *
          +   * Optional. Requested installation date for the hardware in this
          +   * HardwareGroup. Filled in by the customer.
          +   * 
          + * + * + * .google.type.Date requested_installation_date = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the requestedInstallationDate field is set. + */ + @java.lang.Override + public boolean hasRequestedInstallationDate() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
          +   * Optional. Requested installation date for the hardware in this
          +   * HardwareGroup. Filled in by the customer.
          +   * 
          + * + * + * .google.type.Date requested_installation_date = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The requestedInstallationDate. + */ + @java.lang.Override + public com.google.type.Date getRequestedInstallationDate() { + return requestedInstallationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : requestedInstallationDate_; + } + /** + * + * + *
          +   * Optional. Requested installation date for the hardware in this
          +   * HardwareGroup. Filled in by the customer.
          +   * 
          + * + * + * .google.type.Date requested_installation_date = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.type.DateOrBuilder getRequestedInstallationDateOrBuilder() { + return requestedInstallationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : requestedInstallationDate_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getUpdateTime()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + if (hardwareCount_ != 0) { + output.writeInt32(5, hardwareCount_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(6, getConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(site_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, site_); + } + if (state_ + != com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(8, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, zone_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(10, getRequestedInstallationDate()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + } + if (hardwareCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, hardwareCount_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(site_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, site_); + } + if (state_ + != com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, zone_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, getRequestedInstallationDate()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup other = + (com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (getHardwareCount() != other.getHardwareCount()) return false; + if (hasConfig() != other.hasConfig()) return false; + if (hasConfig()) { + if (!getConfig().equals(other.getConfig())) return false; + } + if (!getSite().equals(other.getSite())) return false; + if (state_ != other.state_) return false; + if (!getZone().equals(other.getZone())) return false; + if (hasRequestedInstallationDate() != other.hasRequestedInstallationDate()) return false; + if (hasRequestedInstallationDate()) { + if (!getRequestedInstallationDate().equals(other.getRequestedInstallationDate())) + return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + HARDWARE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getHardwareCount(); + if (hasConfig()) { + hash = (37 * hash) + CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getConfig().hashCode(); + } + hash = (37 * hash) + SITE_FIELD_NUMBER; + hash = (53 * hash) + getSite().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + if (hasRequestedInstallationDate()) { + hash = (37 * hash) + REQUESTED_INSTALLATION_DATE_FIELD_NUMBER; + hash = (53 * hash) + getRequestedInstallationDate().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * A group of hardware that is part of the same order, has the same SKU, and is
          +   * delivered to the same site.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup) + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroupOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwareGroup_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwareGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.class, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.Builder.class); + } + + // Construct using com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + getConfigFieldBuilder(); + getRequestedInstallationDateFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + hardwareCount_ = 0; + config_ = null; + if (configBuilder_ != null) { + configBuilder_.dispose(); + configBuilder_ = null; + } + site_ = ""; + state_ = 0; + zone_ = ""; + requestedInstallationDate_ = null; + if (requestedInstallationDateBuilder_ != null) { + requestedInstallationDateBuilder_.dispose(); + requestedInstallationDateBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwareGroup_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup build() { + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup result = + new com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.hardwareCount_ = hardwareCount_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.config_ = configBuilder_ == null ? config_ : configBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.site_ = site_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.zone_ = zone_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.requestedInstallationDate_ = + requestedInstallationDateBuilder_ == null + ? requestedInstallationDate_ + : requestedInstallationDateBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup) { + return mergeFrom((com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000008; + if (other.getHardwareCount() != 0) { + setHardwareCount(other.getHardwareCount()); + } + if (other.hasConfig()) { + mergeConfig(other.getConfig()); + } + if (!other.getSite().isEmpty()) { + site_ = other.site_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (other.hasRequestedInstallationDate()) { + mergeRequestedInstallationDate(other.getRequestedInstallationDate()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + hardwareCount_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: + { + input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + site_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 64: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 74: + { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: + { + input.readMessage( + getRequestedInstallationDateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
          +     * Identifier. Name of this hardware group.
          +     * Format:
          +     * `projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}`
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Identifier. Name of this hardware group.
          +     * Format:
          +     * `projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}`
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Identifier. Name of this hardware group.
          +     * Format:
          +     * `projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}`
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Identifier. Name of this hardware group.
          +     * Format:
          +     * `projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}`
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * Identifier. Name of this hardware group.
          +     * Format:
          +     * `projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}`
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
          +     * Output only. Time when this hardware group was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
          +     * Output only. Time when this hardware group was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Output only. Time when this hardware group was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Time when this hardware group was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Time when this hardware group was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Output only. Time when this hardware group was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Time when this hardware group was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Output only. Time when this hardware group was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
          +     * Output only. Time when this hardware group was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
          +     * Output only. Time when this hardware group was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
          +     * Output only. Time when this hardware group was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Output only. Time when this hardware group was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Time when this hardware group was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Time when this hardware group was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Output only. Time when this hardware group was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Time when this hardware group was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Output only. Time when this hardware group was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
          +     * Output only. Time when this hardware group was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000008; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
          +     * Optional. Labels associated with this hardware group as key value pairs.
          +     * For more information about labels, see [Create and manage
          +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +     * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
          +     * Optional. Labels associated with this hardware group as key value pairs.
          +     * For more information about labels, see [Create and manage
          +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +     * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
          +     * Optional. Labels associated with this hardware group as key value pairs.
          +     * For more information about labels, see [Create and manage
          +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +     * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
          +     * Optional. Labels associated with this hardware group as key value pairs.
          +     * For more information about labels, see [Create and manage
          +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +     * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + /** + * + * + *
          +     * Optional. Labels associated with this hardware group as key value pairs.
          +     * For more information about labels, see [Create and manage
          +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +     * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000008; + return internalGetMutableLabels().getMutableMap(); + } + /** + * + * + *
          +     * Optional. Labels associated with this hardware group as key value pairs.
          +     * For more information about labels, see [Create and manage
          +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +     * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000008; + return this; + } + /** + * + * + *
          +     * Optional. Labels associated with this hardware group as key value pairs.
          +     * For more information about labels, see [Create and manage
          +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +     * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000008; + return this; + } + + private int hardwareCount_; + /** + * + * + *
          +     * Required. Number of hardware in this HardwareGroup.
          +     * 
          + * + * int32 hardware_count = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The hardwareCount. + */ + @java.lang.Override + public int getHardwareCount() { + return hardwareCount_; + } + /** + * + * + *
          +     * Required. Number of hardware in this HardwareGroup.
          +     * 
          + * + * int32 hardware_count = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The hardwareCount to set. + * @return This builder for chaining. + */ + public Builder setHardwareCount(int value) { + + hardwareCount_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Number of hardware in this HardwareGroup.
          +     * 
          + * + * int32 hardware_count = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearHardwareCount() { + bitField0_ = (bitField0_ & ~0x00000010); + hardwareCount_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig config_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfigOrBuilder> + configBuilder_; + /** + * + * + *
          +     * Required. Configuration for hardware in this HardwareGroup.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the config field is set. + */ + public boolean hasConfig() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
          +     * Required. Configuration for hardware in this HardwareGroup.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The config. + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig getConfig() { + if (configBuilder_ == null) { + return config_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig.getDefaultInstance() + : config_; + } else { + return configBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Required. Configuration for hardware in this HardwareGroup.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setConfig(com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig value) { + if (configBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + config_ = value; + } else { + configBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Configuration for hardware in this HardwareGroup.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setConfig( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig.Builder builderForValue) { + if (configBuilder_ == null) { + config_ = builderForValue.build(); + } else { + configBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Configuration for hardware in this HardwareGroup.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeConfig( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig value) { + if (configBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && config_ != null + && config_ + != com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig + .getDefaultInstance()) { + getConfigBuilder().mergeFrom(value); + } else { + config_ = value; + } + } else { + configBuilder_.mergeFrom(value); + } + if (config_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Required. Configuration for hardware in this HardwareGroup.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearConfig() { + bitField0_ = (bitField0_ & ~0x00000020); + config_ = null; + if (configBuilder_ != null) { + configBuilder_.dispose(); + configBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Configuration for hardware in this HardwareGroup.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig.Builder + getConfigBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Required. Configuration for hardware in this HardwareGroup.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfigOrBuilder + getConfigOrBuilder() { + if (configBuilder_ != null) { + return configBuilder_.getMessageOrBuilder(); + } else { + return config_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig.getDefaultInstance() + : config_; + } + } + /** + * + * + *
          +     * Required. Configuration for hardware in this HardwareGroup.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfigOrBuilder> + getConfigFieldBuilder() { + if (configBuilder_ == null) { + configBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfigOrBuilder>( + getConfig(), getParentForChildren(), isClean()); + config_ = null; + } + return configBuilder_; + } + + private java.lang.Object site_ = ""; + /** + * + * + *
          +     * Required. Name of the site where the hardware in this HardwareGroup will be
          +     * delivered.
          +     * Format: `projects/{project}/locations/{location}/sites/{site}`
          +     * 
          + * + * + * string site = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The site. + */ + public java.lang.String getSite() { + java.lang.Object ref = site_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + site_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Required. Name of the site where the hardware in this HardwareGroup will be
          +     * delivered.
          +     * Format: `projects/{project}/locations/{location}/sites/{site}`
          +     * 
          + * + * + * string site = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for site. + */ + public com.google.protobuf.ByteString getSiteBytes() { + java.lang.Object ref = site_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + site_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Required. Name of the site where the hardware in this HardwareGroup will be
          +     * delivered.
          +     * Format: `projects/{project}/locations/{location}/sites/{site}`
          +     * 
          + * + * + * string site = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The site to set. + * @return This builder for chaining. + */ + public Builder setSite(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + site_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Name of the site where the hardware in this HardwareGroup will be
          +     * delivered.
          +     * Format: `projects/{project}/locations/{location}/sites/{site}`
          +     * 
          + * + * + * string site = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearSite() { + site_ = getDefaultInstance().getSite(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Name of the site where the hardware in this HardwareGroup will be
          +     * delivered.
          +     * Format: `projects/{project}/locations/{location}/sites/{site}`
          +     * 
          + * + * + * string site = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for site to set. + * @return This builder for chaining. + */ + public Builder setSiteBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + site_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * + * + *
          +     * Output only. Current state of this HardwareGroup.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
          +     * Output only. Current state of this HardwareGroup.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Current state of this HardwareGroup.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.State getState() { + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.State result = + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.State.forNumber(state_); + return result == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.State.UNRECOGNIZED + : result; + } + /** + * + * + *
          +     * Output only. Current state of this HardwareGroup.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Current state of this HardwareGroup.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000080); + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + * + * + *
          +     * Optional. Name of the zone that the hardware in this HardwareGroup belongs
          +     * to. Format: `projects/{project}/locations/{location}/zones/{zone}`
          +     * 
          + * + * + * string zone = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The zone. + */ + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. Name of the zone that the hardware in this HardwareGroup belongs
          +     * to. Format: `projects/{project}/locations/{location}/zones/{zone}`
          +     * 
          + * + * + * string zone = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for zone. + */ + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. Name of the zone that the hardware in this HardwareGroup belongs
          +     * to. Format: `projects/{project}/locations/{location}/zones/{zone}`
          +     * 
          + * + * + * string zone = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The zone to set. + * @return This builder for chaining. + */ + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + zone_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Name of the zone that the hardware in this HardwareGroup belongs
          +     * to. Format: `projects/{project}/locations/{location}/zones/{zone}`
          +     * 
          + * + * + * string zone = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Name of the zone that the hardware in this HardwareGroup belongs
          +     * to. Format: `projects/{project}/locations/{location}/zones/{zone}`
          +     * 
          + * + * + * string zone = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + zone_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private com.google.type.Date requestedInstallationDate_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + requestedInstallationDateBuilder_; + /** + * + * + *
          +     * Optional. Requested installation date for the hardware in this
          +     * HardwareGroup. Filled in by the customer.
          +     * 
          + * + * + * .google.type.Date requested_installation_date = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the requestedInstallationDate field is set. + */ + public boolean hasRequestedInstallationDate() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * + * + *
          +     * Optional. Requested installation date for the hardware in this
          +     * HardwareGroup. Filled in by the customer.
          +     * 
          + * + * + * .google.type.Date requested_installation_date = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The requestedInstallationDate. + */ + public com.google.type.Date getRequestedInstallationDate() { + if (requestedInstallationDateBuilder_ == null) { + return requestedInstallationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : requestedInstallationDate_; + } else { + return requestedInstallationDateBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Optional. Requested installation date for the hardware in this
          +     * HardwareGroup. Filled in by the customer.
          +     * 
          + * + * + * .google.type.Date requested_installation_date = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRequestedInstallationDate(com.google.type.Date value) { + if (requestedInstallationDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + requestedInstallationDate_ = value; + } else { + requestedInstallationDateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Requested installation date for the hardware in this
          +     * HardwareGroup. Filled in by the customer.
          +     * 
          + * + * + * .google.type.Date requested_installation_date = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRequestedInstallationDate(com.google.type.Date.Builder builderForValue) { + if (requestedInstallationDateBuilder_ == null) { + requestedInstallationDate_ = builderForValue.build(); + } else { + requestedInstallationDateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Requested installation date for the hardware in this
          +     * HardwareGroup. Filled in by the customer.
          +     * 
          + * + * + * .google.type.Date requested_installation_date = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRequestedInstallationDate(com.google.type.Date value) { + if (requestedInstallationDateBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && requestedInstallationDate_ != null + && requestedInstallationDate_ != com.google.type.Date.getDefaultInstance()) { + getRequestedInstallationDateBuilder().mergeFrom(value); + } else { + requestedInstallationDate_ = value; + } + } else { + requestedInstallationDateBuilder_.mergeFrom(value); + } + if (requestedInstallationDate_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Optional. Requested installation date for the hardware in this
          +     * HardwareGroup. Filled in by the customer.
          +     * 
          + * + * + * .google.type.Date requested_installation_date = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRequestedInstallationDate() { + bitField0_ = (bitField0_ & ~0x00000200); + requestedInstallationDate_ = null; + if (requestedInstallationDateBuilder_ != null) { + requestedInstallationDateBuilder_.dispose(); + requestedInstallationDateBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Requested installation date for the hardware in this
          +     * HardwareGroup. Filled in by the customer.
          +     * 
          + * + * + * .google.type.Date requested_installation_date = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.type.Date.Builder getRequestedInstallationDateBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return getRequestedInstallationDateFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Optional. Requested installation date for the hardware in this
          +     * HardwareGroup. Filled in by the customer.
          +     * 
          + * + * + * .google.type.Date requested_installation_date = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.type.DateOrBuilder getRequestedInstallationDateOrBuilder() { + if (requestedInstallationDateBuilder_ != null) { + return requestedInstallationDateBuilder_.getMessageOrBuilder(); + } else { + return requestedInstallationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : requestedInstallationDate_; + } + } + /** + * + * + *
          +     * Optional. Requested installation date for the hardware in this
          +     * HardwareGroup. Filled in by the customer.
          +     * 
          + * + * + * .google.type.Date requested_installation_date = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getRequestedInstallationDateFieldBuilder() { + if (requestedInstallationDateBuilder_ == null) { + requestedInstallationDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getRequestedInstallationDate(), getParentForChildren(), isClean()); + requestedInstallationDate_ = null; + } + return requestedInstallationDateBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HardwareGroup parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareGroupName.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareGroupName.java new file mode 100644 index 000000000000..97675d0d0cc6 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareGroupName.java @@ -0,0 +1,261 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class HardwareGroupName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_ORDER_HARDWARE_GROUP = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String order; + private final String hardwareGroup; + + @Deprecated + protected HardwareGroupName() { + project = null; + location = null; + order = null; + hardwareGroup = null; + } + + private HardwareGroupName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + order = Preconditions.checkNotNull(builder.getOrder()); + hardwareGroup = Preconditions.checkNotNull(builder.getHardwareGroup()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getOrder() { + return order; + } + + public String getHardwareGroup() { + return hardwareGroup; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static HardwareGroupName of( + String project, String location, String order, String hardwareGroup) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setOrder(order) + .setHardwareGroup(hardwareGroup) + .build(); + } + + public static String format(String project, String location, String order, String hardwareGroup) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setOrder(order) + .setHardwareGroup(hardwareGroup) + .build() + .toString(); + } + + public static HardwareGroupName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_ORDER_HARDWARE_GROUP.validatedMatch( + formattedString, "HardwareGroupName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("order"), + matchMap.get("hardware_group")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (HardwareGroupName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_ORDER_HARDWARE_GROUP.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (order != null) { + fieldMapBuilder.put("order", order); + } + if (hardwareGroup != null) { + fieldMapBuilder.put("hardware_group", hardwareGroup); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_ORDER_HARDWARE_GROUP.instantiate( + "project", project, "location", location, "order", order, "hardware_group", hardwareGroup); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + HardwareGroupName that = ((HardwareGroupName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.order, that.order) + && Objects.equals(this.hardwareGroup, that.hardwareGroup); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(order); + h *= 1000003; + h ^= Objects.hashCode(hardwareGroup); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}. + */ + public static class Builder { + private String project; + private String location; + private String order; + private String hardwareGroup; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getOrder() { + return order; + } + + public String getHardwareGroup() { + return hardwareGroup; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setOrder(String order) { + this.order = order; + return this; + } + + public Builder setHardwareGroup(String hardwareGroup) { + this.hardwareGroup = hardwareGroup; + return this; + } + + private Builder(HardwareGroupName hardwareGroupName) { + this.project = hardwareGroupName.project; + this.location = hardwareGroupName.location; + this.order = hardwareGroupName.order; + this.hardwareGroup = hardwareGroupName.hardwareGroup; + } + + public HardwareGroupName build() { + return new HardwareGroupName(this); + } + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareGroupOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareGroupOrBuilder.java new file mode 100644 index 000000000000..c2bbc1b522a2 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareGroupOrBuilder.java @@ -0,0 +1,390 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface HardwareGroupOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Identifier. Name of this hardware group.
          +   * Format:
          +   * `projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}`
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
          +   * Identifier. Name of this hardware group.
          +   * Format:
          +   * `projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}`
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
          +   * Output only. Time when this hardware group was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
          +   * Output only. Time when this hardware group was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
          +   * Output only. Time when this hardware group was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
          +   * Output only. Time when this hardware group was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
          +   * Output only. Time when this hardware group was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
          +   * Output only. Time when this hardware group was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
          +   * Optional. Labels associated with this hardware group as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + /** + * + * + *
          +   * Optional. Labels associated with this hardware group as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + /** + * + * + *
          +   * Optional. Labels associated with this hardware group as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
          +   * Optional. Labels associated with this hardware group as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
          +   * Optional. Labels associated with this hardware group as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
          +   * Required. Number of hardware in this HardwareGroup.
          +   * 
          + * + * int32 hardware_count = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The hardwareCount. + */ + int getHardwareCount(); + + /** + * + * + *
          +   * Required. Configuration for hardware in this HardwareGroup.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the config field is set. + */ + boolean hasConfig(); + /** + * + * + *
          +   * Required. Configuration for hardware in this HardwareGroup.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The config. + */ + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig getConfig(); + /** + * + * + *
          +   * Required. Configuration for hardware in this HardwareGroup.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfigOrBuilder getConfigOrBuilder(); + + /** + * + * + *
          +   * Required. Name of the site where the hardware in this HardwareGroup will be
          +   * delivered.
          +   * Format: `projects/{project}/locations/{location}/sites/{site}`
          +   * 
          + * + * + * string site = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The site. + */ + java.lang.String getSite(); + /** + * + * + *
          +   * Required. Name of the site where the hardware in this HardwareGroup will be
          +   * delivered.
          +   * Format: `projects/{project}/locations/{location}/sites/{site}`
          +   * 
          + * + * + * string site = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for site. + */ + com.google.protobuf.ByteString getSiteBytes(); + + /** + * + * + *
          +   * Output only. Current state of this HardwareGroup.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
          +   * Output only. Current state of this HardwareGroup.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.State getState(); + + /** + * + * + *
          +   * Optional. Name of the zone that the hardware in this HardwareGroup belongs
          +   * to. Format: `projects/{project}/locations/{location}/zones/{zone}`
          +   * 
          + * + * + * string zone = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The zone. + */ + java.lang.String getZone(); + /** + * + * + *
          +   * Optional. Name of the zone that the hardware in this HardwareGroup belongs
          +   * to. Format: `projects/{project}/locations/{location}/zones/{zone}`
          +   * 
          + * + * + * string zone = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for zone. + */ + com.google.protobuf.ByteString getZoneBytes(); + + /** + * + * + *
          +   * Optional. Requested installation date for the hardware in this
          +   * HardwareGroup. Filled in by the customer.
          +   * 
          + * + * + * .google.type.Date requested_installation_date = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the requestedInstallationDate field is set. + */ + boolean hasRequestedInstallationDate(); + /** + * + * + *
          +   * Optional. Requested installation date for the hardware in this
          +   * HardwareGroup. Filled in by the customer.
          +   * 
          + * + * + * .google.type.Date requested_installation_date = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The requestedInstallationDate. + */ + com.google.type.Date getRequestedInstallationDate(); + /** + * + * + *
          +   * Optional. Requested installation date for the hardware in this
          +   * HardwareGroup. Filled in by the customer.
          +   * 
          + * + * + * .google.type.Date requested_installation_date = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.type.DateOrBuilder getRequestedInstallationDateOrBuilder(); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareInstallationInfo.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareInstallationInfo.java new file mode 100644 index 000000000000..f457267b9e03 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareInstallationInfo.java @@ -0,0 +1,1782 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * Information for installation of a Hardware.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo} + */ +public final class HardwareInstallationInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo) + HardwareInstallationInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use HardwareInstallationInfo.newBuilder() to construct. + private HardwareInstallationInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private HardwareInstallationInfo() { + rackLocation_ = ""; + rackType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new HardwareInstallationInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwareInstallationInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwareInstallationInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo.class, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo.Builder.class); + } + + /** + * + * + *
          +   * Valid rack types.
          +   * 
          + * + * Protobuf enum {@code + * google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo.RackType} + */ + public enum RackType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
          +     * Rack type is unspecified.
          +     * 
          + * + * RACK_TYPE_UNSPECIFIED = 0; + */ + RACK_TYPE_UNSPECIFIED(0), + /** + * + * + *
          +     * Two post rack.
          +     * 
          + * + * TWO_POST = 1; + */ + TWO_POST(1), + /** + * + * + *
          +     * Four post rack.
          +     * 
          + * + * FOUR_POST = 2; + */ + FOUR_POST(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
          +     * Rack type is unspecified.
          +     * 
          + * + * RACK_TYPE_UNSPECIFIED = 0; + */ + public static final int RACK_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
          +     * Two post rack.
          +     * 
          + * + * TWO_POST = 1; + */ + public static final int TWO_POST_VALUE = 1; + /** + * + * + *
          +     * Four post rack.
          +     * 
          + * + * FOUR_POST = 2; + */ + public static final int FOUR_POST_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static RackType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static RackType forNumber(int value) { + switch (value) { + case 0: + return RACK_TYPE_UNSPECIFIED; + case 1: + return TWO_POST; + case 2: + return FOUR_POST; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RackType findValueByNumber(int number) { + return RackType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final RackType[] VALUES = values(); + + public static RackType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private RackType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo.RackType) + } + + private int bitField0_; + public static final int RACK_LOCATION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object rackLocation_ = ""; + /** + * + * + *
          +   * Optional. Location of the rack in the site e.g. Floor 2, Room 201, Row 7,
          +   * Rack 3.
          +   * 
          + * + * string rack_location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The rackLocation. + */ + @java.lang.Override + public java.lang.String getRackLocation() { + java.lang.Object ref = rackLocation_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rackLocation_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. Location of the rack in the site e.g. Floor 2, Room 201, Row 7,
          +   * Rack 3.
          +   * 
          + * + * string rack_location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for rackLocation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRackLocationBytes() { + java.lang.Object ref = rackLocation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rackLocation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POWER_DISTANCE_METERS_FIELD_NUMBER = 2; + private int powerDistanceMeters_ = 0; + /** + * + * + *
          +   * Required. Distance from the power outlet in meters.
          +   * 
          + * + * int32 power_distance_meters = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The powerDistanceMeters. + */ + @java.lang.Override + public int getPowerDistanceMeters() { + return powerDistanceMeters_; + } + + public static final int SWITCH_DISTANCE_METERS_FIELD_NUMBER = 3; + private int switchDistanceMeters_ = 0; + /** + * + * + *
          +   * Required. Distance from the network switch in meters.
          +   * 
          + * + * int32 switch_distance_meters = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The switchDistanceMeters. + */ + @java.lang.Override + public int getSwitchDistanceMeters() { + return switchDistanceMeters_; + } + + public static final int RACK_UNIT_DIMENSIONS_FIELD_NUMBER = 4; + private com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions rackUnitDimensions_; + /** + * + * + *
          +   * Required. Dimensions of the rack unit.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Dimensions rack_unit_dimensions = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rackUnitDimensions field is set. + */ + @java.lang.Override + public boolean hasRackUnitDimensions() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
          +   * Required. Dimensions of the rack unit.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Dimensions rack_unit_dimensions = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rackUnitDimensions. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions getRackUnitDimensions() { + return rackUnitDimensions_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions.getDefaultInstance() + : rackUnitDimensions_; + } + /** + * + * + *
          +   * Required. Dimensions of the rack unit.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Dimensions rack_unit_dimensions = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.DimensionsOrBuilder + getRackUnitDimensionsOrBuilder() { + return rackUnitDimensions_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions.getDefaultInstance() + : rackUnitDimensions_; + } + + public static final int RACK_SPACE_FIELD_NUMBER = 5; + private com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace rackSpace_; + /** + * + * + *
          +   * Required. Rack space allocated for the hardware.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rackSpace field is set. + */ + @java.lang.Override + public boolean hasRackSpace() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
          +   * Required. Rack space allocated for the hardware.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rackSpace. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace getRackSpace() { + return rackSpace_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace.getDefaultInstance() + : rackSpace_; + } + /** + * + * + *
          +   * Required. Rack space allocated for the hardware.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.RackSpaceOrBuilder getRackSpaceOrBuilder() { + return rackSpace_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace.getDefaultInstance() + : rackSpace_; + } + + public static final int RACK_TYPE_FIELD_NUMBER = 6; + private int rackType_ = 0; + /** + * + * + *
          +   * Required. Type of the rack.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo.RackType rack_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for rackType. + */ + @java.lang.Override + public int getRackTypeValue() { + return rackType_; + } + /** + * + * + *
          +   * Required. Type of the rack.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo.RackType rack_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rackType. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo.RackType + getRackType() { + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo.RackType result = + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo.RackType.forNumber( + rackType_); + return result == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo.RackType + .UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rackLocation_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, rackLocation_); + } + if (powerDistanceMeters_ != 0) { + output.writeInt32(2, powerDistanceMeters_); + } + if (switchDistanceMeters_ != 0) { + output.writeInt32(3, switchDistanceMeters_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getRackUnitDimensions()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getRackSpace()); + } + if (rackType_ + != com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo.RackType + .RACK_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, rackType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rackLocation_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, rackLocation_); + } + if (powerDistanceMeters_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, powerDistanceMeters_); + } + if (switchDistanceMeters_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, switchDistanceMeters_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getRackUnitDimensions()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getRackSpace()); + } + if (rackType_ + != com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo.RackType + .RACK_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, rackType_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo other = + (com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo) obj; + + if (!getRackLocation().equals(other.getRackLocation())) return false; + if (getPowerDistanceMeters() != other.getPowerDistanceMeters()) return false; + if (getSwitchDistanceMeters() != other.getSwitchDistanceMeters()) return false; + if (hasRackUnitDimensions() != other.hasRackUnitDimensions()) return false; + if (hasRackUnitDimensions()) { + if (!getRackUnitDimensions().equals(other.getRackUnitDimensions())) return false; + } + if (hasRackSpace() != other.hasRackSpace()) return false; + if (hasRackSpace()) { + if (!getRackSpace().equals(other.getRackSpace())) return false; + } + if (rackType_ != other.rackType_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RACK_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getRackLocation().hashCode(); + hash = (37 * hash) + POWER_DISTANCE_METERS_FIELD_NUMBER; + hash = (53 * hash) + getPowerDistanceMeters(); + hash = (37 * hash) + SWITCH_DISTANCE_METERS_FIELD_NUMBER; + hash = (53 * hash) + getSwitchDistanceMeters(); + if (hasRackUnitDimensions()) { + hash = (37 * hash) + RACK_UNIT_DIMENSIONS_FIELD_NUMBER; + hash = (53 * hash) + getRackUnitDimensions().hashCode(); + } + if (hasRackSpace()) { + hash = (37 * hash) + RACK_SPACE_FIELD_NUMBER; + hash = (53 * hash) + getRackSpace().hashCode(); + } + hash = (37 * hash) + RACK_TYPE_FIELD_NUMBER; + hash = (53 * hash) + rackType_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * Information for installation of a Hardware.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo) + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwareInstallationInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwareInstallationInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo.class, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo.Builder + .class); + } + + // Construct using + // com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getRackUnitDimensionsFieldBuilder(); + getRackSpaceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + rackLocation_ = ""; + powerDistanceMeters_ = 0; + switchDistanceMeters_ = 0; + rackUnitDimensions_ = null; + if (rackUnitDimensionsBuilder_ != null) { + rackUnitDimensionsBuilder_.dispose(); + rackUnitDimensionsBuilder_ = null; + } + rackSpace_ = null; + if (rackSpaceBuilder_ != null) { + rackSpaceBuilder_.dispose(); + rackSpaceBuilder_ = null; + } + rackType_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwareInstallationInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo build() { + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo result = + new com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.rackLocation_ = rackLocation_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.powerDistanceMeters_ = powerDistanceMeters_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.switchDistanceMeters_ = switchDistanceMeters_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.rackUnitDimensions_ = + rackUnitDimensionsBuilder_ == null + ? rackUnitDimensions_ + : rackUnitDimensionsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.rackSpace_ = rackSpaceBuilder_ == null ? rackSpace_ : rackSpaceBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.rackType_ = rackType_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo) { + return mergeFrom( + (com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo + .getDefaultInstance()) return this; + if (!other.getRackLocation().isEmpty()) { + rackLocation_ = other.rackLocation_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPowerDistanceMeters() != 0) { + setPowerDistanceMeters(other.getPowerDistanceMeters()); + } + if (other.getSwitchDistanceMeters() != 0) { + setSwitchDistanceMeters(other.getSwitchDistanceMeters()); + } + if (other.hasRackUnitDimensions()) { + mergeRackUnitDimensions(other.getRackUnitDimensions()); + } + if (other.hasRackSpace()) { + mergeRackSpace(other.getRackSpace()); + } + if (other.rackType_ != 0) { + setRackTypeValue(other.getRackTypeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + rackLocation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + powerDistanceMeters_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + switchDistanceMeters_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + input.readMessage( + getRackUnitDimensionsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage(getRackSpaceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + rackType_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object rackLocation_ = ""; + /** + * + * + *
          +     * Optional. Location of the rack in the site e.g. Floor 2, Room 201, Row 7,
          +     * Rack 3.
          +     * 
          + * + * string rack_location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The rackLocation. + */ + public java.lang.String getRackLocation() { + java.lang.Object ref = rackLocation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rackLocation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. Location of the rack in the site e.g. Floor 2, Room 201, Row 7,
          +     * Rack 3.
          +     * 
          + * + * string rack_location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for rackLocation. + */ + public com.google.protobuf.ByteString getRackLocationBytes() { + java.lang.Object ref = rackLocation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rackLocation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. Location of the rack in the site e.g. Floor 2, Room 201, Row 7,
          +     * Rack 3.
          +     * 
          + * + * string rack_location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The rackLocation to set. + * @return This builder for chaining. + */ + public Builder setRackLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + rackLocation_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Location of the rack in the site e.g. Floor 2, Room 201, Row 7,
          +     * Rack 3.
          +     * 
          + * + * string rack_location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRackLocation() { + rackLocation_ = getDefaultInstance().getRackLocation(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Location of the rack in the site e.g. Floor 2, Room 201, Row 7,
          +     * Rack 3.
          +     * 
          + * + * string rack_location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for rackLocation to set. + * @return This builder for chaining. + */ + public Builder setRackLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + rackLocation_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int powerDistanceMeters_; + /** + * + * + *
          +     * Required. Distance from the power outlet in meters.
          +     * 
          + * + * int32 power_distance_meters = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The powerDistanceMeters. + */ + @java.lang.Override + public int getPowerDistanceMeters() { + return powerDistanceMeters_; + } + /** + * + * + *
          +     * Required. Distance from the power outlet in meters.
          +     * 
          + * + * int32 power_distance_meters = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The powerDistanceMeters to set. + * @return This builder for chaining. + */ + public Builder setPowerDistanceMeters(int value) { + + powerDistanceMeters_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Distance from the power outlet in meters.
          +     * 
          + * + * int32 power_distance_meters = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPowerDistanceMeters() { + bitField0_ = (bitField0_ & ~0x00000002); + powerDistanceMeters_ = 0; + onChanged(); + return this; + } + + private int switchDistanceMeters_; + /** + * + * + *
          +     * Required. Distance from the network switch in meters.
          +     * 
          + * + * int32 switch_distance_meters = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The switchDistanceMeters. + */ + @java.lang.Override + public int getSwitchDistanceMeters() { + return switchDistanceMeters_; + } + /** + * + * + *
          +     * Required. Distance from the network switch in meters.
          +     * 
          + * + * int32 switch_distance_meters = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The switchDistanceMeters to set. + * @return This builder for chaining. + */ + public Builder setSwitchDistanceMeters(int value) { + + switchDistanceMeters_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Distance from the network switch in meters.
          +     * 
          + * + * int32 switch_distance_meters = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSwitchDistanceMeters() { + bitField0_ = (bitField0_ & ~0x00000004); + switchDistanceMeters_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions rackUnitDimensions_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions, + com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.DimensionsOrBuilder> + rackUnitDimensionsBuilder_; + /** + * + * + *
          +     * Required. Dimensions of the rack unit.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Dimensions rack_unit_dimensions = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rackUnitDimensions field is set. + */ + public boolean hasRackUnitDimensions() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
          +     * Required. Dimensions of the rack unit.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Dimensions rack_unit_dimensions = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rackUnitDimensions. + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions getRackUnitDimensions() { + if (rackUnitDimensionsBuilder_ == null) { + return rackUnitDimensions_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions.getDefaultInstance() + : rackUnitDimensions_; + } else { + return rackUnitDimensionsBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Required. Dimensions of the rack unit.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Dimensions rack_unit_dimensions = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRackUnitDimensions( + com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions value) { + if (rackUnitDimensionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rackUnitDimensions_ = value; + } else { + rackUnitDimensionsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Dimensions of the rack unit.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Dimensions rack_unit_dimensions = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRackUnitDimensions( + com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions.Builder builderForValue) { + if (rackUnitDimensionsBuilder_ == null) { + rackUnitDimensions_ = builderForValue.build(); + } else { + rackUnitDimensionsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Dimensions of the rack unit.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Dimensions rack_unit_dimensions = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeRackUnitDimensions( + com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions value) { + if (rackUnitDimensionsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && rackUnitDimensions_ != null + && rackUnitDimensions_ + != com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions.getDefaultInstance()) { + getRackUnitDimensionsBuilder().mergeFrom(value); + } else { + rackUnitDimensions_ = value; + } + } else { + rackUnitDimensionsBuilder_.mergeFrom(value); + } + if (rackUnitDimensions_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Required. Dimensions of the rack unit.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Dimensions rack_unit_dimensions = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRackUnitDimensions() { + bitField0_ = (bitField0_ & ~0x00000008); + rackUnitDimensions_ = null; + if (rackUnitDimensionsBuilder_ != null) { + rackUnitDimensionsBuilder_.dispose(); + rackUnitDimensionsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Dimensions of the rack unit.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Dimensions rack_unit_dimensions = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions.Builder + getRackUnitDimensionsBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getRackUnitDimensionsFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Required. Dimensions of the rack unit.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Dimensions rack_unit_dimensions = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.DimensionsOrBuilder + getRackUnitDimensionsOrBuilder() { + if (rackUnitDimensionsBuilder_ != null) { + return rackUnitDimensionsBuilder_.getMessageOrBuilder(); + } else { + return rackUnitDimensions_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions.getDefaultInstance() + : rackUnitDimensions_; + } + } + /** + * + * + *
          +     * Required. Dimensions of the rack unit.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Dimensions rack_unit_dimensions = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions, + com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.DimensionsOrBuilder> + getRackUnitDimensionsFieldBuilder() { + if (rackUnitDimensionsBuilder_ == null) { + rackUnitDimensionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions, + com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.DimensionsOrBuilder>( + getRackUnitDimensions(), getParentForChildren(), isClean()); + rackUnitDimensions_ = null; + } + return rackUnitDimensionsBuilder_; + } + + private com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace rackSpace_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace, + com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.RackSpaceOrBuilder> + rackSpaceBuilder_; + /** + * + * + *
          +     * Required. Rack space allocated for the hardware.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rackSpace field is set. + */ + public boolean hasRackSpace() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
          +     * Required. Rack space allocated for the hardware.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rackSpace. + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace getRackSpace() { + if (rackSpaceBuilder_ == null) { + return rackSpace_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace.getDefaultInstance() + : rackSpace_; + } else { + return rackSpaceBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Required. Rack space allocated for the hardware.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRackSpace(com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace value) { + if (rackSpaceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rackSpace_ = value; + } else { + rackSpaceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Rack space allocated for the hardware.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRackSpace( + com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace.Builder builderForValue) { + if (rackSpaceBuilder_ == null) { + rackSpace_ = builderForValue.build(); + } else { + rackSpaceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Rack space allocated for the hardware.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeRackSpace(com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace value) { + if (rackSpaceBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && rackSpace_ != null + && rackSpace_ + != com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace.getDefaultInstance()) { + getRackSpaceBuilder().mergeFrom(value); + } else { + rackSpace_ = value; + } + } else { + rackSpaceBuilder_.mergeFrom(value); + } + if (rackSpace_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Required. Rack space allocated for the hardware.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRackSpace() { + bitField0_ = (bitField0_ & ~0x00000010); + rackSpace_ = null; + if (rackSpaceBuilder_ != null) { + rackSpaceBuilder_.dispose(); + rackSpaceBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Rack space allocated for the hardware.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace.Builder getRackSpaceBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getRackSpaceFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Required. Rack space allocated for the hardware.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.RackSpaceOrBuilder + getRackSpaceOrBuilder() { + if (rackSpaceBuilder_ != null) { + return rackSpaceBuilder_.getMessageOrBuilder(); + } else { + return rackSpace_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace.getDefaultInstance() + : rackSpace_; + } + } + /** + * + * + *
          +     * Required. Rack space allocated for the hardware.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace, + com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.RackSpaceOrBuilder> + getRackSpaceFieldBuilder() { + if (rackSpaceBuilder_ == null) { + rackSpaceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace, + com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.RackSpaceOrBuilder>( + getRackSpace(), getParentForChildren(), isClean()); + rackSpace_ = null; + } + return rackSpaceBuilder_; + } + + private int rackType_ = 0; + /** + * + * + *
          +     * Required. Type of the rack.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo.RackType rack_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for rackType. + */ + @java.lang.Override + public int getRackTypeValue() { + return rackType_; + } + /** + * + * + *
          +     * Required. Type of the rack.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo.RackType rack_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for rackType to set. + * @return This builder for chaining. + */ + public Builder setRackTypeValue(int value) { + rackType_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Type of the rack.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo.RackType rack_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rackType. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo.RackType + getRackType() { + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo.RackType result = + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo.RackType + .forNumber(rackType_); + return result == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo.RackType + .UNRECOGNIZED + : result; + } + /** + * + * + *
          +     * Required. Type of the rack.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo.RackType rack_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The rackType to set. + * @return This builder for chaining. + */ + public Builder setRackType( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo.RackType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + rackType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Type of the rack.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo.RackType rack_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearRackType() { + bitField0_ = (bitField0_ & ~0x00000020); + rackType_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HardwareInstallationInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareInstallationInfoOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareInstallationInfoOrBuilder.java new file mode 100644 index 000000000000..276fcdb9b8f6 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareInstallationInfoOrBuilder.java @@ -0,0 +1,191 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface HardwareInstallationInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Optional. Location of the rack in the site e.g. Floor 2, Room 201, Row 7,
          +   * Rack 3.
          +   * 
          + * + * string rack_location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The rackLocation. + */ + java.lang.String getRackLocation(); + /** + * + * + *
          +   * Optional. Location of the rack in the site e.g. Floor 2, Room 201, Row 7,
          +   * Rack 3.
          +   * 
          + * + * string rack_location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for rackLocation. + */ + com.google.protobuf.ByteString getRackLocationBytes(); + + /** + * + * + *
          +   * Required. Distance from the power outlet in meters.
          +   * 
          + * + * int32 power_distance_meters = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The powerDistanceMeters. + */ + int getPowerDistanceMeters(); + + /** + * + * + *
          +   * Required. Distance from the network switch in meters.
          +   * 
          + * + * int32 switch_distance_meters = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The switchDistanceMeters. + */ + int getSwitchDistanceMeters(); + + /** + * + * + *
          +   * Required. Dimensions of the rack unit.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Dimensions rack_unit_dimensions = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rackUnitDimensions field is set. + */ + boolean hasRackUnitDimensions(); + /** + * + * + *
          +   * Required. Dimensions of the rack unit.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Dimensions rack_unit_dimensions = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rackUnitDimensions. + */ + com.google.cloud.gdchardwaremanagement.v1alpha.Dimensions getRackUnitDimensions(); + /** + * + * + *
          +   * Required. Dimensions of the rack unit.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Dimensions rack_unit_dimensions = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gdchardwaremanagement.v1alpha.DimensionsOrBuilder + getRackUnitDimensionsOrBuilder(); + + /** + * + * + *
          +   * Required. Rack space allocated for the hardware.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rackSpace field is set. + */ + boolean hasRackSpace(); + /** + * + * + *
          +   * Required. Rack space allocated for the hardware.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rackSpace. + */ + com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace getRackSpace(); + /** + * + * + *
          +   * Required. Rack space allocated for the hardware.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gdchardwaremanagement.v1alpha.RackSpaceOrBuilder getRackSpaceOrBuilder(); + + /** + * + * + *
          +   * Required. Type of the rack.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo.RackType rack_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for rackType. + */ + int getRackTypeValue(); + /** + * + * + *
          +   * Required. Type of the rack.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo.RackType rack_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rackType. + */ + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo.RackType getRackType(); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareLocation.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareLocation.java new file mode 100644 index 000000000000..0b54ae5c1498 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareLocation.java @@ -0,0 +1,1423 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * Represents the location of one or many hardware.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation} + */ +public final class HardwareLocation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation) + HardwareLocationOrBuilder { + private static final long serialVersionUID = 0L; + // Use HardwareLocation.newBuilder() to construct. + private HardwareLocation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private HardwareLocation() { + site_ = ""; + rackLocation_ = ""; + rackSpace_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new HardwareLocation(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwareLocation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwareLocation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation.class, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation.Builder.class); + } + + public static final int SITE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object site_ = ""; + /** + * + * + *
          +   * Required. Name of the site where the hardware are present.
          +   * Format: `projects/{project}/locations/{location}/sites/{site}`
          +   * 
          + * + * + * string site = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The site. + */ + @java.lang.Override + public java.lang.String getSite() { + java.lang.Object ref = site_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + site_ = s; + return s; + } + } + /** + * + * + *
          +   * Required. Name of the site where the hardware are present.
          +   * Format: `projects/{project}/locations/{location}/sites/{site}`
          +   * 
          + * + * + * string site = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for site. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSiteBytes() { + java.lang.Object ref = site_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + site_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RACK_LOCATION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object rackLocation_ = ""; + /** + * + * + *
          +   * Required. Location of the rack in the site e.g. Floor 2, Room 201, Row 7,
          +   * Rack 3.
          +   * 
          + * + * string rack_location = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The rackLocation. + */ + @java.lang.Override + public java.lang.String getRackLocation() { + java.lang.Object ref = rackLocation_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rackLocation_ = s; + return s; + } + } + /** + * + * + *
          +   * Required. Location of the rack in the site e.g. Floor 2, Room 201, Row 7,
          +   * Rack 3.
          +   * 
          + * + * string rack_location = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for rackLocation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRackLocationBytes() { + java.lang.Object ref = rackLocation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rackLocation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RACK_SPACE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List rackSpace_; + /** + * + * + *
          +   * Optional. Spaces occupied by the hardware in the rack.
          +   * If unset, this location is assumed to be the entire rack.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getRackSpaceList() { + return rackSpace_; + } + /** + * + * + *
          +   * Optional. Spaces occupied by the hardware in the rack.
          +   * If unset, this location is assumed to be the entire rack.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getRackSpaceOrBuilderList() { + return rackSpace_; + } + /** + * + * + *
          +   * Optional. Spaces occupied by the hardware in the rack.
          +   * If unset, this location is assumed to be the entire rack.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getRackSpaceCount() { + return rackSpace_.size(); + } + /** + * + * + *
          +   * Optional. Spaces occupied by the hardware in the rack.
          +   * If unset, this location is assumed to be the entire rack.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace getRackSpace(int index) { + return rackSpace_.get(index); + } + /** + * + * + *
          +   * Optional. Spaces occupied by the hardware in the rack.
          +   * If unset, this location is assumed to be the entire rack.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.RackSpaceOrBuilder getRackSpaceOrBuilder( + int index) { + return rackSpace_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(site_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, site_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rackLocation_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, rackLocation_); + } + for (int i = 0; i < rackSpace_.size(); i++) { + output.writeMessage(3, rackSpace_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(site_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, site_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rackLocation_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, rackLocation_); + } + for (int i = 0; i < rackSpace_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, rackSpace_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation other = + (com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation) obj; + + if (!getSite().equals(other.getSite())) return false; + if (!getRackLocation().equals(other.getRackLocation())) return false; + if (!getRackSpaceList().equals(other.getRackSpaceList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SITE_FIELD_NUMBER; + hash = (53 * hash) + getSite().hashCode(); + hash = (37 * hash) + RACK_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getRackLocation().hashCode(); + if (getRackSpaceCount() > 0) { + hash = (37 * hash) + RACK_SPACE_FIELD_NUMBER; + hash = (53 * hash) + getRackSpaceList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * Represents the location of one or many hardware.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation) + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwareLocation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwareLocation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation.class, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation.Builder.class); + } + + // Construct using com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + site_ = ""; + rackLocation_ = ""; + if (rackSpaceBuilder_ == null) { + rackSpace_ = java.util.Collections.emptyList(); + } else { + rackSpace_ = null; + rackSpaceBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwareLocation_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation build() { + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation result = + new com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation result) { + if (rackSpaceBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + rackSpace_ = java.util.Collections.unmodifiableList(rackSpace_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.rackSpace_ = rackSpace_; + } else { + result.rackSpace_ = rackSpaceBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.site_ = site_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.rackLocation_ = rackLocation_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation) { + return mergeFrom((com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation.getDefaultInstance()) + return this; + if (!other.getSite().isEmpty()) { + site_ = other.site_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRackLocation().isEmpty()) { + rackLocation_ = other.rackLocation_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (rackSpaceBuilder_ == null) { + if (!other.rackSpace_.isEmpty()) { + if (rackSpace_.isEmpty()) { + rackSpace_ = other.rackSpace_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureRackSpaceIsMutable(); + rackSpace_.addAll(other.rackSpace_); + } + onChanged(); + } + } else { + if (!other.rackSpace_.isEmpty()) { + if (rackSpaceBuilder_.isEmpty()) { + rackSpaceBuilder_.dispose(); + rackSpaceBuilder_ = null; + rackSpace_ = other.rackSpace_; + bitField0_ = (bitField0_ & ~0x00000004); + rackSpaceBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRackSpaceFieldBuilder() + : null; + } else { + rackSpaceBuilder_.addAllMessages(other.rackSpace_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + site_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + rackLocation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace m = + input.readMessage( + com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace.parser(), + extensionRegistry); + if (rackSpaceBuilder_ == null) { + ensureRackSpaceIsMutable(); + rackSpace_.add(m); + } else { + rackSpaceBuilder_.addMessage(m); + } + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object site_ = ""; + /** + * + * + *
          +     * Required. Name of the site where the hardware are present.
          +     * Format: `projects/{project}/locations/{location}/sites/{site}`
          +     * 
          + * + * + * string site = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The site. + */ + public java.lang.String getSite() { + java.lang.Object ref = site_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + site_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Required. Name of the site where the hardware are present.
          +     * Format: `projects/{project}/locations/{location}/sites/{site}`
          +     * 
          + * + * + * string site = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for site. + */ + public com.google.protobuf.ByteString getSiteBytes() { + java.lang.Object ref = site_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + site_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Required. Name of the site where the hardware are present.
          +     * Format: `projects/{project}/locations/{location}/sites/{site}`
          +     * 
          + * + * + * string site = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The site to set. + * @return This builder for chaining. + */ + public Builder setSite(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + site_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Name of the site where the hardware are present.
          +     * Format: `projects/{project}/locations/{location}/sites/{site}`
          +     * 
          + * + * + * string site = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearSite() { + site_ = getDefaultInstance().getSite(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Name of the site where the hardware are present.
          +     * Format: `projects/{project}/locations/{location}/sites/{site}`
          +     * 
          + * + * + * string site = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for site to set. + * @return This builder for chaining. + */ + public Builder setSiteBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + site_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object rackLocation_ = ""; + /** + * + * + *
          +     * Required. Location of the rack in the site e.g. Floor 2, Room 201, Row 7,
          +     * Rack 3.
          +     * 
          + * + * string rack_location = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The rackLocation. + */ + public java.lang.String getRackLocation() { + java.lang.Object ref = rackLocation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rackLocation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Required. Location of the rack in the site e.g. Floor 2, Room 201, Row 7,
          +     * Rack 3.
          +     * 
          + * + * string rack_location = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for rackLocation. + */ + public com.google.protobuf.ByteString getRackLocationBytes() { + java.lang.Object ref = rackLocation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rackLocation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Required. Location of the rack in the site e.g. Floor 2, Room 201, Row 7,
          +     * Rack 3.
          +     * 
          + * + * string rack_location = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The rackLocation to set. + * @return This builder for chaining. + */ + public Builder setRackLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + rackLocation_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Location of the rack in the site e.g. Floor 2, Room 201, Row 7,
          +     * Rack 3.
          +     * 
          + * + * string rack_location = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRackLocation() { + rackLocation_ = getDefaultInstance().getRackLocation(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Location of the rack in the site e.g. Floor 2, Room 201, Row 7,
          +     * Rack 3.
          +     * 
          + * + * string rack_location = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for rackLocation to set. + * @return This builder for chaining. + */ + public Builder setRackLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + rackLocation_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.util.List rackSpace_ = + java.util.Collections.emptyList(); + + private void ensureRackSpaceIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + rackSpace_ = + new java.util.ArrayList( + rackSpace_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace, + com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.RackSpaceOrBuilder> + rackSpaceBuilder_; + + /** + * + * + *
          +     * Optional. Spaces occupied by the hardware in the rack.
          +     * If unset, this location is assumed to be the entire rack.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getRackSpaceList() { + if (rackSpaceBuilder_ == null) { + return java.util.Collections.unmodifiableList(rackSpace_); + } else { + return rackSpaceBuilder_.getMessageList(); + } + } + /** + * + * + *
          +     * Optional. Spaces occupied by the hardware in the rack.
          +     * If unset, this location is assumed to be the entire rack.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getRackSpaceCount() { + if (rackSpaceBuilder_ == null) { + return rackSpace_.size(); + } else { + return rackSpaceBuilder_.getCount(); + } + } + /** + * + * + *
          +     * Optional. Spaces occupied by the hardware in the rack.
          +     * If unset, this location is assumed to be the entire rack.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace getRackSpace(int index) { + if (rackSpaceBuilder_ == null) { + return rackSpace_.get(index); + } else { + return rackSpaceBuilder_.getMessage(index); + } + } + /** + * + * + *
          +     * Optional. Spaces occupied by the hardware in the rack.
          +     * If unset, this location is assumed to be the entire rack.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRackSpace( + int index, com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace value) { + if (rackSpaceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRackSpaceIsMutable(); + rackSpace_.set(index, value); + onChanged(); + } else { + rackSpaceBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
          +     * Optional. Spaces occupied by the hardware in the rack.
          +     * If unset, this location is assumed to be the entire rack.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRackSpace( + int index, + com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace.Builder builderForValue) { + if (rackSpaceBuilder_ == null) { + ensureRackSpaceIsMutable(); + rackSpace_.set(index, builderForValue.build()); + onChanged(); + } else { + rackSpaceBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * Optional. Spaces occupied by the hardware in the rack.
          +     * If unset, this location is assumed to be the entire rack.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addRackSpace(com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace value) { + if (rackSpaceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRackSpaceIsMutable(); + rackSpace_.add(value); + onChanged(); + } else { + rackSpaceBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
          +     * Optional. Spaces occupied by the hardware in the rack.
          +     * If unset, this location is assumed to be the entire rack.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addRackSpace( + int index, com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace value) { + if (rackSpaceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRackSpaceIsMutable(); + rackSpace_.add(index, value); + onChanged(); + } else { + rackSpaceBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
          +     * Optional. Spaces occupied by the hardware in the rack.
          +     * If unset, this location is assumed to be the entire rack.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addRackSpace( + com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace.Builder builderForValue) { + if (rackSpaceBuilder_ == null) { + ensureRackSpaceIsMutable(); + rackSpace_.add(builderForValue.build()); + onChanged(); + } else { + rackSpaceBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * Optional. Spaces occupied by the hardware in the rack.
          +     * If unset, this location is assumed to be the entire rack.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addRackSpace( + int index, + com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace.Builder builderForValue) { + if (rackSpaceBuilder_ == null) { + ensureRackSpaceIsMutable(); + rackSpace_.add(index, builderForValue.build()); + onChanged(); + } else { + rackSpaceBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * Optional. Spaces occupied by the hardware in the rack.
          +     * If unset, this location is assumed to be the entire rack.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllRackSpace( + java.lang.Iterable + values) { + if (rackSpaceBuilder_ == null) { + ensureRackSpaceIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rackSpace_); + onChanged(); + } else { + rackSpaceBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
          +     * Optional. Spaces occupied by the hardware in the rack.
          +     * If unset, this location is assumed to be the entire rack.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRackSpace() { + if (rackSpaceBuilder_ == null) { + rackSpace_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + rackSpaceBuilder_.clear(); + } + return this; + } + /** + * + * + *
          +     * Optional. Spaces occupied by the hardware in the rack.
          +     * If unset, this location is assumed to be the entire rack.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeRackSpace(int index) { + if (rackSpaceBuilder_ == null) { + ensureRackSpaceIsMutable(); + rackSpace_.remove(index); + onChanged(); + } else { + rackSpaceBuilder_.remove(index); + } + return this; + } + /** + * + * + *
          +     * Optional. Spaces occupied by the hardware in the rack.
          +     * If unset, this location is assumed to be the entire rack.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace.Builder getRackSpaceBuilder( + int index) { + return getRackSpaceFieldBuilder().getBuilder(index); + } + /** + * + * + *
          +     * Optional. Spaces occupied by the hardware in the rack.
          +     * If unset, this location is assumed to be the entire rack.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.RackSpaceOrBuilder getRackSpaceOrBuilder( + int index) { + if (rackSpaceBuilder_ == null) { + return rackSpace_.get(index); + } else { + return rackSpaceBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
          +     * Optional. Spaces occupied by the hardware in the rack.
          +     * If unset, this location is assumed to be the entire rack.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends com.google.cloud.gdchardwaremanagement.v1alpha.RackSpaceOrBuilder> + getRackSpaceOrBuilderList() { + if (rackSpaceBuilder_ != null) { + return rackSpaceBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rackSpace_); + } + } + /** + * + * + *
          +     * Optional. Spaces occupied by the hardware in the rack.
          +     * If unset, this location is assumed to be the entire rack.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace.Builder addRackSpaceBuilder() { + return getRackSpaceFieldBuilder() + .addBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace.getDefaultInstance()); + } + /** + * + * + *
          +     * Optional. Spaces occupied by the hardware in the rack.
          +     * If unset, this location is assumed to be the entire rack.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace.Builder addRackSpaceBuilder( + int index) { + return getRackSpaceFieldBuilder() + .addBuilder( + index, com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace.getDefaultInstance()); + } + /** + * + * + *
          +     * Optional. Spaces occupied by the hardware in the rack.
          +     * If unset, this location is assumed to be the entire rack.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getRackSpaceBuilderList() { + return getRackSpaceFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace, + com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.RackSpaceOrBuilder> + getRackSpaceFieldBuilder() { + if (rackSpaceBuilder_ == null) { + rackSpaceBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace, + com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.RackSpaceOrBuilder>( + rackSpace_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + rackSpace_ = null; + } + return rackSpaceBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HardwareLocation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareLocationOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareLocationOrBuilder.java new file mode 100644 index 000000000000..d5292d5db852 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareLocationOrBuilder.java @@ -0,0 +1,152 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface HardwareLocationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. Name of the site where the hardware are present.
          +   * Format: `projects/{project}/locations/{location}/sites/{site}`
          +   * 
          + * + * + * string site = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The site. + */ + java.lang.String getSite(); + /** + * + * + *
          +   * Required. Name of the site where the hardware are present.
          +   * Format: `projects/{project}/locations/{location}/sites/{site}`
          +   * 
          + * + * + * string site = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for site. + */ + com.google.protobuf.ByteString getSiteBytes(); + + /** + * + * + *
          +   * Required. Location of the rack in the site e.g. Floor 2, Room 201, Row 7,
          +   * Rack 3.
          +   * 
          + * + * string rack_location = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The rackLocation. + */ + java.lang.String getRackLocation(); + /** + * + * + *
          +   * Required. Location of the rack in the site e.g. Floor 2, Room 201, Row 7,
          +   * Rack 3.
          +   * 
          + * + * string rack_location = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for rackLocation. + */ + com.google.protobuf.ByteString getRackLocationBytes(); + + /** + * + * + *
          +   * Optional. Spaces occupied by the hardware in the rack.
          +   * If unset, this location is assumed to be the entire rack.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getRackSpaceList(); + /** + * + * + *
          +   * Optional. Spaces occupied by the hardware in the rack.
          +   * If unset, this location is assumed to be the entire rack.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace getRackSpace(int index); + /** + * + * + *
          +   * Optional. Spaces occupied by the hardware in the rack.
          +   * If unset, this location is assumed to be the entire rack.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getRackSpaceCount(); + /** + * + * + *
          +   * Optional. Spaces occupied by the hardware in the rack.
          +   * If unset, this location is assumed to be the entire rack.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getRackSpaceOrBuilderList(); + /** + * + * + *
          +   * Optional. Spaces occupied by the hardware in the rack.
          +   * If unset, this location is assumed to be the entire rack.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.gdchardwaremanagement.v1alpha.RackSpaceOrBuilder getRackSpaceOrBuilder( + int index); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareName.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareName.java new file mode 100644 index 000000000000..e2ef0fa702aa --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareName.java @@ -0,0 +1,223 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class HardwareName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_HARDWARE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/hardware/{hardware}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String hardware; + + @Deprecated + protected HardwareName() { + project = null; + location = null; + hardware = null; + } + + private HardwareName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + hardware = Preconditions.checkNotNull(builder.getHardware()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getHardware() { + return hardware; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static HardwareName of(String project, String location, String hardware) { + return newBuilder().setProject(project).setLocation(location).setHardware(hardware).build(); + } + + public static String format(String project, String location, String hardware) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setHardware(hardware) + .build() + .toString(); + } + + public static HardwareName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_HARDWARE.validatedMatch( + formattedString, "HardwareName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("hardware")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (HardwareName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_HARDWARE.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (hardware != null) { + fieldMapBuilder.put("hardware", hardware); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_HARDWARE.instantiate( + "project", project, "location", location, "hardware", hardware); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + HardwareName that = ((HardwareName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.hardware, that.hardware); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(hardware); + return h; + } + + /** Builder for projects/{project}/locations/{location}/hardware/{hardware}. */ + public static class Builder { + private String project; + private String location; + private String hardware; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getHardware() { + return hardware; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setHardware(String hardware) { + this.hardware = hardware; + return this; + } + + private Builder(HardwareName hardwareName) { + this.project = hardwareName.project; + this.location = hardwareName.location; + this.hardware = hardwareName.hardware; + } + + public HardwareName build() { + return new HardwareName(this); + } + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareOrBuilder.java new file mode 100644 index 000000000000..38566f909321 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwareOrBuilder.java @@ -0,0 +1,661 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface HardwareOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.Hardware) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Identifier. Name of this hardware.
          +   * Format: `projects/{project}/locations/{location}/hardware/{hardware}`
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
          +   * Identifier. Name of this hardware.
          +   * Format: `projects/{project}/locations/{location}/hardware/{hardware}`
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
          +   * Optional. Display name for this hardware.
          +   * 
          + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
          +   * Optional. Display name for this hardware.
          +   * 
          + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
          +   * Output only. Time when this hardware was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
          +   * Output only. Time when this hardware was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
          +   * Output only. Time when this hardware was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
          +   * Output only. Time when this hardware was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
          +   * Output only. Time when this hardware was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
          +   * Output only. Time when this hardware was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
          +   * Optional. Labels associated with this hardware as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + /** + * + * + *
          +   * Optional. Labels associated with this hardware as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + /** + * + * + *
          +   * Optional. Labels associated with this hardware as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
          +   * Optional. Labels associated with this hardware as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
          +   * Optional. Labels associated with this hardware as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
          +   * Required. Name of the order that this hardware belongs to.
          +   * Format: `projects/{project}/locations/{location}/orders/{order}`
          +   * 
          + * + * + * string order = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The order. + */ + java.lang.String getOrder(); + /** + * + * + *
          +   * Required. Name of the order that this hardware belongs to.
          +   * Format: `projects/{project}/locations/{location}/orders/{order}`
          +   * 
          + * + * + * string order = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for order. + */ + com.google.protobuf.ByteString getOrderBytes(); + + /** + * + * + *
          +   * Output only. Name for the hardware group that this hardware belongs to.
          +   * Format:
          +   * `projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}`
          +   * 
          + * + * + * string hardware_group = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The hardwareGroup. + */ + java.lang.String getHardwareGroup(); + /** + * + * + *
          +   * Output only. Name for the hardware group that this hardware belongs to.
          +   * Format:
          +   * `projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}`
          +   * 
          + * + * + * string hardware_group = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for hardwareGroup. + */ + com.google.protobuf.ByteString getHardwareGroupBytes(); + + /** + * + * + *
          +   * Required. Name for the site that this hardware belongs to.
          +   * Format: `projects/{project}/locations/{location}/sites/{site}`
          +   * 
          + * + * + * string site = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The site. + */ + java.lang.String getSite(); + /** + * + * + *
          +   * Required. Name for the site that this hardware belongs to.
          +   * Format: `projects/{project}/locations/{location}/sites/{site}`
          +   * 
          + * + * + * string site = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for site. + */ + com.google.protobuf.ByteString getSiteBytes(); + + /** + * + * + *
          +   * Output only. Current state for this hardware.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Hardware.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
          +   * Output only. Current state for this hardware.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Hardware.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.State getState(); + + /** + * + * + *
          +   * Output only. Link to the Customer Intake Questionnaire (CIQ) sheet for this
          +   * Hardware.
          +   * 
          + * + * string ciq_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ciqUri. + */ + java.lang.String getCiqUri(); + /** + * + * + *
          +   * Output only. Link to the Customer Intake Questionnaire (CIQ) sheet for this
          +   * Hardware.
          +   * 
          + * + * string ciq_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ciqUri. + */ + com.google.protobuf.ByteString getCiqUriBytes(); + + /** + * + * + *
          +   * Required. Configuration for this hardware.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig config = 11 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the config field is set. + */ + boolean hasConfig(); + /** + * + * + *
          +   * Required. Configuration for this hardware.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig config = 11 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The config. + */ + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig getConfig(); + /** + * + * + *
          +   * Required. Configuration for this hardware.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig config = 11 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareConfigOrBuilder getConfigOrBuilder(); + + /** + * + * + *
          +   * Output only. Estimated installation date for this hardware.
          +   * 
          + * + * + * .google.type.Date estimated_installation_date = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the estimatedInstallationDate field is set. + */ + boolean hasEstimatedInstallationDate(); + /** + * + * + *
          +   * Output only. Estimated installation date for this hardware.
          +   * 
          + * + * + * .google.type.Date estimated_installation_date = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The estimatedInstallationDate. + */ + com.google.type.Date getEstimatedInstallationDate(); + /** + * + * + *
          +   * Output only. Estimated installation date for this hardware.
          +   * 
          + * + * + * .google.type.Date estimated_installation_date = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.type.DateOrBuilder getEstimatedInstallationDateOrBuilder(); + + /** + * + * + *
          +   * Optional. Physical properties of this hardware.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo physical_info = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the physicalInfo field is set. + */ + boolean hasPhysicalInfo(); + /** + * + * + *
          +   * Optional. Physical properties of this hardware.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo physical_info = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The physicalInfo. + */ + com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo getPhysicalInfo(); + /** + * + * + *
          +   * Optional. Physical properties of this hardware.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo physical_info = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfoOrBuilder + getPhysicalInfoOrBuilder(); + + /** + * + * + *
          +   * Optional. Information for installation of this hardware.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo installation_info = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the installationInfo field is set. + */ + boolean hasInstallationInfo(); + /** + * + * + *
          +   * Optional. Information for installation of this hardware.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo installation_info = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The installationInfo. + */ + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo getInstallationInfo(); + /** + * + * + *
          +   * Optional. Information for installation of this hardware.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfo installation_info = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareInstallationInfoOrBuilder + getInstallationInfoOrBuilder(); + + /** + * + * + *
          +   * Required. Name for the zone that this hardware belongs to.
          +   * Format: `projects/{project}/locations/{location}/zones/{zone}`
          +   * 
          + * + * + * string zone = 15 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The zone. + */ + java.lang.String getZone(); + /** + * + * + *
          +   * Required. Name for the zone that this hardware belongs to.
          +   * Format: `projects/{project}/locations/{location}/zones/{zone}`
          +   * 
          + * + * + * string zone = 15 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for zone. + */ + com.google.protobuf.ByteString getZoneBytes(); + + /** + * + * + *
          +   * Optional. Requested installation date for this hardware. This is
          +   * auto-populated when the order is accepted, if the hardware's HardwareGroup
          +   * specifies this. It can also be filled in by the customer.
          +   * 
          + * + * + * .google.type.Date requested_installation_date = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the requestedInstallationDate field is set. + */ + boolean hasRequestedInstallationDate(); + /** + * + * + *
          +   * Optional. Requested installation date for this hardware. This is
          +   * auto-populated when the order is accepted, if the hardware's HardwareGroup
          +   * specifies this. It can also be filled in by the customer.
          +   * 
          + * + * + * .google.type.Date requested_installation_date = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The requestedInstallationDate. + */ + com.google.type.Date getRequestedInstallationDate(); + /** + * + * + *
          +   * Optional. Requested installation date for this hardware. This is
          +   * auto-populated when the order is accepted, if the hardware's HardwareGroup
          +   * specifies this. It can also be filled in by the customer.
          +   * 
          + * + * + * .google.type.Date requested_installation_date = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.type.DateOrBuilder getRequestedInstallationDateOrBuilder(); + + /** + * + * + *
          +   * Output only. Actual installation date for this hardware. Filled in by
          +   * Google.
          +   * 
          + * + * + * .google.type.Date actual_installation_date = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the actualInstallationDate field is set. + */ + boolean hasActualInstallationDate(); + /** + * + * + *
          +   * Output only. Actual installation date for this hardware. Filled in by
          +   * Google.
          +   * 
          + * + * + * .google.type.Date actual_installation_date = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The actualInstallationDate. + */ + com.google.type.Date getActualInstallationDate(); + /** + * + * + *
          +   * Output only. Actual installation date for this hardware. Filled in by
          +   * Google.
          +   * 
          + * + * + * .google.type.Date actual_installation_date = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.type.DateOrBuilder getActualInstallationDateOrBuilder(); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwarePhysicalInfo.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwarePhysicalInfo.java new file mode 100644 index 000000000000..1046b112705d --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwarePhysicalInfo.java @@ -0,0 +1,1790 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * Physical properties of a hardware.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo} + */ +public final class HardwarePhysicalInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo) + HardwarePhysicalInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use HardwarePhysicalInfo.newBuilder() to construct. + private HardwarePhysicalInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private HardwarePhysicalInfo() { + powerReceptacle_ = 0; + networkUplink_ = 0; + voltage_ = 0; + amperes_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new HardwarePhysicalInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwarePhysicalInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwarePhysicalInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.class, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Builder.class); + } + + /** + * + * + *
          +   * Valid power receptacle types.
          +   * 
          + * + * Protobuf enum {@code + * google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.PowerReceptacleType} + */ + public enum PowerReceptacleType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
          +     * Facility plug type is unspecified.
          +     * 
          + * + * POWER_RECEPTACLE_TYPE_UNSPECIFIED = 0; + */ + POWER_RECEPTACLE_TYPE_UNSPECIFIED(0), + /** + * + * + *
          +     * NEMA 5-15.
          +     * 
          + * + * NEMA_5_15 = 1; + */ + NEMA_5_15(1), + /** + * + * + *
          +     * C13.
          +     * 
          + * + * C_13 = 2; + */ + C_13(2), + /** + * + * + *
          +     * Standard european receptacle.
          +     * 
          + * + * STANDARD_EU = 3; + */ + STANDARD_EU(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
          +     * Facility plug type is unspecified.
          +     * 
          + * + * POWER_RECEPTACLE_TYPE_UNSPECIFIED = 0; + */ + public static final int POWER_RECEPTACLE_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
          +     * NEMA 5-15.
          +     * 
          + * + * NEMA_5_15 = 1; + */ + public static final int NEMA_5_15_VALUE = 1; + /** + * + * + *
          +     * C13.
          +     * 
          + * + * C_13 = 2; + */ + public static final int C_13_VALUE = 2; + /** + * + * + *
          +     * Standard european receptacle.
          +     * 
          + * + * STANDARD_EU = 3; + */ + public static final int STANDARD_EU_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PowerReceptacleType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static PowerReceptacleType forNumber(int value) { + switch (value) { + case 0: + return POWER_RECEPTACLE_TYPE_UNSPECIFIED; + case 1: + return NEMA_5_15; + case 2: + return C_13; + case 3: + return STANDARD_EU; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PowerReceptacleType findValueByNumber(int number) { + return PowerReceptacleType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final PowerReceptacleType[] VALUES = values(); + + public static PowerReceptacleType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private PowerReceptacleType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.PowerReceptacleType) + } + + /** + * + * + *
          +   * Valid network uplink types.
          +   * 
          + * + * Protobuf enum {@code + * google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.NetworkUplinkType} + */ + public enum NetworkUplinkType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
          +     * Network uplink type is unspecified.
          +     * 
          + * + * NETWORK_UPLINK_TYPE_UNSPECIFIED = 0; + */ + NETWORK_UPLINK_TYPE_UNSPECIFIED(0), + /** + * + * + *
          +     * RJ-45.
          +     * 
          + * + * RJ_45 = 1; + */ + RJ_45(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
          +     * Network uplink type is unspecified.
          +     * 
          + * + * NETWORK_UPLINK_TYPE_UNSPECIFIED = 0; + */ + public static final int NETWORK_UPLINK_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
          +     * RJ-45.
          +     * 
          + * + * RJ_45 = 1; + */ + public static final int RJ_45_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static NetworkUplinkType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static NetworkUplinkType forNumber(int value) { + switch (value) { + case 0: + return NETWORK_UPLINK_TYPE_UNSPECIFIED; + case 1: + return RJ_45; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public NetworkUplinkType findValueByNumber(int number) { + return NetworkUplinkType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final NetworkUplinkType[] VALUES = values(); + + public static NetworkUplinkType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private NetworkUplinkType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.NetworkUplinkType) + } + + /** + * + * + *
          +   * Valid voltage values.
          +   * 
          + * + * Protobuf enum {@code google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Voltage} + */ + public enum Voltage implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
          +     * Voltage is unspecified.
          +     * 
          + * + * VOLTAGE_UNSPECIFIED = 0; + */ + VOLTAGE_UNSPECIFIED(0), + /** + * + * + *
          +     * 120V.
          +     * 
          + * + * VOLTAGE_110 = 1; + */ + VOLTAGE_110(1), + /** + * + * + *
          +     * 220V.
          +     * 
          + * + * VOLTAGE_220 = 3; + */ + VOLTAGE_220(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
          +     * Voltage is unspecified.
          +     * 
          + * + * VOLTAGE_UNSPECIFIED = 0; + */ + public static final int VOLTAGE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
          +     * 120V.
          +     * 
          + * + * VOLTAGE_110 = 1; + */ + public static final int VOLTAGE_110_VALUE = 1; + /** + * + * + *
          +     * 220V.
          +     * 
          + * + * VOLTAGE_220 = 3; + */ + public static final int VOLTAGE_220_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Voltage valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Voltage forNumber(int value) { + switch (value) { + case 0: + return VOLTAGE_UNSPECIFIED; + case 1: + return VOLTAGE_110; + case 3: + return VOLTAGE_220; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Voltage findValueByNumber(int number) { + return Voltage.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.getDescriptor() + .getEnumTypes() + .get(2); + } + + private static final Voltage[] VALUES = values(); + + public static Voltage valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Voltage(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Voltage) + } + + /** + * + * + *
          +   * Valid amperes values.
          +   * 
          + * + * Protobuf enum {@code google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Amperes} + */ + public enum Amperes implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
          +     * Amperes is unspecified.
          +     * 
          + * + * AMPERES_UNSPECIFIED = 0; + */ + AMPERES_UNSPECIFIED(0), + /** + * + * + *
          +     * 15A.
          +     * 
          + * + * AMPERES_15 = 1; + */ + AMPERES_15(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
          +     * Amperes is unspecified.
          +     * 
          + * + * AMPERES_UNSPECIFIED = 0; + */ + public static final int AMPERES_UNSPECIFIED_VALUE = 0; + /** + * + * + *
          +     * 15A.
          +     * 
          + * + * AMPERES_15 = 1; + */ + public static final int AMPERES_15_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Amperes valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Amperes forNumber(int value) { + switch (value) { + case 0: + return AMPERES_UNSPECIFIED; + case 1: + return AMPERES_15; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Amperes findValueByNumber(int number) { + return Amperes.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.getDescriptor() + .getEnumTypes() + .get(3); + } + + private static final Amperes[] VALUES = values(); + + public static Amperes valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Amperes(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Amperes) + } + + public static final int POWER_RECEPTACLE_FIELD_NUMBER = 1; + private int powerReceptacle_ = 0; + /** + * + * + *
          +   * Required. The power receptacle type.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.PowerReceptacleType power_receptacle = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for powerReceptacle. + */ + @java.lang.Override + public int getPowerReceptacleValue() { + return powerReceptacle_; + } + /** + * + * + *
          +   * Required. The power receptacle type.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.PowerReceptacleType power_receptacle = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The powerReceptacle. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.PowerReceptacleType + getPowerReceptacle() { + com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.PowerReceptacleType result = + com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.PowerReceptacleType + .forNumber(powerReceptacle_); + return result == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.PowerReceptacleType + .UNRECOGNIZED + : result; + } + + public static final int NETWORK_UPLINK_FIELD_NUMBER = 2; + private int networkUplink_ = 0; + /** + * + * + *
          +   * Required. Type of the uplink network connection.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.NetworkUplinkType network_uplink = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for networkUplink. + */ + @java.lang.Override + public int getNetworkUplinkValue() { + return networkUplink_; + } + /** + * + * + *
          +   * Required. Type of the uplink network connection.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.NetworkUplinkType network_uplink = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The networkUplink. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.NetworkUplinkType + getNetworkUplink() { + com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.NetworkUplinkType result = + com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.NetworkUplinkType + .forNumber(networkUplink_); + return result == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.NetworkUplinkType + .UNRECOGNIZED + : result; + } + + public static final int VOLTAGE_FIELD_NUMBER = 3; + private int voltage_ = 0; + /** + * + * + *
          +   * Required. Voltage of the power supply.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Voltage voltage = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for voltage. + */ + @java.lang.Override + public int getVoltageValue() { + return voltage_; + } + /** + * + * + *
          +   * Required. Voltage of the power supply.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Voltage voltage = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The voltage. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Voltage getVoltage() { + com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Voltage result = + com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Voltage.forNumber( + voltage_); + return result == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Voltage.UNRECOGNIZED + : result; + } + + public static final int AMPERES_FIELD_NUMBER = 4; + private int amperes_ = 0; + /** + * + * + *
          +   * Required. Amperes of the power supply.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Amperes amperes = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for amperes. + */ + @java.lang.Override + public int getAmperesValue() { + return amperes_; + } + /** + * + * + *
          +   * Required. Amperes of the power supply.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Amperes amperes = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The amperes. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Amperes getAmperes() { + com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Amperes result = + com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Amperes.forNumber( + amperes_); + return result == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Amperes.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (powerReceptacle_ + != com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.PowerReceptacleType + .POWER_RECEPTACLE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, powerReceptacle_); + } + if (networkUplink_ + != com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.NetworkUplinkType + .NETWORK_UPLINK_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, networkUplink_); + } + if (voltage_ + != com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Voltage + .VOLTAGE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, voltage_); + } + if (amperes_ + != com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Amperes + .AMPERES_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, amperes_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (powerReceptacle_ + != com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.PowerReceptacleType + .POWER_RECEPTACLE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, powerReceptacle_); + } + if (networkUplink_ + != com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.NetworkUplinkType + .NETWORK_UPLINK_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, networkUplink_); + } + if (voltage_ + != com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Voltage + .VOLTAGE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, voltage_); + } + if (amperes_ + != com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Amperes + .AMPERES_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, amperes_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo other = + (com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo) obj; + + if (powerReceptacle_ != other.powerReceptacle_) return false; + if (networkUplink_ != other.networkUplink_) return false; + if (voltage_ != other.voltage_) return false; + if (amperes_ != other.amperes_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + POWER_RECEPTACLE_FIELD_NUMBER; + hash = (53 * hash) + powerReceptacle_; + hash = (37 * hash) + NETWORK_UPLINK_FIELD_NUMBER; + hash = (53 * hash) + networkUplink_; + hash = (37 * hash) + VOLTAGE_FIELD_NUMBER; + hash = (53 * hash) + voltage_; + hash = (37 * hash) + AMPERES_FIELD_NUMBER; + hash = (53 * hash) + amperes_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * Physical properties of a hardware.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo) + com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwarePhysicalInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwarePhysicalInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.class, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Builder.class); + } + + // Construct using + // com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + powerReceptacle_ = 0; + networkUplink_ = 0; + voltage_ = 0; + amperes_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwarePhysicalInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo build() { + com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo result = + new com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.powerReceptacle_ = powerReceptacle_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.networkUplink_ = networkUplink_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.voltage_ = voltage_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.amperes_ = amperes_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo) { + return mergeFrom( + (com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo + .getDefaultInstance()) return this; + if (other.powerReceptacle_ != 0) { + setPowerReceptacleValue(other.getPowerReceptacleValue()); + } + if (other.networkUplink_ != 0) { + setNetworkUplinkValue(other.getNetworkUplinkValue()); + } + if (other.voltage_ != 0) { + setVoltageValue(other.getVoltageValue()); + } + if (other.amperes_ != 0) { + setAmperesValue(other.getAmperesValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + powerReceptacle_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + networkUplink_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + voltage_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + amperes_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int powerReceptacle_ = 0; + /** + * + * + *
          +     * Required. The power receptacle type.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.PowerReceptacleType power_receptacle = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for powerReceptacle. + */ + @java.lang.Override + public int getPowerReceptacleValue() { + return powerReceptacle_; + } + /** + * + * + *
          +     * Required. The power receptacle type.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.PowerReceptacleType power_receptacle = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for powerReceptacle to set. + * @return This builder for chaining. + */ + public Builder setPowerReceptacleValue(int value) { + powerReceptacle_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The power receptacle type.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.PowerReceptacleType power_receptacle = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The powerReceptacle. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.PowerReceptacleType + getPowerReceptacle() { + com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.PowerReceptacleType + result = + com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo + .PowerReceptacleType.forNumber(powerReceptacle_); + return result == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.PowerReceptacleType + .UNRECOGNIZED + : result; + } + /** + * + * + *
          +     * Required. The power receptacle type.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.PowerReceptacleType power_receptacle = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The powerReceptacle to set. + * @return This builder for chaining. + */ + public Builder setPowerReceptacle( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.PowerReceptacleType + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + powerReceptacle_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The power receptacle type.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.PowerReceptacleType power_receptacle = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearPowerReceptacle() { + bitField0_ = (bitField0_ & ~0x00000001); + powerReceptacle_ = 0; + onChanged(); + return this; + } + + private int networkUplink_ = 0; + /** + * + * + *
          +     * Required. Type of the uplink network connection.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.NetworkUplinkType network_uplink = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for networkUplink. + */ + @java.lang.Override + public int getNetworkUplinkValue() { + return networkUplink_; + } + /** + * + * + *
          +     * Required. Type of the uplink network connection.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.NetworkUplinkType network_uplink = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for networkUplink to set. + * @return This builder for chaining. + */ + public Builder setNetworkUplinkValue(int value) { + networkUplink_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Type of the uplink network connection.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.NetworkUplinkType network_uplink = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The networkUplink. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.NetworkUplinkType + getNetworkUplink() { + com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.NetworkUplinkType result = + com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.NetworkUplinkType + .forNumber(networkUplink_); + return result == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.NetworkUplinkType + .UNRECOGNIZED + : result; + } + /** + * + * + *
          +     * Required. Type of the uplink network connection.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.NetworkUplinkType network_uplink = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The networkUplink to set. + * @return This builder for chaining. + */ + public Builder setNetworkUplink( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.NetworkUplinkType + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + networkUplink_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Type of the uplink network connection.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.NetworkUplinkType network_uplink = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearNetworkUplink() { + bitField0_ = (bitField0_ & ~0x00000002); + networkUplink_ = 0; + onChanged(); + return this; + } + + private int voltage_ = 0; + /** + * + * + *
          +     * Required. Voltage of the power supply.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Voltage voltage = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for voltage. + */ + @java.lang.Override + public int getVoltageValue() { + return voltage_; + } + /** + * + * + *
          +     * Required. Voltage of the power supply.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Voltage voltage = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for voltage to set. + * @return This builder for chaining. + */ + public Builder setVoltageValue(int value) { + voltage_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Voltage of the power supply.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Voltage voltage = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The voltage. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Voltage + getVoltage() { + com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Voltage result = + com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Voltage.forNumber( + voltage_); + return result == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Voltage.UNRECOGNIZED + : result; + } + /** + * + * + *
          +     * Required. Voltage of the power supply.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Voltage voltage = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The voltage to set. + * @return This builder for chaining. + */ + public Builder setVoltage( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Voltage value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + voltage_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Voltage of the power supply.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Voltage voltage = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearVoltage() { + bitField0_ = (bitField0_ & ~0x00000004); + voltage_ = 0; + onChanged(); + return this; + } + + private int amperes_ = 0; + /** + * + * + *
          +     * Required. Amperes of the power supply.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Amperes amperes = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for amperes. + */ + @java.lang.Override + public int getAmperesValue() { + return amperes_; + } + /** + * + * + *
          +     * Required. Amperes of the power supply.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Amperes amperes = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for amperes to set. + * @return This builder for chaining. + */ + public Builder setAmperesValue(int value) { + amperes_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Amperes of the power supply.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Amperes amperes = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The amperes. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Amperes + getAmperes() { + com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Amperes result = + com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Amperes.forNumber( + amperes_); + return result == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Amperes.UNRECOGNIZED + : result; + } + /** + * + * + *
          +     * Required. Amperes of the power supply.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Amperes amperes = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The amperes to set. + * @return This builder for chaining. + */ + public Builder setAmperes( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Amperes value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + amperes_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Amperes of the power supply.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Amperes amperes = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearAmperes() { + bitField0_ = (bitField0_ & ~0x00000008); + amperes_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HardwarePhysicalInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwarePhysicalInfoOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwarePhysicalInfoOrBuilder.java new file mode 100644 index 000000000000..036bb73d2711 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/HardwarePhysicalInfoOrBuilder.java @@ -0,0 +1,144 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface HardwarePhysicalInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The power receptacle type.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.PowerReceptacleType power_receptacle = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for powerReceptacle. + */ + int getPowerReceptacleValue(); + /** + * + * + *
          +   * Required. The power receptacle type.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.PowerReceptacleType power_receptacle = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The powerReceptacle. + */ + com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.PowerReceptacleType + getPowerReceptacle(); + + /** + * + * + *
          +   * Required. Type of the uplink network connection.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.NetworkUplinkType network_uplink = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for networkUplink. + */ + int getNetworkUplinkValue(); + /** + * + * + *
          +   * Required. Type of the uplink network connection.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.NetworkUplinkType network_uplink = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The networkUplink. + */ + com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.NetworkUplinkType + getNetworkUplink(); + + /** + * + * + *
          +   * Required. Voltage of the power supply.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Voltage voltage = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for voltage. + */ + int getVoltageValue(); + /** + * + * + *
          +   * Required. Voltage of the power supply.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Voltage voltage = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The voltage. + */ + com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Voltage getVoltage(); + + /** + * + * + *
          +   * Required. Amperes of the power supply.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Amperes amperes = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for amperes. + */ + int getAmperesValue(); + /** + * + * + *
          +   * Required. Amperes of the power supply.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Amperes amperes = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The amperes. + */ + com.google.cloud.gdchardwaremanagement.v1alpha.HardwarePhysicalInfo.Amperes getAmperes(); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListChangeLogEntriesRequest.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListChangeLogEntriesRequest.java new file mode 100644 index 000000000000..ca454a286603 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListChangeLogEntriesRequest.java @@ -0,0 +1,1313 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * A request to list change log entries.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest} + */ +public final class ListChangeLogEntriesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest) + ListChangeLogEntriesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListChangeLogEntriesRequest.newBuilder() to construct. + private ListChangeLogEntriesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListChangeLogEntriesRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListChangeLogEntriesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListChangeLogEntriesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListChangeLogEntriesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest.Builder + .class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
          +   * Required. The order to list change log entries for.
          +   * Format: `projects/{project}/locations/{location}/orders/{order}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
          +   * Required. The order to list change log entries for.
          +   * Format: `projects/{project}/locations/{location}/orders/{order}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
          +   * Optional. Requested page size. Server may return fewer items than
          +   * requested. If unspecified, server will pick an appropriate default.
          +   * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
          +   * Optional. A token identifying a page of results the server should return.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. A token identifying a page of results the server should return.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
          +   * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +   * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +   * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + /** + * + * + *
          +   * Optional. Hint for how to order the results.
          +   * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. Hint for how to order the results.
          +   * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest other = + (com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * A request to list change log entries.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest) + com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListChangeLogEntriesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListChangeLogEntriesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListChangeLogEntriesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest build() { + com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest + buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest result = + new com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest) { + return mergeFrom( + (com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
          +     * Required. The order to list change log entries for.
          +     * Format: `projects/{project}/locations/{location}/orders/{order}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Required. The order to list change log entries for.
          +     * Format: `projects/{project}/locations/{location}/orders/{order}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Required. The order to list change log entries for.
          +     * Format: `projects/{project}/locations/{location}/orders/{order}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The order to list change log entries for.
          +     * Format: `projects/{project}/locations/{location}/orders/{order}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The order to list change log entries for.
          +     * Format: `projects/{project}/locations/{location}/orders/{order}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
          +     * Optional. Requested page size. Server may return fewer items than
          +     * requested. If unspecified, server will pick an appropriate default.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
          +     * Optional. Requested page size. Server may return fewer items than
          +     * requested. If unspecified, server will pick an appropriate default.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Requested page size. Server may return fewer items than
          +     * requested. If unspecified, server will pick an appropriate default.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
          +     * Optional. A token identifying a page of results the server should return.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. A token identifying a page of results the server should return.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. A token identifying a page of results the server should return.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. A token identifying a page of results the server should return.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. A token identifying a page of results the server should return.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
          +     * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + /** + * + * + *
          +     * Optional. Hint for how to order the results.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. Hint for how to order the results.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. Hint for how to order the results.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Hint for how to order the results.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Hint for how to order the results.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListChangeLogEntriesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListChangeLogEntriesRequestOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListChangeLogEntriesRequestOrBuilder.java new file mode 100644 index 000000000000..5a49c2ad079c --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListChangeLogEntriesRequestOrBuilder.java @@ -0,0 +1,146 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface ListChangeLogEntriesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The order to list change log entries for.
          +   * Format: `projects/{project}/locations/{location}/orders/{order}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
          +   * Required. The order to list change log entries for.
          +   * Format: `projects/{project}/locations/{location}/orders/{order}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
          +   * Optional. Requested page size. Server may return fewer items than
          +   * requested. If unspecified, server will pick an appropriate default.
          +   * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
          +   * Optional. A token identifying a page of results the server should return.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
          +   * Optional. A token identifying a page of results the server should return.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
          +   * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +   * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
          +   * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +   * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
          +   * Optional. Hint for how to order the results.
          +   * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + * + * + *
          +   * Optional. Hint for how to order the results.
          +   * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListChangeLogEntriesResponse.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListChangeLogEntriesResponse.java new file mode 100644 index 000000000000..e5da8d25add5 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListChangeLogEntriesResponse.java @@ -0,0 +1,1493 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * A list of change log entries.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse} + */ +public final class ListChangeLogEntriesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse) + ListChangeLogEntriesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListChangeLogEntriesResponse.newBuilder() to construct. + private ListChangeLogEntriesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListChangeLogEntriesResponse() { + changeLogEntries_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListChangeLogEntriesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListChangeLogEntriesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListChangeLogEntriesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse.class, + com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse.Builder + .class); + } + + public static final int CHANGE_LOG_ENTRIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + changeLogEntries_; + /** + * + * + *
          +   * The list of change log entries.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry change_log_entries = 1; + * + */ + @java.lang.Override + public java.util.List + getChangeLogEntriesList() { + return changeLogEntries_; + } + /** + * + * + *
          +   * The list of change log entries.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry change_log_entries = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntryOrBuilder> + getChangeLogEntriesOrBuilderList() { + return changeLogEntries_; + } + /** + * + * + *
          +   * The list of change log entries.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry change_log_entries = 1; + * + */ + @java.lang.Override + public int getChangeLogEntriesCount() { + return changeLogEntries_.size(); + } + /** + * + * + *
          +   * The list of change log entries.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry change_log_entries = 1; + * + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry getChangeLogEntries( + int index) { + return changeLogEntries_.get(index); + } + /** + * + * + *
          +   * The list of change log entries.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry change_log_entries = 1; + * + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntryOrBuilder + getChangeLogEntriesOrBuilder(int index) { + return changeLogEntries_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
          +   * A token identifying a page of results the server should return.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
          +   * A token identifying a page of results the server should return.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < changeLogEntries_.size(); i++) { + output.writeMessage(1, changeLogEntries_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < changeLogEntries_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, changeLogEntries_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse other = + (com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse) obj; + + if (!getChangeLogEntriesList().equals(other.getChangeLogEntriesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getChangeLogEntriesCount() > 0) { + hash = (37 * hash) + CHANGE_LOG_ENTRIES_FIELD_NUMBER; + hash = (53 * hash) + getChangeLogEntriesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * A list of change log entries.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse) + com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListChangeLogEntriesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListChangeLogEntriesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse.class, + com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (changeLogEntriesBuilder_ == null) { + changeLogEntries_ = java.util.Collections.emptyList(); + } else { + changeLogEntries_ = null; + changeLogEntriesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListChangeLogEntriesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse build() { + com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse + buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse result = + new com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse result) { + if (changeLogEntriesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + changeLogEntries_ = java.util.Collections.unmodifiableList(changeLogEntries_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.changeLogEntries_ = changeLogEntries_; + } else { + result.changeLogEntries_ = changeLogEntriesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse) { + return mergeFrom( + (com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse + .getDefaultInstance()) return this; + if (changeLogEntriesBuilder_ == null) { + if (!other.changeLogEntries_.isEmpty()) { + if (changeLogEntries_.isEmpty()) { + changeLogEntries_ = other.changeLogEntries_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureChangeLogEntriesIsMutable(); + changeLogEntries_.addAll(other.changeLogEntries_); + } + onChanged(); + } + } else { + if (!other.changeLogEntries_.isEmpty()) { + if (changeLogEntriesBuilder_.isEmpty()) { + changeLogEntriesBuilder_.dispose(); + changeLogEntriesBuilder_ = null; + changeLogEntries_ = other.changeLogEntries_; + bitField0_ = (bitField0_ & ~0x00000001); + changeLogEntriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getChangeLogEntriesFieldBuilder() + : null; + } else { + changeLogEntriesBuilder_.addAllMessages(other.changeLogEntries_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry m = + input.readMessage( + com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry.parser(), + extensionRegistry); + if (changeLogEntriesBuilder_ == null) { + ensureChangeLogEntriesIsMutable(); + changeLogEntries_.add(m); + } else { + changeLogEntriesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + changeLogEntries_ = java.util.Collections.emptyList(); + + private void ensureChangeLogEntriesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + changeLogEntries_ = + new java.util.ArrayList( + changeLogEntries_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry, + com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntryOrBuilder> + changeLogEntriesBuilder_; + + /** + * + * + *
          +     * The list of change log entries.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry change_log_entries = 1; + * + */ + public java.util.List + getChangeLogEntriesList() { + if (changeLogEntriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(changeLogEntries_); + } else { + return changeLogEntriesBuilder_.getMessageList(); + } + } + /** + * + * + *
          +     * The list of change log entries.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry change_log_entries = 1; + * + */ + public int getChangeLogEntriesCount() { + if (changeLogEntriesBuilder_ == null) { + return changeLogEntries_.size(); + } else { + return changeLogEntriesBuilder_.getCount(); + } + } + /** + * + * + *
          +     * The list of change log entries.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry change_log_entries = 1; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry getChangeLogEntries( + int index) { + if (changeLogEntriesBuilder_ == null) { + return changeLogEntries_.get(index); + } else { + return changeLogEntriesBuilder_.getMessage(index); + } + } + /** + * + * + *
          +     * The list of change log entries.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry change_log_entries = 1; + * + */ + public Builder setChangeLogEntries( + int index, com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry value) { + if (changeLogEntriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChangeLogEntriesIsMutable(); + changeLogEntries_.set(index, value); + onChanged(); + } else { + changeLogEntriesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
          +     * The list of change log entries.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry change_log_entries = 1; + * + */ + public Builder setChangeLogEntries( + int index, + com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry.Builder builderForValue) { + if (changeLogEntriesBuilder_ == null) { + ensureChangeLogEntriesIsMutable(); + changeLogEntries_.set(index, builderForValue.build()); + onChanged(); + } else { + changeLogEntriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * The list of change log entries.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry change_log_entries = 1; + * + */ + public Builder addChangeLogEntries( + com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry value) { + if (changeLogEntriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChangeLogEntriesIsMutable(); + changeLogEntries_.add(value); + onChanged(); + } else { + changeLogEntriesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
          +     * The list of change log entries.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry change_log_entries = 1; + * + */ + public Builder addChangeLogEntries( + int index, com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry value) { + if (changeLogEntriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChangeLogEntriesIsMutable(); + changeLogEntries_.add(index, value); + onChanged(); + } else { + changeLogEntriesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
          +     * The list of change log entries.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry change_log_entries = 1; + * + */ + public Builder addChangeLogEntries( + com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry.Builder builderForValue) { + if (changeLogEntriesBuilder_ == null) { + ensureChangeLogEntriesIsMutable(); + changeLogEntries_.add(builderForValue.build()); + onChanged(); + } else { + changeLogEntriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * The list of change log entries.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry change_log_entries = 1; + * + */ + public Builder addChangeLogEntries( + int index, + com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry.Builder builderForValue) { + if (changeLogEntriesBuilder_ == null) { + ensureChangeLogEntriesIsMutable(); + changeLogEntries_.add(index, builderForValue.build()); + onChanged(); + } else { + changeLogEntriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * The list of change log entries.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry change_log_entries = 1; + * + */ + public Builder addAllChangeLogEntries( + java.lang.Iterable + values) { + if (changeLogEntriesBuilder_ == null) { + ensureChangeLogEntriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, changeLogEntries_); + onChanged(); + } else { + changeLogEntriesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
          +     * The list of change log entries.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry change_log_entries = 1; + * + */ + public Builder clearChangeLogEntries() { + if (changeLogEntriesBuilder_ == null) { + changeLogEntries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + changeLogEntriesBuilder_.clear(); + } + return this; + } + /** + * + * + *
          +     * The list of change log entries.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry change_log_entries = 1; + * + */ + public Builder removeChangeLogEntries(int index) { + if (changeLogEntriesBuilder_ == null) { + ensureChangeLogEntriesIsMutable(); + changeLogEntries_.remove(index); + onChanged(); + } else { + changeLogEntriesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
          +     * The list of change log entries.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry change_log_entries = 1; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry.Builder + getChangeLogEntriesBuilder(int index) { + return getChangeLogEntriesFieldBuilder().getBuilder(index); + } + /** + * + * + *
          +     * The list of change log entries.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry change_log_entries = 1; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntryOrBuilder + getChangeLogEntriesOrBuilder(int index) { + if (changeLogEntriesBuilder_ == null) { + return changeLogEntries_.get(index); + } else { + return changeLogEntriesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
          +     * The list of change log entries.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry change_log_entries = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntryOrBuilder> + getChangeLogEntriesOrBuilderList() { + if (changeLogEntriesBuilder_ != null) { + return changeLogEntriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(changeLogEntries_); + } + } + /** + * + * + *
          +     * The list of change log entries.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry change_log_entries = 1; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry.Builder + addChangeLogEntriesBuilder() { + return getChangeLogEntriesFieldBuilder() + .addBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry.getDefaultInstance()); + } + /** + * + * + *
          +     * The list of change log entries.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry change_log_entries = 1; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry.Builder + addChangeLogEntriesBuilder(int index) { + return getChangeLogEntriesFieldBuilder() + .addBuilder( + index, + com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry.getDefaultInstance()); + } + /** + * + * + *
          +     * The list of change log entries.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry change_log_entries = 1; + * + */ + public java.util.List + getChangeLogEntriesBuilderList() { + return getChangeLogEntriesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry, + com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntryOrBuilder> + getChangeLogEntriesFieldBuilder() { + if (changeLogEntriesBuilder_ == null) { + changeLogEntriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry, + com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntryOrBuilder>( + changeLogEntries_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + changeLogEntries_ = null; + } + return changeLogEntriesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
          +     * A token identifying a page of results the server should return.
          +     * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * A token identifying a page of results the server should return.
          +     * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * A token identifying a page of results the server should return.
          +     * 
          + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * A token identifying a page of results the server should return.
          +     * 
          + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
          +     * A token identifying a page of results the server should return.
          +     * 
          + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListChangeLogEntriesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListChangeLogEntriesResponseOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListChangeLogEntriesResponseOrBuilder.java new file mode 100644 index 000000000000..0a4b8f4cdd4d --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListChangeLogEntriesResponseOrBuilder.java @@ -0,0 +1,166 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface ListChangeLogEntriesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * The list of change log entries.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry change_log_entries = 1; + * + */ + java.util.List + getChangeLogEntriesList(); + /** + * + * + *
          +   * The list of change log entries.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry change_log_entries = 1; + * + */ + com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry getChangeLogEntries(int index); + /** + * + * + *
          +   * The list of change log entries.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry change_log_entries = 1; + * + */ + int getChangeLogEntriesCount(); + /** + * + * + *
          +   * The list of change log entries.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry change_log_entries = 1; + * + */ + java.util.List + getChangeLogEntriesOrBuilderList(); + /** + * + * + *
          +   * The list of change log entries.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry change_log_entries = 1; + * + */ + com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntryOrBuilder + getChangeLogEntriesOrBuilder(int index); + + /** + * + * + *
          +   * A token identifying a page of results the server should return.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
          +   * A token identifying a page of results the server should return.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListCommentsRequest.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListCommentsRequest.java new file mode 100644 index 000000000000..01f37eb6e593 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListCommentsRequest.java @@ -0,0 +1,1301 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * A request to list comments.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest} + */ +public final class ListCommentsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest) + ListCommentsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListCommentsRequest.newBuilder() to construct. + private ListCommentsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListCommentsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListCommentsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListCommentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListCommentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
          +   * Required. The order to list comments on.
          +   * Format: `projects/{project}/locations/{location}/orders/{order}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
          +   * Required. The order to list comments on.
          +   * Format: `projects/{project}/locations/{location}/orders/{order}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
          +   * Optional. Requested page size. Server may return fewer items than
          +   * requested. If unspecified, server will pick an appropriate default.
          +   * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
          +   * Optional. A token identifying a page of results the server should return.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. A token identifying a page of results the server should return.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
          +   * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +   * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +   * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + /** + * + * + *
          +   * Optional. Hint for how to order the results.
          +   * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. Hint for how to order the results.
          +   * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest other = + (com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * A request to list comments.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest) + com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListCommentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListCommentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest.Builder.class); + } + + // Construct using + // com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListCommentsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest build() { + com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest result = + new com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest) { + return mergeFrom( + (com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
          +     * Required. The order to list comments on.
          +     * Format: `projects/{project}/locations/{location}/orders/{order}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Required. The order to list comments on.
          +     * Format: `projects/{project}/locations/{location}/orders/{order}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Required. The order to list comments on.
          +     * Format: `projects/{project}/locations/{location}/orders/{order}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The order to list comments on.
          +     * Format: `projects/{project}/locations/{location}/orders/{order}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The order to list comments on.
          +     * Format: `projects/{project}/locations/{location}/orders/{order}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
          +     * Optional. Requested page size. Server may return fewer items than
          +     * requested. If unspecified, server will pick an appropriate default.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
          +     * Optional. Requested page size. Server may return fewer items than
          +     * requested. If unspecified, server will pick an appropriate default.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Requested page size. Server may return fewer items than
          +     * requested. If unspecified, server will pick an appropriate default.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
          +     * Optional. A token identifying a page of results the server should return.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. A token identifying a page of results the server should return.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. A token identifying a page of results the server should return.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. A token identifying a page of results the server should return.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. A token identifying a page of results the server should return.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
          +     * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + /** + * + * + *
          +     * Optional. Hint for how to order the results.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. Hint for how to order the results.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. Hint for how to order the results.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Hint for how to order the results.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Hint for how to order the results.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCommentsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListCommentsRequestOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListCommentsRequestOrBuilder.java new file mode 100644 index 000000000000..56162cf0af6b --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListCommentsRequestOrBuilder.java @@ -0,0 +1,146 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface ListCommentsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The order to list comments on.
          +   * Format: `projects/{project}/locations/{location}/orders/{order}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
          +   * Required. The order to list comments on.
          +   * Format: `projects/{project}/locations/{location}/orders/{order}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
          +   * Optional. Requested page size. Server may return fewer items than
          +   * requested. If unspecified, server will pick an appropriate default.
          +   * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
          +   * Optional. A token identifying a page of results the server should return.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
          +   * Optional. A token identifying a page of results the server should return.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
          +   * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +   * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
          +   * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +   * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
          +   * Optional. Hint for how to order the results.
          +   * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + * + * + *
          +   * Optional. Hint for how to order the results.
          +   * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListCommentsResponse.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListCommentsResponse.java new file mode 100644 index 000000000000..0ba1af7df5f1 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListCommentsResponse.java @@ -0,0 +1,1420 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * A request to list comments.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse} + */ +public final class ListCommentsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse) + ListCommentsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListCommentsResponse.newBuilder() to construct. + private ListCommentsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListCommentsResponse() { + comments_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListCommentsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListCommentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListCommentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse.class, + com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse.Builder.class); + } + + public static final int COMMENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List comments_; + /** + * + * + *
          +   * The list of comments.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Comment comments = 1; + */ + @java.lang.Override + public java.util.List getCommentsList() { + return comments_; + } + /** + * + * + *
          +   * The list of comments.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Comment comments = 1; + */ + @java.lang.Override + public java.util.List + getCommentsOrBuilderList() { + return comments_; + } + /** + * + * + *
          +   * The list of comments.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Comment comments = 1; + */ + @java.lang.Override + public int getCommentsCount() { + return comments_.size(); + } + /** + * + * + *
          +   * The list of comments.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Comment comments = 1; + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Comment getComments(int index) { + return comments_.get(index); + } + /** + * + * + *
          +   * The list of comments.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Comment comments = 1; + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.CommentOrBuilder getCommentsOrBuilder( + int index) { + return comments_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
          +   * A token identifying a page of results the server should return.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
          +   * A token identifying a page of results the server should return.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < comments_.size(); i++) { + output.writeMessage(1, comments_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < comments_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, comments_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse other = + (com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse) obj; + + if (!getCommentsList().equals(other.getCommentsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getCommentsCount() > 0) { + hash = (37 * hash) + COMMENTS_FIELD_NUMBER; + hash = (53 * hash) + getCommentsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * A request to list comments.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse) + com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListCommentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListCommentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse.class, + com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse.Builder.class); + } + + // Construct using + // com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (commentsBuilder_ == null) { + comments_ = java.util.Collections.emptyList(); + } else { + comments_ = null; + commentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListCommentsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse build() { + com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse result = + new com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse result) { + if (commentsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + comments_ = java.util.Collections.unmodifiableList(comments_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.comments_ = comments_; + } else { + result.comments_ = commentsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse) { + return mergeFrom( + (com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse + .getDefaultInstance()) return this; + if (commentsBuilder_ == null) { + if (!other.comments_.isEmpty()) { + if (comments_.isEmpty()) { + comments_ = other.comments_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCommentsIsMutable(); + comments_.addAll(other.comments_); + } + onChanged(); + } + } else { + if (!other.comments_.isEmpty()) { + if (commentsBuilder_.isEmpty()) { + commentsBuilder_.dispose(); + commentsBuilder_ = null; + comments_ = other.comments_; + bitField0_ = (bitField0_ & ~0x00000001); + commentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCommentsFieldBuilder() + : null; + } else { + commentsBuilder_.addAllMessages(other.comments_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.gdchardwaremanagement.v1alpha.Comment m = + input.readMessage( + com.google.cloud.gdchardwaremanagement.v1alpha.Comment.parser(), + extensionRegistry); + if (commentsBuilder_ == null) { + ensureCommentsIsMutable(); + comments_.add(m); + } else { + commentsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List comments_ = + java.util.Collections.emptyList(); + + private void ensureCommentsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + comments_ = + new java.util.ArrayList( + comments_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Comment, + com.google.cloud.gdchardwaremanagement.v1alpha.Comment.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.CommentOrBuilder> + commentsBuilder_; + + /** + * + * + *
          +     * The list of comments.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Comment comments = 1; + */ + public java.util.List + getCommentsList() { + if (commentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(comments_); + } else { + return commentsBuilder_.getMessageList(); + } + } + /** + * + * + *
          +     * The list of comments.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Comment comments = 1; + */ + public int getCommentsCount() { + if (commentsBuilder_ == null) { + return comments_.size(); + } else { + return commentsBuilder_.getCount(); + } + } + /** + * + * + *
          +     * The list of comments.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Comment comments = 1; + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Comment getComments(int index) { + if (commentsBuilder_ == null) { + return comments_.get(index); + } else { + return commentsBuilder_.getMessage(index); + } + } + /** + * + * + *
          +     * The list of comments.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Comment comments = 1; + */ + public Builder setComments( + int index, com.google.cloud.gdchardwaremanagement.v1alpha.Comment value) { + if (commentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCommentsIsMutable(); + comments_.set(index, value); + onChanged(); + } else { + commentsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
          +     * The list of comments.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Comment comments = 1; + */ + public Builder setComments( + int index, com.google.cloud.gdchardwaremanagement.v1alpha.Comment.Builder builderForValue) { + if (commentsBuilder_ == null) { + ensureCommentsIsMutable(); + comments_.set(index, builderForValue.build()); + onChanged(); + } else { + commentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * The list of comments.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Comment comments = 1; + */ + public Builder addComments(com.google.cloud.gdchardwaremanagement.v1alpha.Comment value) { + if (commentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCommentsIsMutable(); + comments_.add(value); + onChanged(); + } else { + commentsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
          +     * The list of comments.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Comment comments = 1; + */ + public Builder addComments( + int index, com.google.cloud.gdchardwaremanagement.v1alpha.Comment value) { + if (commentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCommentsIsMutable(); + comments_.add(index, value); + onChanged(); + } else { + commentsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
          +     * The list of comments.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Comment comments = 1; + */ + public Builder addComments( + com.google.cloud.gdchardwaremanagement.v1alpha.Comment.Builder builderForValue) { + if (commentsBuilder_ == null) { + ensureCommentsIsMutable(); + comments_.add(builderForValue.build()); + onChanged(); + } else { + commentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * The list of comments.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Comment comments = 1; + */ + public Builder addComments( + int index, com.google.cloud.gdchardwaremanagement.v1alpha.Comment.Builder builderForValue) { + if (commentsBuilder_ == null) { + ensureCommentsIsMutable(); + comments_.add(index, builderForValue.build()); + onChanged(); + } else { + commentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * The list of comments.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Comment comments = 1; + */ + public Builder addAllComments( + java.lang.Iterable + values) { + if (commentsBuilder_ == null) { + ensureCommentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, comments_); + onChanged(); + } else { + commentsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
          +     * The list of comments.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Comment comments = 1; + */ + public Builder clearComments() { + if (commentsBuilder_ == null) { + comments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + commentsBuilder_.clear(); + } + return this; + } + /** + * + * + *
          +     * The list of comments.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Comment comments = 1; + */ + public Builder removeComments(int index) { + if (commentsBuilder_ == null) { + ensureCommentsIsMutable(); + comments_.remove(index); + onChanged(); + } else { + commentsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
          +     * The list of comments.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Comment comments = 1; + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Comment.Builder getCommentsBuilder( + int index) { + return getCommentsFieldBuilder().getBuilder(index); + } + /** + * + * + *
          +     * The list of comments.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Comment comments = 1; + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.CommentOrBuilder getCommentsOrBuilder( + int index) { + if (commentsBuilder_ == null) { + return comments_.get(index); + } else { + return commentsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
          +     * The list of comments.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Comment comments = 1; + */ + public java.util.List + getCommentsOrBuilderList() { + if (commentsBuilder_ != null) { + return commentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(comments_); + } + } + /** + * + * + *
          +     * The list of comments.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Comment comments = 1; + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Comment.Builder addCommentsBuilder() { + return getCommentsFieldBuilder() + .addBuilder(com.google.cloud.gdchardwaremanagement.v1alpha.Comment.getDefaultInstance()); + } + /** + * + * + *
          +     * The list of comments.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Comment comments = 1; + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Comment.Builder addCommentsBuilder( + int index) { + return getCommentsFieldBuilder() + .addBuilder( + index, com.google.cloud.gdchardwaremanagement.v1alpha.Comment.getDefaultInstance()); + } + /** + * + * + *
          +     * The list of comments.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Comment comments = 1; + */ + public java.util.List + getCommentsBuilderList() { + return getCommentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Comment, + com.google.cloud.gdchardwaremanagement.v1alpha.Comment.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.CommentOrBuilder> + getCommentsFieldBuilder() { + if (commentsBuilder_ == null) { + commentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Comment, + com.google.cloud.gdchardwaremanagement.v1alpha.Comment.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.CommentOrBuilder>( + comments_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + comments_ = null; + } + return commentsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
          +     * A token identifying a page of results the server should return.
          +     * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * A token identifying a page of results the server should return.
          +     * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * A token identifying a page of results the server should return.
          +     * 
          + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * A token identifying a page of results the server should return.
          +     * 
          + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
          +     * A token identifying a page of results the server should return.
          +     * 
          + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCommentsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListCommentsResponseOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListCommentsResponseOrBuilder.java new file mode 100644 index 000000000000..db8d2d7232da --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListCommentsResponseOrBuilder.java @@ -0,0 +1,154 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface ListCommentsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * The list of comments.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Comment comments = 1; + */ + java.util.List getCommentsList(); + /** + * + * + *
          +   * The list of comments.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Comment comments = 1; + */ + com.google.cloud.gdchardwaremanagement.v1alpha.Comment getComments(int index); + /** + * + * + *
          +   * The list of comments.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Comment comments = 1; + */ + int getCommentsCount(); + /** + * + * + *
          +   * The list of comments.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Comment comments = 1; + */ + java.util.List + getCommentsOrBuilderList(); + /** + * + * + *
          +   * The list of comments.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Comment comments = 1; + */ + com.google.cloud.gdchardwaremanagement.v1alpha.CommentOrBuilder getCommentsOrBuilder(int index); + + /** + * + * + *
          +   * A token identifying a page of results the server should return.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
          +   * A token identifying a page of results the server should return.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListHardwareGroupsRequest.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListHardwareGroupsRequest.java new file mode 100644 index 000000000000..c1190bda4a77 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListHardwareGroupsRequest.java @@ -0,0 +1,1306 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * A request to list hardware groups.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest} + */ +public final class ListHardwareGroupsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest) + ListHardwareGroupsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListHardwareGroupsRequest.newBuilder() to construct. + private ListHardwareGroupsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListHardwareGroupsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListHardwareGroupsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareGroupsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareGroupsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
          +   * Required. The order to list hardware groups in.
          +   * Format: `projects/{project}/locations/{location}/orders/{order}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
          +   * Required. The order to list hardware groups in.
          +   * Format: `projects/{project}/locations/{location}/orders/{order}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
          +   * Optional. Requested page size. Server may return fewer items than
          +   * requested. If unspecified, server will pick an appropriate default.
          +   * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
          +   * Optional. A token identifying a page of results the server should return.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. A token identifying a page of results the server should return.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
          +   * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +   * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +   * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + /** + * + * + *
          +   * Optional. Hint for how to order the results.
          +   * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. Hint for how to order the results.
          +   * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest other = + (com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * A request to list hardware groups.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest) + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareGroupsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareGroupsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareGroupsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest build() { + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest result = + new com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest) { + return mergeFrom( + (com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
          +     * Required. The order to list hardware groups in.
          +     * Format: `projects/{project}/locations/{location}/orders/{order}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Required. The order to list hardware groups in.
          +     * Format: `projects/{project}/locations/{location}/orders/{order}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Required. The order to list hardware groups in.
          +     * Format: `projects/{project}/locations/{location}/orders/{order}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The order to list hardware groups in.
          +     * Format: `projects/{project}/locations/{location}/orders/{order}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The order to list hardware groups in.
          +     * Format: `projects/{project}/locations/{location}/orders/{order}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
          +     * Optional. Requested page size. Server may return fewer items than
          +     * requested. If unspecified, server will pick an appropriate default.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
          +     * Optional. Requested page size. Server may return fewer items than
          +     * requested. If unspecified, server will pick an appropriate default.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Requested page size. Server may return fewer items than
          +     * requested. If unspecified, server will pick an appropriate default.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
          +     * Optional. A token identifying a page of results the server should return.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. A token identifying a page of results the server should return.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. A token identifying a page of results the server should return.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. A token identifying a page of results the server should return.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. A token identifying a page of results the server should return.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
          +     * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + /** + * + * + *
          +     * Optional. Hint for how to order the results.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. Hint for how to order the results.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. Hint for how to order the results.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Hint for how to order the results.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Hint for how to order the results.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListHardwareGroupsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListHardwareGroupsRequestOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListHardwareGroupsRequestOrBuilder.java new file mode 100644 index 000000000000..8a7739b9f498 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListHardwareGroupsRequestOrBuilder.java @@ -0,0 +1,146 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface ListHardwareGroupsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The order to list hardware groups in.
          +   * Format: `projects/{project}/locations/{location}/orders/{order}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
          +   * Required. The order to list hardware groups in.
          +   * Format: `projects/{project}/locations/{location}/orders/{order}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
          +   * Optional. Requested page size. Server may return fewer items than
          +   * requested. If unspecified, server will pick an appropriate default.
          +   * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
          +   * Optional. A token identifying a page of results the server should return.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
          +   * Optional. A token identifying a page of results the server should return.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
          +   * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +   * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
          +   * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +   * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
          +   * Optional. Hint for how to order the results.
          +   * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + * + * + *
          +   * Optional. Hint for how to order the results.
          +   * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListHardwareGroupsResponse.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListHardwareGroupsResponse.java new file mode 100644 index 000000000000..0b6469c982b8 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListHardwareGroupsResponse.java @@ -0,0 +1,1464 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * A list of hardware groups.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse} + */ +public final class ListHardwareGroupsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse) + ListHardwareGroupsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListHardwareGroupsResponse.newBuilder() to construct. + private ListHardwareGroupsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListHardwareGroupsResponse() { + hardwareGroups_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListHardwareGroupsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareGroupsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareGroupsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse.class, + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse.Builder + .class); + } + + public static final int HARDWARE_GROUPS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + hardwareGroups_; + /** + * + * + *
          +   * The list of hardware groups.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_groups = 1; + * + */ + @java.lang.Override + public java.util.List + getHardwareGroupsList() { + return hardwareGroups_; + } + /** + * + * + *
          +   * The list of hardware groups.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_groups = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroupOrBuilder> + getHardwareGroupsOrBuilderList() { + return hardwareGroups_; + } + /** + * + * + *
          +   * The list of hardware groups.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_groups = 1; + * + */ + @java.lang.Override + public int getHardwareGroupsCount() { + return hardwareGroups_.size(); + } + /** + * + * + *
          +   * The list of hardware groups.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_groups = 1; + * + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup getHardwareGroups(int index) { + return hardwareGroups_.get(index); + } + /** + * + * + *
          +   * The list of hardware groups.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_groups = 1; + * + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroupOrBuilder + getHardwareGroupsOrBuilder(int index) { + return hardwareGroups_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
          +   * A token identifying a page of results the server should return.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
          +   * A token identifying a page of results the server should return.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < hardwareGroups_.size(); i++) { + output.writeMessage(1, hardwareGroups_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < hardwareGroups_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, hardwareGroups_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse other = + (com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse) obj; + + if (!getHardwareGroupsList().equals(other.getHardwareGroupsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getHardwareGroupsCount() > 0) { + hash = (37 * hash) + HARDWARE_GROUPS_FIELD_NUMBER; + hash = (53 * hash) + getHardwareGroupsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * A list of hardware groups.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse) + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareGroupsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareGroupsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse.class, + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (hardwareGroupsBuilder_ == null) { + hardwareGroups_ = java.util.Collections.emptyList(); + } else { + hardwareGroups_ = null; + hardwareGroupsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareGroupsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse build() { + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse + buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse result = + new com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse result) { + if (hardwareGroupsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + hardwareGroups_ = java.util.Collections.unmodifiableList(hardwareGroups_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.hardwareGroups_ = hardwareGroups_; + } else { + result.hardwareGroups_ = hardwareGroupsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse) { + return mergeFrom( + (com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse + .getDefaultInstance()) return this; + if (hardwareGroupsBuilder_ == null) { + if (!other.hardwareGroups_.isEmpty()) { + if (hardwareGroups_.isEmpty()) { + hardwareGroups_ = other.hardwareGroups_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureHardwareGroupsIsMutable(); + hardwareGroups_.addAll(other.hardwareGroups_); + } + onChanged(); + } + } else { + if (!other.hardwareGroups_.isEmpty()) { + if (hardwareGroupsBuilder_.isEmpty()) { + hardwareGroupsBuilder_.dispose(); + hardwareGroupsBuilder_ = null; + hardwareGroups_ = other.hardwareGroups_; + bitField0_ = (bitField0_ & ~0x00000001); + hardwareGroupsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getHardwareGroupsFieldBuilder() + : null; + } else { + hardwareGroupsBuilder_.addAllMessages(other.hardwareGroups_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup m = + input.readMessage( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.parser(), + extensionRegistry); + if (hardwareGroupsBuilder_ == null) { + ensureHardwareGroupsIsMutable(); + hardwareGroups_.add(m); + } else { + hardwareGroupsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + hardwareGroups_ = java.util.Collections.emptyList(); + + private void ensureHardwareGroupsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + hardwareGroups_ = + new java.util.ArrayList( + hardwareGroups_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroupOrBuilder> + hardwareGroupsBuilder_; + + /** + * + * + *
          +     * The list of hardware groups.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_groups = 1; + * + */ + public java.util.List + getHardwareGroupsList() { + if (hardwareGroupsBuilder_ == null) { + return java.util.Collections.unmodifiableList(hardwareGroups_); + } else { + return hardwareGroupsBuilder_.getMessageList(); + } + } + /** + * + * + *
          +     * The list of hardware groups.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_groups = 1; + * + */ + public int getHardwareGroupsCount() { + if (hardwareGroupsBuilder_ == null) { + return hardwareGroups_.size(); + } else { + return hardwareGroupsBuilder_.getCount(); + } + } + /** + * + * + *
          +     * The list of hardware groups.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_groups = 1; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup getHardwareGroups( + int index) { + if (hardwareGroupsBuilder_ == null) { + return hardwareGroups_.get(index); + } else { + return hardwareGroupsBuilder_.getMessage(index); + } + } + /** + * + * + *
          +     * The list of hardware groups.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_groups = 1; + * + */ + public Builder setHardwareGroups( + int index, com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup value) { + if (hardwareGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHardwareGroupsIsMutable(); + hardwareGroups_.set(index, value); + onChanged(); + } else { + hardwareGroupsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
          +     * The list of hardware groups.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_groups = 1; + * + */ + public Builder setHardwareGroups( + int index, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.Builder builderForValue) { + if (hardwareGroupsBuilder_ == null) { + ensureHardwareGroupsIsMutable(); + hardwareGroups_.set(index, builderForValue.build()); + onChanged(); + } else { + hardwareGroupsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * The list of hardware groups.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_groups = 1; + * + */ + public Builder addHardwareGroups( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup value) { + if (hardwareGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHardwareGroupsIsMutable(); + hardwareGroups_.add(value); + onChanged(); + } else { + hardwareGroupsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
          +     * The list of hardware groups.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_groups = 1; + * + */ + public Builder addHardwareGroups( + int index, com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup value) { + if (hardwareGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHardwareGroupsIsMutable(); + hardwareGroups_.add(index, value); + onChanged(); + } else { + hardwareGroupsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
          +     * The list of hardware groups.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_groups = 1; + * + */ + public Builder addHardwareGroups( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.Builder builderForValue) { + if (hardwareGroupsBuilder_ == null) { + ensureHardwareGroupsIsMutable(); + hardwareGroups_.add(builderForValue.build()); + onChanged(); + } else { + hardwareGroupsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * The list of hardware groups.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_groups = 1; + * + */ + public Builder addHardwareGroups( + int index, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.Builder builderForValue) { + if (hardwareGroupsBuilder_ == null) { + ensureHardwareGroupsIsMutable(); + hardwareGroups_.add(index, builderForValue.build()); + onChanged(); + } else { + hardwareGroupsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * The list of hardware groups.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_groups = 1; + * + */ + public Builder addAllHardwareGroups( + java.lang.Iterable + values) { + if (hardwareGroupsBuilder_ == null) { + ensureHardwareGroupsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, hardwareGroups_); + onChanged(); + } else { + hardwareGroupsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
          +     * The list of hardware groups.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_groups = 1; + * + */ + public Builder clearHardwareGroups() { + if (hardwareGroupsBuilder_ == null) { + hardwareGroups_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + hardwareGroupsBuilder_.clear(); + } + return this; + } + /** + * + * + *
          +     * The list of hardware groups.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_groups = 1; + * + */ + public Builder removeHardwareGroups(int index) { + if (hardwareGroupsBuilder_ == null) { + ensureHardwareGroupsIsMutable(); + hardwareGroups_.remove(index); + onChanged(); + } else { + hardwareGroupsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
          +     * The list of hardware groups.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_groups = 1; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.Builder + getHardwareGroupsBuilder(int index) { + return getHardwareGroupsFieldBuilder().getBuilder(index); + } + /** + * + * + *
          +     * The list of hardware groups.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_groups = 1; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroupOrBuilder + getHardwareGroupsOrBuilder(int index) { + if (hardwareGroupsBuilder_ == null) { + return hardwareGroups_.get(index); + } else { + return hardwareGroupsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
          +     * The list of hardware groups.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_groups = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroupOrBuilder> + getHardwareGroupsOrBuilderList() { + if (hardwareGroupsBuilder_ != null) { + return hardwareGroupsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(hardwareGroups_); + } + } + /** + * + * + *
          +     * The list of hardware groups.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_groups = 1; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.Builder + addHardwareGroupsBuilder() { + return getHardwareGroupsFieldBuilder() + .addBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.getDefaultInstance()); + } + /** + * + * + *
          +     * The list of hardware groups.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_groups = 1; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.Builder + addHardwareGroupsBuilder(int index) { + return getHardwareGroupsFieldBuilder() + .addBuilder( + index, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.getDefaultInstance()); + } + /** + * + * + *
          +     * The list of hardware groups.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_groups = 1; + * + */ + public java.util.List + getHardwareGroupsBuilderList() { + return getHardwareGroupsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroupOrBuilder> + getHardwareGroupsFieldBuilder() { + if (hardwareGroupsBuilder_ == null) { + hardwareGroupsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroupOrBuilder>( + hardwareGroups_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + hardwareGroups_ = null; + } + return hardwareGroupsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
          +     * A token identifying a page of results the server should return.
          +     * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * A token identifying a page of results the server should return.
          +     * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * A token identifying a page of results the server should return.
          +     * 
          + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * A token identifying a page of results the server should return.
          +     * 
          + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
          +     * A token identifying a page of results the server should return.
          +     * 
          + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListHardwareGroupsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListHardwareGroupsResponseOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListHardwareGroupsResponseOrBuilder.java new file mode 100644 index 000000000000..5cc2c05821c7 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListHardwareGroupsResponseOrBuilder.java @@ -0,0 +1,161 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface ListHardwareGroupsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * The list of hardware groups.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_groups = 1; + * + */ + java.util.List + getHardwareGroupsList(); + /** + * + * + *
          +   * The list of hardware groups.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_groups = 1; + * + */ + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup getHardwareGroups(int index); + /** + * + * + *
          +   * The list of hardware groups.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_groups = 1; + * + */ + int getHardwareGroupsCount(); + /** + * + * + *
          +   * The list of hardware groups.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_groups = 1; + * + */ + java.util.List + getHardwareGroupsOrBuilderList(); + /** + * + * + *
          +   * The list of hardware groups.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_groups = 1; + * + */ + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroupOrBuilder getHardwareGroupsOrBuilder( + int index); + + /** + * + * + *
          +   * A token identifying a page of results the server should return.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
          +   * A token identifying a page of results the server should return.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListHardwareRequest.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListHardwareRequest.java new file mode 100644 index 000000000000..9f0b76c9475c --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListHardwareRequest.java @@ -0,0 +1,1301 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * A request to list hardware.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest} + */ +public final class ListHardwareRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest) + ListHardwareRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListHardwareRequest.newBuilder() to construct. + private ListHardwareRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListHardwareRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListHardwareRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
          +   * Required. The project and location to list hardware in.
          +   * Format: `projects/{project}/locations/{location}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
          +   * Required. The project and location to list hardware in.
          +   * Format: `projects/{project}/locations/{location}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
          +   * Optional. Requested page size. Server may return fewer items than
          +   * requested. If unspecified, server will pick an appropriate default.
          +   * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
          +   * Optional. A token identifying a page of results the server should return.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. A token identifying a page of results the server should return.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
          +   * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +   * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +   * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + /** + * + * + *
          +   * Optional. Hint for how to order the results.
          +   * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. Hint for how to order the results.
          +   * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest other = + (com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * A request to list hardware.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest) + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest.Builder.class); + } + + // Construct using + // com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest build() { + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest result = + new com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest) { + return mergeFrom( + (com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
          +     * Required. The project and location to list hardware in.
          +     * Format: `projects/{project}/locations/{location}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Required. The project and location to list hardware in.
          +     * Format: `projects/{project}/locations/{location}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Required. The project and location to list hardware in.
          +     * Format: `projects/{project}/locations/{location}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The project and location to list hardware in.
          +     * Format: `projects/{project}/locations/{location}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The project and location to list hardware in.
          +     * Format: `projects/{project}/locations/{location}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
          +     * Optional. Requested page size. Server may return fewer items than
          +     * requested. If unspecified, server will pick an appropriate default.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
          +     * Optional. Requested page size. Server may return fewer items than
          +     * requested. If unspecified, server will pick an appropriate default.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Requested page size. Server may return fewer items than
          +     * requested. If unspecified, server will pick an appropriate default.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
          +     * Optional. A token identifying a page of results the server should return.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. A token identifying a page of results the server should return.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. A token identifying a page of results the server should return.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. A token identifying a page of results the server should return.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. A token identifying a page of results the server should return.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
          +     * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + /** + * + * + *
          +     * Optional. Hint for how to order the results.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. Hint for how to order the results.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. Hint for how to order the results.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Hint for how to order the results.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Hint for how to order the results.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListHardwareRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListHardwareRequestOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListHardwareRequestOrBuilder.java new file mode 100644 index 000000000000..22dc358a38ba --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListHardwareRequestOrBuilder.java @@ -0,0 +1,146 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface ListHardwareRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The project and location to list hardware in.
          +   * Format: `projects/{project}/locations/{location}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
          +   * Required. The project and location to list hardware in.
          +   * Format: `projects/{project}/locations/{location}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
          +   * Optional. Requested page size. Server may return fewer items than
          +   * requested. If unspecified, server will pick an appropriate default.
          +   * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
          +   * Optional. A token identifying a page of results the server should return.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
          +   * Optional. A token identifying a page of results the server should return.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
          +   * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +   * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
          +   * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +   * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
          +   * Optional. Hint for how to order the results.
          +   * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + * + * + *
          +   * Optional. Hint for how to order the results.
          +   * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListHardwareResponse.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListHardwareResponse.java new file mode 100644 index 000000000000..a91b1624358a --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListHardwareResponse.java @@ -0,0 +1,1423 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * A list of hardware.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse} + */ +public final class ListHardwareResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse) + ListHardwareResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListHardwareResponse.newBuilder() to construct. + private ListHardwareResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListHardwareResponse() { + hardware_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListHardwareResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse.class, + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse.Builder.class); + } + + public static final int HARDWARE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List hardware_; + /** + * + * + *
          +   * The list of hardware.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1; + */ + @java.lang.Override + public java.util.List getHardwareList() { + return hardware_; + } + /** + * + * + *
          +   * The list of hardware.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1; + */ + @java.lang.Override + public java.util.List + getHardwareOrBuilderList() { + return hardware_; + } + /** + * + * + *
          +   * The list of hardware.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1; + */ + @java.lang.Override + public int getHardwareCount() { + return hardware_.size(); + } + /** + * + * + *
          +   * The list of hardware.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1; + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware getHardware(int index) { + return hardware_.get(index); + } + /** + * + * + *
          +   * The list of hardware.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1; + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareOrBuilder getHardwareOrBuilder( + int index) { + return hardware_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
          +   * A token identifying a page of results the server should return.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
          +   * A token identifying a page of results the server should return.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < hardware_.size(); i++) { + output.writeMessage(1, hardware_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < hardware_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, hardware_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse other = + (com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse) obj; + + if (!getHardwareList().equals(other.getHardwareList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getHardwareCount() > 0) { + hash = (37 * hash) + HARDWARE_FIELD_NUMBER; + hash = (53 * hash) + getHardwareList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * A list of hardware.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse) + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse.class, + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse.Builder.class); + } + + // Construct using + // com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (hardwareBuilder_ == null) { + hardware_ = java.util.Collections.emptyList(); + } else { + hardware_ = null; + hardwareBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse build() { + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse result = + new com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse result) { + if (hardwareBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + hardware_ = java.util.Collections.unmodifiableList(hardware_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.hardware_ = hardware_; + } else { + result.hardware_ = hardwareBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse) { + return mergeFrom( + (com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse + .getDefaultInstance()) return this; + if (hardwareBuilder_ == null) { + if (!other.hardware_.isEmpty()) { + if (hardware_.isEmpty()) { + hardware_ = other.hardware_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureHardwareIsMutable(); + hardware_.addAll(other.hardware_); + } + onChanged(); + } + } else { + if (!other.hardware_.isEmpty()) { + if (hardwareBuilder_.isEmpty()) { + hardwareBuilder_.dispose(); + hardwareBuilder_ = null; + hardware_ = other.hardware_; + bitField0_ = (bitField0_ & ~0x00000001); + hardwareBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getHardwareFieldBuilder() + : null; + } else { + hardwareBuilder_.addAllMessages(other.hardware_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware m = + input.readMessage( + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.parser(), + extensionRegistry); + if (hardwareBuilder_ == null) { + ensureHardwareIsMutable(); + hardware_.add(m); + } else { + hardwareBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List hardware_ = + java.util.Collections.emptyList(); + + private void ensureHardwareIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + hardware_ = + new java.util.ArrayList( + hardware_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware, + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareOrBuilder> + hardwareBuilder_; + + /** + * + * + *
          +     * The list of hardware.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1; + */ + public java.util.List + getHardwareList() { + if (hardwareBuilder_ == null) { + return java.util.Collections.unmodifiableList(hardware_); + } else { + return hardwareBuilder_.getMessageList(); + } + } + /** + * + * + *
          +     * The list of hardware.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1; + */ + public int getHardwareCount() { + if (hardwareBuilder_ == null) { + return hardware_.size(); + } else { + return hardwareBuilder_.getCount(); + } + } + /** + * + * + *
          +     * The list of hardware.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1; + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware getHardware(int index) { + if (hardwareBuilder_ == null) { + return hardware_.get(index); + } else { + return hardwareBuilder_.getMessage(index); + } + } + /** + * + * + *
          +     * The list of hardware.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1; + */ + public Builder setHardware( + int index, com.google.cloud.gdchardwaremanagement.v1alpha.Hardware value) { + if (hardwareBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHardwareIsMutable(); + hardware_.set(index, value); + onChanged(); + } else { + hardwareBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
          +     * The list of hardware.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1; + */ + public Builder setHardware( + int index, + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.Builder builderForValue) { + if (hardwareBuilder_ == null) { + ensureHardwareIsMutable(); + hardware_.set(index, builderForValue.build()); + onChanged(); + } else { + hardwareBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * The list of hardware.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1; + */ + public Builder addHardware(com.google.cloud.gdchardwaremanagement.v1alpha.Hardware value) { + if (hardwareBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHardwareIsMutable(); + hardware_.add(value); + onChanged(); + } else { + hardwareBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
          +     * The list of hardware.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1; + */ + public Builder addHardware( + int index, com.google.cloud.gdchardwaremanagement.v1alpha.Hardware value) { + if (hardwareBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHardwareIsMutable(); + hardware_.add(index, value); + onChanged(); + } else { + hardwareBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
          +     * The list of hardware.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1; + */ + public Builder addHardware( + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.Builder builderForValue) { + if (hardwareBuilder_ == null) { + ensureHardwareIsMutable(); + hardware_.add(builderForValue.build()); + onChanged(); + } else { + hardwareBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * The list of hardware.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1; + */ + public Builder addHardware( + int index, + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.Builder builderForValue) { + if (hardwareBuilder_ == null) { + ensureHardwareIsMutable(); + hardware_.add(index, builderForValue.build()); + onChanged(); + } else { + hardwareBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * The list of hardware.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1; + */ + public Builder addAllHardware( + java.lang.Iterable + values) { + if (hardwareBuilder_ == null) { + ensureHardwareIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, hardware_); + onChanged(); + } else { + hardwareBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
          +     * The list of hardware.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1; + */ + public Builder clearHardware() { + if (hardwareBuilder_ == null) { + hardware_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + hardwareBuilder_.clear(); + } + return this; + } + /** + * + * + *
          +     * The list of hardware.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1; + */ + public Builder removeHardware(int index) { + if (hardwareBuilder_ == null) { + ensureHardwareIsMutable(); + hardware_.remove(index); + onChanged(); + } else { + hardwareBuilder_.remove(index); + } + return this; + } + /** + * + * + *
          +     * The list of hardware.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1; + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.Builder getHardwareBuilder( + int index) { + return getHardwareFieldBuilder().getBuilder(index); + } + /** + * + * + *
          +     * The list of hardware.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1; + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareOrBuilder getHardwareOrBuilder( + int index) { + if (hardwareBuilder_ == null) { + return hardware_.get(index); + } else { + return hardwareBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
          +     * The list of hardware.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1; + */ + public java.util.List< + ? extends com.google.cloud.gdchardwaremanagement.v1alpha.HardwareOrBuilder> + getHardwareOrBuilderList() { + if (hardwareBuilder_ != null) { + return hardwareBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(hardware_); + } + } + /** + * + * + *
          +     * The list of hardware.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1; + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.Builder addHardwareBuilder() { + return getHardwareFieldBuilder() + .addBuilder(com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.getDefaultInstance()); + } + /** + * + * + *
          +     * The list of hardware.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1; + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.Builder addHardwareBuilder( + int index) { + return getHardwareFieldBuilder() + .addBuilder( + index, com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.getDefaultInstance()); + } + /** + * + * + *
          +     * The list of hardware.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1; + */ + public java.util.List + getHardwareBuilderList() { + return getHardwareFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware, + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareOrBuilder> + getHardwareFieldBuilder() { + if (hardwareBuilder_ == null) { + hardwareBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware, + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareOrBuilder>( + hardware_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + hardware_ = null; + } + return hardwareBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
          +     * A token identifying a page of results the server should return.
          +     * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * A token identifying a page of results the server should return.
          +     * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * A token identifying a page of results the server should return.
          +     * 
          + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * A token identifying a page of results the server should return.
          +     * 
          + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
          +     * A token identifying a page of results the server should return.
          +     * 
          + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListHardwareResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListHardwareResponseOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListHardwareResponseOrBuilder.java new file mode 100644 index 000000000000..668babafa82b --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListHardwareResponseOrBuilder.java @@ -0,0 +1,154 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface ListHardwareResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * The list of hardware.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1; + */ + java.util.List getHardwareList(); + /** + * + * + *
          +   * The list of hardware.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1; + */ + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware getHardware(int index); + /** + * + * + *
          +   * The list of hardware.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1; + */ + int getHardwareCount(); + /** + * + * + *
          +   * The list of hardware.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1; + */ + java.util.List + getHardwareOrBuilderList(); + /** + * + * + *
          +   * The list of hardware.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 1; + */ + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareOrBuilder getHardwareOrBuilder(int index); + + /** + * + * + *
          +   * A token identifying a page of results the server should return.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
          +   * A token identifying a page of results the server should return.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListOrdersRequest.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListOrdersRequest.java new file mode 100644 index 000000000000..cd26b9408e37 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListOrdersRequest.java @@ -0,0 +1,1297 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * A request to list orders.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest} + */ +public final class ListOrdersRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest) + ListOrdersRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListOrdersRequest.newBuilder() to construct. + private ListOrdersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListOrdersRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListOrdersRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListOrdersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListOrdersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
          +   * Required. The project and location to list orders in.
          +   * Format: `projects/{project}/locations/{location}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
          +   * Required. The project and location to list orders in.
          +   * Format: `projects/{project}/locations/{location}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
          +   * Optional. Requested page size. Server may return fewer items than
          +   * requested. If unspecified, server will pick an appropriate default.
          +   * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
          +   * Optional. A token identifying a page of results the server should return.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. A token identifying a page of results the server should return.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
          +   * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +   * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +   * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + /** + * + * + *
          +   * Optional. Hint for how to order the results.
          +   * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. Hint for how to order the results.
          +   * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest other = + (com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * A request to list orders.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest) + com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListOrdersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListOrdersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest.Builder.class); + } + + // Construct using com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListOrdersRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest build() { + com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest result = + new com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest) { + return mergeFrom((com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
          +     * Required. The project and location to list orders in.
          +     * Format: `projects/{project}/locations/{location}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Required. The project and location to list orders in.
          +     * Format: `projects/{project}/locations/{location}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Required. The project and location to list orders in.
          +     * Format: `projects/{project}/locations/{location}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The project and location to list orders in.
          +     * Format: `projects/{project}/locations/{location}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The project and location to list orders in.
          +     * Format: `projects/{project}/locations/{location}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
          +     * Optional. Requested page size. Server may return fewer items than
          +     * requested. If unspecified, server will pick an appropriate default.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
          +     * Optional. Requested page size. Server may return fewer items than
          +     * requested. If unspecified, server will pick an appropriate default.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Requested page size. Server may return fewer items than
          +     * requested. If unspecified, server will pick an appropriate default.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
          +     * Optional. A token identifying a page of results the server should return.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. A token identifying a page of results the server should return.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. A token identifying a page of results the server should return.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. A token identifying a page of results the server should return.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. A token identifying a page of results the server should return.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
          +     * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + /** + * + * + *
          +     * Optional. Hint for how to order the results.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. Hint for how to order the results.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. Hint for how to order the results.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Hint for how to order the results.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Hint for how to order the results.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListOrdersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListOrdersRequestOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListOrdersRequestOrBuilder.java new file mode 100644 index 000000000000..f61f856ed094 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListOrdersRequestOrBuilder.java @@ -0,0 +1,146 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface ListOrdersRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The project and location to list orders in.
          +   * Format: `projects/{project}/locations/{location}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
          +   * Required. The project and location to list orders in.
          +   * Format: `projects/{project}/locations/{location}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
          +   * Optional. Requested page size. Server may return fewer items than
          +   * requested. If unspecified, server will pick an appropriate default.
          +   * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
          +   * Optional. A token identifying a page of results the server should return.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
          +   * Optional. A token identifying a page of results the server should return.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
          +   * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +   * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
          +   * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +   * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
          +   * Optional. Hint for how to order the results.
          +   * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + * + * + *
          +   * Optional. Hint for how to order the results.
          +   * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListOrdersResponse.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListOrdersResponse.java new file mode 100644 index 000000000000..39f3c9d41753 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListOrdersResponse.java @@ -0,0 +1,1415 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * A list of orders.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse} + */ +public final class ListOrdersResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse) + ListOrdersResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListOrdersResponse.newBuilder() to construct. + private ListOrdersResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListOrdersResponse() { + orders_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListOrdersResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListOrdersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListOrdersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse.class, + com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse.Builder.class); + } + + public static final int ORDERS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List orders_; + /** + * + * + *
          +   * The list of orders.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Order orders = 1; + */ + @java.lang.Override + public java.util.List getOrdersList() { + return orders_; + } + /** + * + * + *
          +   * The list of orders.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Order orders = 1; + */ + @java.lang.Override + public java.util.List + getOrdersOrBuilderList() { + return orders_; + } + /** + * + * + *
          +   * The list of orders.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Order orders = 1; + */ + @java.lang.Override + public int getOrdersCount() { + return orders_.size(); + } + /** + * + * + *
          +   * The list of orders.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Order orders = 1; + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Order getOrders(int index) { + return orders_.get(index); + } + /** + * + * + *
          +   * The list of orders.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Order orders = 1; + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.OrderOrBuilder getOrdersOrBuilder( + int index) { + return orders_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
          +   * A token identifying a page of results the server should return.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
          +   * A token identifying a page of results the server should return.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < orders_.size(); i++) { + output.writeMessage(1, orders_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < orders_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, orders_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse other = + (com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse) obj; + + if (!getOrdersList().equals(other.getOrdersList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getOrdersCount() > 0) { + hash = (37 * hash) + ORDERS_FIELD_NUMBER; + hash = (53 * hash) + getOrdersList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * A list of orders.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse) + com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListOrdersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListOrdersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse.class, + com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse.Builder.class); + } + + // Construct using + // com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (ordersBuilder_ == null) { + orders_ = java.util.Collections.emptyList(); + } else { + orders_ = null; + ordersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListOrdersResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse build() { + com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse result = + new com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse result) { + if (ordersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + orders_ = java.util.Collections.unmodifiableList(orders_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.orders_ = orders_; + } else { + result.orders_ = ordersBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse) { + return mergeFrom((com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse.getDefaultInstance()) + return this; + if (ordersBuilder_ == null) { + if (!other.orders_.isEmpty()) { + if (orders_.isEmpty()) { + orders_ = other.orders_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureOrdersIsMutable(); + orders_.addAll(other.orders_); + } + onChanged(); + } + } else { + if (!other.orders_.isEmpty()) { + if (ordersBuilder_.isEmpty()) { + ordersBuilder_.dispose(); + ordersBuilder_ = null; + orders_ = other.orders_; + bitField0_ = (bitField0_ & ~0x00000001); + ordersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getOrdersFieldBuilder() + : null; + } else { + ordersBuilder_.addAllMessages(other.orders_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.gdchardwaremanagement.v1alpha.Order m = + input.readMessage( + com.google.cloud.gdchardwaremanagement.v1alpha.Order.parser(), + extensionRegistry); + if (ordersBuilder_ == null) { + ensureOrdersIsMutable(); + orders_.add(m); + } else { + ordersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List orders_ = + java.util.Collections.emptyList(); + + private void ensureOrdersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + orders_ = + new java.util.ArrayList(orders_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Order, + com.google.cloud.gdchardwaremanagement.v1alpha.Order.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.OrderOrBuilder> + ordersBuilder_; + + /** + * + * + *
          +     * The list of orders.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Order orders = 1; + */ + public java.util.List getOrdersList() { + if (ordersBuilder_ == null) { + return java.util.Collections.unmodifiableList(orders_); + } else { + return ordersBuilder_.getMessageList(); + } + } + /** + * + * + *
          +     * The list of orders.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Order orders = 1; + */ + public int getOrdersCount() { + if (ordersBuilder_ == null) { + return orders_.size(); + } else { + return ordersBuilder_.getCount(); + } + } + /** + * + * + *
          +     * The list of orders.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Order orders = 1; + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Order getOrders(int index) { + if (ordersBuilder_ == null) { + return orders_.get(index); + } else { + return ordersBuilder_.getMessage(index); + } + } + /** + * + * + *
          +     * The list of orders.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Order orders = 1; + */ + public Builder setOrders( + int index, com.google.cloud.gdchardwaremanagement.v1alpha.Order value) { + if (ordersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOrdersIsMutable(); + orders_.set(index, value); + onChanged(); + } else { + ordersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
          +     * The list of orders.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Order orders = 1; + */ + public Builder setOrders( + int index, com.google.cloud.gdchardwaremanagement.v1alpha.Order.Builder builderForValue) { + if (ordersBuilder_ == null) { + ensureOrdersIsMutable(); + orders_.set(index, builderForValue.build()); + onChanged(); + } else { + ordersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * The list of orders.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Order orders = 1; + */ + public Builder addOrders(com.google.cloud.gdchardwaremanagement.v1alpha.Order value) { + if (ordersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOrdersIsMutable(); + orders_.add(value); + onChanged(); + } else { + ordersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
          +     * The list of orders.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Order orders = 1; + */ + public Builder addOrders( + int index, com.google.cloud.gdchardwaremanagement.v1alpha.Order value) { + if (ordersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOrdersIsMutable(); + orders_.add(index, value); + onChanged(); + } else { + ordersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
          +     * The list of orders.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Order orders = 1; + */ + public Builder addOrders( + com.google.cloud.gdchardwaremanagement.v1alpha.Order.Builder builderForValue) { + if (ordersBuilder_ == null) { + ensureOrdersIsMutable(); + orders_.add(builderForValue.build()); + onChanged(); + } else { + ordersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * The list of orders.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Order orders = 1; + */ + public Builder addOrders( + int index, com.google.cloud.gdchardwaremanagement.v1alpha.Order.Builder builderForValue) { + if (ordersBuilder_ == null) { + ensureOrdersIsMutable(); + orders_.add(index, builderForValue.build()); + onChanged(); + } else { + ordersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * The list of orders.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Order orders = 1; + */ + public Builder addAllOrders( + java.lang.Iterable values) { + if (ordersBuilder_ == null) { + ensureOrdersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, orders_); + onChanged(); + } else { + ordersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
          +     * The list of orders.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Order orders = 1; + */ + public Builder clearOrders() { + if (ordersBuilder_ == null) { + orders_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + ordersBuilder_.clear(); + } + return this; + } + /** + * + * + *
          +     * The list of orders.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Order orders = 1; + */ + public Builder removeOrders(int index) { + if (ordersBuilder_ == null) { + ensureOrdersIsMutable(); + orders_.remove(index); + onChanged(); + } else { + ordersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
          +     * The list of orders.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Order orders = 1; + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Order.Builder getOrdersBuilder( + int index) { + return getOrdersFieldBuilder().getBuilder(index); + } + /** + * + * + *
          +     * The list of orders.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Order orders = 1; + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.OrderOrBuilder getOrdersOrBuilder( + int index) { + if (ordersBuilder_ == null) { + return orders_.get(index); + } else { + return ordersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
          +     * The list of orders.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Order orders = 1; + */ + public java.util.List + getOrdersOrBuilderList() { + if (ordersBuilder_ != null) { + return ordersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(orders_); + } + } + /** + * + * + *
          +     * The list of orders.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Order orders = 1; + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Order.Builder addOrdersBuilder() { + return getOrdersFieldBuilder() + .addBuilder(com.google.cloud.gdchardwaremanagement.v1alpha.Order.getDefaultInstance()); + } + /** + * + * + *
          +     * The list of orders.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Order orders = 1; + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Order.Builder addOrdersBuilder( + int index) { + return getOrdersFieldBuilder() + .addBuilder( + index, com.google.cloud.gdchardwaremanagement.v1alpha.Order.getDefaultInstance()); + } + /** + * + * + *
          +     * The list of orders.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Order orders = 1; + */ + public java.util.List + getOrdersBuilderList() { + return getOrdersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Order, + com.google.cloud.gdchardwaremanagement.v1alpha.Order.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.OrderOrBuilder> + getOrdersFieldBuilder() { + if (ordersBuilder_ == null) { + ordersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Order, + com.google.cloud.gdchardwaremanagement.v1alpha.Order.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.OrderOrBuilder>( + orders_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + orders_ = null; + } + return ordersBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
          +     * A token identifying a page of results the server should return.
          +     * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * A token identifying a page of results the server should return.
          +     * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * A token identifying a page of results the server should return.
          +     * 
          + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * A token identifying a page of results the server should return.
          +     * 
          + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
          +     * A token identifying a page of results the server should return.
          +     * 
          + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListOrdersResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListOrdersResponseOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListOrdersResponseOrBuilder.java new file mode 100644 index 000000000000..3da6c346a6fc --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListOrdersResponseOrBuilder.java @@ -0,0 +1,154 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface ListOrdersResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * The list of orders.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Order orders = 1; + */ + java.util.List getOrdersList(); + /** + * + * + *
          +   * The list of orders.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Order orders = 1; + */ + com.google.cloud.gdchardwaremanagement.v1alpha.Order getOrders(int index); + /** + * + * + *
          +   * The list of orders.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Order orders = 1; + */ + int getOrdersCount(); + /** + * + * + *
          +   * The list of orders.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Order orders = 1; + */ + java.util.List + getOrdersOrBuilderList(); + /** + * + * + *
          +   * The list of orders.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Order orders = 1; + */ + com.google.cloud.gdchardwaremanagement.v1alpha.OrderOrBuilder getOrdersOrBuilder(int index); + + /** + * + * + *
          +   * A token identifying a page of results the server should return.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
          +   * A token identifying a page of results the server should return.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSitesRequest.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSitesRequest.java new file mode 100644 index 000000000000..59d484f086c2 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSitesRequest.java @@ -0,0 +1,1297 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * A request to list sites.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest} + */ +public final class ListSitesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest) + ListSitesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListSitesRequest.newBuilder() to construct. + private ListSitesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListSitesRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListSitesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSitesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSitesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
          +   * Required. The project and location to list sites in.
          +   * Format: `projects/{project}/locations/{location}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
          +   * Required. The project and location to list sites in.
          +   * Format: `projects/{project}/locations/{location}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
          +   * Optional. Requested page size. Server may return fewer items than
          +   * requested. If unspecified, server will pick an appropriate default.
          +   * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
          +   * Optional. A token identifying a page of results the server should return.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. A token identifying a page of results the server should return.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
          +   * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +   * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +   * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + /** + * + * + *
          +   * Optional. Hint for how to order the results.
          +   * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. Hint for how to order the results.
          +   * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest other = + (com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * A request to list sites.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest) + com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSitesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSitesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest.Builder.class); + } + + // Construct using com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSitesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest build() { + com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest result = + new com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest) { + return mergeFrom((com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
          +     * Required. The project and location to list sites in.
          +     * Format: `projects/{project}/locations/{location}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Required. The project and location to list sites in.
          +     * Format: `projects/{project}/locations/{location}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Required. The project and location to list sites in.
          +     * Format: `projects/{project}/locations/{location}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The project and location to list sites in.
          +     * Format: `projects/{project}/locations/{location}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The project and location to list sites in.
          +     * Format: `projects/{project}/locations/{location}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
          +     * Optional. Requested page size. Server may return fewer items than
          +     * requested. If unspecified, server will pick an appropriate default.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
          +     * Optional. Requested page size. Server may return fewer items than
          +     * requested. If unspecified, server will pick an appropriate default.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Requested page size. Server may return fewer items than
          +     * requested. If unspecified, server will pick an appropriate default.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
          +     * Optional. A token identifying a page of results the server should return.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. A token identifying a page of results the server should return.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. A token identifying a page of results the server should return.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. A token identifying a page of results the server should return.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. A token identifying a page of results the server should return.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
          +     * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + /** + * + * + *
          +     * Optional. Hint for how to order the results.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. Hint for how to order the results.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. Hint for how to order the results.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Hint for how to order the results.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Hint for how to order the results.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSitesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSitesRequestOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSitesRequestOrBuilder.java new file mode 100644 index 000000000000..8128a32a0f0e --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSitesRequestOrBuilder.java @@ -0,0 +1,146 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface ListSitesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The project and location to list sites in.
          +   * Format: `projects/{project}/locations/{location}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
          +   * Required. The project and location to list sites in.
          +   * Format: `projects/{project}/locations/{location}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
          +   * Optional. Requested page size. Server may return fewer items than
          +   * requested. If unspecified, server will pick an appropriate default.
          +   * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
          +   * Optional. A token identifying a page of results the server should return.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
          +   * Optional. A token identifying a page of results the server should return.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
          +   * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +   * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
          +   * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +   * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
          +   * Optional. Hint for how to order the results.
          +   * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + * + * + *
          +   * Optional. Hint for how to order the results.
          +   * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSitesResponse.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSitesResponse.java new file mode 100644 index 000000000000..90616d96b4b1 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSitesResponse.java @@ -0,0 +1,1408 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * A list of sites.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse} + */ +public final class ListSitesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse) + ListSitesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListSitesResponse.newBuilder() to construct. + private ListSitesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListSitesResponse() { + sites_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListSitesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSitesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSitesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse.class, + com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse.Builder.class); + } + + public static final int SITES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List sites_; + /** + * + * + *
          +   * The list of sites.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1; + */ + @java.lang.Override + public java.util.List getSitesList() { + return sites_; + } + /** + * + * + *
          +   * The list of sites.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1; + */ + @java.lang.Override + public java.util.List + getSitesOrBuilderList() { + return sites_; + } + /** + * + * + *
          +   * The list of sites.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1; + */ + @java.lang.Override + public int getSitesCount() { + return sites_.size(); + } + /** + * + * + *
          +   * The list of sites.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1; + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Site getSites(int index) { + return sites_.get(index); + } + /** + * + * + *
          +   * The list of sites.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1; + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.SiteOrBuilder getSitesOrBuilder(int index) { + return sites_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
          +   * A token identifying a page of results the server should return.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
          +   * A token identifying a page of results the server should return.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < sites_.size(); i++) { + output.writeMessage(1, sites_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < sites_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, sites_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse other = + (com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse) obj; + + if (!getSitesList().equals(other.getSitesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSitesCount() > 0) { + hash = (37 * hash) + SITES_FIELD_NUMBER; + hash = (53 * hash) + getSitesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * A list of sites.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse) + com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSitesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSitesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse.class, + com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse.Builder.class); + } + + // Construct using com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (sitesBuilder_ == null) { + sites_ = java.util.Collections.emptyList(); + } else { + sites_ = null; + sitesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSitesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse build() { + com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse result = + new com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse result) { + if (sitesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + sites_ = java.util.Collections.unmodifiableList(sites_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.sites_ = sites_; + } else { + result.sites_ = sitesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse) { + return mergeFrom((com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse.getDefaultInstance()) + return this; + if (sitesBuilder_ == null) { + if (!other.sites_.isEmpty()) { + if (sites_.isEmpty()) { + sites_ = other.sites_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSitesIsMutable(); + sites_.addAll(other.sites_); + } + onChanged(); + } + } else { + if (!other.sites_.isEmpty()) { + if (sitesBuilder_.isEmpty()) { + sitesBuilder_.dispose(); + sitesBuilder_ = null; + sites_ = other.sites_; + bitField0_ = (bitField0_ & ~0x00000001); + sitesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSitesFieldBuilder() + : null; + } else { + sitesBuilder_.addAllMessages(other.sites_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.gdchardwaremanagement.v1alpha.Site m = + input.readMessage( + com.google.cloud.gdchardwaremanagement.v1alpha.Site.parser(), + extensionRegistry); + if (sitesBuilder_ == null) { + ensureSitesIsMutable(); + sites_.add(m); + } else { + sitesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List sites_ = + java.util.Collections.emptyList(); + + private void ensureSitesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + sites_ = + new java.util.ArrayList(sites_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Site, + com.google.cloud.gdchardwaremanagement.v1alpha.Site.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.SiteOrBuilder> + sitesBuilder_; + + /** + * + * + *
          +     * The list of sites.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1; + */ + public java.util.List getSitesList() { + if (sitesBuilder_ == null) { + return java.util.Collections.unmodifiableList(sites_); + } else { + return sitesBuilder_.getMessageList(); + } + } + /** + * + * + *
          +     * The list of sites.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1; + */ + public int getSitesCount() { + if (sitesBuilder_ == null) { + return sites_.size(); + } else { + return sitesBuilder_.getCount(); + } + } + /** + * + * + *
          +     * The list of sites.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1; + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Site getSites(int index) { + if (sitesBuilder_ == null) { + return sites_.get(index); + } else { + return sitesBuilder_.getMessage(index); + } + } + /** + * + * + *
          +     * The list of sites.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1; + */ + public Builder setSites(int index, com.google.cloud.gdchardwaremanagement.v1alpha.Site value) { + if (sitesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSitesIsMutable(); + sites_.set(index, value); + onChanged(); + } else { + sitesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
          +     * The list of sites.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1; + */ + public Builder setSites( + int index, com.google.cloud.gdchardwaremanagement.v1alpha.Site.Builder builderForValue) { + if (sitesBuilder_ == null) { + ensureSitesIsMutable(); + sites_.set(index, builderForValue.build()); + onChanged(); + } else { + sitesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * The list of sites.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1; + */ + public Builder addSites(com.google.cloud.gdchardwaremanagement.v1alpha.Site value) { + if (sitesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSitesIsMutable(); + sites_.add(value); + onChanged(); + } else { + sitesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
          +     * The list of sites.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1; + */ + public Builder addSites(int index, com.google.cloud.gdchardwaremanagement.v1alpha.Site value) { + if (sitesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSitesIsMutable(); + sites_.add(index, value); + onChanged(); + } else { + sitesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
          +     * The list of sites.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1; + */ + public Builder addSites( + com.google.cloud.gdchardwaremanagement.v1alpha.Site.Builder builderForValue) { + if (sitesBuilder_ == null) { + ensureSitesIsMutable(); + sites_.add(builderForValue.build()); + onChanged(); + } else { + sitesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * The list of sites.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1; + */ + public Builder addSites( + int index, com.google.cloud.gdchardwaremanagement.v1alpha.Site.Builder builderForValue) { + if (sitesBuilder_ == null) { + ensureSitesIsMutable(); + sites_.add(index, builderForValue.build()); + onChanged(); + } else { + sitesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * The list of sites.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1; + */ + public Builder addAllSites( + java.lang.Iterable values) { + if (sitesBuilder_ == null) { + ensureSitesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sites_); + onChanged(); + } else { + sitesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
          +     * The list of sites.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1; + */ + public Builder clearSites() { + if (sitesBuilder_ == null) { + sites_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + sitesBuilder_.clear(); + } + return this; + } + /** + * + * + *
          +     * The list of sites.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1; + */ + public Builder removeSites(int index) { + if (sitesBuilder_ == null) { + ensureSitesIsMutable(); + sites_.remove(index); + onChanged(); + } else { + sitesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
          +     * The list of sites.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1; + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Site.Builder getSitesBuilder(int index) { + return getSitesFieldBuilder().getBuilder(index); + } + /** + * + * + *
          +     * The list of sites.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1; + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.SiteOrBuilder getSitesOrBuilder( + int index) { + if (sitesBuilder_ == null) { + return sites_.get(index); + } else { + return sitesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
          +     * The list of sites.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1; + */ + public java.util.List + getSitesOrBuilderList() { + if (sitesBuilder_ != null) { + return sitesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(sites_); + } + } + /** + * + * + *
          +     * The list of sites.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1; + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Site.Builder addSitesBuilder() { + return getSitesFieldBuilder() + .addBuilder(com.google.cloud.gdchardwaremanagement.v1alpha.Site.getDefaultInstance()); + } + /** + * + * + *
          +     * The list of sites.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1; + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Site.Builder addSitesBuilder(int index) { + return getSitesFieldBuilder() + .addBuilder( + index, com.google.cloud.gdchardwaremanagement.v1alpha.Site.getDefaultInstance()); + } + /** + * + * + *
          +     * The list of sites.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1; + */ + public java.util.List + getSitesBuilderList() { + return getSitesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Site, + com.google.cloud.gdchardwaremanagement.v1alpha.Site.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.SiteOrBuilder> + getSitesFieldBuilder() { + if (sitesBuilder_ == null) { + sitesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Site, + com.google.cloud.gdchardwaremanagement.v1alpha.Site.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.SiteOrBuilder>( + sites_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + sites_ = null; + } + return sitesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
          +     * A token identifying a page of results the server should return.
          +     * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * A token identifying a page of results the server should return.
          +     * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * A token identifying a page of results the server should return.
          +     * 
          + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * A token identifying a page of results the server should return.
          +     * 
          + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
          +     * A token identifying a page of results the server should return.
          +     * 
          + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSitesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSitesResponseOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSitesResponseOrBuilder.java new file mode 100644 index 000000000000..e965a957ff1e --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSitesResponseOrBuilder.java @@ -0,0 +1,154 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface ListSitesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * The list of sites.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1; + */ + java.util.List getSitesList(); + /** + * + * + *
          +   * The list of sites.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1; + */ + com.google.cloud.gdchardwaremanagement.v1alpha.Site getSites(int index); + /** + * + * + *
          +   * The list of sites.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1; + */ + int getSitesCount(); + /** + * + * + *
          +   * The list of sites.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1; + */ + java.util.List + getSitesOrBuilderList(); + /** + * + * + *
          +   * The list of sites.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Site sites = 1; + */ + com.google.cloud.gdchardwaremanagement.v1alpha.SiteOrBuilder getSitesOrBuilder(int index); + + /** + * + * + *
          +   * A token identifying a page of results the server should return.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
          +   * A token identifying a page of results the server should return.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSkusRequest.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSkusRequest.java new file mode 100644 index 000000000000..b0f03d3e991a --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSkusRequest.java @@ -0,0 +1,1296 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * A request to list SKUs.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest} + */ +public final class ListSkusRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest) + ListSkusRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListSkusRequest.newBuilder() to construct. + private ListSkusRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListSkusRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListSkusRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSkusRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSkusRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
          +   * Required. The project and location to list SKUs in.
          +   * Format: `projects/{project}/locations/{location}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
          +   * Required. The project and location to list SKUs in.
          +   * Format: `projects/{project}/locations/{location}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
          +   * Optional. Requested page size. Server may return fewer items than
          +   * requested. If unspecified, server will pick an appropriate default.
          +   * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
          +   * Optional. A token identifying a page of results the server should return.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. A token identifying a page of results the server should return.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
          +   * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +   * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +   * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + /** + * + * + *
          +   * Optional. Hint for how to order the results.
          +   * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. Hint for how to order the results.
          +   * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest other = + (com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * A request to list SKUs.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest) + com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSkusRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSkusRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest.Builder.class); + } + + // Construct using com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSkusRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest build() { + com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest result = + new com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest) { + return mergeFrom((com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
          +     * Required. The project and location to list SKUs in.
          +     * Format: `projects/{project}/locations/{location}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Required. The project and location to list SKUs in.
          +     * Format: `projects/{project}/locations/{location}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Required. The project and location to list SKUs in.
          +     * Format: `projects/{project}/locations/{location}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The project and location to list SKUs in.
          +     * Format: `projects/{project}/locations/{location}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The project and location to list SKUs in.
          +     * Format: `projects/{project}/locations/{location}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
          +     * Optional. Requested page size. Server may return fewer items than
          +     * requested. If unspecified, server will pick an appropriate default.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
          +     * Optional. Requested page size. Server may return fewer items than
          +     * requested. If unspecified, server will pick an appropriate default.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Requested page size. Server may return fewer items than
          +     * requested. If unspecified, server will pick an appropriate default.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
          +     * Optional. A token identifying a page of results the server should return.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. A token identifying a page of results the server should return.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. A token identifying a page of results the server should return.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. A token identifying a page of results the server should return.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. A token identifying a page of results the server should return.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
          +     * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + /** + * + * + *
          +     * Optional. Hint for how to order the results.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. Hint for how to order the results.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. Hint for how to order the results.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Hint for how to order the results.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Hint for how to order the results.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSkusRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSkusRequestOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSkusRequestOrBuilder.java new file mode 100644 index 000000000000..9cc0816c70e1 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSkusRequestOrBuilder.java @@ -0,0 +1,146 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface ListSkusRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The project and location to list SKUs in.
          +   * Format: `projects/{project}/locations/{location}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
          +   * Required. The project and location to list SKUs in.
          +   * Format: `projects/{project}/locations/{location}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
          +   * Optional. Requested page size. Server may return fewer items than
          +   * requested. If unspecified, server will pick an appropriate default.
          +   * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
          +   * Optional. A token identifying a page of results the server should return.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
          +   * Optional. A token identifying a page of results the server should return.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
          +   * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +   * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
          +   * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +   * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
          +   * Optional. Hint for how to order the results.
          +   * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + * + * + *
          +   * Optional. Hint for how to order the results.
          +   * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSkusResponse.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSkusResponse.java new file mode 100644 index 000000000000..dda82a581792 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSkusResponse.java @@ -0,0 +1,1406 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * A list of SKUs.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse} + */ +public final class ListSkusResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse) + ListSkusResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListSkusResponse.newBuilder() to construct. + private ListSkusResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListSkusResponse() { + skus_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListSkusResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSkusResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSkusResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse.class, + com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse.Builder.class); + } + + public static final int SKUS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List skus_; + /** + * + * + *
          +   * The list of SKUs.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Sku skus = 1; + */ + @java.lang.Override + public java.util.List getSkusList() { + return skus_; + } + /** + * + * + *
          +   * The list of SKUs.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Sku skus = 1; + */ + @java.lang.Override + public java.util.List + getSkusOrBuilderList() { + return skus_; + } + /** + * + * + *
          +   * The list of SKUs.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Sku skus = 1; + */ + @java.lang.Override + public int getSkusCount() { + return skus_.size(); + } + /** + * + * + *
          +   * The list of SKUs.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Sku skus = 1; + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Sku getSkus(int index) { + return skus_.get(index); + } + /** + * + * + *
          +   * The list of SKUs.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Sku skus = 1; + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.SkuOrBuilder getSkusOrBuilder(int index) { + return skus_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
          +   * A token identifying a page of results the server should return.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
          +   * A token identifying a page of results the server should return.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < skus_.size(); i++) { + output.writeMessage(1, skus_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < skus_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, skus_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse other = + (com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse) obj; + + if (!getSkusList().equals(other.getSkusList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSkusCount() > 0) { + hash = (37 * hash) + SKUS_FIELD_NUMBER; + hash = (53 * hash) + getSkusList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * A list of SKUs.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse) + com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSkusResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSkusResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse.class, + com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse.Builder.class); + } + + // Construct using com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (skusBuilder_ == null) { + skus_ = java.util.Collections.emptyList(); + } else { + skus_ = null; + skusBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSkusResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse build() { + com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse result = + new com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse result) { + if (skusBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + skus_ = java.util.Collections.unmodifiableList(skus_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.skus_ = skus_; + } else { + result.skus_ = skusBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse) { + return mergeFrom((com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse.getDefaultInstance()) + return this; + if (skusBuilder_ == null) { + if (!other.skus_.isEmpty()) { + if (skus_.isEmpty()) { + skus_ = other.skus_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSkusIsMutable(); + skus_.addAll(other.skus_); + } + onChanged(); + } + } else { + if (!other.skus_.isEmpty()) { + if (skusBuilder_.isEmpty()) { + skusBuilder_.dispose(); + skusBuilder_ = null; + skus_ = other.skus_; + bitField0_ = (bitField0_ & ~0x00000001); + skusBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSkusFieldBuilder() + : null; + } else { + skusBuilder_.addAllMessages(other.skus_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.gdchardwaremanagement.v1alpha.Sku m = + input.readMessage( + com.google.cloud.gdchardwaremanagement.v1alpha.Sku.parser(), + extensionRegistry); + if (skusBuilder_ == null) { + ensureSkusIsMutable(); + skus_.add(m); + } else { + skusBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List skus_ = + java.util.Collections.emptyList(); + + private void ensureSkusIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + skus_ = new java.util.ArrayList(skus_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Sku, + com.google.cloud.gdchardwaremanagement.v1alpha.Sku.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.SkuOrBuilder> + skusBuilder_; + + /** + * + * + *
          +     * The list of SKUs.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Sku skus = 1; + */ + public java.util.List getSkusList() { + if (skusBuilder_ == null) { + return java.util.Collections.unmodifiableList(skus_); + } else { + return skusBuilder_.getMessageList(); + } + } + /** + * + * + *
          +     * The list of SKUs.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Sku skus = 1; + */ + public int getSkusCount() { + if (skusBuilder_ == null) { + return skus_.size(); + } else { + return skusBuilder_.getCount(); + } + } + /** + * + * + *
          +     * The list of SKUs.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Sku skus = 1; + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Sku getSkus(int index) { + if (skusBuilder_ == null) { + return skus_.get(index); + } else { + return skusBuilder_.getMessage(index); + } + } + /** + * + * + *
          +     * The list of SKUs.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Sku skus = 1; + */ + public Builder setSkus(int index, com.google.cloud.gdchardwaremanagement.v1alpha.Sku value) { + if (skusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkusIsMutable(); + skus_.set(index, value); + onChanged(); + } else { + skusBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
          +     * The list of SKUs.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Sku skus = 1; + */ + public Builder setSkus( + int index, com.google.cloud.gdchardwaremanagement.v1alpha.Sku.Builder builderForValue) { + if (skusBuilder_ == null) { + ensureSkusIsMutable(); + skus_.set(index, builderForValue.build()); + onChanged(); + } else { + skusBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * The list of SKUs.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Sku skus = 1; + */ + public Builder addSkus(com.google.cloud.gdchardwaremanagement.v1alpha.Sku value) { + if (skusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkusIsMutable(); + skus_.add(value); + onChanged(); + } else { + skusBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
          +     * The list of SKUs.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Sku skus = 1; + */ + public Builder addSkus(int index, com.google.cloud.gdchardwaremanagement.v1alpha.Sku value) { + if (skusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkusIsMutable(); + skus_.add(index, value); + onChanged(); + } else { + skusBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
          +     * The list of SKUs.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Sku skus = 1; + */ + public Builder addSkus( + com.google.cloud.gdchardwaremanagement.v1alpha.Sku.Builder builderForValue) { + if (skusBuilder_ == null) { + ensureSkusIsMutable(); + skus_.add(builderForValue.build()); + onChanged(); + } else { + skusBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * The list of SKUs.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Sku skus = 1; + */ + public Builder addSkus( + int index, com.google.cloud.gdchardwaremanagement.v1alpha.Sku.Builder builderForValue) { + if (skusBuilder_ == null) { + ensureSkusIsMutable(); + skus_.add(index, builderForValue.build()); + onChanged(); + } else { + skusBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * The list of SKUs.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Sku skus = 1; + */ + public Builder addAllSkus( + java.lang.Iterable values) { + if (skusBuilder_ == null) { + ensureSkusIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, skus_); + onChanged(); + } else { + skusBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
          +     * The list of SKUs.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Sku skus = 1; + */ + public Builder clearSkus() { + if (skusBuilder_ == null) { + skus_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + skusBuilder_.clear(); + } + return this; + } + /** + * + * + *
          +     * The list of SKUs.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Sku skus = 1; + */ + public Builder removeSkus(int index) { + if (skusBuilder_ == null) { + ensureSkusIsMutable(); + skus_.remove(index); + onChanged(); + } else { + skusBuilder_.remove(index); + } + return this; + } + /** + * + * + *
          +     * The list of SKUs.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Sku skus = 1; + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Sku.Builder getSkusBuilder(int index) { + return getSkusFieldBuilder().getBuilder(index); + } + /** + * + * + *
          +     * The list of SKUs.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Sku skus = 1; + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.SkuOrBuilder getSkusOrBuilder(int index) { + if (skusBuilder_ == null) { + return skus_.get(index); + } else { + return skusBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
          +     * The list of SKUs.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Sku skus = 1; + */ + public java.util.List + getSkusOrBuilderList() { + if (skusBuilder_ != null) { + return skusBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(skus_); + } + } + /** + * + * + *
          +     * The list of SKUs.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Sku skus = 1; + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Sku.Builder addSkusBuilder() { + return getSkusFieldBuilder() + .addBuilder(com.google.cloud.gdchardwaremanagement.v1alpha.Sku.getDefaultInstance()); + } + /** + * + * + *
          +     * The list of SKUs.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Sku skus = 1; + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Sku.Builder addSkusBuilder(int index) { + return getSkusFieldBuilder() + .addBuilder( + index, com.google.cloud.gdchardwaremanagement.v1alpha.Sku.getDefaultInstance()); + } + /** + * + * + *
          +     * The list of SKUs.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Sku skus = 1; + */ + public java.util.List + getSkusBuilderList() { + return getSkusFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Sku, + com.google.cloud.gdchardwaremanagement.v1alpha.Sku.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.SkuOrBuilder> + getSkusFieldBuilder() { + if (skusBuilder_ == null) { + skusBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Sku, + com.google.cloud.gdchardwaremanagement.v1alpha.Sku.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.SkuOrBuilder>( + skus_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + skus_ = null; + } + return skusBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
          +     * A token identifying a page of results the server should return.
          +     * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * A token identifying a page of results the server should return.
          +     * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * A token identifying a page of results the server should return.
          +     * 
          + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * A token identifying a page of results the server should return.
          +     * 
          + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
          +     * A token identifying a page of results the server should return.
          +     * 
          + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSkusResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSkusResponseOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSkusResponseOrBuilder.java new file mode 100644 index 000000000000..a268087080f6 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListSkusResponseOrBuilder.java @@ -0,0 +1,154 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface ListSkusResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * The list of SKUs.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Sku skus = 1; + */ + java.util.List getSkusList(); + /** + * + * + *
          +   * The list of SKUs.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Sku skus = 1; + */ + com.google.cloud.gdchardwaremanagement.v1alpha.Sku getSkus(int index); + /** + * + * + *
          +   * The list of SKUs.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Sku skus = 1; + */ + int getSkusCount(); + /** + * + * + *
          +   * The list of SKUs.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Sku skus = 1; + */ + java.util.List + getSkusOrBuilderList(); + /** + * + * + *
          +   * The list of SKUs.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Sku skus = 1; + */ + com.google.cloud.gdchardwaremanagement.v1alpha.SkuOrBuilder getSkusOrBuilder(int index); + + /** + * + * + *
          +   * A token identifying a page of results the server should return.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
          +   * A token identifying a page of results the server should return.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListZonesRequest.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListZonesRequest.java new file mode 100644 index 000000000000..88e4a9d8ae5d --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListZonesRequest.java @@ -0,0 +1,1297 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * A request to list zones.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest} + */ +public final class ListZonesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest) + ListZonesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListZonesRequest.newBuilder() to construct. + private ListZonesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListZonesRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListZonesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListZonesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListZonesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
          +   * Required. The project and location to list zones in.
          +   * Format: `projects/{project}/locations/{location}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
          +   * Required. The project and location to list zones in.
          +   * Format: `projects/{project}/locations/{location}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
          +   * Optional. Requested page size. Server may return fewer items than
          +   * requested. If unspecified, server will pick an appropriate default.
          +   * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
          +   * Optional. A token identifying a page of results the server should return.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. A token identifying a page of results the server should return.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
          +   * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +   * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +   * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + /** + * + * + *
          +   * Optional. Hint for how to order the results.
          +   * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. Hint for how to order the results.
          +   * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest other = + (com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * A request to list zones.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest) + com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListZonesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListZonesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest.Builder.class); + } + + // Construct using com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListZonesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest build() { + com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest result = + new com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest) { + return mergeFrom((com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
          +     * Required. The project and location to list zones in.
          +     * Format: `projects/{project}/locations/{location}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Required. The project and location to list zones in.
          +     * Format: `projects/{project}/locations/{location}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Required. The project and location to list zones in.
          +     * Format: `projects/{project}/locations/{location}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The project and location to list zones in.
          +     * Format: `projects/{project}/locations/{location}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The project and location to list zones in.
          +     * Format: `projects/{project}/locations/{location}`
          +     * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
          +     * Optional. Requested page size. Server may return fewer items than
          +     * requested. If unspecified, server will pick an appropriate default.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
          +     * Optional. Requested page size. Server may return fewer items than
          +     * requested. If unspecified, server will pick an appropriate default.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Requested page size. Server may return fewer items than
          +     * requested. If unspecified, server will pick an appropriate default.
          +     * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
          +     * Optional. A token identifying a page of results the server should return.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. A token identifying a page of results the server should return.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. A token identifying a page of results the server should return.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. A token identifying a page of results the server should return.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. A token identifying a page of results the server should return.
          +     * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
          +     * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +     * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + /** + * + * + *
          +     * Optional. Hint for how to order the results.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. Hint for how to order the results.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. Hint for how to order the results.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Hint for how to order the results.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Hint for how to order the results.
          +     * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListZonesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListZonesRequestOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListZonesRequestOrBuilder.java new file mode 100644 index 000000000000..4d208de00f9d --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListZonesRequestOrBuilder.java @@ -0,0 +1,146 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface ListZonesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The project and location to list zones in.
          +   * Format: `projects/{project}/locations/{location}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
          +   * Required. The project and location to list zones in.
          +   * Format: `projects/{project}/locations/{location}`
          +   * 
          + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
          +   * Optional. Requested page size. Server may return fewer items than
          +   * requested. If unspecified, server will pick an appropriate default.
          +   * 
          + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
          +   * Optional. A token identifying a page of results the server should return.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
          +   * Optional. A token identifying a page of results the server should return.
          +   * 
          + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
          +   * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +   * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
          +   * Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160).
          +   * 
          + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
          +   * Optional. Hint for how to order the results.
          +   * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + * + * + *
          +   * Optional. Hint for how to order the results.
          +   * 
          + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListZonesResponse.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListZonesResponse.java new file mode 100644 index 000000000000..540913ba02be --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListZonesResponse.java @@ -0,0 +1,1408 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * A list of zones.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse} + */ +public final class ListZonesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse) + ListZonesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListZonesResponse.newBuilder() to construct. + private ListZonesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListZonesResponse() { + zones_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListZonesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListZonesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListZonesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse.class, + com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse.Builder.class); + } + + public static final int ZONES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List zones_; + /** + * + * + *
          +   * The list of zones.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Zone zones = 1; + */ + @java.lang.Override + public java.util.List getZonesList() { + return zones_; + } + /** + * + * + *
          +   * The list of zones.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Zone zones = 1; + */ + @java.lang.Override + public java.util.List + getZonesOrBuilderList() { + return zones_; + } + /** + * + * + *
          +   * The list of zones.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Zone zones = 1; + */ + @java.lang.Override + public int getZonesCount() { + return zones_.size(); + } + /** + * + * + *
          +   * The list of zones.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Zone zones = 1; + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Zone getZones(int index) { + return zones_.get(index); + } + /** + * + * + *
          +   * The list of zones.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Zone zones = 1; + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ZoneOrBuilder getZonesOrBuilder(int index) { + return zones_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
          +   * A token identifying a page of results the server should return.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
          +   * A token identifying a page of results the server should return.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < zones_.size(); i++) { + output.writeMessage(1, zones_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < zones_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, zones_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse other = + (com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse) obj; + + if (!getZonesList().equals(other.getZonesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getZonesCount() > 0) { + hash = (37 * hash) + ZONES_FIELD_NUMBER; + hash = (53 * hash) + getZonesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * A list of zones.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse) + com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListZonesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListZonesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse.class, + com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse.Builder.class); + } + + // Construct using com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (zonesBuilder_ == null) { + zones_ = java.util.Collections.emptyList(); + } else { + zones_ = null; + zonesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListZonesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse build() { + com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse result = + new com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse result) { + if (zonesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + zones_ = java.util.Collections.unmodifiableList(zones_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.zones_ = zones_; + } else { + result.zones_ = zonesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse) { + return mergeFrom((com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse.getDefaultInstance()) + return this; + if (zonesBuilder_ == null) { + if (!other.zones_.isEmpty()) { + if (zones_.isEmpty()) { + zones_ = other.zones_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureZonesIsMutable(); + zones_.addAll(other.zones_); + } + onChanged(); + } + } else { + if (!other.zones_.isEmpty()) { + if (zonesBuilder_.isEmpty()) { + zonesBuilder_.dispose(); + zonesBuilder_ = null; + zones_ = other.zones_; + bitField0_ = (bitField0_ & ~0x00000001); + zonesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getZonesFieldBuilder() + : null; + } else { + zonesBuilder_.addAllMessages(other.zones_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.gdchardwaremanagement.v1alpha.Zone m = + input.readMessage( + com.google.cloud.gdchardwaremanagement.v1alpha.Zone.parser(), + extensionRegistry); + if (zonesBuilder_ == null) { + ensureZonesIsMutable(); + zones_.add(m); + } else { + zonesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List zones_ = + java.util.Collections.emptyList(); + + private void ensureZonesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + zones_ = + new java.util.ArrayList(zones_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Zone, + com.google.cloud.gdchardwaremanagement.v1alpha.Zone.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.ZoneOrBuilder> + zonesBuilder_; + + /** + * + * + *
          +     * The list of zones.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Zone zones = 1; + */ + public java.util.List getZonesList() { + if (zonesBuilder_ == null) { + return java.util.Collections.unmodifiableList(zones_); + } else { + return zonesBuilder_.getMessageList(); + } + } + /** + * + * + *
          +     * The list of zones.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Zone zones = 1; + */ + public int getZonesCount() { + if (zonesBuilder_ == null) { + return zones_.size(); + } else { + return zonesBuilder_.getCount(); + } + } + /** + * + * + *
          +     * The list of zones.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Zone zones = 1; + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Zone getZones(int index) { + if (zonesBuilder_ == null) { + return zones_.get(index); + } else { + return zonesBuilder_.getMessage(index); + } + } + /** + * + * + *
          +     * The list of zones.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Zone zones = 1; + */ + public Builder setZones(int index, com.google.cloud.gdchardwaremanagement.v1alpha.Zone value) { + if (zonesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureZonesIsMutable(); + zones_.set(index, value); + onChanged(); + } else { + zonesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
          +     * The list of zones.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Zone zones = 1; + */ + public Builder setZones( + int index, com.google.cloud.gdchardwaremanagement.v1alpha.Zone.Builder builderForValue) { + if (zonesBuilder_ == null) { + ensureZonesIsMutable(); + zones_.set(index, builderForValue.build()); + onChanged(); + } else { + zonesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * The list of zones.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Zone zones = 1; + */ + public Builder addZones(com.google.cloud.gdchardwaremanagement.v1alpha.Zone value) { + if (zonesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureZonesIsMutable(); + zones_.add(value); + onChanged(); + } else { + zonesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
          +     * The list of zones.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Zone zones = 1; + */ + public Builder addZones(int index, com.google.cloud.gdchardwaremanagement.v1alpha.Zone value) { + if (zonesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureZonesIsMutable(); + zones_.add(index, value); + onChanged(); + } else { + zonesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
          +     * The list of zones.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Zone zones = 1; + */ + public Builder addZones( + com.google.cloud.gdchardwaremanagement.v1alpha.Zone.Builder builderForValue) { + if (zonesBuilder_ == null) { + ensureZonesIsMutable(); + zones_.add(builderForValue.build()); + onChanged(); + } else { + zonesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * The list of zones.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Zone zones = 1; + */ + public Builder addZones( + int index, com.google.cloud.gdchardwaremanagement.v1alpha.Zone.Builder builderForValue) { + if (zonesBuilder_ == null) { + ensureZonesIsMutable(); + zones_.add(index, builderForValue.build()); + onChanged(); + } else { + zonesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * The list of zones.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Zone zones = 1; + */ + public Builder addAllZones( + java.lang.Iterable values) { + if (zonesBuilder_ == null) { + ensureZonesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, zones_); + onChanged(); + } else { + zonesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
          +     * The list of zones.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Zone zones = 1; + */ + public Builder clearZones() { + if (zonesBuilder_ == null) { + zones_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + zonesBuilder_.clear(); + } + return this; + } + /** + * + * + *
          +     * The list of zones.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Zone zones = 1; + */ + public Builder removeZones(int index) { + if (zonesBuilder_ == null) { + ensureZonesIsMutable(); + zones_.remove(index); + onChanged(); + } else { + zonesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
          +     * The list of zones.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Zone zones = 1; + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Zone.Builder getZonesBuilder(int index) { + return getZonesFieldBuilder().getBuilder(index); + } + /** + * + * + *
          +     * The list of zones.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Zone zones = 1; + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.ZoneOrBuilder getZonesOrBuilder( + int index) { + if (zonesBuilder_ == null) { + return zones_.get(index); + } else { + return zonesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
          +     * The list of zones.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Zone zones = 1; + */ + public java.util.List + getZonesOrBuilderList() { + if (zonesBuilder_ != null) { + return zonesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(zones_); + } + } + /** + * + * + *
          +     * The list of zones.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Zone zones = 1; + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Zone.Builder addZonesBuilder() { + return getZonesFieldBuilder() + .addBuilder(com.google.cloud.gdchardwaremanagement.v1alpha.Zone.getDefaultInstance()); + } + /** + * + * + *
          +     * The list of zones.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Zone zones = 1; + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Zone.Builder addZonesBuilder(int index) { + return getZonesFieldBuilder() + .addBuilder( + index, com.google.cloud.gdchardwaremanagement.v1alpha.Zone.getDefaultInstance()); + } + /** + * + * + *
          +     * The list of zones.
          +     * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Zone zones = 1; + */ + public java.util.List + getZonesBuilderList() { + return getZonesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Zone, + com.google.cloud.gdchardwaremanagement.v1alpha.Zone.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.ZoneOrBuilder> + getZonesFieldBuilder() { + if (zonesBuilder_ == null) { + zonesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Zone, + com.google.cloud.gdchardwaremanagement.v1alpha.Zone.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.ZoneOrBuilder>( + zones_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + zones_ = null; + } + return zonesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
          +     * A token identifying a page of results the server should return.
          +     * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * A token identifying a page of results the server should return.
          +     * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * A token identifying a page of results the server should return.
          +     * 
          + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * A token identifying a page of results the server should return.
          +     * 
          + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
          +     * A token identifying a page of results the server should return.
          +     * 
          + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + /** + * + * + *
          +     * Locations that could not be reached.
          +     * 
          + * + * repeated string unreachable = 3; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListZonesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListZonesResponseOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListZonesResponseOrBuilder.java new file mode 100644 index 000000000000..6bbde7b6da55 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ListZonesResponseOrBuilder.java @@ -0,0 +1,154 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface ListZonesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * The list of zones.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Zone zones = 1; + */ + java.util.List getZonesList(); + /** + * + * + *
          +   * The list of zones.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Zone zones = 1; + */ + com.google.cloud.gdchardwaremanagement.v1alpha.Zone getZones(int index); + /** + * + * + *
          +   * The list of zones.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Zone zones = 1; + */ + int getZonesCount(); + /** + * + * + *
          +   * The list of zones.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Zone zones = 1; + */ + java.util.List + getZonesOrBuilderList(); + /** + * + * + *
          +   * The list of zones.
          +   * 
          + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Zone zones = 1; + */ + com.google.cloud.gdchardwaremanagement.v1alpha.ZoneOrBuilder getZonesOrBuilder(int index); + + /** + * + * + *
          +   * A token identifying a page of results the server should return.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
          +   * A token identifying a page of results the server should return.
          +   * 
          + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + /** + * + * + *
          +   * Locations that could not be reached.
          +   * 
          + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/LocationName.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/LocationName.java new file mode 100644 index 000000000000..5bcad270e26c --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/LocationName.java @@ -0,0 +1,192 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class LocationName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION = + PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + + @Deprecated + protected LocationName() { + project = null; + location = null; + } + + private LocationName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static LocationName of(String project, String location) { + return newBuilder().setProject(project).setLocation(location).build(); + } + + public static String format(String project, String location) { + return newBuilder().setProject(project).setLocation(location).build().toString(); + } + + public static LocationName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION.validatedMatch( + formattedString, "LocationName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (LocationName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION.instantiate("project", project, "location", location); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + LocationName that = ((LocationName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + return h; + } + + /** Builder for projects/{project}/locations/{location}. */ + public static class Builder { + private String project; + private String location; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + private Builder(LocationName locationName) { + this.project = locationName.project; + this.location = locationName.location; + } + + public LocationName build() { + return new LocationName(this); + } + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/OperationMetadata.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/OperationMetadata.java new file mode 100644 index 000000000000..1a76e205595f --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/OperationMetadata.java @@ -0,0 +1,1856 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * Represents the metadata of a long-running operation.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata} + */ +public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata) + OperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use OperationMetadata.newBuilder() to construct. + private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private OperationMetadata() { + target_ = ""; + verb_ = ""; + statusMessage_ = ""; + apiVersion_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OperationMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_OperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_OperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata.class, + com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata.Builder.class); + } + + private int bitField0_; + public static final int CREATE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
          +   * Output only. The time the operation was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
          +   * Output only. The time the operation was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
          +   * Output only. The time the operation was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int END_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp endTime_; + /** + * + * + *
          +   * Output only. The time the operation finished running.
          +   * 
          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
          +   * Output only. The time the operation finished running.
          +   * 
          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + * + * + *
          +   * Output only. The time the operation finished running.
          +   * 
          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + public static final int TARGET_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object target_ = ""; + /** + * + * + *
          +   * Output only. Server-defined resource path for the target of the operation.
          +   * 
          + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + @java.lang.Override + public java.lang.String getTarget() { + java.lang.Object ref = target_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + target_ = s; + return s; + } + } + /** + * + * + *
          +   * Output only. Server-defined resource path for the target of the operation.
          +   * 
          + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetBytes() { + java.lang.Object ref = target_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERB_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object verb_ = ""; + /** + * + * + *
          +   * Output only. The verb executed by the operation.
          +   * 
          + * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The verb. + */ + @java.lang.Override + public java.lang.String getVerb() { + java.lang.Object ref = verb_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + verb_ = s; + return s; + } + } + /** + * + * + *
          +   * Output only. The verb executed by the operation.
          +   * 
          + * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for verb. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVerbBytes() { + java.lang.Object ref = verb_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + verb_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object statusMessage_ = ""; + /** + * + * + *
          +   * Output only. Human-readable status of the operation, if any.
          +   * 
          + * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The statusMessage. + */ + @java.lang.Override + public java.lang.String getStatusMessage() { + java.lang.Object ref = statusMessage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusMessage_ = s; + return s; + } + } + /** + * + * + *
          +   * Output only. Human-readable status of the operation, if any.
          +   * 
          + * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for statusMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStatusMessageBytes() { + java.lang.Object ref = statusMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; + private boolean requestedCancellation_ = false; + /** + * + * + *
          +   * Output only. Identifies whether the user has requested cancellation
          +   * of the operation. Operations that have been cancelled successfully
          +   * have [Operation.error][] value with a
          +   * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
          +   * `Code.CANCELLED`.
          +   * 
          + * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The requestedCancellation. + */ + @java.lang.Override + public boolean getRequestedCancellation() { + return requestedCancellation_; + } + + public static final int API_VERSION_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object apiVersion_ = ""; + /** + * + * + *
          +   * Output only. API version used to start the operation.
          +   * 
          + * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The apiVersion. + */ + @java.lang.Override + public java.lang.String getApiVersion() { + java.lang.Object ref = apiVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + apiVersion_ = s; + return s; + } + } + /** + * + * + *
          +   * Output only. API version used to start the operation.
          +   * 
          + * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for apiVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getApiVersionBytes() { + java.lang.Object ref = apiVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + apiVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getEndTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, target_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(verb_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, verb_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, statusMessage_); + } + if (requestedCancellation_ != false) { + output.writeBool(6, requestedCancellation_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, apiVersion_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(verb_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, verb_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); + } + if (requestedCancellation_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, requestedCancellation_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata other = + (com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata) obj; + + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getTarget().equals(other.getTarget())) return false; + if (!getVerb().equals(other.getVerb())) return false; + if (!getStatusMessage().equals(other.getStatusMessage())) return false; + if (getRequestedCancellation() != other.getRequestedCancellation()) return false; + if (!getApiVersion().equals(other.getApiVersion())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (37 * hash) + TARGET_FIELD_NUMBER; + hash = (53 * hash) + getTarget().hashCode(); + hash = (37 * hash) + VERB_FIELD_NUMBER; + hash = (53 * hash) + getVerb().hashCode(); + hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getStatusMessage().hashCode(); + hash = (37 * hash) + REQUESTED_CANCELLATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequestedCancellation()); + hash = (37 * hash) + API_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getApiVersion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * Represents the metadata of a long-running operation.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata) + com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_OperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_OperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata.class, + com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata.Builder.class); + } + + // Construct using com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + getEndTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + target_ = ""; + verb_ = ""; + statusMessage_ = ""; + requestedCancellation_ = false; + apiVersion_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_OperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata build() { + com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata result = + new com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.target_ = target_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.verb_ = verb_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.statusMessage_ = statusMessage_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.requestedCancellation_ = requestedCancellation_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.apiVersion_ = apiVersion_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata) { + return mergeFrom((com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata.getDefaultInstance()) + return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (!other.getTarget().isEmpty()) { + target_ = other.target_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getVerb().isEmpty()) { + verb_ = other.verb_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getStatusMessage().isEmpty()) { + statusMessage_ = other.statusMessage_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getRequestedCancellation() != false) { + setRequestedCancellation(other.getRequestedCancellation()); + } + if (!other.getApiVersion().isEmpty()) { + apiVersion_ = other.apiVersion_; + bitField0_ |= 0x00000040; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + verb_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + statusMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + requestedCancellation_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + apiVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
          +     * Output only. The time the operation was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
          +     * Output only. The time the operation was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Output only. The time the operation was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. The time the operation was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. The time the operation was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Output only. The time the operation was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000001); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. The time the operation was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Output only. The time the operation was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
          +     * Output only. The time the operation was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + /** + * + * + *
          +     * Output only. The time the operation finished running.
          +     * 
          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
          +     * Output only. The time the operation finished running.
          +     * 
          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Output only. The time the operation finished running.
          +     * 
          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. The time the operation finished running.
          +     * 
          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. The time the operation finished running.
          +     * 
          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Output only. The time the operation finished running.
          +     * 
          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000002); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. The time the operation finished running.
          +     * 
          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Output only. The time the operation finished running.
          +     * 
          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + * + * + *
          +     * Output only. The time the operation finished running.
          +     * 
          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + private java.lang.Object target_ = ""; + /** + * + * + *
          +     * Output only. Server-defined resource path for the target of the operation.
          +     * 
          + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + public java.lang.String getTarget() { + java.lang.Object ref = target_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + target_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Output only. Server-defined resource path for the target of the operation.
          +     * 
          + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + public com.google.protobuf.ByteString getTargetBytes() { + java.lang.Object ref = target_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Output only. Server-defined resource path for the target of the operation.
          +     * 
          + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The target to set. + * @return This builder for chaining. + */ + public Builder setTarget(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Server-defined resource path for the target of the operation.
          +     * 
          + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTarget() { + target_ = getDefaultInstance().getTarget(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Server-defined resource path for the target of the operation.
          +     * 
          + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for target to set. + * @return This builder for chaining. + */ + public Builder setTargetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object verb_ = ""; + /** + * + * + *
          +     * Output only. The verb executed by the operation.
          +     * 
          + * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The verb. + */ + public java.lang.String getVerb() { + java.lang.Object ref = verb_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + verb_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Output only. The verb executed by the operation.
          +     * 
          + * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for verb. + */ + public com.google.protobuf.ByteString getVerbBytes() { + java.lang.Object ref = verb_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + verb_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Output only. The verb executed by the operation.
          +     * 
          + * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The verb to set. + * @return This builder for chaining. + */ + public Builder setVerb(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + verb_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. The verb executed by the operation.
          +     * 
          + * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearVerb() { + verb_ = getDefaultInstance().getVerb(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. The verb executed by the operation.
          +     * 
          + * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for verb to set. + * @return This builder for chaining. + */ + public Builder setVerbBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object statusMessage_ = ""; + /** + * + * + *
          +     * Output only. Human-readable status of the operation, if any.
          +     * 
          + * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The statusMessage. + */ + public java.lang.String getStatusMessage() { + java.lang.Object ref = statusMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Output only. Human-readable status of the operation, if any.
          +     * 
          + * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for statusMessage. + */ + public com.google.protobuf.ByteString getStatusMessageBytes() { + java.lang.Object ref = statusMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Output only. Human-readable status of the operation, if any.
          +     * 
          + * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The statusMessage to set. + * @return This builder for chaining. + */ + public Builder setStatusMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + statusMessage_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Human-readable status of the operation, if any.
          +     * 
          + * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearStatusMessage() { + statusMessage_ = getDefaultInstance().getStatusMessage(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Human-readable status of the operation, if any.
          +     * 
          + * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for statusMessage to set. + * @return This builder for chaining. + */ + public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusMessage_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private boolean requestedCancellation_; + /** + * + * + *
          +     * Output only. Identifies whether the user has requested cancellation
          +     * of the operation. Operations that have been cancelled successfully
          +     * have [Operation.error][] value with a
          +     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
          +     * `Code.CANCELLED`.
          +     * 
          + * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The requestedCancellation. + */ + @java.lang.Override + public boolean getRequestedCancellation() { + return requestedCancellation_; + } + /** + * + * + *
          +     * Output only. Identifies whether the user has requested cancellation
          +     * of the operation. Operations that have been cancelled successfully
          +     * have [Operation.error][] value with a
          +     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
          +     * `Code.CANCELLED`.
          +     * 
          + * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The requestedCancellation to set. + * @return This builder for chaining. + */ + public Builder setRequestedCancellation(boolean value) { + + requestedCancellation_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Identifies whether the user has requested cancellation
          +     * of the operation. Operations that have been cancelled successfully
          +     * have [Operation.error][] value with a
          +     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
          +     * `Code.CANCELLED`.
          +     * 
          + * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRequestedCancellation() { + bitField0_ = (bitField0_ & ~0x00000020); + requestedCancellation_ = false; + onChanged(); + return this; + } + + private java.lang.Object apiVersion_ = ""; + /** + * + * + *
          +     * Output only. API version used to start the operation.
          +     * 
          + * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The apiVersion. + */ + public java.lang.String getApiVersion() { + java.lang.Object ref = apiVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + apiVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Output only. API version used to start the operation.
          +     * 
          + * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for apiVersion. + */ + public com.google.protobuf.ByteString getApiVersionBytes() { + java.lang.Object ref = apiVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + apiVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Output only. API version used to start the operation.
          +     * 
          + * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The apiVersion to set. + * @return This builder for chaining. + */ + public Builder setApiVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + apiVersion_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. API version used to start the operation.
          +     * 
          + * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearApiVersion() { + apiVersion_ = getDefaultInstance().getApiVersion(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. API version used to start the operation.
          +     * 
          + * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for apiVersion to set. + * @return This builder for chaining. + */ + public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/OperationMetadataOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/OperationMetadataOrBuilder.java new file mode 100644 index 000000000000..fa904f8782d8 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/OperationMetadataOrBuilder.java @@ -0,0 +1,219 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface OperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Output only. The time the operation was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
          +   * Output only. The time the operation was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
          +   * Output only. The time the operation was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
          +   * Output only. The time the operation finished running.
          +   * 
          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + /** + * + * + *
          +   * Output only. The time the operation finished running.
          +   * 
          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + /** + * + * + *
          +   * Output only. The time the operation finished running.
          +   * 
          + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + * + * + *
          +   * Output only. Server-defined resource path for the target of the operation.
          +   * 
          + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + java.lang.String getTarget(); + /** + * + * + *
          +   * Output only. Server-defined resource path for the target of the operation.
          +   * 
          + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + com.google.protobuf.ByteString getTargetBytes(); + + /** + * + * + *
          +   * Output only. The verb executed by the operation.
          +   * 
          + * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The verb. + */ + java.lang.String getVerb(); + /** + * + * + *
          +   * Output only. The verb executed by the operation.
          +   * 
          + * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for verb. + */ + com.google.protobuf.ByteString getVerbBytes(); + + /** + * + * + *
          +   * Output only. Human-readable status of the operation, if any.
          +   * 
          + * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The statusMessage. + */ + java.lang.String getStatusMessage(); + /** + * + * + *
          +   * Output only. Human-readable status of the operation, if any.
          +   * 
          + * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for statusMessage. + */ + com.google.protobuf.ByteString getStatusMessageBytes(); + + /** + * + * + *
          +   * Output only. Identifies whether the user has requested cancellation
          +   * of the operation. Operations that have been cancelled successfully
          +   * have [Operation.error][] value with a
          +   * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
          +   * `Code.CANCELLED`.
          +   * 
          + * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The requestedCancellation. + */ + boolean getRequestedCancellation(); + + /** + * + * + *
          +   * Output only. API version used to start the operation.
          +   * 
          + * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The apiVersion. + */ + java.lang.String getApiVersion(); + /** + * + * + *
          +   * Output only. API version used to start the operation.
          +   * 
          + * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for apiVersion. + */ + com.google.protobuf.ByteString getApiVersionBytes(); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Order.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Order.java new file mode 100644 index 000000000000..73e2e28d43d7 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Order.java @@ -0,0 +1,5180 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * An order for GDC hardware.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.Order} + */ +public final class Order extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.Order) + OrderOrBuilder { + private static final long serialVersionUID = 0L; + // Use Order.newBuilder() to construct. + private Order(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Order() { + name_ = ""; + displayName_ = ""; + state_ = 0; + targetWorkloads_ = com.google.protobuf.LazyStringArrayList.emptyList(); + customerMotivation_ = ""; + regionCode_ = ""; + orderFormUri_ = ""; + type_ = 0; + billingId_ = ""; + existingHardware_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Order(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Order_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Order_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.Order.class, + com.google.cloud.gdchardwaremanagement.v1alpha.Order.Builder.class); + } + + /** + * + * + *
          +   * Valid states of an order.
          +   * 
          + * + * Protobuf enum {@code google.cloud.gdchardwaremanagement.v1alpha.Order.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
          +     * State of the order is unspecified.
          +     * 
          + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
          +     * Order is being drafted by the customer and has not been submitted yet.
          +     * 
          + * + * DRAFT = 1; + */ + DRAFT(1), + /** + * + * + *
          +     * Order has been submitted to Google.
          +     * 
          + * + * SUBMITTED = 2; + */ + SUBMITTED(2), + /** + * + * + *
          +     * Order has been accepted by Google.
          +     * 
          + * + * ACCEPTED = 3; + */ + ACCEPTED(3), + /** + * + * + *
          +     * Order needs more information from the customer.
          +     * 
          + * + * ADDITIONAL_INFO_NEEDED = 4; + */ + ADDITIONAL_INFO_NEEDED(4), + /** + * + * + *
          +     * Google has initiated building hardware for the order.
          +     * 
          + * + * BUILDING = 5; + */ + BUILDING(5), + /** + * + * + *
          +     * The hardware has been built and is being shipped.
          +     * 
          + * + * SHIPPING = 6; + */ + SHIPPING(6), + /** + * + * + *
          +     * The hardware is being installed.
          +     * 
          + * + * INSTALLING = 7; + */ + INSTALLING(7), + /** + * + * + *
          +     * An error occurred in processing the order and customer intervention is
          +     * required.
          +     * 
          + * + * FAILED = 8; + */ + FAILED(8), + /** + * + * + *
          +     * Order has been partially completed i.e., some hardware have been
          +     * delivered and installed.
          +     * 
          + * + * PARTIALLY_COMPLETED = 9; + */ + PARTIALLY_COMPLETED(9), + /** + * + * + *
          +     * Order has been completed.
          +     * 
          + * + * COMPLETED = 10; + */ + COMPLETED(10), + /** + * + * + *
          +     * Order has been cancelled.
          +     * 
          + * + * CANCELLED = 11; + */ + CANCELLED(11), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
          +     * State of the order is unspecified.
          +     * 
          + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
          +     * Order is being drafted by the customer and has not been submitted yet.
          +     * 
          + * + * DRAFT = 1; + */ + public static final int DRAFT_VALUE = 1; + /** + * + * + *
          +     * Order has been submitted to Google.
          +     * 
          + * + * SUBMITTED = 2; + */ + public static final int SUBMITTED_VALUE = 2; + /** + * + * + *
          +     * Order has been accepted by Google.
          +     * 
          + * + * ACCEPTED = 3; + */ + public static final int ACCEPTED_VALUE = 3; + /** + * + * + *
          +     * Order needs more information from the customer.
          +     * 
          + * + * ADDITIONAL_INFO_NEEDED = 4; + */ + public static final int ADDITIONAL_INFO_NEEDED_VALUE = 4; + /** + * + * + *
          +     * Google has initiated building hardware for the order.
          +     * 
          + * + * BUILDING = 5; + */ + public static final int BUILDING_VALUE = 5; + /** + * + * + *
          +     * The hardware has been built and is being shipped.
          +     * 
          + * + * SHIPPING = 6; + */ + public static final int SHIPPING_VALUE = 6; + /** + * + * + *
          +     * The hardware is being installed.
          +     * 
          + * + * INSTALLING = 7; + */ + public static final int INSTALLING_VALUE = 7; + /** + * + * + *
          +     * An error occurred in processing the order and customer intervention is
          +     * required.
          +     * 
          + * + * FAILED = 8; + */ + public static final int FAILED_VALUE = 8; + /** + * + * + *
          +     * Order has been partially completed i.e., some hardware have been
          +     * delivered and installed.
          +     * 
          + * + * PARTIALLY_COMPLETED = 9; + */ + public static final int PARTIALLY_COMPLETED_VALUE = 9; + /** + * + * + *
          +     * Order has been completed.
          +     * 
          + * + * COMPLETED = 10; + */ + public static final int COMPLETED_VALUE = 10; + /** + * + * + *
          +     * Order has been cancelled.
          +     * 
          + * + * CANCELLED = 11; + */ + public static final int CANCELLED_VALUE = 11; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return DRAFT; + case 2: + return SUBMITTED; + case 3: + return ACCEPTED; + case 4: + return ADDITIONAL_INFO_NEEDED; + case 5: + return BUILDING; + case 6: + return SHIPPING; + case 7: + return INSTALLING; + case 8: + return FAILED; + case 9: + return PARTIALLY_COMPLETED; + case 10: + return COMPLETED; + case 11: + return CANCELLED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.Order.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.gdchardwaremanagement.v1alpha.Order.State) + } + + /** + * + * + *
          +   * Valid types of an Order.
          +   * 
          + * + * Protobuf enum {@code google.cloud.gdchardwaremanagement.v1alpha.Order.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
          +     * Type of the order is unspecified.
          +     * 
          + * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + * + * + *
          +     * Paid by the customer.
          +     * 
          + * + * PAID = 1; + */ + PAID(1), + /** + * + * + *
          +     * Proof of concept for the customer.
          +     * 
          + * + * POC = 2; + */ + POC(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
          +     * Type of the order is unspecified.
          +     * 
          + * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
          +     * Paid by the customer.
          +     * 
          + * + * PAID = 1; + */ + public static final int PAID_VALUE = 1; + /** + * + * + *
          +     * Proof of concept for the customer.
          +     * 
          + * + * POC = 2; + */ + public static final int POC_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Type valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Type forNumber(int value) { + switch (value) { + case 0: + return TYPE_UNSPECIFIED; + case 1: + return PAID; + case 2: + return POC; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.Order.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.gdchardwaremanagement.v1alpha.Order.Type) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
          +   * Identifier. Name of this order.
          +   * Format: `projects/{project}/locations/{location}/orders/{order}`
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
          +   * Identifier. Name of this order.
          +   * Format: `projects/{project}/locations/{location}/orders/{order}`
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
          +   * Optional. Display name of this order.
          +   * 
          + * + * string display_name = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. Display name of this order.
          +   * 
          + * + * string display_name = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
          +   * Output only. Time when this order was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
          +   * Output only. Time when this order was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
          +   * Output only. Time when this order was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
          +   * Output only. Time when this order was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
          +   * Output only. Time when this order was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
          +   * Output only. Time when this order was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int LABELS_FIELD_NUMBER = 4; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Order_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
          +   * Optional. Labels associated with this order as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
          +   * Optional. Labels associated with this order as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
          +   * Optional. Labels associated with this order as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
          +   * Optional. Labels associated with this order as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int STATE_FIELD_NUMBER = 5; + private int state_ = 0; + /** + * + * + *
          +   * Output only. State of this order. On order creation, state will be set to
          +   * DRAFT.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Order.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
          +   * Output only. State of this order. On order creation, state will be set to
          +   * DRAFT.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Order.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Order.State getState() { + com.google.cloud.gdchardwaremanagement.v1alpha.Order.State result = + com.google.cloud.gdchardwaremanagement.v1alpha.Order.State.forNumber(state_); + return result == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Order.State.UNRECOGNIZED + : result; + } + + public static final int ORGANIZATION_CONTACT_FIELD_NUMBER = 6; + private com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organizationContact_; + /** + * + * + *
          +   * Required. Customer contact information.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the organizationContact field is set. + */ + @java.lang.Override + public boolean hasOrganizationContact() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
          +   * Required. Customer contact information.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The organizationContact. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact + getOrganizationContact() { + return organizationContact_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact.getDefaultInstance() + : organizationContact_; + } + /** + * + * + *
          +   * Required. Customer contact information.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContactOrBuilder + getOrganizationContactOrBuilder() { + return organizationContact_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact.getDefaultInstance() + : organizationContact_; + } + + public static final int TARGET_WORKLOADS_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList targetWorkloads_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
          +   * Optional. Customer specified workloads of interest targeted by this order.
          +   * This must contain <= 20 elements and the length of each element must be <=
          +   * 50 characters.
          +   * 
          + * + * repeated string target_workloads = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the targetWorkloads. + */ + public com.google.protobuf.ProtocolStringList getTargetWorkloadsList() { + return targetWorkloads_; + } + /** + * + * + *
          +   * Optional. Customer specified workloads of interest targeted by this order.
          +   * This must contain <= 20 elements and the length of each element must be <=
          +   * 50 characters.
          +   * 
          + * + * repeated string target_workloads = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of targetWorkloads. + */ + public int getTargetWorkloadsCount() { + return targetWorkloads_.size(); + } + /** + * + * + *
          +   * Optional. Customer specified workloads of interest targeted by this order.
          +   * This must contain <= 20 elements and the length of each element must be <=
          +   * 50 characters.
          +   * 
          + * + * repeated string target_workloads = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The targetWorkloads at the given index. + */ + public java.lang.String getTargetWorkloads(int index) { + return targetWorkloads_.get(index); + } + /** + * + * + *
          +   * Optional. Customer specified workloads of interest targeted by this order.
          +   * This must contain <= 20 elements and the length of each element must be <=
          +   * 50 characters.
          +   * 
          + * + * repeated string target_workloads = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the targetWorkloads at the given index. + */ + public com.google.protobuf.ByteString getTargetWorkloadsBytes(int index) { + return targetWorkloads_.getByteString(index); + } + + public static final int CUSTOMER_MOTIVATION_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object customerMotivation_ = ""; + /** + * + * + *
          +   * Required. Information about the customer's motivation for this order. The
          +   * length of this field must be <= 1000 characters.
          +   * 
          + * + * string customer_motivation = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The customerMotivation. + */ + @java.lang.Override + public java.lang.String getCustomerMotivation() { + java.lang.Object ref = customerMotivation_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customerMotivation_ = s; + return s; + } + } + /** + * + * + *
          +   * Required. Information about the customer's motivation for this order. The
          +   * length of this field must be <= 1000 characters.
          +   * 
          + * + * string customer_motivation = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for customerMotivation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCustomerMotivationBytes() { + java.lang.Object ref = customerMotivation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customerMotivation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FULFILLMENT_TIME_FIELD_NUMBER = 9; + private com.google.protobuf.Timestamp fulfillmentTime_; + /** + * + * + *
          +   * Required. Customer specified deadline by when this order should be
          +   * fulfilled.
          +   * 
          + * + * + * .google.protobuf.Timestamp fulfillment_time = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the fulfillmentTime field is set. + */ + @java.lang.Override + public boolean hasFulfillmentTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
          +   * Required. Customer specified deadline by when this order should be
          +   * fulfilled.
          +   * 
          + * + * + * .google.protobuf.Timestamp fulfillment_time = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The fulfillmentTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getFulfillmentTime() { + return fulfillmentTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : fulfillmentTime_; + } + /** + * + * + *
          +   * Required. Customer specified deadline by when this order should be
          +   * fulfilled.
          +   * 
          + * + * + * .google.protobuf.Timestamp fulfillment_time = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getFulfillmentTimeOrBuilder() { + return fulfillmentTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : fulfillmentTime_; + } + + public static final int REGION_CODE_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object regionCode_ = ""; + /** + * + * + *
          +   * Required. [Unicode CLDR](http://cldr.unicode.org/) region code where this
          +   * order will be deployed. For a list of valid CLDR region codes, see the
          +   * [Language Subtag
          +   * Registry](https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry).
          +   * 
          + * + * string region_code = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The regionCode. + */ + @java.lang.Override + public java.lang.String getRegionCode() { + java.lang.Object ref = regionCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + regionCode_ = s; + return s; + } + } + /** + * + * + *
          +   * Required. [Unicode CLDR](http://cldr.unicode.org/) region code where this
          +   * order will be deployed. For a list of valid CLDR region codes, see the
          +   * [Language Subtag
          +   * Registry](https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry).
          +   * 
          + * + * string region_code = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for regionCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionCodeBytes() { + java.lang.Object ref = regionCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + regionCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_FORM_URI_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderFormUri_ = ""; + /** + * + * + *
          +   * Output only. Link to the order form.
          +   * 
          + * + * string order_form_uri = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The orderFormUri. + */ + @java.lang.Override + public java.lang.String getOrderFormUri() { + java.lang.Object ref = orderFormUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderFormUri_ = s; + return s; + } + } + /** + * + * + *
          +   * Output only. Link to the order form.
          +   * 
          + * + * string order_form_uri = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for orderFormUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderFormUriBytes() { + java.lang.Object ref = orderFormUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderFormUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 12; + private int type_ = 0; + /** + * + * + *
          +   * Output only. Type of this Order.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Order.Type type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
          +   * Output only. Type of this Order.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Order.Type type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Order.Type getType() { + com.google.cloud.gdchardwaremanagement.v1alpha.Order.Type result = + com.google.cloud.gdchardwaremanagement.v1alpha.Order.Type.forNumber(type_); + return result == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Order.Type.UNRECOGNIZED + : result; + } + + public static final int SUBMIT_TIME_FIELD_NUMBER = 14; + private com.google.protobuf.Timestamp submitTime_; + /** + * + * + *
          +   * Output only. Time when the order was submitted. Is auto-populated to the
          +   * current time when an order is submitted.
          +   * 
          + * + * .google.protobuf.Timestamp submit_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the submitTime field is set. + */ + @java.lang.Override + public boolean hasSubmitTime() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
          +   * Output only. Time when the order was submitted. Is auto-populated to the
          +   * current time when an order is submitted.
          +   * 
          + * + * .google.protobuf.Timestamp submit_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The submitTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getSubmitTime() { + return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + } + /** + * + * + *
          +   * Output only. Time when the order was submitted. Is auto-populated to the
          +   * current time when an order is submitted.
          +   * 
          + * + * .google.protobuf.Timestamp submit_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { + return submitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : submitTime_; + } + + public static final int BILLING_ID_FIELD_NUMBER = 15; + + @SuppressWarnings("serial") + private volatile java.lang.Object billingId_ = ""; + /** + * + * + *
          +   * Required. The Google Cloud Billing ID to be charged for this order.
          +   * 
          + * + * string billing_id = 15 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The billingId. + */ + @java.lang.Override + public java.lang.String getBillingId() { + java.lang.Object ref = billingId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + billingId_ = s; + return s; + } + } + /** + * + * + *
          +   * Required. The Google Cloud Billing ID to be charged for this order.
          +   * 
          + * + * string billing_id = 15 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for billingId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBillingIdBytes() { + java.lang.Object ref = billingId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + billingId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXISTING_HARDWARE_FIELD_NUMBER = 16; + + @SuppressWarnings("serial") + private java.util.List + existingHardware_; + /** + * + * + *
          +   * Optional. Existing hardware to be removed as part of this order.
          +   * Note: any hardware removed will be recycled unless otherwise agreed.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getExistingHardwareList() { + return existingHardware_; + } + /** + * + * + *
          +   * Optional. Existing hardware to be removed as part of this order.
          +   * Note: any hardware removed will be recycled unless otherwise agreed.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocationOrBuilder> + getExistingHardwareOrBuilderList() { + return existingHardware_; + } + /** + * + * + *
          +   * Optional. Existing hardware to be removed as part of this order.
          +   * Note: any hardware removed will be recycled unless otherwise agreed.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getExistingHardwareCount() { + return existingHardware_.size(); + } + /** + * + * + *
          +   * Optional. Existing hardware to be removed as part of this order.
          +   * Note: any hardware removed will be recycled unless otherwise agreed.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation getExistingHardware( + int index) { + return existingHardware_.get(index); + } + /** + * + * + *
          +   * Optional. Existing hardware to be removed as part of this order.
          +   * Note: any hardware removed will be recycled unless otherwise agreed.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocationOrBuilder + getExistingHardwareOrBuilder(int index) { + return existingHardware_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getUpdateTime()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + if (state_ + != com.google.cloud.gdchardwaremanagement.v1alpha.Order.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, state_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(6, getOrganizationContact()); + } + for (int i = 0; i < targetWorkloads_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, targetWorkloads_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customerMotivation_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, customerMotivation_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(9, getFulfillmentTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(regionCode_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, regionCode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderFormUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, orderFormUri_); + } + if (type_ + != com.google.cloud.gdchardwaremanagement.v1alpha.Order.Type.TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(12, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, displayName_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(14, getSubmitTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(billingId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 15, billingId_); + } + for (int i = 0; i < existingHardware_.size(); i++) { + output.writeMessage(16, existingHardware_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + } + if (state_ + != com.google.cloud.gdchardwaremanagement.v1alpha.Order.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getOrganizationContact()); + } + { + int dataSize = 0; + for (int i = 0; i < targetWorkloads_.size(); i++) { + dataSize += computeStringSizeNoTag(targetWorkloads_.getRaw(i)); + } + size += dataSize; + size += 1 * getTargetWorkloadsList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customerMotivation_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, customerMotivation_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getFulfillmentTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(regionCode_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, regionCode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderFormUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, orderFormUri_); + } + if (type_ + != com.google.cloud.gdchardwaremanagement.v1alpha.Order.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, displayName_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getSubmitTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(billingId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, billingId_); + } + for (int i = 0; i < existingHardware_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(16, existingHardware_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.Order)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.Order other = + (com.google.cloud.gdchardwaremanagement.v1alpha.Order) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (state_ != other.state_) return false; + if (hasOrganizationContact() != other.hasOrganizationContact()) return false; + if (hasOrganizationContact()) { + if (!getOrganizationContact().equals(other.getOrganizationContact())) return false; + } + if (!getTargetWorkloadsList().equals(other.getTargetWorkloadsList())) return false; + if (!getCustomerMotivation().equals(other.getCustomerMotivation())) return false; + if (hasFulfillmentTime() != other.hasFulfillmentTime()) return false; + if (hasFulfillmentTime()) { + if (!getFulfillmentTime().equals(other.getFulfillmentTime())) return false; + } + if (!getRegionCode().equals(other.getRegionCode())) return false; + if (!getOrderFormUri().equals(other.getOrderFormUri())) return false; + if (type_ != other.type_) return false; + if (hasSubmitTime() != other.hasSubmitTime()) return false; + if (hasSubmitTime()) { + if (!getSubmitTime().equals(other.getSubmitTime())) return false; + } + if (!getBillingId().equals(other.getBillingId())) return false; + if (!getExistingHardwareList().equals(other.getExistingHardwareList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (hasOrganizationContact()) { + hash = (37 * hash) + ORGANIZATION_CONTACT_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationContact().hashCode(); + } + if (getTargetWorkloadsCount() > 0) { + hash = (37 * hash) + TARGET_WORKLOADS_FIELD_NUMBER; + hash = (53 * hash) + getTargetWorkloadsList().hashCode(); + } + hash = (37 * hash) + CUSTOMER_MOTIVATION_FIELD_NUMBER; + hash = (53 * hash) + getCustomerMotivation().hashCode(); + if (hasFulfillmentTime()) { + hash = (37 * hash) + FULFILLMENT_TIME_FIELD_NUMBER; + hash = (53 * hash) + getFulfillmentTime().hashCode(); + } + hash = (37 * hash) + REGION_CODE_FIELD_NUMBER; + hash = (53 * hash) + getRegionCode().hashCode(); + hash = (37 * hash) + ORDER_FORM_URI_FIELD_NUMBER; + hash = (53 * hash) + getOrderFormUri().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + if (hasSubmitTime()) { + hash = (37 * hash) + SUBMIT_TIME_FIELD_NUMBER; + hash = (53 * hash) + getSubmitTime().hashCode(); + } + hash = (37 * hash) + BILLING_ID_FIELD_NUMBER; + hash = (53 * hash) + getBillingId().hashCode(); + if (getExistingHardwareCount() > 0) { + hash = (37 * hash) + EXISTING_HARDWARE_FIELD_NUMBER; + hash = (53 * hash) + getExistingHardwareList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Order parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Order parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Order parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Order parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Order parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Order parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Order parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Order parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Order parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Order parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Order parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Order parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.gdchardwaremanagement.v1alpha.Order prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * An order for GDC hardware.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.Order} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.Order) + com.google.cloud.gdchardwaremanagement.v1alpha.OrderOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Order_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Order_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.Order.class, + com.google.cloud.gdchardwaremanagement.v1alpha.Order.Builder.class); + } + + // Construct using com.google.cloud.gdchardwaremanagement.v1alpha.Order.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + getOrganizationContactFieldBuilder(); + getFulfillmentTimeFieldBuilder(); + getSubmitTimeFieldBuilder(); + getExistingHardwareFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + state_ = 0; + organizationContact_ = null; + if (organizationContactBuilder_ != null) { + organizationContactBuilder_.dispose(); + organizationContactBuilder_ = null; + } + targetWorkloads_ = com.google.protobuf.LazyStringArrayList.emptyList(); + customerMotivation_ = ""; + fulfillmentTime_ = null; + if (fulfillmentTimeBuilder_ != null) { + fulfillmentTimeBuilder_.dispose(); + fulfillmentTimeBuilder_ = null; + } + regionCode_ = ""; + orderFormUri_ = ""; + type_ = 0; + submitTime_ = null; + if (submitTimeBuilder_ != null) { + submitTimeBuilder_.dispose(); + submitTimeBuilder_ = null; + } + billingId_ = ""; + if (existingHardwareBuilder_ == null) { + existingHardware_ = java.util.Collections.emptyList(); + } else { + existingHardware_ = null; + existingHardwareBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00008000); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Order_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Order getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.Order.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Order build() { + com.google.cloud.gdchardwaremanagement.v1alpha.Order result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Order buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.Order result = + new com.google.cloud.gdchardwaremanagement.v1alpha.Order(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.gdchardwaremanagement.v1alpha.Order result) { + if (existingHardwareBuilder_ == null) { + if (((bitField0_ & 0x00008000) != 0)) { + existingHardware_ = java.util.Collections.unmodifiableList(existingHardware_); + bitField0_ = (bitField0_ & ~0x00008000); + } + result.existingHardware_ = existingHardware_; + } else { + result.existingHardware_ = existingHardwareBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.gdchardwaremanagement.v1alpha.Order result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.organizationContact_ = + organizationContactBuilder_ == null + ? organizationContact_ + : organizationContactBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + targetWorkloads_.makeImmutable(); + result.targetWorkloads_ = targetWorkloads_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.customerMotivation_ = customerMotivation_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.fulfillmentTime_ = + fulfillmentTimeBuilder_ == null ? fulfillmentTime_ : fulfillmentTimeBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.regionCode_ = regionCode_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.orderFormUri_ = orderFormUri_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.submitTime_ = submitTimeBuilder_ == null ? submitTime_ : submitTimeBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.billingId_ = billingId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.Order) { + return mergeFrom((com.google.cloud.gdchardwaremanagement.v1alpha.Order) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gdchardwaremanagement.v1alpha.Order other) { + if (other == com.google.cloud.gdchardwaremanagement.v1alpha.Order.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000010; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasOrganizationContact()) { + mergeOrganizationContact(other.getOrganizationContact()); + } + if (!other.targetWorkloads_.isEmpty()) { + if (targetWorkloads_.isEmpty()) { + targetWorkloads_ = other.targetWorkloads_; + bitField0_ |= 0x00000080; + } else { + ensureTargetWorkloadsIsMutable(); + targetWorkloads_.addAll(other.targetWorkloads_); + } + onChanged(); + } + if (!other.getCustomerMotivation().isEmpty()) { + customerMotivation_ = other.customerMotivation_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (other.hasFulfillmentTime()) { + mergeFulfillmentTime(other.getFulfillmentTime()); + } + if (!other.getRegionCode().isEmpty()) { + regionCode_ = other.regionCode_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (!other.getOrderFormUri().isEmpty()) { + orderFormUri_ = other.orderFormUri_; + bitField0_ |= 0x00000800; + onChanged(); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.hasSubmitTime()) { + mergeSubmitTime(other.getSubmitTime()); + } + if (!other.getBillingId().isEmpty()) { + billingId_ = other.billingId_; + bitField0_ |= 0x00004000; + onChanged(); + } + if (existingHardwareBuilder_ == null) { + if (!other.existingHardware_.isEmpty()) { + if (existingHardware_.isEmpty()) { + existingHardware_ = other.existingHardware_; + bitField0_ = (bitField0_ & ~0x00008000); + } else { + ensureExistingHardwareIsMutable(); + existingHardware_.addAll(other.existingHardware_); + } + onChanged(); + } + } else { + if (!other.existingHardware_.isEmpty()) { + if (existingHardwareBuilder_.isEmpty()) { + existingHardwareBuilder_.dispose(); + existingHardwareBuilder_ = null; + existingHardware_ = other.existingHardware_; + bitField0_ = (bitField0_ & ~0x00008000); + existingHardwareBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getExistingHardwareFieldBuilder() + : null; + } else { + existingHardwareBuilder_.addAllMessages(other.existingHardware_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 40: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 40 + case 50: + { + input.readMessage( + getOrganizationContactFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTargetWorkloadsIsMutable(); + targetWorkloads_.add(s); + break; + } // case 58 + case 66: + { + customerMotivation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 66 + case 74: + { + input.readMessage(getFulfillmentTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 74 + case 82: + { + regionCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 82 + case 90: + { + orderFormUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 90 + case 96: + { + type_ = input.readEnum(); + bitField0_ |= 0x00001000; + break; + } // case 96 + case 106: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 106 + case 114: + { + input.readMessage(getSubmitTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00002000; + break; + } // case 114 + case 122: + { + billingId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00004000; + break; + } // case 122 + case 130: + { + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation m = + input.readMessage( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation.parser(), + extensionRegistry); + if (existingHardwareBuilder_ == null) { + ensureExistingHardwareIsMutable(); + existingHardware_.add(m); + } else { + existingHardwareBuilder_.addMessage(m); + } + break; + } // case 130 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
          +     * Identifier. Name of this order.
          +     * Format: `projects/{project}/locations/{location}/orders/{order}`
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Identifier. Name of this order.
          +     * Format: `projects/{project}/locations/{location}/orders/{order}`
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Identifier. Name of this order.
          +     * Format: `projects/{project}/locations/{location}/orders/{order}`
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Identifier. Name of this order.
          +     * Format: `projects/{project}/locations/{location}/orders/{order}`
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * Identifier. Name of this order.
          +     * Format: `projects/{project}/locations/{location}/orders/{order}`
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
          +     * Optional. Display name of this order.
          +     * 
          + * + * string display_name = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. Display name of this order.
          +     * 
          + * + * string display_name = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. Display name of this order.
          +     * 
          + * + * string display_name = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Display name of this order.
          +     * 
          + * + * string display_name = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Display name of this order.
          +     * 
          + * + * string display_name = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
          +     * Output only. Time when this order was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
          +     * Output only. Time when this order was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Output only. Time when this order was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Time when this order was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Time when this order was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Output only. Time when this order was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Time when this order was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Output only. Time when this order was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
          +     * Output only. Time when this order was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
          +     * Output only. Time when this order was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
          +     * Output only. Time when this order was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Output only. Time when this order was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Time when this order was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Time when this order was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Output only. Time when this order was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Time when this order was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Output only. Time when this order was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
          +     * Output only. Time when this order was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000010; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
          +     * Optional. Labels associated with this order as key value pairs.
          +     * For more information about labels, see [Create and manage
          +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +     * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
          +     * Optional. Labels associated with this order as key value pairs.
          +     * For more information about labels, see [Create and manage
          +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +     * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
          +     * Optional. Labels associated with this order as key value pairs.
          +     * For more information about labels, see [Create and manage
          +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +     * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
          +     * Optional. Labels associated with this order as key value pairs.
          +     * For more information about labels, see [Create and manage
          +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +     * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000010); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + /** + * + * + *
          +     * Optional. Labels associated with this order as key value pairs.
          +     * For more information about labels, see [Create and manage
          +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +     * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000010; + return internalGetMutableLabels().getMutableMap(); + } + /** + * + * + *
          +     * Optional. Labels associated with this order as key value pairs.
          +     * For more information about labels, see [Create and manage
          +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +     * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000010; + return this; + } + /** + * + * + *
          +     * Optional. Labels associated with this order as key value pairs.
          +     * For more information about labels, see [Create and manage
          +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +     * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000010; + return this; + } + + private int state_ = 0; + /** + * + * + *
          +     * Output only. State of this order. On order creation, state will be set to
          +     * DRAFT.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Order.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
          +     * Output only. State of this order. On order creation, state will be set to
          +     * DRAFT.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Order.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. State of this order. On order creation, state will be set to
          +     * DRAFT.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Order.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Order.State getState() { + com.google.cloud.gdchardwaremanagement.v1alpha.Order.State result = + com.google.cloud.gdchardwaremanagement.v1alpha.Order.State.forNumber(state_); + return result == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Order.State.UNRECOGNIZED + : result; + } + /** + * + * + *
          +     * Output only. State of this order. On order creation, state will be set to
          +     * DRAFT.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Order.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.gdchardwaremanagement.v1alpha.Order.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. State of this order. On order creation, state will be set to
          +     * DRAFT.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Order.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000020); + state_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organizationContact_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact, + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContactOrBuilder> + organizationContactBuilder_; + /** + * + * + *
          +     * Required. Customer contact information.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the organizationContact field is set. + */ + public boolean hasOrganizationContact() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
          +     * Required. Customer contact information.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The organizationContact. + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact + getOrganizationContact() { + if (organizationContactBuilder_ == null) { + return organizationContact_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact + .getDefaultInstance() + : organizationContact_; + } else { + return organizationContactBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Required. Customer contact information.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setOrganizationContact( + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact value) { + if (organizationContactBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + organizationContact_ = value; + } else { + organizationContactBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Customer contact information.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setOrganizationContact( + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact.Builder + builderForValue) { + if (organizationContactBuilder_ == null) { + organizationContact_ = builderForValue.build(); + } else { + organizationContactBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Customer contact information.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeOrganizationContact( + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact value) { + if (organizationContactBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && organizationContact_ != null + && organizationContact_ + != com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact + .getDefaultInstance()) { + getOrganizationContactBuilder().mergeFrom(value); + } else { + organizationContact_ = value; + } + } else { + organizationContactBuilder_.mergeFrom(value); + } + if (organizationContact_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Required. Customer contact information.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearOrganizationContact() { + bitField0_ = (bitField0_ & ~0x00000040); + organizationContact_ = null; + if (organizationContactBuilder_ != null) { + organizationContactBuilder_.dispose(); + organizationContactBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Customer contact information.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact.Builder + getOrganizationContactBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getOrganizationContactFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Required. Customer contact information.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContactOrBuilder + getOrganizationContactOrBuilder() { + if (organizationContactBuilder_ != null) { + return organizationContactBuilder_.getMessageOrBuilder(); + } else { + return organizationContact_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact + .getDefaultInstance() + : organizationContact_; + } + } + /** + * + * + *
          +     * Required. Customer contact information.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact, + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContactOrBuilder> + getOrganizationContactFieldBuilder() { + if (organizationContactBuilder_ == null) { + organizationContactBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact, + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContactOrBuilder>( + getOrganizationContact(), getParentForChildren(), isClean()); + organizationContact_ = null; + } + return organizationContactBuilder_; + } + + private com.google.protobuf.LazyStringArrayList targetWorkloads_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureTargetWorkloadsIsMutable() { + if (!targetWorkloads_.isModifiable()) { + targetWorkloads_ = new com.google.protobuf.LazyStringArrayList(targetWorkloads_); + } + bitField0_ |= 0x00000080; + } + /** + * + * + *
          +     * Optional. Customer specified workloads of interest targeted by this order.
          +     * This must contain <= 20 elements and the length of each element must be <=
          +     * 50 characters.
          +     * 
          + * + * repeated string target_workloads = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the targetWorkloads. + */ + public com.google.protobuf.ProtocolStringList getTargetWorkloadsList() { + targetWorkloads_.makeImmutable(); + return targetWorkloads_; + } + /** + * + * + *
          +     * Optional. Customer specified workloads of interest targeted by this order.
          +     * This must contain <= 20 elements and the length of each element must be <=
          +     * 50 characters.
          +     * 
          + * + * repeated string target_workloads = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of targetWorkloads. + */ + public int getTargetWorkloadsCount() { + return targetWorkloads_.size(); + } + /** + * + * + *
          +     * Optional. Customer specified workloads of interest targeted by this order.
          +     * This must contain <= 20 elements and the length of each element must be <=
          +     * 50 characters.
          +     * 
          + * + * repeated string target_workloads = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The targetWorkloads at the given index. + */ + public java.lang.String getTargetWorkloads(int index) { + return targetWorkloads_.get(index); + } + /** + * + * + *
          +     * Optional. Customer specified workloads of interest targeted by this order.
          +     * This must contain <= 20 elements and the length of each element must be <=
          +     * 50 characters.
          +     * 
          + * + * repeated string target_workloads = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the targetWorkloads at the given index. + */ + public com.google.protobuf.ByteString getTargetWorkloadsBytes(int index) { + return targetWorkloads_.getByteString(index); + } + /** + * + * + *
          +     * Optional. Customer specified workloads of interest targeted by this order.
          +     * This must contain <= 20 elements and the length of each element must be <=
          +     * 50 characters.
          +     * 
          + * + * repeated string target_workloads = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The targetWorkloads to set. + * @return This builder for chaining. + */ + public Builder setTargetWorkloads(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetWorkloadsIsMutable(); + targetWorkloads_.set(index, value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Customer specified workloads of interest targeted by this order.
          +     * This must contain <= 20 elements and the length of each element must be <=
          +     * 50 characters.
          +     * 
          + * + * repeated string target_workloads = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The targetWorkloads to add. + * @return This builder for chaining. + */ + public Builder addTargetWorkloads(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetWorkloadsIsMutable(); + targetWorkloads_.add(value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Customer specified workloads of interest targeted by this order.
          +     * This must contain <= 20 elements and the length of each element must be <=
          +     * 50 characters.
          +     * 
          + * + * repeated string target_workloads = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The targetWorkloads to add. + * @return This builder for chaining. + */ + public Builder addAllTargetWorkloads(java.lang.Iterable values) { + ensureTargetWorkloadsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetWorkloads_); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Customer specified workloads of interest targeted by this order.
          +     * This must contain <= 20 elements and the length of each element must be <=
          +     * 50 characters.
          +     * 
          + * + * repeated string target_workloads = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTargetWorkloads() { + targetWorkloads_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + ; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Customer specified workloads of interest targeted by this order.
          +     * This must contain <= 20 elements and the length of each element must be <=
          +     * 50 characters.
          +     * 
          + * + * repeated string target_workloads = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the targetWorkloads to add. + * @return This builder for chaining. + */ + public Builder addTargetWorkloadsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTargetWorkloadsIsMutable(); + targetWorkloads_.add(value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object customerMotivation_ = ""; + /** + * + * + *
          +     * Required. Information about the customer's motivation for this order. The
          +     * length of this field must be <= 1000 characters.
          +     * 
          + * + * string customer_motivation = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The customerMotivation. + */ + public java.lang.String getCustomerMotivation() { + java.lang.Object ref = customerMotivation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customerMotivation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Required. Information about the customer's motivation for this order. The
          +     * length of this field must be <= 1000 characters.
          +     * 
          + * + * string customer_motivation = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for customerMotivation. + */ + public com.google.protobuf.ByteString getCustomerMotivationBytes() { + java.lang.Object ref = customerMotivation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customerMotivation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Required. Information about the customer's motivation for this order. The
          +     * length of this field must be <= 1000 characters.
          +     * 
          + * + * string customer_motivation = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The customerMotivation to set. + * @return This builder for chaining. + */ + public Builder setCustomerMotivation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + customerMotivation_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Information about the customer's motivation for this order. The
          +     * length of this field must be <= 1000 characters.
          +     * 
          + * + * string customer_motivation = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearCustomerMotivation() { + customerMotivation_ = getDefaultInstance().getCustomerMotivation(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Information about the customer's motivation for this order. The
          +     * length of this field must be <= 1000 characters.
          +     * 
          + * + * string customer_motivation = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for customerMotivation to set. + * @return This builder for chaining. + */ + public Builder setCustomerMotivationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customerMotivation_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp fulfillmentTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + fulfillmentTimeBuilder_; + /** + * + * + *
          +     * Required. Customer specified deadline by when this order should be
          +     * fulfilled.
          +     * 
          + * + * + * .google.protobuf.Timestamp fulfillment_time = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the fulfillmentTime field is set. + */ + public boolean hasFulfillmentTime() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * + * + *
          +     * Required. Customer specified deadline by when this order should be
          +     * fulfilled.
          +     * 
          + * + * + * .google.protobuf.Timestamp fulfillment_time = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The fulfillmentTime. + */ + public com.google.protobuf.Timestamp getFulfillmentTime() { + if (fulfillmentTimeBuilder_ == null) { + return fulfillmentTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : fulfillmentTime_; + } else { + return fulfillmentTimeBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Required. Customer specified deadline by when this order should be
          +     * fulfilled.
          +     * 
          + * + * + * .google.protobuf.Timestamp fulfillment_time = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFulfillmentTime(com.google.protobuf.Timestamp value) { + if (fulfillmentTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fulfillmentTime_ = value; + } else { + fulfillmentTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Customer specified deadline by when this order should be
          +     * fulfilled.
          +     * 
          + * + * + * .google.protobuf.Timestamp fulfillment_time = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFulfillmentTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (fulfillmentTimeBuilder_ == null) { + fulfillmentTime_ = builderForValue.build(); + } else { + fulfillmentTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Customer specified deadline by when this order should be
          +     * fulfilled.
          +     * 
          + * + * + * .google.protobuf.Timestamp fulfillment_time = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeFulfillmentTime(com.google.protobuf.Timestamp value) { + if (fulfillmentTimeBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && fulfillmentTime_ != null + && fulfillmentTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getFulfillmentTimeBuilder().mergeFrom(value); + } else { + fulfillmentTime_ = value; + } + } else { + fulfillmentTimeBuilder_.mergeFrom(value); + } + if (fulfillmentTime_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Required. Customer specified deadline by when this order should be
          +     * fulfilled.
          +     * 
          + * + * + * .google.protobuf.Timestamp fulfillment_time = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearFulfillmentTime() { + bitField0_ = (bitField0_ & ~0x00000200); + fulfillmentTime_ = null; + if (fulfillmentTimeBuilder_ != null) { + fulfillmentTimeBuilder_.dispose(); + fulfillmentTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Customer specified deadline by when this order should be
          +     * fulfilled.
          +     * 
          + * + * + * .google.protobuf.Timestamp fulfillment_time = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.Timestamp.Builder getFulfillmentTimeBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return getFulfillmentTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Required. Customer specified deadline by when this order should be
          +     * fulfilled.
          +     * 
          + * + * + * .google.protobuf.Timestamp fulfillment_time = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.TimestampOrBuilder getFulfillmentTimeOrBuilder() { + if (fulfillmentTimeBuilder_ != null) { + return fulfillmentTimeBuilder_.getMessageOrBuilder(); + } else { + return fulfillmentTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : fulfillmentTime_; + } + } + /** + * + * + *
          +     * Required. Customer specified deadline by when this order should be
          +     * fulfilled.
          +     * 
          + * + * + * .google.protobuf.Timestamp fulfillment_time = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getFulfillmentTimeFieldBuilder() { + if (fulfillmentTimeBuilder_ == null) { + fulfillmentTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getFulfillmentTime(), getParentForChildren(), isClean()); + fulfillmentTime_ = null; + } + return fulfillmentTimeBuilder_; + } + + private java.lang.Object regionCode_ = ""; + /** + * + * + *
          +     * Required. [Unicode CLDR](http://cldr.unicode.org/) region code where this
          +     * order will be deployed. For a list of valid CLDR region codes, see the
          +     * [Language Subtag
          +     * Registry](https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry).
          +     * 
          + * + * string region_code = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The regionCode. + */ + public java.lang.String getRegionCode() { + java.lang.Object ref = regionCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + regionCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Required. [Unicode CLDR](http://cldr.unicode.org/) region code where this
          +     * order will be deployed. For a list of valid CLDR region codes, see the
          +     * [Language Subtag
          +     * Registry](https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry).
          +     * 
          + * + * string region_code = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for regionCode. + */ + public com.google.protobuf.ByteString getRegionCodeBytes() { + java.lang.Object ref = regionCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + regionCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Required. [Unicode CLDR](http://cldr.unicode.org/) region code where this
          +     * order will be deployed. For a list of valid CLDR region codes, see the
          +     * [Language Subtag
          +     * Registry](https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry).
          +     * 
          + * + * string region_code = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The regionCode to set. + * @return This builder for chaining. + */ + public Builder setRegionCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + regionCode_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. [Unicode CLDR](http://cldr.unicode.org/) region code where this
          +     * order will be deployed. For a list of valid CLDR region codes, see the
          +     * [Language Subtag
          +     * Registry](https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry).
          +     * 
          + * + * string region_code = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRegionCode() { + regionCode_ = getDefaultInstance().getRegionCode(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. [Unicode CLDR](http://cldr.unicode.org/) region code where this
          +     * order will be deployed. For a list of valid CLDR region codes, see the
          +     * [Language Subtag
          +     * Registry](https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry).
          +     * 
          + * + * string region_code = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for regionCode to set. + * @return This builder for chaining. + */ + public Builder setRegionCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + regionCode_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + private java.lang.Object orderFormUri_ = ""; + /** + * + * + *
          +     * Output only. Link to the order form.
          +     * 
          + * + * string order_form_uri = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The orderFormUri. + */ + public java.lang.String getOrderFormUri() { + java.lang.Object ref = orderFormUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderFormUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Output only. Link to the order form.
          +     * 
          + * + * string order_form_uri = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for orderFormUri. + */ + public com.google.protobuf.ByteString getOrderFormUriBytes() { + java.lang.Object ref = orderFormUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderFormUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Output only. Link to the order form.
          +     * 
          + * + * string order_form_uri = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The orderFormUri to set. + * @return This builder for chaining. + */ + public Builder setOrderFormUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderFormUri_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Link to the order form.
          +     * 
          + * + * string order_form_uri = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearOrderFormUri() { + orderFormUri_ = getDefaultInstance().getOrderFormUri(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Link to the order form.
          +     * 
          + * + * string order_form_uri = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for orderFormUri to set. + * @return This builder for chaining. + */ + public Builder setOrderFormUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderFormUri_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + private int type_ = 0; + /** + * + * + *
          +     * Output only. Type of this Order.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Order.Type type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
          +     * Output only. Type of this Order.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Order.Type type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Type of this Order.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Order.Type type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Order.Type getType() { + com.google.cloud.gdchardwaremanagement.v1alpha.Order.Type result = + com.google.cloud.gdchardwaremanagement.v1alpha.Order.Type.forNumber(type_); + return result == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Order.Type.UNRECOGNIZED + : result; + } + /** + * + * + *
          +     * Output only. Type of this Order.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Order.Type type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.cloud.gdchardwaremanagement.v1alpha.Order.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00001000; + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Type of this Order.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Order.Type type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00001000); + type_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp submitTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + submitTimeBuilder_; + /** + * + * + *
          +     * Output only. Time when the order was submitted. Is auto-populated to the
          +     * current time when an order is submitted.
          +     * 
          + * + * + * .google.protobuf.Timestamp submit_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the submitTime field is set. + */ + public boolean hasSubmitTime() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + * + * + *
          +     * Output only. Time when the order was submitted. Is auto-populated to the
          +     * current time when an order is submitted.
          +     * 
          + * + * + * .google.protobuf.Timestamp submit_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The submitTime. + */ + public com.google.protobuf.Timestamp getSubmitTime() { + if (submitTimeBuilder_ == null) { + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; + } else { + return submitTimeBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Output only. Time when the order was submitted. Is auto-populated to the
          +     * current time when an order is submitted.
          +     * 
          + * + * + * .google.protobuf.Timestamp submit_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSubmitTime(com.google.protobuf.Timestamp value) { + if (submitTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + submitTime_ = value; + } else { + submitTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Time when the order was submitted. Is auto-populated to the
          +     * current time when an order is submitted.
          +     * 
          + * + * + * .google.protobuf.Timestamp submit_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (submitTimeBuilder_ == null) { + submitTime_ = builderForValue.build(); + } else { + submitTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Time when the order was submitted. Is auto-populated to the
          +     * current time when an order is submitted.
          +     * 
          + * + * + * .google.protobuf.Timestamp submit_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeSubmitTime(com.google.protobuf.Timestamp value) { + if (submitTimeBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0) + && submitTime_ != null + && submitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getSubmitTimeBuilder().mergeFrom(value); + } else { + submitTime_ = value; + } + } else { + submitTimeBuilder_.mergeFrom(value); + } + if (submitTime_ != null) { + bitField0_ |= 0x00002000; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Output only. Time when the order was submitted. Is auto-populated to the
          +     * current time when an order is submitted.
          +     * 
          + * + * + * .google.protobuf.Timestamp submit_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSubmitTime() { + bitField0_ = (bitField0_ & ~0x00002000); + submitTime_ = null; + if (submitTimeBuilder_ != null) { + submitTimeBuilder_.dispose(); + submitTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Time when the order was submitted. Is auto-populated to the
          +     * current time when an order is submitted.
          +     * 
          + * + * + * .google.protobuf.Timestamp submit_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder() { + bitField0_ |= 0x00002000; + onChanged(); + return getSubmitTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Output only. Time when the order was submitted. Is auto-populated to the
          +     * current time when an order is submitted.
          +     * 
          + * + * + * .google.protobuf.Timestamp submit_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder() { + if (submitTimeBuilder_ != null) { + return submitTimeBuilder_.getMessageOrBuilder(); + } else { + return submitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : submitTime_; + } + } + /** + * + * + *
          +     * Output only. Time when the order was submitted. Is auto-populated to the
          +     * current time when an order is submitted.
          +     * 
          + * + * + * .google.protobuf.Timestamp submit_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getSubmitTimeFieldBuilder() { + if (submitTimeBuilder_ == null) { + submitTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getSubmitTime(), getParentForChildren(), isClean()); + submitTime_ = null; + } + return submitTimeBuilder_; + } + + private java.lang.Object billingId_ = ""; + /** + * + * + *
          +     * Required. The Google Cloud Billing ID to be charged for this order.
          +     * 
          + * + * string billing_id = 15 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The billingId. + */ + public java.lang.String getBillingId() { + java.lang.Object ref = billingId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + billingId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Required. The Google Cloud Billing ID to be charged for this order.
          +     * 
          + * + * string billing_id = 15 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for billingId. + */ + public com.google.protobuf.ByteString getBillingIdBytes() { + java.lang.Object ref = billingId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + billingId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Required. The Google Cloud Billing ID to be charged for this order.
          +     * 
          + * + * string billing_id = 15 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The billingId to set. + * @return This builder for chaining. + */ + public Builder setBillingId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + billingId_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The Google Cloud Billing ID to be charged for this order.
          +     * 
          + * + * string billing_id = 15 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearBillingId() { + billingId_ = getDefaultInstance().getBillingId(); + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The Google Cloud Billing ID to be charged for this order.
          +     * 
          + * + * string billing_id = 15 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for billingId to set. + * @return This builder for chaining. + */ + public Builder setBillingIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + billingId_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + private java.util.List + existingHardware_ = java.util.Collections.emptyList(); + + private void ensureExistingHardwareIsMutable() { + if (!((bitField0_ & 0x00008000) != 0)) { + existingHardware_ = + new java.util.ArrayList< + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation>(existingHardware_); + bitField0_ |= 0x00008000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocationOrBuilder> + existingHardwareBuilder_; + + /** + * + * + *
          +     * Optional. Existing hardware to be removed as part of this order.
          +     * Note: any hardware removed will be recycled unless otherwise agreed.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getExistingHardwareList() { + if (existingHardwareBuilder_ == null) { + return java.util.Collections.unmodifiableList(existingHardware_); + } else { + return existingHardwareBuilder_.getMessageList(); + } + } + /** + * + * + *
          +     * Optional. Existing hardware to be removed as part of this order.
          +     * Note: any hardware removed will be recycled unless otherwise agreed.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getExistingHardwareCount() { + if (existingHardwareBuilder_ == null) { + return existingHardware_.size(); + } else { + return existingHardwareBuilder_.getCount(); + } + } + /** + * + * + *
          +     * Optional. Existing hardware to be removed as part of this order.
          +     * Note: any hardware removed will be recycled unless otherwise agreed.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation getExistingHardware( + int index) { + if (existingHardwareBuilder_ == null) { + return existingHardware_.get(index); + } else { + return existingHardwareBuilder_.getMessage(index); + } + } + /** + * + * + *
          +     * Optional. Existing hardware to be removed as part of this order.
          +     * Note: any hardware removed will be recycled unless otherwise agreed.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExistingHardware( + int index, com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation value) { + if (existingHardwareBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExistingHardwareIsMutable(); + existingHardware_.set(index, value); + onChanged(); + } else { + existingHardwareBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
          +     * Optional. Existing hardware to be removed as part of this order.
          +     * Note: any hardware removed will be recycled unless otherwise agreed.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExistingHardware( + int index, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation.Builder builderForValue) { + if (existingHardwareBuilder_ == null) { + ensureExistingHardwareIsMutable(); + existingHardware_.set(index, builderForValue.build()); + onChanged(); + } else { + existingHardwareBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * Optional. Existing hardware to be removed as part of this order.
          +     * Note: any hardware removed will be recycled unless otherwise agreed.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addExistingHardware( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation value) { + if (existingHardwareBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExistingHardwareIsMutable(); + existingHardware_.add(value); + onChanged(); + } else { + existingHardwareBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
          +     * Optional. Existing hardware to be removed as part of this order.
          +     * Note: any hardware removed will be recycled unless otherwise agreed.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addExistingHardware( + int index, com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation value) { + if (existingHardwareBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExistingHardwareIsMutable(); + existingHardware_.add(index, value); + onChanged(); + } else { + existingHardwareBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
          +     * Optional. Existing hardware to be removed as part of this order.
          +     * Note: any hardware removed will be recycled unless otherwise agreed.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addExistingHardware( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation.Builder builderForValue) { + if (existingHardwareBuilder_ == null) { + ensureExistingHardwareIsMutable(); + existingHardware_.add(builderForValue.build()); + onChanged(); + } else { + existingHardwareBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * Optional. Existing hardware to be removed as part of this order.
          +     * Note: any hardware removed will be recycled unless otherwise agreed.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addExistingHardware( + int index, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation.Builder builderForValue) { + if (existingHardwareBuilder_ == null) { + ensureExistingHardwareIsMutable(); + existingHardware_.add(index, builderForValue.build()); + onChanged(); + } else { + existingHardwareBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * Optional. Existing hardware to be removed as part of this order.
          +     * Note: any hardware removed will be recycled unless otherwise agreed.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllExistingHardware( + java.lang.Iterable< + ? extends com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation> + values) { + if (existingHardwareBuilder_ == null) { + ensureExistingHardwareIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, existingHardware_); + onChanged(); + } else { + existingHardwareBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
          +     * Optional. Existing hardware to be removed as part of this order.
          +     * Note: any hardware removed will be recycled unless otherwise agreed.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearExistingHardware() { + if (existingHardwareBuilder_ == null) { + existingHardware_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00008000); + onChanged(); + } else { + existingHardwareBuilder_.clear(); + } + return this; + } + /** + * + * + *
          +     * Optional. Existing hardware to be removed as part of this order.
          +     * Note: any hardware removed will be recycled unless otherwise agreed.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeExistingHardware(int index) { + if (existingHardwareBuilder_ == null) { + ensureExistingHardwareIsMutable(); + existingHardware_.remove(index); + onChanged(); + } else { + existingHardwareBuilder_.remove(index); + } + return this; + } + /** + * + * + *
          +     * Optional. Existing hardware to be removed as part of this order.
          +     * Note: any hardware removed will be recycled unless otherwise agreed.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation.Builder + getExistingHardwareBuilder(int index) { + return getExistingHardwareFieldBuilder().getBuilder(index); + } + /** + * + * + *
          +     * Optional. Existing hardware to be removed as part of this order.
          +     * Note: any hardware removed will be recycled unless otherwise agreed.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocationOrBuilder + getExistingHardwareOrBuilder(int index) { + if (existingHardwareBuilder_ == null) { + return existingHardware_.get(index); + } else { + return existingHardwareBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
          +     * Optional. Existing hardware to be removed as part of this order.
          +     * Note: any hardware removed will be recycled unless otherwise agreed.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocationOrBuilder> + getExistingHardwareOrBuilderList() { + if (existingHardwareBuilder_ != null) { + return existingHardwareBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(existingHardware_); + } + } + /** + * + * + *
          +     * Optional. Existing hardware to be removed as part of this order.
          +     * Note: any hardware removed will be recycled unless otherwise agreed.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation.Builder + addExistingHardwareBuilder() { + return getExistingHardwareFieldBuilder() + .addBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation.getDefaultInstance()); + } + /** + * + * + *
          +     * Optional. Existing hardware to be removed as part of this order.
          +     * Note: any hardware removed will be recycled unless otherwise agreed.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation.Builder + addExistingHardwareBuilder(int index) { + return getExistingHardwareFieldBuilder() + .addBuilder( + index, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation.getDefaultInstance()); + } + /** + * + * + *
          +     * Optional. Existing hardware to be removed as part of this order.
          +     * Note: any hardware removed will be recycled unless otherwise agreed.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getExistingHardwareBuilderList() { + return getExistingHardwareFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocationOrBuilder> + getExistingHardwareFieldBuilder() { + if (existingHardwareBuilder_ == null) { + existingHardwareBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocationOrBuilder>( + existingHardware_, + ((bitField0_ & 0x00008000) != 0), + getParentForChildren(), + isClean()); + existingHardware_ = null; + } + return existingHardwareBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.Order) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.Order) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.Order DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.Order(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Order getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Order parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Order getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/OrderName.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/OrderName.java new file mode 100644 index 000000000000..446ec849dd39 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/OrderName.java @@ -0,0 +1,223 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class OrderName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_ORDER = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/orders/{order}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String order; + + @Deprecated + protected OrderName() { + project = null; + location = null; + order = null; + } + + private OrderName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + order = Preconditions.checkNotNull(builder.getOrder()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getOrder() { + return order; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static OrderName of(String project, String location, String order) { + return newBuilder().setProject(project).setLocation(location).setOrder(order).build(); + } + + public static String format(String project, String location, String order) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setOrder(order) + .build() + .toString(); + } + + public static OrderName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_ORDER.validatedMatch( + formattedString, "OrderName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("order")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (OrderName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_ORDER.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (order != null) { + fieldMapBuilder.put("order", order); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_ORDER.instantiate( + "project", project, "location", location, "order", order); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + OrderName that = ((OrderName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.order, that.order); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(order); + return h; + } + + /** Builder for projects/{project}/locations/{location}/orders/{order}. */ + public static class Builder { + private String project; + private String location; + private String order; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getOrder() { + return order; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setOrder(String order) { + this.order = order; + return this; + } + + private Builder(OrderName orderName) { + this.project = orderName.project; + this.location = orderName.location; + this.order = orderName.order; + } + + public OrderName build() { + return new OrderName(this); + } + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/OrderOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/OrderOrBuilder.java new file mode 100644 index 000000000000..e44f28f3e2cf --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/OrderOrBuilder.java @@ -0,0 +1,645 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface OrderOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.Order) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Identifier. Name of this order.
          +   * Format: `projects/{project}/locations/{location}/orders/{order}`
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
          +   * Identifier. Name of this order.
          +   * Format: `projects/{project}/locations/{location}/orders/{order}`
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
          +   * Optional. Display name of this order.
          +   * 
          + * + * string display_name = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
          +   * Optional. Display name of this order.
          +   * 
          + * + * string display_name = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
          +   * Output only. Time when this order was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
          +   * Output only. Time when this order was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
          +   * Output only. Time when this order was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
          +   * Output only. Time when this order was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
          +   * Output only. Time when this order was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
          +   * Output only. Time when this order was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
          +   * Optional. Labels associated with this order as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + /** + * + * + *
          +   * Optional. Labels associated with this order as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + /** + * + * + *
          +   * Optional. Labels associated with this order as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
          +   * Optional. Labels associated with this order as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
          +   * Optional. Labels associated with this order as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
          +   * Output only. State of this order. On order creation, state will be set to
          +   * DRAFT.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Order.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
          +   * Output only. State of this order. On order creation, state will be set to
          +   * DRAFT.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Order.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.gdchardwaremanagement.v1alpha.Order.State getState(); + + /** + * + * + *
          +   * Required. Customer contact information.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the organizationContact field is set. + */ + boolean hasOrganizationContact(); + /** + * + * + *
          +   * Required. Customer contact information.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The organizationContact. + */ + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact getOrganizationContact(); + /** + * + * + *
          +   * Required. Customer contact information.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContactOrBuilder + getOrganizationContactOrBuilder(); + + /** + * + * + *
          +   * Optional. Customer specified workloads of interest targeted by this order.
          +   * This must contain <= 20 elements and the length of each element must be <=
          +   * 50 characters.
          +   * 
          + * + * repeated string target_workloads = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the targetWorkloads. + */ + java.util.List getTargetWorkloadsList(); + /** + * + * + *
          +   * Optional. Customer specified workloads of interest targeted by this order.
          +   * This must contain <= 20 elements and the length of each element must be <=
          +   * 50 characters.
          +   * 
          + * + * repeated string target_workloads = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of targetWorkloads. + */ + int getTargetWorkloadsCount(); + /** + * + * + *
          +   * Optional. Customer specified workloads of interest targeted by this order.
          +   * This must contain <= 20 elements and the length of each element must be <=
          +   * 50 characters.
          +   * 
          + * + * repeated string target_workloads = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The targetWorkloads at the given index. + */ + java.lang.String getTargetWorkloads(int index); + /** + * + * + *
          +   * Optional. Customer specified workloads of interest targeted by this order.
          +   * This must contain <= 20 elements and the length of each element must be <=
          +   * 50 characters.
          +   * 
          + * + * repeated string target_workloads = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the targetWorkloads at the given index. + */ + com.google.protobuf.ByteString getTargetWorkloadsBytes(int index); + + /** + * + * + *
          +   * Required. Information about the customer's motivation for this order. The
          +   * length of this field must be <= 1000 characters.
          +   * 
          + * + * string customer_motivation = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The customerMotivation. + */ + java.lang.String getCustomerMotivation(); + /** + * + * + *
          +   * Required. Information about the customer's motivation for this order. The
          +   * length of this field must be <= 1000 characters.
          +   * 
          + * + * string customer_motivation = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for customerMotivation. + */ + com.google.protobuf.ByteString getCustomerMotivationBytes(); + + /** + * + * + *
          +   * Required. Customer specified deadline by when this order should be
          +   * fulfilled.
          +   * 
          + * + * + * .google.protobuf.Timestamp fulfillment_time = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the fulfillmentTime field is set. + */ + boolean hasFulfillmentTime(); + /** + * + * + *
          +   * Required. Customer specified deadline by when this order should be
          +   * fulfilled.
          +   * 
          + * + * + * .google.protobuf.Timestamp fulfillment_time = 9 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The fulfillmentTime. + */ + com.google.protobuf.Timestamp getFulfillmentTime(); + /** + * + * + *
          +   * Required. Customer specified deadline by when this order should be
          +   * fulfilled.
          +   * 
          + * + * + * .google.protobuf.Timestamp fulfillment_time = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.TimestampOrBuilder getFulfillmentTimeOrBuilder(); + + /** + * + * + *
          +   * Required. [Unicode CLDR](http://cldr.unicode.org/) region code where this
          +   * order will be deployed. For a list of valid CLDR region codes, see the
          +   * [Language Subtag
          +   * Registry](https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry).
          +   * 
          + * + * string region_code = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The regionCode. + */ + java.lang.String getRegionCode(); + /** + * + * + *
          +   * Required. [Unicode CLDR](http://cldr.unicode.org/) region code where this
          +   * order will be deployed. For a list of valid CLDR region codes, see the
          +   * [Language Subtag
          +   * Registry](https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry).
          +   * 
          + * + * string region_code = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for regionCode. + */ + com.google.protobuf.ByteString getRegionCodeBytes(); + + /** + * + * + *
          +   * Output only. Link to the order form.
          +   * 
          + * + * string order_form_uri = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The orderFormUri. + */ + java.lang.String getOrderFormUri(); + /** + * + * + *
          +   * Output only. Link to the order form.
          +   * 
          + * + * string order_form_uri = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for orderFormUri. + */ + com.google.protobuf.ByteString getOrderFormUriBytes(); + + /** + * + * + *
          +   * Output only. Type of this Order.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Order.Type type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + * + * + *
          +   * Output only. Type of this Order.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Order.Type type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + com.google.cloud.gdchardwaremanagement.v1alpha.Order.Type getType(); + + /** + * + * + *
          +   * Output only. Time when the order was submitted. Is auto-populated to the
          +   * current time when an order is submitted.
          +   * 
          + * + * .google.protobuf.Timestamp submit_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the submitTime field is set. + */ + boolean hasSubmitTime(); + /** + * + * + *
          +   * Output only. Time when the order was submitted. Is auto-populated to the
          +   * current time when an order is submitted.
          +   * 
          + * + * .google.protobuf.Timestamp submit_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The submitTime. + */ + com.google.protobuf.Timestamp getSubmitTime(); + /** + * + * + *
          +   * Output only. Time when the order was submitted. Is auto-populated to the
          +   * current time when an order is submitted.
          +   * 
          + * + * .google.protobuf.Timestamp submit_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder(); + + /** + * + * + *
          +   * Required. The Google Cloud Billing ID to be charged for this order.
          +   * 
          + * + * string billing_id = 15 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The billingId. + */ + java.lang.String getBillingId(); + /** + * + * + *
          +   * Required. The Google Cloud Billing ID to be charged for this order.
          +   * 
          + * + * string billing_id = 15 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for billingId. + */ + com.google.protobuf.ByteString getBillingIdBytes(); + + /** + * + * + *
          +   * Optional. Existing hardware to be removed as part of this order.
          +   * Note: any hardware removed will be recycled unless otherwise agreed.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getExistingHardwareList(); + /** + * + * + *
          +   * Optional. Existing hardware to be removed as part of this order.
          +   * Note: any hardware removed will be recycled unless otherwise agreed.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation getExistingHardware(int index); + /** + * + * + *
          +   * Optional. Existing hardware to be removed as part of this order.
          +   * Note: any hardware removed will be recycled unless otherwise agreed.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getExistingHardwareCount(); + /** + * + * + *
          +   * Optional. Existing hardware to be removed as part of this order.
          +   * Note: any hardware removed will be recycled unless otherwise agreed.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getExistingHardwareOrBuilderList(); + /** + * + * + *
          +   * Optional. Existing hardware to be removed as part of this order.
          +   * Note: any hardware removed will be recycled unless otherwise agreed.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation existing_hardware = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareLocationOrBuilder + getExistingHardwareOrBuilder(int index); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/OrganizationContact.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/OrganizationContact.java new file mode 100644 index 000000000000..88808eb962dc --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/OrganizationContact.java @@ -0,0 +1,1675 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * Contact information of the customer organization.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact} + */ +public final class OrganizationContact extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact) + OrganizationContactOrBuilder { + private static final long serialVersionUID = 0L; + // Use OrganizationContact.newBuilder() to construct. + private OrganizationContact(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private OrganizationContact() { + email_ = ""; + phone_ = ""; + contacts_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OrganizationContact(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_OrganizationContact_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_OrganizationContact_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact.class, + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact.Builder.class); + } + + private int bitField0_; + public static final int ADDRESS_FIELD_NUMBER = 1; + private com.google.type.PostalAddress address_; + /** + * + * + *
          +   * Required. The organization's address.
          +   * 
          + * + * .google.type.PostalAddress address = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the address field is set. + */ + @java.lang.Override + public boolean hasAddress() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
          +   * Required. The organization's address.
          +   * 
          + * + * .google.type.PostalAddress address = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The address. + */ + @java.lang.Override + public com.google.type.PostalAddress getAddress() { + return address_ == null ? com.google.type.PostalAddress.getDefaultInstance() : address_; + } + /** + * + * + *
          +   * Required. The organization's address.
          +   * 
          + * + * .google.type.PostalAddress address = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.type.PostalAddressOrBuilder getAddressOrBuilder() { + return address_ == null ? com.google.type.PostalAddress.getDefaultInstance() : address_; + } + + public static final int EMAIL_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object email_ = ""; + /** + * + * + *
          +   * Optional. The organization's email.
          +   * 
          + * + * string email = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The email. + */ + @java.lang.Override + public java.lang.String getEmail() { + java.lang.Object ref = email_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + email_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. The organization's email.
          +   * 
          + * + * string email = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for email. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEmailBytes() { + java.lang.Object ref = email_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + email_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PHONE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object phone_ = ""; + /** + * + * + *
          +   * Optional. The organization's phone number.
          +   * 
          + * + * string phone = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The phone. + */ + @java.lang.Override + public java.lang.String getPhone() { + java.lang.Object ref = phone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + phone_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. The organization's phone number.
          +   * 
          + * + * string phone = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for phone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPhoneBytes() { + java.lang.Object ref = phone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + phone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTACTS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List contacts_; + /** + * + * + *
          +   * Required. The individual points of contact in the organization at this
          +   * location.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getContactsList() { + return contacts_; + } + /** + * + * + *
          +   * Required. The individual points of contact in the organization at this
          +   * location.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getContactsOrBuilderList() { + return contacts_; + } + /** + * + * + *
          +   * Required. The individual points of contact in the organization at this
          +   * location.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getContactsCount() { + return contacts_.size(); + } + /** + * + * + *
          +   * Required. The individual points of contact in the organization at this
          +   * location.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Contact getContacts(int index) { + return contacts_.get(index); + } + /** + * + * + *
          +   * Required. The individual points of contact in the organization at this
          +   * location.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ContactOrBuilder getContactsOrBuilder( + int index) { + return contacts_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getAddress()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, email_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(phone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, phone_); + } + for (int i = 0; i < contacts_.size(); i++) { + output.writeMessage(4, contacts_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAddress()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, email_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(phone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, phone_); + } + for (int i = 0; i < contacts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, contacts_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact other = + (com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact) obj; + + if (hasAddress() != other.hasAddress()) return false; + if (hasAddress()) { + if (!getAddress().equals(other.getAddress())) return false; + } + if (!getEmail().equals(other.getEmail())) return false; + if (!getPhone().equals(other.getPhone())) return false; + if (!getContactsList().equals(other.getContactsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAddress()) { + hash = (37 * hash) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getAddress().hashCode(); + } + hash = (37 * hash) + EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getEmail().hashCode(); + hash = (37 * hash) + PHONE_FIELD_NUMBER; + hash = (53 * hash) + getPhone().hashCode(); + if (getContactsCount() > 0) { + hash = (37 * hash) + CONTACTS_FIELD_NUMBER; + hash = (53 * hash) + getContactsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * Contact information of the customer organization.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact) + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContactOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_OrganizationContact_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_OrganizationContact_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact.class, + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact.Builder.class); + } + + // Construct using + // com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getAddressFieldBuilder(); + getContactsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + address_ = null; + if (addressBuilder_ != null) { + addressBuilder_.dispose(); + addressBuilder_ = null; + } + email_ = ""; + phone_ = ""; + if (contactsBuilder_ == null) { + contacts_ = java.util.Collections.emptyList(); + } else { + contacts_ = null; + contactsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_OrganizationContact_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact build() { + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact result = + new com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact result) { + if (contactsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + contacts_ = java.util.Collections.unmodifiableList(contacts_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.contacts_ = contacts_; + } else { + result.contacts_ = contactsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.address_ = addressBuilder_ == null ? address_ : addressBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.email_ = email_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.phone_ = phone_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact) { + return mergeFrom( + (com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact + .getDefaultInstance()) return this; + if (other.hasAddress()) { + mergeAddress(other.getAddress()); + } + if (!other.getEmail().isEmpty()) { + email_ = other.email_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getPhone().isEmpty()) { + phone_ = other.phone_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (contactsBuilder_ == null) { + if (!other.contacts_.isEmpty()) { + if (contacts_.isEmpty()) { + contacts_ = other.contacts_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureContactsIsMutable(); + contacts_.addAll(other.contacts_); + } + onChanged(); + } + } else { + if (!other.contacts_.isEmpty()) { + if (contactsBuilder_.isEmpty()) { + contactsBuilder_.dispose(); + contactsBuilder_ = null; + contacts_ = other.contacts_; + bitField0_ = (bitField0_ & ~0x00000008); + contactsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getContactsFieldBuilder() + : null; + } else { + contactsBuilder_.addAllMessages(other.contacts_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getAddressFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + email_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + phone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.cloud.gdchardwaremanagement.v1alpha.Contact m = + input.readMessage( + com.google.cloud.gdchardwaremanagement.v1alpha.Contact.parser(), + extensionRegistry); + if (contactsBuilder_ == null) { + ensureContactsIsMutable(); + contacts_.add(m); + } else { + contactsBuilder_.addMessage(m); + } + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.type.PostalAddress address_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.PostalAddress, + com.google.type.PostalAddress.Builder, + com.google.type.PostalAddressOrBuilder> + addressBuilder_; + /** + * + * + *
          +     * Required. The organization's address.
          +     * 
          + * + * .google.type.PostalAddress address = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the address field is set. + */ + public boolean hasAddress() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
          +     * Required. The organization's address.
          +     * 
          + * + * .google.type.PostalAddress address = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The address. + */ + public com.google.type.PostalAddress getAddress() { + if (addressBuilder_ == null) { + return address_ == null ? com.google.type.PostalAddress.getDefaultInstance() : address_; + } else { + return addressBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Required. The organization's address.
          +     * 
          + * + * .google.type.PostalAddress address = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAddress(com.google.type.PostalAddress value) { + if (addressBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + address_ = value; + } else { + addressBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The organization's address.
          +     * 
          + * + * .google.type.PostalAddress address = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAddress(com.google.type.PostalAddress.Builder builderForValue) { + if (addressBuilder_ == null) { + address_ = builderForValue.build(); + } else { + addressBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The organization's address.
          +     * 
          + * + * .google.type.PostalAddress address = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAddress(com.google.type.PostalAddress value) { + if (addressBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && address_ != null + && address_ != com.google.type.PostalAddress.getDefaultInstance()) { + getAddressBuilder().mergeFrom(value); + } else { + address_ = value; + } + } else { + addressBuilder_.mergeFrom(value); + } + if (address_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Required. The organization's address.
          +     * 
          + * + * .google.type.PostalAddress address = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAddress() { + bitField0_ = (bitField0_ & ~0x00000001); + address_ = null; + if (addressBuilder_ != null) { + addressBuilder_.dispose(); + addressBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The organization's address.
          +     * 
          + * + * .google.type.PostalAddress address = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.type.PostalAddress.Builder getAddressBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getAddressFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Required. The organization's address.
          +     * 
          + * + * .google.type.PostalAddress address = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.type.PostalAddressOrBuilder getAddressOrBuilder() { + if (addressBuilder_ != null) { + return addressBuilder_.getMessageOrBuilder(); + } else { + return address_ == null ? com.google.type.PostalAddress.getDefaultInstance() : address_; + } + } + /** + * + * + *
          +     * Required. The organization's address.
          +     * 
          + * + * .google.type.PostalAddress address = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.PostalAddress, + com.google.type.PostalAddress.Builder, + com.google.type.PostalAddressOrBuilder> + getAddressFieldBuilder() { + if (addressBuilder_ == null) { + addressBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.PostalAddress, + com.google.type.PostalAddress.Builder, + com.google.type.PostalAddressOrBuilder>( + getAddress(), getParentForChildren(), isClean()); + address_ = null; + } + return addressBuilder_; + } + + private java.lang.Object email_ = ""; + /** + * + * + *
          +     * Optional. The organization's email.
          +     * 
          + * + * string email = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The email. + */ + public java.lang.String getEmail() { + java.lang.Object ref = email_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + email_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. The organization's email.
          +     * 
          + * + * string email = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for email. + */ + public com.google.protobuf.ByteString getEmailBytes() { + java.lang.Object ref = email_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + email_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. The organization's email.
          +     * 
          + * + * string email = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The email to set. + * @return This builder for chaining. + */ + public Builder setEmail(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + email_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. The organization's email.
          +     * 
          + * + * string email = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEmail() { + email_ = getDefaultInstance().getEmail(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. The organization's email.
          +     * 
          + * + * string email = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for email to set. + * @return This builder for chaining. + */ + public Builder setEmailBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + email_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object phone_ = ""; + /** + * + * + *
          +     * Optional. The organization's phone number.
          +     * 
          + * + * string phone = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The phone. + */ + public java.lang.String getPhone() { + java.lang.Object ref = phone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + phone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. The organization's phone number.
          +     * 
          + * + * string phone = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for phone. + */ + public com.google.protobuf.ByteString getPhoneBytes() { + java.lang.Object ref = phone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + phone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. The organization's phone number.
          +     * 
          + * + * string phone = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The phone to set. + * @return This builder for chaining. + */ + public Builder setPhone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + phone_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. The organization's phone number.
          +     * 
          + * + * string phone = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPhone() { + phone_ = getDefaultInstance().getPhone(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. The organization's phone number.
          +     * 
          + * + * string phone = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for phone to set. + * @return This builder for chaining. + */ + public Builder setPhoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + phone_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.util.List contacts_ = + java.util.Collections.emptyList(); + + private void ensureContactsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + contacts_ = + new java.util.ArrayList( + contacts_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Contact, + com.google.cloud.gdchardwaremanagement.v1alpha.Contact.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.ContactOrBuilder> + contactsBuilder_; + + /** + * + * + *
          +     * Required. The individual points of contact in the organization at this
          +     * location.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getContactsList() { + if (contactsBuilder_ == null) { + return java.util.Collections.unmodifiableList(contacts_); + } else { + return contactsBuilder_.getMessageList(); + } + } + /** + * + * + *
          +     * Required. The individual points of contact in the organization at this
          +     * location.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getContactsCount() { + if (contactsBuilder_ == null) { + return contacts_.size(); + } else { + return contactsBuilder_.getCount(); + } + } + /** + * + * + *
          +     * Required. The individual points of contact in the organization at this
          +     * location.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Contact getContacts(int index) { + if (contactsBuilder_ == null) { + return contacts_.get(index); + } else { + return contactsBuilder_.getMessage(index); + } + } + /** + * + * + *
          +     * Required. The individual points of contact in the organization at this
          +     * location.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setContacts( + int index, com.google.cloud.gdchardwaremanagement.v1alpha.Contact value) { + if (contactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContactsIsMutable(); + contacts_.set(index, value); + onChanged(); + } else { + contactsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
          +     * Required. The individual points of contact in the organization at this
          +     * location.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setContacts( + int index, com.google.cloud.gdchardwaremanagement.v1alpha.Contact.Builder builderForValue) { + if (contactsBuilder_ == null) { + ensureContactsIsMutable(); + contacts_.set(index, builderForValue.build()); + onChanged(); + } else { + contactsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * Required. The individual points of contact in the organization at this
          +     * location.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addContacts(com.google.cloud.gdchardwaremanagement.v1alpha.Contact value) { + if (contactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContactsIsMutable(); + contacts_.add(value); + onChanged(); + } else { + contactsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
          +     * Required. The individual points of contact in the organization at this
          +     * location.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addContacts( + int index, com.google.cloud.gdchardwaremanagement.v1alpha.Contact value) { + if (contactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContactsIsMutable(); + contacts_.add(index, value); + onChanged(); + } else { + contactsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
          +     * Required. The individual points of contact in the organization at this
          +     * location.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addContacts( + com.google.cloud.gdchardwaremanagement.v1alpha.Contact.Builder builderForValue) { + if (contactsBuilder_ == null) { + ensureContactsIsMutable(); + contacts_.add(builderForValue.build()); + onChanged(); + } else { + contactsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * Required. The individual points of contact in the organization at this
          +     * location.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addContacts( + int index, com.google.cloud.gdchardwaremanagement.v1alpha.Contact.Builder builderForValue) { + if (contactsBuilder_ == null) { + ensureContactsIsMutable(); + contacts_.add(index, builderForValue.build()); + onChanged(); + } else { + contactsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * Required. The individual points of contact in the organization at this
          +     * location.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllContacts( + java.lang.Iterable + values) { + if (contactsBuilder_ == null) { + ensureContactsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, contacts_); + onChanged(); + } else { + contactsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
          +     * Required. The individual points of contact in the organization at this
          +     * location.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearContacts() { + if (contactsBuilder_ == null) { + contacts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + contactsBuilder_.clear(); + } + return this; + } + /** + * + * + *
          +     * Required. The individual points of contact in the organization at this
          +     * location.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeContacts(int index) { + if (contactsBuilder_ == null) { + ensureContactsIsMutable(); + contacts_.remove(index); + onChanged(); + } else { + contactsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
          +     * Required. The individual points of contact in the organization at this
          +     * location.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Contact.Builder getContactsBuilder( + int index) { + return getContactsFieldBuilder().getBuilder(index); + } + /** + * + * + *
          +     * Required. The individual points of contact in the organization at this
          +     * location.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.ContactOrBuilder getContactsOrBuilder( + int index) { + if (contactsBuilder_ == null) { + return contacts_.get(index); + } else { + return contactsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
          +     * Required. The individual points of contact in the organization at this
          +     * location.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getContactsOrBuilderList() { + if (contactsBuilder_ != null) { + return contactsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(contacts_); + } + } + /** + * + * + *
          +     * Required. The individual points of contact in the organization at this
          +     * location.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Contact.Builder addContactsBuilder() { + return getContactsFieldBuilder() + .addBuilder(com.google.cloud.gdchardwaremanagement.v1alpha.Contact.getDefaultInstance()); + } + /** + * + * + *
          +     * Required. The individual points of contact in the organization at this
          +     * location.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Contact.Builder addContactsBuilder( + int index) { + return getContactsFieldBuilder() + .addBuilder( + index, com.google.cloud.gdchardwaremanagement.v1alpha.Contact.getDefaultInstance()); + } + /** + * + * + *
          +     * Required. The individual points of contact in the organization at this
          +     * location.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getContactsBuilderList() { + return getContactsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Contact, + com.google.cloud.gdchardwaremanagement.v1alpha.Contact.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.ContactOrBuilder> + getContactsFieldBuilder() { + if (contactsBuilder_ == null) { + contactsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Contact, + com.google.cloud.gdchardwaremanagement.v1alpha.Contact.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.ContactOrBuilder>( + contacts_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + contacts_ = null; + } + return contactsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OrganizationContact parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/OrganizationContactOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/OrganizationContactOrBuilder.java new file mode 100644 index 000000000000..0aaeb372c7ef --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/OrganizationContactOrBuilder.java @@ -0,0 +1,178 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface OrganizationContactOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The organization's address.
          +   * 
          + * + * .google.type.PostalAddress address = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the address field is set. + */ + boolean hasAddress(); + /** + * + * + *
          +   * Required. The organization's address.
          +   * 
          + * + * .google.type.PostalAddress address = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The address. + */ + com.google.type.PostalAddress getAddress(); + /** + * + * + *
          +   * Required. The organization's address.
          +   * 
          + * + * .google.type.PostalAddress address = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.type.PostalAddressOrBuilder getAddressOrBuilder(); + + /** + * + * + *
          +   * Optional. The organization's email.
          +   * 
          + * + * string email = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The email. + */ + java.lang.String getEmail(); + /** + * + * + *
          +   * Optional. The organization's email.
          +   * 
          + * + * string email = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for email. + */ + com.google.protobuf.ByteString getEmailBytes(); + + /** + * + * + *
          +   * Optional. The organization's phone number.
          +   * 
          + * + * string phone = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The phone. + */ + java.lang.String getPhone(); + /** + * + * + *
          +   * Optional. The organization's phone number.
          +   * 
          + * + * string phone = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for phone. + */ + com.google.protobuf.ByteString getPhoneBytes(); + + /** + * + * + *
          +   * Required. The individual points of contact in the organization at this
          +   * location.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getContactsList(); + /** + * + * + *
          +   * Required. The individual points of contact in the organization at this
          +   * location.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gdchardwaremanagement.v1alpha.Contact getContacts(int index); + /** + * + * + *
          +   * Required. The individual points of contact in the organization at this
          +   * location.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getContactsCount(); + /** + * + * + *
          +   * Required. The individual points of contact in the organization at this
          +   * location.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getContactsOrBuilderList(); + /** + * + * + *
          +   * Required. The individual points of contact in the organization at this
          +   * location.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gdchardwaremanagement.v1alpha.ContactOrBuilder getContactsOrBuilder(int index); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/PowerSupply.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/PowerSupply.java new file mode 100644 index 000000000000..6568d568bd90 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/PowerSupply.java @@ -0,0 +1,179 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * The power supply options.
          + * 
          + * + * Protobuf enum {@code google.cloud.gdchardwaremanagement.v1alpha.PowerSupply} + */ +public enum PowerSupply implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
          +   * Power supply is unspecified.
          +   * 
          + * + * POWER_SUPPLY_UNSPECIFIED = 0; + */ + POWER_SUPPLY_UNSPECIFIED(0), + /** + * + * + *
          +   * AC power supply.
          +   * 
          + * + * POWER_SUPPLY_AC = 1; + */ + POWER_SUPPLY_AC(1), + /** + * + * + *
          +   * DC power supply.
          +   * 
          + * + * POWER_SUPPLY_DC = 2; + */ + POWER_SUPPLY_DC(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
          +   * Power supply is unspecified.
          +   * 
          + * + * POWER_SUPPLY_UNSPECIFIED = 0; + */ + public static final int POWER_SUPPLY_UNSPECIFIED_VALUE = 0; + /** + * + * + *
          +   * AC power supply.
          +   * 
          + * + * POWER_SUPPLY_AC = 1; + */ + public static final int POWER_SUPPLY_AC_VALUE = 1; + /** + * + * + *
          +   * DC power supply.
          +   * 
          + * + * POWER_SUPPLY_DC = 2; + */ + public static final int POWER_SUPPLY_DC_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PowerSupply valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static PowerSupply forNumber(int value) { + switch (value) { + case 0: + return POWER_SUPPLY_UNSPECIFIED; + case 1: + return POWER_SUPPLY_AC; + case 2: + return POWER_SUPPLY_DC; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PowerSupply findValueByNumber(int number) { + return PowerSupply.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final PowerSupply[] VALUES = values(); + + public static PowerSupply valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private PowerSupply(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.gdchardwaremanagement.v1alpha.PowerSupply) +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/RackSpace.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/RackSpace.java new file mode 100644 index 000000000000..9b8d8b8f7991 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/RackSpace.java @@ -0,0 +1,629 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * Represents contiguous space in a rack.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.RackSpace} + */ +public final class RackSpace extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.RackSpace) + RackSpaceOrBuilder { + private static final long serialVersionUID = 0L; + // Use RackSpace.newBuilder() to construct. + private RackSpace(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RackSpace() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RackSpace(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_RackSpace_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_RackSpace_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace.class, + com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace.Builder.class); + } + + public static final int START_RACK_UNIT_FIELD_NUMBER = 1; + private int startRackUnit_ = 0; + /** + * + * + *
          +   * Required. First rack unit of the rack space (inclusive).
          +   * 
          + * + * int32 start_rack_unit = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The startRackUnit. + */ + @java.lang.Override + public int getStartRackUnit() { + return startRackUnit_; + } + + public static final int END_RACK_UNIT_FIELD_NUMBER = 2; + private int endRackUnit_ = 0; + /** + * + * + *
          +   * Required. Last rack unit of the rack space (inclusive).
          +   * 
          + * + * int32 end_rack_unit = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The endRackUnit. + */ + @java.lang.Override + public int getEndRackUnit() { + return endRackUnit_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (startRackUnit_ != 0) { + output.writeInt32(1, startRackUnit_); + } + if (endRackUnit_ != 0) { + output.writeInt32(2, endRackUnit_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (startRackUnit_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, startRackUnit_); + } + if (endRackUnit_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, endRackUnit_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace other = + (com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace) obj; + + if (getStartRackUnit() != other.getStartRackUnit()) return false; + if (getEndRackUnit() != other.getEndRackUnit()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + START_RACK_UNIT_FIELD_NUMBER; + hash = (53 * hash) + getStartRackUnit(); + hash = (37 * hash) + END_RACK_UNIT_FIELD_NUMBER; + hash = (53 * hash) + getEndRackUnit(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * Represents contiguous space in a rack.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.RackSpace} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.RackSpace) + com.google.cloud.gdchardwaremanagement.v1alpha.RackSpaceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_RackSpace_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_RackSpace_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace.class, + com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace.Builder.class); + } + + // Construct using com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + startRackUnit_ = 0; + endRackUnit_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_RackSpace_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace build() { + com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace result = + new com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.startRackUnit_ = startRackUnit_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endRackUnit_ = endRackUnit_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace) { + return mergeFrom((com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace other) { + if (other == com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace.getDefaultInstance()) + return this; + if (other.getStartRackUnit() != 0) { + setStartRackUnit(other.getStartRackUnit()); + } + if (other.getEndRackUnit() != 0) { + setEndRackUnit(other.getEndRackUnit()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + startRackUnit_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + endRackUnit_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int startRackUnit_; + /** + * + * + *
          +     * Required. First rack unit of the rack space (inclusive).
          +     * 
          + * + * int32 start_rack_unit = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The startRackUnit. + */ + @java.lang.Override + public int getStartRackUnit() { + return startRackUnit_; + } + /** + * + * + *
          +     * Required. First rack unit of the rack space (inclusive).
          +     * 
          + * + * int32 start_rack_unit = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The startRackUnit to set. + * @return This builder for chaining. + */ + public Builder setStartRackUnit(int value) { + + startRackUnit_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. First rack unit of the rack space (inclusive).
          +     * 
          + * + * int32 start_rack_unit = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearStartRackUnit() { + bitField0_ = (bitField0_ & ~0x00000001); + startRackUnit_ = 0; + onChanged(); + return this; + } + + private int endRackUnit_; + /** + * + * + *
          +     * Required. Last rack unit of the rack space (inclusive).
          +     * 
          + * + * int32 end_rack_unit = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The endRackUnit. + */ + @java.lang.Override + public int getEndRackUnit() { + return endRackUnit_; + } + /** + * + * + *
          +     * Required. Last rack unit of the rack space (inclusive).
          +     * 
          + * + * int32 end_rack_unit = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The endRackUnit to set. + * @return This builder for chaining. + */ + public Builder setEndRackUnit(int value) { + + endRackUnit_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Last rack unit of the rack space (inclusive).
          +     * 
          + * + * int32 end_rack_unit = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearEndRackUnit() { + bitField0_ = (bitField0_ & ~0x00000002); + endRackUnit_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.RackSpace) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.RackSpace) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RackSpace parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.RackSpace getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/RackSpaceOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/RackSpaceOrBuilder.java new file mode 100644 index 000000000000..47bb3df471e8 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/RackSpaceOrBuilder.java @@ -0,0 +1,52 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface RackSpaceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.RackSpace) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. First rack unit of the rack space (inclusive).
          +   * 
          + * + * int32 start_rack_unit = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The startRackUnit. + */ + int getStartRackUnit(); + + /** + * + * + *
          +   * Required. Last rack unit of the rack space (inclusive).
          +   * 
          + * + * int32 end_rack_unit = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The endRackUnit. + */ + int getEndRackUnit(); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ResourcesProto.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ResourcesProto.java new file mode 100644 index 000000000000..796360e27c21 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ResourcesProto.java @@ -0,0 +1,773 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public final class ResourcesProto { + private ResourcesProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Order_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Order_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Order_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Order_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Site_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Site_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Site_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Site_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwareGroup_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwareGroup_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwareGroup_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwareGroup_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Comment_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Comment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Comment_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Comment_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ChangeLogEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ChangeLogEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ChangeLogEntry_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ChangeLogEntry_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Sku_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Sku_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Zone_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Zone_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Zone_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Zone_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_OrganizationContact_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_OrganizationContact_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Contact_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Contact_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwareConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwareConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_SkuConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_SkuConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_SkuInstance_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_SkuInstance_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwarePhysicalInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwarePhysicalInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwareInstallationInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwareInstallationInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ZoneNetworkConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ZoneNetworkConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Subnet_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Subnet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_TimePeriod_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_TimePeriod_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Dimensions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Dimensions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_RackSpace_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_RackSpace_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwareLocation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwareLocation_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n:google/cloud/gdchardwaremanagement/v1a" + + "lpha/resources.proto\022*google.cloud.gdcha" + + "rdwaremanagement.v1alpha\032\037google/api/fie" + + "ld_behavior.proto\032\033google/api/field_info" + + ".proto\032\031google/api/resource.proto\032\037googl" + + "e/protobuf/timestamp.proto\032\026google/type/" + + "date.proto\032\032google/type/datetime.proto\032\033" + + "google/type/dayofweek.proto\032 google/type" + + "/postal_address.proto\032\033google/type/timeo" + + "fday.proto\"\375\t\n\005Order\022\021\n\004name\030\001 \001(\tB\003\340A\010\022" + + "\031\n\014display_name\030\r \001(\tB\003\340A\001\0224\n\013create_tim" + + "e\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + + "\0224\n\013update_time\030\003 \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\022R\n\006labels\030\004 \003(\0132=.google." + + "cloud.gdchardwaremanagement.v1alpha.Orde" + + "r.LabelsEntryB\003\340A\001\022K\n\005state\030\005 \001(\01627.goog" + + "le.cloud.gdchardwaremanagement.v1alpha.O" + + "rder.StateB\003\340A\003\022b\n\024organization_contact\030" + + "\006 \001(\0132?.google.cloud.gdchardwaremanageme" + + "nt.v1alpha.OrganizationContactB\003\340A\002\022\035\n\020t" + + "arget_workloads\030\007 \003(\tB\003\340A\001\022 \n\023customer_m" + + "otivation\030\010 \001(\tB\003\340A\002\0229\n\020fulfillment_time" + + "\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A\002\022" + + "\030\n\013region_code\030\n \001(\tB\003\340A\002\022\033\n\016order_form_" + + "uri\030\013 \001(\tB\003\340A\003\022I\n\004type\030\014 \001(\01626.google.cl" + + "oud.gdchardwaremanagement.v1alpha.Order." + + "TypeB\003\340A\003\0224\n\013submit_time\030\016 \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\003\022\027\n\nbilling_id\030\017 " + + "\001(\tB\003\340A\002\022\\\n\021existing_hardware\030\020 \003(\0132<.go" + + "ogle.cloud.gdchardwaremanagement.v1alpha" + + ".HardwareLocationB\003\340A\001\032-\n\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\321\001\n\005State\022" + + "\025\n\021STATE_UNSPECIFIED\020\000\022\t\n\005DRAFT\020\001\022\r\n\tSUB" + + "MITTED\020\002\022\014\n\010ACCEPTED\020\003\022\032\n\026ADDITIONAL_INF" + + "O_NEEDED\020\004\022\014\n\010BUILDING\020\005\022\014\n\010SHIPPING\020\006\022\016" + + "\n\nINSTALLING\020\007\022\n\n\006FAILED\020\010\022\027\n\023PARTIALLY_" + + "COMPLETED\020\t\022\r\n\tCOMPLETED\020\n\022\r\n\tCANCELLED\020" + + "\013\"/\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\010\n\004PAID\020" + + "\001\022\007\n\003POC\020\002:v\352As\n*gdchardwaremanagement.g" + + "oogleapis.com/Order\0226projects/{project}/" + + "locations/{location}/orders/{order}*\006ord" + + "ers2\005order\"\234\005\n\004Site\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\031" + + "\n\014display_name\030\030 \001(\tB\003\340A\001\022\030\n\013description" + + "\030\031 \001(\tB\003\340A\001\0224\n\013create_time\030\002 \001(\0132\032.googl" + + "e.protobuf.TimestampB\003\340A\003\0224\n\013update_time" + + "\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + + "Q\n\006labels\030\004 \003(\0132<.google.cloud.gdchardwa" + + "remanagement.v1alpha.Site.LabelsEntryB\003\340" + + "A\001\022b\n\024organization_contact\030\005 \001(\0132?.googl" + + "e.cloud.gdchardwaremanagement.v1alpha.Or" + + "ganizationContactB\003\340A\002\022 \n\023google_maps_pi" + + "n_uri\030\006 \001(\tB\003\340A\002\022Q\n\014access_times\030\032 \003(\01326" + + ".google.cloud.gdchardwaremanagement.v1al" + + "pha.TimePeriodB\003\340A\001\022\022\n\005notes\030\033 \001(\tB\003\340A\001\032" + + "-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + + "(\t:\0028\001:q\352An\n)gdchardwaremanagement.googl" + + "eapis.com/Site\0224projects/{project}/locat" + + "ions/{location}/sites/{site}*\005sites2\004sit" + + "e\"\352\007\n\rHardwareGroup\022\021\n\004name\030\001 \001(\tB\003\340A\010\0224" + + "\n\013create_time\030\002 \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.goog" + + "le.protobuf.TimestampB\003\340A\003\022Z\n\006labels\030\004 \003" + + "(\0132E.google.cloud.gdchardwaremanagement." + + "v1alpha.HardwareGroup.LabelsEntryB\003\340A\001\022\033" + + "\n\016hardware_count\030\005 \001(\005B\003\340A\002\022O\n\006config\030\006 " + + "\001(\0132:.google.cloud.gdchardwaremanagement" + + ".v1alpha.HardwareConfigB\003\340A\002\022?\n\004site\030\007 \001" + + "(\tB1\340A\002\372A+\n)gdchardwaremanagement.google" + + "apis.com/Site\022S\n\005state\030\010 \001(\0162?.google.cl" + + "oud.gdchardwaremanagement.v1alpha.Hardwa" + + "reGroup.StateB\003\340A\003\022?\n\004zone\030\t \001(\tB1\340A\001\372A+" + + "\n)gdchardwaremanagement.googleapis.com/Z" + + "one\022;\n\033requested_installation_date\030\n \001(\013" + + "2\021.google.type.DateB\003\340A\001\032-\n\013LabelsEntry\022" + + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\232\001\n\005Stat" + + "e\022\025\n\021STATE_UNSPECIFIED\020\000\022\032\n\026ADDITIONAL_I" + + "NFO_NEEDED\020\001\022\014\n\010BUILDING\020\002\022\014\n\010SHIPPING\020\003" + + "\022\016\n\nINSTALLING\020\004\022\027\n\023PARTIALLY_INSTALLED\020" + + "\005\022\r\n\tINSTALLED\020\006\022\n\n\006FAILED\020\007:\257\001\352A\253\001\n2gdc" + + "hardwaremanagement.googleapis.com/Hardwa" + + "reGroup\022Vprojects/{project}/locations/{l" + + "ocation}/orders/{order}/hardwareGroups/{" + + "hardware_group}*\016hardwareGroups2\rhardwar" + + "eGroup\"\375\n\n\010Hardware\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\031" + + "\n\014display_name\030\002 \001(\tB\003\340A\001\0224\n\013create_time" + + "\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + + "4\n\013update_time\030\004 \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003\022U\n\006labels\030\005 \003(\0132@.google.c" + + "loud.gdchardwaremanagement.v1alpha.Hardw" + + "are.LabelsEntryB\003\340A\001\022A\n\005order\030\006 \001(\tB2\340A\002" + + "\372A,\n*gdchardwaremanagement.googleapis.co" + + "m/Order\022R\n\016hardware_group\030\007 \001(\tB:\340A\003\372A4\n" + + "2gdchardwaremanagement.googleapis.com/Ha" + + "rdwareGroup\022?\n\004site\030\010 \001(\tB1\340A\002\372A+\n)gdcha" + + "rdwaremanagement.googleapis.com/Site\022N\n\005" + + "state\030\t \001(\0162:.google.cloud.gdchardwarema" + + "nagement.v1alpha.Hardware.StateB\003\340A\003\022\024\n\007" + + "ciq_uri\030\n \001(\tB\003\340A\003\022O\n\006config\030\013 \001(\0132:.goo" + + "gle.cloud.gdchardwaremanagement.v1alpha." + + "HardwareConfigB\003\340A\002\022;\n\033estimated_install" + + "ation_date\030\014 \001(\0132\021.google.type.DateB\003\340A\003" + + "\022\\\n\rphysical_info\030\r \001(\0132@.google.cloud.g" + + "dchardwaremanagement.v1alpha.HardwarePhy" + + "sicalInfoB\003\340A\001\022d\n\021installation_info\030\016 \001(" + + "\0132D.google.cloud.gdchardwaremanagement.v" + + "1alpha.HardwareInstallationInfoB\003\340A\001\022?\n\004" + + "zone\030\017 \001(\tB1\340A\002\372A+\n)gdchardwaremanagemen" + + "t.googleapis.com/Zone\022;\n\033requested_insta" + + "llation_date\030\020 \001(\0132\021.google.type.DateB\003\340" + + "A\001\0228\n\030actual_installation_date\030\021 \001(\0132\021.g" + + "oogle.type.DateB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\201\001\n\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\032\n\026ADDITIONAL_INFO_" + + "NEEDED\020\001\022\014\n\010BUILDING\020\002\022\014\n\010SHIPPING\020\003\022\016\n\n" + + "INSTALLING\020\004\022\r\n\tINSTALLED\020\005\022\n\n\006FAILED\020\006:" + + "\204\001\352A\200\001\n-gdchardwaremanagement.googleapis" + + ".com/Hardware\022;projects/{project}/locati" + + "ons/{location}/hardware/{hardware}*\010hard" + + "ware2\010hardware\"\222\003\n\007Comment\022\021\n\004name\030\001 \001(\t" + + "B\003\340A\010\0224\n\013create_time\030\002 \001(\0132\032.google.prot" + + "obuf.TimestampB\003\340A\003\022T\n\006labels\030\003 \003(\0132?.go" + + "ogle.cloud.gdchardwaremanagement.v1alpha" + + ".Comment.LabelsEntryB\003\340A\001\022\023\n\006author\030\004 \001(" + + "\tB\003\340A\003\022\021\n\004text\030\005 \001(\tB\003\340A\002\032-\n\013LabelsEntry" + + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\220\001\352A\214\001\n" + + ",gdchardwaremanagement.googleapis.com/Co" + + "mment\022Iprojects/{project}/locations/{loc" + + "ation}/orders/{order}/comments/{comment}" + + "*\010comments2\007comment\"\261\003\n\016ChangeLogEntry\022\021" + + "\n\004name\030\001 \001(\tB\003\340A\010\0224\n\013create_time\030\002 \001(\0132\032" + + ".google.protobuf.TimestampB\003\340A\003\022[\n\006label" + + "s\030\003 \003(\0132F.google.cloud.gdchardwaremanage" + + "ment.v1alpha.ChangeLogEntry.LabelsEntryB" + + "\003\340A\001\022\020\n\003log\030\004 \001(\tB\003\340A\003\032-\n\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\267\001\352A\263\001\n3gd" + + "chardwaremanagement.googleapis.com/Chang" + + "eLogEntry\022Zprojects/{project}/locations/" + + "{location}/orders/{order}/changeLogEntri" + + "es/{change_log_entry}*\020changeLogEntries2" + + "\016changeLogEntry\"\214\005\n\003Sku\022\021\n\004name\030\001 \001(\tB\003\340" + + "A\010\022\031\n\014display_name\030\002 \001(\tB\003\340A\003\0224\n\013create_" + + "time\030\003 \001(\0132\032.google.protobuf.TimestampB\003" + + "\340A\003\0224\n\013update_time\030\004 \001(\0132\032.google.protob" + + "uf.TimestampB\003\340A\003\022J\n\006config\030\006 \001(\01325.goog" + + "le.cloud.gdchardwaremanagement.v1alpha.S" + + "kuConfigB\003\340A\003\022O\n\tinstances\030\007 \003(\01327.googl" + + "e.cloud.gdchardwaremanagement.v1alpha.Sk" + + "uInstanceB\003\340A\003\022\030\n\013description\030\010 \001(\tB\003\340A\003" + + "\022\030\n\013revision_id\030\t \001(\tB\003\340A\003\022\026\n\tis_active\030" + + "\n \001(\010B\003\340A\003\022G\n\004type\030\013 \001(\01624.google.cloud." + + "gdchardwaremanagement.v1alpha.Sku.TypeB\003" + + "\340A\003\022\027\n\nvcpu_count\030\014 \001(\005B\003\340A\003\"2\n\004Type\022\024\n\020" + + "TYPE_UNSPECIFIED\020\000\022\010\n\004RACK\020\001\022\n\n\006SERVER\020\002" + + ":l\352Ai\n(gdchardwaremanagement.googleapis." + + "com/Sku\0222projects/{project}/locations/{l" + + "ocation}/skus/{sku}*\004skus2\003sku\"\233\007\n\004Zone\022" + + "\021\n\004name\030\001 \001(\tB\003\340A\010\0224\n\013create_time\030\002 \001(\0132" + + "\032.google.protobuf.TimestampB\003\340A\003\0224\n\013upda" + + "te_time\030\003 \001(\0132\032.google.protobuf.Timestam" + + "pB\003\340A\003\022Q\n\006labels\030\004 \003(\0132<.google.cloud.gd" + + "chardwaremanagement.v1alpha.Zone.LabelsE" + + "ntryB\003\340A\001\022\031\n\014display_name\030\005 \001(\tB\003\340A\001\022J\n\005" + + "state\030\010 \001(\01626.google.cloud.gdchardwarema" + + "nagement.v1alpha.Zone.StateB\003\340A\003\022J\n\010cont" + + "acts\030\t \003(\01323.google.cloud.gdchardwareman" + + "agement.v1alpha.ContactB\003\340A\002\022\024\n\007ciq_uri\030" + + "\n \001(\tB\003\340A\003\022Z\n\016network_config\030\013 \001(\0132=.goo" + + "gle.cloud.gdchardwaremanagement.v1alpha." + + "ZoneNetworkConfigB\003\340A\001\022\037\n\022globally_uniqu" + + "e_id\030\014 \001(\tB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\330\001\n\005State\022\025\n\021STAT" + + "E_UNSPECIFIED\020\000\022\032\n\026ADDITIONAL_INFO_NEEDE" + + "D\020\001\022\r\n\tPREPARING\020\002\022,\n(READY_FOR_CUSTOMER" + + "_FACTORY_TURNUP_CHECKS\020\005\022\031\n\025READY_FOR_SI" + + "TE_TURNUP\020\006\022)\n%CUSTOMER_FACTORY_TURNUP_C" + + "HECKS_FAILED\020\007\022\n\n\006ACTIVE\020\003\022\r\n\tCANCELLED\020" + + "\004:q\352An\n)gdchardwaremanagement.googleapis" + + ".com/Zone\0224projects/{project}/locations/" + + "{location}/zones/{zone}*\005zones2\004zone\"\273\001\n" + + "\023OrganizationContact\0220\n\007address\030\001 \001(\0132\032." + + "google.type.PostalAddressB\003\340A\002\022\022\n\005email\030" + + "\002 \001(\tB\003\340A\001\022\022\n\005phone\030\003 \001(\tB\003\340A\001\022J\n\010contac" + + "ts\030\004 \003(\01323.google.cloud.gdchardwaremanag" + + "ement.v1alpha.ContactB\003\340A\002\"\351\001\n\007Contact\022\027" + + "\n\ngiven_name\030\001 \001(\tB\003\340A\002\022\030\n\013family_name\030\002" + + " \001(\tB\003\340A\001\022\022\n\005email\030\003 \001(\tB\003\340A\002\022\022\n\005phone\030\004" + + " \001(\tB\003\340A\002\022-\n\ttime_zone\030\005 \001(\0132\025.google.ty" + + "pe.TimeZoneB\003\340A\001\022T\n\017reachable_times\030\006 \003(" + + "\01326.google.cloud.gdchardwaremanagement.v" + + "1alpha.TimePeriodB\003\340A\001\"\316\001\n\016HardwareConfi" + + "g\022=\n\003sku\030\001 \001(\tB0\340A\002\372A*\n(gdchardwaremanag" + + "ement.googleapis.com/Sku\022R\n\014power_supply" + + "\030\002 \001(\01627.google.cloud.gdchardwaremanagem" + + "ent.v1alpha.PowerSupplyB\003\340A\002\022)\n\034subscrip" + + "tion_duration_months\030\003 \001(\005B\003\340A\001\"C\n\tSkuCo" + + "nfig\022\013\n\003cpu\030\001 \001(\t\022\013\n\003gpu\030\002 \001(\t\022\013\n\003ram\030\003 " + + "\001(\t\022\017\n\007storage\030\004 \001(\t\"\312\001\n\013SkuInstance\022\023\n\013" + + "region_code\030\001 \001(\t\022M\n\014power_supply\030\002 \001(\0162" + + "7.google.cloud.gdchardwaremanagement.v1a" + + "lpha.PowerSupply\022\023\n\013billing_sku\030\003 \001(\t\022\034\n" + + "\024billing_sku_per_vcpu\030\004 \001(\t\022$\n\034subscript" + + "ion_duration_months\030\005 \001(\005\"\343\005\n\024HardwarePh" + + "ysicalInfo\022s\n\020power_receptacle\030\001 \001(\0162T.g" + + "oogle.cloud.gdchardwaremanagement.v1alph" + + "a.HardwarePhysicalInfo.PowerReceptacleTy" + + "peB\003\340A\002\022o\n\016network_uplink\030\002 \001(\0162R.google" + + ".cloud.gdchardwaremanagement.v1alpha.Har" + + "dwarePhysicalInfo.NetworkUplinkTypeB\003\340A\002" + + "\022^\n\007voltage\030\003 \001(\0162H.google.cloud.gdchard" + + "waremanagement.v1alpha.HardwarePhysicalI" + + "nfo.VoltageB\003\340A\002\022^\n\007amperes\030\004 \001(\0162H.goog" + + "le.cloud.gdchardwaremanagement.v1alpha.H" + + "ardwarePhysicalInfo.AmperesB\003\340A\002\"f\n\023Powe" + + "rReceptacleType\022%\n!POWER_RECEPTACLE_TYPE" + + "_UNSPECIFIED\020\000\022\r\n\tNEMA_5_15\020\001\022\010\n\004C_13\020\002\022" + + "\017\n\013STANDARD_EU\020\003\"C\n\021NetworkUplinkType\022#\n" + + "\037NETWORK_UPLINK_TYPE_UNSPECIFIED\020\000\022\t\n\005RJ" + + "_45\020\001\"D\n\007Voltage\022\027\n\023VOLTAGE_UNSPECIFIED\020" + + "\000\022\017\n\013VOLTAGE_110\020\001\022\017\n\013VOLTAGE_220\020\003\"2\n\007A" + + "mperes\022\027\n\023AMPERES_UNSPECIFIED\020\000\022\016\n\nAMPER" + + "ES_15\020\001\"\325\003\n\030HardwareInstallationInfo\022\032\n\r" + + "rack_location\030\001 \001(\tB\003\340A\001\022\"\n\025power_distan" + + "ce_meters\030\002 \001(\005B\003\340A\002\022#\n\026switch_distance_" + + "meters\030\003 \001(\005B\003\340A\002\022Y\n\024rack_unit_dimension" + + "s\030\004 \001(\01326.google.cloud.gdchardwaremanage" + + "ment.v1alpha.DimensionsB\003\340A\002\022N\n\nrack_spa" + + "ce\030\005 \001(\01325.google.cloud.gdchardwaremanag" + + "ement.v1alpha.RackSpaceB\003\340A\002\022e\n\track_typ" + + "e\030\006 \001(\0162M.google.cloud.gdchardwaremanage" + + "ment.v1alpha.HardwareInstallationInfo.Ra" + + "ckTypeB\003\340A\002\"B\n\010RackType\022\031\n\025RACK_TYPE_UNS" + + "PECIFIED\020\000\022\014\n\010TWO_POST\020\001\022\r\n\tFOUR_POST\020\002\"" + + "\336\002\n\021ZoneNetworkConfig\022,\n\027machine_mgmt_ip" + + "v4_range\030\001 \001(\tB\013\340A\002\342\214\317\327\010\002\010\002\022/\n\032kubernete" + + "s_node_ipv4_range\030\002 \001(\tB\013\340A\002\342\214\317\327\010\002\010\002\0228\n#" + + "kubernetes_control_plane_ipv4_range\030\003 \001(" + + "\tB\013\340A\002\342\214\317\327\010\002\010\002\022W\n\026management_ipv4_subnet" + + "\030\004 \001(\01322.google.cloud.gdchardwaremanagem" + + "ent.v1alpha.SubnetB\003\340A\002\022W\n\026kubernetes_ip" + + "v4_subnet\030\005 \001(\01322.google.cloud.gdchardwa" + + "remanagement.v1alpha.SubnetB\003\340A\001\"]\n\006Subn" + + "et\022\"\n\raddress_range\030\001 \001(\tB\013\340A\002\342\214\317\327\010\002\010\002\022/" + + "\n\032default_gateway_ip_address\030\002 \001(\tB\013\340A\002\342" + + "\214\317\327\010\002\010\002\"\227\001\n\nTimePeriod\022/\n\nstart_time\030\001 \001" + + "(\0132\026.google.type.TimeOfDayB\003\340A\002\022-\n\010end_t" + + "ime\030\002 \001(\0132\026.google.type.TimeOfDayB\003\340A\002\022)" + + "\n\004days\030\003 \003(\0162\026.google.type.DayOfWeekB\003\340A" + + "\002\"^\n\nDimensions\022\031\n\014width_inches\030\001 \001(\002B\003\340" + + "A\002\022\032\n\rheight_inches\030\002 \001(\002B\003\340A\002\022\031\n\014depth_" + + "inches\030\003 \001(\002B\003\340A\002\"E\n\tRackSpace\022\034\n\017start_" + + "rack_unit\030\001 \001(\005B\003\340A\002\022\032\n\rend_rack_unit\030\002 " + + "\001(\005B\003\340A\002\"\277\001\n\020HardwareLocation\022?\n\004site\030\001 " + + "\001(\tB1\340A\002\372A+\n)gdchardwaremanagement.googl" + + "eapis.com/Site\022\032\n\rrack_location\030\002 \001(\tB\003\340" + + "A\002\022N\n\nrack_space\030\003 \003(\01325.google.cloud.gd" + + "chardwaremanagement.v1alpha.RackSpaceB\003\340" + + "A\001*U\n\013PowerSupply\022\034\n\030POWER_SUPPLY_UNSPEC" + + "IFIED\020\000\022\023\n\017POWER_SUPPLY_AC\020\001\022\023\n\017POWER_SU" + + "PPLY_DC\020\002B\262\002\n.com.google.cloud.gdchardwa" + + "remanagement.v1alphaB\016ResourcesProtoP\001Zd" + + "cloud.google.com/go/gdchardwaremanagemen" + + "t/apiv1alpha/gdchardwaremanagementpb;gdc" + + "hardwaremanagementpb\252\002*Google.Cloud.GdcH" + + "ardwareManagement.V1Alpha\312\002*Google\\Cloud" + + "\\GdcHardwareManagement\\V1alpha\352\002-Google:" + + ":Cloud::GDCHardwareManagement::V1alphab\006" + + "proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.FieldInfoProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.type.DateProto.getDescriptor(), + com.google.type.DateTimeProto.getDescriptor(), + com.google.type.DayOfWeekProto.getDescriptor(), + com.google.type.PostalAddressProto.getDescriptor(), + com.google.type.TimeOfDayProto.getDescriptor(), + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Order_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Order_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Order_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "CreateTime", + "UpdateTime", + "Labels", + "State", + "OrganizationContact", + "TargetWorkloads", + "CustomerMotivation", + "FulfillmentTime", + "RegionCode", + "OrderFormUri", + "Type", + "SubmitTime", + "BillingId", + "ExistingHardware", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Order_LabelsEntry_descriptor = + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Order_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Order_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Order_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Site_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Site_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Site_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Description", + "CreateTime", + "UpdateTime", + "Labels", + "OrganizationContact", + "GoogleMapsPinUri", + "AccessTimes", + "Notes", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Site_LabelsEntry_descriptor = + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Site_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Site_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Site_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwareGroup_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwareGroup_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwareGroup_descriptor, + new java.lang.String[] { + "Name", + "CreateTime", + "UpdateTime", + "Labels", + "HardwareCount", + "Config", + "Site", + "State", + "Zone", + "RequestedInstallationDate", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwareGroup_LabelsEntry_descriptor = + internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwareGroup_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwareGroup_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwareGroup_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "CreateTime", + "UpdateTime", + "Labels", + "Order", + "HardwareGroup", + "Site", + "State", + "CiqUri", + "Config", + "EstimatedInstallationDate", + "PhysicalInfo", + "InstallationInfo", + "Zone", + "RequestedInstallationDate", + "ActualInstallationDate", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_LabelsEntry_descriptor = + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Hardware_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Comment_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Comment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Comment_descriptor, + new java.lang.String[] { + "Name", "CreateTime", "Labels", "Author", "Text", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Comment_LabelsEntry_descriptor = + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Comment_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Comment_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Comment_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ChangeLogEntry_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ChangeLogEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ChangeLogEntry_descriptor, + new java.lang.String[] { + "Name", "CreateTime", "Labels", "Log", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ChangeLogEntry_LabelsEntry_descriptor = + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ChangeLogEntry_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ChangeLogEntry_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ChangeLogEntry_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Sku_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Sku_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Sku_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "CreateTime", + "UpdateTime", + "Config", + "Instances", + "Description", + "RevisionId", + "IsActive", + "Type", + "VcpuCount", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Zone_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Zone_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Zone_descriptor, + new java.lang.String[] { + "Name", + "CreateTime", + "UpdateTime", + "Labels", + "DisplayName", + "State", + "Contacts", + "CiqUri", + "NetworkConfig", + "GloballyUniqueId", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Zone_LabelsEntry_descriptor = + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Zone_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Zone_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Zone_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_OrganizationContact_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_OrganizationContact_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_OrganizationContact_descriptor, + new java.lang.String[] { + "Address", "Email", "Phone", "Contacts", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Contact_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Contact_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Contact_descriptor, + new java.lang.String[] { + "GivenName", "FamilyName", "Email", "Phone", "TimeZone", "ReachableTimes", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwareConfig_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwareConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwareConfig_descriptor, + new java.lang.String[] { + "Sku", "PowerSupply", "SubscriptionDurationMonths", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_SkuConfig_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_SkuConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_SkuConfig_descriptor, + new java.lang.String[] { + "Cpu", "Gpu", "Ram", "Storage", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_SkuInstance_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_SkuInstance_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_SkuInstance_descriptor, + new java.lang.String[] { + "RegionCode", + "PowerSupply", + "BillingSku", + "BillingSkuPerVcpu", + "SubscriptionDurationMonths", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwarePhysicalInfo_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwarePhysicalInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwarePhysicalInfo_descriptor, + new java.lang.String[] { + "PowerReceptacle", "NetworkUplink", "Voltage", "Amperes", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwareInstallationInfo_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwareInstallationInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwareInstallationInfo_descriptor, + new java.lang.String[] { + "RackLocation", + "PowerDistanceMeters", + "SwitchDistanceMeters", + "RackUnitDimensions", + "RackSpace", + "RackType", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ZoneNetworkConfig_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ZoneNetworkConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ZoneNetworkConfig_descriptor, + new java.lang.String[] { + "MachineMgmtIpv4Range", + "KubernetesNodeIpv4Range", + "KubernetesControlPlaneIpv4Range", + "ManagementIpv4Subnet", + "KubernetesIpv4Subnet", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Subnet_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Subnet_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Subnet_descriptor, + new java.lang.String[] { + "AddressRange", "DefaultGatewayIpAddress", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_TimePeriod_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_TimePeriod_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_TimePeriod_descriptor, + new java.lang.String[] { + "StartTime", "EndTime", "Days", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Dimensions_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Dimensions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_Dimensions_descriptor, + new java.lang.String[] { + "WidthInches", "HeightInches", "DepthInches", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_RackSpace_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_RackSpace_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_RackSpace_descriptor, + new java.lang.String[] { + "StartRackUnit", "EndRackUnit", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwareLocation_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwareLocation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_HardwareLocation_descriptor, + new java.lang.String[] { + "Site", "RackLocation", "RackSpace", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.FieldInfoProto.fieldInfo); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.FieldInfoProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.type.DateProto.getDescriptor(); + com.google.type.DateTimeProto.getDescriptor(); + com.google.type.DayOfWeekProto.getDescriptor(); + com.google.type.PostalAddressProto.getDescriptor(); + com.google.type.TimeOfDayProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ServiceProto.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ServiceProto.java new file mode 100644 index 000000000000..8d3553f727b9 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ServiceProto.java @@ -0,0 +1,969 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public final class ServiceProto { + private ServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListOrdersRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListOrdersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListOrdersResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListOrdersResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetOrderRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetOrderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateOrderRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateOrderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateOrderRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateOrderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteOrderRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteOrderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_SubmitOrderRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_SubmitOrderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSitesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSitesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSitesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSitesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetSiteRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetSiteRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateSiteRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateSiteRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateSiteRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateSiteRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareGroupsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareGroupsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareGroupsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareGroupsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetHardwareGroupRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetHardwareGroupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateHardwareGroupRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateHardwareGroupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateHardwareGroupRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateHardwareGroupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteHardwareGroupRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteHardwareGroupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetHardwareRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetHardwareRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateHardwareRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateHardwareRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateHardwareRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateHardwareRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteHardwareRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteHardwareRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListCommentsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListCommentsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListCommentsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListCommentsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetCommentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetCommentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateCommentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateCommentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListChangeLogEntriesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListChangeLogEntriesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListChangeLogEntriesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListChangeLogEntriesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetChangeLogEntryRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetChangeLogEntryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSkusRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSkusRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSkusResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSkusResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetSkuRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetSkuRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListZonesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListZonesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListZonesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListZonesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetZoneRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetZoneRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateZoneRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateZoneRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateZoneRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateZoneRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteZoneRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteZoneRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_SignalZoneStateRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_SignalZoneStateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gdchardwaremanagement_v1alpha_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gdchardwaremanagement_v1alpha_OperationMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n8google/cloud/gdchardwaremanagement/v1a" + + "lpha/service.proto\022*google.cloud.gdchard" + + "waremanagement.v1alpha\032\034google/api/annot" + + "ations.proto\032\027google/api/client.proto\032\037g" + + "oogle/api/field_behavior.proto\032\033google/a" + + "pi/field_info.proto\032\031google/api/resource" + + ".proto\032:google/cloud/gdchardwaremanageme" + + "nt/v1alpha/resources.proto\032#google/longr" + + "unning/operations.proto\032\033google/protobuf" + + "/empty.proto\032 google/protobuf/field_mask" + + ".proto\032\037google/protobuf/timestamp.proto\"" + + "\264\001\n\021ListOrdersRequest\022B\n\006parent\030\001 \001(\tB2\340" + + "A\002\372A,\022*gdchardwaremanagement.googleapis." + + "com/Order\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npag" + + "e_token\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022" + + "\025\n\010order_by\030\005 \001(\tB\003\340A\001\"\205\001\n\022ListOrdersRes" + + "ponse\022A\n\006orders\030\001 \003(\01321.google.cloud.gdc" + + "hardwaremanagement.v1alpha.Order\022\027\n\017next" + + "_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"S" + + "\n\017GetOrderRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n" + + "*gdchardwaremanagement.googleapis.com/Or" + + "der\"\317\001\n\022CreateOrderRequest\022B\n\006parent\030\001 \001" + + "(\tB2\340A\002\372A,\022*gdchardwaremanagement.google" + + "apis.com/Order\022\025\n\010order_id\030\002 \001(\tB\003\340A\001\022E\n" + + "\005order\030\003 \001(\01321.google.cloud.gdchardwarem" + + "anagement.v1alpha.OrderB\003\340A\002\022\027\n\nrequest_" + + "id\030\004 \001(\tB\003\340A\001\"\252\001\n\022UpdateOrderRequest\0224\n\013" + + "update_mask\030\001 \001(\0132\032.google.protobuf.Fiel" + + "dMaskB\003\340A\002\022E\n\005order\030\002 \001(\01321.google.cloud" + + ".gdchardwaremanagement.v1alpha.OrderB\003\340A" + + "\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"\203\001\n\022DeleteOrd" + + "erRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*gdchard" + + "waremanagement.googleapis.com/Order\022\027\n\nr" + + "equest_id\030\002 \001(\tB\003\340A\001\022\022\n\005force\030\003 \001(\010B\003\340A\001" + + "\"o\n\022SubmitOrderRequest\022@\n\004name\030\001 \001(\tB2\340A" + + "\002\372A,\n*gdchardwaremanagement.googleapis.c" + + "om/Order\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\262\001\n\020Li" + + "stSitesRequest\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\022)" + + "gdchardwaremanagement.googleapis.com/Sit" + + "e\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030" + + "\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010order" + + "_by\030\005 \001(\tB\003\340A\001\"\202\001\n\021ListSitesResponse\022?\n\005" + + "sites\030\001 \003(\01320.google.cloud.gdchardwarema" + + "nagement.v1alpha.Site\022\027\n\017next_page_token" + + "\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"Q\n\016GetSiteRe" + + "quest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)gdchardware" + + "management.googleapis.com/Site\"\312\001\n\021Creat" + + "eSiteRequest\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\022)gd" + + "chardwaremanagement.googleapis.com/Site\022" + + "\024\n\007site_id\030\002 \001(\tB\003\340A\001\022C\n\004site\030\003 \001(\01320.go" + + "ogle.cloud.gdchardwaremanagement.v1alpha" + + ".SiteB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\247\001\n\021" + + "UpdateSiteRequest\0224\n\013update_mask\030\001 \001(\0132\032" + + ".google.protobuf.FieldMaskB\003\340A\002\022C\n\004site\030" + + "\002 \001(\01320.google.cloud.gdchardwaremanageme" + + "nt.v1alpha.SiteB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\t" + + "B\003\340A\001\"\304\001\n\031ListHardwareGroupsRequest\022J\n\006p" + + "arent\030\001 \001(\tB:\340A\002\372A4\0222gdchardwaremanageme" + + "nt.googleapis.com/HardwareGroup\022\026\n\tpage_" + + "size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001" + + "\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(\tB" + + "\003\340A\001\"\236\001\n\032ListHardwareGroupsResponse\022R\n\017h" + + "ardware_groups\030\001 \003(\01329.google.cloud.gdch" + + "ardwaremanagement.v1alpha.HardwareGroup\022" + + "\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachable\030" + + "\003 \003(\t\"c\n\027GetHardwareGroupRequest\022H\n\004name" + + "\030\001 \001(\tB:\340A\002\372A4\n2gdchardwaremanagement.go" + + "ogleapis.com/HardwareGroup\"\371\001\n\032CreateHar" + + "dwareGroupRequest\022J\n\006parent\030\001 \001(\tB:\340A\002\372A" + + "4\0222gdchardwaremanagement.googleapis.com/" + + "HardwareGroup\022\036\n\021hardware_group_id\030\002 \001(\t" + + "B\003\340A\001\022V\n\016hardware_group\030\003 \001(\01329.google.c" + + "loud.gdchardwaremanagement.v1alpha.Hardw" + + "areGroupB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\303" + + "\001\n\032UpdateHardwareGroupRequest\0224\n\013update_" + + "mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003" + + "\340A\002\022V\n\016hardware_group\030\002 \001(\01329.google.clo" + + "ud.gdchardwaremanagement.v1alpha.Hardwar" + + "eGroupB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"\177\n\032" + + "DeleteHardwareGroupRequest\022H\n\004name\030\001 \001(\t" + + "B:\340A\002\372A4\n2gdchardwaremanagement.googleap" + + "is.com/HardwareGroup\022\027\n\nrequest_id\030\002 \001(\t" + + "B\003\340A\001\"\271\001\n\023ListHardwareRequest\022E\n\006parent\030" + + "\001 \001(\tB5\340A\002\372A/\022-gdchardwaremanagement.goo" + + "gleapis.com/Hardware\022\026\n\tpage_size\030\002 \001(\005B" + + "\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030" + + "\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(\tB\003\340A\001\"\214\001\n\024Li" + + "stHardwareResponse\022F\n\010hardware\030\001 \003(\01324.g" + + "oogle.cloud.gdchardwaremanagement.v1alph" + + "a.Hardware\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013u" + + "nreachable\030\003 \003(\t\"Y\n\022GetHardwareRequest\022C" + + "\n\004name\030\001 \001(\tB5\340A\002\372A/\n-gdchardwaremanagem" + + "ent.googleapis.com/Hardware\"\305\001\n\025CreateHa" + + "rdwareRequest\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/\022-g" + + "dchardwaremanagement.googleapis.com/Hard" + + "ware\022\030\n\013hardware_id\030\002 \001(\tB\003\340A\001\022K\n\010hardwa" + + "re\030\003 \001(\01324.google.cloud.gdchardwaremanag" + + "ement.v1alpha.HardwareB\003\340A\002\"\263\001\n\025UpdateHa" + + "rdwareRequest\0224\n\013update_mask\030\001 \001(\0132\032.goo" + + "gle.protobuf.FieldMaskB\003\340A\002\022K\n\010hardware\030" + + "\002 \001(\01324.google.cloud.gdchardwaremanageme" + + "nt.v1alpha.HardwareB\003\340A\002\022\027\n\nrequest_id\030\003" + + " \001(\tB\003\340A\001\"}\n\025DeleteHardwareRequest\022C\n\004na" + + "me\030\001 \001(\tB5\340A\002\372A/\n-gdchardwaremanagement." + + "googleapis.com/Hardware\022\037\n\nrequest_id\030\002 " + + "\001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\270\001\n\023ListCommentsRequest" + + "\022D\n\006parent\030\001 \001(\tB4\340A\002\372A.\022,gdchardwareman" + + "agement.googleapis.com/Comment\022\026\n\tpage_s" + + "ize\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022" + + "\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(\tB\003" + + "\340A\001\"\213\001\n\024ListCommentsResponse\022E\n\010comments" + + "\030\001 \003(\01323.google.cloud.gdchardwaremanagem" + + "ent.v1alpha.Comment\022\027\n\017next_page_token\030\002" + + " \001(\t\022\023\n\013unreachable\030\003 \003(\t\"W\n\021GetCommentR" + + "equest\022B\n\004name\030\001 \001(\tB4\340A\002\372A.\n,gdchardwar" + + "emanagement.googleapis.com/Comment\"\331\001\n\024C" + + "reateCommentRequest\022D\n\006parent\030\001 \001(\tB4\340A\002" + + "\372A.\022,gdchardwaremanagement.googleapis.co" + + "m/Comment\022\027\n\ncomment_id\030\002 \001(\tB\003\340A\001\022I\n\007co" + + "mment\030\003 \001(\01323.google.cloud.gdchardwarema" + + "nagement.v1alpha.CommentB\003\340A\002\022\027\n\nrequest" + + "_id\030\004 \001(\tB\003\340A\001\"\307\001\n\033ListChangeLogEntriesR" + + "equest\022K\n\006parent\030\001 \001(\tB;\340A\002\372A5\0223gdchardw" + + "aremanagement.googleapis.com/ChangeLogEn" + + "try\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_toke" + + "n\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010ord" + + "er_by\030\005 \001(\tB\003\340A\001\"\244\001\n\034ListChangeLogEntrie" + + "sResponse\022V\n\022change_log_entries\030\001 \003(\0132:." + + "google.cloud.gdchardwaremanagement.v1alp" + + "ha.ChangeLogEntry\022\027\n\017next_page_token\030\002 \001" + + "(\t\022\023\n\013unreachable\030\003 \003(\t\"e\n\030GetChangeLogE" + + "ntryRequest\022I\n\004name\030\001 \001(\tB;\340A\002\372A5\n3gdcha" + + "rdwaremanagement.googleapis.com/ChangeLo" + + "gEntry\"\260\001\n\017ListSkusRequest\022@\n\006parent\030\001 \001" + + "(\tB0\340A\002\372A*\022(gdchardwaremanagement.google" + + "apis.com/Sku\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340" + + "A\001\022\025\n\010order_by\030\005 \001(\tB\003\340A\001\"\177\n\020ListSkusRes" + + "ponse\022=\n\004skus\030\001 \003(\0132/.google.cloud.gdcha" + + "rdwaremanagement.v1alpha.Sku\022\027\n\017next_pag" + + "e_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"O\n\rGe" + + "tSkuRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(gdcha" + + "rdwaremanagement.googleapis.com/Sku\"\262\001\n\020" + + "ListZonesRequest\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+" + + "\022)gdchardwaremanagement.googleapis.com/Z" + + "one\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_toke" + + "n\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010ord" + + "er_by\030\005 \001(\tB\003\340A\001\"\202\001\n\021ListZonesResponse\022?" + + "\n\005zones\030\001 \003(\01320.google.cloud.gdchardware" + + "management.v1alpha.Zone\022\027\n\017next_page_tok" + + "en\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"Q\n\016GetZone" + + "Request\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)gdchardwa" + + "remanagement.googleapis.com/Zone\"\322\001\n\021Cre" + + "ateZoneRequest\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\022)" + + "gdchardwaremanagement.googleapis.com/Zon" + + "e\022\024\n\007zone_id\030\002 \001(\tB\003\340A\001\022C\n\004zone\030\003 \001(\01320." + + "google.cloud.gdchardwaremanagement.v1alp" + + "ha.ZoneB\003\340A\002\022\037\n\nrequest_id\030\004 \001(\tB\013\340A\001\342\214\317" + + "\327\010\002\010\001\"\257\001\n\021UpdateZoneRequest\0224\n\013update_ma" + + "sk\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A" + + "\002\022C\n\004zone\030\002 \001(\01320.google.cloud.gdchardwa" + + "remanagement.v1alpha.ZoneB\003\340A\002\022\037\n\nreques" + + "t_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"u\n\021DeleteZoneReq" + + "uest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)gdchardwarem" + + "anagement.googleapis.com/Zone\022\037\n\nrequest" + + "_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\317\002\n\026SignalZoneSta" + + "teRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)gdchard" + + "waremanagement.googleapis.com/Zone\022\037\n\nre" + + "quest_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\022i\n\014state_sig" + + "nal\030\003 \001(\0162N.google.cloud.gdchardwaremana" + + "gement.v1alpha.SignalZoneStateRequest.St" + + "ateSignalB\003\340A\002\"h\n\013StateSignal\022\034\n\030STATE_S" + + "IGNAL_UNSPECIFIED\020\000\022\031\n\025READY_FOR_SITE_TU" + + "RNUP\020\001\022 \n\034FACTORY_TURNUP_CHECKS_FAILED\020\002" + + "\"\200\002\n\021OperationMetadata\0224\n\013create_time\030\001 " + + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\0221\n\010" + + "end_time\030\002 \001(\0132\032.google.protobuf.Timesta" + + "mpB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001" + + "(\tB\003\340A\003\022\033\n\016status_message\030\005 \001(\tB\003\340A\003\022#\n\026" + + "requested_cancellation\030\006 \001(\010B\003\340A\003\022\030\n\013api" + + "_version\030\007 \001(\tB\003\340A\0032\372:\n\025GDCHardwareManag" + + "ement\022\315\001\n\nListOrders\022=.google.cloud.gdch" + + "ardwaremanagement.v1alpha.ListOrdersRequ" + + "est\032>.google.cloud.gdchardwaremanagement" + + ".v1alpha.ListOrdersResponse\"@\332A\006parent\202\323" + + "\344\223\0021\022//v1alpha/{parent=projects/*/locati" + + "ons/*}/orders\022\272\001\n\010GetOrder\022;.google.clou" + + "d.gdchardwaremanagement.v1alpha.GetOrder" + + "Request\0321.google.cloud.gdchardwaremanage" + + "ment.v1alpha.Order\">\332A\004name\202\323\344\223\0021\022//v1al" + + "pha/{name=projects/*/locations/*/orders/" + + "*}\022\341\001\n\013CreateOrder\022>.google.cloud.gdchar" + + "dwaremanagement.v1alpha.CreateOrderReque" + + "st\032\035.google.longrunning.Operation\"s\312A\032\n\005" + + "Order\022\021OperationMetadata\332A\025parent,order," + + "order_id\202\323\344\223\0028\"//v1alpha/{parent=project" + + "s/*/locations/*}/orders:\005order\022\343\001\n\013Updat" + + "eOrder\022>.google.cloud.gdchardwaremanagem" + + "ent.v1alpha.UpdateOrderRequest\032\035.google." + + "longrunning.Operation\"u\312A\032\n\005Order\022\021Opera" + + "tionMetadata\332A\021order,update_mask\202\323\344\223\002>25" + + "/v1alpha/{order.name=projects/*/location" + + "s/*/orders/*}:\005order\022\331\001\n\013DeleteOrder\022>.g" + + "oogle.cloud.gdchardwaremanagement.v1alph" + + "a.DeleteOrderRequest\032\035.google.longrunnin" + + "g.Operation\"k\312A*\n\025google.protobuf.Empty\022" + + "\021OperationMetadata\332A\004name\202\323\344\223\0021*//v1alph" + + "a/{name=projects/*/locations/*/orders/*}" + + "\022\323\001\n\013SubmitOrder\022>.google.cloud.gdchardw" + + "aremanagement.v1alpha.SubmitOrderRequest" + + "\032\035.google.longrunning.Operation\"e\312A\032\n\005Or" + + "der\022\021OperationMetadata\332A\004name\202\323\344\223\002;\"6/v1" + + "alpha/{name=projects/*/locations/*/order" + + "s/*}:submit:\001*\022\311\001\n\tListSites\022<.google.cl" + + "oud.gdchardwaremanagement.v1alpha.ListSi" + + "tesRequest\032=.google.cloud.gdchardwareman" + + "agement.v1alpha.ListSitesResponse\"?\332A\006pa" + + "rent\202\323\344\223\0020\022./v1alpha/{parent=projects/*/" + + "locations/*}/sites\022\266\001\n\007GetSite\022:.google." + + "cloud.gdchardwaremanagement.v1alpha.GetS" + + "iteRequest\0320.google.cloud.gdchardwareman" + + "agement.v1alpha.Site\"=\332A\004name\202\323\344\223\0020\022./v1" + + "alpha/{name=projects/*/locations/*/sites" + + "/*}\022\332\001\n\nCreateSite\022=.google.cloud.gdchar" + + "dwaremanagement.v1alpha.CreateSiteReques" + + "t\032\035.google.longrunning.Operation\"n\312A\031\n\004S" + + "ite\022\021OperationMetadata\332A\023parent,site,sit" + + "e_id\202\323\344\223\0026\"./v1alpha/{parent=projects/*/" + + "locations/*}/sites:\004site\022\334\001\n\nUpdateSite\022" + + "=.google.cloud.gdchardwaremanagement.v1a" + + "lpha.UpdateSiteRequest\032\035.google.longrunn" + + "ing.Operation\"p\312A\031\n\004Site\022\021OperationMetad" + + "ata\332A\020site,update_mask\202\323\344\223\002;23/v1alpha/{" + + "site.name=projects/*/locations/*/sites/*" + + "}:\004site\022\366\001\n\022ListHardwareGroups\022E.google." + + "cloud.gdchardwaremanagement.v1alpha.List" + + "HardwareGroupsRequest\032F.google.cloud.gdc" + + "hardwaremanagement.v1alpha.ListHardwareG" + + "roupsResponse\"Q\332A\006parent\202\323\344\223\002B\022@/v1alpha" + + "/{parent=projects/*/locations/*/orders/*" + + "}/hardwareGroups\022\343\001\n\020GetHardwareGroup\022C." + + "google.cloud.gdchardwaremanagement.v1alp" + + "ha.GetHardwareGroupRequest\0329.google.clou" + + "d.gdchardwaremanagement.v1alpha.Hardware" + + "Group\"O\332A\004name\202\323\344\223\002B\022@/v1alpha/{name=pro" + + "jects/*/locations/*/orders/*/hardwareGro" + + "ups/*}\022\246\002\n\023CreateHardwareGroup\022F.google." + + "cloud.gdchardwaremanagement.v1alpha.Crea" + + "teHardwareGroupRequest\032\035.google.longrunn" + + "ing.Operation\"\247\001\312A\"\n\rHardwareGroup\022\021Oper" + + "ationMetadata\332A\'parent,hardware_group,ha" + + "rdware_group_id\202\323\344\223\002R\"@/v1alpha/{parent=" + + "projects/*/locations/*/orders/*}/hardwar" + + "eGroups:\016hardware_group\022\250\002\n\023UpdateHardwa" + + "reGroup\022F.google.cloud.gdchardwaremanage" + + "ment.v1alpha.UpdateHardwareGroupRequest\032" + + "\035.google.longrunning.Operation\"\251\001\312A\"\n\rHa" + + "rdwareGroup\022\021OperationMetadata\332A\032hardwar" + + "e_group,update_mask\202\323\344\223\002a2O/v1alpha/{har" + + "dware_group.name=projects/*/locations/*/" + + "orders/*/hardwareGroups/*}:\016hardware_gro" + + "up\022\372\001\n\023DeleteHardwareGroup\022F.google.clou" + + "d.gdchardwaremanagement.v1alpha.DeleteHa" + + "rdwareGroupRequest\032\035.google.longrunning." + + "Operation\"|\312A*\n\025google.protobuf.Empty\022\021O" + + "perationMetadata\332A\004name\202\323\344\223\002B*@/v1alpha/" + + "{name=projects/*/locations/*/orders/*/ha" + + "rdwareGroups/*}\022\325\001\n\014ListHardware\022?.googl" + + "e.cloud.gdchardwaremanagement.v1alpha.Li" + + "stHardwareRequest\032@.google.cloud.gdchard" + + "waremanagement.v1alpha.ListHardwareRespo" + + "nse\"B\332A\006parent\202\323\344\223\0023\0221/v1alpha/{parent=p" + + "rojects/*/locations/*}/hardware\022\305\001\n\013GetH" + + "ardware\022>.google.cloud.gdchardwaremanage" + + "ment.v1alpha.GetHardwareRequest\0324.google" + + ".cloud.gdchardwaremanagement.v1alpha.Har" + + "dware\"@\332A\004name\202\323\344\223\0023\0221/v1alpha/{name=pro" + + "jects/*/locations/*/hardware/*}\022\366\001\n\016Crea" + + "teHardware\022A.google.cloud.gdchardwareman" + + "agement.v1alpha.CreateHardwareRequest\032\035." + + "google.longrunning.Operation\"\201\001\312A\035\n\010Hard" + + "ware\022\021OperationMetadata\332A\033parent,hardwar" + + "e,hardware_id\202\323\344\223\002=\"1/v1alpha/{parent=pr" + + "ojects/*/locations/*}/hardware:\010hardware" + + "\022\370\001\n\016UpdateHardware\022A.google.cloud.gdcha" + + "rdwaremanagement.v1alpha.UpdateHardwareR" + + "equest\032\035.google.longrunning.Operation\"\203\001" + + "\312A\035\n\010Hardware\022\021OperationMetadata\332A\024hardw" + + "are,update_mask\202\323\344\223\002F2:/v1alpha/{hardwar" + + "e.name=projects/*/locations/*/hardware/*" + + "}:\010hardware\022\341\001\n\016DeleteHardware\022A.google." + + "cloud.gdchardwaremanagement.v1alpha.Dele" + + "teHardwareRequest\032\035.google.longrunning.O" + + "peration\"m\312A*\n\025google.protobuf.Empty\022\021Op" + + "erationMetadata\332A\004name\202\323\344\223\0023*1/v1alpha/{" + + "name=projects/*/locations/*/hardware/*}\022" + + "\336\001\n\014ListComments\022?.google.cloud.gdchardw" + + "aremanagement.v1alpha.ListCommentsReques" + + "t\032@.google.cloud.gdchardwaremanagement.v" + + "1alpha.ListCommentsResponse\"K\332A\006parent\202\323" + + "\344\223\002<\022:/v1alpha/{parent=projects/*/locati" + + "ons/*/orders/*}/comments\022\313\001\n\nGetComment\022" + + "=.google.cloud.gdchardwaremanagement.v1a" + + "lpha.GetCommentRequest\0323.google.cloud.gd" + + "chardwaremanagement.v1alpha.Comment\"I\332A\004" + + "name\202\323\344\223\002<\022:/v1alpha/{name=projects/*/lo" + + "cations/*/orders/*/comments/*}\022\371\001\n\rCreat" + + "eComment\022@.google.cloud.gdchardwaremanag" + + "ement.v1alpha.CreateCommentRequest\032\035.goo" + + "gle.longrunning.Operation\"\206\001\312A\034\n\007Comment" + + "\022\021OperationMetadata\332A\031parent,comment,com" + + "ment_id\202\323\344\223\002E\":/v1alpha/{parent=projects" + + "/*/locations/*/orders/*}/comments:\007comme" + + "nt\022\376\001\n\024ListChangeLogEntries\022G.google.clo" + + "ud.gdchardwaremanagement.v1alpha.ListCha" + + "ngeLogEntriesRequest\032H.google.cloud.gdch" + + "ardwaremanagement.v1alpha.ListChangeLogE" + + "ntriesResponse\"S\332A\006parent\202\323\344\223\002D\022B/v1alph" + + "a/{parent=projects/*/locations/*/orders/" + + "*}/changeLogEntries\022\350\001\n\021GetChangeLogEntr" + + "y\022D.google.cloud.gdchardwaremanagement.v" + + "1alpha.GetChangeLogEntryRequest\032:.google" + + ".cloud.gdchardwaremanagement.v1alpha.Cha" + + "ngeLogEntry\"Q\332A\004name\202\323\344\223\002D\022B/v1alpha/{na" + + "me=projects/*/locations/*/orders/*/chang" + + "eLogEntries/*}\022\305\001\n\010ListSkus\022;.google.clo" + + "ud.gdchardwaremanagement.v1alpha.ListSku" + + "sRequest\032<.google.cloud.gdchardwaremanag" + + "ement.v1alpha.ListSkusResponse\">\332A\006paren" + + "t\202\323\344\223\002/\022-/v1alpha/{parent=projects/*/loc" + + "ations/*}/skus\022\262\001\n\006GetSku\0229.google.cloud" + + ".gdchardwaremanagement.v1alpha.GetSkuReq" + + "uest\032/.google.cloud.gdchardwaremanagemen" + + "t.v1alpha.Sku\"<\332A\004name\202\323\344\223\002/\022-/v1alpha/{" + + "name=projects/*/locations/*/skus/*}\022\311\001\n\t" + + "ListZones\022<.google.cloud.gdchardwaremana" + + "gement.v1alpha.ListZonesRequest\032=.google" + + ".cloud.gdchardwaremanagement.v1alpha.Lis" + + "tZonesResponse\"?\332A\006parent\202\323\344\223\0020\022./v1alph" + + "a/{parent=projects/*/locations/*}/zones\022" + + "\266\001\n\007GetZone\022:.google.cloud.gdchardwarema" + + "nagement.v1alpha.GetZoneRequest\0320.google" + + ".cloud.gdchardwaremanagement.v1alpha.Zon" + + "e\"=\332A\004name\202\323\344\223\0020\022./v1alpha/{name=project" + + "s/*/locations/*/zones/*}\022\332\001\n\nCreateZone\022" + + "=.google.cloud.gdchardwaremanagement.v1a" + + "lpha.CreateZoneRequest\032\035.google.longrunn" + + "ing.Operation\"n\312A\031\n\004Zone\022\021OperationMetad" + + "ata\332A\023parent,zone,zone_id\202\323\344\223\0026\"./v1alph" + + "a/{parent=projects/*/locations/*}/zones:" + + "\004zone\022\334\001\n\nUpdateZone\022=.google.cloud.gdch" + + "ardwaremanagement.v1alpha.UpdateZoneRequ" + + "est\032\035.google.longrunning.Operation\"p\312A\031\n" + + "\004Zone\022\021OperationMetadata\332A\020zone,update_m" + + "ask\202\323\344\223\002;23/v1alpha/{zone.name=projects/" + + "*/locations/*/zones/*}:\004zone\022\326\001\n\nDeleteZ" + + "one\022=.google.cloud.gdchardwaremanagement" + + ".v1alpha.DeleteZoneRequest\032\035.google.long" + + "running.Operation\"j\312A*\n\025google.protobuf." + + "Empty\022\021OperationMetadata\332A\004name\202\323\344\223\0020*./" + + "v1alpha/{name=projects/*/locations/*/zon" + + "es/*}\022\346\001\n\017SignalZoneState\022B.google.cloud" + + ".gdchardwaremanagement.v1alpha.SignalZon" + + "eStateRequest\032\035.google.longrunning.Opera" + + "tion\"p\312A\031\n\004Zone\022\021OperationMetadata\332A\021nam" + + "e,state_signal\202\323\344\223\002:\"5/v1alpha/{name=pro" + + "jects/*/locations/*/zones/*}:signal:\001*\032X" + + "\312A$gdchardwaremanagement.googleapis.com\322" + + "A.https://www.googleapis.com/auth/cloud-" + + "platformB\260\002\n.com.google.cloud.gdchardwar" + + "emanagement.v1alphaB\014ServiceProtoP\001Zdclo" + + "ud.google.com/go/gdchardwaremanagement/a" + + "piv1alpha/gdchardwaremanagementpb;gdchar" + + "dwaremanagementpb\252\002*Google.Cloud.GdcHard" + + "wareManagement.V1Alpha\312\002*Google\\Cloud\\Gd" + + "cHardwareManagement\\V1alpha\352\002-Google::Cl" + + "oud::GDCHardwareManagement::V1alphab\006pro" + + "to3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.FieldInfoProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListOrdersRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListOrdersRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListOrdersRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListOrdersResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListOrdersResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListOrdersResponse_descriptor, + new java.lang.String[] { + "Orders", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetOrderRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetOrderRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetOrderRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateOrderRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateOrderRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateOrderRequest_descriptor, + new java.lang.String[] { + "Parent", "OrderId", "Order", "RequestId", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateOrderRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateOrderRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateOrderRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "Order", "RequestId", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteOrderRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteOrderRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteOrderRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", "Force", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_SubmitOrderRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_SubmitOrderRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_SubmitOrderRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSitesRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSitesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSitesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSitesResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSitesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSitesResponse_descriptor, + new java.lang.String[] { + "Sites", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetSiteRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetSiteRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetSiteRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateSiteRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateSiteRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateSiteRequest_descriptor, + new java.lang.String[] { + "Parent", "SiteId", "Site", "RequestId", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateSiteRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateSiteRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateSiteRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "Site", "RequestId", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareGroupsRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareGroupsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareGroupsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareGroupsResponse_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareGroupsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareGroupsResponse_descriptor, + new java.lang.String[] { + "HardwareGroups", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetHardwareGroupRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetHardwareGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetHardwareGroupRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateHardwareGroupRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateHardwareGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateHardwareGroupRequest_descriptor, + new java.lang.String[] { + "Parent", "HardwareGroupId", "HardwareGroup", "RequestId", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateHardwareGroupRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateHardwareGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateHardwareGroupRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "HardwareGroup", "RequestId", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteHardwareGroupRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteHardwareGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteHardwareGroupRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareResponse_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListHardwareResponse_descriptor, + new java.lang.String[] { + "Hardware", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetHardwareRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetHardwareRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetHardwareRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateHardwareRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateHardwareRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateHardwareRequest_descriptor, + new java.lang.String[] { + "Parent", "HardwareId", "Hardware", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateHardwareRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateHardwareRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateHardwareRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "Hardware", "RequestId", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteHardwareRequest_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteHardwareRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteHardwareRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListCommentsRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListCommentsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListCommentsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListCommentsResponse_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListCommentsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListCommentsResponse_descriptor, + new java.lang.String[] { + "Comments", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetCommentRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetCommentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetCommentRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateCommentRequest_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateCommentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateCommentRequest_descriptor, + new java.lang.String[] { + "Parent", "CommentId", "Comment", "RequestId", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListChangeLogEntriesRequest_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListChangeLogEntriesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListChangeLogEntriesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListChangeLogEntriesResponse_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListChangeLogEntriesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListChangeLogEntriesResponse_descriptor, + new java.lang.String[] { + "ChangeLogEntries", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetChangeLogEntryRequest_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetChangeLogEntryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetChangeLogEntryRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSkusRequest_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSkusRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSkusRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSkusResponse_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSkusResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListSkusResponse_descriptor, + new java.lang.String[] { + "Skus", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetSkuRequest_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetSkuRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetSkuRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListZonesRequest_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListZonesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListZonesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListZonesResponse_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListZonesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_ListZonesResponse_descriptor, + new java.lang.String[] { + "Zones", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetZoneRequest_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetZoneRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_GetZoneRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateZoneRequest_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateZoneRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_CreateZoneRequest_descriptor, + new java.lang.String[] { + "Parent", "ZoneId", "Zone", "RequestId", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateZoneRequest_descriptor = + getDescriptor().getMessageTypes().get(38); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateZoneRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateZoneRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "Zone", "RequestId", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteZoneRequest_descriptor = + getDescriptor().getMessageTypes().get(39); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteZoneRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_DeleteZoneRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_SignalZoneStateRequest_descriptor = + getDescriptor().getMessageTypes().get(40); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_SignalZoneStateRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_SignalZoneStateRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", "StateSignal", + }); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(41); + internal_static_google_cloud_gdchardwaremanagement_v1alpha_OperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gdchardwaremanagement_v1alpha_OperationMetadata_descriptor, + new java.lang.String[] { + "CreateTime", + "EndTime", + "Target", + "Verb", + "StatusMessage", + "RequestedCancellation", + "ApiVersion", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.FieldInfoProto.fieldInfo); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.FieldInfoProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SignalZoneStateRequest.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SignalZoneStateRequest.java new file mode 100644 index 000000000000..7cb0175dbb98 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SignalZoneStateRequest.java @@ -0,0 +1,1200 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * A request to signal the state of a zone.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest} + */ +public final class SignalZoneStateRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest) + SignalZoneStateRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SignalZoneStateRequest.newBuilder() to construct. + private SignalZoneStateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SignalZoneStateRequest() { + name_ = ""; + requestId_ = ""; + stateSignal_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SignalZoneStateRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_SignalZoneStateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_SignalZoneStateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest.Builder.class); + } + + /** + * + * + *
          +   * Valid state signals for a zone.
          +   * 
          + * + * Protobuf enum {@code + * google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest.StateSignal} + */ + public enum StateSignal implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
          +     * State signal of the zone is unspecified.
          +     * 
          + * + * STATE_SIGNAL_UNSPECIFIED = 0; + */ + STATE_SIGNAL_UNSPECIFIED(0), + /** + * + * + *
          +     * The Zone is ready for site turnup.
          +     * 
          + * + * READY_FOR_SITE_TURNUP = 1; + */ + READY_FOR_SITE_TURNUP(1), + /** + * + * + *
          +     * The Zone failed in factory turnup checks.
          +     * 
          + * + * FACTORY_TURNUP_CHECKS_FAILED = 2; + */ + FACTORY_TURNUP_CHECKS_FAILED(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
          +     * State signal of the zone is unspecified.
          +     * 
          + * + * STATE_SIGNAL_UNSPECIFIED = 0; + */ + public static final int STATE_SIGNAL_UNSPECIFIED_VALUE = 0; + /** + * + * + *
          +     * The Zone is ready for site turnup.
          +     * 
          + * + * READY_FOR_SITE_TURNUP = 1; + */ + public static final int READY_FOR_SITE_TURNUP_VALUE = 1; + /** + * + * + *
          +     * The Zone failed in factory turnup checks.
          +     * 
          + * + * FACTORY_TURNUP_CHECKS_FAILED = 2; + */ + public static final int FACTORY_TURNUP_CHECKS_FAILED_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static StateSignal valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static StateSignal forNumber(int value) { + switch (value) { + case 0: + return STATE_SIGNAL_UNSPECIFIED; + case 1: + return READY_FOR_SITE_TURNUP; + case 2: + return FACTORY_TURNUP_CHECKS_FAILED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public StateSignal findValueByNumber(int number) { + return StateSignal.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final StateSignal[] VALUES = values(); + + public static StateSignal valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private StateSignal(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest.StateSignal) + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
          +   * Required. The name of the zone.
          +   * Format: `projects/{project}/locations/{location}/zones/{zone}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
          +   * Required. The name of the zone.
          +   * Format: `projects/{project}/locations/{location}/zones/{zone}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_SIGNAL_FIELD_NUMBER = 3; + private int stateSignal_ = 0; + /** + * + * + *
          +   * Required. The state signal to send for this zone.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest.StateSignal state_signal = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for stateSignal. + */ + @java.lang.Override + public int getStateSignalValue() { + return stateSignal_; + } + /** + * + * + *
          +   * Required. The state signal to send for this zone.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest.StateSignal state_signal = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The stateSignal. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest.StateSignal + getStateSignal() { + com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest.StateSignal result = + com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest.StateSignal.forNumber( + stateSignal_); + return result == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest.StateSignal + .UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); + } + if (stateSignal_ + != com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest.StateSignal + .STATE_SIGNAL_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, stateSignal_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); + } + if (stateSignal_ + != com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest.StateSignal + .STATE_SIGNAL_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, stateSignal_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest other = + (com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (stateSignal_ != other.stateSignal_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (37 * hash) + STATE_SIGNAL_FIELD_NUMBER; + hash = (53 * hash) + stateSignal_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * A request to signal the state of a zone.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest) + com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_SignalZoneStateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_SignalZoneStateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest.Builder.class); + } + + // Construct using + // com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + stateSignal_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_SignalZoneStateRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest build() { + com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest result = + new com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.stateSignal_ = stateSignal_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest) { + return mergeFrom( + (com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.stateSignal_ != 0) { + setStateSignalValue(other.getStateSignalValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + stateSignal_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
          +     * Required. The name of the zone.
          +     * Format: `projects/{project}/locations/{location}/zones/{zone}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Required. The name of the zone.
          +     * Format: `projects/{project}/locations/{location}/zones/{zone}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Required. The name of the zone.
          +     * Format: `projects/{project}/locations/{location}/zones/{zone}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The name of the zone.
          +     * Format: `projects/{project}/locations/{location}/zones/{zone}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The name of the zone.
          +     * Format: `projects/{project}/locations/{location}/zones/{zone}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int stateSignal_ = 0; + /** + * + * + *
          +     * Required. The state signal to send for this zone.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest.StateSignal state_signal = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for stateSignal. + */ + @java.lang.Override + public int getStateSignalValue() { + return stateSignal_; + } + /** + * + * + *
          +     * Required. The state signal to send for this zone.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest.StateSignal state_signal = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for stateSignal to set. + * @return This builder for chaining. + */ + public Builder setStateSignalValue(int value) { + stateSignal_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The state signal to send for this zone.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest.StateSignal state_signal = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The stateSignal. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest.StateSignal + getStateSignal() { + com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest.StateSignal result = + com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest.StateSignal + .forNumber(stateSignal_); + return result == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest.StateSignal + .UNRECOGNIZED + : result; + } + /** + * + * + *
          +     * Required. The state signal to send for this zone.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest.StateSignal state_signal = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The stateSignal to set. + * @return This builder for chaining. + */ + public Builder setStateSignal( + com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest.StateSignal value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + stateSignal_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The state signal to send for this zone.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest.StateSignal state_signal = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearStateSignal() { + bitField0_ = (bitField0_ & ~0x00000004); + stateSignal_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SignalZoneStateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SignalZoneStateRequestOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SignalZoneStateRequestOrBuilder.java new file mode 100644 index 000000000000..1134897089f6 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SignalZoneStateRequestOrBuilder.java @@ -0,0 +1,118 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface SignalZoneStateRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The name of the zone.
          +   * Format: `projects/{project}/locations/{location}/zones/{zone}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
          +   * Required. The name of the zone.
          +   * Format: `projects/{project}/locations/{location}/zones/{zone}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
          +   * Required. The state signal to send for this zone.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest.StateSignal state_signal = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for stateSignal. + */ + int getStateSignalValue(); + /** + * + * + *
          +   * Required. The state signal to send for this zone.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest.StateSignal state_signal = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The stateSignal. + */ + com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest.StateSignal + getStateSignal(); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Site.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Site.java new file mode 100644 index 000000000000..fc34d8d05fd5 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Site.java @@ -0,0 +1,3233 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * A physical site where hardware will be installed.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.Site} + */ +public final class Site extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.Site) + SiteOrBuilder { + private static final long serialVersionUID = 0L; + // Use Site.newBuilder() to construct. + private Site(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Site() { + name_ = ""; + displayName_ = ""; + description_ = ""; + googleMapsPinUri_ = ""; + accessTimes_ = java.util.Collections.emptyList(); + notes_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Site(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Site_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Site_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.Site.class, + com.google.cloud.gdchardwaremanagement.v1alpha.Site.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
          +   * Identifier. Name of the site.
          +   * Format: `projects/{project}/locations/{location}/sites/{site}`
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
          +   * Identifier. Name of the site.
          +   * Format: `projects/{project}/locations/{location}/sites/{site}`
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 24; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
          +   * Optional. Display name of this Site.
          +   * 
          + * + * string display_name = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. Display name of this Site.
          +   * 
          + * + * string display_name = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 25; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + /** + * + * + *
          +   * Optional. Description of this Site.
          +   * 
          + * + * string description = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. Description of this Site.
          +   * 
          + * + * string description = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
          +   * Output only. Time when this site was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
          +   * Output only. Time when this site was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
          +   * Output only. Time when this site was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
          +   * Output only. Time when this site was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
          +   * Output only. Time when this site was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
          +   * Output only. Time when this site was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int LABELS_FIELD_NUMBER = 4; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Site_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
          +   * Optional. Labels associated with this site as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
          +   * Optional. Labels associated with this site as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
          +   * Optional. Labels associated with this site as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
          +   * Optional. Labels associated with this site as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int ORGANIZATION_CONTACT_FIELD_NUMBER = 5; + private com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organizationContact_; + /** + * + * + *
          +   * Required. Contact information for this site.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the organizationContact field is set. + */ + @java.lang.Override + public boolean hasOrganizationContact() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
          +   * Required. Contact information for this site.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The organizationContact. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact + getOrganizationContact() { + return organizationContact_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact.getDefaultInstance() + : organizationContact_; + } + /** + * + * + *
          +   * Required. Contact information for this site.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContactOrBuilder + getOrganizationContactOrBuilder() { + return organizationContact_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact.getDefaultInstance() + : organizationContact_; + } + + public static final int GOOGLE_MAPS_PIN_URI_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object googleMapsPinUri_ = ""; + /** + * + * + *
          +   * Required. A URL to the Google Maps address location of the site.
          +   * An example value is `https://goo.gl/maps/xxxxxxxxx`.
          +   * 
          + * + * string google_maps_pin_uri = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The googleMapsPinUri. + */ + @java.lang.Override + public java.lang.String getGoogleMapsPinUri() { + java.lang.Object ref = googleMapsPinUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + googleMapsPinUri_ = s; + return s; + } + } + /** + * + * + *
          +   * Required. A URL to the Google Maps address location of the site.
          +   * An example value is `https://goo.gl/maps/xxxxxxxxx`.
          +   * 
          + * + * string google_maps_pin_uri = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for googleMapsPinUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGoogleMapsPinUriBytes() { + java.lang.Object ref = googleMapsPinUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + googleMapsPinUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACCESS_TIMES_FIELD_NUMBER = 26; + + @SuppressWarnings("serial") + private java.util.List accessTimes_; + /** + * + * + *
          +   * Optional. The time periods when the site is accessible.
          +   * If this field is empty, the site is accessible at all times.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod access_times = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getAccessTimesList() { + return accessTimes_; + } + /** + * + * + *
          +   * Optional. The time periods when the site is accessible.
          +   * If this field is empty, the site is accessible at all times.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod access_times = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriodOrBuilder> + getAccessTimesOrBuilderList() { + return accessTimes_; + } + /** + * + * + *
          +   * Optional. The time periods when the site is accessible.
          +   * If this field is empty, the site is accessible at all times.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod access_times = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getAccessTimesCount() { + return accessTimes_.size(); + } + /** + * + * + *
          +   * Optional. The time periods when the site is accessible.
          +   * If this field is empty, the site is accessible at all times.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod access_times = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod getAccessTimes(int index) { + return accessTimes_.get(index); + } + /** + * + * + *
          +   * Optional. The time periods when the site is accessible.
          +   * If this field is empty, the site is accessible at all times.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod access_times = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriodOrBuilder getAccessTimesOrBuilder( + int index) { + return accessTimes_.get(index); + } + + public static final int NOTES_FIELD_NUMBER = 27; + + @SuppressWarnings("serial") + private volatile java.lang.Object notes_ = ""; + /** + * + * + *
          +   * Optional. Any additional notes for this Site. Please include information
          +   * about:
          +   *  - security or access restrictions
          +   *  - any regulations affecting the technicians visiting the site
          +   *  - any special process or approval required to move the equipment
          +   *  - whether a representative will be available during site visits
          +   * 
          + * + * string notes = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The notes. + */ + @java.lang.Override + public java.lang.String getNotes() { + java.lang.Object ref = notes_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + notes_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. Any additional notes for this Site. Please include information
          +   * about:
          +   *  - security or access restrictions
          +   *  - any regulations affecting the technicians visiting the site
          +   *  - any special process or approval required to move the equipment
          +   *  - whether a representative will be available during site visits
          +   * 
          + * + * string notes = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for notes. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNotesBytes() { + java.lang.Object ref = notes_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + notes_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getUpdateTime()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(5, getOrganizationContact()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(googleMapsPinUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, googleMapsPinUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 24, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 25, description_); + } + for (int i = 0; i < accessTimes_.size(); i++) { + output.writeMessage(26, accessTimes_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(notes_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 27, notes_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getOrganizationContact()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(googleMapsPinUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, googleMapsPinUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(24, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(25, description_); + } + for (int i = 0; i < accessTimes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(26, accessTimes_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(notes_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(27, notes_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.Site)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.Site other = + (com.google.cloud.gdchardwaremanagement.v1alpha.Site) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (hasOrganizationContact() != other.hasOrganizationContact()) return false; + if (hasOrganizationContact()) { + if (!getOrganizationContact().equals(other.getOrganizationContact())) return false; + } + if (!getGoogleMapsPinUri().equals(other.getGoogleMapsPinUri())) return false; + if (!getAccessTimesList().equals(other.getAccessTimesList())) return false; + if (!getNotes().equals(other.getNotes())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (hasOrganizationContact()) { + hash = (37 * hash) + ORGANIZATION_CONTACT_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationContact().hashCode(); + } + hash = (37 * hash) + GOOGLE_MAPS_PIN_URI_FIELD_NUMBER; + hash = (53 * hash) + getGoogleMapsPinUri().hashCode(); + if (getAccessTimesCount() > 0) { + hash = (37 * hash) + ACCESS_TIMES_FIELD_NUMBER; + hash = (53 * hash) + getAccessTimesList().hashCode(); + } + hash = (37 * hash) + NOTES_FIELD_NUMBER; + hash = (53 * hash) + getNotes().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Site parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Site parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Site parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Site parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Site parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Site parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Site parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Site parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Site parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Site parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Site parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Site parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.gdchardwaremanagement.v1alpha.Site prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * A physical site where hardware will be installed.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.Site} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.Site) + com.google.cloud.gdchardwaremanagement.v1alpha.SiteOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Site_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Site_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.Site.class, + com.google.cloud.gdchardwaremanagement.v1alpha.Site.Builder.class); + } + + // Construct using com.google.cloud.gdchardwaremanagement.v1alpha.Site.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + getOrganizationContactFieldBuilder(); + getAccessTimesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + description_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + organizationContact_ = null; + if (organizationContactBuilder_ != null) { + organizationContactBuilder_.dispose(); + organizationContactBuilder_ = null; + } + googleMapsPinUri_ = ""; + if (accessTimesBuilder_ == null) { + accessTimes_ = java.util.Collections.emptyList(); + } else { + accessTimes_ = null; + accessTimesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000100); + notes_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Site_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Site getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.Site.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Site build() { + com.google.cloud.gdchardwaremanagement.v1alpha.Site result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Site buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.Site result = + new com.google.cloud.gdchardwaremanagement.v1alpha.Site(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.gdchardwaremanagement.v1alpha.Site result) { + if (accessTimesBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0)) { + accessTimes_ = java.util.Collections.unmodifiableList(accessTimes_); + bitField0_ = (bitField0_ & ~0x00000100); + } + result.accessTimes_ = accessTimes_; + } else { + result.accessTimes_ = accessTimesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.gdchardwaremanagement.v1alpha.Site result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.organizationContact_ = + organizationContactBuilder_ == null + ? organizationContact_ + : organizationContactBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.googleMapsPinUri_ = googleMapsPinUri_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.notes_ = notes_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.Site) { + return mergeFrom((com.google.cloud.gdchardwaremanagement.v1alpha.Site) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gdchardwaremanagement.v1alpha.Site other) { + if (other == com.google.cloud.gdchardwaremanagement.v1alpha.Site.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000020; + if (other.hasOrganizationContact()) { + mergeOrganizationContact(other.getOrganizationContact()); + } + if (!other.getGoogleMapsPinUri().isEmpty()) { + googleMapsPinUri_ = other.googleMapsPinUri_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (accessTimesBuilder_ == null) { + if (!other.accessTimes_.isEmpty()) { + if (accessTimes_.isEmpty()) { + accessTimes_ = other.accessTimes_; + bitField0_ = (bitField0_ & ~0x00000100); + } else { + ensureAccessTimesIsMutable(); + accessTimes_.addAll(other.accessTimes_); + } + onChanged(); + } + } else { + if (!other.accessTimes_.isEmpty()) { + if (accessTimesBuilder_.isEmpty()) { + accessTimesBuilder_.dispose(); + accessTimesBuilder_ = null; + accessTimes_ = other.accessTimes_; + bitField0_ = (bitField0_ & ~0x00000100); + accessTimesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAccessTimesFieldBuilder() + : null; + } else { + accessTimesBuilder_.addAllMessages(other.accessTimes_); + } + } + } + if (!other.getNotes().isEmpty()) { + notes_ = other.notes_; + bitField0_ |= 0x00000200; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 18 + case 26: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000020; + break; + } // case 34 + case 42: + { + input.readMessage( + getOrganizationContactFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 42 + case 50: + { + googleMapsPinUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 50 + case 194: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 194 + case 202: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 202 + case 210: + { + com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod m = + input.readMessage( + com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod.parser(), + extensionRegistry); + if (accessTimesBuilder_ == null) { + ensureAccessTimesIsMutable(); + accessTimes_.add(m); + } else { + accessTimesBuilder_.addMessage(m); + } + break; + } // case 210 + case 218: + { + notes_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 218 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
          +     * Identifier. Name of the site.
          +     * Format: `projects/{project}/locations/{location}/sites/{site}`
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Identifier. Name of the site.
          +     * Format: `projects/{project}/locations/{location}/sites/{site}`
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Identifier. Name of the site.
          +     * Format: `projects/{project}/locations/{location}/sites/{site}`
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Identifier. Name of the site.
          +     * Format: `projects/{project}/locations/{location}/sites/{site}`
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * Identifier. Name of the site.
          +     * Format: `projects/{project}/locations/{location}/sites/{site}`
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
          +     * Optional. Display name of this Site.
          +     * 
          + * + * string display_name = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. Display name of this Site.
          +     * 
          + * + * string display_name = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. Display name of this Site.
          +     * 
          + * + * string display_name = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Display name of this Site.
          +     * 
          + * + * string display_name = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Display name of this Site.
          +     * 
          + * + * string display_name = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
          +     * Optional. Description of this Site.
          +     * 
          + * + * string description = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. Description of this Site.
          +     * 
          + * + * string description = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. Description of this Site.
          +     * 
          + * + * string description = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Description of this Site.
          +     * 
          + * + * string description = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Description of this Site.
          +     * 
          + * + * string description = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
          +     * Output only. Time when this site was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
          +     * Output only. Time when this site was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Output only. Time when this site was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Time when this site was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Time when this site was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Output only. Time when this site was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Time when this site was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Output only. Time when this site was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
          +     * Output only. Time when this site was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
          +     * Output only. Time when this site was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
          +     * Output only. Time when this site was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Output only. Time when this site was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Time when this site was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Time when this site was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Output only. Time when this site was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Time when this site was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Output only. Time when this site was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
          +     * Output only. Time when this site was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000020; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
          +     * Optional. Labels associated with this site as key value pairs.
          +     * For more information about labels, see [Create and manage
          +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +     * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
          +     * Optional. Labels associated with this site as key value pairs.
          +     * For more information about labels, see [Create and manage
          +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +     * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
          +     * Optional. Labels associated with this site as key value pairs.
          +     * For more information about labels, see [Create and manage
          +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +     * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
          +     * Optional. Labels associated with this site as key value pairs.
          +     * For more information about labels, see [Create and manage
          +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +     * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000020); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + /** + * + * + *
          +     * Optional. Labels associated with this site as key value pairs.
          +     * For more information about labels, see [Create and manage
          +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +     * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000020; + return internalGetMutableLabels().getMutableMap(); + } + /** + * + * + *
          +     * Optional. Labels associated with this site as key value pairs.
          +     * For more information about labels, see [Create and manage
          +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +     * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000020; + return this; + } + /** + * + * + *
          +     * Optional. Labels associated with this site as key value pairs.
          +     * For more information about labels, see [Create and manage
          +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +     * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000020; + return this; + } + + private com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organizationContact_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact, + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContactOrBuilder> + organizationContactBuilder_; + /** + * + * + *
          +     * Required. Contact information for this site.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the organizationContact field is set. + */ + public boolean hasOrganizationContact() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
          +     * Required. Contact information for this site.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The organizationContact. + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact + getOrganizationContact() { + if (organizationContactBuilder_ == null) { + return organizationContact_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact + .getDefaultInstance() + : organizationContact_; + } else { + return organizationContactBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Required. Contact information for this site.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setOrganizationContact( + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact value) { + if (organizationContactBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + organizationContact_ = value; + } else { + organizationContactBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Contact information for this site.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setOrganizationContact( + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact.Builder + builderForValue) { + if (organizationContactBuilder_ == null) { + organizationContact_ = builderForValue.build(); + } else { + organizationContactBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Contact information for this site.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeOrganizationContact( + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact value) { + if (organizationContactBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && organizationContact_ != null + && organizationContact_ + != com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact + .getDefaultInstance()) { + getOrganizationContactBuilder().mergeFrom(value); + } else { + organizationContact_ = value; + } + } else { + organizationContactBuilder_.mergeFrom(value); + } + if (organizationContact_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Required. Contact information for this site.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearOrganizationContact() { + bitField0_ = (bitField0_ & ~0x00000040); + organizationContact_ = null; + if (organizationContactBuilder_ != null) { + organizationContactBuilder_.dispose(); + organizationContactBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Contact information for this site.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact.Builder + getOrganizationContactBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getOrganizationContactFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Required. Contact information for this site.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContactOrBuilder + getOrganizationContactOrBuilder() { + if (organizationContactBuilder_ != null) { + return organizationContactBuilder_.getMessageOrBuilder(); + } else { + return organizationContact_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact + .getDefaultInstance() + : organizationContact_; + } + } + /** + * + * + *
          +     * Required. Contact information for this site.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact, + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContactOrBuilder> + getOrganizationContactFieldBuilder() { + if (organizationContactBuilder_ == null) { + organizationContactBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact, + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContactOrBuilder>( + getOrganizationContact(), getParentForChildren(), isClean()); + organizationContact_ = null; + } + return organizationContactBuilder_; + } + + private java.lang.Object googleMapsPinUri_ = ""; + /** + * + * + *
          +     * Required. A URL to the Google Maps address location of the site.
          +     * An example value is `https://goo.gl/maps/xxxxxxxxx`.
          +     * 
          + * + * string google_maps_pin_uri = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The googleMapsPinUri. + */ + public java.lang.String getGoogleMapsPinUri() { + java.lang.Object ref = googleMapsPinUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + googleMapsPinUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Required. A URL to the Google Maps address location of the site.
          +     * An example value is `https://goo.gl/maps/xxxxxxxxx`.
          +     * 
          + * + * string google_maps_pin_uri = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for googleMapsPinUri. + */ + public com.google.protobuf.ByteString getGoogleMapsPinUriBytes() { + java.lang.Object ref = googleMapsPinUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + googleMapsPinUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Required. A URL to the Google Maps address location of the site.
          +     * An example value is `https://goo.gl/maps/xxxxxxxxx`.
          +     * 
          + * + * string google_maps_pin_uri = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The googleMapsPinUri to set. + * @return This builder for chaining. + */ + public Builder setGoogleMapsPinUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + googleMapsPinUri_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. A URL to the Google Maps address location of the site.
          +     * An example value is `https://goo.gl/maps/xxxxxxxxx`.
          +     * 
          + * + * string google_maps_pin_uri = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearGoogleMapsPinUri() { + googleMapsPinUri_ = getDefaultInstance().getGoogleMapsPinUri(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. A URL to the Google Maps address location of the site.
          +     * An example value is `https://goo.gl/maps/xxxxxxxxx`.
          +     * 
          + * + * string google_maps_pin_uri = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for googleMapsPinUri to set. + * @return This builder for chaining. + */ + public Builder setGoogleMapsPinUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + googleMapsPinUri_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.util.List accessTimes_ = + java.util.Collections.emptyList(); + + private void ensureAccessTimesIsMutable() { + if (!((bitField0_ & 0x00000100) != 0)) { + accessTimes_ = + new java.util.ArrayList( + accessTimes_); + bitField0_ |= 0x00000100; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod, + com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriodOrBuilder> + accessTimesBuilder_; + + /** + * + * + *
          +     * Optional. The time periods when the site is accessible.
          +     * If this field is empty, the site is accessible at all times.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod access_times = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getAccessTimesList() { + if (accessTimesBuilder_ == null) { + return java.util.Collections.unmodifiableList(accessTimes_); + } else { + return accessTimesBuilder_.getMessageList(); + } + } + /** + * + * + *
          +     * Optional. The time periods when the site is accessible.
          +     * If this field is empty, the site is accessible at all times.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod access_times = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getAccessTimesCount() { + if (accessTimesBuilder_ == null) { + return accessTimes_.size(); + } else { + return accessTimesBuilder_.getCount(); + } + } + /** + * + * + *
          +     * Optional. The time periods when the site is accessible.
          +     * If this field is empty, the site is accessible at all times.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod access_times = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod getAccessTimes(int index) { + if (accessTimesBuilder_ == null) { + return accessTimes_.get(index); + } else { + return accessTimesBuilder_.getMessage(index); + } + } + /** + * + * + *
          +     * Optional. The time periods when the site is accessible.
          +     * If this field is empty, the site is accessible at all times.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod access_times = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAccessTimes( + int index, com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod value) { + if (accessTimesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccessTimesIsMutable(); + accessTimes_.set(index, value); + onChanged(); + } else { + accessTimesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
          +     * Optional. The time periods when the site is accessible.
          +     * If this field is empty, the site is accessible at all times.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod access_times = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAccessTimes( + int index, + com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod.Builder builderForValue) { + if (accessTimesBuilder_ == null) { + ensureAccessTimesIsMutable(); + accessTimes_.set(index, builderForValue.build()); + onChanged(); + } else { + accessTimesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * Optional. The time periods when the site is accessible.
          +     * If this field is empty, the site is accessible at all times.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod access_times = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAccessTimes(com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod value) { + if (accessTimesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccessTimesIsMutable(); + accessTimes_.add(value); + onChanged(); + } else { + accessTimesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
          +     * Optional. The time periods when the site is accessible.
          +     * If this field is empty, the site is accessible at all times.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod access_times = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAccessTimes( + int index, com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod value) { + if (accessTimesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccessTimesIsMutable(); + accessTimes_.add(index, value); + onChanged(); + } else { + accessTimesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
          +     * Optional. The time periods when the site is accessible.
          +     * If this field is empty, the site is accessible at all times.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod access_times = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAccessTimes( + com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod.Builder builderForValue) { + if (accessTimesBuilder_ == null) { + ensureAccessTimesIsMutable(); + accessTimes_.add(builderForValue.build()); + onChanged(); + } else { + accessTimesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * Optional. The time periods when the site is accessible.
          +     * If this field is empty, the site is accessible at all times.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod access_times = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAccessTimes( + int index, + com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod.Builder builderForValue) { + if (accessTimesBuilder_ == null) { + ensureAccessTimesIsMutable(); + accessTimes_.add(index, builderForValue.build()); + onChanged(); + } else { + accessTimesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * Optional. The time periods when the site is accessible.
          +     * If this field is empty, the site is accessible at all times.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod access_times = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllAccessTimes( + java.lang.Iterable + values) { + if (accessTimesBuilder_ == null) { + ensureAccessTimesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, accessTimes_); + onChanged(); + } else { + accessTimesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
          +     * Optional. The time periods when the site is accessible.
          +     * If this field is empty, the site is accessible at all times.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod access_times = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAccessTimes() { + if (accessTimesBuilder_ == null) { + accessTimes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + } else { + accessTimesBuilder_.clear(); + } + return this; + } + /** + * + * + *
          +     * Optional. The time periods when the site is accessible.
          +     * If this field is empty, the site is accessible at all times.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod access_times = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAccessTimes(int index) { + if (accessTimesBuilder_ == null) { + ensureAccessTimesIsMutable(); + accessTimes_.remove(index); + onChanged(); + } else { + accessTimesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
          +     * Optional. The time periods when the site is accessible.
          +     * If this field is empty, the site is accessible at all times.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod access_times = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod.Builder getAccessTimesBuilder( + int index) { + return getAccessTimesFieldBuilder().getBuilder(index); + } + /** + * + * + *
          +     * Optional. The time periods when the site is accessible.
          +     * If this field is empty, the site is accessible at all times.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod access_times = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriodOrBuilder + getAccessTimesOrBuilder(int index) { + if (accessTimesBuilder_ == null) { + return accessTimes_.get(index); + } else { + return accessTimesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
          +     * Optional. The time periods when the site is accessible.
          +     * If this field is empty, the site is accessible at all times.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod access_times = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriodOrBuilder> + getAccessTimesOrBuilderList() { + if (accessTimesBuilder_ != null) { + return accessTimesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(accessTimes_); + } + } + /** + * + * + *
          +     * Optional. The time periods when the site is accessible.
          +     * If this field is empty, the site is accessible at all times.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod access_times = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod.Builder + addAccessTimesBuilder() { + return getAccessTimesFieldBuilder() + .addBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod.getDefaultInstance()); + } + /** + * + * + *
          +     * Optional. The time periods when the site is accessible.
          +     * If this field is empty, the site is accessible at all times.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod access_times = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod.Builder addAccessTimesBuilder( + int index) { + return getAccessTimesFieldBuilder() + .addBuilder( + index, + com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod.getDefaultInstance()); + } + /** + * + * + *
          +     * Optional. The time periods when the site is accessible.
          +     * If this field is empty, the site is accessible at all times.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod access_times = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getAccessTimesBuilderList() { + return getAccessTimesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod, + com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriodOrBuilder> + getAccessTimesFieldBuilder() { + if (accessTimesBuilder_ == null) { + accessTimesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod, + com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriodOrBuilder>( + accessTimes_, ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean()); + accessTimes_ = null; + } + return accessTimesBuilder_; + } + + private java.lang.Object notes_ = ""; + /** + * + * + *
          +     * Optional. Any additional notes for this Site. Please include information
          +     * about:
          +     *  - security or access restrictions
          +     *  - any regulations affecting the technicians visiting the site
          +     *  - any special process or approval required to move the equipment
          +     *  - whether a representative will be available during site visits
          +     * 
          + * + * string notes = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The notes. + */ + public java.lang.String getNotes() { + java.lang.Object ref = notes_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + notes_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. Any additional notes for this Site. Please include information
          +     * about:
          +     *  - security or access restrictions
          +     *  - any regulations affecting the technicians visiting the site
          +     *  - any special process or approval required to move the equipment
          +     *  - whether a representative will be available during site visits
          +     * 
          + * + * string notes = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for notes. + */ + public com.google.protobuf.ByteString getNotesBytes() { + java.lang.Object ref = notes_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + notes_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. Any additional notes for this Site. Please include information
          +     * about:
          +     *  - security or access restrictions
          +     *  - any regulations affecting the technicians visiting the site
          +     *  - any special process or approval required to move the equipment
          +     *  - whether a representative will be available during site visits
          +     * 
          + * + * string notes = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The notes to set. + * @return This builder for chaining. + */ + public Builder setNotes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + notes_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Any additional notes for this Site. Please include information
          +     * about:
          +     *  - security or access restrictions
          +     *  - any regulations affecting the technicians visiting the site
          +     *  - any special process or approval required to move the equipment
          +     *  - whether a representative will be available during site visits
          +     * 
          + * + * string notes = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearNotes() { + notes_ = getDefaultInstance().getNotes(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Any additional notes for this Site. Please include information
          +     * about:
          +     *  - security or access restrictions
          +     *  - any regulations affecting the technicians visiting the site
          +     *  - any special process or approval required to move the equipment
          +     *  - whether a representative will be available during site visits
          +     * 
          + * + * string notes = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for notes to set. + * @return This builder for chaining. + */ + public Builder setNotesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + notes_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.Site) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.Site) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.Site DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.Site(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Site getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Site parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Site getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SiteName.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SiteName.java new file mode 100644 index 000000000000..8207874642a3 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SiteName.java @@ -0,0 +1,217 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class SiteName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_SITE = + PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}/sites/{site}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String site; + + @Deprecated + protected SiteName() { + project = null; + location = null; + site = null; + } + + private SiteName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + site = Preconditions.checkNotNull(builder.getSite()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getSite() { + return site; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static SiteName of(String project, String location, String site) { + return newBuilder().setProject(project).setLocation(location).setSite(site).build(); + } + + public static String format(String project, String location, String site) { + return newBuilder().setProject(project).setLocation(location).setSite(site).build().toString(); + } + + public static SiteName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_SITE.validatedMatch( + formattedString, "SiteName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("site")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (SiteName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_SITE.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (site != null) { + fieldMapBuilder.put("site", site); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_SITE.instantiate( + "project", project, "location", location, "site", site); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + SiteName that = ((SiteName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.site, that.site); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(site); + return h; + } + + /** Builder for projects/{project}/locations/{location}/sites/{site}. */ + public static class Builder { + private String project; + private String location; + private String site; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getSite() { + return site; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setSite(String site) { + this.site = site; + return this; + } + + private Builder(SiteName siteName) { + this.project = siteName.project; + this.location = siteName.location; + this.site = siteName.site; + } + + public SiteName build() { + return new SiteName(this); + } + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SiteOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SiteOrBuilder.java new file mode 100644 index 000000000000..83bcc59494fe --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SiteOrBuilder.java @@ -0,0 +1,419 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface SiteOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.Site) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Identifier. Name of the site.
          +   * Format: `projects/{project}/locations/{location}/sites/{site}`
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
          +   * Identifier. Name of the site.
          +   * Format: `projects/{project}/locations/{location}/sites/{site}`
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
          +   * Optional. Display name of this Site.
          +   * 
          + * + * string display_name = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
          +   * Optional. Display name of this Site.
          +   * 
          + * + * string display_name = 24 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
          +   * Optional. Description of this Site.
          +   * 
          + * + * string description = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
          +   * Optional. Description of this Site.
          +   * 
          + * + * string description = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
          +   * Output only. Time when this site was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
          +   * Output only. Time when this site was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
          +   * Output only. Time when this site was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
          +   * Output only. Time when this site was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
          +   * Output only. Time when this site was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
          +   * Output only. Time when this site was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
          +   * Optional. Labels associated with this site as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + /** + * + * + *
          +   * Optional. Labels associated with this site as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + /** + * + * + *
          +   * Optional. Labels associated with this site as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
          +   * Optional. Labels associated with this site as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
          +   * Optional. Labels associated with this site as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
          +   * Required. Contact information for this site.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the organizationContact field is set. + */ + boolean hasOrganizationContact(); + /** + * + * + *
          +   * Required. Contact information for this site.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The organizationContact. + */ + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact getOrganizationContact(); + /** + * + * + *
          +   * Required. Contact information for this site.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact organization_contact = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContactOrBuilder + getOrganizationContactOrBuilder(); + + /** + * + * + *
          +   * Required. A URL to the Google Maps address location of the site.
          +   * An example value is `https://goo.gl/maps/xxxxxxxxx`.
          +   * 
          + * + * string google_maps_pin_uri = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The googleMapsPinUri. + */ + java.lang.String getGoogleMapsPinUri(); + /** + * + * + *
          +   * Required. A URL to the Google Maps address location of the site.
          +   * An example value is `https://goo.gl/maps/xxxxxxxxx`.
          +   * 
          + * + * string google_maps_pin_uri = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for googleMapsPinUri. + */ + com.google.protobuf.ByteString getGoogleMapsPinUriBytes(); + + /** + * + * + *
          +   * Optional. The time periods when the site is accessible.
          +   * If this field is empty, the site is accessible at all times.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod access_times = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getAccessTimesList(); + /** + * + * + *
          +   * Optional. The time periods when the site is accessible.
          +   * If this field is empty, the site is accessible at all times.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod access_times = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod getAccessTimes(int index); + /** + * + * + *
          +   * Optional. The time periods when the site is accessible.
          +   * If this field is empty, the site is accessible at all times.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod access_times = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAccessTimesCount(); + /** + * + * + *
          +   * Optional. The time periods when the site is accessible.
          +   * If this field is empty, the site is accessible at all times.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod access_times = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getAccessTimesOrBuilderList(); + /** + * + * + *
          +   * Optional. The time periods when the site is accessible.
          +   * If this field is empty, the site is accessible at all times.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod access_times = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriodOrBuilder getAccessTimesOrBuilder( + int index); + + /** + * + * + *
          +   * Optional. Any additional notes for this Site. Please include information
          +   * about:
          +   *  - security or access restrictions
          +   *  - any regulations affecting the technicians visiting the site
          +   *  - any special process or approval required to move the equipment
          +   *  - whether a representative will be available during site visits
          +   * 
          + * + * string notes = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The notes. + */ + java.lang.String getNotes(); + /** + * + * + *
          +   * Optional. Any additional notes for this Site. Please include information
          +   * about:
          +   *  - security or access restrictions
          +   *  - any regulations affecting the technicians visiting the site
          +   *  - any special process or approval required to move the equipment
          +   *  - whether a representative will be available during site visits
          +   * 
          + * + * string notes = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for notes. + */ + com.google.protobuf.ByteString getNotesBytes(); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Sku.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Sku.java new file mode 100644 index 000000000000..27118b6bcf68 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Sku.java @@ -0,0 +1,3168 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * A stock keeping unit (SKU) of GDC hardware.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.Sku} + */ +public final class Sku extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.Sku) + SkuOrBuilder { + private static final long serialVersionUID = 0L; + // Use Sku.newBuilder() to construct. + private Sku(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Sku() { + name_ = ""; + displayName_ = ""; + instances_ = java.util.Collections.emptyList(); + description_ = ""; + revisionId_ = ""; + type_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Sku(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Sku_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Sku_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.Sku.class, + com.google.cloud.gdchardwaremanagement.v1alpha.Sku.Builder.class); + } + + /** + * + * + *
          +   * Valid types of a SKU.
          +   * 
          + * + * Protobuf enum {@code google.cloud.gdchardwaremanagement.v1alpha.Sku.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
          +     * Type of the SKU is unspecified. This is not an allowed value.
          +     * 
          + * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + * + * + *
          +     * Rack SKU.
          +     * 
          + * + * RACK = 1; + */ + RACK(1), + /** + * + * + *
          +     * Server SKU.
          +     * 
          + * + * SERVER = 2; + */ + SERVER(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
          +     * Type of the SKU is unspecified. This is not an allowed value.
          +     * 
          + * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
          +     * Rack SKU.
          +     * 
          + * + * RACK = 1; + */ + public static final int RACK_VALUE = 1; + /** + * + * + *
          +     * Server SKU.
          +     * 
          + * + * SERVER = 2; + */ + public static final int SERVER_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Type valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Type forNumber(int value) { + switch (value) { + case 0: + return TYPE_UNSPECIFIED; + case 1: + return RACK; + case 2: + return SERVER; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.Sku.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Type[] VALUES = values(); + + public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.gdchardwaremanagement.v1alpha.Sku.Type) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
          +   * Identifier. Name of this SKU.
          +   * Format: `projects/{project}/locations/{location}/skus/{sku}`
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
          +   * Identifier. Name of this SKU.
          +   * Format: `projects/{project}/locations/{location}/skus/{sku}`
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
          +   * Output only. Display name of this SKU.
          +   * 
          + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
          +   * Output only. Display name of this SKU.
          +   * 
          + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
          +   * Output only. Time when this SKU was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
          +   * Output only. Time when this SKU was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
          +   * Output only. Time when this SKU was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
          +   * Output only. Time when this SKU was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
          +   * Output only. Time when this SKU was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
          +   * Output only. Time when this SKU was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int CONFIG_FIELD_NUMBER = 6; + private com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig config_; + /** + * + * + *
          +   * Output only. Configuration for this SKU.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.SkuConfig config = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the config field is set. + */ + @java.lang.Override + public boolean hasConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
          +   * Output only. Configuration for this SKU.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.SkuConfig config = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The config. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig getConfig() { + return config_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig.getDefaultInstance() + : config_; + } + /** + * + * + *
          +   * Output only. Configuration for this SKU.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.SkuConfig config = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfigOrBuilder getConfigOrBuilder() { + return config_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig.getDefaultInstance() + : config_; + } + + public static final int INSTANCES_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private java.util.List instances_; + /** + * + * + *
          +   * Output only. Available instances of this SKU. This field should be used for
          +   * checking availability of a SKU.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.SkuInstance instances = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getInstancesList() { + return instances_; + } + /** + * + * + *
          +   * Output only. Available instances of this SKU. This field should be used for
          +   * checking availability of a SKU.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.SkuInstance instances = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstanceOrBuilder> + getInstancesOrBuilderList() { + return instances_; + } + /** + * + * + *
          +   * Output only. Available instances of this SKU. This field should be used for
          +   * checking availability of a SKU.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.SkuInstance instances = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getInstancesCount() { + return instances_.size(); + } + /** + * + * + *
          +   * Output only. Available instances of this SKU. This field should be used for
          +   * checking availability of a SKU.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.SkuInstance instances = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance getInstances(int index) { + return instances_.get(index); + } + /** + * + * + *
          +   * Output only. Available instances of this SKU. This field should be used for
          +   * checking availability of a SKU.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.SkuInstance instances = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstanceOrBuilder getInstancesOrBuilder( + int index) { + return instances_.get(index); + } + + public static final int DESCRIPTION_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + /** + * + * + *
          +   * Output only. Description of this SKU.
          +   * 
          + * + * string description = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + * + * + *
          +   * Output only. Description of this SKU.
          +   * 
          + * + * string description = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REVISION_ID_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object revisionId_ = ""; + /** + * + * + *
          +   * Output only. The SKU revision ID.
          +   * A new revision is created whenever `config` is updated. The format is an
          +   * 8-character hexadecimal string.
          +   * 
          + * + * string revision_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The revisionId. + */ + @java.lang.Override + public java.lang.String getRevisionId() { + java.lang.Object ref = revisionId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + revisionId_ = s; + return s; + } + } + /** + * + * + *
          +   * Output only. The SKU revision ID.
          +   * A new revision is created whenever `config` is updated. The format is an
          +   * 8-character hexadecimal string.
          +   * 
          + * + * string revision_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for revisionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRevisionIdBytes() { + java.lang.Object ref = revisionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + revisionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IS_ACTIVE_FIELD_NUMBER = 10; + private boolean isActive_ = false; + /** + * + * + *
          +   * Output only. Flag to indicate whether or not this revision is active. Only
          +   * an active revision can be used in a new Order.
          +   * 
          + * + * bool is_active = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isActive. + */ + @java.lang.Override + public boolean getIsActive() { + return isActive_; + } + + public static final int TYPE_FIELD_NUMBER = 11; + private int type_ = 0; + /** + * + * + *
          +   * Output only. Type of this SKU.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Sku.Type type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
          +   * Output only. Type of this SKU.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Sku.Type type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Sku.Type getType() { + com.google.cloud.gdchardwaremanagement.v1alpha.Sku.Type result = + com.google.cloud.gdchardwaremanagement.v1alpha.Sku.Type.forNumber(type_); + return result == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Sku.Type.UNRECOGNIZED + : result; + } + + public static final int VCPU_COUNT_FIELD_NUMBER = 12; + private int vcpuCount_ = 0; + /** + * + * + *
          +   * Output only. The vCPU count associated with this SKU.
          +   * 
          + * + * int32 vcpu_count = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The vcpuCount. + */ + @java.lang.Override + public int getVcpuCount() { + return vcpuCount_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(6, getConfig()); + } + for (int i = 0; i < instances_.size(); i++) { + output.writeMessage(7, instances_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, description_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revisionId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, revisionId_); + } + if (isActive_ != false) { + output.writeBool(10, isActive_); + } + if (type_ + != com.google.cloud.gdchardwaremanagement.v1alpha.Sku.Type.TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(11, type_); + } + if (vcpuCount_ != 0) { + output.writeInt32(12, vcpuCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getConfig()); + } + for (int i = 0; i < instances_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, instances_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, description_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revisionId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, revisionId_); + } + if (isActive_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, isActive_); + } + if (type_ + != com.google.cloud.gdchardwaremanagement.v1alpha.Sku.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, type_); + } + if (vcpuCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(12, vcpuCount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.Sku)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.Sku other = + (com.google.cloud.gdchardwaremanagement.v1alpha.Sku) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (hasConfig() != other.hasConfig()) return false; + if (hasConfig()) { + if (!getConfig().equals(other.getConfig())) return false; + } + if (!getInstancesList().equals(other.getInstancesList())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getRevisionId().equals(other.getRevisionId())) return false; + if (getIsActive() != other.getIsActive()) return false; + if (type_ != other.type_) return false; + if (getVcpuCount() != other.getVcpuCount()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (hasConfig()) { + hash = (37 * hash) + CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getConfig().hashCode(); + } + if (getInstancesCount() > 0) { + hash = (37 * hash) + INSTANCES_FIELD_NUMBER; + hash = (53 * hash) + getInstancesList().hashCode(); + } + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + REVISION_ID_FIELD_NUMBER; + hash = (53 * hash) + getRevisionId().hashCode(); + hash = (37 * hash) + IS_ACTIVE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsActive()); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + VCPU_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getVcpuCount(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Sku parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Sku parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Sku parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Sku parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Sku parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Sku parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Sku parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Sku parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Sku parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Sku parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Sku parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Sku parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.gdchardwaremanagement.v1alpha.Sku prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * A stock keeping unit (SKU) of GDC hardware.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.Sku} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.Sku) + com.google.cloud.gdchardwaremanagement.v1alpha.SkuOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Sku_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Sku_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.Sku.class, + com.google.cloud.gdchardwaremanagement.v1alpha.Sku.Builder.class); + } + + // Construct using com.google.cloud.gdchardwaremanagement.v1alpha.Sku.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + getConfigFieldBuilder(); + getInstancesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + config_ = null; + if (configBuilder_ != null) { + configBuilder_.dispose(); + configBuilder_ = null; + } + if (instancesBuilder_ == null) { + instances_ = java.util.Collections.emptyList(); + } else { + instances_ = null; + instancesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + description_ = ""; + revisionId_ = ""; + isActive_ = false; + type_ = 0; + vcpuCount_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Sku_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Sku getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.Sku.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Sku build() { + com.google.cloud.gdchardwaremanagement.v1alpha.Sku result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Sku buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.Sku result = + new com.google.cloud.gdchardwaremanagement.v1alpha.Sku(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.gdchardwaremanagement.v1alpha.Sku result) { + if (instancesBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + instances_ = java.util.Collections.unmodifiableList(instances_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.instances_ = instances_; + } else { + result.instances_ = instancesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.gdchardwaremanagement.v1alpha.Sku result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.config_ = configBuilder_ == null ? config_ : configBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.revisionId_ = revisionId_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.isActive_ = isActive_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.vcpuCount_ = vcpuCount_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.Sku) { + return mergeFrom((com.google.cloud.gdchardwaremanagement.v1alpha.Sku) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gdchardwaremanagement.v1alpha.Sku other) { + if (other == com.google.cloud.gdchardwaremanagement.v1alpha.Sku.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasConfig()) { + mergeConfig(other.getConfig()); + } + if (instancesBuilder_ == null) { + if (!other.instances_.isEmpty()) { + if (instances_.isEmpty()) { + instances_ = other.instances_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureInstancesIsMutable(); + instances_.addAll(other.instances_); + } + onChanged(); + } + } else { + if (!other.instances_.isEmpty()) { + if (instancesBuilder_.isEmpty()) { + instancesBuilder_.dispose(); + instancesBuilder_ = null; + instances_ = other.instances_; + bitField0_ = (bitField0_ & ~0x00000020); + instancesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInstancesFieldBuilder() + : null; + } else { + instancesBuilder_.addAllMessages(other.instances_); + } + } + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.getRevisionId().isEmpty()) { + revisionId_ = other.revisionId_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (other.getIsActive() != false) { + setIsActive(other.getIsActive()); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.getVcpuCount() != 0) { + setVcpuCount(other.getVcpuCount()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 50: + { + input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 50 + case 58: + { + com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance m = + input.readMessage( + com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance.parser(), + extensionRegistry); + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(m); + } else { + instancesBuilder_.addMessage(m); + } + break; + } // case 58 + case 66: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 74: + { + revisionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 74 + case 80: + { + isActive_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 80 + case 88: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000200; + break; + } // case 88 + case 96: + { + vcpuCount_ = input.readInt32(); + bitField0_ |= 0x00000400; + break; + } // case 96 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
          +     * Identifier. Name of this SKU.
          +     * Format: `projects/{project}/locations/{location}/skus/{sku}`
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Identifier. Name of this SKU.
          +     * Format: `projects/{project}/locations/{location}/skus/{sku}`
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Identifier. Name of this SKU.
          +     * Format: `projects/{project}/locations/{location}/skus/{sku}`
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Identifier. Name of this SKU.
          +     * Format: `projects/{project}/locations/{location}/skus/{sku}`
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * Identifier. Name of this SKU.
          +     * Format: `projects/{project}/locations/{location}/skus/{sku}`
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
          +     * Output only. Display name of this SKU.
          +     * 
          + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Output only. Display name of this SKU.
          +     * 
          + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Output only. Display name of this SKU.
          +     * 
          + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Display name of this SKU.
          +     * 
          + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Display name of this SKU.
          +     * 
          + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
          +     * Output only. Time when this SKU was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
          +     * Output only. Time when this SKU was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Output only. Time when this SKU was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Time when this SKU was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Time when this SKU was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Output only. Time when this SKU was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Time when this SKU was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Output only. Time when this SKU was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
          +     * Output only. Time when this SKU was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
          +     * Output only. Time when this SKU was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
          +     * Output only. Time when this SKU was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Output only. Time when this SKU was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Time when this SKU was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Time when this SKU was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Output only. Time when this SKU was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Time when this SKU was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Output only. Time when this SKU was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
          +     * Output only. Time when this SKU was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig config_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig, + com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfigOrBuilder> + configBuilder_; + /** + * + * + *
          +     * Output only. Configuration for this SKU.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.SkuConfig config = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the config field is set. + */ + public boolean hasConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
          +     * Output only. Configuration for this SKU.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.SkuConfig config = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The config. + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig getConfig() { + if (configBuilder_ == null) { + return config_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig.getDefaultInstance() + : config_; + } else { + return configBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Output only. Configuration for this SKU.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.SkuConfig config = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setConfig(com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig value) { + if (configBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + config_ = value; + } else { + configBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Configuration for this SKU.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.SkuConfig config = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setConfig( + com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig.Builder builderForValue) { + if (configBuilder_ == null) { + config_ = builderForValue.build(); + } else { + configBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Configuration for this SKU.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.SkuConfig config = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeConfig(com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig value) { + if (configBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && config_ != null + && config_ + != com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig.getDefaultInstance()) { + getConfigBuilder().mergeFrom(value); + } else { + config_ = value; + } + } else { + configBuilder_.mergeFrom(value); + } + if (config_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Output only. Configuration for this SKU.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.SkuConfig config = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearConfig() { + bitField0_ = (bitField0_ & ~0x00000010); + config_ = null; + if (configBuilder_ != null) { + configBuilder_.dispose(); + configBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Configuration for this SKU.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.SkuConfig config = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig.Builder getConfigBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Output only. Configuration for this SKU.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.SkuConfig config = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfigOrBuilder getConfigOrBuilder() { + if (configBuilder_ != null) { + return configBuilder_.getMessageOrBuilder(); + } else { + return config_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig.getDefaultInstance() + : config_; + } + } + /** + * + * + *
          +     * Output only. Configuration for this SKU.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.SkuConfig config = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig, + com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfigOrBuilder> + getConfigFieldBuilder() { + if (configBuilder_ == null) { + configBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig, + com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfigOrBuilder>( + getConfig(), getParentForChildren(), isClean()); + config_ = null; + } + return configBuilder_; + } + + private java.util.List instances_ = + java.util.Collections.emptyList(); + + private void ensureInstancesIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + instances_ = + new java.util.ArrayList( + instances_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance, + com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstanceOrBuilder> + instancesBuilder_; + + /** + * + * + *
          +     * Output only. Available instances of this SKU. This field should be used for
          +     * checking availability of a SKU.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.SkuInstance instances = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getInstancesList() { + if (instancesBuilder_ == null) { + return java.util.Collections.unmodifiableList(instances_); + } else { + return instancesBuilder_.getMessageList(); + } + } + /** + * + * + *
          +     * Output only. Available instances of this SKU. This field should be used for
          +     * checking availability of a SKU.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.SkuInstance instances = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getInstancesCount() { + if (instancesBuilder_ == null) { + return instances_.size(); + } else { + return instancesBuilder_.getCount(); + } + } + /** + * + * + *
          +     * Output only. Available instances of this SKU. This field should be used for
          +     * checking availability of a SKU.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.SkuInstance instances = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance getInstances(int index) { + if (instancesBuilder_ == null) { + return instances_.get(index); + } else { + return instancesBuilder_.getMessage(index); + } + } + /** + * + * + *
          +     * Output only. Available instances of this SKU. This field should be used for
          +     * checking availability of a SKU.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.SkuInstance instances = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setInstances( + int index, com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance value) { + if (instancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.set(index, value); + onChanged(); + } else { + instancesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
          +     * Output only. Available instances of this SKU. This field should be used for
          +     * checking availability of a SKU.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.SkuInstance instances = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setInstances( + int index, + com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance.Builder builderForValue) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.set(index, builderForValue.build()); + onChanged(); + } else { + instancesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * Output only. Available instances of this SKU. This field should be used for
          +     * checking availability of a SKU.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.SkuInstance instances = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addInstances(com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance value) { + if (instancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.add(value); + onChanged(); + } else { + instancesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
          +     * Output only. Available instances of this SKU. This field should be used for
          +     * checking availability of a SKU.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.SkuInstance instances = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addInstances( + int index, com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance value) { + if (instancesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstancesIsMutable(); + instances_.add(index, value); + onChanged(); + } else { + instancesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
          +     * Output only. Available instances of this SKU. This field should be used for
          +     * checking availability of a SKU.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.SkuInstance instances = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addInstances( + com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance.Builder builderForValue) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(builderForValue.build()); + onChanged(); + } else { + instancesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * Output only. Available instances of this SKU. This field should be used for
          +     * checking availability of a SKU.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.SkuInstance instances = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addInstances( + int index, + com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance.Builder builderForValue) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(index, builderForValue.build()); + onChanged(); + } else { + instancesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * Output only. Available instances of this SKU. This field should be used for
          +     * checking availability of a SKU.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.SkuInstance instances = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllInstances( + java.lang.Iterable + values) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instances_); + onChanged(); + } else { + instancesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
          +     * Output only. Available instances of this SKU. This field should be used for
          +     * checking availability of a SKU.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.SkuInstance instances = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearInstances() { + if (instancesBuilder_ == null) { + instances_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + instancesBuilder_.clear(); + } + return this; + } + /** + * + * + *
          +     * Output only. Available instances of this SKU. This field should be used for
          +     * checking availability of a SKU.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.SkuInstance instances = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeInstances(int index) { + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.remove(index); + onChanged(); + } else { + instancesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
          +     * Output only. Available instances of this SKU. This field should be used for
          +     * checking availability of a SKU.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.SkuInstance instances = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance.Builder getInstancesBuilder( + int index) { + return getInstancesFieldBuilder().getBuilder(index); + } + /** + * + * + *
          +     * Output only. Available instances of this SKU. This field should be used for
          +     * checking availability of a SKU.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.SkuInstance instances = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstanceOrBuilder + getInstancesOrBuilder(int index) { + if (instancesBuilder_ == null) { + return instances_.get(index); + } else { + return instancesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
          +     * Output only. Available instances of this SKU. This field should be used for
          +     * checking availability of a SKU.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.SkuInstance instances = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstanceOrBuilder> + getInstancesOrBuilderList() { + if (instancesBuilder_ != null) { + return instancesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(instances_); + } + } + /** + * + * + *
          +     * Output only. Available instances of this SKU. This field should be used for
          +     * checking availability of a SKU.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.SkuInstance instances = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance.Builder + addInstancesBuilder() { + return getInstancesFieldBuilder() + .addBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance.getDefaultInstance()); + } + /** + * + * + *
          +     * Output only. Available instances of this SKU. This field should be used for
          +     * checking availability of a SKU.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.SkuInstance instances = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance.Builder addInstancesBuilder( + int index) { + return getInstancesFieldBuilder() + .addBuilder( + index, + com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance.getDefaultInstance()); + } + /** + * + * + *
          +     * Output only. Available instances of this SKU. This field should be used for
          +     * checking availability of a SKU.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.SkuInstance instances = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getInstancesBuilderList() { + return getInstancesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance, + com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstanceOrBuilder> + getInstancesFieldBuilder() { + if (instancesBuilder_ == null) { + instancesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance, + com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstanceOrBuilder>( + instances_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); + instances_ = null; + } + return instancesBuilder_; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
          +     * Output only. Description of this SKU.
          +     * 
          + * + * string description = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Output only. Description of this SKU.
          +     * 
          + * + * string description = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Output only. Description of this SKU.
          +     * 
          + * + * string description = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Description of this SKU.
          +     * 
          + * + * string description = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Description of this SKU.
          +     * 
          + * + * string description = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object revisionId_ = ""; + /** + * + * + *
          +     * Output only. The SKU revision ID.
          +     * A new revision is created whenever `config` is updated. The format is an
          +     * 8-character hexadecimal string.
          +     * 
          + * + * string revision_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The revisionId. + */ + public java.lang.String getRevisionId() { + java.lang.Object ref = revisionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + revisionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Output only. The SKU revision ID.
          +     * A new revision is created whenever `config` is updated. The format is an
          +     * 8-character hexadecimal string.
          +     * 
          + * + * string revision_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for revisionId. + */ + public com.google.protobuf.ByteString getRevisionIdBytes() { + java.lang.Object ref = revisionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + revisionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Output only. The SKU revision ID.
          +     * A new revision is created whenever `config` is updated. The format is an
          +     * 8-character hexadecimal string.
          +     * 
          + * + * string revision_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The revisionId to set. + * @return This builder for chaining. + */ + public Builder setRevisionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + revisionId_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. The SKU revision ID.
          +     * A new revision is created whenever `config` is updated. The format is an
          +     * 8-character hexadecimal string.
          +     * 
          + * + * string revision_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRevisionId() { + revisionId_ = getDefaultInstance().getRevisionId(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. The SKU revision ID.
          +     * A new revision is created whenever `config` is updated. The format is an
          +     * 8-character hexadecimal string.
          +     * 
          + * + * string revision_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for revisionId to set. + * @return This builder for chaining. + */ + public Builder setRevisionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + revisionId_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private boolean isActive_; + /** + * + * + *
          +     * Output only. Flag to indicate whether or not this revision is active. Only
          +     * an active revision can be used in a new Order.
          +     * 
          + * + * bool is_active = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isActive. + */ + @java.lang.Override + public boolean getIsActive() { + return isActive_; + } + /** + * + * + *
          +     * Output only. Flag to indicate whether or not this revision is active. Only
          +     * an active revision can be used in a new Order.
          +     * 
          + * + * bool is_active = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The isActive to set. + * @return This builder for chaining. + */ + public Builder setIsActive(boolean value) { + + isActive_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Flag to indicate whether or not this revision is active. Only
          +     * an active revision can be used in a new Order.
          +     * 
          + * + * bool is_active = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearIsActive() { + bitField0_ = (bitField0_ & ~0x00000100); + isActive_ = false; + onChanged(); + return this; + } + + private int type_ = 0; + /** + * + * + *
          +     * Output only. Type of this SKU.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Sku.Type type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
          +     * Output only. Type of this SKU.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Sku.Type type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Type of this SKU.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Sku.Type type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Sku.Type getType() { + com.google.cloud.gdchardwaremanagement.v1alpha.Sku.Type result = + com.google.cloud.gdchardwaremanagement.v1alpha.Sku.Type.forNumber(type_); + return result == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Sku.Type.UNRECOGNIZED + : result; + } + /** + * + * + *
          +     * Output only. Type of this SKU.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Sku.Type type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.cloud.gdchardwaremanagement.v1alpha.Sku.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000200; + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Type of this SKU.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Sku.Type type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000200); + type_ = 0; + onChanged(); + return this; + } + + private int vcpuCount_; + /** + * + * + *
          +     * Output only. The vCPU count associated with this SKU.
          +     * 
          + * + * int32 vcpu_count = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The vcpuCount. + */ + @java.lang.Override + public int getVcpuCount() { + return vcpuCount_; + } + /** + * + * + *
          +     * Output only. The vCPU count associated with this SKU.
          +     * 
          + * + * int32 vcpu_count = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The vcpuCount to set. + * @return This builder for chaining. + */ + public Builder setVcpuCount(int value) { + + vcpuCount_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. The vCPU count associated with this SKU.
          +     * 
          + * + * int32 vcpu_count = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearVcpuCount() { + bitField0_ = (bitField0_ & ~0x00000400); + vcpuCount_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.Sku) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.Sku) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.Sku DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.Sku(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Sku getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Sku parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Sku getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SkuConfig.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SkuConfig.java new file mode 100644 index 000000000000..d4da6083d7fe --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SkuConfig.java @@ -0,0 +1,1172 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * Configuration for a SKU.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.SkuConfig} + */ +public final class SkuConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.SkuConfig) + SkuConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use SkuConfig.newBuilder() to construct. + private SkuConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SkuConfig() { + cpu_ = ""; + gpu_ = ""; + ram_ = ""; + storage_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SkuConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_SkuConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_SkuConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig.class, + com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig.Builder.class); + } + + public static final int CPU_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object cpu_ = ""; + /** + * + * + *
          +   * Information about CPU configuration.
          +   * 
          + * + * string cpu = 1; + * + * @return The cpu. + */ + @java.lang.Override + public java.lang.String getCpu() { + java.lang.Object ref = cpu_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cpu_ = s; + return s; + } + } + /** + * + * + *
          +   * Information about CPU configuration.
          +   * 
          + * + * string cpu = 1; + * + * @return The bytes for cpu. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCpuBytes() { + java.lang.Object ref = cpu_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cpu_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GPU_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object gpu_ = ""; + /** + * + * + *
          +   * Information about GPU configuration.
          +   * 
          + * + * string gpu = 2; + * + * @return The gpu. + */ + @java.lang.Override + public java.lang.String getGpu() { + java.lang.Object ref = gpu_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gpu_ = s; + return s; + } + } + /** + * + * + *
          +   * Information about GPU configuration.
          +   * 
          + * + * string gpu = 2; + * + * @return The bytes for gpu. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGpuBytes() { + java.lang.Object ref = gpu_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gpu_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RAM_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object ram_ = ""; + /** + * + * + *
          +   * Information about RAM configuration.
          +   * 
          + * + * string ram = 3; + * + * @return The ram. + */ + @java.lang.Override + public java.lang.String getRam() { + java.lang.Object ref = ram_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ram_ = s; + return s; + } + } + /** + * + * + *
          +   * Information about RAM configuration.
          +   * 
          + * + * string ram = 3; + * + * @return The bytes for ram. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRamBytes() { + java.lang.Object ref = ram_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ram_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STORAGE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object storage_ = ""; + /** + * + * + *
          +   * Information about storage configuration.
          +   * 
          + * + * string storage = 4; + * + * @return The storage. + */ + @java.lang.Override + public java.lang.String getStorage() { + java.lang.Object ref = storage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + storage_ = s; + return s; + } + } + /** + * + * + *
          +   * Information about storage configuration.
          +   * 
          + * + * string storage = 4; + * + * @return The bytes for storage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStorageBytes() { + java.lang.Object ref = storage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + storage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cpu_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cpu_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gpu_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, gpu_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ram_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ram_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(storage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, storage_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cpu_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cpu_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gpu_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, gpu_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ram_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, ram_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(storage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, storage_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig other = + (com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig) obj; + + if (!getCpu().equals(other.getCpu())) return false; + if (!getGpu().equals(other.getGpu())) return false; + if (!getRam().equals(other.getRam())) return false; + if (!getStorage().equals(other.getStorage())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CPU_FIELD_NUMBER; + hash = (53 * hash) + getCpu().hashCode(); + hash = (37 * hash) + GPU_FIELD_NUMBER; + hash = (53 * hash) + getGpu().hashCode(); + hash = (37 * hash) + RAM_FIELD_NUMBER; + hash = (53 * hash) + getRam().hashCode(); + hash = (37 * hash) + STORAGE_FIELD_NUMBER; + hash = (53 * hash) + getStorage().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * Configuration for a SKU.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.SkuConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.SkuConfig) + com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_SkuConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_SkuConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig.class, + com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig.Builder.class); + } + + // Construct using com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + cpu_ = ""; + gpu_ = ""; + ram_ = ""; + storage_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_SkuConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig build() { + com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig result = + new com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.cpu_ = cpu_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.gpu_ = gpu_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.ram_ = ram_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.storage_ = storage_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig) { + return mergeFrom((com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig other) { + if (other == com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig.getDefaultInstance()) + return this; + if (!other.getCpu().isEmpty()) { + cpu_ = other.cpu_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getGpu().isEmpty()) { + gpu_ = other.gpu_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getRam().isEmpty()) { + ram_ = other.ram_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getStorage().isEmpty()) { + storage_ = other.storage_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + cpu_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + gpu_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + ram_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + storage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object cpu_ = ""; + /** + * + * + *
          +     * Information about CPU configuration.
          +     * 
          + * + * string cpu = 1; + * + * @return The cpu. + */ + public java.lang.String getCpu() { + java.lang.Object ref = cpu_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cpu_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Information about CPU configuration.
          +     * 
          + * + * string cpu = 1; + * + * @return The bytes for cpu. + */ + public com.google.protobuf.ByteString getCpuBytes() { + java.lang.Object ref = cpu_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cpu_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Information about CPU configuration.
          +     * 
          + * + * string cpu = 1; + * + * @param value The cpu to set. + * @return This builder for chaining. + */ + public Builder setCpu(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cpu_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Information about CPU configuration.
          +     * 
          + * + * string cpu = 1; + * + * @return This builder for chaining. + */ + public Builder clearCpu() { + cpu_ = getDefaultInstance().getCpu(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * Information about CPU configuration.
          +     * 
          + * + * string cpu = 1; + * + * @param value The bytes for cpu to set. + * @return This builder for chaining. + */ + public Builder setCpuBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cpu_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object gpu_ = ""; + /** + * + * + *
          +     * Information about GPU configuration.
          +     * 
          + * + * string gpu = 2; + * + * @return The gpu. + */ + public java.lang.String getGpu() { + java.lang.Object ref = gpu_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gpu_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Information about GPU configuration.
          +     * 
          + * + * string gpu = 2; + * + * @return The bytes for gpu. + */ + public com.google.protobuf.ByteString getGpuBytes() { + java.lang.Object ref = gpu_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gpu_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Information about GPU configuration.
          +     * 
          + * + * string gpu = 2; + * + * @param value The gpu to set. + * @return This builder for chaining. + */ + public Builder setGpu(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gpu_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Information about GPU configuration.
          +     * 
          + * + * string gpu = 2; + * + * @return This builder for chaining. + */ + public Builder clearGpu() { + gpu_ = getDefaultInstance().getGpu(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
          +     * Information about GPU configuration.
          +     * 
          + * + * string gpu = 2; + * + * @param value The bytes for gpu to set. + * @return This builder for chaining. + */ + public Builder setGpuBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gpu_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object ram_ = ""; + /** + * + * + *
          +     * Information about RAM configuration.
          +     * 
          + * + * string ram = 3; + * + * @return The ram. + */ + public java.lang.String getRam() { + java.lang.Object ref = ram_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ram_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Information about RAM configuration.
          +     * 
          + * + * string ram = 3; + * + * @return The bytes for ram. + */ + public com.google.protobuf.ByteString getRamBytes() { + java.lang.Object ref = ram_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ram_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Information about RAM configuration.
          +     * 
          + * + * string ram = 3; + * + * @param value The ram to set. + * @return This builder for chaining. + */ + public Builder setRam(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ram_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Information about RAM configuration.
          +     * 
          + * + * string ram = 3; + * + * @return This builder for chaining. + */ + public Builder clearRam() { + ram_ = getDefaultInstance().getRam(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
          +     * Information about RAM configuration.
          +     * 
          + * + * string ram = 3; + * + * @param value The bytes for ram to set. + * @return This builder for chaining. + */ + public Builder setRamBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ram_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object storage_ = ""; + /** + * + * + *
          +     * Information about storage configuration.
          +     * 
          + * + * string storage = 4; + * + * @return The storage. + */ + public java.lang.String getStorage() { + java.lang.Object ref = storage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + storage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Information about storage configuration.
          +     * 
          + * + * string storage = 4; + * + * @return The bytes for storage. + */ + public com.google.protobuf.ByteString getStorageBytes() { + java.lang.Object ref = storage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + storage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Information about storage configuration.
          +     * 
          + * + * string storage = 4; + * + * @param value The storage to set. + * @return This builder for chaining. + */ + public Builder setStorage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + storage_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * Information about storage configuration.
          +     * 
          + * + * string storage = 4; + * + * @return This builder for chaining. + */ + public Builder clearStorage() { + storage_ = getDefaultInstance().getStorage(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
          +     * Information about storage configuration.
          +     * 
          + * + * string storage = 4; + * + * @param value The bytes for storage to set. + * @return This builder for chaining. + */ + public Builder setStorageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + storage_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.SkuConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.SkuConfig) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SkuConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SkuConfigOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SkuConfigOrBuilder.java new file mode 100644 index 000000000000..8726eb1d6073 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SkuConfigOrBuilder.java @@ -0,0 +1,126 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface SkuConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.SkuConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Information about CPU configuration.
          +   * 
          + * + * string cpu = 1; + * + * @return The cpu. + */ + java.lang.String getCpu(); + /** + * + * + *
          +   * Information about CPU configuration.
          +   * 
          + * + * string cpu = 1; + * + * @return The bytes for cpu. + */ + com.google.protobuf.ByteString getCpuBytes(); + + /** + * + * + *
          +   * Information about GPU configuration.
          +   * 
          + * + * string gpu = 2; + * + * @return The gpu. + */ + java.lang.String getGpu(); + /** + * + * + *
          +   * Information about GPU configuration.
          +   * 
          + * + * string gpu = 2; + * + * @return The bytes for gpu. + */ + com.google.protobuf.ByteString getGpuBytes(); + + /** + * + * + *
          +   * Information about RAM configuration.
          +   * 
          + * + * string ram = 3; + * + * @return The ram. + */ + java.lang.String getRam(); + /** + * + * + *
          +   * Information about RAM configuration.
          +   * 
          + * + * string ram = 3; + * + * @return The bytes for ram. + */ + com.google.protobuf.ByteString getRamBytes(); + + /** + * + * + *
          +   * Information about storage configuration.
          +   * 
          + * + * string storage = 4; + * + * @return The storage. + */ + java.lang.String getStorage(); + /** + * + * + *
          +   * Information about storage configuration.
          +   * 
          + * + * string storage = 4; + * + * @return The bytes for storage. + */ + com.google.protobuf.ByteString getStorageBytes(); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SkuInstance.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SkuInstance.java new file mode 100644 index 000000000000..76becb65889b --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SkuInstance.java @@ -0,0 +1,1276 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * A specific instance of the SKU.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.SkuInstance} + */ +public final class SkuInstance extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.SkuInstance) + SkuInstanceOrBuilder { + private static final long serialVersionUID = 0L; + // Use SkuInstance.newBuilder() to construct. + private SkuInstance(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SkuInstance() { + regionCode_ = ""; + powerSupply_ = 0; + billingSku_ = ""; + billingSkuPerVcpu_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SkuInstance(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_SkuInstance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_SkuInstance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance.class, + com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance.Builder.class); + } + + public static final int REGION_CODE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object regionCode_ = ""; + /** + * + * + *
          +   * The [Unicode CLDR](https://cldr.unicode.org) region code where this
          +   * instance is available.
          +   * 
          + * + * string region_code = 1; + * + * @return The regionCode. + */ + @java.lang.Override + public java.lang.String getRegionCode() { + java.lang.Object ref = regionCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + regionCode_ = s; + return s; + } + } + /** + * + * + *
          +   * The [Unicode CLDR](https://cldr.unicode.org) region code where this
          +   * instance is available.
          +   * 
          + * + * string region_code = 1; + * + * @return The bytes for regionCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionCodeBytes() { + java.lang.Object ref = regionCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + regionCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POWER_SUPPLY_FIELD_NUMBER = 2; + private int powerSupply_ = 0; + /** + * + * + *
          +   * Power supply type for this instance.
          +   * 
          + * + * .google.cloud.gdchardwaremanagement.v1alpha.PowerSupply power_supply = 2; + * + * @return The enum numeric value on the wire for powerSupply. + */ + @java.lang.Override + public int getPowerSupplyValue() { + return powerSupply_; + } + /** + * + * + *
          +   * Power supply type for this instance.
          +   * 
          + * + * .google.cloud.gdchardwaremanagement.v1alpha.PowerSupply power_supply = 2; + * + * @return The powerSupply. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.PowerSupply getPowerSupply() { + com.google.cloud.gdchardwaremanagement.v1alpha.PowerSupply result = + com.google.cloud.gdchardwaremanagement.v1alpha.PowerSupply.forNumber(powerSupply_); + return result == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.PowerSupply.UNRECOGNIZED + : result; + } + + public static final int BILLING_SKU_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object billingSku_ = ""; + /** + * + * + *
          +   * Reference to the corresponding SKU in the Cloud Billing API.
          +   * The estimated price information can be retrieved using that API.
          +   * Format: `services/{service}/skus/{sku}`
          +   * 
          + * + * string billing_sku = 3; + * + * @return The billingSku. + */ + @java.lang.Override + public java.lang.String getBillingSku() { + java.lang.Object ref = billingSku_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + billingSku_ = s; + return s; + } + } + /** + * + * + *
          +   * Reference to the corresponding SKU in the Cloud Billing API.
          +   * The estimated price information can be retrieved using that API.
          +   * Format: `services/{service}/skus/{sku}`
          +   * 
          + * + * string billing_sku = 3; + * + * @return The bytes for billingSku. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBillingSkuBytes() { + java.lang.Object ref = billingSku_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + billingSku_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BILLING_SKU_PER_VCPU_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object billingSkuPerVcpu_ = ""; + /** + * + * + *
          +   * Reference to the corresponding SKU per vCPU in the Cloud Billing API.
          +   * The estimated price information can be retrieved using that API.
          +   * Format: `services/{service}/skus/{sku}`
          +   * 
          + * + * string billing_sku_per_vcpu = 4; + * + * @return The billingSkuPerVcpu. + */ + @java.lang.Override + public java.lang.String getBillingSkuPerVcpu() { + java.lang.Object ref = billingSkuPerVcpu_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + billingSkuPerVcpu_ = s; + return s; + } + } + /** + * + * + *
          +   * Reference to the corresponding SKU per vCPU in the Cloud Billing API.
          +   * The estimated price information can be retrieved using that API.
          +   * Format: `services/{service}/skus/{sku}`
          +   * 
          + * + * string billing_sku_per_vcpu = 4; + * + * @return The bytes for billingSkuPerVcpu. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBillingSkuPerVcpuBytes() { + java.lang.Object ref = billingSkuPerVcpu_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + billingSkuPerVcpu_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUBSCRIPTION_DURATION_MONTHS_FIELD_NUMBER = 5; + private int subscriptionDurationMonths_ = 0; + /** + * + * + *
          +   * Subscription duration for the hardware in months.
          +   * 
          + * + * int32 subscription_duration_months = 5; + * + * @return The subscriptionDurationMonths. + */ + @java.lang.Override + public int getSubscriptionDurationMonths() { + return subscriptionDurationMonths_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(regionCode_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, regionCode_); + } + if (powerSupply_ + != com.google.cloud.gdchardwaremanagement.v1alpha.PowerSupply.POWER_SUPPLY_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, powerSupply_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(billingSku_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, billingSku_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(billingSkuPerVcpu_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, billingSkuPerVcpu_); + } + if (subscriptionDurationMonths_ != 0) { + output.writeInt32(5, subscriptionDurationMonths_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(regionCode_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, regionCode_); + } + if (powerSupply_ + != com.google.cloud.gdchardwaremanagement.v1alpha.PowerSupply.POWER_SUPPLY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, powerSupply_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(billingSku_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, billingSku_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(billingSkuPerVcpu_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, billingSkuPerVcpu_); + } + if (subscriptionDurationMonths_ != 0) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size(5, subscriptionDurationMonths_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance other = + (com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance) obj; + + if (!getRegionCode().equals(other.getRegionCode())) return false; + if (powerSupply_ != other.powerSupply_) return false; + if (!getBillingSku().equals(other.getBillingSku())) return false; + if (!getBillingSkuPerVcpu().equals(other.getBillingSkuPerVcpu())) return false; + if (getSubscriptionDurationMonths() != other.getSubscriptionDurationMonths()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REGION_CODE_FIELD_NUMBER; + hash = (53 * hash) + getRegionCode().hashCode(); + hash = (37 * hash) + POWER_SUPPLY_FIELD_NUMBER; + hash = (53 * hash) + powerSupply_; + hash = (37 * hash) + BILLING_SKU_FIELD_NUMBER; + hash = (53 * hash) + getBillingSku().hashCode(); + hash = (37 * hash) + BILLING_SKU_PER_VCPU_FIELD_NUMBER; + hash = (53 * hash) + getBillingSkuPerVcpu().hashCode(); + hash = (37 * hash) + SUBSCRIPTION_DURATION_MONTHS_FIELD_NUMBER; + hash = (53 * hash) + getSubscriptionDurationMonths(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * A specific instance of the SKU.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.SkuInstance} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.SkuInstance) + com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstanceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_SkuInstance_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_SkuInstance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance.class, + com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance.Builder.class); + } + + // Construct using com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + regionCode_ = ""; + powerSupply_ = 0; + billingSku_ = ""; + billingSkuPerVcpu_ = ""; + subscriptionDurationMonths_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_SkuInstance_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance build() { + com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance result = + new com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.regionCode_ = regionCode_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.powerSupply_ = powerSupply_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.billingSku_ = billingSku_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.billingSkuPerVcpu_ = billingSkuPerVcpu_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.subscriptionDurationMonths_ = subscriptionDurationMonths_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance) { + return mergeFrom((com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance other) { + if (other == com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance.getDefaultInstance()) + return this; + if (!other.getRegionCode().isEmpty()) { + regionCode_ = other.regionCode_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.powerSupply_ != 0) { + setPowerSupplyValue(other.getPowerSupplyValue()); + } + if (!other.getBillingSku().isEmpty()) { + billingSku_ = other.billingSku_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getBillingSkuPerVcpu().isEmpty()) { + billingSkuPerVcpu_ = other.billingSkuPerVcpu_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.getSubscriptionDurationMonths() != 0) { + setSubscriptionDurationMonths(other.getSubscriptionDurationMonths()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + regionCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + powerSupply_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + billingSku_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + billingSkuPerVcpu_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + subscriptionDurationMonths_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object regionCode_ = ""; + /** + * + * + *
          +     * The [Unicode CLDR](https://cldr.unicode.org) region code where this
          +     * instance is available.
          +     * 
          + * + * string region_code = 1; + * + * @return The regionCode. + */ + public java.lang.String getRegionCode() { + java.lang.Object ref = regionCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + regionCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * The [Unicode CLDR](https://cldr.unicode.org) region code where this
          +     * instance is available.
          +     * 
          + * + * string region_code = 1; + * + * @return The bytes for regionCode. + */ + public com.google.protobuf.ByteString getRegionCodeBytes() { + java.lang.Object ref = regionCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + regionCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * The [Unicode CLDR](https://cldr.unicode.org) region code where this
          +     * instance is available.
          +     * 
          + * + * string region_code = 1; + * + * @param value The regionCode to set. + * @return This builder for chaining. + */ + public Builder setRegionCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + regionCode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * The [Unicode CLDR](https://cldr.unicode.org) region code where this
          +     * instance is available.
          +     * 
          + * + * string region_code = 1; + * + * @return This builder for chaining. + */ + public Builder clearRegionCode() { + regionCode_ = getDefaultInstance().getRegionCode(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * The [Unicode CLDR](https://cldr.unicode.org) region code where this
          +     * instance is available.
          +     * 
          + * + * string region_code = 1; + * + * @param value The bytes for regionCode to set. + * @return This builder for chaining. + */ + public Builder setRegionCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + regionCode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int powerSupply_ = 0; + /** + * + * + *
          +     * Power supply type for this instance.
          +     * 
          + * + * .google.cloud.gdchardwaremanagement.v1alpha.PowerSupply power_supply = 2; + * + * @return The enum numeric value on the wire for powerSupply. + */ + @java.lang.Override + public int getPowerSupplyValue() { + return powerSupply_; + } + /** + * + * + *
          +     * Power supply type for this instance.
          +     * 
          + * + * .google.cloud.gdchardwaremanagement.v1alpha.PowerSupply power_supply = 2; + * + * @param value The enum numeric value on the wire for powerSupply to set. + * @return This builder for chaining. + */ + public Builder setPowerSupplyValue(int value) { + powerSupply_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Power supply type for this instance.
          +     * 
          + * + * .google.cloud.gdchardwaremanagement.v1alpha.PowerSupply power_supply = 2; + * + * @return The powerSupply. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.PowerSupply getPowerSupply() { + com.google.cloud.gdchardwaremanagement.v1alpha.PowerSupply result = + com.google.cloud.gdchardwaremanagement.v1alpha.PowerSupply.forNumber(powerSupply_); + return result == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.PowerSupply.UNRECOGNIZED + : result; + } + /** + * + * + *
          +     * Power supply type for this instance.
          +     * 
          + * + * .google.cloud.gdchardwaremanagement.v1alpha.PowerSupply power_supply = 2; + * + * @param value The powerSupply to set. + * @return This builder for chaining. + */ + public Builder setPowerSupply( + com.google.cloud.gdchardwaremanagement.v1alpha.PowerSupply value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + powerSupply_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
          +     * Power supply type for this instance.
          +     * 
          + * + * .google.cloud.gdchardwaremanagement.v1alpha.PowerSupply power_supply = 2; + * + * @return This builder for chaining. + */ + public Builder clearPowerSupply() { + bitField0_ = (bitField0_ & ~0x00000002); + powerSupply_ = 0; + onChanged(); + return this; + } + + private java.lang.Object billingSku_ = ""; + /** + * + * + *
          +     * Reference to the corresponding SKU in the Cloud Billing API.
          +     * The estimated price information can be retrieved using that API.
          +     * Format: `services/{service}/skus/{sku}`
          +     * 
          + * + * string billing_sku = 3; + * + * @return The billingSku. + */ + public java.lang.String getBillingSku() { + java.lang.Object ref = billingSku_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + billingSku_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Reference to the corresponding SKU in the Cloud Billing API.
          +     * The estimated price information can be retrieved using that API.
          +     * Format: `services/{service}/skus/{sku}`
          +     * 
          + * + * string billing_sku = 3; + * + * @return The bytes for billingSku. + */ + public com.google.protobuf.ByteString getBillingSkuBytes() { + java.lang.Object ref = billingSku_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + billingSku_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Reference to the corresponding SKU in the Cloud Billing API.
          +     * The estimated price information can be retrieved using that API.
          +     * Format: `services/{service}/skus/{sku}`
          +     * 
          + * + * string billing_sku = 3; + * + * @param value The billingSku to set. + * @return This builder for chaining. + */ + public Builder setBillingSku(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + billingSku_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Reference to the corresponding SKU in the Cloud Billing API.
          +     * The estimated price information can be retrieved using that API.
          +     * Format: `services/{service}/skus/{sku}`
          +     * 
          + * + * string billing_sku = 3; + * + * @return This builder for chaining. + */ + public Builder clearBillingSku() { + billingSku_ = getDefaultInstance().getBillingSku(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
          +     * Reference to the corresponding SKU in the Cloud Billing API.
          +     * The estimated price information can be retrieved using that API.
          +     * Format: `services/{service}/skus/{sku}`
          +     * 
          + * + * string billing_sku = 3; + * + * @param value The bytes for billingSku to set. + * @return This builder for chaining. + */ + public Builder setBillingSkuBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + billingSku_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object billingSkuPerVcpu_ = ""; + /** + * + * + *
          +     * Reference to the corresponding SKU per vCPU in the Cloud Billing API.
          +     * The estimated price information can be retrieved using that API.
          +     * Format: `services/{service}/skus/{sku}`
          +     * 
          + * + * string billing_sku_per_vcpu = 4; + * + * @return The billingSkuPerVcpu. + */ + public java.lang.String getBillingSkuPerVcpu() { + java.lang.Object ref = billingSkuPerVcpu_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + billingSkuPerVcpu_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Reference to the corresponding SKU per vCPU in the Cloud Billing API.
          +     * The estimated price information can be retrieved using that API.
          +     * Format: `services/{service}/skus/{sku}`
          +     * 
          + * + * string billing_sku_per_vcpu = 4; + * + * @return The bytes for billingSkuPerVcpu. + */ + public com.google.protobuf.ByteString getBillingSkuPerVcpuBytes() { + java.lang.Object ref = billingSkuPerVcpu_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + billingSkuPerVcpu_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Reference to the corresponding SKU per vCPU in the Cloud Billing API.
          +     * The estimated price information can be retrieved using that API.
          +     * Format: `services/{service}/skus/{sku}`
          +     * 
          + * + * string billing_sku_per_vcpu = 4; + * + * @param value The billingSkuPerVcpu to set. + * @return This builder for chaining. + */ + public Builder setBillingSkuPerVcpu(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + billingSkuPerVcpu_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * Reference to the corresponding SKU per vCPU in the Cloud Billing API.
          +     * The estimated price information can be retrieved using that API.
          +     * Format: `services/{service}/skus/{sku}`
          +     * 
          + * + * string billing_sku_per_vcpu = 4; + * + * @return This builder for chaining. + */ + public Builder clearBillingSkuPerVcpu() { + billingSkuPerVcpu_ = getDefaultInstance().getBillingSkuPerVcpu(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
          +     * Reference to the corresponding SKU per vCPU in the Cloud Billing API.
          +     * The estimated price information can be retrieved using that API.
          +     * Format: `services/{service}/skus/{sku}`
          +     * 
          + * + * string billing_sku_per_vcpu = 4; + * + * @param value The bytes for billingSkuPerVcpu to set. + * @return This builder for chaining. + */ + public Builder setBillingSkuPerVcpuBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + billingSkuPerVcpu_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private int subscriptionDurationMonths_; + /** + * + * + *
          +     * Subscription duration for the hardware in months.
          +     * 
          + * + * int32 subscription_duration_months = 5; + * + * @return The subscriptionDurationMonths. + */ + @java.lang.Override + public int getSubscriptionDurationMonths() { + return subscriptionDurationMonths_; + } + /** + * + * + *
          +     * Subscription duration for the hardware in months.
          +     * 
          + * + * int32 subscription_duration_months = 5; + * + * @param value The subscriptionDurationMonths to set. + * @return This builder for chaining. + */ + public Builder setSubscriptionDurationMonths(int value) { + + subscriptionDurationMonths_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
          +     * Subscription duration for the hardware in months.
          +     * 
          + * + * int32 subscription_duration_months = 5; + * + * @return This builder for chaining. + */ + public Builder clearSubscriptionDurationMonths() { + bitField0_ = (bitField0_ & ~0x00000010); + subscriptionDurationMonths_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.SkuInstance) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.SkuInstance) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SkuInstance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SkuInstanceOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SkuInstanceOrBuilder.java new file mode 100644 index 000000000000..9fa77b662d8e --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SkuInstanceOrBuilder.java @@ -0,0 +1,149 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface SkuInstanceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.SkuInstance) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * The [Unicode CLDR](https://cldr.unicode.org) region code where this
          +   * instance is available.
          +   * 
          + * + * string region_code = 1; + * + * @return The regionCode. + */ + java.lang.String getRegionCode(); + /** + * + * + *
          +   * The [Unicode CLDR](https://cldr.unicode.org) region code where this
          +   * instance is available.
          +   * 
          + * + * string region_code = 1; + * + * @return The bytes for regionCode. + */ + com.google.protobuf.ByteString getRegionCodeBytes(); + + /** + * + * + *
          +   * Power supply type for this instance.
          +   * 
          + * + * .google.cloud.gdchardwaremanagement.v1alpha.PowerSupply power_supply = 2; + * + * @return The enum numeric value on the wire for powerSupply. + */ + int getPowerSupplyValue(); + /** + * + * + *
          +   * Power supply type for this instance.
          +   * 
          + * + * .google.cloud.gdchardwaremanagement.v1alpha.PowerSupply power_supply = 2; + * + * @return The powerSupply. + */ + com.google.cloud.gdchardwaremanagement.v1alpha.PowerSupply getPowerSupply(); + + /** + * + * + *
          +   * Reference to the corresponding SKU in the Cloud Billing API.
          +   * The estimated price information can be retrieved using that API.
          +   * Format: `services/{service}/skus/{sku}`
          +   * 
          + * + * string billing_sku = 3; + * + * @return The billingSku. + */ + java.lang.String getBillingSku(); + /** + * + * + *
          +   * Reference to the corresponding SKU in the Cloud Billing API.
          +   * The estimated price information can be retrieved using that API.
          +   * Format: `services/{service}/skus/{sku}`
          +   * 
          + * + * string billing_sku = 3; + * + * @return The bytes for billingSku. + */ + com.google.protobuf.ByteString getBillingSkuBytes(); + + /** + * + * + *
          +   * Reference to the corresponding SKU per vCPU in the Cloud Billing API.
          +   * The estimated price information can be retrieved using that API.
          +   * Format: `services/{service}/skus/{sku}`
          +   * 
          + * + * string billing_sku_per_vcpu = 4; + * + * @return The billingSkuPerVcpu. + */ + java.lang.String getBillingSkuPerVcpu(); + /** + * + * + *
          +   * Reference to the corresponding SKU per vCPU in the Cloud Billing API.
          +   * The estimated price information can be retrieved using that API.
          +   * Format: `services/{service}/skus/{sku}`
          +   * 
          + * + * string billing_sku_per_vcpu = 4; + * + * @return The bytes for billingSkuPerVcpu. + */ + com.google.protobuf.ByteString getBillingSkuPerVcpuBytes(); + + /** + * + * + *
          +   * Subscription duration for the hardware in months.
          +   * 
          + * + * int32 subscription_duration_months = 5; + * + * @return The subscriptionDurationMonths. + */ + int getSubscriptionDurationMonths(); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SkuName.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SkuName.java new file mode 100644 index 000000000000..6b5f3897252b --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SkuName.java @@ -0,0 +1,216 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class SkuName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_SKU = + PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}/skus/{sku}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String sku; + + @Deprecated + protected SkuName() { + project = null; + location = null; + sku = null; + } + + private SkuName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + sku = Preconditions.checkNotNull(builder.getSku()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getSku() { + return sku; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static SkuName of(String project, String location, String sku) { + return newBuilder().setProject(project).setLocation(location).setSku(sku).build(); + } + + public static String format(String project, String location, String sku) { + return newBuilder().setProject(project).setLocation(location).setSku(sku).build().toString(); + } + + public static SkuName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_SKU.validatedMatch( + formattedString, "SkuName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("sku")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (SkuName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_SKU.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (sku != null) { + fieldMapBuilder.put("sku", sku); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_SKU.instantiate("project", project, "location", location, "sku", sku); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + SkuName that = ((SkuName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.sku, that.sku); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(sku); + return h; + } + + /** Builder for projects/{project}/locations/{location}/skus/{sku}. */ + public static class Builder { + private String project; + private String location; + private String sku; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getSku() { + return sku; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setSku(String sku) { + this.sku = sku; + return this; + } + + private Builder(SkuName skuName) { + this.project = skuName.project; + this.location = skuName.location; + this.sku = skuName.sku; + } + + public SkuName build() { + return new SkuName(this); + } + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SkuOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SkuOrBuilder.java new file mode 100644 index 000000000000..52e9c198a754 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SkuOrBuilder.java @@ -0,0 +1,373 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface SkuOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.Sku) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Identifier. Name of this SKU.
          +   * Format: `projects/{project}/locations/{location}/skus/{sku}`
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
          +   * Identifier. Name of this SKU.
          +   * Format: `projects/{project}/locations/{location}/skus/{sku}`
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
          +   * Output only. Display name of this SKU.
          +   * 
          + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
          +   * Output only. Display name of this SKU.
          +   * 
          + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
          +   * Output only. Time when this SKU was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
          +   * Output only. Time when this SKU was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
          +   * Output only. Time when this SKU was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
          +   * Output only. Time when this SKU was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
          +   * Output only. Time when this SKU was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
          +   * Output only. Time when this SKU was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
          +   * Output only. Configuration for this SKU.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.SkuConfig config = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the config field is set. + */ + boolean hasConfig(); + /** + * + * + *
          +   * Output only. Configuration for this SKU.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.SkuConfig config = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The config. + */ + com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig getConfig(); + /** + * + * + *
          +   * Output only. Configuration for this SKU.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.SkuConfig config = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.gdchardwaremanagement.v1alpha.SkuConfigOrBuilder getConfigOrBuilder(); + + /** + * + * + *
          +   * Output only. Available instances of this SKU. This field should be used for
          +   * checking availability of a SKU.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.SkuInstance instances = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getInstancesList(); + /** + * + * + *
          +   * Output only. Available instances of this SKU. This field should be used for
          +   * checking availability of a SKU.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.SkuInstance instances = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance getInstances(int index); + /** + * + * + *
          +   * Output only. Available instances of this SKU. This field should be used for
          +   * checking availability of a SKU.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.SkuInstance instances = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getInstancesCount(); + /** + * + * + *
          +   * Output only. Available instances of this SKU. This field should be used for
          +   * checking availability of a SKU.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.SkuInstance instances = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getInstancesOrBuilderList(); + /** + * + * + *
          +   * Output only. Available instances of this SKU. This field should be used for
          +   * checking availability of a SKU.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.SkuInstance instances = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstanceOrBuilder getInstancesOrBuilder( + int index); + + /** + * + * + *
          +   * Output only. Description of this SKU.
          +   * 
          + * + * string description = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
          +   * Output only. Description of this SKU.
          +   * 
          + * + * string description = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
          +   * Output only. The SKU revision ID.
          +   * A new revision is created whenever `config` is updated. The format is an
          +   * 8-character hexadecimal string.
          +   * 
          + * + * string revision_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The revisionId. + */ + java.lang.String getRevisionId(); + /** + * + * + *
          +   * Output only. The SKU revision ID.
          +   * A new revision is created whenever `config` is updated. The format is an
          +   * 8-character hexadecimal string.
          +   * 
          + * + * string revision_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for revisionId. + */ + com.google.protobuf.ByteString getRevisionIdBytes(); + + /** + * + * + *
          +   * Output only. Flag to indicate whether or not this revision is active. Only
          +   * an active revision can be used in a new Order.
          +   * 
          + * + * bool is_active = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isActive. + */ + boolean getIsActive(); + + /** + * + * + *
          +   * Output only. Type of this SKU.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Sku.Type type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + * + * + *
          +   * Output only. Type of this SKU.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Sku.Type type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + com.google.cloud.gdchardwaremanagement.v1alpha.Sku.Type getType(); + + /** + * + * + *
          +   * Output only. The vCPU count associated with this SKU.
          +   * 
          + * + * int32 vcpu_count = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The vcpuCount. + */ + int getVcpuCount(); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SubmitOrderRequest.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SubmitOrderRequest.java new file mode 100644 index 000000000000..3d12035e7985 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SubmitOrderRequest.java @@ -0,0 +1,845 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * A request to submit an order.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest} + */ +public final class SubmitOrderRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest) + SubmitOrderRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SubmitOrderRequest.newBuilder() to construct. + private SubmitOrderRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SubmitOrderRequest() { + name_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SubmitOrderRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_SubmitOrderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_SubmitOrderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
          +   * Required. The name of the order.
          +   * Format: `projects/{project}/locations/{location}/orders/{order}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
          +   * Required. The name of the order.
          +   * Format: `projects/{project}/locations/{location}/orders/{order}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest other = + (com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * A request to submit an order.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest) + com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_SubmitOrderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_SubmitOrderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest.Builder.class); + } + + // Construct using + // com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_SubmitOrderRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest build() { + com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest result = + new com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest) { + return mergeFrom((com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
          +     * Required. The name of the order.
          +     * Format: `projects/{project}/locations/{location}/orders/{order}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Required. The name of the order.
          +     * Format: `projects/{project}/locations/{location}/orders/{order}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Required. The name of the order.
          +     * Format: `projects/{project}/locations/{location}/orders/{order}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The name of the order.
          +     * Format: `projects/{project}/locations/{location}/orders/{order}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The name of the order.
          +     * Format: `projects/{project}/locations/{location}/orders/{order}`
          +     * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SubmitOrderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SubmitOrderRequestOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SubmitOrderRequestOrBuilder.java new file mode 100644 index 000000000000..0874b4175110 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SubmitOrderRequestOrBuilder.java @@ -0,0 +1,84 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface SubmitOrderRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The name of the order.
          +   * Format: `projects/{project}/locations/{location}/orders/{order}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
          +   * Required. The name of the order.
          +   * Format: `projects/{project}/locations/{location}/orders/{order}`
          +   * 
          + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Subnet.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Subnet.java new file mode 100644 index 000000000000..5ee0f77650f6 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Subnet.java @@ -0,0 +1,836 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * Represents a subnet.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.Subnet} + */ +public final class Subnet extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.Subnet) + SubnetOrBuilder { + private static final long serialVersionUID = 0L; + // Use Subnet.newBuilder() to construct. + private Subnet(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Subnet() { + addressRange_ = ""; + defaultGatewayIpAddress_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Subnet(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Subnet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Subnet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.Subnet.class, + com.google.cloud.gdchardwaremanagement.v1alpha.Subnet.Builder.class); + } + + public static final int ADDRESS_RANGE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object addressRange_ = ""; + /** + * + * + *
          +   * Required. Address range for this subnet in CIDR notation.
          +   * 
          + * + * + * string address_range = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * + * + * @return The addressRange. + */ + @java.lang.Override + public java.lang.String getAddressRange() { + java.lang.Object ref = addressRange_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addressRange_ = s; + return s; + } + } + /** + * + * + *
          +   * Required. Address range for this subnet in CIDR notation.
          +   * 
          + * + * + * string address_range = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * + * + * @return The bytes for addressRange. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAddressRangeBytes() { + java.lang.Object ref = addressRange_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + addressRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEFAULT_GATEWAY_IP_ADDRESS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object defaultGatewayIpAddress_ = ""; + /** + * + * + *
          +   * Required. Default gateway for this subnet.
          +   * 
          + * + * + * string default_gateway_ip_address = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * + * + * @return The defaultGatewayIpAddress. + */ + @java.lang.Override + public java.lang.String getDefaultGatewayIpAddress() { + java.lang.Object ref = defaultGatewayIpAddress_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultGatewayIpAddress_ = s; + return s; + } + } + /** + * + * + *
          +   * Required. Default gateway for this subnet.
          +   * 
          + * + * + * string default_gateway_ip_address = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * + * + * @return The bytes for defaultGatewayIpAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefaultGatewayIpAddressBytes() { + java.lang.Object ref = defaultGatewayIpAddress_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultGatewayIpAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(addressRange_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, addressRange_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultGatewayIpAddress_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, defaultGatewayIpAddress_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(addressRange_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, addressRange_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultGatewayIpAddress_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, defaultGatewayIpAddress_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.Subnet)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.Subnet other = + (com.google.cloud.gdchardwaremanagement.v1alpha.Subnet) obj; + + if (!getAddressRange().equals(other.getAddressRange())) return false; + if (!getDefaultGatewayIpAddress().equals(other.getDefaultGatewayIpAddress())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ADDRESS_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getAddressRange().hashCode(); + hash = (37 * hash) + DEFAULT_GATEWAY_IP_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getDefaultGatewayIpAddress().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Subnet parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Subnet parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Subnet parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Subnet parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Subnet parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Subnet parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Subnet parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Subnet parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Subnet parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Subnet parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Subnet parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Subnet parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.Subnet prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * Represents a subnet.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.Subnet} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.Subnet) + com.google.cloud.gdchardwaremanagement.v1alpha.SubnetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Subnet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Subnet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.Subnet.class, + com.google.cloud.gdchardwaremanagement.v1alpha.Subnet.Builder.class); + } + + // Construct using com.google.cloud.gdchardwaremanagement.v1alpha.Subnet.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + addressRange_ = ""; + defaultGatewayIpAddress_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Subnet_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Subnet getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.Subnet.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Subnet build() { + com.google.cloud.gdchardwaremanagement.v1alpha.Subnet result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Subnet buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.Subnet result = + new com.google.cloud.gdchardwaremanagement.v1alpha.Subnet(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gdchardwaremanagement.v1alpha.Subnet result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.addressRange_ = addressRange_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.defaultGatewayIpAddress_ = defaultGatewayIpAddress_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.Subnet) { + return mergeFrom((com.google.cloud.gdchardwaremanagement.v1alpha.Subnet) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gdchardwaremanagement.v1alpha.Subnet other) { + if (other == com.google.cloud.gdchardwaremanagement.v1alpha.Subnet.getDefaultInstance()) + return this; + if (!other.getAddressRange().isEmpty()) { + addressRange_ = other.addressRange_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDefaultGatewayIpAddress().isEmpty()) { + defaultGatewayIpAddress_ = other.defaultGatewayIpAddress_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + addressRange_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + defaultGatewayIpAddress_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object addressRange_ = ""; + /** + * + * + *
          +     * Required. Address range for this subnet in CIDR notation.
          +     * 
          + * + * + * string address_range = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * + * + * @return The addressRange. + */ + public java.lang.String getAddressRange() { + java.lang.Object ref = addressRange_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + addressRange_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Required. Address range for this subnet in CIDR notation.
          +     * 
          + * + * + * string address_range = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * + * + * @return The bytes for addressRange. + */ + public com.google.protobuf.ByteString getAddressRangeBytes() { + java.lang.Object ref = addressRange_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + addressRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Required. Address range for this subnet in CIDR notation.
          +     * 
          + * + * + * string address_range = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * + * + * @param value The addressRange to set. + * @return This builder for chaining. + */ + public Builder setAddressRange(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + addressRange_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Address range for this subnet in CIDR notation.
          +     * 
          + * + * + * string address_range = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAddressRange() { + addressRange_ = getDefaultInstance().getAddressRange(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Address range for this subnet in CIDR notation.
          +     * 
          + * + * + * string address_range = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for addressRange to set. + * @return This builder for chaining. + */ + public Builder setAddressRangeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + addressRange_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object defaultGatewayIpAddress_ = ""; + /** + * + * + *
          +     * Required. Default gateway for this subnet.
          +     * 
          + * + * + * string default_gateway_ip_address = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * + * + * @return The defaultGatewayIpAddress. + */ + public java.lang.String getDefaultGatewayIpAddress() { + java.lang.Object ref = defaultGatewayIpAddress_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultGatewayIpAddress_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Required. Default gateway for this subnet.
          +     * 
          + * + * + * string default_gateway_ip_address = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * + * + * @return The bytes for defaultGatewayIpAddress. + */ + public com.google.protobuf.ByteString getDefaultGatewayIpAddressBytes() { + java.lang.Object ref = defaultGatewayIpAddress_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultGatewayIpAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Required. Default gateway for this subnet.
          +     * 
          + * + * + * string default_gateway_ip_address = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * + * + * @param value The defaultGatewayIpAddress to set. + * @return This builder for chaining. + */ + public Builder setDefaultGatewayIpAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + defaultGatewayIpAddress_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Default gateway for this subnet.
          +     * 
          + * + * + * string default_gateway_ip_address = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearDefaultGatewayIpAddress() { + defaultGatewayIpAddress_ = getDefaultInstance().getDefaultGatewayIpAddress(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. Default gateway for this subnet.
          +     * 
          + * + * + * string default_gateway_ip_address = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for defaultGatewayIpAddress to set. + * @return This builder for chaining. + */ + public Builder setDefaultGatewayIpAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + defaultGatewayIpAddress_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.Subnet) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.Subnet) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.Subnet DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.Subnet(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Subnet getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Subnet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Subnet getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SubnetOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SubnetOrBuilder.java new file mode 100644 index 000000000000..71223f86aad0 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/SubnetOrBuilder.java @@ -0,0 +1,84 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface SubnetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.Subnet) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. Address range for this subnet in CIDR notation.
          +   * 
          + * + * + * string address_range = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * + * + * @return The addressRange. + */ + java.lang.String getAddressRange(); + /** + * + * + *
          +   * Required. Address range for this subnet in CIDR notation.
          +   * 
          + * + * + * string address_range = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * + * + * @return The bytes for addressRange. + */ + com.google.protobuf.ByteString getAddressRangeBytes(); + + /** + * + * + *
          +   * Required. Default gateway for this subnet.
          +   * 
          + * + * + * string default_gateway_ip_address = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * + * + * @return The defaultGatewayIpAddress. + */ + java.lang.String getDefaultGatewayIpAddress(); + /** + * + * + *
          +   * Required. Default gateway for this subnet.
          +   * 
          + * + * + * string default_gateway_ip_address = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * + * + * @return The bytes for defaultGatewayIpAddress. + */ + com.google.protobuf.ByteString getDefaultGatewayIpAddressBytes(); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/TimePeriod.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/TimePeriod.java new file mode 100644 index 000000000000..32050d54e803 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/TimePeriod.java @@ -0,0 +1,1374 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * Represents a time period in a week.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.TimePeriod} + */ +public final class TimePeriod extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.TimePeriod) + TimePeriodOrBuilder { + private static final long serialVersionUID = 0L; + // Use TimePeriod.newBuilder() to construct. + private TimePeriod(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TimePeriod() { + days_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TimePeriod(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_TimePeriod_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_TimePeriod_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod.class, + com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod.Builder.class); + } + + private int bitField0_; + public static final int START_TIME_FIELD_NUMBER = 1; + private com.google.type.TimeOfDay startTime_; + /** + * + * + *
          +   * Required. The start of the time period.
          +   * 
          + * + * .google.type.TimeOfDay start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
          +   * Required. The start of the time period.
          +   * 
          + * + * .google.type.TimeOfDay start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The startTime. + */ + @java.lang.Override + public com.google.type.TimeOfDay getStartTime() { + return startTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : startTime_; + } + /** + * + * + *
          +   * Required. The start of the time period.
          +   * 
          + * + * .google.type.TimeOfDay start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.type.TimeOfDayOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : startTime_; + } + + public static final int END_TIME_FIELD_NUMBER = 2; + private com.google.type.TimeOfDay endTime_; + /** + * + * + *
          +   * Required. The end of the time period.
          +   * 
          + * + * .google.type.TimeOfDay end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
          +   * Required. The end of the time period.
          +   * 
          + * + * .google.type.TimeOfDay end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The endTime. + */ + @java.lang.Override + public com.google.type.TimeOfDay getEndTime() { + return endTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : endTime_; + } + /** + * + * + *
          +   * Required. The end of the time period.
          +   * 
          + * + * .google.type.TimeOfDay end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.type.TimeOfDayOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : endTime_; + } + + public static final int DAYS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List days_; + + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.type.DayOfWeek> + days_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.type.DayOfWeek>() { + public com.google.type.DayOfWeek convert(java.lang.Integer from) { + com.google.type.DayOfWeek result = com.google.type.DayOfWeek.forNumber(from); + return result == null ? com.google.type.DayOfWeek.UNRECOGNIZED : result; + } + }; + /** + * + * + *
          +   * Required. The days of the week that the time period is active.
          +   * 
          + * + * repeated .google.type.DayOfWeek days = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the days. + */ + @java.lang.Override + public java.util.List getDaysList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.type.DayOfWeek>(days_, days_converter_); + } + /** + * + * + *
          +   * Required. The days of the week that the time period is active.
          +   * 
          + * + * repeated .google.type.DayOfWeek days = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The count of days. + */ + @java.lang.Override + public int getDaysCount() { + return days_.size(); + } + /** + * + * + *
          +   * Required. The days of the week that the time period is active.
          +   * 
          + * + * repeated .google.type.DayOfWeek days = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the element to return. + * @return The days at the given index. + */ + @java.lang.Override + public com.google.type.DayOfWeek getDays(int index) { + return days_converter_.convert(days_.get(index)); + } + /** + * + * + *
          +   * Required. The days of the week that the time period is active.
          +   * 
          + * + * repeated .google.type.DayOfWeek days = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the enum numeric values on the wire for days. + */ + @java.lang.Override + public java.util.List getDaysValueList() { + return days_; + } + /** + * + * + *
          +   * Required. The days of the week that the time period is active.
          +   * 
          + * + * repeated .google.type.DayOfWeek days = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of days at the given index. + */ + @java.lang.Override + public int getDaysValue(int index) { + return days_.get(index); + } + + private int daysMemoizedSerializedSize; + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getEndTime()); + } + if (getDaysList().size() > 0) { + output.writeUInt32NoTag(26); + output.writeUInt32NoTag(daysMemoizedSerializedSize); + } + for (int i = 0; i < days_.size(); i++) { + output.writeEnumNoTag(days_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + } + { + int dataSize = 0; + for (int i = 0; i < days_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(days_.get(i)); + } + size += dataSize; + if (!getDaysList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + daysMemoizedSerializedSize = dataSize; + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod other = + (com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod) obj; + + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!days_.equals(other.days_)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + if (getDaysCount() > 0) { + hash = (37 * hash) + DAYS_FIELD_NUMBER; + hash = (53 * hash) + days_.hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * Represents a time period in a week.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.TimePeriod} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.TimePeriod) + com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriodOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_TimePeriod_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_TimePeriod_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod.class, + com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod.Builder.class); + } + + // Construct using com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getStartTimeFieldBuilder(); + getEndTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + days_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_TimePeriod_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod build() { + com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod result = + new com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod result) { + if (((bitField0_ & 0x00000004) != 0)) { + days_ = java.util.Collections.unmodifiableList(days_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.days_ = days_; + } + + private void buildPartial0(com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod) { + return mergeFrom((com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod other) { + if (other == com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod.getDefaultInstance()) + return this; + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (!other.days_.isEmpty()) { + if (days_.isEmpty()) { + days_ = other.days_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureDaysIsMutable(); + days_.addAll(other.days_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + int tmpRaw = input.readEnum(); + ensureDaysIsMutable(); + days_.add(tmpRaw); + break; + } // case 24 + case 26: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureDaysIsMutable(); + days_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.type.TimeOfDay startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeOfDay, + com.google.type.TimeOfDay.Builder, + com.google.type.TimeOfDayOrBuilder> + startTimeBuilder_; + /** + * + * + *
          +     * Required. The start of the time period.
          +     * 
          + * + * .google.type.TimeOfDay start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
          +     * Required. The start of the time period.
          +     * 
          + * + * .google.type.TimeOfDay start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The startTime. + */ + public com.google.type.TimeOfDay getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Required. The start of the time period.
          +     * 
          + * + * .google.type.TimeOfDay start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setStartTime(com.google.type.TimeOfDay value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The start of the time period.
          +     * 
          + * + * .google.type.TimeOfDay start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setStartTime(com.google.type.TimeOfDay.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The start of the time period.
          +     * 
          + * + * .google.type.TimeOfDay start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeStartTime(com.google.type.TimeOfDay value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && startTime_ != null + && startTime_ != com.google.type.TimeOfDay.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Required. The start of the time period.
          +     * 
          + * + * .google.type.TimeOfDay start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000001); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The start of the time period.
          +     * 
          + * + * .google.type.TimeOfDay start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.type.TimeOfDay.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Required. The start of the time period.
          +     * 
          + * + * .google.type.TimeOfDay start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.type.TimeOfDayOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : startTime_; + } + } + /** + * + * + *
          +     * Required. The start of the time period.
          +     * 
          + * + * .google.type.TimeOfDay start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeOfDay, + com.google.type.TimeOfDay.Builder, + com.google.type.TimeOfDayOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeOfDay, + com.google.type.TimeOfDay.Builder, + com.google.type.TimeOfDayOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.type.TimeOfDay endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeOfDay, + com.google.type.TimeOfDay.Builder, + com.google.type.TimeOfDayOrBuilder> + endTimeBuilder_; + /** + * + * + *
          +     * Required. The end of the time period.
          +     * 
          + * + * .google.type.TimeOfDay end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
          +     * Required. The end of the time period.
          +     * 
          + * + * .google.type.TimeOfDay end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The endTime. + */ + public com.google.type.TimeOfDay getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Required. The end of the time period.
          +     * 
          + * + * .google.type.TimeOfDay end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setEndTime(com.google.type.TimeOfDay value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The end of the time period.
          +     * 
          + * + * .google.type.TimeOfDay end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setEndTime(com.google.type.TimeOfDay.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The end of the time period.
          +     * 
          + * + * .google.type.TimeOfDay end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeEndTime(com.google.type.TimeOfDay value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && endTime_ != null + && endTime_ != com.google.type.TimeOfDay.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Required. The end of the time period.
          +     * 
          + * + * .google.type.TimeOfDay end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000002); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The end of the time period.
          +     * 
          + * + * .google.type.TimeOfDay end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.type.TimeOfDay.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Required. The end of the time period.
          +     * 
          + * + * .google.type.TimeOfDay end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.type.TimeOfDayOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.type.TimeOfDay.getDefaultInstance() : endTime_; + } + } + /** + * + * + *
          +     * Required. The end of the time period.
          +     * 
          + * + * .google.type.TimeOfDay end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeOfDay, + com.google.type.TimeOfDay.Builder, + com.google.type.TimeOfDayOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.TimeOfDay, + com.google.type.TimeOfDay.Builder, + com.google.type.TimeOfDayOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + private java.util.List days_ = java.util.Collections.emptyList(); + + private void ensureDaysIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + days_ = new java.util.ArrayList(days_); + bitField0_ |= 0x00000004; + } + } + /** + * + * + *
          +     * Required. The days of the week that the time period is active.
          +     * 
          + * + * repeated .google.type.DayOfWeek days = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the days. + */ + public java.util.List getDaysList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.type.DayOfWeek>(days_, days_converter_); + } + /** + * + * + *
          +     * Required. The days of the week that the time period is active.
          +     * 
          + * + * repeated .google.type.DayOfWeek days = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The count of days. + */ + public int getDaysCount() { + return days_.size(); + } + /** + * + * + *
          +     * Required. The days of the week that the time period is active.
          +     * 
          + * + * repeated .google.type.DayOfWeek days = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the element to return. + * @return The days at the given index. + */ + public com.google.type.DayOfWeek getDays(int index) { + return days_converter_.convert(days_.get(index)); + } + /** + * + * + *
          +     * Required. The days of the week that the time period is active.
          +     * 
          + * + * repeated .google.type.DayOfWeek days = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index to set the value at. + * @param value The days to set. + * @return This builder for chaining. + */ + public Builder setDays(int index, com.google.type.DayOfWeek value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDaysIsMutable(); + days_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The days of the week that the time period is active.
          +     * 
          + * + * repeated .google.type.DayOfWeek days = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The days to add. + * @return This builder for chaining. + */ + public Builder addDays(com.google.type.DayOfWeek value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDaysIsMutable(); + days_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The days of the week that the time period is active.
          +     * 
          + * + * repeated .google.type.DayOfWeek days = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param values The days to add. + * @return This builder for chaining. + */ + public Builder addAllDays(java.lang.Iterable values) { + ensureDaysIsMutable(); + for (com.google.type.DayOfWeek value : values) { + days_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The days of the week that the time period is active.
          +     * 
          + * + * repeated .google.type.DayOfWeek days = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearDays() { + days_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The days of the week that the time period is active.
          +     * 
          + * + * repeated .google.type.DayOfWeek days = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the enum numeric values on the wire for days. + */ + public java.util.List getDaysValueList() { + return java.util.Collections.unmodifiableList(days_); + } + /** + * + * + *
          +     * Required. The days of the week that the time period is active.
          +     * 
          + * + * repeated .google.type.DayOfWeek days = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of days at the given index. + */ + public int getDaysValue(int index) { + return days_.get(index); + } + /** + * + * + *
          +     * Required. The days of the week that the time period is active.
          +     * 
          + * + * repeated .google.type.DayOfWeek days = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for days to set. + * @return This builder for chaining. + */ + public Builder setDaysValue(int index, int value) { + ensureDaysIsMutable(); + days_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The days of the week that the time period is active.
          +     * 
          + * + * repeated .google.type.DayOfWeek days = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for days to add. + * @return This builder for chaining. + */ + public Builder addDaysValue(int value) { + ensureDaysIsMutable(); + days_.add(value); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The days of the week that the time period is active.
          +     * 
          + * + * repeated .google.type.DayOfWeek days = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param values The enum numeric values on the wire for days to add. + * @return This builder for chaining. + */ + public Builder addAllDaysValue(java.lang.Iterable values) { + ensureDaysIsMutable(); + for (int value : values) { + days_.add(value); + } + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.TimePeriod) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.TimePeriod) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TimePeriod parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/TimePeriodOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/TimePeriodOrBuilder.java new file mode 100644 index 000000000000..48984f6e9316 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/TimePeriodOrBuilder.java @@ -0,0 +1,164 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface TimePeriodOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.TimePeriod) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. The start of the time period.
          +   * 
          + * + * .google.type.TimeOfDay start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + * + * + *
          +   * Required. The start of the time period.
          +   * 
          + * + * .google.type.TimeOfDay start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The startTime. + */ + com.google.type.TimeOfDay getStartTime(); + /** + * + * + *
          +   * Required. The start of the time period.
          +   * 
          + * + * .google.type.TimeOfDay start_time = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.type.TimeOfDayOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
          +   * Required. The end of the time period.
          +   * 
          + * + * .google.type.TimeOfDay end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + /** + * + * + *
          +   * Required. The end of the time period.
          +   * 
          + * + * .google.type.TimeOfDay end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The endTime. + */ + com.google.type.TimeOfDay getEndTime(); + /** + * + * + *
          +   * Required. The end of the time period.
          +   * 
          + * + * .google.type.TimeOfDay end_time = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.type.TimeOfDayOrBuilder getEndTimeOrBuilder(); + + /** + * + * + *
          +   * Required. The days of the week that the time period is active.
          +   * 
          + * + * repeated .google.type.DayOfWeek days = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the days. + */ + java.util.List getDaysList(); + /** + * + * + *
          +   * Required. The days of the week that the time period is active.
          +   * 
          + * + * repeated .google.type.DayOfWeek days = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The count of days. + */ + int getDaysCount(); + /** + * + * + *
          +   * Required. The days of the week that the time period is active.
          +   * 
          + * + * repeated .google.type.DayOfWeek days = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the element to return. + * @return The days at the given index. + */ + com.google.type.DayOfWeek getDays(int index); + /** + * + * + *
          +   * Required. The days of the week that the time period is active.
          +   * 
          + * + * repeated .google.type.DayOfWeek days = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the enum numeric values on the wire for days. + */ + java.util.List getDaysValueList(); + /** + * + * + *
          +   * Required. The days of the week that the time period is active.
          +   * 
          + * + * repeated .google.type.DayOfWeek days = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of days at the given index. + */ + int getDaysValue(int index); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/UpdateHardwareGroupRequest.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/UpdateHardwareGroupRequest.java new file mode 100644 index 000000000000..eaca47eaa9fd --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/UpdateHardwareGroupRequest.java @@ -0,0 +1,1287 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * A request to update a hardware group.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest} + */ +public final class UpdateHardwareGroupRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest) + UpdateHardwareGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateHardwareGroupRequest.newBuilder() to construct. + private UpdateHardwareGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateHardwareGroupRequest() { + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateHardwareGroupRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateHardwareGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateHardwareGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest.Builder + .class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
          +   * Required. A mask to specify the fields in the HardwareGroup to overwrite
          +   * with this update. The fields specified in the update_mask are relative to
          +   * the hardware group, not the full request. A field will be overwritten if it
          +   * is in the mask. If you don't provide a mask then all fields will be
          +   * overwritten.
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
          +   * Required. A mask to specify the fields in the HardwareGroup to overwrite
          +   * with this update. The fields specified in the update_mask are relative to
          +   * the hardware group, not the full request. A field will be overwritten if it
          +   * is in the mask. If you don't provide a mask then all fields will be
          +   * overwritten.
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
          +   * Required. A mask to specify the fields in the HardwareGroup to overwrite
          +   * with this update. The fields specified in the update_mask are relative to
          +   * the hardware group, not the full request. A field will be overwritten if it
          +   * is in the mask. If you don't provide a mask then all fields will be
          +   * overwritten.
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int HARDWARE_GROUP_FIELD_NUMBER = 2; + private com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardwareGroup_; + /** + * + * + *
          +   * Required. The hardware group to update.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the hardwareGroup field is set. + */ + @java.lang.Override + public boolean hasHardwareGroup() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
          +   * Required. The hardware group to update.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The hardwareGroup. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup getHardwareGroup() { + return hardwareGroup_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.getDefaultInstance() + : hardwareGroup_; + } + /** + * + * + *
          +   * Required. The hardware group to update.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroupOrBuilder + getHardwareGroupOrBuilder() { + return hardwareGroup_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.getDefaultInstance() + : hardwareGroup_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getHardwareGroup()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getHardwareGroup()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest other = + (com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasHardwareGroup() != other.hasHardwareGroup()) return false; + if (hasHardwareGroup()) { + if (!getHardwareGroup().equals(other.getHardwareGroup())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasHardwareGroup()) { + hash = (37 * hash) + HARDWARE_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getHardwareGroup().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * A request to update a hardware group.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest) + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateHardwareGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateHardwareGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getUpdateMaskFieldBuilder(); + getHardwareGroupFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + hardwareGroup_ = null; + if (hardwareGroupBuilder_ != null) { + hardwareGroupBuilder_.dispose(); + hardwareGroupBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateHardwareGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest build() { + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest + buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest result = + new com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.hardwareGroup_ = + hardwareGroupBuilder_ == null ? hardwareGroup_ : hardwareGroupBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest) { + return mergeFrom( + (com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest + .getDefaultInstance()) return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasHardwareGroup()) { + mergeHardwareGroup(other.getHardwareGroup()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getHardwareGroupFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
          +     * Required. A mask to specify the fields in the HardwareGroup to overwrite
          +     * with this update. The fields specified in the update_mask are relative to
          +     * the hardware group, not the full request. A field will be overwritten if it
          +     * is in the mask. If you don't provide a mask then all fields will be
          +     * overwritten.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
          +     * Required. A mask to specify the fields in the HardwareGroup to overwrite
          +     * with this update. The fields specified in the update_mask are relative to
          +     * the hardware group, not the full request. A field will be overwritten if it
          +     * is in the mask. If you don't provide a mask then all fields will be
          +     * overwritten.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Required. A mask to specify the fields in the HardwareGroup to overwrite
          +     * with this update. The fields specified in the update_mask are relative to
          +     * the hardware group, not the full request. A field will be overwritten if it
          +     * is in the mask. If you don't provide a mask then all fields will be
          +     * overwritten.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. A mask to specify the fields in the HardwareGroup to overwrite
          +     * with this update. The fields specified in the update_mask are relative to
          +     * the hardware group, not the full request. A field will be overwritten if it
          +     * is in the mask. If you don't provide a mask then all fields will be
          +     * overwritten.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. A mask to specify the fields in the HardwareGroup to overwrite
          +     * with this update. The fields specified in the update_mask are relative to
          +     * the hardware group, not the full request. A field will be overwritten if it
          +     * is in the mask. If you don't provide a mask then all fields will be
          +     * overwritten.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Required. A mask to specify the fields in the HardwareGroup to overwrite
          +     * with this update. The fields specified in the update_mask are relative to
          +     * the hardware group, not the full request. A field will be overwritten if it
          +     * is in the mask. If you don't provide a mask then all fields will be
          +     * overwritten.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. A mask to specify the fields in the HardwareGroup to overwrite
          +     * with this update. The fields specified in the update_mask are relative to
          +     * the hardware group, not the full request. A field will be overwritten if it
          +     * is in the mask. If you don't provide a mask then all fields will be
          +     * overwritten.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Required. A mask to specify the fields in the HardwareGroup to overwrite
          +     * with this update. The fields specified in the update_mask are relative to
          +     * the hardware group, not the full request. A field will be overwritten if it
          +     * is in the mask. If you don't provide a mask then all fields will be
          +     * overwritten.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
          +     * Required. A mask to specify the fields in the HardwareGroup to overwrite
          +     * with this update. The fields specified in the update_mask are relative to
          +     * the hardware group, not the full request. A field will be overwritten if it
          +     * is in the mask. If you don't provide a mask then all fields will be
          +     * overwritten.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardwareGroup_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroupOrBuilder> + hardwareGroupBuilder_; + /** + * + * + *
          +     * Required. The hardware group to update.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the hardwareGroup field is set. + */ + public boolean hasHardwareGroup() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
          +     * Required. The hardware group to update.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The hardwareGroup. + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup getHardwareGroup() { + if (hardwareGroupBuilder_ == null) { + return hardwareGroup_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.getDefaultInstance() + : hardwareGroup_; + } else { + return hardwareGroupBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Required. The hardware group to update.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setHardwareGroup( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup value) { + if (hardwareGroupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + hardwareGroup_ = value; + } else { + hardwareGroupBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The hardware group to update.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setHardwareGroup( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.Builder builderForValue) { + if (hardwareGroupBuilder_ == null) { + hardwareGroup_ = builderForValue.build(); + } else { + hardwareGroupBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The hardware group to update.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeHardwareGroup( + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup value) { + if (hardwareGroupBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && hardwareGroup_ != null + && hardwareGroup_ + != com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup + .getDefaultInstance()) { + getHardwareGroupBuilder().mergeFrom(value); + } else { + hardwareGroup_ = value; + } + } else { + hardwareGroupBuilder_.mergeFrom(value); + } + if (hardwareGroup_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Required. The hardware group to update.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearHardwareGroup() { + bitField0_ = (bitField0_ & ~0x00000002); + hardwareGroup_ = null; + if (hardwareGroupBuilder_ != null) { + hardwareGroupBuilder_.dispose(); + hardwareGroupBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The hardware group to update.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.Builder + getHardwareGroupBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getHardwareGroupFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Required. The hardware group to update.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroupOrBuilder + getHardwareGroupOrBuilder() { + if (hardwareGroupBuilder_ != null) { + return hardwareGroupBuilder_.getMessageOrBuilder(); + } else { + return hardwareGroup_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.getDefaultInstance() + : hardwareGroup_; + } + } + /** + * + * + *
          +     * Required. The hardware group to update.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroupOrBuilder> + getHardwareGroupFieldBuilder() { + if (hardwareGroupBuilder_ == null) { + hardwareGroupBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroupOrBuilder>( + getHardwareGroup(), getParentForChildren(), isClean()); + hardwareGroup_ = null; + } + return hardwareGroupBuilder_; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateHardwareGroupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/UpdateHardwareGroupRequestOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/UpdateHardwareGroupRequestOrBuilder.java new file mode 100644 index 000000000000..e21d4b0f8609 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/UpdateHardwareGroupRequestOrBuilder.java @@ -0,0 +1,144 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface UpdateHardwareGroupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. A mask to specify the fields in the HardwareGroup to overwrite
          +   * with this update. The fields specified in the update_mask are relative to
          +   * the hardware group, not the full request. A field will be overwritten if it
          +   * is in the mask. If you don't provide a mask then all fields will be
          +   * overwritten.
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
          +   * Required. A mask to specify the fields in the HardwareGroup to overwrite
          +   * with this update. The fields specified in the update_mask are relative to
          +   * the hardware group, not the full request. A field will be overwritten if it
          +   * is in the mask. If you don't provide a mask then all fields will be
          +   * overwritten.
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
          +   * Required. A mask to specify the fields in the HardwareGroup to overwrite
          +   * with this update. The fields specified in the update_mask are relative to
          +   * the hardware group, not the full request. A field will be overwritten if it
          +   * is in the mask. If you don't provide a mask then all fields will be
          +   * overwritten.
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
          +   * Required. The hardware group to update.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the hardwareGroup field is set. + */ + boolean hasHardwareGroup(); + /** + * + * + *
          +   * Required. The hardware group to update.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The hardwareGroup. + */ + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup getHardwareGroup(); + /** + * + * + *
          +   * Required. The hardware group to update.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup hardware_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroupOrBuilder getHardwareGroupOrBuilder(); + + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/UpdateHardwareRequest.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/UpdateHardwareRequest.java new file mode 100644 index 000000000000..40817ab69619 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/UpdateHardwareRequest.java @@ -0,0 +1,1261 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * A request to update hardware.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest} + */ +public final class UpdateHardwareRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest) + UpdateHardwareRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateHardwareRequest.newBuilder() to construct. + private UpdateHardwareRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateHardwareRequest() { + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateHardwareRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateHardwareRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateHardwareRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest.Builder.class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
          +   * Required. A mask to specify the fields in the Hardware to overwrite with
          +   * this update. The fields specified in the update_mask are relative to the
          +   * hardware, not the full request. A field will be overwritten if it is in the
          +   * mask. If you don't provide a mask then all fields will be overwritten.
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
          +   * Required. A mask to specify the fields in the Hardware to overwrite with
          +   * this update. The fields specified in the update_mask are relative to the
          +   * hardware, not the full request. A field will be overwritten if it is in the
          +   * mask. If you don't provide a mask then all fields will be overwritten.
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
          +   * Required. A mask to specify the fields in the Hardware to overwrite with
          +   * this update. The fields specified in the update_mask are relative to the
          +   * hardware, not the full request. A field will be overwritten if it is in the
          +   * mask. If you don't provide a mask then all fields will be overwritten.
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int HARDWARE_FIELD_NUMBER = 2; + private com.google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware_; + /** + * + * + *
          +   * Required. The hardware to update.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the hardware field is set. + */ + @java.lang.Override + public boolean hasHardware() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
          +   * Required. The hardware to update.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The hardware. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware getHardware() { + return hardware_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.getDefaultInstance() + : hardware_; + } + /** + * + * + *
          +   * Required. The hardware to update.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareOrBuilder getHardwareOrBuilder() { + return hardware_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.getDefaultInstance() + : hardware_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getHardware()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getHardware()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest other = + (com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasHardware() != other.hasHardware()) return false; + if (hasHardware()) { + if (!getHardware().equals(other.getHardware())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasHardware()) { + hash = (37 * hash) + HARDWARE_FIELD_NUMBER; + hash = (53 * hash) + getHardware().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * A request to update hardware.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest) + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateHardwareRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateHardwareRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest.Builder.class); + } + + // Construct using + // com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getUpdateMaskFieldBuilder(); + getHardwareFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + hardware_ = null; + if (hardwareBuilder_ != null) { + hardwareBuilder_.dispose(); + hardwareBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateHardwareRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest build() { + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest result = + new com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.hardware_ = hardwareBuilder_ == null ? hardware_ : hardwareBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest) { + return mergeFrom( + (com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest + .getDefaultInstance()) return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasHardware()) { + mergeHardware(other.getHardware()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getHardwareFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
          +     * Required. A mask to specify the fields in the Hardware to overwrite with
          +     * this update. The fields specified in the update_mask are relative to the
          +     * hardware, not the full request. A field will be overwritten if it is in the
          +     * mask. If you don't provide a mask then all fields will be overwritten.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
          +     * Required. A mask to specify the fields in the Hardware to overwrite with
          +     * this update. The fields specified in the update_mask are relative to the
          +     * hardware, not the full request. A field will be overwritten if it is in the
          +     * mask. If you don't provide a mask then all fields will be overwritten.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Required. A mask to specify the fields in the Hardware to overwrite with
          +     * this update. The fields specified in the update_mask are relative to the
          +     * hardware, not the full request. A field will be overwritten if it is in the
          +     * mask. If you don't provide a mask then all fields will be overwritten.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. A mask to specify the fields in the Hardware to overwrite with
          +     * this update. The fields specified in the update_mask are relative to the
          +     * hardware, not the full request. A field will be overwritten if it is in the
          +     * mask. If you don't provide a mask then all fields will be overwritten.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. A mask to specify the fields in the Hardware to overwrite with
          +     * this update. The fields specified in the update_mask are relative to the
          +     * hardware, not the full request. A field will be overwritten if it is in the
          +     * mask. If you don't provide a mask then all fields will be overwritten.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Required. A mask to specify the fields in the Hardware to overwrite with
          +     * this update. The fields specified in the update_mask are relative to the
          +     * hardware, not the full request. A field will be overwritten if it is in the
          +     * mask. If you don't provide a mask then all fields will be overwritten.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. A mask to specify the fields in the Hardware to overwrite with
          +     * this update. The fields specified in the update_mask are relative to the
          +     * hardware, not the full request. A field will be overwritten if it is in the
          +     * mask. If you don't provide a mask then all fields will be overwritten.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Required. A mask to specify the fields in the Hardware to overwrite with
          +     * this update. The fields specified in the update_mask are relative to the
          +     * hardware, not the full request. A field will be overwritten if it is in the
          +     * mask. If you don't provide a mask then all fields will be overwritten.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
          +     * Required. A mask to specify the fields in the Hardware to overwrite with
          +     * this update. The fields specified in the update_mask are relative to the
          +     * hardware, not the full request. A field will be overwritten if it is in the
          +     * mask. If you don't provide a mask then all fields will be overwritten.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware, + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareOrBuilder> + hardwareBuilder_; + /** + * + * + *
          +     * Required. The hardware to update.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the hardware field is set. + */ + public boolean hasHardware() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
          +     * Required. The hardware to update.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The hardware. + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware getHardware() { + if (hardwareBuilder_ == null) { + return hardware_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.getDefaultInstance() + : hardware_; + } else { + return hardwareBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Required. The hardware to update.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setHardware(com.google.cloud.gdchardwaremanagement.v1alpha.Hardware value) { + if (hardwareBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + hardware_ = value; + } else { + hardwareBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The hardware to update.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setHardware( + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.Builder builderForValue) { + if (hardwareBuilder_ == null) { + hardware_ = builderForValue.build(); + } else { + hardwareBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The hardware to update.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeHardware(com.google.cloud.gdchardwaremanagement.v1alpha.Hardware value) { + if (hardwareBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && hardware_ != null + && hardware_ + != com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.getDefaultInstance()) { + getHardwareBuilder().mergeFrom(value); + } else { + hardware_ = value; + } + } else { + hardwareBuilder_.mergeFrom(value); + } + if (hardware_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Required. The hardware to update.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearHardware() { + bitField0_ = (bitField0_ & ~0x00000002); + hardware_ = null; + if (hardwareBuilder_ != null) { + hardwareBuilder_.dispose(); + hardwareBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The hardware to update.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.Builder getHardwareBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getHardwareFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Required. The hardware to update.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.HardwareOrBuilder getHardwareOrBuilder() { + if (hardwareBuilder_ != null) { + return hardwareBuilder_.getMessageOrBuilder(); + } else { + return hardware_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.getDefaultInstance() + : hardware_; + } + } + /** + * + * + *
          +     * Required. The hardware to update.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware, + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareOrBuilder> + getHardwareFieldBuilder() { + if (hardwareBuilder_ == null) { + hardwareBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware, + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareOrBuilder>( + getHardware(), getParentForChildren(), isClean()); + hardware_ = null; + } + return hardwareBuilder_; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateHardwareRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/UpdateHardwareRequestOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/UpdateHardwareRequestOrBuilder.java new file mode 100644 index 000000000000..fb22a3bb91d1 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/UpdateHardwareRequestOrBuilder.java @@ -0,0 +1,141 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface UpdateHardwareRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. A mask to specify the fields in the Hardware to overwrite with
          +   * this update. The fields specified in the update_mask are relative to the
          +   * hardware, not the full request. A field will be overwritten if it is in the
          +   * mask. If you don't provide a mask then all fields will be overwritten.
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
          +   * Required. A mask to specify the fields in the Hardware to overwrite with
          +   * this update. The fields specified in the update_mask are relative to the
          +   * hardware, not the full request. A field will be overwritten if it is in the
          +   * mask. If you don't provide a mask then all fields will be overwritten.
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
          +   * Required. A mask to specify the fields in the Hardware to overwrite with
          +   * this update. The fields specified in the update_mask are relative to the
          +   * hardware, not the full request. A field will be overwritten if it is in the
          +   * mask. If you don't provide a mask then all fields will be overwritten.
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
          +   * Required. The hardware to update.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the hardware field is set. + */ + boolean hasHardware(); + /** + * + * + *
          +   * Required. The hardware to update.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The hardware. + */ + com.google.cloud.gdchardwaremanagement.v1alpha.Hardware getHardware(); + /** + * + * + *
          +   * Required. The hardware to update.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Hardware hardware = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gdchardwaremanagement.v1alpha.HardwareOrBuilder getHardwareOrBuilder(); + + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/UpdateOrderRequest.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/UpdateOrderRequest.java new file mode 100644 index 000000000000..16e42277f6ee --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/UpdateOrderRequest.java @@ -0,0 +1,1259 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * A request to update an order.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest} + */ +public final class UpdateOrderRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest) + UpdateOrderRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateOrderRequest.newBuilder() to construct. + private UpdateOrderRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateOrderRequest() { + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateOrderRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateOrderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateOrderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest.Builder.class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
          +   * Required. A mask to specify the fields in the Order to overwrite with this
          +   * update. The fields specified in the update_mask are relative to the order,
          +   * not the full request. A field will be overwritten if it is in the mask. If
          +   * you don't provide a mask then all fields will be overwritten.
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
          +   * Required. A mask to specify the fields in the Order to overwrite with this
          +   * update. The fields specified in the update_mask are relative to the order,
          +   * not the full request. A field will be overwritten if it is in the mask. If
          +   * you don't provide a mask then all fields will be overwritten.
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
          +   * Required. A mask to specify the fields in the Order to overwrite with this
          +   * update. The fields specified in the update_mask are relative to the order,
          +   * not the full request. A field will be overwritten if it is in the mask. If
          +   * you don't provide a mask then all fields will be overwritten.
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int ORDER_FIELD_NUMBER = 2; + private com.google.cloud.gdchardwaremanagement.v1alpha.Order order_; + /** + * + * + *
          +   * Required. The order to update.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Order order = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the order field is set. + */ + @java.lang.Override + public boolean hasOrder() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
          +   * Required. The order to update.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Order order = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The order. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Order getOrder() { + return order_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Order.getDefaultInstance() + : order_; + } + /** + * + * + *
          +   * Required. The order to update.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Order order = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.OrderOrBuilder getOrderOrBuilder() { + return order_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Order.getDefaultInstance() + : order_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getOrder()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOrder()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest other = + (com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasOrder() != other.hasOrder()) return false; + if (hasOrder()) { + if (!getOrder().equals(other.getOrder())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasOrder()) { + hash = (37 * hash) + ORDER_FIELD_NUMBER; + hash = (53 * hash) + getOrder().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * A request to update an order.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest) + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateOrderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateOrderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest.Builder.class); + } + + // Construct using + // com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getUpdateMaskFieldBuilder(); + getOrderFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + order_ = null; + if (orderBuilder_ != null) { + orderBuilder_.dispose(); + orderBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateOrderRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest build() { + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest result = + new com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.order_ = orderBuilder_ == null ? order_ : orderBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest) { + return mergeFrom((com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest.getDefaultInstance()) + return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasOrder()) { + mergeOrder(other.getOrder()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getOrderFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
          +     * Required. A mask to specify the fields in the Order to overwrite with this
          +     * update. The fields specified in the update_mask are relative to the order,
          +     * not the full request. A field will be overwritten if it is in the mask. If
          +     * you don't provide a mask then all fields will be overwritten.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
          +     * Required. A mask to specify the fields in the Order to overwrite with this
          +     * update. The fields specified in the update_mask are relative to the order,
          +     * not the full request. A field will be overwritten if it is in the mask. If
          +     * you don't provide a mask then all fields will be overwritten.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Required. A mask to specify the fields in the Order to overwrite with this
          +     * update. The fields specified in the update_mask are relative to the order,
          +     * not the full request. A field will be overwritten if it is in the mask. If
          +     * you don't provide a mask then all fields will be overwritten.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. A mask to specify the fields in the Order to overwrite with this
          +     * update. The fields specified in the update_mask are relative to the order,
          +     * not the full request. A field will be overwritten if it is in the mask. If
          +     * you don't provide a mask then all fields will be overwritten.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. A mask to specify the fields in the Order to overwrite with this
          +     * update. The fields specified in the update_mask are relative to the order,
          +     * not the full request. A field will be overwritten if it is in the mask. If
          +     * you don't provide a mask then all fields will be overwritten.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Required. A mask to specify the fields in the Order to overwrite with this
          +     * update. The fields specified in the update_mask are relative to the order,
          +     * not the full request. A field will be overwritten if it is in the mask. If
          +     * you don't provide a mask then all fields will be overwritten.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. A mask to specify the fields in the Order to overwrite with this
          +     * update. The fields specified in the update_mask are relative to the order,
          +     * not the full request. A field will be overwritten if it is in the mask. If
          +     * you don't provide a mask then all fields will be overwritten.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Required. A mask to specify the fields in the Order to overwrite with this
          +     * update. The fields specified in the update_mask are relative to the order,
          +     * not the full request. A field will be overwritten if it is in the mask. If
          +     * you don't provide a mask then all fields will be overwritten.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
          +     * Required. A mask to specify the fields in the Order to overwrite with this
          +     * update. The fields specified in the update_mask are relative to the order,
          +     * not the full request. A field will be overwritten if it is in the mask. If
          +     * you don't provide a mask then all fields will be overwritten.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.gdchardwaremanagement.v1alpha.Order order_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Order, + com.google.cloud.gdchardwaremanagement.v1alpha.Order.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.OrderOrBuilder> + orderBuilder_; + /** + * + * + *
          +     * Required. The order to update.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Order order = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the order field is set. + */ + public boolean hasOrder() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
          +     * Required. The order to update.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Order order = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The order. + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Order getOrder() { + if (orderBuilder_ == null) { + return order_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Order.getDefaultInstance() + : order_; + } else { + return orderBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Required. The order to update.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Order order = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setOrder(com.google.cloud.gdchardwaremanagement.v1alpha.Order value) { + if (orderBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + order_ = value; + } else { + orderBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The order to update.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Order order = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setOrder( + com.google.cloud.gdchardwaremanagement.v1alpha.Order.Builder builderForValue) { + if (orderBuilder_ == null) { + order_ = builderForValue.build(); + } else { + orderBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The order to update.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Order order = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeOrder(com.google.cloud.gdchardwaremanagement.v1alpha.Order value) { + if (orderBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && order_ != null + && order_ + != com.google.cloud.gdchardwaremanagement.v1alpha.Order.getDefaultInstance()) { + getOrderBuilder().mergeFrom(value); + } else { + order_ = value; + } + } else { + orderBuilder_.mergeFrom(value); + } + if (order_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Required. The order to update.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Order order = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearOrder() { + bitField0_ = (bitField0_ & ~0x00000002); + order_ = null; + if (orderBuilder_ != null) { + orderBuilder_.dispose(); + orderBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The order to update.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Order order = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Order.Builder getOrderBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getOrderFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Required. The order to update.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Order order = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.OrderOrBuilder getOrderOrBuilder() { + if (orderBuilder_ != null) { + return orderBuilder_.getMessageOrBuilder(); + } else { + return order_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Order.getDefaultInstance() + : order_; + } + } + /** + * + * + *
          +     * Required. The order to update.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Order order = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Order, + com.google.cloud.gdchardwaremanagement.v1alpha.Order.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.OrderOrBuilder> + getOrderFieldBuilder() { + if (orderBuilder_ == null) { + orderBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Order, + com.google.cloud.gdchardwaremanagement.v1alpha.Order.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.OrderOrBuilder>( + getOrder(), getParentForChildren(), isClean()); + order_ = null; + } + return orderBuilder_; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateOrderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/UpdateOrderRequestOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/UpdateOrderRequestOrBuilder.java new file mode 100644 index 000000000000..ca3fd8abd588 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/UpdateOrderRequestOrBuilder.java @@ -0,0 +1,141 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface UpdateOrderRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. A mask to specify the fields in the Order to overwrite with this
          +   * update. The fields specified in the update_mask are relative to the order,
          +   * not the full request. A field will be overwritten if it is in the mask. If
          +   * you don't provide a mask then all fields will be overwritten.
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
          +   * Required. A mask to specify the fields in the Order to overwrite with this
          +   * update. The fields specified in the update_mask are relative to the order,
          +   * not the full request. A field will be overwritten if it is in the mask. If
          +   * you don't provide a mask then all fields will be overwritten.
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
          +   * Required. A mask to specify the fields in the Order to overwrite with this
          +   * update. The fields specified in the update_mask are relative to the order,
          +   * not the full request. A field will be overwritten if it is in the mask. If
          +   * you don't provide a mask then all fields will be overwritten.
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
          +   * Required. The order to update.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Order order = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the order field is set. + */ + boolean hasOrder(); + /** + * + * + *
          +   * Required. The order to update.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Order order = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The order. + */ + com.google.cloud.gdchardwaremanagement.v1alpha.Order getOrder(); + /** + * + * + *
          +   * Required. The order to update.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Order order = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gdchardwaremanagement.v1alpha.OrderOrBuilder getOrderOrBuilder(); + + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/UpdateSiteRequest.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/UpdateSiteRequest.java new file mode 100644 index 000000000000..7c9fd0eecae0 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/UpdateSiteRequest.java @@ -0,0 +1,1256 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * A request to update a site.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest} + */ +public final class UpdateSiteRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest) + UpdateSiteRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateSiteRequest.newBuilder() to construct. + private UpdateSiteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateSiteRequest() { + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateSiteRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateSiteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateSiteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest.Builder.class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
          +   * Required. A mask to specify the fields in the Site to overwrite with this
          +   * update. The fields specified in the update_mask are relative to the site,
          +   * not the full request. A field will be overwritten if it is in the mask. If
          +   * you don't provide a mask then all fields will be overwritten.
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
          +   * Required. A mask to specify the fields in the Site to overwrite with this
          +   * update. The fields specified in the update_mask are relative to the site,
          +   * not the full request. A field will be overwritten if it is in the mask. If
          +   * you don't provide a mask then all fields will be overwritten.
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
          +   * Required. A mask to specify the fields in the Site to overwrite with this
          +   * update. The fields specified in the update_mask are relative to the site,
          +   * not the full request. A field will be overwritten if it is in the mask. If
          +   * you don't provide a mask then all fields will be overwritten.
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int SITE_FIELD_NUMBER = 2; + private com.google.cloud.gdchardwaremanagement.v1alpha.Site site_; + /** + * + * + *
          +   * Required. The site to update.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Site site = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the site field is set. + */ + @java.lang.Override + public boolean hasSite() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
          +   * Required. The site to update.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Site site = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The site. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Site getSite() { + return site_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Site.getDefaultInstance() + : site_; + } + /** + * + * + *
          +   * Required. The site to update.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Site site = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.SiteOrBuilder getSiteOrBuilder() { + return site_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Site.getDefaultInstance() + : site_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getSite()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSite()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest other = + (com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasSite() != other.hasSite()) return false; + if (hasSite()) { + if (!getSite().equals(other.getSite())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasSite()) { + hash = (37 * hash) + SITE_FIELD_NUMBER; + hash = (53 * hash) + getSite().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * A request to update a site.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest) + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateSiteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateSiteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest.Builder.class); + } + + // Construct using com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getUpdateMaskFieldBuilder(); + getSiteFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + site_ = null; + if (siteBuilder_ != null) { + siteBuilder_.dispose(); + siteBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateSiteRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest build() { + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest result = + new com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.site_ = siteBuilder_ == null ? site_ : siteBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest) { + return mergeFrom((com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest.getDefaultInstance()) + return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasSite()) { + mergeSite(other.getSite()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getSiteFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
          +     * Required. A mask to specify the fields in the Site to overwrite with this
          +     * update. The fields specified in the update_mask are relative to the site,
          +     * not the full request. A field will be overwritten if it is in the mask. If
          +     * you don't provide a mask then all fields will be overwritten.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
          +     * Required. A mask to specify the fields in the Site to overwrite with this
          +     * update. The fields specified in the update_mask are relative to the site,
          +     * not the full request. A field will be overwritten if it is in the mask. If
          +     * you don't provide a mask then all fields will be overwritten.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Required. A mask to specify the fields in the Site to overwrite with this
          +     * update. The fields specified in the update_mask are relative to the site,
          +     * not the full request. A field will be overwritten if it is in the mask. If
          +     * you don't provide a mask then all fields will be overwritten.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. A mask to specify the fields in the Site to overwrite with this
          +     * update. The fields specified in the update_mask are relative to the site,
          +     * not the full request. A field will be overwritten if it is in the mask. If
          +     * you don't provide a mask then all fields will be overwritten.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. A mask to specify the fields in the Site to overwrite with this
          +     * update. The fields specified in the update_mask are relative to the site,
          +     * not the full request. A field will be overwritten if it is in the mask. If
          +     * you don't provide a mask then all fields will be overwritten.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Required. A mask to specify the fields in the Site to overwrite with this
          +     * update. The fields specified in the update_mask are relative to the site,
          +     * not the full request. A field will be overwritten if it is in the mask. If
          +     * you don't provide a mask then all fields will be overwritten.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. A mask to specify the fields in the Site to overwrite with this
          +     * update. The fields specified in the update_mask are relative to the site,
          +     * not the full request. A field will be overwritten if it is in the mask. If
          +     * you don't provide a mask then all fields will be overwritten.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Required. A mask to specify the fields in the Site to overwrite with this
          +     * update. The fields specified in the update_mask are relative to the site,
          +     * not the full request. A field will be overwritten if it is in the mask. If
          +     * you don't provide a mask then all fields will be overwritten.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
          +     * Required. A mask to specify the fields in the Site to overwrite with this
          +     * update. The fields specified in the update_mask are relative to the site,
          +     * not the full request. A field will be overwritten if it is in the mask. If
          +     * you don't provide a mask then all fields will be overwritten.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.gdchardwaremanagement.v1alpha.Site site_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Site, + com.google.cloud.gdchardwaremanagement.v1alpha.Site.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.SiteOrBuilder> + siteBuilder_; + /** + * + * + *
          +     * Required. The site to update.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Site site = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the site field is set. + */ + public boolean hasSite() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
          +     * Required. The site to update.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Site site = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The site. + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Site getSite() { + if (siteBuilder_ == null) { + return site_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Site.getDefaultInstance() + : site_; + } else { + return siteBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Required. The site to update.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Site site = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSite(com.google.cloud.gdchardwaremanagement.v1alpha.Site value) { + if (siteBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + site_ = value; + } else { + siteBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The site to update.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Site site = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSite( + com.google.cloud.gdchardwaremanagement.v1alpha.Site.Builder builderForValue) { + if (siteBuilder_ == null) { + site_ = builderForValue.build(); + } else { + siteBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The site to update.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Site site = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSite(com.google.cloud.gdchardwaremanagement.v1alpha.Site value) { + if (siteBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && site_ != null + && site_ != com.google.cloud.gdchardwaremanagement.v1alpha.Site.getDefaultInstance()) { + getSiteBuilder().mergeFrom(value); + } else { + site_ = value; + } + } else { + siteBuilder_.mergeFrom(value); + } + if (site_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Required. The site to update.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Site site = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSite() { + bitField0_ = (bitField0_ & ~0x00000002); + site_ = null; + if (siteBuilder_ != null) { + siteBuilder_.dispose(); + siteBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The site to update.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Site site = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Site.Builder getSiteBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getSiteFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Required. The site to update.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Site site = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.SiteOrBuilder getSiteOrBuilder() { + if (siteBuilder_ != null) { + return siteBuilder_.getMessageOrBuilder(); + } else { + return site_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Site.getDefaultInstance() + : site_; + } + } + /** + * + * + *
          +     * Required. The site to update.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Site site = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Site, + com.google.cloud.gdchardwaremanagement.v1alpha.Site.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.SiteOrBuilder> + getSiteFieldBuilder() { + if (siteBuilder_ == null) { + siteBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Site, + com.google.cloud.gdchardwaremanagement.v1alpha.Site.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.SiteOrBuilder>( + getSite(), getParentForChildren(), isClean()); + site_ = null; + } + return siteBuilder_; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSiteRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/UpdateSiteRequestOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/UpdateSiteRequestOrBuilder.java new file mode 100644 index 000000000000..96941dda9af0 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/UpdateSiteRequestOrBuilder.java @@ -0,0 +1,141 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface UpdateSiteRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. A mask to specify the fields in the Site to overwrite with this
          +   * update. The fields specified in the update_mask are relative to the site,
          +   * not the full request. A field will be overwritten if it is in the mask. If
          +   * you don't provide a mask then all fields will be overwritten.
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
          +   * Required. A mask to specify the fields in the Site to overwrite with this
          +   * update. The fields specified in the update_mask are relative to the site,
          +   * not the full request. A field will be overwritten if it is in the mask. If
          +   * you don't provide a mask then all fields will be overwritten.
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
          +   * Required. A mask to specify the fields in the Site to overwrite with this
          +   * update. The fields specified in the update_mask are relative to the site,
          +   * not the full request. A field will be overwritten if it is in the mask. If
          +   * you don't provide a mask then all fields will be overwritten.
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
          +   * Required. The site to update.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Site site = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the site field is set. + */ + boolean hasSite(); + /** + * + * + *
          +   * Required. The site to update.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Site site = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The site. + */ + com.google.cloud.gdchardwaremanagement.v1alpha.Site getSite(); + /** + * + * + *
          +   * Required. The site to update.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Site site = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gdchardwaremanagement.v1alpha.SiteOrBuilder getSiteOrBuilder(); + + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/UpdateZoneRequest.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/UpdateZoneRequest.java new file mode 100644 index 000000000000..0eb092468008 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/UpdateZoneRequest.java @@ -0,0 +1,1270 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * A request to update a zone.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest} + */ +public final class UpdateZoneRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest) + UpdateZoneRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateZoneRequest.newBuilder() to construct. + private UpdateZoneRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateZoneRequest() { + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateZoneRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateZoneRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateZoneRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest.Builder.class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
          +   * Required. A mask to specify the fields in the Zone to overwrite with this
          +   * update. The fields specified in the update_mask are relative to the zone,
          +   * not the full request. A field will be overwritten if it is in the mask. If
          +   * you don't provide a mask then all fields will be overwritten.
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
          +   * Required. A mask to specify the fields in the Zone to overwrite with this
          +   * update. The fields specified in the update_mask are relative to the zone,
          +   * not the full request. A field will be overwritten if it is in the mask. If
          +   * you don't provide a mask then all fields will be overwritten.
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
          +   * Required. A mask to specify the fields in the Zone to overwrite with this
          +   * update. The fields specified in the update_mask are relative to the zone,
          +   * not the full request. A field will be overwritten if it is in the mask. If
          +   * you don't provide a mask then all fields will be overwritten.
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int ZONE_FIELD_NUMBER = 2; + private com.google.cloud.gdchardwaremanagement.v1alpha.Zone zone_; + /** + * + * + *
          +   * Required. The zone to update.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Zone zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the zone field is set. + */ + @java.lang.Override + public boolean hasZone() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
          +   * Required. The zone to update.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Zone zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The zone. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Zone getZone() { + return zone_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Zone.getDefaultInstance() + : zone_; + } + /** + * + * + *
          +   * Required. The zone to update.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Zone zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ZoneOrBuilder getZoneOrBuilder() { + return zone_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Zone.getDefaultInstance() + : zone_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getZone()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getZone()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest other = + (com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasZone() != other.hasZone()) return false; + if (hasZone()) { + if (!getZone().equals(other.getZone())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasZone()) { + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * A request to update a zone.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest) + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateZoneRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateZoneRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest.class, + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest.Builder.class); + } + + // Construct using com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getUpdateMaskFieldBuilder(); + getZoneFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + zone_ = null; + if (zoneBuilder_ != null) { + zoneBuilder_.dispose(); + zoneBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ServiceProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_UpdateZoneRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest build() { + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest result = + new com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.zone_ = zoneBuilder_ == null ? zone_ : zoneBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest) { + return mergeFrom((com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest.getDefaultInstance()) + return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasZone()) { + mergeZone(other.getZone()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getZoneFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
          +     * Required. A mask to specify the fields in the Zone to overwrite with this
          +     * update. The fields specified in the update_mask are relative to the zone,
          +     * not the full request. A field will be overwritten if it is in the mask. If
          +     * you don't provide a mask then all fields will be overwritten.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
          +     * Required. A mask to specify the fields in the Zone to overwrite with this
          +     * update. The fields specified in the update_mask are relative to the zone,
          +     * not the full request. A field will be overwritten if it is in the mask. If
          +     * you don't provide a mask then all fields will be overwritten.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Required. A mask to specify the fields in the Zone to overwrite with this
          +     * update. The fields specified in the update_mask are relative to the zone,
          +     * not the full request. A field will be overwritten if it is in the mask. If
          +     * you don't provide a mask then all fields will be overwritten.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. A mask to specify the fields in the Zone to overwrite with this
          +     * update. The fields specified in the update_mask are relative to the zone,
          +     * not the full request. A field will be overwritten if it is in the mask. If
          +     * you don't provide a mask then all fields will be overwritten.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. A mask to specify the fields in the Zone to overwrite with this
          +     * update. The fields specified in the update_mask are relative to the zone,
          +     * not the full request. A field will be overwritten if it is in the mask. If
          +     * you don't provide a mask then all fields will be overwritten.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Required. A mask to specify the fields in the Zone to overwrite with this
          +     * update. The fields specified in the update_mask are relative to the zone,
          +     * not the full request. A field will be overwritten if it is in the mask. If
          +     * you don't provide a mask then all fields will be overwritten.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. A mask to specify the fields in the Zone to overwrite with this
          +     * update. The fields specified in the update_mask are relative to the zone,
          +     * not the full request. A field will be overwritten if it is in the mask. If
          +     * you don't provide a mask then all fields will be overwritten.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Required. A mask to specify the fields in the Zone to overwrite with this
          +     * update. The fields specified in the update_mask are relative to the zone,
          +     * not the full request. A field will be overwritten if it is in the mask. If
          +     * you don't provide a mask then all fields will be overwritten.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
          +     * Required. A mask to specify the fields in the Zone to overwrite with this
          +     * update. The fields specified in the update_mask are relative to the zone,
          +     * not the full request. A field will be overwritten if it is in the mask. If
          +     * you don't provide a mask then all fields will be overwritten.
          +     * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.gdchardwaremanagement.v1alpha.Zone zone_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Zone, + com.google.cloud.gdchardwaremanagement.v1alpha.Zone.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.ZoneOrBuilder> + zoneBuilder_; + /** + * + * + *
          +     * Required. The zone to update.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Zone zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the zone field is set. + */ + public boolean hasZone() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
          +     * Required. The zone to update.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Zone zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The zone. + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Zone getZone() { + if (zoneBuilder_ == null) { + return zone_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Zone.getDefaultInstance() + : zone_; + } else { + return zoneBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Required. The zone to update.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Zone zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setZone(com.google.cloud.gdchardwaremanagement.v1alpha.Zone value) { + if (zoneBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + zone_ = value; + } else { + zoneBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The zone to update.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Zone zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setZone( + com.google.cloud.gdchardwaremanagement.v1alpha.Zone.Builder builderForValue) { + if (zoneBuilder_ == null) { + zone_ = builderForValue.build(); + } else { + zoneBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The zone to update.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Zone zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeZone(com.google.cloud.gdchardwaremanagement.v1alpha.Zone value) { + if (zoneBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && zone_ != null + && zone_ != com.google.cloud.gdchardwaremanagement.v1alpha.Zone.getDefaultInstance()) { + getZoneBuilder().mergeFrom(value); + } else { + zone_ = value; + } + } else { + zoneBuilder_.mergeFrom(value); + } + if (zone_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Required. The zone to update.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Zone zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearZone() { + bitField0_ = (bitField0_ & ~0x00000002); + zone_ = null; + if (zoneBuilder_ != null) { + zoneBuilder_.dispose(); + zoneBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. The zone to update.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Zone zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Zone.Builder getZoneBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getZoneFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Required. The zone to update.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Zone zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.ZoneOrBuilder getZoneOrBuilder() { + if (zoneBuilder_ != null) { + return zoneBuilder_.getMessageOrBuilder(); + } else { + return zone_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Zone.getDefaultInstance() + : zone_; + } + } + /** + * + * + *
          +     * Required. The zone to update.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Zone zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Zone, + com.google.cloud.gdchardwaremanagement.v1alpha.Zone.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.ZoneOrBuilder> + getZoneFieldBuilder() { + if (zoneBuilder_ == null) { + zoneBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Zone, + com.google.cloud.gdchardwaremanagement.v1alpha.Zone.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.ZoneOrBuilder>( + getZone(), getParentForChildren(), isClean()); + zone_ = null; + } + return zoneBuilder_; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. An optional unique identifier for this request. See
          +     * [AIP-155](https://google.aip.dev/155).
          +     * 
          + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateZoneRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/UpdateZoneRequestOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/UpdateZoneRequestOrBuilder.java new file mode 100644 index 000000000000..6a961de87344 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/UpdateZoneRequestOrBuilder.java @@ -0,0 +1,145 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/service.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface UpdateZoneRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. A mask to specify the fields in the Zone to overwrite with this
          +   * update. The fields specified in the update_mask are relative to the zone,
          +   * not the full request. A field will be overwritten if it is in the mask. If
          +   * you don't provide a mask then all fields will be overwritten.
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
          +   * Required. A mask to specify the fields in the Zone to overwrite with this
          +   * update. The fields specified in the update_mask are relative to the zone,
          +   * not the full request. A field will be overwritten if it is in the mask. If
          +   * you don't provide a mask then all fields will be overwritten.
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
          +   * Required. A mask to specify the fields in the Zone to overwrite with this
          +   * update. The fields specified in the update_mask are relative to the zone,
          +   * not the full request. A field will be overwritten if it is in the mask. If
          +   * you don't provide a mask then all fields will be overwritten.
          +   * 
          + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
          +   * Required. The zone to update.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Zone zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the zone field is set. + */ + boolean hasZone(); + /** + * + * + *
          +   * Required. The zone to update.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Zone zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The zone. + */ + com.google.cloud.gdchardwaremanagement.v1alpha.Zone getZone(); + /** + * + * + *
          +   * Required. The zone to update.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Zone zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gdchardwaremanagement.v1alpha.ZoneOrBuilder getZoneOrBuilder(); + + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
          +   * Optional. An optional unique identifier for this request. See
          +   * [AIP-155](https://google.aip.dev/155).
          +   * 
          + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Zone.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Zone.java new file mode 100644 index 000000000000..83f4fef279ba --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/Zone.java @@ -0,0 +1,3416 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * A zone holding a set of hardware.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.Zone} + */ +public final class Zone extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.Zone) + ZoneOrBuilder { + private static final long serialVersionUID = 0L; + // Use Zone.newBuilder() to construct. + private Zone(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Zone() { + name_ = ""; + displayName_ = ""; + state_ = 0; + contacts_ = java.util.Collections.emptyList(); + ciqUri_ = ""; + globallyUniqueId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Zone(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Zone_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Zone_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.Zone.class, + com.google.cloud.gdchardwaremanagement.v1alpha.Zone.Builder.class); + } + + /** + * + * + *
          +   * Valid states for a zone.
          +   * 
          + * + * Protobuf enum {@code google.cloud.gdchardwaremanagement.v1alpha.Zone.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
          +     * State of the Zone is unspecified.
          +     * 
          + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
          +     * More information is required from the customer to make progress.
          +     * 
          + * + * ADDITIONAL_INFO_NEEDED = 1; + */ + ADDITIONAL_INFO_NEEDED(1), + /** + * + * + *
          +     * Google is preparing the Zone.
          +     * 
          + * + * PREPARING = 2; + */ + PREPARING(2), + /** + * + * + *
          +     * Factory turnup has succeeded.
          +     * 
          + * + * READY_FOR_CUSTOMER_FACTORY_TURNUP_CHECKS = 5; + */ + READY_FOR_CUSTOMER_FACTORY_TURNUP_CHECKS(5), + /** + * + * + *
          +     * The Zone is ready for site turnup.
          +     * 
          + * + * READY_FOR_SITE_TURNUP = 6; + */ + READY_FOR_SITE_TURNUP(6), + /** + * + * + *
          +     * The Zone failed in factory turnup checks.
          +     * 
          + * + * CUSTOMER_FACTORY_TURNUP_CHECKS_FAILED = 7; + */ + CUSTOMER_FACTORY_TURNUP_CHECKS_FAILED(7), + /** + * + * + *
          +     * The Zone is available to use.
          +     * 
          + * + * ACTIVE = 3; + */ + ACTIVE(3), + /** + * + * + *
          +     * The Zone has been cancelled.
          +     * 
          + * + * CANCELLED = 4; + */ + CANCELLED(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
          +     * State of the Zone is unspecified.
          +     * 
          + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
          +     * More information is required from the customer to make progress.
          +     * 
          + * + * ADDITIONAL_INFO_NEEDED = 1; + */ + public static final int ADDITIONAL_INFO_NEEDED_VALUE = 1; + /** + * + * + *
          +     * Google is preparing the Zone.
          +     * 
          + * + * PREPARING = 2; + */ + public static final int PREPARING_VALUE = 2; + /** + * + * + *
          +     * Factory turnup has succeeded.
          +     * 
          + * + * READY_FOR_CUSTOMER_FACTORY_TURNUP_CHECKS = 5; + */ + public static final int READY_FOR_CUSTOMER_FACTORY_TURNUP_CHECKS_VALUE = 5; + /** + * + * + *
          +     * The Zone is ready for site turnup.
          +     * 
          + * + * READY_FOR_SITE_TURNUP = 6; + */ + public static final int READY_FOR_SITE_TURNUP_VALUE = 6; + /** + * + * + *
          +     * The Zone failed in factory turnup checks.
          +     * 
          + * + * CUSTOMER_FACTORY_TURNUP_CHECKS_FAILED = 7; + */ + public static final int CUSTOMER_FACTORY_TURNUP_CHECKS_FAILED_VALUE = 7; + /** + * + * + *
          +     * The Zone is available to use.
          +     * 
          + * + * ACTIVE = 3; + */ + public static final int ACTIVE_VALUE = 3; + /** + * + * + *
          +     * The Zone has been cancelled.
          +     * 
          + * + * CANCELLED = 4; + */ + public static final int CANCELLED_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ADDITIONAL_INFO_NEEDED; + case 2: + return PREPARING; + case 5: + return READY_FOR_CUSTOMER_FACTORY_TURNUP_CHECKS; + case 6: + return READY_FOR_SITE_TURNUP; + case 7: + return CUSTOMER_FACTORY_TURNUP_CHECKS_FAILED; + case 3: + return ACTIVE; + case 4: + return CANCELLED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.Zone.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.gdchardwaremanagement.v1alpha.Zone.State) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
          +   * Identifier. Name of this zone.
          +   * Format: `projects/{project}/locations/{location}/zones/{zone}`
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
          +   * Identifier. Name of this zone.
          +   * Format: `projects/{project}/locations/{location}/zones/{zone}`
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
          +   * Output only. Time when this zone was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
          +   * Output only. Time when this zone was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
          +   * Output only. Time when this zone was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
          +   * Output only. Time when this zone was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
          +   * Output only. Time when this zone was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
          +   * Output only. Time when this zone was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int LABELS_FIELD_NUMBER = 4; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Zone_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
          +   * Optional. Labels associated with this zone as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
          +   * Optional. Labels associated with this zone as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
          +   * Optional. Labels associated with this zone as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
          +   * Optional. Labels associated with this zone as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
          +   * Optional. Human friendly display name of this zone.
          +   * 
          + * + * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
          +   * Optional. Human friendly display name of this zone.
          +   * 
          + * + * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 8; + private int state_ = 0; + /** + * + * + *
          +   * Output only. Current state for this zone.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Zone.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
          +   * Output only. Current state for this zone.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Zone.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Zone.State getState() { + com.google.cloud.gdchardwaremanagement.v1alpha.Zone.State result = + com.google.cloud.gdchardwaremanagement.v1alpha.Zone.State.forNumber(state_); + return result == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Zone.State.UNRECOGNIZED + : result; + } + + public static final int CONTACTS_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private java.util.List contacts_; + /** + * + * + *
          +   * Required. The points of contact.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getContactsList() { + return contacts_; + } + /** + * + * + *
          +   * Required. The points of contact.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getContactsOrBuilderList() { + return contacts_; + } + /** + * + * + *
          +   * Required. The points of contact.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getContactsCount() { + return contacts_.size(); + } + /** + * + * + *
          +   * Required. The points of contact.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Contact getContacts(int index) { + return contacts_.get(index); + } + /** + * + * + *
          +   * Required. The points of contact.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ContactOrBuilder getContactsOrBuilder( + int index) { + return contacts_.get(index); + } + + public static final int CIQ_URI_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object ciqUri_ = ""; + /** + * + * + *
          +   * Output only. Link to the Customer Intake Questionnaire (CIQ) sheet for this
          +   * zone.
          +   * 
          + * + * string ciq_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ciqUri. + */ + @java.lang.Override + public java.lang.String getCiqUri() { + java.lang.Object ref = ciqUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ciqUri_ = s; + return s; + } + } + /** + * + * + *
          +   * Output only. Link to the Customer Intake Questionnaire (CIQ) sheet for this
          +   * zone.
          +   * 
          + * + * string ciq_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ciqUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCiqUriBytes() { + java.lang.Object ref = ciqUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ciqUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NETWORK_CONFIG_FIELD_NUMBER = 11; + private com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig networkConfig_; + /** + * + * + *
          +   * Optional. Networking configuration for this zone.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig network_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the networkConfig field is set. + */ + @java.lang.Override + public boolean hasNetworkConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
          +   * Optional. Networking configuration for this zone.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig network_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The networkConfig. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig getNetworkConfig() { + return networkConfig_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig.getDefaultInstance() + : networkConfig_; + } + /** + * + * + *
          +   * Optional. Networking configuration for this zone.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig network_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfigOrBuilder + getNetworkConfigOrBuilder() { + return networkConfig_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig.getDefaultInstance() + : networkConfig_; + } + + public static final int GLOBALLY_UNIQUE_ID_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private volatile java.lang.Object globallyUniqueId_ = ""; + /** + * + * + *
          +   * Output only. Globally unique identifier generated for this Edge Zone.
          +   * 
          + * + * string globally_unique_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The globallyUniqueId. + */ + @java.lang.Override + public java.lang.String getGloballyUniqueId() { + java.lang.Object ref = globallyUniqueId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + globallyUniqueId_ = s; + return s; + } + } + /** + * + * + *
          +   * Output only. Globally unique identifier generated for this Edge Zone.
          +   * 
          + * + * string globally_unique_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for globallyUniqueId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGloballyUniqueIdBytes() { + java.lang.Object ref = globallyUniqueId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + globallyUniqueId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getUpdateTime()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_); + } + if (state_ + != com.google.cloud.gdchardwaremanagement.v1alpha.Zone.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(8, state_); + } + for (int i = 0; i < contacts_.size(); i++) { + output.writeMessage(9, contacts_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ciqUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, ciqUri_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(11, getNetworkConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(globallyUniqueId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, globallyUniqueId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); + } + if (state_ + != com.google.cloud.gdchardwaremanagement.v1alpha.Zone.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, state_); + } + for (int i = 0; i < contacts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, contacts_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ciqUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, ciqUri_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getNetworkConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(globallyUniqueId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, globallyUniqueId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.Zone)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.Zone other = + (com.google.cloud.gdchardwaremanagement.v1alpha.Zone) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (state_ != other.state_) return false; + if (!getContactsList().equals(other.getContactsList())) return false; + if (!getCiqUri().equals(other.getCiqUri())) return false; + if (hasNetworkConfig() != other.hasNetworkConfig()) return false; + if (hasNetworkConfig()) { + if (!getNetworkConfig().equals(other.getNetworkConfig())) return false; + } + if (!getGloballyUniqueId().equals(other.getGloballyUniqueId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (getContactsCount() > 0) { + hash = (37 * hash) + CONTACTS_FIELD_NUMBER; + hash = (53 * hash) + getContactsList().hashCode(); + } + hash = (37 * hash) + CIQ_URI_FIELD_NUMBER; + hash = (53 * hash) + getCiqUri().hashCode(); + if (hasNetworkConfig()) { + hash = (37 * hash) + NETWORK_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getNetworkConfig().hashCode(); + } + hash = (37 * hash) + GLOBALLY_UNIQUE_ID_FIELD_NUMBER; + hash = (53 * hash) + getGloballyUniqueId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Zone parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Zone parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Zone parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Zone parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Zone parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Zone parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Zone parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Zone parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Zone parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Zone parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Zone parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Zone parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.gdchardwaremanagement.v1alpha.Zone prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * A zone holding a set of hardware.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.Zone} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.Zone) + com.google.cloud.gdchardwaremanagement.v1alpha.ZoneOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Zone_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Zone_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.Zone.class, + com.google.cloud.gdchardwaremanagement.v1alpha.Zone.Builder.class); + } + + // Construct using com.google.cloud.gdchardwaremanagement.v1alpha.Zone.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + getContactsFieldBuilder(); + getNetworkConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + displayName_ = ""; + state_ = 0; + if (contactsBuilder_ == null) { + contacts_ = java.util.Collections.emptyList(); + } else { + contacts_ = null; + contactsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + ciqUri_ = ""; + networkConfig_ = null; + if (networkConfigBuilder_ != null) { + networkConfigBuilder_.dispose(); + networkConfigBuilder_ = null; + } + globallyUniqueId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_Zone_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Zone getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.Zone.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Zone build() { + com.google.cloud.gdchardwaremanagement.v1alpha.Zone result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Zone buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.Zone result = + new com.google.cloud.gdchardwaremanagement.v1alpha.Zone(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.gdchardwaremanagement.v1alpha.Zone result) { + if (contactsBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + contacts_ = java.util.Collections.unmodifiableList(contacts_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.contacts_ = contacts_; + } else { + result.contacts_ = contactsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.gdchardwaremanagement.v1alpha.Zone result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.ciqUri_ = ciqUri_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.networkConfig_ = + networkConfigBuilder_ == null ? networkConfig_ : networkConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.globallyUniqueId_ = globallyUniqueId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.Zone) { + return mergeFrom((com.google.cloud.gdchardwaremanagement.v1alpha.Zone) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gdchardwaremanagement.v1alpha.Zone other) { + if (other == com.google.cloud.gdchardwaremanagement.v1alpha.Zone.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000008; + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (contactsBuilder_ == null) { + if (!other.contacts_.isEmpty()) { + if (contacts_.isEmpty()) { + contacts_ = other.contacts_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureContactsIsMutable(); + contacts_.addAll(other.contacts_); + } + onChanged(); + } + } else { + if (!other.contacts_.isEmpty()) { + if (contactsBuilder_.isEmpty()) { + contactsBuilder_.dispose(); + contactsBuilder_ = null; + contacts_ = other.contacts_; + bitField0_ = (bitField0_ & ~0x00000040); + contactsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getContactsFieldBuilder() + : null; + } else { + contactsBuilder_.addAllMessages(other.contacts_); + } + } + } + if (!other.getCiqUri().isEmpty()) { + ciqUri_ = other.ciqUri_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (other.hasNetworkConfig()) { + mergeNetworkConfig(other.getNetworkConfig()); + } + if (!other.getGloballyUniqueId().isEmpty()) { + globallyUniqueId_ = other.globallyUniqueId_; + bitField0_ |= 0x00000200; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 64: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 64 + case 74: + { + com.google.cloud.gdchardwaremanagement.v1alpha.Contact m = + input.readMessage( + com.google.cloud.gdchardwaremanagement.v1alpha.Contact.parser(), + extensionRegistry); + if (contactsBuilder_ == null) { + ensureContactsIsMutable(); + contacts_.add(m); + } else { + contactsBuilder_.addMessage(m); + } + break; + } // case 74 + case 82: + { + ciqUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 82 + case 90: + { + input.readMessage(getNetworkConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 90 + case 98: + { + globallyUniqueId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 98 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
          +     * Identifier. Name of this zone.
          +     * Format: `projects/{project}/locations/{location}/zones/{zone}`
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Identifier. Name of this zone.
          +     * Format: `projects/{project}/locations/{location}/zones/{zone}`
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Identifier. Name of this zone.
          +     * Format: `projects/{project}/locations/{location}/zones/{zone}`
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Identifier. Name of this zone.
          +     * Format: `projects/{project}/locations/{location}/zones/{zone}`
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * Identifier. Name of this zone.
          +     * Format: `projects/{project}/locations/{location}/zones/{zone}`
          +     * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
          +     * Output only. Time when this zone was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
          +     * Output only. Time when this zone was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Output only. Time when this zone was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Time when this zone was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Time when this zone was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Output only. Time when this zone was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Time when this zone was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Output only. Time when this zone was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
          +     * Output only. Time when this zone was created.
          +     * 
          + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
          +     * Output only. Time when this zone was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
          +     * Output only. Time when this zone was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Output only. Time when this zone was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Time when this zone was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Time when this zone was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Output only. Time when this zone was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Time when this zone was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Output only. Time when this zone was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
          +     * Output only. Time when this zone was last updated.
          +     * 
          + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000008; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
          +     * Optional. Labels associated with this zone as key value pairs.
          +     * For more information about labels, see [Create and manage
          +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +     * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
          +     * Optional. Labels associated with this zone as key value pairs.
          +     * For more information about labels, see [Create and manage
          +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +     * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
          +     * Optional. Labels associated with this zone as key value pairs.
          +     * For more information about labels, see [Create and manage
          +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +     * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
          +     * Optional. Labels associated with this zone as key value pairs.
          +     * For more information about labels, see [Create and manage
          +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +     * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + /** + * + * + *
          +     * Optional. Labels associated with this zone as key value pairs.
          +     * For more information about labels, see [Create and manage
          +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +     * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000008; + return internalGetMutableLabels().getMutableMap(); + } + /** + * + * + *
          +     * Optional. Labels associated with this zone as key value pairs.
          +     * For more information about labels, see [Create and manage
          +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +     * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000008; + return this; + } + /** + * + * + *
          +     * Optional. Labels associated with this zone as key value pairs.
          +     * For more information about labels, see [Create and manage
          +     * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +     * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000008; + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
          +     * Optional. Human friendly display name of this zone.
          +     * 
          + * + * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Optional. Human friendly display name of this zone.
          +     * 
          + * + * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Optional. Human friendly display name of this zone.
          +     * 
          + * + * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Human friendly display name of this zone.
          +     * 
          + * + * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Human friendly display name of this zone.
          +     * 
          + * + * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * + * + *
          +     * Output only. Current state for this zone.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Zone.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
          +     * Output only. Current state for this zone.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Zone.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Current state for this zone.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Zone.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Zone.State getState() { + com.google.cloud.gdchardwaremanagement.v1alpha.Zone.State result = + com.google.cloud.gdchardwaremanagement.v1alpha.Zone.State.forNumber(state_); + return result == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Zone.State.UNRECOGNIZED + : result; + } + /** + * + * + *
          +     * Output only. Current state for this zone.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Zone.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.gdchardwaremanagement.v1alpha.Zone.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Current state for this zone.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Zone.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000020); + state_ = 0; + onChanged(); + return this; + } + + private java.util.List contacts_ = + java.util.Collections.emptyList(); + + private void ensureContactsIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + contacts_ = + new java.util.ArrayList( + contacts_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Contact, + com.google.cloud.gdchardwaremanagement.v1alpha.Contact.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.ContactOrBuilder> + contactsBuilder_; + + /** + * + * + *
          +     * Required. The points of contact.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getContactsList() { + if (contactsBuilder_ == null) { + return java.util.Collections.unmodifiableList(contacts_); + } else { + return contactsBuilder_.getMessageList(); + } + } + /** + * + * + *
          +     * Required. The points of contact.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getContactsCount() { + if (contactsBuilder_ == null) { + return contacts_.size(); + } else { + return contactsBuilder_.getCount(); + } + } + /** + * + * + *
          +     * Required. The points of contact.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Contact getContacts(int index) { + if (contactsBuilder_ == null) { + return contacts_.get(index); + } else { + return contactsBuilder_.getMessage(index); + } + } + /** + * + * + *
          +     * Required. The points of contact.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setContacts( + int index, com.google.cloud.gdchardwaremanagement.v1alpha.Contact value) { + if (contactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContactsIsMutable(); + contacts_.set(index, value); + onChanged(); + } else { + contactsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
          +     * Required. The points of contact.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setContacts( + int index, com.google.cloud.gdchardwaremanagement.v1alpha.Contact.Builder builderForValue) { + if (contactsBuilder_ == null) { + ensureContactsIsMutable(); + contacts_.set(index, builderForValue.build()); + onChanged(); + } else { + contactsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * Required. The points of contact.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addContacts(com.google.cloud.gdchardwaremanagement.v1alpha.Contact value) { + if (contactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContactsIsMutable(); + contacts_.add(value); + onChanged(); + } else { + contactsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
          +     * Required. The points of contact.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addContacts( + int index, com.google.cloud.gdchardwaremanagement.v1alpha.Contact value) { + if (contactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContactsIsMutable(); + contacts_.add(index, value); + onChanged(); + } else { + contactsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
          +     * Required. The points of contact.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addContacts( + com.google.cloud.gdchardwaremanagement.v1alpha.Contact.Builder builderForValue) { + if (contactsBuilder_ == null) { + ensureContactsIsMutable(); + contacts_.add(builderForValue.build()); + onChanged(); + } else { + contactsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * Required. The points of contact.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addContacts( + int index, com.google.cloud.gdchardwaremanagement.v1alpha.Contact.Builder builderForValue) { + if (contactsBuilder_ == null) { + ensureContactsIsMutable(); + contacts_.add(index, builderForValue.build()); + onChanged(); + } else { + contactsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
          +     * Required. The points of contact.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllContacts( + java.lang.Iterable + values) { + if (contactsBuilder_ == null) { + ensureContactsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, contacts_); + onChanged(); + } else { + contactsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
          +     * Required. The points of contact.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearContacts() { + if (contactsBuilder_ == null) { + contacts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + contactsBuilder_.clear(); + } + return this; + } + /** + * + * + *
          +     * Required. The points of contact.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeContacts(int index) { + if (contactsBuilder_ == null) { + ensureContactsIsMutable(); + contacts_.remove(index); + onChanged(); + } else { + contactsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
          +     * Required. The points of contact.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Contact.Builder getContactsBuilder( + int index) { + return getContactsFieldBuilder().getBuilder(index); + } + /** + * + * + *
          +     * Required. The points of contact.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.ContactOrBuilder getContactsOrBuilder( + int index) { + if (contactsBuilder_ == null) { + return contacts_.get(index); + } else { + return contactsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
          +     * Required. The points of contact.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getContactsOrBuilderList() { + if (contactsBuilder_ != null) { + return contactsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(contacts_); + } + } + /** + * + * + *
          +     * Required. The points of contact.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Contact.Builder addContactsBuilder() { + return getContactsFieldBuilder() + .addBuilder(com.google.cloud.gdchardwaremanagement.v1alpha.Contact.getDefaultInstance()); + } + /** + * + * + *
          +     * Required. The points of contact.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Contact.Builder addContactsBuilder( + int index) { + return getContactsFieldBuilder() + .addBuilder( + index, com.google.cloud.gdchardwaremanagement.v1alpha.Contact.getDefaultInstance()); + } + /** + * + * + *
          +     * Required. The points of contact.
          +     * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getContactsBuilderList() { + return getContactsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Contact, + com.google.cloud.gdchardwaremanagement.v1alpha.Contact.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.ContactOrBuilder> + getContactsFieldBuilder() { + if (contactsBuilder_ == null) { + contactsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Contact, + com.google.cloud.gdchardwaremanagement.v1alpha.Contact.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.ContactOrBuilder>( + contacts_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); + contacts_ = null; + } + return contactsBuilder_; + } + + private java.lang.Object ciqUri_ = ""; + /** + * + * + *
          +     * Output only. Link to the Customer Intake Questionnaire (CIQ) sheet for this
          +     * zone.
          +     * 
          + * + * string ciq_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ciqUri. + */ + public java.lang.String getCiqUri() { + java.lang.Object ref = ciqUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ciqUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Output only. Link to the Customer Intake Questionnaire (CIQ) sheet for this
          +     * zone.
          +     * 
          + * + * string ciq_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ciqUri. + */ + public com.google.protobuf.ByteString getCiqUriBytes() { + java.lang.Object ref = ciqUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ciqUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Output only. Link to the Customer Intake Questionnaire (CIQ) sheet for this
          +     * zone.
          +     * 
          + * + * string ciq_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The ciqUri to set. + * @return This builder for chaining. + */ + public Builder setCiqUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ciqUri_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Link to the Customer Intake Questionnaire (CIQ) sheet for this
          +     * zone.
          +     * 
          + * + * string ciq_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearCiqUri() { + ciqUri_ = getDefaultInstance().getCiqUri(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Link to the Customer Intake Questionnaire (CIQ) sheet for this
          +     * zone.
          +     * 
          + * + * string ciq_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for ciqUri to set. + * @return This builder for chaining. + */ + public Builder setCiqUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ciqUri_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig networkConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig, + com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfigOrBuilder> + networkConfigBuilder_; + /** + * + * + *
          +     * Optional. Networking configuration for this zone.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig network_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the networkConfig field is set. + */ + public boolean hasNetworkConfig() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * + * + *
          +     * Optional. Networking configuration for this zone.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig network_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The networkConfig. + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig getNetworkConfig() { + if (networkConfigBuilder_ == null) { + return networkConfig_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig.getDefaultInstance() + : networkConfig_; + } else { + return networkConfigBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Optional. Networking configuration for this zone.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig network_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setNetworkConfig( + com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig value) { + if (networkConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + networkConfig_ = value; + } else { + networkConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Networking configuration for this zone.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig network_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setNetworkConfig( + com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig.Builder builderForValue) { + if (networkConfigBuilder_ == null) { + networkConfig_ = builderForValue.build(); + } else { + networkConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Networking configuration for this zone.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig network_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeNetworkConfig( + com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig value) { + if (networkConfigBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && networkConfig_ != null + && networkConfig_ + != com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig + .getDefaultInstance()) { + getNetworkConfigBuilder().mergeFrom(value); + } else { + networkConfig_ = value; + } + } else { + networkConfigBuilder_.mergeFrom(value); + } + if (networkConfig_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Optional. Networking configuration for this zone.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig network_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearNetworkConfig() { + bitField0_ = (bitField0_ & ~0x00000100); + networkConfig_ = null; + if (networkConfigBuilder_ != null) { + networkConfigBuilder_.dispose(); + networkConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. Networking configuration for this zone.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig network_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig.Builder + getNetworkConfigBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getNetworkConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Optional. Networking configuration for this zone.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig network_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfigOrBuilder + getNetworkConfigOrBuilder() { + if (networkConfigBuilder_ != null) { + return networkConfigBuilder_.getMessageOrBuilder(); + } else { + return networkConfig_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig.getDefaultInstance() + : networkConfig_; + } + } + /** + * + * + *
          +     * Optional. Networking configuration for this zone.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig network_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig, + com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfigOrBuilder> + getNetworkConfigFieldBuilder() { + if (networkConfigBuilder_ == null) { + networkConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig, + com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfigOrBuilder>( + getNetworkConfig(), getParentForChildren(), isClean()); + networkConfig_ = null; + } + return networkConfigBuilder_; + } + + private java.lang.Object globallyUniqueId_ = ""; + /** + * + * + *
          +     * Output only. Globally unique identifier generated for this Edge Zone.
          +     * 
          + * + * string globally_unique_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The globallyUniqueId. + */ + public java.lang.String getGloballyUniqueId() { + java.lang.Object ref = globallyUniqueId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + globallyUniqueId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Output only. Globally unique identifier generated for this Edge Zone.
          +     * 
          + * + * string globally_unique_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for globallyUniqueId. + */ + public com.google.protobuf.ByteString getGloballyUniqueIdBytes() { + java.lang.Object ref = globallyUniqueId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + globallyUniqueId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Output only. Globally unique identifier generated for this Edge Zone.
          +     * 
          + * + * string globally_unique_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The globallyUniqueId to set. + * @return This builder for chaining. + */ + public Builder setGloballyUniqueId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + globallyUniqueId_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Globally unique identifier generated for this Edge Zone.
          +     * 
          + * + * string globally_unique_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearGloballyUniqueId() { + globallyUniqueId_ = getDefaultInstance().getGloballyUniqueId(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + /** + * + * + *
          +     * Output only. Globally unique identifier generated for this Edge Zone.
          +     * 
          + * + * string globally_unique_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for globallyUniqueId to set. + * @return This builder for chaining. + */ + public Builder setGloballyUniqueIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + globallyUniqueId_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.Zone) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.Zone) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.Zone DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.Zone(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.Zone getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Zone parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Zone getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ZoneName.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ZoneName.java new file mode 100644 index 000000000000..dad509ffbaca --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ZoneName.java @@ -0,0 +1,217 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class ZoneName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_ZONE = + PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}/zones/{zone}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String zone; + + @Deprecated + protected ZoneName() { + project = null; + location = null; + zone = null; + } + + private ZoneName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + zone = Preconditions.checkNotNull(builder.getZone()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getZone() { + return zone; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ZoneName of(String project, String location, String zone) { + return newBuilder().setProject(project).setLocation(location).setZone(zone).build(); + } + + public static String format(String project, String location, String zone) { + return newBuilder().setProject(project).setLocation(location).setZone(zone).build().toString(); + } + + public static ZoneName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_ZONE.validatedMatch( + formattedString, "ZoneName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("zone")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (ZoneName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_ZONE.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (zone != null) { + fieldMapBuilder.put("zone", zone); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_ZONE.instantiate( + "project", project, "location", location, "zone", zone); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ZoneName that = ((ZoneName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.zone, that.zone); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(zone); + return h; + } + + /** Builder for projects/{project}/locations/{location}/zones/{zone}. */ + public static class Builder { + private String project; + private String location; + private String zone; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getZone() { + return zone; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setZone(String zone) { + this.zone = zone; + return this; + } + + private Builder(ZoneName zoneName) { + this.project = zoneName.project; + this.location = zoneName.location; + this.zone = zoneName.zone; + } + + public ZoneName build() { + return new ZoneName(this); + } + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ZoneNetworkConfig.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ZoneNetworkConfig.java new file mode 100644 index 000000000000..86572314067a --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ZoneNetworkConfig.java @@ -0,0 +1,1770 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +/** + * + * + *
          + * Networking configuration for a zone.
          + * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig} + */ +public final class ZoneNetworkConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig) + ZoneNetworkConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ZoneNetworkConfig.newBuilder() to construct. + private ZoneNetworkConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ZoneNetworkConfig() { + machineMgmtIpv4Range_ = ""; + kubernetesNodeIpv4Range_ = ""; + kubernetesControlPlaneIpv4Range_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ZoneNetworkConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ZoneNetworkConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ZoneNetworkConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig.class, + com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig.Builder.class); + } + + private int bitField0_; + public static final int MACHINE_MGMT_IPV4_RANGE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object machineMgmtIpv4Range_ = ""; + /** + * + * + *
          +   * Required. An IPv4 address block for machine management.
          +   * Should be a private RFC1918 or public CIDR block large enough to allocate
          +   * at least one address per machine in the Zone.
          +   * Should be in `management_ipv4_subnet`, and disjoint with other address
          +   * ranges.
          +   * 
          + * + * + * string machine_mgmt_ipv4_range = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * + * + * @return The machineMgmtIpv4Range. + */ + @java.lang.Override + public java.lang.String getMachineMgmtIpv4Range() { + java.lang.Object ref = machineMgmtIpv4Range_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + machineMgmtIpv4Range_ = s; + return s; + } + } + /** + * + * + *
          +   * Required. An IPv4 address block for machine management.
          +   * Should be a private RFC1918 or public CIDR block large enough to allocate
          +   * at least one address per machine in the Zone.
          +   * Should be in `management_ipv4_subnet`, and disjoint with other address
          +   * ranges.
          +   * 
          + * + * + * string machine_mgmt_ipv4_range = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * + * + * @return The bytes for machineMgmtIpv4Range. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMachineMgmtIpv4RangeBytes() { + java.lang.Object ref = machineMgmtIpv4Range_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + machineMgmtIpv4Range_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KUBERNETES_NODE_IPV4_RANGE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object kubernetesNodeIpv4Range_ = ""; + /** + * + * + *
          +   * Required. An IPv4 address block for kubernetes nodes.
          +   * Should be a private RFC1918 or public CIDR block large enough to allocate
          +   * at least one address per machine in the Zone.
          +   * Should be in `kubernetes_ipv4_subnet`, and disjoint with other address
          +   * ranges.
          +   * 
          + * + * + * string kubernetes_node_ipv4_range = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * + * + * @return The kubernetesNodeIpv4Range. + */ + @java.lang.Override + public java.lang.String getKubernetesNodeIpv4Range() { + java.lang.Object ref = kubernetesNodeIpv4Range_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kubernetesNodeIpv4Range_ = s; + return s; + } + } + /** + * + * + *
          +   * Required. An IPv4 address block for kubernetes nodes.
          +   * Should be a private RFC1918 or public CIDR block large enough to allocate
          +   * at least one address per machine in the Zone.
          +   * Should be in `kubernetes_ipv4_subnet`, and disjoint with other address
          +   * ranges.
          +   * 
          + * + * + * string kubernetes_node_ipv4_range = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * + * + * @return The bytes for kubernetesNodeIpv4Range. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKubernetesNodeIpv4RangeBytes() { + java.lang.Object ref = kubernetesNodeIpv4Range_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kubernetesNodeIpv4Range_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KUBERNETES_CONTROL_PLANE_IPV4_RANGE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object kubernetesControlPlaneIpv4Range_ = ""; + /** + * + * + *
          +   * Required. An IPv4 address block for kubernetes control plane.
          +   * Should be a private RFC1918 or public CIDR block large enough to allocate
          +   * at least one address per cluster in the Zone.
          +   * Should be in `kubernetes_ipv4_subnet`, and disjoint with other address
          +   * ranges.
          +   * 
          + * + * + * string kubernetes_control_plane_ipv4_range = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * + * + * @return The kubernetesControlPlaneIpv4Range. + */ + @java.lang.Override + public java.lang.String getKubernetesControlPlaneIpv4Range() { + java.lang.Object ref = kubernetesControlPlaneIpv4Range_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kubernetesControlPlaneIpv4Range_ = s; + return s; + } + } + /** + * + * + *
          +   * Required. An IPv4 address block for kubernetes control plane.
          +   * Should be a private RFC1918 or public CIDR block large enough to allocate
          +   * at least one address per cluster in the Zone.
          +   * Should be in `kubernetes_ipv4_subnet`, and disjoint with other address
          +   * ranges.
          +   * 
          + * + * + * string kubernetes_control_plane_ipv4_range = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * + * + * @return The bytes for kubernetesControlPlaneIpv4Range. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKubernetesControlPlaneIpv4RangeBytes() { + java.lang.Object ref = kubernetesControlPlaneIpv4Range_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kubernetesControlPlaneIpv4Range_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MANAGEMENT_IPV4_SUBNET_FIELD_NUMBER = 4; + private com.google.cloud.gdchardwaremanagement.v1alpha.Subnet managementIpv4Subnet_; + /** + * + * + *
          +   * Required. An IPv4 subnet for the management network.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Subnet management_ipv4_subnet = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the managementIpv4Subnet field is set. + */ + @java.lang.Override + public boolean hasManagementIpv4Subnet() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
          +   * Required. An IPv4 subnet for the management network.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Subnet management_ipv4_subnet = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The managementIpv4Subnet. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Subnet getManagementIpv4Subnet() { + return managementIpv4Subnet_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Subnet.getDefaultInstance() + : managementIpv4Subnet_; + } + /** + * + * + *
          +   * Required. An IPv4 subnet for the management network.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Subnet management_ipv4_subnet = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.SubnetOrBuilder + getManagementIpv4SubnetOrBuilder() { + return managementIpv4Subnet_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Subnet.getDefaultInstance() + : managementIpv4Subnet_; + } + + public static final int KUBERNETES_IPV4_SUBNET_FIELD_NUMBER = 5; + private com.google.cloud.gdchardwaremanagement.v1alpha.Subnet kubernetesIpv4Subnet_; + /** + * + * + *
          +   * Optional. An IPv4 subnet for the kubernetes network.
          +   * If unspecified, the kubernetes subnet will be the same as the management
          +   * subnet.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Subnet kubernetes_ipv4_subnet = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the kubernetesIpv4Subnet field is set. + */ + @java.lang.Override + public boolean hasKubernetesIpv4Subnet() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
          +   * Optional. An IPv4 subnet for the kubernetes network.
          +   * If unspecified, the kubernetes subnet will be the same as the management
          +   * subnet.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Subnet kubernetes_ipv4_subnet = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The kubernetesIpv4Subnet. + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.Subnet getKubernetesIpv4Subnet() { + return kubernetesIpv4Subnet_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Subnet.getDefaultInstance() + : kubernetesIpv4Subnet_; + } + /** + * + * + *
          +   * Optional. An IPv4 subnet for the kubernetes network.
          +   * If unspecified, the kubernetes subnet will be the same as the management
          +   * subnet.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Subnet kubernetes_ipv4_subnet = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.SubnetOrBuilder + getKubernetesIpv4SubnetOrBuilder() { + return kubernetesIpv4Subnet_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Subnet.getDefaultInstance() + : kubernetesIpv4Subnet_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineMgmtIpv4Range_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, machineMgmtIpv4Range_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kubernetesNodeIpv4Range_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kubernetesNodeIpv4Range_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kubernetesControlPlaneIpv4Range_)) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 3, kubernetesControlPlaneIpv4Range_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getManagementIpv4Subnet()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getKubernetesIpv4Subnet()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineMgmtIpv4Range_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, machineMgmtIpv4Range_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kubernetesNodeIpv4Range_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kubernetesNodeIpv4Range_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kubernetesControlPlaneIpv4Range_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 3, kubernetesControlPlaneIpv4Range_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, getManagementIpv4Subnet()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(5, getKubernetesIpv4Subnet()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig)) { + return super.equals(obj); + } + com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig other = + (com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig) obj; + + if (!getMachineMgmtIpv4Range().equals(other.getMachineMgmtIpv4Range())) return false; + if (!getKubernetesNodeIpv4Range().equals(other.getKubernetesNodeIpv4Range())) return false; + if (!getKubernetesControlPlaneIpv4Range().equals(other.getKubernetesControlPlaneIpv4Range())) + return false; + if (hasManagementIpv4Subnet() != other.hasManagementIpv4Subnet()) return false; + if (hasManagementIpv4Subnet()) { + if (!getManagementIpv4Subnet().equals(other.getManagementIpv4Subnet())) return false; + } + if (hasKubernetesIpv4Subnet() != other.hasKubernetesIpv4Subnet()) return false; + if (hasKubernetesIpv4Subnet()) { + if (!getKubernetesIpv4Subnet().equals(other.getKubernetesIpv4Subnet())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MACHINE_MGMT_IPV4_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getMachineMgmtIpv4Range().hashCode(); + hash = (37 * hash) + KUBERNETES_NODE_IPV4_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getKubernetesNodeIpv4Range().hashCode(); + hash = (37 * hash) + KUBERNETES_CONTROL_PLANE_IPV4_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getKubernetesControlPlaneIpv4Range().hashCode(); + if (hasManagementIpv4Subnet()) { + hash = (37 * hash) + MANAGEMENT_IPV4_SUBNET_FIELD_NUMBER; + hash = (53 * hash) + getManagementIpv4Subnet().hashCode(); + } + if (hasKubernetesIpv4Subnet()) { + hash = (37 * hash) + KUBERNETES_IPV4_SUBNET_FIELD_NUMBER; + hash = (53 * hash) + getKubernetesIpv4Subnet().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
          +   * Networking configuration for a zone.
          +   * 
          + * + * Protobuf type {@code google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig) + com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ZoneNetworkConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ZoneNetworkConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig.class, + com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig.Builder.class); + } + + // Construct using com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getManagementIpv4SubnetFieldBuilder(); + getKubernetesIpv4SubnetFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + machineMgmtIpv4Range_ = ""; + kubernetesNodeIpv4Range_ = ""; + kubernetesControlPlaneIpv4Range_ = ""; + managementIpv4Subnet_ = null; + if (managementIpv4SubnetBuilder_ != null) { + managementIpv4SubnetBuilder_.dispose(); + managementIpv4SubnetBuilder_ = null; + } + kubernetesIpv4Subnet_ = null; + if (kubernetesIpv4SubnetBuilder_ != null) { + kubernetesIpv4SubnetBuilder_.dispose(); + kubernetesIpv4SubnetBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ResourcesProto + .internal_static_google_cloud_gdchardwaremanagement_v1alpha_ZoneNetworkConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig + getDefaultInstanceForType() { + return com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig build() { + com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig buildPartial() { + com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig result = + new com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.machineMgmtIpv4Range_ = machineMgmtIpv4Range_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.kubernetesNodeIpv4Range_ = kubernetesNodeIpv4Range_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.kubernetesControlPlaneIpv4Range_ = kubernetesControlPlaneIpv4Range_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.managementIpv4Subnet_ = + managementIpv4SubnetBuilder_ == null + ? managementIpv4Subnet_ + : managementIpv4SubnetBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.kubernetesIpv4Subnet_ = + kubernetesIpv4SubnetBuilder_ == null + ? kubernetesIpv4Subnet_ + : kubernetesIpv4SubnetBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig) { + return mergeFrom((com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig other) { + if (other + == com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig.getDefaultInstance()) + return this; + if (!other.getMachineMgmtIpv4Range().isEmpty()) { + machineMgmtIpv4Range_ = other.machineMgmtIpv4Range_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getKubernetesNodeIpv4Range().isEmpty()) { + kubernetesNodeIpv4Range_ = other.kubernetesNodeIpv4Range_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getKubernetesControlPlaneIpv4Range().isEmpty()) { + kubernetesControlPlaneIpv4Range_ = other.kubernetesControlPlaneIpv4Range_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasManagementIpv4Subnet()) { + mergeManagementIpv4Subnet(other.getManagementIpv4Subnet()); + } + if (other.hasKubernetesIpv4Subnet()) { + mergeKubernetesIpv4Subnet(other.getKubernetesIpv4Subnet()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + machineMgmtIpv4Range_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + kubernetesNodeIpv4Range_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + kubernetesControlPlaneIpv4Range_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + getManagementIpv4SubnetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + getKubernetesIpv4SubnetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object machineMgmtIpv4Range_ = ""; + /** + * + * + *
          +     * Required. An IPv4 address block for machine management.
          +     * Should be a private RFC1918 or public CIDR block large enough to allocate
          +     * at least one address per machine in the Zone.
          +     * Should be in `management_ipv4_subnet`, and disjoint with other address
          +     * ranges.
          +     * 
          + * + * + * string machine_mgmt_ipv4_range = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * + * + * @return The machineMgmtIpv4Range. + */ + public java.lang.String getMachineMgmtIpv4Range() { + java.lang.Object ref = machineMgmtIpv4Range_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + machineMgmtIpv4Range_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Required. An IPv4 address block for machine management.
          +     * Should be a private RFC1918 or public CIDR block large enough to allocate
          +     * at least one address per machine in the Zone.
          +     * Should be in `management_ipv4_subnet`, and disjoint with other address
          +     * ranges.
          +     * 
          + * + * + * string machine_mgmt_ipv4_range = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * + * + * @return The bytes for machineMgmtIpv4Range. + */ + public com.google.protobuf.ByteString getMachineMgmtIpv4RangeBytes() { + java.lang.Object ref = machineMgmtIpv4Range_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + machineMgmtIpv4Range_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Required. An IPv4 address block for machine management.
          +     * Should be a private RFC1918 or public CIDR block large enough to allocate
          +     * at least one address per machine in the Zone.
          +     * Should be in `management_ipv4_subnet`, and disjoint with other address
          +     * ranges.
          +     * 
          + * + * + * string machine_mgmt_ipv4_range = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * + * + * @param value The machineMgmtIpv4Range to set. + * @return This builder for chaining. + */ + public Builder setMachineMgmtIpv4Range(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + machineMgmtIpv4Range_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. An IPv4 address block for machine management.
          +     * Should be a private RFC1918 or public CIDR block large enough to allocate
          +     * at least one address per machine in the Zone.
          +     * Should be in `management_ipv4_subnet`, and disjoint with other address
          +     * ranges.
          +     * 
          + * + * + * string machine_mgmt_ipv4_range = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearMachineMgmtIpv4Range() { + machineMgmtIpv4Range_ = getDefaultInstance().getMachineMgmtIpv4Range(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. An IPv4 address block for machine management.
          +     * Should be a private RFC1918 or public CIDR block large enough to allocate
          +     * at least one address per machine in the Zone.
          +     * Should be in `management_ipv4_subnet`, and disjoint with other address
          +     * ranges.
          +     * 
          + * + * + * string machine_mgmt_ipv4_range = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for machineMgmtIpv4Range to set. + * @return This builder for chaining. + */ + public Builder setMachineMgmtIpv4RangeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + machineMgmtIpv4Range_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object kubernetesNodeIpv4Range_ = ""; + /** + * + * + *
          +     * Required. An IPv4 address block for kubernetes nodes.
          +     * Should be a private RFC1918 or public CIDR block large enough to allocate
          +     * at least one address per machine in the Zone.
          +     * Should be in `kubernetes_ipv4_subnet`, and disjoint with other address
          +     * ranges.
          +     * 
          + * + * + * string kubernetes_node_ipv4_range = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * + * + * @return The kubernetesNodeIpv4Range. + */ + public java.lang.String getKubernetesNodeIpv4Range() { + java.lang.Object ref = kubernetesNodeIpv4Range_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kubernetesNodeIpv4Range_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Required. An IPv4 address block for kubernetes nodes.
          +     * Should be a private RFC1918 or public CIDR block large enough to allocate
          +     * at least one address per machine in the Zone.
          +     * Should be in `kubernetes_ipv4_subnet`, and disjoint with other address
          +     * ranges.
          +     * 
          + * + * + * string kubernetes_node_ipv4_range = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * + * + * @return The bytes for kubernetesNodeIpv4Range. + */ + public com.google.protobuf.ByteString getKubernetesNodeIpv4RangeBytes() { + java.lang.Object ref = kubernetesNodeIpv4Range_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kubernetesNodeIpv4Range_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Required. An IPv4 address block for kubernetes nodes.
          +     * Should be a private RFC1918 or public CIDR block large enough to allocate
          +     * at least one address per machine in the Zone.
          +     * Should be in `kubernetes_ipv4_subnet`, and disjoint with other address
          +     * ranges.
          +     * 
          + * + * + * string kubernetes_node_ipv4_range = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * + * + * @param value The kubernetesNodeIpv4Range to set. + * @return This builder for chaining. + */ + public Builder setKubernetesNodeIpv4Range(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + kubernetesNodeIpv4Range_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. An IPv4 address block for kubernetes nodes.
          +     * Should be a private RFC1918 or public CIDR block large enough to allocate
          +     * at least one address per machine in the Zone.
          +     * Should be in `kubernetes_ipv4_subnet`, and disjoint with other address
          +     * ranges.
          +     * 
          + * + * + * string kubernetes_node_ipv4_range = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearKubernetesNodeIpv4Range() { + kubernetesNodeIpv4Range_ = getDefaultInstance().getKubernetesNodeIpv4Range(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. An IPv4 address block for kubernetes nodes.
          +     * Should be a private RFC1918 or public CIDR block large enough to allocate
          +     * at least one address per machine in the Zone.
          +     * Should be in `kubernetes_ipv4_subnet`, and disjoint with other address
          +     * ranges.
          +     * 
          + * + * + * string kubernetes_node_ipv4_range = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for kubernetesNodeIpv4Range to set. + * @return This builder for chaining. + */ + public Builder setKubernetesNodeIpv4RangeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kubernetesNodeIpv4Range_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object kubernetesControlPlaneIpv4Range_ = ""; + /** + * + * + *
          +     * Required. An IPv4 address block for kubernetes control plane.
          +     * Should be a private RFC1918 or public CIDR block large enough to allocate
          +     * at least one address per cluster in the Zone.
          +     * Should be in `kubernetes_ipv4_subnet`, and disjoint with other address
          +     * ranges.
          +     * 
          + * + * + * string kubernetes_control_plane_ipv4_range = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * + * + * @return The kubernetesControlPlaneIpv4Range. + */ + public java.lang.String getKubernetesControlPlaneIpv4Range() { + java.lang.Object ref = kubernetesControlPlaneIpv4Range_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kubernetesControlPlaneIpv4Range_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
          +     * Required. An IPv4 address block for kubernetes control plane.
          +     * Should be a private RFC1918 or public CIDR block large enough to allocate
          +     * at least one address per cluster in the Zone.
          +     * Should be in `kubernetes_ipv4_subnet`, and disjoint with other address
          +     * ranges.
          +     * 
          + * + * + * string kubernetes_control_plane_ipv4_range = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * + * + * @return The bytes for kubernetesControlPlaneIpv4Range. + */ + public com.google.protobuf.ByteString getKubernetesControlPlaneIpv4RangeBytes() { + java.lang.Object ref = kubernetesControlPlaneIpv4Range_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kubernetesControlPlaneIpv4Range_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
          +     * Required. An IPv4 address block for kubernetes control plane.
          +     * Should be a private RFC1918 or public CIDR block large enough to allocate
          +     * at least one address per cluster in the Zone.
          +     * Should be in `kubernetes_ipv4_subnet`, and disjoint with other address
          +     * ranges.
          +     * 
          + * + * + * string kubernetes_control_plane_ipv4_range = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * + * + * @param value The kubernetesControlPlaneIpv4Range to set. + * @return This builder for chaining. + */ + public Builder setKubernetesControlPlaneIpv4Range(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + kubernetesControlPlaneIpv4Range_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. An IPv4 address block for kubernetes control plane.
          +     * Should be a private RFC1918 or public CIDR block large enough to allocate
          +     * at least one address per cluster in the Zone.
          +     * Should be in `kubernetes_ipv4_subnet`, and disjoint with other address
          +     * ranges.
          +     * 
          + * + * + * string kubernetes_control_plane_ipv4_range = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearKubernetesControlPlaneIpv4Range() { + kubernetesControlPlaneIpv4Range_ = getDefaultInstance().getKubernetesControlPlaneIpv4Range(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. An IPv4 address block for kubernetes control plane.
          +     * Should be a private RFC1918 or public CIDR block large enough to allocate
          +     * at least one address per cluster in the Zone.
          +     * Should be in `kubernetes_ipv4_subnet`, and disjoint with other address
          +     * ranges.
          +     * 
          + * + * + * string kubernetes_control_plane_ipv4_range = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for kubernetesControlPlaneIpv4Range to set. + * @return This builder for chaining. + */ + public Builder setKubernetesControlPlaneIpv4RangeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kubernetesControlPlaneIpv4Range_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.cloud.gdchardwaremanagement.v1alpha.Subnet managementIpv4Subnet_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Subnet, + com.google.cloud.gdchardwaremanagement.v1alpha.Subnet.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.SubnetOrBuilder> + managementIpv4SubnetBuilder_; + /** + * + * + *
          +     * Required. An IPv4 subnet for the management network.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Subnet management_ipv4_subnet = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the managementIpv4Subnet field is set. + */ + public boolean hasManagementIpv4Subnet() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
          +     * Required. An IPv4 subnet for the management network.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Subnet management_ipv4_subnet = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The managementIpv4Subnet. + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Subnet getManagementIpv4Subnet() { + if (managementIpv4SubnetBuilder_ == null) { + return managementIpv4Subnet_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Subnet.getDefaultInstance() + : managementIpv4Subnet_; + } else { + return managementIpv4SubnetBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Required. An IPv4 subnet for the management network.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Subnet management_ipv4_subnet = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setManagementIpv4Subnet( + com.google.cloud.gdchardwaremanagement.v1alpha.Subnet value) { + if (managementIpv4SubnetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + managementIpv4Subnet_ = value; + } else { + managementIpv4SubnetBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. An IPv4 subnet for the management network.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Subnet management_ipv4_subnet = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setManagementIpv4Subnet( + com.google.cloud.gdchardwaremanagement.v1alpha.Subnet.Builder builderForValue) { + if (managementIpv4SubnetBuilder_ == null) { + managementIpv4Subnet_ = builderForValue.build(); + } else { + managementIpv4SubnetBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. An IPv4 subnet for the management network.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Subnet management_ipv4_subnet = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeManagementIpv4Subnet( + com.google.cloud.gdchardwaremanagement.v1alpha.Subnet value) { + if (managementIpv4SubnetBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && managementIpv4Subnet_ != null + && managementIpv4Subnet_ + != com.google.cloud.gdchardwaremanagement.v1alpha.Subnet.getDefaultInstance()) { + getManagementIpv4SubnetBuilder().mergeFrom(value); + } else { + managementIpv4Subnet_ = value; + } + } else { + managementIpv4SubnetBuilder_.mergeFrom(value); + } + if (managementIpv4Subnet_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Required. An IPv4 subnet for the management network.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Subnet management_ipv4_subnet = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearManagementIpv4Subnet() { + bitField0_ = (bitField0_ & ~0x00000008); + managementIpv4Subnet_ = null; + if (managementIpv4SubnetBuilder_ != null) { + managementIpv4SubnetBuilder_.dispose(); + managementIpv4SubnetBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Required. An IPv4 subnet for the management network.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Subnet management_ipv4_subnet = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Subnet.Builder + getManagementIpv4SubnetBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getManagementIpv4SubnetFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Required. An IPv4 subnet for the management network.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Subnet management_ipv4_subnet = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.SubnetOrBuilder + getManagementIpv4SubnetOrBuilder() { + if (managementIpv4SubnetBuilder_ != null) { + return managementIpv4SubnetBuilder_.getMessageOrBuilder(); + } else { + return managementIpv4Subnet_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Subnet.getDefaultInstance() + : managementIpv4Subnet_; + } + } + /** + * + * + *
          +     * Required. An IPv4 subnet for the management network.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Subnet management_ipv4_subnet = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Subnet, + com.google.cloud.gdchardwaremanagement.v1alpha.Subnet.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.SubnetOrBuilder> + getManagementIpv4SubnetFieldBuilder() { + if (managementIpv4SubnetBuilder_ == null) { + managementIpv4SubnetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Subnet, + com.google.cloud.gdchardwaremanagement.v1alpha.Subnet.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.SubnetOrBuilder>( + getManagementIpv4Subnet(), getParentForChildren(), isClean()); + managementIpv4Subnet_ = null; + } + return managementIpv4SubnetBuilder_; + } + + private com.google.cloud.gdchardwaremanagement.v1alpha.Subnet kubernetesIpv4Subnet_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Subnet, + com.google.cloud.gdchardwaremanagement.v1alpha.Subnet.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.SubnetOrBuilder> + kubernetesIpv4SubnetBuilder_; + /** + * + * + *
          +     * Optional. An IPv4 subnet for the kubernetes network.
          +     * If unspecified, the kubernetes subnet will be the same as the management
          +     * subnet.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Subnet kubernetes_ipv4_subnet = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the kubernetesIpv4Subnet field is set. + */ + public boolean hasKubernetesIpv4Subnet() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
          +     * Optional. An IPv4 subnet for the kubernetes network.
          +     * If unspecified, the kubernetes subnet will be the same as the management
          +     * subnet.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Subnet kubernetes_ipv4_subnet = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The kubernetesIpv4Subnet. + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Subnet getKubernetesIpv4Subnet() { + if (kubernetesIpv4SubnetBuilder_ == null) { + return kubernetesIpv4Subnet_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Subnet.getDefaultInstance() + : kubernetesIpv4Subnet_; + } else { + return kubernetesIpv4SubnetBuilder_.getMessage(); + } + } + /** + * + * + *
          +     * Optional. An IPv4 subnet for the kubernetes network.
          +     * If unspecified, the kubernetes subnet will be the same as the management
          +     * subnet.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Subnet kubernetes_ipv4_subnet = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setKubernetesIpv4Subnet( + com.google.cloud.gdchardwaremanagement.v1alpha.Subnet value) { + if (kubernetesIpv4SubnetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kubernetesIpv4Subnet_ = value; + } else { + kubernetesIpv4SubnetBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. An IPv4 subnet for the kubernetes network.
          +     * If unspecified, the kubernetes subnet will be the same as the management
          +     * subnet.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Subnet kubernetes_ipv4_subnet = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setKubernetesIpv4Subnet( + com.google.cloud.gdchardwaremanagement.v1alpha.Subnet.Builder builderForValue) { + if (kubernetesIpv4SubnetBuilder_ == null) { + kubernetesIpv4Subnet_ = builderForValue.build(); + } else { + kubernetesIpv4SubnetBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. An IPv4 subnet for the kubernetes network.
          +     * If unspecified, the kubernetes subnet will be the same as the management
          +     * subnet.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Subnet kubernetes_ipv4_subnet = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeKubernetesIpv4Subnet( + com.google.cloud.gdchardwaremanagement.v1alpha.Subnet value) { + if (kubernetesIpv4SubnetBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && kubernetesIpv4Subnet_ != null + && kubernetesIpv4Subnet_ + != com.google.cloud.gdchardwaremanagement.v1alpha.Subnet.getDefaultInstance()) { + getKubernetesIpv4SubnetBuilder().mergeFrom(value); + } else { + kubernetesIpv4Subnet_ = value; + } + } else { + kubernetesIpv4SubnetBuilder_.mergeFrom(value); + } + if (kubernetesIpv4Subnet_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
          +     * Optional. An IPv4 subnet for the kubernetes network.
          +     * If unspecified, the kubernetes subnet will be the same as the management
          +     * subnet.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Subnet kubernetes_ipv4_subnet = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearKubernetesIpv4Subnet() { + bitField0_ = (bitField0_ & ~0x00000010); + kubernetesIpv4Subnet_ = null; + if (kubernetesIpv4SubnetBuilder_ != null) { + kubernetesIpv4SubnetBuilder_.dispose(); + kubernetesIpv4SubnetBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
          +     * Optional. An IPv4 subnet for the kubernetes network.
          +     * If unspecified, the kubernetes subnet will be the same as the management
          +     * subnet.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Subnet kubernetes_ipv4_subnet = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.Subnet.Builder + getKubernetesIpv4SubnetBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getKubernetesIpv4SubnetFieldBuilder().getBuilder(); + } + /** + * + * + *
          +     * Optional. An IPv4 subnet for the kubernetes network.
          +     * If unspecified, the kubernetes subnet will be the same as the management
          +     * subnet.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Subnet kubernetes_ipv4_subnet = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gdchardwaremanagement.v1alpha.SubnetOrBuilder + getKubernetesIpv4SubnetOrBuilder() { + if (kubernetesIpv4SubnetBuilder_ != null) { + return kubernetesIpv4SubnetBuilder_.getMessageOrBuilder(); + } else { + return kubernetesIpv4Subnet_ == null + ? com.google.cloud.gdchardwaremanagement.v1alpha.Subnet.getDefaultInstance() + : kubernetesIpv4Subnet_; + } + } + /** + * + * + *
          +     * Optional. An IPv4 subnet for the kubernetes network.
          +     * If unspecified, the kubernetes subnet will be the same as the management
          +     * subnet.
          +     * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Subnet kubernetes_ipv4_subnet = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Subnet, + com.google.cloud.gdchardwaremanagement.v1alpha.Subnet.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.SubnetOrBuilder> + getKubernetesIpv4SubnetFieldBuilder() { + if (kubernetesIpv4SubnetBuilder_ == null) { + kubernetesIpv4SubnetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gdchardwaremanagement.v1alpha.Subnet, + com.google.cloud.gdchardwaremanagement.v1alpha.Subnet.Builder, + com.google.cloud.gdchardwaremanagement.v1alpha.SubnetOrBuilder>( + getKubernetesIpv4Subnet(), getParentForChildren(), isClean()); + kubernetesIpv4Subnet_ = null; + } + return kubernetesIpv4SubnetBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig) + private static final com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig(); + } + + public static com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ZoneNetworkConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ZoneNetworkConfigOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ZoneNetworkConfigOrBuilder.java new file mode 100644 index 000000000000..788916f4d7f8 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ZoneNetworkConfigOrBuilder.java @@ -0,0 +1,225 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface ZoneNetworkConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Required. An IPv4 address block for machine management.
          +   * Should be a private RFC1918 or public CIDR block large enough to allocate
          +   * at least one address per machine in the Zone.
          +   * Should be in `management_ipv4_subnet`, and disjoint with other address
          +   * ranges.
          +   * 
          + * + * + * string machine_mgmt_ipv4_range = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * + * + * @return The machineMgmtIpv4Range. + */ + java.lang.String getMachineMgmtIpv4Range(); + /** + * + * + *
          +   * Required. An IPv4 address block for machine management.
          +   * Should be a private RFC1918 or public CIDR block large enough to allocate
          +   * at least one address per machine in the Zone.
          +   * Should be in `management_ipv4_subnet`, and disjoint with other address
          +   * ranges.
          +   * 
          + * + * + * string machine_mgmt_ipv4_range = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * + * + * @return The bytes for machineMgmtIpv4Range. + */ + com.google.protobuf.ByteString getMachineMgmtIpv4RangeBytes(); + + /** + * + * + *
          +   * Required. An IPv4 address block for kubernetes nodes.
          +   * Should be a private RFC1918 or public CIDR block large enough to allocate
          +   * at least one address per machine in the Zone.
          +   * Should be in `kubernetes_ipv4_subnet`, and disjoint with other address
          +   * ranges.
          +   * 
          + * + * + * string kubernetes_node_ipv4_range = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * + * + * @return The kubernetesNodeIpv4Range. + */ + java.lang.String getKubernetesNodeIpv4Range(); + /** + * + * + *
          +   * Required. An IPv4 address block for kubernetes nodes.
          +   * Should be a private RFC1918 or public CIDR block large enough to allocate
          +   * at least one address per machine in the Zone.
          +   * Should be in `kubernetes_ipv4_subnet`, and disjoint with other address
          +   * ranges.
          +   * 
          + * + * + * string kubernetes_node_ipv4_range = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * + * + * @return The bytes for kubernetesNodeIpv4Range. + */ + com.google.protobuf.ByteString getKubernetesNodeIpv4RangeBytes(); + + /** + * + * + *
          +   * Required. An IPv4 address block for kubernetes control plane.
          +   * Should be a private RFC1918 or public CIDR block large enough to allocate
          +   * at least one address per cluster in the Zone.
          +   * Should be in `kubernetes_ipv4_subnet`, and disjoint with other address
          +   * ranges.
          +   * 
          + * + * + * string kubernetes_control_plane_ipv4_range = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * + * + * @return The kubernetesControlPlaneIpv4Range. + */ + java.lang.String getKubernetesControlPlaneIpv4Range(); + /** + * + * + *
          +   * Required. An IPv4 address block for kubernetes control plane.
          +   * Should be a private RFC1918 or public CIDR block large enough to allocate
          +   * at least one address per cluster in the Zone.
          +   * Should be in `kubernetes_ipv4_subnet`, and disjoint with other address
          +   * ranges.
          +   * 
          + * + * + * string kubernetes_control_plane_ipv4_range = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... } + * + * + * @return The bytes for kubernetesControlPlaneIpv4Range. + */ + com.google.protobuf.ByteString getKubernetesControlPlaneIpv4RangeBytes(); + + /** + * + * + *
          +   * Required. An IPv4 subnet for the management network.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Subnet management_ipv4_subnet = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the managementIpv4Subnet field is set. + */ + boolean hasManagementIpv4Subnet(); + /** + * + * + *
          +   * Required. An IPv4 subnet for the management network.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Subnet management_ipv4_subnet = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The managementIpv4Subnet. + */ + com.google.cloud.gdchardwaremanagement.v1alpha.Subnet getManagementIpv4Subnet(); + /** + * + * + *
          +   * Required. An IPv4 subnet for the management network.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Subnet management_ipv4_subnet = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gdchardwaremanagement.v1alpha.SubnetOrBuilder getManagementIpv4SubnetOrBuilder(); + + /** + * + * + *
          +   * Optional. An IPv4 subnet for the kubernetes network.
          +   * If unspecified, the kubernetes subnet will be the same as the management
          +   * subnet.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Subnet kubernetes_ipv4_subnet = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the kubernetesIpv4Subnet field is set. + */ + boolean hasKubernetesIpv4Subnet(); + /** + * + * + *
          +   * Optional. An IPv4 subnet for the kubernetes network.
          +   * If unspecified, the kubernetes subnet will be the same as the management
          +   * subnet.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Subnet kubernetes_ipv4_subnet = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The kubernetesIpv4Subnet. + */ + com.google.cloud.gdchardwaremanagement.v1alpha.Subnet getKubernetesIpv4Subnet(); + /** + * + * + *
          +   * Optional. An IPv4 subnet for the kubernetes network.
          +   * If unspecified, the kubernetes subnet will be the same as the management
          +   * subnet.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Subnet kubernetes_ipv4_subnet = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.gdchardwaremanagement.v1alpha.SubnetOrBuilder getKubernetesIpv4SubnetOrBuilder(); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ZoneOrBuilder.java b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ZoneOrBuilder.java new file mode 100644 index 000000000000..b0ddf2fd5e49 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/ZoneOrBuilder.java @@ -0,0 +1,407 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gdchardwaremanagement/v1alpha/resources.proto + +// Protobuf Java Version: 3.25.3 +package com.google.cloud.gdchardwaremanagement.v1alpha; + +public interface ZoneOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gdchardwaremanagement.v1alpha.Zone) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
          +   * Identifier. Name of this zone.
          +   * Format: `projects/{project}/locations/{location}/zones/{zone}`
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
          +   * Identifier. Name of this zone.
          +   * Format: `projects/{project}/locations/{location}/zones/{zone}`
          +   * 
          + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
          +   * Output only. Time when this zone was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
          +   * Output only. Time when this zone was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
          +   * Output only. Time when this zone was created.
          +   * 
          + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
          +   * Output only. Time when this zone was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
          +   * Output only. Time when this zone was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
          +   * Output only. Time when this zone was last updated.
          +   * 
          + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
          +   * Optional. Labels associated with this zone as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + /** + * + * + *
          +   * Optional. Labels associated with this zone as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + /** + * + * + *
          +   * Optional. Labels associated with this zone as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
          +   * Optional. Labels associated with this zone as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
          +   * Optional. Labels associated with this zone as key value pairs.
          +   * For more information about labels, see [Create and manage
          +   * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
          +   * 
          + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
          +   * Optional. Human friendly display name of this zone.
          +   * 
          + * + * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
          +   * Optional. Human friendly display name of this zone.
          +   * 
          + * + * string display_name = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
          +   * Output only. Current state for this zone.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Zone.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
          +   * Output only. Current state for this zone.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.Zone.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.gdchardwaremanagement.v1alpha.Zone.State getState(); + + /** + * + * + *
          +   * Required. The points of contact.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getContactsList(); + /** + * + * + *
          +   * Required. The points of contact.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gdchardwaremanagement.v1alpha.Contact getContacts(int index); + /** + * + * + *
          +   * Required. The points of contact.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getContactsCount(); + /** + * + * + *
          +   * Required. The points of contact.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getContactsOrBuilderList(); + /** + * + * + *
          +   * Required. The points of contact.
          +   * 
          + * + * + * repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 9 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.gdchardwaremanagement.v1alpha.ContactOrBuilder getContactsOrBuilder(int index); + + /** + * + * + *
          +   * Output only. Link to the Customer Intake Questionnaire (CIQ) sheet for this
          +   * zone.
          +   * 
          + * + * string ciq_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ciqUri. + */ + java.lang.String getCiqUri(); + /** + * + * + *
          +   * Output only. Link to the Customer Intake Questionnaire (CIQ) sheet for this
          +   * zone.
          +   * 
          + * + * string ciq_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for ciqUri. + */ + com.google.protobuf.ByteString getCiqUriBytes(); + + /** + * + * + *
          +   * Optional. Networking configuration for this zone.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig network_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the networkConfig field is set. + */ + boolean hasNetworkConfig(); + /** + * + * + *
          +   * Optional. Networking configuration for this zone.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig network_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The networkConfig. + */ + com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig getNetworkConfig(); + /** + * + * + *
          +   * Optional. Networking configuration for this zone.
          +   * 
          + * + * + * .google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfig network_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.gdchardwaremanagement.v1alpha.ZoneNetworkConfigOrBuilder + getNetworkConfigOrBuilder(); + + /** + * + * + *
          +   * Output only. Globally unique identifier generated for this Edge Zone.
          +   * 
          + * + * string globally_unique_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The globallyUniqueId. + */ + java.lang.String getGloballyUniqueId(); + /** + * + * + *
          +   * Output only. Globally unique identifier generated for this Edge Zone.
          +   * 
          + * + * string globally_unique_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for globallyUniqueId. + */ + com.google.protobuf.ByteString getGloballyUniqueIdBytes(); +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/proto/google/cloud/gdchardwaremanagement/v1alpha/resources.proto b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/proto/google/cloud/gdchardwaremanagement/v1alpha/resources.proto new file mode 100644 index 000000000000..86ff44fea196 --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/proto/google/cloud/gdchardwaremanagement/v1alpha/resources.proto @@ -0,0 +1,944 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.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. + +syntax = "proto3"; + +package google.cloud.gdchardwaremanagement.v1alpha; + +import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; +import "google/type/date.proto"; +import "google/type/datetime.proto"; +import "google/type/dayofweek.proto"; +import "google/type/postal_address.proto"; +import "google/type/timeofday.proto"; + +option csharp_namespace = "Google.Cloud.GdcHardwareManagement.V1Alpha"; +option go_package = "cloud.google.com/go/gdchardwaremanagement/apiv1alpha/gdchardwaremanagementpb;gdchardwaremanagementpb"; +option java_multiple_files = true; +option java_outer_classname = "ResourcesProto"; +option java_package = "com.google.cloud.gdchardwaremanagement.v1alpha"; +option php_namespace = "Google\\Cloud\\GdcHardwareManagement\\V1alpha"; +option ruby_package = "Google::Cloud::GDCHardwareManagement::V1alpha"; + +// The power supply options. +enum PowerSupply { + // Power supply is unspecified. + POWER_SUPPLY_UNSPECIFIED = 0; + + // AC power supply. + POWER_SUPPLY_AC = 1; + + // DC power supply. + POWER_SUPPLY_DC = 2; +} + +// An order for GDC hardware. +message Order { + option (google.api.resource) = { + type: "gdchardwaremanagement.googleapis.com/Order" + pattern: "projects/{project}/locations/{location}/orders/{order}" + plural: "orders" + singular: "order" + }; + + // Valid states of an order. + enum State { + // State of the order is unspecified. + STATE_UNSPECIFIED = 0; + + // Order is being drafted by the customer and has not been submitted yet. + DRAFT = 1; + + // Order has been submitted to Google. + SUBMITTED = 2; + + // Order has been accepted by Google. + ACCEPTED = 3; + + // Order needs more information from the customer. + ADDITIONAL_INFO_NEEDED = 4; + + // Google has initiated building hardware for the order. + BUILDING = 5; + + // The hardware has been built and is being shipped. + SHIPPING = 6; + + // The hardware is being installed. + INSTALLING = 7; + + // An error occurred in processing the order and customer intervention is + // required. + FAILED = 8; + + // Order has been partially completed i.e., some hardware have been + // delivered and installed. + PARTIALLY_COMPLETED = 9; + + // Order has been completed. + COMPLETED = 10; + + // Order has been cancelled. + CANCELLED = 11; + } + + // Valid types of an Order. + enum Type { + // Type of the order is unspecified. + TYPE_UNSPECIFIED = 0; + + // Paid by the customer. + PAID = 1; + + // Proof of concept for the customer. + POC = 2; + } + + // Identifier. Name of this order. + // Format: `projects/{project}/locations/{location}/orders/{order}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Optional. Display name of this order. + string display_name = 13 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Time when this order was created. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when this order was last updated. + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Labels associated with this order as key value pairs. + // For more information about labels, see [Create and manage + // labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels). + map labels = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. State of this order. On order creation, state will be set to + // DRAFT. + State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Customer contact information. + OrganizationContact organization_contact = 6 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. Customer specified workloads of interest targeted by this order. + // This must contain <= 20 elements and the length of each element must be <= + // 50 characters. + repeated string target_workloads = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Information about the customer's motivation for this order. The + // length of this field must be <= 1000 characters. + string customer_motivation = 8 [(google.api.field_behavior) = REQUIRED]; + + // Required. Customer specified deadline by when this order should be + // fulfilled. + google.protobuf.Timestamp fulfillment_time = 9 + [(google.api.field_behavior) = REQUIRED]; + + // Required. [Unicode CLDR](http://cldr.unicode.org/) region code where this + // order will be deployed. For a list of valid CLDR region codes, see the + // [Language Subtag + // Registry](https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry). + string region_code = 10 [(google.api.field_behavior) = REQUIRED]; + + // Output only. Link to the order form. + string order_form_uri = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Type of this Order. + Type type = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the order was submitted. Is auto-populated to the + // current time when an order is submitted. + google.protobuf.Timestamp submit_time = 14 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The Google Cloud Billing ID to be charged for this order. + string billing_id = 15 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Existing hardware to be removed as part of this order. + // Note: any hardware removed will be recycled unless otherwise agreed. + repeated HardwareLocation existing_hardware = 16 + [(google.api.field_behavior) = OPTIONAL]; +} + +// A physical site where hardware will be installed. +message Site { + option (google.api.resource) = { + type: "gdchardwaremanagement.googleapis.com/Site" + pattern: "projects/{project}/locations/{location}/sites/{site}" + plural: "sites" + singular: "site" + }; + + // Identifier. Name of the site. + // Format: `projects/{project}/locations/{location}/sites/{site}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Optional. Display name of this Site. + string display_name = 24 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Description of this Site. + string description = 25 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Time when this site was created. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when this site was last updated. + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Labels associated with this site as key value pairs. + // For more information about labels, see [Create and manage + // labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels). + map labels = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Contact information for this site. + OrganizationContact organization_contact = 5 + [(google.api.field_behavior) = REQUIRED]; + + // Required. A URL to the Google Maps address location of the site. + // An example value is `https://goo.gl/maps/xxxxxxxxx`. + string google_maps_pin_uri = 6 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The time periods when the site is accessible. + // If this field is empty, the site is accessible at all times. + repeated TimePeriod access_times = 26 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Any additional notes for this Site. Please include information + // about: + // - security or access restrictions + // - any regulations affecting the technicians visiting the site + // - any special process or approval required to move the equipment + // - whether a representative will be available during site visits + string notes = 27 [(google.api.field_behavior) = OPTIONAL]; +} + +// A group of hardware that is part of the same order, has the same SKU, and is +// delivered to the same site. +message HardwareGroup { + option (google.api.resource) = { + type: "gdchardwaremanagement.googleapis.com/HardwareGroup" + pattern: "projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}" + plural: "hardwareGroups" + singular: "hardwareGroup" + }; + + // Valid states of a HardwareGroup. + enum State { + // State of the HardwareGroup is unspecified. + STATE_UNSPECIFIED = 0; + + // More information is required from the customer to make progress. + ADDITIONAL_INFO_NEEDED = 1; + + // Google has initiated building hardware for this HardwareGroup. + BUILDING = 2; + + // The hardware has been built and is being shipped. + SHIPPING = 3; + + // The hardware is being installed. + INSTALLING = 4; + + // Some hardware in the HardwareGroup have been installed. + PARTIALLY_INSTALLED = 5; + + // All hardware in the HardwareGroup have been installed. + INSTALLED = 6; + + // An error occurred and customer intervention is required. + FAILED = 7; + } + + // Identifier. Name of this hardware group. + // Format: + // `projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. Time when this hardware group was created. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when this hardware group was last updated. + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Labels associated with this hardware group as key value pairs. + // For more information about labels, see [Create and manage + // labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels). + map labels = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Number of hardware in this HardwareGroup. + int32 hardware_count = 5 [(google.api.field_behavior) = REQUIRED]; + + // Required. Configuration for hardware in this HardwareGroup. + HardwareConfig config = 6 [(google.api.field_behavior) = REQUIRED]; + + // Required. Name of the site where the hardware in this HardwareGroup will be + // delivered. + // Format: `projects/{project}/locations/{location}/sites/{site}` + string site = 7 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gdchardwaremanagement.googleapis.com/Site" + } + ]; + + // Output only. Current state of this HardwareGroup. + State state = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Name of the zone that the hardware in this HardwareGroup belongs + // to. Format: `projects/{project}/locations/{location}/zones/{zone}` + string zone = 9 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "gdchardwaremanagement.googleapis.com/Zone" + } + ]; + + // Optional. Requested installation date for the hardware in this + // HardwareGroup. Filled in by the customer. + google.type.Date requested_installation_date = 10 + [(google.api.field_behavior) = OPTIONAL]; +} + +// An instance of hardware installed at a site. +message Hardware { + option (google.api.resource) = { + type: "gdchardwaremanagement.googleapis.com/Hardware" + pattern: "projects/{project}/locations/{location}/hardware/{hardware}" + plural: "hardware" + singular: "hardware" + }; + + // Valid states for hardware. + enum State { + // State of the Hardware is unspecified. + STATE_UNSPECIFIED = 0; + + // More information is required from the customer to make progress. + ADDITIONAL_INFO_NEEDED = 1; + + // Google has initiated building hardware for this Hardware. + BUILDING = 2; + + // The hardware has been built and is being shipped. + SHIPPING = 3; + + // The hardware is being installed. + INSTALLING = 4; + + // The hardware has been installed. + INSTALLED = 5; + + // An error occurred and customer intervention is required. + FAILED = 6; + } + + // Identifier. Name of this hardware. + // Format: `projects/{project}/locations/{location}/hardware/{hardware}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Optional. Display name for this hardware. + string display_name = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Time when this hardware was created. + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when this hardware was last updated. + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Labels associated with this hardware as key value pairs. + // For more information about labels, see [Create and manage + // labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels). + map labels = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Name of the order that this hardware belongs to. + // Format: `projects/{project}/locations/{location}/orders/{order}` + string order = 6 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gdchardwaremanagement.googleapis.com/Order" + } + ]; + + // Output only. Name for the hardware group that this hardware belongs to. + // Format: + // `projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}` + string hardware_group = 7 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "gdchardwaremanagement.googleapis.com/HardwareGroup" + } + ]; + + // Required. Name for the site that this hardware belongs to. + // Format: `projects/{project}/locations/{location}/sites/{site}` + string site = 8 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gdchardwaremanagement.googleapis.com/Site" + } + ]; + + // Output only. Current state for this hardware. + State state = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Link to the Customer Intake Questionnaire (CIQ) sheet for this + // Hardware. + string ciq_uri = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Configuration for this hardware. + HardwareConfig config = 11 [(google.api.field_behavior) = REQUIRED]; + + // Output only. Estimated installation date for this hardware. + google.type.Date estimated_installation_date = 12 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Physical properties of this hardware. + HardwarePhysicalInfo physical_info = 13 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Information for installation of this hardware. + HardwareInstallationInfo installation_info = 14 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. Name for the zone that this hardware belongs to. + // Format: `projects/{project}/locations/{location}/zones/{zone}` + string zone = 15 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gdchardwaremanagement.googleapis.com/Zone" + } + ]; + + // Optional. Requested installation date for this hardware. This is + // auto-populated when the order is accepted, if the hardware's HardwareGroup + // specifies this. It can also be filled in by the customer. + google.type.Date requested_installation_date = 16 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Actual installation date for this hardware. Filled in by + // Google. + google.type.Date actual_installation_date = 17 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// A comment on an order. +message Comment { + option (google.api.resource) = { + type: "gdchardwaremanagement.googleapis.com/Comment" + pattern: "projects/{project}/locations/{location}/orders/{order}/comments/{comment}" + plural: "comments" + singular: "comment" + }; + + // Identifier. Name of this comment. + // Format: + // `projects/{project}/locations/{location}/orders/{order}/comments/{comment}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. Time when this comment was created. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Labels associated with this comment as key value pairs. + // For more information about labels, see [Create and manage + // labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels). + map labels = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Username of the author of this comment. This is auto-populated + // from the credentials used during creation of the comment. + string author = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Text of this comment. The length of text must be <= 1000 + // characters. + string text = 5 [(google.api.field_behavior) = REQUIRED]; +} + +// A log entry of a change made to an order. +message ChangeLogEntry { + option (google.api.resource) = { + type: "gdchardwaremanagement.googleapis.com/ChangeLogEntry" + pattern: "projects/{project}/locations/{location}/orders/{order}/changeLogEntries/{change_log_entry}" + plural: "changeLogEntries" + singular: "changeLogEntry" + }; + + // Identifier. Name of this change log entry. + // Format: + // `projects/{project}/locations/{location}/orders/{order}/changeLogEntries/{change_log_entry}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. Time when this change log entry was created. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Labels associated with this change log entry as key value pairs. + // For more information about labels, see [Create and manage + // labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels). + map labels = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Content of this log entry. + string log = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// A stock keeping unit (SKU) of GDC hardware. +message Sku { + option (google.api.resource) = { + type: "gdchardwaremanagement.googleapis.com/Sku" + pattern: "projects/{project}/locations/{location}/skus/{sku}" + plural: "skus" + singular: "sku" + }; + + // Valid types of a SKU. + enum Type { + // Type of the SKU is unspecified. This is not an allowed value. + TYPE_UNSPECIFIED = 0; + + // Rack SKU. + RACK = 1; + + // Server SKU. + SERVER = 2; + } + + // Identifier. Name of this SKU. + // Format: `projects/{project}/locations/{location}/skus/{sku}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. Display name of this SKU. + string display_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when this SKU was created. + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when this SKU was last updated. + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Configuration for this SKU. + SkuConfig config = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Available instances of this SKU. This field should be used for + // checking availability of a SKU. + repeated SkuInstance instances = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Description of this SKU. + string description = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The SKU revision ID. + // A new revision is created whenever `config` is updated. The format is an + // 8-character hexadecimal string. + string revision_id = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Flag to indicate whether or not this revision is active. Only + // an active revision can be used in a new Order. + bool is_active = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Type of this SKU. + Type type = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The vCPU count associated with this SKU. + int32 vcpu_count = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// A zone holding a set of hardware. +message Zone { + option (google.api.resource) = { + type: "gdchardwaremanagement.googleapis.com/Zone" + pattern: "projects/{project}/locations/{location}/zones/{zone}" + plural: "zones" + singular: "zone" + }; + + // Valid states for a zone. + enum State { + // State of the Zone is unspecified. + STATE_UNSPECIFIED = 0; + + // More information is required from the customer to make progress. + ADDITIONAL_INFO_NEEDED = 1; + + // Google is preparing the Zone. + PREPARING = 2; + + // Factory turnup has succeeded. + READY_FOR_CUSTOMER_FACTORY_TURNUP_CHECKS = 5; + + // The Zone is ready for site turnup. + READY_FOR_SITE_TURNUP = 6; + + // The Zone failed in factory turnup checks. + CUSTOMER_FACTORY_TURNUP_CHECKS_FAILED = 7; + + // The Zone is available to use. + ACTIVE = 3; + + // The Zone has been cancelled. + CANCELLED = 4; + } + + // Identifier. Name of this zone. + // Format: `projects/{project}/locations/{location}/zones/{zone}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. Time when this zone was created. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when this zone was last updated. + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Labels associated with this zone as key value pairs. + // For more information about labels, see [Create and manage + // labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels). + map labels = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Human friendly display name of this zone. + string display_name = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Current state for this zone. + State state = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The points of contact. + repeated Contact contacts = 9 [(google.api.field_behavior) = REQUIRED]; + + // Output only. Link to the Customer Intake Questionnaire (CIQ) sheet for this + // zone. + string ciq_uri = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Networking configuration for this zone. + ZoneNetworkConfig network_config = 11 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Globally unique identifier generated for this Edge Zone. + string globally_unique_id = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Contact information of the customer organization. +message OrganizationContact { + // Required. The organization's address. + google.type.PostalAddress address = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. The organization's email. + string email = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The organization's phone number. + string phone = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The individual points of contact in the organization at this + // location. + repeated Contact contacts = 4 [(google.api.field_behavior) = REQUIRED]; +} + +// Contact details of a point of contact. +message Contact { + // Required. Given name of the contact. + string given_name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Family name of the contact. + string family_name = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Email of the contact. + string email = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. Phone number of the contact. + string phone = 4 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Time zone of the contact. + google.type.TimeZone time_zone = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The time periods when the contact is reachable. + // If this field is empty, the contact is reachable at all times. + repeated TimePeriod reachable_times = 6 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Configuration for GDC hardware. +message HardwareConfig { + // Required. Reference to the SKU for this hardware. This can point to a + // specific SKU revision in the form of `resource_name@revision_id` as defined + // in [AIP-162](https://google.aip.dev/162). If no revision_id is specified, + // it refers to the latest revision. + string sku = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gdchardwaremanagement.googleapis.com/Sku" + } + ]; + + // Required. Power supply type for this hardware. + PowerSupply power_supply = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Subscription duration for the hardware in months. + int32 subscription_duration_months = 3 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Configuration for a SKU. +message SkuConfig { + // Information about CPU configuration. + string cpu = 1; + + // Information about GPU configuration. + string gpu = 2; + + // Information about RAM configuration. + string ram = 3; + + // Information about storage configuration. + string storage = 4; +} + +// A specific instance of the SKU. +message SkuInstance { + // The [Unicode CLDR](https://cldr.unicode.org) region code where this + // instance is available. + string region_code = 1; + + // Power supply type for this instance. + PowerSupply power_supply = 2; + + // Reference to the corresponding SKU in the Cloud Billing API. + // The estimated price information can be retrieved using that API. + // Format: `services/{service}/skus/{sku}` + string billing_sku = 3; + + // Reference to the corresponding SKU per vCPU in the Cloud Billing API. + // The estimated price information can be retrieved using that API. + // Format: `services/{service}/skus/{sku}` + string billing_sku_per_vcpu = 4; + + // Subscription duration for the hardware in months. + int32 subscription_duration_months = 5; +} + +// Physical properties of a hardware. +message HardwarePhysicalInfo { + // Valid power receptacle types. + enum PowerReceptacleType { + // Facility plug type is unspecified. + POWER_RECEPTACLE_TYPE_UNSPECIFIED = 0; + + // NEMA 5-15. + NEMA_5_15 = 1; + + // C13. + C_13 = 2; + + // Standard european receptacle. + STANDARD_EU = 3; + } + + // Valid network uplink types. + enum NetworkUplinkType { + // Network uplink type is unspecified. + NETWORK_UPLINK_TYPE_UNSPECIFIED = 0; + + // RJ-45. + RJ_45 = 1; + } + + // Valid voltage values. + enum Voltage { + // Voltage is unspecified. + VOLTAGE_UNSPECIFIED = 0; + + // 120V. + VOLTAGE_110 = 1; + + // 220V. + VOLTAGE_220 = 3; + } + + // Valid amperes values. + enum Amperes { + // Amperes is unspecified. + AMPERES_UNSPECIFIED = 0; + + // 15A. + AMPERES_15 = 1; + } + + // Required. The power receptacle type. + PowerReceptacleType power_receptacle = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Type of the uplink network connection. + NetworkUplinkType network_uplink = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Voltage of the power supply. + Voltage voltage = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. Amperes of the power supply. + Amperes amperes = 4 [(google.api.field_behavior) = REQUIRED]; +} + +// Information for installation of a Hardware. +message HardwareInstallationInfo { + // Valid rack types. + enum RackType { + // Rack type is unspecified. + RACK_TYPE_UNSPECIFIED = 0; + + // Two post rack. + TWO_POST = 1; + + // Four post rack. + FOUR_POST = 2; + } + + // Optional. Location of the rack in the site e.g. Floor 2, Room 201, Row 7, + // Rack 3. + string rack_location = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Distance from the power outlet in meters. + int32 power_distance_meters = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Distance from the network switch in meters. + int32 switch_distance_meters = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. Dimensions of the rack unit. + Dimensions rack_unit_dimensions = 4 [(google.api.field_behavior) = REQUIRED]; + + // Required. Rack space allocated for the hardware. + RackSpace rack_space = 5 [(google.api.field_behavior) = REQUIRED]; + + // Required. Type of the rack. + RackType rack_type = 6 [(google.api.field_behavior) = REQUIRED]; +} + +// Networking configuration for a zone. +message ZoneNetworkConfig { + // Required. An IPv4 address block for machine management. + // Should be a private RFC1918 or public CIDR block large enough to allocate + // at least one address per machine in the Zone. + // Should be in `management_ipv4_subnet`, and disjoint with other address + // ranges. + string machine_mgmt_ipv4_range = 1 [ + (google.api.field_info).format = IPV4, + (google.api.field_behavior) = REQUIRED + ]; + + // Required. An IPv4 address block for kubernetes nodes. + // Should be a private RFC1918 or public CIDR block large enough to allocate + // at least one address per machine in the Zone. + // Should be in `kubernetes_ipv4_subnet`, and disjoint with other address + // ranges. + string kubernetes_node_ipv4_range = 2 [ + (google.api.field_info).format = IPV4, + (google.api.field_behavior) = REQUIRED + ]; + + // Required. An IPv4 address block for kubernetes control plane. + // Should be a private RFC1918 or public CIDR block large enough to allocate + // at least one address per cluster in the Zone. + // Should be in `kubernetes_ipv4_subnet`, and disjoint with other address + // ranges. + string kubernetes_control_plane_ipv4_range = 3 [ + (google.api.field_info).format = IPV4, + (google.api.field_behavior) = REQUIRED + ]; + + // Required. An IPv4 subnet for the management network. + Subnet management_ipv4_subnet = 4 [(google.api.field_behavior) = REQUIRED]; + + // Optional. An IPv4 subnet for the kubernetes network. + // If unspecified, the kubernetes subnet will be the same as the management + // subnet. + Subnet kubernetes_ipv4_subnet = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Represents a subnet. +message Subnet { + // Required. Address range for this subnet in CIDR notation. + string address_range = 1 [ + (google.api.field_info).format = IPV4, + (google.api.field_behavior) = REQUIRED + ]; + + // Required. Default gateway for this subnet. + string default_gateway_ip_address = 2 [ + (google.api.field_info).format = IPV4, + (google.api.field_behavior) = REQUIRED + ]; +} + +// Represents a time period in a week. +message TimePeriod { + // Required. The start of the time period. + google.type.TimeOfDay start_time = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The end of the time period. + google.type.TimeOfDay end_time = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The days of the week that the time period is active. + repeated google.type.DayOfWeek days = 3 + [(google.api.field_behavior) = REQUIRED]; +} + +// Represents the dimensions of an object. +message Dimensions { + // Required. Width in inches. + float width_inches = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Height in inches. + float height_inches = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Depth in inches. + float depth_inches = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Represents contiguous space in a rack. +message RackSpace { + // Required. First rack unit of the rack space (inclusive). + int32 start_rack_unit = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Last rack unit of the rack space (inclusive). + int32 end_rack_unit = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Represents the location of one or many hardware. +message HardwareLocation { + // Required. Name of the site where the hardware are present. + // Format: `projects/{project}/locations/{location}/sites/{site}` + string site = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gdchardwaremanagement.googleapis.com/Site" + } + ]; + + // Required. Location of the rack in the site e.g. Floor 2, Room 201, Row 7, + // Rack 3. + string rack_location = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Spaces occupied by the hardware in the rack. + // If unset, this location is assumed to be the entire rack. + repeated RackSpace rack_space = 3 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/proto/google/cloud/gdchardwaremanagement/v1alpha/service.proto b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/proto/google/cloud/gdchardwaremanagement/v1alpha/service.proto new file mode 100644 index 000000000000..572436ccf97a --- /dev/null +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/src/main/proto/google/cloud/gdchardwaremanagement/v1alpha/service.proto @@ -0,0 +1,1212 @@ +// Copyright 2024 Google LLC +// +// Licensed under the Apache License, Version 2.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. + +syntax = "proto3"; + +package google.cloud.gdchardwaremanagement.v1alpha; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; +import "google/api/resource.proto"; +import "google/cloud/gdchardwaremanagement/v1alpha/resources.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.GdcHardwareManagement.V1Alpha"; +option go_package = "cloud.google.com/go/gdchardwaremanagement/apiv1alpha/gdchardwaremanagementpb;gdchardwaremanagementpb"; +option java_multiple_files = true; +option java_outer_classname = "ServiceProto"; +option java_package = "com.google.cloud.gdchardwaremanagement.v1alpha"; +option php_namespace = "Google\\Cloud\\GdcHardwareManagement\\V1alpha"; +option ruby_package = "Google::Cloud::GDCHardwareManagement::V1alpha"; + +// The GDC Hardware Management service. +service GDCHardwareManagement { + option (google.api.default_host) = "gdchardwaremanagement.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Lists orders in a given project and location. + rpc ListOrders(ListOrdersRequest) returns (ListOrdersResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=projects/*/locations/*}/orders" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of an order. + rpc GetOrder(GetOrderRequest) returns (Order) { + option (google.api.http) = { + get: "/v1alpha/{name=projects/*/locations/*/orders/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new order in a given project and location. + rpc CreateOrder(CreateOrderRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1alpha/{parent=projects/*/locations/*}/orders" + body: "order" + }; + option (google.api.method_signature) = "parent,order,order_id"; + option (google.longrunning.operation_info) = { + response_type: "Order" + metadata_type: "OperationMetadata" + }; + } + + // Updates the parameters of an order. + rpc UpdateOrder(UpdateOrderRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1alpha/{order.name=projects/*/locations/*/orders/*}" + body: "order" + }; + option (google.api.method_signature) = "order,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "Order" + metadata_type: "OperationMetadata" + }; + } + + // Deletes an order. + rpc DeleteOrder(DeleteOrderRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1alpha/{name=projects/*/locations/*/orders/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Submits an order. + rpc SubmitOrder(SubmitOrderRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1alpha/{name=projects/*/locations/*/orders/*}:submit" + body: "*" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "Order" + metadata_type: "OperationMetadata" + }; + } + + // Lists sites in a given project and location. + rpc ListSites(ListSitesRequest) returns (ListSitesResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=projects/*/locations/*}/sites" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a site. + rpc GetSite(GetSiteRequest) returns (Site) { + option (google.api.http) = { + get: "/v1alpha/{name=projects/*/locations/*/sites/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new site in a given project and location. + rpc CreateSite(CreateSiteRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1alpha/{parent=projects/*/locations/*}/sites" + body: "site" + }; + option (google.api.method_signature) = "parent,site,site_id"; + option (google.longrunning.operation_info) = { + response_type: "Site" + metadata_type: "OperationMetadata" + }; + } + + // Updates the parameters of a site. + rpc UpdateSite(UpdateSiteRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1alpha/{site.name=projects/*/locations/*/sites/*}" + body: "site" + }; + option (google.api.method_signature) = "site,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "Site" + metadata_type: "OperationMetadata" + }; + } + + // Lists hardware groups in a given order. + rpc ListHardwareGroups(ListHardwareGroupsRequest) + returns (ListHardwareGroupsResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=projects/*/locations/*/orders/*}/hardwareGroups" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a hardware group. + rpc GetHardwareGroup(GetHardwareGroupRequest) returns (HardwareGroup) { + option (google.api.http) = { + get: "/v1alpha/{name=projects/*/locations/*/orders/*/hardwareGroups/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new hardware group in a given order. + rpc CreateHardwareGroup(CreateHardwareGroupRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1alpha/{parent=projects/*/locations/*/orders/*}/hardwareGroups" + body: "hardware_group" + }; + option (google.api.method_signature) = + "parent,hardware_group,hardware_group_id"; + option (google.longrunning.operation_info) = { + response_type: "HardwareGroup" + metadata_type: "OperationMetadata" + }; + } + + // Updates the parameters of a hardware group. + rpc UpdateHardwareGroup(UpdateHardwareGroupRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1alpha/{hardware_group.name=projects/*/locations/*/orders/*/hardwareGroups/*}" + body: "hardware_group" + }; + option (google.api.method_signature) = "hardware_group,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "HardwareGroup" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a hardware group. + rpc DeleteHardwareGroup(DeleteHardwareGroupRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1alpha/{name=projects/*/locations/*/orders/*/hardwareGroups/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Lists hardware in a given project and location. + rpc ListHardware(ListHardwareRequest) returns (ListHardwareResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=projects/*/locations/*}/hardware" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets hardware details. + rpc GetHardware(GetHardwareRequest) returns (Hardware) { + option (google.api.http) = { + get: "/v1alpha/{name=projects/*/locations/*/hardware/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates new hardware in a given project and location. + rpc CreateHardware(CreateHardwareRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1alpha/{parent=projects/*/locations/*}/hardware" + body: "hardware" + }; + option (google.api.method_signature) = "parent,hardware,hardware_id"; + option (google.longrunning.operation_info) = { + response_type: "Hardware" + metadata_type: "OperationMetadata" + }; + } + + // Updates hardware parameters. + rpc UpdateHardware(UpdateHardwareRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1alpha/{hardware.name=projects/*/locations/*/hardware/*}" + body: "hardware" + }; + option (google.api.method_signature) = "hardware,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "Hardware" + metadata_type: "OperationMetadata" + }; + } + + // Deletes hardware. + rpc DeleteHardware(DeleteHardwareRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1alpha/{name=projects/*/locations/*/hardware/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Lists the comments on an order. + rpc ListComments(ListCommentsRequest) returns (ListCommentsResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=projects/*/locations/*/orders/*}/comments" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets the content of a comment. + rpc GetComment(GetCommentRequest) returns (Comment) { + option (google.api.http) = { + get: "/v1alpha/{name=projects/*/locations/*/orders/*/comments/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new comment on an order. + rpc CreateComment(CreateCommentRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1alpha/{parent=projects/*/locations/*/orders/*}/comments" + body: "comment" + }; + option (google.api.method_signature) = "parent,comment,comment_id"; + option (google.longrunning.operation_info) = { + response_type: "Comment" + metadata_type: "OperationMetadata" + }; + } + + // Lists the changes made to an order. + rpc ListChangeLogEntries(ListChangeLogEntriesRequest) + returns (ListChangeLogEntriesResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=projects/*/locations/*/orders/*}/changeLogEntries" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a change to an order. + rpc GetChangeLogEntry(GetChangeLogEntryRequest) returns (ChangeLogEntry) { + option (google.api.http) = { + get: "/v1alpha/{name=projects/*/locations/*/orders/*/changeLogEntries/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists SKUs for a given project and location. + rpc ListSkus(ListSkusRequest) returns (ListSkusResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=projects/*/locations/*}/skus" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of an SKU. + rpc GetSku(GetSkuRequest) returns (Sku) { + option (google.api.http) = { + get: "/v1alpha/{name=projects/*/locations/*/skus/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists zones in a given project and location. + rpc ListZones(ListZonesRequest) returns (ListZonesResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=projects/*/locations/*}/zones" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a zone. + rpc GetZone(GetZoneRequest) returns (Zone) { + option (google.api.http) = { + get: "/v1alpha/{name=projects/*/locations/*/zones/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new zone in a given project and location. + rpc CreateZone(CreateZoneRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1alpha/{parent=projects/*/locations/*}/zones" + body: "zone" + }; + option (google.api.method_signature) = "parent,zone,zone_id"; + option (google.longrunning.operation_info) = { + response_type: "Zone" + metadata_type: "OperationMetadata" + }; + } + + // Updates the parameters of a zone. + rpc UpdateZone(UpdateZoneRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1alpha/{zone.name=projects/*/locations/*/zones/*}" + body: "zone" + }; + option (google.api.method_signature) = "zone,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "Zone" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a zone. + rpc DeleteZone(DeleteZoneRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1alpha/{name=projects/*/locations/*/zones/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Signals the state of a zone. + rpc SignalZoneState(SignalZoneStateRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1alpha/{name=projects/*/locations/*/zones/*}:signal" + body: "*" + }; + option (google.api.method_signature) = "name,state_signal"; + option (google.longrunning.operation_info) = { + response_type: "Zone" + metadata_type: "OperationMetadata" + }; + } +} + +// A request to list orders. +message ListOrdersRequest { + // Required. The project and location to list orders in. + // Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "gdchardwaremanagement.googleapis.com/Order" + } + ]; + + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, server will pick an appropriate default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token identifying a page of results the server should return. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160). + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Hint for how to order the results. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// A list of orders. +message ListOrdersResponse { + // The list of orders. + repeated Order orders = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// A request to get an order. +message GetOrderRequest { + // Required. Name of the resource + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gdchardwaremanagement.googleapis.com/Order" + } + ]; +} + +// A request to create an order. +message CreateOrderRequest { + // Required. The project and location to create the order in. + // Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "gdchardwaremanagement.googleapis.com/Order" + } + ]; + + // Optional. ID used to uniquely identify the Order within its parent scope. + // This field should contain at most 63 characters and must start with + // lowercase characters. + // Only lowercase characters, numbers and `-` are accepted. + // The `-` character cannot be the first or the last one. + // A system generated ID will be used if the field is not set. + // + // The order.name field in the request will be ignored. + string order_id = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The order to create. + Order order = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. An optional unique identifier for this request. See + // [AIP-155](https://google.aip.dev/155). + string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// A request to update an order. +message UpdateOrderRequest { + // Required. A mask to specify the fields in the Order to overwrite with this + // update. The fields specified in the update_mask are relative to the order, + // not the full request. A field will be overwritten if it is in the mask. If + // you don't provide a mask then all fields will be overwritten. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The order to update. + Order order = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. An optional unique identifier for this request. See + // [AIP-155](https://google.aip.dev/155). + string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// A request to delete an order. +message DeleteOrderRequest { + // Required. The name of the order. + // Format: `projects/{project}/locations/{location}/orders/{order}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gdchardwaremanagement.googleapis.com/Order" + } + ]; + + // Optional. An optional unique identifier for this request. See + // [AIP-155](https://google.aip.dev/155). + string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. An option to delete any nested resources in the Order, such as a + // HardwareGroup. If true, any nested resources for this Order will also be + // deleted. Otherwise, the request will only succeed if the Order has no + // nested resources. + bool force = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// A request to submit an order. +message SubmitOrderRequest { + // Required. The name of the order. + // Format: `projects/{project}/locations/{location}/orders/{order}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gdchardwaremanagement.googleapis.com/Order" + } + ]; + + // Optional. An optional unique identifier for this request. See + // [AIP-155](https://google.aip.dev/155). + string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// A request to list sites. +message ListSitesRequest { + // Required. The project and location to list sites in. + // Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "gdchardwaremanagement.googleapis.com/Site" + } + ]; + + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, server will pick an appropriate default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token identifying a page of results the server should return. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160). + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Hint for how to order the results. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// A list of sites. +message ListSitesResponse { + // The list of sites. + repeated Site sites = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// A request to get a site. +message GetSiteRequest { + // Required. The name of the site. + // Format: `projects/{project}/locations/{location}/sites/{site}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gdchardwaremanagement.googleapis.com/Site" + } + ]; +} + +// A request to create a site. +message CreateSiteRequest { + // Required. The project and location to create the site in. + // Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "gdchardwaremanagement.googleapis.com/Site" + } + ]; + + // Optional. ID used to uniquely identify the Site within its parent scope. + // This field should contain at most 63 characters and must start with + // lowercase characters. + // Only lowercase characters, numbers and `-` are accepted. + // The `-` character cannot be the first or the last one. + // A system generated ID will be used if the field is not set. + // + // The site.name field in the request will be ignored. + string site_id = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The site to create. + Site site = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. An optional unique identifier for this request. See + // [AIP-155](https://google.aip.dev/155). + string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// A request to update a site. +message UpdateSiteRequest { + // Required. A mask to specify the fields in the Site to overwrite with this + // update. The fields specified in the update_mask are relative to the site, + // not the full request. A field will be overwritten if it is in the mask. If + // you don't provide a mask then all fields will be overwritten. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The site to update. + Site site = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. An optional unique identifier for this request. See + // [AIP-155](https://google.aip.dev/155). + string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// A request to list hardware groups. +message ListHardwareGroupsRequest { + // Required. The order to list hardware groups in. + // Format: `projects/{project}/locations/{location}/orders/{order}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "gdchardwaremanagement.googleapis.com/HardwareGroup" + } + ]; + + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, server will pick an appropriate default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token identifying a page of results the server should return. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160). + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Hint for how to order the results. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// A list of hardware groups. +message ListHardwareGroupsResponse { + // The list of hardware groups. + repeated HardwareGroup hardware_groups = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// A request to get a hardware group. +message GetHardwareGroupRequest { + // Required. The name of the hardware group. + // Format: + // `projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gdchardwaremanagement.googleapis.com/HardwareGroup" + } + ]; +} + +// A request to create a hardware group. +message CreateHardwareGroupRequest { + // Required. The order to create the hardware group in. + // Format: `projects/{project}/locations/{location}/orders/{order}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "gdchardwaremanagement.googleapis.com/HardwareGroup" + } + ]; + + // Optional. ID used to uniquely identify the HardwareGroup within its parent + // scope. This field should contain at most 63 characters and must start with + // lowercase characters. + // Only lowercase characters, numbers and `-` are accepted. + // The `-` character cannot be the first or the last one. + // A system generated ID will be used if the field is not set. + // + // The hardware_group.name field in the request will be ignored. + string hardware_group_id = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The hardware group to create. + HardwareGroup hardware_group = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. An optional unique identifier for this request. See + // [AIP-155](https://google.aip.dev/155). + string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// A request to update a hardware group. +message UpdateHardwareGroupRequest { + // Required. A mask to specify the fields in the HardwareGroup to overwrite + // with this update. The fields specified in the update_mask are relative to + // the hardware group, not the full request. A field will be overwritten if it + // is in the mask. If you don't provide a mask then all fields will be + // overwritten. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The hardware group to update. + HardwareGroup hardware_group = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. An optional unique identifier for this request. See + // [AIP-155](https://google.aip.dev/155). + string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// A request to delete a hardware group. +message DeleteHardwareGroupRequest { + // Required. The name of the hardware group. + // Format: + // `projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gdchardwaremanagement.googleapis.com/HardwareGroup" + } + ]; + + // Optional. An optional unique identifier for this request. See + // [AIP-155](https://google.aip.dev/155). + string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// A request to list hardware. +message ListHardwareRequest { + // Required. The project and location to list hardware in. + // Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "gdchardwaremanagement.googleapis.com/Hardware" + } + ]; + + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, server will pick an appropriate default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token identifying a page of results the server should return. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160). + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Hint for how to order the results. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// A list of hardware. +message ListHardwareResponse { + // The list of hardware. + repeated Hardware hardware = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// A request to get hardware. +message GetHardwareRequest { + // Required. The name of the hardware. + // Format: `projects/{project}/locations/{location}/hardware/{hardware}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gdchardwaremanagement.googleapis.com/Hardware" + } + ]; +} + +// A request to create hardware. +message CreateHardwareRequest { + // Required. The project and location to create hardware in. + // Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "gdchardwaremanagement.googleapis.com/Hardware" + } + ]; + + // Optional. ID used to uniquely identify the Hardware within its parent + // scope. This field should contain at most 63 characters and must start with + // lowercase characters. + // Only lowercase characters, numbers and `-` are accepted. + // The `-` character cannot be the first or the last one. + // A system generated ID will be used if the field is not set. + // + // The hardware.name field in the request will be ignored. + string hardware_id = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The resource to create. + Hardware hardware = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// A request to update hardware. +message UpdateHardwareRequest { + // Required. A mask to specify the fields in the Hardware to overwrite with + // this update. The fields specified in the update_mask are relative to the + // hardware, not the full request. A field will be overwritten if it is in the + // mask. If you don't provide a mask then all fields will be overwritten. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The hardware to update. + Hardware hardware = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. An optional unique identifier for this request. See + // [AIP-155](https://google.aip.dev/155). + string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// A request to delete hardware. +message DeleteHardwareRequest { + // Required. The name of the hardware. + // Format: `projects/{project}/locations/{location}/hardware/{hardware}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gdchardwaremanagement.googleapis.com/Hardware" + } + ]; + + // Optional. An optional unique identifier for this request. See + // [AIP-155](https://google.aip.dev/155). + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// A request to list comments. +message ListCommentsRequest { + // Required. The order to list comments on. + // Format: `projects/{project}/locations/{location}/orders/{order}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "gdchardwaremanagement.googleapis.com/Comment" + } + ]; + + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, server will pick an appropriate default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token identifying a page of results the server should return. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160). + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Hint for how to order the results. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// A request to list comments. +message ListCommentsResponse { + // The list of comments. + repeated Comment comments = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// A request to get a comment. +message GetCommentRequest { + // Required. The name of the comment. + // Format: + // `projects/{project}/locations/{location}/orders/{order}/comments/{comment}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gdchardwaremanagement.googleapis.com/Comment" + } + ]; +} + +// A request to create a comment. +message CreateCommentRequest { + // Required. The order to create the comment on. + // Format: `projects/{project}/locations/{location}/orders/{order}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "gdchardwaremanagement.googleapis.com/Comment" + } + ]; + + // Optional. ID used to uniquely identify the Comment within its parent scope. + // This field should contain at most 63 characters and must start with + // lowercase characters. + // Only lowercase characters, numbers and `-` are accepted. + // The `-` character cannot be the first or the last one. + // A system generated ID will be used if the field is not set. + // + // The comment.name field in the request will be ignored. + string comment_id = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The comment to create. + Comment comment = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. An optional unique identifier for this request. See + // [AIP-155](https://google.aip.dev/155). + string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// A request to list change log entries. +message ListChangeLogEntriesRequest { + // Required. The order to list change log entries for. + // Format: `projects/{project}/locations/{location}/orders/{order}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "gdchardwaremanagement.googleapis.com/ChangeLogEntry" + } + ]; + + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, server will pick an appropriate default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token identifying a page of results the server should return. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160). + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Hint for how to order the results. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// A list of change log entries. +message ListChangeLogEntriesResponse { + // The list of change log entries. + repeated ChangeLogEntry change_log_entries = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// A request to get a change log entry. +message GetChangeLogEntryRequest { + // Required. The name of the change log entry. + // Format: + // `projects/{project}/locations/{location}/orders/{order}/changeLogEntries/{change_log_entry}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gdchardwaremanagement.googleapis.com/ChangeLogEntry" + } + ]; +} + +// A request to list SKUs. +message ListSkusRequest { + // Required. The project and location to list SKUs in. + // Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "gdchardwaremanagement.googleapis.com/Sku" + } + ]; + + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, server will pick an appropriate default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token identifying a page of results the server should return. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160). + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Hint for how to order the results. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// A list of SKUs. +message ListSkusResponse { + // The list of SKUs. + repeated Sku skus = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// A request to get an SKU. +message GetSkuRequest { + // Required. The name of the SKU. + // Format: `projects/{project}/locations/{location}/skus/{sku}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gdchardwaremanagement.googleapis.com/Sku" + } + ]; +} + +// A request to list zones. +message ListZonesRequest { + // Required. The project and location to list zones in. + // Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "gdchardwaremanagement.googleapis.com/Zone" + } + ]; + + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, server will pick an appropriate default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token identifying a page of results the server should return. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filtering condition. See [AIP-160](https://google.aip.dev/160). + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Hint for how to order the results. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// A list of zones. +message ListZonesResponse { + // The list of zones. + repeated Zone zones = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// A request to get a zone. +message GetZoneRequest { + // Required. The name of the zone. + // Format: `projects/{project}/locations/{location}/zones/{zone}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gdchardwaremanagement.googleapis.com/Zone" + } + ]; +} + +// A request to create a zone. +message CreateZoneRequest { + // Required. The project and location to create the zone in. + // Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "gdchardwaremanagement.googleapis.com/Zone" + } + ]; + + // Optional. ID used to uniquely identify the Zone within its parent scope. + // This field should contain at most 63 characters and must start with + // lowercase characters. + // Only lowercase characters, numbers and `-` are accepted. + // The `-` character cannot be the first or the last one. + // A system generated ID will be used if the field is not set. + // + // The zone.name field in the request will be ignored. + string zone_id = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The zone to create. + Zone zone = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. An optional unique identifier for this request. See + // [AIP-155](https://google.aip.dev/155). + string request_id = 4 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// A request to update a zone. +message UpdateZoneRequest { + // Required. A mask to specify the fields in the Zone to overwrite with this + // update. The fields specified in the update_mask are relative to the zone, + // not the full request. A field will be overwritten if it is in the mask. If + // you don't provide a mask then all fields will be overwritten. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The zone to update. + Zone zone = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. An optional unique identifier for this request. See + // [AIP-155](https://google.aip.dev/155). + string request_id = 3 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// A request to delete a zone. +message DeleteZoneRequest { + // Required. The name of the zone. + // Format: `projects/{project}/locations/{location}/zones/{zone}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gdchardwaremanagement.googleapis.com/Zone" + } + ]; + + // Optional. An optional unique identifier for this request. See + // [AIP-155](https://google.aip.dev/155). + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// A request to signal the state of a zone. +message SignalZoneStateRequest { + // Valid state signals for a zone. + enum StateSignal { + // State signal of the zone is unspecified. + STATE_SIGNAL_UNSPECIFIED = 0; + + // The Zone is ready for site turnup. + READY_FOR_SITE_TURNUP = 1; + + // The Zone failed in factory turnup checks. + FACTORY_TURNUP_CHECKS_FAILED = 2; + } + + // Required. The name of the zone. + // Format: `projects/{project}/locations/{location}/zones/{zone}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gdchardwaremanagement.googleapis.com/Zone" + } + ]; + + // Optional. An optional unique identifier for this request. See + // [AIP-155](https://google.aip.dev/155). + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; + + // Required. The state signal to send for this zone. + StateSignal state_signal = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Represents the metadata of a long-running operation. +message OperationMetadata { + // Output only. The time the operation was created. + google.protobuf.Timestamp create_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time the operation finished running. + google.protobuf.Timestamp end_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Server-defined resource path for the target of the operation. + string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The verb executed by the operation. + string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Human-readable status of the operation, if any. + string status_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Identifies whether the user has requested cancellation + // of the operation. Operations that have been cancelled successfully + // have [Operation.error][] value with a + // [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + // `Code.CANCELLED`. + bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. API version used to start the operation. + string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/create/SyncCreateSetCredentialsProvider.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..b6eaf48f3a06 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementSettings; +import com.google.cloud.gdchardwaremanagement.v1alpha.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 and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + GDCHardwareManagementSettings gDCHardwareManagementSettings = + GDCHardwareManagementSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create(gDCHardwareManagementSettings); + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_Create_SetCredentialsProvider_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/create/SyncCreateSetCredentialsProvider1.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 000000000000..0fe0ceea12ac --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_Create_SetCredentialsProvider1_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + GDCHardwareManagementSettings gDCHardwareManagementSettings = + GDCHardwareManagementSettings.newHttpJsonBuilder().build(); + GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create(gDCHardwareManagementSettings); + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_Create_SetCredentialsProvider1_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/create/SyncCreateSetEndpoint.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..33d7057c915c --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_Create_SetEndpoint_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementSettings; +import com.google.cloud.gdchardwaremanagement.v1alpha.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 and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + GDCHardwareManagementSettings gDCHardwareManagementSettings = + GDCHardwareManagementSettings.newBuilder().setEndpoint(myEndpoint).build(); + GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create(gDCHardwareManagementSettings); + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_Create_SetEndpoint_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createcomment/AsyncCreateComment.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createcomment/AsyncCreateComment.java new file mode 100644 index 000000000000..93720ca33a1d --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createcomment/AsyncCreateComment.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateComment_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.Comment; +import com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.OrderName; +import com.google.longrunning.Operation; + +public class AsyncCreateComment { + + public static void main(String[] args) throws Exception { + asyncCreateComment(); + } + + public static void asyncCreateComment() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + CreateCommentRequest request = + CreateCommentRequest.newBuilder() + .setParent(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setCommentId("commentId-1495016486") + .setComment(Comment.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + gDCHardwareManagementClient.createCommentCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateComment_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createcomment/AsyncCreateCommentLRO.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createcomment/AsyncCreateCommentLRO.java new file mode 100644 index 000000000000..2d341fa0cf0f --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createcomment/AsyncCreateCommentLRO.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateComment_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.Comment; +import com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata; +import com.google.cloud.gdchardwaremanagement.v1alpha.OrderName; + +public class AsyncCreateCommentLRO { + + public static void main(String[] args) throws Exception { + asyncCreateCommentLRO(); + } + + public static void asyncCreateCommentLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + CreateCommentRequest request = + CreateCommentRequest.newBuilder() + .setParent(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setCommentId("commentId-1495016486") + .setComment(Comment.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + gDCHardwareManagementClient.createCommentOperationCallable().futureCall(request); + // Do something. + Comment response = future.get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateComment_LRO_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createcomment/SyncCreateComment.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createcomment/SyncCreateComment.java new file mode 100644 index 000000000000..e91ab0ac216a --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createcomment/SyncCreateComment.java @@ -0,0 +1,50 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateComment_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.Comment; +import com.google.cloud.gdchardwaremanagement.v1alpha.CreateCommentRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.OrderName; + +public class SyncCreateComment { + + public static void main(String[] args) throws Exception { + syncCreateComment(); + } + + public static void syncCreateComment() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + CreateCommentRequest request = + CreateCommentRequest.newBuilder() + .setParent(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setCommentId("commentId-1495016486") + .setComment(Comment.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + Comment response = gDCHardwareManagementClient.createCommentAsync(request).get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateComment_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createcomment/SyncCreateCommentOrdernameCommentString.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createcomment/SyncCreateCommentOrdernameCommentString.java new file mode 100644 index 000000000000..4d7fd42c8a13 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createcomment/SyncCreateCommentOrdernameCommentString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateComment_OrdernameCommentString_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.Comment; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.OrderName; + +public class SyncCreateCommentOrdernameCommentString { + + public static void main(String[] args) throws Exception { + syncCreateCommentOrdernameCommentString(); + } + + public static void syncCreateCommentOrdernameCommentString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + OrderName parent = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]"); + Comment comment = Comment.newBuilder().build(); + String commentId = "commentId-1495016486"; + Comment response = + gDCHardwareManagementClient.createCommentAsync(parent, comment, commentId).get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateComment_OrdernameCommentString_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createcomment/SyncCreateCommentStringCommentString.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createcomment/SyncCreateCommentStringCommentString.java new file mode 100644 index 000000000000..3929a1223909 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createcomment/SyncCreateCommentStringCommentString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateComment_StringCommentString_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.Comment; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.OrderName; + +public class SyncCreateCommentStringCommentString { + + public static void main(String[] args) throws Exception { + syncCreateCommentStringCommentString(); + } + + public static void syncCreateCommentStringCommentString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + String parent = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString(); + Comment comment = Comment.newBuilder().build(); + String commentId = "commentId-1495016486"; + Comment response = + gDCHardwareManagementClient.createCommentAsync(parent, comment, commentId).get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateComment_StringCommentString_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createhardware/AsyncCreateHardware.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createhardware/AsyncCreateHardware.java new file mode 100644 index 000000000000..b32c30a533f8 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createhardware/AsyncCreateHardware.java @@ -0,0 +1,54 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateHardware_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.Hardware; +import com.google.cloud.gdchardwaremanagement.v1alpha.LocationName; +import com.google.longrunning.Operation; + +public class AsyncCreateHardware { + + public static void main(String[] args) throws Exception { + asyncCreateHardware(); + } + + public static void asyncCreateHardware() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + CreateHardwareRequest request = + CreateHardwareRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setHardwareId("hardwareId680924451") + .setHardware(Hardware.newBuilder().build()) + .build(); + ApiFuture future = + gDCHardwareManagementClient.createHardwareCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateHardware_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createhardware/AsyncCreateHardwareLRO.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createhardware/AsyncCreateHardwareLRO.java new file mode 100644 index 000000000000..b7c789a645b0 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createhardware/AsyncCreateHardwareLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateHardware_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.Hardware; +import com.google.cloud.gdchardwaremanagement.v1alpha.LocationName; +import com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata; + +public class AsyncCreateHardwareLRO { + + public static void main(String[] args) throws Exception { + asyncCreateHardwareLRO(); + } + + public static void asyncCreateHardwareLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + CreateHardwareRequest request = + CreateHardwareRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setHardwareId("hardwareId680924451") + .setHardware(Hardware.newBuilder().build()) + .build(); + OperationFuture future = + gDCHardwareManagementClient.createHardwareOperationCallable().futureCall(request); + // Do something. + Hardware response = future.get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateHardware_LRO_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createhardware/SyncCreateHardware.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createhardware/SyncCreateHardware.java new file mode 100644 index 000000000000..6326629c1da1 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createhardware/SyncCreateHardware.java @@ -0,0 +1,49 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateHardware_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.Hardware; +import com.google.cloud.gdchardwaremanagement.v1alpha.LocationName; + +public class SyncCreateHardware { + + public static void main(String[] args) throws Exception { + syncCreateHardware(); + } + + public static void syncCreateHardware() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + CreateHardwareRequest request = + CreateHardwareRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setHardwareId("hardwareId680924451") + .setHardware(Hardware.newBuilder().build()) + .build(); + Hardware response = gDCHardwareManagementClient.createHardwareAsync(request).get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateHardware_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createhardware/SyncCreateHardwareLocationnameHardwareString.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createhardware/SyncCreateHardwareLocationnameHardwareString.java new file mode 100644 index 000000000000..36a42ffa6e2a --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createhardware/SyncCreateHardwareLocationnameHardwareString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateHardware_LocationnameHardwareString_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.Hardware; +import com.google.cloud.gdchardwaremanagement.v1alpha.LocationName; + +public class SyncCreateHardwareLocationnameHardwareString { + + public static void main(String[] args) throws Exception { + syncCreateHardwareLocationnameHardwareString(); + } + + public static void syncCreateHardwareLocationnameHardwareString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Hardware hardware = Hardware.newBuilder().build(); + String hardwareId = "hardwareId680924451"; + Hardware response = + gDCHardwareManagementClient.createHardwareAsync(parent, hardware, hardwareId).get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateHardware_LocationnameHardwareString_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createhardware/SyncCreateHardwareStringHardwareString.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createhardware/SyncCreateHardwareStringHardwareString.java new file mode 100644 index 000000000000..ba45a2a9d4dc --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createhardware/SyncCreateHardwareStringHardwareString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateHardware_StringHardwareString_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.Hardware; +import com.google.cloud.gdchardwaremanagement.v1alpha.LocationName; + +public class SyncCreateHardwareStringHardwareString { + + public static void main(String[] args) throws Exception { + syncCreateHardwareStringHardwareString(); + } + + public static void syncCreateHardwareStringHardwareString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + Hardware hardware = Hardware.newBuilder().build(); + String hardwareId = "hardwareId680924451"; + Hardware response = + gDCHardwareManagementClient.createHardwareAsync(parent, hardware, hardwareId).get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateHardware_StringHardwareString_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createhardwaregroup/AsyncCreateHardwareGroup.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createhardwaregroup/AsyncCreateHardwareGroup.java new file mode 100644 index 000000000000..1f670cd8a8cf --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createhardwaregroup/AsyncCreateHardwareGroup.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateHardwareGroup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup; +import com.google.cloud.gdchardwaremanagement.v1alpha.OrderName; +import com.google.longrunning.Operation; + +public class AsyncCreateHardwareGroup { + + public static void main(String[] args) throws Exception { + asyncCreateHardwareGroup(); + } + + public static void asyncCreateHardwareGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + CreateHardwareGroupRequest request = + CreateHardwareGroupRequest.newBuilder() + .setParent(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setHardwareGroupId("hardwareGroupId-1961682702") + .setHardwareGroup(HardwareGroup.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + gDCHardwareManagementClient.createHardwareGroupCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateHardwareGroup_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createhardwaregroup/AsyncCreateHardwareGroupLRO.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createhardwaregroup/AsyncCreateHardwareGroupLRO.java new file mode 100644 index 000000000000..2c1305d37b7f --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createhardwaregroup/AsyncCreateHardwareGroupLRO.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateHardwareGroup_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup; +import com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata; +import com.google.cloud.gdchardwaremanagement.v1alpha.OrderName; + +public class AsyncCreateHardwareGroupLRO { + + public static void main(String[] args) throws Exception { + asyncCreateHardwareGroupLRO(); + } + + public static void asyncCreateHardwareGroupLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + CreateHardwareGroupRequest request = + CreateHardwareGroupRequest.newBuilder() + .setParent(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setHardwareGroupId("hardwareGroupId-1961682702") + .setHardwareGroup(HardwareGroup.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + gDCHardwareManagementClient.createHardwareGroupOperationCallable().futureCall(request); + // Do something. + HardwareGroup response = future.get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateHardwareGroup_LRO_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createhardwaregroup/SyncCreateHardwareGroup.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createhardwaregroup/SyncCreateHardwareGroup.java new file mode 100644 index 000000000000..0fefc1a72b94 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createhardwaregroup/SyncCreateHardwareGroup.java @@ -0,0 +1,50 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateHardwareGroup_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.CreateHardwareGroupRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup; +import com.google.cloud.gdchardwaremanagement.v1alpha.OrderName; + +public class SyncCreateHardwareGroup { + + public static void main(String[] args) throws Exception { + syncCreateHardwareGroup(); + } + + public static void syncCreateHardwareGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + CreateHardwareGroupRequest request = + CreateHardwareGroupRequest.newBuilder() + .setParent(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setHardwareGroupId("hardwareGroupId-1961682702") + .setHardwareGroup(HardwareGroup.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + HardwareGroup response = gDCHardwareManagementClient.createHardwareGroupAsync(request).get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateHardwareGroup_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createhardwaregroup/SyncCreateHardwareGroupOrdernameHardwaregroupString.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createhardwaregroup/SyncCreateHardwareGroupOrdernameHardwaregroupString.java new file mode 100644 index 000000000000..8715eec6e9b6 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createhardwaregroup/SyncCreateHardwareGroupOrdernameHardwaregroupString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateHardwareGroup_OrdernameHardwaregroupString_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup; +import com.google.cloud.gdchardwaremanagement.v1alpha.OrderName; + +public class SyncCreateHardwareGroupOrdernameHardwaregroupString { + + public static void main(String[] args) throws Exception { + syncCreateHardwareGroupOrdernameHardwaregroupString(); + } + + public static void syncCreateHardwareGroupOrdernameHardwaregroupString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + OrderName parent = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]"); + HardwareGroup hardwareGroup = HardwareGroup.newBuilder().build(); + String hardwareGroupId = "hardwareGroupId-1961682702"; + HardwareGroup response = + gDCHardwareManagementClient + .createHardwareGroupAsync(parent, hardwareGroup, hardwareGroupId) + .get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateHardwareGroup_OrdernameHardwaregroupString_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createhardwaregroup/SyncCreateHardwareGroupStringHardwaregroupString.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createhardwaregroup/SyncCreateHardwareGroupStringHardwaregroupString.java new file mode 100644 index 000000000000..eeb30fa5108d --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createhardwaregroup/SyncCreateHardwareGroupStringHardwaregroupString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateHardwareGroup_StringHardwaregroupString_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup; +import com.google.cloud.gdchardwaremanagement.v1alpha.OrderName; + +public class SyncCreateHardwareGroupStringHardwaregroupString { + + public static void main(String[] args) throws Exception { + syncCreateHardwareGroupStringHardwaregroupString(); + } + + public static void syncCreateHardwareGroupStringHardwaregroupString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + String parent = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString(); + HardwareGroup hardwareGroup = HardwareGroup.newBuilder().build(); + String hardwareGroupId = "hardwareGroupId-1961682702"; + HardwareGroup response = + gDCHardwareManagementClient + .createHardwareGroupAsync(parent, hardwareGroup, hardwareGroupId) + .get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateHardwareGroup_StringHardwaregroupString_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createorder/AsyncCreateOrder.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createorder/AsyncCreateOrder.java new file mode 100644 index 000000000000..bdc6e3f86eda --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createorder/AsyncCreateOrder.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateOrder_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.LocationName; +import com.google.cloud.gdchardwaremanagement.v1alpha.Order; +import com.google.longrunning.Operation; + +public class AsyncCreateOrder { + + public static void main(String[] args) throws Exception { + asyncCreateOrder(); + } + + public static void asyncCreateOrder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + CreateOrderRequest request = + CreateOrderRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setOrderId("orderId-1207110391") + .setOrder(Order.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + gDCHardwareManagementClient.createOrderCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateOrder_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createorder/AsyncCreateOrderLRO.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createorder/AsyncCreateOrderLRO.java new file mode 100644 index 000000000000..84bd73c6dc03 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createorder/AsyncCreateOrderLRO.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateOrder_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.LocationName; +import com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata; +import com.google.cloud.gdchardwaremanagement.v1alpha.Order; + +public class AsyncCreateOrderLRO { + + public static void main(String[] args) throws Exception { + asyncCreateOrderLRO(); + } + + public static void asyncCreateOrderLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + CreateOrderRequest request = + CreateOrderRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setOrderId("orderId-1207110391") + .setOrder(Order.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + gDCHardwareManagementClient.createOrderOperationCallable().futureCall(request); + // Do something. + Order response = future.get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateOrder_LRO_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createorder/SyncCreateOrder.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createorder/SyncCreateOrder.java new file mode 100644 index 000000000000..756ed2bbb037 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createorder/SyncCreateOrder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateOrder_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.CreateOrderRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.LocationName; +import com.google.cloud.gdchardwaremanagement.v1alpha.Order; + +public class SyncCreateOrder { + + public static void main(String[] args) throws Exception { + syncCreateOrder(); + } + + public static void syncCreateOrder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + CreateOrderRequest request = + CreateOrderRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setOrderId("orderId-1207110391") + .setOrder(Order.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + Order response = gDCHardwareManagementClient.createOrderAsync(request).get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateOrder_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createorder/SyncCreateOrderLocationnameOrderString.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createorder/SyncCreateOrderLocationnameOrderString.java new file mode 100644 index 000000000000..4c5c38b2b76b --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createorder/SyncCreateOrderLocationnameOrderString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateOrder_LocationnameOrderString_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.LocationName; +import com.google.cloud.gdchardwaremanagement.v1alpha.Order; + +public class SyncCreateOrderLocationnameOrderString { + + public static void main(String[] args) throws Exception { + syncCreateOrderLocationnameOrderString(); + } + + public static void syncCreateOrderLocationnameOrderString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Order order = Order.newBuilder().build(); + String orderId = "orderId-1207110391"; + Order response = gDCHardwareManagementClient.createOrderAsync(parent, order, orderId).get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateOrder_LocationnameOrderString_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createorder/SyncCreateOrderStringOrderString.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createorder/SyncCreateOrderStringOrderString.java new file mode 100644 index 000000000000..b215bb62927a --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createorder/SyncCreateOrderStringOrderString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateOrder_StringOrderString_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.LocationName; +import com.google.cloud.gdchardwaremanagement.v1alpha.Order; + +public class SyncCreateOrderStringOrderString { + + public static void main(String[] args) throws Exception { + syncCreateOrderStringOrderString(); + } + + public static void syncCreateOrderStringOrderString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + Order order = Order.newBuilder().build(); + String orderId = "orderId-1207110391"; + Order response = gDCHardwareManagementClient.createOrderAsync(parent, order, orderId).get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateOrder_StringOrderString_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createsite/AsyncCreateSite.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createsite/AsyncCreateSite.java new file mode 100644 index 000000000000..ff4bd0dfa6c1 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createsite/AsyncCreateSite.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateSite_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.LocationName; +import com.google.cloud.gdchardwaremanagement.v1alpha.Site; +import com.google.longrunning.Operation; + +public class AsyncCreateSite { + + public static void main(String[] args) throws Exception { + asyncCreateSite(); + } + + public static void asyncCreateSite() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + CreateSiteRequest request = + CreateSiteRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSiteId("siteId-902090046") + .setSite(Site.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + gDCHardwareManagementClient.createSiteCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateSite_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createsite/AsyncCreateSiteLRO.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createsite/AsyncCreateSiteLRO.java new file mode 100644 index 000000000000..86ed33c4d74c --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createsite/AsyncCreateSiteLRO.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateSite_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.LocationName; +import com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata; +import com.google.cloud.gdchardwaremanagement.v1alpha.Site; + +public class AsyncCreateSiteLRO { + + public static void main(String[] args) throws Exception { + asyncCreateSiteLRO(); + } + + public static void asyncCreateSiteLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + CreateSiteRequest request = + CreateSiteRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSiteId("siteId-902090046") + .setSite(Site.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + gDCHardwareManagementClient.createSiteOperationCallable().futureCall(request); + // Do something. + Site response = future.get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateSite_LRO_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createsite/SyncCreateSite.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createsite/SyncCreateSite.java new file mode 100644 index 000000000000..237f1aca5c80 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createsite/SyncCreateSite.java @@ -0,0 +1,50 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateSite_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.LocationName; +import com.google.cloud.gdchardwaremanagement.v1alpha.Site; + +public class SyncCreateSite { + + public static void main(String[] args) throws Exception { + syncCreateSite(); + } + + public static void syncCreateSite() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + CreateSiteRequest request = + CreateSiteRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSiteId("siteId-902090046") + .setSite(Site.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + Site response = gDCHardwareManagementClient.createSiteAsync(request).get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateSite_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createsite/SyncCreateSiteLocationnameSiteString.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createsite/SyncCreateSiteLocationnameSiteString.java new file mode 100644 index 000000000000..0322e3a2b802 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createsite/SyncCreateSiteLocationnameSiteString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateSite_LocationnameSiteString_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.LocationName; +import com.google.cloud.gdchardwaremanagement.v1alpha.Site; + +public class SyncCreateSiteLocationnameSiteString { + + public static void main(String[] args) throws Exception { + syncCreateSiteLocationnameSiteString(); + } + + public static void syncCreateSiteLocationnameSiteString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Site site = Site.newBuilder().build(); + String siteId = "siteId-902090046"; + Site response = gDCHardwareManagementClient.createSiteAsync(parent, site, siteId).get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateSite_LocationnameSiteString_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createsite/SyncCreateSiteStringSiteString.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createsite/SyncCreateSiteStringSiteString.java new file mode 100644 index 000000000000..6ee579ee6bc4 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createsite/SyncCreateSiteStringSiteString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateSite_StringSiteString_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.LocationName; +import com.google.cloud.gdchardwaremanagement.v1alpha.Site; + +public class SyncCreateSiteStringSiteString { + + public static void main(String[] args) throws Exception { + syncCreateSiteStringSiteString(); + } + + public static void syncCreateSiteStringSiteString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + Site site = Site.newBuilder().build(); + String siteId = "siteId-902090046"; + Site response = gDCHardwareManagementClient.createSiteAsync(parent, site, siteId).get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateSite_StringSiteString_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createzone/AsyncCreateZone.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createzone/AsyncCreateZone.java new file mode 100644 index 000000000000..ff29514a1052 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createzone/AsyncCreateZone.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateZone_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.LocationName; +import com.google.cloud.gdchardwaremanagement.v1alpha.Zone; +import com.google.longrunning.Operation; + +public class AsyncCreateZone { + + public static void main(String[] args) throws Exception { + asyncCreateZone(); + } + + public static void asyncCreateZone() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + CreateZoneRequest request = + CreateZoneRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setZoneId("zoneId-696323609") + .setZone(Zone.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + gDCHardwareManagementClient.createZoneCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateZone_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createzone/AsyncCreateZoneLRO.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createzone/AsyncCreateZoneLRO.java new file mode 100644 index 000000000000..57a48ebc5b89 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createzone/AsyncCreateZoneLRO.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateZone_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.LocationName; +import com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata; +import com.google.cloud.gdchardwaremanagement.v1alpha.Zone; + +public class AsyncCreateZoneLRO { + + public static void main(String[] args) throws Exception { + asyncCreateZoneLRO(); + } + + public static void asyncCreateZoneLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + CreateZoneRequest request = + CreateZoneRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setZoneId("zoneId-696323609") + .setZone(Zone.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + gDCHardwareManagementClient.createZoneOperationCallable().futureCall(request); + // Do something. + Zone response = future.get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateZone_LRO_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createzone/SyncCreateZone.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createzone/SyncCreateZone.java new file mode 100644 index 000000000000..e267f4a6bfe5 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createzone/SyncCreateZone.java @@ -0,0 +1,50 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateZone_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.CreateZoneRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.LocationName; +import com.google.cloud.gdchardwaremanagement.v1alpha.Zone; + +public class SyncCreateZone { + + public static void main(String[] args) throws Exception { + syncCreateZone(); + } + + public static void syncCreateZone() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + CreateZoneRequest request = + CreateZoneRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setZoneId("zoneId-696323609") + .setZone(Zone.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + Zone response = gDCHardwareManagementClient.createZoneAsync(request).get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateZone_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createzone/SyncCreateZoneLocationnameZoneString.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createzone/SyncCreateZoneLocationnameZoneString.java new file mode 100644 index 000000000000..82d192d42c17 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createzone/SyncCreateZoneLocationnameZoneString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateZone_LocationnameZoneString_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.LocationName; +import com.google.cloud.gdchardwaremanagement.v1alpha.Zone; + +public class SyncCreateZoneLocationnameZoneString { + + public static void main(String[] args) throws Exception { + syncCreateZoneLocationnameZoneString(); + } + + public static void syncCreateZoneLocationnameZoneString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Zone zone = Zone.newBuilder().build(); + String zoneId = "zoneId-696323609"; + Zone response = gDCHardwareManagementClient.createZoneAsync(parent, zone, zoneId).get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateZone_LocationnameZoneString_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createzone/SyncCreateZoneStringZoneString.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createzone/SyncCreateZoneStringZoneString.java new file mode 100644 index 000000000000..268b915aa193 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/createzone/SyncCreateZoneStringZoneString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateZone_StringZoneString_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.LocationName; +import com.google.cloud.gdchardwaremanagement.v1alpha.Zone; + +public class SyncCreateZoneStringZoneString { + + public static void main(String[] args) throws Exception { + syncCreateZoneStringZoneString(); + } + + public static void syncCreateZoneStringZoneString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + Zone zone = Zone.newBuilder().build(); + String zoneId = "zoneId-696323609"; + Zone response = gDCHardwareManagementClient.createZoneAsync(parent, zone, zoneId).get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateZone_StringZoneString_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletehardware/AsyncDeleteHardware.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletehardware/AsyncDeleteHardware.java new file mode 100644 index 000000000000..e6d229c2aac4 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletehardware/AsyncDeleteHardware.java @@ -0,0 +1,52 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteHardware_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.HardwareName; +import com.google.longrunning.Operation; + +public class AsyncDeleteHardware { + + public static void main(String[] args) throws Exception { + asyncDeleteHardware(); + } + + public static void asyncDeleteHardware() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + DeleteHardwareRequest request = + DeleteHardwareRequest.newBuilder() + .setName(HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]").toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + gDCHardwareManagementClient.deleteHardwareCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteHardware_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletehardware/AsyncDeleteHardwareLRO.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletehardware/AsyncDeleteHardwareLRO.java new file mode 100644 index 000000000000..1426417d11f0 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletehardware/AsyncDeleteHardwareLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteHardware_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.HardwareName; +import com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteHardwareLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteHardwareLRO(); + } + + public static void asyncDeleteHardwareLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + DeleteHardwareRequest request = + DeleteHardwareRequest.newBuilder() + .setName(HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]").toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + gDCHardwareManagementClient.deleteHardwareOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteHardware_LRO_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletehardware/SyncDeleteHardware.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletehardware/SyncDeleteHardware.java new file mode 100644 index 000000000000..c71347ecb082 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletehardware/SyncDeleteHardware.java @@ -0,0 +1,48 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteHardware_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.HardwareName; +import com.google.protobuf.Empty; + +public class SyncDeleteHardware { + + public static void main(String[] args) throws Exception { + syncDeleteHardware(); + } + + public static void syncDeleteHardware() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + DeleteHardwareRequest request = + DeleteHardwareRequest.newBuilder() + .setName(HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]").toString()) + .setRequestId("requestId693933066") + .build(); + gDCHardwareManagementClient.deleteHardwareAsync(request).get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteHardware_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletehardware/SyncDeleteHardwareHardwarename.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletehardware/SyncDeleteHardwareHardwarename.java new file mode 100644 index 000000000000..2452eb145a33 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletehardware/SyncDeleteHardwareHardwarename.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteHardware_Hardwarename_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.HardwareName; +import com.google.protobuf.Empty; + +public class SyncDeleteHardwareHardwarename { + + public static void main(String[] args) throws Exception { + syncDeleteHardwareHardwarename(); + } + + public static void syncDeleteHardwareHardwarename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + HardwareName name = HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]"); + gDCHardwareManagementClient.deleteHardwareAsync(name).get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteHardware_Hardwarename_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletehardware/SyncDeleteHardwareString.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletehardware/SyncDeleteHardwareString.java new file mode 100644 index 000000000000..cebbe67cacfc --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletehardware/SyncDeleteHardwareString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteHardware_String_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.HardwareName; +import com.google.protobuf.Empty; + +public class SyncDeleteHardwareString { + + public static void main(String[] args) throws Exception { + syncDeleteHardwareString(); + } + + public static void syncDeleteHardwareString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + String name = HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]").toString(); + gDCHardwareManagementClient.deleteHardwareAsync(name).get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteHardware_String_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletehardwaregroup/AsyncDeleteHardwareGroup.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletehardwaregroup/AsyncDeleteHardwareGroup.java new file mode 100644 index 000000000000..bd1341d29bd9 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletehardwaregroup/AsyncDeleteHardwareGroup.java @@ -0,0 +1,54 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteHardwareGroup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroupName; +import com.google.longrunning.Operation; + +public class AsyncDeleteHardwareGroup { + + public static void main(String[] args) throws Exception { + asyncDeleteHardwareGroup(); + } + + public static void asyncDeleteHardwareGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + DeleteHardwareGroupRequest request = + DeleteHardwareGroupRequest.newBuilder() + .setName( + HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]") + .toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + gDCHardwareManagementClient.deleteHardwareGroupCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteHardwareGroup_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletehardwaregroup/AsyncDeleteHardwareGroupLRO.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletehardwaregroup/AsyncDeleteHardwareGroupLRO.java new file mode 100644 index 000000000000..6c79d5f296bf --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletehardwaregroup/AsyncDeleteHardwareGroupLRO.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteHardwareGroup_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroupName; +import com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteHardwareGroupLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteHardwareGroupLRO(); + } + + public static void asyncDeleteHardwareGroupLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + DeleteHardwareGroupRequest request = + DeleteHardwareGroupRequest.newBuilder() + .setName( + HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]") + .toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + gDCHardwareManagementClient.deleteHardwareGroupOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteHardwareGroup_LRO_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletehardwaregroup/SyncDeleteHardwareGroup.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletehardwaregroup/SyncDeleteHardwareGroup.java new file mode 100644 index 000000000000..93683862a924 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletehardwaregroup/SyncDeleteHardwareGroup.java @@ -0,0 +1,50 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteHardwareGroup_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.DeleteHardwareGroupRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroupName; +import com.google.protobuf.Empty; + +public class SyncDeleteHardwareGroup { + + public static void main(String[] args) throws Exception { + syncDeleteHardwareGroup(); + } + + public static void syncDeleteHardwareGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + DeleteHardwareGroupRequest request = + DeleteHardwareGroupRequest.newBuilder() + .setName( + HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]") + .toString()) + .setRequestId("requestId693933066") + .build(); + gDCHardwareManagementClient.deleteHardwareGroupAsync(request).get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteHardwareGroup_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletehardwaregroup/SyncDeleteHardwareGroupHardwaregroupname.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletehardwaregroup/SyncDeleteHardwareGroupHardwaregroupname.java new file mode 100644 index 000000000000..d4bf639468b2 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletehardwaregroup/SyncDeleteHardwareGroupHardwaregroupname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteHardwareGroup_Hardwaregroupname_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroupName; +import com.google.protobuf.Empty; + +public class SyncDeleteHardwareGroupHardwaregroupname { + + public static void main(String[] args) throws Exception { + syncDeleteHardwareGroupHardwaregroupname(); + } + + public static void syncDeleteHardwareGroupHardwaregroupname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + HardwareGroupName name = + HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]"); + gDCHardwareManagementClient.deleteHardwareGroupAsync(name).get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteHardwareGroup_Hardwaregroupname_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletehardwaregroup/SyncDeleteHardwareGroupString.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletehardwaregroup/SyncDeleteHardwareGroupString.java new file mode 100644 index 000000000000..a0cf253aed8f --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletehardwaregroup/SyncDeleteHardwareGroupString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteHardwareGroup_String_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroupName; +import com.google.protobuf.Empty; + +public class SyncDeleteHardwareGroupString { + + public static void main(String[] args) throws Exception { + syncDeleteHardwareGroupString(); + } + + public static void syncDeleteHardwareGroupString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + String name = + HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]").toString(); + gDCHardwareManagementClient.deleteHardwareGroupAsync(name).get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteHardwareGroup_String_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deleteorder/AsyncDeleteOrder.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deleteorder/AsyncDeleteOrder.java new file mode 100644 index 000000000000..bc67f7061e20 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deleteorder/AsyncDeleteOrder.java @@ -0,0 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteOrder_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.OrderName; +import com.google.longrunning.Operation; + +public class AsyncDeleteOrder { + + public static void main(String[] args) throws Exception { + asyncDeleteOrder(); + } + + public static void asyncDeleteOrder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + DeleteOrderRequest request = + DeleteOrderRequest.newBuilder() + .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setRequestId("requestId693933066") + .setForce(true) + .build(); + ApiFuture future = + gDCHardwareManagementClient.deleteOrderCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteOrder_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deleteorder/AsyncDeleteOrderLRO.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deleteorder/AsyncDeleteOrderLRO.java new file mode 100644 index 000000000000..79b02d9e696f --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deleteorder/AsyncDeleteOrderLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteOrder_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata; +import com.google.cloud.gdchardwaremanagement.v1alpha.OrderName; +import com.google.protobuf.Empty; + +public class AsyncDeleteOrderLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteOrderLRO(); + } + + public static void asyncDeleteOrderLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + DeleteOrderRequest request = + DeleteOrderRequest.newBuilder() + .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setRequestId("requestId693933066") + .setForce(true) + .build(); + OperationFuture future = + gDCHardwareManagementClient.deleteOrderOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteOrder_LRO_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deleteorder/SyncDeleteOrder.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deleteorder/SyncDeleteOrder.java new file mode 100644 index 000000000000..1068dcf6d1df --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deleteorder/SyncDeleteOrder.java @@ -0,0 +1,49 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteOrder_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.DeleteOrderRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.OrderName; +import com.google.protobuf.Empty; + +public class SyncDeleteOrder { + + public static void main(String[] args) throws Exception { + syncDeleteOrder(); + } + + public static void syncDeleteOrder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + DeleteOrderRequest request = + DeleteOrderRequest.newBuilder() + .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setRequestId("requestId693933066") + .setForce(true) + .build(); + gDCHardwareManagementClient.deleteOrderAsync(request).get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteOrder_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deleteorder/SyncDeleteOrderOrdername.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deleteorder/SyncDeleteOrderOrdername.java new file mode 100644 index 000000000000..0ab004f33c14 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deleteorder/SyncDeleteOrderOrdername.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteOrder_Ordername_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.OrderName; +import com.google.protobuf.Empty; + +public class SyncDeleteOrderOrdername { + + public static void main(String[] args) throws Exception { + syncDeleteOrderOrdername(); + } + + public static void syncDeleteOrderOrdername() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + OrderName name = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]"); + gDCHardwareManagementClient.deleteOrderAsync(name).get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteOrder_Ordername_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deleteorder/SyncDeleteOrderString.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deleteorder/SyncDeleteOrderString.java new file mode 100644 index 000000000000..cd01350691d6 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deleteorder/SyncDeleteOrderString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteOrder_String_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.OrderName; +import com.google.protobuf.Empty; + +public class SyncDeleteOrderString { + + public static void main(String[] args) throws Exception { + syncDeleteOrderString(); + } + + public static void syncDeleteOrderString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + String name = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString(); + gDCHardwareManagementClient.deleteOrderAsync(name).get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteOrder_String_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletezone/AsyncDeleteZone.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletezone/AsyncDeleteZone.java new file mode 100644 index 000000000000..f7a5cb14bbe7 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletezone/AsyncDeleteZone.java @@ -0,0 +1,52 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteZone_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.ZoneName; +import com.google.longrunning.Operation; + +public class AsyncDeleteZone { + + public static void main(String[] args) throws Exception { + asyncDeleteZone(); + } + + public static void asyncDeleteZone() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + DeleteZoneRequest request = + DeleteZoneRequest.newBuilder() + .setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + gDCHardwareManagementClient.deleteZoneCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteZone_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletezone/AsyncDeleteZoneLRO.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletezone/AsyncDeleteZoneLRO.java new file mode 100644 index 000000000000..148a31cb3b18 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletezone/AsyncDeleteZoneLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteZone_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata; +import com.google.cloud.gdchardwaremanagement.v1alpha.ZoneName; +import com.google.protobuf.Empty; + +public class AsyncDeleteZoneLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteZoneLRO(); + } + + public static void asyncDeleteZoneLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + DeleteZoneRequest request = + DeleteZoneRequest.newBuilder() + .setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + gDCHardwareManagementClient.deleteZoneOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteZone_LRO_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletezone/SyncDeleteZone.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletezone/SyncDeleteZone.java new file mode 100644 index 000000000000..598340e1777a --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletezone/SyncDeleteZone.java @@ -0,0 +1,48 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteZone_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.DeleteZoneRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.ZoneName; +import com.google.protobuf.Empty; + +public class SyncDeleteZone { + + public static void main(String[] args) throws Exception { + syncDeleteZone(); + } + + public static void syncDeleteZone() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + DeleteZoneRequest request = + DeleteZoneRequest.newBuilder() + .setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) + .setRequestId("requestId693933066") + .build(); + gDCHardwareManagementClient.deleteZoneAsync(request).get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteZone_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletezone/SyncDeleteZoneString.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletezone/SyncDeleteZoneString.java new file mode 100644 index 000000000000..88afeb6702ca --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletezone/SyncDeleteZoneString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteZone_String_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.ZoneName; +import com.google.protobuf.Empty; + +public class SyncDeleteZoneString { + + public static void main(String[] args) throws Exception { + syncDeleteZoneString(); + } + + public static void syncDeleteZoneString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + String name = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString(); + gDCHardwareManagementClient.deleteZoneAsync(name).get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteZone_String_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletezone/SyncDeleteZoneZonename.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletezone/SyncDeleteZoneZonename.java new file mode 100644 index 000000000000..0768c9b0c476 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/deletezone/SyncDeleteZoneZonename.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteZone_Zonename_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.ZoneName; +import com.google.protobuf.Empty; + +public class SyncDeleteZoneZonename { + + public static void main(String[] args) throws Exception { + syncDeleteZoneZonename(); + } + + public static void syncDeleteZoneZonename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + ZoneName name = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]"); + gDCHardwareManagementClient.deleteZoneAsync(name).get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteZone_Zonename_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getchangelogentry/AsyncGetChangeLogEntry.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getchangelogentry/AsyncGetChangeLogEntry.java new file mode 100644 index 000000000000..a17b2b97090f --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getchangelogentry/AsyncGetChangeLogEntry.java @@ -0,0 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetChangeLogEntry_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry; +import com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntryName; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest; + +public class AsyncGetChangeLogEntry { + + public static void main(String[] args) throws Exception { + asyncGetChangeLogEntry(); + } + + public static void asyncGetChangeLogEntry() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + GetChangeLogEntryRequest request = + GetChangeLogEntryRequest.newBuilder() + .setName( + ChangeLogEntryName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[CHANGE_LOG_ENTRY]") + .toString()) + .build(); + ApiFuture future = + gDCHardwareManagementClient.getChangeLogEntryCallable().futureCall(request); + // Do something. + ChangeLogEntry response = future.get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetChangeLogEntry_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getchangelogentry/SyncGetChangeLogEntry.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getchangelogentry/SyncGetChangeLogEntry.java new file mode 100644 index 000000000000..3fa6417a18a8 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getchangelogentry/SyncGetChangeLogEntry.java @@ -0,0 +1,49 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetChangeLogEntry_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry; +import com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntryName; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.GetChangeLogEntryRequest; + +public class SyncGetChangeLogEntry { + + public static void main(String[] args) throws Exception { + syncGetChangeLogEntry(); + } + + public static void syncGetChangeLogEntry() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + GetChangeLogEntryRequest request = + GetChangeLogEntryRequest.newBuilder() + .setName( + ChangeLogEntryName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[CHANGE_LOG_ENTRY]") + .toString()) + .build(); + ChangeLogEntry response = gDCHardwareManagementClient.getChangeLogEntry(request); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetChangeLogEntry_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getchangelogentry/SyncGetChangeLogEntryChangelogentryname.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getchangelogentry/SyncGetChangeLogEntryChangelogentryname.java new file mode 100644 index 000000000000..8af0abdb2447 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getchangelogentry/SyncGetChangeLogEntryChangelogentryname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetChangeLogEntry_Changelogentryname_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry; +import com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntryName; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; + +public class SyncGetChangeLogEntryChangelogentryname { + + public static void main(String[] args) throws Exception { + syncGetChangeLogEntryChangelogentryname(); + } + + public static void syncGetChangeLogEntryChangelogentryname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + ChangeLogEntryName name = + ChangeLogEntryName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[CHANGE_LOG_ENTRY]"); + ChangeLogEntry response = gDCHardwareManagementClient.getChangeLogEntry(name); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetChangeLogEntry_Changelogentryname_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getchangelogentry/SyncGetChangeLogEntryString.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getchangelogentry/SyncGetChangeLogEntryString.java new file mode 100644 index 000000000000..734d780efa93 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getchangelogentry/SyncGetChangeLogEntryString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetChangeLogEntry_String_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry; +import com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntryName; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; + +public class SyncGetChangeLogEntryString { + + public static void main(String[] args) throws Exception { + syncGetChangeLogEntryString(); + } + + public static void syncGetChangeLogEntryString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + String name = + ChangeLogEntryName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[CHANGE_LOG_ENTRY]") + .toString(); + ChangeLogEntry response = gDCHardwareManagementClient.getChangeLogEntry(name); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetChangeLogEntry_String_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getcomment/AsyncGetComment.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getcomment/AsyncGetComment.java new file mode 100644 index 000000000000..378d2ac55c08 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getcomment/AsyncGetComment.java @@ -0,0 +1,51 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetComment_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.Comment; +import com.google.cloud.gdchardwaremanagement.v1alpha.CommentName; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest; + +public class AsyncGetComment { + + public static void main(String[] args) throws Exception { + asyncGetComment(); + } + + public static void asyncGetComment() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + GetCommentRequest request = + GetCommentRequest.newBuilder() + .setName(CommentName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[COMMENT]").toString()) + .build(); + ApiFuture future = + gDCHardwareManagementClient.getCommentCallable().futureCall(request); + // Do something. + Comment response = future.get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetComment_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getcomment/SyncGetComment.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getcomment/SyncGetComment.java new file mode 100644 index 000000000000..1b76de9c5310 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getcomment/SyncGetComment.java @@ -0,0 +1,47 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetComment_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.Comment; +import com.google.cloud.gdchardwaremanagement.v1alpha.CommentName; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.GetCommentRequest; + +public class SyncGetComment { + + public static void main(String[] args) throws Exception { + syncGetComment(); + } + + public static void syncGetComment() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + GetCommentRequest request = + GetCommentRequest.newBuilder() + .setName(CommentName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[COMMENT]").toString()) + .build(); + Comment response = gDCHardwareManagementClient.getComment(request); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetComment_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getcomment/SyncGetCommentCommentname.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getcomment/SyncGetCommentCommentname.java new file mode 100644 index 000000000000..75cb109833aa --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getcomment/SyncGetCommentCommentname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetComment_Commentname_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.Comment; +import com.google.cloud.gdchardwaremanagement.v1alpha.CommentName; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; + +public class SyncGetCommentCommentname { + + public static void main(String[] args) throws Exception { + syncGetCommentCommentname(); + } + + public static void syncGetCommentCommentname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + CommentName name = CommentName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[COMMENT]"); + Comment response = gDCHardwareManagementClient.getComment(name); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetComment_Commentname_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getcomment/SyncGetCommentString.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getcomment/SyncGetCommentString.java new file mode 100644 index 000000000000..44fe94d8aaf1 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getcomment/SyncGetCommentString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetComment_String_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.Comment; +import com.google.cloud.gdchardwaremanagement.v1alpha.CommentName; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; + +public class SyncGetCommentString { + + public static void main(String[] args) throws Exception { + syncGetCommentString(); + } + + public static void syncGetCommentString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + String name = CommentName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[COMMENT]").toString(); + Comment response = gDCHardwareManagementClient.getComment(name); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetComment_String_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/gethardware/AsyncGetHardware.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/gethardware/AsyncGetHardware.java new file mode 100644 index 000000000000..2cf35536b0b7 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/gethardware/AsyncGetHardware.java @@ -0,0 +1,51 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetHardware_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.Hardware; +import com.google.cloud.gdchardwaremanagement.v1alpha.HardwareName; + +public class AsyncGetHardware { + + public static void main(String[] args) throws Exception { + asyncGetHardware(); + } + + public static void asyncGetHardware() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + GetHardwareRequest request = + GetHardwareRequest.newBuilder() + .setName(HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]").toString()) + .build(); + ApiFuture future = + gDCHardwareManagementClient.getHardwareCallable().futureCall(request); + // Do something. + Hardware response = future.get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetHardware_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/gethardware/SyncGetHardware.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/gethardware/SyncGetHardware.java new file mode 100644 index 000000000000..85dbafe1ae57 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/gethardware/SyncGetHardware.java @@ -0,0 +1,47 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetHardware_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.Hardware; +import com.google.cloud.gdchardwaremanagement.v1alpha.HardwareName; + +public class SyncGetHardware { + + public static void main(String[] args) throws Exception { + syncGetHardware(); + } + + public static void syncGetHardware() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + GetHardwareRequest request = + GetHardwareRequest.newBuilder() + .setName(HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]").toString()) + .build(); + Hardware response = gDCHardwareManagementClient.getHardware(request); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetHardware_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/gethardware/SyncGetHardwareHardwarename.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/gethardware/SyncGetHardwareHardwarename.java new file mode 100644 index 000000000000..3e37dc9022ad --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/gethardware/SyncGetHardwareHardwarename.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetHardware_Hardwarename_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.Hardware; +import com.google.cloud.gdchardwaremanagement.v1alpha.HardwareName; + +public class SyncGetHardwareHardwarename { + + public static void main(String[] args) throws Exception { + syncGetHardwareHardwarename(); + } + + public static void syncGetHardwareHardwarename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + HardwareName name = HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]"); + Hardware response = gDCHardwareManagementClient.getHardware(name); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetHardware_Hardwarename_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/gethardware/SyncGetHardwareString.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/gethardware/SyncGetHardwareString.java new file mode 100644 index 000000000000..2082d5527898 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/gethardware/SyncGetHardwareString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetHardware_String_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.Hardware; +import com.google.cloud.gdchardwaremanagement.v1alpha.HardwareName; + +public class SyncGetHardwareString { + + public static void main(String[] args) throws Exception { + syncGetHardwareString(); + } + + public static void syncGetHardwareString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + String name = HardwareName.of("[PROJECT]", "[LOCATION]", "[HARDWARE]").toString(); + Hardware response = gDCHardwareManagementClient.getHardware(name); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetHardware_String_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/gethardwaregroup/AsyncGetHardwareGroup.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/gethardwaregroup/AsyncGetHardwareGroup.java new file mode 100644 index 000000000000..1e6d236d39af --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/gethardwaregroup/AsyncGetHardwareGroup.java @@ -0,0 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetHardwareGroup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup; +import com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroupName; + +public class AsyncGetHardwareGroup { + + public static void main(String[] args) throws Exception { + asyncGetHardwareGroup(); + } + + public static void asyncGetHardwareGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + GetHardwareGroupRequest request = + GetHardwareGroupRequest.newBuilder() + .setName( + HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]") + .toString()) + .build(); + ApiFuture future = + gDCHardwareManagementClient.getHardwareGroupCallable().futureCall(request); + // Do something. + HardwareGroup response = future.get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetHardwareGroup_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/gethardwaregroup/SyncGetHardwareGroup.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/gethardwaregroup/SyncGetHardwareGroup.java new file mode 100644 index 000000000000..b79c0690c99b --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/gethardwaregroup/SyncGetHardwareGroup.java @@ -0,0 +1,49 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetHardwareGroup_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.GetHardwareGroupRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup; +import com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroupName; + +public class SyncGetHardwareGroup { + + public static void main(String[] args) throws Exception { + syncGetHardwareGroup(); + } + + public static void syncGetHardwareGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + GetHardwareGroupRequest request = + GetHardwareGroupRequest.newBuilder() + .setName( + HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]") + .toString()) + .build(); + HardwareGroup response = gDCHardwareManagementClient.getHardwareGroup(request); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetHardwareGroup_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/gethardwaregroup/SyncGetHardwareGroupHardwaregroupname.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/gethardwaregroup/SyncGetHardwareGroupHardwaregroupname.java new file mode 100644 index 000000000000..d779450bccd9 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/gethardwaregroup/SyncGetHardwareGroupHardwaregroupname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetHardwareGroup_Hardwaregroupname_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup; +import com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroupName; + +public class SyncGetHardwareGroupHardwaregroupname { + + public static void main(String[] args) throws Exception { + syncGetHardwareGroupHardwaregroupname(); + } + + public static void syncGetHardwareGroupHardwaregroupname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + HardwareGroupName name = + HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]"); + HardwareGroup response = gDCHardwareManagementClient.getHardwareGroup(name); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetHardwareGroup_Hardwaregroupname_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/gethardwaregroup/SyncGetHardwareGroupString.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/gethardwaregroup/SyncGetHardwareGroupString.java new file mode 100644 index 000000000000..e39db6d98480 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/gethardwaregroup/SyncGetHardwareGroupString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetHardwareGroup_String_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup; +import com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroupName; + +public class SyncGetHardwareGroupString { + + public static void main(String[] args) throws Exception { + syncGetHardwareGroupString(); + } + + public static void syncGetHardwareGroupString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + String name = + HardwareGroupName.of("[PROJECT]", "[LOCATION]", "[ORDER]", "[HARDWARE_GROUP]").toString(); + HardwareGroup response = gDCHardwareManagementClient.getHardwareGroup(name); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetHardwareGroup_String_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getlocation/AsyncGetLocation.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getlocation/AsyncGetLocation.java new file mode 100644 index 000000000000..93db276ade82 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getlocation/AsyncGetLocation.java @@ -0,0 +1,47 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetLocation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; + +public class AsyncGetLocation { + + public static void main(String[] args) throws Exception { + asyncGetLocation(); + } + + public static void asyncGetLocation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = + gDCHardwareManagementClient.getLocationCallable().futureCall(request); + // Do something. + Location response = future.get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetLocation_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getlocation/SyncGetLocation.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getlocation/SyncGetLocation.java new file mode 100644 index 000000000000..8710fb2e8e8e --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getlocation/SyncGetLocation.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetLocation_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; + +public class SyncGetLocation { + + public static void main(String[] args) throws Exception { + syncGetLocation(); + } + + public static void syncGetLocation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + Location response = gDCHardwareManagementClient.getLocation(request); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetLocation_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getorder/AsyncGetOrder.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getorder/AsyncGetOrder.java new file mode 100644 index 000000000000..3502f39d23fa --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getorder/AsyncGetOrder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetOrder_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.Order; +import com.google.cloud.gdchardwaremanagement.v1alpha.OrderName; + +public class AsyncGetOrder { + + public static void main(String[] args) throws Exception { + asyncGetOrder(); + } + + public static void asyncGetOrder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + GetOrderRequest request = + GetOrderRequest.newBuilder() + .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .build(); + ApiFuture future = gDCHardwareManagementClient.getOrderCallable().futureCall(request); + // Do something. + Order response = future.get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetOrder_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getorder/SyncGetOrder.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getorder/SyncGetOrder.java new file mode 100644 index 000000000000..d49b232fea74 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getorder/SyncGetOrder.java @@ -0,0 +1,47 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetOrder_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.GetOrderRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.Order; +import com.google.cloud.gdchardwaremanagement.v1alpha.OrderName; + +public class SyncGetOrder { + + public static void main(String[] args) throws Exception { + syncGetOrder(); + } + + public static void syncGetOrder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + GetOrderRequest request = + GetOrderRequest.newBuilder() + .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .build(); + Order response = gDCHardwareManagementClient.getOrder(request); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetOrder_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getorder/SyncGetOrderOrdername.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getorder/SyncGetOrderOrdername.java new file mode 100644 index 000000000000..aa395c1d03c5 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getorder/SyncGetOrderOrdername.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetOrder_Ordername_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.Order; +import com.google.cloud.gdchardwaremanagement.v1alpha.OrderName; + +public class SyncGetOrderOrdername { + + public static void main(String[] args) throws Exception { + syncGetOrderOrdername(); + } + + public static void syncGetOrderOrdername() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + OrderName name = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]"); + Order response = gDCHardwareManagementClient.getOrder(name); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetOrder_Ordername_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getorder/SyncGetOrderString.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getorder/SyncGetOrderString.java new file mode 100644 index 000000000000..2dd6999428d7 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getorder/SyncGetOrderString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetOrder_String_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.Order; +import com.google.cloud.gdchardwaremanagement.v1alpha.OrderName; + +public class SyncGetOrderString { + + public static void main(String[] args) throws Exception { + syncGetOrderString(); + } + + public static void syncGetOrderString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + String name = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString(); + Order response = gDCHardwareManagementClient.getOrder(name); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetOrder_String_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getsite/AsyncGetSite.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getsite/AsyncGetSite.java new file mode 100644 index 000000000000..cb98f24ab168 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getsite/AsyncGetSite.java @@ -0,0 +1,50 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetSite_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.Site; +import com.google.cloud.gdchardwaremanagement.v1alpha.SiteName; + +public class AsyncGetSite { + + public static void main(String[] args) throws Exception { + asyncGetSite(); + } + + public static void asyncGetSite() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + GetSiteRequest request = + GetSiteRequest.newBuilder() + .setName(SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString()) + .build(); + ApiFuture future = gDCHardwareManagementClient.getSiteCallable().futureCall(request); + // Do something. + Site response = future.get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetSite_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getsite/SyncGetSite.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getsite/SyncGetSite.java new file mode 100644 index 000000000000..e629b9281338 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getsite/SyncGetSite.java @@ -0,0 +1,47 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetSite_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.GetSiteRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.Site; +import com.google.cloud.gdchardwaremanagement.v1alpha.SiteName; + +public class SyncGetSite { + + public static void main(String[] args) throws Exception { + syncGetSite(); + } + + public static void syncGetSite() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + GetSiteRequest request = + GetSiteRequest.newBuilder() + .setName(SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString()) + .build(); + Site response = gDCHardwareManagementClient.getSite(request); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetSite_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getsite/SyncGetSiteSitename.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getsite/SyncGetSiteSitename.java new file mode 100644 index 000000000000..f3c74c7e9d57 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getsite/SyncGetSiteSitename.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetSite_Sitename_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.Site; +import com.google.cloud.gdchardwaremanagement.v1alpha.SiteName; + +public class SyncGetSiteSitename { + + public static void main(String[] args) throws Exception { + syncGetSiteSitename(); + } + + public static void syncGetSiteSitename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + SiteName name = SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]"); + Site response = gDCHardwareManagementClient.getSite(name); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetSite_Sitename_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getsite/SyncGetSiteString.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getsite/SyncGetSiteString.java new file mode 100644 index 000000000000..3c71f3634b36 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getsite/SyncGetSiteString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetSite_String_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.Site; +import com.google.cloud.gdchardwaremanagement.v1alpha.SiteName; + +public class SyncGetSiteString { + + public static void main(String[] args) throws Exception { + syncGetSiteString(); + } + + public static void syncGetSiteString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + String name = SiteName.of("[PROJECT]", "[LOCATION]", "[SITE]").toString(); + Site response = gDCHardwareManagementClient.getSite(name); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetSite_String_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getsku/AsyncGetSku.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getsku/AsyncGetSku.java new file mode 100644 index 000000000000..142596e3d9b0 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getsku/AsyncGetSku.java @@ -0,0 +1,50 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetSku_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.Sku; +import com.google.cloud.gdchardwaremanagement.v1alpha.SkuName; + +public class AsyncGetSku { + + public static void main(String[] args) throws Exception { + asyncGetSku(); + } + + public static void asyncGetSku() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + GetSkuRequest request = + GetSkuRequest.newBuilder() + .setName(SkuName.of("[PROJECT]", "[LOCATION]", "[SKU]").toString()) + .build(); + ApiFuture future = gDCHardwareManagementClient.getSkuCallable().futureCall(request); + // Do something. + Sku response = future.get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetSku_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getsku/SyncGetSku.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getsku/SyncGetSku.java new file mode 100644 index 000000000000..7aa1da8dc8c5 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getsku/SyncGetSku.java @@ -0,0 +1,47 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetSku_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.GetSkuRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.Sku; +import com.google.cloud.gdchardwaremanagement.v1alpha.SkuName; + +public class SyncGetSku { + + public static void main(String[] args) throws Exception { + syncGetSku(); + } + + public static void syncGetSku() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + GetSkuRequest request = + GetSkuRequest.newBuilder() + .setName(SkuName.of("[PROJECT]", "[LOCATION]", "[SKU]").toString()) + .build(); + Sku response = gDCHardwareManagementClient.getSku(request); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetSku_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getsku/SyncGetSkuSkuname.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getsku/SyncGetSkuSkuname.java new file mode 100644 index 000000000000..36f16871f36b --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getsku/SyncGetSkuSkuname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetSku_Skuname_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.Sku; +import com.google.cloud.gdchardwaremanagement.v1alpha.SkuName; + +public class SyncGetSkuSkuname { + + public static void main(String[] args) throws Exception { + syncGetSkuSkuname(); + } + + public static void syncGetSkuSkuname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + SkuName name = SkuName.of("[PROJECT]", "[LOCATION]", "[SKU]"); + Sku response = gDCHardwareManagementClient.getSku(name); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetSku_Skuname_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getsku/SyncGetSkuString.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getsku/SyncGetSkuString.java new file mode 100644 index 000000000000..3d8cf0eeae8e --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getsku/SyncGetSkuString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetSku_String_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.Sku; +import com.google.cloud.gdchardwaremanagement.v1alpha.SkuName; + +public class SyncGetSkuString { + + public static void main(String[] args) throws Exception { + syncGetSkuString(); + } + + public static void syncGetSkuString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + String name = SkuName.of("[PROJECT]", "[LOCATION]", "[SKU]").toString(); + Sku response = gDCHardwareManagementClient.getSku(name); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetSku_String_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getzone/AsyncGetZone.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getzone/AsyncGetZone.java new file mode 100644 index 000000000000..d2fa4cb327fd --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getzone/AsyncGetZone.java @@ -0,0 +1,50 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetZone_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.Zone; +import com.google.cloud.gdchardwaremanagement.v1alpha.ZoneName; + +public class AsyncGetZone { + + public static void main(String[] args) throws Exception { + asyncGetZone(); + } + + public static void asyncGetZone() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + GetZoneRequest request = + GetZoneRequest.newBuilder() + .setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) + .build(); + ApiFuture future = gDCHardwareManagementClient.getZoneCallable().futureCall(request); + // Do something. + Zone response = future.get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetZone_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getzone/SyncGetZone.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getzone/SyncGetZone.java new file mode 100644 index 000000000000..34005b0aac49 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getzone/SyncGetZone.java @@ -0,0 +1,47 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetZone_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.GetZoneRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.Zone; +import com.google.cloud.gdchardwaremanagement.v1alpha.ZoneName; + +public class SyncGetZone { + + public static void main(String[] args) throws Exception { + syncGetZone(); + } + + public static void syncGetZone() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + GetZoneRequest request = + GetZoneRequest.newBuilder() + .setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) + .build(); + Zone response = gDCHardwareManagementClient.getZone(request); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetZone_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getzone/SyncGetZoneString.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getzone/SyncGetZoneString.java new file mode 100644 index 000000000000..c692539700f4 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getzone/SyncGetZoneString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetZone_String_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.Zone; +import com.google.cloud.gdchardwaremanagement.v1alpha.ZoneName; + +public class SyncGetZoneString { + + public static void main(String[] args) throws Exception { + syncGetZoneString(); + } + + public static void syncGetZoneString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + String name = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString(); + Zone response = gDCHardwareManagementClient.getZone(name); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetZone_String_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getzone/SyncGetZoneZonename.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getzone/SyncGetZoneZonename.java new file mode 100644 index 000000000000..1a18eddc528b --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/getzone/SyncGetZoneZonename.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetZone_Zonename_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.Zone; +import com.google.cloud.gdchardwaremanagement.v1alpha.ZoneName; + +public class SyncGetZoneZonename { + + public static void main(String[] args) throws Exception { + syncGetZoneZonename(); + } + + public static void syncGetZoneZonename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + ZoneName name = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]"); + Zone response = gDCHardwareManagementClient.getZone(name); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetZone_Zonename_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listchangelogentries/AsyncListChangeLogEntries.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listchangelogentries/AsyncListChangeLogEntries.java new file mode 100644 index 000000000000..d211a96824b3 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listchangelogentries/AsyncListChangeLogEntries.java @@ -0,0 +1,57 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListChangeLogEntries_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.OrderName; + +public class AsyncListChangeLogEntries { + + public static void main(String[] args) throws Exception { + asyncListChangeLogEntries(); + } + + public static void asyncListChangeLogEntries() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + ListChangeLogEntriesRequest request = + ListChangeLogEntriesRequest.newBuilder() + .setParent(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + gDCHardwareManagementClient.listChangeLogEntriesPagedCallable().futureCall(request); + // Do something. + for (ChangeLogEntry element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListChangeLogEntries_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listchangelogentries/AsyncListChangeLogEntriesPaged.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listchangelogentries/AsyncListChangeLogEntriesPaged.java new file mode 100644 index 000000000000..ab9f69594df0 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listchangelogentries/AsyncListChangeLogEntriesPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListChangeLogEntries_Paged_async] +import com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse; +import com.google.cloud.gdchardwaremanagement.v1alpha.OrderName; +import com.google.common.base.Strings; + +public class AsyncListChangeLogEntriesPaged { + + public static void main(String[] args) throws Exception { + asyncListChangeLogEntriesPaged(); + } + + public static void asyncListChangeLogEntriesPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + ListChangeLogEntriesRequest request = + ListChangeLogEntriesRequest.newBuilder() + .setParent(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListChangeLogEntriesResponse response = + gDCHardwareManagementClient.listChangeLogEntriesCallable().call(request); + for (ChangeLogEntry element : response.getChangeLogEntriesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListChangeLogEntries_Paged_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listchangelogentries/SyncListChangeLogEntries.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listchangelogentries/SyncListChangeLogEntries.java new file mode 100644 index 000000000000..c6cdf80e44ee --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listchangelogentries/SyncListChangeLogEntries.java @@ -0,0 +1,54 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListChangeLogEntries_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.OrderName; + +public class SyncListChangeLogEntries { + + public static void main(String[] args) throws Exception { + syncListChangeLogEntries(); + } + + public static void syncListChangeLogEntries() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + ListChangeLogEntriesRequest request = + ListChangeLogEntriesRequest.newBuilder() + .setParent(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (ChangeLogEntry element : + gDCHardwareManagementClient.listChangeLogEntries(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListChangeLogEntries_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listchangelogentries/SyncListChangeLogEntriesOrdername.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listchangelogentries/SyncListChangeLogEntriesOrdername.java new file mode 100644 index 000000000000..463db01f8238 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listchangelogentries/SyncListChangeLogEntriesOrdername.java @@ -0,0 +1,46 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListChangeLogEntries_Ordername_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.OrderName; + +public class SyncListChangeLogEntriesOrdername { + + public static void main(String[] args) throws Exception { + syncListChangeLogEntriesOrdername(); + } + + public static void syncListChangeLogEntriesOrdername() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + OrderName parent = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]"); + for (ChangeLogEntry element : + gDCHardwareManagementClient.listChangeLogEntries(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListChangeLogEntries_Ordername_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listchangelogentries/SyncListChangeLogEntriesString.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listchangelogentries/SyncListChangeLogEntriesString.java new file mode 100644 index 000000000000..db9f34617f75 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listchangelogentries/SyncListChangeLogEntriesString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListChangeLogEntries_String_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.OrderName; + +public class SyncListChangeLogEntriesString { + + public static void main(String[] args) throws Exception { + syncListChangeLogEntriesString(); + } + + public static void syncListChangeLogEntriesString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + String parent = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString(); + for (ChangeLogEntry element : + gDCHardwareManagementClient.listChangeLogEntries(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListChangeLogEntries_String_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listcomments/AsyncListComments.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listcomments/AsyncListComments.java new file mode 100644 index 000000000000..454ad441d0d0 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listcomments/AsyncListComments.java @@ -0,0 +1,57 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListComments_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.Comment; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.OrderName; + +public class AsyncListComments { + + public static void main(String[] args) throws Exception { + asyncListComments(); + } + + public static void asyncListComments() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + ListCommentsRequest request = + ListCommentsRequest.newBuilder() + .setParent(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + gDCHardwareManagementClient.listCommentsPagedCallable().futureCall(request); + // Do something. + for (Comment element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListComments_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listcomments/AsyncListCommentsPaged.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listcomments/AsyncListCommentsPaged.java new file mode 100644 index 000000000000..2fccc9466247 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listcomments/AsyncListCommentsPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListComments_Paged_async] +import com.google.cloud.gdchardwaremanagement.v1alpha.Comment; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse; +import com.google.cloud.gdchardwaremanagement.v1alpha.OrderName; +import com.google.common.base.Strings; + +public class AsyncListCommentsPaged { + + public static void main(String[] args) throws Exception { + asyncListCommentsPaged(); + } + + public static void asyncListCommentsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + ListCommentsRequest request = + ListCommentsRequest.newBuilder() + .setParent(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListCommentsResponse response = + gDCHardwareManagementClient.listCommentsCallable().call(request); + for (Comment element : response.getCommentsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListComments_Paged_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listcomments/SyncListComments.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listcomments/SyncListComments.java new file mode 100644 index 000000000000..951b5651e2e5 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listcomments/SyncListComments.java @@ -0,0 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListComments_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.Comment; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListCommentsRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.OrderName; + +public class SyncListComments { + + public static void main(String[] args) throws Exception { + syncListComments(); + } + + public static void syncListComments() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + ListCommentsRequest request = + ListCommentsRequest.newBuilder() + .setParent(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (Comment element : gDCHardwareManagementClient.listComments(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListComments_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listcomments/SyncListCommentsOrdername.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listcomments/SyncListCommentsOrdername.java new file mode 100644 index 000000000000..f4825ca4c1cd --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listcomments/SyncListCommentsOrdername.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListComments_Ordername_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.Comment; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.OrderName; + +public class SyncListCommentsOrdername { + + public static void main(String[] args) throws Exception { + syncListCommentsOrdername(); + } + + public static void syncListCommentsOrdername() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + OrderName parent = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]"); + for (Comment element : gDCHardwareManagementClient.listComments(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListComments_Ordername_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listcomments/SyncListCommentsString.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listcomments/SyncListCommentsString.java new file mode 100644 index 000000000000..f46ebbbf1989 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listcomments/SyncListCommentsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListComments_String_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.Comment; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.OrderName; + +public class SyncListCommentsString { + + public static void main(String[] args) throws Exception { + syncListCommentsString(); + } + + public static void syncListCommentsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + String parent = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString(); + for (Comment element : gDCHardwareManagementClient.listComments(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListComments_String_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listhardware/AsyncListHardware.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listhardware/AsyncListHardware.java new file mode 100644 index 000000000000..c8a585b86d3b --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listhardware/AsyncListHardware.java @@ -0,0 +1,57 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListHardware_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.Hardware; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.LocationName; + +public class AsyncListHardware { + + public static void main(String[] args) throws Exception { + asyncListHardware(); + } + + public static void asyncListHardware() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + ListHardwareRequest request = + ListHardwareRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + gDCHardwareManagementClient.listHardwarePagedCallable().futureCall(request); + // Do something. + for (Hardware element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListHardware_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listhardware/AsyncListHardwarePaged.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listhardware/AsyncListHardwarePaged.java new file mode 100644 index 000000000000..61126cd1b55f --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listhardware/AsyncListHardwarePaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListHardware_Paged_async] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.Hardware; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse; +import com.google.cloud.gdchardwaremanagement.v1alpha.LocationName; +import com.google.common.base.Strings; + +public class AsyncListHardwarePaged { + + public static void main(String[] args) throws Exception { + asyncListHardwarePaged(); + } + + public static void asyncListHardwarePaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + ListHardwareRequest request = + ListHardwareRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListHardwareResponse response = + gDCHardwareManagementClient.listHardwareCallable().call(request); + for (Hardware element : response.getHardwareList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListHardware_Paged_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listhardware/SyncListHardware.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listhardware/SyncListHardware.java new file mode 100644 index 000000000000..c7abd609aa66 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listhardware/SyncListHardware.java @@ -0,0 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListHardware_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.Hardware; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.LocationName; + +public class SyncListHardware { + + public static void main(String[] args) throws Exception { + syncListHardware(); + } + + public static void syncListHardware() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + ListHardwareRequest request = + ListHardwareRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (Hardware element : gDCHardwareManagementClient.listHardware(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListHardware_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listhardware/SyncListHardwareLocationname.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listhardware/SyncListHardwareLocationname.java new file mode 100644 index 000000000000..c1d872b619fa --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listhardware/SyncListHardwareLocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListHardware_Locationname_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.Hardware; +import com.google.cloud.gdchardwaremanagement.v1alpha.LocationName; + +public class SyncListHardwareLocationname { + + public static void main(String[] args) throws Exception { + syncListHardwareLocationname(); + } + + public static void syncListHardwareLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Hardware element : gDCHardwareManagementClient.listHardware(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListHardware_Locationname_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listhardware/SyncListHardwareString.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listhardware/SyncListHardwareString.java new file mode 100644 index 000000000000..9bb16124fd9a --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listhardware/SyncListHardwareString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListHardware_String_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.Hardware; +import com.google.cloud.gdchardwaremanagement.v1alpha.LocationName; + +public class SyncListHardwareString { + + public static void main(String[] args) throws Exception { + syncListHardwareString(); + } + + public static void syncListHardwareString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Hardware element : gDCHardwareManagementClient.listHardware(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListHardware_String_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listhardwaregroups/AsyncListHardwareGroups.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listhardwaregroups/AsyncListHardwareGroups.java new file mode 100644 index 000000000000..9bb243d9d60f --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listhardwaregroups/AsyncListHardwareGroups.java @@ -0,0 +1,57 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListHardwareGroups_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.OrderName; + +public class AsyncListHardwareGroups { + + public static void main(String[] args) throws Exception { + asyncListHardwareGroups(); + } + + public static void asyncListHardwareGroups() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + ListHardwareGroupsRequest request = + ListHardwareGroupsRequest.newBuilder() + .setParent(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + gDCHardwareManagementClient.listHardwareGroupsPagedCallable().futureCall(request); + // Do something. + for (HardwareGroup element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListHardwareGroups_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listhardwaregroups/AsyncListHardwareGroupsPaged.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listhardwaregroups/AsyncListHardwareGroupsPaged.java new file mode 100644 index 000000000000..1cad6b3dbf12 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listhardwaregroups/AsyncListHardwareGroupsPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListHardwareGroups_Paged_async] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse; +import com.google.cloud.gdchardwaremanagement.v1alpha.OrderName; +import com.google.common.base.Strings; + +public class AsyncListHardwareGroupsPaged { + + public static void main(String[] args) throws Exception { + asyncListHardwareGroupsPaged(); + } + + public static void asyncListHardwareGroupsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + ListHardwareGroupsRequest request = + ListHardwareGroupsRequest.newBuilder() + .setParent(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListHardwareGroupsResponse response = + gDCHardwareManagementClient.listHardwareGroupsCallable().call(request); + for (HardwareGroup element : response.getHardwareGroupsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListHardwareGroups_Paged_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listhardwaregroups/SyncListHardwareGroups.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listhardwaregroups/SyncListHardwareGroups.java new file mode 100644 index 000000000000..f87127647cd9 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listhardwaregroups/SyncListHardwareGroups.java @@ -0,0 +1,54 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListHardwareGroups_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.OrderName; + +public class SyncListHardwareGroups { + + public static void main(String[] args) throws Exception { + syncListHardwareGroups(); + } + + public static void syncListHardwareGroups() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + ListHardwareGroupsRequest request = + ListHardwareGroupsRequest.newBuilder() + .setParent(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (HardwareGroup element : + gDCHardwareManagementClient.listHardwareGroups(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListHardwareGroups_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listhardwaregroups/SyncListHardwareGroupsOrdername.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listhardwaregroups/SyncListHardwareGroupsOrdername.java new file mode 100644 index 000000000000..584c2e42d389 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listhardwaregroups/SyncListHardwareGroupsOrdername.java @@ -0,0 +1,46 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListHardwareGroups_Ordername_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup; +import com.google.cloud.gdchardwaremanagement.v1alpha.OrderName; + +public class SyncListHardwareGroupsOrdername { + + public static void main(String[] args) throws Exception { + syncListHardwareGroupsOrdername(); + } + + public static void syncListHardwareGroupsOrdername() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + OrderName parent = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]"); + for (HardwareGroup element : + gDCHardwareManagementClient.listHardwareGroups(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListHardwareGroups_Ordername_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listhardwaregroups/SyncListHardwareGroupsString.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listhardwaregroups/SyncListHardwareGroupsString.java new file mode 100644 index 000000000000..6cd09c60a8ed --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listhardwaregroups/SyncListHardwareGroupsString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListHardwareGroups_String_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup; +import com.google.cloud.gdchardwaremanagement.v1alpha.OrderName; + +public class SyncListHardwareGroupsString { + + public static void main(String[] args) throws Exception { + syncListHardwareGroupsString(); + } + + public static void syncListHardwareGroupsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + String parent = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString(); + for (HardwareGroup element : + gDCHardwareManagementClient.listHardwareGroups(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListHardwareGroups_String_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listlocations/AsyncListLocations.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listlocations/AsyncListLocations.java new file mode 100644 index 000000000000..8c77c2b2a48b --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listlocations/AsyncListLocations.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListLocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; + +public class AsyncListLocations { + + public static void main(String[] args) throws Exception { + asyncListLocations(); + } + + public static void asyncListLocations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + gDCHardwareManagementClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListLocations_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listlocations/AsyncListLocationsPaged.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 000000000000..23c1658866fe --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listlocations/AsyncListLocationsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListLocations_Paged_async] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +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 AsyncListLocationsPaged { + + public static void main(String[] args) throws Exception { + asyncListLocationsPaged(); + } + + public static void asyncListLocationsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = + gDCHardwareManagementClient.listLocationsCallable().call(request); + for (Location element : response.getLocationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListLocations_Paged_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listlocations/SyncListLocations.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listlocations/SyncListLocations.java new file mode 100644 index 000000000000..048f99e0aba7 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listlocations/SyncListLocations.java @@ -0,0 +1,51 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListLocations_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; + +public class SyncListLocations { + + public static void main(String[] args) throws Exception { + syncListLocations(); + } + + public static void syncListLocations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : gDCHardwareManagementClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListLocations_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listorders/AsyncListOrders.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listorders/AsyncListOrders.java new file mode 100644 index 000000000000..8059e1b657fe --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listorders/AsyncListOrders.java @@ -0,0 +1,57 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListOrders_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.LocationName; +import com.google.cloud.gdchardwaremanagement.v1alpha.Order; + +public class AsyncListOrders { + + public static void main(String[] args) throws Exception { + asyncListOrders(); + } + + public static void asyncListOrders() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + ListOrdersRequest request = + ListOrdersRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + gDCHardwareManagementClient.listOrdersPagedCallable().futureCall(request); + // Do something. + for (Order element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListOrders_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listorders/AsyncListOrdersPaged.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listorders/AsyncListOrdersPaged.java new file mode 100644 index 000000000000..345f8bd9bfe3 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listorders/AsyncListOrdersPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListOrders_Paged_async] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse; +import com.google.cloud.gdchardwaremanagement.v1alpha.LocationName; +import com.google.cloud.gdchardwaremanagement.v1alpha.Order; +import com.google.common.base.Strings; + +public class AsyncListOrdersPaged { + + public static void main(String[] args) throws Exception { + asyncListOrdersPaged(); + } + + public static void asyncListOrdersPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + ListOrdersRequest request = + ListOrdersRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListOrdersResponse response = + gDCHardwareManagementClient.listOrdersCallable().call(request); + for (Order element : response.getOrdersList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListOrders_Paged_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listorders/SyncListOrders.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listorders/SyncListOrders.java new file mode 100644 index 000000000000..8f36c398a4be --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listorders/SyncListOrders.java @@ -0,0 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListOrders_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListOrdersRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.LocationName; +import com.google.cloud.gdchardwaremanagement.v1alpha.Order; + +public class SyncListOrders { + + public static void main(String[] args) throws Exception { + syncListOrders(); + } + + public static void syncListOrders() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + ListOrdersRequest request = + ListOrdersRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (Order element : gDCHardwareManagementClient.listOrders(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListOrders_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listorders/SyncListOrdersLocationname.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listorders/SyncListOrdersLocationname.java new file mode 100644 index 000000000000..87baf4cf58ac --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listorders/SyncListOrdersLocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListOrders_Locationname_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.LocationName; +import com.google.cloud.gdchardwaremanagement.v1alpha.Order; + +public class SyncListOrdersLocationname { + + public static void main(String[] args) throws Exception { + syncListOrdersLocationname(); + } + + public static void syncListOrdersLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Order element : gDCHardwareManagementClient.listOrders(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListOrders_Locationname_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listorders/SyncListOrdersString.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listorders/SyncListOrdersString.java new file mode 100644 index 000000000000..72bd81b7201c --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listorders/SyncListOrdersString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListOrders_String_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.LocationName; +import com.google.cloud.gdchardwaremanagement.v1alpha.Order; + +public class SyncListOrdersString { + + public static void main(String[] args) throws Exception { + syncListOrdersString(); + } + + public static void syncListOrdersString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Order element : gDCHardwareManagementClient.listOrders(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListOrders_String_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listsites/AsyncListSites.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listsites/AsyncListSites.java new file mode 100644 index 000000000000..eb7ad1949be0 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listsites/AsyncListSites.java @@ -0,0 +1,57 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListSites_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.LocationName; +import com.google.cloud.gdchardwaremanagement.v1alpha.Site; + +public class AsyncListSites { + + public static void main(String[] args) throws Exception { + asyncListSites(); + } + + public static void asyncListSites() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + ListSitesRequest request = + ListSitesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + gDCHardwareManagementClient.listSitesPagedCallable().futureCall(request); + // Do something. + for (Site element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListSites_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listsites/AsyncListSitesPaged.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listsites/AsyncListSitesPaged.java new file mode 100644 index 000000000000..83d96a6ac431 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listsites/AsyncListSitesPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListSites_Paged_async] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse; +import com.google.cloud.gdchardwaremanagement.v1alpha.LocationName; +import com.google.cloud.gdchardwaremanagement.v1alpha.Site; +import com.google.common.base.Strings; + +public class AsyncListSitesPaged { + + public static void main(String[] args) throws Exception { + asyncListSitesPaged(); + } + + public static void asyncListSitesPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + ListSitesRequest request = + ListSitesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListSitesResponse response = gDCHardwareManagementClient.listSitesCallable().call(request); + for (Site element : response.getSitesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListSites_Paged_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listsites/SyncListSites.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listsites/SyncListSites.java new file mode 100644 index 000000000000..694efb45d276 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listsites/SyncListSites.java @@ -0,0 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListSites_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListSitesRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.LocationName; +import com.google.cloud.gdchardwaremanagement.v1alpha.Site; + +public class SyncListSites { + + public static void main(String[] args) throws Exception { + syncListSites(); + } + + public static void syncListSites() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + ListSitesRequest request = + ListSitesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (Site element : gDCHardwareManagementClient.listSites(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListSites_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listsites/SyncListSitesLocationname.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listsites/SyncListSitesLocationname.java new file mode 100644 index 000000000000..0c092213382f --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listsites/SyncListSitesLocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListSites_Locationname_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.LocationName; +import com.google.cloud.gdchardwaremanagement.v1alpha.Site; + +public class SyncListSitesLocationname { + + public static void main(String[] args) throws Exception { + syncListSitesLocationname(); + } + + public static void syncListSitesLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Site element : gDCHardwareManagementClient.listSites(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListSites_Locationname_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listsites/SyncListSitesString.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listsites/SyncListSitesString.java new file mode 100644 index 000000000000..a5597095cc81 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listsites/SyncListSitesString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListSites_String_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.LocationName; +import com.google.cloud.gdchardwaremanagement.v1alpha.Site; + +public class SyncListSitesString { + + public static void main(String[] args) throws Exception { + syncListSitesString(); + } + + public static void syncListSitesString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Site element : gDCHardwareManagementClient.listSites(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListSites_String_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listskus/AsyncListSkus.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listskus/AsyncListSkus.java new file mode 100644 index 000000000000..831e02e624a7 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listskus/AsyncListSkus.java @@ -0,0 +1,57 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListSkus_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.LocationName; +import com.google.cloud.gdchardwaremanagement.v1alpha.Sku; + +public class AsyncListSkus { + + public static void main(String[] args) throws Exception { + asyncListSkus(); + } + + public static void asyncListSkus() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + ListSkusRequest request = + ListSkusRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + gDCHardwareManagementClient.listSkusPagedCallable().futureCall(request); + // Do something. + for (Sku element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListSkus_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listskus/AsyncListSkusPaged.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listskus/AsyncListSkusPaged.java new file mode 100644 index 000000000000..34a7eac7cde5 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listskus/AsyncListSkusPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListSkus_Paged_async] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse; +import com.google.cloud.gdchardwaremanagement.v1alpha.LocationName; +import com.google.cloud.gdchardwaremanagement.v1alpha.Sku; +import com.google.common.base.Strings; + +public class AsyncListSkusPaged { + + public static void main(String[] args) throws Exception { + asyncListSkusPaged(); + } + + public static void asyncListSkusPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + ListSkusRequest request = + ListSkusRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListSkusResponse response = gDCHardwareManagementClient.listSkusCallable().call(request); + for (Sku element : response.getSkusList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListSkus_Paged_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listskus/SyncListSkus.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listskus/SyncListSkus.java new file mode 100644 index 000000000000..01e33f38d359 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listskus/SyncListSkus.java @@ -0,0 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListSkus_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListSkusRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.LocationName; +import com.google.cloud.gdchardwaremanagement.v1alpha.Sku; + +public class SyncListSkus { + + public static void main(String[] args) throws Exception { + syncListSkus(); + } + + public static void syncListSkus() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + ListSkusRequest request = + ListSkusRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (Sku element : gDCHardwareManagementClient.listSkus(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListSkus_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listskus/SyncListSkusLocationname.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listskus/SyncListSkusLocationname.java new file mode 100644 index 000000000000..e98db09f0b33 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listskus/SyncListSkusLocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListSkus_Locationname_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.LocationName; +import com.google.cloud.gdchardwaremanagement.v1alpha.Sku; + +public class SyncListSkusLocationname { + + public static void main(String[] args) throws Exception { + syncListSkusLocationname(); + } + + public static void syncListSkusLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Sku element : gDCHardwareManagementClient.listSkus(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListSkus_Locationname_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listskus/SyncListSkusString.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listskus/SyncListSkusString.java new file mode 100644 index 000000000000..93098790049e --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listskus/SyncListSkusString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListSkus_String_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.LocationName; +import com.google.cloud.gdchardwaremanagement.v1alpha.Sku; + +public class SyncListSkusString { + + public static void main(String[] args) throws Exception { + syncListSkusString(); + } + + public static void syncListSkusString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Sku element : gDCHardwareManagementClient.listSkus(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListSkus_String_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listzones/AsyncListZones.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listzones/AsyncListZones.java new file mode 100644 index 000000000000..1e784a21cf09 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listzones/AsyncListZones.java @@ -0,0 +1,57 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListZones_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.LocationName; +import com.google.cloud.gdchardwaremanagement.v1alpha.Zone; + +public class AsyncListZones { + + public static void main(String[] args) throws Exception { + asyncListZones(); + } + + public static void asyncListZones() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + ListZonesRequest request = + ListZonesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + gDCHardwareManagementClient.listZonesPagedCallable().futureCall(request); + // Do something. + for (Zone element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListZones_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listzones/AsyncListZonesPaged.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listzones/AsyncListZonesPaged.java new file mode 100644 index 000000000000..19e0cb04264f --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listzones/AsyncListZonesPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListZones_Paged_async] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse; +import com.google.cloud.gdchardwaremanagement.v1alpha.LocationName; +import com.google.cloud.gdchardwaremanagement.v1alpha.Zone; +import com.google.common.base.Strings; + +public class AsyncListZonesPaged { + + public static void main(String[] args) throws Exception { + asyncListZonesPaged(); + } + + public static void asyncListZonesPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + ListZonesRequest request = + ListZonesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListZonesResponse response = gDCHardwareManagementClient.listZonesCallable().call(request); + for (Zone element : response.getZonesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListZones_Paged_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listzones/SyncListZones.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listzones/SyncListZones.java new file mode 100644 index 000000000000..0cc7418eb722 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listzones/SyncListZones.java @@ -0,0 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListZones_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.ListZonesRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.LocationName; +import com.google.cloud.gdchardwaremanagement.v1alpha.Zone; + +public class SyncListZones { + + public static void main(String[] args) throws Exception { + syncListZones(); + } + + public static void syncListZones() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + ListZonesRequest request = + ListZonesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (Zone element : gDCHardwareManagementClient.listZones(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListZones_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listzones/SyncListZonesLocationname.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listzones/SyncListZonesLocationname.java new file mode 100644 index 000000000000..347d0baa9aa6 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listzones/SyncListZonesLocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListZones_Locationname_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.LocationName; +import com.google.cloud.gdchardwaremanagement.v1alpha.Zone; + +public class SyncListZonesLocationname { + + public static void main(String[] args) throws Exception { + syncListZonesLocationname(); + } + + public static void syncListZonesLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Zone element : gDCHardwareManagementClient.listZones(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListZones_Locationname_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listzones/SyncListZonesString.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listzones/SyncListZonesString.java new file mode 100644 index 000000000000..792c7db417c5 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/listzones/SyncListZonesString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListZones_String_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.LocationName; +import com.google.cloud.gdchardwaremanagement.v1alpha.Zone; + +public class SyncListZonesString { + + public static void main(String[] args) throws Exception { + syncListZonesString(); + } + + public static void syncListZonesString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Zone element : gDCHardwareManagementClient.listZones(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListZones_String_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/signalzonestate/AsyncSignalZoneState.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/signalzonestate/AsyncSignalZoneState.java new file mode 100644 index 000000000000..0a5a8fab71f1 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/signalzonestate/AsyncSignalZoneState.java @@ -0,0 +1,52 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_SignalZoneState_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.ZoneName; +import com.google.longrunning.Operation; + +public class AsyncSignalZoneState { + + public static void main(String[] args) throws Exception { + asyncSignalZoneState(); + } + + public static void asyncSignalZoneState() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + SignalZoneStateRequest request = + SignalZoneStateRequest.newBuilder() + .setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + gDCHardwareManagementClient.signalZoneStateCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_SignalZoneState_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/signalzonestate/AsyncSignalZoneStateLRO.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/signalzonestate/AsyncSignalZoneStateLRO.java new file mode 100644 index 000000000000..0f995f5ad735 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/signalzonestate/AsyncSignalZoneStateLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_SignalZoneState_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata; +import com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.Zone; +import com.google.cloud.gdchardwaremanagement.v1alpha.ZoneName; + +public class AsyncSignalZoneStateLRO { + + public static void main(String[] args) throws Exception { + asyncSignalZoneStateLRO(); + } + + public static void asyncSignalZoneStateLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + SignalZoneStateRequest request = + SignalZoneStateRequest.newBuilder() + .setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + gDCHardwareManagementClient.signalZoneStateOperationCallable().futureCall(request); + // Do something. + Zone response = future.get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_SignalZoneState_LRO_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/signalzonestate/SyncSignalZoneState.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/signalzonestate/SyncSignalZoneState.java new file mode 100644 index 000000000000..db5ec069d293 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/signalzonestate/SyncSignalZoneState.java @@ -0,0 +1,48 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_SignalZoneState_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.Zone; +import com.google.cloud.gdchardwaremanagement.v1alpha.ZoneName; + +public class SyncSignalZoneState { + + public static void main(String[] args) throws Exception { + syncSignalZoneState(); + } + + public static void syncSignalZoneState() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + SignalZoneStateRequest request = + SignalZoneStateRequest.newBuilder() + .setName(ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString()) + .setRequestId("requestId693933066") + .build(); + Zone response = gDCHardwareManagementClient.signalZoneStateAsync(request).get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_SignalZoneState_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/signalzonestate/SyncSignalZoneStateStringSignalzonestaterequeststatesignal.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/signalzonestate/SyncSignalZoneStateStringSignalzonestaterequeststatesignal.java new file mode 100644 index 000000000000..8c689eac023d --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/signalzonestate/SyncSignalZoneStateStringSignalzonestaterequeststatesignal.java @@ -0,0 +1,46 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_SignalZoneState_StringSignalzonestaterequeststatesignal_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.Zone; +import com.google.cloud.gdchardwaremanagement.v1alpha.ZoneName; + +public class SyncSignalZoneStateStringSignalzonestaterequeststatesignal { + + public static void main(String[] args) throws Exception { + syncSignalZoneStateStringSignalzonestaterequeststatesignal(); + } + + public static void syncSignalZoneStateStringSignalzonestaterequeststatesignal() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + String name = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]").toString(); + SignalZoneStateRequest.StateSignal stateSignal = + SignalZoneStateRequest.StateSignal.forNumber(0); + Zone response = gDCHardwareManagementClient.signalZoneStateAsync(name, stateSignal).get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_SignalZoneState_StringSignalzonestaterequeststatesignal_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/signalzonestate/SyncSignalZoneStateZonenameSignalzonestaterequeststatesignal.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/signalzonestate/SyncSignalZoneStateZonenameSignalzonestaterequeststatesignal.java new file mode 100644 index 000000000000..7f189073f75c --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/signalzonestate/SyncSignalZoneStateZonenameSignalzonestaterequeststatesignal.java @@ -0,0 +1,47 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_SignalZoneState_ZonenameSignalzonestaterequeststatesignal_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.Zone; +import com.google.cloud.gdchardwaremanagement.v1alpha.ZoneName; + +public class SyncSignalZoneStateZonenameSignalzonestaterequeststatesignal { + + public static void main(String[] args) throws Exception { + syncSignalZoneStateZonenameSignalzonestaterequeststatesignal(); + } + + public static void syncSignalZoneStateZonenameSignalzonestaterequeststatesignal() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + ZoneName name = ZoneName.of("[PROJECT]", "[LOCATION]", "[ZONE]"); + SignalZoneStateRequest.StateSignal stateSignal = + SignalZoneStateRequest.StateSignal.forNumber(0); + Zone response = gDCHardwareManagementClient.signalZoneStateAsync(name, stateSignal).get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_SignalZoneState_ZonenameSignalzonestaterequeststatesignal_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/submitorder/AsyncSubmitOrder.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/submitorder/AsyncSubmitOrder.java new file mode 100644 index 000000000000..9f3f1c87d768 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/submitorder/AsyncSubmitOrder.java @@ -0,0 +1,52 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_SubmitOrder_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.OrderName; +import com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest; +import com.google.longrunning.Operation; + +public class AsyncSubmitOrder { + + public static void main(String[] args) throws Exception { + asyncSubmitOrder(); + } + + public static void asyncSubmitOrder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + SubmitOrderRequest request = + SubmitOrderRequest.newBuilder() + .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + gDCHardwareManagementClient.submitOrderCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_SubmitOrder_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/submitorder/AsyncSubmitOrderLRO.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/submitorder/AsyncSubmitOrderLRO.java new file mode 100644 index 000000000000..7dd55db6686e --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/submitorder/AsyncSubmitOrderLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_SubmitOrder_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata; +import com.google.cloud.gdchardwaremanagement.v1alpha.Order; +import com.google.cloud.gdchardwaremanagement.v1alpha.OrderName; +import com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest; + +public class AsyncSubmitOrderLRO { + + public static void main(String[] args) throws Exception { + asyncSubmitOrderLRO(); + } + + public static void asyncSubmitOrderLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + SubmitOrderRequest request = + SubmitOrderRequest.newBuilder() + .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + gDCHardwareManagementClient.submitOrderOperationCallable().futureCall(request); + // Do something. + Order response = future.get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_SubmitOrder_LRO_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/submitorder/SyncSubmitOrder.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/submitorder/SyncSubmitOrder.java new file mode 100644 index 000000000000..bc09fa48a178 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/submitorder/SyncSubmitOrder.java @@ -0,0 +1,48 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_SubmitOrder_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.Order; +import com.google.cloud.gdchardwaremanagement.v1alpha.OrderName; +import com.google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest; + +public class SyncSubmitOrder { + + public static void main(String[] args) throws Exception { + syncSubmitOrder(); + } + + public static void syncSubmitOrder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + SubmitOrderRequest request = + SubmitOrderRequest.newBuilder() + .setName(OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString()) + .setRequestId("requestId693933066") + .build(); + Order response = gDCHardwareManagementClient.submitOrderAsync(request).get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_SubmitOrder_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/submitorder/SyncSubmitOrderOrdername.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/submitorder/SyncSubmitOrderOrdername.java new file mode 100644 index 000000000000..1c2ce39cbb76 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/submitorder/SyncSubmitOrderOrdername.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_SubmitOrder_Ordername_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.Order; +import com.google.cloud.gdchardwaremanagement.v1alpha.OrderName; + +public class SyncSubmitOrderOrdername { + + public static void main(String[] args) throws Exception { + syncSubmitOrderOrdername(); + } + + public static void syncSubmitOrderOrdername() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + OrderName name = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]"); + Order response = gDCHardwareManagementClient.submitOrderAsync(name).get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_SubmitOrder_Ordername_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/submitorder/SyncSubmitOrderString.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/submitorder/SyncSubmitOrderString.java new file mode 100644 index 000000000000..084107f300e3 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/submitorder/SyncSubmitOrderString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_SubmitOrder_String_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.Order; +import com.google.cloud.gdchardwaremanagement.v1alpha.OrderName; + +public class SyncSubmitOrderString { + + public static void main(String[] args) throws Exception { + syncSubmitOrderString(); + } + + public static void syncSubmitOrderString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + String name = OrderName.of("[PROJECT]", "[LOCATION]", "[ORDER]").toString(); + Order response = gDCHardwareManagementClient.submitOrderAsync(name).get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_SubmitOrder_String_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatehardware/AsyncUpdateHardware.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatehardware/AsyncUpdateHardware.java new file mode 100644 index 000000000000..c4872bdb4ca9 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatehardware/AsyncUpdateHardware.java @@ -0,0 +1,54 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_UpdateHardware_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.Hardware; +import com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateHardware { + + public static void main(String[] args) throws Exception { + asyncUpdateHardware(); + } + + public static void asyncUpdateHardware() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + UpdateHardwareRequest request = + UpdateHardwareRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setHardware(Hardware.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + gDCHardwareManagementClient.updateHardwareCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_UpdateHardware_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatehardware/AsyncUpdateHardwareLRO.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatehardware/AsyncUpdateHardwareLRO.java new file mode 100644 index 000000000000..b15e16fb630b --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatehardware/AsyncUpdateHardwareLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_UpdateHardware_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.Hardware; +import com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata; +import com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateHardwareLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateHardwareLRO(); + } + + public static void asyncUpdateHardwareLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + UpdateHardwareRequest request = + UpdateHardwareRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setHardware(Hardware.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + gDCHardwareManagementClient.updateHardwareOperationCallable().futureCall(request); + // Do something. + Hardware response = future.get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_UpdateHardware_LRO_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatehardware/SyncUpdateHardware.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatehardware/SyncUpdateHardware.java new file mode 100644 index 000000000000..6e69a4188356 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatehardware/SyncUpdateHardware.java @@ -0,0 +1,49 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_UpdateHardware_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.Hardware; +import com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateHardware { + + public static void main(String[] args) throws Exception { + syncUpdateHardware(); + } + + public static void syncUpdateHardware() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + UpdateHardwareRequest request = + UpdateHardwareRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setHardware(Hardware.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + Hardware response = gDCHardwareManagementClient.updateHardwareAsync(request).get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_UpdateHardware_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatehardware/SyncUpdateHardwareHardwareFieldmask.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatehardware/SyncUpdateHardwareHardwareFieldmask.java new file mode 100644 index 000000000000..2a52096f51d5 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatehardware/SyncUpdateHardwareHardwareFieldmask.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_UpdateHardware_HardwareFieldmask_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.Hardware; +import com.google.protobuf.FieldMask; + +public class SyncUpdateHardwareHardwareFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateHardwareHardwareFieldmask(); + } + + public static void syncUpdateHardwareHardwareFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + Hardware hardware = Hardware.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Hardware response = + gDCHardwareManagementClient.updateHardwareAsync(hardware, updateMask).get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_UpdateHardware_HardwareFieldmask_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatehardwaregroup/AsyncUpdateHardwareGroup.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatehardwaregroup/AsyncUpdateHardwareGroup.java new file mode 100644 index 000000000000..b246521ffc94 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatehardwaregroup/AsyncUpdateHardwareGroup.java @@ -0,0 +1,54 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_UpdateHardwareGroup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup; +import com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateHardwareGroup { + + public static void main(String[] args) throws Exception { + asyncUpdateHardwareGroup(); + } + + public static void asyncUpdateHardwareGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + UpdateHardwareGroupRequest request = + UpdateHardwareGroupRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setHardwareGroup(HardwareGroup.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + gDCHardwareManagementClient.updateHardwareGroupCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_UpdateHardwareGroup_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatehardwaregroup/AsyncUpdateHardwareGroupLRO.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatehardwaregroup/AsyncUpdateHardwareGroupLRO.java new file mode 100644 index 000000000000..a0626ba35da9 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatehardwaregroup/AsyncUpdateHardwareGroupLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_UpdateHardwareGroup_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup; +import com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata; +import com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateHardwareGroupLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateHardwareGroupLRO(); + } + + public static void asyncUpdateHardwareGroupLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + UpdateHardwareGroupRequest request = + UpdateHardwareGroupRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setHardwareGroup(HardwareGroup.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + gDCHardwareManagementClient.updateHardwareGroupOperationCallable().futureCall(request); + // Do something. + HardwareGroup response = future.get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_UpdateHardwareGroup_LRO_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatehardwaregroup/SyncUpdateHardwareGroup.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatehardwaregroup/SyncUpdateHardwareGroup.java new file mode 100644 index 000000000000..46d3fb1bc700 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatehardwaregroup/SyncUpdateHardwareGroup.java @@ -0,0 +1,49 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_UpdateHardwareGroup_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup; +import com.google.cloud.gdchardwaremanagement.v1alpha.UpdateHardwareGroupRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateHardwareGroup { + + public static void main(String[] args) throws Exception { + syncUpdateHardwareGroup(); + } + + public static void syncUpdateHardwareGroup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + UpdateHardwareGroupRequest request = + UpdateHardwareGroupRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setHardwareGroup(HardwareGroup.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + HardwareGroup response = gDCHardwareManagementClient.updateHardwareGroupAsync(request).get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_UpdateHardwareGroup_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatehardwaregroup/SyncUpdateHardwareGroupHardwaregroupFieldmask.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatehardwaregroup/SyncUpdateHardwareGroupHardwaregroupFieldmask.java new file mode 100644 index 000000000000..79437b0142d0 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatehardwaregroup/SyncUpdateHardwareGroupHardwaregroupFieldmask.java @@ -0,0 +1,45 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_UpdateHardwareGroup_HardwaregroupFieldmask_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup; +import com.google.protobuf.FieldMask; + +public class SyncUpdateHardwareGroupHardwaregroupFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateHardwareGroupHardwaregroupFieldmask(); + } + + public static void syncUpdateHardwareGroupHardwaregroupFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + HardwareGroup hardwareGroup = HardwareGroup.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + HardwareGroup response = + gDCHardwareManagementClient.updateHardwareGroupAsync(hardwareGroup, updateMask).get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_UpdateHardwareGroup_HardwaregroupFieldmask_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updateorder/AsyncUpdateOrder.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updateorder/AsyncUpdateOrder.java new file mode 100644 index 000000000000..c1d3ec64e100 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updateorder/AsyncUpdateOrder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_UpdateOrder_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.Order; +import com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateOrder { + + public static void main(String[] args) throws Exception { + asyncUpdateOrder(); + } + + public static void asyncUpdateOrder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + UpdateOrderRequest request = + UpdateOrderRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setOrder(Order.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + gDCHardwareManagementClient.updateOrderCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_UpdateOrder_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updateorder/AsyncUpdateOrderLRO.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updateorder/AsyncUpdateOrderLRO.java new file mode 100644 index 000000000000..b7518c7bbf5a --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updateorder/AsyncUpdateOrderLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_UpdateOrder_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata; +import com.google.cloud.gdchardwaremanagement.v1alpha.Order; +import com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateOrderLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateOrderLRO(); + } + + public static void asyncUpdateOrderLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + UpdateOrderRequest request = + UpdateOrderRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setOrder(Order.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + gDCHardwareManagementClient.updateOrderOperationCallable().futureCall(request); + // Do something. + Order response = future.get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_UpdateOrder_LRO_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updateorder/SyncUpdateOrder.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updateorder/SyncUpdateOrder.java new file mode 100644 index 000000000000..7d6d403fa6c7 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updateorder/SyncUpdateOrder.java @@ -0,0 +1,49 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_UpdateOrder_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.Order; +import com.google.cloud.gdchardwaremanagement.v1alpha.UpdateOrderRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateOrder { + + public static void main(String[] args) throws Exception { + syncUpdateOrder(); + } + + public static void syncUpdateOrder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + UpdateOrderRequest request = + UpdateOrderRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setOrder(Order.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + Order response = gDCHardwareManagementClient.updateOrderAsync(request).get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_UpdateOrder_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updateorder/SyncUpdateOrderOrderFieldmask.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updateorder/SyncUpdateOrderOrderFieldmask.java new file mode 100644 index 000000000000..21fa269a9b79 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updateorder/SyncUpdateOrderOrderFieldmask.java @@ -0,0 +1,44 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_UpdateOrder_OrderFieldmask_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.Order; +import com.google.protobuf.FieldMask; + +public class SyncUpdateOrderOrderFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateOrderOrderFieldmask(); + } + + public static void syncUpdateOrderOrderFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + Order order = Order.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Order response = gDCHardwareManagementClient.updateOrderAsync(order, updateMask).get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_UpdateOrder_OrderFieldmask_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatesite/AsyncUpdateSite.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatesite/AsyncUpdateSite.java new file mode 100644 index 000000000000..257481dfb984 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatesite/AsyncUpdateSite.java @@ -0,0 +1,54 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_UpdateSite_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.Site; +import com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateSite { + + public static void main(String[] args) throws Exception { + asyncUpdateSite(); + } + + public static void asyncUpdateSite() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + UpdateSiteRequest request = + UpdateSiteRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setSite(Site.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + gDCHardwareManagementClient.updateSiteCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_UpdateSite_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatesite/AsyncUpdateSiteLRO.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatesite/AsyncUpdateSiteLRO.java new file mode 100644 index 000000000000..19a9e83e00fc --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatesite/AsyncUpdateSiteLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_UpdateSite_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata; +import com.google.cloud.gdchardwaremanagement.v1alpha.Site; +import com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateSiteLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateSiteLRO(); + } + + public static void asyncUpdateSiteLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + UpdateSiteRequest request = + UpdateSiteRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setSite(Site.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + gDCHardwareManagementClient.updateSiteOperationCallable().futureCall(request); + // Do something. + Site response = future.get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_UpdateSite_LRO_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatesite/SyncUpdateSite.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatesite/SyncUpdateSite.java new file mode 100644 index 000000000000..ae3b827816fb --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatesite/SyncUpdateSite.java @@ -0,0 +1,49 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_UpdateSite_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.Site; +import com.google.cloud.gdchardwaremanagement.v1alpha.UpdateSiteRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateSite { + + public static void main(String[] args) throws Exception { + syncUpdateSite(); + } + + public static void syncUpdateSite() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + UpdateSiteRequest request = + UpdateSiteRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setSite(Site.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + Site response = gDCHardwareManagementClient.updateSiteAsync(request).get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_UpdateSite_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatesite/SyncUpdateSiteSiteFieldmask.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatesite/SyncUpdateSiteSiteFieldmask.java new file mode 100644 index 000000000000..7e036a8727f3 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatesite/SyncUpdateSiteSiteFieldmask.java @@ -0,0 +1,44 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_UpdateSite_SiteFieldmask_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.Site; +import com.google.protobuf.FieldMask; + +public class SyncUpdateSiteSiteFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateSiteSiteFieldmask(); + } + + public static void syncUpdateSiteSiteFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + Site site = Site.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Site response = gDCHardwareManagementClient.updateSiteAsync(site, updateMask).get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_UpdateSite_SiteFieldmask_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatezone/AsyncUpdateZone.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatezone/AsyncUpdateZone.java new file mode 100644 index 000000000000..6d5fa6565bbd --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatezone/AsyncUpdateZone.java @@ -0,0 +1,54 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_UpdateZone_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.Zone; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateZone { + + public static void main(String[] args) throws Exception { + asyncUpdateZone(); + } + + public static void asyncUpdateZone() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + UpdateZoneRequest request = + UpdateZoneRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setZone(Zone.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + gDCHardwareManagementClient.updateZoneCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_UpdateZone_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatezone/AsyncUpdateZoneLRO.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatezone/AsyncUpdateZoneLRO.java new file mode 100644 index 000000000000..5612e8315a71 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatezone/AsyncUpdateZoneLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_UpdateZone_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.OperationMetadata; +import com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.Zone; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateZoneLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateZoneLRO(); + } + + public static void asyncUpdateZoneLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + UpdateZoneRequest request = + UpdateZoneRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setZone(Zone.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + gDCHardwareManagementClient.updateZoneOperationCallable().futureCall(request); + // Do something. + Zone response = future.get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_UpdateZone_LRO_async] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatezone/SyncUpdateZone.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatezone/SyncUpdateZone.java new file mode 100644 index 000000000000..ce2b5bd1e3bf --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatezone/SyncUpdateZone.java @@ -0,0 +1,49 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_UpdateZone_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.UpdateZoneRequest; +import com.google.cloud.gdchardwaremanagement.v1alpha.Zone; +import com.google.protobuf.FieldMask; + +public class SyncUpdateZone { + + public static void main(String[] args) throws Exception { + syncUpdateZone(); + } + + public static void syncUpdateZone() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + UpdateZoneRequest request = + UpdateZoneRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setZone(Zone.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + Zone response = gDCHardwareManagementClient.updateZoneAsync(request).get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_UpdateZone_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatezone/SyncUpdateZoneZoneFieldmask.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatezone/SyncUpdateZoneZoneFieldmask.java new file mode 100644 index 000000000000..59d96832937b --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagement/updatezone/SyncUpdateZoneZoneFieldmask.java @@ -0,0 +1,44 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_UpdateZone_ZoneFieldmask_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient; +import com.google.cloud.gdchardwaremanagement.v1alpha.Zone; +import com.google.protobuf.FieldMask; + +public class SyncUpdateZoneZoneFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateZoneZoneFieldmask(); + } + + public static void syncUpdateZoneZoneFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (GDCHardwareManagementClient gDCHardwareManagementClient = + GDCHardwareManagementClient.create()) { + Zone zone = Zone.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Zone response = gDCHardwareManagementClient.updateZoneAsync(zone, updateMask).get(); + } + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_UpdateZone_ZoneFieldmask_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagementsettings/getorder/SyncGetOrder.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagementsettings/getorder/SyncGetOrder.java new file mode 100644 index 000000000000..c432cb08e016 --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/gdchardwaremanagementsettings/getorder/SyncGetOrder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagementSettings_GetOrder_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementSettings; +import java.time.Duration; + +public class SyncGetOrder { + + public static void main(String[] args) throws Exception { + syncGetOrder(); + } + + public static void syncGetOrder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + GDCHardwareManagementSettings.Builder gDCHardwareManagementSettingsBuilder = + GDCHardwareManagementSettings.newBuilder(); + gDCHardwareManagementSettingsBuilder + .getOrderSettings() + .setRetrySettings( + gDCHardwareManagementSettingsBuilder + .getOrderSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + GDCHardwareManagementSettings gDCHardwareManagementSettings = + gDCHardwareManagementSettingsBuilder.build(); + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagementSettings_GetOrder_sync] diff --git a/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/stub/gdchardwaremanagementstubsettings/getorder/SyncGetOrder.java b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/stub/gdchardwaremanagementstubsettings/getorder/SyncGetOrder.java new file mode 100644 index 000000000000..68c4abfcb0eb --- /dev/null +++ b/java-gdchardwaremanagement/samples/snippets/generated/com/google/cloud/gdchardwaremanagement/v1alpha/stub/gdchardwaremanagementstubsettings/getorder/SyncGetOrder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gdchardwaremanagement.v1alpha.stub.samples; + +// [START gdchardwaremanagement_v1alpha_generated_GDCHardwareManagementStubSettings_GetOrder_sync] +import com.google.cloud.gdchardwaremanagement.v1alpha.stub.GDCHardwareManagementStubSettings; +import java.time.Duration; + +public class SyncGetOrder { + + public static void main(String[] args) throws Exception { + syncGetOrder(); + } + + public static void syncGetOrder() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + GDCHardwareManagementStubSettings.Builder gDCHardwareManagementSettingsBuilder = + GDCHardwareManagementStubSettings.newBuilder(); + gDCHardwareManagementSettingsBuilder + .getOrderSettings() + .setRetrySettings( + gDCHardwareManagementSettingsBuilder + .getOrderSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + GDCHardwareManagementStubSettings gDCHardwareManagementSettings = + gDCHardwareManagementSettingsBuilder.build(); + } +} +// [END gdchardwaremanagement_v1alpha_generated_GDCHardwareManagementStubSettings_GetOrder_sync] diff --git a/pom.xml b/pom.xml index f7c98c76192a..43fbf9c62083 100644 --- a/pom.xml +++ b/pom.xml @@ -97,6 +97,7 @@ java-eventarc-publishing java-filestore java-functions + java-gdchardwaremanagement java-gke-backup java-gke-connect-gateway java-gke-multi-cloud diff --git a/versions.txt b/versions.txt index 77567948fd30..04b5c14f3fc8 100644 --- a/versions.txt +++ b/versions.txt @@ -797,3 +797,6 @@ grpc-google-cloud-networkservices-v1:0.1.0:0.2.0-SNAPSHOT google-shopping-merchant-products:0.1.0:0.2.0-SNAPSHOT proto-google-shopping-merchant-products-v1beta:0.1.0:0.2.0-SNAPSHOT grpc-google-shopping-merchant-products-v1beta:0.1.0:0.2.0-SNAPSHOT +google-cloud-gdchardwaremanagement:0.0.0:0.0.1-SNAPSHOT +proto-google-cloud-gdchardwaremanagement-v1alpha:0.0.0:0.0.1-SNAPSHOT +grpc-google-cloud-gdchardwaremanagement-v1alpha:0.0.0:0.0.1-SNAPSHOT From 2326d01eec6edf08f06419761b85ec1883112cd9 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 27 Jun 2024 02:28:30 +0200 Subject: [PATCH 32/33] chore(deps): update dependency org.easymock:easymock to v5.3.0 (#10944) --- google-cloud-jar-parent/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google-cloud-jar-parent/pom.xml b/google-cloud-jar-parent/pom.xml index 6e6282486940..cc81eb0585c1 100644 --- a/google-cloud-jar-parent/pom.xml +++ b/google-cloud-jar-parent/pom.xml @@ -97,7 +97,7 @@ org.easymock easymock - 5.2.0 + 5.3.0 test From c5d483ea6574dd587312b6d07e182ff4c33cd5c1 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 27 Jun 2024 05:31:27 -0700 Subject: [PATCH 33/33] chore(main): release 1.40.0 (#10946) * chore(main): release 1.40.0 * chore(main): release 1.40.0 * chore(main): release 1.40.0 * chore(main): release 1.40.0 * chore(main): release 1.40.0 * chore(main): release 1.40.0 * chore(main): release 1.40.0 * chore(main): release 1.40.0 * chore(main): release 1.40.0 * chore(main): release 1.40.0 * chore(main): release 1.40.0 * chore(main): release 1.40.0 * chore(main): release 1.40.0 * chore(main): release 1.40.0 * chore: update CHANGELOG.md in modules --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: yoshi-code-bot --- .release-please-manifest.json | 2 +- CHANGELOG.md | 63 + changelog.json | 23182 +++++++++++++++- gapic-libraries-bom/pom.xml | 360 +- google-cloud-jar-parent/pom.xml | 4 +- google-cloud-pom-parent/pom.xml | 2 +- java-accessapproval/CHANGELOG.md | 5 + java-accessapproval/README.md | 6 +- .../google-cloud-accessapproval-bom/pom.xml | 10 +- .../google-cloud-accessapproval/pom.xml | 4 +- .../pom.xml | 4 +- java-accessapproval/pom.xml | 10 +- .../pom.xml | 4 +- java-accesscontextmanager/CHANGELOG.md | 5 + java-accesscontextmanager/README.md | 6 +- .../pom.xml | 12 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-accesscontextmanager/pom.xml | 12 +- .../pom.xml | 4 +- .../pom.xml | 6 +- java-admanager/CHANGELOG.md | 5 + java-admanager/README.md | 6 +- java-admanager/ad-manager-bom/pom.xml | 8 +- java-admanager/ad-manager/pom.xml | 4 +- java-admanager/pom.xml | 8 +- java-admanager/proto-ad-manager-v1/pom.xml | 4 +- java-advisorynotifications/CHANGELOG.md | 5 + java-advisorynotifications/README.md | 6 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-advisorynotifications/pom.xml | 10 +- .../pom.xml | 4 +- java-aiplatform/CHANGELOG.md | 9 + java-aiplatform/README.md | 6 +- .../google-cloud-aiplatform-bom/pom.xml | 14 +- .../google-cloud-aiplatform/pom.xml | 4 +- .../grpc-google-cloud-aiplatform-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-aiplatform/pom.xml | 14 +- .../proto-google-cloud-aiplatform-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-alloydb-connectors/CHANGELOG.md | 5 + java-alloydb-connectors/README.md | 6 +- .../pom.xml | 12 +- .../google-cloud-alloydb-connectors/pom.xml | 4 +- java-alloydb-connectors/pom.xml | 12 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-alloydb/CHANGELOG.md | 5 + java-alloydb/README.md | 6 +- java-alloydb/google-cloud-alloydb-bom/pom.xml | 18 +- java-alloydb/google-cloud-alloydb/pom.xml | 4 +- .../grpc-google-cloud-alloydb-v1/pom.xml | 4 +- .../grpc-google-cloud-alloydb-v1alpha/pom.xml | 4 +- .../grpc-google-cloud-alloydb-v1beta/pom.xml | 4 +- java-alloydb/pom.xml | 18 +- .../proto-google-cloud-alloydb-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-alloydb-v1beta/pom.xml | 4 +- java-analytics-admin/CHANGELOG.md | 5 + java-analytics-admin/README.md | 6 +- .../google-analytics-admin-bom/pom.xml | 14 +- .../google-analytics-admin/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-analytics-admin/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-analytics-data/CHANGELOG.md | 5 + java-analytics-data/README.md | 6 +- .../google-analytics-data-bom/pom.xml | 14 +- .../google-analytics-data/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-analytics-data-v1beta/pom.xml | 4 +- java-analytics-data/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-analyticshub/CHANGELOG.md | 5 + java-analyticshub/README.md | 6 +- .../google-cloud-analyticshub-bom/pom.xml | 10 +- .../google-cloud-analyticshub/pom.xml | 4 +- .../grpc-google-cloud-analyticshub-v1/pom.xml | 4 +- java-analyticshub/pom.xml | 10 +- .../pom.xml | 4 +- java-api-gateway/CHANGELOG.md | 5 + java-api-gateway/README.md | 6 +- .../google-cloud-api-gateway-bom/pom.xml | 10 +- .../google-cloud-api-gateway/pom.xml | 4 +- .../grpc-google-cloud-api-gateway-v1/pom.xml | 4 +- java-api-gateway/pom.xml | 10 +- .../proto-google-cloud-api-gateway-v1/pom.xml | 4 +- java-apigee-connect/CHANGELOG.md | 5 + java-apigee-connect/README.md | 6 +- .../google-cloud-apigee-connect-bom/pom.xml | 10 +- .../google-cloud-apigee-connect/pom.xml | 4 +- .../pom.xml | 4 +- java-apigee-connect/pom.xml | 10 +- .../pom.xml | 4 +- java-apigee-registry/CHANGELOG.md | 5 + java-apigee-registry/README.md | 6 +- .../google-cloud-apigee-registry-bom/pom.xml | 10 +- .../google-cloud-apigee-registry/pom.xml | 4 +- .../pom.xml | 4 +- java-apigee-registry/pom.xml | 10 +- .../pom.xml | 4 +- java-apikeys/CHANGELOG.md | 5 + java-apikeys/README.md | 6 +- java-apikeys/google-cloud-apikeys-bom/pom.xml | 10 +- java-apikeys/google-cloud-apikeys/pom.xml | 4 +- .../grpc-google-cloud-apikeys-v2/pom.xml | 4 +- java-apikeys/pom.xml | 10 +- .../proto-google-cloud-apikeys-v2/pom.xml | 4 +- java-appengine-admin/CHANGELOG.md | 5 + java-appengine-admin/README.md | 6 +- .../google-cloud-appengine-admin-bom/pom.xml | 10 +- .../google-cloud-appengine-admin/pom.xml | 4 +- .../pom.xml | 4 +- java-appengine-admin/pom.xml | 10 +- .../pom.xml | 4 +- java-apphub/CHANGELOG.md | 5 + java-apphub/README.md | 6 +- java-apphub/google-cloud-apphub-bom/pom.xml | 10 +- java-apphub/google-cloud-apphub/pom.xml | 4 +- .../grpc-google-cloud-apphub-v1/pom.xml | 4 +- java-apphub/pom.xml | 10 +- .../proto-google-cloud-apphub-v1/pom.xml | 4 +- java-area120-tables/CHANGELOG.md | 5 + java-area120-tables/README.md | 6 +- .../google-area120-tables-bom/pom.xml | 10 +- .../google-area120-tables/pom.xml | 4 +- .../pom.xml | 4 +- java-area120-tables/pom.xml | 10 +- .../pom.xml | 4 +- java-artifact-registry/CHANGELOG.md | 5 + java-artifact-registry/README.md | 6 +- .../pom.xml | 14 +- .../google-cloud-artifact-registry/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-artifact-registry/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-asset/CHANGELOG.md | 5 + java-asset/README.md | 6 +- java-asset/google-cloud-asset-bom/pom.xml | 26 +- java-asset/google-cloud-asset/pom.xml | 4 +- java-asset/grpc-google-cloud-asset-v1/pom.xml | 4 +- .../grpc-google-cloud-asset-v1p1beta1/pom.xml | 4 +- .../grpc-google-cloud-asset-v1p2beta1/pom.xml | 4 +- .../grpc-google-cloud-asset-v1p5beta1/pom.xml | 4 +- .../grpc-google-cloud-asset-v1p7beta1/pom.xml | 4 +- java-asset/pom.xml | 34 +- .../proto-google-cloud-asset-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-assured-workloads/CHANGELOG.md | 5 + java-assured-workloads/README.md | 6 +- .../pom.xml | 14 +- .../google-cloud-assured-workloads/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-assured-workloads/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-automl/CHANGELOG.md | 5 + java-automl/README.md | 6 +- java-automl/google-cloud-automl-bom/pom.xml | 14 +- java-automl/google-cloud-automl/pom.xml | 4 +- .../grpc-google-cloud-automl-v1/pom.xml | 4 +- .../grpc-google-cloud-automl-v1beta1/pom.xml | 4 +- java-automl/pom.xml | 14 +- .../proto-google-cloud-automl-v1/pom.xml | 4 +- .../proto-google-cloud-automl-v1beta1/pom.xml | 4 +- java-backupdr/CHANGELOG.md | 5 + java-backupdr/README.md | 6 +- .../google-cloud-backupdr-bom/pom.xml | 10 +- java-backupdr/google-cloud-backupdr/pom.xml | 4 +- .../grpc-google-cloud-backupdr-v1/pom.xml | 4 +- java-backupdr/pom.xml | 10 +- .../proto-google-cloud-backupdr-v1/pom.xml | 4 +- java-bare-metal-solution/CHANGELOG.md | 5 + java-bare-metal-solution/README.md | 6 +- .../pom.xml | 10 +- .../google-cloud-bare-metal-solution/pom.xml | 4 +- .../pom.xml | 4 +- java-bare-metal-solution/pom.xml | 10 +- .../pom.xml | 4 +- java-batch/CHANGELOG.md | 9 + java-batch/README.md | 6 +- java-batch/google-cloud-batch-bom/pom.xml | 14 +- java-batch/google-cloud-batch/pom.xml | 4 +- java-batch/grpc-google-cloud-batch-v1/pom.xml | 4 +- .../grpc-google-cloud-batch-v1alpha/pom.xml | 4 +- java-batch/pom.xml | 14 +- .../proto-google-cloud-batch-v1/pom.xml | 4 +- .../proto-google-cloud-batch-v1alpha/pom.xml | 4 +- java-beyondcorp-appconnections/CHANGELOG.md | 5 + java-beyondcorp-appconnections/README.md | 6 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-beyondcorp-appconnections/pom.xml | 10 +- .../pom.xml | 4 +- java-beyondcorp-appconnectors/CHANGELOG.md | 5 + java-beyondcorp-appconnectors/README.md | 6 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-beyondcorp-appconnectors/pom.xml | 10 +- .../pom.xml | 4 +- java-beyondcorp-appgateways/CHANGELOG.md | 5 + java-beyondcorp-appgateways/README.md | 6 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-beyondcorp-appgateways/pom.xml | 10 +- .../pom.xml | 4 +- .../CHANGELOG.md | 5 + .../README.md | 6 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../pom.xml | 4 +- java-beyondcorp-clientgateways/CHANGELOG.md | 5 + java-beyondcorp-clientgateways/README.md | 6 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-beyondcorp-clientgateways/pom.xml | 10 +- .../pom.xml | 4 +- java-biglake/CHANGELOG.md | 5 + java-biglake/README.md | 6 +- java-biglake/google-cloud-biglake-bom/pom.xml | 14 +- java-biglake/google-cloud-biglake/pom.xml | 4 +- .../grpc-google-cloud-biglake-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-biglake/pom.xml | 14 +- .../proto-google-cloud-biglake-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-bigquery-data-exchange/CHANGELOG.md | 5 + java-bigquery-data-exchange/README.md | 6 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-bigquery-data-exchange/pom.xml | 10 +- .../pom.xml | 4 +- java-bigqueryconnection/CHANGELOG.md | 5 + java-bigqueryconnection/README.md | 6 +- .../pom.xml | 14 +- .../google-cloud-bigqueryconnection/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-bigqueryconnection/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-bigquerydatapolicy/CHANGELOG.md | 5 + java-bigquerydatapolicy/README.md | 6 +- .../pom.xml | 14 +- .../google-cloud-bigquerydatapolicy/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-bigquerydatapolicy/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-bigquerydatatransfer/CHANGELOG.md | 5 + java-bigquerydatatransfer/README.md | 6 +- .../pom.xml | 10 +- .../google-cloud-bigquerydatatransfer/pom.xml | 4 +- .../pom.xml | 4 +- java-bigquerydatatransfer/pom.xml | 10 +- .../pom.xml | 4 +- java-bigquerymigration/CHANGELOG.md | 5 + java-bigquerymigration/README.md | 6 +- .../pom.xml | 14 +- .../google-cloud-bigquerymigration/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-bigquerymigration/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-bigqueryreservation/CHANGELOG.md | 5 + java-bigqueryreservation/README.md | 6 +- .../pom.xml | 10 +- .../google-cloud-bigqueryreservation/pom.xml | 4 +- .../pom.xml | 4 +- java-bigqueryreservation/pom.xml | 10 +- .../pom.xml | 4 +- java-billing/CHANGELOG.md | 5 + java-billing/README.md | 6 +- java-billing/google-cloud-billing-bom/pom.xml | 10 +- java-billing/google-cloud-billing/pom.xml | 4 +- .../grpc-google-cloud-billing-v1/pom.xml | 4 +- java-billing/pom.xml | 10 +- .../proto-google-cloud-billing-v1/pom.xml | 4 +- java-billingbudgets/CHANGELOG.md | 5 + java-billingbudgets/README.md | 6 +- .../google-cloud-billingbudgets-bom/pom.xml | 14 +- .../google-cloud-billingbudgets/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-billingbudgets/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-binary-authorization/CHANGELOG.md | 5 + java-binary-authorization/README.md | 6 +- .../pom.xml | 14 +- .../google-cloud-binary-authorization/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-binary-authorization/pom.xml | 16 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-certificate-manager/CHANGELOG.md | 5 + java-certificate-manager/README.md | 6 +- .../pom.xml | 10 +- .../google-cloud-certificate-manager/pom.xml | 4 +- .../pom.xml | 4 +- java-certificate-manager/pom.xml | 10 +- .../pom.xml | 4 +- java-channel/CHANGELOG.md | 5 + java-channel/README.md | 6 +- java-channel/google-cloud-channel-bom/pom.xml | 10 +- java-channel/google-cloud-channel/pom.xml | 4 +- .../grpc-google-cloud-channel-v1/pom.xml | 4 +- java-channel/pom.xml | 10 +- .../proto-google-cloud-channel-v1/pom.xml | 4 +- java-chat/CHANGELOG.md | 5 + java-chat/README.md | 6 +- java-chat/google-cloud-chat-bom/pom.xml | 10 +- java-chat/google-cloud-chat/pom.xml | 4 +- java-chat/grpc-google-cloud-chat-v1/pom.xml | 4 +- java-chat/pom.xml | 10 +- java-chat/proto-google-cloud-chat-v1/pom.xml | 4 +- java-cloudbuild/CHANGELOG.md | 5 + java-cloudbuild/README.md | 6 +- .../google-cloud-build-bom/pom.xml | 14 +- java-cloudbuild/google-cloud-build/pom.xml | 4 +- .../grpc-google-cloud-build-v1/pom.xml | 4 +- .../grpc-google-cloud-build-v2/pom.xml | 4 +- java-cloudbuild/pom.xml | 14 +- .../proto-google-cloud-build-v1/pom.xml | 4 +- .../proto-google-cloud-build-v2/pom.xml | 4 +- .../CHANGELOG.md | 5 + .../README.md | 6 +- .../pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-cloudcommerceconsumerprocurement/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-cloudcontrolspartner/CHANGELOG.md | 9 + java-cloudcontrolspartner/README.md | 6 +- .../pom.xml | 14 +- .../google-cloud-cloudcontrolspartner/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-cloudcontrolspartner/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-cloudquotas/CHANGELOG.md | 5 + java-cloudquotas/README.md | 6 +- .../google-cloud-cloudquotas-bom/pom.xml | 10 +- .../google-cloud-cloudquotas/pom.xml | 4 +- .../grpc-google-cloud-cloudquotas-v1/pom.xml | 4 +- java-cloudquotas/pom.xml | 10 +- .../proto-google-cloud-cloudquotas-v1/pom.xml | 4 +- java-cloudsupport/CHANGELOG.md | 5 + java-cloudsupport/README.md | 6 +- .../google-cloud-cloudsupport-bom/pom.xml | 10 +- .../google-cloud-cloudsupport/pom.xml | 4 +- .../grpc-google-cloud-cloudsupport-v2/pom.xml | 4 +- java-cloudsupport/pom.xml | 10 +- .../pom.xml | 4 +- java-compute/CHANGELOG.md | 5 + java-compute/README.md | 6 +- java-compute/google-cloud-compute-bom/pom.xml | 8 +- java-compute/google-cloud-compute/pom.xml | 4 +- java-compute/pom.xml | 8 +- .../proto-google-cloud-compute-v1/pom.xml | 4 +- java-confidentialcomputing/CHANGELOG.md | 5 + java-confidentialcomputing/README.md | 6 +- .../pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-confidentialcomputing/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-contact-center-insights/CHANGELOG.md | 5 + java-contact-center-insights/README.md | 6 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-contact-center-insights/pom.xml | 10 +- .../pom.xml | 4 +- java-container/CHANGELOG.md | 9 + java-container/README.md | 6 +- .../google-cloud-container-bom/pom.xml | 14 +- java-container/google-cloud-container/pom.xml | 4 +- .../grpc-google-cloud-container-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-container/pom.xml | 14 +- .../proto-google-cloud-container-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-containeranalysis/CHANGELOG.md | 5 + java-containeranalysis/README.md | 6 +- .../pom.xml | 14 +- .../google-cloud-containeranalysis/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-containeranalysis/pom.xml | 16 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-contentwarehouse/README.md | 6 +- .../google-cloud-contentwarehouse-bom/pom.xml | 10 +- .../google-cloud-contentwarehouse/pom.xml | 4 +- .../pom.xml | 4 +- java-contentwarehouse/pom.xml | 12 +- .../pom.xml | 4 +- java-data-fusion/CHANGELOG.md | 5 + java-data-fusion/README.md | 6 +- .../google-cloud-data-fusion-bom/pom.xml | 14 +- .../google-cloud-data-fusion/pom.xml | 4 +- .../grpc-google-cloud-data-fusion-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-data-fusion/pom.xml | 14 +- .../proto-google-cloud-data-fusion-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-datacatalog/CHANGELOG.md | 5 + java-datacatalog/README.md | 6 +- .../google-cloud-datacatalog-bom/pom.xml | 14 +- .../google-cloud-datacatalog/pom.xml | 4 +- .../grpc-google-cloud-datacatalog-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-datacatalog/pom.xml | 14 +- .../proto-google-cloud-datacatalog-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-dataflow/CHANGELOG.md | 5 + java-dataflow/README.md | 6 +- .../google-cloud-dataflow-bom/pom.xml | 10 +- java-dataflow/google-cloud-dataflow/pom.xml | 4 +- .../pom.xml | 4 +- java-dataflow/pom.xml | 10 +- .../pom.xml | 4 +- java-dataform/CHANGELOG.md | 5 + java-dataform/README.md | 6 +- .../google-cloud-dataform-bom/pom.xml | 14 +- java-dataform/google-cloud-dataform/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-dataform/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-datalabeling/CHANGELOG.md | 5 + java-datalabeling/README.md | 6 +- .../google-cloud-datalabeling-bom/pom.xml | 10 +- .../google-cloud-datalabeling/pom.xml | 4 +- .../pom.xml | 4 +- java-datalabeling/pom.xml | 10 +- .../pom.xml | 4 +- java-datalineage/CHANGELOG.md | 5 + java-datalineage/README.md | 6 +- .../google-cloud-datalineage-bom/pom.xml | 10 +- .../google-cloud-datalineage/pom.xml | 4 +- .../grpc-google-cloud-datalineage-v1/pom.xml | 4 +- java-datalineage/pom.xml | 10 +- .../proto-google-cloud-datalineage-v1/pom.xml | 4 +- java-dataplex/CHANGELOG.md | 8 + java-dataplex/README.md | 6 +- .../google-cloud-dataplex-bom/pom.xml | 10 +- java-dataplex/google-cloud-dataplex/pom.xml | 4 +- .../grpc-google-cloud-dataplex-v1/pom.xml | 4 +- java-dataplex/pom.xml | 10 +- .../proto-google-cloud-dataplex-v1/pom.xml | 4 +- java-dataproc-metastore/CHANGELOG.md | 5 + java-dataproc-metastore/README.md | 6 +- .../pom.xml | 18 +- .../google-cloud-dataproc-metastore/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-dataproc-metastore/pom.xml | 18 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-dataproc/CHANGELOG.md | 8 + java-dataproc/README.md | 6 +- .../google-cloud-dataproc-bom/pom.xml | 10 +- java-dataproc/google-cloud-dataproc/pom.xml | 4 +- .../grpc-google-cloud-dataproc-v1/pom.xml | 4 +- java-dataproc/pom.xml | 10 +- .../proto-google-cloud-dataproc-v1/pom.xml | 4 +- java-datastream/CHANGELOG.md | 5 + java-datastream/README.md | 6 +- .../google-cloud-datastream-bom/pom.xml | 14 +- .../google-cloud-datastream/pom.xml | 4 +- .../grpc-google-cloud-datastream-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-datastream/pom.xml | 14 +- .../proto-google-cloud-datastream-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-debugger-client/CHANGELOG.md | 5 + java-debugger-client/README.md | 6 +- .../google-cloud-debugger-client-bom/pom.xml | 12 +- .../google-cloud-debugger-client/pom.xml | 4 +- .../pom.xml | 4 +- java-debugger-client/pom.xml | 12 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-deploy/CHANGELOG.md | 5 + java-deploy/README.md | 6 +- java-deploy/google-cloud-deploy-bom/pom.xml | 10 +- java-deploy/google-cloud-deploy/pom.xml | 4 +- .../grpc-google-cloud-deploy-v1/pom.xml | 4 +- java-deploy/pom.xml | 10 +- .../proto-google-cloud-deploy-v1/pom.xml | 4 +- java-developerconnect/CHANGELOG.md | 5 + java-developerconnect/README.md | 6 +- .../google-cloud-developerconnect-bom/pom.xml | 10 +- .../google-cloud-developerconnect/pom.xml | 4 +- .../pom.xml | 4 +- java-developerconnect/pom.xml | 10 +- .../pom.xml | 4 +- java-dialogflow-cx/CHANGELOG.md | 9 + java-dialogflow-cx/README.md | 6 +- .../google-cloud-dialogflow-cx-bom/pom.xml | 14 +- .../google-cloud-dialogflow-cx/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-dialogflow-cx/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-dialogflow/CHANGELOG.md | 5 + java-dialogflow/README.md | 6 +- .../google-cloud-dialogflow-bom/pom.xml | 14 +- .../google-cloud-dialogflow/pom.xml | 4 +- .../grpc-google-cloud-dialogflow-v2/pom.xml | 4 +- .../pom.xml | 4 +- java-dialogflow/pom.xml | 14 +- .../proto-google-cloud-dialogflow-v2/pom.xml | 4 +- .../pom.xml | 4 +- java-discoveryengine/CHANGELOG.md | 5 + java-discoveryengine/README.md | 6 +- .../google-cloud-discoveryengine-bom/pom.xml | 18 +- .../google-cloud-discoveryengine/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-discoveryengine/pom.xml | 18 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-distributedcloudedge/CHANGELOG.md | 5 + java-distributedcloudedge/README.md | 6 +- .../pom.xml | 10 +- .../google-cloud-distributedcloudedge/pom.xml | 4 +- .../pom.xml | 4 +- java-distributedcloudedge/pom.xml | 10 +- .../pom.xml | 4 +- java-dlp/CHANGELOG.md | 5 + java-dlp/README.md | 6 +- java-dlp/google-cloud-dlp-bom/pom.xml | 10 +- java-dlp/google-cloud-dlp/pom.xml | 4 +- java-dlp/grpc-google-cloud-dlp-v2/pom.xml | 4 +- java-dlp/pom.xml | 10 +- java-dlp/proto-google-cloud-dlp-v2/pom.xml | 4 +- java-dms/CHANGELOG.md | 5 + java-dms/README.md | 6 +- java-dms/google-cloud-dms-bom/pom.xml | 10 +- java-dms/google-cloud-dms/pom.xml | 4 +- java-dms/grpc-google-cloud-dms-v1/pom.xml | 4 +- java-dms/pom.xml | 10 +- java-dms/proto-google-cloud-dms-v1/pom.xml | 4 +- java-dns/CHANGELOG.md | 5 + java-dns/README.md | 6 +- java-dns/pom.xml | 4 +- java-document-ai/CHANGELOG.md | 5 + java-document-ai/README.md | 6 +- .../google-cloud-document-ai-bom/pom.xml | 22 +- .../google-cloud-document-ai/pom.xml | 4 +- .../grpc-google-cloud-document-ai-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-document-ai/pom.xml | 22 +- .../proto-google-cloud-document-ai-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-domains/CHANGELOG.md | 5 + java-domains/README.md | 6 +- java-domains/google-cloud-domains-bom/pom.xml | 18 +- java-domains/google-cloud-domains/pom.xml | 4 +- .../grpc-google-cloud-domains-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-domains-v1beta1/pom.xml | 4 +- java-domains/pom.xml | 18 +- .../proto-google-cloud-domains-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-edgenetwork/CHANGELOG.md | 5 + java-edgenetwork/README.md | 6 +- .../google-cloud-edgenetwork-bom/pom.xml | 10 +- .../google-cloud-edgenetwork/pom.xml | 4 +- .../grpc-google-cloud-edgenetwork-v1/pom.xml | 4 +- java-edgenetwork/pom.xml | 10 +- .../proto-google-cloud-edgenetwork-v1/pom.xml | 4 +- java-enterpriseknowledgegraph/CHANGELOG.md | 5 + java-enterpriseknowledgegraph/README.md | 6 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-enterpriseknowledgegraph/pom.xml | 10 +- .../pom.xml | 4 +- java-errorreporting/CHANGELOG.md | 5 + java-errorreporting/README.md | 6 +- .../google-cloud-errorreporting-bom/pom.xml | 10 +- .../google-cloud-errorreporting/pom.xml | 4 +- .../pom.xml | 4 +- java-errorreporting/pom.xml | 10 +- .../pom.xml | 4 +- java-essential-contacts/CHANGELOG.md | 5 + java-essential-contacts/README.md | 6 +- .../pom.xml | 10 +- .../google-cloud-essential-contacts/pom.xml | 4 +- .../pom.xml | 4 +- java-essential-contacts/pom.xml | 10 +- .../pom.xml | 4 +- java-eventarc-publishing/CHANGELOG.md | 5 + java-eventarc-publishing/README.md | 6 +- .../pom.xml | 10 +- .../google-cloud-eventarc-publishing/pom.xml | 4 +- .../pom.xml | 4 +- java-eventarc-publishing/pom.xml | 10 +- .../pom.xml | 4 +- java-eventarc/CHANGELOG.md | 5 + java-eventarc/README.md | 6 +- .../google-cloud-eventarc-bom/pom.xml | 10 +- java-eventarc/google-cloud-eventarc/pom.xml | 4 +- .../grpc-google-cloud-eventarc-v1/pom.xml | 4 +- java-eventarc/pom.xml | 10 +- .../proto-google-cloud-eventarc-v1/pom.xml | 4 +- java-filestore/CHANGELOG.md | 5 + java-filestore/README.md | 6 +- .../google-cloud-filestore-bom/pom.xml | 14 +- java-filestore/google-cloud-filestore/pom.xml | 4 +- .../grpc-google-cloud-filestore-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-filestore/pom.xml | 14 +- .../proto-google-cloud-filestore-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-functions/CHANGELOG.md | 5 + java-functions/README.md | 6 +- .../google-cloud-functions-bom/pom.xml | 22 +- java-functions/google-cloud-functions/pom.xml | 4 +- .../grpc-google-cloud-functions-v1/pom.xml | 4 +- .../grpc-google-cloud-functions-v2/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-functions/pom.xml | 22 +- .../proto-google-cloud-functions-v1/pom.xml | 4 +- .../proto-google-cloud-functions-v2/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-gdchardwaremanagement/CHANGELOG.md | 8 + java-gdchardwaremanagement/README.md | 6 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-gdchardwaremanagement/pom.xml | 10 +- .../pom.xml | 4 +- java-gke-backup/CHANGELOG.md | 5 + java-gke-backup/README.md | 6 +- .../google-cloud-gke-backup-bom/pom.xml | 10 +- .../google-cloud-gke-backup/pom.xml | 4 +- .../grpc-google-cloud-gke-backup-v1/pom.xml | 4 +- java-gke-backup/pom.xml | 10 +- .../proto-google-cloud-gke-backup-v1/pom.xml | 4 +- java-gke-connect-gateway/CHANGELOG.md | 5 + java-gke-connect-gateway/README.md | 6 +- .../pom.xml | 10 +- .../google-cloud-gke-connect-gateway/pom.xml | 4 +- .../pom.xml | 4 +- java-gke-connect-gateway/pom.xml | 10 +- .../pom.xml | 4 +- java-gke-multi-cloud/CHANGELOG.md | 5 + java-gke-multi-cloud/README.md | 6 +- .../google-cloud-gke-multi-cloud-bom/pom.xml | 10 +- .../google-cloud-gke-multi-cloud/pom.xml | 4 +- .../pom.xml | 4 +- java-gke-multi-cloud/pom.xml | 10 +- .../pom.xml | 4 +- java-gkehub/CHANGELOG.md | 8 + java-gkehub/README.md | 6 +- java-gkehub/google-cloud-gkehub-bom/pom.xml | 22 +- java-gkehub/google-cloud-gkehub/pom.xml | 4 +- .../grpc-google-cloud-gkehub-v1/pom.xml | 4 +- .../grpc-google-cloud-gkehub-v1alpha/pom.xml | 4 +- .../grpc-google-cloud-gkehub-v1beta/pom.xml | 4 +- .../grpc-google-cloud-gkehub-v1beta1/pom.xml | 4 +- java-gkehub/pom.xml | 22 +- .../proto-google-cloud-gkehub-v1/pom.xml | 4 +- .../proto-google-cloud-gkehub-v1alpha/pom.xml | 4 +- .../proto-google-cloud-gkehub-v1beta/pom.xml | 4 +- .../proto-google-cloud-gkehub-v1beta1/pom.xml | 4 +- java-grafeas/CHANGELOG.md | 5 + java-grafeas/README.md | 6 +- java-grafeas/pom.xml | 4 +- java-gsuite-addons/CHANGELOG.md | 5 + java-gsuite-addons/README.md | 6 +- .../google-cloud-gsuite-addons-bom/pom.xml | 12 +- .../google-cloud-gsuite-addons/pom.xml | 4 +- .../pom.xml | 4 +- java-gsuite-addons/pom.xml | 12 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-iam-admin/CHANGELOG.md | 5 + java-iam-admin/README.md | 6 +- java-iam-admin/google-iam-admin-bom/pom.xml | 10 +- java-iam-admin/google-iam-admin/pom.xml | 4 +- .../grpc-google-iam-admin-v1/pom.xml | 4 +- java-iam-admin/pom.xml | 10 +- .../proto-google-iam-admin-v1/pom.xml | 4 +- java-iam/CHANGELOG.md | 5 + java-iam/README.md | 6 +- java-iam/google-iam-policy-bom/pom.xml | 6 +- java-iam/google-iam-policy/pom.xml | 4 +- java-iam/pom.xml | 4 +- java-iamcredentials/CHANGELOG.md | 5 + java-iamcredentials/README.md | 6 +- .../google-cloud-iamcredentials-bom/pom.xml | 10 +- .../google-cloud-iamcredentials/pom.xml | 4 +- .../pom.xml | 4 +- java-iamcredentials/pom.xml | 10 +- .../pom.xml | 4 +- java-iap/CHANGELOG.md | 5 + java-iap/README.md | 6 +- java-iap/google-cloud-iap-bom/pom.xml | 10 +- java-iap/google-cloud-iap/pom.xml | 4 +- java-iap/grpc-google-cloud-iap-v1/pom.xml | 4 +- java-iap/pom.xml | 10 +- java-iap/proto-google-cloud-iap-v1/pom.xml | 4 +- java-ids/CHANGELOG.md | 5 + java-ids/README.md | 6 +- java-ids/google-cloud-ids-bom/pom.xml | 10 +- java-ids/google-cloud-ids/pom.xml | 4 +- java-ids/grpc-google-cloud-ids-v1/pom.xml | 4 +- java-ids/pom.xml | 10 +- java-ids/proto-google-cloud-ids-v1/pom.xml | 4 +- java-infra-manager/CHANGELOG.md | 5 + java-infra-manager/README.md | 6 +- .../google-cloud-infra-manager-bom/pom.xml | 10 +- .../google-cloud-infra-manager/pom.xml | 4 +- .../pom.xml | 4 +- java-infra-manager/pom.xml | 10 +- .../pom.xml | 4 +- java-iot/CHANGELOG.md | 5 + java-iot/README.md | 6 +- java-iot/google-cloud-iot-bom/pom.xml | 10 +- java-iot/google-cloud-iot/pom.xml | 4 +- java-iot/grpc-google-cloud-iot-v1/pom.xml | 4 +- java-iot/pom.xml | 10 +- java-iot/proto-google-cloud-iot-v1/pom.xml | 4 +- java-kms/CHANGELOG.md | 5 + java-kms/README.md | 6 +- java-kms/google-cloud-kms-bom/pom.xml | 10 +- java-kms/google-cloud-kms/pom.xml | 4 +- java-kms/grpc-google-cloud-kms-v1/pom.xml | 4 +- java-kms/pom.xml | 12 +- java-kms/proto-google-cloud-kms-v1/pom.xml | 4 +- java-kmsinventory/CHANGELOG.md | 5 + java-kmsinventory/README.md | 6 +- .../google-cloud-kmsinventory-bom/pom.xml | 10 +- .../google-cloud-kmsinventory/pom.xml | 4 +- .../grpc-google-cloud-kmsinventory-v1/pom.xml | 4 +- java-kmsinventory/pom.xml | 12 +- .../pom.xml | 4 +- java-language/CHANGELOG.md | 5 + java-language/README.md | 6 +- .../google-cloud-language-bom/pom.xml | 18 +- java-language/google-cloud-language/pom.xml | 4 +- .../grpc-google-cloud-language-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-language-v2/pom.xml | 4 +- java-language/pom.xml | 18 +- .../proto-google-cloud-language-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-language-v2/pom.xml | 4 +- java-life-sciences/CHANGELOG.md | 5 + java-life-sciences/README.md | 6 +- .../google-cloud-life-sciences-bom/pom.xml | 10 +- .../google-cloud-life-sciences/pom.xml | 4 +- .../pom.xml | 4 +- java-life-sciences/pom.xml | 10 +- .../pom.xml | 4 +- java-managed-identities/CHANGELOG.md | 5 + java-managed-identities/README.md | 6 +- .../pom.xml | 10 +- .../google-cloud-managed-identities/pom.xml | 4 +- .../pom.xml | 4 +- java-managed-identities/pom.xml | 10 +- .../pom.xml | 4 +- java-managedkafka/CHANGELOG.md | 5 + java-managedkafka/README.md | 6 +- .../google-cloud-managedkafka-bom/pom.xml | 10 +- .../google-cloud-managedkafka/pom.xml | 4 +- .../grpc-google-cloud-managedkafka-v1/pom.xml | 4 +- java-managedkafka/pom.xml | 10 +- .../pom.xml | 4 +- java-maps-addressvalidation/CHANGELOG.md | 5 + java-maps-addressvalidation/README.md | 6 +- .../google-maps-addressvalidation-bom/pom.xml | 10 +- .../google-maps-addressvalidation/pom.xml | 4 +- .../pom.xml | 4 +- java-maps-addressvalidation/pom.xml | 10 +- .../pom.xml | 4 +- java-maps-mapsplatformdatasets/CHANGELOG.md | 5 + java-maps-mapsplatformdatasets/README.md | 6 +- .../pom.xml | 10 +- .../google-maps-mapsplatformdatasets/pom.xml | 4 +- .../pom.xml | 4 +- java-maps-mapsplatformdatasets/pom.xml | 10 +- .../pom.xml | 4 +- java-maps-places/CHANGELOG.md | 5 + java-maps-places/README.md | 6 +- .../google-maps-places-bom/pom.xml | 10 +- java-maps-places/google-maps-places/pom.xml | 4 +- .../grpc-google-maps-places-v1/pom.xml | 4 +- java-maps-places/pom.xml | 10 +- .../proto-google-maps-places-v1/pom.xml | 4 +- java-maps-routeoptimization/CHANGELOG.md | 5 + java-maps-routeoptimization/README.md | 6 +- .../google-maps-routeoptimization-bom/pom.xml | 10 +- .../google-maps-routeoptimization/pom.xml | 4 +- .../pom.xml | 4 +- java-maps-routeoptimization/pom.xml | 10 +- .../pom.xml | 4 +- java-maps-routing/CHANGELOG.md | 5 + java-maps-routing/README.md | 6 +- .../google-maps-routing-bom/pom.xml | 10 +- java-maps-routing/google-maps-routing/pom.xml | 4 +- .../grpc-google-maps-routing-v2/pom.xml | 4 +- java-maps-routing/pom.xml | 10 +- .../proto-google-maps-routing-v2/pom.xml | 4 +- java-maps-solar/CHANGELOG.md | 5 + java-maps-solar/README.md | 6 +- java-maps-solar/google-maps-solar-bom/pom.xml | 10 +- java-maps-solar/google-maps-solar/pom.xml | 4 +- .../grpc-google-maps-solar-v1/pom.xml | 4 +- java-maps-solar/pom.xml | 10 +- .../proto-google-maps-solar-v1/pom.xml | 4 +- java-mediatranslation/CHANGELOG.md | 5 + java-mediatranslation/README.md | 6 +- .../google-cloud-mediatranslation-bom/pom.xml | 10 +- .../google-cloud-mediatranslation/pom.xml | 4 +- .../pom.xml | 4 +- java-mediatranslation/pom.xml | 10 +- .../pom.xml | 4 +- java-meet/CHANGELOG.md | 5 + java-meet/README.md | 6 +- java-meet/google-cloud-meet-bom/pom.xml | 14 +- java-meet/google-cloud-meet/pom.xml | 4 +- java-meet/grpc-google-cloud-meet-v2/pom.xml | 4 +- .../grpc-google-cloud-meet-v2beta/pom.xml | 4 +- java-meet/pom.xml | 14 +- java-meet/proto-google-cloud-meet-v2/pom.xml | 4 +- .../proto-google-cloud-meet-v2beta/pom.xml | 4 +- java-memcache/CHANGELOG.md | 5 + java-memcache/README.md | 6 +- .../google-cloud-memcache-bom/pom.xml | 14 +- java-memcache/google-cloud-memcache/pom.xml | 4 +- .../grpc-google-cloud-memcache-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-memcache/pom.xml | 14 +- .../proto-google-cloud-memcache-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-migrationcenter/CHANGELOG.md | 5 + java-migrationcenter/README.md | 6 +- .../google-cloud-migrationcenter-bom/pom.xml | 10 +- .../google-cloud-migrationcenter/pom.xml | 4 +- .../pom.xml | 4 +- java-migrationcenter/pom.xml | 10 +- .../pom.xml | 4 +- java-monitoring-dashboards/CHANGELOG.md | 5 + java-monitoring-dashboards/README.md | 6 +- .../pom.xml | 10 +- .../google-cloud-monitoring-dashboard/pom.xml | 4 +- .../pom.xml | 4 +- java-monitoring-dashboards/pom.xml | 10 +- .../pom.xml | 4 +- java-monitoring-metricsscope/CHANGELOG.md | 5 + java-monitoring-metricsscope/README.md | 6 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-monitoring-metricsscope/pom.xml | 10 +- .../pom.xml | 4 +- java-monitoring/CHANGELOG.md | 8 + java-monitoring/README.md | 6 +- .../google-cloud-monitoring-bom/pom.xml | 10 +- .../google-cloud-monitoring/pom.xml | 4 +- .../grpc-google-cloud-monitoring-v3/pom.xml | 4 +- java-monitoring/pom.xml | 10 +- .../proto-google-cloud-monitoring-v3/pom.xml | 4 +- java-netapp/CHANGELOG.md | 5 + java-netapp/README.md | 6 +- java-netapp/google-cloud-netapp-bom/pom.xml | 10 +- java-netapp/google-cloud-netapp/pom.xml | 4 +- .../grpc-google-cloud-netapp-v1/pom.xml | 4 +- java-netapp/pom.xml | 10 +- .../proto-google-cloud-netapp-v1/pom.xml | 4 +- java-network-management/CHANGELOG.md | 5 + java-network-management/README.md | 6 +- .../pom.xml | 14 +- .../google-cloud-network-management/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-network-management/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-network-security/CHANGELOG.md | 5 + java-network-security/README.md | 6 +- .../google-cloud-network-security-bom/pom.xml | 14 +- .../google-cloud-network-security/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-network-security/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-networkconnectivity/CHANGELOG.md | 5 + java-networkconnectivity/README.md | 6 +- .../pom.xml | 14 +- .../google-cloud-networkconnectivity/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-networkconnectivity/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-networkservices/CHANGELOG.md | 8 + java-networkservices/README.md | 6 +- .../google-cloud-networkservices-bom/pom.xml | 10 +- .../google-cloud-networkservices/pom.xml | 4 +- .../pom.xml | 4 +- java-networkservices/pom.xml | 10 +- .../pom.xml | 4 +- java-notebooks/CHANGELOG.md | 5 + java-notebooks/README.md | 6 +- .../google-cloud-notebooks-bom/pom.xml | 18 +- java-notebooks/google-cloud-notebooks/pom.xml | 4 +- .../grpc-google-cloud-notebooks-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-notebooks-v2/pom.xml | 4 +- java-notebooks/pom.xml | 18 +- .../proto-google-cloud-notebooks-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-notebooks-v2/pom.xml | 4 +- java-notification/CHANGELOG.md | 5 + java-notification/README.md | 6 +- java-notification/pom.xml | 4 +- java-optimization/CHANGELOG.md | 5 + java-optimization/README.md | 6 +- .../google-cloud-optimization-bom/pom.xml | 10 +- .../google-cloud-optimization/pom.xml | 4 +- .../grpc-google-cloud-optimization-v1/pom.xml | 4 +- java-optimization/pom.xml | 10 +- .../pom.xml | 4 +- java-orchestration-airflow/CHANGELOG.md | 5 + java-orchestration-airflow/README.md | 6 +- .../pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-orchestration-airflow/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-orgpolicy/CHANGELOG.md | 5 + java-orgpolicy/README.md | 6 +- .../google-cloud-orgpolicy-bom/pom.xml | 12 +- java-orgpolicy/google-cloud-orgpolicy/pom.xml | 4 +- .../grpc-google-cloud-orgpolicy-v2/pom.xml | 4 +- java-orgpolicy/pom.xml | 12 +- .../proto-google-cloud-orgpolicy-v1/pom.xml | 4 +- .../proto-google-cloud-orgpolicy-v2/pom.xml | 4 +- java-os-config/CHANGELOG.md | 5 + java-os-config/README.md | 6 +- .../google-cloud-os-config-bom/pom.xml | 18 +- java-os-config/google-cloud-os-config/pom.xml | 4 +- .../grpc-google-cloud-os-config-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-os-config/pom.xml | 18 +- .../proto-google-cloud-os-config-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-os-login/CHANGELOG.md | 5 + java-os-login/README.md | 6 +- .../google-cloud-os-login-bom/pom.xml | 10 +- java-os-login/google-cloud-os-login/pom.xml | 4 +- .../grpc-google-cloud-os-login-v1/pom.xml | 4 +- java-os-login/pom.xml | 10 +- .../proto-google-cloud-os-login-v1/pom.xml | 4 +- java-parallelstore/CHANGELOG.md | 5 + java-parallelstore/README.md | 6 +- .../google-cloud-parallelstore-bom/pom.xml | 10 +- .../google-cloud-parallelstore/pom.xml | 4 +- .../pom.xml | 4 +- java-parallelstore/pom.xml | 10 +- .../pom.xml | 4 +- java-phishingprotection/CHANGELOG.md | 5 + java-phishingprotection/README.md | 6 +- .../pom.xml | 10 +- .../google-cloud-phishingprotection/pom.xml | 4 +- .../pom.xml | 4 +- java-phishingprotection/pom.xml | 10 +- .../pom.xml | 4 +- java-policy-troubleshooter/CHANGELOG.md | 5 + java-policy-troubleshooter/README.md | 6 +- .../pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-policy-troubleshooter/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-policysimulator/CHANGELOG.md | 5 + java-policysimulator/README.md | 6 +- .../google-cloud-policysimulator-bom/pom.xml | 10 +- .../google-cloud-policysimulator/pom.xml | 4 +- .../pom.xml | 4 +- java-policysimulator/pom.xml | 10 +- .../pom.xml | 4 +- java-private-catalog/CHANGELOG.md | 5 + java-private-catalog/README.md | 6 +- .../google-cloud-private-catalog-bom/pom.xml | 10 +- .../google-cloud-private-catalog/pom.xml | 4 +- .../pom.xml | 4 +- java-private-catalog/pom.xml | 10 +- .../pom.xml | 4 +- java-profiler/CHANGELOG.md | 5 + java-profiler/README.md | 6 +- .../google-cloud-profiler-bom/pom.xml | 10 +- java-profiler/google-cloud-profiler/pom.xml | 4 +- .../grpc-google-cloud-profiler-v2/pom.xml | 4 +- java-profiler/pom.xml | 10 +- .../proto-google-cloud-profiler-v2/pom.xml | 4 +- java-publicca/CHANGELOG.md | 5 + java-publicca/README.md | 6 +- .../google-cloud-publicca-bom/pom.xml | 14 +- java-publicca/google-cloud-publicca/pom.xml | 4 +- .../grpc-google-cloud-publicca-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-publicca/pom.xml | 14 +- .../proto-google-cloud-publicca-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-rapidmigrationassessment/CHANGELOG.md | 5 + java-rapidmigrationassessment/README.md | 6 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-rapidmigrationassessment/pom.xml | 10 +- .../pom.xml | 4 +- java-recaptchaenterprise/CHANGELOG.md | 8 + java-recaptchaenterprise/README.md | 6 +- .../pom.xml | 14 +- .../google-cloud-recaptchaenterprise/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-recaptchaenterprise/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-recommendations-ai/CHANGELOG.md | 5 + java-recommendations-ai/README.md | 6 +- .../pom.xml | 10 +- .../google-cloud-recommendations-ai/pom.xml | 4 +- .../pom.xml | 4 +- java-recommendations-ai/pom.xml | 10 +- .../pom.xml | 4 +- java-recommender/CHANGELOG.md | 5 + java-recommender/README.md | 6 +- .../google-cloud-recommender-bom/pom.xml | 14 +- .../google-cloud-recommender/pom.xml | 4 +- .../grpc-google-cloud-recommender-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-recommender/pom.xml | 14 +- .../proto-google-cloud-recommender-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-redis-cluster/CHANGELOG.md | 9 + java-redis-cluster/README.md | 6 +- .../google-cloud-redis-cluster-bom/pom.xml | 14 +- .../google-cloud-redis-cluster/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-redis-cluster/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-redis/CHANGELOG.md | 5 + java-redis/README.md | 6 +- java-redis/google-cloud-redis-bom/pom.xml | 14 +- java-redis/google-cloud-redis/pom.xml | 4 +- java-redis/grpc-google-cloud-redis-v1/pom.xml | 4 +- .../grpc-google-cloud-redis-v1beta1/pom.xml | 4 +- java-redis/pom.xml | 14 +- .../proto-google-cloud-redis-v1/pom.xml | 4 +- .../proto-google-cloud-redis-v1beta1/pom.xml | 4 +- java-resource-settings/CHANGELOG.md | 5 + java-resource-settings/README.md | 6 +- .../pom.xml | 10 +- .../google-cloud-resource-settings/pom.xml | 4 +- .../pom.xml | 4 +- java-resource-settings/pom.xml | 10 +- .../pom.xml | 4 +- java-resourcemanager/CHANGELOG.md | 5 + java-resourcemanager/README.md | 6 +- .../google-cloud-resourcemanager-bom/pom.xml | 10 +- .../google-cloud-resourcemanager/pom.xml | 4 +- .../pom.xml | 4 +- java-resourcemanager/pom.xml | 10 +- .../pom.xml | 4 +- java-retail/CHANGELOG.md | 10 + java-retail/README.md | 6 +- java-retail/google-cloud-retail-bom/pom.xml | 18 +- java-retail/google-cloud-retail/pom.xml | 4 +- .../grpc-google-cloud-retail-v2/pom.xml | 4 +- .../grpc-google-cloud-retail-v2alpha/pom.xml | 4 +- .../grpc-google-cloud-retail-v2beta/pom.xml | 4 +- java-retail/pom.xml | 18 +- .../proto-google-cloud-retail-v2/pom.xml | 4 +- .../proto-google-cloud-retail-v2alpha/pom.xml | 4 +- .../proto-google-cloud-retail-v2beta/pom.xml | 4 +- java-run/CHANGELOG.md | 5 + java-run/README.md | 6 +- java-run/google-cloud-run-bom/pom.xml | 10 +- java-run/google-cloud-run/pom.xml | 4 +- java-run/grpc-google-cloud-run-v2/pom.xml | 4 +- java-run/pom.xml | 10 +- java-run/proto-google-cloud-run-v2/pom.xml | 4 +- java-samples/pom.xml | 2 +- java-scheduler/CHANGELOG.md | 5 + java-scheduler/README.md | 6 +- .../google-cloud-scheduler-bom/pom.xml | 14 +- java-scheduler/google-cloud-scheduler/pom.xml | 4 +- .../grpc-google-cloud-scheduler-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-scheduler/pom.xml | 14 +- .../proto-google-cloud-scheduler-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-secretmanager/CHANGELOG.md | 5 + java-secretmanager/README.md | 6 +- .../google-cloud-secretmanager-bom/pom.xml | 14 +- .../google-cloud-secretmanager/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-secretmanager/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-securesourcemanager/CHANGELOG.md | 5 + java-securesourcemanager/README.md | 6 +- .../pom.xml | 10 +- .../google-cloud-securesourcemanager/pom.xml | 4 +- .../pom.xml | 4 +- java-securesourcemanager/pom.xml | 10 +- .../pom.xml | 4 +- java-security-private-ca/CHANGELOG.md | 5 + java-security-private-ca/README.md | 6 +- .../pom.xml | 14 +- .../google-cloud-security-private-ca/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-security-private-ca/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-securitycenter-settings/CHANGELOG.md | 9 + java-securitycenter-settings/README.md | 6 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-securitycenter-settings/pom.xml | 10 +- .../pom.xml | 4 +- java-securitycenter/CHANGELOG.md | 9 + java-securitycenter/README.md | 6 +- .../google-cloud-securitycenter-bom/pom.xml | 22 +- .../google-cloud-securitycenter/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-securitycenter/pom.xml | 22 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-securitycentermanagement/CHANGELOG.md | 10 + java-securitycentermanagement/README.md | 6 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-securitycentermanagement/pom.xml | 10 +- .../pom.xml | 4 +- java-securityposture/CHANGELOG.md | 5 + java-securityposture/README.md | 6 +- .../google-cloud-securityposture-bom/pom.xml | 10 +- .../google-cloud-securityposture/pom.xml | 4 +- .../pom.xml | 4 +- java-securityposture/pom.xml | 10 +- .../pom.xml | 4 +- java-service-control/CHANGELOG.md | 5 + java-service-control/README.md | 6 +- .../google-cloud-service-control-bom/pom.xml | 14 +- .../google-cloud-service-control/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-service-control/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-service-management/CHANGELOG.md | 5 + java-service-management/README.md | 6 +- .../pom.xml | 10 +- .../google-cloud-service-management/pom.xml | 4 +- .../pom.xml | 4 +- java-service-management/pom.xml | 10 +- .../pom.xml | 4 +- java-service-usage/CHANGELOG.md | 5 + java-service-usage/README.md | 6 +- .../google-cloud-service-usage-bom/pom.xml | 14 +- .../google-cloud-service-usage/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-service-usage/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-servicedirectory/CHANGELOG.md | 5 + java-servicedirectory/README.md | 6 +- .../google-cloud-servicedirectory-bom/pom.xml | 14 +- .../google-cloud-servicedirectory/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-servicedirectory/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-servicehealth/CHANGELOG.md | 5 + java-servicehealth/README.md | 6 +- .../google-cloud-servicehealth-bom/pom.xml | 10 +- .../google-cloud-servicehealth/pom.xml | 4 +- .../pom.xml | 4 +- java-servicehealth/pom.xml | 10 +- .../pom.xml | 4 +- java-shell/CHANGELOG.md | 5 + java-shell/README.md | 6 +- java-shell/google-cloud-shell-bom/pom.xml | 10 +- java-shell/google-cloud-shell/pom.xml | 4 +- java-shell/grpc-google-cloud-shell-v1/pom.xml | 4 +- java-shell/pom.xml | 10 +- .../proto-google-cloud-shell-v1/pom.xml | 4 +- java-shopping-css/CHANGELOG.md | 5 + java-shopping-css/README.md | 6 +- .../google-shopping-css-bom/pom.xml | 10 +- java-shopping-css/google-shopping-css/pom.xml | 4 +- .../grpc-google-shopping-css-v1/pom.xml | 4 +- java-shopping-css/pom.xml | 10 +- .../proto-google-shopping-css-v1/pom.xml | 4 +- java-shopping-merchant-accounts/CHANGELOG.md | 5 + java-shopping-merchant-accounts/README.md | 6 +- .../pom.xml | 10 +- .../google-shopping-merchant-accounts/pom.xml | 4 +- .../pom.xml | 4 +- java-shopping-merchant-accounts/pom.xml | 10 +- .../pom.xml | 4 +- .../CHANGELOG.md | 5 + java-shopping-merchant-conversions/README.md | 6 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-shopping-merchant-conversions/pom.xml | 10 +- .../pom.xml | 4 +- .../CHANGELOG.md | 5 + java-shopping-merchant-datasources/README.md | 6 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-shopping-merchant-datasources/pom.xml | 10 +- .../pom.xml | 4 +- .../CHANGELOG.md | 5 + java-shopping-merchant-inventories/README.md | 6 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-shopping-merchant-inventories/pom.xml | 10 +- .../pom.xml | 4 +- java-shopping-merchant-lfp/CHANGELOG.md | 5 + java-shopping-merchant-lfp/README.md | 6 +- .../google-shopping-merchant-lfp-bom/pom.xml | 10 +- .../google-shopping-merchant-lfp/pom.xml | 4 +- .../pom.xml | 4 +- java-shopping-merchant-lfp/pom.xml | 10 +- .../pom.xml | 4 +- .../CHANGELOG.md | 5 + .../README.md | 6 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-shopping-merchant-notifications/pom.xml | 10 +- .../pom.xml | 4 +- java-shopping-merchant-products/CHANGELOG.md | 5 + java-shopping-merchant-products/README.md | 6 +- .../pom.xml | 10 +- .../google-shopping-merchant-products/pom.xml | 4 +- .../pom.xml | 4 +- java-shopping-merchant-products/pom.xml | 10 +- .../pom.xml | 4 +- .../CHANGELOG.md | 5 + java-shopping-merchant-promotions/README.md | 6 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-shopping-merchant-promotions/pom.xml | 10 +- .../pom.xml | 4 +- java-shopping-merchant-quota/CHANGELOG.md | 5 + java-shopping-merchant-quota/README.md | 6 +- .../pom.xml | 10 +- .../google-shopping-merchant-quota/pom.xml | 4 +- .../pom.xml | 4 +- java-shopping-merchant-quota/pom.xml | 10 +- .../pom.xml | 4 +- java-shopping-merchant-reports/CHANGELOG.md | 5 + java-shopping-merchant-reports/README.md | 6 +- .../pom.xml | 10 +- .../google-shopping-merchant-reports/pom.xml | 4 +- .../pom.xml | 4 +- java-shopping-merchant-reports/pom.xml | 10 +- .../pom.xml | 4 +- java-speech/CHANGELOG.md | 5 + java-speech/README.md | 6 +- java-speech/google-cloud-speech-bom/pom.xml | 22 +- java-speech/google-cloud-speech/pom.xml | 4 +- .../grpc-google-cloud-speech-v1/pom.xml | 4 +- .../grpc-google-cloud-speech-v1beta1/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-speech-v2/pom.xml | 4 +- java-speech/pom.xml | 22 +- .../proto-google-cloud-speech-v1/pom.xml | 4 +- .../proto-google-cloud-speech-v1beta1/pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-speech-v2/pom.xml | 4 +- java-storage-transfer/CHANGELOG.md | 5 + java-storage-transfer/README.md | 6 +- .../google-cloud-storage-transfer-bom/pom.xml | 10 +- .../google-cloud-storage-transfer/pom.xml | 4 +- .../pom.xml | 4 +- java-storage-transfer/pom.xml | 10 +- .../pom.xml | 4 +- java-storageinsights/CHANGELOG.md | 5 + java-storageinsights/README.md | 6 +- .../google-cloud-storageinsights-bom/pom.xml | 10 +- .../google-cloud-storageinsights/pom.xml | 4 +- .../pom.xml | 4 +- java-storageinsights/pom.xml | 10 +- .../pom.xml | 4 +- java-talent/CHANGELOG.md | 5 + java-talent/README.md | 6 +- java-talent/google-cloud-talent-bom/pom.xml | 14 +- java-talent/google-cloud-talent/pom.xml | 4 +- .../grpc-google-cloud-talent-v4/pom.xml | 4 +- .../grpc-google-cloud-talent-v4beta1/pom.xml | 4 +- java-talent/pom.xml | 16 +- .../proto-google-cloud-talent-v4/pom.xml | 4 +- .../proto-google-cloud-talent-v4beta1/pom.xml | 4 +- java-tasks/CHANGELOG.md | 5 + java-tasks/README.md | 6 +- java-tasks/google-cloud-tasks-bom/pom.xml | 18 +- java-tasks/google-cloud-tasks/pom.xml | 4 +- java-tasks/grpc-google-cloud-tasks-v2/pom.xml | 4 +- .../grpc-google-cloud-tasks-v2beta2/pom.xml | 4 +- .../grpc-google-cloud-tasks-v2beta3/pom.xml | 4 +- java-tasks/pom.xml | 18 +- .../proto-google-cloud-tasks-v2/pom.xml | 4 +- .../proto-google-cloud-tasks-v2beta2/pom.xml | 4 +- .../proto-google-cloud-tasks-v2beta3/pom.xml | 4 +- java-telcoautomation/CHANGELOG.md | 5 + java-telcoautomation/README.md | 6 +- .../google-cloud-telcoautomation-bom/pom.xml | 14 +- .../google-cloud-telcoautomation/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-telcoautomation/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-texttospeech/CHANGELOG.md | 5 + java-texttospeech/README.md | 6 +- .../google-cloud-texttospeech-bom/pom.xml | 14 +- .../google-cloud-texttospeech/pom.xml | 4 +- .../grpc-google-cloud-texttospeech-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-texttospeech/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-tpu/CHANGELOG.md | 5 + java-tpu/README.md | 6 +- java-tpu/google-cloud-tpu-bom/pom.xml | 18 +- java-tpu/google-cloud-tpu/pom.xml | 4 +- java-tpu/grpc-google-cloud-tpu-v1/pom.xml | 4 +- java-tpu/grpc-google-cloud-tpu-v2/pom.xml | 4 +- .../grpc-google-cloud-tpu-v2alpha1/pom.xml | 4 +- java-tpu/pom.xml | 18 +- java-tpu/proto-google-cloud-tpu-v1/pom.xml | 4 +- java-tpu/proto-google-cloud-tpu-v2/pom.xml | 4 +- .../proto-google-cloud-tpu-v2alpha1/pom.xml | 4 +- java-trace/CHANGELOG.md | 5 + java-trace/README.md | 6 +- java-trace/google-cloud-trace-bom/pom.xml | 14 +- java-trace/google-cloud-trace/pom.xml | 4 +- java-trace/grpc-google-cloud-trace-v1/pom.xml | 4 +- java-trace/grpc-google-cloud-trace-v2/pom.xml | 4 +- java-trace/pom.xml | 14 +- .../proto-google-cloud-trace-v1/pom.xml | 4 +- .../proto-google-cloud-trace-v2/pom.xml | 4 +- java-translate/CHANGELOG.md | 5 + java-translate/README.md | 6 +- .../google-cloud-translate-bom/pom.xml | 14 +- java-translate/google-cloud-translate/pom.xml | 4 +- .../grpc-google-cloud-translate-v3/pom.xml | 4 +- .../pom.xml | 4 +- java-translate/pom.xml | 14 +- .../proto-google-cloud-translate-v3/pom.xml | 4 +- .../pom.xml | 4 +- java-vertexai/CHANGELOG.md | 14 + java-vertexai/README.md | 6 +- .../google-cloud-vertexai-bom/pom.xml | 10 +- java-vertexai/google-cloud-vertexai/pom.xml | 4 +- .../grpc-google-cloud-vertexai-v1/pom.xml | 4 +- java-vertexai/pom.xml | 10 +- .../proto-google-cloud-vertexai-v1/pom.xml | 4 +- java-video-intelligence/CHANGELOG.md | 5 + java-video-intelligence/README.md | 6 +- .../pom.xml | 26 +- .../google-cloud-video-intelligence/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-video-intelligence/pom.xml | 28 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-video-live-stream/CHANGELOG.md | 5 + java-video-live-stream/README.md | 6 +- .../google-cloud-live-stream-bom/pom.xml | 10 +- .../google-cloud-live-stream/pom.xml | 4 +- .../grpc-google-cloud-live-stream-v1/pom.xml | 4 +- java-video-live-stream/pom.xml | 10 +- .../proto-google-cloud-live-stream-v1/pom.xml | 4 +- java-video-stitcher/CHANGELOG.md | 5 + java-video-stitcher/README.md | 6 +- .../google-cloud-video-stitcher-bom/pom.xml | 10 +- .../google-cloud-video-stitcher/pom.xml | 4 +- .../pom.xml | 4 +- java-video-stitcher/pom.xml | 10 +- .../pom.xml | 4 +- java-video-transcoder/CHANGELOG.md | 5 + java-video-transcoder/README.md | 6 +- .../google-cloud-video-transcoder-bom/pom.xml | 10 +- .../google-cloud-video-transcoder/pom.xml | 4 +- .../pom.xml | 4 +- java-video-transcoder/pom.xml | 10 +- .../pom.xml | 4 +- java-vision/CHANGELOG.md | 5 + java-vision/README.md | 6 +- java-vision/google-cloud-vision-bom/pom.xml | 26 +- java-vision/google-cloud-vision/pom.xml | 4 +- .../grpc-google-cloud-vision-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-vision/pom.xml | 26 +- .../proto-google-cloud-vision-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-visionai/CHANGELOG.md | 5 + java-visionai/README.md | 6 +- .../google-cloud-visionai-bom/pom.xml | 10 +- java-visionai/google-cloud-visionai/pom.xml | 4 +- .../grpc-google-cloud-visionai-v1/pom.xml | 4 +- java-visionai/pom.xml | 10 +- .../proto-google-cloud-visionai-v1/pom.xml | 4 +- java-vmmigration/CHANGELOG.md | 5 + java-vmmigration/README.md | 6 +- .../google-cloud-vmmigration-bom/pom.xml | 10 +- .../google-cloud-vmmigration/pom.xml | 4 +- .../grpc-google-cloud-vmmigration-v1/pom.xml | 4 +- java-vmmigration/pom.xml | 10 +- .../proto-google-cloud-vmmigration-v1/pom.xml | 4 +- java-vmwareengine/CHANGELOG.md | 5 + java-vmwareengine/README.md | 6 +- .../google-cloud-vmwareengine-bom/pom.xml | 10 +- .../google-cloud-vmwareengine/pom.xml | 4 +- .../grpc-google-cloud-vmwareengine-v1/pom.xml | 4 +- java-vmwareengine/pom.xml | 10 +- .../pom.xml | 4 +- java-vpcaccess/CHANGELOG.md | 5 + java-vpcaccess/README.md | 6 +- .../google-cloud-vpcaccess-bom/pom.xml | 10 +- java-vpcaccess/google-cloud-vpcaccess/pom.xml | 4 +- .../grpc-google-cloud-vpcaccess-v1/pom.xml | 4 +- java-vpcaccess/pom.xml | 10 +- .../proto-google-cloud-vpcaccess-v1/pom.xml | 4 +- java-webrisk/CHANGELOG.md | 5 + java-webrisk/README.md | 6 +- java-webrisk/google-cloud-webrisk-bom/pom.xml | 14 +- java-webrisk/google-cloud-webrisk/pom.xml | 4 +- .../grpc-google-cloud-webrisk-v1/pom.xml | 4 +- .../grpc-google-cloud-webrisk-v1beta1/pom.xml | 4 +- java-webrisk/pom.xml | 14 +- .../proto-google-cloud-webrisk-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-websecurityscanner/CHANGELOG.md | 5 + java-websecurityscanner/README.md | 6 +- .../pom.xml | 18 +- .../google-cloud-websecurityscanner/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-websecurityscanner/pom.xml | 18 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-workflow-executions/CHANGELOG.md | 5 + java-workflow-executions/README.md | 6 +- .../pom.xml | 14 +- .../google-cloud-workflow-executions/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-workflow-executions/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-workflows/CHANGELOG.md | 5 + java-workflows/README.md | 6 +- .../google-cloud-workflows-bom/pom.xml | 14 +- java-workflows/google-cloud-workflows/pom.xml | 4 +- .../grpc-google-cloud-workflows-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-workflows/pom.xml | 14 +- .../proto-google-cloud-workflows-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-workspaceevents/CHANGELOG.md | 5 + java-workspaceevents/README.md | 6 +- .../google-cloud-workspaceevents-bom/pom.xml | 10 +- .../google-cloud-workspaceevents/pom.xml | 4 +- .../pom.xml | 4 +- java-workspaceevents/pom.xml | 10 +- .../pom.xml | 4 +- java-workstations/CHANGELOG.md | 5 + java-workstations/README.md | 6 +- .../google-cloud-workstations-bom/pom.xml | 14 +- .../google-cloud-workstations/pom.xml | 4 +- .../grpc-google-cloud-workstations-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-workstations/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- versions.txt | 1598 +- 1572 files changed, 29788 insertions(+), 5498 deletions(-) create mode 100644 java-gdchardwaremanagement/CHANGELOG.md diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 32fe2b3ff9fe..1cf398a00515 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.39.0" + ".": "1.40.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 54f199774a6b..d0c91504157e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,68 @@ # Changelog +## [1.40.0](https://github.com/googleapis/google-cloud-java/compare/v1.39.0...v1.40.0) (2024-06-27) + + +### ⚠ BREAKING CHANGES + +* [dialogflow-cx] An existing field `start_flow` is moved in to oneof in message `.google.cloud.dialogflow.cx.v3beta1.Agent` + +### Features + +* [aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason` ([666a3ac](https://github.com/googleapis/google-cloud-java/commit/666a3ac8cd0cb45da3555a1bef8dfe3edf57d257)) +* [aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason ([666a3ac](https://github.com/googleapis/google-cloud-java/commit/666a3ac8cd0cb45da3555a1bef8dfe3edf57d257)) +* [batch] add a install_ops_agent field to InstancePolicyOrTemplate for Ops Agent support ([564c369](https://github.com/googleapis/google-cloud-java/commit/564c3692bc8d22f4f5acdcbfb60be0582bd08d53)) +* [container] A new message `HugepagesConfig` is added ([4be1db5](https://github.com/googleapis/google-cloud-java/commit/4be1db5cfca842d85e167b8ed033ebcbcbd758dd)) +* [container] A new method_signature `parent` is added to method `ListOperations` in service `ClusterManager` ([4be1db5](https://github.com/googleapis/google-cloud-java/commit/4be1db5cfca842d85e167b8ed033ebcbcbd758dd)) +* [dataplex] exposing EntrySource.location field that contains location of a resource in the source system ([666a3ac](https://github.com/googleapis/google-cloud-java/commit/666a3ac8cd0cb45da3555a1bef8dfe3edf57d257)) +* [dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig ([666a3ac](https://github.com/googleapis/google-cloud-java/commit/666a3ac8cd0cb45da3555a1bef8dfe3edf57d257)) +* [gdchardwaremanagement] new module for gdchardwaremanagement ([#10990](https://github.com/googleapis/google-cloud-java/issues/10990)) ([c3cdc2a](https://github.com/googleapis/google-cloud-java/commit/c3cdc2a29e3d2f78e9e0550c24a30532db81c16a)) +* [gkehub] add a new field `PENDING` under `DeploymentState` enum ([666a3ac](https://github.com/googleapis/google-cloud-java/commit/666a3ac8cd0cb45da3555a1bef8dfe3edf57d257)) +* [kms] support Key Access Justifications policy configuration ([666a3ac](https://github.com/googleapis/google-cloud-java/commit/666a3ac8cd0cb45da3555a1bef8dfe3edf57d257)) +* [monitoring] Add support to add links in AlertPolicy ([666a3ac](https://github.com/googleapis/google-cloud-java/commit/666a3ac8cd0cb45da3555a1bef8dfe3edf57d257)) +* [recaptchaenterprise] added SMS Toll Fraud assessment ([564c369](https://github.com/googleapis/google-cloud-java/commit/564c3692bc8d22f4f5acdcbfb60be0582bd08d53)) +* [redis-cluster] [Memorystore for Redis Cluster] Add support for different node types ([4be1db5](https://github.com/googleapis/google-cloud-java/commit/4be1db5cfca842d85e167b8ed033ebcbcbd758dd)) +* [redis-cluster] Add support for different node types ([4be1db5](https://github.com/googleapis/google-cloud-java/commit/4be1db5cfca842d85e167b8ed033ebcbcbd758dd)) +* [retail] support merged facets ([4be1db5](https://github.com/googleapis/google-cloud-java/commit/4be1db5cfca842d85e167b8ed033ebcbcbd758dd)) +* [retail] support merged facets ([4be1db5](https://github.com/googleapis/google-cloud-java/commit/4be1db5cfca842d85e167b8ed033ebcbcbd758dd)) +* [retail] support merged facets ([4be1db5](https://github.com/googleapis/google-cloud-java/commit/4be1db5cfca842d85e167b8ed033ebcbcbd758dd)) +* [securitycenter] Add toxic_combination and group_memberships fields to finding ([666a3ac](https://github.com/googleapis/google-cloud-java/commit/666a3ac8cd0cb45da3555a1bef8dfe3edf57d257)) +* [securitycenter] Add toxic_combination and group_memberships fields to finding ([666a3ac](https://github.com/googleapis/google-cloud-java/commit/666a3ac8cd0cb45da3555a1bef8dfe3edf57d257)) +* [securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum ([666a3ac](https://github.com/googleapis/google-cloud-java/commit/666a3ac8cd0cb45da3555a1bef8dfe3edf57d257)) +* [securitycentermanagement] add an INGEST_ONLY EnablementState ([666a3ac](https://github.com/googleapis/google-cloud-java/commit/666a3ac8cd0cb45da3555a1bef8dfe3edf57d257)) +* [vertexai] add AutomaticFunctionCallingResponder class ([#10896](https://github.com/googleapis/google-cloud-java/issues/10896)) ([a97ac3d](https://github.com/googleapis/google-cloud-java/commit/a97ac3d71c92db934d566df0f8a24a20e8479aa9)) +* [vertexai] add FunctionDeclarationMaker.fromFunc to create FunctionDeclaration from a Java static method ([#10915](https://github.com/googleapis/google-cloud-java/issues/10915)) ([5a10656](https://github.com/googleapis/google-cloud-java/commit/5a10656cf56ff8bcfdf276434d617e7384eab9ac)) +* [vertexai] allow setting ToolConfig and SystemInstruction in ChatSession ([#10953](https://github.com/googleapis/google-cloud-java/issues/10953)) ([5ebfc33](https://github.com/googleapis/google-cloud-java/commit/5ebfc33afaf473c847389f9ef8adc58ee41f6a29)) +* [vertexai] enable AutomaticFunctionCallingResponder in ChatSession ([#10913](https://github.com/googleapis/google-cloud-java/issues/10913)) ([4db0d1d](https://github.com/googleapis/google-cloud-java/commit/4db0d1dfa6069e6d917f12b625cb7cc9319323e4)) +* [vertexai] infer location and project when user doesn't specify them. ([#10868](https://github.com/googleapis/google-cloud-java/issues/10868)) ([14f9825](https://github.com/googleapis/google-cloud-java/commit/14f98251ee1f81d10bd23a21b515a34d2af1f98f)) +* [vertexai] support ToolConfig in GenerativeModel ([#10950](https://github.com/googleapis/google-cloud-java/issues/10950)) ([0801812](https://github.com/googleapis/google-cloud-java/commit/08018121c0d1284d7dd0cd0d288f40d0a11e5506)) +* [vertexai] Update gapic to include ToolConfig ([#10920](https://github.com/googleapis/google-cloud-java/issues/10920)) ([782f21b](https://github.com/googleapis/google-cloud-java/commit/782f21b5836d3b56bf58cc81026ab326e260b16c)) + + +### Bug Fixes + +* [dialogflow-cx] An existing field `start_flow` is moved in to oneof in message `.google.cloud.dialogflow.cx.v3beta1.Agent` ([4be1db5](https://github.com/googleapis/google-cloud-java/commit/4be1db5cfca842d85e167b8ed033ebcbcbd758dd)) +* bind maven local repository in docker environment ([#10967](https://github.com/googleapis/google-cloud-java/issues/10967)) ([3e7752f](https://github.com/googleapis/google-cloud-java/commit/3e7752f3daef38affbf7b207f67619ea72f0a404)) +* **deps:** update dependency com.google.cloud:google-cloud-storage to v2.40.0 ([#10817](https://github.com/googleapis/google-cloud-java/issues/10817)) ([aa8113c](https://github.com/googleapis/google-cloud-java/commit/aa8113c022208cfb93ac9881b997d22b7c4d9046)) +* **deps:** update the Java code generator (gapic-generator-java) to 2.42.0 ([564c369](https://github.com/googleapis/google-cloud-java/commit/564c3692bc8d22f4f5acdcbfb60be0582bd08d53)) +* restore guava dependency ([#10957](https://github.com/googleapis/google-cloud-java/issues/10957)) ([9e124ee](https://github.com/googleapis/google-cloud-java/commit/9e124ee206652b9268635d9b43eb19adb2a3d7ab)) + + +### Documentation + +* [batch] Documentation improvements ([4be1db5](https://github.com/googleapis/google-cloud-java/commit/4be1db5cfca842d85e167b8ed033ebcbcbd758dd)) +* [batch]Add instructions on how to configure cross-project pubsub publisher ([564c369](https://github.com/googleapis/google-cloud-java/commit/564c3692bc8d22f4f5acdcbfb60be0582bd08d53)) +* [billing] Genereal documentation improvements ([666a3ac](https://github.com/googleapis/google-cloud-java/commit/666a3ac8cd0cb45da3555a1bef8dfe3edf57d257)) +* [cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated ([666a3ac](https://github.com/googleapis/google-cloud-java/commit/666a3ac8cd0cb45da3555a1bef8dfe3edf57d257)) +* [cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated ([666a3ac](https://github.com/googleapis/google-cloud-java/commit/666a3ac8cd0cb45da3555a1bef8dfe3edf57d257)) +* [document-ai] Update the comment to add a note about `documentai.processors.create` permission ([666a3ac](https://github.com/googleapis/google-cloud-java/commit/666a3ac8cd0cb45da3555a1bef8dfe3edf57d257)) +* [networkservices] Add a comment for the NetworkServices service ([666a3ac](https://github.com/googleapis/google-cloud-java/commit/666a3ac8cd0cb45da3555a1bef8dfe3edf57d257)) +* [os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed ([666a3ac](https://github.com/googleapis/google-cloud-java/commit/666a3ac8cd0cb45da3555a1bef8dfe3edf57d257)) +* [securitycentermanagement] minor docs formatting in `UpdateSecurityCenterServiceRequest.validate_only` ([4be1db5](https://github.com/googleapis/google-cloud-java/commit/4be1db5cfca842d85e167b8ed033ebcbcbd758dd)) +* [shopping-css] Remove "in Google Shopping" from documentation comments ([666a3ac](https://github.com/googleapis/google-cloud-java/commit/666a3ac8cd0cb45da3555a1bef8dfe3edf57d257)) +* [shopping-merchant-accounts] Format comments in ListUsersRequest ([4be1db5](https://github.com/googleapis/google-cloud-java/commit/4be1db5cfca842d85e167b8ed033ebcbcbd758dd)) +* [shopping-merchant-accounts] mark `BusinessInfo.phone` as output only ([4be1db5](https://github.com/googleapis/google-cloud-java/commit/4be1db5cfca842d85e167b8ed033ebcbcbd758dd)) + ## [1.39.0](https://github.com/googleapis/google-cloud-java/compare/v1.38.0...v1.39.0) (2024-06-07) diff --git a/changelog.json b/changelog.json index cbde978cc0b1..53878ccf017c 100644 --- a/changelog.json +++ b/changelog.json @@ -1,6 +1,23186 @@ { "repository": "googleapis/google-cloud-java", "entries": [ + { + "changes": [ + { + "type": "fix", + "sha": "9e124ee206652b9268635d9b43eb19adb2a3d7ab", + "message": "restore guava dependency", + "issues": [ + "10957" + ] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-notification", + "id": "44b02e64-063a-49f1-8cd4-95462e37aa94", + "createTime": "2024-06-27T00:36:27.369Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "14f98251ee1f81d10bd23a21b515a34d2af1f98f", + "message": "[vertexai] infer location and project when user doesn't specify them.", + "issues": [ + "10868" + ] + }, + { + "type": "feat", + "sha": "5a10656cf56ff8bcfdf276434d617e7384eab9ac", + "message": "[vertexai] add FunctionDeclarationMaker.fromFunc to create FunctionDeclaration from a Java static method", + "issues": [ + "10915" + ] + }, + { + "type": "feat", + "sha": "5ebfc33afaf473c847389f9ef8adc58ee41f6a29", + "message": "[vertexai] allow setting ToolConfig and SystemInstruction in ChatSession", + "issues": [ + "10953" + ] + }, + { + "type": "feat", + "sha": "08018121c0d1284d7dd0cd0d288f40d0a11e5506", + "message": "[vertexai] support ToolConfig in GenerativeModel", + "issues": [ + "10950" + ] + }, + { + "type": "feat", + "sha": "4db0d1dfa6069e6d917f12b625cb7cc9319323e4", + "message": "[vertexai] enable AutomaticFunctionCallingResponder in ChatSession", + "issues": [ + "10913" + ] + }, + { + "type": "feat", + "sha": "782f21b5836d3b56bf58cc81026ab326e260b16c", + "message": "[vertexai] Update gapic to include ToolConfig", + "issues": [ + "10920" + ] + }, + { + "type": "feat", + "sha": "a97ac3d71c92db934d566df0f8a24a20e8479aa9", + "message": "[vertexai] add AutomaticFunctionCallingResponder class", + "issues": [ + "10896" + ] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-vertexai", + "id": "7bcb4f62-f8f1-404e-af21-722db63a43ef", + "createTime": "2024-06-27T00:36:26.941Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-workstations", + "id": "0144b16d-ea12-4fe1-b9be-b129dfdcecf8", + "createTime": "2024-06-27T00:36:26.374Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-workspaceevents", + "id": "cabf488c-cb5d-48ba-b431-cfa661c123cc", + "createTime": "2024-06-27T00:36:26.057Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-workflows", + "id": "7351c17f-1fa0-45a5-a205-192722273b22", + "createTime": "2024-06-27T00:36:25.560Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-workflow-executions", + "id": "f70d3621-5714-45ab-ae1e-8821f6eec54d", + "createTime": "2024-06-27T00:36:25.244Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-websecurityscanner", + "id": "6ac56d1d-eb12-4e34-9391-d0bd3e1ed501", + "createTime": "2024-06-27T00:36:24.751Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-webrisk", + "id": "c0f52f43-85a7-467f-b5e3-939eb6eb038d", + "createTime": "2024-06-27T00:36:24.438Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-vpcaccess", + "id": "7770a1ff-189a-40e3-a641-7fe14efb09bb", + "createTime": "2024-06-27T00:36:23.892Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-vmwareengine", + "id": "40044ba2-60c8-4576-9551-a99bad39ca8f", + "createTime": "2024-06-27T00:36:23.571Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-vmmigration", + "id": "07c9d141-1c89-49b1-b79c-591eda7d5388", + "createTime": "2024-06-27T00:36:23.073Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-visionai", + "id": "979b1081-1379-4e8f-a022-b18258fe65d3", + "createTime": "2024-06-27T00:36:22.835Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-vision", + "id": "b2e9d184-09cc-46ee-b290-509f12ce0f83", + "createTime": "2024-06-27T00:36:22.344Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-video-transcoder", + "id": "95d6c5fa-fc26-4e90-ab5b-dbf0b2f8d706", + "createTime": "2024-06-27T00:36:22.043Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-video-stitcher", + "id": "efc8802c-d018-41d1-9503-381201098f77", + "createTime": "2024-06-27T00:36:21.580Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-live-stream", + "id": "013babc6-4a6a-4e1f-8acf-02d10fff1aa9", + "createTime": "2024-06-27T00:36:21.333Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-video-intelligence", + "id": "6286d347-3c75-45f0-883f-d7a9e8544aa6", + "createTime": "2024-06-27T00:36:20.870Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-translate", + "id": "25be8f05-fd10-48fa-95de-402d801caeb8", + "createTime": "2024-06-27T00:36:20.550Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-trace", + "id": "fa1800fb-8d52-4741-a797-ff9a8ffad1a3", + "createTime": "2024-06-27T00:36:20.074Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-texttospeech", + "id": "317787d1-5551-4217-aa7c-0a11051b90e8", + "createTime": "2024-06-27T00:36:19.821Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-telcoautomation", + "id": "c0a5d016-1baa-438e-9c74-71f59deb2991", + "createTime": "2024-06-27T00:36:19.281Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-tasks", + "id": "99f382d6-4606-40c2-ba95-d9749bfc3759", + "createTime": "2024-06-27T00:36:19.030Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-talent", + "id": "084abb7f-4f2a-4ec8-8256-b5dc6cddaef8", + "createTime": "2024-06-27T00:36:18.540Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-storageinsights", + "id": "d8d6b7c0-a671-4583-99b5-48689a4fdfd3", + "createTime": "2024-06-27T00:36:18.243Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-storage-transfer", + "id": "7aa25dd2-2eb6-40ec-a7b4-c4b122e43fd5", + "createTime": "2024-06-27T00:36:17.730Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-speech", + "id": "f7d1fbd8-7789-49d5-b678-d31c50ba7a70", + "createTime": "2024-06-27T00:36:17.432Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.shopping:google-shopping-merchant-reports", + "id": "d1192c1b-69bc-4f35-8c22-7a98f2ea9e23", + "createTime": "2024-06-27T00:36:16.869Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.shopping:google-shopping-merchant-quota", + "id": "3202bebd-f45b-4caf-9b12-ae84511b7ec8", + "createTime": "2024-06-27T00:36:16.537Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.shopping:google-shopping-merchant-promotions", + "id": "80451bc9-84bd-4ff5-86eb-801bd128e894", + "createTime": "2024-06-27T00:36:15.974Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.shopping:google-shopping-merchant-products", + "id": "ad03442b-c825-4c27-aa54-39c2829fd03a", + "createTime": "2024-06-27T00:36:15.647Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.shopping:google-shopping-merchant-lfp", + "id": "8b5ed0e2-85e7-45f4-a868-4234ce437b84", + "createTime": "2024-06-27T00:36:15.056Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.shopping:google-shopping-merchant-inventories", + "id": "75293317-189d-41c3-905b-38dbf00b0474", + "createTime": "2024-06-27T00:36:14.735Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[container] A new message `HugepagesConfig` is added", + "issues": [] + }, + { + "type": "docs", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[shopping-merchant-accounts] Format comments in ListUsersRequest", + "issues": [] + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[container] A new method_signature `parent` is added to method `ListOperations` in service `ClusterManager`", + "issues": [] + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[retail] support merged facets", + "issues": [] + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[retail] support merged facets", + "issues": [] + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[retail] support merged facets", + "issues": [] + }, + { + "type": "docs", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[securitycentermanagement] minor docs formatting in `UpdateSecurityCenterServiceRequest.validate_only`", + "issues": [] + }, + { + "type": "fix", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[dialogflow-cx] An existing field `start_flow` is moved in to oneof in message `.google.cloud.dialogflow.cx.v3beta1.Agent`", + "issues": [], + "breakingChangeNote": "[dialogflow-cx] An existing field `start_flow` is moved in to oneof in message `.google.cloud.dialogflow.cx.v3beta1.Agent`" + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[redis-cluster] Add support for different node types", + "issues": [] + }, + { + "type": "docs", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[shopping-merchant-accounts] mark `BusinessInfo.phone` as output only", + "issues": [] + }, + { + "type": "docs", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[batch] Documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[redis-cluster] [Memorystore for Redis Cluster] Add support for different node types", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.shopping:google-shopping-merchant-datasources", + "id": "2f27c484-3fb2-4c73-a63e-70d380d307c5", + "createTime": "2024-06-27T00:36:14.223Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.shopping:google-shopping-merchant-conversions", + "id": "c103afcf-4370-4f76-86d0-d72364979d3b", + "createTime": "2024-06-27T00:36:13.936Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[container] A new message `HugepagesConfig` is added", + "issues": [] + }, + { + "type": "docs", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[shopping-merchant-accounts] Format comments in ListUsersRequest", + "issues": [] + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[container] A new method_signature `parent` is added to method `ListOperations` in service `ClusterManager`", + "issues": [] + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[retail] support merged facets", + "issues": [] + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[retail] support merged facets", + "issues": [] + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[retail] support merged facets", + "issues": [] + }, + { + "type": "docs", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[securitycentermanagement] minor docs formatting in `UpdateSecurityCenterServiceRequest.validate_only`", + "issues": [] + }, + { + "type": "fix", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[dialogflow-cx] An existing field `start_flow` is moved in to oneof in message `.google.cloud.dialogflow.cx.v3beta1.Agent`", + "issues": [], + "breakingChangeNote": "[dialogflow-cx] An existing field `start_flow` is moved in to oneof in message `.google.cloud.dialogflow.cx.v3beta1.Agent`" + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[redis-cluster] Add support for different node types", + "issues": [] + }, + { + "type": "docs", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[shopping-merchant-accounts] mark `BusinessInfo.phone` as output only", + "issues": [] + }, + { + "type": "docs", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[batch] Documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[redis-cluster] [Memorystore for Redis Cluster] Add support for different node types", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.shopping:google-shopping-merchant-accounts", + "id": "ad7945a7-f027-45c9-992c-c3077c1c7e38", + "createTime": "2024-06-27T00:36:13.443Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.shopping:google-shopping-css", + "id": "eba54d6f-d62a-444f-bce1-5b69a265eb41", + "createTime": "2024-06-27T00:36:13.137Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-shell", + "id": "3f9f1153-94d6-4539-a89d-9915afc0b2e1", + "createTime": "2024-06-27T00:36:12.655Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-servicehealth", + "id": "3f25cad9-798c-439c-bed6-41b924e103ae", + "createTime": "2024-06-27T00:36:12.348Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-servicedirectory", + "id": "3f69b5b5-ca20-45af-b057-1eaeb80b7b02", + "createTime": "2024-06-27T00:36:11.858Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-service-usage", + "id": "e4e9996a-682b-45d0-849a-7fb9a10d2239", + "createTime": "2024-06-27T00:36:11.528Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-service-management", + "id": "b4324836-38b4-4f1c-bb2c-b35312ea2602", + "createTime": "2024-06-27T00:36:10.960Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-service-control", + "id": "a128b050-634d-48b7-8b69-794860d56254", + "createTime": "2024-06-27T00:36:10.548Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-securityposture", + "id": "2d60bf64-8719-4103-b26f-c75f0548f51e", + "createTime": "2024-06-27T00:36:10.062Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[container] A new message `HugepagesConfig` is added", + "issues": [] + }, + { + "type": "docs", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[shopping-merchant-accounts] Format comments in ListUsersRequest", + "issues": [] + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[container] A new method_signature `parent` is added to method `ListOperations` in service `ClusterManager`", + "issues": [] + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[retail] support merged facets", + "issues": [] + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[retail] support merged facets", + "issues": [] + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[retail] support merged facets", + "issues": [] + }, + { + "type": "docs", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[securitycentermanagement] minor docs formatting in `UpdateSecurityCenterServiceRequest.validate_only`", + "issues": [] + }, + { + "type": "fix", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[dialogflow-cx] An existing field `start_flow` is moved in to oneof in message `.google.cloud.dialogflow.cx.v3beta1.Agent`", + "issues": [], + "breakingChangeNote": "[dialogflow-cx] An existing field `start_flow` is moved in to oneof in message `.google.cloud.dialogflow.cx.v3beta1.Agent`" + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[redis-cluster] Add support for different node types", + "issues": [] + }, + { + "type": "docs", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[shopping-merchant-accounts] mark `BusinessInfo.phone` as output only", + "issues": [] + }, + { + "type": "docs", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[batch] Documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[redis-cluster] [Memorystore for Redis Cluster] Add support for different node types", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-securitycentermanagement", + "id": "97f432d5-0c0a-43bf-b0f0-f3405d8b258a", + "createTime": "2024-06-27T00:36:09.655Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-securitycenter", + "id": "f69a64b9-ff35-4328-b463-c09720065f2d", + "createTime": "2024-06-27T00:36:09.248Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-securitycenter-settings", + "id": "97b6772c-54af-4944-9bd8-a94112ae8a1c", + "createTime": "2024-06-27T00:36:08.853Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-security-private-ca", + "id": "ba0e4a6f-7e31-43d3-a45a-d420c9db7491", + "createTime": "2024-06-27T00:36:08.439Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-securesourcemanager", + "id": "f24ed180-bea7-4352-b853-48c98d773a83", + "createTime": "2024-06-27T00:36:08.151Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-secretmanager", + "id": "e26b9de6-084f-405e-833f-95161c0ed916", + "createTime": "2024-06-27T00:36:07.664Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-scheduler", + "id": "5b8f2a3f-1114-46cd-9dfd-ba4d5f836228", + "createTime": "2024-06-27T00:36:07.424Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-run", + "id": "dd2db580-d6dd-4ae6-b6c1-64063c6d47d2", + "createTime": "2024-06-27T00:36:06.933Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[container] A new message `HugepagesConfig` is added", + "issues": [] + }, + { + "type": "docs", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[shopping-merchant-accounts] Format comments in ListUsersRequest", + "issues": [] + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[container] A new method_signature `parent` is added to method `ListOperations` in service `ClusterManager`", + "issues": [] + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[retail] support merged facets", + "issues": [] + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[retail] support merged facets", + "issues": [] + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[retail] support merged facets", + "issues": [] + }, + { + "type": "docs", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[securitycentermanagement] minor docs formatting in `UpdateSecurityCenterServiceRequest.validate_only`", + "issues": [] + }, + { + "type": "fix", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[dialogflow-cx] An existing field `start_flow` is moved in to oneof in message `.google.cloud.dialogflow.cx.v3beta1.Agent`", + "issues": [], + "breakingChangeNote": "[dialogflow-cx] An existing field `start_flow` is moved in to oneof in message `.google.cloud.dialogflow.cx.v3beta1.Agent`" + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[redis-cluster] Add support for different node types", + "issues": [] + }, + { + "type": "docs", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[shopping-merchant-accounts] mark `BusinessInfo.phone` as output only", + "issues": [] + }, + { + "type": "docs", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[batch] Documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[redis-cluster] [Memorystore for Redis Cluster] Add support for different node types", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-retail", + "id": "81e225d8-3e65-40d1-bc86-e548a0693025", + "createTime": "2024-06-27T00:36:06.644Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-resourcemanager", + "id": "3ecf4f72-ee35-4e8a-98cf-5209bf97f25a", + "createTime": "2024-06-27T00:36:06.164Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-resource-settings", + "id": "dd7ca186-c9f7-4b69-aca2-bb27afb5f130", + "createTime": "2024-06-27T00:36:05.855Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-redis", + "id": "30fd9aba-1481-43e3-99f0-b983907a505f", + "createTime": "2024-06-27T00:36:05.381Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[container] A new message `HugepagesConfig` is added", + "issues": [] + }, + { + "type": "docs", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[shopping-merchant-accounts] Format comments in ListUsersRequest", + "issues": [] + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[container] A new method_signature `parent` is added to method `ListOperations` in service `ClusterManager`", + "issues": [] + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[retail] support merged facets", + "issues": [] + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[retail] support merged facets", + "issues": [] + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[retail] support merged facets", + "issues": [] + }, + { + "type": "docs", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[securitycentermanagement] minor docs formatting in `UpdateSecurityCenterServiceRequest.validate_only`", + "issues": [] + }, + { + "type": "fix", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[dialogflow-cx] An existing field `start_flow` is moved in to oneof in message `.google.cloud.dialogflow.cx.v3beta1.Agent`", + "issues": [], + "breakingChangeNote": "[dialogflow-cx] An existing field `start_flow` is moved in to oneof in message `.google.cloud.dialogflow.cx.v3beta1.Agent`" + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[redis-cluster] Add support for different node types", + "issues": [] + }, + { + "type": "docs", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[shopping-merchant-accounts] mark `BusinessInfo.phone` as output only", + "issues": [] + }, + { + "type": "docs", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[batch] Documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[redis-cluster] [Memorystore for Redis Cluster] Add support for different node types", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-redis-cluster", + "id": "e3b91b7c-c128-4745-a945-932469d04ed5", + "createTime": "2024-06-27T00:36:05.045Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-recommender", + "id": "23b74927-58f1-4d4f-8055-9db47ae4f974", + "createTime": "2024-06-27T00:36:04.634Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-recommendations-ai", + "id": "a04a7102-d00e-4a15-89cc-317fed048d7b", + "createTime": "2024-06-27T00:36:04.348Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-rapidmigrationassessment", + "id": "4068692b-aa24-4ed1-ae00-2f4bab7cb67e", + "createTime": "2024-06-27T00:36:03.864Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-publicca", + "id": "c95f10a8-b15d-4f2d-a4ef-a5aba20fcca8", + "createTime": "2024-06-27T00:36:03.544Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-profiler", + "id": "e3e6c122-fe28-4632-baae-2188499c65b2", + "createTime": "2024-06-27T00:36:03.067Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-private-catalog", + "id": "b973239c-ad65-4175-b401-a2023894107f", + "createTime": "2024-06-27T00:36:02.750Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-policysimulator", + "id": "313ca434-17b5-454f-ac99-4e117b2cb1cd", + "createTime": "2024-06-27T00:36:02.342Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-policy-troubleshooter", + "id": "06538235-abc6-4461-9120-b82827a218a9", + "createTime": "2024-06-27T00:36:02.044Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-phishingprotection", + "id": "0804c35b-753c-43a9-b77e-95a8ac452190", + "createTime": "2024-06-27T00:36:01.568Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-parallelstore", + "id": "0363a61e-54fe-4311-b88c-226976a0a026", + "createTime": "2024-06-27T00:36:01.269Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-os-login", + "id": "af177ae1-95b9-49de-92a0-7952f95ec852", + "createTime": "2024-06-27T00:36:00.854Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-os-config", + "id": "e3742823-7d51-4c3e-8d8a-9e8a647fb318", + "createTime": "2024-06-27T00:36:00.461Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-orchestration-airflow", + "id": "5930bf51-59a1-4cf0-8746-218a2001e246", + "createTime": "2024-06-27T00:36:00.072Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-optimization", + "id": "ba212b4c-55b9-4400-8f36-bc477b1d5547", + "createTime": "2024-06-27T00:35:59.723Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-networkservices", + "id": "17b71940-fdd2-40b2-aa4c-fa95c493820d", + "createTime": "2024-06-27T00:35:59.223Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-networkconnectivity", + "id": "09a73f68-65e8-4d05-a6d1-ad0a077ece15", + "createTime": "2024-06-27T00:35:58.931Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-network-security", + "id": "df179b90-02a0-40cf-8ed2-cd7689209b16", + "createTime": "2024-06-27T00:35:58.395Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-network-management", + "id": "406df04c-98cc-4dd5-9f72-e7d9ff8d3444", + "createTime": "2024-06-27T00:35:58.027Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-netapp", + "id": "576a55cc-5539-4270-8d27-43016c9ceecc", + "createTime": "2024-06-27T00:35:57.558Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-monitoring", + "id": "173abd05-028c-4b05-9490-d947f31d29a9", + "createTime": "2024-06-27T00:35:57.139Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-monitoring-metricsscope", + "id": "10c3667c-b85e-4797-8bcb-782efa00f6a9", + "createTime": "2024-06-27T00:35:56.664Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-monitoring-dashboard", + "id": "79a61455-b5a5-4310-afa8-7d235a183d4e", + "createTime": "2024-06-27T00:35:56.339Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-migrationcenter", + "id": "3243ba86-cdd2-457a-9d3c-0b808186e606", + "createTime": "2024-06-27T00:35:55.835Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-memcache", + "id": "fee73c34-2f71-4630-9911-b3ba2be0484f", + "createTime": "2024-06-27T00:35:55.537Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-meet", + "id": "a54c0a4b-dfe1-4627-ad7a-e259314e7633", + "createTime": "2024-06-27T00:35:54.964Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-mediatranslation", + "id": "533ffa73-eaab-4bbc-afa8-3cca889fafbe", + "createTime": "2024-06-27T00:35:54.638Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.maps:google-maps-solar", + "id": "071f7519-089d-4063-92d3-d41fd2579b10", + "createTime": "2024-06-27T00:35:54.123Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.maps:google-maps-routing", + "id": "ae0b3ac2-abdf-4b8f-be49-6104da03838d", + "createTime": "2024-06-27T00:35:53.749Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.maps:google-maps-routeoptimization", + "id": "f793d460-a257-487f-9526-fcc5726f78a0", + "createTime": "2024-06-27T00:35:53.252Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.maps:google-maps-places", + "id": "9793a7b8-bfb2-456f-a14c-9463ca04debc", + "createTime": "2024-06-27T00:35:52.959Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.maps:google-maps-mapsplatformdatasets", + "id": "0bc5805d-cc6e-4d3b-b8be-674ea285aaed", + "createTime": "2024-06-27T00:35:52.349Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.maps:google-maps-addressvalidation", + "id": "bbabc7b5-8922-45e3-8b2f-1fab064ad0b8", + "createTime": "2024-06-27T00:35:52.037Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-managedkafka", + "id": "f072717e-f06a-487b-8eac-aeeaa1d60372", + "createTime": "2024-06-27T00:35:51.570Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-managed-identities", + "id": "35123c9c-924e-4b37-8d3d-5036a9c6f183", + "createTime": "2024-06-27T00:35:51.335Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-life-sciences", + "id": "60559ccc-e21e-4af4-8958-05438181af75", + "createTime": "2024-06-27T00:35:50.860Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-language", + "id": "32fe6542-aafb-436b-97f2-40f5c544f116", + "createTime": "2024-06-27T00:35:50.529Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-kmsinventory", + "id": "99db1623-9e77-4267-8f2e-c592ec959d45", + "createTime": "2024-06-27T00:35:50.039Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-kms", + "id": "53fcd360-f77b-4059-a0c8-fddfd0502b9e", + "createTime": "2024-06-27T00:35:49.677Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-iot", + "id": "e8815242-ac29-4580-acd2-2cca162bf3b4", + "createTime": "2024-06-27T00:35:49.134Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-infra-manager", + "id": "4b8936a4-99e0-40c8-99f9-b0de5fdfe42e", + "createTime": "2024-06-27T00:35:48.889Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-ids", + "id": "f49ff99e-67c8-4c07-b215-d73d8e4f2cc5", + "createTime": "2024-06-27T00:35:48.345Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-iap", + "id": "59b795cc-6bc7-4924-9756-247996e27626", + "createTime": "2024-06-27T00:35:48.032Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-iamcredentials", + "id": "2b256f4e-4e81-4c06-9f3b-55f54f4f26fd", + "createTime": "2024-06-27T00:35:47.634Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-iam-admin", + "id": "e86b1b17-4a93-4a39-8448-1be0b3f93bc3", + "createTime": "2024-06-27T00:35:47.076Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-gsuite-addons", + "id": "f17fef71-d451-42f1-b114-efa28f69d6ed", + "createTime": "2024-06-27T00:35:46.735Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "io.grafeas:grafeas", + "id": "abf3d490-15e7-44b1-ab95-97a4c5d447be", + "createTime": "2024-06-27T00:35:46.162Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-gkehub", + "id": "751a9b7e-21a8-4e61-8e7c-0346a2cd26be", + "createTime": "2024-06-27T00:35:45.955Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-gke-multi-cloud", + "id": "e981ca0c-e9bc-4378-890f-67daea602649", + "createTime": "2024-06-27T00:35:45.425Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-gke-connect-gateway", + "id": "8662fc8a-69db-4b9f-9cb0-2e8e773ee834", + "createTime": "2024-06-27T00:35:45.155Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-gke-backup", + "id": "6021bcf0-ecae-405b-9aae-91318590e63e", + "createTime": "2024-06-27T00:35:44.727Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-functions", + "id": "5bdbcfa6-409c-4d44-a181-cb43e72e9bdd", + "createTime": "2024-06-27T00:35:44.276Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-filestore", + "id": "ee5c8c68-cd1e-4bdf-8827-7431530c645b", + "createTime": "2024-06-27T00:35:43.974Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-eventarc", + "id": "4a9b80b5-fdf4-4bbf-bcbc-de647352da83", + "createTime": "2024-06-27T00:35:43.473Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-eventarc-publishing", + "id": "2cea5df0-e952-429d-a6cf-785e6c0e0b72", + "createTime": "2024-06-27T00:35:43.321Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-essential-contacts", + "id": "ae318819-cf15-44f8-9421-ff337ffc5f78", + "createTime": "2024-06-27T00:35:42.765Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-errorreporting", + "id": "390739ca-2bf8-4930-a0bf-128e0d0b02cb", + "createTime": "2024-06-27T00:35:42.537Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-enterpriseknowledgegraph", + "id": "4455f597-8b44-44d4-b8bc-9f4847d44fb3", + "createTime": "2024-06-27T00:35:42.227Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-edgenetwork", + "id": "7845c563-acb8-4036-943d-6db886c12c7b", + "createTime": "2024-06-27T00:35:41.730Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-domains", + "id": "7d028024-b5ea-4ec8-95a5-1e4785992914", + "createTime": "2024-06-27T00:35:41.525Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-document-ai", + "id": "6987e86c-50cd-49f0-955f-15ca18232365", + "createTime": "2024-06-27T00:35:41.024Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-dms", + "id": "92307246-9f0e-4a0e-942c-815ef0b6aaa3", + "createTime": "2024-06-27T00:35:40.725Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-dlp", + "id": "5e403761-4ccc-44ae-8c94-8c2a784aa0ec", + "createTime": "2024-06-27T00:35:40.374Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-distributedcloudedge", + "id": "f285ff6a-7538-4299-99b3-e851d12fc25c", + "createTime": "2024-06-27T00:35:39.838Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-discoveryengine", + "id": "eddb28b4-f2ca-4738-aee2-a181d8e54838", + "createTime": "2024-06-27T00:35:39.633Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-dialogflow", + "id": "777d76cb-4c96-44bb-950e-45c944208040", + "createTime": "2024-06-27T00:35:39.031Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[container] A new message `HugepagesConfig` is added", + "issues": [] + }, + { + "type": "docs", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[shopping-merchant-accounts] Format comments in ListUsersRequest", + "issues": [] + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[container] A new method_signature `parent` is added to method `ListOperations` in service `ClusterManager`", + "issues": [] + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[retail] support merged facets", + "issues": [] + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[retail] support merged facets", + "issues": [] + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[retail] support merged facets", + "issues": [] + }, + { + "type": "docs", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[securitycentermanagement] minor docs formatting in `UpdateSecurityCenterServiceRequest.validate_only`", + "issues": [] + }, + { + "type": "fix", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[dialogflow-cx] An existing field `start_flow` is moved in to oneof in message `.google.cloud.dialogflow.cx.v3beta1.Agent`", + "issues": [], + "breakingChangeNote": "[dialogflow-cx] An existing field `start_flow` is moved in to oneof in message `.google.cloud.dialogflow.cx.v3beta1.Agent`" + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[redis-cluster] Add support for different node types", + "issues": [] + }, + { + "type": "docs", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[shopping-merchant-accounts] mark `BusinessInfo.phone` as output only", + "issues": [] + }, + { + "type": "docs", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[batch] Documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[redis-cluster] [Memorystore for Redis Cluster] Add support for different node types", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-dialogflow-cx", + "id": "99a4acac-cdb2-42a5-a0e0-dc53837f8ab3", + "createTime": "2024-06-27T00:35:38.738Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-developerconnect", + "id": "d1efd742-6cd7-475b-9fc3-5e631ef434e2", + "createTime": "2024-06-27T00:35:38.365Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-deploy", + "id": "c9ea353f-a86d-496d-8de9-dd1e461a7326", + "createTime": "2024-06-27T00:35:37.853Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-debugger-client", + "id": "a213ba77-4ad5-499f-b6bb-269a03db82d9", + "createTime": "2024-06-27T00:35:37.639Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-datastream", + "id": "57927cbf-97c6-43cc-a9ec-f048a996ad34", + "createTime": "2024-06-27T00:35:37.080Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-dataproc", + "id": "26cef482-124d-472b-a95e-325b7df87a76", + "createTime": "2024-06-27T00:35:36.881Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-dataproc-metastore", + "id": "0b57a73f-7401-4a57-a808-8661e7ccc807", + "createTime": "2024-06-27T00:35:36.421Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-dataplex", + "id": "fa64a659-bac8-4982-99ee-b5c6192876eb", + "createTime": "2024-06-27T00:35:36.121Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-datalineage", + "id": "992f1f13-67b5-4200-a43f-ee47e15cbf17", + "createTime": "2024-06-27T00:35:35.749Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-datalabeling", + "id": "a77cf992-e117-443f-84df-06d675cf1836", + "createTime": "2024-06-27T00:35:35.233Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-dataform", + "id": "ea65006a-be5d-4a66-b677-33fd96b24c41", + "createTime": "2024-06-27T00:35:35.038Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-dataflow", + "id": "a597efd9-ca20-4542-95f6-8d6eb197778a", + "createTime": "2024-06-27T00:35:34.526Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-datacatalog", + "id": "9cd3f793-3b10-4d5b-9798-c5dc63e55e32", + "createTime": "2024-06-27T00:35:34.232Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-data-fusion", + "id": "85ef3325-c185-4d7f-bde1-d28cf3488f48", + "createTime": "2024-06-27T00:35:33.874Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-contentwarehouse", + "id": "0bffb3c3-6f7d-4e92-accc-55732819d82a", + "createTime": "2024-06-27T00:35:33.352Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-containeranalysis", + "id": "ebf371d7-594d-4c76-8d0b-2fea03beefbd", + "createTime": "2024-06-27T00:35:33.147Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[container] A new message `HugepagesConfig` is added", + "issues": [] + }, + { + "type": "docs", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[shopping-merchant-accounts] Format comments in ListUsersRequest", + "issues": [] + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[container] A new method_signature `parent` is added to method `ListOperations` in service `ClusterManager`", + "issues": [] + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[retail] support merged facets", + "issues": [] + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[retail] support merged facets", + "issues": [] + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[retail] support merged facets", + "issues": [] + }, + { + "type": "docs", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[securitycentermanagement] minor docs formatting in `UpdateSecurityCenterServiceRequest.validate_only`", + "issues": [] + }, + { + "type": "fix", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[dialogflow-cx] An existing field `start_flow` is moved in to oneof in message `.google.cloud.dialogflow.cx.v3beta1.Agent`", + "issues": [], + "breakingChangeNote": "[dialogflow-cx] An existing field `start_flow` is moved in to oneof in message `.google.cloud.dialogflow.cx.v3beta1.Agent`" + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[redis-cluster] Add support for different node types", + "issues": [] + }, + { + "type": "docs", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[shopping-merchant-accounts] mark `BusinessInfo.phone` as output only", + "issues": [] + }, + { + "type": "docs", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[batch] Documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[redis-cluster] [Memorystore for Redis Cluster] Add support for different node types", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-container", + "id": "a4f91d26-5e81-44ba-b3b7-c62dca5ada8d", + "createTime": "2024-06-27T00:35:32.439Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-contact-center-insights", + "id": "8b96e7bf-cce4-48ae-a103-d290d268b0a5", + "createTime": "2024-06-27T00:35:32.189Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-confidentialcomputing", + "id": "b34357d3-1dcb-4015-baab-1fb93be903a7", + "createTime": "2024-06-27T00:35:31.858Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-compute", + "id": "365c4e83-c7a1-448a-89fc-ee6f7ee799dd", + "createTime": "2024-06-27T00:35:31.358Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-cloudsupport", + "id": "b14bdf0f-3e3f-448b-bc41-ab6823676f43", + "createTime": "2024-06-27T00:35:31.157Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-cloudquotas", + "id": "f3236739-fdc0-424e-88a5-187a06f74668", + "createTime": "2024-06-27T00:35:30.533Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-cloudcontrolspartner", + "id": "ac4cdd83-c335-4899-8534-64ff9f49abc8", + "createTime": "2024-06-27T00:35:30.269Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-cloudcommerceconsumerprocurement", + "id": "c96fe336-6f15-46c0-8688-279200714ddf", + "createTime": "2024-06-27T00:35:29.934Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-build", + "id": "8da2036a-eafc-49fc-bed7-fae7683c0223", + "createTime": "2024-06-27T00:35:29.425Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-chat", + "id": "66a9651e-7392-4d53-9627-3a2808c8a558", + "createTime": "2024-06-27T00:35:29.235Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-channel", + "id": "2b795aed-e217-4f66-a3a4-81ade01d51d4", + "createTime": "2024-06-27T00:35:28.731Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-certificate-manager", + "id": "74ad0b50-c37e-449b-8027-ed78384f7b96", + "createTime": "2024-06-27T00:35:28.437Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-binary-authorization", + "id": "8f466083-6e97-4a37-9a3a-0aa6bfccc77a", + "createTime": "2024-06-27T00:35:28.149Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-billingbudgets", + "id": "1d890a2d-48d2-4f1b-9cd2-84d92435476c", + "createTime": "2024-06-27T00:35:27.681Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-billing", + "id": "5f146649-2ac0-4e04-b922-5dfd4bf539b9", + "createTime": "2024-06-27T00:35:27.533Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-bigqueryreservation", + "id": "a3f2f5f3-978a-4d5b-b261-6761d3f2c0c3", + "createTime": "2024-06-27T00:35:27.038Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-bigquerymigration", + "id": "8e764629-c74d-4481-a93e-643343491a8c", + "createTime": "2024-06-27T00:35:26.745Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-bigquerydatatransfer", + "id": "fa6bf190-1899-4680-b56b-595a8dfac28e", + "createTime": "2024-06-27T00:35:26.426Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-bigquerydatapolicy", + "id": "43499e6c-ccf9-4871-a3aa-92e860ac6d5f", + "createTime": "2024-06-27T00:35:25.962Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-bigqueryconnection", + "id": "49a036bd-f5e8-4b5c-9f87-2aeb667e4563", + "createTime": "2024-06-27T00:35:25.770Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-bigquery-data-exchange", + "id": "a1fbae5b-5af0-4624-bef8-d2369a0ae329", + "createTime": "2024-06-27T00:35:25.325Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-biglake", + "id": "884ed49f-ec3a-47b5-9ff7-7b15c318e02a", + "createTime": "2024-06-27T00:35:25.039Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-beyondcorp-clientgateways", + "id": "538a9c5a-a95c-49f4-a820-40170d6cb07e", + "createTime": "2024-06-27T00:35:24.732Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-beyondcorp-clientconnectorservices", + "id": "84795187-19c9-4ab6-acf3-ad25a2be3dae", + "createTime": "2024-06-27T00:35:24.260Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-beyondcorp-appgateways", + "id": "b0e1cca7-079f-4544-83ec-1e6ead7ec007", + "createTime": "2024-06-27T00:35:24.080Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-beyondcorp-appconnectors", + "id": "ed9eba16-69d2-4252-b645-401757e5f92a", + "createTime": "2024-06-27T00:35:23.630Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-beyondcorp-appconnections", + "id": "4cc9c1bf-5df3-4699-81c3-0ee026a97a83", + "createTime": "2024-06-27T00:35:23.366Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-bare-metal-solution", + "id": "4af14372-6d04-40f4-bad1-33c45c4877d6", + "createTime": "2024-06-27T00:35:23.046Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-backupdr", + "id": "04dfa6cd-8adb-4a3f-99ca-3e0712bf4600", + "createTime": "2024-06-27T00:35:22.564Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-automl", + "id": "eec3a513-5b6e-4ef4-b86d-91e85a1d41dc", + "createTime": "2024-06-27T00:35:22.377Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-assured-workloads", + "id": "48b8a026-d251-453e-8f50-4d4e128dcee8", + "createTime": "2024-06-27T00:35:21.821Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-asset", + "id": "46bcce28-14c4-4f6e-8109-31f8d1448ce6", + "createTime": "2024-06-27T00:35:21.556Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-artifact-registry", + "id": "1cef9c19-cb17-4a1d-ba03-c1053855926e", + "createTime": "2024-06-27T00:35:21.244Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.area120:google-area120-tables", + "id": "e3e2e114-7083-4469-b692-4de76980ef9e", + "createTime": "2024-06-27T00:35:20.746Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-apphub", + "id": "fd7203f1-21b9-40f4-a6fa-971acda10e4a", + "createTime": "2024-06-27T00:35:20.540Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-appengine-admin", + "id": "8ee24a1d-05c0-45bd-a08f-85389042c677", + "createTime": "2024-06-27T00:35:19.978Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-apikeys", + "id": "094235df-eb97-44c4-8e22-92046167630b", + "createTime": "2024-06-27T00:35:19.778Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-apigee-registry", + "id": "689b7aa9-1af2-4155-87f1-5e272fda8b33", + "createTime": "2024-06-27T00:35:19.334Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-apigee-connect", + "id": "0e7c5bcc-040c-4b53-9d86-86e56749c4e1", + "createTime": "2024-06-27T00:35:19.031Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-api-gateway", + "id": "f32d2d0e-74a1-416f-9d6c-af62df642a3e", + "createTime": "2024-06-27T00:35:18.669Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-analyticshub", + "id": "18d2f07a-5801-480c-8b48-499af7639853", + "createTime": "2024-06-27T00:35:18.183Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.analytics:google-analytics-data", + "id": "e3119b41-4788-4d5f-a8c0-61b37e22edc2", + "createTime": "2024-06-27T00:35:18.023Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.analytics:google-analytics-admin", + "id": "a4083787-e3a3-4449-a9ac-0e94fa9bfa3e", + "createTime": "2024-06-27T00:35:17.531Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-alloydb", + "id": "c635153e-bad9-40ce-ba94-860b43170e70", + "createTime": "2024-06-27T00:35:17.242Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-alloydb-connectors", + "id": "7ca77cef-5a52-440a-a94a-e5dfa24bd0c5", + "createTime": "2024-06-27T00:35:16.932Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-aiplatform", + "id": "08017dfa-e0db-4b28-8ab8-820ba1ed7ac8", + "createTime": "2024-06-27T00:35:16.462Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-advisorynotifications", + "id": "e48c910c-4729-4db2-b985-3c756aa45b4d", + "createTime": "2024-06-27T00:35:16.274Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.api-ads:ad-manager", + "id": "8e55a32d-a457-4fcb-af9d-6102e7a586f9", + "createTime": "2024-06-27T00:35:15.828Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-identity-accesscontextmanager", + "id": "f8de0e16-a7c1-48ee-aa25-21e22a839321", + "createTime": "2024-06-27T00:35:15.531Z" + }, + { + "changes": [ + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-accessapproval", + "id": "5234b1c4-1570-4fdb-b248-233b338f38b5", + "createTime": "2024-06-27T00:35:15.228Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "564c3692bc8d22f4f5acdcbfb60be0582bd08d53", + "message": "update the Java code generator (gapic-generator-java) to 2.42.0", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "564c3692bc8d22f4f5acdcbfb60be0582bd08d53", + "message": "[batch] add a install_ops_agent field to InstancePolicyOrTemplate for Ops Agent support", + "issues": [] + }, + { + "type": "docs", + "sha": "564c3692bc8d22f4f5acdcbfb60be0582bd08d53", + "message": "[batch]Add instructions on how to configure cross-project pubsub publisher", + "issues": [] + }, + { + "type": "feat", + "sha": "564c3692bc8d22f4f5acdcbfb60be0582bd08d53", + "message": "[recaptchaenterprise] added SMS Toll Fraud assessment", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-tpu", + "id": "c1f919b8-aed5-49a0-8bc8-740b722de79c", + "createTime": "2024-06-27T00:35:14.740Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "564c3692bc8d22f4f5acdcbfb60be0582bd08d53", + "message": "update the Java code generator (gapic-generator-java) to 2.42.0", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "564c3692bc8d22f4f5acdcbfb60be0582bd08d53", + "message": "[batch] add a install_ops_agent field to InstancePolicyOrTemplate for Ops Agent support", + "issues": [] + }, + { + "type": "docs", + "sha": "564c3692bc8d22f4f5acdcbfb60be0582bd08d53", + "message": "[batch]Add instructions on how to configure cross-project pubsub publisher", + "issues": [] + }, + { + "type": "feat", + "sha": "564c3692bc8d22f4f5acdcbfb60be0582bd08d53", + "message": "[recaptchaenterprise] added SMS Toll Fraud assessment", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-recaptchaenterprise", + "id": "a85c28bf-91b2-4765-873a-a3fb45a5089e", + "createTime": "2024-06-27T00:35:14.535Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "564c3692bc8d22f4f5acdcbfb60be0582bd08d53", + "message": "update the Java code generator (gapic-generator-java) to 2.42.0", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "564c3692bc8d22f4f5acdcbfb60be0582bd08d53", + "message": "[batch] add a install_ops_agent field to InstancePolicyOrTemplate for Ops Agent support", + "issues": [] + }, + { + "type": "docs", + "sha": "564c3692bc8d22f4f5acdcbfb60be0582bd08d53", + "message": "[batch]Add instructions on how to configure cross-project pubsub publisher", + "issues": [] + }, + { + "type": "feat", + "sha": "564c3692bc8d22f4f5acdcbfb60be0582bd08d53", + "message": "[recaptchaenterprise] added SMS Toll Fraud assessment", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-orgpolicy", + "id": "024b8203-9d6f-45df-9a6b-46547b09b53c", + "createTime": "2024-06-27T00:35:13.941Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "564c3692bc8d22f4f5acdcbfb60be0582bd08d53", + "message": "update the Java code generator (gapic-generator-java) to 2.42.0", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "564c3692bc8d22f4f5acdcbfb60be0582bd08d53", + "message": "[batch] add a install_ops_agent field to InstancePolicyOrTemplate for Ops Agent support", + "issues": [] + }, + { + "type": "docs", + "sha": "564c3692bc8d22f4f5acdcbfb60be0582bd08d53", + "message": "[batch]Add instructions on how to configure cross-project pubsub publisher", + "issues": [] + }, + { + "type": "feat", + "sha": "564c3692bc8d22f4f5acdcbfb60be0582bd08d53", + "message": "[recaptchaenterprise] added SMS Toll Fraud assessment", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-notebooks", + "id": "1bff6d6c-eda6-41ff-b2f0-bee3b5255866", + "createTime": "2024-06-27T00:35:13.724Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "564c3692bc8d22f4f5acdcbfb60be0582bd08d53", + "message": "update the Java code generator (gapic-generator-java) to 2.42.0", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "564c3692bc8d22f4f5acdcbfb60be0582bd08d53", + "message": "[batch] add a install_ops_agent field to InstancePolicyOrTemplate for Ops Agent support", + "issues": [] + }, + { + "type": "docs", + "sha": "564c3692bc8d22f4f5acdcbfb60be0582bd08d53", + "message": "[batch]Add instructions on how to configure cross-project pubsub publisher", + "issues": [] + }, + { + "type": "feat", + "sha": "564c3692bc8d22f4f5acdcbfb60be0582bd08d53", + "message": "[recaptchaenterprise] added SMS Toll Fraud assessment", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-iam-policy", + "id": "8d38b20f-9d0b-4c02-aa14-bf76a62ec5af", + "createTime": "2024-06-27T00:35:13.474Z" + }, + { + "changes": [ + { + "type": "fix", + "sha": "564c3692bc8d22f4f5acdcbfb60be0582bd08d53", + "message": "update the Java code generator (gapic-generator-java) to 2.42.0", + "issues": [], + "scope": "deps" + }, + { + "type": "feat", + "sha": "564c3692bc8d22f4f5acdcbfb60be0582bd08d53", + "message": "[batch] add a install_ops_agent field to InstancePolicyOrTemplate for Ops Agent support", + "issues": [] + }, + { + "type": "docs", + "sha": "564c3692bc8d22f4f5acdcbfb60be0582bd08d53", + "message": "[batch]Add instructions on how to configure cross-project pubsub publisher", + "issues": [] + }, + { + "type": "feat", + "sha": "564c3692bc8d22f4f5acdcbfb60be0582bd08d53", + "message": "[recaptchaenterprise] added SMS Toll Fraud assessment", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[os-login] A comment for field `parent` in message `.google.cloud.oslogin.v1beta.SignSshPublicKeyRequest` is changed", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycenter] Add toxic_combination and group_memberships fields to finding", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataproc] add the cohort and auto tuning configuration to the batch's RuntimeConfig", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add `TOXIC_COMBINATION` to `FindingClass` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[cloudcontrolspartner] Mark the accessApprovalRequests.list method as deprecated", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[billing] Genereal documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[dataplex] exposing EntrySource.location field that contains location of a resource in the source system", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[monitoring] Add support to add links in AlertPolicy", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add MALFORMED_FUNCTION_CALL to FinishReason", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[aiplatform] add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason`", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[kms] support Key Access Justifications policy configuration", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[document-ai] Update the comment to add a note about `documentai.processors.create` permission", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[gkehub] add a new field `PENDING` under `DeploymentState` enum", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[shopping-css] Remove \"in Google Shopping\" from documentation comments", + "issues": [] + }, + { + "type": "feat", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[securitycentermanagement] add an INGEST_ONLY EnablementState", + "issues": [] + }, + { + "type": "docs", + "sha": "666a3ac8cd0cb45da3555a1bef8dfe3edf57d257", + "message": "[networkservices] Add a comment for the NetworkServices service", + "issues": [] + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[container] A new message `HugepagesConfig` is added", + "issues": [] + }, + { + "type": "docs", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[shopping-merchant-accounts] Format comments in ListUsersRequest", + "issues": [] + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[container] A new method_signature `parent` is added to method `ListOperations` in service `ClusterManager`", + "issues": [] + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[retail] support merged facets", + "issues": [] + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[retail] support merged facets", + "issues": [] + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[retail] support merged facets", + "issues": [] + }, + { + "type": "docs", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[securitycentermanagement] minor docs formatting in `UpdateSecurityCenterServiceRequest.validate_only`", + "issues": [] + }, + { + "type": "fix", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[dialogflow-cx] An existing field `start_flow` is moved in to oneof in message `.google.cloud.dialogflow.cx.v3beta1.Agent`", + "issues": [], + "breakingChangeNote": "[dialogflow-cx] An existing field `start_flow` is moved in to oneof in message `.google.cloud.dialogflow.cx.v3beta1.Agent`" + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[redis-cluster] Add support for different node types", + "issues": [] + }, + { + "type": "docs", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[shopping-merchant-accounts] mark `BusinessInfo.phone` as output only", + "issues": [] + }, + { + "type": "docs", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[batch] Documentation improvements", + "issues": [] + }, + { + "type": "feat", + "sha": "4be1db5cfca842d85e167b8ed033ebcbcbd758dd", + "message": "[redis-cluster] [Memorystore for Redis Cluster] Add support for different node types", + "issues": [] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-batch", + "id": "d2c6b826-7adf-4acd-a2ee-7bd2291d2fe0", + "createTime": "2024-06-27T00:35:12.866Z" + }, + { + "changes": [ + { + "type": "feat", + "sha": "c3cdc2a29e3d2f78e9e0550c24a30532db81c16a", + "message": "[gdchardwaremanagement] new module for gdchardwaremanagement", + "issues": [ + "10990" + ] + } + ], + "version": "1.40.0", + "language": "JAVA", + "artifactName": "com.google.cloud:google-cloud-gdchardwaremanagement", + "id": "ad0b3ce2-f96f-480b-bf19-ce5ae22e9f42", + "createTime": "2024-06-27T00:35:12.578Z" + }, { "changes": [ { @@ -235639,5 +258819,5 @@ "createTime": "2023-02-03T16:27:23.198Z" } ], - "updateTime": "2024-06-07T16:02:00.642Z" + "updateTime": "2024-06-27T00:36:27.369Z" } \ No newline at end of file diff --git a/gapic-libraries-bom/pom.xml b/gapic-libraries-bom/pom.xml index b431a5212134..f3a6617ea75e 100644 --- a/gapic-libraries-bom/pom.xml +++ b/gapic-libraries-bom/pom.xml @@ -4,7 +4,7 @@ com.google.cloud gapic-libraries-bom pom - 1.40.0-SNAPSHOT + 1.40.0 Google Cloud Java BOM BOM for the libraries in google-cloud-java repository. Users should not @@ -15,7 +15,7 @@ google-cloud-pom-parent com.google.cloud - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-pom-parent/pom.xml @@ -24,1242 +24,1242 @@ com.google.analytics google-analytics-admin-bom - 0.56.0-SNAPSHOT + 0.56.0 pom import com.google.analytics google-analytics-data-bom - 0.57.0-SNAPSHOT + 0.57.0 pom import com.google.area120 google-area120-tables-bom - 0.50.0-SNAPSHOT + 0.50.0 pom import com.google.cloud google-cloud-accessapproval-bom - 2.47.0-SNAPSHOT + 2.47.0 pom import com.google.cloud google-cloud-advisorynotifications-bom - 0.35.0-SNAPSHOT + 0.35.0 pom import com.google.cloud google-cloud-aiplatform-bom - 3.47.0-SNAPSHOT + 3.47.0 pom import com.google.cloud google-cloud-alloydb-bom - 0.35.0-SNAPSHOT + 0.35.0 pom import com.google.cloud google-cloud-alloydb-connectors-bom - 0.24.0-SNAPSHOT + 0.24.0 pom import com.google.cloud google-cloud-analyticshub-bom - 0.43.0-SNAPSHOT + 0.43.0 pom import com.google.cloud google-cloud-api-gateway-bom - 2.46.0-SNAPSHOT + 2.46.0 pom import com.google.cloud google-cloud-apigee-connect-bom - 2.46.0-SNAPSHOT + 2.46.0 pom import com.google.cloud google-cloud-apigee-registry-bom - 0.46.0-SNAPSHOT + 0.46.0 pom import com.google.cloud google-cloud-apikeys-bom - 0.44.0-SNAPSHOT + 0.44.0 pom import com.google.cloud google-cloud-appengine-admin-bom - 2.46.0-SNAPSHOT + 2.46.0 pom import com.google.cloud google-cloud-apphub-bom - 0.10.0-SNAPSHOT + 0.10.0 pom import com.google.cloud google-cloud-artifact-registry-bom - 1.45.0-SNAPSHOT + 1.45.0 pom import com.google.cloud google-cloud-asset-bom - 3.50.0-SNAPSHOT + 3.50.0 pom import com.google.cloud google-cloud-assured-workloads-bom - 2.46.0-SNAPSHOT + 2.46.0 pom import com.google.cloud google-cloud-automl-bom - 2.46.0-SNAPSHOT + 2.46.0 pom import com.google.cloud google-cloud-backupdr-bom - 0.5.0-SNAPSHOT + 0.5.0 pom import com.google.cloud google-cloud-bare-metal-solution-bom - 0.46.0-SNAPSHOT + 0.46.0 pom import com.google.cloud google-cloud-batch-bom - 0.46.0-SNAPSHOT + 0.46.0 pom import com.google.cloud google-cloud-beyondcorp-appconnections-bom - 0.44.0-SNAPSHOT + 0.44.0 pom import com.google.cloud google-cloud-beyondcorp-appconnectors-bom - 0.44.0-SNAPSHOT + 0.44.0 pom import com.google.cloud google-cloud-beyondcorp-appgateways-bom - 0.44.0-SNAPSHOT + 0.44.0 pom import com.google.cloud google-cloud-beyondcorp-clientconnectorservices-bom - 0.44.0-SNAPSHOT + 0.44.0 pom import com.google.cloud google-cloud-beyondcorp-clientgateways-bom - 0.44.0-SNAPSHOT + 0.44.0 pom import com.google.cloud google-cloud-biglake-bom - 0.34.0-SNAPSHOT + 0.34.0 pom import com.google.cloud google-cloud-bigquery-data-exchange-bom - 2.41.0-SNAPSHOT + 2.41.0 pom import com.google.cloud google-cloud-bigqueryconnection-bom - 2.48.0-SNAPSHOT + 2.48.0 pom import com.google.cloud google-cloud-bigquerydatapolicy-bom - 0.43.0-SNAPSHOT + 0.43.0 pom import com.google.cloud google-cloud-bigquerydatatransfer-bom - 2.46.0-SNAPSHOT + 2.46.0 pom import com.google.cloud google-cloud-bigquerymigration-bom - 0.49.0-SNAPSHOT + 0.49.0 pom import com.google.cloud google-cloud-bigqueryreservation-bom - 2.47.0-SNAPSHOT + 2.47.0 pom import com.google.cloud google-cloud-billing-bom - 2.46.0-SNAPSHOT + 2.46.0 pom import com.google.cloud google-cloud-billingbudgets-bom - 2.46.0-SNAPSHOT + 2.46.0 pom import com.google.cloud google-cloud-binary-authorization-bom - 1.45.0-SNAPSHOT + 1.45.0 pom import com.google.cloud google-cloud-build-bom - 3.48.0-SNAPSHOT + 3.48.0 pom import com.google.cloud google-cloud-certificate-manager-bom - 0.49.0-SNAPSHOT + 0.49.0 pom import com.google.cloud google-cloud-channel-bom - 3.50.0-SNAPSHOT + 3.50.0 pom import com.google.cloud google-cloud-chat-bom - 0.10.0-SNAPSHOT + 0.10.0 pom import com.google.cloud google-cloud-cloudcommerceconsumerprocurement-bom - 0.44.0-SNAPSHOT + 0.44.0 pom import com.google.cloud google-cloud-cloudcontrolspartner-bom - 0.10.0-SNAPSHOT + 0.10.0 pom import com.google.cloud google-cloud-cloudquotas-bom - 0.14.0-SNAPSHOT + 0.14.0 pom import com.google.cloud google-cloud-cloudsupport-bom - 0.30.0-SNAPSHOT + 0.30.0 pom import com.google.cloud google-cloud-compute-bom - 1.56.0-SNAPSHOT + 1.56.0 pom import com.google.cloud google-cloud-confidentialcomputing-bom - 0.32.0-SNAPSHOT + 0.32.0 pom import com.google.cloud google-cloud-contact-center-insights-bom - 2.46.0-SNAPSHOT + 2.46.0 pom import com.google.cloud google-cloud-container-bom - 2.49.0-SNAPSHOT + 2.49.0 pom import com.google.cloud google-cloud-containeranalysis-bom - 2.47.0-SNAPSHOT + 2.47.0 pom import com.google.cloud google-cloud-contentwarehouse-bom - 0.42.0-SNAPSHOT + 0.42.0 pom import com.google.cloud google-cloud-data-fusion-bom - 1.46.0-SNAPSHOT + 1.46.0 pom import com.google.cloud google-cloud-datacatalog-bom - 1.52.0-SNAPSHOT + 1.52.0 pom import com.google.cloud google-cloud-dataflow-bom - 0.50.0-SNAPSHOT + 0.50.0 pom import com.google.cloud google-cloud-dataform-bom - 0.45.0-SNAPSHOT + 0.45.0 pom import com.google.cloud google-cloud-datalabeling-bom - 0.166.0-SNAPSHOT + 0.166.0 pom import com.google.cloud google-cloud-datalineage-bom - 0.38.0-SNAPSHOT + 0.38.0 pom import com.google.cloud google-cloud-dataplex-bom - 1.44.0-SNAPSHOT + 1.44.0 pom import com.google.cloud google-cloud-dataproc-bom - 4.43.0-SNAPSHOT + 4.43.0 pom import com.google.cloud google-cloud-dataproc-metastore-bom - 2.47.0-SNAPSHOT + 2.47.0 pom import com.google.cloud google-cloud-datastream-bom - 1.45.0-SNAPSHOT + 1.45.0 pom import com.google.cloud google-cloud-debugger-client-bom - 1.46.0-SNAPSHOT + 1.46.0 pom import com.google.cloud google-cloud-deploy-bom - 1.44.0-SNAPSHOT + 1.44.0 pom import com.google.cloud google-cloud-developerconnect-bom - 0.3.0-SNAPSHOT + 0.3.0 pom import com.google.cloud google-cloud-dialogflow-bom - 4.52.0-SNAPSHOT + 4.52.0 pom import com.google.cloud google-cloud-dialogflow-cx-bom - 0.57.0-SNAPSHOT + 0.57.0 pom import com.google.cloud google-cloud-discoveryengine-bom - 0.42.0-SNAPSHOT + 0.42.0 pom import com.google.cloud google-cloud-distributedcloudedge-bom - 0.43.0-SNAPSHOT + 0.43.0 pom import com.google.cloud google-cloud-dlp-bom - 3.50.0-SNAPSHOT + 3.50.0 pom import com.google.cloud google-cloud-dms-bom - 2.45.0-SNAPSHOT + 2.45.0 pom import com.google.cloud google-cloud-dns - 2.44.0-SNAPSHOT + 2.44.0 com.google.cloud google-cloud-document-ai-bom - 2.50.0-SNAPSHOT + 2.50.0 pom import com.google.cloud google-cloud-domains-bom - 1.43.0-SNAPSHOT + 1.43.0 pom import com.google.cloud google-cloud-edgenetwork-bom - 0.14.0-SNAPSHOT + 0.14.0 pom import com.google.cloud google-cloud-enterpriseknowledgegraph-bom - 0.42.0-SNAPSHOT + 0.42.0 pom import com.google.cloud google-cloud-errorreporting-bom - 0.167.0-beta-SNAPSHOT + 0.167.0-beta pom import com.google.cloud google-cloud-essential-contacts-bom - 2.46.0-SNAPSHOT + 2.46.0 pom import com.google.cloud google-cloud-eventarc-bom - 1.46.0-SNAPSHOT + 1.46.0 pom import com.google.cloud google-cloud-eventarc-publishing-bom - 0.46.0-SNAPSHOT + 0.46.0 pom import com.google.cloud google-cloud-filestore-bom - 1.47.0-SNAPSHOT + 1.47.0 pom import com.google.cloud google-cloud-functions-bom - 2.48.0-SNAPSHOT + 2.48.0 pom import com.google.cloud google-cloud-gdchardwaremanagement-bom - 0.0.1-SNAPSHOT + 0.1.0 pom import com.google.cloud google-cloud-gke-backup-bom - 0.45.0-SNAPSHOT + 0.45.0 pom import com.google.cloud google-cloud-gke-connect-gateway-bom - 0.47.0-SNAPSHOT + 0.47.0 pom import com.google.cloud google-cloud-gke-multi-cloud-bom - 0.45.0-SNAPSHOT + 0.45.0 pom import com.google.cloud google-cloud-gkehub-bom - 1.46.0-SNAPSHOT + 1.46.0 pom import com.google.cloud google-cloud-gsuite-addons-bom - 2.46.0-SNAPSHOT + 2.46.0 pom import com.google.cloud google-cloud-iamcredentials-bom - 2.46.0-SNAPSHOT + 2.46.0 pom import com.google.cloud google-cloud-iap-bom - 0.2.0-SNAPSHOT + 0.2.0 pom import com.google.cloud google-cloud-ids-bom - 1.45.0-SNAPSHOT + 1.45.0 pom import com.google.cloud google-cloud-infra-manager-bom - 0.23.0-SNAPSHOT + 0.23.0 pom import com.google.cloud google-cloud-iot-bom - 2.46.0-SNAPSHOT + 2.46.0 pom import com.google.cloud google-cloud-kms-bom - 2.49.0-SNAPSHOT + 2.49.0 pom import com.google.cloud google-cloud-kmsinventory-bom - 0.35.0-SNAPSHOT + 0.35.0 pom import com.google.cloud google-cloud-language-bom - 2.47.0-SNAPSHOT + 2.47.0 pom import com.google.cloud google-cloud-life-sciences-bom - 0.48.0-SNAPSHOT + 0.48.0 pom import com.google.cloud google-cloud-live-stream-bom - 0.48.0-SNAPSHOT + 0.48.0 pom import com.google.cloud google-cloud-managed-identities-bom - 1.44.0-SNAPSHOT + 1.44.0 pom import com.google.cloud google-cloud-managedkafka-bom - 0.2.0-SNAPSHOT + 0.2.0 pom import com.google.cloud google-cloud-mediatranslation-bom - 0.52.0-SNAPSHOT + 0.52.0 pom import com.google.cloud google-cloud-meet-bom - 0.13.0-SNAPSHOT + 0.13.0 pom import com.google.cloud google-cloud-memcache-bom - 2.46.0-SNAPSHOT + 2.46.0 pom import com.google.cloud google-cloud-migrationcenter-bom - 0.28.0-SNAPSHOT + 0.28.0 pom import com.google.cloud google-cloud-monitoring-bom - 3.47.0-SNAPSHOT + 3.47.0 pom import com.google.cloud google-cloud-monitoring-dashboard-bom - 2.48.0-SNAPSHOT + 2.48.0 pom import com.google.cloud google-cloud-monitoring-metricsscope-bom - 0.40.0-SNAPSHOT + 0.40.0 pom import com.google.cloud google-cloud-netapp-bom - 0.25.0-SNAPSHOT + 0.25.0 pom import com.google.cloud google-cloud-network-management-bom - 1.47.0-SNAPSHOT + 1.47.0 pom import com.google.cloud google-cloud-network-security-bom - 0.49.0-SNAPSHOT + 0.49.0 pom import com.google.cloud google-cloud-networkconnectivity-bom - 1.45.0-SNAPSHOT + 1.45.0 pom import com.google.cloud google-cloud-networkservices-bom - 0.2.0-SNAPSHOT + 0.2.0 pom import com.google.cloud google-cloud-notebooks-bom - 1.44.0-SNAPSHOT + 1.44.0 pom import com.google.cloud google-cloud-notification - 0.164.0-beta-SNAPSHOT + 0.164.0-beta com.google.cloud google-cloud-optimization-bom - 1.44.0-SNAPSHOT + 1.44.0 pom import com.google.cloud google-cloud-orchestration-airflow-bom - 1.46.0-SNAPSHOT + 1.46.0 pom import com.google.cloud google-cloud-orgpolicy-bom - 2.46.0-SNAPSHOT + 2.46.0 pom import com.google.cloud google-cloud-os-config-bom - 2.48.0-SNAPSHOT + 2.48.0 pom import com.google.cloud google-cloud-os-login-bom - 2.45.0-SNAPSHOT + 2.45.0 pom import com.google.cloud google-cloud-parallelstore-bom - 0.9.0-SNAPSHOT + 0.9.0 pom import com.google.cloud google-cloud-phishingprotection-bom - 0.77.0-SNAPSHOT + 0.77.0 pom import com.google.cloud google-cloud-policy-troubleshooter-bom - 1.45.0-SNAPSHOT + 1.45.0 pom import com.google.cloud google-cloud-policysimulator-bom - 0.25.0-SNAPSHOT + 0.25.0 pom import com.google.cloud google-cloud-private-catalog-bom - 0.48.0-SNAPSHOT + 0.48.0 pom import com.google.cloud google-cloud-profiler-bom - 2.46.0-SNAPSHOT + 2.46.0 pom import com.google.cloud google-cloud-publicca-bom - 0.43.0-SNAPSHOT + 0.43.0 pom import com.google.cloud google-cloud-rapidmigrationassessment-bom - 0.29.0-SNAPSHOT + 0.29.0 pom import com.google.cloud google-cloud-recaptchaenterprise-bom - 3.43.0-SNAPSHOT + 3.43.0 pom import com.google.cloud google-cloud-recommendations-ai-bom - 0.53.0-SNAPSHOT + 0.53.0 pom import com.google.cloud google-cloud-recommender-bom - 2.48.0-SNAPSHOT + 2.48.0 pom import com.google.cloud google-cloud-redis-bom - 2.49.0-SNAPSHOT + 2.49.0 pom import com.google.cloud google-cloud-redis-cluster-bom - 0.18.0-SNAPSHOT + 0.18.0 pom import com.google.cloud google-cloud-resource-settings-bom - 1.46.0-SNAPSHOT + 1.46.0 pom import com.google.cloud google-cloud-resourcemanager-bom - 1.48.0-SNAPSHOT + 1.48.0 pom import com.google.cloud google-cloud-retail-bom - 2.48.0-SNAPSHOT + 2.48.0 pom import com.google.cloud google-cloud-run-bom - 0.46.0-SNAPSHOT + 0.46.0 pom import com.google.cloud google-cloud-scheduler-bom - 2.46.0-SNAPSHOT + 2.46.0 pom import com.google.cloud google-cloud-secretmanager-bom - 2.46.0-SNAPSHOT + 2.46.0 pom import com.google.cloud google-cloud-securesourcemanager-bom - 0.16.0-SNAPSHOT + 0.16.0 pom import com.google.cloud google-cloud-security-private-ca-bom - 2.48.0-SNAPSHOT + 2.48.0 pom import com.google.cloud google-cloud-securitycenter-bom - 2.54.0-SNAPSHOT + 2.54.0 pom import com.google.cloud google-cloud-securitycenter-settings-bom - 0.49.0-SNAPSHOT + 0.49.0 pom import com.google.cloud google-cloud-securitycentermanagement-bom - 0.14.0-SNAPSHOT + 0.14.0 pom import com.google.cloud google-cloud-securityposture-bom - 0.11.0-SNAPSHOT + 0.11.0 pom import com.google.cloud google-cloud-service-control-bom - 1.46.0-SNAPSHOT + 1.46.0 pom import com.google.cloud google-cloud-service-management-bom - 3.44.0-SNAPSHOT + 3.44.0 pom import com.google.cloud google-cloud-service-usage-bom - 2.46.0-SNAPSHOT + 2.46.0 pom import com.google.cloud google-cloud-servicedirectory-bom - 2.47.0-SNAPSHOT + 2.47.0 pom import com.google.cloud google-cloud-servicehealth-bom - 0.13.0-SNAPSHOT + 0.13.0 pom import com.google.cloud google-cloud-shell-bom - 2.45.0-SNAPSHOT + 2.45.0 pom import com.google.cloud google-cloud-speech-bom - 4.41.0-SNAPSHOT + 4.41.0 pom import com.google.cloud google-cloud-storage-transfer-bom - 1.46.0-SNAPSHOT + 1.46.0 pom import com.google.cloud google-cloud-storageinsights-bom - 0.31.0-SNAPSHOT + 0.31.0 pom import com.google.cloud google-cloud-talent-bom - 2.47.0-SNAPSHOT + 2.47.0 pom import com.google.cloud google-cloud-tasks-bom - 2.46.0-SNAPSHOT + 2.46.0 pom import com.google.cloud google-cloud-telcoautomation-bom - 0.16.0-SNAPSHOT + 0.16.0 pom import com.google.cloud google-cloud-texttospeech-bom - 2.47.0-SNAPSHOT + 2.47.0 pom import com.google.cloud google-cloud-tpu-bom - 2.47.0-SNAPSHOT + 2.47.0 pom import com.google.cloud google-cloud-trace-bom - 2.46.0-SNAPSHOT + 2.46.0 pom import com.google.cloud google-cloud-translate-bom - 2.46.0-SNAPSHOT + 2.46.0 pom import com.google.cloud google-cloud-vertexai-bom - 1.6.0-SNAPSHOT + 1.6.0 pom import com.google.cloud google-cloud-video-intelligence-bom - 2.45.0-SNAPSHOT + 2.45.0 pom import com.google.cloud google-cloud-video-stitcher-bom - 0.46.0-SNAPSHOT + 0.46.0 pom import com.google.cloud google-cloud-video-transcoder-bom - 1.45.0-SNAPSHOT + 1.45.0 pom import com.google.cloud google-cloud-vision-bom - 3.44.0-SNAPSHOT + 3.44.0 pom import com.google.cloud google-cloud-visionai-bom - 0.3.0-SNAPSHOT + 0.3.0 pom import com.google.cloud google-cloud-vmmigration-bom - 1.46.0-SNAPSHOT + 1.46.0 pom import com.google.cloud google-cloud-vmwareengine-bom - 0.40.0-SNAPSHOT + 0.40.0 pom import com.google.cloud google-cloud-vpcaccess-bom - 2.47.0-SNAPSHOT + 2.47.0 pom import com.google.cloud google-cloud-webrisk-bom - 2.45.0-SNAPSHOT + 2.45.0 pom import com.google.cloud google-cloud-websecurityscanner-bom - 2.46.0-SNAPSHOT + 2.46.0 pom import com.google.cloud google-cloud-workflow-executions-bom - 2.46.0-SNAPSHOT + 2.46.0 pom import com.google.cloud google-cloud-workflows-bom - 2.46.0-SNAPSHOT + 2.46.0 pom import com.google.cloud google-cloud-workspaceevents-bom - 0.10.0-SNAPSHOT + 0.10.0 pom import com.google.cloud google-cloud-workstations-bom - 0.34.0-SNAPSHOT + 0.34.0 pom import com.google.cloud google-iam-admin-bom - 3.41.0-SNAPSHOT + 3.41.0 pom import com.google.cloud google-iam-policy-bom - 1.44.0-SNAPSHOT + 1.44.0 pom import com.google.cloud google-identity-accesscontextmanager-bom - 1.47.0-SNAPSHOT + 1.47.0 pom import io.grafeas grafeas - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/google-cloud-jar-parent/pom.xml b/google-cloud-jar-parent/pom.xml index cc81eb0585c1..9f42e8e892cc 100644 --- a/google-cloud-jar-parent/pom.xml +++ b/google-cloud-jar-parent/pom.xml @@ -5,7 +5,7 @@ 4.0.0 google-cloud-jar-parent com.google.cloud - 1.40.0-SNAPSHOT + 1.40.0 pom Google Cloud JAR Parent @@ -15,7 +15,7 @@ com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-pom-parent/pom.xml diff --git a/google-cloud-pom-parent/pom.xml b/google-cloud-pom-parent/pom.xml index 30806f165227..a639dbc68fe5 100644 --- a/google-cloud-pom-parent/pom.xml +++ b/google-cloud-pom-parent/pom.xml @@ -5,7 +5,7 @@ 4.0.0 google-cloud-pom-parent com.google.cloud - 1.40.0-SNAPSHOT + 1.40.0 pom Google Cloud POM Parent https://github.com/googleapis/google-cloud-java diff --git a/java-accessapproval/CHANGELOG.md b/java-accessapproval/CHANGELOG.md index 9d8c452d85dd..4e7b9f3b3414 100644 --- a/java-accessapproval/CHANGELOG.md +++ b/java-accessapproval/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.47.0 (2024-06-27) + +* No change + + ## 2.46.0 (None) * No change diff --git a/java-accessapproval/README.md b/java-accessapproval/README.md index ff3d474523a1..3e61838db6e9 100644 --- a/java-accessapproval/README.md +++ b/java-accessapproval/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-accessapproval - 2.46.0 + 2.47.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-accessapproval:2.46.0' +implementation 'com.google.cloud:google-cloud-accessapproval:2.47.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-accessapproval" % "2.46.0" +libraryDependencies += "com.google.cloud" % "google-cloud-accessapproval" % "2.47.0" ``` diff --git a/java-accessapproval/google-cloud-accessapproval-bom/pom.xml b/java-accessapproval/google-cloud-accessapproval-bom/pom.xml index 61a4248dc793..26c90335ffcb 100644 --- a/java-accessapproval/google-cloud-accessapproval-bom/pom.xml +++ b/java-accessapproval/google-cloud-accessapproval-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-accessapproval-bom - 2.47.0-SNAPSHOT + 2.47.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-accessapproval - 2.47.0-SNAPSHOT + 2.47.0 com.google.api.grpc grpc-google-cloud-accessapproval-v1 - 2.47.0-SNAPSHOT + 2.47.0 com.google.api.grpc proto-google-cloud-accessapproval-v1 - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-accessapproval/google-cloud-accessapproval/pom.xml b/java-accessapproval/google-cloud-accessapproval/pom.xml index fee40961cbf4..f4d282bf3836 100644 --- a/java-accessapproval/google-cloud-accessapproval/pom.xml +++ b/java-accessapproval/google-cloud-accessapproval/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-accessapproval - 2.47.0-SNAPSHOT + 2.47.0 jar Google Cloud Access Approval Java idiomatic client for Google Cloud accessapproval com.google.cloud google-cloud-accessapproval-parent - 2.47.0-SNAPSHOT + 2.47.0 google-cloud-accessapproval diff --git a/java-accessapproval/grpc-google-cloud-accessapproval-v1/pom.xml b/java-accessapproval/grpc-google-cloud-accessapproval-v1/pom.xml index 9ae71fe4b67d..7a549658aea8 100644 --- a/java-accessapproval/grpc-google-cloud-accessapproval-v1/pom.xml +++ b/java-accessapproval/grpc-google-cloud-accessapproval-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-accessapproval-v1 - 2.47.0-SNAPSHOT + 2.47.0 grpc-google-cloud-accessapproval-v1 GRPC library for grpc-google-cloud-accessapproval-v1 com.google.cloud google-cloud-accessapproval-parent - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-accessapproval/pom.xml b/java-accessapproval/pom.xml index b41a4dbb6e8f..8e448ee37217 100644 --- a/java-accessapproval/pom.xml +++ b/java-accessapproval/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-accessapproval-parent pom - 2.47.0-SNAPSHOT + 2.47.0 Google Cloud Access Approval Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.api.grpc proto-google-cloud-accessapproval-v1 - 2.47.0-SNAPSHOT + 2.47.0 com.google.api.grpc grpc-google-cloud-accessapproval-v1 - 2.47.0-SNAPSHOT + 2.47.0 com.google.cloud google-cloud-accessapproval - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-accessapproval/proto-google-cloud-accessapproval-v1/pom.xml b/java-accessapproval/proto-google-cloud-accessapproval-v1/pom.xml index 76ee3dbea84d..788aeed1a665 100644 --- a/java-accessapproval/proto-google-cloud-accessapproval-v1/pom.xml +++ b/java-accessapproval/proto-google-cloud-accessapproval-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-accessapproval-v1 - 2.47.0-SNAPSHOT + 2.47.0 proto-google-cloud-accessapproval-v1beta1 PROTO library for proto-google-cloud-accessapproval-v1 com.google.cloud google-cloud-accessapproval-parent - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-accesscontextmanager/CHANGELOG.md b/java-accesscontextmanager/CHANGELOG.md index c3e1e7ec7838..b5e7eca95df0 100644 --- a/java-accesscontextmanager/CHANGELOG.md +++ b/java-accesscontextmanager/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 1.47.0 (2024-06-27) + +* No change + + ## 1.46.0 (None) * No change diff --git a/java-accesscontextmanager/README.md b/java-accesscontextmanager/README.md index 31e90c78b857..d140bcd2362a 100644 --- a/java-accesscontextmanager/README.md +++ b/java-accesscontextmanager/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-identity-accesscontextmanager - 1.46.0 + 1.47.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-identity-accesscontextmanager:1.46.0' +implementation 'com.google.cloud:google-identity-accesscontextmanager:1.47.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-identity-accesscontextmanager" % "1.46.0" +libraryDependencies += "com.google.cloud" % "google-identity-accesscontextmanager" % "1.47.0" ``` diff --git a/java-accesscontextmanager/google-identity-accesscontextmanager-bom/pom.xml b/java-accesscontextmanager/google-identity-accesscontextmanager-bom/pom.xml index 67120296195b..f8912bdd5427 100644 --- a/java-accesscontextmanager/google-identity-accesscontextmanager-bom/pom.xml +++ b/java-accesscontextmanager/google-identity-accesscontextmanager-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-identity-accesscontextmanager-bom - 1.47.0-SNAPSHOT + 1.47.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,22 +27,22 @@ com.google.cloud google-identity-accesscontextmanager - 1.47.0-SNAPSHOT + 1.47.0 com.google.api.grpc grpc-google-identity-accesscontextmanager-v1 - 1.47.0-SNAPSHOT + 1.47.0 com.google.api.grpc proto-google-identity-accesscontextmanager-v1 - 1.47.0-SNAPSHOT + 1.47.0 com.google.api.grpc proto-google-identity-accesscontextmanager-type - 1.47.0-SNAPSHOT + 1.47.0 diff --git a/java-accesscontextmanager/google-identity-accesscontextmanager/pom.xml b/java-accesscontextmanager/google-identity-accesscontextmanager/pom.xml index 4d8dde767f12..591aabfe7897 100644 --- a/java-accesscontextmanager/google-identity-accesscontextmanager/pom.xml +++ b/java-accesscontextmanager/google-identity-accesscontextmanager/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-identity-accesscontextmanager - 1.47.0-SNAPSHOT + 1.47.0 jar Google Identity Access Context Manager Identity Access Context Manager n/a com.google.cloud google-identity-accesscontextmanager-parent - 1.47.0-SNAPSHOT + 1.47.0 google-identity-accesscontextmanager diff --git a/java-accesscontextmanager/grpc-google-identity-accesscontextmanager-v1/pom.xml b/java-accesscontextmanager/grpc-google-identity-accesscontextmanager-v1/pom.xml index c7717e0f8d46..c1d2298fb7cf 100644 --- a/java-accesscontextmanager/grpc-google-identity-accesscontextmanager-v1/pom.xml +++ b/java-accesscontextmanager/grpc-google-identity-accesscontextmanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-identity-accesscontextmanager-v1 - 1.47.0-SNAPSHOT + 1.47.0 grpc-google-identity-accesscontextmanager-v1 GRPC library for google-identity-accesscontextmanager com.google.cloud google-identity-accesscontextmanager-parent - 1.47.0-SNAPSHOT + 1.47.0 diff --git a/java-accesscontextmanager/pom.xml b/java-accesscontextmanager/pom.xml index c9b4c8c9fee4..3a7ce2ed9ca8 100644 --- a/java-accesscontextmanager/pom.xml +++ b/java-accesscontextmanager/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-identity-accesscontextmanager-parent pom - 1.47.0-SNAPSHOT + 1.47.0 Google Identity Access Context Manager Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -30,22 +30,22 @@ com.google.api.grpc proto-google-identity-accesscontextmanager-type - 1.47.0-SNAPSHOT + 1.47.0 com.google.api.grpc proto-google-identity-accesscontextmanager-v1 - 1.47.0-SNAPSHOT + 1.47.0 com.google.api.grpc grpc-google-identity-accesscontextmanager-v1 - 1.47.0-SNAPSHOT + 1.47.0 com.google.cloud google-identity-accesscontextmanager - 1.47.0-SNAPSHOT + 1.47.0 diff --git a/java-accesscontextmanager/proto-google-identity-accesscontextmanager-type/pom.xml b/java-accesscontextmanager/proto-google-identity-accesscontextmanager-type/pom.xml index d7479f51bdec..8522eeba33e8 100644 --- a/java-accesscontextmanager/proto-google-identity-accesscontextmanager-type/pom.xml +++ b/java-accesscontextmanager/proto-google-identity-accesscontextmanager-type/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-identity-accesscontextmanager-type - 1.47.0-SNAPSHOT + 1.47.0 proto-google-identity-accesscontextmanager-type PROTO library for proto-google-identity-accesscontextmanager-type com.google.cloud google-identity-accesscontextmanager-parent - 1.47.0-SNAPSHOT + 1.47.0 diff --git a/java-accesscontextmanager/proto-google-identity-accesscontextmanager-v1/pom.xml b/java-accesscontextmanager/proto-google-identity-accesscontextmanager-v1/pom.xml index b5ebf5fb91fe..8089e036736f 100644 --- a/java-accesscontextmanager/proto-google-identity-accesscontextmanager-v1/pom.xml +++ b/java-accesscontextmanager/proto-google-identity-accesscontextmanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-identity-accesscontextmanager-v1 - 1.47.0-SNAPSHOT + 1.47.0 proto-google-identity-accesscontextmanager-v1 PROTO library for proto-google-identity-accesscontextmanager-v1 com.google.cloud google-identity-accesscontextmanager-parent - 1.47.0-SNAPSHOT + 1.47.0 @@ -37,7 +37,7 @@ com.google.api.grpc proto-google-identity-accesscontextmanager-type - 1.47.0-SNAPSHOT + 1.47.0 diff --git a/java-admanager/CHANGELOG.md b/java-admanager/CHANGELOG.md index 2880143d8a86..3c9e832a5787 100644 --- a/java-admanager/CHANGELOG.md +++ b/java-admanager/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.5.0 (2024-06-27) + +* No change + + ## 0.4.0 (None) * No change diff --git a/java-admanager/README.md b/java-admanager/README.md index 1804b1c69d63..b44492463514 100644 --- a/java-admanager/README.md +++ b/java-admanager/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.api-ads ad-manager - 0.4.0 + 0.5.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.api-ads:ad-manager:0.4.0' +implementation 'com.google.api-ads:ad-manager:0.5.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.api-ads" % "ad-manager" % "0.4.0" +libraryDependencies += "com.google.api-ads" % "ad-manager" % "0.5.0" ``` diff --git a/java-admanager/ad-manager-bom/pom.xml b/java-admanager/ad-manager-bom/pom.xml index fd2ca51772ee..46f7f99f57b4 100644 --- a/java-admanager/ad-manager-bom/pom.xml +++ b/java-admanager/ad-manager-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.api-ads ad-manager-bom - 0.5.0-SNAPSHOT + 0.5.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -26,12 +26,12 @@ com.google.api-ads ad-manager - 0.5.0-SNAPSHOT + 0.5.0 com.google.api-ads.api.grpc proto-ad-manager-v1 - 0.5.0-SNAPSHOT + 0.5.0 diff --git a/java-admanager/ad-manager/pom.xml b/java-admanager/ad-manager/pom.xml index 90f628db45af..36944bddabd9 100644 --- a/java-admanager/ad-manager/pom.xml +++ b/java-admanager/ad-manager/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.api-ads ad-manager - 0.5.0-SNAPSHOT + 0.5.0 jar Google Google Ad Manager API Google Ad Manager API The Ad Manager API enables an app to integrate with Google Ad Manager. You can read Ad Manager data and run reports using the API. com.google.api-ads ad-manager-parent - 0.5.0-SNAPSHOT + 0.5.0 ad-manager diff --git a/java-admanager/pom.xml b/java-admanager/pom.xml index 46d63c985b11..215b07450860 100644 --- a/java-admanager/pom.xml +++ b/java-admanager/pom.xml @@ -4,7 +4,7 @@ com.google.api-ads ad-manager-parent pom - 0.5.0-SNAPSHOT + 0.5.0 Google Google Ad Manager API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,12 +29,12 @@ com.google.api-ads ad-manager - 0.5.0-SNAPSHOT + 0.5.0 com.google.api-ads.api.grpc proto-ad-manager-v1 - 0.5.0-SNAPSHOT + 0.5.0 diff --git a/java-admanager/proto-ad-manager-v1/pom.xml b/java-admanager/proto-ad-manager-v1/pom.xml index 0edfdbc4f1d9..edeee38cdacc 100644 --- a/java-admanager/proto-ad-manager-v1/pom.xml +++ b/java-admanager/proto-ad-manager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api-ads.api.grpc proto-ad-manager-v1 - 0.5.0-SNAPSHOT + 0.5.0 proto-ad-manager-v1 Proto library for ad-manager com.google.api-ads ad-manager-parent - 0.5.0-SNAPSHOT + 0.5.0 diff --git a/java-advisorynotifications/CHANGELOG.md b/java-advisorynotifications/CHANGELOG.md index f2edbd29310b..d4f62316d81b 100644 --- a/java-advisorynotifications/CHANGELOG.md +++ b/java-advisorynotifications/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.35.0 (2024-06-27) + +* No change + + ## 0.34.0 (None) * No change diff --git a/java-advisorynotifications/README.md b/java-advisorynotifications/README.md index 5bcc6bb462b2..5f4732010bbb 100644 --- a/java-advisorynotifications/README.md +++ b/java-advisorynotifications/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-advisorynotifications - 0.34.0 + 0.35.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-advisorynotifications:0.34.0' +implementation 'com.google.cloud:google-cloud-advisorynotifications:0.35.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-advisorynotifications" % "0.34.0" +libraryDependencies += "com.google.cloud" % "google-cloud-advisorynotifications" % "0.35.0" ``` diff --git a/java-advisorynotifications/google-cloud-advisorynotifications-bom/pom.xml b/java-advisorynotifications/google-cloud-advisorynotifications-bom/pom.xml index 8467b1f0ea23..3def7005f66e 100644 --- a/java-advisorynotifications/google-cloud-advisorynotifications-bom/pom.xml +++ b/java-advisorynotifications/google-cloud-advisorynotifications-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-advisorynotifications-bom - 0.35.0-SNAPSHOT + 0.35.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-advisorynotifications - 0.35.0-SNAPSHOT + 0.35.0 com.google.api.grpc grpc-google-cloud-advisorynotifications-v1 - 0.35.0-SNAPSHOT + 0.35.0 com.google.api.grpc proto-google-cloud-advisorynotifications-v1 - 0.35.0-SNAPSHOT + 0.35.0 diff --git a/java-advisorynotifications/google-cloud-advisorynotifications/pom.xml b/java-advisorynotifications/google-cloud-advisorynotifications/pom.xml index d31c3c4db770..9d7fd766c736 100644 --- a/java-advisorynotifications/google-cloud-advisorynotifications/pom.xml +++ b/java-advisorynotifications/google-cloud-advisorynotifications/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-advisorynotifications - 0.35.0-SNAPSHOT + 0.35.0 jar Google Advisory Notifications API Advisory Notifications API An API for accessing Advisory Notifications in Google Cloud. com.google.cloud google-cloud-advisorynotifications-parent - 0.35.0-SNAPSHOT + 0.35.0 google-cloud-advisorynotifications diff --git a/java-advisorynotifications/grpc-google-cloud-advisorynotifications-v1/pom.xml b/java-advisorynotifications/grpc-google-cloud-advisorynotifications-v1/pom.xml index 0623c5045a77..ce60535c5eb8 100644 --- a/java-advisorynotifications/grpc-google-cloud-advisorynotifications-v1/pom.xml +++ b/java-advisorynotifications/grpc-google-cloud-advisorynotifications-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-advisorynotifications-v1 - 0.35.0-SNAPSHOT + 0.35.0 grpc-google-cloud-advisorynotifications-v1 GRPC library for google-cloud-advisorynotifications com.google.cloud google-cloud-advisorynotifications-parent - 0.35.0-SNAPSHOT + 0.35.0 diff --git a/java-advisorynotifications/pom.xml b/java-advisorynotifications/pom.xml index b9bee1e0557d..fe835d848a31 100644 --- a/java-advisorynotifications/pom.xml +++ b/java-advisorynotifications/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-advisorynotifications-parent pom - 0.35.0-SNAPSHOT + 0.35.0 Google Advisory Notifications API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-advisorynotifications - 0.35.0-SNAPSHOT + 0.35.0 com.google.api.grpc grpc-google-cloud-advisorynotifications-v1 - 0.35.0-SNAPSHOT + 0.35.0 com.google.api.grpc proto-google-cloud-advisorynotifications-v1 - 0.35.0-SNAPSHOT + 0.35.0 diff --git a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/pom.xml b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/pom.xml index 4faa59d7e174..0d8c3841b257 100644 --- a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/pom.xml +++ b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-advisorynotifications-v1 - 0.35.0-SNAPSHOT + 0.35.0 proto-google-cloud-advisorynotifications-v1 Proto library for google-cloud-advisorynotifications com.google.cloud google-cloud-advisorynotifications-parent - 0.35.0-SNAPSHOT + 0.35.0 diff --git a/java-aiplatform/CHANGELOG.md b/java-aiplatform/CHANGELOG.md index fc77c3d2621c..74c2ae39d15d 100644 --- a/java-aiplatform/CHANGELOG.md +++ b/java-aiplatform/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 3.47.0 (2024-06-27) + +### Features + +* add enum value MALFORMED_FUNCTION_CALL to `.google.cloud.aiplatform.v1beta1.content.Candidate.FinishReason` ([666a3ac](https://github.com/googleapis/google-cloud-java/commit/666a3ac8cd0cb45da3555a1bef8dfe3edf57d257)) +* add MALFORMED_FUNCTION_CALL to FinishReason ([666a3ac](https://github.com/googleapis/google-cloud-java/commit/666a3ac8cd0cb45da3555a1bef8dfe3edf57d257)) + + + ## 3.46.0 (None) * No change diff --git a/java-aiplatform/README.md b/java-aiplatform/README.md index 306b83e3722b..d4109b1b3541 100644 --- a/java-aiplatform/README.md +++ b/java-aiplatform/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-aiplatform - 3.46.0 + 3.47.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-aiplatform:3.46.0' +implementation 'com.google.cloud:google-cloud-aiplatform:3.47.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.46.0" +libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.47.0" ``` diff --git a/java-aiplatform/google-cloud-aiplatform-bom/pom.xml b/java-aiplatform/google-cloud-aiplatform-bom/pom.xml index 3c2125ed3711..9866a4ec4ce3 100644 --- a/java-aiplatform/google-cloud-aiplatform-bom/pom.xml +++ b/java-aiplatform/google-cloud-aiplatform-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-aiplatform-bom - 3.47.0-SNAPSHOT + 3.47.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-aiplatform - 3.47.0-SNAPSHOT + 3.47.0 com.google.api.grpc grpc-google-cloud-aiplatform-v1 - 3.47.0-SNAPSHOT + 3.47.0 com.google.api.grpc grpc-google-cloud-aiplatform-v1beta1 - 0.63.0-SNAPSHOT + 0.63.0 com.google.api.grpc proto-google-cloud-aiplatform-v1 - 3.47.0-SNAPSHOT + 3.47.0 com.google.api.grpc proto-google-cloud-aiplatform-v1beta1 - 0.63.0-SNAPSHOT + 0.63.0 diff --git a/java-aiplatform/google-cloud-aiplatform/pom.xml b/java-aiplatform/google-cloud-aiplatform/pom.xml index c9e58e6085e8..2bc9b34d4591 100644 --- a/java-aiplatform/google-cloud-aiplatform/pom.xml +++ b/java-aiplatform/google-cloud-aiplatform/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-aiplatform - 3.47.0-SNAPSHOT + 3.47.0 jar Google Cloud Vertex AI Java client for Google Cloud Vertex AI services. com.google.cloud google-cloud-aiplatform-parent - 3.47.0-SNAPSHOT + 3.47.0 google-cloud-aiplatform diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/pom.xml b/java-aiplatform/grpc-google-cloud-aiplatform-v1/pom.xml index bb7b6d741866..855c2056ca4d 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1/pom.xml +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-aiplatform-v1 - 3.47.0-SNAPSHOT + 3.47.0 grpc-google-cloud-aiplatform-v1 GRPC library for google-cloud-aiplatform com.google.cloud google-cloud-aiplatform-parent - 3.47.0-SNAPSHOT + 3.47.0 diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/pom.xml b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/pom.xml index a63933fb6b87..8ffa7d4eab5c 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/pom.xml +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-aiplatform-v1beta1 - 0.63.0-SNAPSHOT + 0.63.0 grpc-google-cloud-aiplatform-v1beta1 GRPC library for google-cloud-aiplatform com.google.cloud google-cloud-aiplatform-parent - 3.47.0-SNAPSHOT + 3.47.0 diff --git a/java-aiplatform/pom.xml b/java-aiplatform/pom.xml index 72231e0b840b..2a0daa7fa95d 100644 --- a/java-aiplatform/pom.xml +++ b/java-aiplatform/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-aiplatform-parent pom - 3.47.0-SNAPSHOT + 3.47.0 Google Cloud Vertex AI Parent Java client for Google Cloud Vertex AI services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-aiplatform - 3.47.0-SNAPSHOT + 3.47.0 com.google.api.grpc proto-google-cloud-aiplatform-v1 - 3.47.0-SNAPSHOT + 3.47.0 com.google.api.grpc proto-google-cloud-aiplatform-v1beta1 - 0.63.0-SNAPSHOT + 0.63.0 com.google.api.grpc grpc-google-cloud-aiplatform-v1 - 3.47.0-SNAPSHOT + 3.47.0 com.google.api.grpc grpc-google-cloud-aiplatform-v1beta1 - 0.63.0-SNAPSHOT + 0.63.0 diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/pom.xml b/java-aiplatform/proto-google-cloud-aiplatform-v1/pom.xml index 1a70bf94050d..5b52154257e8 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/pom.xml +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-aiplatform-v1 - 3.47.0-SNAPSHOT + 3.47.0 proto-google-cloud-aiplatform-v1 Proto library for google-cloud-aiplatform com.google.cloud google-cloud-aiplatform-parent - 3.47.0-SNAPSHOT + 3.47.0 diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/pom.xml b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/pom.xml index 580b0d070bdc..00d306c332ab 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/pom.xml +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-aiplatform-v1beta1 - 0.63.0-SNAPSHOT + 0.63.0 proto-google-cloud-aiplatform-v1beta1 Proto library for google-cloud-aiplatform com.google.cloud google-cloud-aiplatform-parent - 3.47.0-SNAPSHOT + 3.47.0 diff --git a/java-alloydb-connectors/CHANGELOG.md b/java-alloydb-connectors/CHANGELOG.md index e2998aa1a181..419580897992 100644 --- a/java-alloydb-connectors/CHANGELOG.md +++ b/java-alloydb-connectors/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.24.0 (2024-06-27) + +* No change + + ## 0.23.0 (None) * No change diff --git a/java-alloydb-connectors/README.md b/java-alloydb-connectors/README.md index 59ee6cbba55e..a349b39203bb 100644 --- a/java-alloydb-connectors/README.md +++ b/java-alloydb-connectors/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-alloydb-connectors - 0.23.0 + 0.24.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-alloydb-connectors:0.23.0' +implementation 'com.google.cloud:google-cloud-alloydb-connectors:0.24.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-alloydb-connectors" % "0.23.0" +libraryDependencies += "com.google.cloud" % "google-cloud-alloydb-connectors" % "0.24.0" ``` diff --git a/java-alloydb-connectors/google-cloud-alloydb-connectors-bom/pom.xml b/java-alloydb-connectors/google-cloud-alloydb-connectors-bom/pom.xml index 213439be40a3..b1ccf2554c19 100644 --- a/java-alloydb-connectors/google-cloud-alloydb-connectors-bom/pom.xml +++ b/java-alloydb-connectors/google-cloud-alloydb-connectors-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-alloydb-connectors-bom - 0.24.0-SNAPSHOT + 0.24.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,22 +27,22 @@ com.google.cloud google-cloud-alloydb-connectors - 0.24.0-SNAPSHOT + 0.24.0 com.google.api.grpc proto-google-cloud-alloydb-connectors-v1alpha - 0.24.0-SNAPSHOT + 0.24.0 com.google.api.grpc proto-google-cloud-alloydb-connectors-v1beta - 0.24.0-SNAPSHOT + 0.24.0 com.google.api.grpc proto-google-cloud-alloydb-connectors-v1 - 0.24.0-SNAPSHOT + 0.24.0 diff --git a/java-alloydb-connectors/google-cloud-alloydb-connectors/pom.xml b/java-alloydb-connectors/google-cloud-alloydb-connectors/pom.xml index cde03434a70f..c8c14811242b 100644 --- a/java-alloydb-connectors/google-cloud-alloydb-connectors/pom.xml +++ b/java-alloydb-connectors/google-cloud-alloydb-connectors/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-alloydb-connectors - 0.24.0-SNAPSHOT + 0.24.0 jar Google AlloyDB connectors AlloyDB connectors AlloyDB is a fully-managed, PostgreSQL-compatible database for demanding transactional workloads. It provides enterprise-grade performance and availability while maintaining 100% compatibility with open-source PostgreSQL. com.google.cloud google-cloud-alloydb-connectors-parent - 0.24.0-SNAPSHOT + 0.24.0 google-cloud-alloydb-connectors diff --git a/java-alloydb-connectors/pom.xml b/java-alloydb-connectors/pom.xml index af6ad3e9ac78..f7df4e72dc9e 100644 --- a/java-alloydb-connectors/pom.xml +++ b/java-alloydb-connectors/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-alloydb-connectors-parent pom - 0.24.0-SNAPSHOT + 0.24.0 Google AlloyDB connectors Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,22 +29,22 @@ com.google.cloud google-cloud-alloydb-connectors - 0.24.0-SNAPSHOT + 0.24.0 com.google.api.grpc proto-google-cloud-alloydb-connectors-v1 - 0.24.0-SNAPSHOT + 0.24.0 com.google.api.grpc proto-google-cloud-alloydb-connectors-v1beta - 0.24.0-SNAPSHOT + 0.24.0 com.google.api.grpc proto-google-cloud-alloydb-connectors-v1alpha - 0.24.0-SNAPSHOT + 0.24.0 diff --git a/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1/pom.xml b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1/pom.xml index c4be3a3f5e14..b2b328a4ed86 100644 --- a/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1/pom.xml +++ b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-alloydb-connectors-v1 - 0.24.0-SNAPSHOT + 0.24.0 proto-google-cloud-alloydb-connectors-v1 Proto library for google-cloud-alloydb-connectors com.google.cloud google-cloud-alloydb-connectors-parent - 0.24.0-SNAPSHOT + 0.24.0 diff --git a/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/pom.xml b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/pom.xml index 486e2cc5483a..89b7f4466c34 100644 --- a/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/pom.xml +++ b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-alloydb-connectors-v1alpha - 0.24.0-SNAPSHOT + 0.24.0 proto-google-cloud-alloydb-connectors-v1alpha Proto library for google-cloud-alloydb-connectors com.google.cloud google-cloud-alloydb-connectors-parent - 0.24.0-SNAPSHOT + 0.24.0 diff --git a/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1beta/pom.xml b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1beta/pom.xml index e62c300dfa26..5d99744220a5 100644 --- a/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1beta/pom.xml +++ b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-alloydb-connectors-v1beta - 0.24.0-SNAPSHOT + 0.24.0 proto-google-cloud-alloydb-connectors-v1beta Proto library for google-cloud-alloydb-connectors com.google.cloud google-cloud-alloydb-connectors-parent - 0.24.0-SNAPSHOT + 0.24.0 diff --git a/java-alloydb/CHANGELOG.md b/java-alloydb/CHANGELOG.md index 6179626fed09..a5101324b0a3 100644 --- a/java-alloydb/CHANGELOG.md +++ b/java-alloydb/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.35.0 (2024-06-27) + +* No change + + ## 0.34.0 (None) * No change diff --git a/java-alloydb/README.md b/java-alloydb/README.md index 38f966a3fdca..f03764ff5ad6 100644 --- a/java-alloydb/README.md +++ b/java-alloydb/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-alloydb - 0.34.0 + 0.35.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-alloydb:0.34.0' +implementation 'com.google.cloud:google-cloud-alloydb:0.35.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-alloydb" % "0.34.0" +libraryDependencies += "com.google.cloud" % "google-cloud-alloydb" % "0.35.0" ``` diff --git a/java-alloydb/google-cloud-alloydb-bom/pom.xml b/java-alloydb/google-cloud-alloydb-bom/pom.xml index fc9e3a603070..13ae30ea00a0 100644 --- a/java-alloydb/google-cloud-alloydb-bom/pom.xml +++ b/java-alloydb/google-cloud-alloydb-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-alloydb-bom - 0.35.0-SNAPSHOT + 0.35.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,37 +27,37 @@ com.google.cloud google-cloud-alloydb - 0.35.0-SNAPSHOT + 0.35.0 com.google.api.grpc grpc-google-cloud-alloydb-v1beta - 0.35.0-SNAPSHOT + 0.35.0 com.google.api.grpc grpc-google-cloud-alloydb-v1 - 0.35.0-SNAPSHOT + 0.35.0 com.google.api.grpc grpc-google-cloud-alloydb-v1alpha - 0.35.0-SNAPSHOT + 0.35.0 com.google.api.grpc proto-google-cloud-alloydb-v1 - 0.35.0-SNAPSHOT + 0.35.0 com.google.api.grpc proto-google-cloud-alloydb-v1beta - 0.35.0-SNAPSHOT + 0.35.0 com.google.api.grpc proto-google-cloud-alloydb-v1alpha - 0.35.0-SNAPSHOT + 0.35.0 diff --git a/java-alloydb/google-cloud-alloydb/pom.xml b/java-alloydb/google-cloud-alloydb/pom.xml index c4bf388a47f2..c4e6b073d352 100644 --- a/java-alloydb/google-cloud-alloydb/pom.xml +++ b/java-alloydb/google-cloud-alloydb/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-alloydb - 0.35.0-SNAPSHOT + 0.35.0 jar Google AlloyDB AlloyDB AlloyDB is a fully managed, PostgreSQL-compatible database service with industry-leading performance, availability, and scale. com.google.cloud google-cloud-alloydb-parent - 0.35.0-SNAPSHOT + 0.35.0 google-cloud-alloydb diff --git a/java-alloydb/grpc-google-cloud-alloydb-v1/pom.xml b/java-alloydb/grpc-google-cloud-alloydb-v1/pom.xml index 56381402e2ca..5323826a6e9a 100644 --- a/java-alloydb/grpc-google-cloud-alloydb-v1/pom.xml +++ b/java-alloydb/grpc-google-cloud-alloydb-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-alloydb-v1 - 0.35.0-SNAPSHOT + 0.35.0 grpc-google-cloud-alloydb-v1 GRPC library for google-cloud-alloydb com.google.cloud google-cloud-alloydb-parent - 0.35.0-SNAPSHOT + 0.35.0 diff --git a/java-alloydb/grpc-google-cloud-alloydb-v1alpha/pom.xml b/java-alloydb/grpc-google-cloud-alloydb-v1alpha/pom.xml index 2ca8511ac967..4844d8803323 100644 --- a/java-alloydb/grpc-google-cloud-alloydb-v1alpha/pom.xml +++ b/java-alloydb/grpc-google-cloud-alloydb-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-alloydb-v1alpha - 0.35.0-SNAPSHOT + 0.35.0 grpc-google-cloud-alloydb-v1alpha GRPC library for google-cloud-alloydb com.google.cloud google-cloud-alloydb-parent - 0.35.0-SNAPSHOT + 0.35.0 diff --git a/java-alloydb/grpc-google-cloud-alloydb-v1beta/pom.xml b/java-alloydb/grpc-google-cloud-alloydb-v1beta/pom.xml index a270b321a5e6..a0bc6273dccc 100644 --- a/java-alloydb/grpc-google-cloud-alloydb-v1beta/pom.xml +++ b/java-alloydb/grpc-google-cloud-alloydb-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-alloydb-v1beta - 0.35.0-SNAPSHOT + 0.35.0 grpc-google-cloud-alloydb-v1beta GRPC library for google-cloud-alloydb com.google.cloud google-cloud-alloydb-parent - 0.35.0-SNAPSHOT + 0.35.0 diff --git a/java-alloydb/pom.xml b/java-alloydb/pom.xml index 4e706b3565e6..9f9b76958d74 100644 --- a/java-alloydb/pom.xml +++ b/java-alloydb/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-alloydb-parent pom - 0.35.0-SNAPSHOT + 0.35.0 Google AlloyDB Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.cloud google-cloud-alloydb - 0.35.0-SNAPSHOT + 0.35.0 com.google.api.grpc grpc-google-cloud-alloydb-v1beta - 0.35.0-SNAPSHOT + 0.35.0 com.google.api.grpc grpc-google-cloud-alloydb-v1 - 0.35.0-SNAPSHOT + 0.35.0 com.google.api.grpc grpc-google-cloud-alloydb-v1alpha - 0.35.0-SNAPSHOT + 0.35.0 com.google.api.grpc proto-google-cloud-alloydb-v1 - 0.35.0-SNAPSHOT + 0.35.0 com.google.api.grpc proto-google-cloud-alloydb-v1beta - 0.35.0-SNAPSHOT + 0.35.0 com.google.api.grpc proto-google-cloud-alloydb-v1alpha - 0.35.0-SNAPSHOT + 0.35.0 diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/pom.xml b/java-alloydb/proto-google-cloud-alloydb-v1/pom.xml index b49455cc7225..e7bcfdf15f17 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/pom.xml +++ b/java-alloydb/proto-google-cloud-alloydb-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-alloydb-v1 - 0.35.0-SNAPSHOT + 0.35.0 proto-google-cloud-alloydb-v1 Proto library for google-cloud-alloydb com.google.cloud google-cloud-alloydb-parent - 0.35.0-SNAPSHOT + 0.35.0 diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/pom.xml b/java-alloydb/proto-google-cloud-alloydb-v1alpha/pom.xml index 62cdd287c905..f155bc1184bb 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1alpha/pom.xml +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-alloydb-v1alpha - 0.35.0-SNAPSHOT + 0.35.0 proto-google-cloud-alloydb-v1alpha Proto library for google-cloud-alloydb com.google.cloud google-cloud-alloydb-parent - 0.35.0-SNAPSHOT + 0.35.0 diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/pom.xml b/java-alloydb/proto-google-cloud-alloydb-v1beta/pom.xml index 54a1a85ce4d5..ebb953b04aca 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/pom.xml +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-alloydb-v1beta - 0.35.0-SNAPSHOT + 0.35.0 proto-google-cloud-alloydb-v1beta Proto library for google-cloud-alloydb com.google.cloud google-cloud-alloydb-parent - 0.35.0-SNAPSHOT + 0.35.0 diff --git a/java-analytics-admin/CHANGELOG.md b/java-analytics-admin/CHANGELOG.md index 942986acc37c..3f24fd1a1db4 100644 --- a/java-analytics-admin/CHANGELOG.md +++ b/java-analytics-admin/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.56.0 (2024-06-27) + +* No change + + ## 0.55.0 (None) * No change diff --git a/java-analytics-admin/README.md b/java-analytics-admin/README.md index c05454ef937e..65ff037e1a4b 100644 --- a/java-analytics-admin/README.md +++ b/java-analytics-admin/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.analytics google-analytics-admin - 0.55.0 + 0.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.analytics:google-analytics-admin:0.55.0' +implementation 'com.google.analytics:google-analytics-admin:0.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-admin" % "0.55.0" +libraryDependencies += "com.google.analytics" % "google-analytics-admin" % "0.56.0" ``` diff --git a/java-analytics-admin/google-analytics-admin-bom/pom.xml b/java-analytics-admin/google-analytics-admin-bom/pom.xml index 8babd14698f1..4195a48271f9 100644 --- a/java-analytics-admin/google-analytics-admin-bom/pom.xml +++ b/java-analytics-admin/google-analytics-admin-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.analytics google-analytics-admin-bom - 0.56.0-SNAPSHOT + 0.56.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.analytics google-analytics-admin - 0.56.0-SNAPSHOT + 0.56.0 com.google.api.grpc grpc-google-analytics-admin-v1alpha - 0.56.0-SNAPSHOT + 0.56.0 com.google.api.grpc grpc-google-analytics-admin-v1beta - 0.56.0-SNAPSHOT + 0.56.0 com.google.api.grpc proto-google-analytics-admin-v1alpha - 0.56.0-SNAPSHOT + 0.56.0 com.google.api.grpc proto-google-analytics-admin-v1beta - 0.56.0-SNAPSHOT + 0.56.0 diff --git a/java-analytics-admin/google-analytics-admin/pom.xml b/java-analytics-admin/google-analytics-admin/pom.xml index 09be662c6bf2..377c37087b7c 100644 --- a/java-analytics-admin/google-analytics-admin/pom.xml +++ b/java-analytics-admin/google-analytics-admin/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.analytics google-analytics-admin - 0.56.0-SNAPSHOT + 0.56.0 jar Google Analytics Admin allows you to manage Google Analytics accounts and properties. com.google.analytics google-analytics-admin-parent - 0.56.0-SNAPSHOT + 0.56.0 google-analytics-admin diff --git a/java-analytics-admin/grpc-google-analytics-admin-v1alpha/pom.xml b/java-analytics-admin/grpc-google-analytics-admin-v1alpha/pom.xml index a4874a089784..1fcd98d9db97 100644 --- a/java-analytics-admin/grpc-google-analytics-admin-v1alpha/pom.xml +++ b/java-analytics-admin/grpc-google-analytics-admin-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-admin-v1alpha - 0.56.0-SNAPSHOT + 0.56.0 grpc-google-analytics-admin-v1alpha GRPC library for grpc-google-analytics-admin-v1alpha com.google.analytics google-analytics-admin-parent - 0.56.0-SNAPSHOT + 0.56.0 diff --git a/java-analytics-admin/grpc-google-analytics-admin-v1beta/pom.xml b/java-analytics-admin/grpc-google-analytics-admin-v1beta/pom.xml index 4bb5d2201724..cd6809293c2e 100644 --- a/java-analytics-admin/grpc-google-analytics-admin-v1beta/pom.xml +++ b/java-analytics-admin/grpc-google-analytics-admin-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-admin-v1beta - 0.56.0-SNAPSHOT + 0.56.0 grpc-google-analytics-admin-v1beta GRPC library for google-analytics-admin com.google.analytics google-analytics-admin-parent - 0.56.0-SNAPSHOT + 0.56.0 diff --git a/java-analytics-admin/pom.xml b/java-analytics-admin/pom.xml index 87059ea2811e..64e0d5b450a5 100644 --- a/java-analytics-admin/pom.xml +++ b/java-analytics-admin/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-admin-parent pom - 0.56.0-SNAPSHOT + 0.56.0 Google Analytics Admin Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.analytics google-analytics-admin - 0.56.0-SNAPSHOT + 0.56.0 com.google.api.grpc proto-google-analytics-admin-v1beta - 0.56.0-SNAPSHOT + 0.56.0 com.google.api.grpc grpc-google-analytics-admin-v1beta - 0.56.0-SNAPSHOT + 0.56.0 com.google.api.grpc proto-google-analytics-admin-v1alpha - 0.56.0-SNAPSHOT + 0.56.0 com.google.api.grpc grpc-google-analytics-admin-v1alpha - 0.56.0-SNAPSHOT + 0.56.0 diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/pom.xml b/java-analytics-admin/proto-google-analytics-admin-v1alpha/pom.xml index 300cc9693166..b2bf47855fc7 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/pom.xml +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-admin-v1alpha - 0.56.0-SNAPSHOT + 0.56.0 proto-google-analytics-admin-v1alpha PROTO library for proto-google-analytics-admin-v1alpha com.google.analytics google-analytics-admin-parent - 0.56.0-SNAPSHOT + 0.56.0 diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/pom.xml b/java-analytics-admin/proto-google-analytics-admin-v1beta/pom.xml index 1e6c542786de..4e0f31d115fe 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/pom.xml +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-admin-v1beta - 0.56.0-SNAPSHOT + 0.56.0 proto-google-analytics-admin-v1beta Proto library for google-analytics-admin com.google.analytics google-analytics-admin-parent - 0.56.0-SNAPSHOT + 0.56.0 diff --git a/java-analytics-data/CHANGELOG.md b/java-analytics-data/CHANGELOG.md index 953c618cfaef..2cdb54b73a19 100644 --- a/java-analytics-data/CHANGELOG.md +++ b/java-analytics-data/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.57.0 (2024-06-27) + +* No change + + ## 0.56.0 (None) * No change diff --git a/java-analytics-data/README.md b/java-analytics-data/README.md index d47443696e26..8130386b3540 100644 --- a/java-analytics-data/README.md +++ b/java-analytics-data/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.analytics google-analytics-data - 0.56.0 + 0.57.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.analytics:google-analytics-data:0.56.0' +implementation 'com.google.analytics:google-analytics-data:0.57.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.56.0" +libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.57.0" ``` diff --git a/java-analytics-data/google-analytics-data-bom/pom.xml b/java-analytics-data/google-analytics-data-bom/pom.xml index f365b8ce8aa8..e05c64576bf3 100644 --- a/java-analytics-data/google-analytics-data-bom/pom.xml +++ b/java-analytics-data/google-analytics-data-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.57.0-SNAPSHOT + 0.57.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.analytics google-analytics-data - 0.57.0-SNAPSHOT + 0.57.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.57.0-SNAPSHOT + 0.57.0 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.57.0-SNAPSHOT + 0.57.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.57.0-SNAPSHOT + 0.57.0 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.57.0-SNAPSHOT + 0.57.0 diff --git a/java-analytics-data/google-analytics-data/pom.xml b/java-analytics-data/google-analytics-data/pom.xml index 63c568df19de..2d5f59ed4110 100644 --- a/java-analytics-data/google-analytics-data/pom.xml +++ b/java-analytics-data/google-analytics-data/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.analytics google-analytics-data - 0.57.0-SNAPSHOT + 0.57.0 jar Google Analytics Data provides programmatic methods to access report data in Google Analytics App+Web properties. com.google.analytics google-analytics-data-parent - 0.57.0-SNAPSHOT + 0.57.0 google-analytics-data diff --git a/java-analytics-data/grpc-google-analytics-data-v1alpha/pom.xml b/java-analytics-data/grpc-google-analytics-data-v1alpha/pom.xml index adca18257bbc..0471e044e1db 100644 --- a/java-analytics-data/grpc-google-analytics-data-v1alpha/pom.xml +++ b/java-analytics-data/grpc-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.57.0-SNAPSHOT + 0.57.0 grpc-google-analytics-data-v1alpha GRPC library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.57.0-SNAPSHOT + 0.57.0 diff --git a/java-analytics-data/grpc-google-analytics-data-v1beta/pom.xml b/java-analytics-data/grpc-google-analytics-data-v1beta/pom.xml index 79ba068ba471..64f8759ce47c 100644 --- a/java-analytics-data/grpc-google-analytics-data-v1beta/pom.xml +++ b/java-analytics-data/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.57.0-SNAPSHOT + 0.57.0 grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.57.0-SNAPSHOT + 0.57.0 diff --git a/java-analytics-data/pom.xml b/java-analytics-data/pom.xml index 253cd55c324d..2e66bc15454b 100644 --- a/java-analytics-data/pom.xml +++ b/java-analytics-data/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.57.0-SNAPSHOT + 0.57.0 Google Analytics Data Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.analytics google-analytics-data - 0.57.0-SNAPSHOT + 0.57.0 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.57.0-SNAPSHOT + 0.57.0 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.57.0-SNAPSHOT + 0.57.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.57.0-SNAPSHOT + 0.57.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.57.0-SNAPSHOT + 0.57.0 diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/pom.xml b/java-analytics-data/proto-google-analytics-data-v1alpha/pom.xml index 6dcaa437abaa..5fe7c697af47 100644 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/pom.xml +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.57.0-SNAPSHOT + 0.57.0 proto-google-analytics-data-v1alpha Proto library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.57.0-SNAPSHOT + 0.57.0 diff --git a/java-analytics-data/proto-google-analytics-data-v1beta/pom.xml b/java-analytics-data/proto-google-analytics-data-v1beta/pom.xml index a0e934c61c0d..366c74809019 100644 --- a/java-analytics-data/proto-google-analytics-data-v1beta/pom.xml +++ b/java-analytics-data/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.57.0-SNAPSHOT + 0.57.0 proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.57.0-SNAPSHOT + 0.57.0 diff --git a/java-analyticshub/CHANGELOG.md b/java-analyticshub/CHANGELOG.md index 3cbb22a8aefe..f43cebd365ad 100644 --- a/java-analyticshub/CHANGELOG.md +++ b/java-analyticshub/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.43.0 (2024-06-27) + +* No change + + ## 0.42.0 (None) * No change diff --git a/java-analyticshub/README.md b/java-analyticshub/README.md index 67ae73fea44c..a860e0aa079e 100644 --- a/java-analyticshub/README.md +++ b/java-analyticshub/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-analyticshub - 0.42.0 + 0.43.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-analyticshub:0.42.0' +implementation 'com.google.cloud:google-cloud-analyticshub:0.43.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-analyticshub" % "0.42.0" +libraryDependencies += "com.google.cloud" % "google-cloud-analyticshub" % "0.43.0" ``` diff --git a/java-analyticshub/google-cloud-analyticshub-bom/pom.xml b/java-analyticshub/google-cloud-analyticshub-bom/pom.xml index 383f29efc309..679c7faec121 100644 --- a/java-analyticshub/google-cloud-analyticshub-bom/pom.xml +++ b/java-analyticshub/google-cloud-analyticshub-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-analyticshub-bom - 0.43.0-SNAPSHOT + 0.43.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-analyticshub - 0.43.0-SNAPSHOT + 0.43.0 com.google.api.grpc grpc-google-cloud-analyticshub-v1 - 0.43.0-SNAPSHOT + 0.43.0 com.google.api.grpc proto-google-cloud-analyticshub-v1 - 0.43.0-SNAPSHOT + 0.43.0 diff --git a/java-analyticshub/google-cloud-analyticshub/pom.xml b/java-analyticshub/google-cloud-analyticshub/pom.xml index 9ee6811b30d9..e421c4f860ca 100644 --- a/java-analyticshub/google-cloud-analyticshub/pom.xml +++ b/java-analyticshub/google-cloud-analyticshub/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-analyticshub - 0.43.0-SNAPSHOT + 0.43.0 jar Google Analytics Hub API Analytics Hub API TBD com.google.cloud google-cloud-analyticshub-parent - 0.43.0-SNAPSHOT + 0.43.0 google-cloud-analyticshub diff --git a/java-analyticshub/grpc-google-cloud-analyticshub-v1/pom.xml b/java-analyticshub/grpc-google-cloud-analyticshub-v1/pom.xml index ffffe7029583..737528bd3866 100644 --- a/java-analyticshub/grpc-google-cloud-analyticshub-v1/pom.xml +++ b/java-analyticshub/grpc-google-cloud-analyticshub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-analyticshub-v1 - 0.43.0-SNAPSHOT + 0.43.0 grpc-google-cloud-analyticshub-v1 GRPC library for google-cloud-analyticshub com.google.cloud google-cloud-analyticshub-parent - 0.43.0-SNAPSHOT + 0.43.0 diff --git a/java-analyticshub/pom.xml b/java-analyticshub/pom.xml index 1e0a376922e4..8aee47594bfb 100644 --- a/java-analyticshub/pom.xml +++ b/java-analyticshub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-analyticshub-parent pom - 0.43.0-SNAPSHOT + 0.43.0 Google Analytics Hub API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-analyticshub - 0.43.0-SNAPSHOT + 0.43.0 com.google.api.grpc grpc-google-cloud-analyticshub-v1 - 0.43.0-SNAPSHOT + 0.43.0 com.google.api.grpc proto-google-cloud-analyticshub-v1 - 0.43.0-SNAPSHOT + 0.43.0 diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/pom.xml b/java-analyticshub/proto-google-cloud-analyticshub-v1/pom.xml index f8955647e46a..d76e17c9f0e5 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/pom.xml +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-analyticshub-v1 - 0.43.0-SNAPSHOT + 0.43.0 proto-google-cloud-analyticshub-v1 Proto library for google-cloud-analyticshub com.google.cloud google-cloud-analyticshub-parent - 0.43.0-SNAPSHOT + 0.43.0 diff --git a/java-api-gateway/CHANGELOG.md b/java-api-gateway/CHANGELOG.md index f71e5a2ae82e..104aa06788cd 100644 --- a/java-api-gateway/CHANGELOG.md +++ b/java-api-gateway/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.46.0 (2024-06-27) + +* No change + + ## 2.45.0 (None) * No change diff --git a/java-api-gateway/README.md b/java-api-gateway/README.md index b6665ac55dca..4c335b18824e 100644 --- a/java-api-gateway/README.md +++ b/java-api-gateway/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-api-gateway - 2.45.0 + 2.46.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-api-gateway:2.45.0' +implementation 'com.google.cloud:google-cloud-api-gateway:2.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-api-gateway" % "2.45.0" +libraryDependencies += "com.google.cloud" % "google-cloud-api-gateway" % "2.46.0" ``` diff --git a/java-api-gateway/google-cloud-api-gateway-bom/pom.xml b/java-api-gateway/google-cloud-api-gateway-bom/pom.xml index 3e46a07a1090..2276c40f1636 100644 --- a/java-api-gateway/google-cloud-api-gateway-bom/pom.xml +++ b/java-api-gateway/google-cloud-api-gateway-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-api-gateway-bom - 2.46.0-SNAPSHOT + 2.46.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-api-gateway - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc grpc-google-cloud-api-gateway-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc proto-google-cloud-api-gateway-v1 - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-api-gateway/google-cloud-api-gateway/pom.xml b/java-api-gateway/google-cloud-api-gateway/pom.xml index f5fbe632f382..197596c82c5d 100644 --- a/java-api-gateway/google-cloud-api-gateway/pom.xml +++ b/java-api-gateway/google-cloud-api-gateway/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-api-gateway - 2.46.0-SNAPSHOT + 2.46.0 jar Google API Gateway API Gateway enables you to provide secure access to your backend services through a well-defined REST API that is consistent across all of your services, regardless of the service implementation. Clients consume your REST APIS to implement standalone apps for a mobile device or tablet, through apps running in a browser, or through any other type of app that can make a request to an HTTP endpoint. com.google.cloud google-cloud-api-gateway-parent - 2.46.0-SNAPSHOT + 2.46.0 google-cloud-api-gateway diff --git a/java-api-gateway/grpc-google-cloud-api-gateway-v1/pom.xml b/java-api-gateway/grpc-google-cloud-api-gateway-v1/pom.xml index 33ff0b52c47e..e3cb4ff1d47b 100644 --- a/java-api-gateway/grpc-google-cloud-api-gateway-v1/pom.xml +++ b/java-api-gateway/grpc-google-cloud-api-gateway-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-api-gateway-v1 - 2.46.0-SNAPSHOT + 2.46.0 grpc-google-cloud-api-gateway-v1 GRPC library for google-cloud-api-gateway com.google.cloud google-cloud-api-gateway-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-api-gateway/pom.xml b/java-api-gateway/pom.xml index 41294d5644fa..b0533f0755f2 100644 --- a/java-api-gateway/pom.xml +++ b/java-api-gateway/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-api-gateway-parent pom - 2.46.0-SNAPSHOT + 2.46.0 Google API Gateway Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-api-gateway - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc grpc-google-cloud-api-gateway-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc proto-google-cloud-api-gateway-v1 - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-api-gateway/proto-google-cloud-api-gateway-v1/pom.xml b/java-api-gateway/proto-google-cloud-api-gateway-v1/pom.xml index 820adb4e0f7b..741791e7b285 100644 --- a/java-api-gateway/proto-google-cloud-api-gateway-v1/pom.xml +++ b/java-api-gateway/proto-google-cloud-api-gateway-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-api-gateway-v1 - 2.46.0-SNAPSHOT + 2.46.0 proto-google-cloud-api-gateway-v1 Proto library for google-cloud-api-gateway com.google.cloud google-cloud-api-gateway-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-apigee-connect/CHANGELOG.md b/java-apigee-connect/CHANGELOG.md index efd814c55a7c..5add0bf8c076 100644 --- a/java-apigee-connect/CHANGELOG.md +++ b/java-apigee-connect/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.46.0 (2024-06-27) + +* No change + + ## 2.45.0 (None) * No change diff --git a/java-apigee-connect/README.md b/java-apigee-connect/README.md index 279ddd2e5073..5b233310eeab 100644 --- a/java-apigee-connect/README.md +++ b/java-apigee-connect/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apigee-connect - 2.45.0 + 2.46.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apigee-connect:2.45.0' +implementation 'com.google.cloud:google-cloud-apigee-connect:2.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apigee-connect" % "2.45.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apigee-connect" % "2.46.0" ``` diff --git a/java-apigee-connect/google-cloud-apigee-connect-bom/pom.xml b/java-apigee-connect/google-cloud-apigee-connect-bom/pom.xml index ff2f1e16c35b..e5c11625f708 100644 --- a/java-apigee-connect/google-cloud-apigee-connect-bom/pom.xml +++ b/java-apigee-connect/google-cloud-apigee-connect-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-apigee-connect-bom - 2.46.0-SNAPSHOT + 2.46.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-apigee-connect - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc grpc-google-cloud-apigee-connect-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc proto-google-cloud-apigee-connect-v1 - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-apigee-connect/google-cloud-apigee-connect/pom.xml b/java-apigee-connect/google-cloud-apigee-connect/pom.xml index 0384134c9915..4c789e028e07 100644 --- a/java-apigee-connect/google-cloud-apigee-connect/pom.xml +++ b/java-apigee-connect/google-cloud-apigee-connect/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-apigee-connect - 2.46.0-SNAPSHOT + 2.46.0 jar Google Apigee Connect Apigee Connect allows the Apigee hybrid management plane to connect securely to the MART service in the runtime plane without requiring you to expose the MART endpoint on the internet. com.google.cloud google-cloud-apigee-connect-parent - 2.46.0-SNAPSHOT + 2.46.0 google-cloud-apigee-connect diff --git a/java-apigee-connect/grpc-google-cloud-apigee-connect-v1/pom.xml b/java-apigee-connect/grpc-google-cloud-apigee-connect-v1/pom.xml index 8f5ddcfeee52..a699b3452111 100644 --- a/java-apigee-connect/grpc-google-cloud-apigee-connect-v1/pom.xml +++ b/java-apigee-connect/grpc-google-cloud-apigee-connect-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-apigee-connect-v1 - 2.46.0-SNAPSHOT + 2.46.0 grpc-google-cloud-apigee-connect-v1 GRPC library for google-cloud-apigee-connect com.google.cloud google-cloud-apigee-connect-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-apigee-connect/pom.xml b/java-apigee-connect/pom.xml index 797e67d9c6ce..a559ce4508b2 100644 --- a/java-apigee-connect/pom.xml +++ b/java-apigee-connect/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-apigee-connect-parent pom - 2.46.0-SNAPSHOT + 2.46.0 Google Apigee Connect Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-apigee-connect - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc grpc-google-cloud-apigee-connect-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc proto-google-cloud-apigee-connect-v1 - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-apigee-connect/proto-google-cloud-apigee-connect-v1/pom.xml b/java-apigee-connect/proto-google-cloud-apigee-connect-v1/pom.xml index 70a2be47725f..995febf18855 100644 --- a/java-apigee-connect/proto-google-cloud-apigee-connect-v1/pom.xml +++ b/java-apigee-connect/proto-google-cloud-apigee-connect-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-apigee-connect-v1 - 2.46.0-SNAPSHOT + 2.46.0 proto-google-cloud-apigee-connect-v1 Proto library for google-cloud-apigee-connect com.google.cloud google-cloud-apigee-connect-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-apigee-registry/CHANGELOG.md b/java-apigee-registry/CHANGELOG.md index dd3b1ea311c8..ecee1f7e7c08 100644 --- a/java-apigee-registry/CHANGELOG.md +++ b/java-apigee-registry/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.46.0 (2024-06-27) + +* No change + + ## 0.45.0 (None) * No change diff --git a/java-apigee-registry/README.md b/java-apigee-registry/README.md index 7102545681ec..95db5a292fa4 100644 --- a/java-apigee-registry/README.md +++ b/java-apigee-registry/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apigee-registry - 0.45.0 + 0.46.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apigee-registry:0.45.0' +implementation 'com.google.cloud:google-cloud-apigee-registry:0.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apigee-registry" % "0.45.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apigee-registry" % "0.46.0" ``` diff --git a/java-apigee-registry/google-cloud-apigee-registry-bom/pom.xml b/java-apigee-registry/google-cloud-apigee-registry-bom/pom.xml index 924847dd9306..720c7d8cfb09 100644 --- a/java-apigee-registry/google-cloud-apigee-registry-bom/pom.xml +++ b/java-apigee-registry/google-cloud-apigee-registry-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-apigee-registry-bom - 0.46.0-SNAPSHOT + 0.46.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-apigee-registry - 0.46.0-SNAPSHOT + 0.46.0 com.google.api.grpc grpc-google-cloud-apigee-registry-v1 - 0.46.0-SNAPSHOT + 0.46.0 com.google.api.grpc proto-google-cloud-apigee-registry-v1 - 0.46.0-SNAPSHOT + 0.46.0 diff --git a/java-apigee-registry/google-cloud-apigee-registry/pom.xml b/java-apigee-registry/google-cloud-apigee-registry/pom.xml index 8f3321a01e89..9d3b465c473c 100644 --- a/java-apigee-registry/google-cloud-apigee-registry/pom.xml +++ b/java-apigee-registry/google-cloud-apigee-registry/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-apigee-registry - 0.46.0-SNAPSHOT + 0.46.0 jar Google Registry API Registry API allows teams to upload and share machine-readable descriptions of APIs that are in use and in development. com.google.cloud google-cloud-apigee-registry-parent - 0.46.0-SNAPSHOT + 0.46.0 google-cloud-apigee-registry diff --git a/java-apigee-registry/grpc-google-cloud-apigee-registry-v1/pom.xml b/java-apigee-registry/grpc-google-cloud-apigee-registry-v1/pom.xml index 3c9546168ef4..aa266db63c33 100644 --- a/java-apigee-registry/grpc-google-cloud-apigee-registry-v1/pom.xml +++ b/java-apigee-registry/grpc-google-cloud-apigee-registry-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-apigee-registry-v1 - 0.46.0-SNAPSHOT + 0.46.0 grpc-google-cloud-apigee-registry-v1 GRPC library for google-cloud-apigee-registry com.google.cloud google-cloud-apigee-registry-parent - 0.46.0-SNAPSHOT + 0.46.0 diff --git a/java-apigee-registry/pom.xml b/java-apigee-registry/pom.xml index 2c017f4ef3d2..f3239c127a27 100644 --- a/java-apigee-registry/pom.xml +++ b/java-apigee-registry/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-apigee-registry-parent pom - 0.46.0-SNAPSHOT + 0.46.0 Google Registry API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-apigee-registry - 0.46.0-SNAPSHOT + 0.46.0 com.google.api.grpc grpc-google-cloud-apigee-registry-v1 - 0.46.0-SNAPSHOT + 0.46.0 com.google.api.grpc proto-google-cloud-apigee-registry-v1 - 0.46.0-SNAPSHOT + 0.46.0 diff --git a/java-apigee-registry/proto-google-cloud-apigee-registry-v1/pom.xml b/java-apigee-registry/proto-google-cloud-apigee-registry-v1/pom.xml index 262892fa5b36..d5b08396d643 100644 --- a/java-apigee-registry/proto-google-cloud-apigee-registry-v1/pom.xml +++ b/java-apigee-registry/proto-google-cloud-apigee-registry-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-apigee-registry-v1 - 0.46.0-SNAPSHOT + 0.46.0 proto-google-cloud-apigee-registry-v1 Proto library for google-cloud-apigee-registry com.google.cloud google-cloud-apigee-registry-parent - 0.46.0-SNAPSHOT + 0.46.0 diff --git a/java-apikeys/CHANGELOG.md b/java-apikeys/CHANGELOG.md index 2c57b9e3f353..fd68ccc8a1f9 100644 --- a/java-apikeys/CHANGELOG.md +++ b/java-apikeys/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.44.0 (2024-06-27) + +* No change + + ## 0.43.0 (None) * No change diff --git a/java-apikeys/README.md b/java-apikeys/README.md index 44f4cd0987c7..767bd65d0c36 100644 --- a/java-apikeys/README.md +++ b/java-apikeys/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apikeys - 0.43.0 + 0.44.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apikeys:0.43.0' +implementation 'com.google.cloud:google-cloud-apikeys:0.44.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apikeys" % "0.43.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apikeys" % "0.44.0" ``` diff --git a/java-apikeys/google-cloud-apikeys-bom/pom.xml b/java-apikeys/google-cloud-apikeys-bom/pom.xml index 0b647218d0f3..fa95eeb45bfb 100644 --- a/java-apikeys/google-cloud-apikeys-bom/pom.xml +++ b/java-apikeys/google-cloud-apikeys-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-apikeys-bom - 0.44.0-SNAPSHOT + 0.44.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-apikeys - 0.44.0-SNAPSHOT + 0.44.0 com.google.api.grpc grpc-google-cloud-apikeys-v2 - 0.44.0-SNAPSHOT + 0.44.0 com.google.api.grpc proto-google-cloud-apikeys-v2 - 0.44.0-SNAPSHOT + 0.44.0 diff --git a/java-apikeys/google-cloud-apikeys/pom.xml b/java-apikeys/google-cloud-apikeys/pom.xml index 8a4899511ba8..5135d839952d 100644 --- a/java-apikeys/google-cloud-apikeys/pom.xml +++ b/java-apikeys/google-cloud-apikeys/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-apikeys - 0.44.0-SNAPSHOT + 0.44.0 jar Google API Keys API API Keys API API Keys lets you create and manage your API keys for your projects. com.google.cloud google-cloud-apikeys-parent - 0.44.0-SNAPSHOT + 0.44.0 google-cloud-apikeys diff --git a/java-apikeys/grpc-google-cloud-apikeys-v2/pom.xml b/java-apikeys/grpc-google-cloud-apikeys-v2/pom.xml index 6ce8af96d071..8f3ee1293991 100644 --- a/java-apikeys/grpc-google-cloud-apikeys-v2/pom.xml +++ b/java-apikeys/grpc-google-cloud-apikeys-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-apikeys-v2 - 0.44.0-SNAPSHOT + 0.44.0 grpc-google-cloud-apikeys-v2 GRPC library for google-cloud-apikeys com.google.cloud google-cloud-apikeys-parent - 0.44.0-SNAPSHOT + 0.44.0 diff --git a/java-apikeys/pom.xml b/java-apikeys/pom.xml index 6e78cf1cfa85..821100c53312 100644 --- a/java-apikeys/pom.xml +++ b/java-apikeys/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-apikeys-parent pom - 0.44.0-SNAPSHOT + 0.44.0 Google API Keys API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-apikeys - 0.44.0-SNAPSHOT + 0.44.0 com.google.api.grpc grpc-google-cloud-apikeys-v2 - 0.44.0-SNAPSHOT + 0.44.0 com.google.api.grpc proto-google-cloud-apikeys-v2 - 0.44.0-SNAPSHOT + 0.44.0 diff --git a/java-apikeys/proto-google-cloud-apikeys-v2/pom.xml b/java-apikeys/proto-google-cloud-apikeys-v2/pom.xml index 0c07fd6c1d9e..a2a4a314b0f3 100644 --- a/java-apikeys/proto-google-cloud-apikeys-v2/pom.xml +++ b/java-apikeys/proto-google-cloud-apikeys-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-apikeys-v2 - 0.44.0-SNAPSHOT + 0.44.0 proto-google-cloud-apikeys-v2 Proto library for google-cloud-apikeys com.google.cloud google-cloud-apikeys-parent - 0.44.0-SNAPSHOT + 0.44.0 diff --git a/java-appengine-admin/CHANGELOG.md b/java-appengine-admin/CHANGELOG.md index 00f318221058..57a46fc4fdc9 100644 --- a/java-appengine-admin/CHANGELOG.md +++ b/java-appengine-admin/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.46.0 (2024-06-27) + +* No change + + ## 2.45.0 (None) * No change diff --git a/java-appengine-admin/README.md b/java-appengine-admin/README.md index 8fdb36045ca0..290ffff2814c 100644 --- a/java-appengine-admin/README.md +++ b/java-appengine-admin/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-appengine-admin - 2.45.0 + 2.46.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-appengine-admin:2.45.0' +implementation 'com.google.cloud:google-cloud-appengine-admin:2.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-appengine-admin" % "2.45.0" +libraryDependencies += "com.google.cloud" % "google-cloud-appengine-admin" % "2.46.0" ``` diff --git a/java-appengine-admin/google-cloud-appengine-admin-bom/pom.xml b/java-appengine-admin/google-cloud-appengine-admin-bom/pom.xml index 93a2696eeaa9..28e384aa9ad2 100644 --- a/java-appengine-admin/google-cloud-appengine-admin-bom/pom.xml +++ b/java-appengine-admin/google-cloud-appengine-admin-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-appengine-admin-bom - 2.46.0-SNAPSHOT + 2.46.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-appengine-admin - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc grpc-google-cloud-appengine-admin-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc proto-google-cloud-appengine-admin-v1 - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-appengine-admin/google-cloud-appengine-admin/pom.xml b/java-appengine-admin/google-cloud-appengine-admin/pom.xml index 9b43250d2d7f..5c94d388e92f 100644 --- a/java-appengine-admin/google-cloud-appengine-admin/pom.xml +++ b/java-appengine-admin/google-cloud-appengine-admin/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-appengine-admin - 2.46.0-SNAPSHOT + 2.46.0 jar Google App Engine Admin API App Engine Admin API you to manage your App Engine applications. com.google.cloud google-cloud-appengine-admin-parent - 2.46.0-SNAPSHOT + 2.46.0 google-cloud-appengine-admin diff --git a/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/pom.xml b/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/pom.xml index fe83f0ba75a8..046b85ca9b70 100644 --- a/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/pom.xml +++ b/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-appengine-admin-v1 - 2.46.0-SNAPSHOT + 2.46.0 grpc-google-cloud-appengine-admin-v1 GRPC library for google-cloud-appengine-admin com.google.cloud google-cloud-appengine-admin-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-appengine-admin/pom.xml b/java-appengine-admin/pom.xml index be098dd107ec..973c8592a61e 100644 --- a/java-appengine-admin/pom.xml +++ b/java-appengine-admin/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-appengine-admin-parent pom - 2.46.0-SNAPSHOT + 2.46.0 Google App Engine Admin API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-appengine-admin - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc grpc-google-cloud-appengine-admin-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc proto-google-cloud-appengine-admin-v1 - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-appengine-admin/proto-google-cloud-appengine-admin-v1/pom.xml b/java-appengine-admin/proto-google-cloud-appengine-admin-v1/pom.xml index d8a82f6c9503..30b5011da784 100644 --- a/java-appengine-admin/proto-google-cloud-appengine-admin-v1/pom.xml +++ b/java-appengine-admin/proto-google-cloud-appengine-admin-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-appengine-admin-v1 - 2.46.0-SNAPSHOT + 2.46.0 proto-google-cloud-appengine-admin-v1 Proto library for google-cloud-appengine-admin com.google.cloud google-cloud-appengine-admin-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-apphub/CHANGELOG.md b/java-apphub/CHANGELOG.md index 0b6b50e250ee..02787cdca3f7 100644 --- a/java-apphub/CHANGELOG.md +++ b/java-apphub/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.10.0 (2024-06-27) + +* No change + + ## 0.9.0 (None) * No change diff --git a/java-apphub/README.md b/java-apphub/README.md index 94eb1e60bfac..8f21898f2f82 100644 --- a/java-apphub/README.md +++ b/java-apphub/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apphub - 0.9.0 + 0.10.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apphub:0.9.0' +implementation 'com.google.cloud:google-cloud-apphub:0.10.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apphub" % "0.9.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apphub" % "0.10.0" ``` diff --git a/java-apphub/google-cloud-apphub-bom/pom.xml b/java-apphub/google-cloud-apphub-bom/pom.xml index 84a1e1ee8b2a..db30066a23de 100644 --- a/java-apphub/google-cloud-apphub-bom/pom.xml +++ b/java-apphub/google-cloud-apphub-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-apphub-bom - 0.10.0-SNAPSHOT + 0.10.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-apphub - 0.10.0-SNAPSHOT + 0.10.0 com.google.api.grpc grpc-google-cloud-apphub-v1 - 0.10.0-SNAPSHOT + 0.10.0 com.google.api.grpc proto-google-cloud-apphub-v1 - 0.10.0-SNAPSHOT + 0.10.0 diff --git a/java-apphub/google-cloud-apphub/pom.xml b/java-apphub/google-cloud-apphub/pom.xml index 13df980b049d..06505f984e6d 100644 --- a/java-apphub/google-cloud-apphub/pom.xml +++ b/java-apphub/google-cloud-apphub/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-apphub - 0.10.0-SNAPSHOT + 0.10.0 jar Google App Hub API App Hub API App Hub simplifies the process of building, running, and managing applications on Google Cloud. com.google.cloud google-cloud-apphub-parent - 0.10.0-SNAPSHOT + 0.10.0 google-cloud-apphub diff --git a/java-apphub/grpc-google-cloud-apphub-v1/pom.xml b/java-apphub/grpc-google-cloud-apphub-v1/pom.xml index 97494d936e14..918bd55959cf 100644 --- a/java-apphub/grpc-google-cloud-apphub-v1/pom.xml +++ b/java-apphub/grpc-google-cloud-apphub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-apphub-v1 - 0.10.0-SNAPSHOT + 0.10.0 grpc-google-cloud-apphub-v1 GRPC library for google-cloud-apphub com.google.cloud google-cloud-apphub-parent - 0.10.0-SNAPSHOT + 0.10.0 diff --git a/java-apphub/pom.xml b/java-apphub/pom.xml index 81097e125c97..a3e3a61aa9a8 100644 --- a/java-apphub/pom.xml +++ b/java-apphub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-apphub-parent pom - 0.10.0-SNAPSHOT + 0.10.0 Google App Hub API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-apphub - 0.10.0-SNAPSHOT + 0.10.0 com.google.api.grpc grpc-google-cloud-apphub-v1 - 0.10.0-SNAPSHOT + 0.10.0 com.google.api.grpc proto-google-cloud-apphub-v1 - 0.10.0-SNAPSHOT + 0.10.0 diff --git a/java-apphub/proto-google-cloud-apphub-v1/pom.xml b/java-apphub/proto-google-cloud-apphub-v1/pom.xml index 9d4652a2bc5d..0961c6c07a5c 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/pom.xml +++ b/java-apphub/proto-google-cloud-apphub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-apphub-v1 - 0.10.0-SNAPSHOT + 0.10.0 proto-google-cloud-apphub-v1 Proto library for google-cloud-apphub com.google.cloud google-cloud-apphub-parent - 0.10.0-SNAPSHOT + 0.10.0 diff --git a/java-area120-tables/CHANGELOG.md b/java-area120-tables/CHANGELOG.md index 32b26d3e89d6..c5bb9f6bf3fe 100644 --- a/java-area120-tables/CHANGELOG.md +++ b/java-area120-tables/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.50.0 (2024-06-27) + +* No change + + ## 0.49.0 (None) * No change diff --git a/java-area120-tables/README.md b/java-area120-tables/README.md index 1659bba3863c..f44dd6c0ce6f 100644 --- a/java-area120-tables/README.md +++ b/java-area120-tables/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.area120 google-area120-tables - 0.49.0 + 0.50.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.area120:google-area120-tables:0.49.0' +implementation 'com.google.area120:google-area120-tables:0.50.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.area120" % "google-area120-tables" % "0.49.0" +libraryDependencies += "com.google.area120" % "google-area120-tables" % "0.50.0" ``` diff --git a/java-area120-tables/google-area120-tables-bom/pom.xml b/java-area120-tables/google-area120-tables-bom/pom.xml index c1c2fe8bb754..88f4fecc0ec3 100644 --- a/java-area120-tables/google-area120-tables-bom/pom.xml +++ b/java-area120-tables/google-area120-tables-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.area120 google-area120-tables-bom - 0.50.0-SNAPSHOT + 0.50.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.area120 google-area120-tables - 0.50.0-SNAPSHOT + 0.50.0 com.google.api.grpc grpc-google-area120-tables-v1alpha1 - 0.50.0-SNAPSHOT + 0.50.0 com.google.api.grpc proto-google-area120-tables-v1alpha1 - 0.50.0-SNAPSHOT + 0.50.0 diff --git a/java-area120-tables/google-area120-tables/pom.xml b/java-area120-tables/google-area120-tables/pom.xml index 55de2dc88253..ef787530d89f 100644 --- a/java-area120-tables/google-area120-tables/pom.xml +++ b/java-area120-tables/google-area120-tables/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.area120 google-area120-tables - 0.50.0-SNAPSHOT + 0.50.0 jar Google Area 120 Tables provides programmatic methods to the Area 120 Tables API. com.google.area120 google-area120-tables-parent - 0.50.0-SNAPSHOT + 0.50.0 google-area120-tables diff --git a/java-area120-tables/grpc-google-area120-tables-v1alpha1/pom.xml b/java-area120-tables/grpc-google-area120-tables-v1alpha1/pom.xml index 4b44bc31d27e..9a6513f6f338 100644 --- a/java-area120-tables/grpc-google-area120-tables-v1alpha1/pom.xml +++ b/java-area120-tables/grpc-google-area120-tables-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-area120-tables-v1alpha1 - 0.50.0-SNAPSHOT + 0.50.0 grpc-google-area120-tables-v1alpha1 GRPC library for google-area120-tables com.google.area120 google-area120-tables-parent - 0.50.0-SNAPSHOT + 0.50.0 diff --git a/java-area120-tables/pom.xml b/java-area120-tables/pom.xml index 36e3e684794b..06afcfbca588 100644 --- a/java-area120-tables/pom.xml +++ b/java-area120-tables/pom.xml @@ -4,7 +4,7 @@ com.google.area120 google-area120-tables-parent pom - 0.50.0-SNAPSHOT + 0.50.0 Google Area 120 Tables Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.area120 google-area120-tables - 0.50.0-SNAPSHOT + 0.50.0 com.google.api.grpc proto-google-area120-tables-v1alpha1 - 0.50.0-SNAPSHOT + 0.50.0 com.google.api.grpc grpc-google-area120-tables-v1alpha1 - 0.50.0-SNAPSHOT + 0.50.0 diff --git a/java-area120-tables/proto-google-area120-tables-v1alpha1/pom.xml b/java-area120-tables/proto-google-area120-tables-v1alpha1/pom.xml index 303a7d408878..cf2ab2a82f92 100644 --- a/java-area120-tables/proto-google-area120-tables-v1alpha1/pom.xml +++ b/java-area120-tables/proto-google-area120-tables-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-area120-tables-v1alpha1 - 0.50.0-SNAPSHOT + 0.50.0 proto-google-area120-tables-v1alpha1 Proto library for google-area120-tables com.google.area120 google-area120-tables-parent - 0.50.0-SNAPSHOT + 0.50.0 diff --git a/java-artifact-registry/CHANGELOG.md b/java-artifact-registry/CHANGELOG.md index d10ce423a2b9..b266a7c26a1c 100644 --- a/java-artifact-registry/CHANGELOG.md +++ b/java-artifact-registry/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 1.45.0 (2024-06-27) + +* No change + + ## 1.44.0 (None) * No change diff --git a/java-artifact-registry/README.md b/java-artifact-registry/README.md index 08223e8413bb..e9f5c8e40037 100644 --- a/java-artifact-registry/README.md +++ b/java-artifact-registry/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-artifact-registry - 1.44.0 + 1.45.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-artifact-registry:1.44.0' +implementation 'com.google.cloud:google-cloud-artifact-registry:1.45.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-artifact-registry" % "1.44.0" +libraryDependencies += "com.google.cloud" % "google-cloud-artifact-registry" % "1.45.0" ``` diff --git a/java-artifact-registry/google-cloud-artifact-registry-bom/pom.xml b/java-artifact-registry/google-cloud-artifact-registry-bom/pom.xml index df56ab3661a6..5c6d935a2e72 100644 --- a/java-artifact-registry/google-cloud-artifact-registry-bom/pom.xml +++ b/java-artifact-registry/google-cloud-artifact-registry-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-artifact-registry-bom - 1.45.0-SNAPSHOT + 1.45.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-artifact-registry - 1.45.0-SNAPSHOT + 1.45.0 com.google.api.grpc grpc-google-cloud-artifact-registry-v1beta2 - 0.51.0-SNAPSHOT + 0.51.0 com.google.api.grpc grpc-google-cloud-artifact-registry-v1 - 1.45.0-SNAPSHOT + 1.45.0 com.google.api.grpc proto-google-cloud-artifact-registry-v1beta2 - 0.51.0-SNAPSHOT + 0.51.0 com.google.api.grpc proto-google-cloud-artifact-registry-v1 - 1.45.0-SNAPSHOT + 1.45.0 diff --git a/java-artifact-registry/google-cloud-artifact-registry/pom.xml b/java-artifact-registry/google-cloud-artifact-registry/pom.xml index f1593355a50e..2329f6a34ade 100644 --- a/java-artifact-registry/google-cloud-artifact-registry/pom.xml +++ b/java-artifact-registry/google-cloud-artifact-registry/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-artifact-registry - 1.45.0-SNAPSHOT + 1.45.0 jar Google Artifact Registry provides a single place for your organization to manage container images and language packages (such as Maven and npm). It is fully integrated with Google Cloud's tooling and runtimes and comes with support for native artifact protocols. This makes it simple to integrate it with your CI/CD tooling to set up automated pipelines. com.google.cloud google-cloud-artifact-registry-parent - 1.45.0-SNAPSHOT + 1.45.0 google-cloud-artifact-registry diff --git a/java-artifact-registry/grpc-google-cloud-artifact-registry-v1/pom.xml b/java-artifact-registry/grpc-google-cloud-artifact-registry-v1/pom.xml index 7c05d094507f..b709f90b9379 100644 --- a/java-artifact-registry/grpc-google-cloud-artifact-registry-v1/pom.xml +++ b/java-artifact-registry/grpc-google-cloud-artifact-registry-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-artifact-registry-v1 - 1.45.0-SNAPSHOT + 1.45.0 grpc-google-cloud-artifact-registry-v1 GRPC library for google-cloud-artifact-registry com.google.cloud google-cloud-artifact-registry-parent - 1.45.0-SNAPSHOT + 1.45.0 diff --git a/java-artifact-registry/grpc-google-cloud-artifact-registry-v1beta2/pom.xml b/java-artifact-registry/grpc-google-cloud-artifact-registry-v1beta2/pom.xml index a3508650ec1a..cf593c96fac1 100644 --- a/java-artifact-registry/grpc-google-cloud-artifact-registry-v1beta2/pom.xml +++ b/java-artifact-registry/grpc-google-cloud-artifact-registry-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-artifact-registry-v1beta2 - 0.51.0-SNAPSHOT + 0.51.0 grpc-google-cloud-artifact-registry-v1beta2 GRPC library for google-cloud-artifact-registry com.google.cloud google-cloud-artifact-registry-parent - 1.45.0-SNAPSHOT + 1.45.0 diff --git a/java-artifact-registry/pom.xml b/java-artifact-registry/pom.xml index bf8fea79df57..81d61ea6a743 100644 --- a/java-artifact-registry/pom.xml +++ b/java-artifact-registry/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-artifact-registry-parent pom - 1.45.0-SNAPSHOT + 1.45.0 Google Artifact Registry Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-artifact-registry - 1.45.0-SNAPSHOT + 1.45.0 com.google.api.grpc proto-google-cloud-artifact-registry-v1 - 1.45.0-SNAPSHOT + 1.45.0 com.google.api.grpc grpc-google-cloud-artifact-registry-v1 - 1.45.0-SNAPSHOT + 1.45.0 com.google.api.grpc proto-google-cloud-artifact-registry-v1beta2 - 0.51.0-SNAPSHOT + 0.51.0 com.google.api.grpc grpc-google-cloud-artifact-registry-v1beta2 - 0.51.0-SNAPSHOT + 0.51.0 diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/pom.xml b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/pom.xml index dfb52ee48341..15e670dc7ebb 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/pom.xml +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-artifact-registry-v1 - 1.45.0-SNAPSHOT + 1.45.0 proto-google-cloud-artifact-registry-v1 Proto library for google-cloud-artifact-registry com.google.cloud google-cloud-artifact-registry-parent - 1.45.0-SNAPSHOT + 1.45.0 diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1beta2/pom.xml b/java-artifact-registry/proto-google-cloud-artifact-registry-v1beta2/pom.xml index bcab3d6f4f94..58c65c3c6b10 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1beta2/pom.xml +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-artifact-registry-v1beta2 - 0.51.0-SNAPSHOT + 0.51.0 grpc-google-cloud-artifact-registry-v1beta2 Proto library for google-cloud-artifact-registry com.google.cloud google-cloud-artifact-registry-parent - 1.45.0-SNAPSHOT + 1.45.0 diff --git a/java-asset/CHANGELOG.md b/java-asset/CHANGELOG.md index b08654e77a84..5439a121becd 100644 --- a/java-asset/CHANGELOG.md +++ b/java-asset/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 3.50.0 (2024-06-27) + +* No change + + ## 3.49.0 (None) * No change diff --git a/java-asset/README.md b/java-asset/README.md index b156e0f7720f..eaad07e1df69 100644 --- a/java-asset/README.md +++ b/java-asset/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-asset - 3.49.0 + 3.50.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-asset:3.49.0' +implementation 'com.google.cloud:google-cloud-asset:3.50.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-asset" % "3.49.0" +libraryDependencies += "com.google.cloud" % "google-cloud-asset" % "3.50.0" ``` diff --git a/java-asset/google-cloud-asset-bom/pom.xml b/java-asset/google-cloud-asset-bom/pom.xml index 82fcf9b51432..79b559df3d70 100644 --- a/java-asset/google-cloud-asset-bom/pom.xml +++ b/java-asset/google-cloud-asset-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-asset-bom - 3.50.0-SNAPSHOT + 3.50.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -23,57 +23,57 @@ com.google.cloud google-cloud-asset - 3.50.0-SNAPSHOT + 3.50.0 com.google.api.grpc grpc-google-cloud-asset-v1 - 3.50.0-SNAPSHOT + 3.50.0 com.google.api.grpc grpc-google-cloud-asset-v1p1beta1 - 0.150.0-SNAPSHOT + 0.150.0 com.google.api.grpc grpc-google-cloud-asset-v1p2beta1 - 0.150.0-SNAPSHOT + 0.150.0 com.google.api.grpc grpc-google-cloud-asset-v1p5beta1 - 0.150.0-SNAPSHOT + 0.150.0 com.google.api.grpc grpc-google-cloud-asset-v1p7beta1 - 3.50.0-SNAPSHOT + 3.50.0 com.google.api.grpc proto-google-cloud-asset-v1 - 3.50.0-SNAPSHOT + 3.50.0 com.google.api.grpc proto-google-cloud-asset-v1p1beta1 - 0.150.0-SNAPSHOT + 0.150.0 com.google.api.grpc proto-google-cloud-asset-v1p2beta1 - 0.150.0-SNAPSHOT + 0.150.0 com.google.api.grpc proto-google-cloud-asset-v1p5beta1 - 0.150.0-SNAPSHOT + 0.150.0 com.google.api.grpc proto-google-cloud-asset-v1p7beta1 - 3.50.0-SNAPSHOT + 3.50.0 diff --git a/java-asset/google-cloud-asset/pom.xml b/java-asset/google-cloud-asset/pom.xml index ea2855956f48..db420b56d299 100644 --- a/java-asset/google-cloud-asset/pom.xml +++ b/java-asset/google-cloud-asset/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-asset - 3.50.0-SNAPSHOT + 3.50.0 jar Google Cloud Asset Java idiomatic client for Google Cloud Asset com.google.cloud google-cloud-asset-parent - 3.50.0-SNAPSHOT + 3.50.0 google-cloud-asset diff --git a/java-asset/grpc-google-cloud-asset-v1/pom.xml b/java-asset/grpc-google-cloud-asset-v1/pom.xml index ae22f4513328..0df7b2dae13f 100644 --- a/java-asset/grpc-google-cloud-asset-v1/pom.xml +++ b/java-asset/grpc-google-cloud-asset-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-asset-v1 - 3.50.0-SNAPSHOT + 3.50.0 grpc-google-cloud-asset-v1 GRPC library for grpc-google-cloud-asset-v1 com.google.cloud google-cloud-asset-parent - 3.50.0-SNAPSHOT + 3.50.0 diff --git a/java-asset/grpc-google-cloud-asset-v1p1beta1/pom.xml b/java-asset/grpc-google-cloud-asset-v1p1beta1/pom.xml index 0f15c1932db0..dd580ddf4dfb 100644 --- a/java-asset/grpc-google-cloud-asset-v1p1beta1/pom.xml +++ b/java-asset/grpc-google-cloud-asset-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-asset-v1p1beta1 - 0.150.0-SNAPSHOT + 0.150.0 grpc-google-cloud-asset-v1p1beta1 GRPC library for grpc-google-cloud-asset-v1p1beta1 com.google.cloud google-cloud-asset-parent - 3.50.0-SNAPSHOT + 3.50.0 diff --git a/java-asset/grpc-google-cloud-asset-v1p2beta1/pom.xml b/java-asset/grpc-google-cloud-asset-v1p2beta1/pom.xml index ac416546f736..28b304a725b2 100644 --- a/java-asset/grpc-google-cloud-asset-v1p2beta1/pom.xml +++ b/java-asset/grpc-google-cloud-asset-v1p2beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-asset-v1p2beta1 - 0.150.0-SNAPSHOT + 0.150.0 grpc-google-cloud-asset-v1p2beta1 GRPC library for grpc-google-cloud-asset-v1p2beta1 com.google.cloud google-cloud-asset-parent - 3.50.0-SNAPSHOT + 3.50.0 diff --git a/java-asset/grpc-google-cloud-asset-v1p5beta1/pom.xml b/java-asset/grpc-google-cloud-asset-v1p5beta1/pom.xml index e0eec16abe0a..688aaec55440 100644 --- a/java-asset/grpc-google-cloud-asset-v1p5beta1/pom.xml +++ b/java-asset/grpc-google-cloud-asset-v1p5beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-asset-v1p5beta1 - 0.150.0-SNAPSHOT + 0.150.0 grpc-google-cloud-asset-v1p5beta1 GRPC library for grpc-google-cloud-asset-v1p5beta1 com.google.cloud google-cloud-asset-parent - 3.50.0-SNAPSHOT + 3.50.0 diff --git a/java-asset/grpc-google-cloud-asset-v1p7beta1/pom.xml b/java-asset/grpc-google-cloud-asset-v1p7beta1/pom.xml index 2dba8e73a92a..14c4f0921363 100644 --- a/java-asset/grpc-google-cloud-asset-v1p7beta1/pom.xml +++ b/java-asset/grpc-google-cloud-asset-v1p7beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-asset-v1p7beta1 - 3.50.0-SNAPSHOT + 3.50.0 grpc-google-cloud-asset-v1p7beta1 GRPC library for google-cloud-asset com.google.cloud google-cloud-asset-parent - 3.50.0-SNAPSHOT + 3.50.0 diff --git a/java-asset/pom.xml b/java-asset/pom.xml index 3541b6b35435..09a1977f7e97 100644 --- a/java-asset/pom.xml +++ b/java-asset/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-asset-parent pom - 3.50.0-SNAPSHOT + 3.50.0 Google Cloud Asset Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,77 +29,77 @@ com.google.api.grpc proto-google-cloud-asset-v1 - 3.50.0-SNAPSHOT + 3.50.0 com.google.api.grpc proto-google-cloud-asset-v1p7beta1 - 3.50.0-SNAPSHOT + 3.50.0 com.google.api.grpc grpc-google-cloud-asset-v1p7beta1 - 3.50.0-SNAPSHOT + 3.50.0 com.google.api.grpc proto-google-cloud-asset-v1p1beta1 - 0.150.0-SNAPSHOT + 0.150.0 com.google.api.grpc proto-google-cloud-asset-v1p2beta1 - 0.150.0-SNAPSHOT + 0.150.0 com.google.api.grpc proto-google-cloud-asset-v1p5beta1 - 0.150.0-SNAPSHOT + 0.150.0 com.google.api.grpc grpc-google-cloud-asset-v1 - 3.50.0-SNAPSHOT + 3.50.0 com.google.api.grpc grpc-google-cloud-asset-v1p1beta1 - 0.150.0-SNAPSHOT + 0.150.0 com.google.api.grpc grpc-google-cloud-asset-v1p2beta1 - 0.150.0-SNAPSHOT + 0.150.0 com.google.api.grpc grpc-google-cloud-asset-v1p5beta1 - 0.150.0-SNAPSHOT + 0.150.0 com.google.cloud google-cloud-asset - 3.50.0-SNAPSHOT + 3.50.0 com.google.api.grpc proto-google-cloud-orgpolicy-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc proto-google-identity-accesscontextmanager-v1 - 1.47.0-SNAPSHOT + 1.47.0 com.google.api.grpc proto-google-cloud-os-config-v1 - 2.48.0-SNAPSHOT + 2.48.0 com.google.cloud google-cloud-resourcemanager - 1.48.0-SNAPSHOT + 1.48.0 test diff --git a/java-asset/proto-google-cloud-asset-v1/pom.xml b/java-asset/proto-google-cloud-asset-v1/pom.xml index e0d7c49efa78..0e25346d2033 100644 --- a/java-asset/proto-google-cloud-asset-v1/pom.xml +++ b/java-asset/proto-google-cloud-asset-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-asset-v1 - 3.50.0-SNAPSHOT + 3.50.0 proto-google-cloud-asset-v1 PROTO library for proto-google-cloud-asset-v1 com.google.cloud google-cloud-asset-parent - 3.50.0-SNAPSHOT + 3.50.0 diff --git a/java-asset/proto-google-cloud-asset-v1p1beta1/pom.xml b/java-asset/proto-google-cloud-asset-v1p1beta1/pom.xml index 1b163e5a26eb..65d7aef38de6 100644 --- a/java-asset/proto-google-cloud-asset-v1p1beta1/pom.xml +++ b/java-asset/proto-google-cloud-asset-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-asset-v1p1beta1 - 0.150.0-SNAPSHOT + 0.150.0 proto-google-cloud-asset-v1p1beta1 PROTO library for proto-google-cloud-asset-v1p1beta1 com.google.cloud google-cloud-asset-parent - 3.50.0-SNAPSHOT + 3.50.0 diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/pom.xml b/java-asset/proto-google-cloud-asset-v1p2beta1/pom.xml index f4625ed50e32..03aa71e4e7c3 100644 --- a/java-asset/proto-google-cloud-asset-v1p2beta1/pom.xml +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-asset-v1p2beta1 - 0.150.0-SNAPSHOT + 0.150.0 proto-google-cloud-asset-v1p2beta1 PROTO library for proto-google-cloud-asset-v1p2beta1 com.google.cloud google-cloud-asset-parent - 3.50.0-SNAPSHOT + 3.50.0 diff --git a/java-asset/proto-google-cloud-asset-v1p5beta1/pom.xml b/java-asset/proto-google-cloud-asset-v1p5beta1/pom.xml index 306c4229ff84..99fd43c84f3e 100644 --- a/java-asset/proto-google-cloud-asset-v1p5beta1/pom.xml +++ b/java-asset/proto-google-cloud-asset-v1p5beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-asset-v1p5beta1 - 0.150.0-SNAPSHOT + 0.150.0 proto-google-cloud-asset-v1p5beta1 PROTO library for proto-google-cloud-asset-v1p4beta1 com.google.cloud google-cloud-asset-parent - 3.50.0-SNAPSHOT + 3.50.0 diff --git a/java-asset/proto-google-cloud-asset-v1p7beta1/pom.xml b/java-asset/proto-google-cloud-asset-v1p7beta1/pom.xml index 08cf71fcd044..09dd22e3b4ac 100644 --- a/java-asset/proto-google-cloud-asset-v1p7beta1/pom.xml +++ b/java-asset/proto-google-cloud-asset-v1p7beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-asset-v1p7beta1 - 3.50.0-SNAPSHOT + 3.50.0 proto-google-cloud-asset-v1p7beta1 Proto library for google-cloud-asset com.google.cloud google-cloud-asset-parent - 3.50.0-SNAPSHOT + 3.50.0 diff --git a/java-assured-workloads/CHANGELOG.md b/java-assured-workloads/CHANGELOG.md index 391873ac2e2b..d0548312555a 100644 --- a/java-assured-workloads/CHANGELOG.md +++ b/java-assured-workloads/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.46.0 (2024-06-27) + +* No change + + ## 2.45.0 (None) * No change diff --git a/java-assured-workloads/README.md b/java-assured-workloads/README.md index 81c93f0ec48a..6624fef3df1f 100644 --- a/java-assured-workloads/README.md +++ b/java-assured-workloads/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-assured-workloads - 2.45.0 + 2.46.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-assured-workloads:2.45.0' +implementation 'com.google.cloud:google-cloud-assured-workloads:2.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-assured-workloads" % "2.45.0" +libraryDependencies += "com.google.cloud" % "google-cloud-assured-workloads" % "2.46.0" ``` diff --git a/java-assured-workloads/google-cloud-assured-workloads-bom/pom.xml b/java-assured-workloads/google-cloud-assured-workloads-bom/pom.xml index 9bbe67649490..e60e780743da 100644 --- a/java-assured-workloads/google-cloud-assured-workloads-bom/pom.xml +++ b/java-assured-workloads/google-cloud-assured-workloads-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-assured-workloads-bom - 2.46.0-SNAPSHOT + 2.46.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-assured-workloads - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc grpc-google-cloud-assured-workloads-v1beta1 - 0.58.0-SNAPSHOT + 0.58.0 com.google.api.grpc grpc-google-cloud-assured-workloads-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc proto-google-cloud-assured-workloads-v1beta1 - 0.58.0-SNAPSHOT + 0.58.0 com.google.api.grpc proto-google-cloud-assured-workloads-v1 - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-assured-workloads/google-cloud-assured-workloads/pom.xml b/java-assured-workloads/google-cloud-assured-workloads/pom.xml index 77995f5cea84..aa878020b86c 100644 --- a/java-assured-workloads/google-cloud-assured-workloads/pom.xml +++ b/java-assured-workloads/google-cloud-assured-workloads/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-assured-workloads - 2.46.0-SNAPSHOT + 2.46.0 jar Google Assured Workloads for Government allows you to secure your government workloads and accelerate your path to running compliant workloads on Google Cloud with Assured Workloads for Government. com.google.cloud google-cloud-assured-workloads-parent - 2.46.0-SNAPSHOT + 2.46.0 google-cloud-assured-workloads diff --git a/java-assured-workloads/grpc-google-cloud-assured-workloads-v1/pom.xml b/java-assured-workloads/grpc-google-cloud-assured-workloads-v1/pom.xml index 657e6fb69e16..59452b7a9091 100644 --- a/java-assured-workloads/grpc-google-cloud-assured-workloads-v1/pom.xml +++ b/java-assured-workloads/grpc-google-cloud-assured-workloads-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-assured-workloads-v1 - 2.46.0-SNAPSHOT + 2.46.0 grpc-google-cloud-assured-workloads-v1 GRPC library for google-cloud-assured-workloads com.google.cloud google-cloud-assured-workloads-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-assured-workloads/grpc-google-cloud-assured-workloads-v1beta1/pom.xml b/java-assured-workloads/grpc-google-cloud-assured-workloads-v1beta1/pom.xml index b483b985b698..e8755553bfa3 100644 --- a/java-assured-workloads/grpc-google-cloud-assured-workloads-v1beta1/pom.xml +++ b/java-assured-workloads/grpc-google-cloud-assured-workloads-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-assured-workloads-v1beta1 - 0.58.0-SNAPSHOT + 0.58.0 grpc-google-cloud-assured-workloads-v1beta1 GRPC library for google-cloud-assured-workloads com.google.cloud google-cloud-assured-workloads-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-assured-workloads/pom.xml b/java-assured-workloads/pom.xml index f9f36489cd5e..61cc487ba037 100644 --- a/java-assured-workloads/pom.xml +++ b/java-assured-workloads/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-assured-workloads-parent pom - 2.46.0-SNAPSHOT + 2.46.0 Google Assured Workloads for Government Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-assured-workloads - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc proto-google-cloud-assured-workloads-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc grpc-google-cloud-assured-workloads-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc proto-google-cloud-assured-workloads-v1beta1 - 0.58.0-SNAPSHOT + 0.58.0 com.google.api.grpc grpc-google-cloud-assured-workloads-v1beta1 - 0.58.0-SNAPSHOT + 0.58.0 diff --git a/java-assured-workloads/proto-google-cloud-assured-workloads-v1/pom.xml b/java-assured-workloads/proto-google-cloud-assured-workloads-v1/pom.xml index e5ec299e702b..decba031dd60 100644 --- a/java-assured-workloads/proto-google-cloud-assured-workloads-v1/pom.xml +++ b/java-assured-workloads/proto-google-cloud-assured-workloads-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-assured-workloads-v1 - 2.46.0-SNAPSHOT + 2.46.0 proto-google-cloud-assured-workloads-v1 Proto library for google-cloud-assured-workloads com.google.cloud google-cloud-assured-workloads-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/pom.xml b/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/pom.xml index c7041aa726a3..7f59bbb99816 100644 --- a/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/pom.xml +++ b/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-assured-workloads-v1beta1 - 0.58.0-SNAPSHOT + 0.58.0 proto-google-cloud-assured-workloads-v1beta1 Proto library for google-cloud-assured-workloads com.google.cloud google-cloud-assured-workloads-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-automl/CHANGELOG.md b/java-automl/CHANGELOG.md index 31de5c81665d..6420d9770713 100644 --- a/java-automl/CHANGELOG.md +++ b/java-automl/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.46.0 (2024-06-27) + +* No change + + ## 2.45.0 (None) * No change diff --git a/java-automl/README.md b/java-automl/README.md index 6c0b15d41af8..95854dc1c3f9 100644 --- a/java-automl/README.md +++ b/java-automl/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-automl - 2.45.0 + 2.46.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-automl:2.45.0' +implementation 'com.google.cloud:google-cloud-automl:2.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-automl" % "2.45.0" +libraryDependencies += "com.google.cloud" % "google-cloud-automl" % "2.46.0" ``` diff --git a/java-automl/google-cloud-automl-bom/pom.xml b/java-automl/google-cloud-automl-bom/pom.xml index 09cd687e901f..ec3e26b906d9 100644 --- a/java-automl/google-cloud-automl-bom/pom.xml +++ b/java-automl/google-cloud-automl-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-automl-bom - 2.46.0-SNAPSHOT + 2.46.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-automl - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc grpc-google-cloud-automl-v1beta1 - 0.133.0-SNAPSHOT + 0.133.0 com.google.api.grpc grpc-google-cloud-automl-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc proto-google-cloud-automl-v1beta1 - 0.133.0-SNAPSHOT + 0.133.0 com.google.api.grpc proto-google-cloud-automl-v1 - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-automl/google-cloud-automl/pom.xml b/java-automl/google-cloud-automl/pom.xml index 4c66f9c5132e..4983707b0980 100644 --- a/java-automl/google-cloud-automl/pom.xml +++ b/java-automl/google-cloud-automl/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-automl - 2.46.0-SNAPSHOT + 2.46.0 jar Google Cloud AutoML Java idiomatic client for Google Cloud Auto ML com.google.cloud google-cloud-automl-parent - 2.46.0-SNAPSHOT + 2.46.0 google-cloud-automl diff --git a/java-automl/grpc-google-cloud-automl-v1/pom.xml b/java-automl/grpc-google-cloud-automl-v1/pom.xml index f8297c04783c..ac19efe0af8e 100644 --- a/java-automl/grpc-google-cloud-automl-v1/pom.xml +++ b/java-automl/grpc-google-cloud-automl-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-automl-v1 - 2.46.0-SNAPSHOT + 2.46.0 grpc-google-cloud-automl-v1 GRPC library for grpc-google-cloud-automl-v1 com.google.cloud google-cloud-automl-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-automl/grpc-google-cloud-automl-v1beta1/pom.xml b/java-automl/grpc-google-cloud-automl-v1beta1/pom.xml index 0a4f9850e849..50065e22e55c 100644 --- a/java-automl/grpc-google-cloud-automl-v1beta1/pom.xml +++ b/java-automl/grpc-google-cloud-automl-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-automl-v1beta1 - 0.133.0-SNAPSHOT + 0.133.0 grpc-google-cloud-automl-v1beta1 GRPC library for grpc-google-cloud-automl-v1beta1 com.google.cloud google-cloud-automl-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-automl/pom.xml b/java-automl/pom.xml index 1752cdc943f6..43de06436520 100644 --- a/java-automl/pom.xml +++ b/java-automl/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-automl-parent pom - 2.46.0-SNAPSHOT + 2.46.0 Google Cloud AutoML Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-automl-v1beta1 - 0.133.0-SNAPSHOT + 0.133.0 com.google.api.grpc proto-google-cloud-automl-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc grpc-google-cloud-automl-v1beta1 - 0.133.0-SNAPSHOT + 0.133.0 com.google.api.grpc grpc-google-cloud-automl-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.cloud google-cloud-automl - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-automl/proto-google-cloud-automl-v1/pom.xml b/java-automl/proto-google-cloud-automl-v1/pom.xml index d9a8a453465e..7d07ec98ec36 100644 --- a/java-automl/proto-google-cloud-automl-v1/pom.xml +++ b/java-automl/proto-google-cloud-automl-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-automl-v1 - 2.46.0-SNAPSHOT + 2.46.0 proto-google-cloud-automl-v1 PROTO library for proto-google-cloud-automl-v1 com.google.cloud google-cloud-automl-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-automl/proto-google-cloud-automl-v1beta1/pom.xml b/java-automl/proto-google-cloud-automl-v1beta1/pom.xml index aa0b02ee9346..12f8a8b361fc 100644 --- a/java-automl/proto-google-cloud-automl-v1beta1/pom.xml +++ b/java-automl/proto-google-cloud-automl-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-automl-v1beta1 - 0.133.0-SNAPSHOT + 0.133.0 proto-google-cloud-automl-v1beta1 PROTO library for proto-google-cloud-automl-v1beta1 com.google.cloud google-cloud-automl-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-backupdr/CHANGELOG.md b/java-backupdr/CHANGELOG.md index e462d18bd7a4..6ca230f85b73 100644 --- a/java-backupdr/CHANGELOG.md +++ b/java-backupdr/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.5.0 (2024-06-27) + +* No change + + ## 0.4.0 (None) * No change diff --git a/java-backupdr/README.md b/java-backupdr/README.md index 1a26750ca509..e0c94bbde5e4 100644 --- a/java-backupdr/README.md +++ b/java-backupdr/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-backupdr - 0.4.0 + 0.5.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-backupdr:0.4.0' +implementation 'com.google.cloud:google-cloud-backupdr:0.5.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-backupdr" % "0.4.0" +libraryDependencies += "com.google.cloud" % "google-cloud-backupdr" % "0.5.0" ``` diff --git a/java-backupdr/google-cloud-backupdr-bom/pom.xml b/java-backupdr/google-cloud-backupdr-bom/pom.xml index 9c3e69034e08..cd742b2f6635 100644 --- a/java-backupdr/google-cloud-backupdr-bom/pom.xml +++ b/java-backupdr/google-cloud-backupdr-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-backupdr-bom - 0.5.0-SNAPSHOT + 0.5.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-backupdr - 0.5.0-SNAPSHOT + 0.5.0 com.google.api.grpc grpc-google-cloud-backupdr-v1 - 0.5.0-SNAPSHOT + 0.5.0 com.google.api.grpc proto-google-cloud-backupdr-v1 - 0.5.0-SNAPSHOT + 0.5.0 diff --git a/java-backupdr/google-cloud-backupdr/pom.xml b/java-backupdr/google-cloud-backupdr/pom.xml index 9bb608c0ef7d..8f9227b47d94 100644 --- a/java-backupdr/google-cloud-backupdr/pom.xml +++ b/java-backupdr/google-cloud-backupdr/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-backupdr - 0.5.0-SNAPSHOT + 0.5.0 jar Google Backup and DR Service API Backup and DR Service API Backup and DR Service is a powerful, centralized, cloud-first backup and disaster recovery solution for cloud-based and hybrid workloads. com.google.cloud google-cloud-backupdr-parent - 0.5.0-SNAPSHOT + 0.5.0 google-cloud-backupdr diff --git a/java-backupdr/grpc-google-cloud-backupdr-v1/pom.xml b/java-backupdr/grpc-google-cloud-backupdr-v1/pom.xml index 8fd220dc00cc..0d15912c617e 100644 --- a/java-backupdr/grpc-google-cloud-backupdr-v1/pom.xml +++ b/java-backupdr/grpc-google-cloud-backupdr-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-backupdr-v1 - 0.5.0-SNAPSHOT + 0.5.0 grpc-google-cloud-backupdr-v1 GRPC library for google-cloud-backupdr com.google.cloud google-cloud-backupdr-parent - 0.5.0-SNAPSHOT + 0.5.0 diff --git a/java-backupdr/pom.xml b/java-backupdr/pom.xml index 863bdff3d4ad..f67040fdfdf8 100644 --- a/java-backupdr/pom.xml +++ b/java-backupdr/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-backupdr-parent pom - 0.5.0-SNAPSHOT + 0.5.0 Google Backup and DR Service API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-backupdr - 0.5.0-SNAPSHOT + 0.5.0 com.google.api.grpc grpc-google-cloud-backupdr-v1 - 0.5.0-SNAPSHOT + 0.5.0 com.google.api.grpc proto-google-cloud-backupdr-v1 - 0.5.0-SNAPSHOT + 0.5.0 diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/pom.xml b/java-backupdr/proto-google-cloud-backupdr-v1/pom.xml index 17cd3ea3a73f..471ea116b14e 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/pom.xml +++ b/java-backupdr/proto-google-cloud-backupdr-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-backupdr-v1 - 0.5.0-SNAPSHOT + 0.5.0 proto-google-cloud-backupdr-v1 Proto library for google-cloud-backupdr com.google.cloud google-cloud-backupdr-parent - 0.5.0-SNAPSHOT + 0.5.0 diff --git a/java-bare-metal-solution/CHANGELOG.md b/java-bare-metal-solution/CHANGELOG.md index b9b821a7e819..26c4733147bd 100644 --- a/java-bare-metal-solution/CHANGELOG.md +++ b/java-bare-metal-solution/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.46.0 (2024-06-27) + +* No change + + ## 0.45.0 (None) * No change diff --git a/java-bare-metal-solution/README.md b/java-bare-metal-solution/README.md index 96c0c64d570d..4c0df4cb62e5 100644 --- a/java-bare-metal-solution/README.md +++ b/java-bare-metal-solution/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bare-metal-solution - 0.45.0 + 0.46.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bare-metal-solution:0.45.0' +implementation 'com.google.cloud:google-cloud-bare-metal-solution:0.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bare-metal-solution" % "0.45.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bare-metal-solution" % "0.46.0" ``` diff --git a/java-bare-metal-solution/google-cloud-bare-metal-solution-bom/pom.xml b/java-bare-metal-solution/google-cloud-bare-metal-solution-bom/pom.xml index 0d763342ad49..81cb0859d638 100644 --- a/java-bare-metal-solution/google-cloud-bare-metal-solution-bom/pom.xml +++ b/java-bare-metal-solution/google-cloud-bare-metal-solution-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-bare-metal-solution-bom - 0.46.0-SNAPSHOT + 0.46.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-bare-metal-solution - 0.46.0-SNAPSHOT + 0.46.0 com.google.api.grpc grpc-google-cloud-bare-metal-solution-v2 - 0.46.0-SNAPSHOT + 0.46.0 com.google.api.grpc proto-google-cloud-bare-metal-solution-v2 - 0.46.0-SNAPSHOT + 0.46.0 diff --git a/java-bare-metal-solution/google-cloud-bare-metal-solution/pom.xml b/java-bare-metal-solution/google-cloud-bare-metal-solution/pom.xml index 98039337738b..5efd0ab813d7 100644 --- a/java-bare-metal-solution/google-cloud-bare-metal-solution/pom.xml +++ b/java-bare-metal-solution/google-cloud-bare-metal-solution/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-bare-metal-solution - 0.46.0-SNAPSHOT + 0.46.0 jar Google Bare Metal SOlution Bare Metal SOlution Bring your Oracle workloads to Google Cloud with Bare Metal Solution and jumpstart your cloud journey with minimal risk. com.google.cloud google-cloud-bare-metal-solution-parent - 0.46.0-SNAPSHOT + 0.46.0 google-cloud-bare-metal-solution diff --git a/java-bare-metal-solution/grpc-google-cloud-bare-metal-solution-v2/pom.xml b/java-bare-metal-solution/grpc-google-cloud-bare-metal-solution-v2/pom.xml index 02d08d99954f..45afa26fd085 100644 --- a/java-bare-metal-solution/grpc-google-cloud-bare-metal-solution-v2/pom.xml +++ b/java-bare-metal-solution/grpc-google-cloud-bare-metal-solution-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bare-metal-solution-v2 - 0.46.0-SNAPSHOT + 0.46.0 grpc-google-cloud-bare-metal-solution-v2 GRPC library for google-cloud-bare-metal-solution com.google.cloud google-cloud-bare-metal-solution-parent - 0.46.0-SNAPSHOT + 0.46.0 diff --git a/java-bare-metal-solution/pom.xml b/java-bare-metal-solution/pom.xml index 543e9fd73ca9..e9d708b53b8d 100644 --- a/java-bare-metal-solution/pom.xml +++ b/java-bare-metal-solution/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bare-metal-solution-parent pom - 0.46.0-SNAPSHOT + 0.46.0 Google Bare Metal SOlution Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-bare-metal-solution - 0.46.0-SNAPSHOT + 0.46.0 com.google.api.grpc grpc-google-cloud-bare-metal-solution-v2 - 0.46.0-SNAPSHOT + 0.46.0 com.google.api.grpc proto-google-cloud-bare-metal-solution-v2 - 0.46.0-SNAPSHOT + 0.46.0 diff --git a/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/pom.xml b/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/pom.xml index c472001279dc..b40d5413bc6c 100644 --- a/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/pom.xml +++ b/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bare-metal-solution-v2 - 0.46.0-SNAPSHOT + 0.46.0 proto-google-cloud-bare-metal-solution-v2 Proto library for google-cloud-bare-metal-solution com.google.cloud google-cloud-bare-metal-solution-parent - 0.46.0-SNAPSHOT + 0.46.0 diff --git a/java-batch/CHANGELOG.md b/java-batch/CHANGELOG.md index 0d59e614d91a..50e01720564c 100644 --- a/java-batch/CHANGELOG.md +++ b/java-batch/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 0.46.0 (2024-06-27) + +### Features + +* add a install_ops_agent field to InstancePolicyOrTemplate for Ops Agent support ([564c369](https://github.com/googleapis/google-cloud-java/commit/564c3692bc8d22f4f5acdcbfb60be0582bd08d53)) +* Documentation improvements ([4be1db5](https://github.com/googleapis/google-cloud-java/commit/4be1db5cfca842d85e167b8ed033ebcbcbd758dd)) + + + ## 0.45.0 (None) * No change diff --git a/java-batch/README.md b/java-batch/README.md index b701caf063c2..7693556de6f1 100644 --- a/java-batch/README.md +++ b/java-batch/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-batch - 0.45.0 + 0.46.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-batch:0.45.0' +implementation 'com.google.cloud:google-cloud-batch:0.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-batch" % "0.45.0" +libraryDependencies += "com.google.cloud" % "google-cloud-batch" % "0.46.0" ``` diff --git a/java-batch/google-cloud-batch-bom/pom.xml b/java-batch/google-cloud-batch-bom/pom.xml index 86e7ad74bf66..4c121380cc51 100644 --- a/java-batch/google-cloud-batch-bom/pom.xml +++ b/java-batch/google-cloud-batch-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-batch-bom - 0.46.0-SNAPSHOT + 0.46.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-batch - 0.46.0-SNAPSHOT + 0.46.0 com.google.api.grpc grpc-google-cloud-batch-v1 - 0.46.0-SNAPSHOT + 0.46.0 com.google.api.grpc grpc-google-cloud-batch-v1alpha - 0.46.0-SNAPSHOT + 0.46.0 com.google.api.grpc proto-google-cloud-batch-v1 - 0.46.0-SNAPSHOT + 0.46.0 com.google.api.grpc proto-google-cloud-batch-v1alpha - 0.46.0-SNAPSHOT + 0.46.0 diff --git a/java-batch/google-cloud-batch/pom.xml b/java-batch/google-cloud-batch/pom.xml index f734848cf88f..b9ff0e5ad5a1 100644 --- a/java-batch/google-cloud-batch/pom.xml +++ b/java-batch/google-cloud-batch/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-batch - 0.46.0-SNAPSHOT + 0.46.0 jar Google Google Cloud Batch Google Cloud Batch n/a com.google.cloud google-cloud-batch-parent - 0.46.0-SNAPSHOT + 0.46.0 google-cloud-batch diff --git a/java-batch/grpc-google-cloud-batch-v1/pom.xml b/java-batch/grpc-google-cloud-batch-v1/pom.xml index 0b91141f05b3..f0e8c734c03b 100644 --- a/java-batch/grpc-google-cloud-batch-v1/pom.xml +++ b/java-batch/grpc-google-cloud-batch-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-batch-v1 - 0.46.0-SNAPSHOT + 0.46.0 grpc-google-cloud-batch-v1 GRPC library for google-cloud-batch com.google.cloud google-cloud-batch-parent - 0.46.0-SNAPSHOT + 0.46.0 diff --git a/java-batch/grpc-google-cloud-batch-v1alpha/pom.xml b/java-batch/grpc-google-cloud-batch-v1alpha/pom.xml index d569de72a52f..53be06731222 100644 --- a/java-batch/grpc-google-cloud-batch-v1alpha/pom.xml +++ b/java-batch/grpc-google-cloud-batch-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-batch-v1alpha - 0.46.0-SNAPSHOT + 0.46.0 grpc-google-cloud-batch-v1alpha GRPC library for google-cloud-batch com.google.cloud google-cloud-batch-parent - 0.46.0-SNAPSHOT + 0.46.0 diff --git a/java-batch/pom.xml b/java-batch/pom.xml index a8358874b1c8..17df8779beee 100644 --- a/java-batch/pom.xml +++ b/java-batch/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-batch-parent pom - 0.46.0-SNAPSHOT + 0.46.0 Google Google Cloud Batch Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-batch - 0.46.0-SNAPSHOT + 0.46.0 com.google.api.grpc proto-google-cloud-batch-v1alpha - 0.46.0-SNAPSHOT + 0.46.0 com.google.api.grpc grpc-google-cloud-batch-v1alpha - 0.46.0-SNAPSHOT + 0.46.0 com.google.api.grpc grpc-google-cloud-batch-v1 - 0.46.0-SNAPSHOT + 0.46.0 com.google.api.grpc proto-google-cloud-batch-v1 - 0.46.0-SNAPSHOT + 0.46.0 diff --git a/java-batch/proto-google-cloud-batch-v1/pom.xml b/java-batch/proto-google-cloud-batch-v1/pom.xml index c26255abde3b..bec48c3db28b 100644 --- a/java-batch/proto-google-cloud-batch-v1/pom.xml +++ b/java-batch/proto-google-cloud-batch-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-batch-v1 - 0.46.0-SNAPSHOT + 0.46.0 proto-google-cloud-batch-v1 Proto library for google-cloud-batch com.google.cloud google-cloud-batch-parent - 0.46.0-SNAPSHOT + 0.46.0 diff --git a/java-batch/proto-google-cloud-batch-v1alpha/pom.xml b/java-batch/proto-google-cloud-batch-v1alpha/pom.xml index cbc942d6d70a..70c4d7cc9a9a 100644 --- a/java-batch/proto-google-cloud-batch-v1alpha/pom.xml +++ b/java-batch/proto-google-cloud-batch-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-batch-v1alpha - 0.46.0-SNAPSHOT + 0.46.0 proto-google-cloud-batch-v1alpha Proto library for google-cloud-batch com.google.cloud google-cloud-batch-parent - 0.46.0-SNAPSHOT + 0.46.0 diff --git a/java-beyondcorp-appconnections/CHANGELOG.md b/java-beyondcorp-appconnections/CHANGELOG.md index 9d71834890c8..857f35ff91d4 100644 --- a/java-beyondcorp-appconnections/CHANGELOG.md +++ b/java-beyondcorp-appconnections/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.44.0 (2024-06-27) + +* No change + + ## 0.43.0 (None) * No change diff --git a/java-beyondcorp-appconnections/README.md b/java-beyondcorp-appconnections/README.md index 0089c2c7979c..5845b4928876 100644 --- a/java-beyondcorp-appconnections/README.md +++ b/java-beyondcorp-appconnections/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-appconnections - 0.43.0 + 0.44.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-appconnections:0.43.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-appconnections:0.44.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnections" % "0.43.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnections" % "0.44.0" ``` diff --git a/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections-bom/pom.xml b/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections-bom/pom.xml index d4fc88850e3e..1b74f29a3419 100644 --- a/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections-bom/pom.xml +++ b/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-appconnections-bom - 0.44.0-SNAPSHOT + 0.44.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-beyondcorp-appconnections - 0.44.0-SNAPSHOT + 0.44.0 com.google.api.grpc grpc-google-cloud-beyondcorp-appconnections-v1 - 0.44.0-SNAPSHOT + 0.44.0 com.google.api.grpc proto-google-cloud-beyondcorp-appconnections-v1 - 0.44.0-SNAPSHOT + 0.44.0 diff --git a/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/pom.xml b/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/pom.xml index 6be73fc69093..dfe52a8a80cc 100644 --- a/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/pom.xml +++ b/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-appconnections - 0.44.0-SNAPSHOT + 0.44.0 jar Google BeyondCorp AppConnections BeyondCorp AppConnections is Google's implementation of the zero trust model. It builds upon a decade of experience at Google, combined with ideas and best practices from the community. By shifting access controls from the network perimeter to individual users, BeyondCorp enables secure work from virtually any location without the need for a traditional VPN. com.google.cloud google-cloud-beyondcorp-appconnections-parent - 0.44.0-SNAPSHOT + 0.44.0 google-cloud-beyondcorp-appconnections diff --git a/java-beyondcorp-appconnections/grpc-google-cloud-beyondcorp-appconnections-v1/pom.xml b/java-beyondcorp-appconnections/grpc-google-cloud-beyondcorp-appconnections-v1/pom.xml index 9d8f6b6003fe..009f14ae70a5 100644 --- a/java-beyondcorp-appconnections/grpc-google-cloud-beyondcorp-appconnections-v1/pom.xml +++ b/java-beyondcorp-appconnections/grpc-google-cloud-beyondcorp-appconnections-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-beyondcorp-appconnections-v1 - 0.44.0-SNAPSHOT + 0.44.0 grpc-google-cloud-beyondcorp-appconnections-v1 GRPC library for google-cloud-beyondcorp-appconnections com.google.cloud google-cloud-beyondcorp-appconnections-parent - 0.44.0-SNAPSHOT + 0.44.0 diff --git a/java-beyondcorp-appconnections/pom.xml b/java-beyondcorp-appconnections/pom.xml index 9bbd01ec2342..5d2f1bf371b2 100644 --- a/java-beyondcorp-appconnections/pom.xml +++ b/java-beyondcorp-appconnections/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-beyondcorp-appconnections-parent pom - 0.44.0-SNAPSHOT + 0.44.0 Google BeyondCorp AppConnections Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-beyondcorp-appconnections - 0.44.0-SNAPSHOT + 0.44.0 com.google.api.grpc grpc-google-cloud-beyondcorp-appconnections-v1 - 0.44.0-SNAPSHOT + 0.44.0 com.google.api.grpc proto-google-cloud-beyondcorp-appconnections-v1 - 0.44.0-SNAPSHOT + 0.44.0 diff --git a/java-beyondcorp-appconnections/proto-google-cloud-beyondcorp-appconnections-v1/pom.xml b/java-beyondcorp-appconnections/proto-google-cloud-beyondcorp-appconnections-v1/pom.xml index 3dbf8b714903..b191902f2256 100644 --- a/java-beyondcorp-appconnections/proto-google-cloud-beyondcorp-appconnections-v1/pom.xml +++ b/java-beyondcorp-appconnections/proto-google-cloud-beyondcorp-appconnections-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-beyondcorp-appconnections-v1 - 0.44.0-SNAPSHOT + 0.44.0 proto-google-cloud-beyondcorp-appconnections-v1 Proto library for google-cloud-beyondcorp-appconnections com.google.cloud google-cloud-beyondcorp-appconnections-parent - 0.44.0-SNAPSHOT + 0.44.0 diff --git a/java-beyondcorp-appconnectors/CHANGELOG.md b/java-beyondcorp-appconnectors/CHANGELOG.md index a3f7b5c5c06a..77e352bdd27b 100644 --- a/java-beyondcorp-appconnectors/CHANGELOG.md +++ b/java-beyondcorp-appconnectors/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.44.0 (2024-06-27) + +* No change + + ## 0.43.0 (None) * No change diff --git a/java-beyondcorp-appconnectors/README.md b/java-beyondcorp-appconnectors/README.md index 12253c9c0c3f..49c37156ab02 100644 --- a/java-beyondcorp-appconnectors/README.md +++ b/java-beyondcorp-appconnectors/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-appconnectors - 0.43.0 + 0.44.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-appconnectors:0.43.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-appconnectors:0.44.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnectors" % "0.43.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnectors" % "0.44.0" ``` diff --git a/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors-bom/pom.xml b/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors-bom/pom.xml index 76b6b13982fd..e61c3b7e6b9f 100644 --- a/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors-bom/pom.xml +++ b/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-appconnectors-bom - 0.44.0-SNAPSHOT + 0.44.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-beyondcorp-appconnectors - 0.44.0-SNAPSHOT + 0.44.0 com.google.api.grpc grpc-google-cloud-beyondcorp-appconnectors-v1 - 0.44.0-SNAPSHOT + 0.44.0 com.google.api.grpc proto-google-cloud-beyondcorp-appconnectors-v1 - 0.44.0-SNAPSHOT + 0.44.0 diff --git a/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/pom.xml b/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/pom.xml index ce09244b8906..3fb6a954262d 100644 --- a/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/pom.xml +++ b/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-appconnectors - 0.44.0-SNAPSHOT + 0.44.0 jar Google BeyondCorp AppConnectors BeyondCorp AppConnectors provides methods to manage (create/read/update/delete) BeyondCorp AppConnectors. com.google.cloud google-cloud-beyondcorp-appconnectors-parent - 0.44.0-SNAPSHOT + 0.44.0 google-cloud-beyondcorp-appconnectors diff --git a/java-beyondcorp-appconnectors/grpc-google-cloud-beyondcorp-appconnectors-v1/pom.xml b/java-beyondcorp-appconnectors/grpc-google-cloud-beyondcorp-appconnectors-v1/pom.xml index 8c51e1791a38..a82370c3f6e1 100644 --- a/java-beyondcorp-appconnectors/grpc-google-cloud-beyondcorp-appconnectors-v1/pom.xml +++ b/java-beyondcorp-appconnectors/grpc-google-cloud-beyondcorp-appconnectors-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-beyondcorp-appconnectors-v1 - 0.44.0-SNAPSHOT + 0.44.0 grpc-google-cloud-beyondcorp-appconnectors-v1 GRPC library for google-cloud-beyondcorp-appconnectors com.google.cloud google-cloud-beyondcorp-appconnectors-parent - 0.44.0-SNAPSHOT + 0.44.0 diff --git a/java-beyondcorp-appconnectors/pom.xml b/java-beyondcorp-appconnectors/pom.xml index 7d2b22226590..2cffc41cac9c 100644 --- a/java-beyondcorp-appconnectors/pom.xml +++ b/java-beyondcorp-appconnectors/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-beyondcorp-appconnectors-parent pom - 0.44.0-SNAPSHOT + 0.44.0 Google BeyondCorp AppConnectors Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-beyondcorp-appconnectors - 0.44.0-SNAPSHOT + 0.44.0 com.google.api.grpc grpc-google-cloud-beyondcorp-appconnectors-v1 - 0.44.0-SNAPSHOT + 0.44.0 com.google.api.grpc proto-google-cloud-beyondcorp-appconnectors-v1 - 0.44.0-SNAPSHOT + 0.44.0 diff --git a/java-beyondcorp-appconnectors/proto-google-cloud-beyondcorp-appconnectors-v1/pom.xml b/java-beyondcorp-appconnectors/proto-google-cloud-beyondcorp-appconnectors-v1/pom.xml index 23f1c585190c..8cb8db969e47 100644 --- a/java-beyondcorp-appconnectors/proto-google-cloud-beyondcorp-appconnectors-v1/pom.xml +++ b/java-beyondcorp-appconnectors/proto-google-cloud-beyondcorp-appconnectors-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-beyondcorp-appconnectors-v1 - 0.44.0-SNAPSHOT + 0.44.0 proto-google-cloud-beyondcorp-appconnectors-v1 Proto library for google-cloud-beyondcorp-appconnectors com.google.cloud google-cloud-beyondcorp-appconnectors-parent - 0.44.0-SNAPSHOT + 0.44.0 diff --git a/java-beyondcorp-appgateways/CHANGELOG.md b/java-beyondcorp-appgateways/CHANGELOG.md index fe6950e6e694..3cc250e30f16 100644 --- a/java-beyondcorp-appgateways/CHANGELOG.md +++ b/java-beyondcorp-appgateways/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.44.0 (2024-06-27) + +* No change + + ## 0.43.0 (None) * No change diff --git a/java-beyondcorp-appgateways/README.md b/java-beyondcorp-appgateways/README.md index 3323f44094ca..45d2a041543e 100644 --- a/java-beyondcorp-appgateways/README.md +++ b/java-beyondcorp-appgateways/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-appgateways - 0.43.0 + 0.44.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-appgateways:0.43.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-appgateways:0.44.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appgateways" % "0.43.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appgateways" % "0.44.0" ``` diff --git a/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways-bom/pom.xml b/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways-bom/pom.xml index 6f38796055e4..ba9c7a810272 100644 --- a/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways-bom/pom.xml +++ b/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-appgateways-bom - 0.44.0-SNAPSHOT + 0.44.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-beyondcorp-appgateways - 0.44.0-SNAPSHOT + 0.44.0 com.google.api.grpc grpc-google-cloud-beyondcorp-appgateways-v1 - 0.44.0-SNAPSHOT + 0.44.0 com.google.api.grpc proto-google-cloud-beyondcorp-appgateways-v1 - 0.44.0-SNAPSHOT + 0.44.0 diff --git a/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/pom.xml b/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/pom.xml index f94599412b06..7549e55bfcd4 100644 --- a/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/pom.xml +++ b/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-appgateways - 0.44.0-SNAPSHOT + 0.44.0 jar Google BeyondCorp AppGateways BeyondCorp AppGateways A zero trust solution that enables secure access to applications and resources, and offers integrated threat and data protection. com.google.cloud google-cloud-beyondcorp-appgateways-parent - 0.44.0-SNAPSHOT + 0.44.0 google-cloud-beyondcorp-appgateways diff --git a/java-beyondcorp-appgateways/grpc-google-cloud-beyondcorp-appgateways-v1/pom.xml b/java-beyondcorp-appgateways/grpc-google-cloud-beyondcorp-appgateways-v1/pom.xml index c6bde86281ff..42898062dd8c 100644 --- a/java-beyondcorp-appgateways/grpc-google-cloud-beyondcorp-appgateways-v1/pom.xml +++ b/java-beyondcorp-appgateways/grpc-google-cloud-beyondcorp-appgateways-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-beyondcorp-appgateways-v1 - 0.44.0-SNAPSHOT + 0.44.0 grpc-google-cloud-beyondcorp-appgateways-v1 GRPC library for google-cloud-beyondcorp-appgateways com.google.cloud google-cloud-beyondcorp-appgateways-parent - 0.44.0-SNAPSHOT + 0.44.0 diff --git a/java-beyondcorp-appgateways/pom.xml b/java-beyondcorp-appgateways/pom.xml index fd079c6f79de..029939f71511 100644 --- a/java-beyondcorp-appgateways/pom.xml +++ b/java-beyondcorp-appgateways/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-beyondcorp-appgateways-parent pom - 0.44.0-SNAPSHOT + 0.44.0 Google BeyondCorp AppGateways Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-beyondcorp-appgateways - 0.44.0-SNAPSHOT + 0.44.0 com.google.api.grpc grpc-google-cloud-beyondcorp-appgateways-v1 - 0.44.0-SNAPSHOT + 0.44.0 com.google.api.grpc proto-google-cloud-beyondcorp-appgateways-v1 - 0.44.0-SNAPSHOT + 0.44.0 diff --git a/java-beyondcorp-appgateways/proto-google-cloud-beyondcorp-appgateways-v1/pom.xml b/java-beyondcorp-appgateways/proto-google-cloud-beyondcorp-appgateways-v1/pom.xml index 1cc06ac14e37..e2cb5fbc580e 100644 --- a/java-beyondcorp-appgateways/proto-google-cloud-beyondcorp-appgateways-v1/pom.xml +++ b/java-beyondcorp-appgateways/proto-google-cloud-beyondcorp-appgateways-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-beyondcorp-appgateways-v1 - 0.44.0-SNAPSHOT + 0.44.0 proto-google-cloud-beyondcorp-appgateways-v1 Proto library for google-cloud-beyondcorp-appgateways com.google.cloud google-cloud-beyondcorp-appgateways-parent - 0.44.0-SNAPSHOT + 0.44.0 diff --git a/java-beyondcorp-clientconnectorservices/CHANGELOG.md b/java-beyondcorp-clientconnectorservices/CHANGELOG.md index 539b15842f96..888d6efc5dab 100644 --- a/java-beyondcorp-clientconnectorservices/CHANGELOG.md +++ b/java-beyondcorp-clientconnectorservices/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.44.0 (2024-06-27) + +* No change + + ## 0.43.0 (None) * No change diff --git a/java-beyondcorp-clientconnectorservices/README.md b/java-beyondcorp-clientconnectorservices/README.md index 32765f22c342..64a691fbbbba 100644 --- a/java-beyondcorp-clientconnectorservices/README.md +++ b/java-beyondcorp-clientconnectorservices/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-clientconnectorservices - 0.43.0 + 0.44.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-clientconnectorservices:0.43.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-clientconnectorservices:0.44.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientconnectorservices" % "0.43.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientconnectorservices" % "0.44.0" ``` diff --git a/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices-bom/pom.xml b/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices-bom/pom.xml index b00bcb024a76..e6317d07a6f2 100644 --- a/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices-bom/pom.xml +++ b/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-clientconnectorservices-bom - 0.44.0-SNAPSHOT + 0.44.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-beyondcorp-clientconnectorservices - 0.44.0-SNAPSHOT + 0.44.0 com.google.api.grpc grpc-google-cloud-beyondcorp-clientconnectorservices-v1 - 0.44.0-SNAPSHOT + 0.44.0 com.google.api.grpc proto-google-cloud-beyondcorp-clientconnectorservices-v1 - 0.44.0-SNAPSHOT + 0.44.0 diff --git a/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/pom.xml b/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/pom.xml index 561557f320ec..cddd707c612f 100644 --- a/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/pom.xml +++ b/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-clientconnectorservices - 0.44.0-SNAPSHOT + 0.44.0 jar Google BeyondCorp ClientConnectorServices BeyondCorp ClientConnectorServices A zero trust solution that enables secure access to applications and resources, and offers integrated threat and data protection. com.google.cloud google-cloud-beyondcorp-clientconnectorservices-parent - 0.44.0-SNAPSHOT + 0.44.0 google-cloud-beyondcorp-clientconnectorservices diff --git a/java-beyondcorp-clientconnectorservices/grpc-google-cloud-beyondcorp-clientconnectorservices-v1/pom.xml b/java-beyondcorp-clientconnectorservices/grpc-google-cloud-beyondcorp-clientconnectorservices-v1/pom.xml index d56ff2145457..a9bd5092036e 100644 --- a/java-beyondcorp-clientconnectorservices/grpc-google-cloud-beyondcorp-clientconnectorservices-v1/pom.xml +++ b/java-beyondcorp-clientconnectorservices/grpc-google-cloud-beyondcorp-clientconnectorservices-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-beyondcorp-clientconnectorservices-v1 - 0.44.0-SNAPSHOT + 0.44.0 grpc-google-cloud-beyondcorp-clientconnectorservices-v1 GRPC library for google-cloud-beyondcorp-clientconnectorservices com.google.cloud google-cloud-beyondcorp-clientconnectorservices-parent - 0.44.0-SNAPSHOT + 0.44.0 diff --git a/java-beyondcorp-clientconnectorservices/pom.xml b/java-beyondcorp-clientconnectorservices/pom.xml index a6ed38b93a37..e89d2d78c6f6 100644 --- a/java-beyondcorp-clientconnectorservices/pom.xml +++ b/java-beyondcorp-clientconnectorservices/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-beyondcorp-clientconnectorservices-parent pom - 0.44.0-SNAPSHOT + 0.44.0 Google BeyondCorp ClientConnectorServices Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-beyondcorp-clientconnectorservices - 0.44.0-SNAPSHOT + 0.44.0 com.google.api.grpc grpc-google-cloud-beyondcorp-clientconnectorservices-v1 - 0.44.0-SNAPSHOT + 0.44.0 com.google.api.grpc proto-google-cloud-beyondcorp-clientconnectorservices-v1 - 0.44.0-SNAPSHOT + 0.44.0 diff --git a/java-beyondcorp-clientconnectorservices/proto-google-cloud-beyondcorp-clientconnectorservices-v1/pom.xml b/java-beyondcorp-clientconnectorservices/proto-google-cloud-beyondcorp-clientconnectorservices-v1/pom.xml index 3032edc552de..2f67ede6222c 100644 --- a/java-beyondcorp-clientconnectorservices/proto-google-cloud-beyondcorp-clientconnectorservices-v1/pom.xml +++ b/java-beyondcorp-clientconnectorservices/proto-google-cloud-beyondcorp-clientconnectorservices-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-beyondcorp-clientconnectorservices-v1 - 0.44.0-SNAPSHOT + 0.44.0 proto-google-cloud-beyondcorp-clientconnectorservices-v1 Proto library for google-cloud-beyondcorp-clientconnectorservices com.google.cloud google-cloud-beyondcorp-clientconnectorservices-parent - 0.44.0-SNAPSHOT + 0.44.0 diff --git a/java-beyondcorp-clientgateways/CHANGELOG.md b/java-beyondcorp-clientgateways/CHANGELOG.md index 89bd08bbfb0e..f9b25c8d07be 100644 --- a/java-beyondcorp-clientgateways/CHANGELOG.md +++ b/java-beyondcorp-clientgateways/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.44.0 (2024-06-27) + +* No change + + ## 0.43.0 (None) * No change diff --git a/java-beyondcorp-clientgateways/README.md b/java-beyondcorp-clientgateways/README.md index 9b328334049e..4a0e521a9951 100644 --- a/java-beyondcorp-clientgateways/README.md +++ b/java-beyondcorp-clientgateways/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-clientgateways - 0.43.0 + 0.44.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-clientgateways:0.43.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-clientgateways:0.44.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientgateways" % "0.43.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientgateways" % "0.44.0" ``` diff --git a/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways-bom/pom.xml b/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways-bom/pom.xml index 12bafbfe56fe..8139aca423b0 100644 --- a/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways-bom/pom.xml +++ b/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-clientgateways-bom - 0.44.0-SNAPSHOT + 0.44.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-beyondcorp-clientgateways - 0.44.0-SNAPSHOT + 0.44.0 com.google.api.grpc grpc-google-cloud-beyondcorp-clientgateways-v1 - 0.44.0-SNAPSHOT + 0.44.0 com.google.api.grpc proto-google-cloud-beyondcorp-clientgateways-v1 - 0.44.0-SNAPSHOT + 0.44.0 diff --git a/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/pom.xml b/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/pom.xml index f529561748be..4f6e4f7cbe98 100644 --- a/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/pom.xml +++ b/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-clientgateways - 0.44.0-SNAPSHOT + 0.44.0 jar Google BeyondCorp ClientGateways BeyondCorp ClientGateways A zero trust solution that enables secure access to applications and resources, and offers integrated threat and data protection. com.google.cloud google-cloud-beyondcorp-clientgateways-parent - 0.44.0-SNAPSHOT + 0.44.0 google-cloud-beyondcorp-clientgateways diff --git a/java-beyondcorp-clientgateways/grpc-google-cloud-beyondcorp-clientgateways-v1/pom.xml b/java-beyondcorp-clientgateways/grpc-google-cloud-beyondcorp-clientgateways-v1/pom.xml index c19e28acbd23..2f0dbd6c070a 100644 --- a/java-beyondcorp-clientgateways/grpc-google-cloud-beyondcorp-clientgateways-v1/pom.xml +++ b/java-beyondcorp-clientgateways/grpc-google-cloud-beyondcorp-clientgateways-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-beyondcorp-clientgateways-v1 - 0.44.0-SNAPSHOT + 0.44.0 grpc-google-cloud-beyondcorp-clientgateways-v1 GRPC library for google-cloud-beyondcorp-clientgateways com.google.cloud google-cloud-beyondcorp-clientgateways-parent - 0.44.0-SNAPSHOT + 0.44.0 diff --git a/java-beyondcorp-clientgateways/pom.xml b/java-beyondcorp-clientgateways/pom.xml index 5b7d1aeb01e6..c41313962e21 100644 --- a/java-beyondcorp-clientgateways/pom.xml +++ b/java-beyondcorp-clientgateways/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-beyondcorp-clientgateways-parent pom - 0.44.0-SNAPSHOT + 0.44.0 Google BeyondCorp ClientGateways Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-beyondcorp-clientgateways - 0.44.0-SNAPSHOT + 0.44.0 com.google.api.grpc grpc-google-cloud-beyondcorp-clientgateways-v1 - 0.44.0-SNAPSHOT + 0.44.0 com.google.api.grpc proto-google-cloud-beyondcorp-clientgateways-v1 - 0.44.0-SNAPSHOT + 0.44.0 diff --git a/java-beyondcorp-clientgateways/proto-google-cloud-beyondcorp-clientgateways-v1/pom.xml b/java-beyondcorp-clientgateways/proto-google-cloud-beyondcorp-clientgateways-v1/pom.xml index 111ea3d78526..4ee5e2bd7363 100644 --- a/java-beyondcorp-clientgateways/proto-google-cloud-beyondcorp-clientgateways-v1/pom.xml +++ b/java-beyondcorp-clientgateways/proto-google-cloud-beyondcorp-clientgateways-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-beyondcorp-clientgateways-v1 - 0.44.0-SNAPSHOT + 0.44.0 proto-google-cloud-beyondcorp-clientgateways-v1 Proto library for google-cloud-beyondcorp-clientgateways com.google.cloud google-cloud-beyondcorp-clientgateways-parent - 0.44.0-SNAPSHOT + 0.44.0 diff --git a/java-biglake/CHANGELOG.md b/java-biglake/CHANGELOG.md index 31f208f23c9e..a7cce8e09bab 100644 --- a/java-biglake/CHANGELOG.md +++ b/java-biglake/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.34.0 (2024-06-27) + +* No change + + ## 0.33.0 (None) * No change diff --git a/java-biglake/README.md b/java-biglake/README.md index d00851e7c052..199c0814dc9a 100644 --- a/java-biglake/README.md +++ b/java-biglake/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-biglake - 0.33.0 + 0.34.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-biglake:0.33.0' +implementation 'com.google.cloud:google-cloud-biglake:0.34.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-biglake" % "0.33.0" +libraryDependencies += "com.google.cloud" % "google-cloud-biglake" % "0.34.0" ``` diff --git a/java-biglake/google-cloud-biglake-bom/pom.xml b/java-biglake/google-cloud-biglake-bom/pom.xml index f6ac03196822..33afc69538ca 100644 --- a/java-biglake/google-cloud-biglake-bom/pom.xml +++ b/java-biglake/google-cloud-biglake-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-biglake-bom - 0.34.0-SNAPSHOT + 0.34.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-biglake - 0.34.0-SNAPSHOT + 0.34.0 com.google.api.grpc grpc-google-cloud-biglake-v1alpha1 - 0.34.0-SNAPSHOT + 0.34.0 com.google.api.grpc grpc-google-cloud-biglake-v1 - 0.34.0-SNAPSHOT + 0.34.0 com.google.api.grpc proto-google-cloud-biglake-v1alpha1 - 0.34.0-SNAPSHOT + 0.34.0 com.google.api.grpc proto-google-cloud-biglake-v1 - 0.34.0-SNAPSHOT + 0.34.0 diff --git a/java-biglake/google-cloud-biglake/pom.xml b/java-biglake/google-cloud-biglake/pom.xml index 1788a439970b..e48c6f04c676 100644 --- a/java-biglake/google-cloud-biglake/pom.xml +++ b/java-biglake/google-cloud-biglake/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-biglake - 0.34.0-SNAPSHOT + 0.34.0 jar Google BigLake BigLake The BigLake API provides access to BigLake Metastore, a serverless, fully managed, and highly available metastore for open-source data that can be used for querying Apache Iceberg tables in BigQuery. com.google.cloud google-cloud-biglake-parent - 0.34.0-SNAPSHOT + 0.34.0 google-cloud-biglake diff --git a/java-biglake/grpc-google-cloud-biglake-v1/pom.xml b/java-biglake/grpc-google-cloud-biglake-v1/pom.xml index 56180350b711..630211bdf757 100644 --- a/java-biglake/grpc-google-cloud-biglake-v1/pom.xml +++ b/java-biglake/grpc-google-cloud-biglake-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-biglake-v1 - 0.34.0-SNAPSHOT + 0.34.0 grpc-google-cloud-biglake-v1 GRPC library for google-cloud-biglake com.google.cloud google-cloud-biglake-parent - 0.34.0-SNAPSHOT + 0.34.0 diff --git a/java-biglake/grpc-google-cloud-biglake-v1alpha1/pom.xml b/java-biglake/grpc-google-cloud-biglake-v1alpha1/pom.xml index 2057985771ea..df85a98ac6a4 100644 --- a/java-biglake/grpc-google-cloud-biglake-v1alpha1/pom.xml +++ b/java-biglake/grpc-google-cloud-biglake-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-biglake-v1alpha1 - 0.34.0-SNAPSHOT + 0.34.0 grpc-google-cloud-biglake-v1alpha1 GRPC library for google-cloud-biglake com.google.cloud google-cloud-biglake-parent - 0.34.0-SNAPSHOT + 0.34.0 diff --git a/java-biglake/pom.xml b/java-biglake/pom.xml index b453e43e9d2e..461901c626e7 100644 --- a/java-biglake/pom.xml +++ b/java-biglake/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-biglake-parent pom - 0.34.0-SNAPSHOT + 0.34.0 Google BigLake Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-biglake - 0.34.0-SNAPSHOT + 0.34.0 com.google.api.grpc proto-google-cloud-biglake-v1 - 0.34.0-SNAPSHOT + 0.34.0 com.google.api.grpc grpc-google-cloud-biglake-v1 - 0.34.0-SNAPSHOT + 0.34.0 com.google.api.grpc grpc-google-cloud-biglake-v1alpha1 - 0.34.0-SNAPSHOT + 0.34.0 com.google.api.grpc proto-google-cloud-biglake-v1alpha1 - 0.34.0-SNAPSHOT + 0.34.0 diff --git a/java-biglake/proto-google-cloud-biglake-v1/pom.xml b/java-biglake/proto-google-cloud-biglake-v1/pom.xml index fabeebb362b9..4edacda1d968 100644 --- a/java-biglake/proto-google-cloud-biglake-v1/pom.xml +++ b/java-biglake/proto-google-cloud-biglake-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-biglake-v1 - 0.34.0-SNAPSHOT + 0.34.0 proto-google-cloud-biglake-v1 Proto library for google-cloud-biglake com.google.cloud google-cloud-biglake-parent - 0.34.0-SNAPSHOT + 0.34.0 diff --git a/java-biglake/proto-google-cloud-biglake-v1alpha1/pom.xml b/java-biglake/proto-google-cloud-biglake-v1alpha1/pom.xml index cb354ed5fc3b..40750e5dd2f8 100644 --- a/java-biglake/proto-google-cloud-biglake-v1alpha1/pom.xml +++ b/java-biglake/proto-google-cloud-biglake-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-biglake-v1alpha1 - 0.34.0-SNAPSHOT + 0.34.0 proto-google-cloud-biglake-v1alpha1 Proto library for google-cloud-biglake com.google.cloud google-cloud-biglake-parent - 0.34.0-SNAPSHOT + 0.34.0 diff --git a/java-bigquery-data-exchange/CHANGELOG.md b/java-bigquery-data-exchange/CHANGELOG.md index 66b76af2ae10..dc27c0dd308e 100644 --- a/java-bigquery-data-exchange/CHANGELOG.md +++ b/java-bigquery-data-exchange/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.41.0 (2024-06-27) + +* No change + + ## 2.40.0 (None) * No change diff --git a/java-bigquery-data-exchange/README.md b/java-bigquery-data-exchange/README.md index 601a85348153..f5c139b26482 100644 --- a/java-bigquery-data-exchange/README.md +++ b/java-bigquery-data-exchange/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquery-data-exchange - 2.40.0 + 2.41.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquery-data-exchange:2.40.0' +implementation 'com.google.cloud:google-cloud-bigquery-data-exchange:2.41.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquery-data-exchange" % "2.40.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquery-data-exchange" % "2.41.0" ``` diff --git a/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange-bom/pom.xml b/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange-bom/pom.xml index 8bcf4ca47d43..2b31647865e0 100644 --- a/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange-bom/pom.xml +++ b/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-bigquery-data-exchange-bom - 2.41.0-SNAPSHOT + 2.41.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-bigquery-data-exchange - 2.41.0-SNAPSHOT + 2.41.0 com.google.api.grpc grpc-google-cloud-bigquery-data-exchange-v1beta1 - 2.41.0-SNAPSHOT + 2.41.0 com.google.api.grpc proto-google-cloud-bigquery-data-exchange-v1beta1 - 2.41.0-SNAPSHOT + 2.41.0 diff --git a/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/pom.xml b/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/pom.xml index f2e62f759e08..fa5851ce3562 100644 --- a/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/pom.xml +++ b/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-bigquery-data-exchange - 2.41.0-SNAPSHOT + 2.41.0 jar Google Analytics Hub Analytics Hub is a data exchange that allows you to efficiently and securely exchange data assets across organizations to address challenges of data reliability and cost. com.google.cloud google-cloud-bigquery-data-exchange-parent - 2.41.0-SNAPSHOT + 2.41.0 google-cloud-bigquery-data-exchange diff --git a/java-bigquery-data-exchange/grpc-google-cloud-bigquery-data-exchange-v1beta1/pom.xml b/java-bigquery-data-exchange/grpc-google-cloud-bigquery-data-exchange-v1beta1/pom.xml index c0851b406bd6..3815ae3e572b 100644 --- a/java-bigquery-data-exchange/grpc-google-cloud-bigquery-data-exchange-v1beta1/pom.xml +++ b/java-bigquery-data-exchange/grpc-google-cloud-bigquery-data-exchange-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigquery-data-exchange-v1beta1 - 2.41.0-SNAPSHOT + 2.41.0 grpc-google-cloud-bigquery-data-exchange-v1beta1 GRPC library for google-cloud-bigquery-data-exchange com.google.cloud google-cloud-bigquery-data-exchange-parent - 2.41.0-SNAPSHOT + 2.41.0 diff --git a/java-bigquery-data-exchange/pom.xml b/java-bigquery-data-exchange/pom.xml index aac25d3faa6b..61e7ea96103b 100644 --- a/java-bigquery-data-exchange/pom.xml +++ b/java-bigquery-data-exchange/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bigquery-data-exchange-parent pom - 2.41.0-SNAPSHOT + 2.41.0 Google Analytics Hub Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-bigquery-data-exchange - 2.41.0-SNAPSHOT + 2.41.0 com.google.api.grpc grpc-google-cloud-bigquery-data-exchange-v1beta1 - 2.41.0-SNAPSHOT + 2.41.0 com.google.api.grpc proto-google-cloud-bigquery-data-exchange-v1beta1 - 2.41.0-SNAPSHOT + 2.41.0 diff --git a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/pom.xml b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/pom.xml index 2a9e73f103be..750da8866a56 100644 --- a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/pom.xml +++ b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigquery-data-exchange-v1beta1 - 2.41.0-SNAPSHOT + 2.41.0 proto-google-cloud-bigquery-data-exchange-v1beta1 Proto library for google-cloud-bigquery-data-exchange com.google.cloud google-cloud-bigquery-data-exchange-parent - 2.41.0-SNAPSHOT + 2.41.0 diff --git a/java-bigqueryconnection/CHANGELOG.md b/java-bigqueryconnection/CHANGELOG.md index 8311adcfad95..ed2e17712c11 100644 --- a/java-bigqueryconnection/CHANGELOG.md +++ b/java-bigqueryconnection/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.48.0 (2024-06-27) + +* No change + + ## 2.47.0 (None) * No change diff --git a/java-bigqueryconnection/README.md b/java-bigqueryconnection/README.md index 4bf0452a1ed0..da2e385a54b0 100644 --- a/java-bigqueryconnection/README.md +++ b/java-bigqueryconnection/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigqueryconnection - 2.47.0 + 2.48.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigqueryconnection:2.47.0' +implementation 'com.google.cloud:google-cloud-bigqueryconnection:2.48.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryconnection" % "2.47.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryconnection" % "2.48.0" ``` diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection-bom/pom.xml b/java-bigqueryconnection/google-cloud-bigqueryconnection-bom/pom.xml index 279278748212..b6b01add6e93 100644 --- a/java-bigqueryconnection/google-cloud-bigqueryconnection-bom/pom.xml +++ b/java-bigqueryconnection/google-cloud-bigqueryconnection-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-bigqueryconnection-bom - 2.48.0-SNAPSHOT + 2.48.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-bigqueryconnection - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1 - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1beta1 - 0.56.0-SNAPSHOT + 0.56.0 com.google.api.grpc proto-google-cloud-bigqueryconnection-v1 - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc proto-google-cloud-bigqueryconnection-v1beta1 - 0.56.0-SNAPSHOT + 0.56.0 diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/pom.xml b/java-bigqueryconnection/google-cloud-bigqueryconnection/pom.xml index af2922a41a65..be4b4c4b2f2c 100644 --- a/java-bigqueryconnection/google-cloud-bigqueryconnection/pom.xml +++ b/java-bigqueryconnection/google-cloud-bigqueryconnection/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-bigqueryconnection - 2.48.0-SNAPSHOT + 2.48.0 jar Google Cloud BigQuery Connections is about com.google.cloud google-cloud-bigqueryconnection-parent - 2.48.0-SNAPSHOT + 2.48.0 google-cloud-bigqueryconnection diff --git a/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1/pom.xml b/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1/pom.xml index 462bfeee471a..10a9ac0514cb 100644 --- a/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1/pom.xml +++ b/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1 - 2.48.0-SNAPSHOT + 2.48.0 grpc-google-cloud-bigqueryconnection-v1 GRPC library for grpc-google-cloud-bigqueryconnection-v1 com.google.cloud google-cloud-bigqueryconnection-parent - 2.48.0-SNAPSHOT + 2.48.0 diff --git a/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1beta1/pom.xml b/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1beta1/pom.xml index d9b7e868ef93..20b71b36deed 100644 --- a/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1beta1/pom.xml +++ b/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1beta1 - 0.56.0-SNAPSHOT + 0.56.0 grpc-google-cloud-bigqueryconnection-v1beta1 GRPC library for grpc-google-cloud-bigqueryconnection-v1beta1 com.google.cloud google-cloud-bigqueryconnection-parent - 2.48.0-SNAPSHOT + 2.48.0 diff --git a/java-bigqueryconnection/pom.xml b/java-bigqueryconnection/pom.xml index b52526960fed..b568d6edba31 100644 --- a/java-bigqueryconnection/pom.xml +++ b/java-bigqueryconnection/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bigqueryconnection-parent pom - 2.48.0-SNAPSHOT + 2.48.0 Google Cloud BigQuery Connections Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-bigqueryconnection - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc proto-google-cloud-bigqueryconnection-v1 - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1 - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc proto-google-cloud-bigqueryconnection-v1beta1 - 0.56.0-SNAPSHOT + 0.56.0 com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1beta1 - 0.56.0-SNAPSHOT + 0.56.0 diff --git a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/pom.xml b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/pom.xml index 117b42a724ab..3a3c602e5832 100644 --- a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/pom.xml +++ b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigqueryconnection-v1 - 2.48.0-SNAPSHOT + 2.48.0 proto-google-cloud-bigqueryconnection-v1 PROTO library for proto-google-cloud-bigqueryconnection-v1 com.google.cloud google-cloud-bigqueryconnection-parent - 2.48.0-SNAPSHOT + 2.48.0 diff --git a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1beta1/pom.xml b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1beta1/pom.xml index c1e3f67224f9..605094e8b929 100644 --- a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1beta1/pom.xml +++ b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigqueryconnection-v1beta1 - 0.56.0-SNAPSHOT + 0.56.0 proto-google-cloud-bigqueryconnection-v1beta1 PROTO library for proto-google-cloud-bigqueryconnection-v1beta1 com.google.cloud google-cloud-bigqueryconnection-parent - 2.48.0-SNAPSHOT + 2.48.0 diff --git a/java-bigquerydatapolicy/CHANGELOG.md b/java-bigquerydatapolicy/CHANGELOG.md index 72d8018a7a40..635fecc49024 100644 --- a/java-bigquerydatapolicy/CHANGELOG.md +++ b/java-bigquerydatapolicy/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.43.0 (2024-06-27) + +* No change + + ## 0.42.0 (None) * No change diff --git a/java-bigquerydatapolicy/README.md b/java-bigquerydatapolicy/README.md index cb01370d5dc7..46add67c22d3 100644 --- a/java-bigquerydatapolicy/README.md +++ b/java-bigquerydatapolicy/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquerydatapolicy - 0.42.0 + 0.43.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerydatapolicy:0.42.0' +implementation 'com.google.cloud:google-cloud-bigquerydatapolicy:0.43.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatapolicy" % "0.42.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatapolicy" % "0.43.0" ``` diff --git a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy-bom/pom.xml b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy-bom/pom.xml index cf5c0737468e..eac5b1020929 100644 --- a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy-bom/pom.xml +++ b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-bigquerydatapolicy-bom - 0.43.0-SNAPSHOT + 0.43.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-bigquerydatapolicy - 0.43.0-SNAPSHOT + 0.43.0 com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v1beta1 - 0.43.0-SNAPSHOT + 0.43.0 com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v1 - 0.43.0-SNAPSHOT + 0.43.0 com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v1beta1 - 0.43.0-SNAPSHOT + 0.43.0 com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v1 - 0.43.0-SNAPSHOT + 0.43.0 diff --git a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/pom.xml b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/pom.xml index 2d0dbb1d16d4..77a799391e64 100644 --- a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/pom.xml +++ b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-bigquerydatapolicy - 0.43.0-SNAPSHOT + 0.43.0 jar Google BigQuery DataPolicy API BigQuery DataPolicy API com.google.cloud google-cloud-bigquerydatapolicy-parent - 0.43.0-SNAPSHOT + 0.43.0 google-cloud-bigquerydatapolicy diff --git a/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1/pom.xml b/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1/pom.xml index 97a071a6df6e..b89a0991fe5a 100644 --- a/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1/pom.xml +++ b/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v1 - 0.43.0-SNAPSHOT + 0.43.0 grpc-google-cloud-bigquerydatapolicy-v1 GRPC library for google-cloud-bigquerydatapolicy com.google.cloud google-cloud-bigquerydatapolicy-parent - 0.43.0-SNAPSHOT + 0.43.0 diff --git a/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1beta1/pom.xml b/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1beta1/pom.xml index f9da69c30727..90034cf83175 100644 --- a/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1beta1/pom.xml +++ b/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v1beta1 - 0.43.0-SNAPSHOT + 0.43.0 grpc-google-cloud-bigquerydatapolicy-v1beta1 GRPC library for google-cloud-bigquerydatapolicy com.google.cloud google-cloud-bigquerydatapolicy-parent - 0.43.0-SNAPSHOT + 0.43.0 diff --git a/java-bigquerydatapolicy/pom.xml b/java-bigquerydatapolicy/pom.xml index 5cff31a91c34..f760918e3e90 100644 --- a/java-bigquerydatapolicy/pom.xml +++ b/java-bigquerydatapolicy/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bigquerydatapolicy-parent pom - 0.43.0-SNAPSHOT + 0.43.0 Google BigQuery DataPolicy API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-bigquerydatapolicy - 0.43.0-SNAPSHOT + 0.43.0 com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v1 - 0.43.0-SNAPSHOT + 0.43.0 com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v1 - 0.43.0-SNAPSHOT + 0.43.0 com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v1beta1 - 0.43.0-SNAPSHOT + 0.43.0 com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v1beta1 - 0.43.0-SNAPSHOT + 0.43.0 diff --git a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1/pom.xml b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1/pom.xml index 2e9d02eadfc9..8630d9c51e5f 100644 --- a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1/pom.xml +++ b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v1 - 0.43.0-SNAPSHOT + 0.43.0 proto-google-cloud-bigquerydatapolicy-v1 Proto library for google-cloud-bigquerydatapolicy com.google.cloud google-cloud-bigquerydatapolicy-parent - 0.43.0-SNAPSHOT + 0.43.0 diff --git a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1beta1/pom.xml b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1beta1/pom.xml index b8d4e7bc46be..249e8f24bad8 100644 --- a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1beta1/pom.xml +++ b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v1beta1 - 0.43.0-SNAPSHOT + 0.43.0 proto-google-cloud-bigquerydatapolicy-v1beta1 Proto library for google-cloud-bigquerydatapolicy com.google.cloud google-cloud-bigquerydatapolicy-parent - 0.43.0-SNAPSHOT + 0.43.0 diff --git a/java-bigquerydatatransfer/CHANGELOG.md b/java-bigquerydatatransfer/CHANGELOG.md index ac597b3766f6..11b0ed8a388b 100644 --- a/java-bigquerydatatransfer/CHANGELOG.md +++ b/java-bigquerydatatransfer/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.46.0 (2024-06-27) + +* No change + + ## 2.45.0 (None) * No change diff --git a/java-bigquerydatatransfer/README.md b/java-bigquerydatatransfer/README.md index 309d48e4a66a..2b0d8e4d3b57 100644 --- a/java-bigquerydatatransfer/README.md +++ b/java-bigquerydatatransfer/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquerydatatransfer - 2.45.0 + 2.46.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerydatatransfer:2.45.0' +implementation 'com.google.cloud:google-cloud-bigquerydatatransfer:2.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatatransfer" % "2.45.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatatransfer" % "2.46.0" ``` diff --git a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer-bom/pom.xml b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer-bom/pom.xml index f7682c059db5..7512a0d7b695 100644 --- a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer-bom/pom.xml +++ b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-bigquerydatatransfer-bom - 2.46.0-SNAPSHOT + 2.46.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-bigquerydatatransfer - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc grpc-google-cloud-bigquerydatatransfer-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc proto-google-cloud-bigquerydatatransfer-v1 - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/pom.xml b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/pom.xml index ce043935551c..899551520a89 100644 --- a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/pom.xml +++ b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-bigquerydatatransfer - 2.46.0-SNAPSHOT + 2.46.0 jar BigQuery DataTransfer BigQuery DataTransfer com.google.cloud google-cloud-bigquerydatatransfer-parent - 2.46.0-SNAPSHOT + 2.46.0 google-cloud-bigquerydatatransfer diff --git a/java-bigquerydatatransfer/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml b/java-bigquerydatatransfer/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml index 2acbdeb45dba..e698cc47df63 100644 --- a/java-bigquerydatatransfer/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml +++ b/java-bigquerydatatransfer/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigquerydatatransfer-v1 - 2.46.0-SNAPSHOT + 2.46.0 grpc-google-cloud-bigquerydatatransfer-v1 GRPC library for grpc-google-cloud-bigquerydatatransfer-v1 com.google.cloud google-cloud-bigquerydatatransfer-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-bigquerydatatransfer/pom.xml b/java-bigquerydatatransfer/pom.xml index 7496b3443675..b3b660d5d139 100644 --- a/java-bigquerydatatransfer/pom.xml +++ b/java-bigquerydatatransfer/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bigquerydatatransfer-parent pom - 2.46.0-SNAPSHOT + 2.46.0 BigQuery DataTransfer Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.api.grpc proto-google-cloud-bigquerydatatransfer-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc grpc-google-cloud-bigquerydatatransfer-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.cloud google-cloud-bigquerydatatransfer - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/pom.xml b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/pom.xml index fdfdb8a11a8b..c08af6de97d5 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/pom.xml +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigquerydatatransfer-v1 - 2.46.0-SNAPSHOT + 2.46.0 proto-google-cloud-bigquerydatatransfer-v1 PROTO library for proto-google-cloud-bigquerydatatransfer-v1 com.google.cloud google-cloud-bigquerydatatransfer-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-bigquerymigration/CHANGELOG.md b/java-bigquerymigration/CHANGELOG.md index faeda9728d2b..a390d0420dac 100644 --- a/java-bigquerymigration/CHANGELOG.md +++ b/java-bigquerymigration/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.49.0 (2024-06-27) + +* No change + + ## 0.48.0 (None) * No change diff --git a/java-bigquerymigration/README.md b/java-bigquerymigration/README.md index ceab1b30f2f3..1ca419ef6e87 100644 --- a/java-bigquerymigration/README.md +++ b/java-bigquerymigration/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquerymigration - 0.48.0 + 0.49.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerymigration:0.48.0' +implementation 'com.google.cloud:google-cloud-bigquerymigration:0.49.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerymigration" % "0.48.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerymigration" % "0.49.0" ``` diff --git a/java-bigquerymigration/google-cloud-bigquerymigration-bom/pom.xml b/java-bigquerymigration/google-cloud-bigquerymigration-bom/pom.xml index 01869c3a91cb..cff5f3530ced 100644 --- a/java-bigquerymigration/google-cloud-bigquerymigration-bom/pom.xml +++ b/java-bigquerymigration/google-cloud-bigquerymigration-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-bigquerymigration-bom - 0.49.0-SNAPSHOT + 0.49.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-bigquerymigration - 0.49.0-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-bigquerymigration-v2alpha - 0.49.0-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-bigquerymigration-v2 - 0.49.0-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-bigquerymigration-v2alpha - 0.49.0-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-bigquerymigration-v2 - 0.49.0-SNAPSHOT + 0.49.0 diff --git a/java-bigquerymigration/google-cloud-bigquerymigration/pom.xml b/java-bigquerymigration/google-cloud-bigquerymigration/pom.xml index e9e8cf9640c2..5527bc706c46 100644 --- a/java-bigquerymigration/google-cloud-bigquerymigration/pom.xml +++ b/java-bigquerymigration/google-cloud-bigquerymigration/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-bigquerymigration - 0.49.0-SNAPSHOT + 0.49.0 jar Google BigQuery Migration BigQuery Migration BigQuery Migration API com.google.cloud google-cloud-bigquerymigration-parent - 0.49.0-SNAPSHOT + 0.49.0 google-cloud-bigquerymigration diff --git a/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2/pom.xml b/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2/pom.xml index a1e586034071..d7d8023fc43d 100644 --- a/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2/pom.xml +++ b/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigquerymigration-v2 - 0.49.0-SNAPSHOT + 0.49.0 grpc-google-cloud-bigquerymigration-v2 GRPC library for google-cloud-bigquerymigration com.google.cloud google-cloud-bigquerymigration-parent - 0.49.0-SNAPSHOT + 0.49.0 diff --git a/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2alpha/pom.xml b/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2alpha/pom.xml index 86ad5de823ff..167d50fde7fc 100644 --- a/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2alpha/pom.xml +++ b/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigquerymigration-v2alpha - 0.49.0-SNAPSHOT + 0.49.0 grpc-google-cloud-bigquerymigration-v2alpha GRPC library for google-cloud-bigquerymigration com.google.cloud google-cloud-bigquerymigration-parent - 0.49.0-SNAPSHOT + 0.49.0 diff --git a/java-bigquerymigration/pom.xml b/java-bigquerymigration/pom.xml index 4fdd566f5ef6..b33d22608c96 100644 --- a/java-bigquerymigration/pom.xml +++ b/java-bigquerymigration/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bigquerymigration-parent pom - 0.49.0-SNAPSHOT + 0.49.0 Google BigQuery Migration Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-bigquerymigration - 0.49.0-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-bigquerymigration-v2 - 0.49.0-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-bigquerymigration-v2 - 0.49.0-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-bigquerymigration-v2alpha - 0.49.0-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-bigquerymigration-v2alpha - 0.49.0-SNAPSHOT + 0.49.0 diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/pom.xml b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/pom.xml index 827b13a61d67..4edea19c8654 100644 --- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/pom.xml +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigquerymigration-v2 - 0.49.0-SNAPSHOT + 0.49.0 proto-google-cloud-bigquerymigration-v2 Proto library for google-cloud-bigquerymigration com.google.cloud google-cloud-bigquerymigration-parent - 0.49.0-SNAPSHOT + 0.49.0 diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2alpha/pom.xml b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2alpha/pom.xml index 4f3b21f50110..a0f93d05b77c 100644 --- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2alpha/pom.xml +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigquerymigration-v2alpha - 0.49.0-SNAPSHOT + 0.49.0 proto-google-cloud-bigquerymigration-v2alpha Proto library for google-cloud-bigquerymigration com.google.cloud google-cloud-bigquerymigration-parent - 0.49.0-SNAPSHOT + 0.49.0 diff --git a/java-bigqueryreservation/CHANGELOG.md b/java-bigqueryreservation/CHANGELOG.md index c01c329a7cb6..02730f783772 100644 --- a/java-bigqueryreservation/CHANGELOG.md +++ b/java-bigqueryreservation/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.47.0 (2024-06-27) + +* No change + + ## 2.46.0 (None) * No change diff --git a/java-bigqueryreservation/README.md b/java-bigqueryreservation/README.md index 7193b22a73ca..8d2d52d7e305 100644 --- a/java-bigqueryreservation/README.md +++ b/java-bigqueryreservation/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigqueryreservation - 2.46.0 + 2.47.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigqueryreservation:2.46.0' +implementation 'com.google.cloud:google-cloud-bigqueryreservation:2.47.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryreservation" % "2.46.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryreservation" % "2.47.0" ``` diff --git a/java-bigqueryreservation/google-cloud-bigqueryreservation-bom/pom.xml b/java-bigqueryreservation/google-cloud-bigqueryreservation-bom/pom.xml index 6bde53f89ecf..1606b453f25f 100644 --- a/java-bigqueryreservation/google-cloud-bigqueryreservation-bom/pom.xml +++ b/java-bigqueryreservation/google-cloud-bigqueryreservation-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-bigqueryreservation-bom - 2.47.0-SNAPSHOT + 2.47.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-bigqueryreservation - 2.47.0-SNAPSHOT + 2.47.0 com.google.api.grpc grpc-google-cloud-bigqueryreservation-v1 - 2.47.0-SNAPSHOT + 2.47.0 com.google.api.grpc proto-google-cloud-bigqueryreservation-v1 - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-bigqueryreservation/google-cloud-bigqueryreservation/pom.xml b/java-bigqueryreservation/google-cloud-bigqueryreservation/pom.xml index 278cf8d91c20..7f8c0058bcb9 100644 --- a/java-bigqueryreservation/google-cloud-bigqueryreservation/pom.xml +++ b/java-bigqueryreservation/google-cloud-bigqueryreservation/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-bigqueryreservation - 2.47.0-SNAPSHOT + 2.47.0 jar Google Cloud BigQuery Reservations allows users to manage their flat-rate BigQuery reservations. com.google.cloud google-cloud-bigqueryreservation-parent - 2.47.0-SNAPSHOT + 2.47.0 google-cloud-bigqueryreservation diff --git a/java-bigqueryreservation/grpc-google-cloud-bigqueryreservation-v1/pom.xml b/java-bigqueryreservation/grpc-google-cloud-bigqueryreservation-v1/pom.xml index 10c0b9259c03..45c3e9a6a4bf 100644 --- a/java-bigqueryreservation/grpc-google-cloud-bigqueryreservation-v1/pom.xml +++ b/java-bigqueryreservation/grpc-google-cloud-bigqueryreservation-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigqueryreservation-v1 - 2.47.0-SNAPSHOT + 2.47.0 grpc-google-cloud-bigqueryreservation-v1 GRPC library for grpc-google-cloud-bigqueryreservation-v1 com.google.cloud google-cloud-bigqueryreservation-parent - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-bigqueryreservation/pom.xml b/java-bigqueryreservation/pom.xml index de972263594e..d134f628cf24 100644 --- a/java-bigqueryreservation/pom.xml +++ b/java-bigqueryreservation/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bigqueryreservation-parent pom - 2.47.0-SNAPSHOT + 2.47.0 Google Cloud BigQuery Reservations Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-bigqueryreservation - 2.47.0-SNAPSHOT + 2.47.0 com.google.api.grpc proto-google-cloud-bigqueryreservation-v1 - 2.47.0-SNAPSHOT + 2.47.0 com.google.api.grpc grpc-google-cloud-bigqueryreservation-v1 - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/pom.xml b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/pom.xml index 8ad377b8c762..fdde78937e3f 100644 --- a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/pom.xml +++ b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigqueryreservation-v1 - 2.47.0-SNAPSHOT + 2.47.0 proto-google-cloud-bigqueryreservation-v1 PROTO library for proto-google-cloud-bigqueryreservation-v1 com.google.cloud google-cloud-bigqueryreservation-parent - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-billing/CHANGELOG.md b/java-billing/CHANGELOG.md index 28feda297f57..40791b599d68 100644 --- a/java-billing/CHANGELOG.md +++ b/java-billing/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.46.0 (2024-06-27) + +* No change + + ## 2.45.0 (None) * No change diff --git a/java-billing/README.md b/java-billing/README.md index 3327a37a6227..61141e3489de 100644 --- a/java-billing/README.md +++ b/java-billing/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-billing - 2.45.0 + 2.46.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-billing:2.45.0' +implementation 'com.google.cloud:google-cloud-billing:2.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-billing" % "2.45.0" +libraryDependencies += "com.google.cloud" % "google-cloud-billing" % "2.46.0" ``` diff --git a/java-billing/google-cloud-billing-bom/pom.xml b/java-billing/google-cloud-billing-bom/pom.xml index 64256477ad0d..2c1efe9bdafa 100644 --- a/java-billing/google-cloud-billing-bom/pom.xml +++ b/java-billing/google-cloud-billing-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-billing-bom - 2.46.0-SNAPSHOT + 2.46.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-billing - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc grpc-google-cloud-billing-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc proto-google-cloud-billing-v1 - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-billing/google-cloud-billing/pom.xml b/java-billing/google-cloud-billing/pom.xml index 1c9c523046fc..b6df04ec4ade 100644 --- a/java-billing/google-cloud-billing/pom.xml +++ b/java-billing/google-cloud-billing/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-billing - 2.46.0-SNAPSHOT + 2.46.0 jar Google Cloud Billing Java idiomatic client for Google Cloud Billing com.google.cloud google-cloud-billing-parent - 2.46.0-SNAPSHOT + 2.46.0 google-cloud-billing diff --git a/java-billing/grpc-google-cloud-billing-v1/pom.xml b/java-billing/grpc-google-cloud-billing-v1/pom.xml index 1e8e6579f161..2534f463c872 100644 --- a/java-billing/grpc-google-cloud-billing-v1/pom.xml +++ b/java-billing/grpc-google-cloud-billing-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-billing-v1 - 2.46.0-SNAPSHOT + 2.46.0 grpc-google-cloud-billing-v1 GRPC library for grpc-google-cloud-billing-v1 com.google.cloud google-cloud-billing-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-billing/pom.xml b/java-billing/pom.xml index a1871b845aa7..d499b0daa88e 100644 --- a/java-billing/pom.xml +++ b/java-billing/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-billing-parent pom - 2.46.0-SNAPSHOT + 2.46.0 Google Cloud Billing Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.api.grpc proto-google-cloud-billing-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc grpc-google-cloud-billing-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.cloud google-cloud-billing - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-billing/proto-google-cloud-billing-v1/pom.xml b/java-billing/proto-google-cloud-billing-v1/pom.xml index d84b4dc638d5..27a3c7df629a 100644 --- a/java-billing/proto-google-cloud-billing-v1/pom.xml +++ b/java-billing/proto-google-cloud-billing-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-billing-v1 - 2.46.0-SNAPSHOT + 2.46.0 proto-google-cloud-billing-v1beta1 PROTO library for proto-google-cloud-billing-v1 com.google.cloud google-cloud-billing-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-billingbudgets/CHANGELOG.md b/java-billingbudgets/CHANGELOG.md index 9f5baae1e046..f2d602fd38d3 100644 --- a/java-billingbudgets/CHANGELOG.md +++ b/java-billingbudgets/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.46.0 (2024-06-27) + +* No change + + ## 2.45.0 (None) * No change diff --git a/java-billingbudgets/README.md b/java-billingbudgets/README.md index 108ceab16556..d021b51481c4 100644 --- a/java-billingbudgets/README.md +++ b/java-billingbudgets/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-billingbudgets - 2.45.0 + 2.46.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-billingbudgets:2.45.0' +implementation 'com.google.cloud:google-cloud-billingbudgets:2.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-billingbudgets" % "2.45.0" +libraryDependencies += "com.google.cloud" % "google-cloud-billingbudgets" % "2.46.0" ``` diff --git a/java-billingbudgets/google-cloud-billingbudgets-bom/pom.xml b/java-billingbudgets/google-cloud-billingbudgets-bom/pom.xml index a391ab1b2cd9..afe7b8bb0fce 100644 --- a/java-billingbudgets/google-cloud-billingbudgets-bom/pom.xml +++ b/java-billingbudgets/google-cloud-billingbudgets-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-billingbudgets-bom - 2.46.0-SNAPSHOT + 2.46.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-billingbudgets - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc grpc-google-cloud-billingbudgets-v1beta1 - 0.55.0-SNAPSHOT + 0.55.0 com.google.api.grpc grpc-google-cloud-billingbudgets-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc proto-google-cloud-billingbudgets-v1beta1 - 0.55.0-SNAPSHOT + 0.55.0 com.google.api.grpc proto-google-cloud-billingbudgets-v1 - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-billingbudgets/google-cloud-billingbudgets/pom.xml b/java-billingbudgets/google-cloud-billingbudgets/pom.xml index dae77a81742d..9d3e89d6dc42 100644 --- a/java-billingbudgets/google-cloud-billingbudgets/pom.xml +++ b/java-billingbudgets/google-cloud-billingbudgets/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-billingbudgets - 2.46.0-SNAPSHOT + 2.46.0 jar Google Cloud billingbudgets Java idiomatic client for Google Cloud billingbudgets com.google.cloud google-cloud-billingbudgets-parent - 2.46.0-SNAPSHOT + 2.46.0 google-cloud-billingbudgets diff --git a/java-billingbudgets/grpc-google-cloud-billingbudgets-v1/pom.xml b/java-billingbudgets/grpc-google-cloud-billingbudgets-v1/pom.xml index 0a5b6a36567d..189dcddad6d5 100644 --- a/java-billingbudgets/grpc-google-cloud-billingbudgets-v1/pom.xml +++ b/java-billingbudgets/grpc-google-cloud-billingbudgets-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-billingbudgets-v1 - 2.46.0-SNAPSHOT + 2.46.0 grpc-google-cloud-billingbudgets-v1 GRPC library for grpc-google-cloud-billingbudgets-v1 com.google.cloud google-cloud-billingbudgets-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-billingbudgets/grpc-google-cloud-billingbudgets-v1beta1/pom.xml b/java-billingbudgets/grpc-google-cloud-billingbudgets-v1beta1/pom.xml index e81a5b9028f7..051e00f31a3b 100644 --- a/java-billingbudgets/grpc-google-cloud-billingbudgets-v1beta1/pom.xml +++ b/java-billingbudgets/grpc-google-cloud-billingbudgets-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-billingbudgets-v1beta1 - 0.55.0-SNAPSHOT + 0.55.0 grpc-google-cloud-billingbudgets-v1beta1 GRPC library for grpc-google-cloud-billingbudgets-v1beta1 com.google.cloud google-cloud-billingbudgets-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-billingbudgets/pom.xml b/java-billingbudgets/pom.xml index 59acfaabb678..73f5edd644f7 100644 --- a/java-billingbudgets/pom.xml +++ b/java-billingbudgets/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-billingbudgets-parent pom - 2.46.0-SNAPSHOT + 2.46.0 Google Cloud Billing Budgets Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-billingbudgets-v1beta1 - 0.55.0-SNAPSHOT + 0.55.0 com.google.api.grpc proto-google-cloud-billingbudgets-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc grpc-google-cloud-billingbudgets-v1beta1 - 0.55.0-SNAPSHOT + 0.55.0 com.google.api.grpc grpc-google-cloud-billingbudgets-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.cloud google-cloud-billingbudgets - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/pom.xml b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/pom.xml index eeea1d32473b..fc7daa0b1068 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/pom.xml +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-billingbudgets-v1 - 2.46.0-SNAPSHOT + 2.46.0 proto-google-cloud-billingbudgets-v1 PROTO library for proto-google-cloud-billingbudgets-v1 com.google.cloud google-cloud-billingbudgets-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/pom.xml b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/pom.xml index 102ec7d23069..479f93b41ae4 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/pom.xml +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-billingbudgets-v1beta1 - 0.55.0-SNAPSHOT + 0.55.0 proto-google-cloud-billingbudgets-v1beta1 PROTO library for proto-google-cloud-billingbudgets-v1beta1 com.google.cloud google-cloud-billingbudgets-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-binary-authorization/CHANGELOG.md b/java-binary-authorization/CHANGELOG.md index 709d4ca08f7d..d8d13b2f7574 100644 --- a/java-binary-authorization/CHANGELOG.md +++ b/java-binary-authorization/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 1.45.0 (2024-06-27) + +* No change + + ## 1.44.0 (None) * No change diff --git a/java-binary-authorization/README.md b/java-binary-authorization/README.md index 6ade83ffb0ee..a44ab8569bc8 100644 --- a/java-binary-authorization/README.md +++ b/java-binary-authorization/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-binary-authorization - 1.44.0 + 1.45.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-binary-authorization:1.44.0' +implementation 'com.google.cloud:google-cloud-binary-authorization:1.45.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-binary-authorization" % "1.44.0" +libraryDependencies += "com.google.cloud" % "google-cloud-binary-authorization" % "1.45.0" ``` diff --git a/java-binary-authorization/google-cloud-binary-authorization-bom/pom.xml b/java-binary-authorization/google-cloud-binary-authorization-bom/pom.xml index 2cce438fabc1..9cb28d361dcd 100644 --- a/java-binary-authorization/google-cloud-binary-authorization-bom/pom.xml +++ b/java-binary-authorization/google-cloud-binary-authorization-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-binary-authorization-bom - 1.45.0-SNAPSHOT + 1.45.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-binary-authorization - 1.45.0-SNAPSHOT + 1.45.0 com.google.api.grpc grpc-google-cloud-binary-authorization-v1beta1 - 0.50.0-SNAPSHOT + 0.50.0 com.google.api.grpc grpc-google-cloud-binary-authorization-v1 - 1.45.0-SNAPSHOT + 1.45.0 com.google.api.grpc proto-google-cloud-binary-authorization-v1beta1 - 0.50.0-SNAPSHOT + 0.50.0 com.google.api.grpc proto-google-cloud-binary-authorization-v1 - 1.45.0-SNAPSHOT + 1.45.0 diff --git a/java-binary-authorization/google-cloud-binary-authorization/pom.xml b/java-binary-authorization/google-cloud-binary-authorization/pom.xml index 3d5ee4d5963a..069b4cff5c7e 100644 --- a/java-binary-authorization/google-cloud-binary-authorization/pom.xml +++ b/java-binary-authorization/google-cloud-binary-authorization/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-binary-authorization - 1.45.0-SNAPSHOT + 1.45.0 jar Google Binary Authorization Binary Authorization is a service on Google Cloud that provides centralized software supply-chain security for applications that run on Google Kubernetes Engine (GKE) and Anthos clusters on VMware com.google.cloud google-cloud-binary-authorization-parent - 1.45.0-SNAPSHOT + 1.45.0 google-cloud-binary-authorization diff --git a/java-binary-authorization/grpc-google-cloud-binary-authorization-v1/pom.xml b/java-binary-authorization/grpc-google-cloud-binary-authorization-v1/pom.xml index f74236d3197b..7292aabf6e8b 100644 --- a/java-binary-authorization/grpc-google-cloud-binary-authorization-v1/pom.xml +++ b/java-binary-authorization/grpc-google-cloud-binary-authorization-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-binary-authorization-v1 - 1.45.0-SNAPSHOT + 1.45.0 grpc-google-cloud-binary-authorization-v1 GRPC library for google-cloud-binary-authorization com.google.cloud google-cloud-binary-authorization-parent - 1.45.0-SNAPSHOT + 1.45.0 diff --git a/java-binary-authorization/grpc-google-cloud-binary-authorization-v1beta1/pom.xml b/java-binary-authorization/grpc-google-cloud-binary-authorization-v1beta1/pom.xml index c38050b5afef..583e77cb08e6 100644 --- a/java-binary-authorization/grpc-google-cloud-binary-authorization-v1beta1/pom.xml +++ b/java-binary-authorization/grpc-google-cloud-binary-authorization-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-binary-authorization-v1beta1 - 0.50.0-SNAPSHOT + 0.50.0 grpc-google-cloud-binary-authorization-v1beta1 GRPC library for google-cloud-binary-authorization com.google.cloud google-cloud-binary-authorization-parent - 1.45.0-SNAPSHOT + 1.45.0 diff --git a/java-binary-authorization/pom.xml b/java-binary-authorization/pom.xml index 2171e2ab5d2b..563941f8cab6 100644 --- a/java-binary-authorization/pom.xml +++ b/java-binary-authorization/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-binary-authorization-parent pom - 1.45.0-SNAPSHOT + 1.45.0 Google Binary Authorization Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,33 +29,33 @@ com.google.cloud google-cloud-binary-authorization - 1.45.0-SNAPSHOT + 1.45.0 com.google.api.grpc proto-google-cloud-binary-authorization-v1 - 1.45.0-SNAPSHOT + 1.45.0 com.google.api.grpc grpc-google-cloud-binary-authorization-v1 - 1.45.0-SNAPSHOT + 1.45.0 com.google.api.grpc grpc-google-cloud-binary-authorization-v1beta1 - 0.50.0-SNAPSHOT + 0.50.0 com.google.api.grpc proto-google-cloud-binary-authorization-v1beta1 - 0.50.0-SNAPSHOT + 0.50.0 io.grafeas grafeas - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-binary-authorization/proto-google-cloud-binary-authorization-v1/pom.xml b/java-binary-authorization/proto-google-cloud-binary-authorization-v1/pom.xml index 102f529c7cc8..c93c0f6fe270 100644 --- a/java-binary-authorization/proto-google-cloud-binary-authorization-v1/pom.xml +++ b/java-binary-authorization/proto-google-cloud-binary-authorization-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-binary-authorization-v1 - 1.45.0-SNAPSHOT + 1.45.0 proto-google-cloud-binary-authorization-v1 Proto library for google-cloud-binary-authorization com.google.cloud google-cloud-binary-authorization-parent - 1.45.0-SNAPSHOT + 1.45.0 diff --git a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/pom.xml b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/pom.xml index a50d9add63eb..4f14551ca908 100644 --- a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/pom.xml +++ b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-binary-authorization-v1beta1 - 0.50.0-SNAPSHOT + 0.50.0 proto-google-cloud-binary-authorization-v1beta1 Proto library for google-cloud-binary-authorization com.google.cloud google-cloud-binary-authorization-parent - 1.45.0-SNAPSHOT + 1.45.0 diff --git a/java-certificate-manager/CHANGELOG.md b/java-certificate-manager/CHANGELOG.md index 6f839a971bb6..904acbffb700 100644 --- a/java-certificate-manager/CHANGELOG.md +++ b/java-certificate-manager/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.49.0 (2024-06-27) + +* No change + + ## 0.48.0 (None) * No change diff --git a/java-certificate-manager/README.md b/java-certificate-manager/README.md index d6b52e365fc9..2bcb5f100ce5 100644 --- a/java-certificate-manager/README.md +++ b/java-certificate-manager/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-certificate-manager - 0.48.0 + 0.49.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-certificate-manager:0.48.0' +implementation 'com.google.cloud:google-cloud-certificate-manager:0.49.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-certificate-manager" % "0.48.0" +libraryDependencies += "com.google.cloud" % "google-cloud-certificate-manager" % "0.49.0" ``` diff --git a/java-certificate-manager/google-cloud-certificate-manager-bom/pom.xml b/java-certificate-manager/google-cloud-certificate-manager-bom/pom.xml index 1e3931fa877a..201022fc24cc 100644 --- a/java-certificate-manager/google-cloud-certificate-manager-bom/pom.xml +++ b/java-certificate-manager/google-cloud-certificate-manager-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-certificate-manager-bom - 0.49.0-SNAPSHOT + 0.49.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-certificate-manager - 0.49.0-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-certificate-manager-v1 - 0.49.0-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-certificate-manager-v1 - 0.49.0-SNAPSHOT + 0.49.0 diff --git a/java-certificate-manager/google-cloud-certificate-manager/pom.xml b/java-certificate-manager/google-cloud-certificate-manager/pom.xml index fdfe5ab381de..65f7ac7057ed 100644 --- a/java-certificate-manager/google-cloud-certificate-manager/pom.xml +++ b/java-certificate-manager/google-cloud-certificate-manager/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-certificate-manager - 0.49.0-SNAPSHOT + 0.49.0 jar Google Certificate Manager Certificate Manager lets you acquire and manage TLS (SSL) certificates for use with Cloud Load Balancing. com.google.cloud google-cloud-certificate-manager-parent - 0.49.0-SNAPSHOT + 0.49.0 google-cloud-certificate-manager diff --git a/java-certificate-manager/grpc-google-cloud-certificate-manager-v1/pom.xml b/java-certificate-manager/grpc-google-cloud-certificate-manager-v1/pom.xml index 590524d11afe..7be71b87e2ec 100644 --- a/java-certificate-manager/grpc-google-cloud-certificate-manager-v1/pom.xml +++ b/java-certificate-manager/grpc-google-cloud-certificate-manager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-certificate-manager-v1 - 0.49.0-SNAPSHOT + 0.49.0 grpc-google-cloud-certificate-manager-v1 GRPC library for google-cloud-certificate-manager com.google.cloud google-cloud-certificate-manager-parent - 0.49.0-SNAPSHOT + 0.49.0 diff --git a/java-certificate-manager/pom.xml b/java-certificate-manager/pom.xml index 3ba6cc145faa..c6e4f1d4c63d 100644 --- a/java-certificate-manager/pom.xml +++ b/java-certificate-manager/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-certificate-manager-parent pom - 0.49.0-SNAPSHOT + 0.49.0 Google Certificate Manager Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-certificate-manager - 0.49.0-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-certificate-manager-v1 - 0.49.0-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-certificate-manager-v1 - 0.49.0-SNAPSHOT + 0.49.0 diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/pom.xml b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/pom.xml index 0cbb606af9fd..bb745f4050c4 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/pom.xml +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-certificate-manager-v1 - 0.49.0-SNAPSHOT + 0.49.0 proto-google-cloud-certificate-manager-v1 Proto library for google-cloud-certificate-manager com.google.cloud google-cloud-certificate-manager-parent - 0.49.0-SNAPSHOT + 0.49.0 diff --git a/java-channel/CHANGELOG.md b/java-channel/CHANGELOG.md index 9dfe60b40cf9..979128d2f518 100644 --- a/java-channel/CHANGELOG.md +++ b/java-channel/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 3.50.0 (2024-06-27) + +* No change + + ## 3.49.0 (None) * No change diff --git a/java-channel/README.md b/java-channel/README.md index fb47bd3c440e..fe85269a58d3 100644 --- a/java-channel/README.md +++ b/java-channel/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-channel - 3.49.0 + 3.50.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-channel:3.49.0' +implementation 'com.google.cloud:google-cloud-channel:3.50.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-channel" % "3.49.0" +libraryDependencies += "com.google.cloud" % "google-cloud-channel" % "3.50.0" ``` diff --git a/java-channel/google-cloud-channel-bom/pom.xml b/java-channel/google-cloud-channel-bom/pom.xml index 30331def5ae6..2dde974b81db 100644 --- a/java-channel/google-cloud-channel-bom/pom.xml +++ b/java-channel/google-cloud-channel-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-channel-bom - 3.50.0-SNAPSHOT + 3.50.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-channel - 3.50.0-SNAPSHOT + 3.50.0 com.google.api.grpc grpc-google-cloud-channel-v1 - 3.50.0-SNAPSHOT + 3.50.0 com.google.api.grpc proto-google-cloud-channel-v1 - 3.50.0-SNAPSHOT + 3.50.0 diff --git a/java-channel/google-cloud-channel/pom.xml b/java-channel/google-cloud-channel/pom.xml index 242ce56c455c..0979a449eb4b 100644 --- a/java-channel/google-cloud-channel/pom.xml +++ b/java-channel/google-cloud-channel/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-channel - 3.50.0-SNAPSHOT + 3.50.0 jar Google Channel Services With Channel Services, Google Cloud partners and resellers have a single unified resale platform, with a unified resale catalog, customer management, order management, billing management, policy and authorization management, and cost management. com.google.cloud google-cloud-channel-parent - 3.50.0-SNAPSHOT + 3.50.0 google-cloud-channel diff --git a/java-channel/grpc-google-cloud-channel-v1/pom.xml b/java-channel/grpc-google-cloud-channel-v1/pom.xml index a58c84fa1e5c..eb9b41e89d4e 100644 --- a/java-channel/grpc-google-cloud-channel-v1/pom.xml +++ b/java-channel/grpc-google-cloud-channel-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-channel-v1 - 3.50.0-SNAPSHOT + 3.50.0 grpc-google-cloud-channel-v1 GRPC library for google-cloud-channel com.google.cloud google-cloud-channel-parent - 3.50.0-SNAPSHOT + 3.50.0 diff --git a/java-channel/pom.xml b/java-channel/pom.xml index 17013eab2b86..614d3b94447e 100644 --- a/java-channel/pom.xml +++ b/java-channel/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-channel-parent pom - 3.50.0-SNAPSHOT + 3.50.0 Google Channel Services Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-channel - 3.50.0-SNAPSHOT + 3.50.0 com.google.api.grpc proto-google-cloud-channel-v1 - 3.50.0-SNAPSHOT + 3.50.0 com.google.api.grpc grpc-google-cloud-channel-v1 - 3.50.0-SNAPSHOT + 3.50.0 diff --git a/java-channel/proto-google-cloud-channel-v1/pom.xml b/java-channel/proto-google-cloud-channel-v1/pom.xml index 8f3ebb6c095d..71423ed7308c 100644 --- a/java-channel/proto-google-cloud-channel-v1/pom.xml +++ b/java-channel/proto-google-cloud-channel-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-channel-v1 - 3.50.0-SNAPSHOT + 3.50.0 proto-google-cloud-channel-v1 Proto library for google-cloud-channel com.google.cloud google-cloud-channel-parent - 3.50.0-SNAPSHOT + 3.50.0 diff --git a/java-chat/CHANGELOG.md b/java-chat/CHANGELOG.md index 4d275d914c01..fa37c152bd34 100644 --- a/java-chat/CHANGELOG.md +++ b/java-chat/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.10.0 (2024-06-27) + +* No change + + ## 0.9.0 (None) * No change diff --git a/java-chat/README.md b/java-chat/README.md index e5087f95c1e8..b9a3e0d591bb 100644 --- a/java-chat/README.md +++ b/java-chat/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-chat - 0.9.0 + 0.10.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-chat:0.9.0' +implementation 'com.google.cloud:google-cloud-chat:0.10.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-chat" % "0.9.0" +libraryDependencies += "com.google.cloud" % "google-cloud-chat" % "0.10.0" ``` diff --git a/java-chat/google-cloud-chat-bom/pom.xml b/java-chat/google-cloud-chat-bom/pom.xml index 6b10e3bf9d9f..ba0a607d49fe 100644 --- a/java-chat/google-cloud-chat-bom/pom.xml +++ b/java-chat/google-cloud-chat-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-chat-bom - 0.10.0-SNAPSHOT + 0.10.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-chat - 0.10.0-SNAPSHOT + 0.10.0 com.google.api.grpc grpc-google-cloud-chat-v1 - 0.10.0-SNAPSHOT + 0.10.0 com.google.api.grpc proto-google-cloud-chat-v1 - 0.10.0-SNAPSHOT + 0.10.0 diff --git a/java-chat/google-cloud-chat/pom.xml b/java-chat/google-cloud-chat/pom.xml index bbc98d21d7e2..b340b29f0444 100644 --- a/java-chat/google-cloud-chat/pom.xml +++ b/java-chat/google-cloud-chat/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-chat - 0.10.0-SNAPSHOT + 0.10.0 jar Google Google Chat API Google Chat API The Google Chat API lets you build Chat apps to integrate your services with Google Chat and manage Chat resources such as spaces, members, and messages. com.google.cloud google-cloud-chat-parent - 0.10.0-SNAPSHOT + 0.10.0 google-cloud-chat diff --git a/java-chat/grpc-google-cloud-chat-v1/pom.xml b/java-chat/grpc-google-cloud-chat-v1/pom.xml index b3e8903f4814..db45e5a73f40 100644 --- a/java-chat/grpc-google-cloud-chat-v1/pom.xml +++ b/java-chat/grpc-google-cloud-chat-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-chat-v1 - 0.10.0-SNAPSHOT + 0.10.0 grpc-google-cloud-chat-v1 GRPC library for google-cloud-chat com.google.cloud google-cloud-chat-parent - 0.10.0-SNAPSHOT + 0.10.0 diff --git a/java-chat/pom.xml b/java-chat/pom.xml index b5eccd8acf58..a4482db28d60 100644 --- a/java-chat/pom.xml +++ b/java-chat/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-chat-parent pom - 0.10.0-SNAPSHOT + 0.10.0 Google Google Chat API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-chat - 0.10.0-SNAPSHOT + 0.10.0 com.google.api.grpc grpc-google-cloud-chat-v1 - 0.10.0-SNAPSHOT + 0.10.0 com.google.api.grpc proto-google-cloud-chat-v1 - 0.10.0-SNAPSHOT + 0.10.0 diff --git a/java-chat/proto-google-cloud-chat-v1/pom.xml b/java-chat/proto-google-cloud-chat-v1/pom.xml index e7000750a6db..3f0097fd5dab 100644 --- a/java-chat/proto-google-cloud-chat-v1/pom.xml +++ b/java-chat/proto-google-cloud-chat-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-chat-v1 - 0.10.0-SNAPSHOT + 0.10.0 proto-google-cloud-chat-v1 Proto library for google-cloud-chat com.google.cloud google-cloud-chat-parent - 0.10.0-SNAPSHOT + 0.10.0 diff --git a/java-cloudbuild/CHANGELOG.md b/java-cloudbuild/CHANGELOG.md index bfda9efc315c..75961796cdd9 100644 --- a/java-cloudbuild/CHANGELOG.md +++ b/java-cloudbuild/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 3.48.0 (2024-06-27) + +* No change + + ## 3.47.0 (None) * No change diff --git a/java-cloudbuild/README.md b/java-cloudbuild/README.md index 55c9e6d39eab..38ca9b850535 100644 --- a/java-cloudbuild/README.md +++ b/java-cloudbuild/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-build - 3.47.0 + 3.48.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-build:3.47.0' +implementation 'com.google.cloud:google-cloud-build:3.48.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-build" % "3.47.0" +libraryDependencies += "com.google.cloud" % "google-cloud-build" % "3.48.0" ``` diff --git a/java-cloudbuild/google-cloud-build-bom/pom.xml b/java-cloudbuild/google-cloud-build-bom/pom.xml index 7be563b1e58c..ee273c76755f 100644 --- a/java-cloudbuild/google-cloud-build-bom/pom.xml +++ b/java-cloudbuild/google-cloud-build-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-build-bom - 3.48.0-SNAPSHOT + 3.48.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-build - 3.48.0-SNAPSHOT + 3.48.0 com.google.api.grpc grpc-google-cloud-build-v1 - 3.48.0-SNAPSHOT + 3.48.0 com.google.api.grpc grpc-google-cloud-build-v2 - 3.48.0-SNAPSHOT + 3.48.0 com.google.api.grpc proto-google-cloud-build-v1 - 3.48.0-SNAPSHOT + 3.48.0 com.google.api.grpc proto-google-cloud-build-v2 - 3.48.0-SNAPSHOT + 3.48.0 diff --git a/java-cloudbuild/google-cloud-build/pom.xml b/java-cloudbuild/google-cloud-build/pom.xml index f27acda536db..df03bc9eb403 100644 --- a/java-cloudbuild/google-cloud-build/pom.xml +++ b/java-cloudbuild/google-cloud-build/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-build - 3.48.0-SNAPSHOT + 3.48.0 jar Google Cloud Build @@ -12,7 +12,7 @@ com.google.cloud google-cloud-build-parent - 3.48.0-SNAPSHOT + 3.48.0 google-cloud-build diff --git a/java-cloudbuild/grpc-google-cloud-build-v1/pom.xml b/java-cloudbuild/grpc-google-cloud-build-v1/pom.xml index dc8a419e44dc..b9656d088815 100644 --- a/java-cloudbuild/grpc-google-cloud-build-v1/pom.xml +++ b/java-cloudbuild/grpc-google-cloud-build-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-build-v1 - 3.48.0-SNAPSHOT + 3.48.0 grpc-google-cloud-build-v1 GRPC library for grpc-google-cloud-build-v1 com.google.cloud google-cloud-build-parent - 3.48.0-SNAPSHOT + 3.48.0 diff --git a/java-cloudbuild/grpc-google-cloud-build-v2/pom.xml b/java-cloudbuild/grpc-google-cloud-build-v2/pom.xml index ac0ccc974a2d..49970ea20763 100644 --- a/java-cloudbuild/grpc-google-cloud-build-v2/pom.xml +++ b/java-cloudbuild/grpc-google-cloud-build-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-build-v2 - 3.48.0-SNAPSHOT + 3.48.0 grpc-google-cloud-build-v2 GRPC library for google-cloud-build com.google.cloud google-cloud-build-parent - 3.48.0-SNAPSHOT + 3.48.0 diff --git a/java-cloudbuild/pom.xml b/java-cloudbuild/pom.xml index 8480447a7464..0d86262778ac 100644 --- a/java-cloudbuild/pom.xml +++ b/java-cloudbuild/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-build-parent pom - 3.48.0-SNAPSHOT + 3.48.0 Google Cloud Build Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-build-v1 - 3.48.0-SNAPSHOT + 3.48.0 com.google.api.grpc proto-google-cloud-build-v2 - 3.48.0-SNAPSHOT + 3.48.0 com.google.api.grpc grpc-google-cloud-build-v2 - 3.48.0-SNAPSHOT + 3.48.0 com.google.cloud google-cloud-build - 3.48.0-SNAPSHOT + 3.48.0 com.google.api.grpc grpc-google-cloud-build-v1 - 3.48.0-SNAPSHOT + 3.48.0 diff --git a/java-cloudbuild/proto-google-cloud-build-v1/pom.xml b/java-cloudbuild/proto-google-cloud-build-v1/pom.xml index a047b5f84d18..7ed29e5eb860 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/pom.xml +++ b/java-cloudbuild/proto-google-cloud-build-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-build-v1 - 3.48.0-SNAPSHOT + 3.48.0 proto-google-cloud-build-v1 PROTO library for proto-google-cloud-build-v1 com.google.cloud google-cloud-build-parent - 3.48.0-SNAPSHOT + 3.48.0 diff --git a/java-cloudbuild/proto-google-cloud-build-v2/pom.xml b/java-cloudbuild/proto-google-cloud-build-v2/pom.xml index 435613dc5645..22eb99e462bc 100644 --- a/java-cloudbuild/proto-google-cloud-build-v2/pom.xml +++ b/java-cloudbuild/proto-google-cloud-build-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-build-v2 - 3.48.0-SNAPSHOT + 3.48.0 proto-google-cloud-build-v2 Proto library for google-cloud-build com.google.cloud google-cloud-build-parent - 3.48.0-SNAPSHOT + 3.48.0 diff --git a/java-cloudcommerceconsumerprocurement/CHANGELOG.md b/java-cloudcommerceconsumerprocurement/CHANGELOG.md index cb8b47f24c12..0c4c706cf8eb 100644 --- a/java-cloudcommerceconsumerprocurement/CHANGELOG.md +++ b/java-cloudcommerceconsumerprocurement/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.44.0 (2024-06-27) + +* No change + + ## 0.43.0 (None) * No change diff --git a/java-cloudcommerceconsumerprocurement/README.md b/java-cloudcommerceconsumerprocurement/README.md index a827c0e02004..c3982ad74303 100644 --- a/java-cloudcommerceconsumerprocurement/README.md +++ b/java-cloudcommerceconsumerprocurement/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudcommerceconsumerprocurement - 0.43.0 + 0.44.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudcommerceconsumerprocurement:0.43.0' +implementation 'com.google.cloud:google-cloud-cloudcommerceconsumerprocurement:0.44.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudcommerceconsumerprocurement" % "0.43.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudcommerceconsumerprocurement" % "0.44.0" ``` diff --git a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement-bom/pom.xml b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement-bom/pom.xml index f316716646a7..c435609fe70d 100644 --- a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement-bom/pom.xml +++ b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-cloudcommerceconsumerprocurement-bom - 0.44.0-SNAPSHOT + 0.44.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-cloudcommerceconsumerprocurement - 0.44.0-SNAPSHOT + 0.44.0 com.google.api.grpc grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1 - 0.44.0-SNAPSHOT + 0.44.0 com.google.api.grpc grpc-google-cloud-cloudcommerceconsumerprocurement-v1 - 0.44.0-SNAPSHOT + 0.44.0 com.google.api.grpc proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1 - 0.44.0-SNAPSHOT + 0.44.0 com.google.api.grpc proto-google-cloud-cloudcommerceconsumerprocurement-v1 - 0.44.0-SNAPSHOT + 0.44.0 diff --git a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/pom.xml b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/pom.xml index 7e4a551df16d..ecaa45c10bf0 100644 --- a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/pom.xml +++ b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-cloudcommerceconsumerprocurement - 0.44.0-SNAPSHOT + 0.44.0 jar Google Cloud Commerce Consumer Procurement Cloud Commerce Consumer Procurement Find top solutions integrated with Google Cloud to accelerate your digital transformation. Scale and simplify procurement for your organization with online discovery, flexible purchasing, and fulfillment of enterprise-grade cloud solutions. com.google.cloud google-cloud-cloudcommerceconsumerprocurement-parent - 0.44.0-SNAPSHOT + 0.44.0 google-cloud-cloudcommerceconsumerprocurement diff --git a/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1/pom.xml b/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1/pom.xml index 0b0c8f100008..4bebe8300077 100644 --- a/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1/pom.xml +++ b/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-cloudcommerceconsumerprocurement-v1 - 0.44.0-SNAPSHOT + 0.44.0 grpc-google-cloud-cloudcommerceconsumerprocurement-v1 GRPC library for google-cloud-cloudcommerceconsumerprocurement com.google.cloud google-cloud-cloudcommerceconsumerprocurement-parent - 0.44.0-SNAPSHOT + 0.44.0 diff --git a/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/pom.xml b/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/pom.xml index 4f89d38b5efd..39449cd99f64 100644 --- a/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/pom.xml +++ b/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1 - 0.44.0-SNAPSHOT + 0.44.0 grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1 GRPC library for google-cloud-cloudcommerceconsumerprocurement com.google.cloud google-cloud-cloudcommerceconsumerprocurement-parent - 0.44.0-SNAPSHOT + 0.44.0 diff --git a/java-cloudcommerceconsumerprocurement/pom.xml b/java-cloudcommerceconsumerprocurement/pom.xml index c6072297ab3b..3daa215272dc 100644 --- a/java-cloudcommerceconsumerprocurement/pom.xml +++ b/java-cloudcommerceconsumerprocurement/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-cloudcommerceconsumerprocurement-parent pom - 0.44.0-SNAPSHOT + 0.44.0 Google Cloud Commerce Consumer Procurement Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-cloudcommerceconsumerprocurement - 0.44.0-SNAPSHOT + 0.44.0 com.google.api.grpc proto-google-cloud-cloudcommerceconsumerprocurement-v1 - 0.44.0-SNAPSHOT + 0.44.0 com.google.api.grpc grpc-google-cloud-cloudcommerceconsumerprocurement-v1 - 0.44.0-SNAPSHOT + 0.44.0 com.google.api.grpc grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1 - 0.44.0-SNAPSHOT + 0.44.0 com.google.api.grpc proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1 - 0.44.0-SNAPSHOT + 0.44.0 diff --git a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/pom.xml b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/pom.xml index 64619315492f..e1c251e6a072 100644 --- a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/pom.xml +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-cloudcommerceconsumerprocurement-v1 - 0.44.0-SNAPSHOT + 0.44.0 proto-google-cloud-cloudcommerceconsumerprocurement-v1 Proto library for google-cloud-cloudcommerceconsumerprocurement com.google.cloud google-cloud-cloudcommerceconsumerprocurement-parent - 0.44.0-SNAPSHOT + 0.44.0 diff --git a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/pom.xml b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/pom.xml index a24c7c57f8df..bf04e4776f61 100644 --- a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/pom.xml +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1 - 0.44.0-SNAPSHOT + 0.44.0 proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1 Proto library for google-cloud-cloudcommerceconsumerprocurement com.google.cloud google-cloud-cloudcommerceconsumerprocurement-parent - 0.44.0-SNAPSHOT + 0.44.0 diff --git a/java-cloudcontrolspartner/CHANGELOG.md b/java-cloudcontrolspartner/CHANGELOG.md index fc55d643c48a..631a6a11e7b6 100644 --- a/java-cloudcontrolspartner/CHANGELOG.md +++ b/java-cloudcontrolspartner/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 0.10.0 (2024-06-27) + +### Features + +* Mark the accessApprovalRequests.list method as deprecated ([666a3ac](https://github.com/googleapis/google-cloud-java/commit/666a3ac8cd0cb45da3555a1bef8dfe3edf57d257)) +* Mark the accessApprovalRequests.list method as deprecated ([666a3ac](https://github.com/googleapis/google-cloud-java/commit/666a3ac8cd0cb45da3555a1bef8dfe3edf57d257)) + + + ## 0.9.0 (None) * No change diff --git a/java-cloudcontrolspartner/README.md b/java-cloudcontrolspartner/README.md index e41e3930cbf1..72d43b0310e2 100644 --- a/java-cloudcontrolspartner/README.md +++ b/java-cloudcontrolspartner/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudcontrolspartner - 0.9.0 + 0.10.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudcontrolspartner:0.9.0' +implementation 'com.google.cloud:google-cloud-cloudcontrolspartner:0.10.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudcontrolspartner" % "0.9.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudcontrolspartner" % "0.10.0" ``` diff --git a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner-bom/pom.xml b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner-bom/pom.xml index a32c91ef0898..938beb834d90 100644 --- a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner-bom/pom.xml +++ b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-cloudcontrolspartner-bom - 0.10.0-SNAPSHOT + 0.10.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-cloudcontrolspartner - 0.10.0-SNAPSHOT + 0.10.0 com.google.api.grpc grpc-google-cloud-cloudcontrolspartner-v1 - 0.10.0-SNAPSHOT + 0.10.0 com.google.api.grpc grpc-google-cloud-cloudcontrolspartner-v1beta - 0.10.0-SNAPSHOT + 0.10.0 com.google.api.grpc proto-google-cloud-cloudcontrolspartner-v1beta - 0.10.0-SNAPSHOT + 0.10.0 com.google.api.grpc proto-google-cloud-cloudcontrolspartner-v1 - 0.10.0-SNAPSHOT + 0.10.0 diff --git a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/pom.xml b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/pom.xml index 0ab1c98e8645..52634dd3a746 100644 --- a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/pom.xml +++ b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-cloudcontrolspartner - 0.10.0-SNAPSHOT + 0.10.0 jar Google Cloud Controls Partner API Cloud Controls Partner API Provides insights about your customers and their Assured Workloads based on your Sovereign Controls by Partners offering. com.google.cloud google-cloud-cloudcontrolspartner-parent - 0.10.0-SNAPSHOT + 0.10.0 google-cloud-cloudcontrolspartner diff --git a/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1/pom.xml b/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1/pom.xml index 2134c60a1ef3..53cc714084ba 100644 --- a/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1/pom.xml +++ b/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-cloudcontrolspartner-v1 - 0.10.0-SNAPSHOT + 0.10.0 grpc-google-cloud-cloudcontrolspartner-v1 GRPC library for google-cloud-cloudcontrolspartner com.google.cloud google-cloud-cloudcontrolspartner-parent - 0.10.0-SNAPSHOT + 0.10.0 diff --git a/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1beta/pom.xml b/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1beta/pom.xml index 56cf9ebbec8b..2115ff54d167 100644 --- a/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1beta/pom.xml +++ b/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-cloudcontrolspartner-v1beta - 0.10.0-SNAPSHOT + 0.10.0 grpc-google-cloud-cloudcontrolspartner-v1beta GRPC library for google-cloud-cloudcontrolspartner com.google.cloud google-cloud-cloudcontrolspartner-parent - 0.10.0-SNAPSHOT + 0.10.0 diff --git a/java-cloudcontrolspartner/pom.xml b/java-cloudcontrolspartner/pom.xml index 2a442759a62b..84481f60ae69 100644 --- a/java-cloudcontrolspartner/pom.xml +++ b/java-cloudcontrolspartner/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-cloudcontrolspartner-parent pom - 0.10.0-SNAPSHOT + 0.10.0 Google Cloud Controls Partner API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-cloudcontrolspartner - 0.10.0-SNAPSHOT + 0.10.0 com.google.api.grpc grpc-google-cloud-cloudcontrolspartner-v1 - 0.10.0-SNAPSHOT + 0.10.0 com.google.api.grpc grpc-google-cloud-cloudcontrolspartner-v1beta - 0.10.0-SNAPSHOT + 0.10.0 com.google.api.grpc proto-google-cloud-cloudcontrolspartner-v1beta - 0.10.0-SNAPSHOT + 0.10.0 com.google.api.grpc proto-google-cloud-cloudcontrolspartner-v1 - 0.10.0-SNAPSHOT + 0.10.0 diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/pom.xml b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/pom.xml index e9c63a658ad2..a0b64185ec20 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/pom.xml +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-cloudcontrolspartner-v1 - 0.10.0-SNAPSHOT + 0.10.0 proto-google-cloud-cloudcontrolspartner-v1 Proto library for google-cloud-cloudcontrolspartner com.google.cloud google-cloud-cloudcontrolspartner-parent - 0.10.0-SNAPSHOT + 0.10.0 diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/pom.xml b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/pom.xml index 92e129bda78f..8a5e2ce3715a 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/pom.xml +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-cloudcontrolspartner-v1beta - 0.10.0-SNAPSHOT + 0.10.0 proto-google-cloud-cloudcontrolspartner-v1beta Proto library for google-cloud-cloudcontrolspartner com.google.cloud google-cloud-cloudcontrolspartner-parent - 0.10.0-SNAPSHOT + 0.10.0 diff --git a/java-cloudquotas/CHANGELOG.md b/java-cloudquotas/CHANGELOG.md index 2db8b292a884..eaa3b3cf71ca 100644 --- a/java-cloudquotas/CHANGELOG.md +++ b/java-cloudquotas/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.14.0 (2024-06-27) + +* No change + + ## 0.13.0 (None) * No change diff --git a/java-cloudquotas/README.md b/java-cloudquotas/README.md index e91e2bdc07d9..e2845602d455 100644 --- a/java-cloudquotas/README.md +++ b/java-cloudquotas/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudquotas - 0.13.0 + 0.14.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudquotas:0.13.0' +implementation 'com.google.cloud:google-cloud-cloudquotas:0.14.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudquotas" % "0.13.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudquotas" % "0.14.0" ``` diff --git a/java-cloudquotas/google-cloud-cloudquotas-bom/pom.xml b/java-cloudquotas/google-cloud-cloudquotas-bom/pom.xml index 5683a51d9f5d..9611fe55e770 100644 --- a/java-cloudquotas/google-cloud-cloudquotas-bom/pom.xml +++ b/java-cloudquotas/google-cloud-cloudquotas-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-cloudquotas-bom - 0.14.0-SNAPSHOT + 0.14.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-cloudquotas - 0.14.0-SNAPSHOT + 0.14.0 com.google.api.grpc grpc-google-cloud-cloudquotas-v1 - 0.14.0-SNAPSHOT + 0.14.0 com.google.api.grpc proto-google-cloud-cloudquotas-v1 - 0.14.0-SNAPSHOT + 0.14.0 diff --git a/java-cloudquotas/google-cloud-cloudquotas/pom.xml b/java-cloudquotas/google-cloud-cloudquotas/pom.xml index 364cc91296fb..111418db4bac 100644 --- a/java-cloudquotas/google-cloud-cloudquotas/pom.xml +++ b/java-cloudquotas/google-cloud-cloudquotas/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-cloudquotas - 0.14.0-SNAPSHOT + 0.14.0 jar Google Cloud Quotas API Cloud Quotas API Cloud Quotas API provides GCP service consumers with management and @@ -12,7 +12,7 @@ com.google.cloud google-cloud-cloudquotas-parent - 0.14.0-SNAPSHOT + 0.14.0 google-cloud-cloudquotas diff --git a/java-cloudquotas/grpc-google-cloud-cloudquotas-v1/pom.xml b/java-cloudquotas/grpc-google-cloud-cloudquotas-v1/pom.xml index 76702e52b40d..e7ed9301bf85 100644 --- a/java-cloudquotas/grpc-google-cloud-cloudquotas-v1/pom.xml +++ b/java-cloudquotas/grpc-google-cloud-cloudquotas-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-cloudquotas-v1 - 0.14.0-SNAPSHOT + 0.14.0 grpc-google-cloud-cloudquotas-v1 GRPC library for google-cloud-cloudquotas com.google.cloud google-cloud-cloudquotas-parent - 0.14.0-SNAPSHOT + 0.14.0 diff --git a/java-cloudquotas/pom.xml b/java-cloudquotas/pom.xml index 0927aeaed488..258c7a987abb 100644 --- a/java-cloudquotas/pom.xml +++ b/java-cloudquotas/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-cloudquotas-parent pom - 0.14.0-SNAPSHOT + 0.14.0 Google Cloud Quotas API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-cloudquotas - 0.14.0-SNAPSHOT + 0.14.0 com.google.api.grpc grpc-google-cloud-cloudquotas-v1 - 0.14.0-SNAPSHOT + 0.14.0 com.google.api.grpc proto-google-cloud-cloudquotas-v1 - 0.14.0-SNAPSHOT + 0.14.0 diff --git a/java-cloudquotas/proto-google-cloud-cloudquotas-v1/pom.xml b/java-cloudquotas/proto-google-cloud-cloudquotas-v1/pom.xml index 634e207d0054..52fab2a5eb59 100644 --- a/java-cloudquotas/proto-google-cloud-cloudquotas-v1/pom.xml +++ b/java-cloudquotas/proto-google-cloud-cloudquotas-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-cloudquotas-v1 - 0.14.0-SNAPSHOT + 0.14.0 proto-google-cloud-cloudquotas-v1 Proto library for google-cloud-cloudquotas com.google.cloud google-cloud-cloudquotas-parent - 0.14.0-SNAPSHOT + 0.14.0 diff --git a/java-cloudsupport/CHANGELOG.md b/java-cloudsupport/CHANGELOG.md index 9ba867a520cb..a0398ed07ab2 100644 --- a/java-cloudsupport/CHANGELOG.md +++ b/java-cloudsupport/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.30.0 (2024-06-27) + +* No change + + ## 0.29.0 (None) * No change diff --git a/java-cloudsupport/README.md b/java-cloudsupport/README.md index 7d009bc9adfc..bb5fac8417cc 100644 --- a/java-cloudsupport/README.md +++ b/java-cloudsupport/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudsupport - 0.29.0 + 0.30.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudsupport:0.29.0' +implementation 'com.google.cloud:google-cloud-cloudsupport:0.30.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudsupport" % "0.29.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudsupport" % "0.30.0" ``` diff --git a/java-cloudsupport/google-cloud-cloudsupport-bom/pom.xml b/java-cloudsupport/google-cloud-cloudsupport-bom/pom.xml index a4cc2f58051d..084c5fd72fa5 100644 --- a/java-cloudsupport/google-cloud-cloudsupport-bom/pom.xml +++ b/java-cloudsupport/google-cloud-cloudsupport-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-cloudsupport-bom - 0.30.0-SNAPSHOT + 0.30.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-cloudsupport - 0.30.0-SNAPSHOT + 0.30.0 com.google.api.grpc grpc-google-cloud-cloudsupport-v2 - 0.30.0-SNAPSHOT + 0.30.0 com.google.api.grpc proto-google-cloud-cloudsupport-v2 - 0.30.0-SNAPSHOT + 0.30.0 diff --git a/java-cloudsupport/google-cloud-cloudsupport/pom.xml b/java-cloudsupport/google-cloud-cloudsupport/pom.xml index b7ae913f81c0..b38f868bce60 100644 --- a/java-cloudsupport/google-cloud-cloudsupport/pom.xml +++ b/java-cloudsupport/google-cloud-cloudsupport/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-cloudsupport - 0.30.0-SNAPSHOT + 0.30.0 jar Google Google Cloud Support API Google Cloud Support API Manages Google Cloud technical support cases for Customer Care support offerings. com.google.cloud google-cloud-cloudsupport-parent - 0.30.0-SNAPSHOT + 0.30.0 google-cloud-cloudsupport diff --git a/java-cloudsupport/grpc-google-cloud-cloudsupport-v2/pom.xml b/java-cloudsupport/grpc-google-cloud-cloudsupport-v2/pom.xml index 01c7b8157bcd..c5d8b9aa5def 100644 --- a/java-cloudsupport/grpc-google-cloud-cloudsupport-v2/pom.xml +++ b/java-cloudsupport/grpc-google-cloud-cloudsupport-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-cloudsupport-v2 - 0.30.0-SNAPSHOT + 0.30.0 grpc-google-cloud-cloudsupport-v2 GRPC library for google-cloud-cloudsupport com.google.cloud google-cloud-cloudsupport-parent - 0.30.0-SNAPSHOT + 0.30.0 diff --git a/java-cloudsupport/pom.xml b/java-cloudsupport/pom.xml index e8362cbbde42..79fc3ee9f096 100644 --- a/java-cloudsupport/pom.xml +++ b/java-cloudsupport/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-cloudsupport-parent pom - 0.30.0-SNAPSHOT + 0.30.0 Google Google Cloud Support API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-cloudsupport - 0.30.0-SNAPSHOT + 0.30.0 com.google.api.grpc grpc-google-cloud-cloudsupport-v2 - 0.30.0-SNAPSHOT + 0.30.0 com.google.api.grpc proto-google-cloud-cloudsupport-v2 - 0.30.0-SNAPSHOT + 0.30.0 diff --git a/java-cloudsupport/proto-google-cloud-cloudsupport-v2/pom.xml b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/pom.xml index 14ae7afd0ea6..b0118da64861 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2/pom.xml +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-cloudsupport-v2 - 0.30.0-SNAPSHOT + 0.30.0 proto-google-cloud-cloudsupport-v2 Proto library for google-cloud-cloudsupport com.google.cloud google-cloud-cloudsupport-parent - 0.30.0-SNAPSHOT + 0.30.0 diff --git a/java-compute/CHANGELOG.md b/java-compute/CHANGELOG.md index 4c94ad65913f..ffe6b25c4056 100644 --- a/java-compute/CHANGELOG.md +++ b/java-compute/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 1.56.0 (2024-06-27) + +* No change + + ## 1.55.0 (None) * No change diff --git a/java-compute/README.md b/java-compute/README.md index 022dd3f55305..5e121ac358b5 100644 --- a/java-compute/README.md +++ b/java-compute/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-compute - 1.55.0 + 1.56.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-compute:1.55.0' +implementation 'com.google.cloud:google-cloud-compute:1.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-compute" % "1.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-compute" % "1.56.0" ``` diff --git a/java-compute/google-cloud-compute-bom/pom.xml b/java-compute/google-cloud-compute-bom/pom.xml index 862c97390081..764143f8e861 100644 --- a/java-compute/google-cloud-compute-bom/pom.xml +++ b/java-compute/google-cloud-compute-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-compute-bom - 1.56.0-SNAPSHOT + 1.56.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -23,12 +23,12 @@ com.google.cloud google-cloud-compute - 1.56.0-SNAPSHOT + 1.56.0 com.google.api.grpc proto-google-cloud-compute-v1 - 1.56.0-SNAPSHOT + 1.56.0 diff --git a/java-compute/google-cloud-compute/pom.xml b/java-compute/google-cloud-compute/pom.xml index 319a3d18723c..71400ba91e4b 100644 --- a/java-compute/google-cloud-compute/pom.xml +++ b/java-compute/google-cloud-compute/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-compute - 1.56.0-SNAPSHOT + 1.56.0 jar Google Compute Engine Compute Engine delivers configurable virtual machines running in @@ -12,7 +12,7 @@ com.google.cloud google-cloud-compute-parent - 1.56.0-SNAPSHOT + 1.56.0 google-cloud-compute diff --git a/java-compute/pom.xml b/java-compute/pom.xml index 711aef5b5bfa..0d387ef2ccce 100644 --- a/java-compute/pom.xml +++ b/java-compute/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-compute-parent pom - 1.56.0-SNAPSHOT + 1.56.0 Google Compute Engine Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,12 +29,12 @@ com.google.cloud google-cloud-compute - 1.56.0-SNAPSHOT + 1.56.0 com.google.api.grpc proto-google-cloud-compute-v1 - 1.56.0-SNAPSHOT + 1.56.0 diff --git a/java-compute/proto-google-cloud-compute-v1/pom.xml b/java-compute/proto-google-cloud-compute-v1/pom.xml index 695818cacded..cb33bbe1e409 100644 --- a/java-compute/proto-google-cloud-compute-v1/pom.xml +++ b/java-compute/proto-google-cloud-compute-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-compute-v1 - 1.56.0-SNAPSHOT + 1.56.0 proto-google-cloud-compute-v1 Proto library for google-cloud-compute com.google.cloud google-cloud-compute-parent - 1.56.0-SNAPSHOT + 1.56.0 diff --git a/java-confidentialcomputing/CHANGELOG.md b/java-confidentialcomputing/CHANGELOG.md index 66dd8eb1a2c2..6aa7a17565d8 100644 --- a/java-confidentialcomputing/CHANGELOG.md +++ b/java-confidentialcomputing/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.32.0 (2024-06-27) + +* No change + + ## 0.31.0 (None) * No change diff --git a/java-confidentialcomputing/README.md b/java-confidentialcomputing/README.md index 9c5fb647fa34..3fe068474419 100644 --- a/java-confidentialcomputing/README.md +++ b/java-confidentialcomputing/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-confidentialcomputing - 0.31.0 + 0.32.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-confidentialcomputing:0.31.0' +implementation 'com.google.cloud:google-cloud-confidentialcomputing:0.32.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-confidentialcomputing" % "0.31.0" +libraryDependencies += "com.google.cloud" % "google-cloud-confidentialcomputing" % "0.32.0" ``` diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing-bom/pom.xml b/java-confidentialcomputing/google-cloud-confidentialcomputing-bom/pom.xml index 106ab9bf496c..97495da44e6d 100644 --- a/java-confidentialcomputing/google-cloud-confidentialcomputing-bom/pom.xml +++ b/java-confidentialcomputing/google-cloud-confidentialcomputing-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-confidentialcomputing-bom - 0.32.0-SNAPSHOT + 0.32.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-confidentialcomputing - 0.32.0-SNAPSHOT + 0.32.0 com.google.api.grpc grpc-google-cloud-confidentialcomputing-v1 - 0.32.0-SNAPSHOT + 0.32.0 com.google.api.grpc grpc-google-cloud-confidentialcomputing-v1alpha1 - 0.32.0-SNAPSHOT + 0.32.0 com.google.api.grpc proto-google-cloud-confidentialcomputing-v1 - 0.32.0-SNAPSHOT + 0.32.0 com.google.api.grpc proto-google-cloud-confidentialcomputing-v1alpha1 - 0.32.0-SNAPSHOT + 0.32.0 diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/pom.xml b/java-confidentialcomputing/google-cloud-confidentialcomputing/pom.xml index 4c33bf6cfd4d..6f083b0864fe 100644 --- a/java-confidentialcomputing/google-cloud-confidentialcomputing/pom.xml +++ b/java-confidentialcomputing/google-cloud-confidentialcomputing/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-confidentialcomputing - 0.32.0-SNAPSHOT + 0.32.0 jar Google Confidential Computing API Confidential Computing API Protect data in-use with Confidential VMs, Confidential GKE, Confidential Dataproc, and Confidential Space. com.google.cloud google-cloud-confidentialcomputing-parent - 0.32.0-SNAPSHOT + 0.32.0 google-cloud-confidentialcomputing diff --git a/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1/pom.xml b/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1/pom.xml index 9fb8a7aa8281..25916b192b41 100644 --- a/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1/pom.xml +++ b/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-confidentialcomputing-v1 - 0.32.0-SNAPSHOT + 0.32.0 grpc-google-cloud-confidentialcomputing-v1 GRPC library for google-cloud-confidentialcomputing com.google.cloud google-cloud-confidentialcomputing-parent - 0.32.0-SNAPSHOT + 0.32.0 diff --git a/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1alpha1/pom.xml b/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1alpha1/pom.xml index 1ede7ee221b4..bb591a671804 100644 --- a/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1alpha1/pom.xml +++ b/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-confidentialcomputing-v1alpha1 - 0.32.0-SNAPSHOT + 0.32.0 grpc-google-cloud-confidentialcomputing-v1alpha1 GRPC library for google-cloud-confidentialcomputing com.google.cloud google-cloud-confidentialcomputing-parent - 0.32.0-SNAPSHOT + 0.32.0 diff --git a/java-confidentialcomputing/pom.xml b/java-confidentialcomputing/pom.xml index 7c899a25a7f2..a36b06c4a03c 100644 --- a/java-confidentialcomputing/pom.xml +++ b/java-confidentialcomputing/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-confidentialcomputing-parent pom - 0.32.0-SNAPSHOT + 0.32.0 Google Confidential Computing API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-confidentialcomputing - 0.32.0-SNAPSHOT + 0.32.0 com.google.api.grpc grpc-google-cloud-confidentialcomputing-v1 - 0.32.0-SNAPSHOT + 0.32.0 com.google.api.grpc grpc-google-cloud-confidentialcomputing-v1alpha1 - 0.32.0-SNAPSHOT + 0.32.0 com.google.api.grpc proto-google-cloud-confidentialcomputing-v1 - 0.32.0-SNAPSHOT + 0.32.0 com.google.api.grpc proto-google-cloud-confidentialcomputing-v1alpha1 - 0.32.0-SNAPSHOT + 0.32.0 diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/pom.xml b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/pom.xml index 5ce87de03830..79e20741c0c2 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/pom.xml +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-confidentialcomputing-v1 - 0.32.0-SNAPSHOT + 0.32.0 proto-google-cloud-confidentialcomputing-v1 Proto library for google-cloud-confidentialcomputing com.google.cloud google-cloud-confidentialcomputing-parent - 0.32.0-SNAPSHOT + 0.32.0 diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/pom.xml b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/pom.xml index 8786cf05111c..4350fa83bdb9 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/pom.xml +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-confidentialcomputing-v1alpha1 - 0.32.0-SNAPSHOT + 0.32.0 proto-google-cloud-confidentialcomputing-v1alpha1 Proto library for google-cloud-confidentialcomputing com.google.cloud google-cloud-confidentialcomputing-parent - 0.32.0-SNAPSHOT + 0.32.0 diff --git a/java-contact-center-insights/CHANGELOG.md b/java-contact-center-insights/CHANGELOG.md index d121091ed1f4..54784245028e 100644 --- a/java-contact-center-insights/CHANGELOG.md +++ b/java-contact-center-insights/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.46.0 (2024-06-27) + +* No change + + ## 2.45.0 (None) * No change diff --git a/java-contact-center-insights/README.md b/java-contact-center-insights/README.md index 1816174018be..a50083ca5e72 100644 --- a/java-contact-center-insights/README.md +++ b/java-contact-center-insights/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-contact-center-insights - 2.45.0 + 2.46.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-contact-center-insights:2.45.0' +implementation 'com.google.cloud:google-cloud-contact-center-insights:2.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-contact-center-insights" % "2.45.0" +libraryDependencies += "com.google.cloud" % "google-cloud-contact-center-insights" % "2.46.0" ``` diff --git a/java-contact-center-insights/google-cloud-contact-center-insights-bom/pom.xml b/java-contact-center-insights/google-cloud-contact-center-insights-bom/pom.xml index 6325eb96d9cd..633848265b64 100644 --- a/java-contact-center-insights/google-cloud-contact-center-insights-bom/pom.xml +++ b/java-contact-center-insights/google-cloud-contact-center-insights-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-contact-center-insights-bom - 2.46.0-SNAPSHOT + 2.46.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-contact-center-insights - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc grpc-google-cloud-contact-center-insights-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc proto-google-cloud-contact-center-insights-v1 - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-contact-center-insights/google-cloud-contact-center-insights/pom.xml b/java-contact-center-insights/google-cloud-contact-center-insights/pom.xml index 8e1c8d4fcfee..636d2d83fcc1 100644 --- a/java-contact-center-insights/google-cloud-contact-center-insights/pom.xml +++ b/java-contact-center-insights/google-cloud-contact-center-insights/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-contact-center-insights - 2.46.0-SNAPSHOT + 2.46.0 jar Google CCAI Insights CCAI Insights helps users detect and visualize patterns in their contact center data. com.google.cloud google-cloud-contact-center-insights-parent - 2.46.0-SNAPSHOT + 2.46.0 google-cloud-contact-center-insights diff --git a/java-contact-center-insights/grpc-google-cloud-contact-center-insights-v1/pom.xml b/java-contact-center-insights/grpc-google-cloud-contact-center-insights-v1/pom.xml index 81dae6a9a4fa..d6b77156acd3 100644 --- a/java-contact-center-insights/grpc-google-cloud-contact-center-insights-v1/pom.xml +++ b/java-contact-center-insights/grpc-google-cloud-contact-center-insights-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-contact-center-insights-v1 - 2.46.0-SNAPSHOT + 2.46.0 grpc-google-cloud-contact-center-insights-v1 GRPC library for google-cloud-contact-center-insights com.google.cloud google-cloud-contact-center-insights-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-contact-center-insights/pom.xml b/java-contact-center-insights/pom.xml index 735f60f5317f..d1e33499e7d2 100644 --- a/java-contact-center-insights/pom.xml +++ b/java-contact-center-insights/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-contact-center-insights-parent pom - 2.46.0-SNAPSHOT + 2.46.0 Google CCAI Insights Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-contact-center-insights - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc grpc-google-cloud-contact-center-insights-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc proto-google-cloud-contact-center-insights-v1 - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/pom.xml b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/pom.xml index 41c1c2189e3e..abbb8cee66c4 100644 --- a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/pom.xml +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-contact-center-insights-v1 - 2.46.0-SNAPSHOT + 2.46.0 proto-google-cloud-contact-center-insights-v1 Proto library for google-cloud-contact-center-insights com.google.cloud google-cloud-contact-center-insights-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-container/CHANGELOG.md b/java-container/CHANGELOG.md index ef8e8f7dff39..0e2e2ac7c8b4 100644 --- a/java-container/CHANGELOG.md +++ b/java-container/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 2.49.0 (2024-06-27) + +### Features + +* A new message `HugepagesConfig` is added ([4be1db5](https://github.com/googleapis/google-cloud-java/commit/4be1db5cfca842d85e167b8ed033ebcbcbd758dd)) +* A new method_signature `parent` is added to method `ListOperations` in service `ClusterManager` ([4be1db5](https://github.com/googleapis/google-cloud-java/commit/4be1db5cfca842d85e167b8ed033ebcbcbd758dd)) + + + ## 2.48.0 (None) * No change diff --git a/java-container/README.md b/java-container/README.md index db7036d035cb..bdf275b7513b 100644 --- a/java-container/README.md +++ b/java-container/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-container - 2.48.0 + 2.49.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-container:2.48.0' +implementation 'com.google.cloud:google-cloud-container:2.49.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-container" % "2.48.0" +libraryDependencies += "com.google.cloud" % "google-cloud-container" % "2.49.0" ``` diff --git a/java-container/google-cloud-container-bom/pom.xml b/java-container/google-cloud-container-bom/pom.xml index f245fa4afc92..168cd07ac8a6 100644 --- a/java-container/google-cloud-container-bom/pom.xml +++ b/java-container/google-cloud-container-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-container-bom - 2.49.0-SNAPSHOT + 2.49.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-container - 2.49.0-SNAPSHOT + 2.49.0 com.google.api.grpc grpc-google-cloud-container-v1 - 2.49.0-SNAPSHOT + 2.49.0 com.google.api.grpc grpc-google-cloud-container-v1beta1 - 2.49.0-SNAPSHOT + 2.49.0 com.google.api.grpc proto-google-cloud-container-v1 - 2.49.0-SNAPSHOT + 2.49.0 com.google.api.grpc proto-google-cloud-container-v1beta1 - 2.49.0-SNAPSHOT + 2.49.0 diff --git a/java-container/google-cloud-container/pom.xml b/java-container/google-cloud-container/pom.xml index 3b1dbe8d85f4..3a78100169c4 100644 --- a/java-container/google-cloud-container/pom.xml +++ b/java-container/google-cloud-container/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-container - 2.49.0-SNAPSHOT + 2.49.0 jar Google Cloud Container Java idiomatic client for Google Cloud Container com.google.cloud google-cloud-container-parent - 2.49.0-SNAPSHOT + 2.49.0 google-cloud-container diff --git a/java-container/grpc-google-cloud-container-v1/pom.xml b/java-container/grpc-google-cloud-container-v1/pom.xml index 5f20fb8773c8..606ca1d4e65b 100644 --- a/java-container/grpc-google-cloud-container-v1/pom.xml +++ b/java-container/grpc-google-cloud-container-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-container-v1 - 2.49.0-SNAPSHOT + 2.49.0 grpc-google-cloud-container-v1 GRPC library for grpc-google-cloud-container-v1 com.google.cloud google-cloud-container-parent - 2.49.0-SNAPSHOT + 2.49.0 diff --git a/java-container/grpc-google-cloud-container-v1beta1/pom.xml b/java-container/grpc-google-cloud-container-v1beta1/pom.xml index 1690aa22dd6a..6b56631f05e3 100644 --- a/java-container/grpc-google-cloud-container-v1beta1/pom.xml +++ b/java-container/grpc-google-cloud-container-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-container-v1beta1 - 2.49.0-SNAPSHOT + 2.49.0 grpc-google-cloud-container-v1beta1 GRPC library for google-cloud-container com.google.cloud google-cloud-container-parent - 2.49.0-SNAPSHOT + 2.49.0 diff --git a/java-container/pom.xml b/java-container/pom.xml index e8943b0df509..219cb4b834aa 100644 --- a/java-container/pom.xml +++ b/java-container/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-container-parent pom - 2.49.0-SNAPSHOT + 2.49.0 Google Cloud Container Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-container-v1 - 2.49.0-SNAPSHOT + 2.49.0 com.google.api.grpc proto-google-cloud-container-v1beta1 - 2.49.0-SNAPSHOT + 2.49.0 com.google.api.grpc grpc-google-cloud-container-v1beta1 - 2.49.0-SNAPSHOT + 2.49.0 com.google.api.grpc grpc-google-cloud-container-v1 - 2.49.0-SNAPSHOT + 2.49.0 com.google.cloud google-cloud-container - 2.49.0-SNAPSHOT + 2.49.0 diff --git a/java-container/proto-google-cloud-container-v1/pom.xml b/java-container/proto-google-cloud-container-v1/pom.xml index 02d3d623c6af..b3a2930dace0 100644 --- a/java-container/proto-google-cloud-container-v1/pom.xml +++ b/java-container/proto-google-cloud-container-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-container-v1 - 2.49.0-SNAPSHOT + 2.49.0 proto-google-cloud-container-v1 PROTO library for proto-google-cloud-container-v1 com.google.cloud google-cloud-container-parent - 2.49.0-SNAPSHOT + 2.49.0 diff --git a/java-container/proto-google-cloud-container-v1beta1/pom.xml b/java-container/proto-google-cloud-container-v1beta1/pom.xml index cc0133e96897..25e29c33e4af 100644 --- a/java-container/proto-google-cloud-container-v1beta1/pom.xml +++ b/java-container/proto-google-cloud-container-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-container-v1beta1 - 2.49.0-SNAPSHOT + 2.49.0 proto-google-cloud-container-v1beta1 Proto library for google-cloud-container com.google.cloud google-cloud-container-parent - 2.49.0-SNAPSHOT + 2.49.0 diff --git a/java-containeranalysis/CHANGELOG.md b/java-containeranalysis/CHANGELOG.md index 46792e4715b3..506c92a81761 100644 --- a/java-containeranalysis/CHANGELOG.md +++ b/java-containeranalysis/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.47.0 (2024-06-27) + +* No change + + ## 2.46.0 (None) * No change diff --git a/java-containeranalysis/README.md b/java-containeranalysis/README.md index cf46c9c262ff..622905514514 100644 --- a/java-containeranalysis/README.md +++ b/java-containeranalysis/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-containeranalysis - 2.46.0 + 2.47.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-containeranalysis:2.46.0' +implementation 'com.google.cloud:google-cloud-containeranalysis:2.47.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-containeranalysis" % "2.46.0" +libraryDependencies += "com.google.cloud" % "google-cloud-containeranalysis" % "2.47.0" ``` diff --git a/java-containeranalysis/google-cloud-containeranalysis-bom/pom.xml b/java-containeranalysis/google-cloud-containeranalysis-bom/pom.xml index 141015cada74..742bce5f25fd 100644 --- a/java-containeranalysis/google-cloud-containeranalysis-bom/pom.xml +++ b/java-containeranalysis/google-cloud-containeranalysis-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-containeranalysis-bom - 2.47.0-SNAPSHOT + 2.47.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-containeranalysis - 2.47.0-SNAPSHOT + 2.47.0 com.google.api.grpc grpc-google-cloud-containeranalysis-v1beta1 - 0.137.0-SNAPSHOT + 0.137.0 com.google.api.grpc grpc-google-cloud-containeranalysis-v1 - 2.47.0-SNAPSHOT + 2.47.0 com.google.api.grpc proto-google-cloud-containeranalysis-v1 - 2.47.0-SNAPSHOT + 2.47.0 com.google.api.grpc proto-google-cloud-containeranalysis-v1beta1 - 0.137.0-SNAPSHOT + 0.137.0 diff --git a/java-containeranalysis/google-cloud-containeranalysis/pom.xml b/java-containeranalysis/google-cloud-containeranalysis/pom.xml index 6b9022f279e8..c51323f96c50 100644 --- a/java-containeranalysis/google-cloud-containeranalysis/pom.xml +++ b/java-containeranalysis/google-cloud-containeranalysis/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-containeranalysis - 2.47.0-SNAPSHOT + 2.47.0 jar Google Cloud Container Analysis Java idiomatic client for Google Cloud Container Analysis com.google.cloud google-cloud-containeranalysis-parent - 2.47.0-SNAPSHOT + 2.47.0 google-cloud-containeranalysis diff --git a/java-containeranalysis/grpc-google-cloud-containeranalysis-v1/pom.xml b/java-containeranalysis/grpc-google-cloud-containeranalysis-v1/pom.xml index 9db0315edabe..78bcd034f7c1 100644 --- a/java-containeranalysis/grpc-google-cloud-containeranalysis-v1/pom.xml +++ b/java-containeranalysis/grpc-google-cloud-containeranalysis-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-containeranalysis-v1 - 2.47.0-SNAPSHOT + 2.47.0 grpc-google-cloud-containeranalysis-v1 GRPC library for grpc-google-cloud-containeranalysis-v1 com.google.cloud google-cloud-containeranalysis-parent - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-containeranalysis/grpc-google-cloud-containeranalysis-v1beta1/pom.xml b/java-containeranalysis/grpc-google-cloud-containeranalysis-v1beta1/pom.xml index b667f89638d4..db87e328c95c 100644 --- a/java-containeranalysis/grpc-google-cloud-containeranalysis-v1beta1/pom.xml +++ b/java-containeranalysis/grpc-google-cloud-containeranalysis-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-containeranalysis-v1beta1 - 0.137.0-SNAPSHOT + 0.137.0 grpc-google-cloud-containeranalysis-v1beta1 GRPC library for grpc-google-cloud-containeranalysis-v1beta1 com.google.cloud google-cloud-containeranalysis-parent - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-containeranalysis/pom.xml b/java-containeranalysis/pom.xml index 9a25695c4d2d..5a24af7cfa50 100644 --- a/java-containeranalysis/pom.xml +++ b/java-containeranalysis/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-containeranalysis-parent pom - 2.47.0-SNAPSHOT + 2.47.0 Google Cloud Container Analysis Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,33 +29,33 @@ com.google.api.grpc proto-google-cloud-containeranalysis-v1 - 2.47.0-SNAPSHOT + 2.47.0 com.google.api.grpc proto-google-cloud-containeranalysis-v1beta1 - 0.137.0-SNAPSHOT + 0.137.0 com.google.api.grpc grpc-google-cloud-containeranalysis-v1beta1 - 0.137.0-SNAPSHOT + 0.137.0 com.google.api.grpc grpc-google-cloud-containeranalysis-v1 - 2.47.0-SNAPSHOT + 2.47.0 com.google.cloud google-cloud-containeranalysis - 2.47.0-SNAPSHOT + 2.47.0 io.grafeas grafeas - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-containeranalysis/proto-google-cloud-containeranalysis-v1/pom.xml b/java-containeranalysis/proto-google-cloud-containeranalysis-v1/pom.xml index 943c01976eb9..559d477e97f1 100644 --- a/java-containeranalysis/proto-google-cloud-containeranalysis-v1/pom.xml +++ b/java-containeranalysis/proto-google-cloud-containeranalysis-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-containeranalysis-v1 - 2.47.0-SNAPSHOT + 2.47.0 proto-google-cloud-containeranalysis-v1 PROTO library for proto-google-cloud-containeranalysis-v1 com.google.cloud google-cloud-containeranalysis-parent - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-containeranalysis/proto-google-cloud-containeranalysis-v1beta1/pom.xml b/java-containeranalysis/proto-google-cloud-containeranalysis-v1beta1/pom.xml index c172284d94d5..1cade2087c38 100644 --- a/java-containeranalysis/proto-google-cloud-containeranalysis-v1beta1/pom.xml +++ b/java-containeranalysis/proto-google-cloud-containeranalysis-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-containeranalysis-v1beta1 - 0.137.0-SNAPSHOT + 0.137.0 proto-google-cloud-containeranalysis-v1beta1 PROTO library for proto-google-cloud-containeranalysis-v1beta1 com.google.cloud google-cloud-containeranalysis-parent - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-contentwarehouse/README.md b/java-contentwarehouse/README.md index 584b65c039ae..5a81a32e3a43 100644 --- a/java-contentwarehouse/README.md +++ b/java-contentwarehouse/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-contentwarehouse - 0.41.0 + 0.42.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-contentwarehouse:0.41.0' +implementation 'com.google.cloud:google-cloud-contentwarehouse:0.42.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-contentwarehouse" % "0.41.0" +libraryDependencies += "com.google.cloud" % "google-cloud-contentwarehouse" % "0.42.0" ``` diff --git a/java-contentwarehouse/google-cloud-contentwarehouse-bom/pom.xml b/java-contentwarehouse/google-cloud-contentwarehouse-bom/pom.xml index e9b1e91c39f5..bd30f4dc3c0b 100644 --- a/java-contentwarehouse/google-cloud-contentwarehouse-bom/pom.xml +++ b/java-contentwarehouse/google-cloud-contentwarehouse-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-contentwarehouse-bom - 0.42.0-SNAPSHOT + 0.42.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-contentwarehouse - 0.42.0-SNAPSHOT + 0.42.0 com.google.api.grpc grpc-google-cloud-contentwarehouse-v1 - 0.42.0-SNAPSHOT + 0.42.0 com.google.api.grpc proto-google-cloud-contentwarehouse-v1 - 0.42.0-SNAPSHOT + 0.42.0 diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/pom.xml b/java-contentwarehouse/google-cloud-contentwarehouse/pom.xml index c088061a9de9..686c44d483c7 100644 --- a/java-contentwarehouse/google-cloud-contentwarehouse/pom.xml +++ b/java-contentwarehouse/google-cloud-contentwarehouse/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-contentwarehouse - 0.42.0-SNAPSHOT + 0.42.0 jar Google Document AI Warehouse Document AI Warehouse Document AI Warehouse is an integrated cloud-native GCP platform to store, search, organize, govern and analyze documents and their structured metadata. com.google.cloud google-cloud-contentwarehouse-parent - 0.42.0-SNAPSHOT + 0.42.0 google-cloud-contentwarehouse diff --git a/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/pom.xml b/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/pom.xml index cd1221cd4832..83465d4a742b 100644 --- a/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/pom.xml +++ b/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-contentwarehouse-v1 - 0.42.0-SNAPSHOT + 0.42.0 grpc-google-cloud-contentwarehouse-v1 GRPC library for google-cloud-contentwarehouse com.google.cloud google-cloud-contentwarehouse-parent - 0.42.0-SNAPSHOT + 0.42.0 diff --git a/java-contentwarehouse/pom.xml b/java-contentwarehouse/pom.xml index 24c8690bb864..81b0df30fbfb 100644 --- a/java-contentwarehouse/pom.xml +++ b/java-contentwarehouse/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-contentwarehouse-parent pom - 0.42.0-SNAPSHOT + 0.42.0 Google Document AI Warehouse Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-contentwarehouse - 0.42.0-SNAPSHOT + 0.42.0 com.google.api.grpc grpc-google-cloud-contentwarehouse-v1 - 0.42.0-SNAPSHOT + 0.42.0 com.google.api.grpc proto-google-cloud-contentwarehouse-v1 - 0.42.0-SNAPSHOT + 0.42.0 @@ -48,7 +48,7 @@ com.google.cloud google-cloud-document-ai - 2.50.0-SNAPSHOT + 2.50.0 diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/pom.xml b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/pom.xml index 620a6d06632e..ea8a63650a61 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/pom.xml +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-contentwarehouse-v1 - 0.42.0-SNAPSHOT + 0.42.0 proto-google-cloud-contentwarehouse-v1 Proto library for google-cloud-contentwarehouse com.google.cloud google-cloud-contentwarehouse-parent - 0.42.0-SNAPSHOT + 0.42.0 diff --git a/java-data-fusion/CHANGELOG.md b/java-data-fusion/CHANGELOG.md index 51c23ea1fdf7..b84e0b200c81 100644 --- a/java-data-fusion/CHANGELOG.md +++ b/java-data-fusion/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 1.46.0 (2024-06-27) + +* No change + + ## 1.45.0 (None) * No change diff --git a/java-data-fusion/README.md b/java-data-fusion/README.md index e73e5f55ae95..e8a560d84283 100644 --- a/java-data-fusion/README.md +++ b/java-data-fusion/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-data-fusion - 1.45.0 + 1.46.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-data-fusion:1.45.0' +implementation 'com.google.cloud:google-cloud-data-fusion:1.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-data-fusion" % "1.45.0" +libraryDependencies += "com.google.cloud" % "google-cloud-data-fusion" % "1.46.0" ``` diff --git a/java-data-fusion/google-cloud-data-fusion-bom/pom.xml b/java-data-fusion/google-cloud-data-fusion-bom/pom.xml index ef9887118987..8f3a66b5499a 100644 --- a/java-data-fusion/google-cloud-data-fusion-bom/pom.xml +++ b/java-data-fusion/google-cloud-data-fusion-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-data-fusion-bom - 1.46.0-SNAPSHOT + 1.46.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-data-fusion - 1.46.0-SNAPSHOT + 1.46.0 com.google.api.grpc grpc-google-cloud-data-fusion-v1beta1 - 0.50.0-SNAPSHOT + 0.50.0 com.google.api.grpc grpc-google-cloud-data-fusion-v1 - 1.46.0-SNAPSHOT + 1.46.0 com.google.api.grpc proto-google-cloud-data-fusion-v1beta1 - 0.50.0-SNAPSHOT + 0.50.0 com.google.api.grpc proto-google-cloud-data-fusion-v1 - 1.46.0-SNAPSHOT + 1.46.0 diff --git a/java-data-fusion/google-cloud-data-fusion/pom.xml b/java-data-fusion/google-cloud-data-fusion/pom.xml index 1269a1ff59c7..3afaa7a9c87d 100644 --- a/java-data-fusion/google-cloud-data-fusion/pom.xml +++ b/java-data-fusion/google-cloud-data-fusion/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-data-fusion - 1.46.0-SNAPSHOT + 1.46.0 jar Google Cloud Data Fusion Cloud Data Fusion is a fully managed, cloud-native, enterprise data integration service for quickly building and managing data pipelines. com.google.cloud google-cloud-data-fusion-parent - 1.46.0-SNAPSHOT + 1.46.0 google-cloud-data-fusion diff --git a/java-data-fusion/grpc-google-cloud-data-fusion-v1/pom.xml b/java-data-fusion/grpc-google-cloud-data-fusion-v1/pom.xml index ba5ef5b054e6..7ddccc356474 100644 --- a/java-data-fusion/grpc-google-cloud-data-fusion-v1/pom.xml +++ b/java-data-fusion/grpc-google-cloud-data-fusion-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-data-fusion-v1 - 1.46.0-SNAPSHOT + 1.46.0 grpc-google-cloud-data-fusion-v1 GRPC library for google-cloud-data-fusion com.google.cloud google-cloud-data-fusion-parent - 1.46.0-SNAPSHOT + 1.46.0 diff --git a/java-data-fusion/grpc-google-cloud-data-fusion-v1beta1/pom.xml b/java-data-fusion/grpc-google-cloud-data-fusion-v1beta1/pom.xml index ca10156cb150..0eab1a333e18 100644 --- a/java-data-fusion/grpc-google-cloud-data-fusion-v1beta1/pom.xml +++ b/java-data-fusion/grpc-google-cloud-data-fusion-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-data-fusion-v1beta1 - 0.50.0-SNAPSHOT + 0.50.0 grpc-google-cloud-data-fusion-v1beta1 GRPC library for google-cloud-data-fusion com.google.cloud google-cloud-data-fusion-parent - 1.46.0-SNAPSHOT + 1.46.0 diff --git a/java-data-fusion/pom.xml b/java-data-fusion/pom.xml index 87f0e3bfdb90..1fece7ea2e45 100644 --- a/java-data-fusion/pom.xml +++ b/java-data-fusion/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-data-fusion-parent pom - 1.46.0-SNAPSHOT + 1.46.0 Google Cloud Data Fusion Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-data-fusion - 1.46.0-SNAPSHOT + 1.46.0 com.google.api.grpc grpc-google-cloud-data-fusion-v1beta1 - 0.50.0-SNAPSHOT + 0.50.0 com.google.api.grpc grpc-google-cloud-data-fusion-v1 - 1.46.0-SNAPSHOT + 1.46.0 com.google.api.grpc proto-google-cloud-data-fusion-v1beta1 - 0.50.0-SNAPSHOT + 0.50.0 com.google.api.grpc proto-google-cloud-data-fusion-v1 - 1.46.0-SNAPSHOT + 1.46.0 diff --git a/java-data-fusion/proto-google-cloud-data-fusion-v1/pom.xml b/java-data-fusion/proto-google-cloud-data-fusion-v1/pom.xml index a44f8881cd6e..52cf7159a9d0 100644 --- a/java-data-fusion/proto-google-cloud-data-fusion-v1/pom.xml +++ b/java-data-fusion/proto-google-cloud-data-fusion-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-data-fusion-v1 - 1.46.0-SNAPSHOT + 1.46.0 proto-google-cloud-data-fusion-v1 Proto library for google-cloud-data-fusion com.google.cloud google-cloud-data-fusion-parent - 1.46.0-SNAPSHOT + 1.46.0 diff --git a/java-data-fusion/proto-google-cloud-data-fusion-v1beta1/pom.xml b/java-data-fusion/proto-google-cloud-data-fusion-v1beta1/pom.xml index bf9ef0eeb47d..6f6efc70d345 100644 --- a/java-data-fusion/proto-google-cloud-data-fusion-v1beta1/pom.xml +++ b/java-data-fusion/proto-google-cloud-data-fusion-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-data-fusion-v1beta1 - 0.50.0-SNAPSHOT + 0.50.0 proto-google-cloud-data-fusion-v1beta1 Proto library for google-cloud-data-fusion com.google.cloud google-cloud-data-fusion-parent - 1.46.0-SNAPSHOT + 1.46.0 diff --git a/java-datacatalog/CHANGELOG.md b/java-datacatalog/CHANGELOG.md index a2874d3330cd..6d43612554d8 100644 --- a/java-datacatalog/CHANGELOG.md +++ b/java-datacatalog/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 1.52.0 (2024-06-27) + +* No change + + ## 1.51.0 (None) * No change diff --git a/java-datacatalog/README.md b/java-datacatalog/README.md index 332cf92728bd..d9174204ca9d 100644 --- a/java-datacatalog/README.md +++ b/java-datacatalog/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-datacatalog - 1.51.0 + 1.52.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datacatalog:1.51.0' +implementation 'com.google.cloud:google-cloud-datacatalog:1.52.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datacatalog" % "1.51.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datacatalog" % "1.52.0" ``` diff --git a/java-datacatalog/google-cloud-datacatalog-bom/pom.xml b/java-datacatalog/google-cloud-datacatalog-bom/pom.xml index 45181eeb1de0..a4e1b2b31722 100644 --- a/java-datacatalog/google-cloud-datacatalog-bom/pom.xml +++ b/java-datacatalog/google-cloud-datacatalog-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-datacatalog-bom - 1.52.0-SNAPSHOT + 1.52.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-datacatalog - 1.52.0-SNAPSHOT + 1.52.0 com.google.api.grpc grpc-google-cloud-datacatalog-v1 - 1.52.0-SNAPSHOT + 1.52.0 com.google.api.grpc grpc-google-cloud-datacatalog-v1beta1 - 0.89.0-SNAPSHOT + 0.89.0 com.google.api.grpc proto-google-cloud-datacatalog-v1 - 1.52.0-SNAPSHOT + 1.52.0 com.google.api.grpc proto-google-cloud-datacatalog-v1beta1 - 0.89.0-SNAPSHOT + 0.89.0 diff --git a/java-datacatalog/google-cloud-datacatalog/pom.xml b/java-datacatalog/google-cloud-datacatalog/pom.xml index f58eefa18408..508ea4c7b6e0 100644 --- a/java-datacatalog/google-cloud-datacatalog/pom.xml +++ b/java-datacatalog/google-cloud-datacatalog/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-datacatalog - 1.52.0-SNAPSHOT + 1.52.0 jar Google Cloud Data Catalog Java idiomatic client for Google Cloud Data Catalog com.google.cloud google-cloud-datacatalog-parent - 1.52.0-SNAPSHOT + 1.52.0 google-cloud-datacatalog diff --git a/java-datacatalog/grpc-google-cloud-datacatalog-v1/pom.xml b/java-datacatalog/grpc-google-cloud-datacatalog-v1/pom.xml index 432486f892bc..74ff322e5b4e 100644 --- a/java-datacatalog/grpc-google-cloud-datacatalog-v1/pom.xml +++ b/java-datacatalog/grpc-google-cloud-datacatalog-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-datacatalog-v1 - 1.52.0-SNAPSHOT + 1.52.0 grpc-google-cloud-datacatalog-v1 GRPC library for grpc-google-cloud-datacatalog-v1 com.google.cloud google-cloud-datacatalog-parent - 1.52.0-SNAPSHOT + 1.52.0 diff --git a/java-datacatalog/grpc-google-cloud-datacatalog-v1beta1/pom.xml b/java-datacatalog/grpc-google-cloud-datacatalog-v1beta1/pom.xml index 66c348765fa5..917a3a9e258c 100644 --- a/java-datacatalog/grpc-google-cloud-datacatalog-v1beta1/pom.xml +++ b/java-datacatalog/grpc-google-cloud-datacatalog-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-datacatalog-v1beta1 - 0.89.0-SNAPSHOT + 0.89.0 grpc-google-cloud-datacatalog-v1beta1 GRPC library for grpc-google-cloud-datacatalog-v1beta1 com.google.cloud google-cloud-datacatalog-parent - 1.52.0-SNAPSHOT + 1.52.0 diff --git a/java-datacatalog/pom.xml b/java-datacatalog/pom.xml index a30a9d9e2feb..cb01c7953157 100644 --- a/java-datacatalog/pom.xml +++ b/java-datacatalog/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-datacatalog-parent pom - 1.52.0-SNAPSHOT + 1.52.0 Google Cloud Data Catalog Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-datacatalog-v1 - 1.52.0-SNAPSHOT + 1.52.0 com.google.api.grpc proto-google-cloud-datacatalog-v1beta1 - 0.89.0-SNAPSHOT + 0.89.0 com.google.api.grpc grpc-google-cloud-datacatalog-v1 - 1.52.0-SNAPSHOT + 1.52.0 com.google.api.grpc grpc-google-cloud-datacatalog-v1beta1 - 0.89.0-SNAPSHOT + 0.89.0 com.google.cloud google-cloud-datacatalog - 1.52.0-SNAPSHOT + 1.52.0 diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/pom.xml b/java-datacatalog/proto-google-cloud-datacatalog-v1/pom.xml index 337dbd8c24b4..4ba54bc665e8 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/pom.xml +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-datacatalog-v1 - 1.52.0-SNAPSHOT + 1.52.0 proto-google-cloud-datacatalog-v1 PROTO library for proto-google-cloud-datacatalog-v1 com.google.cloud google-cloud-datacatalog-parent - 1.52.0-SNAPSHOT + 1.52.0 diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/pom.xml b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/pom.xml index d6c42bd7f6a5..48479850d438 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/pom.xml +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-datacatalog-v1beta1 - 0.89.0-SNAPSHOT + 0.89.0 proto-google-cloud-datacatalog-v1beta1 PROTO library for proto-google-cloud-datacatalog-v1beta1 com.google.cloud google-cloud-datacatalog-parent - 1.52.0-SNAPSHOT + 1.52.0 diff --git a/java-dataflow/CHANGELOG.md b/java-dataflow/CHANGELOG.md index 25f8b172d215..16cc35e2c31e 100644 --- a/java-dataflow/CHANGELOG.md +++ b/java-dataflow/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.50.0 (2024-06-27) + +* No change + + ## 0.49.0 (None) * No change diff --git a/java-dataflow/README.md b/java-dataflow/README.md index bcd7f327e533..73f68765115a 100644 --- a/java-dataflow/README.md +++ b/java-dataflow/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataflow - 0.49.0 + 0.50.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataflow:0.49.0' +implementation 'com.google.cloud:google-cloud-dataflow:0.50.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataflow" % "0.49.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataflow" % "0.50.0" ``` diff --git a/java-dataflow/google-cloud-dataflow-bom/pom.xml b/java-dataflow/google-cloud-dataflow-bom/pom.xml index b855a5b21b23..d0cbb9e9496a 100644 --- a/java-dataflow/google-cloud-dataflow-bom/pom.xml +++ b/java-dataflow/google-cloud-dataflow-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-dataflow-bom - 0.50.0-SNAPSHOT + 0.50.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-dataflow - 0.50.0-SNAPSHOT + 0.50.0 com.google.api.grpc grpc-google-cloud-dataflow-v1beta3 - 0.50.0-SNAPSHOT + 0.50.0 com.google.api.grpc proto-google-cloud-dataflow-v1beta3 - 0.50.0-SNAPSHOT + 0.50.0 diff --git a/java-dataflow/google-cloud-dataflow/pom.xml b/java-dataflow/google-cloud-dataflow/pom.xml index 2aaceb7779d1..47d541f86031 100644 --- a/java-dataflow/google-cloud-dataflow/pom.xml +++ b/java-dataflow/google-cloud-dataflow/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-dataflow - 0.50.0-SNAPSHOT + 0.50.0 jar Google Dataflow Dataflow is a managed service for executing a wide variety of data processing patterns. com.google.cloud google-cloud-dataflow-parent - 0.50.0-SNAPSHOT + 0.50.0 google-cloud-dataflow diff --git a/java-dataflow/grpc-google-cloud-dataflow-v1beta3/pom.xml b/java-dataflow/grpc-google-cloud-dataflow-v1beta3/pom.xml index 685eeed2dbed..1589eec86827 100644 --- a/java-dataflow/grpc-google-cloud-dataflow-v1beta3/pom.xml +++ b/java-dataflow/grpc-google-cloud-dataflow-v1beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataflow-v1beta3 - 0.50.0-SNAPSHOT + 0.50.0 grpc-google-cloud-dataflow-v1beta3 GRPC library for google-cloud-dataflow com.google.cloud google-cloud-dataflow-parent - 0.50.0-SNAPSHOT + 0.50.0 diff --git a/java-dataflow/pom.xml b/java-dataflow/pom.xml index b7eb31585f02..e96c450d596a 100644 --- a/java-dataflow/pom.xml +++ b/java-dataflow/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataflow-parent pom - 0.50.0-SNAPSHOT + 0.50.0 Google Dataflow Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-dataflow - 0.50.0-SNAPSHOT + 0.50.0 com.google.api.grpc grpc-google-cloud-dataflow-v1beta3 - 0.50.0-SNAPSHOT + 0.50.0 com.google.api.grpc proto-google-cloud-dataflow-v1beta3 - 0.50.0-SNAPSHOT + 0.50.0 diff --git a/java-dataflow/proto-google-cloud-dataflow-v1beta3/pom.xml b/java-dataflow/proto-google-cloud-dataflow-v1beta3/pom.xml index 4462ff7ff82e..85a37e8f6d74 100644 --- a/java-dataflow/proto-google-cloud-dataflow-v1beta3/pom.xml +++ b/java-dataflow/proto-google-cloud-dataflow-v1beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataflow-v1beta3 - 0.50.0-SNAPSHOT + 0.50.0 proto-google-cloud-dataflow-v1beta3 Proto library for google-cloud-dataflow com.google.cloud google-cloud-dataflow-parent - 0.50.0-SNAPSHOT + 0.50.0 diff --git a/java-dataform/CHANGELOG.md b/java-dataform/CHANGELOG.md index 637b8e686e61..301ba351a0e9 100644 --- a/java-dataform/CHANGELOG.md +++ b/java-dataform/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.45.0 (2024-06-27) + +* No change + + ## 0.44.0 (None) * No change diff --git a/java-dataform/README.md b/java-dataform/README.md index 2bc809d99df3..fdef9cf9c525 100644 --- a/java-dataform/README.md +++ b/java-dataform/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataform - 0.44.0 + 0.45.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataform:0.44.0' +implementation 'com.google.cloud:google-cloud-dataform:0.45.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataform" % "0.44.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataform" % "0.45.0" ``` diff --git a/java-dataform/google-cloud-dataform-bom/pom.xml b/java-dataform/google-cloud-dataform-bom/pom.xml index a8df4fff74a5..7bf51479f4b7 100644 --- a/java-dataform/google-cloud-dataform-bom/pom.xml +++ b/java-dataform/google-cloud-dataform-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-dataform-bom - 0.45.0-SNAPSHOT + 0.45.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-dataform - 0.45.0-SNAPSHOT + 0.45.0 com.google.api.grpc grpc-google-cloud-dataform-v1alpha2 - 0.45.0-SNAPSHOT + 0.45.0 com.google.api.grpc grpc-google-cloud-dataform-v1beta1 - 0.45.0-SNAPSHOT + 0.45.0 com.google.api.grpc proto-google-cloud-dataform-v1alpha2 - 0.45.0-SNAPSHOT + 0.45.0 com.google.api.grpc proto-google-cloud-dataform-v1beta1 - 0.45.0-SNAPSHOT + 0.45.0 diff --git a/java-dataform/google-cloud-dataform/pom.xml b/java-dataform/google-cloud-dataform/pom.xml index 2d986f4fc444..318433158a15 100644 --- a/java-dataform/google-cloud-dataform/pom.xml +++ b/java-dataform/google-cloud-dataform/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-dataform - 0.45.0-SNAPSHOT + 0.45.0 jar Google Cloud Dataform Cloud Dataform Help analytics teams manage data inside BigQuery using SQL. com.google.cloud google-cloud-dataform-parent - 0.45.0-SNAPSHOT + 0.45.0 google-cloud-dataform diff --git a/java-dataform/grpc-google-cloud-dataform-v1alpha2/pom.xml b/java-dataform/grpc-google-cloud-dataform-v1alpha2/pom.xml index 84ecb4964630..154f077763a9 100644 --- a/java-dataform/grpc-google-cloud-dataform-v1alpha2/pom.xml +++ b/java-dataform/grpc-google-cloud-dataform-v1alpha2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataform-v1alpha2 - 0.45.0-SNAPSHOT + 0.45.0 grpc-google-cloud-dataform-v1alpha2 GRPC library for google-cloud-dataform com.google.cloud google-cloud-dataform-parent - 0.45.0-SNAPSHOT + 0.45.0 diff --git a/java-dataform/grpc-google-cloud-dataform-v1beta1/pom.xml b/java-dataform/grpc-google-cloud-dataform-v1beta1/pom.xml index a169f3b531d4..e311eef35f40 100644 --- a/java-dataform/grpc-google-cloud-dataform-v1beta1/pom.xml +++ b/java-dataform/grpc-google-cloud-dataform-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataform-v1beta1 - 0.45.0-SNAPSHOT + 0.45.0 grpc-google-cloud-dataform-v1beta1 GRPC library for google-cloud-dataform com.google.cloud google-cloud-dataform-parent - 0.45.0-SNAPSHOT + 0.45.0 diff --git a/java-dataform/pom.xml b/java-dataform/pom.xml index d7d61ccb4efc..b748dfe3776d 100644 --- a/java-dataform/pom.xml +++ b/java-dataform/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataform-parent pom - 0.45.0-SNAPSHOT + 0.45.0 Google Cloud Dataform Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-dataform - 0.45.0-SNAPSHOT + 0.45.0 com.google.api.grpc proto-google-cloud-dataform-v1beta1 - 0.45.0-SNAPSHOT + 0.45.0 com.google.api.grpc grpc-google-cloud-dataform-v1beta1 - 0.45.0-SNAPSHOT + 0.45.0 com.google.api.grpc grpc-google-cloud-dataform-v1alpha2 - 0.45.0-SNAPSHOT + 0.45.0 com.google.api.grpc proto-google-cloud-dataform-v1alpha2 - 0.45.0-SNAPSHOT + 0.45.0 diff --git a/java-dataform/proto-google-cloud-dataform-v1alpha2/pom.xml b/java-dataform/proto-google-cloud-dataform-v1alpha2/pom.xml index 74c41befc6bb..b99fe91c4c9b 100644 --- a/java-dataform/proto-google-cloud-dataform-v1alpha2/pom.xml +++ b/java-dataform/proto-google-cloud-dataform-v1alpha2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataform-v1alpha2 - 0.45.0-SNAPSHOT + 0.45.0 proto-google-cloud-dataform-v1alpha2 Proto library for google-cloud-dataform com.google.cloud google-cloud-dataform-parent - 0.45.0-SNAPSHOT + 0.45.0 diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/pom.xml b/java-dataform/proto-google-cloud-dataform-v1beta1/pom.xml index 9abfba1c94c5..aa4d46dd8c9c 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/pom.xml +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataform-v1beta1 - 0.45.0-SNAPSHOT + 0.45.0 proto-google-cloud-dataform-v1beta1 Proto library for google-cloud-dataform com.google.cloud google-cloud-dataform-parent - 0.45.0-SNAPSHOT + 0.45.0 diff --git a/java-datalabeling/CHANGELOG.md b/java-datalabeling/CHANGELOG.md index df4bd67a653d..484b032b6a33 100644 --- a/java-datalabeling/CHANGELOG.md +++ b/java-datalabeling/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.166.0 (2024-06-27) + +* No change + + ## 0.165.0 (None) * No change diff --git a/java-datalabeling/README.md b/java-datalabeling/README.md index 1b7fc2a7c813..7b815ce7092a 100644 --- a/java-datalabeling/README.md +++ b/java-datalabeling/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-datalabeling - 0.165.0 + 0.166.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datalabeling:0.165.0' +implementation 'com.google.cloud:google-cloud-datalabeling:0.166.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datalabeling" % "0.165.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datalabeling" % "0.166.0" ``` diff --git a/java-datalabeling/google-cloud-datalabeling-bom/pom.xml b/java-datalabeling/google-cloud-datalabeling-bom/pom.xml index b3aeac9f5a78..df58ed09553b 100644 --- a/java-datalabeling/google-cloud-datalabeling-bom/pom.xml +++ b/java-datalabeling/google-cloud-datalabeling-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-datalabeling-bom - 0.166.0-SNAPSHOT + 0.166.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-datalabeling - 0.166.0-SNAPSHOT + 0.166.0 com.google.api.grpc grpc-google-cloud-datalabeling-v1beta1 - 0.131.0-SNAPSHOT + 0.131.0 com.google.api.grpc proto-google-cloud-datalabeling-v1beta1 - 0.131.0-SNAPSHOT + 0.131.0 diff --git a/java-datalabeling/google-cloud-datalabeling/pom.xml b/java-datalabeling/google-cloud-datalabeling/pom.xml index 0608de7f9d80..a9347642d27a 100644 --- a/java-datalabeling/google-cloud-datalabeling/pom.xml +++ b/java-datalabeling/google-cloud-datalabeling/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-datalabeling - 0.166.0-SNAPSHOT + 0.166.0 jar Google Cloud Data Labeling Java idiomatic client for Google Cloud Data Labeling com.google.cloud google-cloud-datalabeling-parent - 0.166.0-SNAPSHOT + 0.166.0 google-cloud-datalabeling diff --git a/java-datalabeling/grpc-google-cloud-datalabeling-v1beta1/pom.xml b/java-datalabeling/grpc-google-cloud-datalabeling-v1beta1/pom.xml index 83737eb811e9..ab6db7fea2bb 100644 --- a/java-datalabeling/grpc-google-cloud-datalabeling-v1beta1/pom.xml +++ b/java-datalabeling/grpc-google-cloud-datalabeling-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-datalabeling-v1beta1 - 0.131.0-SNAPSHOT + 0.131.0 grpc-google-cloud-datalabeling-v1beta1 GRPC library for grpc-google-cloud-datalabeling-v1beta1 com.google.cloud google-cloud-datalabeling-parent - 0.166.0-SNAPSHOT + 0.166.0 diff --git a/java-datalabeling/pom.xml b/java-datalabeling/pom.xml index 48d8cd5000c9..dd958fddd35a 100644 --- a/java-datalabeling/pom.xml +++ b/java-datalabeling/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-datalabeling-parent pom - 0.166.0-SNAPSHOT + 0.166.0 Google Cloud Data Labeling Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.api.grpc proto-google-cloud-datalabeling-v1beta1 - 0.131.0-SNAPSHOT + 0.131.0 com.google.api.grpc grpc-google-cloud-datalabeling-v1beta1 - 0.131.0-SNAPSHOT + 0.131.0 com.google.cloud google-cloud-datalabeling - 0.166.0-SNAPSHOT + 0.166.0 diff --git a/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/pom.xml b/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/pom.xml index 34f9b7c3a620..6fedf92e462d 100644 --- a/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/pom.xml +++ b/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-datalabeling-v1beta1 - 0.131.0-SNAPSHOT + 0.131.0 proto-google-cloud-datalabeling-v1beta1 PROTO library for proto-google-cloud-datalabeling-v1beta1 com.google.cloud google-cloud-datalabeling-parent - 0.166.0-SNAPSHOT + 0.166.0 diff --git a/java-datalineage/CHANGELOG.md b/java-datalineage/CHANGELOG.md index b508c8fb4393..62e75fdf1a8e 100644 --- a/java-datalineage/CHANGELOG.md +++ b/java-datalineage/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.38.0 (2024-06-27) + +* No change + + ## 0.37.0 (None) * No change diff --git a/java-datalineage/README.md b/java-datalineage/README.md index fa0b0dedd16a..9fbc4174222d 100644 --- a/java-datalineage/README.md +++ b/java-datalineage/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-datalineage - 0.37.0 + 0.38.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datalineage:0.37.0' +implementation 'com.google.cloud:google-cloud-datalineage:0.38.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datalineage" % "0.37.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datalineage" % "0.38.0" ``` diff --git a/java-datalineage/google-cloud-datalineage-bom/pom.xml b/java-datalineage/google-cloud-datalineage-bom/pom.xml index 58a3e9e77417..8267d4562896 100644 --- a/java-datalineage/google-cloud-datalineage-bom/pom.xml +++ b/java-datalineage/google-cloud-datalineage-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-datalineage-bom - 0.38.0-SNAPSHOT + 0.38.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-datalineage - 0.38.0-SNAPSHOT + 0.38.0 com.google.api.grpc grpc-google-cloud-datalineage-v1 - 0.38.0-SNAPSHOT + 0.38.0 com.google.api.grpc proto-google-cloud-datalineage-v1 - 0.38.0-SNAPSHOT + 0.38.0 diff --git a/java-datalineage/google-cloud-datalineage/pom.xml b/java-datalineage/google-cloud-datalineage/pom.xml index 5fd0cf161372..f074b75a2cb3 100644 --- a/java-datalineage/google-cloud-datalineage/pom.xml +++ b/java-datalineage/google-cloud-datalineage/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-datalineage - 0.38.0-SNAPSHOT + 0.38.0 jar Google Data Lineage Data Lineage Lineage is used to track data flows between assets over time. com.google.cloud google-cloud-datalineage-parent - 0.38.0-SNAPSHOT + 0.38.0 google-cloud-datalineage diff --git a/java-datalineage/grpc-google-cloud-datalineage-v1/pom.xml b/java-datalineage/grpc-google-cloud-datalineage-v1/pom.xml index 7abc8ed6a98e..9ea25f26f9bb 100644 --- a/java-datalineage/grpc-google-cloud-datalineage-v1/pom.xml +++ b/java-datalineage/grpc-google-cloud-datalineage-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-datalineage-v1 - 0.38.0-SNAPSHOT + 0.38.0 grpc-google-cloud-datalineage-v1 GRPC library for google-cloud-datalineage com.google.cloud google-cloud-datalineage-parent - 0.38.0-SNAPSHOT + 0.38.0 diff --git a/java-datalineage/pom.xml b/java-datalineage/pom.xml index 45569e14f720..9a2c319100a4 100644 --- a/java-datalineage/pom.xml +++ b/java-datalineage/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-datalineage-parent pom - 0.38.0-SNAPSHOT + 0.38.0 Google Data Lineage Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-datalineage - 0.38.0-SNAPSHOT + 0.38.0 com.google.api.grpc grpc-google-cloud-datalineage-v1 - 0.38.0-SNAPSHOT + 0.38.0 com.google.api.grpc proto-google-cloud-datalineage-v1 - 0.38.0-SNAPSHOT + 0.38.0 diff --git a/java-datalineage/proto-google-cloud-datalineage-v1/pom.xml b/java-datalineage/proto-google-cloud-datalineage-v1/pom.xml index 036bd8b50b4d..63fe9b101829 100644 --- a/java-datalineage/proto-google-cloud-datalineage-v1/pom.xml +++ b/java-datalineage/proto-google-cloud-datalineage-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-datalineage-v1 - 0.38.0-SNAPSHOT + 0.38.0 proto-google-cloud-datalineage-v1 Proto library for google-cloud-datalineage com.google.cloud google-cloud-datalineage-parent - 0.38.0-SNAPSHOT + 0.38.0 diff --git a/java-dataplex/CHANGELOG.md b/java-dataplex/CHANGELOG.md index 484d092678be..c36de658c40c 100644 --- a/java-dataplex/CHANGELOG.md +++ b/java-dataplex/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.44.0 (2024-06-27) + +### Features + +* exposing EntrySource.location field that contains location of a resource in the source system ([666a3ac](https://github.com/googleapis/google-cloud-java/commit/666a3ac8cd0cb45da3555a1bef8dfe3edf57d257)) + + + ## 1.43.0 (None) * No change diff --git a/java-dataplex/README.md b/java-dataplex/README.md index 48c3b6baa78e..8133af066a76 100644 --- a/java-dataplex/README.md +++ b/java-dataplex/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataplex - 1.43.0 + 1.44.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataplex:1.43.0' +implementation 'com.google.cloud:google-cloud-dataplex:1.44.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataplex" % "1.43.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataplex" % "1.44.0" ``` diff --git a/java-dataplex/google-cloud-dataplex-bom/pom.xml b/java-dataplex/google-cloud-dataplex-bom/pom.xml index 9e4412c98366..b154a12e4584 100644 --- a/java-dataplex/google-cloud-dataplex-bom/pom.xml +++ b/java-dataplex/google-cloud-dataplex-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-dataplex-bom - 1.44.0-SNAPSHOT + 1.44.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-dataplex - 1.44.0-SNAPSHOT + 1.44.0 com.google.api.grpc grpc-google-cloud-dataplex-v1 - 1.44.0-SNAPSHOT + 1.44.0 com.google.api.grpc proto-google-cloud-dataplex-v1 - 1.44.0-SNAPSHOT + 1.44.0 diff --git a/java-dataplex/google-cloud-dataplex/pom.xml b/java-dataplex/google-cloud-dataplex/pom.xml index 5d3f5f443797..e140b9ae9e7c 100644 --- a/java-dataplex/google-cloud-dataplex/pom.xml +++ b/java-dataplex/google-cloud-dataplex/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-dataplex - 1.44.0-SNAPSHOT + 1.44.0 jar Google Cloud Dataplex Cloud Dataplex provides intelligent data fabric that enables organizations to centrally manage, monitor, and govern their data across data lakes, data warehouses, and data marts with consistent controls, providing access to trusted data and powering analytics at scale. com.google.cloud google-cloud-dataplex-parent - 1.44.0-SNAPSHOT + 1.44.0 google-cloud-dataplex diff --git a/java-dataplex/grpc-google-cloud-dataplex-v1/pom.xml b/java-dataplex/grpc-google-cloud-dataplex-v1/pom.xml index 652965e99358..644b153f96dd 100644 --- a/java-dataplex/grpc-google-cloud-dataplex-v1/pom.xml +++ b/java-dataplex/grpc-google-cloud-dataplex-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataplex-v1 - 1.44.0-SNAPSHOT + 1.44.0 grpc-google-cloud-dataplex-v1 GRPC library for google-cloud-dataplex com.google.cloud google-cloud-dataplex-parent - 1.44.0-SNAPSHOT + 1.44.0 diff --git a/java-dataplex/pom.xml b/java-dataplex/pom.xml index 93b48e8f1f86..866a7081408b 100644 --- a/java-dataplex/pom.xml +++ b/java-dataplex/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataplex-parent pom - 1.44.0-SNAPSHOT + 1.44.0 Google Cloud Dataplex Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-dataplex - 1.44.0-SNAPSHOT + 1.44.0 com.google.api.grpc grpc-google-cloud-dataplex-v1 - 1.44.0-SNAPSHOT + 1.44.0 com.google.api.grpc proto-google-cloud-dataplex-v1 - 1.44.0-SNAPSHOT + 1.44.0 diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/pom.xml b/java-dataplex/proto-google-cloud-dataplex-v1/pom.xml index 56388a9399fb..3d953cd78b7d 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/pom.xml +++ b/java-dataplex/proto-google-cloud-dataplex-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataplex-v1 - 1.44.0-SNAPSHOT + 1.44.0 proto-google-cloud-dataplex-v1 Proto library for google-cloud-dataplex com.google.cloud google-cloud-dataplex-parent - 1.44.0-SNAPSHOT + 1.44.0 diff --git a/java-dataproc-metastore/CHANGELOG.md b/java-dataproc-metastore/CHANGELOG.md index a03e45e33a8c..8efb0136c8f4 100644 --- a/java-dataproc-metastore/CHANGELOG.md +++ b/java-dataproc-metastore/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.47.0 (2024-06-27) + +* No change + + ## 2.46.0 (None) * No change diff --git a/java-dataproc-metastore/README.md b/java-dataproc-metastore/README.md index 7124eb32a665..dce9ed7abd6e 100644 --- a/java-dataproc-metastore/README.md +++ b/java-dataproc-metastore/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc-metastore - 2.46.0 + 2.47.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc-metastore:2.46.0' +implementation 'com.google.cloud:google-cloud-dataproc-metastore:2.47.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc-metastore" % "2.46.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc-metastore" % "2.47.0" ``` diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore-bom/pom.xml b/java-dataproc-metastore/google-cloud-dataproc-metastore-bom/pom.xml index 67b9d40ea876..1b3ac50061ab 100644 --- a/java-dataproc-metastore/google-cloud-dataproc-metastore-bom/pom.xml +++ b/java-dataproc-metastore/google-cloud-dataproc-metastore-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-dataproc-metastore-bom - 2.47.0-SNAPSHOT + 2.47.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,37 +27,37 @@ com.google.cloud google-cloud-dataproc-metastore - 2.47.0-SNAPSHOT + 2.47.0 com.google.api.grpc grpc-google-cloud-dataproc-metastore-v1beta - 0.51.0-SNAPSHOT + 0.51.0 com.google.api.grpc grpc-google-cloud-dataproc-metastore-v1alpha - 0.51.0-SNAPSHOT + 0.51.0 com.google.api.grpc grpc-google-cloud-dataproc-metastore-v1 - 2.47.0-SNAPSHOT + 2.47.0 com.google.api.grpc proto-google-cloud-dataproc-metastore-v1beta - 0.51.0-SNAPSHOT + 0.51.0 com.google.api.grpc proto-google-cloud-dataproc-metastore-v1alpha - 0.51.0-SNAPSHOT + 0.51.0 com.google.api.grpc proto-google-cloud-dataproc-metastore-v1 - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/pom.xml b/java-dataproc-metastore/google-cloud-dataproc-metastore/pom.xml index 87e025c030ae..0914f0d18b9b 100644 --- a/java-dataproc-metastore/google-cloud-dataproc-metastore/pom.xml +++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-dataproc-metastore - 2.47.0-SNAPSHOT + 2.47.0 jar Google Dataproc Metastore is a fully managed, highly available, autoscaled, autohealing, OSS-native metastore service that greatly simplifies technical metadata management. Dataproc Metastore service is based on Apache Hive metastore and serves as a critical component towards enterprise data lakes. com.google.cloud google-cloud-dataproc-metastore-parent - 2.47.0-SNAPSHOT + 2.47.0 google-cloud-dataproc-metastore diff --git a/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1/pom.xml b/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1/pom.xml index 65341049d645..121311291c8f 100644 --- a/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1/pom.xml +++ b/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-metastore-v1 - 2.47.0-SNAPSHOT + 2.47.0 grpc-google-cloud-dataproc-metastore-v1 GRPC library for google-cloud-dataproc-metastore com.google.cloud google-cloud-dataproc-metastore-parent - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1alpha/pom.xml b/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1alpha/pom.xml index b6cb8419ab13..ca8c1b94d64c 100644 --- a/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1alpha/pom.xml +++ b/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-metastore-v1alpha - 0.51.0-SNAPSHOT + 0.51.0 grpc-google-cloud-dataproc-metastore-v1alpha GRPC library for google-cloud-dataproc-metastore com.google.cloud google-cloud-dataproc-metastore-parent - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1beta/pom.xml b/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1beta/pom.xml index 7f91f09be917..a739a4a473af 100644 --- a/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1beta/pom.xml +++ b/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-metastore-v1beta - 0.51.0-SNAPSHOT + 0.51.0 grpc-google-cloud-dataproc-metastore-v1beta GRPC library for google-cloud-dataproc-metastore com.google.cloud google-cloud-dataproc-metastore-parent - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-dataproc-metastore/pom.xml b/java-dataproc-metastore/pom.xml index 4958f2787df7..0dcac46d5fa6 100644 --- a/java-dataproc-metastore/pom.xml +++ b/java-dataproc-metastore/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-metastore-parent pom - 2.47.0-SNAPSHOT + 2.47.0 Google Dataproc Metastore Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.cloud google-cloud-dataproc-metastore - 2.47.0-SNAPSHOT + 2.47.0 com.google.api.grpc grpc-google-cloud-dataproc-metastore-v1beta - 0.51.0-SNAPSHOT + 0.51.0 com.google.api.grpc grpc-google-cloud-dataproc-metastore-v1alpha - 0.51.0-SNAPSHOT + 0.51.0 com.google.api.grpc grpc-google-cloud-dataproc-metastore-v1 - 2.47.0-SNAPSHOT + 2.47.0 com.google.api.grpc proto-google-cloud-dataproc-metastore-v1beta - 0.51.0-SNAPSHOT + 0.51.0 com.google.api.grpc proto-google-cloud-dataproc-metastore-v1alpha - 0.51.0-SNAPSHOT + 0.51.0 com.google.api.grpc proto-google-cloud-dataproc-metastore-v1 - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1/pom.xml b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1/pom.xml index a81f848c60f7..27eb7f9e6c3a 100644 --- a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1/pom.xml +++ b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-metastore-v1 - 2.47.0-SNAPSHOT + 2.47.0 proto-google-cloud-dataproc-metastore-v1 Proto library for google-cloud-dataproc-metastore com.google.cloud google-cloud-dataproc-metastore-parent - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1alpha/pom.xml b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1alpha/pom.xml index f3af6cc27f37..9317ae406ad1 100644 --- a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1alpha/pom.xml +++ b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-metastore-v1alpha - 0.51.0-SNAPSHOT + 0.51.0 proto-google-cloud-dataproc-metastore-v1alpha Proto library for google-cloud-dataproc-metastore com.google.cloud google-cloud-dataproc-metastore-parent - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1beta/pom.xml b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1beta/pom.xml index b52c2985cf7b..c69767922a49 100644 --- a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1beta/pom.xml +++ b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-metastore-v1beta - 0.51.0-SNAPSHOT + 0.51.0 proto-google-cloud-dataproc-metastore-v1beta Proto library for google-cloud-dataproc-metastore com.google.cloud google-cloud-dataproc-metastore-parent - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-dataproc/CHANGELOG.md b/java-dataproc/CHANGELOG.md index 5d93465347bd..b022633738d8 100644 --- a/java-dataproc/CHANGELOG.md +++ b/java-dataproc/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 4.43.0 (2024-06-27) + +### Features + +* add the cohort and auto tuning configuration to the batch's RuntimeConfig ([666a3ac](https://github.com/googleapis/google-cloud-java/commit/666a3ac8cd0cb45da3555a1bef8dfe3edf57d257)) + + + ## 4.42.0 (None) * No change diff --git a/java-dataproc/README.md b/java-dataproc/README.md index b609d8e1821b..fa93905dccdd 100644 --- a/java-dataproc/README.md +++ b/java-dataproc/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 4.42.0 + 4.43.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc:4.42.0' +implementation 'com.google.cloud:google-cloud-dataproc:4.43.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "4.42.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "4.43.0" ``` diff --git a/java-dataproc/google-cloud-dataproc-bom/pom.xml b/java-dataproc/google-cloud-dataproc-bom/pom.xml index 87ff8d9b034f..c24733e39327 100644 --- a/java-dataproc/google-cloud-dataproc-bom/pom.xml +++ b/java-dataproc/google-cloud-dataproc-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 4.43.0-SNAPSHOT + 4.43.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-dataproc - 4.43.0-SNAPSHOT + 4.43.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.43.0-SNAPSHOT + 4.43.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.43.0-SNAPSHOT + 4.43.0 diff --git a/java-dataproc/google-cloud-dataproc/pom.xml b/java-dataproc/google-cloud-dataproc/pom.xml index 51159e5bbfd1..00e127458825 100644 --- a/java-dataproc/google-cloud-dataproc/pom.xml +++ b/java-dataproc/google-cloud-dataproc/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 4.43.0-SNAPSHOT + 4.43.0 jar Google Cloud Dataproc Java idiomatic client for Google Cloud Dataproc com.google.cloud google-cloud-dataproc-parent - 4.43.0-SNAPSHOT + 4.43.0 google-cloud-dataproc diff --git a/java-dataproc/grpc-google-cloud-dataproc-v1/pom.xml b/java-dataproc/grpc-google-cloud-dataproc-v1/pom.xml index 9fa6e0c80e79..6f1ad66e7ed1 100644 --- a/java-dataproc/grpc-google-cloud-dataproc-v1/pom.xml +++ b/java-dataproc/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.43.0-SNAPSHOT + 4.43.0 grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 4.43.0-SNAPSHOT + 4.43.0 diff --git a/java-dataproc/pom.xml b/java-dataproc/pom.xml index 413770f2bf1e..d03cfaac1b86 100644 --- a/java-dataproc/pom.xml +++ b/java-dataproc/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 4.43.0-SNAPSHOT + 4.43.0 Google Cloud Dataproc Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.43.0-SNAPSHOT + 4.43.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.43.0-SNAPSHOT + 4.43.0 com.google.cloud google-cloud-dataproc - 4.43.0-SNAPSHOT + 4.43.0 diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/pom.xml b/java-dataproc/proto-google-cloud-dataproc-v1/pom.xml index 5d9d4fe621ef..5daf7355d573 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/pom.xml +++ b/java-dataproc/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.43.0-SNAPSHOT + 4.43.0 proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 4.43.0-SNAPSHOT + 4.43.0 diff --git a/java-datastream/CHANGELOG.md b/java-datastream/CHANGELOG.md index 6746e6106628..12f10428371e 100644 --- a/java-datastream/CHANGELOG.md +++ b/java-datastream/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 1.45.0 (2024-06-27) + +* No change + + ## 1.44.0 (None) * No change diff --git a/java-datastream/README.md b/java-datastream/README.md index fbea4a13f9f9..9a08c6a7dbbe 100644 --- a/java-datastream/README.md +++ b/java-datastream/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-datastream - 1.44.0 + 1.45.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datastream:1.44.0' +implementation 'com.google.cloud:google-cloud-datastream:1.45.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datastream" % "1.44.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datastream" % "1.45.0" ``` diff --git a/java-datastream/google-cloud-datastream-bom/pom.xml b/java-datastream/google-cloud-datastream-bom/pom.xml index 227e2c40fcc9..2484c1b7d7d6 100644 --- a/java-datastream/google-cloud-datastream-bom/pom.xml +++ b/java-datastream/google-cloud-datastream-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-datastream-bom - 1.45.0-SNAPSHOT + 1.45.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-datastream - 1.45.0-SNAPSHOT + 1.45.0 com.google.api.grpc grpc-google-cloud-datastream-v1alpha1 - 0.50.0-SNAPSHOT + 0.50.0 com.google.api.grpc grpc-google-cloud-datastream-v1 - 1.45.0-SNAPSHOT + 1.45.0 com.google.api.grpc proto-google-cloud-datastream-v1alpha1 - 0.50.0-SNAPSHOT + 0.50.0 com.google.api.grpc proto-google-cloud-datastream-v1 - 1.45.0-SNAPSHOT + 1.45.0 diff --git a/java-datastream/google-cloud-datastream/pom.xml b/java-datastream/google-cloud-datastream/pom.xml index 4df44a1fa056..83c750bd5935 100644 --- a/java-datastream/google-cloud-datastream/pom.xml +++ b/java-datastream/google-cloud-datastream/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-datastream - 1.45.0-SNAPSHOT + 1.45.0 jar Google Datastream Datastream is a serverless and easy-to-use change data capture (CDC) and replication service. It allows you to synchronize data across heterogeneous databases and applications reliably, and with minimal latency and downtime. com.google.cloud google-cloud-datastream-parent - 1.45.0-SNAPSHOT + 1.45.0 google-cloud-datastream diff --git a/java-datastream/grpc-google-cloud-datastream-v1/pom.xml b/java-datastream/grpc-google-cloud-datastream-v1/pom.xml index 2d7871e461b7..44165d41cc11 100644 --- a/java-datastream/grpc-google-cloud-datastream-v1/pom.xml +++ b/java-datastream/grpc-google-cloud-datastream-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-datastream-v1 - 1.45.0-SNAPSHOT + 1.45.0 grpc-google-cloud-datastream-v1 GRPC library for google-cloud-datastream com.google.cloud google-cloud-datastream-parent - 1.45.0-SNAPSHOT + 1.45.0 diff --git a/java-datastream/grpc-google-cloud-datastream-v1alpha1/pom.xml b/java-datastream/grpc-google-cloud-datastream-v1alpha1/pom.xml index 2de1db508333..b2652db8a3db 100644 --- a/java-datastream/grpc-google-cloud-datastream-v1alpha1/pom.xml +++ b/java-datastream/grpc-google-cloud-datastream-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-datastream-v1alpha1 - 0.50.0-SNAPSHOT + 0.50.0 grpc-google-cloud-datastream-v1alpha1 GRPC library for google-cloud-datastream com.google.cloud google-cloud-datastream-parent - 1.45.0-SNAPSHOT + 1.45.0 diff --git a/java-datastream/pom.xml b/java-datastream/pom.xml index 7d3dec4d8d04..25dcf4c09f3f 100644 --- a/java-datastream/pom.xml +++ b/java-datastream/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-datastream-parent pom - 1.45.0-SNAPSHOT + 1.45.0 Google Datastream Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-datastream - 1.45.0-SNAPSHOT + 1.45.0 com.google.api.grpc proto-google-cloud-datastream-v1 - 1.45.0-SNAPSHOT + 1.45.0 com.google.api.grpc grpc-google-cloud-datastream-v1 - 1.45.0-SNAPSHOT + 1.45.0 com.google.api.grpc grpc-google-cloud-datastream-v1alpha1 - 0.50.0-SNAPSHOT + 0.50.0 com.google.api.grpc proto-google-cloud-datastream-v1alpha1 - 0.50.0-SNAPSHOT + 0.50.0 diff --git a/java-datastream/proto-google-cloud-datastream-v1/pom.xml b/java-datastream/proto-google-cloud-datastream-v1/pom.xml index 159f5a2c0a42..c030767c1f61 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/pom.xml +++ b/java-datastream/proto-google-cloud-datastream-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-datastream-v1 - 1.45.0-SNAPSHOT + 1.45.0 proto-google-cloud-datastream-v1 Proto library for google-cloud-datastream com.google.cloud google-cloud-datastream-parent - 1.45.0-SNAPSHOT + 1.45.0 diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/pom.xml b/java-datastream/proto-google-cloud-datastream-v1alpha1/pom.xml index 2456caebfc00..631b33f49bba 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/pom.xml +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-datastream-v1alpha1 - 0.50.0-SNAPSHOT + 0.50.0 proto-google-cloud-datastream-v1alpha1 Proto library for google-cloud-datastream com.google.cloud google-cloud-datastream-parent - 1.45.0-SNAPSHOT + 1.45.0 diff --git a/java-debugger-client/CHANGELOG.md b/java-debugger-client/CHANGELOG.md index ec73ff3bd17b..4300a4bff980 100644 --- a/java-debugger-client/CHANGELOG.md +++ b/java-debugger-client/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 1.46.0 (2024-06-27) + +* No change + + ## 1.45.0 (None) * No change diff --git a/java-debugger-client/README.md b/java-debugger-client/README.md index 38b67fb94f58..463c235a23a9 100644 --- a/java-debugger-client/README.md +++ b/java-debugger-client/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-debugger-client - 1.45.0 + 1.46.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-debugger-client:1.45.0' +implementation 'com.google.cloud:google-cloud-debugger-client:1.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-debugger-client" % "1.45.0" +libraryDependencies += "com.google.cloud" % "google-cloud-debugger-client" % "1.46.0" ``` diff --git a/java-debugger-client/google-cloud-debugger-client-bom/pom.xml b/java-debugger-client/google-cloud-debugger-client-bom/pom.xml index 54155e05b587..37d46f08aace 100644 --- a/java-debugger-client/google-cloud-debugger-client-bom/pom.xml +++ b/java-debugger-client/google-cloud-debugger-client-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-debugger-client-bom - 1.46.0-SNAPSHOT + 1.46.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,22 +27,22 @@ com.google.cloud google-cloud-debugger-client - 1.46.0-SNAPSHOT + 1.46.0 com.google.api.grpc grpc-google-cloud-debugger-client-v2 - 1.46.0-SNAPSHOT + 1.46.0 com.google.api.grpc proto-google-cloud-debugger-client-v2 - 1.46.0-SNAPSHOT + 1.46.0 com.google.api.grpc proto-google-devtools-source-protos - 1.46.0-SNAPSHOT + 1.46.0 diff --git a/java-debugger-client/google-cloud-debugger-client/pom.xml b/java-debugger-client/google-cloud-debugger-client/pom.xml index a46494115b88..8f7f86bb90a5 100644 --- a/java-debugger-client/google-cloud-debugger-client/pom.xml +++ b/java-debugger-client/google-cloud-debugger-client/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-debugger-client - 1.46.0-SNAPSHOT + 1.46.0 jar Google Cloud Debugger Cloud Debugger is a feature of Google Cloud Platform that lets you inspect the state of an application, at any code location, without stopping or slowing down the running app. Cloud Debugger makes it easier to view the application state without adding logging statements. com.google.cloud google-cloud-debugger-client-parent - 1.46.0-SNAPSHOT + 1.46.0 google-cloud-debugger-client diff --git a/java-debugger-client/grpc-google-cloud-debugger-client-v2/pom.xml b/java-debugger-client/grpc-google-cloud-debugger-client-v2/pom.xml index f385438d0175..56a21f0313d5 100644 --- a/java-debugger-client/grpc-google-cloud-debugger-client-v2/pom.xml +++ b/java-debugger-client/grpc-google-cloud-debugger-client-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-debugger-client-v2 - 1.46.0-SNAPSHOT + 1.46.0 grpc-google-cloud-debugger-client-v2 GRPC library for google-cloud-debugger-client com.google.cloud google-cloud-debugger-client-parent - 1.46.0-SNAPSHOT + 1.46.0 diff --git a/java-debugger-client/pom.xml b/java-debugger-client/pom.xml index d83d653454a0..c3dd41a9fff8 100644 --- a/java-debugger-client/pom.xml +++ b/java-debugger-client/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-debugger-client-parent pom - 1.46.0-SNAPSHOT + 1.46.0 Google Cloud Debugger Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,22 +29,22 @@ com.google.cloud google-cloud-debugger-client - 1.46.0-SNAPSHOT + 1.46.0 com.google.api.grpc grpc-google-cloud-debugger-client-v2 - 1.46.0-SNAPSHOT + 1.46.0 com.google.api.grpc proto-google-cloud-debugger-client-v2 - 1.46.0-SNAPSHOT + 1.46.0 com.google.api.grpc proto-google-devtools-source-protos - 1.46.0-SNAPSHOT + 1.46.0 diff --git a/java-debugger-client/proto-google-cloud-debugger-client-v2/pom.xml b/java-debugger-client/proto-google-cloud-debugger-client-v2/pom.xml index 15e65c02edd6..0b447a6ab362 100644 --- a/java-debugger-client/proto-google-cloud-debugger-client-v2/pom.xml +++ b/java-debugger-client/proto-google-cloud-debugger-client-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-debugger-client-v2 - 1.46.0-SNAPSHOT + 1.46.0 proto-google-cloud-debugger-client-v2 Proto library for google-cloud-debugger-client com.google.cloud google-cloud-debugger-client-parent - 1.46.0-SNAPSHOT + 1.46.0 diff --git a/java-debugger-client/proto-google-devtools-source-protos/pom.xml b/java-debugger-client/proto-google-devtools-source-protos/pom.xml index 3958e6972de4..a1cd56883dc0 100644 --- a/java-debugger-client/proto-google-devtools-source-protos/pom.xml +++ b/java-debugger-client/proto-google-devtools-source-protos/pom.xml @@ -5,12 +5,12 @@ 4.0.0 com.google.api.grpc proto-google-devtools-source-protos - 1.46.0-SNAPSHOT + 1.46.0 proto-google-devtools-source-protos com.google.cloud google-cloud-debugger-client-parent - 1.46.0-SNAPSHOT + 1.46.0 diff --git a/java-deploy/CHANGELOG.md b/java-deploy/CHANGELOG.md index 38f8d4524580..294e23afa6a0 100644 --- a/java-deploy/CHANGELOG.md +++ b/java-deploy/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 1.44.0 (2024-06-27) + +* No change + + ## 1.43.0 (None) * No change diff --git a/java-deploy/README.md b/java-deploy/README.md index 71bebcda008c..6f46485d532a 100644 --- a/java-deploy/README.md +++ b/java-deploy/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-deploy - 1.43.0 + 1.44.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-deploy:1.43.0' +implementation 'com.google.cloud:google-cloud-deploy:1.44.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-deploy" % "1.43.0" +libraryDependencies += "com.google.cloud" % "google-cloud-deploy" % "1.44.0" ``` diff --git a/java-deploy/google-cloud-deploy-bom/pom.xml b/java-deploy/google-cloud-deploy-bom/pom.xml index eda98994cc97..15770a7da001 100644 --- a/java-deploy/google-cloud-deploy-bom/pom.xml +++ b/java-deploy/google-cloud-deploy-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-deploy-bom - 1.44.0-SNAPSHOT + 1.44.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-deploy - 1.44.0-SNAPSHOT + 1.44.0 com.google.api.grpc grpc-google-cloud-deploy-v1 - 1.44.0-SNAPSHOT + 1.44.0 com.google.api.grpc proto-google-cloud-deploy-v1 - 1.44.0-SNAPSHOT + 1.44.0 diff --git a/java-deploy/google-cloud-deploy/pom.xml b/java-deploy/google-cloud-deploy/pom.xml index 99f2d3340884..2a7d274e01d8 100644 --- a/java-deploy/google-cloud-deploy/pom.xml +++ b/java-deploy/google-cloud-deploy/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-deploy - 1.44.0-SNAPSHOT + 1.44.0 jar Google Google CLoud Deploy Google CLoud Deploy is a service that automates delivery of your applications to a series of target environments in a defined sequence com.google.cloud google-cloud-deploy-parent - 1.44.0-SNAPSHOT + 1.44.0 google-cloud-deploy diff --git a/java-deploy/grpc-google-cloud-deploy-v1/pom.xml b/java-deploy/grpc-google-cloud-deploy-v1/pom.xml index c8bd58175631..e807120d89e4 100644 --- a/java-deploy/grpc-google-cloud-deploy-v1/pom.xml +++ b/java-deploy/grpc-google-cloud-deploy-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-deploy-v1 - 1.44.0-SNAPSHOT + 1.44.0 grpc-google-cloud-deploy-v1 GRPC library for google-cloud-deploy com.google.cloud google-cloud-deploy-parent - 1.44.0-SNAPSHOT + 1.44.0 diff --git a/java-deploy/pom.xml b/java-deploy/pom.xml index 09903ad9629a..0b35549160e9 100644 --- a/java-deploy/pom.xml +++ b/java-deploy/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-deploy-parent pom - 1.44.0-SNAPSHOT + 1.44.0 Google Google CLoud Deploy Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-deploy - 1.44.0-SNAPSHOT + 1.44.0 com.google.api.grpc grpc-google-cloud-deploy-v1 - 1.44.0-SNAPSHOT + 1.44.0 com.google.api.grpc proto-google-cloud-deploy-v1 - 1.44.0-SNAPSHOT + 1.44.0 diff --git a/java-deploy/proto-google-cloud-deploy-v1/pom.xml b/java-deploy/proto-google-cloud-deploy-v1/pom.xml index fa489907accd..88b55fcf87d8 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/pom.xml +++ b/java-deploy/proto-google-cloud-deploy-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-deploy-v1 - 1.44.0-SNAPSHOT + 1.44.0 proto-google-cloud-deploy-v1 Proto library for google-cloud-deploy com.google.cloud google-cloud-deploy-parent - 1.44.0-SNAPSHOT + 1.44.0 diff --git a/java-developerconnect/CHANGELOG.md b/java-developerconnect/CHANGELOG.md index ae661a4d489b..027ef2c28cee 100644 --- a/java-developerconnect/CHANGELOG.md +++ b/java-developerconnect/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.3.0 (2024-06-27) + +* No change + + ## 0.2.0 (None) * No change diff --git a/java-developerconnect/README.md b/java-developerconnect/README.md index 97a988547a06..12dc1447b947 100644 --- a/java-developerconnect/README.md +++ b/java-developerconnect/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-developerconnect - 0.2.0 + 0.3.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-developerconnect:0.2.0' +implementation 'com.google.cloud:google-cloud-developerconnect:0.3.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-developerconnect" % "0.2.0" +libraryDependencies += "com.google.cloud" % "google-cloud-developerconnect" % "0.3.0" ``` diff --git a/java-developerconnect/google-cloud-developerconnect-bom/pom.xml b/java-developerconnect/google-cloud-developerconnect-bom/pom.xml index e8055a33ba09..1ebb6f7865ea 100644 --- a/java-developerconnect/google-cloud-developerconnect-bom/pom.xml +++ b/java-developerconnect/google-cloud-developerconnect-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-developerconnect-bom - 0.3.0-SNAPSHOT + 0.3.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-developerconnect - 0.3.0-SNAPSHOT + 0.3.0 com.google.api.grpc grpc-google-cloud-developerconnect-v1 - 0.3.0-SNAPSHOT + 0.3.0 com.google.api.grpc proto-google-cloud-developerconnect-v1 - 0.3.0-SNAPSHOT + 0.3.0 diff --git a/java-developerconnect/google-cloud-developerconnect/pom.xml b/java-developerconnect/google-cloud-developerconnect/pom.xml index faabda4e9215..74e29f644c4d 100644 --- a/java-developerconnect/google-cloud-developerconnect/pom.xml +++ b/java-developerconnect/google-cloud-developerconnect/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-developerconnect - 0.3.0-SNAPSHOT + 0.3.0 jar Google Developer Connect API Developer Connect API Connect third-party source code management to Google com.google.cloud google-cloud-developerconnect-parent - 0.3.0-SNAPSHOT + 0.3.0 google-cloud-developerconnect diff --git a/java-developerconnect/grpc-google-cloud-developerconnect-v1/pom.xml b/java-developerconnect/grpc-google-cloud-developerconnect-v1/pom.xml index cd8374985cbd..f94be387b28f 100644 --- a/java-developerconnect/grpc-google-cloud-developerconnect-v1/pom.xml +++ b/java-developerconnect/grpc-google-cloud-developerconnect-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-developerconnect-v1 - 0.3.0-SNAPSHOT + 0.3.0 grpc-google-cloud-developerconnect-v1 GRPC library for google-cloud-developerconnect com.google.cloud google-cloud-developerconnect-parent - 0.3.0-SNAPSHOT + 0.3.0 diff --git a/java-developerconnect/pom.xml b/java-developerconnect/pom.xml index 525f8f9a2db2..846eb4cbfd56 100644 --- a/java-developerconnect/pom.xml +++ b/java-developerconnect/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-developerconnect-parent pom - 0.3.0-SNAPSHOT + 0.3.0 Google Developer Connect API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-developerconnect - 0.3.0-SNAPSHOT + 0.3.0 com.google.api.grpc grpc-google-cloud-developerconnect-v1 - 0.3.0-SNAPSHOT + 0.3.0 com.google.api.grpc proto-google-cloud-developerconnect-v1 - 0.3.0-SNAPSHOT + 0.3.0 diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/pom.xml b/java-developerconnect/proto-google-cloud-developerconnect-v1/pom.xml index 46b2a933d328..0972e0fd3c24 100644 --- a/java-developerconnect/proto-google-cloud-developerconnect-v1/pom.xml +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-developerconnect-v1 - 0.3.0-SNAPSHOT + 0.3.0 proto-google-cloud-developerconnect-v1 Proto library for google-cloud-developerconnect com.google.cloud google-cloud-developerconnect-parent - 0.3.0-SNAPSHOT + 0.3.0 diff --git a/java-dialogflow-cx/CHANGELOG.md b/java-dialogflow-cx/CHANGELOG.md index 3ed2fb6bcc44..c86b529a66d6 100644 --- a/java-dialogflow-cx/CHANGELOG.md +++ b/java-dialogflow-cx/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 0.57.0 (2024-06-27) + +### Features + +* An existing field `start_flow` is moved in to oneof in message `.google.cloud.dialogflow.cx.v3beta1.Agent` +* An existing field `start_flow` is moved in to oneof in message `.google.cloud.dialogflow.cx.v3beta1.Agent` ([4be1db5](https://github.com/googleapis/google-cloud-java/commit/4be1db5cfca842d85e167b8ed033ebcbcbd758dd)) + + + ## 0.56.0 (None) * No change diff --git a/java-dialogflow-cx/README.md b/java-dialogflow-cx/README.md index 794e8b180cec..465b7044884d 100644 --- a/java-dialogflow-cx/README.md +++ b/java-dialogflow-cx/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dialogflow-cx - 0.56.0 + 0.57.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dialogflow-cx:0.56.0' +implementation 'com.google.cloud:google-cloud-dialogflow-cx:0.57.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow-cx" % "0.56.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow-cx" % "0.57.0" ``` diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx-bom/pom.xml b/java-dialogflow-cx/google-cloud-dialogflow-cx-bom/pom.xml index 45fa57ba0c59..d0509ca656e1 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx-bom/pom.xml +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-dialogflow-cx-bom - 0.57.0-SNAPSHOT + 0.57.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-dialogflow-cx - 0.57.0-SNAPSHOT + 0.57.0 com.google.api.grpc grpc-google-cloud-dialogflow-cx-v3beta1 - 0.57.0-SNAPSHOT + 0.57.0 com.google.api.grpc grpc-google-cloud-dialogflow-cx-v3 - 0.57.0-SNAPSHOT + 0.57.0 com.google.api.grpc proto-google-cloud-dialogflow-cx-v3beta1 - 0.57.0-SNAPSHOT + 0.57.0 com.google.api.grpc proto-google-cloud-dialogflow-cx-v3 - 0.57.0-SNAPSHOT + 0.57.0 diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/pom.xml b/java-dialogflow-cx/google-cloud-dialogflow-cx/pom.xml index def38d5b9b01..97578d6769b5 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/pom.xml +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-dialogflow-cx - 0.57.0-SNAPSHOT + 0.57.0 jar Google Dialogflow CX provides a new way of designing agents, taking a state machine approach to agent design. This gives you clear and explicit control over a conversation, a better end-user experience, and a better development workflow. com.google.cloud google-cloud-dialogflow-cx-parent - 0.57.0-SNAPSHOT + 0.57.0 google-cloud-dialogflow-cx diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/pom.xml b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/pom.xml index 8bdf0ddf3727..1996440a860c 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/pom.xml +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dialogflow-cx-v3 - 0.57.0-SNAPSHOT + 0.57.0 grpc-google-cloud-dialogflow-cx-v3 GRPC library for grpc-google-cloud-dialogflow-cx-v3 com.google.cloud google-cloud-dialogflow-cx-parent - 0.57.0-SNAPSHOT + 0.57.0 diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/pom.xml b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/pom.xml index 9928ca0a4af9..419d1f01d60f 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/pom.xml +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dialogflow-cx-v3beta1 - 0.57.0-SNAPSHOT + 0.57.0 grpc-google-cloud-dialogflow-cx-v3beta1 GRPC library for grpc-google-cloud-dialogflow-cx-v3beta1 com.google.cloud google-cloud-dialogflow-cx-parent - 0.57.0-SNAPSHOT + 0.57.0 diff --git a/java-dialogflow-cx/pom.xml b/java-dialogflow-cx/pom.xml index a73b76290c7d..fdfad1b7f95a 100644 --- a/java-dialogflow-cx/pom.xml +++ b/java-dialogflow-cx/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dialogflow-cx-parent pom - 0.57.0-SNAPSHOT + 0.57.0 Google Dialogflow CX Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-dialogflow-cx - 0.57.0-SNAPSHOT + 0.57.0 com.google.api.grpc proto-google-cloud-dialogflow-cx-v3beta1 - 0.57.0-SNAPSHOT + 0.57.0 com.google.api.grpc proto-google-cloud-dialogflow-cx-v3 - 0.57.0-SNAPSHOT + 0.57.0 com.google.api.grpc grpc-google-cloud-dialogflow-cx-v3beta1 - 0.57.0-SNAPSHOT + 0.57.0 com.google.api.grpc grpc-google-cloud-dialogflow-cx-v3 - 0.57.0-SNAPSHOT + 0.57.0 diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/pom.xml b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/pom.xml index 1683d5c7cc65..db7d152c3dbc 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/pom.xml +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dialogflow-cx-v3 - 0.57.0-SNAPSHOT + 0.57.0 proto-google-cloud-dialogflow-cx-v3 PROTO library for proto-google-cloud-dialogflow-cx-v3 com.google.cloud google-cloud-dialogflow-cx-parent - 0.57.0-SNAPSHOT + 0.57.0 diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/pom.xml b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/pom.xml index 00898f2b26f9..cd7d8c22aff9 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/pom.xml +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dialogflow-cx-v3beta1 - 0.57.0-SNAPSHOT + 0.57.0 proto-google-cloud-dialogflow-cx-v3beta1 PROTO library for proto-google-cloud-dialogflow-cx-v3beta1 com.google.cloud google-cloud-dialogflow-cx-parent - 0.57.0-SNAPSHOT + 0.57.0 diff --git a/java-dialogflow/CHANGELOG.md b/java-dialogflow/CHANGELOG.md index d0f58d9e1069..3a73e4f865e1 100644 --- a/java-dialogflow/CHANGELOG.md +++ b/java-dialogflow/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 4.52.0 (2024-06-27) + +* No change + + ## 4.51.0 (None) * No change diff --git a/java-dialogflow/README.md b/java-dialogflow/README.md index 2a6c3ac5fef8..84f4ed355559 100644 --- a/java-dialogflow/README.md +++ b/java-dialogflow/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dialogflow - 4.51.0 + 4.52.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dialogflow:4.51.0' +implementation 'com.google.cloud:google-cloud-dialogflow:4.52.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow" % "4.51.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow" % "4.52.0" ``` diff --git a/java-dialogflow/google-cloud-dialogflow-bom/pom.xml b/java-dialogflow/google-cloud-dialogflow-bom/pom.xml index bc85258538fe..10dd6f6715ba 100644 --- a/java-dialogflow/google-cloud-dialogflow-bom/pom.xml +++ b/java-dialogflow/google-cloud-dialogflow-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-dialogflow-bom - 4.52.0-SNAPSHOT + 4.52.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-dialogflow - 4.52.0-SNAPSHOT + 4.52.0 com.google.api.grpc grpc-google-cloud-dialogflow-v2beta1 - 0.150.0-SNAPSHOT + 0.150.0 com.google.api.grpc grpc-google-cloud-dialogflow-v2 - 4.52.0-SNAPSHOT + 4.52.0 com.google.api.grpc proto-google-cloud-dialogflow-v2 - 4.52.0-SNAPSHOT + 4.52.0 com.google.api.grpc proto-google-cloud-dialogflow-v2beta1 - 0.150.0-SNAPSHOT + 0.150.0 diff --git a/java-dialogflow/google-cloud-dialogflow/pom.xml b/java-dialogflow/google-cloud-dialogflow/pom.xml index 2aeff5f2e169..363580165f2d 100644 --- a/java-dialogflow/google-cloud-dialogflow/pom.xml +++ b/java-dialogflow/google-cloud-dialogflow/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-dialogflow - 4.52.0-SNAPSHOT + 4.52.0 jar Google Cloud Dialog Flow API Java idiomatic client for Google Cloud Dialog Flow API com.google.cloud google-cloud-dialogflow-parent - 4.52.0-SNAPSHOT + 4.52.0 google-cloud-dialogflow diff --git a/java-dialogflow/grpc-google-cloud-dialogflow-v2/pom.xml b/java-dialogflow/grpc-google-cloud-dialogflow-v2/pom.xml index 802f28a3d4c0..2eb3c814b2e6 100644 --- a/java-dialogflow/grpc-google-cloud-dialogflow-v2/pom.xml +++ b/java-dialogflow/grpc-google-cloud-dialogflow-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dialogflow-v2 - 4.52.0-SNAPSHOT + 4.52.0 grpc-google-cloud-dialogflow-v2 GRPC library for grpc-google-cloud-dialogflow-v2 com.google.cloud google-cloud-dialogflow-parent - 4.52.0-SNAPSHOT + 4.52.0 diff --git a/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/pom.xml b/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/pom.xml index fa52559d0a8a..481e3f6bc2dd 100644 --- a/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/pom.xml +++ b/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dialogflow-v2beta1 - 0.150.0-SNAPSHOT + 0.150.0 grpc-google-cloud-dialogflow-v2beta1 GRPC library for grpc-google-cloud-dialogflow-v2beta1 com.google.cloud google-cloud-dialogflow-parent - 4.52.0-SNAPSHOT + 4.52.0 diff --git a/java-dialogflow/pom.xml b/java-dialogflow/pom.xml index 7c525e6c117f..d7203c500017 100644 --- a/java-dialogflow/pom.xml +++ b/java-dialogflow/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dialogflow-parent pom - 4.52.0-SNAPSHOT + 4.52.0 Google Cloud Dialog Flow API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-dialogflow-v2 - 4.52.0-SNAPSHOT + 4.52.0 com.google.api.grpc proto-google-cloud-dialogflow-v2beta1 - 0.150.0-SNAPSHOT + 0.150.0 com.google.api.grpc grpc-google-cloud-dialogflow-v2beta1 - 0.150.0-SNAPSHOT + 0.150.0 com.google.api.grpc grpc-google-cloud-dialogflow-v2 - 4.52.0-SNAPSHOT + 4.52.0 com.google.cloud google-cloud-dialogflow - 4.52.0-SNAPSHOT + 4.52.0 diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/pom.xml b/java-dialogflow/proto-google-cloud-dialogflow-v2/pom.xml index 95e08cab2681..f9d3087a5714 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/pom.xml +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dialogflow-v2 - 4.52.0-SNAPSHOT + 4.52.0 proto-google-cloud-dialogflow-v2 PROTO library for proto-google-cloud-dialogflow-v2 com.google.cloud google-cloud-dialogflow-parent - 4.52.0-SNAPSHOT + 4.52.0 diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/pom.xml b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/pom.xml index d8ea932a20ff..30633e4d4767 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/pom.xml +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dialogflow-v2beta1 - 0.150.0-SNAPSHOT + 0.150.0 proto-google-cloud-dialogflow-v2beta1 PROTO library for proto-google-cloud-dialogflow-v2beta1 com.google.cloud google-cloud-dialogflow-parent - 4.52.0-SNAPSHOT + 4.52.0 diff --git a/java-discoveryengine/CHANGELOG.md b/java-discoveryengine/CHANGELOG.md index 40be18576d51..c6fafc6ff045 100644 --- a/java-discoveryengine/CHANGELOG.md +++ b/java-discoveryengine/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.42.0 (2024-06-27) + +* No change + + ## 0.41.0 (None) * No change diff --git a/java-discoveryengine/README.md b/java-discoveryengine/README.md index af8381a7e19e..35ffca940a75 100644 --- a/java-discoveryengine/README.md +++ b/java-discoveryengine/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-discoveryengine - 0.41.0 + 0.42.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-discoveryengine:0.41.0' +implementation 'com.google.cloud:google-cloud-discoveryengine:0.42.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-discoveryengine" % "0.41.0" +libraryDependencies += "com.google.cloud" % "google-cloud-discoveryengine" % "0.42.0" ``` diff --git a/java-discoveryengine/google-cloud-discoveryengine-bom/pom.xml b/java-discoveryengine/google-cloud-discoveryengine-bom/pom.xml index 89d866d1ca8c..3640c5b91c30 100644 --- a/java-discoveryengine/google-cloud-discoveryengine-bom/pom.xml +++ b/java-discoveryengine/google-cloud-discoveryengine-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-discoveryengine-bom - 0.42.0-SNAPSHOT + 0.42.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,37 +27,37 @@ com.google.cloud google-cloud-discoveryengine - 0.42.0-SNAPSHOT + 0.42.0 com.google.api.grpc grpc-google-cloud-discoveryengine-v1beta - 0.42.0-SNAPSHOT + 0.42.0 com.google.api.grpc grpc-google-cloud-discoveryengine-v1 - 0.42.0-SNAPSHOT + 0.42.0 com.google.api.grpc grpc-google-cloud-discoveryengine-v1alpha - 0.42.0-SNAPSHOT + 0.42.0 com.google.api.grpc proto-google-cloud-discoveryengine-v1beta - 0.42.0-SNAPSHOT + 0.42.0 com.google.api.grpc proto-google-cloud-discoveryengine-v1 - 0.42.0-SNAPSHOT + 0.42.0 com.google.api.grpc proto-google-cloud-discoveryengine-v1alpha - 0.42.0-SNAPSHOT + 0.42.0 diff --git a/java-discoveryengine/google-cloud-discoveryengine/pom.xml b/java-discoveryengine/google-cloud-discoveryengine/pom.xml index 39a75cffda1d..b6326211ae7c 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/pom.xml +++ b/java-discoveryengine/google-cloud-discoveryengine/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-discoveryengine - 0.42.0-SNAPSHOT + 0.42.0 jar Google Discovery Engine API Discovery Engine API A Cloud API that offers search and recommendation discoverability for documents from different industry verticals (e.g. media, retail, etc.). com.google.cloud google-cloud-discoveryengine-parent - 0.42.0-SNAPSHOT + 0.42.0 google-cloud-discoveryengine diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/pom.xml b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/pom.xml index c91c03dd2d68..7c6b0286c048 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/pom.xml +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-discoveryengine-v1 - 0.42.0-SNAPSHOT + 0.42.0 grpc-google-cloud-discoveryengine-v1 GRPC library for google-cloud-discoveryengine com.google.cloud google-cloud-discoveryengine-parent - 0.42.0-SNAPSHOT + 0.42.0 diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/pom.xml b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/pom.xml index d842c74c01db..b94066338813 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/pom.xml +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-discoveryengine-v1alpha - 0.42.0-SNAPSHOT + 0.42.0 grpc-google-cloud-discoveryengine-v1alpha GRPC library for google-cloud-discoveryengine com.google.cloud google-cloud-discoveryengine-parent - 0.42.0-SNAPSHOT + 0.42.0 diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/pom.xml b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/pom.xml index 92d33930254a..2d03a58b5cef 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/pom.xml +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-discoveryengine-v1beta - 0.42.0-SNAPSHOT + 0.42.0 grpc-google-cloud-discoveryengine-v1beta GRPC library for google-cloud-discoveryengine com.google.cloud google-cloud-discoveryengine-parent - 0.42.0-SNAPSHOT + 0.42.0 diff --git a/java-discoveryengine/pom.xml b/java-discoveryengine/pom.xml index 4731bb39302b..bd29ea2eed51 100644 --- a/java-discoveryengine/pom.xml +++ b/java-discoveryengine/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-discoveryengine-parent pom - 0.42.0-SNAPSHOT + 0.42.0 Google Discovery Engine API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.cloud google-cloud-discoveryengine - 0.42.0-SNAPSHOT + 0.42.0 com.google.api.grpc proto-google-cloud-discoveryengine-v1alpha - 0.42.0-SNAPSHOT + 0.42.0 com.google.api.grpc grpc-google-cloud-discoveryengine-v1alpha - 0.42.0-SNAPSHOT + 0.42.0 com.google.api.grpc proto-google-cloud-discoveryengine-v1 - 0.42.0-SNAPSHOT + 0.42.0 com.google.api.grpc grpc-google-cloud-discoveryengine-v1 - 0.42.0-SNAPSHOT + 0.42.0 com.google.api.grpc grpc-google-cloud-discoveryengine-v1beta - 0.42.0-SNAPSHOT + 0.42.0 com.google.api.grpc proto-google-cloud-discoveryengine-v1beta - 0.42.0-SNAPSHOT + 0.42.0 diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/pom.xml b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/pom.xml index 2ecc0f820fd5..076c208c9b7e 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/pom.xml +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-discoveryengine-v1 - 0.42.0-SNAPSHOT + 0.42.0 proto-google-cloud-discoveryengine-v1 Proto library for google-cloud-discoveryengine com.google.cloud google-cloud-discoveryengine-parent - 0.42.0-SNAPSHOT + 0.42.0 diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/pom.xml b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/pom.xml index 087d6d13f864..d2eaac245dd4 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/pom.xml +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-discoveryengine-v1alpha - 0.42.0-SNAPSHOT + 0.42.0 proto-google-cloud-discoveryengine-v1alpha Proto library for google-cloud-discoveryengine com.google.cloud google-cloud-discoveryengine-parent - 0.42.0-SNAPSHOT + 0.42.0 diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/pom.xml b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/pom.xml index 52fe16f5d93c..3ced3a43d5c8 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/pom.xml +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-discoveryengine-v1beta - 0.42.0-SNAPSHOT + 0.42.0 proto-google-cloud-discoveryengine-v1beta Proto library for google-cloud-discoveryengine com.google.cloud google-cloud-discoveryengine-parent - 0.42.0-SNAPSHOT + 0.42.0 diff --git a/java-distributedcloudedge/CHANGELOG.md b/java-distributedcloudedge/CHANGELOG.md index 99345cba2ea2..0b246d859021 100644 --- a/java-distributedcloudedge/CHANGELOG.md +++ b/java-distributedcloudedge/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.43.0 (2024-06-27) + +* No change + + ## 0.42.0 (None) * No change diff --git a/java-distributedcloudedge/README.md b/java-distributedcloudedge/README.md index 9f0afc953486..aaaf480df9bd 100644 --- a/java-distributedcloudedge/README.md +++ b/java-distributedcloudedge/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-distributedcloudedge - 0.42.0 + 0.43.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-distributedcloudedge:0.42.0' +implementation 'com.google.cloud:google-cloud-distributedcloudedge:0.43.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-distributedcloudedge" % "0.42.0" +libraryDependencies += "com.google.cloud" % "google-cloud-distributedcloudedge" % "0.43.0" ``` diff --git a/java-distributedcloudedge/google-cloud-distributedcloudedge-bom/pom.xml b/java-distributedcloudedge/google-cloud-distributedcloudedge-bom/pom.xml index b0666ed009c2..4dcacad1ad61 100644 --- a/java-distributedcloudedge/google-cloud-distributedcloudedge-bom/pom.xml +++ b/java-distributedcloudedge/google-cloud-distributedcloudedge-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-distributedcloudedge-bom - 0.43.0-SNAPSHOT + 0.43.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-distributedcloudedge - 0.43.0-SNAPSHOT + 0.43.0 com.google.api.grpc grpc-google-cloud-distributedcloudedge-v1 - 0.43.0-SNAPSHOT + 0.43.0 com.google.api.grpc proto-google-cloud-distributedcloudedge-v1 - 0.43.0-SNAPSHOT + 0.43.0 diff --git a/java-distributedcloudedge/google-cloud-distributedcloudedge/pom.xml b/java-distributedcloudedge/google-cloud-distributedcloudedge/pom.xml index 19682312bfa1..8c2ba1982e08 100644 --- a/java-distributedcloudedge/google-cloud-distributedcloudedge/pom.xml +++ b/java-distributedcloudedge/google-cloud-distributedcloudedge/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-distributedcloudedge - 0.43.0-SNAPSHOT + 0.43.0 jar Google Google Distributed Cloud Edge Google Distributed Cloud Edge Google Distributed Cloud Edge allows you to run Kubernetes clusters on dedicated hardware provided and maintained by Google that is separate from the Google Cloud data center. com.google.cloud google-cloud-distributedcloudedge-parent - 0.43.0-SNAPSHOT + 0.43.0 google-cloud-distributedcloudedge diff --git a/java-distributedcloudedge/grpc-google-cloud-distributedcloudedge-v1/pom.xml b/java-distributedcloudedge/grpc-google-cloud-distributedcloudedge-v1/pom.xml index 02907490ce77..2866b7001358 100644 --- a/java-distributedcloudedge/grpc-google-cloud-distributedcloudedge-v1/pom.xml +++ b/java-distributedcloudedge/grpc-google-cloud-distributedcloudedge-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-distributedcloudedge-v1 - 0.43.0-SNAPSHOT + 0.43.0 grpc-google-cloud-distributedcloudedge-v1 GRPC library for google-cloud-distributedcloudedge com.google.cloud google-cloud-distributedcloudedge-parent - 0.43.0-SNAPSHOT + 0.43.0 diff --git a/java-distributedcloudedge/pom.xml b/java-distributedcloudedge/pom.xml index 786a662a5ff6..f5a1ecc33795 100644 --- a/java-distributedcloudedge/pom.xml +++ b/java-distributedcloudedge/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-distributedcloudedge-parent pom - 0.43.0-SNAPSHOT + 0.43.0 Google Google Distributed Cloud Edge Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-distributedcloudedge - 0.43.0-SNAPSHOT + 0.43.0 com.google.api.grpc grpc-google-cloud-distributedcloudedge-v1 - 0.43.0-SNAPSHOT + 0.43.0 com.google.api.grpc proto-google-cloud-distributedcloudedge-v1 - 0.43.0-SNAPSHOT + 0.43.0 diff --git a/java-distributedcloudedge/proto-google-cloud-distributedcloudedge-v1/pom.xml b/java-distributedcloudedge/proto-google-cloud-distributedcloudedge-v1/pom.xml index 0e367df805c3..e7ec95d332a7 100644 --- a/java-distributedcloudedge/proto-google-cloud-distributedcloudedge-v1/pom.xml +++ b/java-distributedcloudedge/proto-google-cloud-distributedcloudedge-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-distributedcloudedge-v1 - 0.43.0-SNAPSHOT + 0.43.0 proto-google-cloud-distributedcloudedge-v1 Proto library for google-cloud-distributedcloudedge com.google.cloud google-cloud-distributedcloudedge-parent - 0.43.0-SNAPSHOT + 0.43.0 diff --git a/java-dlp/CHANGELOG.md b/java-dlp/CHANGELOG.md index 9e75f291ae5a..3e899a58c053 100644 --- a/java-dlp/CHANGELOG.md +++ b/java-dlp/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 3.50.0 (2024-06-27) + +* No change + + ## 3.49.0 (None) * No change diff --git a/java-dlp/README.md b/java-dlp/README.md index 39eacf653924..3a8d9eb17eda 100644 --- a/java-dlp/README.md +++ b/java-dlp/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dlp - 3.49.0 + 3.50.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dlp:3.49.0' +implementation 'com.google.cloud:google-cloud-dlp:3.50.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dlp" % "3.49.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dlp" % "3.50.0" ``` diff --git a/java-dlp/google-cloud-dlp-bom/pom.xml b/java-dlp/google-cloud-dlp-bom/pom.xml index 9abc5480ce9e..54c8eaca0a83 100644 --- a/java-dlp/google-cloud-dlp-bom/pom.xml +++ b/java-dlp/google-cloud-dlp-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-dlp-bom - 3.50.0-SNAPSHOT + 3.50.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-dlp - 3.50.0-SNAPSHOT + 3.50.0 com.google.api.grpc grpc-google-cloud-dlp-v2 - 3.50.0-SNAPSHOT + 3.50.0 com.google.api.grpc proto-google-cloud-dlp-v2 - 3.50.0-SNAPSHOT + 3.50.0 diff --git a/java-dlp/google-cloud-dlp/pom.xml b/java-dlp/google-cloud-dlp/pom.xml index e3d497fc0170..d098dd8aa2f2 100644 --- a/java-dlp/google-cloud-dlp/pom.xml +++ b/java-dlp/google-cloud-dlp/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-dlp - 3.50.0-SNAPSHOT + 3.50.0 jar Google Cloud DLP Java idiomatic client for Google Cloud DLP com.google.cloud google-cloud-dlp-parent - 3.50.0-SNAPSHOT + 3.50.0 google-cloud-dlp diff --git a/java-dlp/grpc-google-cloud-dlp-v2/pom.xml b/java-dlp/grpc-google-cloud-dlp-v2/pom.xml index 5d231f714b86..e9f72f5959b5 100644 --- a/java-dlp/grpc-google-cloud-dlp-v2/pom.xml +++ b/java-dlp/grpc-google-cloud-dlp-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dlp-v2 - 3.50.0-SNAPSHOT + 3.50.0 grpc-google-cloud-dlp-v2 GRPC library for grpc-google-cloud-dlp-v2 com.google.cloud google-cloud-dlp-parent - 3.50.0-SNAPSHOT + 3.50.0 diff --git a/java-dlp/pom.xml b/java-dlp/pom.xml index 2df81d2fa606..711bf4872353 100644 --- a/java-dlp/pom.xml +++ b/java-dlp/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dlp-parent pom - 3.50.0-SNAPSHOT + 3.50.0 Google Cloud DLP Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.api.grpc proto-google-cloud-dlp-v2 - 3.50.0-SNAPSHOT + 3.50.0 com.google.api.grpc grpc-google-cloud-dlp-v2 - 3.50.0-SNAPSHOT + 3.50.0 com.google.cloud google-cloud-dlp - 3.50.0-SNAPSHOT + 3.50.0 diff --git a/java-dlp/proto-google-cloud-dlp-v2/pom.xml b/java-dlp/proto-google-cloud-dlp-v2/pom.xml index 3d26cb31f9c1..7eeea9fd44da 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/pom.xml +++ b/java-dlp/proto-google-cloud-dlp-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dlp-v2 - 3.50.0-SNAPSHOT + 3.50.0 proto-google-cloud-dlp-v2 PROTO library for proto-google-cloud-dlp-v2 com.google.cloud google-cloud-dlp-parent - 3.50.0-SNAPSHOT + 3.50.0 diff --git a/java-dms/CHANGELOG.md b/java-dms/CHANGELOG.md index 683e05b1a2bf..d12c748739fe 100644 --- a/java-dms/CHANGELOG.md +++ b/java-dms/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.45.0 (2024-06-27) + +* No change + + ## 2.44.0 (None) * No change diff --git a/java-dms/README.md b/java-dms/README.md index 04b0dbed88a6..7d3a846d9d0b 100644 --- a/java-dms/README.md +++ b/java-dms/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dms - 2.44.0 + 2.45.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dms:2.44.0' +implementation 'com.google.cloud:google-cloud-dms:2.45.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dms" % "2.44.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dms" % "2.45.0" ``` diff --git a/java-dms/google-cloud-dms-bom/pom.xml b/java-dms/google-cloud-dms-bom/pom.xml index 7dce33e4a2cd..e0495200f66f 100644 --- a/java-dms/google-cloud-dms-bom/pom.xml +++ b/java-dms/google-cloud-dms-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-dms-bom - 2.45.0-SNAPSHOT + 2.45.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-dms - 2.45.0-SNAPSHOT + 2.45.0 com.google.api.grpc grpc-google-cloud-dms-v1 - 2.45.0-SNAPSHOT + 2.45.0 com.google.api.grpc proto-google-cloud-dms-v1 - 2.45.0-SNAPSHOT + 2.45.0 diff --git a/java-dms/google-cloud-dms/pom.xml b/java-dms/google-cloud-dms/pom.xml index cfb995009d4a..6547192d18d0 100644 --- a/java-dms/google-cloud-dms/pom.xml +++ b/java-dms/google-cloud-dms/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-dms - 2.45.0-SNAPSHOT + 2.45.0 jar Google Database Migration Service Database Migration Service makes it easier for you to migrate your data to Google Cloud. This service helps you lift and shift your MySQL and PostgreSQL workloads into Cloud SQL. com.google.cloud google-cloud-dms-parent - 2.45.0-SNAPSHOT + 2.45.0 google-cloud-dms diff --git a/java-dms/grpc-google-cloud-dms-v1/pom.xml b/java-dms/grpc-google-cloud-dms-v1/pom.xml index 34b78000d670..3215a477b7db 100644 --- a/java-dms/grpc-google-cloud-dms-v1/pom.xml +++ b/java-dms/grpc-google-cloud-dms-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dms-v1 - 2.45.0-SNAPSHOT + 2.45.0 grpc-google-cloud-dms-v1 GRPC library for google-cloud-dms com.google.cloud google-cloud-dms-parent - 2.45.0-SNAPSHOT + 2.45.0 diff --git a/java-dms/pom.xml b/java-dms/pom.xml index 5a6f98f0242c..3ccdb67af57b 100644 --- a/java-dms/pom.xml +++ b/java-dms/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dms-parent pom - 2.45.0-SNAPSHOT + 2.45.0 Google Database Migration Service Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,18 +29,18 @@ com.google.cloud google-cloud-dms - 2.45.0-SNAPSHOT + 2.45.0 com.google.api.grpc proto-google-cloud-dms-v1 - 2.45.0-SNAPSHOT + 2.45.0 com.google.api.grpc grpc-google-cloud-dms-v1 - 2.45.0-SNAPSHOT + 2.45.0 diff --git a/java-dms/proto-google-cloud-dms-v1/pom.xml b/java-dms/proto-google-cloud-dms-v1/pom.xml index 7e2f391c01ff..b838af44c543 100644 --- a/java-dms/proto-google-cloud-dms-v1/pom.xml +++ b/java-dms/proto-google-cloud-dms-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dms-v1 - 2.45.0-SNAPSHOT + 2.45.0 proto-google-cloud-dms-v1 Proto library for google-cloud-dms com.google.cloud google-cloud-dms-parent - 2.45.0-SNAPSHOT + 2.45.0 diff --git a/java-dns/CHANGELOG.md b/java-dns/CHANGELOG.md index da7282347906..f7bc741d2c40 100644 --- a/java-dns/CHANGELOG.md +++ b/java-dns/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.44.0 (2024-06-27) + +* No change + + ## 2.43.0 (None) * No change diff --git a/java-dns/README.md b/java-dns/README.md index 569799109137..881ea43a6d3d 100644 --- a/java-dns/README.md +++ b/java-dns/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dns - 2.43.0 + 2.44.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dns:2.43.0' +implementation 'com.google.cloud:google-cloud-dns:2.44.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dns" % "2.43.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dns" % "2.44.0" ``` diff --git a/java-dns/pom.xml b/java-dns/pom.xml index dd363ed7d01c..4056a30aa8e0 100644 --- a/java-dns/pom.xml +++ b/java-dns/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dns jar - 2.44.0-SNAPSHOT + 2.44.0 Google Cloud DNS Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml diff --git a/java-document-ai/CHANGELOG.md b/java-document-ai/CHANGELOG.md index ca79afd4328a..454209b2e05a 100644 --- a/java-document-ai/CHANGELOG.md +++ b/java-document-ai/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.50.0 (2024-06-27) + +* No change + + ## 2.49.0 (None) * No change diff --git a/java-document-ai/README.md b/java-document-ai/README.md index faa32821ace4..3ec10fce5130 100644 --- a/java-document-ai/README.md +++ b/java-document-ai/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-document-ai - 2.49.0 + 2.50.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-document-ai:2.49.0' +implementation 'com.google.cloud:google-cloud-document-ai:2.50.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-document-ai" % "2.49.0" +libraryDependencies += "com.google.cloud" % "google-cloud-document-ai" % "2.50.0" ``` diff --git a/java-document-ai/google-cloud-document-ai-bom/pom.xml b/java-document-ai/google-cloud-document-ai-bom/pom.xml index f94f48432106..7a91e02bd5bb 100644 --- a/java-document-ai/google-cloud-document-ai-bom/pom.xml +++ b/java-document-ai/google-cloud-document-ai-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-document-ai-bom - 2.50.0-SNAPSHOT + 2.50.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -21,47 +21,47 @@ com.google.cloud google-cloud-document-ai - 2.50.0-SNAPSHOT + 2.50.0 com.google.api.grpc grpc-google-cloud-document-ai-v1beta1 - 0.62.0-SNAPSHOT + 0.62.0 com.google.api.grpc grpc-google-cloud-document-ai-v1beta2 - 0.62.0-SNAPSHOT + 0.62.0 com.google.api.grpc grpc-google-cloud-document-ai-v1beta3 - 0.62.0-SNAPSHOT + 0.62.0 com.google.api.grpc grpc-google-cloud-document-ai-v1 - 2.50.0-SNAPSHOT + 2.50.0 com.google.api.grpc proto-google-cloud-document-ai-v1beta1 - 0.62.0-SNAPSHOT + 0.62.0 com.google.api.grpc proto-google-cloud-document-ai-v1beta2 - 0.62.0-SNAPSHOT + 0.62.0 com.google.api.grpc proto-google-cloud-document-ai-v1beta3 - 0.62.0-SNAPSHOT + 0.62.0 com.google.api.grpc proto-google-cloud-document-ai-v1 - 2.50.0-SNAPSHOT + 2.50.0 diff --git a/java-document-ai/google-cloud-document-ai/pom.xml b/java-document-ai/google-cloud-document-ai/pom.xml index 7aa4b8919dd1..2f8ae7c760cc 100644 --- a/java-document-ai/google-cloud-document-ai/pom.xml +++ b/java-document-ai/google-cloud-document-ai/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-document-ai - 2.50.0-SNAPSHOT + 2.50.0 jar Google Cloud Document AI Java idiomatic client for Google Cloud Document AI com.google.cloud google-cloud-document-ai-parent - 2.50.0-SNAPSHOT + 2.50.0 google-cloud-document-ai diff --git a/java-document-ai/grpc-google-cloud-document-ai-v1/pom.xml b/java-document-ai/grpc-google-cloud-document-ai-v1/pom.xml index 0ac9d9b4d7b8..6188bea7c23e 100644 --- a/java-document-ai/grpc-google-cloud-document-ai-v1/pom.xml +++ b/java-document-ai/grpc-google-cloud-document-ai-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-document-ai-v1 - 2.50.0-SNAPSHOT + 2.50.0 grpc-google-cloud-document-ai-v1 GRPC library for google-cloud-document-ai com.google.cloud google-cloud-document-ai-parent - 2.50.0-SNAPSHOT + 2.50.0 diff --git a/java-document-ai/grpc-google-cloud-document-ai-v1beta1/pom.xml b/java-document-ai/grpc-google-cloud-document-ai-v1beta1/pom.xml index 6b718119e6e7..44330fdb28fc 100644 --- a/java-document-ai/grpc-google-cloud-document-ai-v1beta1/pom.xml +++ b/java-document-ai/grpc-google-cloud-document-ai-v1beta1/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-document-ai-v1beta1 - 0.62.0-SNAPSHOT + 0.62.0 grpc-google-cloud-document-ai-v1beta1 GRPC library for grpc-google-cloud-document-ai-v1beta1 com.google.cloud google-cloud-document-ai-parent - 2.50.0-SNAPSHOT + 2.50.0 diff --git a/java-document-ai/grpc-google-cloud-document-ai-v1beta2/pom.xml b/java-document-ai/grpc-google-cloud-document-ai-v1beta2/pom.xml index f3a0b4f071c0..2ff96b032709 100644 --- a/java-document-ai/grpc-google-cloud-document-ai-v1beta2/pom.xml +++ b/java-document-ai/grpc-google-cloud-document-ai-v1beta2/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-document-ai-v1beta2 - 0.62.0-SNAPSHOT + 0.62.0 grpc-google-cloud-document-ai-v1beta2 GRPC library for grpc-google-cloud-document-ai-v1beta2 com.google.cloud google-cloud-document-ai-parent - 2.50.0-SNAPSHOT + 2.50.0 diff --git a/java-document-ai/grpc-google-cloud-document-ai-v1beta3/pom.xml b/java-document-ai/grpc-google-cloud-document-ai-v1beta3/pom.xml index 3063298f8d8e..54106bbfec5b 100644 --- a/java-document-ai/grpc-google-cloud-document-ai-v1beta3/pom.xml +++ b/java-document-ai/grpc-google-cloud-document-ai-v1beta3/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-document-ai-v1beta3 - 0.62.0-SNAPSHOT + 0.62.0 grpc-google-cloud-document-ai-v1beta3 GRPC library for grpc-google-cloud-document-ai-v1beta3 com.google.cloud google-cloud-document-ai-parent - 2.50.0-SNAPSHOT + 2.50.0 diff --git a/java-document-ai/pom.xml b/java-document-ai/pom.xml index 47ce92927977..fcc1d0d5066c 100644 --- a/java-document-ai/pom.xml +++ b/java-document-ai/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-document-ai-parent pom - 2.50.0-SNAPSHOT + 2.50.0 Google Cloud Document AI Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,47 +29,47 @@ com.google.api.grpc grpc-google-cloud-document-ai-v1beta1 - 0.62.0-SNAPSHOT + 0.62.0 com.google.api.grpc proto-google-cloud-document-ai-v1 - 2.50.0-SNAPSHOT + 2.50.0 com.google.api.grpc grpc-google-cloud-document-ai-v1 - 2.50.0-SNAPSHOT + 2.50.0 com.google.cloud google-cloud-document-ai - 2.50.0-SNAPSHOT + 2.50.0 com.google.api.grpc grpc-google-cloud-document-ai-v1beta2 - 0.62.0-SNAPSHOT + 0.62.0 com.google.api.grpc grpc-google-cloud-document-ai-v1beta3 - 0.62.0-SNAPSHOT + 0.62.0 com.google.api.grpc proto-google-cloud-document-ai-v1beta1 - 0.62.0-SNAPSHOT + 0.62.0 com.google.api.grpc proto-google-cloud-document-ai-v1beta2 - 0.62.0-SNAPSHOT + 0.62.0 com.google.api.grpc proto-google-cloud-document-ai-v1beta3 - 0.62.0-SNAPSHOT + 0.62.0 diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/pom.xml b/java-document-ai/proto-google-cloud-document-ai-v1/pom.xml index c334b7ae83e1..d81bb0619380 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/pom.xml +++ b/java-document-ai/proto-google-cloud-document-ai-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-document-ai-v1 - 2.50.0-SNAPSHOT + 2.50.0 proto-google-cloud-document-ai-v1 Proto library for google-cloud-document-ai com.google.cloud google-cloud-document-ai-parent - 2.50.0-SNAPSHOT + 2.50.0 diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta1/pom.xml b/java-document-ai/proto-google-cloud-document-ai-v1beta1/pom.xml index 2bf0eb711591..5832469b64e2 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta1/pom.xml +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta1/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-document-ai-v1beta1 - 0.62.0-SNAPSHOT + 0.62.0 proto-google-cloud-document-ai-v1beta1 PROTO library for proto-google-cloud-document-ai-v1beta1 com.google.cloud google-cloud-document-ai-parent - 2.50.0-SNAPSHOT + 2.50.0 diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta2/pom.xml b/java-document-ai/proto-google-cloud-document-ai-v1beta2/pom.xml index 33a47f350e46..71d1d19b1aaa 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta2/pom.xml +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta2/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-document-ai-v1beta2 - 0.62.0-SNAPSHOT + 0.62.0 proto-google-cloud-document-ai-v1beta2 PROTO library for proto-google-cloud-document-ai-v1beta2 com.google.cloud google-cloud-document-ai-parent - 2.50.0-SNAPSHOT + 2.50.0 diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/pom.xml b/java-document-ai/proto-google-cloud-document-ai-v1beta3/pom.xml index 0b82d0f57afe..d0ec816883b0 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/pom.xml +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-document-ai-v1beta3 - 0.62.0-SNAPSHOT + 0.62.0 proto-google-cloud-document-ai-v1beta3 PROTO library for proto-google-cloud-document-ai-v1beta3 com.google.cloud google-cloud-document-ai-parent - 2.50.0-SNAPSHOT + 2.50.0 diff --git a/java-domains/CHANGELOG.md b/java-domains/CHANGELOG.md index 6869b1423a0b..0189798fd98f 100644 --- a/java-domains/CHANGELOG.md +++ b/java-domains/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 1.43.0 (2024-06-27) + +* No change + + ## 1.42.0 (None) * No change diff --git a/java-domains/README.md b/java-domains/README.md index e658a37ce0d7..92dab6ca6f3c 100644 --- a/java-domains/README.md +++ b/java-domains/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-domains - 1.42.0 + 1.43.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-domains:1.42.0' +implementation 'com.google.cloud:google-cloud-domains:1.43.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-domains" % "1.42.0" +libraryDependencies += "com.google.cloud" % "google-cloud-domains" % "1.43.0" ``` diff --git a/java-domains/google-cloud-domains-bom/pom.xml b/java-domains/google-cloud-domains-bom/pom.xml index 27e752b675f2..7b5b8a3837f2 100644 --- a/java-domains/google-cloud-domains-bom/pom.xml +++ b/java-domains/google-cloud-domains-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-domains-bom - 1.43.0-SNAPSHOT + 1.43.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,37 +27,37 @@ com.google.cloud google-cloud-domains - 1.43.0-SNAPSHOT + 1.43.0 com.google.api.grpc grpc-google-cloud-domains-v1beta1 - 0.51.0-SNAPSHOT + 0.51.0 com.google.api.grpc grpc-google-cloud-domains-v1alpha2 - 0.51.0-SNAPSHOT + 0.51.0 com.google.api.grpc grpc-google-cloud-domains-v1 - 1.43.0-SNAPSHOT + 1.43.0 com.google.api.grpc proto-google-cloud-domains-v1beta1 - 0.51.0-SNAPSHOT + 0.51.0 com.google.api.grpc proto-google-cloud-domains-v1alpha2 - 0.51.0-SNAPSHOT + 0.51.0 com.google.api.grpc proto-google-cloud-domains-v1 - 1.43.0-SNAPSHOT + 1.43.0 diff --git a/java-domains/google-cloud-domains/pom.xml b/java-domains/google-cloud-domains/pom.xml index 99276880a2fc..4f986c2f4a22 100644 --- a/java-domains/google-cloud-domains/pom.xml +++ b/java-domains/google-cloud-domains/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-domains - 1.43.0-SNAPSHOT + 1.43.0 jar Google Cloud Domains allows you to register and manage domains by using Cloud Domains. com.google.cloud google-cloud-domains-parent - 1.43.0-SNAPSHOT + 1.43.0 google-cloud-domains diff --git a/java-domains/grpc-google-cloud-domains-v1/pom.xml b/java-domains/grpc-google-cloud-domains-v1/pom.xml index 3f0113ca3fce..8186bffb68eb 100644 --- a/java-domains/grpc-google-cloud-domains-v1/pom.xml +++ b/java-domains/grpc-google-cloud-domains-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-domains-v1 - 1.43.0-SNAPSHOT + 1.43.0 grpc-google-cloud-domains-v1 GRPC library for google-cloud-domains com.google.cloud google-cloud-domains-parent - 1.43.0-SNAPSHOT + 1.43.0 diff --git a/java-domains/grpc-google-cloud-domains-v1alpha2/pom.xml b/java-domains/grpc-google-cloud-domains-v1alpha2/pom.xml index 4c132558b2d7..ccfc2efdfaec 100644 --- a/java-domains/grpc-google-cloud-domains-v1alpha2/pom.xml +++ b/java-domains/grpc-google-cloud-domains-v1alpha2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-domains-v1alpha2 - 0.51.0-SNAPSHOT + 0.51.0 grpc-google-cloud-domains-v1alpha2 GRPC library for google-cloud-domains com.google.cloud google-cloud-domains-parent - 1.43.0-SNAPSHOT + 1.43.0 diff --git a/java-domains/grpc-google-cloud-domains-v1beta1/pom.xml b/java-domains/grpc-google-cloud-domains-v1beta1/pom.xml index f7bcc7e0309e..08b8f21f40fb 100644 --- a/java-domains/grpc-google-cloud-domains-v1beta1/pom.xml +++ b/java-domains/grpc-google-cloud-domains-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-domains-v1beta1 - 0.51.0-SNAPSHOT + 0.51.0 grpc-google-cloud-domains-v1beta1 GRPC library for google-cloud-domains com.google.cloud google-cloud-domains-parent - 1.43.0-SNAPSHOT + 1.43.0 diff --git a/java-domains/pom.xml b/java-domains/pom.xml index 216af78dc301..42e9c7783dc4 100644 --- a/java-domains/pom.xml +++ b/java-domains/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-domains-parent pom - 1.43.0-SNAPSHOT + 1.43.0 Google Cloud Domains Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.cloud google-cloud-domains - 1.43.0-SNAPSHOT + 1.43.0 com.google.api.grpc proto-google-cloud-domains-v1 - 1.43.0-SNAPSHOT + 1.43.0 com.google.api.grpc grpc-google-cloud-domains-v1 - 1.43.0-SNAPSHOT + 1.43.0 com.google.api.grpc proto-google-cloud-domains-v1alpha2 - 0.51.0-SNAPSHOT + 0.51.0 com.google.api.grpc grpc-google-cloud-domains-v1alpha2 - 0.51.0-SNAPSHOT + 0.51.0 com.google.api.grpc proto-google-cloud-domains-v1beta1 - 0.51.0-SNAPSHOT + 0.51.0 com.google.api.grpc grpc-google-cloud-domains-v1beta1 - 0.51.0-SNAPSHOT + 0.51.0 diff --git a/java-domains/proto-google-cloud-domains-v1/pom.xml b/java-domains/proto-google-cloud-domains-v1/pom.xml index 61636c9c659c..6de8987f31dc 100644 --- a/java-domains/proto-google-cloud-domains-v1/pom.xml +++ b/java-domains/proto-google-cloud-domains-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-domains-v1 - 1.43.0-SNAPSHOT + 1.43.0 proto-google-cloud-domains-v1 Proto library for google-cloud-domains com.google.cloud google-cloud-domains-parent - 1.43.0-SNAPSHOT + 1.43.0 diff --git a/java-domains/proto-google-cloud-domains-v1alpha2/pom.xml b/java-domains/proto-google-cloud-domains-v1alpha2/pom.xml index a5ecd0399d54..79ec3c5fa57a 100644 --- a/java-domains/proto-google-cloud-domains-v1alpha2/pom.xml +++ b/java-domains/proto-google-cloud-domains-v1alpha2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-domains-v1alpha2 - 0.51.0-SNAPSHOT + 0.51.0 proto-google-cloud-domains-v1alpha2 Proto library for google-cloud-domains com.google.cloud google-cloud-domains-parent - 1.43.0-SNAPSHOT + 1.43.0 diff --git a/java-domains/proto-google-cloud-domains-v1beta1/pom.xml b/java-domains/proto-google-cloud-domains-v1beta1/pom.xml index 1a75b17b5503..5d0fe1a7eb94 100644 --- a/java-domains/proto-google-cloud-domains-v1beta1/pom.xml +++ b/java-domains/proto-google-cloud-domains-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-domains-v1beta1 - 0.51.0-SNAPSHOT + 0.51.0 proto-google-cloud-domains-v1beta1 Proto library for google-cloud-domains com.google.cloud google-cloud-domains-parent - 1.43.0-SNAPSHOT + 1.43.0 diff --git a/java-edgenetwork/CHANGELOG.md b/java-edgenetwork/CHANGELOG.md index ffc700ce5557..f95c3bfbfe35 100644 --- a/java-edgenetwork/CHANGELOG.md +++ b/java-edgenetwork/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.14.0 (2024-06-27) + +* No change + + ## 0.13.0 (None) * No change diff --git a/java-edgenetwork/README.md b/java-edgenetwork/README.md index 3b812fc1462c..6f96a1edce1f 100644 --- a/java-edgenetwork/README.md +++ b/java-edgenetwork/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-edgenetwork - 0.13.0 + 0.14.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-edgenetwork:0.13.0' +implementation 'com.google.cloud:google-cloud-edgenetwork:0.14.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-edgenetwork" % "0.13.0" +libraryDependencies += "com.google.cloud" % "google-cloud-edgenetwork" % "0.14.0" ``` diff --git a/java-edgenetwork/google-cloud-edgenetwork-bom/pom.xml b/java-edgenetwork/google-cloud-edgenetwork-bom/pom.xml index 3b9641f381a8..2d7c54890ce9 100644 --- a/java-edgenetwork/google-cloud-edgenetwork-bom/pom.xml +++ b/java-edgenetwork/google-cloud-edgenetwork-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-edgenetwork-bom - 0.14.0-SNAPSHOT + 0.14.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-edgenetwork - 0.14.0-SNAPSHOT + 0.14.0 com.google.api.grpc grpc-google-cloud-edgenetwork-v1 - 0.14.0-SNAPSHOT + 0.14.0 com.google.api.grpc proto-google-cloud-edgenetwork-v1 - 0.14.0-SNAPSHOT + 0.14.0 diff --git a/java-edgenetwork/google-cloud-edgenetwork/pom.xml b/java-edgenetwork/google-cloud-edgenetwork/pom.xml index ec3e77e4b04a..40de4e7c6544 100644 --- a/java-edgenetwork/google-cloud-edgenetwork/pom.xml +++ b/java-edgenetwork/google-cloud-edgenetwork/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-edgenetwork - 0.14.0-SNAPSHOT + 0.14.0 jar Google Distributed Cloud Edge Network API Distributed Cloud Edge Network API Network management API for Distributed Cloud Edge. com.google.cloud google-cloud-edgenetwork-parent - 0.14.0-SNAPSHOT + 0.14.0 google-cloud-edgenetwork diff --git a/java-edgenetwork/grpc-google-cloud-edgenetwork-v1/pom.xml b/java-edgenetwork/grpc-google-cloud-edgenetwork-v1/pom.xml index fdfc46f836c5..41362595a8fc 100644 --- a/java-edgenetwork/grpc-google-cloud-edgenetwork-v1/pom.xml +++ b/java-edgenetwork/grpc-google-cloud-edgenetwork-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-edgenetwork-v1 - 0.14.0-SNAPSHOT + 0.14.0 grpc-google-cloud-edgenetwork-v1 GRPC library for google-cloud-edgenetwork com.google.cloud google-cloud-edgenetwork-parent - 0.14.0-SNAPSHOT + 0.14.0 diff --git a/java-edgenetwork/pom.xml b/java-edgenetwork/pom.xml index 621e10754250..083fac6a36c5 100644 --- a/java-edgenetwork/pom.xml +++ b/java-edgenetwork/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-edgenetwork-parent pom - 0.14.0-SNAPSHOT + 0.14.0 Google Distributed Cloud Edge Network API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-edgenetwork - 0.14.0-SNAPSHOT + 0.14.0 com.google.api.grpc grpc-google-cloud-edgenetwork-v1 - 0.14.0-SNAPSHOT + 0.14.0 com.google.api.grpc proto-google-cloud-edgenetwork-v1 - 0.14.0-SNAPSHOT + 0.14.0 diff --git a/java-edgenetwork/proto-google-cloud-edgenetwork-v1/pom.xml b/java-edgenetwork/proto-google-cloud-edgenetwork-v1/pom.xml index b44b72e70dec..022757f52469 100644 --- a/java-edgenetwork/proto-google-cloud-edgenetwork-v1/pom.xml +++ b/java-edgenetwork/proto-google-cloud-edgenetwork-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-edgenetwork-v1 - 0.14.0-SNAPSHOT + 0.14.0 proto-google-cloud-edgenetwork-v1 Proto library for google-cloud-edgenetwork com.google.cloud google-cloud-edgenetwork-parent - 0.14.0-SNAPSHOT + 0.14.0 diff --git a/java-enterpriseknowledgegraph/CHANGELOG.md b/java-enterpriseknowledgegraph/CHANGELOG.md index 32367bf03924..6994771db1c5 100644 --- a/java-enterpriseknowledgegraph/CHANGELOG.md +++ b/java-enterpriseknowledgegraph/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.42.0 (2024-06-27) + +* No change + + ## 0.41.0 (None) * No change diff --git a/java-enterpriseknowledgegraph/README.md b/java-enterpriseknowledgegraph/README.md index 4335067232c5..f038a9a0877e 100644 --- a/java-enterpriseknowledgegraph/README.md +++ b/java-enterpriseknowledgegraph/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-enterpriseknowledgegraph - 0.41.0 + 0.42.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-enterpriseknowledgegraph:0.41.0' +implementation 'com.google.cloud:google-cloud-enterpriseknowledgegraph:0.42.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-enterpriseknowledgegraph" % "0.41.0" +libraryDependencies += "com.google.cloud" % "google-cloud-enterpriseknowledgegraph" % "0.42.0" ``` diff --git a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph-bom/pom.xml b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph-bom/pom.xml index 3a8509650da6..4a6d8d4360be 100644 --- a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph-bom/pom.xml +++ b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-enterpriseknowledgegraph-bom - 0.42.0-SNAPSHOT + 0.42.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-enterpriseknowledgegraph - 0.42.0-SNAPSHOT + 0.42.0 com.google.api.grpc grpc-google-cloud-enterpriseknowledgegraph-v1 - 0.42.0-SNAPSHOT + 0.42.0 com.google.api.grpc proto-google-cloud-enterpriseknowledgegraph-v1 - 0.42.0-SNAPSHOT + 0.42.0 diff --git a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/pom.xml b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/pom.xml index 3daecd8d9420..ea8e3f00f48d 100644 --- a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/pom.xml +++ b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-enterpriseknowledgegraph - 0.42.0-SNAPSHOT + 0.42.0 jar Google Enterprise Knowledge Graph Enterprise Knowledge Graph Enterprise Knowledge Graph organizes siloed information into organizational knowledge, which involves consolidating, standardizing, and reconciling data in an efficient and useful way. com.google.cloud google-cloud-enterpriseknowledgegraph-parent - 0.42.0-SNAPSHOT + 0.42.0 google-cloud-enterpriseknowledgegraph diff --git a/java-enterpriseknowledgegraph/grpc-google-cloud-enterpriseknowledgegraph-v1/pom.xml b/java-enterpriseknowledgegraph/grpc-google-cloud-enterpriseknowledgegraph-v1/pom.xml index 6ac5f2931f17..75154946b5a4 100644 --- a/java-enterpriseknowledgegraph/grpc-google-cloud-enterpriseknowledgegraph-v1/pom.xml +++ b/java-enterpriseknowledgegraph/grpc-google-cloud-enterpriseknowledgegraph-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-enterpriseknowledgegraph-v1 - 0.42.0-SNAPSHOT + 0.42.0 grpc-google-cloud-enterpriseknowledgegraph-v1 GRPC library for google-cloud-enterpriseknowledgegraph com.google.cloud google-cloud-enterpriseknowledgegraph-parent - 0.42.0-SNAPSHOT + 0.42.0 diff --git a/java-enterpriseknowledgegraph/pom.xml b/java-enterpriseknowledgegraph/pom.xml index b5d9f1c154ee..1ed41c2f1d56 100644 --- a/java-enterpriseknowledgegraph/pom.xml +++ b/java-enterpriseknowledgegraph/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-enterpriseknowledgegraph-parent pom - 0.42.0-SNAPSHOT + 0.42.0 Google Enterprise Knowledge Graph Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-enterpriseknowledgegraph - 0.42.0-SNAPSHOT + 0.42.0 com.google.api.grpc grpc-google-cloud-enterpriseknowledgegraph-v1 - 0.42.0-SNAPSHOT + 0.42.0 com.google.api.grpc proto-google-cloud-enterpriseknowledgegraph-v1 - 0.42.0-SNAPSHOT + 0.42.0 diff --git a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/pom.xml b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/pom.xml index d828cb327599..968bc01a6cca 100644 --- a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/pom.xml +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-enterpriseknowledgegraph-v1 - 0.42.0-SNAPSHOT + 0.42.0 proto-google-cloud-enterpriseknowledgegraph-v1 Proto library for google-cloud-enterpriseknowledgegraph com.google.cloud google-cloud-enterpriseknowledgegraph-parent - 0.42.0-SNAPSHOT + 0.42.0 diff --git a/java-errorreporting/CHANGELOG.md b/java-errorreporting/CHANGELOG.md index be0b9c382ec9..4a4c3c1c31b0 100644 --- a/java-errorreporting/CHANGELOG.md +++ b/java-errorreporting/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.167.0-beta (2024-06-27) + +* No change + + ## 0.166.0-beta (None) * No change diff --git a/java-errorreporting/README.md b/java-errorreporting/README.md index 2a15852e0df3..a44defa3492d 100644 --- a/java-errorreporting/README.md +++ b/java-errorreporting/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-errorreporting - 0.166.0-beta + 0.167.0-beta ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-errorreporting:0.166.0-beta' +implementation 'com.google.cloud:google-cloud-errorreporting:0.167.0-beta' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-errorreporting" % "0.166.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-errorreporting" % "0.167.0-beta" ``` diff --git a/java-errorreporting/google-cloud-errorreporting-bom/pom.xml b/java-errorreporting/google-cloud-errorreporting-bom/pom.xml index f504ea557703..ea2786925e0e 100644 --- a/java-errorreporting/google-cloud-errorreporting-bom/pom.xml +++ b/java-errorreporting/google-cloud-errorreporting-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-errorreporting-bom - 0.167.0-beta-SNAPSHOT + 0.167.0-beta pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-errorreporting - 0.167.0-beta-SNAPSHOT + 0.167.0-beta com.google.api.grpc grpc-google-cloud-error-reporting-v1beta1 - 0.133.0-SNAPSHOT + 0.133.0 com.google.api.grpc proto-google-cloud-error-reporting-v1beta1 - 0.133.0-SNAPSHOT + 0.133.0 diff --git a/java-errorreporting/google-cloud-errorreporting/pom.xml b/java-errorreporting/google-cloud-errorreporting/pom.xml index 8209120f493d..be5e222f06a4 100644 --- a/java-errorreporting/google-cloud-errorreporting/pom.xml +++ b/java-errorreporting/google-cloud-errorreporting/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-errorreporting - 0.167.0-beta-SNAPSHOT + 0.167.0-beta jar Google Cloud Error Reporting Java idiomatic client for Google Cloud Error Reporting com.google.cloud google-cloud-errorreporting-parent - 0.167.0-beta-SNAPSHOT + 0.167.0-beta google-cloud-errorreporting diff --git a/java-errorreporting/grpc-google-cloud-error-reporting-v1beta1/pom.xml b/java-errorreporting/grpc-google-cloud-error-reporting-v1beta1/pom.xml index b13621881862..49d4c341e6ef 100644 --- a/java-errorreporting/grpc-google-cloud-error-reporting-v1beta1/pom.xml +++ b/java-errorreporting/grpc-google-cloud-error-reporting-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-error-reporting-v1beta1 - 0.133.0-SNAPSHOT + 0.133.0 grpc-google-cloud-error-reporting-v1beta1 GRPC library for grpc-google-cloud-error-reporting-v1beta1 com.google.cloud google-cloud-errorreporting-parent - 0.167.0-beta-SNAPSHOT + 0.167.0-beta diff --git a/java-errorreporting/pom.xml b/java-errorreporting/pom.xml index ae5e975492c3..5d1af8e46c8b 100644 --- a/java-errorreporting/pom.xml +++ b/java-errorreporting/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-errorreporting-parent pom - 0.167.0-beta-SNAPSHOT + 0.167.0-beta Google Cloud Error Reporting Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,18 +29,18 @@ com.google.cloud google-cloud-errorreporting - 0.167.0-beta-SNAPSHOT + 0.167.0-beta com.google.api.grpc proto-google-cloud-error-reporting-v1beta1 - 0.133.0-SNAPSHOT + 0.133.0 com.google.api.grpc grpc-google-cloud-error-reporting-v1beta1 - 0.133.0-SNAPSHOT + 0.133.0 diff --git a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/pom.xml b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/pom.xml index ef53cccd95ee..23645ca405c7 100644 --- a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/pom.xml +++ b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-error-reporting-v1beta1 - 0.133.0-SNAPSHOT + 0.133.0 proto-google-cloud-error-reporting-v1beta1 PROTO library for proto-google-cloud-error-reporting-v1beta1 com.google.cloud google-cloud-errorreporting-parent - 0.167.0-beta-SNAPSHOT + 0.167.0-beta diff --git a/java-essential-contacts/CHANGELOG.md b/java-essential-contacts/CHANGELOG.md index a9abfe8f1193..ee5e5481d290 100644 --- a/java-essential-contacts/CHANGELOG.md +++ b/java-essential-contacts/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.46.0 (2024-06-27) + +* No change + + ## 2.45.0 (None) * No change diff --git a/java-essential-contacts/README.md b/java-essential-contacts/README.md index c64b2c75f140..5fd71c88bca3 100644 --- a/java-essential-contacts/README.md +++ b/java-essential-contacts/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-essential-contacts - 2.45.0 + 2.46.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-essential-contacts:2.45.0' +implementation 'com.google.cloud:google-cloud-essential-contacts:2.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-essential-contacts" % "2.45.0" +libraryDependencies += "com.google.cloud" % "google-cloud-essential-contacts" % "2.46.0" ``` diff --git a/java-essential-contacts/google-cloud-essential-contacts-bom/pom.xml b/java-essential-contacts/google-cloud-essential-contacts-bom/pom.xml index 58237bc40665..f2ee8c626401 100644 --- a/java-essential-contacts/google-cloud-essential-contacts-bom/pom.xml +++ b/java-essential-contacts/google-cloud-essential-contacts-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-essential-contacts-bom - 2.46.0-SNAPSHOT + 2.46.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-essential-contacts - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc grpc-google-cloud-essential-contacts-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc proto-google-cloud-essential-contacts-v1 - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-essential-contacts/google-cloud-essential-contacts/pom.xml b/java-essential-contacts/google-cloud-essential-contacts/pom.xml index 8bf80b7e657e..cefeb9804dec 100644 --- a/java-essential-contacts/google-cloud-essential-contacts/pom.xml +++ b/java-essential-contacts/google-cloud-essential-contacts/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-essential-contacts - 2.46.0-SNAPSHOT + 2.46.0 jar Google Essential Contacts API Essential Contacts API helps you customize who receives notifications by providing your own list of contacts in many Google Cloud services. com.google.cloud google-cloud-essential-contacts-parent - 2.46.0-SNAPSHOT + 2.46.0 google-cloud-essential-contacts diff --git a/java-essential-contacts/grpc-google-cloud-essential-contacts-v1/pom.xml b/java-essential-contacts/grpc-google-cloud-essential-contacts-v1/pom.xml index aca7621f0b0c..5e921187b994 100644 --- a/java-essential-contacts/grpc-google-cloud-essential-contacts-v1/pom.xml +++ b/java-essential-contacts/grpc-google-cloud-essential-contacts-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-essential-contacts-v1 - 2.46.0-SNAPSHOT + 2.46.0 grpc-google-cloud-essential-contacts-v1 GRPC library for google-cloud-essential-contacts com.google.cloud google-cloud-essential-contacts-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-essential-contacts/pom.xml b/java-essential-contacts/pom.xml index a92465a6f416..2f7cec5a05b1 100644 --- a/java-essential-contacts/pom.xml +++ b/java-essential-contacts/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-essential-contacts-parent pom - 2.46.0-SNAPSHOT + 2.46.0 Google Essential Contacts API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-essential-contacts - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc grpc-google-cloud-essential-contacts-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc proto-google-cloud-essential-contacts-v1 - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-essential-contacts/proto-google-cloud-essential-contacts-v1/pom.xml b/java-essential-contacts/proto-google-cloud-essential-contacts-v1/pom.xml index 68e50815dc58..1518d9b6d713 100644 --- a/java-essential-contacts/proto-google-cloud-essential-contacts-v1/pom.xml +++ b/java-essential-contacts/proto-google-cloud-essential-contacts-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-essential-contacts-v1 - 2.46.0-SNAPSHOT + 2.46.0 proto-google-cloud-essential-contacts-v1 Proto library for google-cloud-essential-contacts com.google.cloud google-cloud-essential-contacts-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-eventarc-publishing/CHANGELOG.md b/java-eventarc-publishing/CHANGELOG.md index b86ac8e2e77f..8ac2801b7449 100644 --- a/java-eventarc-publishing/CHANGELOG.md +++ b/java-eventarc-publishing/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.46.0 (2024-06-27) + +* No change + + ## 0.45.0 (None) * No change diff --git a/java-eventarc-publishing/README.md b/java-eventarc-publishing/README.md index 21b33d88b96a..1fbbb98f860d 100644 --- a/java-eventarc-publishing/README.md +++ b/java-eventarc-publishing/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-eventarc-publishing - 0.45.0 + 0.46.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-eventarc-publishing:0.45.0' +implementation 'com.google.cloud:google-cloud-eventarc-publishing:0.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-eventarc-publishing" % "0.45.0" +libraryDependencies += "com.google.cloud" % "google-cloud-eventarc-publishing" % "0.46.0" ``` diff --git a/java-eventarc-publishing/google-cloud-eventarc-publishing-bom/pom.xml b/java-eventarc-publishing/google-cloud-eventarc-publishing-bom/pom.xml index 296c25ef1584..bcf1705e0e34 100644 --- a/java-eventarc-publishing/google-cloud-eventarc-publishing-bom/pom.xml +++ b/java-eventarc-publishing/google-cloud-eventarc-publishing-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-eventarc-publishing-bom - 0.46.0-SNAPSHOT + 0.46.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-eventarc-publishing - 0.46.0-SNAPSHOT + 0.46.0 com.google.api.grpc grpc-google-cloud-eventarc-publishing-v1 - 0.46.0-SNAPSHOT + 0.46.0 com.google.api.grpc proto-google-cloud-eventarc-publishing-v1 - 0.46.0-SNAPSHOT + 0.46.0 diff --git a/java-eventarc-publishing/google-cloud-eventarc-publishing/pom.xml b/java-eventarc-publishing/google-cloud-eventarc-publishing/pom.xml index 3b7bcda2095c..9253b60dada0 100644 --- a/java-eventarc-publishing/google-cloud-eventarc-publishing/pom.xml +++ b/java-eventarc-publishing/google-cloud-eventarc-publishing/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-eventarc-publishing - 0.46.0-SNAPSHOT + 0.46.0 jar Google Eventarc Publishing Eventarc Publishing lets you asynchronously deliver events from Google services, SaaS, and your own apps using loosely coupled services that react to state changes. com.google.cloud google-cloud-eventarc-publishing-parent - 0.46.0-SNAPSHOT + 0.46.0 google-cloud-eventarc-publishing diff --git a/java-eventarc-publishing/grpc-google-cloud-eventarc-publishing-v1/pom.xml b/java-eventarc-publishing/grpc-google-cloud-eventarc-publishing-v1/pom.xml index 3eeb3f744421..bd1cc6648aa9 100644 --- a/java-eventarc-publishing/grpc-google-cloud-eventarc-publishing-v1/pom.xml +++ b/java-eventarc-publishing/grpc-google-cloud-eventarc-publishing-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-eventarc-publishing-v1 - 0.46.0-SNAPSHOT + 0.46.0 grpc-google-cloud-eventarc-publishing-v1 GRPC library for google-cloud-eventarc-publishing com.google.cloud google-cloud-eventarc-publishing-parent - 0.46.0-SNAPSHOT + 0.46.0 diff --git a/java-eventarc-publishing/pom.xml b/java-eventarc-publishing/pom.xml index 1029f1d4a936..01d958eb7882 100644 --- a/java-eventarc-publishing/pom.xml +++ b/java-eventarc-publishing/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-eventarc-publishing-parent pom - 0.46.0-SNAPSHOT + 0.46.0 Google Eventarc Publishing Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-eventarc-publishing - 0.46.0-SNAPSHOT + 0.46.0 com.google.api.grpc grpc-google-cloud-eventarc-publishing-v1 - 0.46.0-SNAPSHOT + 0.46.0 com.google.api.grpc proto-google-cloud-eventarc-publishing-v1 - 0.46.0-SNAPSHOT + 0.46.0 diff --git a/java-eventarc-publishing/proto-google-cloud-eventarc-publishing-v1/pom.xml b/java-eventarc-publishing/proto-google-cloud-eventarc-publishing-v1/pom.xml index 049bcfbe9ef2..c5804e111fd8 100644 --- a/java-eventarc-publishing/proto-google-cloud-eventarc-publishing-v1/pom.xml +++ b/java-eventarc-publishing/proto-google-cloud-eventarc-publishing-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-eventarc-publishing-v1 - 0.46.0-SNAPSHOT + 0.46.0 proto-google-cloud-eventarc-publishing-v1 Proto library for google-cloud-eventarc-publishing com.google.cloud google-cloud-eventarc-publishing-parent - 0.46.0-SNAPSHOT + 0.46.0 diff --git a/java-eventarc/CHANGELOG.md b/java-eventarc/CHANGELOG.md index 908c56c737d2..f99f52c38ac5 100644 --- a/java-eventarc/CHANGELOG.md +++ b/java-eventarc/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 1.46.0 (2024-06-27) + +* No change + + ## 1.45.0 (None) * No change diff --git a/java-eventarc/README.md b/java-eventarc/README.md index 38aa1b670d2f..9d2f5f1048af 100644 --- a/java-eventarc/README.md +++ b/java-eventarc/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-eventarc - 1.45.0 + 1.46.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-eventarc:1.45.0' +implementation 'com.google.cloud:google-cloud-eventarc:1.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-eventarc" % "1.45.0" +libraryDependencies += "com.google.cloud" % "google-cloud-eventarc" % "1.46.0" ``` diff --git a/java-eventarc/google-cloud-eventarc-bom/pom.xml b/java-eventarc/google-cloud-eventarc-bom/pom.xml index 4abe56d251cf..e32b3ca5dbf6 100644 --- a/java-eventarc/google-cloud-eventarc-bom/pom.xml +++ b/java-eventarc/google-cloud-eventarc-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-eventarc-bom - 1.46.0-SNAPSHOT + 1.46.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-eventarc - 1.46.0-SNAPSHOT + 1.46.0 com.google.api.grpc grpc-google-cloud-eventarc-v1 - 1.46.0-SNAPSHOT + 1.46.0 com.google.api.grpc proto-google-cloud-eventarc-v1 - 1.46.0-SNAPSHOT + 1.46.0 diff --git a/java-eventarc/google-cloud-eventarc/pom.xml b/java-eventarc/google-cloud-eventarc/pom.xml index d0bbb02101b2..c04986ec3570 100644 --- a/java-eventarc/google-cloud-eventarc/pom.xml +++ b/java-eventarc/google-cloud-eventarc/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-eventarc - 1.46.0-SNAPSHOT + 1.46.0 jar Google Eventarc Eventarc lets you asynchronously deliver events from Google services, SaaS, and your own apps using loosely coupled services that react to state changes. com.google.cloud google-cloud-eventarc-parent - 1.46.0-SNAPSHOT + 1.46.0 google-cloud-eventarc diff --git a/java-eventarc/grpc-google-cloud-eventarc-v1/pom.xml b/java-eventarc/grpc-google-cloud-eventarc-v1/pom.xml index 9a76b8ac0378..d087ef0ee10e 100644 --- a/java-eventarc/grpc-google-cloud-eventarc-v1/pom.xml +++ b/java-eventarc/grpc-google-cloud-eventarc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-eventarc-v1 - 1.46.0-SNAPSHOT + 1.46.0 grpc-google-cloud-eventarc-v1 GRPC library for google-cloud-eventarc com.google.cloud google-cloud-eventarc-parent - 1.46.0-SNAPSHOT + 1.46.0 diff --git a/java-eventarc/pom.xml b/java-eventarc/pom.xml index ad65553a516e..31cfeb1e0f7d 100644 --- a/java-eventarc/pom.xml +++ b/java-eventarc/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-eventarc-parent pom - 1.46.0-SNAPSHOT + 1.46.0 Google Eventarc Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-eventarc - 1.46.0-SNAPSHOT + 1.46.0 com.google.api.grpc grpc-google-cloud-eventarc-v1 - 1.46.0-SNAPSHOT + 1.46.0 com.google.api.grpc proto-google-cloud-eventarc-v1 - 1.46.0-SNAPSHOT + 1.46.0 diff --git a/java-eventarc/proto-google-cloud-eventarc-v1/pom.xml b/java-eventarc/proto-google-cloud-eventarc-v1/pom.xml index 76d983058e53..cbc287dab0bf 100644 --- a/java-eventarc/proto-google-cloud-eventarc-v1/pom.xml +++ b/java-eventarc/proto-google-cloud-eventarc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-eventarc-v1 - 1.46.0-SNAPSHOT + 1.46.0 proto-google-cloud-eventarc-v1 Proto library for google-cloud-eventarc com.google.cloud google-cloud-eventarc-parent - 1.46.0-SNAPSHOT + 1.46.0 diff --git a/java-filestore/CHANGELOG.md b/java-filestore/CHANGELOG.md index 9a612b426af3..6b397091c552 100644 --- a/java-filestore/CHANGELOG.md +++ b/java-filestore/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 1.47.0 (2024-06-27) + +* No change + + ## 1.46.0 (None) * No change diff --git a/java-filestore/README.md b/java-filestore/README.md index 1bd96ea1f7af..e52b622ea209 100644 --- a/java-filestore/README.md +++ b/java-filestore/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-filestore - 1.46.0 + 1.47.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-filestore:1.46.0' +implementation 'com.google.cloud:google-cloud-filestore:1.47.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-filestore" % "1.46.0" +libraryDependencies += "com.google.cloud" % "google-cloud-filestore" % "1.47.0" ``` diff --git a/java-filestore/google-cloud-filestore-bom/pom.xml b/java-filestore/google-cloud-filestore-bom/pom.xml index 6f175aad03c8..c43fd7d6d0d7 100644 --- a/java-filestore/google-cloud-filestore-bom/pom.xml +++ b/java-filestore/google-cloud-filestore-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-filestore-bom - 1.47.0-SNAPSHOT + 1.47.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-filestore - 1.47.0-SNAPSHOT + 1.47.0 com.google.api.grpc grpc-google-cloud-filestore-v1beta1 - 0.49.0-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-filestore-v1 - 1.47.0-SNAPSHOT + 1.47.0 com.google.api.grpc proto-google-cloud-filestore-v1 - 1.47.0-SNAPSHOT + 1.47.0 com.google.api.grpc proto-google-cloud-filestore-v1beta1 - 0.49.0-SNAPSHOT + 0.49.0 diff --git a/java-filestore/google-cloud-filestore/pom.xml b/java-filestore/google-cloud-filestore/pom.xml index 125256c0fdd7..89221c84b3be 100644 --- a/java-filestore/google-cloud-filestore/pom.xml +++ b/java-filestore/google-cloud-filestore/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-filestore - 1.47.0-SNAPSHOT + 1.47.0 jar Google Cloud Filestore API Cloud Filestore API instances are fully managed NFS file servers on Google Cloud for use with applications running on Compute Engine virtual machines (VMs) instances or Google Kubernetes Engine clusters. com.google.cloud google-cloud-filestore-parent - 1.47.0-SNAPSHOT + 1.47.0 google-cloud-filestore diff --git a/java-filestore/grpc-google-cloud-filestore-v1/pom.xml b/java-filestore/grpc-google-cloud-filestore-v1/pom.xml index db3493e39ee2..62feed0a6e2f 100644 --- a/java-filestore/grpc-google-cloud-filestore-v1/pom.xml +++ b/java-filestore/grpc-google-cloud-filestore-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-filestore-v1 - 1.47.0-SNAPSHOT + 1.47.0 grpc-google-cloud-filestore-v1 GRPC library for google-cloud-filestore com.google.cloud google-cloud-filestore-parent - 1.47.0-SNAPSHOT + 1.47.0 diff --git a/java-filestore/grpc-google-cloud-filestore-v1beta1/pom.xml b/java-filestore/grpc-google-cloud-filestore-v1beta1/pom.xml index 7aa580aa1caa..b9b972985059 100644 --- a/java-filestore/grpc-google-cloud-filestore-v1beta1/pom.xml +++ b/java-filestore/grpc-google-cloud-filestore-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-filestore-v1beta1 - 0.49.0-SNAPSHOT + 0.49.0 grpc-google-cloud-filestore-v1beta1 GRPC library for google-cloud-filestore com.google.cloud google-cloud-filestore-parent - 1.47.0-SNAPSHOT + 1.47.0 diff --git a/java-filestore/pom.xml b/java-filestore/pom.xml index fe7927cfa426..9eb6f42a935d 100644 --- a/java-filestore/pom.xml +++ b/java-filestore/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-filestore-parent pom - 1.47.0-SNAPSHOT + 1.47.0 Google Cloud Filestore API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-filestore - 1.47.0-SNAPSHOT + 1.47.0 com.google.api.grpc grpc-google-cloud-filestore-v1beta1 - 0.49.0-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-filestore-v1 - 1.47.0-SNAPSHOT + 1.47.0 com.google.api.grpc proto-google-cloud-filestore-v1 - 1.47.0-SNAPSHOT + 1.47.0 com.google.api.grpc proto-google-cloud-filestore-v1beta1 - 0.49.0-SNAPSHOT + 0.49.0 diff --git a/java-filestore/proto-google-cloud-filestore-v1/pom.xml b/java-filestore/proto-google-cloud-filestore-v1/pom.xml index 5cf4058317b1..3fe18cd287aa 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/pom.xml +++ b/java-filestore/proto-google-cloud-filestore-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-filestore-v1 - 1.47.0-SNAPSHOT + 1.47.0 proto-google-cloud-filestore-v1 Proto library for google-cloud-filestore com.google.cloud google-cloud-filestore-parent - 1.47.0-SNAPSHOT + 1.47.0 diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/pom.xml b/java-filestore/proto-google-cloud-filestore-v1beta1/pom.xml index 5aa2d512f2d5..1d95a036d24c 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/pom.xml +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-filestore-v1beta1 - 0.49.0-SNAPSHOT + 0.49.0 proto-google-cloud-filestore-v1beta1 Proto library for google-cloud-filestore com.google.cloud google-cloud-filestore-parent - 1.47.0-SNAPSHOT + 1.47.0 diff --git a/java-functions/CHANGELOG.md b/java-functions/CHANGELOG.md index cadf7038256a..751468987d97 100644 --- a/java-functions/CHANGELOG.md +++ b/java-functions/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.48.0 (2024-06-27) + +* No change + + ## 2.47.0 (None) * No change diff --git a/java-functions/README.md b/java-functions/README.md index 5f7833f271af..b451211a2a82 100644 --- a/java-functions/README.md +++ b/java-functions/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-functions - 2.47.0 + 2.48.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-functions:2.47.0' +implementation 'com.google.cloud:google-cloud-functions:2.48.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-functions" % "2.47.0" +libraryDependencies += "com.google.cloud" % "google-cloud-functions" % "2.48.0" ``` diff --git a/java-functions/google-cloud-functions-bom/pom.xml b/java-functions/google-cloud-functions-bom/pom.xml index 93eccc00b4bb..7fb825eb5f40 100644 --- a/java-functions/google-cloud-functions-bom/pom.xml +++ b/java-functions/google-cloud-functions-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-functions-bom - 2.48.0-SNAPSHOT + 2.48.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,47 +27,47 @@ com.google.cloud google-cloud-functions - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc grpc-google-cloud-functions-v1 - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc grpc-google-cloud-functions-v2beta - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc grpc-google-cloud-functions-v2alpha - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc grpc-google-cloud-functions-v2 - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc proto-google-cloud-functions-v1 - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc proto-google-cloud-functions-v2beta - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc proto-google-cloud-functions-v2alpha - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc proto-google-cloud-functions-v2 - 2.48.0-SNAPSHOT + 2.48.0 diff --git a/java-functions/google-cloud-functions/pom.xml b/java-functions/google-cloud-functions/pom.xml index c0140b00f86f..8aad1b655a42 100644 --- a/java-functions/google-cloud-functions/pom.xml +++ b/java-functions/google-cloud-functions/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-functions - 2.48.0-SNAPSHOT + 2.48.0 jar Google Cloud Functions is a scalable pay as you go Functions-as-a-Service (FaaS) to run your code with zero server management. com.google.cloud google-cloud-functions-parent - 2.48.0-SNAPSHOT + 2.48.0 google-cloud-functions diff --git a/java-functions/grpc-google-cloud-functions-v1/pom.xml b/java-functions/grpc-google-cloud-functions-v1/pom.xml index bd5220cc5126..c8171b546e9e 100644 --- a/java-functions/grpc-google-cloud-functions-v1/pom.xml +++ b/java-functions/grpc-google-cloud-functions-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-functions-v1 - 2.48.0-SNAPSHOT + 2.48.0 grpc-google-cloud-functions-v1 GRPC library for grpc-google-cloud-functions-v1 com.google.cloud google-cloud-functions-parent - 2.48.0-SNAPSHOT + 2.48.0 diff --git a/java-functions/grpc-google-cloud-functions-v2/pom.xml b/java-functions/grpc-google-cloud-functions-v2/pom.xml index ae63e34b758a..84deb9822648 100644 --- a/java-functions/grpc-google-cloud-functions-v2/pom.xml +++ b/java-functions/grpc-google-cloud-functions-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-functions-v2 - 2.48.0-SNAPSHOT + 2.48.0 grpc-google-cloud-functions-v2 GRPC library for google-cloud-functions com.google.cloud google-cloud-functions-parent - 2.48.0-SNAPSHOT + 2.48.0 diff --git a/java-functions/grpc-google-cloud-functions-v2alpha/pom.xml b/java-functions/grpc-google-cloud-functions-v2alpha/pom.xml index 3d250803b69c..f56ed3067514 100644 --- a/java-functions/grpc-google-cloud-functions-v2alpha/pom.xml +++ b/java-functions/grpc-google-cloud-functions-v2alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-functions-v2alpha - 2.48.0-SNAPSHOT + 2.48.0 grpc-google-cloud-functions-v2alpha GRPC library for google-cloud-functions com.google.cloud google-cloud-functions-parent - 2.48.0-SNAPSHOT + 2.48.0 diff --git a/java-functions/grpc-google-cloud-functions-v2beta/pom.xml b/java-functions/grpc-google-cloud-functions-v2beta/pom.xml index e7ce37b8716f..2d9c9c9ab7c2 100644 --- a/java-functions/grpc-google-cloud-functions-v2beta/pom.xml +++ b/java-functions/grpc-google-cloud-functions-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-functions-v2beta - 2.48.0-SNAPSHOT + 2.48.0 grpc-google-cloud-functions-v2beta GRPC library for google-cloud-functions com.google.cloud google-cloud-functions-parent - 2.48.0-SNAPSHOT + 2.48.0 diff --git a/java-functions/pom.xml b/java-functions/pom.xml index 04a37ec6df47..926fcab0102c 100644 --- a/java-functions/pom.xml +++ b/java-functions/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-functions-parent pom - 2.48.0-SNAPSHOT + 2.48.0 Google Cloud Functions Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,47 +29,47 @@ com.google.cloud google-cloud-functions - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc proto-google-cloud-functions-v2 - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc grpc-google-cloud-functions-v2 - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc proto-google-cloud-functions-v2alpha - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc proto-google-cloud-functions-v2beta - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc grpc-google-cloud-functions-v2alpha - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc grpc-google-cloud-functions-v2beta - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc proto-google-cloud-functions-v1 - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc grpc-google-cloud-functions-v1 - 2.48.0-SNAPSHOT + 2.48.0 diff --git a/java-functions/proto-google-cloud-functions-v1/pom.xml b/java-functions/proto-google-cloud-functions-v1/pom.xml index 7fcfb0a2e6d2..0161f419130d 100644 --- a/java-functions/proto-google-cloud-functions-v1/pom.xml +++ b/java-functions/proto-google-cloud-functions-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-functions-v1 - 2.48.0-SNAPSHOT + 2.48.0 proto-google-cloud-functions-v1 PROTO library for proto-google-cloud-functions-v1 com.google.cloud google-cloud-functions-parent - 2.48.0-SNAPSHOT + 2.48.0 diff --git a/java-functions/proto-google-cloud-functions-v2/pom.xml b/java-functions/proto-google-cloud-functions-v2/pom.xml index 34e349a6ac6d..5b30675ac779 100644 --- a/java-functions/proto-google-cloud-functions-v2/pom.xml +++ b/java-functions/proto-google-cloud-functions-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-functions-v2 - 2.48.0-SNAPSHOT + 2.48.0 proto-google-cloud-functions-v2 Proto library for google-cloud-functions com.google.cloud google-cloud-functions-parent - 2.48.0-SNAPSHOT + 2.48.0 diff --git a/java-functions/proto-google-cloud-functions-v2alpha/pom.xml b/java-functions/proto-google-cloud-functions-v2alpha/pom.xml index 5fcaf116aa98..79d9a0126e6e 100644 --- a/java-functions/proto-google-cloud-functions-v2alpha/pom.xml +++ b/java-functions/proto-google-cloud-functions-v2alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-functions-v2alpha - 2.48.0-SNAPSHOT + 2.48.0 proto-google-cloud-functions-v2alpha Proto library for google-cloud-functions com.google.cloud google-cloud-functions-parent - 2.48.0-SNAPSHOT + 2.48.0 diff --git a/java-functions/proto-google-cloud-functions-v2beta/pom.xml b/java-functions/proto-google-cloud-functions-v2beta/pom.xml index cf16741a5033..a74dc02a4f16 100644 --- a/java-functions/proto-google-cloud-functions-v2beta/pom.xml +++ b/java-functions/proto-google-cloud-functions-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-functions-v2beta - 2.48.0-SNAPSHOT + 2.48.0 proto-google-cloud-functions-v2beta Proto library for google-cloud-functions com.google.cloud google-cloud-functions-parent - 2.48.0-SNAPSHOT + 2.48.0 diff --git a/java-gdchardwaremanagement/CHANGELOG.md b/java-gdchardwaremanagement/CHANGELOG.md new file mode 100644 index 000000000000..a1d71a080476 --- /dev/null +++ b/java-gdchardwaremanagement/CHANGELOG.md @@ -0,0 +1,8 @@ +# Changelog + +## 0.1.0 (2024-06-27) + +### Features + +* new module for gdchardwaremanagement ([#10990](https://github.com/googleapis/google-cloud-java/issues/10990)) ([c3cdc2a](https://github.com/googleapis/google-cloud-java/commit/c3cdc2a29e3d2f78e9e0550c24a30532db81c16a)) + diff --git a/java-gdchardwaremanagement/README.md b/java-gdchardwaremanagement/README.md index beaee56f7b25..9e1fd05135aa 100644 --- a/java-gdchardwaremanagement/README.md +++ b/java-gdchardwaremanagement/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gdchardwaremanagement - 0.0.0 + 0.1.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gdchardwaremanagement:0.0.0' +implementation 'com.google.cloud:google-cloud-gdchardwaremanagement:0.1.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gdchardwaremanagement" % "0.0.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gdchardwaremanagement" % "0.1.0" ``` diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement-bom/pom.xml b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement-bom/pom.xml index 40b6b5412c4b..de7d91ea367d 100644 --- a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement-bom/pom.xml +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-gdchardwaremanagement-bom - 0.0.1-SNAPSHOT + 0.1.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-gdchardwaremanagement - 0.0.1-SNAPSHOT + 0.1.0 com.google.api.grpc grpc-google-cloud-gdchardwaremanagement-v1alpha - 0.0.1-SNAPSHOT + 0.1.0 com.google.api.grpc proto-google-cloud-gdchardwaremanagement-v1alpha - 0.0.1-SNAPSHOT + 0.1.0 diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/pom.xml b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/pom.xml index 2fe6b0c86c6c..62fe17aa0f3e 100644 --- a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/pom.xml +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-gdchardwaremanagement - 0.0.1-SNAPSHOT + 0.1.0 jar Google GDC Hardware Management API GDC Hardware Management API Google Distributed Cloud connected allows you to run Kubernetes clusters on dedicated hardware provided and maintained by Google that is separate from the Google Cloud data center. com.google.cloud google-cloud-gdchardwaremanagement-parent - 0.0.1-SNAPSHOT + 0.1.0 google-cloud-gdchardwaremanagement diff --git a/java-gdchardwaremanagement/grpc-google-cloud-gdchardwaremanagement-v1alpha/pom.xml b/java-gdchardwaremanagement/grpc-google-cloud-gdchardwaremanagement-v1alpha/pom.xml index aef6da376b29..3cd6f2dec5f8 100644 --- a/java-gdchardwaremanagement/grpc-google-cloud-gdchardwaremanagement-v1alpha/pom.xml +++ b/java-gdchardwaremanagement/grpc-google-cloud-gdchardwaremanagement-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-gdchardwaremanagement-v1alpha - 0.0.1-SNAPSHOT + 0.1.0 grpc-google-cloud-gdchardwaremanagement-v1alpha GRPC library for google-cloud-gdchardwaremanagement com.google.cloud google-cloud-gdchardwaremanagement-parent - 0.0.1-SNAPSHOT + 0.1.0 diff --git a/java-gdchardwaremanagement/pom.xml b/java-gdchardwaremanagement/pom.xml index 6e0f336a1e1d..d927b20b38ab 100644 --- a/java-gdchardwaremanagement/pom.xml +++ b/java-gdchardwaremanagement/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-gdchardwaremanagement-parent pom - 0.0.1-SNAPSHOT + 0.1.0 Google GDC Hardware Management API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-gdchardwaremanagement - 0.0.1-SNAPSHOT + 0.1.0 com.google.api.grpc grpc-google-cloud-gdchardwaremanagement-v1alpha - 0.0.1-SNAPSHOT + 0.1.0 com.google.api.grpc proto-google-cloud-gdchardwaremanagement-v1alpha - 0.0.1-SNAPSHOT + 0.1.0 diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/pom.xml b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/pom.xml index aabcfdae325b..7cfe5b5552a3 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/pom.xml +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-gdchardwaremanagement-v1alpha - 0.0.1-SNAPSHOT + 0.1.0 proto-google-cloud-gdchardwaremanagement-v1alpha Proto library for google-cloud-gdchardwaremanagement com.google.cloud google-cloud-gdchardwaremanagement-parent - 0.0.1-SNAPSHOT + 0.1.0 diff --git a/java-gke-backup/CHANGELOG.md b/java-gke-backup/CHANGELOG.md index b51ec40e2769..020ae9178753 100644 --- a/java-gke-backup/CHANGELOG.md +++ b/java-gke-backup/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.45.0 (2024-06-27) + +* No change + + ## 0.44.0 (None) * No change diff --git a/java-gke-backup/README.md b/java-gke-backup/README.md index 0759a6415c1d..b920f7d11b11 100644 --- a/java-gke-backup/README.md +++ b/java-gke-backup/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gke-backup - 0.44.0 + 0.45.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gke-backup:0.44.0' +implementation 'com.google.cloud:google-cloud-gke-backup:0.45.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gke-backup" % "0.44.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gke-backup" % "0.45.0" ``` diff --git a/java-gke-backup/google-cloud-gke-backup-bom/pom.xml b/java-gke-backup/google-cloud-gke-backup-bom/pom.xml index 7a9fa5e26853..42f168f6053d 100644 --- a/java-gke-backup/google-cloud-gke-backup-bom/pom.xml +++ b/java-gke-backup/google-cloud-gke-backup-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-gke-backup-bom - 0.45.0-SNAPSHOT + 0.45.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-gke-backup - 0.45.0-SNAPSHOT + 0.45.0 com.google.api.grpc grpc-google-cloud-gke-backup-v1 - 0.45.0-SNAPSHOT + 0.45.0 com.google.api.grpc proto-google-cloud-gke-backup-v1 - 0.45.0-SNAPSHOT + 0.45.0 diff --git a/java-gke-backup/google-cloud-gke-backup/pom.xml b/java-gke-backup/google-cloud-gke-backup/pom.xml index 5f2367f7ae2d..244f0460beca 100644 --- a/java-gke-backup/google-cloud-gke-backup/pom.xml +++ b/java-gke-backup/google-cloud-gke-backup/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-gke-backup - 0.45.0-SNAPSHOT + 0.45.0 jar Google Backup for GKE Backup for GKE is a service for backing up and restoring workloads in GKE. com.google.cloud google-cloud-gke-backup-parent - 0.45.0-SNAPSHOT + 0.45.0 google-cloud-gke-backup diff --git a/java-gke-backup/grpc-google-cloud-gke-backup-v1/pom.xml b/java-gke-backup/grpc-google-cloud-gke-backup-v1/pom.xml index 43eea8128a66..cf79a27b1b03 100644 --- a/java-gke-backup/grpc-google-cloud-gke-backup-v1/pom.xml +++ b/java-gke-backup/grpc-google-cloud-gke-backup-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-gke-backup-v1 - 0.45.0-SNAPSHOT + 0.45.0 grpc-google-cloud-gke-backup-v1 GRPC library for google-cloud-gke-backup com.google.cloud google-cloud-gke-backup-parent - 0.45.0-SNAPSHOT + 0.45.0 diff --git a/java-gke-backup/pom.xml b/java-gke-backup/pom.xml index aab4e9841ca5..774d67a62498 100644 --- a/java-gke-backup/pom.xml +++ b/java-gke-backup/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-gke-backup-parent pom - 0.45.0-SNAPSHOT + 0.45.0 Google Backup for GKE Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-gke-backup - 0.45.0-SNAPSHOT + 0.45.0 com.google.api.grpc grpc-google-cloud-gke-backup-v1 - 0.45.0-SNAPSHOT + 0.45.0 com.google.api.grpc proto-google-cloud-gke-backup-v1 - 0.45.0-SNAPSHOT + 0.45.0 diff --git a/java-gke-backup/proto-google-cloud-gke-backup-v1/pom.xml b/java-gke-backup/proto-google-cloud-gke-backup-v1/pom.xml index b6636dd1991c..ebab8fe8d774 100644 --- a/java-gke-backup/proto-google-cloud-gke-backup-v1/pom.xml +++ b/java-gke-backup/proto-google-cloud-gke-backup-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-gke-backup-v1 - 0.45.0-SNAPSHOT + 0.45.0 proto-google-cloud-gke-backup-v1 Proto library for google-cloud-gke-backup com.google.cloud google-cloud-gke-backup-parent - 0.45.0-SNAPSHOT + 0.45.0 diff --git a/java-gke-connect-gateway/CHANGELOG.md b/java-gke-connect-gateway/CHANGELOG.md index cdd17b773aab..d9c32fa668c9 100644 --- a/java-gke-connect-gateway/CHANGELOG.md +++ b/java-gke-connect-gateway/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.47.0 (2024-06-27) + +* No change + + ## 0.46.0 (None) * No change diff --git a/java-gke-connect-gateway/README.md b/java-gke-connect-gateway/README.md index a2bc6aaa5429..fd2dc991e26d 100644 --- a/java-gke-connect-gateway/README.md +++ b/java-gke-connect-gateway/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gke-connect-gateway - 0.46.0 + 0.47.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gke-connect-gateway:0.46.0' +implementation 'com.google.cloud:google-cloud-gke-connect-gateway:0.47.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gke-connect-gateway" % "0.46.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gke-connect-gateway" % "0.47.0" ``` diff --git a/java-gke-connect-gateway/google-cloud-gke-connect-gateway-bom/pom.xml b/java-gke-connect-gateway/google-cloud-gke-connect-gateway-bom/pom.xml index 98b61a5a4d21..00d05d90f929 100644 --- a/java-gke-connect-gateway/google-cloud-gke-connect-gateway-bom/pom.xml +++ b/java-gke-connect-gateway/google-cloud-gke-connect-gateway-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-gke-connect-gateway-bom - 0.47.0-SNAPSHOT + 0.47.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-gke-connect-gateway - 0.47.0-SNAPSHOT + 0.47.0 com.google.api.grpc grpc-google-cloud-gke-connect-gateway-v1beta1 - 0.47.0-SNAPSHOT + 0.47.0 com.google.api.grpc proto-google-cloud-gke-connect-gateway-v1beta1 - 0.47.0-SNAPSHOT + 0.47.0 diff --git a/java-gke-connect-gateway/google-cloud-gke-connect-gateway/pom.xml b/java-gke-connect-gateway/google-cloud-gke-connect-gateway/pom.xml index dfc3858cf6cc..6e64acac8788 100644 --- a/java-gke-connect-gateway/google-cloud-gke-connect-gateway/pom.xml +++ b/java-gke-connect-gateway/google-cloud-gke-connect-gateway/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-gke-connect-gateway - 0.47.0-SNAPSHOT + 0.47.0 jar Google Connect Gateway API Connect Gateway API builds on the power of fleets to let Anthos users connect to and run commands against registered Anthos clusters in a simple, consistent, and secured way, whether the clusters are on Google Cloud, other public clouds, or on premises, and makes it easier to automate DevOps processes across all your clusters. com.google.cloud google-cloud-gke-connect-gateway-parent - 0.47.0-SNAPSHOT + 0.47.0 google-cloud-gke-connect-gateway diff --git a/java-gke-connect-gateway/grpc-google-cloud-gke-connect-gateway-v1beta1/pom.xml b/java-gke-connect-gateway/grpc-google-cloud-gke-connect-gateway-v1beta1/pom.xml index ead4dd17c033..d7a4bc6a8ba2 100644 --- a/java-gke-connect-gateway/grpc-google-cloud-gke-connect-gateway-v1beta1/pom.xml +++ b/java-gke-connect-gateway/grpc-google-cloud-gke-connect-gateway-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-gke-connect-gateway-v1beta1 - 0.47.0-SNAPSHOT + 0.47.0 grpc-google-cloud-gke-connect-gateway-v1beta1 GRPC library for google-cloud-gke-connect-gateway com.google.cloud google-cloud-gke-connect-gateway-parent - 0.47.0-SNAPSHOT + 0.47.0 diff --git a/java-gke-connect-gateway/pom.xml b/java-gke-connect-gateway/pom.xml index 3f9e63bb38ac..5395669f8874 100644 --- a/java-gke-connect-gateway/pom.xml +++ b/java-gke-connect-gateway/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-gke-connect-gateway-parent pom - 0.47.0-SNAPSHOT + 0.47.0 Google Connect Gateway API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-gke-connect-gateway - 0.47.0-SNAPSHOT + 0.47.0 com.google.api.grpc grpc-google-cloud-gke-connect-gateway-v1beta1 - 0.47.0-SNAPSHOT + 0.47.0 com.google.api.grpc proto-google-cloud-gke-connect-gateway-v1beta1 - 0.47.0-SNAPSHOT + 0.47.0 diff --git a/java-gke-connect-gateway/proto-google-cloud-gke-connect-gateway-v1beta1/pom.xml b/java-gke-connect-gateway/proto-google-cloud-gke-connect-gateway-v1beta1/pom.xml index 97e6bd258ee7..aa922f25e616 100644 --- a/java-gke-connect-gateway/proto-google-cloud-gke-connect-gateway-v1beta1/pom.xml +++ b/java-gke-connect-gateway/proto-google-cloud-gke-connect-gateway-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-gke-connect-gateway-v1beta1 - 0.47.0-SNAPSHOT + 0.47.0 proto-google-cloud-gke-connect-gateway-v1beta1 Proto library for google-cloud-gke-connect-gateway com.google.cloud google-cloud-gke-connect-gateway-parent - 0.47.0-SNAPSHOT + 0.47.0 diff --git a/java-gke-multi-cloud/CHANGELOG.md b/java-gke-multi-cloud/CHANGELOG.md index 42ed28863fff..bee22746f5bc 100644 --- a/java-gke-multi-cloud/CHANGELOG.md +++ b/java-gke-multi-cloud/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.45.0 (2024-06-27) + +* No change + + ## 0.44.0 (None) * No change diff --git a/java-gke-multi-cloud/README.md b/java-gke-multi-cloud/README.md index e2defd1f15c0..680feecf19ff 100644 --- a/java-gke-multi-cloud/README.md +++ b/java-gke-multi-cloud/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gke-multi-cloud - 0.44.0 + 0.45.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gke-multi-cloud:0.44.0' +implementation 'com.google.cloud:google-cloud-gke-multi-cloud:0.45.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gke-multi-cloud" % "0.44.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gke-multi-cloud" % "0.45.0" ``` diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud-bom/pom.xml b/java-gke-multi-cloud/google-cloud-gke-multi-cloud-bom/pom.xml index d0ac64ff065d..6e3640b13765 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud-bom/pom.xml +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-gke-multi-cloud-bom - 0.45.0-SNAPSHOT + 0.45.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-gke-multi-cloud - 0.45.0-SNAPSHOT + 0.45.0 com.google.api.grpc grpc-google-cloud-gke-multi-cloud-v1 - 0.45.0-SNAPSHOT + 0.45.0 com.google.api.grpc proto-google-cloud-gke-multi-cloud-v1 - 0.45.0-SNAPSHOT + 0.45.0 diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/pom.xml b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/pom.xml index b1e750cdea8c..b37b98aeadb7 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/pom.xml +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-gke-multi-cloud - 0.45.0-SNAPSHOT + 0.45.0 jar Google Anthos Multicloud Anthos Multicloud enables you to provision and manage GKE clusters running on AWS and Azure infrastructure through a centralized Google Cloud backed control plane. com.google.cloud google-cloud-gke-multi-cloud-parent - 0.45.0-SNAPSHOT + 0.45.0 google-cloud-gke-multi-cloud diff --git a/java-gke-multi-cloud/grpc-google-cloud-gke-multi-cloud-v1/pom.xml b/java-gke-multi-cloud/grpc-google-cloud-gke-multi-cloud-v1/pom.xml index 61e59bd1cbe1..9ac0f68ab7ff 100644 --- a/java-gke-multi-cloud/grpc-google-cloud-gke-multi-cloud-v1/pom.xml +++ b/java-gke-multi-cloud/grpc-google-cloud-gke-multi-cloud-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-gke-multi-cloud-v1 - 0.45.0-SNAPSHOT + 0.45.0 grpc-google-cloud-gke-multi-cloud-v1 GRPC library for google-cloud-gke-multi-cloud com.google.cloud google-cloud-gke-multi-cloud-parent - 0.45.0-SNAPSHOT + 0.45.0 diff --git a/java-gke-multi-cloud/pom.xml b/java-gke-multi-cloud/pom.xml index 857164cb4495..ca33b351180b 100644 --- a/java-gke-multi-cloud/pom.xml +++ b/java-gke-multi-cloud/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-gke-multi-cloud-parent pom - 0.45.0-SNAPSHOT + 0.45.0 Google Anthos Multicloud Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-gke-multi-cloud - 0.45.0-SNAPSHOT + 0.45.0 com.google.api.grpc grpc-google-cloud-gke-multi-cloud-v1 - 0.45.0-SNAPSHOT + 0.45.0 com.google.api.grpc proto-google-cloud-gke-multi-cloud-v1 - 0.45.0-SNAPSHOT + 0.45.0 diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/pom.xml b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/pom.xml index 2ede9530f6d9..313eef53f4e7 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/pom.xml +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-gke-multi-cloud-v1 - 0.45.0-SNAPSHOT + 0.45.0 proto-google-cloud-gke-multi-cloud-v1 Proto library for google-cloud-gke-multi-cloud com.google.cloud google-cloud-gke-multi-cloud-parent - 0.45.0-SNAPSHOT + 0.45.0 diff --git a/java-gkehub/CHANGELOG.md b/java-gkehub/CHANGELOG.md index 89db8ef2ae14..9719a7b6f8d2 100644 --- a/java-gkehub/CHANGELOG.md +++ b/java-gkehub/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.46.0 (2024-06-27) + +### Features + +* add a new field `PENDING` under `DeploymentState` enum ([666a3ac](https://github.com/googleapis/google-cloud-java/commit/666a3ac8cd0cb45da3555a1bef8dfe3edf57d257)) + + + ## 1.45.0 (None) * No change diff --git a/java-gkehub/README.md b/java-gkehub/README.md index a4b0b891bab4..f44730aba206 100644 --- a/java-gkehub/README.md +++ b/java-gkehub/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gkehub - 1.45.0 + 1.46.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gkehub:1.45.0' +implementation 'com.google.cloud:google-cloud-gkehub:1.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gkehub" % "1.45.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gkehub" % "1.46.0" ``` diff --git a/java-gkehub/google-cloud-gkehub-bom/pom.xml b/java-gkehub/google-cloud-gkehub-bom/pom.xml index 1be27bfd84fd..32baa20cf12e 100644 --- a/java-gkehub/google-cloud-gkehub-bom/pom.xml +++ b/java-gkehub/google-cloud-gkehub-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-gkehub-bom - 1.46.0-SNAPSHOT + 1.46.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,47 +27,47 @@ com.google.cloud google-cloud-gkehub - 1.46.0-SNAPSHOT + 1.46.0 com.google.api.grpc grpc-google-cloud-gkehub-v1beta1 - 0.52.0-SNAPSHOT + 0.52.0 com.google.api.grpc grpc-google-cloud-gkehub-v1 - 1.46.0-SNAPSHOT + 1.46.0 com.google.api.grpc grpc-google-cloud-gkehub-v1alpha - 0.52.0-SNAPSHOT + 0.52.0 com.google.api.grpc grpc-google-cloud-gkehub-v1beta - 0.52.0-SNAPSHOT + 0.52.0 com.google.api.grpc proto-google-cloud-gkehub-v1beta1 - 0.52.0-SNAPSHOT + 0.52.0 com.google.api.grpc proto-google-cloud-gkehub-v1 - 1.46.0-SNAPSHOT + 1.46.0 com.google.api.grpc proto-google-cloud-gkehub-v1alpha - 0.52.0-SNAPSHOT + 0.52.0 com.google.api.grpc proto-google-cloud-gkehub-v1beta - 0.52.0-SNAPSHOT + 0.52.0 diff --git a/java-gkehub/google-cloud-gkehub/pom.xml b/java-gkehub/google-cloud-gkehub/pom.xml index 405557ed5efd..f3634bc92dda 100644 --- a/java-gkehub/google-cloud-gkehub/pom.xml +++ b/java-gkehub/google-cloud-gkehub/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-gkehub - 1.46.0-SNAPSHOT + 1.46.0 jar Google GKE Hub API provides a unified way to work with Kubernetes clusters as part of Anthos, extending GKE to work in multiple environments. You have consistent, unified, and secure infrastructure, cluster, and container management, whether you're using Anthos on Google Cloud (with traditional GKE), hybrid cloud, or multiple public clouds. com.google.cloud google-cloud-gkehub-parent - 1.46.0-SNAPSHOT + 1.46.0 google-cloud-gkehub diff --git a/java-gkehub/grpc-google-cloud-gkehub-v1/pom.xml b/java-gkehub/grpc-google-cloud-gkehub-v1/pom.xml index 2596a3151e7a..fcfb3a7459ad 100644 --- a/java-gkehub/grpc-google-cloud-gkehub-v1/pom.xml +++ b/java-gkehub/grpc-google-cloud-gkehub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-gkehub-v1 - 1.46.0-SNAPSHOT + 1.46.0 grpc-google-cloud-gkehub-v1 GRPC library for google-cloud-gkehub com.google.cloud google-cloud-gkehub-parent - 1.46.0-SNAPSHOT + 1.46.0 diff --git a/java-gkehub/grpc-google-cloud-gkehub-v1alpha/pom.xml b/java-gkehub/grpc-google-cloud-gkehub-v1alpha/pom.xml index 3d1a44e80e16..d430e8ee5faf 100644 --- a/java-gkehub/grpc-google-cloud-gkehub-v1alpha/pom.xml +++ b/java-gkehub/grpc-google-cloud-gkehub-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-gkehub-v1alpha - 0.52.0-SNAPSHOT + 0.52.0 grpc-google-cloud-gkehub-v1alpha GRPC library for google-cloud-gkehub com.google.cloud google-cloud-gkehub-parent - 1.46.0-SNAPSHOT + 1.46.0 diff --git a/java-gkehub/grpc-google-cloud-gkehub-v1beta/pom.xml b/java-gkehub/grpc-google-cloud-gkehub-v1beta/pom.xml index d075179c420d..26a4c32365b4 100644 --- a/java-gkehub/grpc-google-cloud-gkehub-v1beta/pom.xml +++ b/java-gkehub/grpc-google-cloud-gkehub-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-gkehub-v1beta - 0.52.0-SNAPSHOT + 0.52.0 grpc-google-cloud-gkehub-v1beta GRPC library for google-cloud-gkehub com.google.cloud google-cloud-gkehub-parent - 1.46.0-SNAPSHOT + 1.46.0 diff --git a/java-gkehub/grpc-google-cloud-gkehub-v1beta1/pom.xml b/java-gkehub/grpc-google-cloud-gkehub-v1beta1/pom.xml index a2392b1c6e6e..c989068e0efd 100644 --- a/java-gkehub/grpc-google-cloud-gkehub-v1beta1/pom.xml +++ b/java-gkehub/grpc-google-cloud-gkehub-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-gkehub-v1beta1 - 0.52.0-SNAPSHOT + 0.52.0 grpc-google-cloud-gkehub-v1beta1 GRPC library for google-cloud-gkehub com.google.cloud google-cloud-gkehub-parent - 1.46.0-SNAPSHOT + 1.46.0 diff --git a/java-gkehub/pom.xml b/java-gkehub/pom.xml index 709b77767026..c3b74b371c3a 100644 --- a/java-gkehub/pom.xml +++ b/java-gkehub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-gkehub-parent pom - 1.46.0-SNAPSHOT + 1.46.0 Google GKE Hub API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,47 +29,47 @@ com.google.cloud google-cloud-gkehub - 1.46.0-SNAPSHOT + 1.46.0 com.google.api.grpc proto-google-cloud-gkehub-v1beta - 0.52.0-SNAPSHOT + 0.52.0 com.google.api.grpc proto-google-cloud-gkehub-v1alpha - 0.52.0-SNAPSHOT + 0.52.0 com.google.api.grpc proto-google-cloud-gkehub-v1 - 1.46.0-SNAPSHOT + 1.46.0 com.google.api.grpc grpc-google-cloud-gkehub-v1beta - 0.52.0-SNAPSHOT + 0.52.0 com.google.api.grpc grpc-google-cloud-gkehub-v1alpha - 0.52.0-SNAPSHOT + 0.52.0 com.google.api.grpc grpc-google-cloud-gkehub-v1 - 1.46.0-SNAPSHOT + 1.46.0 com.google.api.grpc proto-google-cloud-gkehub-v1beta1 - 0.52.0-SNAPSHOT + 0.52.0 com.google.api.grpc grpc-google-cloud-gkehub-v1beta1 - 0.52.0-SNAPSHOT + 0.52.0 diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/pom.xml b/java-gkehub/proto-google-cloud-gkehub-v1/pom.xml index 55939dae8c5e..c39dafbe206f 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/pom.xml +++ b/java-gkehub/proto-google-cloud-gkehub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-gkehub-v1 - 1.46.0-SNAPSHOT + 1.46.0 proto-google-cloud-gkehub-v1 Proto library for google-cloud-gkehub com.google.cloud google-cloud-gkehub-parent - 1.46.0-SNAPSHOT + 1.46.0 diff --git a/java-gkehub/proto-google-cloud-gkehub-v1alpha/pom.xml b/java-gkehub/proto-google-cloud-gkehub-v1alpha/pom.xml index 5040ff5d097d..fb80dd5b6cf2 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1alpha/pom.xml +++ b/java-gkehub/proto-google-cloud-gkehub-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-gkehub-v1alpha - 0.52.0-SNAPSHOT + 0.52.0 proto-google-cloud-gkehub-v1alpha Proto library for google-cloud-gkehub com.google.cloud google-cloud-gkehub-parent - 1.46.0-SNAPSHOT + 1.46.0 diff --git a/java-gkehub/proto-google-cloud-gkehub-v1beta/pom.xml b/java-gkehub/proto-google-cloud-gkehub-v1beta/pom.xml index d590f60e5b0c..32fa6273d2a4 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1beta/pom.xml +++ b/java-gkehub/proto-google-cloud-gkehub-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-gkehub-v1beta - 0.52.0-SNAPSHOT + 0.52.0 proto-google-cloud-gkehub-v1beta Proto library for google-cloud-gkehub com.google.cloud google-cloud-gkehub-parent - 1.46.0-SNAPSHOT + 1.46.0 diff --git a/java-gkehub/proto-google-cloud-gkehub-v1beta1/pom.xml b/java-gkehub/proto-google-cloud-gkehub-v1beta1/pom.xml index 4aaa9f60fb74..7dbd31d1b1d3 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1beta1/pom.xml +++ b/java-gkehub/proto-google-cloud-gkehub-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-gkehub-v1beta1 - 0.52.0-SNAPSHOT + 0.52.0 proto-google-cloud-gkehub-v1beta1 Proto library for google-cloud-gkehub com.google.cloud google-cloud-gkehub-parent - 1.46.0-SNAPSHOT + 1.46.0 diff --git a/java-grafeas/CHANGELOG.md b/java-grafeas/CHANGELOG.md index 587db7524624..9417fcff4592 100644 --- a/java-grafeas/CHANGELOG.md +++ b/java-grafeas/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.47.0 (2024-06-27) + +* No change + + ## 2.46.0 (None) * No change diff --git a/java-grafeas/README.md b/java-grafeas/README.md index cbc7f3e15cda..07da52ed6caa 100644 --- a/java-grafeas/README.md +++ b/java-grafeas/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: io.grafeas grafeas - 2.46.0 + 2.47.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'io.grafeas:grafeas:2.46.0' +implementation 'io.grafeas:grafeas:2.47.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "io.grafeas" % "grafeas" % "2.46.0" +libraryDependencies += "io.grafeas" % "grafeas" % "2.47.0" ``` diff --git a/java-grafeas/pom.xml b/java-grafeas/pom.xml index cd1d183cb662..13a64b457cdc 100644 --- a/java-grafeas/pom.xml +++ b/java-grafeas/pom.xml @@ -5,7 +5,7 @@ 4.0.0 io.grafeas grafeas - 2.47.0-SNAPSHOT + 2.47.0 jar Grafeas Client @@ -15,7 +15,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml diff --git a/java-gsuite-addons/CHANGELOG.md b/java-gsuite-addons/CHANGELOG.md index 3e64d296482a..89000c94da84 100644 --- a/java-gsuite-addons/CHANGELOG.md +++ b/java-gsuite-addons/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.46.0 (2024-06-27) + +* No change + + ## 2.45.0 (None) * No change diff --git a/java-gsuite-addons/README.md b/java-gsuite-addons/README.md index 176299c4e588..c8a211e13221 100644 --- a/java-gsuite-addons/README.md +++ b/java-gsuite-addons/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gsuite-addons - 2.45.0 + 2.46.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gsuite-addons:2.45.0' +implementation 'com.google.cloud:google-cloud-gsuite-addons:2.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gsuite-addons" % "2.45.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gsuite-addons" % "2.46.0" ``` diff --git a/java-gsuite-addons/google-cloud-gsuite-addons-bom/pom.xml b/java-gsuite-addons/google-cloud-gsuite-addons-bom/pom.xml index bca500adfff4..fe4ca6fbf147 100644 --- a/java-gsuite-addons/google-cloud-gsuite-addons-bom/pom.xml +++ b/java-gsuite-addons/google-cloud-gsuite-addons-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-gsuite-addons-bom - 2.46.0-SNAPSHOT + 2.46.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,22 +27,22 @@ com.google.cloud google-cloud-gsuite-addons - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc grpc-google-cloud-gsuite-addons-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc proto-google-cloud-gsuite-addons-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc proto-google-apps-script-type-protos - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-gsuite-addons/google-cloud-gsuite-addons/pom.xml b/java-gsuite-addons/google-cloud-gsuite-addons/pom.xml index 92ae39c5092e..42ac1f90cb39 100644 --- a/java-gsuite-addons/google-cloud-gsuite-addons/pom.xml +++ b/java-gsuite-addons/google-cloud-gsuite-addons/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-gsuite-addons - 2.46.0-SNAPSHOT + 2.46.0 jar Google Google Workspace Add-ons API Google Workspace Add-ons API are customized applications that integrate with Google Workspace productivity applications. com.google.cloud google-cloud-gsuite-addons-parent - 2.46.0-SNAPSHOT + 2.46.0 google-cloud-gsuite-addons diff --git a/java-gsuite-addons/grpc-google-cloud-gsuite-addons-v1/pom.xml b/java-gsuite-addons/grpc-google-cloud-gsuite-addons-v1/pom.xml index 58fa9db97fde..63e2b73bf3e3 100644 --- a/java-gsuite-addons/grpc-google-cloud-gsuite-addons-v1/pom.xml +++ b/java-gsuite-addons/grpc-google-cloud-gsuite-addons-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-gsuite-addons-v1 - 2.46.0-SNAPSHOT + 2.46.0 grpc-google-cloud-gsuite-addons-v1 GRPC library for google-cloud-gsuite-addons com.google.cloud google-cloud-gsuite-addons-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-gsuite-addons/pom.xml b/java-gsuite-addons/pom.xml index 4007088b948d..958d9bb154c6 100644 --- a/java-gsuite-addons/pom.xml +++ b/java-gsuite-addons/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-gsuite-addons-parent pom - 2.46.0-SNAPSHOT + 2.46.0 Google Google Workspace Add-ons API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,22 +29,22 @@ com.google.cloud google-cloud-gsuite-addons - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc proto-google-apps-script-type-protos - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc grpc-google-cloud-gsuite-addons-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc proto-google-cloud-gsuite-addons-v1 - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-gsuite-addons/proto-google-apps-script-type-protos/pom.xml b/java-gsuite-addons/proto-google-apps-script-type-protos/pom.xml index 5674d26c74f4..ef59353de32a 100644 --- a/java-gsuite-addons/proto-google-apps-script-type-protos/pom.xml +++ b/java-gsuite-addons/proto-google-apps-script-type-protos/pom.xml @@ -5,13 +5,13 @@ com.google.cloud google-cloud-gsuite-addons-parent - 2.46.0-SNAPSHOT + 2.46.0 4.0.0 com.google.api.grpc proto-google-apps-script-type-protos proto-google-apps-script-type-protos - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/pom.xml b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/pom.xml index af21dcc12b37..d64d498c8e18 100644 --- a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/pom.xml +++ b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-gsuite-addons-v1 - 2.46.0-SNAPSHOT + 2.46.0 proto-google-cloud-gsuite-addons-v1 Proto library for google-cloud-gsuite-addons com.google.cloud google-cloud-gsuite-addons-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-iam-admin/CHANGELOG.md b/java-iam-admin/CHANGELOG.md index 88084fff9741..9d199b497375 100644 --- a/java-iam-admin/CHANGELOG.md +++ b/java-iam-admin/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 3.41.0 (2024-06-27) + +* No change + + ## 3.40.0 (None) * No change diff --git a/java-iam-admin/README.md b/java-iam-admin/README.md index a6146d83058d..36a8f95e7375 100644 --- a/java-iam-admin/README.md +++ b/java-iam-admin/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-iam-admin - 3.40.0 + 3.41.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-iam-admin:3.40.0' +implementation 'com.google.cloud:google-iam-admin:3.41.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-iam-admin" % "3.40.0" +libraryDependencies += "com.google.cloud" % "google-iam-admin" % "3.41.0" ``` diff --git a/java-iam-admin/google-iam-admin-bom/pom.xml b/java-iam-admin/google-iam-admin-bom/pom.xml index 4bd9b77d1781..c6102f75f0c1 100644 --- a/java-iam-admin/google-iam-admin-bom/pom.xml +++ b/java-iam-admin/google-iam-admin-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-iam-admin-bom - 3.41.0-SNAPSHOT + 3.41.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-iam-admin - 3.41.0-SNAPSHOT + 3.41.0 com.google.api.grpc grpc-google-iam-admin-v1 - 3.41.0-SNAPSHOT + 3.41.0 com.google.api.grpc proto-google-iam-admin-v1 - 3.41.0-SNAPSHOT + 3.41.0 diff --git a/java-iam-admin/google-iam-admin/pom.xml b/java-iam-admin/google-iam-admin/pom.xml index a9350606c4a5..0a6b092c0364 100644 --- a/java-iam-admin/google-iam-admin/pom.xml +++ b/java-iam-admin/google-iam-admin/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-iam-admin - 3.41.0-SNAPSHOT + 3.41.0 jar Google IAM Admin API IAM Admin API you to manage your Service Accounts and IAM bindings. com.google.cloud google-iam-admin-parent - 3.41.0-SNAPSHOT + 3.41.0 google-iam-admin diff --git a/java-iam-admin/grpc-google-iam-admin-v1/pom.xml b/java-iam-admin/grpc-google-iam-admin-v1/pom.xml index 4679f77468c7..9db182f78def 100644 --- a/java-iam-admin/grpc-google-iam-admin-v1/pom.xml +++ b/java-iam-admin/grpc-google-iam-admin-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-iam-admin-v1 - 3.41.0-SNAPSHOT + 3.41.0 grpc-google-iam-admin-v1 GRPC library for google-iam-admin com.google.cloud google-iam-admin-parent - 3.41.0-SNAPSHOT + 3.41.0 diff --git a/java-iam-admin/pom.xml b/java-iam-admin/pom.xml index 2cf98fdfa090..a8cb59fd5ccd 100644 --- a/java-iam-admin/pom.xml +++ b/java-iam-admin/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-iam-admin-parent pom - 3.41.0-SNAPSHOT + 3.41.0 Google IAM Admin API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-iam-admin - 3.41.0-SNAPSHOT + 3.41.0 com.google.api.grpc grpc-google-iam-admin-v1 - 3.41.0-SNAPSHOT + 3.41.0 com.google.api.grpc proto-google-iam-admin-v1 - 3.41.0-SNAPSHOT + 3.41.0 diff --git a/java-iam-admin/proto-google-iam-admin-v1/pom.xml b/java-iam-admin/proto-google-iam-admin-v1/pom.xml index 03579ac52c4d..de44a0926122 100644 --- a/java-iam-admin/proto-google-iam-admin-v1/pom.xml +++ b/java-iam-admin/proto-google-iam-admin-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-iam-admin-v1 - 3.41.0-SNAPSHOT + 3.41.0 proto-google-iam-admin-v1 Proto library for google-iam-admin com.google.cloud google-iam-admin-parent - 3.41.0-SNAPSHOT + 3.41.0 diff --git a/java-iam/CHANGELOG.md b/java-iam/CHANGELOG.md index c4992c20448d..a3982b716a21 100644 --- a/java-iam/CHANGELOG.md +++ b/java-iam/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 1.44.0 (2024-06-27) + +* No change + + ## 1.43.0 (None) * No change diff --git a/java-iam/README.md b/java-iam/README.md index c9dd87fdf58a..05f5f977ade3 100644 --- a/java-iam/README.md +++ b/java-iam/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-iam-policy - 1.43.0 + 1.44.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-iam-policy:1.43.0' +implementation 'com.google.cloud:google-iam-policy:1.44.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-iam-policy" % "1.43.0" +libraryDependencies += "com.google.cloud" % "google-iam-policy" % "1.44.0" ``` diff --git a/java-iam/google-iam-policy-bom/pom.xml b/java-iam/google-iam-policy-bom/pom.xml index 056e86167352..bb568e326be3 100644 --- a/java-iam/google-iam-policy-bom/pom.xml +++ b/java-iam/google-iam-policy-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-iam-policy-bom - 1.44.0-SNAPSHOT + 1.44.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,7 +27,7 @@ com.google.cloud google-iam-policy - 1.44.0-SNAPSHOT + 1.44.0 diff --git a/java-iam/google-iam-policy/pom.xml b/java-iam/google-iam-policy/pom.xml index 83b025f510d8..5ef4da3dbed4 100644 --- a/java-iam/google-iam-policy/pom.xml +++ b/java-iam/google-iam-policy/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-iam-policy - 1.44.0-SNAPSHOT + 1.44.0 jar Google IAM Policy Eventarc lets you asynchronously deliver events from Google services, SaaS, and your own apps using loosely coupled services that react to state changes. com.google.cloud google-iam-policy-parent - 1.44.0-SNAPSHOT + 1.44.0 google-iam-policy diff --git a/java-iam/pom.xml b/java-iam/pom.xml index faa8b2854b58..99a5517aee58 100644 --- a/java-iam/pom.xml +++ b/java-iam/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-iam-policy-parent pom - 1.44.0-SNAPSHOT + 1.44.0 Google IAM Policy Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml diff --git a/java-iamcredentials/CHANGELOG.md b/java-iamcredentials/CHANGELOG.md index 47480586caa3..5696a7d91e1e 100644 --- a/java-iamcredentials/CHANGELOG.md +++ b/java-iamcredentials/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.46.0 (2024-06-27) + +* No change + + ## 2.45.0 (None) * No change diff --git a/java-iamcredentials/README.md b/java-iamcredentials/README.md index 26e1e5c350fc..5b436e9b4763 100644 --- a/java-iamcredentials/README.md +++ b/java-iamcredentials/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-iamcredentials - 2.45.0 + 2.46.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-iamcredentials:2.45.0' +implementation 'com.google.cloud:google-cloud-iamcredentials:2.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-iamcredentials" % "2.45.0" +libraryDependencies += "com.google.cloud" % "google-cloud-iamcredentials" % "2.46.0" ``` diff --git a/java-iamcredentials/google-cloud-iamcredentials-bom/pom.xml b/java-iamcredentials/google-cloud-iamcredentials-bom/pom.xml index c0758882cb51..c4e2e370b885 100644 --- a/java-iamcredentials/google-cloud-iamcredentials-bom/pom.xml +++ b/java-iamcredentials/google-cloud-iamcredentials-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-iamcredentials-bom - 2.46.0-SNAPSHOT + 2.46.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-iamcredentials - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc grpc-google-cloud-iamcredentials-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc proto-google-cloud-iamcredentials-v1 - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-iamcredentials/google-cloud-iamcredentials/pom.xml b/java-iamcredentials/google-cloud-iamcredentials/pom.xml index 6b9562d81d20..c7aa7d6ef36a 100644 --- a/java-iamcredentials/google-cloud-iamcredentials/pom.xml +++ b/java-iamcredentials/google-cloud-iamcredentials/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-iamcredentials - 2.46.0-SNAPSHOT + 2.46.0 jar Google Cloud IAM Service Account Credentials Java idiomatic client for Google Cloud IAM Service Account Credentials com.google.cloud google-cloud-iamcredentials-parent - 2.46.0-SNAPSHOT + 2.46.0 google-cloud-iamcredentials diff --git a/java-iamcredentials/grpc-google-cloud-iamcredentials-v1/pom.xml b/java-iamcredentials/grpc-google-cloud-iamcredentials-v1/pom.xml index a22936038a9b..afb312fc4878 100644 --- a/java-iamcredentials/grpc-google-cloud-iamcredentials-v1/pom.xml +++ b/java-iamcredentials/grpc-google-cloud-iamcredentials-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-iamcredentials-v1 - 2.46.0-SNAPSHOT + 2.46.0 grpc-google-cloud-iamcredentials-v1 GRPC library for grpc-google-cloud-iamcredentials-v1 com.google.cloud google-cloud-iamcredentials-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-iamcredentials/pom.xml b/java-iamcredentials/pom.xml index 9278e8a76084..65fb80f80a21 100644 --- a/java-iamcredentials/pom.xml +++ b/java-iamcredentials/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-iamcredentials-parent pom - 2.46.0-SNAPSHOT + 2.46.0 Google Cloud IAM Service Account Credentials Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.api.grpc proto-google-cloud-iamcredentials-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc grpc-google-cloud-iamcredentials-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.cloud google-cloud-iamcredentials - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-iamcredentials/proto-google-cloud-iamcredentials-v1/pom.xml b/java-iamcredentials/proto-google-cloud-iamcredentials-v1/pom.xml index 2f8a64b3401f..9367f6f305a6 100644 --- a/java-iamcredentials/proto-google-cloud-iamcredentials-v1/pom.xml +++ b/java-iamcredentials/proto-google-cloud-iamcredentials-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-iamcredentials-v1 - 2.46.0-SNAPSHOT + 2.46.0 proto-google-cloud-iamcredentials-v1 PROTO library for proto-google-cloud-iamcredentials-v1 com.google.cloud google-cloud-iamcredentials-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-iap/CHANGELOG.md b/java-iap/CHANGELOG.md index 7a8760f9bb40..70acbf878864 100644 --- a/java-iap/CHANGELOG.md +++ b/java-iap/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.2.0 (2024-06-27) + +* No change + + ## 0.1.0 (None) * No change diff --git a/java-iap/README.md b/java-iap/README.md index 384b8b812d0c..29c18da605e9 100644 --- a/java-iap/README.md +++ b/java-iap/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-iap - 0.1.0 + 0.2.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-iap:0.1.0' +implementation 'com.google.cloud:google-cloud-iap:0.2.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-iap" % "0.1.0" +libraryDependencies += "com.google.cloud" % "google-cloud-iap" % "0.2.0" ``` diff --git a/java-iap/google-cloud-iap-bom/pom.xml b/java-iap/google-cloud-iap-bom/pom.xml index b4d0315bc12a..2cb09d17741d 100644 --- a/java-iap/google-cloud-iap-bom/pom.xml +++ b/java-iap/google-cloud-iap-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-iap-bom - 0.2.0-SNAPSHOT + 0.2.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-iap - 0.2.0-SNAPSHOT + 0.2.0 com.google.api.grpc grpc-google-cloud-iap-v1 - 0.2.0-SNAPSHOT + 0.2.0 com.google.api.grpc proto-google-cloud-iap-v1 - 0.2.0-SNAPSHOT + 0.2.0 diff --git a/java-iap/google-cloud-iap/pom.xml b/java-iap/google-cloud-iap/pom.xml index 365c8da3ac7d..57e73e42bc4b 100644 --- a/java-iap/google-cloud-iap/pom.xml +++ b/java-iap/google-cloud-iap/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-iap - 0.2.0-SNAPSHOT + 0.2.0 jar Google Cloud Identity-Aware Proxy API Cloud Identity-Aware Proxy API Controls access to cloud applications running on Google Cloud Platform. com.google.cloud google-cloud-iap-parent - 0.2.0-SNAPSHOT + 0.2.0 google-cloud-iap diff --git a/java-iap/grpc-google-cloud-iap-v1/pom.xml b/java-iap/grpc-google-cloud-iap-v1/pom.xml index bfb45c657992..80e3872f0209 100644 --- a/java-iap/grpc-google-cloud-iap-v1/pom.xml +++ b/java-iap/grpc-google-cloud-iap-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-iap-v1 - 0.2.0-SNAPSHOT + 0.2.0 grpc-google-cloud-iap-v1 GRPC library for google-cloud-iap com.google.cloud google-cloud-iap-parent - 0.2.0-SNAPSHOT + 0.2.0 diff --git a/java-iap/pom.xml b/java-iap/pom.xml index d1c7fab91832..6e619855c73d 100644 --- a/java-iap/pom.xml +++ b/java-iap/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-iap-parent pom - 0.2.0-SNAPSHOT + 0.2.0 Google Cloud Identity-Aware Proxy API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-iap - 0.2.0-SNAPSHOT + 0.2.0 com.google.api.grpc grpc-google-cloud-iap-v1 - 0.2.0-SNAPSHOT + 0.2.0 com.google.api.grpc proto-google-cloud-iap-v1 - 0.2.0-SNAPSHOT + 0.2.0 diff --git a/java-iap/proto-google-cloud-iap-v1/pom.xml b/java-iap/proto-google-cloud-iap-v1/pom.xml index f70f1d24d350..50c145ffe5e4 100644 --- a/java-iap/proto-google-cloud-iap-v1/pom.xml +++ b/java-iap/proto-google-cloud-iap-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-iap-v1 - 0.2.0-SNAPSHOT + 0.2.0 proto-google-cloud-iap-v1 Proto library for google-cloud-iap com.google.cloud google-cloud-iap-parent - 0.2.0-SNAPSHOT + 0.2.0 diff --git a/java-ids/CHANGELOG.md b/java-ids/CHANGELOG.md index 330a41caaece..52044b732df5 100644 --- a/java-ids/CHANGELOG.md +++ b/java-ids/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 1.45.0 (2024-06-27) + +* No change + + ## 1.44.0 (None) * No change diff --git a/java-ids/README.md b/java-ids/README.md index ef6c7609c81a..232f7f682650 100644 --- a/java-ids/README.md +++ b/java-ids/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-ids - 1.44.0 + 1.45.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-ids:1.44.0' +implementation 'com.google.cloud:google-cloud-ids:1.45.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-ids" % "1.44.0" +libraryDependencies += "com.google.cloud" % "google-cloud-ids" % "1.45.0" ``` diff --git a/java-ids/google-cloud-ids-bom/pom.xml b/java-ids/google-cloud-ids-bom/pom.xml index 87906677c9dc..44b41ef2b74d 100644 --- a/java-ids/google-cloud-ids-bom/pom.xml +++ b/java-ids/google-cloud-ids-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-ids-bom - 1.45.0-SNAPSHOT + 1.45.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-ids - 1.45.0-SNAPSHOT + 1.45.0 com.google.api.grpc grpc-google-cloud-ids-v1 - 1.45.0-SNAPSHOT + 1.45.0 com.google.api.grpc proto-google-cloud-ids-v1 - 1.45.0-SNAPSHOT + 1.45.0 diff --git a/java-ids/google-cloud-ids/pom.xml b/java-ids/google-cloud-ids/pom.xml index 500d4cb6212d..6ef062f760bc 100644 --- a/java-ids/google-cloud-ids/pom.xml +++ b/java-ids/google-cloud-ids/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-ids - 1.45.0-SNAPSHOT + 1.45.0 jar Google Intrusion Detection System Intrusion Detection System monitors your networks, and it alerts you when it detects malicious activity. Cloud IDS is powered by Palo Alto Networks. com.google.cloud google-cloud-ids-parent - 1.45.0-SNAPSHOT + 1.45.0 google-cloud-ids diff --git a/java-ids/grpc-google-cloud-ids-v1/pom.xml b/java-ids/grpc-google-cloud-ids-v1/pom.xml index 299443fa7356..44c363325c5f 100644 --- a/java-ids/grpc-google-cloud-ids-v1/pom.xml +++ b/java-ids/grpc-google-cloud-ids-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-ids-v1 - 1.45.0-SNAPSHOT + 1.45.0 grpc-google-cloud-ids-v1 GRPC library for google-cloud-ids com.google.cloud google-cloud-ids-parent - 1.45.0-SNAPSHOT + 1.45.0 diff --git a/java-ids/pom.xml b/java-ids/pom.xml index 7e9af580476b..3a8604fce505 100644 --- a/java-ids/pom.xml +++ b/java-ids/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-ids-parent pom - 1.45.0-SNAPSHOT + 1.45.0 Google Intrusion Detection System Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-ids - 1.45.0-SNAPSHOT + 1.45.0 com.google.api.grpc grpc-google-cloud-ids-v1 - 1.45.0-SNAPSHOT + 1.45.0 com.google.api.grpc proto-google-cloud-ids-v1 - 1.45.0-SNAPSHOT + 1.45.0 diff --git a/java-ids/proto-google-cloud-ids-v1/pom.xml b/java-ids/proto-google-cloud-ids-v1/pom.xml index 4154fece615b..da93d444230a 100644 --- a/java-ids/proto-google-cloud-ids-v1/pom.xml +++ b/java-ids/proto-google-cloud-ids-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-ids-v1 - 1.45.0-SNAPSHOT + 1.45.0 proto-google-cloud-ids-v1 Proto library for google-cloud-ids com.google.cloud google-cloud-ids-parent - 1.45.0-SNAPSHOT + 1.45.0 diff --git a/java-infra-manager/CHANGELOG.md b/java-infra-manager/CHANGELOG.md index ddf6996ba063..6eabcc4b46b2 100644 --- a/java-infra-manager/CHANGELOG.md +++ b/java-infra-manager/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.23.0 (2024-06-27) + +* No change + + ## 0.22.0 (None) * No change diff --git a/java-infra-manager/README.md b/java-infra-manager/README.md index da30cca7a36a..e85d2cddbfdd 100644 --- a/java-infra-manager/README.md +++ b/java-infra-manager/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-infra-manager - 0.22.0 + 0.23.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-infra-manager:0.22.0' +implementation 'com.google.cloud:google-cloud-infra-manager:0.23.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-infra-manager" % "0.22.0" +libraryDependencies += "com.google.cloud" % "google-cloud-infra-manager" % "0.23.0" ``` diff --git a/java-infra-manager/google-cloud-infra-manager-bom/pom.xml b/java-infra-manager/google-cloud-infra-manager-bom/pom.xml index b3123542e1f9..b46d30d41f17 100644 --- a/java-infra-manager/google-cloud-infra-manager-bom/pom.xml +++ b/java-infra-manager/google-cloud-infra-manager-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-infra-manager-bom - 0.23.0-SNAPSHOT + 0.23.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-infra-manager - 0.23.0-SNAPSHOT + 0.23.0 com.google.api.grpc grpc-google-cloud-infra-manager-v1 - 0.23.0-SNAPSHOT + 0.23.0 com.google.api.grpc proto-google-cloud-infra-manager-v1 - 0.23.0-SNAPSHOT + 0.23.0 diff --git a/java-infra-manager/google-cloud-infra-manager/pom.xml b/java-infra-manager/google-cloud-infra-manager/pom.xml index 818cd8472d02..f04a090d0fb4 100644 --- a/java-infra-manager/google-cloud-infra-manager/pom.xml +++ b/java-infra-manager/google-cloud-infra-manager/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-infra-manager - 0.23.0-SNAPSHOT + 0.23.0 jar Google Infrastructure Manager API Infrastructure Manager API Creates and manages Google Cloud Platform resources and infrastructure. com.google.cloud google-cloud-infra-manager-parent - 0.23.0-SNAPSHOT + 0.23.0 google-cloud-infra-manager diff --git a/java-infra-manager/grpc-google-cloud-infra-manager-v1/pom.xml b/java-infra-manager/grpc-google-cloud-infra-manager-v1/pom.xml index d0f822035c6d..d83803a22800 100644 --- a/java-infra-manager/grpc-google-cloud-infra-manager-v1/pom.xml +++ b/java-infra-manager/grpc-google-cloud-infra-manager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-infra-manager-v1 - 0.23.0-SNAPSHOT + 0.23.0 grpc-google-cloud-infra-manager-v1 GRPC library for google-cloud-infra-manager com.google.cloud google-cloud-infra-manager-parent - 0.23.0-SNAPSHOT + 0.23.0 diff --git a/java-infra-manager/pom.xml b/java-infra-manager/pom.xml index cc91c54e14d2..a7dc225ab4ec 100644 --- a/java-infra-manager/pom.xml +++ b/java-infra-manager/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-infra-manager-parent pom - 0.23.0-SNAPSHOT + 0.23.0 Google Infrastructure Manager API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-infra-manager - 0.23.0-SNAPSHOT + 0.23.0 com.google.api.grpc grpc-google-cloud-infra-manager-v1 - 0.23.0-SNAPSHOT + 0.23.0 com.google.api.grpc proto-google-cloud-infra-manager-v1 - 0.23.0-SNAPSHOT + 0.23.0 diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/pom.xml b/java-infra-manager/proto-google-cloud-infra-manager-v1/pom.xml index 867fbb344992..f54746988cb5 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/pom.xml +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-infra-manager-v1 - 0.23.0-SNAPSHOT + 0.23.0 proto-google-cloud-infra-manager-v1 Proto library for google-cloud-infra-manager com.google.cloud google-cloud-infra-manager-parent - 0.23.0-SNAPSHOT + 0.23.0 diff --git a/java-iot/CHANGELOG.md b/java-iot/CHANGELOG.md index 856be54f66e4..16f0dfb7db3e 100644 --- a/java-iot/CHANGELOG.md +++ b/java-iot/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.46.0 (2024-06-27) + +* No change + + ## 2.45.0 (None) * No change diff --git a/java-iot/README.md b/java-iot/README.md index 96d7891533b4..0b70c7c046fe 100644 --- a/java-iot/README.md +++ b/java-iot/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-iot - 2.45.0 + 2.46.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-iot:2.45.0' +implementation 'com.google.cloud:google-cloud-iot:2.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-iot" % "2.45.0" +libraryDependencies += "com.google.cloud" % "google-cloud-iot" % "2.46.0" ``` diff --git a/java-iot/google-cloud-iot-bom/pom.xml b/java-iot/google-cloud-iot-bom/pom.xml index d9f394b11b0e..a815055ae83b 100644 --- a/java-iot/google-cloud-iot-bom/pom.xml +++ b/java-iot/google-cloud-iot-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-iot-bom - 2.46.0-SNAPSHOT + 2.46.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-iot - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc grpc-google-cloud-iot-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc proto-google-cloud-iot-v1 - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-iot/google-cloud-iot/pom.xml b/java-iot/google-cloud-iot/pom.xml index 13512367bce9..ee127d0b1f5f 100644 --- a/java-iot/google-cloud-iot/pom.xml +++ b/java-iot/google-cloud-iot/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-iot - 2.46.0-SNAPSHOT + 2.46.0 jar Google Cloud IoT Core Java idiomatic client for Google Cloud IoT Core com.google.cloud google-cloud-iot-parent - 2.46.0-SNAPSHOT + 2.46.0 google-cloud-iot diff --git a/java-iot/grpc-google-cloud-iot-v1/pom.xml b/java-iot/grpc-google-cloud-iot-v1/pom.xml index 3f348847fc42..109b8d123de0 100644 --- a/java-iot/grpc-google-cloud-iot-v1/pom.xml +++ b/java-iot/grpc-google-cloud-iot-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-iot-v1 - 2.46.0-SNAPSHOT + 2.46.0 grpc-google-cloud-iot-v1 GRPC library for grpc-google-cloud-iot-v1 com.google.cloud google-cloud-iot-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-iot/pom.xml b/java-iot/pom.xml index fcc35e681469..1c958623f93d 100644 --- a/java-iot/pom.xml +++ b/java-iot/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-iot-parent pom - 2.46.0-SNAPSHOT + 2.46.0 Google Cloud IoT Core Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.api.grpc proto-google-cloud-iot-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc grpc-google-cloud-iot-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.cloud google-cloud-iot - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-iot/proto-google-cloud-iot-v1/pom.xml b/java-iot/proto-google-cloud-iot-v1/pom.xml index a05576bf8582..43e74723df53 100644 --- a/java-iot/proto-google-cloud-iot-v1/pom.xml +++ b/java-iot/proto-google-cloud-iot-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-iot-v1 - 2.46.0-SNAPSHOT + 2.46.0 proto-google-cloud-iot-v1 PROTO library for proto-google-cloud-iot-v1 com.google.cloud google-cloud-iot-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-kms/CHANGELOG.md b/java-kms/CHANGELOG.md index 3082f422087d..0e6de833d273 100644 --- a/java-kms/CHANGELOG.md +++ b/java-kms/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.49.0 (2024-06-27) + +* No change + + ## 2.48.0 (None) * No change diff --git a/java-kms/README.md b/java-kms/README.md index 74b885149ed5..69a7017972f7 100644 --- a/java-kms/README.md +++ b/java-kms/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-kms - 2.48.0 + 2.49.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-kms:2.48.0' +implementation 'com.google.cloud:google-cloud-kms:2.49.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-kms" % "2.48.0" +libraryDependencies += "com.google.cloud" % "google-cloud-kms" % "2.49.0" ``` diff --git a/java-kms/google-cloud-kms-bom/pom.xml b/java-kms/google-cloud-kms-bom/pom.xml index d91aa0d160ef..7d66c7deea58 100644 --- a/java-kms/google-cloud-kms-bom/pom.xml +++ b/java-kms/google-cloud-kms-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-kms-bom - 2.49.0-SNAPSHOT + 2.49.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-kms - 2.49.0-SNAPSHOT + 2.49.0 com.google.api.grpc grpc-google-cloud-kms-v1 - 0.140.0-SNAPSHOT + 0.140.0 com.google.api.grpc proto-google-cloud-kms-v1 - 0.140.0-SNAPSHOT + 0.140.0 diff --git a/java-kms/google-cloud-kms/pom.xml b/java-kms/google-cloud-kms/pom.xml index 54c3548ff440..085b93aea29d 100644 --- a/java-kms/google-cloud-kms/pom.xml +++ b/java-kms/google-cloud-kms/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-kms - 2.49.0-SNAPSHOT + 2.49.0 jar Google Cloud KMS Java idiomatic client for Google Cloud KMS com.google.cloud google-cloud-kms-parent - 2.49.0-SNAPSHOT + 2.49.0 google-cloud-kms diff --git a/java-kms/grpc-google-cloud-kms-v1/pom.xml b/java-kms/grpc-google-cloud-kms-v1/pom.xml index b3b652d9d7ae..8e2bf93ad56b 100644 --- a/java-kms/grpc-google-cloud-kms-v1/pom.xml +++ b/java-kms/grpc-google-cloud-kms-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-kms-v1 - 0.140.0-SNAPSHOT + 0.140.0 grpc-google-cloud-kms-v1 GRPC library for grpc-google-cloud-kms-v1 com.google.cloud google-cloud-kms-parent - 2.49.0-SNAPSHOT + 2.49.0 diff --git a/java-kms/pom.xml b/java-kms/pom.xml index 4c5f93ca4b75..7912f714e0bd 100644 --- a/java-kms/pom.xml +++ b/java-kms/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-kms-parent pom - 2.49.0-SNAPSHOT + 2.49.0 Google Cloud KMS Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,22 +29,22 @@ com.google.api.grpc proto-google-cloud-kms-v1 - 0.140.0-SNAPSHOT + 0.140.0 com.google.api.grpc grpc-google-cloud-kms-v1 - 0.140.0-SNAPSHOT + 0.140.0 com.google.cloud google-cloud-kms - 2.49.0-SNAPSHOT + 2.49.0 com.google.cloud google-cloud-kms-bom - 2.49.0-SNAPSHOT + 2.49.0 diff --git a/java-kms/proto-google-cloud-kms-v1/pom.xml b/java-kms/proto-google-cloud-kms-v1/pom.xml index 1e9fc49d0756..8b17663e5421 100644 --- a/java-kms/proto-google-cloud-kms-v1/pom.xml +++ b/java-kms/proto-google-cloud-kms-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-kms-v1 - 0.140.0-SNAPSHOT + 0.140.0 proto-google-cloud-kms-v1 PROTO library for proto-google-cloud-kms-v1 com.google.cloud google-cloud-kms-parent - 2.49.0-SNAPSHOT + 2.49.0 diff --git a/java-kmsinventory/CHANGELOG.md b/java-kmsinventory/CHANGELOG.md index cdc67bbfc5ac..f06f896ad0c4 100644 --- a/java-kmsinventory/CHANGELOG.md +++ b/java-kmsinventory/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.35.0 (2024-06-27) + +* No change + + ## 0.34.0 (None) * No change diff --git a/java-kmsinventory/README.md b/java-kmsinventory/README.md index 7a0cf8be430e..1d9a27f0ce40 100644 --- a/java-kmsinventory/README.md +++ b/java-kmsinventory/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-kmsinventory - 0.34.0 + 0.35.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-kmsinventory:0.34.0' +implementation 'com.google.cloud:google-cloud-kmsinventory:0.35.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-kmsinventory" % "0.34.0" +libraryDependencies += "com.google.cloud" % "google-cloud-kmsinventory" % "0.35.0" ``` diff --git a/java-kmsinventory/google-cloud-kmsinventory-bom/pom.xml b/java-kmsinventory/google-cloud-kmsinventory-bom/pom.xml index 0d4be6f42d77..5a2900524d6f 100644 --- a/java-kmsinventory/google-cloud-kmsinventory-bom/pom.xml +++ b/java-kmsinventory/google-cloud-kmsinventory-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-kmsinventory-bom - 0.35.0-SNAPSHOT + 0.35.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-kmsinventory - 0.35.0-SNAPSHOT + 0.35.0 com.google.api.grpc grpc-google-cloud-kmsinventory-v1 - 0.35.0-SNAPSHOT + 0.35.0 com.google.api.grpc proto-google-cloud-kmsinventory-v1 - 0.35.0-SNAPSHOT + 0.35.0 diff --git a/java-kmsinventory/google-cloud-kmsinventory/pom.xml b/java-kmsinventory/google-cloud-kmsinventory/pom.xml index 4e8081c89674..06fb8fde36ac 100644 --- a/java-kmsinventory/google-cloud-kmsinventory/pom.xml +++ b/java-kmsinventory/google-cloud-kmsinventory/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-kmsinventory - 0.35.0-SNAPSHOT + 0.35.0 jar Google KMS Inventory API KMS Inventory API KMS Inventory API. com.google.cloud google-cloud-kmsinventory-parent - 0.35.0-SNAPSHOT + 0.35.0 google-cloud-kmsinventory diff --git a/java-kmsinventory/grpc-google-cloud-kmsinventory-v1/pom.xml b/java-kmsinventory/grpc-google-cloud-kmsinventory-v1/pom.xml index 30cabbc7d3b1..3f29ec127525 100644 --- a/java-kmsinventory/grpc-google-cloud-kmsinventory-v1/pom.xml +++ b/java-kmsinventory/grpc-google-cloud-kmsinventory-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-kmsinventory-v1 - 0.35.0-SNAPSHOT + 0.35.0 grpc-google-cloud-kmsinventory-v1 GRPC library for google-cloud-kmsinventory com.google.cloud google-cloud-kmsinventory-parent - 0.35.0-SNAPSHOT + 0.35.0 diff --git a/java-kmsinventory/pom.xml b/java-kmsinventory/pom.xml index eeec9936a5e3..000f06e52f35 100644 --- a/java-kmsinventory/pom.xml +++ b/java-kmsinventory/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-kmsinventory-parent pom - 0.35.0-SNAPSHOT + 0.35.0 Google KMS Inventory API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,22 +29,22 @@ com.google.cloud google-cloud-kmsinventory - 0.35.0-SNAPSHOT + 0.35.0 com.google.api.grpc grpc-google-cloud-kmsinventory-v1 - 0.35.0-SNAPSHOT + 0.35.0 com.google.api.grpc proto-google-cloud-kmsinventory-v1 - 0.35.0-SNAPSHOT + 0.35.0 com.google.api.grpc proto-google-cloud-kms-v1 - 0.140.0-SNAPSHOT + 0.140.0 diff --git a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/pom.xml b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/pom.xml index 562ecdfc6f5c..447e1110fa14 100644 --- a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/pom.xml +++ b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-kmsinventory-v1 - 0.35.0-SNAPSHOT + 0.35.0 proto-google-cloud-kmsinventory-v1 Proto library for google-cloud-kmsinventory com.google.cloud google-cloud-kmsinventory-parent - 0.35.0-SNAPSHOT + 0.35.0 diff --git a/java-language/CHANGELOG.md b/java-language/CHANGELOG.md index 5ea484632872..25e851fda26f 100644 --- a/java-language/CHANGELOG.md +++ b/java-language/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.47.0 (2024-06-27) + +* No change + + ## 2.46.0 (None) * No change diff --git a/java-language/README.md b/java-language/README.md index c16af8023517..cb27f0260347 100644 --- a/java-language/README.md +++ b/java-language/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-language - 2.46.0 + 2.47.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-language:2.46.0' +implementation 'com.google.cloud:google-cloud-language:2.47.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-language" % "2.46.0" +libraryDependencies += "com.google.cloud" % "google-cloud-language" % "2.47.0" ``` diff --git a/java-language/google-cloud-language-bom/pom.xml b/java-language/google-cloud-language-bom/pom.xml index 4dbba7d8efef..d7960c6a0ef3 100644 --- a/java-language/google-cloud-language-bom/pom.xml +++ b/java-language/google-cloud-language-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-language-bom - 2.47.0-SNAPSHOT + 2.47.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -23,37 +23,37 @@ com.google.cloud google-cloud-language - 2.47.0-SNAPSHOT + 2.47.0 com.google.api.grpc grpc-google-cloud-language-v1 - 2.47.0-SNAPSHOT + 2.47.0 com.google.api.grpc grpc-google-cloud-language-v1beta2 - 0.134.0-SNAPSHOT + 0.134.0 com.google.api.grpc grpc-google-cloud-language-v2 - 2.47.0-SNAPSHOT + 2.47.0 com.google.api.grpc proto-google-cloud-language-v1 - 2.47.0-SNAPSHOT + 2.47.0 com.google.api.grpc proto-google-cloud-language-v1beta2 - 0.134.0-SNAPSHOT + 0.134.0 com.google.api.grpc proto-google-cloud-language-v2 - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-language/google-cloud-language/pom.xml b/java-language/google-cloud-language/pom.xml index e112d39f67ce..c2b782a41f2a 100644 --- a/java-language/google-cloud-language/pom.xml +++ b/java-language/google-cloud-language/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-language - 2.47.0-SNAPSHOT + 2.47.0 jar Google Cloud Natural Language Java idiomatic client for Google Clould Natural Language com.google.cloud google-cloud-language-parent - 2.47.0-SNAPSHOT + 2.47.0 google-cloud-language diff --git a/java-language/grpc-google-cloud-language-v1/pom.xml b/java-language/grpc-google-cloud-language-v1/pom.xml index a84d11f5612f..0b0b403d1672 100644 --- a/java-language/grpc-google-cloud-language-v1/pom.xml +++ b/java-language/grpc-google-cloud-language-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-language-v1 - 2.47.0-SNAPSHOT + 2.47.0 grpc-google-cloud-language-v1 GRPC library for grpc-google-cloud-language-v1 com.google.cloud google-cloud-language-parent - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-language/grpc-google-cloud-language-v1beta2/pom.xml b/java-language/grpc-google-cloud-language-v1beta2/pom.xml index 26299e1e0dad..549e7a6a3a87 100644 --- a/java-language/grpc-google-cloud-language-v1beta2/pom.xml +++ b/java-language/grpc-google-cloud-language-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-language-v1beta2 - 0.134.0-SNAPSHOT + 0.134.0 grpc-google-cloud-language-v1beta2 GRPC library for grpc-google-cloud-language-v1beta2 com.google.cloud google-cloud-language-parent - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-language/grpc-google-cloud-language-v2/pom.xml b/java-language/grpc-google-cloud-language-v2/pom.xml index 3d39eddbeecc..a811b3ee370f 100644 --- a/java-language/grpc-google-cloud-language-v2/pom.xml +++ b/java-language/grpc-google-cloud-language-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-language-v2 - 2.47.0-SNAPSHOT + 2.47.0 grpc-google-cloud-language-v2 GRPC library for google-cloud-language com.google.cloud google-cloud-language-parent - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-language/pom.xml b/java-language/pom.xml index eced2ffb3a83..ce8900baa990 100644 --- a/java-language/pom.xml +++ b/java-language/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-language-parent pom - 2.47.0-SNAPSHOT + 2.47.0 Google Cloud Natural Language Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.api.grpc proto-google-cloud-language-v1 - 2.47.0-SNAPSHOT + 2.47.0 com.google.api.grpc proto-google-cloud-language-v2 - 2.47.0-SNAPSHOT + 2.47.0 com.google.api.grpc grpc-google-cloud-language-v2 - 2.47.0-SNAPSHOT + 2.47.0 com.google.api.grpc proto-google-cloud-language-v1beta2 - 0.134.0-SNAPSHOT + 0.134.0 com.google.api.grpc grpc-google-cloud-language-v1 - 2.47.0-SNAPSHOT + 2.47.0 com.google.api.grpc grpc-google-cloud-language-v1beta2 - 0.134.0-SNAPSHOT + 0.134.0 com.google.cloud google-cloud-language - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-language/proto-google-cloud-language-v1/pom.xml b/java-language/proto-google-cloud-language-v1/pom.xml index 9435fffd12c2..952dd45a1c48 100644 --- a/java-language/proto-google-cloud-language-v1/pom.xml +++ b/java-language/proto-google-cloud-language-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-language-v1 - 2.47.0-SNAPSHOT + 2.47.0 proto-google-cloud-language-v1 PROTO library for proto-google-cloud-language-v1 com.google.cloud google-cloud-language-parent - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-language/proto-google-cloud-language-v1beta2/pom.xml b/java-language/proto-google-cloud-language-v1beta2/pom.xml index 10b246f205b2..9be9778ce8e2 100644 --- a/java-language/proto-google-cloud-language-v1beta2/pom.xml +++ b/java-language/proto-google-cloud-language-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-language-v1beta2 - 0.134.0-SNAPSHOT + 0.134.0 proto-google-cloud-language-v1beta2 PROTO library for proto-google-cloud-language-v1beta2 com.google.cloud google-cloud-language-parent - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-language/proto-google-cloud-language-v2/pom.xml b/java-language/proto-google-cloud-language-v2/pom.xml index 13a093614428..71392f72fc5e 100644 --- a/java-language/proto-google-cloud-language-v2/pom.xml +++ b/java-language/proto-google-cloud-language-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-language-v2 - 2.47.0-SNAPSHOT + 2.47.0 proto-google-cloud-language-v2 Proto library for google-cloud-language com.google.cloud google-cloud-language-parent - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-life-sciences/CHANGELOG.md b/java-life-sciences/CHANGELOG.md index 14aba379fef8..40ad48c8ba1d 100644 --- a/java-life-sciences/CHANGELOG.md +++ b/java-life-sciences/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.48.0 (2024-06-27) + +* No change + + ## 0.47.0 (None) * No change diff --git a/java-life-sciences/README.md b/java-life-sciences/README.md index 4fc03ca2fed0..d84aa5963d93 100644 --- a/java-life-sciences/README.md +++ b/java-life-sciences/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-life-sciences - 0.47.0 + 0.48.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-life-sciences:0.47.0' +implementation 'com.google.cloud:google-cloud-life-sciences:0.48.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-life-sciences" % "0.47.0" +libraryDependencies += "com.google.cloud" % "google-cloud-life-sciences" % "0.48.0" ``` diff --git a/java-life-sciences/google-cloud-life-sciences-bom/pom.xml b/java-life-sciences/google-cloud-life-sciences-bom/pom.xml index fc37a59528d3..a12eb250cfe4 100644 --- a/java-life-sciences/google-cloud-life-sciences-bom/pom.xml +++ b/java-life-sciences/google-cloud-life-sciences-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-life-sciences-bom - 0.48.0-SNAPSHOT + 0.48.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-life-sciences - 0.48.0-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-life-sciences-v2beta - 0.48.0-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-life-sciences-v2beta - 0.48.0-SNAPSHOT + 0.48.0 diff --git a/java-life-sciences/google-cloud-life-sciences/pom.xml b/java-life-sciences/google-cloud-life-sciences/pom.xml index 5ff6d95728b9..67bc407dd75e 100644 --- a/java-life-sciences/google-cloud-life-sciences/pom.xml +++ b/java-life-sciences/google-cloud-life-sciences/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-life-sciences - 0.48.0-SNAPSHOT + 0.48.0 jar Google Cloud Life Sciences Cloud Life Sciences is a suite of services and tools for managing, processing, and transforming life sciences data. com.google.cloud google-cloud-life-sciences-parent - 0.48.0-SNAPSHOT + 0.48.0 google-cloud-life-sciences diff --git a/java-life-sciences/grpc-google-cloud-life-sciences-v2beta/pom.xml b/java-life-sciences/grpc-google-cloud-life-sciences-v2beta/pom.xml index 04094a1f7eb1..f1f01818c7ec 100644 --- a/java-life-sciences/grpc-google-cloud-life-sciences-v2beta/pom.xml +++ b/java-life-sciences/grpc-google-cloud-life-sciences-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-life-sciences-v2beta - 0.48.0-SNAPSHOT + 0.48.0 grpc-google-cloud-life-sciences-v2beta GRPC library for google-cloud-life-sciences com.google.cloud google-cloud-life-sciences-parent - 0.48.0-SNAPSHOT + 0.48.0 diff --git a/java-life-sciences/pom.xml b/java-life-sciences/pom.xml index 01402390731b..cfc619c56f45 100644 --- a/java-life-sciences/pom.xml +++ b/java-life-sciences/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-life-sciences-parent pom - 0.48.0-SNAPSHOT + 0.48.0 Google Cloud Life Sciences Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-life-sciences - 0.48.0-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-life-sciences-v2beta - 0.48.0-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-life-sciences-v2beta - 0.48.0-SNAPSHOT + 0.48.0 diff --git a/java-life-sciences/proto-google-cloud-life-sciences-v2beta/pom.xml b/java-life-sciences/proto-google-cloud-life-sciences-v2beta/pom.xml index 022120bc7aaa..99aaf18d4d3f 100644 --- a/java-life-sciences/proto-google-cloud-life-sciences-v2beta/pom.xml +++ b/java-life-sciences/proto-google-cloud-life-sciences-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-life-sciences-v2beta - 0.48.0-SNAPSHOT + 0.48.0 proto-google-cloud-life-sciences-v2beta Proto library for google-cloud-life-sciences com.google.cloud google-cloud-life-sciences-parent - 0.48.0-SNAPSHOT + 0.48.0 diff --git a/java-managed-identities/CHANGELOG.md b/java-managed-identities/CHANGELOG.md index 8d2a9600345c..327baca0961f 100644 --- a/java-managed-identities/CHANGELOG.md +++ b/java-managed-identities/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 1.44.0 (2024-06-27) + +* No change + + ## 1.43.0 (None) * No change diff --git a/java-managed-identities/README.md b/java-managed-identities/README.md index 92d4ea7b2396..f0f7ae13ed30 100644 --- a/java-managed-identities/README.md +++ b/java-managed-identities/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-managed-identities - 1.43.0 + 1.44.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-managed-identities:1.43.0' +implementation 'com.google.cloud:google-cloud-managed-identities:1.44.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-managed-identities" % "1.43.0" +libraryDependencies += "com.google.cloud" % "google-cloud-managed-identities" % "1.44.0" ``` diff --git a/java-managed-identities/google-cloud-managed-identities-bom/pom.xml b/java-managed-identities/google-cloud-managed-identities-bom/pom.xml index 77ecd0a69893..2eb8b872af14 100644 --- a/java-managed-identities/google-cloud-managed-identities-bom/pom.xml +++ b/java-managed-identities/google-cloud-managed-identities-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-managed-identities-bom - 1.44.0-SNAPSHOT + 1.44.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-managed-identities - 1.44.0-SNAPSHOT + 1.44.0 com.google.api.grpc grpc-google-cloud-managed-identities-v1 - 1.44.0-SNAPSHOT + 1.44.0 com.google.api.grpc proto-google-cloud-managed-identities-v1 - 1.44.0-SNAPSHOT + 1.44.0 diff --git a/java-managed-identities/google-cloud-managed-identities/pom.xml b/java-managed-identities/google-cloud-managed-identities/pom.xml index 6e736b19c07b..f903195c8629 100644 --- a/java-managed-identities/google-cloud-managed-identities/pom.xml +++ b/java-managed-identities/google-cloud-managed-identities/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-managed-identities - 1.44.0-SNAPSHOT + 1.44.0 jar Google Managed Service for Microsoft Active Directory is a highly available, hardened Google Cloud service running actual Microsoft AD that enables you to manage authentication and authorization for your AD-dependent workloads, automate AD server maintenance and security configuration, and connect your on-premises AD domain to the cloud. com.google.cloud google-cloud-managed-identities-parent - 1.44.0-SNAPSHOT + 1.44.0 google-cloud-managed-identities diff --git a/java-managed-identities/grpc-google-cloud-managed-identities-v1/pom.xml b/java-managed-identities/grpc-google-cloud-managed-identities-v1/pom.xml index e3a54561db38..df029b9fadcd 100644 --- a/java-managed-identities/grpc-google-cloud-managed-identities-v1/pom.xml +++ b/java-managed-identities/grpc-google-cloud-managed-identities-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-managed-identities-v1 - 1.44.0-SNAPSHOT + 1.44.0 grpc-google-cloud-managed-identities-v1 GRPC library for google-cloud-managed-identities com.google.cloud google-cloud-managed-identities-parent - 1.44.0-SNAPSHOT + 1.44.0 diff --git a/java-managed-identities/pom.xml b/java-managed-identities/pom.xml index a686b7c47207..34e798bdfa5c 100644 --- a/java-managed-identities/pom.xml +++ b/java-managed-identities/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-managed-identities-parent pom - 1.44.0-SNAPSHOT + 1.44.0 Google Managed Service for Microsoft Active Directory Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-managed-identities - 1.44.0-SNAPSHOT + 1.44.0 com.google.api.grpc proto-google-cloud-managed-identities-v1 - 1.44.0-SNAPSHOT + 1.44.0 com.google.api.grpc grpc-google-cloud-managed-identities-v1 - 1.44.0-SNAPSHOT + 1.44.0 diff --git a/java-managed-identities/proto-google-cloud-managed-identities-v1/pom.xml b/java-managed-identities/proto-google-cloud-managed-identities-v1/pom.xml index 1adec58e1c15..59af960c0df3 100644 --- a/java-managed-identities/proto-google-cloud-managed-identities-v1/pom.xml +++ b/java-managed-identities/proto-google-cloud-managed-identities-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-managed-identities-v1 - 1.44.0-SNAPSHOT + 1.44.0 proto-google-cloud-managed-identities-v1 Proto library for google-cloud-managed-identities com.google.cloud google-cloud-managed-identities-parent - 1.44.0-SNAPSHOT + 1.44.0 diff --git a/java-managedkafka/CHANGELOG.md b/java-managedkafka/CHANGELOG.md index 7a8760f9bb40..70acbf878864 100644 --- a/java-managedkafka/CHANGELOG.md +++ b/java-managedkafka/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.2.0 (2024-06-27) + +* No change + + ## 0.1.0 (None) * No change diff --git a/java-managedkafka/README.md b/java-managedkafka/README.md index 70217aba5440..98cacbb891fc 100644 --- a/java-managedkafka/README.md +++ b/java-managedkafka/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-managedkafka - 0.1.0 + 0.2.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-managedkafka:0.1.0' +implementation 'com.google.cloud:google-cloud-managedkafka:0.2.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-managedkafka" % "0.1.0" +libraryDependencies += "com.google.cloud" % "google-cloud-managedkafka" % "0.2.0" ``` diff --git a/java-managedkafka/google-cloud-managedkafka-bom/pom.xml b/java-managedkafka/google-cloud-managedkafka-bom/pom.xml index 45d382abf67a..f8e85fc4772b 100644 --- a/java-managedkafka/google-cloud-managedkafka-bom/pom.xml +++ b/java-managedkafka/google-cloud-managedkafka-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-managedkafka-bom - 0.2.0-SNAPSHOT + 0.2.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-managedkafka - 0.2.0-SNAPSHOT + 0.2.0 com.google.api.grpc grpc-google-cloud-managedkafka-v1 - 0.2.0-SNAPSHOT + 0.2.0 com.google.api.grpc proto-google-cloud-managedkafka-v1 - 0.2.0-SNAPSHOT + 0.2.0 diff --git a/java-managedkafka/google-cloud-managedkafka/pom.xml b/java-managedkafka/google-cloud-managedkafka/pom.xml index dd1c1f5915b8..8da74d3b0d0c 100644 --- a/java-managedkafka/google-cloud-managedkafka/pom.xml +++ b/java-managedkafka/google-cloud-managedkafka/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-managedkafka - 0.2.0-SNAPSHOT + 0.2.0 jar Google Apache Kafka for BigQuery API Apache Kafka for BigQuery API Manage Apache Kafka clusters and resources. com.google.cloud google-cloud-managedkafka-parent - 0.2.0-SNAPSHOT + 0.2.0 google-cloud-managedkafka diff --git a/java-managedkafka/grpc-google-cloud-managedkafka-v1/pom.xml b/java-managedkafka/grpc-google-cloud-managedkafka-v1/pom.xml index 6bc0e5453694..92f1a99bc362 100644 --- a/java-managedkafka/grpc-google-cloud-managedkafka-v1/pom.xml +++ b/java-managedkafka/grpc-google-cloud-managedkafka-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-managedkafka-v1 - 0.2.0-SNAPSHOT + 0.2.0 grpc-google-cloud-managedkafka-v1 GRPC library for google-cloud-managedkafka com.google.cloud google-cloud-managedkafka-parent - 0.2.0-SNAPSHOT + 0.2.0 diff --git a/java-managedkafka/pom.xml b/java-managedkafka/pom.xml index 5e2b6893b4bd..f34aef800a88 100644 --- a/java-managedkafka/pom.xml +++ b/java-managedkafka/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-managedkafka-parent pom - 0.2.0-SNAPSHOT + 0.2.0 Google Apache Kafka for BigQuery API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-managedkafka - 0.2.0-SNAPSHOT + 0.2.0 com.google.api.grpc grpc-google-cloud-managedkafka-v1 - 0.2.0-SNAPSHOT + 0.2.0 com.google.api.grpc proto-google-cloud-managedkafka-v1 - 0.2.0-SNAPSHOT + 0.2.0 diff --git a/java-managedkafka/proto-google-cloud-managedkafka-v1/pom.xml b/java-managedkafka/proto-google-cloud-managedkafka-v1/pom.xml index e5e8bbeef77d..692926e97ab3 100644 --- a/java-managedkafka/proto-google-cloud-managedkafka-v1/pom.xml +++ b/java-managedkafka/proto-google-cloud-managedkafka-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-managedkafka-v1 - 0.2.0-SNAPSHOT + 0.2.0 proto-google-cloud-managedkafka-v1 Proto library for google-cloud-managedkafka com.google.cloud google-cloud-managedkafka-parent - 0.2.0-SNAPSHOT + 0.2.0 diff --git a/java-maps-addressvalidation/CHANGELOG.md b/java-maps-addressvalidation/CHANGELOG.md index 4b73834595ad..e050ea5e59e1 100644 --- a/java-maps-addressvalidation/CHANGELOG.md +++ b/java-maps-addressvalidation/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.40.0 (2024-06-27) + +* No change + + ## 0.39.0 (None) * No change diff --git a/java-maps-addressvalidation/README.md b/java-maps-addressvalidation/README.md index 5fa9b482cc99..2c166413bf8b 100644 --- a/java-maps-addressvalidation/README.md +++ b/java-maps-addressvalidation/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.maps google-maps-addressvalidation - 0.39.0 + 0.40.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-addressvalidation:0.39.0' +implementation 'com.google.maps:google-maps-addressvalidation:0.40.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-addressvalidation" % "0.39.0" +libraryDependencies += "com.google.maps" % "google-maps-addressvalidation" % "0.40.0" ``` diff --git a/java-maps-addressvalidation/google-maps-addressvalidation-bom/pom.xml b/java-maps-addressvalidation/google-maps-addressvalidation-bom/pom.xml index d15c4181f9cf..309030b9676c 100644 --- a/java-maps-addressvalidation/google-maps-addressvalidation-bom/pom.xml +++ b/java-maps-addressvalidation/google-maps-addressvalidation-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.maps google-maps-addressvalidation-bom - 0.40.0-SNAPSHOT + 0.40.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.maps google-maps-addressvalidation - 0.40.0-SNAPSHOT + 0.40.0 com.google.maps.api.grpc grpc-google-maps-addressvalidation-v1 - 0.40.0-SNAPSHOT + 0.40.0 com.google.maps.api.grpc proto-google-maps-addressvalidation-v1 - 0.40.0-SNAPSHOT + 0.40.0 diff --git a/java-maps-addressvalidation/google-maps-addressvalidation/pom.xml b/java-maps-addressvalidation/google-maps-addressvalidation/pom.xml index 6b68c68d6fb1..7b23fe2d7a02 100644 --- a/java-maps-addressvalidation/google-maps-addressvalidation/pom.xml +++ b/java-maps-addressvalidation/google-maps-addressvalidation/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.maps google-maps-addressvalidation - 0.40.0-SNAPSHOT + 0.40.0 jar Google Address Validation API Address Validation API The Address Validation API allows developers to verify the accuracy of addresses. Given an address, it returns information about the correctness of the components of the parsed address, a geocode, and a verdict on the deliverability of the parsed address. com.google.maps google-maps-addressvalidation-parent - 0.40.0-SNAPSHOT + 0.40.0 google-maps-addressvalidation diff --git a/java-maps-addressvalidation/grpc-google-maps-addressvalidation-v1/pom.xml b/java-maps-addressvalidation/grpc-google-maps-addressvalidation-v1/pom.xml index 5fb9d82b951e..440842a3b592 100644 --- a/java-maps-addressvalidation/grpc-google-maps-addressvalidation-v1/pom.xml +++ b/java-maps-addressvalidation/grpc-google-maps-addressvalidation-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc grpc-google-maps-addressvalidation-v1 - 0.40.0-SNAPSHOT + 0.40.0 grpc-google-maps-addressvalidation-v1 GRPC library for google-maps-addressvalidation com.google.maps google-maps-addressvalidation-parent - 0.40.0-SNAPSHOT + 0.40.0 diff --git a/java-maps-addressvalidation/pom.xml b/java-maps-addressvalidation/pom.xml index fdbd7f919546..c56db9379364 100644 --- a/java-maps-addressvalidation/pom.xml +++ b/java-maps-addressvalidation/pom.xml @@ -4,7 +4,7 @@ com.google.maps google-maps-addressvalidation-parent pom - 0.40.0-SNAPSHOT + 0.40.0 Google Address Validation API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.maps google-maps-addressvalidation - 0.40.0-SNAPSHOT + 0.40.0 com.google.maps.api.grpc grpc-google-maps-addressvalidation-v1 - 0.40.0-SNAPSHOT + 0.40.0 com.google.maps.api.grpc proto-google-maps-addressvalidation-v1 - 0.40.0-SNAPSHOT + 0.40.0 diff --git a/java-maps-addressvalidation/proto-google-maps-addressvalidation-v1/pom.xml b/java-maps-addressvalidation/proto-google-maps-addressvalidation-v1/pom.xml index 9c68ffc85acf..fc825ece088e 100644 --- a/java-maps-addressvalidation/proto-google-maps-addressvalidation-v1/pom.xml +++ b/java-maps-addressvalidation/proto-google-maps-addressvalidation-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc proto-google-maps-addressvalidation-v1 - 0.40.0-SNAPSHOT + 0.40.0 proto-google-maps-addressvalidation-v1 Proto library for google-maps-addressvalidation com.google.maps google-maps-addressvalidation-parent - 0.40.0-SNAPSHOT + 0.40.0 diff --git a/java-maps-mapsplatformdatasets/CHANGELOG.md b/java-maps-mapsplatformdatasets/CHANGELOG.md index 87848d2cf0f5..bd4bf9aec6ff 100644 --- a/java-maps-mapsplatformdatasets/CHANGELOG.md +++ b/java-maps-mapsplatformdatasets/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.35.0 (2024-06-27) + +* No change + + ## 0.34.0 (None) * No change diff --git a/java-maps-mapsplatformdatasets/README.md b/java-maps-mapsplatformdatasets/README.md index 3b0ae8d3f428..5dee3f251b00 100644 --- a/java-maps-mapsplatformdatasets/README.md +++ b/java-maps-mapsplatformdatasets/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.maps google-maps-mapsplatformdatasets - 0.34.0 + 0.35.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-mapsplatformdatasets:0.34.0' +implementation 'com.google.maps:google-maps-mapsplatformdatasets:0.35.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-mapsplatformdatasets" % "0.34.0" +libraryDependencies += "com.google.maps" % "google-maps-mapsplatformdatasets" % "0.35.0" ``` diff --git a/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets-bom/pom.xml b/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets-bom/pom.xml index f041488b1941..aad28c615a63 100644 --- a/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets-bom/pom.xml +++ b/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.maps google-maps-mapsplatformdatasets-bom - 0.35.0-SNAPSHOT + 0.35.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.maps google-maps-mapsplatformdatasets - 0.35.0-SNAPSHOT + 0.35.0 com.google.maps.api.grpc grpc-google-maps-mapsplatformdatasets-v1 - 0.35.0-SNAPSHOT + 0.35.0 com.google.maps.api.grpc proto-google-maps-mapsplatformdatasets-v1 - 0.35.0-SNAPSHOT + 0.35.0 diff --git a/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/pom.xml b/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/pom.xml index bd67b76b2f69..6d6decf1e022 100644 --- a/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/pom.xml +++ b/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.maps google-maps-mapsplatformdatasets - 0.35.0-SNAPSHOT + 0.35.0 jar Google Maps Platform Datasets API Maps Platform Datasets API The Maps Platform Datasets API enables developers to ingest geospatially-tied datasets @@ -11,7 +11,7 @@ com.google.maps google-maps-mapsplatformdatasets-parent - 0.35.0-SNAPSHOT + 0.35.0 google-maps-mapsplatformdatasets diff --git a/java-maps-mapsplatformdatasets/grpc-google-maps-mapsplatformdatasets-v1/pom.xml b/java-maps-mapsplatformdatasets/grpc-google-maps-mapsplatformdatasets-v1/pom.xml index 174b933d4470..5b5d78708059 100644 --- a/java-maps-mapsplatformdatasets/grpc-google-maps-mapsplatformdatasets-v1/pom.xml +++ b/java-maps-mapsplatformdatasets/grpc-google-maps-mapsplatformdatasets-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc grpc-google-maps-mapsplatformdatasets-v1 - 0.35.0-SNAPSHOT + 0.35.0 grpc-google-maps-mapsplatformdatasets-v1 GRPC library for google-maps-mapsplatformdatasets com.google.maps google-maps-mapsplatformdatasets-parent - 0.35.0-SNAPSHOT + 0.35.0 diff --git a/java-maps-mapsplatformdatasets/pom.xml b/java-maps-mapsplatformdatasets/pom.xml index 5e9d8a118f0c..278794036dbd 100644 --- a/java-maps-mapsplatformdatasets/pom.xml +++ b/java-maps-mapsplatformdatasets/pom.xml @@ -4,7 +4,7 @@ com.google.maps google-maps-mapsplatformdatasets-parent pom - 0.35.0-SNAPSHOT + 0.35.0 Google Maps Platform Datasets API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.maps google-maps-mapsplatformdatasets - 0.35.0-SNAPSHOT + 0.35.0 com.google.maps.api.grpc proto-google-maps-mapsplatformdatasets-v1 - 0.35.0-SNAPSHOT + 0.35.0 com.google.maps.api.grpc grpc-google-maps-mapsplatformdatasets-v1 - 0.35.0-SNAPSHOT + 0.35.0 diff --git a/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/pom.xml b/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/pom.xml index 46a8bdc987f0..88a1af6fba3f 100644 --- a/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/pom.xml +++ b/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc proto-google-maps-mapsplatformdatasets-v1 - 0.35.0-SNAPSHOT + 0.35.0 proto-google-maps-mapsplatformdatasets-v1 Proto library for google-maps-mapsplatformdatasets com.google.maps google-maps-mapsplatformdatasets-parent - 0.35.0-SNAPSHOT + 0.35.0 diff --git a/java-maps-places/CHANGELOG.md b/java-maps-places/CHANGELOG.md index 054d0ed5186b..ec1786142a0d 100644 --- a/java-maps-places/CHANGELOG.md +++ b/java-maps-places/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.17.0 (2024-06-27) + +* No change + + ## 0.16.0 (None) * No change diff --git a/java-maps-places/README.md b/java-maps-places/README.md index d38ae28d4633..6cec7e96139e 100644 --- a/java-maps-places/README.md +++ b/java-maps-places/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.maps google-maps-places - 0.16.0 + 0.17.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-places:0.16.0' +implementation 'com.google.maps:google-maps-places:0.17.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-places" % "0.16.0" +libraryDependencies += "com.google.maps" % "google-maps-places" % "0.17.0" ``` diff --git a/java-maps-places/google-maps-places-bom/pom.xml b/java-maps-places/google-maps-places-bom/pom.xml index 1bc0f814140e..b431248754a0 100644 --- a/java-maps-places/google-maps-places-bom/pom.xml +++ b/java-maps-places/google-maps-places-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.maps google-maps-places-bom - 0.17.0-SNAPSHOT + 0.17.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.maps google-maps-places - 0.17.0-SNAPSHOT + 0.17.0 com.google.maps.api.grpc grpc-google-maps-places-v1 - 0.17.0-SNAPSHOT + 0.17.0 com.google.maps.api.grpc proto-google-maps-places-v1 - 0.17.0-SNAPSHOT + 0.17.0 diff --git a/java-maps-places/google-maps-places/pom.xml b/java-maps-places/google-maps-places/pom.xml index fcceb4f08e5e..5b19700ec35e 100644 --- a/java-maps-places/google-maps-places/pom.xml +++ b/java-maps-places/google-maps-places/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.maps google-maps-places - 0.17.0-SNAPSHOT + 0.17.0 jar Google Places API (New) Places API (New) The Places API allows developers to access a variety of search and @@ -11,7 +11,7 @@ com.google.maps google-maps-places-parent - 0.17.0-SNAPSHOT + 0.17.0 google-maps-places diff --git a/java-maps-places/grpc-google-maps-places-v1/pom.xml b/java-maps-places/grpc-google-maps-places-v1/pom.xml index 247db6e0ef56..cf1f0fc54436 100644 --- a/java-maps-places/grpc-google-maps-places-v1/pom.xml +++ b/java-maps-places/grpc-google-maps-places-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc grpc-google-maps-places-v1 - 0.17.0-SNAPSHOT + 0.17.0 grpc-google-maps-places-v1 GRPC library for google-maps-places com.google.maps google-maps-places-parent - 0.17.0-SNAPSHOT + 0.17.0 diff --git a/java-maps-places/pom.xml b/java-maps-places/pom.xml index dcd0de83bf53..63ee4fb3277c 100644 --- a/java-maps-places/pom.xml +++ b/java-maps-places/pom.xml @@ -4,7 +4,7 @@ com.google.maps google-maps-places-parent pom - 0.17.0-SNAPSHOT + 0.17.0 Google Places API (New) Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.maps google-maps-places - 0.17.0-SNAPSHOT + 0.17.0 com.google.maps.api.grpc grpc-google-maps-places-v1 - 0.17.0-SNAPSHOT + 0.17.0 com.google.maps.api.grpc proto-google-maps-places-v1 - 0.17.0-SNAPSHOT + 0.17.0 diff --git a/java-maps-places/proto-google-maps-places-v1/pom.xml b/java-maps-places/proto-google-maps-places-v1/pom.xml index 8f97d6e3e015..007f2f66c449 100644 --- a/java-maps-places/proto-google-maps-places-v1/pom.xml +++ b/java-maps-places/proto-google-maps-places-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc proto-google-maps-places-v1 - 0.17.0-SNAPSHOT + 0.17.0 proto-google-maps-places-v1 Proto library for google-maps-places com.google.maps google-maps-places-parent - 0.17.0-SNAPSHOT + 0.17.0 diff --git a/java-maps-routeoptimization/CHANGELOG.md b/java-maps-routeoptimization/CHANGELOG.md index da1eae865212..fe8c27fadec4 100644 --- a/java-maps-routeoptimization/CHANGELOG.md +++ b/java-maps-routeoptimization/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.4.0 (2024-06-27) + +* No change + + ## 0.3.0 (None) * No change diff --git a/java-maps-routeoptimization/README.md b/java-maps-routeoptimization/README.md index a6bf302a2291..7cc0ecddc493 100644 --- a/java-maps-routeoptimization/README.md +++ b/java-maps-routeoptimization/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.maps google-maps-routeoptimization - 0.3.0 + 0.4.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-routeoptimization:0.3.0' +implementation 'com.google.maps:google-maps-routeoptimization:0.4.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-routeoptimization" % "0.3.0" +libraryDependencies += "com.google.maps" % "google-maps-routeoptimization" % "0.4.0" ``` diff --git a/java-maps-routeoptimization/google-maps-routeoptimization-bom/pom.xml b/java-maps-routeoptimization/google-maps-routeoptimization-bom/pom.xml index 8f39624a782e..c55599e1b6f0 100644 --- a/java-maps-routeoptimization/google-maps-routeoptimization-bom/pom.xml +++ b/java-maps-routeoptimization/google-maps-routeoptimization-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.maps google-maps-routeoptimization-bom - 0.4.0-SNAPSHOT + 0.4.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.maps google-maps-routeoptimization - 0.4.0-SNAPSHOT + 0.4.0 com.google.maps.api.grpc grpc-google-maps-routeoptimization-v1 - 0.4.0-SNAPSHOT + 0.4.0 com.google.maps.api.grpc proto-google-maps-routeoptimization-v1 - 0.4.0-SNAPSHOT + 0.4.0 diff --git a/java-maps-routeoptimization/google-maps-routeoptimization/pom.xml b/java-maps-routeoptimization/google-maps-routeoptimization/pom.xml index b51ad3678c59..cb50b8f3a93f 100644 --- a/java-maps-routeoptimization/google-maps-routeoptimization/pom.xml +++ b/java-maps-routeoptimization/google-maps-routeoptimization/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.maps google-maps-routeoptimization - 0.4.0-SNAPSHOT + 0.4.0 jar Google Route Optimization API Route Optimization API The Route Optimization API assigns tasks and routes to a vehicle fleet, optimizing against the objectives and constraints that you supply for your transportation goals. com.google.maps google-maps-routeoptimization-parent - 0.4.0-SNAPSHOT + 0.4.0 google-maps-routeoptimization diff --git a/java-maps-routeoptimization/grpc-google-maps-routeoptimization-v1/pom.xml b/java-maps-routeoptimization/grpc-google-maps-routeoptimization-v1/pom.xml index f54bd211bd68..0e85a8ea22ce 100644 --- a/java-maps-routeoptimization/grpc-google-maps-routeoptimization-v1/pom.xml +++ b/java-maps-routeoptimization/grpc-google-maps-routeoptimization-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc grpc-google-maps-routeoptimization-v1 - 0.4.0-SNAPSHOT + 0.4.0 grpc-google-maps-routeoptimization-v1 GRPC library for google-maps-routeoptimization com.google.maps google-maps-routeoptimization-parent - 0.4.0-SNAPSHOT + 0.4.0 diff --git a/java-maps-routeoptimization/pom.xml b/java-maps-routeoptimization/pom.xml index 35ace13e0cd9..e48704322166 100644 --- a/java-maps-routeoptimization/pom.xml +++ b/java-maps-routeoptimization/pom.xml @@ -4,7 +4,7 @@ com.google.maps google-maps-routeoptimization-parent pom - 0.4.0-SNAPSHOT + 0.4.0 Google Route Optimization API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.maps google-maps-routeoptimization - 0.4.0-SNAPSHOT + 0.4.0 com.google.maps.api.grpc grpc-google-maps-routeoptimization-v1 - 0.4.0-SNAPSHOT + 0.4.0 com.google.maps.api.grpc proto-google-maps-routeoptimization-v1 - 0.4.0-SNAPSHOT + 0.4.0 diff --git a/java-maps-routeoptimization/proto-google-maps-routeoptimization-v1/pom.xml b/java-maps-routeoptimization/proto-google-maps-routeoptimization-v1/pom.xml index 500660e452fe..fffc88c43d8e 100644 --- a/java-maps-routeoptimization/proto-google-maps-routeoptimization-v1/pom.xml +++ b/java-maps-routeoptimization/proto-google-maps-routeoptimization-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc proto-google-maps-routeoptimization-v1 - 0.4.0-SNAPSHOT + 0.4.0 proto-google-maps-routeoptimization-v1 Proto library for google-maps-routeoptimization com.google.maps google-maps-routeoptimization-parent - 0.4.0-SNAPSHOT + 0.4.0 diff --git a/java-maps-routing/CHANGELOG.md b/java-maps-routing/CHANGELOG.md index 44245ad23fab..5132884b14dd 100644 --- a/java-maps-routing/CHANGELOG.md +++ b/java-maps-routing/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 1.31.0 (2024-06-27) + +* No change + + ## 1.30.0 (None) * No change diff --git a/java-maps-routing/README.md b/java-maps-routing/README.md index 37d060f78317..2b4d8b21e16e 100644 --- a/java-maps-routing/README.md +++ b/java-maps-routing/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.maps google-maps-routing - 1.30.0 + 1.31.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-routing:1.30.0' +implementation 'com.google.maps:google-maps-routing:1.31.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-routing" % "1.30.0" +libraryDependencies += "com.google.maps" % "google-maps-routing" % "1.31.0" ``` diff --git a/java-maps-routing/google-maps-routing-bom/pom.xml b/java-maps-routing/google-maps-routing-bom/pom.xml index ac6c20a49e5a..5f853ba6a2d9 100644 --- a/java-maps-routing/google-maps-routing-bom/pom.xml +++ b/java-maps-routing/google-maps-routing-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.maps google-maps-routing-bom - 1.31.0-SNAPSHOT + 1.31.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.maps google-maps-routing - 1.31.0-SNAPSHOT + 1.31.0 com.google.maps.api.grpc grpc-google-maps-routing-v2 - 1.31.0-SNAPSHOT + 1.31.0 com.google.maps.api.grpc proto-google-maps-routing-v2 - 1.31.0-SNAPSHOT + 1.31.0 diff --git a/java-maps-routing/google-maps-routing/pom.xml b/java-maps-routing/google-maps-routing/pom.xml index 130fd247b69a..73a599042c6b 100644 --- a/java-maps-routing/google-maps-routing/pom.xml +++ b/java-maps-routing/google-maps-routing/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.maps google-maps-routing - 1.31.0-SNAPSHOT + 1.31.0 jar Google Routes API Routes API Routes API is the next generation, performance optimized version of the existing Directions API and Distance Matrix API. It helps you find the ideal route from A to Z, calculates ETAs and distances for matrices of origin and destination locations, and also offers new features. com.google.maps google-maps-routing-parent - 1.31.0-SNAPSHOT + 1.31.0 google-maps-routing diff --git a/java-maps-routing/grpc-google-maps-routing-v2/pom.xml b/java-maps-routing/grpc-google-maps-routing-v2/pom.xml index 096bd5d3f644..94b46389760a 100644 --- a/java-maps-routing/grpc-google-maps-routing-v2/pom.xml +++ b/java-maps-routing/grpc-google-maps-routing-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc grpc-google-maps-routing-v2 - 1.31.0-SNAPSHOT + 1.31.0 grpc-google-maps-routing-v2 GRPC library for google-maps-routing com.google.maps google-maps-routing-parent - 1.31.0-SNAPSHOT + 1.31.0 diff --git a/java-maps-routing/pom.xml b/java-maps-routing/pom.xml index e34ed80075a0..da455dd03544 100644 --- a/java-maps-routing/pom.xml +++ b/java-maps-routing/pom.xml @@ -4,7 +4,7 @@ com.google.maps google-maps-routing-parent pom - 1.31.0-SNAPSHOT + 1.31.0 Google Routes API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.maps google-maps-routing - 1.31.0-SNAPSHOT + 1.31.0 com.google.maps.api.grpc grpc-google-maps-routing-v2 - 1.31.0-SNAPSHOT + 1.31.0 com.google.maps.api.grpc proto-google-maps-routing-v2 - 1.31.0-SNAPSHOT + 1.31.0 diff --git a/java-maps-routing/proto-google-maps-routing-v2/pom.xml b/java-maps-routing/proto-google-maps-routing-v2/pom.xml index 727d314c05d5..a4c1cab31afe 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/pom.xml +++ b/java-maps-routing/proto-google-maps-routing-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc proto-google-maps-routing-v2 - 1.31.0-SNAPSHOT + 1.31.0 proto-google-maps-routing-v2 Proto library for google-maps-routing com.google.maps google-maps-routing-parent - 1.31.0-SNAPSHOT + 1.31.0 diff --git a/java-maps-solar/CHANGELOG.md b/java-maps-solar/CHANGELOG.md index 6c77622f6350..94436aeb1adb 100644 --- a/java-maps-solar/CHANGELOG.md +++ b/java-maps-solar/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.5.0 (2024-06-27) + +* No change + + ## 0.4.0 (None) * No change diff --git a/java-maps-solar/README.md b/java-maps-solar/README.md index 67cab137d053..c0d54388ebba 100644 --- a/java-maps-solar/README.md +++ b/java-maps-solar/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.maps google-maps-solar - 0.4.0 + 0.5.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-solar:0.4.0' +implementation 'com.google.maps:google-maps-solar:0.5.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-solar" % "0.4.0" +libraryDependencies += "com.google.maps" % "google-maps-solar" % "0.5.0" ``` diff --git a/java-maps-solar/google-maps-solar-bom/pom.xml b/java-maps-solar/google-maps-solar-bom/pom.xml index db58af6699a4..1894ed8f0d01 100644 --- a/java-maps-solar/google-maps-solar-bom/pom.xml +++ b/java-maps-solar/google-maps-solar-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.maps google-maps-solar-bom - 0.5.0-SNAPSHOT + 0.5.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.maps google-maps-solar - 0.5.0-SNAPSHOT + 0.5.0 com.google.maps.api.grpc grpc-google-maps-solar-v1 - 0.5.0-SNAPSHOT + 0.5.0 com.google.maps.api.grpc proto-google-maps-solar-v1 - 0.5.0-SNAPSHOT + 0.5.0 diff --git a/java-maps-solar/google-maps-solar/pom.xml b/java-maps-solar/google-maps-solar/pom.xml index e4056b9315a7..e43f7a391c68 100644 --- a/java-maps-solar/google-maps-solar/pom.xml +++ b/java-maps-solar/google-maps-solar/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.maps google-maps-solar - 0.5.0-SNAPSHOT + 0.5.0 jar Google Solar API Solar API The Solar API allows users to read details about the solar potential of over 60 million buildings. This includes measurements of the building's roof (e.g., size and tilt/azimuth), energy production for a range of sizes of solar installations, and financial costs and benefits. com.google.maps google-maps-solar-parent - 0.5.0-SNAPSHOT + 0.5.0 google-maps-solar diff --git a/java-maps-solar/grpc-google-maps-solar-v1/pom.xml b/java-maps-solar/grpc-google-maps-solar-v1/pom.xml index b9d526a268d7..df5a40cb8485 100644 --- a/java-maps-solar/grpc-google-maps-solar-v1/pom.xml +++ b/java-maps-solar/grpc-google-maps-solar-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc grpc-google-maps-solar-v1 - 0.5.0-SNAPSHOT + 0.5.0 grpc-google-maps-solar-v1 GRPC library for google-maps-solar com.google.maps google-maps-solar-parent - 0.5.0-SNAPSHOT + 0.5.0 diff --git a/java-maps-solar/pom.xml b/java-maps-solar/pom.xml index cbc1a564d519..08950a7ddfdd 100644 --- a/java-maps-solar/pom.xml +++ b/java-maps-solar/pom.xml @@ -4,7 +4,7 @@ com.google.maps google-maps-solar-parent pom - 0.5.0-SNAPSHOT + 0.5.0 Google Solar API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.maps google-maps-solar - 0.5.0-SNAPSHOT + 0.5.0 com.google.maps.api.grpc grpc-google-maps-solar-v1 - 0.5.0-SNAPSHOT + 0.5.0 com.google.maps.api.grpc proto-google-maps-solar-v1 - 0.5.0-SNAPSHOT + 0.5.0 diff --git a/java-maps-solar/proto-google-maps-solar-v1/pom.xml b/java-maps-solar/proto-google-maps-solar-v1/pom.xml index 8cdba46cd145..87104a8d59d8 100644 --- a/java-maps-solar/proto-google-maps-solar-v1/pom.xml +++ b/java-maps-solar/proto-google-maps-solar-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc proto-google-maps-solar-v1 - 0.5.0-SNAPSHOT + 0.5.0 proto-google-maps-solar-v1 Proto library for google-maps-solar com.google.maps google-maps-solar-parent - 0.5.0-SNAPSHOT + 0.5.0 diff --git a/java-mediatranslation/CHANGELOG.md b/java-mediatranslation/CHANGELOG.md index aff1ed9a0dc7..c7df9bcf2f8c 100644 --- a/java-mediatranslation/CHANGELOG.md +++ b/java-mediatranslation/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.52.0 (2024-06-27) + +* No change + + ## 0.51.0 (None) * No change diff --git a/java-mediatranslation/README.md b/java-mediatranslation/README.md index 4469e716e89f..2c8ab73eec31 100644 --- a/java-mediatranslation/README.md +++ b/java-mediatranslation/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-mediatranslation - 0.51.0 + 0.52.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-mediatranslation:0.51.0' +implementation 'com.google.cloud:google-cloud-mediatranslation:0.52.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-mediatranslation" % "0.51.0" +libraryDependencies += "com.google.cloud" % "google-cloud-mediatranslation" % "0.52.0" ``` diff --git a/java-mediatranslation/google-cloud-mediatranslation-bom/pom.xml b/java-mediatranslation/google-cloud-mediatranslation-bom/pom.xml index a7006712c4f7..8c389c4f486f 100644 --- a/java-mediatranslation/google-cloud-mediatranslation-bom/pom.xml +++ b/java-mediatranslation/google-cloud-mediatranslation-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-mediatranslation-bom - 0.52.0-SNAPSHOT + 0.52.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-mediatranslation - 0.52.0-SNAPSHOT + 0.52.0 com.google.api.grpc grpc-google-cloud-mediatranslation-v1beta1 - 0.52.0-SNAPSHOT + 0.52.0 com.google.api.grpc proto-google-cloud-mediatranslation-v1beta1 - 0.52.0-SNAPSHOT + 0.52.0 diff --git a/java-mediatranslation/google-cloud-mediatranslation/pom.xml b/java-mediatranslation/google-cloud-mediatranslation/pom.xml index 0359c8ec42a0..9b6a1499711c 100644 --- a/java-mediatranslation/google-cloud-mediatranslation/pom.xml +++ b/java-mediatranslation/google-cloud-mediatranslation/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-mediatranslation - 0.52.0-SNAPSHOT + 0.52.0 jar Google Media Translation API provides enterprise quality translation from/to various media types. com.google.cloud google-cloud-mediatranslation-parent - 0.52.0-SNAPSHOT + 0.52.0 google-cloud-mediatranslation diff --git a/java-mediatranslation/grpc-google-cloud-mediatranslation-v1beta1/pom.xml b/java-mediatranslation/grpc-google-cloud-mediatranslation-v1beta1/pom.xml index be43993387b0..4abd5d298db0 100644 --- a/java-mediatranslation/grpc-google-cloud-mediatranslation-v1beta1/pom.xml +++ b/java-mediatranslation/grpc-google-cloud-mediatranslation-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-mediatranslation-v1beta1 - 0.52.0-SNAPSHOT + 0.52.0 grpc-google-cloud-mediatranslation-v1beta1 GRPC library for grpc-google-cloud-mediatranslation-v1beta1 com.google.cloud google-cloud-mediatranslation-parent - 0.52.0-SNAPSHOT + 0.52.0 diff --git a/java-mediatranslation/pom.xml b/java-mediatranslation/pom.xml index 17640c3b4190..827d86609d10 100644 --- a/java-mediatranslation/pom.xml +++ b/java-mediatranslation/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-mediatranslation-parent pom - 0.52.0-SNAPSHOT + 0.52.0 Google Media Translation API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-mediatranslation - 0.52.0-SNAPSHOT + 0.52.0 com.google.api.grpc proto-google-cloud-mediatranslation-v1beta1 - 0.52.0-SNAPSHOT + 0.52.0 com.google.api.grpc grpc-google-cloud-mediatranslation-v1beta1 - 0.52.0-SNAPSHOT + 0.52.0 diff --git a/java-mediatranslation/proto-google-cloud-mediatranslation-v1beta1/pom.xml b/java-mediatranslation/proto-google-cloud-mediatranslation-v1beta1/pom.xml index 4392078e22e7..895ab9a1293b 100644 --- a/java-mediatranslation/proto-google-cloud-mediatranslation-v1beta1/pom.xml +++ b/java-mediatranslation/proto-google-cloud-mediatranslation-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-mediatranslation-v1beta1 - 0.52.0-SNAPSHOT + 0.52.0 proto-google-cloud-mediatranslation-v1beta1 PROTO library for proto-google-cloud-mediatranslation-v1beta1 com.google.cloud google-cloud-mediatranslation-parent - 0.52.0-SNAPSHOT + 0.52.0 diff --git a/java-meet/CHANGELOG.md b/java-meet/CHANGELOG.md index 20596444e4a1..a3d5525319b0 100644 --- a/java-meet/CHANGELOG.md +++ b/java-meet/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.13.0 (2024-06-27) + +* No change + + ## 0.12.0 (None) * No change diff --git a/java-meet/README.md b/java-meet/README.md index 02ae32c72f98..076c04b66944 100644 --- a/java-meet/README.md +++ b/java-meet/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-meet - 0.12.0 + 0.13.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-meet:0.12.0' +implementation 'com.google.cloud:google-cloud-meet:0.13.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-meet" % "0.12.0" +libraryDependencies += "com.google.cloud" % "google-cloud-meet" % "0.13.0" ``` diff --git a/java-meet/google-cloud-meet-bom/pom.xml b/java-meet/google-cloud-meet-bom/pom.xml index db51e65b61f4..bcd4e9ba0e31 100644 --- a/java-meet/google-cloud-meet-bom/pom.xml +++ b/java-meet/google-cloud-meet-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-meet-bom - 0.13.0-SNAPSHOT + 0.13.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-meet - 0.13.0-SNAPSHOT + 0.13.0 com.google.api.grpc grpc-google-cloud-meet-v2beta - 0.13.0-SNAPSHOT + 0.13.0 com.google.api.grpc grpc-google-cloud-meet-v2 - 0.13.0-SNAPSHOT + 0.13.0 com.google.api.grpc proto-google-cloud-meet-v2beta - 0.13.0-SNAPSHOT + 0.13.0 com.google.api.grpc proto-google-cloud-meet-v2 - 0.13.0-SNAPSHOT + 0.13.0 diff --git a/java-meet/google-cloud-meet/pom.xml b/java-meet/google-cloud-meet/pom.xml index c18a8a711fe6..7dc3e777609b 100644 --- a/java-meet/google-cloud-meet/pom.xml +++ b/java-meet/google-cloud-meet/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-meet - 0.13.0-SNAPSHOT + 0.13.0 jar Google Google Meet API Google Meet API The Google Meet REST API lets you create and manage meetings for Google Meet and offers entry points to your users directly from your app com.google.cloud google-cloud-meet-parent - 0.13.0-SNAPSHOT + 0.13.0 google-cloud-meet diff --git a/java-meet/grpc-google-cloud-meet-v2/pom.xml b/java-meet/grpc-google-cloud-meet-v2/pom.xml index e6687c317378..804e72353257 100644 --- a/java-meet/grpc-google-cloud-meet-v2/pom.xml +++ b/java-meet/grpc-google-cloud-meet-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-meet-v2 - 0.13.0-SNAPSHOT + 0.13.0 grpc-google-cloud-meet-v2 GRPC library for google-cloud-meet com.google.cloud google-cloud-meet-parent - 0.13.0-SNAPSHOT + 0.13.0 diff --git a/java-meet/grpc-google-cloud-meet-v2beta/pom.xml b/java-meet/grpc-google-cloud-meet-v2beta/pom.xml index b0eba66d1667..3c5c58862ffc 100644 --- a/java-meet/grpc-google-cloud-meet-v2beta/pom.xml +++ b/java-meet/grpc-google-cloud-meet-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-meet-v2beta - 0.13.0-SNAPSHOT + 0.13.0 grpc-google-cloud-meet-v2beta GRPC library for google-cloud-meet com.google.cloud google-cloud-meet-parent - 0.13.0-SNAPSHOT + 0.13.0 diff --git a/java-meet/pom.xml b/java-meet/pom.xml index 8b08ab2aa756..a6c9dc2f63b3 100644 --- a/java-meet/pom.xml +++ b/java-meet/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-meet-parent pom - 0.13.0-SNAPSHOT + 0.13.0 Google Google Meet API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-meet - 0.13.0-SNAPSHOT + 0.13.0 com.google.api.grpc proto-google-cloud-meet-v2 - 0.13.0-SNAPSHOT + 0.13.0 com.google.api.grpc grpc-google-cloud-meet-v2 - 0.13.0-SNAPSHOT + 0.13.0 com.google.api.grpc grpc-google-cloud-meet-v2beta - 0.13.0-SNAPSHOT + 0.13.0 com.google.api.grpc proto-google-cloud-meet-v2beta - 0.13.0-SNAPSHOT + 0.13.0 diff --git a/java-meet/proto-google-cloud-meet-v2/pom.xml b/java-meet/proto-google-cloud-meet-v2/pom.xml index 90469bd3cba3..cd3e005360c0 100644 --- a/java-meet/proto-google-cloud-meet-v2/pom.xml +++ b/java-meet/proto-google-cloud-meet-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-meet-v2 - 0.13.0-SNAPSHOT + 0.13.0 proto-google-cloud-meet-v2 Proto library for google-cloud-meet com.google.cloud google-cloud-meet-parent - 0.13.0-SNAPSHOT + 0.13.0 diff --git a/java-meet/proto-google-cloud-meet-v2beta/pom.xml b/java-meet/proto-google-cloud-meet-v2beta/pom.xml index 690d1563edcd..4993756e868f 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/pom.xml +++ b/java-meet/proto-google-cloud-meet-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-meet-v2beta - 0.13.0-SNAPSHOT + 0.13.0 proto-google-cloud-meet-v2beta Proto library for google-cloud-meet com.google.cloud google-cloud-meet-parent - 0.13.0-SNAPSHOT + 0.13.0 diff --git a/java-memcache/CHANGELOG.md b/java-memcache/CHANGELOG.md index 49b37fe091a5..5ae8daab568b 100644 --- a/java-memcache/CHANGELOG.md +++ b/java-memcache/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.46.0 (2024-06-27) + +* No change + + ## 2.45.0 (None) * No change diff --git a/java-memcache/README.md b/java-memcache/README.md index 34f33166eda5..2c684ec7b870 100644 --- a/java-memcache/README.md +++ b/java-memcache/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-memcache - 2.45.0 + 2.46.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-memcache:2.45.0' +implementation 'com.google.cloud:google-cloud-memcache:2.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-memcache" % "2.45.0" +libraryDependencies += "com.google.cloud" % "google-cloud-memcache" % "2.46.0" ``` diff --git a/java-memcache/google-cloud-memcache-bom/pom.xml b/java-memcache/google-cloud-memcache-bom/pom.xml index 2d0e6311548c..194d8ec89d3c 100644 --- a/java-memcache/google-cloud-memcache-bom/pom.xml +++ b/java-memcache/google-cloud-memcache-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-memcache-bom - 2.46.0-SNAPSHOT + 2.46.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-memcache - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc grpc-google-cloud-memcache-v1beta2 - 0.53.0-SNAPSHOT + 0.53.0 com.google.api.grpc grpc-google-cloud-memcache-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc proto-google-cloud-memcache-v1beta2 - 0.53.0-SNAPSHOT + 0.53.0 com.google.api.grpc proto-google-cloud-memcache-v1 - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-memcache/google-cloud-memcache/pom.xml b/java-memcache/google-cloud-memcache/pom.xml index 4cfb725e856c..43377938ca49 100644 --- a/java-memcache/google-cloud-memcache/pom.xml +++ b/java-memcache/google-cloud-memcache/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-memcache - 2.46.0-SNAPSHOT + 2.46.0 jar Google Cloud Memcache Java idiomatic client for Google Cloud memcache com.google.cloud google-cloud-memcache-parent - 2.46.0-SNAPSHOT + 2.46.0 google-cloud-memcache diff --git a/java-memcache/grpc-google-cloud-memcache-v1/pom.xml b/java-memcache/grpc-google-cloud-memcache-v1/pom.xml index 1fda067cad1f..02d340b99f41 100644 --- a/java-memcache/grpc-google-cloud-memcache-v1/pom.xml +++ b/java-memcache/grpc-google-cloud-memcache-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-memcache-v1 - 2.46.0-SNAPSHOT + 2.46.0 grpc-google-cloud-memcache-v1 GRPC library for grpc-google-cloud-memcache-v1 com.google.cloud google-cloud-memcache-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-memcache/grpc-google-cloud-memcache-v1beta2/pom.xml b/java-memcache/grpc-google-cloud-memcache-v1beta2/pom.xml index b82308140a3a..b625a569ffc3 100644 --- a/java-memcache/grpc-google-cloud-memcache-v1beta2/pom.xml +++ b/java-memcache/grpc-google-cloud-memcache-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-memcache-v1beta2 - 0.53.0-SNAPSHOT + 0.53.0 grpc-google-cloud-memcache-v1beta2 GRPC library for grpc-google-cloud-memcache-v1beta2 com.google.cloud google-cloud-memcache-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-memcache/pom.xml b/java-memcache/pom.xml index 47f55efba601..abe06f1e4048 100644 --- a/java-memcache/pom.xml +++ b/java-memcache/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-memcache-parent pom - 2.46.0-SNAPSHOT + 2.46.0 Google Cloud Memcache Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-memcache-v1beta2 - 0.53.0-SNAPSHOT + 0.53.0 com.google.api.grpc grpc-google-cloud-memcache-v1beta2 - 0.53.0-SNAPSHOT + 0.53.0 com.google.api.grpc proto-google-cloud-memcache-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc grpc-google-cloud-memcache-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.cloud google-cloud-memcache - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-memcache/proto-google-cloud-memcache-v1/pom.xml b/java-memcache/proto-google-cloud-memcache-v1/pom.xml index 519c933e0432..e35e715e2a1e 100644 --- a/java-memcache/proto-google-cloud-memcache-v1/pom.xml +++ b/java-memcache/proto-google-cloud-memcache-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-memcache-v1 - 2.46.0-SNAPSHOT + 2.46.0 proto-google-cloud-memcache-v1 PROTO library for proto-google-cloud-memcache-v1 com.google.cloud google-cloud-memcache-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-memcache/proto-google-cloud-memcache-v1beta2/pom.xml b/java-memcache/proto-google-cloud-memcache-v1beta2/pom.xml index 592fb449cdaa..2c12d5755d06 100644 --- a/java-memcache/proto-google-cloud-memcache-v1beta2/pom.xml +++ b/java-memcache/proto-google-cloud-memcache-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-memcache-v1beta2 - 0.53.0-SNAPSHOT + 0.53.0 proto-google-cloud-memcache-v1beta2 PROTO library for proto-google-cloud-memcache-v1beta2 com.google.cloud google-cloud-memcache-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-migrationcenter/CHANGELOG.md b/java-migrationcenter/CHANGELOG.md index cadf533d5b3a..14f33e2b2557 100644 --- a/java-migrationcenter/CHANGELOG.md +++ b/java-migrationcenter/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.28.0 (2024-06-27) + +* No change + + ## 0.27.0 (None) * No change diff --git a/java-migrationcenter/README.md b/java-migrationcenter/README.md index d502f13c4eec..5e3e1c9fc4b0 100644 --- a/java-migrationcenter/README.md +++ b/java-migrationcenter/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-migrationcenter - 0.27.0 + 0.28.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-migrationcenter:0.27.0' +implementation 'com.google.cloud:google-cloud-migrationcenter:0.28.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-migrationcenter" % "0.27.0" +libraryDependencies += "com.google.cloud" % "google-cloud-migrationcenter" % "0.28.0" ``` diff --git a/java-migrationcenter/google-cloud-migrationcenter-bom/pom.xml b/java-migrationcenter/google-cloud-migrationcenter-bom/pom.xml index c7ffe00bd5d2..c8c6ff98f93d 100644 --- a/java-migrationcenter/google-cloud-migrationcenter-bom/pom.xml +++ b/java-migrationcenter/google-cloud-migrationcenter-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-migrationcenter-bom - 0.28.0-SNAPSHOT + 0.28.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-migrationcenter - 0.28.0-SNAPSHOT + 0.28.0 com.google.api.grpc grpc-google-cloud-migrationcenter-v1 - 0.28.0-SNAPSHOT + 0.28.0 com.google.api.grpc proto-google-cloud-migrationcenter-v1 - 0.28.0-SNAPSHOT + 0.28.0 diff --git a/java-migrationcenter/google-cloud-migrationcenter/pom.xml b/java-migrationcenter/google-cloud-migrationcenter/pom.xml index 17c497ac2a55..a01d6766e319 100644 --- a/java-migrationcenter/google-cloud-migrationcenter/pom.xml +++ b/java-migrationcenter/google-cloud-migrationcenter/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-migrationcenter - 0.28.0-SNAPSHOT + 0.28.0 jar Google Migration Center API Migration Center API Google Cloud Migration Center is a unified platform that helps you accelerate your end-to-end cloud journey from your current on-premises or cloud environments to Google Cloud com.google.cloud google-cloud-migrationcenter-parent - 0.28.0-SNAPSHOT + 0.28.0 google-cloud-migrationcenter diff --git a/java-migrationcenter/grpc-google-cloud-migrationcenter-v1/pom.xml b/java-migrationcenter/grpc-google-cloud-migrationcenter-v1/pom.xml index 4c3f08a134ae..da931515df39 100644 --- a/java-migrationcenter/grpc-google-cloud-migrationcenter-v1/pom.xml +++ b/java-migrationcenter/grpc-google-cloud-migrationcenter-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-migrationcenter-v1 - 0.28.0-SNAPSHOT + 0.28.0 grpc-google-cloud-migrationcenter-v1 GRPC library for google-cloud-migrationcenter com.google.cloud google-cloud-migrationcenter-parent - 0.28.0-SNAPSHOT + 0.28.0 diff --git a/java-migrationcenter/pom.xml b/java-migrationcenter/pom.xml index c2ee6b191a57..a05a4456e19d 100644 --- a/java-migrationcenter/pom.xml +++ b/java-migrationcenter/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-migrationcenter-parent pom - 0.28.0-SNAPSHOT + 0.28.0 Google Migration Center API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-migrationcenter - 0.28.0-SNAPSHOT + 0.28.0 com.google.api.grpc grpc-google-cloud-migrationcenter-v1 - 0.28.0-SNAPSHOT + 0.28.0 com.google.api.grpc proto-google-cloud-migrationcenter-v1 - 0.28.0-SNAPSHOT + 0.28.0 diff --git a/java-migrationcenter/proto-google-cloud-migrationcenter-v1/pom.xml b/java-migrationcenter/proto-google-cloud-migrationcenter-v1/pom.xml index 1bff1f4eb434..9dbc85cf16e4 100644 --- a/java-migrationcenter/proto-google-cloud-migrationcenter-v1/pom.xml +++ b/java-migrationcenter/proto-google-cloud-migrationcenter-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-migrationcenter-v1 - 0.28.0-SNAPSHOT + 0.28.0 proto-google-cloud-migrationcenter-v1 Proto library for google-cloud-migrationcenter com.google.cloud google-cloud-migrationcenter-parent - 0.28.0-SNAPSHOT + 0.28.0 diff --git a/java-monitoring-dashboards/CHANGELOG.md b/java-monitoring-dashboards/CHANGELOG.md index b2561066364b..287e448847a9 100644 --- a/java-monitoring-dashboards/CHANGELOG.md +++ b/java-monitoring-dashboards/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.48.0 (2024-06-27) + +* No change + + ## 2.47.0 (None) * No change diff --git a/java-monitoring-dashboards/README.md b/java-monitoring-dashboards/README.md index 1daf02c1163a..4de4c64f49a2 100644 --- a/java-monitoring-dashboards/README.md +++ b/java-monitoring-dashboards/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-monitoring-dashboard - 2.47.0 + 2.48.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-monitoring-dashboard:2.47.0' +implementation 'com.google.cloud:google-cloud-monitoring-dashboard:2.48.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-dashboard" % "2.47.0" +libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-dashboard" % "2.48.0" ``` diff --git a/java-monitoring-dashboards/google-cloud-monitoring-dashboard-bom/pom.xml b/java-monitoring-dashboards/google-cloud-monitoring-dashboard-bom/pom.xml index 762891ffe48a..6e525056fdb6 100644 --- a/java-monitoring-dashboards/google-cloud-monitoring-dashboard-bom/pom.xml +++ b/java-monitoring-dashboards/google-cloud-monitoring-dashboard-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-monitoring-dashboard-bom - 2.48.0-SNAPSHOT + 2.48.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-monitoring-dashboard - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc grpc-google-cloud-monitoring-dashboard-v1 - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc proto-google-cloud-monitoring-dashboard-v1 - 2.48.0-SNAPSHOT + 2.48.0 diff --git a/java-monitoring-dashboards/google-cloud-monitoring-dashboard/pom.xml b/java-monitoring-dashboards/google-cloud-monitoring-dashboard/pom.xml index 809f22a94a71..606645258d23 100644 --- a/java-monitoring-dashboards/google-cloud-monitoring-dashboard/pom.xml +++ b/java-monitoring-dashboards/google-cloud-monitoring-dashboard/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-monitoring-dashboard - 2.48.0-SNAPSHOT + 2.48.0 jar Google Cloud Monitoring Dashboard Java idiomatic client for Google Cloud Monitoring Dashboard com.google.cloud google-cloud-monitoring-dashboard-parent - 2.48.0-SNAPSHOT + 2.48.0 google-cloud-monitoring-dashboard diff --git a/java-monitoring-dashboards/grpc-google-cloud-monitoring-dashboard-v1/pom.xml b/java-monitoring-dashboards/grpc-google-cloud-monitoring-dashboard-v1/pom.xml index d3ac367730a6..c1acb8f920a4 100644 --- a/java-monitoring-dashboards/grpc-google-cloud-monitoring-dashboard-v1/pom.xml +++ b/java-monitoring-dashboards/grpc-google-cloud-monitoring-dashboard-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-monitoring-dashboard-v1 - 2.48.0-SNAPSHOT + 2.48.0 grpc-google-cloud-monitoring-dashboard-v1 GRPC library for grpc-google-cloud-monitoring-dashboard-v1 com.google.cloud google-cloud-monitoring-dashboard-parent - 2.48.0-SNAPSHOT + 2.48.0 diff --git a/java-monitoring-dashboards/pom.xml b/java-monitoring-dashboards/pom.xml index e19597e8ea9a..c64f9bf1c4d5 100644 --- a/java-monitoring-dashboards/pom.xml +++ b/java-monitoring-dashboards/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-monitoring-dashboard-parent pom - 2.48.0-SNAPSHOT + 2.48.0 Google Cloud Monitoring Dashboard Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.api.grpc proto-google-cloud-monitoring-dashboard-v1 - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc grpc-google-cloud-monitoring-dashboard-v1 - 2.48.0-SNAPSHOT + 2.48.0 com.google.cloud google-cloud-monitoring-dashboard - 2.48.0-SNAPSHOT + 2.48.0 diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/pom.xml b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/pom.xml index 8651ace4cc9a..cb6b1be6d7a5 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/pom.xml +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-monitoring-dashboard-v1 - 2.48.0-SNAPSHOT + 2.48.0 proto-google-cloud-monitoring-dashboard-v1 PROTO library for proto-google-cloud-monitoring-dashboard-v1 com.google.cloud google-cloud-monitoring-dashboard-parent - 2.48.0-SNAPSHOT + 2.48.0 diff --git a/java-monitoring-metricsscope/CHANGELOG.md b/java-monitoring-metricsscope/CHANGELOG.md index af62238c6d65..20e33bbf520c 100644 --- a/java-monitoring-metricsscope/CHANGELOG.md +++ b/java-monitoring-metricsscope/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.40.0 (2024-06-27) + +* No change + + ## 0.39.0 (None) * No change diff --git a/java-monitoring-metricsscope/README.md b/java-monitoring-metricsscope/README.md index c59f5f92056d..50484c136c32 100644 --- a/java-monitoring-metricsscope/README.md +++ b/java-monitoring-metricsscope/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-monitoring-metricsscope - 0.39.0 + 0.40.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-monitoring-metricsscope:0.39.0' +implementation 'com.google.cloud:google-cloud-monitoring-metricsscope:0.40.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-metricsscope" % "0.39.0" +libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-metricsscope" % "0.40.0" ``` diff --git a/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope-bom/pom.xml b/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope-bom/pom.xml index 45baa63d9cb4..feb51a4aa247 100644 --- a/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope-bom/pom.xml +++ b/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-monitoring-metricsscope-bom - 0.40.0-SNAPSHOT + 0.40.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-monitoring-metricsscope - 0.40.0-SNAPSHOT + 0.40.0 com.google.api.grpc grpc-google-cloud-monitoring-metricsscope-v1 - 0.40.0-SNAPSHOT + 0.40.0 com.google.api.grpc proto-google-cloud-monitoring-metricsscope-v1 - 0.40.0-SNAPSHOT + 0.40.0 diff --git a/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope/pom.xml b/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope/pom.xml index 24816899c0d2..08e1fc26598d 100644 --- a/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope/pom.xml +++ b/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-monitoring-metricsscope - 0.40.0-SNAPSHOT + 0.40.0 jar Google Monitoring Metrics Scopes Monitoring Metrics Scopes The metrics scope defines the set of Google Cloud projects whose metrics the current Google Cloud project can access. com.google.cloud google-cloud-monitoring-metricsscope-parent - 0.40.0-SNAPSHOT + 0.40.0 google-cloud-monitoring-metricsscope diff --git a/java-monitoring-metricsscope/grpc-google-cloud-monitoring-metricsscope-v1/pom.xml b/java-monitoring-metricsscope/grpc-google-cloud-monitoring-metricsscope-v1/pom.xml index 99daad47a3af..f9ac31266cb1 100644 --- a/java-monitoring-metricsscope/grpc-google-cloud-monitoring-metricsscope-v1/pom.xml +++ b/java-monitoring-metricsscope/grpc-google-cloud-monitoring-metricsscope-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-monitoring-metricsscope-v1 - 0.40.0-SNAPSHOT + 0.40.0 grpc-google-cloud-monitoring-metricsscope-v1 GRPC library for google-cloud-monitoring-metricsscope com.google.cloud google-cloud-monitoring-metricsscope-parent - 0.40.0-SNAPSHOT + 0.40.0 diff --git a/java-monitoring-metricsscope/pom.xml b/java-monitoring-metricsscope/pom.xml index 04feeca51eec..fe05cd4a3cff 100644 --- a/java-monitoring-metricsscope/pom.xml +++ b/java-monitoring-metricsscope/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-monitoring-metricsscope-parent pom - 0.40.0-SNAPSHOT + 0.40.0 Google Monitoring Metrics Scopes Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-monitoring-metricsscope - 0.40.0-SNAPSHOT + 0.40.0 com.google.api.grpc grpc-google-cloud-monitoring-metricsscope-v1 - 0.40.0-SNAPSHOT + 0.40.0 com.google.api.grpc proto-google-cloud-monitoring-metricsscope-v1 - 0.40.0-SNAPSHOT + 0.40.0 diff --git a/java-monitoring-metricsscope/proto-google-cloud-monitoring-metricsscope-v1/pom.xml b/java-monitoring-metricsscope/proto-google-cloud-monitoring-metricsscope-v1/pom.xml index 429ee924cc98..2fc4b2a5cc3e 100644 --- a/java-monitoring-metricsscope/proto-google-cloud-monitoring-metricsscope-v1/pom.xml +++ b/java-monitoring-metricsscope/proto-google-cloud-monitoring-metricsscope-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-monitoring-metricsscope-v1 - 0.40.0-SNAPSHOT + 0.40.0 proto-google-cloud-monitoring-metricsscope-v1 Proto library for google-cloud-monitoring-metricsscope com.google.cloud google-cloud-monitoring-metricsscope-parent - 0.40.0-SNAPSHOT + 0.40.0 diff --git a/java-monitoring/CHANGELOG.md b/java-monitoring/CHANGELOG.md index 3ae8b2640bc8..f671aed85cb1 100644 --- a/java-monitoring/CHANGELOG.md +++ b/java-monitoring/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 3.47.0 (2024-06-27) + +### Features + +* Add support to add links in AlertPolicy ([666a3ac](https://github.com/googleapis/google-cloud-java/commit/666a3ac8cd0cb45da3555a1bef8dfe3edf57d257)) + + + ## 3.46.0 (None) * No change diff --git a/java-monitoring/README.md b/java-monitoring/README.md index e56c5f757cdf..4fdc740674ec 100644 --- a/java-monitoring/README.md +++ b/java-monitoring/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-monitoring - 3.46.0 + 3.47.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-monitoring:3.46.0' +implementation 'com.google.cloud:google-cloud-monitoring:3.47.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-monitoring" % "3.46.0" +libraryDependencies += "com.google.cloud" % "google-cloud-monitoring" % "3.47.0" ``` diff --git a/java-monitoring/google-cloud-monitoring-bom/pom.xml b/java-monitoring/google-cloud-monitoring-bom/pom.xml index 7d87b2fd26ad..c2d22c6cf3e2 100644 --- a/java-monitoring/google-cloud-monitoring-bom/pom.xml +++ b/java-monitoring/google-cloud-monitoring-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-monitoring-bom - 3.47.0-SNAPSHOT + 3.47.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-monitoring - 3.47.0-SNAPSHOT + 3.47.0 com.google.api.grpc grpc-google-cloud-monitoring-v3 - 3.47.0-SNAPSHOT + 3.47.0 com.google.api.grpc proto-google-cloud-monitoring-v3 - 3.47.0-SNAPSHOT + 3.47.0 diff --git a/java-monitoring/google-cloud-monitoring/pom.xml b/java-monitoring/google-cloud-monitoring/pom.xml index 20912db852fa..5bd93b583330 100644 --- a/java-monitoring/google-cloud-monitoring/pom.xml +++ b/java-monitoring/google-cloud-monitoring/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-monitoring - 3.47.0-SNAPSHOT + 3.47.0 jar Google Cloud Monitoring Java idiomatic client for Stackdriver Monitoring com.google.cloud google-cloud-monitoring-parent - 3.47.0-SNAPSHOT + 3.47.0 google-cloud-monitoring diff --git a/java-monitoring/grpc-google-cloud-monitoring-v3/pom.xml b/java-monitoring/grpc-google-cloud-monitoring-v3/pom.xml index d6620f3e6cfa..216d126c27c4 100644 --- a/java-monitoring/grpc-google-cloud-monitoring-v3/pom.xml +++ b/java-monitoring/grpc-google-cloud-monitoring-v3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-monitoring-v3 - 3.47.0-SNAPSHOT + 3.47.0 grpc-google-cloud-monitoring-v3 GRPC library for grpc-google-cloud-monitoring-v3 com.google.cloud google-cloud-monitoring-parent - 3.47.0-SNAPSHOT + 3.47.0 diff --git a/java-monitoring/pom.xml b/java-monitoring/pom.xml index b28f9d739e77..53f7d29b3931 100644 --- a/java-monitoring/pom.xml +++ b/java-monitoring/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-monitoring-parent pom - 3.47.0-SNAPSHOT + 3.47.0 Google Cloud Monitoring Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.api.grpc proto-google-cloud-monitoring-v3 - 3.47.0-SNAPSHOT + 3.47.0 com.google.api.grpc grpc-google-cloud-monitoring-v3 - 3.47.0-SNAPSHOT + 3.47.0 com.google.cloud google-cloud-monitoring - 3.47.0-SNAPSHOT + 3.47.0 diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/pom.xml b/java-monitoring/proto-google-cloud-monitoring-v3/pom.xml index cde5b0b5b29c..8b6bc00dbc26 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/pom.xml +++ b/java-monitoring/proto-google-cloud-monitoring-v3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-monitoring-v3 - 3.47.0-SNAPSHOT + 3.47.0 proto-google-cloud-monitoring-v3 PROTO library for proto-google-cloud-monitoring-v3 com.google.cloud google-cloud-monitoring-parent - 3.47.0-SNAPSHOT + 3.47.0 diff --git a/java-netapp/CHANGELOG.md b/java-netapp/CHANGELOG.md index 9c23fb0d62f7..a1be57471c61 100644 --- a/java-netapp/CHANGELOG.md +++ b/java-netapp/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.25.0 (2024-06-27) + +* No change + + ## 0.24.0 (None) * No change diff --git a/java-netapp/README.md b/java-netapp/README.md index 936bd767486f..6c29334dbf6d 100644 --- a/java-netapp/README.md +++ b/java-netapp/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-netapp - 0.24.0 + 0.25.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-netapp:0.24.0' +implementation 'com.google.cloud:google-cloud-netapp:0.25.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-netapp" % "0.24.0" +libraryDependencies += "com.google.cloud" % "google-cloud-netapp" % "0.25.0" ``` diff --git a/java-netapp/google-cloud-netapp-bom/pom.xml b/java-netapp/google-cloud-netapp-bom/pom.xml index 2f6900d4e9af..4b8ba920d293 100644 --- a/java-netapp/google-cloud-netapp-bom/pom.xml +++ b/java-netapp/google-cloud-netapp-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-netapp-bom - 0.25.0-SNAPSHOT + 0.25.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-netapp - 0.25.0-SNAPSHOT + 0.25.0 com.google.api.grpc grpc-google-cloud-netapp-v1 - 0.25.0-SNAPSHOT + 0.25.0 com.google.api.grpc proto-google-cloud-netapp-v1 - 0.25.0-SNAPSHOT + 0.25.0 diff --git a/java-netapp/google-cloud-netapp/pom.xml b/java-netapp/google-cloud-netapp/pom.xml index 8fdd83083f33..95caada957c5 100644 --- a/java-netapp/google-cloud-netapp/pom.xml +++ b/java-netapp/google-cloud-netapp/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-netapp - 0.25.0-SNAPSHOT + 0.25.0 jar Google NetApp API NetApp API Google Cloud NetApp Volumes is a fully-managed, cloud-based data storage service that provides advanced data management capabilities and highly scalable performance with global availability. com.google.cloud google-cloud-netapp-parent - 0.25.0-SNAPSHOT + 0.25.0 google-cloud-netapp diff --git a/java-netapp/grpc-google-cloud-netapp-v1/pom.xml b/java-netapp/grpc-google-cloud-netapp-v1/pom.xml index 7e9fe579f4c1..fe895ad30aa4 100644 --- a/java-netapp/grpc-google-cloud-netapp-v1/pom.xml +++ b/java-netapp/grpc-google-cloud-netapp-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-netapp-v1 - 0.25.0-SNAPSHOT + 0.25.0 grpc-google-cloud-netapp-v1 GRPC library for google-cloud-netapp com.google.cloud google-cloud-netapp-parent - 0.25.0-SNAPSHOT + 0.25.0 diff --git a/java-netapp/pom.xml b/java-netapp/pom.xml index 1349298b27d3..4968cd00fe4d 100644 --- a/java-netapp/pom.xml +++ b/java-netapp/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-netapp-parent pom - 0.25.0-SNAPSHOT + 0.25.0 Google NetApp API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-netapp - 0.25.0-SNAPSHOT + 0.25.0 com.google.api.grpc proto-google-cloud-netapp-v1 - 0.25.0-SNAPSHOT + 0.25.0 com.google.api.grpc grpc-google-cloud-netapp-v1 - 0.25.0-SNAPSHOT + 0.25.0 diff --git a/java-netapp/proto-google-cloud-netapp-v1/pom.xml b/java-netapp/proto-google-cloud-netapp-v1/pom.xml index e87741664b47..7711f317a916 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/pom.xml +++ b/java-netapp/proto-google-cloud-netapp-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-netapp-v1 - 0.25.0-SNAPSHOT + 0.25.0 proto-google-cloud-netapp-v1 Proto library for google-cloud-netapp com.google.cloud google-cloud-netapp-parent - 0.25.0-SNAPSHOT + 0.25.0 diff --git a/java-network-management/CHANGELOG.md b/java-network-management/CHANGELOG.md index 166de4fb889e..8f7d17ba012c 100644 --- a/java-network-management/CHANGELOG.md +++ b/java-network-management/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 1.47.0 (2024-06-27) + +* No change + + ## 1.46.0 (None) * No change diff --git a/java-network-management/README.md b/java-network-management/README.md index 3b9a722039d4..c8e00928c149 100644 --- a/java-network-management/README.md +++ b/java-network-management/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-network-management - 1.46.0 + 1.47.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-network-management:1.46.0' +implementation 'com.google.cloud:google-cloud-network-management:1.47.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-network-management" % "1.46.0" +libraryDependencies += "com.google.cloud" % "google-cloud-network-management" % "1.47.0" ``` diff --git a/java-network-management/google-cloud-network-management-bom/pom.xml b/java-network-management/google-cloud-network-management-bom/pom.xml index 3f9d573cc46e..176d923303b6 100644 --- a/java-network-management/google-cloud-network-management-bom/pom.xml +++ b/java-network-management/google-cloud-network-management-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-network-management-bom - 1.47.0-SNAPSHOT + 1.47.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-network-management - 1.47.0-SNAPSHOT + 1.47.0 com.google.api.grpc grpc-google-cloud-network-management-v1beta1 - 0.49.0-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-network-management-v1 - 1.47.0-SNAPSHOT + 1.47.0 com.google.api.grpc proto-google-cloud-network-management-v1beta1 - 0.49.0-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-network-management-v1 - 1.47.0-SNAPSHOT + 1.47.0 diff --git a/java-network-management/google-cloud-network-management/pom.xml b/java-network-management/google-cloud-network-management/pom.xml index 8264a2ab11a9..8896d485e05b 100644 --- a/java-network-management/google-cloud-network-management/pom.xml +++ b/java-network-management/google-cloud-network-management/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-network-management - 1.47.0-SNAPSHOT + 1.47.0 jar Google Network Management API Network Management API provides a collection of network performance monitoring and diagnostic capabilities. com.google.cloud google-cloud-network-management-parent - 1.47.0-SNAPSHOT + 1.47.0 google-cloud-network-management diff --git a/java-network-management/grpc-google-cloud-network-management-v1/pom.xml b/java-network-management/grpc-google-cloud-network-management-v1/pom.xml index fb95faec9802..a53fb526dec1 100644 --- a/java-network-management/grpc-google-cloud-network-management-v1/pom.xml +++ b/java-network-management/grpc-google-cloud-network-management-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-network-management-v1 - 1.47.0-SNAPSHOT + 1.47.0 grpc-google-cloud-network-management-v1 GRPC library for google-cloud-network-management com.google.cloud google-cloud-network-management-parent - 1.47.0-SNAPSHOT + 1.47.0 diff --git a/java-network-management/grpc-google-cloud-network-management-v1beta1/pom.xml b/java-network-management/grpc-google-cloud-network-management-v1beta1/pom.xml index 6f50b39a8f99..125ea0022118 100644 --- a/java-network-management/grpc-google-cloud-network-management-v1beta1/pom.xml +++ b/java-network-management/grpc-google-cloud-network-management-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-network-management-v1beta1 - 0.49.0-SNAPSHOT + 0.49.0 grpc-google-cloud-network-management-v1beta1 GRPC library for google-cloud-network-management com.google.cloud google-cloud-network-management-parent - 1.47.0-SNAPSHOT + 1.47.0 diff --git a/java-network-management/pom.xml b/java-network-management/pom.xml index 5d26d64bd99e..a8b3f1655ecf 100644 --- a/java-network-management/pom.xml +++ b/java-network-management/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-network-management-parent pom - 1.47.0-SNAPSHOT + 1.47.0 Google Network Management API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-network-management - 1.47.0-SNAPSHOT + 1.47.0 com.google.api.grpc grpc-google-cloud-network-management-v1beta1 - 0.49.0-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-network-management-v1 - 1.47.0-SNAPSHOT + 1.47.0 com.google.api.grpc proto-google-cloud-network-management-v1beta1 - 0.49.0-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-network-management-v1 - 1.47.0-SNAPSHOT + 1.47.0 diff --git a/java-network-management/proto-google-cloud-network-management-v1/pom.xml b/java-network-management/proto-google-cloud-network-management-v1/pom.xml index e8514c9da160..8cfbbe14b3d2 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/pom.xml +++ b/java-network-management/proto-google-cloud-network-management-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-network-management-v1 - 1.47.0-SNAPSHOT + 1.47.0 proto-google-cloud-network-management-v1 Proto library for google-cloud-network-management com.google.cloud google-cloud-network-management-parent - 1.47.0-SNAPSHOT + 1.47.0 diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/pom.xml b/java-network-management/proto-google-cloud-network-management-v1beta1/pom.xml index 3bbfc8c0d894..e39cffb28cef 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/pom.xml +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-network-management-v1beta1 - 0.49.0-SNAPSHOT + 0.49.0 proto-google-cloud-network-management-v1beta1 Proto library for google-cloud-network-management com.google.cloud google-cloud-network-management-parent - 1.47.0-SNAPSHOT + 1.47.0 diff --git a/java-network-security/CHANGELOG.md b/java-network-security/CHANGELOG.md index d203584b7e2e..32d1d7bc9cbc 100644 --- a/java-network-security/CHANGELOG.md +++ b/java-network-security/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.49.0 (2024-06-27) + +* No change + + ## 0.48.0 (None) * No change diff --git a/java-network-security/README.md b/java-network-security/README.md index 9a0cf77c61bd..c867fd62b1ca 100644 --- a/java-network-security/README.md +++ b/java-network-security/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-network-security - 0.48.0 + 0.49.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-network-security:0.48.0' +implementation 'com.google.cloud:google-cloud-network-security:0.49.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-network-security" % "0.48.0" +libraryDependencies += "com.google.cloud" % "google-cloud-network-security" % "0.49.0" ``` diff --git a/java-network-security/google-cloud-network-security-bom/pom.xml b/java-network-security/google-cloud-network-security-bom/pom.xml index 558863cb2ed6..a78168898806 100644 --- a/java-network-security/google-cloud-network-security-bom/pom.xml +++ b/java-network-security/google-cloud-network-security-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-network-security-bom - 0.49.0-SNAPSHOT + 0.49.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-network-security - 0.49.0-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-network-security-v1beta1 - 0.49.0-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-network-security-v1 - 0.49.0-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-network-security-v1beta1 - 0.49.0-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-network-security-v1 - 0.49.0-SNAPSHOT + 0.49.0 diff --git a/java-network-security/google-cloud-network-security/pom.xml b/java-network-security/google-cloud-network-security/pom.xml index 837abf6b5424..8b057d448df1 100644 --- a/java-network-security/google-cloud-network-security/pom.xml +++ b/java-network-security/google-cloud-network-security/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-network-security - 0.49.0-SNAPSHOT + 0.49.0 jar Google Network Security API Network Security API n/a com.google.cloud google-cloud-network-security-parent - 0.49.0-SNAPSHOT + 0.49.0 google-cloud-network-security diff --git a/java-network-security/grpc-google-cloud-network-security-v1/pom.xml b/java-network-security/grpc-google-cloud-network-security-v1/pom.xml index 5aab39a7a4a2..832bd6b2786c 100644 --- a/java-network-security/grpc-google-cloud-network-security-v1/pom.xml +++ b/java-network-security/grpc-google-cloud-network-security-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-network-security-v1 - 0.49.0-SNAPSHOT + 0.49.0 grpc-google-cloud-network-security-v1 GRPC library for google-cloud-network-security com.google.cloud google-cloud-network-security-parent - 0.49.0-SNAPSHOT + 0.49.0 diff --git a/java-network-security/grpc-google-cloud-network-security-v1beta1/pom.xml b/java-network-security/grpc-google-cloud-network-security-v1beta1/pom.xml index 10965440c350..4f1d19f9a325 100644 --- a/java-network-security/grpc-google-cloud-network-security-v1beta1/pom.xml +++ b/java-network-security/grpc-google-cloud-network-security-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-network-security-v1beta1 - 0.49.0-SNAPSHOT + 0.49.0 grpc-google-cloud-network-security-v1beta1 GRPC library for google-cloud-network-security com.google.cloud google-cloud-network-security-parent - 0.49.0-SNAPSHOT + 0.49.0 diff --git a/java-network-security/pom.xml b/java-network-security/pom.xml index 4d2eab2e053c..7a22abc544cf 100644 --- a/java-network-security/pom.xml +++ b/java-network-security/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-network-security-parent pom - 0.49.0-SNAPSHOT + 0.49.0 Google Network Security API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-network-security - 0.49.0-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-network-security-v1 - 0.49.0-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-network-security-v1 - 0.49.0-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-network-security-v1beta1 - 0.49.0-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-network-security-v1beta1 - 0.49.0-SNAPSHOT + 0.49.0 diff --git a/java-network-security/proto-google-cloud-network-security-v1/pom.xml b/java-network-security/proto-google-cloud-network-security-v1/pom.xml index 9397dd408072..7d30625bbae3 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/pom.xml +++ b/java-network-security/proto-google-cloud-network-security-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-network-security-v1 - 0.49.0-SNAPSHOT + 0.49.0 proto-google-cloud-network-security-v1 Proto library for google-cloud-network-security com.google.cloud google-cloud-network-security-parent - 0.49.0-SNAPSHOT + 0.49.0 diff --git a/java-network-security/proto-google-cloud-network-security-v1beta1/pom.xml b/java-network-security/proto-google-cloud-network-security-v1beta1/pom.xml index 5756f15a1508..760847beeb5e 100644 --- a/java-network-security/proto-google-cloud-network-security-v1beta1/pom.xml +++ b/java-network-security/proto-google-cloud-network-security-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-network-security-v1beta1 - 0.49.0-SNAPSHOT + 0.49.0 proto-google-cloud-network-security-v1beta1 Proto library for google-cloud-network-security com.google.cloud google-cloud-network-security-parent - 0.49.0-SNAPSHOT + 0.49.0 diff --git a/java-networkconnectivity/CHANGELOG.md b/java-networkconnectivity/CHANGELOG.md index 5e75b80133a7..b8a175932fc0 100644 --- a/java-networkconnectivity/CHANGELOG.md +++ b/java-networkconnectivity/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 1.45.0 (2024-06-27) + +* No change + + ## 1.44.0 (None) * No change diff --git a/java-networkconnectivity/README.md b/java-networkconnectivity/README.md index f3c3bce27eea..f12ec6aeb0a3 100644 --- a/java-networkconnectivity/README.md +++ b/java-networkconnectivity/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-networkconnectivity - 1.44.0 + 1.45.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-networkconnectivity:1.44.0' +implementation 'com.google.cloud:google-cloud-networkconnectivity:1.45.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-networkconnectivity" % "1.44.0" +libraryDependencies += "com.google.cloud" % "google-cloud-networkconnectivity" % "1.45.0" ``` diff --git a/java-networkconnectivity/google-cloud-networkconnectivity-bom/pom.xml b/java-networkconnectivity/google-cloud-networkconnectivity-bom/pom.xml index 93141b04f121..ad41d2d69091 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity-bom/pom.xml +++ b/java-networkconnectivity/google-cloud-networkconnectivity-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-networkconnectivity-bom - 1.45.0-SNAPSHOT + 1.45.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-networkconnectivity - 1.45.0-SNAPSHOT + 1.45.0 com.google.api.grpc grpc-google-cloud-networkconnectivity-v1alpha1 - 0.51.0-SNAPSHOT + 0.51.0 com.google.api.grpc grpc-google-cloud-networkconnectivity-v1 - 1.45.0-SNAPSHOT + 1.45.0 com.google.api.grpc proto-google-cloud-networkconnectivity-v1alpha1 - 0.51.0-SNAPSHOT + 0.51.0 com.google.api.grpc proto-google-cloud-networkconnectivity-v1 - 1.45.0-SNAPSHOT + 1.45.0 diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/pom.xml b/java-networkconnectivity/google-cloud-networkconnectivity/pom.xml index cf44add780a4..876f91902442 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/pom.xml +++ b/java-networkconnectivity/google-cloud-networkconnectivity/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-networkconnectivity - 1.45.0-SNAPSHOT + 1.45.0 jar Google Network Connectivity Center Google's suite of products that provide enterprise connectivity from your on-premises network or from another cloud provider to your Virtual Private Cloud (VPC) network com.google.cloud google-cloud-networkconnectivity-parent - 1.45.0-SNAPSHOT + 1.45.0 google-cloud-networkconnectivity diff --git a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/pom.xml b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/pom.xml index 9c16a9c4626d..ad5537829168 100644 --- a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/pom.xml +++ b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-networkconnectivity-v1 - 1.45.0-SNAPSHOT + 1.45.0 grpc-google-cloud-networkconnectivity-v1 GRPC library for google-cloud-networkconnectivity com.google.cloud google-cloud-networkconnectivity-parent - 1.45.0-SNAPSHOT + 1.45.0 diff --git a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1alpha1/pom.xml b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1alpha1/pom.xml index 2560e84e9348..95db727e2fc4 100644 --- a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1alpha1/pom.xml +++ b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-networkconnectivity-v1alpha1 - 0.51.0-SNAPSHOT + 0.51.0 grpc-google-cloud-networkconnectivity-v1alpha1 GRPC library for google-cloud-networkconnectivity com.google.cloud google-cloud-networkconnectivity-parent - 1.45.0-SNAPSHOT + 1.45.0 diff --git a/java-networkconnectivity/pom.xml b/java-networkconnectivity/pom.xml index 232bc3eb3ea1..83f1d63c87f0 100644 --- a/java-networkconnectivity/pom.xml +++ b/java-networkconnectivity/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-networkconnectivity-parent pom - 1.45.0-SNAPSHOT + 1.45.0 Google Network Connectivity Center Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-networkconnectivity - 1.45.0-SNAPSHOT + 1.45.0 com.google.api.grpc proto-google-cloud-networkconnectivity-v1 - 1.45.0-SNAPSHOT + 1.45.0 com.google.api.grpc grpc-google-cloud-networkconnectivity-v1 - 1.45.0-SNAPSHOT + 1.45.0 com.google.api.grpc proto-google-cloud-networkconnectivity-v1alpha1 - 0.51.0-SNAPSHOT + 0.51.0 com.google.api.grpc grpc-google-cloud-networkconnectivity-v1alpha1 - 0.51.0-SNAPSHOT + 0.51.0 diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/pom.xml b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/pom.xml index 2cd0677d2132..9b2ce5995aef 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/pom.xml +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-networkconnectivity-v1 - 1.45.0-SNAPSHOT + 1.45.0 proto-google-cloud-networkconnectivity-v1 Proto library for google-cloud-networkconnectivity com.google.cloud google-cloud-networkconnectivity-parent - 1.45.0-SNAPSHOT + 1.45.0 diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/pom.xml b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/pom.xml index adc367f839c8..50bcff13fc96 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/pom.xml +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-networkconnectivity-v1alpha1 - 0.51.0-SNAPSHOT + 0.51.0 proto-google-cloud-networkconnectivity-v1alpha1 Proto library for google-cloud-networkconnectivity com.google.cloud google-cloud-networkconnectivity-parent - 1.45.0-SNAPSHOT + 1.45.0 diff --git a/java-networkservices/CHANGELOG.md b/java-networkservices/CHANGELOG.md index 7a8760f9bb40..1ccba2a26131 100644 --- a/java-networkservices/CHANGELOG.md +++ b/java-networkservices/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.2.0 (2024-06-27) + +### Features + +* Add a comment for the NetworkServices service ([666a3ac](https://github.com/googleapis/google-cloud-java/commit/666a3ac8cd0cb45da3555a1bef8dfe3edf57d257)) + + + ## 0.1.0 (None) * No change diff --git a/java-networkservices/README.md b/java-networkservices/README.md index 71964d0cf8c9..1c3993e61061 100644 --- a/java-networkservices/README.md +++ b/java-networkservices/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-networkservices - 0.1.0 + 0.2.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-networkservices:0.1.0' +implementation 'com.google.cloud:google-cloud-networkservices:0.2.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-networkservices" % "0.1.0" +libraryDependencies += "com.google.cloud" % "google-cloud-networkservices" % "0.2.0" ``` diff --git a/java-networkservices/google-cloud-networkservices-bom/pom.xml b/java-networkservices/google-cloud-networkservices-bom/pom.xml index 4ae24bfd8023..f51da8eb8289 100644 --- a/java-networkservices/google-cloud-networkservices-bom/pom.xml +++ b/java-networkservices/google-cloud-networkservices-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-networkservices-bom - 0.2.0-SNAPSHOT + 0.2.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-networkservices - 0.2.0-SNAPSHOT + 0.2.0 com.google.api.grpc grpc-google-cloud-networkservices-v1 - 0.2.0-SNAPSHOT + 0.2.0 com.google.api.grpc proto-google-cloud-networkservices-v1 - 0.2.0-SNAPSHOT + 0.2.0 diff --git a/java-networkservices/google-cloud-networkservices/pom.xml b/java-networkservices/google-cloud-networkservices/pom.xml index 4200bb55ad34..d29297c8c011 100644 --- a/java-networkservices/google-cloud-networkservices/pom.xml +++ b/java-networkservices/google-cloud-networkservices/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-networkservices - 0.2.0-SNAPSHOT + 0.2.0 jar Google Network Services API Network Services API Google Cloud offers a broad portfolio of networking services built on top of planet-scale infrastructure that leverages automation, advanced AI, and programmability, enabling enterprises to connect, scale, secure, modernize and optimize their infrastructure. com.google.cloud google-cloud-networkservices-parent - 0.2.0-SNAPSHOT + 0.2.0 google-cloud-networkservices diff --git a/java-networkservices/grpc-google-cloud-networkservices-v1/pom.xml b/java-networkservices/grpc-google-cloud-networkservices-v1/pom.xml index 4c55cf401b26..c80df98f0fde 100644 --- a/java-networkservices/grpc-google-cloud-networkservices-v1/pom.xml +++ b/java-networkservices/grpc-google-cloud-networkservices-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-networkservices-v1 - 0.2.0-SNAPSHOT + 0.2.0 grpc-google-cloud-networkservices-v1 GRPC library for google-cloud-networkservices com.google.cloud google-cloud-networkservices-parent - 0.2.0-SNAPSHOT + 0.2.0 diff --git a/java-networkservices/pom.xml b/java-networkservices/pom.xml index 7c66fed759e2..2158e3631747 100644 --- a/java-networkservices/pom.xml +++ b/java-networkservices/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-networkservices-parent pom - 0.2.0-SNAPSHOT + 0.2.0 Google Network Services API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-networkservices - 0.2.0-SNAPSHOT + 0.2.0 com.google.api.grpc grpc-google-cloud-networkservices-v1 - 0.2.0-SNAPSHOT + 0.2.0 com.google.api.grpc proto-google-cloud-networkservices-v1 - 0.2.0-SNAPSHOT + 0.2.0 diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/pom.xml b/java-networkservices/proto-google-cloud-networkservices-v1/pom.xml index 65ee093c4825..b35d00ec1da0 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/pom.xml +++ b/java-networkservices/proto-google-cloud-networkservices-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-networkservices-v1 - 0.2.0-SNAPSHOT + 0.2.0 proto-google-cloud-networkservices-v1 Proto library for google-cloud-networkservices com.google.cloud google-cloud-networkservices-parent - 0.2.0-SNAPSHOT + 0.2.0 diff --git a/java-notebooks/CHANGELOG.md b/java-notebooks/CHANGELOG.md index 630e71e4ca15..66c1cd9dd278 100644 --- a/java-notebooks/CHANGELOG.md +++ b/java-notebooks/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 1.44.0 (2024-06-27) + +* No change + + ## 1.43.0 (None) * No change diff --git a/java-notebooks/README.md b/java-notebooks/README.md index b6a74ffef4bc..a043345fbf18 100644 --- a/java-notebooks/README.md +++ b/java-notebooks/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-notebooks - 1.43.0 + 1.44.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-notebooks:1.43.0' +implementation 'com.google.cloud:google-cloud-notebooks:1.44.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-notebooks" % "1.43.0" +libraryDependencies += "com.google.cloud" % "google-cloud-notebooks" % "1.44.0" ``` diff --git a/java-notebooks/google-cloud-notebooks-bom/pom.xml b/java-notebooks/google-cloud-notebooks-bom/pom.xml index f501d134ccc0..dd0eb0626270 100644 --- a/java-notebooks/google-cloud-notebooks-bom/pom.xml +++ b/java-notebooks/google-cloud-notebooks-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-notebooks-bom - 1.44.0-SNAPSHOT + 1.44.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,37 +27,37 @@ com.google.cloud google-cloud-notebooks - 1.44.0-SNAPSHOT + 1.44.0 com.google.api.grpc grpc-google-cloud-notebooks-v1beta1 - 0.51.0-SNAPSHOT + 0.51.0 com.google.api.grpc grpc-google-cloud-notebooks-v1 - 1.44.0-SNAPSHOT + 1.44.0 com.google.api.grpc grpc-google-cloud-notebooks-v2 - 1.44.0-SNAPSHOT + 1.44.0 com.google.api.grpc proto-google-cloud-notebooks-v1beta1 - 0.51.0-SNAPSHOT + 0.51.0 com.google.api.grpc proto-google-cloud-notebooks-v1 - 1.44.0-SNAPSHOT + 1.44.0 com.google.api.grpc proto-google-cloud-notebooks-v2 - 1.44.0-SNAPSHOT + 1.44.0 diff --git a/java-notebooks/google-cloud-notebooks/pom.xml b/java-notebooks/google-cloud-notebooks/pom.xml index f0db480712b0..c27755098478 100644 --- a/java-notebooks/google-cloud-notebooks/pom.xml +++ b/java-notebooks/google-cloud-notebooks/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-notebooks - 1.44.0-SNAPSHOT + 1.44.0 jar Google AI Platform Notebooks is a managed service that offers an integrated and secure JupyterLab environment for data scientists and machine learning developers to experiment, develop, and deploy models into production. Users can create instances running JupyterLab that come pre-installed with the latest data science and machine learning frameworks in a single click. com.google.cloud google-cloud-notebooks-parent - 1.44.0-SNAPSHOT + 1.44.0 google-cloud-notebooks diff --git a/java-notebooks/grpc-google-cloud-notebooks-v1/pom.xml b/java-notebooks/grpc-google-cloud-notebooks-v1/pom.xml index d67d5dec290a..878012893588 100644 --- a/java-notebooks/grpc-google-cloud-notebooks-v1/pom.xml +++ b/java-notebooks/grpc-google-cloud-notebooks-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-notebooks-v1 - 1.44.0-SNAPSHOT + 1.44.0 grpc-google-cloud-notebooks-v1 GRPC library for google-cloud-notebooks com.google.cloud google-cloud-notebooks-parent - 1.44.0-SNAPSHOT + 1.44.0 diff --git a/java-notebooks/grpc-google-cloud-notebooks-v1beta1/pom.xml b/java-notebooks/grpc-google-cloud-notebooks-v1beta1/pom.xml index de915aa9284c..7c7661d3a20b 100644 --- a/java-notebooks/grpc-google-cloud-notebooks-v1beta1/pom.xml +++ b/java-notebooks/grpc-google-cloud-notebooks-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-notebooks-v1beta1 - 0.51.0-SNAPSHOT + 0.51.0 grpc-google-cloud-notebooks-v1beta1 GRPC library for grpc-google-cloud-notebooks-v1beta1 com.google.cloud google-cloud-notebooks-parent - 1.44.0-SNAPSHOT + 1.44.0 diff --git a/java-notebooks/grpc-google-cloud-notebooks-v2/pom.xml b/java-notebooks/grpc-google-cloud-notebooks-v2/pom.xml index 4f52312dc90c..fd938a6786dc 100644 --- a/java-notebooks/grpc-google-cloud-notebooks-v2/pom.xml +++ b/java-notebooks/grpc-google-cloud-notebooks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-notebooks-v2 - 1.44.0-SNAPSHOT + 1.44.0 grpc-google-cloud-notebooks-v2 GRPC library for google-cloud-notebooks com.google.cloud google-cloud-notebooks-parent - 1.44.0-SNAPSHOT + 1.44.0 diff --git a/java-notebooks/pom.xml b/java-notebooks/pom.xml index 7b0245382f47..68e0c79e91d2 100644 --- a/java-notebooks/pom.xml +++ b/java-notebooks/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-notebooks-parent pom - 1.44.0-SNAPSHOT + 1.44.0 Google AI Platform Notebooks Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.cloud google-cloud-notebooks - 1.44.0-SNAPSHOT + 1.44.0 com.google.api.grpc proto-google-cloud-notebooks-v2 - 1.44.0-SNAPSHOT + 1.44.0 com.google.api.grpc grpc-google-cloud-notebooks-v2 - 1.44.0-SNAPSHOT + 1.44.0 com.google.api.grpc proto-google-cloud-notebooks-v1 - 1.44.0-SNAPSHOT + 1.44.0 com.google.api.grpc grpc-google-cloud-notebooks-v1 - 1.44.0-SNAPSHOT + 1.44.0 com.google.api.grpc proto-google-cloud-notebooks-v1beta1 - 0.51.0-SNAPSHOT + 0.51.0 com.google.api.grpc grpc-google-cloud-notebooks-v1beta1 - 0.51.0-SNAPSHOT + 0.51.0 diff --git a/java-notebooks/proto-google-cloud-notebooks-v1/pom.xml b/java-notebooks/proto-google-cloud-notebooks-v1/pom.xml index d54e337be04e..a477b00ac749 100644 --- a/java-notebooks/proto-google-cloud-notebooks-v1/pom.xml +++ b/java-notebooks/proto-google-cloud-notebooks-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-notebooks-v1 - 1.44.0-SNAPSHOT + 1.44.0 proto-google-cloud-notebooks-v1 Proto library for google-cloud-notebooks com.google.cloud google-cloud-notebooks-parent - 1.44.0-SNAPSHOT + 1.44.0 diff --git a/java-notebooks/proto-google-cloud-notebooks-v1beta1/pom.xml b/java-notebooks/proto-google-cloud-notebooks-v1beta1/pom.xml index 86f26a45a129..9e76f50c38ab 100644 --- a/java-notebooks/proto-google-cloud-notebooks-v1beta1/pom.xml +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-notebooks-v1beta1 - 0.51.0-SNAPSHOT + 0.51.0 proto-google-cloud-notebooks-v1beta1 PROTO library for proto-google-cloud-notebooks-v1beta1 com.google.cloud google-cloud-notebooks-parent - 1.44.0-SNAPSHOT + 1.44.0 diff --git a/java-notebooks/proto-google-cloud-notebooks-v2/pom.xml b/java-notebooks/proto-google-cloud-notebooks-v2/pom.xml index a402f0ecb16e..2c0277a3e232 100644 --- a/java-notebooks/proto-google-cloud-notebooks-v2/pom.xml +++ b/java-notebooks/proto-google-cloud-notebooks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-notebooks-v2 - 1.44.0-SNAPSHOT + 1.44.0 proto-google-cloud-notebooks-v2 Proto library for google-cloud-notebooks com.google.cloud google-cloud-notebooks-parent - 1.44.0-SNAPSHOT + 1.44.0 diff --git a/java-notification/CHANGELOG.md b/java-notification/CHANGELOG.md index 5e978cca1c7a..25f25f1df592 100644 --- a/java-notification/CHANGELOG.md +++ b/java-notification/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.164.0-beta (2024-06-27) + +* No change + + ## 0.163.0-beta (None) * No change diff --git a/java-notification/README.md b/java-notification/README.md index 5fe9293cc9ae..8e6587629250 100644 --- a/java-notification/README.md +++ b/java-notification/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-notification - 0.163.0-beta + 0.164.0-beta ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-notification:0.163.0-beta' +implementation 'com.google.cloud:google-cloud-notification:0.164.0-beta' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-notification" % "0.163.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-notification" % "0.164.0-beta" ``` diff --git a/java-notification/pom.xml b/java-notification/pom.xml index b6fd26c9fb0c..ecc6625f3e6a 100644 --- a/java-notification/pom.xml +++ b/java-notification/pom.xml @@ -5,7 +5,7 @@ 4.0.0 com.google.cloud google-cloud-notification - 0.164.0-beta-SNAPSHOT + 0.164.0-beta jar Google Cloud Pub/Sub Notifications for GCS @@ -15,7 +15,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml diff --git a/java-optimization/CHANGELOG.md b/java-optimization/CHANGELOG.md index 46498eb52fa4..d2ccfec24a78 100644 --- a/java-optimization/CHANGELOG.md +++ b/java-optimization/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 1.44.0 (2024-06-27) + +* No change + + ## 1.43.0 (None) * No change diff --git a/java-optimization/README.md b/java-optimization/README.md index 2bcd408e5257..3d47acd55f56 100644 --- a/java-optimization/README.md +++ b/java-optimization/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-optimization - 1.43.0 + 1.44.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-optimization:1.43.0' +implementation 'com.google.cloud:google-cloud-optimization:1.44.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-optimization" % "1.43.0" +libraryDependencies += "com.google.cloud" % "google-cloud-optimization" % "1.44.0" ``` diff --git a/java-optimization/google-cloud-optimization-bom/pom.xml b/java-optimization/google-cloud-optimization-bom/pom.xml index 11b7b61c554b..2ea5174b7e9f 100644 --- a/java-optimization/google-cloud-optimization-bom/pom.xml +++ b/java-optimization/google-cloud-optimization-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-optimization-bom - 1.44.0-SNAPSHOT + 1.44.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-optimization - 1.44.0-SNAPSHOT + 1.44.0 com.google.api.grpc grpc-google-cloud-optimization-v1 - 1.44.0-SNAPSHOT + 1.44.0 com.google.api.grpc proto-google-cloud-optimization-v1 - 1.44.0-SNAPSHOT + 1.44.0 diff --git a/java-optimization/google-cloud-optimization/pom.xml b/java-optimization/google-cloud-optimization/pom.xml index fe8c45857466..e2f88f1d7944 100644 --- a/java-optimization/google-cloud-optimization/pom.xml +++ b/java-optimization/google-cloud-optimization/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-optimization - 1.44.0-SNAPSHOT + 1.44.0 jar Google Cloud Fleet Routing Cloud Fleet Routing is a managed routing service that takes your list of orders, vehicles, constraints, and objectives and returns the most efficient plan for your entire fleet in near real-time. com.google.cloud google-cloud-optimization-parent - 1.44.0-SNAPSHOT + 1.44.0 google-cloud-optimization diff --git a/java-optimization/grpc-google-cloud-optimization-v1/pom.xml b/java-optimization/grpc-google-cloud-optimization-v1/pom.xml index cbd57af5bb05..3974ed9d9440 100644 --- a/java-optimization/grpc-google-cloud-optimization-v1/pom.xml +++ b/java-optimization/grpc-google-cloud-optimization-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-optimization-v1 - 1.44.0-SNAPSHOT + 1.44.0 grpc-google-cloud-optimization-v1 GRPC library for google-cloud-optimization com.google.cloud google-cloud-optimization-parent - 1.44.0-SNAPSHOT + 1.44.0 diff --git a/java-optimization/pom.xml b/java-optimization/pom.xml index c4735617120a..9c90e461a0aa 100644 --- a/java-optimization/pom.xml +++ b/java-optimization/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-optimization-parent pom - 1.44.0-SNAPSHOT + 1.44.0 Google Cloud Fleet Routing Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-optimization - 1.44.0-SNAPSHOT + 1.44.0 com.google.api.grpc grpc-google-cloud-optimization-v1 - 1.44.0-SNAPSHOT + 1.44.0 com.google.api.grpc proto-google-cloud-optimization-v1 - 1.44.0-SNAPSHOT + 1.44.0 diff --git a/java-optimization/proto-google-cloud-optimization-v1/pom.xml b/java-optimization/proto-google-cloud-optimization-v1/pom.xml index 508720502592..ec6e973126ea 100644 --- a/java-optimization/proto-google-cloud-optimization-v1/pom.xml +++ b/java-optimization/proto-google-cloud-optimization-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-optimization-v1 - 1.44.0-SNAPSHOT + 1.44.0 proto-google-cloud-optimization-v1 Proto library for google-cloud-optimization com.google.cloud google-cloud-optimization-parent - 1.44.0-SNAPSHOT + 1.44.0 diff --git a/java-orchestration-airflow/CHANGELOG.md b/java-orchestration-airflow/CHANGELOG.md index baeab199c7e1..78a099b9ae50 100644 --- a/java-orchestration-airflow/CHANGELOG.md +++ b/java-orchestration-airflow/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 1.46.0 (2024-06-27) + +* No change + + ## 1.45.0 (None) * No change diff --git a/java-orchestration-airflow/README.md b/java-orchestration-airflow/README.md index c0fffd343486..2783dcdde7b4 100644 --- a/java-orchestration-airflow/README.md +++ b/java-orchestration-airflow/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-orchestration-airflow - 1.45.0 + 1.46.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-orchestration-airflow:1.45.0' +implementation 'com.google.cloud:google-cloud-orchestration-airflow:1.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-orchestration-airflow" % "1.45.0" +libraryDependencies += "com.google.cloud" % "google-cloud-orchestration-airflow" % "1.46.0" ``` diff --git a/java-orchestration-airflow/google-cloud-orchestration-airflow-bom/pom.xml b/java-orchestration-airflow/google-cloud-orchestration-airflow-bom/pom.xml index ab60cb54510b..54c8420bb013 100644 --- a/java-orchestration-airflow/google-cloud-orchestration-airflow-bom/pom.xml +++ b/java-orchestration-airflow/google-cloud-orchestration-airflow-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-orchestration-airflow-bom - 1.46.0-SNAPSHOT + 1.46.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-orchestration-airflow - 1.46.0-SNAPSHOT + 1.46.0 com.google.api.grpc grpc-google-cloud-orchestration-airflow-v1 - 1.46.0-SNAPSHOT + 1.46.0 com.google.api.grpc grpc-google-cloud-orchestration-airflow-v1beta1 - 0.49.0-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-orchestration-airflow-v1 - 1.46.0-SNAPSHOT + 1.46.0 com.google.api.grpc proto-google-cloud-orchestration-airflow-v1beta1 - 0.49.0-SNAPSHOT + 0.49.0 diff --git a/java-orchestration-airflow/google-cloud-orchestration-airflow/pom.xml b/java-orchestration-airflow/google-cloud-orchestration-airflow/pom.xml index 47cf4950e4b1..8b07b8a917c8 100644 --- a/java-orchestration-airflow/google-cloud-orchestration-airflow/pom.xml +++ b/java-orchestration-airflow/google-cloud-orchestration-airflow/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-orchestration-airflow - 1.46.0-SNAPSHOT + 1.46.0 jar Google Cloud Composer Cloud Composer is a managed Apache Airflow service that helps you create, schedule, monitor and manage workflows. Cloud Composer automation helps you create Airflow environments quickly and use Airflow-native tools, such as the powerful Airflow web interface and command line tools, so you can focus on your workflows and not your infrastructure. com.google.cloud google-cloud-orchestration-airflow-parent - 1.46.0-SNAPSHOT + 1.46.0 google-cloud-orchestration-airflow diff --git a/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1/pom.xml b/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1/pom.xml index c84416840931..94a4ed01ffbd 100644 --- a/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1/pom.xml +++ b/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-orchestration-airflow-v1 - 1.46.0-SNAPSHOT + 1.46.0 grpc-google-cloud-orchestration-airflow-v1 GRPC library for google-cloud-orchestration-airflow com.google.cloud google-cloud-orchestration-airflow-parent - 1.46.0-SNAPSHOT + 1.46.0 diff --git a/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1beta1/pom.xml b/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1beta1/pom.xml index 308b46a8dc99..1b1944c11507 100644 --- a/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1beta1/pom.xml +++ b/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-orchestration-airflow-v1beta1 - 0.49.0-SNAPSHOT + 0.49.0 grpc-google-cloud-orchestration-airflow-v1beta1 GRPC library for google-cloud-orchestration-airflow com.google.cloud google-cloud-orchestration-airflow-parent - 1.46.0-SNAPSHOT + 1.46.0 diff --git a/java-orchestration-airflow/pom.xml b/java-orchestration-airflow/pom.xml index dcd4c6eca23a..9b857b375c6f 100644 --- a/java-orchestration-airflow/pom.xml +++ b/java-orchestration-airflow/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-orchestration-airflow-parent pom - 1.46.0-SNAPSHOT + 1.46.0 Google Cloud Composer Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-orchestration-airflow - 1.46.0-SNAPSHOT + 1.46.0 com.google.api.grpc grpc-google-cloud-orchestration-airflow-v1 - 1.46.0-SNAPSHOT + 1.46.0 com.google.api.grpc grpc-google-cloud-orchestration-airflow-v1beta1 - 0.49.0-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-orchestration-airflow-v1 - 1.46.0-SNAPSHOT + 1.46.0 com.google.api.grpc proto-google-cloud-orchestration-airflow-v1beta1 - 0.49.0-SNAPSHOT + 0.49.0 diff --git a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/pom.xml b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/pom.xml index 21fae9ec0d40..b7a471ef1f7b 100644 --- a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/pom.xml +++ b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-orchestration-airflow-v1 - 1.46.0-SNAPSHOT + 1.46.0 proto-google-cloud-orchestration-airflow-v1 Proto library for google-cloud-orchestration-airflow com.google.cloud google-cloud-orchestration-airflow-parent - 1.46.0-SNAPSHOT + 1.46.0 diff --git a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/pom.xml b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/pom.xml index 750fa68e12d8..fff18c42dc48 100644 --- a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/pom.xml +++ b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-orchestration-airflow-v1beta1 - 0.49.0-SNAPSHOT + 0.49.0 proto-google-cloud-orchestration-airflow-v1beta1 Proto library for google-cloud-orchestration-airflow com.google.cloud google-cloud-orchestration-airflow-parent - 1.46.0-SNAPSHOT + 1.46.0 diff --git a/java-orgpolicy/CHANGELOG.md b/java-orgpolicy/CHANGELOG.md index 55d6e3223924..5645d4dd8537 100644 --- a/java-orgpolicy/CHANGELOG.md +++ b/java-orgpolicy/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.46.0 (2024-06-27) + +* No change + + ## 2.45.0 (None) * No change diff --git a/java-orgpolicy/README.md b/java-orgpolicy/README.md index 1d5bb770e89a..5b91c6acd437 100644 --- a/java-orgpolicy/README.md +++ b/java-orgpolicy/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-orgpolicy - 2.45.0 + 2.46.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-orgpolicy:2.45.0' +implementation 'com.google.cloud:google-cloud-orgpolicy:2.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-orgpolicy" % "2.45.0" +libraryDependencies += "com.google.cloud" % "google-cloud-orgpolicy" % "2.46.0" ``` diff --git a/java-orgpolicy/google-cloud-orgpolicy-bom/pom.xml b/java-orgpolicy/google-cloud-orgpolicy-bom/pom.xml index 94b67827f9e3..2867089db128 100644 --- a/java-orgpolicy/google-cloud-orgpolicy-bom/pom.xml +++ b/java-orgpolicy/google-cloud-orgpolicy-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-orgpolicy-bom - 2.46.0-SNAPSHOT + 2.46.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -26,22 +26,22 @@ com.google.cloud google-cloud-orgpolicy - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc grpc-google-cloud-orgpolicy-v2 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc proto-google-cloud-orgpolicy-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc proto-google-cloud-orgpolicy-v2 - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-orgpolicy/google-cloud-orgpolicy/pom.xml b/java-orgpolicy/google-cloud-orgpolicy/pom.xml index 70c2eddebe5e..287f4dd26ca7 100644 --- a/java-orgpolicy/google-cloud-orgpolicy/pom.xml +++ b/java-orgpolicy/google-cloud-orgpolicy/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-orgpolicy - 2.46.0-SNAPSHOT + 2.46.0 Google Cloud Org Policy The Org Policy API allows users to configure governance rules on their GCP resources across the Cloud Resource Hierarchy. @@ -11,7 +11,7 @@ com.google.cloud google-cloud-orgpolicy-parent - 2.46.0-SNAPSHOT + 2.46.0 google-cloud-orgpolicy diff --git a/java-orgpolicy/grpc-google-cloud-orgpolicy-v2/pom.xml b/java-orgpolicy/grpc-google-cloud-orgpolicy-v2/pom.xml index ef388b5baae9..ce39114b2f59 100644 --- a/java-orgpolicy/grpc-google-cloud-orgpolicy-v2/pom.xml +++ b/java-orgpolicy/grpc-google-cloud-orgpolicy-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-orgpolicy-v2 - 2.46.0-SNAPSHOT + 2.46.0 grpc-google-cloud-orgpolicy-v2 GRPC library for grpc-google-cloud-orgpolicy-v2 com.google.cloud google-cloud-orgpolicy-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-orgpolicy/pom.xml b/java-orgpolicy/pom.xml index d17494cb0d8e..967363d5d567 100644 --- a/java-orgpolicy/pom.xml +++ b/java-orgpolicy/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-orgpolicy-parent pom - 2.46.0-SNAPSHOT + 2.46.0 Google Cloud Org Policy Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,22 +29,22 @@ com.google.api.grpc google-cloud-orgpolicy - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc proto-google-cloud-orgpolicy-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc proto-google-cloud-orgpolicy-v2 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc grpc-google-cloud-orgpolicy-v2 - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-orgpolicy/proto-google-cloud-orgpolicy-v1/pom.xml b/java-orgpolicy/proto-google-cloud-orgpolicy-v1/pom.xml index 05084c9fc222..4ff2edd18f9c 100644 --- a/java-orgpolicy/proto-google-cloud-orgpolicy-v1/pom.xml +++ b/java-orgpolicy/proto-google-cloud-orgpolicy-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-orgpolicy-v1 - 2.46.0-SNAPSHOT + 2.46.0 proto-google-cloud-orgpolicy-v1 PROTO library for proto-google-cloud-orgpolicy-v1 com.google.cloud google-cloud-orgpolicy-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-orgpolicy/proto-google-cloud-orgpolicy-v2/pom.xml b/java-orgpolicy/proto-google-cloud-orgpolicy-v2/pom.xml index de01a1a20a41..83057026b430 100644 --- a/java-orgpolicy/proto-google-cloud-orgpolicy-v2/pom.xml +++ b/java-orgpolicy/proto-google-cloud-orgpolicy-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-orgpolicy-v2 - 2.46.0-SNAPSHOT + 2.46.0 proto-google-cloud-orgpolicy-v2 PROTO library for proto-google-cloud-orgpolicy-v2 com.google.cloud google-cloud-orgpolicy-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-os-config/CHANGELOG.md b/java-os-config/CHANGELOG.md index 83dca5d5b8b0..24f7bdf5b76c 100644 --- a/java-os-config/CHANGELOG.md +++ b/java-os-config/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.48.0 (2024-06-27) + +* No change + + ## 2.47.0 (None) * No change diff --git a/java-os-config/README.md b/java-os-config/README.md index c52740944b3f..a2de9312a061 100644 --- a/java-os-config/README.md +++ b/java-os-config/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-os-config - 2.47.0 + 2.48.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-os-config:2.47.0' +implementation 'com.google.cloud:google-cloud-os-config:2.48.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-os-config" % "2.47.0" +libraryDependencies += "com.google.cloud" % "google-cloud-os-config" % "2.48.0" ``` diff --git a/java-os-config/google-cloud-os-config-bom/pom.xml b/java-os-config/google-cloud-os-config-bom/pom.xml index 2c6decfdf487..b7c222cf26ee 100644 --- a/java-os-config/google-cloud-os-config-bom/pom.xml +++ b/java-os-config/google-cloud-os-config-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-os-config-bom - 2.48.0-SNAPSHOT + 2.48.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -23,37 +23,37 @@ com.google.cloud google-cloud-os-config - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc grpc-google-cloud-os-config-v1 - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc grpc-google-cloud-os-config-v1beta - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc grpc-google-cloud-os-config-v1alpha - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc proto-google-cloud-os-config-v1 - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc proto-google-cloud-os-config-v1alpha - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc proto-google-cloud-os-config-v1beta - 2.48.0-SNAPSHOT + 2.48.0 diff --git a/java-os-config/google-cloud-os-config/pom.xml b/java-os-config/google-cloud-os-config/pom.xml index b371be0100ac..432863d89b75 100644 --- a/java-os-config/google-cloud-os-config/pom.xml +++ b/java-os-config/google-cloud-os-config/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-os-config - 2.48.0-SNAPSHOT + 2.48.0 jar Google OS Config API provides OS management tools that can be used for patch management, patch compliance, and configuration management on VM instances. com.google.cloud google-cloud-os-config-parent - 2.48.0-SNAPSHOT + 2.48.0 google-cloud-os-config diff --git a/java-os-config/grpc-google-cloud-os-config-v1/pom.xml b/java-os-config/grpc-google-cloud-os-config-v1/pom.xml index a9faede640af..0429c03e5586 100644 --- a/java-os-config/grpc-google-cloud-os-config-v1/pom.xml +++ b/java-os-config/grpc-google-cloud-os-config-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-os-config-v1 - 2.48.0-SNAPSHOT + 2.48.0 grpc-google-cloud-os-config-v1 GRPC library for grpc-google-cloud-os-config-v1 com.google.cloud google-cloud-os-config-parent - 2.48.0-SNAPSHOT + 2.48.0 diff --git a/java-os-config/grpc-google-cloud-os-config-v1alpha/pom.xml b/java-os-config/grpc-google-cloud-os-config-v1alpha/pom.xml index e2f82cacc504..37a678a99db5 100644 --- a/java-os-config/grpc-google-cloud-os-config-v1alpha/pom.xml +++ b/java-os-config/grpc-google-cloud-os-config-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-os-config-v1alpha - 2.48.0-SNAPSHOT + 2.48.0 grpc-google-cloud-os-config-v1alpha GRPC library for google-cloud-os-config com.google.cloud google-cloud-os-config-parent - 2.48.0-SNAPSHOT + 2.48.0 diff --git a/java-os-config/grpc-google-cloud-os-config-v1beta/pom.xml b/java-os-config/grpc-google-cloud-os-config-v1beta/pom.xml index 6d8d31a8e5f3..04098003895f 100644 --- a/java-os-config/grpc-google-cloud-os-config-v1beta/pom.xml +++ b/java-os-config/grpc-google-cloud-os-config-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-os-config-v1beta - 2.48.0-SNAPSHOT + 2.48.0 grpc-google-cloud-os-config-v1beta GRPC library for google-cloud-os-config com.google.cloud google-cloud-os-config-parent - 2.48.0-SNAPSHOT + 2.48.0 diff --git a/java-os-config/pom.xml b/java-os-config/pom.xml index f35795eafd86..cc72561bf7e8 100644 --- a/java-os-config/pom.xml +++ b/java-os-config/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-os-config-parent pom - 2.48.0-SNAPSHOT + 2.48.0 Google OS Config API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.cloud google-cloud-os-config - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc proto-google-cloud-os-config-v1beta - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc proto-google-cloud-os-config-v1alpha - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc grpc-google-cloud-os-config-v1alpha - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc grpc-google-cloud-os-config-v1beta - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc proto-google-cloud-os-config-v1 - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc grpc-google-cloud-os-config-v1 - 2.48.0-SNAPSHOT + 2.48.0 diff --git a/java-os-config/proto-google-cloud-os-config-v1/pom.xml b/java-os-config/proto-google-cloud-os-config-v1/pom.xml index 464ea8f010c9..c0698773eadf 100644 --- a/java-os-config/proto-google-cloud-os-config-v1/pom.xml +++ b/java-os-config/proto-google-cloud-os-config-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-os-config-v1 - 2.48.0-SNAPSHOT + 2.48.0 proto-google-cloud-os-config-v1 PROTO library for proto-google-cloud-os-config-v1 com.google.cloud google-cloud-os-config-parent - 2.48.0-SNAPSHOT + 2.48.0 diff --git a/java-os-config/proto-google-cloud-os-config-v1alpha/pom.xml b/java-os-config/proto-google-cloud-os-config-v1alpha/pom.xml index 3f92ba08559c..06d407db949a 100644 --- a/java-os-config/proto-google-cloud-os-config-v1alpha/pom.xml +++ b/java-os-config/proto-google-cloud-os-config-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-os-config-v1alpha - 2.48.0-SNAPSHOT + 2.48.0 proto-google-cloud-os-config-v1alpha Proto library for google-cloud-os-config com.google.cloud google-cloud-os-config-parent - 2.48.0-SNAPSHOT + 2.48.0 diff --git a/java-os-config/proto-google-cloud-os-config-v1beta/pom.xml b/java-os-config/proto-google-cloud-os-config-v1beta/pom.xml index 6391c77a96d5..086d709770e3 100644 --- a/java-os-config/proto-google-cloud-os-config-v1beta/pom.xml +++ b/java-os-config/proto-google-cloud-os-config-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-os-config-v1beta - 2.48.0-SNAPSHOT + 2.48.0 proto-google-cloud-os-config-v1beta Proto library for google-cloud-os-config com.google.cloud google-cloud-os-config-parent - 2.48.0-SNAPSHOT + 2.48.0 diff --git a/java-os-login/CHANGELOG.md b/java-os-login/CHANGELOG.md index 66b7ef985706..0274971afa55 100644 --- a/java-os-login/CHANGELOG.md +++ b/java-os-login/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.45.0 (2024-06-27) + +* No change + + ## 2.44.0 (None) * No change diff --git a/java-os-login/README.md b/java-os-login/README.md index 62fde30adb12..60b5b871ce0b 100644 --- a/java-os-login/README.md +++ b/java-os-login/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-os-login - 2.44.0 + 2.45.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-os-login:2.44.0' +implementation 'com.google.cloud:google-cloud-os-login:2.45.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-os-login" % "2.44.0" +libraryDependencies += "com.google.cloud" % "google-cloud-os-login" % "2.45.0" ``` diff --git a/java-os-login/google-cloud-os-login-bom/pom.xml b/java-os-login/google-cloud-os-login-bom/pom.xml index 405addc59e4f..ab71cd908843 100644 --- a/java-os-login/google-cloud-os-login-bom/pom.xml +++ b/java-os-login/google-cloud-os-login-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-os-login-bom - 2.45.0-SNAPSHOT + 2.45.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-os-login - 2.45.0-SNAPSHOT + 2.45.0 com.google.api.grpc grpc-google-cloud-os-login-v1 - 2.45.0-SNAPSHOT + 2.45.0 com.google.api.grpc proto-google-cloud-os-login-v1 - 2.45.0-SNAPSHOT + 2.45.0 diff --git a/java-os-login/google-cloud-os-login/pom.xml b/java-os-login/google-cloud-os-login/pom.xml index bdb2e37af5b3..5128d13225d3 100644 --- a/java-os-login/google-cloud-os-login/pom.xml +++ b/java-os-login/google-cloud-os-login/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-os-login - 2.45.0-SNAPSHOT + 2.45.0 jar Google Cloud OS Login Java idiomatic client for Google Cloud OS Login com.google.cloud google-cloud-os-login-parent - 2.45.0-SNAPSHOT + 2.45.0 google-cloud-os-login diff --git a/java-os-login/grpc-google-cloud-os-login-v1/pom.xml b/java-os-login/grpc-google-cloud-os-login-v1/pom.xml index fdf99af12563..65730eabf427 100644 --- a/java-os-login/grpc-google-cloud-os-login-v1/pom.xml +++ b/java-os-login/grpc-google-cloud-os-login-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-os-login-v1 - 2.45.0-SNAPSHOT + 2.45.0 grpc-google-cloud-os-login-v1 GRPC library for grpc-google-cloud-os-login-v1 com.google.cloud google-cloud-os-login-parent - 2.45.0-SNAPSHOT + 2.45.0 diff --git a/java-os-login/pom.xml b/java-os-login/pom.xml index 5f3b825faa3e..991cc75b2cd7 100644 --- a/java-os-login/pom.xml +++ b/java-os-login/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-os-login-parent pom - 2.45.0-SNAPSHOT + 2.45.0 Google Cloud OS Login Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.api.grpc proto-google-cloud-os-login-v1 - 2.45.0-SNAPSHOT + 2.45.0 com.google.api.grpc grpc-google-cloud-os-login-v1 - 2.45.0-SNAPSHOT + 2.45.0 com.google.cloud google-cloud-os-login - 2.45.0-SNAPSHOT + 2.45.0 diff --git a/java-os-login/proto-google-cloud-os-login-v1/pom.xml b/java-os-login/proto-google-cloud-os-login-v1/pom.xml index 82198a6b798e..2e4591adbfc1 100644 --- a/java-os-login/proto-google-cloud-os-login-v1/pom.xml +++ b/java-os-login/proto-google-cloud-os-login-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-os-login-v1 - 2.45.0-SNAPSHOT + 2.45.0 proto-google-cloud-os-login-v1 PROTO library for proto-google-cloud-os-login-v1 com.google.cloud google-cloud-os-login-parent - 2.45.0-SNAPSHOT + 2.45.0 diff --git a/java-parallelstore/CHANGELOG.md b/java-parallelstore/CHANGELOG.md index 739d833b204b..c48bc93f8216 100644 --- a/java-parallelstore/CHANGELOG.md +++ b/java-parallelstore/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.9.0 (2024-06-27) + +* No change + + ## 0.8.0 (None) * No change diff --git a/java-parallelstore/README.md b/java-parallelstore/README.md index 46bef35aed30..89047f2359ea 100644 --- a/java-parallelstore/README.md +++ b/java-parallelstore/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-parallelstore - 0.8.0 + 0.9.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-parallelstore:0.8.0' +implementation 'com.google.cloud:google-cloud-parallelstore:0.9.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-parallelstore" % "0.8.0" +libraryDependencies += "com.google.cloud" % "google-cloud-parallelstore" % "0.9.0" ``` diff --git a/java-parallelstore/google-cloud-parallelstore-bom/pom.xml b/java-parallelstore/google-cloud-parallelstore-bom/pom.xml index df5141740935..31bd58ea183a 100644 --- a/java-parallelstore/google-cloud-parallelstore-bom/pom.xml +++ b/java-parallelstore/google-cloud-parallelstore-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-parallelstore-bom - 0.9.0-SNAPSHOT + 0.9.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-parallelstore - 0.9.0-SNAPSHOT + 0.9.0 com.google.api.grpc grpc-google-cloud-parallelstore-v1beta - 0.9.0-SNAPSHOT + 0.9.0 com.google.api.grpc proto-google-cloud-parallelstore-v1beta - 0.9.0-SNAPSHOT + 0.9.0 diff --git a/java-parallelstore/google-cloud-parallelstore/pom.xml b/java-parallelstore/google-cloud-parallelstore/pom.xml index f6745a4988cb..8d74e66e78e6 100644 --- a/java-parallelstore/google-cloud-parallelstore/pom.xml +++ b/java-parallelstore/google-cloud-parallelstore/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-parallelstore - 0.9.0-SNAPSHOT + 0.9.0 jar Google Parallelstore API Parallelstore API Parallelstore is based on Intel DAOS and delivers up to 6.3x greater read throughput performance compared to competitive Lustre scratch offerings. com.google.cloud google-cloud-parallelstore-parent - 0.9.0-SNAPSHOT + 0.9.0 google-cloud-parallelstore diff --git a/java-parallelstore/grpc-google-cloud-parallelstore-v1beta/pom.xml b/java-parallelstore/grpc-google-cloud-parallelstore-v1beta/pom.xml index d70ea6364c60..55351ede744c 100644 --- a/java-parallelstore/grpc-google-cloud-parallelstore-v1beta/pom.xml +++ b/java-parallelstore/grpc-google-cloud-parallelstore-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-parallelstore-v1beta - 0.9.0-SNAPSHOT + 0.9.0 grpc-google-cloud-parallelstore-v1beta GRPC library for google-cloud-parallelstore com.google.cloud google-cloud-parallelstore-parent - 0.9.0-SNAPSHOT + 0.9.0 diff --git a/java-parallelstore/pom.xml b/java-parallelstore/pom.xml index 452a8166b074..a72b43b58a74 100644 --- a/java-parallelstore/pom.xml +++ b/java-parallelstore/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-parallelstore-parent pom - 0.9.0-SNAPSHOT + 0.9.0 Google Parallelstore API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-parallelstore - 0.9.0-SNAPSHOT + 0.9.0 com.google.api.grpc grpc-google-cloud-parallelstore-v1beta - 0.9.0-SNAPSHOT + 0.9.0 com.google.api.grpc proto-google-cloud-parallelstore-v1beta - 0.9.0-SNAPSHOT + 0.9.0 diff --git a/java-parallelstore/proto-google-cloud-parallelstore-v1beta/pom.xml b/java-parallelstore/proto-google-cloud-parallelstore-v1beta/pom.xml index 38e45dadfc66..7266e2c06bc5 100644 --- a/java-parallelstore/proto-google-cloud-parallelstore-v1beta/pom.xml +++ b/java-parallelstore/proto-google-cloud-parallelstore-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-parallelstore-v1beta - 0.9.0-SNAPSHOT + 0.9.0 proto-google-cloud-parallelstore-v1beta Proto library for google-cloud-parallelstore com.google.cloud google-cloud-parallelstore-parent - 0.9.0-SNAPSHOT + 0.9.0 diff --git a/java-phishingprotection/CHANGELOG.md b/java-phishingprotection/CHANGELOG.md index c3d224731769..c45f87ee9626 100644 --- a/java-phishingprotection/CHANGELOG.md +++ b/java-phishingprotection/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.77.0 (2024-06-27) + +* No change + + ## 0.76.0 (None) * No change diff --git a/java-phishingprotection/README.md b/java-phishingprotection/README.md index e3f5f7105d24..c9669a235976 100644 --- a/java-phishingprotection/README.md +++ b/java-phishingprotection/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-phishingprotection - 0.76.0 + 0.77.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-phishingprotection:0.76.0' +implementation 'com.google.cloud:google-cloud-phishingprotection:0.77.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-phishingprotection" % "0.76.0" +libraryDependencies += "com.google.cloud" % "google-cloud-phishingprotection" % "0.77.0" ``` diff --git a/java-phishingprotection/google-cloud-phishingprotection-bom/pom.xml b/java-phishingprotection/google-cloud-phishingprotection-bom/pom.xml index 0414207b1e77..d706b7aad406 100644 --- a/java-phishingprotection/google-cloud-phishingprotection-bom/pom.xml +++ b/java-phishingprotection/google-cloud-phishingprotection-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-phishingprotection-bom - 0.77.0-SNAPSHOT + 0.77.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-phishingprotection - 0.77.0-SNAPSHOT + 0.77.0 com.google.api.grpc grpc-google-cloud-phishingprotection-v1beta1 - 0.77.0-SNAPSHOT + 0.77.0 com.google.api.grpc proto-google-cloud-phishingprotection-v1beta1 - 0.77.0-SNAPSHOT + 0.77.0 diff --git a/java-phishingprotection/google-cloud-phishingprotection/pom.xml b/java-phishingprotection/google-cloud-phishingprotection/pom.xml index 43c1e696f37d..a4e2704ef948 100644 --- a/java-phishingprotection/google-cloud-phishingprotection/pom.xml +++ b/java-phishingprotection/google-cloud-phishingprotection/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-phishingprotection - 0.77.0-SNAPSHOT + 0.77.0 jar Google Cloud Phishing Protection Java idiomatic client for Google Cloud Phishing Protection com.google.cloud google-cloud-phishingprotection-parent - 0.77.0-SNAPSHOT + 0.77.0 google-cloud-phishingprotection diff --git a/java-phishingprotection/grpc-google-cloud-phishingprotection-v1beta1/pom.xml b/java-phishingprotection/grpc-google-cloud-phishingprotection-v1beta1/pom.xml index 7a1d0d18f6d4..1d90c5736afd 100644 --- a/java-phishingprotection/grpc-google-cloud-phishingprotection-v1beta1/pom.xml +++ b/java-phishingprotection/grpc-google-cloud-phishingprotection-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-phishingprotection-v1beta1 - 0.77.0-SNAPSHOT + 0.77.0 grpc-google-cloud-phishingprotection-v1beta1 GRPC library for grpc-google-cloud-phishingprotection-v1beta1 com.google.cloud google-cloud-phishingprotection-parent - 0.77.0-SNAPSHOT + 0.77.0 diff --git a/java-phishingprotection/pom.xml b/java-phishingprotection/pom.xml index c2d58dfc78e1..56b14fa4b323 100644 --- a/java-phishingprotection/pom.xml +++ b/java-phishingprotection/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-phishingprotection-parent pom - 0.77.0-SNAPSHOT + 0.77.0 Google Cloud Phishing Protection Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.api.grpc proto-google-cloud-phishingprotection-v1beta1 - 0.77.0-SNAPSHOT + 0.77.0 com.google.api.grpc grpc-google-cloud-phishingprotection-v1beta1 - 0.77.0-SNAPSHOT + 0.77.0 com.google.cloud google-cloud-phishingprotection - 0.77.0-SNAPSHOT + 0.77.0 diff --git a/java-phishingprotection/proto-google-cloud-phishingprotection-v1beta1/pom.xml b/java-phishingprotection/proto-google-cloud-phishingprotection-v1beta1/pom.xml index 74809b67f32a..084c6cc1d0b0 100644 --- a/java-phishingprotection/proto-google-cloud-phishingprotection-v1beta1/pom.xml +++ b/java-phishingprotection/proto-google-cloud-phishingprotection-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-phishingprotection-v1beta1 - 0.77.0-SNAPSHOT + 0.77.0 proto-google-cloud-phishingprotection-v1beta1 PROTO library for proto-google-cloud-phishingprotection-v1beta1 com.google.cloud google-cloud-phishingprotection-parent - 0.77.0-SNAPSHOT + 0.77.0 diff --git a/java-policy-troubleshooter/CHANGELOG.md b/java-policy-troubleshooter/CHANGELOG.md index fd5f918745ad..6f1ed0f75d8a 100644 --- a/java-policy-troubleshooter/CHANGELOG.md +++ b/java-policy-troubleshooter/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 1.45.0 (2024-06-27) + +* No change + + ## 1.44.0 (None) * No change diff --git a/java-policy-troubleshooter/README.md b/java-policy-troubleshooter/README.md index 8649beb8b388..bc05862891cb 100644 --- a/java-policy-troubleshooter/README.md +++ b/java-policy-troubleshooter/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-policy-troubleshooter - 1.44.0 + 1.45.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-policy-troubleshooter:1.44.0' +implementation 'com.google.cloud:google-cloud-policy-troubleshooter:1.45.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-policy-troubleshooter" % "1.44.0" +libraryDependencies += "com.google.cloud" % "google-cloud-policy-troubleshooter" % "1.45.0" ``` diff --git a/java-policy-troubleshooter/google-cloud-policy-troubleshooter-bom/pom.xml b/java-policy-troubleshooter/google-cloud-policy-troubleshooter-bom/pom.xml index df6384163e3f..cb9199e93c9b 100644 --- a/java-policy-troubleshooter/google-cloud-policy-troubleshooter-bom/pom.xml +++ b/java-policy-troubleshooter/google-cloud-policy-troubleshooter-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-policy-troubleshooter-bom - 1.45.0-SNAPSHOT + 1.45.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-policy-troubleshooter - 1.45.0-SNAPSHOT + 1.45.0 com.google.api.grpc grpc-google-cloud-policy-troubleshooter-v1 - 1.45.0-SNAPSHOT + 1.45.0 com.google.api.grpc grpc-google-cloud-policy-troubleshooter-v3 - 1.45.0-SNAPSHOT + 1.45.0 com.google.api.grpc proto-google-cloud-policy-troubleshooter-v1 - 1.45.0-SNAPSHOT + 1.45.0 com.google.api.grpc proto-google-cloud-policy-troubleshooter-v3 - 1.45.0-SNAPSHOT + 1.45.0 diff --git a/java-policy-troubleshooter/google-cloud-policy-troubleshooter/pom.xml b/java-policy-troubleshooter/google-cloud-policy-troubleshooter/pom.xml index 56ee84d7a238..cb012697b2ac 100644 --- a/java-policy-troubleshooter/google-cloud-policy-troubleshooter/pom.xml +++ b/java-policy-troubleshooter/google-cloud-policy-troubleshooter/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-policy-troubleshooter - 1.45.0-SNAPSHOT + 1.45.0 jar Google IAM Policy Troubleshooter API makes it easier to understand why a user has access to a resource or doesn't have permission to call an API. Given an email, resource, and permission, Policy Troubleshooter examines all Identity and Access Management (IAM) policies that apply to the resource. It then reveals whether the member's roles include the permission on that resource and, if so, which policies bind the member to those roles. com.google.cloud google-cloud-policy-troubleshooter-parent - 1.45.0-SNAPSHOT + 1.45.0 google-cloud-policy-troubleshooter diff --git a/java-policy-troubleshooter/grpc-google-cloud-policy-troubleshooter-v1/pom.xml b/java-policy-troubleshooter/grpc-google-cloud-policy-troubleshooter-v1/pom.xml index 9b2a1141ed09..aca754fd872f 100644 --- a/java-policy-troubleshooter/grpc-google-cloud-policy-troubleshooter-v1/pom.xml +++ b/java-policy-troubleshooter/grpc-google-cloud-policy-troubleshooter-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-policy-troubleshooter-v1 - 1.45.0-SNAPSHOT + 1.45.0 grpc-google-cloud-policy-troubleshooter-v1 GRPC library for google-cloud-policy-troubleshooter com.google.cloud google-cloud-policy-troubleshooter-parent - 1.45.0-SNAPSHOT + 1.45.0 diff --git a/java-policy-troubleshooter/grpc-google-cloud-policy-troubleshooter-v3/pom.xml b/java-policy-troubleshooter/grpc-google-cloud-policy-troubleshooter-v3/pom.xml index f123f94956c4..228df287e9df 100644 --- a/java-policy-troubleshooter/grpc-google-cloud-policy-troubleshooter-v3/pom.xml +++ b/java-policy-troubleshooter/grpc-google-cloud-policy-troubleshooter-v3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-policy-troubleshooter-v3 - 1.45.0-SNAPSHOT + 1.45.0 grpc-google-cloud-policy-troubleshooter-v3 GRPC library for google-cloud-policy-troubleshooter com.google.cloud google-cloud-policy-troubleshooter-parent - 1.45.0-SNAPSHOT + 1.45.0 diff --git a/java-policy-troubleshooter/pom.xml b/java-policy-troubleshooter/pom.xml index cc84ead53bad..cb15e9c00c5a 100644 --- a/java-policy-troubleshooter/pom.xml +++ b/java-policy-troubleshooter/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-policy-troubleshooter-parent pom - 1.45.0-SNAPSHOT + 1.45.0 Google IAM Policy Troubleshooter API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-policy-troubleshooter - 1.45.0-SNAPSHOT + 1.45.0 com.google.api.grpc proto-google-cloud-policy-troubleshooter-v3 - 1.45.0-SNAPSHOT + 1.45.0 com.google.api.grpc grpc-google-cloud-policy-troubleshooter-v3 - 1.45.0-SNAPSHOT + 1.45.0 com.google.api.grpc proto-google-cloud-policy-troubleshooter-v1 - 1.45.0-SNAPSHOT + 1.45.0 com.google.api.grpc grpc-google-cloud-policy-troubleshooter-v1 - 1.45.0-SNAPSHOT + 1.45.0 diff --git a/java-policy-troubleshooter/proto-google-cloud-policy-troubleshooter-v1/pom.xml b/java-policy-troubleshooter/proto-google-cloud-policy-troubleshooter-v1/pom.xml index 548967bfdac6..67c0958d43b2 100644 --- a/java-policy-troubleshooter/proto-google-cloud-policy-troubleshooter-v1/pom.xml +++ b/java-policy-troubleshooter/proto-google-cloud-policy-troubleshooter-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-policy-troubleshooter-v1 - 1.45.0-SNAPSHOT + 1.45.0 proto-google-cloud-policy-troubleshooter-v1 Proto library for google-cloud-policy-troubleshooter com.google.cloud google-cloud-policy-troubleshooter-parent - 1.45.0-SNAPSHOT + 1.45.0 diff --git a/java-policy-troubleshooter/proto-google-cloud-policy-troubleshooter-v3/pom.xml b/java-policy-troubleshooter/proto-google-cloud-policy-troubleshooter-v3/pom.xml index 92d3c2e2a123..6b038b632e5f 100644 --- a/java-policy-troubleshooter/proto-google-cloud-policy-troubleshooter-v3/pom.xml +++ b/java-policy-troubleshooter/proto-google-cloud-policy-troubleshooter-v3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-policy-troubleshooter-v3 - 1.45.0-SNAPSHOT + 1.45.0 proto-google-cloud-policy-troubleshooter-v3 Proto library for google-cloud-policy-troubleshooter com.google.cloud google-cloud-policy-troubleshooter-parent - 1.45.0-SNAPSHOT + 1.45.0 diff --git a/java-policysimulator/CHANGELOG.md b/java-policysimulator/CHANGELOG.md index 46f571a8b0a5..ff241b742572 100644 --- a/java-policysimulator/CHANGELOG.md +++ b/java-policysimulator/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.25.0 (2024-06-27) + +* No change + + ## 0.24.0 (None) * No change diff --git a/java-policysimulator/README.md b/java-policysimulator/README.md index f5cfdd27ac9b..e96d95209047 100644 --- a/java-policysimulator/README.md +++ b/java-policysimulator/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-policysimulator - 0.24.0 + 0.25.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-policysimulator:0.24.0' +implementation 'com.google.cloud:google-cloud-policysimulator:0.25.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-policysimulator" % "0.24.0" +libraryDependencies += "com.google.cloud" % "google-cloud-policysimulator" % "0.25.0" ``` diff --git a/java-policysimulator/google-cloud-policysimulator-bom/pom.xml b/java-policysimulator/google-cloud-policysimulator-bom/pom.xml index 751392718eb6..99377c876c89 100644 --- a/java-policysimulator/google-cloud-policysimulator-bom/pom.xml +++ b/java-policysimulator/google-cloud-policysimulator-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-policysimulator-bom - 0.25.0-SNAPSHOT + 0.25.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-policysimulator - 0.25.0-SNAPSHOT + 0.25.0 com.google.api.grpc grpc-google-cloud-policysimulator-v1 - 0.25.0-SNAPSHOT + 0.25.0 com.google.api.grpc proto-google-cloud-policysimulator-v1 - 0.25.0-SNAPSHOT + 0.25.0 diff --git a/java-policysimulator/google-cloud-policysimulator/pom.xml b/java-policysimulator/google-cloud-policysimulator/pom.xml index 5478ab22688d..a87c5a6a0956 100644 --- a/java-policysimulator/google-cloud-policysimulator/pom.xml +++ b/java-policysimulator/google-cloud-policysimulator/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-policysimulator - 0.25.0-SNAPSHOT + 0.25.0 jar Google Policy Simulator API Policy Simulator API Policy Simulator is a collection of endpoints for creating, running, and viewing a Replay. com.google.cloud google-cloud-policysimulator-parent - 0.25.0-SNAPSHOT + 0.25.0 google-cloud-policysimulator diff --git a/java-policysimulator/grpc-google-cloud-policysimulator-v1/pom.xml b/java-policysimulator/grpc-google-cloud-policysimulator-v1/pom.xml index ad26d2bd177d..aac9790a6a76 100644 --- a/java-policysimulator/grpc-google-cloud-policysimulator-v1/pom.xml +++ b/java-policysimulator/grpc-google-cloud-policysimulator-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-policysimulator-v1 - 0.25.0-SNAPSHOT + 0.25.0 grpc-google-cloud-policysimulator-v1 GRPC library for google-cloud-policysimulator com.google.cloud google-cloud-policysimulator-parent - 0.25.0-SNAPSHOT + 0.25.0 diff --git a/java-policysimulator/pom.xml b/java-policysimulator/pom.xml index 89d280d4b08a..fa9e14c311ba 100644 --- a/java-policysimulator/pom.xml +++ b/java-policysimulator/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-policysimulator-parent pom - 0.25.0-SNAPSHOT + 0.25.0 Google Policy Simulator API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-policysimulator - 0.25.0-SNAPSHOT + 0.25.0 com.google.api.grpc grpc-google-cloud-policysimulator-v1 - 0.25.0-SNAPSHOT + 0.25.0 com.google.api.grpc proto-google-cloud-policysimulator-v1 - 0.25.0-SNAPSHOT + 0.25.0 diff --git a/java-policysimulator/proto-google-cloud-policysimulator-v1/pom.xml b/java-policysimulator/proto-google-cloud-policysimulator-v1/pom.xml index 057d10297300..2c4f6b8f3beb 100644 --- a/java-policysimulator/proto-google-cloud-policysimulator-v1/pom.xml +++ b/java-policysimulator/proto-google-cloud-policysimulator-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-policysimulator-v1 - 0.25.0-SNAPSHOT + 0.25.0 proto-google-cloud-policysimulator-v1 Proto library for google-cloud-policysimulator com.google.cloud google-cloud-policysimulator-parent - 0.25.0-SNAPSHOT + 0.25.0 diff --git a/java-private-catalog/CHANGELOG.md b/java-private-catalog/CHANGELOG.md index 85cb4aa895bb..8fdc28948754 100644 --- a/java-private-catalog/CHANGELOG.md +++ b/java-private-catalog/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.48.0 (2024-06-27) + +* No change + + ## 0.47.0 (None) * No change diff --git a/java-private-catalog/README.md b/java-private-catalog/README.md index c57ab5ab17e1..f999d9d86ed6 100644 --- a/java-private-catalog/README.md +++ b/java-private-catalog/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-private-catalog - 0.47.0 + 0.48.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-private-catalog:0.47.0' +implementation 'com.google.cloud:google-cloud-private-catalog:0.48.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-private-catalog" % "0.47.0" +libraryDependencies += "com.google.cloud" % "google-cloud-private-catalog" % "0.48.0" ``` diff --git a/java-private-catalog/google-cloud-private-catalog-bom/pom.xml b/java-private-catalog/google-cloud-private-catalog-bom/pom.xml index 92b5e4e205ce..4224498131ea 100644 --- a/java-private-catalog/google-cloud-private-catalog-bom/pom.xml +++ b/java-private-catalog/google-cloud-private-catalog-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-private-catalog-bom - 0.48.0-SNAPSHOT + 0.48.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-private-catalog - 0.48.0-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-private-catalog-v1beta1 - 0.48.0-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-private-catalog-v1beta1 - 0.48.0-SNAPSHOT + 0.48.0 diff --git a/java-private-catalog/google-cloud-private-catalog/pom.xml b/java-private-catalog/google-cloud-private-catalog/pom.xml index 6daaa3b4bd60..a1accc7618fc 100644 --- a/java-private-catalog/google-cloud-private-catalog/pom.xml +++ b/java-private-catalog/google-cloud-private-catalog/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-private-catalog - 0.48.0-SNAPSHOT + 0.48.0 jar Google Private Catalog Private Catalog allows developers and cloud admins to make their solutions discoverable to their internal enterprise users. Cloud admins can manage their solutions and ensure their users are always launching the latest versions. com.google.cloud google-cloud-private-catalog-parent - 0.48.0-SNAPSHOT + 0.48.0 google-cloud-private-catalog diff --git a/java-private-catalog/grpc-google-cloud-private-catalog-v1beta1/pom.xml b/java-private-catalog/grpc-google-cloud-private-catalog-v1beta1/pom.xml index c970e02d0ade..9e3bb552ecaf 100644 --- a/java-private-catalog/grpc-google-cloud-private-catalog-v1beta1/pom.xml +++ b/java-private-catalog/grpc-google-cloud-private-catalog-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-private-catalog-v1beta1 - 0.48.0-SNAPSHOT + 0.48.0 grpc-google-cloud-private-catalog-v1beta1 GRPC library for google-cloud-private-catalog com.google.cloud google-cloud-private-catalog-parent - 0.48.0-SNAPSHOT + 0.48.0 diff --git a/java-private-catalog/pom.xml b/java-private-catalog/pom.xml index de034cb78a2b..e3a5580a0500 100644 --- a/java-private-catalog/pom.xml +++ b/java-private-catalog/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-private-catalog-parent pom - 0.48.0-SNAPSHOT + 0.48.0 Google Private Catalog Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-private-catalog - 0.48.0-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-private-catalog-v1beta1 - 0.48.0-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-private-catalog-v1beta1 - 0.48.0-SNAPSHOT + 0.48.0 diff --git a/java-private-catalog/proto-google-cloud-private-catalog-v1beta1/pom.xml b/java-private-catalog/proto-google-cloud-private-catalog-v1beta1/pom.xml index d6276b38d109..ec469b9c6bf1 100644 --- a/java-private-catalog/proto-google-cloud-private-catalog-v1beta1/pom.xml +++ b/java-private-catalog/proto-google-cloud-private-catalog-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-private-catalog-v1beta1 - 0.48.0-SNAPSHOT + 0.48.0 proto-google-cloud-private-catalog-v1beta1 Proto library for google-cloud-private-catalog com.google.cloud google-cloud-private-catalog-parent - 0.48.0-SNAPSHOT + 0.48.0 diff --git a/java-profiler/CHANGELOG.md b/java-profiler/CHANGELOG.md index 7e6eac55815d..79fc4dd49521 100644 --- a/java-profiler/CHANGELOG.md +++ b/java-profiler/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.46.0 (2024-06-27) + +* No change + + ## 2.45.0 (None) * No change diff --git a/java-profiler/README.md b/java-profiler/README.md index bfa4c0a934ae..004770998cdf 100644 --- a/java-profiler/README.md +++ b/java-profiler/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-profiler - 2.45.0 + 2.46.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-profiler:2.45.0' +implementation 'com.google.cloud:google-cloud-profiler:2.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-profiler" % "2.45.0" +libraryDependencies += "com.google.cloud" % "google-cloud-profiler" % "2.46.0" ``` diff --git a/java-profiler/google-cloud-profiler-bom/pom.xml b/java-profiler/google-cloud-profiler-bom/pom.xml index 2cc293b31c2b..d3e0521bd9fd 100644 --- a/java-profiler/google-cloud-profiler-bom/pom.xml +++ b/java-profiler/google-cloud-profiler-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-profiler-bom - 2.46.0-SNAPSHOT + 2.46.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-profiler - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc grpc-google-cloud-profiler-v2 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc proto-google-cloud-profiler-v2 - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-profiler/google-cloud-profiler/pom.xml b/java-profiler/google-cloud-profiler/pom.xml index a392e867f4bc..d87b6d9ee2b3 100644 --- a/java-profiler/google-cloud-profiler/pom.xml +++ b/java-profiler/google-cloud-profiler/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-profiler - 2.46.0-SNAPSHOT + 2.46.0 jar Google Cloud Profiler is a statistical, low-overhead profiler that continuously gathers CPU usage and memory-allocation information from your production applications. It attributes that information to the application's source code, helping you identify the parts of the application consuming the most resources, and otherwise illuminating the performance characteristics of the code. com.google.cloud google-cloud-profiler-parent - 2.46.0-SNAPSHOT + 2.46.0 google-cloud-profiler diff --git a/java-profiler/grpc-google-cloud-profiler-v2/pom.xml b/java-profiler/grpc-google-cloud-profiler-v2/pom.xml index c97431d907c0..ab5c151be4de 100644 --- a/java-profiler/grpc-google-cloud-profiler-v2/pom.xml +++ b/java-profiler/grpc-google-cloud-profiler-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-profiler-v2 - 2.46.0-SNAPSHOT + 2.46.0 grpc-google-cloud-profiler-v2 GRPC library for google-cloud-profiler com.google.cloud google-cloud-profiler-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-profiler/pom.xml b/java-profiler/pom.xml index 09e4a9f54c76..febfed6df8e8 100644 --- a/java-profiler/pom.xml +++ b/java-profiler/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-profiler-parent pom - 2.46.0-SNAPSHOT + 2.46.0 Google Cloud Profiler Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-profiler - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc proto-google-cloud-profiler-v2 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc grpc-google-cloud-profiler-v2 - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-profiler/proto-google-cloud-profiler-v2/pom.xml b/java-profiler/proto-google-cloud-profiler-v2/pom.xml index 248e3a8da739..c203b037e4a1 100644 --- a/java-profiler/proto-google-cloud-profiler-v2/pom.xml +++ b/java-profiler/proto-google-cloud-profiler-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-profiler-v2 - 2.46.0-SNAPSHOT + 2.46.0 proto-google-cloud-profiler-v2 Proto library for google-cloud-profiler com.google.cloud google-cloud-profiler-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-publicca/CHANGELOG.md b/java-publicca/CHANGELOG.md index 2e39498dfb64..5ca40e41d41b 100644 --- a/java-publicca/CHANGELOG.md +++ b/java-publicca/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.43.0 (2024-06-27) + +* No change + + ## 0.42.0 (None) * No change diff --git a/java-publicca/README.md b/java-publicca/README.md index b73bf93eb2c2..389a92632183 100644 --- a/java-publicca/README.md +++ b/java-publicca/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-publicca - 0.42.0 + 0.43.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-publicca:0.42.0' +implementation 'com.google.cloud:google-cloud-publicca:0.43.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-publicca" % "0.42.0" +libraryDependencies += "com.google.cloud" % "google-cloud-publicca" % "0.43.0" ``` diff --git a/java-publicca/google-cloud-publicca-bom/pom.xml b/java-publicca/google-cloud-publicca-bom/pom.xml index 06dc9ebb1783..eda59f9e09db 100644 --- a/java-publicca/google-cloud-publicca-bom/pom.xml +++ b/java-publicca/google-cloud-publicca-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-publicca-bom - 0.43.0-SNAPSHOT + 0.43.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-publicca - 0.43.0-SNAPSHOT + 0.43.0 com.google.api.grpc grpc-google-cloud-publicca-v1beta1 - 0.43.0-SNAPSHOT + 0.43.0 com.google.api.grpc grpc-google-cloud-publicca-v1 - 0.43.0-SNAPSHOT + 0.43.0 com.google.api.grpc proto-google-cloud-publicca-v1beta1 - 0.43.0-SNAPSHOT + 0.43.0 com.google.api.grpc proto-google-cloud-publicca-v1 - 0.43.0-SNAPSHOT + 0.43.0 diff --git a/java-publicca/google-cloud-publicca/pom.xml b/java-publicca/google-cloud-publicca/pom.xml index df68917774af..3231061611d2 100644 --- a/java-publicca/google-cloud-publicca/pom.xml +++ b/java-publicca/google-cloud-publicca/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-publicca - 0.43.0-SNAPSHOT + 0.43.0 jar Google Public Certificate Authority Public Certificate Authority Certificate Manager's Public Certificate Authority (CA) functionality allows you to provision and deploy widely trusted X.509 certificates after validating that the certificate requester controls the domains. com.google.cloud google-cloud-publicca-parent - 0.43.0-SNAPSHOT + 0.43.0 google-cloud-publicca diff --git a/java-publicca/grpc-google-cloud-publicca-v1/pom.xml b/java-publicca/grpc-google-cloud-publicca-v1/pom.xml index 4d47b598d0a9..0ff926c200d8 100644 --- a/java-publicca/grpc-google-cloud-publicca-v1/pom.xml +++ b/java-publicca/grpc-google-cloud-publicca-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-publicca-v1 - 0.43.0-SNAPSHOT + 0.43.0 grpc-google-cloud-publicca-v1 GRPC library for google-cloud-publicca com.google.cloud google-cloud-publicca-parent - 0.43.0-SNAPSHOT + 0.43.0 diff --git a/java-publicca/grpc-google-cloud-publicca-v1beta1/pom.xml b/java-publicca/grpc-google-cloud-publicca-v1beta1/pom.xml index 210073657faa..cebd7d0b8d5e 100644 --- a/java-publicca/grpc-google-cloud-publicca-v1beta1/pom.xml +++ b/java-publicca/grpc-google-cloud-publicca-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-publicca-v1beta1 - 0.43.0-SNAPSHOT + 0.43.0 grpc-google-cloud-publicca-v1beta1 GRPC library for google-cloud-publicca com.google.cloud google-cloud-publicca-parent - 0.43.0-SNAPSHOT + 0.43.0 diff --git a/java-publicca/pom.xml b/java-publicca/pom.xml index a13605d6e8e4..beb7844efdc3 100644 --- a/java-publicca/pom.xml +++ b/java-publicca/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-publicca-parent pom - 0.43.0-SNAPSHOT + 0.43.0 Google Public Certificate Authority Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-publicca - 0.43.0-SNAPSHOT + 0.43.0 com.google.api.grpc proto-google-cloud-publicca-v1 - 0.43.0-SNAPSHOT + 0.43.0 com.google.api.grpc grpc-google-cloud-publicca-v1 - 0.43.0-SNAPSHOT + 0.43.0 com.google.api.grpc grpc-google-cloud-publicca-v1beta1 - 0.43.0-SNAPSHOT + 0.43.0 com.google.api.grpc proto-google-cloud-publicca-v1beta1 - 0.43.0-SNAPSHOT + 0.43.0 diff --git a/java-publicca/proto-google-cloud-publicca-v1/pom.xml b/java-publicca/proto-google-cloud-publicca-v1/pom.xml index 2d928329fba3..a2a511b35ab3 100644 --- a/java-publicca/proto-google-cloud-publicca-v1/pom.xml +++ b/java-publicca/proto-google-cloud-publicca-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-publicca-v1 - 0.43.0-SNAPSHOT + 0.43.0 proto-google-cloud-publicca-v1 Proto library for google-cloud-publicca com.google.cloud google-cloud-publicca-parent - 0.43.0-SNAPSHOT + 0.43.0 diff --git a/java-publicca/proto-google-cloud-publicca-v1beta1/pom.xml b/java-publicca/proto-google-cloud-publicca-v1beta1/pom.xml index 00e373167b89..67a14eba7a22 100644 --- a/java-publicca/proto-google-cloud-publicca-v1beta1/pom.xml +++ b/java-publicca/proto-google-cloud-publicca-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-publicca-v1beta1 - 0.43.0-SNAPSHOT + 0.43.0 proto-google-cloud-publicca-v1beta1 Proto library for google-cloud-publicca com.google.cloud google-cloud-publicca-parent - 0.43.0-SNAPSHOT + 0.43.0 diff --git a/java-rapidmigrationassessment/CHANGELOG.md b/java-rapidmigrationassessment/CHANGELOG.md index bda97dc4564d..3f03e7454a3e 100644 --- a/java-rapidmigrationassessment/CHANGELOG.md +++ b/java-rapidmigrationassessment/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.29.0 (2024-06-27) + +* No change + + ## 0.28.0 (None) * No change diff --git a/java-rapidmigrationassessment/README.md b/java-rapidmigrationassessment/README.md index 8336e2840211..ec4b1136b63d 100644 --- a/java-rapidmigrationassessment/README.md +++ b/java-rapidmigrationassessment/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-rapidmigrationassessment - 0.28.0 + 0.29.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-rapidmigrationassessment:0.28.0' +implementation 'com.google.cloud:google-cloud-rapidmigrationassessment:0.29.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-rapidmigrationassessment" % "0.28.0" +libraryDependencies += "com.google.cloud" % "google-cloud-rapidmigrationassessment" % "0.29.0" ``` diff --git a/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment-bom/pom.xml b/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment-bom/pom.xml index 97d123f4e6aa..b631bf48dd6c 100644 --- a/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment-bom/pom.xml +++ b/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-rapidmigrationassessment-bom - 0.29.0-SNAPSHOT + 0.29.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-rapidmigrationassessment - 0.29.0-SNAPSHOT + 0.29.0 com.google.api.grpc grpc-google-cloud-rapidmigrationassessment-v1 - 0.29.0-SNAPSHOT + 0.29.0 com.google.api.grpc proto-google-cloud-rapidmigrationassessment-v1 - 0.29.0-SNAPSHOT + 0.29.0 diff --git a/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment/pom.xml b/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment/pom.xml index 9d14189f39d9..d3e8624e74bd 100644 --- a/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment/pom.xml +++ b/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-rapidmigrationassessment - 0.29.0-SNAPSHOT + 0.29.0 jar Google Rapid Migration Assessment API Rapid Migration Assessment API Rapid Migration Assessment API com.google.cloud google-cloud-rapidmigrationassessment-parent - 0.29.0-SNAPSHOT + 0.29.0 google-cloud-rapidmigrationassessment diff --git a/java-rapidmigrationassessment/grpc-google-cloud-rapidmigrationassessment-v1/pom.xml b/java-rapidmigrationassessment/grpc-google-cloud-rapidmigrationassessment-v1/pom.xml index f93666191d6a..85afad81e75f 100644 --- a/java-rapidmigrationassessment/grpc-google-cloud-rapidmigrationassessment-v1/pom.xml +++ b/java-rapidmigrationassessment/grpc-google-cloud-rapidmigrationassessment-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-rapidmigrationassessment-v1 - 0.29.0-SNAPSHOT + 0.29.0 grpc-google-cloud-rapidmigrationassessment-v1 GRPC library for google-cloud-rapidmigrationassessment com.google.cloud google-cloud-rapidmigrationassessment-parent - 0.29.0-SNAPSHOT + 0.29.0 diff --git a/java-rapidmigrationassessment/pom.xml b/java-rapidmigrationassessment/pom.xml index 2b1079f5c287..15c915b41a7e 100644 --- a/java-rapidmigrationassessment/pom.xml +++ b/java-rapidmigrationassessment/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-rapidmigrationassessment-parent pom - 0.29.0-SNAPSHOT + 0.29.0 Google Rapid Migration Assessment API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-rapidmigrationassessment - 0.29.0-SNAPSHOT + 0.29.0 com.google.api.grpc grpc-google-cloud-rapidmigrationassessment-v1 - 0.29.0-SNAPSHOT + 0.29.0 com.google.api.grpc proto-google-cloud-rapidmigrationassessment-v1 - 0.29.0-SNAPSHOT + 0.29.0 diff --git a/java-rapidmigrationassessment/proto-google-cloud-rapidmigrationassessment-v1/pom.xml b/java-rapidmigrationassessment/proto-google-cloud-rapidmigrationassessment-v1/pom.xml index e4281e29fefc..039c37659ee6 100644 --- a/java-rapidmigrationassessment/proto-google-cloud-rapidmigrationassessment-v1/pom.xml +++ b/java-rapidmigrationassessment/proto-google-cloud-rapidmigrationassessment-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-rapidmigrationassessment-v1 - 0.29.0-SNAPSHOT + 0.29.0 proto-google-cloud-rapidmigrationassessment-v1 Proto library for google-cloud-rapidmigrationassessment com.google.cloud google-cloud-rapidmigrationassessment-parent - 0.29.0-SNAPSHOT + 0.29.0 diff --git a/java-recaptchaenterprise/CHANGELOG.md b/java-recaptchaenterprise/CHANGELOG.md index d69b0ec4f846..23f7e37158dd 100644 --- a/java-recaptchaenterprise/CHANGELOG.md +++ b/java-recaptchaenterprise/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 3.43.0 (2024-06-27) + +### Features + +* added SMS Toll Fraud assessment ([564c369](https://github.com/googleapis/google-cloud-java/commit/564c3692bc8d22f4f5acdcbfb60be0582bd08d53)) + + + ## 3.42.0 (None) * No change diff --git a/java-recaptchaenterprise/README.md b/java-recaptchaenterprise/README.md index 293b5b68d5df..d85d7104ed6c 100644 --- a/java-recaptchaenterprise/README.md +++ b/java-recaptchaenterprise/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-recaptchaenterprise - 3.42.0 + 3.43.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-recaptchaenterprise:3.42.0' +implementation 'com.google.cloud:google-cloud-recaptchaenterprise:3.43.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-recaptchaenterprise" % "3.42.0" +libraryDependencies += "com.google.cloud" % "google-cloud-recaptchaenterprise" % "3.43.0" ``` diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise-bom/pom.xml b/java-recaptchaenterprise/google-cloud-recaptchaenterprise-bom/pom.xml index bc8b239e350e..890162991792 100644 --- a/java-recaptchaenterprise/google-cloud-recaptchaenterprise-bom/pom.xml +++ b/java-recaptchaenterprise/google-cloud-recaptchaenterprise-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-recaptchaenterprise-bom - 3.43.0-SNAPSHOT + 3.43.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-recaptchaenterprise - 3.43.0-SNAPSHOT + 3.43.0 com.google.api.grpc grpc-google-cloud-recaptchaenterprise-v1 - 3.43.0-SNAPSHOT + 3.43.0 com.google.api.grpc grpc-google-cloud-recaptchaenterprise-v1beta1 - 0.85.0-SNAPSHOT + 0.85.0 com.google.api.grpc proto-google-cloud-recaptchaenterprise-v1 - 3.43.0-SNAPSHOT + 3.43.0 com.google.api.grpc proto-google-cloud-recaptchaenterprise-v1beta1 - 0.85.0-SNAPSHOT + 0.85.0 diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/pom.xml b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/pom.xml index b168d1e3da59..585aa25a866b 100644 --- a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/pom.xml +++ b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-recaptchaenterprise - 3.43.0-SNAPSHOT + 3.43.0 jar reCAPTCHA Enterprise Help protect your website from fraudulent activity, spam, and abuse. com.google.cloud google-cloud-recaptchaenterprise-parent - 3.43.0-SNAPSHOT + 3.43.0 google-cloud-recaptchaenterprise diff --git a/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1/pom.xml b/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1/pom.xml index 908ee1ce09bb..f8281f30cf8a 100644 --- a/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1/pom.xml +++ b/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-recaptchaenterprise-v1 - 3.43.0-SNAPSHOT + 3.43.0 grpc-google-cloud-recaptchaenterprise-v1 GRPC library for grpc-google-cloud-recaptchaenterprise-v1 com.google.cloud google-cloud-recaptchaenterprise-parent - 3.43.0-SNAPSHOT + 3.43.0 diff --git a/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1beta1/pom.xml b/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1beta1/pom.xml index f325df7b6ee1..70b5aea3e7f1 100644 --- a/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1beta1/pom.xml +++ b/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-recaptchaenterprise-v1beta1 - 0.85.0-SNAPSHOT + 0.85.0 grpc-google-cloud-recaptchaenterprise-v1beta1 GRPC library for grpc-google-cloud-recaptchaenterprise-v1beta1 com.google.cloud google-cloud-recaptchaenterprise-parent - 3.43.0-SNAPSHOT + 3.43.0 diff --git a/java-recaptchaenterprise/pom.xml b/java-recaptchaenterprise/pom.xml index ef9d2d9f8253..a364f3e6e84a 100644 --- a/java-recaptchaenterprise/pom.xml +++ b/java-recaptchaenterprise/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-recaptchaenterprise-parent pom - 3.43.0-SNAPSHOT + 3.43.0 reCAPTCHA Enterprise Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-recaptchaenterprise-v1 - 3.43.0-SNAPSHOT + 3.43.0 com.google.api.grpc proto-google-cloud-recaptchaenterprise-v1beta1 - 0.85.0-SNAPSHOT + 0.85.0 com.google.api.grpc grpc-google-cloud-recaptchaenterprise-v1 - 3.43.0-SNAPSHOT + 3.43.0 com.google.api.grpc grpc-google-cloud-recaptchaenterprise-v1beta1 - 0.85.0-SNAPSHOT + 0.85.0 com.google.cloud google-cloud-recaptchaenterprise - 3.43.0-SNAPSHOT + 3.43.0 diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/pom.xml b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/pom.xml index 3980655e8948..ad1b00444182 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/pom.xml +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-recaptchaenterprise-v1 - 3.43.0-SNAPSHOT + 3.43.0 proto-google-cloud-recaptchaenterprise-v1 PROTO library for proto-google-cloud-recaptchaenterprise-v1 com.google.cloud google-cloud-recaptchaenterprise-parent - 3.43.0-SNAPSHOT + 3.43.0 diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/pom.xml b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/pom.xml index 18697ffcaff4..6c10252f805e 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/pom.xml +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-recaptchaenterprise-v1beta1 - 0.85.0-SNAPSHOT + 0.85.0 proto-google-cloud-recaptchaenterprise-v1beta1 PROTO library for proto-google-cloud-recaptchaenterprise-v1beta1 com.google.cloud google-cloud-recaptchaenterprise-parent - 3.43.0-SNAPSHOT + 3.43.0 diff --git a/java-recommendations-ai/CHANGELOG.md b/java-recommendations-ai/CHANGELOG.md index 5d76ee502c3f..06563c204f50 100644 --- a/java-recommendations-ai/CHANGELOG.md +++ b/java-recommendations-ai/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.53.0 (2024-06-27) + +* No change + + ## 0.52.0 (None) * No change diff --git a/java-recommendations-ai/README.md b/java-recommendations-ai/README.md index e1c7cb56eb1a..63d7cc6575e5 100644 --- a/java-recommendations-ai/README.md +++ b/java-recommendations-ai/README.md @@ -46,20 +46,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-recommendations-ai - 0.52.0 + 0.53.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-recommendations-ai:0.52.0' +implementation 'com.google.cloud:google-cloud-recommendations-ai:0.53.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-recommendations-ai" % "0.52.0" +libraryDependencies += "com.google.cloud" % "google-cloud-recommendations-ai" % "0.53.0" ``` diff --git a/java-recommendations-ai/google-cloud-recommendations-ai-bom/pom.xml b/java-recommendations-ai/google-cloud-recommendations-ai-bom/pom.xml index a7e8f6fb1652..ebb92f5e09de 100644 --- a/java-recommendations-ai/google-cloud-recommendations-ai-bom/pom.xml +++ b/java-recommendations-ai/google-cloud-recommendations-ai-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-recommendations-ai-bom - 0.53.0-SNAPSHOT + 0.53.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-recommendations-ai - 0.53.0-SNAPSHOT + 0.53.0 com.google.api.grpc grpc-google-cloud-recommendations-ai-v1beta1 - 0.53.0-SNAPSHOT + 0.53.0 com.google.api.grpc proto-google-cloud-recommendations-ai-v1beta1 - 0.53.0-SNAPSHOT + 0.53.0 diff --git a/java-recommendations-ai/google-cloud-recommendations-ai/pom.xml b/java-recommendations-ai/google-cloud-recommendations-ai/pom.xml index c462bbf85865..ac5d63347a33 100644 --- a/java-recommendations-ai/google-cloud-recommendations-ai/pom.xml +++ b/java-recommendations-ai/google-cloud-recommendations-ai/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-recommendations-ai - 0.53.0-SNAPSHOT + 0.53.0 jar Google Recommendations AI delivers highly personalized product recommendations at scale. com.google.cloud google-cloud-recommendations-ai-parent - 0.53.0-SNAPSHOT + 0.53.0 google-cloud-recommendations-ai diff --git a/java-recommendations-ai/grpc-google-cloud-recommendations-ai-v1beta1/pom.xml b/java-recommendations-ai/grpc-google-cloud-recommendations-ai-v1beta1/pom.xml index f0d16ff82c06..1a2d22d9ecb0 100644 --- a/java-recommendations-ai/grpc-google-cloud-recommendations-ai-v1beta1/pom.xml +++ b/java-recommendations-ai/grpc-google-cloud-recommendations-ai-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-recommendations-ai-v1beta1 - 0.53.0-SNAPSHOT + 0.53.0 grpc-google-cloud-recommendations-ai-v1beta1 GRPC library for grpc-google-cloud-recommendations-ai-v1beta1 com.google.cloud google-cloud-recommendations-ai-parent - 0.53.0-SNAPSHOT + 0.53.0 diff --git a/java-recommendations-ai/pom.xml b/java-recommendations-ai/pom.xml index 2a96dc9241bb..9a72e4292935 100644 --- a/java-recommendations-ai/pom.xml +++ b/java-recommendations-ai/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-recommendations-ai-parent pom - 0.53.0-SNAPSHOT + 0.53.0 Google Recommendations AI Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-recommendations-ai - 0.53.0-SNAPSHOT + 0.53.0 com.google.api.grpc proto-google-cloud-recommendations-ai-v1beta1 - 0.53.0-SNAPSHOT + 0.53.0 com.google.api.grpc grpc-google-cloud-recommendations-ai-v1beta1 - 0.53.0-SNAPSHOT + 0.53.0 diff --git a/java-recommendations-ai/proto-google-cloud-recommendations-ai-v1beta1/pom.xml b/java-recommendations-ai/proto-google-cloud-recommendations-ai-v1beta1/pom.xml index 0f0260028ec2..204cfbf1a161 100644 --- a/java-recommendations-ai/proto-google-cloud-recommendations-ai-v1beta1/pom.xml +++ b/java-recommendations-ai/proto-google-cloud-recommendations-ai-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-recommendations-ai-v1beta1 - 0.53.0-SNAPSHOT + 0.53.0 proto-google-cloud-recommendations-ai-v1beta1 PROTO library for proto-google-cloud-recommendations-ai-v1beta1 com.google.cloud google-cloud-recommendations-ai-parent - 0.53.0-SNAPSHOT + 0.53.0 diff --git a/java-recommender/CHANGELOG.md b/java-recommender/CHANGELOG.md index 214d388228d9..828dcef5b526 100644 --- a/java-recommender/CHANGELOG.md +++ b/java-recommender/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.48.0 (2024-06-27) + +* No change + + ## 2.47.0 (None) * No change diff --git a/java-recommender/README.md b/java-recommender/README.md index a79296edd6a9..5d8bef6f80eb 100644 --- a/java-recommender/README.md +++ b/java-recommender/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-recommender - 2.47.0 + 2.48.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-recommender:2.47.0' +implementation 'com.google.cloud:google-cloud-recommender:2.48.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-recommender" % "2.47.0" +libraryDependencies += "com.google.cloud" % "google-cloud-recommender" % "2.48.0" ``` diff --git a/java-recommender/google-cloud-recommender-bom/pom.xml b/java-recommender/google-cloud-recommender-bom/pom.xml index b0ca719fc9a8..e33484d9a702 100644 --- a/java-recommender/google-cloud-recommender-bom/pom.xml +++ b/java-recommender/google-cloud-recommender-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-recommender-bom - 2.48.0-SNAPSHOT + 2.48.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-recommender - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc grpc-google-cloud-recommender-v1 - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc grpc-google-cloud-recommender-v1beta1 - 0.60.0-SNAPSHOT + 0.60.0 com.google.api.grpc proto-google-cloud-recommender-v1 - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc proto-google-cloud-recommender-v1beta1 - 0.60.0-SNAPSHOT + 0.60.0 diff --git a/java-recommender/google-cloud-recommender/pom.xml b/java-recommender/google-cloud-recommender/pom.xml index 1e65a0adf372..5376cb111d48 100644 --- a/java-recommender/google-cloud-recommender/pom.xml +++ b/java-recommender/google-cloud-recommender/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-recommender - 2.48.0-SNAPSHOT + 2.48.0 jar Google Cloud Recommender @@ -12,7 +12,7 @@ com.google.cloud google-cloud-recommender-parent - 2.48.0-SNAPSHOT + 2.48.0 google-cloud-recommender diff --git a/java-recommender/grpc-google-cloud-recommender-v1/pom.xml b/java-recommender/grpc-google-cloud-recommender-v1/pom.xml index a0d7e3377cc3..cd855295a090 100644 --- a/java-recommender/grpc-google-cloud-recommender-v1/pom.xml +++ b/java-recommender/grpc-google-cloud-recommender-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-recommender-v1 - 2.48.0-SNAPSHOT + 2.48.0 grpc-google-cloud-recommender-v1 GRPC library for grpc-google-cloud-recommender-v1 com.google.cloud google-cloud-recommender-parent - 2.48.0-SNAPSHOT + 2.48.0 diff --git a/java-recommender/grpc-google-cloud-recommender-v1beta1/pom.xml b/java-recommender/grpc-google-cloud-recommender-v1beta1/pom.xml index 3ca77a29b533..4fe6934dcd1b 100644 --- a/java-recommender/grpc-google-cloud-recommender-v1beta1/pom.xml +++ b/java-recommender/grpc-google-cloud-recommender-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-recommender-v1beta1 - 0.60.0-SNAPSHOT + 0.60.0 grpc-google-cloud-recommender-v1beta1 GRPC library for grpc-google-cloud-recommender-v1beta1 com.google.cloud google-cloud-recommender-parent - 2.48.0-SNAPSHOT + 2.48.0 diff --git a/java-recommender/pom.xml b/java-recommender/pom.xml index 56fbbc7a5fd9..6adcb50aebe4 100644 --- a/java-recommender/pom.xml +++ b/java-recommender/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-recommender-parent pom - 2.48.0-SNAPSHOT + 2.48.0 Google Cloud recommender Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-recommender-v1 - 2.48.0-SNAPSHOT + 2.48.0 com.google.cloud google-cloud-recommender - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc proto-google-cloud-recommender-v1beta1 - 0.60.0-SNAPSHOT + 0.60.0 com.google.api.grpc grpc-google-cloud-recommender-v1 - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc grpc-google-cloud-recommender-v1beta1 - 0.60.0-SNAPSHOT + 0.60.0 diff --git a/java-recommender/proto-google-cloud-recommender-v1/pom.xml b/java-recommender/proto-google-cloud-recommender-v1/pom.xml index 0456fe06f513..dc547c739ab5 100644 --- a/java-recommender/proto-google-cloud-recommender-v1/pom.xml +++ b/java-recommender/proto-google-cloud-recommender-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-recommender-v1 - 2.48.0-SNAPSHOT + 2.48.0 proto-google-cloud-recommender-v1 PROTO library for proto-google-cloud-recommender-v1 com.google.cloud google-cloud-recommender-parent - 2.48.0-SNAPSHOT + 2.48.0 diff --git a/java-recommender/proto-google-cloud-recommender-v1beta1/pom.xml b/java-recommender/proto-google-cloud-recommender-v1beta1/pom.xml index ad5e8d0118fe..a47c022f6b33 100644 --- a/java-recommender/proto-google-cloud-recommender-v1beta1/pom.xml +++ b/java-recommender/proto-google-cloud-recommender-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-recommender-v1beta1 - 0.60.0-SNAPSHOT + 0.60.0 proto-google-cloud-recommender-v1beta1 PROTO library for proto-google-cloud-recommender-v1beta1 com.google.cloud google-cloud-recommender-parent - 2.48.0-SNAPSHOT + 2.48.0 diff --git a/java-redis-cluster/CHANGELOG.md b/java-redis-cluster/CHANGELOG.md index bd175dd3f599..28ac0da340cc 100644 --- a/java-redis-cluster/CHANGELOG.md +++ b/java-redis-cluster/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 0.18.0 (2024-06-27) + +### Features + +* [Memorystore for Redis Cluster] Add support for different node types ([4be1db5](https://github.com/googleapis/google-cloud-java/commit/4be1db5cfca842d85e167b8ed033ebcbcbd758dd)) +* Add support for different node types ([4be1db5](https://github.com/googleapis/google-cloud-java/commit/4be1db5cfca842d85e167b8ed033ebcbcbd758dd)) + + + ## 0.17.0 (None) * No change diff --git a/java-redis-cluster/README.md b/java-redis-cluster/README.md index 8af1d5e03cdf..bfa1d1cd4519 100644 --- a/java-redis-cluster/README.md +++ b/java-redis-cluster/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-redis-cluster - 0.17.0 + 0.18.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-redis-cluster:0.17.0' +implementation 'com.google.cloud:google-cloud-redis-cluster:0.18.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-redis-cluster" % "0.17.0" +libraryDependencies += "com.google.cloud" % "google-cloud-redis-cluster" % "0.18.0" ``` diff --git a/java-redis-cluster/google-cloud-redis-cluster-bom/pom.xml b/java-redis-cluster/google-cloud-redis-cluster-bom/pom.xml index e21d26a563bf..eb7a2be7a714 100644 --- a/java-redis-cluster/google-cloud-redis-cluster-bom/pom.xml +++ b/java-redis-cluster/google-cloud-redis-cluster-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-redis-cluster-bom - 0.18.0-SNAPSHOT + 0.18.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-redis-cluster - 0.18.0-SNAPSHOT + 0.18.0 com.google.api.grpc grpc-google-cloud-redis-cluster-v1 - 0.18.0-SNAPSHOT + 0.18.0 com.google.api.grpc grpc-google-cloud-redis-cluster-v1beta1 - 0.18.0-SNAPSHOT + 0.18.0 com.google.api.grpc proto-google-cloud-redis-cluster-v1beta1 - 0.18.0-SNAPSHOT + 0.18.0 com.google.api.grpc proto-google-cloud-redis-cluster-v1 - 0.18.0-SNAPSHOT + 0.18.0 diff --git a/java-redis-cluster/google-cloud-redis-cluster/pom.xml b/java-redis-cluster/google-cloud-redis-cluster/pom.xml index 638430a7f871..9506260e92e4 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/pom.xml +++ b/java-redis-cluster/google-cloud-redis-cluster/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-redis-cluster - 0.18.0-SNAPSHOT + 0.18.0 jar Google Google Cloud Memorystore for Redis API Google Cloud Memorystore for Redis API Creates and manages Redis instances on the Google Cloud Platform. com.google.cloud google-cloud-redis-cluster-parent - 0.18.0-SNAPSHOT + 0.18.0 google-cloud-redis-cluster diff --git a/java-redis-cluster/grpc-google-cloud-redis-cluster-v1/pom.xml b/java-redis-cluster/grpc-google-cloud-redis-cluster-v1/pom.xml index 335b6cc144bc..35b95085a6a4 100644 --- a/java-redis-cluster/grpc-google-cloud-redis-cluster-v1/pom.xml +++ b/java-redis-cluster/grpc-google-cloud-redis-cluster-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-redis-cluster-v1 - 0.18.0-SNAPSHOT + 0.18.0 grpc-google-cloud-redis-cluster-v1 GRPC library for google-cloud-redis-cluster com.google.cloud google-cloud-redis-cluster-parent - 0.18.0-SNAPSHOT + 0.18.0 diff --git a/java-redis-cluster/grpc-google-cloud-redis-cluster-v1beta1/pom.xml b/java-redis-cluster/grpc-google-cloud-redis-cluster-v1beta1/pom.xml index a435e0ffa9de..00d1a61386a6 100644 --- a/java-redis-cluster/grpc-google-cloud-redis-cluster-v1beta1/pom.xml +++ b/java-redis-cluster/grpc-google-cloud-redis-cluster-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-redis-cluster-v1beta1 - 0.18.0-SNAPSHOT + 0.18.0 grpc-google-cloud-redis-cluster-v1beta1 GRPC library for google-cloud-redis-cluster com.google.cloud google-cloud-redis-cluster-parent - 0.18.0-SNAPSHOT + 0.18.0 diff --git a/java-redis-cluster/pom.xml b/java-redis-cluster/pom.xml index 0c0de12d8799..f4f87acef3de 100644 --- a/java-redis-cluster/pom.xml +++ b/java-redis-cluster/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-redis-cluster-parent pom - 0.18.0-SNAPSHOT + 0.18.0 Google Google Cloud Memorystore for Redis API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-redis-cluster - 0.18.0-SNAPSHOT + 0.18.0 com.google.api.grpc grpc-google-cloud-redis-cluster-v1 - 0.18.0-SNAPSHOT + 0.18.0 com.google.api.grpc grpc-google-cloud-redis-cluster-v1beta1 - 0.18.0-SNAPSHOT + 0.18.0 com.google.api.grpc proto-google-cloud-redis-cluster-v1beta1 - 0.18.0-SNAPSHOT + 0.18.0 com.google.api.grpc proto-google-cloud-redis-cluster-v1 - 0.18.0-SNAPSHOT + 0.18.0 diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/pom.xml b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/pom.xml index 4917769a4161..54ce259ceda9 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/pom.xml +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-redis-cluster-v1 - 0.18.0-SNAPSHOT + 0.18.0 proto-google-cloud-redis-cluster-v1 Proto library for google-cloud-redis-cluster com.google.cloud google-cloud-redis-cluster-parent - 0.18.0-SNAPSHOT + 0.18.0 diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/pom.xml b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/pom.xml index 26045e10ecb5..0494f6a6f2b8 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/pom.xml +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-redis-cluster-v1beta1 - 0.18.0-SNAPSHOT + 0.18.0 proto-google-cloud-redis-cluster-v1beta1 Proto library for google-cloud-redis-cluster com.google.cloud google-cloud-redis-cluster-parent - 0.18.0-SNAPSHOT + 0.18.0 diff --git a/java-redis/CHANGELOG.md b/java-redis/CHANGELOG.md index 733d35d79513..6fc2b25cbe70 100644 --- a/java-redis/CHANGELOG.md +++ b/java-redis/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.49.0 (2024-06-27) + +* No change + + ## 2.48.0 (None) * No change diff --git a/java-redis/README.md b/java-redis/README.md index 7352421eb20c..b46df590dfb2 100644 --- a/java-redis/README.md +++ b/java-redis/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-redis - 2.48.0 + 2.49.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-redis:2.48.0' +implementation 'com.google.cloud:google-cloud-redis:2.49.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-redis" % "2.48.0" +libraryDependencies += "com.google.cloud" % "google-cloud-redis" % "2.49.0" ``` diff --git a/java-redis/google-cloud-redis-bom/pom.xml b/java-redis/google-cloud-redis-bom/pom.xml index 79c0daf180ef..3a4d14f8a852 100644 --- a/java-redis/google-cloud-redis-bom/pom.xml +++ b/java-redis/google-cloud-redis-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-redis-bom - 2.49.0-SNAPSHOT + 2.49.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-redis - 2.49.0-SNAPSHOT + 2.49.0 com.google.api.grpc grpc-google-cloud-redis-v1beta1 - 0.137.0-SNAPSHOT + 0.137.0 com.google.api.grpc grpc-google-cloud-redis-v1 - 2.49.0-SNAPSHOT + 2.49.0 com.google.api.grpc proto-google-cloud-redis-v1 - 2.49.0-SNAPSHOT + 2.49.0 com.google.api.grpc proto-google-cloud-redis-v1beta1 - 0.137.0-SNAPSHOT + 0.137.0 diff --git a/java-redis/google-cloud-redis/pom.xml b/java-redis/google-cloud-redis/pom.xml index d52060e96762..de23b9b39ce8 100644 --- a/java-redis/google-cloud-redis/pom.xml +++ b/java-redis/google-cloud-redis/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-redis - 2.49.0-SNAPSHOT + 2.49.0 jar Google Cloud Redis Java idiomatic client for Google Cloud Redis com.google.cloud google-cloud-redis-parent - 2.49.0-SNAPSHOT + 2.49.0 google-cloud-redis diff --git a/java-redis/grpc-google-cloud-redis-v1/pom.xml b/java-redis/grpc-google-cloud-redis-v1/pom.xml index 16adf7da63f7..a5af2b82726d 100644 --- a/java-redis/grpc-google-cloud-redis-v1/pom.xml +++ b/java-redis/grpc-google-cloud-redis-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-redis-v1 - 2.49.0-SNAPSHOT + 2.49.0 grpc-google-cloud-redis-v1 GRPC library for grpc-google-cloud-redis-v1 com.google.cloud google-cloud-redis-parent - 2.49.0-SNAPSHOT + 2.49.0 diff --git a/java-redis/grpc-google-cloud-redis-v1beta1/pom.xml b/java-redis/grpc-google-cloud-redis-v1beta1/pom.xml index 5a736e01a77d..f50cd62ec7bc 100644 --- a/java-redis/grpc-google-cloud-redis-v1beta1/pom.xml +++ b/java-redis/grpc-google-cloud-redis-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-redis-v1beta1 - 0.137.0-SNAPSHOT + 0.137.0 grpc-google-cloud-redis-v1beta1 GRPC library for grpc-google-cloud-redis-v1beta1 com.google.cloud google-cloud-redis-parent - 2.49.0-SNAPSHOT + 2.49.0 diff --git a/java-redis/pom.xml b/java-redis/pom.xml index 1211242bd20b..cd9a9b345e85 100644 --- a/java-redis/pom.xml +++ b/java-redis/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-redis-parent pom - 2.49.0-SNAPSHOT + 2.49.0 Google Cloud Redis Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-redis-v1 - 2.49.0-SNAPSHOT + 2.49.0 com.google.api.grpc proto-google-cloud-redis-v1beta1 - 0.137.0-SNAPSHOT + 0.137.0 com.google.api.grpc grpc-google-cloud-redis-v1beta1 - 0.137.0-SNAPSHOT + 0.137.0 com.google.api.grpc grpc-google-cloud-redis-v1 - 2.49.0-SNAPSHOT + 2.49.0 com.google.cloud google-cloud-redis - 2.49.0-SNAPSHOT + 2.49.0 diff --git a/java-redis/proto-google-cloud-redis-v1/pom.xml b/java-redis/proto-google-cloud-redis-v1/pom.xml index 4fff522a1f02..f1fe4d27520a 100644 --- a/java-redis/proto-google-cloud-redis-v1/pom.xml +++ b/java-redis/proto-google-cloud-redis-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-redis-v1 - 2.49.0-SNAPSHOT + 2.49.0 proto-google-cloud-redis-v1 PROTO library for proto-google-cloud-redis-v1 com.google.cloud google-cloud-redis-parent - 2.49.0-SNAPSHOT + 2.49.0 diff --git a/java-redis/proto-google-cloud-redis-v1beta1/pom.xml b/java-redis/proto-google-cloud-redis-v1beta1/pom.xml index 7a584ba27751..5f9e2c318967 100644 --- a/java-redis/proto-google-cloud-redis-v1beta1/pom.xml +++ b/java-redis/proto-google-cloud-redis-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-redis-v1beta1 - 0.137.0-SNAPSHOT + 0.137.0 proto-google-cloud-redis-v1beta1 PROTO library for proto-google-cloud-redis-v1beta1 com.google.cloud google-cloud-redis-parent - 2.49.0-SNAPSHOT + 2.49.0 diff --git a/java-resource-settings/CHANGELOG.md b/java-resource-settings/CHANGELOG.md index cd322be57fe1..6c3d33033733 100644 --- a/java-resource-settings/CHANGELOG.md +++ b/java-resource-settings/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 1.46.0 (2024-06-27) + +* No change + + ## 1.45.0 (None) * No change diff --git a/java-resource-settings/README.md b/java-resource-settings/README.md index 739622a82a7b..331cec6eb968 100644 --- a/java-resource-settings/README.md +++ b/java-resource-settings/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-resource-settings - 1.45.0 + 1.46.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-resource-settings:1.45.0' +implementation 'com.google.cloud:google-cloud-resource-settings:1.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-resource-settings" % "1.45.0" +libraryDependencies += "com.google.cloud" % "google-cloud-resource-settings" % "1.46.0" ``` diff --git a/java-resource-settings/google-cloud-resource-settings-bom/pom.xml b/java-resource-settings/google-cloud-resource-settings-bom/pom.xml index d6a466be37f6..38ff9cae33f5 100644 --- a/java-resource-settings/google-cloud-resource-settings-bom/pom.xml +++ b/java-resource-settings/google-cloud-resource-settings-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-resource-settings-bom - 1.46.0-SNAPSHOT + 1.46.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-resource-settings - 1.46.0-SNAPSHOT + 1.46.0 com.google.api.grpc grpc-google-cloud-resource-settings-v1 - 1.46.0-SNAPSHOT + 1.46.0 com.google.api.grpc proto-google-cloud-resource-settings-v1 - 1.46.0-SNAPSHOT + 1.46.0 diff --git a/java-resource-settings/google-cloud-resource-settings/pom.xml b/java-resource-settings/google-cloud-resource-settings/pom.xml index b28741117ab9..267431131932 100644 --- a/java-resource-settings/google-cloud-resource-settings/pom.xml +++ b/java-resource-settings/google-cloud-resource-settings/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-resource-settings - 1.46.0-SNAPSHOT + 1.46.0 jar Google Resource Settings API Resource Settings API allows users to control and modify the behavior of their GCP resources (e.g., VM, firewall, Project, etc.) across the Cloud Resource Hierarchy. com.google.cloud google-cloud-resource-settings-parent - 1.46.0-SNAPSHOT + 1.46.0 google-cloud-resource-settings diff --git a/java-resource-settings/grpc-google-cloud-resource-settings-v1/pom.xml b/java-resource-settings/grpc-google-cloud-resource-settings-v1/pom.xml index 583d6bfb9253..6798c004a27f 100644 --- a/java-resource-settings/grpc-google-cloud-resource-settings-v1/pom.xml +++ b/java-resource-settings/grpc-google-cloud-resource-settings-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-resource-settings-v1 - 1.46.0-SNAPSHOT + 1.46.0 grpc-google-cloud-resource-settings-v1 GRPC library for google-cloud-resource-settings com.google.cloud google-cloud-resource-settings-parent - 1.46.0-SNAPSHOT + 1.46.0 diff --git a/java-resource-settings/pom.xml b/java-resource-settings/pom.xml index 4123fc9f586d..1f570c3dc830 100644 --- a/java-resource-settings/pom.xml +++ b/java-resource-settings/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-resource-settings-parent pom - 1.46.0-SNAPSHOT + 1.46.0 Google Resource Settings API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-resource-settings - 1.46.0-SNAPSHOT + 1.46.0 com.google.api.grpc grpc-google-cloud-resource-settings-v1 - 1.46.0-SNAPSHOT + 1.46.0 com.google.api.grpc proto-google-cloud-resource-settings-v1 - 1.46.0-SNAPSHOT + 1.46.0 diff --git a/java-resource-settings/proto-google-cloud-resource-settings-v1/pom.xml b/java-resource-settings/proto-google-cloud-resource-settings-v1/pom.xml index c54f92375c2f..9e5bf7584688 100644 --- a/java-resource-settings/proto-google-cloud-resource-settings-v1/pom.xml +++ b/java-resource-settings/proto-google-cloud-resource-settings-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-resource-settings-v1 - 1.46.0-SNAPSHOT + 1.46.0 proto-google-cloud-resource-settings-v1 Proto library for google-cloud-resource-settings com.google.cloud google-cloud-resource-settings-parent - 1.46.0-SNAPSHOT + 1.46.0 diff --git a/java-resourcemanager/CHANGELOG.md b/java-resourcemanager/CHANGELOG.md index d0ba0dfcc36f..b237bc4e402a 100644 --- a/java-resourcemanager/CHANGELOG.md +++ b/java-resourcemanager/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 1.48.0 (2024-06-27) + +* No change + + ## 1.47.0 (None) * No change diff --git a/java-resourcemanager/README.md b/java-resourcemanager/README.md index 31e103a295c5..9de3205c135c 100644 --- a/java-resourcemanager/README.md +++ b/java-resourcemanager/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-resourcemanager - 1.47.0 + 1.48.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-resourcemanager:1.47.0' +implementation 'com.google.cloud:google-cloud-resourcemanager:1.48.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-resourcemanager" % "1.47.0" +libraryDependencies += "com.google.cloud" % "google-cloud-resourcemanager" % "1.48.0" ``` diff --git a/java-resourcemanager/google-cloud-resourcemanager-bom/pom.xml b/java-resourcemanager/google-cloud-resourcemanager-bom/pom.xml index 0df82e4b10a6..41904abf2c3a 100644 --- a/java-resourcemanager/google-cloud-resourcemanager-bom/pom.xml +++ b/java-resourcemanager/google-cloud-resourcemanager-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-resourcemanager-bom - 1.48.0-SNAPSHOT + 1.48.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-resourcemanager - 1.48.0-SNAPSHOT + 1.48.0 com.google.api.grpc grpc-google-cloud-resourcemanager-v3 - 1.48.0-SNAPSHOT + 1.48.0 com.google.api.grpc proto-google-cloud-resourcemanager-v3 - 1.48.0-SNAPSHOT + 1.48.0 diff --git a/java-resourcemanager/google-cloud-resourcemanager/pom.xml b/java-resourcemanager/google-cloud-resourcemanager/pom.xml index bb2584362352..752f8038fe77 100644 --- a/java-resourcemanager/google-cloud-resourcemanager/pom.xml +++ b/java-resourcemanager/google-cloud-resourcemanager/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-resourcemanager jar - 1.48.0-SNAPSHOT + 1.48.0 Google Cloud Resource Manager Java idiomatic client for Google Cloud Resource Manager @@ -13,7 +13,7 @@ com.google.cloud google-cloud-resourcemanager-parent - 1.48.0-SNAPSHOT + 1.48.0 diff --git a/java-resourcemanager/grpc-google-cloud-resourcemanager-v3/pom.xml b/java-resourcemanager/grpc-google-cloud-resourcemanager-v3/pom.xml index 5f8c6cafc507..7328fd2366f8 100644 --- a/java-resourcemanager/grpc-google-cloud-resourcemanager-v3/pom.xml +++ b/java-resourcemanager/grpc-google-cloud-resourcemanager-v3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-resourcemanager-v3 - 1.48.0-SNAPSHOT + 1.48.0 grpc-google-cloud-resourcemanager-v3 GRPC library for google-cloud-resourcemanager com.google.cloud google-cloud-resourcemanager-parent - 1.48.0-SNAPSHOT + 1.48.0 diff --git a/java-resourcemanager/pom.xml b/java-resourcemanager/pom.xml index 154f1d7b9f07..9f098192bf79 100644 --- a/java-resourcemanager/pom.xml +++ b/java-resourcemanager/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-resourcemanager-parent pom - 1.48.0-SNAPSHOT + 1.48.0 Google Resource Manager API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,18 +29,18 @@ com.google.cloud google-cloud-resourcemanager - 1.48.0-SNAPSHOT + 1.48.0 com.google.api.grpc proto-google-cloud-resourcemanager-v3 - 1.48.0-SNAPSHOT + 1.48.0 com.google.api.grpc grpc-google-cloud-resourcemanager-v3 - 1.48.0-SNAPSHOT + 1.48.0 diff --git a/java-resourcemanager/proto-google-cloud-resourcemanager-v3/pom.xml b/java-resourcemanager/proto-google-cloud-resourcemanager-v3/pom.xml index 508a30b10ca0..4ee667ad09f6 100644 --- a/java-resourcemanager/proto-google-cloud-resourcemanager-v3/pom.xml +++ b/java-resourcemanager/proto-google-cloud-resourcemanager-v3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-resourcemanager-v3 - 1.48.0-SNAPSHOT + 1.48.0 proto-google-cloud-resourcemanager-v3 Proto library for google-cloud-resourcemanager com.google.cloud google-cloud-resourcemanager-parent - 1.48.0-SNAPSHOT + 1.48.0 diff --git a/java-retail/CHANGELOG.md b/java-retail/CHANGELOG.md index c612020d78b1..135d282f72ec 100644 --- a/java-retail/CHANGELOG.md +++ b/java-retail/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## 2.48.0 (2024-06-27) + +### Features + +* support merged facets ([4be1db5](https://github.com/googleapis/google-cloud-java/commit/4be1db5cfca842d85e167b8ed033ebcbcbd758dd)) +* support merged facets ([4be1db5](https://github.com/googleapis/google-cloud-java/commit/4be1db5cfca842d85e167b8ed033ebcbcbd758dd)) +* support merged facets ([4be1db5](https://github.com/googleapis/google-cloud-java/commit/4be1db5cfca842d85e167b8ed033ebcbcbd758dd)) + + + ## 2.47.0 (None) * No change diff --git a/java-retail/README.md b/java-retail/README.md index b96dbb7a9de6..01c1667463bb 100644 --- a/java-retail/README.md +++ b/java-retail/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-retail - 2.47.0 + 2.48.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-retail:2.47.0' +implementation 'com.google.cloud:google-cloud-retail:2.48.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-retail" % "2.47.0" +libraryDependencies += "com.google.cloud" % "google-cloud-retail" % "2.48.0" ``` diff --git a/java-retail/google-cloud-retail-bom/pom.xml b/java-retail/google-cloud-retail-bom/pom.xml index 33eb2eddd5d5..3f06a598aea8 100644 --- a/java-retail/google-cloud-retail-bom/pom.xml +++ b/java-retail/google-cloud-retail-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-retail-bom - 2.48.0-SNAPSHOT + 2.48.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,37 +27,37 @@ com.google.cloud google-cloud-retail - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc grpc-google-cloud-retail-v2 - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc grpc-google-cloud-retail-v2alpha - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc grpc-google-cloud-retail-v2beta - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc proto-google-cloud-retail-v2 - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc proto-google-cloud-retail-v2alpha - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc proto-google-cloud-retail-v2beta - 2.48.0-SNAPSHOT + 2.48.0 diff --git a/java-retail/google-cloud-retail/pom.xml b/java-retail/google-cloud-retail/pom.xml index f9daa8885f83..00017d856c2c 100644 --- a/java-retail/google-cloud-retail/pom.xml +++ b/java-retail/google-cloud-retail/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-retail - 2.48.0-SNAPSHOT + 2.48.0 jar Google Cloud Retail Retail solutions API. com.google.cloud google-cloud-retail-parent - 2.48.0-SNAPSHOT + 2.48.0 google-cloud-retail diff --git a/java-retail/grpc-google-cloud-retail-v2/pom.xml b/java-retail/grpc-google-cloud-retail-v2/pom.xml index a836d0254e81..2bc7c81c8ef1 100644 --- a/java-retail/grpc-google-cloud-retail-v2/pom.xml +++ b/java-retail/grpc-google-cloud-retail-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-retail-v2 - 2.48.0-SNAPSHOT + 2.48.0 grpc-google-cloud-retail-v2 GRPC library for google-cloud-retail com.google.cloud google-cloud-retail-parent - 2.48.0-SNAPSHOT + 2.48.0 diff --git a/java-retail/grpc-google-cloud-retail-v2alpha/pom.xml b/java-retail/grpc-google-cloud-retail-v2alpha/pom.xml index 0ca4a79b2d7d..dd5aeab6125f 100644 --- a/java-retail/grpc-google-cloud-retail-v2alpha/pom.xml +++ b/java-retail/grpc-google-cloud-retail-v2alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-retail-v2alpha - 2.48.0-SNAPSHOT + 2.48.0 grpc-google-cloud-retail-v2alpha GRPC library for google-cloud-retail com.google.cloud google-cloud-retail-parent - 2.48.0-SNAPSHOT + 2.48.0 diff --git a/java-retail/grpc-google-cloud-retail-v2beta/pom.xml b/java-retail/grpc-google-cloud-retail-v2beta/pom.xml index 355c6e1b670b..d59fe0973e9a 100644 --- a/java-retail/grpc-google-cloud-retail-v2beta/pom.xml +++ b/java-retail/grpc-google-cloud-retail-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-retail-v2beta - 2.48.0-SNAPSHOT + 2.48.0 grpc-google-cloud-retail-v2beta GRPC library for google-cloud-retail com.google.cloud google-cloud-retail-parent - 2.48.0-SNAPSHOT + 2.48.0 diff --git a/java-retail/pom.xml b/java-retail/pom.xml index c8ad18eea757..7af5b7ca36e2 100644 --- a/java-retail/pom.xml +++ b/java-retail/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-retail-parent pom - 2.48.0-SNAPSHOT + 2.48.0 Google Cloud Retail Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.cloud google-cloud-retail - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc proto-google-cloud-retail-v2beta - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc proto-google-cloud-retail-v2alpha - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc grpc-google-cloud-retail-v2beta - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc grpc-google-cloud-retail-v2alpha - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc proto-google-cloud-retail-v2 - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc grpc-google-cloud-retail-v2 - 2.48.0-SNAPSHOT + 2.48.0 diff --git a/java-retail/proto-google-cloud-retail-v2/pom.xml b/java-retail/proto-google-cloud-retail-v2/pom.xml index bb79b500185c..0db84d46f03c 100644 --- a/java-retail/proto-google-cloud-retail-v2/pom.xml +++ b/java-retail/proto-google-cloud-retail-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-retail-v2 - 2.48.0-SNAPSHOT + 2.48.0 proto-google-cloud-retail-v2 Proto library for google-cloud-retail com.google.cloud google-cloud-retail-parent - 2.48.0-SNAPSHOT + 2.48.0 diff --git a/java-retail/proto-google-cloud-retail-v2alpha/pom.xml b/java-retail/proto-google-cloud-retail-v2alpha/pom.xml index 6904a594b133..77b6804e4932 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/pom.xml +++ b/java-retail/proto-google-cloud-retail-v2alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-retail-v2alpha - 2.48.0-SNAPSHOT + 2.48.0 proto-google-cloud-retail-v2alpha Proto library for google-cloud-retail com.google.cloud google-cloud-retail-parent - 2.48.0-SNAPSHOT + 2.48.0 diff --git a/java-retail/proto-google-cloud-retail-v2beta/pom.xml b/java-retail/proto-google-cloud-retail-v2beta/pom.xml index 1edb86b25276..3955d17ae754 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/pom.xml +++ b/java-retail/proto-google-cloud-retail-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-retail-v2beta - 2.48.0-SNAPSHOT + 2.48.0 proto-google-cloud-retail-v2beta Proto library for google-cloud-retail com.google.cloud google-cloud-retail-parent - 2.48.0-SNAPSHOT + 2.48.0 diff --git a/java-run/CHANGELOG.md b/java-run/CHANGELOG.md index 8a824499ccaa..87c79048a523 100644 --- a/java-run/CHANGELOG.md +++ b/java-run/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.46.0 (2024-06-27) + +* No change + + ## 0.45.0 (None) * No change diff --git a/java-run/README.md b/java-run/README.md index 0e42898e6d96..ef19faabd733 100644 --- a/java-run/README.md +++ b/java-run/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-run - 0.45.0 + 0.46.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-run:0.45.0' +implementation 'com.google.cloud:google-cloud-run:0.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-run" % "0.45.0" +libraryDependencies += "com.google.cloud" % "google-cloud-run" % "0.46.0" ``` diff --git a/java-run/google-cloud-run-bom/pom.xml b/java-run/google-cloud-run-bom/pom.xml index 272e3b16fb86..b58f66a6a402 100644 --- a/java-run/google-cloud-run-bom/pom.xml +++ b/java-run/google-cloud-run-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-run-bom - 0.46.0-SNAPSHOT + 0.46.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-run - 0.46.0-SNAPSHOT + 0.46.0 com.google.api.grpc grpc-google-cloud-run-v2 - 0.46.0-SNAPSHOT + 0.46.0 com.google.api.grpc proto-google-cloud-run-v2 - 0.46.0-SNAPSHOT + 0.46.0 diff --git a/java-run/google-cloud-run/pom.xml b/java-run/google-cloud-run/pom.xml index e01a3d29f2fe..725f0a796c55 100644 --- a/java-run/google-cloud-run/pom.xml +++ b/java-run/google-cloud-run/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-run - 0.46.0-SNAPSHOT + 0.46.0 jar Google Cloud Run Cloud Run is a managed compute platform that enables you to run containers that are invocable via requests or events. com.google.cloud google-cloud-run-parent - 0.46.0-SNAPSHOT + 0.46.0 google-cloud-run diff --git a/java-run/grpc-google-cloud-run-v2/pom.xml b/java-run/grpc-google-cloud-run-v2/pom.xml index e39152867d71..420097caf1e6 100644 --- a/java-run/grpc-google-cloud-run-v2/pom.xml +++ b/java-run/grpc-google-cloud-run-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-run-v2 - 0.46.0-SNAPSHOT + 0.46.0 grpc-google-cloud-run-v2 GRPC library for google-cloud-run com.google.cloud google-cloud-run-parent - 0.46.0-SNAPSHOT + 0.46.0 diff --git a/java-run/pom.xml b/java-run/pom.xml index dbf258d2da74..fffab40be661 100644 --- a/java-run/pom.xml +++ b/java-run/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-run-parent pom - 0.46.0-SNAPSHOT + 0.46.0 Google Cloud Run Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-run - 0.46.0-SNAPSHOT + 0.46.0 com.google.api.grpc grpc-google-cloud-run-v2 - 0.46.0-SNAPSHOT + 0.46.0 com.google.api.grpc proto-google-cloud-run-v2 - 0.46.0-SNAPSHOT + 0.46.0 diff --git a/java-run/proto-google-cloud-run-v2/pom.xml b/java-run/proto-google-cloud-run-v2/pom.xml index c04c5b7cd0c6..e51ce6d3923b 100644 --- a/java-run/proto-google-cloud-run-v2/pom.xml +++ b/java-run/proto-google-cloud-run-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-run-v2 - 0.46.0-SNAPSHOT + 0.46.0 proto-google-cloud-run-v2 Proto library for google-cloud-run com.google.cloud google-cloud-run-parent - 0.46.0-SNAPSHOT + 0.46.0 diff --git a/java-samples/pom.xml b/java-samples/pom.xml index e1f190fc20de..c1e1ec1cf086 100644 --- a/java-samples/pom.xml +++ b/java-samples/pom.xml @@ -12,7 +12,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml diff --git a/java-scheduler/CHANGELOG.md b/java-scheduler/CHANGELOG.md index 5647936d76e9..895d57665da0 100644 --- a/java-scheduler/CHANGELOG.md +++ b/java-scheduler/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.46.0 (2024-06-27) + +* No change + + ## 2.45.0 (None) * No change diff --git a/java-scheduler/README.md b/java-scheduler/README.md index baaf8798a969..abeffd66a4c1 100644 --- a/java-scheduler/README.md +++ b/java-scheduler/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-scheduler - 2.45.0 + 2.46.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-scheduler:2.45.0' +implementation 'com.google.cloud:google-cloud-scheduler:2.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-scheduler" % "2.45.0" +libraryDependencies += "com.google.cloud" % "google-cloud-scheduler" % "2.46.0" ``` diff --git a/java-scheduler/google-cloud-scheduler-bom/pom.xml b/java-scheduler/google-cloud-scheduler-bom/pom.xml index 09fc260cf72d..22ac58b89c9b 100644 --- a/java-scheduler/google-cloud-scheduler-bom/pom.xml +++ b/java-scheduler/google-cloud-scheduler-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-scheduler-bom - 2.46.0-SNAPSHOT + 2.46.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-scheduler - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc grpc-google-cloud-scheduler-v1beta1 - 0.131.0-SNAPSHOT + 0.131.0 com.google.api.grpc grpc-google-cloud-scheduler-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc proto-google-cloud-scheduler-v1beta1 - 0.131.0-SNAPSHOT + 0.131.0 com.google.api.grpc proto-google-cloud-scheduler-v1 - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-scheduler/google-cloud-scheduler/pom.xml b/java-scheduler/google-cloud-scheduler/pom.xml index dd13ca248be3..1d5639e4f47c 100644 --- a/java-scheduler/google-cloud-scheduler/pom.xml +++ b/java-scheduler/google-cloud-scheduler/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-scheduler - 2.46.0-SNAPSHOT + 2.46.0 jar Google Cloud Scheduler Fully managed cron job service com.google.cloud google-cloud-scheduler-parent - 2.46.0-SNAPSHOT + 2.46.0 google-cloud-scheduler diff --git a/java-scheduler/grpc-google-cloud-scheduler-v1/pom.xml b/java-scheduler/grpc-google-cloud-scheduler-v1/pom.xml index 5d42fd56433c..159095e6c7b4 100644 --- a/java-scheduler/grpc-google-cloud-scheduler-v1/pom.xml +++ b/java-scheduler/grpc-google-cloud-scheduler-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-scheduler-v1 - 2.46.0-SNAPSHOT + 2.46.0 grpc-google-cloud-scheduler-v1 GRPC library for grpc-google-cloud-scheduler-v1 com.google.cloud google-cloud-scheduler-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-scheduler/grpc-google-cloud-scheduler-v1beta1/pom.xml b/java-scheduler/grpc-google-cloud-scheduler-v1beta1/pom.xml index 2eb22cc21c23..464de316ff49 100644 --- a/java-scheduler/grpc-google-cloud-scheduler-v1beta1/pom.xml +++ b/java-scheduler/grpc-google-cloud-scheduler-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-scheduler-v1beta1 - 0.131.0-SNAPSHOT + 0.131.0 grpc-google-cloud-scheduler-v1beta1 GRPC library for grpc-google-cloud-scheduler-v1beta1 com.google.cloud google-cloud-scheduler-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-scheduler/pom.xml b/java-scheduler/pom.xml index fc62451f7320..ae1e6b0831aa 100644 --- a/java-scheduler/pom.xml +++ b/java-scheduler/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-scheduler-parent pom - 2.46.0-SNAPSHOT + 2.46.0 Google Cloud Scheduler Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-scheduler-v1beta1 - 0.131.0-SNAPSHOT + 0.131.0 com.google.api.grpc proto-google-cloud-scheduler-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc grpc-google-cloud-scheduler-v1beta1 - 0.131.0-SNAPSHOT + 0.131.0 com.google.api.grpc grpc-google-cloud-scheduler-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.cloud google-cloud-scheduler - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-scheduler/proto-google-cloud-scheduler-v1/pom.xml b/java-scheduler/proto-google-cloud-scheduler-v1/pom.xml index e8825e727000..aac84cdb61fd 100644 --- a/java-scheduler/proto-google-cloud-scheduler-v1/pom.xml +++ b/java-scheduler/proto-google-cloud-scheduler-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-scheduler-v1 - 2.46.0-SNAPSHOT + 2.46.0 proto-google-cloud-scheduler-v1 PROTO library for proto-google-cloud-scheduler-v1 com.google.cloud google-cloud-scheduler-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-scheduler/proto-google-cloud-scheduler-v1beta1/pom.xml b/java-scheduler/proto-google-cloud-scheduler-v1beta1/pom.xml index 710b0150e1a6..08da04e444d5 100644 --- a/java-scheduler/proto-google-cloud-scheduler-v1beta1/pom.xml +++ b/java-scheduler/proto-google-cloud-scheduler-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-scheduler-v1beta1 - 0.131.0-SNAPSHOT + 0.131.0 proto-google-cloud-scheduler-v1beta1 PROTO library for proto-google-cloud-scheduler-v1beta1 com.google.cloud google-cloud-scheduler-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-secretmanager/CHANGELOG.md b/java-secretmanager/CHANGELOG.md index 627eba2e9ffe..86b9e77bfd19 100644 --- a/java-secretmanager/CHANGELOG.md +++ b/java-secretmanager/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.46.0 (2024-06-27) + +* No change + + ## 2.45.0 (None) * No change diff --git a/java-secretmanager/README.md b/java-secretmanager/README.md index 0a2b83e191a6..5c10f9640d51 100644 --- a/java-secretmanager/README.md +++ b/java-secretmanager/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-secretmanager - 2.45.0 + 2.46.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-secretmanager:2.45.0' +implementation 'com.google.cloud:google-cloud-secretmanager:2.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-secretmanager" % "2.45.0" +libraryDependencies += "com.google.cloud" % "google-cloud-secretmanager" % "2.46.0" ``` diff --git a/java-secretmanager/google-cloud-secretmanager-bom/pom.xml b/java-secretmanager/google-cloud-secretmanager-bom/pom.xml index 4e77640bcea0..9e7efc59472a 100644 --- a/java-secretmanager/google-cloud-secretmanager-bom/pom.xml +++ b/java-secretmanager/google-cloud-secretmanager-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-secretmanager-bom - 2.46.0-SNAPSHOT + 2.46.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-secretmanager - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc grpc-google-cloud-secretmanager-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc grpc-google-cloud-secretmanager-v1beta2 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc proto-google-cloud-secretmanager-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc proto-google-cloud-secretmanager-v1beta2 - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-secretmanager/google-cloud-secretmanager/pom.xml b/java-secretmanager/google-cloud-secretmanager/pom.xml index c150b8b5123f..3358d228de89 100644 --- a/java-secretmanager/google-cloud-secretmanager/pom.xml +++ b/java-secretmanager/google-cloud-secretmanager/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-secretmanager - 2.46.0-SNAPSHOT + 2.46.0 jar Google Cloud Secret Manager Java idiomatic client for Google Cloud Secret Manager com.google.cloud google-cloud-secretmanager-parent - 2.46.0-SNAPSHOT + 2.46.0 google-cloud-secretmanager diff --git a/java-secretmanager/grpc-google-cloud-secretmanager-v1/pom.xml b/java-secretmanager/grpc-google-cloud-secretmanager-v1/pom.xml index 80b6d81caccd..3d65a036aeca 100644 --- a/java-secretmanager/grpc-google-cloud-secretmanager-v1/pom.xml +++ b/java-secretmanager/grpc-google-cloud-secretmanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-secretmanager-v1 - 2.46.0-SNAPSHOT + 2.46.0 grpc-google-cloud-secretmanager-v1 GRPC library for grpc-google-cloud-secretmanager-v1 com.google.cloud google-cloud-secretmanager-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-secretmanager/grpc-google-cloud-secretmanager-v1beta2/pom.xml b/java-secretmanager/grpc-google-cloud-secretmanager-v1beta2/pom.xml index c8cbfcf9280e..856a3db9ce33 100644 --- a/java-secretmanager/grpc-google-cloud-secretmanager-v1beta2/pom.xml +++ b/java-secretmanager/grpc-google-cloud-secretmanager-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-secretmanager-v1beta2 - 2.46.0-SNAPSHOT + 2.46.0 grpc-google-cloud-secretmanager-v1beta2 GRPC library for google-cloud-secretmanager com.google.cloud google-cloud-secretmanager-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-secretmanager/pom.xml b/java-secretmanager/pom.xml index 28fbcf5aa841..d8c9786c9f58 100644 --- a/java-secretmanager/pom.xml +++ b/java-secretmanager/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-secretmanager-parent pom - 2.46.0-SNAPSHOT + 2.46.0 Google Cloud secretmanager Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-secretmanager-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc proto-google-cloud-secretmanager-v1beta2 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc grpc-google-cloud-secretmanager-v1beta2 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc grpc-google-cloud-secretmanager-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.cloud google-cloud-secretmanager - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/pom.xml b/java-secretmanager/proto-google-cloud-secretmanager-v1/pom.xml index 30bcd62e244b..2f4a3b8d1ab3 100644 --- a/java-secretmanager/proto-google-cloud-secretmanager-v1/pom.xml +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-secretmanager-v1 - 2.46.0-SNAPSHOT + 2.46.0 proto-google-cloud-secretmanager-v1 PROTO library for proto-google-cloud-secretmanager-v1 com.google.cloud google-cloud-secretmanager-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/pom.xml b/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/pom.xml index ed004928901a..78740bd65e39 100644 --- a/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/pom.xml +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-secretmanager-v1beta2 - 2.46.0-SNAPSHOT + 2.46.0 proto-google-cloud-secretmanager-v1beta2 Proto library for google-cloud-secretmanager com.google.cloud google-cloud-secretmanager-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-securesourcemanager/CHANGELOG.md b/java-securesourcemanager/CHANGELOG.md index 6946e1bd915b..71773e06871c 100644 --- a/java-securesourcemanager/CHANGELOG.md +++ b/java-securesourcemanager/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.16.0 (2024-06-27) + +* No change + + ## 0.15.0 (None) * No change diff --git a/java-securesourcemanager/README.md b/java-securesourcemanager/README.md index b69eb60e04b6..60730ebf88b0 100644 --- a/java-securesourcemanager/README.md +++ b/java-securesourcemanager/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-securesourcemanager - 0.15.0 + 0.16.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securesourcemanager:0.15.0' +implementation 'com.google.cloud:google-cloud-securesourcemanager:0.16.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securesourcemanager" % "0.15.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securesourcemanager" % "0.16.0" ``` diff --git a/java-securesourcemanager/google-cloud-securesourcemanager-bom/pom.xml b/java-securesourcemanager/google-cloud-securesourcemanager-bom/pom.xml index 87f057dfaf65..851b7e0699d0 100644 --- a/java-securesourcemanager/google-cloud-securesourcemanager-bom/pom.xml +++ b/java-securesourcemanager/google-cloud-securesourcemanager-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-securesourcemanager-bom - 0.16.0-SNAPSHOT + 0.16.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-securesourcemanager - 0.16.0-SNAPSHOT + 0.16.0 com.google.api.grpc grpc-google-cloud-securesourcemanager-v1 - 0.16.0-SNAPSHOT + 0.16.0 com.google.api.grpc proto-google-cloud-securesourcemanager-v1 - 0.16.0-SNAPSHOT + 0.16.0 diff --git a/java-securesourcemanager/google-cloud-securesourcemanager/pom.xml b/java-securesourcemanager/google-cloud-securesourcemanager/pom.xml index 57b81d3f54bd..ed97905bb8c5 100644 --- a/java-securesourcemanager/google-cloud-securesourcemanager/pom.xml +++ b/java-securesourcemanager/google-cloud-securesourcemanager/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-securesourcemanager - 0.16.0-SNAPSHOT + 0.16.0 jar Google Secure Source Manager API Secure Source Manager API Regionally deployed, single-tenant managed source code repository hosted on @@ -11,7 +11,7 @@ com.google.cloud google-cloud-securesourcemanager-parent - 0.16.0-SNAPSHOT + 0.16.0 google-cloud-securesourcemanager diff --git a/java-securesourcemanager/grpc-google-cloud-securesourcemanager-v1/pom.xml b/java-securesourcemanager/grpc-google-cloud-securesourcemanager-v1/pom.xml index 6a81a5abb6b9..7c0679671137 100644 --- a/java-securesourcemanager/grpc-google-cloud-securesourcemanager-v1/pom.xml +++ b/java-securesourcemanager/grpc-google-cloud-securesourcemanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-securesourcemanager-v1 - 0.16.0-SNAPSHOT + 0.16.0 grpc-google-cloud-securesourcemanager-v1 GRPC library for google-cloud-securesourcemanager com.google.cloud google-cloud-securesourcemanager-parent - 0.16.0-SNAPSHOT + 0.16.0 diff --git a/java-securesourcemanager/pom.xml b/java-securesourcemanager/pom.xml index c0b96940c25c..d5a2700aa737 100644 --- a/java-securesourcemanager/pom.xml +++ b/java-securesourcemanager/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-securesourcemanager-parent pom - 0.16.0-SNAPSHOT + 0.16.0 Google Secure Source Manager API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-securesourcemanager - 0.16.0-SNAPSHOT + 0.16.0 com.google.api.grpc grpc-google-cloud-securesourcemanager-v1 - 0.16.0-SNAPSHOT + 0.16.0 com.google.api.grpc proto-google-cloud-securesourcemanager-v1 - 0.16.0-SNAPSHOT + 0.16.0 diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/pom.xml b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/pom.xml index 201edc070a47..756c26baf6d0 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/pom.xml +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-securesourcemanager-v1 - 0.16.0-SNAPSHOT + 0.16.0 proto-google-cloud-securesourcemanager-v1 Proto library for google-cloud-securesourcemanager com.google.cloud google-cloud-securesourcemanager-parent - 0.16.0-SNAPSHOT + 0.16.0 diff --git a/java-security-private-ca/CHANGELOG.md b/java-security-private-ca/CHANGELOG.md index 4243891f68ea..44cac4ceaced 100644 --- a/java-security-private-ca/CHANGELOG.md +++ b/java-security-private-ca/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.48.0 (2024-06-27) + +* No change + + ## 2.47.0 (None) * No change diff --git a/java-security-private-ca/README.md b/java-security-private-ca/README.md index fd1942c42648..78d11914ef5d 100644 --- a/java-security-private-ca/README.md +++ b/java-security-private-ca/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-security-private-ca - 2.47.0 + 2.48.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-security-private-ca:2.47.0' +implementation 'com.google.cloud:google-cloud-security-private-ca:2.48.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-security-private-ca" % "2.47.0" +libraryDependencies += "com.google.cloud" % "google-cloud-security-private-ca" % "2.48.0" ``` diff --git a/java-security-private-ca/google-cloud-security-private-ca-bom/pom.xml b/java-security-private-ca/google-cloud-security-private-ca-bom/pom.xml index 1cb9e0edcb03..a98c54182e1c 100644 --- a/java-security-private-ca/google-cloud-security-private-ca-bom/pom.xml +++ b/java-security-private-ca/google-cloud-security-private-ca-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-security-private-ca-bom - 2.48.0-SNAPSHOT + 2.48.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-security-private-ca - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc grpc-google-cloud-security-private-ca-v1beta1 - 0.55.0-SNAPSHOT + 0.55.0 com.google.api.grpc grpc-google-cloud-security-private-ca-v1 - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc proto-google-cloud-security-private-ca-v1beta1 - 0.55.0-SNAPSHOT + 0.55.0 com.google.api.grpc proto-google-cloud-security-private-ca-v1 - 2.48.0-SNAPSHOT + 2.48.0 diff --git a/java-security-private-ca/google-cloud-security-private-ca/pom.xml b/java-security-private-ca/google-cloud-security-private-ca/pom.xml index 3cd38fea680d..10753b04f3b1 100644 --- a/java-security-private-ca/google-cloud-security-private-ca/pom.xml +++ b/java-security-private-ca/google-cloud-security-private-ca/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-security-private-ca - 2.48.0-SNAPSHOT + 2.48.0 jar Google Certificate Authority Service simplifies the deployment and management of private CAs without managing infrastructure. com.google.cloud google-cloud-security-private-ca-parent - 2.48.0-SNAPSHOT + 2.48.0 google-cloud-security-private-ca diff --git a/java-security-private-ca/grpc-google-cloud-security-private-ca-v1/pom.xml b/java-security-private-ca/grpc-google-cloud-security-private-ca-v1/pom.xml index fa721bfaaae1..cd9c6db85db3 100644 --- a/java-security-private-ca/grpc-google-cloud-security-private-ca-v1/pom.xml +++ b/java-security-private-ca/grpc-google-cloud-security-private-ca-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-security-private-ca-v1 - 2.48.0-SNAPSHOT + 2.48.0 grpc-google-cloud-security-private-ca-v1 GRPC library for google-cloud-security-private-ca com.google.cloud google-cloud-security-private-ca-parent - 2.48.0-SNAPSHOT + 2.48.0 diff --git a/java-security-private-ca/grpc-google-cloud-security-private-ca-v1beta1/pom.xml b/java-security-private-ca/grpc-google-cloud-security-private-ca-v1beta1/pom.xml index 921c83b3ba04..1fa65ef9e756 100644 --- a/java-security-private-ca/grpc-google-cloud-security-private-ca-v1beta1/pom.xml +++ b/java-security-private-ca/grpc-google-cloud-security-private-ca-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-security-private-ca-v1beta1 - 0.55.0-SNAPSHOT + 0.55.0 grpc-google-cloud-security-private-ca-v1beta1 GRPC library for google-cloud-security-private-ca com.google.cloud google-cloud-security-private-ca-parent - 2.48.0-SNAPSHOT + 2.48.0 diff --git a/java-security-private-ca/pom.xml b/java-security-private-ca/pom.xml index f3bfaf624616..e27ec0564717 100644 --- a/java-security-private-ca/pom.xml +++ b/java-security-private-ca/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-security-private-ca-parent pom - 2.48.0-SNAPSHOT + 2.48.0 Google Certificate Authority Service Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-security-private-ca - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc proto-google-cloud-security-private-ca-v1 - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc grpc-google-cloud-security-private-ca-v1 - 2.48.0-SNAPSHOT + 2.48.0 com.google.api.grpc proto-google-cloud-security-private-ca-v1beta1 - 0.55.0-SNAPSHOT + 0.55.0 com.google.api.grpc grpc-google-cloud-security-private-ca-v1beta1 - 0.55.0-SNAPSHOT + 0.55.0 diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/pom.xml b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/pom.xml index 4746c397f95f..aee9569d3f56 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/pom.xml +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-security-private-ca-v1 - 2.48.0-SNAPSHOT + 2.48.0 proto-google-cloud-security-private-ca-v1 Proto library for google-cloud-security-private-ca com.google.cloud google-cloud-security-private-ca-parent - 2.48.0-SNAPSHOT + 2.48.0 diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1beta1/pom.xml b/java-security-private-ca/proto-google-cloud-security-private-ca-v1beta1/pom.xml index 096c98b84d7d..a979dab16f5f 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1beta1/pom.xml +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-security-private-ca-v1beta1 - 0.55.0-SNAPSHOT + 0.55.0 proto-google-cloud-security-private-ca-v1beta1 Proto library for google-cloud-security-private-ca com.google.cloud google-cloud-security-private-ca-parent - 2.48.0-SNAPSHOT + 2.48.0 diff --git a/java-securitycenter-settings/CHANGELOG.md b/java-securitycenter-settings/CHANGELOG.md index cbe0ebcd5576..3bb5cabf97cf 100644 --- a/java-securitycenter-settings/CHANGELOG.md +++ b/java-securitycenter-settings/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 0.49.0 (2024-06-27) + +### Features + +* Add toxic_combination and group_memberships fields to finding ([666a3ac](https://github.com/googleapis/google-cloud-java/commit/666a3ac8cd0cb45da3555a1bef8dfe3edf57d257)) +* Add toxic_combination and group_memberships fields to finding ([666a3ac](https://github.com/googleapis/google-cloud-java/commit/666a3ac8cd0cb45da3555a1bef8dfe3edf57d257)) + + + ## 0.48.0 (None) * No change diff --git a/java-securitycenter-settings/README.md b/java-securitycenter-settings/README.md index e2d51875c017..9d50f79dda51 100644 --- a/java-securitycenter-settings/README.md +++ b/java-securitycenter-settings/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-securitycenter-settings - 0.48.0 + 0.49.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securitycenter-settings:0.48.0' +implementation 'com.google.cloud:google-cloud-securitycenter-settings:0.49.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter-settings" % "0.48.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter-settings" % "0.49.0" ``` diff --git a/java-securitycenter-settings/google-cloud-securitycenter-settings-bom/pom.xml b/java-securitycenter-settings/google-cloud-securitycenter-settings-bom/pom.xml index ec2a1427a879..d0efe4e5a18a 100644 --- a/java-securitycenter-settings/google-cloud-securitycenter-settings-bom/pom.xml +++ b/java-securitycenter-settings/google-cloud-securitycenter-settings-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-securitycenter-settings-bom - 0.49.0-SNAPSHOT + 0.49.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -23,17 +23,17 @@ com.google.cloud google-cloud-securitycenter-settings - 0.49.0-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-securitycenter-settings-v1beta1 - 0.49.0-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-securitycenter-settings-v1beta1 - 0.49.0-SNAPSHOT + 0.49.0 diff --git a/java-securitycenter-settings/google-cloud-securitycenter-settings/pom.xml b/java-securitycenter-settings/google-cloud-securitycenter-settings/pom.xml index fd4edef5d379..7e9ec8463c0b 100644 --- a/java-securitycenter-settings/google-cloud-securitycenter-settings/pom.xml +++ b/java-securitycenter-settings/google-cloud-securitycenter-settings/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-securitycenter-settings - 0.49.0-SNAPSHOT + 0.49.0 jar Google Security Command Center Settings API is the canonical security and data risk database for Google Cloud. Security Command Center enables you to understand your security and data attack surface by providing asset inventory, discovery, search, and management. com.google.cloud google-cloud-securitycenter-settings-parent - 0.49.0-SNAPSHOT + 0.49.0 google-cloud-securitycenter-settings diff --git a/java-securitycenter-settings/grpc-google-cloud-securitycenter-settings-v1beta1/pom.xml b/java-securitycenter-settings/grpc-google-cloud-securitycenter-settings-v1beta1/pom.xml index 21607a184768..1a6d85c21e41 100644 --- a/java-securitycenter-settings/grpc-google-cloud-securitycenter-settings-v1beta1/pom.xml +++ b/java-securitycenter-settings/grpc-google-cloud-securitycenter-settings-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-securitycenter-settings-v1beta1 - 0.49.0-SNAPSHOT + 0.49.0 grpc-google-cloud-securitycenter-settings-v1beta1 GRPC library for grpc-google-cloud-securitycenter-settings-v1beta1 com.google.cloud google-cloud-securitycenter-settings-parent - 0.49.0-SNAPSHOT + 0.49.0 diff --git a/java-securitycenter-settings/pom.xml b/java-securitycenter-settings/pom.xml index 94c74dff6fdc..68ca228b2640 100644 --- a/java-securitycenter-settings/pom.xml +++ b/java-securitycenter-settings/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-securitycenter-settings-parent pom - 0.49.0-SNAPSHOT + 0.49.0 Google Security Command Center Settings API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-securitycenter-settings - 0.49.0-SNAPSHOT + 0.49.0 com.google.api.grpc proto-google-cloud-securitycenter-settings-v1beta1 - 0.49.0-SNAPSHOT + 0.49.0 com.google.api.grpc grpc-google-cloud-securitycenter-settings-v1beta1 - 0.49.0-SNAPSHOT + 0.49.0 diff --git a/java-securitycenter-settings/proto-google-cloud-securitycenter-settings-v1beta1/pom.xml b/java-securitycenter-settings/proto-google-cloud-securitycenter-settings-v1beta1/pom.xml index fdc4b379af55..f33c4ebe5d4c 100644 --- a/java-securitycenter-settings/proto-google-cloud-securitycenter-settings-v1beta1/pom.xml +++ b/java-securitycenter-settings/proto-google-cloud-securitycenter-settings-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-securitycenter-settings-v1beta1 - 0.49.0-SNAPSHOT + 0.49.0 proto-google-cloud-securitycenter-settings-v1beta1 PROTO library for proto-google-cloud-securitycenter-settings-v1beta1 com.google.cloud google-cloud-securitycenter-settings-parent - 0.49.0-SNAPSHOT + 0.49.0 diff --git a/java-securitycenter/CHANGELOG.md b/java-securitycenter/CHANGELOG.md index 9c5964324b4b..1abde7be6023 100644 --- a/java-securitycenter/CHANGELOG.md +++ b/java-securitycenter/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 2.54.0 (2024-06-27) + +### Features + +* Add toxic_combination and group_memberships fields to finding ([666a3ac](https://github.com/googleapis/google-cloud-java/commit/666a3ac8cd0cb45da3555a1bef8dfe3edf57d257)) +* Add toxic_combination and group_memberships fields to finding ([666a3ac](https://github.com/googleapis/google-cloud-java/commit/666a3ac8cd0cb45da3555a1bef8dfe3edf57d257)) + + + ## 2.53.0 (None) * No change diff --git a/java-securitycenter/README.md b/java-securitycenter/README.md index da3b72d62c35..fd6540f38f0f 100644 --- a/java-securitycenter/README.md +++ b/java-securitycenter/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-securitycenter - 2.53.0 + 2.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securitycenter:2.53.0' +implementation 'com.google.cloud:google-cloud-securitycenter:2.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter" % "2.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter" % "2.54.0" ``` diff --git a/java-securitycenter/google-cloud-securitycenter-bom/pom.xml b/java-securitycenter/google-cloud-securitycenter-bom/pom.xml index 7cae0feebec3..318322132324 100644 --- a/java-securitycenter/google-cloud-securitycenter-bom/pom.xml +++ b/java-securitycenter/google-cloud-securitycenter-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-securitycenter-bom - 2.54.0-SNAPSHOT + 2.54.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -23,47 +23,47 @@ com.google.cloud google-cloud-securitycenter - 2.54.0-SNAPSHOT + 2.54.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1 - 2.54.0-SNAPSHOT + 2.54.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1beta1 - 0.149.0-SNAPSHOT + 0.149.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1p1beta1 - 0.149.0-SNAPSHOT + 0.149.0 com.google.api.grpc grpc-google-cloud-securitycenter-v2 - 2.54.0-SNAPSHOT + 2.54.0 com.google.api.grpc proto-google-cloud-securitycenter-v1 - 2.54.0-SNAPSHOT + 2.54.0 com.google.api.grpc proto-google-cloud-securitycenter-v1beta1 - 0.149.0-SNAPSHOT + 0.149.0 com.google.api.grpc proto-google-cloud-securitycenter-v1p1beta1 - 0.149.0-SNAPSHOT + 0.149.0 com.google.api.grpc proto-google-cloud-securitycenter-v2 - 2.54.0-SNAPSHOT + 2.54.0 diff --git a/java-securitycenter/google-cloud-securitycenter/pom.xml b/java-securitycenter/google-cloud-securitycenter/pom.xml index c3918e26ca38..c30468780d58 100644 --- a/java-securitycenter/google-cloud-securitycenter/pom.xml +++ b/java-securitycenter/google-cloud-securitycenter/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-securitycenter - 2.54.0-SNAPSHOT + 2.54.0 jar Google Cloud Security Command Center Java idiomatic client for Google Cloud Security Command Center com.google.cloud google-cloud-securitycenter-parent - 2.54.0-SNAPSHOT + 2.54.0 google-cloud-securitycenter diff --git a/java-securitycenter/grpc-google-cloud-securitycenter-v1/pom.xml b/java-securitycenter/grpc-google-cloud-securitycenter-v1/pom.xml index 5e1bdd6854ac..0ab96a5c727a 100644 --- a/java-securitycenter/grpc-google-cloud-securitycenter-v1/pom.xml +++ b/java-securitycenter/grpc-google-cloud-securitycenter-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1 - 2.54.0-SNAPSHOT + 2.54.0 grpc-google-cloud-securitycenter-v1 GRPC library for grpc-google-cloud-securitycenter-v1 com.google.cloud google-cloud-securitycenter-parent - 2.54.0-SNAPSHOT + 2.54.0 diff --git a/java-securitycenter/grpc-google-cloud-securitycenter-v1beta1/pom.xml b/java-securitycenter/grpc-google-cloud-securitycenter-v1beta1/pom.xml index 9cf203e6d675..dbe2db6e02cb 100644 --- a/java-securitycenter/grpc-google-cloud-securitycenter-v1beta1/pom.xml +++ b/java-securitycenter/grpc-google-cloud-securitycenter-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1beta1 - 0.149.0-SNAPSHOT + 0.149.0 grpc-google-cloud-securitycenter-v1beta1 GRPC library for grpc-google-cloud-securitycenter-v1beta1 com.google.cloud google-cloud-securitycenter-parent - 2.54.0-SNAPSHOT + 2.54.0 diff --git a/java-securitycenter/grpc-google-cloud-securitycenter-v1p1beta1/pom.xml b/java-securitycenter/grpc-google-cloud-securitycenter-v1p1beta1/pom.xml index 9d68cd5ddc4d..db329dff5c58 100644 --- a/java-securitycenter/grpc-google-cloud-securitycenter-v1p1beta1/pom.xml +++ b/java-securitycenter/grpc-google-cloud-securitycenter-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1p1beta1 - 0.149.0-SNAPSHOT + 0.149.0 grpc-google-cloud-securitycenter-v1p1beta1 GRPC library for grpc-google-cloud-securitycenter-v1p1beta1 com.google.cloud google-cloud-securitycenter-parent - 2.54.0-SNAPSHOT + 2.54.0 diff --git a/java-securitycenter/grpc-google-cloud-securitycenter-v2/pom.xml b/java-securitycenter/grpc-google-cloud-securitycenter-v2/pom.xml index 5659dcea86ec..5f36a63574b3 100644 --- a/java-securitycenter/grpc-google-cloud-securitycenter-v2/pom.xml +++ b/java-securitycenter/grpc-google-cloud-securitycenter-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-securitycenter-v2 - 2.54.0-SNAPSHOT + 2.54.0 grpc-google-cloud-securitycenter-v2 GRPC library for google-cloud-securitycenter com.google.cloud google-cloud-securitycenter-parent - 2.54.0-SNAPSHOT + 2.54.0 diff --git a/java-securitycenter/pom.xml b/java-securitycenter/pom.xml index 9cb6c8682e90..d07c5f219077 100644 --- a/java-securitycenter/pom.xml +++ b/java-securitycenter/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-securitycenter-parent pom - 2.54.0-SNAPSHOT + 2.54.0 Google Cloud Security Command Center Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,47 +29,47 @@ com.google.api.grpc proto-google-cloud-securitycenter-v1 - 2.54.0-SNAPSHOT + 2.54.0 com.google.api.grpc proto-google-cloud-securitycenter-v2 - 2.54.0-SNAPSHOT + 2.54.0 com.google.api.grpc grpc-google-cloud-securitycenter-v2 - 2.54.0-SNAPSHOT + 2.54.0 com.google.api.grpc proto-google-cloud-securitycenter-v1beta1 - 0.149.0-SNAPSHOT + 0.149.0 com.google.api.grpc proto-google-cloud-securitycenter-v1p1beta1 - 0.149.0-SNAPSHOT + 0.149.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1 - 2.54.0-SNAPSHOT + 2.54.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1beta1 - 0.149.0-SNAPSHOT + 0.149.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1p1beta1 - 0.149.0-SNAPSHOT + 0.149.0 com.google.cloud google-cloud-securitycenter - 2.54.0-SNAPSHOT + 2.54.0 diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/pom.xml b/java-securitycenter/proto-google-cloud-securitycenter-v1/pom.xml index 0cd984aa4153..e9bbec356a74 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/pom.xml +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-securitycenter-v1 - 2.54.0-SNAPSHOT + 2.54.0 proto-google-cloud-securitycenter-v1 PROTO library for proto-google-cloud-securitycenter-v1 com.google.cloud google-cloud-securitycenter-parent - 2.54.0-SNAPSHOT + 2.54.0 diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1beta1/pom.xml b/java-securitycenter/proto-google-cloud-securitycenter-v1beta1/pom.xml index 3387cccc345c..322affad725a 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1beta1/pom.xml +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-securitycenter-v1beta1 - 0.149.0-SNAPSHOT + 0.149.0 proto-google-cloud-securitycenter-v1beta1 PROTO library for proto-google-cloud-securitycenter-v1beta1 com.google.cloud google-cloud-securitycenter-parent - 2.54.0-SNAPSHOT + 2.54.0 diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1p1beta1/pom.xml b/java-securitycenter/proto-google-cloud-securitycenter-v1p1beta1/pom.xml index 2ca0940bc1f1..7e6593199132 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1p1beta1/pom.xml +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-securitycenter-v1p1beta1 - 0.149.0-SNAPSHOT + 0.149.0 proto-google-cloud-securitycenter-v1p1beta1 PROTO library for proto-google-cloud-securitycenter-v1p1beta1 com.google.cloud google-cloud-securitycenter-parent - 2.54.0-SNAPSHOT + 2.54.0 diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/pom.xml b/java-securitycenter/proto-google-cloud-securitycenter-v2/pom.xml index acd086a73684..c30958da8c1d 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/pom.xml +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-securitycenter-v2 - 2.54.0-SNAPSHOT + 2.54.0 proto-google-cloud-securitycenter-v2 Proto library for google-cloud-securitycenter com.google.cloud google-cloud-securitycenter-parent - 2.54.0-SNAPSHOT + 2.54.0 diff --git a/java-securitycentermanagement/CHANGELOG.md b/java-securitycentermanagement/CHANGELOG.md index 8d8c37204384..5af8a5630232 100644 --- a/java-securitycentermanagement/CHANGELOG.md +++ b/java-securitycentermanagement/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## 0.14.0 (2024-06-27) + +### Features + +* add `TOXIC_COMBINATION` to `FindingClass` enum ([666a3ac](https://github.com/googleapis/google-cloud-java/commit/666a3ac8cd0cb45da3555a1bef8dfe3edf57d257)) +* add an INGEST_ONLY EnablementState ([666a3ac](https://github.com/googleapis/google-cloud-java/commit/666a3ac8cd0cb45da3555a1bef8dfe3edf57d257)) +* minor docs formatting in `UpdateSecurityCenterServiceRequest.validate_only` ([4be1db5](https://github.com/googleapis/google-cloud-java/commit/4be1db5cfca842d85e167b8ed033ebcbcbd758dd)) + + + ## 0.13.0 (None) * No change diff --git a/java-securitycentermanagement/README.md b/java-securitycentermanagement/README.md index b8043ed7e956..6bec4db0a131 100644 --- a/java-securitycentermanagement/README.md +++ b/java-securitycentermanagement/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-securitycentermanagement - 0.13.0 + 0.14.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securitycentermanagement:0.13.0' +implementation 'com.google.cloud:google-cloud-securitycentermanagement:0.14.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securitycentermanagement" % "0.13.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securitycentermanagement" % "0.14.0" ``` diff --git a/java-securitycentermanagement/google-cloud-securitycentermanagement-bom/pom.xml b/java-securitycentermanagement/google-cloud-securitycentermanagement-bom/pom.xml index 34b5284ac223..63b7a7c6dc2c 100644 --- a/java-securitycentermanagement/google-cloud-securitycentermanagement-bom/pom.xml +++ b/java-securitycentermanagement/google-cloud-securitycentermanagement-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-securitycentermanagement-bom - 0.14.0-SNAPSHOT + 0.14.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-securitycentermanagement - 0.14.0-SNAPSHOT + 0.14.0 com.google.api.grpc grpc-google-cloud-securitycentermanagement-v1 - 0.14.0-SNAPSHOT + 0.14.0 com.google.api.grpc proto-google-cloud-securitycentermanagement-v1 - 0.14.0-SNAPSHOT + 0.14.0 diff --git a/java-securitycentermanagement/google-cloud-securitycentermanagement/pom.xml b/java-securitycentermanagement/google-cloud-securitycentermanagement/pom.xml index 1fd7cdf4ae68..91ab86823b39 100644 --- a/java-securitycentermanagement/google-cloud-securitycentermanagement/pom.xml +++ b/java-securitycentermanagement/google-cloud-securitycentermanagement/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-securitycentermanagement - 0.14.0-SNAPSHOT + 0.14.0 jar Google Security Center Management API Security Center Management API Security Center Management API com.google.cloud google-cloud-securitycentermanagement-parent - 0.14.0-SNAPSHOT + 0.14.0 google-cloud-securitycentermanagement diff --git a/java-securitycentermanagement/grpc-google-cloud-securitycentermanagement-v1/pom.xml b/java-securitycentermanagement/grpc-google-cloud-securitycentermanagement-v1/pom.xml index 9bdcca69215b..38e909039723 100644 --- a/java-securitycentermanagement/grpc-google-cloud-securitycentermanagement-v1/pom.xml +++ b/java-securitycentermanagement/grpc-google-cloud-securitycentermanagement-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-securitycentermanagement-v1 - 0.14.0-SNAPSHOT + 0.14.0 grpc-google-cloud-securitycentermanagement-v1 GRPC library for google-cloud-securitycentermanagement com.google.cloud google-cloud-securitycentermanagement-parent - 0.14.0-SNAPSHOT + 0.14.0 diff --git a/java-securitycentermanagement/pom.xml b/java-securitycentermanagement/pom.xml index 5bcd1c0f9074..bc6c7550dafe 100644 --- a/java-securitycentermanagement/pom.xml +++ b/java-securitycentermanagement/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-securitycentermanagement-parent pom - 0.14.0-SNAPSHOT + 0.14.0 Google Security Center Management API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-securitycentermanagement - 0.14.0-SNAPSHOT + 0.14.0 com.google.api.grpc grpc-google-cloud-securitycentermanagement-v1 - 0.14.0-SNAPSHOT + 0.14.0 com.google.api.grpc proto-google-cloud-securitycentermanagement-v1 - 0.14.0-SNAPSHOT + 0.14.0 diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/pom.xml b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/pom.xml index ef319ff55eac..0bdcd2195f05 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/pom.xml +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-securitycentermanagement-v1 - 0.14.0-SNAPSHOT + 0.14.0 proto-google-cloud-securitycentermanagement-v1 Proto library for google-cloud-securitycentermanagement com.google.cloud google-cloud-securitycentermanagement-parent - 0.14.0-SNAPSHOT + 0.14.0 diff --git a/java-securityposture/CHANGELOG.md b/java-securityposture/CHANGELOG.md index 973bf3481d7e..db7469524737 100644 --- a/java-securityposture/CHANGELOG.md +++ b/java-securityposture/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.11.0 (2024-06-27) + +* No change + + ## 0.10.0 (None) * No change diff --git a/java-securityposture/README.md b/java-securityposture/README.md index 09ff2eb795cc..a35456806aa1 100644 --- a/java-securityposture/README.md +++ b/java-securityposture/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-securityposture - 0.10.0 + 0.11.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securityposture:0.10.0' +implementation 'com.google.cloud:google-cloud-securityposture:0.11.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securityposture" % "0.10.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securityposture" % "0.11.0" ``` diff --git a/java-securityposture/google-cloud-securityposture-bom/pom.xml b/java-securityposture/google-cloud-securityposture-bom/pom.xml index cc168d3764b9..c2ff32cdadac 100644 --- a/java-securityposture/google-cloud-securityposture-bom/pom.xml +++ b/java-securityposture/google-cloud-securityposture-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-securityposture-bom - 0.11.0-SNAPSHOT + 0.11.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-securityposture - 0.11.0-SNAPSHOT + 0.11.0 com.google.api.grpc grpc-google-cloud-securityposture-v1 - 0.11.0-SNAPSHOT + 0.11.0 com.google.api.grpc proto-google-cloud-securityposture-v1 - 0.11.0-SNAPSHOT + 0.11.0 diff --git a/java-securityposture/google-cloud-securityposture/pom.xml b/java-securityposture/google-cloud-securityposture/pom.xml index 8e30f196c999..e58c812491a9 100644 --- a/java-securityposture/google-cloud-securityposture/pom.xml +++ b/java-securityposture/google-cloud-securityposture/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-securityposture - 0.11.0-SNAPSHOT + 0.11.0 jar Google Security Posture API Security Posture API Security Posture is a comprehensive framework of policy sets that empowers organizations to define, assess early, deploy, and monitor their security measures in a unified way and helps simplify governance and reduces administrative toil. com.google.cloud google-cloud-securityposture-parent - 0.11.0-SNAPSHOT + 0.11.0 google-cloud-securityposture diff --git a/java-securityposture/grpc-google-cloud-securityposture-v1/pom.xml b/java-securityposture/grpc-google-cloud-securityposture-v1/pom.xml index 3554dcf9384a..e4f702347c33 100644 --- a/java-securityposture/grpc-google-cloud-securityposture-v1/pom.xml +++ b/java-securityposture/grpc-google-cloud-securityposture-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-securityposture-v1 - 0.11.0-SNAPSHOT + 0.11.0 grpc-google-cloud-securityposture-v1 GRPC library for google-cloud-securityposture com.google.cloud google-cloud-securityposture-parent - 0.11.0-SNAPSHOT + 0.11.0 diff --git a/java-securityposture/pom.xml b/java-securityposture/pom.xml index 8cdf01d1714f..e03dfc2afa34 100644 --- a/java-securityposture/pom.xml +++ b/java-securityposture/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-securityposture-parent pom - 0.11.0-SNAPSHOT + 0.11.0 Google Security Posture API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-securityposture - 0.11.0-SNAPSHOT + 0.11.0 com.google.api.grpc grpc-google-cloud-securityposture-v1 - 0.11.0-SNAPSHOT + 0.11.0 com.google.api.grpc proto-google-cloud-securityposture-v1 - 0.11.0-SNAPSHOT + 0.11.0 diff --git a/java-securityposture/proto-google-cloud-securityposture-v1/pom.xml b/java-securityposture/proto-google-cloud-securityposture-v1/pom.xml index 573587d045c2..2170dbe4316c 100644 --- a/java-securityposture/proto-google-cloud-securityposture-v1/pom.xml +++ b/java-securityposture/proto-google-cloud-securityposture-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-securityposture-v1 - 0.11.0-SNAPSHOT + 0.11.0 proto-google-cloud-securityposture-v1 Proto library for google-cloud-securityposture com.google.cloud google-cloud-securityposture-parent - 0.11.0-SNAPSHOT + 0.11.0 diff --git a/java-service-control/CHANGELOG.md b/java-service-control/CHANGELOG.md index c04f0a231090..ae4117e0e131 100644 --- a/java-service-control/CHANGELOG.md +++ b/java-service-control/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 1.46.0 (2024-06-27) + +* No change + + ## 1.45.0 (None) * No change diff --git a/java-service-control/README.md b/java-service-control/README.md index 28550d2a688a..f5210984de87 100644 --- a/java-service-control/README.md +++ b/java-service-control/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-service-control - 1.45.0 + 1.46.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-service-control:1.45.0' +implementation 'com.google.cloud:google-cloud-service-control:1.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-service-control" % "1.45.0" +libraryDependencies += "com.google.cloud" % "google-cloud-service-control" % "1.46.0" ``` diff --git a/java-service-control/google-cloud-service-control-bom/pom.xml b/java-service-control/google-cloud-service-control-bom/pom.xml index c8090bf9db3f..4aebd69b6827 100644 --- a/java-service-control/google-cloud-service-control-bom/pom.xml +++ b/java-service-control/google-cloud-service-control-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-service-control-bom - 1.46.0-SNAPSHOT + 1.46.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-service-control - 1.46.0-SNAPSHOT + 1.46.0 com.google.api.grpc grpc-google-cloud-service-control-v1 - 1.46.0-SNAPSHOT + 1.46.0 com.google.api.grpc grpc-google-cloud-service-control-v2 - 1.46.0-SNAPSHOT + 1.46.0 com.google.api.grpc proto-google-cloud-service-control-v1 - 1.46.0-SNAPSHOT + 1.46.0 com.google.api.grpc proto-google-cloud-service-control-v2 - 1.46.0-SNAPSHOT + 1.46.0 diff --git a/java-service-control/google-cloud-service-control/pom.xml b/java-service-control/google-cloud-service-control/pom.xml index d738bfdb2814..99d9b8f3ad31 100644 --- a/java-service-control/google-cloud-service-control/pom.xml +++ b/java-service-control/google-cloud-service-control/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-service-control - 1.46.0-SNAPSHOT + 1.46.0 jar Google Service Control API Service Control API is a foundational platform for creating, managing, securing, and consuming APIs and services across organizations. It is used by Google APIs, Cloud APIs, Cloud Endpoints, and API Gateway. com.google.cloud google-cloud-service-control-parent - 1.46.0-SNAPSHOT + 1.46.0 google-cloud-service-control diff --git a/java-service-control/grpc-google-cloud-service-control-v1/pom.xml b/java-service-control/grpc-google-cloud-service-control-v1/pom.xml index d5e5d88b75f7..f1d97f42c33a 100644 --- a/java-service-control/grpc-google-cloud-service-control-v1/pom.xml +++ b/java-service-control/grpc-google-cloud-service-control-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-service-control-v1 - 1.46.0-SNAPSHOT + 1.46.0 grpc-google-cloud-service-control-v1 GRPC library for google-cloud-service-control com.google.cloud google-cloud-service-control-parent - 1.46.0-SNAPSHOT + 1.46.0 diff --git a/java-service-control/grpc-google-cloud-service-control-v2/pom.xml b/java-service-control/grpc-google-cloud-service-control-v2/pom.xml index 9fba09e0184a..40e19a144713 100644 --- a/java-service-control/grpc-google-cloud-service-control-v2/pom.xml +++ b/java-service-control/grpc-google-cloud-service-control-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-service-control-v2 - 1.46.0-SNAPSHOT + 1.46.0 grpc-google-cloud-service-control-v2 GRPC library for google-cloud-service-control com.google.cloud google-cloud-service-control-parent - 1.46.0-SNAPSHOT + 1.46.0 diff --git a/java-service-control/pom.xml b/java-service-control/pom.xml index e7478aaa9d9d..0b17de236101 100644 --- a/java-service-control/pom.xml +++ b/java-service-control/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-service-control-parent pom - 1.46.0-SNAPSHOT + 1.46.0 Google Service Control API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-service-control - 1.46.0-SNAPSHOT + 1.46.0 com.google.api.grpc proto-google-cloud-service-control-v2 - 1.46.0-SNAPSHOT + 1.46.0 com.google.api.grpc grpc-google-cloud-service-control-v2 - 1.46.0-SNAPSHOT + 1.46.0 com.google.api.grpc grpc-google-cloud-service-control-v1 - 1.46.0-SNAPSHOT + 1.46.0 com.google.api.grpc proto-google-cloud-service-control-v1 - 1.46.0-SNAPSHOT + 1.46.0 diff --git a/java-service-control/proto-google-cloud-service-control-v1/pom.xml b/java-service-control/proto-google-cloud-service-control-v1/pom.xml index a27d9f42c7d6..2a9aeb481301 100644 --- a/java-service-control/proto-google-cloud-service-control-v1/pom.xml +++ b/java-service-control/proto-google-cloud-service-control-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-service-control-v1 - 1.46.0-SNAPSHOT + 1.46.0 proto-google-cloud-service-control-v1 Proto library for google-cloud-service-control com.google.cloud google-cloud-service-control-parent - 1.46.0-SNAPSHOT + 1.46.0 diff --git a/java-service-control/proto-google-cloud-service-control-v2/pom.xml b/java-service-control/proto-google-cloud-service-control-v2/pom.xml index a08f3c2b0eac..ea2093e0a194 100644 --- a/java-service-control/proto-google-cloud-service-control-v2/pom.xml +++ b/java-service-control/proto-google-cloud-service-control-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-service-control-v2 - 1.46.0-SNAPSHOT + 1.46.0 proto-google-cloud-service-control-v2 Proto library for google-cloud-service-control com.google.cloud google-cloud-service-control-parent - 1.46.0-SNAPSHOT + 1.46.0 diff --git a/java-service-management/CHANGELOG.md b/java-service-management/CHANGELOG.md index b9883de5a1ee..9a2c58b1dbed 100644 --- a/java-service-management/CHANGELOG.md +++ b/java-service-management/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 3.44.0 (2024-06-27) + +* No change + + ## 3.43.0 (None) * No change diff --git a/java-service-management/README.md b/java-service-management/README.md index 8297ce1e4eb8..168ad0e7727b 100644 --- a/java-service-management/README.md +++ b/java-service-management/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-service-management - 3.43.0 + 3.44.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-service-management:3.43.0' +implementation 'com.google.cloud:google-cloud-service-management:3.44.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-service-management" % "3.43.0" +libraryDependencies += "com.google.cloud" % "google-cloud-service-management" % "3.44.0" ``` diff --git a/java-service-management/google-cloud-service-management-bom/pom.xml b/java-service-management/google-cloud-service-management-bom/pom.xml index 91d9f093ca1e..145bfe51a48f 100644 --- a/java-service-management/google-cloud-service-management-bom/pom.xml +++ b/java-service-management/google-cloud-service-management-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-service-management-bom - 3.44.0-SNAPSHOT + 3.44.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-service-management - 3.44.0-SNAPSHOT + 3.44.0 com.google.api.grpc grpc-google-cloud-service-management-v1 - 3.44.0-SNAPSHOT + 3.44.0 com.google.api.grpc proto-google-cloud-service-management-v1 - 3.44.0-SNAPSHOT + 3.44.0 diff --git a/java-service-management/google-cloud-service-management/pom.xml b/java-service-management/google-cloud-service-management/pom.xml index aad3885d9d46..f2abe332dac4 100644 --- a/java-service-management/google-cloud-service-management/pom.xml +++ b/java-service-management/google-cloud-service-management/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-service-management - 3.44.0-SNAPSHOT + 3.44.0 jar Google Service Management API is a foundational platform for creating, managing, securing, and consuming APIs and services across organizations. It is used by Google APIs, Cloud APIs, Cloud Endpoints, and API Gateway. Service Infrastructure provides a wide range of features to service consumers and service producers, including authentication, authorization, auditing, rate limiting, analytics, billing, logging, and monitoring. com.google.cloud google-cloud-service-management-parent - 3.44.0-SNAPSHOT + 3.44.0 google-cloud-service-management diff --git a/java-service-management/grpc-google-cloud-service-management-v1/pom.xml b/java-service-management/grpc-google-cloud-service-management-v1/pom.xml index 476b6ee3985e..a6f2c69da410 100644 --- a/java-service-management/grpc-google-cloud-service-management-v1/pom.xml +++ b/java-service-management/grpc-google-cloud-service-management-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-service-management-v1 - 3.44.0-SNAPSHOT + 3.44.0 grpc-google-cloud-service-management-v1 GRPC library for google-cloud-service-management com.google.cloud google-cloud-service-management-parent - 3.44.0-SNAPSHOT + 3.44.0 diff --git a/java-service-management/pom.xml b/java-service-management/pom.xml index 1d81f523f9e9..6c3ef04f725d 100644 --- a/java-service-management/pom.xml +++ b/java-service-management/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-service-management-parent pom - 3.44.0-SNAPSHOT + 3.44.0 Google Service Management API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-service-management - 3.44.0-SNAPSHOT + 3.44.0 com.google.api.grpc proto-google-cloud-service-management-v1 - 3.44.0-SNAPSHOT + 3.44.0 com.google.api.grpc grpc-google-cloud-service-management-v1 - 3.44.0-SNAPSHOT + 3.44.0 diff --git a/java-service-management/proto-google-cloud-service-management-v1/pom.xml b/java-service-management/proto-google-cloud-service-management-v1/pom.xml index 9572e63713ae..c1cad29b2e4e 100644 --- a/java-service-management/proto-google-cloud-service-management-v1/pom.xml +++ b/java-service-management/proto-google-cloud-service-management-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-service-management-v1 - 3.44.0-SNAPSHOT + 3.44.0 proto-google-cloud-service-management-v1 Proto library for google-cloud-service-management com.google.cloud google-cloud-service-management-parent - 3.44.0-SNAPSHOT + 3.44.0 diff --git a/java-service-usage/CHANGELOG.md b/java-service-usage/CHANGELOG.md index 0a3b19e0e76d..34477ecc3200 100644 --- a/java-service-usage/CHANGELOG.md +++ b/java-service-usage/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.46.0 (2024-06-27) + +* No change + + ## 2.45.0 (None) * No change diff --git a/java-service-usage/README.md b/java-service-usage/README.md index cb8b54564fe5..8f22fe4393d4 100644 --- a/java-service-usage/README.md +++ b/java-service-usage/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-service-usage - 2.45.0 + 2.46.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-service-usage:2.45.0' +implementation 'com.google.cloud:google-cloud-service-usage:2.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-service-usage" % "2.45.0" +libraryDependencies += "com.google.cloud" % "google-cloud-service-usage" % "2.46.0" ``` diff --git a/java-service-usage/google-cloud-service-usage-bom/pom.xml b/java-service-usage/google-cloud-service-usage-bom/pom.xml index db8e8e3faf83..3295c24dd760 100644 --- a/java-service-usage/google-cloud-service-usage-bom/pom.xml +++ b/java-service-usage/google-cloud-service-usage-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-service-usage-bom - 2.46.0-SNAPSHOT + 2.46.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-service-usage - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc grpc-google-cloud-service-usage-v1beta1 - 0.50.0-SNAPSHOT + 0.50.0 com.google.api.grpc grpc-google-cloud-service-usage-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc proto-google-cloud-service-usage-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc proto-google-cloud-service-usage-v1beta1 - 0.50.0-SNAPSHOT + 0.50.0 diff --git a/java-service-usage/google-cloud-service-usage/pom.xml b/java-service-usage/google-cloud-service-usage/pom.xml index 3452b8433680..141cb8275248 100644 --- a/java-service-usage/google-cloud-service-usage/pom.xml +++ b/java-service-usage/google-cloud-service-usage/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-service-usage - 2.46.0-SNAPSHOT + 2.46.0 jar Google Service Usage Service Usage is an infrastructure service of Google Cloud that lets you list and manage other APIs and services in your Cloud projects. com.google.cloud google-cloud-service-usage-parent - 2.46.0-SNAPSHOT + 2.46.0 google-cloud-service-usage diff --git a/java-service-usage/grpc-google-cloud-service-usage-v1/pom.xml b/java-service-usage/grpc-google-cloud-service-usage-v1/pom.xml index c96acacb6c09..b2713173281d 100644 --- a/java-service-usage/grpc-google-cloud-service-usage-v1/pom.xml +++ b/java-service-usage/grpc-google-cloud-service-usage-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-service-usage-v1 - 2.46.0-SNAPSHOT + 2.46.0 grpc-google-cloud-service-usage-v1 GRPC library for google-cloud-service-usage com.google.cloud google-cloud-service-usage-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-service-usage/grpc-google-cloud-service-usage-v1beta1/pom.xml b/java-service-usage/grpc-google-cloud-service-usage-v1beta1/pom.xml index f06b39ac550d..1fe2ca422f66 100644 --- a/java-service-usage/grpc-google-cloud-service-usage-v1beta1/pom.xml +++ b/java-service-usage/grpc-google-cloud-service-usage-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-service-usage-v1beta1 - 0.50.0-SNAPSHOT + 0.50.0 grpc-google-cloud-service-usage-v1beta1 GRPC library for google-cloud-service-usage com.google.cloud google-cloud-service-usage-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-service-usage/pom.xml b/java-service-usage/pom.xml index 0a7c7307c841..6309e607e0c9 100644 --- a/java-service-usage/pom.xml +++ b/java-service-usage/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-service-usage-parent pom - 2.46.0-SNAPSHOT + 2.46.0 Google Service Usage Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-service-usage - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc grpc-google-cloud-service-usage-v1beta1 - 0.50.0-SNAPSHOT + 0.50.0 com.google.api.grpc grpc-google-cloud-service-usage-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc proto-google-cloud-service-usage-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc proto-google-cloud-service-usage-v1beta1 - 0.50.0-SNAPSHOT + 0.50.0 diff --git a/java-service-usage/proto-google-cloud-service-usage-v1/pom.xml b/java-service-usage/proto-google-cloud-service-usage-v1/pom.xml index ba25dceff602..c47a71da2b64 100644 --- a/java-service-usage/proto-google-cloud-service-usage-v1/pom.xml +++ b/java-service-usage/proto-google-cloud-service-usage-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-service-usage-v1 - 2.46.0-SNAPSHOT + 2.46.0 proto-google-cloud-service-usage-v1 Proto library for google-cloud-service-usage com.google.cloud google-cloud-service-usage-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-service-usage/proto-google-cloud-service-usage-v1beta1/pom.xml b/java-service-usage/proto-google-cloud-service-usage-v1beta1/pom.xml index a7c94fb61f2c..285c8b798812 100644 --- a/java-service-usage/proto-google-cloud-service-usage-v1beta1/pom.xml +++ b/java-service-usage/proto-google-cloud-service-usage-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-service-usage-v1beta1 - 0.50.0-SNAPSHOT + 0.50.0 proto-google-cloud-service-usage-v1beta1 Proto library for google-cloud-service-usage com.google.cloud google-cloud-service-usage-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-servicedirectory/CHANGELOG.md b/java-servicedirectory/CHANGELOG.md index 01f76657afbb..79c432c92fca 100644 --- a/java-servicedirectory/CHANGELOG.md +++ b/java-servicedirectory/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.47.0 (2024-06-27) + +* No change + + ## 2.46.0 (None) * No change diff --git a/java-servicedirectory/README.md b/java-servicedirectory/README.md index 00fbea67e71d..065347d012fb 100644 --- a/java-servicedirectory/README.md +++ b/java-servicedirectory/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-servicedirectory - 2.46.0 + 2.47.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-servicedirectory:2.46.0' +implementation 'com.google.cloud:google-cloud-servicedirectory:2.47.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-servicedirectory" % "2.46.0" +libraryDependencies += "com.google.cloud" % "google-cloud-servicedirectory" % "2.47.0" ``` diff --git a/java-servicedirectory/google-cloud-servicedirectory-bom/pom.xml b/java-servicedirectory/google-cloud-servicedirectory-bom/pom.xml index 7b3b951567ea..cfba4ea25e4a 100644 --- a/java-servicedirectory/google-cloud-servicedirectory-bom/pom.xml +++ b/java-servicedirectory/google-cloud-servicedirectory-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-servicedirectory-bom - 2.47.0-SNAPSHOT + 2.47.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-servicedirectory - 2.47.0-SNAPSHOT + 2.47.0 com.google.api.grpc grpc-google-cloud-servicedirectory-v1beta1 - 0.55.0-SNAPSHOT + 0.55.0 com.google.api.grpc grpc-google-cloud-servicedirectory-v1 - 2.47.0-SNAPSHOT + 2.47.0 com.google.api.grpc proto-google-cloud-servicedirectory-v1beta1 - 0.55.0-SNAPSHOT + 0.55.0 com.google.api.grpc proto-google-cloud-servicedirectory-v1 - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-servicedirectory/google-cloud-servicedirectory/pom.xml b/java-servicedirectory/google-cloud-servicedirectory/pom.xml index 4ad2ae1191d1..9b815a2379a5 100644 --- a/java-servicedirectory/google-cloud-servicedirectory/pom.xml +++ b/java-servicedirectory/google-cloud-servicedirectory/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-servicedirectory - 2.47.0-SNAPSHOT + 2.47.0 jar Google Cloud Service Directory Java idiomatic client for Google Cloud Service Directory com.google.cloud google-cloud-servicedirectory-parent - 2.47.0-SNAPSHOT + 2.47.0 google-cloud-servicedirectory diff --git a/java-servicedirectory/grpc-google-cloud-servicedirectory-v1/pom.xml b/java-servicedirectory/grpc-google-cloud-servicedirectory-v1/pom.xml index 72835683f352..0dc7229e0b51 100644 --- a/java-servicedirectory/grpc-google-cloud-servicedirectory-v1/pom.xml +++ b/java-servicedirectory/grpc-google-cloud-servicedirectory-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-servicedirectory-v1 - 2.47.0-SNAPSHOT + 2.47.0 grpc-google-cloud-servicedirectory-v1 GRPC library for grpc-google-cloud-servicedirectory-v1 com.google.cloud google-cloud-servicedirectory-parent - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-servicedirectory/grpc-google-cloud-servicedirectory-v1beta1/pom.xml b/java-servicedirectory/grpc-google-cloud-servicedirectory-v1beta1/pom.xml index e19ec6bc63a3..da58ca364c8f 100644 --- a/java-servicedirectory/grpc-google-cloud-servicedirectory-v1beta1/pom.xml +++ b/java-servicedirectory/grpc-google-cloud-servicedirectory-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-servicedirectory-v1beta1 - 0.55.0-SNAPSHOT + 0.55.0 grpc-google-cloud-servicedirectory-v1beta1 GRPC library for grpc-google-cloud-servicedirectory-v1beta1 com.google.cloud google-cloud-servicedirectory-parent - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-servicedirectory/pom.xml b/java-servicedirectory/pom.xml index ad4e12fe3aee..c89f66e15dcc 100644 --- a/java-servicedirectory/pom.xml +++ b/java-servicedirectory/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-servicedirectory-parent pom - 2.47.0-SNAPSHOT + 2.47.0 Google Cloud Service Directory Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-servicedirectory-v1beta1 - 0.55.0-SNAPSHOT + 0.55.0 com.google.api.grpc proto-google-cloud-servicedirectory-v1 - 2.47.0-SNAPSHOT + 2.47.0 com.google.api.grpc grpc-google-cloud-servicedirectory-v1beta1 - 0.55.0-SNAPSHOT + 0.55.0 com.google.api.grpc grpc-google-cloud-servicedirectory-v1 - 2.47.0-SNAPSHOT + 2.47.0 com.google.cloud google-cloud-servicedirectory - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-servicedirectory/proto-google-cloud-servicedirectory-v1/pom.xml b/java-servicedirectory/proto-google-cloud-servicedirectory-v1/pom.xml index 13204b539b4f..e075f60e081e 100644 --- a/java-servicedirectory/proto-google-cloud-servicedirectory-v1/pom.xml +++ b/java-servicedirectory/proto-google-cloud-servicedirectory-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-servicedirectory-v1 - 2.47.0-SNAPSHOT + 2.47.0 proto-google-cloud-servicedirectory-v1 PROTO library for proto-google-cloud-servicedirectory-v1 com.google.cloud google-cloud-servicedirectory-parent - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/pom.xml b/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/pom.xml index f955a5fb51d5..9699ab012068 100644 --- a/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/pom.xml +++ b/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-servicedirectory-v1beta1 - 0.55.0-SNAPSHOT + 0.55.0 proto-google-cloud-servicedirectory-v1beta1 PROTO library for proto-google-cloud-servicedirectory-v1beta1 com.google.cloud google-cloud-servicedirectory-parent - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-servicehealth/CHANGELOG.md b/java-servicehealth/CHANGELOG.md index 2261de410d92..3cbd176e9717 100644 --- a/java-servicehealth/CHANGELOG.md +++ b/java-servicehealth/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.13.0 (2024-06-27) + +* No change + + ## 0.12.0 (None) * No change diff --git a/java-servicehealth/README.md b/java-servicehealth/README.md index 88f26b50c541..324b5d8c4c27 100644 --- a/java-servicehealth/README.md +++ b/java-servicehealth/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-servicehealth - 0.12.0 + 0.13.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-servicehealth:0.12.0' +implementation 'com.google.cloud:google-cloud-servicehealth:0.13.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-servicehealth" % "0.12.0" +libraryDependencies += "com.google.cloud" % "google-cloud-servicehealth" % "0.13.0" ``` diff --git a/java-servicehealth/google-cloud-servicehealth-bom/pom.xml b/java-servicehealth/google-cloud-servicehealth-bom/pom.xml index 5fb679ae9179..81609bad956f 100644 --- a/java-servicehealth/google-cloud-servicehealth-bom/pom.xml +++ b/java-servicehealth/google-cloud-servicehealth-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-servicehealth-bom - 0.13.0-SNAPSHOT + 0.13.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-servicehealth - 0.13.0-SNAPSHOT + 0.13.0 com.google.api.grpc grpc-google-cloud-servicehealth-v1 - 0.13.0-SNAPSHOT + 0.13.0 com.google.api.grpc proto-google-cloud-servicehealth-v1 - 0.13.0-SNAPSHOT + 0.13.0 diff --git a/java-servicehealth/google-cloud-servicehealth/pom.xml b/java-servicehealth/google-cloud-servicehealth/pom.xml index 31ea23ec5279..0a2b1caac344 100644 --- a/java-servicehealth/google-cloud-servicehealth/pom.xml +++ b/java-servicehealth/google-cloud-servicehealth/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-servicehealth - 0.13.0-SNAPSHOT + 0.13.0 jar Google Service Health API Service Health API Personalized Service Health helps you gain visibility into disruptive events impacting Google Cloud products. com.google.cloud google-cloud-servicehealth-parent - 0.13.0-SNAPSHOT + 0.13.0 google-cloud-servicehealth diff --git a/java-servicehealth/grpc-google-cloud-servicehealth-v1/pom.xml b/java-servicehealth/grpc-google-cloud-servicehealth-v1/pom.xml index 82d161141cfb..2741c463d672 100644 --- a/java-servicehealth/grpc-google-cloud-servicehealth-v1/pom.xml +++ b/java-servicehealth/grpc-google-cloud-servicehealth-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-servicehealth-v1 - 0.13.0-SNAPSHOT + 0.13.0 grpc-google-cloud-servicehealth-v1 GRPC library for google-cloud-servicehealth com.google.cloud google-cloud-servicehealth-parent - 0.13.0-SNAPSHOT + 0.13.0 diff --git a/java-servicehealth/pom.xml b/java-servicehealth/pom.xml index 9b4b61d6e221..f9687b07febe 100644 --- a/java-servicehealth/pom.xml +++ b/java-servicehealth/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-servicehealth-parent pom - 0.13.0-SNAPSHOT + 0.13.0 Google Service Health API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-servicehealth - 0.13.0-SNAPSHOT + 0.13.0 com.google.api.grpc grpc-google-cloud-servicehealth-v1 - 0.13.0-SNAPSHOT + 0.13.0 com.google.api.grpc proto-google-cloud-servicehealth-v1 - 0.13.0-SNAPSHOT + 0.13.0 diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/pom.xml b/java-servicehealth/proto-google-cloud-servicehealth-v1/pom.xml index 1748bd523e0b..f34785832d67 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/pom.xml +++ b/java-servicehealth/proto-google-cloud-servicehealth-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-servicehealth-v1 - 0.13.0-SNAPSHOT + 0.13.0 proto-google-cloud-servicehealth-v1 Proto library for google-cloud-servicehealth com.google.cloud google-cloud-servicehealth-parent - 0.13.0-SNAPSHOT + 0.13.0 diff --git a/java-shell/CHANGELOG.md b/java-shell/CHANGELOG.md index 3b83047d46eb..b4505f00a733 100644 --- a/java-shell/CHANGELOG.md +++ b/java-shell/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.45.0 (2024-06-27) + +* No change + + ## 2.44.0 (None) * No change diff --git a/java-shell/README.md b/java-shell/README.md index 9eed7513b828..3bc8f1fec27c 100644 --- a/java-shell/README.md +++ b/java-shell/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-shell - 2.44.0 + 2.45.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-shell:2.44.0' +implementation 'com.google.cloud:google-cloud-shell:2.45.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-shell" % "2.44.0" +libraryDependencies += "com.google.cloud" % "google-cloud-shell" % "2.45.0" ``` diff --git a/java-shell/google-cloud-shell-bom/pom.xml b/java-shell/google-cloud-shell-bom/pom.xml index 2fc432734f2e..58c28ba0ef25 100644 --- a/java-shell/google-cloud-shell-bom/pom.xml +++ b/java-shell/google-cloud-shell-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-shell-bom - 2.45.0-SNAPSHOT + 2.45.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-shell - 2.45.0-SNAPSHOT + 2.45.0 com.google.api.grpc grpc-google-cloud-shell-v1 - 2.45.0-SNAPSHOT + 2.45.0 com.google.api.grpc proto-google-cloud-shell-v1 - 2.45.0-SNAPSHOT + 2.45.0 diff --git a/java-shell/google-cloud-shell/pom.xml b/java-shell/google-cloud-shell/pom.xml index 588d2db0a036..2676453a88c1 100644 --- a/java-shell/google-cloud-shell/pom.xml +++ b/java-shell/google-cloud-shell/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-shell - 2.45.0-SNAPSHOT + 2.45.0 jar Google Cloud Shell Cloud Shell is an interactive shell environment for Google Cloud that makes it easy for you to learn and experiment with Google Cloud and manage your projects and resources from your web browser. com.google.cloud google-cloud-shell-parent - 2.45.0-SNAPSHOT + 2.45.0 google-cloud-shell diff --git a/java-shell/grpc-google-cloud-shell-v1/pom.xml b/java-shell/grpc-google-cloud-shell-v1/pom.xml index 7f30f4d48ce6..58786715de6d 100644 --- a/java-shell/grpc-google-cloud-shell-v1/pom.xml +++ b/java-shell/grpc-google-cloud-shell-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-shell-v1 - 2.45.0-SNAPSHOT + 2.45.0 grpc-google-cloud-shell-v1 GRPC library for google-cloud-shell com.google.cloud google-cloud-shell-parent - 2.45.0-SNAPSHOT + 2.45.0 diff --git a/java-shell/pom.xml b/java-shell/pom.xml index 03849d60ded6..e318dad23aa7 100644 --- a/java-shell/pom.xml +++ b/java-shell/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-shell-parent pom - 2.45.0-SNAPSHOT + 2.45.0 Google Cloud Shell Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-shell - 2.45.0-SNAPSHOT + 2.45.0 com.google.api.grpc grpc-google-cloud-shell-v1 - 2.45.0-SNAPSHOT + 2.45.0 com.google.api.grpc proto-google-cloud-shell-v1 - 2.45.0-SNAPSHOT + 2.45.0 diff --git a/java-shell/proto-google-cloud-shell-v1/pom.xml b/java-shell/proto-google-cloud-shell-v1/pom.xml index 7a5d01c1138a..6dc623b86bda 100644 --- a/java-shell/proto-google-cloud-shell-v1/pom.xml +++ b/java-shell/proto-google-cloud-shell-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-shell-v1 - 2.45.0-SNAPSHOT + 2.45.0 proto-google-cloud-shell-v1 Proto library for google-cloud-shell com.google.cloud google-cloud-shell-parent - 2.45.0-SNAPSHOT + 2.45.0 diff --git a/java-shopping-css/CHANGELOG.md b/java-shopping-css/CHANGELOG.md index a71fc1065b18..fbc9e8bdeaed 100644 --- a/java-shopping-css/CHANGELOG.md +++ b/java-shopping-css/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.14.0 (2024-06-27) + +* No change + + ## 0.13.0 (None) * No change diff --git a/java-shopping-css/README.md b/java-shopping-css/README.md index 2e14f51019e2..873bef7be7a5 100644 --- a/java-shopping-css/README.md +++ b/java-shopping-css/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-css - 0.13.0 + 0.14.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-css:0.13.0' +implementation 'com.google.shopping:google-shopping-css:0.14.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-css" % "0.13.0" +libraryDependencies += "com.google.shopping" % "google-shopping-css" % "0.14.0" ``` diff --git a/java-shopping-css/google-shopping-css-bom/pom.xml b/java-shopping-css/google-shopping-css-bom/pom.xml index f89c1c5efda2..0b2d209a86a0 100644 --- a/java-shopping-css/google-shopping-css-bom/pom.xml +++ b/java-shopping-css/google-shopping-css-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.shopping google-shopping-css-bom - 0.14.0-SNAPSHOT + 0.14.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.shopping google-shopping-css - 0.14.0-SNAPSHOT + 0.14.0 com.google.shopping.api.grpc grpc-google-shopping-css-v1 - 0.14.0-SNAPSHOT + 0.14.0 com.google.shopping.api.grpc proto-google-shopping-css-v1 - 0.14.0-SNAPSHOT + 0.14.0 diff --git a/java-shopping-css/google-shopping-css/pom.xml b/java-shopping-css/google-shopping-css/pom.xml index 38afaf55d0c9..24e252bdcc73 100644 --- a/java-shopping-css/google-shopping-css/pom.xml +++ b/java-shopping-css/google-shopping-css/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-css - 0.14.0-SNAPSHOT + 0.14.0 jar Google CSS API CSS API The CSS API is used to manage your CSS and control your CSS Products portfolio com.google.shopping google-shopping-css-parent - 0.14.0-SNAPSHOT + 0.14.0 google-shopping-css diff --git a/java-shopping-css/grpc-google-shopping-css-v1/pom.xml b/java-shopping-css/grpc-google-shopping-css-v1/pom.xml index ebfa568ed959..914e491c97c6 100644 --- a/java-shopping-css/grpc-google-shopping-css-v1/pom.xml +++ b/java-shopping-css/grpc-google-shopping-css-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-css-v1 - 0.14.0-SNAPSHOT + 0.14.0 grpc-google-shopping-css-v1 GRPC library for google-shopping-css com.google.shopping google-shopping-css-parent - 0.14.0-SNAPSHOT + 0.14.0 diff --git a/java-shopping-css/pom.xml b/java-shopping-css/pom.xml index 53ebf459105c..1cde3a5a7633 100644 --- a/java-shopping-css/pom.xml +++ b/java-shopping-css/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-css-parent pom - 0.14.0-SNAPSHOT + 0.14.0 Google CSS API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.shopping google-shopping-css - 0.14.0-SNAPSHOT + 0.14.0 com.google.shopping.api.grpc grpc-google-shopping-css-v1 - 0.14.0-SNAPSHOT + 0.14.0 com.google.shopping.api.grpc proto-google-shopping-css-v1 - 0.14.0-SNAPSHOT + 0.14.0 diff --git a/java-shopping-css/proto-google-shopping-css-v1/pom.xml b/java-shopping-css/proto-google-shopping-css-v1/pom.xml index 260c6ca0d8bf..c7dc29773b2f 100644 --- a/java-shopping-css/proto-google-shopping-css-v1/pom.xml +++ b/java-shopping-css/proto-google-shopping-css-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-css-v1 - 0.14.0-SNAPSHOT + 0.14.0 proto-google-shopping-css-v1 Proto library for google-shopping-css com.google.shopping google-shopping-css-parent - 0.14.0-SNAPSHOT + 0.14.0 diff --git a/java-shopping-merchant-accounts/CHANGELOG.md b/java-shopping-merchant-accounts/CHANGELOG.md index 7a8760f9bb40..70acbf878864 100644 --- a/java-shopping-merchant-accounts/CHANGELOG.md +++ b/java-shopping-merchant-accounts/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.2.0 (2024-06-27) + +* No change + + ## 0.1.0 (None) * No change diff --git a/java-shopping-merchant-accounts/README.md b/java-shopping-merchant-accounts/README.md index 5ab9856045db..0ea4b902ceeb 100644 --- a/java-shopping-merchant-accounts/README.md +++ b/java-shopping-merchant-accounts/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-accounts - 0.1.0 + 0.2.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-accounts:0.1.0' +implementation 'com.google.shopping:google-shopping-merchant-accounts:0.2.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-accounts" % "0.1.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-accounts" % "0.2.0" ``` diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts-bom/pom.xml b/java-shopping-merchant-accounts/google-shopping-merchant-accounts-bom/pom.xml index b7300ae93df7..9fbbe853651a 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts-bom/pom.xml +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.shopping google-shopping-merchant-accounts-bom - 0.2.0-SNAPSHOT + 0.2.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.shopping google-shopping-merchant-accounts - 0.2.0-SNAPSHOT + 0.2.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-accounts-v1beta - 0.2.0-SNAPSHOT + 0.2.0 com.google.shopping.api.grpc proto-google-shopping-merchant-accounts-v1beta - 0.2.0-SNAPSHOT + 0.2.0 diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/pom.xml b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/pom.xml index 18b10df5530b..5ed2964eeb1f 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/pom.xml +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-accounts - 0.2.0-SNAPSHOT + 0.2.0 jar Google Merchant API Merchant API Programmatically manage your Merchant Center accounts. com.google.shopping google-shopping-merchant-accounts-parent - 0.2.0-SNAPSHOT + 0.2.0 google-shopping-merchant-accounts diff --git a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/pom.xml b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/pom.xml index ce35ca053b59..64e43a649740 100644 --- a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/pom.xml +++ b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-accounts-v1beta - 0.2.0-SNAPSHOT + 0.2.0 grpc-google-shopping-merchant-accounts-v1beta GRPC library for google-shopping-merchant-accounts com.google.shopping google-shopping-merchant-accounts-parent - 0.2.0-SNAPSHOT + 0.2.0 diff --git a/java-shopping-merchant-accounts/pom.xml b/java-shopping-merchant-accounts/pom.xml index 8a9891d6e91d..26abf0edfe39 100644 --- a/java-shopping-merchant-accounts/pom.xml +++ b/java-shopping-merchant-accounts/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-accounts-parent pom - 0.2.0-SNAPSHOT + 0.2.0 Google Merchant API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.shopping google-shopping-merchant-accounts - 0.2.0-SNAPSHOT + 0.2.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-accounts-v1beta - 0.2.0-SNAPSHOT + 0.2.0 com.google.shopping.api.grpc proto-google-shopping-merchant-accounts-v1beta - 0.2.0-SNAPSHOT + 0.2.0 diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/pom.xml b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/pom.xml index f57be63f5459..1e45af94a10d 100644 --- a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/pom.xml +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-accounts-v1beta - 0.2.0-SNAPSHOT + 0.2.0 proto-google-shopping-merchant-accounts-v1beta Proto library for google-shopping-merchant-accounts com.google.shopping google-shopping-merchant-accounts-parent - 0.2.0-SNAPSHOT + 0.2.0 diff --git a/java-shopping-merchant-conversions/CHANGELOG.md b/java-shopping-merchant-conversions/CHANGELOG.md index 5b4d6126056d..4fa063a94a71 100644 --- a/java-shopping-merchant-conversions/CHANGELOG.md +++ b/java-shopping-merchant-conversions/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.5.0 (2024-06-27) + +* No change + + ## 0.4.0 (None) * No change diff --git a/java-shopping-merchant-conversions/README.md b/java-shopping-merchant-conversions/README.md index 0a414524ae07..07e4b7fdd29f 100644 --- a/java-shopping-merchant-conversions/README.md +++ b/java-shopping-merchant-conversions/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-conversions - 0.4.0 + 0.5.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-conversions:0.4.0' +implementation 'com.google.shopping:google-shopping-merchant-conversions:0.5.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-conversions" % "0.4.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-conversions" % "0.5.0" ``` diff --git a/java-shopping-merchant-conversions/google-shopping-merchant-conversions-bom/pom.xml b/java-shopping-merchant-conversions/google-shopping-merchant-conversions-bom/pom.xml index 7fba8f4c7473..d1f998afd57c 100644 --- a/java-shopping-merchant-conversions/google-shopping-merchant-conversions-bom/pom.xml +++ b/java-shopping-merchant-conversions/google-shopping-merchant-conversions-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.shopping google-shopping-merchant-conversions-bom - 0.5.0-SNAPSHOT + 0.5.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.shopping google-shopping-merchant-conversions - 0.5.0-SNAPSHOT + 0.5.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-conversions-v1beta - 0.5.0-SNAPSHOT + 0.5.0 com.google.shopping.api.grpc proto-google-shopping-merchant-conversions-v1beta - 0.5.0-SNAPSHOT + 0.5.0 diff --git a/java-shopping-merchant-conversions/google-shopping-merchant-conversions/pom.xml b/java-shopping-merchant-conversions/google-shopping-merchant-conversions/pom.xml index 23cce8fb0c9e..942cf3da41ef 100644 --- a/java-shopping-merchant-conversions/google-shopping-merchant-conversions/pom.xml +++ b/java-shopping-merchant-conversions/google-shopping-merchant-conversions/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-conversions - 0.5.0-SNAPSHOT + 0.5.0 jar Google Merchant Conversions API Merchant Conversions API Programmatically manage your Merchant Center accounts. com.google.shopping google-shopping-merchant-conversions-parent - 0.5.0-SNAPSHOT + 0.5.0 google-shopping-merchant-conversions diff --git a/java-shopping-merchant-conversions/grpc-google-shopping-merchant-conversions-v1beta/pom.xml b/java-shopping-merchant-conversions/grpc-google-shopping-merchant-conversions-v1beta/pom.xml index 458c0d2b0480..0a84db7ddb76 100644 --- a/java-shopping-merchant-conversions/grpc-google-shopping-merchant-conversions-v1beta/pom.xml +++ b/java-shopping-merchant-conversions/grpc-google-shopping-merchant-conversions-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-conversions-v1beta - 0.5.0-SNAPSHOT + 0.5.0 grpc-google-shopping-merchant-conversions-v1beta GRPC library for google-shopping-merchant-conversions com.google.shopping google-shopping-merchant-conversions-parent - 0.5.0-SNAPSHOT + 0.5.0 diff --git a/java-shopping-merchant-conversions/pom.xml b/java-shopping-merchant-conversions/pom.xml index 8e4a3b7fc3e6..731d23863c1c 100644 --- a/java-shopping-merchant-conversions/pom.xml +++ b/java-shopping-merchant-conversions/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-conversions-parent pom - 0.5.0-SNAPSHOT + 0.5.0 Google Merchant Conversions API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.shopping google-shopping-merchant-conversions - 0.5.0-SNAPSHOT + 0.5.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-conversions-v1beta - 0.5.0-SNAPSHOT + 0.5.0 com.google.shopping.api.grpc proto-google-shopping-merchant-conversions-v1beta - 0.5.0-SNAPSHOT + 0.5.0 diff --git a/java-shopping-merchant-conversions/proto-google-shopping-merchant-conversions-v1beta/pom.xml b/java-shopping-merchant-conversions/proto-google-shopping-merchant-conversions-v1beta/pom.xml index 2d5bd6907723..b3048852b26d 100644 --- a/java-shopping-merchant-conversions/proto-google-shopping-merchant-conversions-v1beta/pom.xml +++ b/java-shopping-merchant-conversions/proto-google-shopping-merchant-conversions-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-conversions-v1beta - 0.5.0-SNAPSHOT + 0.5.0 proto-google-shopping-merchant-conversions-v1beta Proto library for google-shopping-merchant-conversions com.google.shopping google-shopping-merchant-conversions-parent - 0.5.0-SNAPSHOT + 0.5.0 diff --git a/java-shopping-merchant-datasources/CHANGELOG.md b/java-shopping-merchant-datasources/CHANGELOG.md index 7a8760f9bb40..70acbf878864 100644 --- a/java-shopping-merchant-datasources/CHANGELOG.md +++ b/java-shopping-merchant-datasources/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.2.0 (2024-06-27) + +* No change + + ## 0.1.0 (None) * No change diff --git a/java-shopping-merchant-datasources/README.md b/java-shopping-merchant-datasources/README.md index 97a34b26b0cb..2feb1568a524 100644 --- a/java-shopping-merchant-datasources/README.md +++ b/java-shopping-merchant-datasources/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-datasources - 0.1.0 + 0.2.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-datasources:0.1.0' +implementation 'com.google.shopping:google-shopping-merchant-datasources:0.2.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-datasources" % "0.1.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-datasources" % "0.2.0" ``` diff --git a/java-shopping-merchant-datasources/google-shopping-merchant-datasources-bom/pom.xml b/java-shopping-merchant-datasources/google-shopping-merchant-datasources-bom/pom.xml index ca5bc80b04bd..41a4d9a18daa 100644 --- a/java-shopping-merchant-datasources/google-shopping-merchant-datasources-bom/pom.xml +++ b/java-shopping-merchant-datasources/google-shopping-merchant-datasources-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.shopping google-shopping-merchant-datasources-bom - 0.2.0-SNAPSHOT + 0.2.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.shopping google-shopping-merchant-datasources - 0.2.0-SNAPSHOT + 0.2.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-datasources-v1beta - 0.2.0-SNAPSHOT + 0.2.0 com.google.shopping.api.grpc proto-google-shopping-merchant-datasources-v1beta - 0.2.0-SNAPSHOT + 0.2.0 diff --git a/java-shopping-merchant-datasources/google-shopping-merchant-datasources/pom.xml b/java-shopping-merchant-datasources/google-shopping-merchant-datasources/pom.xml index 6482fc3034d7..8af6b6acff6b 100644 --- a/java-shopping-merchant-datasources/google-shopping-merchant-datasources/pom.xml +++ b/java-shopping-merchant-datasources/google-shopping-merchant-datasources/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-datasources - 0.2.0-SNAPSHOT + 0.2.0 jar Google Merchant API Merchant API Programmatically manage your Merchant Center accounts. com.google.shopping google-shopping-merchant-datasources-parent - 0.2.0-SNAPSHOT + 0.2.0 google-shopping-merchant-datasources diff --git a/java-shopping-merchant-datasources/grpc-google-shopping-merchant-datasources-v1beta/pom.xml b/java-shopping-merchant-datasources/grpc-google-shopping-merchant-datasources-v1beta/pom.xml index 518ecab4c464..20eced63c008 100644 --- a/java-shopping-merchant-datasources/grpc-google-shopping-merchant-datasources-v1beta/pom.xml +++ b/java-shopping-merchant-datasources/grpc-google-shopping-merchant-datasources-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-datasources-v1beta - 0.2.0-SNAPSHOT + 0.2.0 grpc-google-shopping-merchant-datasources-v1beta GRPC library for google-shopping-merchant-datasources com.google.shopping google-shopping-merchant-datasources-parent - 0.2.0-SNAPSHOT + 0.2.0 diff --git a/java-shopping-merchant-datasources/pom.xml b/java-shopping-merchant-datasources/pom.xml index 644d16bda5f8..f93fcfb6f809 100644 --- a/java-shopping-merchant-datasources/pom.xml +++ b/java-shopping-merchant-datasources/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-datasources-parent pom - 0.2.0-SNAPSHOT + 0.2.0 Google Merchant API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.shopping google-shopping-merchant-datasources - 0.2.0-SNAPSHOT + 0.2.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-datasources-v1beta - 0.2.0-SNAPSHOT + 0.2.0 com.google.shopping.api.grpc proto-google-shopping-merchant-datasources-v1beta - 0.2.0-SNAPSHOT + 0.2.0 diff --git a/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/pom.xml b/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/pom.xml index 1c3612cd4a2a..f13b6fb7c3f7 100644 --- a/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/pom.xml +++ b/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-datasources-v1beta - 0.2.0-SNAPSHOT + 0.2.0 proto-google-shopping-merchant-datasources-v1beta Proto library for google-shopping-merchant-datasources com.google.shopping google-shopping-merchant-datasources-parent - 0.2.0-SNAPSHOT + 0.2.0 diff --git a/java-shopping-merchant-inventories/CHANGELOG.md b/java-shopping-merchant-inventories/CHANGELOG.md index 9bf0622c37d4..ba8bc8bba45f 100644 --- a/java-shopping-merchant-inventories/CHANGELOG.md +++ b/java-shopping-merchant-inventories/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.22.0 (2024-06-27) + +* No change + + ## 0.21.0 (None) * No change diff --git a/java-shopping-merchant-inventories/README.md b/java-shopping-merchant-inventories/README.md index e228897e26bc..b0f3cfd7c269 100644 --- a/java-shopping-merchant-inventories/README.md +++ b/java-shopping-merchant-inventories/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-inventories - 0.21.0 + 0.22.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-inventories:0.21.0' +implementation 'com.google.shopping:google-shopping-merchant-inventories:0.22.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-inventories" % "0.21.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-inventories" % "0.22.0" ``` diff --git a/java-shopping-merchant-inventories/google-shopping-merchant-inventories-bom/pom.xml b/java-shopping-merchant-inventories/google-shopping-merchant-inventories-bom/pom.xml index bbf726c3a88b..2e9ba2f8da42 100644 --- a/java-shopping-merchant-inventories/google-shopping-merchant-inventories-bom/pom.xml +++ b/java-shopping-merchant-inventories/google-shopping-merchant-inventories-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.shopping google-shopping-merchant-inventories-bom - 0.22.0-SNAPSHOT + 0.22.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.shopping google-shopping-merchant-inventories - 0.22.0-SNAPSHOT + 0.22.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-inventories-v1beta - 0.22.0-SNAPSHOT + 0.22.0 com.google.shopping.api.grpc proto-google-shopping-merchant-inventories-v1beta - 0.22.0-SNAPSHOT + 0.22.0 diff --git a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/pom.xml b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/pom.xml index 14521f682316..ebce9ec11aab 100644 --- a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/pom.xml +++ b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-inventories - 0.22.0-SNAPSHOT + 0.22.0 jar Google Merchant API Merchant API Programmatically manage your Merchant Center accounts. com.google.shopping google-shopping-merchant-inventories-parent - 0.22.0-SNAPSHOT + 0.22.0 google-shopping-merchant-inventories diff --git a/java-shopping-merchant-inventories/grpc-google-shopping-merchant-inventories-v1beta/pom.xml b/java-shopping-merchant-inventories/grpc-google-shopping-merchant-inventories-v1beta/pom.xml index 2620117fea44..0378cf25a9cc 100644 --- a/java-shopping-merchant-inventories/grpc-google-shopping-merchant-inventories-v1beta/pom.xml +++ b/java-shopping-merchant-inventories/grpc-google-shopping-merchant-inventories-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-inventories-v1beta - 0.22.0-SNAPSHOT + 0.22.0 grpc-google-shopping-merchant-inventories-v1beta GRPC library for google-shopping-merchant-inventories com.google.shopping google-shopping-merchant-inventories-parent - 0.22.0-SNAPSHOT + 0.22.0 diff --git a/java-shopping-merchant-inventories/pom.xml b/java-shopping-merchant-inventories/pom.xml index f4f841f9d82d..704b0ed09dc7 100644 --- a/java-shopping-merchant-inventories/pom.xml +++ b/java-shopping-merchant-inventories/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-inventories-parent pom - 0.22.0-SNAPSHOT + 0.22.0 Google Merchant API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.shopping google-shopping-merchant-inventories - 0.22.0-SNAPSHOT + 0.22.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-inventories-v1beta - 0.22.0-SNAPSHOT + 0.22.0 com.google.shopping.api.grpc proto-google-shopping-merchant-inventories-v1beta - 0.22.0-SNAPSHOT + 0.22.0 diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/pom.xml b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/pom.xml index febcaa3e4f8a..fb7a070f030b 100644 --- a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/pom.xml +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-inventories-v1beta - 0.22.0-SNAPSHOT + 0.22.0 proto-google-shopping-merchant-inventories-v1beta Proto library for google-shopping-merchant-inventories com.google.shopping google-shopping-merchant-inventories-parent - 0.22.0-SNAPSHOT + 0.22.0 diff --git a/java-shopping-merchant-lfp/CHANGELOG.md b/java-shopping-merchant-lfp/CHANGELOG.md index 396f8b2178a2..8fbc2bbd5023 100644 --- a/java-shopping-merchant-lfp/CHANGELOG.md +++ b/java-shopping-merchant-lfp/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.5.0 (2024-06-27) + +* No change + + ## 0.4.0 (None) * No change diff --git a/java-shopping-merchant-lfp/README.md b/java-shopping-merchant-lfp/README.md index 43d50007fd6e..5bb59bbb8346 100644 --- a/java-shopping-merchant-lfp/README.md +++ b/java-shopping-merchant-lfp/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-lfp - 0.4.0 + 0.5.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-lfp:0.4.0' +implementation 'com.google.shopping:google-shopping-merchant-lfp:0.5.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-lfp" % "0.4.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-lfp" % "0.5.0" ``` diff --git a/java-shopping-merchant-lfp/google-shopping-merchant-lfp-bom/pom.xml b/java-shopping-merchant-lfp/google-shopping-merchant-lfp-bom/pom.xml index fb38a75467f6..443bb9643896 100644 --- a/java-shopping-merchant-lfp/google-shopping-merchant-lfp-bom/pom.xml +++ b/java-shopping-merchant-lfp/google-shopping-merchant-lfp-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.shopping google-shopping-merchant-lfp-bom - 0.5.0-SNAPSHOT + 0.5.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.shopping google-shopping-merchant-lfp - 0.5.0-SNAPSHOT + 0.5.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-lfp-v1beta - 0.5.0-SNAPSHOT + 0.5.0 com.google.shopping.api.grpc proto-google-shopping-merchant-lfp-v1beta - 0.5.0-SNAPSHOT + 0.5.0 diff --git a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/pom.xml b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/pom.xml index e54a345802ce..4403c9abd77f 100644 --- a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/pom.xml +++ b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-lfp - 0.5.0-SNAPSHOT + 0.5.0 jar Google Merchant LFP API Merchant LFP API Programmatically manage your Merchant Center accounts. com.google.shopping google-shopping-merchant-lfp-parent - 0.5.0-SNAPSHOT + 0.5.0 google-shopping-merchant-lfp diff --git a/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1beta/pom.xml b/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1beta/pom.xml index 102350e3854c..c736d4257adb 100644 --- a/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1beta/pom.xml +++ b/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-lfp-v1beta - 0.5.0-SNAPSHOT + 0.5.0 grpc-google-shopping-merchant-lfp-v1beta GRPC library for google-shopping-merchant-lfp com.google.shopping google-shopping-merchant-lfp-parent - 0.5.0-SNAPSHOT + 0.5.0 diff --git a/java-shopping-merchant-lfp/pom.xml b/java-shopping-merchant-lfp/pom.xml index 484224a2784b..fd9a387c9c1c 100644 --- a/java-shopping-merchant-lfp/pom.xml +++ b/java-shopping-merchant-lfp/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-lfp-parent pom - 0.5.0-SNAPSHOT + 0.5.0 Google Merchant LFP API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.shopping google-shopping-merchant-lfp - 0.5.0-SNAPSHOT + 0.5.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-lfp-v1beta - 0.5.0-SNAPSHOT + 0.5.0 com.google.shopping.api.grpc proto-google-shopping-merchant-lfp-v1beta - 0.5.0-SNAPSHOT + 0.5.0 diff --git a/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/pom.xml b/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/pom.xml index 6c9478a033dc..aaaab701ec66 100644 --- a/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/pom.xml +++ b/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-lfp-v1beta - 0.5.0-SNAPSHOT + 0.5.0 proto-google-shopping-merchant-lfp-v1beta Proto library for google-shopping-merchant-lfp com.google.shopping google-shopping-merchant-lfp-parent - 0.5.0-SNAPSHOT + 0.5.0 diff --git a/java-shopping-merchant-notifications/CHANGELOG.md b/java-shopping-merchant-notifications/CHANGELOG.md index 7f3c7ac633ad..e840ed1affd5 100644 --- a/java-shopping-merchant-notifications/CHANGELOG.md +++ b/java-shopping-merchant-notifications/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.5.0 (2024-06-27) + +* No change + + ## 0.4.0 (None) * No change diff --git a/java-shopping-merchant-notifications/README.md b/java-shopping-merchant-notifications/README.md index a58fe2a4a56f..12641b072b59 100644 --- a/java-shopping-merchant-notifications/README.md +++ b/java-shopping-merchant-notifications/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-notifications - 0.4.0 + 0.5.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-notifications:0.4.0' +implementation 'com.google.shopping:google-shopping-merchant-notifications:0.5.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-notifications" % "0.4.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-notifications" % "0.5.0" ``` diff --git a/java-shopping-merchant-notifications/google-shopping-merchant-notifications-bom/pom.xml b/java-shopping-merchant-notifications/google-shopping-merchant-notifications-bom/pom.xml index 036d0c18c688..32d7ca3e5883 100644 --- a/java-shopping-merchant-notifications/google-shopping-merchant-notifications-bom/pom.xml +++ b/java-shopping-merchant-notifications/google-shopping-merchant-notifications-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.shopping google-shopping-merchant-notifications-bom - 0.5.0-SNAPSHOT + 0.5.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.shopping google-shopping-merchant-notifications - 0.5.0-SNAPSHOT + 0.5.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-notifications-v1beta - 0.5.0-SNAPSHOT + 0.5.0 com.google.shopping.api.grpc proto-google-shopping-merchant-notifications-v1beta - 0.5.0-SNAPSHOT + 0.5.0 diff --git a/java-shopping-merchant-notifications/google-shopping-merchant-notifications/pom.xml b/java-shopping-merchant-notifications/google-shopping-merchant-notifications/pom.xml index c1dd0728b5b8..8408dfea698e 100644 --- a/java-shopping-merchant-notifications/google-shopping-merchant-notifications/pom.xml +++ b/java-shopping-merchant-notifications/google-shopping-merchant-notifications/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-notifications - 0.5.0-SNAPSHOT + 0.5.0 jar Google Merchant Notifications API Merchant Notifications API Programmatically manage your Merchant Center accounts. com.google.shopping google-shopping-merchant-notifications-parent - 0.5.0-SNAPSHOT + 0.5.0 google-shopping-merchant-notifications diff --git a/java-shopping-merchant-notifications/grpc-google-shopping-merchant-notifications-v1beta/pom.xml b/java-shopping-merchant-notifications/grpc-google-shopping-merchant-notifications-v1beta/pom.xml index f7217afb7bcb..587da84a6fd8 100644 --- a/java-shopping-merchant-notifications/grpc-google-shopping-merchant-notifications-v1beta/pom.xml +++ b/java-shopping-merchant-notifications/grpc-google-shopping-merchant-notifications-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-notifications-v1beta - 0.5.0-SNAPSHOT + 0.5.0 grpc-google-shopping-merchant-notifications-v1beta GRPC library for google-shopping-merchant-notifications com.google.shopping google-shopping-merchant-notifications-parent - 0.5.0-SNAPSHOT + 0.5.0 diff --git a/java-shopping-merchant-notifications/pom.xml b/java-shopping-merchant-notifications/pom.xml index bd903f6afade..b83c0da90557 100644 --- a/java-shopping-merchant-notifications/pom.xml +++ b/java-shopping-merchant-notifications/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-notifications-parent pom - 0.5.0-SNAPSHOT + 0.5.0 Google Merchant Notifications API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.shopping google-shopping-merchant-notifications - 0.5.0-SNAPSHOT + 0.5.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-notifications-v1beta - 0.5.0-SNAPSHOT + 0.5.0 com.google.shopping.api.grpc proto-google-shopping-merchant-notifications-v1beta - 0.5.0-SNAPSHOT + 0.5.0 diff --git a/java-shopping-merchant-notifications/proto-google-shopping-merchant-notifications-v1beta/pom.xml b/java-shopping-merchant-notifications/proto-google-shopping-merchant-notifications-v1beta/pom.xml index 77891e2dcb93..d90c403f4306 100644 --- a/java-shopping-merchant-notifications/proto-google-shopping-merchant-notifications-v1beta/pom.xml +++ b/java-shopping-merchant-notifications/proto-google-shopping-merchant-notifications-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-notifications-v1beta - 0.5.0-SNAPSHOT + 0.5.0 proto-google-shopping-merchant-notifications-v1beta Proto library for google-shopping-merchant-notifications com.google.shopping google-shopping-merchant-notifications-parent - 0.5.0-SNAPSHOT + 0.5.0 diff --git a/java-shopping-merchant-products/CHANGELOG.md b/java-shopping-merchant-products/CHANGELOG.md index 7a8760f9bb40..70acbf878864 100644 --- a/java-shopping-merchant-products/CHANGELOG.md +++ b/java-shopping-merchant-products/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.2.0 (2024-06-27) + +* No change + + ## 0.1.0 (None) * No change diff --git a/java-shopping-merchant-products/README.md b/java-shopping-merchant-products/README.md index de35c8666049..43cf72aae2bc 100644 --- a/java-shopping-merchant-products/README.md +++ b/java-shopping-merchant-products/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-products - 0.1.0 + 0.2.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-products:0.1.0' +implementation 'com.google.shopping:google-shopping-merchant-products:0.2.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-products" % "0.1.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-products" % "0.2.0" ``` diff --git a/java-shopping-merchant-products/google-shopping-merchant-products-bom/pom.xml b/java-shopping-merchant-products/google-shopping-merchant-products-bom/pom.xml index 8bd0229111ab..8ac7b8d66bec 100644 --- a/java-shopping-merchant-products/google-shopping-merchant-products-bom/pom.xml +++ b/java-shopping-merchant-products/google-shopping-merchant-products-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.shopping google-shopping-merchant-products-bom - 0.2.0-SNAPSHOT + 0.2.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.shopping google-shopping-merchant-products - 0.2.0-SNAPSHOT + 0.2.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-products-v1beta - 0.2.0-SNAPSHOT + 0.2.0 com.google.shopping.api.grpc proto-google-shopping-merchant-products-v1beta - 0.2.0-SNAPSHOT + 0.2.0 diff --git a/java-shopping-merchant-products/google-shopping-merchant-products/pom.xml b/java-shopping-merchant-products/google-shopping-merchant-products/pom.xml index 49f6fa410dff..d90e14121f6a 100644 --- a/java-shopping-merchant-products/google-shopping-merchant-products/pom.xml +++ b/java-shopping-merchant-products/google-shopping-merchant-products/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-products - 0.2.0-SNAPSHOT + 0.2.0 jar Google Merchant API Merchant API Programmatically manage your Merchant Center accounts. com.google.shopping google-shopping-merchant-products-parent - 0.2.0-SNAPSHOT + 0.2.0 google-shopping-merchant-products diff --git a/java-shopping-merchant-products/grpc-google-shopping-merchant-products-v1beta/pom.xml b/java-shopping-merchant-products/grpc-google-shopping-merchant-products-v1beta/pom.xml index eab5a7e24ff8..ee4cbe8a9134 100644 --- a/java-shopping-merchant-products/grpc-google-shopping-merchant-products-v1beta/pom.xml +++ b/java-shopping-merchant-products/grpc-google-shopping-merchant-products-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-products-v1beta - 0.2.0-SNAPSHOT + 0.2.0 grpc-google-shopping-merchant-products-v1beta GRPC library for google-shopping-merchant-products com.google.shopping google-shopping-merchant-products-parent - 0.2.0-SNAPSHOT + 0.2.0 diff --git a/java-shopping-merchant-products/pom.xml b/java-shopping-merchant-products/pom.xml index 7381ed82416e..c70ed2434dfe 100644 --- a/java-shopping-merchant-products/pom.xml +++ b/java-shopping-merchant-products/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-products-parent pom - 0.2.0-SNAPSHOT + 0.2.0 Google Merchant API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.shopping google-shopping-merchant-products - 0.2.0-SNAPSHOT + 0.2.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-products-v1beta - 0.2.0-SNAPSHOT + 0.2.0 com.google.shopping.api.grpc proto-google-shopping-merchant-products-v1beta - 0.2.0-SNAPSHOT + 0.2.0 diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/pom.xml b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/pom.xml index eac33da80f90..129650f11455 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/pom.xml +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-products-v1beta - 0.2.0-SNAPSHOT + 0.2.0 proto-google-shopping-merchant-products-v1beta Proto library for google-shopping-merchant-products com.google.shopping google-shopping-merchant-products-parent - 0.2.0-SNAPSHOT + 0.2.0 diff --git a/java-shopping-merchant-promotions/CHANGELOG.md b/java-shopping-merchant-promotions/CHANGELOG.md index 7a8760f9bb40..70acbf878864 100644 --- a/java-shopping-merchant-promotions/CHANGELOG.md +++ b/java-shopping-merchant-promotions/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.2.0 (2024-06-27) + +* No change + + ## 0.1.0 (None) * No change diff --git a/java-shopping-merchant-promotions/README.md b/java-shopping-merchant-promotions/README.md index 1199369a4990..b2cda0e535ae 100644 --- a/java-shopping-merchant-promotions/README.md +++ b/java-shopping-merchant-promotions/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-promotions - 0.1.0 + 0.2.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-promotions:0.1.0' +implementation 'com.google.shopping:google-shopping-merchant-promotions:0.2.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-promotions" % "0.1.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-promotions" % "0.2.0" ``` diff --git a/java-shopping-merchant-promotions/google-shopping-merchant-promotions-bom/pom.xml b/java-shopping-merchant-promotions/google-shopping-merchant-promotions-bom/pom.xml index aab038af9ecc..0b2eb6aa6d70 100644 --- a/java-shopping-merchant-promotions/google-shopping-merchant-promotions-bom/pom.xml +++ b/java-shopping-merchant-promotions/google-shopping-merchant-promotions-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.shopping google-shopping-merchant-promotions-bom - 0.2.0-SNAPSHOT + 0.2.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.shopping google-shopping-merchant-promotions - 0.2.0-SNAPSHOT + 0.2.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-promotions-v1beta - 0.2.0-SNAPSHOT + 0.2.0 com.google.shopping.api.grpc proto-google-shopping-merchant-promotions-v1beta - 0.2.0-SNAPSHOT + 0.2.0 diff --git a/java-shopping-merchant-promotions/google-shopping-merchant-promotions/pom.xml b/java-shopping-merchant-promotions/google-shopping-merchant-promotions/pom.xml index 5339117a21e4..8e4510f32b4c 100644 --- a/java-shopping-merchant-promotions/google-shopping-merchant-promotions/pom.xml +++ b/java-shopping-merchant-promotions/google-shopping-merchant-promotions/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-promotions - 0.2.0-SNAPSHOT + 0.2.0 jar Google Merchant API Merchant API Programmatically manage your Merchant Center accounts. com.google.shopping google-shopping-merchant-promotions-parent - 0.2.0-SNAPSHOT + 0.2.0 google-shopping-merchant-promotions diff --git a/java-shopping-merchant-promotions/grpc-google-shopping-merchant-promotions-v1beta/pom.xml b/java-shopping-merchant-promotions/grpc-google-shopping-merchant-promotions-v1beta/pom.xml index 53d353805d4a..58800b742fc1 100644 --- a/java-shopping-merchant-promotions/grpc-google-shopping-merchant-promotions-v1beta/pom.xml +++ b/java-shopping-merchant-promotions/grpc-google-shopping-merchant-promotions-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-promotions-v1beta - 0.2.0-SNAPSHOT + 0.2.0 grpc-google-shopping-merchant-promotions-v1beta GRPC library for google-shopping-merchant-promotions com.google.shopping google-shopping-merchant-promotions-parent - 0.2.0-SNAPSHOT + 0.2.0 diff --git a/java-shopping-merchant-promotions/pom.xml b/java-shopping-merchant-promotions/pom.xml index 7dc6dad0fd13..895e98acbed2 100644 --- a/java-shopping-merchant-promotions/pom.xml +++ b/java-shopping-merchant-promotions/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-promotions-parent pom - 0.2.0-SNAPSHOT + 0.2.0 Google Merchant API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.shopping google-shopping-merchant-promotions - 0.2.0-SNAPSHOT + 0.2.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-promotions-v1beta - 0.2.0-SNAPSHOT + 0.2.0 com.google.shopping.api.grpc proto-google-shopping-merchant-promotions-v1beta - 0.2.0-SNAPSHOT + 0.2.0 diff --git a/java-shopping-merchant-promotions/proto-google-shopping-merchant-promotions-v1beta/pom.xml b/java-shopping-merchant-promotions/proto-google-shopping-merchant-promotions-v1beta/pom.xml index 9673d928afbf..8af6f9a087f4 100644 --- a/java-shopping-merchant-promotions/proto-google-shopping-merchant-promotions-v1beta/pom.xml +++ b/java-shopping-merchant-promotions/proto-google-shopping-merchant-promotions-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-promotions-v1beta - 0.2.0-SNAPSHOT + 0.2.0 proto-google-shopping-merchant-promotions-v1beta Proto library for google-shopping-merchant-promotions com.google.shopping google-shopping-merchant-promotions-parent - 0.2.0-SNAPSHOT + 0.2.0 diff --git a/java-shopping-merchant-quota/CHANGELOG.md b/java-shopping-merchant-quota/CHANGELOG.md index 3e422e789a37..4441a84f8fbf 100644 --- a/java-shopping-merchant-quota/CHANGELOG.md +++ b/java-shopping-merchant-quota/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.9.0 (2024-06-27) + +* No change + + ## 0.8.0 (None) * No change diff --git a/java-shopping-merchant-quota/README.md b/java-shopping-merchant-quota/README.md index edd04e4336ee..672559312aaf 100644 --- a/java-shopping-merchant-quota/README.md +++ b/java-shopping-merchant-quota/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-quota - 0.8.0 + 0.9.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-quota:0.8.0' +implementation 'com.google.shopping:google-shopping-merchant-quota:0.9.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-quota" % "0.8.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-quota" % "0.9.0" ``` diff --git a/java-shopping-merchant-quota/google-shopping-merchant-quota-bom/pom.xml b/java-shopping-merchant-quota/google-shopping-merchant-quota-bom/pom.xml index 67b77aa4817f..b823b8fee000 100644 --- a/java-shopping-merchant-quota/google-shopping-merchant-quota-bom/pom.xml +++ b/java-shopping-merchant-quota/google-shopping-merchant-quota-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.shopping google-shopping-merchant-quota-bom - 0.9.0-SNAPSHOT + 0.9.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.shopping google-shopping-merchant-quota - 0.9.0-SNAPSHOT + 0.9.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-quota-v1beta - 0.9.0-SNAPSHOT + 0.9.0 com.google.shopping.api.grpc proto-google-shopping-merchant-quota-v1beta - 0.9.0-SNAPSHOT + 0.9.0 diff --git a/java-shopping-merchant-quota/google-shopping-merchant-quota/pom.xml b/java-shopping-merchant-quota/google-shopping-merchant-quota/pom.xml index eb66994c78b0..c2381db611f4 100644 --- a/java-shopping-merchant-quota/google-shopping-merchant-quota/pom.xml +++ b/java-shopping-merchant-quota/google-shopping-merchant-quota/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-quota - 0.9.0-SNAPSHOT + 0.9.0 jar Google Merchant Quota API Merchant Quota API Programmatically manage your Merchant Center accounts. com.google.shopping google-shopping-merchant-quota-parent - 0.9.0-SNAPSHOT + 0.9.0 google-shopping-merchant-quota diff --git a/java-shopping-merchant-quota/grpc-google-shopping-merchant-quota-v1beta/pom.xml b/java-shopping-merchant-quota/grpc-google-shopping-merchant-quota-v1beta/pom.xml index 5ff9cb267421..5c9a89efbfb8 100644 --- a/java-shopping-merchant-quota/grpc-google-shopping-merchant-quota-v1beta/pom.xml +++ b/java-shopping-merchant-quota/grpc-google-shopping-merchant-quota-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-quota-v1beta - 0.9.0-SNAPSHOT + 0.9.0 grpc-google-shopping-merchant-quota-v1beta GRPC library for google-shopping-merchant-quota com.google.shopping google-shopping-merchant-quota-parent - 0.9.0-SNAPSHOT + 0.9.0 diff --git a/java-shopping-merchant-quota/pom.xml b/java-shopping-merchant-quota/pom.xml index bdf514f90a36..3fbf076b6d60 100644 --- a/java-shopping-merchant-quota/pom.xml +++ b/java-shopping-merchant-quota/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-quota-parent pom - 0.9.0-SNAPSHOT + 0.9.0 Google Merchant Quota API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.shopping google-shopping-merchant-quota - 0.9.0-SNAPSHOT + 0.9.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-quota-v1beta - 0.9.0-SNAPSHOT + 0.9.0 com.google.shopping.api.grpc proto-google-shopping-merchant-quota-v1beta - 0.9.0-SNAPSHOT + 0.9.0 diff --git a/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1beta/pom.xml b/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1beta/pom.xml index 207d239e7bbd..2db89aa82f80 100644 --- a/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1beta/pom.xml +++ b/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-quota-v1beta - 0.9.0-SNAPSHOT + 0.9.0 proto-google-shopping-merchant-quota-v1beta Proto library for google-shopping-merchant-quota com.google.shopping google-shopping-merchant-quota-parent - 0.9.0-SNAPSHOT + 0.9.0 diff --git a/java-shopping-merchant-reports/CHANGELOG.md b/java-shopping-merchant-reports/CHANGELOG.md index 9bf0622c37d4..ba8bc8bba45f 100644 --- a/java-shopping-merchant-reports/CHANGELOG.md +++ b/java-shopping-merchant-reports/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.22.0 (2024-06-27) + +* No change + + ## 0.21.0 (None) * No change diff --git a/java-shopping-merchant-reports/README.md b/java-shopping-merchant-reports/README.md index 7b125ab5d66e..d6c99edcf2dd 100644 --- a/java-shopping-merchant-reports/README.md +++ b/java-shopping-merchant-reports/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.shopping google-shopping-merchant-reports - 0.21.0 + 0.22.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-reports:0.21.0' +implementation 'com.google.shopping:google-shopping-merchant-reports:0.22.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-reports" % "0.21.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-reports" % "0.22.0" ``` diff --git a/java-shopping-merchant-reports/google-shopping-merchant-reports-bom/pom.xml b/java-shopping-merchant-reports/google-shopping-merchant-reports-bom/pom.xml index c4a1a07b3029..ad3c755142ce 100644 --- a/java-shopping-merchant-reports/google-shopping-merchant-reports-bom/pom.xml +++ b/java-shopping-merchant-reports/google-shopping-merchant-reports-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.shopping google-shopping-merchant-reports-bom - 0.22.0-SNAPSHOT + 0.22.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.shopping google-shopping-merchant-reports - 0.22.0-SNAPSHOT + 0.22.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-reports-v1beta - 0.22.0-SNAPSHOT + 0.22.0 com.google.shopping.api.grpc proto-google-shopping-merchant-reports-v1beta - 0.22.0-SNAPSHOT + 0.22.0 diff --git a/java-shopping-merchant-reports/google-shopping-merchant-reports/pom.xml b/java-shopping-merchant-reports/google-shopping-merchant-reports/pom.xml index 55012932956f..2f84c35329ce 100644 --- a/java-shopping-merchant-reports/google-shopping-merchant-reports/pom.xml +++ b/java-shopping-merchant-reports/google-shopping-merchant-reports/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-reports - 0.22.0-SNAPSHOT + 0.22.0 jar Google Merchant API Merchant API Programmatically manage your Merchant Center accounts. com.google.shopping google-shopping-merchant-reports-parent - 0.22.0-SNAPSHOT + 0.22.0 google-shopping-merchant-reports diff --git a/java-shopping-merchant-reports/grpc-google-shopping-merchant-reports-v1beta/pom.xml b/java-shopping-merchant-reports/grpc-google-shopping-merchant-reports-v1beta/pom.xml index 38aa31c567ad..782e20a99f6e 100644 --- a/java-shopping-merchant-reports/grpc-google-shopping-merchant-reports-v1beta/pom.xml +++ b/java-shopping-merchant-reports/grpc-google-shopping-merchant-reports-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-reports-v1beta - 0.22.0-SNAPSHOT + 0.22.0 grpc-google-shopping-merchant-reports-v1beta GRPC library for google-shopping-merchant-reports com.google.shopping google-shopping-merchant-reports-parent - 0.22.0-SNAPSHOT + 0.22.0 diff --git a/java-shopping-merchant-reports/pom.xml b/java-shopping-merchant-reports/pom.xml index 3f30b0b7c683..48d04f581dba 100644 --- a/java-shopping-merchant-reports/pom.xml +++ b/java-shopping-merchant-reports/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-reports-parent pom - 0.22.0-SNAPSHOT + 0.22.0 Google Merchant API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.shopping google-shopping-merchant-reports - 0.22.0-SNAPSHOT + 0.22.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-reports-v1beta - 0.22.0-SNAPSHOT + 0.22.0 com.google.shopping.api.grpc proto-google-shopping-merchant-reports-v1beta - 0.22.0-SNAPSHOT + 0.22.0 diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/pom.xml b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/pom.xml index 1a1d09497cbe..84603a771611 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/pom.xml +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-reports-v1beta - 0.22.0-SNAPSHOT + 0.22.0 proto-google-shopping-merchant-reports-v1beta Proto library for google-shopping-merchant-reports com.google.shopping google-shopping-merchant-reports-parent - 0.22.0-SNAPSHOT + 0.22.0 diff --git a/java-speech/CHANGELOG.md b/java-speech/CHANGELOG.md index acd952616f4f..2149b871679a 100644 --- a/java-speech/CHANGELOG.md +++ b/java-speech/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 4.41.0 (2024-06-27) + +* No change + + ## 4.40.0 (None) * No change diff --git a/java-speech/README.md b/java-speech/README.md index b7b96fedc9cd..efdfc5893420 100644 --- a/java-speech/README.md +++ b/java-speech/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-speech - 4.40.0 + 4.41.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-speech:4.40.0' +implementation 'com.google.cloud:google-cloud-speech:4.41.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-speech" % "4.40.0" +libraryDependencies += "com.google.cloud" % "google-cloud-speech" % "4.41.0" ``` diff --git a/java-speech/google-cloud-speech-bom/pom.xml b/java-speech/google-cloud-speech-bom/pom.xml index 59763de43385..81c4d56264da 100644 --- a/java-speech/google-cloud-speech-bom/pom.xml +++ b/java-speech/google-cloud-speech-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-speech-bom - 4.41.0-SNAPSHOT + 4.41.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -23,47 +23,47 @@ com.google.cloud google-cloud-speech - 4.41.0-SNAPSHOT + 4.41.0 com.google.api.grpc grpc-google-cloud-speech-v1 - 4.41.0-SNAPSHOT + 4.41.0 com.google.api.grpc grpc-google-cloud-speech-v1beta1 - 2.41.0-SNAPSHOT + 2.41.0 com.google.api.grpc grpc-google-cloud-speech-v1p1beta1 - 2.41.0-SNAPSHOT + 2.41.0 com.google.api.grpc grpc-google-cloud-speech-v2 - 4.41.0-SNAPSHOT + 4.41.0 com.google.api.grpc proto-google-cloud-speech-v1 - 4.41.0-SNAPSHOT + 4.41.0 com.google.api.grpc proto-google-cloud-speech-v1beta1 - 2.41.0-SNAPSHOT + 2.41.0 com.google.api.grpc proto-google-cloud-speech-v1p1beta1 - 2.41.0-SNAPSHOT + 2.41.0 com.google.api.grpc proto-google-cloud-speech-v2 - 4.41.0-SNAPSHOT + 4.41.0 diff --git a/java-speech/google-cloud-speech/pom.xml b/java-speech/google-cloud-speech/pom.xml index 7b9e0d48b219..bf7b7b66b06f 100644 --- a/java-speech/google-cloud-speech/pom.xml +++ b/java-speech/google-cloud-speech/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-speech - 4.41.0-SNAPSHOT + 4.41.0 jar Google Cloud Speech @@ -12,7 +12,7 @@ com.google.cloud google-cloud-speech-parent - 4.41.0-SNAPSHOT + 4.41.0 google-cloud-speech diff --git a/java-speech/grpc-google-cloud-speech-v1/pom.xml b/java-speech/grpc-google-cloud-speech-v1/pom.xml index 741da050202a..17c243daaaf9 100644 --- a/java-speech/grpc-google-cloud-speech-v1/pom.xml +++ b/java-speech/grpc-google-cloud-speech-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-speech-v1 - 4.41.0-SNAPSHOT + 4.41.0 grpc-google-cloud-speech-v1 GRPC library for grpc-google-cloud-speech-v1 com.google.cloud google-cloud-speech-parent - 4.41.0-SNAPSHOT + 4.41.0 diff --git a/java-speech/grpc-google-cloud-speech-v1beta1/pom.xml b/java-speech/grpc-google-cloud-speech-v1beta1/pom.xml index a367caef1dc8..65fef62591f7 100644 --- a/java-speech/grpc-google-cloud-speech-v1beta1/pom.xml +++ b/java-speech/grpc-google-cloud-speech-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-speech-v1beta1 - 2.41.0-SNAPSHOT + 2.41.0 grpc-google-cloud-speech-v1beta1 GRPC library for grpc-google-cloud-speech-v1beta1 com.google.cloud google-cloud-speech-parent - 4.41.0-SNAPSHOT + 4.41.0 diff --git a/java-speech/grpc-google-cloud-speech-v1p1beta1/pom.xml b/java-speech/grpc-google-cloud-speech-v1p1beta1/pom.xml index 6ca008341ab7..22e9f164809d 100644 --- a/java-speech/grpc-google-cloud-speech-v1p1beta1/pom.xml +++ b/java-speech/grpc-google-cloud-speech-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-speech-v1p1beta1 - 2.41.0-SNAPSHOT + 2.41.0 grpc-google-cloud-speech-v1p1beta1 GRPC library for grpc-google-cloud-speech-v1p1beta1 com.google.cloud google-cloud-speech-parent - 4.41.0-SNAPSHOT + 4.41.0 diff --git a/java-speech/grpc-google-cloud-speech-v2/pom.xml b/java-speech/grpc-google-cloud-speech-v2/pom.xml index 6cd8c555fc1f..2a03e4885a0b 100644 --- a/java-speech/grpc-google-cloud-speech-v2/pom.xml +++ b/java-speech/grpc-google-cloud-speech-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-speech-v2 - 4.41.0-SNAPSHOT + 4.41.0 grpc-google-cloud-speech-v2 GRPC library for google-cloud-speech com.google.cloud google-cloud-speech-parent - 4.41.0-SNAPSHOT + 4.41.0 diff --git a/java-speech/pom.xml b/java-speech/pom.xml index 6dd82c2dc0fc..b445a805d8f0 100644 --- a/java-speech/pom.xml +++ b/java-speech/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-speech-parent pom - 4.41.0-SNAPSHOT + 4.41.0 Google Cloud speech Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,47 +29,47 @@ com.google.api.grpc proto-google-cloud-speech-v1 - 4.41.0-SNAPSHOT + 4.41.0 com.google.api.grpc proto-google-cloud-speech-v2 - 4.41.0-SNAPSHOT + 4.41.0 com.google.api.grpc grpc-google-cloud-speech-v2 - 4.41.0-SNAPSHOT + 4.41.0 com.google.cloud google-cloud-speech - 4.41.0-SNAPSHOT + 4.41.0 com.google.api.grpc proto-google-cloud-speech-v1beta1 - 2.41.0-SNAPSHOT + 2.41.0 com.google.api.grpc proto-google-cloud-speech-v1p1beta1 - 2.41.0-SNAPSHOT + 2.41.0 com.google.api.grpc grpc-google-cloud-speech-v1 - 4.41.0-SNAPSHOT + 4.41.0 com.google.api.grpc grpc-google-cloud-speech-v1beta1 - 2.41.0-SNAPSHOT + 2.41.0 com.google.api.grpc grpc-google-cloud-speech-v1p1beta1 - 2.41.0-SNAPSHOT + 2.41.0 diff --git a/java-speech/proto-google-cloud-speech-v1/pom.xml b/java-speech/proto-google-cloud-speech-v1/pom.xml index 97dc88abebbe..6a2d4800051e 100644 --- a/java-speech/proto-google-cloud-speech-v1/pom.xml +++ b/java-speech/proto-google-cloud-speech-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-speech-v1 - 4.41.0-SNAPSHOT + 4.41.0 proto-google-cloud-speech-v1 PROTO library for proto-google-cloud-speech-v1 com.google.cloud google-cloud-speech-parent - 4.41.0-SNAPSHOT + 4.41.0 diff --git a/java-speech/proto-google-cloud-speech-v1beta1/pom.xml b/java-speech/proto-google-cloud-speech-v1beta1/pom.xml index c814604a1a24..8929a3cd7996 100644 --- a/java-speech/proto-google-cloud-speech-v1beta1/pom.xml +++ b/java-speech/proto-google-cloud-speech-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-speech-v1beta1 - 2.41.0-SNAPSHOT + 2.41.0 proto-google-cloud-speech-v1beta1 PROTO library for proto-google-cloud-speech-v1beta1 com.google.cloud google-cloud-speech-parent - 4.41.0-SNAPSHOT + 4.41.0 diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/pom.xml b/java-speech/proto-google-cloud-speech-v1p1beta1/pom.xml index 402fc641f2ae..41e061b1dfe5 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/pom.xml +++ b/java-speech/proto-google-cloud-speech-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-speech-v1p1beta1 - 2.41.0-SNAPSHOT + 2.41.0 proto-google-cloud-speech-v1p1beta1 PROTO library for proto-google-cloud-speech-v1p1beta1 com.google.cloud google-cloud-speech-parent - 4.41.0-SNAPSHOT + 4.41.0 diff --git a/java-speech/proto-google-cloud-speech-v2/pom.xml b/java-speech/proto-google-cloud-speech-v2/pom.xml index 52bbeb617ea6..473106d453ac 100644 --- a/java-speech/proto-google-cloud-speech-v2/pom.xml +++ b/java-speech/proto-google-cloud-speech-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-speech-v2 - 4.41.0-SNAPSHOT + 4.41.0 proto-google-cloud-speech-v2 Proto library for google-cloud-speech com.google.cloud google-cloud-speech-parent - 4.41.0-SNAPSHOT + 4.41.0 diff --git a/java-storage-transfer/CHANGELOG.md b/java-storage-transfer/CHANGELOG.md index 3cc37a8eb4bb..f788d746bb3c 100644 --- a/java-storage-transfer/CHANGELOG.md +++ b/java-storage-transfer/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 1.46.0 (2024-06-27) + +* No change + + ## 1.45.0 (None) * No change diff --git a/java-storage-transfer/README.md b/java-storage-transfer/README.md index 7f711ea84ea4..0bbdf2c39959 100644 --- a/java-storage-transfer/README.md +++ b/java-storage-transfer/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-storage-transfer - 1.45.0 + 1.46.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-storage-transfer:1.45.0' +implementation 'com.google.cloud:google-cloud-storage-transfer:1.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-storage-transfer" % "1.45.0" +libraryDependencies += "com.google.cloud" % "google-cloud-storage-transfer" % "1.46.0" ``` diff --git a/java-storage-transfer/google-cloud-storage-transfer-bom/pom.xml b/java-storage-transfer/google-cloud-storage-transfer-bom/pom.xml index 82c07408e116..7bcf45efadb3 100644 --- a/java-storage-transfer/google-cloud-storage-transfer-bom/pom.xml +++ b/java-storage-transfer/google-cloud-storage-transfer-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-storage-transfer-bom - 1.46.0-SNAPSHOT + 1.46.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-storage-transfer - 1.46.0-SNAPSHOT + 1.46.0 com.google.api.grpc grpc-google-cloud-storage-transfer-v1 - 1.46.0-SNAPSHOT + 1.46.0 com.google.api.grpc proto-google-cloud-storage-transfer-v1 - 1.46.0-SNAPSHOT + 1.46.0 diff --git a/java-storage-transfer/google-cloud-storage-transfer/pom.xml b/java-storage-transfer/google-cloud-storage-transfer/pom.xml index 7ef5a765469a..ca6131caf5a9 100644 --- a/java-storage-transfer/google-cloud-storage-transfer/pom.xml +++ b/java-storage-transfer/google-cloud-storage-transfer/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-storage-transfer - 1.46.0-SNAPSHOT + 1.46.0 jar Google Storage Transfer Service Storage Transfer Service Secure, low-cost services for transferring data from cloud or on-premises sources. com.google.cloud google-cloud-storage-transfer-parent - 1.46.0-SNAPSHOT + 1.46.0 google-cloud-storage-transfer diff --git a/java-storage-transfer/grpc-google-cloud-storage-transfer-v1/pom.xml b/java-storage-transfer/grpc-google-cloud-storage-transfer-v1/pom.xml index 5977a3a04665..22b1286ff06e 100644 --- a/java-storage-transfer/grpc-google-cloud-storage-transfer-v1/pom.xml +++ b/java-storage-transfer/grpc-google-cloud-storage-transfer-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-storage-transfer-v1 - 1.46.0-SNAPSHOT + 1.46.0 grpc-google-cloud-storage-transfer-v1 GRPC library for google-cloud-storage-transfer com.google.cloud google-cloud-storage-transfer-parent - 1.46.0-SNAPSHOT + 1.46.0 diff --git a/java-storage-transfer/pom.xml b/java-storage-transfer/pom.xml index 99ec63ca2786..5217e0244881 100644 --- a/java-storage-transfer/pom.xml +++ b/java-storage-transfer/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-storage-transfer-parent pom - 1.46.0-SNAPSHOT + 1.46.0 Google Storage Transfer Service Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-storage-transfer - 1.46.0-SNAPSHOT + 1.46.0 com.google.api.grpc grpc-google-cloud-storage-transfer-v1 - 1.46.0-SNAPSHOT + 1.46.0 com.google.api.grpc proto-google-cloud-storage-transfer-v1 - 1.46.0-SNAPSHOT + 1.46.0 diff --git a/java-storage-transfer/proto-google-cloud-storage-transfer-v1/pom.xml b/java-storage-transfer/proto-google-cloud-storage-transfer-v1/pom.xml index c432d08b989c..2e6def9d16e1 100644 --- a/java-storage-transfer/proto-google-cloud-storage-transfer-v1/pom.xml +++ b/java-storage-transfer/proto-google-cloud-storage-transfer-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-storage-transfer-v1 - 1.46.0-SNAPSHOT + 1.46.0 proto-google-cloud-storage-transfer-v1 Proto library for google-cloud-storage-transfer com.google.cloud google-cloud-storage-transfer-parent - 1.46.0-SNAPSHOT + 1.46.0 diff --git a/java-storageinsights/CHANGELOG.md b/java-storageinsights/CHANGELOG.md index bade9dd1f61f..a234932a6e3a 100644 --- a/java-storageinsights/CHANGELOG.md +++ b/java-storageinsights/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.31.0 (2024-06-27) + +* No change + + ## 0.30.0 (None) * No change diff --git a/java-storageinsights/README.md b/java-storageinsights/README.md index 907806d1cad4..a6a18760861e 100644 --- a/java-storageinsights/README.md +++ b/java-storageinsights/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-storageinsights - 0.30.0 + 0.31.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-storageinsights:0.30.0' +implementation 'com.google.cloud:google-cloud-storageinsights:0.31.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-storageinsights" % "0.30.0" +libraryDependencies += "com.google.cloud" % "google-cloud-storageinsights" % "0.31.0" ``` diff --git a/java-storageinsights/google-cloud-storageinsights-bom/pom.xml b/java-storageinsights/google-cloud-storageinsights-bom/pom.xml index c50f86dd7d5b..94cd1bb95726 100644 --- a/java-storageinsights/google-cloud-storageinsights-bom/pom.xml +++ b/java-storageinsights/google-cloud-storageinsights-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-storageinsights-bom - 0.31.0-SNAPSHOT + 0.31.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-storageinsights - 0.31.0-SNAPSHOT + 0.31.0 com.google.api.grpc grpc-google-cloud-storageinsights-v1 - 0.31.0-SNAPSHOT + 0.31.0 com.google.api.grpc proto-google-cloud-storageinsights-v1 - 0.31.0-SNAPSHOT + 0.31.0 diff --git a/java-storageinsights/google-cloud-storageinsights/pom.xml b/java-storageinsights/google-cloud-storageinsights/pom.xml index 45c4254ad3bc..f0723baddec7 100644 --- a/java-storageinsights/google-cloud-storageinsights/pom.xml +++ b/java-storageinsights/google-cloud-storageinsights/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-storageinsights - 0.31.0-SNAPSHOT + 0.31.0 jar Google Storage Insights API Storage Insights API Provides insights capability on Google Cloud Storage com.google.cloud google-cloud-storageinsights-parent - 0.31.0-SNAPSHOT + 0.31.0 google-cloud-storageinsights diff --git a/java-storageinsights/grpc-google-cloud-storageinsights-v1/pom.xml b/java-storageinsights/grpc-google-cloud-storageinsights-v1/pom.xml index c1f39f6fd225..03ab0b454501 100644 --- a/java-storageinsights/grpc-google-cloud-storageinsights-v1/pom.xml +++ b/java-storageinsights/grpc-google-cloud-storageinsights-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-storageinsights-v1 - 0.31.0-SNAPSHOT + 0.31.0 grpc-google-cloud-storageinsights-v1 GRPC library for google-cloud-storageinsights com.google.cloud google-cloud-storageinsights-parent - 0.31.0-SNAPSHOT + 0.31.0 diff --git a/java-storageinsights/pom.xml b/java-storageinsights/pom.xml index 52bf90de78b0..eb6a323be215 100644 --- a/java-storageinsights/pom.xml +++ b/java-storageinsights/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-storageinsights-parent pom - 0.31.0-SNAPSHOT + 0.31.0 Google Storage Insights API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-storageinsights - 0.31.0-SNAPSHOT + 0.31.0 com.google.api.grpc grpc-google-cloud-storageinsights-v1 - 0.31.0-SNAPSHOT + 0.31.0 com.google.api.grpc proto-google-cloud-storageinsights-v1 - 0.31.0-SNAPSHOT + 0.31.0 diff --git a/java-storageinsights/proto-google-cloud-storageinsights-v1/pom.xml b/java-storageinsights/proto-google-cloud-storageinsights-v1/pom.xml index 66af2e75a3fe..c700a7b965bc 100644 --- a/java-storageinsights/proto-google-cloud-storageinsights-v1/pom.xml +++ b/java-storageinsights/proto-google-cloud-storageinsights-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-storageinsights-v1 - 0.31.0-SNAPSHOT + 0.31.0 proto-google-cloud-storageinsights-v1 Proto library for google-cloud-storageinsights com.google.cloud google-cloud-storageinsights-parent - 0.31.0-SNAPSHOT + 0.31.0 diff --git a/java-talent/CHANGELOG.md b/java-talent/CHANGELOG.md index e4bd3b2b2695..8ac43fa212d3 100644 --- a/java-talent/CHANGELOG.md +++ b/java-talent/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.47.0 (2024-06-27) + +* No change + + ## 2.46.0 (None) * No change diff --git a/java-talent/README.md b/java-talent/README.md index d1cc588d2500..bba2df425b84 100644 --- a/java-talent/README.md +++ b/java-talent/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-talent - 2.46.0 + 2.47.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-talent:2.46.0' +implementation 'com.google.cloud:google-cloud-talent:2.47.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-talent" % "2.46.0" +libraryDependencies += "com.google.cloud" % "google-cloud-talent" % "2.47.0" ``` diff --git a/java-talent/google-cloud-talent-bom/pom.xml b/java-talent/google-cloud-talent-bom/pom.xml index b14179f4f932..292470e25290 100644 --- a/java-talent/google-cloud-talent-bom/pom.xml +++ b/java-talent/google-cloud-talent-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-talent-bom - 2.47.0-SNAPSHOT + 2.47.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-talent - 2.47.0-SNAPSHOT + 2.47.0 com.google.api.grpc grpc-google-cloud-talent-v4 - 2.47.0-SNAPSHOT + 2.47.0 com.google.api.grpc grpc-google-cloud-talent-v4beta1 - 0.90.0-SNAPSHOT + 0.90.0 com.google.api.grpc proto-google-cloud-talent-v4 - 2.47.0-SNAPSHOT + 2.47.0 com.google.api.grpc proto-google-cloud-talent-v4beta1 - 0.90.0-SNAPSHOT + 0.90.0 diff --git a/java-talent/google-cloud-talent/pom.xml b/java-talent/google-cloud-talent/pom.xml index b105e5441650..0a70ff05b843 100644 --- a/java-talent/google-cloud-talent/pom.xml +++ b/java-talent/google-cloud-talent/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-talent - 2.47.0-SNAPSHOT + 2.47.0 jar Google Cloud Talent Solution Java idiomatic client for Google Cloud Talent Solution com.google.cloud google-cloud-talent-parent - 2.47.0-SNAPSHOT + 2.47.0 google-cloud-talent diff --git a/java-talent/grpc-google-cloud-talent-v4/pom.xml b/java-talent/grpc-google-cloud-talent-v4/pom.xml index 42930cc4513d..b9cb458e7732 100644 --- a/java-talent/grpc-google-cloud-talent-v4/pom.xml +++ b/java-talent/grpc-google-cloud-talent-v4/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-talent-v4 - 2.47.0-SNAPSHOT + 2.47.0 grpc-google-cloud-talent-v4 GRPC library for grpc-google-cloud-talent-v4 com.google.cloud google-cloud-talent-parent - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-talent/grpc-google-cloud-talent-v4beta1/pom.xml b/java-talent/grpc-google-cloud-talent-v4beta1/pom.xml index 3e7667efb8c7..c30995e46a99 100644 --- a/java-talent/grpc-google-cloud-talent-v4beta1/pom.xml +++ b/java-talent/grpc-google-cloud-talent-v4beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-talent-v4beta1 - 0.90.0-SNAPSHOT + 0.90.0 grpc-google-cloud-talent-v4beta1 GRPC library for grpc-google-cloud-talent-v4beta1 com.google.cloud google-cloud-talent-parent - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-talent/pom.xml b/java-talent/pom.xml index 59ffb4b20f62..c35f7c256d8b 100644 --- a/java-talent/pom.xml +++ b/java-talent/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-talent-parent pom - 2.47.0-SNAPSHOT + 2.47.0 Google Cloud Talent Solution Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,32 +29,32 @@ com.google.api.grpc proto-google-cloud-talent-v4beta1 - 0.90.0-SNAPSHOT + 0.90.0 com.google.api.grpc proto-google-cloud-talent-v4 - 2.47.0-SNAPSHOT + 2.47.0 com.google.api.grpc grpc-google-cloud-talent-v4beta1 - 0.90.0-SNAPSHOT + 0.90.0 com.google.api.grpc grpc-google-cloud-talent-v4 - 2.47.0-SNAPSHOT + 2.47.0 com.google.cloud google-cloud-talent - 2.47.0-SNAPSHOT + 2.47.0 com.google.cloud google-cloud-talent-bom - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-talent/proto-google-cloud-talent-v4/pom.xml b/java-talent/proto-google-cloud-talent-v4/pom.xml index e8e707b11697..f9db7fcea9ed 100644 --- a/java-talent/proto-google-cloud-talent-v4/pom.xml +++ b/java-talent/proto-google-cloud-talent-v4/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-talent-v4 - 2.47.0-SNAPSHOT + 2.47.0 proto-google-cloud-talent-v4 PROTO library for proto-google-cloud-talent-v4 com.google.cloud google-cloud-talent-parent - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-talent/proto-google-cloud-talent-v4beta1/pom.xml b/java-talent/proto-google-cloud-talent-v4beta1/pom.xml index 4f43a02a2a36..71f14789fb96 100644 --- a/java-talent/proto-google-cloud-talent-v4beta1/pom.xml +++ b/java-talent/proto-google-cloud-talent-v4beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-talent-v4beta1 - 0.90.0-SNAPSHOT + 0.90.0 proto-google-cloud-talent-v4beta1 PROTO library for proto-google-cloud-talent-v4beta1 com.google.cloud google-cloud-talent-parent - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-tasks/CHANGELOG.md b/java-tasks/CHANGELOG.md index ab248e3fc667..79d1fad35d03 100644 --- a/java-tasks/CHANGELOG.md +++ b/java-tasks/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.46.0 (2024-06-27) + +* No change + + ## 2.45.0 (None) * No change diff --git a/java-tasks/README.md b/java-tasks/README.md index e00bde751d75..153a0a5c6be9 100644 --- a/java-tasks/README.md +++ b/java-tasks/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-tasks - 2.45.0 + 2.46.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-tasks:2.45.0' +implementation 'com.google.cloud:google-cloud-tasks:2.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.45.0" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.46.0" ``` diff --git a/java-tasks/google-cloud-tasks-bom/pom.xml b/java-tasks/google-cloud-tasks-bom/pom.xml index 1849428b47b5..dcd890fc4fbf 100644 --- a/java-tasks/google-cloud-tasks-bom/pom.xml +++ b/java-tasks/google-cloud-tasks-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.46.0-SNAPSHOT + 2.46.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -23,37 +23,37 @@ com.google.cloud google-cloud-tasks - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.136.0-SNAPSHOT + 0.136.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.136.0-SNAPSHOT + 0.136.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.136.0-SNAPSHOT + 0.136.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.136.0-SNAPSHOT + 0.136.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-tasks/google-cloud-tasks/pom.xml b/java-tasks/google-cloud-tasks/pom.xml index 53433c5bf064..03416f7c5d89 100644 --- a/java-tasks/google-cloud-tasks/pom.xml +++ b/java-tasks/google-cloud-tasks/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.46.0-SNAPSHOT + 2.46.0 jar Google Cloud Tasks Java idiomatic client for Google Cloud Tasks com.google.cloud google-cloud-tasks-parent - 2.46.0-SNAPSHOT + 2.46.0 google-cloud-tasks diff --git a/java-tasks/grpc-google-cloud-tasks-v2/pom.xml b/java-tasks/grpc-google-cloud-tasks-v2/pom.xml index 2f487dd7417c..da1ebddcf5bb 100644 --- a/java-tasks/grpc-google-cloud-tasks-v2/pom.xml +++ b/java-tasks/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.46.0-SNAPSHOT + 2.46.0 grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-tasks/grpc-google-cloud-tasks-v2beta2/pom.xml b/java-tasks/grpc-google-cloud-tasks-v2beta2/pom.xml index d04b0eeafada..14368510eb2f 100644 --- a/java-tasks/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/java-tasks/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.136.0-SNAPSHOT + 0.136.0 grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-tasks/grpc-google-cloud-tasks-v2beta3/pom.xml b/java-tasks/grpc-google-cloud-tasks-v2beta3/pom.xml index cc336d50e29e..16fdf369bc88 100644 --- a/java-tasks/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/java-tasks/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.136.0-SNAPSHOT + 0.136.0 grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-tasks/pom.xml b/java-tasks/pom.xml index d235759f7087..72ece848214c 100644 --- a/java-tasks/pom.xml +++ b/java-tasks/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.46.0-SNAPSHOT + 2.46.0 Google Cloud Tasks Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.136.0-SNAPSHOT + 0.136.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.136.0-SNAPSHOT + 0.136.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.136.0-SNAPSHOT + 0.136.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.136.0-SNAPSHOT + 0.136.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.46.0-SNAPSHOT + 2.46.0 com.google.cloud google-cloud-tasks - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-tasks/proto-google-cloud-tasks-v2/pom.xml b/java-tasks/proto-google-cloud-tasks-v2/pom.xml index 58c33d1b8423..f3aefa0f90bd 100644 --- a/java-tasks/proto-google-cloud-tasks-v2/pom.xml +++ b/java-tasks/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.46.0-SNAPSHOT + 2.46.0 proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-tasks/proto-google-cloud-tasks-v2beta2/pom.xml b/java-tasks/proto-google-cloud-tasks-v2beta2/pom.xml index ddad1548834a..991be85abc88 100644 --- a/java-tasks/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/java-tasks/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.136.0-SNAPSHOT + 0.136.0 proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-tasks/proto-google-cloud-tasks-v2beta3/pom.xml b/java-tasks/proto-google-cloud-tasks-v2beta3/pom.xml index 0c58d915736e..0be85e1a470a 100644 --- a/java-tasks/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/java-tasks/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.136.0-SNAPSHOT + 0.136.0 proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-telcoautomation/CHANGELOG.md b/java-telcoautomation/CHANGELOG.md index f5d873a257cd..5103cc8e2e7f 100644 --- a/java-telcoautomation/CHANGELOG.md +++ b/java-telcoautomation/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.16.0 (2024-06-27) + +* No change + + ## 0.15.0 (None) * No change diff --git a/java-telcoautomation/README.md b/java-telcoautomation/README.md index a7b2906d0a01..9628f8b0f25c 100644 --- a/java-telcoautomation/README.md +++ b/java-telcoautomation/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-telcoautomation - 0.15.0 + 0.16.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-telcoautomation:0.15.0' +implementation 'com.google.cloud:google-cloud-telcoautomation:0.16.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-telcoautomation" % "0.15.0" +libraryDependencies += "com.google.cloud" % "google-cloud-telcoautomation" % "0.16.0" ``` diff --git a/java-telcoautomation/google-cloud-telcoautomation-bom/pom.xml b/java-telcoautomation/google-cloud-telcoautomation-bom/pom.xml index 22999a5e688d..9a25be58f6b1 100644 --- a/java-telcoautomation/google-cloud-telcoautomation-bom/pom.xml +++ b/java-telcoautomation/google-cloud-telcoautomation-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-telcoautomation-bom - 0.16.0-SNAPSHOT + 0.16.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-telcoautomation - 0.16.0-SNAPSHOT + 0.16.0 com.google.api.grpc grpc-google-cloud-telcoautomation-v1 - 0.16.0-SNAPSHOT + 0.16.0 com.google.api.grpc grpc-google-cloud-telcoautomation-v1alpha1 - 0.16.0-SNAPSHOT + 0.16.0 com.google.api.grpc proto-google-cloud-telcoautomation-v1 - 0.16.0-SNAPSHOT + 0.16.0 com.google.api.grpc proto-google-cloud-telcoautomation-v1alpha1 - 0.16.0-SNAPSHOT + 0.16.0 diff --git a/java-telcoautomation/google-cloud-telcoautomation/pom.xml b/java-telcoautomation/google-cloud-telcoautomation/pom.xml index b4a12edfdda0..b0c2ef2c187d 100644 --- a/java-telcoautomation/google-cloud-telcoautomation/pom.xml +++ b/java-telcoautomation/google-cloud-telcoautomation/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-telcoautomation - 0.16.0-SNAPSHOT + 0.16.0 jar Google Telco Automation API Telco Automation API APIs to automate 5G deployment and management of cloud infrastructure and network functions. com.google.cloud google-cloud-telcoautomation-parent - 0.16.0-SNAPSHOT + 0.16.0 google-cloud-telcoautomation diff --git a/java-telcoautomation/grpc-google-cloud-telcoautomation-v1/pom.xml b/java-telcoautomation/grpc-google-cloud-telcoautomation-v1/pom.xml index 3fdae58ac59d..0a797a3a3c7b 100644 --- a/java-telcoautomation/grpc-google-cloud-telcoautomation-v1/pom.xml +++ b/java-telcoautomation/grpc-google-cloud-telcoautomation-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-telcoautomation-v1 - 0.16.0-SNAPSHOT + 0.16.0 grpc-google-cloud-telcoautomation-v1 GRPC library for google-cloud-telcoautomation com.google.cloud google-cloud-telcoautomation-parent - 0.16.0-SNAPSHOT + 0.16.0 diff --git a/java-telcoautomation/grpc-google-cloud-telcoautomation-v1alpha1/pom.xml b/java-telcoautomation/grpc-google-cloud-telcoautomation-v1alpha1/pom.xml index fb42693c4b28..9d68341a17e9 100644 --- a/java-telcoautomation/grpc-google-cloud-telcoautomation-v1alpha1/pom.xml +++ b/java-telcoautomation/grpc-google-cloud-telcoautomation-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-telcoautomation-v1alpha1 - 0.16.0-SNAPSHOT + 0.16.0 grpc-google-cloud-telcoautomation-v1alpha1 GRPC library for google-cloud-telcoautomation com.google.cloud google-cloud-telcoautomation-parent - 0.16.0-SNAPSHOT + 0.16.0 diff --git a/java-telcoautomation/pom.xml b/java-telcoautomation/pom.xml index 4054da3f1cab..7bd9c705e034 100644 --- a/java-telcoautomation/pom.xml +++ b/java-telcoautomation/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-telcoautomation-parent pom - 0.16.0-SNAPSHOT + 0.16.0 Google Telco Automation API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-telcoautomation - 0.16.0-SNAPSHOT + 0.16.0 com.google.api.grpc grpc-google-cloud-telcoautomation-v1 - 0.16.0-SNAPSHOT + 0.16.0 com.google.api.grpc grpc-google-cloud-telcoautomation-v1alpha1 - 0.16.0-SNAPSHOT + 0.16.0 com.google.api.grpc proto-google-cloud-telcoautomation-v1 - 0.16.0-SNAPSHOT + 0.16.0 com.google.api.grpc proto-google-cloud-telcoautomation-v1alpha1 - 0.16.0-SNAPSHOT + 0.16.0 diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/pom.xml b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/pom.xml index 7b1463a2a513..774e0b34c277 100644 --- a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/pom.xml +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-telcoautomation-v1 - 0.16.0-SNAPSHOT + 0.16.0 proto-google-cloud-telcoautomation-v1 Proto library for google-cloud-telcoautomation com.google.cloud google-cloud-telcoautomation-parent - 0.16.0-SNAPSHOT + 0.16.0 diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/pom.xml b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/pom.xml index 5e97f26ca1d6..3949ea8ff6f4 100644 --- a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/pom.xml +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-telcoautomation-v1alpha1 - 0.16.0-SNAPSHOT + 0.16.0 proto-google-cloud-telcoautomation-v1alpha1 Proto library for google-cloud-telcoautomation com.google.cloud google-cloud-telcoautomation-parent - 0.16.0-SNAPSHOT + 0.16.0 diff --git a/java-texttospeech/CHANGELOG.md b/java-texttospeech/CHANGELOG.md index 2e4ae98de80c..18d4ff147ad5 100644 --- a/java-texttospeech/CHANGELOG.md +++ b/java-texttospeech/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.47.0 (2024-06-27) + +* No change + + ## 2.46.0 (None) * No change diff --git a/java-texttospeech/README.md b/java-texttospeech/README.md index 2b373a91c3c2..80f33dba3d73 100644 --- a/java-texttospeech/README.md +++ b/java-texttospeech/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-texttospeech - 2.46.0 + 2.47.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-texttospeech:2.46.0' +implementation 'com.google.cloud:google-cloud-texttospeech:2.47.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-texttospeech" % "2.46.0" +libraryDependencies += "com.google.cloud" % "google-cloud-texttospeech" % "2.47.0" ``` diff --git a/java-texttospeech/google-cloud-texttospeech-bom/pom.xml b/java-texttospeech/google-cloud-texttospeech-bom/pom.xml index 7d1b7f5db289..477c1e89d118 100644 --- a/java-texttospeech/google-cloud-texttospeech-bom/pom.xml +++ b/java-texttospeech/google-cloud-texttospeech-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-texttospeech-bom - 2.47.0-SNAPSHOT + 2.47.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-texttospeech - 2.47.0-SNAPSHOT + 2.47.0 com.google.api.grpc grpc-google-cloud-texttospeech-v1beta1 - 0.136.0-SNAPSHOT + 0.136.0 com.google.api.grpc grpc-google-cloud-texttospeech-v1 - 2.47.0-SNAPSHOT + 2.47.0 com.google.api.grpc proto-google-cloud-texttospeech-v1 - 2.47.0-SNAPSHOT + 2.47.0 com.google.api.grpc proto-google-cloud-texttospeech-v1beta1 - 0.136.0-SNAPSHOT + 0.136.0 diff --git a/java-texttospeech/google-cloud-texttospeech/pom.xml b/java-texttospeech/google-cloud-texttospeech/pom.xml index fbea814a8ed4..c45dfb7f6a9c 100644 --- a/java-texttospeech/google-cloud-texttospeech/pom.xml +++ b/java-texttospeech/google-cloud-texttospeech/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-texttospeech - 2.47.0-SNAPSHOT + 2.47.0 jar Google Cloud Text-to-Speech Java idiomatic client for Google Cloud Text-to-Speech com.google.cloud google-cloud-texttospeech-parent - 2.47.0-SNAPSHOT + 2.47.0 google-cloud-texttospeech diff --git a/java-texttospeech/grpc-google-cloud-texttospeech-v1/pom.xml b/java-texttospeech/grpc-google-cloud-texttospeech-v1/pom.xml index ca08867aac8b..db7e49eb416c 100644 --- a/java-texttospeech/grpc-google-cloud-texttospeech-v1/pom.xml +++ b/java-texttospeech/grpc-google-cloud-texttospeech-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-texttospeech-v1 - 2.47.0-SNAPSHOT + 2.47.0 grpc-google-cloud-texttospeech-v1 GRPC library for grpc-google-cloud-texttospeech-v1 com.google.cloud google-cloud-texttospeech-parent - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-texttospeech/grpc-google-cloud-texttospeech-v1beta1/pom.xml b/java-texttospeech/grpc-google-cloud-texttospeech-v1beta1/pom.xml index d86797c2847f..6b057986030d 100644 --- a/java-texttospeech/grpc-google-cloud-texttospeech-v1beta1/pom.xml +++ b/java-texttospeech/grpc-google-cloud-texttospeech-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-texttospeech-v1beta1 - 0.136.0-SNAPSHOT + 0.136.0 grpc-google-cloud-texttospeech-v1beta1 GRPC library for grpc-google-cloud-texttospeech-v1beta1 com.google.cloud google-cloud-texttospeech-parent - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-texttospeech/pom.xml b/java-texttospeech/pom.xml index 2d73f5fd8dba..0558c90e5510 100644 --- a/java-texttospeech/pom.xml +++ b/java-texttospeech/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-texttospeech-parent pom - 2.47.0-SNAPSHOT + 2.47.0 Google Cloud Text-to-Speech Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-texttospeech-v1 - 2.47.0-SNAPSHOT + 2.47.0 com.google.api.grpc proto-google-cloud-texttospeech-v1beta1 - 0.136.0-SNAPSHOT + 0.136.0 com.google.api.grpc grpc-google-cloud-texttospeech-v1beta1 - 0.136.0-SNAPSHOT + 0.136.0 com.google.api.grpc grpc-google-cloud-texttospeech-v1 - 2.47.0-SNAPSHOT + 2.47.0 com.google.cloud google-cloud-texttospeech - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1/pom.xml b/java-texttospeech/proto-google-cloud-texttospeech-v1/pom.xml index d77cb8adbafe..51dac9e2809c 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1/pom.xml +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-texttospeech-v1 - 2.47.0-SNAPSHOT + 2.47.0 proto-google-cloud-texttospeech-v1 PROTO library for proto-google-cloud-texttospeech-v1 com.google.cloud google-cloud-texttospeech-parent - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/pom.xml b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/pom.xml index de8ecbcff107..e58c293cb3e3 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/pom.xml +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-texttospeech-v1beta1 - 0.136.0-SNAPSHOT + 0.136.0 proto-google-cloud-texttospeech-v1beta1 PROTO library for proto-google-cloud-texttospeech-v1beta1 com.google.cloud google-cloud-texttospeech-parent - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-tpu/CHANGELOG.md b/java-tpu/CHANGELOG.md index b3fe1c05df46..b5b8f7a736d4 100644 --- a/java-tpu/CHANGELOG.md +++ b/java-tpu/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.47.0 (2024-06-27) + +* No change + + ## 2.46.0 (None) * No change diff --git a/java-tpu/README.md b/java-tpu/README.md index 9886f10cdd5e..d25653d30065 100644 --- a/java-tpu/README.md +++ b/java-tpu/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-tpu - 2.46.0 + 2.47.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-tpu:2.46.0' +implementation 'com.google.cloud:google-cloud-tpu:2.47.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tpu" % "2.46.0" +libraryDependencies += "com.google.cloud" % "google-cloud-tpu" % "2.47.0" ``` diff --git a/java-tpu/google-cloud-tpu-bom/pom.xml b/java-tpu/google-cloud-tpu-bom/pom.xml index 3e49669a68e9..2ed9f3a49507 100644 --- a/java-tpu/google-cloud-tpu-bom/pom.xml +++ b/java-tpu/google-cloud-tpu-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-tpu-bom - 2.47.0-SNAPSHOT + 2.47.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,37 +27,37 @@ com.google.cloud google-cloud-tpu - 2.47.0-SNAPSHOT + 2.47.0 com.google.api.grpc grpc-google-cloud-tpu-v1 - 2.47.0-SNAPSHOT + 2.47.0 com.google.api.grpc grpc-google-cloud-tpu-v2alpha1 - 2.47.0-SNAPSHOT + 2.47.0 com.google.api.grpc grpc-google-cloud-tpu-v2 - 2.47.0-SNAPSHOT + 2.47.0 com.google.api.grpc proto-google-cloud-tpu-v1 - 2.47.0-SNAPSHOT + 2.47.0 com.google.api.grpc proto-google-cloud-tpu-v2alpha1 - 2.47.0-SNAPSHOT + 2.47.0 com.google.api.grpc proto-google-cloud-tpu-v2 - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-tpu/google-cloud-tpu/pom.xml b/java-tpu/google-cloud-tpu/pom.xml index 4ede25023f2a..185fa486a517 100644 --- a/java-tpu/google-cloud-tpu/pom.xml +++ b/java-tpu/google-cloud-tpu/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-tpu - 2.47.0-SNAPSHOT + 2.47.0 jar Google Cloud TPU Cloud TPU are Google's custom-developed application-specific integrated circuits (ASICs) used to accelerate machine learning workloads. com.google.cloud google-cloud-tpu-parent - 2.47.0-SNAPSHOT + 2.47.0 google-cloud-tpu diff --git a/java-tpu/grpc-google-cloud-tpu-v1/pom.xml b/java-tpu/grpc-google-cloud-tpu-v1/pom.xml index b847315b6123..f700ce88aa31 100644 --- a/java-tpu/grpc-google-cloud-tpu-v1/pom.xml +++ b/java-tpu/grpc-google-cloud-tpu-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tpu-v1 - 2.47.0-SNAPSHOT + 2.47.0 grpc-google-cloud-tpu-v1 GRPC library for google-cloud-tpu com.google.cloud google-cloud-tpu-parent - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-tpu/grpc-google-cloud-tpu-v2/pom.xml b/java-tpu/grpc-google-cloud-tpu-v2/pom.xml index da0dda904189..2dd436cb6bc0 100644 --- a/java-tpu/grpc-google-cloud-tpu-v2/pom.xml +++ b/java-tpu/grpc-google-cloud-tpu-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tpu-v2 - 2.47.0-SNAPSHOT + 2.47.0 grpc-google-cloud-tpu-v2 GRPC library for google-cloud-tpu com.google.cloud google-cloud-tpu-parent - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-tpu/grpc-google-cloud-tpu-v2alpha1/pom.xml b/java-tpu/grpc-google-cloud-tpu-v2alpha1/pom.xml index 448b0ab77d0e..76b891ac3cf4 100644 --- a/java-tpu/grpc-google-cloud-tpu-v2alpha1/pom.xml +++ b/java-tpu/grpc-google-cloud-tpu-v2alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tpu-v2alpha1 - 2.47.0-SNAPSHOT + 2.47.0 grpc-google-cloud-tpu-v2alpha1 GRPC library for google-cloud-tpu com.google.cloud google-cloud-tpu-parent - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-tpu/pom.xml b/java-tpu/pom.xml index ee9b2a01c092..3ad25b6bcf45 100644 --- a/java-tpu/pom.xml +++ b/java-tpu/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tpu-parent pom - 2.47.0-SNAPSHOT + 2.47.0 Google Cloud TPU Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.cloud google-cloud-tpu - 2.47.0-SNAPSHOT + 2.47.0 com.google.api.grpc proto-google-cloud-tpu-v2 - 2.47.0-SNAPSHOT + 2.47.0 com.google.api.grpc grpc-google-cloud-tpu-v2 - 2.47.0-SNAPSHOT + 2.47.0 com.google.api.grpc proto-google-cloud-tpu-v2alpha1 - 2.47.0-SNAPSHOT + 2.47.0 com.google.api.grpc grpc-google-cloud-tpu-v2alpha1 - 2.47.0-SNAPSHOT + 2.47.0 com.google.api.grpc grpc-google-cloud-tpu-v1 - 2.47.0-SNAPSHOT + 2.47.0 com.google.api.grpc proto-google-cloud-tpu-v1 - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-tpu/proto-google-cloud-tpu-v1/pom.xml b/java-tpu/proto-google-cloud-tpu-v1/pom.xml index 3411b968dab3..4f0e9bbb21e0 100644 --- a/java-tpu/proto-google-cloud-tpu-v1/pom.xml +++ b/java-tpu/proto-google-cloud-tpu-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tpu-v1 - 2.47.0-SNAPSHOT + 2.47.0 proto-google-cloud-tpu-v1 Proto library for google-cloud-tpu com.google.cloud google-cloud-tpu-parent - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-tpu/proto-google-cloud-tpu-v2/pom.xml b/java-tpu/proto-google-cloud-tpu-v2/pom.xml index 1b321ee7a8ad..5913b39723e7 100644 --- a/java-tpu/proto-google-cloud-tpu-v2/pom.xml +++ b/java-tpu/proto-google-cloud-tpu-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tpu-v2 - 2.47.0-SNAPSHOT + 2.47.0 proto-google-cloud-tpu-v2 Proto library for google-cloud-tpu com.google.cloud google-cloud-tpu-parent - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-tpu/proto-google-cloud-tpu-v2alpha1/pom.xml b/java-tpu/proto-google-cloud-tpu-v2alpha1/pom.xml index 612f6f884e2e..e732b4944130 100644 --- a/java-tpu/proto-google-cloud-tpu-v2alpha1/pom.xml +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tpu-v2alpha1 - 2.47.0-SNAPSHOT + 2.47.0 proto-google-cloud-tpu-v2alpha1 Proto library for google-cloud-tpu com.google.cloud google-cloud-tpu-parent - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-trace/CHANGELOG.md b/java-trace/CHANGELOG.md index ecd21111204b..1d82c347e612 100644 --- a/java-trace/CHANGELOG.md +++ b/java-trace/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.46.0 (2024-06-27) + +* No change + + ## 2.45.0 (None) * No change diff --git a/java-trace/README.md b/java-trace/README.md index caf42d818f94..af1b8fb37438 100644 --- a/java-trace/README.md +++ b/java-trace/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-trace - 2.45.0 + 2.46.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-trace:2.45.0' +implementation 'com.google.cloud:google-cloud-trace:2.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-trace" % "2.45.0" +libraryDependencies += "com.google.cloud" % "google-cloud-trace" % "2.46.0" ``` diff --git a/java-trace/google-cloud-trace-bom/pom.xml b/java-trace/google-cloud-trace-bom/pom.xml index 89faf07e441a..c69c481f8ec1 100644 --- a/java-trace/google-cloud-trace-bom/pom.xml +++ b/java-trace/google-cloud-trace-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-trace-bom - 2.46.0-SNAPSHOT + 2.46.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-trace - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc grpc-google-cloud-trace-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc grpc-google-cloud-trace-v2 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc proto-google-cloud-trace-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc proto-google-cloud-trace-v2 - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-trace/google-cloud-trace/pom.xml b/java-trace/google-cloud-trace/pom.xml index 6a7938accefe..eb0a8776dc3c 100644 --- a/java-trace/google-cloud-trace/pom.xml +++ b/java-trace/google-cloud-trace/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-trace - 2.46.0-SNAPSHOT + 2.46.0 jar Google Cloud Trace @@ -12,7 +12,7 @@ com.google.cloud google-cloud-trace-parent - 2.46.0-SNAPSHOT + 2.46.0 google-cloud-trace diff --git a/java-trace/grpc-google-cloud-trace-v1/pom.xml b/java-trace/grpc-google-cloud-trace-v1/pom.xml index bb0830ce29a6..c1167c5cc6b0 100644 --- a/java-trace/grpc-google-cloud-trace-v1/pom.xml +++ b/java-trace/grpc-google-cloud-trace-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-trace-v1 - 2.46.0-SNAPSHOT + 2.46.0 grpc-google-cloud-trace-v1 GRPC library for grpc-google-cloud-trace-v1 com.google.cloud google-cloud-trace-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-trace/grpc-google-cloud-trace-v2/pom.xml b/java-trace/grpc-google-cloud-trace-v2/pom.xml index 6b8603f8ea36..fcef68ef21d6 100644 --- a/java-trace/grpc-google-cloud-trace-v2/pom.xml +++ b/java-trace/grpc-google-cloud-trace-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-trace-v2 - 2.46.0-SNAPSHOT + 2.46.0 grpc-google-cloud-trace-v2 GRPC library for grpc-google-cloud-trace-v2 com.google.cloud google-cloud-trace-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-trace/pom.xml b/java-trace/pom.xml index 744b48a06237..e87030afad3d 100644 --- a/java-trace/pom.xml +++ b/java-trace/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-trace-parent pom - 2.46.0-SNAPSHOT + 2.46.0 Google Cloud Trace Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-trace-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.cloud google-cloud-trace - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc proto-google-cloud-trace-v2 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc grpc-google-cloud-trace-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc grpc-google-cloud-trace-v2 - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-trace/proto-google-cloud-trace-v1/pom.xml b/java-trace/proto-google-cloud-trace-v1/pom.xml index c521b161c229..427ce4a2d875 100644 --- a/java-trace/proto-google-cloud-trace-v1/pom.xml +++ b/java-trace/proto-google-cloud-trace-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-trace-v1 - 2.46.0-SNAPSHOT + 2.46.0 proto-google-cloud-trace-v1 PROTO library for proto-google-cloud-trace-v1 com.google.cloud google-cloud-trace-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-trace/proto-google-cloud-trace-v2/pom.xml b/java-trace/proto-google-cloud-trace-v2/pom.xml index 752231527cc4..95fc805a70ef 100644 --- a/java-trace/proto-google-cloud-trace-v2/pom.xml +++ b/java-trace/proto-google-cloud-trace-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-trace-v2 - 2.46.0-SNAPSHOT + 2.46.0 proto-google-cloud-trace-v2 PROTO library for proto-google-cloud-trace-v2 com.google.cloud google-cloud-trace-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-translate/CHANGELOG.md b/java-translate/CHANGELOG.md index 8d271afb5549..82a5fdd5fa7f 100644 --- a/java-translate/CHANGELOG.md +++ b/java-translate/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.46.0 (2024-06-27) + +* No change + + ## 2.45.0 (None) * No change diff --git a/java-translate/README.md b/java-translate/README.md index 038a1708e415..12282b359d6b 100644 --- a/java-translate/README.md +++ b/java-translate/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-translate - 2.45.0 + 2.46.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-translate:2.45.0' +implementation 'com.google.cloud:google-cloud-translate:2.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-translate" % "2.45.0" +libraryDependencies += "com.google.cloud" % "google-cloud-translate" % "2.46.0" ``` diff --git a/java-translate/google-cloud-translate-bom/pom.xml b/java-translate/google-cloud-translate-bom/pom.xml index 4fed3035e5b5..9cafbb124bbd 100644 --- a/java-translate/google-cloud-translate-bom/pom.xml +++ b/java-translate/google-cloud-translate-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-translate-bom - 2.46.0-SNAPSHOT + 2.46.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-translate - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc grpc-google-cloud-translate-v3beta1 - 0.128.0-SNAPSHOT + 0.128.0 com.google.api.grpc grpc-google-cloud-translate-v3 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc proto-google-cloud-translate-v3beta1 - 0.128.0-SNAPSHOT + 0.128.0 com.google.api.grpc proto-google-cloud-translate-v3 - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-translate/google-cloud-translate/pom.xml b/java-translate/google-cloud-translate/pom.xml index 1d429d09eabd..7dbd8c84ef4e 100644 --- a/java-translate/google-cloud-translate/pom.xml +++ b/java-translate/google-cloud-translate/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-translate - 2.46.0-SNAPSHOT + 2.46.0 jar Google Cloud Translate Java idiomatic client for Google Cloud Translate com.google.cloud google-cloud-translate-parent - 2.46.0-SNAPSHOT + 2.46.0 google-cloud-translate diff --git a/java-translate/grpc-google-cloud-translate-v3/pom.xml b/java-translate/grpc-google-cloud-translate-v3/pom.xml index 79b7b8ec9037..5e9dd04330b3 100644 --- a/java-translate/grpc-google-cloud-translate-v3/pom.xml +++ b/java-translate/grpc-google-cloud-translate-v3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-translate-v3 - 2.46.0-SNAPSHOT + 2.46.0 grpc-google-cloud-translate-v3 GRPC library for grpc-google-cloud-translate-v3 com.google.cloud google-cloud-translate-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-translate/grpc-google-cloud-translate-v3beta1/pom.xml b/java-translate/grpc-google-cloud-translate-v3beta1/pom.xml index 258f5a200f65..4ce867c16218 100644 --- a/java-translate/grpc-google-cloud-translate-v3beta1/pom.xml +++ b/java-translate/grpc-google-cloud-translate-v3beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-translate-v3beta1 - 0.128.0-SNAPSHOT + 0.128.0 grpc-google-cloud-translate-v3beta1 GRPC library for grpc-google-cloud-translate-v3beta1 com.google.cloud google-cloud-translate-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-translate/pom.xml b/java-translate/pom.xml index b4d880f3c99d..9cd19575e4c9 100644 --- a/java-translate/pom.xml +++ b/java-translate/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-translate-parent pom - 2.46.0-SNAPSHOT + 2.46.0 Google Cloud Translate Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-translate-v3beta1 - 0.128.0-SNAPSHOT + 0.128.0 com.google.api.grpc proto-google-cloud-translate-v3 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc grpc-google-cloud-translate-v3beta1 - 0.128.0-SNAPSHOT + 0.128.0 com.google.api.grpc grpc-google-cloud-translate-v3 - 2.46.0-SNAPSHOT + 2.46.0 com.google.cloud google-cloud-translate - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-translate/proto-google-cloud-translate-v3/pom.xml b/java-translate/proto-google-cloud-translate-v3/pom.xml index 64c931256df0..0b638347dec6 100644 --- a/java-translate/proto-google-cloud-translate-v3/pom.xml +++ b/java-translate/proto-google-cloud-translate-v3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-translate-v3 - 2.46.0-SNAPSHOT + 2.46.0 proto-google-cloud-translate-v3 PROTO library for proto-google-cloud-translate-v3 com.google.cloud google-cloud-translate-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-translate/proto-google-cloud-translate-v3beta1/pom.xml b/java-translate/proto-google-cloud-translate-v3beta1/pom.xml index 0c9bcce22dc8..fb348f3e9c4c 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/pom.xml +++ b/java-translate/proto-google-cloud-translate-v3beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-translate-v3beta1 - 0.128.0-SNAPSHOT + 0.128.0 proto-google-cloud-translate-v3beta1 PROTO library for proto-google-cloud-translate-v3beta1 com.google.cloud google-cloud-translate-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-vertexai/CHANGELOG.md b/java-vertexai/CHANGELOG.md index e2b7fa6f196b..3a0dfd5bcefe 100644 --- a/java-vertexai/CHANGELOG.md +++ b/java-vertexai/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## 1.6.0 (2024-06-27) + +### Features + +* add AutomaticFunctionCallingResponder class ([#10896](https://github.com/googleapis/google-cloud-java/issues/10896)) ([a97ac3d](https://github.com/googleapis/google-cloud-java/commit/a97ac3d71c92db934d566df0f8a24a20e8479aa9)) +* add FunctionDeclarationMaker.fromFunc to create FunctionDeclaration from a Java static method ([#10915](https://github.com/googleapis/google-cloud-java/issues/10915)) ([5a10656](https://github.com/googleapis/google-cloud-java/commit/5a10656cf56ff8bcfdf276434d617e7384eab9ac)) +* allow setting ToolConfig and SystemInstruction in ChatSession ([#10953](https://github.com/googleapis/google-cloud-java/issues/10953)) ([5ebfc33](https://github.com/googleapis/google-cloud-java/commit/5ebfc33afaf473c847389f9ef8adc58ee41f6a29)) +* enable AutomaticFunctionCallingResponder in ChatSession ([#10913](https://github.com/googleapis/google-cloud-java/issues/10913)) ([4db0d1d](https://github.com/googleapis/google-cloud-java/commit/4db0d1dfa6069e6d917f12b625cb7cc9319323e4)) +* infer location and project when user doesn't specify them. ([#10868](https://github.com/googleapis/google-cloud-java/issues/10868)) ([14f9825](https://github.com/googleapis/google-cloud-java/commit/14f98251ee1f81d10bd23a21b515a34d2af1f98f)) +* support ToolConfig in GenerativeModel ([#10950](https://github.com/googleapis/google-cloud-java/issues/10950)) ([0801812](https://github.com/googleapis/google-cloud-java/commit/08018121c0d1284d7dd0cd0d288f40d0a11e5506)) +* Update gapic to include ToolConfig ([#10920](https://github.com/googleapis/google-cloud-java/issues/10920)) ([782f21b](https://github.com/googleapis/google-cloud-java/commit/782f21b5836d3b56bf58cc81026ab326e260b16c)) + + + ## 1.5.0 (None) * No change diff --git a/java-vertexai/README.md b/java-vertexai/README.md index 565e545b88f1..b385815037a0 100644 --- a/java-vertexai/README.md +++ b/java-vertexai/README.md @@ -40,20 +40,20 @@ If you're using Maven without the BOM, add the following to your dependencies: com.google.cloud google-cloud-vertexai - 1.5.0 + 1.6.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vertexai:1.5.0' +implementation 'com.google.cloud:google-cloud-vertexai:1.6.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vertexai" % "1.5.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vertexai" % "1.6.0" ``` diff --git a/java-vertexai/google-cloud-vertexai-bom/pom.xml b/java-vertexai/google-cloud-vertexai-bom/pom.xml index 3f770802f1e7..d0ab7732863f 100644 --- a/java-vertexai/google-cloud-vertexai-bom/pom.xml +++ b/java-vertexai/google-cloud-vertexai-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-vertexai-bom - 1.6.0-SNAPSHOT + 1.6.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-vertexai - 1.6.0-SNAPSHOT + 1.6.0 com.google.api.grpc grpc-google-cloud-vertexai-v1 - 1.6.0-SNAPSHOT + 1.6.0 com.google.api.grpc proto-google-cloud-vertexai-v1 - 1.6.0-SNAPSHOT + 1.6.0 diff --git a/java-vertexai/google-cloud-vertexai/pom.xml b/java-vertexai/google-cloud-vertexai/pom.xml index 537c819f3cb7..38c7b31819ba 100644 --- a/java-vertexai/google-cloud-vertexai/pom.xml +++ b/java-vertexai/google-cloud-vertexai/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-vertexai - 1.6.0-SNAPSHOT + 1.6.0 jar Google VertexAI API VertexAI API Vertex AI is an integrated suite of machine learning tools and services @@ -12,7 +12,7 @@ com.google.cloud google-cloud-vertexai-parent - 1.6.0-SNAPSHOT + 1.6.0 google-cloud-vertexai diff --git a/java-vertexai/grpc-google-cloud-vertexai-v1/pom.xml b/java-vertexai/grpc-google-cloud-vertexai-v1/pom.xml index 302590e7c0bf..25cf6711d595 100644 --- a/java-vertexai/grpc-google-cloud-vertexai-v1/pom.xml +++ b/java-vertexai/grpc-google-cloud-vertexai-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-vertexai-v1 - 1.6.0-SNAPSHOT + 1.6.0 grpc-google-cloud-vertexai-v1 GRPC library for google-cloud-vertexai com.google.cloud google-cloud-vertexai-parent - 1.6.0-SNAPSHOT + 1.6.0 diff --git a/java-vertexai/pom.xml b/java-vertexai/pom.xml index 636f9774449e..ee4228e2f124 100644 --- a/java-vertexai/pom.xml +++ b/java-vertexai/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-vertexai-parent pom - 1.6.0-SNAPSHOT + 1.6.0 Google VertexAI API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-vertexai - 1.6.0-SNAPSHOT + 1.6.0 com.google.api.grpc grpc-google-cloud-vertexai-v1 - 1.6.0-SNAPSHOT + 1.6.0 com.google.api.grpc proto-google-cloud-vertexai-v1 - 1.6.0-SNAPSHOT + 1.6.0 diff --git a/java-vertexai/proto-google-cloud-vertexai-v1/pom.xml b/java-vertexai/proto-google-cloud-vertexai-v1/pom.xml index 2ccacc8a97af..bbad7de5a94f 100644 --- a/java-vertexai/proto-google-cloud-vertexai-v1/pom.xml +++ b/java-vertexai/proto-google-cloud-vertexai-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-vertexai-v1 - 1.6.0-SNAPSHOT + 1.6.0 proto-google-cloud-vertexai-v1 Proto library for google-cloud-vertexai com.google.cloud google-cloud-vertexai-parent - 1.6.0-SNAPSHOT + 1.6.0 diff --git a/java-video-intelligence/CHANGELOG.md b/java-video-intelligence/CHANGELOG.md index 80156ec0d232..b87761c76822 100644 --- a/java-video-intelligence/CHANGELOG.md +++ b/java-video-intelligence/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.45.0 (2024-06-27) + +* No change + + ## 2.44.0 (None) * No change diff --git a/java-video-intelligence/README.md b/java-video-intelligence/README.md index 9a473130dc1b..03e4a5a8eb74 100644 --- a/java-video-intelligence/README.md +++ b/java-video-intelligence/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-video-intelligence - 2.44.0 + 2.45.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-video-intelligence:2.44.0' +implementation 'com.google.cloud:google-cloud-video-intelligence:2.45.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-video-intelligence" % "2.44.0" +libraryDependencies += "com.google.cloud" % "google-cloud-video-intelligence" % "2.45.0" ``` diff --git a/java-video-intelligence/google-cloud-video-intelligence-bom/pom.xml b/java-video-intelligence/google-cloud-video-intelligence-bom/pom.xml index 875b52b59b37..7125bb0a998f 100644 --- a/java-video-intelligence/google-cloud-video-intelligence-bom/pom.xml +++ b/java-video-intelligence/google-cloud-video-intelligence-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-video-intelligence-bom - 2.45.0-SNAPSHOT + 2.45.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -23,57 +23,57 @@ com.google.cloud google-cloud-video-intelligence - 2.45.0-SNAPSHOT + 2.45.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p1beta1 - 0.135.0-SNAPSHOT + 0.135.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1beta2 - 0.135.0-SNAPSHOT + 0.135.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1 - 2.45.0-SNAPSHOT + 2.45.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p2beta1 - 0.135.0-SNAPSHOT + 0.135.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p3beta1 - 0.135.0-SNAPSHOT + 0.135.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1p3beta1 - 0.135.0-SNAPSHOT + 0.135.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1beta2 - 0.135.0-SNAPSHOT + 0.135.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1p1beta1 - 0.135.0-SNAPSHOT + 0.135.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1 - 2.45.0-SNAPSHOT + 2.45.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1p2beta1 - 0.135.0-SNAPSHOT + 0.135.0 diff --git a/java-video-intelligence/google-cloud-video-intelligence/pom.xml b/java-video-intelligence/google-cloud-video-intelligence/pom.xml index 43c072919b9f..20e804fa5b16 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/pom.xml +++ b/java-video-intelligence/google-cloud-video-intelligence/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-video-intelligence - 2.45.0-SNAPSHOT + 2.45.0 jar Google Cloud Video Intelligence Java idiomatic client for Google Cloud Video Intelligence com.google.cloud google-cloud-video-intelligence-parent - 2.45.0-SNAPSHOT + 2.45.0 google-cloud-video-intelligence diff --git a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1/pom.xml b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1/pom.xml index 14d25e628557..b5ce6ec86148 100644 --- a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1/pom.xml +++ b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1 - 2.45.0-SNAPSHOT + 2.45.0 grpc-google-cloud-video-intelligence-v1 GRPC library for grpc-google-cloud-video-intelligence-v1 com.google.cloud google-cloud-video-intelligence-parent - 2.45.0-SNAPSHOT + 2.45.0 diff --git a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1beta2/pom.xml b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1beta2/pom.xml index eee90b42d7b3..2e304f9d8070 100644 --- a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1beta2/pom.xml +++ b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1beta2 - 0.135.0-SNAPSHOT + 0.135.0 grpc-google-cloud-video-intelligence-v1beta2 GRPC library for grpc-google-cloud-video-intelligence-v1beta2 com.google.cloud google-cloud-video-intelligence-parent - 2.45.0-SNAPSHOT + 2.45.0 diff --git a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p1beta1/pom.xml b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p1beta1/pom.xml index e6a466617afe..2dabf5482596 100644 --- a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p1beta1/pom.xml +++ b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p1beta1 - 0.135.0-SNAPSHOT + 0.135.0 grpc-google-cloud-video-intelligence-v1p1beta1 GRPC library for grpc-google-cloud-video-intelligence-v1p1beta1 com.google.cloud google-cloud-video-intelligence-parent - 2.45.0-SNAPSHOT + 2.45.0 diff --git a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p2beta1/pom.xml b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p2beta1/pom.xml index e88f01bf6180..39d875182780 100644 --- a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p2beta1/pom.xml +++ b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p2beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p2beta1 - 0.135.0-SNAPSHOT + 0.135.0 grpc-google-cloud-video-intelligence-v1p2beta1 GRPC library for grpc-google-cloud-video-intelligence-v1p2beta1 com.google.cloud google-cloud-video-intelligence-parent - 2.45.0-SNAPSHOT + 2.45.0 diff --git a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p3beta1/pom.xml b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p3beta1/pom.xml index 32015bcc854f..cddf725cff27 100644 --- a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p3beta1/pom.xml +++ b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p3beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p3beta1 - 0.135.0-SNAPSHOT + 0.135.0 grpc-google-cloud-video-intelligence-v1p3beta1 GRPC library for grpc-google-cloud-video-intelligence-v1p3beta1 com.google.cloud google-cloud-video-intelligence-parent - 2.45.0-SNAPSHOT + 2.45.0 diff --git a/java-video-intelligence/pom.xml b/java-video-intelligence/pom.xml index ca8985d45af9..fc5950848487 100644 --- a/java-video-intelligence/pom.xml +++ b/java-video-intelligence/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-video-intelligence-parent pom - 2.45.0-SNAPSHOT + 2.45.0 Google Cloud Video Intelligence Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,62 +29,62 @@ com.google.api.grpc proto-google-cloud-video-intelligence-v1p3beta1 - 0.135.0-SNAPSHOT + 0.135.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1beta2 - 0.135.0-SNAPSHOT + 0.135.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1p1beta1 - 0.135.0-SNAPSHOT + 0.135.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1 - 2.45.0-SNAPSHOT + 2.45.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1p2beta1 - 0.135.0-SNAPSHOT + 0.135.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p1beta1 - 0.135.0-SNAPSHOT + 0.135.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1beta2 - 0.135.0-SNAPSHOT + 0.135.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1 - 2.45.0-SNAPSHOT + 2.45.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p2beta1 - 0.135.0-SNAPSHOT + 0.135.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p3beta1 - 0.135.0-SNAPSHOT + 0.135.0 com.google.cloud google-cloud-video-intelligence - 2.45.0-SNAPSHOT + 2.45.0 com.google.cloud google-cloud-video-intelligence-bom - 2.45.0-SNAPSHOT + 2.45.0 diff --git a/java-video-intelligence/proto-google-cloud-video-intelligence-v1/pom.xml b/java-video-intelligence/proto-google-cloud-video-intelligence-v1/pom.xml index b475cc0e74a6..71c6c5869ae1 100644 --- a/java-video-intelligence/proto-google-cloud-video-intelligence-v1/pom.xml +++ b/java-video-intelligence/proto-google-cloud-video-intelligence-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1 - 2.45.0-SNAPSHOT + 2.45.0 proto-google-cloud-video-intelligence-v1 PROTO library for proto-google-cloud-video-intelligence-v1 com.google.cloud google-cloud-video-intelligence-parent - 2.45.0-SNAPSHOT + 2.45.0 diff --git a/java-video-intelligence/proto-google-cloud-video-intelligence-v1beta2/pom.xml b/java-video-intelligence/proto-google-cloud-video-intelligence-v1beta2/pom.xml index c9641dca82d9..f740e967158e 100644 --- a/java-video-intelligence/proto-google-cloud-video-intelligence-v1beta2/pom.xml +++ b/java-video-intelligence/proto-google-cloud-video-intelligence-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1beta2 - 0.135.0-SNAPSHOT + 0.135.0 proto-google-cloud-video-intelligence-v1beta2 PROTO library for proto-google-cloud-video-intelligence-v1beta2 com.google.cloud google-cloud-video-intelligence-parent - 2.45.0-SNAPSHOT + 2.45.0 diff --git a/java-video-intelligence/proto-google-cloud-video-intelligence-v1p1beta1/pom.xml b/java-video-intelligence/proto-google-cloud-video-intelligence-v1p1beta1/pom.xml index 842a30e66125..86763a610a91 100644 --- a/java-video-intelligence/proto-google-cloud-video-intelligence-v1p1beta1/pom.xml +++ b/java-video-intelligence/proto-google-cloud-video-intelligence-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1p1beta1 - 0.135.0-SNAPSHOT + 0.135.0 proto-google-cloud-video-intelligence-v1p1beta1 PROTO library for proto-google-cloud-video-intelligence-v1p1beta1 com.google.cloud google-cloud-video-intelligence-parent - 2.45.0-SNAPSHOT + 2.45.0 diff --git a/java-video-intelligence/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml b/java-video-intelligence/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml index e3c9a6c67d50..f68ac81b103c 100644 --- a/java-video-intelligence/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml +++ b/java-video-intelligence/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1p2beta1 - 0.135.0-SNAPSHOT + 0.135.0 proto-google-cloud-video-intelligence-v1p2beta1 PROTO library for proto-google-cloud-video-intelligence-v1p2beta1 com.google.cloud google-cloud-video-intelligence-parent - 2.45.0-SNAPSHOT + 2.45.0 diff --git a/java-video-intelligence/proto-google-cloud-video-intelligence-v1p3beta1/pom.xml b/java-video-intelligence/proto-google-cloud-video-intelligence-v1p3beta1/pom.xml index a9c9294812d6..fafc5b1fa778 100644 --- a/java-video-intelligence/proto-google-cloud-video-intelligence-v1p3beta1/pom.xml +++ b/java-video-intelligence/proto-google-cloud-video-intelligence-v1p3beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1p3beta1 - 0.135.0-SNAPSHOT + 0.135.0 proto-google-cloud-video-intelligence-v1p3beta1 PROTO library for proto-google-cloud-video-intelligence-v1p3beta1 com.google.cloud google-cloud-video-intelligence-parent - 2.45.0-SNAPSHOT + 2.45.0 diff --git a/java-video-live-stream/CHANGELOG.md b/java-video-live-stream/CHANGELOG.md index 829f33e22d84..14479546cf2e 100644 --- a/java-video-live-stream/CHANGELOG.md +++ b/java-video-live-stream/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.48.0 (2024-06-27) + +* No change + + ## 0.47.0 (None) * No change diff --git a/java-video-live-stream/README.md b/java-video-live-stream/README.md index bc273df55d6d..525cabdc4c8d 100644 --- a/java-video-live-stream/README.md +++ b/java-video-live-stream/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-live-stream - 0.47.0 + 0.48.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-live-stream:0.47.0' +implementation 'com.google.cloud:google-cloud-live-stream:0.48.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-live-stream" % "0.47.0" +libraryDependencies += "com.google.cloud" % "google-cloud-live-stream" % "0.48.0" ``` diff --git a/java-video-live-stream/google-cloud-live-stream-bom/pom.xml b/java-video-live-stream/google-cloud-live-stream-bom/pom.xml index 2e20c7d3471d..ae9ba82d0ce6 100644 --- a/java-video-live-stream/google-cloud-live-stream-bom/pom.xml +++ b/java-video-live-stream/google-cloud-live-stream-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-live-stream-bom - 0.48.0-SNAPSHOT + 0.48.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-live-stream - 0.48.0-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-live-stream-v1 - 0.48.0-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-live-stream-v1 - 0.48.0-SNAPSHOT + 0.48.0 diff --git a/java-video-live-stream/google-cloud-live-stream/pom.xml b/java-video-live-stream/google-cloud-live-stream/pom.xml index 74b1835bae64..02ae0c1afca0 100644 --- a/java-video-live-stream/google-cloud-live-stream/pom.xml +++ b/java-video-live-stream/google-cloud-live-stream/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-live-stream - 0.48.0-SNAPSHOT + 0.48.0 jar Google Cloud Live Stream Cloud Live Stream transcodes mezzanine live signals into direct-to-consumer streaming formats, including Dynamic Adaptive Streaming over HTTP (DASH/MPEG-DASH), and HTTP Live Streaming (HLS), for multiple device platforms. com.google.cloud google-cloud-live-stream-parent - 0.48.0-SNAPSHOT + 0.48.0 google-cloud-live-stream diff --git a/java-video-live-stream/grpc-google-cloud-live-stream-v1/pom.xml b/java-video-live-stream/grpc-google-cloud-live-stream-v1/pom.xml index 674f402f4f95..83ee072f1c2c 100644 --- a/java-video-live-stream/grpc-google-cloud-live-stream-v1/pom.xml +++ b/java-video-live-stream/grpc-google-cloud-live-stream-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-live-stream-v1 - 0.48.0-SNAPSHOT + 0.48.0 grpc-google-cloud-live-stream-v1 GRPC library for google-cloud-live-stream com.google.cloud google-cloud-live-stream-parent - 0.48.0-SNAPSHOT + 0.48.0 diff --git a/java-video-live-stream/pom.xml b/java-video-live-stream/pom.xml index f373951139ef..cdc2b3d88b25 100644 --- a/java-video-live-stream/pom.xml +++ b/java-video-live-stream/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-live-stream-parent pom - 0.48.0-SNAPSHOT + 0.48.0 Google Cloud Live Stream Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-live-stream - 0.48.0-SNAPSHOT + 0.48.0 com.google.api.grpc grpc-google-cloud-live-stream-v1 - 0.48.0-SNAPSHOT + 0.48.0 com.google.api.grpc proto-google-cloud-live-stream-v1 - 0.48.0-SNAPSHOT + 0.48.0 diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/pom.xml b/java-video-live-stream/proto-google-cloud-live-stream-v1/pom.xml index 301dcb1b15b9..af4c2f694e43 100644 --- a/java-video-live-stream/proto-google-cloud-live-stream-v1/pom.xml +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-live-stream-v1 - 0.48.0-SNAPSHOT + 0.48.0 proto-google-cloud-live-stream-v1 Proto library for google-cloud-live-stream com.google.cloud google-cloud-live-stream-parent - 0.48.0-SNAPSHOT + 0.48.0 diff --git a/java-video-stitcher/CHANGELOG.md b/java-video-stitcher/CHANGELOG.md index 8a4280f38c86..bc3786cd5dea 100644 --- a/java-video-stitcher/CHANGELOG.md +++ b/java-video-stitcher/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.46.0 (2024-06-27) + +* No change + + ## 0.45.0 (None) * No change diff --git a/java-video-stitcher/README.md b/java-video-stitcher/README.md index 7b8af1d59bf6..1d94ba0d6c48 100644 --- a/java-video-stitcher/README.md +++ b/java-video-stitcher/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-video-stitcher - 0.45.0 + 0.46.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-video-stitcher:0.45.0' +implementation 'com.google.cloud:google-cloud-video-stitcher:0.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-video-stitcher" % "0.45.0" +libraryDependencies += "com.google.cloud" % "google-cloud-video-stitcher" % "0.46.0" ``` diff --git a/java-video-stitcher/google-cloud-video-stitcher-bom/pom.xml b/java-video-stitcher/google-cloud-video-stitcher-bom/pom.xml index 77b0ffc27c05..ae9507caf712 100644 --- a/java-video-stitcher/google-cloud-video-stitcher-bom/pom.xml +++ b/java-video-stitcher/google-cloud-video-stitcher-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-video-stitcher-bom - 0.46.0-SNAPSHOT + 0.46.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-video-stitcher - 0.46.0-SNAPSHOT + 0.46.0 com.google.api.grpc grpc-google-cloud-video-stitcher-v1 - 0.46.0-SNAPSHOT + 0.46.0 com.google.api.grpc proto-google-cloud-video-stitcher-v1 - 0.46.0-SNAPSHOT + 0.46.0 diff --git a/java-video-stitcher/google-cloud-video-stitcher/pom.xml b/java-video-stitcher/google-cloud-video-stitcher/pom.xml index f46034cbf173..5b9099f3f30d 100644 --- a/java-video-stitcher/google-cloud-video-stitcher/pom.xml +++ b/java-video-stitcher/google-cloud-video-stitcher/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-video-stitcher - 0.46.0-SNAPSHOT + 0.46.0 jar Google Video Stitcher API Video Stitcher API allows you to manipulate video content to dynamically insert ads prior to delivery to client devices. com.google.cloud google-cloud-video-stitcher-parent - 0.46.0-SNAPSHOT + 0.46.0 google-cloud-video-stitcher diff --git a/java-video-stitcher/grpc-google-cloud-video-stitcher-v1/pom.xml b/java-video-stitcher/grpc-google-cloud-video-stitcher-v1/pom.xml index 974ea082e7ec..793a199bca08 100644 --- a/java-video-stitcher/grpc-google-cloud-video-stitcher-v1/pom.xml +++ b/java-video-stitcher/grpc-google-cloud-video-stitcher-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-video-stitcher-v1 - 0.46.0-SNAPSHOT + 0.46.0 grpc-google-cloud-video-stitcher-v1 GRPC library for google-cloud-video-stitcher com.google.cloud google-cloud-video-stitcher-parent - 0.46.0-SNAPSHOT + 0.46.0 diff --git a/java-video-stitcher/pom.xml b/java-video-stitcher/pom.xml index bb1516474ebc..a5937a00c2a9 100644 --- a/java-video-stitcher/pom.xml +++ b/java-video-stitcher/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-video-stitcher-parent pom - 0.46.0-SNAPSHOT + 0.46.0 Google Video Stitcher API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-video-stitcher - 0.46.0-SNAPSHOT + 0.46.0 com.google.api.grpc grpc-google-cloud-video-stitcher-v1 - 0.46.0-SNAPSHOT + 0.46.0 com.google.api.grpc proto-google-cloud-video-stitcher-v1 - 0.46.0-SNAPSHOT + 0.46.0 diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/pom.xml b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/pom.xml index 0b0b5f6df580..2293d425f9bd 100644 --- a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/pom.xml +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-video-stitcher-v1 - 0.46.0-SNAPSHOT + 0.46.0 proto-google-cloud-video-stitcher-v1 Proto library for google-cloud-video-stitcher com.google.cloud google-cloud-video-stitcher-parent - 0.46.0-SNAPSHOT + 0.46.0 diff --git a/java-video-transcoder/CHANGELOG.md b/java-video-transcoder/CHANGELOG.md index 8020231b15be..66f91d51a276 100644 --- a/java-video-transcoder/CHANGELOG.md +++ b/java-video-transcoder/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 1.45.0 (2024-06-27) + +* No change + + ## 1.44.0 (None) * No change diff --git a/java-video-transcoder/README.md b/java-video-transcoder/README.md index 347c9f697b36..81f9f628d9d8 100644 --- a/java-video-transcoder/README.md +++ b/java-video-transcoder/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-video-transcoder - 1.44.0 + 1.45.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-video-transcoder:1.44.0' +implementation 'com.google.cloud:google-cloud-video-transcoder:1.45.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-video-transcoder" % "1.44.0" +libraryDependencies += "com.google.cloud" % "google-cloud-video-transcoder" % "1.45.0" ``` diff --git a/java-video-transcoder/google-cloud-video-transcoder-bom/pom.xml b/java-video-transcoder/google-cloud-video-transcoder-bom/pom.xml index d61f226d2024..e5354e9e70ff 100644 --- a/java-video-transcoder/google-cloud-video-transcoder-bom/pom.xml +++ b/java-video-transcoder/google-cloud-video-transcoder-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-video-transcoder-bom - 1.45.0-SNAPSHOT + 1.45.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-video-transcoder - 1.45.0-SNAPSHOT + 1.45.0 com.google.api.grpc grpc-google-cloud-video-transcoder-v1 - 1.45.0-SNAPSHOT + 1.45.0 com.google.api.grpc proto-google-cloud-video-transcoder-v1 - 1.45.0-SNAPSHOT + 1.45.0 diff --git a/java-video-transcoder/google-cloud-video-transcoder/pom.xml b/java-video-transcoder/google-cloud-video-transcoder/pom.xml index 8c34aa9ad5af..9926d9115e18 100644 --- a/java-video-transcoder/google-cloud-video-transcoder/pom.xml +++ b/java-video-transcoder/google-cloud-video-transcoder/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-video-transcoder - 1.45.0-SNAPSHOT + 1.45.0 jar Google Video Transcoder allows you to transcode videos into a variety of formats. The Transcoder API benefits broadcasters, production companies, businesses, and individuals looking to transform their video content for use across a variety of user devices. com.google.cloud google-cloud-video-transcoder-parent - 1.45.0-SNAPSHOT + 1.45.0 google-cloud-video-transcoder diff --git a/java-video-transcoder/grpc-google-cloud-video-transcoder-v1/pom.xml b/java-video-transcoder/grpc-google-cloud-video-transcoder-v1/pom.xml index c534445b9ea8..4046e6d264c4 100644 --- a/java-video-transcoder/grpc-google-cloud-video-transcoder-v1/pom.xml +++ b/java-video-transcoder/grpc-google-cloud-video-transcoder-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-video-transcoder-v1 - 1.45.0-SNAPSHOT + 1.45.0 grpc-google-cloud-video-transcoder-v1 GRPC library for google-cloud-video-transcoder com.google.cloud google-cloud-video-transcoder-parent - 1.45.0-SNAPSHOT + 1.45.0 diff --git a/java-video-transcoder/pom.xml b/java-video-transcoder/pom.xml index 79e9e562aeee..b7a2cbebd7c1 100644 --- a/java-video-transcoder/pom.xml +++ b/java-video-transcoder/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-video-transcoder-parent pom - 1.45.0-SNAPSHOT + 1.45.0 Google Video Transcoder Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-video-transcoder - 1.45.0-SNAPSHOT + 1.45.0 com.google.api.grpc proto-google-cloud-video-transcoder-v1 - 1.45.0-SNAPSHOT + 1.45.0 com.google.api.grpc grpc-google-cloud-video-transcoder-v1 - 1.45.0-SNAPSHOT + 1.45.0 diff --git a/java-video-transcoder/proto-google-cloud-video-transcoder-v1/pom.xml b/java-video-transcoder/proto-google-cloud-video-transcoder-v1/pom.xml index c3f93aaea1f8..965bd4d3e5ab 100644 --- a/java-video-transcoder/proto-google-cloud-video-transcoder-v1/pom.xml +++ b/java-video-transcoder/proto-google-cloud-video-transcoder-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-video-transcoder-v1 - 1.45.0-SNAPSHOT + 1.45.0 proto-google-cloud-video-transcoder-v1 Proto library for google-cloud-video-transcoder com.google.cloud google-cloud-video-transcoder-parent - 1.45.0-SNAPSHOT + 1.45.0 diff --git a/java-vision/CHANGELOG.md b/java-vision/CHANGELOG.md index 0cff813ce82e..753cf9c3ad6a 100644 --- a/java-vision/CHANGELOG.md +++ b/java-vision/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 3.44.0 (2024-06-27) + +* No change + + ## 3.43.0 (None) * No change diff --git a/java-vision/README.md b/java-vision/README.md index 5f532702db0e..23730065573b 100644 --- a/java-vision/README.md +++ b/java-vision/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-vision - 3.43.0 + 3.44.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vision:3.43.0' +implementation 'com.google.cloud:google-cloud-vision:3.44.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vision" % "3.43.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vision" % "3.44.0" ``` diff --git a/java-vision/google-cloud-vision-bom/pom.xml b/java-vision/google-cloud-vision-bom/pom.xml index e29f93dc366a..79e8571ed38f 100644 --- a/java-vision/google-cloud-vision-bom/pom.xml +++ b/java-vision/google-cloud-vision-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-vision-bom - 3.44.0-SNAPSHOT + 3.44.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -23,57 +23,57 @@ com.google.cloud google-cloud-vision - 3.44.0-SNAPSHOT + 3.44.0 com.google.api.grpc grpc-google-cloud-vision-v1p3beta1 - 0.133.0-SNAPSHOT + 0.133.0 com.google.api.grpc grpc-google-cloud-vision-v1p1beta1 - 0.133.0-SNAPSHOT + 0.133.0 com.google.api.grpc grpc-google-cloud-vision-v1p4beta1 - 0.133.0-SNAPSHOT + 0.133.0 com.google.api.grpc grpc-google-cloud-vision-v1p2beta1 - 3.44.0-SNAPSHOT + 3.44.0 com.google.api.grpc grpc-google-cloud-vision-v1 - 3.44.0-SNAPSHOT + 3.44.0 com.google.api.grpc proto-google-cloud-vision-v1p4beta1 - 0.133.0-SNAPSHOT + 0.133.0 com.google.api.grpc proto-google-cloud-vision-v1 - 3.44.0-SNAPSHOT + 3.44.0 com.google.api.grpc proto-google-cloud-vision-v1p1beta1 - 0.133.0-SNAPSHOT + 0.133.0 com.google.api.grpc proto-google-cloud-vision-v1p3beta1 - 0.133.0-SNAPSHOT + 0.133.0 com.google.api.grpc proto-google-cloud-vision-v1p2beta1 - 3.44.0-SNAPSHOT + 3.44.0 diff --git a/java-vision/google-cloud-vision/pom.xml b/java-vision/google-cloud-vision/pom.xml index 75b7b146e5c3..fc2241fc40bf 100644 --- a/java-vision/google-cloud-vision/pom.xml +++ b/java-vision/google-cloud-vision/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-vision - 3.44.0-SNAPSHOT + 3.44.0 jar Google Cloud Vision Java idiomatic client for Google Cloud Vision com.google.cloud google-cloud-vision-parent - 3.44.0-SNAPSHOT + 3.44.0 google-cloud-vision diff --git a/java-vision/grpc-google-cloud-vision-v1/pom.xml b/java-vision/grpc-google-cloud-vision-v1/pom.xml index 38dd4c4bf906..4b117d22e314 100644 --- a/java-vision/grpc-google-cloud-vision-v1/pom.xml +++ b/java-vision/grpc-google-cloud-vision-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-vision-v1 - 3.44.0-SNAPSHOT + 3.44.0 grpc-google-cloud-vision-v1 GRPC library for grpc-google-cloud-vision-v1 com.google.cloud google-cloud-vision-parent - 3.44.0-SNAPSHOT + 3.44.0 diff --git a/java-vision/grpc-google-cloud-vision-v1p1beta1/pom.xml b/java-vision/grpc-google-cloud-vision-v1p1beta1/pom.xml index 635e6e396daf..7adaf9b6238a 100644 --- a/java-vision/grpc-google-cloud-vision-v1p1beta1/pom.xml +++ b/java-vision/grpc-google-cloud-vision-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-vision-v1p1beta1 - 0.133.0-SNAPSHOT + 0.133.0 grpc-google-cloud-vision-v1p1beta1 GRPC library for grpc-google-cloud-vision-v1p1beta1 com.google.cloud google-cloud-vision-parent - 3.44.0-SNAPSHOT + 3.44.0 diff --git a/java-vision/grpc-google-cloud-vision-v1p2beta1/pom.xml b/java-vision/grpc-google-cloud-vision-v1p2beta1/pom.xml index 11821398da60..5238bb97df6c 100644 --- a/java-vision/grpc-google-cloud-vision-v1p2beta1/pom.xml +++ b/java-vision/grpc-google-cloud-vision-v1p2beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-vision-v1p2beta1 - 3.44.0-SNAPSHOT + 3.44.0 grpc-google-cloud-vision-v1p2beta1 GRPC library for grpc-google-cloud-vision-v1p2beta1 com.google.cloud google-cloud-vision-parent - 3.44.0-SNAPSHOT + 3.44.0 diff --git a/java-vision/grpc-google-cloud-vision-v1p3beta1/pom.xml b/java-vision/grpc-google-cloud-vision-v1p3beta1/pom.xml index dcdaa7f044cc..0d2bee904a9f 100644 --- a/java-vision/grpc-google-cloud-vision-v1p3beta1/pom.xml +++ b/java-vision/grpc-google-cloud-vision-v1p3beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-vision-v1p3beta1 - 0.133.0-SNAPSHOT + 0.133.0 grpc-google-cloud-vision-v1p3beta1 GRPC library for grpc-google-cloud-vision-v1p3beta1 com.google.cloud google-cloud-vision-parent - 3.44.0-SNAPSHOT + 3.44.0 diff --git a/java-vision/grpc-google-cloud-vision-v1p4beta1/pom.xml b/java-vision/grpc-google-cloud-vision-v1p4beta1/pom.xml index bb679d8b6482..ab740058f001 100644 --- a/java-vision/grpc-google-cloud-vision-v1p4beta1/pom.xml +++ b/java-vision/grpc-google-cloud-vision-v1p4beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-vision-v1p4beta1 - 0.133.0-SNAPSHOT + 0.133.0 grpc-google-cloud-vision-v1p4beta1 GRPC library for grpc-google-cloud-vision-v1p4beta1 com.google.cloud google-cloud-vision-parent - 3.44.0-SNAPSHOT + 3.44.0 diff --git a/java-vision/pom.xml b/java-vision/pom.xml index 15bad0b4a20a..604efa9e25f1 100644 --- a/java-vision/pom.xml +++ b/java-vision/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-vision-parent pom - 3.44.0-SNAPSHOT + 3.44.0 Google Cloud Vision Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,57 +29,57 @@ com.google.api.grpc proto-google-cloud-vision-v1p4beta1 - 0.133.0-SNAPSHOT + 0.133.0 com.google.api.grpc proto-google-cloud-vision-v1 - 3.44.0-SNAPSHOT + 3.44.0 com.google.api.grpc proto-google-cloud-vision-v1p1beta1 - 0.133.0-SNAPSHOT + 0.133.0 com.google.api.grpc proto-google-cloud-vision-v1p3beta1 - 0.133.0-SNAPSHOT + 0.133.0 com.google.api.grpc proto-google-cloud-vision-v1p2beta1 - 3.44.0-SNAPSHOT + 3.44.0 com.google.api.grpc grpc-google-cloud-vision-v1p3beta1 - 0.133.0-SNAPSHOT + 0.133.0 com.google.api.grpc grpc-google-cloud-vision-v1p1beta1 - 0.133.0-SNAPSHOT + 0.133.0 com.google.api.grpc grpc-google-cloud-vision-v1p4beta1 - 0.133.0-SNAPSHOT + 0.133.0 com.google.api.grpc grpc-google-cloud-vision-v1p2beta1 - 3.44.0-SNAPSHOT + 3.44.0 com.google.api.grpc grpc-google-cloud-vision-v1 - 3.44.0-SNAPSHOT + 3.44.0 com.google.cloud google-cloud-vision - 3.44.0-SNAPSHOT + 3.44.0 diff --git a/java-vision/proto-google-cloud-vision-v1/pom.xml b/java-vision/proto-google-cloud-vision-v1/pom.xml index 3fd46a117e78..e8a0e48cf7f3 100644 --- a/java-vision/proto-google-cloud-vision-v1/pom.xml +++ b/java-vision/proto-google-cloud-vision-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-vision-v1 - 3.44.0-SNAPSHOT + 3.44.0 proto-google-cloud-vision-v1 PROTO library for proto-google-cloud-vision-v1 com.google.cloud google-cloud-vision-parent - 3.44.0-SNAPSHOT + 3.44.0 diff --git a/java-vision/proto-google-cloud-vision-v1p1beta1/pom.xml b/java-vision/proto-google-cloud-vision-v1p1beta1/pom.xml index 3d897ec3444b..ae25f6b81824 100644 --- a/java-vision/proto-google-cloud-vision-v1p1beta1/pom.xml +++ b/java-vision/proto-google-cloud-vision-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-vision-v1p1beta1 - 0.133.0-SNAPSHOT + 0.133.0 proto-google-cloud-vision-v1p1beta1 PROTO library for proto-google-cloud-vision-v1p1beta1 com.google.cloud google-cloud-vision-parent - 3.44.0-SNAPSHOT + 3.44.0 diff --git a/java-vision/proto-google-cloud-vision-v1p2beta1/pom.xml b/java-vision/proto-google-cloud-vision-v1p2beta1/pom.xml index f5b6e89160f1..8783421318c8 100644 --- a/java-vision/proto-google-cloud-vision-v1p2beta1/pom.xml +++ b/java-vision/proto-google-cloud-vision-v1p2beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-vision-v1p2beta1 - 3.44.0-SNAPSHOT + 3.44.0 proto-google-cloud-vision-v1p2beta1 PROTO library for proto-google-cloud-vision-v1p2beta1 com.google.cloud google-cloud-vision-parent - 3.44.0-SNAPSHOT + 3.44.0 diff --git a/java-vision/proto-google-cloud-vision-v1p3beta1/pom.xml b/java-vision/proto-google-cloud-vision-v1p3beta1/pom.xml index 3fbb1e942080..52d42da8dc78 100644 --- a/java-vision/proto-google-cloud-vision-v1p3beta1/pom.xml +++ b/java-vision/proto-google-cloud-vision-v1p3beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-vision-v1p3beta1 - 0.133.0-SNAPSHOT + 0.133.0 proto-google-cloud-vision-v1p3beta1 PROTO library for proto-google-cloud-vision-v1p3beta1 com.google.cloud google-cloud-vision-parent - 3.44.0-SNAPSHOT + 3.44.0 diff --git a/java-vision/proto-google-cloud-vision-v1p4beta1/pom.xml b/java-vision/proto-google-cloud-vision-v1p4beta1/pom.xml index 2e6bd36414ae..154a93b5cd75 100644 --- a/java-vision/proto-google-cloud-vision-v1p4beta1/pom.xml +++ b/java-vision/proto-google-cloud-vision-v1p4beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-vision-v1p4beta1 - 0.133.0-SNAPSHOT + 0.133.0 proto-google-cloud-vision-v1p4beta1 PROTO library for proto-google-cloud-vision-v1p4beta1 com.google.cloud google-cloud-vision-parent - 3.44.0-SNAPSHOT + 3.44.0 diff --git a/java-visionai/CHANGELOG.md b/java-visionai/CHANGELOG.md index ae16aae3528b..45a123aee9f4 100644 --- a/java-visionai/CHANGELOG.md +++ b/java-visionai/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.3.0 (2024-06-27) + +* No change + + ## 0.2.0 (None) * No change diff --git a/java-visionai/README.md b/java-visionai/README.md index 1921a2873143..1d355a388361 100644 --- a/java-visionai/README.md +++ b/java-visionai/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-visionai - 0.2.0 + 0.3.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-visionai:0.2.0' +implementation 'com.google.cloud:google-cloud-visionai:0.3.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-visionai" % "0.2.0" +libraryDependencies += "com.google.cloud" % "google-cloud-visionai" % "0.3.0" ``` diff --git a/java-visionai/google-cloud-visionai-bom/pom.xml b/java-visionai/google-cloud-visionai-bom/pom.xml index baf3f58275cb..8626e7582273 100644 --- a/java-visionai/google-cloud-visionai-bom/pom.xml +++ b/java-visionai/google-cloud-visionai-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-visionai-bom - 0.3.0-SNAPSHOT + 0.3.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -26,17 +26,17 @@ com.google.cloud google-cloud-visionai - 0.3.0-SNAPSHOT + 0.3.0 com.google.api.grpc grpc-google-cloud-visionai-v1 - 0.3.0-SNAPSHOT + 0.3.0 com.google.api.grpc proto-google-cloud-visionai-v1 - 0.3.0-SNAPSHOT + 0.3.0 diff --git a/java-visionai/google-cloud-visionai/pom.xml b/java-visionai/google-cloud-visionai/pom.xml index 92465de29e8a..f355233c96db 100644 --- a/java-visionai/google-cloud-visionai/pom.xml +++ b/java-visionai/google-cloud-visionai/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-visionai - 0.3.0-SNAPSHOT + 0.3.0 jar Google Vision AI API Vision AI API Vertex AI Vision is an AI-powered platform to ingest, analyze and store video data. com.google.cloud google-cloud-visionai-parent - 0.3.0-SNAPSHOT + 0.3.0 google-cloud-visionai diff --git a/java-visionai/grpc-google-cloud-visionai-v1/pom.xml b/java-visionai/grpc-google-cloud-visionai-v1/pom.xml index c8b315a02425..9c19a7809234 100644 --- a/java-visionai/grpc-google-cloud-visionai-v1/pom.xml +++ b/java-visionai/grpc-google-cloud-visionai-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-visionai-v1 - 0.3.0-SNAPSHOT + 0.3.0 grpc-google-cloud-visionai-v1 GRPC library for google-cloud-visionai com.google.cloud google-cloud-visionai-parent - 0.3.0-SNAPSHOT + 0.3.0 diff --git a/java-visionai/pom.xml b/java-visionai/pom.xml index b4108128f74a..0a58302de358 100644 --- a/java-visionai/pom.xml +++ b/java-visionai/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-visionai-parent pom - 0.3.0-SNAPSHOT + 0.3.0 Google Vision AI API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-visionai - 0.3.0-SNAPSHOT + 0.3.0 com.google.api.grpc grpc-google-cloud-visionai-v1 - 0.3.0-SNAPSHOT + 0.3.0 com.google.api.grpc proto-google-cloud-visionai-v1 - 0.3.0-SNAPSHOT + 0.3.0 diff --git a/java-visionai/proto-google-cloud-visionai-v1/pom.xml b/java-visionai/proto-google-cloud-visionai-v1/pom.xml index 3dd879f05ce1..b1ffde7e13bc 100644 --- a/java-visionai/proto-google-cloud-visionai-v1/pom.xml +++ b/java-visionai/proto-google-cloud-visionai-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-visionai-v1 - 0.3.0-SNAPSHOT + 0.3.0 proto-google-cloud-visionai-v1 Proto library for google-cloud-visionai com.google.cloud google-cloud-visionai-parent - 0.3.0-SNAPSHOT + 0.3.0 diff --git a/java-vmmigration/CHANGELOG.md b/java-vmmigration/CHANGELOG.md index 78ad382ddf20..dd93285d4b2a 100644 --- a/java-vmmigration/CHANGELOG.md +++ b/java-vmmigration/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 1.46.0 (2024-06-27) + +* No change + + ## 1.45.0 (None) * No change diff --git a/java-vmmigration/README.md b/java-vmmigration/README.md index a134ee2e6f1b..bd25747021b1 100644 --- a/java-vmmigration/README.md +++ b/java-vmmigration/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-vmmigration - 1.45.0 + 1.46.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vmmigration:1.45.0' +implementation 'com.google.cloud:google-cloud-vmmigration:1.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vmmigration" % "1.45.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vmmigration" % "1.46.0" ``` diff --git a/java-vmmigration/google-cloud-vmmigration-bom/pom.xml b/java-vmmigration/google-cloud-vmmigration-bom/pom.xml index dc2396ef9726..9115df665c4b 100644 --- a/java-vmmigration/google-cloud-vmmigration-bom/pom.xml +++ b/java-vmmigration/google-cloud-vmmigration-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-vmmigration-bom - 1.46.0-SNAPSHOT + 1.46.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-vmmigration - 1.46.0-SNAPSHOT + 1.46.0 com.google.api.grpc grpc-google-cloud-vmmigration-v1 - 1.46.0-SNAPSHOT + 1.46.0 com.google.api.grpc proto-google-cloud-vmmigration-v1 - 1.46.0-SNAPSHOT + 1.46.0 diff --git a/java-vmmigration/google-cloud-vmmigration/pom.xml b/java-vmmigration/google-cloud-vmmigration/pom.xml index 85d9dbb9e02b..59f2b2b0d844 100644 --- a/java-vmmigration/google-cloud-vmmigration/pom.xml +++ b/java-vmmigration/google-cloud-vmmigration/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-vmmigration - 1.46.0-SNAPSHOT + 1.46.0 jar Google VM Migration VM Migration helps customers migrating VMs to GCP at no additional cost, as well as an extensive ecosystem of partners to help with discovery and assessment, planning, migration, special use cases, and more. com.google.cloud google-cloud-vmmigration-parent - 1.46.0-SNAPSHOT + 1.46.0 google-cloud-vmmigration diff --git a/java-vmmigration/grpc-google-cloud-vmmigration-v1/pom.xml b/java-vmmigration/grpc-google-cloud-vmmigration-v1/pom.xml index 43a28fff715e..5f05e69b883c 100644 --- a/java-vmmigration/grpc-google-cloud-vmmigration-v1/pom.xml +++ b/java-vmmigration/grpc-google-cloud-vmmigration-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-vmmigration-v1 - 1.46.0-SNAPSHOT + 1.46.0 grpc-google-cloud-vmmigration-v1 GRPC library for google-cloud-vmmigration com.google.cloud google-cloud-vmmigration-parent - 1.46.0-SNAPSHOT + 1.46.0 diff --git a/java-vmmigration/pom.xml b/java-vmmigration/pom.xml index 689b0d40fff8..282446aec97d 100644 --- a/java-vmmigration/pom.xml +++ b/java-vmmigration/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-vmmigration-parent pom - 1.46.0-SNAPSHOT + 1.46.0 Google VM Migration Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-vmmigration - 1.46.0-SNAPSHOT + 1.46.0 com.google.api.grpc grpc-google-cloud-vmmigration-v1 - 1.46.0-SNAPSHOT + 1.46.0 com.google.api.grpc proto-google-cloud-vmmigration-v1 - 1.46.0-SNAPSHOT + 1.46.0 diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/pom.xml b/java-vmmigration/proto-google-cloud-vmmigration-v1/pom.xml index 4ee8299159f7..116b3901b66b 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/pom.xml +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-vmmigration-v1 - 1.46.0-SNAPSHOT + 1.46.0 proto-google-cloud-vmmigration-v1 Proto library for google-cloud-vmmigration com.google.cloud google-cloud-vmmigration-parent - 1.46.0-SNAPSHOT + 1.46.0 diff --git a/java-vmwareengine/CHANGELOG.md b/java-vmwareengine/CHANGELOG.md index 5bf7169c8f54..0b240cc6c9b6 100644 --- a/java-vmwareengine/CHANGELOG.md +++ b/java-vmwareengine/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.40.0 (2024-06-27) + +* No change + + ## 0.39.0 (None) * No change diff --git a/java-vmwareengine/README.md b/java-vmwareengine/README.md index 7a3aabbc5157..8c072261ed13 100644 --- a/java-vmwareengine/README.md +++ b/java-vmwareengine/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-vmwareengine - 0.39.0 + 0.40.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vmwareengine:0.39.0' +implementation 'com.google.cloud:google-cloud-vmwareengine:0.40.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vmwareengine" % "0.39.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vmwareengine" % "0.40.0" ``` diff --git a/java-vmwareengine/google-cloud-vmwareengine-bom/pom.xml b/java-vmwareengine/google-cloud-vmwareengine-bom/pom.xml index 889aec0958f6..c21cb8a42aaf 100644 --- a/java-vmwareengine/google-cloud-vmwareengine-bom/pom.xml +++ b/java-vmwareengine/google-cloud-vmwareengine-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-vmwareengine-bom - 0.40.0-SNAPSHOT + 0.40.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-vmwareengine - 0.40.0-SNAPSHOT + 0.40.0 com.google.api.grpc grpc-google-cloud-vmwareengine-v1 - 0.40.0-SNAPSHOT + 0.40.0 com.google.api.grpc proto-google-cloud-vmwareengine-v1 - 0.40.0-SNAPSHOT + 0.40.0 diff --git a/java-vmwareengine/google-cloud-vmwareengine/pom.xml b/java-vmwareengine/google-cloud-vmwareengine/pom.xml index 4cfaa05573f1..5f8e4e0ea6d2 100644 --- a/java-vmwareengine/google-cloud-vmwareengine/pom.xml +++ b/java-vmwareengine/google-cloud-vmwareengine/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-vmwareengine - 0.40.0-SNAPSHOT + 0.40.0 jar Google Google Cloud VMware Engine Google Cloud VMware Engine Easily lift and shift your VMware-based applications to Google Cloud without changes to your apps, tools, or processes. com.google.cloud google-cloud-vmwareengine-parent - 0.40.0-SNAPSHOT + 0.40.0 google-cloud-vmwareengine diff --git a/java-vmwareengine/grpc-google-cloud-vmwareengine-v1/pom.xml b/java-vmwareengine/grpc-google-cloud-vmwareengine-v1/pom.xml index ac1e85fd0887..44285f7e17af 100644 --- a/java-vmwareengine/grpc-google-cloud-vmwareengine-v1/pom.xml +++ b/java-vmwareengine/grpc-google-cloud-vmwareengine-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-vmwareengine-v1 - 0.40.0-SNAPSHOT + 0.40.0 grpc-google-cloud-vmwareengine-v1 GRPC library for google-cloud-vmwareengine com.google.cloud google-cloud-vmwareengine-parent - 0.40.0-SNAPSHOT + 0.40.0 diff --git a/java-vmwareengine/pom.xml b/java-vmwareengine/pom.xml index c948788c2eb0..afef6912131e 100644 --- a/java-vmwareengine/pom.xml +++ b/java-vmwareengine/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-vmwareengine-parent pom - 0.40.0-SNAPSHOT + 0.40.0 Google Google Cloud VMware Engine Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-vmwareengine - 0.40.0-SNAPSHOT + 0.40.0 com.google.api.grpc grpc-google-cloud-vmwareengine-v1 - 0.40.0-SNAPSHOT + 0.40.0 com.google.api.grpc proto-google-cloud-vmwareengine-v1 - 0.40.0-SNAPSHOT + 0.40.0 diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/pom.xml b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/pom.xml index c9e7c6e30f62..37fcc879e029 100644 --- a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/pom.xml +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-vmwareengine-v1 - 0.40.0-SNAPSHOT + 0.40.0 proto-google-cloud-vmwareengine-v1 Proto library for google-cloud-vmwareengine com.google.cloud google-cloud-vmwareengine-parent - 0.40.0-SNAPSHOT + 0.40.0 diff --git a/java-vpcaccess/CHANGELOG.md b/java-vpcaccess/CHANGELOG.md index c3505615e0f9..f76f3570eaff 100644 --- a/java-vpcaccess/CHANGELOG.md +++ b/java-vpcaccess/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.47.0 (2024-06-27) + +* No change + + ## 2.46.0 (None) * No change diff --git a/java-vpcaccess/README.md b/java-vpcaccess/README.md index 5c31e143f863..91f01f4b202b 100644 --- a/java-vpcaccess/README.md +++ b/java-vpcaccess/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-vpcaccess - 2.46.0 + 2.47.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vpcaccess:2.46.0' +implementation 'com.google.cloud:google-cloud-vpcaccess:2.47.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vpcaccess" % "2.46.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vpcaccess" % "2.47.0" ``` diff --git a/java-vpcaccess/google-cloud-vpcaccess-bom/pom.xml b/java-vpcaccess/google-cloud-vpcaccess-bom/pom.xml index 1c03425b5fb7..7ad0c2cc715c 100644 --- a/java-vpcaccess/google-cloud-vpcaccess-bom/pom.xml +++ b/java-vpcaccess/google-cloud-vpcaccess-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-vpcaccess-bom - 2.47.0-SNAPSHOT + 2.47.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-vpcaccess - 2.47.0-SNAPSHOT + 2.47.0 com.google.api.grpc grpc-google-cloud-vpcaccess-v1 - 2.47.0-SNAPSHOT + 2.47.0 com.google.api.grpc proto-google-cloud-vpcaccess-v1 - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-vpcaccess/google-cloud-vpcaccess/pom.xml b/java-vpcaccess/google-cloud-vpcaccess/pom.xml index d2a7bb981d49..06f7c047b12e 100644 --- a/java-vpcaccess/google-cloud-vpcaccess/pom.xml +++ b/java-vpcaccess/google-cloud-vpcaccess/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-vpcaccess - 2.47.0-SNAPSHOT + 2.47.0 jar Google Serverless VPC Access Serverless VPC Access enables you to connect from a serverless environment on Google Cloud directly to your VPC network. This connection makes it possible for your serverless environment to access resources in your VPC network via internal IP addresses. com.google.cloud google-cloud-vpcaccess-parent - 2.47.0-SNAPSHOT + 2.47.0 google-cloud-vpcaccess diff --git a/java-vpcaccess/grpc-google-cloud-vpcaccess-v1/pom.xml b/java-vpcaccess/grpc-google-cloud-vpcaccess-v1/pom.xml index 5e9cffed0556..fb1f5bc4b072 100644 --- a/java-vpcaccess/grpc-google-cloud-vpcaccess-v1/pom.xml +++ b/java-vpcaccess/grpc-google-cloud-vpcaccess-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-vpcaccess-v1 - 2.47.0-SNAPSHOT + 2.47.0 grpc-google-cloud-vpcaccess-v1 GRPC library for google-cloud-vpcaccess com.google.cloud google-cloud-vpcaccess-parent - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-vpcaccess/pom.xml b/java-vpcaccess/pom.xml index e4044f3afcdf..12885524120c 100644 --- a/java-vpcaccess/pom.xml +++ b/java-vpcaccess/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-vpcaccess-parent pom - 2.47.0-SNAPSHOT + 2.47.0 Google Serverless VPC Access Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-vpcaccess - 2.47.0-SNAPSHOT + 2.47.0 com.google.api.grpc grpc-google-cloud-vpcaccess-v1 - 2.47.0-SNAPSHOT + 2.47.0 com.google.api.grpc proto-google-cloud-vpcaccess-v1 - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-vpcaccess/proto-google-cloud-vpcaccess-v1/pom.xml b/java-vpcaccess/proto-google-cloud-vpcaccess-v1/pom.xml index 08f1dd9da642..4fff9cdf037d 100644 --- a/java-vpcaccess/proto-google-cloud-vpcaccess-v1/pom.xml +++ b/java-vpcaccess/proto-google-cloud-vpcaccess-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-vpcaccess-v1 - 2.47.0-SNAPSHOT + 2.47.0 proto-google-cloud-vpcaccess-v1 Proto library for google-cloud-vpcaccess com.google.cloud google-cloud-vpcaccess-parent - 2.47.0-SNAPSHOT + 2.47.0 diff --git a/java-webrisk/CHANGELOG.md b/java-webrisk/CHANGELOG.md index 093f67090d9a..cb7e4697ed56 100644 --- a/java-webrisk/CHANGELOG.md +++ b/java-webrisk/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.45.0 (2024-06-27) + +* No change + + ## 2.44.0 (None) * No change diff --git a/java-webrisk/README.md b/java-webrisk/README.md index 2c470aece360..b02596650051 100644 --- a/java-webrisk/README.md +++ b/java-webrisk/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-webrisk - 2.44.0 + 2.45.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-webrisk:2.44.0' +implementation 'com.google.cloud:google-cloud-webrisk:2.45.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-webrisk" % "2.44.0" +libraryDependencies += "com.google.cloud" % "google-cloud-webrisk" % "2.45.0" ``` diff --git a/java-webrisk/google-cloud-webrisk-bom/pom.xml b/java-webrisk/google-cloud-webrisk-bom/pom.xml index 2ae93bc47ac5..d36fb6d192ed 100644 --- a/java-webrisk/google-cloud-webrisk-bom/pom.xml +++ b/java-webrisk/google-cloud-webrisk-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-webrisk-bom - 2.45.0-SNAPSHOT + 2.45.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -23,27 +23,27 @@ com.google.cloud google-cloud-webrisk - 2.45.0-SNAPSHOT + 2.45.0 com.google.api.grpc grpc-google-cloud-webrisk-v1 - 2.45.0-SNAPSHOT + 2.45.0 com.google.api.grpc grpc-google-cloud-webrisk-v1beta1 - 0.82.0-SNAPSHOT + 0.82.0 com.google.api.grpc proto-google-cloud-webrisk-v1 - 2.45.0-SNAPSHOT + 2.45.0 com.google.api.grpc proto-google-cloud-webrisk-v1beta1 - 0.82.0-SNAPSHOT + 0.82.0 diff --git a/java-webrisk/google-cloud-webrisk/pom.xml b/java-webrisk/google-cloud-webrisk/pom.xml index 3461a2f9c616..eb9a64baf6eb 100644 --- a/java-webrisk/google-cloud-webrisk/pom.xml +++ b/java-webrisk/google-cloud-webrisk/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-webrisk - 2.45.0-SNAPSHOT + 2.45.0 jar Google Cloud Web Risk Java idiomatic client for Google Cloud Web Risk com.google.cloud google-cloud-webrisk-parent - 2.45.0-SNAPSHOT + 2.45.0 google-cloud-webrisk diff --git a/java-webrisk/grpc-google-cloud-webrisk-v1/pom.xml b/java-webrisk/grpc-google-cloud-webrisk-v1/pom.xml index 5a689b97d1b8..b9c887dec7a6 100644 --- a/java-webrisk/grpc-google-cloud-webrisk-v1/pom.xml +++ b/java-webrisk/grpc-google-cloud-webrisk-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-webrisk-v1 - 2.45.0-SNAPSHOT + 2.45.0 grpc-google-cloud-webrisk-v1 GRPC library for grpc-google-cloud-webrisk-v1 com.google.cloud google-cloud-webrisk-parent - 2.45.0-SNAPSHOT + 2.45.0 diff --git a/java-webrisk/grpc-google-cloud-webrisk-v1beta1/pom.xml b/java-webrisk/grpc-google-cloud-webrisk-v1beta1/pom.xml index 77c8766742c4..1361e653b707 100644 --- a/java-webrisk/grpc-google-cloud-webrisk-v1beta1/pom.xml +++ b/java-webrisk/grpc-google-cloud-webrisk-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-webrisk-v1beta1 - 0.82.0-SNAPSHOT + 0.82.0 grpc-google-cloud-webrisk-v1beta1 GRPC library for grpc-google-cloud-webrisk-v1beta1 com.google.cloud google-cloud-webrisk-parent - 2.45.0-SNAPSHOT + 2.45.0 diff --git a/java-webrisk/pom.xml b/java-webrisk/pom.xml index 196860535ffa..fda4c501562c 100644 --- a/java-webrisk/pom.xml +++ b/java-webrisk/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-webrisk-parent pom - 2.45.0-SNAPSHOT + 2.45.0 Google Cloud Web Risk Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.api.grpc proto-google-cloud-webrisk-v1 - 2.45.0-SNAPSHOT + 2.45.0 com.google.api.grpc proto-google-cloud-webrisk-v1beta1 - 0.82.0-SNAPSHOT + 0.82.0 com.google.api.grpc grpc-google-cloud-webrisk-v1 - 2.45.0-SNAPSHOT + 2.45.0 com.google.api.grpc grpc-google-cloud-webrisk-v1beta1 - 0.82.0-SNAPSHOT + 0.82.0 com.google.cloud google-cloud-webrisk - 2.45.0-SNAPSHOT + 2.45.0 diff --git a/java-webrisk/proto-google-cloud-webrisk-v1/pom.xml b/java-webrisk/proto-google-cloud-webrisk-v1/pom.xml index 6389356b19e2..801f4a306ab5 100644 --- a/java-webrisk/proto-google-cloud-webrisk-v1/pom.xml +++ b/java-webrisk/proto-google-cloud-webrisk-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-webrisk-v1 - 2.45.0-SNAPSHOT + 2.45.0 proto-google-cloud-webrisk-v1 PROTO library for proto-google-cloud-webrisk-v1 com.google.cloud google-cloud-webrisk-parent - 2.45.0-SNAPSHOT + 2.45.0 diff --git a/java-webrisk/proto-google-cloud-webrisk-v1beta1/pom.xml b/java-webrisk/proto-google-cloud-webrisk-v1beta1/pom.xml index 454d182757c5..408ad4a026ca 100644 --- a/java-webrisk/proto-google-cloud-webrisk-v1beta1/pom.xml +++ b/java-webrisk/proto-google-cloud-webrisk-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-webrisk-v1beta1 - 0.82.0-SNAPSHOT + 0.82.0 proto-google-cloud-webrisk-v1beta1 PROTO library for proto-google-cloud-webrisk-v1beta1 com.google.cloud google-cloud-webrisk-parent - 2.45.0-SNAPSHOT + 2.45.0 diff --git a/java-websecurityscanner/CHANGELOG.md b/java-websecurityscanner/CHANGELOG.md index 4dc1e7263e67..70f075935ae3 100644 --- a/java-websecurityscanner/CHANGELOG.md +++ b/java-websecurityscanner/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.46.0 (2024-06-27) + +* No change + + ## 2.45.0 (None) * No change diff --git a/java-websecurityscanner/README.md b/java-websecurityscanner/README.md index e652bae539f2..f8a77cc2e21a 100644 --- a/java-websecurityscanner/README.md +++ b/java-websecurityscanner/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-websecurityscanner - 2.45.0 + 2.46.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-websecurityscanner:2.45.0' +implementation 'com.google.cloud:google-cloud-websecurityscanner:2.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-websecurityscanner" % "2.45.0" +libraryDependencies += "com.google.cloud" % "google-cloud-websecurityscanner" % "2.46.0" ``` diff --git a/java-websecurityscanner/google-cloud-websecurityscanner-bom/pom.xml b/java-websecurityscanner/google-cloud-websecurityscanner-bom/pom.xml index 0ab8d52fde97..c3f51af6c050 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner-bom/pom.xml +++ b/java-websecurityscanner/google-cloud-websecurityscanner-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-websecurityscanner-bom - 2.46.0-SNAPSHOT + 2.46.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -23,37 +23,37 @@ com.google.cloud google-cloud-websecurityscanner - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1alpha - 0.133.0-SNAPSHOT + 0.133.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1beta - 0.133.0-SNAPSHOT + 0.133.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1alpha - 0.133.0-SNAPSHOT + 0.133.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1beta - 0.133.0-SNAPSHOT + 0.133.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1 - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/pom.xml b/java-websecurityscanner/google-cloud-websecurityscanner/pom.xml index 0ee69d0d2766..09202b8d08f5 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner/pom.xml +++ b/java-websecurityscanner/google-cloud-websecurityscanner/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-websecurityscanner - 2.46.0-SNAPSHOT + 2.46.0 jar Google Cloud Web Security Scanner Java idiomatic client for Google Cloud Web Security Scanner com.google.cloud google-cloud-websecurityscanner-parent - 2.46.0-SNAPSHOT + 2.46.0 google-cloud-websecurityscanner diff --git a/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1/pom.xml b/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1/pom.xml index 12d74ccc4c23..3c5b0dc1c63b 100644 --- a/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1/pom.xml +++ b/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1 - 2.46.0-SNAPSHOT + 2.46.0 grpc-google-cloud-websecurityscanner-v1 GRPC library for grpc-google-cloud-websecurityscanner-v1 com.google.cloud google-cloud-websecurityscanner-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml b/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml index 93ace7c6493c..acea5fdd8d51 100644 --- a/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml +++ b/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1alpha - 0.133.0-SNAPSHOT + 0.133.0 grpc-google-cloud-websecurityscanner-v1alpha GRPC library for grpc-google-cloud-websecurityscanner-v1alpha com.google.cloud google-cloud-websecurityscanner-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1beta/pom.xml b/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1beta/pom.xml index 12f4ca86d456..392bb0607158 100644 --- a/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1beta/pom.xml +++ b/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1beta - 0.133.0-SNAPSHOT + 0.133.0 grpc-google-cloud-websecurityscanner-v1beta GRPC library for grpc-google-cloud-websecurityscanner-v1beta com.google.cloud google-cloud-websecurityscanner-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-websecurityscanner/pom.xml b/java-websecurityscanner/pom.xml index 793967996a97..b1769e99427e 100644 --- a/java-websecurityscanner/pom.xml +++ b/java-websecurityscanner/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-websecurityscanner-parent pom - 2.46.0-SNAPSHOT + 2.46.0 Google Cloud Web Security Scanner Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,37 +29,37 @@ com.google.api.grpc proto-google-cloud-websecurityscanner-v1alpha - 0.133.0-SNAPSHOT + 0.133.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1beta - 0.133.0-SNAPSHOT + 0.133.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1alpha - 0.133.0-SNAPSHOT + 0.133.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1beta - 0.133.0-SNAPSHOT + 0.133.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.cloud google-cloud-websecurityscanner - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/pom.xml b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/pom.xml index 4962089e4ac4..c34b198b4180 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/pom.xml +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1 - 2.46.0-SNAPSHOT + 2.46.0 proto-google-cloud-websecurityscanner-v1 PROTO library for proto-google-cloud-websecurityscanner-v1 com.google.cloud google-cloud-websecurityscanner-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/pom.xml b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/pom.xml index a4d85374cec7..91c03cda8d93 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/pom.xml +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1alpha - 0.133.0-SNAPSHOT + 0.133.0 proto-google-cloud-websecurityscanner-v1alpha PROTO library for proto-google-cloud-websecurityscanner-v1alpha com.google.cloud google-cloud-websecurityscanner-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/pom.xml b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/pom.xml index 1b2e63a9f624..431fc56726a7 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/pom.xml +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1beta - 0.133.0-SNAPSHOT + 0.133.0 proto-google-cloud-websecurityscanner-v1beta PROTO library for proto-google-cloud-websecurityscanner-v1beta com.google.cloud google-cloud-websecurityscanner-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-workflow-executions/CHANGELOG.md b/java-workflow-executions/CHANGELOG.md index e29604efd4dd..cdfe6c8ee034 100644 --- a/java-workflow-executions/CHANGELOG.md +++ b/java-workflow-executions/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.46.0 (2024-06-27) + +* No change + + ## 2.45.0 (None) * No change diff --git a/java-workflow-executions/README.md b/java-workflow-executions/README.md index 7cc0dc6ad286..861f286ef1a6 100644 --- a/java-workflow-executions/README.md +++ b/java-workflow-executions/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-workflow-executions - 2.45.0 + 2.46.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workflow-executions:2.45.0' +implementation 'com.google.cloud:google-cloud-workflow-executions:2.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workflow-executions" % "2.45.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workflow-executions" % "2.46.0" ``` diff --git a/java-workflow-executions/google-cloud-workflow-executions-bom/pom.xml b/java-workflow-executions/google-cloud-workflow-executions-bom/pom.xml index ee2ca66af23d..a578223ed482 100644 --- a/java-workflow-executions/google-cloud-workflow-executions-bom/pom.xml +++ b/java-workflow-executions/google-cloud-workflow-executions-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-workflow-executions-bom - 2.46.0-SNAPSHOT + 2.46.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-workflow-executions - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc grpc-google-cloud-workflow-executions-v1beta - 0.50.0-SNAPSHOT + 0.50.0 com.google.api.grpc grpc-google-cloud-workflow-executions-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc proto-google-cloud-workflow-executions-v1beta - 0.50.0-SNAPSHOT + 0.50.0 com.google.api.grpc proto-google-cloud-workflow-executions-v1 - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-workflow-executions/google-cloud-workflow-executions/pom.xml b/java-workflow-executions/google-cloud-workflow-executions/pom.xml index f48203948609..1023cfdf6a74 100644 --- a/java-workflow-executions/google-cloud-workflow-executions/pom.xml +++ b/java-workflow-executions/google-cloud-workflow-executions/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-workflow-executions - 2.46.0-SNAPSHOT + 2.46.0 jar Google Cloud Workflow Executions allows you to ochestrate and automate Google Cloud and HTTP-based API services with serverless workflows. com.google.cloud google-cloud-workflow-executions-parent - 2.46.0-SNAPSHOT + 2.46.0 google-cloud-workflow-executions diff --git a/java-workflow-executions/grpc-google-cloud-workflow-executions-v1/pom.xml b/java-workflow-executions/grpc-google-cloud-workflow-executions-v1/pom.xml index b8844767f0ad..869399568953 100644 --- a/java-workflow-executions/grpc-google-cloud-workflow-executions-v1/pom.xml +++ b/java-workflow-executions/grpc-google-cloud-workflow-executions-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-workflow-executions-v1 - 2.46.0-SNAPSHOT + 2.46.0 grpc-google-cloud-workflow-executions-v1 GRPC library for google-cloud-workflow-executions com.google.cloud google-cloud-workflow-executions-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-workflow-executions/grpc-google-cloud-workflow-executions-v1beta/pom.xml b/java-workflow-executions/grpc-google-cloud-workflow-executions-v1beta/pom.xml index c7b9d8e4e7a1..553fbf5f99ae 100644 --- a/java-workflow-executions/grpc-google-cloud-workflow-executions-v1beta/pom.xml +++ b/java-workflow-executions/grpc-google-cloud-workflow-executions-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-workflow-executions-v1beta - 0.50.0-SNAPSHOT + 0.50.0 grpc-google-cloud-workflow-executions-v1beta GRPC library for google-cloud-workflow-executions com.google.cloud google-cloud-workflow-executions-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-workflow-executions/pom.xml b/java-workflow-executions/pom.xml index 333cb3814948..8f410be30985 100644 --- a/java-workflow-executions/pom.xml +++ b/java-workflow-executions/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-workflow-executions-parent pom - 2.46.0-SNAPSHOT + 2.46.0 Google Cloud Workflow Executions Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-workflow-executions - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc proto-google-cloud-workflow-executions-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc grpc-google-cloud-workflow-executions-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc proto-google-cloud-workflow-executions-v1beta - 0.50.0-SNAPSHOT + 0.50.0 com.google.api.grpc grpc-google-cloud-workflow-executions-v1beta - 0.50.0-SNAPSHOT + 0.50.0 diff --git a/java-workflow-executions/proto-google-cloud-workflow-executions-v1/pom.xml b/java-workflow-executions/proto-google-cloud-workflow-executions-v1/pom.xml index 4dfd20d78e38..5b11e2c2c81b 100644 --- a/java-workflow-executions/proto-google-cloud-workflow-executions-v1/pom.xml +++ b/java-workflow-executions/proto-google-cloud-workflow-executions-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-workflow-executions-v1 - 2.46.0-SNAPSHOT + 2.46.0 proto-google-cloud-workflow-executions-v1 Proto library for google-cloud-workflow-executions com.google.cloud google-cloud-workflow-executions-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/pom.xml b/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/pom.xml index 5c737a403a66..a88ec687e35a 100644 --- a/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/pom.xml +++ b/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-workflow-executions-v1beta - 0.50.0-SNAPSHOT + 0.50.0 proto-google-cloud-workflow-executions-v1beta Proto library for google-cloud-workflow-executions com.google.cloud google-cloud-workflow-executions-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-workflows/CHANGELOG.md b/java-workflows/CHANGELOG.md index a41d184e93b6..279b4b60d6b0 100644 --- a/java-workflows/CHANGELOG.md +++ b/java-workflows/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.46.0 (2024-06-27) + +* No change + + ## 2.45.0 (None) * No change diff --git a/java-workflows/README.md b/java-workflows/README.md index e70eb6a3bb3c..baeb3776a772 100644 --- a/java-workflows/README.md +++ b/java-workflows/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-workflows - 2.45.0 + 2.46.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workflows:2.45.0' +implementation 'com.google.cloud:google-cloud-workflows:2.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workflows" % "2.45.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workflows" % "2.46.0" ``` diff --git a/java-workflows/google-cloud-workflows-bom/pom.xml b/java-workflows/google-cloud-workflows-bom/pom.xml index b2c1c1c46e6d..61ec33c3849f 100644 --- a/java-workflows/google-cloud-workflows-bom/pom.xml +++ b/java-workflows/google-cloud-workflows-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-workflows-bom - 2.46.0-SNAPSHOT + 2.46.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-workflows - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc grpc-google-cloud-workflows-v1beta - 0.52.0-SNAPSHOT + 0.52.0 com.google.api.grpc grpc-google-cloud-workflows-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc proto-google-cloud-workflows-v1beta - 0.52.0-SNAPSHOT + 0.52.0 com.google.api.grpc proto-google-cloud-workflows-v1 - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-workflows/google-cloud-workflows/pom.xml b/java-workflows/google-cloud-workflows/pom.xml index cd2be281ce13..e46c2e87c6d9 100644 --- a/java-workflows/google-cloud-workflows/pom.xml +++ b/java-workflows/google-cloud-workflows/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-workflows - 2.46.0-SNAPSHOT + 2.46.0 jar Google Cloud Workflows allows you to ochestrate and automate Google Cloud and HTTP-based API services with serverless workflows. com.google.cloud google-cloud-workflows-parent - 2.46.0-SNAPSHOT + 2.46.0 google-cloud-workflows diff --git a/java-workflows/grpc-google-cloud-workflows-v1/pom.xml b/java-workflows/grpc-google-cloud-workflows-v1/pom.xml index cecccc5a4a9a..5dfa2e4f1e58 100644 --- a/java-workflows/grpc-google-cloud-workflows-v1/pom.xml +++ b/java-workflows/grpc-google-cloud-workflows-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-workflows-v1 - 2.46.0-SNAPSHOT + 2.46.0 grpc-google-cloud-workflows-v1 GRPC library for google-cloud-workflows com.google.cloud google-cloud-workflows-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-workflows/grpc-google-cloud-workflows-v1beta/pom.xml b/java-workflows/grpc-google-cloud-workflows-v1beta/pom.xml index 22f736a4344c..c8da0a994673 100644 --- a/java-workflows/grpc-google-cloud-workflows-v1beta/pom.xml +++ b/java-workflows/grpc-google-cloud-workflows-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-workflows-v1beta - 0.52.0-SNAPSHOT + 0.52.0 grpc-google-cloud-workflows-v1beta GRPC library for google-cloud-workflows com.google.cloud google-cloud-workflows-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-workflows/pom.xml b/java-workflows/pom.xml index d387aa6240ad..cfbb83227498 100644 --- a/java-workflows/pom.xml +++ b/java-workflows/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-workflows-parent pom - 2.46.0-SNAPSHOT + 2.46.0 Google Cloud Workflows Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-workflows - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc proto-google-cloud-workflows-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc grpc-google-cloud-workflows-v1 - 2.46.0-SNAPSHOT + 2.46.0 com.google.api.grpc proto-google-cloud-workflows-v1beta - 0.52.0-SNAPSHOT + 0.52.0 com.google.api.grpc grpc-google-cloud-workflows-v1beta - 0.52.0-SNAPSHOT + 0.52.0 diff --git a/java-workflows/proto-google-cloud-workflows-v1/pom.xml b/java-workflows/proto-google-cloud-workflows-v1/pom.xml index bbe16e6fc682..b42e3ca4e5d0 100644 --- a/java-workflows/proto-google-cloud-workflows-v1/pom.xml +++ b/java-workflows/proto-google-cloud-workflows-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-workflows-v1 - 2.46.0-SNAPSHOT + 2.46.0 proto-google-cloud-workflows-v1 Proto library for google-cloud-workflows com.google.cloud google-cloud-workflows-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-workflows/proto-google-cloud-workflows-v1beta/pom.xml b/java-workflows/proto-google-cloud-workflows-v1beta/pom.xml index 8a66dc8aae25..f574211ac641 100644 --- a/java-workflows/proto-google-cloud-workflows-v1beta/pom.xml +++ b/java-workflows/proto-google-cloud-workflows-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-workflows-v1beta - 0.52.0-SNAPSHOT + 0.52.0 proto-google-cloud-workflows-v1beta Proto library for google-cloud-workflows com.google.cloud google-cloud-workflows-parent - 2.46.0-SNAPSHOT + 2.46.0 diff --git a/java-workspaceevents/CHANGELOG.md b/java-workspaceevents/CHANGELOG.md index 61cca6162d32..21953aa28654 100644 --- a/java-workspaceevents/CHANGELOG.md +++ b/java-workspaceevents/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.10.0 (2024-06-27) + +* No change + + ## 0.9.0 (None) * No change diff --git a/java-workspaceevents/README.md b/java-workspaceevents/README.md index f38e93f39365..0588b8099148 100644 --- a/java-workspaceevents/README.md +++ b/java-workspaceevents/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-workspaceevents - 0.9.0 + 0.10.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workspaceevents:0.9.0' +implementation 'com.google.cloud:google-cloud-workspaceevents:0.10.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workspaceevents" % "0.9.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workspaceevents" % "0.10.0" ``` diff --git a/java-workspaceevents/google-cloud-workspaceevents-bom/pom.xml b/java-workspaceevents/google-cloud-workspaceevents-bom/pom.xml index 622b77644a6a..a8150738cc7a 100644 --- a/java-workspaceevents/google-cloud-workspaceevents-bom/pom.xml +++ b/java-workspaceevents/google-cloud-workspaceevents-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-workspaceevents-bom - 0.10.0-SNAPSHOT + 0.10.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-workspaceevents - 0.10.0-SNAPSHOT + 0.10.0 com.google.api.grpc grpc-google-cloud-workspaceevents-v1 - 0.10.0-SNAPSHOT + 0.10.0 com.google.api.grpc proto-google-cloud-workspaceevents-v1 - 0.10.0-SNAPSHOT + 0.10.0 diff --git a/java-workspaceevents/google-cloud-workspaceevents/pom.xml b/java-workspaceevents/google-cloud-workspaceevents/pom.xml index 56e00b71e86e..e03596fbfa72 100644 --- a/java-workspaceevents/google-cloud-workspaceevents/pom.xml +++ b/java-workspaceevents/google-cloud-workspaceevents/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-workspaceevents - 0.10.0-SNAPSHOT + 0.10.0 jar Google Google Workspace Events API Google Workspace Events API The Google Workspace Events API lets you subscribe to events and manage change notifications across Google Workspace applications. com.google.cloud google-cloud-workspaceevents-parent - 0.10.0-SNAPSHOT + 0.10.0 google-cloud-workspaceevents diff --git a/java-workspaceevents/grpc-google-cloud-workspaceevents-v1/pom.xml b/java-workspaceevents/grpc-google-cloud-workspaceevents-v1/pom.xml index c1e6ae4e7169..f8eb2478c8df 100644 --- a/java-workspaceevents/grpc-google-cloud-workspaceevents-v1/pom.xml +++ b/java-workspaceevents/grpc-google-cloud-workspaceevents-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-workspaceevents-v1 - 0.10.0-SNAPSHOT + 0.10.0 grpc-google-cloud-workspaceevents-v1 GRPC library for google-cloud-workspaceevents com.google.cloud google-cloud-workspaceevents-parent - 0.10.0-SNAPSHOT + 0.10.0 diff --git a/java-workspaceevents/pom.xml b/java-workspaceevents/pom.xml index 094cde57e487..663320dde939 100644 --- a/java-workspaceevents/pom.xml +++ b/java-workspaceevents/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-workspaceevents-parent pom - 0.10.0-SNAPSHOT + 0.10.0 Google Google Workspace Events API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,17 +29,17 @@ com.google.cloud google-cloud-workspaceevents - 0.10.0-SNAPSHOT + 0.10.0 com.google.api.grpc grpc-google-cloud-workspaceevents-v1 - 0.10.0-SNAPSHOT + 0.10.0 com.google.api.grpc proto-google-cloud-workspaceevents-v1 - 0.10.0-SNAPSHOT + 0.10.0 diff --git a/java-workspaceevents/proto-google-cloud-workspaceevents-v1/pom.xml b/java-workspaceevents/proto-google-cloud-workspaceevents-v1/pom.xml index 0fe6b2f344a2..c4f670357795 100644 --- a/java-workspaceevents/proto-google-cloud-workspaceevents-v1/pom.xml +++ b/java-workspaceevents/proto-google-cloud-workspaceevents-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-workspaceevents-v1 - 0.10.0-SNAPSHOT + 0.10.0 proto-google-cloud-workspaceevents-v1 Proto library for google-cloud-workspaceevents com.google.cloud google-cloud-workspaceevents-parent - 0.10.0-SNAPSHOT + 0.10.0 diff --git a/java-workstations/CHANGELOG.md b/java-workstations/CHANGELOG.md index 9d334bf3ca3d..5656f644c662 100644 --- a/java-workstations/CHANGELOG.md +++ b/java-workstations/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.34.0 (2024-06-27) + +* No change + + ## 0.33.0 (None) * No change diff --git a/java-workstations/README.md b/java-workstations/README.md index 43e734c7b71b..23ef81808302 100644 --- a/java-workstations/README.md +++ b/java-workstations/README.md @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-workstations - 0.33.0 + 0.34.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workstations:0.33.0' +implementation 'com.google.cloud:google-cloud-workstations:0.34.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workstations" % "0.33.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workstations" % "0.34.0" ``` diff --git a/java-workstations/google-cloud-workstations-bom/pom.xml b/java-workstations/google-cloud-workstations-bom/pom.xml index dac0e4b58ec8..a6583c3e7ede 100644 --- a/java-workstations/google-cloud-workstations-bom/pom.xml +++ b/java-workstations/google-cloud-workstations-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-workstations-bom - 0.34.0-SNAPSHOT + 0.34.0 pom com.google.cloud google-cloud-pom-parent - 1.40.0-SNAPSHOT + 1.40.0 ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-workstations - 0.34.0-SNAPSHOT + 0.34.0 com.google.api.grpc grpc-google-cloud-workstations-v1beta - 0.34.0-SNAPSHOT + 0.34.0 com.google.api.grpc grpc-google-cloud-workstations-v1 - 0.34.0-SNAPSHOT + 0.34.0 com.google.api.grpc proto-google-cloud-workstations-v1beta - 0.34.0-SNAPSHOT + 0.34.0 com.google.api.grpc proto-google-cloud-workstations-v1 - 0.34.0-SNAPSHOT + 0.34.0 diff --git a/java-workstations/google-cloud-workstations/pom.xml b/java-workstations/google-cloud-workstations/pom.xml index ae7e42bcec76..7d2ffe5ff593 100644 --- a/java-workstations/google-cloud-workstations/pom.xml +++ b/java-workstations/google-cloud-workstations/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-workstations - 0.34.0-SNAPSHOT + 0.34.0 jar Google Cloud Workstations Cloud Workstations Fully managed development environments built to meet the needs of security-sensitive enterprises. It enhances the security of development environments while accelerating developer onboarding and productivity. com.google.cloud google-cloud-workstations-parent - 0.34.0-SNAPSHOT + 0.34.0 google-cloud-workstations diff --git a/java-workstations/grpc-google-cloud-workstations-v1/pom.xml b/java-workstations/grpc-google-cloud-workstations-v1/pom.xml index 42ccb6606a91..41060f9b95bb 100644 --- a/java-workstations/grpc-google-cloud-workstations-v1/pom.xml +++ b/java-workstations/grpc-google-cloud-workstations-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-workstations-v1 - 0.34.0-SNAPSHOT + 0.34.0 grpc-google-cloud-workstations-v1 GRPC library for google-cloud-workstations com.google.cloud google-cloud-workstations-parent - 0.34.0-SNAPSHOT + 0.34.0 diff --git a/java-workstations/grpc-google-cloud-workstations-v1beta/pom.xml b/java-workstations/grpc-google-cloud-workstations-v1beta/pom.xml index a68f907b00eb..cf62333d71ee 100644 --- a/java-workstations/grpc-google-cloud-workstations-v1beta/pom.xml +++ b/java-workstations/grpc-google-cloud-workstations-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-workstations-v1beta - 0.34.0-SNAPSHOT + 0.34.0 grpc-google-cloud-workstations-v1beta GRPC library for google-cloud-workstations com.google.cloud google-cloud-workstations-parent - 0.34.0-SNAPSHOT + 0.34.0 diff --git a/java-workstations/pom.xml b/java-workstations/pom.xml index 353b4f9c88d8..0641b906ff8a 100644 --- a/java-workstations/pom.xml +++ b/java-workstations/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-workstations-parent pom - 0.34.0-SNAPSHOT + 0.34.0 Google Cloud Workstations Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.40.0-SNAPSHOT + 1.40.0 ../google-cloud-jar-parent/pom.xml @@ -29,27 +29,27 @@ com.google.cloud google-cloud-workstations - 0.34.0-SNAPSHOT + 0.34.0 com.google.api.grpc proto-google-cloud-workstations-v1 - 0.34.0-SNAPSHOT + 0.34.0 com.google.api.grpc grpc-google-cloud-workstations-v1 - 0.34.0-SNAPSHOT + 0.34.0 com.google.api.grpc grpc-google-cloud-workstations-v1beta - 0.34.0-SNAPSHOT + 0.34.0 com.google.api.grpc proto-google-cloud-workstations-v1beta - 0.34.0-SNAPSHOT + 0.34.0 diff --git a/java-workstations/proto-google-cloud-workstations-v1/pom.xml b/java-workstations/proto-google-cloud-workstations-v1/pom.xml index ce05e91fe581..3789c2e32088 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/pom.xml +++ b/java-workstations/proto-google-cloud-workstations-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-workstations-v1 - 0.34.0-SNAPSHOT + 0.34.0 proto-google-cloud-workstations-v1 Proto library for google-cloud-workstations com.google.cloud google-cloud-workstations-parent - 0.34.0-SNAPSHOT + 0.34.0 diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/pom.xml b/java-workstations/proto-google-cloud-workstations-v1beta/pom.xml index b23e1aa1a154..ae501d3bbb74 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/pom.xml +++ b/java-workstations/proto-google-cloud-workstations-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-workstations-v1beta - 0.34.0-SNAPSHOT + 0.34.0 proto-google-cloud-workstations-v1beta Proto library for google-cloud-workstations com.google.cloud google-cloud-workstations-parent - 0.34.0-SNAPSHOT + 0.34.0 diff --git a/versions.txt b/versions.txt index 04b5c14f3fc8..a4a9ed06c6ff 100644 --- a/versions.txt +++ b/versions.txt @@ -1,802 +1,802 @@ # Format: # module:released-version:current-version -google-cloud-java:1.39.0:1.40.0-SNAPSHOT -google-cloud-accessapproval:2.46.0:2.47.0-SNAPSHOT -grpc-google-cloud-accessapproval-v1:2.46.0:2.47.0-SNAPSHOT -proto-google-cloud-accessapproval-v1:2.46.0:2.47.0-SNAPSHOT -google-identity-accesscontextmanager:1.46.0:1.47.0-SNAPSHOT -grpc-google-identity-accesscontextmanager-v1:1.46.0:1.47.0-SNAPSHOT -proto-google-identity-accesscontextmanager-v1:1.46.0:1.47.0-SNAPSHOT -proto-google-identity-accesscontextmanager-type:1.46.0:1.47.0-SNAPSHOT -google-cloud-aiplatform:3.46.0:3.47.0-SNAPSHOT -grpc-google-cloud-aiplatform-v1:3.46.0:3.47.0-SNAPSHOT -grpc-google-cloud-aiplatform-v1beta1:0.62.0:0.63.0-SNAPSHOT -proto-google-cloud-aiplatform-v1:3.46.0:3.47.0-SNAPSHOT -proto-google-cloud-aiplatform-v1beta1:0.62.0:0.63.0-SNAPSHOT -google-analytics-admin:0.55.0:0.56.0-SNAPSHOT -grpc-google-analytics-admin-v1alpha:0.55.0:0.56.0-SNAPSHOT -proto-google-analytics-admin-v1alpha:0.55.0:0.56.0-SNAPSHOT -proto-google-analytics-admin-v1beta:0.55.0:0.56.0-SNAPSHOT -grpc-google-analytics-admin-v1beta:0.55.0:0.56.0-SNAPSHOT -google-analytics-data:0.56.0:0.57.0-SNAPSHOT -grpc-google-analytics-data-v1beta:0.56.0:0.57.0-SNAPSHOT -proto-google-analytics-data-v1beta:0.56.0:0.57.0-SNAPSHOT -proto-google-analytics-data-v1alpha:0.56.0:0.57.0-SNAPSHOT -grpc-google-analytics-data-v1alpha:0.56.0:0.57.0-SNAPSHOT -google-cloud-analyticshub:0.42.0:0.43.0-SNAPSHOT -proto-google-cloud-analyticshub-v1:0.42.0:0.43.0-SNAPSHOT -grpc-google-cloud-analyticshub-v1:0.42.0:0.43.0-SNAPSHOT -google-shopping-merchant-promotions:0.1.0:0.2.0-SNAPSHOT -proto-google-shopping-merchant-promotions-v1beta:0.1.0:0.2.0-SNAPSHOT -grpc-google-shopping-merchant-promotions-v1beta:0.1.0:0.2.0-SNAPSHOT -google-cloud-api-gateway:2.45.0:2.46.0-SNAPSHOT -grpc-google-cloud-api-gateway-v1:2.45.0:2.46.0-SNAPSHOT -proto-google-cloud-api-gateway-v1:2.45.0:2.46.0-SNAPSHOT -google-cloud-apigee-connect:2.45.0:2.46.0-SNAPSHOT -grpc-google-cloud-apigee-connect-v1:2.45.0:2.46.0-SNAPSHOT -proto-google-cloud-apigee-connect-v1:2.45.0:2.46.0-SNAPSHOT -google-cloud-apigee-registry:0.45.0:0.46.0-SNAPSHOT -proto-google-cloud-apigee-registry-v1:0.45.0:0.46.0-SNAPSHOT -grpc-google-cloud-apigee-registry-v1:0.45.0:0.46.0-SNAPSHOT -google-cloud-apikeys:0.43.0:0.44.0-SNAPSHOT -proto-google-cloud-apikeys-v2:0.43.0:0.44.0-SNAPSHOT -grpc-google-cloud-apikeys-v2:0.43.0:0.44.0-SNAPSHOT -google-cloud-appengine-admin:2.45.0:2.46.0-SNAPSHOT -grpc-google-cloud-appengine-admin-v1:2.45.0:2.46.0-SNAPSHOT -proto-google-cloud-appengine-admin-v1:2.45.0:2.46.0-SNAPSHOT -google-area120-tables:0.49.0:0.50.0-SNAPSHOT -grpc-google-area120-tables-v1alpha1:0.49.0:0.50.0-SNAPSHOT -proto-google-area120-tables-v1alpha1:0.49.0:0.50.0-SNAPSHOT -google-cloud-artifact-registry:1.44.0:1.45.0-SNAPSHOT -grpc-google-cloud-artifact-registry-v1beta2:0.50.0:0.51.0-SNAPSHOT -grpc-google-cloud-artifact-registry-v1:1.44.0:1.45.0-SNAPSHOT -proto-google-cloud-artifact-registry-v1beta2:0.50.0:0.51.0-SNAPSHOT -proto-google-cloud-artifact-registry-v1:1.44.0:1.45.0-SNAPSHOT -google-cloud-asset:3.49.0:3.50.0-SNAPSHOT -grpc-google-cloud-asset-v1:3.49.0:3.50.0-SNAPSHOT -grpc-google-cloud-asset-v1p1beta1:0.149.0:0.150.0-SNAPSHOT -grpc-google-cloud-asset-v1p2beta1:0.149.0:0.150.0-SNAPSHOT -grpc-google-cloud-asset-v1p5beta1:0.149.0:0.150.0-SNAPSHOT -grpc-google-cloud-asset-v1p7beta1:3.49.0:3.50.0-SNAPSHOT -proto-google-cloud-asset-v1:3.49.0:3.50.0-SNAPSHOT -proto-google-cloud-asset-v1p1beta1:0.149.0:0.150.0-SNAPSHOT -proto-google-cloud-asset-v1p2beta1:0.149.0:0.150.0-SNAPSHOT -proto-google-cloud-asset-v1p5beta1:0.149.0:0.150.0-SNAPSHOT -proto-google-cloud-asset-v1p7beta1:3.49.0:3.50.0-SNAPSHOT -google-cloud-assured-workloads:2.45.0:2.46.0-SNAPSHOT -grpc-google-cloud-assured-workloads-v1beta1:0.57.0:0.58.0-SNAPSHOT -grpc-google-cloud-assured-workloads-v1:2.45.0:2.46.0-SNAPSHOT -proto-google-cloud-assured-workloads-v1beta1:0.57.0:0.58.0-SNAPSHOT -proto-google-cloud-assured-workloads-v1:2.45.0:2.46.0-SNAPSHOT -google-cloud-automl:2.45.0:2.46.0-SNAPSHOT -grpc-google-cloud-automl-v1beta1:0.132.0:0.133.0-SNAPSHOT -grpc-google-cloud-automl-v1:2.45.0:2.46.0-SNAPSHOT -proto-google-cloud-automl-v1beta1:0.132.0:0.133.0-SNAPSHOT -proto-google-cloud-automl-v1:2.45.0:2.46.0-SNAPSHOT -google-cloud-bare-metal-solution:0.45.0:0.46.0-SNAPSHOT -proto-google-cloud-bare-metal-solution-v2:0.45.0:0.46.0-SNAPSHOT -grpc-google-cloud-bare-metal-solution-v2:0.45.0:0.46.0-SNAPSHOT -google-cloud-batch:0.45.0:0.46.0-SNAPSHOT -proto-google-cloud-batch-v1:0.45.0:0.46.0-SNAPSHOT -grpc-google-cloud-batch-v1:0.45.0:0.46.0-SNAPSHOT -proto-google-cloud-batch-v1alpha:0.45.0:0.46.0-SNAPSHOT -grpc-google-cloud-batch-v1alpha:0.45.0:0.46.0-SNAPSHOT -google-cloud-beyondcorp-appconnections:0.43.0:0.44.0-SNAPSHOT -proto-google-cloud-beyondcorp-appconnections-v1:0.43.0:0.44.0-SNAPSHOT -grpc-google-cloud-beyondcorp-appconnections-v1:0.43.0:0.44.0-SNAPSHOT -google-cloud-beyondcorp-appconnectors:0.43.0:0.44.0-SNAPSHOT -proto-google-cloud-beyondcorp-appconnectors-v1:0.43.0:0.44.0-SNAPSHOT -grpc-google-cloud-beyondcorp-appconnectors-v1:0.43.0:0.44.0-SNAPSHOT -google-cloud-beyondcorp-appgateways:0.43.0:0.44.0-SNAPSHOT -proto-google-cloud-beyondcorp-appgateways-v1:0.43.0:0.44.0-SNAPSHOT -grpc-google-cloud-beyondcorp-appgateways-v1:0.43.0:0.44.0-SNAPSHOT -google-cloud-beyondcorp-clientconnectorservices:0.43.0:0.44.0-SNAPSHOT -proto-google-cloud-beyondcorp-clientconnectorservices-v1:0.43.0:0.44.0-SNAPSHOT -grpc-google-cloud-beyondcorp-clientconnectorservices-v1:0.43.0:0.44.0-SNAPSHOT -google-cloud-beyondcorp-clientgateways:0.43.0:0.44.0-SNAPSHOT -proto-google-cloud-beyondcorp-clientgateways-v1:0.43.0:0.44.0-SNAPSHOT -grpc-google-cloud-beyondcorp-clientgateways-v1:0.43.0:0.44.0-SNAPSHOT -google-cloud-bigqueryconnection:2.47.0:2.48.0-SNAPSHOT -grpc-google-cloud-bigqueryconnection-v1:2.47.0:2.48.0-SNAPSHOT -grpc-google-cloud-bigqueryconnection-v1beta1:0.55.0:0.56.0-SNAPSHOT -proto-google-cloud-bigqueryconnection-v1:2.47.0:2.48.0-SNAPSHOT -proto-google-cloud-bigqueryconnection-v1beta1:0.55.0:0.56.0-SNAPSHOT -google-cloud-bigquery-data-exchange:2.40.0:2.41.0-SNAPSHOT -proto-google-cloud-bigquery-data-exchange-v1beta1:2.40.0:2.41.0-SNAPSHOT -grpc-google-cloud-bigquery-data-exchange-v1beta1:2.40.0:2.41.0-SNAPSHOT -google-cloud-bigquerydatapolicy:0.42.0:0.43.0-SNAPSHOT -proto-google-cloud-bigquerydatapolicy-v1beta1:0.42.0:0.43.0-SNAPSHOT -grpc-google-cloud-bigquerydatapolicy-v1beta1:0.42.0:0.43.0-SNAPSHOT -google-cloud-bigquerydatatransfer:2.45.0:2.46.0-SNAPSHOT -grpc-google-cloud-bigquerydatatransfer-v1:2.45.0:2.46.0-SNAPSHOT -proto-google-cloud-bigquerydatatransfer-v1:2.45.0:2.46.0-SNAPSHOT -google-cloud-bigquerymigration:0.48.0:0.49.0-SNAPSHOT -grpc-google-cloud-bigquerymigration-v2alpha:0.48.0:0.49.0-SNAPSHOT -proto-google-cloud-bigquerymigration-v2alpha:0.48.0:0.49.0-SNAPSHOT -proto-google-cloud-bigquerymigration-v2:0.48.0:0.49.0-SNAPSHOT -grpc-google-cloud-bigquerymigration-v2:0.48.0:0.49.0-SNAPSHOT -google-cloud-bigqueryreservation:2.46.0:2.47.0-SNAPSHOT -grpc-google-cloud-bigqueryreservation-v1:2.46.0:2.47.0-SNAPSHOT -proto-google-cloud-bigqueryreservation-v1:2.46.0:2.47.0-SNAPSHOT -google-cloud-billingbudgets:2.45.0:2.46.0-SNAPSHOT -grpc-google-cloud-billingbudgets-v1beta1:0.54.0:0.55.0-SNAPSHOT -grpc-google-cloud-billingbudgets-v1:2.45.0:2.46.0-SNAPSHOT -proto-google-cloud-billingbudgets-v1beta1:0.54.0:0.55.0-SNAPSHOT -proto-google-cloud-billingbudgets-v1:2.45.0:2.46.0-SNAPSHOT -google-cloud-billing:2.45.0:2.46.0-SNAPSHOT -grpc-google-cloud-billing-v1:2.45.0:2.46.0-SNAPSHOT -proto-google-cloud-billing-v1:2.45.0:2.46.0-SNAPSHOT -google-cloud-binary-authorization:1.44.0:1.45.0-SNAPSHOT -grpc-google-cloud-binary-authorization-v1beta1:0.49.0:0.50.0-SNAPSHOT -grpc-google-cloud-binary-authorization-v1:1.44.0:1.45.0-SNAPSHOT -proto-google-cloud-binary-authorization-v1beta1:0.49.0:0.50.0-SNAPSHOT -proto-google-cloud-binary-authorization-v1:1.44.0:1.45.0-SNAPSHOT -google-cloud-certificate-manager:0.48.0:0.49.0-SNAPSHOT -proto-google-cloud-certificate-manager-v1:0.48.0:0.49.0-SNAPSHOT -grpc-google-cloud-certificate-manager-v1:0.48.0:0.49.0-SNAPSHOT -google-cloud-channel:3.49.0:3.50.0-SNAPSHOT -grpc-google-cloud-channel-v1:3.49.0:3.50.0-SNAPSHOT -proto-google-cloud-channel-v1:3.49.0:3.50.0-SNAPSHOT -google-cloud-build:3.47.0:3.48.0-SNAPSHOT -grpc-google-cloud-build-v1:3.47.0:3.48.0-SNAPSHOT -proto-google-cloud-build-v1:3.47.0:3.48.0-SNAPSHOT -google-cloud-cloudcommerceconsumerprocurement:0.43.0:0.44.0-SNAPSHOT -proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1:0.43.0:0.44.0-SNAPSHOT -grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1:0.43.0:0.44.0-SNAPSHOT -google-cloud-compute:1.55.0:1.56.0-SNAPSHOT -proto-google-cloud-compute-v1:1.55.0:1.56.0-SNAPSHOT -google-cloud-contact-center-insights:2.45.0:2.46.0-SNAPSHOT -grpc-google-cloud-contact-center-insights-v1:2.45.0:2.46.0-SNAPSHOT -proto-google-cloud-contact-center-insights-v1:2.45.0:2.46.0-SNAPSHOT -proto-google-cloud-containeranalysis-v1:2.46.0:2.47.0-SNAPSHOT -proto-google-cloud-containeranalysis-v1beta1:0.136.0:0.137.0-SNAPSHOT -grpc-google-cloud-containeranalysis-v1beta1:0.136.0:0.137.0-SNAPSHOT -grpc-google-cloud-containeranalysis-v1:2.46.0:2.47.0-SNAPSHOT -google-cloud-containeranalysis:2.46.0:2.47.0-SNAPSHOT -google-cloud-container:2.48.0:2.49.0-SNAPSHOT -grpc-google-cloud-container-v1:2.48.0:2.49.0-SNAPSHOT -grpc-google-cloud-container-v1beta1:2.48.0:2.49.0-SNAPSHOT -proto-google-cloud-container-v1:2.48.0:2.49.0-SNAPSHOT -proto-google-cloud-container-v1beta1:2.48.0:2.49.0-SNAPSHOT -google-cloud-contentwarehouse:0.41.0:0.42.0-SNAPSHOT -proto-google-cloud-contentwarehouse-v1:0.41.0:0.42.0-SNAPSHOT -grpc-google-cloud-contentwarehouse-v1:0.41.0:0.42.0-SNAPSHOT -google-cloud-datacatalog:1.51.0:1.52.0-SNAPSHOT -grpc-google-cloud-datacatalog-v1:1.51.0:1.52.0-SNAPSHOT -grpc-google-cloud-datacatalog-v1beta1:0.88.0:0.89.0-SNAPSHOT -proto-google-cloud-datacatalog-v1:1.51.0:1.52.0-SNAPSHOT -proto-google-cloud-datacatalog-v1beta1:0.88.0:0.89.0-SNAPSHOT -google-cloud-dataflow:0.49.0:0.50.0-SNAPSHOT -grpc-google-cloud-dataflow-v1beta3:0.49.0:0.50.0-SNAPSHOT -proto-google-cloud-dataflow-v1beta3:0.49.0:0.50.0-SNAPSHOT -google-cloud-dataform:0.44.0:0.45.0-SNAPSHOT -proto-google-cloud-dataform-v1alpha2:0.44.0:0.45.0-SNAPSHOT -grpc-google-cloud-dataform-v1alpha2:0.44.0:0.45.0-SNAPSHOT -proto-google-cloud-dataform-v1beta1:0.44.0:0.45.0-SNAPSHOT -grpc-google-cloud-dataform-v1beta1:0.44.0:0.45.0-SNAPSHOT -google-cloud-data-fusion:1.45.0:1.46.0-SNAPSHOT -grpc-google-cloud-data-fusion-v1beta1:0.49.0:0.50.0-SNAPSHOT -grpc-google-cloud-data-fusion-v1:1.45.0:1.46.0-SNAPSHOT -proto-google-cloud-data-fusion-v1beta1:0.49.0:0.50.0-SNAPSHOT -proto-google-cloud-data-fusion-v1:1.45.0:1.46.0-SNAPSHOT -google-cloud-datalabeling:0.165.0:0.166.0-SNAPSHOT -grpc-google-cloud-datalabeling-v1beta1:0.130.0:0.131.0-SNAPSHOT -proto-google-cloud-datalabeling-v1beta1:0.130.0:0.131.0-SNAPSHOT -google-cloud-dataplex:1.43.0:1.44.0-SNAPSHOT -proto-google-cloud-dataplex-v1:1.43.0:1.44.0-SNAPSHOT -grpc-google-cloud-dataplex-v1:1.43.0:1.44.0-SNAPSHOT -google-cloud-dataproc-metastore:2.46.0:2.47.0-SNAPSHOT -grpc-google-cloud-dataproc-metastore-v1beta:0.50.0:0.51.0-SNAPSHOT -grpc-google-cloud-dataproc-metastore-v1alpha:0.50.0:0.51.0-SNAPSHOT -grpc-google-cloud-dataproc-metastore-v1:2.46.0:2.47.0-SNAPSHOT -proto-google-cloud-dataproc-metastore-v1beta:0.50.0:0.51.0-SNAPSHOT -proto-google-cloud-dataproc-metastore-v1alpha:0.50.0:0.51.0-SNAPSHOT -proto-google-cloud-dataproc-metastore-v1:2.46.0:2.47.0-SNAPSHOT -google-cloud-dataproc:4.42.0:4.43.0-SNAPSHOT -grpc-google-cloud-dataproc-v1:4.42.0:4.43.0-SNAPSHOT -proto-google-cloud-dataproc-v1:4.42.0:4.43.0-SNAPSHOT -google-cloud-datastream:1.44.0:1.45.0-SNAPSHOT -grpc-google-cloud-datastream-v1alpha1:0.49.0:0.50.0-SNAPSHOT -proto-google-cloud-datastream-v1alpha1:0.49.0:0.50.0-SNAPSHOT -proto-google-cloud-datastream-v1:1.44.0:1.45.0-SNAPSHOT -grpc-google-cloud-datastream-v1:1.44.0:1.45.0-SNAPSHOT -google-cloud-debugger-client:1.45.0:1.46.0-SNAPSHOT -grpc-google-cloud-debugger-client-v2:1.45.0:1.46.0-SNAPSHOT -proto-google-cloud-debugger-client-v2:1.45.0:1.46.0-SNAPSHOT -proto-google-devtools-source-protos:1.45.0:1.46.0-SNAPSHOT -google-cloud-deploy:1.43.0:1.44.0-SNAPSHOT -grpc-google-cloud-deploy-v1:1.43.0:1.44.0-SNAPSHOT -proto-google-cloud-deploy-v1:1.43.0:1.44.0-SNAPSHOT -google-cloud-dialogflow-cx:0.56.0:0.57.0-SNAPSHOT -grpc-google-cloud-dialogflow-cx-v3beta1:0.56.0:0.57.0-SNAPSHOT -grpc-google-cloud-dialogflow-cx-v3:0.56.0:0.57.0-SNAPSHOT -proto-google-cloud-dialogflow-cx-v3beta1:0.56.0:0.57.0-SNAPSHOT -proto-google-cloud-dialogflow-cx-v3:0.56.0:0.57.0-SNAPSHOT -google-cloud-dialogflow:4.51.0:4.52.0-SNAPSHOT -grpc-google-cloud-dialogflow-v2beta1:0.149.0:0.150.0-SNAPSHOT -grpc-google-cloud-dialogflow-v2:4.51.0:4.52.0-SNAPSHOT -proto-google-cloud-dialogflow-v2:4.51.0:4.52.0-SNAPSHOT -proto-google-cloud-dialogflow-v2beta1:0.149.0:0.150.0-SNAPSHOT -google-cloud-discoveryengine:0.41.0:0.42.0-SNAPSHOT -proto-google-cloud-discoveryengine-v1beta:0.41.0:0.42.0-SNAPSHOT -grpc-google-cloud-discoveryengine-v1beta:0.41.0:0.42.0-SNAPSHOT -google-cloud-distributedcloudedge:0.42.0:0.43.0-SNAPSHOT -proto-google-cloud-distributedcloudedge-v1:0.42.0:0.43.0-SNAPSHOT -grpc-google-cloud-distributedcloudedge-v1:0.42.0:0.43.0-SNAPSHOT -google-cloud-dlp:3.49.0:3.50.0-SNAPSHOT -grpc-google-cloud-dlp-v2:3.49.0:3.50.0-SNAPSHOT -proto-google-cloud-dlp-v2:3.49.0:3.50.0-SNAPSHOT -google-cloud-dms:2.44.0:2.45.0-SNAPSHOT -grpc-google-cloud-dms-v1:2.44.0:2.45.0-SNAPSHOT -proto-google-cloud-dms-v1:2.44.0:2.45.0-SNAPSHOT -google-cloud-document-ai:2.49.0:2.50.0-SNAPSHOT -grpc-google-cloud-document-ai-v1beta1:0.61.0:0.62.0-SNAPSHOT -grpc-google-cloud-document-ai-v1beta2:0.61.0:0.62.0-SNAPSHOT -grpc-google-cloud-document-ai-v1beta3:0.61.0:0.62.0-SNAPSHOT -grpc-google-cloud-document-ai-v1:2.49.0:2.50.0-SNAPSHOT -proto-google-cloud-document-ai-v1beta1:0.61.0:0.62.0-SNAPSHOT -proto-google-cloud-document-ai-v1beta2:0.61.0:0.62.0-SNAPSHOT -proto-google-cloud-document-ai-v1beta3:0.61.0:0.62.0-SNAPSHOT -proto-google-cloud-document-ai-v1:2.49.0:2.50.0-SNAPSHOT -google-cloud-domains:1.42.0:1.43.0-SNAPSHOT -grpc-google-cloud-domains-v1beta1:0.50.0:0.51.0-SNAPSHOT -grpc-google-cloud-domains-v1alpha2:0.50.0:0.51.0-SNAPSHOT -grpc-google-cloud-domains-v1:1.42.0:1.43.0-SNAPSHOT -proto-google-cloud-domains-v1beta1:0.50.0:0.51.0-SNAPSHOT -proto-google-cloud-domains-v1alpha2:0.50.0:0.51.0-SNAPSHOT -proto-google-cloud-domains-v1:1.42.0:1.43.0-SNAPSHOT -google-cloud-enterpriseknowledgegraph:0.41.0:0.42.0-SNAPSHOT -proto-google-cloud-enterpriseknowledgegraph-v1:0.41.0:0.42.0-SNAPSHOT -grpc-google-cloud-enterpriseknowledgegraph-v1:0.41.0:0.42.0-SNAPSHOT -google-cloud-errorreporting:0.166.0-beta:0.167.0-beta-SNAPSHOT -grpc-google-cloud-error-reporting-v1beta1:0.132.0:0.133.0-SNAPSHOT -proto-google-cloud-error-reporting-v1beta1:0.132.0:0.133.0-SNAPSHOT -google-cloud-essential-contacts:2.45.0:2.46.0-SNAPSHOT -grpc-google-cloud-essential-contacts-v1:2.45.0:2.46.0-SNAPSHOT -proto-google-cloud-essential-contacts-v1:2.45.0:2.46.0-SNAPSHOT -google-cloud-eventarc:1.45.0:1.46.0-SNAPSHOT -grpc-google-cloud-eventarc-v1:1.45.0:1.46.0-SNAPSHOT -proto-google-cloud-eventarc-v1:1.45.0:1.46.0-SNAPSHOT -google-cloud-eventarc-publishing:0.45.0:0.46.0-SNAPSHOT -proto-google-cloud-eventarc-publishing-v1:0.45.0:0.46.0-SNAPSHOT -grpc-google-cloud-eventarc-publishing-v1:0.45.0:0.46.0-SNAPSHOT -google-cloud-filestore:1.46.0:1.47.0-SNAPSHOT -grpc-google-cloud-filestore-v1beta1:0.48.0:0.49.0-SNAPSHOT -grpc-google-cloud-filestore-v1:1.46.0:1.47.0-SNAPSHOT -proto-google-cloud-filestore-v1:1.46.0:1.47.0-SNAPSHOT -proto-google-cloud-filestore-v1beta1:0.48.0:0.49.0-SNAPSHOT -google-cloud-functions:2.47.0:2.48.0-SNAPSHOT -grpc-google-cloud-functions-v1:2.47.0:2.48.0-SNAPSHOT -proto-google-cloud-functions-v1:2.47.0:2.48.0-SNAPSHOT -proto-google-cloud-functions-v2beta:2.47.0:2.48.0-SNAPSHOT -proto-google-cloud-functions-v2alpha:2.47.0:2.48.0-SNAPSHOT -grpc-google-cloud-functions-v2beta:2.47.0:2.48.0-SNAPSHOT -grpc-google-cloud-functions-v2alpha:2.47.0:2.48.0-SNAPSHOT -proto-google-cloud-functions-v2:2.47.0:2.48.0-SNAPSHOT -grpc-google-cloud-functions-v2:2.47.0:2.48.0-SNAPSHOT -google-cloud-game-servers:2.45.0:2.46.0-SNAPSHOT -grpc-google-cloud-game-servers-v1:2.45.0:2.46.0-SNAPSHOT -grpc-google-cloud-game-servers-v1beta:0.70.0:0.71.0-SNAPSHOT -proto-google-cloud-game-servers-v1:2.45.0:2.46.0-SNAPSHOT -proto-google-cloud-game-servers-v1beta:0.70.0:0.71.0-SNAPSHOT -google-cloud-gke-backup:0.44.0:0.45.0-SNAPSHOT -proto-google-cloud-gke-backup-v1:0.44.0:0.45.0-SNAPSHOT -grpc-google-cloud-gke-backup-v1:0.44.0:0.45.0-SNAPSHOT -google-cloud-gke-connect-gateway:0.46.0:0.47.0-SNAPSHOT -grpc-google-cloud-gke-connect-gateway-v1beta1:0.46.0:0.47.0-SNAPSHOT -proto-google-cloud-gke-connect-gateway-v1beta1:0.46.0:0.47.0-SNAPSHOT -google-cloud-gkehub:1.45.0:1.46.0-SNAPSHOT -grpc-google-cloud-gkehub-v1beta1:0.51.0:0.52.0-SNAPSHOT -grpc-google-cloud-gkehub-v1:1.45.0:1.46.0-SNAPSHOT -grpc-google-cloud-gkehub-v1alpha:0.51.0:0.52.0-SNAPSHOT -grpc-google-cloud-gkehub-v1beta:0.51.0:0.52.0-SNAPSHOT -proto-google-cloud-gkehub-v1beta1:0.51.0:0.52.0-SNAPSHOT -proto-google-cloud-gkehub-v1:1.45.0:1.46.0-SNAPSHOT -proto-google-cloud-gkehub-v1alpha:0.51.0:0.52.0-SNAPSHOT -proto-google-cloud-gkehub-v1beta:0.51.0:0.52.0-SNAPSHOT -google-cloud-gke-multi-cloud:0.44.0:0.45.0-SNAPSHOT -proto-google-cloud-gke-multi-cloud-v1:0.44.0:0.45.0-SNAPSHOT -grpc-google-cloud-gke-multi-cloud-v1:0.44.0:0.45.0-SNAPSHOT -grafeas:2.46.0:2.47.0-SNAPSHOT -google-cloud-gsuite-addons:2.45.0:2.46.0-SNAPSHOT -grpc-google-cloud-gsuite-addons-v1:2.45.0:2.46.0-SNAPSHOT -proto-google-cloud-gsuite-addons-v1:2.45.0:2.46.0-SNAPSHOT -proto-google-apps-script-type-protos:2.45.0:2.46.0-SNAPSHOT -google-iam-admin:3.40.0:3.41.0-SNAPSHOT -grpc-google-iam-admin-v1:3.40.0:3.41.0-SNAPSHOT -proto-google-iam-admin-v1:3.40.0:3.41.0-SNAPSHOT -google-cloud-iamcredentials:2.45.0:2.46.0-SNAPSHOT -grpc-google-cloud-iamcredentials-v1:2.45.0:2.46.0-SNAPSHOT -proto-google-cloud-iamcredentials-v1:2.45.0:2.46.0-SNAPSHOT -google-cloud-ids:1.44.0:1.45.0-SNAPSHOT -grpc-google-cloud-ids-v1:1.44.0:1.45.0-SNAPSHOT -proto-google-cloud-ids-v1:1.44.0:1.45.0-SNAPSHOT -google-cloud-iot:2.45.0:2.46.0-SNAPSHOT -grpc-google-cloud-iot-v1:2.45.0:2.46.0-SNAPSHOT -proto-google-cloud-iot-v1:2.45.0:2.46.0-SNAPSHOT -google-cloud-kms:2.48.0:2.49.0-SNAPSHOT -grpc-google-cloud-kms-v1:0.139.0:0.140.0-SNAPSHOT -proto-google-cloud-kms-v1:0.139.0:0.140.0-SNAPSHOT -google-cloud-language:2.46.0:2.47.0-SNAPSHOT -grpc-google-cloud-language-v1:2.46.0:2.47.0-SNAPSHOT -grpc-google-cloud-language-v1beta2:0.133.0:0.134.0-SNAPSHOT -proto-google-cloud-language-v1:2.46.0:2.47.0-SNAPSHOT -proto-google-cloud-language-v1beta2:0.133.0:0.134.0-SNAPSHOT -google-cloud-life-sciences:0.47.0:0.48.0-SNAPSHOT -grpc-google-cloud-life-sciences-v2beta:0.47.0:0.48.0-SNAPSHOT -proto-google-cloud-life-sciences-v2beta:0.47.0:0.48.0-SNAPSHOT -google-cloud-managed-identities:1.43.0:1.44.0-SNAPSHOT -grpc-google-cloud-managed-identities-v1:1.43.0:1.44.0-SNAPSHOT -proto-google-cloud-managed-identities-v1:1.43.0:1.44.0-SNAPSHOT -google-cloud-mediatranslation:0.51.0:0.52.0-SNAPSHOT -grpc-google-cloud-mediatranslation-v1beta1:0.51.0:0.52.0-SNAPSHOT -proto-google-cloud-mediatranslation-v1beta1:0.51.0:0.52.0-SNAPSHOT -google-cloud-memcache:2.45.0:2.46.0-SNAPSHOT -grpc-google-cloud-memcache-v1beta2:0.52.0:0.53.0-SNAPSHOT -grpc-google-cloud-memcache-v1:2.45.0:2.46.0-SNAPSHOT -proto-google-cloud-memcache-v1beta2:0.52.0:0.53.0-SNAPSHOT -proto-google-cloud-memcache-v1:2.45.0:2.46.0-SNAPSHOT -google-cloud-monitoring-dashboard:2.47.0:2.48.0-SNAPSHOT -grpc-google-cloud-monitoring-dashboard-v1:2.47.0:2.48.0-SNAPSHOT -proto-google-cloud-monitoring-dashboard-v1:2.47.0:2.48.0-SNAPSHOT -google-cloud-monitoring:3.46.0:3.47.0-SNAPSHOT -grpc-google-cloud-monitoring-v3:3.46.0:3.47.0-SNAPSHOT -proto-google-cloud-monitoring-v3:3.46.0:3.47.0-SNAPSHOT -google-cloud-networkconnectivity:1.44.0:1.45.0-SNAPSHOT -grpc-google-cloud-networkconnectivity-v1alpha1:0.50.0:0.51.0-SNAPSHOT -grpc-google-cloud-networkconnectivity-v1:1.44.0:1.45.0-SNAPSHOT -proto-google-cloud-networkconnectivity-v1alpha1:0.50.0:0.51.0-SNAPSHOT -proto-google-cloud-networkconnectivity-v1:1.44.0:1.45.0-SNAPSHOT -google-cloud-network-management:1.46.0:1.47.0-SNAPSHOT -grpc-google-cloud-network-management-v1beta1:0.48.0:0.49.0-SNAPSHOT -grpc-google-cloud-network-management-v1:1.46.0:1.47.0-SNAPSHOT -proto-google-cloud-network-management-v1beta1:0.48.0:0.49.0-SNAPSHOT -proto-google-cloud-network-management-v1:1.46.0:1.47.0-SNAPSHOT -google-cloud-network-security:0.48.0:0.49.0-SNAPSHOT -grpc-google-cloud-network-security-v1beta1:0.48.0:0.49.0-SNAPSHOT -proto-google-cloud-network-security-v1beta1:0.48.0:0.49.0-SNAPSHOT -proto-google-cloud-network-security-v1:0.48.0:0.49.0-SNAPSHOT -grpc-google-cloud-network-security-v1:0.48.0:0.49.0-SNAPSHOT -google-cloud-notebooks:1.43.0:1.44.0-SNAPSHOT -grpc-google-cloud-notebooks-v1beta1:0.50.0:0.51.0-SNAPSHOT -grpc-google-cloud-notebooks-v1:1.43.0:1.44.0-SNAPSHOT -proto-google-cloud-notebooks-v1beta1:0.50.0:0.51.0-SNAPSHOT -proto-google-cloud-notebooks-v1:1.43.0:1.44.0-SNAPSHOT -google-cloud-notification:0.163.0-beta:0.164.0-beta-SNAPSHOT -google-cloud-optimization:1.43.0:1.44.0-SNAPSHOT -proto-google-cloud-optimization-v1:1.43.0:1.44.0-SNAPSHOT -grpc-google-cloud-optimization-v1:1.43.0:1.44.0-SNAPSHOT -google-cloud-orchestration-airflow:1.45.0:1.46.0-SNAPSHOT -grpc-google-cloud-orchestration-airflow-v1:1.45.0:1.46.0-SNAPSHOT -grpc-google-cloud-orchestration-airflow-v1beta1:0.48.0:0.49.0-SNAPSHOT -proto-google-cloud-orchestration-airflow-v1:1.45.0:1.46.0-SNAPSHOT -proto-google-cloud-orchestration-airflow-v1beta1:0.48.0:0.49.0-SNAPSHOT -google-cloud-orgpolicy:2.45.0:2.46.0-SNAPSHOT -grpc-google-cloud-orgpolicy-v2:2.45.0:2.46.0-SNAPSHOT -proto-google-cloud-orgpolicy-v1:2.45.0:2.46.0-SNAPSHOT -proto-google-cloud-orgpolicy-v2:2.45.0:2.46.0-SNAPSHOT -google-cloud-os-config:2.47.0:2.48.0-SNAPSHOT -grpc-google-cloud-os-config-v1:2.47.0:2.48.0-SNAPSHOT -grpc-google-cloud-os-config-v1beta:2.47.0:2.48.0-SNAPSHOT -grpc-google-cloud-os-config-v1alpha:2.47.0:2.48.0-SNAPSHOT -proto-google-cloud-os-config-v1:2.47.0:2.48.0-SNAPSHOT -proto-google-cloud-os-config-v1alpha:2.47.0:2.48.0-SNAPSHOT -proto-google-cloud-os-config-v1beta:2.47.0:2.48.0-SNAPSHOT -google-cloud-os-login:2.44.0:2.45.0-SNAPSHOT -grpc-google-cloud-os-login-v1:2.44.0:2.45.0-SNAPSHOT -proto-google-cloud-os-login-v1:2.44.0:2.45.0-SNAPSHOT -google-cloud-phishingprotection:0.76.0:0.77.0-SNAPSHOT -grpc-google-cloud-phishingprotection-v1beta1:0.76.0:0.77.0-SNAPSHOT -proto-google-cloud-phishingprotection-v1beta1:0.76.0:0.77.0-SNAPSHOT -google-cloud-policy-troubleshooter:1.44.0:1.45.0-SNAPSHOT -grpc-google-cloud-policy-troubleshooter-v1:1.44.0:1.45.0-SNAPSHOT -proto-google-cloud-policy-troubleshooter-v1:1.44.0:1.45.0-SNAPSHOT -google-cloud-private-catalog:0.47.0:0.48.0-SNAPSHOT -grpc-google-cloud-private-catalog-v1beta1:0.47.0:0.48.0-SNAPSHOT -proto-google-cloud-private-catalog-v1beta1:0.47.0:0.48.0-SNAPSHOT -google-cloud-profiler:2.45.0:2.46.0-SNAPSHOT -grpc-google-cloud-profiler-v2:2.45.0:2.46.0-SNAPSHOT -proto-google-cloud-profiler-v2:2.45.0:2.46.0-SNAPSHOT -google-cloud-publicca:0.42.0:0.43.0-SNAPSHOT -proto-google-cloud-publicca-v1beta1:0.42.0:0.43.0-SNAPSHOT -grpc-google-cloud-publicca-v1beta1:0.42.0:0.43.0-SNAPSHOT -google-cloud-recaptchaenterprise:3.42.0:3.43.0-SNAPSHOT -grpc-google-cloud-recaptchaenterprise-v1:3.42.0:3.43.0-SNAPSHOT -grpc-google-cloud-recaptchaenterprise-v1beta1:0.84.0:0.85.0-SNAPSHOT -proto-google-cloud-recaptchaenterprise-v1:3.42.0:3.43.0-SNAPSHOT -proto-google-cloud-recaptchaenterprise-v1beta1:0.84.0:0.85.0-SNAPSHOT -google-cloud-recommendations-ai:0.52.0:0.53.0-SNAPSHOT -grpc-google-cloud-recommendations-ai-v1beta1:0.52.0:0.53.0-SNAPSHOT -proto-google-cloud-recommendations-ai-v1beta1:0.52.0:0.53.0-SNAPSHOT -google-cloud-recommender:2.47.0:2.48.0-SNAPSHOT -grpc-google-cloud-recommender-v1:2.47.0:2.48.0-SNAPSHOT -grpc-google-cloud-recommender-v1beta1:0.59.0:0.60.0-SNAPSHOT -proto-google-cloud-recommender-v1:2.47.0:2.48.0-SNAPSHOT -proto-google-cloud-recommender-v1beta1:0.59.0:0.60.0-SNAPSHOT -google-cloud-redis:2.48.0:2.49.0-SNAPSHOT -grpc-google-cloud-redis-v1beta1:0.136.0:0.137.0-SNAPSHOT -grpc-google-cloud-redis-v1:2.48.0:2.49.0-SNAPSHOT -proto-google-cloud-redis-v1:2.48.0:2.49.0-SNAPSHOT -proto-google-cloud-redis-v1beta1:0.136.0:0.137.0-SNAPSHOT -google-cloud-resourcemanager:1.47.0:1.48.0-SNAPSHOT -grpc-google-cloud-resourcemanager-v3:1.47.0:1.48.0-SNAPSHOT -proto-google-cloud-resourcemanager-v3:1.47.0:1.48.0-SNAPSHOT -google-cloud-resource-settings:1.45.0:1.46.0-SNAPSHOT -grpc-google-cloud-resource-settings-v1:1.45.0:1.46.0-SNAPSHOT -proto-google-cloud-resource-settings-v1:1.45.0:1.46.0-SNAPSHOT -google-cloud-retail:2.47.0:2.48.0-SNAPSHOT -grpc-google-cloud-retail-v2:2.47.0:2.48.0-SNAPSHOT -proto-google-cloud-retail-v2:2.47.0:2.48.0-SNAPSHOT -proto-google-cloud-retail-v2alpha:2.47.0:2.48.0-SNAPSHOT -proto-google-cloud-retail-v2beta:2.47.0:2.48.0-SNAPSHOT -grpc-google-cloud-retail-v2alpha:2.47.0:2.48.0-SNAPSHOT -grpc-google-cloud-retail-v2beta:2.47.0:2.48.0-SNAPSHOT -google-cloud-run:0.45.0:0.46.0-SNAPSHOT -proto-google-cloud-run-v2:0.45.0:0.46.0-SNAPSHOT -grpc-google-cloud-run-v2:0.45.0:0.46.0-SNAPSHOT -google-cloud-scheduler:2.45.0:2.46.0-SNAPSHOT -grpc-google-cloud-scheduler-v1beta1:0.130.0:0.131.0-SNAPSHOT -grpc-google-cloud-scheduler-v1:2.45.0:2.46.0-SNAPSHOT -proto-google-cloud-scheduler-v1beta1:0.130.0:0.131.0-SNAPSHOT -proto-google-cloud-scheduler-v1:2.45.0:2.46.0-SNAPSHOT -google-cloud-secretmanager:2.45.0:2.46.0-SNAPSHOT -grpc-google-cloud-secretmanager-v1:2.45.0:2.46.0-SNAPSHOT -proto-google-cloud-secretmanager-v1:2.45.0:2.46.0-SNAPSHOT -google-cloud-securitycenter:2.53.0:2.54.0-SNAPSHOT -grpc-google-cloud-securitycenter-v1:2.53.0:2.54.0-SNAPSHOT -grpc-google-cloud-securitycenter-v1beta1:0.148.0:0.149.0-SNAPSHOT -grpc-google-cloud-securitycenter-v1p1beta1:0.148.0:0.149.0-SNAPSHOT -proto-google-cloud-securitycenter-v1:2.53.0:2.54.0-SNAPSHOT -proto-google-cloud-securitycenter-v1beta1:0.148.0:0.149.0-SNAPSHOT -proto-google-cloud-securitycenter-v1p1beta1:0.148.0:0.149.0-SNAPSHOT -google-cloud-securitycenter-settings:0.48.0:0.49.0-SNAPSHOT -grpc-google-cloud-securitycenter-settings-v1beta1:0.48.0:0.49.0-SNAPSHOT -proto-google-cloud-securitycenter-settings-v1beta1:0.48.0:0.49.0-SNAPSHOT -google-cloud-security-private-ca:2.47.0:2.48.0-SNAPSHOT -grpc-google-cloud-security-private-ca-v1beta1:0.54.0:0.55.0-SNAPSHOT -grpc-google-cloud-security-private-ca-v1:2.47.0:2.48.0-SNAPSHOT -proto-google-cloud-security-private-ca-v1beta1:0.54.0:0.55.0-SNAPSHOT -proto-google-cloud-security-private-ca-v1:2.47.0:2.48.0-SNAPSHOT -google-cloud-service-control:1.45.0:1.46.0-SNAPSHOT -grpc-google-cloud-service-control-v1:1.45.0:1.46.0-SNAPSHOT -proto-google-cloud-service-control-v1:1.45.0:1.46.0-SNAPSHOT -proto-google-cloud-service-control-v2:1.45.0:1.46.0-SNAPSHOT -grpc-google-cloud-service-control-v2:1.45.0:1.46.0-SNAPSHOT -google-cloud-servicedirectory:2.46.0:2.47.0-SNAPSHOT -grpc-google-cloud-servicedirectory-v1beta1:0.54.0:0.55.0-SNAPSHOT -grpc-google-cloud-servicedirectory-v1:2.46.0:2.47.0-SNAPSHOT -proto-google-cloud-servicedirectory-v1beta1:0.54.0:0.55.0-SNAPSHOT -proto-google-cloud-servicedirectory-v1:2.46.0:2.47.0-SNAPSHOT -google-cloud-service-management:3.43.0:3.44.0-SNAPSHOT -grpc-google-cloud-service-management-v1:3.43.0:3.44.0-SNAPSHOT -proto-google-cloud-service-management-v1:3.43.0:3.44.0-SNAPSHOT -google-cloud-service-usage:2.45.0:2.46.0-SNAPSHOT -grpc-google-cloud-service-usage-v1beta1:0.49.0:0.50.0-SNAPSHOT -grpc-google-cloud-service-usage-v1:2.45.0:2.46.0-SNAPSHOT -proto-google-cloud-service-usage-v1:2.45.0:2.46.0-SNAPSHOT -proto-google-cloud-service-usage-v1beta1:0.49.0:0.50.0-SNAPSHOT -google-cloud-shell:2.44.0:2.45.0-SNAPSHOT -grpc-google-cloud-shell-v1:2.44.0:2.45.0-SNAPSHOT -proto-google-cloud-shell-v1:2.44.0:2.45.0-SNAPSHOT -google-cloud-speech:4.40.0:4.41.0-SNAPSHOT -grpc-google-cloud-speech-v1:4.40.0:4.41.0-SNAPSHOT -grpc-google-cloud-speech-v1beta1:2.40.0:2.41.0-SNAPSHOT -grpc-google-cloud-speech-v1p1beta1:2.40.0:2.41.0-SNAPSHOT -proto-google-cloud-speech-v1:4.40.0:4.41.0-SNAPSHOT -proto-google-cloud-speech-v1beta1:2.40.0:2.41.0-SNAPSHOT -proto-google-cloud-speech-v1p1beta1:2.40.0:2.41.0-SNAPSHOT -proto-google-cloud-speech-v2:4.40.0:4.41.0-SNAPSHOT -grpc-google-cloud-speech-v2:4.40.0:4.41.0-SNAPSHOT -google-cloud-storage-transfer:1.45.0:1.46.0-SNAPSHOT -grpc-google-cloud-storage-transfer-v1:1.45.0:1.46.0-SNAPSHOT -proto-google-cloud-storage-transfer-v1:1.45.0:1.46.0-SNAPSHOT -google-cloud-talent:2.46.0:2.47.0-SNAPSHOT -grpc-google-cloud-talent-v4:2.46.0:2.47.0-SNAPSHOT -grpc-google-cloud-talent-v4beta1:0.89.0:0.90.0-SNAPSHOT -proto-google-cloud-talent-v4:2.46.0:2.47.0-SNAPSHOT -proto-google-cloud-talent-v4beta1:0.89.0:0.90.0-SNAPSHOT -google-cloud-tasks:2.45.0:2.46.0-SNAPSHOT -grpc-google-cloud-tasks-v2beta3:0.135.0:0.136.0-SNAPSHOT -grpc-google-cloud-tasks-v2beta2:0.135.0:0.136.0-SNAPSHOT -grpc-google-cloud-tasks-v2:2.45.0:2.46.0-SNAPSHOT -proto-google-cloud-tasks-v2beta3:0.135.0:0.136.0-SNAPSHOT -proto-google-cloud-tasks-v2beta2:0.135.0:0.136.0-SNAPSHOT -proto-google-cloud-tasks-v2:2.45.0:2.46.0-SNAPSHOT -google-cloud-texttospeech:2.46.0:2.47.0-SNAPSHOT -grpc-google-cloud-texttospeech-v1beta1:0.135.0:0.136.0-SNAPSHOT -grpc-google-cloud-texttospeech-v1:2.46.0:2.47.0-SNAPSHOT -proto-google-cloud-texttospeech-v1:2.46.0:2.47.0-SNAPSHOT -proto-google-cloud-texttospeech-v1beta1:0.135.0:0.136.0-SNAPSHOT -google-cloud-tpu:2.46.0:2.47.0-SNAPSHOT -grpc-google-cloud-tpu-v1:2.46.0:2.47.0-SNAPSHOT -grpc-google-cloud-tpu-v2alpha1:2.46.0:2.47.0-SNAPSHOT -proto-google-cloud-tpu-v1:2.46.0:2.47.0-SNAPSHOT -proto-google-cloud-tpu-v2alpha1:2.46.0:2.47.0-SNAPSHOT -google-cloud-trace:2.45.0:2.46.0-SNAPSHOT -grpc-google-cloud-trace-v1:2.45.0:2.46.0-SNAPSHOT -grpc-google-cloud-trace-v2:2.45.0:2.46.0-SNAPSHOT -proto-google-cloud-trace-v1:2.45.0:2.46.0-SNAPSHOT -proto-google-cloud-trace-v2:2.45.0:2.46.0-SNAPSHOT -google-cloud-translate:2.45.0:2.46.0-SNAPSHOT -grpc-google-cloud-translate-v3beta1:0.127.0:0.128.0-SNAPSHOT -grpc-google-cloud-translate-v3:2.45.0:2.46.0-SNAPSHOT -proto-google-cloud-translate-v3beta1:0.127.0:0.128.0-SNAPSHOT -proto-google-cloud-translate-v3:2.45.0:2.46.0-SNAPSHOT -google-cloud-video-intelligence:2.44.0:2.45.0-SNAPSHOT -grpc-google-cloud-video-intelligence-v1p1beta1:0.134.0:0.135.0-SNAPSHOT -grpc-google-cloud-video-intelligence-v1beta2:0.134.0:0.135.0-SNAPSHOT -grpc-google-cloud-video-intelligence-v1:2.44.0:2.45.0-SNAPSHOT -grpc-google-cloud-video-intelligence-v1p2beta1:0.134.0:0.135.0-SNAPSHOT -grpc-google-cloud-video-intelligence-v1p3beta1:0.134.0:0.135.0-SNAPSHOT -proto-google-cloud-video-intelligence-v1p3beta1:0.134.0:0.135.0-SNAPSHOT -proto-google-cloud-video-intelligence-v1beta2:0.134.0:0.135.0-SNAPSHOT -proto-google-cloud-video-intelligence-v1p1beta1:0.134.0:0.135.0-SNAPSHOT -proto-google-cloud-video-intelligence-v1:2.44.0:2.45.0-SNAPSHOT -proto-google-cloud-video-intelligence-v1p2beta1:0.134.0:0.135.0-SNAPSHOT -google-cloud-live-stream:0.47.0:0.48.0-SNAPSHOT -proto-google-cloud-live-stream-v1:0.47.0:0.48.0-SNAPSHOT -grpc-google-cloud-live-stream-v1:0.47.0:0.48.0-SNAPSHOT -google-cloud-video-stitcher:0.45.0:0.46.0-SNAPSHOT -proto-google-cloud-video-stitcher-v1:0.45.0:0.46.0-SNAPSHOT -grpc-google-cloud-video-stitcher-v1:0.45.0:0.46.0-SNAPSHOT -google-cloud-video-transcoder:1.44.0:1.45.0-SNAPSHOT -grpc-google-cloud-video-transcoder-v1:1.44.0:1.45.0-SNAPSHOT -proto-google-cloud-video-transcoder-v1:1.44.0:1.45.0-SNAPSHOT -google-cloud-vision:3.43.0:3.44.0-SNAPSHOT -grpc-google-cloud-vision-v1p3beta1:0.132.0:0.133.0-SNAPSHOT -grpc-google-cloud-vision-v1p1beta1:0.132.0:0.133.0-SNAPSHOT -grpc-google-cloud-vision-v1p4beta1:0.132.0:0.133.0-SNAPSHOT -grpc-google-cloud-vision-v1p2beta1:3.43.0:3.44.0-SNAPSHOT -grpc-google-cloud-vision-v1:3.43.0:3.44.0-SNAPSHOT -proto-google-cloud-vision-v1p4beta1:0.132.0:0.133.0-SNAPSHOT -proto-google-cloud-vision-v1:3.43.0:3.44.0-SNAPSHOT -proto-google-cloud-vision-v1p1beta1:0.132.0:0.133.0-SNAPSHOT -proto-google-cloud-vision-v1p3beta1:0.132.0:0.133.0-SNAPSHOT -proto-google-cloud-vision-v1p2beta1:3.43.0:3.44.0-SNAPSHOT -google-cloud-vmmigration:1.45.0:1.46.0-SNAPSHOT -grpc-google-cloud-vmmigration-v1:1.45.0:1.46.0-SNAPSHOT -proto-google-cloud-vmmigration-v1:1.45.0:1.46.0-SNAPSHOT -google-cloud-vpcaccess:2.46.0:2.47.0-SNAPSHOT -grpc-google-cloud-vpcaccess-v1:2.46.0:2.47.0-SNAPSHOT -proto-google-cloud-vpcaccess-v1:2.46.0:2.47.0-SNAPSHOT -google-cloud-webrisk:2.44.0:2.45.0-SNAPSHOT -grpc-google-cloud-webrisk-v1:2.44.0:2.45.0-SNAPSHOT -grpc-google-cloud-webrisk-v1beta1:0.81.0:0.82.0-SNAPSHOT -proto-google-cloud-webrisk-v1:2.44.0:2.45.0-SNAPSHOT -proto-google-cloud-webrisk-v1beta1:0.81.0:0.82.0-SNAPSHOT -google-cloud-websecurityscanner:2.45.0:2.46.0-SNAPSHOT -grpc-google-cloud-websecurityscanner-v1alpha:0.132.0:0.133.0-SNAPSHOT -grpc-google-cloud-websecurityscanner-v1beta:0.132.0:0.133.0-SNAPSHOT -grpc-google-cloud-websecurityscanner-v1:2.45.0:2.46.0-SNAPSHOT -proto-google-cloud-websecurityscanner-v1alpha:0.132.0:0.133.0-SNAPSHOT -proto-google-cloud-websecurityscanner-v1beta:0.132.0:0.133.0-SNAPSHOT -proto-google-cloud-websecurityscanner-v1:2.45.0:2.46.0-SNAPSHOT -google-cloud-workflow-executions:2.45.0:2.46.0-SNAPSHOT -grpc-google-cloud-workflow-executions-v1beta:0.49.0:0.50.0-SNAPSHOT -grpc-google-cloud-workflow-executions-v1:2.45.0:2.46.0-SNAPSHOT -proto-google-cloud-workflow-executions-v1beta:0.49.0:0.50.0-SNAPSHOT -proto-google-cloud-workflow-executions-v1:2.45.0:2.46.0-SNAPSHOT -google-cloud-workflows:2.45.0:2.46.0-SNAPSHOT -grpc-google-cloud-workflows-v1beta:0.51.0:0.52.0-SNAPSHOT -grpc-google-cloud-workflows-v1:2.45.0:2.46.0-SNAPSHOT -proto-google-cloud-workflows-v1beta:0.51.0:0.52.0-SNAPSHOT -proto-google-cloud-workflows-v1:2.45.0:2.46.0-SNAPSHOT -google-cloud-dns:2.43.0:2.44.0-SNAPSHOT -google-maps-routing:1.30.0:1.31.0-SNAPSHOT -proto-google-maps-routing-v2:1.30.0:1.31.0-SNAPSHOT -grpc-google-maps-routing-v2:1.30.0:1.31.0-SNAPSHOT -google-cloud-vmwareengine:0.39.0:0.40.0-SNAPSHOT -proto-google-cloud-vmwareengine-v1:0.39.0:0.40.0-SNAPSHOT -grpc-google-cloud-vmwareengine-v1:0.39.0:0.40.0-SNAPSHOT -google-maps-addressvalidation:0.39.0:0.40.0-SNAPSHOT -proto-google-maps-addressvalidation-v1:0.39.0:0.40.0-SNAPSHOT -grpc-google-maps-addressvalidation-v1:0.39.0:0.40.0-SNAPSHOT -proto-google-cloud-bigquerydatapolicy-v1:0.42.0:0.43.0-SNAPSHOT -grpc-google-cloud-bigquerydatapolicy-v1:0.42.0:0.43.0-SNAPSHOT -google-cloud-monitoring-metricsscope:0.39.0:0.40.0-SNAPSHOT -proto-google-cloud-monitoring-metricsscope-v1:0.39.0:0.40.0-SNAPSHOT -grpc-google-cloud-monitoring-metricsscope-v1:0.39.0:0.40.0-SNAPSHOT -proto-google-cloud-tpu-v2:2.46.0:2.47.0-SNAPSHOT -grpc-google-cloud-tpu-v2:2.46.0:2.47.0-SNAPSHOT -google-cloud-datalineage:0.37.0:0.38.0-SNAPSHOT -proto-google-cloud-datalineage-v1:0.37.0:0.38.0-SNAPSHOT -grpc-google-cloud-datalineage-v1:0.37.0:0.38.0-SNAPSHOT -google-iam-policy:1.43.0:1.44.0-SNAPSHOT -proto-google-cloud-build-v2:3.47.0:3.48.0-SNAPSHOT -grpc-google-cloud-build-v2:3.47.0:3.48.0-SNAPSHOT -google-cloud-advisorynotifications:0.34.0:0.35.0-SNAPSHOT -proto-google-cloud-advisorynotifications-v1:0.34.0:0.35.0-SNAPSHOT -grpc-google-cloud-advisorynotifications-v1:0.34.0:0.35.0-SNAPSHOT -google-maps-mapsplatformdatasets:0.34.0:0.35.0-SNAPSHOT -google-cloud-kmsinventory:0.34.0:0.35.0-SNAPSHOT -proto-google-cloud-kmsinventory-v1:0.34.0:0.35.0-SNAPSHOT -grpc-google-cloud-kmsinventory-v1:0.34.0:0.35.0-SNAPSHOT -google-cloud-alloydb:0.34.0:0.35.0-SNAPSHOT -proto-google-cloud-alloydb-v1:0.34.0:0.35.0-SNAPSHOT -proto-google-cloud-alloydb-v1beta:0.34.0:0.35.0-SNAPSHOT -proto-google-cloud-alloydb-v1alpha:0.34.0:0.35.0-SNAPSHOT -grpc-google-cloud-alloydb-v1beta:0.34.0:0.35.0-SNAPSHOT -grpc-google-cloud-alloydb-v1:0.34.0:0.35.0-SNAPSHOT -grpc-google-cloud-alloydb-v1alpha:0.34.0:0.35.0-SNAPSHOT -google-cloud-biglake:0.33.0:0.34.0-SNAPSHOT -proto-google-cloud-biglake-v1alpha1:0.33.0:0.34.0-SNAPSHOT -grpc-google-cloud-biglake-v1alpha1:0.33.0:0.34.0-SNAPSHOT -google-cloud-workstations:0.33.0:0.34.0-SNAPSHOT -proto-google-cloud-workstations-v1beta:0.33.0:0.34.0-SNAPSHOT -grpc-google-cloud-workstations-v1beta:0.33.0:0.34.0-SNAPSHOT -google-cloud-confidentialcomputing:0.31.0:0.32.0-SNAPSHOT -proto-google-cloud-confidentialcomputing-v1:0.31.0:0.32.0-SNAPSHOT -proto-google-cloud-confidentialcomputing-v1alpha1:0.31.0:0.32.0-SNAPSHOT -grpc-google-cloud-confidentialcomputing-v1:0.31.0:0.32.0-SNAPSHOT -grpc-google-cloud-confidentialcomputing-v1alpha1:0.31.0:0.32.0-SNAPSHOT -proto-google-cloud-workstations-v1:0.33.0:0.34.0-SNAPSHOT -grpc-google-cloud-workstations-v1:0.33.0:0.34.0-SNAPSHOT -proto-google-cloud-biglake-v1:0.33.0:0.34.0-SNAPSHOT -grpc-google-cloud-biglake-v1:0.33.0:0.34.0-SNAPSHOT -google-cloud-storageinsights:0.30.0:0.31.0-SNAPSHOT -proto-google-cloud-storageinsights-v1:0.30.0:0.31.0-SNAPSHOT -grpc-google-cloud-storageinsights-v1:0.30.0:0.31.0-SNAPSHOT -google-cloud-cloudsupport:0.29.0:0.30.0-SNAPSHOT -proto-google-cloud-cloudsupport-v2:0.29.0:0.30.0-SNAPSHOT -grpc-google-cloud-cloudsupport-v2:0.29.0:0.30.0-SNAPSHOT -google-cloud-rapidmigrationassessment:0.28.0:0.29.0-SNAPSHOT -proto-google-cloud-rapidmigrationassessment-v1:0.28.0:0.29.0-SNAPSHOT -grpc-google-cloud-rapidmigrationassessment-v1:0.28.0:0.29.0-SNAPSHOT -proto-google-maps-mapsplatformdatasets-v1:0.34.0:0.35.0-SNAPSHOT -grpc-google-maps-mapsplatformdatasets-v1:0.34.0:0.35.0-SNAPSHOT -google-shopping-merchant-accounts:0.1.0:0.2.0-SNAPSHOT -proto-google-shopping-merchant-accounts-v1beta:0.1.0:0.2.0-SNAPSHOT -grpc-google-shopping-merchant-accounts-v1beta:0.1.0:0.2.0-SNAPSHOT -proto-google-cloud-discoveryengine-v1:0.41.0:0.42.0-SNAPSHOT -grpc-google-cloud-discoveryengine-v1:0.41.0:0.42.0-SNAPSHOT -google-cloud-migrationcenter:0.27.0:0.28.0-SNAPSHOT -proto-google-cloud-migrationcenter-v1:0.27.0:0.28.0-SNAPSHOT -grpc-google-cloud-migrationcenter-v1:0.27.0:0.28.0-SNAPSHOT -google-cloud-policysimulator:0.24.0:0.25.0-SNAPSHOT -proto-google-cloud-policysimulator-v1:0.24.0:0.25.0-SNAPSHOT -grpc-google-cloud-policysimulator-v1:0.24.0:0.25.0-SNAPSHOT -google-cloud-netapp:0.24.0:0.25.0-SNAPSHOT -proto-google-cloud-netapp-v1beta1:0.24.0:0.25.0-SNAPSHOT -grpc-google-cloud-netapp-v1beta1:0.24.0:0.25.0-SNAPSHOT -proto-google-cloud-netapp-v1:0.24.0:0.25.0-SNAPSHOT -grpc-google-cloud-netapp-v1:0.24.0:0.25.0-SNAPSHOT -proto-google-cloud-cloudcommerceconsumerprocurement-v1:0.43.0:0.44.0-SNAPSHOT -grpc-google-cloud-cloudcommerceconsumerprocurement-v1:0.43.0:0.44.0-SNAPSHOT -google-cloud-java-alloydb-connectors:0.23.0:0.24.0-SNAPSHOT -proto-google-cloud-java-alloydb-connectors-v1alpha:0.23.0:0.24.0-SNAPSHOT -google-cloud-alloydb-connectors:0.23.0:0.24.0-SNAPSHOT -proto-google-cloud-alloydb-connectors-v1alpha:0.23.0:0.24.0-SNAPSHOT -proto-google-cloud-language-v2:2.46.0:2.47.0-SNAPSHOT -grpc-google-cloud-language-v2:2.46.0:2.47.0-SNAPSHOT -google-cloud-infra-manager:0.22.0:0.23.0-SNAPSHOT -proto-google-cloud-infra-manager-v1:0.22.0:0.23.0-SNAPSHOT -grpc-google-cloud-infra-manager-v1:0.22.0:0.23.0-SNAPSHOT -proto-google-cloud-notebooks-v2:1.43.0:1.44.0-SNAPSHOT -grpc-google-cloud-notebooks-v2:1.43.0:1.44.0-SNAPSHOT -proto-google-cloud-alloydb-connectors-v1beta:0.23.0:0.24.0-SNAPSHOT -google-shopping-merchant-inventories:0.21.0:0.22.0-SNAPSHOT -proto-google-shopping-merchant-inventories-v1beta:0.21.0:0.22.0-SNAPSHOT -grpc-google-shopping-merchant-inventories-v1beta:0.21.0:0.22.0-SNAPSHOT -proto-google-cloud-policy-troubleshooter-v3:1.44.0:1.45.0-SNAPSHOT -grpc-google-cloud-policy-troubleshooter-v3:1.44.0:1.45.0-SNAPSHOT -google-shopping-merchant-reports:0.21.0:0.22.0-SNAPSHOT -proto-google-shopping-merchant-reports-v1beta:0.21.0:0.22.0-SNAPSHOT -grpc-google-shopping-merchant-reports-v1beta:0.21.0:0.22.0-SNAPSHOT -proto-google-cloud-alloydb-connectors-v1:0.23.0:0.24.0-SNAPSHOT -proto-google-cloud-discoveryengine-v1alpha:0.41.0:0.42.0-SNAPSHOT -grpc-google-cloud-discoveryengine-v1alpha:0.41.0:0.42.0-SNAPSHOT -google-cloud-redis-cluster:0.17.0:0.18.0-SNAPSHOT -proto-google-cloud-redis-cluster-v1beta1:0.17.0:0.18.0-SNAPSHOT -proto-google-cloud-redis-cluster-v1:0.17.0:0.18.0-SNAPSHOT -grpc-google-cloud-redis-cluster-v1:0.17.0:0.18.0-SNAPSHOT -grpc-google-cloud-redis-cluster-v1beta1:0.17.0:0.18.0-SNAPSHOT -google-maps-places:0.16.0:0.17.0-SNAPSHOT -proto-google-maps-places-v1:0.16.0:0.17.0-SNAPSHOT -grpc-google-maps-places-v1:0.16.0:0.17.0-SNAPSHOT -google-cloud-telcoautomation:0.15.0:0.16.0-SNAPSHOT -proto-google-cloud-telcoautomation-v1:0.15.0:0.16.0-SNAPSHOT -proto-google-cloud-telcoautomation-v1alpha1:0.15.0:0.16.0-SNAPSHOT -grpc-google-cloud-telcoautomation-v1:0.15.0:0.16.0-SNAPSHOT -grpc-google-cloud-telcoautomation-v1alpha1:0.15.0:0.16.0-SNAPSHOT -google-cloud-securesourcemanager:0.15.0:0.16.0-SNAPSHOT -proto-google-cloud-securesourcemanager-v1:0.15.0:0.16.0-SNAPSHOT -grpc-google-cloud-securesourcemanager-v1:0.15.0:0.16.0-SNAPSHOT -google-cloud-vertexai:1.5.0:1.6.0-SNAPSHOT -proto-google-cloud-vertexai-v1:1.5.0:1.6.0-SNAPSHOT -proto-google-cloud-vertexai-v1beta1:1.5.0:1.6.0-SNAPSHOT -grpc-google-cloud-vertexai-v1:1.5.0:1.6.0-SNAPSHOT -grpc-google-cloud-vertexai-v1beta1:1.5.0:1.6.0-SNAPSHOT -google-cloud-edgenetwork:0.13.0:0.14.0-SNAPSHOT -proto-google-cloud-edgenetwork-v1:0.13.0:0.14.0-SNAPSHOT -grpc-google-cloud-edgenetwork-v1:0.13.0:0.14.0-SNAPSHOT -google-cloud-cloudquotas:0.13.0:0.14.0-SNAPSHOT -proto-google-cloud-cloudquotas-v1:0.13.0:0.14.0-SNAPSHOT -grpc-google-cloud-cloudquotas-v1:0.13.0:0.14.0-SNAPSHOT -google-cloud-securitycentermanagement:0.13.0:0.14.0-SNAPSHOT -proto-google-cloud-securitycentermanagement-v1:0.13.0:0.14.0-SNAPSHOT -grpc-google-cloud-securitycentermanagement-v1:0.13.0:0.14.0-SNAPSHOT -google-shopping-css:0.13.0:0.14.0-SNAPSHOT -proto-google-shopping-css-v1:0.13.0:0.14.0-SNAPSHOT -grpc-google-shopping-css-v1:0.13.0:0.14.0-SNAPSHOT -google-cloud-meet:0.12.0:0.13.0-SNAPSHOT -proto-google-cloud-meet-v2beta:0.12.0:0.13.0-SNAPSHOT -grpc-google-cloud-meet-v2beta:0.12.0:0.13.0-SNAPSHOT -google-cloud-servicehealth:0.12.0:0.13.0-SNAPSHOT -proto-google-cloud-servicehealth-v1:0.12.0:0.13.0-SNAPSHOT -grpc-google-cloud-servicehealth-v1:0.12.0:0.13.0-SNAPSHOT -proto-google-cloud-meet-v2:0.12.0:0.13.0-SNAPSHOT -grpc-google-cloud-meet-v2:0.12.0:0.13.0-SNAPSHOT -google-cloud-securityposture:0.10.0:0.11.0-SNAPSHOT -proto-google-cloud-securityposture-v1:0.10.0:0.11.0-SNAPSHOT -grpc-google-cloud-securityposture-v1:0.10.0:0.11.0-SNAPSHOT -proto-google-cloud-securitycenter-v2:2.53.0:2.54.0-SNAPSHOT -grpc-google-cloud-securitycenter-v2:2.53.0:2.54.0-SNAPSHOT -google-cloud-cloudcontrolspartner:0.9.0:0.10.0-SNAPSHOT -proto-google-cloud-cloudcontrolspartner-v1beta:0.9.0:0.10.0-SNAPSHOT -proto-google-cloud-cloudcontrolspartner-v1:0.9.0:0.10.0-SNAPSHOT -grpc-google-cloud-cloudcontrolspartner-v1:0.9.0:0.10.0-SNAPSHOT -grpc-google-cloud-cloudcontrolspartner-v1beta:0.9.0:0.10.0-SNAPSHOT -google-cloud-workspaceevents:0.9.0:0.10.0-SNAPSHOT -proto-google-cloud-workspaceevents-v1:0.9.0:0.10.0-SNAPSHOT -grpc-google-cloud-workspaceevents-v1:0.9.0:0.10.0-SNAPSHOT -google-cloud-apphub:0.9.0:0.10.0-SNAPSHOT -proto-google-cloud-apphub-v1:0.9.0:0.10.0-SNAPSHOT -grpc-google-cloud-apphub-v1:0.9.0:0.10.0-SNAPSHOT -google-cloud-chat:0.9.0:0.10.0-SNAPSHOT -proto-google-cloud-chat-v1:0.9.0:0.10.0-SNAPSHOT -grpc-google-cloud-chat-v1:0.9.0:0.10.0-SNAPSHOT -google-shopping-merchant-quota:0.8.0:0.9.0-SNAPSHOT -proto-google-shopping-merchant-quota-v1beta:0.8.0:0.9.0-SNAPSHOT -grpc-google-shopping-merchant-quota-v1beta:0.8.0:0.9.0-SNAPSHOT -proto-google-cloud-secretmanager-v1beta2:2.45.0:2.46.0-SNAPSHOT -grpc-google-cloud-secretmanager-v1beta2:2.45.0:2.46.0-SNAPSHOT -google-cloud-parallelstore:0.8.0:0.9.0-SNAPSHOT -proto-google-cloud-parallelstore-v1beta:0.8.0:0.9.0-SNAPSHOT -grpc-google-cloud-parallelstore-v1beta:0.8.0:0.9.0-SNAPSHOT -google-cloud-backupdr:0.4.0:0.5.0-SNAPSHOT -proto-google-cloud-backupdr-v1:0.4.0:0.5.0-SNAPSHOT -grpc-google-cloud-backupdr-v1:0.4.0:0.5.0-SNAPSHOT -google-maps-solar:0.4.0:0.5.0-SNAPSHOT -proto-google-maps-solar-v1:0.4.0:0.5.0-SNAPSHOT -grpc-google-maps-solar-v1:0.4.0:0.5.0-SNAPSHOT -google-shopping-merchant-datasources:0.1.0:0.2.0-SNAPSHOT -proto-google-shopping-merchant-datasources-v1beta:0.1.0:0.2.0-SNAPSHOT -grpc-google-shopping-merchant-datasources-v1beta:0.1.0:0.2.0-SNAPSHOT -google-shopping-merchant-conversions:0.4.0:0.5.0-SNAPSHOT -proto-google-shopping-merchant-conversions-v1beta:0.4.0:0.5.0-SNAPSHOT -grpc-google-shopping-merchant-conversions-v1beta:0.4.0:0.5.0-SNAPSHOT -google-shopping-merchant-lfp:0.4.0:0.5.0-SNAPSHOT -proto-google-shopping-merchant-lfp-v1beta:0.4.0:0.5.0-SNAPSHOT -grpc-google-shopping-merchant-lfp-v1beta:0.4.0:0.5.0-SNAPSHOT -google-shopping-merchant-notifications:0.4.0:0.5.0-SNAPSHOT -proto-google-shopping-merchant-notifications-v1beta:0.4.0:0.5.0-SNAPSHOT -grpc-google-shopping-merchant-notifications-v1beta:0.4.0:0.5.0-SNAPSHOT -ad-manager:0.4.0:0.5.0-SNAPSHOT -proto-ad-manager-v1:0.4.0:0.5.0-SNAPSHOT -google-maps-routeoptimization:0.3.0:0.4.0-SNAPSHOT -proto-google-maps-routeoptimization-v1:0.3.0:0.4.0-SNAPSHOT -grpc-google-maps-routeoptimization-v1:0.3.0:0.4.0-SNAPSHOT -proto-google-cloud-publicca-v1:0.42.0:0.43.0-SNAPSHOT -grpc-google-cloud-publicca-v1:0.42.0:0.43.0-SNAPSHOT -google-cloud-visionai:0.2.0:0.3.0-SNAPSHOT -proto-google-cloud-visionai-v1:0.2.0:0.3.0-SNAPSHOT -grpc-google-cloud-visionai-v1:0.2.0:0.3.0-SNAPSHOT -google-cloud-developerconnect:0.2.0:0.3.0-SNAPSHOT -proto-google-cloud-developerconnect-v1:0.2.0:0.3.0-SNAPSHOT -grpc-google-cloud-developerconnect-v1:0.2.0:0.3.0-SNAPSHOT -google-cloud-iap:0.1.0:0.2.0-SNAPSHOT -proto-google-cloud-iap-v1:0.1.0:0.2.0-SNAPSHOT -grpc-google-cloud-iap-v1:0.1.0:0.2.0-SNAPSHOT -google-cloud-managedkafka:0.1.0:0.2.0-SNAPSHOT -proto-google-cloud-managedkafka-v1:0.1.0:0.2.0-SNAPSHOT -grpc-google-cloud-managedkafka-v1:0.1.0:0.2.0-SNAPSHOT -google-cloud-networkservices:0.1.0:0.2.0-SNAPSHOT -proto-google-cloud-networkservices-v1:0.1.0:0.2.0-SNAPSHOT -grpc-google-cloud-networkservices-v1:0.1.0:0.2.0-SNAPSHOT -google-shopping-merchant-products:0.1.0:0.2.0-SNAPSHOT -proto-google-shopping-merchant-products-v1beta:0.1.0:0.2.0-SNAPSHOT -grpc-google-shopping-merchant-products-v1beta:0.1.0:0.2.0-SNAPSHOT -google-cloud-gdchardwaremanagement:0.0.0:0.0.1-SNAPSHOT -proto-google-cloud-gdchardwaremanagement-v1alpha:0.0.0:0.0.1-SNAPSHOT -grpc-google-cloud-gdchardwaremanagement-v1alpha:0.0.0:0.0.1-SNAPSHOT +google-cloud-java:1.40.0:1.40.0 +google-cloud-accessapproval:2.47.0:2.47.0 +grpc-google-cloud-accessapproval-v1:2.47.0:2.47.0 +proto-google-cloud-accessapproval-v1:2.47.0:2.47.0 +google-identity-accesscontextmanager:1.47.0:1.47.0 +grpc-google-identity-accesscontextmanager-v1:1.47.0:1.47.0 +proto-google-identity-accesscontextmanager-v1:1.47.0:1.47.0 +proto-google-identity-accesscontextmanager-type:1.47.0:1.47.0 +google-cloud-aiplatform:3.47.0:3.47.0 +grpc-google-cloud-aiplatform-v1:3.47.0:3.47.0 +grpc-google-cloud-aiplatform-v1beta1:0.63.0:0.63.0 +proto-google-cloud-aiplatform-v1:3.47.0:3.47.0 +proto-google-cloud-aiplatform-v1beta1:0.63.0:0.63.0 +google-analytics-admin:0.56.0:0.56.0 +grpc-google-analytics-admin-v1alpha:0.56.0:0.56.0 +proto-google-analytics-admin-v1alpha:0.56.0:0.56.0 +proto-google-analytics-admin-v1beta:0.56.0:0.56.0 +grpc-google-analytics-admin-v1beta:0.56.0:0.56.0 +google-analytics-data:0.57.0:0.57.0 +grpc-google-analytics-data-v1beta:0.57.0:0.57.0 +proto-google-analytics-data-v1beta:0.57.0:0.57.0 +proto-google-analytics-data-v1alpha:0.57.0:0.57.0 +grpc-google-analytics-data-v1alpha:0.57.0:0.57.0 +google-cloud-analyticshub:0.43.0:0.43.0 +proto-google-cloud-analyticshub-v1:0.43.0:0.43.0 +grpc-google-cloud-analyticshub-v1:0.43.0:0.43.0 +google-shopping-merchant-promotions:0.2.0:0.2.0 +proto-google-shopping-merchant-promotions-v1beta:0.2.0:0.2.0 +grpc-google-shopping-merchant-promotions-v1beta:0.2.0:0.2.0 +google-cloud-api-gateway:2.46.0:2.46.0 +grpc-google-cloud-api-gateway-v1:2.46.0:2.46.0 +proto-google-cloud-api-gateway-v1:2.46.0:2.46.0 +google-cloud-apigee-connect:2.46.0:2.46.0 +grpc-google-cloud-apigee-connect-v1:2.46.0:2.46.0 +proto-google-cloud-apigee-connect-v1:2.46.0:2.46.0 +google-cloud-apigee-registry:0.46.0:0.46.0 +proto-google-cloud-apigee-registry-v1:0.46.0:0.46.0 +grpc-google-cloud-apigee-registry-v1:0.46.0:0.46.0 +google-cloud-apikeys:0.44.0:0.44.0 +proto-google-cloud-apikeys-v2:0.44.0:0.44.0 +grpc-google-cloud-apikeys-v2:0.44.0:0.44.0 +google-cloud-appengine-admin:2.46.0:2.46.0 +grpc-google-cloud-appengine-admin-v1:2.46.0:2.46.0 +proto-google-cloud-appengine-admin-v1:2.46.0:2.46.0 +google-area120-tables:0.50.0:0.50.0 +grpc-google-area120-tables-v1alpha1:0.50.0:0.50.0 +proto-google-area120-tables-v1alpha1:0.50.0:0.50.0 +google-cloud-artifact-registry:1.45.0:1.45.0 +grpc-google-cloud-artifact-registry-v1beta2:0.51.0:0.51.0 +grpc-google-cloud-artifact-registry-v1:1.45.0:1.45.0 +proto-google-cloud-artifact-registry-v1beta2:0.51.0:0.51.0 +proto-google-cloud-artifact-registry-v1:1.45.0:1.45.0 +google-cloud-asset:3.50.0:3.50.0 +grpc-google-cloud-asset-v1:3.50.0:3.50.0 +grpc-google-cloud-asset-v1p1beta1:0.150.0:0.150.0 +grpc-google-cloud-asset-v1p2beta1:0.150.0:0.150.0 +grpc-google-cloud-asset-v1p5beta1:0.150.0:0.150.0 +grpc-google-cloud-asset-v1p7beta1:3.50.0:3.50.0 +proto-google-cloud-asset-v1:3.50.0:3.50.0 +proto-google-cloud-asset-v1p1beta1:0.150.0:0.150.0 +proto-google-cloud-asset-v1p2beta1:0.150.0:0.150.0 +proto-google-cloud-asset-v1p5beta1:0.150.0:0.150.0 +proto-google-cloud-asset-v1p7beta1:3.50.0:3.50.0 +google-cloud-assured-workloads:2.46.0:2.46.0 +grpc-google-cloud-assured-workloads-v1beta1:0.58.0:0.58.0 +grpc-google-cloud-assured-workloads-v1:2.46.0:2.46.0 +proto-google-cloud-assured-workloads-v1beta1:0.58.0:0.58.0 +proto-google-cloud-assured-workloads-v1:2.46.0:2.46.0 +google-cloud-automl:2.46.0:2.46.0 +grpc-google-cloud-automl-v1beta1:0.133.0:0.133.0 +grpc-google-cloud-automl-v1:2.46.0:2.46.0 +proto-google-cloud-automl-v1beta1:0.133.0:0.133.0 +proto-google-cloud-automl-v1:2.46.0:2.46.0 +google-cloud-bare-metal-solution:0.46.0:0.46.0 +proto-google-cloud-bare-metal-solution-v2:0.46.0:0.46.0 +grpc-google-cloud-bare-metal-solution-v2:0.46.0:0.46.0 +google-cloud-batch:0.46.0:0.46.0 +proto-google-cloud-batch-v1:0.46.0:0.46.0 +grpc-google-cloud-batch-v1:0.46.0:0.46.0 +proto-google-cloud-batch-v1alpha:0.46.0:0.46.0 +grpc-google-cloud-batch-v1alpha:0.46.0:0.46.0 +google-cloud-beyondcorp-appconnections:0.44.0:0.44.0 +proto-google-cloud-beyondcorp-appconnections-v1:0.44.0:0.44.0 +grpc-google-cloud-beyondcorp-appconnections-v1:0.44.0:0.44.0 +google-cloud-beyondcorp-appconnectors:0.44.0:0.44.0 +proto-google-cloud-beyondcorp-appconnectors-v1:0.44.0:0.44.0 +grpc-google-cloud-beyondcorp-appconnectors-v1:0.44.0:0.44.0 +google-cloud-beyondcorp-appgateways:0.44.0:0.44.0 +proto-google-cloud-beyondcorp-appgateways-v1:0.44.0:0.44.0 +grpc-google-cloud-beyondcorp-appgateways-v1:0.44.0:0.44.0 +google-cloud-beyondcorp-clientconnectorservices:0.44.0:0.44.0 +proto-google-cloud-beyondcorp-clientconnectorservices-v1:0.44.0:0.44.0 +grpc-google-cloud-beyondcorp-clientconnectorservices-v1:0.44.0:0.44.0 +google-cloud-beyondcorp-clientgateways:0.44.0:0.44.0 +proto-google-cloud-beyondcorp-clientgateways-v1:0.44.0:0.44.0 +grpc-google-cloud-beyondcorp-clientgateways-v1:0.44.0:0.44.0 +google-cloud-bigqueryconnection:2.48.0:2.48.0 +grpc-google-cloud-bigqueryconnection-v1:2.48.0:2.48.0 +grpc-google-cloud-bigqueryconnection-v1beta1:0.56.0:0.56.0 +proto-google-cloud-bigqueryconnection-v1:2.48.0:2.48.0 +proto-google-cloud-bigqueryconnection-v1beta1:0.56.0:0.56.0 +google-cloud-bigquery-data-exchange:2.41.0:2.41.0 +proto-google-cloud-bigquery-data-exchange-v1beta1:2.41.0:2.41.0 +grpc-google-cloud-bigquery-data-exchange-v1beta1:2.41.0:2.41.0 +google-cloud-bigquerydatapolicy:0.43.0:0.43.0 +proto-google-cloud-bigquerydatapolicy-v1beta1:0.43.0:0.43.0 +grpc-google-cloud-bigquerydatapolicy-v1beta1:0.43.0:0.43.0 +google-cloud-bigquerydatatransfer:2.46.0:2.46.0 +grpc-google-cloud-bigquerydatatransfer-v1:2.46.0:2.46.0 +proto-google-cloud-bigquerydatatransfer-v1:2.46.0:2.46.0 +google-cloud-bigquerymigration:0.49.0:0.49.0 +grpc-google-cloud-bigquerymigration-v2alpha:0.49.0:0.49.0 +proto-google-cloud-bigquerymigration-v2alpha:0.49.0:0.49.0 +proto-google-cloud-bigquerymigration-v2:0.49.0:0.49.0 +grpc-google-cloud-bigquerymigration-v2:0.49.0:0.49.0 +google-cloud-bigqueryreservation:2.47.0:2.47.0 +grpc-google-cloud-bigqueryreservation-v1:2.47.0:2.47.0 +proto-google-cloud-bigqueryreservation-v1:2.47.0:2.47.0 +google-cloud-billingbudgets:2.46.0:2.46.0 +grpc-google-cloud-billingbudgets-v1beta1:0.55.0:0.55.0 +grpc-google-cloud-billingbudgets-v1:2.46.0:2.46.0 +proto-google-cloud-billingbudgets-v1beta1:0.55.0:0.55.0 +proto-google-cloud-billingbudgets-v1:2.46.0:2.46.0 +google-cloud-billing:2.46.0:2.46.0 +grpc-google-cloud-billing-v1:2.46.0:2.46.0 +proto-google-cloud-billing-v1:2.46.0:2.46.0 +google-cloud-binary-authorization:1.45.0:1.45.0 +grpc-google-cloud-binary-authorization-v1beta1:0.50.0:0.50.0 +grpc-google-cloud-binary-authorization-v1:1.45.0:1.45.0 +proto-google-cloud-binary-authorization-v1beta1:0.50.0:0.50.0 +proto-google-cloud-binary-authorization-v1:1.45.0:1.45.0 +google-cloud-certificate-manager:0.49.0:0.49.0 +proto-google-cloud-certificate-manager-v1:0.49.0:0.49.0 +grpc-google-cloud-certificate-manager-v1:0.49.0:0.49.0 +google-cloud-channel:3.50.0:3.50.0 +grpc-google-cloud-channel-v1:3.50.0:3.50.0 +proto-google-cloud-channel-v1:3.50.0:3.50.0 +google-cloud-build:3.48.0:3.48.0 +grpc-google-cloud-build-v1:3.48.0:3.48.0 +proto-google-cloud-build-v1:3.48.0:3.48.0 +google-cloud-cloudcommerceconsumerprocurement:0.44.0:0.44.0 +proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1:0.44.0:0.44.0 +grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1:0.44.0:0.44.0 +google-cloud-compute:1.56.0:1.56.0 +proto-google-cloud-compute-v1:1.56.0:1.56.0 +google-cloud-contact-center-insights:2.46.0:2.46.0 +grpc-google-cloud-contact-center-insights-v1:2.46.0:2.46.0 +proto-google-cloud-contact-center-insights-v1:2.46.0:2.46.0 +proto-google-cloud-containeranalysis-v1:2.47.0:2.47.0 +proto-google-cloud-containeranalysis-v1beta1:0.137.0:0.137.0 +grpc-google-cloud-containeranalysis-v1beta1:0.137.0:0.137.0 +grpc-google-cloud-containeranalysis-v1:2.47.0:2.47.0 +google-cloud-containeranalysis:2.47.0:2.47.0 +google-cloud-container:2.49.0:2.49.0 +grpc-google-cloud-container-v1:2.49.0:2.49.0 +grpc-google-cloud-container-v1beta1:2.49.0:2.49.0 +proto-google-cloud-container-v1:2.49.0:2.49.0 +proto-google-cloud-container-v1beta1:2.49.0:2.49.0 +google-cloud-contentwarehouse:0.42.0:0.42.0 +proto-google-cloud-contentwarehouse-v1:0.42.0:0.42.0 +grpc-google-cloud-contentwarehouse-v1:0.42.0:0.42.0 +google-cloud-datacatalog:1.52.0:1.52.0 +grpc-google-cloud-datacatalog-v1:1.52.0:1.52.0 +grpc-google-cloud-datacatalog-v1beta1:0.89.0:0.89.0 +proto-google-cloud-datacatalog-v1:1.52.0:1.52.0 +proto-google-cloud-datacatalog-v1beta1:0.89.0:0.89.0 +google-cloud-dataflow:0.50.0:0.50.0 +grpc-google-cloud-dataflow-v1beta3:0.50.0:0.50.0 +proto-google-cloud-dataflow-v1beta3:0.50.0:0.50.0 +google-cloud-dataform:0.45.0:0.45.0 +proto-google-cloud-dataform-v1alpha2:0.45.0:0.45.0 +grpc-google-cloud-dataform-v1alpha2:0.45.0:0.45.0 +proto-google-cloud-dataform-v1beta1:0.45.0:0.45.0 +grpc-google-cloud-dataform-v1beta1:0.45.0:0.45.0 +google-cloud-data-fusion:1.46.0:1.46.0 +grpc-google-cloud-data-fusion-v1beta1:0.50.0:0.50.0 +grpc-google-cloud-data-fusion-v1:1.46.0:1.46.0 +proto-google-cloud-data-fusion-v1beta1:0.50.0:0.50.0 +proto-google-cloud-data-fusion-v1:1.46.0:1.46.0 +google-cloud-datalabeling:0.166.0:0.166.0 +grpc-google-cloud-datalabeling-v1beta1:0.131.0:0.131.0 +proto-google-cloud-datalabeling-v1beta1:0.131.0:0.131.0 +google-cloud-dataplex:1.44.0:1.44.0 +proto-google-cloud-dataplex-v1:1.44.0:1.44.0 +grpc-google-cloud-dataplex-v1:1.44.0:1.44.0 +google-cloud-dataproc-metastore:2.47.0:2.47.0 +grpc-google-cloud-dataproc-metastore-v1beta:0.51.0:0.51.0 +grpc-google-cloud-dataproc-metastore-v1alpha:0.51.0:0.51.0 +grpc-google-cloud-dataproc-metastore-v1:2.47.0:2.47.0 +proto-google-cloud-dataproc-metastore-v1beta:0.51.0:0.51.0 +proto-google-cloud-dataproc-metastore-v1alpha:0.51.0:0.51.0 +proto-google-cloud-dataproc-metastore-v1:2.47.0:2.47.0 +google-cloud-dataproc:4.43.0:4.43.0 +grpc-google-cloud-dataproc-v1:4.43.0:4.43.0 +proto-google-cloud-dataproc-v1:4.43.0:4.43.0 +google-cloud-datastream:1.45.0:1.45.0 +grpc-google-cloud-datastream-v1alpha1:0.50.0:0.50.0 +proto-google-cloud-datastream-v1alpha1:0.50.0:0.50.0 +proto-google-cloud-datastream-v1:1.45.0:1.45.0 +grpc-google-cloud-datastream-v1:1.45.0:1.45.0 +google-cloud-debugger-client:1.46.0:1.46.0 +grpc-google-cloud-debugger-client-v2:1.46.0:1.46.0 +proto-google-cloud-debugger-client-v2:1.46.0:1.46.0 +proto-google-devtools-source-protos:1.46.0:1.46.0 +google-cloud-deploy:1.44.0:1.44.0 +grpc-google-cloud-deploy-v1:1.44.0:1.44.0 +proto-google-cloud-deploy-v1:1.44.0:1.44.0 +google-cloud-dialogflow-cx:0.57.0:0.57.0 +grpc-google-cloud-dialogflow-cx-v3beta1:0.57.0:0.57.0 +grpc-google-cloud-dialogflow-cx-v3:0.57.0:0.57.0 +proto-google-cloud-dialogflow-cx-v3beta1:0.57.0:0.57.0 +proto-google-cloud-dialogflow-cx-v3:0.57.0:0.57.0 +google-cloud-dialogflow:4.52.0:4.52.0 +grpc-google-cloud-dialogflow-v2beta1:0.150.0:0.150.0 +grpc-google-cloud-dialogflow-v2:4.52.0:4.52.0 +proto-google-cloud-dialogflow-v2:4.52.0:4.52.0 +proto-google-cloud-dialogflow-v2beta1:0.150.0:0.150.0 +google-cloud-discoveryengine:0.42.0:0.42.0 +proto-google-cloud-discoveryengine-v1beta:0.42.0:0.42.0 +grpc-google-cloud-discoveryengine-v1beta:0.42.0:0.42.0 +google-cloud-distributedcloudedge:0.43.0:0.43.0 +proto-google-cloud-distributedcloudedge-v1:0.43.0:0.43.0 +grpc-google-cloud-distributedcloudedge-v1:0.43.0:0.43.0 +google-cloud-dlp:3.50.0:3.50.0 +grpc-google-cloud-dlp-v2:3.50.0:3.50.0 +proto-google-cloud-dlp-v2:3.50.0:3.50.0 +google-cloud-dms:2.45.0:2.45.0 +grpc-google-cloud-dms-v1:2.45.0:2.45.0 +proto-google-cloud-dms-v1:2.45.0:2.45.0 +google-cloud-document-ai:2.50.0:2.50.0 +grpc-google-cloud-document-ai-v1beta1:0.62.0:0.62.0 +grpc-google-cloud-document-ai-v1beta2:0.62.0:0.62.0 +grpc-google-cloud-document-ai-v1beta3:0.62.0:0.62.0 +grpc-google-cloud-document-ai-v1:2.50.0:2.50.0 +proto-google-cloud-document-ai-v1beta1:0.62.0:0.62.0 +proto-google-cloud-document-ai-v1beta2:0.62.0:0.62.0 +proto-google-cloud-document-ai-v1beta3:0.62.0:0.62.0 +proto-google-cloud-document-ai-v1:2.50.0:2.50.0 +google-cloud-domains:1.43.0:1.43.0 +grpc-google-cloud-domains-v1beta1:0.51.0:0.51.0 +grpc-google-cloud-domains-v1alpha2:0.51.0:0.51.0 +grpc-google-cloud-domains-v1:1.43.0:1.43.0 +proto-google-cloud-domains-v1beta1:0.51.0:0.51.0 +proto-google-cloud-domains-v1alpha2:0.51.0:0.51.0 +proto-google-cloud-domains-v1:1.43.0:1.43.0 +google-cloud-enterpriseknowledgegraph:0.42.0:0.42.0 +proto-google-cloud-enterpriseknowledgegraph-v1:0.42.0:0.42.0 +grpc-google-cloud-enterpriseknowledgegraph-v1:0.42.0:0.42.0 +google-cloud-errorreporting:0.167.0-beta:0.167.0-beta +grpc-google-cloud-error-reporting-v1beta1:0.133.0:0.133.0 +proto-google-cloud-error-reporting-v1beta1:0.133.0:0.133.0 +google-cloud-essential-contacts:2.46.0:2.46.0 +grpc-google-cloud-essential-contacts-v1:2.46.0:2.46.0 +proto-google-cloud-essential-contacts-v1:2.46.0:2.46.0 +google-cloud-eventarc:1.46.0:1.46.0 +grpc-google-cloud-eventarc-v1:1.46.0:1.46.0 +proto-google-cloud-eventarc-v1:1.46.0:1.46.0 +google-cloud-eventarc-publishing:0.46.0:0.46.0 +proto-google-cloud-eventarc-publishing-v1:0.46.0:0.46.0 +grpc-google-cloud-eventarc-publishing-v1:0.46.0:0.46.0 +google-cloud-filestore:1.47.0:1.47.0 +grpc-google-cloud-filestore-v1beta1:0.49.0:0.49.0 +grpc-google-cloud-filestore-v1:1.47.0:1.47.0 +proto-google-cloud-filestore-v1:1.47.0:1.47.0 +proto-google-cloud-filestore-v1beta1:0.49.0:0.49.0 +google-cloud-functions:2.48.0:2.48.0 +grpc-google-cloud-functions-v1:2.48.0:2.48.0 +proto-google-cloud-functions-v1:2.48.0:2.48.0 +proto-google-cloud-functions-v2beta:2.48.0:2.48.0 +proto-google-cloud-functions-v2alpha:2.48.0:2.48.0 +grpc-google-cloud-functions-v2beta:2.48.0:2.48.0 +grpc-google-cloud-functions-v2alpha:2.48.0:2.48.0 +proto-google-cloud-functions-v2:2.48.0:2.48.0 +grpc-google-cloud-functions-v2:2.48.0:2.48.0 +google-cloud-game-servers:2.46.0:2.46.0 +grpc-google-cloud-game-servers-v1:2.46.0:2.46.0 +grpc-google-cloud-game-servers-v1beta:0.71.0:0.71.0 +proto-google-cloud-game-servers-v1:2.46.0:2.46.0 +proto-google-cloud-game-servers-v1beta:0.71.0:0.71.0 +google-cloud-gke-backup:0.45.0:0.45.0 +proto-google-cloud-gke-backup-v1:0.45.0:0.45.0 +grpc-google-cloud-gke-backup-v1:0.45.0:0.45.0 +google-cloud-gke-connect-gateway:0.47.0:0.47.0 +grpc-google-cloud-gke-connect-gateway-v1beta1:0.47.0:0.47.0 +proto-google-cloud-gke-connect-gateway-v1beta1:0.47.0:0.47.0 +google-cloud-gkehub:1.46.0:1.46.0 +grpc-google-cloud-gkehub-v1beta1:0.52.0:0.52.0 +grpc-google-cloud-gkehub-v1:1.46.0:1.46.0 +grpc-google-cloud-gkehub-v1alpha:0.52.0:0.52.0 +grpc-google-cloud-gkehub-v1beta:0.52.0:0.52.0 +proto-google-cloud-gkehub-v1beta1:0.52.0:0.52.0 +proto-google-cloud-gkehub-v1:1.46.0:1.46.0 +proto-google-cloud-gkehub-v1alpha:0.52.0:0.52.0 +proto-google-cloud-gkehub-v1beta:0.52.0:0.52.0 +google-cloud-gke-multi-cloud:0.45.0:0.45.0 +proto-google-cloud-gke-multi-cloud-v1:0.45.0:0.45.0 +grpc-google-cloud-gke-multi-cloud-v1:0.45.0:0.45.0 +grafeas:2.47.0:2.47.0 +google-cloud-gsuite-addons:2.46.0:2.46.0 +grpc-google-cloud-gsuite-addons-v1:2.46.0:2.46.0 +proto-google-cloud-gsuite-addons-v1:2.46.0:2.46.0 +proto-google-apps-script-type-protos:2.46.0:2.46.0 +google-iam-admin:3.41.0:3.41.0 +grpc-google-iam-admin-v1:3.41.0:3.41.0 +proto-google-iam-admin-v1:3.41.0:3.41.0 +google-cloud-iamcredentials:2.46.0:2.46.0 +grpc-google-cloud-iamcredentials-v1:2.46.0:2.46.0 +proto-google-cloud-iamcredentials-v1:2.46.0:2.46.0 +google-cloud-ids:1.45.0:1.45.0 +grpc-google-cloud-ids-v1:1.45.0:1.45.0 +proto-google-cloud-ids-v1:1.45.0:1.45.0 +google-cloud-iot:2.46.0:2.46.0 +grpc-google-cloud-iot-v1:2.46.0:2.46.0 +proto-google-cloud-iot-v1:2.46.0:2.46.0 +google-cloud-kms:2.49.0:2.49.0 +grpc-google-cloud-kms-v1:0.140.0:0.140.0 +proto-google-cloud-kms-v1:0.140.0:0.140.0 +google-cloud-language:2.47.0:2.47.0 +grpc-google-cloud-language-v1:2.47.0:2.47.0 +grpc-google-cloud-language-v1beta2:0.134.0:0.134.0 +proto-google-cloud-language-v1:2.47.0:2.47.0 +proto-google-cloud-language-v1beta2:0.134.0:0.134.0 +google-cloud-life-sciences:0.48.0:0.48.0 +grpc-google-cloud-life-sciences-v2beta:0.48.0:0.48.0 +proto-google-cloud-life-sciences-v2beta:0.48.0:0.48.0 +google-cloud-managed-identities:1.44.0:1.44.0 +grpc-google-cloud-managed-identities-v1:1.44.0:1.44.0 +proto-google-cloud-managed-identities-v1:1.44.0:1.44.0 +google-cloud-mediatranslation:0.52.0:0.52.0 +grpc-google-cloud-mediatranslation-v1beta1:0.52.0:0.52.0 +proto-google-cloud-mediatranslation-v1beta1:0.52.0:0.52.0 +google-cloud-memcache:2.46.0:2.46.0 +grpc-google-cloud-memcache-v1beta2:0.53.0:0.53.0 +grpc-google-cloud-memcache-v1:2.46.0:2.46.0 +proto-google-cloud-memcache-v1beta2:0.53.0:0.53.0 +proto-google-cloud-memcache-v1:2.46.0:2.46.0 +google-cloud-monitoring-dashboard:2.48.0:2.48.0 +grpc-google-cloud-monitoring-dashboard-v1:2.48.0:2.48.0 +proto-google-cloud-monitoring-dashboard-v1:2.48.0:2.48.0 +google-cloud-monitoring:3.47.0:3.47.0 +grpc-google-cloud-monitoring-v3:3.47.0:3.47.0 +proto-google-cloud-monitoring-v3:3.47.0:3.47.0 +google-cloud-networkconnectivity:1.45.0:1.45.0 +grpc-google-cloud-networkconnectivity-v1alpha1:0.51.0:0.51.0 +grpc-google-cloud-networkconnectivity-v1:1.45.0:1.45.0 +proto-google-cloud-networkconnectivity-v1alpha1:0.51.0:0.51.0 +proto-google-cloud-networkconnectivity-v1:1.45.0:1.45.0 +google-cloud-network-management:1.47.0:1.47.0 +grpc-google-cloud-network-management-v1beta1:0.49.0:0.49.0 +grpc-google-cloud-network-management-v1:1.47.0:1.47.0 +proto-google-cloud-network-management-v1beta1:0.49.0:0.49.0 +proto-google-cloud-network-management-v1:1.47.0:1.47.0 +google-cloud-network-security:0.49.0:0.49.0 +grpc-google-cloud-network-security-v1beta1:0.49.0:0.49.0 +proto-google-cloud-network-security-v1beta1:0.49.0:0.49.0 +proto-google-cloud-network-security-v1:0.49.0:0.49.0 +grpc-google-cloud-network-security-v1:0.49.0:0.49.0 +google-cloud-notebooks:1.44.0:1.44.0 +grpc-google-cloud-notebooks-v1beta1:0.51.0:0.51.0 +grpc-google-cloud-notebooks-v1:1.44.0:1.44.0 +proto-google-cloud-notebooks-v1beta1:0.51.0:0.51.0 +proto-google-cloud-notebooks-v1:1.44.0:1.44.0 +google-cloud-notification:0.164.0-beta:0.164.0-beta +google-cloud-optimization:1.44.0:1.44.0 +proto-google-cloud-optimization-v1:1.44.0:1.44.0 +grpc-google-cloud-optimization-v1:1.44.0:1.44.0 +google-cloud-orchestration-airflow:1.46.0:1.46.0 +grpc-google-cloud-orchestration-airflow-v1:1.46.0:1.46.0 +grpc-google-cloud-orchestration-airflow-v1beta1:0.49.0:0.49.0 +proto-google-cloud-orchestration-airflow-v1:1.46.0:1.46.0 +proto-google-cloud-orchestration-airflow-v1beta1:0.49.0:0.49.0 +google-cloud-orgpolicy:2.46.0:2.46.0 +grpc-google-cloud-orgpolicy-v2:2.46.0:2.46.0 +proto-google-cloud-orgpolicy-v1:2.46.0:2.46.0 +proto-google-cloud-orgpolicy-v2:2.46.0:2.46.0 +google-cloud-os-config:2.48.0:2.48.0 +grpc-google-cloud-os-config-v1:2.48.0:2.48.0 +grpc-google-cloud-os-config-v1beta:2.48.0:2.48.0 +grpc-google-cloud-os-config-v1alpha:2.48.0:2.48.0 +proto-google-cloud-os-config-v1:2.48.0:2.48.0 +proto-google-cloud-os-config-v1alpha:2.48.0:2.48.0 +proto-google-cloud-os-config-v1beta:2.48.0:2.48.0 +google-cloud-os-login:2.45.0:2.45.0 +grpc-google-cloud-os-login-v1:2.45.0:2.45.0 +proto-google-cloud-os-login-v1:2.45.0:2.45.0 +google-cloud-phishingprotection:0.77.0:0.77.0 +grpc-google-cloud-phishingprotection-v1beta1:0.77.0:0.77.0 +proto-google-cloud-phishingprotection-v1beta1:0.77.0:0.77.0 +google-cloud-policy-troubleshooter:1.45.0:1.45.0 +grpc-google-cloud-policy-troubleshooter-v1:1.45.0:1.45.0 +proto-google-cloud-policy-troubleshooter-v1:1.45.0:1.45.0 +google-cloud-private-catalog:0.48.0:0.48.0 +grpc-google-cloud-private-catalog-v1beta1:0.48.0:0.48.0 +proto-google-cloud-private-catalog-v1beta1:0.48.0:0.48.0 +google-cloud-profiler:2.46.0:2.46.0 +grpc-google-cloud-profiler-v2:2.46.0:2.46.0 +proto-google-cloud-profiler-v2:2.46.0:2.46.0 +google-cloud-publicca:0.43.0:0.43.0 +proto-google-cloud-publicca-v1beta1:0.43.0:0.43.0 +grpc-google-cloud-publicca-v1beta1:0.43.0:0.43.0 +google-cloud-recaptchaenterprise:3.43.0:3.43.0 +grpc-google-cloud-recaptchaenterprise-v1:3.43.0:3.43.0 +grpc-google-cloud-recaptchaenterprise-v1beta1:0.85.0:0.85.0 +proto-google-cloud-recaptchaenterprise-v1:3.43.0:3.43.0 +proto-google-cloud-recaptchaenterprise-v1beta1:0.85.0:0.85.0 +google-cloud-recommendations-ai:0.53.0:0.53.0 +grpc-google-cloud-recommendations-ai-v1beta1:0.53.0:0.53.0 +proto-google-cloud-recommendations-ai-v1beta1:0.53.0:0.53.0 +google-cloud-recommender:2.48.0:2.48.0 +grpc-google-cloud-recommender-v1:2.48.0:2.48.0 +grpc-google-cloud-recommender-v1beta1:0.60.0:0.60.0 +proto-google-cloud-recommender-v1:2.48.0:2.48.0 +proto-google-cloud-recommender-v1beta1:0.60.0:0.60.0 +google-cloud-redis:2.49.0:2.49.0 +grpc-google-cloud-redis-v1beta1:0.137.0:0.137.0 +grpc-google-cloud-redis-v1:2.49.0:2.49.0 +proto-google-cloud-redis-v1:2.49.0:2.49.0 +proto-google-cloud-redis-v1beta1:0.137.0:0.137.0 +google-cloud-resourcemanager:1.48.0:1.48.0 +grpc-google-cloud-resourcemanager-v3:1.48.0:1.48.0 +proto-google-cloud-resourcemanager-v3:1.48.0:1.48.0 +google-cloud-resource-settings:1.46.0:1.46.0 +grpc-google-cloud-resource-settings-v1:1.46.0:1.46.0 +proto-google-cloud-resource-settings-v1:1.46.0:1.46.0 +google-cloud-retail:2.48.0:2.48.0 +grpc-google-cloud-retail-v2:2.48.0:2.48.0 +proto-google-cloud-retail-v2:2.48.0:2.48.0 +proto-google-cloud-retail-v2alpha:2.48.0:2.48.0 +proto-google-cloud-retail-v2beta:2.48.0:2.48.0 +grpc-google-cloud-retail-v2alpha:2.48.0:2.48.0 +grpc-google-cloud-retail-v2beta:2.48.0:2.48.0 +google-cloud-run:0.46.0:0.46.0 +proto-google-cloud-run-v2:0.46.0:0.46.0 +grpc-google-cloud-run-v2:0.46.0:0.46.0 +google-cloud-scheduler:2.46.0:2.46.0 +grpc-google-cloud-scheduler-v1beta1:0.131.0:0.131.0 +grpc-google-cloud-scheduler-v1:2.46.0:2.46.0 +proto-google-cloud-scheduler-v1beta1:0.131.0:0.131.0 +proto-google-cloud-scheduler-v1:2.46.0:2.46.0 +google-cloud-secretmanager:2.46.0:2.46.0 +grpc-google-cloud-secretmanager-v1:2.46.0:2.46.0 +proto-google-cloud-secretmanager-v1:2.46.0:2.46.0 +google-cloud-securitycenter:2.54.0:2.54.0 +grpc-google-cloud-securitycenter-v1:2.54.0:2.54.0 +grpc-google-cloud-securitycenter-v1beta1:0.149.0:0.149.0 +grpc-google-cloud-securitycenter-v1p1beta1:0.149.0:0.149.0 +proto-google-cloud-securitycenter-v1:2.54.0:2.54.0 +proto-google-cloud-securitycenter-v1beta1:0.149.0:0.149.0 +proto-google-cloud-securitycenter-v1p1beta1:0.149.0:0.149.0 +google-cloud-securitycenter-settings:0.49.0:0.49.0 +grpc-google-cloud-securitycenter-settings-v1beta1:0.49.0:0.49.0 +proto-google-cloud-securitycenter-settings-v1beta1:0.49.0:0.49.0 +google-cloud-security-private-ca:2.48.0:2.48.0 +grpc-google-cloud-security-private-ca-v1beta1:0.55.0:0.55.0 +grpc-google-cloud-security-private-ca-v1:2.48.0:2.48.0 +proto-google-cloud-security-private-ca-v1beta1:0.55.0:0.55.0 +proto-google-cloud-security-private-ca-v1:2.48.0:2.48.0 +google-cloud-service-control:1.46.0:1.46.0 +grpc-google-cloud-service-control-v1:1.46.0:1.46.0 +proto-google-cloud-service-control-v1:1.46.0:1.46.0 +proto-google-cloud-service-control-v2:1.46.0:1.46.0 +grpc-google-cloud-service-control-v2:1.46.0:1.46.0 +google-cloud-servicedirectory:2.47.0:2.47.0 +grpc-google-cloud-servicedirectory-v1beta1:0.55.0:0.55.0 +grpc-google-cloud-servicedirectory-v1:2.47.0:2.47.0 +proto-google-cloud-servicedirectory-v1beta1:0.55.0:0.55.0 +proto-google-cloud-servicedirectory-v1:2.47.0:2.47.0 +google-cloud-service-management:3.44.0:3.44.0 +grpc-google-cloud-service-management-v1:3.44.0:3.44.0 +proto-google-cloud-service-management-v1:3.44.0:3.44.0 +google-cloud-service-usage:2.46.0:2.46.0 +grpc-google-cloud-service-usage-v1beta1:0.50.0:0.50.0 +grpc-google-cloud-service-usage-v1:2.46.0:2.46.0 +proto-google-cloud-service-usage-v1:2.46.0:2.46.0 +proto-google-cloud-service-usage-v1beta1:0.50.0:0.50.0 +google-cloud-shell:2.45.0:2.45.0 +grpc-google-cloud-shell-v1:2.45.0:2.45.0 +proto-google-cloud-shell-v1:2.45.0:2.45.0 +google-cloud-speech:4.41.0:4.41.0 +grpc-google-cloud-speech-v1:4.41.0:4.41.0 +grpc-google-cloud-speech-v1beta1:2.41.0:2.41.0 +grpc-google-cloud-speech-v1p1beta1:2.41.0:2.41.0 +proto-google-cloud-speech-v1:4.41.0:4.41.0 +proto-google-cloud-speech-v1beta1:2.41.0:2.41.0 +proto-google-cloud-speech-v1p1beta1:2.41.0:2.41.0 +proto-google-cloud-speech-v2:4.41.0:4.41.0 +grpc-google-cloud-speech-v2:4.41.0:4.41.0 +google-cloud-storage-transfer:1.46.0:1.46.0 +grpc-google-cloud-storage-transfer-v1:1.46.0:1.46.0 +proto-google-cloud-storage-transfer-v1:1.46.0:1.46.0 +google-cloud-talent:2.47.0:2.47.0 +grpc-google-cloud-talent-v4:2.47.0:2.47.0 +grpc-google-cloud-talent-v4beta1:0.90.0:0.90.0 +proto-google-cloud-talent-v4:2.47.0:2.47.0 +proto-google-cloud-talent-v4beta1:0.90.0:0.90.0 +google-cloud-tasks:2.46.0:2.46.0 +grpc-google-cloud-tasks-v2beta3:0.136.0:0.136.0 +grpc-google-cloud-tasks-v2beta2:0.136.0:0.136.0 +grpc-google-cloud-tasks-v2:2.46.0:2.46.0 +proto-google-cloud-tasks-v2beta3:0.136.0:0.136.0 +proto-google-cloud-tasks-v2beta2:0.136.0:0.136.0 +proto-google-cloud-tasks-v2:2.46.0:2.46.0 +google-cloud-texttospeech:2.47.0:2.47.0 +grpc-google-cloud-texttospeech-v1beta1:0.136.0:0.136.0 +grpc-google-cloud-texttospeech-v1:2.47.0:2.47.0 +proto-google-cloud-texttospeech-v1:2.47.0:2.47.0 +proto-google-cloud-texttospeech-v1beta1:0.136.0:0.136.0 +google-cloud-tpu:2.47.0:2.47.0 +grpc-google-cloud-tpu-v1:2.47.0:2.47.0 +grpc-google-cloud-tpu-v2alpha1:2.47.0:2.47.0 +proto-google-cloud-tpu-v1:2.47.0:2.47.0 +proto-google-cloud-tpu-v2alpha1:2.47.0:2.47.0 +google-cloud-trace:2.46.0:2.46.0 +grpc-google-cloud-trace-v1:2.46.0:2.46.0 +grpc-google-cloud-trace-v2:2.46.0:2.46.0 +proto-google-cloud-trace-v1:2.46.0:2.46.0 +proto-google-cloud-trace-v2:2.46.0:2.46.0 +google-cloud-translate:2.46.0:2.46.0 +grpc-google-cloud-translate-v3beta1:0.128.0:0.128.0 +grpc-google-cloud-translate-v3:2.46.0:2.46.0 +proto-google-cloud-translate-v3beta1:0.128.0:0.128.0 +proto-google-cloud-translate-v3:2.46.0:2.46.0 +google-cloud-video-intelligence:2.45.0:2.45.0 +grpc-google-cloud-video-intelligence-v1p1beta1:0.135.0:0.135.0 +grpc-google-cloud-video-intelligence-v1beta2:0.135.0:0.135.0 +grpc-google-cloud-video-intelligence-v1:2.45.0:2.45.0 +grpc-google-cloud-video-intelligence-v1p2beta1:0.135.0:0.135.0 +grpc-google-cloud-video-intelligence-v1p3beta1:0.135.0:0.135.0 +proto-google-cloud-video-intelligence-v1p3beta1:0.135.0:0.135.0 +proto-google-cloud-video-intelligence-v1beta2:0.135.0:0.135.0 +proto-google-cloud-video-intelligence-v1p1beta1:0.135.0:0.135.0 +proto-google-cloud-video-intelligence-v1:2.45.0:2.45.0 +proto-google-cloud-video-intelligence-v1p2beta1:0.135.0:0.135.0 +google-cloud-live-stream:0.48.0:0.48.0 +proto-google-cloud-live-stream-v1:0.48.0:0.48.0 +grpc-google-cloud-live-stream-v1:0.48.0:0.48.0 +google-cloud-video-stitcher:0.46.0:0.46.0 +proto-google-cloud-video-stitcher-v1:0.46.0:0.46.0 +grpc-google-cloud-video-stitcher-v1:0.46.0:0.46.0 +google-cloud-video-transcoder:1.45.0:1.45.0 +grpc-google-cloud-video-transcoder-v1:1.45.0:1.45.0 +proto-google-cloud-video-transcoder-v1:1.45.0:1.45.0 +google-cloud-vision:3.44.0:3.44.0 +grpc-google-cloud-vision-v1p3beta1:0.133.0:0.133.0 +grpc-google-cloud-vision-v1p1beta1:0.133.0:0.133.0 +grpc-google-cloud-vision-v1p4beta1:0.133.0:0.133.0 +grpc-google-cloud-vision-v1p2beta1:3.44.0:3.44.0 +grpc-google-cloud-vision-v1:3.44.0:3.44.0 +proto-google-cloud-vision-v1p4beta1:0.133.0:0.133.0 +proto-google-cloud-vision-v1:3.44.0:3.44.0 +proto-google-cloud-vision-v1p1beta1:0.133.0:0.133.0 +proto-google-cloud-vision-v1p3beta1:0.133.0:0.133.0 +proto-google-cloud-vision-v1p2beta1:3.44.0:3.44.0 +google-cloud-vmmigration:1.46.0:1.46.0 +grpc-google-cloud-vmmigration-v1:1.46.0:1.46.0 +proto-google-cloud-vmmigration-v1:1.46.0:1.46.0 +google-cloud-vpcaccess:2.47.0:2.47.0 +grpc-google-cloud-vpcaccess-v1:2.47.0:2.47.0 +proto-google-cloud-vpcaccess-v1:2.47.0:2.47.0 +google-cloud-webrisk:2.45.0:2.45.0 +grpc-google-cloud-webrisk-v1:2.45.0:2.45.0 +grpc-google-cloud-webrisk-v1beta1:0.82.0:0.82.0 +proto-google-cloud-webrisk-v1:2.45.0:2.45.0 +proto-google-cloud-webrisk-v1beta1:0.82.0:0.82.0 +google-cloud-websecurityscanner:2.46.0:2.46.0 +grpc-google-cloud-websecurityscanner-v1alpha:0.133.0:0.133.0 +grpc-google-cloud-websecurityscanner-v1beta:0.133.0:0.133.0 +grpc-google-cloud-websecurityscanner-v1:2.46.0:2.46.0 +proto-google-cloud-websecurityscanner-v1alpha:0.133.0:0.133.0 +proto-google-cloud-websecurityscanner-v1beta:0.133.0:0.133.0 +proto-google-cloud-websecurityscanner-v1:2.46.0:2.46.0 +google-cloud-workflow-executions:2.46.0:2.46.0 +grpc-google-cloud-workflow-executions-v1beta:0.50.0:0.50.0 +grpc-google-cloud-workflow-executions-v1:2.46.0:2.46.0 +proto-google-cloud-workflow-executions-v1beta:0.50.0:0.50.0 +proto-google-cloud-workflow-executions-v1:2.46.0:2.46.0 +google-cloud-workflows:2.46.0:2.46.0 +grpc-google-cloud-workflows-v1beta:0.52.0:0.52.0 +grpc-google-cloud-workflows-v1:2.46.0:2.46.0 +proto-google-cloud-workflows-v1beta:0.52.0:0.52.0 +proto-google-cloud-workflows-v1:2.46.0:2.46.0 +google-cloud-dns:2.44.0:2.44.0 +google-maps-routing:1.31.0:1.31.0 +proto-google-maps-routing-v2:1.31.0:1.31.0 +grpc-google-maps-routing-v2:1.31.0:1.31.0 +google-cloud-vmwareengine:0.40.0:0.40.0 +proto-google-cloud-vmwareengine-v1:0.40.0:0.40.0 +grpc-google-cloud-vmwareengine-v1:0.40.0:0.40.0 +google-maps-addressvalidation:0.40.0:0.40.0 +proto-google-maps-addressvalidation-v1:0.40.0:0.40.0 +grpc-google-maps-addressvalidation-v1:0.40.0:0.40.0 +proto-google-cloud-bigquerydatapolicy-v1:0.43.0:0.43.0 +grpc-google-cloud-bigquerydatapolicy-v1:0.43.0:0.43.0 +google-cloud-monitoring-metricsscope:0.40.0:0.40.0 +proto-google-cloud-monitoring-metricsscope-v1:0.40.0:0.40.0 +grpc-google-cloud-monitoring-metricsscope-v1:0.40.0:0.40.0 +proto-google-cloud-tpu-v2:2.47.0:2.47.0 +grpc-google-cloud-tpu-v2:2.47.0:2.47.0 +google-cloud-datalineage:0.38.0:0.38.0 +proto-google-cloud-datalineage-v1:0.38.0:0.38.0 +grpc-google-cloud-datalineage-v1:0.38.0:0.38.0 +google-iam-policy:1.44.0:1.44.0 +proto-google-cloud-build-v2:3.48.0:3.48.0 +grpc-google-cloud-build-v2:3.48.0:3.48.0 +google-cloud-advisorynotifications:0.35.0:0.35.0 +proto-google-cloud-advisorynotifications-v1:0.35.0:0.35.0 +grpc-google-cloud-advisorynotifications-v1:0.35.0:0.35.0 +google-maps-mapsplatformdatasets:0.35.0:0.35.0 +google-cloud-kmsinventory:0.35.0:0.35.0 +proto-google-cloud-kmsinventory-v1:0.35.0:0.35.0 +grpc-google-cloud-kmsinventory-v1:0.35.0:0.35.0 +google-cloud-alloydb:0.35.0:0.35.0 +proto-google-cloud-alloydb-v1:0.35.0:0.35.0 +proto-google-cloud-alloydb-v1beta:0.35.0:0.35.0 +proto-google-cloud-alloydb-v1alpha:0.35.0:0.35.0 +grpc-google-cloud-alloydb-v1beta:0.35.0:0.35.0 +grpc-google-cloud-alloydb-v1:0.35.0:0.35.0 +grpc-google-cloud-alloydb-v1alpha:0.35.0:0.35.0 +google-cloud-biglake:0.34.0:0.34.0 +proto-google-cloud-biglake-v1alpha1:0.34.0:0.34.0 +grpc-google-cloud-biglake-v1alpha1:0.34.0:0.34.0 +google-cloud-workstations:0.34.0:0.34.0 +proto-google-cloud-workstations-v1beta:0.34.0:0.34.0 +grpc-google-cloud-workstations-v1beta:0.34.0:0.34.0 +google-cloud-confidentialcomputing:0.32.0:0.32.0 +proto-google-cloud-confidentialcomputing-v1:0.32.0:0.32.0 +proto-google-cloud-confidentialcomputing-v1alpha1:0.32.0:0.32.0 +grpc-google-cloud-confidentialcomputing-v1:0.32.0:0.32.0 +grpc-google-cloud-confidentialcomputing-v1alpha1:0.32.0:0.32.0 +proto-google-cloud-workstations-v1:0.34.0:0.34.0 +grpc-google-cloud-workstations-v1:0.34.0:0.34.0 +proto-google-cloud-biglake-v1:0.34.0:0.34.0 +grpc-google-cloud-biglake-v1:0.34.0:0.34.0 +google-cloud-storageinsights:0.31.0:0.31.0 +proto-google-cloud-storageinsights-v1:0.31.0:0.31.0 +grpc-google-cloud-storageinsights-v1:0.31.0:0.31.0 +google-cloud-cloudsupport:0.30.0:0.30.0 +proto-google-cloud-cloudsupport-v2:0.30.0:0.30.0 +grpc-google-cloud-cloudsupport-v2:0.30.0:0.30.0 +google-cloud-rapidmigrationassessment:0.29.0:0.29.0 +proto-google-cloud-rapidmigrationassessment-v1:0.29.0:0.29.0 +grpc-google-cloud-rapidmigrationassessment-v1:0.29.0:0.29.0 +proto-google-maps-mapsplatformdatasets-v1:0.35.0:0.35.0 +grpc-google-maps-mapsplatformdatasets-v1:0.35.0:0.35.0 +google-shopping-merchant-accounts:0.2.0:0.2.0 +proto-google-shopping-merchant-accounts-v1beta:0.2.0:0.2.0 +grpc-google-shopping-merchant-accounts-v1beta:0.2.0:0.2.0 +proto-google-cloud-discoveryengine-v1:0.42.0:0.42.0 +grpc-google-cloud-discoveryengine-v1:0.42.0:0.42.0 +google-cloud-migrationcenter:0.28.0:0.28.0 +proto-google-cloud-migrationcenter-v1:0.28.0:0.28.0 +grpc-google-cloud-migrationcenter-v1:0.28.0:0.28.0 +google-cloud-policysimulator:0.25.0:0.25.0 +proto-google-cloud-policysimulator-v1:0.25.0:0.25.0 +grpc-google-cloud-policysimulator-v1:0.25.0:0.25.0 +google-cloud-netapp:0.25.0:0.25.0 +proto-google-cloud-netapp-v1beta1:0.25.0:0.25.0 +grpc-google-cloud-netapp-v1beta1:0.25.0:0.25.0 +proto-google-cloud-netapp-v1:0.25.0:0.25.0 +grpc-google-cloud-netapp-v1:0.25.0:0.25.0 +proto-google-cloud-cloudcommerceconsumerprocurement-v1:0.44.0:0.44.0 +grpc-google-cloud-cloudcommerceconsumerprocurement-v1:0.44.0:0.44.0 +google-cloud-java-alloydb-connectors:0.24.0:0.24.0 +proto-google-cloud-java-alloydb-connectors-v1alpha:0.24.0:0.24.0 +google-cloud-alloydb-connectors:0.24.0:0.24.0 +proto-google-cloud-alloydb-connectors-v1alpha:0.24.0:0.24.0 +proto-google-cloud-language-v2:2.47.0:2.47.0 +grpc-google-cloud-language-v2:2.47.0:2.47.0 +google-cloud-infra-manager:0.23.0:0.23.0 +proto-google-cloud-infra-manager-v1:0.23.0:0.23.0 +grpc-google-cloud-infra-manager-v1:0.23.0:0.23.0 +proto-google-cloud-notebooks-v2:1.44.0:1.44.0 +grpc-google-cloud-notebooks-v2:1.44.0:1.44.0 +proto-google-cloud-alloydb-connectors-v1beta:0.24.0:0.24.0 +google-shopping-merchant-inventories:0.22.0:0.22.0 +proto-google-shopping-merchant-inventories-v1beta:0.22.0:0.22.0 +grpc-google-shopping-merchant-inventories-v1beta:0.22.0:0.22.0 +proto-google-cloud-policy-troubleshooter-v3:1.45.0:1.45.0 +grpc-google-cloud-policy-troubleshooter-v3:1.45.0:1.45.0 +google-shopping-merchant-reports:0.22.0:0.22.0 +proto-google-shopping-merchant-reports-v1beta:0.22.0:0.22.0 +grpc-google-shopping-merchant-reports-v1beta:0.22.0:0.22.0 +proto-google-cloud-alloydb-connectors-v1:0.24.0:0.24.0 +proto-google-cloud-discoveryengine-v1alpha:0.42.0:0.42.0 +grpc-google-cloud-discoveryengine-v1alpha:0.42.0:0.42.0 +google-cloud-redis-cluster:0.18.0:0.18.0 +proto-google-cloud-redis-cluster-v1beta1:0.18.0:0.18.0 +proto-google-cloud-redis-cluster-v1:0.18.0:0.18.0 +grpc-google-cloud-redis-cluster-v1:0.18.0:0.18.0 +grpc-google-cloud-redis-cluster-v1beta1:0.18.0:0.18.0 +google-maps-places:0.17.0:0.17.0 +proto-google-maps-places-v1:0.17.0:0.17.0 +grpc-google-maps-places-v1:0.17.0:0.17.0 +google-cloud-telcoautomation:0.16.0:0.16.0 +proto-google-cloud-telcoautomation-v1:0.16.0:0.16.0 +proto-google-cloud-telcoautomation-v1alpha1:0.16.0:0.16.0 +grpc-google-cloud-telcoautomation-v1:0.16.0:0.16.0 +grpc-google-cloud-telcoautomation-v1alpha1:0.16.0:0.16.0 +google-cloud-securesourcemanager:0.16.0:0.16.0 +proto-google-cloud-securesourcemanager-v1:0.16.0:0.16.0 +grpc-google-cloud-securesourcemanager-v1:0.16.0:0.16.0 +google-cloud-vertexai:1.6.0:1.6.0 +proto-google-cloud-vertexai-v1:1.6.0:1.6.0 +proto-google-cloud-vertexai-v1beta1:1.6.0:1.6.0 +grpc-google-cloud-vertexai-v1:1.6.0:1.6.0 +grpc-google-cloud-vertexai-v1beta1:1.6.0:1.6.0 +google-cloud-edgenetwork:0.14.0:0.14.0 +proto-google-cloud-edgenetwork-v1:0.14.0:0.14.0 +grpc-google-cloud-edgenetwork-v1:0.14.0:0.14.0 +google-cloud-cloudquotas:0.14.0:0.14.0 +proto-google-cloud-cloudquotas-v1:0.14.0:0.14.0 +grpc-google-cloud-cloudquotas-v1:0.14.0:0.14.0 +google-cloud-securitycentermanagement:0.14.0:0.14.0 +proto-google-cloud-securitycentermanagement-v1:0.14.0:0.14.0 +grpc-google-cloud-securitycentermanagement-v1:0.14.0:0.14.0 +google-shopping-css:0.14.0:0.14.0 +proto-google-shopping-css-v1:0.14.0:0.14.0 +grpc-google-shopping-css-v1:0.14.0:0.14.0 +google-cloud-meet:0.13.0:0.13.0 +proto-google-cloud-meet-v2beta:0.13.0:0.13.0 +grpc-google-cloud-meet-v2beta:0.13.0:0.13.0 +google-cloud-servicehealth:0.13.0:0.13.0 +proto-google-cloud-servicehealth-v1:0.13.0:0.13.0 +grpc-google-cloud-servicehealth-v1:0.13.0:0.13.0 +proto-google-cloud-meet-v2:0.13.0:0.13.0 +grpc-google-cloud-meet-v2:0.13.0:0.13.0 +google-cloud-securityposture:0.11.0:0.11.0 +proto-google-cloud-securityposture-v1:0.11.0:0.11.0 +grpc-google-cloud-securityposture-v1:0.11.0:0.11.0 +proto-google-cloud-securitycenter-v2:2.54.0:2.54.0 +grpc-google-cloud-securitycenter-v2:2.54.0:2.54.0 +google-cloud-cloudcontrolspartner:0.10.0:0.10.0 +proto-google-cloud-cloudcontrolspartner-v1beta:0.10.0:0.10.0 +proto-google-cloud-cloudcontrolspartner-v1:0.10.0:0.10.0 +grpc-google-cloud-cloudcontrolspartner-v1:0.10.0:0.10.0 +grpc-google-cloud-cloudcontrolspartner-v1beta:0.10.0:0.10.0 +google-cloud-workspaceevents:0.10.0:0.10.0 +proto-google-cloud-workspaceevents-v1:0.10.0:0.10.0 +grpc-google-cloud-workspaceevents-v1:0.10.0:0.10.0 +google-cloud-apphub:0.10.0:0.10.0 +proto-google-cloud-apphub-v1:0.10.0:0.10.0 +grpc-google-cloud-apphub-v1:0.10.0:0.10.0 +google-cloud-chat:0.10.0:0.10.0 +proto-google-cloud-chat-v1:0.10.0:0.10.0 +grpc-google-cloud-chat-v1:0.10.0:0.10.0 +google-shopping-merchant-quota:0.9.0:0.9.0 +proto-google-shopping-merchant-quota-v1beta:0.9.0:0.9.0 +grpc-google-shopping-merchant-quota-v1beta:0.9.0:0.9.0 +proto-google-cloud-secretmanager-v1beta2:2.46.0:2.46.0 +grpc-google-cloud-secretmanager-v1beta2:2.46.0:2.46.0 +google-cloud-parallelstore:0.9.0:0.9.0 +proto-google-cloud-parallelstore-v1beta:0.9.0:0.9.0 +grpc-google-cloud-parallelstore-v1beta:0.9.0:0.9.0 +google-cloud-backupdr:0.5.0:0.5.0 +proto-google-cloud-backupdr-v1:0.5.0:0.5.0 +grpc-google-cloud-backupdr-v1:0.5.0:0.5.0 +google-maps-solar:0.5.0:0.5.0 +proto-google-maps-solar-v1:0.5.0:0.5.0 +grpc-google-maps-solar-v1:0.5.0:0.5.0 +google-shopping-merchant-datasources:0.2.0:0.2.0 +proto-google-shopping-merchant-datasources-v1beta:0.2.0:0.2.0 +grpc-google-shopping-merchant-datasources-v1beta:0.2.0:0.2.0 +google-shopping-merchant-conversions:0.5.0:0.5.0 +proto-google-shopping-merchant-conversions-v1beta:0.5.0:0.5.0 +grpc-google-shopping-merchant-conversions-v1beta:0.5.0:0.5.0 +google-shopping-merchant-lfp:0.5.0:0.5.0 +proto-google-shopping-merchant-lfp-v1beta:0.5.0:0.5.0 +grpc-google-shopping-merchant-lfp-v1beta:0.5.0:0.5.0 +google-shopping-merchant-notifications:0.5.0:0.5.0 +proto-google-shopping-merchant-notifications-v1beta:0.5.0:0.5.0 +grpc-google-shopping-merchant-notifications-v1beta:0.5.0:0.5.0 +ad-manager:0.5.0:0.5.0 +proto-ad-manager-v1:0.5.0:0.5.0 +google-maps-routeoptimization:0.4.0:0.4.0 +proto-google-maps-routeoptimization-v1:0.4.0:0.4.0 +grpc-google-maps-routeoptimization-v1:0.4.0:0.4.0 +proto-google-cloud-publicca-v1:0.43.0:0.43.0 +grpc-google-cloud-publicca-v1:0.43.0:0.43.0 +google-cloud-visionai:0.3.0:0.3.0 +proto-google-cloud-visionai-v1:0.3.0:0.3.0 +grpc-google-cloud-visionai-v1:0.3.0:0.3.0 +google-cloud-developerconnect:0.3.0:0.3.0 +proto-google-cloud-developerconnect-v1:0.3.0:0.3.0 +grpc-google-cloud-developerconnect-v1:0.3.0:0.3.0 +google-cloud-iap:0.2.0:0.2.0 +proto-google-cloud-iap-v1:0.2.0:0.2.0 +grpc-google-cloud-iap-v1:0.2.0:0.2.0 +google-cloud-managedkafka:0.2.0:0.2.0 +proto-google-cloud-managedkafka-v1:0.2.0:0.2.0 +grpc-google-cloud-managedkafka-v1:0.2.0:0.2.0 +google-cloud-networkservices:0.2.0:0.2.0 +proto-google-cloud-networkservices-v1:0.2.0:0.2.0 +grpc-google-cloud-networkservices-v1:0.2.0:0.2.0 +google-shopping-merchant-products:0.2.0:0.2.0 +proto-google-shopping-merchant-products-v1beta:0.2.0:0.2.0 +grpc-google-shopping-merchant-products-v1beta:0.2.0:0.2.0 +google-cloud-gdchardwaremanagement:0.1.0:0.1.0 +proto-google-cloud-gdchardwaremanagement-v1alpha:0.1.0:0.1.0 +grpc-google-cloud-gdchardwaremanagement-v1alpha:0.1.0:0.1.0